diff --git a/404.html b/404.html new file mode 100644 index 000000000..9ef5139a0 --- /dev/null +++ b/404.html @@ -0,0 +1,40 @@ + + + + + + + + 海豹手册 + + + + + + +
跳至主要內容

404

页面不存在

这 是 四 零 四 !

+ + + diff --git a/about/about.html b/about/about.html new file mode 100644 index 000000000..13ebf6e94 --- /dev/null +++ b/about/about.html @@ -0,0 +1,40 @@ + + + + + + + + 关于 | 海豹手册 + + + + + + +
跳至主要內容

关于

小于 1 分钟

关于

官方站点

官网open in new window:海豹官网,新版本发布的正式地址,还提供试用,log 染色open in new window 等多项功能。

海豹开源组织 GitHubopen in new window:海豹核心源码的托管地址。

投喂

请参见 官网—投喂open in new window,目前尚未更新蓝绿修改器(暂时顾不上)。

你的投喂将用于支付服务器费用,以及帮助社畜制作者们稍微抵抗来自现实的引力。

非常感谢。

手册贡献者

新手册贡献者open in new window


旧手册贡献者open in new window

木落open in new window、鹊鹊、蜜瓜包、病、于言诺、流溪open in new window憧憬少open in new window浣熊旅記open in new window

开源

海豹的源代码以 MIT 协议开源,托管在 GitHub 下。海豹核心的诞生离不开开源社区和其它开源软件的支持。

上次编辑于:
+ + + diff --git a/about/develop.html b/about/develop.html new file mode 100644 index 000000000..3f5a43ce9 --- /dev/null +++ b/about/develop.html @@ -0,0 +1,40 @@ + + + + + + + + 参与项目 | 海豹手册 + + + + + + +
跳至主要內容

参与项目

大约 1 分钟

参与项目

无论是普通用户还是开发者,我们都非常欢迎你参与海豹的开发,一起努力让海豹变得更好。

海豹的所有源代码都托管在 海豹开源组织 GitHubopen in new window 下,每个模块都存放在对应的仓库中,可阅读对应仓库的 Readme 获取更多信息。

几个比较重要的仓库:

  • 核心open in new window:海豹的 Go 后端代码仓库,这个仓库也作为海豹的主仓库,Bug 可反馈在该仓库的 issue 中;
  • UIopen in new window:海豹的前端代码,基于 Vue3 + ElementPlus 开发;
  • 手册(新)open in new window:海豹新版官方手册(即当前的手册)的源码,如对手册有什么改进内容可以在该项目提交 pr;
  • 构建open in new window:海豹的自动构建仓库,用于自动化发布海豹的每日构建包与 Release;
  • ……

如何参与项目?

Bug 反馈、功能建议

所有的 Bug 和功能建议都可反馈在 核心open in new window 仓库的 issue 中,按照模板填写可方便开发组快速定位问题。

无法访问 GitHub?

受限于各种原因,不是所有人都能顺利访问 GitHub,如有 Bug 可以加入官方群进行反馈。但如果有条件,我们还是建议在 GitHub 向开发组反馈问题。

提交修改

欢迎各种类型的 pr 提交,可以帮助改进代码,增加功能,也可以是完善文档等等。向对应仓库发起 pr 即可。

上次编辑于:
+ + + diff --git a/about/index.html b/about/index.html new file mode 100644 index 000000000..781e5232f --- /dev/null +++ b/about/index.html @@ -0,0 +1,40 @@ + + + + + + + + 关于 | 海豹手册 + + + + + + +
跳至主要內容

关于

小于 1 分钟

上次编辑于:
+ + + diff --git a/about/license.html b/about/license.html new file mode 100644 index 000000000..b19a7fa77 --- /dev/null +++ b/about/license.html @@ -0,0 +1,40 @@ + + + + + + + + 许可协议 | 海豹手册 + + + + + + +
跳至主要內容

许可协议

大约 2 分钟

许可协议

进行使用即代表同意此声明:

尊敬的用户,欢迎您选择由木落等研发的海豹骰点核心(SealDice),在您使用海豹骰点核心前,请务必仔细阅读使用须知,使用即代表您已同意使用须知的内容,使用造成的任何后果与海豹开发组无关。

您需了解,海豹核心官方版只支持 TRPG 功能,娱乐功能定制化请自便,和海豹无关。

您清楚并明白您对通过骰子提供的全部内容负责,包括自定义回复、非自带的插件、牌堆。海豹骰不对非自身提供以外的内容合法性负责。您不得在使用海豹骰服务时,导入包括但不限于以下情形的内容:

(1) 反对中华人民共和国宪法所确定的基本原则的;

(2) 危害国家安全,泄露国家秘密,颠覆国家政权,破坏国家统一的;

(3) 损害国家荣誉和利益的;

(4) 煽动民族仇恨、民族歧视、破坏民族团结的;

(5) 破坏国家宗教政策,宣扬邪教和封建迷信的;

(6) 散布谣言,扰乱社会秩序,破坏社会稳定的;

(7) 散布淫秽、色情、赌博、暴力、凶杀、恐怖或者教唆犯罪的;

(8) 侮辱或者诽谤他人,侵害他人合法权益的;

(9) 宣扬、教唆使用外挂、私服、病毒、恶意代码、木马及其相关内容的;

(10) 侵犯他人知识产权或涉及第三方商业秘密及其他专有权利的;

(11) 散布任何贬损、诋毁、恶意攻击海豹骰及开发人员、海洋馆工作人员、mod 编写人员、关联合作者的;

(12) 含有中华人民共和国法律、行政法规、政策、上级主管部门下发通知中所禁止的其他内容的。

一旦您有以上禁止行为,请立即停用海豹骰。

上次编辑于:
+ + + diff --git a/advanced/edit_complex_custom_text.html b/advanced/edit_complex_custom_text.html new file mode 100644 index 000000000..cee4be5f5 --- /dev/null +++ b/advanced/edit_complex_custom_text.html @@ -0,0 +1,89 @@ + + + + + + + + 编写复杂文案 | 海豹手册 + + + + + + +
跳至主要內容

编写复杂文案

大约 2 分钟

编写复杂文案

本节内容

本节将展示复杂文案的编写技巧,请善用侧边栏和搜索,按需阅读文档。

示例

根据骰点结果展示不同文案

在文案中通常会有结果变量,通过对结果变量的判断来实现展示不同文案。如修改 .r 骰点_单项结果文本 文案为例

{$t表达式文本}{$t计算过程}={$t计算结果}{%
+$t计算结果 == 100 ? " 乐!",
+$t计算结果 == 1 ? " 啧!"
+%}
+

展示:

.r
+回复:<测试人员>掷出了 D100=1 啧!
+
+.r
+回复:<测试人员>掷出了 D100=100 乐!
+

多套文案的实现

了解自定义回复的编写

多套文案的实现一般需要用到「自定义回复」来提供切换命令,见 编写自定义回复

如果你想使用 JS 插件实现也是可以的,不过示例以更简单的自定义回复为例。

切换命令实现

正则匹配:mode switch(.*)
回复:

{%
+if $t1==""||$t1==" 默认" {$g文案模式 = 0; $t输出="默认模式启用"};
+if $t1==" 模式1" {$g文案模式 = 1; $t输出="模式1启用"};  
+if $t1==" 模式2" {$g文案模式 = 2; $t输出="模式2启用"};
+if $t1!=""&&$t1!=" 默认"&&$t1!=" 模式1"&&$t1!=" 模式2" {$t输出=`不存在指定模式{$t1}`};  
+$t输出
+%}
+

精确匹配:mode show
回复:

{% 
+$g文案模式==0 ? "当前在默认模式",
+$g文案模式==1 ? "当前在模式1" ,
+$g文案模式==2 ? "当前在模式2"
+%}
+

文案调整

按如下模式调整你的自定义文案项:

{
+if $g文案模式 == 0 {$t目标文案 = `(这里填你个性化的默认模式文案)`};
+if $g文案模式 == 1 {$t目标文案 = `(这里填你个性化的模式1文案)`};
+if $g文案模式 == 2 {$t目标文案 = `(这里填你个性化的模式2文案)`}
+}{$t目标文案}
+

展示

以修改了 .jrrp 的文案为例:

mode show
+输出:默认模式启用
+
+mode switch 模式1
+输出:模式1启用
+
+mode show
+输出:当前在模式1
+
+.jrrp
+输出:(这里填你个性化的模式1文案)
+
+mode switch 模式2
+输出:模式2启用
+
+.jrrp
+输出:(这里填你个性化的模式2文案)
+
+mode switch
+输出:默认模式启用
+
+.jrrp
+输出:(这里填你个性化的默认模式文案)
+
上次编辑于:
+ + + diff --git a/advanced/edit_deck.html b/advanced/edit_deck.html new file mode 100644 index 000000000..f98196651 --- /dev/null +++ b/advanced/edit_deck.html @@ -0,0 +1,331 @@ + + + + + + + + 编写牌堆 | 海豹手册 + + + + + + +
跳至主要內容

编写牌堆

大约 16 分钟

编写牌堆

本节内容

本节将介绍牌堆的编写,请善用侧边栏和搜索,按需阅读文档。

如果你有编程经验,可以直接跳转到 此处

概览

海豹核心目前支持 toml(新) json yaml 格式的牌堆。

如果对其中某种格式的语法有了解,建议选择熟悉的格式。如果都不了解,建议选择使用适用性最广的 json 格式。

当然,如果你的海豹版本较新,我们也非常推荐你尝试 toml 格式的牌堆编写。toml 格式诞生较晚,语法支持更多现代特性,海豹为这种格式的牌堆支持了更多功能。

牌堆文件的编码

永远使用「UTF-8 编码」来编写牌堆。

语法快速入门

我们将简单介绍 toml json yaml 的语法,仅说明牌堆编写中会用到的部分,帮助你快速了解它们。

深入学习

我们也非常建议你系统地学习它们,可以参见这些文档或自行搜索:

务必注意使用半角符号!

下面的语法中涉及到的符号都是半角符号,如果你出现了奇怪的问题,记得检查是否在输入法的中文输入状态,导致输入了错误的符号。

比如应该为 , 却使用了 ,应该为 "" 却使用了 “”

使用专业的编辑器能帮助你检查这些问题。

TOML 注释

注释以 # 开头,用来记录相关说明性内容。

# 这是注释
+
+key = "value" # 注释也可以放在行尾
+

TOML 键值对

「键值对」是 TOML 文档最基本的元素。

key = "value"
+

键名在等号的左边而值在右边,键、等号和值必须在同一行(有些值可以跨多行),不允许没有值。

值需要是下述类型之一:

  • 字符串:以 "" ''""" """ 包裹起来的一串文字
  • 整数、浮点数(即小数)
  • 布尔值:truefalse
  • 日期或时刻:采用 RFC 3339 格式,如 1919-08-10 1919-08-10 11:45:14
  • 数组:[] 包裹的一系列值
  • 内联表:表的一种紧凑表示法,{} 包裹的一系列键值对

键值对后必须换行(或结束文件)。

TOML 键名

键名可以是裸键名,也可以是用 "" 引起来的字符串,都将被看作是字符串(哪怕裸键是 1234 也是这样)。

  • 裸键只能包含 ASCII 字母,ASCII 数字,下划线和短横线(即只有 A-Za-z0-9_-)。
  • 引号键则允许包含任何 Unicode 字符(如中文),支持转义;

裸键名不支持中文

使用中文作为键名时,必须用引号包裹。

TOML 字符串

使用 "" 或者 '' 包裹的内容作为字符串。任何 Unicode 字符都可以使用,支持转义(如换行 \n、反斜杠 \ )。

如果字符串有很多行,可以使用多行字符串语法:

key = """
+这是多行字符串的语法,它支持你直接使用换行。
+不用再拼接 \n 来换行了,好耶!
+但是这样写在最前面会多出换行,因为第一行的空换行也直接读取了。
+"""
+
+key2 = """\
+这样写就没有开头的空行问题了。
+"""
+

多行换行符中,如果一行的最后一个非空白字符是未被转义的 \ 时,它会连同它后面的所有空白(包括换行)一起被去除,直到下一个非空白字符或结束引号为止。

TOML 表

表(哈希表、字典、对象,含义相同)是键值对的集合。「表头」为一个单独的 [] 包裹的行作为表名,后面的行都是该表的内容。

["海豹核心"]
+"简介" = "一个简单易用的跑团骰子系统"
+"状态" = "持续开发中"
+
+["狐狸核心"]
+"简介" = "一个更加简单易用的跑团骰子系统(什"
+"状态" = "根本不存在"
+

以上结构相当于 JSON 中的:

{
+  "海豹核心": {
+    "简介": "一个简单易用的跑团骰子系统",
+    "状态": "持续开发中"
+  },
+  "狐狸核心": {
+    "简介": "一个更加简单易用的跑团骰子系统(什",
+    "状态": "根本不存在"
+  }
+}
+

表还有一种更紧凑的内联表示法,必须在同一行内,且不支持尾逗号:

"海豹核心" = { "简介" = "一个简单易用的跑团骰子系统", "状态" = "持续开发中" }
+

TOML 数组

数组是用 [] 包裹的一系列值,子元素由 , 分隔。

TRPG = [
+  { name = "CoC", version = "7" },
+  { name = "D&D", version = "5e" }, # 多出一个逗号也是可以的
+]
+

基础牌堆编写

海豹的抽取指令为 .draw <key>,而牌堆就是可以提供一些 key 作为牌组的文件。

我们从编写一个最简单的牌堆开始,我们希望:

  1. 这个牌堆有 快端上来罢数字论证 两个牌组;
    • .draw 快端上来罢 可以抽取出 哼哼哼啊啊啊啊啊 你是一个一个一个牌堆结果 这两个结果;
    • .draw 数字论证 可以抽取出 114514 1919810 这两个结果。
  2. 填写一些信息(如作者),便于分享。

这个牌堆编写如下,你可以选择以下任意一种格式来学习:

# 元信息表
+[meta]
+title = "野兽牌堆"
+author = "田所浩二"
+# 有多个作者时可以使用,两者仅需保留一行
+authors = ["田所浩二"]
+version = "1.0"
+license = "CC-BY-NC-SA 4.0"
+date = 1919-08-10
+update_date = 1919-08-10
+desc = "这个示例牌堆怎么这么臭(恼)"
+
+# 牌组表
+[decks]
+"快端上来罢" = [
+  "哼哼哼啊啊啊啊啊",
+  "你是一个一个一个牌堆结果"
+]
+"数字论证" = [
+  "114514",
+  "1919810"
+]
+

一个 TOML 牌堆的最基本格式如上。其中 meta 表中的信息不是必须的,但我们非常建议你保留并填写这些项,它们能在分享时说明更多信息:

  • title:牌堆的标题;
  • author/authors:牌堆作者;
  • date:牌堆创建日期;
  • updateDate:牌堆更新日期;
  • desc:牌堆简介;
  • version:牌堆版本;
  • license:牌堆协议。

可以将上述内容保存名为 野兽牌堆.toml(名称任意,但必须是以 .toml 为后缀扩展名)的文件进行测试。

牌堆文件扩展名正确吗?

保存文件时务必确认开启了操作系统的扩展名显示,避免出现看上去保存了 xxx.json 文件,但实际上的文件名是 xxx.json.txt

牌堆语法

一个项中抽取其他项

牌堆抽取结果字符串中,可以实现抽取其他项,将内容拼接进该结果。

  • {key} 表示不放回抽取;
  • {%key} 表示放回抽取。
[decks]
+"时间点" = [
+  "早上",
+  "中午",
+  "晚上",
+]
+"追尾了" = [
+  "在{%时间点}追尾了一辆高级黑色轿车",
+]
+

放回与不放回

放回抽取表示每次抽取该项后,下次抽取还是从同样的结果中抽取。

不放回抽取表示抽取一次后,下一次会在剩余结果中抽取,直到抽完所有结果后再重新开始。

插入掷骰表达式

抽取结果字符串中的 [exp],会先执行其中的掷骰表达式 exp,再组合到原字符串里。

如:抽取 企鹅早该爆金币辣!v我[1d10]个金币 的结果可能是 企鹅早该爆金币辣!v我1个金币

旧的实现

研究旧牌堆,可能会发现有牌堆通过下面这样的写法来实现这个功能,现在请不要这么做了

{
+  "数字": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
+  "爆金币": "企鹅早该爆金币辣!v我{%数字}个金币"
+}
+

权重

抽取结果字符串中最前面的 ::value:: 表示该项的权重,可以理解为该项重复了几次。

权重可以是随机的::[1d10]::

示例:有 1/10 的几率出现闪光海豹

[decks]
+"捕捉海豹" = [
+  "::9::海豹",
+  "✨闪光海豹✨"
+]
+
旧的实现

研究旧牌堆,可能会发现有牌堆通过下面这样的写法来实现这个功能,现在请不要这么做了

{
+  "捕捉海豹": [
+    "海豹", "海豹", "海豹", "海豹", "海豹", "海豹", "海豹", "海豹", "海豹", 
+    "✨闪光海豹✨"
+  ]
+}
+

发送图片等

抽取结果字符串中可以插入 CQ 码和海豹码,比如 [图:data/images/sealdice.png]

牌组的隐藏和导出控制

.draw keys 指令会列出所有允许抽取的牌组,但在牌堆编写过程中,经常会需要用到辅助的牌组,这些辅助项是不希望暴露给用户的。我们可以通过一定方式来隐藏这些项。

在 TOML 牌堆中,当牌组的名称以 _ 开头,那么这个牌组将不会暴露在 .draw keys 中。

[decks]
+"_时间点" = [
+  "早上",
+  "中午",
+  "晚上",
+]
+"追尾了" = [
+  "在{%_时间点}追尾了一辆高级黑色轿车",
+]
+

这样在 .draw keys 中就不会展示 _时间点 这一牌组。

被隐藏的项不会在 .draw keys 中展示,但依然可以通过指定 .draw <key> 的方法抽取。如果你希望某些牌组彻底隐藏,只能在牌堆内部调用,可以通过配置它们的导出来实现:

在 TOML 牌堆中,当牌组的名称以 __(双下划线)开头,那么这个牌组将不导出,即无法使用 .draw <key> 进行抽取,更不会显示在列表中。

[decks]
+"__时间点" = [
+  "早上",
+  "中午",
+  "晚上",
+]
+"追尾了" = [
+  "在{%__时间点}追尾了一辆高级黑色轿车",
+]
+

UI 中识别隐藏的牌组

你可以通过查看牌堆管理界面中的「牌堆列表」来识别牌组是否隐藏。

牌堆列表
牌堆列表

灰色的牌组是隐藏的,即不展示在列表中,但能够被 .draw <key> 抽取。

未导出(不展示也不能抽取)的牌组不展示在该列表中。

配置牌堆更新

很多时候,牌堆内容不是一成不变的。而使用牌堆的用户需要手动去获取最新的牌堆,才能获得作者们提供的最新内容。

我们为牌堆提供了配置更新链接的机制,方便骰主快速获取牌堆更新。有能力的牌堆作者可以配置更新链接,便于分享最新的牌堆内容。

配置牌堆文件的 updateUrls 以指定对应的更新链接:

[meta]
+title = "野兽牌堆"
+updateUrls = [
+  "https://updateurl.com" # 此处填写你的更新链接
+]
+
+# 牌组表
+[decks]
+"快端上来罢" = [
+  "哼哼哼啊啊啊啊啊",
+  "你是一个一个一个牌堆结果"
+]
+"数字论证" = [
+  "114514",
+  "1919810"
+]
+

有多个更新链接时,海豹将依次从上往下检查更新。

TOML 牌堆的更多功能

更多牌组设置

TOML 牌堆中,你可以以表的形式来创建更复杂的牌组,这允许你更精细的控制每个牌组的选项。

复杂牌组和普通牌组在使用上没有什么区别,仅仅是提供了配置选项的能力。

[meta]
+title = "野兽牌堆"
+updateUrls = [
+  "https://updateurl.com" # 此处填写你的更新链接
+]
+
+# 简单牌组表
+[decks]
+"快端上来罢" = [
+  "哼哼哼啊啊啊啊啊",
+  "你是一个一个一个牌堆结果"
+]
+
+# 复杂牌组
+["数字论证"]
+export = true
+visible = true
+aliases = [ "恶臭论证" ]
+options = [
+  "114514",
+  "1919810",
+]
+

表名将作为这个牌组的名称,复杂牌组提供以下选项:

  • export:是否导出该牌组;
  • visible:该牌组是否可见,不可见的将不展示在 .draw keys 列表中;
  • aliases:牌组的别名,可以使用别名抽取改牌组,如上述示例中可以使用 .draw 数字论证.draw 恶臭论证 来抽取;
  • options:该牌组的项。

云端内容

施工中……

面向有经验用户的快速指南

施工中……

上次编辑于:
+ + + diff --git a/advanced/edit_helpdoc.html b/advanced/edit_helpdoc.html new file mode 100644 index 000000000..5c26bd7f5 --- /dev/null +++ b/advanced/edit_helpdoc.html @@ -0,0 +1,71 @@ + + + + + + + + 编写帮助文档 | 海豹手册 + + + + + + +
跳至主要內容

编写帮助文档

大约 3 分钟

编写帮助文档

本节内容

本节将介绍帮助文档的编写,请善用侧边栏和搜索,按需阅读文档。

我们假定你已了解 JSON 格式。如果你对 JSON 还很陌生,可以阅读以下教程或自行在互联网搜索:

创建 JSON 格式的帮助文档

你可以直接按照以下格式书写 <helpdoc>.json

{
+  "mod": "名字",
+  "author": "作者",
+  "brief": "概述",
+  "comment": "备注",
+  "helpdoc": {
+    "词条A": "词条 A 的具体内容。",
+    "词条B": "词条 B 的具体内容。",
+    "词条C": "[图:data/images/sealdice.png] 词条 C 的图片与内容。"
+  }
+}
+

若你的文本需要换行,你可以使用 \n 作为换行符,而不是在编写时直接换行,这会导致格式错误。你还可以使用 \f{FormFeed} 作为分页符。

标准 JSON 而不是 JSON5

海豹支持的 JSON 帮助文档是「标准 JSON」格式,诸如注释,尾逗号等语法不属于 JSON 语法,而是 JSON5 这个扩展标准的语法,出错时请严格检查。

目前暂不考虑支持 JSON5 标准。

文件编码

永远使用 UTF-8 编码编写 helpdoc。

你可以在 JSON 格式的帮助文档中嵌套引用其它条目:

{
+  "helpdoc": {
+    "词条A": "词条 A 的具体内容。",
+    "词条B": "{词条A}词条 B 的具体内容。",
+    "词条C": "你还可以 {词条A}\n{词条B}"
+  }
+}
+

如此一来当你发送 .help 词条 B 时,骰子将回复:「词条 A 的具体内容。词条 B 的具体内容。」。

示例文档:塔罗牌(节选)

{
+  "mod": "KIYTarot",
+  "author": "浣熊旅記",
+  "brief": "KIY 塔罗牌",
+  "comment": "释义来源网络。",
+  "helpdoc": {
+    "愚者逆位": "漂泊,冒险,鲁莽,冒失,疯狂,无视物质损失,灵魂堕落,内心空虚,感情轻浮。",
+    "魔术师逆位": "方向错误,被骗或失败,局面失控,二流角色,缺乏热忱和创造力,爱情难有进展。",
+    "女祭司逆位": "挑剔,贪心,目光短浅,洁癖,不适宜的激情,自尊心太强,锋芒外露,单相思。",
+    "女皇逆位": "冷淡,缺乏上进心,困难,享乐,环境险恶,贴近自然,自负,纠纷,感情挫折。",
+    "皇帝逆位": "幼稚,挫折,武断,滥用权利,冷酷,占有欲和控制力强烈,感情勉强。"
+  }
+}
+

创建 EXCEL 格式的帮助文档

你还可以按照以下格式书写 <helpdoc>.xlsx

KeySynonymContentDescriptionCatalogueTag
词条 A词条同义词词条内容对词条的简述所属目录内容 TAG
海豹骰豹骰/海豹/sealdice一个简单易用的跑团骰子系统。
形象是海豹,可以被叫做海豹骰、豹骰,豹子骰之类。

Excel 格式的 helpdoc 分为 KeySynonymContentDescriptionCatalogueTag 六块,其中第二列、后三项为选填,一般情况下你都可以留空。

  • Synonym 列可以填写多个同义词,使用 / 分隔即可。
  • Excel 中的词条内容可以直接换行(也可以使用 \n 来换行,但不支持其它换行符与分页符),因此它常用来快速编写有大段文字的帮助文档。
  • 帮助文档所在工作表的名称会作为前缀加入词条。如将工作表命名为 测试,则对应的词条会显示为 测试:词条 A。由于海豹的 .find 指令会对词条进行模糊检索,所以你不必担心前缀对查询带来的影响。

必须保留首行!

不要删去第一行的 KeySynonym 等词。请从第二行开始编写词条。

EXCEL 格式的帮助文档

<helpdoc>.xlsx 原本是梨骰用于 D&D 词条查询的格式,但海豹同样可以读取它。

上次编辑于:
+ + + diff --git a/advanced/edit_jsscript.html b/advanced/edit_jsscript.html new file mode 100644 index 000000000..9b4daa4d5 --- /dev/null +++ b/advanced/edit_jsscript.html @@ -0,0 +1,856 @@ + + + + + + + + 编写 JavaScript 插件 | 海豹手册 + + + + + + +
跳至主要內容

编写 JavaScript 插件

大约 29 分钟

编写 JavaScript 插件

本节内容

本节将介绍 JavaScript 脚本的编写,请善用侧边栏和搜索,按需阅读文档。

我们假定你熟悉 JavaScript / TypeScript,编程语言的教学超出了本文档的目的,如果你还不熟悉它们,可以从互联网上寻找到很多优秀的教程。如:

一些有帮助的资源

VS Code 可以安装 SealDice Snippetsopen in new window 插件,提供了一些常见代码片段,帮助快速生成模板代码。

如果你打算使用 TypeScript,海豹提供了相应的 模板工程open in new window,注册扩展和指令的代码已经写好,可以直接编译出一个可直接装载的 JS 扩展文件。使用见 使用 TS 模板

使用 TypeScript

我们更推荐使用 TypeScript 来编写插件,编译到 ES6 后使用即可。不过先从 JavaScript 开始也是没有任何问题的。

第一个 JS 扩展

我们从最简单的扩展开始,这个扩展只会在日志中打印一条 Hello World!

// ==UserScript==
+// @name         示例:如何开始
+// @author       木落
+// @version      1.0.0
+// @description  这是一个演示脚本,并没有任何实际作用。
+// @timestamp    1671368035
+// 2022-12-18
+// @license      Apache-2
+// @homepageURL  https://github.com/sealdice/javascript
+// ==/UserScript==
+
+console.log('Hello World!');
+

海豹对 JavaScript 的支持

海豹使用 gojaopen in new window 作为 js 脚本引擎。goja 目前支持了 ES6 基本上全部的特性,包括 async/awaitpromisegenerator

需要注意引擎的整型为 32 位,请小心溢出问题。

打印日志

console 打印出来的东西不仅会在控制台中出现,在日志中也会显示。

涉及网络请求或延迟执行的内容,有时候不会在控制台调试面板上显示出来,而在日志中能看到。

填写插件信息

每个 JS 扩展需要在开头以固定格式注释的形式留下信息,以便使用和分享:

// ==UserScript==
+// @name         脚本的名字
+// @author       木落
+// @version      1.0.0
+// @description  这是一个演示脚本,并没有任何实际作用。
+// @timestamp    1672066028
+// @license      Apache-2
+// @homepageURL  https://github.com/sealdice/javascript
+// ==/UserScript==
+
属性含义
@nameJS 扩展的名称,会展示在插件列表页面
@author作者名
@version版本号,可以自己定义,但建议遵循 语义版本控制(Semantic Versioning)open in new window
@description对扩展的功能的描述
@timestamp最后更新时间,以秒为单位的 unix 时间戳,新版本支持了直接使用时间字符串,如 2023-10-30
@license开源协议,示例中的 Apache-2 是一个比较自由的协议,允许任意使用和分发(包括商用),当然你也可以使用其它协议(MIT GPL 等)
@homepageURL你的扩展的主页链接,有 GitHub 仓库可以填仓库链接,没有则可以填海豹官方插件仓库

创建和注册扩展

扩展机制

扩展机制可以看做是海豹的 mod 管理机制,可以模块化开关海豹的任意一部分,如常用的开启 dnd 扩展,关闭 coc 扩展,关闭自动回复等。

可以查看 .ext 命令 来了解更多。

在海豹中,所有指令必须归属于某个扩展,而一个扩展可以包含多条指令。

JS 脚本中创建扩展的方式如下,在创建扩展后,还需要注册扩展,才能让扩展起效,不要漏掉哦!

// 如何建立一个扩展
+
+// 首先检查是否已经存在
+if (!seal.ext.find('test')) {
+  // 不存在,那么建立扩展,名为 test,作者“木落”,版本 1.0.0
+  const ext = seal.ext.new('test', '木落', '1.0.0');
+  // 注册扩展
+  seal.ext.register(ext);
+}
+

JS 脚本和扩展

在实现上,海豹允许你在一个 JS 脚本文件中注册多个扩展,但我们不建议这样做。一般来说,一个 JS 脚本文件只会注册一个扩展。

修改内置功能?

出于对公平性的考虑,JS 脚本不能替换内置指令和内置扩展。

自定义指令

想要创建一条自定义指令,首先需要创建一个扩展(seal.ExtInfo),写好自定义指令的实现逻辑之后,再注册到扩展中。

创建指令

接上面的代码,假定目前已经注册好了一个名为 test 的扩展,现在要写一个名为 seal 的指令:

  • 这个命令的功能为,显示「抓到一只海豹」的文案;
    • 如果命令写 .seal ABC,那么文案中将海豹命名为「ABC」;
    • 如果命令中没写名字,那么命名为默认值「氪豹」。

第一步,创建新的自定义指令,设置好名字和帮助信息。

const cmdSeal = seal.ext.newCmdItemInfo();
+cmdSeal.name = 'seal'; // 指令名字,可用中文
+cmdSeal.help = '召唤一只海豹,可用 .seal <名字> 命名';
+

命令的帮助信息

命令的帮助信息是在使用 .help <命令> 时会返回的帮助内容。

帮助信息不要. 开头,防止查看帮助时骰子的回复触发其他骰子。

第二步,编写指令的具体处理代码。

你需要编写指令对象的 solve 函数,在使用该指令的时候,海豹核心会调用你写的这个函数。

cmdSeal.solve = (ctx, msg, cmdArgs) => {
+    // 这里是你需要编写的内容
+};
+
参数说明
ctx主要是和当前环境以及用户相关的内容,如当前发指令用户,当前群组信息等
msg原始指令内容,如指令文本,发送平台,发送时间等
cmdArgs指令信息,会将用户发的信息进行分段,方便快速取用

这里仅说明需要用到的接口,详细可见 插件仓库open in new window examp_ts 下的 seal.d.ts 文件,里面包含了目前开放的接口的定义及其注释说明。

指令参数与返回值

假设用户发送过来的消息是 .seal A B C,那么可以用 cmdArgs.getArgN(1) 获取到 AcmdArgs.getArgN(2) 获取到 BcmdArgs.getArgN(3) 获取到 C

通常会对参数值进行判断,随后作出响应。

以下代码处理的是 .seal help 的情形:

cmdSeal.solve = (ctx, msg, cmdArgs) => {
+  // 获取第一个参数,例如 .seal A B C
+  // 这里 cmdArgs.getArgN(1) 的结果即是 A,传参为 2 的话结果是 B
+  let val = cmdArgs.getArgN(1);
+  switch (val) {
+    case 'help': {
+      // 命令为 .seal help
+      // 创建一个结果对象,并将 showHelp 标记为 true,这会自动给用户发送帮助
+      const ret = seal.ext.newCmdExecuteResult(true);
+      ret.showHelp = true;
+      return ret;
+    }
+    default: {
+      // 没有传入参数时的代码
+      return seal.ext.newCmdExecuteResult(true);
+    }
+  }
+};
+

返回执行结果

在执行完自己的代码之后,需要返回指令结果对象,其参数是是否执行成功。

指令核心执行流程

给消息发送者回应,需要使用 seal.replyToSender() 函数,前两个参数和 solve() 函数接收的参数一致,第三个参数是你要发送的文本。

发送的文本中,可以包含 变量(例如{$t玩家}),也可以包含 CQ 码open in new window,用来实现回复发送者、@发送者、发送图片、发送分享卡片等功能。

在这个例子中,我们需要获取作为海豹名字的参数,获取不到就使用默认值,随后向消息发送者发送回应。

在刚刚的位置填入核心代码,就可以完成了。

cmdSeal.solve = (ctx, msg, cmdArgs) => {
+  // 获取第一个参数,例如 .seal A B C
+  // 这里 cmdArgs.getArgN(1) 的结果即是 A,传参为 2 的话结果是 B
+  let val = cmdArgs.getArgN(1);
+  switch (val) {
+    case 'help': {
+      // 命令为 .seal help
+      // 创建一个结果对象,并将 showHelp 标记为 true,这会自动给用户发送帮助
+      const ret = seal.ext.newCmdExecuteResult(true);
+      ret.showHelp = true;
+      return ret;
+    }
+    default: {
+      // 命令为 .seal XXXX,取第一个参数为名字
+      if (!val) val = '氪豹';
+      // 进行回复,如果是群聊发送那么在群里回复,私聊发送则在私聊回复 (听起来是废话文学,但详细区别见暗骰例子)
+      seal.replyToSender(ctx, msg, `你抓到一只海豹!取名为${val}\n它的逃跑意愿为${Math.ceil(Math.random() * 100)}`);
+      return seal.ext.newCmdExecuteResult(true);
+    }
+  }
+};
+

注册指令

第三步,将命令注册到扩展中。

ext.cmdMap['seal'] = cmdSeal;
+

如果你想要给这个命令起一个别名,也就是增加一个触发词,可以这样写:

ext.cmdMap['seal'] = cmdSeal; // 注册 .seal 指令
+ext.cmdMap['海豹'] = cmdSeal; // 注册 .海豹 指令,等效于 .seal
+

完整的代码如下:

// ==UserScript==
+// @name         示例:编写一条自定义指令
+// @author       木落
+// @version      1.0.0
+// @description  召唤一只海豹,可用.seal <名字> 命名
+// @timestamp    1671368035
+// 2022-12-18
+// @license      Apache-2
+// @homepageURL  https://github.com/sealdice/javascript
+// ==/UserScript==
+
+// 编写一条自定义指令
+// 先将扩展模块创建出来,如果已创建就直接使用
+let ext = seal.ext.find('test');
+if (!ext) {
+  ext = seal.ext.new('test', '木落', '1.0.0');
+  seal.ext.register(ext);
+}
+
+// 创建指令 .seal
+// 这个命令的功能为,显示「抓到一只海豹」的文案;
+// 如果命令写 .seal ABC,那么文案中将海豹命名为「ABC」;
+// 如果命令中没写名字,那么命名为默认值「氪豹」。
+const cmdSeal = seal.ext.newCmdItemInfo();
+cmdSeal.name = 'seal'; // 指令名字,可用中文
+cmdSeal.help = '召唤一只海豹,可用 .seal <名字> 命名';
+
+// 主函数,指令解析器会将指令信息解析,并储存在几个参数中
+// ctx 主要是和当前环境以及用户相关的内容,如当前发指令用户,当前群组信息等
+// msg 为原生态的指令内容,如指令文本,发送平台,发送时间等
+// cmdArgs 为指令信息,会将用户发的信息进行分段,方便快速取用
+cmdSeal.solve = (ctx, msg, cmdArgs) => {
+  // 获取第一个参数,例如 .seal A B C
+  // 这里 cmdArgs.getArgN(1) 的结果即是 A,传参为 2 的话结果是 B
+  let val = cmdArgs.getArgN(1);
+  switch (val) {
+    case 'help': {
+      // 命令为 .seal help
+      // 创建一个结果对象,并将 showHelp 标记为 true,这会自动给用户发送帮助
+      const ret = seal.ext.newCmdExecuteResult(true);
+      ret.showHelp = true;
+      return ret;
+    }
+    default: {
+      // 命令为 .seal XXXX,取第一个参数为名字
+      if (!val) val = '氪豹';
+      // 进行回复,如果是群聊发送那么在群里回复,私聊发送则在私聊回复 (听起来是废话文学,但详细区别见暗骰例子)
+      seal.replyToSender(ctx, msg, `你抓到一只海豹!取名为${val}\n它的逃跑意愿为${Math.ceil(Math.random() * 100)}`);
+      return seal.ext.newCmdExecuteResult(true);
+    }
+  }
+};
+
+// 将命令注册到扩展中
+ext.cmdMap['seal'] = cmdSeal;
+
+// 无实际意义,用于消除编译报错
+export {}
+

这就是最基本的模板了。

示例

生成随机数

可以使用以下函数生成随机整数:

/**
+ * 生成随机整数
+ * @param min 最小值
+ * @param max 最大值
+ * @returns 位于 [min,max] 区间的随机整数
+ */
+function randomInt(min, max) {
+  return Math.floor(Math.random() * (max - min + 1)) + min;
+}
+

抽取牌堆

施工中……

存取数据

相关的 API 是两个函数,ExtInfo.storageSet(key, value) 函数和 ExtInfo.storageGet(key),一个存,一个取。

关于 key:

存储时需要指定 key,你可以设定为你的扩展的名字,也可以设定为其他的,注意不要和别的扩展的 key 重名就可以了。

就好比你在商场门口想要把随身物品存进暂存柜中,需要先找到个和别人不重复的柜子,避免放错地方或者取错东西。

关于 value:

存放的数据是字符串类型,且只能存一个,但如果想要存放更多的数据以及非字符串类型的数据怎么办?

答案是使用 JSON.stringify() 函数将存储了数据的 JS 对象转换为 JSONopen in new window 字符串,存储起来,需要取出的时候,再使用 JSON.parse() 函数将数据再转换为 JS 对象。。

示例代码:投喂插件

// ==UserScript==
+// @name         示例:存储数据
+// @author       木落
+// @version      1.0.0
+// @description  投喂,格式 .投喂 <物品>
+// @timestamp    1672423909
+// 2022-12-31
+// @license      Apache-2
+// @homepageURL  https://github.com/sealdice/javascript
+// ==/UserScript==
+
+// 先将扩展模块创建出来,如果已创建就直接使用
+let ext = seal.ext.find('test');
+if (!ext) {
+  ext = seal.ext.new('test', '木落', '1.0.0');
+  seal.ext.register(ext);
+}
+const cmdFeed = seal.ext.newCmdItemInfo();
+cmdFeed.name = '投喂';
+cmdFeed.help = '投喂,格式:.投喂 <物品>\n.投喂 记录 // 查看记录';
+cmdFeed.solve = (ctx, msg, cmdArgs) => {
+  let val = cmdArgs.getArgN(1);
+  switch (val) {
+    case 'help':
+    case '': {
+      // .投喂 help
+      const ret = seal.ext.newCmdExecuteResult(true);
+      ret.showHelp = true;
+      return ret;
+    }
+    case '列表':
+    case '记录':
+    case 'list': {
+      const data = JSON.parse(ext.storageGet('feedInfo') || '{}');
+      const lst = [];
+      for (let [k, v] of Object.entries(data)) {
+        lst.push(`- ${k}: 数量 ${v}`);
+      }
+      seal.replyToSender(ctx, msg, `投喂记录:\n${lst.join('\n')}`);
+      return seal.ext.newCmdExecuteResult(true);
+    }
+    default: {
+      const data = JSON.parse(ext.storageGet('feedInfo') || '{}');
+      const name = val || '空气';
+      if (data[name] === undefined) {
+        data[name] = 0;
+      }
+      data[name] += 1;
+      ext.storageSet('feedInfo', JSON.stringify(data));
+      seal.replyToSender(ctx, msg, `你给海豹投喂了${name},要爱护动物!`);
+      return seal.ext.newCmdExecuteResult(true);
+    }
+  }
+};
+// 将命令注册到扩展中
+ext.cmdMap['投喂'] = cmdFeed;
+ext.cmdMap['feed'] = cmdFeed;
+

示例代码:群内安价收集

这是关于数据的增加、删除、查询等操作的实现示例(修改的话就是删除之后增加)

// ==UserScript==
+// @name         群内安价收集
+// @author       憧憬少
+// @version      1.0.0
+// @description  在群内收集群友给出的安价选项,并掷骰得出结果
+// @timestamp    1676386517
+// 2023-02-14 22:55:17
+// @license      MIT
+// @homepageURL  https://github.com/ChangingSelf/sealdice-js-ext-anchor
+// ==/UserScript==
+
+(() => {
+  // src/index.ts
+  const HELP = `群内安价收集 (ak 是アンカー罗马字缩写)
+注意 ak 后面有空格,“.ak”也可以换成“.安价”
+
+.ak help // 查看帮助
+.ak # 标题 // 新建一轮分歧并设标题
+.ak + 选项 // 需要添加的选项的内容
+.ak - 序号 // 需要移除的选项的序号
+.ak ? // 列出目前所有选项
+.ak = // 随机抽取 1 个选项并继续
+.ak = n // 随机抽取 n 个选项并继续
+`;
+  const STORAGE_KEY = "anchor";
+  const OPTION_NUM_PER_PAGE = 15; // 列出所有选项时,每页放多少个选项
+  function akNew(ctx, msg, ext, title) {
+    const data = {
+      "title": title,
+      "options": []
+    };
+    ext.storageSet(STORAGE_KEY, JSON.stringify(data));
+    seal.replyToSender(ctx, msg, `已新建分歧:${title}`);
+  }
+  function akAdd(ctx, msg, ext, option) {
+    const data = JSON.parse(ext.storageGet(STORAGE_KEY) || '{"title":"","options":[]}');
+    data.options.push(option);
+    seal.replyToSender(ctx, msg, `当前分歧:${data.title}
+已添加第${data.options.length}个选项:${option}`);
+    ext.storageSet(STORAGE_KEY, JSON.stringify(data));
+  }
+  function akDel(ctx, msg, ext, index) {
+    const data = JSON.parse(ext.storageGet(STORAGE_KEY) || '{"title":"","options":[]}');
+    const removed = data.options.splice(index - 1, 1)[0];
+    seal.replyToSender(ctx, msg, `当前分歧:${data.title}
+已移除第${index}个选项:${removed}`);
+    ext.storageSet(STORAGE_KEY, JSON.stringify(data));
+  }
+  function akList(ctx, msg, ext) {
+    const data = JSON.parse(ext.storageGet(STORAGE_KEY) || '{"title":"","options":[]}');
+    if (data.options.length === 0) {
+      seal.replyToSender(ctx, msg, `当前分歧:${data.title}
+还没有任何选项呢`);
+      return;
+    }
+    let optStr = "";
+    let curPageRows = 0;
+    data.options.forEach((value, index) => {
+      optStr += `${index + 1}.${value}
+`;
+      ++curPageRows;
+      if (curPageRows >= OPTION_NUM_PER_PAGE) {
+        seal.replyToSender(ctx, msg, `当前分歧:${data.title}
+${optStr}`);
+        optStr = "";
+        curPageRows = 0;
+      }
+    });
+    if (curPageRows > 0) {
+      seal.replyToSender(ctx, msg, `当前分歧:${data.title}
+${optStr}`);
+    }
+  }
+  function randomInt(min, max) {
+    return Math.floor(Math.random() * (max - min + 1)) + min;
+  }
+  function akGet(ctx, msg, ext, num = 1) {
+    const data = JSON.parse(ext.storageGet(STORAGE_KEY) || '{"title":"","options":[]}');
+    if (data.options.length === 0) {
+      seal.replyToSender(ctx, msg, `当前分歧:${data.title}
+还没有任何选项呢`);
+      return;
+    }
+    akList(ctx, msg, ext);
+    let optStr = "";
+    for (let i = 0; i < num; ++i) {
+      const r = randomInt(1, data.options.length);
+      const result = data.options.splice(r - 1, 1);
+      optStr += `${i + 1}.${result}
+`;
+    }
+    seal.replyToSender(ctx, msg, `结果是:
+${optStr}`);
+    ext.storageSet(STORAGE_KEY, JSON.stringify(data));
+  }
+  function main() {
+    let ext = seal.ext.find("anchor");
+    if (!ext) {
+      ext = seal.ext.new("anchor", "憧憬少", "1.0.0");
+      seal.ext.register(ext);
+    }
+    const cmdSeal = seal.ext.newCmdItemInfo();
+    cmdSeal.name = "安价";
+    cmdSeal.help = HELP;
+    cmdSeal.solve = (ctx, msg, cmdArgs) => {
+      try {
+        let val = cmdArgs.getArgN(1);
+        switch (val) {
+          case "#": {
+            const title = cmdArgs.getArgN(2);
+            akNew(ctx, msg, ext, title);
+            return seal.ext.newCmdExecuteResult(true);
+          }
+          case "+": {
+            const option = cmdArgs.getArgN(2);
+            akAdd(ctx, msg, ext, option);
+            return seal.ext.newCmdExecuteResult(true);
+          }
+          case "-": {
+            const index = Number(cmdArgs.getArgN(2));
+            akDel(ctx, msg, ext, index);
+            return seal.ext.newCmdExecuteResult(true);
+          }
+          case "?":
+          case "?": {
+            akList(ctx, msg, ext);
+            return seal.ext.newCmdExecuteResult(true);
+          }
+          case "=": {
+            let num = 1;
+            if (cmdArgs.args.length >= 2) {
+              num = Number(cmdArgs.getArgN(2));
+            }
+            akGet(ctx, msg, ext, num);
+            return seal.ext.newCmdExecuteResult(true);
+          }
+          case "help":
+          default: {
+            const ret = seal.ext.newCmdExecuteResult(true);
+            ret.showHelp = true;
+            return ret;
+          }
+        }
+      } catch (error) {
+        seal.replyToSender(ctx, msg, error.Message);
+        return seal.ext.newCmdExecuteResult(true);
+      }
+    };
+    ext.cmdMap["安价"] = cmdSeal;
+    ext.cmdMap["ak"] = cmdSeal;
+  }
+  main();
+})();
+
+

数据处理模板

关于取出数据来修改的函数,可以参考如下代码:

const STORAGE_KEY = "anchor"; // 将你的 key 抽出来单独作为一个常量,方便开发阶段修改(使用了之后就不要修改了)
+//函数:添加选项
+function akAdd(ctx, msg, ext, option) {
+    //取出数据
+    const data = JSON.parse(ext.storageGet(STORAGE_KEY) || '{"title":"","options":[]}');
+    
+    //处理数据
+    data.options.push(option);
+    
+    //响应发送者
+    seal.replyToSender(ctx, msg, `当前分歧:${data.title}\n已添加第${data.options.length}个选项:${option}`);
+    
+    //将处理完的数据写回去
+    ext.storageSet(STORAGE_KEY, JSON.stringify(data));
+}
+

读取玩家或群组数据

可以查看下文的 API

编写暗骰指令

如下:

// ==UserScript==
+// @name         示例:编写暗骰指令
+// @author       流溪
+// @version      1.0.0
+// @description  暗骰,格式.hide 原因
+// @timestamp    1671540835
+// 2022-12-20
+// @license      Apache-2
+// @homepageURL  https://github.com/sealdice/javascript
+// ==/UserScript==
+ext = seal.ext.find('hide');
+if (!ext){
+    ext = seal.ext.new('hide','流溪','0.0.1');
+    seal.ext.register(ext);
+}
+const cmdHide = seal.ext.newCmdItemInfo;
+cmdHide.name = 'hide';
+cmdHide.help = '暗骰,使用 .hide 面数 暗骰';
+cmdHide.solve = (ctx, msg, cmdArgs) => {
+    if (msg.messageType !== 'group'){
+        seal.replyToSender(ctx, msg, '暗骰只能在群内触发');
+        return seal.ext.newCmdExecuteResult(true);
+    }
+    function rd(x){
+        // 这里写的时候有点不清醒了,感觉是对的,如果不对请拷打我
+        return Math.round(Math.random() * (x - 1) + 1);
+    }
+    let x = cmdArgs.getArgN(1);
+    if (x === 'help'){
+        return seal.ext.newCmdExecuteResult(true).showhelp = true;
+    } else if (isNaN(Number(x))){
+        // 我知道这里有更好的判断是否为数字的方法但是我不会.jpg
+        seal.replyToSender(ctx, msg, `骰子面数应是数字`);
+        return seal.ext.newCmdExecuteResult(true);
+    } else {
+        // 这就是暗骰 api 哒!
+        seal.replyPerson(ctx, msg, `你在群${msg.groupId}的掷骰结果为:${rd(x)}`);
+        return seal.ext.newCmdExecuteResult(true);
+    }
+}
+ext.cmdMap['hide'] = cmdHide;
+

可以看到使用seal.replyPerson做到暗骰的效果。

编写代骰指令

// ==UserScript==
+// @name         示例:编写代骰指令
+// @author       木落
+// @version      1.0.0
+// @description  捕捉某人,格式.catch <@名字>
+// @timestamp    1671540835
+// 2022-12-20
+// @license      Apache-2
+// @homepageURL  https://github.com/sealdice/javascript
+// ==/UserScript==
+
+// 编写代骰指令
+// 先将扩展模块创建出来,如果已创建就直接使用
+let ext = seal.ext.find('test');
+if (!ext) {
+  ext = seal.ext.new('test', '木落', '1.0.0');
+  seal.ext.register(ext);
+}
+// 创建指令 .catch
+// 这个命令的功能为,显示“试图捕捉某人”,并给出成功率
+// 如果命令写“.catch @张三”,那么就会试着捕捉张三
+const cmdCatch = seal.ext.newCmdItemInfo();
+cmdCatch.name = 'catch';
+cmdCatch.help = '捕捉某人,格式.catch <@名字>';
+// 对这个指令启用使用代骰功能,即@某人时,可获取对方的数据,以对方身份进行骰点
+cmdCatch.allowDelegate = true;
+cmdCatch.solve = (ctx, msg, cmdArgs) => {
+  // 获取对方数据,之后用 mctx 替代 ctx,mctx 下读出的数据即被代骰者的个人数据
+  const mctx = seal.getCtxProxyFirst(ctx, msg);
+  let val = cmdArgs.getArgN(1);
+  switch (val) {
+    case 'help': {
+      // 命令为 .catch help
+      const ret = seal.ext.newCmdExecuteResult(true);
+      ret.showHelp = true;
+      return ret;
+    }
+    default: {
+      const text = `正在试图捕捉${mctx.player.name},成功率为${Math.ceil(Math.random() * 100)}%`;
+      seal.replyToSender(mctx, msg, text);
+      return seal.ext.newCmdExecuteResult(true);
+    }
+  }
+};
+// 将命令注册到扩展中
+ext.cmdMap['catch'] = cmdCatch;
+
+

网络请求

主要使用 Fetch APIopen in new window 进行网络请求,详细文档见链接。

// 你可以使用 async/await 和 generator 来重写这段代码,欢迎 pr
+// 访问网址
+fetch('https://api-music.imsyy.top/cloudsearch?keywords=稻香').then((resp) => {
+  // 在返回对象的基础上,将文本流作为 json 解析
+  resp.json().then((data) => {
+    // 打印解析出的数据
+    console.log(JSON.stringify(data));
+  });
+});
+

套用这个模板,你可以写出很多调用 API 的简单扩展。

比如核心代码只有一行的「随机猫猫图片open in new window」扩展:

seal.replyToSender(ctx, msg, `[CQ:image,file=https://thiscatdoesnotexist.com/,cache=0]`);
+

核心代码同样只有一行的「随机二次元图片」扩展:

seal.replyToSender(ctx, msg, `[CQ:image,file=https://api.oick.cn/random/api.php?type=${val},cache=0]`);
+

当然,也有稍微复杂的,比如「AI 骰娘open in new window」扩展,但也没有太复杂,只是处理了一下发送者传过来的消息,再发送给网络 API,收到响应之后再回应发送者。

它的核心代码如下:

const BID = ''; // 填入你的骰娘的大脑的 id
+const KEY = ''; // 填入你的 key
+/**
+ * 给 AI 主脑发送消息并接收回复
+ * @param ctx 主要是和当前环境以及用户相关的内容,如当前发指令用户,当前群组信息等
+ * @param msg 为原生态的指令内容,如指令文本,发送平台,发送时间等
+ * @param message 要发送给骰娘的具体消息
+ */
+function chatWithBot(ctx,msg,message) {
+    fetch(`http://api.brainshop.ai/get?bid=${BID}&key=${KEY}&uid=${msg.sender.userId}&msg=${message}`).then(response => {
+      if (!response.ok) {
+        seal.replyToSender(ctx, msg, `抱歉,我连接不上主脑了。它传递过来的信息是:${response.status}`);
+        return seal.ext.newCmdExecuteResult(false);
+      } else {
+        response.json().then(data => {
+          seal.replyToSender(ctx, msg, data["cnt"]);
+          return seal.ext.newCmdExecuteResult(true);
+        });
+        return seal.ext.newCmdExecuteResult(true);
+      }
+    });
+}
+

自定义 COC 规则

// ==UserScript==
+// @name         示例:自定义 COC 规则
+// @author       木落
+// @version      1.0.0
+// @description  自设规则,出 1 大成功,出 100 大失败。困难极难等保持原样
+// @timestamp    1671886435
+// 2022-12-24
+// @license      Apache-2
+// @homepageURL  https://github.com/sealdice/javascript
+// ==/UserScript==
+
+const rule = seal.coc.newRule();
+rule.index = 20; // 自定义序号必须大于等于 20,代表可用.setcoc 20 切换
+rule.key = '测试'; // 代表可用 .setcoc 测试 切换
+rule.name = '自设规则'; // 已切换至规则文本 name: desc
+rule.desc = '出 1 大成功\n出 100 大失败';
+// d100 为出目,checkValue 为技能点数
+rule.check = (ctx, d100, checkValue) => {
+  let successRank = 0;
+  const criticalSuccessValue = 1;
+  const fumbleValue = 100;
+  if (d100 <= checkValue) {
+    successRank = 1;
+  } else {
+    successRank = -1;
+  }
+  // 成功判定
+  if (successRank == 1) {
+    // 区分大成功、困难成功、极难成功等
+    if (d100 <= checkValue / 2) {
+      //suffix = "成功(困难)"
+      successRank = 2;
+    }
+    if (d100 <= checkValue / 5) {
+      //suffix = "成功(极难)"
+      successRank = 3;
+    }
+    if (d100 <= criticalSuccessValue) {
+      //suffix = "大成功!"
+      successRank = 4;
+    }
+  } else {
+    if (d100 >= fumbleValue) {
+      //suffix = "大失败!"
+      successRank = -2;
+    }
+  }
+  let ret = seal.coc.newRuleCheckResult();
+  ret.successRank = successRank;
+  ret.criticalSuccessValue = criticalSuccessValue;
+  return ret;
+};
+// 注册规则
+seal.coc.registerRule(rule);
+
+

补充:使用非指令关键词

你是否因为自定义回复能实现的功能有限而烦恼?你是否因为自定义回复的匹配方式不全而愤怒?你是否因为自定义回复只能调用图片 api 而感到焦头烂额?

不要紧张,我的朋友,试试非指令关键词,这会非常有用。

通常情况下,我们使用 ext.onNotCommandReceived 作为非指令关键词的标志;这限定了只有在未收到命令且未达成自定义回复时,海豹才会触发此流程。

一个完整的非指令关键词模板如下:

// 必要流程,注册扩展,注意即使是非指令关键词也是依附于扩展的  
+if (!seal.ext.find('xxx')){    
+    ext = seal.ext.new('xxx','xxx','x.x.x');    
+    seal.ext.register(ext); 
+    // 这里其实是编写处理函数     
+    ext.onNotCommandReceived = (ctx, msg) => {    
+        let message = msg.message;  
+        // 这里请自己处理要如何达成 message 的匹配条件,js 那么多的匹配方法,足够你玩出花来。  
+        if(xxx){
+          // 匹配到关键词了,要干什么?  
+          xxx;
+        }
+    }
+}
+

注册插件配置项

插件若要在 UI 中注册可供用户修改的配置项,需要在插件注册后调用 seal.ext.registerXXXConfig() 函数注册配置项。

XXX 为配置项的类型,目前支持 stringintfloatbooltemplateoption 六种类型。注意按照小驼峰命名法大写

同样的,插件也可以使用 seal.ext.getXXXConfig() 函数获取配置项的值。

你也可以直接使用 seal.ext.getConfig() 函数获取配置项的值,这个函数会返回一个 ConfigItem 对象,
包含了配置项的类型、值、默认值等信息。

ConfigItem 对象的类型定义如下,调用时请使用 jsbind 中的值作为 key

type ConfigItem struct {
+	Key          string      `json:"key" jsbind:"key"`
+	Type         string      `json:"type" jsbind:"type"`
+	DefaultValue interface{} `json:"defaultValue" jsbind:"defaultValue"`
+	Value        interface{} `json:"value,omitempty" jsbind:"value"`
+	Option       interface{} `json:"option,omitempty" jsbind:"option"`
+	Deprecated   bool        `json:"deprecated,omitempty" jsbind:"deprecated"`
+}
+

更原始的 API

seal.ext.registerConfig() 函数也是可以使用的,你需要自己通过 seal.ext.newConfigItem() 来获取一个新的 ConfigItem 对象。

在对你的 ConfigItem 对象进行修改后,再调用 seal.ext.registerConfig() 函数进行注册。

示例代码:注册配置项

// ==UserScript==
+// @name         js-config-example
+// @author       Szzrain
+// @version      1.0.0
+// @description  演示 js 配置项的用法
+// @timestamp    1698636875
+// @license      MIT
+// ==/UserScript==
+
+if (!seal.ext.find('js-config-example')) {
+    const ext = seal.ext.new('js-config-example', 'SzzRain', '1.0.0');
+    // 创建一个命令
+    const cmdgetConfig = seal.ext.newCmdItemInfo();
+    cmdgetConfig.name = 'getconfig';
+    cmdgetConfig.help = '使用.getconfig <key> 来获取配置项,仅 master 可用';
+    cmdgetConfig.allowDelegate = true;
+    cmdgetConfig.solve = (ctx, msg, cmdArgs) => {
+        let val = cmdArgs.getArgN(1);
+        switch (val) {
+            case 'help': {
+                const ret = seal.ext.newCmdExecuteResult(true);
+                ret.showHelp = true;
+                return ret;
+            }
+            default: {
+                if (ctx.privilegeLevel === 100) {
+                    let config = seal.ext.getConfig(ext, val);
+                    if (config) {
+                        seal.replyToSender(ctx, msg, config.value);
+                    }
+                } else {
+                    seal.replyToSender(ctx, msg, "你没有权限执行此命令");
+                }
+                return seal.ext.newCmdExecuteResult(true);
+            }
+        }
+    }
+    // 注册命令
+    ext.cmdMap['getconfig'] = cmdgetConfig;
+
+    // 注册扩展
+    seal.ext.register(ext);
+
+    // 注册配置项需在 ext 注册后进行
+    // 通常来说,register 函数的参数为 ext, key, defaultValue
+    seal.ext.registerStringConfig(ext,"testkey","testvalue");
+    seal.ext.registerIntConfig(ext,"testkey2", 123);
+    seal.ext.registerFloatConfig(ext,"testkey2", 123.456);
+    seal.ext.registerBoolConfig(ext,"testkey3", true);
+    seal.ext.registerTemplateConfig(ext,"testkey4", ["1","2","3","4"]);
+    // 注册单选项函数的参数为 ext, key, defaultValue, options
+    seal.ext.registerOptionConfig(ext, "testkey5", "1", ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"]);
+}
+

注册后的配置项会在 UI 中显示,可以在 UI 中修改配置项的值

JS 配置项
JS 配置项

使用 TS 模板

clone 或下载项目

推荐的流程:

  1. 模板项目仓库open in new window 点击 Use this template 按钮,使用该模板在自己的 GitHub 上创建一个扩展的仓库,并设置为自己的扩展的名字;
  2. git clone 到本地,进行开发。

如果你没有 GitHub 账号,也不会用 git:

  1. 模板项目仓库open in new window 点击 Code 按钮,在出现的浮窗中选择 Download ZIP,这样就会下载一个压缩包;
  2. 解压后进行开发。

使用和编译

TS 插件代码需要编译为 js 文件才能被海豹核心加载。

开始使用模板工程时,需要先将所需依赖包安装好。在确认你所使用的包管理器后,在命令行使用如下命令:

npm install
+

当你写好了代码,需要将 ts 文件转换为 js 文件以便上传到海豹骰时,在命令行使用如下命令:

npm run build
+

编译成功的 js 文件在 dist 目录下,默认的名字是 sealdce-js-ext.js

补全信息

当插件开发完成后(或者开始开发时),你还需要修改几处地方:

  • header.txt:这个文件是你插件的描述信息;
  • tools/build-config.js:最开头一行 var filename = 'sealdce-js-ext.js'; 改成你中意的名字,注意不要与现有的重名。

目录结构

只列出其中主要的一些文件

  • src
    • index.ts:你的扩展的代码就写在这个文件里。
  • tools
    • build-config:一些编译的配置,影响 index.ts 编译成 js 文件的方式;
    • build.js:在命令 npm run build 执行时所运行的脚本,用于读取 build-config 并按照配置进行编译。
  • types
    • seal.d.ts:类型文件,海豹核心提供的扩展 API。
  • header.txt:扩展头信息,会在编译时自动加到目标文件头部;
  • package.json:命令 npm install 时就在安装这个文件里面所指示的依赖包;
  • tsconfig.json:typescript 的配置。

JS 扩展 API

这里只是粗略的整理,具体请看 jsvm 源码open in new window

按类别整理。

其中 ctx 为信息的 MsgContext,msg 为信息的 Message,一般会在定义指令函数时就声明,如:

cmd.solve = (ctx, msg, cmdArgs) => {
+    someFunction;
+} 
+

下面是 api 的说明(完全了吧......应该?):

//被注释掉的 api 是可以提供的,但是在源码中被注释。  
+//seal.setVarInt(ctx, `$XXX`, valueToSet) //`$XXX`即 rollvm(初阶豹语)中的变量,其会将$XXX 的值设定为 int 类型的 valueToSet。  
+//seal.setVarStr(ctx, `$XXX`, valueToSet) //同上,区别是设定的为 str 类型的 valueToSet。  
+seal.replyGroup(ctx, msg, something) //向收到指令的群中发送 something。  
+seal.replyPerson(ctx, msg, something) //顾名思义,类似暗骰,向指令触发者(若为好友)私信 something。  
+seal.replyToSender(ctx, msg, something) //同上,区别是群内收到就群内发送,私聊收到就私聊发送。  
+seal.memberBan(ctx, groupID, userID, dur) //将指定群的指定用户封禁指定时间 (似乎只实现了 walleq 协议?)
+seal.memberKick(ctx, groupID, userID)  //将指定群的指定用户踢出 (似乎也只实现了 walleq 协议?)
+seal.format(ctx, something) //将 something 经过一层 rollvm 转译并返回,注意需要配合 replyToSender 才能发送给触发者!  
+seal.formatTmpl(ctx, something) //调用自定义文案 something  
+seal.getCtxProxyFirst(ctx, cmdArgs)  //获取被 at 的第一个人,等价于 getCtxProxyAtPos(ctx, 0)  
+seal.vars.intGet(ctx, `$XXX`) //返回一个数组,其为 `[int 类型的触发者的该变量的值,bool]` 当 strGet 一个 int 或 intGet 一个 str 时 bool 为 false,若一切正常则为 true。(之所以会有这么奇怪的说法是因为 rollvm 的「个人变量」机制)。  
+seal.vars.intSet(ctx, `$XXX`, valueToSet) //`$XXX` 即 rollvm(初阶豹语)中的变量,其会将 $XXX 的值设定为 int 类型的 valueToSet。  
+seal.vars.strGet(ctx, `$XXX`) //返回一个数组,其为 `[str 类型的触发者的该变量的值,bool]`(之所以会有这么奇怪的说法是因为 rollvm 的「个人变量」机制),当 strGet 一个 int 或 intGet 一个 str 时 bool 为 false,如果一切正常则为 true。  
+seal.vars.strSet(ctx, `$XXX`, valueToSet) //`$XXX` 即 rollvm(初阶豹语)中的变量,其会将 $XXX 的值设定为 str 类型的 valueToSet。  
+//seal.vars.varSet(ctx, `$XXX`, valueToSet) //可能是根据数据类型自动推断 int 或 str?
+//seal.vars.varGet(ctx, `$XXX`) //同上
+seal.ext.newCmdItemInfo() //用来定义新的指令;没有参数,个人觉得可以视其为类(class)。  
+seal.ext.newCmdExecuteResult(bool) //用于判断指令执行结果,true 为成功,false 为失败。  
+seal.ext.new(extName, extAuthor, Version) //用于建立一个名为 extName,作者为 extAuthor,版本为 Version 的扩展。注意,extName,extAuthor 和 Version 均为字符串。  
+seal.ext.find(extName) //用于查找名为 extname 的扩展,若存在则返回 true,否则返回 false。  
+seal.ext.register(newExt) //将扩展 newExt 注册到系统中。注意 newExt 是 seal.ext.new 的返回值,将 register 视为 seal.ext.new() 是错误的。  
+seal.coc.newRule() //用来创建自定义 coc 规则,github.com/sealdice/javascript/examples 中已有详细例子,不多赘述。  
+seal.coc.newRuleCheckResult() //同上,不多赘述。  
+seal.coc.registerRule(rule) //同上,不多赘述。  
+seal.deck.draw(ctx, deckname, isShuffle) //他会返回一个抽取牌堆的结果。这里有些复杂:deckname 为需要抽取的牌堆名,而 isShuffle 则是一个布尔值,它决定是否放回抽取;false 为放回,true 为不放回。  
+seal.deck.reload() //重新加载牌堆。  
+//下面是 1.2 新增 api  
+seal.newMessage() //返回一个空白的 Message 对象,结构与收到消息的 msg 相同
+seal.createTempCtx(endpoint, msg) // 制作一个 ctx, 需要 msg.MessageType 和 msg.Sender.UserId
+seal.applyPlayerGroupCardByTemplate(ctx, tmpl) // 设定当前 ctx 玩家的自动名片格式
+seal.gameSystem.newTemplate(string) //从 json 解析新的游戏规则。  
+seal.gameSystem.newTemplateByYaml(string) //从 yaml 解析新的游戏规则。 
+seal.getCtxProxyAtPos(ctx, pos) //获取第 pos 个被 at 的人,pos 从 0 开始计数 
+seal.atob(base64String) //返回被解码的 base64 编码  
+seal.btoa(string) //将 string 编码为 base64 并返回
+

部分 api 使用示例

声明和注册扩展的代码部分已省略。

replyGroup replyPerson replyToSender

//在私聊触发 replyGroup 不会回复
+seal.replyGroup(ctx, msg, 'something'); //触发者会收到"something"的回复
+seal.replyPerson(ctx, msg, 'something'); //触发者会收到"something"的私聊回复
+seal.replyToSender(ctx, msg, 'something'); //触发者会收到"something"的回复
+

memberBan memberKick

是否保留待议

//注意这些似乎只能在 WQ 协议上实现;
+seal.memberBan(ctx, groupID, userID, dur) //将群为 groupID,userid 为 userID 的人封禁 dur(单位未知)
+seal.memberKick(ctx, groupID, userID) //将群为 groupID,userid 为 userID 的人踢出那个群
+

format formatTmpl

//注意 format 不会自动 reply,而是 return,所以请套一层 reply
+seal.replyToSender(ctx, msg, seal.format(`{$t玩家}的人品为:{$t人品}`))
+//{$t人品} 是一个 rollvm 变量,其值等于 .jrrp 出的数值
+//回复:
+//群主的人品为:87
+seal.replyToSender(ctx, msg, seal.formatTmpl(unknown))
+//这里等大佬来了再研究
+

getCtxProxyFirst getCtxProxyAtPos

cmd.solve = (ctx, msg, cmdArgs) => {
+    let ctxFirst = seal.getCtxProxyFirst(ctx, cmdArgs)
+    seal.replyToSender(ctx, msg, ctxFirst.player,name)
+}
+ext.cmdMap['test'] = cmd
+//输入:.test @A @B
+//返回:A 的名称。这里其实获取的是 A 玩家的 ctx,具体见 ctx 数据结构。
+cmd.solve = (ctx, msg, cmdArgs) => {
+    let ctx3 = seal.getCtxProxyAtPos(ctx, 3)
+    seal.replyToSender(ctx, msg, ctx3.player,name)
+}
+ext.cmdMap['test'] = cmd
+//输入:.test @A @B @C
+//返回:C(第三个被@的人)的名称。这里其实获取的是 C 玩家的 ctx,具体见 ctx 数据结构。
+

vars

// 要看懂这里你可能需要学习一下初阶豹语
+seal.vars.intSet(ctx, `$m今日打卡次数`, 8) //将触发者的该个人变量设置为 8
+seal.vars.intGet(ctx, `$m今日打卡次数`) //返回 [8,true]
+seal.vars.strSet(ctx, `$g群友经典语录`, `我要 Git Blame 一下看看是谁写的`) //将群内的该群组变量设置为“我要 Git Blame 一下看看是谁写的”
+seal.vars.strGet(ctx, `$g群友经典语录`) //返回 ["我要 Git Blame 一下看看是谁写的",true]
+

ext

//用于注册扩展和定义指令的 api,已有详细示例,不多赘述
+

coc

//用于创建 coc 村规的 api,已有详细示例,不多赘述
+

deck

seal.deck.draw(ctx, `煤气灯`, false) //返回 放回抽取牌堆“煤气灯”的结果
+seal.deck.draw(ctx, `煤气灯`, true) //返回 不放回抽取牌堆“煤气灯”的结果
+seal.deck.reload() //重新加载牌堆
+

自定义 TRPG 规则相关

//这里实在不知道如何举例了
+seal.gameSystem.newTemplate(string) //从 json 解析新的游戏规则。  
+seal.gameSystem.newTemplateByYaml(string) //从 yaml 解析新的游戏规则。
+seal.applyPlayerGroupCardByTemplate(ctx, tmpl) // 设定当前 ctx 玩家的自动名片格式
+

其他

seal.newMessage() //返回一个空白的 Message 对象,结构与收到消息的 msg 相同
+seal.createTempCtx(endpoint, msg) // 制作一个 ctx, 需要 msg.MessageType 和 msg.Sender.UserId
+seal.atob(base64String) //返回被解码的 base64 编码  
+seal.btoa(string) //将 string 编码为 base64 并返回
+seal.getEndPoints() //返回骰子(应该?)的 EndPoints
+seal.getVersion() //返回一个 map,键值为 version 和 versionCode
+

ctx 的内容

//在 github.com/sealdice/javascript/examples_ts/seal.d.ts 中有完整内容
+// 成员
+ctx.group // 当前群信息 (对象)
+ctx.player // 当前玩家数据 (对象)
+ctx.endPoint // 接入点数据 (对象)
+// 以上三个对象内容暂略
+ctx.isCurGroupBotOn // bool 
+ctx.isPrivate // bool 是否私聊
+ctx.privilegeLevel // int 权限等级:40 邀请者、50 管理、60 群主、70 信任、100 master
+ctx.delegateText // string 代骰附加文本
+// 方法 (太长,懒.)
+chBindCur
+chBindCurGet
+chBindGet
+chBindGetList
+chExists
+chGet
+chLoad
+chNew
+chUnbind
+chUnbindCur
+chVarsClear
+chVarsGet
+chVarsNumGet
+chVarsUpdateTime
+loadGroupVars
+loadPlayerGlobalVars
+loadPlayerGroupVars,notice
+

ctx.group 的内容

// 成员
+active
+groupId
+guildId
+groupName
+cocRuleIndex
+logCurName
+logOn
+recentDiceSendTime
+showGroupWelcome
+groupWelcomeMessage
+enteredTime
+inviteUserId
+// 方法
+extActive
+extClear
+extGetActive
+extInactive
+extInactiveByName
+getCharTemplate
+isActive
+playerGet
+

ctx.player 的内容

// 成员
+name
+userId
+lastCommandTime
+autoSetNameTemplate
+// 方法
+getValueNameByAlias
+

ctx.endPoint 的内容

// 成员
+baseInfo
+id
+nickname
+state
+userId
+groupNum
+cmdExecutedNum
+cmdExecutedLastTime
+onlineTotalTime
+platform
+enable
+// 方法
+adapterSetup
+refreshGroupNum
+setEnable
+unmarshalYAML
+

msg 的内容

// 成员
+msg.time // int64 发送时间
+msg.messageType // string group 群聊 private 私聊
+msg.groupId // string 如果是群聊,群号
+msg.guildId // string 服务器群组号,会在 discord,kook,dodo 等平台见到
+msg.sender // 发送者信息 (对象)
+    sender.nickname
+    sender.userId
+msg.message
+msg.rawId // 原始信息 ID, 用于撤回等
+msg.platform // 平台
+// 方法
+// (似乎目前没有?)
+

cmdArgs 的内容

// 成员
+.command // string
+.args // []string
+.kwargs // []Kwarg
+.at // []AtInfo
+.rawArgs // string
+.amIBeMentioned // bool (为何要加一个 Be?)
+.cleanArgs // string 一种格式化后的参数,也就是中间所有分隔符都用一个空格替代
+.specialExecuteTimes // 特殊的执行次数,对应 3# 这种
+// 方法
+.isArgEqual(n, ss...) // 返回 bool, 检查第 n 个参数是否在 ss 中
+.eatPrefixWith(ss...) // 似乎是从 cleanArgs 中去除 ss 中第一个匹配的前缀
+.chopPrefixToArgsWith(ss...) // 不懂
+.getArgN(n) // -> string
+.getKwarg(str) // -> Kwarg 如果有名为 str 的 flag,返回对象,否则返回 null/undefined(不确定)
+.getRestArgsFrom(n) // -> string 获取从第 n 个参数之后的所有参数,用空格拼接成一个字符串
+
上次编辑于:
+ + + diff --git a/advanced/edit_reply.html b/advanced/edit_reply.html new file mode 100644 index 000000000..37eaaac0d --- /dev/null +++ b/advanced/edit_reply.html @@ -0,0 +1,175 @@ + + + + + + + + 编写自定义回复 | 海豹手册 + + + + + + +
跳至主要內容

编写自定义回复

大约 10 分钟

编写自定义回复

本节内容

本节将展示自定义回复编写的进阶部分,请善用侧边栏和搜索,按需阅读文档。

在部分内容中,我们假定你了解海豹变量机制和正则表达式。如果你对正则表达式还很陌生,可以阅读以下教程或在互联网自行搜索学习。

第一个自定义回复

首先我们打开「自定义回复」页,新建一项自定义回复。

使用 .text 帮助测试

.text <文本> 将是你的一大助力,它会输出后面文本的执行结果,你可以将它看成不需要触发词的自定义回复。

当然,在采用 .text 指令进行 debug 时,可能出现因为测试的内容对变量造成影响,而不得不频繁复制黏贴清空指令的情况。此时建议专门开一个一两个字即可触发的自定义回复,用来测试。

嵌入 CQ 码

返回内容可以嵌入 CQ 码。CQ 码文档见 CQ 码列表open in new window

自定义回复中分「条件」和「结果」两个部分。在 配置 - 自定义回复 中,我们已经了解了一些简单的回复编写,下面将补充介绍进阶内容。

触发条件

文本匹配:模糊匹配

模糊匹配将比较收到的消息与指定文本,内容相似时触发。

比较定义在 dice/ext_reply_logic.go 中,内容 jaro 和 hamming 平均值高于阈值(0.7)被认为是相似:

func strCompare(a string, b string) float64 {
+	va := strsim.Compare(a, b, strsim.Jaro())
+	vb := strsim.Compare(a, b, strsim.Hamming())
+	return (va + vb) / 2
+}
+

模糊匹配未命中

模糊匹配可能出现感觉能匹配上,但实际上没办法匹配上的情况。我们更建议你使用「包含文本」或「正则匹配」。

文本匹配:正则匹配

使用正则匹配时,直接在要匹配的文本一栏中写入正则表达式即可。

正则匹配可以将回复中的一部分存入变量中以备调用:

正则匹配:^购买(.+)
+输出文本:{$t玩家}购买了{$t1}
+
+购买猫粮
+Dice: <于言诺>购买了猫粮
+

正则匹配会将满足匹配的整条消息存入 $t0,而正则中的分组会按顺序存入 $t1 $t2 等中。在如上例子中,就是将 购买 后用括号括起来的部分存入了 $t1 中,从而可以进行调用。

如额外存在组名,如 (?P<A>cc),将会额外存入 $tA

不要使用某些前缀!

由于 . / ! 等符号会作为海豹中指令的前缀,因此作为前缀时可能导致将其识别为指令而非自定义回复的情况,建议换成别的前缀。

正则中匹配 CQ 码

海豹支持用正则匹配 CQ 码,但是如果你这么做了,请在 [ ] 前面进行转义。

示例:^\[CQ:xxx,xx=xxx\]

表达式为真

在「表达式为真」匹配中,只需要直接在匹配文本中写出形如 变量名 == 需要的值 的形式即可,不需要使用任何 {}

回复结果

在回复文本中,可以调用一些 变量,也可以嵌入 内置脚本语言

嵌入脚本语言

.text {$t玩家}进行测试
+
+返回:<测试用户>进行测试
+
.text {d100}
+
+1 // 此处返回 d100 的结果
+

未赋值的变量

所有变量在未被赋值时被调用的值都为 0。

执行块

{% %} 被称为执行块。由 {% %} 括起来的部分会被作为代码执行,输出最后一个语句的结果。执行块中的两个语句之间要使用 ; 隔开。

如果想要输出字符串,则应该用 ` / " / ' 括上。

  • 例:形如 {% \$t1="114514" %} 的式子会输出 114514

结果中调用变量

若想在结果中调用变量,请用反引号。目前海豹只支持在反引号中调用变量。

下面是一个简单的示例,这里的第一句也是最后一句,所以它的结果会被输出。

.text {% $t测试=1 %}
+

示例:使用 if

{%  
+$t测试=1;  
+if $t测试==1 {$t输出="赞美木落"};  
+if $t测试==2 {$t输出="快点更新"};  
+if $t测试!=2&&$t测试!=1 {$t输出="群主女装"}  
+%}
+{$t输出}  
+

首先给 $t测试赋值为 1,然后进入判断:

  1. 如果 $t测试 等于 1,则变量 $t输出 等于 "赞美木落"
  2. 如果 $t测试 等于 2,则变量 $t输出 等于 "快点更新"
  3. 如果 $t测试 既不等于 2 也不等于 1,则变量 $t输出 等于 "群主女装";

最后,输出变量 $t输出

容易误解的 if 使用

目前海豹语并不支持 else ififelse 是一对一匹配的。所以当形如:

if xxx {xxx};  
+if xxx {xxx}  
+else {xxx}  
+

的语句出现时,并不是 if elseif elseif else 的关系!即使满足了第一个 if,其结果也是执行 else 中的内容!

示例:变量运算

{%  
+$t0=1;  
+$tRand=d6;  
+if $t0==1 {$t0=$t0+$tRand}  
+%}  
+{$t0}
+

在这个例子里,我们先给 $t0 赋值为 1,然后判断 $t0 是否等于 1,若通过则 $t0 的值增加 1d6,最后输出结果。

更多示例片段

牌堆与自定义回复的结合

以养猫功能中猫好感度为例:

{% 
+$mCatFavor<=100 ? `#{DRAW-第一档猫好感}`,
+$mCatFavor<=250 ? `#{DRAW-第二档猫好感}` ,
+$mCatFavor<=600 ? `#{DRAW-第三档猫好感}` ,
+$mCatFavor<=1500 ? `#{DRAW-第四档猫好感}` ,
+$mCatFavor<=2500 ? `#{DRAW-第五档猫好感}` ,
+1 ? `#{DRAW-第六档猫好感}`
+%}
+

在这一脚本中,根据猫好感度 $mCatFavor 不同,需要输出不同回复的机制。

其它写法

除了形如

{% 
+判断1 ? `#{DRAW-牌组1}`,
+判断2 ? `#{DRAW-牌组2}`,
+判断3 ? `#{DRAW-牌组3}`,
+1 ? `#{DRAW-牌组4}`,
+ %}
+

的写法外,还可以使用:

{% 
+if 判断1 {
+  $tRand=d6;
+  $t输出=$tRand==1?`内容1`,
+  $t输出=$tRand==2?`内容2`,
+  $t输出=$tRand==3?`内容3`,
+  $t输出=$tRand==4?`内容4`,
+  $t输出=$tRand==5?`内容5`,
+  $t输出=$tRand==6?`内容6`
+  };
+if 判断2 {$tRand=d10;$t输出=$tRand==1?`内容1`,……};
+if 判断3 {$tRand=d10;$t输出=$tRand==1?`内容1`,……};
+ %}
+

实质上没有太大区别,可根据喜好选择。

多回复行的错误使用

以踢海豹为例,这一自定义回复的多行输出实现上并不是:

{$t输出0}
+{$t输出1}
+{$t输出2}
+{$t输出3}
+

而是在为四个 $t输出 变量赋值时,于内部写上 \n,采用 {$t输出0}{$t输出1}{$t输出2}{$t输出3} 的形式。

这是因为如果某一变量可能为空时,如果采用第一种分行的写法,会出现这样的效果:

踢海豹
+
+回复:
+Dice: <于言诺>一脚踢向海豹,踢了3格。
+海豹现在离终点还有37格。
+
+海豹的逃走骰:1d100=60,海豹没能逃脱凶猛恶汉们的掌控!
+

可以看见,在中间会出现突兀的空行。这是因为虽然并没有在变量内部赋值 \n,但是由于海豹读取时会按照写的格式读取,因此在应当是 $t输出2 的一行中,会照样调用 {$t输出2},照常空行。

所以,如果想要某个变量为空时,看不出来这里应该存在什么,就最好多做几次实验,好好规划一下换行符 \n 的位置。

限定每人/每群每天一次

海豹提供了一系列时间变量来调用,以打卡指令为例,可以采用如下两种写法中的一种(示例为每人每天一次,如要每群自行将 $m 换成 $g):

写法 1
文本匹配:你需要的文本
表达式为真:$m变量 != $tDate
回复:{if 1 {$m变量=$tDate}}你需要的回复文本

  • $m变量 作为标记变量,用 if 是防止它出现在回复文本中。

文本匹配:你需要的文本
表达式为真:$m变量==$tDate

  • 可以不写在另一条里,选择放到相较于上一条的后面,利用海豹从上往下逐个匹配的机制达成相同效果

回复:在一天触发多次时的回复

写法 2
文本匹配:你需要的文本
回复:

{% 
+if $m变量!=$tDate {
+  $t输出=`你需要的回复文本`;
+  $m变量=$tDate//对其赋值,作为标记
+} else {
+  $t输出=`在一天触发多次时的回复`
+  }
+ %}
+{$t输出}
+

以上两种写法实现效果没有差别,具体使用哪种请自行决断。

条件语句嵌套条件算符,多条件条件语句

以石头剪刀布为例,为了实现骰子随机出招的效果,令 $tRand=d3,然后根据 $tRand 的情况赋值 $tDicePlay。通过骰子出招和玩家出招两个变量判断,输出游戏结果,并记录场次。

为了防止直接使用 {%%} 进行赋值导致的变量显示,需要在最外面写 if 1 ,则在生成 $tRand之后再次判断的时候,可以使用 $tDicePlay=条件算符,或是再新开一行用条件算符或者条件语句实现。

以下给出在同一个 if 内直接赋值的写法和新开一行使用条件语句的写法:

{% //在同一个if内直接赋值。可以在赋值时使用条件算符。
+if 1 {
+    $tRand=d3;
+    $tDicePlay=$tRand==1?"石头",
+                $tRand==2?"剪刀",
+                1?"布"
+    } 
+%}
+
+{% //新开一行赋值
+if 1 {
+    $tRand=d3;
+    } ;
+if $tRand==1 {$tDicePlay="石头"};
+if $tRand==2 {$tDicePlay="剪刀"};
+if $tRand==3 {$tDicePlay="布"}
+%}
+

两种写法实现效果相同,石头剪刀布内在这里采用了第一种,实际上没有差别。

生成骰子出招并获取玩家出招之后,就开始判断。这里除了平局可以使用 $tDicePlay==$t0 省事之外,其他的都需要在条件中用多个进行嵌套。

条件判断

豹语语法中,判断时条件中的 ||&& 是从左往右计算的,如果后面有需要优先计算与或的东西,请加好括号。

if $t0==$tDicePlay {
+    $t输出=`那我出{$tDicePlay}!{$t玩家}出的是{$t0}啊,我们平局了。`;
+    $mPlayerTime=$mPlayerTime+1
+    };
+if $t0=="剪刀"&&$tDicePlay=="石头"||($t0=="石头"&&$tDicePlay=="布")||($t0=="布"&&$tDicePlay=="剪刀") {
+     //后两个与需要单独计算,加上括号
+    $t输出=`那我出{$tDicePlay}!{$t玩家}出的是{$t0}啊,我赢了。`;
+    $mPlayerTime=$mPlayerTime+1;
+    $mPlayerLose=$mPlayerLose+1
+    };
+if $t0=="石头"&&$tDicePlay=="剪刀"||($t0=="布"&&$tDicePlay=="石头")||($t0=="剪刀"&&$tDicePlay=="布") {
+    $t输出=`那我出{$tDicePlay}!{$t玩家}出的是{$t0}啊,你赢了。`;
+    $mPlayerTime=$mPlayerTime+1;
+    $mPlayerWin=$mPlayerWin+1
+    }
+

同时使用前缀和后缀匹配,以匹配 AxxxxxxxB 型文本

前缀匹配:A
后缀匹配:B
回复:怎么辉石呢

输入:A
+无回复
+
+输入:B
+无回复
+
+输入:AB
+怎么辉石呢
+
+输入:A间隔B
+怎么辉石呢
+

随机看图

随机看图
随机看图

单人模组

单人模组
单人模组

具体实现,第一段

单人模组第一段
单人模组第一段

第二段

单人模组第二段
单人模组第二段

这两段较为常规,第三段开始变形了:

单人模组第三段
单人模组第三段
{%
+	if $mStory == 4 { $mStory = 5 };
+	if $mStory == 3 { $mStory = 4 };
+	if $mStory == 2 { $mStory = 3 };
+
+         $mStory == 3 ? '这个村子有一户人家,门前有两棵树',
+         $mStory == 4 ? '一棵是函树,一棵是反函树',
+         $mStory == 5 ? '我讲完了。',
+         1 ? '?'
+%}
+
+{% if $mStory == 5 { $mStory=0 } %}
+
上次编辑于:
+ + + diff --git a/advanced/edit_sensitive_words.html b/advanced/edit_sensitive_words.html new file mode 100644 index 000000000..521e545bf --- /dev/null +++ b/advanced/edit_sensitive_words.html @@ -0,0 +1,96 @@ + + + + + + + + 编写敏感词库 | 海豹手册 + + + + + + +
跳至主要內容

编写敏感词库

大约 1 分钟

编写敏感词库

本节内容

本节将介绍敏感词库的编写,请善用侧边栏和搜索,按需阅读文档。

创建文本格式的敏感词库

你可以直接按照以下格式书写 <words>.txt

#notice
+提醒级词汇 1
+提醒级词汇 2
+
+#caution
+注意级词汇 1
+注意级词汇 2
+
+#warning
+警告级词汇
+
+#danger
+危险级词汇
+

创建 TOML 格式的敏感词库

TOML 格式

我们假定你已了解 TOML 格式。如果你对 TOML 还很陌生,可以阅读以下教程或自行在互联网搜索:

你可以直接按照以下格式书写 <words>.toml

# 元信息,用于填写一些额外的展示内容
+[meta]
+# 词库名称
+name = '测试词库'
+# 作者,和 authors 存在一个即可
+author = ''
+# 作者(多个),和 author 存在一个即可
+authors = [ '<匿名>' ]
+# 版本,建议使用语义化版本号
+version = '1.0'
+# 简介
+desc = '一个测试词库'
+# 协议
+license = 'CC-BY-NC-SA 4.0'
+# 创建日期,使用 RFC 3339 格式
+date = 2023-10-30
+# 更新日期,使用 RFC 3339 格式
+updateDate = 2023-10-30
+
+# 词表,出现相同词汇时按最高级别判断
+[words]
+# 忽略级词表,没有实际作用
+ignore = []
+# 提醒级词表
+notice = [
+  '提醒级词汇 1',
+  '提醒级词汇 2'
+]
+# 注意级词表
+caution = [
+  '注意级词汇 1',
+  '注意级词汇 2'
+]
+# 警告级词表
+warning = [
+  '警告级词汇 1',
+  '警告级词汇 2'
+]
+# 危险级词表
+danger = [
+  '危险级词汇 1',
+  '危险级词汇 2'
+]
+
上次编辑于:
+ + + diff --git a/advanced/index.html b/advanced/index.html new file mode 100644 index 000000000..dac98ded2 --- /dev/null +++ b/advanced/index.html @@ -0,0 +1,40 @@ + + + + + + + + 进阶 | 海豹手册 + + + + + + +
跳至主要內容

进阶

小于 1 分钟

上次编辑于:
+ + + diff --git a/advanced/introduce.html b/advanced/introduce.html new file mode 100644 index 000000000..6869d38ea --- /dev/null +++ b/advanced/introduce.html @@ -0,0 +1,40 @@ + + + + + + + + 进阶介绍 | 海豹手册 + + + + + + +
跳至主要內容

进阶介绍

大约 2 分钟

进阶介绍

本节内容

本节将介绍海豹扩展功能的进阶内容,请善用侧边栏和搜索,按需阅读文档。

海豹核心提供了多种扩展功能,这些功能能让你实现更多的个性化功能,但通常也需要你具备一些知识。

我们建议,在尝试使用对应功能进行个性化前,先阅读本章的对应小节,帮助你快速掌握相关内容。

阅读完小节教程后,如果在使用中依然存在疑问,可以在官方群内寻求帮助。

了解海豹语

在很多地方为了实现一些逻辑,都需要用到海豹所提供的一种简单的脚本语言,可以称为「海豹语」「豹语」等。

我们非常建议你在扩展功能的编写中,先了解海豹语。见 扩展-内置脚本语言

用什么编写?

在牌堆、JS 插件、敏感词库等的编写中,我们通常需要在对应格式的文件进行编写。

务必使用更专业的编辑器,如果你不知道选择什么,可以尝试使用 vscodeopen in new windowsublime textopen in new window或 MT 管理器(Android)等,这些都是被广泛使用的优秀编辑器。

更专业的编辑器能更好地帮助你编写相关格式的文件。这些编辑器提供的语法高亮、自动补全、格式化、错误检查、编码转换等诸多功能,能为你带来更好的编写体验。

不建议使用 Windows 记事本、Notepad++ 编写。

如何获取安装包?

官网应当是你下载软件的首选途径,请不要被搜索引擎等误导进各种下载站,它们很可能会提供二次封装后、捆绑大量流氓软件的安装包。

但由于各种原因,官网下载可能会十分缓慢,你还可以选择从海豹官方群的群文件中获取安装包。通常群文件的「工具&内置文件」中,请善用搜索。

上次编辑于:
+ + + diff --git a/advanced/script.html b/advanced/script.html new file mode 100644 index 000000000..0de7042be --- /dev/null +++ b/advanced/script.html @@ -0,0 +1,81 @@ + + + + + + + + 内置脚本语言 | 海豹手册 + + + + + + +
跳至主要內容

内置脚本语言

大约 4 分钟

内置脚本语言

本节内容

本节将介绍海豹内置的脚本语言,请善用侧边栏和搜索,按需阅读文档。

为了在很多地方支持实现一些逻辑,但又不至于直接使用学习门槛较高的正式编程语言,海豹提供了一种简单易学的脚本语言,可以称为「海豹语」「豹语」等。

变量

你可能注意到,在自定义文案等地方,出现了一些以 $t 开头的东西,这些是海豹中的变量

变量的名称可以是汉字、字母和数字,$t 是一个特殊的变量前缀,还有其它的前缀。不同前缀代表不同的作用域:

变量名字用途举例
普通名字玩家的角色属性理智、力量、智力
$t开头个人临时变量,不存数据库$t随机点数
$m开头个人变量,跨群存在$m今日人品
$g开头群变量,群内所有人共享$g群主体重

所有变量均可以在 .rx / .rxh / .ra/ .text 等指令以及「自定义文案」中使用。

变量不生效?

如果一部分变量无效,请检查海豹是否为最新版本。

一些内置变量

变量名内容示例结果
$t玩家当前人物卡的名字,如果不存在则为群昵称或 QQ 昵称。<木落>
$t玩家_RAW同上,但没有<>木落
$tQQ昵称QQ 昵称<木落>
$t账号ID海豹格式的 IDQQ:123456789
$t账号ID_RAW原始格式的 ID123456789
$tQQ海豹格式的 IDQQ:123456789
$t群名群名海豹核心·SealDice 用户群
$t群号海豹格式的 IDQQ-Group:987654321
$t群号_RAW原始格式的 ID987654321
$t个人骰子面数个人骰子面数100
$tDate数字格式的现日期20230109
$tYear数字格式的年份2023
$tMonth数字格式的现月份1
$tDay数字格式的现日期9
$tWeekday数字格式的星期(1-7)1
$tHour数字格式的现时间(小时)15
$tMinute数字格式的现时间(分钟)41
$tSecond数字格式的现时间(秒)55
$tTimestamp数字格式的 10 位时间戳1673250115
$t文本长度触发消息的文本,汉字长度为 3,英文字母和数字长度为 1。6
$t平台触发的平台QQ
$t游戏模式.set coc/dnd 改变coc7
$t消息类型触发位置为群还是私聊(group/private)group
娱乐:今日人品自定义文案<木落> 的今日人品为 0
常量:APPNAME软件名SealDice
常量:VERSION版本号1.4.0
$tMsgID消息 ID,仅自定义回复中可用。-123

所有自定义文案也均为可用变量。

数据类型和赋值

// 注意,目前并不支持写注释,此为教程中便于展示
+// 文本类型
+$t0 = '文本'
+$t0 = "也是文本"
+$t0 = `特殊文本类型,可以插入表达式,例如,玩家的力量数值: {力量}`
+$t0 = `另一种插入表达式的写法 {% 力量 %} `
+
+// 数字类型
+$t0 = 1
+
+// 布尔类型:没有专门的布尔类型,0 或空字符串被视为 False,非零和非空字符串为 True
+$t0 > 1
+$t0 >= 1
+$t0 == 1
+$t0 != 1
+$t0 < 1
+$t0 <= 1
+

语句

多个语句可以用 ; 分隔,取分隔后的最后一项的值,为整个表达式的值,例如:

$t0 = 1;2;3
+

此时 $t0 的值为 3

运算符

数学运算

加减乘除余 + -* / %
+乘方 ^ ** // 2 ** 3 或 2 ^ 3,即 2 的 3 次方
+

骰子算符

d 常规骰子算符,用法举例 d20 2d20k1 d20 优势

f 命运骰,随机骰 4 次,每骰结果可能是 -1 0 1,记为 - 0 +

b 奖励骰 (COC)

p 惩罚骰 (COC)

c 双十字

条件算符

条件算符 ?

灵视 >= 40 ? '如果灵视达到40以上,你就能看到这句话'
+

可以用这个指令测试,下同:

.st 灵视 41
+.text {灵视 >= 40 ? '如果灵视达到 40 以上,你就能看到这句话'}
+

多重条件算符 ? ,

灵视 >= 80 ? '看得很清楚吗?',
+灵视 >= 50 ? '不错,再靠近一点……',
+灵视 >= 30 ? '仔细听……',
+灵视 >= 0 ? '呵,无知之人。'
+

应用举例,默认的 jrrp

{$t玩家} 今日人品为{$t人品},{%
+    $t人品 > 95 ? '人品爆表!',
+    $t人品 > 80 ? '运气还不错!',
+    $t人品 > 50 ? '人品还行吧',
+    $t人品 > 10 ? '今天不太行',
+    1 ? '流年不利啊!'
+%}
+

三目运算符 ? :

灵视 >= 40 ? '如果灵视达到 40 以上,你就能看到这句话' : '无知亦是幸运'
+

条件语句

if $t0 > 10 {
+    $t1 = "aaa"
+} else {
+    $t1 = 'bbb'
+}
+

出现格式化错误

如果上面的代码输出「格式化错误」,那是因为你的 $t0 不是数值。字符串当然不能和数值比较大小,所以会报错。

解决方法:.text {$t0=0}

实际测试:

.text {% if $t0 > 10 { $t1="aaa"} else { $t1 = 'bbb' }; $t1 %}
+
上次编辑于:
+ + + diff --git a/assets/404.html-9cff2bf5.js b/assets/404.html-9cff2bf5.js new file mode 100644 index 000000000..4c070911b --- /dev/null +++ b/assets/404.html-9cff2bf5.js @@ -0,0 +1 @@ +const t=JSON.parse('{"key":"v-3706649a","path":"/404.html","title":"","lang":"zh-CN","frontmatter":{"layout":"NotFound","description":"","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/404.html"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:type","content":"website"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"article:author","content":"SealDice Team"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"WebPage\\",\\"name\\":\\"\\"}"]]},"headers":[],"git":{},"readingTime":{"minutes":0,"words":0},"filePathRelative":null,"autoDesc":true,"excerpt":""}');export{t as data}; diff --git a/assets/404.html-ec26080c.js b/assets/404.html-ec26080c.js new file mode 100644 index 000000000..9d3908bb8 --- /dev/null +++ b/assets/404.html-ec26080c.js @@ -0,0 +1 @@ +import{_ as e}from"./plugin-vue_export-helper-c27b6911.js";import{o as t,c}from"./app-d2f9e1e0.js";const o={};function r(_,n){return t(),c("div")}const f=e(o,[["render",r],["__file","404.html.vue"]]);export{f as default}; diff --git a/assets/SearchResult-ca734e21.js b/assets/SearchResult-ca734e21.js new file mode 100644 index 000000000..578eba06f --- /dev/null +++ b/assets/SearchResult-ca734e21.js @@ -0,0 +1 @@ +import{u as U,g as ee,h as j,i as B,Z as ae,j as le,t as se,k as x,l as D,m as te,n as M,p as l,q as _,s as F,v as I,x as re,y as ue,z as ie,A as ne,R as oe,O as ce,B as ve,C as pe,D as he,E as ye,F as de,G as me,H as b,I as fe}from"./app-d2f9e1e0.js";const ge="SEARCH_PRO_QUERY_HISTORY",y=U(ge,[]),He=()=>{const{queryHistoryCount:r}=b,n=r>0;return{enabled:n,queryHistory:y,addQueryHistory:t=>{n&&(y.value.length{y.value=[...y.value.slice(0,t),...y.value.slice(t+1)]}}},Re="SEARCH_PRO_RESULT_HISTORY",{resultHistoryCount:E}=b,d=U(Re,[]),Qe=()=>{const r=j(),n=E>0,t=s=>r.resolve({name:s.key,..."anchor"in s?{hash:`#${s.anchor}`}:{}}).fullPath;return{enabled:n,resultHistory:d,addResultHistory:s=>{if(n){const u={link:t(s),display:s.display};"header"in s&&(u.header=s.header),d.value.length{d.value=[...d.value.slice(0,s),...d.value.slice(s+1)]}}},ke=r=>{const n=oe(),t=B(),{search:s,terminate:u}=ce(),f=x(!1),g=ve([]);return pe(()=>{const m=()=>{g.value=[],f.value=!1},w=fe(H=>{f.value=!0,H?s({type:"search",query:H,locale:t.value,options:n}).then(h=>{g.value=h,f.value=!1}).catch(h=>{console.error(h),m()}):m()},b.searchDelay);M([r,t],()=>w(r.value),{immediate:!0}),he(()=>{u()})}),{searching:f,results:g}};var we=ee({name:"SearchResult",props:{query:{type:String,required:!0},isFocusing:Boolean},emits:["close","updateQuery"],setup(r,{emit:n}){const t=j(),s=B(),u=ae(le),{enabled:f,addQueryHistory:g,queryHistory:m,removeQueryHistory:w}=He(),{enabled:H,resultHistory:h,addResultHistory:O,removeResultHistory:Y}=Qe(),P=f||H,S=se(r,"query"),{results:R,searching:z}=ke(S),o=x({isQuery:!0,index:0}),p=x(0),c=x(0),L=D(()=>P&&(m.value.length>0||h.value.length>0)),C=D(()=>R.value.length>0),q=D(()=>R.value[p.value]||null),T=e=>t.resolve({name:e.key,..."anchor"in e?{hash:`#${e.anchor}`}:{}}).fullPath,G=()=>{const{isQuery:e,index:a}=o.value;a===0?o.value={isQuery:!e,index:e?h.value.length-1:m.value.length-1}:o.value={isQuery:e,index:a-1}},V=()=>{const{isQuery:e,index:a}=o.value;a===(e?m.value.length-1:h.value.length-1)?o.value={isQuery:!e,index:0}:o.value={isQuery:e,index:a+1}},Z=()=>{p.value=p.value>0?p.value-1:R.value.length-1,c.value=q.value.contents.length-1},J=()=>{p.value=p.value{c.value{c.value>0?c.value=c.value-1:Z()},A=e=>e.map(a=>ye(a)?a:l(a[0],a[1])),W=e=>{if(e.type==="customField"){const a=de[e.index]||"$content",[i,k=""]=me(a)?a[s.value].split("$content"):a.split("$content");return e.display.map(v=>l("div",A([i,...v,k])))}return e.display.map(a=>l("div",A(a)))},Q=()=>{p.value=0,c.value=0,n("updateQuery",""),n("close")};return te("keydown",e=>{if(r.isFocusing){if(C.value){if(e.key==="ArrowUp")N();else if(e.key==="ArrowDown")K();else if(e.key==="Enter"){const a=q.value.contents[c.value],i=T(a);g(r.query),O(a),t.push(i),Q()}}else if(H){if(e.key==="ArrowUp")G();else if(e.key==="ArrowDown")V();else if(e.key==="Enter"){const{index:a}=o.value;o.value.isQuery?(n("updateQuery",m.value[a]),e.preventDefault()):(t.push(h.value[a].link),Q())}}}}),M([p,c],()=>{var e;(e=document.querySelector(".search-pro-result-list-item.active .search-pro-result-item.active"))==null||e.scrollIntoView(!1)},{flush:"post"}),()=>l("div",{class:["search-pro-result-wrapper",{empty:S.value?!C.value:!L.value}],id:"search-pro-results"},S.value===""?P?L.value?[f?l("ul",{class:"search-pro-result-list"},l("li",{class:"search-pro-result-list-item"},[l("div",{class:"search-pro-result-title"},u.value.history),m.value.map((e,a)=>l("div",{class:["search-pro-result-item",{active:o.value.isQuery&&o.value.index===a}],onClick:()=>{n("updateQuery",e)}},[l(_,{class:"search-pro-result-type"}),l("div",{class:"search-pro-result-content"},e),l("button",{class:"search-pro-remove-icon",innerHTML:F,onClick:i=>{i.preventDefault(),i.stopPropagation(),w(a)}})]))])):null,H?l("ul",{class:"search-pro-result-list"},l("li",{class:"search-pro-result-list-item"},[l("div",{class:"search-pro-result-title"},u.value.history),h.value.map((e,a)=>l(I,{to:e.link,class:["search-pro-result-item",{active:!o.value.isQuery&&o.value.index===a}],onClick:()=>{Q()}},()=>[l(_,{class:"search-pro-result-type"}),l("div",{class:"search-pro-result-content"},[e.header?l("div",{class:"content-header"},e.header):null,l("div",e.display.map(i=>A(i)).flat())]),l("button",{class:"search-pro-remove-icon",innerHTML:F,onClick:i=>{i.preventDefault(),i.stopPropagation(),Y(a)}})]))])):null]:u.value.emptyHistory:u.value.emptyResult:z.value?l(re,{hint:u.value.searching}):C.value?l("ul",{class:"search-pro-result-list"},R.value.map(({title:e,contents:a},i)=>{const k=p.value===i;return l("li",{class:["search-pro-result-list-item",{active:k}]},[l("div",{class:"search-pro-result-title"},e||u.value.defaultTitle),a.map((v,X)=>{const $=k&&c.value===X;return l(I,{to:T(v),class:["search-pro-result-item",{active:$,"aria-selected":$}],onClick:()=>{g(r.query),O(v),Q()}},()=>[v.type==="text"?null:l(v.type==="title"?ue:v.type==="heading"?ie:ne,{class:"search-pro-result-type"}),l("div",{class:"search-pro-result-content"},[v.type==="text"&&v.header?l("div",{class:"content-header"},v.header):null,l("div",W(v))])])})])})):u.value.emptyResult)}});export{we as default}; diff --git a/assets/about.html-2578350a.js b/assets/about.html-2578350a.js new file mode 100644 index 000000000..9e04820e8 --- /dev/null +++ b/assets/about.html-2578350a.js @@ -0,0 +1 @@ +import{_ as n}from"./plugin-vue_export-helper-c27b6911.js";import{r as a,o as s,c as h,a as e,d as r,b as o}from"./app-d2f9e1e0.js";const l={},c=e("h1",{id:"关于",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#关于","aria-hidden":"true"},"#"),r(" 关于")],-1),i=e("h2",{id:"官方站点",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#官方站点","aria-hidden":"true"},"#"),r(" 官方站点")],-1),_={href:"http://sealdice.com",target:"_blank",rel:"noopener noreferrer"},d={href:"https://log.sealdice.com",target:"_blank",rel:"noopener noreferrer"},u={href:"https://github.com/sealdice",target:"_blank",rel:"noopener noreferrer"},p=e("h2",{id:"投喂",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#投喂","aria-hidden":"true"},"#"),r(" 投喂")],-1),f={href:"https://sealdice.com/feed",target:"_blank",rel:"noopener noreferrer"},b=e("p",null,"你的投喂将用于支付服务器费用,以及帮助社畜制作者们稍微抵抗来自现实的引力。",-1),g=e("p",null,"非常感谢。",-1),m=e("h2",{id:"手册贡献者",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#手册贡献者","aria-hidden":"true"},"#"),r(" 手册贡献者")],-1),k={href:"https://github.com/sealdice/sealdice-manual-next/graphs/contributors",target:"_blank",rel:"noopener noreferrer"},x=e("strong",null,"新手册贡献者",-1),E=e("hr",null,null,-1),V={href:"https://github.com/sealdice/manual/graphs/contributors",target:"_blank",rel:"noopener noreferrer"},v=e("strong",null,"旧手册贡献者",-1),B={href:"https://github.com/fy0",target:"_blank",rel:"noopener noreferrer"},I={href:"https://github.com/lxy071130",target:"_blank",rel:"noopener noreferrer"},N={href:"https://github.com/ChangingSelf",target:"_blank",rel:"noopener noreferrer"},y={href:"https://github.com/VolEurr0Se",target:"_blank",rel:"noopener noreferrer"},C=e("h2",{id:"开源",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#开源","aria-hidden":"true"},"#"),r(" 开源")],-1),G=e("p",null,"海豹的源代码以 MIT 协议开源,托管在 GitHub 下。海豹核心的诞生离不开开源社区和其它开源软件的支持。",-1);function H(L,S){const t=a("ExternalLinkIcon");return s(),h("div",null,[c,i,e("p",null,[e("a",_,[r("官网"),o(t)]),r(":海豹官网,新版本发布的正式地址,还提供试用,"),e("a",d,[r("log 染色"),o(t)]),r(" 等多项功能。")]),e("p",null,[e("a",u,[r("海豹开源组织 GitHub"),o(t)]),r(":海豹核心源码的托管地址。")]),p,e("p",null,[r("请参见 "),e("a",f,[r("官网—投喂"),o(t)]),r(",目前尚未更新蓝绿修改器(暂时顾不上)。")]),b,g,m,e("p",null,[e("a",k,[x,o(t)])]),E,e("p",null,[e("a",V,[v,o(t)])]),e("p",null,[e("a",B,[r("木落"),o(t)]),r("、鹊鹊、蜜瓜包、病、于言诺、"),e("a",I,[r("流溪"),o(t)]),r("、"),e("a",N,[r("憧憬少"),o(t)]),r("、"),e("a",y,[r("浣熊旅記"),o(t)])]),C,G])}const j=n(l,[["render",H],["__file","about.html.vue"]]);export{j as default}; diff --git a/assets/about.html-7d984a3d.js b/assets/about.html-7d984a3d.js new file mode 100644 index 000000000..4e7d3afbe --- /dev/null +++ b/assets/about.html-7d984a3d.js @@ -0,0 +1 @@ +const t=JSON.parse('{"key":"v-22991227","path":"/about/about.html","title":"关于","lang":"zh-cn","frontmatter":{"lang":"zh-cn","title":"关于","description":"官方站点 官网 (http://sealdice.com):海豹官网,新版本发布的正式地址,还提供试用,log 染色 (https://log.sealdice.com) 等多项功能。 海豹开源组织 GitHub (https://github.com/sealdice):海豹核心源码的托管地址。 投喂 请参见 官网—投喂 (https://seald...","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/about/about.html"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"关于"}],["meta",{"property":"og:description","content":"官方站点 官网 (http://sealdice.com):海豹官网,新版本发布的正式地址,还提供试用,log 染色 (https://log.sealdice.com) 等多项功能。 海豹开源组织 GitHub (https://github.com/sealdice):海豹核心源码的托管地址。 投喂 请参见 官网—投喂 (https://seald..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-cn"}],["meta",{"property":"og:updated_time","content":"2023-10-30T09:14:16.000Z"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-10-30T09:14:16.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"关于\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2023-10-30T09:14:16.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[{"level":2,"title":"官方站点","slug":"官方站点","link":"#官方站点","children":[]},{"level":2,"title":"投喂","slug":"投喂","link":"#投喂","children":[]},{"level":2,"title":"手册贡献者","slug":"手册贡献者","link":"#手册贡献者","children":[]},{"level":2,"title":"开源","slug":"开源","link":"#开源","children":[]}],"git":{"createdTime":1698598894000,"updatedTime":1698657256000,"contributors":[{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":2}]},"readingTime":{"minutes":0.75,"words":225},"filePathRelative":"about/about.md","localizedDate":"2023年10月29日","autoDesc":true,"excerpt":""}');export{t as data}; diff --git a/assets/app-d2f9e1e0.js b/assets/app-d2f9e1e0.js new file mode 100644 index 000000000..9f71a37f2 --- /dev/null +++ b/assets/app-d2f9e1e0.js @@ -0,0 +1,9 @@ +const iu="modulepreload",cu=function(e){return"/sealdice-manual-next/"+e},Yl={},O=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(l=>{if(l=cu(l),l in Yl)return;Yl[l]=!0;const s=l.endsWith(".css"),a=s?'[rel="stylesheet"]':"";if(!!r)for(let f=o.length-1;f>=0;f--){const d=o[f];if(d.href===l&&(!s||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${a}`))return;const c=document.createElement("link");if(c.rel=s?"stylesheet":iu,s||(c.as="script",c.crossOrigin=""),c.href=l,document.head.appendChild(c),s)return new Promise((f,d)=>{c.addEventListener("load",f),c.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${l}`)))})})).then(()=>t()).catch(l=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=l,window.dispatchEvent(s),!s.defaultPrevented)throw l})};function tl(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o!!n[o.toLowerCase()]:o=>!!n[o]}const we={},yn=[],ut=()=>{},uu=()=>!1,fu=/^on[^a-z]/,ar=e=>fu.test(e),nl=e=>e.startsWith("onUpdate:"),Ae=Object.assign,rl=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},du=Object.prototype.hasOwnProperty,ue=(e,t)=>du.call(e,t),J=Array.isArray,Wn=e=>Ur(e)==="[object Map]",pu=e=>Ur(e)==="[object Set]",oe=e=>typeof e=="function",fe=e=>typeof e=="string",Kr=e=>typeof e=="symbol",Te=e=>e!==null&&typeof e=="object",va=e=>(Te(e)||oe(e))&&oe(e.then)&&oe(e.catch),hu=Object.prototype.toString,Ur=e=>hu.call(e),vu=e=>Ur(e).slice(8,-1),mu=e=>Ur(e)==="[object Object]",ol=e=>fe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Kn=tl(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Gr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},gu=/-(\w)/g,ot=Gr(e=>e.replace(gu,(t,n)=>n?n.toUpperCase():"")),bu=/\B([A-Z])/g,In=Gr(e=>e.replace(bu,"-$1").toLowerCase()),ir=Gr(e=>e.charAt(0).toUpperCase()+e.slice(1)),so=Gr(e=>e?`on${ir(e)}`:""),sn=(e,t)=>!Object.is(e,t),ao=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},yu=e=>{const t=parseFloat(e);return isNaN(t)?e:t},_u=e=>{const t=fe(e)?Number(e):NaN;return isNaN(t)?e:t};let Xl;const Ro=()=>Xl||(Xl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ll(e){if(J(e)){const t={};for(let n=0;n{if(n){const r=n.split(Eu);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function sl(e){let t="";if(fe(e))t=e;else if(J(e))for(let n=0;n{const t=new Set(e);return t.w=0,t.n=0,t},ba=e=>(e.w&jt)>0,ya=e=>(e.n&jt)>0,Pu=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(f==="length"||!Kr(f)&&f>=i)&&a.push(c)})}else switch(n!==void 0&&a.push(s.get(n)),t){case"add":J(e)?ol(n)&&a.push(s.get("length")):(a.push(s.get(nn)),Wn(e)&&a.push(s.get(Oo)));break;case"delete":J(e)||(a.push(s.get(nn)),Wn(e)&&a.push(s.get(Oo)));break;case"set":Wn(e)&&a.push(s.get(nn));break}if(a.length===1)a[0]&&$o(a[0]);else{const i=[];for(const c of a)c&&i.push(...c);$o(al(i))}}function $o(e,t){const n=J(e)?e:[...e];for(const r of n)r.computed&&Ql(r);for(const r of n)r.computed||Ql(r)}function Ql(e,t){(e!==it||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Iu(e,t){var n;return(n=$r.get(e))==null?void 0:n.get(t)}const Ou=tl("__proto__,__v_isRef,__isVue"),Ea=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Kr)),es=$u();function $u(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=ae(this);for(let l=0,s=this.length;l{e[t]=function(...n){On();const r=ae(this)[t].apply(this,n);return $n(),r}}),e}function Mu(e){const t=ae(this);return ze(t,"has",e),t.hasOwnProperty(e)}class Ta{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,r){const o=this._isReadonly,l=this._shallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return l;if(n==="__v_raw"&&r===(o?l?qu:La:l?ka:Ca).get(t))return t;const s=J(t);if(!o){if(s&&ue(es,n))return Reflect.get(es,n,r);if(n==="hasOwnProperty")return Mu}const a=Reflect.get(t,n,r);return(Kr(n)?Ea.has(n):Ou(n))||(o||ze(t,"get",n),l)?a:Re(a)?s&&ol(n)?a:a.value:Te(a)?o?Gt(a):cr(a):a}}class xa extends Ta{constructor(t=!1){super(!1,t)}set(t,n,r,o){let l=t[n];if(xn(l)&&Re(l)&&!Re(r))return!1;if(!this._shallow&&(!Mr(r)&&!xn(r)&&(l=ae(l),r=ae(r)),!J(t)&&Re(l)&&!Re(r)))return l.value=r,!0;const s=J(t)&&ol(n)?Number(n)e,qr=e=>Reflect.getPrototypeOf(e);function yr(e,t,n=!1,r=!1){e=e.__v_raw;const o=ae(e),l=ae(t);n||(sn(t,l)&&ze(o,"get",t),ze(o,"get",l));const{has:s}=qr(o),a=r?cl:n?dl:Qn;if(s.call(o,t))return a(e.get(t));if(s.call(o,l))return a(e.get(l));e!==o&&e.get(t)}function _r(e,t=!1){const n=this.__v_raw,r=ae(n),o=ae(e);return t||(sn(e,o)&&ze(r,"has",e),ze(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function wr(e,t=!1){return e=e.__v_raw,!t&&ze(ae(e),"iterate",nn),Reflect.get(e,"size",e)}function ts(e){e=ae(e);const t=ae(this);return qr(t).has.call(t,e)||(t.add(e),St(t,"add",e,e)),this}function ns(e,t){t=ae(t);const n=ae(this),{has:r,get:o}=qr(n);let l=r.call(n,e);l||(e=ae(e),l=r.call(n,e));const s=o.call(n,e);return n.set(e,t),l?sn(t,s)&&St(n,"set",e,t):St(n,"add",e,t),this}function rs(e){const t=ae(this),{has:n,get:r}=qr(t);let o=n.call(t,e);o||(e=ae(e),o=n.call(t,e)),r&&r.call(t,e);const l=t.delete(e);return o&&St(t,"delete",e,void 0),l}function os(){const e=ae(this),t=e.size!==0,n=e.clear();return t&&St(e,"clear",void 0,void 0),n}function Er(e,t){return function(r,o){const l=this,s=l.__v_raw,a=ae(s),i=t?cl:e?dl:Qn;return!e&&ze(a,"iterate",nn),s.forEach((c,f)=>r.call(o,i(c),i(f),l))}}function Tr(e,t,n){return function(...r){const o=this.__v_raw,l=ae(o),s=Wn(l),a=e==="entries"||e===Symbol.iterator&&s,i=e==="keys"&&s,c=o[e](...r),f=n?cl:t?dl:Qn;return!t&&ze(l,"iterate",i?Oo:nn),{next(){const{value:d,done:p}=c.next();return p?{value:d,done:p}:{value:a?[f(d[0]),f(d[1])]:f(d),done:p}},[Symbol.iterator](){return this}}}}function Ot(e){return function(...t){return e==="delete"?!1:this}}function Fu(){const e={get(l){return yr(this,l)},get size(){return wr(this)},has:_r,add:ts,set:ns,delete:rs,clear:os,forEach:Er(!1,!1)},t={get(l){return yr(this,l,!1,!0)},get size(){return wr(this)},has:_r,add:ts,set:ns,delete:rs,clear:os,forEach:Er(!1,!0)},n={get(l){return yr(this,l,!0)},get size(){return wr(this,!0)},has(l){return _r.call(this,l,!0)},add:Ot("add"),set:Ot("set"),delete:Ot("delete"),clear:Ot("clear"),forEach:Er(!0,!1)},r={get(l){return yr(this,l,!0,!0)},get size(){return wr(this,!0)},has(l){return _r.call(this,l,!0)},add:Ot("add"),set:Ot("set"),delete:Ot("delete"),clear:Ot("clear"),forEach:Er(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(l=>{e[l]=Tr(l,!1,!1),n[l]=Tr(l,!0,!1),t[l]=Tr(l,!1,!0),r[l]=Tr(l,!0,!0)}),[e,n,t,r]}const[Vu,zu,ju,Wu]=Fu();function ul(e,t){const n=t?e?Wu:ju:e?zu:Vu;return(r,o,l)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(ue(n,o)&&o in r?n:r,o,l)}const Ku={get:ul(!1,!1)},Uu={get:ul(!1,!0)},Gu={get:ul(!0,!1)},Ca=new WeakMap,ka=new WeakMap,La=new WeakMap,qu=new WeakMap;function Zu(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Yu(e){return e.__v_skip||!Object.isExtensible(e)?0:Zu(vu(e))}function cr(e){return xn(e)?e:fl(e,!1,Nu,Ku,Ca)}function Sa(e){return fl(e,!1,Bu,Uu,ka)}function Gt(e){return fl(e,!0,Hu,Gu,La)}function fl(e,t,n,r,o){if(!Te(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const l=o.get(e);if(l)return l;const s=Yu(e);if(s===0)return e;const a=new Proxy(e,s===2?r:n);return o.set(e,a),a}function _n(e){return xn(e)?_n(e.__v_raw):!!(e&&e.__v_isReactive)}function xn(e){return!!(e&&e.__v_isReadonly)}function Mr(e){return!!(e&&e.__v_isShallow)}function Aa(e){return _n(e)||xn(e)}function ae(e){const t=e&&e.__v_raw;return t?ae(t):e}function Pa(e){return Or(e,"__v_skip",!0),e}const Qn=e=>Te(e)?cr(e):e,dl=e=>Te(e)?Gt(e):e;function pl(e){Vt&&it&&(e=ae(e),wa(e.dep||(e.dep=al())))}function hl(e,t){e=ae(e);const n=e.dep;n&&$o(n)}function Re(e){return!!(e&&e.__v_isRef===!0)}function X(e){return Ra(e,!1)}function Ze(e){return Ra(e,!0)}function Ra(e,t){return Re(e)?e:new Xu(e,t)}class Xu{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ae(t),this._value=n?t:Qn(t)}get value(){return pl(this),this._value}set value(t){const n=this.__v_isShallow||Mr(t)||xn(t);t=n?t:ae(t),sn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Qn(t),hl(this))}}function rn(e){return Re(e)?e.value:e}const Ju={get:(e,t,n)=>rn(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Re(o)&&!Re(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Ia(e){return _n(e)?e:new Proxy(e,Ju)}class Qu{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>pl(this),()=>hl(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function Oa(e){return new Qu(e)}class ef{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,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 Iu(ae(this._object),this._key)}}class tf{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Zr(e,t,n){return Re(e)?e:oe(e)?new tf(e):Te(e)&&arguments.length>1?nf(e,t,n):X(e)}function nf(e,t,n){const r=e[t];return Re(r)?r:new ef(e,t,n)}class rf{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new il(t,()=>{this._dirty||(this._dirty=!0,hl(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=ae(this);return pl(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function of(e,t,n=!1){let r,o;const l=oe(e);return l?(r=e,o=ut):(r=e.get,o=e.set),new rf(r,o,l||!o,n)}function zt(e,t,n,r){let o;try{o=r?e(...r):e()}catch(l){ur(l,t,n)}return o}function nt(e,t,n,r){if(oe(e)){const l=zt(e,t,n,r);return l&&va(l)&&l.catch(s=>{ur(s,t,n)}),l}const o=[];for(let l=0;l>>1,o=Me[r],l=tr(o);l_t&&Me.splice(t,1)}function cf(e){J(e)?wn.push(...e):(!kt||!kt.includes(e,e.allowRecurse?Qt+1:Qt))&&wn.push(e),Ma()}function ls(e,t=er?_t+1:0){for(;ttr(n)-tr(r)),Qt=0;Qte.id==null?1/0:e.id,uf=(e,t)=>{const n=tr(e)-tr(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Da(e){Mo=!1,er=!0,Me.sort(uf);const t=ut;try{for(_t=0;_tfe(h)?h.trim():h)),d&&(o=n.map(yu))}let a,i=r[a=so(t)]||r[a=so(ot(t))];!i&&l&&(i=r[a=so(In(t))]),i&&nt(i,e,6,o);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,nt(c,e,6,o)}}function Na(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const l=e.emits;let s={},a=!1;if(!oe(e)){const i=c=>{const f=Na(c,t,!0);f&&(a=!0,Ae(s,f))};!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}return!l&&!a?(Te(e)&&r.set(e,null),null):(J(l)?l.forEach(i=>s[i]=null):Ae(s,l),Te(e)&&r.set(e,s),s)}function Xr(e,t){return!e||!ar(t)?!1:(t=t.slice(2).replace(/Once$/,""),ue(e,t[0].toLowerCase()+t.slice(1))||ue(e,In(t))||ue(e,t))}let tt=null,Ha=null;function Nr(e){const t=tt;return tt=e,Ha=e&&e.type.__scopeId||null,t}function df(e,t=tt,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&gs(-1);const l=Nr(t);let s;try{s=e(...o)}finally{Nr(l),r._d&&gs(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function io(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:l,propsOptions:[s],slots:a,attrs:i,emit:c,render:f,renderCache:d,data:p,setupState:h,ctx:g,inheritAttrs:w}=e;let T,_;const L=Nr(e);try{if(n.shapeFlag&4){const E=o||r;T=at(f.call(E,E,d,l,h,p,g)),_=i}else{const E=t;T=at(E.length>1?E(l,{attrs:i,slots:a,emit:c}):E(l,null)),_=t.props?i:pf(i)}}catch(E){Zn.length=0,ur(E,e,1),T=xe(rt)}let b=T;if(_&&w!==!1){const E=Object.keys(_),{shapeFlag:H}=b;E.length&&H&7&&(s&&E.some(nl)&&(_=hf(_,s)),b=Wt(b,_))}return n.dirs&&(b=Wt(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),T=b,Nr(L),T}const pf=e=>{let t;for(const n in e)(n==="class"||n==="style"||ar(n))&&((t||(t={}))[n]=e[n]);return t},hf=(e,t)=>{const n={};for(const r in e)(!nl(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function vf(e,t,n){const{props:r,children:o,component:l}=e,{props:s,children:a,patchFlag:i}=t,c=l.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&i>=0){if(i&1024)return!0;if(i&16)return r?ss(r,s,c):!!s;if(i&8){const f=t.dynamicProps;for(let d=0;de.__isSuspense;function Ba(e,t){t&&t.pendingBranch?J(e)?t.effects.push(...e):t.effects.push(e):cf(e)}function Fa(e,t){return ml(e,null,t)}const xr={};function se(e,t,n){return ml(e,t,n)}function ml(e,t,{immediate:n,deep:r,flush:o,onTrack:l,onTrigger:s}=we){var a;const i=ga()===((a=Pe)==null?void 0:a.scope)?Pe:null;let c,f=!1,d=!1;if(Re(e)?(c=()=>e.value,f=Mr(e)):_n(e)?(c=()=>e,r=!0):J(e)?(d=!0,f=e.some(E=>_n(E)||Mr(E)),c=()=>e.map(E=>{if(Re(E))return E.value;if(_n(E))return vn(E);if(oe(E))return zt(E,i,2)})):oe(e)?t?c=()=>zt(e,i,2):c=()=>{if(!(i&&i.isUnmounted))return p&&p(),nt(e,i,3,[h])}:c=ut,t&&r){const E=c;c=()=>vn(E())}let p,h=E=>{p=L.onStop=()=>{zt(E,i,4)}},g;if(Ln)if(h=ut,t?n&&nt(t,i,3,[c(),d?[]:void 0,h]):c(),o==="sync"){const E=dd();g=E.__watcherHandles||(E.__watcherHandles=[])}else return ut;let w=d?new Array(e.length).fill(xr):xr;const T=()=>{if(L.active)if(t){const E=L.run();(r||f||(d?E.some((H,A)=>sn(H,w[A])):sn(E,w)))&&(p&&p(),nt(t,i,3,[E,w===xr?void 0:d&&w[0]===xr?[]:w,h]),w=E)}else L.run()};T.allowRecurse=!!t;let _;o==="sync"?_=T:o==="post"?_=()=>Be(T,i&&i.suspense):(T.pre=!0,i&&(T.id=i.uid),_=()=>Yr(T));const L=new il(c,_);t?n?T():w=L.run():o==="post"?Be(L.run.bind(L),i&&i.suspense):L.run();const b=()=>{L.stop(),i&&i.scope&&rl(i.scope.effects,L)};return g&&g.push(b),b}function bf(e,t,n){const r=this.proxy,o=fe(e)?e.includes(".")?Va(r,e):()=>r[e]:e.bind(r,r);let l;oe(t)?l=t:(l=t.handler,n=t);const s=Pe;kn(this);const a=ml(o,l.bind(r),n);return s?kn(s):ln(),a}function Va(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o{vn(n,t)});else if(mu(e))for(const n in e)vn(e[n],t);return e}function yt(e,t,n,r){const o=e.dirs,l=t&&t.dirs;for(let s=0;s{e.isMounted=!0}),bl(()=>{e.isUnmounting=!0}),e}const Je=[Function,Array],ja={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Je,onEnter:Je,onAfterEnter:Je,onEnterCancelled:Je,onBeforeLeave:Je,onLeave:Je,onAfterLeave:Je,onLeaveCancelled:Je,onBeforeAppear:Je,onAppear:Je,onAfterAppear:Je,onAppearCancelled:Je},yf={name:"BaseTransition",props:ja,setup(e,{slots:t}){const n=cn(),r=za();let o;return()=>{const l=t.default&&gl(t.default(),!0);if(!l||!l.length)return;let s=l[0];if(l.length>1){for(const w of l)if(w.type!==rt){s=w;break}}const a=ae(e),{mode:i}=a;if(r.isLeaving)return co(s);const c=as(s);if(!c)return co(s);const f=nr(c,a,r,n);rr(c,f);const d=n.subTree,p=d&&as(d);let h=!1;const{getTransitionKey:g}=c.type;if(g){const w=g();o===void 0?o=w:w!==o&&(o=w,h=!0)}if(p&&p.type!==rt&&(!en(c,p)||h)){const w=nr(p,a,r,n);if(rr(p,w),i==="out-in")return r.isLeaving=!0,w.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},co(s);i==="in-out"&&c.type!==rt&&(w.delayLeave=(T,_,L)=>{const b=Wa(r,p);b[String(p.key)]=p,T[Ht]=()=>{_(),T[Ht]=void 0,delete f.delayedLeave},f.delayedLeave=L})}return s}}},_f=yf;function Wa(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function nr(e,t,n,r){const{appear:o,mode:l,persisted:s=!1,onBeforeEnter:a,onEnter:i,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:d,onLeave:p,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:w,onAppear:T,onAfterAppear:_,onAppearCancelled:L}=t,b=String(e.key),E=Wa(n,e),H=(R,B)=>{R&&nt(R,r,9,B)},A=(R,B)=>{const F=B[1];H(R,B),J(R)?R.every(Q=>Q.length<=1)&&F():R.length<=1&&F()},U={mode:l,persisted:s,beforeEnter(R){let B=a;if(!n.isMounted)if(o)B=w||a;else return;R[Ht]&&R[Ht](!0);const F=E[b];F&&en(e,F)&&F.el[Ht]&&F.el[Ht](),H(B,[R])},enter(R){let B=i,F=c,Q=f;if(!n.isMounted)if(o)B=T||i,F=_||c,Q=L||f;else return;let N=!1;const ee=R[Cr]=Ee=>{N||(N=!0,Ee?H(Q,[R]):H(F,[R]),U.delayedLeave&&U.delayedLeave(),R[Cr]=void 0)};B?A(B,[R,ee]):ee()},leave(R,B){const F=String(e.key);if(R[Cr]&&R[Cr](!0),n.isUnmounting)return B();H(d,[R]);let Q=!1;const N=R[Ht]=ee=>{Q||(Q=!0,B(),ee?H(g,[R]):H(h,[R]),R[Ht]=void 0,E[F]===e&&delete E[F])};E[F]=e,p?A(p,[R,N]):N()},clone(R){return nr(R,t,n,r)}};return U}function co(e){if(fr(e))return e=Wt(e),e.children=null,e}function as(e){return fr(e)?e.children?e.children[0]:void 0:e}function rr(e,t){e.shapeFlag&6&&e.component?rr(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 gl(e,t=!1,n){let r=[],o=0;for(let l=0;l1)for(let l=0;lAe({name:e.name},t,{setup:e}))():e}const Un=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function ne(e){oe(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,timeout:l,suspensible:s=!0,onError:a}=e;let i=null,c,f=0;const d=()=>(f++,i=null,p()),p=()=>{let h;return i||(h=i=t().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),a)return new Promise((w,T)=>{a(g,()=>w(d()),()=>T(g),f+1)});throw g}).then(g=>h!==i&&i?i:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),c=g,g)))};return K({name:"AsyncComponentWrapper",__asyncLoader:p,get __asyncResolved(){return c},setup(){const h=Pe;if(c)return()=>uo(c,h);const g=L=>{i=null,ur(L,h,13,!r)};if(s&&h.suspense||Ln)return p().then(L=>()=>uo(L,h)).catch(L=>(g(L),()=>r?xe(r,{error:L}):null));const w=X(!1),T=X(),_=X(!!o);return o&&setTimeout(()=>{_.value=!1},o),l!=null&&setTimeout(()=>{if(!w.value&&!T.value){const L=new Error(`Async component timed out after ${l}ms.`);g(L),T.value=L}},l),p().then(()=>{w.value=!0,h.parent&&fr(h.parent.vnode)&&Yr(h.parent.update)}).catch(L=>{g(L),T.value=L}),()=>{if(w.value&&c)return uo(c,h);if(T.value&&r)return xe(r,{error:T.value});if(n&&!_.value)return xe(n)}}})}function uo(e,t){const{ref:n,props:r,children:o,ce:l}=t.vnode,s=xe(e,r,o);return s.ref=n,s.ce=l,delete t.vnode.ce,s}const fr=e=>e.type.__isKeepAlive;function wf(e,t){Ka(e,"a",t)}function Ef(e,t){Ka(e,"da",t)}function Ka(e,t,n=Pe){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Jr(t,r,n),n){let o=n.parent;for(;o&&o.parent;)fr(o.parent.vnode)&&Tf(r,t,n,o),o=o.parent}}function Tf(e,t,n,r){const o=Jr(t,e,r,!0);Mn(()=>{rl(r[t],o)},n)}function Jr(e,t,n=Pe,r=!1){if(n){const o=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;On(),kn(n);const a=nt(t,n,e,s);return ln(),$n(),a});return r?o.unshift(l):o.push(l),l}}const Rt=e=>(t,n=Pe)=>(!Ln||e==="sp")&&Jr(e,(...r)=>t(...r),n),xf=Rt("bm"),me=Rt("m"),Cf=Rt("bu"),Ua=Rt("u"),bl=Rt("bum"),Mn=Rt("um"),kf=Rt("sp"),Lf=Rt("rtg"),Sf=Rt("rtc");function Af(e,t=Pe){Jr("ec",e,t)}const Ga="components";function ft(e,t){return Rf(Ga,e,!0,t)||e}const Pf=Symbol.for("v-ndc");function Rf(e,t,n=!0,r=!1){const o=tt||Pe;if(o){const l=o.type;if(e===Ga){const a=cd(l,!1);if(a&&(a===t||a===ot(t)||a===ir(ot(t))))return l}const s=is(o[e]||l[e],t)||is(o.appContext[e],t);return!s&&r?l:s}}function is(e,t){return e&&(e[t]||e[ot(t)]||e[ir(ot(t))])}const Do=e=>e?ai(e)?Tl(e)||e.proxy:Do(e.parent):null,Gn=Ae(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Do(e.parent),$root:e=>Do(e.root),$emit:e=>e.emit,$options:e=>yl(e),$forceUpdate:e=>e.f||(e.f=()=>Yr(e.update)),$nextTick:e=>e.n||(e.n=an.bind(e.proxy)),$watch:e=>bf.bind(e)}),fo=(e,t)=>e!==we&&!e.__isScriptSetup&&ue(e,t),If={get({_:e},t){const{ctx:n,setupState:r,data:o,props:l,accessCache:s,type:a,appContext:i}=e;let c;if(t[0]!=="$"){const h=s[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return l[t]}else{if(fo(r,t))return s[t]=1,r[t];if(o!==we&&ue(o,t))return s[t]=2,o[t];if((c=e.propsOptions[0])&&ue(c,t))return s[t]=3,l[t];if(n!==we&&ue(n,t))return s[t]=4,n[t];No&&(s[t]=0)}}const f=Gn[t];let d,p;if(f)return t==="$attrs"&&ze(e,"get",t),f(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==we&&ue(n,t))return s[t]=4,n[t];if(p=i.config.globalProperties,ue(p,t))return p[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:l}=e;return fo(o,t)?(o[t]=n,!0):r!==we&&ue(r,t)?(r[t]=n,!0):ue(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(l[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:l}},s){let a;return!!n[s]||e!==we&&ue(e,s)||fo(t,s)||(a=l[0])&&ue(a,s)||ue(r,s)||ue(Gn,s)||ue(o.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ue(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function cs(e){return J(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let No=!0;function Of(e){const t=yl(e),n=e.proxy,r=e.ctx;No=!1,t.beforeCreate&&us(t.beforeCreate,e,"bc");const{data:o,computed:l,methods:s,watch:a,provide:i,inject:c,created:f,beforeMount:d,mounted:p,beforeUpdate:h,updated:g,activated:w,deactivated:T,beforeDestroy:_,beforeUnmount:L,destroyed:b,unmounted:E,render:H,renderTracked:A,renderTriggered:U,errorCaptured:R,serverPrefetch:B,expose:F,inheritAttrs:Q,components:N,directives:ee,filters:Ee}=t;if(c&&$f(c,r,null),s)for(const te in s){const G=s[te];oe(G)&&(r[te]=G.bind(n))}if(o){const te=o.call(n,n);Te(te)&&(e.data=cr(te))}if(No=!0,l)for(const te in l){const G=l[te],ke=oe(G)?G.bind(n,n):oe(G.get)?G.get.bind(n,n):ut,mt=!oe(G)&&oe(G.set)?G.set.bind(n):ut,Xe=k({get:ke,set:mt});Object.defineProperty(r,te,{enumerable:!0,configurable:!0,get:()=>Xe.value,set:$e=>Xe.value=$e})}if(a)for(const te in a)qa(a[te],r,n,te);if(i){const te=oe(i)?i.call(n):i;Reflect.ownKeys(te).forEach(G=>{on(G,te[G])})}f&&us(f,e,"c");function j(te,G){J(G)?G.forEach(ke=>te(ke.bind(n))):G&&te(G.bind(n))}if(j(xf,d),j(me,p),j(Cf,h),j(Ua,g),j(wf,w),j(Ef,T),j(Af,R),j(Sf,A),j(Lf,U),j(bl,L),j(Mn,E),j(kf,B),J(F))if(F.length){const te=e.exposed||(e.exposed={});F.forEach(G=>{Object.defineProperty(te,G,{get:()=>n[G],set:ke=>n[G]=ke})})}else e.exposed||(e.exposed={});H&&e.render===ut&&(e.render=H),Q!=null&&(e.inheritAttrs=Q),N&&(e.components=N),ee&&(e.directives=ee)}function $f(e,t,n=ut){J(e)&&(e=Ho(e));for(const r in e){const o=e[r];let l;Te(o)?"default"in o?l=ve(o.from||r,o.default,!0):l=ve(o.from||r):l=ve(o),Re(l)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>l.value,set:s=>l.value=s}):t[r]=l}}function us(e,t,n){nt(J(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function qa(e,t,n,r){const o=r.includes(".")?Va(n,r):()=>n[r];if(fe(e)){const l=t[e];oe(l)&&se(o,l)}else if(oe(e))se(o,e.bind(n));else if(Te(e))if(J(e))e.forEach(l=>qa(l,t,n,r));else{const l=oe(e.handler)?e.handler.bind(n):t[e.handler];oe(l)&&se(o,l,e)}}function yl(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:l,config:{optionMergeStrategies:s}}=e.appContext,a=l.get(t);let i;return a?i=a:!o.length&&!n&&!r?i=t:(i={},o.length&&o.forEach(c=>Hr(i,c,s,!0)),Hr(i,t,s)),Te(t)&&l.set(t,i),i}function Hr(e,t,n,r=!1){const{mixins:o,extends:l}=t;l&&Hr(e,l,n,!0),o&&o.forEach(s=>Hr(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const a=Mf[s]||n&&n[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const Mf={data:fs,props:ds,emits:ds,methods:jn,computed:jn,beforeCreate:De,created:De,beforeMount:De,mounted:De,beforeUpdate:De,updated:De,beforeDestroy:De,beforeUnmount:De,destroyed:De,unmounted:De,activated:De,deactivated:De,errorCaptured:De,serverPrefetch:De,components:jn,directives:jn,watch:Nf,provide:fs,inject:Df};function fs(e,t){return t?e?function(){return Ae(oe(e)?e.call(this,this):e,oe(t)?t.call(this,this):t)}:t:e}function Df(e,t){return jn(Ho(e),Ho(t))}function Ho(e){if(J(e)){const t={};for(let n=0;n1)return n&&oe(t)?t.call(r&&r.proxy):t}}function Ff(e,t,n,r=!1){const o={},l={};Or(l,Qr,1),e.propsDefaults=Object.create(null),Ya(e,t,o,l);for(const s in e.propsOptions[0])s in o||(o[s]=void 0);n?e.props=r?o:Sa(o):e.type.props?e.props=o:e.props=l,e.attrs=l}function Vf(e,t,n,r){const{props:o,attrs:l,vnode:{patchFlag:s}}=e,a=ae(o),[i]=e.propsOptions;let c=!1;if((r||s>0)&&!(s&16)){if(s&8){const f=e.vnode.dynamicProps;for(let d=0;d{i=!0;const[p,h]=Xa(d,t,!0);Ae(s,p),h&&a.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!l&&!i)return Te(e)&&r.set(e,yn),yn;if(J(l))for(let f=0;f-1,h[1]=w<0||g-1||ue(h,"default"))&&a.push(d)}}}const c=[s,a];return Te(e)&&r.set(e,c),c}function ps(e){return e[0]!=="$"}function hs(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function vs(e,t){return hs(e)===hs(t)}function ms(e,t){return J(t)?t.findIndex(n=>vs(n,e)):oe(t)&&vs(t,e)?0:-1}const Ja=e=>e[0]==="_"||e==="$stable",_l=e=>J(e)?e.map(at):[at(e)],zf=(e,t,n)=>{if(t._n)return t;const r=df((...o)=>_l(t(...o)),n);return r._c=!1,r},Qa=(e,t,n)=>{const r=e._ctx;for(const o in e){if(Ja(o))continue;const l=e[o];if(oe(l))t[o]=zf(o,l,r);else if(l!=null){const s=_l(l);t[o]=()=>s}}},ei=(e,t)=>{const n=_l(t);e.slots.default=()=>n},jf=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ae(t),Or(t,"_",n)):Qa(t,e.slots={})}else e.slots={},t&&ei(e,t);Or(e.slots,Qr,1)},Wf=(e,t,n)=>{const{vnode:r,slots:o}=e;let l=!0,s=we;if(r.shapeFlag&32){const a=t._;a?n&&a===1?l=!1:(Ae(o,t),!n&&a===1&&delete o._):(l=!t.$stable,Qa(t,o)),s=t}else t&&(ei(e,t),s={default:1});if(l)for(const a in o)!Ja(a)&&s[a]==null&&delete o[a]};function Fr(e,t,n,r,o=!1){if(J(e)){e.forEach((p,h)=>Fr(p,t&&(J(t)?t[h]:t),n,r,o));return}if(Un(r)&&!o)return;const l=r.shapeFlag&4?Tl(r.component)||r.component.proxy:r.el,s=o?null:l,{i:a,r:i}=e,c=t&&t.r,f=a.refs===we?a.refs={}:a.refs,d=a.setupState;if(c!=null&&c!==i&&(fe(c)?(f[c]=null,ue(d,c)&&(d[c]=null)):Re(c)&&(c.value=null)),oe(i))zt(i,a,12,[s,f]);else{const p=fe(i),h=Re(i);if(p||h){const g=()=>{if(e.f){const w=p?ue(d,i)?d[i]:f[i]:i.value;o?J(w)&&rl(w,l):J(w)?w.includes(l)||w.push(l):p?(f[i]=[l],ue(d,i)&&(d[i]=f[i])):(i.value=[l],e.k&&(f[e.k]=i.value))}else p?(f[i]=s,ue(d,i)&&(d[i]=s)):h&&(i.value=s,e.k&&(f[e.k]=s))};s?(g.id=-1,Be(g,n)):g()}}}let $t=!1;const kr=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",Lr=e=>e.nodeType===8;function Kf(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:l,parentNode:s,remove:a,insert:i,createComment:c}}=e,f=(b,E)=>{if(!E.hasChildNodes()){n(null,b,E),Dr(),E._vnode=b;return}$t=!1,d(E.firstChild,b,null,null,null),Dr(),E._vnode=b,$t&&console.error("Hydration completed but contains mismatches.")},d=(b,E,H,A,U,R=!1)=>{const B=Lr(b)&&b.data==="[",F=()=>w(b,E,H,A,U,B),{type:Q,ref:N,shapeFlag:ee,patchFlag:Ee}=E;let _e=b.nodeType;E.el=b,Ee===-2&&(R=!1,E.dynamicChildren=null);let j=null;switch(Q){case Cn:_e!==3?E.children===""?(i(E.el=o(""),s(b),b),j=b):j=F():(b.data!==E.children&&($t=!0,b.data=E.children),j=l(b));break;case rt:if(_e!==8||B)if(b.tagName.toLowerCase()==="template"){const te=E.el.content.firstChild;_(te,b,H),E.el=b=te,j=l(b)}else j=F();else j=l(b);break;case qn:if(B&&(b=l(b),_e=b.nodeType),_e===1||_e===3){j=b;const te=!E.children.length;for(let G=0;G{R=R||!!E.dynamicChildren;const{type:B,props:F,patchFlag:Q,shapeFlag:N,dirs:ee,transition:Ee}=E,_e=B==="input"&&ee||B==="option";if(_e||Q!==-1){if(ee&&yt(E,null,H,"created"),F)if(_e||!R||Q&48)for(const G in F)(_e&&G.endsWith("value")||ar(G)&&!Kn(G))&&r(b,G,null,F[G],!1,void 0,H);else F.onClick&&r(b,"onClick",null,F.onClick,!1,void 0,H);let j;(j=F&&F.onVnodeBeforeMount)&&Qe(j,H,E);let te=!1;if(L(b)){te=ti(A,Ee)&&H&&H.vnode.props&&H.vnode.props.appear;const G=b.content.firstChild;te&&Ee.beforeEnter(G),_(G,b,H),E.el=b=G}if(ee&&yt(E,null,H,"beforeMount"),((j=F&&F.onVnodeMounted)||ee||te)&&Ba(()=>{j&&Qe(j,H,E),te&&Ee.enter(b),ee&&yt(E,null,H,"mounted")},A),N&16&&!(F&&(F.innerHTML||F.textContent))){let G=h(b.firstChild,E,b,H,A,U,R);for(;G;){$t=!0;const ke=G;G=G.nextSibling,a(ke)}}else N&8&&b.textContent!==E.children&&($t=!0,b.textContent=E.children)}return b.nextSibling},h=(b,E,H,A,U,R,B)=>{B=B||!!E.dynamicChildren;const F=E.children,Q=F.length;for(let N=0;N{const{slotScopeIds:B}=E;B&&(U=U?U.concat(B):B);const F=s(b),Q=h(l(b),E,F,H,A,U,R);return Q&&Lr(Q)&&Q.data==="]"?l(E.anchor=Q):($t=!0,i(E.anchor=c("]"),F,Q),Q)},w=(b,E,H,A,U,R)=>{if($t=!0,E.el=null,R){const Q=T(b);for(;;){const N=l(b);if(N&&N!==Q)a(N);else break}}const B=l(b),F=s(b);return a(b),n(null,E,F,B,H,A,kr(F),U),B},T=(b,E="[",H="]")=>{let A=0;for(;b;)if(b=l(b),b&&Lr(b)&&(b.data===E&&A++,b.data===H)){if(A===0)return l(b);A--}return b},_=(b,E,H)=>{const A=E.parentNode;A&&A.replaceChild(b,E);let U=H;for(;U;)U.vnode.el===E&&(U.vnode.el=b,U.subTree.el=b),U=U.parent},L=b=>b.nodeType===1&&b.tagName.toLowerCase()==="template";return[f,d]}const Be=Ba;function Uf(e){return Gf(e,Kf)}function Gf(e,t){const n=Ro();n.__VUE__=!0;const{insert:r,remove:o,patchProp:l,createElement:s,createText:a,createComment:i,setText:c,setElementText:f,parentNode:d,nextSibling:p,setScopeId:h=ut,insertStaticContent:g}=e,w=(v,m,y,x=null,S=null,P=null,V=!1,$=null,D=!!m.dynamicChildren)=>{if(v===m)return;v&&!en(v,m)&&(x=C(v),$e(v,S,P,!0),v=null),m.patchFlag===-2&&(D=!1,m.dynamicChildren=null);const{type:I,ref:Z,shapeFlag:W}=m;switch(I){case Cn:T(v,m,y,x);break;case rt:_(v,m,y,x);break;case qn:v==null&&L(m,y,x,V);break;case Ge:N(v,m,y,x,S,P,V,$,D);break;default:W&1?H(v,m,y,x,S,P,V,$,D):W&6?ee(v,m,y,x,S,P,V,$,D):(W&64||W&128)&&I.process(v,m,y,x,S,P,V,$,D,M)}Z!=null&&S&&Fr(Z,v&&v.ref,P,m||v,!m)},T=(v,m,y,x)=>{if(v==null)r(m.el=a(m.children),y,x);else{const S=m.el=v.el;m.children!==v.children&&c(S,m.children)}},_=(v,m,y,x)=>{v==null?r(m.el=i(m.children||""),y,x):m.el=v.el},L=(v,m,y,x)=>{[v.el,v.anchor]=g(v.children,m,y,x,v.el,v.anchor)},b=({el:v,anchor:m},y,x)=>{let S;for(;v&&v!==m;)S=p(v),r(v,y,x),v=S;r(m,y,x)},E=({el:v,anchor:m})=>{let y;for(;v&&v!==m;)y=p(v),o(v),v=y;o(m)},H=(v,m,y,x,S,P,V,$,D)=>{V=V||m.type==="svg",v==null?A(m,y,x,S,P,V,$,D):B(v,m,S,P,V,$,D)},A=(v,m,y,x,S,P,V,$)=>{let D,I;const{type:Z,props:W,shapeFlag:Y,transition:re,dirs:le}=v;if(D=v.el=s(v.type,P,W&&W.is,W),Y&8?f(D,v.children):Y&16&&R(v.children,D,null,x,S,P&&Z!=="foreignObject",V,$),le&&yt(v,null,x,"created"),U(D,v,v.scopeId,V,x),W){for(const pe in W)pe!=="value"&&!Kn(pe)&&l(D,pe,null,W[pe],P,v.children,x,S,Le);"value"in W&&l(D,"value",null,W.value),(I=W.onVnodeBeforeMount)&&Qe(I,x,v)}le&&yt(v,null,x,"beforeMount");const be=ti(S,re);be&&re.beforeEnter(D),r(D,m,y),((I=W&&W.onVnodeMounted)||be||le)&&Be(()=>{I&&Qe(I,x,v),be&&re.enter(D),le&&yt(v,null,x,"mounted")},S)},U=(v,m,y,x,S)=>{if(y&&h(v,y),x)for(let P=0;P{for(let I=D;I{const $=m.el=v.el;let{patchFlag:D,dynamicChildren:I,dirs:Z}=m;D|=v.patchFlag&16;const W=v.props||we,Y=m.props||we;let re;y&&Xt(y,!1),(re=Y.onVnodeBeforeUpdate)&&Qe(re,y,m,v),Z&&yt(m,v,y,"beforeUpdate"),y&&Xt(y,!0);const le=S&&m.type!=="foreignObject";if(I?F(v.dynamicChildren,I,$,y,x,le,P):V||G(v,m,$,null,y,x,le,P,!1),D>0){if(D&16)Q($,m,W,Y,y,x,S);else if(D&2&&W.class!==Y.class&&l($,"class",null,Y.class,S),D&4&&l($,"style",W.style,Y.style,S),D&8){const be=m.dynamicProps;for(let pe=0;pe{re&&Qe(re,y,m,v),Z&&yt(m,v,y,"updated")},x)},F=(v,m,y,x,S,P,V)=>{for(let $=0;${if(y!==x){if(y!==we)for(const $ in y)!Kn($)&&!($ in x)&&l(v,$,y[$],null,V,m.children,S,P,Le);for(const $ in x){if(Kn($))continue;const D=x[$],I=y[$];D!==I&&$!=="value"&&l(v,$,I,D,V,m.children,S,P,Le)}"value"in x&&l(v,"value",y.value,x.value)}},N=(v,m,y,x,S,P,V,$,D)=>{const I=m.el=v?v.el:a(""),Z=m.anchor=v?v.anchor:a("");let{patchFlag:W,dynamicChildren:Y,slotScopeIds:re}=m;re&&($=$?$.concat(re):re),v==null?(r(I,y,x),r(Z,y,x),R(m.children,y,Z,S,P,V,$,D)):W>0&&W&64&&Y&&v.dynamicChildren?(F(v.dynamicChildren,Y,y,S,P,V,$),(m.key!=null||S&&m===S.subTree)&&ni(v,m,!0)):G(v,m,y,Z,S,P,V,$,D)},ee=(v,m,y,x,S,P,V,$,D)=>{m.slotScopeIds=$,v==null?m.shapeFlag&512?S.ctx.activate(m,y,x,V,D):Ee(m,y,x,S,P,V,D):_e(v,m,D)},Ee=(v,m,y,x,S,P,V)=>{const $=v.component=od(v,x,S);if(fr(v)&&($.ctx.renderer=M),ld($),$.asyncDep){if(S&&S.registerDep($,j),!v.el){const D=$.subTree=xe(rt);_(null,D,m,y)}return}j($,v,m,y,S,P,V)},_e=(v,m,y)=>{const x=m.component=v.component;if(vf(v,m,y))if(x.asyncDep&&!x.asyncResolved){te(x,m,y);return}else x.next=m,af(x.update),x.update();else m.el=v.el,x.vnode=m},j=(v,m,y,x,S,P,V)=>{const $=()=>{if(v.isMounted){let{next:Z,bu:W,u:Y,parent:re,vnode:le}=v,be=Z,pe;Xt(v,!1),Z?(Z.el=le.el,te(v,Z,V)):Z=le,W&&ao(W),(pe=Z.props&&Z.props.onVnodeBeforeUpdate)&&Qe(pe,re,Z,le),Xt(v,!0);const Se=io(v),lt=v.subTree;v.subTree=Se,w(lt,Se,d(lt.el),C(lt),v,S,P),Z.el=Se.el,be===null&&mf(v,Se.el),Y&&Be(Y,S),(pe=Z.props&&Z.props.onVnodeUpdated)&&Be(()=>Qe(pe,re,Z,le),S)}else{let Z;const{el:W,props:Y}=m,{bm:re,m:le,parent:be}=v,pe=Un(m);if(Xt(v,!1),re&&ao(re),!pe&&(Z=Y&&Y.onVnodeBeforeMount)&&Qe(Z,be,m),Xt(v,!0),W&&ie){const Se=()=>{v.subTree=io(v),ie(W,v.subTree,v,S,null)};pe?m.type.__asyncLoader().then(()=>!v.isUnmounted&&Se()):Se()}else{const Se=v.subTree=io(v);w(null,Se,y,x,v,S,P),m.el=Se.el}if(le&&Be(le,S),!pe&&(Z=Y&&Y.onVnodeMounted)){const Se=m;Be(()=>Qe(Z,be,Se),S)}(m.shapeFlag&256||be&&Un(be.vnode)&&be.vnode.shapeFlag&256)&&v.a&&Be(v.a,S),v.isMounted=!0,m=y=x=null}},D=v.effect=new il($,()=>Yr(I),v.scope),I=v.update=()=>D.run();I.id=v.uid,Xt(v,!0),I()},te=(v,m,y)=>{m.component=v;const x=v.vnode.props;v.vnode=m,v.next=null,Vf(v,m.props,x,y),Wf(v,m.children,y),On(),ls(),$n()},G=(v,m,y,x,S,P,V,$,D=!1)=>{const I=v&&v.children,Z=v?v.shapeFlag:0,W=m.children,{patchFlag:Y,shapeFlag:re}=m;if(Y>0){if(Y&128){mt(I,W,y,x,S,P,V,$,D);return}else if(Y&256){ke(I,W,y,x,S,P,V,$,D);return}}re&8?(Z&16&&Le(I,S,P),W!==I&&f(y,W)):Z&16?re&16?mt(I,W,y,x,S,P,V,$,D):Le(I,S,P,!0):(Z&8&&f(y,""),re&16&&R(W,y,x,S,P,V,$,D))},ke=(v,m,y,x,S,P,V,$,D)=>{v=v||yn,m=m||yn;const I=v.length,Z=m.length,W=Math.min(I,Z);let Y;for(Y=0;YZ?Le(v,S,P,!0,!1,W):R(m,y,x,S,P,V,$,D,W)},mt=(v,m,y,x,S,P,V,$,D)=>{let I=0;const Z=m.length;let W=v.length-1,Y=Z-1;for(;I<=W&&I<=Y;){const re=v[I],le=m[I]=D?Bt(m[I]):at(m[I]);if(en(re,le))w(re,le,y,null,S,P,V,$,D);else break;I++}for(;I<=W&&I<=Y;){const re=v[W],le=m[Y]=D?Bt(m[Y]):at(m[Y]);if(en(re,le))w(re,le,y,null,S,P,V,$,D);else break;W--,Y--}if(I>W){if(I<=Y){const re=Y+1,le=reY)for(;I<=W;)$e(v[I],S,P,!0),I++;else{const re=I,le=I,be=new Map;for(I=le;I<=Y;I++){const Ke=m[I]=D?Bt(m[I]):at(m[I]);Ke.key!=null&&be.set(Ke.key,I)}let pe,Se=0;const lt=Y-le+1;let un=!1,Gl=0;const Hn=new Array(lt);for(I=0;I=lt){$e(Ke,S,P,!0);continue}let bt;if(Ke.key!=null)bt=be.get(Ke.key);else for(pe=le;pe<=Y;pe++)if(Hn[pe-le]===0&&en(Ke,m[pe])){bt=pe;break}bt===void 0?$e(Ke,S,P,!0):(Hn[bt-le]=I+1,bt>=Gl?Gl=bt:un=!0,w(Ke,m[bt],y,null,S,P,V,$,D),Se++)}const ql=un?qf(Hn):yn;for(pe=ql.length-1,I=lt-1;I>=0;I--){const Ke=le+I,bt=m[Ke],Zl=Ke+1{const{el:P,type:V,transition:$,children:D,shapeFlag:I}=v;if(I&6){Xe(v.component.subTree,m,y,x);return}if(I&128){v.suspense.move(m,y,x);return}if(I&64){V.move(v,m,y,M);return}if(V===Ge){r(P,m,y);for(let W=0;W$.enter(P),S);else{const{leave:W,delayLeave:Y,afterLeave:re}=$,le=()=>r(P,m,y),be=()=>{W(P,()=>{le(),re&&re()})};Y?Y(P,le,be):be()}else r(P,m,y)},$e=(v,m,y,x=!1,S=!1)=>{const{type:P,props:V,ref:$,children:D,dynamicChildren:I,shapeFlag:Z,patchFlag:W,dirs:Y}=v;if($!=null&&Fr($,null,y,v,!0),Z&256){m.ctx.deactivate(v);return}const re=Z&1&&Y,le=!Un(v);let be;if(le&&(be=V&&V.onVnodeBeforeUnmount)&&Qe(be,m,v),Z&6)gt(v.component,y,x);else{if(Z&128){v.suspense.unmount(y,x);return}re&&yt(v,null,m,"beforeUnmount"),Z&64?v.type.remove(v,m,y,S,M,x):I&&(P!==Ge||W>0&&W&64)?Le(I,m,y,!1,!0):(P===Ge&&W&384||!S&&Z&16)&&Le(D,m,y),x&&We(v)}(le&&(be=V&&V.onVnodeUnmounted)||re)&&Be(()=>{be&&Qe(be,m,v),re&&yt(v,null,m,"unmounted")},y)},We=v=>{const{type:m,el:y,anchor:x,transition:S}=v;if(m===Ge){wt(y,x);return}if(m===qn){E(v);return}const P=()=>{o(y),S&&!S.persisted&&S.afterLeave&&S.afterLeave()};if(v.shapeFlag&1&&S&&!S.persisted){const{leave:V,delayLeave:$}=S,D=()=>V(y,P);$?$(v.el,P,D):D()}else P()},wt=(v,m)=>{let y;for(;v!==m;)y=p(v),o(v),v=y;o(m)},gt=(v,m,y)=>{const{bum:x,scope:S,update:P,subTree:V,um:$}=v;x&&ao(x),S.stop(),P&&(P.active=!1,$e(V,v,m,y)),$&&Be($,m),Be(()=>{v.isUnmounted=!0},m),m&&m.pendingBranch&&!m.isUnmounted&&v.asyncDep&&!v.asyncResolved&&v.suspenseId===m.pendingId&&(m.deps--,m.deps===0&&m.resolve())},Le=(v,m,y,x=!1,S=!1,P=0)=>{for(let V=P;Vv.shapeFlag&6?C(v.component.subTree):v.shapeFlag&128?v.suspense.next():p(v.anchor||v.el),z=(v,m,y)=>{v==null?m._vnode&&$e(m._vnode,null,null,!0):w(m._vnode||null,v,m,null,null,null,y),ls(),Dr(),m._vnode=v},M={p:w,um:$e,m:Xe,r:We,mt:Ee,mc:R,pc:G,pbc:F,n:C,o:e};let q,ie;return t&&([q,ie]=t(M)),{render:z,hydrate:q,createApp:Bf(z,q)}}function Xt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ti(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ni(e,t,n=!1){const r=e.children,o=t.children;if(J(r)&&J(o))for(let l=0;l>1,e[n[a]]0&&(t[r]=n[l-1]),n[l]=r)}}for(l=n.length,s=n[l-1];l-- >0;)n[l]=s,s=t[s];return n}const Zf=e=>e.__isTeleport,Ge=Symbol.for("v-fgt"),Cn=Symbol.for("v-txt"),rt=Symbol.for("v-cmt"),qn=Symbol.for("v-stc"),Zn=[];let ct=null;function Yf(e=!1){Zn.push(ct=e?null:[])}function Xf(){Zn.pop(),ct=Zn[Zn.length-1]||null}let or=1;function gs(e){or+=e}function ri(e){return e.dynamicChildren=or>0?ct||yn:null,Xf(),or>0&&ct&&ct.push(e),e}function Rm(e,t,n,r,o,l){return ri(li(e,t,n,r,o,l,!0))}function Jf(e,t,n,r,o){return ri(xe(e,t,n,r,o,!0))}function Fo(e){return e?e.__v_isVNode===!0:!1}function en(e,t){return e.type===t.type&&e.key===t.key}const Qr="__vInternal",oi=({key:e})=>e??null,Ir=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?fe(e)||Re(e)||oe(e)?{i:tt,r:e,k:t,f:!!n}:e:null);function li(e,t=null,n=null,r=0,o=null,l=e===Ge?0:1,s=!1,a=!1){const i={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&oi(t),ref:t&&Ir(t),scopeId:Ha,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:l,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:tt};return a?(wl(i,n),l&128&&e.normalize(i)):n&&(i.shapeFlag|=fe(n)?8:16),or>0&&!s&&ct&&(i.patchFlag>0||l&6)&&i.patchFlag!==32&&ct.push(i),i}const xe=Qf;function Qf(e,t=null,n=null,r=0,o=null,l=!1){if((!e||e===Pf)&&(e=rt),Fo(e)){const a=Wt(e,t,!0);return n&&wl(a,n),or>0&&!l&&ct&&(a.shapeFlag&6?ct[ct.indexOf(e)]=a:ct.push(a)),a.patchFlag|=-2,a}if(ud(e)&&(e=e.__vccOpts),t){t=ed(t);let{class:a,style:i}=t;a&&!fe(a)&&(t.class=sl(a)),Te(i)&&(Aa(i)&&!J(i)&&(i=Ae({},i)),t.style=ll(i))}const s=fe(e)?1:gf(e)?128:Zf(e)?64:Te(e)?4:oe(e)?2:0;return li(e,t,n,r,o,s,l,!0)}function ed(e){return e?Aa(e)||Qr in e?Ae({},e):e:null}function Wt(e,t,n=!1){const{props:r,ref:o,patchFlag:l,children:s}=e,a=t?td(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&oi(a),ref:t&&t.ref?n&&o?J(o)?o.concat(Ir(t)):[o,Ir(t)]:Ir(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ge?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Wt(e.ssContent),ssFallback:e.ssFallback&&Wt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function si(e=" ",t=0){return xe(Cn,null,e,t)}function Im(e,t){const n=xe(qn,null,e);return n.staticCount=t,n}function Om(e="",t=!1){return t?(Yf(),Jf(rt,null,e)):xe(rt,null,e)}function at(e){return e==null||typeof e=="boolean"?xe(rt):J(e)?xe(Ge,null,e.slice()):typeof e=="object"?Bt(e):xe(Cn,null,String(e))}function Bt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Wt(e)}function wl(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(J(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),wl(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(Qr in t)?t._ctx=tt:o===3&&tt&&(tt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else oe(t)?(t={default:t,_ctx:tt},n=32):(t=String(t),r&64?(n=16,t=[si(t)]):n=8);e.children=t,e.shapeFlag|=n}function td(...e){const t={};for(let n=0;nPe||tt;let El,fn,bs="__VUE_INSTANCE_SETTERS__";(fn=Ro()[bs])||(fn=Ro()[bs]=[]),fn.push(e=>Pe=e),El=e=>{fn.length>1?fn.forEach(t=>t(e)):fn[0](e)};const kn=e=>{El(e),e.scope.on()},ln=()=>{Pe&&Pe.scope.off(),El(null)};function ai(e){return e.vnode.shapeFlag&4}let Ln=!1;function ld(e,t=!1){Ln=t;const{props:n,children:r}=e.vnode,o=ai(e);Ff(e,n,o,t),jf(e,r);const l=o?sd(e,t):void 0;return Ln=!1,l}function sd(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Pa(new Proxy(e.ctx,If));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?id(e):null;kn(e),On();const l=zt(r,e,0,[e.props,o]);if($n(),ln(),va(l)){if(l.then(ln,ln),t)return l.then(s=>{ys(e,s,t)}).catch(s=>{ur(s,e,0)});e.asyncDep=l}else ys(e,l,t)}else ii(e,t)}function ys(e,t,n){oe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Te(t)&&(e.setupState=Ia(t)),ii(e,n)}let _s;function ii(e,t,n){const r=e.type;if(!e.render){if(!t&&_s&&!r.render){const o=r.template||yl(e).template;if(o){const{isCustomElement:l,compilerOptions:s}=e.appContext.config,{delimiters:a,compilerOptions:i}=r,c=Ae(Ae({isCustomElement:l,delimiters:a},s),i);r.render=_s(o,c)}}e.render=r.render||ut}{kn(e),On();try{Of(e)}finally{$n(),ln()}}}function ad(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return ze(e,"get","$attrs"),t[n]}}))}function id(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return ad(e)},slots:e.slots,emit:e.emit,expose:t}}function Tl(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Ia(Pa(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Gn)return Gn[n](e)},has(t,n){return n in t||n in Gn}}))}function cd(e,t=!0){return oe(e)?e.displayName||e.name:e.name||t&&e.__name}function ud(e){return oe(e)&&"__vccOpts"in e}const k=(e,t)=>of(e,t,Ln);function u(e,t,n){const r=arguments.length;return r===2?Te(t)&&!J(t)?Fo(t)?xe(e,null,[t]):xe(e,t):xe(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Fo(n)&&(n=[n]),xe(e,t,n))}const fd=Symbol.for("v-scx"),dd=()=>ve(fd),pd="3.3.7",hd="http://www.w3.org/2000/svg",tn=typeof document<"u"?document:null,ws=tn&&tn.createElement("template"),vd={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?tn.createElementNS(hd,e):tn.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>tn.createTextNode(e),createComment:e=>tn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>tn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,l){const s=n?n.previousSibling:t.lastChild;if(o&&(o===l||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===l||!(o=o.nextSibling)););else{ws.innerHTML=r?`${e}`:e;const a=ws.content;if(r){const i=a.firstChild;for(;i.firstChild;)a.appendChild(i.firstChild);a.removeChild(i)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Mt="transition",Bn="animation",Sn=Symbol("_vtc"),Kt=(e,{slots:t})=>u(_f,ui(e),t);Kt.displayName="Transition";const ci={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},md=Kt.props=Ae({},ja,ci),Jt=(e,t=[])=>{J(e)?e.forEach(n=>n(...t)):e&&e(...t)},Es=e=>e?J(e)?e.some(t=>t.length>1):e.length>1:!1;function ui(e){const t={};for(const N in e)N in ci||(t[N]=e[N]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:l=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:i=l,appearActiveClass:c=s,appearToClass:f=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,g=gd(o),w=g&&g[0],T=g&&g[1],{onBeforeEnter:_,onEnter:L,onEnterCancelled:b,onLeave:E,onLeaveCancelled:H,onBeforeAppear:A=_,onAppear:U=L,onAppearCancelled:R=b}=t,B=(N,ee,Ee)=>{Nt(N,ee?f:a),Nt(N,ee?c:s),Ee&&Ee()},F=(N,ee)=>{N._isLeaving=!1,Nt(N,d),Nt(N,h),Nt(N,p),ee&&ee()},Q=N=>(ee,Ee)=>{const _e=N?U:L,j=()=>B(ee,N,Ee);Jt(_e,[ee,j]),Ts(()=>{Nt(ee,N?i:l),Tt(ee,N?f:a),Es(_e)||xs(ee,r,w,j)})};return Ae(t,{onBeforeEnter(N){Jt(_,[N]),Tt(N,l),Tt(N,s)},onBeforeAppear(N){Jt(A,[N]),Tt(N,i),Tt(N,c)},onEnter:Q(!1),onAppear:Q(!0),onLeave(N,ee){N._isLeaving=!0;const Ee=()=>F(N,ee);Tt(N,d),di(),Tt(N,p),Ts(()=>{N._isLeaving&&(Nt(N,d),Tt(N,h),Es(E)||xs(N,r,T,Ee))}),Jt(E,[N,Ee])},onEnterCancelled(N){B(N,!1),Jt(b,[N])},onAppearCancelled(N){B(N,!0),Jt(R,[N])},onLeaveCancelled(N){F(N),Jt(H,[N])}})}function gd(e){if(e==null)return null;if(Te(e))return[po(e.enter),po(e.leave)];{const t=po(e);return[t,t]}}function po(e){return _u(e)}function Tt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Sn]||(e[Sn]=new Set)).add(t)}function Nt(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Sn];n&&(n.delete(t),n.size||(e[Sn]=void 0))}function Ts(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let bd=0;function xs(e,t,n,r){const o=e._endId=++bd,l=()=>{o===e._endId&&r()};if(n)return setTimeout(l,n);const{type:s,timeout:a,propCount:i}=fi(e,t);if(!s)return r();const c=s+"end";let f=0;const d=()=>{e.removeEventListener(c,p),l()},p=h=>{h.target===e&&++f>=i&&d()};setTimeout(()=>{f(n[g]||"").split(", "),o=r(`${Mt}Delay`),l=r(`${Mt}Duration`),s=Cs(o,l),a=r(`${Bn}Delay`),i=r(`${Bn}Duration`),c=Cs(a,i);let f=null,d=0,p=0;t===Mt?s>0&&(f=Mt,d=s,p=l.length):t===Bn?c>0&&(f=Bn,d=c,p=i.length):(d=Math.max(s,c),f=d>0?s>c?Mt:Bn:null,p=f?f===Mt?l.length:i.length:0);const h=f===Mt&&/\b(transform|all)(,|$)/.test(r(`${Mt}Property`).toString());return{type:f,timeout:d,propCount:p,hasTransform:h}}function Cs(e,t){for(;e.lengthks(n)+ks(e[r])))}function ks(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function di(){return document.body.offsetHeight}function yd(e,t,n){const r=e[Sn];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const _d=Symbol("_vod");function wd(e,t,n){const r=e.style,o=fe(n);if(n&&!o){if(t&&!fe(t))for(const l in t)n[l]==null&&Vo(r,l,"");for(const l in n)Vo(r,l,n[l])}else{const l=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),_d in e&&(r.display=l)}}const Ls=/\s*!important$/;function Vo(e,t,n){if(J(n))n.forEach(r=>Vo(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Ed(e,t);Ls.test(n)?e.setProperty(In(r),n.replace(Ls,""),"important"):e[r]=n}}const Ss=["Webkit","Moz","ms"],ho={};function Ed(e,t){const n=ho[t];if(n)return n;let r=ot(t);if(r!=="filter"&&r in e)return ho[t]=r;r=ir(r);for(let o=0;ovo||(Ad.then(()=>vo=0),vo=Date.now());function Rd(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;nt(Id(r,n.value),t,5,[r])};return n.value=e,n.attached=Pd(),n}function Id(e,t){if(J(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const Is=/^on[a-z]/,Od=(e,t,n,r,o=!1,l,s,a,i)=>{t==="class"?yd(e,r,o):t==="style"?wd(e,n,r):ar(t)?nl(t)||Ld(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):$d(e,t,r,o))?xd(e,t,r,l,s,a,i):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Td(e,t,r,o))};function $d(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&Is.test(t)&&oe(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Is.test(t)&&fe(n)?!1:t in e}const pi=new WeakMap,hi=new WeakMap,Vr=Symbol("_moveCb"),Os=Symbol("_enterCb"),vi={name:"TransitionGroup",props:Ae({},md,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=cn(),r=za();let o,l;return Ua(()=>{if(!o.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!Fd(o[0].el,n.vnode.el,s))return;o.forEach(Nd),o.forEach(Hd);const a=o.filter(Bd);di(),a.forEach(i=>{const c=i.el,f=c.style;Tt(c,s),f.transform=f.webkitTransform=f.transitionDuration="";const d=c[Vr]=p=>{p&&p.target!==c||(!p||/transform$/.test(p.propertyName))&&(c.removeEventListener("transitionend",d),c[Vr]=null,Nt(c,s))};c.addEventListener("transitionend",d)})}),()=>{const s=ae(e),a=ui(s);let i=s.tag||Ge;o=l,l=t.default?gl(t.default()):[];for(let c=0;cdelete e.mode;vi.props;const Dd=vi;function Nd(e){const t=e.el;t[Vr]&&t[Vr](),t[Os]&&t[Os]()}function Hd(e){hi.set(e,e.el.getBoundingClientRect())}function Bd(e){const t=pi.get(e),n=hi.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const l=e.el.style;return l.transform=l.webkitTransform=`translate(${r}px,${o}px)`,l.transitionDuration="0s",e}}function Fd(e,t,n){const r=e.cloneNode(),o=e[Sn];o&&o.forEach(a=>{a.split(/\s+/).forEach(i=>i&&r.classList.remove(i))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const l=t.nodeType===1?t:t.parentNode;l.appendChild(r);const{hasTransform:s}=fi(r);return l.removeChild(r),s}const Vd=Ae({patchProp:Od},vd);let mo,$s=!1;function zd(){return mo=$s?mo:Uf(Vd),$s=!0,mo}const jd=(...e)=>{const t=zd().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Wd(r);if(o)return n(o,!0,o instanceof SVGElement)},t};function Wd(e){return fe(e)?document.querySelector(e):e}const Kd={"v-8daa1a0e":()=>O(()=>import("./index.html-100b410e.js"),[]).then(({data:e})=>e),"v-74bc627b":()=>O(()=>import("./index.html-504e4869.js"),[]).then(({data:e})=>e),"v-22991227":()=>O(()=>import("./about.html-7d984a3d.js"),[]).then(({data:e})=>e),"v-59513697":()=>O(()=>import("./develop.html-90de5ce3.js"),[]).then(({data:e})=>e),"v-5993bf33":()=>O(()=>import("./license.html-0d1d1ea1.js"),[]).then(({data:e})=>e),"v-638c1d18":()=>O(()=>import("./index.html-c688fc39.js"),[]).then(({data:e})=>e),"v-1bb267ce":()=>O(()=>import("./edit_complex_custom_text.html-9269663d.js"),[]).then(({data:e})=>e),"v-3f75ff62":()=>O(()=>import("./edit_deck.html-ad9b269b.js"),[]).then(({data:e})=>e),"v-53c17e03":()=>O(()=>import("./edit_helpdoc.html-2acfae3a.js"),[]).then(({data:e})=>e),"v-2fd3d5f8":()=>O(()=>import("./edit_jsscript.html-7693e7fb.js"),[]).then(({data:e})=>e),"v-7c798590":()=>O(()=>import("./edit_reply.html-864990e1.js"),[]).then(({data:e})=>e),"v-1375253a":()=>O(()=>import("./edit_sensitive_words.html-0af33e8e.js"),[]).then(({data:e})=>e),"v-c7c02ce4":()=>O(()=>import("./introduce.html-ed378809.js"),[]).then(({data:e})=>e),"v-309cd60c":()=>O(()=>import("./script.html-0c9ac02a.js"),[]).then(({data:e})=>e),"v-ba934fd8":()=>O(()=>import("./index.html-a2823f62.js"),[]).then(({data:e})=>e),"v-3614fa3e":()=>O(()=>import("./ban.html-043c1e02.js"),[]).then(({data:e})=>e),"v-645298bb":()=>O(()=>import("./censor.html-cd0a1880.js"),[]).then(({data:e})=>e),"v-21148c92":()=>O(()=>import("./custom_text.html-ef361804.js"),[]).then(({data:e})=>e),"v-7394443c":()=>O(()=>import("./deck.html-4b2e188f.js"),[]).then(({data:e})=>e),"v-2e19d214":()=>O(()=>import("./helpdoc.html-284859b3.js"),[]).then(({data:e})=>e),"v-0dd0cb1e":()=>O(()=>import("./jsscript.html-102df8cf.js"),[]).then(({data:e})=>e),"v-5312bf43":()=>O(()=>import("./reply.html-19290d83.js"),[]).then(({data:e})=>e),"v-72a9c1e2":()=>O(()=>import("./index.html-aaea9432.js"),[]).then(({data:e})=>e),"v-03edd4b8":()=>O(()=>import("./platform-dodo.html-5f8e76f0.js"),[]).then(({data:e})=>e),"v-50de070e":()=>O(()=>import("./platform-kook.html-7b805e18.js"),[]).then(({data:e})=>e),"v-f2535f24":()=>O(()=>import("./platform-qq.html-978af876.js"),[]).then(({data:e})=>e),"v-3a736ab4":()=>O(()=>import("./quick-start.html-77deb671.js"),[]).then(({data:e})=>e),"v-6fdc0ef8":()=>O(()=>import("./special_feature.html-5b02ee3d.js"),[]).then(({data:e})=>e),"v-43dbd51f":()=>O(()=>import("./transfer.html-08432ef9.js"),[]).then(({data:e})=>e),"v-744dba01":()=>O(()=>import("./index.html-0cb69b9c.js"),[]).then(({data:e})=>e),"v-7acffd8d":()=>O(()=>import("./attribute_alias.html-da518306.js"),[]).then(({data:e})=>e),"v-ccf9e350":()=>O(()=>import("./coc7.html-0800e237.js"),[]).then(({data:e})=>e),"v-017f73b9":()=>O(()=>import("./core.html-822a7262.js"),[]).then(({data:e})=>e),"v-2b665368":()=>O(()=>import("./deck_and_reply.html-223cd8a5.js"),[]).then(({data:e})=>e),"v-4f9c5270":()=>O(()=>import("./dnd5e.html-69dfc74c.js"),[]).then(({data:e})=>e),"v-56b95c84":()=>O(()=>import("./faq.html-a55bc751.js"),[]).then(({data:e})=>e),"v-739773bb":()=>O(()=>import("./fun.html-6201a3e7.js"),[]).then(({data:e})=>e),"v-e461914a":()=>O(()=>import("./introduce.html-8626e822.js"),[]).then(({data:e})=>e),"v-ccf19dd4":()=>O(()=>import("./log.html-f38c029e.js"),[]).then(({data:e})=>e),"v-0a7a5ed2":()=>O(()=>import("./other_rules.html-19513dfa.js"),[]).then(({data:e})=>e),"v-7c88c198":()=>O(()=>import("./quick-start.html-073006aa.js"),[]).then(({data:e})=>e),"v-4d2e85c5":()=>O(()=>import("./story.html-43f3395a.js"),[]).then(({data:e})=>e),"v-3706649a":()=>O(()=>import("./404.html-9cff2bf5.js"),[]).then(({data:e})=>e)},Ud=JSON.parse('{"base":"/sealdice-manual-next/","lang":"zh-CN","title":"海豹手册","description":"海豹核心的全新官方使用手册","head":[["link",{"rel":"icon","href":"/sealdice-manual-next/images/sealdice.svg"}]],"locales":{}}');var Gd=([e,t,n])=>e==="meta"&&t.name?`${e}.${t.name}`:["title","base"].includes(e)?e:e==="template"&&t.id?`${e}.${t.id}`:JSON.stringify([e,t,n]),qd=e=>{const t=new Set,n=[];return e.forEach(r=>{const o=Gd(r);t.has(o)||(t.add(o),n.push(r))}),n},Zd=e=>e[e.length-1]==="/"||e.endsWith(".html")?e:`${e}/`,Yd=e=>e.startsWith("ftp://"),Dn=e=>/^(https?:)?\/\//.test(e),Xd=/.md((\?|#).*)?$/,zr=(e,t="/")=>!!(Dn(e)||Yd(e)||e.startsWith("/")&&!e.startsWith(t)&&!Xd.test(e)),mi=e=>/^mailto:/.test(e),Jd=e=>/^tel:/.test(e),xl=e=>Object.prototype.toString.call(e)==="[object Object]",Cl=e=>e[e.length-1]==="/"?e.slice(0,-1):e,gi=e=>e[0]==="/"?e.slice(1):e,Qd=(e,t)=>{const n=Object.keys(e).sort((r,o)=>{const l=o.split("/").length-r.split("/").length;return l!==0?l:o.length-r.length});for(const r of n)if(t.startsWith(r))return r;return"/"};const bi={"v-8daa1a0e":ne(()=>O(()=>import("./index.html-5bfe6aa2.js"),["assets/index.html-5bfe6aa2.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-74bc627b":ne(()=>O(()=>import("./index.html-220653af.js"),["assets/index.html-220653af.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-22991227":ne(()=>O(()=>import("./about.html-2578350a.js"),["assets/about.html-2578350a.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-59513697":ne(()=>O(()=>import("./develop.html-a08bf274.js"),["assets/develop.html-a08bf274.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-5993bf33":ne(()=>O(()=>import("./license.html-a20e844f.js"),["assets/license.html-a20e844f.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-638c1d18":ne(()=>O(()=>import("./index.html-6b857d4d.js"),["assets/index.html-6b857d4d.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-1bb267ce":ne(()=>O(()=>import("./edit_complex_custom_text.html-00f98460.js"),["assets/edit_complex_custom_text.html-00f98460.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-3f75ff62":ne(()=>O(()=>import("./edit_deck.html-cc869872.js"),["assets/edit_deck.html-cc869872.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-53c17e03":ne(()=>O(()=>import("./edit_helpdoc.html-490066e3.js"),["assets/edit_helpdoc.html-490066e3.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-2fd3d5f8":ne(()=>O(()=>import("./edit_jsscript.html-e9b77c82.js"),["assets/edit_jsscript.html-e9b77c82.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-7c798590":ne(()=>O(()=>import("./edit_reply.html-28bfffc8.js"),["assets/edit_reply.html-28bfffc8.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-1375253a":ne(()=>O(()=>import("./edit_sensitive_words.html-bf034b47.js"),["assets/edit_sensitive_words.html-bf034b47.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-c7c02ce4":ne(()=>O(()=>import("./introduce.html-4f742cd4.js"),["assets/introduce.html-4f742cd4.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-309cd60c":ne(()=>O(()=>import("./script.html-434ac9ea.js"),["assets/script.html-434ac9ea.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-ba934fd8":ne(()=>O(()=>import("./index.html-5bd131e8.js"),["assets/index.html-5bd131e8.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-3614fa3e":ne(()=>O(()=>import("./ban.html-69ffcc8a.js"),["assets/ban.html-69ffcc8a.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-645298bb":ne(()=>O(()=>import("./censor.html-8d1ce9b5.js"),["assets/censor.html-8d1ce9b5.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-21148c92":ne(()=>O(()=>import("./custom_text.html-d48f4482.js"),["assets/custom_text.html-d48f4482.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-7394443c":ne(()=>O(()=>import("./deck.html-c5fc3df7.js"),["assets/deck.html-c5fc3df7.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-2e19d214":ne(()=>O(()=>import("./helpdoc.html-0383a912.js"),["assets/helpdoc.html-0383a912.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-0dd0cb1e":ne(()=>O(()=>import("./jsscript.html-a806dddf.js"),["assets/jsscript.html-a806dddf.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-5312bf43":ne(()=>O(()=>import("./reply.html-a88aa392.js"),["assets/reply.html-a88aa392.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-72a9c1e2":ne(()=>O(()=>import("./index.html-fc5984b6.js"),["assets/index.html-fc5984b6.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-03edd4b8":ne(()=>O(()=>import("./platform-dodo.html-3dbd51fb.js"),["assets/platform-dodo.html-3dbd51fb.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-50de070e":ne(()=>O(()=>import("./platform-kook.html-a67ab83c.js"),["assets/platform-kook.html-a67ab83c.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-f2535f24":ne(()=>O(()=>import("./platform-qq.html-f4629c30.js"),["assets/platform-qq.html-f4629c30.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-3a736ab4":ne(()=>O(()=>import("./quick-start.html-3e85c69a.js"),["assets/quick-start.html-3e85c69a.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-6fdc0ef8":ne(()=>O(()=>import("./special_feature.html-e5f3b570.js"),["assets/special_feature.html-e5f3b570.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-43dbd51f":ne(()=>O(()=>import("./transfer.html-844ce329.js"),["assets/transfer.html-844ce329.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-744dba01":ne(()=>O(()=>import("./index.html-4ad9f49f.js"),["assets/index.html-4ad9f49f.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-7acffd8d":ne(()=>O(()=>import("./attribute_alias.html-16338a25.js"),["assets/attribute_alias.html-16338a25.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-ccf9e350":ne(()=>O(()=>import("./coc7.html-56d75285.js"),["assets/coc7.html-56d75285.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-017f73b9":ne(()=>O(()=>import("./core.html-a641a5a6.js"),["assets/core.html-a641a5a6.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-2b665368":ne(()=>O(()=>import("./deck_and_reply.html-f8402a30.js"),["assets/deck_and_reply.html-f8402a30.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-4f9c5270":ne(()=>O(()=>import("./dnd5e.html-57f4fe99.js"),["assets/dnd5e.html-57f4fe99.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-56b95c84":ne(()=>O(()=>import("./faq.html-04ef7b18.js"),["assets/faq.html-04ef7b18.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-739773bb":ne(()=>O(()=>import("./fun.html-73af9b0a.js"),["assets/fun.html-73af9b0a.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-e461914a":ne(()=>O(()=>import("./introduce.html-c7d15f37.js"),["assets/introduce.html-c7d15f37.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-ccf19dd4":ne(()=>O(()=>import("./log.html-77098619.js"),["assets/log.html-77098619.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-0a7a5ed2":ne(()=>O(()=>import("./other_rules.html-a829e88c.js"),["assets/other_rules.html-a829e88c.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-7c88c198":ne(()=>O(()=>import("./quick-start.html-8e217087.js"),["assets/quick-start.html-8e217087.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-4d2e85c5":ne(()=>O(()=>import("./story.html-795cdb5f.js"),["assets/story.html-795cdb5f.js","assets/plugin-vue_export-helper-c27b6911.js"])),"v-3706649a":ne(()=>O(()=>import("./404.html-ec26080c.js"),["assets/404.html-ec26080c.js","assets/plugin-vue_export-helper-c27b6911.js"]))};var ep=Symbol(""),yi=Symbol(""),tp=Gt({key:"",path:"",title:"",lang:"",frontmatter:{},headers:[]}),he=()=>{const e=ve(yi);if(!e)throw new Error("pageData() is called without provider.");return e},_i=Symbol(""),Oe=()=>{const e=ve(_i);if(!e)throw new Error("usePageFrontmatter() is called without provider.");return e},wi=Symbol(""),np=()=>{const e=ve(wi);if(!e)throw new Error("usePageHead() is called without provider.");return e},rp=Symbol(""),Ei=Symbol(""),Ti=()=>{const e=ve(Ei);if(!e)throw new Error("usePageLang() is called without provider.");return e},xi=Symbol(""),op=()=>{const e=ve(xi);if(!e)throw new Error("usePageLayout() is called without provider.");return e},lp=X(Kd),kl=Symbol(""),qt=()=>{const e=ve(kl);if(!e)throw new Error("useRouteLocale() is called without provider.");return e},mn=X(Ud),Ci=()=>mn,ki=Symbol(""),eo=()=>{const e=ve(ki);if(!e)throw new Error("useSiteLocaleData() is called without provider.");return e},sp=Symbol(""),ap="Layout",ip="NotFound",xt=cr({resolveLayouts:e=>e.reduce((t,n)=>({...t,...n.layouts}),{}),resolvePageData:async e=>{const t=lp.value[e];return await(t==null?void 0:t())??tp},resolvePageFrontmatter:e=>e.frontmatter,resolvePageHead:(e,t,n)=>{const r=fe(t.description)?t.description:n.description,o=[...J(t.head)?t.head:[],...n.head,["title",{},e],["meta",{name:"description",content:r}]];return qd(o)},resolvePageHeadTitle:(e,t)=>[e.title,t.title].filter(n=>!!n).join(" | "),resolvePageLang:(e,t)=>e.lang||t.lang||"en-US",resolvePageLayout:(e,t)=>{let n;if(e.path){const r=e.frontmatter.layout;fe(r)?n=r:n=ap}else n=ip;return t[n]},resolveRouteLocale:(e,t)=>Qd(e,t),resolveSiteLocaleData:(e,t)=>({...e,...e.locales[t]})}),to=K({name:"ClientOnly",setup(e,t){const n=X(!1);return me(()=>{n.value=!0}),()=>{var r,o;return n.value?(o=(r=t.slots).default)==null?void 0:o.call(r):null}}}),Li=K({name:"Content",props:{pageKey:{type:String,required:!1,default:""}},setup(e){const t=he(),n=k(()=>bi[e.pageKey||t.value.key]);return()=>n.value?u(n.value):u("div","404 Not Found")}}),vt=(e={})=>e,He=e=>Dn(e)?e:`/sealdice-manual-next/${gi(e)}`;const cp={};/*! + * vue-router v4.2.5 + * (c) 2023 Eduardo San Martin Morote + * @license MIT + */const hn=typeof window<"u";function up(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const de=Object.assign;function go(e,t){const n={};for(const r in t){const o=t[r];n[r]=pt(o)?o.map(e):e(o)}return n}const Yn=()=>{},pt=Array.isArray,fp=/\/$/,dp=e=>e.replace(fp,"");function bo(e,t,n="/"){let r,o={},l="",s="";const a=t.indexOf("#");let i=t.indexOf("?");return a=0&&(i=-1),i>-1&&(r=t.slice(0,i),l=t.slice(i+1,a>-1?a:t.length),o=e(l)),a>-1&&(r=r||t.slice(0,a),s=t.slice(a,t.length)),r=mp(r??t,n),{fullPath:r+(l&&"?")+l+s,path:r,query:o,hash:s}}function pp(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ms(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function hp(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&An(t.matched[r],n.matched[o])&&Si(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function An(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Si(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!vp(e[n],t[n]))return!1;return!0}function vp(e,t){return pt(e)?Ds(e,t):pt(t)?Ds(t,e):e===t}function Ds(e,t){return pt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function mp(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let l=n.length-1,s,a;for(s=0;s1&&l--;else break;return n.slice(0,l).join("/")+"/"+r.slice(s-(s===r.length?1:0)).join("/")}var lr;(function(e){e.pop="pop",e.push="push"})(lr||(lr={}));var Xn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Xn||(Xn={}));function gp(e){if(!e)if(hn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),dp(e)}const bp=/^[^#]+#/;function yp(e,t){return e.replace(bp,"#")+t}function _p(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const no=()=>({left:window.pageXOffset,top:window.pageYOffset});function wp(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=_p(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Ns(e,t){return(history.state?history.state.position-t:-1)+e}const zo=new Map;function Ep(e,t){zo.set(e,t)}function Tp(e){const t=zo.get(e);return zo.delete(e),t}let xp=()=>location.protocol+"//"+location.host;function Ai(e,t){const{pathname:n,search:r,hash:o}=t,l=e.indexOf("#");if(l>-1){let a=o.includes(e.slice(l))?e.slice(l).length:1,i=o.slice(a);return i[0]!=="/"&&(i="/"+i),Ms(i,"")}return Ms(n,e)+r+o}function Cp(e,t,n,r){let o=[],l=[],s=null;const a=({state:p})=>{const h=Ai(e,location),g=n.value,w=t.value;let T=0;if(p){if(n.value=h,t.value=p,s&&s===g){s=null;return}T=w?p.position-w.position:0}else r(h);o.forEach(_=>{_(n.value,g,{delta:T,type:lr.pop,direction:T?T>0?Xn.forward:Xn.back:Xn.unknown})})};function i(){s=n.value}function c(p){o.push(p);const h=()=>{const g=o.indexOf(p);g>-1&&o.splice(g,1)};return l.push(h),h}function f(){const{history:p}=window;p.state&&p.replaceState(de({},p.state,{scroll:no()}),"")}function d(){for(const p of l)p();l=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",f,{passive:!0}),{pauseListeners:i,listen:c,destroy:d}}function Hs(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?no():null}}function kp(e){const{history:t,location:n}=window,r={value:Ai(e,n)},o={value:t.state};o.value||l(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function l(i,c,f){const d=e.indexOf("#"),p=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+i:xp()+e+i;try{t[f?"replaceState":"pushState"](c,"",p),o.value=c}catch(h){console.error(h),n[f?"replace":"assign"](p)}}function s(i,c){const f=de({},t.state,Hs(o.value.back,i,o.value.forward,!0),c,{position:o.value.position});l(i,f,!0),r.value=i}function a(i,c){const f=de({},o.value,t.state,{forward:i,scroll:no()});l(f.current,f,!0);const d=de({},Hs(r.value,i,null),{position:f.position+1},c);l(i,d,!1),r.value=i}return{location:r,state:o,push:a,replace:s}}function Lp(e){e=gp(e);const t=kp(e),n=Cp(e,t.state,t.location,t.replace);function r(l,s=!0){s||n.pauseListeners(),history.go(l)}const o=de({location:"",base:e,go:r,createHref:yp.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Sp(e){return typeof e=="string"||e&&typeof e=="object"}function Pi(e){return typeof e=="string"||typeof e=="symbol"}const Ct={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Ri=Symbol("");var Bs;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Bs||(Bs={}));function Pn(e,t){return de(new Error,{type:e,[Ri]:!0},t)}function Et(e,t){return e instanceof Error&&Ri in e&&(t==null||!!(e.type&t))}const Fs="[^/]+?",Ap={sensitive:!1,strict:!1,start:!0,end:!0},Pp=/[.+*?^${}()[\]/\\]/g;function Rp(e,t){const n=de({},Ap,t),r=[];let o=n.start?"^":"";const l=[];for(const c of e){const f=c.length?[]:[90];n.strict&&!c.length&&(o+="/");for(let d=0;dt.length?t.length===1&&t[0]===40+40?1:-1:0}function Op(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const $p={type:0,value:""},Mp=/[a-zA-Z0-9_]/;function Dp(e){if(!e)return[[]];if(e==="/")return[[$p]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${c}": ${h}`)}let n=0,r=n;const o=[];let l;function s(){l&&o.push(l),l=[]}let a=0,i,c="",f="";function d(){c&&(n===0?l.push({type:0,value:c}):n===1||n===2||n===3?(l.length>1&&(i==="*"||i==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),l.push({type:1,value:c,regexp:f,repeatable:i==="*"||i==="+",optional:i==="*"||i==="?"})):t("Invalid state to consume buffer"),c="")}function p(){c+=i}for(;a{s(L)}:Yn}function s(f){if(Pi(f)){const d=r.get(f);d&&(r.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(s),d.alias.forEach(s))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&r.delete(f.record.name),f.children.forEach(s),f.alias.forEach(s))}}function a(){return n}function i(f){let d=0;for(;d=0&&(f.record.path!==n[d].record.path||!Ii(f,n[d]));)d++;n.splice(d,0,f),f.record.name&&!js(f)&&r.set(f.record.name,f)}function c(f,d){let p,h={},g,w;if("name"in f&&f.name){if(p=r.get(f.name),!p)throw Pn(1,{location:f});w=p.record.name,h=de(zs(d.params,p.keys.filter(L=>!L.optional).map(L=>L.name)),f.params&&zs(f.params,p.keys.map(L=>L.name))),g=p.stringify(h)}else if("path"in f)g=f.path,p=n.find(L=>L.re.test(g)),p&&(h=p.parse(g),w=p.record.name);else{if(p=d.name?r.get(d.name):n.find(L=>L.re.test(d.path)),!p)throw Pn(1,{location:f,currentLocation:d});w=p.record.name,h=de({},d.params,f.params),g=p.stringify(h)}const T=[];let _=p;for(;_;)T.unshift(_.record),_=_.parent;return{name:w,path:g,params:h,matched:T,meta:Vp(T)}}return e.forEach(f=>l(f)),{addRoute:l,resolve:c,removeRoute:s,getRoutes:a,getRecordMatcher:o}}function zs(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Bp(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Fp(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 Fp(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function js(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Vp(e){return e.reduce((t,n)=>de(t,n.meta),{})}function Ws(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Ii(e,t){return t.children.some(n=>n===e||Ii(e,n))}const Oi=/#/g,zp=/&/g,jp=/\//g,Wp=/=/g,Kp=/\?/g,$i=/\+/g,Up=/%5B/g,Gp=/%5D/g,Mi=/%5E/g,qp=/%60/g,Di=/%7B/g,Zp=/%7C/g,Ni=/%7D/g,Yp=/%20/g;function Ll(e){return encodeURI(""+e).replace(Zp,"|").replace(Up,"[").replace(Gp,"]")}function Xp(e){return Ll(e).replace(Di,"{").replace(Ni,"}").replace(Mi,"^")}function jo(e){return Ll(e).replace($i,"%2B").replace(Yp,"+").replace(Oi,"%23").replace(zp,"%26").replace(qp,"`").replace(Di,"{").replace(Ni,"}").replace(Mi,"^")}function Jp(e){return jo(e).replace(Wp,"%3D")}function Qp(e){return Ll(e).replace(Oi,"%23").replace(Kp,"%3F")}function eh(e){return e==null?"":Qp(e).replace(jp,"%2F")}function jr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function th(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;ol&&jo(l)):[r&&jo(r)]).forEach(l=>{l!==void 0&&(t+=(t.length?"&":"")+n,l!=null&&(t+="="+l))})}return t}function nh(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=pt(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const rh=Symbol(""),Us=Symbol(""),ro=Symbol(""),Sl=Symbol(""),Wo=Symbol("");function Fn(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Ft(e,t,n,r,o){const l=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((s,a)=>{const i=d=>{d===!1?a(Pn(4,{from:n,to:t})):d instanceof Error?a(d):Sp(d)?a(Pn(2,{from:t,to:d})):(l&&r.enterCallbacks[o]===l&&typeof d=="function"&&l.push(d),s())},c=e.call(r&&r.instances[o],t,n,i);let f=Promise.resolve(c);e.length<3&&(f=f.then(i)),f.catch(d=>a(d))})}function yo(e,t,n,r){const o=[];for(const l of e)for(const s in l.components){let a=l.components[s];if(!(t!=="beforeRouteEnter"&&!l.instances[s]))if(oh(a)){const c=(a.__vccOpts||a)[t];c&&o.push(Ft(c,n,r,l,s))}else{let i=a();o.push(()=>i.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${l.path}"`));const f=up(c)?c.default:c;l.components[s]=f;const p=(f.__vccOpts||f)[t];return p&&Ft(p,n,r,l,s)()}))}}return o}function oh(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ko(e){const t=ve(ro),n=ve(Sl),r=k(()=>t.resolve(rn(e.to))),o=k(()=>{const{matched:i}=r.value,{length:c}=i,f=i[c-1],d=n.matched;if(!f||!d.length)return-1;const p=d.findIndex(An.bind(null,f));if(p>-1)return p;const h=Gs(i[c-2]);return c>1&&Gs(f)===h&&d[d.length-1].path!==h?d.findIndex(An.bind(null,i[c-2])):p}),l=k(()=>o.value>-1&&ih(n.params,r.value.params)),s=k(()=>o.value>-1&&o.value===n.matched.length-1&&Si(n.params,r.value.params));function a(i={}){return ah(i)?t[rn(e.replace)?"replace":"push"](rn(e.to)).catch(Yn):Promise.resolve()}return{route:r,href:k(()=>r.value.href),isActive:l,isExactActive:s,navigate:a}}const lh=K({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:Ko,setup(e,{slots:t}){const n=cr(Ko(e)),{options:r}=ve(ro),o=k(()=>({[qs(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[qs(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const l=t.default&&t.default(n);return e.custom?l:u("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},l)}}}),sh=lh;function ah(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 ih(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!pt(o)||o.length!==r.length||r.some((l,s)=>l!==o[s]))return!1}return!0}function Gs(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const qs=(e,t,n)=>e??t??n,ch=K({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=ve(Wo),o=k(()=>e.route||r.value),l=ve(Us,0),s=k(()=>{let c=rn(l);const{matched:f}=o.value;let d;for(;(d=f[c])&&!d.components;)c++;return c}),a=k(()=>o.value.matched[s.value]);on(Us,k(()=>s.value+1)),on(rh,a),on(Wo,o);const i=X();return se(()=>[i.value,a.value,e.name],([c,f,d],[p,h,g])=>{f&&(f.instances[d]=c,h&&h!==f&&c&&c===p&&(f.leaveGuards.size||(f.leaveGuards=h.leaveGuards),f.updateGuards.size||(f.updateGuards=h.updateGuards))),c&&f&&(!h||!An(f,h)||!p)&&(f.enterCallbacks[d]||[]).forEach(w=>w(c))},{flush:"post"}),()=>{const c=o.value,f=e.name,d=a.value,p=d&&d.components[f];if(!p)return Zs(n.default,{Component:p,route:c});const h=d.props[f],g=h?h===!0?c.params:typeof h=="function"?h(c):h:null,T=u(p,de({},g,t,{onVnodeUnmounted:_=>{_.component.isUnmounted&&(d.instances[f]=null)},ref:i}));return Zs(n.default,{Component:T,route:c})||T}}});function Zs(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Hi=ch;function uh(e){const t=Hp(e.routes,e),n=e.parseQuery||th,r=e.stringifyQuery||Ks,o=e.history,l=Fn(),s=Fn(),a=Fn(),i=Ze(Ct);let c=Ct;hn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=go.bind(null,C=>""+C),d=go.bind(null,eh),p=go.bind(null,jr);function h(C,z){let M,q;return Pi(C)?(M=t.getRecordMatcher(C),q=z):q=C,t.addRoute(q,M)}function g(C){const z=t.getRecordMatcher(C);z&&t.removeRoute(z)}function w(){return t.getRoutes().map(C=>C.record)}function T(C){return!!t.getRecordMatcher(C)}function _(C,z){if(z=de({},z||i.value),typeof C=="string"){const y=bo(n,C,z.path),x=t.resolve({path:y.path},z),S=o.createHref(y.fullPath);return de(y,x,{params:p(x.params),hash:jr(y.hash),redirectedFrom:void 0,href:S})}let M;if("path"in C)M=de({},C,{path:bo(n,C.path,z.path).path});else{const y=de({},C.params);for(const x in y)y[x]==null&&delete y[x];M=de({},C,{params:d(y)}),z.params=d(z.params)}const q=t.resolve(M,z),ie=C.hash||"";q.params=f(p(q.params));const v=pp(r,de({},C,{hash:Xp(ie),path:q.path})),m=o.createHref(v);return de({fullPath:v,hash:ie,query:r===Ks?nh(C.query):C.query||{}},q,{redirectedFrom:void 0,href:m})}function L(C){return typeof C=="string"?bo(n,C,i.value.path):de({},C)}function b(C,z){if(c!==C)return Pn(8,{from:z,to:C})}function E(C){return U(C)}function H(C){return E(de(L(C),{replace:!0}))}function A(C){const z=C.matched[C.matched.length-1];if(z&&z.redirect){const{redirect:M}=z;let q=typeof M=="function"?M(C):M;return typeof q=="string"&&(q=q.includes("?")||q.includes("#")?q=L(q):{path:q},q.params={}),de({query:C.query,hash:C.hash,params:"path"in q?{}:C.params},q)}}function U(C,z){const M=c=_(C),q=i.value,ie=C.state,v=C.force,m=C.replace===!0,y=A(M);if(y)return U(de(L(y),{state:typeof y=="object"?de({},ie,y.state):ie,force:v,replace:m}),z||M);const x=M;x.redirectedFrom=z;let S;return!v&&hp(r,q,M)&&(S=Pn(16,{to:x,from:q}),Xe(q,q,!0,!1)),(S?Promise.resolve(S):F(x,q)).catch(P=>Et(P)?Et(P,2)?P:mt(P):G(P,x,q)).then(P=>{if(P){if(Et(P,2))return U(de({replace:m},L(P.to),{state:typeof P.to=="object"?de({},ie,P.to.state):ie,force:v}),z||x)}else P=N(x,q,!0,m,ie);return Q(x,q,P),P})}function R(C,z){const M=b(C,z);return M?Promise.reject(M):Promise.resolve()}function B(C){const z=wt.values().next().value;return z&&typeof z.runWithContext=="function"?z.runWithContext(C):C()}function F(C,z){let M;const[q,ie,v]=fh(C,z);M=yo(q.reverse(),"beforeRouteLeave",C,z);for(const y of q)y.leaveGuards.forEach(x=>{M.push(Ft(x,C,z))});const m=R.bind(null,C,z);return M.push(m),Le(M).then(()=>{M=[];for(const y of l.list())M.push(Ft(y,C,z));return M.push(m),Le(M)}).then(()=>{M=yo(ie,"beforeRouteUpdate",C,z);for(const y of ie)y.updateGuards.forEach(x=>{M.push(Ft(x,C,z))});return M.push(m),Le(M)}).then(()=>{M=[];for(const y of v)if(y.beforeEnter)if(pt(y.beforeEnter))for(const x of y.beforeEnter)M.push(Ft(x,C,z));else M.push(Ft(y.beforeEnter,C,z));return M.push(m),Le(M)}).then(()=>(C.matched.forEach(y=>y.enterCallbacks={}),M=yo(v,"beforeRouteEnter",C,z),M.push(m),Le(M))).then(()=>{M=[];for(const y of s.list())M.push(Ft(y,C,z));return M.push(m),Le(M)}).catch(y=>Et(y,8)?y:Promise.reject(y))}function Q(C,z,M){a.list().forEach(q=>B(()=>q(C,z,M)))}function N(C,z,M,q,ie){const v=b(C,z);if(v)return v;const m=z===Ct,y=hn?history.state:{};M&&(q||m?o.replace(C.fullPath,de({scroll:m&&y&&y.scroll},ie)):o.push(C.fullPath,ie)),i.value=C,Xe(C,z,M,m),mt()}let ee;function Ee(){ee||(ee=o.listen((C,z,M)=>{if(!gt.listening)return;const q=_(C),ie=A(q);if(ie){U(de(ie,{replace:!0}),q).catch(Yn);return}c=q;const v=i.value;hn&&Ep(Ns(v.fullPath,M.delta),no()),F(q,v).catch(m=>Et(m,12)?m:Et(m,2)?(U(m.to,q).then(y=>{Et(y,20)&&!M.delta&&M.type===lr.pop&&o.go(-1,!1)}).catch(Yn),Promise.reject()):(M.delta&&o.go(-M.delta,!1),G(m,q,v))).then(m=>{m=m||N(q,v,!1),m&&(M.delta&&!Et(m,8)?o.go(-M.delta,!1):M.type===lr.pop&&Et(m,20)&&o.go(-1,!1)),Q(q,v,m)}).catch(Yn)}))}let _e=Fn(),j=Fn(),te;function G(C,z,M){mt(C);const q=j.list();return q.length?q.forEach(ie=>ie(C,z,M)):console.error(C),Promise.reject(C)}function ke(){return te&&i.value!==Ct?Promise.resolve():new Promise((C,z)=>{_e.add([C,z])})}function mt(C){return te||(te=!C,Ee(),_e.list().forEach(([z,M])=>C?M(C):z()),_e.reset()),C}function Xe(C,z,M,q){const{scrollBehavior:ie}=e;if(!hn||!ie)return Promise.resolve();const v=!M&&Tp(Ns(C.fullPath,0))||(q||!M)&&history.state&&history.state.scroll||null;return an().then(()=>ie(C,z,v)).then(m=>m&&wp(m)).catch(m=>G(m,C,z))}const $e=C=>o.go(C);let We;const wt=new Set,gt={currentRoute:i,listening:!0,addRoute:h,removeRoute:g,hasRoute:T,getRoutes:w,resolve:_,options:e,push:E,replace:H,go:$e,back:()=>$e(-1),forward:()=>$e(1),beforeEach:l.add,beforeResolve:s.add,afterEach:a.add,onError:j.add,isReady:ke,install(C){const z=this;C.component("RouterLink",sh),C.component("RouterView",Hi),C.config.globalProperties.$router=z,Object.defineProperty(C.config.globalProperties,"$route",{enumerable:!0,get:()=>rn(i)}),hn&&!We&&i.value===Ct&&(We=!0,E(o.location).catch(ie=>{}));const M={};for(const ie in Ct)Object.defineProperty(M,ie,{get:()=>i.value[ie],enumerable:!0});C.provide(ro,z),C.provide(Sl,Sa(M)),C.provide(Wo,i);const q=C.unmount;wt.add(C),C.unmount=function(){wt.delete(C),wt.size<1&&(c=Ct,ee&&ee(),ee=null,i.value=Ct,We=!1,te=!1),q()}}};function Le(C){return C.reduce((z,M)=>z.then(()=>B(M)),Promise.resolve())}return gt}function fh(e,t){const n=[],r=[],o=[],l=Math.max(t.matched.length,e.matched.length);for(let s=0;sAn(c,a))?r.push(a):n.push(a));const i=e.matched[s];i&&(t.matched.find(c=>An(c,i))||o.push(i))}return[n,r,o]}function Ye(){return ve(ro)}function It(){return ve(Sl)}var Ne=Uint8Array,gn=Uint16Array,dh=Int32Array,Bi=new Ne([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Fi=new Ne([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ph=new Ne([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Vi=function(e,t){for(var n=new gn(31),r=0;r<31;++r)n[r]=t+=1<>1|(ye&21845)<<1;Dt=(Dt&52428)>>2|(Dt&13107)<<2,Dt=(Dt&61680)>>4|(Dt&3855)<<4,Uo[ye]=((Dt&65280)>>8|(Dt&255)<<8)>>1}var Jn=function(e,t,n){for(var r=e.length,o=0,l=new gn(t);o>i]=c}else for(a=new gn(r),o=0;o>15-e[o]);return a},dr=new Ne(288);for(var ye=0;ye<144;++ye)dr[ye]=8;for(var ye=144;ye<256;++ye)dr[ye]=9;for(var ye=256;ye<280;++ye)dr[ye]=7;for(var ye=280;ye<288;++ye)dr[ye]=8;var Wi=new Ne(32);for(var ye=0;ye<32;++ye)Wi[ye]=5;var gh=Jn(dr,9,1),bh=Jn(Wi,5,1),_o=function(e){for(var t=e[0],n=1;nt&&(t=e[n]);return t},st=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(t&7)&n},wo=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},yh=function(e){return(e+7)/8|0},Al=function(e,t,n){return(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length),new Ne(e.subarray(t,n))},_h=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],et=function(e,t,n){var r=new Error(t||_h[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,et),!n)throw r;return r},wh=function(e,t,n,r){var o=e.length,l=r?r.length:0;if(!o||t.f&&!t.l)return n||new Ne(0);var s=!n,a=s||t.i!=2,i=t.i;s&&(n=new Ne(o*3));var c=function(ie){var v=n.length;if(ie>v){var m=new Ne(Math.max(v*2,ie));m.set(n),n=m}},f=t.f||0,d=t.p||0,p=t.b||0,h=t.l,g=t.d,w=t.m,T=t.n,_=o*8;do{if(!h){f=st(e,d,1);var L=st(e,d+1,3);if(d+=3,L)if(L==1)h=gh,g=bh,w=9,T=5;else if(L==2){var A=st(e,d,31)+257,U=st(e,d+10,15)+4,R=A+st(e,d+5,31)+1;d+=14;for(var B=new Ne(R),F=new Ne(19),Q=0;Q>4;if(b<16)B[Q++]=b;else{var j=0,te=0;for(b==16?(te=3+st(e,d,3),d+=2,j=B[Q-1]):b==17?(te=3+st(e,d,7),d+=3):b==18&&(te=11+st(e,d,127),d+=7);te--;)B[Q++]=j}}var G=B.subarray(0,A),ke=B.subarray(A);w=_o(G),T=_o(ke),h=Jn(G,w,1),g=Jn(ke,T,1)}else et(1);else{var b=yh(d)+4,E=e[b-4]|e[b-3]<<8,H=b+E;if(H>o){i&&et(0);break}a&&c(p+E),n.set(e.subarray(b,H),p),t.b=p+=E,t.p=d=H*8,t.f=f;continue}if(d>_){i&&et(0);break}}a&&c(p+131072);for(var mt=(1<>4;if(d+=j&15,d>_){i&&et(0);break}if(j||et(2),We<256)n[p++]=We;else if(We==256){$e=d,h=null;break}else{var wt=We-254;if(We>264){var Q=We-257,gt=Bi[Q];wt=st(e,d,(1<>4;Le||et(3),d+=Le&15;var ke=mh[C];if(C>3){var gt=Fi[C];ke+=wo(e,d)&(1<_){i&&et(0);break}a&&c(p+131072);var z=p+wt;if(p>4>7||(e[0]<<8|e[1])%31)&&et(6,"invalid zlib data"),(e[1]>>5&1)==+!t&&et(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function xh(e,t){return wh(e.subarray(Th(e,t&&t.dictionary),-4),{i:2},t&&t.out,t&&t.dictionary)}var Ys=typeof TextEncoder<"u"&&new TextEncoder,Go=typeof TextDecoder<"u"&&new TextDecoder,Ch=0;try{Go.decode(Eh,{stream:!0}),Ch=1}catch{}var kh=function(e){for(var t="",n=0;;){var r=e[n++],o=(r>127)+(r>223)+(r>239);if(n+o>e.length)return{s:t,r:Al(e,n-1)};o?o==3?(r=((r&15)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,t+=String.fromCharCode(55296|r>>10,56320|r&1023)):o&1?t+=String.fromCharCode((r&31)<<6|e[n++]&63):t+=String.fromCharCode((r&15)<<12|(e[n++]&63)<<6|e[n++]&63):t+=String.fromCharCode(r)}};function Lh(e,t){if(t){for(var n=new Ne(e.length),r=0;r>1)),s=0,a=function(f){l[s++]=f},r=0;rl.length){var i=new Ne(s+8+(o-r<<1));i.set(l),l=i}var c=e.charCodeAt(r);c<128||t?a(c):c<2048?(a(192|c>>6),a(128|c&63)):c>55295&&c<57344?(c=65536+(c&1047552)|e.charCodeAt(++r)&1023,a(240|c>>18),a(128|c>>12&63),a(128|c>>6&63),a(128|c&63)):(a(224|c>>12),a(128|c>>6&63),a(128|c&63))}return Al(l,0,s)}function Sh(e,t){if(t){for(var n="",r=0;r{var r;return u("svg",{xmlns:"http://www.w3.org/2000/svg",class:["icon",`${e}-icon`],viewBox:"0 0 1024 1024",fill:t,"aria-label":`${e} icon`},(r=n.default)==null?void 0:r.call(n))};Ce.displayName="IconBase";const Ki=({size:e=48,stroke:t=4,wrapper:n=!0,height:r=2*e})=>{const o=u("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,preserveAspectRatio:"xMidYMid",viewBox:"25 25 50 50"},[u("animateTransform",{attributeName:"transform",type:"rotate",dur:"2s",keyTimes:"0;1",repeatCount:"indefinite",values:"0;360"}),u("circle",{cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":t,"stroke-linecap":"round"},[u("animate",{attributeName:"stroke-dasharray",dur:"1.5s",keyTimes:"0;0.5;1",repeatCount:"indefinite",values:"1,200;90,200;1,200"}),u("animate",{attributeName:"stroke-dashoffset",dur:"1.5s",keyTimes:"0;0.5;1",repeatCount:"indefinite",values:"0;-35px;-125px"})])]);return n?u("div",{class:"loading-icon-wrapper",style:`display:flex;align-items:center;justify-content:center;height:${r}px`},o):o};Ki.displayName="LoadingIcon";const Ui=(e,{slots:t})=>{var n;return(n=t.default)==null?void 0:n.call(t)},Ah=(e="")=>{if(e){if(typeof e=="number")return new Date(e);const t=Date.parse(e.toString());if(!Number.isNaN(t))return new Date(t)}return null},Gi=(e,t)=>{let n=1;for(let r=0;r>6;return n+=n<<3,n^=n>>11,n%t},qi=Array.isArray,Ph=e=>typeof e=="function",Rh=e=>typeof e=="string";var Ih=e=>e.startsWith("ftp://"),Pl=e=>/^(https?:)?\/\//.test(e),Oh=/.md((\?|#).*)?$/,$h=(e,t="/")=>!!(Pl(e)||Ih(e)||e.startsWith("/")&&!e.startsWith(t)&&!Oh.test(e)),Zi=e=>Object.prototype.toString.call(e)==="[object Object]";function Mh(){const e=X(!1);return cn()&&me(()=>{e.value=!0}),e}function Dh(e){return Mh(),k(()=>!!e())}const Nh=e=>typeof e=="function",Pt=e=>typeof e=="string",sr=(e,t)=>Pt(e)&&e.startsWith(t),dn=(e,t)=>Pt(e)&&e.endsWith(t),Yi=Object.entries,Hh=Object.fromEntries,pr=Object.keys,Bh=e=>(e.endsWith(".md")&&(e=`${e.slice(0,-3)}.html`),!e.endsWith("/")&&!e.endsWith(".html")&&(e=`${e}.html`),e=e.replace(/(^|\/)(?:README|index).html$/i,"$1"),e),Xi=e=>{const[t,n=""]=e.split("#");return t?`${Bh(t)}${n?`#${n}`:""}`:e},Xs=e=>Zi(e)&&Pt(e.name),Js=(e,t=!1)=>e?qi(e)?e.map(n=>Pt(n)?{name:n}:Xs(n)?n:null).filter(n=>n!==null):Pt(e)?[{name:e}]:Xs(e)?[e]:(console.error(`Expect "author" to be \`AuthorInfo[] | AuthorInfo | string[] | string ${t?"":"| false"} | undefined\`, but got`,e),[]):[],Ji=(e,t)=>{if(e){if(qi(e)&&e.every(Pt))return e;if(Pt(e))return[e];console.error(`Expect ${t||"value"} to be \`string[] | string | undefined\`, but got`,e)}return[]},Fh=e=>Ji(e,"category"),Vh=e=>Ji(e,"tag"),Rl=e=>sr(e,"/"),Qi=/#.*$/u,zh=e=>{const t=Qi.exec(e);return t?t[0]:""},Qs=e=>decodeURI(e).replace(Qi,"").replace(/(index)?\.(md|html)$/,""),Il=(e,t)=>{if(t===void 0)return!1;const n=Qs(e.path),r=Qs(t),o=zh(t);return o?o===e.hash&&(!r||n===r):n===r},jh=e=>{const t=atob(e);return Sh(xh(Lh(t,!0)))},Wh=e=>Pl(e)?e:`https://github.com/${e}`,ec=e=>!Pl(e)||/github\.com/.test(e)?"GitHub":/bitbucket\.org/.test(e)?"Bitbucket":/gitlab\.com/.test(e)?"GitLab":/gitee\.com/.test(e)?"Gitee":null,Wr=(e,...t)=>{const n=e.resolve(...t),r=n.matched[n.matched.length-1];if(!(r!=null&&r.redirect))return n;const{redirect:o}=r,l=Ph(o)?o(n):o,s=Rh(l)?{path:l}:l;return Wr(e,{hash:n.hash,query:n.query,params:n.params,...s})},Kh=e=>{var t;if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)&&!(e.currentTarget&&((t=e.currentTarget.getAttribute("target"))!=null&&t.match(/\b_blank\b/i))))return e.preventDefault(),!0},dt=({to:e="",class:t="",...n},{slots:r})=>{var s;const o=Ye(),l=(a={})=>Kh(a)?o.push(e).catch():Promise.resolve();return u("a",{...n,class:["vp-link",t],href:He(Xi(e)),onClick:l},(s=r.default)==null?void 0:s.call(r))};dt.displayName="VPLink";const tc=()=>u(Ce,{name:"github"},()=>u("path",{d:"M511.957 21.333C241.024 21.333 21.333 240.981 21.333 512c0 216.832 140.544 400.725 335.574 465.664 24.49 4.395 32.256-10.07 32.256-23.083 0-11.69.256-44.245 0-85.205-136.448 29.61-164.736-64.64-164.736-64.64-22.315-56.704-54.4-71.765-54.4-71.765-44.587-30.464 3.285-29.824 3.285-29.824 49.195 3.413 75.179 50.517 75.179 50.517 43.776 75.008 114.816 53.333 142.762 40.79 4.523-31.66 17.152-53.377 31.19-65.537-108.971-12.458-223.488-54.485-223.488-242.602 0-53.547 19.114-97.323 50.517-131.67-5.035-12.33-21.93-62.293 4.779-129.834 0 0 41.258-13.184 134.912 50.346a469.803 469.803 0 0 1 122.88-16.554c41.642.213 83.626 5.632 122.88 16.554 93.653-63.488 134.784-50.346 134.784-50.346 26.752 67.541 9.898 117.504 4.864 129.834 31.402 34.347 50.474 78.123 50.474 131.67 0 188.586-114.73 230.016-224.042 242.09 17.578 15.232 33.578 44.672 33.578 90.454v135.85c0 13.142 7.936 27.606 32.854 22.87C862.25 912.597 1002.667 728.747 1002.667 512c0-271.019-219.648-490.667-490.71-490.667z"}));tc.displayName="GitHubIcon";const nc=()=>u(Ce,{name:"gitlab"},()=>u("path",{d:"M229.333 78.688C223.52 62 199.895 62 193.895 78.688L87.958 406.438h247.5c-.188 0-106.125-327.75-106.125-327.75zM33.77 571.438c-4.875 15 .563 31.687 13.313 41.25l464.812 345L87.77 406.438zm301.5-165 176.813 551.25 176.812-551.25zm655.125 165-54-165-424.312 551.25 464.812-345c12.938-9.563 18.188-26.25 13.5-41.25zM830.27 78.688c-5.812-16.688-29.437-16.688-35.437 0l-106.125 327.75h247.5z"}));nc.displayName="GitLabIcon";const rc=()=>u(Ce,{name:"gitee"},()=>u("path",{d:"M512 992C246.92 992 32 777.08 32 512S246.92 32 512 32s480 214.92 480 480-214.92 480-480 480zm242.97-533.34H482.39a23.7 23.7 0 0 0-23.7 23.7l-.03 59.28c0 13.08 10.59 23.7 23.7 23.7h165.96a23.7 23.7 0 0 1 23.7 23.7v11.85a71.1 71.1 0 0 1-71.1 71.1H375.71a23.7 23.7 0 0 1-23.7-23.7V423.11a71.1 71.1 0 0 1 71.1-71.1h331.8a23.7 23.7 0 0 0 23.7-23.7l.06-59.25a23.73 23.73 0 0 0-23.7-23.73H423.11a177.78 177.78 0 0 0-177.78 177.75v331.83c0 13.08 10.62 23.7 23.7 23.7h349.62a159.99 159.99 0 0 0 159.99-159.99V482.33a23.7 23.7 0 0 0-23.7-23.7z"}));rc.displayName="GiteeIcon";const oc=()=>u(Ce,{name:"bitbucket"},()=>u("path",{d:"M575.256 490.862c6.29 47.981-52.005 85.723-92.563 61.147-45.714-20.004-45.714-92.562-1.133-113.152 38.29-23.442 93.696 7.424 93.696 52.005zm63.451-11.996c-10.276-81.152-102.29-134.839-177.152-101.156-47.433 21.138-79.433 71.424-77.129 124.562 2.853 69.705 69.157 126.866 138.862 120.576S647.3 548.571 638.708 478.83zm136.558-309.723c-25.161-33.134-67.986-38.839-105.728-45.13-106.862-17.151-216.576-17.7-323.438 1.134-35.438 5.706-75.447 11.996-97.719 43.996 36.572 34.304 88.576 39.424 135.424 45.129 84.553 10.862 171.447 11.447 256 .585 47.433-5.705 99.987-10.276 135.424-45.714zm32.585 591.433c-16.018 55.99-6.839 131.438-66.304 163.986-102.29 56.576-226.304 62.867-338.87 42.862-59.43-10.862-129.135-29.696-161.72-85.723-14.3-54.858-23.442-110.848-32.585-166.84l3.438-9.142 10.276-5.157c170.277 112.567 408.576 112.567 579.438 0 26.844 8.01 6.84 40.558 6.29 60.014zm103.424-549.157c-19.42 125.148-41.728 249.71-63.415 374.272-6.29 36.572-41.728 57.162-71.424 72.558-106.862 53.724-231.424 62.866-348.562 50.286-79.433-8.558-160.585-29.696-225.134-79.433-30.28-23.443-30.28-63.415-35.986-97.134-20.005-117.138-42.862-234.277-57.161-352.585 6.839-51.42 64.585-73.728 107.447-89.71 57.16-21.138 118.272-30.866 178.87-36.571 129.134-12.58 261.157-8.01 386.304 28.562 44.581 13.13 92.563 31.415 122.844 69.705 13.714 17.7 9.143 40.01 6.29 60.014z"}));oc.displayName="BitbucketIcon";const lc=()=>u(Ce,{name:"source"},()=>u("path",{d:"M601.92 475.2c0 76.428-8.91 83.754-28.512 99.594-14.652 11.88-43.956 14.058-78.012 16.434-18.81 1.386-40.392 2.97-62.172 6.534-18.612 2.97-36.432 9.306-53.064 17.424V299.772c37.818-21.978 63.36-62.766 63.36-109.692 0-69.894-56.826-126.72-126.72-126.72S190.08 120.186 190.08 190.08c0 46.926 25.542 87.714 63.36 109.692v414.216c-37.818 21.978-63.36 62.766-63.36 109.692 0 69.894 56.826 126.72 126.72 126.72s126.72-56.826 126.72-126.72c0-31.086-11.286-59.598-29.7-81.576 13.266-9.504 27.522-17.226 39.996-19.206 16.038-2.574 32.868-3.762 50.688-5.148 48.312-3.366 103.158-7.326 148.896-44.55 61.182-49.698 74.25-103.158 75.24-187.902V475.2h-126.72zM316.8 126.72c34.848 0 63.36 28.512 63.36 63.36s-28.512 63.36-63.36 63.36-63.36-28.512-63.36-63.36 28.512-63.36 63.36-63.36zm0 760.32c-34.848 0-63.36-28.512-63.36-63.36s28.512-63.36 63.36-63.36 63.36 28.512 63.36 63.36-28.512 63.36-63.36 63.36zM823.68 158.4h-95.04V63.36h-126.72v95.04h-95.04v126.72h95.04v95.04h126.72v-95.04h95.04z"}));lc.displayName="SourceIcon";const At=(e,t)=>{const n=t?t._instance:cn();return Zi(n==null?void 0:n.appContext.components)&&(e in n.appContext.components||ot(e)in n.appContext.components||ir(ot(e))in n.appContext.components)},Uh=()=>Dh(()=>typeof window<"u"&&window.navigator&&"userAgent"in window.navigator),Gh=()=>{const e=Uh();return k(()=>e.value&&/\b(?:Android|iPhone)/i.test(navigator.userAgent))},hr=e=>{const t=qt();return k(()=>e[t.value])};function ea(e,t){var n;const r=Ze();return Fa(()=>{r.value=e()},{...t,flush:(n=t==null?void 0:t.flush)!=null?n:"sync"}),Gt(r)}function qh(e,t){let n,r,o;const l=X(!0),s=()=>{l.value=!0,o()};se(e,s,{flush:"sync"});const a=typeof t=="function"?t:t.get,i=typeof t=="function"?void 0:t.set,c=Oa((f,d)=>(r=f,o=d,{get(){return l.value&&(n=a(),l.value=!1),r(),n},set(p){i==null||i(p)}}));return Object.isExtensible(c)&&(c.trigger=s),c}function Zt(e){return ga()?(Au(e),!0):!1}function Fe(e){return typeof e=="function"?e():rn(e)}const vr=typeof window<"u"&&typeof document<"u",Zh=Object.prototype.toString,Yh=e=>Zh.call(e)==="[object Object]",Ut=()=>{},qo=Xh();function Xh(){var e;return vr&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function Ol(e,t){function n(...r){return new Promise((o,l)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(l)})}return n}const sc=e=>e();function Jh(e,t={}){let n,r,o=Ut;const l=a=>{clearTimeout(a),o(),o=Ut};return a=>{const i=Fe(e),c=Fe(t.maxWait);return n&&l(n),i<=0||c!==void 0&&c<=0?(r&&(l(r),r=null),Promise.resolve(a())):new Promise((f,d)=>{o=t.rejectOnCancel?d:f,c&&!r&&(r=setTimeout(()=>{n&&l(n),r=null,f(a())},c)),n=setTimeout(()=>{r&&l(r),r=null,f(a())},i)})}}function Qh(e,t=!0,n=!0,r=!1){let o=0,l,s=!0,a=Ut,i;const c=()=>{l&&(clearTimeout(l),l=void 0,a(),a=Ut)};return d=>{const p=Fe(e),h=Date.now()-o,g=()=>i=d();return c(),p<=0?(o=Date.now(),g()):(h>p&&(n||!s)?(o=Date.now(),g()):t&&(i=new Promise((w,T)=>{a=r?T:w,l=setTimeout(()=>{o=Date.now(),s=!0,w(g()),c()},Math.max(0,p-h))})),!n&&!l&&(l=setTimeout(()=>s=!0,p)),s=!1,i)}}function e1(e=sc){const t=X(!0);function n(){t.value=!1}function r(){t.value=!0}const o=(...l)=>{t.value&&e(...l)};return{isActive:Gt(t),pause:n,resume:r,eventFilter:o}}function t1(...e){if(e.length!==1)return Zr(...e);const t=e[0];return typeof t=="function"?Gt(Oa(()=>({get:t,set:Ut}))):X(t)}function n1(e,t=200,n={}){return Ol(Jh(t,n),e)}function r1(e,t=200,n=!1,r=!0,o=!1){return Ol(Qh(t,n,r,o),e)}function o1(e,t,n={}){const{eventFilter:r=sc,...o}=n;return se(e,Ol(r,t),o)}function l1(e,t,n={}){const{eventFilter:r,...o}=n,{eventFilter:l,pause:s,resume:a,isActive:i}=e1(r);return{stop:o1(e,t,{...o,eventFilter:l}),pause:s,resume:a,isActive:i}}function ac(e,t=!0){cn()?me(e):t?e():an(e)}function s1(e,t,n={}){const{immediate:r=!0}=n,o=X(!1);let l=null;function s(){l&&(clearTimeout(l),l=null)}function a(){o.value=!1,s()}function i(...c){s(),o.value=!0,l=setTimeout(()=>{o.value=!1,l=null,e(...c)},Fe(t))}return r&&(o.value=!0,vr&&i()),Zt(a),{isPending:Gt(o),start:i,stop:a}}function ta(e=!1,t={}){const{truthyValue:n=!0,falsyValue:r=!1}=t,o=Re(e),l=X(e);function s(a){if(arguments.length)return l.value=a,l.value;{const i=Fe(n);return l.value=l.value===i?Fe(r):i,l.value}}return o?s:[l,s]}function qe(e){var t;const n=Fe(e);return(t=n==null?void 0:n.$el)!=null?t:n}const ht=vr?window:void 0,ic=vr?window.document:void 0,a1=vr?window.navigator:void 0;function Ie(...e){let t,n,r,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,o]=e,t=ht):[t,n,r,o]=e,!t)return Ut;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const l=[],s=()=>{l.forEach(f=>f()),l.length=0},a=(f,d,p,h)=>(f.addEventListener(d,p,h),()=>f.removeEventListener(d,p,h)),i=se(()=>[qe(t),Fe(o)],([f,d])=>{if(s(),!f)return;const p=Yh(d)?{...d}:d;l.push(...n.flatMap(h=>r.map(g=>a(f,h,g,p))))},{immediate:!0,flush:"post"}),c=()=>{i(),s()};return Zt(c),c}let na=!1;function i1(e,t,n={}){const{window:r=ht,ignore:o=[],capture:l=!0,detectIframe:s=!1}=n;if(!r)return;qo&&!na&&(na=!0,Array.from(r.document.body.children).forEach(p=>p.addEventListener("click",Ut)),r.document.documentElement.addEventListener("click",Ut));let a=!0;const i=p=>o.some(h=>{if(typeof h=="string")return Array.from(r.document.querySelectorAll(h)).some(g=>g===p.target||p.composedPath().includes(g));{const g=qe(h);return g&&(p.target===g||p.composedPath().includes(g))}}),f=[Ie(r,"click",p=>{const h=qe(e);if(!(!h||h===p.target||p.composedPath().includes(h))){if(p.detail===0&&(a=!i(p)),!a){a=!0;return}t(p)}},{passive:!0,capture:l}),Ie(r,"pointerdown",p=>{const h=qe(e);h&&(a=!p.composedPath().includes(h)&&!i(p))},{passive:!0}),s&&Ie(r,"blur",p=>{setTimeout(()=>{var h;const g=qe(e);((h=r.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(g!=null&&g.contains(r.document.activeElement))&&t(p)},0)})].filter(Boolean);return()=>f.forEach(p=>p())}function c1(){const e=X(!1);return cn()&&me(()=>{e.value=!0}),e}function mr(e){const t=c1();return k(()=>(t.value,!!e()))}function cc(e,t={}){const{window:n=ht}=t,r=mr(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let o;const l=X(!1),s=c=>{l.value=c.matches},a=()=>{o&&("removeEventListener"in o?o.removeEventListener("change",s):o.removeListener(s))},i=Fa(()=>{r.value&&(a(),o=n.matchMedia(Fe(e)),"addEventListener"in o?o.addEventListener("change",s):o.addListener(s),l.value=o.matches)});return Zt(()=>{i(),a(),o=void 0}),l}function u1(e={}){const{navigator:t=a1,read:n=!1,source:r,copiedDuring:o=1500,legacy:l=!1}=e,s=mr(()=>t&&"clipboard"in t),a=k(()=>s.value||l),i=X(""),c=X(!1),f=s1(()=>c.value=!1,o);function d(){s.value?t.clipboard.readText().then(w=>{i.value=w}):i.value=g()}a.value&&n&&Ie(["copy","cut"],d);async function p(w=Fe(r)){a.value&&w!=null&&(s.value?await t.clipboard.writeText(w):h(w),i.value=w,c.value=!0,f.start())}function h(w){const T=document.createElement("textarea");T.value=w??"",T.style.position="absolute",T.style.opacity="0",document.body.appendChild(T),T.select(),document.execCommand("copy"),T.remove()}function g(){var w,T,_;return(_=(T=(w=document==null?void 0:document.getSelection)==null?void 0:w.call(document))==null?void 0:T.toString())!=null?_:""}return{isSupported:a,text:i,copied:c,copy:p}}const Sr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ar="__vueuse_ssr_handlers__",f1=d1();function d1(){return Ar in Sr||(Sr[Ar]=Sr[Ar]||{}),Sr[Ar]}function p1(e,t){return f1[e]||t}function h1(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 v1={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()}},ra="vueuse-storage";function $l(e,t,n,r={}){var o;const{flush:l="pre",deep:s=!0,listenToStorageChanges:a=!0,writeDefaults:i=!0,mergeDefaults:c=!1,shallow:f,window:d=ht,eventFilter:p,onError:h=R=>{console.error(R)}}=r,g=(f?Ze:X)(t);if(!n)try{n=p1("getDefaultStorage",()=>{var R;return(R=ht)==null?void 0:R.localStorage})()}catch(R){h(R)}if(!n)return g;const w=Fe(t),T=h1(w),_=(o=r.serializer)!=null?o:v1[T],{pause:L,resume:b}=l1(g,()=>E(g.value),{flush:l,deep:s,eventFilter:p});return d&&a&&(Ie(d,"storage",U),Ie(d,ra,A)),U(),g;function E(R){try{if(R==null)n.removeItem(e);else{const B=_.write(R),F=n.getItem(e);F!==B&&(n.setItem(e,B),d&&d.dispatchEvent(new CustomEvent(ra,{detail:{key:e,oldValue:F,newValue:B,storageArea:n}})))}}catch(B){h(B)}}function H(R){const B=R?R.newValue:n.getItem(e);if(B==null)return i&&w!==null&&n.setItem(e,_.write(w)),w;if(!R&&c){const F=_.read(B);return typeof c=="function"?c(F,w):T==="object"&&!Array.isArray(F)?{...w,...F}:F}else return typeof B!="string"?B:_.read(B)}function A(R){U(R.detail)}function U(R){if(!(R&&R.storageArea!==n)){if(R&&R.key==null){g.value=w;return}if(!(R&&R.key!==e)){L();try{(R==null?void 0:R.newValue)!==_.write(g.value)&&(g.value=H(R))}catch(B){h(B)}finally{R?an(b):b()}}}}}function m1(e){return cc("(prefers-color-scheme: dark)",e)}function g1(e,t,n={}){const{window:r=ht,...o}=n;let l;const s=mr(()=>r&&"MutationObserver"in r),a=()=>{l&&(l.disconnect(),l=void 0)},i=se(()=>qe(e),f=>{a(),s.value&&r&&f&&(l=new MutationObserver(t),l.observe(f,o))},{immediate:!0}),c=()=>{a(),i()};return Zt(c),{isSupported:s,stop:c}}function b1(e,t,n={}){const{window:r=ht,...o}=n;let l;const s=mr(()=>r&&"ResizeObserver"in r),a=()=>{l&&(l.disconnect(),l=void 0)},i=k(()=>Array.isArray(e)?e.map(d=>qe(d)):[qe(e)]),c=se(i,d=>{if(a(),s.value&&r){l=new ResizeObserver(t);for(const p of d)p&&l.observe(p,o)}},{immediate:!0,flush:"post",deep:!0}),f=()=>{a(),c()};return Zt(f),{isSupported:s,stop:f}}function y1(e,t={width:0,height:0},n={}){const{window:r=ht,box:o="content-box"}=n,l=k(()=>{var i,c;return(c=(i=qe(e))==null?void 0:i.namespaceURI)==null?void 0:c.includes("svg")}),s=X(t.width),a=X(t.height);return b1(e,([i])=>{const c=o==="border-box"?i.borderBoxSize:o==="content-box"?i.contentBoxSize:i.devicePixelContentBoxSize;if(r&&l.value){const f=qe(e);if(f){const d=r.getComputedStyle(f);s.value=Number.parseFloat(d.width),a.value=Number.parseFloat(d.height)}}else if(c){const f=Array.isArray(c)?c:[c];s.value=f.reduce((d,{inlineSize:p})=>d+p,0),a.value=f.reduce((d,{blockSize:p})=>d+p,0)}else s.value=i.contentRect.width,a.value=i.contentRect.height},n),se(()=>qe(e),i=>{s.value=i?t.width:0,a.value=i?t.height:0}),{width:s,height:a}}const oa=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function Ml(e,t={}){const{document:n=ic,autoExit:r=!1}=t,o=k(()=>{var _;return(_=qe(e))!=null?_:n==null?void 0:n.querySelector("html")}),l=X(!1),s=k(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(_=>n&&_ in n||o.value&&_ in o.value)),a=k(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(_=>n&&_ in n||o.value&&_ in o.value)),i=k(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(_=>n&&_ in n||o.value&&_ in o.value)),c=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(_=>n&&_ in n),f=mr(()=>o.value&&n&&s.value!==void 0&&a.value!==void 0&&i.value!==void 0),d=()=>c?(n==null?void 0:n[c])===o.value:!1,p=()=>{if(i.value){if(n&&n[i.value]!=null)return n[i.value];{const _=o.value;if((_==null?void 0:_[i.value])!=null)return!!_[i.value]}}return!1};async function h(){if(!(!f.value||!l.value)){if(a.value)if((n==null?void 0:n[a.value])!=null)await n[a.value]();else{const _=o.value;(_==null?void 0:_[a.value])!=null&&await _[a.value]()}l.value=!1}}async function g(){if(!f.value||l.value)return;p()&&await h();const _=o.value;s.value&&(_==null?void 0:_[s.value])!=null&&(await _[s.value](),l.value=!0)}async function w(){await(l.value?h():g())}const T=()=>{const _=p();(!_||_&&d())&&(l.value=_)};return Ie(n,oa,T,!1),Ie(()=>qe(o),oa,T,!1),r&&Zt(h),{isSupported:f,isFullscreen:l,enter:g,exit:h,toggle:w}}function Eo(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function $m(e,t,n={}){const{window:r=ht}=n;return $l(e,t,r==null?void 0:r.localStorage,n)}function uc(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth1?!0:(t.preventDefault&&t.preventDefault(),!1)}function Dl(e,t=!1){const n=X(t);let r=null,o;se(t1(e),a=>{const i=Eo(Fe(a));if(i){const c=i;o=c.style.overflow,n.value&&(c.style.overflow="hidden")}},{immediate:!0});const l=()=>{const a=Eo(Fe(e));!a||n.value||(qo&&(r=Ie(a,"touchmove",i=>{_1(i)},{passive:!1})),a.style.overflow="hidden",n.value=!0)},s=()=>{const a=Eo(Fe(e));!a||!n.value||(qo&&(r==null||r()),a.style.overflow=o,n.value=!1)};return Zt(s),k({get(){return n.value},set(a){a?l():s()}})}let w1=0;function E1(e,t={}){const n=X(!1),{document:r=ic,immediate:o=!0,manual:l=!1,id:s=`vueuse_styletag_${++w1}`}=t,a=X(e);let i=()=>{};const c=()=>{if(!r)return;const d=r.getElementById(s)||r.createElement("style");d.isConnected||(d.id=s,t.media&&(d.media=t.media),r.head.appendChild(d)),!n.value&&(i=se(a,p=>{d.textContent=p},{immediate:!0}),n.value=!0)},f=()=>{!r||!n.value||(i(),r.head.removeChild(r.getElementById(s)),n.value=!1)};return o&&!l&&ac(c),l||Zt(f),{id:s,css:a,unload:f,load:c,isLoaded:Gt(n)}}function T1(e={}){const{window:t=ht}=e;if(!t)return{x:X(0),y:X(0)};const n=X(t.scrollX),r=X(t.scrollY);return Ie(t,"scroll",()=>{n.value=t.scrollX,r.value=t.scrollY},{capture:!1,passive:!0}),{x:n,y:r}}function x1(e={}){const{window:t=ht,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:o=!0,includeScrollbar:l=!0}=e,s=X(n),a=X(r),i=()=>{t&&(l?(s.value=t.innerWidth,a.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,a.value=t.document.documentElement.clientHeight))};if(i(),ac(i),Ie("resize",i,{passive:!0}),o){const c=cc("(orientation: portrait)");se(c,()=>i())}return{width:s,height:a}}const fc=({type:e="info",text:t="",vertical:n,color:r},{slots:o})=>{var l;return u("span",{class:["vp-badge",e,{diy:r}],style:{verticalAlign:n??!1,backgroundColor:r??!1}},((l=o.default)==null?void 0:l.call(o))||t)};fc.displayName="Badge";var C1=K({name:"FontIcon",props:{icon:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""}},setup(e){const t=k(()=>{const r=["font-icon icon"],o=`iconfont icon-${e.icon}`;return r.push(o),r}),n=k(()=>{const r={};return e.color&&(r.color=e.color),e.size&&(r["font-size"]=Number.isNaN(Number(e.size))?e.size:`${e.size}px`),pr(r).length?r:null});return()=>e.icon?u("span",{key:e.icon,class:t.value,style:n.value}):null}});const dc=()=>u(Ce,{name:"back-to-top"},()=>[u("path",{d:"M512 843.2c-36.2 0-66.4-13.6-85.8-21.8-10.8-4.6-22.6 3.6-21.8 15.2l7 102c.4 6.2 7.6 9.4 12.6 5.6l29-22c3.6-2.8 9-1.8 11.4 2l41 64.2c3 4.8 10.2 4.8 13.2 0l41-64.2c2.4-3.8 7.8-4.8 11.4-2l29 22c5 3.8 12.2.6 12.6-5.6l7-102c.8-11.6-11-20-21.8-15.2-19.6 8.2-49.6 21.8-85.8 21.8z"}),u("path",{d:"m795.4 586.2-96-98.2C699.4 172 513 32 513 32S324.8 172 324.8 488l-96 98.2c-3.6 3.6-5.2 9-4.4 14.2L261.2 824c1.8 11.4 14.2 17 23.6 10.8L419 744s41.4 40 94.2 40c52.8 0 92.2-40 92.2-40l134.2 90.8c9.2 6.2 21.6.6 23.6-10.8l37-223.8c.4-5.2-1.2-10.4-4.8-14zM513 384c-34 0-61.4-28.6-61.4-64s27.6-64 61.4-64c34 0 61.4 28.6 61.4 64S547 384 513 384z"})]);dc.displayName="BackToTopIcon";var k1=K({name:"BackToTop",props:{threshold:{type:Number,default:100},noProgress:Boolean},setup(e){const t=Oe(),n=hr({"/":{backToTop:"返回顶部"}}),r=Ze(),{height:o}=y1(r),{height:l}=x1(),{y:s}=T1(),a=k(()=>t.value.backToTop!==!1&&s.value>e.threshold),i=k(()=>s.value/(o.value-l.value));return me(()=>{r.value=document.body}),()=>u(Kt,{name:"fade"},()=>a.value?u("button",{type:"button",class:"vp-back-to-top-button","aria-label":n.value.backToTop,"data-balloon-pos":"left",onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})}},[e.noProgress?null:u("svg",{class:"vp-scroll-progress"},u("circle",{cx:"50%",cy:"50%",style:{"stroke-dasharray":`calc(${Math.PI*i.value*100}% - ${4*Math.PI}px) calc(${Math.PI*100}% - ${4*Math.PI}px)`}})),u(dc)]):null)}});const L1=vt({enhance:({app:e})=>{At("Badge")||e.component("Badge",fc),At("FontIcon")||e.component("FontIcon",C1)},setup:()=>{E1(` @import url("https://at.alicdn.com/t/c/font_2410206_5vb9zlyghj.css"); + `)},rootComponents:[()=>u(k1,{})]});function S1(e,t,n){var r,o,l;t===void 0&&(t=50),n===void 0&&(n={});var s=(r=n.isImmediate)!=null&&r,a=(o=n.callback)!=null&&o,i=n.maxWait,c=Date.now(),f=[];function d(){if(i!==void 0){var h=Date.now()-c;if(h+t>=i)return i-h}return t}var p=function(){var h=[].slice.call(arguments),g=this;return new Promise(function(w,T){var _=s&&l===void 0;if(l!==void 0&&clearTimeout(l),l=setTimeout(function(){if(l=void 0,c=Date.now(),!s){var b=e.apply(g,h);a&&a(b),f.forEach(function(E){return(0,E.resolve)(b)}),f=[]}},d()),_){var L=e.apply(g,h);return a&&a(L),w(L)}f.push({resolve:w,reject:T})})};return p.cancel=function(h){l!==void 0&&clearTimeout(l),f.forEach(function(g){return(0,g.reject)(h)}),f=[]},p}const A1=({headerLinkSelector:e,headerAnchorSelector:t,delay:n,offset:r=5})=>{const o=Ye(),s=S1(()=>{var w,T;const a=Math.max(window.scrollY,document.documentElement.scrollTop,document.body.scrollTop);if(Math.abs(a-0)p.some(L=>L.hash===_.hash));for(let _=0;_=(((w=L.parentElement)==null?void 0:w.offsetTop)??0)-r,H=!b||a<(((T=b.parentElement)==null?void 0:T.offsetTop)??0)-r;if(!(E&&H))continue;const U=decodeURIComponent(o.currentRoute.value.hash),R=decodeURIComponent(L.hash);if(U===R)return;if(d){for(let B=_+1;B{window.addEventListener("scroll",s)}),bl(()=>{window.removeEventListener("scroll",s)})},la=async(e,t)=>{const{scrollBehavior:n}=e.options;e.options.scrollBehavior=void 0,await e.replace({query:e.currentRoute.value.query,hash:t}).finally(()=>e.options.scrollBehavior=n)},P1=".vp-sidebar-link, .toc-link",R1=".header-anchor",I1=200,O1=5,$1=vt({setup(){A1({headerLinkSelector:P1,headerAnchorSelector:R1,delay:I1,offset:O1})}});let pc=()=>null;const hc=Symbol(""),M1=e=>{pc=e},D1=()=>ve(hc),N1=e=>{e.provide(hc,pc)};var H1=K({name:"AutoCatalog",props:{base:{type:String,default:""},level:{type:Number,default:3},index:Boolean,indexType:{type:String,default:"ul"},hideHeading:Boolean},setup(e){const t=D1(),n=hr({"/":{title:"目录",empty:"暂无目录"}}),r=he(),o=Ye(),l=Ci(),s=c=>{const f=c.I;return typeof f>"u"||f},a=()=>{const c=e.base||r.value.path.replace(/\/[^/]+$/,"/"),f=o.getRoutes(),d=[];return f.filter(({meta:p,path:h})=>{if(!sr(h,c)||h===c)return!1;if(c==="/"){const g=pr(l.value.locales).filter(w=>w!=="/");if(h==="/404.html"||g.some(w=>sr(h,w)))return!1}return(dn(h,".html")&&!dn(h,"/index.html")||dn(h,"/"))&&s(p)}).map(({path:p,meta:h})=>{const g=p.substring(c.length).split("/").length;return{title:h.t||"",icon:h.i,base:p.replace(/\/[^/]+\/?$/,"/"),order:h.O||null,level:dn(p,"/")?g-1:g,path:p}}).filter(({title:p,level:h})=>p&&h<=e.level).sort(({title:p,level:h,path:g,order:w},{title:T,level:_,path:L,order:b})=>h-_||(dn(g,"/index.html")?-1:dn(L,"/index.html")?1:w===null?b===null?p.localeCompare(T):b:b===null?w:w>0?b>0?w-b:-1:b<0?w-b:1)).forEach(p=>{var w;const{base:h,level:g}=p;switch(g){case 1:d.push(p);break;case 2:{const T=d.find(_=>_.path===h);T&&(T.children??(T.children=[])).push(p);break}default:{const T=d.find(_=>_.path===h.replace(/\/[^/]+\/$/,"/"));if(T){const _=(w=T.children)==null?void 0:w.find(L=>L.path===h);_&&(_.children??(_.children=[])).push(p)}}}}),d},i=k(()=>a());return()=>u("div",{class:"vp-catalog"},[e.hideHeading?null:u("h2",{class:"vp-catalog-main-title"},n.value.title),i.value.length?i.value.map(({children:c=[],icon:f,path:d,title:p},h)=>[u("h3",{id:p,class:["vp-catalog-child-title",{"has-children":c.length}]},[u("a",{href:`#${p}`,class:"header-anchor","aria-hidden":!0},"#"),u(dt,{class:"vp-catalog-title",to:d},()=>[e.index?`${h+1}.`:null,f&&t?u(t,{icon:f}):null,p||d])]),c.length?u(e.index&&e.indexType==="ol"?"ol":"ul",{class:"vp-catalog-child-catalogs"},c.map(({children:g=[],icon:w,path:T,title:_},L)=>u("li",{class:"vp-child-catalog"},[u("div",{class:["vp-catalog-sub-title",{"has-children":g.length}]},[u("a",{href:`#${_}`,class:"header-anchor"},"#"),u(dt,{class:"vp-catalog-title",to:T},()=>[e.index?`${h+1}.${L+1}`:null,w&&t?u(t,{icon:w}):null,_||T])]),g.length?u("div",{class:"v-sub-catalogs"},g.map(({icon:b,path:E,title:H},A)=>u(dt,{class:"vp-sub-catalog",to:E},()=>[e.index&&e.indexType!=="ol"?`${h+1}.${L+1}.${A+1}`:null,b&&t?u(t,{icon:b}):null,H||E]))):null]))):null]):u("p",{class:"vp-empty-catalog"},n.value.empty)])}}),B1=vt({enhance:({app:e})=>{N1(e),At("AutoCatalog",e)||e.component("AutoCatalog",H1)}});const F1=u("svg",{class:"external-link-icon",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",x:"0px",y:"0px",viewBox:"0 0 100 100",width:"15",height:"15"},[u("path",{fill:"currentColor",d:"M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"}),u("polygon",{fill:"currentColor",points:"45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"})]),vc=K({name:"ExternalLinkIcon",props:{locales:{type:Object,required:!1,default:()=>({})}},setup(e){const t=qt(),n=k(()=>e.locales[t.value]??{openInNewWindow:"open in new window"});return()=>u("span",[F1,u("span",{class:"external-link-icon-sr-only"},n.value.openInNewWindow)])}}),V1={},z1=vt({enhance({app:e}){e.component("ExternalLinkIcon",u(vc,{locales:V1}))}});/** + * NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress + * @license MIT + */const ce={settings:{minimum:.08,easing:"ease",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,barSelector:'[role="bar"]',parent:"body",template:'
'},status:null,set:e=>{const t=ce.isStarted();e=To(e,ce.settings.minimum,1),ce.status=e===1?null:e;const n=ce.render(!t),r=n.querySelector(ce.settings.barSelector),o=ce.settings.speed,l=ce.settings.easing;return n.offsetWidth,j1(s=>{Pr(r,{transform:"translate3d("+sa(e)+"%,0,0)",transition:"all "+o+"ms "+l}),e===1?(Pr(n,{transition:"none",opacity:"1"}),n.offsetWidth,setTimeout(function(){Pr(n,{transition:"all "+o+"ms linear",opacity:"0"}),setTimeout(function(){ce.remove(),s()},o)},o)):setTimeout(()=>s(),o)}),ce},isStarted:()=>typeof ce.status=="number",start:()=>{ce.status||ce.set(0);const e=()=>{setTimeout(()=>{ce.status&&(ce.trickle(),e())},ce.settings.trickleSpeed)};return ce.settings.trickle&&e(),ce},done:e=>!e&&!ce.status?ce:ce.inc(.3+.5*Math.random()).set(1),inc:e=>{let t=ce.status;return t?(typeof e!="number"&&(e=(1-t)*To(Math.random()*t,.1,.95)),t=To(t+e,0,.994),ce.set(t)):ce.start()},trickle:()=>ce.inc(Math.random()*ce.settings.trickleRate),render:e=>{if(ce.isRendered())return document.getElementById("nprogress");aa(document.documentElement,"nprogress-busy");const t=document.createElement("div");t.id="nprogress",t.innerHTML=ce.settings.template;const n=t.querySelector(ce.settings.barSelector),r=e?"-100":sa(ce.status||0),o=document.querySelector(ce.settings.parent);return Pr(n,{transition:"all 0 linear",transform:"translate3d("+r+"%,0,0)"}),o!==document.body&&aa(o,"nprogress-custom-parent"),o==null||o.appendChild(t),t},remove:()=>{ia(document.documentElement,"nprogress-busy"),ia(document.querySelector(ce.settings.parent),"nprogress-custom-parent");const e=document.getElementById("nprogress");e&&W1(e)},isRendered:()=>!!document.getElementById("nprogress")},To=(e,t,n)=>en?n:e,sa=e=>(-1+e)*100,j1=function(){const e=[];function t(){const n=e.shift();n&&n(t)}return function(n){e.push(n),e.length===1&&t()}}(),Pr=function(){const e=["Webkit","O","Moz","ms"],t={};function n(s){return s.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(a,i){return i.toUpperCase()})}function r(s){const a=document.body.style;if(s in a)return s;let i=e.length;const c=s.charAt(0).toUpperCase()+s.slice(1);let f;for(;i--;)if(f=e[i]+c,f in a)return f;return s}function o(s){return s=n(s),t[s]??(t[s]=r(s))}function l(s,a,i){a=o(a),s.style[a]=i}return function(s,a){for(const i in a){const c=a[i];c!==void 0&&Object.prototype.hasOwnProperty.call(a,i)&&l(s,i,c)}}}(),mc=(e,t)=>(typeof e=="string"?e:Nl(e)).indexOf(" "+t+" ")>=0,aa=(e,t)=>{const n=Nl(e),r=n+t;mc(n,t)||(e.className=r.substring(1))},ia=(e,t)=>{const n=Nl(e);if(!mc(e,t))return;const r=n.replace(" "+t+" "," ");e.className=r.substring(1,r.length-1)},Nl=e=>(" "+(e.className||"")+" ").replace(/\s+/gi," "),W1=e=>{e&&e.parentNode&&e.parentNode.removeChild(e)};const K1=()=>{me(()=>{const e=Ye(),t=new Set;t.add(e.currentRoute.value.path),e.beforeEach(n=>{t.has(n.path)||ce.start()}),e.afterEach(n=>{t.add(n.path),ce.done()})})},U1=vt({setup(){K1()}}),G1=JSON.parse('{"encrypt":{},"author":{"name":"SealDice Team","url":"https://github.com/sealdice"},"docsDir":"docs","logo":"/images/sealdice.svg","logoDark":"/images/sealdice-dark.svg","repo":"sealdice/sealdice-core","breadcrumb":true,"pageInfo":["ReadingTime"],"contributors":false,"editLink":false,"docsRepo":"sealdice/sealdice-manual-next","docsBranch":"main","displayFooter":false,"home":"/index.md","pure":true,"print":false,"locales":{"/":{"lang":"zh-CN","navbarLocales":{"langName":"简体中文","selectLangAriaLabel":"选择语言"},"metaLocales":{"author":"作者","date":"写作日期","origin":"原创","views":"访问量","category":"分类","tag":"标签","readingTime":"阅读时间","words":"字数","toc":"此页内容","prev":"上一页","next":"下一页","lastUpdated":"上次编辑于","contributors":"贡献者","editLink":"在 GitHub 上编辑此页","print":"打印"},"outlookLocales":{"themeColor":"主题色","darkmode":"外观","fullscreen":"全屏"},"routeLocales":{"skipToContent":"跳至主要內容","notFoundTitle":"页面不存在","notFoundMsg":["这里什么也没有","我们是怎么来到这儿的?","这 是 四 零 四 !","看起来你访问了一个失效的链接"],"back":"返回上一页","home":"带我回家","openInNewWindow":"Open in new window"},"navbar":[{"text":"首页","link":"/"},{"text":"部署","prefix":"/deploy/","children":["quick-start.md","transfer.md","special_feature.md",{"text":"平台","children":["platform-qq.md","platform-kook.md","platform-dodo.md"]}]},{"text":"配置","prefix":"/config/","children":[{"text":"扩展功能","children":["custom_text.md","reply.md","deck.md","jsscript.md","helpdoc.md","censor.md"]},{"text":"综合设置","children":["ban.md"]}]},{"text":"使用","prefix":"/use/","children":[{"text":"新手入门","children":["introduce.md","quick-start.md"]},{"text":"核心指令","children":["core.md"]},{"text":"规则扩展","children":["coc7.md","dnd5e.md","attribute_alias.md","other_rules.md"]},{"text":"功能扩展","children":["story.md","log.md","fun.md","deck_and_reply.md"]},{"text":"常见问题","children":["faq.md"]}]},{"text":"进阶","prefix":"/advanced/","children":["introduce.md","script.md",{"text":"扩展功能进阶","children":["edit_complex_custom_text.md","edit_reply.md","edit_deck.md","edit_jsscript.md","edit_helpdoc.md","edit_sensitive_words.md"]}]},{"text":"关于","prefix":"/about/","children":["about.md","license.md","develop.md"]}],"sidebar":{"/deploy/":[{"text":"部署","link":"/deploy/","prefix":"/deploy/","children":["quick-start.md","transfer.md","special_feature.md",{"text":"平台","children":["platform-qq.md","platform-kook.md","platform-dodo.md"]}]}],"/config/":[{"text":"配置","link":"/config/","prefix":"/config/","children":[{"text":"扩展功能","children":["custom_text.md","reply.md","deck.md","jsscript.md","helpdoc.md","censor.md"]},{"text":"综合设置","children":["ban.md"]}]}],"/use/":[{"text":"使用","link":"/use/","prefix":"/use/","children":[{"text":"新手入门","children":["introduce.md","quick-start.md"]},{"text":"核心指令","children":["core.md"]},{"text":"规则扩展","children":["coc7.md","dnd5e.md","attribute_alias.md","other_rules.md"]},{"text":"功能扩展","children":["story.md","log.md","fun.md","deck_and_reply.md"]},"faq.md"]}],"/advanced/":[{"text":"进阶","link":"/advanced/","prefix":"/advanced/","children":["introduce.md","script.md",{"text":"扩展功能进阶","children":["edit_complex_custom_text.md","edit_reply.md","edit_deck.md","edit_jsscript.md","edit_helpdoc.md","edit_sensitive_words.md"]}]}],"/about/":[{"text":"关于","link":"/about/","prefix":"/about/","children":["about.md","license.md","develop.md"]}]}}}}'),q1=X(G1),gc=()=>q1,bc=Symbol(""),Z1=()=>{const e=ve(bc);if(!e)throw new Error("useThemeLocaleData() is called without provider.");return e},Y1=(e,t)=>{const{locales:n,...r}=e;return{...r,...n==null?void 0:n[t]}},X1=vt({enhance({app:e}){const t=gc(),n=e._context.provides[kl],r=k(()=>Y1(t.value,n.value));e.provide(bc,r),Object.defineProperties(e.config.globalProperties,{$theme:{get(){return t.value}},$themeLocale:{get(){return r.value}}})}});const J1=800,Q1=2e3,ev={"/":{copy:"复制代码",copied:"已复制",hint:"复制成功"}},tv=!1,nv=['.theme-hope-content div[class*="language-"] pre'],ca=!0,xo=new Map,rv=()=>{const{copy:e}=u1({legacy:!0}),t=hr(ev),n=he(),r=Gh(),o=a=>{if(!a.hasAttribute("copy-code-registered")){const i=document.createElement("button");i.type="button",i.classList.add("copy-code-button"),i.innerHTML='
',i.setAttribute("aria-label",t.value.copy),i.setAttribute("data-copied",t.value.copied),a.parentElement&&a.parentElement.insertBefore(i,a),a.setAttribute("copy-code-registered","")}},l=()=>an().then(()=>new Promise(a=>{setTimeout(()=>{nv.forEach(i=>{document.querySelectorAll(i).forEach(o)}),a()},J1)})),s=(a,i,c)=>{let{innerText:f=""}=i;/language-(shellscript|shell|bash|sh|zsh)/.test(a.classList.toString())&&(f=f.replace(/^ *(\$|>) /gm,"")),e(f).then(()=>{c.classList.add("copied"),clearTimeout(xo.get(c));const d=setTimeout(()=>{c.classList.remove("copied"),c.blur(),xo.delete(c)},Q1);xo.set(c,d)})};me(()=>{(!r.value||ca)&&l(),Ie("click",a=>{const i=a.target;if(i.matches('div[class*="language-"] > button.copy')){const c=i.parentElement,f=i.nextElementSibling;f&&s(c,f,i)}else if(i.matches('div[class*="language-"] div.copy-icon')){const c=i.parentElement,f=c.parentElement,d=c.nextElementSibling;d&&s(f,d,c)}}),se(()=>n.value.path,()=>{(!r.value||ca)&&l()})})};var ov=vt({setup:()=>{rv()}});let lv={};const yc=Symbol(""),sv=()=>ve(yc),av=e=>{e.provide(yc,lv)},pn={useMaxWidth:!1},iv=e=>({dark:e,background:e?"#1e1e1e":"#fff",primaryColor:e?"#389d70":"#4abf8a",primaryBorderColor:e?"#389d70":"#4abf8a",primaryTextColor:"#fff",secondaryColor:"#ffb500",secondaryBorderColor:e?"#fff":"#000",secondaryTextColor:e?"#ddd":"#333",tertiaryColor:e?"#282828":"#efeef4",tertiaryBorderColor:e?"#bbb":"#242424",tertiaryTextColor:e?"#ddd":"#333",noteBkgColor:e?"#f6d365":"#fff5ad",noteTextColor:"#242424",noteBorderColor:e?"#f6d365":"#333",lineColor:e?"#d3d3d3":"#333",textColor:e?"#fff":"#242424",mainBkg:e?"#389d70":"#4abf8a",errorBkgColor:"#eb4d5d",errorTextColor:"#fff",nodeBorder:e?"#389d70":"#4abf8a",nodeTextColor:e?"#fff":"#242424",signalTextColor:e?"#9e9e9e":"#242424",classText:"#fff",labelColor:"#fff",attributeBackgroundColorEven:e?"#0d1117":"#fff",attributeBackgroundColorOdd:e?"#161b22":"#f8f8f8",fillType0:e?"#cf1322":"#f1636e",fillType1:"#f39c12",fillType2:"#2ecc71",fillType3:"#fa541c",fillType4:"#25a55b",fillType5:"#13c2c2",fillType6:"#096dd9",fillType7:"#aa6fe9"});var cv=K({name:"Mermaid",props:{id:{type:String,required:!0},code:{type:String,required:!0}},setup(e){const{themeVariables:t,...n}=sv(),r=Ze(),o=k(()=>jh(e.code)),l=X(""),s=X(!1),a=async()=>{const[{default:f}]=await Promise.all([O(()=>import("./mermaid.core-d8bc71ff.js").then(d=>d.b7),[]),new Promise(d=>setTimeout(d,800))]);f.initialize({theme:"base",themeVariables:{...iv(s.value),...Nh(t)?t(s.value):t},flowchart:pn,sequence:pn,journey:pn,gantt:pn,er:pn,pie:pn,...n,startOnLoad:!1}),l.value=(await f.render(e.id,o.value)).svg},i=()=>{const{body:f}=document,d=document.createElement("div");d.classList.add("mermaid-preview"),d.innerHTML=l.value,f.appendChild(d),d.addEventListener("click",()=>{f.removeChild(d)})},c=()=>{const f=`data:image/svg+xml;charset=utf8,${l.value.replace(/
/g,"
").replace(/%/g,"%25").replace(/"/g,"%22").replace(/'/g,"%27").replace(/&/g,"%26").replace(/#/g,"%23").replace(/{/g,"%7B").replace(/}/g,"%7D").replace(//g,"%3E")}`,d=document.createElement("a");d.setAttribute("href",f),d.setAttribute("download",`${e.id}.svg`),d.click()};return me(()=>{const f=document.documentElement,d=()=>f.classList.contains("dark")||f.getAttribute("data-theme")==="dark";s.value=d(),a(),g1(f,()=>{s.value=d()},{attributeFilter:["class","data-theme"],attributes:!0}),se(s,()=>a())}),()=>[u("div",{class:"mermaid-actions"},[u("button",{class:"preview-button",onClick:()=>i(),title:"preview",innerHTML:''}),u("button",{class:"download-button",onClick:()=>c(),title:"download",innerHTML:''})]),u("div",{ref:r,class:"mermaid-wrapper"},l.value?u("div",{class:"mermaid-content",innerHTML:l.value}):u(Ki,{class:"mermaid-loading",height:96}))]}});const Co=$l("VUEPRESS_TAB_STORE",{});var uv=K({name:"Tabs",props:{active:{type:Number,default:0},data:{type:Array,required:!0},id:{type:String,required:!0},tabId:{type:String,default:""}},slots:Object,setup(e,{slots:t}){const n=X(e.active),r=Ze([]),o=()=>{e.tabId&&(Co.value[e.tabId]=e.data[n.value].id)},l=(c=n.value)=>{n.value=c{n.value=c>0?c-1:r.value.length-1,r.value[n.value].focus()},a=(c,f)=>{c.key===" "||c.key==="Enter"?(c.preventDefault(),n.value=f):c.key==="ArrowRight"?(c.preventDefault(),l()):c.key==="ArrowLeft"&&(c.preventDefault(),s()),o()},i=()=>{if(e.tabId){const c=e.data.findIndex(({id:f})=>Co.value[e.tabId]===f);if(c!==-1)return c}return e.active};return me(()=>{n.value=i(),se(()=>Co.value[e.tabId],(c,f)=>{if(e.tabId&&c!==f){const d=e.data.findIndex(({id:p})=>p===c);d!==-1&&(n.value=d)}})}),()=>e.data.length?u("div",{class:"vp-tabs"},[u("div",{class:"vp-tabs-nav",role:"tablist"},e.data.map(({id:c},f)=>{const d=f===n.value;return u("button",{type:"button",ref:p=>{p&&(r.value[f]=p)},class:["vp-tab-nav",{active:d}],role:"tab","aria-controls":`tab-${e.id}-${f}`,"aria-selected":d,onClick:()=>{n.value=f,o()},onKeydown:p=>a(p,f)},t[`title${f}`]({value:c,isActive:d}))})),e.data.map(({id:c},f)=>{const d=f===n.value;return u("div",{class:["vp-tab",{active:d}],id:`tab-${e.id}-${f}`,role:"tabpanel","aria-expanded":d},t[`tab${f}`]({value:c,isActive:d}))})]):null}});const fv=vt({enhance:({app:e})=>{av(e),e.component("Mermaid",cv),e.component("Tabs",uv)},setup:()=>{}});let dv={};const _c=Symbol(""),pv=()=>ve(_c),hv=e=>{e.provide(_c,dv)};const vv=".theme-hope-content :not(a) > img:not([no-view])",mv={"/":{closeTitle:"关闭",downloadTitle:"下载图片",fullscreenTitle:"切换全屏",zoomTitle:"缩放",arrowPrevTitle:"上一个 (左箭头)",arrowNextTitle:"下一个 (右箭头)"}},gv=800,bv='
',yv=e=>fe(e)?Array.from(document.querySelectorAll(e)):e.map(t=>Array.from(document.querySelectorAll(t))).flat(),wc=e=>new Promise((t,n)=>{e.complete?t({type:"image",element:e,src:e.src,width:e.naturalWidth,height:e.naturalHeight,alt:e.alt,msrc:e.src}):(e.onload=()=>t(wc(e)),e.onerror=r=>n(r))}),_v=()=>{const{isSupported:e,toggle:t}=Ml(),n=pv(),r=hr(mv),o=he();let l;const s=i=>{i.on("uiRegister",()=>{e&&i.ui.registerElement({name:"fullscreen",order:7,isButton:!0,html:'',onClick:()=>{t()}}),i.ui.registerElement({name:"download",order:8,isButton:!0,tagName:"a",html:{isCustomSVG:!0,inner:'',outlineID:"pswp__icn-download"},onInit:(c,f)=>{c.setAttribute("download",""),c.setAttribute("target","_blank"),c.setAttribute("rel","noopener"),f.on("change",()=>{c.setAttribute("href",f.currSlide.data.src)})}}),i.ui.registerElement({name:"bulletsIndicator",className:"photo-swipe-bullets-indicator",appendTo:"wrapper",onInit:(c,f)=>{const d=[];let p=-1;for(let h=0;h{f.goTo(d.indexOf(w.target))},d.push(g),c.appendChild(g)}f.on("change",()=>{p>=0&&d[p].classList.remove("active"),d[f.currIndex].classList.add("active"),p=f.currIndex})}})})},a=()=>Promise.all([O(()=>import("./photoswipe.esm-1464cdb9.js"),[]),an().then(()=>new Promise(i=>setTimeout(i,gv)).then(()=>yv(vv)))]).then(([{default:i},c])=>{const f=c.map(d=>({html:bv,element:d,msrc:d.src}));c.forEach((d,p)=>{const h=()=>{l=new i({preloaderDelay:0,showHideAnimationType:"zoom",...r.value,...n,dataSource:f,index:p,closeOnVerticalDrag:!0,wheelToZoom:!1}),s(l),l.addFilter("thumbEl",()=>d),l.addFilter("placeholderSrc",()=>d.src),l.init()};d.style.cursor="zoom-in",d.addEventListener("click",()=>{h()}),d.addEventListener("keypress",({key:g})=>{g==="Enter"&&h()})}),c.forEach((d,p)=>{wc(d).then(h=>{f.splice(p,1,h),l==null||l.refreshSlideContent(p)})})});me(()=>{Ie("wheel",()=>{l==null||l.close()}),a(),se(()=>o.value.path,()=>a())})};var wv=vt({enhance:({app:e})=>{hv(e)},setup:()=>{_v()}});const Ec=()=>{const e=he();return k(()=>e.value.readingTime??null)},Zo=typeof{"/":{word:"约 $word 字",less1Minute:"小于 1 分钟",time:"大约 $time 分钟"}}>"u"?null:{"/":{word:"约 $word 字",less1Minute:"小于 1 分钟",time:"大约 $time 分钟"}},Ev=(e,t)=>{const{minutes:n,words:r}=e,{less1Minute:o,word:l,time:s}=t;return{time:n<1?o:s.replace("$time",Math.round(n).toString()),words:l.replace("$word",r.toString())}},ua={words:"",time:""},Tv=()=>Zo?hr(Zo):k(()=>null),xv=()=>{if(typeof Zo>"u")return k(()=>ua);const e=Ec(),t=Tv();return k(()=>e.value&&t.value?Ev(e.value,t.value):ua)},gr=()=>gc(),ge=()=>Z1(),oo=()=>k(()=>!!gr().value.pure);var ko=K({name:"EmptyComponent",setup:()=>()=>null});const Cv="719px",kv="1440px",Lv="false",Hl={mobileBreakPoint:Cv,pcBreakPoint:kv,enableThemeColor:Lv},Bl={},Tc=e=>{const{icon:t="",color:n,size:r}=e,o={};return n&&(o.color=n),r&&(o.height=Number.isNaN(Number(r))?r:`${r}px`),Dn(t)?u("img",{class:"icon",src:t,"no-view":"",style:o}):Rl(t)?u("img",{class:"icon",src:He(t),"no-view":"",style:o}):u(ft("FontIcon"),e)};Tc.displayName="HopeIcon";var je=Tc,Lt=(e=>(e.type="y",e.title="t",e.shortTitle="s",e.icon="i",e.author="a",e.date="d",e.localizedDate="l",e.category="c",e.tag="g",e.isEncrypted="n",e.isOriginal="o",e.readingTime="r",e.excerpt="e",e.sticky="u",e.cover="v",e.index="I",e.order="O",e))(Lt||{}),Sv=(e=>(e.article="a",e.home="h",e.slide="s",e.page="p",e))(Sv||{});const En=(e,t,n=!1)=>{let r=Wr(e,Xi(encodeURI(t)));r.name==="404"&&(r=Wr(e,t));const{fullPath:o,meta:l,name:s}=r;return{text:!n&&l[Lt.shortTitle]?l[Lt.shortTitle]:l[Lt.title]||t,link:s==="404"?t:o,...l[Lt.icon]?{icon:l[Lt.icon]}:{}}},Av=()=>{const e=Ye(),t=It();return n=>{if(n)if(Rl(n))t.path!==n&&e.push(n);else if(Dn(n)||mi(n))window&&window.open(n);else{const r=t.path.slice(0,t.path.lastIndexOf("/"));e.push(`${r}/${encodeURI(n)}`)}}},xc=()=>{const e=ge(),t=Oe();return k(()=>{const{author:n}=t.value;return n?Js(n):n===!1?[]:Js(e.value.author,!1)})},Pv=()=>{const e=Oe();return k(()=>Fh(e.value.category).map(t=>({name:t,path:""})))},Rv=()=>{const e=Oe();return k(()=>Vh(e.value.tag).map(t=>({name:t,path:""})))},Iv=()=>{const e=Oe(),t=he();return k(()=>{const n=Ah(e.value.date);if(n)return n;const{createdTime:r}=t.value.git||{};return r?new Date(r):null})},Ov=()=>{const e=ge(),t=he(),n=Oe(),r=xc(),o=Pv(),l=Rv(),s=Iv(),a=Ec(),i=xv(),c=k(()=>({author:r.value,category:o.value,date:s.value,localizedDate:t.value.localizedDate,tag:l.value,isOriginal:n.value.isOriginal||!1,readingTime:a.value,readingTimeLocale:i.value,pageview:"pageview"in n.value?n.value.pageview:!0})),f=k(()=>"pageInfo"in n.value?n.value.pageInfo:"pageInfo"in e.value?e.value.pageInfo:null);return{info:c,items:f}},{mobileBreakPoint:$v,pcBreakPoint:Mv}=Hl,fa=e=>e.endsWith("px")?Number(e.slice(0,-2)):null,lo=()=>{const e=X(!1),t=X(!1),n=()=>{e.value=window.innerWidth<=(fa($v)??719),t.value=window.innerWidth>=(fa(Mv)??1440)};return me(()=>{n(),Ie("resize",n,!1),Ie("orientationchange",n,!1)}),{isMobile:e,isPC:t}},Cc=Symbol(""),br=()=>{const e=ve(Cc);if(!e)throw new Error("useDarkmode() is called without provider.");return e},Dv=e=>{const t=gr(),n=m1(),r=$l("vuepress-theme-hope-scheme","auto"),o=k(()=>t.value.darkmode||"switch"),l=k(()=>{const a=o.value;return a==="disable"?!1:a==="enable"?!0:a==="auto"?n.value:a==="toggle"?r.value==="dark":r.value==="dark"||r.value==="auto"&&n.value}),s=k(()=>{const a=o.value;return a==="switch"||a==="toggle"});e.provide(Cc,{canToggle:s,config:o,isDarkmode:l,status:r}),Object.defineProperties(e.config.globalProperties,{$isDarkmode:{get:()=>l.value}})},Nv=()=>{const{isDarkmode:e}=br(),t=(n=e.value)=>document.documentElement.setAttribute("data-theme",n?"dark":"light");me(()=>{se(e,t,{immediate:!0})})};var Ve=K({name:"AutoLink",inheritAttrs:!1,props:{config:{type:Object,required:!0},exact:Boolean,noExternalLinkIcon:Boolean},emits:["focusout"],slots:Object,setup(e,{attrs:t,emit:n,slots:r}){const o=It(),l=Ci(),s=Zr(e,"config"),a=k(()=>Dn(s.value.link)),i=k(()=>mi(s.value.link)||Jd(s.value.link)),c=k(()=>i.value?void 0:s.value.target||(a.value?"_blank":void 0)),f=k(()=>c.value==="_blank"),d=k(()=>!a.value&&!i.value&&!f.value),p=k(()=>i.value?void 0:s.value.rel||(f.value?"noopener noreferrer":void 0)),h=k(()=>s.value.ariaLabel||s.value.text),g=k(()=>{if(e.exact)return!1;const T=pr(l.value.locales);return T.length?T.every(_=>_!==s.value.link):s.value.link!=="/"}),w=k(()=>d.value?s.value.activeMatch?new RegExp(s.value.activeMatch).test(o.path):g.value?sr(o.path,s.value.link):o.path===s.value.link:!1);return()=>{const{before:T,after:_,default:L}=r,{text:b,icon:E,link:H}=s.value;return d.value?u(dt,{to:H,"aria-label":h.value,...t,class:["nav-link",{active:w.value},t.class],onFocusout:()=>n("focusout")},()=>L?L():[T?T():u(je,{icon:E}),b,_==null?void 0:_()]):u("a",{href:H,rel:p.value,target:c.value,"aria-label":h.value,...t,class:["nav-link",t.class],onFocusout:()=>n("focusout")},L?L():[T?T():u(je,{icon:E}),b,e.noExternalLinkIcon?null:u(vc),_==null?void 0:_()])}}});const Rn=(e,t,n=!1)=>"activeMatch"in t?new RegExp(t.activeMatch).test(e.path):Il(e,t.link)?!0:t.children&&!n?t.children.some(r=>Rn(e,r)):!1,kc=(e,t)=>t.type==="group"?t.children.some(n=>n.type==="group"?kc(e,n):n.type==="page"&&Rn(e,n,!0))||"prefix"in t&&Il(e,t.prefix):!1,Lc=(e,t)=>fe(e.link)?u(Ve,{...t,config:e}):u("p",t,[u(je,{icon:e.icon}),e.text]),Sc=e=>{const t=It();return e?u("ul",{class:"vp-sidebar-sub-headers"},e.map(n=>{const r=Rn(t,n,!0);return u("li",{class:"vp-sidebar-sub-header"},[Lc(n,{class:["vp-sidebar-link","vp-heading",{active:r}]}),Sc(n.children)])})):null},Lo=(e="",t="")=>Rl(t)?t:`${Zd(e)}${t}`,Hv=(e,t)=>{const n=he();return{type:"heading",text:e.title,link:`${n.value.path}#${e.slug}`,children:Fl(e.children,t)}},Fl=(e,t)=>t>0?e.map(n=>Hv(n,t-1)):[],Ac=e=>{const t=he();return Fl(t.value.headers,e)},Yo=(e,t,n="")=>{const r=Ye(),o=he(),l=(s,a=n)=>{var c;const i=fe(s)?En(r,Lo(a,s)):s.link?{...s,...zr(s.link)?{}:{link:En(r,Lo(a,s.link)).link}}:s;if("children"in i){const f=Lo(a,i.prefix),d=i.children==="structure"?Bl[f]:i.children;return{type:"group",...i,prefix:f,children:d.map(p=>l(p,f))}}return{type:"page",...i,children:i.link===o.value.path?Fl(((c=o.value.headers[0])==null?void 0:c.level)===1?o.value.headers[0].children:o.value.headers,t):[]}};return e.map(s=>l(s))},Bv=(e,t)=>{const n=he(),r=pr(e).sort((o,l)=>l.length-o.length);for(const o of r)if(sr(decodeURI(n.value.path),o)){const l=e[o];return l?Yo(l==="structure"?Bl[o]:l==="heading"?Ac(t):l,t,o):[]}return console.warn(`${n.value.path} is missing sidebar config.`),[]},Fv=(e,t)=>{const n=qt();return e===!1?[]:e==="heading"?Ac(t):e==="structure"?Yo(Bl[n.value],t,n.value):J(e)?Yo(e,t):xl(e)?Bv(e,t):[]},Pc=Symbol(""),Vv=()=>{const e=Oe(),t=ge(),n=k(()=>e.value.home?!1:e.value.sidebar??t.value.sidebar??"structure"),r=k(()=>e.value.headerDepth??t.value.headerDepth??2),o=k(()=>Fv(n.value,r.value));on(Pc,o)},Vl=()=>{const e=ve(Pc);if(!e)throw new Error("useSidebarItems() is called without provider.");return e};var zv=K({name:"PageFooter",setup(){const e=Oe(),t=ge(),n=xc(),r=k(()=>{const{copyright:s,footer:a}=e.value;return a!==!1&&!!(s||a||t.value.displayFooter)}),o=k(()=>{const{footer:s}=e.value;return s===!1?!1:fe(s)?s:t.value.footer||""}),l=k(()=>"copyright"in e.value?e.value.copyright:"copyright"in t.value?t.value.copyright:n.value.length?`Copyright © ${new Date().getFullYear()} ${n.value[0].name}`:!1);return()=>r.value?u("footer",{class:"vp-footer-wrapper"},[o.value?u("div",{class:"vp-footer",innerHTML:o.value}):null,l.value?u("div",{class:"vp-copyright",innerHTML:l.value}):null]):null}}),jv=K({name:"NavbarDropdownLink",props:{config:{type:Object,required:!0}},slots:Object,setup(e,{slots:t}){const n=he(),r=Zr(e,"config"),o=k(()=>r.value.ariaLabel||r.value.text),l=X(!1);se(()=>n.value.path,()=>{l.value=!1});const s=a=>{a.detail===0&&(l.value=!l.value)};return()=>{var a;return u("div",{class:["dropdown-wrapper",{open:l.value}]},[u("button",{type:"button",class:"dropdown-title","aria-label":o.value,onClick:s},[((a=t.title)==null?void 0:a.call(t))||u("span",{class:"title"},[u(je,{icon:r.value.icon}),e.config.text]),u("span",{class:"arrow"}),u("ul",{class:"nav-dropdown"},r.value.children.map((i,c)=>{const f=c===r.value.children.length-1;return u("li",{class:"dropdown-item"},"children"in i?[u("h4",{class:"dropdown-subtitle"},i.link?u(Ve,{config:i,onFocusout:()=>{i.children.length===0&&f&&(l.value=!1)}}):u("span",i.text)),u("ul",{class:"dropdown-subitem-wrapper"},i.children.map((d,p)=>u("li",{class:"dropdown-subitem"},u(Ve,{config:d,onFocusout:()=>{p===i.children.length-1&&f&&(l.value=!1)}}))))]:u(Ve,{config:i,onFocusout:()=>{f&&(l.value=!1)}}))}))])])}}});const Rc=(e,t,n="")=>fe(t)?En(e,`${n}${t}`):"children"in t?{...t,...t.link&&!zr(t.link)?En(e,`${n}${t.link}`):{},children:t.children.map(r=>Rc(e,r,`${n}${t.prefix||""}`))}:{...t,link:zr(t.link)?t.link:En(e,`${n}${t.link}`).link},Ic=()=>{const e=ge(),t=Ye(),n=()=>(e.value.navbar||[]).map(o=>Rc(t,o)),r=X(n());return se(e,()=>{r.value=n()}),r},Wv=()=>{const e=ge(),t=k(()=>e.value.repo||null),n=k(()=>t.value?Wh(t.value):null),r=k(()=>t.value?ec(t.value):null),o=k(()=>n.value?e.value.repoLabel??(r.value===null?"Source":r.value):null);return k(()=>!n.value||!o.value||e.value.repoDisplay===!1?null:{type:r.value||"Source",label:o.value,link:n.value})};var Kv=K({name:"NavScreenDropdown",props:{config:{type:Object,required:!0}},setup(e){const t=he(),n=Zr(e,"config"),r=k(()=>n.value.ariaLabel||n.value.text),o=X(!1);se(()=>t.value.path,()=>{o.value=!1});const l=(s,a)=>a[a.length-1]===s;return()=>[u("button",{type:"button",class:["nav-screen-dropdown-title",{active:o.value}],"aria-label":r.value,onClick:()=>{o.value=!o.value}},[u("span",{class:"title"},[u(je,{icon:n.value.icon}),e.config.text]),u("span",{class:["arrow",o.value?"down":"end"]})]),u("ul",{class:["nav-screen-dropdown",{hide:!o.value}]},n.value.children.map(s=>u("li",{class:"dropdown-item"},"children"in s?[u("h4",{class:"dropdown-subtitle"},s.link?u(Ve,{config:s,onFocusout:()=>{l(s,n.value.children)&&s.children.length===0&&(o.value=!1)}}):u("span",s.text)),u("ul",{class:"dropdown-subitem-wrapper"},s.children.map(a=>u("li",{class:"dropdown-subitem"},u(Ve,{config:a,onFocusout:()=>{l(a,s.children)&&l(s,n.value.children)&&(o.value=!1)}}))))]:u(Ve,{config:s,onFocusout:()=>{l(s,n.value.children)&&(o.value=!1)}}))))]}}),Uv=K({name:"NavScreenLinks",setup(){const e=Ic();return()=>e.value.length?u("nav",{class:"nav-screen-links"},e.value.map(t=>u("div",{class:"navbar-links-item"},"children"in t?u(Kv,{config:t}):u(Ve,{config:t})))):null}});const Oc=()=>u(Ce,{name:"dark"},()=>u("path",{d:"M524.8 938.667h-4.267a439.893 439.893 0 0 1-313.173-134.4 446.293 446.293 0 0 1-11.093-597.334A432.213 432.213 0 0 1 366.933 90.027a42.667 42.667 0 0 1 45.227 9.386 42.667 42.667 0 0 1 10.24 42.667 358.4 358.4 0 0 0 82.773 375.893 361.387 361.387 0 0 0 376.747 82.774 42.667 42.667 0 0 1 54.187 55.04 433.493 433.493 0 0 1-99.84 154.88 438.613 438.613 0 0 1-311.467 128z"}));Oc.displayName="DarkIcon";const $c=()=>u(Ce,{name:"light"},()=>u("path",{d:"M952 552h-80a40 40 0 0 1 0-80h80a40 40 0 0 1 0 80zM801.88 280.08a41 41 0 0 1-57.96-57.96l57.96-58a41.04 41.04 0 0 1 58 58l-58 57.96zM512 752a240 240 0 1 1 0-480 240 240 0 0 1 0 480zm0-560a40 40 0 0 1-40-40V72a40 40 0 0 1 80 0v80a40 40 0 0 1-40 40zm-289.88 88.08-58-57.96a41.04 41.04 0 0 1 58-58l57.96 58a41 41 0 0 1-57.96 57.96zM192 512a40 40 0 0 1-40 40H72a40 40 0 0 1 0-80h80a40 40 0 0 1 40 40zm30.12 231.92a41 41 0 0 1 57.96 57.96l-57.96 58a41.04 41.04 0 0 1-58-58l58-57.96zM512 832a40 40 0 0 1 40 40v80a40 40 0 0 1-80 0v-80a40 40 0 0 1 40-40zm289.88-88.08 58 57.96a41.04 41.04 0 0 1-58 58l-57.96-58a41 41 0 0 1 57.96-57.96z"}));$c.displayName="LightIcon";const Mc=()=>u(Ce,{name:"auto"},()=>u("path",{d:"M512 992C246.92 992 32 777.08 32 512S246.92 32 512 32s480 214.92 480 480-214.92 480-480 480zm0-840c-198.78 0-360 161.22-360 360 0 198.84 161.22 360 360 360s360-161.16 360-360c0-198.78-161.22-360-360-360zm0 660V212c165.72 0 300 134.34 300 300 0 165.72-134.28 300-300 300z"}));Mc.displayName="AutoIcon";const Dc=()=>u(Ce,{name:"enter-fullscreen"},()=>u("path",{d:"M762.773 90.24h-497.28c-96.106 0-174.4 78.293-174.4 174.4v497.28c0 96.107 78.294 174.4 174.4 174.4h497.28c96.107 0 175.04-78.293 174.4-174.4V264.64c0-96.213-78.186-174.4-174.4-174.4zm-387.2 761.173H215.04c-21.867 0-40.427-17.92-41.067-41.066V649.92c0-22.507 17.92-40.427 40.427-40.427 11.307 0 21.227 4.694 28.48 11.947 7.253 7.253 11.947 17.92 11.947 28.48v62.293l145.28-145.28c15.893-15.893 41.813-15.893 57.706 0 15.894 15.894 15.894 41.814 0 57.707l-145.28 145.28h62.294c22.506 0 40.426 17.92 40.426 40.427s-17.173 41.066-39.68 41.066zM650.24 165.76h160.427c21.866 0 40.426 17.92 41.066 41.067v160.426c0 22.507-17.92 40.427-40.426 40.427-11.307 0-21.227-4.693-28.48-11.947-7.254-7.253-11.947-17.92-11.947-28.48v-62.186L625.6 450.347c-15.893 15.893-41.813 15.893-57.707 0-15.893-15.894-15.893-41.814 0-57.707l145.28-145.28H650.88c-22.507 0-40.427-17.92-40.427-40.427s17.174-41.173 39.787-41.173z"}));Dc.displayName="EnterFullScreenIcon";const Nc=()=>u(Ce,{name:"cancel-fullscreen"},()=>u("path",{d:"M778.468 78.62H247.922c-102.514 0-186.027 83.513-186.027 186.027V795.08c0 102.514 83.513 186.027 186.027 186.027h530.432c102.514 0 186.71-83.513 186.026-186.027V264.647C964.494 162.02 880.981 78.62 778.468 78.62zM250.88 574.35h171.122c23.324 0 43.122 19.115 43.804 43.805v171.121c0 24.008-19.114 43.122-43.122 43.122-12.06 0-22.641-5.006-30.378-12.743s-12.743-19.115-12.743-30.379V722.83L224.597 877.91c-16.953 16.952-44.6 16.952-61.553 0-16.953-16.954-16.953-44.602 0-61.554L318.009 661.39h-66.446c-24.007 0-43.122-19.114-43.122-43.122 0-24.12 18.432-43.918 42.439-43.918zm521.899-98.873H601.657c-23.325 0-43.122-19.114-43.805-43.804V260.55c0-24.007 19.115-43.122 43.122-43.122 12.06 0 22.642 5.007 30.379 12.743s12.743 19.115 12.743 30.38v66.445l154.965-154.965c16.953-16.953 44.601-16.953 61.554 0 16.953 16.953 16.953 44.6 0 61.554L705.536 388.55h66.446c24.007 0 43.122 19.115 43.122 43.122.114 24.007-18.318 43.804-42.325 43.804z"}));Nc.displayName="CancelFullScreenIcon";const Hc=()=>u(Ce,{name:"outlook"},()=>[u("path",{d:"M224 800c0 9.6 3.2 44.8 6.4 54.4 6.4 48-48 76.8-48 76.8s80 41.6 147.2 0 134.4-134.4 38.4-195.2c-22.4-12.8-41.6-19.2-57.6-19.2C259.2 716.8 227.2 761.6 224 800zM560 675.2l-32 51.2c-51.2 51.2-83.2 32-83.2 32 25.6 67.2 0 112-12.8 128 25.6 6.4 51.2 9.6 80 9.6 54.4 0 102.4-9.6 150.4-32l0 0c3.2 0 3.2-3.2 3.2-3.2 22.4-16 12.8-35.2 6.4-44.8-9.6-12.8-12.8-25.6-12.8-41.6 0-54.4 60.8-99.2 137.6-99.2 6.4 0 12.8 0 22.4 0 12.8 0 38.4 9.6 48-25.6 0-3.2 0-3.2 3.2-6.4 0-3.2 3.2-6.4 3.2-6.4 6.4-16 6.4-16 6.4-19.2 9.6-35.2 16-73.6 16-115.2 0-105.6-41.6-198.4-108.8-268.8C704 396.8 560 675.2 560 675.2zM224 419.2c0-28.8 22.4-51.2 51.2-51.2 28.8 0 51.2 22.4 51.2 51.2 0 28.8-22.4 51.2-51.2 51.2C246.4 470.4 224 448 224 419.2zM320 284.8c0-22.4 19.2-41.6 41.6-41.6 22.4 0 41.6 19.2 41.6 41.6 0 22.4-19.2 41.6-41.6 41.6C339.2 326.4 320 307.2 320 284.8zM457.6 208c0-12.8 12.8-25.6 25.6-25.6 12.8 0 25.6 12.8 25.6 25.6 0 12.8-12.8 25.6-25.6 25.6C470.4 233.6 457.6 220.8 457.6 208zM128 505.6C128 592 153.6 672 201.6 736c28.8-60.8 112-60.8 124.8-60.8-16-51.2 16-99.2 16-99.2l316.8-422.4c-48-19.2-99.2-32-150.4-32C297.6 118.4 128 291.2 128 505.6zM764.8 86.4c-22.4 19.2-390.4 518.4-390.4 518.4-22.4 28.8-12.8 76.8 22.4 99.2l9.6 6.4c35.2 22.4 80 12.8 99.2-25.6 0 0 6.4-12.8 9.6-19.2 54.4-105.6 275.2-524.8 288-553.6 6.4-19.2-3.2-32-19.2-32C777.6 76.8 771.2 80 764.8 86.4z"})]);Hc.displayName="OutlookIcon";var Bc=K({name:"AppearanceSwitch",setup(){const{config:e,status:t}=br(),n=()=>{e.value==="switch"?t.value={light:"dark",dark:"auto",auto:"light"}[t.value]:t.value=t.value==="light"?"dark":"light"};return()=>u("button",{type:"button",id:"appearance-switch",onClick:()=>n()},[u(Mc,{style:{display:t.value==="auto"?"block":"none"}}),u(Oc,{style:{display:t.value==="dark"?"block":"none"}}),u($c,{style:{display:t.value==="light"?"block":"none"}})])}}),Gv=K({name:"AppearanceMode",setup(){const e=ge(),{canToggle:t}=br(),n=k(()=>e.value.outlookLocales.darkmode);return()=>t.value?u("div",{class:"appearance-wrapper"},[u("label",{class:"appearance-title",for:"appearance-switch"},n.value),u(Bc)]):null}});const So="VUEPRESS_THEME_COLOR";var qv=K({name:"ThemeColorPicker",props:{themeColor:{type:Object,required:!0}},setup(e){const t=(n="")=>{const r=document.documentElement.classList,o=pr(e.themeColor);if(!n){localStorage.removeItem(So),r.remove(...o);return}r.remove(...o.filter(l=>l!==n)),r.add(n),localStorage.setItem(So,n)};return me(()=>{const n=localStorage.getItem(So);n&&t(n)}),()=>u("ul",{id:"theme-color-picker"},[u("li",u("span",{class:"theme-color",onClick:()=>t()})),Yi(e.themeColor).map(([n,r])=>u("li",u("span",{style:{background:r},onClick:()=>t(n)})))])}});const Tn=Hl.enableThemeColor==="true",Zv=Tn?Hh(Yi(Hl).filter(([e])=>e.startsWith("theme-"))):{};var Yv=K({name:"ThemeColor",setup(){const e=ge(),t=k(()=>e.value.outlookLocales.themeColor);return()=>Tn?u("div",{class:"theme-color-wrapper"},[u("label",{class:"theme-color-title",for:"theme-color-picker"},t.value),u(qv,{themeColor:Zv})]):null}}),Fc=K({name:"ToggleFullScreenButton",setup(){const e=ge(),{isSupported:t,isFullscreen:n,toggle:r}=Ml(),o=k(()=>e.value.outlookLocales.fullscreen);return()=>t?u("div",{class:"full-screen-wrapper"},[u("label",{class:"full-screen-title",for:"full-screen-switch"},o.value),u("button",{type:"button",id:"full-screen-switch",class:"full-screen",ariaPressed:n.value,onClick:()=>r()},n.value?u(Nc):u(Dc))]):null}}),Vc=K({name:"OutlookSettings",setup(){const e=gr(),t=oo(),n=k(()=>!t.value&&e.value.fullscreen);return()=>u(to,()=>[Tn?u(Yv):null,u(Gv),n.value?u(Fc):null])}}),Xv=K({name:"NavScreen",props:{show:Boolean},emits:["close"],slots:Object,setup(e,{emit:t,slots:n}){const r=he(),{isMobile:o}=lo(),l=Ze(),s=Dl(l);return me(()=>{l.value=document.body,se(o,a=>{!a&&e.show&&(s.value=!1,t("close"))}),se(()=>r.value.path,()=>{s.value=!1,t("close")})}),Mn(()=>{s.value=!1}),()=>u(Kt,{name:"fade",onEnter:()=>{s.value=!0},onAfterLeave:()=>{s.value=!1}},()=>{var a,i;return e.show?u("div",{id:"nav-screen"},u("div",{class:"vp-nav-screen-container"},[(a=n.before)==null?void 0:a.call(n),u(Uv),u("div",{class:"vp-outlook-wrapper"},u(Vc)),(i=n.after)==null?void 0:i.call(n)])):null})}}),Jv=K({name:"NavbarBrand",setup(){const e=qt(),t=eo(),n=ge(),r=k(()=>n.value.home||e.value),o=k(()=>t.value.title),l=k(()=>n.value.navTitle??o.value),s=k(()=>n.value.logo?He(n.value.logo):null),a=k(()=>n.value.logoDark?He(n.value.logoDark):null);return()=>u(dt,{to:r.value,class:"vp-brand"},()=>[s.value?u("img",{class:["vp-nav-logo",{light:!!a.value}],src:s.value,alt:o.value}):null,a.value?u("img",{class:["vp-nav-logo dark"],src:a.value,alt:o.value}):null,l.value?u("span",{class:["vp-site-name",{"hide-in-pad":s.value&&n.value.hideSiteNameOnMobile!==!1}]},l.value):null])}}),Qv=K({name:"NavbarLinks",setup(){const e=Ic();return()=>e.value.length?u("nav",{class:"vp-nav-links"},e.value.map(t=>u("div",{class:"nav-item hide-in-mobile"},"children"in t?u(jv,{config:t}):u(Ve,{config:t})))):null}}),e0=K({name:"RepoLink",components:{BitbucketIcon:oc,GiteeIcon:rc,GitHubIcon:tc,GitLabIcon:nc,SourceIcon:lc},setup(){const e=Wv();return()=>e.value?u("div",{class:"nav-item vp-repo"},u("a",{class:"vp-repo-link",href:e.value.link,target:"_blank",rel:"noopener noreferrer","aria-label":e.value.label},u(ft(`${e.value.type}Icon`),{style:{width:"1.25rem",height:"1.25rem",verticalAlign:"middle"}}))):null}});const zc=({active:e=!1},{emit:t})=>u("button",{type:"button",class:["vp-toggle-navbar-button",{"is-active":e}],"aria-label":"Toggle Navbar","aria-expanded":e,"aria-controls":"nav-screen",onClick:()=>t("toggle")},u("span",[u("span",{class:"vp-top"}),u("span",{class:"vp-middle"}),u("span",{class:"vp-bottom"})]));zc.displayName="ToggleNavbarButton";var t0=zc;const Xo=(e,{emit:t})=>u("button",{type:"button",class:"vp-toggle-sidebar-button",title:"Toggle Sidebar",onClick:()=>t("toggle")},u("span",{class:"icon"}));Xo.displayName="ToggleSidebarButton",Xo.emits=["toggle"];var n0=Xo,r0=K({name:"OutlookButton",setup(){const{isSupported:e}=Ml(),t=gr(),n=oo(),r=he(),{canToggle:o}=br(),l=X(!1),s=k(()=>!n.value&&t.value.fullscreen&&e);return se(()=>r.value.path,()=>{l.value=!1}),()=>o.value||s.value||Tn?u("div",{class:"nav-item hide-in-mobile"},o.value&&!s.value&&!Tn?u(Bc):s.value&&!o.value&&!Tn?u(Fc):u("button",{type:"button",class:["outlook-button",{open:l.value}],tabindex:"-1","aria-hidden":!0},[u(Hc),u("div",{class:"outlook-dropdown"},u(Vc))])):null}}),o0=K({name:"NavBar",emits:["toggleSidebar"],slots:Object,setup(e,{emit:t,slots:n}){const r=ge(),{isMobile:o}=lo(),l=X(!1),s=k(()=>{const{navbarAutoHide:f="mobile"}=r.value;return f!=="none"&&(f==="always"||o.value)}),a=k(()=>r.value.navbarLayout||{start:["Brand"],center:["Links"],end:["Language","Repo","Outlook","Search"]}),i={Brand:Jv,Language:ko,Links:Qv,Repo:e0,Outlook:r0,Search:At("Docsearch")?ft("Docsearch"):At("SearchBox")?ft("SearchBox"):ko},c=f=>i[f]??(At(f)?ft(f):ko);return()=>{var f,d,p,h,g,w;return[u("header",{id:"navbar",class:["vp-navbar",{"auto-hide":s.value,"hide-icon":r.value.navbarIcon===!1}]},[u("div",{class:"vp-navbar-start"},[u(n0,{onToggle:()=>{l.value&&(l.value=!1),t("toggleSidebar")}}),(f=n.startBefore)==null?void 0:f.call(n),(a.value.start||[]).map(T=>u(c(T))),(d=n.startAfter)==null?void 0:d.call(n)]),u("div",{class:"vp-navbar-center"},[(p=n.centerBefore)==null?void 0:p.call(n),(a.value.center||[]).map(T=>u(c(T))),(h=n.centerAfter)==null?void 0:h.call(n)]),u("div",{class:"vp-navbar-end"},[(g=n.endBefore)==null?void 0:g.call(n),(a.value.end||[]).map(T=>u(c(T))),(w=n.endAfter)==null?void 0:w.call(n),u(t0,{active:l.value,onToggle:()=>{l.value=!l.value}})])]),u(Xv,{show:l.value,onClose:()=>{l.value=!1}},{before:()=>{var T;return(T=n.screenTop)==null?void 0:T.call(n)},after:()=>{var T;return(T=n.screenBottom)==null?void 0:T.call(n)}})]}}}),l0=K({name:"SidebarChild",props:{config:{type:Object,required:!0}},setup(e){const t=It();return()=>[Lc(e.config,{class:["vp-sidebar-link",`vp-sidebar-${e.config.type}`,{active:Rn(t,e.config,!0)}],exact:!0}),Sc(e.config.children)]}}),s0=K({name:"SidebarGroup",props:{config:{type:Object,required:!0},open:{type:Boolean,required:!0}},emits:["toggle"],setup(e,{emit:t}){const n=It(),r=k(()=>Rn(n,e.config)),o=k(()=>Rn(n,e.config,!0));return()=>{const{collapsible:l,children:s=[],icon:a,prefix:i,link:c,text:f}=e.config;return u("section",{class:"vp-sidebar-group"},[u(l?"button":"p",{class:["vp-sidebar-heading",{clickable:l||c,exact:o.value,active:r.value}],...l?{type:"button",onClick:()=>t("toggle"),onKeydown:d=>{d.key==="Enter"&&t("toggle")}}:{}},[u(je,{icon:a}),c?u(Ve,{class:"vp-sidebar-title",config:{text:f,link:c},noExternalLinkIcon:!0}):u("span",{class:"vp-sidebar-title"},f),l?u("span",{class:["vp-arrow",e.open?"down":"end"]}):null]),e.open||!l?u(jc,{key:i,config:s}):null])}}}),jc=K({name:"SidebarLinks",props:{config:{type:Array,required:!0}},setup(e){const t=It(),n=X(-1),r=o=>{n.value=o===n.value?-1:o};return se(()=>t.path,()=>{const o=e.config.findIndex(l=>kc(t,l));n.value=o},{immediate:!0,flush:"post"}),()=>u("ul",{class:"vp-sidebar-links"},e.config.map((o,l)=>u("li",o.type==="group"?u(s0,{config:o,open:l===n.value,onToggle:()=>r(l)}):u(l0,{config:o}))))}}),a0=K({name:"SideBar",slots:Object,setup(e,{slots:t}){const n=It(),r=ge(),o=Vl(),l=Ze();return me(()=>{se(()=>n.hash,s=>{const a=document.querySelector(`.vp-sidebar a.vp-sidebar-link[href="${n.path}${s}"]`);if(!a)return;const{top:i,height:c}=l.value.getBoundingClientRect(),{top:f,height:d}=a.getBoundingClientRect();fi+c&&a.scrollIntoView(!1)},{immediate:!0})}),()=>{var s,a,i;return u("aside",{ref:l,id:"sidebar",class:["vp-sidebar",{"hide-icon":r.value.sidebarIcon===!1}]},[(s=t.top)==null?void 0:s.call(t),((a=t.default)==null?void 0:a.call(t))||u(jc,{config:o.value}),(i=t.bottom)==null?void 0:i.call(t)])}}}),Wc=K({name:"CommonWrapper",props:{containerClass:{type:String,default:""},noNavbar:Boolean,noSidebar:Boolean,noToc:Boolean},slots:Object,setup(e,{slots:t}){const n=Ye(),r=he(),o=Oe(),l=ge(),{isMobile:s,isPC:a}=lo(),[i,c]=ta(!1),[f,d]=ta(!1),p=Vl(),h=X(!1),g=k(()=>e.noNavbar||o.value.navbar===!1||l.value.navbar===!1?!1:!!(r.value.title||l.value.logo||l.value.repo||l.value.navbar)),w=k(()=>e.noSidebar?!1:o.value.sidebar!==!1&&p.value.length!==0&&!o.value.home),T=k(()=>e.noToc||o.value.home?!1:o.value.toc||l.value.toc!==!1&&o.value.toc!==!1),_={x:0,y:0},L=A=>{_.x=A.changedTouches[0].clientX,_.y=A.changedTouches[0].clientY},b=A=>{const U=A.changedTouches[0].clientX-_.x,R=A.changedTouches[0].clientY-_.y;Math.abs(U)>Math.abs(R)*1.5&&Math.abs(U)>40&&(U>0&&_.x<=80?c(!0):c(!1))},E=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;let H=0;return Ie("scroll",r1(()=>{const A=E();A<=58||A{A||c(!1)}),me(()=>{const A=Dl(document.body);se(i,R=>{A.value=R});const U=n.afterEach(()=>{c(!1)});Mn(()=>{A.value=!1,U()})}),()=>u(At("GlobalEncrypt")?ft("GlobalEncrypt"):Ui,()=>u("div",{class:["theme-container",{"no-navbar":!g.value,"no-sidebar":!w.value&&!(t.sidebar||t.sidebarTop||t.sidebarBottom),"has-toc":T.value,"hide-navbar":h.value,"sidebar-collapsed":!s.value&&!a.value&&f.value,"sidebar-open":s.value&&i.value},e.containerClass,o.value.containerClass||""],onTouchStart:L,onTouchEnd:b},[g.value?u(o0,{onToggleSidebar:()=>c()},{startBefore:()=>{var A;return(A=t.navbarStartBefore)==null?void 0:A.call(t)},startAfter:()=>{var A;return(A=t.navbarStartAfter)==null?void 0:A.call(t)},centerBefore:()=>{var A;return(A=t.navbarCenterBefore)==null?void 0:A.call(t)},centerAfter:()=>{var A;return(A=t.navbarCenterAfter)==null?void 0:A.call(t)},endBefore:()=>{var A;return(A=t.navbarEndBefore)==null?void 0:A.call(t)},endAfter:()=>{var A;return(A=t.navbarEndAfter)==null?void 0:A.call(t)},screenTop:()=>{var A;return(A=t.navScreenTop)==null?void 0:A.call(t)},screenBottom:()=>{var A;return(A=t.navScreenBottom)==null?void 0:A.call(t)}}):null,u(Kt,{name:"fade"},()=>i.value?u("div",{class:"vp-sidebar-mask",onClick:()=>c(!1)}):null),u(Kt,{name:"fade"},()=>s.value?null:u("div",{class:"toggle-sidebar-wrapper",onClick:()=>d()},u("span",{class:["arrow",f.value?"end":"start"]}))),u(a0,{},{...t.sidebar?{default:()=>t.sidebar()}:{},top:()=>{var A;return(A=t.sidebarTop)==null?void 0:A.call(t)},bottom:()=>{var A;return(A=t.sidebarBottom)==null?void 0:A.call(t)}}),t.default(),u(zv)]))}}),bn=K({name:"DropTransition",props:{type:{type:String,default:"single"},delay:{type:Number,default:0},duration:{type:Number,default:.25},appear:Boolean},slots:Object,setup(e,{slots:t}){const n=o=>{o.style.transition=`transform ${e.duration}s ease-in-out ${e.delay}s, opacity ${e.duration}s ease-in-out ${e.delay}s`,o.style.transform="translateY(-20px)",o.style.opacity="0"},r=o=>{o.style.transform="translateY(0)",o.style.opacity="1"};return()=>u(e.type==="single"?Kt:Dd,{name:"drop",appear:e.appear,onAppear:n,onAfterAppear:r,onEnter:n,onAfterEnter:r,onBeforeLeave:n},()=>t.default())}});const Jo=({custom:e})=>u(Li,{class:["theme-hope-content",{custom:e}]});Jo.displayName="MarkdownContent",Jo.props={custom:Boolean};var Kc=Jo;const Uc=()=>u(Ce,{name:"author"},()=>u("path",{d:"M649.6 633.6c86.4-48 147.2-144 147.2-249.6 0-160-128-288-288-288s-288 128-288 288c0 108.8 57.6 201.6 147.2 249.6-121.6 48-214.4 153.6-240 288-3.2 9.6 0 19.2 6.4 25.6 3.2 9.6 12.8 12.8 22.4 12.8h704c9.6 0 19.2-3.2 25.6-12.8 6.4-6.4 9.6-16 6.4-25.6-25.6-134.4-121.6-240-243.2-288z"}));Uc.displayName="AuthorIcon";const Gc=()=>u(Ce,{name:"calendar"},()=>u("path",{d:"M716.4 110.137c0-18.753-14.72-33.473-33.472-33.473-18.753 0-33.473 14.72-33.473 33.473v33.473h66.993v-33.473zm-334.87 0c0-18.753-14.72-33.473-33.473-33.473s-33.52 14.72-33.52 33.473v33.473h66.993v-33.473zm468.81 33.52H716.4v100.465c0 18.753-14.72 33.473-33.472 33.473a33.145 33.145 0 01-33.473-33.473V143.657H381.53v100.465c0 18.753-14.72 33.473-33.473 33.473a33.145 33.145 0 01-33.473-33.473V143.657H180.6A134.314 134.314 0 0046.66 277.595v535.756A134.314 134.314 0 00180.6 947.289h669.74a134.36 134.36 0 00133.94-133.938V277.595a134.314 134.314 0 00-133.94-133.938zm33.473 267.877H147.126a33.145 33.145 0 01-33.473-33.473c0-18.752 14.72-33.473 33.473-33.473h736.687c18.752 0 33.472 14.72 33.472 33.473a33.145 33.145 0 01-33.472 33.473z"}));Gc.displayName="CalendarIcon";const qc=()=>u(Ce,{name:"category"},()=>u("path",{d:"M148.41 106.992h282.176c22.263 0 40.31 18.048 40.31 40.31V429.48c0 22.263-18.047 40.31-40.31 40.31H148.41c-22.263 0-40.311-18.047-40.311-40.31V147.302c0-22.263 18.048-40.31 40.311-40.31zM147.556 553.478H429.73c22.263 0 40.311 18.048 40.311 40.31v282.176c0 22.263-18.048 40.312-40.31 40.312H147.555c-22.263 0-40.311-18.049-40.311-40.312V593.79c0-22.263 18.048-40.311 40.31-40.311zM593.927 106.992h282.176c22.263 0 40.31 18.048 40.31 40.31V429.48c0 22.263-18.047 40.31-40.31 40.31H593.927c-22.263 0-40.311-18.047-40.311-40.31V147.302c0-22.263 18.048-40.31 40.31-40.31zM730.22 920.502H623.926c-40.925 0-74.22-33.388-74.22-74.425V623.992c0-41.038 33.387-74.424 74.425-74.424h222.085c41.038 0 74.424 33.226 74.424 74.067v114.233c0 10.244-8.304 18.548-18.547 18.548s-18.548-8.304-18.548-18.548V623.635c0-20.388-16.746-36.974-37.33-36.974H624.13c-20.585 0-37.331 16.747-37.331 37.33v222.086c0 20.585 16.654 37.331 37.126 37.331H730.22c10.243 0 18.547 8.304 18.547 18.547 0 10.244-8.304 18.547-18.547 18.547z"}));qc.displayName="CategoryIcon";const Zc=()=>u(Ce,{name:"print"},()=>u("path",{d:"M819.2 364.8h-44.8V128c0-17.067-14.933-32-32-32H281.6c-17.067 0-32 14.933-32 32v236.8h-44.8C145.067 364.8 96 413.867 96 473.6v192c0 59.733 49.067 108.8 108.8 108.8h44.8V896c0 17.067 14.933 32 32 32h460.8c17.067 0 32-14.933 32-32V774.4h44.8c59.733 0 108.8-49.067 108.8-108.8v-192c0-59.733-49.067-108.8-108.8-108.8zM313.6 160h396.8v204.8H313.6V160zm396.8 704H313.6V620.8h396.8V864zM864 665.6c0 25.6-19.2 44.8-44.8 44.8h-44.8V588.8c0-17.067-14.933-32-32-32H281.6c-17.067 0-32 14.933-32 32v121.6h-44.8c-25.6 0-44.8-19.2-44.8-44.8v-192c0-25.6 19.2-44.8 44.8-44.8h614.4c25.6 0 44.8 19.2 44.8 44.8v192z"}));Zc.displayName="PrintIcon";const Yc=()=>u(Ce,{name:"tag"},()=>u("path",{d:"M939.902 458.563L910.17 144.567c-1.507-16.272-14.465-29.13-30.737-30.737L565.438 84.098h-.402c-3.215 0-5.726 1.005-7.634 2.913l-470.39 470.39a10.004 10.004 0 000 14.164l365.423 365.424c1.909 1.908 4.42 2.913 7.132 2.913s5.223-1.005 7.132-2.913l470.39-470.39c2.01-2.11 3.014-5.023 2.813-8.036zm-240.067-72.121c-35.458 0-64.286-28.828-64.286-64.286s28.828-64.285 64.286-64.285 64.286 28.828 64.286 64.285-28.829 64.286-64.286 64.286z"}));Yc.displayName="TagIcon";const Xc=()=>u(Ce,{name:"timer"},()=>u("path",{d:"M799.387 122.15c4.402-2.978 7.38-7.897 7.38-13.463v-1.165c0-8.933-7.38-16.312-16.312-16.312H256.33c-8.933 0-16.311 7.38-16.311 16.312v1.165c0 5.825 2.977 10.874 7.637 13.592 4.143 194.44 97.22 354.963 220.201 392.763-122.204 37.542-214.893 196.511-220.2 389.397-4.661 5.049-7.638 11.651-7.638 19.03v5.825h566.49v-5.825c0-7.379-2.849-13.981-7.509-18.9-5.049-193.016-97.867-351.985-220.2-389.527 123.24-37.67 216.446-198.453 220.588-392.892zM531.16 450.445v352.632c117.674 1.553 211.787 40.778 211.787 88.676H304.097c0-48.286 95.149-87.382 213.728-88.676V450.445c-93.077-3.107-167.901-81.297-167.901-177.093 0-8.803 6.99-15.793 15.793-15.793 8.803 0 15.794 6.99 15.794 15.793 0 80.261 63.69 145.635 142.01 145.635s142.011-65.374 142.011-145.635c0-8.803 6.99-15.793 15.794-15.793s15.793 6.99 15.793 15.793c0 95.019-73.789 172.82-165.96 177.093z"}));Xc.displayName="TimerIcon";const Jc=()=>u(Ce,{name:"word"},()=>[u("path",{d:"M518.217 432.64V73.143A73.143 73.143 0 01603.43 1.097a512 512 0 01419.474 419.474 73.143 73.143 0 01-72.046 85.212H591.36a73.143 73.143 0 01-73.143-73.143z"}),u("path",{d:"M493.714 566.857h340.297a73.143 73.143 0 0173.143 85.577A457.143 457.143 0 11371.566 117.76a73.143 73.143 0 0185.577 73.143v339.383a36.571 36.571 0 0036.571 36.571z"})]);Jc.displayName="WordIcon";const Yt=()=>{const e=ge();return k(()=>e.value.metaLocales)};var i0=K({name:"AuthorInfo",inheritAttrs:!1,props:{author:{type:Array,required:!0},pure:Boolean},setup(e){const t=Yt();return()=>e.author.length?u("span",{class:"page-author-info","aria-label":`${t.value.author}${e.pure?"":"🖊"}`,...e.pure?{}:{"data-balloon-pos":"down"}},[u(Uc),u("span",e.author.map(n=>n.url?u("a",{class:"page-author-item",href:n.url,target:"_blank",rel:"noopener noreferrer"},n.name):u("span",{class:"page-author-item"},n.name))),u("span",{property:"author",content:e.author.map(n=>n.name).join(", ")})]):null}}),c0=K({name:"CategoryInfo",inheritAttrs:!1,props:{category:{type:Array,required:!0},pure:Boolean},setup(e){const t=Ye(),n=he(),r=Yt(),o=(l,s="")=>{s&&n.value.path!==s&&(l.preventDefault(),t.push(s))};return()=>e.category.length?u("span",{class:"page-category-info","aria-label":`${r.value.category}${e.pure?"":"🌈"}`,...e.pure?{}:{"data-balloon-pos":"down"}},[u(qc),e.category.map(({name:l,path:s})=>u("span",{class:["page-category-item",{[`category${Gi(l,9)}`]:!e.pure,clickable:s}],role:s?"navigation":"",onClick:a=>o(a,s)},l)),u("meta",{property:"articleSection",content:e.category.map(({name:l})=>l).join(",")})]):null}}),u0=K({name:"DateInfo",inheritAttrs:!1,props:{date:{type:Object,default:null},localizedDate:{type:String,default:""},pure:Boolean},setup(e){const t=Ti(),n=Yt();return()=>e.date?u("span",{class:"page-date-info","aria-label":`${n.value.date}${e.pure?"":"📅"}`,...e.pure?{}:{"data-balloon-pos":"down"}},[u(Gc),u("span",u(to,()=>e.localizedDate||e.date.toLocaleDateString(t.value))),u("meta",{property:"datePublished",content:e.date.toISOString()||""})]):null}}),f0=K({name:"OriginalInfo",inheritAttrs:!1,props:{isOriginal:Boolean},setup(e){const t=Yt();return()=>e.isOriginal?u("span",{class:"page-original-info"},t.value.origin):null}}),d0=K({name:"ReadingTimeInfo",inheritAttrs:!1,props:{readingTime:{type:Object,default:()=>null},readingTimeLocale:{type:Object,default:()=>null},pure:Boolean},setup(e){const t=Yt(),n=k(()=>{if(!e.readingTime)return null;const{minutes:r}=e.readingTime;return r<1?"PT1M":`PT${Math.round(r)}M`});return()=>{var r,o;return(r=e.readingTimeLocale)!=null&&r.time?u("span",{class:"page-reading-time-info","aria-label":`${t.value.readingTime}${e.pure?"":"⌛"}`,...e.pure?{}:{"data-balloon-pos":"down"}},[u(Xc),u("span",(o=e.readingTimeLocale)==null?void 0:o.time),u("meta",{property:"timeRequired",content:n.value})]):null}}}),p0=K({name:"TagInfo",inheritAttrs:!1,props:{tag:{type:Array,default:()=>[]},pure:Boolean},setup(e){const t=Ye(),n=he(),r=Yt(),o=(l,s="")=>{s&&n.value.path!==s&&(l.preventDefault(),t.push(s))};return()=>e.tag.length?u("span",{class:"page-tag-info","aria-label":`${r.value.tag}${e.pure?"":"🏷"}`,...e.pure?{}:{"data-balloon-pos":"down"}},[u(Yc),e.tag.map(({name:l,path:s})=>u("span",{class:["page-tag-item",{[`tag${Gi(l,9)}`]:!e.pure,clickable:s}],role:s?"navigation":"",onClick:a=>o(a,s)},l)),u("meta",{property:"keywords",content:e.tag.map(({name:l})=>l).join(",")})]):null}}),h0=K({name:"ReadTimeInfo",inheritAttrs:!1,props:{readingTime:{type:Object,default:()=>null},readingTimeLocale:{type:Object,default:()=>null},pure:Boolean},setup(e){const t=Yt();return()=>{var n,r,o;return(n=e.readingTimeLocale)!=null&&n.words?u("span",{class:"page-word-info","aria-label":`${t.value.words}${e.pure?"":"🔠"}`,...e.pure?{}:{"data-balloon-pos":"down"}},[u(Jc),u("span",(r=e.readingTimeLocale)==null?void 0:r.words),u("meta",{property:"wordCount",content:(o=e.readingTime)==null?void 0:o.words})]):null}}}),v0=K({name:"PageInfo",components:{AuthorInfo:i0,CategoryInfo:c0,DateInfo:u0,OriginalInfo:f0,PageViewInfo:()=>null,ReadingTimeInfo:d0,TagInfo:p0,WordInfo:h0},props:{items:{type:[Array,Boolean],default:()=>["Author","Original","Date","PageView","ReadingTime","Category","Tag"]},info:{type:Object,required:!0}},setup(e){const t=oo();return()=>e.items?u("div",{class:"page-info"},e.items.map(n=>u(ft(`${n}Info`),{...e.info,pure:t.value}))):null}}),m0=K({name:"PrintButton",setup(){const e=gr(),t=ge();return()=>e.value.print===!1?null:u("button",{type:"button",class:"print-button",title:t.value.metaLocales.print,onClick:()=>{window.print()}},u(Zc))}});const g0=({title:e,level:t,slug:n})=>u(dt,{to:`#${n}`,class:["toc-link",`level${t}`]},()=>e),Qo=(e,t)=>{const n=It();return e.length&&t>0?u("ul",{class:"toc-list"},e.map(r=>{const o=Qo(r.children,t-1);return[u("li",{class:["toc-item",{active:Il(n,`#${r.slug}`)}]},g0(r)),o?u("li",o):null]})):null};var b0=K({name:"TOC",props:{items:{type:Array,default:()=>[]},headerDepth:{type:Number,default:2}},slots:Object,setup(e,{slots:t}){const n=It(),r=he(),o=Yt(),l=Ze(),s=X("-1.7rem"),a=c=>{var f;(f=l.value)==null||f.scrollTo({top:c,behavior:"smooth"})},i=()=>{if(l.value){const c=document.querySelector(".toc-item.active");c?s.value=`${c.getBoundingClientRect().top-l.value.getBoundingClientRect().top+l.value.scrollTop}px`:s.value="-1.7rem"}else s.value="-1.7rem"};return me(()=>{se(()=>n.hash,c=>{if(l.value){const f=document.querySelector(`#toc a.toc-link[href$="${c}"]`);if(!f)return;const{top:d,height:p}=l.value.getBoundingClientRect(),{top:h,height:g}=f.getBoundingClientRect();hd+p&&a(l.value.scrollTop+h+g-d-p)}}),se(()=>n.fullPath,()=>i(),{flush:"post",immediate:!0})}),()=>{var f,d;const c=e.items.length?Qo(e.items,e.headerDepth):r.value.headers?Qo(r.value.headers,e.headerDepth):null;return c?u("div",{class:"toc-place-holder"},[u("aside",{id:"toc"},[(f=t.before)==null?void 0:f.call(t),u("div",{class:"toc-header"},[o.value.toc,u(m0)]),u("div",{class:"toc-wrapper",ref:l},[c,u("div",{class:"toc-marker",style:{top:s.value}})]),(d=t.after)==null?void 0:d.call(t)])]):null}}}),Qc=K({name:"SkipLink",props:{content:{type:String,default:"main-content"}},setup(e){const t=he(),n=ge(),r=Ze(),o=({target:l})=>{const s=document.querySelector(l.hash);if(s){const a=()=>{s.removeAttribute("tabindex"),s.removeEventListener("blur",a)};s.setAttribute("tabindex","-1"),s.addEventListener("blur",a),s.focus(),window.scrollTo(0,0)}};return me(()=>{se(()=>t.value.path,()=>r.value.focus())}),()=>[u("span",{ref:r,tabindex:"-1"}),u("a",{href:`#${e.content}`,class:"vp-skip-link sr-only",onClick:o},n.value.routeLocales.skipToContent)]}});let Ao=null,Vn=null;const y0={wait:()=>Ao,pending:()=>{Ao=new Promise(e=>Vn=e)},resolve:()=>{Vn==null||Vn(),Ao=null,Vn=null}},eu=()=>y0;var _0=K({name:"FadeSlideY",slots:Object,setup(e,{slots:t}){const{resolve:n,pending:r}=eu();return()=>u(Kt,{name:"fade-slide-y",mode:"out-in",onBeforeEnter:n,onBeforeLeave:r},()=>{var o;return(o=t.default)==null?void 0:o.call(t)})}});const w0=(e,t)=>{const n=e.replace(t,"/").split("/"),r=[];let o=Cl(t);return n.forEach((l,s)=>{s!==n.length-1?(o+=`${l}/`,r.push({link:o,name:l||"Home"})):l!==""&&(o+=l,r.push({link:o,name:l}))}),r},tu=(e,{slots:t})=>{var d,p;const{bgImage:n,bgImageDark:r,bgImageStyle:o,color:l,description:s,image:a,imageDark:i,header:c,features:f=[]}=e;return u("div",{class:"vp-feature-wrapper"},[n?u("div",{class:["vp-feature-bg",{light:r}],style:[{"background-image":`url(${n})`},o]}):null,r?u("div",{class:"vp-feature-bg dark",style:[{"background-image":`url(${r})`},o]}):null,u("div",{class:"vp-feature",style:l?{color:l}:{}},[((d=t.image)==null?void 0:d.call(t,e))||[a?u("img",{class:["vp-feature-image",{light:i}],src:He(a),alt:c}):null,i?u("img",{class:"vp-feature-image dark",src:He(i),alt:c}):null],((p=t.info)==null?void 0:p.call(t,e))||[c?u("h2",{class:"vp-feature-header"},c):null,s?u("p",{class:"vp-feature-description",innerHTML:s}):null],f.length?u("div",{class:"vp-features"},f.map(({icon:h,title:g,details:w,link:T})=>{const _=[u("h3",{class:"vp-feature-title"},[u(je,{icon:h}),u("span",{innerHTML:g})]),u("p",{class:"vp-feature-details",innerHTML:w})];return T?zr(T)?u("a",{class:"vp-feature-item link",href:T,role:"navigation","aria-label":g,target:"_blank"},_):u(dt,{class:"vp-feature-item link",to:T,role:"navigation","aria-label":g},()=>_):u("div",{class:"vp-feature-item"},_)})):null])])};tu.displayName="FeaturePanel";var da=tu,E0=K({name:"HeroInfo",slots:Object,setup(e,{slots:t}){const n=Oe(),r=eo(),o=k(()=>n.value.heroFullScreen??!1),l=k(()=>{const{heroText:c,tagline:f}=n.value;return{text:c??r.value.title??"Hello",tagline:f??r.value.description??"",isFullScreen:o.value}}),s=k(()=>{const{heroText:c,heroImage:f,heroImageDark:d,heroAlt:p,heroImageStyle:h}=n.value;return{image:f?He(f):null,imageDark:d?He(d):null,heroStyle:h,alt:p||c||"hero image",isFullScreen:o.value}}),a=k(()=>{const{bgImage:c,bgImageDark:f,bgImageStyle:d}=n.value;return{image:Pt(c)?He(c):null,imageDark:Pt(f)?He(f):null,bgStyle:d,isFullScreen:o.value}}),i=k(()=>n.value.actions??[]);return()=>{var c,f,d;return u("header",{class:["vp-hero-info-wrapper",{fullscreen:o.value}]},[((c=t.heroBg)==null?void 0:c.call(t,a.value))||[a.value.image?u("div",{class:["vp-hero-mask",{light:a.value.imageDark}],style:[{"background-image":`url(${a.value.image})`},a.value.bgStyle]}):null,a.value.imageDark?u("div",{class:"vp-hero-mask dark",style:[{"background-image":`url(${a.value.imageDark})`},a.value.bgStyle]}):null],u("div",{class:"vp-hero-info"},[((f=t.heroImage)==null?void 0:f.call(t,s.value))||u(bn,{appear:!0,type:"group"},()=>[s.value.image?u("img",{key:"light",class:["vp-hero-image",{light:s.value.imageDark}],style:s.value.heroStyle,src:s.value.image,alt:s.value.alt}):null,s.value.imageDark?u("img",{key:"dark",class:"vp-hero-image dark",style:s.value.heroStyle,src:s.value.imageDark,alt:s.value.alt}):null]),((d=t.heroInfo)==null?void 0:d.call(t,l.value))??u("div",{class:"vp-hero-infos"},[l.value.text?u(bn,{appear:!0,delay:.04},()=>u("h1",{id:"main-title"},l.value.text)):null,l.value.tagline?u(bn,{appear:!0,delay:.08},()=>u("p",{class:"vp-description",innerHTML:l.value.tagline})):null,i.value.length?u(bn,{appear:!0,delay:.12},()=>u("p",{class:"vp-actions"},i.value.map(p=>u(Ve,{class:["vp-action",p.type||"default"],config:p,noExternalLinkIcon:!0})))):null])])])}}});const nu=(e,{slots:t})=>{var p,h,g;const{bgImage:n,bgImageDark:r,bgImageStyle:o,color:l,description:s,image:a,imageDark:i,header:c,highlights:f=[],type:d="un-order"}=e;return u("div",{class:"vp-highlight-wrapper",style:l?{color:l}:{}},[n?u("div",{class:["vp-highlight-bg",{light:r}],style:[{"background-image":`url(${n})`},o]}):null,r?u("div",{class:"vp-highlight-bg dark",style:[{"background-image":`url(${r})`},o]}):null,u("div",{class:"vp-highlight"},[((p=t.image)==null?void 0:p.call(t,e))||[a?u("img",{class:["vp-highlight-image",{light:i}],src:He(a),alt:c}):null,i?u("img",{class:"vp-highlight-image dark",src:He(i),alt:c}):null],((h=t.info)==null?void 0:h.call(t,e))||[u("div",{class:"vp-highlight-info-wrapper"},u("div",{class:"vp-highlight-info"},[c?u("h2",{class:"vp-highlight-header",innerHTML:c}):null,s?u("p",{class:"vp-highlight-description",innerHTML:s}):null,((g=t.highlights)==null?void 0:g.call(t,f))||u(d==="order"?"ol":d==="no-order"?"dl":"ul",{class:"vp-highlights"},f.map(({icon:w,title:T,details:_,link:L})=>{const b=[u(d==="no-order"?"dt":"h3",{class:"vp-highlight-title"},[w?u(je,{class:"vp-highlight-icon",icon:w}):null,u("span",{innerHTML:T})]),_?u(d==="no-order"?"dd":"p",{class:"vp-highlight-details",innerHTML:_}):null];return u(d==="no-order"?"div":"li",{class:["vp-highlight-item-wrapper",{link:L}]},L?$h(L)?u("a",{class:"vp-highlight-item link",href:L,role:"navigation","aria-label":T,target:"_blank"},b):u(dt,{class:"vp-highlight-item link",to:L,role:"navigation","aria-label":T},()=>b):u("div",{class:"vp-highlight-item"},b))}))]))]])])};nu.displayName="HighlightPanel";var T0=nu,x0=K({name:"HomePage",slots:Object,setup(e,{slots:t}){const n=oo(),r=Oe(),o=k(()=>{const{features:s}=r.value;return J(s)?s:null}),l=k(()=>{const{highlights:s}=r.value;return J(s)?s:null});return()=>{var s,a,i,c;return u("main",{id:"main-content",class:["vp-project-home ",{pure:n.value}],"aria-labelledby":r.value.heroText===null?"":"main-title"},[(s=t.top)==null?void 0:s.call(t),u(E0),((a=l.value)==null?void 0:a.map(f=>"features"in f?u(da,f):u(T0,f)))||(o.value?u(bn,{appear:!0,delay:.24},()=>u(da,{features:o.value})):null),(i=t.center)==null?void 0:i.call(t),u(bn,{appear:!0,delay:.32},()=>u(Kc)),(c=t.bottom)==null?void 0:c.call(t)])}}}),C0=K({name:"BreadCrumb",setup(){const e=Ye(),t=he(),n=qt(),r=Oe(),o=ge(),l=Ze([]),s=k(()=>(r.value.breadcrumb||r.value.breadcrumb!==!1&&o.value.breadcrumb!==!1)&&l.value.length>1),a=k(()=>r.value.breadcrumbIcon||r.value.breadcrumbIcon!==!1&&o.value.breadcrumbIcon!==!1),i=()=>{const c=e.getRoutes(),f=w0(t.value.path,n.value).map(({link:d,name:p})=>{const h=c.find(g=>g.path===d);if(h){const{meta:g,path:w}=Wr(e,h.path);return{title:g[Lt.shortTitle]||g[Lt.title]||p,icon:g[Lt.icon],path:w}}return null}).filter(d=>d!==null);f.length>1&&(l.value=f)};return me(()=>{i(),se(()=>t.value.path,i)}),()=>u("nav",{class:["vp-breadcrumb",{disable:!s.value}]},s.value?u("ol",{vocab:"https://schema.org/",typeof:"BreadcrumbList"},l.value.map((c,f)=>u("li",{class:{"is-active":l.value.length-1===f},property:"itemListElement",typeof:"ListItem"},[u(dt,{to:c.path,property:"item",typeof:"WebPage"},()=>[a.value?u(je,{icon:c.icon}):null,u("span",{property:"name"},c.title||"Unknown")]),u("meta",{property:"position",content:f+1})]))):[])}});const pa=e=>{const t=Ye();return e===!1?!1:fe(e)?En(t,e,!0):xl(e)?e:null},el=(e,t,n)=>{const r=e.findIndex(o=>o.link===t);if(r!==-1){const o=e[r+n];return o!=null&&o.link?o:null}for(const o of e)if(o.children){const l=el(o.children,t,n);if(l)return l}return null};var k0=K({name:"PageNav",setup(){const e=ge(),t=Oe(),n=Vl(),r=he(),o=Av(),l=k(()=>{const a=pa(t.value.prev);return a===!1?null:a||(e.value.prevLink===!1?null:el(n.value,r.value.path,-1))}),s=k(()=>{const a=pa(t.value.next);return a===!1?null:a||(e.value.nextLink===!1?null:el(n.value,r.value.path,1))});return Ie("keydown",a=>{a.altKey&&(a.key==="ArrowRight"?s.value&&(o(s.value.link),a.preventDefault()):a.key==="ArrowLeft"&&l.value&&(o(l.value.link),a.preventDefault()))}),()=>l.value||s.value?u("nav",{class:"vp-page-nav"},[l.value?u(Ve,{class:"prev",config:l.value},()=>{var a,i;return[u("div",{class:"hint"},[u("span",{class:"arrow start"}),e.value.metaLocales.prev]),u("div",{class:"link"},[u(je,{icon:(a=l.value)==null?void 0:a.icon}),(i=l.value)==null?void 0:i.text])]}):null,s.value?u(Ve,{class:"next",config:s.value},()=>{var a,i;return[u("div",{class:"hint"},[e.value.metaLocales.next,u("span",{class:"arrow end"})]),u("div",{class:"link"},[(a=s.value)==null?void 0:a.text,u(je,{icon:(i=s.value)==null?void 0:i.icon})])]}):null]):null}});const L0={GitHub:":repo/edit/:branch/:path",GitLab:":repo/-/edit/:branch/:path",Gitee:":repo/edit/:branch/:path",Bitbucket:":repo/src/:branch/:path?mode=edit&spa=0&at=:branch&fileviewer=file-view-default"},S0=({docsRepo:e,docsBranch:t,docsDir:n,filePathRelative:r,editLinkPattern:o})=>{if(!r)return null;const l=ec(e);let s;return o?s=o:l!==null&&(s=L0[l]),s?s.replace(/:repo/,Dn(e)?e:`https://github.com/${e}`).replace(/:branch/,t).replace(/:path/,gi(`${Cl(n)}/${r}`)):null},A0=()=>{const e=ge(),t=he(),n=Oe();return k(()=>{const{repo:r,docsRepo:o=r,docsBranch:l="main",docsDir:s="",editLink:a,editLinkPattern:i=""}=e.value;if(!(n.value.editLink??a??!0)||!o)return null;const c=S0({docsRepo:o,docsBranch:l,docsDir:s,editLinkPattern:i,filePathRelative:t.value.filePathRelative});return c?{text:e.value.metaLocales.editLink,link:c}:null})},P0=()=>{const e=eo(),t=ge(),n=he(),r=Oe();return k(()=>{var o,l;return!(r.value.lastUpdated??t.value.lastUpdated??!0)||!((o=n.value.git)!=null&&o.updatedTime)?null:new Date((l=n.value.git)==null?void 0:l.updatedTime).toLocaleString(e.value.lang)})},R0=()=>{const e=ge(),t=he(),n=Oe();return k(()=>{var r;return n.value.contributors??e.value.contributors??!0?((r=t.value.git)==null?void 0:r.contributors)??null:null})};var I0=K({name:"PageTitle",setup(){const e=he(),t=Oe(),n=ge(),{info:r,items:o}=Ov();return()=>u("div",{class:"vp-page-title"},[u("h1",[n.value.titleIcon===!1?null:u(je,{icon:t.value.icon}),e.value.title]),u(v0,{info:r.value,...o.value===null?{}:{items:o.value}}),u("hr")])}});const ru=()=>u(Ce,{name:"edit"},()=>[u("path",{d:"M430.818 653.65a60.46 60.46 0 0 1-50.96-93.281l71.69-114.012 7.773-10.365L816.038 80.138A60.46 60.46 0 0 1 859.225 62a60.46 60.46 0 0 1 43.186 18.138l43.186 43.186a60.46 60.46 0 0 1 0 86.373L588.879 565.55l-8.637 8.637-117.466 68.234a60.46 60.46 0 0 1-31.958 11.229z"}),u("path",{d:"M728.802 962H252.891A190.883 190.883 0 0 1 62.008 771.98V296.934a190.883 190.883 0 0 1 190.883-192.61h267.754a60.46 60.46 0 0 1 0 120.92H252.891a69.962 69.962 0 0 0-69.098 69.099V771.98a69.962 69.962 0 0 0 69.098 69.098h475.911A69.962 69.962 0 0 0 797.9 771.98V503.363a60.46 60.46 0 1 1 120.922 0V771.98A190.883 190.883 0 0 1 728.802 962z"})]);ru.displayName="EditIcon";var O0=K({name:"PageMeta",setup(){const e=ge(),t=A0(),n=P0(),r=R0();return()=>{const{metaLocales:o}=e.value;return u("footer",{class:"page-meta"},[t.value?u("div",{class:"meta-item edit-link"},u(Ve,{class:"label",config:t.value},{before:()=>u(ru)})):null,u("div",{class:"meta-item git-info"},[n.value?u("div",{class:"update-time"},[u("span",{class:"label"},`${o.lastUpdated}: `),u(to,()=>u("span",{class:"info"},n.value))]):null,r.value&&r.value.length?u("div",{class:"contributors"},[u("span",{class:"label"},`${o.contributors}: `),r.value.map(({email:l,name:s},a)=>[u("span",{class:"contributor",title:`email: ${l}`},s),a!==r.value.length-1?",":""])]):null])])}}}),$0=K({name:"NormalPage",slots:Object,setup(e,{slots:t}){const n=Oe(),r=he(),{isDarkmode:o}=br(),l=ge(),s=k(()=>n.value.toc||n.value.toc!==!1&&l.value.toc!==!1);return()=>u("main",{id:"main-content",class:"vp-page"},u(At("LocalEncrypt")?ft("LocalEncrypt"):Ui,()=>{var a,i,c,f;return[(a=t.top)==null?void 0:a.call(t),n.value.cover?u("img",{class:"page-cover",src:He(n.value.cover),alt:r.value.title,"no-view":""}):null,u(C0),u(I0),s.value?u(b0,{headerDepth:n.value.headerDepth??l.value.headerDepth??2},{before:()=>{var d;return(d=t.tocBefore)==null?void 0:d.call(t)},after:()=>{var d;return(d=t.tocAfter)==null?void 0:d.call(t)}}):null,(i=t.contentBefore)==null?void 0:i.call(t),u(Kc),(c=t.contentAfter)==null?void 0:c.call(t),u(O0),u(k0),At("CommentService")?u(ft("CommentService"),{darkmode:o.value}):null,(f=t.bottom)==null?void 0:f.call(t)]}))}}),M0=K({name:"Layout",setup(){ge();const e=he(),t=Oe(),{isMobile:n}=lo(),r=k(()=>"none");return()=>[u(Qc),u(Wc,{},{default:()=>t.value.home?u(x0):u(_0,()=>u($0,{key:e.value.path})),...r.value!=="none"?{navScreenBottom:()=>u(ft("BloggerInfo"))}:{},...!n.value&&r.value==="always"?{sidebar:()=>u(ft("BloggerInfo"))}:{}})]}}),D0=K({name:"NotFoundHint",setup(){const e=ge(),t=()=>{const n=e.value.routeLocales.notFoundMsg;return n[Math.floor(Math.random()*n.length)]};return()=>u("div",{class:"not-found-hint"},[u("p",{class:"error-code"},"404"),u("h1",{class:"error-title"},e.value.routeLocales.notFoundTitle),u("p",{class:"error-hint"},t())])}}),N0=K({name:"NotFound",slots:Object,setup(e,{slots:t}){const n=qt(),r=ge(),{navigate:o}=Ko({to:r.value.home??n.value});return()=>[u(Qc),u(Wc,{noSidebar:!0},()=>{var l;return u("main",{id:"main-content",class:"vp-page not-found"},((l=t.default)==null?void 0:l.call(t))||[u(D0),u("div",{class:"actions"},[u("button",{type:"button",class:"action-button",onClick:()=>{window.history.go(-1)}},r.value.routeLocales.back),u("button",{type:"button",class:"action-button",onClick:()=>o()},r.value.routeLocales.home)])])})]}});M1(je);const H0=vt({enhance:({app:e,router:t})=>{const{scrollBehavior:n}=t.options;t.options.scrollBehavior=async(...r)=>(await eu().wait(),n(...r)),Dv(e),e.component("HopeIcon",je),e.component("VPLink",dt)},setup:()=>{Nv(),Vv()},layouts:{Layout:M0,NotFound:N0}}),Nn=({name:e="",color:t="currentColor"},{slots:n})=>{var r;return u("svg",{xmlns:"http://www.w3.org/2000/svg",class:["icon",`${e}-icon`],viewBox:"0 0 1024 1024",fill:t,"aria-label":`${e} icon`},(r=n.default)==null?void 0:r.call(n))};Nn.displayName="IconBase";const B0=e=>[/\((ipad);[-\w),; ]+apple/i,/applecoremedia\/[\w.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i].some(t=>t.test(e)),F0=e=>[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i].some(t=>t.test(e)),V0=e=>[/(mac os x) ?([\w. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i].some(t=>t.test(e));function z0(){const e=X(!1);return cn()&&me(()=>{e.value=!0}),e}function j0(e){return z0(),k(()=>!!e())}const W0=e=>typeof e=="string",K0=(e,t)=>W0(e)&&e.startsWith(t),U0=e=>(e.endsWith(".md")&&(e=`${e.slice(0,-3)}.html`),!e.endsWith("/")&&!e.endsWith(".html")&&(e=`${e}.html`),e=e.replace(/(^|\/)(?:README|index).html$/i,"$1"),e),G0=e=>{const[t,n=""]=e.split("#");return t?`${U0(t)}${n?`#${n}`:""}`:e},q0=e=>{if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget){const t=e.currentTarget.getAttribute("target");if(t!=null&&t.match(/\b_blank\b/i))return}return e.preventDefault(),!0}},Z0=({to:e="",class:t="",...n},{slots:r})=>{var o;const l=Ye(),s=(a={})=>q0(a)?l.push(e).catch():Promise.resolve();return u("a",{...n,class:["vp-link",t],href:He(G0(e)),onClick:s},(o=r.default)==null?void 0:o.call(r))};Z0.displayName="VPLink";const Y0=()=>j0(()=>typeof window<"u"&&window.navigator&&"userAgent"in window.navigator),X0=()=>{const e=Y0();return k(()=>e.value&&/\b(?:Android|iPhone)/i.test(navigator.userAgent))},zl=e=>{const t=qt();return k(()=>e[t.value])},J0=()=>u(Nn,{name:"heading"},()=>u("path",{d:"M250.4 704.6H64V595.4h202.4l26.2-166.6H94V319.6h214.4L352 64h127.8l-43.6 255.4h211.2L691 64h126.2l-43.6 255.4H960v109.2H756.2l-24.6 166.6H930v109.2H717L672 960H545.8l43.6-255.4H376.6L333 960H206.8l43.6-255.4zm168.4-276L394 595.4h211.2l24.6-166.6h-211z"}));J0.displayName="HeadingIcon";const Q0=()=>u(Nn,{name:"heart"},()=>u("path",{d:"M1024 358.156C1024 195.698 892.3 64 729.844 64c-86.362 0-164.03 37.218-217.844 96.49C458.186 101.218 380.518 64 294.156 64 131.698 64 0 195.698 0 358.156 0 444.518 37.218 522.186 96.49 576H96l320 320c32 32 64 64 96 64s64-32 96-64l320-320h-.49c59.272-53.814 96.49-131.482 96.49-217.844zM841.468 481.232 517.49 805.49a2981.962 2981.962 0 0 1-5.49 5.48c-1.96-1.95-3.814-3.802-5.49-5.48L182.532 481.234C147.366 449.306 128 405.596 128 358.156 128 266.538 202.538 192 294.156 192c47.44 0 91.15 19.366 123.076 54.532L512 350.912l94.768-104.378C638.696 211.366 682.404 192 729.844 192 821.462 192 896 266.538 896 358.156c0 47.44-19.368 91.15-54.532 123.076z"}));Q0.displayName="HeartIcon";const em=()=>u(Nn,{name:"history"},()=>u("path",{d:"M512 1024a512 512 0 1 1 512-512 512 512 0 0 1-512 512zm0-896a384 384 0 1 0 384 384 384 384 0 0 0-384-384zm192 448H512a64 64 0 0 1-64-64V320a64 64 0 0 1 128 0v128h128a64 64 0 0 1 0 128z"}));em.displayName="HistoryIcon";const tm=()=>u(Nn,{name:"title"},()=>u("path",{d:"M512 256c70.656 0 134.656 28.672 180.992 75.008A254.933 254.933 0 0 1 768 512c0 83.968-41.024 157.888-103.488 204.48C688.96 748.736 704 788.48 704 832c0 105.984-86.016 192-192 192-106.048 0-192-86.016-192-192h128a64 64 0 1 0 128 0 64 64 0 0 0-64-64 255.19 255.19 0 0 1-181.056-75.008A255.403 255.403 0 0 1 256 512c0-83.968 41.024-157.824 103.488-204.544C335.04 275.264 320 235.584 320 192A192 192 0 0 1 512 0c105.984 0 192 85.952 192 192H576a64.021 64.021 0 0 0-128 0c0 35.328 28.672 64 64 64zM384 512c0 70.656 57.344 128 128 128s128-57.344 128-128-57.344-128-128-128-128 57.344-128 128z"}));tm.displayName="TitleIcon";const jl=()=>u(Nn,{name:"search"},()=>u("path",{d:"M192 480a256 256 0 1 1 512 0 256 256 0 0 1-512 0m631.776 362.496-143.2-143.168A318.464 318.464 0 0 0 768 480c0-176.736-143.264-320-320-320S128 303.264 128 480s143.264 320 320 320a318.016 318.016 0 0 0 184.16-58.592l146.336 146.368c12.512 12.48 32.768 12.48 45.28 0 12.48-12.512 12.48-32.768 0-45.28"}));jl.displayName="SearchIcon";const ou=()=>u("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",preserveAspectRatio:"xMidYMid",viewBox:"0 0 100 100"},[u("circle",{cx:"28",cy:"75",r:"11",fill:"currentColor"},u("animate",{attributeName:"fill-opacity",begin:"0s",dur:"1s",keyTimes:"0;0.2;1",repeatCount:"indefinite",values:"0;1;1"})),u("path",{fill:"none",stroke:"#88baf0","stroke-width":"10",d:"M28 47a28 28 0 0 1 28 28"},u("animate",{attributeName:"stroke-opacity",begin:"0.1s",dur:"1s",keyTimes:"0;0.2;1",repeatCount:"indefinite",values:"0;1;1"})),u("path",{fill:"none",stroke:"#88baf0","stroke-width":"10",d:"M28 25a50 50 0 0 1 50 50"},u("animate",{attributeName:"stroke-opacity",begin:"0.2s",dur:"1s",keyTimes:"0;0.2;1",repeatCount:"indefinite",values:"0;1;1"}))]);ou.displayName="LoadingIcon";const lu=({hint:e})=>u("div",{class:"search-pro-result-wrapper loading"},[u(ou),e]);lu.displayName="SearchLoading";const nm='',Wl={searchDelay:150,suggestDelay:0,queryHistoryCount:5,resultHistoryCount:5,hotKeys:[{key:"k",ctrl:!0},{key:"/",ctrl:!0}],worker:"search-pro.worker.js"},Mm={},su=Wl.hotKeys,Kl={"/":{cancel:"取消",placeholder:"搜索",search:"搜索",searching:"搜索中",defaultTitle:"文档",select:"选择",navigate:"切换",autocomplete:"自动补全",exit:"关闭",history:"搜索历史",emptyHistory:"无搜索历史",emptyResult:"没有找到结果",loading:"正在加载搜索索引..."}};new URL("data:application/javascript;base64,aW1wb3J0e3NlYXJjaCBhcyBDLGdldFN0b3JlZEZpZWxkcyBhcyBSLGF1dG9TdWdnZXN0IGFzIFQsbG9hZEpTT05JbmRleCBhcyB3fWZyb20ic2xpbXNlYXJjaCI7aW1wb3J0ICQgZnJvbSJAdGVtcC9zZWFyY2gtcHJvL2luZGV4IjtpbXBvcnR7ZW50cmllcyBhcyBFfWZyb20idnVlcHJlc3Mtc2hhcmVkL2NsaWVudCI7Y29uc3QgeD0obCxlKT0+e2NvbnN0IG49bC50b0xvd2VyQ2FzZSgpLHM9ZS50b0xvd2VyQ2FzZSgpLG89W107bGV0IHQ9MCxyPTA7Y29uc3QgaT0oYyxnPSExKT0+e2xldCBwPSIiO3I9PT0wP3A9Yy5sZW5ndGg+MjA/YOKApiAke2Muc2xpY2UoLTIwKX1gOmM6Zz9wPWMubGVuZ3RoK3I+MTAwP2Ake2Muc2xpY2UoMCwxMDAtcil94oCmIGA6YzpwPWMubGVuZ3RoPjIwP2Ake2Muc2xpY2UoMCwyMCl9IOKApiAke2Muc2xpY2UoLTIwKX1gOmMscCYmby5wdXNoKHApLHIrPXAubGVuZ3RoLGd8fChvLnB1c2goWyJtYXJrIixlXSkscis9ZS5sZW5ndGgscj49MTAwJiZvLnB1c2goIiDigKYiKSl9O2xldCBoPW4uaW5kZXhPZihzLHQpO2lmKGg9PT0tMSlyZXR1cm4gbnVsbDtmb3IoO2g+PTA7KXtjb25zdCBjPWgrcy5sZW5ndGg7aWYoaShsLnNsaWNlKHQsaCkpLHQ9YyxyPjEwMClicmVhaztoPW4uaW5kZXhPZihzLHQpfXJldHVybiByPDEwMCYmaShsLnNsaWNlKHQpLCEwKSxvfSxTPS9bXHU0ZTAwLVx1OWZhNV0vZyxNPShsPXt9KT0+KHtmdXp6eTouMixwcmVmaXg6ITAscHJvY2Vzc1Rlcm06ZT0+e2NvbnN0IG49ZS5tYXRjaChTKXx8W10scz1lLnJlcGxhY2UoUywiIikudG9Mb3dlckNhc2UoKTtyZXR1cm4gcz9bcywuLi5uXTpbLi4ubl19LC4uLmx9KSxGPShsLGUpPT5lLmNvbnRlbnRzLnJlZHVjZSgobixbLHNdKT0+bitzLDApLWwuY29udGVudHMucmVkdWNlKChuLFssc10pPT5uK3MsMCksXz0obCxlKT0+TWF0aC5tYXgoLi4uZS5jb250ZW50cy5tYXAoKFssbl0pPT5uKSktTWF0aC5tYXgoLi4ubC5jb250ZW50cy5tYXAoKFssbl0pPT5uKSksTz0obCxlLG49e30pPT57Y29uc3Qgcz17fTtyZXR1cm4gQyhlLGwsTSh7Ym9vc3Q6e2g6Mix0OjEsYzo0fSwuLi5ufSkpLmZvckVhY2gobz0+e2NvbnN0e2lkOnQsdGVybXM6cixzY29yZTppfT1vLGg9dC5pbmNsdWRlcygiQCIpLGM9dC5pbmNsdWRlcygiIyIpLFtnLHBdPXQuc3BsaXQoL1sjQF0vKSxtPXIuc29ydCgodSxhKT0+dS5sZW5ndGgtYS5sZW5ndGgpLmZpbHRlcigodSxhKT0+ci5zbGljZShhKzEpLmV2ZXJ5KGY9PiFmLmluY2x1ZGVzKHUpKSkse2NvbnRlbnRzOmR9PXNbZ10/Pz17dGl0bGU6IiIsY29udGVudHM6W119O2lmKGgpZC5wdXNoKFt7dHlwZToiY3VzdG9tRmllbGQiLGtleTpnLGluZGV4OnAsZGlzcGxheTptLm1hcCh1PT5vLmMubWFwKGE9PngoYSx1KSkpLmZsYXQoKS5maWx0ZXIodT0+dSE9PW51bGwpfSxpXSk7ZWxzZXtjb25zdCB1PW0ubWFwKGE9Pngoby5oLGEpKS5maWx0ZXIoYT0+YSE9PW51bGwpO2lmKHUubGVuZ3RoJiZkLnB1c2goW3t0eXBlOmM/ImhlYWRpbmciOiJ0aXRsZSIsa2V5OmcsLi4uYyYme2FuY2hvcjpwfSxkaXNwbGF5OnV9LGldKSwidCJpbiBvKWZvcihjb25zdCBhIG9mIG8udCl7Y29uc3QgZj1tLm1hcCh5PT54KGEseSkpLmZpbHRlcih5PT55IT09bnVsbCk7Zi5sZW5ndGgmJmQucHVzaChbe3R5cGU6InRleHQiLGtleTpnLC4uLmMmJnthbmNob3I6cH0sZGlzcGxheTpmfSxpXSl9fX0pLEUocykuc29ydCgoWyxvXSxbLHRdKT0+U0VBUkNIX1BST19TT1JUX1NUUkFURUdZPT09InRvdGFsIj9GKG8sdCk6XyhvLHQpKS5tYXAoKFtvLHt0aXRsZTp0LGNvbnRlbnRzOnJ9XSk9PntpZighdCl7Y29uc3QgaT1SKGUsbyk7aSYmKHQ9aS5oKX1yZXR1cm57dGl0bGU6dCxjb250ZW50czpyLm1hcCgoW2ldKT0+aSl9fSl9LGs9KGwsZSxuPXt9KT0+VChlLGwsTShuKSkubWFwKCh7c3VnZ2VzdGlvbjpzfSk9PnMpO3NlbGYub25tZXNzYWdlPWFzeW5jKHtkYXRhOnt0eXBlOmw9ImFsbCIscXVlcnk6ZSxsb2NhbGU6bixvcHRpb25zOnN9fSk9Pntjb25zdHtkZWZhdWx0Om99PWF3YWl0ICRbbl0oKSx0PXcobyx7ZmllbGRzOlsiaCIsInQiLCJjIl0sc3RvcmVGaWVsZHM6WyJoIiwidCIsImMiXX0pO2w9PT0ic3VnZ2VzdCI/c2VsZi5wb3N0TWVzc2FnZShrKGUsdCxzKSk6bD09PSJzZWFyY2giP3NlbGYucG9zdE1lc3NhZ2UoTyhlLHQscykpOnNlbGYucG9zdE1lc3NhZ2Uoe3N1Z2dlc3Rpb25zOmsoZSx0LHMpLHJlc3VsdHM6TyhlLHQscyl9KX07Ci8vIyBzb3VyY2VNYXBwaW5nVVJMPWluZGV4LmpzLm1hcAo=",self.location);let rm={};const au=Symbol(""),om=()=>ve(au),lm=e=>{e.provide(au,rm)},sm=()=>{const e=new Worker(`/sealdice-manual-next/${Wl.worker}`,{}),t=[];return e.addEventListener("message",({data:n})=>{const{resolve:r}=t.shift();r(n)}),{search:n=>new Promise((r,o)=>{e.postMessage(n),t.push({resolve:r,reject:o})}),terminate:()=>{e.terminate(),t.forEach(({reject:n})=>n(new Error("Worker has been terminated.")))}}};const am=(e,t=!1)=>{const n=X(0),r=k(()=>e.value[n.value]),o=()=>{n.value=n.value>0?n.value-1:e.value.length-1},l=()=>{n.value=n.value{t||(n.value=0)}),{index:n,item:r,prev:o,next:l}},Ul=Symbol(""),im=()=>{const e=X(!1);on(Ul,e)},cm=e=>e instanceof Element?document.activeElement===e&&(["TEXTAREA","SELECT","INPUT"].includes(e.tagName)||e.hasAttribute("contenteditable")):!1,um=e=>su.some(t=>{const{key:n,ctrl:r=!1,shift:o=!1,alt:l=!1,meta:s=!1}=t;return n===e.key&&r===e.ctrlKey&&o===e.shiftKey&&l===e.altKey&&s===e.metaKey}),fm='',dm='',pm='',hm='',vm=e=>{const t=X([]);{const n=om(),r=qt();me(()=>{const o=n1(a=>{a?l({type:"suggest",query:a,locale:r.value,options:n}).then(i=>{t.value=i.length?K0(i[0],a)&&!i[0].slice(a.length).includes(" ")?i:[a,...i]:[]}).catch(i=>{console.error(i)}):t.value=[]},Wl.suggestDelay),{search:l,terminate:s}=sm();se([e,r],()=>o(e.value),{immediate:!0}),Mn(()=>{s()})})}return{suggestions:t}},Po=su[0];var mm=K({name:"SearchBox",setup(){const e=zl(Kl),t=ve(Ul),n=X(!1),r=k(()=>Po?[(n.value?["⌃","⇧","⌥","⌘"]:["Ctrl","Shift","Alt","Win"]).filter((o,l)=>Po[["ctrl","shift","alt","meta"][l]]),Po.key.toUpperCase()]:null);return Ie("keydown",o=>{!t.value&&um(o)&&!cm(o.target)&&(o.preventDefault(),t.value=!0)}),me(()=>{const{userAgent:o}=navigator;n.value=V0(o)||F0(o)||B0(o)}),()=>[u("button",{type:"button",class:"search-pro-button",role:"search","aria-label":e.value.search,onClick:()=>{t.value=!0}},[u(jl),u("div",{class:"search-pro-placeholder"},e.value.search),r.value?u("div",{class:"search-pro-key-hints"},r.value.map(o=>u("kbd",{class:"search-pro-key"},o))):null])]}});const gm=ne({loader:()=>O(()=>import("./SearchResult-ca734e21.js"),[]),loadingComponent:()=>{const e=zl(Kl);return u(lu,{hint:e.value.loading})}});var bm=K({name:"SearchModal",setup(){const e=ve(Ul),t=eo(),n=X0(),r=zl(Kl),o=X(""),{suggestions:l}=vm(o),s=X(!1),{index:a,prev:i,next:c}=am(l),f=Ze(),d=Ze(),p=(h=a.value)=>{o.value=l.value[h],s.value=!1};return Ie("keydown",h=>{s.value?h.key==="ArrowUp"?i():h.key==="ArrowDown"?c():h.key==="Enter"?p():h.key==="Escape"&&(s.value=!1):h.key==="Escape"&&(e.value=!1)}),me(()=>{const h=Dl(document.body);se(e,g=>{h.value=g,g&&an().then(()=>{var w;(w=f.value)==null||w.focus()})}),i1(d,()=>{s.value=!1}),Mn(()=>{h.value=!1})}),()=>e.value?u("div",{class:"search-pro-modal-wrapper"},[u("div",{class:"search-pro-mask",onClick:()=>{e.value=!1,o.value=""}}),u("div",{class:"search-pro-modal"},[u("div",{class:"search-pro-box"},[u("form",[u("label",{for:"search-pro","aria-label":r.value.search},u(jl)),u("input",{ref:f,type:"search",class:"search-pro-input",id:"search-pro",placeholder:r.value.placeholder,spellcheck:"false",autocapitalize:"off",autocomplete:"off",autocorrect:"off",name:`${t.value.title}-search`,value:o.value,"aria-controls":"search-pro-results",onKeydown:h=>{const{key:g}=h;l.value.length&&(g==="Tab"?(p(),h.preventDefault()):(g==="ArrowDown"||g==="ArrowUp"||g==="Escape")&&h.preventDefault())},onInput:({target:h})=>{o.value=h.value,s.value=!0,a.value=0}}),o.value?u("button",{type:"reset",class:"search-pro-clear-button",innerHTML:nm,onClick:()=>{o.value=""}}):null,s.value&&l.value.length?u("ul",{class:"search-pro-suggestions",ref:d},l.value.map((h,g)=>u("li",{class:["search-pro-suggestion",{active:g===a.value}],onClick:()=>{p(g)}},[u("kbd",{class:"search-pro-auto-complete",title:`Tab ${r.value.autocomplete}`},"Tab"),h]))):null]),u("button",{type:"button",class:"search-pro-close-button",onClick:()=>{e.value=!1,o.value=""}},r.value.cancel)]),u(gm,{query:o.value,isFocusing:!s.value,onClose:()=>{e.value=!1},onUpdateQuery:h=>{o.value=h}}),n.value?null:u("div",{class:"search-pro-hints"},[u("span",{class:"search-pro-hint"},[u("kbd",{innerHTML:fm}),r.value.select]),u("span",{class:"search-pro-hint"},[u("kbd",{innerHTML:pm}),u("kbd",{innerHTML:dm}),r.value.navigate]),u("span",{class:"search-pro-hint"},[u("kbd",{innerHTML:hm}),r.value.exit])])])]):null}}),ym=vt({enhance({app:e}){lm(e),e.component("SearchBox",mm)},setup(){im()},rootComponents:[bm]});const Rr=[cp,L1,$1,B1,z1,U1,X1,ov,fv,wv,H0,ym],_m=[["v-8daa1a0e","/",{y:"h",t:"首页"},["/index.md"]],["v-74bc627b","/about/",{y:"a",t:"关于"},["/about/README.md"]],["v-22991227","/about/about.html",{y:"a",t:"关于"},[":md"]],["v-59513697","/about/develop.html",{y:"a",t:"参与项目"},[":md"]],["v-5993bf33","/about/license.html",{y:"a",t:"许可协议"},[":md"]],["v-638c1d18","/advanced/",{y:"a",t:"进阶"},["/advanced/README.md"]],["v-1bb267ce","/advanced/edit_complex_custom_text.html",{y:"a",t:"编写复杂文案"},[":md"]],["v-3f75ff62","/advanced/edit_deck.html",{y:"a",t:"编写牌堆"},[":md"]],["v-53c17e03","/advanced/edit_helpdoc.html",{y:"a",t:"编写帮助文档"},[":md"]],["v-2fd3d5f8","/advanced/edit_jsscript.html",{y:"a",t:"编写 JavaScript 插件"},[":md"]],["v-7c798590","/advanced/edit_reply.html",{y:"a",t:"编写自定义回复"},[":md"]],["v-1375253a","/advanced/edit_sensitive_words.html",{y:"a",t:"编写敏感词库"},[":md"]],["v-c7c02ce4","/advanced/introduce.html",{y:"a",t:"进阶介绍"},[":md"]],["v-309cd60c","/advanced/script.html",{y:"a",t:"内置脚本语言"},[":md"]],["v-ba934fd8","/config/",{y:"a",t:"配置"},["/config/README.md"]],["v-3614fa3e","/config/ban.html",{y:"a",t:"黑白名单"},[":md"]],["v-645298bb","/config/censor.html",{y:"a",t:"拦截"},[":md"]],["v-21148c92","/config/custom_text.html",{y:"a",t:"自定义文案"},[":md"]],["v-7394443c","/config/deck.html",{y:"a",t:"牌堆"},[":md"]],["v-2e19d214","/config/helpdoc.html",{y:"a",t:"帮助文档"},[":md"]],["v-0dd0cb1e","/config/jsscript.html",{y:"a",t:"JavaScript 插件"},[":md"]],["v-5312bf43","/config/reply.html",{y:"a",t:"自定义回复"},[":md"]],["v-72a9c1e2","/deploy/",{y:"a",t:"部署"},["/deploy/README.md"]],["v-03edd4b8","/deploy/platform-dodo.html",{y:"a",t:"DODO"},[":md"]],["v-50de070e","/deploy/platform-kook.html",{y:"a",t:"KOOK"},[":md"]],["v-f2535f24","/deploy/platform-qq.html",{y:"a",t:"QQ"},[":md"]],["v-3a736ab4","/deploy/quick-start.html",{y:"a",t:"快速开始"},[":md"]],["v-6fdc0ef8","/deploy/special_feature.html",{y:"a",t:"特色功能"},[":md"]],["v-43dbd51f","/deploy/transfer.html",{y:"a",t:"迁移"},[":md"]],["v-744dba01","/use/",{y:"a",t:"使用"},["/use/README.md"]],["v-7acffd8d","/use/attribute_alias.html",{y:"a",t:"属性同义词"},[":md"]],["v-ccf9e350","/use/coc7.html",{y:"a",t:"克苏鲁的呼唤 7 版"},[":md"]],["v-017f73b9","/use/core.html",{y:"a",t:"核心指令"},[":md"]],["v-2b665368","/use/deck_and_reply.html",{y:"a",t:"牌堆 自定义回复"},[":md"]],["v-4f9c5270","/use/dnd5e.html",{y:"a",t:"龙与地下城 5E"},[":md"]],["v-56b95c84","/use/faq.html",{y:"a",t:"常见问题"},[":md"]],["v-739773bb","/use/fun.html",{y:"a",t:"娱乐"},[":md"]],["v-e461914a","/use/introduce.html",{y:"a",t:"基础概念"},[":md"]],["v-ccf19dd4","/use/log.html",{y:"a",t:"日志"},[":md"]],["v-0a7a5ed2","/use/other_rules.html",{y:"a",t:"其它规则支持"},[":md"]],["v-7c88c198","/use/quick-start.html",{y:"a",t:"快速上手"},[":md"]],["v-4d2e85c5","/use/story.html",{y:"a",t:"故事"},[":md"]],["v-3706649a","/404.html",{y:"p",t:""},[]]];var ha=K({name:"Vuepress",setup(){const e=op();return()=>u(e.value)}}),wm=()=>_m.reduce((e,[t,n,r,o])=>(e.push({name:t,path:n,component:ha,meta:r},{path:n.endsWith("/")?n+"index.html":n.substring(0,n.length-5),redirect:n},...o.map(l=>({path:l===":md"?n.substring(0,n.length-5)+".md":l,redirect:n}))),e),[{name:"404",path:"/:catchAll(.*)",component:ha}]),Em=Lp,Tm=()=>{const e=uh({history:Em(Cl("/sealdice-manual-next/")),routes:wm(),scrollBehavior:(t,n,r)=>r||(t.hash?{el:t.hash}:{top:0})});return e.beforeResolve(async(t,n)=>{var r;(t.path!==n.path||n===Ct)&&([t.meta._data]=await Promise.all([xt.resolvePageData(t.name),(r=bi[t.name])==null?void 0:r.__asyncLoader()]))}),e},xm=e=>{e.component("ClientOnly",to),e.component("Content",Li)},Cm=(e,t,n)=>{const r=ea(()=>t.currentRoute.value.path),o=ea(()=>xt.resolveRouteLocale(mn.value.locales,r.value)),l=qh(r,()=>t.currentRoute.value.meta._data),s=k(()=>xt.resolveLayouts(n)),a=k(()=>xt.resolveSiteLocaleData(mn.value,o.value)),i=k(()=>xt.resolvePageFrontmatter(l.value)),c=k(()=>xt.resolvePageHeadTitle(l.value,a.value)),f=k(()=>xt.resolvePageHead(c.value,i.value,a.value)),d=k(()=>xt.resolvePageLang(l.value,a.value)),p=k(()=>xt.resolvePageLayout(l.value,s.value));return e.provide(ep,s),e.provide(yi,l),e.provide(_i,i),e.provide(rp,c),e.provide(wi,f),e.provide(Ei,d),e.provide(xi,p),e.provide(kl,o),e.provide(ki,a),Object.defineProperties(e.config.globalProperties,{$frontmatter:{get:()=>i.value},$head:{get:()=>f.value},$headTitle:{get:()=>c.value},$lang:{get:()=>d.value},$page:{get:()=>l.value},$routeLocale:{get:()=>o.value},$site:{get:()=>mn.value},$siteLocale:{get:()=>a.value},$withBase:{get:()=>He}}),{layouts:s,pageData:l,pageFrontmatter:i,pageHead:f,pageHeadTitle:c,pageLang:d,pageLayout:p,routeLocale:o,siteData:mn,siteLocaleData:a}},km=()=>{const e=np(),t=Ti(),n=X([]),r=()=>{e.value.forEach(l=>{const s=Lm(l);s&&n.value.push(s)})},o=()=>{document.documentElement.lang=t.value,n.value.forEach(l=>{l.parentNode===document.head&&document.head.removeChild(l)}),n.value.splice(0,n.value.length),e.value.forEach(l=>{const s=Sm(l);s!==null&&(document.head.appendChild(s),n.value.push(s))})};on(sp,o),me(()=>{r(),o(),se(()=>e.value,o)})},Lm=([e,t,n=""])=>{const r=Object.entries(t).map(([a,i])=>fe(i)?`[${a}=${JSON.stringify(i)}]`:i===!0?`[${a}]`:"").join(""),o=`head > ${e}${r}`;return Array.from(document.querySelectorAll(o)).find(a=>a.innerText===n)||null},Sm=([e,t,n])=>{if(!fe(e))return null;const r=document.createElement(e);return xl(t)&&Object.entries(t).forEach(([o,l])=>{fe(l)?r.setAttribute(o,l):l===!0&&r.setAttribute(o,"")}),fe(n)&&r.appendChild(document.createTextNode(n)),r},Am=jd,Pm=async()=>{var n;const e=Am({name:"VuepressApp",setup(){var r;km();for(const o of Rr)(r=o.setup)==null||r.call(o);return()=>[u(Hi),...Rr.flatMap(({rootComponents:o=[]})=>o.map(l=>u(l)))]}}),t=Tm();xm(e),Cm(e,t,Rr);for(const r of Rr)await((n=r.enhance)==null?void 0:n.call(r,{app:e,router:t,siteData:mn}));return e.use(t),{app:e,router:t}};Pm().then(({app:e,router:t})=>{t.isReady().then(()=>{e.mount("#app")})});export{Q0 as A,Ze as B,me as C,Mn as D,fe as E,Mm as F,xl as G,Wl as H,n1 as I,sm as O,om as R,zl as Z,O as _,li as a,xe as b,Rm as c,Pm as createVueApp,si as d,Im as e,Om as f,K as g,Ye as h,qt as i,Kl as j,X as k,k as l,Ie as m,se as n,Yf as o,u as p,em as q,ft as r,nm as s,Zr as t,$m as u,Z0 as v,df as w,lu as x,tm as y,J0 as z}; diff --git a/assets/arc-3e498105.js b/assets/arc-3e498105.js new file mode 100644 index 000000000..e317acb84 --- /dev/null +++ b/assets/arc-3e498105.js @@ -0,0 +1 @@ +import{w as ln,c as U}from"./path-53f90ab3.js";import{aP as an,aQ as Y,aR as S,aS as rn,aT as y,aL as on,aU as z,aV as _,aW as un,aX as t,aY as sn,aZ as tn,a_ as fn}from"./mermaid.core-d8bc71ff.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,E,q,v,R,V,a){var I=E-l,i=q-h,n=V-v,m=a-R,r=m*I-n*i;if(!(r*ru*u+X*X&&(O=w,Q=d),{cx:O,cy:Q,x01:-n,y01:-m,x11:O*(v/T-1),y11:Q*(v/T-1)}}function vn(){var l=cn,h=yn,E=U(0),q=null,v=gn,R=mn,V=pn,a=null,I=ln(i);function i(){var n,m,r=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-rn,c=R.apply(this,arguments)-rn,W=un(c-f),o=c>f;if(a||(a=n=I()),sy))a.moveTo(0,0);else if(W>on-y)a.moveTo(s*Y(f),s*S(f)),a.arc(0,0,s,f,c,!o),r>y&&(a.moveTo(r*Y(c),r*S(c)),a.arc(0,0,r,c,f,o));else{var p=f,g=c,A=f,T=c,P=W,L=W,O=V.apply(this,arguments)/2,Q=O>y&&(q?+q.apply(this,arguments):z(r*r+s*s)),w=_(un(s-r)/2,+E.apply(this,arguments)),d=w,x=w,e,u;if(Q>y){var X=sn(Q/r*S(O)),B=sn(Q/s*S(O));(P-=X*2)>y?(X*=o?1:-1,A+=X,T-=X):(P=0,A=T=(f+c)/2),(L-=B*2)>y?(B*=o?1:-1,p+=B,g-=B):(L=0,p=g=(f+c)/2)}var Z=s*Y(p),j=s*S(p),C=r*Y(T),F=r*S(T);if(w>y){var G=s*Y(g),H=s*S(g),K=r*Y(A),M=r*S(A),D;if(Wy?x>y?(e=J(K,M,Z,j,s,x,o),u=J(G,H,C,F,s,x,o),a.moveTo(e.cx+e.x01,e.cy+e.y01),xy)||!(P>y)?a.lineTo(C,F):d>y?(e=J(C,F,G,H,r,-d,o),u=J(Z,j,K,M,r,-d,o),a.lineTo(e.cx+e.x01,e.cy+e.y01),d 属性同义词

本节内容

本节将介绍海豹在 CoC 和 D&D 规则中默认使用的同义词。

概念说明

属性同义词是在录入和存储角色数据时,将若干个属性名视为同一个属性、互相可以替代使用。

这一设计是为了解决下面这样的问题:(由于笔者的游戏栈,使用 CoC 举例)

场景举例

用户可能使用某些自动工具创建了一名调查员,由工具生成了录入数据的指令。这指令可能包含了类似这样的内容:

.st 力量50str50
+

我们知道,「str」是「力量」属性的英文缩写法,它们完全指代的是同一属性。

因此,我们期待这样的指令实际只录入一条属性,但是用户仍然可以用「力量」或「str」的任何一个名字使用这一属性。

$ .st 力量50str50
+<木落>的属性录入完成,本次共记录了2条数据 (其中1条为同义词)
+
+# 实际上只有一条属性
+$ .st show
+<木落>的个人属性为:力量: 50
+
+# 可以用各种名字使用
+$ .ra 力量
+<木落>尝试使用"力量"技能:D100=64/50 失败
+$ .ra STR
+<木落>尝试使用"力量"技能:D100=78/50 失败
+
+# 可以用各种名字修改
+$ .st str+10
+<木落>的属性变化:
+力量: 50 ➯ 60 (增加10=10)
+$ .ra 力量
+<木落>尝试使用"力量"技能:D100=90/60 失败
+

类似地,在 CoC 中,「智力」与「灵感」是规则书规定的同一属性的两个名字。它们也被视为同义词。

一些分支专精技能的名字,如「冲锋枪」,我们将「射击:冲锋枪」作为它的同义词,以适配尽量多的用法。

我们在选择同义词时遵循以下几条原则:

  1. 规定的同义词等价,如 智力灵感教育知识
  2. 中文和英文缩写等价,如 力量str
  3. 同一概念的不同常用称呼等价,如 理智理智值,根据原则 2,sansan值 也指向同一属性;
  4. 日常用语中基本等价且易混淆的词汇等价,如 侦查侦察
  5. 不同版本规则之间的同一技能更换了用词,或翻译有变化,这些名字等价;如 CoC 6 版的 快速交谈 与 7 版的 话术;又如 7 版的 魅惑取悦
  6. 简体与繁体字等价,如 体质體質
  7. 在玩家中广泛使用的简称、别称与其正式名称等价,如 克苏鲁神话克苏鲁克苏鲁神话知识

同义词表

为了确保你不会获取到过时内容,我们决定不将列表放在手册中,敬请理解。

这些同义词都是符合直觉的,你通常也无需专门查阅列表。如果你确实想了解,请参考以下内容。

`,11),u={href:"https://github.com/sealdice/sealdice-core/blob/master/dice/ext_coc7_template.go",target:"_blank",rel:"noopener noreferrer"},p=a(`
  • D&D 规则的同义词可在骰子启动后,在本地文件 data/default/extensions/dnd5e/attribute.yaml 中查看。

    这个文件遵守以下格式。其中,ac 位置上的名字是海豹核心选用的主要名字,后续列出的是它的同义词。

    alias:
    +    ac:
    +        - AC
    +        - 护甲等级
    +        - 护甲值
    +        - 护甲
    +        - 護甲等級
    +        - 護甲值
    +        - 護甲
    +        - 装甲
    +        - 裝甲
    +
  • `,1);function v(m,b){const s=d("ExternalLinkIcon");return l(),c("div",null,[r,e("ul",null,[e("li",null,[e("p",null,[n("CoC 规则的同义词,请自行理解 "),e("a",u,[n("此源文件"),t(s)]),n(" 的内容。")])]),p])])}const g=i(o,[["render",v],["__file","attribute_alias.html.vue"]]);export{g as default}; diff --git a/assets/attribute_alias.html-da518306.js b/assets/attribute_alias.html-da518306.js new file mode 100644 index 000000000..6446f1355 --- /dev/null +++ b/assets/attribute_alias.html-da518306.js @@ -0,0 +1 @@ +const e=JSON.parse('{"key":"v-7acffd8d","path":"/use/attribute_alias.html","title":"属性同义词","lang":"zh-cn","frontmatter":{"lang":"zh-cn","title":"属性同义词","description":"本节内容 本节将介绍海豹在 CoC 和 D&D 规则中默认使用的同义词。 概念说明 属性同义词是在录入和存储角色数据时,将若干个属性名视为同一个属性、互相可以替代使用。 这一设计是为了解决下面这样的问题:(由于笔者的游戏栈,使用 CoC 举例) 场景举例 用户可能使用某些自动工具创建了一名调查员,由工具生成了录入数据的指令。这指令可能包含了类似这样的内...","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/use/attribute_alias.html"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"属性同义词"}],["meta",{"property":"og:description","content":"本节内容 本节将介绍海豹在 CoC 和 D&D 规则中默认使用的同义词。 概念说明 属性同义词是在录入和存储角色数据时,将若干个属性名视为同一个属性、互相可以替代使用。 这一设计是为了解决下面这样的问题:(由于笔者的游戏栈,使用 CoC 举例) 场景举例 用户可能使用某些自动工具创建了一名调查员,由工具生成了录入数据的指令。这指令可能包含了类似这样的内..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-cn"}],["meta",{"property":"og:updated_time","content":"2023-11-01T05:34:52.000Z"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-11-01T05:34:52.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"属性同义词\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2023-11-01T05:34:52.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[{"level":2,"title":"概念说明","slug":"概念说明","link":"#概念说明","children":[]},{"level":2,"title":"同义词表","slug":"同义词表","link":"#同义词表","children":[]}],"git":{"createdTime":1698406713000,"updatedTime":1698816892000,"contributors":[{"name":"Xiangze Li","email":"lee_johnson@qq.com","commits":2}]},"readingTime":{"minutes":2.91,"words":872},"filePathRelative":"use/attribute_alias.md","localizedDate":"2023年10月27日","autoDesc":true,"excerpt":""}');export{e as data}; diff --git a/assets/ban-add-in-ui-2932183d.png b/assets/ban-add-in-ui-2932183d.png new file mode 100644 index 000000000..f373a72e6 Binary files /dev/null and b/assets/ban-add-in-ui-2932183d.png differ diff --git a/assets/ban-config-d0ff8a43.png b/assets/ban-config-d0ff8a43.png new file mode 100644 index 000000000..20e58d65b Binary files /dev/null and b/assets/ban-config-d0ff8a43.png differ diff --git a/assets/ban-ui-3f1a3f77.png b/assets/ban-ui-3f1a3f77.png new file mode 100644 index 000000000..1f4e7cb29 Binary files /dev/null and b/assets/ban-ui-3f1a3f77.png differ diff --git a/assets/ban.html-043c1e02.js b/assets/ban.html-043c1e02.js new file mode 100644 index 000000000..ca203931a --- /dev/null +++ b/assets/ban.html-043c1e02.js @@ -0,0 +1 @@ +const e=JSON.parse('{"key":"v-3614fa3e","path":"/config/ban.html","title":"黑白名单","lang":"zh-cn","frontmatter":{"lang":"zh-cn","title":"黑白名单","description":"本节内容 本节将介绍黑白名单的设置,请善用侧边栏和搜索,按需阅读文档。 如何设置黑白名单? 黑白名单是骰子拉黑/豁免的用户/群的列表。来源可能是骰主在后台设置的,也可能是因为触发了某些自动规则添加的。 黑白名单 点击海豹 UI 界面的「综合设置 - 黑白名单」选项,你就可以进入黑白名单管理页面。 添加黑白名单 UI 手动添加 点击「添加」按钮,可在后台...","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/config/ban.html"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"黑白名单"}],["meta",{"property":"og:description","content":"本节内容 本节将介绍黑白名单的设置,请善用侧边栏和搜索,按需阅读文档。 如何设置黑白名单? 黑白名单是骰子拉黑/豁免的用户/群的列表。来源可能是骰主在后台设置的,也可能是因为触发了某些自动规则添加的。 黑白名单 点击海豹 UI 界面的「综合设置 - 黑白名单」选项,你就可以进入黑白名单管理页面。 添加黑白名单 UI 手动添加 点击「添加」按钮,可在后台..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:image","content":"http://localhost:8080/sealdice-manual-next/"}],["meta",{"property":"og:locale","content":"zh-cn"}],["meta",{"property":"og:updated_time","content":"2023-10-29T17:01:34.000Z"}],["meta",{"name":"twitter:card","content":"summary_large_image"}],["meta",{"name":"twitter:image:alt","content":"黑白名单"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-10-29T17:01:34.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"黑白名单\\",\\"image\\":[\\"http://localhost:8080/sealdice-manual-next/\\"],\\"dateModified\\":\\"2023-10-29T17:01:34.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[{"level":2,"title":"如何设置黑白名单?","slug":"如何设置黑白名单","link":"#如何设置黑白名单","children":[]},{"level":2,"title":"添加黑白名单","slug":"添加黑白名单","link":"#添加黑白名单","children":[{"level":3,"title":"UI 手动添加","slug":"ui-手动添加","link":"#ui-手动添加","children":[]},{"level":3,"title":"指令添加","slug":"指令添加","link":"#指令添加","children":[]},{"level":3,"title":"自动添加","slug":"自动添加","link":"#自动添加","children":[]}]},{"level":2,"title":"黑白名单设置","slug":"黑白名单设置","link":"#黑白名单设置","children":[]}],"git":{"createdTime":1698157880000,"updatedTime":1698598894000,"contributors":[{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":2}]},"readingTime":{"minutes":1.39,"words":417},"filePathRelative":"config/ban.md","localizedDate":"2023年10月24日","autoDesc":true,"excerpt":""}');export{e as data}; diff --git a/assets/ban.html-69ffcc8a.js b/assets/ban.html-69ffcc8a.js new file mode 100644 index 000000000..7171f3056 --- /dev/null +++ b/assets/ban.html-69ffcc8a.js @@ -0,0 +1 @@ +import{_ as s}from"./plugin-vue_export-helper-c27b6911.js";import{r as o,o as d,c as l,a,d as e,b as t,w as n,e as r}from"./app-d2f9e1e0.js";const c="/sealdice-manual-next/assets/ban-ui-3f1a3f77.png",h="/sealdice-manual-next/assets/ban-add-in-ui-2932183d.png",u="/sealdice-manual-next/assets/ban-config-d0ff8a43.png",p={},f=r('

    黑白名单

    本节内容

    本节将介绍黑白名单的设置,请善用侧边栏和搜索,按需阅读文档。

    如何设置黑白名单?

    黑白名单是骰子拉黑/豁免的用户/群的列表。来源可能是骰主在后台设置的,也可能是因为触发了某些自动规则添加的。

    黑白名单
    黑白名单

    点击海豹 UI 界面的「综合设置 - 黑白名单」选项,你就可以进入黑白名单管理页面。

    添加黑白名单

    UI 手动添加

    点击「添加」按钮,可在后台手动添加黑(白)名单。

    UI 手动添加黑白名单
    UI 手动添加黑白名单

    指令添加

    ',11),_=a("h3",{id:"自动添加",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#自动添加","aria-hidden":"true"},"#"),e(" 自动添加")],-1),g=a("p",null,"触发某些自动规则时,可能会自动添加用户进黑名单,如:",-1),m=a("li",null,"刷屏、禁言骰子、踢骰等",-1),x=a("li",null,"怒气值超过拉黑阈值",-1),b=r('

    黑白名单设置

    点开「设置选项」,可以对黑白名单进行一些设置。

    黑白名单设置
    黑白名单设置

    黑名单惩罚:

    • 拒绝回复:骰子不回复黑名单用户;
    • 拒绝邀请:骰子自动拒绝黑名单用户的邀请;
    • 退出事发群:比如禁言骰子触发了黑名单事件,会退出禁言的事发群;
    • 使用时立即退出群:有黑名单用户在其他群尝试使用骰子时,骰子会立即退群。

    连带责任:当有用户触发黑名单事件时,对应的群组和邀请人会按 设置的比例 增加怒气值。

    ',6);function v(k,I){const i=o("RouterLink");return d(),l("div",null,[f,a("p",null,[e("见 "),t(i,{to:"/use/core.html"},{default:n(()=>[e("使用 - 核心指令")]),_:1}),e("。")]),_,g,a("ul",null,[m,a("li",null,[t(i,{to:"/config/censor.html"},{default:n(()=>[e("触发敏感词拦截")]),_:1})]),x]),b])}const V=s(p,[["render",v],["__file","ban.html.vue"]]);export{V as default}; diff --git a/assets/c4Diagram-7ff6304f-1a25bab8.js b/assets/c4Diagram-7ff6304f-1a25bab8.js new file mode 100644 index 000000000..df14a9b49 --- /dev/null +++ b/assets/c4Diagram-7ff6304f-1a25bab8.js @@ -0,0 +1,10 @@ +import{s as Ce,g as we,a as Oe,b as Te,c as Dt,d as ue,e as Re,f as wt,h as Nt,l as le,i as De,w as Se,j as Kt,k as oe,m as Pe}from"./mermaid.core-d8bc71ff.js";import{d as Me,g as Le}from"./svgDrawCommon-057d45d0-b7474b9e.js";import"./app-d2f9e1e0.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;ux[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.sanitizeUrl(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=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&&al?p=new B(a,r):a==l&&oi&&(p=new B(s,o)),a>l&&o=f?p=new B(a,r+f*e.width/2):p=new B(s-n/h*e.height/2,o+e.height):a=f?p=new B(a+e.width,r+f*e.width/2):p=new B(s+n/h*e.height/2,o+e.height):ai?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,S0={parser:Ne,db:Jt,renderer:he,styles:O0,init:({c4:e,wrap:t})=>{he.setConf(e),Jt.setWrap(t)}};export{S0 as diagram}; diff --git a/assets/censor-config1-b3dc84e2.png b/assets/censor-config1-b3dc84e2.png new file mode 100644 index 000000000..7d66bf967 Binary files /dev/null and b/assets/censor-config1-b3dc84e2.png differ diff --git a/assets/censor-config2-42751169.png b/assets/censor-config2-42751169.png new file mode 100644 index 000000000..2e5185b40 Binary files /dev/null and b/assets/censor-config2-42751169.png differ diff --git a/assets/censor-log-564aea44.png b/assets/censor-log-564aea44.png new file mode 100644 index 000000000..a0d69cbe2 Binary files /dev/null and b/assets/censor-log-564aea44.png differ diff --git a/assets/censor-ui-650fc106.png b/assets/censor-ui-650fc106.png new file mode 100644 index 000000000..434bc8ede Binary files /dev/null and b/assets/censor-ui-650fc106.png differ diff --git a/assets/censor-words-ae4324c2.png b/assets/censor-words-ae4324c2.png new file mode 100644 index 000000000..6ff1cd214 Binary files /dev/null and b/assets/censor-words-ae4324c2.png differ diff --git a/assets/censor.html-8d1ce9b5.js b/assets/censor.html-8d1ce9b5.js new file mode 100644 index 000000000..834a66bd8 --- /dev/null +++ b/assets/censor.html-8d1ce9b5.js @@ -0,0 +1 @@ +import{_ as c}from"./plugin-vue_export-helper-c27b6911.js";import{r as s,o as r,c as d,a,d as e,b as t,w as n,e as o}from"./app-d2f9e1e0.js";const l="/sealdice-manual-next/assets/censor-ui-650fc106.png",h="/sealdice-manual-next/assets/censor-config1-b3dc84e2.png",p="/sealdice-manual-next/assets/censor-config2-42751169.png",u="/sealdice-manual-next/assets/censor-words-ae4324c2.png",f="/sealdice-manual-next/assets/censor-log-564aea44.png",g={},_=o('

    拦截

    本节内容

    本节将介绍拦截功能和相关设置,请善用侧边栏和搜索,按需阅读文档。

    什么是拦截功能?

    • 我不希望我的骰子被用来跑粉红团,如何避免?

    • 发生了超过普通人类认知的离谱事情,如何设置骰子收到了某些词语时自动拦截掉这些用户?

    • ……

    「拦截管理」提供检查骰子收到的消息内容中是否有敏感词汇,命中时进行相应处理的能力。

    点击海豹 UI 界面的「扩展功能 - 拦截管理」选项,你就可以进入拦截管理页面。

    拦截管理
    拦截管理

    如果显示未启用的话,点击左上角开关来启用拦截。

    配置拦截

    拦截设置主要分为两部分:「匹配选项」,即设置拦截什么样的消息;「响应设置」,即命中敏感词后要如何处理。下面我们将一一介绍。

    匹配选项

    匹配选项
    匹配选项

    匹配选项中最重要的设置就是 「拦截范围」,这个选项决定了什么范围的内容会进行拦截检查。

    • 发出的消息:拦截骰子发出的消息文本(包括指令回复和自定义回复,总之所有骰子发的内容)进行检查
    • 收到的指令:拦截骰子收到的命令文本进行检查,如收到「.rd 进行一次骰点」时,会检查其中的「进行一次骰点」,不受 bot off 影响
    • 收到的所有消息:拦截骰子收到的所有消息进行检查,包括不以 . 等开头的消息,不受 bot off 影响

    其余选项可以参看对应的提示,悬浮在问号上即可看见对应帮助。

    响应设置

    海豹核心的敏感词主要分为四个等级:提醒 注意 警告 危险,程度依次升高。你可以对不同等级的处理方式做不同的设置。

    当消息命中敏感词的时候,将取命中词汇中的 最高等级 作为处理等级。当同一个用户触发同一等级的次数超过对应设置时,将进行对应等级配置的操作,同时清空用户该等级的计数,重新计算。

    匹配设置
    匹配设置
    ',19),m=a("li",null,"发送警告:会向触发用户发送警告信息;",-1),x=a("li",null,"通知 Master:会通知骰主;",-1),b=o('

    敏感词管理

    将标签页切换到「敏感词管理」,可以看到如下的两个列表:「词库列表」和「敏感词列表」。

    页面中也提供了相应的帮助信息,可以点开查看。

    敏感词管理
    敏感词管理

    敏感词库通常为 txttoml 格式的文件,通过「导入」按钮可以导入多个词库,词库同时生效,其中重复的词取设置的最高等级。导入后点击「重载拦截」按钮以生效变更。

    为什么没有默认的敏感词库?

    「当你在凝视深渊的时候,深渊也正在凝视着你。」

    敏感词库本身属于敏感信息,故海豹官方不提供默认的敏感词库。

    下方的敏感词列表会展示当前加载的敏感词,如果设置中勾选了「匹配拼音」,也会将实际去匹配的拼音展示出来。

    查看拦截日志

    在「拦截日志」标签页,你可以看到在何时、何地、哪个用户触发了什么等级的敏感词,具体的内容是什么。

    拦截日志
    拦截日志

    如何让用户/群豁免检查?

    ',11),v=a("h2",{id:"如何编写敏感词库",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#如何编写敏感词库","aria-hidden":"true"},"#"),e(" 如何编写敏感词库?")],-1),k=a("p",null,"在「敏感词管理」标签页,提供了词库模板的下载。",-1);function w(y,z){const i=s("RouterLink");return r(),d("div",null,[_,a("ul",null,[m,x,a("li",null,[e("拉黑用户/群/邀请人,增加怒气值:拉黑和怒气值机制,见 "),t(i,{to:"/config/ban.html"},{default:n(()=>[e("黑白名单")]),_:1}),e("。")])]),b,a("p",null,[e("给用户/群配置白名单,即可豁免检查。设置白名单见 "),t(i,{to:"/config/ban.html"},{default:n(()=>[e("黑白名单")]),_:1}),e("。")]),v,k,a("p",null,[e("具体的编写帮助见 "),t(i,{to:"/advanced/edit_sensitive_words.html"},{default:n(()=>[e("进阶 - 编写敏感词库")]),_:1}),e("。")])])}const V=c(g,[["render",w],["__file","censor.html.vue"]]);export{V as default}; diff --git a/assets/censor.html-cd0a1880.js b/assets/censor.html-cd0a1880.js new file mode 100644 index 000000000..298863083 --- /dev/null +++ b/assets/censor.html-cd0a1880.js @@ -0,0 +1 @@ +const e=JSON.parse('{"key":"v-645298bb","path":"/config/censor.html","title":"拦截","lang":"zh-cn","frontmatter":{"lang":"zh-cn","title":"拦截","description":"本节内容 本节将介绍拦截功能和相关设置,请善用侧边栏和搜索,按需阅读文档。 什么是拦截功能? - 我不希望我的骰子被用来跑粉红团,如何避免? - 发生了超过普通人类认知的离谱事情,如何设置骰子收到了某些词语时自动拦截掉这些用户? - …… 「拦截管理」提供检查骰子收到的消息内容中是否有敏感词汇,命中时进行相应处理的能力。 点击海豹 UI 界面的「扩展功...","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/config/censor.html"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"拦截"}],["meta",{"property":"og:description","content":"本节内容 本节将介绍拦截功能和相关设置,请善用侧边栏和搜索,按需阅读文档。 什么是拦截功能? - 我不希望我的骰子被用来跑粉红团,如何避免? - 发生了超过普通人类认知的离谱事情,如何设置骰子收到了某些词语时自动拦截掉这些用户? - …… 「拦截管理」提供检查骰子收到的消息内容中是否有敏感词汇,命中时进行相应处理的能力。 点击海豹 UI 界面的「扩展功..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:image","content":"http://localhost:8080/sealdice-manual-next/"}],["meta",{"property":"og:locale","content":"zh-cn"}],["meta",{"property":"og:updated_time","content":"2023-10-29T17:01:34.000Z"}],["meta",{"name":"twitter:card","content":"summary_large_image"}],["meta",{"name":"twitter:image:alt","content":"拦截"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-10-29T17:01:34.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"拦截\\",\\"image\\":[\\"http://localhost:8080/sealdice-manual-next/\\"],\\"dateModified\\":\\"2023-10-29T17:01:34.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[{"level":2,"title":"什么是拦截功能?","slug":"什么是拦截功能","link":"#什么是拦截功能","children":[]},{"level":2,"title":"配置拦截","slug":"配置拦截","link":"#配置拦截","children":[{"level":3,"title":"匹配选项","slug":"匹配选项","link":"#匹配选项","children":[]},{"level":3,"title":"响应设置","slug":"响应设置","link":"#响应设置","children":[]}]},{"level":2,"title":"敏感词管理","slug":"敏感词管理","link":"#敏感词管理","children":[]},{"level":2,"title":"查看拦截日志","slug":"查看拦截日志","link":"#查看拦截日志","children":[]},{"level":2,"title":"如何让用户/群豁免检查?","slug":"如何让用户-群豁免检查","link":"#如何让用户-群豁免检查","children":[]},{"level":2,"title":"如何编写敏感词库?","slug":"如何编写敏感词库","link":"#如何编写敏感词库","children":[]}],"git":{"createdTime":1698059111000,"updatedTime":1698598894000,"contributors":[{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":4}]},"readingTime":{"minutes":3.41,"words":1024},"filePathRelative":"config/censor.md","localizedDate":"2023年10月23日","autoDesc":true,"excerpt":""}');export{e as data}; diff --git a/assets/classDiagram-04f04946-4e8d9603.js b/assets/classDiagram-04f04946-4e8d9603.js new file mode 100644 index 000000000..62f31fb62 --- /dev/null +++ b/assets/classDiagram-04f04946-4e8d9603.js @@ -0,0 +1,2 @@ +import{p as $,d as S,s as A}from"./styles-8b67d7cb-2a1933f6.js";import{c as v,l as y,h as B,i as G,ao as W,y as M,ar as I}from"./mermaid.core-d8bc71ff.js";import{G as O,l as P}from"./layout-58f7ec6d.js";import{l as X}from"./line-e21175d5.js";import"./app-d2f9e1e0.js";import"./array-9f3ba611.js";import"./path-53f90ab3.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(W),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=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 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;G(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},tt={parser:$,db:S,renderer:U,styles:A,init:i=>{i.class||(i.class={}),i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,S.clear()}};export{tt as diagram}; diff --git a/assets/classDiagram-v2-d4efdcc3-1154b70e.js b/assets/classDiagram-v2-d4efdcc3-1154b70e.js new file mode 100644 index 000000000..bdc91b292 --- /dev/null +++ b/assets/classDiagram-v2-d4efdcc3-1154b70e.js @@ -0,0 +1,2 @@ +import{p as I,d as N,s as M}from"./styles-8b67d7cb-2a1933f6.js";import{l as d,c,h as w,y as R,t as B,r as E,o as _,p as G,j as C}from"./mermaid.core-d8bc71ff.js";import{G as z}from"./layout-58f7ec6d.js";import{r as P}from"./index-f9462f3f-9287aadd.js";import"./app-d2f9e1e0.js";import"./edges-f15a7e05-a8484ad2.js";import"./createText-80c3befb-7196e989.js";import"./line-e21175d5.js";import"./array-9f3ba611.js";import"./path-53f90ab3.js";const S=s=>C.sanitizeText(s,c());let k={dividerMargin:10,padding:5,textHeight:10,curve:void 0};const q=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),A(l.classes,t,y,n,l.id),d.info("setNode",p)})},A=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={labelStyle:"",style:""},m=a.label??a.id,b=0,h="class_box",u={labelStyle:f.labelStyle,shape:h,labelText:S(m),classData:a,rx:b,ry:b,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,u),e&&t.setParent(a.id,e),d.info("setNode",u)})},F=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,m=0,b="note",h={labelStyle:p.labelStyle,shape:b,labelText:S(f),noteData:l,rx:m,ry:m,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,h),d.info("setNode",h),!l.class||!(l.class in n))return;const u=y+i,g={id:`edgeNote${u}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:E(k.curve,_)};t.setEdge(l.id,l.class,g,u)})},H=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"+n,arrowhead:e.type==="arrow_open"?"none":"normal",startLabelRight:e.relationTitle1==="none"?"":e.relationTitle1,endLabelLeft:e.relationTitle2==="none"?"":e.relationTitle2,arrowTypeStart:D(e.relation.type1),arrowTypeEnd:D(e.relation.type2),style:"fill:none",labelStyle:"",curve:E(y==null?void 0:y.curve,_)};if(d.info(o,e),e.style!==void 0){const r=G(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=''+e.text+""):(o.labelType="text",o.label=e.text.replace(C.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)})},V=function(s){k={...k,...s}},W=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(),m=n.db.getNotes();d.info(f),q(a,l,t,n),A(p,l,t,n),H(f,l),F(m,l,f.length+1,p);let b;i==="sandbox"&&(b=w("#i"+t));const h=i==="sandbox"?w(b.nodes()[0].contentDocument.body):w("body"),u=h.select(`[id="${t}"]`),g=h.select("#"+t+" g");if(await P(g,l,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",t),R.insertTitle(u,"classTitleText",(e==null?void 0:e.titleTopMargin)??5,n.db.getDiagramTitle()),B(l,u,e==null?void 0:e.diagramPadding,e==null?void 0:e.useMaxWidth),!(e!=null&&e.htmlLabels)){const T=i==="sandbox"?b.nodes()[0].contentDocument:document,$=T.querySelectorAll('[id="'+t+'"] .edgeLabel .label');for(const x of $){const L=x.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),x.insertBefore(v,x.firstChild)}}};function D(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 J={setConf:V,draw:W},oe={parser:I,db:N,renderer:J,styles:M,init:s=>{s.class||(s.class={}),s.class.arrowMarkerAbsolute=s.arrowMarkerAbsolute,N.clear()}};export{oe as diagram}; diff --git a/assets/coc7.html-0800e237.js b/assets/coc7.html-0800e237.js new file mode 100644 index 000000000..16b08db17 --- /dev/null +++ b/assets/coc7.html-0800e237.js @@ -0,0 +1 @@ +const l=JSON.parse('{"key":"v-ccf9e350","path":"/use/coc7.html","title":"克苏鲁的呼唤 7 版","lang":"zh-cn","frontmatter":{"lang":"zh-cn","title":"克苏鲁的呼唤 7 版","description":"本节内容 本节将展示 CoC 7th 玩家所需指令,请善用侧边栏和搜索,按需阅读文档。 我们假定你已对 CoC 规则有适当了解,本节只涉及如何使用海豹核心完成规则中指定的操作。 克苏鲁的呼唤 「克苏鲁的呼唤」(Call of Cthulhu)是一个充满了秘密、神秘和恐怖的游戏。你将扮演一位坚定的侦探,奔波在奇怪而危险的场所之间,揭开邪恶的阴谋,对抗暗夜...","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/use/coc7.html"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"克苏鲁的呼唤 7 版"}],["meta",{"property":"og:description","content":"本节内容 本节将展示 CoC 7th 玩家所需指令,请善用侧边栏和搜索,按需阅读文档。 我们假定你已对 CoC 规则有适当了解,本节只涉及如何使用海豹核心完成规则中指定的操作。 克苏鲁的呼唤 「克苏鲁的呼唤」(Call of Cthulhu)是一个充满了秘密、神秘和恐怖的游戏。你将扮演一位坚定的侦探,奔波在奇怪而危险的场所之间,揭开邪恶的阴谋,对抗暗夜..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-cn"}],["meta",{"property":"og:updated_time","content":"2023-11-01T05:52:34.000Z"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-11-01T05:52:34.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"克苏鲁的呼唤 7 版\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2023-11-01T05:52:34.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[{"level":2,"title":".st 操作人物卡","slug":"st-操作人物卡","link":"#st-操作人物卡","children":[{"level":3,"title":".st help 获取帮助信息","slug":"st-help-获取帮助信息","link":"#st-help-获取帮助信息","children":[]},{"level":3,"title":"列出属性","slug":"列出属性","link":"#列出属性","children":[]},{"level":3,"title":"删除属性","slug":"删除属性","link":"#删除属性","children":[]},{"level":3,"title":"设定属性值","slug":"设定属性值","link":"#设定属性值","children":[]},{"level":3,"title":"更新属性值","slug":"更新属性值","link":"#更新属性值","children":[]},{"level":3,"title":"设定计算表达式","slug":"设定计算表达式","link":"#设定计算表达式","children":[]},{"level":3,"title":"导出属性值","slug":"导出属性值","link":"#导出属性值","children":[]},{"level":3,"title":"代骰","slug":"代骰","link":"#代骰","children":[]}]},{"level":2,"title":".ra/.rc 检定","slug":"ra-rc-检定","link":"#ra-rc-检定","children":[{"level":3,"title":"进行检定","slug":"进行检定","link":"#进行检定","children":[]},{"level":3,"title":"多轮检定","slug":"多轮检定","link":"#多轮检定","children":[]},{"level":3,"title":"要求一定难度的检定","slug":"要求一定难度的检定","link":"#要求一定难度的检定","children":[]},{"level":3,"title":"奖励骰和惩罚骰","slug":"奖励骰和惩罚骰","link":"#奖励骰和惩罚骰","children":[]},{"level":3,"title":"代骰","slug":"代骰-1","link":"#代骰-1","children":[]},{"level":3,"title":"以上功能可以组合使用","slug":"以上功能可以组合使用","link":"#以上功能可以组合使用","children":[]}]},{"level":2,"title":".rah/.rch 暗中检定","slug":"rah-rch-暗中检定","link":"#rah-rch-暗中检定","children":[{"level":3,"title":"代骰","slug":"代骰-2","link":"#代骰-2","children":[]}]},{"level":2,"title":".rav/.rcv 对抗检定","slug":"rav-rcv-对抗检定","link":"#rav-rcv-对抗检定","children":[{"level":3,"title":"使用相同技能对抗","slug":"使用相同技能对抗","link":"#使用相同技能对抗","children":[]},{"level":3,"title":"使用不同技能对抗","slug":"使用不同技能对抗","link":"#使用不同技能对抗","children":[]},{"level":3,"title":"指定两个其他人对抗","slug":"指定两个其他人对抗","link":"#指定两个其他人对抗","children":[]}]},{"level":2,"title":".sc 理智检定","slug":"sc-理智检定","link":"#sc-理智检定","children":[{"level":3,"title":"指定损失的理智","slug":"指定损失的理智","link":"#指定损失的理智","children":[]},{"level":3,"title":"简略写法","slug":"简略写法","link":"#简略写法","children":[]},{"level":3,"title":"奖励骰和惩罚骰","slug":"奖励骰和惩罚骰-1","link":"#奖励骰和惩罚骰-1","children":[]},{"level":3,"title":"代骰","slug":"代骰-3","link":"#代骰-3","children":[]}]},{"level":2,"title":".ti/.li 疯狂发作症状","slug":"ti-li-疯狂发作症状","link":"#ti-li-疯狂发作症状","children":[]},{"level":2,"title":".en 技能成长","slug":"en-技能成长","link":"#en-技能成长","children":[{"level":3,"title":"进行技能成长","slug":"进行技能成长","link":"#进行技能成长","children":[]},{"level":3,"title":"指定成长值","slug":"指定成长值","link":"#指定成长值","children":[]}]},{"level":2,"title":".coc 生成随机属性(制卡)","slug":"coc-生成随机属性-制卡","link":"#coc-生成随机属性-制卡","children":[]},{"level":2,"title":".setcoc 设置房规","slug":"setcoc-设置房规","link":"#setcoc-设置房规","children":[{"level":3,"title":"显示当前房规","slug":"显示当前房规","link":"#显示当前房规","children":[]},{"level":3,"title":"列出可用房规","slug":"列出可用房规","link":"#列出可用房规","children":[]},{"level":3,"title":"设定房规","slug":"设定房规","link":"#设定房规","children":[]}]}],"git":{"createdTime":1698059111000,"updatedTime":1698817954000,"contributors":[{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":5},{"name":"Xiangze Li","email":"lee_johnson@qq.com","commits":3}]},"readingTime":{"minutes":11.25,"words":3374},"filePathRelative":"use/coc7.md","localizedDate":"2023年10月23日","autoDesc":true,"excerpt":""}');export{l as data}; diff --git a/assets/coc7.html-56d75285.js b/assets/coc7.html-56d75285.js new file mode 100644 index 000000000..f7ae38cc7 --- /dev/null +++ b/assets/coc7.html-56d75285.js @@ -0,0 +1,67 @@ +import{_ as e}from"./plugin-vue_export-helper-c27b6911.js";import{o as d,c as a,e as i}from"./app-d2f9e1e0.js";const t={},n=i(`

    克苏鲁的呼唤 7 版

    本节内容

    本节将展示 CoC 7th 玩家所需指令,请善用侧边栏和搜索,按需阅读文档。

    我们假定你已对 CoC 规则有适当了解,本节只涉及如何使用海豹核心完成规则中指定的操作。

    克苏鲁的呼唤

    「克苏鲁的呼唤」(Call of Cthulhu)是一个充满了秘密、神秘和恐怖的游戏。你将扮演一位坚定的侦探,奔波在奇怪而危险的场所之间,揭开邪恶的阴谋,对抗暗夜的恐怖。你将面对令人 SAN 值直葬(令人理智崩溃)的存在、怪物们,还有疯魔的邪教徒们。在被人遗忘的奇异书卷中,你会发现不应当为人类所知晓的秘密。

    .st 操作人物卡

    在克苏鲁的呼唤中,每位玩家都需要创造一位调查员。这是一群发掘深层秘密的人,这是一群搜索遗忘之地的人,这是一群用禁忌知识武装自己头脑,正面应对克苏鲁神话中那些毛骨悚然之物的人。

    此指令用来操作骰子程序模拟的人物卡。

    属性与技能

    由于属性和技能在检定时基本不做区分,表述时不以 <属性/技能> 的形式表明这里既可以使用技能名又可以使用属性名,而是统一使用 <属性> 来代指。

    .st help 获取帮助信息

    请以海豹核心最新帮助信息为准。列出几个常用功能供参考。

    列出属性

    .st show (<属性>)

    不提供参数则列出所有属性数值;提供属性名则列出特定属性数值。

    删除属性

    .st clr 删除所有属性数值;

    .st del <属性>... 删除指定属性。

    设定属性值

    .st <属性><表达式> <属性><表达式>...

    将指定属性设定为指定表达式的计算结果。如 .st 敏捷50 力量3d6*5

    更新属性值

    .st <属性>±<表达式>

    将指定属性增加或减去表达式的计算结果。表达式中可以包含骰点。如 .st 敏捷+2 hp+1d3

    设定计算表达式

    .st &<属性>=<表达式>

    保存计算表达式,以更方便地计算某些固定骰点。例如

    $ .st &手枪伤害=1d6+1
    +$ .r 手枪伤害
    +掷出了 手枪伤害=[手枪伤害=5[1d6=5] + 1]=6
    +

    导出属性值

    .st export

    将保存的属性数值以 st 指令格式列出,可以直接复制到其他骰子使用。

    代骰

    以上功能均可以通过附加 @其他人 来操作对方的属性值。

    $ .st 侦查80 @A
    +(省略输出) # 现在A的侦查技能被设定成80
    +$ .st hp-1 @A
    +(省略输出) # A的HP减少1点
    +

    .ra/.rc 检定

    检定一词要与恰当的技能或属性一起使用;也就是说,比如说,守秘人会要求进行一个「攀爬检定」或一个「力量检定」。

    rc 还是 ra?

    rc 是规则书检定。而 ra 是房规检定。区别主要在于对大成功/大失败的判定方式。

    当房规设定为规则书标准(.setcoc 0)时,ra 和 rc 等价。

    进行检定

    .ra <属性表达式>

    使用指定的属性或技能进行检定。其中,属性可以被包含在表达式中进行调整。

    另外,直接指明技能名和数值,将以给出的数值进行检定。

    # 假设角色的侦查技能是40
    +$ .ra 侦查
    +尝试使用"侦查"技能:D100=64/40 失败         # 判定线是40
    +$ .ra 侦查+10
    +尝试使用"侦查+10"技能:D100=15/50 困难成功  # 判定线是50
    +$ .ra 侦查99
    +尝试使用"侦查99"技能:D100=30/99 困难成功   # 忽略了本来的技能值
    +

    多轮检定

    .ra <次数># <属性表达式>

    重复进行指定次数的相同检定。

    $ .ra 3# 侦查
    +尝试3次使用"侦查"技能:
    +D100=16/40 困难成功
    +D100=66/40 失败
    +D100=4/40 极难成功
    +

    要求一定难度的检定

    .ra <难度><属性表达式>

    进行检定,但只有成功等级达到要求的难度才判定为成功。可以指定的难度有 困难(当前判定线的二分之一)、极难(当前判定线的五分之一)、大成功(根据当前房规确定)

    # 假设角色的侦查技能是40
    +$ .ra 困难侦查+10
    +尝试使用"困难侦查+10"技能:D100=30/25 失败
    +

    奖励骰和惩罚骰

    .ra (b|p)[<个数>] <属性表达式>

    进行检定,并且使用指定个数(如果不指定,为 1 个)的奖励骰(b)或惩罚骰(p)。

    $ .ra b2 侦查
    +尝试使用"侦查"技能:b2=14/40, ([D100=94, 奖励 1 3]) 困难成功
    +

    代骰

    以上功能均可以通过附加 @其他人 来使用对方的技能进行检定。

    # 假定A的侦查技能是80
    +$ .ra 侦查 @A
    +由<你>代骰:
    +<A>尝试使用"侦查"技能:D100=65/80 成功
    +

    以上功能可以组合使用

    .ra 3# p 困难侦查+10 @A
    +由<你>代骰:
    +<A>尝试3次使用"困难侦查+10"技能:
    +p=36/45, ([D100=16, 惩罚 3]) 成功
    +p=91/45, ([D100=91, 惩罚 8]) 失败
    +p=75/45, ([D100=5, 惩罚 7]) 失败
    +

    .rah/.rch 暗中检定

    .ra/.rc 功能相同。区别是,检定结果将不会发送到使用指令的群聊,而是私聊发送给指令发起者。

    为什么没有结果?

    暗中检定只在群聊中可用。

    由于要私聊发送检定结果,你可能需要先将骰子加为好友

    代骰

    此功能同样支持通过附加 @其他人 以使用对方的技能进行检定。

    一个较为常见的用法是,PL 要求使用心理学技能,由 KP 进行暗中代骰。

    > PL:我要对这个 NPC 使用心理学
    +> KP:可以
    +$ .rah 心理学 @PL
    +<KP>悄悄进行了一项"心理学"检定
    +
    +# 在 KP 的私聊
    +来自群<群名>(群号)的暗中检定:
    +<PL>尝试使用"心理学"技能:D100=70/70 成功。
    +

    .rav/.rcv 对抗检定

    有些情况,例如两位调查员相互对抗时,你会希望双方都进行掷骰来决出胜者。
    此外,对抗检定也是近战的标准处理方式。

    在对抗检定中应用调整

    在对抗检定这一节中,所述的「属性表达式」除了使用 技能名技能名+指定数值 外,可以进行以下调整:

    1. 在前面附加难度等级,如 困难侦查
    2. 进行运算,如 侦查+10
    3. 在后面附加奖励骰与惩罚骰,如 侦查,b2

    使用相同技能对抗

    .rav <属性表达式> @对手

    自己与对手均使用相同属性/技能(如果有调整值,也相同应用)进行一次检定,然后比较成功等级。

    $ .rav 侦查+10 @A
    +<你> 侦查+10-> 34/50 成功
    +<A> 侦查+10-> 78/90 成功
    +成功等级相同
    +

    使用不同技能对抗

    .rav <自己的属性表达式> <对手的属性表达式> @对手

    使用自己的一个属性/技能对抗对手的另一属性/技能,或者相同属性/技能应用不同调整值。

    $ .rav 潜行,b 侦查 @A
    +<你> 潜行-> 17/20[[D100=37, 奖励 1]] 成功
    +<A> 侦查-> 64/80 成功
    +成功等级相同
    +

    指定两个其他人对抗

    通过 at 两个其他用户,可用让 TA 们进行对抗,而不包括自己。

    .rav <共用属性表达式> @A @B

    .rav <A属性表达式> <B属性表达式> @A @B

    .sc 理智检定

    在令人不安或恐怖的情景中,守秘人将考验调查员的心智。这会要求场景中每位调查员进行一次理智检定。在较短的时间内失去过多理智值,会使调查员陷入临时性或不定性疯狂。

    指定损失的理智

    .sc <成功时理智损失>/<失败时理智损失>

    其中,理智损失均可以是包含骰点的表达式。

    $ .sc 1/1D4+1
    +(如果理智检定成功,失去1点理智;否则,计算 1D4+1 并失去相应理智值)
    +

    简略写法

    .sc <失败时理智损失>(完全等价于 .sc 0/<失败时理智损失>

    如果检定成功时不失去理智,可以只指定失败时的理智损失。

    奖励骰和惩罚骰

    .sc (b|p)[<数量>] <成功时理智损失>/<失败时理智损失>

    在进行理智检定时使用指定数量的奖励骰或惩罚骰。

    代骰

    此指令支持附加 @其他人,使目标进行指定的理智检定。

    $ .sc 0/1 @Szz
    +由<你>代骰:
    +(Szz 的理智检定结果)
    +

    .ti/.li 疯狂发作症状

    在《克苏鲁的呼唤》中,与克苏鲁神话相关的痛苦经历和可怖领悟都会诱发疯狂。

    疯狂状态的持续时间取决于失去的理智值的数量和比例。

    ti 还是 li?

    通常的疯狂发作应该使用 ti 抽取即时症状

    但是,如果疯狂发作时调查员周围没有其他调查员陪伴,或在场的所有调查员同时疯狂发作,
    则守秘人可以快速推进行动,只陈述结果。这被称为疯狂发作的总结症状。使用 li 来抽取。

    .ti

    使用该指令以抽取疯狂发作的即时症状与发作时间。如果抽到的是恐惧症与躁狂症,也会同时抽取具体条目。

    .li

    使用该指令以抽取疯狂发作的总结症状与消耗时间。如果抽到的是恐惧症与躁狂症,也会同时抽取具体条目。

    .en 技能成长

    当调查员在游戏中成功使用了技能,玩家应该勾上角色卡上该技能旁的方框。这提供了调查员从经验中学习的机会。

    • 若使用了奖励骰则不能获得技能成长标记。
    • 对于对抗检定,双方可能都实现某种程度的成功,但只有一方获胜,也只有胜者可以获得技能成长标记。

    进行技能成长

    .en <技能名称> [<更多技能名称>...]

    对指定的技能分别进行一次成长检定。

    相同技能不能被反复列出。如果需要对一个技能进行多次成长,请多次使用成长指令。

    .en 侦查 聆听 图书馆使用
    +

    .en <技能名称><技能点数>

    也可以强制指定一个技能的数值。注意,不论成功与否,这都将使用新的技能值覆盖现有的技能值。

    指定成长值

    .en <技能名称>(<技能点数>) +<失败成长值>/<成功成长值>

    指定当成长检定成功与失败时的技能成长点数。两个点数都可以是包含骰点的表达式。

    .en <技能名称>(技能点数) +<成功成长值>

    如果检定失败时成长为 0,也可以略去不写。

    指定的成长值

    指定值前面的加号 + 是必须的。

    成长值可以是负数,如果命中,则会失去相应的技能点数。

    .coc 生成随机属性(制卡)

    .coc (<数量>)

    随机生成指定数量的调查员属性。如果省略数量,将生成 1 个。生成的属性包括 8 项基础属性与幸运,同时会计算 HP 点数。

    此外,也会计算属性的总值供用户参考。总值包括两个,其一是 8 项基础属性的总值,其二是前者与幸运的总值。

    $ .coc 2
    +力量:65 敏捷:80 意志:55
    +体质:50 外貌:45 教育:90
    +体型:70 智力:75
    +HP:12 幸运:45 [530/575]
    +
    +力量:40 敏捷:60 意志:65
    +体质:60 外貌:75 教育:60
    +体型:50 智力:75
    +HP:11 幸运:55 [485/540]
    +

    .setcoc 设置房规

    改变海豹核心判定大成功与大失败的方式。

    显示当前房规

    .setcoc

    不加参数的使用,即显示当前设定的房规。

    列出可用房规

    .setcoc details

    列出所有内置或通过扩展加入的房规。海豹核心内置的房规列出如下:

    序号规则
    0(默认)出 1 大成功,不满 50 出 96-100 大失败,满 50 出 100 大失败 (CoC7th 规则书)
    1不满 50 出 1 大成功,不满 50 出 96-100 大失败,满 50 出 100 大失败
    2(常用)出 1-5 且判定成功为大成功,出 96-100 且判定失败为大失败
    3出 1-5 大成功,出 96-100 大失败 (即大成功/大失败时无视判定结果)
    4出 1-5 且≤(成功率/10) 为大成功,不满 50 出>=96+(成功率/10) 为大失败,满 50 出 100 大失败
    5出 1-2 且≤(成功率/5) 为大成功,不满 50 出 96-100 大失败,满 50 出 99-100 大失败
    dg出 1 或检定成功基础上个位十位相同为大成功,出 100 或检定失败基础上个位十位相同为大失败,此规则无困难成功或极难成功

    设定房规

    .setcoc <房规序号>

    使用指定的房规。

    `,132),r=[n];function c(s,l){return d(),a("div",null,r)}const p=e(t,[["render",c],["__file","coc7.html.vue"]]);export{p as default}; diff --git a/assets/core.html-822a7262.js b/assets/core.html-822a7262.js new file mode 100644 index 000000000..5461efb05 --- /dev/null +++ b/assets/core.html-822a7262.js @@ -0,0 +1 @@ +const e=JSON.parse('{"key":"v-017f73b9","path":"/use/core.html","title":"核心指令","lang":"zh-cn","frontmatter":{"lang":"zh-cn","title":"核心指令","description":"本节内容 本节将介绍海豹核心的核心指令。 核心指令是无法被关闭的指令。与之相对的概念是扩展指令,扩展指令可以被关闭。 .master 骰主指令 此指令只能由具有 Master 权限的用户使用。 .master add @A 为 A 添加 Master 权限。 .master del @A 移除 A 的 Master 权限。 .master list 查...","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/use/core.html"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"核心指令"}],["meta",{"property":"og:description","content":"本节内容 本节将介绍海豹核心的核心指令。 核心指令是无法被关闭的指令。与之相对的概念是扩展指令,扩展指令可以被关闭。 .master 骰主指令 此指令只能由具有 Master 权限的用户使用。 .master add @A 为 A 添加 Master 权限。 .master del @A 移除 A 的 Master 权限。 .master list 查..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-cn"}],["meta",{"property":"og:updated_time","content":"2023-10-30T09:14:16.000Z"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-10-30T09:14:16.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"核心指令\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2023-10-30T09:14:16.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[{"level":2,"title":".master 骰主指令","slug":"master-骰主指令","link":"#master-骰主指令","children":[]},{"level":2,"title":".bot 骰子管理","slug":"bot-骰子管理","link":"#bot-骰子管理","children":[]},{"level":2,"title":".ext 扩展管理","slug":"ext-扩展管理","link":"#ext-扩展管理","children":[]},{"level":2,"title":".r 骰点","slug":"r-骰点","link":"#r-骰点","children":[{"level":3,"title":"常用示例","slug":"常用示例","link":"#常用示例","children":[]},{"level":3,"title":"多轮骰点","slug":"多轮骰点","link":"#多轮骰点","children":[]},{"level":3,"title":"在骰点中使用属性值","slug":"在骰点中使用属性值","link":"#在骰点中使用属性值","children":[]},{"level":3,"title":"奖励骰与惩罚骰","slug":"奖励骰与惩罚骰","link":"#奖励骰与惩罚骰","children":[]},{"level":3,"title":"优势骰与劣势骰","slug":"优势骰与劣势骰","link":"#优势骰与劣势骰","children":[]},{"level":3,"title":"fvtt 骰点兼容","slug":"fvtt-骰点兼容","link":"#fvtt-骰点兼容","children":[]},{"level":3,"title":"fate 命运骰","slug":"fate-命运骰","link":"#fate-命运骰","children":[]},{"level":3,"title":"WOD 骰点","slug":"wod-骰点","link":"#wod-骰点","children":[]},{"level":3,"title":"双十字骰点","slug":"双十字骰点","link":"#双十字骰点","children":[]},{"level":3,"title":"混合运算","slug":"混合运算","link":"#混合运算","children":[]}]},{"level":2,"title":".rh 暗骰","slug":"rh-暗骰","link":"#rh-暗骰","children":[]},{"level":2,"title":".rx / .rxh 特殊骰点","slug":"rx-rxh-特殊骰点","link":"#rx-rxh-特殊骰点","children":[]},{"level":2,"title":".nn 角色名设定","slug":"nn-角色名设定","link":"#nn-角色名设定","children":[]},{"level":2,"title":".pc 角色卡管理","slug":"pc-角色卡管理","link":"#pc-角色卡管理","children":[]},{"level":2,"title":".find 词条查询指令","slug":"find-词条查询指令","link":"#find-词条查询指令","children":[{"level":3,"title":"全文搜索","slug":"全文搜索","link":"#全文搜索","children":[]},{"level":3,"title":"快速文档查找","slug":"快速文档查找","link":"#快速文档查找","children":[]},{"level":3,"title":"致谢","slug":"致谢","link":"#致谢","children":[]}]},{"level":2,"title":".help 帮助指令","slug":"help-帮助指令","link":"#help-帮助指令","children":[]},{"level":2,"title":".send 向骰主发送消息 / 回复消息","slug":"send-向骰主发送消息-回复消息","link":"#send-向骰主发送消息-回复消息","children":[]},{"level":2,"title":".set 设定默认骰子面数 / 设定游戏系统","slug":"set-设定默认骰子面数-设定游戏系统","link":"#set-设定默认骰子面数-设定游戏系统","children":[]},{"level":2,"title":".botlist 机器人列表","slug":"botlist-机器人列表","link":"#botlist-机器人列表","children":[]},{"level":2,"title":".welcome 新人入群欢迎","slug":"welcome-新人入群欢迎","link":"#welcome-新人入群欢迎","children":[]}],"git":{"createdTime":1698059111000,"updatedTime":1698657256000,"contributors":[{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":4},{"name":"Xiangze Li","email":"lee_johnson@qq.com","commits":1}]},"readingTime":{"minutes":15.38,"words":4613},"filePathRelative":"use/core.md","localizedDate":"2023年10月23日","autoDesc":true,"excerpt":""}');export{e as data}; diff --git a/assets/core.html-a641a5a6.js b/assets/core.html-a641a5a6.js new file mode 100644 index 000000000..6ea0b0eab --- /dev/null +++ b/assets/core.html-a641a5a6.js @@ -0,0 +1,204 @@ +import{_ as e}from"./plugin-vue_export-helper-c27b6911.js";import{o as d,c as n,e as i}from"./app-d2f9e1e0.js";const s={},a=i(`

    核心指令

    本节内容

    本节将介绍海豹核心的核心指令。

    核心指令是无法被关闭的指令。与之相对的概念是扩展指令,扩展指令可以被关闭。

    .master 骰主指令

    此指令只能由具有 Master 权限的用户使用。

    .master add @A 为 A 添加 Master 权限。

    .master del @A 移除 A 的 Master 权限。

    .master list 查看当前 Master 权限列表。

    .master relogin 30 秒后重新登录。

    .master reboot 重新启动海豹核心(需要二次确认)。

    .master checkupdate 检查并进行远程更新(需要二次确认)。

    .master unlock <解锁码> 清空 Master 权限列表,并给自己重新添加 Master 权限。

    保护好你的骰子

    我们认为,拥有海豹核心的最终判定方式是可以接触到 WebUI。因此,该解锁码仅能通过 WebUI 的「综合设置 - 基本设置」获取。

    你可以将 Master 权限授予若干位维护人员。但是,确保只有你完全信任的人能够接触到你骰子的 WebUI 与本地文件。

    如果你的 WebUI 可以通过公开互联网访问,确保你设置了合适的密码。

    .bot 骰子管理

    你必须 AT 骰子账号,才能使用 bot 命令。为了简单,在以下示例中略去 AT 的部分。

    # 开启骰子
    +$ .bot on
    +<海豹bot> 已启用 SealDice <版本号>
    +
    +# 关闭骰子
    +$ .bot off // 关闭
    +<海豹bot> 停止服务
    +
    +# 退群
    +$ .bot bye
    +收到指令,5s后将退出当前群组
    +
    +# 骰子信息
    +$ .bot # 或者 .bot about
    +SealDice <版本号>
    +

    .ext 扩展管理

    除了本节所述的「核心指令」之外,海豹的其他功能都作为「扩展」提供。每一个扩展提供若干指令和其他功能,并可以单独开关。你可在每个群聊中启用不同的扩展。

    .ext <扩展名> (on|off) 开启、关闭指定扩展。

    .ext <扩展名> 查询指定扩展的信息。

    .ext list 查看扩展列表和开启情况。

    目前,海豹提供 7 个内置扩展,它们的详细信息在本章的后续内容中逐一介绍。同时,海豹核心也支持通过装载 JavaScript 脚本添加第三方扩展。

    $ .ext
    +检测到以下扩展:
    +1. [开]coc7 - 版本:1.0.0 作者:木落
    +2. [开]log - 版本:1.0.0 作者:木落
    +3. [开]fun - 版本:1.0.0 作者:木落
    +4. [开]deck - 版本:1.0.0 作者:木落
    +5. [关]reply - 版本:1.0.0 作者:木落
    +6. [开]dnd5e - 版本:1.0.0 作者:木落
    +7. [开]story - 版本:1.0.0 作者:木落
    +使用命令: .ext <扩展名> on/off 可以在当前群开启或关闭某扩展。
    +命令: .ext <扩展名> 可以查看扩展介绍及帮助
    +
    +$ .ext coc7 on
    +打开扩展 coc7
    +
    +$ .ext reply
    +> [reply] 版本1.2.0 作者木落
    +> 自定义回复模块,支持各种文本匹配和简易脚本
    +
    +$ .ext reply off
    +关闭扩展 reply
    +

    可以在 UI 界面中「综合设置 - 基本设置」的最底下,设置各个扩展及其指令的默认开启状态。

    .r 骰点

    .r <表达式> (<原因>)

    别名:.roll

    常用示例

    $ .r
    +<木落>掷出了 D100=69
    +
    +$ .r d50
    +<木落>掷出了 d50=[1d50=48]=48
    +
    +$ .r d50 天气不错
    +由于天气不错,<木落>掷出了 d50=[1d50=4]=4
    +
    +$ .r 5d24 骰5个24面骰
    +由于骰5个24面骰,<木落>掷出了 5d24=[5d24=60, 7+20+15+1+17]=60
    +
    +$ .r 4d6k3 骰4个6面骰,选3个最大的
    +由于骰4个6面骰,选3个最大的,<木落>掷出了 4d6k3=[{6 5 3 | 1 }]=14
    +
    +$ .r 100 + 3 * 2
    +<木落>掷出了 100 + 3 * 2=100 + 6=106
    +

    或许你已注意到,.r 指令的表达式在不包含骰子算符时,相当于计算器。海豹的计算只支持整数,出现的小数被立即舍弃。

    多轮骰点

    $ .r 2#d10
    +<木落>掷骰2次:
    +d10=[1d10=7]=7
    +d10=[1d10=8]=8
    +

    在骰点中使用属性值

    你可在表达式中包含属性值或其他变量。

    # 此时木落的侦查是53
    +$ .r 侦查+10
    +<木落>掷出了 侦查+10=53[侦查=53] + 10=63
    +

    奖励骰与惩罚骰

    CoC 规则中,对于百分骰的一种补偿骰法,通过额外骰一定数量的十位骰,选择组成的最好结果或最坏结果。

    $ .r b
    +<木落>掷出了 b=[D100=72, 奖励 4]=42
    +
    +$ .r b3
    +<木落>掷出了 b3=[D100=96, 奖励 4 6 3]=36
    +
    +$ .r p4 惩罚骰
    +由于惩罚骰,<木落>掷出了 p4=[D100=27, 惩罚 5 6 8 7]=87
    +

    优势骰与劣势骰

    D&D 规则中对 20 面骰的一种补偿骰法。额外骰一次,取较高或较低结果。

    $ .set 20
    +设定默认骰子面数为 20
    +
    +$ .r d20优势
    +<木落>掷出了 d20优势=[{7 | 6 }]=7
    +
    +$ .r d劣势
    +<木落>掷出了 d劣势=[{16 | 18 }]=16
    +

    优势骰与劣势骰也可使用通用的表达式表达

    $ .r 2d20k1 等于优势骰
    +由于等于优势骰,<木落>掷出了 2d20k1=[{19 | 17 }]=19
    +
    +$ .r 2d20q1 等于劣势骰
    +由于等于劣势骰,<木落>掷出了 2d20k1=[{19 | 17 }]=17
    +

    fvtt 骰点兼容

    $ .r d20kh  // 优势骰
    +<木落>掷出了 d20kh=[{10 | 3 }]=10
    +
    +$ .r d20kl  // 劣势骰
    +<木落>掷出了 d20kl=[{6 | 15 }]=6
    +
    +$ .r 4d6dl1 // 丢4排除1个最低值
    +<木落>掷出了 4d6dl1=[{5 3 2 | 1 }]=10
    +
    +$ .r 4d6dh1 // 丢4排除1个最高值
    +<木落>掷出了 4d6dh1=[{3 3 5 | 6 }]=11
    +

    fate 命运骰

    一种特殊的六面骰,六个面分别为 -、-、0、0、+、+,分别代表 -1、0、1。

    骰点时投掷 4 次,加在一起为结果。

    $ .r f
    +<木落>掷出了 f=[---+]=-2
    +

    带补正的情况:

    $ .r f+1
    +<木落>掷出了 f+1=0[+0-0] + 1=1
    +

    WOD 骰点

    WOD 骰点规则是一个多轮骰点规则,国内多见于无限团。

    进行 WOD 骰点需要设定以下参数:骰池数量 X、加骰线 Y、骰子面数 Z、成功线 N,其中 X Y 是必须的,成功线默认为 8,骰子面数默认为 10。

    骰 X 个 Z 面骰,每有一个大于等于成功线 N 的骰,成功数加 1,每有一个大于等于加骰线 Y 的骰,加骰数加 1,进入下一轮。

    在第二轮中,骰上一轮中加骰数个 Z 面骰,重复进行计算。以此类推。

    最后计算总计成功数。

    表达式形如 XaY[mZ][kN]。其中的大写字母用相应参数替换。

    $ .r 5a6
    +<木落>掷出了 5a6=[成功2/8 轮数:3 {4,<10*>,<10*>,5,1},{5,<6>},{1}]=2
    +
    +$ .r 10a6k4m9
    +<木落>掷出了 10a6k4m9=[成功11/16 轮数:3 {1,<6*>,5*,3,<8*>,5*,<8*>,<6*>,2,<8*>},{5*,2,<9*>,1,4*},{5*}]=11
    +

    在计算过程中,每一轮骰点被包含在一对花括号 {} 中;达到加骰线 Y 的骰点用 <> 标记;达到成功线 N 的骰点用 * 标记。

    你可指定 Y = 0,这时不进行加骰而只骰一轮。

    你可将 kN 替换成 qM,这时,最终计算的是小于等于 M的骰子总数。

    $ .r 5a6q4
    +<木落>掷出了 5a6q4=[成功4/9 轮数:3 {<9>,5,<9>,3*,<9>},{<10>,3*,2*},{2*}]=4
    +

    双十字骰点

    双十字规则是一种多轮的骰点规则。

    进行双十字骰点需要设定以下参数:骰池数量 X、暴击线 Y、骰子面数 Z,其中 X Y 是必须的,骰子面数 Z 默认为 10。

    骰 X 个 Z 面骰,出目大于等于暴击线的骰子称为此骰子「暴击」。只要存在暴击的骰子,就称本轮暴击,进入下一轮;否则计算最终骰点。

    第二轮中,骰 上一轮中暴击的骰子数 个 Z 面骰,统计暴击数,判断进入下一轮或结束。以此类推。

    最终的骰点结果为:暴击轮数 * 10 + 最后一轮中最大点数。

    表达式形如 XcY[mZ]。其中的大写字母用相应参数替换。

    $ .r 4c3m7
    +<木落>掷出了 4c3m7=[出目32/9 轮数:4 {<4>,2,<4>,<5>},{<7>,1,2},{<7>},{2}]=32
    +

    在计算过程中,每一轮骰点被包含在一对花括号 {} 中;达到暴击线 Y 的骰点用 <> 标记。

    混合运算

    以上所有骰法,加、减、乘、除、乘方等 5 个数学运算,以及括号 () 可以被组合使用,以进行更复杂的运算。

    $ .r 30 + (-1d20) + 49
    +<木落>掷出了 30 + (-1d20) + 49=30 + -1[1d20=1] + 49=78
    +
    +$ .r d50 * 3 + 2
    +<木落>掷出了 d50 * 3 + 2=21[1d50=21] * 3 + 2=65
    +
    +$ .r d50 * 3 + (2 - p2) 多项式
    +由于多项式,<木落>掷出了 d50 * 3 + (2 - p2)=25[1d50=25] * 3 + -64[D100=6, 惩罚 6 5]=11
    +

    特别地,上文所述的「骰法」d b p f a c 均可作为运算符使用。

    $ .r 1d1d1d1d1d1d1d1d1d1d1d1d1d1d(20+1d3*4)
    +<木落>掷出了 1d1d1d1d1d1d1d1d1d1d1d1d1d1d(20+1d3*4)=13
    +
    +$ .r 1d10+(1+32)d(4*6)d20
    +<木落>掷出了 1d10+(1+32)d(4*6)d20=1[1d10=1] + 3941[33d24=384,384d20=3941]=3942
    +

    .rh 暗骰

    这个指令的格式与普通骰点 .r 完全相同,区别在于发送骰点结果的方式。

    在发送指令的群聊中,海豹核心会进行提示,但提示不包含骰点结果。

    骰点结果将由海豹核心私聊给指令发送者。

    收不到结果?

    在 QQ 平台上,如果你不是海豹账号的好友,将无法进行私聊。也就无法收到暗骰结果。

    # 群内
    +$ .rh d50
    +命运正在低语!
    +
    +# 私聊
    +来自群<群名>(群号)的暗骰:
    +<木落>掷出了 d10=[1d10=3]=3
    +

    .rx / .rxh 特殊骰点

    这个指令的格式与普通骰点 .r 完全相同,区别在于允许额外 AT 其他人,以使用对方的属性。

    这种操作称为「代骰」,你会在许多其他指令中看到代骰用法。

    # 此时木落的侦查是75,Szz的侦查是80
    +$ .rx 侦查+1d20**2
    +<木落>掷出了 侦查+1d20**2=75[侦查=75] + 324[1d20=18]=399
    +
    +$ .rx 侦查+1d20**2 @Szz
    +由<木落>代骰:
    +<Szz>掷出了 侦查+1d20**2=80[侦查=80] + 144[1d20=12]=224
    +

    .nn 角色名设定

    .nn 查看当前角色名。

    .nn <角色名> 修改角色名,角色名中不能带有空格。

    .nn clr 重置角色名,即,将角色名设置为 IM 平台的昵称。

    角色名被用于在进行各种操作和记录 Log 时显示。

    .nn 简·拉基·茨德
    +<木落>(IM 账号)的昵称被设定为<简·拉基·茨德>
    +
    +.r
    +<简·拉基·茨德>掷出了 D100=16
    +
    +.nn
    +玩家的当前昵称为: <简·拉基·茨德>
    +
    +.nn clr
    +<简·拉基·茨德>(IM 账号)的昵称已重置为<木落>
    +

    .pc 角色卡管理

    相关信息

    为了使用这个指令,需要先介绍海豹核心管理你角色卡的方式。

    在每个群聊(对于这里,私聊也被认为是一个特殊的群聊)中,你都自动拥有一张独立的角色卡。这些角色卡互相无任何影响。

    你还可以拥有若干与特定群聊无关的角色卡,这些角色卡可以被绑定到任意数量的群聊。这时,绑定的群聊中角色数据互相同步,在一处的修改就会影响其他各处。

    pc 指令的作用是管理上述第二种群聊无关角色卡。

    .pc new <角色名> 新建一张角色卡,并绑定到当前群聊。

    .pc tag <角色名> 将指定角色卡绑定到当前群聊。

    .pc tag 不带有角色名参数,将本群的绑定关系解除。你在本群的角色将会恢复为独立卡的数据。

    .pc untagAll <角色名> 将指定角色卡从其绑定的所有群解绑。

    .pc list 列出你所保存的所有角色。

    .pc save (<角色名>) 将你当前群聊中的独立卡数据保存为个人角色卡。你可指定保存的角色名,如不指定,将使用当前群聊中你的角色名。

    .pc load <角色名> 使用指定角色卡的数据覆盖当前群聊的独立卡。这不会将角色卡绑定到当前群聊。

    .pc del/rm <角色名> 删除指定角色卡。

    .find 词条查询指令

    海豹核心默认搭载了 CoC 的《怪物之锤》、《魔法大典》和 D&D 规则的一系列资料。这些资料被整理成词条,并支持使用此指令进行查询。

    .find <关键字> 用关键字进行词条查询。

    别名:.查询

    查询功能在不同设备上的实现是不同的。在 x86 设备上,海豹核心使用稍微更多的内存使用全文搜索,这赋予了查询指令强大的获取能力。在其他平台上,由于搜索库的限制,海豹核心使用词条标题模糊搜索。

    全文搜索

    $ .find 30尺 法术
    +全部结果:
    +[序号3066]【术士:超魔法:远程法术】 匹配度 0.16
    +[序号3015]【游侠:驯兽师:法术共享】 匹配度 0.13
    +[序号2396]【法术详述:迷踪步】 匹配度 0.12
    +[序号1319]【法术详述:阿迦纳萨喷火术】 匹配度 0.12
    +[序号507]【法术详述:智能堡垒/智力堡垒/智慧堡垒/智能壁垒/心智堡垒/心智壁垒】 匹配度 0.12
    +[序号2514]【法术详述:水下呼吸/水中呼吸】 匹配度 0.11
    +[序号2212]【法术详述:原力法阵】 匹配度 0.11
    +[序号1403]【法术详述:众星冠冕/星辰冠冕/星之冠冕】 匹配度 0.11
    +[序号2243]【法术详述:造水/枯水术/造水术/枯水术】 匹配度 0.11
    +[序号2176]【法术详述:秘法眼】 匹配度 0.11
    +
    +(本次搜索由全文搜索完成)
    +

    因为多个文本匹配度相近,因此没有列出最佳匹配条目的正文内容。用这条指令可以查看:

    $ .find 2212
    +词条: 法术详述:原力法阵
    +原力法阵 Circle of Power
    +圣武士
    +5环 防护
    +施法时间:1动作
    +施法距离:自身(30尺半径)
    +法术成分:V
    +持续时间:专注,至多10分钟
    +你身上发出神圣能量并以扭曲散溢的魔法能量构成一个半径30尺的球状力场。法术持续时间内力场将以你为中心随你移动。力场范围内的友方生物(包括你自己)为对抗法术或其他魔法效应而进行的豁免检定具有优势。此外,受本法术效应影响的生物在对抗豁免成功则伤害减半的法术或魔法效应时,若成功则不受伤害。
    +

    这么好用,那代价是什么呢?

    更多的内存占用和变慢的启动速度。

    大致来说,每 1 MB 帮助文本会产生约 15 MB 额外内存占用

    快速文档查找

    $ .find 测试词条
    +最优先结果:
    +词条: 测试:测试词条
    +他在命运的沉浮中随波逐流, 扮演着受害与加害者的双重角色
    +
    +全部结果:
    +[序号2]【测试:测试词条】 匹配度 67.00
    +
    +(本次搜索由快速文档查找完成)
    +

    致谢

    CoC《怪物之锤》的整理者为:蜜瓜包October

    CoC 魔法大典的整理者为:魔骨NULLDr.Amber

    D&D 系列资料的整理者主要为 DicePP 项目组成员,包括Farevell梨子花作噫邪恶惠惠赵小安等。

    这些资料的原始出处和译者很多已经不可考,此处无法一一列出,甚为遗憾。

    也在此感谢一代又一代无名作者和译者做出的工作。

    .help 帮助指令

    .help (<词条名>) 显示指定词条的帮助文档。

    .help reload 重新装载帮助文档。仅 Master 可用。

    .send 向骰主发送消息 / 回复消息

    .send <消息内容>

    拥有 Master 权限的用户将看到消息内容和发送者的 IM 账号,如果是来自群组,也能看到群号。

    # 用户在某群聊使用 send 指令
    +$ .send 骰主你好!
    +
    +# 拥有 Master 权限的用户
    +一条来自群组<群名>(群号),作者<用户名>(用户 IM 账号)的留言:
    +骰主你好!
    +

    .send to <对方ID> <消息内容>

    Master 可以通过这个指令进行回复。目标 ID 可以是群号,也可以是个人的 IM 账号。将收到的消息中的对应 ID 复制到此处即可。

    # 拥有 Master 权限的用户
    +$ .send to <群号> 我收到了!
    +
    +# 在群聊中
    +本消息由骰主<木落>通过指令发送:
    +我收到了!
    +

    .set 设定默认骰子面数 / 设定游戏系统

    .set info 查看当前默认骰子面数。如果从未设置过,将显示为「0」。

    .set dnd 设置群内骰子面数为 20,并自动开启 D&D 扩展。

    .set (coc|coc7) 设置群内骰子面数为 100,并自动开启 CoC 扩展。

    .set <面数> 设定群内默认骰子面数。

    .set <面数> --my 设定个人专属默认骰子面数。

    .set clr 清除群内骰子面数设置。

    .set clr --my 清除个人骰子面数设置。

    如果通过「规则模板」机制添加了自设规则,并有相关配置,可以使用 .set <规则名> 切换为对应规则的默认骰面数。你可以通过 .set help 来查看当前可用的关键字。

    .set 20
    +设定默认骰子面数为 20
    +
    +.set coc
    +设定群组默认骰子面数为 100
    +提示:已切换至100面骰,并自动开启coc7扩展
    +
    +.set dnd
    +设定群组默认骰子面数为 20
    +提示:已切换至20面骰,并自动开启dnd5e扩展。
    +
    +.set info
    +个人骰子面数: 0
    +群组骰子面数: 20
    +当前骰子面数: 20
    +

    .botlist 机器人列表

    这个指令用于标记同一群聊内的其他机器人。

    当一个账号被标记后,对于与 TA 相关的消息,海豹核心会按以下规则进行忽略:

    1. 如果 TA 被 AT,忽略;
    2. 如果是 TA 发出的消息,忽略。

    这可避免机器人互相响应造成的危险的循环。

    .botlist add @A @B @C 标记 A、B、C 为机器人。

    .botlist add @A @B --s 同上,不过骰子不会做出回复。

    .botlist del @A @B @C 去除 A、B、C 的标记。

    .botlist list 查看当前标记列表。

    .welcome 新人入群欢迎

    .welcome (on|off) 开启、关闭功能

    .welcome show 查看当前欢迎语

    .welcome set <欢迎语> 设定欢迎语

    `,155),l=[a];function t(r,c){return d(),n("div",null,l)}const u=e(s,[["render",t],["__file","core.html.vue"]]);export{u as default}; diff --git a/assets/createText-80c3befb-7196e989.js b/assets/createText-80c3befb-7196e989.js new file mode 100644 index 000000000..91ec91701 --- /dev/null +++ b/assets/createText-80c3befb-7196e989.js @@ -0,0 +1,7 @@ +import{l as At,an as zt,ap as It}from"./mermaid.core-d8bc71ff.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 nt(n,e,u)}function nt(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 Hn(n.children,r,t)}return Array.isArray(n)?Hn(n,r,t):""}function Hn(n,r,t){const e=[];let u=-1;for(;++uu?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);i0?(tn(n,n.length,0,r),n):r}const Nn={}.hasOwnProperty;function Ot(n){const r={};let t=-1;for(;++tl))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(b(e),k=T;kF;){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 Wn(n){if(n===null||Z(n)||Ht(n))return 1;if(qt(n))return 2}function Ln(n,r,t){const e=[];let u=-1;for(;++u1&&n[t][1].end.offset-n[t][1].start.offset>1?2:1;const f=Object.assign({},n[e][1].end),x=Object.assign({},n[t][1].start);Qn(f,-m),Qn(x,m),l={type:m>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},n[e][1].end)},a={type:m>1?"strongSequence":"emphasisSequence",start:Object.assign({},n[t][1].start),end:x},i={type:m>1?"strongText":"emphasisText",start:Object.assign({},n[e][1].end),end:Object.assign({},n[t][1].start)},u={type:m>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=Y(c,[["enter",n[e][1],r],["exit",n[e][1],r]])),c=Y(c,[["enter",u,r],["enter",l,r],["exit",l,r],["enter",i,r]]),c=Y(c,Ln(r.parser.constructs.insideSpan.null,n.slice(e+1,t),r)),c=Y(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=Y(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;++t0&&z(k)?O(n,j,"linePrefix",i+1)(k):j(k)}function j(k){return k===null||C(k)?n.check($n,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"),y}function y(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",4+1)(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?m(c):C(c)?n.attempt(ie,l,m)(c):(n.enter("codeFlowValue"),a(c))}function a(c){return c===null||C(c)?(n.exit("codeFlowValue"),l(c)):(n.consume(c),a)}function m(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",4+1)(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=4?r(l):n.interrupt(e.parser.constructs.flow,t,r)(l)}}function ut(n,r,t,e,u,i,l,a,m){const c=m||Number.POSITIVE_INFINITY;let p=0;return f;function f(b){return b===60?(n.enter(e),n.enter(u),n.enter(i),n.consume(b),n.exit(i),x):b===null||b===32||b===41||An(b)?t(b):(n.enter(e),n.enter(l),n.enter(a),n.enter("chunkString",{contentType:"string"}),I(b))}function x(b){return b===62?(n.enter(i),n.consume(b),n.exit(i),n.exit(u),n.exit(e),r):(n.enter(a),n.enter("chunkString",{contentType:"string"}),h(b))}function h(b){return b===62?(n.exit("chunkString"),n.exit(a),x(b)):b===null||b===60||C(b)?t(b):(n.consume(b),b===92?A:h)}function A(b){return b===60||b===62||b===92?(n.consume(b),h):h(b)}function I(b){return!p&&(b===null||b===41||Z(b))?(n.exit("chunkString"),n.exit(a),n.exit(l),n.exit(e),r(b)):p999||h===null||h===91||h===93&&!m||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"}),f(h))}function f(h){return h===null||h===91||h===93||C(h)||a++>999?(n.exit("chunkString"),p(h)):(n.consume(h),m||(m=!z(h)),h===92?x:f)}function x(h){return h===91||h===92||h===93?(n.consume(h),a++,f):f(h)}}function at(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,m):t(x)}function m(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),m(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?f:p)}function f(x){return x===l||x===92?(n.consume(x),p):p(x)}}function dn(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:be},de={tokenize:ye,partial:!0};function be(n,r,t){const e=this;let u;return i;function i(h){return n.enter("definition"),l(h)}function l(h){return lt.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"),m):t(h)}function m(h){return Z(h)?dn(n,c)(h):c(h)}function c(h){return ut(n,p,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function p(h){return n.attempt(de,f,f)(h)}function f(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 ye(n,r,t){return e;function e(a){return Z(a)?dn(n,u)(a):t(a)}function u(a){return at(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||Z(p)?(n.exit("atxHeadingSequence"),a(p)):t(p)}function a(p){return p===35?(n.enter("atxHeadingSequence"),m(p)):p===null||C(p)?(n.exit("atxHeading"),r(p)):z(p)?O(n,a,"whitespace")(p):(n.enter("atxHeadingText"),c(p))}function m(p){return p===35?(n.consume(p),m):(n.exit("atxHeadingSequence"),a(p))}function c(p){return p===null||p===35||Z(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"],Yn=["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,m;return c;function c(s){return p(s)}function p(s){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(s),f}function f(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 K="CDATA[";return s===K.charCodeAt(a++)?(n.consume(s),a===K.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||Z(s)){const K=s===47,hn=l.toLowerCase();return!K&&!i&&Yn.includes(hn)?(u=1,e.interrupt?r(s):S(s)):Ae.includes(l.toLowerCase())?(u=6,K?(n.consume(s),b):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||v(s)?(n.consume(s),l+=String.fromCharCode(s),M):t(s)}function b(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||v(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),m=s,T):z(s)?(n.consume(s),k):H(s)}function T(s){return s===m?(n.consume(s),m=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||Z(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),y):t(s)}function y(s){return s===null||C(s)?S(s):z(s)?(n.consume(s),y):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),J):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="",G):S(s)}function G(s){if(s===62){const K=l.toLowerCase();return Yn.includes(K)?(n.consume(s),J):S(s)}return nn(s)&&l.length<8?(n.consume(s),l+=String.fromCharCode(s),G):S(s)}function en(s){return s===93?(n.consume(s),o):S(s)}function o(s){return s===62?(n.consume(s),J):s===45&&u===2?(n.consume(s),o):S(s)}function J(s){return s===null||C(s)?(n.exit("htmlFlowData"),rn(s)):(n.consume(s),J)}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),m}function m(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 f(o){return o===null?t(o):o===45?(n.consume(o),x):C(o)?(l=f,W(o)):(n.consume(o),f)}function x(o){return o===45?(n.consume(o),h):f(o)}function h(o){return o===62?U(o):o===45?x(o):f(o)}function A(o){const J="CDATA[";return o===J.charCodeAt(i++)?(n.consume(o),i===J.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),b):I(o)}function b(o){return o===62?U(o):o===93?(n.consume(o),b):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||v(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||v(o)?(n.consume(o),H):o===47||o===62||Z(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||v(o)?(n.consume(o),V):y(o)}function y(o){return o===61?(n.consume(o),S):C(o)?(l=y,W(o)):z(o)?(n.consume(o),y):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||Z(o)?N(o):(n.consume(o),R)}function w(o){return o===47||o===62||Z(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"),G}function G(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=3&&(c===null||C(c))?(n.exit("thematicBreak"),r(c)):t(c)}function m(c){return c===u?(n.consume(c),e++,m):(n.exit("thematicBreakSequence"),z(c)?O(n,a,"whitespace")(c):a(c))}}const $={name:"list",tokenize:ve,continuation:{tokenize:nr},exit:er},Ke={tokenize:rr,partial:!0},Xe={tokenize:tr,partial:!0};function ve(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(bn,t,c)(h):c(h);if(!e.interrupt||h===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),m(h)}return t(h)}function m(h){return zn(h)&&++l<10?(n.consume(h),m):(!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(Ke,x,f))}function p(h){return e.containerState.initialBlankLine=!0,i++,x(h)}function f(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(Xe,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:4+1);function u(i){const l=e.events[e.events.length-1];return!z(i)&&l&&l[1].type==="listItemPrefixWhitespace"?r(i):t(i)}}const Gn={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,f;for(;p--;)if(e.events[p][1].type!=="lineEnding"&&e.events[p][1].type!=="linePrefix"&&e.events[p][1].type!=="content"){f=e.events[p][1].type==="paragraph";break}return!e.parser.lazy[e.now().line]&&(e.interrupt||f)?(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,m,"lineSuffix")(c):m(c))}function m(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:st()},sr=ot("string"),cr=ot("text");function ot(n){return{tokenize:r,resolveAll:st(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),m}function m(p){return c(p)?(t.exit("data"),i(p)):(t.consume(p),m)}function c(p){if(p===null)return!0;const f=u[p];let x=-1;if(f)for(;++x-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 mr(n,r){let t=-1;const e=[];let u;for(;++t13&&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 ct(t.slice(i?2:1),i?16:10)}return On(t)||n}function yn(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?Kn(n.position):"start"in n||"end"in n?Kn(n):"line"in n||"column"in n?Tn(n):""}function Tn(n){return Xn(n&&n.line)+":"+Xn(n&&n.column)}function Kn(n){return Tn(n&&n.start)+"-"+Tn(n&&n.end)}function Xn(n){return n&&typeof n=="number"?n:1}const ht={}.hasOwnProperty,pt=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(Rn),autolinkProtocol:y,autolinkEmail:y,atxHeading:a(_n),blockQuote:a(Fn),characterEscape:y,characterReference:y,codeFenced:a(Pn),codeFencedFenceInfo:m,codeFencedFenceMeta:m,codeIndented:a(Pn,m),codeText:a(kt,m),codeTextData:y,data:y,codeFlowValue:y,definition:a(dt),definitionDestinationString:m,definitionLabelString:m,definitionTitleString:m,emphasis:a(bt),hardBreakEscape:a(Mn),hardBreakTrailing:a(Mn),htmlFlow:a(jn,m),htmlFlowData:y,htmlText:a(jn,m),htmlTextData:y,image:a(yt),label:m,link:a(Rn),listItem:a(St),listItemValue:A,listOrdered:a(qn,h),listUnordered:a(qn),paragraph:a(Ft),reference:hn,referenceString:m,resourceDestinationString:m,resourceTitleString:m,setextHeading:a(_n),strong:a(Et),thematicBreak:a(wt)},exit:{atxHeading:p(),atxHeadingSequence:T,autolink:p(),autolinkEmail:mn,autolinkProtocol:fn,blockQuote:p(),characterEscapeValue:S,characterReferenceMarkerHexadecimal:pn,characterReferenceMarkerNumeric:pn,characterReferenceValue:an,codeFenced:p(j),codeFencedFence:b,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:J,labelText:o,lineEnding:P,link:p(G),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:Q,resourceDestinationString:rn,resourceTitleString:s,resource:K,setextHeading:p(V),setextHeadingLineSequence:N,setextHeadingText:H,strong:p(),thematicBreak:p()}};ft(r,(n||{}).mdastExtensions||[]);const t={};return e;function e(g){let d={type:"root",children:[]};const E={stack:[d],tokenStack:[],config:r,enter:c,exit:f,buffer:m,resume:x,setData:i,getData:l},B=[];let L=-1;for(;++L0){const X=E.tokenStack[E.tokenStack.length-1];(X[1]||vn).call(E,void 0,X[0])}for(d.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{p!==0&&(u++,e.push([])),c.split(" ").forEach(f=>{f&&e[u].push({content:f,type:a})})}):(l.type==="strong"||l.type==="emphasis")&&l.children.forEach(m=>{i(m,l.type)})}return t.forEach(l=>{l.type==="paragraph"&&l.children.forEach(a=>{i(a)})}),e}function _r(n){const{children:r}=pt(n);function t(e){return e.type==="text"?e.value.replace(/\n/g,"
    "):e.type==="strong"?`${e.children.map(t).join("")}`:e.type==="emphasis"?`${e.children.map(t).join("")}`:e.type==="paragraph"?`

    ${e.children.map(t).join("")}

    `:`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 mt(n,[],t,r.type)}function mt(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}])?mt(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,m]=jr(r,i);t.push([a]),m.content&&n.unshift(m)}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,m=r.isNode?"nodeLabel":"edgeLabel";l.html(` + "+a+""),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 xt(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=xt(e,1,r);gt(u,t);const i=u.node().getComputedTextLength();return e.remove(),i}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 m=0;for(const c of t){const p=x=>Nr(i,1.1,x)<=n,f=p(c)?[c]:Rr(c,p);for(const x of f){const h=xt(a,m,1.1);gt(h,x),m++}}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 gt(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 Qr=(n,r="",{style:t="",isTitle:e=!1,classes:u="",useHtmlLabels:i=!0,isNode:l=!0,width:a=200,addSvgBackground:m=!1}={})=>{if(At.info("createText",r,t,e,u,i,l,m),i){const c=_r(r),p={isNode:l,label:zt(c).replace(/fa[blrs]?:fa-[\w-]+/g,x=>``),labelStyle:t.replace("fill:","color:")};return Hr(n,p,a,u,m)}else{const c=Pr(r);return Vr(a,n,c,m)}};export{Qr as c}; diff --git a/assets/custom-text-add-option-b7a60fdb.png b/assets/custom-text-add-option-b7a60fdb.png new file mode 100644 index 000000000..58e1a4682 Binary files /dev/null and b/assets/custom-text-add-option-b7a60fdb.png differ diff --git a/assets/custom-text-delete-option-4ceae9b3.png b/assets/custom-text-delete-option-4ceae9b3.png new file mode 100644 index 000000000..3e2d1fb81 Binary files /dev/null and b/assets/custom-text-delete-option-4ceae9b3.png differ diff --git a/assets/custom-text-filter-8a4f9f7f.png b/assets/custom-text-filter-8a4f9f7f.png new file mode 100644 index 000000000..2a20eb952 Binary files /dev/null and b/assets/custom-text-filter-8a4f9f7f.png differ diff --git a/assets/custom-text-great-success-dabfa89a.png b/assets/custom-text-great-success-dabfa89a.png new file mode 100644 index 000000000..643e4c270 Binary files /dev/null and b/assets/custom-text-great-success-dabfa89a.png differ diff --git a/assets/custom-text-main-0403f1d6.png b/assets/custom-text-main-0403f1d6.png new file mode 100644 index 000000000..d494a19fe Binary files /dev/null and b/assets/custom-text-main-0403f1d6.png differ diff --git a/assets/custom-text-pic-example-9149b0f7.png b/assets/custom-text-pic-example-9149b0f7.png new file mode 100644 index 000000000..43a7db043 Binary files /dev/null and b/assets/custom-text-pic-example-9149b0f7.png differ diff --git a/assets/custom-text-pic-show-732f4960.png b/assets/custom-text-pic-show-732f4960.png new file mode 100644 index 000000000..d83912f36 Binary files /dev/null and b/assets/custom-text-pic-show-732f4960.png differ diff --git a/assets/custom-text-reset-bfee2141.png b/assets/custom-text-reset-bfee2141.png new file mode 100644 index 000000000..50ef30265 Binary files /dev/null and b/assets/custom-text-reset-bfee2141.png differ diff --git a/assets/custom-text-waiting-save-ef909755.png b/assets/custom-text-waiting-save-ef909755.png new file mode 100644 index 000000000..b282f434b Binary files /dev/null and b/assets/custom-text-waiting-save-ef909755.png differ diff --git a/assets/custom-text-with-var-80fe3fe3.png b/assets/custom-text-with-var-80fe3fe3.png new file mode 100644 index 000000000..d4453610b Binary files /dev/null and b/assets/custom-text-with-var-80fe3fe3.png differ diff --git a/assets/custom_text.html-d48f4482.js b/assets/custom_text.html-d48f4482.js new file mode 100644 index 000000000..ac22b464e --- /dev/null +++ b/assets/custom_text.html-d48f4482.js @@ -0,0 +1,4 @@ +import{_ as l}from"./plugin-vue_export-helper-c27b6911.js";import{r as d,o as c,c as o,a,d as e,b as t,w as n,e as s}from"./app-d2f9e1e0.js";const r="/sealdice-manual-next/assets/custom-text-main-0403f1d6.png",p="/sealdice-manual-next/assets/custom-text-great-success-dabfa89a.png",h="/sealdice-manual-next/assets/custom-text-add-option-b7a60fdb.png",u="/sealdice-manual-next/assets/custom-text-delete-option-4ceae9b3.png",g="/sealdice-manual-next/assets/custom-text-waiting-save-ef909755.png",m="/sealdice-manual-next/assets/custom-text-reset-bfee2141.png",f="/sealdice-manual-next/assets/custom-text-filter-8a4f9f7f.png",x="/sealdice-manual-next/assets/custom-text-pic-example-9149b0f7.png",_="/sealdice-manual-next/assets/custom-text-pic-show-732f4960.png",b="/sealdice-manual-next/assets/custom-text-with-var-80fe3fe3.png",v={},w=s('

    自定义文案

    本节内容

    本节将介绍自定义文案的设置,请善用侧边栏和搜索,按需阅读文档。

    什么是自定义文案?

    • 骰子的回复内容太过单调,要怎样让它丰富起来呢?

    • 骰子的回复内容太过繁琐,要怎样让它简洁起来呢?

    • 我的骰子有自己的人设,怎么修改那些固定的回复词,让 TA 符合人设呢?

    • ……

    如果你想要修改骰子向用户回复的提示词,那么你就需要修改自定义文案。

    海豹骰子的回复内容几乎可以进行完全的自定义,绝大部分指令的文案都可以进行修改。修改的文案内容还支持插入图片和 CQ 码。

    如何修改文案?

    在海豹 UI 界面的「自定义文案」选项中,你可以看见文案被按照几个大类放置在一起。

    自定义文案设置页
    自定义文案设置页

    左侧是分类,可以看见,文案目前被分为以下几个大类:

    ',10),y=a("li",null,"CoC:内置的 CoC 支持相关的文案;",-1),k=a("li",null,"DND:内置的 DND 支持相关的文案;",-1),z=a("li",null,"其它:一些杂项文案设置;",-1),q=a("code",null,".jrrp",-1),C=a("li",null,"核心:海豹核心功能的文案。",-1),D=s('

    在每一个分类中,都可以在右侧看见当前分类的「文案列表」与上方的「筛选」,接下来将依次介绍它们。

    文案列表

    在「文案列表」中,每一个文案都以类似下图的格式展示,我们以「大成功」的文案来举例:

    大成功文案
    大成功文案

    可以看见,对于「大成功」文案,它归属于 判定-常规 这个小类中,结果有两行文案,这意味着骰子会 随机抽取 其中的一行文案来使用。例如:

    示例结果

    .ra 力量

    Dice: <木落>的力量检定结果为:D100=3/30=([1d100=3]) 大成功!

    .ra 力量

    Dice: <木落>的力量检定结果为:D100=2/30=([1d100=3]) 运气不错,大成功!

    如果想要添加一行,那么点击左侧「加号」按钮:

    增加文案选项
    增加文案选项

    如果你觉得某一行不满意,点左侧「删除」按钮。当然,至少需要保留一个选项。

    删除文案选项
    删除文案选项

    修改好之后,不要忘记保存!

    等待保存
    等待保存

    尽早保存!

    对文案的修改建议及时保存,同时注意 保存前不要切换左侧的分类,否则未保存的修改将丢失!

    最后,如果你想回到初始设置,点击右上角的「刷子」图标。

    重置为初始设置
    重置为初始设置

    随后会弹出确认框,点击确定后,一切就是刚开始的样子了。

    筛选文案

    我们可以看见,为了方便在本组中查找到对应的条目,在文案列表的上方都有着对应的「筛选」功能。

    文案筛选
    文案筛选
    • 搜索:搜索文案的小类和具体文案名。
    • 指定类别:
      • 全部:显示全部文案;
      • 默认文案:显示当前大类下未修改过的文案;
      • 修改过:已修改过的文案;
      • 指定分组:选中后会多出一个「分组」下拉框,用于筛选出指定小类下的文案条目;
      • 旧版文案:海豹的更新有时会调整和删除部分文案条目,但旧的数据不会删除。海豹从旧版升级后,可以通过此项筛选出那些不用的条目。

    文案的导入/导出

    • 我不想自己一条条修改文案,如何快速导入?

    • 我想给我的小伙伴分享我的文案,他们要如何导入进去?

    如果需要导入/导出文案内容,可以点击右上角的「导入/导出」按钮进入页面复制粘贴,就能快速分享相关设置了。

    确认内容完整再导入

    粘贴文案内容时,注意检查自己导入的内容是不是完整复制进来的。

    文案插入图片和 CQ 码

    将图片放在骰子的适当目录(建议放在 data/images),再按照相应图片的路径插入这样一段文本即可。以图片 data/images/sealdice.png 为例:

    插入文本为 [图:data/images/sealdice.png]

    例如修改骰子进群的文案:

    文案图片示例
    文案图片示例

    全文案为:

    <{核心:骰子名字}> 已经就绪。可通过.help 查看指令列表\\n[图:data/images/sealdice.png]
    +

    效果如下:

    文案回复图片效果
    文案回复图片效果

    文案变量标签

    你可能注意到,有些词条下面有这样的内容,如下图的 $t群组骰子面数

    有变量标签的文案
    有变量标签的文案

    文案下方的标签代表了被默认文案所使用的特殊变量,你可以使用 {变量名} 来插入他们,例如 {$t群组骰子面数}

    ',37),N=s(`

    在一个文案中使用另一个文案

    所有的自定义文案都可以嵌套使用,例如:

    这里是{核心:骰子名字},我是一个示例
    +

    默认会被解析为:

    这里是海豹,我是一个示例
    +

    禁止递归嵌套!

    千万不要递归嵌套,会发生很糟糕的事情!

    文案常见问题

    骰子进群和成为好友的问候语是哪个?

    核心:骰子进群

    核心:骰子成为好友

    更复杂的文案设置

    • 我希望能根据骰点结果显示不同的文案,要怎么实现?

    • 我希望骰子能有多套回复词,要如何设置?

    • ……

    `,12);function V(B,E){const i=d("RouterLink");return c(),o("div",null,[w,a("ul",null,[y,k,z,a("li",null,[e("娱乐:内置 "),t(i,{to:"/use/fun.html"},{default:n(()=>[e("娱乐功能")]),_:1}),e(" 的相关文案,如 "),q,e(" 的文案;")]),a("li",null,[e("日志:"),t(i,{to:"/use/log.html"},{default:n(()=>[e("跑团日志")]),_:1}),e(" 功能相关的文案;")]),C]),D,a("p",null,[e("除此之外,有些变量可以在所有文案中使用,具体列表可以见 "),t(i,{to:"/advanced/script.html#%E5%8F%98%E9%87%8F"},{default:n(()=>[e("进阶 - 内置脚本语言")]),_:1}),e("。")]),N,a("p",null,[e("更复杂的文案设置涉及到逻辑的编写,见 "),t(i,{to:"/advanced/edit_complex_custom_text.html"},{default:n(()=>[e("进阶 - 编写复杂文案")]),_:1}),e("。")])])}const Q=l(v,[["render",V],["__file","custom_text.html.vue"]]);export{Q as default}; diff --git a/assets/custom_text.html-ef361804.js b/assets/custom_text.html-ef361804.js new file mode 100644 index 000000000..29051419c --- /dev/null +++ b/assets/custom_text.html-ef361804.js @@ -0,0 +1 @@ +const e=JSON.parse('{"key":"v-21148c92","path":"/config/custom_text.html","title":"自定义文案","lang":"zh-cn","frontmatter":{"lang":"zh-cn","title":"自定义文案","description":"本节内容 本节将介绍自定义文案的设置,请善用侧边栏和搜索,按需阅读文档。 什么是自定义文案? - 骰子的回复内容太过单调,要怎样让它丰富起来呢? - 骰子的回复内容太过繁琐,要怎样让它简洁起来呢? - 我的骰子有自己的人设,怎么修改那些固定的回复词,让 TA 符合人设呢? - …… 如果你想要修改骰子向用户回复的提示词,那么你就需要修改自定义文案。 海...","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/config/custom_text.html"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"自定义文案"}],["meta",{"property":"og:description","content":"本节内容 本节将介绍自定义文案的设置,请善用侧边栏和搜索,按需阅读文档。 什么是自定义文案? - 骰子的回复内容太过单调,要怎样让它丰富起来呢? - 骰子的回复内容太过繁琐,要怎样让它简洁起来呢? - 我的骰子有自己的人设,怎么修改那些固定的回复词,让 TA 符合人设呢? - …… 如果你想要修改骰子向用户回复的提示词,那么你就需要修改自定义文案。 海..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:image","content":"http://localhost:8080/sealdice-manual-next/"}],["meta",{"property":"og:locale","content":"zh-cn"}],["meta",{"property":"og:updated_time","content":"2023-10-31T07:57:42.000Z"}],["meta",{"name":"twitter:card","content":"summary_large_image"}],["meta",{"name":"twitter:image:alt","content":"自定义文案"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-10-31T07:57:42.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"自定义文案\\",\\"image\\":[\\"http://localhost:8080/sealdice-manual-next/\\"],\\"dateModified\\":\\"2023-10-31T07:57:42.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[{"level":2,"title":"什么是自定义文案?","slug":"什么是自定义文案","link":"#什么是自定义文案","children":[]},{"level":2,"title":"如何修改文案?","slug":"如何修改文案","link":"#如何修改文案","children":[{"level":3,"title":"文案列表","slug":"文案列表","link":"#文案列表","children":[]},{"level":3,"title":"筛选文案","slug":"筛选文案","link":"#筛选文案","children":[]},{"level":3,"title":"文案的导入/导出","slug":"文案的导入-导出","link":"#文案的导入-导出","children":[]}]},{"level":2,"title":"文案插入图片和 CQ 码","slug":"文案插入图片和-cq-码","link":"#文案插入图片和-cq-码","children":[]},{"level":2,"title":"文案变量标签","slug":"文案变量标签","link":"#文案变量标签","children":[]},{"level":2,"title":"在一个文案中使用另一个文案","slug":"在一个文案中使用另一个文案","link":"#在一个文案中使用另一个文案","children":[]},{"level":2,"title":"文案常见问题","slug":"文案常见问题","link":"#文案常见问题","children":[{"level":3,"title":"骰子进群和成为好友的问候语是哪个?","slug":"骰子进群和成为好友的问候语是哪个","link":"#骰子进群和成为好友的问候语是哪个","children":[]}]},{"level":2,"title":"更复杂的文案设置","slug":"更复杂的文案设置","link":"#更复杂的文案设置","children":[]}],"git":{"createdTime":1698072668000,"updatedTime":1698739062000,"contributors":[{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":6}]},"readingTime":{"minutes":5.1,"words":1530},"filePathRelative":"config/custom_text.md","localizedDate":"2023年10月23日","autoDesc":true,"excerpt":""}');export{e as data}; diff --git a/assets/deck-diff-93a1dbdd.png b/assets/deck-diff-93a1dbdd.png new file mode 100644 index 000000000..26080ad69 Binary files /dev/null and b/assets/deck-diff-93a1dbdd.png differ diff --git a/assets/deck-new-features-c6f7f3fa.png b/assets/deck-new-features-c6f7f3fa.png new file mode 100644 index 000000000..5ff5dbfa9 Binary files /dev/null and b/assets/deck-new-features-c6f7f3fa.png differ diff --git a/assets/deck-ui-5f8fa3bc.png b/assets/deck-ui-5f8fa3bc.png new file mode 100644 index 000000000..45523cc51 Binary files /dev/null and b/assets/deck-ui-5f8fa3bc.png differ diff --git a/assets/deck.html-4b2e188f.js b/assets/deck.html-4b2e188f.js new file mode 100644 index 000000000..4b7a44d03 --- /dev/null +++ b/assets/deck.html-4b2e188f.js @@ -0,0 +1 @@ +const e=JSON.parse('{"key":"v-7394443c","path":"/config/deck.html","title":"牌堆","lang":"zh-cn","frontmatter":{"lang":"zh-cn","title":"牌堆","description":"本节内容 本节将介绍牌堆功能,请善用侧边栏和搜索,按需阅读文档。 牌堆是什么? 「牌堆」是一组有名字的文本,你可以把它想象成一组扑克牌,通过 .draw 命令来随机抽取其中的内容发送。为了便于骰子读取增加相应的说明内容,牌堆以某种结构化的格式保存成文件。 牌堆 牌堆以 json `yaml 或 toml 格式组织起来,但其本质只是一段文本,只是编写需要...","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/config/deck.html"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"牌堆"}],["meta",{"property":"og:description","content":"本节内容 本节将介绍牌堆功能,请善用侧边栏和搜索,按需阅读文档。 牌堆是什么? 「牌堆」是一组有名字的文本,你可以把它想象成一组扑克牌,通过 .draw 命令来随机抽取其中的内容发送。为了便于骰子读取增加相应的说明内容,牌堆以某种结构化的格式保存成文件。 牌堆 牌堆以 json `yaml 或 toml 格式组织起来,但其本质只是一段文本,只是编写需要..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:image","content":"http://localhost:8080/sealdice-manual-next/"}],["meta",{"property":"og:locale","content":"zh-cn"}],["meta",{"property":"og:updated_time","content":"2023-10-29T17:01:34.000Z"}],["meta",{"name":"twitter:card","content":"summary_large_image"}],["meta",{"name":"twitter:image:alt","content":"牌堆"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-10-29T17:01:34.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"牌堆\\",\\"image\\":[\\"http://localhost:8080/sealdice-manual-next/\\"],\\"dateModified\\":\\"2023-10-29T17:01:34.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[{"level":2,"title":"牌堆是什么?","slug":"牌堆是什么","link":"#牌堆是什么","children":[]},{"level":2,"title":"获取牌堆","slug":"获取牌堆","link":"#获取牌堆","children":[]},{"level":2,"title":"怎么上传牌堆到骰子?怎么管理牌堆?","slug":"怎么上传牌堆到骰子-怎么管理牌堆","link":"#怎么上传牌堆到骰子-怎么管理牌堆","children":[]},{"level":2,"title":"怎么使用牌堆?","slug":"怎么使用牌堆","link":"#怎么使用牌堆","children":[]},{"level":2,"title":"牌堆更新与云牌堆","slug":"牌堆更新与云牌堆","link":"#牌堆更新与云牌堆","children":[{"level":3,"title":"牌堆更新","slug":"牌堆更新","link":"#牌堆更新","children":[]},{"level":3,"title":"牌堆云端内容","slug":"牌堆云端内容","link":"#牌堆云端内容","children":[]}]},{"level":2,"title":"如何编写牌堆?","slug":"如何编写牌堆","link":"#如何编写牌堆","children":[]}],"git":{"createdTime":1698072668000,"updatedTime":1698598894000,"contributors":[{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":4}]},"readingTime":{"minutes":2.74,"words":821},"filePathRelative":"config/deck.md","localizedDate":"2023年10月23日","autoDesc":true,"excerpt":""}');export{e as data}; diff --git a/assets/deck.html-c5fc3df7.js b/assets/deck.html-c5fc3df7.js new file mode 100644 index 000000000..ddcd95288 --- /dev/null +++ b/assets/deck.html-c5fc3df7.js @@ -0,0 +1,3 @@ +import{_ as s}from"./plugin-vue_export-helper-c27b6911.js";import{r as d,o,c as h,a,d as e,b as i,w as c,e as n}from"./app-d2f9e1e0.js";const l="/sealdice-manual-next/assets/deck-ui-5f8fa3bc.png",p="/sealdice-manual-next/assets/deck-new-features-c6f7f3fa.png",f="/sealdice-manual-next/assets/deck-diff-93a1dbdd.png",u={},_=n('

    牌堆

    本节内容

    本节将介绍牌堆功能,请善用侧边栏和搜索,按需阅读文档。

    牌堆是什么?

    「牌堆」是一组有名字的文本,你可以把它想象成一组扑克牌,通过 .draw 命令来随机抽取其中的内容发送。为了便于骰子读取增加相应的说明内容,牌堆以某种结构化的格式保存成文件。

    牌堆

    牌堆以 json yamltoml 格式组织起来,但其本质只是一段文本,只是编写需要遵循对应的结构方便读取。

    获取牌堆

    ',6),m={href:"https://github.com/sealdice/draw",target:"_blank",rel:"noopener noreferrer"},g=n('

    无法访问仓库?

    仓库位于 GitHub,访问时请确认你的网络状况。

    怎么上传牌堆到骰子?怎么管理牌堆?

    点击海豹 UI 界面的「扩展功能 - 牌堆管理」选项,你就可以进入牌堆的管理页面。

    牌堆管理
    牌堆管理

    可以看见有一个「上传牌堆」按钮,点击它选择本地的牌堆文件上传后即可读取牌堆。

    在上图中已经有一个名为「常规抽取与放回抽取示例」牌堆被读取到了,它的版本号是 1.1,格式是 json,其他信息也相应展示。

    你可以通过「删除」按钮来删掉对应的牌堆。

    重载牌堆

    新增/删除牌堆通常会自动重载,但如果出现牌堆未更新等情况时,可以手动点击「重载牌堆」按钮进行刷新。

    怎么使用牌堆?

    在上面的「常规抽取与放回抽取示例」中,我们可以看见有名为 常规抽取 放回抽取 的两个牌组。可以使用 .draw 命令来抽取它们。

    .draw 常规抽取
    +.draw 放回抽取
    +
    `,11),x=n('

    牌堆更新与云牌堆

    在加载某些牌堆之后,你可能会发现一些牌堆拥有特殊的功能:

    带有更新和云内容的牌堆示例
    带有更新和云内容的牌堆示例

    牌堆更新

    一些牌堆作者为牌堆提供了更新链接,方便你快速获取最新的牌堆内容。

    点击「更新」按钮后会取获取最新的牌堆,随后弹出获取到的新牌堆与当前牌堆的对比:

    牌堆对比
    牌堆对比

    对比弹窗的右上角可以控制显示的样式,如勾选「折叠无变更」可以收起过长的内容。

    确认牌堆的更新内容之后,点击「确认更新」即可升级到最新的牌堆。

    牌堆云端内容

    一些牌堆作者为牌堆提供了云端内容,这意味着这个牌堆在抽取时,可能会去拉取远程内容作为牌堆项。

    所有含有云端内容的牌堆,海豹 UI 都会给出「提供云端内容」的提示。

    云端内容

    牌堆作者可以实时调整云端内容,可能存在风险,请自行考虑是否使用这样的牌堆。

    如何编写牌堆?

    ',14);function b(v,k){const r=d("ExternalLinkIcon"),t=d("RouterLink");return o(),h("div",null,[_,a("p",null,[e("你可以在 "),a("a",m,[e("牌堆仓库"),i(r)]),e(" 或官方群的群文件中找到其他骰主分享的牌堆。")]),g,a("p",null,[e("更多牌堆命令,见 "),i(t,{to:"/use/deck_and_reply.html"},{default:c(()=>[e("使用 - 扩展:牌堆 自定义回复")]),_:1})]),x,a("p",null,[e("见 "),i(t,{to:"/advanced/edit_deck.html"},{default:c(()=>[e("进阶 - 编写牌堆")]),_:1})])])}const I=s(u,[["render",b],["__file","deck.html.vue"]]);export{I as default}; diff --git a/assets/deck_and_reply.html-223cd8a5.js b/assets/deck_and_reply.html-223cd8a5.js new file mode 100644 index 000000000..72a3aa315 --- /dev/null +++ b/assets/deck_and_reply.html-223cd8a5.js @@ -0,0 +1 @@ +const e=JSON.parse('{"key":"v-2b665368","path":"/use/deck_and_reply.html","title":"牌堆 自定义回复","lang":"zh-cn","frontmatter":{"lang":"zh-cn","title":"牌堆 自定义回复","description":"本节内容 本节将展示牌堆和自定义回复相关的指令,请善用侧边栏和搜索,按需阅读文档。 如何自定义? 牌堆和自定义回复都是海豹提供的扩展性功能,此处只展示相关控制指令,如果你想知道如何进行自定义,请转到 进阶介绍 (../advanced/introduce.md)。 .draw 抽牌 / 管理牌堆 关于牌堆功能的一般性介绍,请参阅 配置 - 牌堆 (.....","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/use/deck_and_reply.html"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"牌堆 自定义回复"}],["meta",{"property":"og:description","content":"本节内容 本节将展示牌堆和自定义回复相关的指令,请善用侧边栏和搜索,按需阅读文档。 如何自定义? 牌堆和自定义回复都是海豹提供的扩展性功能,此处只展示相关控制指令,如果你想知道如何进行自定义,请转到 进阶介绍 (../advanced/introduce.md)。 .draw 抽牌 / 管理牌堆 关于牌堆功能的一般性介绍,请参阅 配置 - 牌堆 (....."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-cn"}],["meta",{"property":"og:updated_time","content":"2023-11-02T05:25:21.000Z"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-11-02T05:25:21.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"牌堆 自定义回复\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2023-11-02T05:25:21.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[{"level":2,"title":".draw 抽牌 / 管理牌堆","slug":"draw-抽牌-管理牌堆","link":"#draw-抽牌-管理牌堆","children":[{"level":3,"title":"信息查询","slug":"信息查询","link":"#信息查询","children":[]},{"level":3,"title":"抽牌","slug":"抽牌","link":"#抽牌","children":[]},{"level":3,"title":"牌堆管理","slug":"牌堆管理","link":"#牌堆管理","children":[]}]},{"level":2,"title":".reply 管理自定义回复","slug":"reply-管理自定义回复","link":"#reply-管理自定义回复","children":[]}],"git":{"createdTime":1698072668000,"updatedTime":1698902721000,"contributors":[{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":3},{"name":"Xiangze Li","email":"lee_johnson@qq.com","commits":2}]},"readingTime":{"minutes":2.39,"words":717},"filePathRelative":"use/deck_and_reply.md","localizedDate":"2023年10月23日","autoDesc":true,"excerpt":""}');export{e as data}; diff --git a/assets/deck_and_reply.html-f8402a30.js b/assets/deck_and_reply.html-f8402a30.js new file mode 100644 index 000000000..317dbdcbf --- /dev/null +++ b/assets/deck_and_reply.html-f8402a30.js @@ -0,0 +1,48 @@ +import{_ as c}from"./plugin-vue_export-helper-c27b6911.js";import{r,o as t,c as v,a as e,d as n,b as d,w as a,f as s,e as l}from"./app-d2f9e1e0.js";const o={},u=e("h1",{id:"牌堆-自定义回复",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#牌堆-自定义回复","aria-hidden":"true"},"#"),n(" 牌堆 自定义回复")],-1),m=e("div",{class:"hint-container info"},[e("p",{class:"hint-container-title"},"本节内容"),e("p",null,"本节将展示牌堆和自定义回复相关的指令,请善用侧边栏和搜索,按需阅读文档。")],-1),h={class:"hint-container tip"},b=e("p",{class:"hint-container-title"},"如何自定义?",-1),p=e("h2",{id:"draw-抽牌-管理牌堆",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#draw-抽牌-管理牌堆","aria-hidden":"true"},"#"),n(),e("code",null,".draw"),n(" 抽牌 / 管理牌堆")],-1),_=l(`

    .draw help 显示帮助信息。

    信息查询

    .draw list 列出当前装载的牌堆列表。

    .draw keys <牌堆> 查看特定牌堆可抽取的牌组列表。

    .draw search <牌组名称> 模糊搜索指定牌组。

    .draw desc <牌组名称> 查看牌组所属牌堆的详细信息。

    $ .draw list
    +载入并开启的牌堆:
    +- GRE单词 格式: Dice! 作者:于言诺 版本:1.0.1 牌组数量: 1
    +- IELTS单词 格式: Dice! 作者:于言诺 版本:1.0.1 牌组数量: 1
    +- TOEFL单词 格式: Dice! 作者:于言诺 版本:1.0.1 牌组数量: 1
    +- SealDice内置牌堆 格式: Dice! 作者:<因过长略去> 版本:1.2.0 牌组数量: 8
    +
    +$ .draw keys GRE单词
    +牌组关键字列表:
    +GRE单词
    +
    +$ .draw search 单词
    +找到以下牌组:
    +- GRE单词
    +- TOEFL单词
    +- IELTS单词
    +
    +$ .draw desc GRE单词
    +牌堆信息:
    +牌堆: GRE单词
    +格式: Dice!
    +作者: 于言诺
    +版本: 1.0.1
    +牌组数量: 1
    +时间: 2022/5/23
    +更新时间: 2022/8/16
    +牌组: GRE单词
    +
    `,7),g=e("p",null,[n("需要说明,在以上的例子中,「GRE单词」同时是牌堆名与牌组名。在 "),e("code",null,".draw keys GRE单词"),n(" 中,它作为牌堆名出现;在 "),e("code",null,".draw desc GRE单词"),n(" 中,它作为牌组名出现。")],-1),f=l(`

    .draw keys 列出所有可抽取的牌组列表。

    谨慎使用

    这一指令会将所有可抽取的牌组列出,在牌组较多时造成刷屏。

    抽牌

    .draw <牌组名称> (<数量>#) 在指定牌组抽指定数量的牌,默认为抽 1 张。

    .draw GRE单词 3#
    +<木落>抽出了:
    +GRE3178
    +invoice n.
    +发票, 发货单, 货物。
    +
    +<木落>抽出了:
    +GRE4889
    +rig n.
    +索具装备, 钻探设备, 钻探平台, 钻塔。
    +
    +<木落>抽出了:
    +GRE5421
    +austerity n.
    +严峻, 严厉, 朴素, 节俭, 苦行。
    +

    当指定的牌组名称不存在时,将会进行模糊搜索,效果与 draw search 类似。

    $ .draw 单词
    +找不到这个牌组,但发现一些相似的:
    +- GRE单词
    +- TOEFL单词
    +- IELTS单词
    +

    牌堆管理

    .draw reload 重新加载牌堆,仅限 Master 使用。

    .reply 管理自定义回复

    `,10),x=e("p",null,[e("code",null,".reply (on|off)"),n(" 开启、关闭本群的自定义回复功能。")],-1),w=e("p",null,[n("以上指令等价于 "),e("code",null,".ext reply (on|off)"),n("。")],-1);function E(R,G){const i=r("RouterLink");return t(),v("div",null,[u,m,e("div",h,[b,e("p",null,[n("牌堆和自定义回复都是海豹提供的扩展性功能,此处只展示相关控制指令,如果你想知道如何进行自定义,请转到 "),d(i,{to:"/advanced/introduce.html"},{default:a(()=>[n("进阶介绍")]),_:1}),n("。")])]),p,e("p",null,[n("关于牌堆功能的一般性介绍,请参阅 "),d(i,{to:"/config/deck.html"},{default:a(()=>[n("配置 - 牌堆")]),_:1}),n("。")]),_,s(" autocorrect-disable: GRE单词 是牌堆名专词 "),g,s(" autocorrect-enable "),f,e("p",null,[n("关于自定义回复功能的一般性介绍,请参阅 "),d(i,{to:"/config/reply.html"},{default:a(()=>[n("配置 - 自定义回复")]),_:1}),n("。")]),x,w])}const L=c(o,[["render",E],["__file","deck_and_reply.html.vue"]]);export{L as default}; diff --git a/assets/develop.html-90de5ce3.js b/assets/develop.html-90de5ce3.js new file mode 100644 index 000000000..e91dbe123 --- /dev/null +++ b/assets/develop.html-90de5ce3.js @@ -0,0 +1 @@ +const e=JSON.parse('{"key":"v-59513697","path":"/about/develop.html","title":"参与项目","lang":"zh-cn","frontmatter":{"lang":"zh-cn","title":"参与项目","description":"无论是普通用户还是开发者,我们都非常欢迎你参与海豹的开发,一起努力让海豹变得更好。 海豹的所有源代码都托管在 海豹开源组织 GitHub (https://github.com/sealdice) 下,每个模块都存放在对应的仓库中,可阅读对应仓库的 Readme 获取更多信息。 几个比较重要的仓库: 核心 (https://github.com/sea...","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/about/develop.html"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"参与项目"}],["meta",{"property":"og:description","content":"无论是普通用户还是开发者,我们都非常欢迎你参与海豹的开发,一起努力让海豹变得更好。 海豹的所有源代码都托管在 海豹开源组织 GitHub (https://github.com/sealdice) 下,每个模块都存放在对应的仓库中,可阅读对应仓库的 Readme 获取更多信息。 几个比较重要的仓库: 核心 (https://github.com/sea..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-cn"}],["meta",{"property":"og:updated_time","content":"2023-10-29T17:01:34.000Z"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-10-29T17:01:34.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"参与项目\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2023-10-29T17:01:34.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[{"level":2,"title":"如何参与项目?","slug":"如何参与项目","link":"#如何参与项目","children":[{"level":3,"title":"Bug 反馈、功能建议","slug":"bug-反馈、功能建议","link":"#bug-反馈、功能建议","children":[]},{"level":3,"title":"提交修改","slug":"提交修改","link":"#提交修改","children":[]}]}],"git":{"createdTime":1698598894000,"updatedTime":1698598894000,"contributors":[{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":1}]},"readingTime":{"minutes":1.34,"words":403},"filePathRelative":"about/develop.md","localizedDate":"2023年10月29日","autoDesc":true,"excerpt":""}');export{e as data}; diff --git a/assets/develop.html-a08bf274.js b/assets/develop.html-a08bf274.js new file mode 100644 index 000000000..9e6f3c2dd --- /dev/null +++ b/assets/develop.html-a08bf274.js @@ -0,0 +1 @@ +import{_ as o}from"./plugin-vue_export-helper-c27b6911.js";import{r as a,o as s,c as l,a as e,d as t,b as n}from"./app-d2f9e1e0.js";const i={},c=e("h1",{id:"参与项目",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#参与项目","aria-hidden":"true"},"#"),t(" 参与项目")],-1),d=e("p",null,"无论是普通用户还是开发者,我们都非常欢迎你参与海豹的开发,一起努力让海豹变得更好。",-1),h={href:"https://github.com/sealdice",target:"_blank",rel:"noopener noreferrer"},_=e("p",null,"几个比较重要的仓库:",-1),u={href:"https://github.com/sealdice/sealdice-core",target:"_blank",rel:"noopener noreferrer"},p={href:"https://github.com/sealdice/sealdice-ui",target:"_blank",rel:"noopener noreferrer"},b={href:"https://github.com/sealdice/sealdice-manual-next",target:"_blank",rel:"noopener noreferrer"},f={href:"https://github.com/sealdice/sealdice-build",target:"_blank",rel:"noopener noreferrer"},m=e("li",null,"……",-1),g=e("h2",{id:"如何参与项目",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#如何参与项目","aria-hidden":"true"},"#"),t(" 如何参与项目?")],-1),x=e("h3",{id:"bug-反馈、功能建议",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#bug-反馈、功能建议","aria-hidden":"true"},"#"),t(" Bug 反馈、功能建议")],-1),k={href:"https://github.com/sealdice/sealdice-core",target:"_blank",rel:"noopener noreferrer"},B=e("div",{class:"hint-container tip"},[e("p",{class:"hint-container-title"},"无法访问 GitHub?"),e("p",null,"受限于各种原因,不是所有人都能顺利访问 GitHub,如有 Bug 可以加入官方群进行反馈。但如果有条件,我们还是建议在 GitHub 向开发组反馈问题。")],-1),v=e("h3",{id:"提交修改",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#提交修改","aria-hidden":"true"},"#"),t(" 提交修改")],-1),G=e("p",null,"欢迎各种类型的 pr 提交,可以帮助改进代码,增加功能,也可以是完善文档等等。向对应仓库发起 pr 即可。",-1);function E(H,V){const r=a("ExternalLinkIcon");return s(),l("div",null,[c,d,e("p",null,[t("海豹的所有源代码都托管在 "),e("a",h,[t("海豹开源组织 GitHub"),n(r)]),t(" 下,每个模块都存放在对应的仓库中,可阅读对应仓库的 Readme 获取更多信息。")]),_,e("ul",null,[e("li",null,[e("a",u,[t("核心"),n(r)]),t(":海豹的 Go 后端代码仓库,这个仓库也作为海豹的主仓库,Bug 可反馈在该仓库的 issue 中;")]),e("li",null,[e("a",p,[t("UI"),n(r)]),t(":海豹的前端代码,基于 Vue3 + ElementPlus 开发;")]),e("li",null,[e("a",b,[t("手册(新)"),n(r)]),t(":海豹新版官方手册(即当前的手册)的源码,如对手册有什么改进内容可以在该项目提交 pr;")]),e("li",null,[e("a",f,[t("构建"),n(r)]),t(":海豹的自动构建仓库,用于自动化发布海豹的每日构建包与 Release;")]),m]),g,x,e("p",null,[t("所有的 Bug 和功能建议都可反馈在 "),e("a",k,[t("核心"),n(r)]),t(" 仓库的 issue 中,按照模板填写可方便开发组快速定位问题。")]),B,v,G])}const L=o(i,[["render",E],["__file","develop.html.vue"]]);export{L as default}; diff --git a/assets/dnd5e.html-57f4fe99.js b/assets/dnd5e.html-57f4fe99.js new file mode 100644 index 000000000..74f59a04e --- /dev/null +++ b/assets/dnd5e.html-57f4fe99.js @@ -0,0 +1,188 @@ +import{_ as e}from"./plugin-vue_export-helper-c27b6911.js";import{o as d,c as i,e as n}from"./app-d2f9e1e0.js";const s={},l=n(`

    龙与地下城 5E

    本节内容

    本节将展示 D&D 5E 玩家所需指令,请善用侧边栏和搜索,按需阅读文档。

    我们假定你已对 D&D 规则有适当了解,本节只涉及如何使用海豹核心完成规则中指定的操作。

    龙与地下城

    「龙与地下城」(Dungeons & Dragons, D&D, DnD)是一款剑与魔法奇幻背景的叙事性角色扮演游戏。与孩提时代的过家家扮演游戏相似,D&D 依靠的是玩家无穷的想象力。

    你所需要做的,即是描述场景如暴风骤雨里,夜空下的某座高耸古堡。然后想象奇幻世界中的冒险者们会如何迎接即将到来的挑战。

    .dnd / .dndx 生成随机属性(制卡)

    .dnd (<数量>) 随机生成指定组数的待分配属性,如果省略数量将生成 1 组。

    .dndx (<数量>) 随机生成带属性名的结果。

    $ .dnd 5
    +<木落>的DnD5e人物作成(自由分配模式):
    +[16, 16, 14, 11, 10, 9] = 76
    +[16, 15, 15, 12, 9, 9] = 76
    +[16, 15, 14, 13, 13, 12] = 83
    +[18, 17, 15, 14, 13, 8] = 85
    +[15, 14, 13, 13, 10, 8] = 73
    +获取带属性名的预设请用.dndx
    +
    +$ .dndx 5
    +<木落>的DnD5e人物作成(预设模式):
    +力量:16 体质:9 敏捷:14 智力:10 感知:13 魅力:10 共计:72
    +力量:13 体质:12 敏捷:8 智力:8 感知:14 魅力:9 共计:64
    +力量:16 体质:10 敏捷:11 智力:14 感知:12 魅力:10 共计:73
    +力量:9 体质:17 敏捷:15 智力:9 感知:10 魅力:13 共计:73
    +力量:12 体质:6 敏捷:8 智力:13 感知:10 魅力:8 共计:57
    +自由分配模式请用.dnd
    +

    .ri 先攻设置

    .ri <先攻值> (<角色名>) 为指定角色设定先攻值。如果省略角色名则默认为当前角色,以下的角色名部分相同。

    其中,先攻值部分支持以下三种写法

    1. .ri 12 固定值 12;
    2. .ri +2 掷骰 D20+2;
    3. .ri =D20+3 掷骰 D15+3。

    .ri <单项>, <单项>, ... 批量设定多个角色的先攻值,每个单项都是 <先攻值> <角色名> 形式。

    .ri +2
    +<木落>对先攻点数设置如下:
    + 1. 木落: 15[1d20=15] + 2=17
    +
    +.ri +3 狗头人1
    +<木落>对先攻点数设置如下:
    + 1. 狗头人1: 15[1d20=15] + 3=18
    +
    +.ri =D20+2 狗头人1
    +<木落>对先攻点数设置如下:
    + 1. 狗头人1: 13
    +
    +.ri 30 狗头人1
    +<木落>对先攻点数设置如下:
    + 1. 狗头人1: 30
    +
    +.ri 优势+2 狗头人2
    +<木落>对先攻点数设置如下:
    + 1. 狗头人2: 13[{13 | 11 }] + 2=15
    +
    +.ri +2 狗头人1, 3 狗头人2, =d30 狗头人3, +3
    +<木落>对先攻点数设置如下:
    + 1. 木落: 19[1d20=19] + 3=22
    + 2. 狗头人3: 17
    + 3. 狗头人1: 15[1d20=15] + 2=17
    + 4. 狗头人2: 3
    +

    .init 先攻列表

    .init 查看先攻列表。

    .init del <单位1> <单位2> ... 从先攻列表中删除指定单位。

    .init set <单位名称> <先攻表达式> 为指定单位设定先攻值。

    .init clr 清除先攻列表。

    .init end 结束当前的回合,并开始下一回合;如果轮到玩家行动,会 at 将要行动的玩家。

    .init help 显示帮助。

    # 已经设置了先攻列表的情况
    +$ .init
    +当前先攻列表为:
    + 1. 木落: 22
    + 2. 狗头人3: 17
    + 3. 狗头人1: 17
    + 4. 狗头人2: 3
    +当前回合:木落
    +
    +$ .init del 狗头人2
    +<木落>将以下单位从先攻列表中移除:
    + 1. 狗头人2
    +
    +$ .init set 狗头人3 16
    +<木落>已设置 狗头人3 的先攻点为16 16
    +
    +$ .init end
    +【木落】戏份结束了,下面该【狗头人1】出场了!
    +

    .st 操作角色卡

    .st help 获取帮助信息

    列出属性

    .st show 列出角色卡所有属性。

    .st show <属性1> <属性2> ... 列出指定的属性数值。

    .st show <数值> 列出高于指定数值的属性。

    .st export 导出属性值和法术位。

    删除属性

    .st clr/clear 删除所有属性数值和法术位。

    .st del <属性1> <属性2> ... 删除指定属性。

    更新属性值

    .st 模板 获取角色卡录入模板。

    .st <属性>:<值> 设置指定属性,技能加值会自动计算。

    .st <属性>=<值> 与前一用法相同,可避免中英文冒号的识别问题。

    .st <属性>±<表达式> 将指定属性增加或减去表达式的计算结果。表达式中可以包含骰点。如 .st 生命+1d4

    .st hp-1d6 --over 前一用法的特殊情况,不计算临时生命扣血。

    $ .st 模板
    +人物卡模板(第二行文本):
    +.dst 力量:10 体质:10 敏捷:10 智力:10 感知:10 魅力:10 hp:10 hpmax: 10 熟练:2 运动:0 特技:0 巧手:0 隐匿:0 调查:0 奥秘:0 历史:0 自然:0 宗教:0 察觉:0 洞悉:0 驯养:0 医疗:0 生存:0 说服:0 欺诈:0 威吓:0 表演:0
    +注意: 技能只填写修正值即可,属性调整值会自动计算。熟练写为“运动*:0”
    +
    +$ .st 力量:12 体质:10 敏捷:10 智力:10 感知:10 魅力:10 hp:10 hpmax: 10 熟练:2 运动*:3 特技:1 巧手:0 隐匿:0 调查:0 奥秘:0 历史:0 自然:0 宗教:0 察觉:0 洞悉:0 驯养:0 医疗:0 生存:0 说服:0 欺诈:0 威吓:0 表演:0
    +<木落>的dnd5e人物属性设置如下:
    +读入: 力量:12, 体质:10, 敏捷:10, 智力:10, 感知:10, 魅力:10, hp:10, hpmax:10, 熟练:2, 运动:3[技能, 熟练], 特技:1[技能], 巧手:0[技能], 隐匿:0[技能], 调查:0[技能], 奥秘:0[技能], 历史:0[技能], 自然:0[技能], 宗教:0[技能], 察觉:0[技能], 洞悉:0[技能], 驯养:0[技能], 医疗:0[技能], 生存:0[技能], 说服:0[技能], 欺诈:0[技能], 威吓:0[技能], 表演:0[技能]
    +
    +$ .st show
    +<木落>的个人属性为:
    +力量: 12  敏捷: 10  体质: 10  智力: 10
    +感知: 10  魅力: 10  hp: 10  hpmax: 10
    +EXP: 0  熟练: 2   特技: 1[基础值1] 运动: 6[基础值3]
    +(下略)
    +
    +$ .st show 力量 运动 熟练
    +<木落>的个人属性为:
    +力量: 12  熟练: 2   运动: 6[基础值3]
    +
    +$ .st 力量 + 2
    +人物属性设置如下:
    +修改: 力量(12 ➯ 14)
    +

    属性修改后,属性调整值会自动变更。不用再行关注。

    对生命值的特殊支持

    • 当存在临时生命 (buff 血量),自动优先消耗。若临时生命不足以抵挡伤害,剩余会扣减血量;
    • 当生命值归零,若伤害大于等于血量上限,判定人物死亡;
    • 当生命值归零,若伤害小于血量上限,人物昏迷;
    • 当人物已经昏迷,不足致死的伤害自动折算为死亡豁免失败。
    $ .st hp-3 hp-3 hp-3
    +<木落>的dnd5e人物属性设置如下:
    +修改: hp(2 ➯ 0), hp(0 ➯ 0), hp(0 ➯ 0)
    +<木落>遭受了1点过量伤害,生命值降至0,陷入了昏迷!
    +<木落>在昏迷状态下遭受了3点过量伤害,死亡豁免失败+1!
    +<木落>在昏迷状态下遭受了3点过量伤害,死亡豁免失败+1!
    +

    退游小技巧,黑暗录卡:

    .st 力量:4d6k3 体质:4d6k3 敏捷:4d6k3 智力:4d6k3 感知:4d6k3 魅力:4d6k3 hp:10 hpmax: 10 熟练:2 运动:0 特技:0 巧手:0 隐匿:0 调查:0 奥秘:0 历史:0 自然:0 宗教:0 察觉:0 洞悉:0 驯养:0 医疗:0 生存:0 说服:0 欺诈:0 威吓:0 表演:0
    +

    代骰

    以上功能均可以通过附加 @其他人 来操作对方的属性值。

    .rc 检定

    .rc <属性> 进行检定。

    .rc <属性>豁免 进行豁免检定。

    .rc <表达式> 使用可带调整值的表达式进行检定,如 力量+3

    .rc (优势|劣势) <表达式> 进行优势或劣势检定。

    $ .rc 运动
    +<木落>的“运动”检定结果为:
    +8[1d20=8] + 6[运动=6] = 14
    +
    +$ .rc 优势 力量+4
    +<木落>的“力量+4”检定结果为:
    +17[{17 | 11 }] + 12[力量=12] + 4 = 33
    +
    +$ .rc 劣势 力量+4 推一下试试
    +<木落>的“推一下试试”检定结果为:
    +17[{17 | 18 }] + 12[力量=12] + 4 = 33
    +

    代骰

    以上功能均可以通过附加 @其他人 来使用对方的技能进行检定。

    奇妙运用

    你可以通过如下方式记录武器的熟练项。

    $ .st 长剑=4
    +<木落>的属性录入完成,本次录入了1条数据。
    +
    +$ .rc 长剑
    +<木落>的“长剑”检定(dnd5e)结果为:
    +16[1d20=16] + 4[长剑=4] = 20
    +

    .buff 临时属性

    .buff help 显示帮助。

    .buff 展示当前 buff。

    .buff clr 清除 buff。

    .buff del <属性1> <属性2> ... 删除指定属性的 buff。

    .buff <属性>:<值> 为指定属性设定 buff。

    .buff <属性>±<表达式> 修改指定属性的 buff。

    用于设置临时属性,例如虚假生命:

    $ .st hp:10
    +<木落>的dnd5e人物属性设置如下:
    +读入: hp:10
    +
    +$ .buff hp : 1d4+4
    +<木落>的dnd5e人物Buff属性设置如下:
    +读入: hp:7
    +
    +$ .st show hp
    +<木落>的个人属性为:
    +hp:17[10]
    +

    也可以用来设置其他属性:

    $ .st 力量:10  运动:0
    +<木落>的dnd5e人物属性设置如下:
    +读入: 力量:10, 运动:0[技能]
    +
    +$ .buff 力量:6
    +<木落>的dnd5e人物Buff属性设置如下:
    +读入: 力量:6
    +
    +$ .st show 力量 运动
    +<木落>的个人属性为:
    +力量:16[10] 运动:3[0]
    +

    临时的技能熟练(装备或法术效果):

    $ .st 力量:10  运动:0 熟练:3
    +<木落>的dnd5e人物属性设置如下:
    +读入: 力量:10, 运动:0[技能], 熟练:3
    +
    +$ .buff 运动*:0
    +<木落>的dnd5e人物Buff属性设置如下:
    +读入: 运动:0[技能, 熟练*]
    +
    +$ .st show 力量 运动
    +<木落>的个人属性为:
    +力量:16[10] 运动:6[0]
    +

    删除和清空

    $ .buff del hp
    +<木落>的如下buff属性被成功删除:hp,失败0项
    +
    +$ .buff clr
    +<木落>的BUFF数据已经清除,共计0条
    +

    代骰

    以上功能均可以通过附加 @其他人 来操作对方的 buff。

    .ss 法术位 (spell slots)

    .ss 查看当前法术位状况。

    .ss init 4 3 2 设置 1 2 3 环的法术位上限,以此类推,上不封顶。

    .ss set 2环 4 单独设置某一环的法术位上限,可用逗号分隔地连写多组。

    .ss clr 清除法术位设置。

    .ss rest 恢复所有法术位 (不回复 hp)。

    .ss 3环 +1 增加一个 3 环法术位(不会超过上限)。

    .ss lv3 +1 同上,另一种写法。

    .ss 3环 -1 消耗一个 3 环法术位。

    $ .ss init 3 4 5
    +为<木落>设置法术位: 1环3个, 2环4个, 3环5个
    +
    +$ .ss 1环 -1
    +<木落>的1环法术位消耗至2个,上限3个
    +
    +$ .ss
    +<木落>的法术位状况: 1环:2/3, 2环:4/4, 3环:5/5
    +
    +$ .ss rest
    +<木落>的法术位已经完全恢复
    +
    +$ .ss set 4环 3
    +为<木落>设置法术位: 4环3个
    +

    代骰

    以上功能均可以通过附加 @其他人 来操作对方的法术位。

    .cast 使用法术位

    .cast <环数> (<消耗数量>) 消耗指定数量的指定法术位,省略消耗数量时,消耗 1 个。

    $ .cast 2
    +<木落>的2环法术位消耗至3个,上限4个
    +

    代骰

    以上功能均可以通过附加 @其他人 来消耗对方的法术位。

    .longrest / .长休

    .longrest 恢复生命值和法术位。当前角色需已设定最大生命值且当前生命值大于 0。

    $ .长休
    +<木落>的长休: hp得到了恢复,现为12 法术位得到了恢复
    +
    +$ .长休
    +<木落>的长休: 没有设置hpmax,无法回复hp
    +

    代骰

    以上功能均可以通过附加 @其他人 来令对方进行长休。

    .ds / .死亡豁免

    .ds help 查看帮助。

    .ds 进行一次死亡豁免检定,此时角色 hp 必须为 0。

    .ds +1d4 检定时添加 1d4 的加值。

    .ds (成功|失败)±<变化值> 死亡豁免的成功或失败数量增加或减少指定值。成功和失败可分别简写为 sf

    .ds stat 查看当前死亡豁免情况。

    st 指令对 hp 的操作也会自动触发死亡豁免。

    $ .st hp:3 hpmax:12
    +<木落>的dnd5e人物属性设置如下:
    +读入: hp:3, hpmax:12
    +
    +$ .st hp-10
    +<木落>的dnd5e人物属性设置如下:
    +修改: hp(3 ➯ 0)
    +<木落>遭受了7点过量伤害,生命值降至0,陷入了昏迷!
    +
    +# 昏迷后被攻击:
    +<木落>的dnd5e人物属性设置如下:
    +修改: hp(0 ➯ 0)
    +<木落>在昏迷状态下遭受了1点过量伤害,死亡豁免失败+1!
    +
    +# 死亡
    +<木落>的死亡豁免检定: [1d20=3]=3 有些不妙!死亡豁免失败+1
    +你获得了3次死亡豁免检定失败,不幸去世了!
    +
    +# 医学奇迹:
    +<木落>的死亡豁免检定: [1d20=20]=20 你觉得你还可以抢救一下!HP回复1点!
    +

    代骰

    以上功能均可以通过附加 @其他人 来令对方进行死亡豁免。

    `,104),a=[l];function c(t,r){return d(),i("div",null,a)}const b=e(s,[["render",c],["__file","dnd5e.html.vue"]]);export{b as default}; diff --git a/assets/dnd5e.html-69dfc74c.js b/assets/dnd5e.html-69dfc74c.js new file mode 100644 index 000000000..619c72742 --- /dev/null +++ b/assets/dnd5e.html-69dfc74c.js @@ -0,0 +1 @@ +const e=JSON.parse('{"key":"v-4f9c5270","path":"/use/dnd5e.html","title":"龙与地下城 5E","lang":"zh-cn","frontmatter":{"lang":"zh-cn","title":"龙与地下城 5E","description":"本节内容 本节将展示 D&D 5E 玩家所需指令,请善用侧边栏和搜索,按需阅读文档。 我们假定你已对 D&D 规则有适当了解,本节只涉及如何使用海豹核心完成规则中指定的操作。 龙与地下城 「龙与地下城」(Dungeons & Dragons, D&D, DnD)是一款剑与魔法奇幻背景的叙事性角色扮演游戏。与孩提时代的过家家扮演游戏相似,D&D 依靠的是...","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/use/dnd5e.html"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"龙与地下城 5E"}],["meta",{"property":"og:description","content":"本节内容 本节将展示 D&D 5E 玩家所需指令,请善用侧边栏和搜索,按需阅读文档。 我们假定你已对 D&D 规则有适当了解,本节只涉及如何使用海豹核心完成规则中指定的操作。 龙与地下城 「龙与地下城」(Dungeons & Dragons, D&D, DnD)是一款剑与魔法奇幻背景的叙事性角色扮演游戏。与孩提时代的过家家扮演游戏相似,D&D 依靠的是..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-cn"}],["meta",{"property":"og:updated_time","content":"2023-11-02T04:52:18.000Z"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-11-02T04:52:18.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"龙与地下城 5E\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2023-11-02T04:52:18.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[{"level":2,"title":".dnd / .dndx 生成随机属性(制卡)","slug":"dnd-dndx-生成随机属性-制卡","link":"#dnd-dndx-生成随机属性-制卡","children":[]},{"level":2,"title":".ri 先攻设置","slug":"ri-先攻设置","link":"#ri-先攻设置","children":[]},{"level":2,"title":".init 先攻列表","slug":"init-先攻列表","link":"#init-先攻列表","children":[]},{"level":2,"title":".st 操作角色卡","slug":"st-操作角色卡","link":"#st-操作角色卡","children":[{"level":3,"title":".st help 获取帮助信息","slug":"st-help-获取帮助信息","link":"#st-help-获取帮助信息","children":[]},{"level":3,"title":"列出属性","slug":"列出属性","link":"#列出属性","children":[]},{"level":3,"title":"删除属性","slug":"删除属性","link":"#删除属性","children":[]},{"level":3,"title":"更新属性值","slug":"更新属性值","link":"#更新属性值","children":[]},{"level":3,"title":"代骰","slug":"代骰","link":"#代骰","children":[]}]},{"level":2,"title":".rc 检定","slug":"rc-检定","link":"#rc-检定","children":[{"level":3,"title":"代骰","slug":"代骰-1","link":"#代骰-1","children":[]},{"level":3,"title":"奇妙运用","slug":"奇妙运用","link":"#奇妙运用","children":[]}]},{"level":2,"title":".buff 临时属性","slug":"buff-临时属性","link":"#buff-临时属性","children":[{"level":3,"title":"代骰","slug":"代骰-2","link":"#代骰-2","children":[]}]},{"level":2,"title":".ss 法术位 (spell slots)","slug":"ss-法术位-spell-slots","link":"#ss-法术位-spell-slots","children":[{"level":3,"title":"代骰","slug":"代骰-3","link":"#代骰-3","children":[]}]},{"level":2,"title":".cast 使用法术位","slug":"cast-使用法术位","link":"#cast-使用法术位","children":[{"level":3,"title":"代骰","slug":"代骰-4","link":"#代骰-4","children":[]}]},{"level":2,"title":".longrest / .长休","slug":"longrest-长休","link":"#longrest-长休","children":[{"level":3,"title":"代骰","slug":"代骰-5","link":"#代骰-5","children":[]}]},{"level":2,"title":".ds / .死亡豁免","slug":"ds-死亡豁免","link":"#ds-死亡豁免","children":[{"level":3,"title":"代骰","slug":"代骰-6","link":"#代骰-6","children":[]}]}],"git":{"createdTime":1698059111000,"updatedTime":1698900738000,"contributors":[{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":5},{"name":"Xiangze Li","email":"lee_johnson@qq.com","commits":2},{"name":"Szzrain","email":"54656633+Szzrain@users.noreply.github.com","commits":1}]},"readingTime":{"minutes":11.21,"words":3363},"filePathRelative":"use/dnd5e.md","localizedDate":"2023年10月23日","autoDesc":true,"excerpt":""}');export{e as data}; diff --git a/assets/edges-f15a7e05-a8484ad2.js b/assets/edges-f15a7e05-a8484ad2.js new file mode 100644 index 000000000..033727bd3 --- /dev/null +++ b/assets/edges-f15a7e05-a8484ad2.js @@ -0,0 +1,4 @@ +import{q as I,c as w,d as q,an as Q,h as M,l as x,y as j,ao as nt}from"./mermaid.core-d8bc71ff.js";import{c as at}from"./createText-80c3befb-7196e989.js";import{l as lt}from"./line-e21175d5.js";const ct=(a,t,r,n)=>{t.forEach(e=>{ut[e](a,r,n)})},ht=(a,t,r)=>{x.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")},ot=(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")},ft=(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")},pt=(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")},yt=(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)},dt=(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")},bt=(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")},gt=(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:ht,composition:ot,aggregation:ft,dependency:pt,lollipop:yt,point:dt,circle:xt,cross:bt,barb:gt},rr=ct;function wt(a,t){t&&a.attr("style",t)}function mt(a){const t=M(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=t.append("xhtml:div"),n=a.label,e=a.isNode?"nodeLabel":"edgeLabel";return r.html('"+n+""),wt(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 kt=(a,t,r,n)=>{let e=a||"";if(typeof e=="object"&&(e=e[0]),I(w().flowchart.htmlLabels)){e=e.replace(/\\n|\n/g,"
    "),x.info("vertexText"+e);const i={isNode:n,label:Q(e).replace(/fa[blrs]?:fa-[\w-]+/g,l=>``),labelStyle:t.replace("fill:","color:")};return mt(i)}else{const i=document.createElementNS("http://www.w3.org/2000/svg","text");i.setAttribute("style",t.replace("color:","fill:"));let s=[];typeof e=="string"?s=e.split(/\\n|\n|/gi):Array.isArray(e)?s=e:s=[];for(const l 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"),r?c.setAttribute("class","title-row"):c.setAttribute("class","row"),c.textContent=l.trim(),i.appendChild(c)}return i}},$=kt,_=async(a,t,r,n)=>{let e;const i=t.useHtmlLabels||I(w().flowchart.htmlLabels);r?e=r:e="node default";const s=a.insert("g").attr("class",e).attr("id",t.domId||t.id),l=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=l.node();let h;t.labelType==="markdown"?h=at(l,q(Q(c),w()),{useHtmlLabels:i,width:t.width||w().flowchart.wrappingWidth,classes:"markdown-node-label"}):h=o.appendChild($(q(Q(c),w()),t.labelStyle,!1,n));let f=h.getBBox();const y=t.padding/2;if(I(w().flowchart.htmlLabels)){const p=h.children[0],u=M(h),k=p.getElementsByTagName("img");if(k){const g=c.replace(/]*>/g,"").trim()==="";await Promise.all([...k].map(d=>new Promise(b=>{function B(){if(d.style.display="flex",d.style.flexDirection="column",g){const C=w().fontSize?w().fontSize:window.getComputedStyle(document.body).fontSize,X=5;d.style.width=parseInt(C,10)*X+"px"}else d.style.width="100%";b(d)}setTimeout(()=>{d.complete&&B()}),d.addEventListener("error",B),d.addEventListener("load",B)})))}f=p.getBoundingClientRect(),u.attr("width",f.width),u.attr("height",f.height)}return i?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:s,bbox:f,halfPadding:y,label:l}},v=(a,t)=>{const r=t.node().getBBox();a.width=r.width,a.height=r.height};function N(a,t,r,n){return a.insert("polygon",":first-child").attr("points",n.map(function(e){return e.x+","+e.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}function vt(a,t){return a.intersect(t)}function et(a,t,r,n){var e=a.x,i=a.y,s=e-n.x,l=i-n.y,c=Math.sqrt(t*t*l*l+r*r*s*s),o=Math.abs(t*r*s/c);n.x0}function Et(a,t,r){var n=a.x,e=a.y,i=[],s=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(u){s=Math.min(s,u.x),l=Math.min(l,u.y)}):(s=Math.min(s,t.x),l=Math.min(l,t.y));for(var c=n-a.width/2-s,o=e-a.height/2-l,h=0;h1&&i.sort(function(u,k){var g=u.x-r.x,d=u.y-r.y,b=Math.sqrt(g*g+d*d),B=k.x-r.x,C=k.y-r.y,X=Math.sqrt(B*B+C*C);return b{var r=a.x,n=a.y,e=t.x-r,i=t.y-n,s=a.width/2,l=a.height/2,c,o;return Math.abs(i)*s>Math.abs(e)*l?(i<0&&(l=-l),c=i===0?0:l*e/i,o=l):(e<0&&(s=-s),c=s,o=e===0?0:s*i/e),{x:r+c,y:n+o}},Mt=Bt,m={node:vt,circle:Lt,ellipse:et,polygon:Et,rect:Mt},_t=async(a,t)=>{t.useHtmlLabels||w().flowchart.htmlLabels||(t.centerLabel=!0);const{shapeSvg:n,bbox:e,halfPadding:i}=await _(a,t,"node "+t.classes,!0);x.info("Classes = ",t.classes);const s=n.insert("rect",":first-child");return s.attr("rx",t.rx).attr("ry",t.ry).attr("x",-e.width/2-i).attr("y",-e.height/2-i).attr("width",e.width+t.padding).attr("height",e.height+t.padding),v(t,s),t.intersect=function(l){return m.rect(t,l)},n},Ct=_t,K=a=>a?" "+a:"",R=(a,t)=>`${t||"node default"}${K(a.classes)} ${K(a.class)}`,G=async(a,t)=>{const{shapeSvg:r,bbox:n}=await _(a,t,R(t,void 0),!0),e=n.width+t.padding,i=n.height+t.padding,s=e+i,l=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}];x.info("Question main (Circle)");const c=N(r,s,s,l);return c.attr("style",t.style),v(t,c),t.intersect=function(o){return x.warn("Intersect called"),m.polygon(t,l,o)},r},Tt=(a,t)=>{const r=a.insert("g").attr("class","node default").attr("id",t.domId||t.id),n=28,e=[{x:0,y:n/2},{x:n/2,y:0},{x:0,y:-n/2},{x:-n/2,y:0}];return r.insert("polygon",":first-child").attr("points",e.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 m.circle(t,14,s)},r},Rt=async(a,t)=>{const{shapeSvg:r,bbox:n}=await _(a,t,R(t,void 0),!0),e=4,i=n.height+t.padding,s=i/e,l=n.width+2*s+t.padding,c=[{x:s,y:0},{x:l-s,y:0},{x:l,y:-i/2},{x:l-s,y:-i},{x:s,y:-i},{x:0,y:-i/2}],o=N(r,l,i,c);return o.attr("style",t.style),v(t,o),t.intersect=function(h){return m.polygon(t,c,h)},r},$t=async(a,t)=>{const{shapeSvg:r,bbox:n}=await _(a,t,R(t,void 0),!0),e=n.width+t.padding,i=n.height+t.padding,s=[{x:-i/2,y:0},{x:e,y:0},{x:e,y:-i},{x:-i/2,y:-i},{x:0,y:-i/2}];return N(r,e,i,s).attr("style",t.style),t.width=e+i,t.height=i,t.intersect=function(c){return m.polygon(t,s,c)},r},It=async(a,t)=>{const{shapeSvg:r,bbox:n}=await _(a,t,R(t),!0),e=n.width+t.padding,i=n.height+t.padding,s=[{x:-2*i/6,y:0},{x:e-i/6,y:0},{x:e+2*i/6,y:-i},{x:i/6,y:-i}],l=N(r,e,i,s);return l.attr("style",t.style),v(t,l),t.intersect=function(c){return m.polygon(t,s,c)},r},Ht=async(a,t)=>{const{shapeSvg:r,bbox:n}=await _(a,t,R(t,void 0),!0),e=n.width+t.padding,i=n.height+t.padding,s=[{x:2*i/6,y:0},{x:e+i/6,y:0},{x:e-2*i/6,y:-i},{x:-i/6,y:-i}],l=N(r,e,i,s);return l.attr("style",t.style),v(t,l),t.intersect=function(c){return m.polygon(t,s,c)},r},Nt=async(a,t)=>{const{shapeSvg:r,bbox:n}=await _(a,t,R(t,void 0),!0),e=n.width+t.padding,i=n.height+t.padding,s=[{x:-2*i/6,y:0},{x:e+2*i/6,y:0},{x:e-i/6,y:-i},{x:i/6,y:-i}],l=N(r,e,i,s);return l.attr("style",t.style),v(t,l),t.intersect=function(c){return m.polygon(t,s,c)},r},Ot=async(a,t)=>{const{shapeSvg:r,bbox:n}=await _(a,t,R(t,void 0),!0),e=n.width+t.padding,i=n.height+t.padding,s=[{x:i/6,y:0},{x:e-i/6,y:0},{x:e+2*i/6,y:-i},{x:-2*i/6,y:-i}],l=N(r,e,i,s);return l.attr("style",t.style),v(t,l),t.intersect=function(c){return m.polygon(t,s,c)},r},Xt=async(a,t)=>{const{shapeSvg:r,bbox:n}=await _(a,t,R(t,void 0),!0),e=n.width+t.padding,i=n.height+t.padding,s=[{x:0,y:0},{x:e+i/2,y:0},{x:e,y:-i/2},{x:e+i/2,y:-i},{x:0,y:-i}],l=N(r,e,i,s);return l.attr("style",t.style),v(t,l),t.intersect=function(c){return m.polygon(t,s,c)},r},Yt=async(a,t)=>{const{shapeSvg:r,bbox:n}=await _(a,t,R(t,void 0),!0),e=n.width+t.padding,i=e/2,s=i/(2.5+e/50),l=n.height+s+t.padding,c="M 0,"+s+" a "+i+","+s+" 0,0,0 "+e+" 0 a "+i+","+s+" 0,0,0 "+-e+" 0 l 0,"+l+" a "+i+","+s+" 0,0,0 "+e+" 0 l 0,"+-l,o=r.attr("label-offset-y",s).insert("path",":first-child").attr("style",t.style).attr("d",c).attr("transform","translate("+-e/2+","+-(l/2+s)+")");return v(t,o),t.intersect=function(h){const f=m.rect(t,h),y=f.x-t.x;if(i!=0&&(Math.abs(y)t.height/2-s)){let p=s*s*(1-y*y/(i*i));p!=0&&(p=Math.sqrt(p)),p=s-p,h.y-t.y>0&&(p=-p),f.y+=p}return f},r},Wt=async(a,t)=>{const{shapeSvg:r,bbox:n,halfPadding:e}=await _(a,t,"node "+t.classes+" "+t.class,!0),i=r.insert("rect",":first-child"),s=n.width+t.padding,l=n.height+t.padding;if(i.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",-n.width/2-e).attr("y",-n.height/2-e).attr("width",s).attr("height",l),t.props){const c=new Set(Object.keys(t.props));t.props.borders&&(st(i,t.props.borders,s,l),c.delete("borders")),c.forEach(o=>{x.warn(`Unknown node property ${o}`)})}return v(t,i),t.intersect=function(c){return m.rect(t,c)},r},Dt=async(a,t)=>{const{shapeSvg:r}=await _(a,t,"label",!0);x.trace("Classes = ",t.class);const n=r.insert("rect",":first-child"),e=0,i=0;if(n.attr("width",e).attr("height",i),r.attr("class","label edgeLabel"),t.props){const s=new Set(Object.keys(t.props));t.props.borders&&(st(n,t.props.borders,e,i),s.delete("borders")),s.forEach(l=>{x.warn(`Unknown node property ${l}`)})}return v(t,n),t.intersect=function(s){return m.rect(t,s)},r};function st(a,t,r,n){const e=[],i=l=>{e.push(l,0)},s=l=>{e.push(0,l)};t.includes("t")?(x.debug("add top border"),i(r)):s(r),t.includes("r")?(x.debug("add right border"),i(n)):s(n),t.includes("b")?(x.debug("add bottom border"),i(r)):s(r),t.includes("l")?(x.debug("add left border"),i(n)):s(n),a.attr("stroke-dasharray",e.join(" "))}const jt=(a,t)=>{let r;t.classes?r="node "+t.classes:r="node default";const n=a.insert("g").attr("class",r).attr("id",t.domId||t.id),e=n.insert("rect",":first-child"),i=n.insert("line"),s=n.insert("g").attr("class","label"),l=t.labelText.flat?t.labelText.flat():t.labelText;let c="";typeof l=="object"?c=l[0]:c=l,x.info("Label text abc79",c,l,typeof l=="object");const o=s.node().appendChild($(c,t.labelStyle,!0,!0));let h={width:0,height:0};if(I(w().flowchart.htmlLabels)){const k=o.children[0],g=M(o);h=k.getBoundingClientRect(),g.attr("width",h.width),g.attr("height",h.height)}x.info("Text 2",l);const f=l.slice(1,l.length);let y=o.getBBox();const p=s.node().appendChild($(f.join?f.join("
    "):f,t.labelStyle,!0,!0));if(I(w().flowchart.htmlLabels)){const k=p.children[0],g=M(p);h=k.getBoundingClientRect(),g.attr("width",h.width),g.attr("height",h.height)}const u=t.padding/2;return M(p).attr("transform","translate( "+(h.width>y.width?0:(y.width-h.width)/2)+", "+(y.height+u+5)+")"),M(o).attr("transform","translate( "+(h.width{const{shapeSvg:r,bbox:n}=await _(a,t,R(t,void 0),!0),e=n.height+t.padding,i=n.width+e/4+t.padding,s=r.insert("rect",":first-child").attr("style",t.style).attr("rx",e/2).attr("ry",e/2).attr("x",-i/2).attr("y",-e/2).attr("width",i).attr("height",e);return v(t,s),t.intersect=function(l){return m.rect(t,l)},r},Ut=async(a,t)=>{const{shapeSvg:r,bbox:n,halfPadding:e}=await _(a,t,R(t,void 0),!0),i=r.insert("circle",":first-child");return i.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",n.width/2+e).attr("width",n.width+t.padding).attr("height",n.height+t.padding),x.info("Circle main"),v(t,i),t.intersect=function(s){return x.info("Circle intersect",t,n.width/2+e,s),m.circle(t,n.width/2+e,s)},r},zt=async(a,t)=>{const{shapeSvg:r,bbox:n,halfPadding:e}=await _(a,t,R(t,void 0),!0),i=5,s=r.insert("g",":first-child"),l=s.insert("circle"),c=s.insert("circle");return s.attr("class",t.class),l.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",n.width/2+e+i).attr("width",n.width+t.padding+i*2).attr("height",n.height+t.padding+i*2),c.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",n.width/2+e).attr("width",n.width+t.padding).attr("height",n.height+t.padding),x.info("DoubleCircle main"),v(t,l),t.intersect=function(o){return x.info("DoubleCircle intersect",t,n.width/2+e+i,o),m.circle(t,n.width/2+e+i,o)},r},Zt=async(a,t)=>{const{shapeSvg:r,bbox:n}=await _(a,t,R(t,void 0),!0),e=n.width+t.padding,i=n.height+t.padding,s=[{x:0,y:0},{x:e,y:0},{x:e,y:-i},{x:0,y:-i},{x:0,y:0},{x:-8,y:0},{x:e+8,y:0},{x:e+8,y:-i},{x:-8,y:-i},{x:-8,y:0}],l=N(r,e,i,s);return l.attr("style",t.style),v(t,l),t.intersect=function(c){return m.polygon(t,s,c)},r},Ft=(a,t)=>{const r=a.insert("g").attr("class","node default").attr("id",t.domId||t.id),n=r.insert("circle",":first-child");return n.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),v(t,n),t.intersect=function(e){return m.circle(t,7,e)},r},P=(a,t,r)=>{const n=a.insert("g").attr("class","node default").attr("id",t.domId||t.id);let e=70,i=10;r==="LR"&&(e=10,i=70);const s=n.append("rect").attr("x",-1*e/2).attr("y",-1*i/2).attr("width",e).attr("height",i).attr("class","fork-join");return v(t,s),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(l){return m.rect(t,l)},n},Qt=(a,t)=>{const r=a.insert("g").attr("class","node default").attr("id",t.domId||t.id),n=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),n.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),v(t,e),t.intersect=function(i){return m.circle(t,7,i)},r},Vt=(a,t)=>{const r=t.padding/2,n=4,e=8;let i;t.classes?i="node "+t.classes:i="node default";const s=a.insert("g").attr("class",i).attr("id",t.domId||t.id),l=s.insert("rect",":first-child"),c=s.insert("line"),o=s.insert("line");let h=0,f=n;const y=s.insert("g").attr("class","label");let p=0;const u=t.classData.annotations&&t.classData.annotations[0],k=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",g=y.node().appendChild($(k,t.labelStyle,!0,!0));let d=g.getBBox();if(I(w().flowchart.htmlLabels)){const L=g.children[0],S=M(g);d=L.getBoundingClientRect(),S.attr("width",d.width),S.attr("height",d.height)}t.classData.annotations[0]&&(f+=d.height+n,h+=d.width);let b=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(w().flowchart.htmlLabels?b+="<"+t.classData.type+">":b+="<"+t.classData.type+">");const B=y.node().appendChild($(b,t.labelStyle,!0,!0));M(B).attr("class","classTitle");let C=B.getBBox();if(I(w().flowchart.htmlLabels)){const L=B.children[0],S=M(B);C=L.getBoundingClientRect(),S.attr("width",C.width),S.attr("height",C.height)}f+=C.height+n,C.width>h&&(h=C.width);const X=[];t.classData.members.forEach(L=>{const S=L.getDisplayDetails();let Y=S.displayText;w().flowchart.htmlLabels&&(Y=Y.replace(//g,">"));const H=y.node().appendChild($(Y,S.cssStyle?S.cssStyle:t.labelStyle,!0,!0));let T=H.getBBox();if(I(w().flowchart.htmlLabels)){const F=H.children[0],D=M(H);T=F.getBoundingClientRect(),D.attr("width",T.width),D.attr("height",T.height)}T.width>h&&(h=T.width),f+=T.height+n,X.push(H)}),f+=e;const V=[];if(t.classData.methods.forEach(L=>{const S=L.getDisplayDetails();let Y=S.displayText;w().flowchart.htmlLabels&&(Y=Y.replace(//g,">"));const H=y.node().appendChild($(Y,S.cssStyle?S.cssStyle:t.labelStyle,!0,!0));let T=H.getBBox();if(I(w().flowchart.htmlLabels)){const F=H.children[0],D=M(H);T=F.getBoundingClientRect(),D.attr("width",T.width),D.attr("height",T.height)}T.width>h&&(h=T.width),f+=T.height+n,V.push(H)}),f+=e,u){let L=(h-d.width)/2;M(g).attr("transform","translate( "+(-1*h/2+L)+", "+-1*f/2+")"),p=d.height+n}let it=(h-C.width)/2;return M(B).attr("transform","translate( "+(-1*h/2+it)+", "+(-1*f/2+p)+")"),p+=C.height+n,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,X.forEach(L=>{M(L).attr("transform","translate( "+-h/2+", "+(-1*f/2+p+e/2)+")");const S=L==null?void 0:L.getBBox();p+=((S==null?void 0:S.height)??0)+n}),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,V.forEach(L=>{M(L).attr("transform","translate( "+-h/2+", "+(-1*f/2+p)+")");const S=L==null?void 0:L.getBBox();p+=((S==null?void 0:S.height)??0)+n}),l.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),v(t,l),t.intersect=function(L){return m.rect(t,L)},s},tt={rhombus:G,question:G,rect:Wt,labelRect:Dt,rectWithTitle:jt,choice:Tt,circle:Ut,doublecircle:zt,stadium:At,hexagon:Rt,rect_left_inv_arrow:$t,lean_right:It,lean_left:Ht,trapezoid:Nt,inv_trapezoid:Ot,rect_right_inv_arrow:Xt,cylinder:Yt,start:Ft,end:Qt,note:Ct,subroutine:Zt,fork:P,join:P,class_box:Vt};let W={};const ar=async(a,t,r)=>{let n,e;if(t.link){let i;w().securityLevel==="sandbox"?i="_top":t.linkTarget&&(i=t.linkTarget||"_blank"),n=a.insert("svg:a").attr("xlink:href",t.link).attr("target",i),e=await tt[t.shape](n,t,r)}else e=await tt[t.shape](a,t,r),n=e;return t.tooltip&&e.attr("title",t.tooltip),t.class&&e.attr("class","node default "+t.class),W[t.id]=n,t.haveCallback&&W[t.id].attr("class",W[t.id].attr("class")+" clickable"),n},er=(a,t)=>{W[t.id]=a},sr=()=>{W={}},ir=a=>{const t=W[a.id];x.trace("Transforming node",a.diff,a,"translate("+(a.x-a.width/2-5)+", "+a.width/2+")");const r=8,n=a.diff||0;return a.clusterNode?t.attr("transform","translate("+(a.x+n-a.width/2)+", "+(a.y-a.height/2-r)+")"):t.attr("transform","translate("+a.x+", "+a.y+")"),n},O={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:5.3};function A(a,t){a=z(a),t=z(t);const[r,n]=[a.x,a.y],[e,i]=[t.x,t.y],s=e-r,l=i-n;return{angle:Math.atan(l/s),deltaX:s,deltaY:l}}const z=a=>Array.isArray(a)?{x:a[0],y:a[1]}:a,qt=a=>({x:function(t,r,n){let e=0;if(r===0&&Object.hasOwn(O,a.arrowTypeStart)){const{angle:i,deltaX:s}=A(n[0],n[1]);e=O[a.arrowTypeStart]*Math.cos(i)*(s>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(O,a.arrowTypeEnd)){const{angle:i,deltaX:s}=A(n[n.length-1],n[n.length-2]);e=O[a.arrowTypeEnd]*Math.cos(i)*(s>=0?1:-1)}return z(t).x+e},y:function(t,r,n){let e=0;if(r===0&&Object.hasOwn(O,a.arrowTypeStart)){const{angle:i,deltaY:s}=A(n[0],n[1]);e=O[a.arrowTypeStart]*Math.abs(Math.sin(i))*(s>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(O,a.arrowTypeEnd)){const{angle:i,deltaY:s}=A(n[n.length-1],n[n.length-2]);e=O[a.arrowTypeEnd]*Math.abs(Math.sin(i))*(s>=0?1:-1)}return z(t).y+e}});let Z={},E={};const nr=()=>{Z={},E={}},lr=(a,t)=>{const r=I(w().flowchart.htmlLabels),n=t.labelType==="markdown"?at(a,t.label,{style:t.labelStyle,useHtmlLabels:r,addSvgBackground:!0}):$(t.label,t.labelStyle);x.info("abc82",t,t.labelType);const e=a.insert("g").attr("class","edgeLabel"),i=e.insert("g").attr("class","label");i.node().appendChild(n);let s=n.getBBox();if(r){const c=n.children[0],o=M(n);s=c.getBoundingClientRect(),o.attr("width",s.width),o.attr("height",s.height)}i.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),Z[t.id]=e,t.width=s.width,t.height=s.height;let l;if(t.startLabelLeft){const c=$(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+")"),E[t.id]||(E[t.id]={}),E[t.id].startLeft=o,U(l,t.startLabelLeft)}if(t.startLabelRight){const c=$(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+")"),E[t.id]||(E[t.id]={}),E[t.id].startRight=o,U(l,t.startLabelRight)}if(t.endLabelLeft){const c=$(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),E[t.id]||(E[t.id]={}),E[t.id].endLeft=o,U(l,t.endLabelLeft)}if(t.endLabelRight){const c=$(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),E[t.id]||(E[t.id]={}),E[t.id].endRight=o,U(l,t.endLabelRight)}return n};function U(a,t){w().flowchart.htmlLabels&&a&&(a.style.width=t.length*9+"px",a.style.height="12px")}const cr=(a,t)=>{x.info("Moving label abc78 ",a.id,a.label,Z[a.id]);let r=t.updatedPath?t.updatedPath:t.originalPath;if(a.label){const n=Z[a.id];let e=a.x,i=a.y;if(r){const s=j.calcLabelPosition(r);x.info("Moving label "+a.label+" from (",e,",",i,") to (",s.x,",",s.y,") abc78"),t.updatedPath&&(e=s.x,i=s.y)}n.attr("transform","translate("+e+", "+i+")")}if(a.startLabelLeft){const n=E[a.id].startLeft;let e=a.x,i=a.y;if(r){const s=j.calcTerminalLabelPosition(a.arrowTypeStart?10:0,"start_left",r);e=s.x,i=s.y}n.attr("transform","translate("+e+", "+i+")")}if(a.startLabelRight){const n=E[a.id].startRight;let e=a.x,i=a.y;if(r){const s=j.calcTerminalLabelPosition(a.arrowTypeStart?10:0,"start_right",r);e=s.x,i=s.y}n.attr("transform","translate("+e+", "+i+")")}if(a.endLabelLeft){const n=E[a.id].endLeft;let e=a.x,i=a.y;if(r){const s=j.calcTerminalLabelPosition(a.arrowTypeEnd?10:0,"end_left",r);e=s.x,i=s.y}n.attr("transform","translate("+e+", "+i+")")}if(a.endLabelRight){const n=E[a.id].endRight;let e=a.x,i=a.y;if(r){const s=j.calcTerminalLabelPosition(a.arrowTypeEnd?10:0,"end_right",r);e=s.x,i=s.y}n.attr("transform","translate("+e+", "+i+")")}},Jt=(a,t)=>{const r=a.x,n=a.y,e=Math.abs(t.x-r),i=Math.abs(t.y-n),s=a.width/2,l=a.height/2;return e>=s||i>=l},Kt=(a,t,r)=>{x.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 n=a.x,e=a.y,i=Math.abs(n-r.x),s=a.width/2;let l=r.xMath.abs(n-t.x)*c){let f=r.y{x.warn("abc88 cutPathAtIntersect",a,t);let r=[],n=a[0],e=!1;return a.forEach(i=>{if(x.info("abc88 checking point",i,t),!Jt(t,i)&&!e){const s=Kt(t,n,i);x.warn("abc88 inside",i,n,s),x.warn("abc88 intersection",s);let l=!1;r.forEach(c=>{l=l||c.x===s.x&&c.y===s.y}),r.some(c=>c.x===s.x&&c.y===s.y)?x.warn("abc88 no intersect",s,r):r.push(s),e=!0}else x.warn("abc88 outside",i,n),n=i,e||r.push(i)}),x.warn("abc88 returning points",r),r},hr=function(a,t,r,n,e,i,s){let l=r.points,c=!1;const o=i.node(t.v);var h=i.node(t.w);x.info("abc88 InsertEdge: ",r),h.intersect&&o.intersect&&(l=l.slice(1,r.points.length-1),l.unshift(o.intersect(l[0])),x.info("Last point",l[l.length-1],h,h.intersect(l[l.length-1])),l.push(h.intersect(l[l.length-1]))),r.toCluster&&(x.info("to cluster abc88",n[r.toCluster]),l=rt(r.points,n[r.toCluster].node),c=!0),r.fromCluster&&(x.info("from cluster abc88",n[r.fromCluster]),l=rt(l.reverse(),n[r.fromCluster].node).reverse(),c=!0);const f=l.filter(C=>!Number.isNaN(C.y));let y=nt;r.curve&&(e==="graph"||e==="flowchart")&&(y=r.curve);const{x:p,y:u}=qt(r),k=lt().x(p).y(u).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 d=a.append("path").attr("d",k(f)).attr("id",r.id).attr("class"," "+g+(r.classes?" "+r.classes:"")).attr("style",r.style);let b="";switch((w().flowchart.arrowMarkerAbsolute||w().state.arrowMarkerAbsolute)&&(b=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,b=b.replace(/\(/g,"\\("),b=b.replace(/\)/g,"\\)")),x.info("arrowTypeStart",r.arrowTypeStart),x.info("arrowTypeEnd",r.arrowTypeEnd),r.arrowTypeStart){case"arrow_cross":d.attr("marker-start","url("+b+"#"+s+"_"+e+"-crossStart)");break;case"arrow_point":d.attr("marker-start","url("+b+"#"+s+"_"+e+"-pointStart)");break;case"arrow_barb":d.attr("marker-start","url("+b+"#"+s+"_"+e+"-barbStart)");break;case"arrow_circle":d.attr("marker-start","url("+b+"#"+s+"_"+e+"-circleStart)");break;case"aggregation":d.attr("marker-start","url("+b+"#"+s+"_"+e+"-aggregationStart)");break;case"extension":d.attr("marker-start","url("+b+"#"+s+"_"+e+"-extensionStart)");break;case"composition":d.attr("marker-start","url("+b+"#"+s+"_"+e+"-compositionStart)");break;case"dependency":d.attr("marker-start","url("+b+"#"+s+"_"+e+"-dependencyStart)");break;case"lollipop":d.attr("marker-start","url("+b+"#"+s+"_"+e+"-lollipopStart)");break}switch(r.arrowTypeEnd){case"arrow_cross":d.attr("marker-end","url("+b+"#"+s+"_"+e+"-crossEnd)");break;case"arrow_point":d.attr("marker-end","url("+b+"#"+s+"_"+e+"-pointEnd)");break;case"arrow_barb":d.attr("marker-end","url("+b+"#"+s+"_"+e+"-barbEnd)");break;case"arrow_circle":d.attr("marker-end","url("+b+"#"+s+"_"+e+"-circleEnd)");break;case"aggregation":d.attr("marker-end","url("+b+"#"+s+"_"+e+"-aggregationEnd)");break;case"extension":d.attr("marker-end","url("+b+"#"+s+"_"+e+"-extensionEnd)");break;case"composition":d.attr("marker-end","url("+b+"#"+s+"_"+e+"-compositionEnd)");break;case"dependency":d.attr("marker-end","url("+b+"#"+s+"_"+e+"-dependencyEnd)");break;case"lollipop":d.attr("marker-end","url("+b+"#"+s+"_"+e+"-lollipopEnd)");break}let B={};return c&&(B.updatedPath=l),B.originalPath=r.points,B};export{ar as a,lr as b,hr as c,cr as d,sr as e,nr as f,$ as g,Mt as h,rr as i,qt as j,_ as l,ir as p,er as s,v as u}; diff --git a/assets/edit-deck-hide-key-ba6fd35a.png b/assets/edit-deck-hide-key-ba6fd35a.png new file mode 100644 index 000000000..a950e855f Binary files /dev/null and b/assets/edit-deck-hide-key-ba6fd35a.png differ diff --git a/assets/edit-reply-random-pic-d4a0463d.png b/assets/edit-reply-random-pic-d4a0463d.png new file mode 100644 index 000000000..e9541b22d Binary files /dev/null and b/assets/edit-reply-random-pic-d4a0463d.png differ diff --git a/assets/edit-reply-single-person-mod-a08a73d1.png b/assets/edit-reply-single-person-mod-a08a73d1.png new file mode 100644 index 000000000..d07971867 Binary files /dev/null and b/assets/edit-reply-single-person-mod-a08a73d1.png differ diff --git a/assets/edit-reply-single-person-mod1-830dda41.png b/assets/edit-reply-single-person-mod1-830dda41.png new file mode 100644 index 000000000..0add85e4f Binary files /dev/null and b/assets/edit-reply-single-person-mod1-830dda41.png differ diff --git a/assets/edit-reply-single-person-mod2-76ef5a70.png b/assets/edit-reply-single-person-mod2-76ef5a70.png new file mode 100644 index 000000000..c0f4274ef Binary files /dev/null and b/assets/edit-reply-single-person-mod2-76ef5a70.png differ diff --git a/assets/edit-reply-single-person-mod3-023a3e78.png b/assets/edit-reply-single-person-mod3-023a3e78.png new file mode 100644 index 000000000..79041713f Binary files /dev/null and b/assets/edit-reply-single-person-mod3-023a3e78.png differ diff --git a/assets/edit_complex_custom_text.html-00f98460.js b/assets/edit_complex_custom_text.html-00f98460.js new file mode 100644 index 000000000..36ca41c9e --- /dev/null +++ b/assets/edit_complex_custom_text.html-00f98460.js @@ -0,0 +1,50 @@ +import{_ as a}from"./plugin-vue_export-helper-c27b6911.js";import{r as s,o as t,c as l,a as e,d as i,b as r,w as c,e as n}from"./app-d2f9e1e0.js";const u={},v=n(`

    编写复杂文案

    本节内容

    本节将展示复杂文案的编写技巧,请善用侧边栏和搜索,按需阅读文档。

    示例

    根据骰点结果展示不同文案

    在文案中通常会有结果变量,通过对结果变量的判断来实现展示不同文案。如修改 .r 骰点_单项结果文本 文案为例

    {$t表达式文本}{$t计算过程}={$t计算结果}{%
    +$t计算结果 == 100 ? " 乐!",
    +$t计算结果 == 1 ? " 啧!"
    +%}
    +

    展示:

    .r
    +回复:<测试人员>掷出了 D100=1 啧!
    +
    +.r
    +回复:<测试人员>掷出了 D100=100 乐!
    +

    多套文案的实现

    `,9),o={class:"hint-container note"},m=e("p",{class:"hint-container-title"},"了解自定义回复的编写",-1),b=e("p",null,"如果你想使用 JS 插件实现也是可以的,不过示例以更简单的自定义回复为例。",-1),h=n(`

    切换命令实现

    正则匹配:mode switch(.*)
    回复:

    {%
    +if $t1==""||$t1==" 默认" {$g文案模式 = 0; $t输出="默认模式启用"};
    +if $t1==" 模式1" {$g文案模式 = 1; $t输出="模式1启用"};  
    +if $t1==" 模式2" {$g文案模式 = 2; $t输出="模式2启用"};
    +if $t1!=""&&$t1!=" 默认"&&$t1!=" 模式1"&&$t1!=" 模式2" {$t输出=\`不存在指定模式{$t1}\`};  
    +$t输出
    +%}
    +

    精确匹配:mode show
    回复:

    {% 
    +$g文案模式==0 ? "当前在默认模式",
    +$g文案模式==1 ? "当前在模式1" ,
    +$g文案模式==2 ? "当前在模式2"
    +%}
    +

    文案调整

    按如下模式调整你的自定义文案项:

    {
    +if $g文案模式 == 0 {$t目标文案 = \`(这里填你个性化的默认模式文案)\`};
    +if $g文案模式 == 1 {$t目标文案 = \`(这里填你个性化的模式1文案)\`};
    +if $g文案模式 == 2 {$t目标文案 = \`(这里填你个性化的模式2文案)\`}
    +}{$t目标文案}
    +

    展示

    以修改了 .jrrp 的文案为例:

    mode show
    +输出:默认模式启用
    +
    +mode switch 模式1
    +输出:模式1启用
    +
    +mode show
    +输出:当前在模式1
    +
    +.jrrp
    +输出:(这里填你个性化的模式1文案)
    +
    +mode switch 模式2
    +输出:模式2启用
    +
    +.jrrp
    +输出:(这里填你个性化的模式2文案)
    +
    +mode switch
    +输出:默认模式启用
    +
    +.jrrp
    +输出:(这里填你个性化的默认模式文案)
    +
    `,11);function p(x,g){const d=s("RouterLink");return t(),l("div",null,[v,e("div",o,[m,e("p",null,[i("多套文案的实现一般需要用到「自定义回复」来提供切换命令,见 "),r(d,{to:"/advanced/edit_reply.html"},{default:c(()=>[i("编写自定义回复")]),_:1}),i("。")]),b]),h])}const $=a(u,[["render",p],["__file","edit_complex_custom_text.html.vue"]]);export{$ as default}; diff --git a/assets/edit_complex_custom_text.html-9269663d.js b/assets/edit_complex_custom_text.html-9269663d.js new file mode 100644 index 000000000..9b4015dfb --- /dev/null +++ b/assets/edit_complex_custom_text.html-9269663d.js @@ -0,0 +1 @@ +const e=JSON.parse('{"key":"v-1bb267ce","path":"/advanced/edit_complex_custom_text.html","title":"编写复杂文案","lang":"zh-cn","frontmatter":{"lang":"zh-cn","title":"编写复杂文案","description":"本节内容 本节将展示复杂文案的编写技巧,请善用侧边栏和搜索,按需阅读文档。 示例 根据骰点结果展示不同文案 在文案中通常会有结果变量,通过对结果变量的判断来实现展示不同文案。如修改 .r 骰点_单项结果文本 文案为例 展示: 多套文案的实现 了解自定义回复的编写 多套文案的实现一般需要用到「自定义回复」来提供切换命令,见 编写自定义回复 (./edit...","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/advanced/edit_complex_custom_text.html"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"编写复杂文案"}],["meta",{"property":"og:description","content":"本节内容 本节将展示复杂文案的编写技巧,请善用侧边栏和搜索,按需阅读文档。 示例 根据骰点结果展示不同文案 在文案中通常会有结果变量,通过对结果变量的判断来实现展示不同文案。如修改 .r 骰点_单项结果文本 文案为例 展示: 多套文案的实现 了解自定义回复的编写 多套文案的实现一般需要用到「自定义回复」来提供切换命令,见 编写自定义回复 (./edit..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-cn"}],["meta",{"property":"og:updated_time","content":"2023-11-01T18:38:47.000Z"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-11-01T18:38:47.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"编写复杂文案\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2023-11-01T18:38:47.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[{"level":2,"title":"示例","slug":"示例","link":"#示例","children":[{"level":3,"title":"根据骰点结果展示不同文案","slug":"根据骰点结果展示不同文案","link":"#根据骰点结果展示不同文案","children":[]},{"level":3,"title":"多套文案的实现","slug":"多套文案的实现","link":"#多套文案的实现","children":[]}]}],"git":{"createdTime":1698079594000,"updatedTime":1698863927000,"contributors":[{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":3}]},"readingTime":{"minutes":2.07,"words":620},"filePathRelative":"advanced/edit_complex_custom_text.md","localizedDate":"2023年10月23日","autoDesc":true,"excerpt":""}');export{e as data}; diff --git a/assets/edit_deck.html-ad9b269b.js b/assets/edit_deck.html-ad9b269b.js new file mode 100644 index 000000000..ef980fe78 --- /dev/null +++ b/assets/edit_deck.html-ad9b269b.js @@ -0,0 +1 @@ +const e=JSON.parse('{"key":"v-3f75ff62","path":"/advanced/edit_deck.html","title":"编写牌堆","lang":"zh-cn","frontmatter":{"lang":"zh-cn","title":"编写牌堆","description":"本节内容 本节将介绍牌堆的编写,请善用侧边栏和搜索,按需阅读文档。 如果你有编程经验,可以直接跳转到 此处 (#面向有经验用户的快速指南)。 概览 海豹核心目前支持 toml(新) json `yaml 格式的牌堆。 如果对其中某种格式的语法有了解,建议选择熟悉的格式。如果都不了解,建议选择使用适用性最广的 json 格式。 当然,如果你的海豹版本较新...","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/advanced/edit_deck.html"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"编写牌堆"}],["meta",{"property":"og:description","content":"本节内容 本节将介绍牌堆的编写,请善用侧边栏和搜索,按需阅读文档。 如果你有编程经验,可以直接跳转到 此处 (#面向有经验用户的快速指南)。 概览 海豹核心目前支持 toml(新) json `yaml 格式的牌堆。 如果对其中某种格式的语法有了解,建议选择熟悉的格式。如果都不了解,建议选择使用适用性最广的 json 格式。 当然,如果你的海豹版本较新..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:image","content":"http://localhost:8080/sealdice-manual-next/"}],["meta",{"property":"og:locale","content":"zh-cn"}],["meta",{"property":"og:updated_time","content":"2023-10-30T09:14:16.000Z"}],["meta",{"name":"twitter:card","content":"summary_large_image"}],["meta",{"name":"twitter:image:alt","content":"编写牌堆"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-10-30T09:14:16.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"编写牌堆\\",\\"image\\":[\\"http://localhost:8080/sealdice-manual-next/\\"],\\"dateModified\\":\\"2023-10-30T09:14:16.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[{"level":2,"title":"概览","slug":"概览","link":"#概览","children":[]},{"level":2,"title":"语法快速入门","slug":"语法快速入门","link":"#语法快速入门","children":[]},{"level":2,"title":"基础牌堆编写","slug":"基础牌堆编写","link":"#基础牌堆编写","children":[]},{"level":2,"title":"牌堆语法","slug":"牌堆语法","link":"#牌堆语法","children":[{"level":3,"title":"一个项中抽取其他项","slug":"一个项中抽取其他项","link":"#一个项中抽取其他项","children":[]},{"level":3,"title":"插入掷骰表达式","slug":"插入掷骰表达式","link":"#插入掷骰表达式","children":[]},{"level":3,"title":"权重","slug":"权重","link":"#权重","children":[]},{"level":3,"title":"发送图片等","slug":"发送图片等","link":"#发送图片等","children":[]},{"level":3,"title":"牌组的隐藏和导出控制","slug":"牌组的隐藏和导出控制","link":"#牌组的隐藏和导出控制","children":[]},{"level":3,"title":"配置牌堆更新","slug":"配置牌堆更新","link":"#配置牌堆更新","children":[]}]},{"level":2,"title":"TOML 牌堆的更多功能","slug":"toml-牌堆的更多功能","link":"#toml-牌堆的更多功能","children":[{"level":3,"title":"更多牌组设置","slug":"更多牌组设置","link":"#更多牌组设置","children":[]},{"level":3,"title":"云端内容","slug":"云端内容","link":"#云端内容","children":[]}]},{"level":2,"title":"面向有经验用户的快速指南","slug":"面向有经验用户的快速指南","link":"#面向有经验用户的快速指南","children":[]}],"git":{"createdTime":1698072668000,"updatedTime":1698657256000,"contributors":[{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":3}]},"readingTime":{"minutes":16.15,"words":4846},"filePathRelative":"advanced/edit_deck.md","localizedDate":"2023年10月23日","autoDesc":true,"excerpt":""}');export{e as data}; diff --git a/assets/edit_deck.html-cc869872.js b/assets/edit_deck.html-cc869872.js new file mode 100644 index 000000000..51311d3a8 --- /dev/null +++ b/assets/edit_deck.html-cc869872.js @@ -0,0 +1,281 @@ +import{_ as p}from"./plugin-vue_export-helper-c27b6911.js";import{r as u,o as r,c as d,a as n,d as s,b as l,w as a,e as o,f as k}from"./app-d2f9e1e0.js";const m="/sealdice-manual-next/assets/edit-deck-hide-key-ba6fd35a.png",v={},b=o('

    编写牌堆

    本节内容

    本节将介绍牌堆的编写,请善用侧边栏和搜索,按需阅读文档。

    如果你有编程经验,可以直接跳转到 此处

    概览

    海豹核心目前支持 toml(新) json yaml 格式的牌堆。

    如果对其中某种格式的语法有了解,建议选择熟悉的格式。如果都不了解,建议选择使用适用性最广的 json 格式。

    当然,如果你的海豹版本较新,我们也非常推荐你尝试 toml 格式的牌堆编写。toml 格式诞生较晚,语法支持更多现代特性,海豹为这种格式的牌堆支持了更多功能。

    牌堆文件的编码

    永远使用「UTF-8 编码」来编写牌堆。

    语法快速入门

    我们将简单介绍 toml json yaml 的语法,仅说明牌堆编写中会用到的部分,帮助你快速了解它们。

    ',9),h={class:"hint-container tip"},_=n("p",{class:"hint-container-title"},"深入学习",-1),g=n("p",null,"我们也非常建议你系统地学习它们,可以参见这些文档或自行搜索:",-1),y={href:"https://toml.io/cn/v1.0.0",target:"_blank",rel:"noopener noreferrer"},x={href:"https://zhuanlan.zhihu.com/p/348057345",target:"_blank",rel:"noopener noreferrer"},A={href:"https://www.runoob.com/json/json-tutorial.html",target:"_blank",rel:"noopener noreferrer"},j={href:"https://www.ruanyifeng.com/blog/2016/07/yaml.html",target:"_blank",rel:"noopener noreferrer"},f=o('

    务必注意使用半角符号!

    下面的语法中涉及到的符号都是半角符号,如果你出现了奇怪的问题,记得检查是否在输入法的中文输入状态,导致输入了错误的符号。

    比如应该为 , 却使用了 ,应该为 "" 却使用了 “”

    使用专业的编辑器能帮助你检查这些问题。

    ',1),q=n("h3",{id:"toml-注释",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#toml-注释","aria-hidden":"true"},"#"),s(" TOML 注释")],-1),w=n("p",null,[s("注释以 "),n("code",null,"#"),s(" 开头,用来记录相关说明性内容。")],-1),L=n("div",{class:"language-toml line-numbers-mode","data-ext":"toml"},[n("pre",{class:"language-toml"},[n("code",null,[n("span",{class:"token comment"},"# 这是注释"),s(` + +`),n("span",{class:"token key property"},"key"),s(),n("span",{class:"token punctuation"},"="),s(),n("span",{class:"token string"},'"value"'),s(),n("span",{class:"token comment"},"# 注释也可以放在行尾"),s(` +`)])]),n("div",{class:"line-numbers","aria-hidden":"true"},[n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"})])],-1),M=n("h3",{id:"toml-键值对",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#toml-键值对","aria-hidden":"true"},"#"),s(" TOML 键值对")],-1),O=n("p",null,"「键值对」是 TOML 文档最基本的元素。",-1),C=n("div",{class:"language-toml line-numbers-mode","data-ext":"toml"},[n("pre",{class:"language-toml"},[n("code",null,[n("span",{class:"token key property"},"key"),s(),n("span",{class:"token punctuation"},"="),s(),n("span",{class:"token string"},'"value"'),s(` +`)])]),n("div",{class:"line-numbers","aria-hidden":"true"},[n("div",{class:"line-number"})])],-1),N=n("p",null,"键名在等号的左边而值在右边,键、等号和值必须在同一行(有些值可以跨多行),不允许没有值。",-1),S=n("p",null,"值需要是下述类型之一:",-1),T=n("ul",null,[n("li",null,[s("字符串:以 "),n("code",null,'""'),s(),n("code",null,"''"),s(" 或 "),n("code",null,'""" """'),s(" 包裹起来的一串文字")]),n("li",null,"整数、浮点数(即小数)"),n("li",null,[s("布尔值:"),n("code",null,"true"),s(" 和 "),n("code",null,"false")]),n("li",null,[s("日期或时刻:采用 RFC 3339 格式,如 "),n("code",null,"1919-08-10"),s(),n("code",null,"1919-08-10 11:45:14")]),n("li",null,[s("数组:"),n("code",null,"[]"),s(" 包裹的一系列值")]),n("li",null,[s("内联表:表的一种紧凑表示法,"),n("code",null,"{}"),s(" 包裹的一系列键值对")])],-1),Y=n("p",null,"键值对后必须换行(或结束文件)。",-1),J=n("h3",{id:"toml-键名",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#toml-键名","aria-hidden":"true"},"#"),s(" TOML 键名")],-1),E=n("p",null,[s("键名可以是裸键名,也可以是用 "),n("code",null,'""'),s(" 引起来的字符串,都将被看作是字符串(哪怕裸键是 "),n("code",null,"1234"),s(" 也是这样)。")],-1),B=n("ul",null,[n("li",null,[s("裸键只能包含 ASCII 字母,ASCII 数字,下划线和短横线(即只有 "),n("code",null,"A-Za-z0-9_-"),s(")。")]),n("li",null,"引号键则允许包含任何 Unicode 字符(如中文),支持转义;")],-1),D=n("div",{class:"hint-container warning"},[n("p",{class:"hint-container-title"},"裸键名不支持中文"),n("p",null,"使用中文作为键名时,必须用引号包裹。")],-1),U=n("h3",{id:"toml-字符串",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#toml-字符串","aria-hidden":"true"},"#"),s(" TOML 字符串")],-1),I=n("p",null,[s("使用 "),n("code",null,'""'),s(" 或者 "),n("code",null,"''"),s(" 包裹的内容作为字符串。任何 Unicode 字符都可以使用,支持转义(如换行 "),n("code",null,"\\n"),s("、反斜杠 "),n("code",null,"\\ "),s(")。")],-1),F=n("p",null,"如果字符串有很多行,可以使用多行字符串语法:",-1),V=n("div",{class:"language-toml line-numbers-mode","data-ext":"toml"},[n("pre",{class:"language-toml"},[n("code",null,[n("span",{class:"token key property"},"key"),s(),n("span",{class:"token punctuation"},"="),s(),n("span",{class:"token string"},`""" +这是多行字符串的语法,它支持你直接使用换行。 +不用再拼接 \\n 来换行了,好耶! +但是这样写在最前面会多出换行,因为第一行的空换行也直接读取了。 +"""`),s(` + +`),n("span",{class:"token key property"},"key2"),s(),n("span",{class:"token punctuation"},"="),s(),n("span",{class:"token string"},`"""\\ +这样写就没有开头的空行问题了。 +"""`),s(` +`)])]),n("div",{class:"line-numbers","aria-hidden":"true"},[n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"})])],-1),z=n("p",null,[s("多行换行符中,如果一行的最后一个非空白字符是未被转义的 "),n("code",null,"\\ "),s(" 时,它会连同它后面的所有空白(包括换行)一起被去除,直到下一个非空白字符或结束引号为止。")],-1),R=n("h3",{id:"toml-表",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#toml-表","aria-hidden":"true"},"#"),s(" TOML 表")],-1),G=n("p",null,[s("表(哈希表、字典、对象,含义相同)是键值对的集合。「表头」为一个单独的 "),n("code",null,"[]"),s(" 包裹的行作为表名,后面的行都是该表的内容。")],-1),P=n("div",{class:"language-toml line-numbers-mode","data-ext":"toml"},[n("pre",{class:"language-toml"},[n("code",null,[n("span",{class:"token punctuation"},"["),n("span",{class:"token table class-name"},'"海豹核心"'),n("span",{class:"token punctuation"},"]"),s(` +`),n("span",{class:"token key property"},'"简介"'),s(),n("span",{class:"token punctuation"},"="),s(),n("span",{class:"token string"},'"一个简单易用的跑团骰子系统"'),s(` +`),n("span",{class:"token key property"},'"状态"'),s(),n("span",{class:"token punctuation"},"="),s(),n("span",{class:"token string"},'"持续开发中"'),s(` + +`),n("span",{class:"token punctuation"},"["),n("span",{class:"token table class-name"},'"狐狸核心"'),n("span",{class:"token punctuation"},"]"),s(` +`),n("span",{class:"token key property"},'"简介"'),s(),n("span",{class:"token punctuation"},"="),s(),n("span",{class:"token string"},'"一个更加简单易用的跑团骰子系统(什"'),s(` +`),n("span",{class:"token key property"},'"状态"'),s(),n("span",{class:"token punctuation"},"="),s(),n("span",{class:"token string"},'"根本不存在"'),s(` +`)])]),n("div",{class:"line-numbers","aria-hidden":"true"},[n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"})])],-1),H=n("p",null,"以上结构相当于 JSON 中的:",-1),Q=n("div",{class:"language-json line-numbers-mode","data-ext":"json"},[n("pre",{class:"language-json"},[n("code",null,[n("span",{class:"token punctuation"},"{"),s(` + `),n("span",{class:"token property"},'"海豹核心"'),n("span",{class:"token operator"},":"),s(),n("span",{class:"token punctuation"},"{"),s(` + `),n("span",{class:"token property"},'"简介"'),n("span",{class:"token operator"},":"),s(),n("span",{class:"token string"},'"一个简单易用的跑团骰子系统"'),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token property"},'"状态"'),n("span",{class:"token operator"},":"),s(),n("span",{class:"token string"},'"持续开发中"'),s(` + `),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token property"},'"狐狸核心"'),n("span",{class:"token operator"},":"),s(),n("span",{class:"token punctuation"},"{"),s(` + `),n("span",{class:"token property"},'"简介"'),n("span",{class:"token operator"},":"),s(),n("span",{class:"token string"},'"一个更加简单易用的跑团骰子系统(什"'),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token property"},'"状态"'),n("span",{class:"token operator"},":"),s(),n("span",{class:"token string"},'"根本不存在"'),s(` + `),n("span",{class:"token punctuation"},"}"),s(` +`),n("span",{class:"token punctuation"},"}"),s(` +`)])]),n("div",{class:"line-numbers","aria-hidden":"true"},[n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"})])],-1),Z=n("p",null,"表还有一种更紧凑的内联表示法,必须在同一行内,且不支持尾逗号:",-1),K=n("div",{class:"language-toml line-numbers-mode","data-ext":"toml"},[n("pre",{class:"language-toml"},[n("code",null,[n("span",{class:"token key property"},'"海豹核心"'),s(),n("span",{class:"token punctuation"},"="),s(),n("span",{class:"token punctuation"},"{"),s(),n("span",{class:"token key property"},'"简介"'),s(),n("span",{class:"token punctuation"},"="),s(),n("span",{class:"token string"},'"一个简单易用的跑团骰子系统"'),n("span",{class:"token punctuation"},","),s(),n("span",{class:"token key property"},'"状态"'),s(),n("span",{class:"token punctuation"},"="),s(),n("span",{class:"token string"},'"持续开发中"'),s(),n("span",{class:"token punctuation"},"}"),s(` +`)])]),n("div",{class:"line-numbers","aria-hidden":"true"},[n("div",{class:"line-number"})])],-1),W=n("h3",{id:"toml-数组",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#toml-数组","aria-hidden":"true"},"#"),s(" TOML 数组")],-1),X=n("p",null,[s("数组是用 "),n("code",null,"[]"),s(" 包裹的一系列值,子元素由 "),n("code",null,","),s(" 分隔。")],-1),$=n("div",{class:"language-toml line-numbers-mode","data-ext":"toml"},[n("pre",{class:"language-toml"},[n("code",null,[n("span",{class:"token key property"},"TRPG"),s(),n("span",{class:"token punctuation"},"="),s(),n("span",{class:"token punctuation"},"["),s(` + `),n("span",{class:"token punctuation"},"{"),s(),n("span",{class:"token key property"},"name"),s(),n("span",{class:"token punctuation"},"="),s(),n("span",{class:"token string"},'"CoC"'),n("span",{class:"token punctuation"},","),s(),n("span",{class:"token key property"},"version"),s(),n("span",{class:"token punctuation"},"="),s(),n("span",{class:"token string"},'"7"'),s(),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token punctuation"},"{"),s(),n("span",{class:"token key property"},"name"),s(),n("span",{class:"token punctuation"},"="),s(),n("span",{class:"token string"},'"D&D"'),n("span",{class:"token punctuation"},","),s(),n("span",{class:"token key property"},"version"),s(),n("span",{class:"token punctuation"},"="),s(),n("span",{class:"token string"},'"5e"'),s(),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},","),s(),n("span",{class:"token comment"},"# 多出一个逗号也是可以的"),s(` +`),n("span",{class:"token punctuation"},"]"),s(` +`)])]),n("div",{class:"line-numbers","aria-hidden":"true"},[n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"})])],-1),nn=n("div",{class:"hint-container warning"},[n("p",{class:"hint-container-title"},"标准 JSON 而不是 JSON5"),n("p",null,[s("海豹支持的 JSON 牌堆是「"),n("strong",null,"标准 JSON"),s("」格式,诸如注释,尾逗号等语法不属于 JSON 语法,而是 JSON5 这个扩展标准的语法,出错时请严格检查。")]),n("p",null,[n("em",null,"目前暂不考虑支持 JSON5 标准,如果对注释等有需要可以尝试其它格式的牌堆。")])],-1),sn=n("h3",{id:"json-键值",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#json-键值","aria-hidden":"true"},"#"),s(" JSON 键值")],-1),an=n("p",null,[s("JSON 键值对以 "),n("code",null,'"key": value'),s(" 的形式表达,需要包裹在 "),n("code",null,"{}"),s(" 或 "),n("code",null,"[]"),s(" 中。")],-1),en=n("div",{class:"language-json line-numbers-mode","data-ext":"json"},[n("pre",{class:"language-json"},[n("code",null,[n("span",{class:"token punctuation"},"{"),s(` + `),n("span",{class:"token property"},'"key"'),n("span",{class:"token operator"},":"),s(),n("span",{class:"token string"},'"value"'),s(` +`),n("span",{class:"token punctuation"},"}"),s(` +`)])]),n("div",{class:"line-numbers","aria-hidden":"true"},[n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"})])],-1),tn=n("p",null,[s("其中键名必须用 "),n("code",null,'""'),s(" 包裹,值可以是如下类型:")],-1),ln=n("ul",null,[n("li",null,"整数、浮点数(即小数)"),n("li",null,[s("字符串(由 "),n("code",null,'""'),s(" 包裹,不可以是 "),n("code",null,"''"),s(")")]),n("li",null,[s("布尔值("),n("code",null,"true"),s(" 或 "),n("code",null,"false"),s(")")]),n("li",null,[s("数组:由 "),n("code",null,"[]"),s(" 包裹的一组值")]),n("li",null,[s("对象:由 "),n("code",null,"{}"),s(" 包裹的一组键值对")]),n("li",null,[n("code",null,"null"),s(":空")])],-1),on=n("h3",{id:"json-数组",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#json-数组","aria-hidden":"true"},"#"),s(" JSON 数组")],-1),cn=n("p",null,[s("由 "),n("code",null,"[]"),s(" 包裹的一组值,使用 "),n("code",null,","),s(" 分割。")],-1),un=n("div",{class:"language-json line-numbers-mode","data-ext":"json"},[n("pre",{class:"language-json"},[n("code",null,[n("span",{class:"token punctuation"},"["),s(` + `),n("span",{class:"token string"},'"CoC"'),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token string"},'"D&D"'),s(` +`),n("span",{class:"token punctuation"},"]"),s(` +`)])]),n("div",{class:"line-numbers","aria-hidden":"true"},[n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"})])],-1),pn=n("p",null,[n("strong",null,"最后一个元素后不可以有逗号。")],-1),rn=n("h3",{id:"json-对象",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#json-对象","aria-hidden":"true"},"#"),s(" JSON 对象")],-1),dn=n("p",null,[s("由 "),n("code",null,"[]"),s(" 包裹的一组键值对,使用 "),n("code",null,","),s(" 分割。")],-1),kn=n("div",{class:"language-json line-numbers-mode","data-ext":"json"},[n("pre",{class:"language-json"},[n("code",null,[n("span",{class:"token punctuation"},"{"),s(` + `),n("span",{class:"token property"},'"海豹核心"'),n("span",{class:"token operator"},":"),s(),n("span",{class:"token punctuation"},"{"),s(` + `),n("span",{class:"token property"},'"简介"'),n("span",{class:"token operator"},":"),s(),n("span",{class:"token string"},'"一个简单易用的跑团骰子系统"'),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token property"},'"状态"'),n("span",{class:"token operator"},":"),s(),n("span",{class:"token string"},'"持续开发中"'),s(` + `),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token property"},'"狐狸核心"'),n("span",{class:"token operator"},":"),s(),n("span",{class:"token punctuation"},"{"),s(` + `),n("span",{class:"token property"},'"简介"'),n("span",{class:"token operator"},":"),s(),n("span",{class:"token string"},'"一个更加简单易用的跑团骰子系统(什"'),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token property"},'"状态"'),n("span",{class:"token operator"},":"),s(),n("span",{class:"token string"},'"根本不存在"'),s(` + `),n("span",{class:"token punctuation"},"}"),s(` +`),n("span",{class:"token punctuation"},"}"),s(` +`)])]),n("div",{class:"line-numbers","aria-hidden":"true"},[n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"})])],-1),mn=n("p",null,[n("strong",null,"最后一个键值对后不可以有逗号。")],-1),vn=n("h3",{id:"yaml-注释",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#yaml-注释","aria-hidden":"true"},"#"),s(" YAML 注释")],-1),bn=n("p",null,[s("注释以 "),n("code",null,"#"),s(" 开头。")],-1),hn=n("h3",{id:"yaml-键值",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#yaml-键值","aria-hidden":"true"},"#"),s(" YAML 键值")],-1),_n=n("p",null,[s("YAML 键值对使用冒号结构表示 "),n("code",null,"key: value"),s(",冒号后面要加一个空格。")],-1),gn=n("p",null,"值可以是如下类型:",-1),yn=n("ul",null,[n("li",null,[s("字符串: "),n("ul",null,[n("li",null,[s("直接表示:"),n("code",null,"这是一段字符串")]),n("li",null,[s("可以使用 "),n("code",null,'""'),s(" 或者 "),n("code",null,"''"),s("包裹,双引号不会对特殊字符转义:"),n("code",null,"'Hello world'")])])]),n("li",null,[s("布尔值:"),n("code",null,"true"),s(),n("code",null,"false")]),n("li",null,"整数、浮点数(即小数)"),n("li",null,[s("Null:用 "),n("code",null,"~"),s(" 表示")]),n("li",null,"时间、日期:采用 ISO8601 格式")],-1),xn=n("h3",{id:"yaml-对象",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#yaml-对象","aria-hidden":"true"},"#"),s(" YAML 对象")],-1),An=n("p",null,"可以使用行内语法表示对象:",-1),jn=n("div",{class:"language-yaml line-numbers-mode","data-ext":"yml"},[n("pre",{class:"language-yaml"},[n("code",null,[n("span",{class:"token key atrule"},"海豹核心"),n("span",{class:"token punctuation"},":"),s(),n("span",{class:"token punctuation"},"{"),s(),n("span",{class:"token key atrule"},"简介"),n("span",{class:"token punctuation"},":"),s(" 一个简单易用的跑团骰子系统"),n("span",{class:"token punctuation"},","),s(),n("span",{class:"token key atrule"},"状态"),n("span",{class:"token punctuation"},":"),s(" 持续开发中 "),n("span",{class:"token punctuation"},"}"),s(` +`),n("span",{class:"token key atrule"},"狐狸核心"),n("span",{class:"token punctuation"},":"),s(),n("span",{class:"token punctuation"},"{"),s(),n("span",{class:"token key atrule"},"简介"),n("span",{class:"token punctuation"},":"),s(" 一个更加简单易用的跑团骰子系统(什"),n("span",{class:"token punctuation"},","),s(),n("span",{class:"token key atrule"},"状态"),n("span",{class:"token punctuation"},":"),s(" 根本不存在 "),n("span",{class:"token punctuation"},"}"),s(` +`)])]),n("div",{class:"line-numbers","aria-hidden":"true"},[n("div",{class:"line-number"}),n("div",{class:"line-number"})])],-1),fn=n("p",null,"也可以使用缩进层级表示对象关系(推荐):",-1),qn=n("div",{class:"language-yaml line-numbers-mode","data-ext":"yml"},[n("pre",{class:"language-yaml"},[n("code",null,[n("span",{class:"token key atrule"},"海豹核心"),n("span",{class:"token punctuation"},":"),s(` + `),n("span",{class:"token key atrule"},"简介"),n("span",{class:"token punctuation"},":"),s(` 一个简单易用的跑团骰子系统 + `),n("span",{class:"token key atrule"},"状态"),n("span",{class:"token punctuation"},":"),s(` 持续开发中 +`),n("span",{class:"token key atrule"},"狐狸核心"),n("span",{class:"token punctuation"},":"),s(` + `),n("span",{class:"token key atrule"},"简介"),n("span",{class:"token punctuation"},":"),s(` 一个更加简单易用的跑团骰子系统(什 + `),n("span",{class:"token key atrule"},"状态"),n("span",{class:"token punctuation"},":"),s(` 根本不存在 +`)])]),n("div",{class:"line-numbers","aria-hidden":"true"},[n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"})])],-1),wn=n("div",{class:"hint-container warning"},[n("p",{class:"hint-container-title"},"缩进是有含义的"),n("p",null,"在 YAML 中,缩进是有含义的,缩进的长度表示了层级。"),n("p",null,[s("缩进不允许 tab,只允许使用空格。缩进的空格数并不重要,但"),n("strong",null,"相同层级的元素必须左对齐"),s("。")]),n("p",null,"当你在复制粘贴 YAML 文本时,请务必注意这一点,格式错乱会无法识别。")],-1),Ln=n("h3",{id:"yaml-数组",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#yaml-数组","aria-hidden":"true"},"#"),s(" YAML 数组")],-1),Mn=n("p",null,"YAML 可以使用行内语法表示数组:",-1),On=n("div",{class:"language-yaml line-numbers-mode","data-ext":"yml"},[n("pre",{class:"language-yaml"},[n("code",null,[n("span",{class:"token punctuation"},"["),s(" A"),n("span",{class:"token punctuation"},","),s(" B"),n("span",{class:"token punctuation"},","),s(" C "),n("span",{class:"token punctuation"},"]"),s(` +`)])]),n("div",{class:"line-numbers","aria-hidden":"true"},[n("div",{class:"line-number"})])],-1),Cn=n("p",null,[s("也可以使用以 "),n("code",null,"-"),s(" 开头的行表示构成一个数组:")],-1),Nn=n("div",{class:"language-yaml line-numbers-mode","data-ext":"yml"},[n("pre",{class:"language-yaml"},[n("code",null,[n("span",{class:"token punctuation"},"-"),s(` A +`),n("span",{class:"token punctuation"},"-"),s(` B +`),n("span",{class:"token punctuation"},"-"),s(` C +`)])]),n("div",{class:"line-numbers","aria-hidden":"true"},[n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"})])],-1),Sn=n("p",null,"数据结构的子成员是一个数组,则可以在该项下面缩进一个空格:",-1),Tn=n("div",{class:"language-yaml line-numbers-mode","data-ext":"yml"},[n("pre",{class:"language-yaml"},[n("code",null,[n("span",{class:"token key atrule"},"TRPG"),n("span",{class:"token punctuation"},":"),s(` + `),n("span",{class:"token punctuation"},"-"),s(),n("span",{class:"token key atrule"},"name"),n("span",{class:"token punctuation"},":"),s(` CoC + `),n("span",{class:"token key atrule"},"version"),n("span",{class:"token punctuation"},":"),s(),n("span",{class:"token string"},"'7'"),s(` + `),n("span",{class:"token punctuation"},"-"),s(),n("span",{class:"token key atrule"},"name"),n("span",{class:"token punctuation"},":"),s(" D"),n("span",{class:"token important"},"&D"),s(` + `),n("span",{class:"token key atrule"},"version"),n("span",{class:"token punctuation"},":"),s(` 5e +`)])]),n("div",{class:"line-numbers","aria-hidden":"true"},[n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"})])],-1),Yn=n("div",{class:"hint-container warning"},[n("p",{class:"hint-container-title"},"复杂的 YAML"),n("p",null,"YAML 的语法极其灵活,同一种形式在 YAML 中可以有多种等价表示方法,这里只列出了常见的。"),n("p",null,"如果你在阅读其它人的 YAML 牌堆时遇上了看不懂的内容,建议通过更系统的教程学习。")],-1),Jn=o('

    基础牌堆编写

    海豹的抽取指令为 .draw <key>,而牌堆就是可以提供一些 key 作为牌组的文件。

    我们从编写一个最简单的牌堆开始,我们希望:

    1. 这个牌堆有 快端上来罢数字论证 两个牌组;
      • .draw 快端上来罢 可以抽取出 哼哼哼啊啊啊啊啊 你是一个一个一个牌堆结果 这两个结果;
      • .draw 数字论证 可以抽取出 114514 1919810 这两个结果。
    2. 填写一些信息(如作者),便于分享。

    这个牌堆编写如下,你可以选择以下任意一种格式来学习:

    ',5),En=n("div",{class:"language-toml line-numbers-mode","data-ext":"toml"},[n("pre",{class:"language-toml"},[n("code",null,[n("span",{class:"token comment"},"# 元信息表"),s(` +`),n("span",{class:"token punctuation"},"["),n("span",{class:"token table class-name"},"meta"),n("span",{class:"token punctuation"},"]"),s(` +`),n("span",{class:"token key property"},"title"),s(),n("span",{class:"token punctuation"},"="),s(),n("span",{class:"token string"},'"野兽牌堆"'),s(` +`),n("span",{class:"token key property"},"author"),s(),n("span",{class:"token punctuation"},"="),s(),n("span",{class:"token string"},'"田所浩二"'),s(` +`),n("span",{class:"token comment"},"# 有多个作者时可以使用,两者仅需保留一行"),s(` +`),n("span",{class:"token key property"},"authors"),s(),n("span",{class:"token punctuation"},"="),s(),n("span",{class:"token punctuation"},"["),n("span",{class:"token string"},'"田所浩二"'),n("span",{class:"token punctuation"},"]"),s(` +`),n("span",{class:"token key property"},"version"),s(),n("span",{class:"token punctuation"},"="),s(),n("span",{class:"token string"},'"1.0"'),s(` +`),n("span",{class:"token key property"},"license"),s(),n("span",{class:"token punctuation"},"="),s(),n("span",{class:"token string"},'"CC-BY-NC-SA 4.0"'),s(` +`),n("span",{class:"token key property"},"date"),s(),n("span",{class:"token punctuation"},"="),s(),n("span",{class:"token date number"},"1919-08-10"),s(` +`),n("span",{class:"token key property"},"update_date"),s(),n("span",{class:"token punctuation"},"="),s(),n("span",{class:"token date number"},"1919-08-10"),s(` +`),n("span",{class:"token key property"},"desc"),s(),n("span",{class:"token punctuation"},"="),s(),n("span",{class:"token string"},'"这个示例牌堆怎么这么臭(恼)"'),s(` + +`),n("span",{class:"token comment"},"# 牌组表"),s(` +`),n("span",{class:"token punctuation"},"["),n("span",{class:"token table class-name"},"decks"),n("span",{class:"token punctuation"},"]"),s(` +`),n("span",{class:"token key property"},'"快端上来罢"'),s(),n("span",{class:"token punctuation"},"="),s(),n("span",{class:"token punctuation"},"["),s(` + `),n("span",{class:"token string"},'"哼哼哼啊啊啊啊啊"'),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token string"},'"你是一个一个一个牌堆结果"'),s(` +`),n("span",{class:"token punctuation"},"]"),s(` +`),n("span",{class:"token key property"},'"数字论证"'),s(),n("span",{class:"token punctuation"},"="),s(),n("span",{class:"token punctuation"},"["),s(` + `),n("span",{class:"token string"},'"114514"'),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token string"},'"1919810"'),s(` +`),n("span",{class:"token punctuation"},"]"),s(` +`)])]),n("div",{class:"line-numbers","aria-hidden":"true"},[n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"})])],-1),Bn=n("p",null,[s("一个 TOML 牌堆的最基本格式如上。其中 "),n("code",null,"meta"),s(" 表中的信息不是必须的,但我们非常建议你保留并填写这些项,它们能在分享时说明更多信息:")],-1),Dn=n("ul",null,[n("li",null,[n("code",null,"title"),s(":牌堆的标题;")]),n("li",null,[n("code",null,"author"),s("/"),n("code",null,"authors"),s(":牌堆作者;")]),n("li",null,[n("code",null,"date"),s(":牌堆创建日期;")]),n("li",null,[n("code",null,"updateDate"),s(":牌堆更新日期;")]),n("li",null,[n("code",null,"desc"),s(":牌堆简介;")]),n("li",null,[n("code",null,"version"),s(":牌堆版本;")]),n("li",null,[n("code",null,"license"),s(":牌堆协议。")])],-1),Un=n("p",null,[s("可以将上述内容保存名为 "),n("code",null,"野兽牌堆.toml"),s("(名称任意,但必须是以 "),n("code",null,".toml"),s(" 为后缀扩展名)的文件进行测试。")],-1),In=n("div",{class:"language-json line-numbers-mode","data-ext":"json"},[n("pre",{class:"language-json"},[n("code",null,[n("span",{class:"token punctuation"},"{"),s(` + `),n("span",{class:"token property"},'"_title"'),n("span",{class:"token operator"},":"),s(),n("span",{class:"token punctuation"},"["),s(),n("span",{class:"token string"},'"野兽牌堆"'),s(),n("span",{class:"token punctuation"},"]"),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token property"},'"_author"'),n("span",{class:"token operator"},":"),s(),n("span",{class:"token punctuation"},"["),s(),n("span",{class:"token string"},'"田所浩二"'),s(),n("span",{class:"token punctuation"},"]"),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token property"},'"_date"'),n("span",{class:"token operator"},":"),s(),n("span",{class:"token punctuation"},"["),s(),n("span",{class:"token string"},'"1919-08-10"'),s(),n("span",{class:"token punctuation"},"]"),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token property"},'"_updateDate"'),n("span",{class:"token operator"},":"),s(),n("span",{class:"token punctuation"},"["),s(),n("span",{class:"token string"},'"1919-08-10"'),s(),n("span",{class:"token punctuation"},"]"),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token property"},'"_brief"'),n("span",{class:"token operator"},":"),s(),n("span",{class:"token punctuation"},"["),s(),n("span",{class:"token string"},'"这个示例牌堆怎么这么臭(恼)"'),s(),n("span",{class:"token punctuation"},"]"),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token property"},'"_version"'),n("span",{class:"token operator"},":"),s(),n("span",{class:"token punctuation"},"["),s(),n("span",{class:"token string"},'"1.0"'),s(),n("span",{class:"token punctuation"},"]"),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token property"},'"_license"'),n("span",{class:"token operator"},":"),s(),n("span",{class:"token punctuation"},"["),s(),n("span",{class:"token string"},'"CC-BY-NC-SA 4.0"'),s(),n("span",{class:"token punctuation"},"]"),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token property"},'"快端上来罢"'),n("span",{class:"token operator"},":"),s(),n("span",{class:"token punctuation"},"["),s(` + `),n("span",{class:"token string"},'"哼哼哼啊啊啊啊啊"'),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token string"},'"你是一个一个一个牌堆结果"'),s(` + `),n("span",{class:"token punctuation"},"]"),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token property"},'"数字论证"'),n("span",{class:"token operator"},":"),s(),n("span",{class:"token punctuation"},"["),s(` + `),n("span",{class:"token string"},'"114514"'),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token string"},'"1919810"'),s(` + `),n("span",{class:"token punctuation"},"]"),s(` +`),n("span",{class:"token punctuation"},"}"),s(` +`)])]),n("div",{class:"line-numbers","aria-hidden":"true"},[n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"})])],-1),Fn=n("p",null,[s("一个 JSON 牌堆的最基本格式如上。其中以 "),n("code",null,"_"),s(" 开头的项不是必须的,但是我们非常建议你保留并填写这些项,它们能在分享时说明更多信息:")],-1),Vn=n("ul",null,[n("li",null,[n("code",null,"_title"),s(":牌堆的标题;")]),n("li",null,[n("code",null,"_author"),s(":牌堆作者;")]),n("li",null,[n("code",null,"_date"),s(":牌堆创建日期;")]),n("li",null,[n("code",null,"_updateDate"),s(":牌堆更新日期;")]),n("li",null,[n("code",null,"_brief"),s(":牌堆简介;")]),n("li",null,[n("code",null,"_version"),s(":牌堆版本;")]),n("li",null,[n("code",null,"_license"),s(":牌堆协议。")])],-1),zn=n("p",null,[s("可以将上述内容保存名为 "),n("code",null,"野兽牌堆.json"),s("(名称任意,但必须是以 "),n("code",null,".json"),s(" 为后缀扩展名)的文件进行测试。")],-1),Rn=n("div",{class:"language-yaml line-numbers-mode","data-ext":"yml"},[n("pre",{class:"language-yaml"},[n("code",null,[n("span",{class:"token key atrule"},"name"),n("span",{class:"token punctuation"},":"),s(` 野兽牌堆 +`),n("span",{class:"token key atrule"},"author"),n("span",{class:"token punctuation"},":"),s(` 田所浩二 +`),n("span",{class:"token key atrule"},"version"),n("span",{class:"token punctuation"},":"),s(),n("span",{class:"token string"},"'1.0'"),s(` +`),n("span",{class:"token key atrule"},"license"),n("span",{class:"token punctuation"},":"),s(" CC"),n("span",{class:"token punctuation"},"-"),s("BY"),n("span",{class:"token punctuation"},"-"),s("NC"),n("span",{class:"token punctuation"},"-"),s(`SA 4.0 +`),n("span",{class:"token key atrule"},"desc"),n("span",{class:"token punctuation"},":"),s(` 这个示例牌堆怎么这么臭(恼) +`),n("span",{class:"token key atrule"},"command"),n("span",{class:"token punctuation"},":"),s(` + +`),n("span",{class:"token key atrule"},"快端上来罢"),n("span",{class:"token punctuation"},":"),s(` + `),n("span",{class:"token punctuation"},"-"),s(` 哼哼哼啊啊啊啊啊 + `),n("span",{class:"token punctuation"},"-"),s(` 你是一个一个一个牌堆结果 +`),n("span",{class:"token key atrule"},"数字论证"),n("span",{class:"token punctuation"},":"),s(` + `),n("span",{class:"token punctuation"},"-"),s(),n("span",{class:"token string"},"'114514'"),s(` + `),n("span",{class:"token punctuation"},"-"),s(),n("span",{class:"token string"},"'1919810'"),s(` +`)])]),n("div",{class:"line-numbers","aria-hidden":"true"},[n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"})])],-1),Gn=n("p",null,"一个 YAML 牌堆的最基本格式如上。其中上半部分的一些项不是必须的,但是我们非常建议你保留并填写这些项,它们能在分享时说明更多信息:",-1),Pn=n("ul",null,[n("li",null,[n("code",null,"name"),s(":牌堆的标题;")]),n("li",null,[n("code",null,"author"),s(":牌堆作者;")]),n("li",null,[n("code",null,"version"),s(":牌堆版本;")]),n("li",null,[n("code",null,"license"),s(":牌堆协议;")]),n("li",null,[n("code",null,"desc"),s(":牌堆简介。")])],-1),Hn=n("p",null,[s("可以将上述内容保存名为 "),n("code",null,"野兽牌堆.yaml"),s("(名称任意,但必须是以 "),n("code",null,".yaml"),s(" 或 "),n("code",null,".yml"),s(" 为后缀扩展名)的文件进行测试。")],-1),Qn=o('

    牌堆文件扩展名正确吗?

    保存文件时务必确认开启了操作系统的扩展名显示,避免出现看上去保存了 xxx.json 文件,但实际上的文件名是 xxx.json.txt

    牌堆语法

    一个项中抽取其他项

    牌堆抽取结果字符串中,可以实现抽取其他项,将内容拼接进该结果。

    • {key} 表示不放回抽取;
    • {%key} 表示放回抽取。
    ',5),Zn=n("div",{class:"language-toml line-numbers-mode","data-ext":"toml"},[n("pre",{class:"language-toml"},[n("code",null,[n("span",{class:"token punctuation"},"["),n("span",{class:"token table class-name"},"decks"),n("span",{class:"token punctuation"},"]"),s(` +`),n("span",{class:"token key property"},'"时间点"'),s(),n("span",{class:"token punctuation"},"="),s(),n("span",{class:"token punctuation"},"["),s(` + `),n("span",{class:"token string"},'"早上"'),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token string"},'"中午"'),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token string"},'"晚上"'),n("span",{class:"token punctuation"},","),s(` +`),n("span",{class:"token punctuation"},"]"),s(` +`),n("span",{class:"token key property"},'"追尾了"'),s(),n("span",{class:"token punctuation"},"="),s(),n("span",{class:"token punctuation"},"["),s(` + `),n("span",{class:"token string"},'"在{%时间点}追尾了一辆高级黑色轿车"'),n("span",{class:"token punctuation"},","),s(` +`),n("span",{class:"token punctuation"},"]"),s(` +`)])]),n("div",{class:"line-numbers","aria-hidden":"true"},[n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"})])],-1),Kn=n("div",{class:"language-json line-numbers-mode","data-ext":"json"},[n("pre",{class:"language-json"},[n("code",null,[n("span",{class:"token punctuation"},"{"),s(` + `),n("span",{class:"token property"},'"时间点"'),n("span",{class:"token operator"},":"),s(),n("span",{class:"token punctuation"},"["),s(` + `),n("span",{class:"token string"},'"早上"'),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token string"},'"中午"'),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token string"},'"晚上"'),s(` + `),n("span",{class:"token punctuation"},"]"),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token property"},'"追尾了"'),n("span",{class:"token operator"},":"),s(),n("span",{class:"token punctuation"},"["),s(` + `),n("span",{class:"token string"},'"在{%时间点}追尾了一辆高级黑色轿车"'),s(` + `),n("span",{class:"token punctuation"},"]"),s(` +`),n("span",{class:"token punctuation"},"}"),s(` +`)])]),n("div",{class:"line-numbers","aria-hidden":"true"},[n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"})])],-1),Wn=n("div",{class:"hint-container warning"},[n("p",{class:"hint-container-title"},"YAML 的放回表示"),n("p",null,"YAML 牌堆中的表示正好相反:"),n("ul",null,[n("li",null,[n("code",null,"{key}"),s(" 表示放回抽取;")]),n("li",null,[n("code",null,"{%key}"),s(" 表示不放回抽取。")])])],-1),Xn=n("div",{class:"language-yaml line-numbers-mode","data-ext":"yml"},[n("pre",{class:"language-yaml"},[n("code",null,[n("span",{class:"token key atrule"},"时间点"),n("span",{class:"token punctuation"},":"),s(` + `),n("span",{class:"token punctuation"},"-"),s(` 早上 + `),n("span",{class:"token punctuation"},"-"),s(` 中午 + `),n("span",{class:"token punctuation"},"-"),s(` 晚上 +`),n("span",{class:"token key atrule"},"追尾了"),n("span",{class:"token punctuation"},":"),s(` + `),n("span",{class:"token punctuation"},"-"),s(" 在"),n("span",{class:"token punctuation"},"{"),s("时间点"),n("span",{class:"token punctuation"},"}"),s(`追尾了一辆高级黑色轿车 +`)])]),n("div",{class:"line-numbers","aria-hidden":"true"},[n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"})])],-1),$n=o(`

    放回与不放回

    放回抽取表示每次抽取该项后,下次抽取还是从同样的结果中抽取。

    不放回抽取表示抽取一次后,下一次会在剩余结果中抽取,直到抽完所有结果后再重新开始。

    插入掷骰表达式

    抽取结果字符串中的 [exp],会先执行其中的掷骰表达式 exp,再组合到原字符串里。

    如:抽取 企鹅早该爆金币辣!v我[1d10]个金币 的结果可能是 企鹅早该爆金币辣!v我1个金币

    旧的实现

    研究旧牌堆,可能会发现有牌堆通过下面这样的写法来实现这个功能,现在请不要这么做了

    {
    +  "数字": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
    +  "爆金币": "企鹅早该爆金币辣!v我{%数字}个金币"
    +}
    +

    权重

    抽取结果字符串中最前面的 ::value:: 表示该项的权重,可以理解为该项重复了几次。

    权重可以是随机的::[1d10]::

    示例:有 1/10 的几率出现闪光海豹

    `,9),ns=n("div",{class:"language-toml line-numbers-mode","data-ext":"toml"},[n("pre",{class:"language-toml"},[n("code",null,[n("span",{class:"token punctuation"},"["),n("span",{class:"token table class-name"},"decks"),n("span",{class:"token punctuation"},"]"),s(` +`),n("span",{class:"token key property"},'"捕捉海豹"'),s(),n("span",{class:"token punctuation"},"="),s(),n("span",{class:"token punctuation"},"["),s(` + `),n("span",{class:"token string"},'"::9::海豹"'),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token string"},'"✨闪光海豹✨"'),s(` +`),n("span",{class:"token punctuation"},"]"),s(` +`)])]),n("div",{class:"line-numbers","aria-hidden":"true"},[n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"})])],-1),ss=n("div",{class:"language-json line-numbers-mode","data-ext":"json"},[n("pre",{class:"language-json"},[n("code",null,[n("span",{class:"token punctuation"},"{"),s(` + `),n("span",{class:"token property"},'"捕捉海豹"'),n("span",{class:"token operator"},":"),s(),n("span",{class:"token punctuation"},"["),s(` + `),n("span",{class:"token string"},'"::9::海豹"'),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token string"},'"✨闪光海豹✨"'),s(` + `),n("span",{class:"token punctuation"},"]"),s(` +`),n("span",{class:"token punctuation"},"}"),s(` +`)])]),n("div",{class:"line-numbers","aria-hidden":"true"},[n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"})])],-1),as=n("div",{class:"language-yaml line-numbers-mode","data-ext":"yml"},[n("pre",{class:"language-yaml"},[n("code",null,[n("span",{class:"token key atrule"},"捕捉海豹"),n("span",{class:"token punctuation"},":"),s(` + `),n("span",{class:"token punctuation"},"-"),s(),n("span",{class:"token punctuation"},":"),n("span",{class:"token punctuation"},":"),s("9"),n("span",{class:"token punctuation"},":"),n("span",{class:"token punctuation"},":"),s(`海豹 + `),n("span",{class:"token punctuation"},"-"),s(` ✨闪光海豹✨ +`)])]),n("div",{class:"line-numbers","aria-hidden":"true"},[n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"})])],-1),es=o(`
    旧的实现

    研究旧牌堆,可能会发现有牌堆通过下面这样的写法来实现这个功能,现在请不要这么做了

    {
    +  "捕捉海豹": [
    +    "海豹", "海豹", "海豹", "海豹", "海豹", "海豹", "海豹", "海豹", "海豹", 
    +    "✨闪光海豹✨"
    +  ]
    +}
    +

    发送图片等

    抽取结果字符串中可以插入 CQ 码和海豹码,比如 [图:data/images/sealdice.png]

    牌组的隐藏和导出控制

    .draw keys 指令会列出所有允许抽取的牌组,但在牌堆编写过程中,经常会需要用到辅助的牌组,这些辅助项是不希望暴露给用户的。我们可以通过一定方式来隐藏这些项。

    `,5),ts=n("p",null,[s("在 TOML 牌堆中,当牌组的名称以 "),n("code",null,"_"),s(" 开头,那么这个牌组将不会暴露在 "),n("code",null,".draw keys"),s(" 中。")],-1),ls=n("div",{class:"language-toml line-numbers-mode","data-ext":"toml"},[n("pre",{class:"language-toml"},[n("code",null,[n("span",{class:"token punctuation"},"["),n("span",{class:"token table class-name"},"decks"),n("span",{class:"token punctuation"},"]"),s(` +`),n("span",{class:"token key property"},'"_时间点"'),s(),n("span",{class:"token punctuation"},"="),s(),n("span",{class:"token punctuation"},"["),s(` + `),n("span",{class:"token string"},'"早上"'),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token string"},'"中午"'),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token string"},'"晚上"'),n("span",{class:"token punctuation"},","),s(` +`),n("span",{class:"token punctuation"},"]"),s(` +`),n("span",{class:"token key property"},'"追尾了"'),s(),n("span",{class:"token punctuation"},"="),s(),n("span",{class:"token punctuation"},"["),s(` + `),n("span",{class:"token string"},'"在{%_时间点}追尾了一辆高级黑色轿车"'),n("span",{class:"token punctuation"},","),s(` +`),n("span",{class:"token punctuation"},"]"),s(` +`)])]),n("div",{class:"line-numbers","aria-hidden":"true"},[n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"})])],-1),os=n("p",null,[s("这样在 "),n("code",null,".draw keys"),s(" 中就不会展示 "),n("code",null,"_时间点"),s(" 这一牌组。")],-1),cs=n("p",null,[s("在 JSON 牌堆中,可以通过配置牌堆文件的 "),n("code",null,"_keys"),s(" 指定所有显示的牌组,未指定在列表中的牌组将不会暴露在 "),n("code",null,".draw keys"),s(" 中。")],-1),is=n("div",{class:"language-json line-numbers-mode","data-ext":"json"},[n("pre",{class:"language-json"},[n("code",null,[n("span",{class:"token punctuation"},"{"),s(` + `),n("span",{class:"token property"},'"_keys"'),n("span",{class:"token operator"},":"),s(),n("span",{class:"token punctuation"},"["),s(),n("span",{class:"token string"},'"追尾了"'),s(),n("span",{class:"token punctuation"},"]"),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token property"},'"时间点"'),n("span",{class:"token operator"},":"),s(),n("span",{class:"token punctuation"},"["),s(` + `),n("span",{class:"token string"},'"早上"'),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token string"},'"中午"'),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token string"},'"晚上"'),s(` + `),n("span",{class:"token punctuation"},"]"),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token property"},'"追尾了"'),n("span",{class:"token operator"},":"),s(),n("span",{class:"token punctuation"},"["),s(` + `),n("span",{class:"token string"},'"在{%时间点}追尾了一辆高级黑色轿车"'),s(` + `),n("span",{class:"token punctuation"},"]"),s(` +`),n("span",{class:"token punctuation"},"}"),s(` +`)])]),n("div",{class:"line-numbers","aria-hidden":"true"},[n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"})])],-1),us=n("p",null,[s("这样在 "),n("code",null,".draw keys"),s(" 中就不会展示 "),n("code",null,"时间点"),s(" 这一牌组。")],-1),ps=n("p",null,null,-1),rs=n("p",null,[s("被隐藏的项不会在 "),n("code",null,".draw keys"),s(" 中展示,但依然可以通过指定 "),n("code",null,".draw "),s(" 的方法抽取。如果你希望某些牌组彻底隐藏,只能在牌堆内部调用,可以通过配置它们的导出来实现:")],-1),ds=n("p",null,[s("在 TOML 牌堆中,当牌组的名称以 "),n("code",null,"__"),s("(双下划线)开头,那么这个牌组将不导出,即无法使用 "),n("code",null,".draw "),s(" 进行抽取,更不会显示在列表中。")],-1),ks=n("div",{class:"language-toml line-numbers-mode","data-ext":"toml"},[n("pre",{class:"language-toml"},[n("code",null,[n("span",{class:"token punctuation"},"["),n("span",{class:"token table class-name"},"decks"),n("span",{class:"token punctuation"},"]"),s(` +`),n("span",{class:"token key property"},'"__时间点"'),s(),n("span",{class:"token punctuation"},"="),s(),n("span",{class:"token punctuation"},"["),s(` + `),n("span",{class:"token string"},'"早上"'),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token string"},'"中午"'),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token string"},'"晚上"'),n("span",{class:"token punctuation"},","),s(` +`),n("span",{class:"token punctuation"},"]"),s(` +`),n("span",{class:"token key property"},'"追尾了"'),s(),n("span",{class:"token punctuation"},"="),s(),n("span",{class:"token punctuation"},"["),s(` + `),n("span",{class:"token string"},'"在{%__时间点}追尾了一辆高级黑色轿车"'),n("span",{class:"token punctuation"},","),s(` +`),n("span",{class:"token punctuation"},"]"),s(` +`)])]),n("div",{class:"line-numbers","aria-hidden":"true"},[n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"})])],-1),ms=n("p",null,[s("在 JSON 牌堆中,当牌组的名称以 "),n("code",null,"_"),s(" 开头,那么这个牌组将不导出,即无法使用 "),n("code",null,".draw "),s(" 进行抽取,更不会显示在列表中。")],-1),vs=n("div",{class:"language-json line-numbers-mode","data-ext":"json"},[n("pre",{class:"language-json"},[n("code",null,[n("span",{class:"token punctuation"},"{"),s(` + `),n("span",{class:"token property"},'"_时间点"'),n("span",{class:"token operator"},":"),s(),n("span",{class:"token punctuation"},"["),s(` + `),n("span",{class:"token string"},'"早上"'),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token string"},'"中午"'),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token string"},'"晚上"'),s(` + `),n("span",{class:"token punctuation"},"]"),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token property"},'"追尾了"'),n("span",{class:"token operator"},":"),s(),n("span",{class:"token punctuation"},"["),s(` + `),n("span",{class:"token string"},'"在{%_时间点}追尾了一辆高级黑色轿车"'),s(` + `),n("span",{class:"token punctuation"},"]"),s(` +`),n("span",{class:"token punctuation"},"}"),s(` +`)])]),n("div",{class:"line-numbers","aria-hidden":"true"},[n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"})])],-1),bs=n("p",null,[s("这样 "),n("code",null,"_时间点"),s(" 这一牌组无法再用 "),n("code",null,".draw _时间点"),s(" 抽取了。")],-1),hs=n("p",null,[s("此外,通过配置牌堆文件的 "),n("code",null,"_export"),s("/ "),n("code",null,"_exports"),s(" 可以指定所有的导出项。未指定在列表中的牌组将无法使用 "),n("code",null,".draw "),s(" 进行抽取,更不会显示在列表中。")],-1),_s=n("div",{class:"language-json line-numbers-mode","data-ext":"json"},[n("pre",{class:"language-json"},[n("code",null,[n("span",{class:"token punctuation"},"{"),s(` + `),n("span",{class:"token property"},'"_exports"'),n("span",{class:"token operator"},":"),s(),n("span",{class:"token punctuation"},"["),s(),n("span",{class:"token string"},'"追尾了"'),s(),n("span",{class:"token punctuation"},"]"),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token property"},'"时间点"'),n("span",{class:"token operator"},":"),s(),n("span",{class:"token punctuation"},"["),s(` + `),n("span",{class:"token string"},'"早上"'),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token string"},'"中午"'),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token string"},'"晚上"'),s(` + `),n("span",{class:"token punctuation"},"]"),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token property"},'"追尾了"'),n("span",{class:"token operator"},":"),s(),n("span",{class:"token punctuation"},"["),s(` + `),n("span",{class:"token string"},'"在{%时间点}追尾了一辆高级黑色轿车"'),s(` + `),n("span",{class:"token punctuation"},"]"),s(` +`),n("span",{class:"token punctuation"},"}"),s(` +`)])]),n("div",{class:"line-numbers","aria-hidden":"true"},[n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"})])],-1),gs=n("p",null,null,-1),ys=o('

    UI 中识别隐藏的牌组

    你可以通过查看牌堆管理界面中的「牌堆列表」来识别牌组是否隐藏。

    牌堆列表
    牌堆列表

    灰色的牌组是隐藏的,即不展示在列表中,但能够被 .draw <key> 抽取。

    未导出(不展示也不能抽取)的牌组不展示在该列表中。

    配置牌堆更新

    很多时候,牌堆内容不是一成不变的。而使用牌堆的用户需要手动去获取最新的牌堆,才能获得作者们提供的最新内容。

    我们为牌堆提供了配置更新链接的机制,方便骰主快速获取牌堆更新。有能力的牌堆作者可以配置更新链接,便于分享最新的牌堆内容。

    ',4),xs=n("p",null,[s("配置牌堆文件的 "),n("code",null,"updateUrls"),s(" 以指定对应的更新链接:")],-1),As=n("div",{class:"language-toml line-numbers-mode","data-ext":"toml"},[n("pre",{class:"language-toml"},[n("code",null,[n("span",{class:"token punctuation"},"["),n("span",{class:"token table class-name"},"meta"),n("span",{class:"token punctuation"},"]"),s(` +`),n("span",{class:"token key property"},"title"),s(),n("span",{class:"token punctuation"},"="),s(),n("span",{class:"token string"},'"野兽牌堆"'),s(` +`),n("span",{class:"token key property"},"updateUrls"),s(),n("span",{class:"token punctuation"},"="),s(),n("span",{class:"token punctuation"},"["),s(` + `),n("span",{class:"token string"},'"https://updateurl.com"'),s(),n("span",{class:"token comment"},"# 此处填写你的更新链接"),s(` +`),n("span",{class:"token punctuation"},"]"),s(` + +`),n("span",{class:"token comment"},"# 牌组表"),s(` +`),n("span",{class:"token punctuation"},"["),n("span",{class:"token table class-name"},"decks"),n("span",{class:"token punctuation"},"]"),s(` +`),n("span",{class:"token key property"},'"快端上来罢"'),s(),n("span",{class:"token punctuation"},"="),s(),n("span",{class:"token punctuation"},"["),s(` + `),n("span",{class:"token string"},'"哼哼哼啊啊啊啊啊"'),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token string"},'"你是一个一个一个牌堆结果"'),s(` +`),n("span",{class:"token punctuation"},"]"),s(` +`),n("span",{class:"token key property"},'"数字论证"'),s(),n("span",{class:"token punctuation"},"="),s(),n("span",{class:"token punctuation"},"["),s(` + `),n("span",{class:"token string"},'"114514"'),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token string"},'"1919810"'),s(` +`),n("span",{class:"token punctuation"},"]"),s(` +`)])]),n("div",{class:"line-numbers","aria-hidden":"true"},[n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"})])],-1),js=n("p",null,[s("配置牌堆文件的 "),n("code",null,"_updateUrls"),s(" 以指定对应的更新链接:")],-1),fs=n("div",{class:"language-json line-numbers-mode","data-ext":"json"},[n("pre",{class:"language-json"},[n("code",null,[n("span",{class:"token punctuation"},"{"),s(` + `),n("span",{class:"token property"},'"_title"'),n("span",{class:"token operator"},":"),s(),n("span",{class:"token punctuation"},"["),s(),n("span",{class:"token string"},'"野兽牌堆"'),s(),n("span",{class:"token punctuation"},"]"),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token property"},'"_updateUrls"'),n("span",{class:"token operator"},":"),s(),n("span",{class:"token punctuation"},"["),s(),n("span",{class:"token string"},'"https://updateurl.com"'),s(),n("span",{class:"token punctuation"},"]"),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token property"},'"快端上来罢"'),n("span",{class:"token operator"},":"),s(),n("span",{class:"token punctuation"},"["),s(` + `),n("span",{class:"token string"},'"哼哼哼啊啊啊啊啊"'),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token string"},'"你是一个一个一个牌堆结果"'),s(` + `),n("span",{class:"token punctuation"},"]"),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token property"},'"数字论证"'),n("span",{class:"token operator"},":"),s(),n("span",{class:"token punctuation"},"["),s(` + `),n("span",{class:"token string"},'"114514"'),n("span",{class:"token punctuation"},","),s(` + `),n("span",{class:"token string"},'"1919810"'),s(` + `),n("span",{class:"token punctuation"},"]"),s(` +`),n("span",{class:"token punctuation"},"}"),s(` +`)])]),n("div",{class:"line-numbers","aria-hidden":"true"},[n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"})])],-1),qs=n("p",null,[s("配置牌堆文件的 "),n("code",null,"update_urls"),s(" 以指定对应的更新链接:")],-1),ws=n("div",{class:"language-yaml line-numbers-mode","data-ext":"yml"},[n("pre",{class:"language-yaml"},[n("code",null,[n("span",{class:"token key atrule"},"name"),n("span",{class:"token punctuation"},":"),s(` 野兽牌堆 +`),n("span",{class:"token key atrule"},"update_urls"),n("span",{class:"token punctuation"},":"),s(` + `),n("span",{class:"token punctuation"},"-"),s(),n("span",{class:"token string"},"'https://updateurl.com'"),s(` + +`),n("span",{class:"token key atrule"},"快端上来罢"),n("span",{class:"token punctuation"},":"),s(` + `),n("span",{class:"token punctuation"},"-"),s(` 哼哼哼啊啊啊啊啊 + `),n("span",{class:"token punctuation"},"-"),s(` 你是一个一个一个牌堆结果 +`),n("span",{class:"token key atrule"},"数字论证"),n("span",{class:"token punctuation"},":"),s(` + `),n("span",{class:"token punctuation"},"-"),s(),n("span",{class:"token string"},"'114514'"),s(` + `),n("span",{class:"token punctuation"},"-"),s(),n("span",{class:"token string"},"'1919810'"),s(` +`)])]),n("div",{class:"line-numbers","aria-hidden":"true"},[n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"}),n("div",{class:"line-number"})])],-1),Ls=o(`

    有多个更新链接时,海豹将依次从上往下检查更新。

    TOML 牌堆的更多功能

    更多牌组设置

    TOML 牌堆中,你可以以表的形式来创建更复杂的牌组,这允许你更精细的控制每个牌组的选项。

    复杂牌组和普通牌组在使用上没有什么区别,仅仅是提供了配置选项的能力。

    [meta]
    +title = "野兽牌堆"
    +updateUrls = [
    +  "https://updateurl.com" # 此处填写你的更新链接
    +]
    +
    +# 简单牌组表
    +[decks]
    +"快端上来罢" = [
    +  "哼哼哼啊啊啊啊啊",
    +  "你是一个一个一个牌堆结果"
    +]
    +
    +# 复杂牌组
    +["数字论证"]
    +export = true
    +visible = true
    +aliases = [ "恶臭论证" ]
    +options = [
    +  "114514",
    +  "1919810",
    +]
    +

    表名将作为这个牌组的名称,复杂牌组提供以下选项:

    • export:是否导出该牌组;
    • visible:该牌组是否可见,不可见的将不展示在 .draw keys 列表中;
    • aliases:牌组的别名,可以使用别名抽取改牌组,如上述示例中可以使用 .draw 数字论证.draw 恶臭论证 来抽取;
    • options:该牌组的项。

    云端内容

    施工中……

    面向有经验用户的快速指南

    施工中……

    `,12);function Ms(Os,Cs){const i=u("ExternalLinkIcon"),c=u("Tabs");return r(),d("div",null,[b,n("div",h,[_,g,n("ul",null,[n("li",null,[n("a",y,[s("TOML 文档"),l(i)]),s("、"),n("a",x,[s("TOML 教程"),l(i)])]),n("li",null,[n("a",A,[s("菜鸟教程 - JSON"),l(i)])]),n("li",null,[n("a",j,[s("YAML 语言教程"),l(i)])])])]),f,l(c,{id:"67",data:[{id:"toml"},{id:"json"},{id:"yaml"}],"tab-id":"deck-format"},{title0:a(({value:e,isActive:t})=>[s("toml")]),title1:a(({value:e,isActive:t})=>[s("json")]),title2:a(({value:e,isActive:t})=>[s("yaml")]),tab0:a(({value:e,isActive:t})=>[q,w,L,M,O,C,N,S,T,Y,J,E,B,D,U,I,F,V,z,R,G,P,H,Q,Z,K,W,X,$]),tab1:a(({value:e,isActive:t})=>[nn,sn,an,en,tn,ln,on,cn,un,pn,rn,dn,kn,mn]),tab2:a(({value:e,isActive:t})=>[vn,bn,hn,_n,gn,yn,xn,An,jn,fn,qn,wn,Ln,Mn,On,Cn,Nn,Sn,Tn,Yn]),_:1}),Jn,l(c,{id:"393",data:[{id:"toml"},{id:"json"},{id:"yaml"}],"tab-id":"deck-format"},{title0:a(({value:e,isActive:t})=>[s("toml")]),title1:a(({value:e,isActive:t})=>[s("json")]),title2:a(({value:e,isActive:t})=>[s("yaml")]),tab0:a(({value:e,isActive:t})=>[En,Bn,Dn,Un]),tab1:a(({value:e,isActive:t})=>[In,Fn,Vn,zn]),tab2:a(({value:e,isActive:t})=>[Rn,Gn,Pn,Hn]),_:1}),Qn,l(c,{id:"549",data:[{id:"toml"},{id:"json"},{id:"yaml"}],"tab-id":"deck-format"},{title0:a(({value:e,isActive:t})=>[s("toml")]),title1:a(({value:e,isActive:t})=>[s("json")]),title2:a(({value:e,isActive:t})=>[s("yaml")]),tab0:a(({value:e,isActive:t})=>[Zn]),tab1:a(({value:e,isActive:t})=>[Kn]),tab2:a(({value:e,isActive:t})=>[Wn,Xn]),_:1}),$n,l(c,{id:"612",data:[{id:"toml"},{id:"json"},{id:"yaml"}],"tab-id":"deck-format"},{title0:a(({value:e,isActive:t})=>[s("toml")]),title1:a(({value:e,isActive:t})=>[s("json")]),title2:a(({value:e,isActive:t})=>[s("yaml")]),tab0:a(({value:e,isActive:t})=>[ns]),tab1:a(({value:e,isActive:t})=>[ss]),tab2:a(({value:e,isActive:t})=>[as]),_:1}),es,l(c,{id:"641",data:[{id:"toml"},{id:"json"},{id:"yaml"}],"tab-id":"deck-format"},{title0:a(({value:e,isActive:t})=>[s("toml")]),title1:a(({value:e,isActive:t})=>[s("json")]),title2:a(({value:e,isActive:t})=>[s("yaml")]),tab0:a(({value:e,isActive:t})=>[ts,ls,os]),tab1:a(({value:e,isActive:t})=>[cs,is,us,ps]),tab2:a(({value:e,isActive:t})=>[k(" 在 YAML 牌堆中,当牌组的名称以 `_` 开头,那么这个牌组将不会暴露在 `.draw keys` 中。\n\n```yaml\n_时间点:\n - 早上\n - 中午\n - 晚上\n追尾了:\n - 在{%_时间点}追尾了一辆高级黑色轿车\n```\n\n这样在 `.draw keys` 中就不会展示 `_时间点` 这一牌组。 ")]),_:1}),rs,l(c,{id:"670",data:[{id:"toml"},{id:"json"},{id:"yaml"}],"tab-id":"deck-format"},{title0:a(({value:e,isActive:t})=>[s("toml")]),title1:a(({value:e,isActive:t})=>[s("json")]),title2:a(({value:e,isActive:t})=>[s("yaml")]),tab0:a(({value:e,isActive:t})=>[ds,ks]),tab1:a(({value:e,isActive:t})=>[ms,vs,bs,hs,_s]),tab2:a(({value:e,isActive:t})=>[gs]),_:1}),ys,l(c,{id:"719",data:[{id:"toml"},{id:"json"},{id:"yaml"}],"tab-id":"deck-format"},{title0:a(({value:e,isActive:t})=>[s("toml")]),title1:a(({value:e,isActive:t})=>[s("json")]),title2:a(({value:e,isActive:t})=>[s("yaml")]),tab0:a(({value:e,isActive:t})=>[xs,As]),tab1:a(({value:e,isActive:t})=>[js,fs]),tab2:a(({value:e,isActive:t})=>[qs,ws]),_:1}),Ls])}const Ts=p(v,[["render",Ms],["__file","edit_deck.html.vue"]]);export{Ts as default}; diff --git a/assets/edit_helpdoc.html-2acfae3a.js b/assets/edit_helpdoc.html-2acfae3a.js new file mode 100644 index 000000000..2250b3632 --- /dev/null +++ b/assets/edit_helpdoc.html-2acfae3a.js @@ -0,0 +1 @@ +const e=JSON.parse('{"key":"v-53c17e03","path":"/advanced/edit_helpdoc.html","title":"编写帮助文档","lang":"zh-cn","frontmatter":{"lang":"zh-cn","title":"编写帮助文档","description":"本节内容 本节将介绍帮助文档的编写,请善用侧边栏和搜索,按需阅读文档。 我们假定你已了解 JSON 格式。如果你对 JSON 还很陌生,可以阅读以下教程或自行在互联网搜索: 菜鸟教程 - JSON (https://www.runoob.com/json/json-tutorial.html); 创建 JSON 格式的帮助文档 你可以直接按照以下格式书...","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/advanced/edit_helpdoc.html"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"编写帮助文档"}],["meta",{"property":"og:description","content":"本节内容 本节将介绍帮助文档的编写,请善用侧边栏和搜索,按需阅读文档。 我们假定你已了解 JSON 格式。如果你对 JSON 还很陌生,可以阅读以下教程或自行在互联网搜索: 菜鸟教程 - JSON (https://www.runoob.com/json/json-tutorial.html); 创建 JSON 格式的帮助文档 你可以直接按照以下格式书..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-cn"}],["meta",{"property":"og:updated_time","content":"2023-10-30T09:14:16.000Z"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-10-30T09:14:16.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"编写帮助文档\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2023-10-30T09:14:16.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[{"level":2,"title":"创建 JSON 格式的帮助文档","slug":"创建-json-格式的帮助文档","link":"#创建-json-格式的帮助文档","children":[{"level":3,"title":"示例文档:塔罗牌(节选)","slug":"示例文档-塔罗牌-节选","link":"#示例文档-塔罗牌-节选","children":[]}]},{"level":2,"title":"创建 EXCEL 格式的帮助文档","slug":"创建-excel-格式的帮助文档","link":"#创建-excel-格式的帮助文档","children":[]}],"git":{"createdTime":1698072668000,"updatedTime":1698657256000,"contributors":[{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":2}]},"readingTime":{"minutes":3.17,"words":952},"filePathRelative":"advanced/edit_helpdoc.md","localizedDate":"2023年10月23日","autoDesc":true,"excerpt":""}');export{e as data}; diff --git a/assets/edit_helpdoc.html-490066e3.js b/assets/edit_helpdoc.html-490066e3.js new file mode 100644 index 000000000..27ebb9135 --- /dev/null +++ b/assets/edit_helpdoc.html-490066e3.js @@ -0,0 +1,32 @@ +import{_ as t}from"./plugin-vue_export-helper-c27b6911.js";import{r as o,o as e,c as p,a as n,d as s,b as c,e as i}from"./app-d2f9e1e0.js";const l={},r=n("h1",{id:"编写帮助文档",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#编写帮助文档","aria-hidden":"true"},"#"),s(" 编写帮助文档")],-1),d={class:"hint-container info"},u=n("p",{class:"hint-container-title"},"本节内容",-1),k=n("p",null,"本节将介绍帮助文档的编写,请善用侧边栏和搜索,按需阅读文档。",-1),v=n("p",null,"我们假定你已了解 JSON 格式。如果你对 JSON 还很陌生,可以阅读以下教程或自行在互联网搜索:",-1),q={href:"https://www.runoob.com/json/json-tutorial.html",target:"_blank",rel:"noopener noreferrer"},h=i(`

    创建 JSON 格式的帮助文档

    你可以直接按照以下格式书写 <helpdoc>.json

    {
    +  "mod": "名字",
    +  "author": "作者",
    +  "brief": "概述",
    +  "comment": "备注",
    +  "helpdoc": {
    +    "词条A": "词条 A 的具体内容。",
    +    "词条B": "词条 B 的具体内容。",
    +    "词条C": "[图:data/images/sealdice.png] 词条 C 的图片与内容。"
    +  }
    +}
    +

    若你的文本需要换行,你可以使用 \\n 作为换行符,而不是在编写时直接换行,这会导致格式错误。你还可以使用 \\f{FormFeed} 作为分页符。

    标准 JSON 而不是 JSON5

    海豹支持的 JSON 帮助文档是「标准 JSON」格式,诸如注释,尾逗号等语法不属于 JSON 语法,而是 JSON5 这个扩展标准的语法,出错时请严格检查。

    目前暂不考虑支持 JSON5 标准。

    文件编码

    永远使用 UTF-8 编码编写 helpdoc。

    你可以在 JSON 格式的帮助文档中嵌套引用其它条目:

    {
    +  "helpdoc": {
    +    "词条A": "词条 A 的具体内容。",
    +    "词条B": "{词条A}词条 B 的具体内容。",
    +    "词条C": "你还可以 {词条A}\\n{词条B}"
    +  }
    +}
    +

    如此一来当你发送 .help 词条 B 时,骰子将回复:「词条 A 的具体内容。词条 B 的具体内容。」。

    示例文档:塔罗牌(节选)

    {
    +  "mod": "KIYTarot",
    +  "author": "浣熊旅記",
    +  "brief": "KIY 塔罗牌",
    +  "comment": "释义来源网络。",
    +  "helpdoc": {
    +    "愚者逆位": "漂泊,冒险,鲁莽,冒失,疯狂,无视物质损失,灵魂堕落,内心空虚,感情轻浮。",
    +    "魔术师逆位": "方向错误,被骗或失败,局面失控,二流角色,缺乏热忱和创造力,爱情难有进展。",
    +    "女祭司逆位": "挑剔,贪心,目光短浅,洁癖,不适宜的激情,自尊心太强,锋芒外露,单相思。",
    +    "女皇逆位": "冷淡,缺乏上进心,困难,享乐,环境险恶,贴近自然,自负,纠纷,感情挫折。",
    +    "皇帝逆位": "幼稚,挫折,武断,滥用权利,冷酷,占有欲和控制力强烈,感情勉强。"
    +  }
    +}
    +

    创建 EXCEL 格式的帮助文档

    你还可以按照以下格式书写 <helpdoc>.xlsx

    KeySynonymContentDescriptionCatalogueTag
    词条 A词条同义词词条内容对词条的简述所属目录内容 TAG
    海豹骰豹骰/海豹/sealdice一个简单易用的跑团骰子系统。
    形象是海豹,可以被叫做海豹骰、豹骰,豹子骰之类。

    Excel 格式的 helpdoc 分为 KeySynonymContentDescriptionCatalogueTag 六块,其中第二列、后三项为选填,一般情况下你都可以留空。

    • Synonym 列可以填写多个同义词,使用 / 分隔即可。
    • Excel 中的词条内容可以直接换行(也可以使用 \\n 来换行,但不支持其它换行符与分页符),因此它常用来快速编写有大段文字的帮助文档。
    • 帮助文档所在工作表的名称会作为前缀加入词条。如将工作表命名为 测试,则对应的词条会显示为 测试:词条 A。由于海豹的 .find 指令会对词条进行模糊检索,所以你不必担心前缀对查询带来的影响。

    必须保留首行!

    不要删去第一行的 KeySynonym 等词。请从第二行开始编写词条。

    EXCEL 格式的帮助文档

    <helpdoc>.xlsx 原本是梨骰用于 D&D 词条查询的格式,但海豹同样可以读取它。

    `,18);function m(b,g){const a=o("ExternalLinkIcon");return e(),p("div",null,[r,n("div",d,[u,k,v,n("ul",null,[n("li",null,[n("a",q,[s("菜鸟教程 - JSON"),c(a)])])])]),h])}const x=t(l,[["render",m],["__file","edit_helpdoc.html.vue"]]);export{x as default}; diff --git a/assets/edit_jsscript.html-7693e7fb.js b/assets/edit_jsscript.html-7693e7fb.js new file mode 100644 index 000000000..eba81ed87 --- /dev/null +++ b/assets/edit_jsscript.html-7693e7fb.js @@ -0,0 +1 @@ +const e=JSON.parse('{"key":"v-2fd3d5f8","path":"/advanced/edit_jsscript.html","title":"编写 JavaScript 插件","lang":"zh-cn","frontmatter":{"lang":"zh-cn","title":"编写 JavaScript 插件","description":"本节内容 本节将介绍 JavaScript 脚本的编写,请善用侧边栏和搜索,按需阅读文档。 我们假定你熟悉 JavaScript / TypeScript,编程语言的教学超出了本文档的目的,如果你还不熟悉它们,可以从互联网上寻找到很多优秀的教程。如: 现代 JavaScript 教程 (https://zh.javascript.info); Java...","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/advanced/edit_jsscript.html"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"编写 JavaScript 插件"}],["meta",{"property":"og:description","content":"本节内容 本节将介绍 JavaScript 脚本的编写,请善用侧边栏和搜索,按需阅读文档。 我们假定你熟悉 JavaScript / TypeScript,编程语言的教学超出了本文档的目的,如果你还不熟悉它们,可以从互联网上寻找到很多优秀的教程。如: 现代 JavaScript 教程 (https://zh.javascript.info); Java..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:image","content":"http://localhost:8080/sealdice-manual-next/"}],["meta",{"property":"og:locale","content":"zh-cn"}],["meta",{"property":"og:updated_time","content":"2023-10-30T09:14:16.000Z"}],["meta",{"name":"twitter:card","content":"summary_large_image"}],["meta",{"name":"twitter:image:alt","content":"编写 JavaScript 插件"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-10-30T09:14:16.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"编写 JavaScript 插件\\",\\"image\\":[\\"http://localhost:8080/sealdice-manual-next/\\"],\\"dateModified\\":\\"2023-10-30T09:14:16.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[{"level":2,"title":"一些有帮助的资源","slug":"一些有帮助的资源","link":"#一些有帮助的资源","children":[]},{"level":2,"title":"第一个 JS 扩展","slug":"第一个-js-扩展","link":"#第一个-js-扩展","children":[]},{"level":2,"title":"填写插件信息","slug":"填写插件信息","link":"#填写插件信息","children":[]},{"level":2,"title":"创建和注册扩展","slug":"创建和注册扩展","link":"#创建和注册扩展","children":[]},{"level":2,"title":"自定义指令","slug":"自定义指令","link":"#自定义指令","children":[{"level":3,"title":"创建指令","slug":"创建指令","link":"#创建指令","children":[]},{"level":3,"title":"指令参数与返回值","slug":"指令参数与返回值","link":"#指令参数与返回值","children":[]},{"level":3,"title":"指令核心执行流程","slug":"指令核心执行流程","link":"#指令核心执行流程","children":[]},{"level":3,"title":"注册指令","slug":"注册指令","link":"#注册指令","children":[]}]},{"level":2,"title":"示例","slug":"示例","link":"#示例","children":[{"level":3,"title":"生成随机数","slug":"生成随机数","link":"#生成随机数","children":[]},{"level":3,"title":"抽取牌堆","slug":"抽取牌堆","link":"#抽取牌堆","children":[]},{"level":3,"title":"存取数据","slug":"存取数据","link":"#存取数据","children":[]},{"level":3,"title":"示例代码:投喂插件","slug":"示例代码-投喂插件","link":"#示例代码-投喂插件","children":[]},{"level":3,"title":"示例代码:群内安价收集","slug":"示例代码-群内安价收集","link":"#示例代码-群内安价收集","children":[]},{"level":3,"title":"数据处理模板","slug":"数据处理模板","link":"#数据处理模板","children":[]},{"level":3,"title":"读取玩家或群组数据","slug":"读取玩家或群组数据","link":"#读取玩家或群组数据","children":[]}]},{"level":2,"title":"编写暗骰指令","slug":"编写暗骰指令","link":"#编写暗骰指令","children":[]},{"level":2,"title":"编写代骰指令","slug":"编写代骰指令","link":"#编写代骰指令","children":[]},{"level":2,"title":"网络请求","slug":"网络请求","link":"#网络请求","children":[]},{"level":2,"title":"自定义 COC 规则","slug":"自定义-coc-规则","link":"#自定义-coc-规则","children":[]},{"level":2,"title":"补充:使用非指令关键词","slug":"补充-使用非指令关键词","link":"#补充-使用非指令关键词","children":[]},{"level":2,"title":"注册插件配置项","slug":"注册插件配置项","link":"#注册插件配置项","children":[{"level":3,"title":"示例代码:注册配置项","slug":"示例代码-注册配置项","link":"#示例代码-注册配置项","children":[]}]},{"level":2,"title":"使用 TS 模板","slug":"使用-ts-模板","link":"#使用-ts-模板","children":[{"level":3,"title":"clone 或下载项目","slug":"clone-或下载项目","link":"#clone-或下载项目","children":[]},{"level":3,"title":"使用和编译","slug":"使用和编译","link":"#使用和编译","children":[]},{"level":3,"title":"补全信息","slug":"补全信息","link":"#补全信息","children":[]},{"level":3,"title":"目录结构","slug":"目录结构","link":"#目录结构","children":[]}]},{"level":2,"title":"JS 扩展 API","slug":"js-扩展-api","link":"#js-扩展-api","children":[{"level":3,"title":"部分 api 使用示例","slug":"部分-api-使用示例","link":"#部分-api-使用示例","children":[]},{"level":3,"title":"ctx 的内容","slug":"ctx-的内容","link":"#ctx-的内容","children":[]},{"level":3,"title":"msg 的内容","slug":"msg-的内容","link":"#msg-的内容","children":[]},{"level":3,"title":"cmdArgs 的内容","slug":"cmdargs-的内容","link":"#cmdargs-的内容","children":[]}]}],"git":{"createdTime":1698072668000,"updatedTime":1698657256000,"contributors":[{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":4},{"name":"Szzrain","email":"54656633+Szzrain@users.noreply.github.com","commits":1}]},"readingTime":{"minutes":29.21,"words":8762},"filePathRelative":"advanced/edit_jsscript.md","localizedDate":"2023年10月23日","autoDesc":true,"excerpt":""}');export{e as data}; diff --git a/assets/edit_jsscript.html-e9b77c82.js b/assets/edit_jsscript.html-e9b77c82.js new file mode 100644 index 000000000..aaffd19fa --- /dev/null +++ b/assets/edit_jsscript.html-e9b77c82.js @@ -0,0 +1,815 @@ +import{_ as r}from"./plugin-vue_export-helper-c27b6911.js";import{r as i,o as k,c as d,a as n,d as s,b as a,f as m,w as e,e as p}from"./app-d2f9e1e0.js";const v="/sealdice-manual-next/assets/js-config-example-717e902c.png",b={},g=n("h1",{id:"编写-javascript-插件",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#编写-javascript-插件","aria-hidden":"true"},"#"),s(" 编写 JavaScript 插件")],-1),h={class:"hint-container info"},f=n("p",{class:"hint-container-title"},"本节内容",-1),x=n("p",null,"本节将介绍 JavaScript 脚本的编写,请善用侧边栏和搜索,按需阅读文档。",-1),y=n("p",null,"我们假定你熟悉 JavaScript / TypeScript,编程语言的教学超出了本文档的目的,如果你还不熟悉它们,可以从互联网上寻找到很多优秀的教程。如:",-1),w={href:"https://zh.javascript.info",target:"_blank",rel:"noopener noreferrer"},j={href:"https://www.liaoxuefeng.com/wiki/1022910821149312",target:"_blank",rel:"noopener noreferrer"},_={href:"https://www.runoob.com/js/js-tutorial.html",target:"_blank",rel:"noopener noreferrer"},S=n("h2",{id:"一些有帮助的资源",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#一些有帮助的资源","aria-hidden":"true"},"#"),s(" 一些有帮助的资源")],-1),q={href:"https://marketplace.visualstudio.com/items?itemName=yxChangingSelf.sealdice-snippets",target:"_blank",rel:"noopener noreferrer"},A={href:"https://github.com/sealdice/sealdice-js-ext-template",target:"_blank",rel:"noopener noreferrer"},C=n("a",{href:"#%E4%BD%BF%E7%94%A8-ts-%E6%A8%A1%E6%9D%BF"},"使用 TS 模板",-1),E=p(`

    使用 TypeScript

    我们更推荐使用 TypeScript 来编写插件,编译到 ES6 后使用即可。不过先从 JavaScript 开始也是没有任何问题的。

    第一个 JS 扩展

    我们从最简单的扩展开始,这个扩展只会在日志中打印一条 Hello World!

    // ==UserScript==
    +// @name         示例:如何开始
    +// @author       木落
    +// @version      1.0.0
    +// @description  这是一个演示脚本,并没有任何实际作用。
    +// @timestamp    1671368035
    +// 2022-12-18
    +// @license      Apache-2
    +// @homepageURL  https://github.com/sealdice/javascript
    +// ==/UserScript==
    +
    +console.log('Hello World!');
    +
    `,4),T={class:"hint-container note"},I=n("p",{class:"hint-container-title"},"海豹对 JavaScript 的支持",-1),R={href:"https://github.com/dop251/goja",target:"_blank",rel:"noopener noreferrer"},N=n("code",null,"async/await",-1),G=n("code",null,"promise",-1),$=n("code",null,"generator",-1),X=n("p",null,"需要注意引擎的整型为 32 位,请小心溢出问题。",-1),B=p(`

    打印日志

    console 打印出来的东西不仅会在控制台中出现,在日志中也会显示。

    涉及网络请求或延迟执行的内容,有时候不会在控制台调试面板上显示出来,而在日志中能看到。

    填写插件信息

    每个 JS 扩展需要在开头以固定格式注释的形式留下信息,以便使用和分享:

    // ==UserScript==
    +// @name         脚本的名字
    +// @author       木落
    +// @version      1.0.0
    +// @description  这是一个演示脚本,并没有任何实际作用。
    +// @timestamp    1672066028
    +// @license      Apache-2
    +// @homepageURL  https://github.com/sealdice/javascript
    +// ==/UserScript==
    +
    `,4),P=n("thead",null,[n("tr",null,[n("th",null,"属性"),n("th",null,"含义")])],-1),M=n("tr",null,[n("td",null,"@name"),n("td",null,"JS 扩展的名称,会展示在插件列表页面")],-1),O=n("tr",null,[n("td",null,"@author"),n("td",null,"作者名")],-1),J=n("td",null,"@version",-1),U={href:"https://semver.org/lang/zh-CN/",target:"_blank",rel:"noopener noreferrer"},V=n("tr",null,[n("td",null,"@description"),n("td",null,"对扩展的功能的描述")],-1),D=n("tr",null,[n("td",null,"@timestamp"),n("td",null,[s("最后更新时间,以秒为单位的 unix 时间戳,新版本支持了直接使用时间字符串,如 "),n("code",null,"2023-10-30"),s("。")])],-1),L=n("tr",null,[n("td",null,"@license"),n("td",null,"开源协议,示例中的 Apache-2 是一个比较自由的协议,允许任意使用和分发(包括商用),当然你也可以使用其它协议(MIT GPL 等)")],-1),F=n("tr",null,[n("td",null,"@homepageURL"),n("td",null,"你的扩展的主页链接,有 GitHub 仓库可以填仓库链接,没有则可以填海豹官方插件仓库")],-1),H=n("h2",{id:"创建和注册扩展",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#创建和注册扩展","aria-hidden":"true"},"#"),s(" 创建和注册扩展")],-1),K={class:"hint-container tip"},Y=n("p",{class:"hint-container-title"},"扩展机制",-1),z=n("p",null,"扩展机制可以看做是海豹的 mod 管理机制,可以模块化开关海豹的任意一部分,如常用的开启 dnd 扩展,关闭 coc 扩展,关闭自动回复等。",-1),W=p(`

    在海豹中,所有指令必须归属于某个扩展,而一个扩展可以包含多条指令。

    JS 脚本中创建扩展的方式如下,在创建扩展后,还需要注册扩展,才能让扩展起效,不要漏掉哦!

    // 如何建立一个扩展
    +
    +// 首先检查是否已经存在
    +if (!seal.ext.find('test')) {
    +  // 不存在,那么建立扩展,名为 test,作者“木落”,版本 1.0.0
    +  const ext = seal.ext.new('test', '木落', '1.0.0');
    +  // 注册扩展
    +  seal.ext.register(ext);
    +}
    +

    JS 脚本和扩展

    在实现上,海豹允许你在一个 JS 脚本文件中注册多个扩展,但我们不建议这样做。一般来说,一个 JS 脚本文件只会注册一个扩展。

    修改内置功能?

    出于对公平性的考虑,JS 脚本不能替换内置指令和内置扩展。

    自定义指令

    想要创建一条自定义指令,首先需要创建一个扩展(seal.ExtInfo),写好自定义指令的实现逻辑之后,再注册到扩展中。

    创建指令

    接上面的代码,假定目前已经注册好了一个名为 test 的扩展,现在要写一个名为 seal 的指令:

    • 这个命令的功能为,显示「抓到一只海豹」的文案;
      • 如果命令写 .seal ABC,那么文案中将海豹命名为「ABC」;
      • 如果命令中没写名字,那么命名为默认值「氪豹」。

    第一步,创建新的自定义指令,设置好名字和帮助信息。

    const cmdSeal = seal.ext.newCmdItemInfo();
    +cmdSeal.name = 'seal'; // 指令名字,可用中文
    +cmdSeal.help = '召唤一只海豹,可用 .seal <名字> 命名';
    +

    命令的帮助信息

    命令的帮助信息是在使用 .help <命令> 时会返回的帮助内容。

    帮助信息不要. 开头,防止查看帮助时骰子的回复触发其他骰子。

    第二步,编写指令的具体处理代码。

    你需要编写指令对象的 solve 函数,在使用该指令的时候,海豹核心会调用你写的这个函数。

    cmdSeal.solve = (ctx, msg, cmdArgs) => {
    +    // 这里是你需要编写的内容
    +};
    +
    参数说明
    ctx主要是和当前环境以及用户相关的内容,如当前发指令用户,当前群组信息等
    msg原始指令内容,如指令文本,发送平台,发送时间等
    cmdArgs指令信息,会将用户发的信息进行分段,方便快速取用
    `,17),Q={href:"https://github.com/sealdice/javascript/tree/main/examples_ts",target:"_blank",rel:"noopener noreferrer"},Z=n("code",null,"examp_ts",-1),nn=n("code",null,"seal.d.ts",-1),sn=p(`

    指令参数与返回值

    假设用户发送过来的消息是 .seal A B C,那么可以用 cmdArgs.getArgN(1) 获取到 AcmdArgs.getArgN(2) 获取到 BcmdArgs.getArgN(3) 获取到 C

    通常会对参数值进行判断,随后作出响应。

    以下代码处理的是 .seal help 的情形:

    cmdSeal.solve = (ctx, msg, cmdArgs) => {
    +  // 获取第一个参数,例如 .seal A B C
    +  // 这里 cmdArgs.getArgN(1) 的结果即是 A,传参为 2 的话结果是 B
    +  let val = cmdArgs.getArgN(1);
    +  switch (val) {
    +    case 'help': {
    +      // 命令为 .seal help
    +      // 创建一个结果对象,并将 showHelp 标记为 true,这会自动给用户发送帮助
    +      const ret = seal.ext.newCmdExecuteResult(true);
    +      ret.showHelp = true;
    +      return ret;
    +    }
    +    default: {
    +      // 没有传入参数时的代码
    +      return seal.ext.newCmdExecuteResult(true);
    +    }
    +  }
    +};
    +

    返回执行结果

    在执行完自己的代码之后,需要返回指令结果对象,其参数是是否执行成功。

    指令核心执行流程

    给消息发送者回应,需要使用 seal.replyToSender() 函数,前两个参数和 solve() 函数接收的参数一致,第三个参数是你要发送的文本。

    `,8),an=n("code",null,"{$t玩家}",-1),tn={href:"https://docs.go-cqhttp.org/cqcode",target:"_blank",rel:"noopener noreferrer"},pn=p(`

    在这个例子中,我们需要获取作为海豹名字的参数,获取不到就使用默认值,随后向消息发送者发送回应。

    在刚刚的位置填入核心代码,就可以完成了。

    cmdSeal.solve = (ctx, msg, cmdArgs) => {
    +  // 获取第一个参数,例如 .seal A B C
    +  // 这里 cmdArgs.getArgN(1) 的结果即是 A,传参为 2 的话结果是 B
    +  let val = cmdArgs.getArgN(1);
    +  switch (val) {
    +    case 'help': {
    +      // 命令为 .seal help
    +      // 创建一个结果对象,并将 showHelp 标记为 true,这会自动给用户发送帮助
    +      const ret = seal.ext.newCmdExecuteResult(true);
    +      ret.showHelp = true;
    +      return ret;
    +    }
    +    default: {
    +      // 命令为 .seal XXXX,取第一个参数为名字
    +      if (!val) val = '氪豹';
    +      // 进行回复,如果是群聊发送那么在群里回复,私聊发送则在私聊回复 (听起来是废话文学,但详细区别见暗骰例子)
    +      seal.replyToSender(ctx, msg, \`你抓到一只海豹!取名为\${val}\\n它的逃跑意愿为\${Math.ceil(Math.random() * 100)}\`);
    +      return seal.ext.newCmdExecuteResult(true);
    +    }
    +  }
    +};
    +

    注册指令

    第三步,将命令注册到扩展中。

    ext.cmdMap['seal'] = cmdSeal;
    +

    如果你想要给这个命令起一个别名,也就是增加一个触发词,可以这样写:

    ext.cmdMap['seal'] = cmdSeal; // 注册 .seal 指令
    +ext.cmdMap['海豹'] = cmdSeal; // 注册 .海豹 指令,等效于 .seal
    +

    完整的代码如下:

    // ==UserScript==
    +// @name         示例:编写一条自定义指令
    +// @author       木落
    +// @version      1.0.0
    +// @description  召唤一只海豹,可用.seal <名字> 命名
    +// @timestamp    1671368035
    +// 2022-12-18
    +// @license      Apache-2
    +// @homepageURL  https://github.com/sealdice/javascript
    +// ==/UserScript==
    +
    +// 编写一条自定义指令
    +// 先将扩展模块创建出来,如果已创建就直接使用
    +let ext = seal.ext.find('test');
    +if (!ext) {
    +  ext = seal.ext.new('test', '木落', '1.0.0');
    +  seal.ext.register(ext);
    +}
    +
    +// 创建指令 .seal
    +// 这个命令的功能为,显示「抓到一只海豹」的文案;
    +// 如果命令写 .seal ABC,那么文案中将海豹命名为「ABC」;
    +// 如果命令中没写名字,那么命名为默认值「氪豹」。
    +const cmdSeal = seal.ext.newCmdItemInfo();
    +cmdSeal.name = 'seal'; // 指令名字,可用中文
    +cmdSeal.help = '召唤一只海豹,可用 .seal <名字> 命名';
    +
    +// 主函数,指令解析器会将指令信息解析,并储存在几个参数中
    +// ctx 主要是和当前环境以及用户相关的内容,如当前发指令用户,当前群组信息等
    +// msg 为原生态的指令内容,如指令文本,发送平台,发送时间等
    +// cmdArgs 为指令信息,会将用户发的信息进行分段,方便快速取用
    +cmdSeal.solve = (ctx, msg, cmdArgs) => {
    +  // 获取第一个参数,例如 .seal A B C
    +  // 这里 cmdArgs.getArgN(1) 的结果即是 A,传参为 2 的话结果是 B
    +  let val = cmdArgs.getArgN(1);
    +  switch (val) {
    +    case 'help': {
    +      // 命令为 .seal help
    +      // 创建一个结果对象,并将 showHelp 标记为 true,这会自动给用户发送帮助
    +      const ret = seal.ext.newCmdExecuteResult(true);
    +      ret.showHelp = true;
    +      return ret;
    +    }
    +    default: {
    +      // 命令为 .seal XXXX,取第一个参数为名字
    +      if (!val) val = '氪豹';
    +      // 进行回复,如果是群聊发送那么在群里回复,私聊发送则在私聊回复 (听起来是废话文学,但详细区别见暗骰例子)
    +      seal.replyToSender(ctx, msg, \`你抓到一只海豹!取名为\${val}\\n它的逃跑意愿为\${Math.ceil(Math.random() * 100)}\`);
    +      return seal.ext.newCmdExecuteResult(true);
    +    }
    +  }
    +};
    +
    +// 将命令注册到扩展中
    +ext.cmdMap['seal'] = cmdSeal;
    +
    +// 无实际意义,用于消除编译报错
    +export {}
    +

    这就是最基本的模板了。

    示例

    生成随机数

    可以使用以下函数生成随机整数:

    /**
    + * 生成随机整数
    + * @param min 最小值
    + * @param max 最大值
    + * @returns 位于 [min,max] 区间的随机整数
    + */
    +function randomInt(min, max) {
    +  return Math.floor(Math.random() * (max - min + 1)) + min;
    +}
    +

    抽取牌堆

    施工中……

    存取数据

    相关的 API 是两个函数,ExtInfo.storageSet(key, value) 函数和 ExtInfo.storageGet(key),一个存,一个取。

    关于 key:

    存储时需要指定 key,你可以设定为你的扩展的名字,也可以设定为其他的,注意不要和别的扩展的 key 重名就可以了。

    就好比你在商场门口想要把随身物品存进暂存柜中,需要先找到个和别人不重复的柜子,避免放错地方或者取错东西。

    关于 value:

    存放的数据是字符串类型,且只能存一个,但如果想要存放更多的数据以及非字符串类型的数据怎么办?

    `,24),en=n("code",null,"JSON.stringify()",-1),on={href:"https://www.runoob.com/json/json-tutorial.html",target:"_blank",rel:"noopener noreferrer"},cn=n("code",null,"JSON.parse()",-1),ln=p(`

    示例代码:投喂插件

    // ==UserScript==
    +// @name         示例:存储数据
    +// @author       木落
    +// @version      1.0.0
    +// @description  投喂,格式 .投喂 <物品>
    +// @timestamp    1672423909
    +// 2022-12-31
    +// @license      Apache-2
    +// @homepageURL  https://github.com/sealdice/javascript
    +// ==/UserScript==
    +
    +// 先将扩展模块创建出来,如果已创建就直接使用
    +let ext = seal.ext.find('test');
    +if (!ext) {
    +  ext = seal.ext.new('test', '木落', '1.0.0');
    +  seal.ext.register(ext);
    +}
    +const cmdFeed = seal.ext.newCmdItemInfo();
    +cmdFeed.name = '投喂';
    +cmdFeed.help = '投喂,格式:.投喂 <物品>\\n.投喂 记录 // 查看记录';
    +cmdFeed.solve = (ctx, msg, cmdArgs) => {
    +  let val = cmdArgs.getArgN(1);
    +  switch (val) {
    +    case 'help':
    +    case '': {
    +      // .投喂 help
    +      const ret = seal.ext.newCmdExecuteResult(true);
    +      ret.showHelp = true;
    +      return ret;
    +    }
    +    case '列表':
    +    case '记录':
    +    case 'list': {
    +      const data = JSON.parse(ext.storageGet('feedInfo') || '{}');
    +      const lst = [];
    +      for (let [k, v] of Object.entries(data)) {
    +        lst.push(\`- \${k}: 数量 \${v}\`);
    +      }
    +      seal.replyToSender(ctx, msg, \`投喂记录:\\n\${lst.join('\\n')}\`);
    +      return seal.ext.newCmdExecuteResult(true);
    +    }
    +    default: {
    +      const data = JSON.parse(ext.storageGet('feedInfo') || '{}');
    +      const name = val || '空气';
    +      if (data[name] === undefined) {
    +        data[name] = 0;
    +      }
    +      data[name] += 1;
    +      ext.storageSet('feedInfo', JSON.stringify(data));
    +      seal.replyToSender(ctx, msg, \`你给海豹投喂了\${name},要爱护动物!\`);
    +      return seal.ext.newCmdExecuteResult(true);
    +    }
    +  }
    +};
    +// 将命令注册到扩展中
    +ext.cmdMap['投喂'] = cmdFeed;
    +ext.cmdMap['feed'] = cmdFeed;
    +

    示例代码:群内安价收集

    这是关于数据的增加、删除、查询等操作的实现示例(修改的话就是删除之后增加)

    // ==UserScript==
    +// @name         群内安价收集
    +// @author       憧憬少
    +// @version      1.0.0
    +// @description  在群内收集群友给出的安价选项,并掷骰得出结果
    +// @timestamp    1676386517
    +// 2023-02-14 22:55:17
    +// @license      MIT
    +// @homepageURL  https://github.com/ChangingSelf/sealdice-js-ext-anchor
    +// ==/UserScript==
    +
    +(() => {
    +  // src/index.ts
    +  const HELP = \`群内安价收集 (ak 是アンカー罗马字缩写)
    +注意 ak 后面有空格,“.ak”也可以换成“.安价”
    +
    +.ak help // 查看帮助
    +.ak # 标题 // 新建一轮分歧并设标题
    +.ak + 选项 // 需要添加的选项的内容
    +.ak - 序号 // 需要移除的选项的序号
    +.ak ? // 列出目前所有选项
    +.ak = // 随机抽取 1 个选项并继续
    +.ak = n // 随机抽取 n 个选项并继续
    +\`;
    +  const STORAGE_KEY = "anchor";
    +  const OPTION_NUM_PER_PAGE = 15; // 列出所有选项时,每页放多少个选项
    +  function akNew(ctx, msg, ext, title) {
    +    const data = {
    +      "title": title,
    +      "options": []
    +    };
    +    ext.storageSet(STORAGE_KEY, JSON.stringify(data));
    +    seal.replyToSender(ctx, msg, \`已新建分歧:\${title}\`);
    +  }
    +  function akAdd(ctx, msg, ext, option) {
    +    const data = JSON.parse(ext.storageGet(STORAGE_KEY) || '{"title":"","options":[]}');
    +    data.options.push(option);
    +    seal.replyToSender(ctx, msg, \`当前分歧:\${data.title}
    +已添加第\${data.options.length}个选项:\${option}\`);
    +    ext.storageSet(STORAGE_KEY, JSON.stringify(data));
    +  }
    +  function akDel(ctx, msg, ext, index) {
    +    const data = JSON.parse(ext.storageGet(STORAGE_KEY) || '{"title":"","options":[]}');
    +    const removed = data.options.splice(index - 1, 1)[0];
    +    seal.replyToSender(ctx, msg, \`当前分歧:\${data.title}
    +已移除第\${index}个选项:\${removed}\`);
    +    ext.storageSet(STORAGE_KEY, JSON.stringify(data));
    +  }
    +  function akList(ctx, msg, ext) {
    +    const data = JSON.parse(ext.storageGet(STORAGE_KEY) || '{"title":"","options":[]}');
    +    if (data.options.length === 0) {
    +      seal.replyToSender(ctx, msg, \`当前分歧:\${data.title}
    +还没有任何选项呢\`);
    +      return;
    +    }
    +    let optStr = "";
    +    let curPageRows = 0;
    +    data.options.forEach((value, index) => {
    +      optStr += \`\${index + 1}.\${value}
    +\`;
    +      ++curPageRows;
    +      if (curPageRows >= OPTION_NUM_PER_PAGE) {
    +        seal.replyToSender(ctx, msg, \`当前分歧:\${data.title}
    +\${optStr}\`);
    +        optStr = "";
    +        curPageRows = 0;
    +      }
    +    });
    +    if (curPageRows > 0) {
    +      seal.replyToSender(ctx, msg, \`当前分歧:\${data.title}
    +\${optStr}\`);
    +    }
    +  }
    +  function randomInt(min, max) {
    +    return Math.floor(Math.random() * (max - min + 1)) + min;
    +  }
    +  function akGet(ctx, msg, ext, num = 1) {
    +    const data = JSON.parse(ext.storageGet(STORAGE_KEY) || '{"title":"","options":[]}');
    +    if (data.options.length === 0) {
    +      seal.replyToSender(ctx, msg, \`当前分歧:\${data.title}
    +还没有任何选项呢\`);
    +      return;
    +    }
    +    akList(ctx, msg, ext);
    +    let optStr = "";
    +    for (let i = 0; i < num; ++i) {
    +      const r = randomInt(1, data.options.length);
    +      const result = data.options.splice(r - 1, 1);
    +      optStr += \`\${i + 1}.\${result}
    +\`;
    +    }
    +    seal.replyToSender(ctx, msg, \`结果是:
    +\${optStr}\`);
    +    ext.storageSet(STORAGE_KEY, JSON.stringify(data));
    +  }
    +  function main() {
    +    let ext = seal.ext.find("anchor");
    +    if (!ext) {
    +      ext = seal.ext.new("anchor", "憧憬少", "1.0.0");
    +      seal.ext.register(ext);
    +    }
    +    const cmdSeal = seal.ext.newCmdItemInfo();
    +    cmdSeal.name = "安价";
    +    cmdSeal.help = HELP;
    +    cmdSeal.solve = (ctx, msg, cmdArgs) => {
    +      try {
    +        let val = cmdArgs.getArgN(1);
    +        switch (val) {
    +          case "#": {
    +            const title = cmdArgs.getArgN(2);
    +            akNew(ctx, msg, ext, title);
    +            return seal.ext.newCmdExecuteResult(true);
    +          }
    +          case "+": {
    +            const option = cmdArgs.getArgN(2);
    +            akAdd(ctx, msg, ext, option);
    +            return seal.ext.newCmdExecuteResult(true);
    +          }
    +          case "-": {
    +            const index = Number(cmdArgs.getArgN(2));
    +            akDel(ctx, msg, ext, index);
    +            return seal.ext.newCmdExecuteResult(true);
    +          }
    +          case "?":
    +          case "?": {
    +            akList(ctx, msg, ext);
    +            return seal.ext.newCmdExecuteResult(true);
    +          }
    +          case "=": {
    +            let num = 1;
    +            if (cmdArgs.args.length >= 2) {
    +              num = Number(cmdArgs.getArgN(2));
    +            }
    +            akGet(ctx, msg, ext, num);
    +            return seal.ext.newCmdExecuteResult(true);
    +          }
    +          case "help":
    +          default: {
    +            const ret = seal.ext.newCmdExecuteResult(true);
    +            ret.showHelp = true;
    +            return ret;
    +          }
    +        }
    +      } catch (error) {
    +        seal.replyToSender(ctx, msg, error.Message);
    +        return seal.ext.newCmdExecuteResult(true);
    +      }
    +    };
    +    ext.cmdMap["安价"] = cmdSeal;
    +    ext.cmdMap["ak"] = cmdSeal;
    +  }
    +  main();
    +})();
    +
    +

    数据处理模板

    关于取出数据来修改的函数,可以参考如下代码:

    const STORAGE_KEY = "anchor"; // 将你的 key 抽出来单独作为一个常量,方便开发阶段修改(使用了之后就不要修改了)
    +//函数:添加选项
    +function akAdd(ctx, msg, ext, option) {
    +    //取出数据
    +    const data = JSON.parse(ext.storageGet(STORAGE_KEY) || '{"title":"","options":[]}');
    +    
    +    //处理数据
    +    data.options.push(option);
    +    
    +    //响应发送者
    +    seal.replyToSender(ctx, msg, \`当前分歧:\${data.title}\\n已添加第\${data.options.length}个选项:\${option}\`);
    +    
    +    //将处理完的数据写回去
    +    ext.storageSet(STORAGE_KEY, JSON.stringify(data));
    +}
    +

    读取玩家或群组数据

    可以查看下文的 API

    编写暗骰指令

    如下:

    // ==UserScript==
    +// @name         示例:编写暗骰指令
    +// @author       流溪
    +// @version      1.0.0
    +// @description  暗骰,格式.hide 原因
    +// @timestamp    1671540835
    +// 2022-12-20
    +// @license      Apache-2
    +// @homepageURL  https://github.com/sealdice/javascript
    +// ==/UserScript==
    +ext = seal.ext.find('hide');
    +if (!ext){
    +    ext = seal.ext.new('hide','流溪','0.0.1');
    +    seal.ext.register(ext);
    +}
    +const cmdHide = seal.ext.newCmdItemInfo;
    +cmdHide.name = 'hide';
    +cmdHide.help = '暗骰,使用 .hide 面数 暗骰';
    +cmdHide.solve = (ctx, msg, cmdArgs) => {
    +    if (msg.messageType !== 'group'){
    +        seal.replyToSender(ctx, msg, '暗骰只能在群内触发');
    +        return seal.ext.newCmdExecuteResult(true);
    +    }
    +    function rd(x){
    +        // 这里写的时候有点不清醒了,感觉是对的,如果不对请拷打我
    +        return Math.round(Math.random() * (x - 1) + 1);
    +    }
    +    let x = cmdArgs.getArgN(1);
    +    if (x === 'help'){
    +        return seal.ext.newCmdExecuteResult(true).showhelp = true;
    +    } else if (isNaN(Number(x))){
    +        // 我知道这里有更好的判断是否为数字的方法但是我不会.jpg
    +        seal.replyToSender(ctx, msg, \`骰子面数应是数字\`);
    +        return seal.ext.newCmdExecuteResult(true);
    +    } else {
    +        // 这就是暗骰 api 哒!
    +        seal.replyPerson(ctx, msg, \`你在群\${msg.groupId}的掷骰结果为:\${rd(x)}\`);
    +        return seal.ext.newCmdExecuteResult(true);
    +    }
    +}
    +ext.cmdMap['hide'] = cmdHide;
    +

    可以看到使用seal.replyPerson做到暗骰的效果。

    编写代骰指令

    // ==UserScript==
    +// @name         示例:编写代骰指令
    +// @author       木落
    +// @version      1.0.0
    +// @description  捕捉某人,格式.catch <@名字>
    +// @timestamp    1671540835
    +// 2022-12-20
    +// @license      Apache-2
    +// @homepageURL  https://github.com/sealdice/javascript
    +// ==/UserScript==
    +
    +// 编写代骰指令
    +// 先将扩展模块创建出来,如果已创建就直接使用
    +let ext = seal.ext.find('test');
    +if (!ext) {
    +  ext = seal.ext.new('test', '木落', '1.0.0');
    +  seal.ext.register(ext);
    +}
    +// 创建指令 .catch
    +// 这个命令的功能为,显示“试图捕捉某人”,并给出成功率
    +// 如果命令写“.catch @张三”,那么就会试着捕捉张三
    +const cmdCatch = seal.ext.newCmdItemInfo();
    +cmdCatch.name = 'catch';
    +cmdCatch.help = '捕捉某人,格式.catch <@名字>';
    +// 对这个指令启用使用代骰功能,即@某人时,可获取对方的数据,以对方身份进行骰点
    +cmdCatch.allowDelegate = true;
    +cmdCatch.solve = (ctx, msg, cmdArgs) => {
    +  // 获取对方数据,之后用 mctx 替代 ctx,mctx 下读出的数据即被代骰者的个人数据
    +  const mctx = seal.getCtxProxyFirst(ctx, msg);
    +  let val = cmdArgs.getArgN(1);
    +  switch (val) {
    +    case 'help': {
    +      // 命令为 .catch help
    +      const ret = seal.ext.newCmdExecuteResult(true);
    +      ret.showHelp = true;
    +      return ret;
    +    }
    +    default: {
    +      const text = \`正在试图捕捉\${mctx.player.name},成功率为\${Math.ceil(Math.random() * 100)}%\`;
    +      seal.replyToSender(mctx, msg, text);
    +      return seal.ext.newCmdExecuteResult(true);
    +    }
    +  }
    +};
    +// 将命令注册到扩展中
    +ext.cmdMap['catch'] = cmdCatch;
    +
    +

    网络请求

    `,17),un={href:"https://developer.mozilla.org/zh-CN/docs/Web/API/Fetch_API",target:"_blank",rel:"noopener noreferrer"},rn=p(`
    // 你可以使用 async/await 和 generator 来重写这段代码,欢迎 pr
    +// 访问网址
    +fetch('https://api-music.imsyy.top/cloudsearch?keywords=稻香').then((resp) => {
    +  // 在返回对象的基础上,将文本流作为 json 解析
    +  resp.json().then((data) => {
    +    // 打印解析出的数据
    +    console.log(JSON.stringify(data));
    +  });
    +});
    +

    套用这个模板,你可以写出很多调用 API 的简单扩展。

    `,2),kn={href:"https://github.com/sealdice/javascript/blob/main/scripts/%E5%A8%B1%E4%B9%90%E5%90%91/%E9%9A%8F%E6%9C%BA%E7%8C%AB%E7%8C%AB%E5%9B%BE%E7%89%87.js",target:"_blank",rel:"noopener noreferrer"},dn=p('
    seal.replyToSender(ctx, msg, `[CQ:image,file=https://thiscatdoesnotexist.com/,cache=0]`);\n

    核心代码同样只有一行的「随机二次元图片」扩展:

    seal.replyToSender(ctx, msg, `[CQ:image,file=https://api.oick.cn/random/api.php?type=${val},cache=0]`);\n
    ',3),mn={href:"https://github.com/sealdice/javascript/blob/main/scripts/%E5%A8%B1%E4%B9%90%E5%90%91/dicemaid-ai.js",target:"_blank",rel:"noopener noreferrer"},vn=p(`

    它的核心代码如下:

    const BID = ''; // 填入你的骰娘的大脑的 id
    +const KEY = ''; // 填入你的 key
    +/**
    + * 给 AI 主脑发送消息并接收回复
    + * @param ctx 主要是和当前环境以及用户相关的内容,如当前发指令用户,当前群组信息等
    + * @param msg 为原生态的指令内容,如指令文本,发送平台,发送时间等
    + * @param message 要发送给骰娘的具体消息
    + */
    +function chatWithBot(ctx,msg,message) {
    +    fetch(\`http://api.brainshop.ai/get?bid=\${BID}&key=\${KEY}&uid=\${msg.sender.userId}&msg=\${message}\`).then(response => {
    +      if (!response.ok) {
    +        seal.replyToSender(ctx, msg, \`抱歉,我连接不上主脑了。它传递过来的信息是:\${response.status}\`);
    +        return seal.ext.newCmdExecuteResult(false);
    +      } else {
    +        response.json().then(data => {
    +          seal.replyToSender(ctx, msg, data["cnt"]);
    +          return seal.ext.newCmdExecuteResult(true);
    +        });
    +        return seal.ext.newCmdExecuteResult(true);
    +      }
    +    });
    +}
    +

    自定义 COC 规则

    // ==UserScript==
    +// @name         示例:自定义 COC 规则
    +// @author       木落
    +// @version      1.0.0
    +// @description  自设规则,出 1 大成功,出 100 大失败。困难极难等保持原样
    +// @timestamp    1671886435
    +// 2022-12-24
    +// @license      Apache-2
    +// @homepageURL  https://github.com/sealdice/javascript
    +// ==/UserScript==
    +
    +const rule = seal.coc.newRule();
    +rule.index = 20; // 自定义序号必须大于等于 20,代表可用.setcoc 20 切换
    +rule.key = '测试'; // 代表可用 .setcoc 测试 切换
    +rule.name = '自设规则'; // 已切换至规则文本 name: desc
    +rule.desc = '出 1 大成功\\n出 100 大失败';
    +// d100 为出目,checkValue 为技能点数
    +rule.check = (ctx, d100, checkValue) => {
    +  let successRank = 0;
    +  const criticalSuccessValue = 1;
    +  const fumbleValue = 100;
    +  if (d100 <= checkValue) {
    +    successRank = 1;
    +  } else {
    +    successRank = -1;
    +  }
    +  // 成功判定
    +  if (successRank == 1) {
    +    // 区分大成功、困难成功、极难成功等
    +    if (d100 <= checkValue / 2) {
    +      //suffix = "成功(困难)"
    +      successRank = 2;
    +    }
    +    if (d100 <= checkValue / 5) {
    +      //suffix = "成功(极难)"
    +      successRank = 3;
    +    }
    +    if (d100 <= criticalSuccessValue) {
    +      //suffix = "大成功!"
    +      successRank = 4;
    +    }
    +  } else {
    +    if (d100 >= fumbleValue) {
    +      //suffix = "大失败!"
    +      successRank = -2;
    +    }
    +  }
    +  let ret = seal.coc.newRuleCheckResult();
    +  ret.successRank = successRank;
    +  ret.criticalSuccessValue = criticalSuccessValue;
    +  return ret;
    +};
    +// 注册规则
    +seal.coc.registerRule(rule);
    +
    +

    补充:使用非指令关键词

    你是否因为自定义回复能实现的功能有限而烦恼?你是否因为自定义回复的匹配方式不全而愤怒?你是否因为自定义回复只能调用图片 api 而感到焦头烂额?

    不要紧张,我的朋友,试试非指令关键词,这会非常有用。

    通常情况下,我们使用 ext.onNotCommandReceived 作为非指令关键词的标志;这限定了只有在未收到命令且未达成自定义回复时,海豹才会触发此流程。

    一个完整的非指令关键词模板如下:

    // 必要流程,注册扩展,注意即使是非指令关键词也是依附于扩展的  
    +if (!seal.ext.find('xxx')){    
    +    ext = seal.ext.new('xxx','xxx','x.x.x');    
    +    seal.ext.register(ext); 
    +    // 这里其实是编写处理函数     
    +    ext.onNotCommandReceived = (ctx, msg) => {    
    +        let message = msg.message;  
    +        // 这里请自己处理要如何达成 message 的匹配条件,js 那么多的匹配方法,足够你玩出花来。  
    +        if(xxx){
    +          // 匹配到关键词了,要干什么?  
    +          xxx;
    +        }
    +    }
    +}
    +

    注册插件配置项

    插件若要在 UI 中注册可供用户修改的配置项,需要在插件注册后调用 seal.ext.registerXXXConfig() 函数注册配置项。

    XXX 为配置项的类型,目前支持 stringintfloatbooltemplateoption 六种类型。注意按照小驼峰命名法大写

    同样的,插件也可以使用 seal.ext.getXXXConfig() 函数获取配置项的值。

    你也可以直接使用 seal.ext.getConfig() 函数获取配置项的值,这个函数会返回一个 ConfigItem 对象,
    包含了配置项的类型、值、默认值等信息。

    ConfigItem 对象的类型定义如下,调用时请使用 jsbind 中的值作为 key

    type ConfigItem struct {
    +	Key          string      \`json:"key" jsbind:"key"\`
    +	Type         string      \`json:"type" jsbind:"type"\`
    +	DefaultValue interface{} \`json:"defaultValue" jsbind:"defaultValue"\`
    +	Value        interface{} \`json:"value,omitempty" jsbind:"value"\`
    +	Option       interface{} \`json:"option,omitempty" jsbind:"option"\`
    +	Deprecated   bool        \`json:"deprecated,omitempty" jsbind:"deprecated"\`
    +}
    +

    更原始的 API

    seal.ext.registerConfig() 函数也是可以使用的,你需要自己通过 seal.ext.newConfigItem() 来获取一个新的 ConfigItem 对象。

    在对你的 ConfigItem 对象进行修改后,再调用 seal.ext.registerConfig() 函数进行注册。

    示例代码:注册配置项

    // ==UserScript==
    +// @name         js-config-example
    +// @author       Szzrain
    +// @version      1.0.0
    +// @description  演示 js 配置项的用法
    +// @timestamp    1698636875
    +// @license      MIT
    +// ==/UserScript==
    +
    +if (!seal.ext.find('js-config-example')) {
    +    const ext = seal.ext.new('js-config-example', 'SzzRain', '1.0.0');
    +    // 创建一个命令
    +    const cmdgetConfig = seal.ext.newCmdItemInfo();
    +    cmdgetConfig.name = 'getconfig';
    +    cmdgetConfig.help = '使用.getconfig <key> 来获取配置项,仅 master 可用';
    +    cmdgetConfig.allowDelegate = true;
    +    cmdgetConfig.solve = (ctx, msg, cmdArgs) => {
    +        let val = cmdArgs.getArgN(1);
    +        switch (val) {
    +            case 'help': {
    +                const ret = seal.ext.newCmdExecuteResult(true);
    +                ret.showHelp = true;
    +                return ret;
    +            }
    +            default: {
    +                if (ctx.privilegeLevel === 100) {
    +                    let config = seal.ext.getConfig(ext, val);
    +                    if (config) {
    +                        seal.replyToSender(ctx, msg, config.value);
    +                    }
    +                } else {
    +                    seal.replyToSender(ctx, msg, "你没有权限执行此命令");
    +                }
    +                return seal.ext.newCmdExecuteResult(true);
    +            }
    +        }
    +    }
    +    // 注册命令
    +    ext.cmdMap['getconfig'] = cmdgetConfig;
    +
    +    // 注册扩展
    +    seal.ext.register(ext);
    +
    +    // 注册配置项需在 ext 注册后进行
    +    // 通常来说,register 函数的参数为 ext, key, defaultValue
    +    seal.ext.registerStringConfig(ext,"testkey","testvalue");
    +    seal.ext.registerIntConfig(ext,"testkey2", 123);
    +    seal.ext.registerFloatConfig(ext,"testkey2", 123.456);
    +    seal.ext.registerBoolConfig(ext,"testkey3", true);
    +    seal.ext.registerTemplateConfig(ext,"testkey4", ["1","2","3","4"]);
    +    // 注册单选项函数的参数为 ext, key, defaultValue, options
    +    seal.ext.registerOptionConfig(ext, "testkey5", "1", ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"]);
    +}
    +

    注册后的配置项会在 UI 中显示,可以在 UI 中修改配置项的值

    JS 配置项
    JS 配置项

    使用 TS 模板

    clone 或下载项目

    推荐的流程:

    ',24),bn={href:"https://github.com/sealdice/sealdice-js-ext-template",target:"_blank",rel:"noopener noreferrer"},gn=n("li",null,[n("code",null,"git clone"),s(" 到本地,进行开发。")],-1),hn=n("p",null,"如果你没有 GitHub 账号,也不会用 git:",-1),fn={href:"https://github.com/sealdice/sealdice-js-ext-template",target:"_blank",rel:"noopener noreferrer"},xn=n("li",null,"解压后进行开发。",-1),yn=n("h3",{id:"使用和编译",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#使用和编译","aria-hidden":"true"},"#"),s(" 使用和编译")],-1),wn=n("p",null,"TS 插件代码需要编译为 js 文件才能被海豹核心加载。",-1),jn=n("p",null,"开始使用模板工程时,需要先将所需依赖包安装好。在确认你所使用的包管理器后,在命令行使用如下命令:",-1),_n=n("div",{class:"language-bash line-numbers-mode","data-ext":"sh"},[n("pre",{class:"language-bash"},[n("code",null,[n("span",{class:"token function"},"npm"),s(),n("span",{class:"token function"},"install"),s(` +`)])]),n("div",{class:"line-numbers","aria-hidden":"true"},[n("div",{class:"line-number"})])],-1),Sn=n("div",{class:"language-bash line-numbers-mode","data-ext":"sh"},[n("pre",{class:"language-bash"},[n("code",null,[n("span",{class:"token function"},"pnpm"),s(),n("span",{class:"token function"},"install"),s(` +`)])]),n("div",{class:"line-numbers","aria-hidden":"true"},[n("div",{class:"line-number"})])],-1),qn=n("p",null,"当你写好了代码,需要将 ts 文件转换为 js 文件以便上传到海豹骰时,在命令行使用如下命令:",-1),An=n("div",{class:"language-bash line-numbers-mode","data-ext":"sh"},[n("pre",{class:"language-bash"},[n("code",null,[n("span",{class:"token function"},"npm"),s(` run build +`)])]),n("div",{class:"line-numbers","aria-hidden":"true"},[n("div",{class:"line-number"})])],-1),Cn=n("div",{class:"language-bash line-numbers-mode","data-ext":"sh"},[n("pre",{class:"language-bash"},[n("code",null,[n("span",{class:"token function"},"pnpm"),s(` run build +`)])]),n("div",{class:"line-numbers","aria-hidden":"true"},[n("div",{class:"line-number"})])],-1),En=p('

    编译成功的 js 文件在 dist 目录下,默认的名字是 sealdce-js-ext.js

    补全信息

    当插件开发完成后(或者开始开发时),你还需要修改几处地方:

    • header.txt:这个文件是你插件的描述信息;
    • tools/build-config.js:最开头一行 var filename = 'sealdce-js-ext.js'; 改成你中意的名字,注意不要与现有的重名。

    目录结构

    只列出其中主要的一些文件

    • src
      • index.ts:你的扩展的代码就写在这个文件里。
    • tools
      • build-config:一些编译的配置,影响 index.ts 编译成 js 文件的方式;
      • build.js:在命令 npm run build 执行时所运行的脚本,用于读取 build-config 并按照配置进行编译。
    • types
      • seal.d.ts:类型文件,海豹核心提供的扩展 API。
    • header.txt:扩展头信息,会在编译时自动加到目标文件头部;
    • package.json:命令 npm install 时就在安装这个文件里面所指示的依赖包;
    • tsconfig.json:typescript 的配置。

    JS 扩展 API

    ',8),Tn={href:"https://github.com/sealdice/sealdice-core/blob/master/dice/dice_jsvm.go",target:"_blank",rel:"noopener noreferrer"},In=p(`

    按类别整理。

    其中 ctx 为信息的 MsgContext,msg 为信息的 Message,一般会在定义指令函数时就声明,如:

    cmd.solve = (ctx, msg, cmdArgs) => {
    +    someFunction;
    +} 
    +

    下面是 api 的说明(完全了吧......应该?):

    //被注释掉的 api 是可以提供的,但是在源码中被注释。  
    +//seal.setVarInt(ctx, \`$XXX\`, valueToSet) //\`$XXX\`即 rollvm(初阶豹语)中的变量,其会将$XXX 的值设定为 int 类型的 valueToSet。  
    +//seal.setVarStr(ctx, \`$XXX\`, valueToSet) //同上,区别是设定的为 str 类型的 valueToSet。  
    +seal.replyGroup(ctx, msg, something) //向收到指令的群中发送 something。  
    +seal.replyPerson(ctx, msg, something) //顾名思义,类似暗骰,向指令触发者(若为好友)私信 something。  
    +seal.replyToSender(ctx, msg, something) //同上,区别是群内收到就群内发送,私聊收到就私聊发送。  
    +seal.memberBan(ctx, groupID, userID, dur) //将指定群的指定用户封禁指定时间 (似乎只实现了 walleq 协议?)
    +seal.memberKick(ctx, groupID, userID)  //将指定群的指定用户踢出 (似乎也只实现了 walleq 协议?)
    +seal.format(ctx, something) //将 something 经过一层 rollvm 转译并返回,注意需要配合 replyToSender 才能发送给触发者!  
    +seal.formatTmpl(ctx, something) //调用自定义文案 something  
    +seal.getCtxProxyFirst(ctx, cmdArgs)  //获取被 at 的第一个人,等价于 getCtxProxyAtPos(ctx, 0)  
    +seal.vars.intGet(ctx, \`$XXX\`) //返回一个数组,其为 \`[int 类型的触发者的该变量的值,bool]\` 当 strGet 一个 int 或 intGet 一个 str 时 bool 为 false,若一切正常则为 true。(之所以会有这么奇怪的说法是因为 rollvm 的「个人变量」机制)。  
    +seal.vars.intSet(ctx, \`$XXX\`, valueToSet) //\`$XXX\` 即 rollvm(初阶豹语)中的变量,其会将 $XXX 的值设定为 int 类型的 valueToSet。  
    +seal.vars.strGet(ctx, \`$XXX\`) //返回一个数组,其为 \`[str 类型的触发者的该变量的值,bool]\`(之所以会有这么奇怪的说法是因为 rollvm 的「个人变量」机制),当 strGet 一个 int 或 intGet 一个 str 时 bool 为 false,如果一切正常则为 true。  
    +seal.vars.strSet(ctx, \`$XXX\`, valueToSet) //\`$XXX\` 即 rollvm(初阶豹语)中的变量,其会将 $XXX 的值设定为 str 类型的 valueToSet。  
    +//seal.vars.varSet(ctx, \`$XXX\`, valueToSet) //可能是根据数据类型自动推断 int 或 str?
    +//seal.vars.varGet(ctx, \`$XXX\`) //同上
    +seal.ext.newCmdItemInfo() //用来定义新的指令;没有参数,个人觉得可以视其为类(class)。  
    +seal.ext.newCmdExecuteResult(bool) //用于判断指令执行结果,true 为成功,false 为失败。  
    +seal.ext.new(extName, extAuthor, Version) //用于建立一个名为 extName,作者为 extAuthor,版本为 Version 的扩展。注意,extName,extAuthor 和 Version 均为字符串。  
    +seal.ext.find(extName) //用于查找名为 extname 的扩展,若存在则返回 true,否则返回 false。  
    +seal.ext.register(newExt) //将扩展 newExt 注册到系统中。注意 newExt 是 seal.ext.new 的返回值,将 register 视为 seal.ext.new() 是错误的。  
    +seal.coc.newRule() //用来创建自定义 coc 规则,github.com/sealdice/javascript/examples 中已有详细例子,不多赘述。  
    +seal.coc.newRuleCheckResult() //同上,不多赘述。  
    +seal.coc.registerRule(rule) //同上,不多赘述。  
    +seal.deck.draw(ctx, deckname, isShuffle) //他会返回一个抽取牌堆的结果。这里有些复杂:deckname 为需要抽取的牌堆名,而 isShuffle 则是一个布尔值,它决定是否放回抽取;false 为放回,true 为不放回。  
    +seal.deck.reload() //重新加载牌堆。  
    +//下面是 1.2 新增 api  
    +seal.newMessage() //返回一个空白的 Message 对象,结构与收到消息的 msg 相同
    +seal.createTempCtx(endpoint, msg) // 制作一个 ctx, 需要 msg.MessageType 和 msg.Sender.UserId
    +seal.applyPlayerGroupCardByTemplate(ctx, tmpl) // 设定当前 ctx 玩家的自动名片格式
    +seal.gameSystem.newTemplate(string) //从 json 解析新的游戏规则。  
    +seal.gameSystem.newTemplateByYaml(string) //从 yaml 解析新的游戏规则。 
    +seal.getCtxProxyAtPos(ctx, pos) //获取第 pos 个被 at 的人,pos 从 0 开始计数 
    +seal.atob(base64String) //返回被解码的 base64 编码  
    +seal.btoa(string) //将 string 编码为 base64 并返回
    +

    部分 api 使用示例

    声明和注册扩展的代码部分已省略。

    replyGroup replyPerson replyToSender

    //在私聊触发 replyGroup 不会回复
    +seal.replyGroup(ctx, msg, 'something'); //触发者会收到"something"的回复
    +seal.replyPerson(ctx, msg, 'something'); //触发者会收到"something"的私聊回复
    +seal.replyToSender(ctx, msg, 'something'); //触发者会收到"something"的回复
    +

    memberBan memberKick

    是否保留待议

    //注意这些似乎只能在 WQ 协议上实现;
    +seal.memberBan(ctx, groupID, userID, dur) //将群为 groupID,userid 为 userID 的人封禁 dur(单位未知)
    +seal.memberKick(ctx, groupID, userID) //将群为 groupID,userid 为 userID 的人踢出那个群
    +

    format formatTmpl

    //注意 format 不会自动 reply,而是 return,所以请套一层 reply
    +seal.replyToSender(ctx, msg, seal.format(\`{$t玩家}的人品为:{$t人品}\`))
    +//{$t人品} 是一个 rollvm 变量,其值等于 .jrrp 出的数值
    +//回复:
    +//群主的人品为:87
    +seal.replyToSender(ctx, msg, seal.formatTmpl(unknown))
    +//这里等大佬来了再研究
    +

    getCtxProxyFirst getCtxProxyAtPos

    cmd.solve = (ctx, msg, cmdArgs) => {
    +    let ctxFirst = seal.getCtxProxyFirst(ctx, cmdArgs)
    +    seal.replyToSender(ctx, msg, ctxFirst.player,name)
    +}
    +ext.cmdMap['test'] = cmd
    +//输入:.test @A @B
    +//返回:A 的名称。这里其实获取的是 A 玩家的 ctx,具体见 ctx 数据结构。
    +cmd.solve = (ctx, msg, cmdArgs) => {
    +    let ctx3 = seal.getCtxProxyAtPos(ctx, 3)
    +    seal.replyToSender(ctx, msg, ctx3.player,name)
    +}
    +ext.cmdMap['test'] = cmd
    +//输入:.test @A @B @C
    +//返回:C(第三个被@的人)的名称。这里其实获取的是 C 玩家的 ctx,具体见 ctx 数据结构。
    +

    vars

    // 要看懂这里你可能需要学习一下初阶豹语
    +seal.vars.intSet(ctx, \`$m今日打卡次数\`, 8) //将触发者的该个人变量设置为 8
    +seal.vars.intGet(ctx, \`$m今日打卡次数\`) //返回 [8,true]
    +seal.vars.strSet(ctx, \`$g群友经典语录\`, \`我要 Git Blame 一下看看是谁写的\`) //将群内的该群组变量设置为“我要 Git Blame 一下看看是谁写的”
    +seal.vars.strGet(ctx, \`$g群友经典语录\`) //返回 ["我要 Git Blame 一下看看是谁写的",true]
    +

    ext

    //用于注册扩展和定义指令的 api,已有详细示例,不多赘述
    +

    coc

    //用于创建 coc 村规的 api,已有详细示例,不多赘述
    +

    deck

    seal.deck.draw(ctx, \`煤气灯\`, false) //返回 放回抽取牌堆“煤气灯”的结果
    +seal.deck.draw(ctx, \`煤气灯\`, true) //返回 不放回抽取牌堆“煤气灯”的结果
    +seal.deck.reload() //重新加载牌堆
    +

    自定义 TRPG 规则相关

    //这里实在不知道如何举例了
    +seal.gameSystem.newTemplate(string) //从 json 解析新的游戏规则。  
    +seal.gameSystem.newTemplateByYaml(string) //从 yaml 解析新的游戏规则。
    +seal.applyPlayerGroupCardByTemplate(ctx, tmpl) // 设定当前 ctx 玩家的自动名片格式
    +

    其他

    seal.newMessage() //返回一个空白的 Message 对象,结构与收到消息的 msg 相同
    +seal.createTempCtx(endpoint, msg) // 制作一个 ctx, 需要 msg.MessageType 和 msg.Sender.UserId
    +seal.atob(base64String) //返回被解码的 base64 编码  
    +seal.btoa(string) //将 string 编码为 base64 并返回
    +seal.getEndPoints() //返回骰子(应该?)的 EndPoints
    +seal.getVersion() //返回一个 map,键值为 version 和 versionCode
    +

    ctx 的内容

    //在 github.com/sealdice/javascript/examples_ts/seal.d.ts 中有完整内容
    +// 成员
    +ctx.group // 当前群信息 (对象)
    +ctx.player // 当前玩家数据 (对象)
    +ctx.endPoint // 接入点数据 (对象)
    +// 以上三个对象内容暂略
    +ctx.isCurGroupBotOn // bool 
    +ctx.isPrivate // bool 是否私聊
    +ctx.privilegeLevel // int 权限等级:40 邀请者、50 管理、60 群主、70 信任、100 master
    +ctx.delegateText // string 代骰附加文本
    +// 方法 (太长,懒.)
    +chBindCur
    +chBindCurGet
    +chBindGet
    +chBindGetList
    +chExists
    +chGet
    +chLoad
    +chNew
    +chUnbind
    +chUnbindCur
    +chVarsClear
    +chVarsGet
    +chVarsNumGet
    +chVarsUpdateTime
    +loadGroupVars
    +loadPlayerGlobalVars
    +loadPlayerGroupVars,notice
    +

    ctx.group 的内容

    // 成员
    +active
    +groupId
    +guildId
    +groupName
    +cocRuleIndex
    +logCurName
    +logOn
    +recentDiceSendTime
    +showGroupWelcome
    +groupWelcomeMessage
    +enteredTime
    +inviteUserId
    +// 方法
    +extActive
    +extClear
    +extGetActive
    +extInactive
    +extInactiveByName
    +getCharTemplate
    +isActive
    +playerGet
    +

    ctx.player 的内容

    // 成员
    +name
    +userId
    +lastCommandTime
    +autoSetNameTemplate
    +// 方法
    +getValueNameByAlias
    +

    ctx.endPoint 的内容

    // 成员
    +baseInfo
    +id
    +nickname
    +state
    +userId
    +groupNum
    +cmdExecutedNum
    +cmdExecutedLastTime
    +onlineTotalTime
    +platform
    +enable
    +// 方法
    +adapterSetup
    +refreshGroupNum
    +setEnable
    +unmarshalYAML
    +

    msg 的内容

    // 成员
    +msg.time // int64 发送时间
    +msg.messageType // string group 群聊 private 私聊
    +msg.groupId // string 如果是群聊,群号
    +msg.guildId // string 服务器群组号,会在 discord,kook,dodo 等平台见到
    +msg.sender // 发送者信息 (对象)
    +    sender.nickname
    +    sender.userId
    +msg.message
    +msg.rawId // 原始信息 ID, 用于撤回等
    +msg.platform // 平台
    +// 方法
    +// (似乎目前没有?)
    +

    cmdArgs 的内容

    // 成员
    +.command // string
    +.args // []string
    +.kwargs // []Kwarg
    +.at // []AtInfo
    +.rawArgs // string
    +.amIBeMentioned // bool (为何要加一个 Be?)
    +.cleanArgs // string 一种格式化后的参数,也就是中间所有分隔符都用一个空格替代
    +.specialExecuteTimes // 特殊的执行次数,对应 3# 这种
    +// 方法
    +.isArgEqual(n, ss...) // 返回 bool, 检查第 n 个参数是否在 ss 中
    +.eatPrefixWith(ss...) // 似乎是从 cleanArgs 中去除 ss 中第一个匹配的前缀
    +.chopPrefixToArgsWith(ss...) // 不懂
    +.getArgN(n) // -> string
    +.getKwarg(str) // -> Kwarg 如果有名为 str 的 flag,返回对象,否则返回 null/undefined(不确定)
    +.getRestArgsFrom(n) // -> string 获取从第 n 个参数之后的所有参数,用空格拼接成一个字符串
    +
    `,40);function Rn(Nn,Gn){const t=i("ExternalLinkIcon"),l=i("RouterLink"),u=i("Tabs");return k(),d("div",null,[g,n("div",h,[f,x,y,n("ul",null,[n("li",null,[n("a",w,[s("现代 JavaScript 教程"),a(t)])]),n("li",null,[n("a",j,[s("JavaScript 教程 - 廖雪峰"),a(t)])]),n("li",null,[n("a",_,[s("JavaScript - 菜鸟教程"),a(t)])])])]),S,n("p",null,[s("VS Code 可以安装 "),n("a",q,[s("SealDice Snippets"),a(t)]),s(" 插件,提供了一些常见代码片段,帮助快速生成模板代码。")]),n("p",null,[s("如果你打算使用 TypeScript,海豹提供了相应的 "),n("a",A,[s("模板工程"),a(t)]),s(",注册扩展和指令的代码已经写好,可以直接编译出一个可直接装载的 JS 扩展文件。使用见 "),C,s("。")]),m(" - 扩展编写示例:https://github.com/sealdice/javascript/tree/main/examples "),E,n("div",T,[I,n("p",null,[s("海豹使用 "),n("a",R,[s("goja"),a(t)]),s(" 作为 js 脚本引擎。goja 目前支持了 ES6 基本上全部的特性,包括 "),N,s(","),G,s(" 和 "),$,s("。")]),X]),B,n("table",null,[P,n("tbody",null,[M,O,n("tr",null,[J,n("td",null,[s("版本号,可以自己定义,但建议遵循 "),n("a",U,[s("语义版本控制(Semantic Versioning)"),a(t)])])]),V,D,L,F])]),H,n("div",K,[Y,z,n("p",null,[s("可以查看 "),a(l,{to:"/use/core.html#ext-%E6%89%A9%E5%B1%95%E7%AE%A1%E7%90%86"},{default:e(()=>[s(".ext 命令")]),_:1}),s(" 来了解更多。")])]),W,n("p",null,[s("这里仅说明需要用到的接口,详细可见 "),n("a",Q,[s("插件仓库"),a(t)]),s(),Z,s(" 下的 "),nn,s(" 文件,里面包含了目前开放的接口的定义及其注释说明。")]),sn,n("p",null,[s("发送的文本中,可以包含 "),a(l,{to:"/advanced/script.html#%E5%8F%98%E9%87%8F"},{default:e(()=>[s("变量")]),_:1}),s("(例如"),an,s("),也可以包含 "),n("a",tn,[s("CQ 码"),a(t)]),s(",用来实现回复发送者、@发送者、发送图片、发送分享卡片等功能。")]),pn,n("p",null,[s("答案是使用 "),en,s(" 函数将存储了数据的 JS 对象转换为 "),n("a",on,[s("JSON"),a(t)]),s(" 字符串,存储起来,需要取出的时候,再使用 "),cn,s(" 函数将数据再转换为 JS 对象。。")]),ln,n("p",null,[s("主要使用 "),n("a",un,[s("Fetch API"),a(t)]),s(" 进行网络请求,详细文档见链接。")]),rn,n("p",null,[s("比如核心代码只有一行的「"),n("a",kn,[s("随机猫猫图片"),a(t)]),s("」扩展:")]),dn,n("p",null,[s("当然,也有稍微复杂的,比如「"),n("a",mn,[s("AI 骰娘"),a(t)]),s("」扩展,但也没有太复杂,只是处理了一下发送者传过来的消息,再发送给网络 API,收到响应之后再回应发送者。")]),vn,n("ol",null,[n("li",null,[s("在 "),n("a",bn,[s("模板项目仓库"),a(t)]),s(" 点击 Use this template 按钮,使用该模板在自己的 GitHub 上创建一个扩展的仓库,并设置为自己的扩展的名字;")]),gn]),hn,n("ol",null,[n("li",null,[s("在 "),n("a",fn,[s("模板项目仓库"),a(t)]),s(" 点击 Code 按钮,在出现的浮窗中选择 Download ZIP,这样就会下载一个压缩包;")]),xn]),yn,wn,jn,a(u,{id:"520",data:[{id:"npm"},{id:"pnpm"}],"tab-id":"npm"},{title0:e(({value:o,isActive:c})=>[s("npm")]),title1:e(({value:o,isActive:c})=>[s("pnpm")]),tab0:e(({value:o,isActive:c})=>[_n]),tab1:e(({value:o,isActive:c})=>[Sn]),_:1}),qn,a(u,{id:"531",data:[{id:"npm"},{id:"pnpm"}],"tab-id":"npm"},{title0:e(({value:o,isActive:c})=>[s("npm")]),title1:e(({value:o,isActive:c})=>[s("pnpm")]),tab0:e(({value:o,isActive:c})=>[An]),tab1:e(({value:o,isActive:c})=>[Cn]),_:1}),En,n("blockquote",null,[n("p",null,[s("这里只是粗略的整理,具体请看 "),n("a",Tn,[s("jsvm 源码"),a(t)]),s("。")])]),In])}const Bn=r(b,[["render",Rn],["__file","edit_jsscript.html.vue"]]);export{Bn as default}; diff --git a/assets/edit_reply.html-28bfffc8.js b/assets/edit_reply.html-28bfffc8.js new file mode 100644 index 000000000..e941e8127 --- /dev/null +++ b/assets/edit_reply.html-28bfffc8.js @@ -0,0 +1,136 @@ +import{_ as c}from"./plugin-vue_export-helper-c27b6911.js";import{r as t,o,c as r,a as e,d as n,b as i,w as d,e as l}from"./app-d2f9e1e0.js";const u="/sealdice-manual-next/assets/edit-reply-random-pic-d4a0463d.png",v="/sealdice-manual-next/assets/edit-reply-single-person-mod-a08a73d1.png",p="/sealdice-manual-next/assets/edit-reply-single-person-mod1-830dda41.png",m="/sealdice-manual-next/assets/edit-reply-single-person-mod2-76ef5a70.png",b="/sealdice-manual-next/assets/edit-reply-single-person-mod3-023a3e78.png",h={},x=e("h1",{id:"编写自定义回复",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#编写自定义回复","aria-hidden":"true"},"#"),n(" 编写自定义回复")],-1),$={class:"hint-container info"},g=e("p",{class:"hint-container-title"},"本节内容",-1),f=e("p",null,"本节将展示自定义回复编写的进阶部分,请善用侧边栏和搜索,按需阅读文档。",-1),_=e("p",null,"在部分内容中,我们假定你了解海豹变量机制和正则表达式。如果你对正则表达式还很陌生,可以阅读以下教程或在互联网自行搜索学习。",-1),y={href:"https://www.runoob.com/regexp/regexp-tutorial.html",target:"_blank",rel:"noopener noreferrer"},q=e("h2",{id:"第一个自定义回复",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#第一个自定义回复","aria-hidden":"true"},"#"),n(" 第一个自定义回复")],-1),k=e("p",null,"首先我们打开「自定义回复」页,新建一项自定义回复。",-1),R=e("div",{class:"hint-container tip"},[e("p",{class:"hint-container-title"},"使用 .text 帮助测试"),e("p",null,[e("code",null,".text <文本>"),n(" 将是你的一大助力,它会输出后面文本的执行结果,你可以将它看成不需要触发词的自定义回复。")]),e("p",null,[n("当然,在采用 "),e("code",null,".text"),n(" 指令进行 debug 时,可能出现因为测试的内容对变量造成影响,而不得不频繁复制黏贴清空指令的情况。此时建议专门开一个一两个字即可触发的自定义回复,用来测试。")])],-1),D={class:"hint-container tip"},P=e("p",{class:"hint-container-title"},"嵌入 CQ 码",-1),C={href:"https://docs.go-cqhttp.org/cqcode",target:"_blank",rel:"noopener noreferrer"},A=l(`

    触发条件

    文本匹配:模糊匹配

    模糊匹配将比较收到的消息与指定文本,内容相似时触发。

    比较定义在 dice/ext_reply_logic.go 中,内容 jaro 和 hamming 平均值高于阈值(0.7)被认为是相似:

    func strCompare(a string, b string) float64 {
    +	va := strsim.Compare(a, b, strsim.Jaro())
    +	vb := strsim.Compare(a, b, strsim.Hamming())
    +	return (va + vb) / 2
    +}
    +

    模糊匹配未命中

    模糊匹配可能出现感觉能匹配上,但实际上没办法匹配上的情况。我们更建议你使用「包含文本」或「正则匹配」。

    文本匹配:正则匹配

    使用正则匹配时,直接在要匹配的文本一栏中写入正则表达式即可。

    正则匹配可以将回复中的一部分存入变量中以备调用:

    正则匹配:^购买(.+)
    +输出文本:{$t玩家}购买了{$t1}
    +
    +购买猫粮
    +Dice: <于言诺>购买了猫粮
    +

    正则匹配会将满足匹配的整条消息存入 $t0,而正则中的分组会按顺序存入 $t1 $t2 等中。在如上例子中,就是将 购买 后用括号括起来的部分存入了 $t1 中,从而可以进行调用。

    如额外存在组名,如 (?P<A>cc),将会额外存入 $tA

    不要使用某些前缀!

    由于 . / ! 等符号会作为海豹中指令的前缀,因此作为前缀时可能导致将其识别为指令而非自定义回复的情况,建议换成别的前缀。

    正则中匹配 CQ 码

    海豹支持用正则匹配 CQ 码,但是如果你这么做了,请在 [ ] 前面进行转义。

    示例:^\\[CQ:xxx,xx=xxx\\]

    表达式为真

    在「表达式为真」匹配中,只需要直接在匹配文本中写出形如 变量名 == 需要的值 的形式即可,不需要使用任何 {}

    回复结果

    `,17),S=l(`

    嵌入脚本语言

    .text {$t玩家}进行测试
    +
    +返回:<测试用户>进行测试
    +
    .text {d100}
    +
    +1 // 此处返回 d100 的结果
    +

    未赋值的变量

    所有变量在未被赋值时被调用的值都为 0。

    执行块

    {% %} 被称为执行块。由 {% %} 括起来的部分会被作为代码执行,输出最后一个语句的结果。执行块中的两个语句之间要使用 ; 隔开。

    如果想要输出字符串,则应该用 \` / " / ' 括上。

    • 例:形如 {% \\$t1="114514" %} 的式子会输出 114514

    结果中调用变量

    若想在结果中调用变量,请用反引号。目前海豹只支持在反引号中调用变量。

    下面是一个简单的示例,这里的第一句也是最后一句,所以它的结果会被输出。

    .text {% $t测试=1 %}
    +

    示例:使用 if

    {%  
    +$t测试=1;  
    +if $t测试==1 {$t输出="赞美木落"};  
    +if $t测试==2 {$t输出="快点更新"};  
    +if $t测试!=2&&$t测试!=1 {$t输出="群主女装"}  
    +%}
    +{$t输出}  
    +

    首先给 $t测试赋值为 1,然后进入判断:

    1. 如果 $t测试 等于 1,则变量 $t输出 等于 "赞美木落"
    2. 如果 $t测试 等于 2,则变量 $t输出 等于 "快点更新"
    3. 如果 $t测试 既不等于 2 也不等于 1,则变量 $t输出 等于 "群主女装";

    最后,输出变量 $t输出

    容易误解的 if 使用

    目前海豹语并不支持 else ififelse 是一对一匹配的。所以当形如:

    if xxx {xxx};  
    +if xxx {xxx}  
    +else {xxx}  
    +

    的语句出现时,并不是 if elseif elseif else 的关系!即使满足了第一个 if,其结果也是执行 else 中的内容!

    示例:变量运算

    {%  
    +$t0=1;  
    +$tRand=d6;  
    +if $t0==1 {$t0=$t0+$tRand}  
    +%}  
    +{$t0}
    +

    在这个例子里,我们先给 $t0 赋值为 1,然后判断 $t0 是否等于 1,若通过则 $t0 的值增加 1d6,最后输出结果。

    更多示例片段

    牌堆与自定义回复的结合

    以养猫功能中猫好感度为例:

    {% 
    +$mCatFavor<=100 ? \`#{DRAW-第一档猫好感}\`,
    +$mCatFavor<=250 ? \`#{DRAW-第二档猫好感}\` ,
    +$mCatFavor<=600 ? \`#{DRAW-第三档猫好感}\` ,
    +$mCatFavor<=1500 ? \`#{DRAW-第四档猫好感}\` ,
    +$mCatFavor<=2500 ? \`#{DRAW-第五档猫好感}\` ,
    +1 ? \`#{DRAW-第六档猫好感}\`
    +%}
    +

    在这一脚本中,根据猫好感度 $mCatFavor 不同,需要输出不同回复的机制。

    其它写法

    除了形如

    {% 
    +判断1 ? \`#{DRAW-牌组1}\`,
    +判断2 ? \`#{DRAW-牌组2}\`,
    +判断3 ? \`#{DRAW-牌组3}\`,
    +1 ? \`#{DRAW-牌组4}\`,
    + %}
    +

    的写法外,还可以使用:

    {% 
    +if 判断1 {
    +  $tRand=d6;
    +  $t输出=$tRand==1?\`内容1\`,
    +  $t输出=$tRand==2?\`内容2\`,
    +  $t输出=$tRand==3?\`内容3\`,
    +  $t输出=$tRand==4?\`内容4\`,
    +  $t输出=$tRand==5?\`内容5\`,
    +  $t输出=$tRand==6?\`内容6\`
    +  };
    +if 判断2 {$tRand=d10;$t输出=$tRand==1?\`内容1\`,……};
    +if 判断3 {$tRand=d10;$t输出=$tRand==1?\`内容1\`,……};
    + %}
    +

    实质上没有太大区别,可根据喜好选择。

    多回复行的错误使用

    以踢海豹为例,这一自定义回复的多行输出实现上并不是:

    {$t输出0}
    +{$t输出1}
    +{$t输出2}
    +{$t输出3}
    +

    而是在为四个 $t输出 变量赋值时,于内部写上 \\n,采用 {$t输出0}{$t输出1}{$t输出2}{$t输出3} 的形式。

    这是因为如果某一变量可能为空时,如果采用第一种分行的写法,会出现这样的效果:

    踢海豹
    +
    +回复:
    +Dice: <于言诺>一脚踢向海豹,踢了3格。
    +海豹现在离终点还有37格。
    +
    +海豹的逃走骰:1d100=60,海豹没能逃脱凶猛恶汉们的掌控!
    +

    可以看见,在中间会出现突兀的空行。这是因为虽然并没有在变量内部赋值 \\n,但是由于海豹读取时会按照写的格式读取,因此在应当是 $t输出2 的一行中,会照样调用 {$t输出2},照常空行。

    所以,如果想要某个变量为空时,看不出来这里应该存在什么,就最好多做几次实验,好好规划一下换行符 \\n 的位置。

    限定每人/每群每天一次

    海豹提供了一系列时间变量来调用,以打卡指令为例,可以采用如下两种写法中的一种(示例为每人每天一次,如要每群自行将 $m 换成 $g):

    写法 1
    文本匹配:你需要的文本
    表达式为真:$m变量 != $tDate
    回复:{if 1 {$m变量=$tDate}}你需要的回复文本

    • $m变量 作为标记变量,用 if 是防止它出现在回复文本中。

    文本匹配:你需要的文本
    表达式为真:$m变量==$tDate

    • 可以不写在另一条里,选择放到相较于上一条的后面,利用海豹从上往下逐个匹配的机制达成相同效果

    回复:在一天触发多次时的回复

    写法 2
    文本匹配:你需要的文本
    回复:

    {% 
    +if $m变量!=$tDate {
    +  $t输出=\`你需要的回复文本\`;
    +  $m变量=$tDate//对其赋值,作为标记
    +} else {
    +  $t输出=\`在一天触发多次时的回复\`
    +  }
    + %}
    +{$t输出}
    +

    以上两种写法实现效果没有差别,具体使用哪种请自行决断。

    条件语句嵌套条件算符,多条件条件语句

    以石头剪刀布为例,为了实现骰子随机出招的效果,令 $tRand=d3,然后根据 $tRand 的情况赋值 $tDicePlay。通过骰子出招和玩家出招两个变量判断,输出游戏结果,并记录场次。

    为了防止直接使用 {%%} 进行赋值导致的变量显示,需要在最外面写 if 1 ,则在生成 $tRand之后再次判断的时候,可以使用 $tDicePlay=条件算符,或是再新开一行用条件算符或者条件语句实现。

    以下给出在同一个 if 内直接赋值的写法和新开一行使用条件语句的写法:

    {% //在同一个if内直接赋值。可以在赋值时使用条件算符。
    +if 1 {
    +    $tRand=d3;
    +    $tDicePlay=$tRand==1?"石头",
    +                $tRand==2?"剪刀",
    +                1?"布"
    +    } 
    +%}
    +
    +{% //新开一行赋值
    +if 1 {
    +    $tRand=d3;
    +    } ;
    +if $tRand==1 {$tDicePlay="石头"};
    +if $tRand==2 {$tDicePlay="剪刀"};
    +if $tRand==3 {$tDicePlay="布"}
    +%}
    +

    两种写法实现效果相同,石头剪刀布内在这里采用了第一种,实际上没有差别。

    生成骰子出招并获取玩家出招之后,就开始判断。这里除了平局可以使用 $tDicePlay==$t0 省事之外,其他的都需要在条件中用多个进行嵌套。

    条件判断

    豹语语法中,判断时条件中的 ||&& 是从左往右计算的,如果后面有需要优先计算与或的东西,请加好括号。

    if $t0==$tDicePlay {
    +    $t输出=\`那我出{$tDicePlay}!{$t玩家}出的是{$t0}啊,我们平局了。\`;
    +    $mPlayerTime=$mPlayerTime+1
    +    };
    +if $t0=="剪刀"&&$tDicePlay=="石头"||($t0=="石头"&&$tDicePlay=="布")||($t0=="布"&&$tDicePlay=="剪刀") {
    +     //后两个与需要单独计算,加上括号
    +    $t输出=\`那我出{$tDicePlay}!{$t玩家}出的是{$t0}啊,我赢了。\`;
    +    $mPlayerTime=$mPlayerTime+1;
    +    $mPlayerLose=$mPlayerLose+1
    +    };
    +if $t0=="石头"&&$tDicePlay=="剪刀"||($t0=="布"&&$tDicePlay=="石头")||($t0=="剪刀"&&$tDicePlay=="布") {
    +    $t输出=\`那我出{$tDicePlay}!{$t玩家}出的是{$t0}啊,你赢了。\`;
    +    $mPlayerTime=$mPlayerTime+1;
    +    $mPlayerWin=$mPlayerWin+1
    +    }
    +

    同时使用前缀和后缀匹配,以匹配 AxxxxxxxB 型文本

    前缀匹配:A
    后缀匹配:B
    回复:怎么辉石呢

    输入:A
    +无回复
    +
    +输入:B
    +无回复
    +
    +输入:AB
    +怎么辉石呢
    +
    +输入:A间隔B
    +怎么辉石呢
    +

    随机看图

    随机看图
    随机看图

    单人模组

    单人模组
    单人模组

    具体实现,第一段

    单人模组第一段
    单人模组第一段

    第二段

    单人模组第二段
    单人模组第二段

    这两段较为常规,第三段开始变形了:

    单人模组第三段
    单人模组第三段
    {%
    +	if $mStory == 4 { $mStory = 5 };
    +	if $mStory == 3 { $mStory = 4 };
    +	if $mStory == 2 { $mStory = 3 };
    +
    +         $mStory == 3 ? '这个村子有一户人家,门前有两棵树',
    +         $mStory == 4 ? '一棵是函树,一棵是反函树',
    +         $mStory == 5 ? '我讲完了。',
    +         1 ? '?'
    +%}
    +
    +{% if $mStory == 5 { $mStory=0 } %}
    +
    `,67);function W(w,B){const s=t("ExternalLinkIcon"),a=t("RouterLink");return o(),r("div",null,[x,e("div",$,[g,f,_,e("ul",null,[e("li",null,[e("a",y,[n("正则表达式 - 菜鸟教程"),i(s)])])])]),q,k,R,e("div",D,[P,e("p",null,[n("返回内容可以嵌入 CQ 码。CQ 码文档见 "),e("a",C,[n("CQ 码列表"),i(s)]),n("。")])]),e("p",null,[n("自定义回复中分「条件」和「结果」两个部分。在 "),i(a,{to:"/config/reply.html"},{default:d(()=>[n("配置 - 自定义回复")]),_:1}),n(" 中,我们已经了解了一些简单的回复编写,下面将补充介绍进阶内容。")]),A,e("p",null,[n("在回复文本中,可以调用一些 "),i(a,{to:"/advanced/script.html#%E5%8F%98%E9%87%8F"},{default:d(()=>[n("变量")]),_:1}),n(",也可以嵌入 "),i(a,{to:"/advanced/script.html"},{default:d(()=>[n("内置脚本语言")]),_:1}),n("。")]),S])}const T=c(h,[["render",W],["__file","edit_reply.html.vue"]]);export{T as default}; diff --git a/assets/edit_reply.html-864990e1.js b/assets/edit_reply.html-864990e1.js new file mode 100644 index 000000000..fd6c3f5a4 --- /dev/null +++ b/assets/edit_reply.html-864990e1.js @@ -0,0 +1 @@ +const e=JSON.parse('{"key":"v-7c798590","path":"/advanced/edit_reply.html","title":"编写自定义回复","lang":"zh-cn","frontmatter":{"lang":"zh-cn","title":"编写自定义回复","description":"本节内容 本节将展示自定义回复编写的进阶部分,请善用侧边栏和搜索,按需阅读文档。 在部分内容中,我们假定你了解海豹变量机制和正则表达式。如果你对正则表达式还很陌生,可以阅读以下教程或在互联网自行搜索学习。 正则表达式 - 菜鸟教程 (https://www.runoob.com/regexp/regexp-tutorial.html); 第一个自定义回...","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/advanced/edit_reply.html"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"编写自定义回复"}],["meta",{"property":"og:description","content":"本节内容 本节将展示自定义回复编写的进阶部分,请善用侧边栏和搜索,按需阅读文档。 在部分内容中,我们假定你了解海豹变量机制和正则表达式。如果你对正则表达式还很陌生,可以阅读以下教程或在互联网自行搜索学习。 正则表达式 - 菜鸟教程 (https://www.runoob.com/regexp/regexp-tutorial.html); 第一个自定义回..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:image","content":"http://localhost:8080/sealdice-manual-next/"}],["meta",{"property":"og:locale","content":"zh-cn"}],["meta",{"property":"og:updated_time","content":"2023-11-01T18:38:47.000Z"}],["meta",{"name":"twitter:card","content":"summary_large_image"}],["meta",{"name":"twitter:image:alt","content":"编写自定义回复"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-11-01T18:38:47.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"编写自定义回复\\",\\"image\\":[\\"http://localhost:8080/sealdice-manual-next/\\"],\\"dateModified\\":\\"2023-11-01T18:38:47.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[{"level":2,"title":"第一个自定义回复","slug":"第一个自定义回复","link":"#第一个自定义回复","children":[]},{"level":2,"title":"触发条件","slug":"触发条件","link":"#触发条件","children":[{"level":3,"title":"文本匹配:模糊匹配","slug":"文本匹配-模糊匹配","link":"#文本匹配-模糊匹配","children":[]},{"level":3,"title":"文本匹配:正则匹配","slug":"文本匹配-正则匹配","link":"#文本匹配-正则匹配","children":[]},{"level":3,"title":"表达式为真","slug":"表达式为真","link":"#表达式为真","children":[]}]},{"level":2,"title":"回复结果","slug":"回复结果","link":"#回复结果","children":[{"level":3,"title":"嵌入脚本语言","slug":"嵌入脚本语言","link":"#嵌入脚本语言","children":[]},{"level":3,"title":"执行块","slug":"执行块","link":"#执行块","children":[]}]},{"level":2,"title":"更多示例片段","slug":"更多示例片段","link":"#更多示例片段","children":[{"level":3,"title":"牌堆与自定义回复的结合","slug":"牌堆与自定义回复的结合","link":"#牌堆与自定义回复的结合","children":[]},{"level":3,"title":"多回复行的错误使用","slug":"多回复行的错误使用","link":"#多回复行的错误使用","children":[]},{"level":3,"title":"限定每人/每群每天一次","slug":"限定每人-每群每天一次","link":"#限定每人-每群每天一次","children":[]},{"level":3,"title":"条件语句嵌套条件算符,多条件条件语句","slug":"条件语句嵌套条件算符-多条件条件语句","link":"#条件语句嵌套条件算符-多条件条件语句","children":[]},{"level":3,"title":"同时使用前缀和后缀匹配,以匹配 AxxxxxxxB 型文本","slug":"同时使用前缀和后缀匹配-以匹配-axxxxxxxb-型文本","link":"#同时使用前缀和后缀匹配-以匹配-axxxxxxxb-型文本","children":[]},{"level":3,"title":"随机看图","slug":"随机看图","link":"#随机看图","children":[]},{"level":3,"title":"单人模组","slug":"单人模组","link":"#单人模组","children":[]}]}],"git":{"createdTime":1698072668000,"updatedTime":1698863927000,"contributors":[{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":3}]},"readingTime":{"minutes":9.76,"words":2928},"filePathRelative":"advanced/edit_reply.md","localizedDate":"2023年10月23日","autoDesc":true,"excerpt":""}');export{e as data}; diff --git a/assets/edit_sensitive_words.html-0af33e8e.js b/assets/edit_sensitive_words.html-0af33e8e.js new file mode 100644 index 000000000..a8e354f04 --- /dev/null +++ b/assets/edit_sensitive_words.html-0af33e8e.js @@ -0,0 +1 @@ +const t=JSON.parse('{"key":"v-1375253a","path":"/advanced/edit_sensitive_words.html","title":"编写敏感词库","lang":"zh-cn","frontmatter":{"lang":"zh-cn","title":"编写敏感词库","description":"本节内容 本节将介绍敏感词库的编写,请善用侧边栏和搜索,按需阅读文档。 创建文本格式的敏感词库 你可以直接按照以下格式书写 .txt: 创建 TOML 格式的敏感词库 TOML 格式 我们假定你已了解 TOML 格式。如果你对 TOML 还很陌生,可以阅读以下教程或自行在互联网搜索: TOML 文档 (https://toml.io/cn/v1.0.0...","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/advanced/edit_sensitive_words.html"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"编写敏感词库"}],["meta",{"property":"og:description","content":"本节内容 本节将介绍敏感词库的编写,请善用侧边栏和搜索,按需阅读文档。 创建文本格式的敏感词库 你可以直接按照以下格式书写 .txt: 创建 TOML 格式的敏感词库 TOML 格式 我们假定你已了解 TOML 格式。如果你对 TOML 还很陌生,可以阅读以下教程或自行在互联网搜索: TOML 文档 (https://toml.io/cn/v1.0.0..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-cn"}],["meta",{"property":"og:updated_time","content":"2023-10-30T09:14:16.000Z"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-10-30T09:14:16.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"编写敏感词库\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2023-10-30T09:14:16.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[{"level":2,"title":"创建文本格式的敏感词库","slug":"创建文本格式的敏感词库","link":"#创建文本格式的敏感词库","children":[]},{"level":2,"title":"创建 TOML 格式的敏感词库","slug":"创建-toml-格式的敏感词库","link":"#创建-toml-格式的敏感词库","children":[]}],"git":{"createdTime":1698072668000,"updatedTime":1698657256000,"contributors":[{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":2}]},"readingTime":{"minutes":1.34,"words":402},"filePathRelative":"advanced/edit_sensitive_words.md","localizedDate":"2023年10月23日","autoDesc":true,"excerpt":""}');export{t as data}; diff --git a/assets/edit_sensitive_words.html-bf034b47.js b/assets/edit_sensitive_words.html-bf034b47.js new file mode 100644 index 000000000..e6d35c0fc --- /dev/null +++ b/assets/edit_sensitive_words.html-bf034b47.js @@ -0,0 +1,57 @@ +import{_ as i}from"./plugin-vue_export-helper-c27b6911.js";import{r as l,o as c,c as p,a as n,d as s,b as e,e as t}from"./app-d2f9e1e0.js";const o={},d=t(`

    编写敏感词库

    本节内容

    本节将介绍敏感词库的编写,请善用侧边栏和搜索,按需阅读文档。

    创建文本格式的敏感词库

    你可以直接按照以下格式书写 <words>.txt

    #notice
    +提醒级词汇 1
    +提醒级词汇 2
    +
    +#caution
    +注意级词汇 1
    +注意级词汇 2
    +
    +#warning
    +警告级词汇
    +
    +#danger
    +危险级词汇
    +

    创建 TOML 格式的敏感词库

    `,6),r={class:"hint-container info"},u=n("p",{class:"hint-container-title"},"TOML 格式",-1),v=n("p",null,"我们假定你已了解 TOML 格式。如果你对 TOML 还很陌生,可以阅读以下教程或自行在互联网搜索:",-1),m={href:"https://toml.io/cn/v1.0.0",target:"_blank",rel:"noopener noreferrer"},k={href:"https://zhuanlan.zhihu.com/p/348057345",target:"_blank",rel:"noopener noreferrer"},b=t(`

    你可以直接按照以下格式书写 <words>.toml

    # 元信息,用于填写一些额外的展示内容
    +[meta]
    +# 词库名称
    +name = '测试词库'
    +# 作者,和 authors 存在一个即可
    +author = ''
    +# 作者(多个),和 author 存在一个即可
    +authors = [ '<匿名>' ]
    +# 版本,建议使用语义化版本号
    +version = '1.0'
    +# 简介
    +desc = '一个测试词库'
    +# 协议
    +license = 'CC-BY-NC-SA 4.0'
    +# 创建日期,使用 RFC 3339 格式
    +date = 2023-10-30
    +# 更新日期,使用 RFC 3339 格式
    +updateDate = 2023-10-30
    +
    +# 词表,出现相同词汇时按最高级别判断
    +[words]
    +# 忽略级词表,没有实际作用
    +ignore = []
    +# 提醒级词表
    +notice = [
    +  '提醒级词汇 1',
    +  '提醒级词汇 2'
    +]
    +# 注意级词表
    +caution = [
    +  '注意级词汇 1',
    +  '注意级词汇 2'
    +]
    +# 警告级词表
    +warning = [
    +  '警告级词汇 1',
    +  '警告级词汇 2'
    +]
    +# 危险级词表
    +danger = [
    +  '危险级词汇 1',
    +  '危险级词汇 2'
    +]
    +
    `,2);function h(_,g){const a=l("ExternalLinkIcon");return c(),p("div",null,[d,n("div",r,[u,v,n("ul",null,[n("li",null,[n("a",m,[s("TOML 文档"),e(a)]),s("、"),n("a",k,[s("TOML 教程"),e(a)])])])]),b])}const x=i(o,[["render",h],["__file","edit_sensitive_words.html.vue"]]);export{x as default}; diff --git a/assets/erDiagram-a995d1fe-c2e83c39.js b/assets/erDiagram-a995d1fe-c2e83c39.js new file mode 100644 index 000000000..725fbc383 --- /dev/null +++ b/assets/erDiagram-a995d1fe-c2e83c39.js @@ -0,0 +1,51 @@ +import{c as Z,s as Et,g as mt,b as gt,a as kt,v as xt,x as Rt,l as V,z as Ot,h as rt,y as bt,i as Nt,ao as Tt,ar as At}from"./mermaid.core-d8bc71ff.js";import{G as Mt,l as St}from"./layout-58f7ec6d.js";import{l as wt}from"./line-e21175d5.js";import"./app-d2f9e1e0.js";import"./array-9f3ba611.js";import"./path-53f90ab3.js";const It=/^(?:[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 vt(t){return typeof t=="string"&&It.test(t)}const A=[];for(let t=0;t<256;++t)A.push((t+256).toString(16).slice(1));function Dt(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 Lt(t){if(!vt(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 Bt(t){t=unescape(encodeURIComponent(t));const e=[];for(let r=0;r>>32-e}function Ft(t){const e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){const f=unescape(encodeURIComponent(t));t=[];for(let o=0;o>>0;x=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]+x>>>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 Wt=Yt("v5",80,Ft),Ut=Wt;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],p=[1,13],f=[1,14],o=[1,15],h=[1,21],_=[1,22],m=[1,23],g=[1,24],x=[1,25],y=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],N=[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],R={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:p,27:f,28:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:16,11:9,20:r,22:u,24:l,26:p,27:f,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:x}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(e,[2,18]),t(y,[2,19]),t(y,[2,20]),t(e,[2,4]),{11:29,27:f,28:o},{16:30,17:[1,31],29:32,30:33,34:N},{11:35,27:f,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:N},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:h,42:_,43:m,44:g,45:x},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:N},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,ft=2,ot=1,yt=i.slice.call(arguments,1),b=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]);b.setInput(a,z.yy),z.yy.lexer=b,z.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var $=b.yylloc;i.push($);var pt=b.options&&b.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()||b.lex()||ot,typeof Y!="number"&&(Y instanceof Array&&(d=Y,Y=d.pop()),Y=n.symbols_[Y]||Y),Y}for(var w,H,v,tt,G={},j,P,lt,q;;){if(H=c[c.length-1],this.defaultActions[H]?v=this.defaultActions[H]:((w===null||typeof w>"u")&&(w=_t()),v=K[H]&&K[H][w]),typeof v>"u"||!v.length||!v[0]){var et="";q=[];for(j in K[H])this.terminals_[j]&&j>ft&&q.push("'"+this.terminals_[j]+"'");b.showPosition?et="Parse error on line "+(Q+1)+`: +`+b.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:b.match,token:this.terminals_[w]||w,line:b.yylineno,loc:$,expected:q})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+H+", token: "+w);switch(v[0]){case 1:c.push(w),E.push(b.yytext),i.push(b.yylloc),c.push(v[1]),w=null,st=b.yyleng,s=b.yytext,Q=b.yylineno,$=b.yylloc;break;case 2:if(P=this.productions_[v[1]][1],G.$=E[E.length-P],G._$={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},pt&&(G._$.range=[i[i.length-(P||1)].range[0],i[i.length-1].range[1]]),tt=this.performAction.apply(G,[s,st,Q,z.yy,v[1],E,i].concat(yt)),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_[v[1]][0]),E.push(G.$),i.push(G._$),lt=K[c[c.length-2]][c[c.length-1]],c.push(lt);break;case 3:return!0}}return!0}},O=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;in[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}();R.lexer=O;function D(){this.yy={}}return D.prototype=R,R.Parser=D,new D}();at.parser=at;const zt=at;let U={},nt=[];const Ht={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"},Gt={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]},Kt=()=>U,Vt=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)},Xt=function(t,e,r,u){let l={entityA:t,roleA:e,entityB:r,relSpec:u};nt.push(l),V.debug("Added new relationship :",l)},Qt=()=>nt,jt=function(){U={},nt=[],Ot()},qt={Cardinality:Ht,Identification:Gt,getConfig:()=>Z().er,addEntity:dt,addAttributes:Vt,getEntities:Kt,addRelationship:Xt,getRelationships:Qt,clear:jt,setAccTitle:Et,getAccTitle:mt,setAccDescription:gt,getAccDescription:kt,setDiagramTitle:xt,getDiagramTitle:Rt},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"},Jt=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: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,p=k.fontSize*.85,f=e.node().getBBox(),o=[];let h=!1,_=!1,m=0,g=0,x=0,y=0,N=f.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 R=0;const O=At(T.attributeType),D=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",p+"px").text(O),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",p+"px").text(T.attributeName),a={};a.tn=D,a.nn=S;const n=D.node().getBBox(),c=S.node().getBBox();if(m=Math.max(m,n.width),g=Math.max(g,c.width),R=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",p+"px").text(d);a.kn=E;const i=E.node().getBBox();x=Math.max(x,i.width),R=Math.max(R,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",p+"px").text(T.attributeComment||"");a.cn=d;const E=d.node().getBBox();y=Math.max(y,E.width),R=Math.max(R,E.height)}a.height=R,o.push(a),N+=R+u*2,I+=1});let F=4;h&&(F+=2),_&&(F+=2);const W=m+g+x+y,C={width:Math.max(k.minEntityWidth,Math.max(f.width+k.entityPadding*2,W+l*F)),height:r.length>0?N:Math.max(k.minEntityHeight,f.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+f.height/2)+")");let M=f.height+u*2,R="attributeBoxOdd";o.forEach(O=>{const D=M+u+O.height/2;O.tn.attr("transform","translate("+l+","+D+")");const S=t.insert("rect","#"+O.tn.node().id).classed(`er ${R}`,!0).attr("x",0).attr("y",M).attr("width",m+l*2+T).attr("height",O.height+u*2),a=parseFloat(S.attr("x"))+parseFloat(S.attr("width"));O.nn.attr("transform","translate("+(a+l)+","+D+")");const n=t.insert("rect","#"+O.nn.node().id).classed(`er ${R}`,!0).attr("x",a).attr("y",M).attr("width",g+l*2+T).attr("height",O.height+u*2);let c=parseFloat(n.attr("x"))+parseFloat(n.attr("width"));if(h){O.kn.attr("transform","translate("+(c+l)+","+D+")");const d=t.insert("rect","#"+O.kn.node().id).classed(`er ${R}`,!0).attr("x",c).attr("y",M).attr("width",x+l*2+T).attr("height",O.height+u*2);c=parseFloat(d.attr("x"))+parseFloat(d.attr("width"))}_&&(O.cn.attr("transform","translate("+(c+l)+","+D+")"),t.insert("rect","#"+O.cn.node().id).classed(`er ${R}`,"true").attr("x",c).attr("y",M).attr("width",y+l*2+T).attr("height",O.height+u*2)),M+=O.height+u*2,R=R==="attributeBoxOdd"?"attributeBoxEven":"attributeBoxOdd"})}else C.height=Math.max(k.minEntityHeight,N),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(p){const f=le(p,"entity");X.set(p,f);const o=t.append("g").attr("id",f);l=l===void 0?f:l;const h="text-"+f,_=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[p].alias??p),{width:m,height:g}=ee(o,_,e[p].attributes),y=o.insert("rect","#"+h).classed("er entityBox",!0).attr("x",0).attr("y",0).attr("width",m).attr("height",g).node().getBBox();r.setNode(f,{width:y.width,height:y.height,shape:"rect",id:f})}),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 p=r.edge(X.get(e.entityA),X.get(e.entityB),ut(e)),f=wt().x(function(N){return N.x}).y(function(N){return N.y}).curve(Tt),o=t.insert("path","#"+u).classed("er relationshipLine",!0).attr("d",f(p.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,y=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-y.width/2).attr("y",m.y-y.height/2).attr("width",y.width).attr("height",y.height)},se=function(t,e,r,u){k=Z().er,V.info("Drawing ER diagram");const l=Z().securityLevel;let p;l==="sandbox"&&(p=rt("#i"+e));const o=(l==="sandbox"?rt(p.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;bt.insertTitle(o,"entityTitleText",k.titleTopMargin,u.db.getDiagramTitle());const x=o.node().getBBox(),y=x.width+g*2,N=x.height+g*2;Nt(o,N,y,k.useMaxWidth),o.attr("viewBox",`${x.x-g} ${x.y-g} ${y} ${N}`)},oe="28e9f9db-3c8d-5aa5-9faf-44286ae5937c";function le(t="",e=""){const r=t.replace($t,"");return`${ht(e)}${ht(r)}${Ut(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,me={parser:zt,db:qt,renderer:ce,styles:de};export{me as diagram}; diff --git a/assets/faq.html-04ef7b18.js b/assets/faq.html-04ef7b18.js new file mode 100644 index 000000000..ebdb0143c --- /dev/null +++ b/assets/faq.html-04ef7b18.js @@ -0,0 +1,18 @@ +import{_ as o}from"./plugin-vue_export-helper-c27b6911.js";import{r,o as p,c as l,a,d as e,b as n,f as c,w as t,e as s}from"./app-d2f9e1e0.js";const h="/sealdice-manual-next/assets/image-20221009004030395-fd94273b.png",g="/sealdice-manual-next/assets/image-20221009003612068-63ae798c.png",u="/sealdice-manual-next/assets/image-20230109202133901-832f6cbd.png",b="/sealdice-manual-next/assets/image-20230109203431758-b43ab927.png",m="/sealdice-manual-next/assets/image-20230109205906109-6158f44b.png",v="/sealdice-manual-next/assets/image-20230109210448115-817d8b4b.png",f={},x=s(`

    常见问题

    本节内容

    本节将提供一些常见问题的解决方式,方便快速解决。如果你的问题并没有在这里得到答案,欢迎加入官方群寻求帮助。

    为啥海豹不理我?

    可能性一:你尝试私聊海豹核心,但并非是海豹账号的好友;

    可能性二:如果是 QQ 平台,骰子账号遭到了风控;

    可能性三:你使用的指令/扩展被关闭了。例如当 coc7 扩展关闭时,sc 等指令是不会回应的;这时需要执行 .ext coc7 on 开启对应扩展。

    如果你是骰主,可以在 WebUI 查看日志,以确定海豹核心是否收到了指令、是否正确做出了响应。

    如果你无法理解发生了什么,或者需要更多帮助,欢迎加入官方答疑群。

    可以关闭暗骰吗?

    海豹核心不支持关闭暗骰。但是,海豹不会与非好友帐号私聊,所以不必担心暗骰会影响帐号安全。

    退群指令?

    以下指令均可:

    .bot bye
    +.bot exit
    +.dismiss
    +

    骰主也可以 WebUI 的群组管理中操作退群。

    登录服务器开浏览器使用好麻烦!能远程直接访问 WebUI 吗?

    对于大部分有公网 IP 的服务器都可以,但是需要你进行一些配置。

    1. 在 WebUI 修改配置,让海豹 WebUI 运行在公开端口而不是本地端口;

    2. 在基本设置中设置 WebUI 访问密码;

    3. 修改你服务器的防火墙(根据服务提供商,也可能称为「安全组」等),以允许远程 TCP 访问海豹端口。

      1. 如果你使用的是 Oracle Linux 或类似服务器,还需要在服务器系统中放行端口:

        sudo iptables -I INPUT -s 0.0.0.0/0 -p tcp --dport 3211  -j ACCEPT
        +
      2. 如果你使用 Windows 服务器,需要关闭系统内置防火墙或设置端口放行。

    4. 使用 http://<服务器IP地址>:3211 访问 WebUI。

    在服务器上登录时说「需要在同一 WIFI 下扫码」怎么办

    首先确认使用安卓协议,并且输入密码登录(不要使用无密码的扫码登录,现在已经很不好用了)。

    有几种办法:

    1. [首选] 让手机跟服务器真的处于同一个网络

    1. 配置防火墙

      配置你的服务器,允许外部访问 13325 端口。

      详情

      以腾讯云轻量服务器为例,点入「服务器」,再点击卡片。

      服务器配置
      服务器配置

      进入后点击「防火墙」,随后「添加规则」,这里选择 TCP 协议,端口输入 13325(演示图片中为 13326),点击确定。

      放通防火墙
      放通防火墙

      搞定,其他服务商大同小异。

      特别的,如果是 Windows Server 2012R2 及以上系统,请再额外关闭系统防火墙或设置规则放行。具体做法搜索关键字 Windows server 关闭防火墙

    2. 服务器端运行工具

    在海豹骰中集成了 socks 工具,点击图中「辅助工具 -13325 端口」按钮。

    登录弹窗
    登录弹窗

    稍等片刻后,出现如下窗口。

    辅助工具弹窗
    辅助工具弹窗

    点击 OK。

    运行起来之后,显示一串这样的文本:

    http/socks5简易工具©sealdice.com
    +将在服务器上开启一个 socks5 服务,端口 13325,默认持续时长为 25 分钟
    +将在服务器上开启一个 http 代理服务,端口 13326,默认持续时长为 25 分钟
    +
    +可能的公网 IP:  12.34.56.78
    +请于服务器管理面板放行你要用的端口 (一般为 13325 即 socks),协议 TCP
    +如果是 Windows Server 2012R2 及以上系统,请再额外关闭系统防火墙或设置规则放行
    +
    +正在启动服务:0.0.0.0:13326
    +正在启动服务:0.0.0.0:13325
    +
    1. 手机端连接

    你需要一个代理软件,比如 postern,如果可能的话你可以从 Google Play 下载,你也可以在用户群里找到它。

    然后在你将要扫码的手机上启动它,弹出的窗口都点击确定

    点击默认存在在的代理,将他删除,然后点击添加代理服务器,按照下图填写。

    postern 配置代理服务器
    postern 配置代理服务器

    保存后点击左上角 Postern 的图标,点击配置规则,类似前文删除代理,删除掉默认的规则 1 和规则 2,然后点击添加规则。如图选择匹配类型和动作,之后会自动填入代理/代理组。

    postern 配置规则
    postern 配置规则

    保存后重启软件。

    ',37),_={href:"https://ip138.com/",target:"_blank",rel:"noopener noreferrer"},k=s(`

    如果打不开网页或提示「当前 WiFi 不能访问网络」,可能是防火墙没配置好。如果 IP 不一样,可能是代理没配置上。

    如果你使用 iOS 手机,可以使用 Potatso 替代 Postern。

    现在可以进入海豹 WebUI,重新进行登录流程了。如果以后再出类似情况,直接重复步骤 2、3 即可。

    2. 本机上完成扫码登录,然后将登录过的配置文件覆盖到服务器上

    具体目录是 data/default/extra/go-cqhttp-qq12345

    当然如果你没做过自定义配置,可以整个复制。

    使用密码登录,重试 3 次左右,有概率直接上号

    AT 其他骰子做检定的时候,海豹也会回应,怎么办

    使用这个指令将其他骰子进行标记:

    .botlist add @骰子A @骰子B
    +

    会有如下效果:

    1. 当有人@该骰发指令,海豹不会做出回应
    2. 该骰发出的指令和消息,海豹不会回应,这可以有效避免关键词触发的无限复读

    为啥好像反应慢一拍

    首先确定是否为网络问题。如果你是骰主,可在后台的日志中检查收到指令的实际时间和发出响应的实际时间。

    对于 QQ 平台,发送消息会有随机延迟,这是为了防止引起企鹅的警惕。随机延迟间隔 0.4 - 0.9 秒,可以在设置中调整。

    我希望在我的骰子进群或者被踢出时通知我

    在 WebUI 的「综合设置 - 基本设置」页面。在「消息通知列表」中可以添加消息通知的接收者。支持个人、群聊、电子邮箱作为接收者。

    在海豹核心发生 收到加群邀请、收到好友邀请、进入群组、被踢出群、被禁言、自动激活、指令退群 时,会给消息通知列表的各个接收者发送通知。

    支持 QQ 频道吗?

    支持,默认不记录频道消息,也不自动开启。邀请入频道后 @骰子 .bot on 即可开启。

    在 WebUI 的「综合设置 - 基本设置」可以进行配置。特别的,骰子不会自动同意频道邀请,需要骰主上号同意。

    `,21),w=s(`

    怎么同时运行多个海豹?

    Windows 系统

    在 Windows 系统运行两个是很简单的:

    我们假设你的第一只海豹已经配置好了,当前正在运行,端口为默认的 3211。

    现在,你需要使用安装包,在另一个目录再解压一份海豹核心。

    进入新的目录,像运行第一只海豹一样直接双击执行。它会自动检测端口,因为 3211 端口已经被占用,会弹窗询问是否更换端口,直接点是就可以了。

    如果你想在 Windows 系统指定端口,需要一点操作

    在每一个你需要指定端口的海豹核心目录下创建一个 启动.cmd,用文本编辑器编辑,内容为:

    sealdice-core --address=0.0.0.0:<端口号> -m
    +

    其中的 <端口号> 替换成你希望指定的端口号。然后双击 启动.cmd 运行。

    你只需在第一次启动时这样做,这个端口号会被写入配置中供后续启动使用。

    除 Android 外的其他系统

    通常来说,你在这些系统上是通过命令行(终端)来启动海豹核心。

    将安装包解压到你为新海豹准备的目录,在初次启动海豹时,使用以下命令:

    ./sealdice-core --address=127.0.0.1:<端口号>
    +

    将在你系统上,占用指定的端口号,启动一个不向互联网公开的新海豹核心。

    我机器上启动非常慢,而且托盘点不出来右键菜单?

    请确认你的硬盘状态是否还好,一般来说是磁盘 I/O 性能过低导致的,常见于软路由设备。

    这种情况可以删除 data/helpdoc/ 目录来提速,代价是无法使用查询指令。

    能在手机上搭建吗?

    `,20),I=a("h2",{id:"我是-master-怎么帮人取出-log",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#我是-master-怎么帮人取出-log","aria-hidden":"true"},"#"),e(" 我是 Master,怎么帮人取出 Log?")],-1),W=s('

    骰主具有很大的权限,所以还请各位选择自己信任的骰主,也请各位骰主谨慎对待大家的信任!

    我忘了 WebUI 密码

    首先彻底关闭海豹。

    用文本编辑器打开 dice/dice.yaml,删除 uiPasswordHash 一行,保存。

    重新启动海豹。

    ',5);function P(y,U){const d=r("ExternalLinkIcon"),i=r("RouterLink");return p(),l("div",null,[x,a("p",null,[e("现在就配置完成了。手机上打开浏览器进入 "),a("a",_,[e("https://ip138.com/"),n(d)]),e(",如果显示的 IP 地址和服务器一样,那么配置正确。")]),k,c(" ## 为什么总是不出二维码就登录失败,或者提示 `message:not found`?\n\n请将软件完全解压后使用! "),w,a("p",null,[e("手机海豹已经公测啦!详见 "),n(i,{to:"/deploy/quick-start.html#%E5%90%AF%E5%8A%A8"},{default:t(()=>[e("搭建")]),_:1}),e(" 章节。")]),I,a("p",null,[e("详见 "),n(i,{to:"/use/log.html#%E9%AA%B0%E4%B8%BB%E4%BB%A3%E5%8F%96log"},{default:t(()=>[e("这一章节")]),_:1}),e("。")]),W])}const B=o(f,[["render",P],["__file","faq.html.vue"]]);export{B as default}; diff --git a/assets/faq.html-a55bc751.js b/assets/faq.html-a55bc751.js new file mode 100644 index 000000000..8dc252b43 --- /dev/null +++ b/assets/faq.html-a55bc751.js @@ -0,0 +1 @@ +const e=JSON.parse('{"key":"v-56b95c84","path":"/use/faq.html","title":"常见问题","lang":"zh-cn","frontmatter":{"lang":"zh-cn","title":"常见问题","description":"本节内容 本节将提供一些常见问题的解决方式,方便快速解决。如果你的问题并没有在这里得到答案,欢迎加入官方群寻求帮助。 为啥海豹不理我? 可能性一:你尝试私聊海豹核心,但并非是海豹账号的好友; 可能性二:如果是 QQ 平台,骰子账号遭到了风控; 可能性三:你使用的指令/扩展被关闭了。例如当 coc7 扩展关闭时,sc 等指令是不会回应的;这时需要执行 ....","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/use/faq.html"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"常见问题"}],["meta",{"property":"og:description","content":"本节内容 本节将提供一些常见问题的解决方式,方便快速解决。如果你的问题并没有在这里得到答案,欢迎加入官方群寻求帮助。 为啥海豹不理我? 可能性一:你尝试私聊海豹核心,但并非是海豹账号的好友; 可能性二:如果是 QQ 平台,骰子账号遭到了风控; 可能性三:你使用的指令/扩展被关闭了。例如当 coc7 扩展关闭时,sc 等指令是不会回应的;这时需要执行 ...."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:image","content":"http://localhost:8080/sealdice-manual-next/"}],["meta",{"property":"og:locale","content":"zh-cn"}],["meta",{"property":"og:updated_time","content":"2023-10-29T17:01:34.000Z"}],["meta",{"name":"twitter:card","content":"summary_large_image"}],["meta",{"name":"twitter:image:alt","content":"常见问题"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-10-29T17:01:34.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"常见问题\\",\\"image\\":[\\"http://localhost:8080/sealdice-manual-next/\\"],\\"dateModified\\":\\"2023-10-29T17:01:34.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[{"level":2,"title":"为啥海豹不理我?","slug":"为啥海豹不理我","link":"#为啥海豹不理我","children":[]},{"level":2,"title":"可以关闭暗骰吗?","slug":"可以关闭暗骰吗","link":"#可以关闭暗骰吗","children":[]},{"level":2,"title":"退群指令?","slug":"退群指令","link":"#退群指令","children":[]},{"level":2,"title":"登录服务器开浏览器使用好麻烦!能远程直接访问 WebUI 吗?","slug":"登录服务器开浏览器使用好麻烦-能远程直接访问-webui-吗","link":"#登录服务器开浏览器使用好麻烦-能远程直接访问-webui-吗","children":[]},{"level":2,"title":"在服务器上登录时说「需要在同一 WIFI 下扫码」怎么办","slug":"在服务器上登录时说「需要在同一-wifi-下扫码」怎么办","link":"#在服务器上登录时说「需要在同一-wifi-下扫码」怎么办","children":[{"level":3,"title":"1. [首选] 让手机跟服务器真的处于同一个网络","slug":"_1-首选-让手机跟服务器真的处于同一个网络","link":"#_1-首选-让手机跟服务器真的处于同一个网络","children":[]},{"level":3,"title":"2. 本机上完成扫码登录,然后将登录过的配置文件覆盖到服务器上","slug":"_2-本机上完成扫码登录-然后将登录过的配置文件覆盖到服务器上","link":"#_2-本机上完成扫码登录-然后将登录过的配置文件覆盖到服务器上","children":[]}]},{"level":2,"title":"AT 其他骰子做检定的时候,海豹也会回应,怎么办","slug":"at-其他骰子做检定的时候-海豹也会回应-怎么办","link":"#at-其他骰子做检定的时候-海豹也会回应-怎么办","children":[]},{"level":2,"title":"为啥好像反应慢一拍","slug":"为啥好像反应慢一拍","link":"#为啥好像反应慢一拍","children":[]},{"level":2,"title":"我希望在我的骰子进群或者被踢出时通知我","slug":"我希望在我的骰子进群或者被踢出时通知我","link":"#我希望在我的骰子进群或者被踢出时通知我","children":[]},{"level":2,"title":"支持 QQ 频道吗?","slug":"支持-qq-频道吗","link":"#支持-qq-频道吗","children":[]},{"level":2,"title":"怎么同时运行多个海豹?","slug":"怎么同时运行多个海豹","link":"#怎么同时运行多个海豹","children":[{"level":3,"title":"Windows 系统","slug":"windows-系统","link":"#windows-系统","children":[]},{"level":3,"title":"除 Android 外的其他系统","slug":"除-android-外的其他系统","link":"#除-android-外的其他系统","children":[]}]},{"level":2,"title":"我机器上启动非常慢,而且托盘点不出来右键菜单?","slug":"我机器上启动非常慢-而且托盘点不出来右键菜单","link":"#我机器上启动非常慢-而且托盘点不出来右键菜单","children":[]},{"level":2,"title":"能在手机上搭建吗?","slug":"能在手机上搭建吗","link":"#能在手机上搭建吗","children":[]},{"level":2,"title":"我是 Master,怎么帮人取出 Log?","slug":"我是-master-怎么帮人取出-log","link":"#我是-master-怎么帮人取出-log","children":[]},{"level":2,"title":"我忘了 WebUI 密码","slug":"我忘了-webui-密码","link":"#我忘了-webui-密码","children":[]}],"git":{"createdTime":1698165306000,"updatedTime":1698598894000,"contributors":[{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":2},{"name":"Xiangze Li","email":"lee_johnson@qq.com","commits":1}]},"readingTime":{"minutes":7.99,"words":2396},"filePathRelative":"use/faq.md","localizedDate":"2023年10月24日","autoDesc":true,"excerpt":""}');export{e as data}; diff --git a/assets/flowDb-fa1288b0-080edacf.js b/assets/flowDb-fa1288b0-080edacf.js new file mode 100644 index 000000000..62bddef62 --- /dev/null +++ b/assets/flowDb-fa1288b0-080edacf.js @@ -0,0 +1,6 @@ +import{c as pt,u as ye,s as me,g as ve,a as Ve,b as Le,v as Ie,x as Re,l as ft,y as At,z as Ne,j as Oe,h as N1}from"./mermaid.core-d8bc71ff.js";var lt=function(){var e=function(h1,a,o,h){for(o=o||{},h=h1.length;h--;o[h1[h]]=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],p=[2,2],l=[1,13],U=[1,14],F=[1,15],O=[1,16],z=[1,23],c1=[1,25],p1=[1,26],f1=[1,27],S=[1,49],k=[1,48],o1=[1,29],w1=[1,30],U1=[1,31],G1=[1,32],M1=[1,33],B=[1,44],x=[1,46],y=[1,42],m=[1,47],v=[1,43],V=[1,50],L=[1,45],I=[1,51],R=[1,52],K1=[1,34],j1=[1,35],Y1=[1,36],X1=[1,37],L1=[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],Q=[1,62],z1=[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],B1=[1,95],x1=[1,86],H1=[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],I1=[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],Bt=[1,136],xt=[1,137],yt=[1,138],mt=[1,139],vt=[1,140],Vt=[1,141],Lt=[1,146],It=[1,147],Rt=[1,126],Nt=[1,127],Ot=[1,134],Pt=[1,129],wt=[1,133],Ut=[1,131],ut=[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],f=[1,169],P=[1,165],w=[1,166],A=[1,170],d=[1,167],E=[1,168],y1=[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],l1=[31,47,49,51,53,55,60,62,64,65,67,69,113,114,115],Z=[1,235],J=[1,233],$=[1,237],t1=[1,231],e1=[1,232],s1=[1,234],u1=[1,236],i1=[1,238],m1=[1,255],Kt=[8,9,11,103],H=[8,9,10,11,58,81,102,103,106,107,108,109],it={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,h,r,C,t,R1){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 j=r.destructLink(t[s],t[s-2]);this.$={type:j.type,stroke:j.stroke,length:j.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 j=r.destructLink(t[s]);this.$={type:j.type,stroke:j.stroke,length:j.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,p,{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:l,9:U,10:F,11:O,20:17,22:18,23:19,24:20,25:21,26:22,27:z,33:24,34:c1,36:p1,38:f1,40:28,41:38,42:S,43:39,45:40,58:k,81:o1,82:w1,83:U1,84:G1,85:M1,86:B,99:x,102:y,103:m,106:v,108:V,110:41,111:L,112:I,113:R,118:K1,119:j1,120:Y1,121:X1},e(c,[2,9]),e(c,[2,10]),e(c,[2,11]),{8:[1,54],9:[1,55],10:L1,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:Q,21:58,39:59,70:63,73:[1,64],75:[1,65]},{8:W,9:q,11:Q,21:66},{8:W,9:q,11:Q,21:67},{8:W,9:q,11:Q,21:68},{8:W,9:q,11:Q,21:69},{8:W,9:q,11:Q,21:70},{8:W,9:q,10:[1,71],11:Q,21:72},e(b,[2,36]),{35:[1,73]},{37:[1,74]},e(b,[2,39]),e(z1,[2,46],{18:75,10:L1}),{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:B1,113:x1,117:84},e(b,[2,178]),e(b,[2,179]),e(b,[2,180]),e(b,[2,181]),e(H1,[2,47]),e(H1,[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:B,99:x,102:y,103:m,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:L1}),e(b,[2,27]),{40:112,41:38,42:S,43:39,45:40,58:k,86:B,99:x,102:y,103:m,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(I1,[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:Bt,77:[1,124],78:[1,125],80:135,81:xt,82:yt,83:mt,84:vt,85:Vt,86:Lt,87:It,88:123,102:Rt,106:Nt,108:Ot,111:Pt,112:wt,113:Ut},e(ut,p,{5:148}),e(b,[2,37]),e(b,[2,38]),e(z1,[2,45],{42:Gt}),{42:S,45:150,58:k,86:B,99:x,102:y,103:m,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:B,99:x,102:y,103:m,106:v,108:V,110:41,111:L,112:I,113:R},{42:S,45:155,58:k,86:B,99:x,102:y,103:m,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: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:S,45:162,58:k,86:B,99:x,102:y,103:m,106:v,108:V,110:41,111:L,112:I,113:R},{30:163,65:f,77:P,78:w,79:164,113:A,114:d,115:E},{30:171,65:f,77:P,78:w,79:164,113:A,114:d,115:E},{30:173,48:[1,172],65:f,77:P,78:w,79:164,113:A,114:d,115:E},{30:174,65:f,77:P,78:w,79:164,113:A,114:d,115:E},{30:175,65:f,77:P,78:w,79:164,113:A,114:d,115:E},{30:176,65:f,77:P,78:w,79:164,113:A,114:d,115:E},{106:[1,177]},{30:178,65:f,77:P,78:w,79:164,113:A,114:d,115:E},{30:179,63:[1,180],65:f,77:P,78:w,79:164,113:A,114:d,115:E},{30:181,65:f,77:P,78:w,79:164,113:A,114:d,115:E},{30:182,65:f,77:P,78:w,79:164,113:A,114:d,115:E},{30:183,65:f,77:P,78:w,79:164,113:A,114:d,115:E},e(M,[2,175]),e(c,[2,20]),e(Et,[2,25]),e(z1,[2,43],{18:184,10:L1}),e(I1,[2,68],{10:[1,185]}),{10:[1,186]},{30:187,65:f,77:P,78:w,79:164,113:A,114:d,115:E},{75:[1,188],76:189,113:kt,116:bt},e(y1,[2,73]),e(y1,[2,75]),e(y1,[2,76]),e(y1,[2,161]),e(y1,[2,162]),{8:W,9:q,10:gt,11:Q,12:Dt,14:Ft,21:191,27:Tt,29:[1,190],32:Ct,42:St,58:_t,73:Bt,80:135,81:xt,82:yt,83:mt,84:vt,85:Vt,86:Lt,87:It,88:192,102:Rt,106:Nt,108:Ot,111:Pt,112:wt,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:l,9:U,10:F,11:O,20:17,22:18,23:19,24:20,25:21,26:22,27:z,32:[1,193],33:24,34:c1,36:p1,38:f1,40:28,41:38,42:S,43:39,45:40,58:k,81:o1,82:w1,83:U1,84:G1,85:M1,86:B,99:x,102:y,103:m,106:v,108:V,110:41,111:L,112:I,113:R,118:K1,119:j1,120:Y1,121:X1},{10:L1,18:194},{10:[1,195],42:S,58:k,86:B,99:x,102:y,103:m,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:B,99:x,102:y,103:m,106:v,108:V,110:109,111:L,112:I,113:R},{10:[1,200],42:S,58:k,86:B,99:x,102:y,103:m,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(H1,[2,50],{110:109,42:S,58:k,86:B,99:x,102:y,103:m,106:v,108:V,111:L,112:I,113:R}),{31:[1,207],65:f,79:208,113:A,114:d,115:E},e(l1,[2,79]),e(l1,[2,81]),e(l1,[2,82]),e(l1,[2,146]),e(l1,[2,147]),e(l1,[2,148]),e(l1,[2,149]),{47:[1,209],65:f,79:208,113:A,114:d,115:E},{30:210,65:f,77:P,78:w,79:164,113:A,114:d,115:E},{49:[1,211],65:f,79:208,113:A,114:d,115:E},{51:[1,212],65:f,79:208,113:A,114:d,115:E},{53:[1,213],65:f,79:208,113:A,114:d,115:E},{55:[1,214],65:f,79:208,113:A,114:d,115:E},{58:[1,215]},{62:[1,216],65:f,79:208,113:A,114:d,115:E},{64:[1,217],65:f,79:208,113:A,114:d,115:E},{30:218,65:f,77:P,78:w,79:164,113:A,114:d,115:E},{31:[1,219],65:f,79:208,113:A,114:d,115:E},{65:f,67:[1,220],69:[1,221],79:208,113:A,114:d,115:E},{65:f,67:[1,223],69:[1,222],79:208,113:A,114:d,115:E},e(z1,[2,44],{42:Gt}),e(I1,[2,70]),e(I1,[2,69]),{60:[1,224],65:f,79:208,113:A,114:d,115:E},e(I1,[2,72]),e(y1,[2,74]),{30:225,65:f,77:P,78:w,79:164,113:A,114:d,115:E},e(ut,p,{5:226}),e(g,[2,95]),e(b,[2,35]),{41:227,42:S,43:39,45:40,58:k,86:B,99:x,102:y,103:m,106:v,108:V,110:41,111:L,112:I,113:R},{10:Z,58:J,81:$,89:228,102:t1,104:229,105:230,106:e1,107:s1,108:u1,109:i1},{10:Z,58:J,81:$,89:239,101:[1,240],102:t1,104:229,105:230,106:e1,107:s1,108:u1,109:i1},{10:Z,58:J,81:$,89:241,101:[1,242],102:t1,104:229,105:230,106:e1,107:s1,108:u1,109:i1},{102:[1,243]},{10:Z,58:J,81:$,89:244,102:t1,104:229,105:230,106:e1,107:s1,108:u1,109:i1},{42:S,45:245,58:k,86:B,99:x,102:y,103:m,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(l1,[2,80]),e(N,[2,52]),{49:[1,250],65:f,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:f,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:f,79:208,113:A,114:d,115:E},{6:11,7:12,8:l,9:U,10:F,11:O,20:17,22:18,23:19,24:20,25:21,26:22,27:z,32:[1,254],33:24,34:c1,36:p1,38:f1,40:28,41:38,42:S,43:39,45:40,58:k,81:o1,82:w1,83:U1,84:G1,85:M1,86:B,99:x,102:y,103:m,106:v,108:V,110:41,111:L,112:I,113:R,118:K1,119:j1,120:Y1,121:X1},e(H1,[2,48]),e(T,[2,114],{103:m1}),e(Kt,[2,123],{105:256,10:Z,58:J,81:$,102:t1,106:e1,107:s1,108:u1,109:i1}),e(H,[2,125]),e(H,[2,127]),e(H,[2,128]),e(H,[2,129]),e(H,[2,130]),e(H,[2,131]),e(H,[2,132]),e(H,[2,133]),e(H,[2,134]),e(T,[2,115],{103:m1}),{10:[1,257]},e(T,[2,116],{103:m1}),{10:[1,258]},e(Mt,[2,122]),e(T,[2,98],{103:m1}),e(T,[2,99],{110:109,42:S,58:k,86:B,99:x,102:y,103:m,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:Q,21:264},e(b,[2,34]),{10:Z,58:J,81:$,102:t1,104:265,105:230,106:e1,107:s1,108:u1,109:i1},e(H,[2,126]),{14:k1,42:b1,58:g1,86:D1,98:266,102:F1,103:T1,106:C1,108:S1,111:_1,112:B1,113:x1,117:84},{14:k1,42:b1,58:g1,86:D1,98:267,102:F1,103:T1,106:C1,108:S1,111:_1,112:B1,113:x1,117:84},{95:[1,268]},e(T,[2,113]),e(N,[2,53]),{30:269,65:f,77:P,78:w,79:164,113:A,114:d,115:E},e(N,[2,61]),e(ut,p,{5:270}),e(Kt,[2,124],{105:256,10:Z,58:J,81:$,102:t1,106:e1,107:s1,108:u1,109:i1}),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: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:C1,108:S1,111:_1,112:B1,113:x1}),e(T,[2,107]),{31:[1,273],65:f,79:208,113:A,114:d,115:E},{6:11,7:12,8:l,9:U,10:F,11:O,20:17,22:18,23:19,24:20,25:21,26:22,27:z,32:[1,274],33:24,34:c1,36:p1,38:f1,40:28,41:38,42:S,43:39,45:40,58:k,81:o1,82:w1,83:U1,84:G1,85:M1,86:B,99:x,102:y,103:m,106:v,108:V,110:41,111:L,112:I,113:R,118:K1,119:j1,120:Y1,121:X1},{10:Z,58:J,81:$,89:275,102:t1,104:229,105:230,106:e1,107:s1,108:u1,109:i1},{10:Z,58:J,81:$,89:276,102:t1,104:229,105:230,106:e1,107:s1,108:u1,109:i1},e(N,[2,57]),e(b,[2,33]),e(T,[2,117],{103:m1}),e(T,[2,118],{103:m1})],defaultActions:{},parseError:function(a,o){if(o.recoverable)this.trace(a);else{var h=new Error(a);throw h.hash=o,h}},parse:function(a){var o=this,h=[0],r=[],C=[null],t=[],R1=this.table,s="",j=0,jt=0,Se=2,Yt=1,_e=t.slice.call(arguments,1),_=Object.create(this.lexer),A1={yy:{}};for(var nt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,nt)&&(A1.yy[nt]=this.yy[nt]);_.setInput(a,A1.yy),A1.yy.lexer=_,A1.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var at=_.yylloc;t.push(at);var Be=_.options&&_.options.ranges;typeof A1.yy.parseError=="function"?this.parseError=A1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function xe(){var n1;return n1=r.pop()||_.lex()||Yt,typeof n1!="number"&&(n1 instanceof Array&&(r=n1,n1=r.pop()),n1=o.symbols_[n1]||n1),n1}for(var G,d1,Y,ct,v1={},W1,r1,Xt,q1;;){if(d1=h[h.length-1],this.defaultActions[d1]?Y=this.defaultActions[d1]:((G===null||typeof G>"u")&&(G=xe()),Y=R1[d1]&&R1[d1][G]),typeof Y>"u"||!Y.length||!Y[0]){var ot="";q1=[];for(W1 in R1[d1])this.terminals_[W1]&&W1>Se&&q1.push("'"+this.terminals_[W1]+"'");_.showPosition?ot="Parse error on line "+(j+1)+`: +`+_.showPosition()+` +Expecting `+q1.join(", ")+", got '"+(this.terminals_[G]||G)+"'":ot="Parse error on line "+(j+1)+": Unexpected "+(G==Yt?"end of input":"'"+(this.terminals_[G]||G)+"'"),this.parseError(ot,{text:_.match,token:this.terminals_[G]||G,line:_.yylineno,loc:at,expected:q1})}if(Y[0]instanceof Array&&Y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+d1+", token: "+G);switch(Y[0]){case 1:h.push(G),C.push(_.yytext),t.push(_.yylloc),h.push(Y[1]),G=null,jt=_.yyleng,s=_.yytext,j=_.yylineno,at=_.yylloc;break;case 2:if(r1=this.productions_[Y[1]][1],v1.$=C[C.length-r1],v1._$={first_line:t[t.length-(r1||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(r1||1)].first_column,last_column:t[t.length-1].last_column},Be&&(v1._$.range=[t[t.length-(r1||1)].range[0],t[t.length-1].range[1]]),ct=this.performAction.apply(v1,[s,jt,j,A1.yy,Y[1],C,t].concat(_e)),typeof ct<"u")return ct;r1&&(h=h.slice(0,-1*r1*2),C=C.slice(0,-1*r1),t=t.slice(0,-1*r1)),h.push(this.productions_[Y[1]][0]),C.push(v1.$),t.push(v1._$),Xt=R1[h[h.length-2]][h[h.length-1]],h.push(Xt);break;case 3:return!0}}return!0}},Ce=function(){var h1={EOF:1,parseError:function(o,h){if(this.yy.parser)this.yy.parser.parseError(o,h);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,h=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),h.length-1&&(this.yylineno-=h.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:h?(h.length===r.length?this.yylloc.first_column:0)+r[r.length-h.length].length-h[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 h,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],h=this.performAction.call(this,this.yy,this,o,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),h)return h;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,h,r;this._more||(this.yytext="",this.match="");for(var C=this._currentRules(),t=0;to[0].length)){if(o=h,r=t,this.options.backtrack_lexer){if(a=this.test_match(h,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,h,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 h1}();it.lexer=Ce;function rt(){this.yy={}}return rt.prototype=it,it.Parser=rt,new rt}();lt.parser=lt;const ze=lt,Pe="flowchart-";let zt=0,dt=pt(),D={},E1=[],V1={},a1=[],Z1={},J1={},Q1=0,ht=!0,X,$1,tt=[];const et=e=>Oe.sanitizeText(e,dt),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,p,l={}){let U,F=e;F!==void 0&&F.trim().length!==0&&(D[F]===void 0&&(D[F]={id:F,labelType:"text",domId:Pe+F+"-"+zt,styles:[],classes:[]}),zt++,u!==void 0?(dt=pt(),U=et(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(O){D[F].styles.push(O)}),c!=null&&c.forEach(function(O){D[F].classes.push(O)}),p!==void 0&&(D[F].dir=p),D[F].props===void 0?D[F].props=l:l!==void 0&&Object.assign(D[F].props,l))},Wt=function(e,u,i){const p={start:e,end:u,type:void 0,text:"",labelType:"text"};ft.info("abc78 Got edge...",p);const l=i.text;l!==void 0&&(p.text=et(l.text.trim()),p.text[0]==='"'&&p.text[p.text.length-1]==='"'&&(p.text=p.text.substring(1,p.text.length-1)),p.labelType=l.type),i!==void 0&&(p.type=i.type,p.stroke=i.stroke,p.length=i.length),E1.push(p)},qt=function(e,u,i){ft.info("addLink (abc78)",e,u,i);let n,c;for(n=0;n/)&&(X="LR"),X.match(/.*v/)&&(X="TB"),X==="TD"&&(X="TB")},st=function(e,u){e.split(",").forEach(function(i){let n=i;D[n]!==void 0&&D[n].classes.push(u),Z1[n]!==void 0&&Z1[n].classes.push(u)})},we=function(e,u){e.split(",").forEach(function(i){u!==void 0&&(J1[$1==="gen-1"?P1(i):i]=et(u))})},Ue=function(e,u,i){let n=P1(e);if(pt().securityLevel!=="loose"||u===void 0)return;let c=[];if(typeof i=="string"){c=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let p=0;p")),c.classed("hover",!0)}).on("mouseout",function(){u.transition().duration(500).style("opacity",0),N1(this).classed("hover",!1)})};tt.push(ce);const oe=function(e="gen-1"){D={},V1={},E1=[],tt=[ce],a1=[],Z1={},Q1=0,J1={},ht=!0,$1=e,Ne()},le=e=>{$1=e||"gen-2"},he=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},pe=function(e,u,i){let n=e.text.trim(),c=i.text;e===i&&i.text.match(/\s/)&&(n=void 0);function p(z){const c1={boolean:{},number:{},string:{}},p1=[];let f1;return{nodeList:z.filter(function(k){const o1=typeof k;return k.stmt&&k.stmt==="dir"?(f1=k.value,!1):k.trim()===""?!1:o1 in c1?c1[o1].hasOwnProperty(k)?!1:c1[o1][k]=!0:p1.includes(k)?!1:p1.push(k)}),dir:f1}}let l=[];const{nodeList:U,dir:F}=p(l.concat.apply(l,u));if(l=U,$1==="gen-1")for(let z=0;z2e3)return;if(fe[O1]=u,a1[u].id===e)return{result:!0,count:0};let n=0,c=1;for(;n=0){const l=Ae(e,p);if(l.result)return{result:!0,count:c+l.count};c=c+l.count}n=n+1}return{result:!1,count:c}},de=function(e){return fe[e]},Ee=function(){O1=-1,a1.length>0&&Ae("none",a1.length-1)},ke=function(){return a1},be=()=>ht?(ht=!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{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",p=i.length-1;i[0]==="="&&(c="thick"),i[0]==="~"&&(c="invisible");let l=Ke(".",i);return l&&(c="dotted",p=l),{type:n,stroke:c,length:p}},ge=(e,u)=>{const i=je(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},Ye={defaultConfig:()=>ye.flowchart,setAccTitle:me,getAccTitle:ve,getAccDescription:Ve,setAccDescription:Le,addVertex:Ht,lookUpDomId:P1,addLink:qt,updateLinkInterpolate:Qt,updateLink:Zt,addClass:Jt,setDirection:$t,setClass:st,setTooltip:we,getTooltip:ee,setClickEvent:se,setLink:te,bindFunctions:ue,getDirection:ie,getVertices:re,getEdges:ne,getClasses:ae,clear:oe,setGen:le,defaultStyle:he,addSubGraph:pe,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:pe,addVertex:Ht,bindFunctions:ue,clear:oe,default:Ye,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:st,setClickEvent:se,setDirection:$t,setGen:le,setLink:te,updateLink:Zt,updateLinkInterpolate:Qt},Symbol.toStringTag,{value:"Module"}));export{He as d,Ye as f,ze as p}; diff --git a/assets/flowDiagram-f303bdd6-38bad9e8.js b/assets/flowDiagram-f303bdd6-38bad9e8.js new file mode 100644 index 000000000..d4da8bab4 --- /dev/null +++ b/assets/flowDiagram-f303bdd6-38bad9e8.js @@ -0,0 +1,4 @@ +import{p as St,f as W}from"./flowDb-fa1288b0-080edacf.js";import{h as S,u as Lt,r as Et,p as _t,l as Tt,d as M,f as tt,G as Nt}from"./layout-58f7ec6d.js";import{h as x,o as P,p as z,q as et,c as J,j as rt,l as R,r as V,t as At}from"./mermaid.core-d8bc71ff.js";import{a as N,b as at,i as nt,c as _,e as st,d as it,f as Ct,g as It,s as Bt}from"./styles-0671a096-13891fb5.js";import{l as Mt}from"./line-e21175d5.js";import"./app-d2f9e1e0.js";import"./index-f9462f3f-9287aadd.js";import"./edges-f15a7e05-a8484ad2.js";import"./createText-80c3befb-7196e989.js";import"./array-9f3ba611.js";import"./path-53f90ab3.js";function Dt(r){if(!r.ok)throw new Error(r.status+" "+r.statusText);return r.text()}function Rt(r,e){return fetch(r,e).then(Dt)}function Gt(r){return(e,t)=>Rt(e,t).then(n=>new DOMParser().parseFromString(n,r))}var Pt=Gt("image/svg+xml"),Y={normal:$t,vee:Wt,undirected:Vt};function Ut(r){Y=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 Yt(r,e){for(var t=r.append("text"),n=Ht(e.label).split(` +`),a=0;a0}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;l1&&s.sort(function(p,g){var f=p.x-t.x,y=p.y-t.y,k=Math.sqrt(f*f+y*y),I=g.x-t.x,E=g.y-t.y,U=Math.sqrt(I*I+E*E);return kMath.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);Tt(t),re(o,t),ee(i,t),F(s,t,Y);var c=H(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):H},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):Y},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 mt(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.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=mt,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:mt}),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},xt={},we=function(r){const e=Object.keys(r);for(const t of e)xt[t]=r[t]},bt=function(r,e,t,n,a,s){const i=n?n.select(`[id="${t}"]`):x(`[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=>``)};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 I 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=I,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"}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: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(xt.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=`${i.text.replace(/fa[blrs]?:fa-[\w-]+/g,u=>``)}`):(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)})},me=function(r,e){return R.info("Extracting classes"),e.db.getClasses()},xe=function(r,e,t,n){R.info("Drawing flowchart");const{securityLevel:a,flowchart:s}=J();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 Nt({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();R.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{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,be.setConf(r.flowchart),W.clear(),W.setGen("gen-1")}};export{Me as diagram}; diff --git a/assets/flowDiagram-v2-34644886-a261f2a2.js b/assets/flowDiagram-v2-34644886-a261f2a2.js new file mode 100644 index 000000000..6c5292dc1 --- /dev/null +++ b/assets/flowDiagram-v2-34644886-a261f2a2.js @@ -0,0 +1 @@ +import{p as e,f as o}from"./flowDb-fa1288b0-080edacf.js";import{f as t,g as a}from"./styles-0671a096-13891fb5.js";import{aq as s}from"./mermaid.core-d8bc71ff.js";import"./layout-58f7ec6d.js";import"./index-f9462f3f-9287aadd.js";import"./edges-f15a7e05-a8484ad2.js";import"./createText-80c3befb-7196e989.js";import"./line-e21175d5.js";import"./array-9f3ba611.js";import"./path-53f90ab3.js";import"./app-d2f9e1e0.js";const u={parser:e,db:o,renderer:t,styles:a,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}; diff --git a/assets/flowchart-elk-definition-b487ab79-36230ddc.js b/assets/flowchart-elk-definition-b487ab79-36230ddc.js new file mode 100644 index 000000000..c870db6ed --- /dev/null +++ b/assets/flowchart-elk-definition-b487ab79-36230ddc.js @@ -0,0 +1,139 @@ +import{d as bMe,p as wMe}from"./flowDb-fa1288b0-080edacf.js";import{aC as Hee,aD as gMe,l as K1,h as lI,c as OH,t as pMe,p as V1n,r as X1n,o as IH,j as vMe}from"./mermaid.core-d8bc71ff.js";import{i as mMe,a as kMe,l as yMe,b as jMe,j as EMe}from"./edges-f15a7e05-a8484ad2.js";import{l as CMe}from"./line-e21175d5.js";import"./app-d2f9e1e0.js";import"./createText-80c3befb-7196e989.js";import"./array-9f3ba611.js";import"./path-53f90ab3.js";function PH(Ae){throw new Error('Could not dynamically require "'+Ae+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Uee={exports:{}};(function(Ae,At){(function(ft){Ae.exports=ft()})(function(){return function(){function ft(wt,Vt,Et){function y(Bt,qt){if(!Vt[Bt]){if(!wt[Bt]){var Ge=typeof PH=="function"&&PH;if(!qt&&Ge)return Ge(Bt,!0);if(Ht)return Ht(Bt,!0);var Ki=new Error("Cannot find module '"+Bt+"'");throw Ki.code="MODULE_NOT_FOUND",Ki}var Ii=Vt[Bt]={exports:{}};wt[Bt][0].call(Ii.exports,function(An){var Uc=wt[Bt][1][An];return y(Uc||An)},Ii,Ii.exports,ft,wt,Vt,Et)}return Vt[Bt].exports}for(var Ht=typeof PH=="function"&&PH,Lc=0;Lc0&&arguments[0]!==void 0?arguments[0]:{},Ki=Ge.defaultLayoutOptions,Ii=Ki===void 0?{}:Ki,An=Ge.algorithms,Uc=An===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:An,Nc=Ge.workerFactory,ju=Ge.workerUrl;if(y(this,Bt),this.defaultLayoutOptions=Ii,this.initialized=!1,typeof ju>"u"&&typeof Nc>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var vr=Nc;typeof ju<"u"&&typeof Nc>"u"&&(vr=function(q1){return new Worker(q1)});var Jo=vr(ju);if(typeof Jo.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new Lc(Jo),this.worker.postMessage({cmd:"register",algorithms:Uc}).then(function(H1){return qt.initialized=!0}).catch(console.err)}return Et(Bt,[{key:"layout",value:function(Ge){var Ki=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ii=Ki.layoutOptions,An=Ii===void 0?this.defaultLayoutOptions:Ii,Uc=Ki.logging,Nc=Uc===void 0?!1:Uc,ju=Ki.measureExecutionTime,vr=ju===void 0?!1:ju;return Ge?this.worker.postMessage({cmd:"layout",graph:Ge,layoutOptions:An,options:{logging:Nc,measureExecutionTime:vr}}):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()}}]),Bt}();Vt.default=Ht;var Lc=function(){function Bt(qt){var Ge=this;if(y(this,Bt),qt===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=qt,this.worker.onmessage=function(Ki){setTimeout(function(){Ge.receive(Ge,Ki)},0)}}return Et(Bt,[{key:"postMessage",value:function(Ge){var Ki=this.id||0;this.id=Ki+1,Ge.id=Ki;var Ii=this;return new Promise(function(An,Uc){Ii.resolvers[Ki]=function(Nc,ju){Nc?(Ii.convertGwtStyleError(Nc),Uc(Nc)):An(ju)},Ii.worker.postMessage(Ge)})}},{key:"receive",value:function(Ge,Ki){var Ii=Ki.data,An=Ge.resolvers[Ii.id];An&&(delete Ge.resolvers[Ii.id],Ii.error?An(Ii.error):An(null,Ii.data))}},{key:"terminate",value:function(){this.worker.terminate&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(Ge){if(Ge){var Ki=Ge.__java$exception;Ki&&(Ki.cause&&Ki.cause.backingJsObject&&(Ge.cause=Ki.cause.backingJsObject,this.convertGwtStyleError(Ge.cause)),delete Ge.__java$exception)}}}]),Bt}()},{}],2:[function(ft,wt,Vt){(function(Et){(function(){var y;typeof window<"u"?y=window:typeof Et<"u"?y=Et:typeof self<"u"&&(y=self);var Ht;function Lc(){}function Bt(){}function qt(){}function Ge(){}function Ki(){}function Ii(){}function An(){}function Uc(){}function Nc(){}function ju(){}function vr(){}function Jo(){}function H1(){}function q1(){}function ww(){}function Np(){}function G1(){}function Th(){}function Q1n(){}function J1n(){}function zy(){}function Y1n(){}function Z1n(){}function nln(){}function eln(){}function Xg(){}function N(){}function tln(){}function aI(){}function iln(){}function rln(){}function cln(){}function uln(){}function DH(){}function sln(){}function oln(){}function fln(){}function z1(){}function U1(){}function dI(){}function hln(){}function lln(){}function aln(){}function $H(){}function dln(){}function bln(){}function Vg(){}function Qg(){}function wln(){}function gln(){}function pln(){}function vln(){}function FH(){}function W1(){}function Jg(){}function Yg(){}function mln(){}function Vee(){}function bI(){}function kln(){}function yln(){}function jln(){}function Eln(){}function Cln(){}function Tln(){}function Mln(){}function Aln(){}function Sln(){}function Pln(){}function Iln(){}function Oln(){}function Dln(){}function $ln(){}function Fln(){}function xln(){}function Lln(){}function Nln(){}function Bln(){}function Rln(){}function _ln(){}function Kln(){}function Hln(){}function qln(){}function Gln(){}function zln(){}function Uln(){}function Wln(){}function Xln(){}function Vln(){}function Qln(){}function Jln(){}function Yln(){}function xH(){}function Zln(){}function nan(){}function ean(){}function tan(){}function wI(){}function gI(){}function Uy(){}function ian(){}function ran(){}function pI(){}function can(){}function uan(){}function san(){}function Wy(){}function oan(){}function fan(){}function han(){}function lan(){}function aan(){}function dan(){}function ban(){}function wan(){}function gan(){}function LH(){}function pan(){}function van(){}function man(){}function kan(){}function yan(){}function NH(){}function jan(){}function Ean(){}function Can(){}function Tan(){}function Man(){}function Aan(){}function San(){}function Pan(){}function Ian(){}function Oan(){}function Dan(){}function $an(){}function Fan(){}function xan(){}function vI(){}function Lan(){}function Nan(){}function Ban(){}function Ran(){}function _an(){}function BH(){}function Kan(){}function Han(){}function qan(){}function Gan(){}function zan(){}function Uan(){}function Wan(){}function Xan(){}function Van(){}function Qan(){}function Jan(){}function Yan(){}function Zan(){}function ndn(){}function edn(){}function tdn(){}function idn(){}function rdn(){}function cdn(){}function udn(){}function sdn(){}function odn(){}function fdn(){}function hdn(){}function ldn(){}function adn(){}function ddn(){}function bdn(){}function wdn(){}function gdn(){}function pdn(){}function vdn(){}function mdn(){}function kdn(){}function ydn(){}function jdn(){}function Edn(){}function Cdn(){}function Tdn(){}function Mdn(){}function Adn(){}function Sdn(){}function Pdn(){}function Idn(){}function Odn(){}function Ddn(){}function $dn(){}function Fdn(){}function xdn(){}function Ldn(){}function Ndn(){}function Bdn(){}function Rdn(){}function _dn(){}function Kdn(){}function Hdn(){}function qdn(){}function Gdn(){}function zdn(){}function Udn(){}function Wdn(){}function Xdn(){}function Vdn(){}function Qdn(){}function Jdn(){}function Ydn(){}function Zdn(){}function n0n(){}function e0n(){}function t0n(){}function i0n(){}function r0n(){}function c0n(){}function u0n(){}function s0n(){}function o0n(){}function f0n(){}function h0n(){}function l0n(){}function a0n(){}function d0n(){}function b0n(){}function w0n(){}function g0n(){}function p0n(){}function v0n(){}function m0n(){}function k0n(){}function y0n(){}function j0n(){}function E0n(){}function C0n(){}function T0n(){}function M0n(){}function A0n(){}function S0n(){}function P0n(){}function I0n(){}function O0n(){}function D0n(){}function RH(){}function $0n(){}function F0n(){}function x0n(){}function L0n(){}function N0n(){}function B0n(){}function R0n(){}function _0n(){}function K0n(){}function H0n(){}function q0n(){}function G0n(){}function z0n(){}function U0n(){}function W0n(){}function X0n(){}function V0n(){}function Q0n(){}function J0n(){}function Y0n(){}function Z0n(){}function nbn(){}function ebn(){}function tbn(){}function ibn(){}function rbn(){}function cbn(){}function ubn(){}function sbn(){}function obn(){}function fbn(){}function hbn(){}function lbn(){}function abn(){}function dbn(){}function bbn(){}function wbn(){}function gbn(){}function pbn(){}function vbn(){}function mbn(){}function kbn(){}function ybn(){}function jbn(){}function Ebn(){}function Cbn(){}function Tbn(){}function Mbn(){}function Abn(){}function Sbn(){}function Pbn(){}function Ibn(){}function Obn(){}function Dbn(){}function $bn(){}function Fbn(){}function xbn(){}function Lbn(){}function Nbn(){}function Bbn(){}function Rbn(){}function _bn(){}function Kbn(){}function Hbn(){}function qbn(){}function Gbn(){}function zbn(){}function _H(){}function Ubn(){}function Wbn(){}function Xbn(){}function Vbn(){}function Qbn(){}function Jbn(){}function Ybn(){}function Zbn(){}function nwn(){}function ewn(){}function twn(){}function iwn(){}function rwn(){}function cwn(){}function uwn(){}function swn(){}function own(){}function fwn(){}function hwn(){}function lwn(){}function KH(){}function awn(){}function dwn(){}function bwn(){}function wwn(){}function gwn(){}function pwn(){}function HH(){}function qH(){}function vwn(){}function GH(){}function zH(){}function mwn(){}function kwn(){}function ywn(){}function jwn(){}function Ewn(){}function Cwn(){}function Twn(){}function Mwn(){}function Awn(){}function UH(){}function Swn(){}function Pwn(){}function Iwn(){}function Own(){}function Dwn(){}function $wn(){}function Fwn(){}function xwn(){}function Lwn(){}function Nwn(){}function Bwn(){}function Rwn(){}function _wn(){}function Kwn(){}function Hwn(){}function qwn(){}function Gwn(){}function zwn(){}function Uwn(){}function Wwn(){}function Xwn(){}function Vwn(){}function Qwn(){}function Jwn(){}function Ywn(){}function Zwn(){}function ngn(){}function egn(){}function tgn(){}function ign(){}function rgn(){}function cgn(){}function ugn(){}function sgn(){}function ogn(){}function fgn(){}function hgn(){}function lgn(){}function agn(){}function dgn(){}function bgn(){}function wgn(){}function ggn(){}function pgn(){}function vgn(){}function mgn(){}function kgn(){}function ygn(){}function jgn(){}function Egn(){}function Cgn(){}function Tgn(){}function Mgn(){}function Agn(){}function Sgn(){}function Pgn(){}function Ign(){}function Ogn(){}function Dgn(){}function $gn(){}function Fgn(){}function xgn(){}function Lgn(){}function Ngn(){}function Bgn(){}function Rgn(){}function _gn(){}function Kgn(){}function mI(){}function kI(){}function yI(){}function Hgn(){}function qgn(){}function Ggn(){}function zgn(){}function Ugn(){}function WH(){}function Wgn(){}function Xgn(){}function Qee(){}function Vgn(){}function Qgn(){}function Jgn(){}function Ygn(){}function Zgn(){}function n2n(){}function e2n(){}function Zl(){}function t2n(){}function Zg(){}function XH(){}function i2n(){}function r2n(){}function c2n(){}function u2n(){}function s2n(){}function o2n(){}function f2n(){}function h2n(){}function l2n(){}function a2n(){}function d2n(){}function b2n(){}function w2n(){}function g2n(){}function p2n(){}function v2n(){}function m2n(){}function k2n(){}function y2n(){}function j2n(){}function E2n(){}function dn(){}function C2n(){}function T2n(){}function M2n(){}function A2n(){}function S2n(){}function P2n(){}function I2n(){}function O2n(){}function D2n(){}function $2n(){}function jI(){}function F2n(){}function x2n(){}function L2n(){}function N2n(){}function B2n(){}function VH(){}function Xy(){}function Vy(){}function R2n(){}function QH(){}function Qy(){}function _2n(){}function K2n(){}function H2n(){}function q2n(){}function G2n(){}function z2n(){}function Jy(){}function U2n(){}function W2n(){}function X2n(){}function Yy(){}function V2n(){}function JH(){}function Q2n(){}function EI(){}function YH(){}function J2n(){}function Y2n(){}function Z2n(){}function npn(){}function Jee(){}function epn(){}function tpn(){}function ipn(){}function rpn(){}function cpn(){}function upn(){}function spn(){}function opn(){}function fpn(){}function hpn(){}function Bp(){}function CI(){}function lpn(){}function apn(){}function dpn(){}function bpn(){}function wpn(){}function gpn(){}function ppn(){}function vpn(){}function mpn(){}function kpn(){}function ypn(){}function jpn(){}function Epn(){}function Cpn(){}function Tpn(){}function Mpn(){}function Apn(){}function Spn(){}function Ppn(){}function Ipn(){}function Opn(){}function Dpn(){}function $pn(){}function Fpn(){}function xpn(){}function Lpn(){}function Npn(){}function Bpn(){}function Rpn(){}function _pn(){}function Kpn(){}function Hpn(){}function qpn(){}function Gpn(){}function zpn(){}function Upn(){}function Wpn(){}function Xpn(){}function Vpn(){}function Qpn(){}function Jpn(){}function Ypn(){}function Zpn(){}function n3n(){}function e3n(){}function t3n(){}function i3n(){}function r3n(){}function c3n(){}function u3n(){}function s3n(){}function o3n(){}function f3n(){}function h3n(){}function l3n(){}function a3n(){}function d3n(){}function b3n(){}function w3n(){}function g3n(){}function p3n(){}function v3n(){}function m3n(){}function k3n(){}function y3n(){}function j3n(){}function E3n(){}function C3n(){}function T3n(){}function M3n(){}function A3n(){}function S3n(){}function P3n(){}function I3n(){}function O3n(){}function D3n(){}function $3n(){}function F3n(){}function x3n(){}function L3n(){}function N3n(){}function B3n(){}function R3n(){}function _3n(){}function K3n(){}function H3n(){}function q3n(){}function G3n(){}function z3n(){}function U3n(){}function W3n(){}function X3n(){}function V3n(){}function Q3n(){}function J3n(){}function Y3n(){}function Z3n(){}function n4n(){}function e4n(){}function t4n(){}function i4n(){}function ZH(){}function r4n(){}function c4n(){}function TI(){Rv()}function u4n(){pF()}function s4n(){a6()}function o4n(){WT()}function f4n(){YJ()}function h4n(){Go()}function l4n(){fJ()}function a4n(){C7()}function d4n(){q9()}function b4n(){H9()}function w4n(){w8()}function g4n(){v7n()}function p4n(){x2()}function v4n(){Sj()}function m4n(){PSn()}function k4n(){HIn()}function y4n(){sPn()}function j4n(){CMn()}function E4n(){V3()}function C4n(){yl()}function T4n(){qIn()}function M4n(){pAn()}function A4n(){zZ()}function S4n(){IFn()}function P4n(){TMn()}function I4n(){nn()}function O4n(){EMn()}function D4n(){GIn()}function $4n(){WOn()}function F4n(){AMn()}function x4n(){aPn()}function L4n(){m7n()}function N4n(){$Y()}function B4n(){gb()}function R4n(){pOn()}function _4n(){S7()}function K4n(){Ux()}function H4n(){ZF()}function q4n(){Zd()}function G4n(){PV()}function z4n(){MMn()}function U4n(){BBn()}function W4n(){IY()}function X4n(){Bx()}function V4n(){DC()}function Q4n(){nM()}function nq(){Xe()}function J4n(){wT()}function Y4n(){NQ()}function eq(){mM()}function Fo(){dEn()}function tq(){eF()}function Z4n(){pZ()}function iq(n){_n(n)}function nvn(n){this.a=n}function Zy(n){this.a=n}function evn(n){this.a=n}function tvn(n){this.a=n}function ivn(n){this.a=n}function rvn(n){this.a=n}function cvn(n){this.a=n}function uvn(n){this.a=n}function rq(n){this.a=n}function cq(n){this.a=n}function svn(n){this.a=n}function MI(n){this.a=n}function ovn(n){this.a=n}function AI(n){this.a=n}function fvn(n){this.a=n}function SI(n){this.a=n}function hvn(n){this.a=n}function PI(n){this.a=n}function lvn(n){this.a=n}function avn(n){this.a=n}function dvn(n){this.a=n}function uq(n){this.b=n}function bvn(n){this.c=n}function wvn(n){this.a=n}function gvn(n){this.a=n}function pvn(n){this.a=n}function vvn(n){this.a=n}function mvn(n){this.a=n}function kvn(n){this.a=n}function yvn(n){this.a=n}function jvn(n){this.a=n}function Evn(n){this.a=n}function Cvn(n){this.a=n}function Tvn(n){this.a=n}function Mvn(n){this.a=n}function Avn(n){this.a=n}function sq(n){this.a=n}function oq(n){this.a=n}function nj(n){this.a=n}function M9(n){this.a=n}function na(){this.a=[]}function Svn(n,e){n.a=e}function Yee(n,e){n.a=e}function Zee(n,e){n.b=e}function nte(n,e){n.b=e}function ete(n,e){n.b=e}function fq(n,e){n.j=e}function tte(n,e){n.g=e}function ite(n,e){n.i=e}function rte(n,e){n.c=e}function cte(n,e){n.d=e}function ute(n,e){n.d=e}function ste(n,e){n.c=e}function ea(n,e){n.k=e}function ote(n,e){n.c=e}function hq(n,e){n.c=e}function lq(n,e){n.a=e}function fte(n,e){n.a=e}function hte(n,e){n.f=e}function lte(n,e){n.a=e}function ate(n,e){n.b=e}function II(n,e){n.d=e}function ej(n,e){n.i=e}function aq(n,e){n.o=e}function dte(n,e){n.r=e}function bte(n,e){n.a=e}function wte(n,e){n.b=e}function Pvn(n,e){n.e=e}function gte(n,e){n.f=e}function dq(n,e){n.g=e}function pte(n,e){n.e=e}function vte(n,e){n.f=e}function mte(n,e){n.f=e}function kte(n,e){n.n=e}function yte(n,e){n.a=e}function jte(n,e){n.a=e}function Ete(n,e){n.c=e}function Cte(n,e){n.c=e}function Tte(n,e){n.d=e}function Mte(n,e){n.e=e}function Ate(n,e){n.g=e}function Ste(n,e){n.a=e}function Pte(n,e){n.c=e}function Ite(n,e){n.d=e}function Ote(n,e){n.e=e}function Dte(n,e){n.f=e}function $te(n,e){n.j=e}function Fte(n,e){n.a=e}function xte(n,e){n.b=e}function Lte(n,e){n.a=e}function Ivn(n){n.b=n.a}function Ovn(n){n.c=n.d.d}function $v(n){this.d=n}function ta(n){this.a=n}function Rp(n){this.a=n}function bq(n){this.a=n}function Mh(n){this.a=n}function A9(n){this.a=n}function Dvn(n){this.a=n}function wq(n){this.a=n}function S9(n){this.a=n}function gq(n){this.a=n}function pq(n){this.a=n}function vq(n){this.a=n}function L0(n){this.a=n}function P9(n){this.a=n}function I9(n){this.a=n}function mq(n){this.b=n}function _p(n){this.b=n}function Kp(n){this.b=n}function OI(n){this.a=n}function $vn(n){this.a=n}function kq(n){this.a=n}function DI(n){this.c=n}function E(n){this.c=n}function Fvn(n){this.c=n}function yq(n){this.a=n}function jq(n){this.a=n}function Eq(n){this.a=n}function Cq(n){this.a=n}function ut(n){this.a=n}function xvn(n){this.a=n}function Tq(n){this.a=n}function Mq(n){this.a=n}function Lvn(n){this.a=n}function Nvn(n){this.a=n}function Fv(n){this.a=n}function Bvn(n){this.a=n}function Rvn(n){this.a=n}function _vn(n){this.a=n}function Kvn(n){this.a=n}function Hvn(n){this.a=n}function qvn(n){this.a=n}function Gvn(n){this.a=n}function zvn(n){this.a=n}function Uvn(n){this.a=n}function Wvn(n){this.a=n}function Xvn(n){this.a=n}function Vvn(n){this.a=n}function Qvn(n){this.a=n}function Jvn(n){this.a=n}function Yvn(n){this.a=n}function Zvn(n){this.a=n}function n5n(n){this.a=n}function O9(n){this.a=n}function e5n(n){this.a=n}function t5n(n){this.a=n}function tj(n){this.a=n}function i5n(n){this.a=n}function r5n(n){this.a=n}function Hp(n){this.a=n}function Aq(n){this.a=n}function c5n(n){this.a=n}function u5n(n){this.a=n}function s5n(n){this.a=n}function o5n(n){this.a=n}function f5n(n){this.a=n}function Sq(n){this.a=n}function Pq(n){this.a=n}function Iq(n){this.a=n}function ij(n){this.a=n}function rj(n){this.e=n}function qp(n){this.a=n}function h5n(n){this.a=n}function n2(n){this.a=n}function Oq(n){this.a=n}function l5n(n){this.a=n}function a5n(n){this.a=n}function d5n(n){this.a=n}function b5n(n){this.a=n}function w5n(n){this.a=n}function g5n(n){this.a=n}function p5n(n){this.a=n}function v5n(n){this.a=n}function m5n(n){this.a=n}function k5n(n){this.a=n}function y5n(n){this.a=n}function Dq(n){this.a=n}function j5n(n){this.a=n}function E5n(n){this.a=n}function C5n(n){this.a=n}function T5n(n){this.a=n}function M5n(n){this.a=n}function A5n(n){this.a=n}function S5n(n){this.a=n}function P5n(n){this.a=n}function I5n(n){this.a=n}function O5n(n){this.a=n}function D5n(n){this.a=n}function $5n(n){this.a=n}function F5n(n){this.a=n}function x5n(n){this.a=n}function L5n(n){this.a=n}function N5n(n){this.a=n}function B5n(n){this.a=n}function R5n(n){this.a=n}function _5n(n){this.a=n}function K5n(n){this.a=n}function H5n(n){this.a=n}function q5n(n){this.a=n}function G5n(n){this.a=n}function z5n(n){this.a=n}function U5n(n){this.a=n}function W5n(n){this.a=n}function X5n(n){this.a=n}function V5n(n){this.a=n}function Q5n(n){this.a=n}function J5n(n){this.a=n}function Y5n(n){this.a=n}function Z5n(n){this.a=n}function n6n(n){this.a=n}function e6n(n){this.a=n}function t6n(n){this.a=n}function i6n(n){this.a=n}function r6n(n){this.a=n}function c6n(n){this.c=n}function u6n(n){this.b=n}function s6n(n){this.a=n}function o6n(n){this.a=n}function f6n(n){this.a=n}function h6n(n){this.a=n}function l6n(n){this.a=n}function a6n(n){this.a=n}function d6n(n){this.a=n}function b6n(n){this.a=n}function w6n(n){this.a=n}function g6n(n){this.a=n}function p6n(n){this.a=n}function v6n(n){this.a=n}function m6n(n){this.a=n}function k6n(n){this.a=n}function y6n(n){this.a=n}function j6n(n){this.a=n}function E6n(n){this.a=n}function C6n(n){this.a=n}function T6n(n){this.a=n}function M6n(n){this.a=n}function A6n(n){this.a=n}function S6n(n){this.a=n}function P6n(n){this.a=n}function I6n(n){this.a=n}function X1(n){this.a=n}function e2(n){this.a=n}function O6n(n){this.a=n}function D6n(n){this.a=n}function $6n(n){this.a=n}function F6n(n){this.a=n}function x6n(n){this.a=n}function L6n(n){this.a=n}function N6n(n){this.a=n}function B6n(n){this.a=n}function R6n(n){this.a=n}function _6n(n){this.a=n}function K6n(n){this.a=n}function H6n(n){this.a=n}function q6n(n){this.a=n}function G6n(n){this.a=n}function z6n(n){this.a=n}function U6n(n){this.a=n}function cj(n){this.a=n}function W6n(n){this.a=n}function X6n(n){this.a=n}function V6n(n){this.a=n}function Q6n(n){this.a=n}function J6n(n){this.a=n}function Y6n(n){this.a=n}function Z6n(n){this.a=n}function nmn(n){this.a=n}function emn(n){this.a=n}function tmn(n){this.a=n}function imn(n){this.a=n}function rmn(n){this.a=n}function cmn(n){this.a=n}function umn(n){this.a=n}function smn(n){this.a=n}function omn(n){this.a=n}function fmn(n){this.a=n}function hmn(n){this.a=n}function lmn(n){this.a=n}function amn(n){this.a=n}function dmn(n){this.a=n}function bmn(n){this.a=n}function wmn(n){this.a=n}function gmn(n){this.a=n}function pmn(n){this.a=n}function vmn(n){this.a=n}function mmn(n){this.a=n}function kmn(n){this.a=n}function $q(n){this.a=n}function kt(n){this.b=n}function ymn(n){this.f=n}function Fq(n){this.a=n}function jmn(n){this.a=n}function Emn(n){this.a=n}function Cmn(n){this.a=n}function Tmn(n){this.a=n}function Mmn(n){this.a=n}function Amn(n){this.a=n}function Smn(n){this.a=n}function Pmn(n){this.a=n}function D9(n){this.a=n}function Imn(n){this.a=n}function Omn(n){this.b=n}function xq(n){this.c=n}function uj(n){this.e=n}function Dmn(n){this.a=n}function sj(n){this.a=n}function oj(n){this.a=n}function $I(n){this.a=n}function $mn(n){this.a=n}function Fmn(n){this.d=n}function Lq(n){this.a=n}function Nq(n){this.a=n}function cd(n){this.e=n}function Nte(){this.a=0}function gw(){dyn(this)}function X(){RO(this)}function we(){Cu(this)}function FI(){pTn(this)}function xmn(){}function ud(){this.c=p1n}function Bte(n,e){e.Wb(n)}function Lmn(n,e){n.b+=e}function Nmn(n){n.b=new JI}function T(n){return n.e}function Rte(n){return n.a}function _te(n){return n.a}function Kte(n){return n.a}function Hte(n){return n.a}function qte(n){return n.a}function Gte(){return null}function zte(){return null}function Ute(){EG(),iTe()}function Wte(n){n.b.tf(n.e)}function xv(n,e){n.b=e-n.b}function Lv(n,e){n.a=e-n.a}function Bmn(n,e){e.ad(n.a)}function Xte(n,e){si(e,n)}function Vte(n,e,t){n.Od(t,e)}function $9(n,e){n.e=e,e.b=n}function Bq(n){$f(),this.a=n}function Rmn(n){$f(),this.a=n}function _mn(n){$f(),this.a=n}function Rq(n){nb(),this.a=n}function Kmn(n){k3(),aR.be(n)}function ia(){Qyn.call(this)}function _q(){Qyn.call(this)}function Kq(){ia.call(this)}function xI(){ia.call(this)}function Hmn(){ia.call(this)}function F9(){ia.call(this)}function fu(){ia.call(this)}function Nv(){ia.call(this)}function ye(){ia.call(this)}function vs(){ia.call(this)}function qmn(){ia.call(this)}function ic(){ia.call(this)}function Gmn(){ia.call(this)}function zmn(){this.a=this}function fj(){this.Bb|=256}function Umn(){this.b=new Xkn}function Hq(){Hq=N,new we}function qq(){Kq.call(this)}function Wmn(n,e){n.length=e}function hj(n,e){W(n.a,e)}function Qte(n,e){nY(n.c,e)}function Jte(n,e){ci(n.b,e)}function Yte(n,e){KT(n.a,e)}function Zte(n,e){MF(n.a,e)}function Gp(n,e){et(n.e,e)}function t2(n){iM(n.c,n.b)}function nie(n,e){n.kc().Nb(e)}function Gq(n){this.a=Yge(n)}function hi(){this.a=new we}function Xmn(){this.a=new we}function lj(){this.a=new X}function LI(){this.a=new X}function zq(){this.a=new X}function Ns(){this.a=new Oln}function ra(){this.a=new TSn}function Uq(){this.a=new LH}function Wq(){this.a=new h7n}function Vmn(){this.a=new YMn}function Xq(){this.a=new bMn}function Vq(){this.a=new Bjn}function Qmn(){this.a=new X}function Qq(){this.a=new X}function Jmn(){this.a=new X}function Ymn(){this.a=new X}function Zmn(){this.d=new X}function n9n(){this.a=new hi}function e9n(){this.a=new we}function t9n(){this.b=new we}function i9n(){this.b=new X}function Jq(){this.e=new X}function r9n(){this.d=new X}function c9n(){this.a=new C4n}function u9n(){X.call(this)}function Yq(){lj.call(this)}function s9n(){kE.call(this)}function o9n(){Qq.call(this)}function NI(){Bv.call(this)}function Bv(){xmn.call(this)}function i2(){xmn.call(this)}function Zq(){i2.call(this)}function f9n(){zTn.call(this)}function h9n(){zTn.call(this)}function l9n(){uG.call(this)}function a9n(){uG.call(this)}function d9n(){uG.call(this)}function b9n(){sG.call(this)}function hu(){Tt.call(this)}function nG(){B2n.call(this)}function eG(){B2n.call(this)}function w9n(){O9n.call(this)}function g9n(){O9n.call(this)}function p9n(){we.call(this)}function v9n(){we.call(this)}function m9n(){we.call(this)}function k9n(){hi.call(this)}function BI(){RIn.call(this)}function y9n(){fj.call(this)}function RI(){Oz.call(this)}function _I(){Oz.call(this)}function tG(){we.call(this)}function KI(){we.call(this)}function j9n(){we.call(this)}function iG(){Yy.call(this)}function E9n(){Yy.call(this)}function C9n(){iG.call(this)}function T9n(){ZH.call(this)}function M9n(n){hIn.call(this,n)}function A9n(n){hIn.call(this,n)}function rG(n){rq.call(this,n)}function cG(n){n7n.call(this,n)}function eie(n){cG.call(this,n)}function tie(n){n7n.call(this,n)}function zp(){this.a=new Tt}function uG(){this.a=new hi}function sG(){this.a=new we}function S9n(){this.a=new X}function P9n(){this.j=new X}function oG(){this.a=new Rgn}function I9n(){this.a=new T8n}function O9n(){this.a=new X2n}function HI(){HI=N,uR=new V9n}function qI(){qI=N,cR=new X9n}function Rv(){Rv=N,rR=new Bt}function aj(){aj=N,fR=new Xyn}function iie(n){cG.call(this,n)}function rie(n){cG.call(this,n)}function D9n(n){m$.call(this,n)}function $9n(n){m$.call(this,n)}function F9n(n){uEn.call(this,n)}function GI(n){C5e.call(this,n)}function sd(n){_0.call(this,n)}function _v(n){Cj.call(this,n)}function fG(n){Cj.call(this,n)}function x9n(n){Cj.call(this,n)}function _r(n){kCn.call(this,n)}function L9n(n){_r.call(this,n)}function r2(){M9.call(this,{})}function dj(n){c3(),this.a=n}function Kv(n){n.b=null,n.c=0}function cie(n,e){n.e=e,NNn(n,e)}function uie(n,e){n.a=e,h6e(n)}function zI(n,e,t){n.a[e.g]=t}function sie(n,e,t){M4e(t,n,e)}function oie(n,e){$ue(e.i,n.n)}function N9n(n,e){Fwe(n).td(e)}function fie(n,e){return n*n/e}function B9n(n,e){return n.g-e.g}function hie(n){return new nj(n)}function lie(n){return new Z0(n)}function bj(n){_r.call(this,n)}function mr(n){_r.call(this,n)}function R9n(n){_r.call(this,n)}function UI(n){kCn.call(this,n)}function WI(n){AV(),this.a=n}function _9n(n){aEn(),this.a=n}function N0(n){ED(),this.f=n}function XI(n){ED(),this.f=n}function Up(n){_r.call(this,n)}function Hn(n){_r.call(this,n)}function $r(n){_r.call(this,n)}function K9n(n){_r.call(this,n)}function c2(n){_r.call(this,n)}function on(n){return _n(n),n}function K(n){return _n(n),n}function x9(n){return _n(n),n}function hG(n){return _n(n),n}function aie(n){return _n(n),n}function Hv(n){return n.b==n.c}function B0(n){return!!n&&n.b}function die(n){return!!n&&n.k}function bie(n){return!!n&&n.j}function Hu(n){_n(n),this.a=n}function lG(n){return ja(n),n}function qv(n){EW(n,n.length)}function t1(n){_r.call(this,n)}function Sf(n){_r.call(this,n)}function VI(n){_r.call(this,n)}function pw(n){_r.call(this,n)}function Gv(n){_r.call(this,n)}function Ee(n){_r.call(this,n)}function QI(n){Vz.call(this,n,0)}function JI(){iX.call(this,12,3)}function aG(){aG=N,din=new Q1n}function H9n(){H9n=N,ain=new Lc}function wj(){wj=N,dm=new H1}function q9n(){q9n=N,vzn=new ww}function G9n(){throw T(new ye)}function dG(){throw T(new ye)}function z9n(){throw T(new ye)}function wie(){throw T(new ye)}function gie(){throw T(new ye)}function pie(){throw T(new ye)}function YI(){this.a=Ce(pe(Ji))}function u2(n){$f(),this.a=pe(n)}function U9n(n,e){n.Td(e),e.Sd(n)}function vie(n,e){n.a.ec().Mc(e)}function mie(n,e,t){n.c.lf(e,t)}function bG(n){mr.call(this,n)}function Pf(n){Hn.call(this,n)}function i1(){A9.call(this,"")}function zv(){A9.call(this,"")}function V1(){A9.call(this,"")}function R0(){A9.call(this,"")}function wG(n){mr.call(this,n)}function Wp(n){_p.call(this,n)}function ZI(n){lE.call(this,n)}function W9n(n){Wp.call(this,n)}function X9n(){AI.call(this,null)}function V9n(){AI.call(this,null)}function gj(){gj=N,k3()}function Q9n(){Q9n=N,Szn=Z4e()}function J9n(n){return n.a?n.b:0}function kie(n){return n.a?n.b:0}function yie(n,e){return n.a-e.a}function jie(n,e){return n.a-e.a}function Eie(n,e){return n.a-e.a}function pj(n,e){return WX(n,e)}function M(n,e){return pMn(n,e)}function Cie(n,e){return e in n.a}function Y9n(n,e){return n.f=e,n}function Tie(n,e){return n.b=e,n}function Z9n(n,e){return n.c=e,n}function Mie(n,e){return n.g=e,n}function gG(n,e){return n.a=e,n}function pG(n,e){return n.f=e,n}function Aie(n,e){return n.k=e,n}function vG(n,e){return n.a=e,n}function Sie(n,e){return n.e=e,n}function mG(n,e){return n.e=e,n}function Pie(n,e){return n.f=e,n}function Iie(n,e){n.b=!0,n.d=e}function Oie(n,e){n.b=new kr(e)}function Die(n,e,t){e.td(n.a[t])}function $ie(n,e,t){e.we(n.a[t])}function Fie(n,e){return n.b-e.b}function xie(n,e){return n.g-e.g}function Lie(n,e){return n.s-e.s}function Nie(n,e){return n?0:e-1}function n8n(n,e){return n?0:e-1}function Bie(n,e){return n?e-1:0}function Rie(n,e){return e.Yf(n)}function od(n,e){return n.b=e,n}function vj(n,e){return n.a=e,n}function fd(n,e){return n.c=e,n}function hd(n,e){return n.d=e,n}function ld(n,e){return n.e=e,n}function kG(n,e){return n.f=e,n}function Uv(n,e){return n.a=e,n}function Xp(n,e){return n.b=e,n}function Vp(n,e){return n.c=e,n}function gn(n,e){return n.c=e,n}function Dn(n,e){return n.b=e,n}function pn(n,e){return n.d=e,n}function vn(n,e){return n.e=e,n}function _ie(n,e){return n.f=e,n}function mn(n,e){return n.g=e,n}function kn(n,e){return n.a=e,n}function yn(n,e){return n.i=e,n}function jn(n,e){return n.j=e,n}function e8n(n,e){return n.k=e,n}function Kie(n,e){return n.j=e,n}function Hie(n,e){yl(),Hr(e,n)}function qie(n,e,t){Nfe(n.a,e,t)}function t8n(n){mTn.call(this,n)}function yG(n){mTn.call(this,n)}function mj(n){uD.call(this,n)}function i8n(n){u2e.call(this,n)}function Q1(n){Ld.call(this,n)}function r8n(n){XD.call(this,n)}function c8n(n){XD.call(this,n)}function u8n(){Mz.call(this,"")}function Li(){this.a=0,this.b=0}function s8n(){this.b=0,this.a=0}function o8n(n,e){n.b=0,hb(n,e)}function Gie(n,e){n.c=e,n.b=!0}function f8n(n,e){return n.c._b(e)}function xo(n){return n.e&&n.e()}function nO(n){return n?n.d:null}function h8n(n,e){return LDn(n.b,e)}function zie(n){return n?n.g:null}function Uie(n){return n?n.i:null}function J1(n){return Ph(n),n.o}function ad(){ad=N,Mne=h4e()}function l8n(){l8n=N,mi=jve()}function Qp(){Qp=N,g1n=a4e()}function a8n(){a8n=N,hee=l4e()}function jG(){jG=N,oc=s6e()}function EG(){EG=N,Wl=N3()}function d8n(){throw T(new ye)}function b8n(){throw T(new ye)}function w8n(){throw T(new ye)}function g8n(){throw T(new ye)}function p8n(){throw T(new ye)}function v8n(){throw T(new ye)}function kj(n){this.a=new s2(n)}function CG(n){d_n(),gTe(this,n)}function Y1(n){this.a=new AD(n)}function vw(n,e){for(;n.ye(e););}function TG(n,e){for(;n.sd(e););}function mw(n,e){return n.a+=e,n}function eO(n,e){return n.a+=e,n}function r1(n,e){return n.a+=e,n}function dd(n,e){return n.a+=e,n}function Wv(n){return fl(n),n.a}function yj(n){return n.b!=n.d.c}function m8n(n){return n.l|n.m<<22}function MG(n,e){return n.d[e.p]}function k8n(n,e){return Q8e(n,e)}function AG(n,e,t){n.splice(e,t)}function y8n(n){n.c?rBn(n):cBn(n)}function jj(n){this.a=0,this.b=n}function j8n(){this.a=new B7(Pon)}function E8n(){this.b=new B7(won)}function C8n(){this.b=new B7(OK)}function T8n(){this.b=new B7(OK)}function M8n(){throw T(new ye)}function A8n(){throw T(new ye)}function S8n(){throw T(new ye)}function P8n(){throw T(new ye)}function I8n(){throw T(new ye)}function O8n(){throw T(new ye)}function D8n(){throw T(new ye)}function $8n(){throw T(new ye)}function F8n(){throw T(new ye)}function x8n(){throw T(new ye)}function Wie(){throw T(new ic)}function Xie(){throw T(new ic)}function L9(n){this.a=new L8n(n)}function L8n(n){cbe(this,n,cve())}function N9(n){return!n||iTn(n)}function B9(n){return Mf[n]!=-1}function Vie(){_A!=0&&(_A=0),KA=-1}function N8n(){iR==null&&(iR=[])}function Qie(n,e){$x(R(n.a),e)}function Jie(n,e){$x(R(n.a),e)}function R9(n,e){Sw.call(this,n,e)}function Jp(n,e){R9.call(this,n,e)}function SG(n,e){this.b=n,this.c=e}function B8n(n,e){this.b=n,this.a=e}function R8n(n,e){this.a=n,this.b=e}function _8n(n,e){this.a=n,this.b=e}function K8n(n,e){this.a=n,this.b=e}function H8n(n,e){this.a=n,this.b=e}function q8n(n,e){this.a=n,this.b=e}function G8n(n,e){this.a=n,this.b=e}function z8n(n,e){this.a=n,this.b=e}function U8n(n,e){this.a=n,this.b=e}function W8n(n,e){this.b=n,this.a=e}function X8n(n,e){this.b=n,this.a=e}function V8n(n,e){this.b=n,this.a=e}function Q8n(n,e){this.b=n,this.a=e}function Oe(n,e){this.f=n,this.g=e}function Yp(n,e){this.e=n,this.d=e}function bd(n,e){this.g=n,this.i=e}function tO(n,e){this.a=n,this.b=e}function J8n(n,e){this.a=n,this.f=e}function Y8n(n,e){this.b=n,this.c=e}function Yie(n,e){this.a=n,this.b=e}function Z8n(n,e){this.a=n,this.b=e}function iO(n,e){this.a=n,this.b=e}function n7n(n){Bz(n.dc()),this.c=n}function Ej(n){this.b=u(pe(n),83)}function e7n(n){this.a=u(pe(n),83)}function _0(n){this.a=u(pe(n),15)}function t7n(n){this.a=u(pe(n),15)}function Cj(n){this.b=u(pe(n),47)}function Tj(){this.q=new y.Date}function nh(){nh=N,Sin=new tln}function Zp(){Zp=N,X4=new nln}function Xv(n){return n.f.c+n.g.c}function _9(n,e){return n.b.Hc(e)}function i7n(n,e){return n.b.Ic(e)}function r7n(n,e){return n.b.Qc(e)}function c7n(n,e){return n.b.Hc(e)}function u7n(n,e){return n.c.uc(e)}function Ah(n,e){return n.a._b(e)}function s7n(n,e){return tt(n.c,e)}function o7n(n,e){return Uu(n.b,e)}function f7n(n,e){return n>e&&e0}function cO(n,e){return fc(n,e)<0}function n5(n,e){return n.a.get(e)}function lre(n,e){return e.split(n)}function S7n(n,e){return Uu(n.e,e)}function LG(n){return _n(n),!1}function xj(n){xn.call(this,n,21)}function are(n,e){cMn.call(this,n,e)}function Lj(n,e){Oe.call(this,n,e)}function uO(n,e){Oe.call(this,n,e)}function NG(n){_D(),uEn.call(this,n)}function BG(n,e){fCn(n,n.length,e)}function z9(n,e){BCn(n,n.length,e)}function dre(n,e,t){e.ud(n.a.Ge(t))}function bre(n,e,t){e.we(n.a.Fe(t))}function wre(n,e,t){e.td(n.a.Kb(t))}function gre(n,e,t){n.Mb(t)&&e.td(t)}function e5(n,e,t){n.splice(e,0,t)}function pre(n,e){return au(n.e,e)}function Nj(n,e){this.d=n,this.e=e}function P7n(n,e){this.b=n,this.a=e}function I7n(n,e){this.b=n,this.a=e}function RG(n,e){this.b=n,this.a=e}function O7n(n,e){this.a=n,this.b=e}function D7n(n,e){this.a=n,this.b=e}function $7n(n,e){this.a=n,this.b=e}function F7n(n,e){this.a=n,this.b=e}function f2(n,e){this.a=n,this.b=e}function _G(n,e){this.b=n,this.a=e}function KG(n,e){this.b=n,this.a=e}function Bj(n,e){Oe.call(this,n,e)}function Rj(n,e){Oe.call(this,n,e)}function HG(n,e){Oe.call(this,n,e)}function qG(n,e){Oe.call(this,n,e)}function kw(n,e){Oe.call(this,n,e)}function sO(n,e){Oe.call(this,n,e)}function oO(n,e){Oe.call(this,n,e)}function fO(n,e){Oe.call(this,n,e)}function _j(n,e){Oe.call(this,n,e)}function GG(n,e){Oe.call(this,n,e)}function hO(n,e){Oe.call(this,n,e)}function U9(n,e){Oe.call(this,n,e)}function Kj(n,e){Oe.call(this,n,e)}function lO(n,e){Oe.call(this,n,e)}function t5(n,e){Oe.call(this,n,e)}function zG(n,e){Oe.call(this,n,e)}function zt(n,e){Oe.call(this,n,e)}function Hj(n,e){Oe.call(this,n,e)}function x7n(n,e){this.a=n,this.b=e}function L7n(n,e){this.a=n,this.b=e}function N7n(n,e){this.a=n,this.b=e}function B7n(n,e){this.a=n,this.b=e}function R7n(n,e){this.a=n,this.b=e}function _7n(n,e){this.a=n,this.b=e}function K7n(n,e){this.a=n,this.b=e}function H7n(n,e){this.a=n,this.b=e}function q7n(n,e){this.a=n,this.b=e}function UG(n,e){this.b=n,this.a=e}function G7n(n,e){this.b=n,this.a=e}function z7n(n,e){this.b=n,this.a=e}function U7n(n,e){this.b=n,this.a=e}function t3(n,e){this.c=n,this.d=e}function W7n(n,e){this.e=n,this.d=e}function X7n(n,e){this.a=n,this.b=e}function V7n(n,e){this.b=e,this.c=n}function qj(n,e){Oe.call(this,n,e)}function W9(n,e){Oe.call(this,n,e)}function aO(n,e){Oe.call(this,n,e)}function i5(n,e){Oe.call(this,n,e)}function WG(n,e){Oe.call(this,n,e)}function dO(n,e){Oe.call(this,n,e)}function bO(n,e){Oe.call(this,n,e)}function X9(n,e){Oe.call(this,n,e)}function XG(n,e){Oe.call(this,n,e)}function wO(n,e){Oe.call(this,n,e)}function r5(n,e){Oe.call(this,n,e)}function VG(n,e){Oe.call(this,n,e)}function c5(n,e){Oe.call(this,n,e)}function u5(n,e){Oe.call(this,n,e)}function H0(n,e){Oe.call(this,n,e)}function gO(n,e){Oe.call(this,n,e)}function pO(n,e){Oe.call(this,n,e)}function QG(n,e){Oe.call(this,n,e)}function s5(n,e){Oe.call(this,n,e)}function vO(n,e){Oe.call(this,n,e)}function Gj(n,e){Oe.call(this,n,e)}function V9(n,e){Oe.call(this,n,e)}function Q9(n,e){Oe.call(this,n,e)}function h2(n,e){Oe.call(this,n,e)}function mO(n,e){Oe.call(this,n,e)}function JG(n,e){Oe.call(this,n,e)}function kO(n,e){Oe.call(this,n,e)}function yO(n,e){Oe.call(this,n,e)}function YG(n,e){Oe.call(this,n,e)}function jO(n,e){Oe.call(this,n,e)}function EO(n,e){Oe.call(this,n,e)}function CO(n,e){Oe.call(this,n,e)}function TO(n,e){Oe.call(this,n,e)}function ZG(n,e){Oe.call(this,n,e)}function Q7n(n,e){this.b=n,this.a=e}function J7n(n,e){this.a=n,this.b=e}function Y7n(n,e){this.a=n,this.b=e}function Z7n(n,e){this.a=n,this.b=e}function nkn(n,e){this.a=n,this.b=e}function nz(n,e){Oe.call(this,n,e)}function ez(n,e){Oe.call(this,n,e)}function ekn(n,e){this.b=n,this.d=e}function tz(n,e){Oe.call(this,n,e)}function iz(n,e){Oe.call(this,n,e)}function tkn(n,e){this.a=n,this.b=e}function ikn(n,e){this.a=n,this.b=e}function zj(n,e){Oe.call(this,n,e)}function o5(n,e){Oe.call(this,n,e)}function rz(n,e){Oe.call(this,n,e)}function cz(n,e){Oe.call(this,n,e)}function uz(n,e){Oe.call(this,n,e)}function MO(n,e){Oe.call(this,n,e)}function sz(n,e){Oe.call(this,n,e)}function AO(n,e){Oe.call(this,n,e)}function Uj(n,e){Oe.call(this,n,e)}function SO(n,e){Oe.call(this,n,e)}function PO(n,e){Oe.call(this,n,e)}function J9(n,e){Oe.call(this,n,e)}function IO(n,e){Oe.call(this,n,e)}function oz(n,e){Oe.call(this,n,e)}function Y9(n,e){Oe.call(this,n,e)}function fz(n,e){Oe.call(this,n,e)}function vre(n,e){return au(n.c,e)}function mre(n,e){return au(e.b,n)}function kre(n,e){return-n.b.Je(e)}function hz(n,e){return au(n.g,e)}function Z9(n,e){Oe.call(this,n,e)}function l2(n,e){Oe.call(this,n,e)}function rkn(n,e){this.a=n,this.b=e}function ckn(n,e){this.a=n,this.b=e}function fn(n,e){this.a=n,this.b=e}function f5(n,e){Oe.call(this,n,e)}function h5(n,e){Oe.call(this,n,e)}function n8(n,e){Oe.call(this,n,e)}function OO(n,e){Oe.call(this,n,e)}function Wj(n,e){Oe.call(this,n,e)}function l5(n,e){Oe.call(this,n,e)}function DO(n,e){Oe.call(this,n,e)}function Xj(n,e){Oe.call(this,n,e)}function yw(n,e){Oe.call(this,n,e)}function e8(n,e){Oe.call(this,n,e)}function a5(n,e){Oe.call(this,n,e)}function d5(n,e){Oe.call(this,n,e)}function t8(n,e){Oe.call(this,n,e)}function Vj(n,e){Oe.call(this,n,e)}function jw(n,e){Oe.call(this,n,e)}function Qj(n,e){Oe.call(this,n,e)}function ukn(n,e){this.a=n,this.b=e}function skn(n,e){this.a=n,this.b=e}function okn(n,e){this.a=n,this.b=e}function fkn(n,e){this.a=n,this.b=e}function hkn(n,e){this.a=n,this.b=e}function lkn(n,e){this.a=n,this.b=e}function Si(n,e){this.a=n,this.b=e}function Jj(n,e){Oe.call(this,n,e)}function akn(n,e){this.a=n,this.b=e}function dkn(n,e){this.a=n,this.b=e}function bkn(n,e){this.a=n,this.b=e}function wkn(n,e){this.a=n,this.b=e}function gkn(n,e){this.a=n,this.b=e}function pkn(n,e){this.a=n,this.b=e}function vkn(n,e){this.b=n,this.a=e}function mkn(n,e){this.b=n,this.a=e}function kkn(n,e){this.b=n,this.a=e}function ykn(n,e){this.b=n,this.a=e}function jkn(n,e){this.a=n,this.b=e}function Ekn(n,e){this.a=n,this.b=e}function yre(n,e){J9e(n.a,u(e,56))}function Ckn(n,e){f0e(n.a,u(e,11))}function jre(n,e){return h3(),e!=n}function Tkn(){return Q9n(),new Szn}function Mkn(){c$(),this.b=new hi}function Akn(){hM(),this.a=new hi}function Skn(){tX(),lW.call(this)}function a2(n,e){Oe.call(this,n,e)}function Pkn(n,e){this.a=n,this.b=e}function Ikn(n,e){this.a=n,this.b=e}function Yj(n,e){this.a=n,this.b=e}function Okn(n,e){this.a=n,this.b=e}function Dkn(n,e){this.a=n,this.b=e}function $kn(n,e){this.a=n,this.b=e}function Fkn(n,e){this.d=n,this.b=e}function lz(n,e){this.d=n,this.e=e}function xkn(n,e){this.f=n,this.c=e}function i8(n,e){this.b=n,this.c=e}function az(n,e){this.i=n,this.g=e}function Lkn(n,e){this.e=n,this.a=e}function Nkn(n,e){this.a=n,this.b=e}function dz(n,e){n.i=null,nT(n,e)}function Ere(n,e){n&&it($y,n,e)}function Bkn(n,e){return NF(n.a,e)}function Zj(n){return g7(n.c,n.b)}function Vr(n){return n?n.dd():null}function B(n){return n??null}function q0(n){return typeof n===X2}function G0(n){return typeof n===UZ}function ki(n){return typeof n===EL}function el(n,e){return n.Hd().Xb(e)}function nE(n,e){return Rbe(n.Kc(),e)}function gd(n,e){return fc(n,e)==0}function Cre(n,e){return fc(n,e)>=0}function b5(n,e){return fc(n,e)!=0}function Tre(n){return""+(_n(n),n)}function r8(n,e){return n.substr(e)}function Rkn(n){return Fu(n),n.d.gc()}function $O(n){return yme(n,n.c),n}function eE(n){return A5(n==null),n}function w5(n,e){return n.a+=""+e,n}function dr(n,e){return n.a+=""+e,n}function g5(n,e){return n.a+=""+e,n}function rc(n,e){return n.a+=""+e,n}function De(n,e){return n.a+=""+e,n}function bz(n,e){return n.a+=""+e,n}function _kn(n,e){Kt(n,e,n.a,n.a.a)}function ua(n,e){Kt(n,e,n.c.b,n.c)}function Mre(n,e,t){VFn(e,Mx(n,t))}function Are(n,e,t){VFn(e,Mx(n,t))}function Sre(n,e){k0e(new ie(n),e)}function Kkn(n,e){n.q.setTime($d(e))}function Hkn(n,e){kW.call(this,n,e)}function qkn(n,e){kW.call(this,n,e)}function FO(n,e){kW.call(this,n,e)}function Gkn(n){Cu(this),Z5(this,n)}function wz(n){return Ln(n,0),null}function Lo(n){return n.a=0,n.b=0,n}function zkn(n,e){return n.a=e.g+1,n}function Pre(n,e){return n.j[e.p]==2}function gz(n){return lhe(u(n,79))}function Ukn(){Ukn=N,jUn=Fe(qF())}function Wkn(){Wkn=N,RWn=Fe(PNn())}function Xkn(){this.b=new s2(sb(12))}function Vkn(){this.b=0,this.a=!1}function Qkn(){this.b=0,this.a=!1}function p5(n){this.a=n,TI.call(this)}function Jkn(n){this.a=n,TI.call(this)}function In(n,e){ri.call(this,n,e)}function xO(n,e){V0.call(this,n,e)}function Ew(n,e){az.call(this,n,e)}function LO(n,e){H3.call(this,n,e)}function Ykn(n,e){c8.call(this,n,e)}function He(n,e){$j(),it(eI,n,e)}function NO(n,e){return Zu(n.a,0,e)}function Zkn(n,e){return n.a.a.a.cc(e)}function nyn(n,e){return B(n)===B(e)}function Ire(n,e){return ni(n.a,e.a)}function Ore(n,e){return Wc(n.a,e.a)}function Dre(n,e){return xCn(n.a,e.a)}function If(n,e){return n.indexOf(e)}function pd(n,e){return n==e?0:n?1:-1}function tE(n){return n<10?"0"+n:""+n}function $re(n){return pe(n),new p5(n)}function eyn(n){return Bc(n.l,n.m,n.h)}function i3(n){return Gt((_n(n),n))}function Fre(n){return Gt((_n(n),n))}function tyn(n,e){return Wc(n.g,e.g)}function Fr(n){return typeof n===UZ}function xre(n){return n==b0||n==Hb}function Lre(n){return n==b0||n==Kb}function pz(n){return xr(n.b.b,n,0)}function iyn(n){this.a=Tkn(),this.b=n}function ryn(n){this.a=Tkn(),this.b=n}function Nre(n,e){return W(n.a,e),e}function Bre(n,e){return W(n.c,e),n}function cyn(n,e){return cs(n.a,e),n}function Rre(n,e){return wo(),e.a+=n}function _re(n,e){return wo(),e.a+=n}function Kre(n,e){return wo(),e.c+=n}function vz(n,e){S3(n,0,n.length,e)}function Sh(){Tq.call(this,new ba)}function uyn(){xE.call(this,0,0,0,0)}function d2(){ys.call(this,0,0,0,0)}function kr(n){this.a=n.a,this.b=n.b}function tl(n){return n==Zs||n==Ao}function r3(n){return n==Yh||n==Jh}function syn(n){return n==xg||n==Fg}function Cw(n){return n!=Ef&&n!=ql}function qu(n){return n.Lg()&&n.Mg()}function oyn(n){return JE(u(n,118))}function iE(n){return cs(new li,n)}function fyn(n,e){return new H3(e,n)}function Hre(n,e){return new H3(e,n)}function mz(n,e,t){UC(n,e),WC(n,t)}function rE(n,e,t){Rd(n,e),Bd(n,t)}function Yo(n,e,t){nu(n,e),eu(n,t)}function cE(n,e,t){D3(n,e),F3(n,t)}function uE(n,e,t){$3(n,e),x3(n,t)}function BO(n,e){X3(n,e),L3(n,n.D)}function kz(n){xkn.call(this,n,!0)}function hyn(n,e,t){fU.call(this,n,e,t)}function il(n){jl(),qbe.call(this,n)}function lyn(){Lj.call(this,"Head",1)}function ayn(){Lj.call(this,"Tail",3)}function RO(n){n.c=F(Zn,rn,1,0,5,1)}function dyn(n){n.a=F(Zn,rn,1,8,5,1)}function byn(n){Zc(n.xf(),new t5n(n))}function Tw(n){return n!=null?mt(n):0}function qre(n,e){return ob(e,ef(n))}function Gre(n,e){return ob(e,ef(n))}function zre(n,e){return n[n.length]=e}function Ure(n,e){return n[n.length]=e}function yz(n){return zoe(n.b.Kc(),n.a)}function Wre(n,e){return ZC(BD(n.d),e)}function Xre(n,e){return ZC(BD(n.g),e)}function Vre(n,e){return ZC(BD(n.j),e)}function tr(n,e){ri.call(this,n.b,e)}function vd(n){xE.call(this,n,n,n,n)}function jz(n){return n.b&&uL(n),n.a}function Ez(n){return n.b&&uL(n),n.c}function Qre(n,e){vf||(n.b=e)}function _O(n,e,t){return St(n,e,t),t}function wyn(n,e,t){St(n.c[e.g],e.g,t)}function Jre(n,e,t){u(n.c,69).Xh(e,t)}function Yre(n,e,t){Yo(t,t.i+n,t.j+e)}function Zre(n,e){me(bc(n.a),PMn(e))}function nce(n,e){me(Du(n.a),IMn(e))}function v5(n){Je(),cd.call(this,n)}function ece(n){return n==null?0:mt(n)}function gyn(){gyn=N,hK=new f6(cH)}function je(){je=N,new pyn,new X}function pyn(){new we,new we,new we}function Cz(){Cz=N,Hq(),bin=new we}function Zo(){Zo=N,y.Math.log(2)}function ms(){ms=N,Ch=(E7n(),Dne)}function tce(){throw T(new t1(izn))}function ice(){throw T(new t1(izn))}function rce(){throw T(new t1(rzn))}function cce(){throw T(new t1(rzn))}function vyn(n){this.a=n,HU.call(this,n)}function KO(n){this.a=n,Ej.call(this,n)}function HO(n){this.a=n,Ej.call(this,n)}function wi(n,e){mD(n.c,n.c.length,e)}function Kr(n){return n.ae?1:0}function kyn(n,e){return fc(n,e)>0?n:e}function Bc(n,e,t){return{l:n,m:e,h:t}}function uce(n,e){n.a!=null&&Ckn(e,n.a)}function yyn(n){n.a=new aI,n.c=new aI}function sE(n){this.b=n,this.a=new X}function jyn(n){this.b=new san,this.a=n}function Mz(n){vU.call(this),this.a=n}function Eyn(){Lj.call(this,"Range",2)}function Cyn(){kJ(),this.a=new B7(Hrn)}function sce(n,e){pe(e),Iw(n).Jc(new ju)}function oce(n,e){return ns(),e.n.b+=n}function fce(n,e,t){return it(n.g,t,e)}function hce(n,e,t){return it(n.k,t,e)}function lce(n,e){return it(n.a,e.a,e)}function Mw(n,e,t){return _Q(e,t,n.c)}function Az(n){return new fn(n.c,n.d)}function ace(n){return new fn(n.c,n.d)}function Qr(n){return new fn(n.a,n.b)}function Tyn(n,e){return xEe(n.a,e,null)}function dce(n){Hi(n,null),Ci(n,null)}function Myn(n){s$(n,null),o$(n,null)}function Ayn(){c8.call(this,null,null)}function Syn(){wE.call(this,null,null)}function Sz(n){this.a=n,we.call(this)}function bce(n){this.b=(Pn(),new DI(n))}function oE(n){n.j=F(Ain,q,310,0,0,1)}function wce(n,e,t){n.c.Vc(e,u(t,133))}function gce(n,e,t){n.c.ji(e,u(t,133))}function Pyn(n,e){de(n),n.Gc(u(e,15))}function m5(n,e){return Jje(n.c,n.b,e)}function pce(n,e){return new Jyn(n.Kc(),e)}function qO(n,e){return gwe(n.Kc(),e)!=-1}function Pz(n,e){return n.a.Bc(e)!=null}function fE(n){return n.Ob()?n.Pb():null}function Iyn(n){return Hs(n,0,n.length)}function I(n,e){return n!=null&&WF(n,e)}function vce(n,e){n.q.setHours(e),S6(n,e)}function Oyn(n,e){n.c&&(ZU(e),iMn(e))}function mce(n,e,t){u(n.Kb(t),164).Nb(e)}function kce(n,e,t){return SEe(n,e,t),t}function Dyn(n,e,t){n.a=e^1502,n.b=t^tN}function GO(n,e,t){return n.a[e.g][t.g]}function nf(n,e){return n.a[e.c.p][e.p]}function yce(n,e){return n.e[e.c.p][e.p]}function jce(n,e){return n.c[e.c.p][e.p]}function Ece(n,e){return n.j[e.p]=D9e(e)}function Cce(n,e){return DX(n.f,e.tg())}function Tce(n,e){return DX(n.b,e.tg())}function Mce(n,e){return n.a0?e*e/n:e*e*100}function Jce(n,e){return n>0?e/(n*n):e*100}function Yce(n,e,t){return W(e,e$n(n,t))}function Zce(n,e,t){DC(),n.Xe(e)&&t.td(n)}function s3(n,e,t){var i;i=n.Zc(e),i.Rb(t)}function U0(n,e,t){return n.a+=e,n.b+=t,n}function nue(n,e,t){return n.a*=e,n.b*=t,n}function o8(n,e,t){return n.a-=e,n.b-=t,n}function Zz(n,e){return n.a=e.a,n.b=e.b,n}function vE(n){return n.a=-n.a,n.b=-n.b,n}function fjn(n){this.c=n,this.a=1,this.b=1}function hjn(n){this.c=n,nu(n,0),eu(n,0)}function ljn(n){Tt.call(this),V5(this,n)}function ajn(n){yL(),Nmn(this),this.mf(n)}function djn(n,e){Zv(),c8.call(this,n,e)}function nU(n,e){c1(),wE.call(this,n,e)}function bjn(n,e){c1(),wE.call(this,n,e)}function wjn(n,e){c1(),nU.call(this,n,e)}function Gu(n,e,t){Xu.call(this,n,e,t,2)}function JO(n,e){ms(),FE.call(this,n,e)}function gjn(n,e){ms(),JO.call(this,n,e)}function eU(n,e){ms(),JO.call(this,n,e)}function pjn(n,e){ms(),eU.call(this,n,e)}function tU(n,e){ms(),FE.call(this,n,e)}function vjn(n,e){ms(),tU.call(this,n,e)}function mjn(n,e){ms(),FE.call(this,n,e)}function eue(n,e){return n.c.Fc(u(e,133))}function iU(n,e,t){return jM(G8(n,e),t)}function tue(n,e,t){return e.Qk(n.e,n.c,t)}function iue(n,e,t){return e.Rk(n.e,n.c,t)}function YO(n,e){return pl(n.e,u(e,49))}function rue(n,e,t){s6(Du(n.a),e,IMn(t))}function cue(n,e,t){s6(bc(n.a),e,PMn(t))}function rU(n,e){e.$modCount=n.$modCount}function C5(){C5=N,Xm=new kt("root")}function o3(){o3=N,xy=new w9n,new g9n}function kjn(){this.a=new Od,this.b=new Od}function cU(){RIn.call(this),this.Bb|=Yi}function yjn(){Oe.call(this,"GROW_TREE",0)}function uue(n){return n==null?null:CCe(n)}function sue(n){return n==null?null:D5e(n)}function oue(n){return n==null?null:Nr(n)}function fue(n){return n==null?null:Nr(n)}function Ph(n){n.o==null&&u9e(n)}function sn(n){return A5(n==null||q0(n)),n}function Y(n){return A5(n==null||G0(n)),n}function Ce(n){return A5(n==null||ki(n)),n}function uU(n){this.q=new y.Date($d(n))}function f8(n,e){this.c=n,Yp.call(this,n,e)}function mE(n,e){this.a=n,f8.call(this,n,e)}function hue(n,e){this.d=n,Ovn(this),this.b=e}function sU(n,e){P$.call(this,n),this.a=e}function oU(n,e){P$.call(this,n),this.a=e}function lue(n){xQ.call(this,0,0),this.f=n}function fU(n,e,t){IC.call(this,n,e,t,null)}function jjn(n,e,t){IC.call(this,n,e,t,null)}function aue(n,e,t){return n.ue(e,t)<=0?t:e}function due(n,e,t){return n.ue(e,t)<=0?e:t}function bue(n,e){return u(xd(n.b,e),149)}function wue(n,e){return u(xd(n.c,e),229)}function ZO(n){return u(un(n.a,n.b),287)}function Ejn(n){return new fn(n.c,n.d+n.a)}function Cjn(n){return ns(),syn(u(n,197))}function W0(){W0=N,prn=Cn((Qu(),id))}function gue(n,e){e.a?e7e(n,e):zO(n.a,e.b)}function Tjn(n,e){vf||W(n.a,e)}function pue(n,e){return H9(),K3(e.d.i,n)}function vue(n,e){return x2(),new ABn(e,n)}function Df(n,e){return T8(e,ann),n.f=e,n}function hU(n,e,t){return t=os(n,e,3,t),t}function lU(n,e,t){return t=os(n,e,6,t),t}function aU(n,e,t){return t=os(n,e,9,t),t}function h8(n,e,t){++n.j,n.Ki(),A$(n,e,t)}function Mjn(n,e,t){++n.j,n.Hi(e,n.oi(e,t))}function Ajn(n,e,t){var i;i=n.Zc(e),i.Rb(t)}function Sjn(n,e,t){return MZ(n.c,n.b,e,t)}function dU(n,e){return(e&nt)%n.d.length}function ri(n,e){kt.call(this,n),this.a=e}function bU(n,e){xq.call(this,n),this.a=e}function nD(n,e){xq.call(this,n),this.a=e}function Pjn(n,e){this.c=n,Ld.call(this,e)}function Ijn(n,e){this.a=n,Omn.call(this,e)}function l8(n,e){this.a=n,Omn.call(this,e)}function Ojn(n){this.a=(rs(n,Pb),new Pc(n))}function Djn(n){this.a=(rs(n,Pb),new Pc(n))}function a8(n){return!n.a&&(n.a=new vr),n.a}function $jn(n){return n>8?0:n+1}function mue(n,e){return qn(),n==e?0:n?1:-1}function wU(n,e,t){return m2(n,u(e,22),t)}function kue(n,e,t){return n.apply(e,t)}function Fjn(n,e,t){return n.a+=Hs(e,0,t),n}function gU(n,e){var t;return t=n.e,n.e=e,t}function yue(n,e){var t;t=n[eN],t.call(n,e)}function jue(n,e){var t;t=n[eN],t.call(n,e)}function X0(n,e){n.a.Vc(n.b,e),++n.b,n.c=-1}function xjn(n){Cu(n.e),n.d.b=n.d,n.d.a=n.d}function d8(n){n.b?d8(n.b):n.f.c.zc(n.e,n.d)}function Eue(n,e,t){ca(),Svn(n,e.Ce(n.a,t))}function Cue(n,e){return nO(p$n(n.a,e,!0))}function Tue(n,e){return nO(v$n(n.a,e,!0))}function bo(n,e){return pj(new Array(e),n)}function eD(n){return String.fromCharCode(n)}function Mue(n){return n==null?null:n.message}function Ljn(){this.a=new X,this.b=new X}function Njn(){this.a=new LH,this.b=new Umn}function Bjn(){this.b=new Li,this.c=new X}function pU(){this.d=new Li,this.e=new Li}function vU(){this.n=new Li,this.o=new Li}function kE(){this.n=new i2,this.i=new d2}function Rjn(){this.a=new v4n,this.b=new cwn}function _jn(){this.a=new X,this.d=new X}function Kjn(){this.b=new hi,this.a=new hi}function Hjn(){this.b=new we,this.a=new we}function qjn(){this.b=new E8n,this.a=new sgn}function Gjn(){kE.call(this),this.a=new Li}function T5(n){Jbe.call(this,n,(FC(),vR))}function mU(n,e,t,i){xE.call(this,n,e,t,i)}function Aue(n,e,t){t!=null&&JC(e,rx(n,t))}function Sue(n,e,t){t!=null&&YC(e,rx(n,t))}function kU(n,e,t){return t=os(n,e,11,t),t}function st(n,e){return n.a+=e.a,n.b+=e.b,n}function yi(n,e){return n.a-=e.a,n.b-=e.b,n}function Pue(n,e){return n.n.a=(_n(e),e+10)}function Iue(n,e){return n.n.a=(_n(e),e+10)}function Oue(n,e){return e==n||o4(sM(e),n)}function zjn(n,e){return it(n.a,e,"")==null}function Due(n,e){return H9(),!K3(e.d.i,n)}function $ue(n,e){tl(n.f)?Qme(n,e):Fve(n,e)}function Fue(n,e){var t;return t=e.Hh(n.a),t}function V0(n,e){mr.call(this,rm+n+Ra+e)}function g2(n,e,t,i){V.call(this,n,e,t,i)}function yU(n,e,t,i){V.call(this,n,e,t,i)}function Ujn(n,e,t,i){yU.call(this,n,e,t,i)}function Wjn(n,e,t,i){zE.call(this,n,e,t,i)}function tD(n,e,t,i){zE.call(this,n,e,t,i)}function jU(n,e,t,i){zE.call(this,n,e,t,i)}function Xjn(n,e,t,i){tD.call(this,n,e,t,i)}function EU(n,e,t,i){tD.call(this,n,e,t,i)}function Fn(n,e,t,i){jU.call(this,n,e,t,i)}function Vjn(n,e,t,i){EU.call(this,n,e,t,i)}function Qjn(n,e,t,i){yW.call(this,n,e,t,i)}function Jjn(n,e,t){this.a=n,Vz.call(this,e,t)}function Yjn(n,e,t){this.c=e,this.b=t,this.a=n}function xue(n,e,t){return n.d=u(e.Kb(t),164)}function CU(n,e){return n.Aj().Nh().Kh(n,e)}function TU(n,e){return n.Aj().Nh().Ih(n,e)}function Zjn(n,e){return _n(n),B(n)===B(e)}function Mn(n,e){return _n(n),B(n)===B(e)}function iD(n,e){return nO(p$n(n.a,e,!1))}function rD(n,e){return nO(v$n(n.a,e,!1))}function Lue(n,e){return n.b.sd(new D7n(n,e))}function Nue(n,e){return n.b.sd(new $7n(n,e))}function nEn(n,e){return n.b.sd(new F7n(n,e))}function MU(n,e,t){return n.lastIndexOf(e,t)}function Bue(n,e,t){return ni(n[e.b],n[t.b])}function Rue(n,e){return H(e,(nn(),Jk),n)}function _ue(n,e){return Wc(e.a.d.p,n.a.d.p)}function Kue(n,e){return Wc(n.a.d.p,e.a.d.p)}function Hue(n,e){return ni(n.c-n.s,e.c-e.s)}function eEn(n){return n.c?xr(n.c.a,n,0):-1}function que(n){return n<100?null:new Q1(n)}function p2(n){return n==td||n==Eh||n==Ac}function tEn(n,e){return I(e,15)&&oBn(n.c,e)}function Gue(n,e){vf||e&&(n.d=e)}function cD(n,e){var t;return t=e,!!VV(n,t)}function AU(n,e){this.c=n,DD.call(this,n,e)}function iEn(n){this.c=n,FO.call(this,IM,0)}function rEn(n,e){Voe.call(this,n,n.length,e)}function zue(n,e,t){return u(n.c,69).lk(e,t)}function yE(n,e,t){return u(n.c,69).mk(e,t)}function Uue(n,e,t){return tue(n,u(e,332),t)}function SU(n,e,t){return iue(n,u(e,332),t)}function Wue(n,e,t){return txn(n,u(e,332),t)}function cEn(n,e,t){return zve(n,u(e,332),t)}function M5(n,e){return e==null?null:ab(n.b,e)}function PU(n){return G0(n)?(_n(n),n):n.ke()}function jE(n){return!isNaN(n)&&!isFinite(n)}function uEn(n){$f(),this.a=(Pn(),new Wp(n))}function b8(n){h3(),this.d=n,this.a=new gw}function ks(n,e,t){this.a=n,this.b=e,this.c=t}function sEn(n,e,t){this.a=n,this.b=e,this.c=t}function oEn(n,e,t){this.d=n,this.b=t,this.a=e}function uD(n){yyn(this),_s(this),Vi(this,n)}function du(n){RO(this),GU(this.c,0,n.Pc())}function fEn(n){Wu(n.a),uPn(n.c,n.b),n.b=null}function hEn(n){this.a=n,nh(),tu(Date.now())}function lEn(){lEn=N,Xin=new Lc,XA=new Lc}function sD(){sD=N,Rin=new iln,Pzn=new rln}function aEn(){aEn=N,Nne=F(Zn,rn,1,0,5,1)}function dEn(){dEn=N,eee=F(Zn,rn,1,0,5,1)}function IU(){IU=N,tee=F(Zn,rn,1,0,5,1)}function $f(){$f=N,new Bq((Pn(),Pn(),cr))}function Xue(n){return FC(),$e((pPn(),Dzn),n)}function Vue(n){return lf(),$e((LSn(),Bzn),n)}function Que(n){return $T(),$e((qAn(),Gzn),n)}function Jue(n){return RC(),$e((GAn(),zzn),n)}function Yue(n){return dM(),$e((IOn(),Uzn),n)}function Zue(n){return _o(),$e(($Sn(),Vzn),n)}function nse(n){return Tu(),$e((FSn(),Jzn),n)}function ese(n){return Yc(),$e((xSn(),Zzn),n)}function tse(n){return SM(),$e((Ukn(),jUn),n)}function ise(n){return Hd(),$e((mPn(),CUn),n)}function rse(n){return K2(),$e((kPn(),MUn),n)}function cse(n){return d6(),$e((yPn(),PUn),n)}function use(n){return Aj(),$e((yAn(),IUn),n)}function sse(n){return _C(),$e((zAn(),WUn),n)}function ose(n){return W5(),$e((NSn(),bWn),n)}function fse(n){return Qi(),$e((JPn(),vWn),n)}function hse(n){return G3(),$e((vPn(),EWn),n)}function lse(n){return qd(),$e((BSn(),PWn),n)}function OU(n,e){if(!n)throw T(new Hn(e))}function ase(n){return Qn(),$e((vIn(),$Wn),n)}function DU(n){xE.call(this,n.d,n.c,n.a,n.b)}function oD(n){xE.call(this,n.d,n.c,n.a,n.b)}function $U(n,e,t){this.b=n,this.c=e,this.a=t}function EE(n,e,t){this.b=n,this.a=e,this.c=t}function bEn(n,e,t){this.a=n,this.b=e,this.c=t}function FU(n,e,t){this.a=n,this.b=e,this.c=t}function wEn(n,e,t){this.a=n,this.b=e,this.c=t}function xU(n,e,t){this.a=n,this.b=e,this.c=t}function gEn(n,e,t){this.b=n,this.a=e,this.c=t}function CE(n,e,t){this.e=e,this.b=n,this.d=t}function dse(n,e,t){return ca(),n.a.Od(e,t),e}function fD(n){var e;return e=new Dln,e.e=n,e}function LU(n){var e;return e=new Zmn,e.b=n,e}function w8(){w8=N,sS=new Fdn,oS=new xdn}function wo(){wo=N,WWn=new pbn,XWn=new vbn}function bse(n){return aT(),$e((EPn(),HWn),n)}function wse(n){return hf(),$e((TPn(),JWn),n)}function gse(n){return lM(),$e((mOn(),cXn),n)}function pse(n){return q2(),$e((yIn(),uXn),n)}function vse(n){return OC(),$e((JAn(),sXn),n)}function mse(n){return F2(),$e((RSn(),oXn),n)}function kse(n){return Vw(),$e((UPn(),ZWn),n)}function yse(n){return Kd(),$e((HSn(),rXn),n)}function jse(n){return VC(),$e((_Sn(),fXn),n)}function Ese(n){return Pa(),$e((GPn(),hXn),n)}function Cse(n){return V8(),$e((WAn(),lXn),n)}function Tse(n){return ya(),$e((KSn(),dXn),n)}function Mse(n){return eM(),$e((TIn(),bXn),n)}function Ase(n){return K8(),$e((XAn(),wXn),n)}function Sse(n){return A7(),$e((EIn(),gXn),n)}function Pse(n){return h4(),$e((jIn(),pXn),n)}function Ise(n){return or(),$e((zOn(),vXn),n)}function Ose(n){return q3(),$e((GSn(),mXn),n)}function Dse(n){return Nh(),$e((qSn(),yXn),n)}function $se(n){return kC(),$e((YAn(),jXn),n)}function Fse(n){return Ss(),$e((WPn(),EXn),n)}function xse(n){return JT(),$e((CIn(),BQn),n)}function Lse(n){return i6(),$e((zSn(),RQn),n)}function Nse(n){return wb(),$e((MPn(),_Qn),n)}function Bse(n){return ur(),$e((XSn(),UQn),n)}function Rse(n){return Zw(),$e((vOn(),HQn),n)}function _se(n){return Rh(),$e((WSn(),qQn),n)}function Kse(n){return z8(),$e((QAn(),GQn),n)}function Hse(n){return oT(),$e((USn(),WQn),n)}function qse(n){return b6(),$e((zPn(),KQn),n)}function Gse(n){return x8(),$e((VAn(),XQn),n)}function zse(n){return Q3(),$e((QSn(),VQn),n)}function Use(n){return uT(),$e((JSn(),QQn),n)}function Wse(n){return dT(),$e((VSn(),JQn),n)}function Xse(n){return _d(),$e((YSn(),hJn),n)}function Vse(n){return z5(),$e((nSn(),wJn),n)}function Qse(n){return xf(),$e((eSn(),jJn),n)}function Jse(n){return tf(),$e((tSn(),CJn),n)}function Yse(n){return No(),$e((ZAn(),RJn),n)}function Zse(n){return Id(),$e((iSn(),UJn),n)}function noe(n){return c4(),$e((jPn(),WJn),n)}function eoe(n){return k6(),$e((MIn(),VJn),n)}function toe(n){return aC(),$e((uSn(),fYn),n)}function ioe(n){return iT(),$e((cSn(),wYn),n)}function roe(n){return gC(),$e((rSn(),hYn),n)}function coe(n){return CT(),$e((ZSn(),pYn),n)}function uoe(n){return $C(),$e((sSn(),vYn),n)}function soe(n){return f7(),$e((nPn(),mYn),n)}function ooe(n){return qT(),$e((CPn(),FYn),n)}function foe(n){return sT(),$e((tPn(),xYn),n)}function hoe(n){return ET(),$e((ePn(),LYn),n)}function loe(n){return g4(),$e((QPn(),tZn),n)}function aoe(n){return w7(),$e((iPn(),iZn),n)}function doe(n){return Pj(),$e((mAn(),rZn),n)}function boe(n){return Ij(),$e((vAn(),uZn),n)}function woe(n){return L8(),$e((fSn(),sZn),n)}function goe(n){return P7(),$e((XPn(),oZn),n)}function poe(n){return Jv(),$e((kAn(),CZn),n)}function voe(n){return c7(),$e((oSn(),TZn),n)}function moe(n){return Ho(),$e((VPn(),OZn),n)}function koe(n){return y1(),$e((kOn(),$Zn),n)}function yoe(n){return fh(),$e((kIn(),FZn),n)}function joe(n){return vb(),$e((mIn(),_Zn),n)}function Eoe(n){return rr(),$e((Wkn(),RWn),n)}function Coe(n){return B3(),$e((UAn(),BWn),n)}function Toe(n){return sr(),$e((YPn(),ene),n)}function Moe(n){return of(),$e((cPn(),tne),n)}function Aoe(n){return Hh(),$e((PPn(),ine),n)}function Soe(n){return ZT(),$e((SIn(),rne),n)}function Poe(n){return _h(),$e((rPn(),une),n)}function Ioe(n){return us(),$e((SPn(),one),n)}function Ooe(n){return jb(),$e((POn(),fne),n)}function Doe(n){return qw(),$e((ZPn(),hne),n)}function $oe(n){return Mi(),$e((bIn(),lne),n)}function Foe(n){return Mu(),$e((AIn(),ane),n)}function xoe(n){return Qu(),$e((OPn(),vne),n)}function Loe(n){return Lu(),$e((UOn(),mne),n)}function Noe(n){return J(),$e((nIn(),dne),n)}function Boe(n){return AT(),$e((IPn(),kne),n)}function Roe(n){return Vu(),$e((APn(),Ene),n)}function _oe(n){return d4(),$e((yOn(),Lne),n)}function Koe(n,e){return _n(n),n+(_n(e),e)}function Hoe(n,e){return nh(),me(R(n.a),e)}function qoe(n,e){return nh(),me(R(n.a),e)}function hD(n,e){this.c=n,this.a=e,this.b=e-n}function pEn(n,e,t){this.a=n,this.b=e,this.c=t}function NU(n,e,t){this.a=n,this.b=e,this.c=t}function BU(n,e,t){this.a=n,this.b=e,this.c=t}function vEn(n,e,t){this.a=n,this.b=e,this.c=t}function mEn(n,e,t){this.a=n,this.b=e,this.c=t}function s1(n,e,t){this.e=n,this.a=e,this.c=t}function kEn(n,e,t){ms(),QW.call(this,n,e,t)}function lD(n,e,t){ms(),FW.call(this,n,e,t)}function RU(n,e,t){ms(),FW.call(this,n,e,t)}function _U(n,e,t){ms(),FW.call(this,n,e,t)}function yEn(n,e,t){ms(),lD.call(this,n,e,t)}function KU(n,e,t){ms(),lD.call(this,n,e,t)}function jEn(n,e,t){ms(),KU.call(this,n,e,t)}function EEn(n,e,t){ms(),RU.call(this,n,e,t)}function CEn(n,e,t){ms(),_U.call(this,n,e,t)}function g8(n,e){return pe(n),pe(e),new z8n(n,e)}function v2(n,e){return pe(n),pe(e),new NEn(n,e)}function Goe(n,e){return pe(n),pe(e),new BEn(n,e)}function zoe(n,e){return pe(n),pe(e),new W8n(n,e)}function u(n,e){return A5(n==null||WF(n,e)),n}function f3(n){var e;return e=new X,_$(e,n),e}function Uoe(n){var e;return e=new hi,_$(e,n),e}function TEn(n){var e;return e=new Wq,nF(e,n),e}function p8(n){var e;return e=new Tt,nF(e,n),e}function Woe(n){return!n.e&&(n.e=new X),n.e}function Xoe(n){return!n.c&&(n.c=new Bp),n.c}function W(n,e){return n.c[n.c.length]=e,!0}function MEn(n,e){this.c=n,this.b=e,this.a=!1}function HU(n){this.d=n,Ovn(this),this.b=_fe(n.d)}function AEn(){this.a=";,;",this.b="",this.c=""}function Voe(n,e,t){SCn.call(this,e,t),this.a=n}function SEn(n,e,t){this.b=n,Hkn.call(this,e,t)}function qU(n,e,t){this.c=n,Nj.call(this,e,t)}function GU(n,e,t){aY(t,0,n,e,t.length,!1)}function th(n,e,t,i,r){n.b=e,n.c=t,n.d=i,n.a=r}function Qoe(n,e){e&&(n.b=e,n.a=(fl(e),e.a))}function zU(n,e,t,i,r){n.d=e,n.c=t,n.a=i,n.b=r}function UU(n){var e,t;e=n.b,t=n.c,n.b=t,n.c=e}function WU(n){var e,t;t=n.d,e=n.a,n.d=e,n.a=t}function XU(n){return bl(the(Fr(n)?Ks(n):n))}function Joe(n,e){return Wc(GEn(n.d),GEn(e.d))}function Yoe(n,e){return e==(J(),Gn)?n.c:n.d}function h3(){h3=N,don=(J(),Gn),dP=Vn}function PEn(){this.b=K(Y(cn((Go(),xR))))}function IEn(n){return ca(),F(Zn,rn,1,n,5,1)}function Zoe(n){return new fn(n.c+n.b,n.d+n.a)}function nfe(n,e){return Sj(),Wc(n.d.p,e.d.p)}function aD(n){return ne(n.b!=0),Ts(n,n.a.a)}function efe(n){return ne(n.b!=0),Ts(n,n.c.b)}function VU(n,e){if(!n)throw T(new R9n(e))}function TE(n,e){if(!n)throw T(new Hn(e))}function QU(n,e,t){t3.call(this,n,e),this.b=t}function v8(n,e,t){lz.call(this,n,e),this.c=t}function OEn(n,e,t){oIn.call(this,e,t),this.d=n}function JU(n){IU(),Yy.call(this),this.th(n)}function DEn(n,e,t){this.a=n,Ew.call(this,e,t)}function $En(n,e,t){this.a=n,Ew.call(this,e,t)}function ME(n,e,t){lz.call(this,n,e),this.c=t}function FEn(){T3(),khe.call(this,(Z1(),uo))}function xEn(n){return n!=null&&!$F(n,a9,d9)}function tfe(n,e){return(GDn(n)<<4|GDn(e))&Ut}function ife(n,e){return QE(),ex(n,e),new oTn(n,e)}function sa(n,e){var t;n.n&&(t=e,W(n.f,t))}function l3(n,e,t){var i;i=new Z0(t),Ro(n,e,i)}function rfe(n,e){var t;return t=n.c,wV(n,e),t}function YU(n,e){return e<0?n.g=-1:n.g=e,n}function AE(n,e){return H0e(n),n.a*=e,n.b*=e,n}function LEn(n,e,t,i,r){n.c=e,n.d=t,n.b=i,n.a=r}function Ke(n,e){return Kt(n,e,n.c.b,n.c),!0}function ZU(n){n.a.b=n.b,n.b.a=n.a,n.a=n.b=null}function dD(n){this.b=n,this.a=Ed(this.b.a).Ed()}function NEn(n,e){this.b=n,this.a=e,TI.call(this)}function BEn(n,e){this.a=n,this.b=e,TI.call(this)}function REn(n,e){SCn.call(this,e,1040),this.a=n}function m8(n){return n==0||isNaN(n)?n:n<0?-1:1}function cfe(n){return C2(),hh(n)==Pt(ml(n))}function ufe(n){return C2(),ml(n)==Pt(hh(n))}function jd(n,e){return v6(n,new t3(e.a,e.b))}function sfe(n){return!Xi(n)&&n.c.i.c==n.d.i.c}function SE(n){var e;return e=n.n,n.a.b+e.d+e.a}function _En(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 KEn(n){return Je(),new ih(0,n)}function ofe(n){return n.a?n.a:WD(n)}function A5(n){if(!n)throw T(new Up(null))}function HEn(){HEn=N,mH=(Pn(),new OI(XB))}function PE(){PE=N,new JQ((HI(),uR),(qI(),cR))}function qEn(){qEn=N,jin=F(Wi,q,19,256,0,1)}function bD(n,e,t,i){MQ.call(this,n,e,t,i,0,0)}function ffe(n,e,t){return it(n.b,u(t.b,17),e)}function hfe(n,e,t){return it(n.b,u(t.b,17),e)}function lfe(n,e){return W(n,new fn(e.a,e.b))}function afe(n,e){return n.c=e)throw T(new qq)}function Xfe(n,e,t){return St(e,0,rW(e[0],t[0])),e}function Vfe(n,e,t){e.Ye(t,K(Y(te(n.b,t)))*n.a)}function ACn(n,e,t){return eg(),R3(n,e)&&R3(n,t)}function D5(n){return Mu(),!n.Hc(n1)&&!n.Hc(Gl)}function qE(n){return new fn(n.c+n.b/2,n.d+n.a/2)}function MD(n,e){return e.kh()?pl(n.b,u(e,49)):e}function kW(n,e){this.e=n,this.d=e&64?e|Bf:e}function SCn(n,e){this.c=0,this.d=n,this.b=e|64|Bf}function GE(n){this.b=new Pc(11),this.a=(Ow(),n)}function AD(n){this.b=null,this.a=(Ow(),n||Lin)}function PCn(n){this.a=Y$n(n.a),this.b=new du(n.b)}function ICn(n){this.b=n,b2.call(this,n),$yn(this)}function OCn(n){this.b=n,u8.call(this,n),Fyn(this)}function Y0(n,e,t){this.a=n,g2.call(this,e,t,5,6)}function yW(n,e,t,i){this.b=n,Yt.call(this,e,t,i)}function gi(n,e,t,i,r){D$.call(this,n,e,t,i,r,-1)}function $5(n,e,t,i,r){R8.call(this,n,e,t,i,r,-1)}function V(n,e,t,i){Yt.call(this,n,e,t),this.b=i}function zE(n,e,t,i){v8.call(this,n,e,t),this.b=i}function DCn(n){xkn.call(this,n,!1),this.a=!1}function $Cn(n,e){this.b=n,bvn.call(this,n.b),this.a=e}function FCn(n,e){nb(),Yie.call(this,n,mT(new Hu(e)))}function UE(n,e){return Je(),new xW(n,e,0)}function SD(n,e){return Je(),new xW(6,n,e)}function Qfe(n,e){return Mn(n.substr(0,e.length),e)}function Uu(n,e){return ki(e)?QD(n,e):!!Sr(n.f,e)}function Oi(n,e){for(_n(e);n.Ob();)e.td(n.Pb())}function Pw(n,e,t){jl(),this.e=n,this.d=e,this.a=t}function o1(n,e,t,i){var r;r=n.i,r.i=e,r.a=t,r.b=i}function jW(n){var e;for(e=n;e.f;)e=e.f;return e}function y2(n){var e;return e=t6(n),ne(e!=null),e}function Jfe(n){var e;return e=Lge(n),ne(e!=null),e}function d3(n,e){var t;return t=n.a.gc(),$X(e,t),t-e}function EW(n,e){var t;for(t=0;t0?y.Math.log(n/e):-100}function xCn(n,e){return fc(n,e)<0?-1:fc(n,e)>0?1:0}function SW(n,e,t){return MRn(n,u(e,46),u(t,167))}function LCn(n,e){return u(vW(Ed(n.a)).Xb(e),42).cd()}function uhe(n,e){return P0e(e,n.length),new REn(n,e)}function DD(n,e){this.d=n,ie.call(this,n),this.e=e}function Cd(n){this.d=(_n(n),n),this.a=0,this.c=IM}function PW(n,e){cd.call(this,1),this.a=n,this.b=e}function NCn(n,e){return n.c?NCn(n.c,e):W(n.b,e),n}function she(n,e,t){var i;return i=ub(n,e),g$(n,e,t),i}function IW(n,e){var t;return t=n.slice(0,e),WX(t,n)}function BCn(n,e,t){var i;for(i=0;i=n.g}function KD(n,e,t){var i;return i=Y$(n,e,t),rZ(n,i)}function j2(n,e){var t;t=n.a.length,ub(n,t),g$(n,t,e)}function ZCn(n,e){var t;t=console[n],t.call(console,e)}function nTn(n,e){var t;++n.j,t=n.Vi(),n.Ii(n.oi(t,e))}function mhe(n,e,t){u(e.b,65),Zc(e.a,new NU(n,t,e))}function FW(n,e,t){uj.call(this,e),this.a=n,this.b=t}function xW(n,e,t){cd.call(this,n),this.a=e,this.b=t}function LW(n,e,t){this.a=n,xq.call(this,e),this.b=t}function eTn(n,e,t){this.a=n,aX.call(this,8,e,null,t)}function khe(n){this.a=(_n(xe),xe),this.b=n,new tG}function tTn(n){this.c=n,this.b=this.c.a,this.a=this.c.e}function NW(n){this.c=n,this.b=n.a.d.a,rU(n.a.e,this)}function Wu(n){z0(n.c!=-1),n.d.$c(n.c),n.b=n.c,n.c=-1}function L5(n){return y.Math.sqrt(n.a*n.a+n.b*n.b)}function Md(n,e){return a3(e,n.a.c.length),un(n.a,e)}function Ff(n,e){return B(n)===B(e)||n!=null&&tt(n,e)}function yhe(n){return 0>=n?new PG:sbe(n-1)}function jhe(n){return aw?QD(aw,n):!1}function iTn(n){return n?n.dc():!n.Kc().Ob()}function Gi(n){return!n.a&&n.c?n.c.b:n.a}function Ehe(n){return!n.a&&(n.a=new Yt(zl,n,4)),n.a}function Ad(n){return!n.d&&(n.d=new Yt(ar,n,1)),n.d}function _n(n){if(n==null)throw T(new Nv);return n}function N5(n){n.c?n.c.He():(n.d=!0,S8e(n))}function fl(n){n.c?fl(n.c):(Ta(n),n.d=!0)}function rTn(n){KW(n.a),n.b=F(Zn,rn,1,n.b.length,5,1)}function Che(n,e){return Wc(e.j.c.length,n.j.c.length)}function The(n,e){n.c<0||n.b.b=0?n.Bh(t):bY(n,e)}function cTn(n){var e,t;return e=n.c.i.c,t=n.d.i.c,e==t}function Ahe(n){if(n.p!=4)throw T(new fu);return n.e}function She(n){if(n.p!=3)throw T(new fu);return n.e}function Phe(n){if(n.p!=6)throw T(new fu);return n.f}function Ihe(n){if(n.p!=6)throw T(new fu);return n.k}function Ohe(n){if(n.p!=3)throw T(new fu);return n.j}function Dhe(n){if(n.p!=4)throw T(new fu);return n.j}function BW(n){return!n.b&&(n.b=new sj(new KI)),n.b}function Sd(n){return n.c==-2&&Pte(n,Qve(n.g,n.b)),n.c}function g3(n,e){var t;return t=LD("",n),t.n=e,t.i=1,t}function $he(n,e){yD(u(e.b,65),n),Zc(e.a,new Aq(n))}function Fhe(n,e){me((!n.a&&(n.a=new l8(n,n)),n.a),e)}function uTn(n,e){this.b=n,DD.call(this,n,e),$yn(this)}function sTn(n,e){this.b=n,AU.call(this,n,e),Fyn(this)}function RW(n,e,t,i){bd.call(this,n,e),this.d=t,this.a=i}function VE(n,e,t,i){bd.call(this,n,t),this.a=e,this.f=i}function oTn(n,e){bce.call(this,obe(pe(n),pe(e))),this.a=e}function fTn(){UJ.call(this,Ka,(a8n(),hee)),tEe(this)}function hTn(){UJ.call(this,Vs,(Qp(),g1n)),lje(this)}function lTn(){Oe.call(this,"DELAUNAY_TRIANGULATION",0)}function xhe(n){return String.fromCharCode.apply(null,n)}function it(n,e,t){return ki(e)?yr(n,e,t):_c(n.f,e,t)}function _W(n){return Pn(),n?n.ve():(Ow(),Ow(),Bin)}function Lhe(n,e,t){return L2(),t.pg(n,u(e.cd(),146))}function aTn(n,e){return PE(),new JQ(new Wyn(n),new Uyn(e))}function Nhe(n){return rs(n,AL),KC(qi(qi(5,n),n/10|0))}function QE(){QE=N,fzn=new GI(A(M(Ha,1),OM,42,0,[]))}function dTn(n){return!n.d&&(n.d=new _p(n.c.Cc())),n.d}function p3(n){return!n.a&&(n.a=new W9n(n.c.vc())),n.a}function bTn(n){return!n.b&&(n.b=new Wp(n.c.ec())),n.b}function ch(n,e){for(;e-- >0;)n=n<<1|(n<0?1:0);return n}function pc(n,e){return B(n)===B(e)||n!=null&&tt(n,e)}function Bhe(n,e){return qn(),u(e.b,19).ai&&++i,i}function Oh(n){var e,t;return t=(e=new ud,e),O3(t,n),t}function UD(n){var e,t;return t=(e=new ud,e),VJ(t,n),t}function Zhe(n,e){var t;return t=te(n.f,e),MV(e,t),null}function WD(n){var e;return e=hbe(n),e||null}function CTn(n){return!n.b&&(n.b=new V(bi,n,12,3)),n.b}function n1e(n){return n!=null&&_9(tI,n.toLowerCase())}function e1e(n,e){return ni(bu(n)*zu(n),bu(e)*zu(e))}function t1e(n,e){return ni(bu(n)*zu(n),bu(e)*zu(e))}function i1e(n,e){return ni(n.d.c+n.d.b/2,e.d.c+e.d.b/2)}function r1e(n,e){return ni(n.g.c+n.g.b/2,e.g.c+e.g.b/2)}function TTn(n,e,t){t.a?eu(n,e.b-n.f/2):nu(n,e.a-n.g/2)}function MTn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function ATn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function ha(n,e,t,i){this.e=n,this.a=e,this.c=t,this.d=i}function STn(n,e,t,i){this.a=n,this.c=e,this.d=t,this.b=i}function PTn(n,e,t,i){ms(),ySn.call(this,e,t,i),this.a=n}function ITn(n,e,t,i){ms(),ySn.call(this,e,t,i),this.a=n}function OTn(n,e){this.a=n,hue.call(this,n,u(n.d,15).Zc(e))}function XD(n){this.f=n,this.c=this.f.e,n.f>0&&qFn(this)}function DTn(n,e,t,i){this.b=n,this.c=i,FO.call(this,e,t)}function $Tn(n){return ne(n.b=0&&Mn(n.substr(t,e.length),e)}function hl(n,e,t,i,r,c,o){return new v$(n.e,e,t,i,r,c,o)}function QTn(n,e,t,i,r,c){this.a=n,z$.call(this,e,t,i,r,c)}function JTn(n,e,t,i,r,c){this.a=n,z$.call(this,e,t,i,r,c)}function YTn(n,e){this.g=n,this.d=A(M(mh,1),E1,10,0,[e])}function f1(n,e){this.e=n,this.a=Zn,this.b=yBn(e),this.c=e}function ZTn(n,e){kE.call(this),eV(this),this.a=n,this.c=e}function M8(n,e,t,i){St(n.c[e.g],t.g,i),St(n.c[t.g],e.g,i)}function ZD(n,e,t,i){St(n.c[e.g],e.g,t),St(n.b[e.g],e.g,i)}function M1e(){return x8(),A(M(ron,1),z,376,0,[uK,iy])}function A1e(){return K8(),A(M(Qcn,1),z,479,0,[Vcn,xS])}function S1e(){return V8(),A(M(Wcn,1),z,419,0,[$S,Ucn])}function P1e(){return OC(),A(M(Rcn,1),z,422,0,[Bcn,s_])}function I1e(){return kC(),A(M(fun,1),z,420,0,[j_,oun])}function O1e(){return z8(),A(M(non,1),z,421,0,[iK,rK])}function D1e(){return z5(),A(M(bJn,1),z,523,0,[Hm,Km])}function $1e(){return No(),A(M(BJn,1),z,520,0,[tw,Bl])}function F1e(){return xf(),A(M(yJn,1),z,516,0,[M0,I1])}function x1e(){return tf(),A(M(EJn,1),z,515,0,[Ja,yf])}function L1e(){return Id(),A(M(zJn,1),z,455,0,[Rl,Lg])}function N1e(){return gC(),A(M(Son,1),z,425,0,[yK,Aon])}function B1e(){return aC(),A(M(Mon,1),z,480,0,[kK,Ton])}function R1e(){return iT(),A(M(Pon,1),z,495,0,[EP,mv])}function _1e(){return $C(),A(M(Oon,1),z,426,0,[Ion,TK])}function K1e(){return c7(),A(M(Ffn,1),z,429,0,[DP,$fn])}function H1e(){return L8(),A(M(afn,1),z,430,0,[FK,IP])}function q1e(){return $T(),A(M(Jin,1),z,428,0,[yR,Qin])}function G1e(){return RC(),A(M(Zin,1),z,427,0,[Yin,jR])}function z1e(){return _C(),A(M(Arn,1),z,424,0,[$R,tS])}function U1e(){return B3(),A(M(NWn,1),z,511,0,[_k,UR])}function sC(n,e,t,i){return t>=0?n.jh(e,t,i):n.Sg(null,t,i)}function n$(n){return n.b.b==0?n.a.$e():aD(n.b)}function W1e(n){if(n.p!=5)throw T(new fu);return ge(n.f)}function X1e(n){if(n.p!=5)throw T(new fu);return ge(n.k)}function VW(n){return B(n.a)===B((eF(),gH))&&Vje(n),n.a}function nMn(n){this.a=u(pe(n),271),this.b=(Pn(),new Hz(n))}function eMn(n,e){bte(this,new fn(n.a,n.b)),wte(this,p8(e))}function Id(){Id=N,Rl=new iz(Y2,0),Lg=new iz(Z2,1)}function xf(){xf=N,M0=new ez(Z2,0),I1=new ez(Y2,1)}function Od(){rie.call(this,new s2(sb(12))),Bz(!0),this.a=2}function e$(n,e,t){Je(),cd.call(this,n),this.b=e,this.a=t}function QW(n,e,t){ms(),uj.call(this,e),this.a=n,this.b=t}function tMn(n){kE.call(this),eV(this),this.a=n,this.c=!0}function iMn(n){var e;e=n.c.d.b,n.b=e,n.a=n.c.d,e.a=n.c.d.b=n}function oC(n){var e;ebe(n.a),byn(n.a),e=new tj(n.a),TQ(e)}function V1e(n,e){aBn(n,!0),Zc(n.e.wf(),new $U(n,!0,e))}function fC(n,e){return LAn(e),Y0e(n,F(be,Le,25,e,15,1),e)}function Q1e(n,e){return C2(),n==Pt(hh(e))||n==Pt(ml(e))}function vc(n,e){return e==null?Vr(Sr(n.f,null)):n5(n.g,e)}function J1e(n){return n.b==0?null:(ne(n.b!=0),Ts(n,n.a.a))}function Gt(n){return Math.max(Math.min(n,nt),-2147483648)|0}function Y1e(n,e){var t=lR[n.charCodeAt(0)];return t??n}function hC(n,e){return tC(n,"set1"),tC(e,"set2"),new Z8n(n,e)}function Z1e(n,e){var t;return t=W0e(n.f,e),st(vE(t),n.f.d)}function R5(n,e){var t,i;return t=e,i=new dI,n_n(n,t,i),i.d}function t$(n,e,t,i){var r;r=new Gjn,e.a[t.g]=r,m2(n.b,i,r)}function JW(n,e,t){var i;i=n.Yg(e),i>=0?n.sh(i,t):_Y(n,e,t)}function Dw(n,e,t){dC(),n&&it(dH,n,e),n&&it($y,n,t)}function rMn(n,e,t){this.i=new X,this.b=n,this.g=e,this.a=t}function lC(n,e,t){this.c=new X,this.e=n,this.f=e,this.b=t}function YW(n,e,t){this.a=new X,this.e=n,this.f=e,this.c=t}function cMn(n,e){oE(this),this.f=e,this.g=n,eC(this),this._d()}function A8(n,e){var t;t=n.q.getHours(),n.q.setDate(e),S6(n,t)}function uMn(n,e){var t;for(pe(e),t=n.a;t;t=t.c)e.Od(t.g,t.i)}function sMn(n){var e;return e=new kj(sb(n.length)),qV(e,n),e}function nle(n){function e(){}return e.prototype=n||{},new e}function ele(n,e){return LOn(n,e)?(FIn(n),!0):!1}function Dh(n,e){if(e==null)throw T(new Nv);return Y2e(n,e)}function tle(n){if(n.qe())return null;var e=n.n;return RA[e]}function S8(n){return n.Db>>16!=3?null:u(n.Cb,33)}function ef(n){return n.Db>>16!=9?null:u(n.Cb,33)}function oMn(n){return n.Db>>16!=6?null:u(n.Cb,79)}function fMn(n){return n.Db>>16!=7?null:u(n.Cb,235)}function hMn(n){return n.Db>>16!=7?null:u(n.Cb,160)}function Pt(n){return n.Db>>16!=11?null:u(n.Cb,33)}function lMn(n,e){var t;return t=n.Yg(e),t>=0?n.lh(t):Ox(n,e)}function aMn(n,e){var t;return t=new iW(e),dxn(t,n),new du(t)}function ZW(n){var e;return e=n.d,e=n.si(n.f),me(n,e),e.Ob()}function dMn(n,e){return n.b+=e.b,n.c+=e.c,n.d+=e.d,n.a+=e.a,n}function i$(n,e){return y.Math.abs(n)0}function bMn(){this.a=new Sh,this.e=new hi,this.g=0,this.i=0}function wMn(n){this.a=n,this.b=F(lJn,q,1944,n.e.length,0,2)}function r$(n,e,t){var i;i=tDn(n,e,t),n.b=new tT(i.c.length)}function tf(){tf=N,Ja=new nz(hN,0),yf=new nz("UP",1)}function aC(){aC=N,kK=new rz(PHn,0),Ton=new rz("FAN",1)}function dC(){dC=N,dH=new we,$y=new we,Ere(Azn,new z2n)}function rle(n){if(n.p!=0)throw T(new fu);return b5(n.f,0)}function cle(n){if(n.p!=0)throw T(new fu);return b5(n.k,0)}function gMn(n){return n.Db>>16!=3?null:u(n.Cb,147)}function y3(n){return n.Db>>16!=6?null:u(n.Cb,235)}function eb(n){return n.Db>>16!=17?null:u(n.Cb,26)}function pMn(n,e){var t=n.a=n.a||[];return t[e]||(t[e]=n.le(e))}function ule(n,e){var t;return t=n.a.get(e),t??new Array}function sle(n,e){var t;t=n.q.getHours(),n.q.setMonth(e),S6(n,t)}function yr(n,e,t){return e==null?_c(n.f,null,t):Gd(n.g,e,t)}function _5(n,e,t,i,r,c){return new Lh(n.e,e,n.aj(),t,i,r,c)}function P8(n,e,t){return n.a=Zu(n.a,0,e)+(""+t)+r8(n.a,e),n}function ole(n,e,t){return W(n.a,(QE(),ex(e,t),new bd(e,t))),n}function nX(n){return _z(n.c),n.e=n.a=n.c,n.c=n.c.c,++n.d,n.a.f}function vMn(n){return _z(n.e),n.c=n.a=n.e,n.e=n.e.e,--n.d,n.a.f}function Ci(n,e){n.d&&Jc(n.d.e,n),n.d=e,n.d&&W(n.d.e,n)}function Hi(n,e){n.c&&Jc(n.c.g,n),n.c=e,n.c&&W(n.c.g,n)}function jr(n,e){n.c&&Jc(n.c.a,n),n.c=e,n.c&&W(n.c.a,n)}function Hr(n,e){n.i&&Jc(n.i.j,n),n.i=e,n.i&&W(n.i.j,n)}function mMn(n,e,t){this.a=e,this.c=n,this.b=(pe(t),new du(t))}function kMn(n,e,t){this.a=e,this.c=n,this.b=(pe(t),new du(t))}function yMn(n,e){this.a=n,this.c=Qr(this.a),this.b=new uC(e)}function fle(n){var e;return Ta(n),e=new hi,gt(n,new Vvn(e))}function tb(n,e){if(n<0||n>e)throw T(new mr(cnn+n+unn+e))}function eX(n,e){return lCn(n.a,e)?TW(n,u(e,22).g,null):null}function hle(n){return yF(),qn(),u(n.a,81).d.e!=0}function jMn(){jMn=N,azn=Fe((aj(),A(M(lzn,1),z,538,0,[fR])))}function EMn(){EMn=N,YQn=Eu(new li,(Qi(),Or),(rr(),Kk))}function tX(){tX=N,ZQn=Eu(new li,(Qi(),Or),(rr(),Kk))}function CMn(){CMn=N,eJn=Eu(new li,(Qi(),Or),(rr(),Kk))}function TMn(){TMn=N,gJn=Ze(new li,(Qi(),Or),(rr(),km))}function ns(){ns=N,mJn=Ze(new li,(Qi(),Or),(rr(),km))}function MMn(){MMn=N,kJn=Ze(new li,(Qi(),Or),(rr(),km))}function c$(){c$=N,TJn=Ze(new li,(Qi(),Or),(rr(),km))}function AMn(){AMn=N,lYn=Eu(new li,(c4(),Gm),(k6(),lK))}function aa(n,e,t,i){this.c=n,this.d=i,s$(this,e),o$(this,t)}function M2(n){this.c=new Tt,this.b=n.b,this.d=n.c,this.a=n.a}function u$(n){this.a=y.Math.cos(n),this.b=y.Math.sin(n)}function s$(n,e){n.a&&Jc(n.a.k,n),n.a=e,n.a&&W(n.a.k,n)}function o$(n,e){n.b&&Jc(n.b.f,n),n.b=e,n.b&&W(n.b.f,n)}function SMn(n,e){mhe(n,n.b,n.c),u(n.b.b,65),e&&u(e.b,65).b}function lle(n,e){vQ(n,e),I(n.Cb,88)&&yb(Ou(u(n.Cb,88)),2)}function f$(n,e){I(n.Cb,88)&&yb(Ou(u(n.Cb,88)),4),Ic(n,e)}function bC(n,e){I(n.Cb,179)&&(u(n.Cb,179).tb=null),Ic(n,e)}function mc(n,e){return er(),R$(e)?new IE(e,n):new i8(e,n)}function ale(n,e){var t,i;t=e.c,i=t!=null,i&&j2(n,new Z0(e.c))}function PMn(n){var e,t;return t=(Qp(),e=new ud,e),O3(t,n),t}function IMn(n){var e,t;return t=(Qp(),e=new ud,e),O3(t,n),t}function OMn(n,e){var t;return t=new Rs(n),e.c[e.c.length]=t,t}function DMn(n,e){var t;return t=u(ab(T2(n.a),e),14),t?t.gc():0}function $Mn(n){var e;return Ta(n),e=(Ow(),Ow(),Nin),qC(n,e)}function FMn(n){for(var e;;)if(e=n.Pb(),!n.Ob())return e}function iX(n,e){tie.call(this,new s2(sb(n))),rs(e,W_n),this.a=e}function uh(n,e,t){KDn(e,t,n.gc()),this.c=n,this.a=e,this.b=t-e}function xMn(n,e,t){var i;KDn(e,t,n.c.length),i=t-e,AG(n.c,e,i)}function dle(n,e){Dyn(n,ge(ui(cl(e,24),FM)),ge(ui(e,FM)))}function Ln(n,e){if(n<0||n>=e)throw T(new mr(cnn+n+unn+e))}function Te(n,e){if(n<0||n>=e)throw T(new wG(cnn+n+unn+e))}function xn(n,e){this.b=(_n(n),n),this.a=e&Ib?e:e|64|Bf}function LMn(n){dyn(this),Wmn(this.a,KV(y.Math.max(8,n))<<1)}function rf(n){return Gr(A(M(di,1),q,8,0,[n.i.n,n.n,n.a]))}function ble(){return lf(),A(M(Bu,1),z,132,0,[Win,ls,Rb])}function wle(){return _o(),A(M(_b,1),z,232,0,[Zr,Fc,nc])}function gle(){return Tu(),A(M(Qzn,1),z,461,0,[Vf,Ol,Co])}function ple(){return Yc(),A(M(Yzn,1),z,462,0,[Wo,Dl,To])}function vle(){return qd(),A(M(zrn,1),z,423,0,[yg,Grn,qR])}function mle(){return W5(),A(M(Krn,1),z,379,0,[NR,LR,BR])}function kle(){return i6(),A(M(Gsn,1),z,378,0,[J_,qsn,oP])}function yle(){return F2(),A(M(Kcn,1),z,314,0,[ap,qk,_cn])}function jle(){return VC(),A(M(qcn,1),z,337,0,[Hcn,DS,o_])}function Ele(){return ya(),A(M(aXn,1),z,450,0,[l_,cv,Tg])}function Cle(){return Kd(),A(M(YR,1),z,361,0,[g0,Fl,w0])}function Tle(){return Nh(),A(M(kXn,1),z,303,0,[zk,Ag,dp])}function Mle(){return q3(),A(M(y_,1),z,292,0,[m_,k_,Gk])}function Ale(){return ur(),A(M(zQn,1),z,452,0,[Bm,Su,xc])}function Sle(){return Rh(),A(M(Zsn,1),z,339,0,[Nl,Ysn,tK])}function Ple(){return oT(),A(M(ion,1),z,375,0,[eon,cK,ton])}function Ile(){return dT(),A(M(hon,1),z,377,0,[fK,pv,ew])}function Ole(){return Q3(),A(M(uon,1),z,336,0,[sK,con,Rm])}function Dle(){return uT(),A(M(fon,1),z,338,0,[oon,oK,son])}function $le(){return _d(),A(M(fJn,1),z,454,0,[ry,_m,aP])}function Fle(){return CT(),A(M(gYn,1),z,442,0,[CK,jK,EK])}function xle(){return f7(),A(M(Fon,1),z,380,0,[CP,Don,$on])}function Lle(){return ET(),A(M(Yon,1),z,381,0,[Jon,IK,Qon])}function Nle(){return sT(),A(M(Xon,1),z,293,0,[PK,Won,Uon])}function Ble(){return w7(),A(M(OK,1),z,437,0,[AP,SP,PP])}function Rle(){return _h(),A(M(Khn,1),z,334,0,[HP,F1,i9])}function _le(){return of(),A(M(Phn,1),z,272,0,[jv,cw,Ev])}function Kle(n,e){return o9e(n,e,I(e,99)&&(u(e,18).Bb&Yi)!=0)}function Hle(n,e,t){var i;return i=O6(n,e,!1),i.b<=e&&i.a<=t}function NMn(n,e,t){var i;i=new Jwn,i.b=e,i.a=t,++e.b,W(n.d,i)}function qle(n,e){var t;return t=(_n(n),n).g,Yz(!!t),_n(e),t(e)}function rX(n,e){var t,i;return i=d3(n,e),t=n.a.Zc(i),new Y8n(n,t)}function Gle(n){return n.Db>>16!=6?null:u(Fx(n),235)}function zle(n){if(n.p!=2)throw T(new fu);return ge(n.f)&Ut}function Ule(n){if(n.p!=2)throw T(new fu);return ge(n.k)&Ut}function Wle(n){return n.a==(T3(),uI)&&Ste(n,C9e(n.g,n.b)),n.a}function A2(n){return n.d==(T3(),uI)&&Ite(n,pke(n.g,n.b)),n.d}function j(n){return ne(n.ai?1:0}function BMn(n,e){var t,i;return t=F$(e),i=t,u(te(n.c,i),19).a}function RMn(n,e){var t;for(t=n+"";t.length0&&n.a[--n.d]==0;);n.a[n.d++]==0&&(n.e=0)}function rAn(n){return n.a?n.e.length==0?n.a.a:n.a.a+(""+n.e):n.c}function rae(n){return!!n.a&&Du(n.a.a).i!=0&&!(n.b&&YF(n.b))}function cae(n){return!!n.u&&bc(n.u.a).i!=0&&!(n.n&&JF(n.n))}function cAn(n){return gD(n.e.Hd().gc()*n.c.Hd().gc(),16,new tvn(n))}function uae(n,e){return xCn(tu(n.q.getTime()),tu(e.q.getTime()))}function Lf(n){return u(af(n,F(GR,MN,17,n.c.length,0,1)),474)}function I8(n){return u(af(n,F(mh,E1,10,n.c.length,0,1)),193)}function sae(n){return ns(),!Xi(n)&&!(!Xi(n)&&n.c.i.c==n.d.i.c)}function uAn(n,e,t){var i;i=(pe(n),new du(n)),N3e(new mMn(i,e,t))}function O8(n,e,t){var i;i=(pe(n),new du(n)),B3e(new kMn(i,e,t))}function sAn(n,e){var t;return t=1-e,n.a[t]=eT(n.a[t],t),eT(n,e)}function oAn(n,e){var t;n.e=new oG,t=Cb(e),wi(t,n.c),eBn(n,t,0)}function Ti(n,e,t,i){var r;r=new XH,r.a=e,r.b=t,r.c=i,Ke(n.a,r)}function Z(n,e,t,i){var r;r=new XH,r.a=e,r.b=t,r.c=i,Ke(n.b,r)}function po(n){var e,t,i;return e=new HCn,t=Zx(e,n),UEe(e),i=t,i}function hX(){var n,e,t;return e=(t=(n=new ud,n),t),W(M1n,e),e}function pC(n){return n.j.c=F(Zn,rn,1,0,5,1),KW(n.c),Khe(n.a),n}function $w(n){return Qv(),I(n.g,10)?u(n.g,10):null}function oae(n){return Iw(n).dc()?!1:(sce(n,new Np),!0)}function fae(n){if(!("stack"in n))try{throw n}catch{}return n}function D8(n,e){if(n<0||n>=e)throw T(new mr(j6e(n,e)));return n}function fAn(n,e,t){if(n<0||et)throw T(new mr(W5e(n,e,t)))}function d$(n,e){if(ci(n.a,e),e.d)throw T(new _r(wKn));e.d=n}function b$(n,e){if(e.$modCount!=n.$modCount)throw T(new vs)}function hAn(n,e){return I(e,42)?ix(n.a,u(e,42)):!1}function lAn(n,e){return I(e,42)?ix(n.a,u(e,42)):!1}function aAn(n,e){return I(e,42)?ix(n.a,u(e,42)):!1}function hae(n,e){return n.a<=n.b?(e.ud(n.a++),!0):!1}function $d(n){var e;return Fr(n)?(e=n,e==-0?0:e):m0e(n)}function vC(n){var e;return fl(n),e=new fln,vw(n.a,new Wvn(e)),e}function dAn(n){var e;return fl(n),e=new oln,vw(n.a,new Uvn(e)),e}function Pi(n,e){this.a=n,$v.call(this,n),tb(e,n.gc()),this.b=e}function lX(n){this.e=n,this.b=this.e.a.entries(),this.a=new Array}function lae(n){return gD(n.e.Hd().gc()*n.c.Hd().gc(),273,new evn(n))}function mC(n){return new Pc((rs(n,AL),KC(qi(qi(5,n),n/10|0))))}function bAn(n){return u(af(n,F(FWn,UKn,11,n.c.length,0,1)),1943)}function aae(n,e,t){return t.f.c.length>0?SW(n.a,e,t):SW(n.b,e,t)}function dae(n,e,t){n.d&&Jc(n.d.e,n),n.d=e,n.d&&Q0(n.d.e,t,n)}function w$(n,e){uTe(e,n),WU(n.d),WU(u(k(n,(nn(),eP)),207))}function H5(n,e){cTe(e,n),UU(n.d),UU(u(k(n,(nn(),eP)),207))}function Fd(n,e){var t,i;return t=Dh(n,e),i=null,t&&(i=t.fe()),i}function j3(n,e){var t,i;return t=ub(n,e),i=null,t&&(i=t.ie()),i}function q5(n,e){var t,i;return t=Dh(n,e),i=null,t&&(i=t.ie()),i}function $h(n,e){var t,i;return t=Dh(n,e),i=null,t&&(i=tY(t)),i}function bae(n,e,t){var i;return i=i4(t),gM(n.g,i,e),gM(n.i,e,t),e}function wae(n,e,t){var i;i=q2e();try{return kue(n,e,t)}finally{Mae(i)}}function wAn(n){var e;e=n.Wg(),this.a=I(e,69)?u(e,69).Zh():e.Kc()}function li(){P9n.call(this),this.j.c=F(Zn,rn,1,0,5,1),this.a=-1}function aX(n,e,t,i){this.d=n,this.n=e,this.g=t,this.o=i,this.p=-1}function gAn(n,e,t,i){this.e=i,this.d=null,this.c=n,this.a=e,this.b=t}function dX(n,e,t){this.d=new r6n(this),this.e=n,this.i=e,this.f=t}function kC(){kC=N,j_=new QG(I4,0),oun=new QG("TOP_LEFT",1)}function pAn(){pAn=N,aon=aTn(Q(1),Q(4)),lon=aTn(Q(1),Q(2))}function vAn(){vAn=N,uZn=Fe((Ij(),A(M(cZn,1),z,551,0,[$K])))}function mAn(){mAn=N,rZn=Fe((Pj(),A(M(lfn,1),z,482,0,[DK])))}function kAn(){kAn=N,CZn=Fe((Jv(),A(M(Dfn,1),z,530,0,[hy])))}function yAn(){yAn=N,IUn=Fe((Aj(),A(M(krn,1),z,481,0,[SR])))}function gae(){return Hd(),A(M(EUn,1),z,406,0,[Ok,Ik,MR,AR])}function pae(){return FC(),A(M(WA,1),z,297,0,[vR,qin,Gin,zin])}function vae(){return d6(),A(M(SUn,1),z,394,0,[Lk,YA,ZA,Nk])}function mae(){return K2(),A(M(TUn,1),z,323,0,[$k,Dk,Fk,xk])}function kae(){return G3(),A(M(jWn,1),z,405,0,[b0,Hb,Kb,kg])}function yae(){return aT(),A(M(KWn,1),z,360,0,[QR,TS,MS,Hk])}function jAn(n,e,t,i){return I(t,54)?new ojn(n,e,t,i):new pW(n,e,t,i)}function jae(){return hf(),A(M(QWn,1),z,411,0,[lp,nv,ev,JR])}function Eae(n){var e;return n.j==(J(),ae)&&(e=GLn(n),au(e,Vn))}function Cae(n,e){var t;t=e.a,Hi(t,e.c.d),Ci(t,e.d.d),fb(t.a,n.n)}function EAn(n,e){return u(yd(KE(u(ct(n.k,e),15).Oc(),jg)),113)}function CAn(n,e){return u(yd(HE(u(ct(n.k,e),15).Oc(),jg)),113)}function Tae(n){return new xn(jbe(u(n.a.dd(),14).gc(),n.a.cd()),16)}function E3(n){return I(n,14)?u(n,14).dc():!n.Kc().Ob()}function S2(n){return Qv(),I(n.g,145)?u(n.g,145):null}function TAn(n){if(n.e.g!=n.b)throw T(new vs);return!!n.c&&n.d>0}function Re(n){return ne(n.b!=n.d.c),n.c=n.b,n.b=n.b.a,++n.a,n.c.c}function bX(n,e){_n(e),St(n.a,n.c,e),n.c=n.c+1&n.a.length-1,MFn(n)}function ll(n,e){_n(e),n.b=n.b-1&n.a.length-1,St(n.a,n.b,e),MFn(n)}function MAn(n,e){var t;for(t=n.j.c.length;t0&&gc(n.g,0,e,0,n.i),e}function IAn(n,e){$j();var t;return t=u(te(eI,n),55),!t||t.wj(e)}function Bae(n){if(n.p!=1)throw T(new fu);return ge(n.f)<<24>>24}function Rae(n){if(n.p!=1)throw T(new fu);return ge(n.k)<<24>>24}function _ae(n){if(n.p!=7)throw T(new fu);return ge(n.k)<<16>>16}function Kae(n){if(n.p!=7)throw T(new fu);return ge(n.f)<<16>>16}function Fh(n){var e;for(e=0;n.Ob();)n.Pb(),e=qi(e,1);return KC(e)}function OAn(n,e){var t;return t=new R0,n.xd(t),t.a+="..",e.yd(t),t.a}function Hae(n,e,t){var i;i=u(te(n.g,t),57),W(n.a.c,new Si(e,i))}function qae(n,e,t){return TD(Y(Vr(Sr(n.f,e))),Y(Vr(Sr(n.f,t))))}function yC(n,e,t){return vM(n,e,t,I(e,99)&&(u(e,18).Bb&Yi)!=0)}function Gae(n,e,t){return m4(n,e,t,I(e,99)&&(u(e,18).Bb&Yi)!=0)}function zae(n,e,t){return b9e(n,e,t,I(e,99)&&(u(e,18).Bb&Yi)!=0)}function pX(n,e){return n==(Qn(),ii)&&e==ii?4:n==ii||e==ii?8:32}function DAn(n,e){return B(e)===B(n)?"(this Map)":e==null?ru:Nr(e)}function Uae(n,e){return u(e==null?Vr(Sr(n.f,null)):n5(n.g,e),281)}function $An(n,e,t){var i;return i=i4(t),it(n.b,i,e),it(n.c,e,t),e}function FAn(n,e){var t;for(t=e;t;)U0(n,t.i,t.j),t=Pt(t);return n}function vX(n,e){var t;return t=C8(f3(new x$(n,e))),DE(new x$(n,e)),t}function sh(n,e){er();var t;return t=u(n,66).Mj(),M5e(t,e),t.Ok(e)}function Wae(n,e,t,i,r){var c;c=m9e(r,t,i),W(e,p6e(r,c)),o5e(n,r,e)}function xAn(n,e,t){n.i=0,n.e=0,e!=t&&(uDn(n,e,t),cDn(n,e,t))}function mX(n,e){var t;t=n.q.getHours(),n.q.setFullYear(e+Tl),S6(n,t)}function Xae(n,e,t){if(t){var i=t.ee();n.a[e]=i(t)}else delete n.a[e]}function g$(n,e,t){if(t){var i=t.ee();t=i(t)}else t=void 0;n.a[e]=t}function LAn(n){if(n<0)throw T(new K9n("Negative array size: "+n))}function bc(n){return n.n||(Ou(n),n.n=new wCn(n,ar,n),Ar(n)),n.n}function G5(n){return ne(n.a=0&&n.a[t]===e[t];t--);return t<0}function KAn(n,e){V3();var t;return t=n.j.g-e.j.g,t!=0?t:0}function HAn(n,e){return _n(e),n.a!=null?$fe(e.Kb(n.a)):UA}function jC(n){var e;return n?new iW(n):(e=new Sh,nF(e,n),e)}function ts(n,e){var t;return e.b.Kb(FPn(n,e.c.Ee(),(t=new Jvn(e),t)))}function EC(n){_J(),Dyn(this,ge(ui(cl(n,24),FM)),ge(ui(n,FM)))}function qAn(){qAn=N,Gzn=Fe(($T(),A(M(Jin,1),z,428,0,[yR,Qin])))}function GAn(){GAn=N,zzn=Fe((RC(),A(M(Zin,1),z,427,0,[Yin,jR])))}function zAn(){zAn=N,WUn=Fe((_C(),A(M(Arn,1),z,424,0,[$R,tS])))}function UAn(){UAn=N,BWn=Fe((B3(),A(M(NWn,1),z,511,0,[_k,UR])))}function WAn(){WAn=N,lXn=Fe((V8(),A(M(Wcn,1),z,419,0,[$S,Ucn])))}function XAn(){XAn=N,wXn=Fe((K8(),A(M(Qcn,1),z,479,0,[Vcn,xS])))}function VAn(){VAn=N,XQn=Fe((x8(),A(M(ron,1),z,376,0,[uK,iy])))}function QAn(){QAn=N,GQn=Fe((z8(),A(M(non,1),z,421,0,[iK,rK])))}function JAn(){JAn=N,sXn=Fe((OC(),A(M(Rcn,1),z,422,0,[Bcn,s_])))}function YAn(){YAn=N,jXn=Fe((kC(),A(M(fun,1),z,420,0,[j_,oun])))}function ZAn(){ZAn=N,RJn=Fe((No(),A(M(BJn,1),z,520,0,[tw,Bl])))}function nSn(){nSn=N,wJn=Fe((z5(),A(M(bJn,1),z,523,0,[Hm,Km])))}function eSn(){eSn=N,jJn=Fe((xf(),A(M(yJn,1),z,516,0,[M0,I1])))}function tSn(){tSn=N,CJn=Fe((tf(),A(M(EJn,1),z,515,0,[Ja,yf])))}function iSn(){iSn=N,UJn=Fe((Id(),A(M(zJn,1),z,455,0,[Rl,Lg])))}function rSn(){rSn=N,hYn=Fe((gC(),A(M(Son,1),z,425,0,[yK,Aon])))}function cSn(){cSn=N,wYn=Fe((iT(),A(M(Pon,1),z,495,0,[EP,mv])))}function uSn(){uSn=N,fYn=Fe((aC(),A(M(Mon,1),z,480,0,[kK,Ton])))}function sSn(){sSn=N,vYn=Fe(($C(),A(M(Oon,1),z,426,0,[Ion,TK])))}function oSn(){oSn=N,TZn=Fe((c7(),A(M(Ffn,1),z,429,0,[DP,$fn])))}function fSn(){fSn=N,sZn=Fe((L8(),A(M(afn,1),z,430,0,[FK,IP])))}function z5(){z5=N,Hm=new ZG("UPPER",0),Km=new ZG("LOWER",1)}function Yae(n,e){var t;t=new r2,la(t,"x",e.a),la(t,"y",e.b),j2(n,t)}function Zae(n,e){var t;t=new r2,la(t,"x",e.a),la(t,"y",e.b),j2(n,t)}function nde(n,e){var t,i;i=!1;do t=JOn(n,e),i=i|t;while(t);return i}function jX(n,e){var t,i;for(t=e,i=0;t>0;)i+=n.a[t],t-=t&-t;return i}function hSn(n,e){var t;for(t=e;t;)U0(n,-t.i,-t.j),t=Pt(t);return n}function $i(n,e){var t,i;for(_n(e),i=n.Kc();i.Ob();)t=i.Pb(),e.td(t)}function lSn(n,e){var t;return t=e.cd(),new bd(t,n.e.pc(t,u(e.dd(),14)))}function Kt(n,e,t,i){var r;r=new aI,r.c=e,r.b=t,r.a=i,i.b=t.a=r,++n.b}function Es(n,e,t){var i;return i=(Ln(e,n.c.length),n.c[e]),n.c[e]=t,i}function ede(n,e,t){return u(e==null?_c(n.f,null,t):Gd(n.g,e,t),281)}function k$(n){return n.c&&n.d?cX(n.c)+"->"+cX(n.d):"e_"+md(n)}function C3(n,e){return(Ta(n),Wv(new $n(n,new UX(e,n.a)))).sd(V4)}function tde(){return Qi(),A(M(Hrn,1),z,356,0,[Qf,$l,Hc,Cc,Or])}function ide(){return J(),A(M(Zi,1),hc,61,0,[Xr,Kn,Vn,ae,Gn])}function rde(n){return gj(),function(){return wae(n,this,arguments)}}function cde(){return Date.now?Date.now():new Date().getTime()}function Xi(n){return!n.c||!n.d?!1:!!n.c.i&&n.c.i==n.d.i}function aSn(n){if(!n.c.Sb())throw T(new ic);return n.a=!0,n.c.Ub()}function $8(n){n.i=0,z9(n.b,null),z9(n.c,null),n.a=null,n.e=null,++n.g}function EX(n){are.call(this,n==null?ru:Nr(n),I(n,78)?u(n,78):null)}function dSn(n){B_n(),Nmn(this),this.a=new Tt,QV(this,n),Ke(this.a,n)}function bSn(){RO(this),this.b=new fn(Ft,Ft),this.a=new fn(Qt,Qt)}function wSn(n,e){this.c=0,this.b=e,qkn.call(this,n,17493),this.a=this.c}function y$(n){CC(),!vf&&(this.c=n,this.e=!0,this.a=new X)}function CC(){CC=N,vf=!0,Fzn=!1,xzn=!1,Nzn=!1,Lzn=!1}function CX(n,e){return I(e,149)?Mn(n.c,u(e,149).c):!1}function TX(n,e){var t;return t=0,n&&(t+=n.f.a/2),e&&(t+=e.f.a/2),t}function j$(n,e){var t;return t=u(xd(n.d,e),23),t||u(xd(n.e,e),23)}function gSn(n){this.b=n,ie.call(this,n),this.a=u(Rn(this.b.a,4),126)}function pSn(n){this.b=n,w2.call(this,n),this.a=u(Rn(this.b.a,4),126)}function Ou(n){return n.t||(n.t=new Amn(n),s6(new _9n(n),0,n.t)),n.t}function ude(){return sr(),A(M(e9,1),z,103,0,[kh,Ao,Zs,Jh,Yh])}function sde(){return qw(),A(M(c9,1),z,249,0,[Hl,Cy,Hhn,r9,qhn])}function ode(){return Ho(),A(M($1,1),z,175,0,[Xn,vi,Zf,Ya,D1])}function fde(){return P7(),A(M(gfn,1),z,316,0,[dfn,xK,wfn,LK,bfn])}function hde(){return b6(),A(M(Usn,1),z,315,0,[zsn,nK,eK,Lm,Nm])}function lde(){return Pa(),A(M(zcn,1),z,335,0,[f_,Gcn,h_,Em,jm])}function ade(){return g4(),A(M(eZn,1),z,355,0,[Ng,Ep,Qm,Vm,Jm])}function dde(){return Vw(),A(M(YWn,1),z,363,0,[SS,IS,OS,PS,AS])}function bde(){return Ss(),A(M(jun,1),z,163,0,[Qk,Sm,xl,Pm,Ub])}function T3(){T3=N;var n,e;cI=(Qp(),e=new fj,e),uI=(n=new BI,n)}function vSn(n){var e;return n.c||(e=n.r,I(e,88)&&(n.c=u(e,26))),n.c}function wde(n){return n.e=3,n.d=n.Yb(),n.e!=2?(n.e=0,!0):!1}function E$(n){var e,t,i;return e=n&Nu,t=n>>22&Nu,i=n<0?Wh:0,Bc(e,t,i)}function gde(n){var e,t,i,r;for(t=n,i=0,r=t.length;i0?g$n(n,e):BNn(n,-e)}function MX(n,e){return e==0||n.e==0?n:e>0?BNn(n,e):g$n(n,-e)}function ve(n){if(Se(n))return n.c=n.a,n.a.Pb();throw T(new ic)}function kSn(n){var e,t;return e=n.c.i,t=n.d.i,e.k==(Qn(),Xt)&&t.k==Xt}function C$(n){var e;return e=new Pd,Pr(e,n),H(e,(nn(),Mr),null),e}function T$(n,e,t){var i;return i=n.Yg(e),i>=0?n._g(i,t,!0):Yd(n,e,t)}function AX(n,e,t,i){var r;for(r=0;re)throw T(new mr(fY(n,e,"index")));return n}function M$(n,e,t,i){var r;return r=F(be,Le,25,e,15,1),Pve(r,n,e,t,i),r}function vde(n,e){var t;t=n.q.getHours()+(e/60|0),n.q.setMinutes(e),S6(n,t)}function mde(n,e){return y.Math.min(al(e.a,n.d.d.c),al(e.b,n.d.d.c))}function O2(n,e){return ki(e)?e==null?MY(n.f,null):$On(n.g,e):MY(n.f,e)}function sf(n){this.c=n,this.a=new E(this.c.a),this.b=new E(this.c.b)}function TC(){this.e=new X,this.c=new X,this.d=new X,this.b=new X}function TSn(){this.g=new zq,this.b=new zq,this.a=new X,this.k=new X}function MSn(n,e,t){this.a=n,this.c=e,this.d=t,W(e.e,this),W(t.b,this)}function ASn(n,e){Hkn.call(this,e.rd(),e.qd()&-6),_n(n),this.a=n,this.b=e}function SSn(n,e){qkn.call(this,e.rd(),e.qd()&-6),_n(n),this.a=n,this.b=e}function FX(n,e){FO.call(this,e.rd(),e.qd()&-6),_n(n),this.a=n,this.b=e}function MC(n,e,t){this.a=n,this.b=e,this.c=t,W(n.t,this),W(e.i,this)}function AC(){this.b=new Tt,this.a=new Tt,this.b=new Tt,this.a=new Tt}function SC(){SC=N,Ym=new kt("org.eclipse.elk.labels.labelManager")}function PSn(){PSn=N,$cn=new ri("separateLayerConnections",(aT(),QR))}function No(){No=N,tw=new tz("REGULAR",0),Bl=new tz("CRITICAL",1)}function x8(){x8=N,uK=new YG("STACKED",0),iy=new YG("SEQUENCED",1)}function L8(){L8=N,FK=new oz("FIXED",0),IP=new oz("CENTER_NODE",1)}function kde(n,e){var t;return t=CEe(n,e),n.b=new tT(t.c.length),Lje(n,t)}function yde(n,e,t){var i;return++n.e,--n.f,i=u(n.d[e].$c(t),133),i.dd()}function ISn(n){var e;return n.a||(e=n.r,I(e,148)&&(n.a=u(e,148))),n.a}function xX(n){if(n.a){if(n.e)return xX(n.e)}else return n;return null}function jde(n,e){return n.pe.p?-1:0}function PC(n,e){return _n(e),n.c=0,"Initial capacity must not be negative")}function $Sn(){$Sn=N,Vzn=Fe((_o(),A(M(_b,1),z,232,0,[Zr,Fc,nc])))}function FSn(){FSn=N,Jzn=Fe((Tu(),A(M(Qzn,1),z,461,0,[Vf,Ol,Co])))}function xSn(){xSn=N,Zzn=Fe((Yc(),A(M(Yzn,1),z,462,0,[Wo,Dl,To])))}function LSn(){LSn=N,Bzn=Fe((lf(),A(M(Bu,1),z,132,0,[Win,ls,Rb])))}function NSn(){NSn=N,bWn=Fe((W5(),A(M(Krn,1),z,379,0,[NR,LR,BR])))}function BSn(){BSn=N,PWn=Fe((qd(),A(M(zrn,1),z,423,0,[yg,Grn,qR])))}function RSn(){RSn=N,oXn=Fe((F2(),A(M(Kcn,1),z,314,0,[ap,qk,_cn])))}function _Sn(){_Sn=N,fXn=Fe((VC(),A(M(qcn,1),z,337,0,[Hcn,DS,o_])))}function KSn(){KSn=N,dXn=Fe((ya(),A(M(aXn,1),z,450,0,[l_,cv,Tg])))}function HSn(){HSn=N,rXn=Fe((Kd(),A(M(YR,1),z,361,0,[g0,Fl,w0])))}function qSn(){qSn=N,yXn=Fe((Nh(),A(M(kXn,1),z,303,0,[zk,Ag,dp])))}function GSn(){GSn=N,mXn=Fe((q3(),A(M(y_,1),z,292,0,[m_,k_,Gk])))}function zSn(){zSn=N,RQn=Fe((i6(),A(M(Gsn,1),z,378,0,[J_,qsn,oP])))}function USn(){USn=N,WQn=Fe((oT(),A(M(ion,1),z,375,0,[eon,cK,ton])))}function WSn(){WSn=N,qQn=Fe((Rh(),A(M(Zsn,1),z,339,0,[Nl,Ysn,tK])))}function XSn(){XSn=N,UQn=Fe((ur(),A(M(zQn,1),z,452,0,[Bm,Su,xc])))}function VSn(){VSn=N,JQn=Fe((dT(),A(M(hon,1),z,377,0,[fK,pv,ew])))}function QSn(){QSn=N,VQn=Fe((Q3(),A(M(uon,1),z,336,0,[sK,con,Rm])))}function JSn(){JSn=N,QQn=Fe((uT(),A(M(fon,1),z,338,0,[oon,oK,son])))}function YSn(){YSn=N,hJn=Fe((_d(),A(M(fJn,1),z,454,0,[ry,_m,aP])))}function ZSn(){ZSn=N,pYn=Fe((CT(),A(M(gYn,1),z,442,0,[CK,jK,EK])))}function nPn(){nPn=N,mYn=Fe((f7(),A(M(Fon,1),z,380,0,[CP,Don,$on])))}function ePn(){ePn=N,LYn=Fe((ET(),A(M(Yon,1),z,381,0,[Jon,IK,Qon])))}function tPn(){tPn=N,xYn=Fe((sT(),A(M(Xon,1),z,293,0,[PK,Won,Uon])))}function iPn(){iPn=N,iZn=Fe((w7(),A(M(OK,1),z,437,0,[AP,SP,PP])))}function rPn(){rPn=N,une=Fe((_h(),A(M(Khn,1),z,334,0,[HP,F1,i9])))}function cPn(){cPn=N,tne=Fe((of(),A(M(Phn,1),z,272,0,[jv,cw,Ev])))}function Pde(){return Mi(),A(M(Ghn,1),z,98,0,[ql,Ef,Tv,td,Eh,Ac])}function wa(n,e){return!n.o&&(n.o=new Xu((Dc(),Ul),S0,n,0)),NF(n.o,e)}function Ide(n){return!n.g&&(n.g=new Qy),!n.g.d&&(n.g.d=new Cmn(n)),n.g.d}function Ode(n){return!n.g&&(n.g=new Qy),!n.g.a&&(n.g.a=new Tmn(n)),n.g.a}function Dde(n){return!n.g&&(n.g=new Qy),!n.g.b&&(n.g.b=new Emn(n)),n.g.b}function N8(n){return!n.g&&(n.g=new Qy),!n.g.c&&(n.g.c=new Mmn(n)),n.g.c}function $de(n,e,t){var i,r;for(r=new H3(e,n),i=0;it||e=0?n._g(t,!0,!0):Yd(n,e,!0)}function Qde(n,e){return ni(K(Y(k(n,(G(),k0)))),K(Y(k(e,k0))))}function aPn(){aPn=N,aYn=Xd(Xd(Dj(new li,(c4(),qm)),(k6(),pP)),aK)}function Jde(n,e,t){var i;return i=tDn(n,e,t),n.b=new tT(i.c.length),JY(n,i)}function Yde(n){if(n.b<=0)throw T(new ic);return--n.b,n.a-=n.c.c,Q(n.a)}function Zde(n){var e;if(!n.a)throw T(new gTn);return e=n.a,n.a=Pt(n.a),e}function n0e(n){for(;!n.a;)if(!nEn(n.c,new Xvn(n)))return!1;return!0}function $2(n){var e;return pe(n),I(n,198)?(e=u(n,198),e):new dvn(n)}function e0e(n){DC(),u(n.We((Xe(),rw)),174).Fc((Mu(),Ty)),n.Ye(eH,null)}function DC(){DC=N,SZn=new n2n,IZn=new e2n,PZn=Rwe((Xe(),eH),SZn,_l,IZn)}function $C(){$C=N,Ion=new sz("LEAF_NUMBER",0),TK=new sz("NODE_SIZE",1)}function t0e(n,e,t){n.a=e,n.c=t,n.b.a.$b(),_s(n.d),n.e.a.c=F(Zn,rn,1,0,5,1)}function $$(n){n.a=F(be,Le,25,n.b+1,15,1),n.c=F(be,Le,25,n.b,15,1),n.d=0}function i0e(n,e){n.a.ue(e.d,n.b)>0&&(W(n.c,new QU(e.c,e.d,n.d)),n.b=e.d)}function zX(n,e){if(n.g==null||e>=n.i)throw T(new xO(e,n.i));return n.g[e]}function dPn(n,e,t){if(W3(n,t),t!=null&&!n.wj(t))throw T(new xI);return t}function bPn(n){var e;if(n.Ek())for(e=n.i-1;e>=0;--e)D(n,e);return gX(n)}function r0e(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[0];)t=e;return t}function c0e(n,e){var t,i;return LAn(e),t=(i=n.slice(0,e),WX(i,n)),t.length=e,t}function S3(n,e,t,i){var r;i=(Ow(),i||Lin),r=n.slice(e,t),hY(r,n,e,t,-e,i)}function Cs(n,e,t,i,r){return e<0?Yd(n,t,i):u(t,66).Nj().Pj(n,n.yh(),e,i,r)}function u0e(n){return I(n,172)?""+u(n,172).a:n==null?null:Nr(n)}function s0e(n){return I(n,172)?""+u(n,172).a:n==null?null:Nr(n)}function wPn(n,e){if(e.a)throw T(new _r(wKn));ci(n.a,e),e.a=n,!n.j&&(n.j=e)}function UX(n,e){FO.call(this,e.rd(),e.qd()&-16449),_n(n),this.a=n,this.c=e}function gPn(n,e){var t,i;return i=e/n.c.Hd().gc()|0,t=e%n.c.Hd().gc(),D2(n,i,t)}function Tu(){Tu=N,Vf=new oO(Y2,0),Ol=new oO(I4,1),Co=new oO(Z2,2)}function FC(){FC=N,vR=new Lj("All",0),qin=new lyn,Gin=new Eyn,zin=new ayn}function pPn(){pPn=N,Dzn=Fe((FC(),A(M(WA,1),z,297,0,[vR,qin,Gin,zin])))}function vPn(){vPn=N,EWn=Fe((G3(),A(M(jWn,1),z,405,0,[b0,Hb,Kb,kg])))}function mPn(){mPn=N,CUn=Fe((Hd(),A(M(EUn,1),z,406,0,[Ok,Ik,MR,AR])))}function kPn(){kPn=N,MUn=Fe((K2(),A(M(TUn,1),z,323,0,[$k,Dk,Fk,xk])))}function yPn(){yPn=N,PUn=Fe((d6(),A(M(SUn,1),z,394,0,[Lk,YA,ZA,Nk])))}function jPn(){jPn=N,WJn=Fe((c4(),A(M(won,1),z,393,0,[gP,qm,uy,Gm])))}function EPn(){EPn=N,HWn=Fe((aT(),A(M(KWn,1),z,360,0,[QR,TS,MS,Hk])))}function CPn(){CPn=N,FYn=Fe((qT(),A(M(zon,1),z,340,0,[SK,qon,Gon,Hon])))}function TPn(){TPn=N,JWn=Fe((hf(),A(M(QWn,1),z,411,0,[lp,nv,ev,JR])))}function MPn(){MPn=N,_Qn=Fe((wb(),A(M(Z_,1),z,197,0,[fP,Y_,xg,Fg])))}function APn(){APn=N,Ene=Fe((Vu(),A(M(jne,1),z,396,0,[gs,Yhn,Jhn,Zhn])))}function SPn(){SPn=N,one=Fe((us(),A(M(sne,1),z,285,0,[Ey,yh,Kl,jy])))}function PPn(){PPn=N,ine=Fe((Hh(),A(M(cH,1),z,218,0,[rH,yy,Cv,Sp])))}function IPn(){IPn=N,kne=Fe((AT(),A(M(Qhn,1),z,311,0,[oH,Whn,Vhn,Xhn])))}function OPn(){OPn=N,vne=Fe((Qu(),A(M(o9,1),z,374,0,[Ay,id,My,uw])))}function DPn(){DPn=N,mM(),F1n=Ft,Tee=Qt,x1n=new S9(Ft),Mee=new S9(Qt)}function K8(){K8=N,Vcn=new VG(Xh,0),xS=new VG("IMPROVE_STRAIGHTNESS",1)}function o0e(n,e){return h3(),W(n,new Si(e,Q(e.e.c.length+e.g.c.length)))}function f0e(n,e){return h3(),W(n,new Si(e,Q(e.e.c.length+e.g.c.length)))}function WX(n,e){return U8(e)!=10&&A($u(e),e.hm,e.__elementTypeId$,U8(e),n),n}function Jc(n,e){var t;return t=xr(n,e,0),t==-1?!1:(h1(n,t),!0)}function $Pn(n,e){var t;return t=u(O2(n.e,e),387),t?(ZU(t),t.e):null}function P3(n){var e;return Fr(n)&&(e=0-n,!isNaN(e))?e:bl(z3(n))}function xr(n,e,t){for(;t=0?BT(n,t,!0,!0):Yd(n,e,!0)}function YX(n,e){Qv();var t,i;return t=S2(n),i=S2(e),!!t&&!!i&&!V$n(t.k,i.k)}function a0e(n,e){nu(n,e==null||jE((_n(e),e))||isNaN((_n(e),e))?0:(_n(e),e))}function d0e(n,e){eu(n,e==null||jE((_n(e),e))||isNaN((_n(e),e))?0:(_n(e),e))}function b0e(n,e){Rd(n,e==null||jE((_n(e),e))||isNaN((_n(e),e))?0:(_n(e),e))}function w0e(n,e){Bd(n,e==null||jE((_n(e),e))||isNaN((_n(e),e))?0:(_n(e),e))}function BPn(n){(this.q?this.q:(Pn(),Pn(),vh)).Ac(n.q?n.q:(Pn(),Pn(),vh))}function g0e(n,e){return I(e,99)&&u(e,18).Bb&Yi?new LO(e,n):new H3(e,n)}function p0e(n,e){return I(e,99)&&u(e,18).Bb&Yi?new LO(e,n):new H3(e,n)}function RPn(n,e){vrn=new Wy,AUn=e,gm=n,u(gm.b,65),BX(gm,vrn,null),DRn(gm)}function B$(n,e,t){var i;return i=n.g[e],k5(n,e,n.oi(e,t)),n.gi(e,t,i),n.ci(),i}function BC(n,e){var t;return t=n.Xc(e),t>=0?(n.$c(t),!0):!1}function R$(n){var e;return n.d!=n.r&&(e=qs(n),n.e=!!e&&e.Cj()==kGn,n.d=e),n.e}function _$(n,e){var t;for(pe(n),pe(e),t=!1;e.Ob();)t=t|n.Fc(e.Pb());return t}function xd(n,e){var t;return t=u(te(n.e,e),387),t?(Oyn(n,t),t.e):null}function _Pn(n){var e,t;return e=n/60|0,t=n%60,t==0?""+e:""+e+":"+(""+t)}function qr(n,e){var t,i;return Ta(n),i=new FX(e,n.a),t=new iEn(i),new $n(n,t)}function ub(n,e){var t=n.a[e],i=(cF(),dR)[typeof t];return i?i(t):tQ(typeof t)}function v0e(n){switch(n.g){case 0:return nt;case 1:return-1;default:return 0}}function m0e(n){return mJ(n,(I3(),pin))<0?-xce(z3(n)):n.l+n.m*J2+n.h*$a}function U8(n){return n.__elementTypeCategory$==null?10:n.__elementTypeCategory$}function K$(n){var e;return e=n.b.c.length==0?null:un(n.b,0),e!=null&&J$(n,0),e}function KPn(n,e){for(;e[0]=0;)++e[0]}function W8(n,e){this.e=e,this.a=FOn(n),this.a<54?this.f=$d(n):this.c=m7(n)}function HPn(n,e,t,i){Je(),cd.call(this,26),this.c=n,this.a=e,this.d=t,this.b=i}function oh(n,e,t){var i,r;for(i=10,r=0;rn.a[i]&&(i=t);return i}function T0e(n,e){var t;return t=zd(n.e.c,e.e.c),t==0?ni(n.e.d,e.e.d):t}function Fw(n,e){return e.e==0||n.e==0?W4:(a4(),Hx(n,e))}function M0e(n,e){if(!n)throw T(new Hn(P8e("Enum constant undefined: %s",e)))}function X5(){X5=N,MWn=new San,AWn=new Man,CWn=new $an,TWn=new Fan,SWn=new xan}function RC(){RC=N,Yin=new qG("BY_SIZE",0),jR=new qG("BY_SIZE_AND_SHAPE",1)}function _C(){_C=N,$R=new GG("EADES",0),tS=new GG("FRUCHTERMAN_REINGOLD",1)}function V8(){V8=N,$S=new XG("READING_DIRECTION",0),Ucn=new XG("ROTATION",1)}function GPn(){GPn=N,hXn=Fe((Pa(),A(M(zcn,1),z,335,0,[f_,Gcn,h_,Em,jm])))}function zPn(){zPn=N,KQn=Fe((b6(),A(M(Usn,1),z,315,0,[zsn,nK,eK,Lm,Nm])))}function UPn(){UPn=N,ZWn=Fe((Vw(),A(M(YWn,1),z,363,0,[SS,IS,OS,PS,AS])))}function WPn(){WPn=N,EXn=Fe((Ss(),A(M(jun,1),z,163,0,[Qk,Sm,xl,Pm,Ub])))}function XPn(){XPn=N,oZn=Fe((P7(),A(M(gfn,1),z,316,0,[dfn,xK,wfn,LK,bfn])))}function VPn(){VPn=N,OZn=Fe((Ho(),A(M($1,1),z,175,0,[Xn,vi,Zf,Ya,D1])))}function QPn(){QPn=N,tZn=Fe((g4(),A(M(eZn,1),z,355,0,[Ng,Ep,Qm,Vm,Jm])))}function JPn(){JPn=N,vWn=Fe((Qi(),A(M(Hrn,1),z,356,0,[Qf,$l,Hc,Cc,Or])))}function YPn(){YPn=N,ene=Fe((sr(),A(M(e9,1),z,103,0,[kh,Ao,Zs,Jh,Yh])))}function ZPn(){ZPn=N,hne=Fe((qw(),A(M(c9,1),z,249,0,[Hl,Cy,Hhn,r9,qhn])))}function nIn(){nIn=N,dne=Fe((J(),A(M(Zi,1),hc,61,0,[Xr,Kn,Vn,ae,Gn])))}function H$(n,e){var t;return t=u(te(n.a,e),134),t||(t=new pI,it(n.a,e,t)),t}function eIn(n){var e;return e=u(k(n,(G(),p0)),305),e?e.a==n:!1}function tIn(n){var e;return e=u(k(n,(G(),p0)),305),e?e.i==n:!1}function iIn(n,e){return _n(e),mW(n),n.d.Ob()?(e.td(n.d.Pb()),!0):!1}function KC(n){return fc(n,nt)>0?nt:fc(n,Bi)<0?Bi:ge(n)}function sb(n){return n<3?(rs(n,J_n),n+1):n=0&&e=-.01&&n.a<=wf&&(n.a=0),n.b>=-.01&&n.b<=wf&&(n.b=0),n}function cIn(n,e){return e==(sD(),sD(),Pzn)?n.toLocaleLowerCase():n.toLowerCase()}function nV(n){return(n.i&2?"interface ":n.i&1?"":"class ")+(Ph(n),n.o)}function Cr(n){var e,t;t=(e=new RI,e),me((!n.q&&(n.q=new V(co,n,11,10)),n.q),t)}function A0e(n,e){var t;return t=e>0?e-1:e,e8n(Kie(IIn(YU(new zp,t),n.n),n.j),n.k)}function S0e(n,e,t,i){var r;n.j=-1,EY(n,iY(n,e,t),(er(),r=u(e,66).Mj(),r.Ok(i)))}function uIn(n){this.g=n,this.f=new X,this.a=y.Math.min(this.g.c.c,this.g.d.c)}function sIn(n){this.b=new X,this.a=new X,this.c=new X,this.d=new X,this.e=n}function oIn(n,e){this.a=new we,this.e=new we,this.b=(i6(),oP),this.c=n,this.b=e}function fIn(n,e,t){kE.call(this),eV(this),this.a=n,this.c=t,this.b=e.d,this.f=e.e}function hIn(n){this.d=n,this.c=n.c.vc().Kc(),this.b=null,this.a=null,this.e=(aj(),fR)}function Ld(n){if(n<0)throw T(new Hn("Illegal Capacity: "+n));this.g=this.ri(n)}function P0e(n,e){if(0>n||n>e)throw T(new bG("fromIndex: 0, toIndex: "+n+tnn+e))}function I0e(n){var e;if(n.a==n.b.a)throw T(new ic);return e=n.a,n.c=e,n.a=n.a.e,e}function HC(n){var e;z0(!!n.c),e=n.c.a,Ts(n.d,n.c),n.b==n.c?n.b=e:--n.a,n.c=null}function qC(n,e){var t;return Ta(n),t=new DTn(n,n.a.rd(),n.a.qd()|4,e),new $n(n,t)}function O0e(n,e){var t,i;return t=u(ab(n.d,e),14),t?(i=e,n.e.pc(i,t)):null}function GC(n,e){var t,i;for(i=n.Kc();i.Ob();)t=u(i.Pb(),70),H(t,(G(),pp),e)}function D0e(n){var e;return e=K(Y(k(n,(nn(),S1)))),e<0&&(e=0,H(n,S1,e)),e}function $0e(n,e,t){var i;i=y.Math.max(0,n.b/2-.5),g6(t,i,1),W(e,new L7n(t,i))}function F0e(n,e,t){var i;return i=n.a.e[u(e.a,10).p]-n.a.e[u(t.a,10).p],Gt(m8(i))}function lIn(n,e,t,i,r,c){var o;o=C$(i),Hi(o,r),Ci(o,c),Tn(n.a,i,new EE(o,e,t.f))}function aIn(n,e){var t;if(t=R7(n.Tg(),e),!t)throw T(new Hn(Pl+e+MB));return t}function ob(n,e){var t;for(t=n;Pt(t);)if(t=Pt(t),t==e)return!0;return!1}function x0e(n,e){var t,i,r;for(i=e.a.cd(),t=u(e.a.dd(),14).gc(),r=0;r0&&(n.a/=e,n.b/=e),n}function is(n){var e;return n.w?n.w:(e=Gle(n),e&&!e.kh()&&(n.w=e),e)}function q0e(n){var e;return n==null?null:(e=u(n,190),Gve(e,e.length))}function D(n,e){if(n.g==null||e>=n.i)throw T(new xO(e,n.i));return n.li(e,n.g[e])}function G0e(n){var e,t;for(e=n.a.d.j,t=n.c.d.j;e!=t;)ko(n.b,e),e=yT(e);ko(n.b,e)}function z0e(n){var e;for(e=0;e=14&&e<=16))),n}function gIn(n,e,t){var i=function(){return n.apply(i,arguments)};return e.apply(i,t),i}function pIn(n,e,t){var i,r;i=e;do r=K(n.p[i.p])+t,n.p[i.p]=r,i=n.a[i.p];while(i!=e)}function O3(n,e){var t,i;i=n.a,t=Tge(n,e,null),i!=e&&!n.e&&(t=j4(n,e,t)),t&&t.Fi()}function tV(n,e){return Zo(),mo(Cl),y.Math.abs(n-e)<=Cl||n==e||isNaN(n)&&isNaN(e)}function iV(n,e){return Zo(),mo(Cl),y.Math.abs(n-e)<=Cl||n==e||isNaN(n)&&isNaN(e)}function X0e(n,e){return yl(),Wc(n.b.c.length-n.e.c.length,e.b.c.length-e.e.c.length)}function xw(n,e){return Uie(J5(n,e,ge(Ni(dh,ch(ge(Ni(e==null?0:mt(e),bh)),15)))))}function vIn(){vIn=N,$Wn=Fe((Qn(),A(M(zR,1),z,267,0,[ii,pi,Xt,Tc,Ju,mf])))}function mIn(){mIn=N,_Zn=Fe((vb(),A(M(UK,1),z,291,0,[zK,gy,wy,GK,dy,by])))}function kIn(){kIn=N,FZn=Fe((fh(),A(M(Rfn,1),z,248,0,[HK,ly,ay,xP,$P,FP])))}function yIn(){yIn=N,uXn=Fe((q2(),A(M(rv,1),z,227,0,[iv,ym,tv,qb,Cg,Eg])))}function jIn(){jIn=N,pXn=Fe((h4(),A(M(sun,1),z,275,0,[Cm,iun,uun,cun,run,tun])))}function EIn(){EIn=N,gXn=Fe((A7(),A(M(eun,1),z,274,0,[LS,Ycn,nun,Jcn,Zcn,p_])))}function CIn(){CIn=N,BQn=Fe((JT(),A(M(Hsn,1),z,313,0,[Q_,_sn,V_,Rsn,Ksn,sP])))}function TIn(){TIn=N,bXn=Fe((eM(),A(M(Xcn,1),z,276,0,[d_,a_,w_,b_,g_,FS])))}function MIn(){MIn=N,VJn=Fe((k6(),A(M(XJn,1),z,327,0,[pP,aK,bK,dK,wK,lK])))}function AIn(){AIn=N,ane=Fe((Mu(),A(M(qP,1),z,273,0,[Gl,n1,Ty,s9,u9,Pp])))}function SIn(){SIn=N,rne=Fe((ZT(),A(M(xhn,1),z,312,0,[uH,Dhn,Fhn,Ihn,$hn,Ohn])))}function V0e(){return jb(),A(M(lr,1),z,93,0,[So,Zh,Po,Oo,jh,eo,ds,Io,no])}function UC(n,e){var t;t=n.a,n.a=e,n.Db&4&&!(n.Db&1)&&et(n,new rb(n,0,t,n.a))}function WC(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&et(n,new rb(n,1,t,n.b))}function D3(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&et(n,new rb(n,3,t,n.b))}function Bd(n,e){var t;t=n.f,n.f=e,n.Db&4&&!(n.Db&1)&&et(n,new rb(n,3,t,n.f))}function Rd(n,e){var t;t=n.g,n.g=e,n.Db&4&&!(n.Db&1)&&et(n,new rb(n,4,t,n.g))}function nu(n,e){var t;t=n.i,n.i=e,n.Db&4&&!(n.Db&1)&&et(n,new rb(n,5,t,n.i))}function eu(n,e){var t;t=n.j,n.j=e,n.Db&4&&!(n.Db&1)&&et(n,new rb(n,6,t,n.j))}function $3(n,e){var t;t=n.j,n.j=e,n.Db&4&&!(n.Db&1)&&et(n,new rb(n,1,t,n.j))}function F3(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&et(n,new rb(n,4,t,n.c))}function x3(n,e){var t;t=n.k,n.k=e,n.Db&4&&!(n.Db&1)&&et(n,new rb(n,2,t,n.k))}function G$(n,e){var t;t=n.d,n.d=e,n.Db&4&&!(n.Db&1)&&et(n,new p$(n,2,t,n.d))}function d1(n,e){var t;t=n.s,n.s=e,n.Db&4&&!(n.Db&1)&&et(n,new p$(n,4,t,n.s))}function hb(n,e){var t;t=n.t,n.t=e,n.Db&4&&!(n.Db&1)&&et(n,new p$(n,5,t,n.t))}function L3(n,e){var t;t=n.F,n.F=e,n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,5,t,e))}function Q8(n,e){var t;return t=u(te(($j(),eI),n),55),t?t.xj(e):F(Zn,rn,1,e,5,1)}function Bh(n,e){var t,i;return t=e in n.a,t&&(i=Dh(n,e).he(),i)?i.a:null}function Q0e(n,e){var t,i,r;return t=(i=(ad(),r=new QH,r),e&&zY(i,e),i),aV(t,n),t}function PIn(n,e,t){if(W3(n,t),!n.Bk()&&t!=null&&!n.wj(t))throw T(new xI);return t}function IIn(n,e){return n.n=e,n.n?(n.f=new X,n.e=new X):(n.f=null,n.e=null),n}function Me(n,e,t,i,r,c){var o;return o=LD(n,e),DIn(t,o),o.i=r?8:0,o.f=i,o.e=r,o.g=c,o}function rV(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 cV(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 uV(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 sV(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 oV(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 OIn(n,e){var t,i,r,c;for(i=e,r=0,c=i.length;r=0),Q2e(n.d,n.c)<0&&(n.a=n.a-1&n.d.a.length-1,n.b=n.d.c),n.c=-1}function fV(n){return n.a<54?n.f<0?-1:n.f>0?1:0:(!n.c&&(n.c=h7(n.f)),n.c).e}function mo(n){if(!(n>=0))throw T(new Hn("tolerance ("+n+") must be >= 0"));return n}function N3(){return _K||(_K=new kBn,_w(_K,A(M(mg,1),rn,130,0,[new nq]))),_K}function ur(){ur=N,Bm=new kO(K6,0),Su=new kO("INPUT",1),xc=new kO("OUTPUT",2)}function VC(){VC=N,Hcn=new bO("ARD",0),DS=new bO("MSD",1),o_=new bO("MANUAL",2)}function _d(){_d=N,ry=new TO("BARYCENTER",0),_m=new TO(rHn,1),aP=new TO(cHn,2)}function J8(n,e){var t;if(t=n.gc(),e<0||e>t)throw T(new V0(e,t));return new AU(n,e)}function xIn(n,e){var t;return I(e,42)?n.c.Mc(e):(t=NF(n,e),IT(n,e),t)}function wr(n,e,t){return Ca(n,e),Ic(n,t),d1(n,0),hb(n,1),p1(n,!0),g1(n,!0),n}function rs(n,e){if(n<0)throw T(new Hn(e+" cannot be negative but was: "+n));return n}function LIn(n,e){var t,i;for(t=0,i=n.gc();t0?u(un(t.a,i-1),10):null}function Q5(n,e){var t;t=n.k,n.k=e,n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,2,t,n.k))}function JC(n,e){var t;t=n.f,n.f=e,n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,8,t,n.f))}function YC(n,e){var t;t=n.i,n.i=e,n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,7,t,n.i))}function aV(n,e){var t;t=n.a,n.a=e,n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,8,t,n.a))}function dV(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,0,t,n.b))}function bV(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,0,t,n.b))}function wV(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,1,t,n.c))}function gV(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,1,t,n.c))}function U$(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,4,t,n.c))}function pV(n,e){var t;t=n.d,n.d=e,n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,1,t,n.d))}function W$(n,e){var t;t=n.D,n.D=e,n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,2,t,n.D))}function X$(n,e){n.r>0&&n.c0&&n.g!=0&&X$(n.i,e/n.r*n.i.d))}function cbe(n,e,t){var i;n.b=e,n.a=t,i=(n.a&512)==512?new T9n:new ZH,n.c=y7e(i,n.b,n.a)}function zIn(n,e){return zh(n.e,e)?(er(),R$(e)?new IE(e,n):new i8(e,n)):new Nkn(e,n)}function ZC(n,e){return zie(Y5(n.a,e,ge(Ni(dh,ch(ge(Ni(e==null?0:mt(e),bh)),15)))))}function ube(n,e,t){return cb(n,new Hvn(e),new mln,new qvn(t),A(M(Bu,1),z,132,0,[]))}function sbe(n){var e,t;return 0>n?new PG:(e=n+1,t=new wSn(e,n),new oU(null,t))}function obe(n,e){Pn();var t;return t=new s2(1),ki(n)?yr(t,n,e):_c(t.f,n,e),new DI(t)}function fbe(n,e){var t,i;return t=n.o+n.p,i=e.o+e.p,te?(e<<=1,e>0?e:L6):e}function V$(n){switch(Rz(n.e!=3),n.e){case 2:return!1;case 0:return!0}return wde(n)}function WIn(n,e){var t;return I(e,8)?(t=u(e,8),n.a==t.a&&n.b==t.b):!1}function Q$(n,e,t){var i,r,c;return c=e>>5,r=e&31,i=ui(J0(n.n[t][c],ge(Ih(r,1))),3),i}function lbe(n,e){var t,i;for(i=e.vc().Kc();i.Ob();)t=u(i.Pb(),42),XT(n,t.cd(),t.dd())}function abe(n,e){var t;t=new Wy,u(e.b,65),u(e.b,65),u(e.b,65),Zc(e.a,new BU(n,t,e))}function vV(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,21,t,n.b))}function mV(n,e){var t;t=n.d,n.d=e,n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,11,t,n.d))}function nT(n,e){var t;t=n.j,n.j=e,n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,13,t,n.j))}function XIn(n,e,t){var i,r,c;for(c=n.a.length-1,r=n.b,i=0;i>>31;i!=0&&(n[t]=i)}function jbe(n,e){Pn();var t,i;for(i=new X,t=0;t0&&(this.g=this.ri(this.i+(this.i/8|0)+1),n.Qc(this.g))}function $t(n,e){ME.call(this,ree,n,e),this.b=this,this.a=Kc(n.Tg(),On(this.e.Tg(),this.c))}function Z5(n,e){var t,i;for(_n(e),i=e.vc().Kc();i.Ob();)t=u(i.Pb(),42),n.zc(t.cd(),t.dd())}function Dbe(n,e,t){var i;for(i=t.Kc();i.Ob();)if(!yC(n,e,i.Pb()))return!1;return!0}function $be(n,e,t,i,r){var c;return t&&(c=yt(e.Tg(),n.c),r=t.gh(e,-1-(c==-1?i:c),null,r)),r}function Fbe(n,e,t,i,r){var c;return t&&(c=yt(e.Tg(),n.c),r=t.ih(e,-1-(c==-1?i:c),null,r)),r}function dOn(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 bOn(n){switch(n.g){case 2:return J(),Gn;case 4:return J(),Vn;default:return n}}function wOn(n){switch(n.g){case 1:return J(),ae;case 3:return J(),Kn;default:return n}}function xbe(n){var e,t,i;return n.j==(J(),Kn)&&(e=GLn(n),t=au(e,Vn),i=au(e,Gn),i||i&&t)}function Lbe(n){var e,t;return e=u(n.e&&n.e(),9),t=u(IW(e,e.length),9),new ks(e,t,e.length)}function Nbe(n,e){le(e,iHn,1),TQ(ire(new tj((Vv(),new GD(n,!1,!1,new BH))))),ce(e)}function Y8(n,e){return qn(),ki(n)?DX(n,Ce(e)):G0(n)?TD(n,Y(e)):q0(n)?Kfe(n,sn(e)):n.wd(e)}function TV(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),W(n.a,e)}function R3(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.ac&&e.b1||n.Ob())return++n.a,n.g=0,e=n.i,n.Ob(),e;throw T(new ic)}function Vbe(n){gyn();var e;return M7n(hK,n)||(e=new Zwn,e.a=n,wU(hK,n,e)),u(br(hK,n),635)}function Ks(n){var e,t,i,r;return r=n,i=0,r<0&&(r+=$a,i=Wh),t=Gt(r/J2),e=Gt(r-t*J2),Bc(e,t,i)}function Z8(n){var e,t,i;for(i=0,t=new o2(n.a);t.a>22),r=n.h+e.h+(i>>22),Bc(t&Nu,i&Nu,r&Wh)}function xOn(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),Bc(t&Nu,i&Nu,r&Wh)}function i7(n){var e;return n<128?(e=(QEn(),yin)[n],!e&&(e=yin[n]=new wq(n)),e):new wq(n)}function jt(n){var e;return I(n,78)?n:(e=n&&n.__java$exception,e||(e=new CDn(n),Kmn(e)),e)}function r7(n){if(I(n,186))return u(n,118);if(n)return null;throw T(new c2(Iqn))}function LOn(n,e){if(e==null)return!1;for(;n.a!=n.b;)if(tt(e,vT(n)))return!0;return!1}function OV(n){return n.a.Ob()?!0:n.a!=n.d?!1:(n.a=new lX(n.e.f),n.a.Ob())}function Zt(n,e){var t,i;return t=e.Pc(),i=t.length,i==0?!1:(GU(n.c,n.c.length,t),!0)}function hwe(n,e,t){var i,r;for(r=e.vc().Kc();r.Ob();)i=u(r.Pb(),42),n.yc(i.cd(),i.dd(),t);return n}function NOn(n,e){var t,i;for(i=new E(n.b);i.a=0,"Negative initial capacity"),TE(e>=0,"Non-positive load factor"),Cu(this)}function uF(n,e,t){return n>=128?!1:n<64?b5(ui(Ih(1,n),t),0):b5(ui(Ih(1,n-64),e),0)}function mwe(n,e){return!n||!e||n==e?!1:zd(n.b.c,e.b.c+e.b.b)<0&&zd(e.b.c,n.b.c+n.b.b)<0}function VOn(n){var e,t,i;return t=n.n,i=n.o,e=n.d,new ys(t.a-e.b,t.b-e.d,i.a+(e.b+e.c),i.b+(e.d+e.a))}function kwe(n){var e,t,i,r;for(t=n.a,i=0,r=t.length;ii)throw T(new V0(e,i));return n.hi()&&(t=aMn(n,t)),n.Vh(e,t)}function s7(n,e,t){return t==null?(!n.q&&(n.q=new we),O2(n.q,e)):(!n.q&&(n.q=new we),it(n.q,e,t)),n}function H(n,e,t){return t==null?(!n.q&&(n.q=new we),O2(n.q,e)):(!n.q&&(n.q=new we),it(n.q,e,t)),n}function QOn(n){var e,t;return t=new TC,Pr(t,n),H(t,(dl(),hp),n),e=new we,Cye(n,t,e),QEe(n,t,e),t}function Ewe(n){eg();var e,t,i;for(t=F(di,q,8,2,0,1),i=0,e=0;e<2;e++)i+=.5,t[e]=r3e(i,n);return t}function JOn(n,e){var t,i,r,c;for(t=!1,i=n.a[e].length,c=0;c>=1);return e}function ZOn(n){var e,t;return t=x7(n.h),t==32?(e=x7(n.m),e==32?x7(n.l)+32:e+20-10):t-12}function t6(n){var e;return e=n.a[n.b],e==null?null:(St(n.a,n.b,null),n.b=n.b+1&n.a.length-1,e)}function nDn(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 bT(n,e,t){var i,r;return i=new I$(e,t),r=new dI,n.b=zNn(n,n.b,i,r),r.b||++n.c,n.b.b=!1,r.d}function eDn(n,e,t){var i,r,c,o;for(o=c6(e,t),c=0,r=o.Kc();r.Ob();)i=u(r.Pb(),11),it(n.c,i,Q(c++))}function wl(n){var e,t;for(t=new E(n.a.b);t.at&&(t=n[e]);return t}function tDn(n,e,t){var i;return i=new X,XY(n,e,i,(J(),Vn),!0,!1),XY(n,t,i,Gn,!1,!1),i}function oF(n,e,t){var i,r,c,o;return c=null,o=e,r=Fd(o,"labels"),i=new jkn(n,t),c=(Hme(i.a,i.b,r),r),c}function Twe(n,e,t,i){var r;return r=xY(n,e,t,i),!r&&(r=Mge(n,t,i),r&&!rg(n,e,r))?null:r}function Mwe(n,e,t,i){var r;return r=LY(n,e,t,i),!r&&(r=TF(n,t,i),r&&!rg(n,e,r))?null:r}function iDn(n,e){var t;for(t=0;t1||e>=0&&n.b<3)}function o7(n){var e,t,i;for(e=new hu,i=_e(n,0);i.b!=i.d.c;)t=u(Re(i),8),s3(e,0,new kr(t));return e}function ja(n){var e,t;for(t=new E(n.a.b);t.ai?1:0}function QV(n,e){return ANn(n,e)?(Tn(n.b,u(k(e,(G(),Gb)),21),e),Ke(n.a,e),!0):!1}function Bwe(n){var e,t;e=u(k(n,(G(),Au)),10),e&&(t=e.c,Jc(t.a,e),t.a.c.length==0&&Jc(Gi(e).b,t))}function fDn(n){return vf?F($zn,lKn,572,0,0,1):u(af(n.a,F($zn,lKn,572,n.a.c.length,0,1)),842)}function Rwe(n,e,t,i){return QE(),new GI(A(M(Ha,1),OM,42,0,[(ex(n,e),new bd(n,e)),(ex(t,i),new bd(t,i))]))}function Rw(n,e,t){var i,r;return r=(i=new RI,i),wr(r,e,t),me((!n.q&&(n.q=new V(co,n,11,10)),n.q),r),r}function aF(n){var e,t,i,r;for(r=lre($ne,n),t=r.length,i=F(tn,q,2,t,6,1),e=0;e=n.b.c.length||(JV(n,2*e+1),t=2*e+2,t=0&&n[i]===e[i];i--);return i<0?0:cO(ui(n[i],fr),ui(e[i],fr))?-1:1}function _we(n,e){var t,i;for(i=_e(n,0);i.b!=i.d.c;)t=u(Re(i),214),t.e.length>0&&(e.td(t),t.i&&Fge(t))}function bF(n,e){var t,i;return i=u(Rn(n.a,4),126),t=F(bH,qB,415,e,0,1),i!=null&&gc(i,0,t,0,i.length),t}function lDn(n,e){var t;return t=new zx((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 Kwe(n,e){var t,i;for(i=n.Zb().Cc().Kc();i.Ob();)if(t=u(i.Pb(),14),t.Hc(e))return!0;return!1}function wF(n,e,t,i,r){var c,o;for(o=t;o<=r;o++)for(c=e;c<=i;c++)if(zw(n,c,o))return!0;return!1}function aDn(n,e,t){var i,r,c,o;for(_n(t),o=!1,c=n.Zc(e),r=t.Kc();r.Ob();)i=r.Pb(),c.Rb(i),o=!0;return o}function Hwe(n,e){var t;return n===e?!0:I(e,83)?(t=u(e,83),ZJ(Ed(n),t.vc())):!1}function dDn(n,e,t){var i,r;for(r=t.Kc();r.Ob();)if(i=u(r.Pb(),42),n.re(e,i.dd()))return!0;return!1}function bDn(n,e,t){return n.d[e.p][t.p]||(Bpe(n,e,t),n.d[e.p][t.p]=!0,n.d[t.p][e.p]=!0),n.a[e.p][t.p]}function W3(n,e){if(!n.ai()&&e==null)throw T(new Hn("The 'no null' constraint is violated"));return e}function X3(n,e){n.D==null&&n.B!=null&&(n.D=n.B,n.B=null),W$(n,e==null?null:(_n(e),e)),n.C&&n.yk(null)}function qwe(n,e){var t;return!n||n==e||!ai(e,(G(),m0))?!1:(t=u(k(e,(G(),m0)),10),t!=n)}function gF(n){switch(n.i){case 2:return!0;case 1:return!1;case-1:++n.c;default:return n.pl()}}function wDn(n){switch(n.i){case-2:return!0;case-1:return!1;case 1:--n.c;default:return n.ql()}}function gDn(n){cMn.call(this,"The given string does not match the expected format for individual spacings.",n)}function Vu(){Vu=N,gs=new Jj("ELK",0),Yhn=new Jj("JSON",1),Jhn=new Jj("DOT",2),Zhn=new Jj("SVG",3)}function f7(){f7=N,CP=new AO(Xh,0),Don=new AO("RADIAL_COMPACTION",1),$on=new AO("WEDGE_COMPACTION",2)}function lf(){lf=N,Win=new uO("CONCURRENT",0),ls=new uO("IDENTITY_FINISH",1),Rb=new uO("UNORDERED",2)}function pF(){pF=N,jrn=(Aj(),SR),yrn=new In(pnn,jrn),OUn=new kt(vnn),DUn=new kt(mnn),$Un=new kt(knn)}function V3(){V3=N,xcn=new j0n,Lcn=new E0n,zWn=new C0n,GWn=new T0n,qWn=new M0n,Fcn=(_n(qWn),new uln)}function Q3(){Q3=N,sK=new jO("CONSERVATIVE",0),con=new jO("CONSERVATIVE_SOFT",1),Rm=new jO("SLOPPY",2)}function wT(){wT=N,_hn=new vd(15),cne=new tr((Xe(),nd),_hn),t9=Mp,Lhn=HZn,Nhn=Za,Rhn=Kg,Bhn=BP}function vF(n,e,t){var i,r,c;for(i=new Tt,c=_e(t,0);c.b!=c.d.c;)r=u(Re(c),8),Ke(i,new kr(r));aDn(n,e,i)}function Gwe(n){var e,t,i;for(e=0,i=F(di,q,8,n.b,0,1),t=_e(n,0);t.b!=t.d.c;)i[e++]=u(Re(t),8);return i}function ZV(n){var e;return e=(!n.a&&(n.a=new V(e1,n,9,5)),n.a),e.i!=0?ore(u(D(e,0),678)):null}function zwe(n,e){var t;return t=qi(n,e),cO(h$(n,e),0)|Cre(h$(n,t),0)?t:qi(IM,h$(J0(t,63),1))}function Uwe(n,e){var t;t=cn((xF(),uP))!=null&&e.wg()!=null?K(Y(e.wg()))/K(Y(cn(uP))):1,it(n.b,e,t)}function Wwe(n,e){var t,i;return t=u(n.d.Bc(e),14),t?(i=n.e.hc(),i.Gc(t),n.e.d-=t.gc(),t.$b(),i):null}function nQ(n,e){var t,i;if(i=n.c[e],i!=0)for(n.c[e]=0,n.d-=i,t=e+1;t0)return a3(e-1,n.a.c.length),h1(n.a,e-1);throw T(new qmn)}function Xwe(n,e,t){if(e<0)throw T(new mr(_Hn+e));ee)throw T(new Hn(xM+n+aKn+e));if(n<0||e>t)throw T(new bG(xM+n+rnn+e+tnn+t))}function mDn(n){if(!n.a||!(n.a.i&8))throw T(new $r("Enumeration class expected for layout option "+n.f))}function lb(n){var e;++n.j,n.i==0?n.g=null:n.ihA?n-t>hA:t-n>hA}function kF(n,e){return!n||e&&!n.j||I(n,124)&&u(n,124).a.b==0?0:n.Re()}function pT(n,e){return!n||e&&!n.k||I(n,124)&&u(n,124).a.a==0?0:n.Se()}function h7(n){return jl(),n<0?n!=-1?new VQ(-1,-n):gR:n<=10?xin[Gt(n)]:new VQ(1,n)}function tQ(n){throw cF(),T(new L9n("Unexpected typeof result '"+n+"'; please report this bug to the GWT team"))}function CDn(n){H9n(),oE(this),eC(this),this.e=n,NNn(this,n),this.g=n==null?ru:Nr(n),this.a="",this.b=n,this.a=""}function iQ(){this.a=new qgn,this.f=new O6n(this),this.b=new D6n(this),this.i=new $6n(this),this.e=new F6n(this)}function TDn(){iie.call(this,new _X(sb(16))),rs(2,W_n),this.b=2,this.a=new RW(null,null,0,null),$9(this.a,this.a)}function i6(){i6=N,J_=new vO("DUMMY_NODE_OVER",0),qsn=new vO("DUMMY_NODE_UNDER",1),oP=new vO("EQUAL",2)}function yF(){yF=N,_R=sMn(A(M(e9,1),z,103,0,[(sr(),Zs),Ao])),KR=sMn(A(M(e9,1),z,103,0,[Yh,Jh]))}function jF(n){return(J(),uu).Hc(n.j)?K(Y(k(n,(G(),hv)))):Gr(A(M(di,1),q,8,0,[n.i.n,n.n,n.a])).b}function Zwe(n){var e,t,i,r;for(i=n.b.a,t=i.a.ec().Kc();t.Ob();)e=u(t.Pb(),561),r=new pNn(e,n.e,n.f),W(n.g,r)}function Ca(n,e){var t,i,r;i=n.nk(e,null),r=null,e&&(r=(Qp(),t=new ud,t),O3(r,n.r)),i=df(n,r,i),i&&i.Fi()}function nge(n,e){var t,i;for(i=xu(n.d,1)!=0,t=!0;t;)t=!1,t=e.c.Tf(e.e,i),t=t|_7(n,e,i,!1),i=!i;yV(n)}function rQ(n,e){var t,i,r;return i=!1,t=e.q.d,e.dr&&(JFn(e.q,r),i=t!=e.q.d)),i}function MDn(n,e){var t,i,r,c,o,f,h,l;return h=e.i,l=e.j,i=n.f,r=i.i,c=i.j,o=h-r,f=l-c,t=y.Math.sqrt(o*o+f*f),t}function cQ(n,e){var t,i;return i=OT(n),i||(t=(bL(),Yxn(e)),i=new Fmn(t),me(i.Vk(),n)),i}function l7(n,e){var t,i;return t=u(n.c.Bc(e),14),t?(i=n.hc(),i.Gc(t),n.d-=t.gc(),t.$b(),n.mc(i)):n.jc()}function ADn(n,e){var t;for(t=0;t=n.c.b:n.a<=n.c.b))throw T(new ic);return e=n.a,n.a+=n.c.c,++n.b,Q(e)}function ige(n){var e;return e=new uIn(n),O8(n.a,SWn,new Hu(A(M(Rk,1),rn,369,0,[e]))),e.d&&W(e.f,e.d),e.f}function EF(n){var e;return e=new Mz(n.a),Pr(e,n),H(e,(G(),rt),n),e.o.a=n.g,e.o.b=n.f,e.n.a=n.i,e.n.b=n.j,e}function rge(n,e,t,i){var r,c;for(c=n.Kc();c.Ob();)r=u(c.Pb(),70),r.n.a=e.a+(i.a-r.o.a)/2,r.n.b=e.b,e.b+=r.o.b+t}function cge(n,e,t){var i,r;for(r=e.a.a.ec().Kc();r.Ob();)if(i=u(r.Pb(),57),_Tn(n,i,t))return!0;return!1}function uge(n){var e,t;for(t=new E(n.r);t.a=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 hge(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 FDn(n){var e,t;if(n!=null)for(t=0;t0&&(t=u(un(n.a,n.a.c.length-1),570),QV(t,e))||W(n.a,new dSn(e))}function wge(n){wo();var e,t;e=n.d.c-n.e.c,t=u(n.g,145),Zc(t.b,new _5n(e)),Zc(t.c,new K5n(e)),$i(t.i,new H5n(e))}function BDn(n){var e;return e=new V1,e.a+="VerticalSegment ",rc(e,n.e),e.a+=" ",De(e,Lz(new YI,new E(n.k))),e.a}function gge(n){var e;return e=u(xd(n.c.c,""),229),e||(e=new M2(Vp(Xp(new Zg,""),"Other")),Aa(n.c.c,"",e)),e}function r6(n){var e;return n.Db&64?yo(n):(e=new Bs(yo(n)),e.a+=" (name: ",dr(e,n.zb),e.a+=")",e.a)}function hQ(n,e,t){var i,r;return r=n.sb,n.sb=e,n.Db&4&&!(n.Db&1)&&(i=new gi(n,1,4,r,e),t?t.Ei(i):t=i),t}function CF(n,e){var t,i,r;for(t=0,r=zr(n,e).Kc();r.Ob();)i=u(r.Pb(),11),t+=k(i,(G(),Au))!=null?1:0;return t}function Kw(n,e,t){var i,r,c;for(i=0,c=_e(n,0);c.b!=c.d.c&&(r=K(Y(Re(c))),!(r>t));)r>=e&&++i;return i}function pge(n,e,t){var i,r;return i=new Lh(n.e,3,13,null,(r=e.c,r||(Sn(),Tf)),v1(n,e),!1),t?t.Ei(i):t=i,t}function vge(n,e,t){var i,r;return i=new Lh(n.e,4,13,(r=e.c,r||(Sn(),Tf)),null,v1(n,e),!1),t?t.Ei(i):t=i,t}function lQ(n,e,t){var i,r;return r=n.r,n.r=e,n.Db&4&&!(n.Db&1)&&(i=new gi(n,1,8,r,n.r),t?t.Ei(i):t=i),t}function w1(n,e){var t,i;return t=u(e,676),i=t.vk(),!i&&t.wk(i=I(e,88)?new Fkn(n,u(e,26)):new eAn(n,u(e,148))),i}function a7(n,e,t){var i;n.qi(n.i+1),i=n.oi(e,t),e!=n.i&&gc(n.g,e,n.g,e+1,n.i-e),St(n.g,e,i),++n.i,n.bi(e,t),n.ci()}function mge(n,e){var t;return e.a&&(t=e.a.a.length,n.a?De(n.a,n.b):n.a=new Yu(n.d),iAn(n.a,e.a,e.d.length,t)),n}function kge(n,e){var t,i,r,c;if(e.vi(n.a),c=u(Rn(n.a,8),1936),c!=null)for(t=c,i=0,r=t.length;it)throw T(new mr(xM+n+rnn+e+", size: "+t));if(n>e)throw T(new Hn(xM+n+aKn+e))}function As(n,e,t){if(e<0)bY(n,t);else{if(!t.Ij())throw T(new Hn(Pl+t.ne()+em));u(t,66).Nj().Vj(n,n.yh(),e)}}function Ege(n,e,t,i,r,c,o,f){var h;for(h=t;c=i||e=65&&n<=70?n-65+10:n>=97&&n<=102?n-97+10:n>=48&&n<=57?n-48:0}function zDn(n){var e;return n.Db&64?yo(n):(e=new Bs(yo(n)),e.a+=" (source: ",dr(e,n.d),e.a+=")",e.a)}function Tge(n,e,t){var i,r;return r=n.a,n.a=e,n.Db&4&&!(n.Db&1)&&(i=new gi(n,1,5,r,n.a),t?FJ(t,i):t=i),t}function g1(n,e){var t;t=(n.Bb&256)!=0,e?n.Bb|=256:n.Bb&=-257,n.Db&4&&!(n.Db&1)&&et(n,new vo(n,1,2,t,e))}function dQ(n,e){var t;t=(n.Bb&256)!=0,e?n.Bb|=256:n.Bb&=-257,n.Db&4&&!(n.Db&1)&&et(n,new vo(n,1,8,t,e))}function kT(n,e){var t;t=(n.Bb&256)!=0,e?n.Bb|=256:n.Bb&=-257,n.Db&4&&!(n.Db&1)&&et(n,new vo(n,1,8,t,e))}function p1(n,e){var t;t=(n.Bb&512)!=0,e?n.Bb|=512:n.Bb&=-513,n.Db&4&&!(n.Db&1)&&et(n,new vo(n,1,3,t,e))}function bQ(n,e){var t;t=(n.Bb&512)!=0,e?n.Bb|=512:n.Bb&=-513,n.Db&4&&!(n.Db&1)&&et(n,new vo(n,1,9,t,e))}function u6(n,e){var t;return n.b==-1&&n.a&&(t=n.a.Gj(),n.b=t?n.c.Xg(n.a.aj(),t):yt(n.c.Tg(),n.a)),n.c.Og(n.b,e)}function Q(n){var e,t;return n>-129&&n<128?(e=n+128,t=(qEn(),jin)[e],!t&&(t=jin[e]=new gq(n)),t):new gq(n)}function J3(n){var e,t;return n>-129&&n<128?(e=n+128,t=(VEn(),Min)[e],!t&&(t=Min[e]=new vq(n)),t):new vq(n)}function wQ(n){var e,t;return e=n.k,e==(Qn(),Xt)?(t=u(k(n,(G(),ec)),61),t==(J(),Kn)||t==ae):!1}function Mge(n,e,t){var i,r,c;return c=(r=b4(n.b,e),r),c&&(i=u(jM(G8(n,c),""),26),i)?xY(n,i,e,t):null}function TF(n,e,t){var i,r,c;return c=(r=b4(n.b,e),r),c&&(i=u(jM(G8(n,c),""),26),i)?LY(n,i,e,t):null}function UDn(n,e){var t,i;for(i=new ie(n);i.e!=i.i.gc();)if(t=u(oe(i),138),B(e)===B(t))return!0;return!1}function s6(n,e,t){var i;if(i=n.gc(),e>i)throw T(new V0(e,i));if(n.hi()&&n.Hc(t))throw T(new Hn(yk));n.Xh(e,t)}function Age(n,e){var t;if(t=xw(n.i,e),t==null)throw T(new Sf("Node did not exist in input."));return MV(e,t),null}function Sge(n,e){var t;if(t=R7(n,e),I(t,322))return u(t,34);throw T(new Hn(Pl+e+"' is not a valid attribute"))}function Pge(n,e,t){var i,r;for(r=I(e,99)&&u(e,18).Bb&Yi?new LO(e,n):new H3(e,n),i=0;ie?1:n==e?n==0?ni(1/n,1/e):0:isNaN(n)?isNaN(e)?0:1:-1}function Bge(n,e){le(e,"Sort end labels",1),Rt(gt(qr(new $n(null,new xn(n.b,16)),new bdn),new wdn),new gdn),ce(e)}function o6(n,e,t){var i,r;return n.ej()?(r=n.fj(),i=Dx(n,e,t),n.$i(n.Zi(7,Q(t),i,e,r)),i):Dx(n,e,t)}function MF(n,e){var t,i,r;n.d==null?(++n.e,--n.f):(r=e.cd(),t=e.Sh(),i=(t&nt)%n.d.length,yde(n,i,hNn(n,i,t,r)))}function Y3(n,e){var t;t=(n.Bb&Eo)!=0,e?n.Bb|=Eo:n.Bb&=-1025,n.Db&4&&!(n.Db&1)&&et(n,new vo(n,1,10,t,e))}function Z3(n,e){var t;t=(n.Bb&Ib)!=0,e?n.Bb|=Ib:n.Bb&=-4097,n.Db&4&&!(n.Db&1)&&et(n,new vo(n,1,12,t,e))}function n4(n,e){var t;t=(n.Bb&mu)!=0,e?n.Bb|=mu:n.Bb&=-8193,n.Db&4&&!(n.Db&1)&&et(n,new vo(n,1,15,t,e))}function e4(n,e){var t;t=(n.Bb&Bb)!=0,e?n.Bb|=Bb:n.Bb&=-2049,n.Db&4&&!(n.Db&1)&&et(n,new vo(n,1,11,t,e))}function Rge(n,e){var t;return t=ni(n.b.c,e.b.c),t!=0||(t=ni(n.a.a,e.a.a),t!=0)?t:ni(n.a.b,e.a.b)}function _ge(n,e){var t;if(t=te(n.k,e),t==null)throw T(new Sf("Port did not exist in input."));return MV(e,t),null}function Kge(n){var e,t;for(t=wNn(is(n)).Kc();t.Ob();)if(e=Ce(t.Pb()),A6(n,e))return Vae((C7n(),zne),e);return null}function Hge(n,e){var t,i,r,c,o;for(o=Kc(n.e.Tg(),e),c=0,t=u(n.g,119),r=0;r>10)+rk&Ut,e[1]=(n&1023)+56320&Ut,Hs(e,0,e.length)}function jT(n){var e,t;return t=u(k(n,(nn(),as)),103),t==(sr(),kh)?(e=K(Y(k(n,zS))),e>=1?Ao:Jh):t}function zge(n){switch(u(k(n,(nn(),Qh)),218).g){case 1:return new ewn;case 3:return new uwn;default:return new nwn}}function Ta(n){if(n.c)Ta(n.c);else if(n.d)throw T(new $r("Stream already terminated, can't be modified or used"))}function PF(n){var e;return n.Db&64?yo(n):(e=new Bs(yo(n)),e.a+=" (identifier: ",dr(e,n.k),e.a+=")",e.a)}function QDn(n,e,t){var i,r;return i=(ad(),r=new Xy,r),UC(i,e),WC(i,t),n&&me((!n.a&&(n.a=new Yt(io,n,5)),n.a),i),i}function IF(n,e,t,i){var r,c;return _n(i),_n(t),r=n.xc(e),c=r==null?t:l7n(u(r,15),u(t,14)),c==null?n.Bc(e):n.zc(e,c),c}function Cn(n){var e,t,i,r;return t=(e=u(xo((i=n.gm,r=i.f,r==Ie?i:r)),9),new ks(e,u(bo(e,e.length),9),0)),ko(t,n),t}function Uge(n,e,t){var i,r;for(r=n.a.ec().Kc();r.Ob();)if(i=u(r.Pb(),10),t7(t,u(un(e,i.p),14)))return i;return null}function Wge(n,e,t){var i;try{Awe(n,e,t)}catch(r){throw r=jt(r),I(r,597)?(i=r,T(new EX(i))):T(r)}return e}function vl(n,e){var t;return Fr(n)&&Fr(e)&&(t=n-e,ik>1,n.k=t-1>>1}function OF(){_J();var n,e,t;t=qTe+++Date.now(),n=Gt(y.Math.floor(t*uk))&FM,e=Gt(t-n*enn),this.a=n^1502,this.b=e^tN}function Kh(n){var e,t,i;for(e=new X,i=new E(n.j);i.a34028234663852886e22?Ft:e<-34028234663852886e22?Qt:e}function JDn(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 YDn(n){var e,t,i,r;for(e=new Djn(n.Hd().gc()),r=0,i=$2(n.Hd().Kc());i.Ob();)t=i.Pb(),ole(e,t,Q(r++));return $5e(e.a)}function Zge(n,e){var t,i,r;for(r=new we,i=e.vc().Kc();i.Ob();)t=u(i.Pb(),42),it(r,t.cd(),Gbe(n,u(t.dd(),15)));return r}function yQ(n,e){n.n.c.length==0&&W(n.n,new lC(n.s,n.t,n.i)),W(n.b,e),iJ(u(un(n.n,n.n.c.length-1),211),e),oRn(n,e)}function Hw(n){return(n.c!=n.b.b||n.i!=n.g.b)&&(n.a.c=F(Zn,rn,1,0,5,1),Zt(n.a,n.b),Zt(n.a,n.g),n.c=n.b.b,n.i=n.g.b),n.a}function DF(n,e){var t,i,r;for(r=0,i=u(e.Kb(n),20).Kc();i.Ob();)t=u(i.Pb(),17),on(sn(k(t,(G(),kf))))||++r;return r}function n2e(n,e){var t,i,r;i=$w(e),r=K(Y(bb(i,(nn(),Mo)))),t=y.Math.max(0,r/2-.5),g6(e,t,1),W(n,new G7n(e,t))}function Ss(){Ss=N,Qk=new Q9(Xh,0),Sm=new Q9("FIRST",1),xl=new Q9(uHn,2),Pm=new Q9("LAST",3),Ub=new Q9(sHn,4)}function Hh(){Hh=N,rH=new Wj(K6,0),yy=new Wj("POLYLINE",1),Cv=new Wj("ORTHOGONAL",2),Sp=new Wj("SPLINES",3)}function ET(){ET=N,Jon=new PO("ASPECT_RATIO_DRIVEN",0),IK=new PO("MAX_SCALE_DRIVEN",1),Qon=new PO("AREA_DRIVEN",2)}function w7(){w7=N,AP=new IO("P1_STRUCTURE",0),SP=new IO("P2_PROCESSING_ORDER",1),PP=new IO("P3_EXECUTION",2)}function CT(){CT=N,CK=new MO("OVERLAP_REMOVAL",0),jK=new MO("COMPACTION",1),EK=new MO("GRAPH_SIZE_CALCULATION",2)}function zd(n,e){return Zo(),mo(Cl),y.Math.abs(n-e)<=Cl||n==e||isNaN(n)&&isNaN(e)?0:ne?1:pd(isNaN(n),isNaN(e))}function ZDn(n,e){var t,i;for(t=_e(n,0);t.b!=t.d.c;){if(i=x9(Y(Re(t))),i==e)return;if(i>e){a$(t);break}}y8(t,e)}function En(n,e){var t,i,r,c,o;if(t=e.f,Aa(n.c.d,t,e),e.g!=null)for(r=e.g,c=0,o=r.length;ce&&i.ue(n[c-1],n[c])>0;--c)o=n[c],St(n,c,n[c-1]),St(n,c-1,o)}function Ps(n,e,t,i){if(e<0)_Y(n,t,i);else{if(!t.Ij())throw T(new Hn(Pl+t.ne()+em));u(t,66).Nj().Tj(n,n.yh(),e,i)}}function TT(n,e){if(e==n.d)return n.e;if(e==n.e)return n.d;throw T(new Hn("Node "+e+" not part of edge "+n))}function t2e(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 n$n(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 jQ(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 aQ(n,e,t,i)}function i2e(n){return n.k!=(Qn(),ii)?!1:C3(new $n(null,new Cd(new re(ue(ei(n).a.Kc(),new An)))),new Hbn)}function r2e(n){return n.e==null?n:(!n.c&&(n.c=new zx((n.f&256)!=0,n.i,n.a,n.d,(n.f&16)!=0,n.j,n.g,null)),n.c)}function c2e(n,e){return n.h==tk&&n.m==0&&n.l==0?(e&&(Il=Bc(0,0,0)),eyn((I3(),gin))):(e&&(Il=Bc(n.l,n.m,n.h)),Bc(0,0,0))}function Nr(n){var e;return Array.isArray(n)&&n.im===Xg?J1($u(n))+"@"+(e=mt(n)>>>0,e.toString(16)):n.toString()}function f6(n){var e;this.a=(e=u(n.e&&n.e(),9),new ks(e,u(bo(e,e.length),9),0)),this.b=F(Zn,rn,1,this.a.a.length,5,1)}function u2e(n){var e,t,i;for(this.a=new Sh,i=new E(n);i.a0&&(Te(e-1,n.length),n.charCodeAt(e-1)==58)&&!$F(n,a9,d9))}function $F(n,e,t){var i,r;for(i=0,r=n.length;i=r)return e.c+t;return e.c+e.b.gc()}function l2e(n,e){o3();var t,i,r,c;for(i=bPn(n),r=e,S3(i,0,i.length,r),t=0;t0&&(i+=r,++t);return t>1&&(i+=n.d*(t-1)),i}function CQ(n){var e,t,i;for(i=new i1,i.a+="[",e=0,t=n.gc();e0&&this.b>0&&cW(this.c,this.b,this.a)}function AQ(n){xF(),this.c=uf(A(M(sMe,1),rn,831,0,[LQn])),this.b=new we,this.a=n,it(this.b,uP,1),Zc(NQn,new q6n(this))}function e$n(n,e){var t;return n.d?Uu(n.b,e)?u(te(n.b,e),51):(t=e.Kf(),it(n.b,e,t),t):e.Kf()}function SQ(n,e){var t;return B(n)===B(e)?!0:I(e,91)?(t=u(e,91),n.e==t.e&&n.d==t.d&&Jae(n,t.a)):!1}function B2(n){switch(J(),n.g){case 4:return Kn;case 1:return Vn;case 3:return ae;case 2:return Gn;default:return Xr}}function PQ(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 SV(n,e)}function p2e(n){switch(n.g){case 0:return new Lgn;case 1:return new Ngn;default:throw T(new Hn(lB+(n.f!=null?n.f:""+n.g)))}}function t$n(n){switch(n.g){case 0:return new xgn;case 1:return new Bgn;default:throw T(new Hn(AN+(n.f!=null?n.f:""+n.g)))}}function i$n(n){switch(n.g){case 0:return new sG;case 1:return new b9n;default:throw T(new Hn(bA+(n.f!=null?n.f:""+n.g)))}}function v2e(n){switch(n.g){case 1:return new Pgn;case 2:return new kjn;default:throw T(new Hn(lB+(n.f!=null?n.f:""+n.g)))}}function m2e(n){var e,t;if(n.b)return n.b;for(t=vf?null:n.d;t;){if(e=vf?null:t.b,e)return e;t=vf?null:t.d}return e3(),Uin}function k2e(n){var e,t,i;return n.e==0?0:(e=n.d<<5,t=n.a[n.d-1],n.e<0&&(i=dOn(n),i==n.d-1&&(--t,t=t|0)),e-=x7(t),e)}function y2e(n){var e,t,i;return n>5,e=n&31,i=F(be,Le,25,t+1,15,1),i[t]=1<3;)r*=10,--c;n=(n+(r>>1))/r|0}return i.i=n,!0}function E2e(n){return yF(),qn(),!!(n$n(u(n.a,81).j,u(n.b,103))||u(n.a,81).d.e!=0&&n$n(u(n.a,81).j,u(n.b,103)))}function C2e(n){DC(),u(n.We((Xe(),_l)),174).Hc((Lu(),UP))&&(u(n.We(rw),174).Fc((Mu(),Pp)),u(n.We(_l),174).Mc(UP))}function c$n(n,e){var t,i;if(e){for(t=0;t=0;--i)for(e=t[i],r=0;r>1,this.k=e-1>>1}function I2e(n,e){le(e,"End label post-processing",1),Rt(gt(qr(new $n(null,new xn(n.b,16)),new udn),new sdn),new odn),ce(e)}function O2e(n,e,t){var i,r;return i=K(n.p[e.i.p])+K(n.d[e.i.p])+e.n.b+e.a.b,r=K(n.p[t.i.p])+K(n.d[t.i.p])+t.n.b+t.a.b,r-i}function D2e(n,e,t){var i,r;for(i=ui(t,fr),r=0;fc(i,0)!=0&&r0&&(Te(0,e.length),e.charCodeAt(0)==43)?e.substr(1):e))}function F2e(n){var e;return n==null?null:new il((e=jc(n,!0),e.length>0&&(Te(0,e.length),e.charCodeAt(0)==43)?e.substr(1):e))}function LQ(n,e){var t;return n.i>0&&(e.lengthn.i&&St(e,n.i,null),e}function Oc(n,e,t){var i,r,c;return n.ej()?(i=n.i,c=n.fj(),a7(n,i,e),r=n.Zi(3,null,e,i,c),t?t.Ei(r):t=r):a7(n,n.i,e),t}function x2e(n,e,t){var i,r;return i=new Lh(n.e,4,10,(r=e.c,I(r,88)?u(r,26):(Sn(),so)),null,v1(n,e),!1),t?t.Ei(i):t=i,t}function L2e(n,e,t){var i,r;return i=new Lh(n.e,3,10,null,(r=e.c,I(r,88)?u(r,26):(Sn(),so)),v1(n,e),!1),t?t.Ei(i):t=i,t}function o$n(n){W0();var e;return e=new kr(u(n.e.We((Xe(),Kg)),8)),n.B.Hc((Lu(),Mv))&&(e.a<=0&&(e.a=20),e.b<=0&&(e.b=20)),e}function f$n(n){wb();var e;return(n.q?n.q:(Pn(),Pn(),vh))._b((nn(),j0))?e=u(k(n,j0),197):e=u(k(Gi(n),$m),197),e}function bb(n,e){var t,i;return i=null,ai(n,(nn(),rP))&&(t=u(k(n,rP),94),t.Xe(e)&&(i=t.We(e))),i==null&&(i=k(Gi(n),e)),i}function h$n(n,e){var t,i,r;return I(e,42)?(t=u(e,42),i=t.cd(),r=ab(n.Rc(),i),Ff(r,t.dd())&&(r!=null||n.Rc()._b(i))):!1}function NF(n,e){var t,i,r;return n.f>0?(n.qj(),i=e==null?0:mt(e),r=(i&nt)%n.d.length,t=hNn(n,r,i,e),t!=-1):!1}function Ko(n,e){var t,i,r;return n.f>0&&(n.qj(),i=e==null?0:mt(e),r=(i&nt)%n.d.length,t=kY(n,r,i,e),t)?t.dd():null}function g7(n,e){var t,i,r,c;for(c=Kc(n.e.Tg(),e),t=u(n.g,119),r=0;r1?cf(Ih(e.a[1],32),ui(e.a[0],fr)):ui(e.a[0],fr),$d(Ni(e.e,t))))}function p7(n,e){var t;return Fr(n)&&Fr(e)&&(t=n%e,ik>5,e&=31,r=n.d+t+(e==0?0:1),i=F(be,Le,25,r,15,1),Nve(i,n.a,t,e),c=new Pw(n.e,r,i),K5(c),c}function BQ(n,e,t){var i,r;i=u(vc(Pv,e),117),r=u(vc(m9,e),117),t?(yr(Pv,n,i),yr(m9,n,r)):(yr(m9,n,i),yr(Pv,n,r))}function p$n(n,e,t){var i,r,c;for(r=null,c=n.b;c;){if(i=n.a.ue(e,c.d),t&&i==0)return c;i>=0?c=c.a[1]:(r=c,c=c.a[0])}return r}function v$n(n,e,t){var i,r,c;for(r=null,c=n.b;c;){if(i=n.a.ue(e,c.d),t&&i==0)return c;i<=0?c=c.a[0]:(r=c,c=c.a[1])}return r}function K2e(n,e,t,i){var r,c,o;return r=!1,jEe(n.f,t,i)&&(ape(n.f,n.a[e][t],n.a[e][i]),c=n.a[e],o=c[i],c[i]=c[t],c[t]=o,r=!0),r}function RQ(n,e,t,i,r){var c,o,f;for(o=r;e.b!=e.c;)c=u(y2(e),10),f=u(zr(c,i).Xb(0),11),n.d[f.p]=o++,t.c[t.c.length]=f;return o}function _Q(n,e,t){var i,r,c,o,f;return o=n.k,f=e.k,i=t[o.g][f.g],r=Y(bb(n,i)),c=Y(bb(e,i)),y.Math.max((_n(r),r),(_n(c),c))}function H2e(n,e,t){var i,r,c,o;for(i=t/n.c.length,r=0,o=new E(n);o.a2e3&&(wzn=n,KA=y.setTimeout(Vie,10))),_A++==0?(E0e((aG(),din)),!0):!1}function G2e(n,e){var t,i,r;for(i=new re(ue(ei(n).a.Kc(),new An));Se(i);)if(t=u(ve(i),17),r=t.d.i,r.c==e)return!1;return!0}function KQ(n,e){var t,i;if(I(e,245)){i=u(e,245);try{return t=n.vd(i),t==0}catch(r){if(r=jt(r),!I(r,205))throw T(r)}}return!1}function z2e(){return Error.stackTraceLimit>0?(y.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):"stack"in new Error}function U2e(n,e){return Zo(),Zo(),mo(Cl),(y.Math.abs(n-e)<=Cl||n==e||isNaN(n)&&isNaN(e)?0:ne?1:pd(isNaN(n),isNaN(e)))>0}function HQ(n,e){return Zo(),Zo(),mo(Cl),(y.Math.abs(n-e)<=Cl||n==e||isNaN(n)&&isNaN(e)?0:ne?1:pd(isNaN(n),isNaN(e)))<0}function y$n(n,e){return Zo(),Zo(),mo(Cl),(y.Math.abs(n-e)<=Cl||n==e||isNaN(n)&&isNaN(e)?0:ne?1:pd(isNaN(n),isNaN(e)))<=0}function RF(n,e){for(var t=0;!e[t]||e[t]=="";)t++;for(var i=e[t++];tJL)return t.fh();if(i=t.Zg(),i||t==n)break}return i}function qQ(n){return dC(),I(n,156)?u(te($y,Azn),288).vg(n):Uu($y,$u(n))?u(te($y,$u(n)),288).vg(n):null}function X2e(n){if(DT(B4,n))return qn(),z4;if(DT(EB,n))return qn(),qa;throw T(new Hn("Expecting true or false"))}function V2e(n,e){if(e.c==n)return e.d;if(e.d==n)return e.c;throw T(new Hn("Input edge is not connected to the input port."))}function A$n(n,e){return n.e>e.e?1:n.ee.d?n.e:n.d=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 P$n(n,e){var t;return B(e)===B(n)?!0:!I(e,21)||(t=u(e,21),t.gc()!=n.gc())?!1:n.Ic(t)}function Q2e(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,cjn(t=c?(Vwe(n,e),-1):(Qwe(n,e),1)}function J2e(n,e){var t,i;for(t=(Te(e,n.length),n.charCodeAt(e)),i=e+1;ie.e?1:n.fe.f?1:mt(n)-mt(e)}function DT(n,e){return _n(n),e==null?!1:Mn(n,e)?!0:n.length==e.length&&Mn(n.toLowerCase(),e.toLowerCase())}function upe(n,e){var t,i,r,c;for(i=0,r=e.gc();i0&&fc(n,128)<0?(e=ge(n)+128,t=(XEn(),Ein)[e],!t&&(t=Ein[e]=new pq(n)),t):new pq(n)}function O$n(n,e){var t,i;return t=e.Hh(n.a),t&&(i=Ce(Ko((!t.b&&(t.b=new Gu((Sn(),nr),tc,t)),t.b),We)),i!=null)?i:e.ne()}function spe(n,e){var t,i;return t=e.Hh(n.a),t&&(i=Ce(Ko((!t.b&&(t.b=new Gu((Sn(),nr),tc,t)),t.b),We)),i!=null)?i:e.ne()}function ope(n,e){c$();var t,i;for(i=new re(ue(Kh(n).a.Kc(),new An));Se(i);)if(t=u(ve(i),17),t.d.i==e||t.c.i==e)return t;return null}function UQ(n,e,t){this.c=n,this.f=new X,this.e=new Li,this.j=new eW,this.n=new eW,this.b=e,this.g=new ys(e.c,e.d,e.b,e.a),this.a=t}function _F(n){var e,t,i,r;for(this.a=new Sh,this.d=new hi,this.e=0,t=n,i=0,r=t.length;i0):!1}function F$n(n){var e;B(hn(n,(Xe(),Bg)))===B((_h(),HP))&&(Pt(n)?(e=u(hn(Pt(n),Bg),334),gr(n,Bg,e)):gr(n,Bg,i9))}function ape(n,e,t){var i,r;yx(n.e,e,t,(J(),Gn)),yx(n.i,e,t,Vn),n.a&&(r=u(k(e,(G(),rt)),11),i=u(k(t,rt),11),l$(n.g,r,i))}function x$n(n,e,t){var i,r,c;i=e.c.p,c=e.p,n.b[i][c]=new YTn(n,e),t&&(n.a[i][c]=new c6n(e),r=u(k(e,(G(),m0)),10),r&&Tn(n.d,r,e))}function L$n(n,e){var t,i,r;if(W(eS,n),e.Fc(n),t=u(te(DR,n),21),t)for(r=t.Kc();r.Ob();)i=u(r.Pb(),33),xr(eS,i,0)!=-1||L$n(i,e)}function dpe(n,e,t){var i;(Fzn?(m2e(n),!0):xzn||Nzn?(e3(),!0):Lzn&&(e3(),!1))&&(i=new hEn(e),i.b=t,g5e(n,i))}function KF(n,e){var t;t=!n.A.Hc((Qu(),id))||n.q==(Mi(),Ac),n.u.Hc((Mu(),n1))?t?xCe(n,e):a_n(n,e):n.u.Hc(Gl)&&(t?nCe(n,e):M_n(n,e))}function r4(n,e){var t,i;if(++n.j,e!=null&&(t=(i=n.a.Cb,I(i,97)?u(i,97).Jg():null),ome(e,t))){R2(n.a,4,t);return}R2(n.a,4,u(e,126))}function N$n(n,e,t){return new ys(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 bpe(n,e){var t,i;return t=Wc(n.a.c.p,e.a.c.p),t!=0?t:(i=Wc(n.a.d.i.p,e.a.d.i.p),i!=0?i:Wc(e.a.d.p,n.a.d.p))}function wpe(n,e,t){var i,r,c,o;return c=e.j,o=t.j,c!=o?c.g-o.g:(i=n.f[e.p],r=n.f[t.p],i==0&&r==0?0:i==0?-1:r==0?1:ni(i,r))}function B$n(n,e,t){var i,r,c;if(!t[e.d])for(t[e.d]=!0,r=new E(Hw(e));r.a=r)return r;for(e=e>0?e:0;ei&&St(e,i,null),e}function _$n(n,e){var t,i;for(i=n.a.length,e.lengthi&&St(e,i,null),e}function Aa(n,e,t){var i,r,c;return r=u(te(n.e,e),387),r?(c=gU(r,t),Oyn(n,r),c):(i=new qU(n,e,t),it(n.e,e,i),iMn(i),null)}function vpe(n){var e;if(n==null)return null;if(e=a9e(jc(n,!0)),e==null)throw T(new VI("Invalid hexBinary value: '"+n+"'"));return e}function m7(n){return jl(),fc(n,0)<0?fc(n,-1)!=0?new OJ(-1,P3(n)):gR:fc(n,10)<=0?xin[ge(n)]:new OJ(1,n)}function qF(){return SM(),A(M(yUn,1),z,159,0,[mUn,vUn,kUn,hUn,fUn,lUn,bUn,dUn,aUn,pUn,gUn,wUn,sUn,uUn,oUn,rUn,iUn,cUn,eUn,nUn,tUn,TR])}function K$n(n){var e;this.d=new X,this.j=new Li,this.g=new Li,e=n.g.b,this.f=u(k(Gi(e),(nn(),as)),103),this.e=K(Y(xT(e,nw)))}function H$n(n){this.b=new X,this.e=new X,this.d=n,this.a=!Wv(gt(new $n(null,new Cd(new sf(n.b))),new Fv(new qbn))).sd((ca(),V4))}function Ho(){Ho=N,Xn=new Z9("PARENTS",0),vi=new Z9("NODES",1),Zf=new Z9("EDGES",2),Ya=new Z9("PORTS",3),D1=new Z9("LABELS",4)}function qw(){qw=N,Hl=new e8("DISTRIBUTED",0),Cy=new e8("JUSTIFIED",1),Hhn=new e8("BEGIN",2),r9=new e8(I4,3),qhn=new e8("END",4)}function mpe(n){var e;switch(e=n.yi(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 GF(n){switch(n.g){case 1:return sr(),Yh;case 4:return sr(),Zs;case 2:return sr(),Ao;case 3:return sr(),Jh}return sr(),kh}function kpe(n,e,t){var i;switch(i=t.q.getFullYear()-Tl+Tl,i<0&&(i=-i),e){case 1:n.a+=i;break;case 2:oh(n,i%100,2);break;default:oh(n,i,e)}}function _e(n,e){var t,i;if(tb(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=64&&e<128&&(r=cf(r,Ih(1,e-64)));return r}function xT(n,e){var t,i;return i=null,ai(n,(Xe(),Ap))&&(t=u(k(n,Ap),94),t.Xe(e)&&(i=t.We(e))),i==null&&Gi(n)&&(i=k(Gi(n),e)),i}function z$n(n,e){var t,i,r;r=e.d.i,i=r.k,!(i==(Qn(),ii)||i==mf)&&(t=new re(ue(ei(r).a.Kc(),new An)),Se(t)&&it(n.k,e,u(ve(t),17)))}function zF(n,e){var t,i,r;return i=On(n.Tg(),e),t=e-n.Ah(),t<0?(r=n.Yg(i),r>=0?n.lh(r):Ox(n,i)):t<0?Ox(n,i):u(i,66).Nj().Sj(n,n.yh(),t)}function cn(n){var e;if(I(n.a,4)){if(e=qQ(n.a),e==null)throw T(new $r(HHn+n.b+"'. "+KHn+(Ph(Fy),Fy.k)+Etn));return e}else return n.a}function Epe(n){var e;if(n==null)return null;if(e=qCe(jc(n,!0)),e==null)throw T(new VI("Invalid base64Binary value: '"+n+"'"));return e}function oe(n){var e;try{return e=n.i.Xb(n.e),n.mj(),n.g=n.e++,e}catch(t){throw t=jt(t),I(t,73)?(n.mj(),T(new ic)):T(t)}}function UF(n){var e;try{return e=n.c.ki(n.e),n.mj(),n.g=n.e++,e}catch(t){throw t=jt(t),I(t,73)?(n.mj(),T(new ic)):T(t)}}function a6(){a6=N,Trn=(Xe(),yhn),IR=Zfn,FUn=Tp,Crn=nd,BUn=(WT(),irn),NUn=ern,RUn=crn,LUn=nrn,xUn=(pF(),yrn),PR=OUn,Ern=DUn,nS=$Un}function LT(n){switch(DG(),this.c=new X,this.d=n,n.g){case 0:case 2:this.a=_W(qrn),this.b=Ft;break;case 3:case 1:this.a=qrn,this.b=Qt}}function U$n(n,e,t){var i,r;if(n.c)nu(n.c,n.c.i+e),eu(n.c,n.c.j+t);else for(r=new E(n.b);r.a0&&(W(n.b,new MEn(e.a,t)),i=e.a.length,0i&&(e.a+=Iyn(F(Ls,Rf,25,-i,15,1))))}function W$n(n,e){var t,i,r;for(t=n.o,r=u(u(ct(n.r,e),21),84).Kc();r.Ob();)i=u(r.Pb(),111),i.e.a=M3e(i,t.a),i.e.b=t.b*K(Y(i.b.We(JA)))}function Tpe(n,e){var t,i,r,c;return r=n.k,t=K(Y(k(n,(G(),k0)))),c=e.k,i=K(Y(k(e,k0))),c!=(Qn(),Xt)?-1:r!=Xt?1:t==i?0:t=0?n.hh(e,t,i):(n.eh()&&(i=(r=n.Vg(),r>=0?n.Qg(i):n.eh().ih(n,-1-r,null,i))),n.Sg(e,t,i))}function XQ(n,e){switch(e){case 7:!n.e&&(n.e=new Fn(bi,n,7,4)),de(n.e);return;case 8:!n.d&&(n.d=new Fn(bi,n,8,5)),de(n.d);return}FQ(n,e)}function qo(n,e){var t;t=n.Zc(e);try{return t.Pb()}catch(i){throw i=jt(i),I(i,109)?T(new mr("Can't get element "+e)):T(i)}}function VQ(n,e){this.e=n,e=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 K2(){K2=N,$k=new Rj(NM,0),Dk=new Rj(lN,1),Fk=new Rj(aN,2),xk=new Rj(dN,3),$k.a=!1,Dk.a=!0,Fk.a=!1,xk.a=!0}function d6(){d6=N,Lk=new Bj(NM,0),YA=new Bj(lN,1),ZA=new Bj(aN,2),Nk=new Bj(dN,3),Lk.a=!1,YA.a=!0,ZA.a=!1,Nk.a=!0}function Ipe(n){var e;e=n.a;do e=u(ve(new re(ue(Lr(e).a.Kc(),new An))),17).c.i,e.k==(Qn(),pi)&&n.b.Fc(e);while(e.k==(Qn(),pi));n.b=va(n.b)}function Ope(n){var e,t,i;for(i=n.c.a,n.p=(pe(i),new du(i)),t=new E(i);t.at.b)return!0}return!1}function WF(n,e){return ki(n)?!!ozn[e]:n.hm?!!n.hm[e]:G0(n)?!!szn[e]:q0(n)?!!uzn[e]:!1}function gr(n,e,t){return t==null?(!n.o&&(n.o=new Xu((Dc(),Ul),S0,n,0)),IT(n.o,e)):(!n.o&&(n.o=new Xu((Dc(),Ul),S0,n,0)),XT(n.o,e,t)),n}function xpe(n,e,t,i){var r,c;c=e.Xe((Xe(),_g))?u(e.We(_g),21):n.j,r=Cge(c),r!=(SM(),TR)&&(t&&!GQ(r)||nY(d9e(n,r,i),e))}function BT(n,e,t,i){var r,c,o;return c=On(n.Tg(),e),r=e-n.Ah(),r<0?(o=n.Yg(c),o>=0?n._g(o,t,!0):Yd(n,c,t)):u(c,66).Nj().Pj(n,n.yh(),r,t,i)}function Lpe(n,e,t,i){var r,c,o;t.mh(e)&&(er(),R$(e)?(r=u(t.ah(e),153),upe(n,r)):(c=(o=e,o?u(i,49).xh(o):null),c&&Bte(t.ah(e),c)))}function Npe(n){switch(n.g){case 1:return Hd(),Ok;case 3:return Hd(),Ik;case 2:return Hd(),AR;case 4:return Hd(),MR;default:return null}}function QQ(n){switch(typeof n){case EL:return m1(n);case UZ:return Gt(n);case X2:return qn(),n?1231:1237;default:return n==null?0:md(n)}}function Bpe(n,e,t){if(n.e)switch(n.b){case 1:d1e(n.c,e,t);break;case 0:b1e(n.c,e,t)}else xAn(n.c,e,t);n.a[e.p][t.p]=n.c.i,n.a[t.p][e.p]=n.c.e}function Y$n(n){var e,t;if(n==null)return null;for(t=F(mh,q,193,n.length,0,2),e=0;e=0)return r;if(n.Fk()){for(i=0;i=r)throw T(new V0(e,r));if(n.hi()&&(i=n.Xc(t),i>=0&&i!=e))throw T(new Hn(yk));return n.mi(e,t)}function JQ(n,e){if(this.a=u(pe(n),245),this.b=u(pe(e),245),n.vd(e)>0||n==(qI(),cR)||e==(HI(),uR))throw T(new Hn("Invalid range: "+OAn(n,e)))}function Z$n(n){var e,t;for(this.b=new X,this.c=n,this.a=!1,t=new E(n.a);t.a0),(e&-e)==e)return Gt(e*xu(n,31)*4656612873077393e-25);do t=xu(n,31),i=t%e;while(t-i+(e-1)<0);return Gt(i)}function m1(n){lEn();var e,t,i;return t=":"+n,i=XA[t],i!=null?Gt((_n(i),i)):(i=Xin[t],e=i==null?I8e(n):Gt((_n(i),i)),c1e(),XA[t]=e,e)}function eFn(n,e,t){le(t,"Compound graph preprocessor",1),n.a=new Od,s_n(n,e,null),pje(n,e),Z9e(n),H(e,(G(),dun),n.a),n.a=null,Cu(n.b),ce(t)}function Kpe(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 Hpe(n){var e,t,i;for(i=u(ct(n.a,(Vw(),IS)),15).Kc();i.Ob();)t=u(i.Pb(),101),e=hJ(t),b3(n,t,e[0],(Kd(),w0),0),b3(n,t,e[1],g0,1)}function qpe(n){var e,t,i;for(i=u(ct(n.a,(Vw(),OS)),15).Kc();i.Ob();)t=u(i.Pb(),101),e=hJ(t),b3(n,t,e[0],(Kd(),w0),0),b3(n,t,e[1],g0,1)}function XF(n){switch(n.g){case 0:return null;case 1:return new eOn;case 2:return new oG;default:throw T(new Hn(lB+(n.f!=null?n.f:""+n.g)))}}function k7(n,e,t){var i,r;for(lwe(n,e-n.s,t-n.t),r=new E(n.n);r.a1&&(c=_pe(n,e)),c}function VF(n){var e;return n.f&&n.f.kh()&&(e=u(n.f,49),n.f=u(pl(n,e),82),n.f!=e&&n.Db&4&&!(n.Db&1)&&et(n,new gi(n,9,8,e,n.f))),n.f}function QF(n){var e;return n.i&&n.i.kh()&&(e=u(n.i,49),n.i=u(pl(n,e),82),n.i!=e&&n.Db&4&&!(n.Db&1)&&et(n,new gi(n,9,7,e,n.i))),n.i}function ir(n){var e;return n.b&&n.b.Db&64&&(e=n.b,n.b=u(pl(n,e),18),n.b!=e&&n.Db&4&&!(n.Db&1)&&et(n,new gi(n,9,21,e,n.b))),n.b}function KT(n,e){var t,i,r;n.d==null?(++n.e,++n.f):(i=e.Sh(),u8e(n,n.f+1),r=(i&nt)%n.d.length,t=n.d[r],!t&&(t=n.d[r]=n.uj()),t.Fc(e),++n.f)}function nJ(n,e,t){var i;return e.Kj()?!1:e.Zj()!=-2?(i=e.zj(),i==null?t==null:tt(i,t)):e.Hj()==n.e.Tg()&&t==null}function HT(){var n;rs(16,J_n),n=UIn(16),this.b=F(oR,nk,317,n,0,1),this.c=F(oR,nk,317,n,0,1),this.a=null,this.e=null,this.i=0,this.f=n-1,this.g=0}function qh(n){vU.call(this),this.k=(Qn(),ii),this.j=(rs(6,Pb),new Pc(6)),this.b=(rs(2,Pb),new Pc(2)),this.d=new NI,this.f=new Zq,this.a=n}function zpe(n){var e,t;n.c.length<=1||(e=ZNn(n,(J(),ae)),Kxn(n,u(e.a,19).a,u(e.b,19).a),t=ZNn(n,Gn),Kxn(n,u(t.a,19).a,u(t.b,19).a))}function b6(){b6=N,zsn=new V9("SIMPLE",0),nK=new V9(PN,1),eK=new V9("LINEAR_SEGMENTS",2),Lm=new V9("BRANDES_KOEPF",3),Nm=new V9(EHn,4)}function eJ(n,e,t){p2(u(k(e,(nn(),Lt)),98))||(VX(n,e,k1(e,t)),VX(n,e,k1(e,(J(),ae))),VX(n,e,k1(e,Kn)),Pn(),wi(e.j,new i6n(n)))}function tFn(n,e,t,i){var r,c,o;for(r=u(ct(i?n.a:n.b,e),21),o=r.Kc();o.Ob();)if(c=u(o.Pb(),33),aM(n,t,c))return!0;return!1}function JF(n){var e,t;for(t=new ie(n);t.e!=t.i.gc();)if(e=u(oe(t),87),e.e||(!e.d&&(e.d=new Yt(ar,e,1)),e.d).i!=0)return!0;return!1}function YF(n){var e,t;for(t=new ie(n);t.e!=t.i.gc();)if(e=u(oe(t),87),e.e||(!e.d&&(e.d=new Yt(ar,e,1)),e.d).i!=0)return!0;return!1}function Upe(n){var e,t,i;for(e=0,i=new E(n.c.a);i.a102?-1:n<=57?n-48:n<65?-1:n<=70?n-65+10:n<97?-1:n-97+10}function ex(n,e){if(n==null)throw T(new c2("null key in entry: null="+e));if(e==null)throw T(new c2("null value in entry: "+n+"=null"))}function Wpe(n,e){for(var t,i;n.Ob();)if(!e.Ob()||(t=n.Pb(),i=e.Pb(),!(B(t)===B(i)||t!=null&&tt(t,i))))return!1;return!e.Ob()}function rFn(n,e){var t;return t=A(M(Ei,1),pr,25,15,[kF(n.a[0],e),kF(n.a[1],e),kF(n.a[2],e)]),n.d&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function cFn(n,e){var t;return t=A(M(Ei,1),pr,25,15,[pT(n.a[0],e),pT(n.a[1],e),pT(n.a[2],e)]),n.d&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function Pa(){Pa=N,f_=new X9("GREEDY",0),Gcn=new X9(fHn,1),h_=new X9(PN,2),Em=new X9("MODEL_ORDER",3),jm=new X9("GREEDY_MODEL_ORDER",4)}function uFn(n,e){var t,i,r;for(n.b[e.g]=1,i=_e(e.d,0);i.b!=i.d.c;)t=u(Re(i),188),r=t.c,n.b[r.g]==1?Ke(n.a,t):n.b[r.g]==2?n.b[r.g]=1:uFn(n,r)}function Xpe(n,e){var t,i,r;for(r=new Pc(e.gc()),i=e.Kc();i.Ob();)t=u(i.Pb(),286),t.c==t.f?l4(n,t,t.c):U5e(n,t)||(r.c[r.c.length]=t);return r}function Vpe(n,e,t){var i,r,c,o,f;for(f=n.r+e,n.r+=e,n.d+=t,i=t/n.n.c.length,r=0,o=new E(n.n);o.ac&&St(e,c,null),e}function f3e(n,e){var t,i;if(i=n.gc(),e==null){for(t=0;t0&&(h+=r),l[a]=o,o+=f*(h+i)}function bFn(n){var e,t,i;for(i=n.f,n.n=F(Ei,pr,25,i,15,1),n.d=F(Ei,pr,25,i,15,1),e=0;e0?n.c:0),++r;n.b=i,n.d=c}function g3e(n,e){var t,i,r,c,o;for(i=0,r=0,t=0,o=new E(e);o.a0?n.g:0),++t;n.c=r,n.d=i}function mFn(n,e){var t;return t=A(M(Ei,1),pr,25,15,[ZQ(n,(_o(),Zr),e),ZQ(n,Fc,e),ZQ(n,nc,e)]),n.f&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function p3e(n,e,t){var i;try{wM(n,e+n.j,t+n.k,!1,!0)}catch(r){throw r=jt(r),I(r,73)?(i=r,T(new mr(i.g+RM+e+Ji+t+")."))):T(r)}}function v3e(n,e,t){var i;try{wM(n,e+n.j,t+n.k,!0,!1)}catch(r){throw r=jt(r),I(r,73)?(i=r,T(new mr(i.g+RM+e+Ji+t+")."))):T(r)}}function kFn(n){var e;ai(n,(nn(),y0))&&(e=u(k(n,y0),21),e.Hc((jb(),So))?(e.Mc(So),e.Fc(Po)):e.Hc(Po)&&(e.Mc(Po),e.Fc(So)))}function yFn(n){var e;ai(n,(nn(),y0))&&(e=u(k(n,y0),21),e.Hc((jb(),Oo))?(e.Mc(Oo),e.Fc(eo)):e.Hc(eo)&&(e.Mc(eo),e.Fc(Oo)))}function m3e(n,e,t){le(t,"Self-Loop ordering",1),Rt(Vc(gt(gt(qr(new $n(null,new xn(e.b,16)),new P0n),new I0n),new O0n),new D0n),new O5n(n)),ce(t)}function j7(n,e,t,i){var r,c;for(r=e;r0&&(r.b+=e),r}function zT(n,e){var t,i,r;for(r=new Li,i=n.Kc();i.Ob();)t=u(i.Pb(),37),M6(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 EFn(n){var e,t,i;for(i=nt,t=new E(n.a);t.a>16==6?n.Cb.ih(n,5,Vo,e):(i=ir(u(On((t=u(Rn(n,16),26),t||n.zh()),n.Db>>16),18)),n.Cb.ih(n,i.n,i.f,e))}function C3e(n){k3();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 T3e(n){var e;return e=(_In(),kzn),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 MFn(n){var e,t,i;n.b==n.c&&(i=n.a.length,t=KV(y.Math.max(8,i))<<1,n.b!=0?(e=bo(n.a,t),XIn(n,e,i),n.a=e,n.b=0):Wmn(n.a,t),n.c=i)}function M3e(n,e){var t;return t=n.b,t.Xe((Xe(),Ru))?t.Hf()==(J(),Gn)?-t.rf().a-K(Y(t.We(Ru))):e+K(Y(t.We(Ru))):t.Hf()==(J(),Gn)?-t.rf().a:e}function E7(n){var e;return n.b.c.length!=0&&u(un(n.b,0),70).a?u(un(n.b,0),70).a:(e=WD(n),e??""+(n.c?xr(n.c.a,n,0):-1))}function UT(n){var e;return n.f.c.length!=0&&u(un(n.f,0),70).a?u(un(n.f,0),70).a:(e=WD(n),e??""+(n.i?xr(n.i.j,n,0):-1))}function A3e(n,e){var t,i;if(e<0||e>=n.gc())return null;for(t=e;t0?n.c:0),r=y.Math.max(r,e.d),++i;n.e=c,n.b=r}function P3e(n){var e,t;if(!n.b)for(n.b=mC(u(n.f,118).Ag().i),t=new ie(u(n.f,118).Ag());t.e!=t.i.gc();)e=u(oe(t),137),W(n.b,new XI(e));return n.b}function I3e(n,e){var t,i,r;if(e.dc())return o3(),o3(),xy;for(t=new Pjn(n,e.gc()),r=new ie(n);r.e!=r.i.gc();)i=oe(r),e.Hc(i)&&me(t,i);return t}function oJ(n,e,t,i){return e==0?i?(!n.o&&(n.o=new Xu((Dc(),Ul),S0,n,0)),n.o):(!n.o&&(n.o=new Xu((Dc(),Ul),S0,n,0)),N8(n.o)):BT(n,e,t,i)}function fx(n){var e,t;if(n.rb)for(e=0,t=n.rb.i;e>22),r+=i>>22,r<0)?!1:(n.l=t&Nu,n.m=i&Nu,n.h=r&Wh,!0)}function F3e(n,e,t,i,r,c,o){var f,h;return!(e.Ae()&&(h=n.a.ue(t,i),h<0||!r&&h==0)||e.Be()&&(f=n.a.ue(t,c),f>0||!o&&f==0))}function x3e(n,e){V3();var t;if(t=n.j.g-e.j.g,t!=0)return 0;switch(n.j.g){case 2:return DF(e,Lcn)-DF(n,Lcn);case 4:return DF(n,xcn)-DF(e,xcn)}return 0}function L3e(n){switch(n.g){case 0:return a_;case 1:return d_;case 2:return b_;case 3:return w_;case 4:return FS;case 5:return g_;default:return null}}function Tr(n,e,t){var i,r;return i=(r=new _I,Ca(r,e),Ic(r,t),me((!n.c&&(n.c=new V(P0,n,12,10)),n.c),r),r),d1(i,0),hb(i,1),p1(i,!0),g1(i,!0),i}function H2(n,e){var t,i;if(e>=n.i)throw T(new xO(e,n.i));return++n.j,t=n.g[e],i=n.i-e-1,i>0&&gc(n.g,e+1,n.g,e,i),St(n.g,--n.i,null),n.fi(e,t),n.ci(),t}function AFn(n,e){var t,i;return n.Db>>16==17?n.Cb.ih(n,21,ro,e):(i=ir(u(On((t=u(Rn(n,16),26),t||n.zh()),n.Db>>16),18)),n.Cb.ih(n,i.n,i.f,e))}function N3e(n){var e,t,i,r;for(Pn(),wi(n.c,n.a),r=new E(n.c);r.at.a.c.length))throw T(new Hn("index must be >= 0 and <= layer node count"));n.c&&Jc(n.c.a,n),n.c=t,t&&Q0(t.a,e,n)}function DFn(n,e){var t,i,r;for(i=new re(ue(Kh(n).a.Kc(),new An));Se(i);)return t=u(ve(i),17),r=u(e.Kb(t),10),new Zy(pe(r.n.b+r.o.b/2));return Rv(),Rv(),rR}function $Fn(n,e){this.c=new we,this.a=n,this.b=e,this.d=u(k(n,(G(),Ig)),304),B(k(n,(nn(),ysn)))===B((K8(),xS))?this.e=new h9n:this.e=new f9n}function q3e(n,e){var t,i,r,c;for(c=0,i=new E(n);i.a>16==6?n.Cb.ih(n,6,bi,e):(i=ir(u(On((t=u(Rn(n,16),26),t||(Dc(),XP)),n.Db>>16),18)),n.Cb.ih(n,i.n,i.f,e))}function bJ(n,e){var t,i;return n.Db>>16==7?n.Cb.ih(n,1,Iy,e):(i=ir(u(On((t=u(Rn(n,16),26),t||(Dc(),e1n)),n.Db>>16),18)),n.Cb.ih(n,i.n,i.f,e))}function wJ(n,e){var t,i;return n.Db>>16==9?n.Cb.ih(n,9,Ot,e):(i=ir(u(On((t=u(Rn(n,16),26),t||(Dc(),i1n)),n.Db>>16),18)),n.Cb.ih(n,i.n,i.f,e))}function xFn(n,e){var t,i;return n.Db>>16==5?n.Cb.ih(n,9,iI,e):(i=ir(u(On((t=u(Rn(n,16),26),t||(Sn(),L1)),n.Db>>16),18)),n.Cb.ih(n,i.n,i.f,e))}function gJ(n,e){var t,i;return n.Db>>16==3?n.Cb.ih(n,0,Dy,e):(i=ir(u(On((t=u(Rn(n,16),26),t||(Sn(),x1)),n.Db>>16),18)),n.Cb.ih(n,i.n,i.f,e))}function LFn(n,e){var t,i;return n.Db>>16==7?n.Cb.ih(n,6,Vo,e):(i=ir(u(On((t=u(Rn(n,16),26),t||(Sn(),B1)),n.Db>>16),18)),n.Cb.ih(n,i.n,i.f,e))}function NFn(){this.a=new q2n,this.g=new HT,this.j=new HT,this.b=new we,this.d=new HT,this.i=new HT,this.k=new we,this.c=new we,this.e=new we,this.f=new we}function W3e(n,e,t){var i,r,c;for(t<0&&(t=0),c=n.i,r=t;rJL)return u4(n,i);if(i==n)return!0}}return!1}function V3e(n){switch(dE(),n.q.g){case 5:yLn(n,(J(),Kn)),yLn(n,ae);break;case 4:gNn(n,(J(),Kn)),gNn(n,ae);break;default:g_n(n,(J(),Kn)),g_n(n,ae)}}function Q3e(n){switch(dE(),n.q.g){case 5:LLn(n,(J(),Vn)),LLn(n,Gn);break;case 4:W$n(n,(J(),Vn)),W$n(n,Gn);break;default:p_n(n,(J(),Vn)),p_n(n,Gn)}}function J3e(n){var e,t;e=u(k(n,(Go(),eWn)),19),e?(t=e.a,t==0?H(n,(dl(),cS),new OF):H(n,(dl(),cS),new EC(t))):H(n,(dl(),cS),new EC(1))}function Y3e(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 Z3e(n,e){switch(n.g){case 0:return e==(Ss(),xl)?TS:MS;case 1:return e==(Ss(),xl)?TS:Hk;case 2:return e==(Ss(),xl)?Hk:MS;default:return Hk}}function T7(n,e){var t,i,r;for(Jc(n.a,e),n.e-=e.r+(n.a.c.length==0?0:n.c),r=ttn,i=new E(n.a);i.a>16==3?n.Cb.ih(n,12,Ot,e):(i=ir(u(On((t=u(Rn(n,16),26),t||(Dc(),n1n)),n.Db>>16),18)),n.Cb.ih(n,i.n,i.f,e))}function vJ(n,e){var t,i;return n.Db>>16==11?n.Cb.ih(n,10,Ot,e):(i=ir(u(On((t=u(Rn(n,16),26),t||(Dc(),t1n)),n.Db>>16),18)),n.Cb.ih(n,i.n,i.f,e))}function BFn(n,e){var t,i;return n.Db>>16==10?n.Cb.ih(n,11,ro,e):(i=ir(u(On((t=u(Rn(n,16),26),t||(Sn(),N1)),n.Db>>16),18)),n.Cb.ih(n,i.n,i.f,e))}function RFn(n,e){var t,i;return n.Db>>16==10?n.Cb.ih(n,12,co,e):(i=ir(u(On((t=u(Rn(n,16),26),t||(Sn(),lw)),n.Db>>16),18)),n.Cb.ih(n,i.n,i.f,e))}function qs(n){var e;return!(n.Bb&1)&&n.r&&n.r.kh()&&(e=u(n.r,49),n.r=u(pl(n,e),138),n.r!=e&&n.Db&4&&!(n.Db&1)&&et(n,new gi(n,9,8,e,n.r))),n.r}function lx(n,e,t){var i;return i=A(M(Ei,1),pr,25,15,[qJ(n,(_o(),Zr),e,t),qJ(n,Fc,e,t),qJ(n,nc,e,t)]),n.f&&(i[0]=y.Math.max(i[0],i[2]),i[2]=i[0]),i}function n4e(n,e){var t,i,r;if(r=Xpe(n,e),r.c.length!=0)for(wi(r,new e0n),t=r.c.length,i=0;i>19,l=e.h>>19,h!=l?l-h:(r=n.h,f=e.h,r!=f?r-f:(i=n.m,o=e.m,i!=o?i-o:(t=n.l,c=e.l,t-c)))}function WT(){WT=N,urn=(dM(),ER),crn=new In(snn,urn),rrn=(RC(),jR),irn=new In(onn,rrn),trn=($T(),yR),ern=new In(fnn,trn),nrn=new In(hnn,(qn(),!0))}function g6(n,e,t){var i,r;i=e*t,I(n.g,145)?(r=S2(n),r.f.d?r.f.a||(n.d.a+=i+wf):(n.d.d-=i+wf,n.d.a+=i+wf)):I(n.g,10)&&(n.d.d-=i,n.d.a+=2*i)}function _Fn(n,e,t){var i,r,c,o,f;for(r=n[t.g],f=new E(e.d);f.a0?n.g:0),++t;e.b=i,e.e=r}function KFn(n){var e,t,i;if(i=n.b,f7n(n.i,i.length)){for(t=i.length*2,n.b=F(oR,nk,317,t,0,1),n.c=F(oR,nk,317,t,0,1),n.f=t-1,n.i=0,e=n.a;e;e=e.c)D7(n,e,e);++n.g}}function o4e(n,e,t,i){var r,c,o,f;for(r=0;ro&&(f=o/i),r>c&&(h=c/r),Of(n,y.Math.min(f,h)),n}function h4e(){mM();var n,e;try{if(e=u(PJ((Z1(),uo),_4),2014),e)return e}catch(t){if(t=jt(t),I(t,102))n=t,gW((je(),n));else throw T(t)}return new R2n}function l4e(){DPn();var n,e;try{if(e=u(PJ((Z1(),uo),Ka),2024),e)return e}catch(t){if(t=jt(t),I(t,102))n=t,gW((je(),n));else throw T(t)}return new r3n}function a4e(){mM();var n,e;try{if(e=u(PJ((Z1(),uo),Vs),1941),e)return e}catch(t){if(t=jt(t),I(t,102))n=t,gW((je(),n));else throw T(t)}return new lpn}function d4e(n,e,t){var i,r;return r=n.e,n.e=e,n.Db&4&&!(n.Db&1)&&(i=new gi(n,1,4,r,e),t?t.Ei(i):t=i),r!=e&&(e?t=j4(n,uM(n,e),t):t=j4(n,n.a,t)),t}function HFn(){Tj.call(this),this.e=-1,this.a=!1,this.p=Bi,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=Bi}function b4e(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=ni(i,r),t==0){if(!n.a&&e.a)return-1;if(!e.a&&n.a)return 1}return t}function w4e(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=ni(i,r),t==0){if(!n.a&&e.a)return-1;if(!e.a&&n.a)return 1}return t}function g4e(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=ni(i,r),t==0){if(!n.a&&e.a)return-1;if(!e.a&&n.a)return 1}return t}function kJ(){kJ=N,wWn=Eu(Ze(Ze(Ze(new li,(Qi(),Cc),(rr(),ycn)),Cc,jcn),Or,Ecn),Or,hcn),pWn=Ze(Ze(new li,Cc,icn),Cc,lcn),gWn=Eu(new li,Or,dcn)}function p4e(n){var e,t,i,r,c;for(e=u(k(n,(G(),Am)),83),c=n.n,i=e.Cc().Kc();i.Ob();)t=u(i.Pb(),306),r=t.i,r.c+=c.a,r.d+=c.b,t.c?rBn(t):cBn(t);H(n,Am,null)}function v4e(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 m4e(n){var e,t,i,r,c;if(i=0,r=D4,n.b)for(e=0;e<360;e++)t=e*.017453292519943295,hZ(n,n.d,0,0,ag,t),c=n.b.ig(n.d),c0&&(o=(c&nt)%n.d.length,r=kY(n,o,c,e),r)?(f=r.ed(t),f):(i=n.tj(c,e,t),n.c.Fc(i),null)}function EJ(n,e){var t,i,r,c;switch(w1(n,e)._k()){case 3:case 2:{for(t=ig(e),r=0,c=t.i;r=0;i--)if(Mn(n[i].d,e)||Mn(n[i].d,t)){n.length>=i+1&&n.splice(0,i+1);break}return n}function M7(n,e){var t;return Fr(n)&&Fr(e)&&(t=n/e,ik0&&(n.b+=2,n.a+=i):(n.b+=1,n.a+=y.Math.min(i,r))}function VFn(n,e){var t,i;if(i=!1,ki(e)&&(i=!0,j2(n,new Z0(Ce(e)))),i||I(e,236)&&(i=!0,j2(n,(t=PU(u(e,236)),new nj(t)))),!i)throw T(new UI(Btn))}function N4e(n,e,t,i){var r,c,o;return r=new Lh(n.e,1,10,(o=e.c,I(o,88)?u(o,26):(Sn(),so)),(c=t.c,I(c,88)?u(c,26):(Sn(),so)),v1(n,e),!1),i?i.Ei(r):i=r,i}function MJ(n){var e,t;switch(u(k(Gi(n),(nn(),dsn)),420).g){case 0:return e=n.n,t=n.o,new fn(e.a+t.a/2,e.b+t.b/2);case 1:return new kr(n.n);default:return null}}function A7(){A7=N,LS=new c5(Xh,0),Ycn=new c5("LEFTUP",1),nun=new c5("RIGHTUP",2),Jcn=new c5("LEFTDOWN",3),Zcn=new c5("RIGHTDOWN",4),p_=new c5("BALANCED",5)}function B4e(n,e,t){var i,r,c;if(i=ni(n.a[e.p],n.a[t.p]),i==0){if(r=u(k(e,(G(),gp)),15),c=u(k(t,gp),15),r.Hc(t))return-1;if(c.Hc(e))return 1}return i}function R4e(n){switch(n.g){case 1:return new Ogn;case 2:return new Dgn;case 3:return new Ign;case 0:return null;default:throw T(new Hn(lB+(n.f!=null?n.f:""+n.g)))}}function AJ(n,e,t){switch(e){case 1:!n.n&&(n.n=new V(Rr,n,1,7)),de(n.n),!n.n&&(n.n=new V(Rr,n,1,7)),Dt(n.n,u(t,14));return;case 2:Q5(n,Ce(t));return}WV(n,e,t)}function SJ(n,e,t){switch(e){case 3:Bd(n,K(Y(t)));return;case 4:Rd(n,K(Y(t)));return;case 5:nu(n,K(Y(t)));return;case 6:eu(n,K(Y(t)));return}AJ(n,e,t)}function VT(n,e,t){var i,r,c;c=(i=new _I,i),r=df(c,e,null),r&&r.Fi(),Ic(c,t),me((!n.c&&(n.c=new V(P0,n,12,10)),n.c),c),d1(c,0),hb(c,1),p1(c,!0),g1(c,!0)}function PJ(n,e){var t,i,r;return t=n5(n.g,e),I(t,235)?(r=u(t,235),r.Qh()==null,r.Nh()):I(t,498)?(i=u(t,1938),r=i.b,r):null}function _4e(n,e,t,i){var r,c;return pe(e),pe(t),c=u(M5(n.d,e),19),NPn(!!c,"Row %s not in %s",e,n.e),r=u(M5(n.b,t),19),NPn(!!r,"Column %s not in %s",t,n.c),HOn(n,c.a,r.a,i)}function QFn(n,e,t,i,r,c,o){var f,h,l,a,d;if(a=r[c],l=c==o-1,f=l?i:0,d=pFn(f,a),i!=10&&A(M(n,o-c),e[c],t[c],f,d),!l)for(++c,h=0;h1||f==-1?(c=u(h,15),r.Wb(W2e(n,c))):r.Wb(Zx(n,u(h,56)))))}function W4e(n,e,t,i){N8n();var r=iR;function c(){for(var o=0;ooB)return t;r>-1e-6&&++t}return t}function DJ(n,e){var t;e!=n.b?(t=null,n.b&&(t=sC(n.b,n,-4,t)),e&&(t=_2(e,n,-4,t)),t=DDn(n,e,t),t&&t.Fi()):n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,3,e,e))}function ZFn(n,e){var t;e!=n.f?(t=null,n.f&&(t=sC(n.f,n,-1,t)),e&&(t=_2(e,n,-1,t)),t=$Dn(n,e,t),t&&t.Fi()):n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,0,e,e))}function nxn(n){var e,t,i;if(n==null)return null;if(t=u(n,15),t.dc())return"";for(i=new i1,e=t.Kc();e.Ob();)dr(i,(ht(),Ce(e.Pb()))),i.a+=" ";return NO(i,i.a.length-1)}function exn(n){var e,t,i;if(n==null)return null;if(t=u(n,15),t.dc())return"";for(i=new i1,e=t.Kc();e.Ob();)dr(i,(ht(),Ce(e.Pb()))),i.a+=" ";return NO(i,i.a.length-1)}function eve(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 tve(n,e){var t,i,r,c,o,f;if(e)for(c=e.a.length,t=new fa(c),f=(t.b-t.a)*t.c<0?(nl(),Jl):new rl(t);f.Ob();)o=u(f.Pb(),19),r=j3(e,o.a),i=new tmn(n),zhe(i.a,r)}function ive(n,e){var t,i,r,c,o,f;if(e)for(c=e.a.length,t=new fa(c),f=(t.b-t.a)*t.c<0?(nl(),Jl):new rl(t);f.Ob();)o=u(f.Pb(),19),r=j3(e,o.a),i=new W6n(n),Ghe(i.a,r)}function rve(n){var e;if(n!=null&&n.length>0&&Di(n,n.length-1)==33)try{return e=Yxn(Zu(n,0,n.length-1)),e.e==null}catch(t){if(t=jt(t),!I(t,32))throw T(t)}return!1}function txn(n,e,t){var i,r,c;return i=e.ak(),c=e.dd(),r=i.$j()?hl(n,3,i,null,c,m4(n,i,c,I(i,99)&&(u(i,18).Bb&Yi)!=0),!0):hl(n,1,i,i.zj(),c,-1,!0),t?t.Ei(r):t=r,t}function cve(){var n,e,t;for(e=0,n=0;n<1;n++){if(t=CY((Te(n,1),"X".charCodeAt(n))),t==0)throw T(new Ee("Unknown Option: "+"X".substr(n)));e|=t}return e}function uve(n,e,t){var i,r,c;switch(i=Gi(e),r=jT(i),c=new wc,Hr(c,e),t.g){case 1:si(c,b7(B2(r)));break;case 2:si(c,B2(r))}return H(c,(nn(),Jb),Y(k(n,Jb))),c}function $J(n){var e,t;return e=u(ve(new re(ue(Lr(n.a).a.Kc(),new An))),17),t=u(ve(new re(ue(ei(n.a).a.Kc(),new An))),17),on(sn(k(e,(G(),kf))))||on(sn(k(t,kf)))}function Vw(){Vw=N,SS=new W9("ONE_SIDE",0),IS=new W9("TWO_SIDES_CORNER",1),OS=new W9("TWO_SIDES_OPPOSING",2),PS=new W9("THREE_SIDES",3),AS=new W9("FOUR_SIDES",4)}function wx(n,e,t,i,r){var c,o;c=u(ts(gt(e.Oc(),new Jbn),ga(new U1,new z1,new W1,A(M(Bu,1),z,132,0,[(lf(),ls)]))),15),o=u(ma(n.b,t,i),15),r==0?o.Wc(0,c):o.Gc(c)}function sve(n,e){var t,i,r,c,o;for(c=new E(e.a);c.a0&&SFn(this,this.c-1,(J(),Vn)),this.c0&&n[0].length>0&&(this.c=on(sn(k(Gi(n[0][0]),(G(),wun))))),this.a=F(cJn,q,2018,n.length,0,2),this.b=F(uJn,q,2019,n.length,0,2),this.d=new TDn}function ave(n){return n.c.length==0?!1:(Ln(0,n.c.length),u(n.c[0],17)).c.i.k==(Qn(),pi)?!0:C3(Vc(new $n(null,new xn(n,16)),new Iwn),new Own)}function dve(n,e,t){return le(t,"Tree layout",1),pC(n.b),rh(n.b,(c4(),gP),gP),rh(n.b,qm,qm),rh(n.b,uy,uy),rh(n.b,Gm,Gm),n.a=EM(n.b,e),H8e(n,e,kc(t,1)),ce(t),e}function rxn(n,e){var t,i,r,c,o,f,h;for(f=Cb(e),c=e.f,h=e.g,o=y.Math.sqrt(c*c+h*h),r=0,i=new E(f);i.a=0?(t=M7(n,$M),i=p7(n,$M)):(e=J0(n,1),t=M7(e,5e8),i=p7(e,5e8),i=qi(Ih(i,1),ui(n,1))),cf(Ih(i,32),ui(t,fr))}function sxn(n,e,t){var i,r;switch(i=(ne(e.b!=0),u(Ts(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=_e(e,0),y8(r,i),e}function oxn(n,e,t,i){var r,c,o,f,h;switch(h=n.b,c=e.d,o=c.j,f=WQ(o,h.d[o.g],t),r=st(Qr(c.n),c.a),c.j.g){case 1:case 3:f.a+=r.a;break;case 2:case 4:f.b+=r.b}Kt(i,f,i.c.b,i.c)}function Tve(n,e,t){var i,r,c,o;for(o=xr(n.e,e,0),c=new Jq,c.b=t,i=new Pi(n.e,o);i.b1;e>>=1)e&1&&(i=Fw(i,t)),t.d==1?t=Fw(t,t):t=new D$n(KBn(t.a,t.d,F(be,Le,25,t.d<<1,15,1)));return i=Fw(i,t),i}function _J(){_J=N;var n,e,t,i;for(Kin=F(Ei,pr,25,25,15,1),Hin=F(Ei,pr,25,33,15,1),i=152587890625e-16,e=32;e>=0;e--)Hin[e]=i,i*=.5;for(t=1,n=24;n>=0;n--)Kin[n]=t,t*=.5}function Ove(n){var e,t;if(on(sn(hn(n,(nn(),Qb))))){for(t=new re(ue(Gh(n).a.Kc(),new An));Se(t);)if(e=u(ve(t),79),Jd(e)&&on(sn(hn(e,Wa))))return!0}return!1}function fxn(n,e){var t,i,r;ci(n.f,e)&&(e.b=n,i=e.c,xr(n.j,i,0)!=-1||W(n.j,i),r=e.d,xr(n.j,r,0)!=-1||W(n.j,r),t=e.a.b,t.c.length!=0&&(!n.i&&(n.i=new K$n(n)),Wbe(n.i,t)))}function Dve(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=0&&Mn(n.substr(e,3),"GMT")||e>=0&&Mn(n.substr(e,3),"UTC"))&&(t[0]=e+3),dZ(n,t,i)}function Fve(n,e){var t,i,r,c,o;for(c=n.g.a,o=n.g.b,i=new E(n.d);i.at;c--)n[c]|=e[c-t-1]>>>o,n[c-1]=e[c-t-1]<=n.f)break;c.c[c.c.length]=t}return c}function HJ(n){var e,t,i,r;for(e=null,r=new E(n.wf());r.a0&&gc(n.g,e,n.g,e+i,f),o=t.Kc(),n.i+=i,r=0;rc&&Qfe(l,cIn(t[f],Rin))&&(r=f,c=h);return r>=0&&(i[0]=e+c),r}function Kve(n,e){var t;if(t=tyn(n.b.Hf(),e.b.Hf()),t!=0)return t;switch(n.b.Hf().g){case 1:case 2:return Wc(n.b.sf(),e.b.sf());case 3:case 4:return Wc(e.b.sf(),n.b.sf())}return 0}function Hve(n){var e,t,i;for(i=n.e.c.length,n.a=oa(be,[q,Le],[48,25],15,[i,i],2),t=new E(n.c);t.a>4&15,c=n[i]&15,o[r++]=r1n[t],o[r++]=r1n[c];return Hs(o,0,o.length)}function zve(n,e,t){var i,r,c;return i=e.ak(),c=e.dd(),r=i.$j()?hl(n,4,i,c,null,m4(n,i,c,I(i,99)&&(u(i,18).Bb&Yi)!=0),!0):hl(n,i.Kj()?2:1,i,c,i.zj(),-1,!0),t?t.Ei(r):t=r,t}function iu(n){var e,t;return n>=Yi?(e=rk+(n-Yi>>10&1023)&Ut,t=56320+(n-Yi&1023)&Ut,String.fromCharCode(e)+(""+String.fromCharCode(t))):String.fromCharCode(n&Ut)}function Uve(n,e){W0();var t,i,r,c;return r=u(u(ct(n.r,e),21),84),r.gc()>=2?(i=u(r.Kc().Pb(),111),t=n.u.Hc((Mu(),s9)),c=n.u.Hc(Pp),!i.a&&!t&&(r.gc()==2||c)):!1}function axn(n,e,t,i,r){var c,o,f;for(c=VNn(n,e,t,i,r),f=!1;!c;)rM(n,r,!0),f=!0,c=VNn(n,e,t,i,r);f&&rM(n,r,!1),o=rF(r),o.c.length!=0&&(n.d&&n.d.lg(o),axn(n,r,t,i,o))}function ZT(){ZT=N,uH=new l5(Xh,0),Dhn=new l5("DIRECTED",1),Fhn=new l5("UNDIRECTED",2),Ihn=new l5("ASSOCIATION",3),$hn=new l5("GENERALIZATION",4),Ohn=new l5("DEPENDENCY",5)}function Wve(n,e){var t;if(!ef(n))throw T(new $r(sqn));switch(t=ef(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 f4(n,e){var t,i;for(_n(e),i=n.b.c.length,W(n.b,e);i>0;){if(t=i,i=(i-1)/2|0,n.a.ue(un(n.b,i),e)<=0)return Es(n.b,t,e),!0;Es(n.b,t,un(n.b,i))}return Es(n.b,i,e),!0}function qJ(n,e,t,i){var r,c;if(r=0,t)r=pT(n.a[t.g][e.g],i);else for(c=0;c=f)}function GJ(n,e,t,i){var r;if(r=!1,ki(i)&&(r=!0,l3(e,t,Ce(i))),r||q0(i)&&(r=!0,GJ(n,e,t,i)),r||I(i,236)&&(r=!0,la(e,t,u(i,236))),!r)throw T(new UI(Btn))}function Vve(n,e){var t,i,r;if(t=e.Hh(n.a),t&&(r=Ko((!t.b&&(t.b=new Gu((Sn(),nr),tc,t)),t.b),Xs),r!=null)){for(i=1;i<(gu(),S1n).length;++i)if(Mn(S1n[i],r))return i}return 0}function Qve(n,e){var t,i,r;if(t=e.Hh(n.a),t&&(r=Ko((!t.b&&(t.b=new Gu((Sn(),nr),tc,t)),t.b),Xs),r!=null)){for(i=1;i<(gu(),P1n).length;++i)if(Mn(P1n[i],r))return i}return 0}function dxn(n,e){var t,i,r,c;if(_n(e),c=n.a.gc(),c0?1:0;c.a[r]!=t;)c=c.a[r],r=n.a.ue(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 Zve(n){Mu();var e,t;return e=pt(n1,A(M(qP,1),z,273,0,[Gl])),!(Z8(hC(e,n))>1||(t=pt(s9,A(M(qP,1),z,273,0,[u9,Pp])),Z8(hC(t,n))>1))}function UJ(n,e){var t;t=vc((Z1(),uo),n),I(t,498)?yr(uo,n,new Dkn(this,e)):yr(uo,n,this),jx(this,e),e==(Qp(),g1n)?(this.wb=u(this,1939),u(e,1941)):this.wb=(ol(),Nn)}function n5e(n){var e,t,i;if(n==null)return null;for(e=null,t=0;t=j1?"error":i>=900?"warn":i>=800?"info":"log"),ZCn(t,n.a),n.b&&UY(e,t,n.b,"Exception: ",!0))}function k(n,e){var t,i;return i=(!n.q&&(n.q=new we),te(n.q,e)),i??(t=e.wg(),I(t,4)&&(t==null?(!n.q&&(n.q=new we),O2(n.q,e)):(!n.q&&(n.q=new we),it(n.q,e,t))),t)}function Qi(){Qi=N,Qf=new U9("P1_CYCLE_BREAKING",0),$l=new U9("P2_LAYERING",1),Hc=new U9("P3_NODE_ORDERING",2),Cc=new U9("P4_NODE_PLACEMENT",3),Or=new U9("P5_EDGE_ROUTING",4)}function pxn(n,e){var t,i,r,c,o;for(r=e==1?KR:_R,i=r.a.ec().Kc();i.Ob();)for(t=u(i.Pb(),103),o=u(ct(n.f.c,t),21).Kc();o.Ob();)c=u(o.Pb(),46),Jc(n.b.b,c.b),Jc(n.b.a,u(c.b,81).d)}function e5e(n,e){X5();var t;if(n.c==e.c){if(n.b==e.b||Mbe(n.b,e.b)){if(t=xre(n.b)?1:-1,n.a&&!e.a)return t;if(!n.a&&e.a)return-t}return Wc(n.b.g,e.b.g)}else return ni(n.c,e.c)}function t5e(n,e){var t;le(e,"Hierarchical port position processing",1),t=n.b,t.c.length>0&&LBn((Ln(0,t.c.length),u(t.c[0],29)),n),t.c.length>1&&LBn(u(un(t,t.c.length-1),29),n),ce(e)}function vxn(n,e){var t,i,r;if(XJ(n,e))return!0;for(i=new E(e);i.a=r||e<0)throw T(new mr(NB+e+Ra+r));if(t>=r||t<0)throw T(new mr(BB+t+Ra+r));return e!=t?i=(c=n.Ti(t),n.Hi(e,c),c):i=n.Oi(t),i}function yxn(n){var e,t,i;if(i=n,n)for(e=0,t=n.Ug();t;t=t.Ug()){if(++e>JL)return yxn(t);if(i=t,t==n)throw T(new $r("There is a cycle in the containment hierarchy of "+n))}return i}function kl(n){var e,t,i;for(i=new ka(Ji,"[","]"),t=n.Kc();t.Ob();)e=t.Pb(),xh(i,B(e)===B(n)?"(this Collection)":e==null?ru:Nr(e));return i.a?i.e.length==0?i.a.a:i.a.a+(""+i.e):i.c}function XJ(n,e){var t,i;if(i=!1,e.gc()<2)return!1;for(t=0;ti&&(Te(e-1,n.length),n.charCodeAt(e-1)<=32);)--e;return i>0||e1&&(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 yl(){yl=N,eXn=A(M(Zi,1),hc,61,0,[(J(),Kn),Vn,ae]),nXn=A(M(Zi,1),hc,61,0,[Vn,ae,Gn]),tXn=A(M(Zi,1),hc,61,0,[ae,Gn,Kn]),iXn=A(M(Zi,1),hc,61,0,[Gn,Kn,Vn])}function r5e(n,e,t,i){var r,c,o,f,h,l,a;if(o=n.c.d,f=n.d.d,o.j!=f.j)for(a=n.b,r=o.j,h=null;r!=f.j;)h=e==0?yT(r):pQ(r),c=WQ(r,a.d[r.g],t),l=WQ(h,a.d[h.g],t),Ke(i,st(c,l)),r=h}function c5e(n,e,t,i){var r,c,o,f,h;return o=PFn(n.a,e,t),f=u(o.a,19).a,c=u(o.b,19).a,i&&(h=u(k(e,(G(),Au)),10),r=u(k(t,Au),10),h&&r&&(xAn(n.b,h,r),f+=n.b.i,c+=n.b.e)),f>c}function Exn(n){var e,t,i,r,c,o,f,h,l;for(this.a=Y$n(n),this.b=new X,t=n,i=0,r=t.length;iZO(n.d).c?(n.i+=n.g.c,BF(n.d)):ZO(n.d).c>ZO(n.g).c?(n.e+=n.d.c,BF(n.g)):(n.i+=nCn(n.g),n.e+=nCn(n.d),BF(n.g),BF(n.d))}function o5e(n,e,t){var i,r,c,o;for(c=e.q,o=e.r,new aa((No(),Bl),e,c,1),new aa(Bl,c,o,1),r=new E(t);r.af&&(h=f/i),r>c&&(l=c/r),o=y.Math.min(h,l),n.a+=o*(e.a-n.a),n.b+=o*(e.b-n.b)}function a5e(n,e,t,i,r){var c,o;for(o=!1,c=u(un(t.b,0),33);Aye(n,e,c,i,r)&&(o=!0,z4e(t,c),t.b.c.length!=0);)c=u(un(t.b,0),33);return t.b.c.length==0&&T7(t.j,t),o&>(e.q),o}function d5e(n,e){eg();var t,i,r,c;if(e.b<2)return!1;for(c=_e(e,0),t=u(Re(c),8),i=t;c.b!=c.d.c;){if(r=u(Re(c),8),Kx(n,i,r))return!0;i=r}return!!Kx(n,i,t)}function QJ(n,e,t,i){var r,c;return t==0?(!n.o&&(n.o=new Xu((Dc(),Ul),S0,n,0)),yE(n.o,e,i)):(c=u(On((r=u(Rn(n,16),26),r||n.zh()),t),66),c.Nj().Rj(n,Rc(n),t-ee(n.zh()),e,i))}function jx(n,e){var t;e!=n.sb?(t=null,n.sb&&(t=u(n.sb,49).ih(n,1,h9,t)),e&&(t=u(e,49).gh(n,1,h9,t)),t=hQ(n,e,t),t&&t.Fi()):n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,4,e,e))}function b5e(n,e){var t,i,r,c;if(e)r=Bh(e,"x"),t=new Z6n(n),D3(t.a,(_n(r),r)),c=Bh(e,"y"),i=new nmn(n),F3(i.a,(_n(c),c));else throw T(new Sf("All edge sections need an end point."))}function w5e(n,e){var t,i,r,c;if(e)r=Bh(e,"x"),t=new Q6n(n),$3(t.a,(_n(r),r)),c=Bh(e,"y"),i=new J6n(n),x3(i.a,(_n(c),c));else throw T(new Sf("All edge sections need a start point."))}function g5e(n,e){var t,i,r,c,o,f,h;for(i=fDn(n),c=0,f=i.length;c>22-e,r=n.h<>22-e):e<44?(t=0,i=n.l<>44-e):(t=0,i=0,r=n.l<n)throw T(new Hn("k must be smaller than n"));return e==0||e==n?1:n==0?0:CJ(n)/(CJ(e)*CJ(n-e))}function JJ(n,e){var t,i,r,c;for(t=new kz(n);t.g==null&&!t.c?ZW(t):t.g==null||t.i!=0&&u(t.g[t.i-1],47).Ob();)if(c=u(cM(t),56),I(c,160))for(i=u(c,160),r=0;r>4],e[t*2+1]=oI[c&15];return Hs(e,0,e.length)}function $5e(n){QE();var e,t,i;switch(i=n.c.length,i){case 0:return fzn;case 1:return e=u(dLn(new E(n)),42),ife(e.cd(),e.dd());default:return t=u(af(n,F(Ha,OM,42,n.c.length,0,1)),165),new GI(t)}}function F5e(n){var e,t,i,r,c,o;for(e=new gw,t=new gw,ll(e,n),ll(t,n);t.b!=t.c;)for(r=u(y2(t),37),o=new E(r.a);o.a0&&H7(n,t,e),r):gme(n,e,t)}function Oxn(n,e,t){var i,r,c,o;if(e.b!=0){for(i=new Tt,o=_e(e,0);o.b!=o.d.c;)c=u(Re(o),86),Vi(i,$V(c)),r=c.e,r.a=u(k(c,(cc(),mK)),19).a,r.b=u(k(c,pon),19).a;Oxn(n,i,kc(t,i.b/n.a|0))}}function Dxn(n,e){var t,i,r,c,o;if(n.e<=e||Hle(n,n.g,e))return n.g;for(c=n.r,i=n.g,o=n.r,r=(c-i)/2+i;i+11&&(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 R5e(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 $xn(n,e,t,i,r){if(ii&&(n.a=i),n.br&&(n.b=r),n}function _5e(n){if(I(n,149))return w8e(u(n,149));if(I(n,229))return a2e(u(n,229));if(I(n,23))return m5e(u(n,23));throw T(new Hn(Rtn+kl(new Hu(A(M(Zn,1),rn,1,5,[n])))))}function K5e(n,e,t,i,r){var c,o,f;for(c=!0,o=0;o>>r|t[o+i+1]<>>r,++o}return c}function eY(n,e,t,i){var r,c,o;if(e.k==(Qn(),pi)){for(c=new re(ue(Lr(e).a.Kc(),new An));Se(c);)if(r=u(ve(c),17),o=r.c.i.k,o==pi&&n.c.a[r.c.i.c.p]==i&&n.c.a[e.c.p]==t)return!0}return!1}function H5e(n,e){var t,i,r,c;return e&=63,t=n.h&Wh,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),Bc(i&Nu,r&Nu,c&Wh)}function Fxn(n,e,t,i){var r;this.b=i,this.e=n==(_d(),_m),r=e[t],this.d=oa(Ku,[q,gh],[177,25],16,[r.length,r.length],2),this.a=oa(be,[q,Le],[48,25],15,[r.length,r.length],2),this.c=new NJ(e,t)}function q5e(n){var e,t,i;for(n.k=new iX((J(),A(M(Zi,1),hc,61,0,[Xr,Kn,Vn,ae,Gn])).length,n.j.c.length),i=new E(n.j);i.a=t)return l4(n,e,i.p),!0;return!1}function Lxn(n){var e;return n.Db&64?Ex(n):(e=new Yu(Stn),!n.a||De(De((e.a+=' "',e),n.a),'"'),De(dd(De(dd(De(dd(De(dd((e.a+=" (",e),n.i),","),n.j)," | "),n.g),","),n.f),")"),e.a)}function Nxn(n,e,t){var i,r,c,o,f;for(f=Kc(n.e.Tg(),e),r=u(n.g,119),i=0,o=0;ot?fY(n,t,"start index"):e<0||e>t?fY(e,t,"end index"):T6("end index (%s) must not be less than start index (%s)",A(M(Zn,1),rn,1,5,[Q(e),Q(n)]))}function Rxn(n,e){var t,i,r,c;for(i=0,r=n.length;i0&&_xn(n,c,t));e.p=0}function bn(n){var e;this.c=new Tt,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(xo($1),9),new ks(e,u(bo(e,e.length),9),0)),this.g=n.f}function V5e(n){var e,t,i,r;for(e=sl(De(new Yu("Predicates."),"and"),40),t=!0,r=new $v(n);r.b0?f[o-1]:F(mh,E1,10,0,0,1),r=f[o],l=o=0?n.Bh(r):bY(n,i);else throw T(new Hn(Pl+i.ne()+em));else throw T(new Hn(vqn+e+mqn));else As(n,t,i)}function tY(n){var e,t;if(t=null,e=!1,I(n,204)&&(e=!0,t=u(n,204).a),e||I(n,258)&&(e=!0,t=""+u(n,258).a),e||I(n,483)&&(e=!0,t=""+u(n,483).a),!e)throw T(new UI(Btn));return t}function Gxn(n,e){var t,i;if(n.f){for(;e.Ob();)if(t=u(e.Pb(),72),i=t.ak(),I(i,99)&&u(i,18).Bb&uc&&(!n.e||i.Gj()!=Av||i.aj()!=0)&&t.dd()!=null)return e.Ub(),!0;return!1}else return e.Ob()}function zxn(n,e){var t,i;if(n.f){for(;e.Sb();)if(t=u(e.Ub(),72),i=t.ak(),I(i,99)&&u(i,18).Bb&uc&&(!n.e||i.Gj()!=Av||i.aj()!=0)&&t.dd()!=null)return e.Pb(),!0;return!1}else return e.Sb()}function iY(n,e,t){var i,r,c,o,f,h;for(h=Kc(n.e.Tg(),e),i=0,f=n.i,r=u(n.g,119),o=0;o1&&(e.c[e.c.length]=c))}function Z5e(n){var e,t,i,r;for(t=new Tt,Vi(t,n.o),i=new Yq;t.b!=0;)e=u(t.b==0?null:(ne(t.b!=0),Ts(t,t.a.a)),508),r=C_n(n,e,!0),r&&W(i.a,e);for(;i.a.c.length!=0;)e=u(pDn(i),508),C_n(n,e,!1)}function y1(){y1=N,Lfn=new l2(K6,0),_i=new l2("BOOLEAN",1),sc=new l2("INT",2),kv=new l2("STRING",3),Dr=new l2("DOUBLE",4),Nt=new l2("ENUM",5),Cp=new l2("ENUMSET",6),jf=new l2("OBJECT",7)}function m6(n,e){var t,i,r,c,o;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),o=y.Math.max(n.d+n.a,e.d+e.a),r=(r/2|0))for(this.e=i?i.c:null,this.d=r;t++0;)nX(this);this.b=e,this.a=null}function t6e(n,e){var t,i;e.a?T8e(n,e):(t=u(rD(n.b,e.b),57),t&&t==n.a[e.b.f]&&t.a&&t.a!=e.b.a&&t.c.Fc(e.b),i=u(iD(n.b,e.b),57),i&&n.a[i.f]==e.b&&i.a&&i.a!=e.b.a&&e.b.c.Fc(i),zO(n.b,e.b))}function Wxn(n,e){var t,i;if(t=u(br(n.b,e),124),u(u(ct(n.r,e),21),84).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((Qu(),id))&&pBn(n,e),i=Dpe(n,e),qx(n,e)==(qw(),Hl)&&(i+=2*n.w),t.a.a=i}function Xxn(n,e){var t,i;if(t=u(br(n.b,e),124),u(u(ct(n.r,e),21),84).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((Qu(),id))&&vBn(n,e),i=$pe(n,e),qx(n,e)==(qw(),Hl)&&(i+=2*n.w),t.a.b=i}function i6e(n,e){var t,i,r,c;for(c=new X,i=new E(e);i.at.a&&(i.Hc((vb(),dy))?r=(e.a-t.a)/2:i.Hc(by)&&(r=e.a-t.a)),e.b>t.b&&(i.Hc((vb(),gy))?c=(e.b-t.b)/2:i.Hc(wy)&&(c=e.b-t.b)),zJ(n,r,c)}function tLn(n,e,t,i,r,c,o,f,h,l,a,d,g){I(n.Cb,88)&&yb(Ou(u(n.Cb,88)),4),Ic(n,t),n.f=o,Z3(n,f),e4(n,h),Y3(n,l),n4(n,a),p1(n,d),t4(n,g),g1(n,!0),d1(n,r),n.ok(c),Ca(n,e),i!=null&&(n.i=null,nT(n,i))}function iLn(n){var e,t;if(n.f){for(;n.n>0;){if(e=u(n.k.Xb(n.n-1),72),t=e.ak(),I(t,99)&&u(t,18).Bb&uc&&(!n.e||t.Gj()!=Av||t.aj()!=0)&&e.dd()!=null)return!0;--n.n}return!1}else return n.n>0}function fY(n,e,t){if(n<0)return T6(K_n,A(M(Zn,1),rn,1,5,[t,Q(n)]));if(e<0)throw T(new Hn(H_n+e));return T6("%s (%s) must not be greater than size (%s)",A(M(Zn,1),rn,1,5,[t,Q(n),Q(e)]))}function hY(n,e,t,i,r,c){var o,f,h,l;if(o=i-t,o<7){e2e(e,t,i,c);return}if(h=t+r,f=i+r,l=h+(f-h>>1),hY(e,n,h,l,-r,c),hY(e,n,l,f,-r,c),c.ue(n[l-1],n[l])<=0){for(;t=0?n.sh(c,t):_Y(n,r,t);else throw T(new Hn(Pl+r.ne()+em));else throw T(new Hn(vqn+e+mqn));else Ps(n,i,r,t)}function rLn(n){var e,t,i,r;if(t=u(n,49).qh(),t)try{if(i=null,e=b4((Z1(),uo),_Bn(r2e(t))),e&&(r=e.rh(),r&&(i=r.Wk(aie(t.e)))),i&&i!=n)return rLn(i)}catch(c){if(c=jt(c),!I(c,60))throw T(c)}return n}function _c(n,e,t){var i,r,c,o;if(o=e==null?0:n.b.se(e),r=(i=n.a.get(o),i??new Array),r.length==0)n.a.set(o,r);else if(c=kDn(n,e,r),c)return c.ed(t);return St(r,r.length,new Nj(e,t)),++n.c,cC(n.b),null}function cLn(n,e){var t,i;return pC(n.a),rh(n.a,(iT(),EP),EP),rh(n.a,mv,mv),i=new li,Ze(i,mv,(CT(),CK)),B(hn(e,(gb(),AK)))!==B((f7(),CP))&&Ze(i,mv,jK),Ze(i,mv,EK),cyn(n.a,i),t=EM(n.a,e),t}function uLn(n){if(!n)return q9n(),vzn;var e=n.valueOf?n.valueOf():n;if(e!==n){var t=dR[typeof e];return t?t(e):tQ(typeof e)}else return n instanceof Array||n instanceof y.Array?new sq(n):new M9(n)}function sLn(n,e,t){var i,r,c;switch(c=n.o,i=u(br(n.p,t),244),r=i.i,r.b=F7(i),r.a=$7(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}tL(i),iL(i)}function oLn(n,e,t){var i,r,c;switch(c=n.o,i=u(br(n.p,t),244),r=i.i,r.b=F7(i),r.a=$7(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}tL(i),iL(i)}function v6e(n,e){var t,i,r,c,o;if(!e.dc()){if(r=u(e.Xb(0),128),e.gc()==1){xNn(n,r,r,1,0,e);return}for(t=1;t0)try{r=ss(e,Bi,nt)}catch(c){throw c=jt(c),I(c,127)?(i=c,T(new xC(i))):T(c)}return t=(!n.a&&(n.a=new $I(n)),n.a),r=0?u(D(t,r),56):null}function j6e(n,e){if(n<0)return T6(K_n,A(M(Zn,1),rn,1,5,["index",Q(n)]));if(e<0)throw T(new Hn(H_n+e));return T6("%s (%s) must be less than size (%s)",A(M(Zn,1),rn,1,5,["index",Q(n),Q(e)]))}function E6e(n){var e,t,i,r,c;if(n==null)return ru;for(c=new ka(Ji,"[","]"),t=n,i=0,r=t.length;i0)for(o=n.c.d,f=n.d.d,r=Of(yi(new fn(f.a,f.b),o),1/(i+1)),c=new fn(o.a,o.b),t=new E(n.a);t.a=0?n._g(t,!0,!0):Yd(n,r,!0),153)),u(i,215).ol(e);else throw T(new Hn(Pl+e.ne()+em))}function wY(n){var e,t;return n>-0x800000000000&&n<0x800000000000?n==0?0:(e=n<0,e&&(n=-n),t=Gt(y.Math.floor(y.Math.log(n)/.6931471805599453)),(!e||n!=y.Math.pow(2,t))&&++t,t):FOn(tu(n))}function L6e(n){var e,t,i,r,c,o,f;for(c=new Sh,t=new E(n);t.a2&&f.e.b+f.j.b<=2&&(r=f,i=o),c.a.zc(r,c),r.q=i);return c}function gLn(n,e){var t,i,r;return i=new qh(n),Pr(i,e),H(i,(G(),qS),e),H(i,(nn(),Lt),(Mi(),Ac)),H(i,Jf,(fh(),FP)),ea(i,(Qn(),Xt)),t=new wc,Hr(t,i),si(t,(J(),Gn)),r=new wc,Hr(r,i),si(r,Vn),i}function pLn(n){switch(n.g){case 0:return new WI((_d(),ry));case 1:return new D4n;case 2:return new R4n;default:throw T(new Hn("No implementation is available for the crossing minimizer "+(n.f!=null?n.f:""+n.g)))}}function vLn(n,e){var t,i,r,c,o;for(n.c[e.p]=!0,W(n.a,e),o=new E(e.j);o.a=c)o.$b();else for(r=o.Kc(),i=0;i0?dG():o<0&&jLn(n,e,-o),!0):!1}function $7(n){var e,t,i,r,c,o,f;if(f=0,n.b==0){for(o=rFn(n,!0),e=0,i=o,r=0,c=i.length;r0&&(f+=t,++e);e>1&&(f+=n.c*(e-1))}else f=J9n(oOn(YE(gt(ID(n.a),new xln),new Lln)));return f>0?f+n.n.d+n.n.a:0}function F7(n){var e,t,i,r,c,o,f;if(f=0,n.b==0)f=J9n(oOn(YE(gt(ID(n.a),new $ln),new Fln)));else{for(o=cFn(n,!0),e=0,i=o,r=0,c=i.length;r0&&(f+=t,++e);e>1&&(f+=n.c*(e-1))}return f>0?f+n.n.b+n.n.c:0}function G6e(n,e){var t,i,r,c;for(c=u(br(n.b,e),124),t=c.a,r=u(u(ct(n.r,e),21),84).Kc();r.Ob();)i=u(r.Pb(),111),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 z6e(n,e){var t,i,r;return t=u(k(e,(Go(),Q4)),19).a-u(k(n,Q4),19).a,t==0?(i=yi(Qr(u(k(n,(dl(),Bk)),8)),u(k(n,vm),8)),r=yi(Qr(u(k(e,Bk),8)),u(k(e,vm),8)),ni(i.a*i.b,r.a*r.b)):t}function U6e(n,e){var t,i,r;return t=u(k(e,(Zd(),jP)),19).a-u(k(n,jP),19).a,t==0?(i=yi(Qr(u(k(n,(cc(),sy)),8)),u(k(n,zm),8)),r=yi(Qr(u(k(e,sy),8)),u(k(e,zm),8)),ni(i.a*i.b,r.a*r.b)):t}function ELn(n){var e,t;return t=new V1,t.a+="e_",e=ewe(n),e!=null&&(t.a+=""+e),n.c&&n.d&&(De((t.a+=" ",t),UT(n.c)),De(rc((t.a+="[",t),n.c.i),"]"),De((t.a+=TN,t),UT(n.d)),De(rc((t.a+="[",t),n.d.i),"]")),t.a}function CLn(n){switch(n.g){case 0:return new F4n;case 1:return new x4n;case 2:return new $4n;case 3:return new L4n;default:throw T(new Hn("No implementation is available for the layout phase "+(n.f!=null?n.f:""+n.g)))}}function pY(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 W6e(n,e,t){var i,r,c,o,f;if(t)for(r=t.a.length,i=new fa(r),f=(i.b-i.a)*i.c<0?(nl(),Jl):new rl(i);f.Ob();)o=u(f.Pb(),19),c=j3(t,o.a),Dtn in c.a||xB in c.a?rke(n,c,e):hTe(n,c,e),Oce(u(te(n.b,i4(c)),79))}function vY(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=qs(n),e&&(er(),e.Cj()==kGn)?(n.b=-1,!0):(n.b=1,!1));default:case 1:return!1}}function X6e(n,e){var t,i,r,c,o;for(i=(!e.s&&(e.s=new V(ou,e,21,17)),e.s),c=null,r=0,o=i.i;r=0&&i=0?n._g(t,!0,!0):Yd(n,r,!0),153)),u(i,215).ll(e);throw T(new Hn(Pl+e.ne()+MB))}function Z6e(){FG();var n;return cee?u(b4((Z1(),uo),Vs),1939):(He(Ha,new Qpn),FEe(),n=u(I(vc((Z1(),uo),Vs),547)?vc(uo,Vs):new hTn,547),cee=!0,ITe(n),xTe(n),it(($G(),w1n),n,new apn),yr(uo,Vs,n),n)}function nme(n,e){var t,i,r,c;n.j=-1,qu(n.e)?(t=n.i,c=n.i!=0,F8(n,e),i=new Lh(n.e,3,n.c,null,e,t,c),r=e.Qk(n.e,n.c,null),r=txn(n,e,r),r?(r.Ei(i),r.Fi()):et(n.e,i)):(F8(n,e),r=e.Qk(n.e,n.c,null),r&&r.Fi())}function tM(n,e){var t,i,r;if(r=0,i=e[0],i>=n.length)return-1;for(t=(Te(i,n.length),n.charCodeAt(i));t>=48&&t<=57&&(r=r*10+(t-48),++i,!(i>=n.length));)t=(Te(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,19).a,c=u(n.b,19).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 Si(Q(t),Q(i))}function tme(n,e,t,i){var r,c,o,f,h,l;for(r=0;r=0&&l>=0&&h=n.i)throw T(new mr(NB+e+Ra+n.i));if(t>=n.i)throw T(new mr(BB+t+Ra+n.i));return i=n.g[t],e!=t&&(e>16),e=i>>16&16,t=16-e,n=n>>e,i=n-256,e=i>>16&8,t+=e,n<<=e,i=n-Ib,e=i>>16&4,t+=e,n<<=e,i=n-Bf,e=i>>16&2,t+=e,n<<=e,i=n>>14,e=i&~(i>>1),t+2-e)}function rme(n){C2();var e,t,i,r;for(eS=new X,DR=new we,OR=new X,e=(!n.a&&(n.a=new V(Ot,n,10,11)),n.a),LCe(e),r=new ie(e);r.e!=r.i.gc();)i=u(oe(r),33),xr(eS,i,0)==-1&&(t=new X,W(OR,t),L$n(i,t));return OR}function cme(n,e,t){var i,r,c,o;n.a=t.b.d,I(e,352)?(r=ng(u(e,79),!1,!1),c=I7(r),i=new s5n(n),$i(c,i),z7(c,r),e.We((Xe(),Rg))!=null&&$i(u(e.We(Rg),74),i)):(o=u(e,470),o.Hg(o.Dg()+n.a.a),o.Ig(o.Eg()+n.a.b))}function MLn(n,e){var t,i,r,c,o,f,h,l;for(l=K(Y(k(e,(nn(),Fm)))),h=n[0].n.a+n[0].o.a+n[0].d.c+l,f=1;f=0?t:(f=L5(yi(new fn(o.c+o.b/2,o.d+o.a/2),new fn(c.c+c.b/2,c.d+c.a/2))),-(XBn(c,o)-1)*f)}function sme(n,e,t){var i;Rt(new $n(null,(!t.a&&(t.a=new V(Mt,t,6,6)),new xn(t.a,16))),new hkn(n,e)),Rt(new $n(null,(!t.n&&(t.n=new V(Rr,t,1,7)),new xn(t.n,16))),new lkn(n,e)),i=u(hn(t,(Xe(),Rg)),74),i&&EV(i,n,e)}function Yd(n,e,t){var i,r,c;if(c=rg((gu(),xi),n.Tg(),e),c)return er(),u(c,66).Oj()||(c=A2(Er(xi,c))),r=(i=n.Yg(c),u(i>=0?n._g(i,!0,!0):Yd(n,c,!0),153)),u(r,215).hl(e,t);throw T(new Hn(Pl+e.ne()+MB))}function kY(n,e,t,i){var r,c,o,f,h;if(r=n.d[e],r){if(c=r.g,h=r.i,i!=null){for(f=0;f=t&&(i=e,l=(h.c+h.a)/2,o=l-t,h.c<=l-t&&(r=new hD(h.c,o),Q0(n,i++,r)),f=l+t,f<=h.a&&(c=new hD(f,h.a),tb(i,n.c.length),e5(n.c,i,c)))}function yY(n){var e;if(!n.c&&n.g==null)n.d=n.si(n.f),me(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],47)}return e==n.b&&null.km>=null.jm()?(cM(n),yY(n)):e.Ob()}function lme(n,e,t){var i,r,c,o,f;if(f=t,!f&&(f=YU(new zp,0)),le(f,qKn,1),XRn(n.c,e),o=TEe(n.a,e),o.gc()==1)IRn(u(o.Xb(0),37),f);else for(c=1/o.gc(),r=o.Kc();r.Ob();)i=u(r.Pb(),37),IRn(i,kc(f,c));mie(n.a,o,e),T7e(e),ce(f)}function PLn(n){if(this.a=n,n.c.i.k==(Qn(),Xt))this.c=n.c,this.d=u(k(n.c.i,(G(),ec)),61);else if(n.d.i.k==Xt)this.c=n.d,this.d=u(k(n.d.i,(G(),ec)),61);else throw T(new Hn("Edge "+n+" is not an external edge."))}function ILn(n,e){var t,i,r;r=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,3,r,n.b)),e?e!=n&&(Ic(n,e.zb),G$(n,e.d),t=(i=e.c,i??e.zb),U$(n,t==null||Mn(t,e.zb)?null:t)):(Ic(n,null),G$(n,0),U$(n,null))}function OLn(n){var e,t;if(n.f){for(;n.n=o)throw T(new V0(e,o));return r=t[e],o==1?i=null:(i=F(bH,qB,415,o-1,0,1),gc(t,0,i,0,e),c=o-e-1,c>0&&gc(t,e+1,i,e,c)),r4(n,i),nLn(n,e,r),r}function z2(){z2=N,Dp=u(D(R((jG(),oc).qb),6),34),Op=u(D(R(oc.qb),3),34),kH=u(D(R(oc.qb),4),34),yH=u(D(R(oc.qb),5),18),QT(Dp),QT(Op),QT(kH),QT(yH),fee=new Hu(A(M(ou,1),gg,170,0,[Dp,Op]))}function xLn(n,e){var t;this.d=new Bv,this.b=e,this.e=new kr(e.qf()),t=n.u.Hc((Mu(),Ty)),n.u.Hc(n1)?n.D?this.a=t&&!e.If():this.a=!0:n.u.Hc(Gl)?t?this.a=!(e.zf().Kc().Ob()||e.Bf().Kc().Ob()):this.a=!1:this.a=!1}function LLn(n,e){var t,i,r,c;for(t=n.o.a,c=u(u(ct(n.r,e),21),84).Kc();c.Ob();)r=u(c.Pb(),111),r.e.a=(i=r.b,i.Xe((Xe(),Ru))?i.Hf()==(J(),Gn)?-i.rf().a-K(Y(i.We(Ru))):t+K(Y(i.We(Ru))):i.Hf()==(J(),Gn)?-i.rf().a:t)}function NLn(n,e){var t,i,r,c;t=u(k(n,(nn(),as)),103),c=u(hn(e,dv),61),r=u(k(n,Lt),98),r!=(Mi(),Ef)&&r!=ql?c==(J(),Xr)&&(c=mZ(e,t),c==Xr&&(c=B2(t))):(i=PRn(e),i>0?c=B2(t):c=b7(B2(t))),gr(e,dv,c)}function wme(n,e){var t,i,r,c,o;for(o=n.j,e.a!=e.b&&wi(o,new zbn),r=o.c.length/2|0,i=0;i0&&H7(n,t,e),c):i.a!=null?(H7(n,e,t),-1):r.a!=null?(H7(n,t,e),1):0}function BLn(n,e){var t,i,r,c;n.ej()?(t=n.Vi(),c=n.fj(),++n.j,n.Hi(t,n.oi(t,e)),i=n.Zi(3,null,e,t,c),n.bj()?(r=n.cj(e,null),r?(r.Ei(i),r.Fi()):n.$i(i)):n.$i(i)):(nTn(n,e),n.bj()&&(r=n.cj(e,null),r&&r.Fi()))}function iM(n,e){var t,i,r,c,o;for(o=Kc(n.e.Tg(),e),r=new Jy,t=u(n.g,119),c=n.i;--c>=0;)i=t[c],o.rl(i.ak())&&me(r,i);!A_n(n,r)&&qu(n.e)&&Gp(n,e.$j()?hl(n,6,e,(Pn(),cr),null,-1,!1):hl(n,e.Kj()?2:1,e,null,null,-1,!1))}function a4(){a4=N;var n,e;for(fp=F(vg,q,91,32,0,1),wm=F(vg,q,91,32,0,1),n=1,e=0;e<=18;e++)fp[e]=m7(n),wm[e]=m7(Ih(n,e)),n=Ni(n,5);for(;eo)||e.q&&(i=e.C,o=i.c.c.a-i.o.a/2,r=i.n.a-t,r>o)))}function vme(n,e){var t;le(e,"Partition preprocessing",1),t=u(ts(gt(qr(gt(new $n(null,new xn(n.a,16)),new v0n),new m0n),new k0n),ga(new U1,new z1,new W1,A(M(Bu,1),z,132,0,[(lf(),ls)]))),15),Rt(t.Oc(),new y0n),ce(e)}function RLn(n){c$();var e,t,i,r,c,o,f;for(t=new ba,r=new E(n.e.b);r.a1?n.e*=K(n.a):n.f/=K(n.a),Zwe(n),rpe(n),_7e(n),H(n.b,(a6(),nS),n.g)}function qLn(n,e,t){var i,r,c,o,f,h;for(i=0,h=t,e||(i=t*(n.c.length-1),h*=-1),c=new E(n);c.a=0?(e||(e=new zv,i>0&&dr(e,n.substr(0,i))),e.a+="\\",w3(e,t&Ut)):e&&w3(e,t&Ut);return e?e.a:n}function Ame(n){var e;if(!n.a)throw T(new $r("IDataType class expected for layout option "+n.f));if(e=xae(n.a),e==null)throw T(new $r("Couldn't create new instance of property '"+n.f+"'. "+KHn+(Ph(Fy),Fy.k)+Etn));return u(e,414)}function Fx(n){var e,t,i,r,c;return c=n.eh(),c&&c.kh()&&(r=pl(n,c),r!=c)?(t=n.Vg(),i=(e=n.Vg(),e>=0?n.Qg(null):n.eh().ih(n,-1-e,null,null)),n.Rg(u(r,49),t),i&&i.Fi(),n.Lg()&&n.Mg()&&t>-1&&et(n,new gi(n,9,t,c,r)),r):c}function XLn(n){var e,t,i,r,c,o,f,h;for(o=0,c=n.f.e,i=0;i>5,r>=n.d)return n.e<0;if(t=n.a[r],e=1<<(e&31),n.e<0){if(i=dOn(n),r>16)),15).Xc(c),f0&&(!(tl(n.a.c)&&e.n.d)&&!(r3(n.a.c)&&e.n.b)&&(e.g.d+=y.Math.max(0,i/2-.5)),!(tl(n.a.c)&&e.n.a)&&!(r3(n.a.c)&&e.n.c)&&(e.g.a-=i-1))}function JLn(n){var e,t,i,r,c;if(r=new X,c=GBn(n,r),e=u(k(n,(G(),Au)),10),e)for(i=new E(e.j);i.a>e,c=n.m>>e|t<<22-e,r=n.l>>e|n.m<<22-e):e<44?(o=i?Wh:0,c=t>>e-22,r=n.m>>e-22|t<<44-e):(o=i?Wh:0,c=i?Nu:0,r=t>>e-44),Bc(r&Nu,c&Nu,o&Wh)}function xx(n){var e,t,i,r,c,o;for(this.c=new X,this.d=n,i=Ft,r=Ft,e=Qt,t=Qt,o=_e(n,0);o.b!=o.d.c;)c=u(Re(o),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 ys(i,r,e-i,t-r)}function nNn(n,e){var t,i,r,c,o,f;for(c=new E(n.b);c.a0&&I(e,42)&&(n.a.qj(),l=u(e,42),h=l.cd(),c=h==null?0:mt(h),o=dU(n.a,c),t=n.a.d[o],t)){for(i=u(t.g,367),a=t.i,f=0;f=2)for(t=r.Kc(),e=Y(t.Pb());t.Ob();)c=e,e=Y(t.Pb()),i=y.Math.min(i,(_n(e),e-(_n(c),c)));return i}function Bme(n,e){var t,i,r,c,o;i=new Tt,Kt(i,e,i.c.b,i.c);do for(t=(ne(i.b!=0),u(Ts(i,i.a.a),86)),n.b[t.g]=1,c=_e(t.d,0);c.b!=c.d.c;)r=u(Re(c),188),o=r.c,n.b[o.g]==1?Ke(n.a,r):n.b[o.g]==2?n.b[o.g]=1:Kt(i,o,i.c.b,i.c);while(i.b!=0)}function Rme(n,e){var t,i,r;if(B(e)===B(pe(n)))return!0;if(!I(e,15)||(i=u(e,15),r=n.gc(),r!=i.gc()))return!1;if(I(i,54)){for(t=0;t0&&(r=t),o=new E(n.f.e);o.a0?(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 Si(Q(e),Q(t))}function i9e(n,e){return n.ce.c?1:n.be.b?1:n.a!=e.a?mt(n.a)-mt(e.a):n.d==(z5(),Hm)&&e.d==Km?-1:n.d==Km&&e.d==Hm?1:0}function sNn(n,e){var t,i,r,c,o;return c=e.a,c.c.i==e.b?o=c.d:o=c.c,c.c.i==e.b?i=c.c:i=c.d,r=O2e(n.a,o,i),r>0&&r0):r<0&&-r0):!1}function r9e(n,e,t,i){var r,c,o,f,h,l,a,d;for(r=(e-n.d)/n.c.c.length,c=0,n.a+=t,n.d=e,d=new E(n.c);d.a>24;return o}function u9e(n){if(n.pe()){var e=n.c;e.qe()?n.o="["+e.n:e.pe()?n.o="["+e.ne():n.o="[L"+e.ne()+";",n.b=e.me()+"[]",n.k=e.oe()+"[]";return}var t=n.j,i=n.d;i=i.split("/"),n.o=RF(".",[t,RF("$",i)]),n.b=RF(".",[t,RF(".",i)]),n.k=i[i.length-1]}function s9e(n,e){var t,i,r,c,o;for(o=null,c=new E(n.e.a);c.a=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 oNn(n,e){var t,i,r,c,o,f,h,l;for(o=e==1?KR:_R,c=o.a.ec().Kc();c.Ob();)for(r=u(c.Pb(),103),h=u(ct(n.f.c,r),21).Kc();h.Ob();)switch(f=u(h.Pb(),46),i=u(f.b,81),l=u(f.a,189),t=l.c,r.g){case 2:case 1:i.g.d+=t;break;case 4:case 3:i.g.c+=t}}function h9e(n,e){var t,i,r,c,o,f,h,l,a;for(l=-1,a=0,o=n,f=0,h=o.length;f0&&++a;++l}return a}function yo(n){var e,t;return t=new Yu(J1(n.gm)),t.a+="@",De(t,(e=mt(n)>>>0,e.toString(16))),n.kh()?(t.a+=" (eProxyURI: ",rc(t,n.qh()),n.$g()&&(t.a+=" eClass: ",rc(t,n.$g())),t.a+=")"):n.$g()&&(t.a+=" (eClass: ",rc(t,n.$g()),t.a+=")"),t.a}function E6(n){var e,t,i,r;if(n.e)throw T(new $r((Ph(kR),uN+kR.k+sN)));for(n.d==(sr(),kh)&&TM(n,Zs),t=new E(n.a.a);t.a>24}return t}function d9e(n,e,t){var i,r,c;if(r=u(br(n.i,e),306),!r)if(r=new fIn(n.d,e,t),m2(n.i,e,r),GQ(e))Pce(n.a,e.c,e.b,r);else switch(c=n6e(e),i=u(br(n.p,c),244),c.g){case 1:case 3:r.j=!0,zI(i,e.b,r);break;case 4:case 2:r.k=!0,zI(i,e.c,r)}return r}function b9e(n,e,t,i){var r,c,o,f,h,l;if(f=new Jy,h=Kc(n.e.Tg(),e),r=u(n.g,119),er(),u(e,66).Oj())for(o=0;o=0)return r;for(c=1,f=new E(e.j);f.a0&&e.ue((Ln(r-1,n.c.length),u(n.c[r-1],10)),c)>0;)Es(n,r,(Ln(r-1,n.c.length),u(n.c[r-1],10))),--r;Ln(r,n.c.length),n.c[r]=c}t.a=new we,t.b=new we}function w9e(n,e,t){var i,r,c,o,f,h,l,a;for(a=(i=u(e.e&&e.e(),9),new ks(i,u(bo(i,i.length),9),0)),h=Tb(t,"[\\[\\]\\s,]+"),c=h,o=0,f=c.length;o0&&(!(tl(n.a.c)&&e.n.d)&&!(r3(n.a.c)&&e.n.b)&&(e.g.d-=y.Math.max(0,i/2-.5)),!(tl(n.a.c)&&e.n.a)&&!(r3(n.a.c)&&e.n.c)&&(e.g.a+=y.Math.max(0,i-1)))}function dNn(n,e,t){var i,r;if((n.c-n.b&n.a.length-1)==2)e==(J(),Kn)||e==Vn?(GC(u(t6(n),15),(us(),yh)),GC(u(t6(n),15),Kl)):(GC(u(t6(n),15),(us(),Kl)),GC(u(t6(n),15),yh));else for(r=new B5(n);r.a!=r.b;)i=u(vT(r),15),GC(i,t)}function p9e(n,e){var t,i,r,c,o,f,h;for(r=f3(new Fq(n)),f=new Pi(r,r.c.length),c=f3(new Fq(e)),h=new Pi(c,c.c.length),o=null;f.b>0&&h.b>0&&(t=(ne(f.b>0),u(f.a.Xb(f.c=--f.b),33)),i=(ne(h.b>0),u(h.a.Xb(h.c=--h.b),33)),t==i);)o=t;return o}function xu(n,e){var t,i,r,c,o,f;return c=n.a*tN+n.b*1502,f=n.b*tN+11,t=y.Math.floor(f*uk),c+=t,f-=t*enn,c%=enn,n.a=c,n.b=f,e<=24?y.Math.floor(n.a*Kin[e]):(r=n.a*(1<=2147483648&&(i-=YL),i)}function bNn(n,e,t){var i,r,c,o;BMn(n,e)>BMn(n,t)?(i=zr(t,(J(),Vn)),n.d=i.dc()?0:wD(u(i.Xb(0),11)),o=zr(e,Gn),n.b=o.dc()?0:wD(u(o.Xb(0),11))):(r=zr(t,(J(),Gn)),n.d=r.dc()?0:wD(u(r.Xb(0),11)),c=zr(e,Vn),n.b=c.dc()?0:wD(u(c.Xb(0),11)))}function wNn(n){var e,t,i,r,c,o,f;if(n&&(e=n.Hh(Vs),e&&(o=Ce(Ko((!e.b&&(e.b=new Gu((Sn(),nr),tc,e)),e.b),"conversionDelegates")),o!=null))){for(f=new X,i=Tb(o,"\\w+"),r=0,c=i.length;rn.c));o++)r.a>=n.s&&(c<0&&(c=o),f=o);return h=(n.s+n.c)/2,c>=0&&(i=nke(n,e,c,f),h=fre((Ln(i,e.c.length),u(e.c[i],329))),hme(e,i,t)),h}function Bx(){Bx=N,zYn=new tr((Xe(),Tp),1.3),efn=ehn,ofn=new vd(15),YYn=new tr(nd,ofn),nZn=new tr(ed,15),UYn=LP,VYn=Za,QYn=Kg,JYn=_l,XYn=_g,cfn=ky,ZYn=rw,sfn=(IY(),HYn),rfn=_Yn,ufn=KYn,ffn=qYn,tfn=RYn,ifn=NP,WYn=ihn,fy=BYn,nfn=NYn,hfn=GYn}function ke(n,e,t){var i,r,c,o,f,h,l;for(o=(c=new JH,c),pV(o,(_n(e),e)),l=(!o.b&&(o.b=new Gu((Sn(),nr),tc,o)),o.b),h=1;h0&&Wje(this,r)}function NY(n,e,t,i,r,c){var o,f,h;if(!r[e.b]){for(r[e.b]=!0,o=i,!o&&(o=new TC),W(o.e,e),h=c[e.b].Kc();h.Ob();)f=u(h.Pb(),282),!(f.d==t||f.c==t)&&(f.c!=e&&NY(n,f.c,e,o,r,c),f.d!=e&&NY(n,f.d,e,o,r,c),W(o.c,f),Zt(o.d,f.b));return o}return null}function k9e(n){var e,t,i,r,c,o,f;for(e=0,r=new E(n.e);r.a=2}function y9e(n,e){var t,i,r,c;for(le(e,"Self-Loop pre-processing",1),i=new E(n.a);i.a1||(e=pt(So,A(M(lr,1),z,93,0,[Zh,Po])),Z8(hC(e,n))>1)||(i=pt(Oo,A(M(lr,1),z,93,0,[jh,eo])),Z8(hC(i,n))>1))}function C9e(n,e){var t,i,r;return t=e.Hh(n.a),t&&(r=Ce(Ko((!t.b&&(t.b=new Gu((Sn(),nr),tc,t)),t.b),"affiliation")),r!=null)?(i=aE(r,iu(35)),i==-1?TF(n,I5(n,is(e.Hj())),r):i==0?TF(n,null,r.substr(1)):TF(n,r.substr(0,i),r.substr(i+1))):null}function T9e(n){var e,t,i;try{return n==null?ru:Nr(n)}catch(r){if(r=jt(r),I(r,102))return e=r,i=J1($u(n))+"@"+(t=(nh(),QQ(n)>>>0),t.toString(16)),dpe(awe(),(e3(),"Exception during lenientFormat for "+i),e),"<"+i+" threw "+J1(e.gm)+">";throw T(r)}}function vNn(n){switch(n.g){case 0:return new T4n;case 1:return new k4n;case 2:return new k7n;case 3:return new jwn;case 4:return new Kjn;case 5:return new M4n;default:throw T(new Hn("No implementation is available for the layerer "+(n.f!=null?n.f:""+n.g)))}}function BY(n,e,t){var i,r,c;for(c=new E(n.t);c.a0&&(i.b.n-=i.c,i.b.n<=0&&i.b.u>0&&Ke(e,i.b));for(r=new E(n.i);r.a0&&(i.a.u-=i.c,i.a.u<=0&&i.a.n>0&&Ke(t,i.a))}function cM(n){var e,t,i,r,c;if(n.g==null&&(n.d=n.si(n.f),me(n,n.d),n.c))return c=n.f,c;if(e=u(n.g[n.i-1],47),r=e.Pb(),n.e=e,t=n.si(r),t.Ob())n.d=t,me(n,t);else for(n.d=null;!e.Ob()&&(St(n.g,--n.i,null),n.i!=0);)i=u(n.g[n.i-1],47),e=i;return r}function M9e(n,e){var t,i,r,c,o,f;if(i=e,r=i.ak(),zh(n.e,r)){if(r.hi()&&yC(n,r,i.dd()))return!1}else for(f=Kc(n.e.Tg(),r),t=u(n.g,119),c=0;c1||t>1)return 2;return e+t==1?2:0}function kNn(n,e,t){var i,r,c,o,f;for(le(t,"ELK Force",1),on(sn(hn(e,(Go(),Irn))))||oC((i=new O9((K0(),new N0(e))),i)),f=QOn(e),J3e(f),Iwe(n,u(k(f,Prn),424)),o=fRn(n.a,f),c=o.Kc();c.Ob();)r=u(c.Pb(),231),ake(n.b,r,kc(t,1/o.gc()));f=j_n(o),m_n(f),ce(t)}function $9e(n,e){var t,i,r,c,o;if(le(e,"Breaking Point Processor",1),ZEe(n),on(sn(k(n,(nn(),Nsn))))){for(r=new E(n.b);r.a=0?n._g(i,!0,!0):Yd(n,c,!0),153)),u(r,215).ml(e,t)}else throw T(new Hn(Pl+e.ne()+em))}function N9e(n,e){var t,i,r,c,o;for(t=new X,r=qr(new $n(null,new xn(n,16)),new wgn),c=qr(new $n(null,new xn(n,16)),new ggn),o=h0e(Tde(YE(g8e(A(M(UTe,1),rn,833,0,[r,c])),new pgn))),i=1;i=2*e&&W(t,new hD(o[i-1]+e,o[i]-e));return t}function B9e(n,e,t){le(t,"Eades radial",1),t.n&&e&&go(t,po(e),(Vu(),gs)),n.d=u(hn(e,(C5(),Xm)),33),n.c=K(Y(hn(e,(gb(),MP)))),n.e=XF(u(hn(e,oy),293)),n.a=p2e(u(hn(e,Kon),426)),n.b=R4e(u(hn(e,_on),340)),m4e(n),t.n&&e&&go(t,po(e),(Vu(),gs))}function R9e(n,e,t){var i,r,c,o,f,h,l,a;if(t)for(c=t.a.length,i=new fa(c),f=(i.b-i.a)*i.c<0?(nl(),Jl):new rl(i);f.Ob();)o=u(f.Pb(),19),r=j3(t,o.a),r&&(h=Nae(n,(l=(ad(),a=new eG,a),e&&KY(l,e),l),r),Q5(h,$h(r,Wf)),YT(r,h),lY(r,h),oF(n,r,h))}function sM(n){var e,t,i,r,c,o;if(!n.j){if(o=new npn,e=b9,c=e.a.zc(n,e),c==null){for(i=new ie(Ar(n));i.e!=i.i.gc();)t=u(oe(i),26),r=sM(t),Dt(o,r),me(o,t);e.a.Bc(n)!=null}lb(o),n.j=new Ew((u(D(R((ol(),Nn).o),11),18),o.i),o.g),Ou(n).b&=-33}return n.j}function _9e(n){var e,t,i,r;if(n==null)return null;if(i=jc(n,!0),r=Ak.length,Mn(i.substr(i.length-r,r),Ak)){if(t=i.length,t==4){if(e=(Te(0,i.length),i.charCodeAt(0)),e==43)return x1n;if(e==45)return Mee}else if(t==3)return x1n}return new Gq(i)}function K9e(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?hV(t):e==0&&i!=0&&t==0?hV(i)+22:e!=0&&i==0&&t==0?hV(e)+44:-1}function H9e(n,e){var t,i,r,c,o;for(le(e,"Edge joining",1),t=on(sn(k(n,(nn(),U_)))),r=new E(n.b);r.a1)for(r=new E(n.a);r.a0),c.a.Xb(c.c=--c.b),X0(c,r),ne(c.b3&&oh(n,0,e-3))}function U9e(n){var e,t,i,r;return B(k(n,(nn(),Vb)))===B((_h(),F1))?!n.e&&B(k(n,Jk))!==B((q3(),Gk)):(i=u(k(n,F_),292),r=on(sn(k(n,x_)))||B(k(n,Om))===B((F2(),qk)),e=u(k(n,nsn),19).a,t=n.a.c.length,!r&&i!=(q3(),Gk)&&(e==0||e>t))}function W9e(n){var e,t;for(t=0;t0);t++);if(t>0&&t0);e++);return e>0&&t>16!=6&&e){if(u4(n,e))throw T(new Hn(tm+_Ln(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?dJ(n,i):n.Cb.ih(n,-1-t,null,i))),e&&(i=_2(e,n,6,i)),i=lU(n,e,i),i&&i.Fi()}else n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,6,e,e))}function KY(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=9&&e){if(u4(n,e))throw T(new Hn(tm+jBn(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?wJ(n,i):n.Cb.ih(n,-1-t,null,i))),e&&(i=_2(e,n,9,i)),i=aU(n,e,i),i&&i.Fi()}else n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,9,e,e))}function _x(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=3&&e){if(u4(n,e))throw T(new Hn(tm+yRn(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?pJ(n,i):n.Cb.ih(n,-1-t,null,i))),e&&(i=_2(e,n,12,i)),i=hU(n,e,i),i&&i.Fi()}else n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,3,e,e))}function w4(n){var e,t,i,r,c;if(i=qs(n),c=n.j,c==null&&i)return n.$j()?null:i.zj();if(I(i,148)){if(t=i.Aj(),t&&(r=t.Nh(),r!=n.i)){if(e=u(i,148),e.Ej())try{n.g=r.Kh(e,c)}catch(o){if(o=jt(o),I(o,78))n.g=null;else throw T(o)}n.i=r}return n.g}return null}function ENn(n){var e;return e=new X,W(e,new f2(new fn(n.c,n.d),new fn(n.c+n.b,n.d))),W(e,new f2(new fn(n.c,n.d),new fn(n.c,n.d+n.a))),W(e,new f2(new fn(n.c+n.b,n.d+n.a),new fn(n.c+n.b,n.d))),W(e,new f2(new fn(n.c+n.b,n.d+n.a),new fn(n.c,n.d+n.a))),e}function CNn(n,e,t,i){var r,c,o;if(o=TJ(e,t),i.c[i.c.length]=e,n.j[o.p]==-1||n.j[o.p]==2||n.a[e.p])return i;for(n.j[o.p]=-1,c=new re(ue(Kh(o).a.Kc(),new An));Se(c);)if(r=u(ve(c),17),!(!(!Xi(r)&&!(!Xi(r)&&r.c.i.c==r.d.i.c))||r==e))return CNn(n,r,o,i);return i}function X9e(n,e,t){var i,r,c;for(c=e.a.ec().Kc();c.Ob();)r=u(c.Pb(),79),i=u(te(n.b,r),266),!i&&(Pt(hh(r))==Pt(ml(r))?f7e(n,r,t):hh(r)==Pt(ml(r))?te(n.c,r)==null&&te(n.b,ml(r))!=null&&i_n(n,r,t,!1):te(n.d,r)==null&&te(n.b,hh(r))!=null&&i_n(n,r,t,!0))}function V9e(n,e){var t,i,r,c,o,f,h;for(r=n.Kc();r.Ob();)for(i=u(r.Pb(),10),f=new wc,Hr(f,i),si(f,(J(),Vn)),H(f,(G(),GS),(qn(),!0)),o=e.Kc();o.Ob();)c=u(o.Pb(),10),h=new wc,Hr(h,c),si(h,Gn),H(h,GS,!0),t=new Pd,H(t,GS,!0),Hi(t,f),Ci(t,h)}function Q9e(n,e,t,i){var r,c,o,f;r=m$n(n,e,t),c=m$n(n,t,e),o=u(te(n.c,e),112),f=u(te(n.c,t),112),ri.b.g&&(c.c[c.c.length]=i);return c}function g4(){g4=N,Ng=new J9("CANDIDATE_POSITION_LAST_PLACED_RIGHT",0),Ep=new J9("CANDIDATE_POSITION_LAST_PLACED_BELOW",1),Qm=new J9("CANDIDATE_POSITION_WHOLE_DRAWING_RIGHT",2),Vm=new J9("CANDIDATE_POSITION_WHOLE_DRAWING_BELOW",3),Jm=new J9("WHOLE_DRAWING",4)}function J9e(n,e){if(I(e,239))return Age(n,u(e,33));if(I(e,186))return _ge(n,u(e,118));if(I(e,354))return Zhe(n,u(e,137));if(I(e,352))return Eye(n,u(e,79));if(e)return null;throw T(new Hn(Rtn+kl(new Hu(A(M(Zn,1),rn,1,5,[e])))))}function Y9e(n){var e,t,i,r,c,o,f;for(c=new Tt,r=new E(n.d.a);r.a1)for(e=kd((t=new ra,++n.b,t),n.d),f=_e(c,0);f.b!=f.d.c;)o=u(Re(f),121),jo(lo(ho(ao(fo(new Ns,1),0),e),o))}function HY(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=11&&e){if(u4(n,e))throw T(new Hn(tm+uZ(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?vJ(n,i):n.Cb.ih(n,-1-t,null,i))),e&&(i=_2(e,n,10,i)),i=kU(n,e,i),i&&i.Fi()}else n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,11,e,e))}function Z9e(n){var e,t,i,r;for(i=new Ea(new ta(n.b).a);i.b;)t=Nd(i),r=u(t.cd(),11),e=u(t.dd(),10),H(e,(G(),rt),r),H(r,Au,e),H(r,Wk,(qn(),!0)),si(r,u(k(e,ec),61)),k(e,ec),H(r.i,(nn(),Lt),(Mi(),Tv)),u(k(Gi(r.i),Mc),21).Fc((or(),ov))}function n8e(n,e,t){var i,r,c,o,f,h;if(c=0,o=0,n.c)for(h=new E(n.d.i.j);h.ac.a?-1:r.ah){for(a=n.d,n.d=F(u1n,Xtn,63,2*h+4,0,1),c=0;c=9223372036854776e3?(I3(),win):(r=!1,n<0&&(r=!0,n=-n),i=0,n>=$a&&(i=Gt(n/$a),n-=i*$a),t=0,n>=J2&&(t=Gt(n/J2),n-=t*J2),e=Gt(n),c=Bc(e,t,i),r&&sF(c),c)}function h8e(n,e){var t,i,r,c;for(t=!e||!n.u.Hc((Mu(),n1)),c=0,r=new E(n.e.Cf());r.a=-e&&i==e?new Si(Q(t-1),Q(i)):new Si(Q(t),Q(i-1))}function PNn(){return rr(),A(M(nMe,1),z,77,0,[fcn,ucn,mm,WR,Scn,dS,ES,Z4,Mcn,pcn,Ccn,Y4,Acn,bcn,Pcn,ncn,pS,XR,lS,kS,Ocn,mS,ecn,Tcn,Dcn,yS,Icn,aS,lcn,jcn,ycn,CS,rcn,hS,wS,icn,J4,mcn,wcn,Ecn,km,scn,ccn,kcn,gcn,gS,jS,tcn,vS,vcn,bS,acn,hcn,Kk,fS,dcn,ocn])}function b8e(n,e,t){n.d=0,n.b=0,e.k==(Qn(),Tc)&&t.k==Tc&&u(k(e,(G(),rt)),10)==u(k(t,rt),10)&&(F$(e).j==(J(),Kn)?bNn(n,e,t):bNn(n,t,e)),e.k==Tc&&t.k==pi?F$(e).j==(J(),Kn)?n.d=1:n.b=1:t.k==Tc&&e.k==pi&&(F$(t).j==(J(),Kn)?n.b=1:n.d=1),e3e(n,e,t)}function w8e(n){var e,t,i,r,c,o,f,h,l,a,d;return d=KJ(n),e=n.a,h=e!=null,h&&l3(d,"category",n.a),r=N9(new Rp(n.d)),o=!r,o&&(l=new na,Ro(d,"knownOptions",l),t=new pmn(l),$i(new Rp(n.d),t)),c=N9(n.g),f=!c,f&&(a=new na,Ro(d,"supportedFeatures",a),i=new vmn(a),$i(n.g,i)),d}function g8e(n){var e,t,i,r,c,o,f,h,l;for(i=!1,e=336,t=0,c=new Ojn(n.length),f=n,h=0,l=f.length;h>16!=7&&e){if(u4(n,e))throw T(new Hn(tm+Lxn(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?bJ(n,i):n.Cb.ih(n,-1-t,null,i))),e&&(i=u(e,49).gh(n,1,Iy,i)),i=aW(n,e,i),i&&i.Fi()}else n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,7,e,e))}function INn(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=3&&e){if(u4(n,e))throw T(new Hn(tm+zDn(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?gJ(n,i):n.Cb.ih(n,-1-t,null,i))),e&&(i=u(e,49).gh(n,0,Dy,i)),i=dW(n,e,i),i&&i.Fi()}else n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,3,e,e))}function Hx(n,e){a4();var t,i,r,c,o,f,h,l,a;return e.d>n.d&&(f=n,n=e,e=f),e.d<63?u7e(n,e):(o=(n.d&-2)<<4,l=MX(n,o),a=MX(e,o),i=rL(n,P2(l,o)),r=rL(e,P2(a,o)),h=Hx(l,a),t=Hx(i,r),c=Hx(rL(l,i),rL(r,a)),c=aL(aL(c,h),t),c=P2(c,o),h=P2(h,o<<1),aL(aL(h,c),t))}function v8e(n,e,t){var i,r,c,o,f;for(o=c6(n,t),f=F(mh,E1,10,e.length,0,1),i=0,c=o.Kc();c.Ob();)r=u(c.Pb(),11),on(sn(k(r,(G(),Wk))))&&(f[i++]=u(k(r,Au),10));if(i=0;c+=t?1:-1)o=o|e.c.Sf(h,c,t,i&&!on(sn(k(e.j,(G(),v0))))&&!on(sn(k(e.j,(G(),Pg))))),o=o|e.q._f(h,c,t),o=o|wBn(n,h[c],t,i);return ci(n.c,e),o}function fM(n,e,t){var i,r,c,o,f,h,l,a,d,g;for(a=bAn(n.j),d=0,g=a.length;d1&&(n.a=!0),Ffe(u(t.b,65),st(Qr(u(e.b,65).c),Of(yi(Qr(u(t.b,65).a),u(e.b,65).a),r))),SMn(n,e),ONn(n,t)}function DNn(n){var e,t,i,r,c,o,f;for(c=new E(n.a.a);c.a0&&c>0?o.p=e++:i>0?o.p=t++:c>0?o.p=r++:o.p=t++}Pn(),wi(n.j,new d0n)}function E8e(n){var e,t;t=null,e=u(un(n.g,0),17);do{if(t=e.d.i,ai(t,(G(),Ys)))return u(k(t,Ys),11).i;if(t.k!=(Qn(),ii)&&Se(new re(ue(ei(t).a.Kc(),new An))))e=u(ve(new re(ue(ei(t).a.Kc(),new An))),17);else if(t.k!=ii)return null}while(t&&t.k!=(Qn(),ii));return t}function C8e(n,e){var t,i,r,c,o,f,h,l,a;for(f=e.j,o=e.g,h=u(un(f,f.c.length-1),113),a=(Ln(0,f.c.length),u(f.c[0],113)),l=sx(n,o,h,a),c=1;cl&&(h=t,a=r,l=i);e.a=a,e.c=h}function T8e(n,e){var t,i;if(i=k8(n.b,e.b),!i)throw T(new $r("Invalid hitboxes for scanline constraint calculation."));(ROn(e.b,u(Tue(n.b,e.b),57))||ROn(e.b,u(Cue(n.b,e.b),57)))&&(nh(),e.b+""),n.a[e.b.f]=u(rD(n.b,e.b),57),t=u(iD(n.b,e.b),57),t&&(n.a[t.f]=e.b)}function jo(n){if(!n.a.d||!n.a.e)throw T(new $r((Ph(Wzn),Wzn.k+" must have a source and target "+(Ph(grn),grn.k)+" specified.")));if(n.a.d==n.a.e)throw T(new $r("Network simplex does not support self-loops: "+n.a+" "+n.a.d+" "+n.a.e));return bE(n.a.d.g,n.a),bE(n.a.e.b,n.a),n.a}function M8e(n,e,t){var i,r,c,o,f,h,l;for(l=new Y1(new g6n(n)),o=A(M(FWn,1),UKn,11,0,[e,t]),f=0,h=o.length;fh-n.b&&fh-n.a&&f0&&++p;++g}return p}function L8e(n,e){var t,i,r,c,o;for(o=u(k(e,(Zd(),Eon)),425),c=_e(e.b,0);c.b!=c.d.c;)if(r=u(Re(c),86),n.b[r.g]==0){switch(o.g){case 0:uFn(n,r);break;case 1:Bme(n,r)}n.b[r.g]=2}for(i=_e(n.a,0);i.b!=i.d.c;)t=u(Re(i),188),db(t.b.d,t,!0),db(t.c.b,t,!0);H(e,(cc(),gon),n.a)}function Kc(n,e){er();var t,i,r,c;return e?e==(ht(),Cee)||(e==aee||e==rd||e==lee)&&n!=$1n?new BZ(n,e):(i=u(e,677),t=i.pk(),t||(v3(Er((gu(),xi),e)),t=i.pk()),c=(!t.i&&(t.i=new we),t.i),r=u(Vr(Sr(c.f,n)),1942),!r&&it(c,n,r=new BZ(n,e)),r):oee}function N8e(n,e){var t,i,r,c,o,f,h,l,a;for(h=u(k(n,(G(),rt)),11),l=Gr(A(M(di,1),q,8,0,[h.i.n,h.n,h.a])).a,a=n.i.n.b,t=Lf(n.e),r=t,c=0,o=r.length;c0?c.a?(f=c.b.rf().a,t>f&&(r=(t-f)/2,c.d.b=r,c.d.c=r)):c.d.c=n.s+t:D5(n.u)&&(i=HJ(c.b),i.c<0&&(c.d.b=-i.c),i.c+i.b>c.b.rf().a&&(c.d.c=i.c+i.b-c.b.rf().a))}function K8e(n,e){var t,i,r,c;for(le(e,"Semi-Interactive Crossing Minimization Processor",1),t=!1,r=new E(n.b);r.a=0){if(e==t)return new Si(Q(-e-1),Q(-e-1));if(e==-t)return new Si(Q(-e),Q(t+1))}return y.Math.abs(e)>y.Math.abs(t)?e<0?new Si(Q(-e),Q(t)):new Si(Q(-e),Q(t+1)):new Si(Q(e+1),Q(t))}function G8e(n){var e,t;t=u(k(n,(nn(),qc)),163),e=u(k(n,(G(),za)),303),t==(Ss(),xl)?(H(n,qc,Qk),H(n,za,(Nh(),Ag))):t==Ub?(H(n,qc,Qk),H(n,za,(Nh(),dp))):e==(Nh(),Ag)?(H(n,qc,xl),H(n,za,zk)):e==dp&&(H(n,qc,Ub),H(n,za,zk))}function hM(){hM=N,cy=new ngn,$Jn=Ze(new li,(Qi(),Hc),(rr(),lS)),LJn=Eu(Ze(new li,Hc,mS),Or,vS),NJn=Xd(Xd(Dj(Eu(Ze(new li,Qf,ES),Or,jS),Cc),yS),CS),FJn=Eu(Ze(Ze(Ze(new li,$l,dS),Cc,wS),Cc,J4),Or,bS),xJn=Eu(Ze(Ze(new li,Cc,J4),Cc,hS),Or,fS)}function C6(){C6=N,_Jn=Ze(Eu(new li,(Qi(),Or),(rr(),acn)),Hc,lS),GJn=Xd(Xd(Dj(Eu(Ze(new li,Qf,ES),Or,jS),Cc),yS),CS),KJn=Eu(Ze(Ze(Ze(new li,$l,dS),Cc,wS),Cc,J4),Or,bS),qJn=Ze(Ze(new li,Hc,mS),Or,vS),HJn=Eu(Ze(Ze(new li,Cc,J4),Cc,hS),Or,fS)}function z8e(n,e,t,i,r){var c,o;(!Xi(e)&&e.c.i.c==e.d.i.c||!WIn(Gr(A(M(di,1),q,8,0,[r.i.n,r.n,r.a])),t))&&!Xi(e)&&(e.c==r?s3(e.a,0,new kr(t)):Ke(e.a,new kr(t)),i&&!Ah(n.a,t)&&(o=u(k(e,(nn(),Mr)),74),o||(o=new hu,H(e,Mr,o)),c=new kr(t),Kt(o,c,o.c.b,o.c),ci(n.a,c)))}function U8e(n){var e,t;for(t=new re(ue(Lr(n).a.Kc(),new An));Se(t);)if(e=u(ve(t),17),e.c.i.k!=(Qn(),Ju))throw T(new pw(SN+E7(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 W8e(n,e,t){var i,r,c,o,f,h,l;if(r=JDn(n.Db&254),r==0)n.Eb=t;else{if(r==1)f=F(Zn,rn,1,2,5,1),c=ux(n,e),c==0?(f[0]=t,f[1]=n.Eb):(f[0]=n.Eb,f[1]=t);else for(f=F(Zn,rn,1,r+1,5,1),o=pa(n.Eb),i=2,h=0,l=0;i<=128;i<<=1)i==e?f[l++]=t:n.Db&i&&(f[l++]=o[h++]);n.Eb=f}n.Db|=e}function FNn(n,e,t){var i,r,c,o;for(this.b=new X,r=0,i=0,o=new E(n);o.a0&&(c=u(un(this.b,0),167),r+=c.o,i+=c.p),r*=2,i*=2,e>1?r=Gt(y.Math.ceil(r*e)):i=Gt(y.Math.ceil(i/e)),this.a=new xQ(r,i)}function xNn(n,e,t,i,r,c){var o,f,h,l,a,d,g,p,v,m,C,S;for(a=i,e.j&&e.o?(p=u(te(n.f,e.A),57),m=p.d.c+p.d.b,--a):m=e.a.c+e.a.b,d=r,t.q&&t.o?(p=u(te(n.f,t.C),57),l=p.d.c,++d):l=t.a.c,C=l-m,h=y.Math.max(2,d-a),f=C/h,v=m+f,g=a;g=0;o+=r?1:-1){for(f=e[o],h=i==(J(),Vn)?r?zr(f,i):va(zr(f,i)):r?va(zr(f,i)):zr(f,i),c&&(n.c[f.p]=h.gc()),d=h.Kc();d.Ob();)a=u(d.Pb(),11),n.d[a.p]=l++;Zt(t,h)}}function LNn(n,e,t){var i,r,c,o,f,h,l,a;for(c=K(Y(n.b.Kc().Pb())),l=K(Y(twe(e.b))),i=Of(Qr(n.a),l-t),r=Of(Qr(e.a),t-c),a=st(i,r),Of(a,1/(l-c)),this.a=a,this.b=new X,f=!0,o=n.b.Kc(),o.Pb();o.Ob();)h=K(Y(o.Pb())),f&&h-t>oB&&(this.b.Fc(t),f=!1),this.b.Fc(h);f&&this.b.Fc(t)}function X8e(n){var e,t,i,r;if(cke(n,n.n),n.d.c.length>0){for(qv(n.c);AY(n,u(j(new E(n.e.a)),121))>5,e&=31,i>=n.d)return n.e<0?(jl(),gR):(jl(),W4);if(c=n.d-i,r=F(be,Le,25,c+1,15,1),K5e(r,c,n.a,i,e),n.e<0){for(t=0;t0&&n.a[t]<<32-e){for(t=0;t=0?!1:(t=rg((gu(),xi),r,e),t?(i=t.Zj(),(i>1||i==-1)&&Sd(Er(xi,t))!=3):!0)):!1}function Y8e(n,e,t,i){var r,c,o,f,h;return f=Ir(u(D((!e.b&&(e.b=new Fn(he,e,4,7)),e.b),0),82)),h=Ir(u(D((!e.c&&(e.c=new Fn(he,e,5,8)),e.c),0),82)),Pt(f)==Pt(h)||ob(h,f)?null:(o=S8(e),o==t?i:(c=u(te(n.a,o),10),c&&(r=c.e,r)?r:null))}function Z8e(n,e){var t;switch(t=u(k(n,(nn(),JS)),276),le(e,"Label side selection ("+t+")",1),t.g){case 0:nNn(n,(us(),yh));break;case 1:nNn(n,(us(),Kl));break;case 2:wRn(n,(us(),yh));break;case 3:wRn(n,(us(),Kl));break;case 4:QNn(n,(us(),yh));break;case 5:QNn(n,(us(),Kl))}ce(e)}function VY(n,e,t){var i,r,c,o,f,h;if(i=Bie(t,n.length),o=n[i],o[0].k==(Qn(),Xt))for(c=n8n(t,o.length),h=e.j,r=0;r0&&(t[0]+=n.d,o-=t[0]),t[2]>0&&(t[2]+=n.d,o-=t[2]),c=y.Math.max(0,o),t[1]=y.Math.max(t[1],o),SX(n,Fc,r.c+i.b+t[0]-(t[1]-o)/2,t),e==Fc&&(n.c.b=c,n.c.c=r.c+i.b+(c-o)/2)}function WNn(){this.c=F(Ei,pr,25,(J(),A(M(Zi,1),hc,61,0,[Xr,Kn,Vn,ae,Gn])).length,15,1),this.b=F(Ei,pr,25,A(M(Zi,1),hc,61,0,[Xr,Kn,Vn,ae,Gn]).length,15,1),this.a=F(Ei,pr,25,A(M(Zi,1),hc,61,0,[Xr,Kn,Vn,ae,Gn]).length,15,1),BG(this.c,Ft),BG(this.b,Qt),BG(this.a,Qt)}function yc(n,e,t){var i,r,c,o;if(e<=t?(r=e,c=t):(r=t,c=e),i=0,n.b==null)n.b=F(be,Le,25,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}o=F(be,Le,25,i+2,15,1),gc(n.b,0,o,0,i),n.b=o,n.b[i-1]>=r&&(n.c=!1,n.a=!1),n.b[i++]=r,n.b[i]=c,n.c||Jw(n)}}function s7e(n,e,t){var i,r,c,o,f,h,l;for(l=e.d,n.a=new Pc(l.c.length),n.c=new we,f=new E(l);f.a=0?n._g(l,!1,!0):Yd(n,t,!1),58));n:for(c=d.Kc();c.Ob();){for(r=u(c.Pb(),56),a=0;a1;)Eb(r,r.i-1);return i}function a7e(n,e){var t,i,r,c,o,f,h;for(le(e,"Comment post-processing",1),c=new E(n.b);c.an.d[o.p]&&(t+=jX(n.b,c),ll(n.a,Q(c)));for(;!Hv(n.a);)ZX(n.b,u(y2(n.a),19).a)}return t}function JNn(n,e,t){var i,r,c,o;for(c=(!e.a&&(e.a=new V(Ot,e,10,11)),e.a).i,r=new ie((!e.a&&(e.a=new V(Ot,e,10,11)),e.a));r.e!=r.i.gc();)i=u(oe(r),33),(!i.a&&(i.a=new V(Ot,i,10,11)),i.a).i==0||(c+=JNn(n,i,!1));if(t)for(o=Pt(e);o;)c+=(!o.a&&(o.a=new V(Ot,o,10,11)),o.a).i,o=Pt(o);return c}function Eb(n,e){var t,i,r,c;return n.ej()?(i=null,r=n.fj(),n.ij()&&(i=n.kj(n.pi(e),null)),t=n.Zi(4,c=H2(n,e),null,e,r),n.bj()&&c!=null&&(i=n.dj(c,i)),i?(i.Ei(t),i.Fi()):n.$i(t),c):(c=H2(n,e),n.bj()&&c!=null&&(i=n.dj(c,null),i&&i.Fi()),c)}function b7e(n){var e,t,i,r,c,o,f,h,l,a;for(l=n.a,e=new hi,h=0,i=new E(n.d);i.af.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 or(){or=N,NS=new H0("COMMENTS",0),$s=new H0("EXTERNAL_PORTS",1),Tm=new H0("HYPEREDGES",2),BS=new H0("HYPERNODES",3),ov=new H0("NON_FREE_PORTS",4),Mg=new H0("NORTH_SOUTH_PORTS",5),Mm=new H0(lHn,6),uv=new H0("CENTER_LABELS",7),sv=new H0("END_LABELS",8),RS=new H0("PARTITIONS",9)}function Cb(n){var e,t,i,r,c;for(r=new X,e=new S5((!n.a&&(n.a=new V(Ot,n,10,11)),n.a)),i=new re(ue(Gh(n).a.Kc(),new An));Se(i);)t=u(ve(i),79),I(D((!t.b&&(t.b=new Fn(he,t,4,7)),t.b),0),186)||(c=Ir(u(D((!t.c&&(t.c=new Fn(he,t,5,8)),t.c),0),82)),e.a._b(c)||(r.c[r.c.length]=c));return r}function w7e(n){var e,t,i,r,c,o;for(c=new hi,e=new S5((!n.a&&(n.a=new V(Ot,n,10,11)),n.a)),r=new re(ue(Gh(n).a.Kc(),new An));Se(r);)i=u(ve(r),79),I(D((!i.b&&(i.b=new Fn(he,i,4,7)),i.b),0),186)||(o=Ir(u(D((!i.c&&(i.c=new Fn(he,i,5,8)),i.c),0),82)),e.a._b(o)||(t=c.a.zc(o,c),t==null));return c}function g7e(n,e,t,i,r){return i<0?(i=Qw(n,r,A(M(tn,1),q,2,6,[IL,OL,DL,$L,V2,FL,xL,LL,NL,BL,RL,_L]),e),i<0&&(i=Qw(n,r,A(M(tn,1),q,2,6,["Jan","Feb","Mar","Apr",V2,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),e)),i<0?!1:(t.k=i,!0)):i>0?(t.k=i-1,!0):!1}function p7e(n,e,t,i,r){return i<0?(i=Qw(n,r,A(M(tn,1),q,2,6,[IL,OL,DL,$L,V2,FL,xL,LL,NL,BL,RL,_L]),e),i<0&&(i=Qw(n,r,A(M(tn,1),q,2,6,["Jan","Feb","Mar","Apr",V2,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),e)),i<0?!1:(t.k=i,!0)):i>0?(t.k=i-1,!0):!1}function v7e(n,e,t,i,r,c){var o,f,h,l;if(f=32,i<0){if(e[0]>=n.length||(f=Di(n,e[0]),f!=43&&f!=45)||(++e[0],i=tM(n,e),i<0))return!1;f==45&&(i=-i)}return f==32&&e[0]-t==2&&r.b==2&&(h=new Tj,l=h.q.getFullYear()-Tl+Tl-80,o=l%100,c.a=i==o,i+=(l/100|0)*100+(i=l&&(h=i);h&&(a=y.Math.max(a,h.a.o.a)),a>g&&(d=l,g=a)}return d}function y7e(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=ske(n.i)),n.j=n.i.length,Qe(n),c=Wd(n),n.d!=n.j)throw T(new Ee(Pe((je(),$qn))));if(n.g){for(i=0;iFHn?wi(h,n.b):i<=FHn&&i>xHn?wi(h,n.d):i<=xHn&&i>LHn?wi(h,n.c):i<=LHn&&wi(h,n.a),c=eBn(n,h,c);return r}function jl(){jl=N;var n;for(qA=new l1(1,1),pR=new l1(1,10),W4=new l1(0,0),gR=new l1(-1,1),xin=A(M(vg,1),q,91,0,[W4,qA,new l1(1,2),new l1(1,3),new l1(1,4),new l1(1,5),new l1(1,6),new l1(1,7),new l1(1,8),new l1(1,9),pR]),GA=F(vg,q,91,32,0,1),n=0;n1,f&&(i=new fn(r,t.b),Ke(e.a,i)),V5(e.a,A(M(di,1),q,8,0,[g,d]))}function uBn(n){wd(n,new Ia(ld(od(hd(fd(new Zl,gA),"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 $2n))),Z(n,gA,u0,zhn),Z(n,gA,Db,15),Z(n,gA,HM,Q(0)),Z(n,gA,ep,$4)}function YY(){YY=N;var n,e,t,i,r,c;for(v9=F(yu,wg,25,255,15,1),oI=F(Ls,Rf,25,16,15,1),e=0;e<255;e++)v9[e]=-1;for(t=57;t>=48;t--)v9[t]=t-48<<24>>24;for(i=70;i>=65;i--)v9[i]=i-65+10<<24>>24;for(r=102;r>=97;r--)v9[r]=r-97+10<<24>>24;for(c=0;c<10;c++)oI[c]=48+c&Ut;for(n=10;n<=15;n++)oI[n]=65+n-10&Ut}function aM(n,e,t){var i,r,c,o,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/2,o=t.g+n.g/2,i=e.f+n.g/2,r=t.f+n.g/2,f>19)return"-"+sBn(z3(n));for(t=n,i="";!(t.l==0&&t.m==0&&t.h==0);){if(r=E$($M),t=IZ(t,r,!0),e=""+m8n(Il),!(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 A7e(){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 S7e(n){var e,t,i,r,c,o,f;for(e=!1,t=0,r=new E(n.d.b);r.a=n.a||!RJ(e,t))return-1;if(E3(u(i.Kb(e),20)))return 1;for(r=0,o=u(i.Kb(e),20).Kc();o.Ob();)if(c=u(o.Pb(),17),h=c.c.i==e?c.d.i:c.c.i,f=nZ(n,h,t,i),f==-1||(r=y.Math.max(r,f),r>n.c-1))return-1;return r+1}function oBn(n,e){var t,i,r,c,o,f;if(B(e)===B(n))return!0;if(!I(e,15)||(i=u(e,15),f=n.gc(),i.gc()!=f))return!1;if(o=i.Kc(),n.ni()){for(t=0;t0){if(n.qj(),e!=null){for(c=0;c>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 Pf("Invalid hexadecimal"))}}function D7e(n,e,t){var i,r,c,o;for(le(t,"Processor order nodes",2),n.a=K(Y(k(e,(Zd(),Con)))),r=new Tt,o=_e(e.b,0);o.b!=o.d.c;)c=u(Re(o),86),on(sn(k(c,(cc(),iw))))&&Kt(r,c,r.c.b,r.c);i=(ne(r.b!=0),u(r.a.a.c,86)),SRn(n,i),!t.b&&X$(t,1),cZ(n,i,0-K(Y(k(i,(cc(),kP))))/2,0),!t.b&&X$(t,1),ce(t)}function dM(){dM=N,brn=new kw("SPIRAL",0),hrn=new kw("LINE_BY_LINE",1),lrn=new kw("MANHATTAN",2),frn=new kw("JITTER",3),ER=new kw("QUADRANTS_LINE_BY_LINE",4),drn=new kw("QUADRANTS_MANHATTAN",5),arn=new kw("QUADRANTS_JITTER",6),orn=new kw("COMBINE_LINE_BY_LINE_MANHATTAN",7),srn=new kw("COMBINE_JITTER_MANHATTAN",8)}function hBn(n,e,t,i){var r,c,o,f,h,l;for(h=ax(n,t),l=ax(e,t),r=!1;h&&l&&(i||S3e(h,l,t));)o=ax(h,t),f=ax(l,t),H8(e),H8(n),c=h.c,gL(h,!1),gL(l,!1),t?(pb(e,l.p,c),e.p=l.p,pb(n,h.p+1,c),n.p=h.p):(pb(n,h.p,c),n.p=h.p,pb(e,l.p+1,c),e.p=l.p),jr(h,null),jr(l,null),h=o,l=f,r=!0;return r}function $7e(n,e,t,i){var r,c,o,f,h;for(r=!1,c=!1,f=new E(i.j);f.a=e.length)throw T(new mr("Greedy SwitchDecider: Free layer not in graph."));this.c=e[n],this.e=new b8(i),Y$(this.e,this.c,(J(),Gn)),this.i=new b8(i),Y$(this.i,this.c,Vn),this.f=new oCn(this.c),this.a=!c&&r.i&&!r.s&&this.c[0].k==(Qn(),Xt),this.a&&Q5e(this,n,e.length)}function aBn(n,e){var t,i,r,c,o,f;c=!n.B.Hc((Lu(),Sy)),o=n.B.Hc(sH),n.a=new s$n(o,c,n.c),n.n&&GW(n.a.n,n.n),zI(n.g,(_o(),Fc),n.a),e||(i=new l6(1,c,n.c),i.n.a=n.k,m2(n.p,(J(),Kn),i),r=new l6(1,c,n.c),r.n.d=n.k,m2(n.p,ae,r),f=new l6(0,c,n.c),f.n.c=n.k,m2(n.p,Gn,f),t=new l6(0,c,n.c),t.n.b=n.k,m2(n.p,Vn,t))}function x7e(n){var e,t,i;switch(e=u(k(n.d,(nn(),Qh)),218),e.g){case 2:t=lTe(n);break;case 3:t=(i=new X,Rt(gt(Vc(qr(qr(new $n(null,new xn(n.d.b,16)),new Pbn),new Ibn),new Obn),new gbn),new U5n(i)),i);break;default:throw T(new $r("Compaction not supported for "+e+" edges."))}$je(n,t),$i(new Rp(n.g),new G5n(n))}function L7e(n,e){var t;return t=new pI,e&&Pr(t,u(te(n.a,Iy),94)),I(e,470)&&Pr(t,u(te(n.a,Oy),94)),I(e,354)?(Pr(t,u(te(n.a,Rr),94)),t):(I(e,82)&&Pr(t,u(te(n.a,he),94)),I(e,239)?(Pr(t,u(te(n.a,Ot),94)),t):I(e,186)?(Pr(t,u(te(n.a,_u),94)),t):(I(e,352)&&Pr(t,u(te(n.a,bi),94)),t))}function Go(){Go=N,Q4=new tr((Xe(),_P),Q(1)),rS=new tr(ed,80),iWn=new tr(jhn,5),XUn=new tr(Tp,$4),eWn=new tr(tH,Q(1)),tWn=new tr(iH,(qn(),!0)),Orn=new vd(50),ZUn=new tr(nd,Orn),Srn=NP,Drn=n9,VUn=new tr(WK,!1),Irn=ky,YUn=_l,JUn=Za,QUn=_g,nWn=rw,Prn=(YJ(),KUn),xR=zUn,iS=_Un,FR=HUn,$rn=GUn}function N7e(n){var e,t,i,r,c,o,f,h;for(h=new bSn,f=new E(n.a);f.a0&&e=0)return!1;if(e.p=t.b,W(t.e,e),r==(Qn(),pi)||r==Tc){for(o=new E(e.j);o.a1||o==-1)&&(c|=16),r.Bb&uc&&(c|=64)),t.Bb&Yi&&(c|=Bb),c|=Eo):I(e,457)?c|=512:(i=e.Bj(),i&&i.i&1&&(c|=256)),n.Bb&512&&(c|=128),c}function T6(n,e){var t,i,r,c,o;for(n=n==null?ru:(_n(n),n),r=0;rn.d[f.p]&&(t+=jX(n.b,c),ll(n.a,Q(c)))):++o;for(t+=n.b.d*o;!Hv(n.a);)ZX(n.b,u(y2(n.a),19).a)}return t}function U7e(n,e){var t;return n.f==mH?(t=Sd(Er((gu(),xi),e)),n.e?t==4&&e!=(z2(),Dp)&&e!=(z2(),Op)&&e!=(z2(),kH)&&e!=(z2(),yH):t==2):n.d&&(n.d.Hc(e)||n.d.Hc(A2(Er((gu(),xi),e)))||n.d.Hc(rg((gu(),xi),n.b,e)))?!0:n.f&&qY((gu(),n.f),E8(Er(xi,e)))?(t=Sd(Er(xi,e)),n.e?t==4:t==2):!1}function W7e(n,e,t,i){var r,c,o,f,h,l,a,d;return o=u(hn(t,(Xe(),Mp)),8),h=o.a,a=o.b+n,r=y.Math.atan2(a,h),r<0&&(r+=ag),r+=e,r>ag&&(r-=ag),f=u(hn(i,Mp),8),l=f.a,d=f.b+n,c=y.Math.atan2(d,l),c<0&&(c+=ag),c+=e,c>ag&&(c-=ag),Zo(),mo(1e-10),y.Math.abs(r-c)<=1e-10||r==c||isNaN(r)&&isNaN(c)?0:rc?1:pd(isNaN(r),isNaN(c))}function Wx(n){var e,t,i,r,c,o,f;for(f=new we,i=new E(n.a.b);i.a=n.o)throw T(new qq);f=e>>5,o=e&31,c=Ih(1,ge(Ih(o,1))),r?n.n[t][f]=cf(n.n[t][f],c):n.n[t][f]=ui(n.n[t][f],XU(c)),c=Ih(c,1),i?n.n[t][f]=cf(n.n[t][f],c):n.n[t][f]=ui(n.n[t][f],XU(c))}catch(h){throw h=jt(h),I(h,320)?T(new mr(bN+n.o+"*"+n.p+wN+e+Ji+t+gN)):T(h)}}function cZ(n,e,t,i){var r,c,o;e&&(c=K(Y(k(e,(cc(),O1))))+i,o=t+K(Y(k(e,kP)))/2,H(e,mK,Q(ge(tu(y.Math.round(c))))),H(e,pon,Q(ge(tu(y.Math.round(o))))),e.d.b==0||cZ(n,u(fE((r=_e(new X1(e).a.d,0),new e2(r))),86),t+K(Y(k(e,kP)))+n.a,i+K(Y(k(e,vv)))),k(e,vK)!=null&&cZ(n,u(k(e,vK),86),t,i))}function V7e(n,e){var t,i,r,c,o,f,h,l,a,d,g;for(h=Gi(e.a),r=K(Y(k(h,(nn(),Qa))))*2,a=K(Y(k(h,$g))),l=y.Math.max(r,a),c=F(Ei,pr,25,e.f-e.c+1,15,1),i=-l,t=0,f=e.b.Kc();f.Ob();)o=u(f.Pb(),10),i+=n.a[o.c.p]+l,c[t++]=i;for(i+=n.a[e.a.c.p]+l,c[t++]=i,g=new E(e.e);g.a0&&(i=(!n.n&&(n.n=new V(Rr,n,1,7)),u(D(n.n,0),137)).a,!i||De(De((e.a+=' "',e),i),'"'))),De(dd(De(dd(De(dd(De(dd((e.a+=" (",e),n.i),","),n.j)," | "),n.g),","),n.f),")"),e.a)}function jBn(n){var e,t,i;return n.Db&64?Ex(n):(e=new Yu(Itn),t=n.k,t?De(De((e.a+=' "',e),t),'"'):(!n.n&&(n.n=new V(Rr,n,1,7)),n.n.i>0&&(i=(!n.n&&(n.n=new V(Rr,n,1,7)),u(D(n.n,0),137)).a,!i||De(De((e.a+=' "',e),i),'"'))),De(dd(De(dd(De(dd(De(dd((e.a+=" (",e),n.i),","),n.j)," | "),n.g),","),n.f),")"),e.a)}function Vx(n,e){var t,i,r,c,o,f,h;if(e==null||e.length==0)return null;if(r=u(vc(n.a,e),149),!r){for(i=(f=new Mh(n.b).a.vc().Kc(),new L0(f));i.a.Ob();)if(t=(c=u(i.a.Pb(),42),u(c.dd(),149)),o=t.c,h=e.length,Mn(o.substr(o.length-h,h),e)&&(e.length==o.length||Di(o,o.length-e.length-1)==46)){if(r)return null;r=t}r&&yr(n.a,e,r)}return r}function Y7e(n,e){var t,i,r,c;return t=new zln,i=u(ts(Vc(new $n(null,new xn(n.f,16)),t),cb(new Vg,new Qg,new Jg,new Yg,A(M(Bu,1),z,132,0,[(lf(),Rb),ls]))),21),r=i.gc(),i=u(ts(Vc(new $n(null,new xn(e.f,16)),t),cb(new Vg,new Qg,new Jg,new Yg,A(M(Bu,1),z,132,0,[Rb,ls]))),21),c=i.gc(),rr.p?(si(c,ae),c.d&&(f=c.o.b,e=c.a.b,c.a.b=f-e)):c.j==ae&&r.p>n.p&&(si(c,Kn),c.d&&(f=c.o.b,e=c.a.b,c.a.b=-(f-e)));break}return r}function nke(n,e,t,i){var r,c,o,f,h,l,a,d,g,p,v;if(c=t,t1,f&&(i=new fn(r,t.b),Ke(e.a,i)),V5(e.a,A(M(di,1),q,8,0,[g,d]))}function Qx(n,e,t){var i,r,c,o,f,h;if(e)if(t<=-1){if(i=On(e.Tg(),-1-t),I(i,99))return u(i,18);for(o=u(e.ah(i),153),f=0,h=o.gc();f0){for(r=h.length;r>0&&h[r-1]=="";)--r;r=40,o&&lye(n),wje(n),X8e(n),t=WDn(n),i=0;t&&i0&&Ke(n.f,c)):(n.c[o]-=l+1,n.c[o]<=0&&n.a[o]>0&&Ke(n.e,c))))}function Mke(n){var e,t,i,r,c,o,f,h,l;for(f=new Y1(u(pe(new Wln),62)),l=Qt,t=new E(n.d);t.a=0&&ht?e:t;l<=d;++l)l==t?f=i++:(c=r[l],a=v.rl(c.ak()),l==e&&(h=l==d&&!a?i-1:i),a&&++i);return g=u(o6(n,e,t),72),f!=h&&Gp(n,new R8(n.e,7,o,Q(f),p.dd(),h)),g}}else return u(Dx(n,e,t),72);return u(o6(n,e,t),72)}function Ike(n,e){var t,i,r,c,o,f,h;for(le(e,"Port order processing",1),h=u(k(n,(nn(),Ssn)),421),i=new E(n.b);i.a=0&&(f=$3e(n,o),!(f&&(l<22?h.l|=1<>>1,o.m=a>>>1|(d&1)<<21,o.l=g>>>1|(a&1)<<21,--l;return t&&sF(h),c&&(i?(Il=z3(n),r&&(Il=xOn(Il,(I3(),gin)))):Il=Bc(n.l,n.m,n.h)),h}function $ke(n,e){var t,i,r,c,o,f,h,l,a,d;for(l=n.e[e.c.p][e.p]+1,h=e.c.a.c.length+1,f=new E(n.a);f.a0&&(Te(0,n.length),n.charCodeAt(0)==45||(Te(0,n.length),n.charCodeAt(0)==43))?1:0,i=o;it)throw T(new Pf(c0+n+'"'));return f}function Fke(n){var e,t,i,r,c,o,f;for(o=new Tt,c=new E(n.a);c.a1)&&e==1&&u(n.a[n.b],10).k==(Qn(),Ju)?W2(u(n.a[n.b],10),(us(),yh)):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==(Qn(),Ju)?W2(u(n.a[n.c-1&n.a.length-1],10),(us(),Kl)):(n.c-n.b&n.a.length-1)==2?(W2(u(t6(n),10),(us(),yh)),W2(u(t6(n),10),Kl)):S9e(n,r),kX(n)}function Nke(n,e,t){var i,r,c,o,f;for(c=0,r=new ie((!n.a&&(n.a=new V(Ot,n,10,11)),n.a));r.e!=r.i.gc();)i=u(oe(r),33),o="",(!i.n&&(i.n=new V(Rr,i,1,7)),i.n).i==0||(o=u(D((!i.n&&(i.n=new V(Rr,i,1,7)),i.n),0),137).a),f=new hF(c++,e,o),Pr(f,i),H(f,(cc(),Wm),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),Ke(e.b,f),_c(t.f,i,f)}function Bke(n){var e,t,i,r,c;i=u(k(n,(G(),rt)),33),c=u(hn(i,(nn(),Xa)),174).Hc((Qu(),id)),n.e||(r=u(k(n,Mc),21),e=new fn(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a),r.Hc((or(),$s))?(gr(i,Lt,(Mi(),Ac)),t0(i,e.a,e.b,!1,!0)):on(sn(hn(i,H_)))||t0(i,e.a,e.b,!0,!0)),c?gr(i,Xa,Cn(id)):gr(i,Xa,(t=u(xo(o9),9),new ks(t,u(bo(t,t.length),9),0)))}function dZ(n,e,t){var i,r,c,o;if(e[0]>=n.length)return t.o=0,!0;switch(Di(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],o=tM(n,e),o==0&&e[0]==c)return!1;if(e[0]=0&&f!=t&&(c=new gi(n,1,f,o,null),i?i.Ei(c):i=c),t>=0&&(c=new gi(n,1,t,f==t?o:null,e),i?i.Ei(c):i=c)),i}function _Bn(n){var e,t,i;if(n.b==null){if(i=new i1,n.i!=null&&(dr(i,n.i),i.a+=":"),n.f&256){for(n.f&256&&n.a!=null&&(n1e(n.i)||(i.a+="//"),dr(i,n.a)),n.d!=null&&(i.a+="/",dr(i,n.d)),n.f&16&&(i.a+="/"),e=0,t=n.j.length;eg?!1:(d=(h=O6(i,g,!1),h.a),a+f+d<=e.b&&(B8(t,c-t.s),t.c=!0,B8(i,c-t.s),k7(i,t.s,t.t+t.d+f),i.k=!0,TV(t.q,i),p=!0,r&&(XC(e,i),i.j=e,n.c.length>o&&(T7((Ln(o,n.c.length),u(n.c[o],200)),i),(Ln(o,n.c.length),u(n.c[o],200)).a.c.length==0&&h1(n,o)))),p)}function Uke(n,e){var t,i,r,c,o,f;if(le(e,"Partition midprocessing",1),r=new Od,Rt(gt(new $n(null,new xn(n.a,16)),new w0n),new I5n(r)),r.d!=0){for(f=u(ts($Mn((c=r.i,new $n(null,(c||(r.i=new Sw(r,r.c))).Nc()))),ga(new U1,new z1,new W1,A(M(Bu,1),z,132,0,[(lf(),ls)]))),15),i=f.Kc(),t=u(i.Pb(),19);i.Ob();)o=u(i.Pb(),19),V9e(u(ct(r,t),21),u(ct(r,o),21)),t=o;ce(e)}}function qBn(n,e,t){var i,r,c,o,f,h,l,a;if(e.p==0){for(e.p=1,o=t,o||(r=new X,c=(i=u(xo(Zi),9),new ks(i,u(bo(i,i.length),9),0)),o=new Si(r,c)),u(o.a,15).Fc(e),e.k==(Qn(),Xt)&&u(o.b,21).Fc(u(k(e,(G(),ec)),61)),h=new E(e.j);h.a0){if(r=u(n.Ab.g,1934),e==null){for(c=0;c1)for(i=new E(r);i.at.s&&ff&&(f=r,a.c=F(Zn,rn,1,0,5,1)),r==f&&W(a,new Si(t.c.i,t)));Pn(),wi(a,n.c),Q0(n.b,h.p,a)}}function Yke(n,e){var t,i,r,c,o,f,h,l,a;for(o=new E(e.b);o.af&&(f=r,a.c=F(Zn,rn,1,0,5,1)),r==f&&W(a,new Si(t.d.i,t)));Pn(),wi(a,n.c),Q0(n.f,h.p,a)}}function zBn(n){wd(n,new Ia(ld(od(hd(fd(new Zl,f0),"ELK Box"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges."),new m2n))),Z(n,f0,u0,Gfn),Z(n,f0,Db,15),Z(n,f0,hk,Q(0)),Z(n,f0,dA,cn(Kfn)),Z(n,f0,hg,cn(LZn)),Z(n,f0,tp,cn(NZn)),Z(n,f0,ep,qHn),Z(n,f0,lk,cn(Hfn)),Z(n,f0,ip,cn(qfn)),Z(n,f0,Ctn,cn(qK)),Z(n,f0,sA,cn(xZn))}function UBn(n,e){var t,i,r,c,o,f,h,l,a;if(r=n.i,o=r.o.a,c=r.o.b,o<=0&&c<=0)return J(),Xr;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 J(),Gn;if(l+f>o)return J(),Vn;break;case 4:case 3:if(a<0)return J(),Kn;if(a+t>c)return J(),ae}return h=(l+f/2)/o,i=(a+t/2)/c,h+i<=1&&h-i<=0?(J(),Gn):h+i>=1&&h-i>=0?(J(),Vn):i<.5?(J(),Kn):(J(),ae)}function Zke(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m;for(t=!1,a=K(Y(k(e,(nn(),T0)))),v=Cl*a,r=new E(e.b);r.ah+v&&(m=d.g+g.g,g.a=(g.g*g.a+d.g*d.a)/m,g.g=m,d.f=g,t=!0)),c=f,d=g;return t}function WBn(n,e,t,i,r,c,o){var f,h,l,a,d,g;for(g=new d2,l=e.Kc();l.Ob();)for(f=u(l.Pb(),839),d=new E(f.wf());d.a0?f.a?(l=f.b.rf().b,r>l&&(n.v||f.c.d.c.length==1?(o=(r-l)/2,f.d.d=o,f.d.a=o):(t=u(un(f.c.d,0),181).rf().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:D5(n.u)&&(c=HJ(f.b),c.d<0&&(f.d.d=-c.d),c.d+c.a>f.b.rf().b&&(f.d.a=c.d+c.a-f.b.rf().b))}function tye(n,e){var t;switch(U8(n)){case 6:return ki(e);case 7:return G0(e);case 8:return q0(e);case 3:return Array.isArray(e)&&(t=U8(e),!(t>=14&&t<=16));case 11:return e!=null&&typeof e===CL;case 12:return e!=null&&(typeof e===Q7||typeof e==CL);case 0:return WF(e,n.__elementTypeId$);case 2:return OD(e)&&e.im!==Xg;case 1:return OD(e)&&e.im!==Xg||WF(e,n.__elementTypeId$);default:return!0}}function XBn(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 VBn(n,e){var t,i,r,c,o,f;return r=fV(n),f=fV(e),r==f?n.e==e.e&&n.a<54&&e.a<54?n.fe.f?1:0:(i=n.e-e.e,t=(n.d>0?n.d:y.Math.floor((n.a-1)*uKn)+1)-(e.d>0?e.d:y.Math.floor((e.a-1)*uKn)+1),t>i+1?r:t0&&(o=Fw(o,pRn(i))),A$n(c,o))):r0&&n.d!=(W5(),BR)&&(f+=o*(i.d.a+n.a[e.b][i.b]*(e.d.a-i.d.a)/t)),t>0&&n.d!=(W5(),LR)&&(h+=o*(i.d.b+n.a[e.b][i.b]*(e.d.b-i.d.b)/t)));switch(n.d.g){case 1:return new fn(f/c,e.d.b);case 2:return new fn(e.d.a,h/c);default:return new fn(f/c,h/c)}}function QBn(n,e){V3();var t,i,r,c,o;if(o=u(k(n.i,(nn(),Lt)),98),c=n.j.g-e.j.g,c!=0||!(o==(Mi(),td)||o==Eh||o==Ac))return 0;if(o==(Mi(),td)&&(t=u(k(n,P1),19),i=u(k(e,P1),19),t&&i&&(r=t.a-i.a,r!=0)))return r;switch(n.j.g){case 1:return ni(n.n.a,e.n.a);case 2:return ni(n.n.b,e.n.b);case 3:return ni(e.n.a,n.n.a);case 4:return ni(e.n.b,n.n.b);default:throw T(new $r($nn))}}function JBn(n){var e,t,i,r,c,o;for(t=(!n.a&&(n.a=new Yt(io,n,5)),n.a).i+2,o=new Pc(t),W(o,new fn(n.j,n.k)),Rt(new $n(null,(!n.a&&(n.a=new Yt(io,n,5)),new xn(n.a,16))),new z6n(o)),W(o,new fn(n.b,n.c)),e=1;e0&&(u7(h,!1,(sr(),Zs)),u7(h,!0,Ao)),Zc(e.g,new H7n(n,t)),it(n.g,e,t)}function ZBn(){ZBn=N;var n;for(Cin=A(M(be,1),Le,25,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]),bR=F(be,Le,25,37,15,1),yzn=A(M(be,1),Le,25,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]),Tin=F(Yl,QL,25,37,14,1),n=2;n<=36;n++)bR[n]=Gt(y.Math.pow(n,Cin[n])),Tin[n]=M7(IM,bR[n])}function rye(n){var e;if((!n.a&&(n.a=new V(Mt,n,6,6)),n.a).i!=1)throw T(new Hn(oqn+(!n.a&&(n.a=new V(Mt,n,6,6)),n.a).i));return e=new hu,r7(u(D((!n.b&&(n.b=new Fn(he,n,4,7)),n.b),0),82))&&Vi(e,x_n(n,r7(u(D((!n.b&&(n.b=new Fn(he,n,4,7)),n.b),0),82)),!1)),r7(u(D((!n.c&&(n.c=new Fn(he,n,5,8)),n.c),0),82))&&Vi(e,x_n(n,r7(u(D((!n.c&&(n.c=new Fn(he,n,5,8)),n.c),0),82)),!0)),e}function nRn(n,e){var t,i,r,c,o;for(e.d?r=n.a.c==(xf(),M0)?Lr(e.b):ei(e.b):r=n.a.c==(xf(),I1)?Lr(e.b):ei(e.b),c=!1,i=new re(ue(r.a.Kc(),new An));Se(i);)if(t=u(ve(i),17),o=on(n.a.f[n.a.g[e.b.p].p]),!(!o&&!Xi(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,Ah(n.b,n.a.g[b3e(t,e.b).p])))return e.c=!0,e.a=t,e;return e.c=c,e.a=null,e}function cye(n,e,t,i,r){var c,o,f,h,l,a,d;for(Pn(),wi(n,new I2n),f=new Pi(n,0),d=new X,c=0;f.bc*2?(a=new zC(d),l=bu(o)/zu(o),h=kL(a,e,new i2,t,i,r,l),st(Lo(a.e),h),d.c=F(Zn,rn,1,0,5,1),c=0,d.c[d.c.length]=a,d.c[d.c.length]=o,c=bu(a)*zu(a)+bu(o)*zu(o)):(d.c[d.c.length]=o,c+=bu(o)*zu(o));return d}function wZ(n,e,t){var i,r,c,o,f,h,l;if(i=t.gc(),i==0)return!1;if(n.ej())if(h=n.fj(),IQ(n,e,t),o=i==1?n.Zi(3,null,t.Kc().Pb(),e,h):n.Zi(5,null,t,e,h),n.bj()){for(f=i<100?null:new Q1(i),c=e+i,r=e;r0){for(o=0;o>16==-15&&n.Cb.nh()&&L$(new D$(n.Cb,9,13,t,n.c,v1(Du(u(n.Cb,59)),n))):I(n.Cb,88)&&n.Db>>16==-23&&n.Cb.nh()&&(e=n.c,I(e,88)||(e=(Sn(),so)),I(t,88)||(t=(Sn(),so)),L$(new D$(n.Cb,9,10,t,e,v1(bc(u(n.Cb,26)),n)))))),n.c}function uye(n,e){var t,i,r,c,o,f,h,l,a,d;for(le(e,"Hypernodes processing",1),r=new E(n.b);r.at);return r}function tRn(n,e){var t,i,r;i=xu(n.d,1)!=0,!on(sn(k(e.j,(G(),v0))))&&!on(sn(k(e.j,Pg)))||B(k(e.j,(nn(),Ll)))===B((Rh(),Nl))?e.c.Tf(e.e,i):i=on(sn(k(e.j,v0))),_7(n,e,i,!0),on(sn(k(e.j,Pg)))&&H(e.j,Pg,(qn(),!1)),on(sn(k(e.j,v0)))&&(H(e.j,v0,(qn(),!1)),H(e.j,Pg,!0)),t=Sx(n,e);do{if(yV(n),t==0)return 0;i=!i,r=t,_7(n,e,i,!1),t=Sx(n,e)}while(r>t);return r}function iRn(n,e,t){var i,r,c,o,f,h,l,a,d,g,p,v;if(e==t)return!0;if(e=TY(n,e),t=TY(n,t),i=nx(e),i){if(a=nx(t),a!=i)return a?(h=i.Dj(),v=a.Dj(),h==v&&h!=null):!1;if(o=(!e.d&&(e.d=new Yt(ar,e,1)),e.d),c=o.i,g=(!t.d&&(t.d=new Yt(ar,t,1)),t.d),c==g.i){for(l=0;l0,f=TT(e,c),Uz(t?f.b:f.g,e),Hw(f).c.length==1&&Kt(i,f,i.c.b,i.c),r=new Si(c,e),ll(n.o,r),Jc(n.e.a,c))}function sRn(n,e){var t,i,r,c,o,f,h;return i=y.Math.abs(qE(n.b).a-qE(e.b).a),f=y.Math.abs(qE(n.b).b-qE(e.b).b),r=0,h=0,t=1,o=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)),o=1-h/f),c=y.Math.min(t,o),(1-c)*y.Math.sqrt(i*i+f*f)}function aye(n){var e,t,i,r;for(mL(n,n.e,n.f,(Id(),Rl),!0,n.c,n.i),mL(n,n.e,n.f,Rl,!1,n.c,n.i),mL(n,n.e,n.f,Lg,!0,n.c,n.i),mL(n,n.e,n.f,Lg,!1,n.c,n.i),bye(n,n.c,n.e,n.f,n.i),i=new Pi(n.i,0);i.b=65;t--)Mf[t]=t-65<<24>>24;for(i=122;i>=97;i--)Mf[i]=i-97+26<<24>>24;for(r=57;r>=48;r--)Mf[r]=r-48+52<<24>>24;for(Mf[43]=62,Mf[47]=63,c=0;c<=25;c++)R1[c]=65+c&Ut;for(o=26,h=0;o<=51;++o,h++)R1[o]=97+h&Ut;for(n=52,f=0;n<=61;++n,f++)R1[n]=48+f&Ut;R1[62]=43,R1[63]=47}function dye(n,e){var t,i,r,c,o,f,h,l,a,d,g,p;if(n.dc())return new Li;for(l=0,d=0,r=n.Kc();r.Ob();)i=u(r.Pb(),37),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)*K(Y(k(u(n.Kc().Pb(),37),(nn(),zS))))),g=0,p=0,h=0,t=e,f=n.Kc();f.Ob();)o=u(f.Pb(),37),a=o.f,g+a.a>l&&(g=0,p+=h+e,h=0),M6(o,g,p),t=y.Math.max(t,g+a.a),h=y.Math.max(h,a.b),g+=a.a+e;return new fn(t+e,p+h+e)}function bye(n,e,t,i,r){var c,o,f,h,l,a,d;for(o=new E(e);o.ac)return J(),Vn;break;case 4:case 3:if(h<0)return J(),Kn;if(h+n.f>r)return J(),ae}return o=(f+n.g/2)/c,t=(h+n.f/2)/r,o+t<=1&&o-t<=0?(J(),Gn):o+t>=1&&o-t>=0?(J(),Vn):t<.5?(J(),Kn):(J(),ae)}function wye(n,e,t,i,r){var c,o;if(c=qi(ui(e[0],fr),ui(i[0],fr)),n[0]=ge(c),c=cl(c,32),t>=r){for(o=1;o0&&(r.b[o++]=0,r.b[o++]=c.b[0]-1),e=1;e0&&(II(h,h.d-r.d),r.c==(No(),Bl)&<e(h,h.a-r.d),h.d<=0&&h.i>0&&Kt(e,h,e.c.b,e.c)));for(c=new E(n.f);c.a0&&(ej(f,f.i-r.d),r.c==(No(),Bl)&&ate(f,f.b-r.d),f.i<=0&&f.d>0&&Kt(t,f,t.c.b,t.c)))}function gye(n,e,t){var i,r,c,o,f,h,l,a;for(le(t,"Processor compute fanout",1),Cu(n.b),Cu(n.a),f=null,c=_e(e.b,0);!f&&c.b!=c.d.c;)l=u(Re(c),86),on(sn(k(l,(cc(),iw))))&&(f=l);for(h=new Tt,Kt(h,f,h.c.b,h.c),v_n(n,h),a=_e(e.b,0);a.b!=a.d.c;)l=u(Re(a),86),o=Ce(k(l,(cc(),Um))),r=vc(n.b,o)!=null?u(vc(n.b,o),19).a:0,H(l,vP,Q(r)),i=1+(vc(n.a,o)!=null?u(vc(n.a,o),19).a:0),H(l,QJn,Q(i));ce(t)}function pye(n,e,t,i,r){var c,o,f,h,l,a,d,g,p,v;for(g=nve(n,t),h=0;h0),i.a.Xb(i.c=--i.b),d>g+h&&Wu(i);for(o=new E(p);o.a0),i.a.Xb(i.c=--i.b)}}function vye(){Je();var n,e,t,i,r,c;if(EH)return EH;for(n=new es(4),Ab(n,El(eR,!0)),F6(n,El("M",!0)),F6(n,El("C",!0)),c=new es(4),i=0;i<11;i++)yc(c,i,i);return e=new es(4),Ab(e,El("M",!0)),yc(e,4448,4607),yc(e,65438,65439),r=new v5(2),Oa(r,n),Oa(r,k9),t=new v5(2),t.$l(LE(c,El("L",!0))),t.$l(e),t=new ib(3,t),t=new PW(r,t),EH=t,EH}function mye(n){var e,t;if(e=Ce(hn(n,(Xe(),Zm))),!EOn(e,n)&&!wa(n,yv)&&((!n.a&&(n.a=new V(Ot,n,10,11)),n.a).i!=0||on(sn(hn(n,vy)))))if(e==null||mb(e).length==0){if(!EOn(Jn,n))throw t=De(De(new Yu("Unable to load default layout algorithm "),Jn)," for unconfigured node "),CM(n,t),T(new pw(t.a))}else throw t=De(De(new Yu("Layout algorithm '"),e),"' not found for "),CM(n,t),T(new pw(t.a))}function tL(n){var e,t,i,r,c,o,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,o=n.a,h=0,a=o.length;h0&&(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),BE(n.a[1],t.c+e.b+i[0]-(i[1]-d)/2,i[1]);for(c=n.a,f=0,l=c.length;f0?(n.n.c.length-1)*n.i:0,i=new E(n.n);i.a1)for(i=_e(r,0);i.b!=i.d.c;)for(t=u(Re(i),231),c=0,h=new E(t.e);h.a0&&(e[0]+=n.c,d-=e[0]),e[2]>0&&(d-=e[2]+n.c),e[1]=y.Math.max(e[1],d),RE(n.a[1],i.d+t.d+e[0]-(e[1]-d)/2,e[1]);else for(v=i.d+t.d,p=i.a-t.d-t.a,o=n.a,h=0,a=o.length;h=0&&c!=t))throw T(new Hn(yk));for(r=0,h=0;h0||zd(r.b.d,n.b.d+n.b.a)==0&&i.b<0||zd(r.b.d+r.b.a,n.b.d)==0&&i.b>0){f=0;break}}else f=y.Math.min(f,lLn(n,r,i));f=y.Math.min(f,lRn(n,c,f,i))}return f}function z7(n,e){var t,i,r,c,o,f,h;if(n.b<2)throw T(new Hn("The vector chain must contain at least a source and a target point."));for(r=(ne(n.b!=0),u(n.a.a.c,8)),uE(e,r.a,r.b),h=new b2((!e.a&&(e.a=new Yt(io,e,5)),e.a)),o=_e(n,1);o.aK(nf(o.g,o.d[0]).a)?(ne(h.b>0),h.a.Xb(h.c=--h.b),X0(h,o),r=!0):f.e&&f.e.gc()>0&&(c=(!f.e&&(f.e=new X),f.e).Mc(e),l=(!f.e&&(f.e=new X),f.e).Mc(t),(c||l)&&((!f.e&&(f.e=new X),f.e).Fc(o),++o.c));r||(i.c[i.c.length]=o)}function bRn(n){var e,t,i;if(Cw(u(k(n,(nn(),Lt)),98)))for(t=new E(n.j);t.a>>0,"0"+e.toString(16)),i="\\x"+Zu(t,t.length-2,t.length)):n>=Yi?(t=(e=n>>>0,"0"+e.toString(16)),i="\\v"+Zu(t,t.length-6,t.length)):i=""+String.fromCharCode(n&Ut)}return i}function rL(n,e){var t,i,r,c,o,f,h,l,a,d;if(o=n.e,h=e.e,h==0)return n;if(o==0)return e.e==0?e:new Pw(-e.e,e.d,e.a);if(c=n.d,f=e.d,c+f==2)return t=ui(n.a[0],fr),i=ui(e.a[0],fr),o<0&&(t=P3(t)),h<0&&(i=P3(i)),m7(vl(t,i));if(r=c!=f?c>f?1:-1:YV(n.a,e.a,c),r==-1)d=-h,a=o==h?M$(e.a,f,n.a,c):S$(e.a,f,n.a,c);else if(d=o,o==h){if(r==0)return jl(),W4;a=M$(n.a,c,e.a,f)}else a=S$(n.a,c,e.a,f);return l=new Pw(d,a.length,a),K5(l),l}function jZ(n){var e,t,i,r,c,o;for(this.e=new X,this.a=new X,t=n.b-1;t<3;t++)s3(n,0,u(qo(n,0),8));if(n.b<4)throw T(new Hn("At (least dimension + 1) control points are necessary!"));for(this.b=3,this.d=!0,this.c=!1,l9e(this,n.b+this.b-1),o=new X,c=new E(this.e),e=0;e=e.o&&t.f<=e.f||e.a*.5<=t.f&&e.a*1.5>=t.f){if(o=u(un(e.n,e.n.c.length-1),211),o.e+o.d+t.g+r<=i&&(c=u(un(e.n,e.n.c.length-1),211),c.f-n.f+t.f<=n.b||n.a.c.length==1))return yQ(e,t),!0;if(e.s+t.g<=i&&(e.t+e.d+t.f+r<=n.b||n.a.c.length==1))return W(e.b,t),f=u(un(e.n,e.n.c.length-1),211),W(e.n,new lC(e.s,f.f+f.a+e.i,e.i)),iJ(u(un(e.n,e.n.c.length-1),211),t),oRn(e,t),!0}return!1}function gRn(n,e,t){var i,r,c,o;return n.ej()?(r=null,c=n.fj(),i=n.Zi(1,o=B$(n,e,t),t,e,c),n.bj()&&!(n.ni()&&o!=null?tt(o,t):B(o)===B(t))?(o!=null&&(r=n.dj(o,r)),r=n.cj(t,r),n.ij()&&(r=n.lj(o,t,r)),r?(r.Ei(i),r.Fi()):n.$i(i)):(n.ij()&&(r=n.lj(o,t,r)),r?(r.Ei(i),r.Fi()):n.$i(i)),o):(o=B$(n,e,t),n.bj()&&!(n.ni()&&o!=null?tt(o,t):B(o)===B(t))&&(r=null,o!=null&&(r=n.dj(o,null)),r=n.cj(t,r),r&&r.Fi()),o)}function S6(n,e){var t,i,r,c,o,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()))),o=n.q.getTime(),n.q.setTime(o+36e5),n.q.getHours()!=e&&n.q.setTime(o)}function Sye(n,e){var t,i,r,c,o;if(le(e,"Path-Like Graph Wrapping",1),n.b.c.length==0){ce(e);return}if(r=new PY(n),o=(r.i==null&&(r.i=jV(r,new HH)),K(r.i)*r.f),t=o/(r.i==null&&(r.i=jV(r,new HH)),K(r.i)),r.b>t){ce(e);return}switch(u(k(n,(nn(),W_)),337).g){case 2:c=new GH;break;case 0:c=new KH;break;default:c=new zH}if(i=c.Vf(n,r),!c.Wf())switch(u(k(n,cP),338).g){case 2:i=aLn(r,i);break;case 1:i=lxn(r,i)}Tje(n,r,i),ce(e)}function Pye(n,e){var t,i,r,c;if(dle(n.d,n.e),n.c.a.$b(),K(Y(k(e.j,(nn(),XS))))!=0||K(Y(k(e.j,XS)))!=0)for(t=D4,B(k(e.j,Ll))!==B((Rh(),Nl))&&H(e.j,(G(),v0),(qn(),!0)),c=u(k(e.j,xm),19).a,r=0;rr&&++l,W(o,(Ln(f+l,e.c.length),u(e.c[f+l],19))),h+=(Ln(f+l,e.c.length),u(e.c[f+l],19)).a-i,++t;t1&&(h>bu(f)*zu(f)/2||o.b==0)&&(d=new zC(g),a=bu(f)/zu(f),l=kL(d,e,new i2,t,i,r,a),st(Lo(d.e),l),f=d,p.c[p.c.length]=d,h=0,g.c=F(Zn,rn,1,0,5,1)));return Zt(p,g),p}function Dye(n,e,t,i){var r,c,o,f,h,l,a,d,g,p,v,m;if(t.mh(e)&&(a=(p=e,p?u(i,49).xh(p):null),a))if(m=t.bh(e,n.a),v=e.t,v>1||v==-1)if(d=u(m,69),g=u(a,69),d.dc())g.$b();else for(o=!!ir(e),c=0,f=n.a?d.Kc():d.Zh();f.Ob();)l=u(f.Pb(),56),r=u(xd(n,l),56),r?(o?(h=g.Xc(r),h==-1?g.Xh(c,r):c!=h&&g.ji(c,r)):g.Xh(c,r),++c):n.b&&!o&&(g.Xh(c,l),++c);else m==null?a.Wb(null):(r=xd(n,m),r==null?n.b&&!ir(e)&&a.Wb(m):a.Wb(r))}function $ye(n,e){var t,i,r,c,o,f,h,l;for(t=new $dn,r=new re(ue(Lr(e).a.Kc(),new An));Se(r);)if(i=u(ve(r),17),!Xi(i)&&(f=i.c.i,RJ(f,oS))){if(l=nZ(n,f,oS,sS),l==-1)continue;t.b=y.Math.max(t.b,l),!t.a&&(t.a=new X),W(t.a,f)}for(o=new re(ue(ei(e).a.Kc(),new An));Se(o);)if(c=u(ve(o),17),!Xi(c)&&(h=c.d.i,RJ(h,sS))){if(l=nZ(n,h,sS,oS),l==-1)continue;t.d=y.Math.max(t.d,l),!t.c&&(t.c=new X),W(t.c,h)}return t}function pRn(n){a4();var e,t,i,r;if(e=Gt(n),n1e6)throw T(new bj("power of ten too big"));if(n<=nt)return P2(L7(fp[1],e),e);for(i=L7(fp[1],nt),r=i,t=tu(n-nt),e=Gt(n%nt);fc(t,nt)>0;)r=Fw(r,i),t=vl(t,nt);for(r=Fw(r,L7(fp[1],e)),r=P2(r,nt),t=tu(n-nt);fc(t,nt)>0;)r=P2(r,nt),t=vl(t,nt);return r=P2(r,e),r}function Fye(n,e){var t,i,r,c,o,f,h,l,a;for(le(e,"Hierarchical port dummy size processing",1),h=new X,a=new X,i=K(Y(k(n,(nn(),Dg)))),t=i*2,c=new E(n.b);c.al&&i>l)a=f,l=K(e.p[f.p])+K(e.d[f.p])+f.o.b+f.d.a;else{r=!1,t.n&&sa(t,"bk node placement breaks on "+f+" which should have been after "+a);break}if(!r)break}return t.n&&sa(t,e+" is feasible: "+r),r}function Rye(n,e,t,i){var r,c,o,f,h,l,a;for(f=-1,a=new E(n);a.a=C&&n.e[h.p]>v*n.b||O>=t*C)&&(g.c[g.c.length]=f,f=new X,Vi(o,c),c.a.$b(),l-=a,p=y.Math.max(p,l*n.b+m),l+=O,$=O,O=0,a=0,m=0);return new Si(p,g)}function qye(n){var e,t,i,r,c,o,f,h,l,a,d,g,p;for(t=(l=new Mh(n.c.b).a.vc().Kc(),new L0(l));t.a.Ob();)e=(f=u(t.a.Pb(),42),u(f.dd(),149)),r=e.a,r==null&&(r=""),i=wue(n.c,r),!i&&r.length==0&&(i=gge(n)),i&&!db(i.c,e,!1)&&Ke(i.c,e);for(o=_e(n.a,0);o.b!=o.d.c;)c=u(Re(o),478),a=j$(n.c,c.a),p=j$(n.c,c.b),a&&p&&Ke(a.c,new Si(p,c.c));for(_s(n.a),g=_e(n.b,0);g.b!=g.d.c;)d=u(Re(g),478),e=bue(n.c,d.a),h=j$(n.c,d.b),e&&h&&rre(e,h,d.c);_s(n.b)}function Gye(n,e,t){var i,r,c,o,f,h,l,a,d,g,p;c=new M9(n),o=new NFn,r=($8(o.g),$8(o.j),Cu(o.b),$8(o.d),$8(o.i),Cu(o.k),Cu(o.c),Cu(o.e),p=kLn(o,c,null),fNn(o,c),p),e&&(l=new M9(e),f=nje(l),JJ(r,A(M(xfn,1),rn,527,0,[f]))),g=!1,d=!1,t&&(l=new M9(t),kA in l.a&&(g=Dh(l,kA).ge().a),Dqn in l.a&&(d=Dh(l,Dqn).ge().a)),a=e8n(IIn(new zp,g),d),N5e(new Qgn,r,a),kA in c.a&&Ro(c,kA,null),(g||d)&&(h=new r2,dRn(a,h,g,d),Ro(c,kA,h)),i=new omn(o),Owe(new kz(r),i)}function zye(n,e,t){var i,r,c,o,f,h,l,a,d;for(o=new HFn,l=A(M(be,1),Le,25,15,[0]),r=-1,c=0,i=0,h=0;h0){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(!k_n(e,l,a,f,o)){h=r-1,l[0]=c;continue}}else if(r=-1,!k_n(e,l,a,0,o))return 0}else{if(r=-1,Di(a.c,0)==32){if(d=l[0],KPn(e,l),l[0]>d)continue}else if(T1e(e,a.c,l[0])){l[0]+=a.c.length;continue}return 0}return TCe(o,t)?l[0]:0}function I6(n){var e,t,i,r,c,o,f,h;if(!n.f){if(h=new YH,f=new YH,e=b9,o=e.a.zc(n,e),o==null){for(c=new ie(Ar(n));c.e!=c.i.gc();)r=u(oe(c),26),Dt(h,I6(r));e.a.Bc(n)!=null,e.a.gc()==0}for(i=(!n.s&&(n.s=new V(ou,n,21,17)),new ie(n.s));i.e!=i.i.gc();)t=u(oe(i),170),I(t,99)&&me(f,u(t,18));lb(f),n.r=new $En(n,(u(D(R((ol(),Nn).o),6),18),f.i),f.g),Dt(h,n.r),lb(h),n.f=new Ew((u(D(R(Nn.o),5),18),h.i),h.g),Ou(n).b&=-3}return n.f}function Uye(n){var e,t,i,r,c,o,f,h,l,a,d,g,p,v;for(o=n.o,i=F(be,Le,25,o,15,1),r=F(be,Le,25,o,15,1),t=n.p,e=F(be,Le,25,t,15,1),c=F(be,Le,25,t,15,1),l=0;l=0&&!zw(n,a,d);)--d;r[a]=d}for(p=0;p=0&&!zw(n,f,v);)--f;c[v]=f}for(h=0;he[g]&&gi[h]&&wM(n,h,g,!1,!0)}function EZ(n){var e,t,i,r,c,o,f,h;t=on(sn(k(n,(Go(),VUn)))),c=n.a.c.d,f=n.a.d.d,t?(o=Of(yi(new fn(f.a,f.b),c),.5),h=Of(Qr(n.e),.5),e=yi(st(new fn(c.a,c.b),o),h),Zz(n.d,e)):(r=K(Y(k(n.a,iWn))),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 jc(n,e){var t,i,r,c,o,f,h;if(n==null)return null;if(c=n.length,c==0)return"";for(h=F(Ls,Rf,25,c,15,1),RX(0,c,n.length),RX(0,c,h.length),RCn(n,0,c,h,0),t=null,f=e,r=0,o=0;r0?Zu(t.a,0,c-1):""):n.substr(0,c-1):t?t.a:n}function kRn(n){wd(n,new Ia(ld(od(hd(fd(new Zl,La),"ELK DisCo"),"Layouter for arranging unconnected subgraphs. The subgraphs themselves are, by default, not laid out."),new han))),Z(n,La,vN,cn(Trn)),Z(n,La,mN,cn(IR)),Z(n,La,ep,cn(FUn)),Z(n,La,u0,cn(Crn)),Z(n,La,onn,cn(BUn)),Z(n,La,fnn,cn(NUn)),Z(n,La,snn,cn(RUn)),Z(n,La,hnn,cn(LUn)),Z(n,La,pnn,cn(xUn)),Z(n,La,vnn,cn(PR)),Z(n,La,mnn,cn(Ern)),Z(n,La,knn,cn(nS))}function CZ(n,e,t,i){var r,c,o,f,h,l,a,d,g;if(c=new qh(n),ea(c,(Qn(),Tc)),H(c,(nn(),Lt),(Mi(),Ac)),r=0,e){for(o=new wc,H(o,(G(),rt),e),H(c,rt,e.i),si(o,(J(),Gn)),Hr(o,c),g=Lf(e.e),l=g,a=0,d=l.length;a0)if(t-=i.length-e,t>=0){for(r.a+="0.";t>Ga.length;t-=Ga.length)YEn(r,Ga);Fjn(r,Ga,Gt(t)),De(r,i.substr(e))}else t=e-t,De(r,Zu(i,e,Gt(t))),r.a+=".",De(r,r8(i,Gt(t)));else{for(De(r,i.substr(e));t<-Ga.length;t+=Ga.length)YEn(r,Ga);Fjn(r,Ga,Gt(-t))}return r.a}function TZ(n,e,t,i){var r,c,o,f,h,l,a,d,g;return h=yi(new fn(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=st(new fn(t.a,t.b),Of(new fn(i.a,i.b),.5)),c=al(n,r),o=al(st(new fn(n.a,n.b),e),r),f=y.Math.sqrt(i.a*i.a+i.b*i.b)*.5,c=0&&d<=1&&g>=0&&g<=1?st(new fn(n.a,n.b),Of(new fn(e.a,e.b),d)):null}function Xye(n,e,t){var i,r,c,o,f;if(i=u(k(n,(nn(),$_)),21),t.a>e.a&&(i.Hc((vb(),dy))?n.c.a+=(t.a-e.a)/2:i.Hc(by)&&(n.c.a+=t.a-e.a)),t.b>e.b&&(i.Hc((vb(),gy))?n.c.b+=(t.b-e.b)/2:i.Hc(wy)&&(n.c.b+=t.b-e.b)),u(k(n,(G(),Mc)),21).Hc((or(),$s))&&(t.a>e.a||t.b>e.b))for(f=new E(n.a);f.ae.a&&(i.Hc((vb(),dy))?n.c.a+=(t.a-e.a)/2:i.Hc(by)&&(n.c.a+=t.a-e.a)),t.b>e.b&&(i.Hc((vb(),gy))?n.c.b+=(t.b-e.b)/2:i.Hc(wy)&&(n.c.b+=t.b-e.b)),u(k(n,(G(),Mc)),21).Hc((or(),$s))&&(t.a>e.a||t.b>e.b))for(o=new E(n.a);o.ae&&(r=0,c+=a.b+t,d.c[d.c.length]=a,a=new oX(c,t),i=new lF(0,a.f,a,t),XC(a,i),r=0),i.b.c.length==0||h.f>=i.o&&h.f<=i.f||i.a*.5<=h.f&&i.a*1.5>=h.f?yQ(i,h):(o=new lF(i.s+i.r+t,a.f,a,t),XC(a,o),yQ(o,h)),r=h.i+h.g;return d.c[d.c.length]=a,d}function ig(n){var e,t,i,r,c,o,f,h;if(!n.a){if(n.o=null,h=new Smn(n),e=new J2n,t=b9,f=t.a.zc(n,t),f==null){for(o=new ie(Ar(n));o.e!=o.i.gc();)c=u(oe(o),26),Dt(h,ig(c));t.a.Bc(n)!=null,t.a.gc()==0}for(r=(!n.s&&(n.s=new V(ou,n,21,17)),new ie(n.s));r.e!=r.i.gc();)i=u(oe(r),170),I(i,322)&&me(e,u(i,34));lb(e),n.k=new DEn(n,(u(D(R((ol(),Nn).o),7),18),e.i),e.g),Dt(h,n.k),lb(h),n.a=new Ew((u(D(R(Nn.o),4),18),h.i),h.g),Ou(n).b&=-2}return n.a}function Yye(n,e,t,i,r,c,o){var f,h,l,a,d,g;return d=!1,h=SNn(t.q,e.f+e.b-t.q.f),g=r-(t.q.e+h-o),g=(Ln(c,n.c.length),u(n.c[c],200)).e,a=(f=O6(i,g,!1),f.a),a>e.b&&!l)?!1:((l||a<=e.b)&&(l&&a>e.b?(t.d=a,B8(t,Dxn(t,a))):(JFn(t.q,h),t.c=!0),B8(i,r-(t.s+t.r)),k7(i,t.q.e+t.q.d,e.f),XC(e,i),n.c.length>c&&(T7((Ln(c,n.c.length),u(n.c[c],200)),i),(Ln(c,n.c.length),u(n.c[c],200)).a.c.length==0&&h1(n,c)),d=!0),d)}function MZ(n,e,t,i){var r,c,o,f,h,l,a;if(a=Kc(n.e.Tg(),e),r=0,c=u(n.g,119),h=null,er(),u(e,66).Oj()){for(f=0;fn.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 nje(n){var e,t,i,r,c,o,f,h;for(c=new ZMn,Bre(c,(L2(),MZn)),i=(r=Z$(n,F(tn,q,2,0,6,1)),new $v(new Hu(new iO(n,r).b)));i.b0?n.i:0)>e&&h>0&&(c=0,o+=h+n.i,r=y.Math.max(r,g),i+=h+n.i,h=0,g=0,t&&(++d,W(n.n,new lC(n.s,o,n.i))),f=0),g+=l.g+(f>0?n.i:0),h=y.Math.max(h,l.f),t&&iJ(u(un(n.n,d),211),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,sJ(n.j)),new ys(n.s,n.t,r,i)}function gc(n,e,t,i,r){nh();var c,o,f,h,l,a,d,g,p;if(MW(n,"src"),MW(t,"dest"),g=$u(n),h=$u(t),VU((g.i&4)!=0,"srcType is not an array"),VU((h.i&4)!=0,"destType is not an array"),d=g.c,o=h.c,VU(d.i&1?d==o:(o.i&1)==0,"Array types don't match"),p=n.length,l=t.length,e<0||i<0||r<0||e+r>p||i+r>l)throw T(new Kq);if(!(d.i&1)&&g!=h)if(a=pa(n),c=pa(t),B(n)===B(t)&&ei;)St(c,f,a[--e]);else for(f=i+r;i0&&aY(n,e,t,i,r,!0)}function oL(){oL=N,Ezn=A(M(be,1),Le,25,15,[Bi,1162261467,L6,1220703125,362797056,1977326743,L6,387420489,$M,214358881,429981696,815730721,1475789056,170859375,268435456,410338673,612220032,893871739,128e7,1801088541,113379904,148035889,191102976,244140625,308915776,387420489,481890304,594823321,729e6,887503681,L6,1291467969,1544804416,1838265625,60466176]),Czn=A(M(be,1),Le,25,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 eje(n){var e,t,i,r,c,o,f,h;for(r=new E(n.b);r.a=n.b.length?(c[r++]=o.b[i++],c[r++]=o.b[i++]):i>=o.b.length?(c[r++]=n.b[t++],c[r++]=n.b[t++]):o.b[i]0?n.i:0)),++e;for(d2e(n.n,h),n.d=t,n.r=i,n.g=0,n.f=0,n.e=0,n.o=Ft,n.p=Ft,c=new E(n.b);c.a0&&(r=(!n.n&&(n.n=new V(Rr,n,1,7)),u(D(n.n,0),137)).a,!r||De(De((e.a+=' "',e),r),'"'))),t=(!n.b&&(n.b=new Fn(he,n,4,7)),!(n.b.i<=1&&(!n.c&&(n.c=new Fn(he,n,5,8)),n.c.i<=1))),t?e.a+=" [":e.a+=" ",De(e,Lz(new YI,new ie(n.b))),t&&(e.a+="]"),e.a+=TN,t&&(e.a+="["),De(e,Lz(new YI,new ie(n.c))),t&&(e.a+="]"),e.a)}function fL(n,e){var t,i,r,c,o,f,h;if(n.a){if(f=n.a.ne(),h=null,f!=null?e.a+=""+f:(o=n.a.Dj(),o!=null&&(c=If(o,iu(91)),c!=-1?(h=o.substr(c),e.a+=""+Zu(o==null?ru:(_n(o),o),0,c)):e.a+=""+o)),n.d&&n.d.i!=0){for(r=!0,e.a+="<",i=new ie(n.d);i.e!=i.i.gc();)t=u(oe(i),87),r?r=!1:e.a+=Ji,fL(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 ",fL(n.b,e)):n.f&&(e.a+=" extends ",fL(n.f,e)))}function rje(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,x,_,U,en,ln,wn,zn;for(_=n.c,U=e.c,t=xr(_.a,n,0),i=xr(U.a,e,0),O=u(Ud(n,(ur(),Su)).Kc().Pb(),11),wn=u(Ud(n,xc).Kc().Pb(),11),x=u(Ud(e,Su).Kc().Pb(),11),zn=u(Ud(e,xc).Kc().Pb(),11),S=Lf(O.e),en=Lf(wn.g),$=Lf(x.e),ln=Lf(zn.g),pb(n,i,U),o=$,a=0,v=o.length;aa?new aa((No(),tw),t,e,l-a):l>0&&a>0&&(new aa((No(),tw),e,t,0),new aa(tw,t,e,0))),o)}function ERn(n,e){var t,i,r,c,o,f;for(o=new Ea(new ta(n.f.b).a);o.b;){if(c=Nd(o),r=u(c.cd(),594),e==1){if(r.gf()!=(sr(),Yh)&&r.gf()!=Jh)continue}else if(r.gf()!=(sr(),Zs)&&r.gf()!=Ao)continue;switch(i=u(u(c.dd(),46).b,81),f=u(u(c.dd(),46).a,189),t=f.c,r.gf().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 cje(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m;for(f=F(be,Le,25,e.b.c.length,15,1),l=F(zR,z,267,e.b.c.length,0,1),h=F(mh,E1,10,e.b.c.length,0,1),d=n.a,g=0,p=d.length;g0&&h[i]&&(v=Mw(n.b,h[i],r)),m=y.Math.max(m,r.c.c.b+v);for(c=new E(a.e);c.a1)throw T(new Hn(Mk));h||(c=sh(e,i.Kc().Pb()),o.Fc(c))}return NV(n,iY(n,e,t),o)}function oje(n,e){var t,i,r,c;for(z0e(e.b.j),Rt(Vc(new $n(null,new xn(e.d,16)),new iwn),new rwn),c=new E(e.d);c.an.o.b||(t=zr(n,Vn),f=e.d+e.a+(t.gc()-1)*o,f>n.o.b)))}function aL(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v;if(o=n.e,h=e.e,o==0)return e;if(h==0)return n;if(c=n.d,f=e.d,c+f==2)return t=ui(n.a[0],fr),i=ui(e.a[0],fr),o==h?(a=qi(t,i),v=ge(a),p=ge(J0(a,32)),p==0?new l1(o,v):new Pw(o,2,A(M(be,1),Le,25,15,[v,p]))):m7(o<0?vl(i,t):vl(t,i));if(o==h)g=o,d=c>=f?S$(n.a,c,e.a,f):S$(e.a,f,n.a,c);else{if(r=c!=f?c>f?1:-1:YV(n.a,e.a,c),r==0)return jl(),W4;r==1?(g=o,d=M$(n.a,c,e.a,f)):(g=h,d=M$(e.a,f,n.a,c))}return l=new Pw(g,d.length,d),K5(l),l}function dL(n,e,t,i,r,c,o){var f,h,l,a,d,g,p;return d=on(sn(k(e,(nn(),ksn)))),g=null,c==(ur(),Su)&&i.c.i==t?g=i.c:c==xc&&i.d.i==t&&(g=i.d),l=o,!l||!d||g?(a=(J(),Xr),g?a=g.j:Cw(u(k(t,Lt),98))&&(a=c==Su?Gn:Vn),h=aje(n,e,t,c,a,i),f=C$((Gi(t),i)),c==Su?(Hi(f,u(un(h.j,0),11)),Ci(f,r)):(Hi(f,r),Ci(f,u(un(h.j,0),11))),l=new HDn(i,f,h,u(k(h,(G(),rt)),11),c,!g)):(W(l.e,i),p=y.Math.max(K(Y(k(l.d,S1))),K(Y(k(i,S1)))),H(l.d,S1,p)),Tn(n.a,i,new EE(l.d,e,c)),l}function jM(n,e){var t,i,r,c,o,f,h,l,a,d;if(a=null,n.d&&(a=u(vc(n.d,e),138)),!a){if(c=n.a.Mh(),d=c.i,!n.d||Xv(n.d)!=d){for(h=new we,n.d&&Z5(h,n.d),l=h.f.c+h.g.c,f=l;f0?(p=(v-1)*t,f&&(p+=i),a&&(p+=i),p=n.b[r+1])r+=2;else if(t0)for(i=new du(u(ct(n.a,c),21)),Pn(),wi(i,new Iq(e)),r=new Pi(c.b,0);r.b_)?(h=2,o=nt):h==0?(h=1,o=en):(h=0,o=en)):(p=en>=o||o-en0?1:pd(isNaN(i),isNaN(0)))>=0^(mo(zf),(y.Math.abs(f)<=zf||f==0||isNaN(f)&&isNaN(0)?0:f<0?-1:f>0?1:pd(isNaN(f),isNaN(0)))>=0)?y.Math.max(f,i):(mo(zf),(y.Math.abs(i)<=zf||i==0||isNaN(i)&&isNaN(0)?0:i<0?-1:i>0?1:pd(isNaN(i),isNaN(0)))>0?y.Math.sqrt(f*f+i*i):-y.Math.sqrt(f*f+i*i))}function Oa(n,e){var t,i,r,c,o,f;if(e){if(!n.a&&(n.a=new lj),n.e==2){hj(n.a,e);return}if(e.e==1){for(r=0;r=Yi?dr(t,kQ(i)):w3(t,i&Ut),o=new e$(10,null,0),Zfe(n.a,o,f-1)):(t=(o.bm().length+c,new zv),dr(t,o.bm())),e.e==0?(i=e._l(),i>=Yi?dr(t,kQ(i)):w3(t,i&Ut)):dr(t,e.bm()),u(o,521).b=t.a}}function ORn(n){var e,t,i,r,c;return n.g!=null?n.g:n.a<32?(n.g=NCe(tu(n.f),Gt(n.e)),n.g):(r=jL((!n.c&&(n.c=h7(n.f)),n.c),0),n.e==0?r:(e=(!n.c&&(n.c=h7(n.f)),n.c).e<0?2:1,t=r.length,i=-n.e+t-e,c=new V1,c.a+=""+r,n.e>0&&i>=-6?i>=0?P8(c,t-Gt(n.e),String.fromCharCode(46)):(c.a=Zu(c.a,0,e-1)+"0."+r8(c.a,e-1),P8(c,e+1,Hs(Ga,0,-Gt(i)-1))):(t-e>=1&&(P8(c,e,String.fromCharCode(46)),++t),P8(c,t,String.fromCharCode(69)),i>0&&P8(c,++t,String.fromCharCode(43)),P8(c,++t,""+O5(tu(i)))),n.g=c.a,n.g))}function Tje(n,e,t){var i,r,c,o,f,h,l,a,d,g,p,v,m,C;if(!t.dc()){for(f=0,g=0,i=t.Kc(),v=u(i.Pb(),19).a;f1&&(h=l.mg(h,n.a,f));return h.c.length==1?u(un(h,h.c.length-1),220):h.c.length==2?bje((Ln(0,h.c.length),u(h.c[0],220)),(Ln(1,h.c.length),u(h.c[1],220)),o,c):null}function DRn(n){var e,t,i,r,c,o;for(Zc(n.a,new can),t=new E(n.a);t.a=y.Math.abs(i.b)?(i.b=0,c.d+c.a>o.d&&c.do.c&&c.c0){if(e=new az(n.i,n.g),t=n.i,c=t<100?null:new Q1(t),n.ij())for(i=0;i0){for(f=n.g,l=n.i,U5(n),c=l<100?null:new Q1(l),i=0;i>13|(n.m&15)<<9,r=n.m>>4&8191,c=n.m>>17|(n.h&255)<<5,o=(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,ln=t*f,wn=i*f,zn=r*f,Wn=c*f,se=o*f,h!=0&&(wn+=t*h,zn+=i*h,Wn+=r*h,se+=c*h),l!=0&&(zn+=t*l,Wn+=i*l,se+=r*l),a!=0&&(Wn+=t*a,se+=i*a),d!=0&&(se+=t*d),p=ln&Nu,v=(wn&511)<<13,g=p+v,C=ln>>22,S=wn>>9,$=(zn&262143)<<4,O=(Wn&31)<<17,m=C+S+$+O,_=zn>>18,U=Wn>>5,en=(se&4095)<<8,x=_+U+en,m+=g>>22,g&=Nu,x+=m>>22,m&=Nu,x&=Wh,Bc(g,m,x)}function $Rn(n){var e,t,i,r,c,o,f;if(f=u(un(n.j,0),11),f.g.c.length!=0&&f.e.c.length!=0)throw T(new $r("Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges."));if(f.g.c.length!=0){for(c=Ft,t=new E(f.g);t.a4)if(n.wj(e)){if(n.rk()){if(r=u(e,49),i=r.Ug(),h=i==n.e&&(n.Dk()?r.Og(r.Vg(),n.zk())==n.Ak():-1-r.Vg()==n.aj()),n.Ek()&&!h&&!i&&r.Zg()){for(c=0;c0&&(l=n.n.a/c);break;case 2:case 4:r=n.i.o.b,r>0&&(l=n.n.b/r)}H(n,(G(),k0),l)}if(h=n.o,o=n.a,i)o.a=i.a,o.b=i.b,n.d=!0;else if(e!=Ef&&e!=ql&&f!=Xr)switch(f.g){case 1:o.a=h.a/2;break;case 2:o.a=h.a,o.b=h.b/2;break;case 3:o.a=h.a/2,o.b=h.b;break;case 4:o.b=h.b/2}else o.a=h.a/2,o.b=h.b/2}function $6(n){var e,t,i,r,c,o,f,h,l,a;if(n.ej())if(a=n.Vi(),h=n.fj(),a>0)if(e=new CV(n.Gi()),t=a,c=t<100?null:new Q1(t),h8(n,t,e.g),r=t==1?n.Zi(4,D(e,0),null,0,h):n.Zi(6,e,null,-1,h),n.bj()){for(i=new ie(e);i.e!=i.i.gc();)c=n.dj(oe(i),c);c?(c.Ei(r),c.Fi()):n.$i(r)}else c?(c.Ei(r),c.Fi()):n.$i(r);else h8(n,n.Vi(),n.Wi()),n.$i(n.Zi(6,(Pn(),cr),null,-1,h));else if(n.bj())if(a=n.Vi(),a>0){for(f=n.Wi(),l=a,h8(n,a,f),c=l<100?null:new Q1(l),i=0;in.d[o.p]&&(t+=jX(n.b,c)*u(h.b,19).a,ll(n.a,Q(c)));for(;!Hv(n.a);)ZX(n.b,u(y2(n.a),19).a)}return t}function Nje(n,e,t,i){var r,c,o,f,h,l,a,d,g,p,v,m,C;for(d=new kr(u(hn(n,(nM(),qfn)),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=Y(hn(n,_fn)),(r==null||(_n(r),r<=0))&&(r=1.3),f=new X,v=new ie((!n.a&&(n.a=new V(Ot,n,10,11)),n.a));v.e!=v.i.gc();)p=u(oe(v),33),o=new hjn(p),f.c[f.c.length]=o;switch(g=u(hn(n,qK),311),g.g){case 3:C=cye(f,e,d.a,d.b,(l=i,_n(r),l));break;case 1:C=Oye(f,e,d.a,d.b,(a=i,_n(r),a));break;default:C=_je(f,e,d.a,d.b,(h=i,_n(r),h))}c=new zC(C),m=kL(c,e,t,d.a,d.b,i,(_n(r),r)),t0(n,m.a,m.b,!1,!0)}function Bje(n,e){var t,i,r,c;t=e.b,c=new du(t.j),r=0,i=t.j,i.c=F(Zn,rn,1,0,5,1),Td(u(ma(n.b,(J(),Kn),(Kd(),g0)),15),t),r=j7(c,r,new Fbn,i),Td(u(ma(n.b,Kn,Fl),15),t),r=j7(c,r,new $bn,i),Td(u(ma(n.b,Kn,w0),15),t),Td(u(ma(n.b,Vn,g0),15),t),Td(u(ma(n.b,Vn,Fl),15),t),r=j7(c,r,new xbn,i),Td(u(ma(n.b,Vn,w0),15),t),Td(u(ma(n.b,ae,g0),15),t),r=j7(c,r,new Lbn,i),Td(u(ma(n.b,ae,Fl),15),t),r=j7(c,r,new Nbn,i),Td(u(ma(n.b,ae,w0),15),t),Td(u(ma(n.b,Gn,g0),15),t),r=j7(c,r,new Xbn,i),Td(u(ma(n.b,Gn,Fl),15),t),Td(u(ma(n.b,Gn,w0),15),t)}function Rje(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m;for(le(e,"Layer size calculation",1),a=Ft,l=Qt,r=!1,f=new E(n.b);f.a.5?S-=o*2*(v-.5):v<.5&&(S+=c*2*(.5-v)),r=f.d.b,SC.a-m-a&&(S=C.a-m-a),f.n.a=e+S}}function _je(n,e,t,i,r){var c,o,f,h,l,a,d,g,p,v,m,C;for(f=F(Ei,pr,25,n.c.length,15,1),g=new GE(new P2n),lJ(g,n),l=0,m=new X;g.b.c.length!=0;)if(o=u(g.b.c.length==0?null:un(g.b,0),157),l>1&&bu(o)*zu(o)/2>f[0]){for(c=0;cf[c];)++c;v=new uh(m,0,c+1),d=new zC(v),a=bu(o)/zu(o),h=kL(d,e,new i2,t,i,r,a),st(Lo(d.e),h),M3(f4(g,d)),p=new uh(m,c+1,m.c.length),lJ(g,p),m.c=F(Zn,rn,1,0,5,1),l=0,fCn(f,f.length,0)}else C=g.b.c.length==0?null:un(g.b,0),C!=null&&J$(g,0),l>0&&(f[l]=f[l-1]),f[l]+=bu(o)*zu(o),++l,m.c[m.c.length]=o;return m}function Kje(n){var e,t,i,r,c;if(i=u(k(n,(nn(),qc)),163),i==(Ss(),xl)){for(t=new re(ue(Lr(n).a.Kc(),new An));Se(t);)if(e=u(ve(t),17),!kSn(e))throw T(new pw(SN+E7(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==Ub){for(c=new re(ue(ei(n).a.Kc(),new An));Se(c);)if(r=u(ve(c),17),!kSn(r))throw T(new pw(SN+E7(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 Hje(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v;for(le(e,"Label dummy removal",1),i=K(Y(k(n,(nn(),jp)))),r=K(Y(k(n,nw))),l=u(k(n,as),103),h=new E(n.b);h.a0&&_xn(n,f,d);for(r=new E(d);r.a>19&&(e=z3(e),h=!h),o=K9e(e),c=!1,r=!1,i=!1,n.h==tk&&n.m==0&&n.l==0)if(r=!0,c=!0,o==-1)n=eyn((I3(),win)),i=!0,h=!h;else return f=SY(n,o),h&&sF(f),t&&(Il=Bc(0,0,0)),f;else n.h>>19&&(c=!0,n=z3(n),i=!0,h=!h);return o!=-1?Swe(n,o,h,c,t):mJ(n,e)<0?(t&&(c?Il=z3(n):Il=Bc(n.l,n.m,n.h)),Bc(0,0,0)):Dke(i?n:Bc(n.l,n.m,n.h),e,h,c,r,t)}function EM(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v;if(n.e&&n.c.ce.f||e.g>n.f)){for(t=0,i=0,o=n.w.a.ec().Kc();o.Ob();)r=u(o.Pb(),11),mF(Gr(A(M(di,1),q,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(),11),mF(Gr(A(M(di,1),q,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(),11),mF(Gr(A(M(di,1),q,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(),11),mF(Gr(A(M(di,1),q,8,0,[r.i.n,r.n,r.a])).b,n.g,n.f)&&--i;t=0)return r=Jge(n,e.substr(1,o-1)),a=e.substr(o+1,h-(o+1)),UCe(n,a,r)}else{if(t=-1,kin==null&&(kin=new RegExp("\\d")),kin.test(String.fromCharCode(f))&&(t=MU(e,iu(46),h-1),t>=0)){i=u(T$(n,aIn(n,e.substr(1,t-1)),!1),58),l=0;try{l=ss(e.substr(t+1),Bi,nt)}catch(g){throw g=jt(g),I(g,127)?(c=g,T(new xC(c))):T(g)}if(l=0)return t;switch(Sd(Er(n,t))){case 2:{if(Mn("",w1(n,t.Hj()).ne())){if(h=E8(Er(n,t)),f=v3(Er(n,t)),a=xY(n,e,h,f),a)return a;for(r=oZ(n,e),o=0,d=r.gc();o1)throw T(new Hn(Mk));for(a=Kc(n.e.Tg(),e),i=u(n.g,119),o=0;o1,l=new sf(g.b);Kr(l.a)||Kr(l.b);)h=u(Kr(l.a)?j(l.a):j(l.b),17),d=h.c==g?h.d:h.c,y.Math.abs(Gr(A(M(di,1),q,8,0,[d.i.n,d.n,d.a])).b-o.b)>1&&z8e(n,h,o,c,g)}}function nEe(n){var e,t,i,r,c,o;if(r=new Pi(n.e,0),i=new Pi(n.a,0),n.d)for(t=0;toB;){for(c=e,o=0;y.Math.abs(e-c)0),r.a.Xb(r.c=--r.b),pye(n,n.b-o,c,i,r),ne(r.b0),i.a.Xb(i.c=--i.b)}if(!n.d)for(t=0;t0?(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 tEe(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 iEe(n,e,t){var i,r,c,o;for(le(t,"Graph transformation ("+n.a+")",1),o=Dd(e.a),c=new E(e.b);c.a0&&(n.a=h+(p-1)*c,e.c.b+=n.a,e.f.b+=n.a)),v.a.gc()!=0&&(g=new FD(1,c),p=FZ(g,e,v,m,e.f.b+h-e.c.b),p>0&&(e.f.b+=h+(p-1)*c))}function y4(n,e){var t,i,r,c;c=n.F,e==null?(n.F=null,X3(n,null)):(n.F=(_n(e),e),i=If(e,iu(60)),i!=-1?(r=e.substr(0,i),If(e,iu(46))==-1&&!Mn(r,X2)&&!Mn(r,cm)&&!Mn(r,EA)&&!Mn(r,um)&&!Mn(r,sm)&&!Mn(r,om)&&!Mn(r,fm)&&!Mn(r,hm)&&(r=yGn),t=aE(e,iu(62)),t!=-1&&(r+=""+e.substr(t+1)),X3(n,r)):(r=e,If(e,iu(46))==-1&&(i=If(e,iu(91)),i!=-1&&(r=e.substr(0,i)),!Mn(r,X2)&&!Mn(r,cm)&&!Mn(r,EA)&&!Mn(r,um)&&!Mn(r,sm)&&!Mn(r,om)&&!Mn(r,fm)&&!Mn(r,hm)?(r=yGn,i!=-1&&(r+=""+e.substr(i))):r=e),X3(n,r),r==e&&(n.F=n.D))),n.Db&4&&!(n.Db&1)&&et(n,new gi(n,1,5,c,e))}function cEe(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O;if(m=e.b.c.length,!(m<3)){for(p=F(be,Le,25,m,15,1),d=0,a=new E(e.b);a.ao)&&ci(n.b,u(C.b,17));++f}c=o}}}function OZ(n,e){var t;if(e==null||Mn(e,ru)||e.length==0&&n.k!=(y1(),Cp))return null;switch(n.k.g){case 1:return DT(e,B4)?(qn(),z4):DT(e,EB)?(qn(),qa):null;case 2:try{return Q(ss(e,Bi,nt))}catch(i){if(i=jt(i),I(i,127))return null;throw T(i)}case 4:try{return kb(e)}catch(i){if(i=jt(i),I(i,127))return null;throw T(i)}case 3:return e;case 5:return mDn(n),TLn(n,e);case 6:return mDn(n),w9e(n,n.a,e);case 7:try{return t=Ame(n),t.Jf(e),t}catch(i){if(i=jt(i),I(i,32))return null;throw T(i)}default:throw T(new $r("Invalid type set for this layout option."))}}function uEe(n){X5();var e,t,i,r,c,o,f;for(f=new Qmn,t=new E(n);t.a=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 LT((G3(),b0)),O8(n,AWn,new Hu(A(M(Rk,1),rn,369,0,[i]))),o=new LT(Hb),O8(n,MWn,new Hu(A(M(Rk,1),rn,369,0,[o]))),r=new LT(Kb),O8(n,TWn,new Hu(A(M(Rk,1),rn,369,0,[r]))),c=new LT(kg),O8(n,CWn,new Hu(A(M(Rk,1),rn,369,0,[c]))),Rx(i.c,b0),Rx(r.c,Kb),Rx(c.c,kg),Rx(o.c,Hb),f.a.c=F(Zn,rn,1,0,5,1),Zt(f.a,i.c),Zt(f.a,va(r.c)),Zt(f.a,c.c),Zt(f.a,va(o.c)),f}function DZ(n){var e;switch(n.d){case 1:{if(n.hj())return n.o!=-2;break}case 2:{if(n.hj())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.gj(),n.p){case 0:return e!=null&&on(sn(e))!=b5(n.k,0);case 1:return e!=null&&u(e,217).a!=ge(n.k)<<24>>24;case 2:return e!=null&&u(e,172).a!=(ge(n.k)&Ut);case 6:return e!=null&&b5(u(e,162).a,n.k);case 5:return e!=null&&u(e,19).a!=ge(n.k);case 7:return e!=null&&u(e,184).a!=ge(n.k)<<16>>16;case 3:return e!=null&&K(Y(e))!=n.j;case 4:return e!=null&&u(e,155).a!=n.j;default:return e==null?n.n!=null:!tt(e,n.n)}}function X7(n,e,t){var i,r,c,o;return n.Fk()&&n.Ek()&&(o=MD(n,u(t,56)),B(o)!==B(t))?(n.Oi(e),n.Ui(e,dPn(n,e,o)),n.rk()&&(c=(r=u(t,49),n.Dk()?n.Bk()?r.ih(n.b,ir(u(On(Qc(n.b),n.aj()),18)).n,u(On(Qc(n.b),n.aj()).Yj(),26).Bj(),null):r.ih(n.b,yt(r.Tg(),ir(u(On(Qc(n.b),n.aj()),18))),null,null):r.ih(n.b,-1-n.aj(),null,null)),!u(o,49).eh()&&(c=(i=u(o,49),n.Dk()?n.Bk()?i.gh(n.b,ir(u(On(Qc(n.b),n.aj()),18)).n,u(On(Qc(n.b),n.aj()).Yj(),26).Bj(),c):i.gh(n.b,yt(i.Tg(),ir(u(On(Qc(n.b),n.aj()),18))),null,c):i.gh(n.b,-1-n.aj(),null,c))),c&&c.Fi()),qu(n.b)&&n.$i(n.Zi(9,t,o,e,!1)),o):t}function NRn(n,e,t){var i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,x;for(a=K(Y(k(n,(nn(),C0)))),i=K(Y(k(n,Osn))),g=new jI,H(g,C0,a+i),l=e,S=l.d,m=l.c.i,$=l.d.i,C=pz(m.c),O=pz($.c),r=new X,d=C;d<=O;d++)f=new qh(n),ea(f,(Qn(),pi)),H(f,(G(),rt),l),H(f,Lt,(Mi(),Ac)),H(f,rP,g),p=u(un(n.b,d),29),d==C?pb(f,p.a.c.length-t,p):jr(f,p),x=K(Y(k(l,S1))),x<0&&(x=0,H(l,S1,x)),f.o.b=x,v=y.Math.floor(x/2),o=new wc,si(o,(J(),Gn)),Hr(o,f),o.n.b=v,h=new wc,si(h,Vn),Hr(h,f),h.n.b=v,Ci(l,o),c=new Pd,Pr(c,l),H(c,Mr,null),Hi(c,h),Ci(c,S),f4e(f,l,c),r.c[r.c.length]=c,l=c;return r}function gL(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O;for(h=u(k1(n,(J(),Gn)).Kc().Pb(),11).e,p=u(k1(n,Vn).Kc().Pb(),11).g,f=h.c.length,O=rf(u(un(n.j,0),11));f-- >0;){for(m=(Ln(0,h.c.length),u(h.c[0],17)),r=(Ln(0,p.c.length),u(p.c[0],17)),$=r.d.e,c=xr($,r,0),dae(m,r.d,c),Hi(r,null),Ci(r,null),v=m.a,e&&Ke(v,new kr(O)),i=_e(r.a,0);i.b!=i.d.c;)t=u(Re(i),8),Ke(v,new kr(t));for(S=m.b,g=new E(r.b);g.a0&&(o=y.Math.max(o,lOn(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),o=y.Math.max(o,(Zo(),mo(wf),y.Math.abs(d-1)<=wf||d==1||isNaN(d)&&isNaN(1)?0:p/(1-d)))),t.n.b=0,t.a.a=o}function RRn(n,e){var t,i,r,c,o,f,h,l,a,d,g,p;if(t=u(br(n.b,e),124),h=u(u(ct(n.r,e),21),84),h.dc()){t.n.d=0,t.n.a=0;return}for(l=n.u.Hc((Mu(),n1)),o=0,n.A.Hc((Qu(),id))&&vBn(n,e),f=h.Kc(),a=null,g=0,d=0;f.Ob();)i=u(f.Pb(),111),c=K(Y(i.b.We((dE(),JA)))),r=i.b.rf().b,a?(p=d+a.d.a+n.w+i.d.d,o=y.Math.max(o,(Zo(),mo(wf),y.Math.abs(g-c)<=wf||g==c||isNaN(g)&&isNaN(c)?0:p/(c-g)))):n.C&&n.C.d>0&&(o=y.Math.max(o,lOn(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),o=y.Math.max(o,(Zo(),mo(wf),y.Math.abs(g-1)<=wf||g==1||isNaN(g)&&isNaN(1)?0:p/(1-g)))),t.n.d=0,t.a.b=o}function _Rn(n,e,t){var i,r,c,o,f,h;for(this.g=n,f=e.d.length,h=t.d.length,this.d=F(mh,E1,10,f+h,0,1),o=0;o0?q$(this,this.f/this.a):nf(e.g,e.d[0]).a!=null&&nf(t.g,t.d[0]).a!=null?q$(this,(K(nf(e.g,e.d[0]).a)+K(nf(t.g,t.d[0]).a))/2):nf(e.g,e.d[0]).a!=null?q$(this,nf(e.g,e.d[0]).a):nf(t.g,t.d[0]).a!=null&&q$(this,nf(t.g,t.d[0]).a)}function sEe(n,e){var t,i,r,c,o,f,h,l,a,d;for(n.a=new XCn(Lbe(e9)),i=new E(e.a);i.a=1&&(C-o>0&&d>=0?(h.n.a+=m,h.n.b+=c*o):C-o<0&&a>=0&&(h.n.a+=m*C,h.n.b+=c));n.o.a=e.a,n.o.b=e.b,H(n,(nn(),Xa),(Qu(),i=u(xo(o9),9),new ks(i,u(bo(i,i.length),9),0)))}function lEe(n,e,t,i,r,c){var o;if(!(e==null||!$F(e,a1n,d1n)))throw T(new Hn("invalid scheme: "+e));if(!n&&!(t!=null&&If(t,iu(35))==-1&&t.length>0&&(Te(0,t.length),t.charCodeAt(0)!=47)))throw T(new Hn("invalid opaquePart: "+t));if(n&&!(e!=null&&_9(tI,e.toLowerCase()))&&!(t==null||!$F(t,a9,d9)))throw T(new Hn(oGn+t));if(n&&e!=null&&_9(tI,e.toLowerCase())&&!rve(t))throw T(new Hn(oGn+t));if(!o2e(i))throw T(new Hn("invalid device: "+i));if(!ege(r))throw o=r==null?"invalid segments: null":"invalid segment: "+Jwe(r),T(new Hn(o));if(!(c==null||If(c,iu(35))==-1))throw T(new Hn("invalid query: "+c))}function aEe(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S;for(le(e,"Calculate Graph Size",1),e.n&&n&&go(e,po(n),(Vu(),gs)),f=D4,h=D4,c=ttn,o=ttn,d=new ie((!n.a&&(n.a=new V(Ot,n,10,11)),n.a));d.e!=d.i.gc();)l=u(oe(d),33),v=l.i,m=l.j,S=l.g,i=l.f,r=u(hn(l,(Xe(),my)),142),f=y.Math.min(f,v-r.b),h=y.Math.min(h,m-r.d),c=y.Math.max(c,v+S+r.c),o=y.Math.max(o,m+i+r.a);for(p=u(hn(n,(Xe(),nd)),116),g=new fn(f-p.b,h-p.d),a=new ie((!n.a&&(n.a=new V(Ot,n,10,11)),n.a));a.e!=a.i.gc();)l=u(oe(a),33),nu(l,l.i-g.a),eu(l,l.j-g.b);C=c-f+(p.b+p.c),t=o-h+(p.d+p.a),Rd(n,C),Bd(n,t),e.n&&n&&go(e,po(n),(Vu(),gs))}function qRn(n){var e,t,i,r,c,o,f,h,l,a;for(i=new X,o=new E(n.e.a);o.a0){NT(n,t,0),t.a+=String.fromCharCode(i),r=J2e(e,c),NT(n,t,r),c+=r-1;continue}i==39?c+11)for(m=F(be,Le,25,n.b.b.c.length,15,1),d=0,l=new E(n.b.b);l.a=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,o+=2):c<=h?(t[a++]=f,t[a++]=c,i+=2):(t[a++]=f,t[a++]=h,n.b[i]=h+1);else if(hCl)&&f<10);mG(n.c,new Tan),GRn(n),ehe(n.c),fEe(n.f)}function gEe(n,e,t){var i,r,c,o,f,h,l,a,d,g,p,v,m,C;if(on(sn(k(t,(nn(),Qb)))))for(f=new E(t.j);f.a=2){for(h=_e(t,0),o=u(Re(h),8),f=u(Re(h),8);f.a0&&u7(l,!0,(sr(),Ao)),f.k==(Qn(),Xt)&&pTn(l),it(n.f,f,e)}}function kEe(n,e,t){var i,r,c,o,f,h,l,a,d,g;switch(le(t,"Node promotion heuristic",1),n.g=e,MCe(n),n.q=u(k(e,(nn(),__)),260),a=u(k(n.g,psn),19).a,c=new h0n,n.q.g){case 2:case 1:k4(n,c);break;case 3:for(n.q=(Zw(),lP),k4(n,c),h=0,f=new E(n.a);f.an.j&&(n.q=ey,k4(n,c));break;case 4:for(n.q=(Zw(),lP),k4(n,c),l=0,r=new E(n.b);r.an.k&&(n.q=ty,k4(n,c));break;case 6:g=Gt(y.Math.ceil(n.f.length*a/100)),k4(n,new M5n(g));break;case 5:d=Gt(y.Math.ceil(n.d*a/100)),k4(n,new A5n(d));break;default:k4(n,c)}d7e(n,e),ce(t)}function URn(n,e,t){var i,r,c,o;this.j=n,this.e=LJ(n),this.o=this.j.e,this.i=!!this.o,this.p=this.i?u(un(t,Gi(this.o).p),214):null,r=u(k(n,(G(),Mc)),21),this.g=r.Hc((or(),$s)),this.b=new X,this.d=new b$n(this.e),o=u(k(this.j,vp),230),this.q=Ybe(e,o,this.e),this.k=new wMn(this),c=uf(A(M(VWn,1),rn,225,0,[this,this.d,this.k,this.q])),e==(_d(),ry)&&!on(sn(k(n,(nn(),Wb))))?(i=new BJ(this.e),c.c[c.c.length]=i,this.c=new dX(i,o,u(this.q,402))):e==ry&&on(sn(k(n,(nn(),Wb))))?(i=new BJ(this.e),c.c[c.c.length]=i,this.c=new JIn(i,o,u(this.q,402))):this.c=new V7n(e,this),W(c,this.c),ARn(c,this.e),this.s=tTe(this.k)}function yEe(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,x;for(d=u(fE((o=_e(new X1(e).a.d,0),new e2(o))),86),v=d?u(k(d,(cc(),pK)),86):null,r=1;d&&v;){for(h=0,x=0,t=d,i=v,f=0;f=n.i?(++n.i,W(n.a,Q(1)),W(n.b,a)):(i=n.c[e.p][1],Es(n.a,l,Q(u(un(n.a,l),19).a+1-i)),Es(n.b,l,K(Y(un(n.b,l)))+a-i*n.e)),(n.q==(Zw(),ey)&&(u(un(n.a,l),19).a>n.j||u(un(n.a,l-1),19).a>n.j)||n.q==ty&&(K(Y(un(n.b,l)))>n.k||K(Y(un(n.b,l-1)))>n.k))&&(h=!1),o=new re(ue(Lr(e).a.Kc(),new An));Se(o);)c=u(ve(o),17),f=c.c.i,n.f[f.p]==l&&(d=WRn(n,f),r=r+u(d.a,19).a,h=h&&on(sn(d.b)));return n.f[e.p]=l,r=r+n.c[e.p][0],new Si(Q(r),(qn(),!!h))}function FZ(n,e,t,i,r){var c,o,f,h,l,a,d,g,p,v,m,C,S;for(d=new we,o=new X,wLn(n,t,n.d.fg(),o,d),wLn(n,i,n.d.gg(),o,d),n.b=.2*(m=rNn(qr(new $n(null,new xn(o,16)),new vgn)),C=rNn(qr(new $n(null,new xn(o,16)),new mgn)),y.Math.min(m,C)),c=0,f=0;f=2&&(S=MNn(o,!0,g),!n.e&&(n.e=new I6n(n)),Z2e(n.e,S,o,n.b)),uxn(o,g),NEe(o),p=-1,a=new E(o);a.af)}function EEe(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m;for(t=u(k(n,(nn(),Lt)),98),o=n.f,c=n.d,f=o.a+c.b+c.c,h=0-c.d-n.c.b,a=o.b+c.d+c.a-n.c.b,l=new X,d=new X,r=new E(e);r.a0),u(a.a.Xb(a.c=--a.b),17));c!=i&&a.b>0;)n.a[c.p]=!0,n.a[i.p]=!0,c=(ne(a.b>0),u(a.a.Xb(a.c=--a.b),17));a.b>0&&Wu(a)}}function JRn(n,e,t){var i,r,c,o,f,h,l,a,d;if(n.a!=e.Aj())throw T(new Hn(R4+e.ne()+h0));if(i=w1((gu(),xi),e).$k(),i)return i.Aj().Nh().Ih(i,t);if(o=w1(xi,e).al(),o){if(t==null)return null;if(f=u(t,15),f.dc())return"";for(d=new i1,c=f.Kc();c.Ob();)r=c.Pb(),dr(d,o.Aj().Nh().Ih(o,r)),d.a+=" ";return NO(d,d.a.length-1)}if(a=w1(xi,e).bl(),!a.dc()){for(l=a.Kc();l.Ob();)if(h=u(l.Pb(),148),h.wj(t))try{if(d=h.Aj().Nh().Ih(h,t),d!=null)return d}catch(g){if(g=jt(g),!I(g,102))throw T(g)}throw T(new Hn("Invalid value: '"+t+"' for datatype :"+e.ne()))}return u(e,834).Fj(),t==null?null:I(t,172)?""+u(t,172).a:$u(t)==HA?Tyn(l9[0],u(t,199)):Nr(t)}function PEe(n){var e,t,i,r,c,o,f,h,l,a;for(l=new Tt,f=new Tt,c=new E(n);c.a-1){for(r=_e(f,0);r.b!=r.d.c;)i=u(Re(r),128),i.v=o;for(;f.b!=0;)for(i=u(hx(f,0),128),t=new E(i.i);t.a0&&(t+=h.n.a+h.o.a/2,++d),v=new E(h.j);v.a0&&(t/=d),S=F(Ei,pr,25,i.a.c.length,15,1),f=0,l=new E(i.a);l.a=f&&r<=h)f<=r&&c<=h?i+=2:f<=r?(n.b[i]=h+1,o+=2):c<=h?(t[a++]=r,t[a++]=f-1,i+=2):(t[a++]=r,t[a++]=f-1,n.b[i]=h+1,o+=2);else if(h0?r-=864e5:r+=864e5,h=new uU(qi(tu(e.q.getTime()),r))),a=new R0,l=n.a.length,c=0;c=97&&i<=122||i>=65&&i<=90){for(o=c+1;o=l)throw T(new Hn("Missing trailing '"));o+10&&t.c==0&&(!e&&(e=new X),e.c[e.c.length]=t);if(e)for(;e.c.length!=0;){if(t=u(h1(e,0),233),t.b&&t.b.c.length>0){for(c=(!t.b&&(t.b=new X),new E(t.b));c.axr(n,t,0))return new Si(r,t)}else if(K(nf(r.g,r.d[0]).a)>K(nf(t.g,t.d[0]).a))return new Si(r,t)}for(f=(!t.e&&(t.e=new X),t.e).Kc();f.Ob();)o=u(f.Pb(),233),h=(!o.b&&(o.b=new X),o.b),tb(0,h.c.length),e5(h.c,0,t),o.c==h.c.length&&(e.c[e.c.length]=o)}return null}function t_n(n,e){var t,i,r,c,o,f,h,l,a;if(n==null)return ru;if(h=e.a.zc(n,e),h!=null)return"[...]";for(t=new ka(Ji,"[","]"),r=n,c=0,o=r.length;c=14&&a<=16))?e.a._b(i)?(t.a?De(t.a,t.b):t.a=new Yu(t.d),g5(t.a,"[...]")):(f=pa(i),l=new S5(e),xh(t,t_n(f,l))):I(i,177)?xh(t,M6e(u(i,177))):I(i,190)?xh(t,wve(u(i,190))):I(i,195)?xh(t,T5e(u(i,195))):I(i,2012)?xh(t,gve(u(i,2012))):I(i,48)?xh(t,T6e(u(i,48))):I(i,364)?xh(t,R6e(u(i,364))):I(i,832)?xh(t,C6e(u(i,832))):I(i,104)&&xh(t,E6e(u(i,104))):xh(t,i==null?ru:Nr(i));return t.a?t.e.length==0?t.a.a:t.a.a+(""+t.e):t.c}function i_n(n,e,t,i){var r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O;for(f=ng(e,!1,!1),S=I7(f),i&&(S=o7(S)),O=K(Y(hn(e,(a6(),IR)))),C=(ne(S.b!=0),u(S.a.a.c,8)),d=u(qo(S,1),8),S.b>2?(a=new X,Zt(a,new uh(S,1,S.b)),c=L_n(a,O+n.a),$=new xx(c),Pr($,e),t.c[t.c.length]=$):i?$=u(te(n.b,hh(e)),266):$=u(te(n.b,ml(e)),266),h=hh(e),i&&(h=ml(e)),o=z5e(C,h),l=O+n.a,o.a?(l+=y.Math.abs(C.b-d.b),m=new fn(d.a,(d.b+C.b)/2)):(l+=y.Math.abs(C.a-d.a),m=new fn((d.a+C.a)/2,d.b)),i?it(n.d,e,new cJ($,o,m,l)):it(n.c,e,new cJ($,o,m,l)),it(n.b,e,$),v=(!e.n&&(e.n=new V(Rr,e,1,7)),e.n),p=new ie(v);p.e!=p.i.gc();)g=u(oe(p),137),r=K7(n,g,!0,0,0),t.c[t.c.length]=r}function NEe(n){var e,t,i,r,c,o,f,h,l,a;for(l=new X,f=new X,o=new E(n);o.a-1){for(c=new E(f);c.a0)&&(aq(h,y.Math.min(h.o,r.o-1)),ej(h,h.i-1),h.i==0&&(f.c[f.c.length]=h))}}function j4(n,e,t){var i,r,c,o,f,h,l;if(l=n.c,!e&&(e=p1n),n.c=e,n.Db&4&&!(n.Db&1)&&(h=new gi(n,1,2,l,n.c),t?t.Ei(h):t=h),l!=e){if(I(n.Cb,284))n.Db>>16==-10?t=u(n.Cb,284).nk(e,t):n.Db>>16==-15&&(!e&&(e=(Sn(),Tf)),!l&&(l=(Sn(),Tf)),n.Cb.nh()&&(h=new Lh(n.Cb,1,13,l,e,v1(Du(u(n.Cb,59)),n),!1),t?t.Ei(h):t=h));else if(I(n.Cb,88))n.Db>>16==-23&&(I(e,88)||(e=(Sn(),so)),I(l,88)||(l=(Sn(),so)),n.Cb.nh()&&(h=new Lh(n.Cb,1,10,l,e,v1(bc(u(n.Cb,26)),n),!1),t?t.Ei(h):t=h));else if(I(n.Cb,444))for(f=u(n.Cb,836),o=(!f.b&&(f.b=new sj(new KI)),f.b),c=(i=new Ea(new ta(o.a).a),new oj(i));c.a.b;)r=u(Nd(c.a).cd(),87),t=j4(r,uM(r,f),t)}return t}function BEe(n,e){var t,i,r,c,o,f,h,l,a,d,g;for(o=on(sn(hn(n,(nn(),Qb)))),g=u(hn(n,Yb),21),h=!1,l=!1,d=new ie((!n.c&&(n.c=new V(_u,n,9,9)),n.c));d.e!=d.i.gc()&&(!h||!l);){for(c=u(oe(d),118),f=0,r=ul(ff(A(M(pf,1),rn,20,0,[(!c.d&&(c.d=new Fn(bi,c,8,5)),c.d),(!c.e&&(c.e=new Fn(bi,c,7,4)),c.e)])));Se(r)&&(i=u(ve(r),79),a=o&&Jd(i)&&on(sn(hn(i,Wa))),t=FRn((!i.b&&(i.b=new Fn(he,i,4,7)),i.b),c)?n==Pt(Ir(u(D((!i.c&&(i.c=new Fn(he,i,5,8)),i.c),0),82))):n==Pt(Ir(u(D((!i.b&&(i.b=new Fn(he,i,4,7)),i.b),0),82))),!((a||t)&&(++f,f>1))););(f>0||g.Hc((Mu(),n1))&&(!c.n&&(c.n=new V(Rr,c,1,7)),c.n).i>0)&&(h=!0),f>1&&(l=!0)}h&&e.Fc((or(),$s)),l&&e.Fc((or(),Tm))}function r_n(n){var e,t,i,r,c,o,f,h,l,a,d,g;if(g=u(hn(n,(Xe(),Za)),21),g.dc())return null;if(f=0,o=0,g.Hc((Qu(),Ay))){for(a=u(hn(n,n9),98),i=2,t=2,r=2,c=2,e=Pt(n)?u(hn(Pt(n),A0),103):u(hn(n,A0),103),l=new ie((!n.c&&(n.c=new V(_u,n,9,9)),n.c));l.e!=l.i.gc();)if(h=u(oe(l),118),d=u(hn(h,Hg),61),d==(J(),Xr)&&(d=mZ(h,e),gr(h,Hg,d)),a==(Mi(),Ac))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),o=y.Math.max(t,c)}return t0(n,f,o,!0,!0)}function pL(n,e,t,i,r){var c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,x;for($=u(ts(qC(gt(new $n(null,new xn(e.d,16)),new Q5n(t)),new J5n(t)),ga(new U1,new z1,new W1,A(M(Bu,1),z,132,0,[(lf(),ls)]))),15),d=nt,a=Bi,h=new E(e.b.j);h.a0,l?l&&(g=S.p,o?++g:--g,d=u(un(S.c.a,g),10),i=VOn(d),p=!(Kx(i,U,t[0])||ACn(i,U,t[0]))):p=!0),v=!1,_=e.D.i,_&&_.c&&f.e&&(a=o&&_.p>0||!o&&_.p<_.c.a.c.length-1,a?(g=_.p,o?--g:++g,d=u(un(_.c.a,g),10),i=VOn(d),v=!(Kx(i,t[0],ln)||ACn(i,t[0],ln))):v=!0),p&&v&&Ke(n.a,en),p||V5(n.a,A(M(di,1),q,8,0,[m,C])),v||V5(n.a,A(M(di,1),q,8,0,[x,O]))}function CM(n,e){var t,i,r,c,o,f,h,l;if(I(n.Ug(),160)?(CM(u(n.Ug(),160),e),e.a+=" > "):e.a+="Root ",t=n.Tg().zb,Mn(t.substr(0,3),"Elk")?De(e,t.substr(3)):e.a+=""+t,r=n.zg(),r){De((e.a+=" ",e),r);return}if(I(n,354)&&(l=u(n,137).a,l)){De((e.a+=" ",e),l);return}for(o=new ie(n.Ag());o.e!=o.i.gc();)if(c=u(oe(o),137),l=c.a,l){De((e.a+=" ",e),l);return}if(I(n,352)&&(i=u(n,79),!i.b&&(i.b=new Fn(he,i,4,7)),i.b.i!=0&&(!i.c&&(i.c=new Fn(he,i,5,8)),i.c.i!=0))){for(e.a+=" (",f=new b2((!i.b&&(i.b=new Fn(he,i,4,7)),i.b));f.e!=f.i.gc();)f.e>0&&(e.a+=Ji),CM(u(oe(f),160),e);for(e.a+=TN,h=new b2((!i.c&&(i.c=new Fn(he,i,5,8)),i.c));h.e!=h.i.gc();)h.e>0&&(e.a+=Ji),CM(u(oe(h),160),e);e.a+=")"}}function GEe(n,e,t){var i,r,c,o,f,h,l,a,d,g,p;if(c=u(k(n,(G(),rt)),79),!!c){for(i=n.a,r=new kr(t),st(r,F4e(n)),K3(n.d.i,n.c.i)?(g=n.c,d=Gr(A(M(di,1),q,8,0,[g.n,g.a])),yi(d,t)):d=rf(n.c),Kt(i,d,i.a,i.a.a),p=rf(n.d),k(n,I_)!=null&&st(p,u(k(n,I_),8)),Kt(i,p,i.c.b,i.c),fb(i,r),o=ng(c,!0,!0),JC(o,u(D((!c.b&&(c.b=new Fn(he,c,4,7)),c.b),0),82)),YC(o,u(D((!c.c&&(c.c=new Fn(he,c,5,8)),c.c),0),82)),z7(i,o),a=new E(n.b);a.a=0){for(h=null,f=new Pi(a.a,l+1);f.bo?1:pd(isNaN(0),isNaN(o)))<0&&(mo(zf),(y.Math.abs(o-1)<=zf||o==1||isNaN(o)&&isNaN(1)?0:o<1?-1:o>1?1:pd(isNaN(o),isNaN(1)))<0)&&(mo(zf),(y.Math.abs(0-f)<=zf||f==0||isNaN(0)&&isNaN(f)?0:0f?1:pd(isNaN(0),isNaN(f)))<0)&&(mo(zf),(y.Math.abs(f-1)<=zf||f==1||isNaN(f)&&isNaN(1)?0:f<1?-1:f>1?1:pd(isNaN(f),isNaN(1)))<0)),c)}function UEe(n){var e,t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,x,_,U;for(d=new NW(new Mq(n));d.b!=d.c.a.d;)for(a=fPn(d),f=u(a.d,56),e=u(a.e,56),o=f.Tg(),m=0,x=(o.i==null&&Nf(o),o.i).length;m=0&&m=l.c.c.length?a=pX((Qn(),ii),pi):a=pX((Qn(),pi),pi),a*=2,c=t.a.g,t.a.g=y.Math.max(c,c+(a-c)),o=t.b.g,t.b.g=y.Math.max(o,o+(a-o)),r=e}}function VEe(n,e,t,i,r){var c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,x,_;for(_=TEn(n),a=new X,f=n.c.length,d=f-1,g=f+1;_.a.c!=0;){for(;t.b!=0;)O=(ne(t.b!=0),u(Ts(t,t.a.a),112)),R5(_.a,O)!=null,O.g=d--,kZ(O,e,t,i);for(;e.b!=0;)x=(ne(e.b!=0),u(Ts(e,e.a.a),112)),R5(_.a,x)!=null,x.g=g++,kZ(x,e,t,i);for(l=Bi,S=(o=new T5(new j5(new P9(_.a).a).b),new I9(o));G9(S.a.a);){if(C=(c=pE(S.a),u(c.cd(),112)),!i&&C.b>0&&C.a<=0){a.c=F(Zn,rn,1,0,5,1),a.c[a.c.length]=C;break}m=C.i-C.d,m>=l&&(m>l&&(a.c=F(Zn,rn,1,0,5,1),l=m),a.c[a.c.length]=C)}a.c.length!=0&&(h=u(un(a,_T(r,a.c.length)),112),R5(_.a,h)!=null,h.g=g++,kZ(h,e,t,i),a.c=F(Zn,rn,1,0,5,1))}for($=n.c.length+1,v=new E(n);v.a0&&(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 u_n(n,e,t){var i,r,c,o,f,h,l,a,d,g,p,v;for(g=t.d,d=t.c,c=new fn(t.f.a+t.d.b+t.d.c,t.f.b+t.d.d+t.d.a),o=c.b,l=new E(n.a);l.a0&&(n.c[e.c.p][e.p].d+=xu(n.i,24)*uk*.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 iCe(n){var e,t,i,r,c,o,f,h,l,a,d,g,p,v,m,C;for(v=new E(n);v.ai.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 sCe(n){var e,t,i,r,c,o,f,h,l,a,d;for(l=new E(n);l.a0||a.j==Gn&&a.e.c.length-a.g.c.length<0)){e=!1;break}for(r=new E(a.g);r.a=l&&_>=C&&(g+=v.n.b+m.n.b+m.a.b-x,++f));if(t)for(o=new E($.e);o.a=l&&_>=C&&(g+=v.n.b+m.n.b+m.a.b-x,++f))}f>0&&(U+=g/f,++p)}p>0?(e.a=r*U/p,e.g=p):(e.a=0,e.g=0)}function fCe(n,e){var t,i,r,c,o,f,h,l,a,d,g;for(r=new E(n.a.b);r.aQt||e.o==Ja&&a0&&nu(S,x*U),_>0&&eu(S,_*en);for(n6(n.b,new gan),e=new X,f=new Ea(new ta(n.c).a);f.b;)o=Nd(f),i=u(o.cd(),79),t=u(o.dd(),395).a,r=ng(i,!1,!1),d=sxn(hh(i),I7(r),t),z7(d,r),O=mxn(i),O&&xr(e,O,0)==-1&&(e.c[e.c.length]=O,TTn(O,(ne(d.b!=0),u(d.a.a.c,8)),t));for(C=new Ea(new ta(n.d).a);C.b;)m=Nd(C),i=u(m.cd(),79),t=u(m.dd(),395).a,r=ng(i,!1,!1),d=sxn(ml(i),o7(I7(r)),t),d=o7(d),z7(d,r),O=kxn(i),O&&xr(e,O,0)==-1&&(e.c[e.c.length]=O,TTn(O,(ne(d.b!=0),u(d.c.b.c,8)),t))}function f_n(n,e,t,i){var r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,x,_,U,en;if(t.c.length!=0){for(p=new X,g=new E(t);g.a1)for(p=new SZ(v,O,i),$i(O,new tkn(n,p)),o.c[o.c.length]=p,d=O.a.ec().Kc();d.Ob();)a=u(d.Pb(),46),Jc(c,a.b);if(f.a.gc()>1)for(p=new SZ(v,f,i),$i(f,new ikn(n,p)),o.c[o.c.length]=p,d=f.a.ec().Kc();d.Ob();)a=u(d.Pb(),46),Jc(c,a.b)}}function l_n(n){wd(n,new Ia(vj(ld(od(hd(fd(new Zl,Uf),"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 Fgn),Uf))),Z(n,Uf,oA,cn(DYn)),Z(n,Uf,Db,cn($Yn)),Z(n,Uf,hg,cn(SYn)),Z(n,Uf,ip,cn(PYn)),Z(n,Uf,tp,cn(IYn)),Z(n,Uf,F4,cn(AYn)),Z(n,Uf,G6,cn(Ron)),Z(n,Uf,x4,cn(OYn)),Z(n,Uf,dB,cn(MK)),Z(n,Uf,aB,cn(AK)),Z(n,Uf,otn,cn(_on)),Z(n,Uf,rtn,cn(TP)),Z(n,Uf,ctn,cn(MP)),Z(n,Uf,utn,cn(oy)),Z(n,Uf,stn,cn(Kon))}function NZ(n){var e;if(this.r=Uhe(new Nln,new Bln),this.b=new f6(u(pe(Zi),290)),this.p=new f6(u(pe(Zi),290)),this.i=new f6(u(pe(yUn),290)),this.e=n,this.o=new kr(n.rf()),this.D=n.Df()||on(sn(n.We((Xe(),vy)))),this.A=u(n.We((Xe(),Za)),21),this.B=u(n.We(_l),21),this.q=u(n.We(n9),98),this.u=u(n.We(rw),21),!Zve(this.u))throw T(new pw("Invalid port label placement: "+this.u));if(this.v=on(sn(n.We(mhn))),this.j=u(n.We(_g),21),!E9e(this.j))throw T(new pw("Invalid node label placement: "+this.j));this.n=u(w6(n,uhn),116),this.k=K(Y(w6(n,KP))),this.d=K(Y(w6(n,Ehn))),this.w=K(Y(w6(n,Shn))),this.s=K(Y(w6(n,Chn))),this.t=K(Y(w6(n,Thn))),this.C=u(w6(n,Mhn),142),this.c=2*this.d,e=!this.B.Hc((Lu(),Sy)),this.f=new l6(0,e,0),this.g=new l6(1,e,0),zI(this.f,(_o(),Fc),this.g)}function vCe(n,e,t,i,r){var c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,x,_,U,en,ln,wn,zn;for(O=0,v=0,p=0,g=1,$=new ie((!n.a&&(n.a=new V(Ot,n,10,11)),n.a));$.e!=$.i.gc();)C=u(oe($),33),g+=Fh(new re(ue(Gh(C).a.Kc(),new An))),ln=C.g,v=y.Math.max(v,ln),d=C.f,p=y.Math.max(p,d),O+=ln*d;for(m=(!n.a&&(n.a=new V(Ot,n,10,11)),n.a).i,o=O+2*i*i*g*m,c=y.Math.sqrt(o),h=y.Math.max(c*t,v),f=y.Math.max(c/t,p),S=new ie((!n.a&&(n.a=new V(Ot,n,10,11)),n.a));S.e!=S.i.gc();)C=u(oe(S),33),wn=r.b+(xu(e,26)*N6+xu(e,27)*B6)*(h-C.g),zn=r.b+(xu(e,26)*N6+xu(e,27)*B6)*(f-C.f),nu(C,wn),eu(C,zn);for(en=h+(r.b+r.c),U=f+(r.d+r.a),_=new ie((!n.a&&(n.a=new V(Ot,n,10,11)),n.a));_.e!=_.i.gc();)for(x=u(oe(_),33),a=new re(ue(Gh(x).a.Kc(),new An));Se(a);)l=u(ve(a),79),j6(l)||mTe(l,e,en,U);en+=r.b+r.c,U+=r.d+r.a,t0(n,en,U,!1,!0)}function MM(n){var e,t,i,r,c,o,f,h,l,a,d;if(n==null)throw T(new Pf(ru));if(l=n,c=n.length,h=!1,c>0&&(e=(Te(0,n.length),n.charCodeAt(0)),(e==45||e==43)&&(n=n.substr(1),--c,h=e==45)),c==0)throw T(new Pf(c0+l+'"'));for(;n.length>0&&(Te(0,n.length),n.charCodeAt(0)==48);)n=n.substr(1),--c;if(c>(ZBn(),yzn)[10])throw T(new Pf(c0+l+'"'));for(r=0;r0&&(d=-parseInt(n.substr(0,i),10),n=n.substr(i),c-=i,t=!1);c>=o;){if(i=parseInt(n.substr(0,o),10),n=n.substr(o),c-=o,t)t=!1;else{if(fc(d,f)<0)throw T(new Pf(c0+l+'"'));d=Ni(d,a)}d=vl(d,i)}if(fc(d,0)>0)throw T(new Pf(c0+l+'"'));if(!h&&(d=P3(d),fc(d,0)<0))throw T(new Pf(c0+l+'"'));return d}function BZ(n,e){HEn();var t,i,r,c,o,f,h;if(this.a=new Sz(this),this.b=n,this.c=e,this.f=PD(Er((gu(),xi),e)),this.f.dc())if((f=EJ(xi,n))==e)for(this.e=!0,this.d=new X,this.f=new H2n,this.f.Fc(Ka),u(jM(G8(xi,is(n)),""),26)==n&&this.f.Fc(I5(xi,is(n))),r=Jx(xi,n).Kc();r.Ob();)switch(i=u(r.Pb(),170),Sd(Er(xi,i))){case 4:{this.d.Fc(i);break}case 5:{this.f.Gc(PD(Er(xi,i)));break}}else if(er(),u(e,66).Oj())for(this.e=!0,this.f=null,this.d=new X,o=0,h=(n.i==null&&Nf(n),n.i).length;o=0&&o0&&(u(br(n.b,e),124).a.b=t)}function mCe(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S;for(le(e,"Comment pre-processing",1),t=0,h=new E(n.a);h.a0&&(h=(Te(0,e.length),e.charCodeAt(0)),h!=64)){if(h==37&&(d=e.lastIndexOf("%"),l=!1,d!=0&&(d==g-1||(l=(Te(d+1,e.length),e.charCodeAt(d+1)==46))))){if(o=e.substr(1,d-1),O=Mn("%",o)?null:_Z(o),i=0,l)try{i=ss(e.substr(d+2),Bi,nt)}catch(x){throw x=jt(x),I(x,127)?(f=x,T(new xC(f))):T(x)}for(C=kV(n.Wg());C.Ob();)if(v=hT(C),I(v,510)&&(r=u(v,590),$=r.d,(O==null?$==null:Mn(O,$))&&i--==0))return r;return null}if(a=e.lastIndexOf("."),p=a==-1?e:e.substr(0,a),t=0,a!=-1)try{t=ss(e.substr(a+1),Bi,nt)}catch(x){if(x=jt(x),I(x,127))p=e;else throw T(x)}for(p=Mn("%",p)?null:_Z(p),m=kV(n.Wg());m.Ob();)if(v=hT(m),I(v,191)&&(c=u(v,191),S=c.ne(),(p==null?S==null:Mn(p,S))&&t--==0))return c;return null}return LRn(n,e)}function jCe(n){var e,t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,x,_,U,en,ln,wn,zn,Wn;for(U=new X,v=new E(n.b);v.a=e.length)return{done:!0};var r=e[i++];return{value:[r,t.get(r)],done:!1}}}},A7e()||(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[eN]=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 CCe(n){vZ();var e,t,i,r,c,o,f,h,l,a,d,g,p,v,m,C;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(Ls,Rf,25,g*4,15,1),l=0,a=0,e=0,t=0,i=0,o=0,r=0,h=0;h>24,l=(e&3)<<24>>24,v=e&-128?(e>>2^192)<<24>>24:e>>2<<24>>24,m=t&-128?(t>>4^240)<<24>>24:t>>4<<24>>24,C=i&-128?(i>>6^252)<<24>>24:i>>6<<24>>24,c[o++]=R1[v],c[o++]=R1[m|l<<4],c[o++]=R1[a<<2|C],c[o++]=R1[i&63];return f==8?(e=n[r],l=(e&3)<<24>>24,v=e&-128?(e>>2^192)<<24>>24:e>>2<<24>>24,c[o++]=R1[v],c[o++]=R1[l<<4],c[o++]=61,c[o++]=61):f==16&&(e=n[r],t=n[r+1],a=(t&15)<<24>>24,l=(e&3)<<24>>24,v=e&-128?(e>>2^192)<<24>>24:e>>2<<24>>24,m=t&-128?(t>>4^240)<<24>>24:t>>4<<24>>24,c[o++]=R1[v],c[o++]=R1[m|l<<4],c[o++]=R1[a<<2],c[o++]=61),Hs(c,0,c.length)}function TCe(n,e){var t,i,r,c,o,f,h;if(n.e==0&&n.p>0&&(n.p=-(n.p-1)),n.p>Bi&&mX(e,n.p-Tl),o=e.q.getDate(),A8(e,1),n.k>=0&&sle(e,n.k),n.c>=0?A8(e,n.c):n.k>=0?(h=new _V(e.q.getFullYear()-Tl,e.q.getMonth(),35),i=35-h.q.getDate(),A8(e,y.Math.min(i,o))):A8(e,o),n.f<0&&(n.f=e.q.getHours()),n.b>0&&n.f<12&&(n.f+=12),vce(e,n.f==24&&n.g?0:n.f),n.j>=0&&vde(e,n.j),n.n>=0&&Lde(e,n.n),n.i>=0&&Kkn(e,qi(Ni(M7(tu(e.q.getTime()),j1),j1),n.i)),n.a&&(r=new Tj,mX(r,r.q.getFullYear()-Tl-80),cO(tu(e.q.getTime()),tu(r.q.getTime()))&&mX(e,r.q.getFullYear()-Tl+100)),n.d>=0){if(n.c==-1)t=(7+n.d-e.q.getDay())%7,t>3&&(t-=7),f=e.q.getMonth(),A8(e,e.q.getDate()+t),e.q.getMonth()!=f&&A8(e,e.q.getDate()+(t>0?-7:7));else if(e.q.getDay()!=n.d)return!1}return n.o>Bi&&(c=e.q.getTimezoneOffset(),Kkn(e,qi(tu(e.q.getTime()),(n.o-c)*60*j1))),!0}function b_n(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,x;if(r=k(e,(G(),rt)),!!I(r,239)){for(v=u(r,33),m=e.e,g=new kr(e.c),c=e.d,g.a+=c.b,g.b+=c.d,x=u(hn(v,(nn(),iP)),174),au(x,(Lu(),GP))&&(p=u(hn(v,Esn),116),Yee(p,c.a),ute(p,c.d),Zee(p,c.b),ste(p,c.c)),t=new X,a=new E(e.a);a.a0&&W(n.p,a),W(n.o,a);e-=i,p=h+e,l+=e*n.e,Es(n.a,f,Q(p)),Es(n.b,f,l),n.j=y.Math.max(n.j,p),n.k=y.Math.max(n.k,l),n.d+=e,e+=m}}function J(){J=N;var n;Xr=new t8(K6,0),Kn=new t8(NM,1),Vn=new t8(lN,2),ae=new t8(aN,3),Gn=new t8(dN,4),Cf=(Pn(),new Wp((n=u(xo(Zi),9),new ks(n,u(bo(n,n.length),9),0)))),Do=b1(pt(Kn,A(M(Zi,1),hc,61,0,[]))),Fs=b1(pt(Vn,A(M(Zi,1),hc,61,0,[]))),bs=b1(pt(ae,A(M(Zi,1),hc,61,0,[]))),to=b1(pt(Gn,A(M(Zi,1),hc,61,0,[]))),uu=b1(pt(Kn,A(M(Zi,1),hc,61,0,[ae]))),Gc=b1(pt(Vn,A(M(Zi,1),hc,61,0,[Gn]))),$o=b1(pt(Kn,A(M(Zi,1),hc,61,0,[Gn]))),Pu=b1(pt(Kn,A(M(Zi,1),hc,61,0,[Vn]))),ws=b1(pt(ae,A(M(Zi,1),hc,61,0,[Gn]))),xs=b1(pt(Vn,A(M(Zi,1),hc,61,0,[ae]))),Iu=b1(pt(Kn,A(M(Zi,1),hc,61,0,[Vn,Gn]))),cu=b1(pt(Vn,A(M(Zi,1),hc,61,0,[ae,Gn]))),su=b1(pt(Kn,A(M(Zi,1),hc,61,0,[ae,Gn]))),ku=b1(pt(Kn,A(M(Zi,1),hc,61,0,[Vn,ae]))),Sc=b1(pt(Kn,A(M(Zi,1),hc,61,0,[Vn,ae,Gn])))}function v_n(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O;if(e.b!=0){for(p=new Tt,f=null,v=null,i=Gt(y.Math.floor(y.Math.log(e.b)*y.Math.LOG10E)+1),h=0,O=_e(e,0);O.b!=O.d.c;)for(S=u(Re(O),86),B(v)!==B(k(S,(cc(),Um)))&&(v=Ce(k(S,Um)),h=0),v!=null?f=v+RMn(h++,i):f=RMn(h++,i),H(S,Um,f),C=(r=_e(new X1(S).a.d,0),new e2(r));yj(C.a);)m=u(Re(C.a),188).c,Kt(p,m,p.c.b,p.c),H(m,Um,f);for(g=new we,o=0;o=h){ne(S.b>0),S.a.Xb(S.c=--S.b);break}else m.a>l&&(r?(Zt(r.b,m.b),r.a=y.Math.max(r.a,m.a),Wu(S)):(W(m.b,d),m.c=y.Math.min(m.c,l),m.a=y.Math.max(m.a,h),r=m));r||(r=new i9n,r.c=l,r.a=h,X0(S,r),W(r.b,d))}for(f=e.b,a=0,C=new E(i);C.af?1:0:(n.b&&(n.b._b(c)&&(r=u(n.b.xc(c),19).a),n.b._b(h)&&(f=u(n.b.xc(h),19).a)),rf?1:0)):e.e.c.length!=0&&t.g.c.length!=0?1:-1}function PCe(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,x,_,U,en;for(le(e,oHn,1),m=new X,U=new X,l=new E(n.b);l.a0&&(O-=p),PZ(o,O),a=0,g=new E(o.a);g.a0),f.a.Xb(f.c=--f.b)),h=.4*i*a,!c&&f.be.d.c){if(p=n.c[e.a.d],C=n.c[d.a.d],p==C)continue;jo(lo(ho(ao(fo(new Ns,1),100),p),C))}}}}}function _Z(n){bL();var e,t,i,r,c,o,f,h;if(n==null)return null;if(r=If(n,iu(37)),r<0)return n;for(h=new Yu(n.substr(0,r)),e=F(yu,wg,25,4,15,1),f=0,i=0,o=n.length;rr+2&&uF((Te(r+1,n.length),n.charCodeAt(r+1)),h1n,l1n)&&uF((Te(r+2,n.length),n.charCodeAt(r+2)),h1n,l1n))if(t=tfe((Te(r+1,n.length),n.charCodeAt(r+1)),(Te(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:{sl(h,((e[0]&31)<<6|e[1]&63)&Ut);break}case 3:{sl(h,((e[0]&15)<<12|(e[1]&63)<<6|e[2]&63)&Ut);break}}f=0,i=0}}else{for(c=0;c0){if(o+i>n.length)return!1;f=tM(n.substr(0,o+i),e)}else f=tM(n,e);switch(c){case 71:return f=Qw(n,o,A(M(tn,1),q,2,6,[nKn,eKn]),e),r.e=f,!0;case 77:return g7e(n,e,r,f,o);case 76:return p7e(n,e,r,f,o);case 69:return o6e(n,e,o,r);case 99:return f6e(n,e,o,r);case 97:return f=Qw(n,o,A(M(tn,1),q,2,6,["AM","PM"]),e),r.b=f,!0;case 121:return v7e(n,e,o,f,t,r);case 100:return f<=0?!1:(r.c=f,!0);case 83:return f<0?!1:j2e(f,o,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(oU&&(v.c=U-v.b),W(o.d,new jD(v,gQ(o,v))),$=e==Kn?y.Math.max($,m.b+l.b.rf().b):y.Math.min($,m.b));for($+=e==Kn?n.t:-n.t,O=DQ((o.e=$,o)),O>0&&(u(br(n.b,e),124).a.b=O),a=g.Kc();a.Ob();)l=u(a.Pb(),111),!(!l.c||l.c.d.c.length<=0)&&(v=l.c.i,v.c-=l.e.a,v.d-=l.e.b)}function LCe(n){var e,t,i,r,c,o,f,h,l,a,d,g,p;for(e=new we,h=new ie(n);h.e!=h.i.gc();){for(f=u(oe(h),33),t=new hi,it(DR,f,t),p=new lan,r=u(ts(new $n(null,new Cd(new re(ue(N7(f).a.Kc(),new An)))),hCn(p,ga(new U1,new z1,new W1,A(M(Bu,1),z,132,0,[(lf(),ls)])))),83),$In(t,u(r.xc((qn(),!0)),14),new aan),i=u(ts(gt(u(r.xc(!1),15).Lc(),new dan),ga(new U1,new z1,new W1,A(M(Bu,1),z,132,0,[ls]))),15),o=i.Kc();o.Ob();)c=u(o.Pb(),79),g=mxn(c),g&&(l=u(Vr(Sr(e.f,g)),21),l||(l=RNn(g),_c(e.f,g,l)),Vi(t,l));for(r=u(ts(new $n(null,new Cd(new re(ue(Gh(f).a.Kc(),new An)))),hCn(p,ga(new U1,new z1,new W1,A(M(Bu,1),z,132,0,[ls])))),83),$In(t,u(r.xc(!0),14),new ban),i=u(ts(gt(u(r.xc(!1),15).Lc(),new wan),ga(new U1,new z1,new W1,A(M(Bu,1),z,132,0,[ls]))),15),d=i.Kc();d.Ob();)a=u(d.Pb(),79),g=kxn(a),g&&(l=u(Vr(Sr(e.f,g)),21),l||(l=RNn(g),_c(e.f,g,l)),Vi(t,l))}}function NCe(n,e){oL();var t,i,r,c,o,f,h,l,a,d,g,p,v,m;if(h=fc(n,0)<0,h&&(n=P3(n)),fc(n,0)==0)switch(e){case 0:return"0";case 1:return S4;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 V1,e<0?p.a+="0E+":p.a+="0E",p.a+=e==Bi?"2147483648":""+-e,p.a}a=18,d=F(Ls,Rf,25,a+1,15,1),t=a,m=n;do l=m,m=M7(m,10),d[--t]=ge(qi(48,vl(l,Ni(m,10))))&Ut;while(fc(m,0)!=0);if(r=vl(vl(vl(a,t),e),1),e==0)return h&&(d[--t]=45),Hs(d,t,a-t);if(e>0&&fc(r,-6)>=0){if(fc(r,0)>=0){for(c=t+ge(r),f=a-1;f>=c;f--)d[f+1]=d[f];return d[++c]=46,h&&(d[--t]=45),Hs(d,t,a-t+1)}for(o=2;cO(o,qi(P3(r),1));o++)d[--t]=48;return d[--t]=46,d[--t]=48,h&&(d[--t]=45),Hs(d,t,a-t)}return v=t+1,i=a,g=new R0,h&&(g.a+="-"),i-v>=1?(sl(g,d[t]),g.a+=".",g.a+=Hs(d,t+1,a-t-1)):g.a+=Hs(d,t,a-t),g.a+="E",fc(r,0)>0&&(g.a+="+"),g.a+=""+O5(r),g.a}function BCe(n,e,t){var i,r,c,o,f,h,l,a,d,g,p;if(n.e.a.$b(),n.f.a.$b(),n.c.c=F(Zn,rn,1,0,5,1),n.i.c=F(Zn,rn,1,0,5,1),n.g.a.$b(),e)for(o=new E(e.a);o.a=1&&(_-l>0&&v>=0?(nu(d,d.i+x),eu(d,d.j+h*l)):_-l<0&&p>=0&&(nu(d,d.i+x*_),eu(d,d.j+h)));return gr(n,(Xe(),Za),(Qu(),c=u(xo(o9),9),new ks(c,u(bo(c,c.length),9),0))),new fn(U,a)}function y_n(n){var e,t,i,r,c,o,f,h,l,a,d,g,p,v;if(p=Pt(Ir(u(D((!n.b&&(n.b=new Fn(he,n,4,7)),n.b),0),82))),v=Pt(Ir(u(D((!n.c&&(n.c=new Fn(he,n,5,8)),n.c),0),82))),d=p==v,f=new Li,e=u(hn(n,(wT(),Lhn)),74),e&&e.b>=2){if((!n.a&&(n.a=new V(Mt,n,6,6)),n.a).i==0)t=(ad(),r=new Vy,r),me((!n.a&&(n.a=new V(Mt,n,6,6)),n.a),t);else if((!n.a&&(n.a=new V(Mt,n,6,6)),n.a).i>1)for(g=new b2((!n.a&&(n.a=new V(Mt,n,6,6)),n.a));g.e!=g.i.gc();)p6(g);z7(e,u(D((!n.a&&(n.a=new V(Mt,n,6,6)),n.a),0),202))}if(d)for(i=new ie((!n.a&&(n.a=new V(Mt,n,6,6)),n.a));i.e!=i.i.gc();)for(t=u(oe(i),202),l=new ie((!t.a&&(t.a=new Yt(io,t,5)),t.a));l.e!=l.i.gc();)h=u(oe(l),469),f.a=y.Math.max(f.a,h.a),f.b=y.Math.max(f.b,h.b);for(o=new ie((!n.n&&(n.n=new V(Rr,n,1,7)),n.n));o.e!=o.i.gc();)c=u(oe(o),137),a=u(hn(c,t9),8),a&&Yo(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 RCe(n,e,t){var i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,x,_,U,en,ln;for(O=e.c.length,r=new tg(n.a,t,null,null),ln=F(Ei,pr,25,O,15,1),m=F(Ei,pr,25,O,15,1),v=F(Ei,pr,25,O,15,1),C=0,f=0;fln[h]&&(C=h),d=new E(n.a.b);d.ap&&(c&&(ua(U,g),ua(ln,Q(l.b-1))),Ye=t.b,fi+=g+e,g=0,a=y.Math.max(a,t.b+t.c+se)),nu(f,Ye),eu(f,fi),a=y.Math.max(a,Ye+se+t.c),g=y.Math.max(g,d),Ye+=se+e;if(a=y.Math.max(a,i),Wn=fi+g+t.a,WnHf,wn=y.Math.abs(g.b-v.b)>Hf,(!t&&ln&&wn||t&&(ln||wn))&&Ke(C.a,x)),Vi(C.a,i),i.b==0?g=x:g=(ne(i.b!=0),u(i.c.b.c,8)),iwe(p,d,m),hOn(r)==en&&(Gi(en.i)!=r.a&&(m=new Li,rY(m,Gi(en.i),$)),H(C,I_,m)),A5e(p,C,$),a.a.zc(p,a);Hi(C,_),Ci(C,en)}for(l=a.a.ec().Kc();l.Ob();)h=u(l.Pb(),17),Hi(h,null),Ci(h,null);ce(e)}function j_n(n){var e,t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,x;if(n.gc()==1)return u(n.Xb(0),231);if(n.gc()<=0)return new TC;for(r=n.Kc();r.Ob();){for(t=u(r.Pb(),231),v=0,a=nt,d=nt,h=Bi,l=Bi,p=new E(t.e);p.af&&(O=0,x+=o+S,o=0),Tke(m,t,O,x),e=y.Math.max(e,O+C.a),o=y.Math.max(o,C.b),O+=C.a+S;return m}function E_n(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v;switch(a=new hu,n.a.g){case 3:g=u(k(e.e,(G(),Ua)),15),p=u(k(e.j,Ua),15),v=u(k(e.f,Ua),15),t=u(k(e.e,Og),15),i=u(k(e.j,Og),15),r=u(k(e.f,Og),15),o=new X,Zt(o,g),p.Jc(new pwn),Zt(o,I(p,152)?I2(u(p,152)):I(p,131)?u(p,131).a:I(p,54)?new sd(p):new _0(p)),Zt(o,v),c=new X,Zt(c,t),Zt(c,I(i,152)?I2(u(i,152)):I(i,131)?u(i,131).a:I(i,54)?new sd(i):new _0(i)),Zt(c,r),H(e.f,Ua,o),H(e.f,Og,c),H(e.f,yun,e.f),H(e.e,Ua,null),H(e.e,Og,null),H(e.j,Ua,null),H(e.j,Og,null);break;case 1:Vi(a,e.e.a),Ke(a,e.i.n),Vi(a,va(e.j.a)),Ke(a,e.a.n),Vi(a,e.f.a);break;default:Vi(a,e.e.a),Vi(a,va(e.j.a)),Vi(a,e.f.a)}_s(e.f.a),Vi(e.f.a,a),Hi(e.f,e.e.c),f=u(k(e.e,(nn(),Mr)),74),l=u(k(e.j,Mr),74),h=u(k(e.f,Mr),74),(f||l||h)&&(d=new hu,AW(d,h),AW(d,l),AW(d,f),H(e.f,Mr,d)),Hi(e.j,null),Ci(e.j,null),Hi(e.e,null),Ci(e.e,null),jr(e.a,null),jr(e.i,null),e.g&&E_n(n,e.g)}function qCe(n){vZ();var e,t,i,r,c,o,f,h,l,a,d,g,p,v,m,C;if(n==null||(c=NC(n),v=Ige(c),v%4!=0))return null;if(m=v/4|0,m==0)return F(yu,wg,25,0,15,1);for(d=null,e=0,t=0,i=0,r=0,o=0,f=0,h=0,l=0,p=0,g=0,a=0,d=F(yu,wg,25,m*3,15,1);p>4)<<24>>24,d[g++]=((t&15)<<4|i>>2&15)<<24>>24,d[g++]=(i<<6|r)<<24>>24}return!B9(o=c[a++])||!B9(f=c[a++])?null:(e=Mf[o],t=Mf[f],h=c[a++],l=c[a++],Mf[h]==-1||Mf[l]==-1?h==61&&l==61?t&15?null:(C=F(yu,wg,25,p*3+1,15,1),gc(d,0,C,0,p*3),C[g]=(e<<2|t>>4)<<24>>24,C):h!=61&&l==61?(i=Mf[h],i&3?null:(C=F(yu,wg,25,p*3+2,15,1),gc(d,0,C,0,p*3),C[g++]=(e<<2|t>>4)<<24>>24,C[g]=((t&15)<<4|i>>2&15)<<24>>24,C)):null:(i=Mf[h],r=Mf[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 GCe(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,x,_;for(le(e,oHn,1),v=u(k(n,(nn(),Qh)),218),r=new E(n.b);r.a=2){for(m=!0,g=new E(c.j),t=u(j(g),11),p=null;g.a0&&(r=u(un(C.c.a,U-1),10),o=n.i[r.p],ln=y.Math.ceil(Mw(n.n,r,C)),c=_.a.e-C.d.d-(o.a.e+r.o.b+r.d.a)-ln),l=Ft,U0&&en.a.e.e-en.a.a-(en.b.e.e-en.b.a)<0,v=O.a.e.e-O.a.a-(O.b.e.e-O.b.a)<0&&en.a.e.e-en.a.a-(en.b.e.e-en.b.a)>0,p=O.a.e.e+O.b.aen.b.e.e+en.a.a,x=0,!m&&!v&&(g?c+d>0?x=d:l-i>0&&(x=i):p&&(c+f>0?x=f:l-$>0&&(x=$))),_.a.e+=x,_.b&&(_.d.e+=x),!1))}function T_n(n,e,t){var i,r,c,o,f,h,l,a,d,g;if(i=new ys(e.qf().a,e.qf().b,e.rf().a,e.rf().b),r=new d2,n.c)for(o=new E(e.wf());o.al&&(i.a+=Iyn(F(Ls,Rf,25,-l,15,1))),i.a+="Is",If(h,iu(32))>=0)for(r=0;r=i.o.b/2}else $=!d;$?(S=u(k(i,(G(),mp)),15),S?g?c=S:(r=u(k(i,bp),15),r?S.gc()<=r.gc()?c=S:c=r:(c=new X,H(i,bp,c))):(c=new X,H(i,mp,c))):(r=u(k(i,(G(),bp)),15),r?d?c=r:(S=u(k(i,mp),15),S?r.gc()<=S.gc()?c=r:c=S:(c=new X,H(i,mp,c))):(c=new X,H(i,bp,c))),c.Fc(n),H(n,(G(),_S),t),e.d==t?(Ci(e,null),t.e.c.length+t.g.c.length==0&&Hr(t,null),Bwe(t)):(Hi(e,null),t.e.c.length+t.g.c.length==0&&Hr(t,null)),_s(e.a)}function XCe(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,x,_,U,en,ln,wn,zn,Wn,se,Ye;for($=new Pi(n.b,0),a=e.Kc(),v=0,l=u(a.Pb(),19).a,_=0,t=new hi,en=new Sh;$.b<$.d.gc();){for(S=(ne($.b<$.d.gc()),u($.d.Xb($.c=$.b++),29)),x=new E(S.a);x.a=n.a&&(i=$ye(n,$),a=y.Math.max(a,i.b),x=y.Math.max(x,i.d),W(f,new Si($,i)));for(ln=new X,l=0;l0),C.a.Xb(C.c=--C.b),wn=new Rs(n.b),X0(C,wn),ne(C.b0?(l=0,C&&(l+=f),l+=(wn-1)*o,O&&(l+=f),ln&&O&&(l=y.Math.max(l,D8e(O,o,$,en))),l<$&&!g&&!p&&(Wn=($-l)/2,l=$),x+=l):!g&&!p&&(x+=$),O&&PZ(O,x),U=new E(n.i);U.a0){for(g=a<100?null:new Q1(a),l=new CV(e),v=l.g,S=F(be,Le,25,a,15,1),i=0,x=new Ld(a),r=0;r=0;)if(p!=null?tt(p,v[h]):B(p)===B(v[h])){S.length<=i&&(C=S,S=F(be,Le,25,2*S.length,15,1),gc(C,0,S,0,i)),S[i++]=r,me(x,v[h]);break n}if(p=p,B(p)===B(f))break}}if(l=x,v=x.g,a=i,i>S.length&&(C=S,S=F(be,Le,25,i,15,1),gc(C,0,S,0,i)),i>0){for(O=!0,c=0;c=0;)H2(n,S[o]);if(i!=a){for(r=a;--r>=i;)H2(l,r);C=S,S=F(be,Le,25,i,15,1),gc(C,0,S,0,i)}e=l}}}else for(e=I3e(n,e),r=n.i;--r>=0;)e.Hc(n.g[r])&&(H2(n,r),O=!0);if(O){if(S!=null){for(t=e.gc(),d=t==1?_5(n,4,e.Kc().Pb(),null,S[0],m):_5(n,6,e,S,S[0],m),g=t<100?null:new Q1(t),r=e.Kc();r.Ob();)p=r.Pb(),g=SU(n,u(p,72),g);g?(g.Ei(d),g.Fi()):et(n.e,d)}else{for(g=que(e.gc()),r=e.Kc();r.Ob();)p=r.Pb(),g=SU(n,u(p,72),g);g&&g.Fi()}return!0}else return!1}function ZCe(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O;for(t=new Z$n(e),t.a||Lke(e),l=N7e(e),h=new Od,C=new WNn,m=new E(e.a);m.a0||t.o==yf&&r0?(d=u(un(g.c.a,o-1),10),ln=Mw(n.b,g,d),C=g.n.b-g.d.d-(d.n.b+d.o.b+d.d.a+ln)):C=g.n.b-g.d.d,l=y.Math.min(C,l),oo?p4(n,e,t):p4(n,t,e),ro?1:0}return i=u(k(e,(G(),dc)),19).a,c=u(k(t,dc),19).a,i>c?p4(n,e,t):p4(n,t,e),ic?1:0}function KZ(n,e,t,i){var r,c,o,f,h,l,a,d,g,p,v,m,C,S,$;if(on(sn(hn(e,(Xe(),RP)))))return Pn(),Pn(),cr;if(l=(!e.a&&(e.a=new V(Ot,e,10,11)),e.a).i!=0,d=K6e(e),a=!d.dc(),l||a){if(r=u(hn(e,yv),149),!r)throw T(new pw("Resolved algorithm is not set; apply a LayoutAlgorithmResolver before computing layout."));if($=hz(r,(d4(),YP)),F$n(e),!l&&a&&!$)return Pn(),Pn(),cr;if(h=new X,B(hn(e,Bg))===B((_h(),F1))&&(hz(r,QP)||hz(r,VP)))for(p=gBn(n,e),v=new Tt,Vi(v,(!e.a&&(e.a=new V(Ot,e,10,11)),e.a));v.b!=0;)g=u(v.b==0?null:(ne(v.b!=0),Ts(v,v.a.a)),33),F$n(g),S=B(hn(g,Bg))===B(i9),S||wa(g,Zm)&&!CX(r,hn(g,yv))?(f=KZ(n,g,t,i),Zt(h,f),gr(g,Bg,i9),$Bn(g)):Vi(v,(!g.a&&(g.a=new V(Ot,g,10,11)),g.a));else for(p=(!e.a&&(e.a=new V(Ot,e,10,11)),e.a).i,o=new ie((!e.a&&(e.a=new V(Ot,e,10,11)),e.a));o.e!=o.i.gc();)c=u(oe(o),33),f=KZ(n,c,t,i),Zt(h,f),$Bn(c);for(C=new E(h);C.a=0?p=B2(f):p=b7(B2(f)),n.Ye(dv,p)),l=new Li,g=!1,n.Xe(E0)?(Zz(l,u(n.We(E0),8)),g=!0):Sce(l,o.a/2,o.b/2),p.g){case 4:H(a,qc,(Ss(),xl)),H(a,HS,(ya(),Tg)),a.o.b=o.b,m<0&&(a.o.a=-m),si(d,(J(),Vn)),g||(l.a=o.a),l.a-=o.a;break;case 2:H(a,qc,(Ss(),Ub)),H(a,HS,(ya(),cv)),a.o.b=o.b,m<0&&(a.o.a=-m),si(d,(J(),Gn)),g||(l.a=0);break;case 1:H(a,za,(Nh(),Ag)),a.o.a=o.a,m<0&&(a.o.b=-m),si(d,(J(),ae)),g||(l.b=o.b),l.b-=o.b;break;case 3:H(a,za,(Nh(),dp)),a.o.a=o.a,m<0&&(a.o.b=-m),si(d,(J(),Kn)),g||(l.b=0)}if(Zz(d.n,l),H(a,E0,l),e==td||e==Eh||e==Ac){if(v=0,e==td&&n.Xe(P1))switch(p.g){case 1:case 2:v=u(n.We(P1),19).a;break;case 3:case 4:v=-u(n.We(P1),19).a}else switch(p.g){case 4:case 2:v=c.b,e==Eh&&(v/=r.b);break;case 1:case 3:v=c.a,e==Eh&&(v/=r.a)}H(a,k0,v)}return H(a,ec,p),a}function tTe(n){var e,t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,x,_,U,en,ln,wn;if(t=K(Y(k(n.a.j,(nn(),esn)))),t<-1||!n.a.i||p2(u(k(n.a.o,Lt),98))||zr(n.a.o,(J(),Vn)).gc()<2&&zr(n.a.o,Gn).gc()<2)return!0;if(n.a.c.Rf())return!1;for(_=0,x=0,O=new X,h=n.a.e,l=0,a=h.length;l=t}function iTe(){EG();function n(i){var r=this;this.dispatch=function(c){var o=c.data;switch(o.cmd){case"algorithms":var f=OQ((Pn(),new _p(new Mh(Wl.b))));i.postMessage({id:o.id,data:f});break;case"categories":var h=OQ((Pn(),new _p(new Mh(Wl.c))));i.postMessage({id:o.id,data:h});break;case"options":var l=OQ((Pn(),new _p(new Mh(Wl.d))));i.postMessage({id:o.id,data:l});break;case"register":hEe(o.algorithms),i.postMessage({id:o.id});break;case"layout":Gye(o.graph,o.layoutOptions||{},o.options||{}),i.postMessage({id:o.id,data:o.graph});break}},this.saveDispatch=function(c){try{r.dispatch(c)}catch(o){i.postMessage({id:c.data.id,error:o})}}}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===cN&&typeof self!==cN){var t=new n(self);self.onmessage=t.saveDispatch}else typeof wt!==cN&&wt.exports&&(Object.defineProperty(Vt,"__esModule",{value:!0}),wt.exports={default:e,Worker:e})}function rTe(n){n.N||(n.N=!0,n.b=Yr(n,0),It(n.b,0),It(n.b,1),It(n.b,2),n.bb=Yr(n,1),It(n.bb,0),It(n.bb,1),n.fb=Yr(n,2),It(n.fb,3),It(n.fb,4),dt(n.fb,5),n.qb=Yr(n,3),It(n.qb,0),dt(n.qb,1),dt(n.qb,2),It(n.qb,3),It(n.qb,4),dt(n.qb,5),It(n.qb,6),n.a=Ue(n,4),n.c=Ue(n,5),n.d=Ue(n,6),n.e=Ue(n,7),n.f=Ue(n,8),n.g=Ue(n,9),n.i=Ue(n,10),n.j=Ue(n,11),n.k=Ue(n,12),n.n=Ue(n,13),n.o=Ue(n,14),n.p=Ue(n,15),n.q=Ue(n,16),n.s=Ue(n,17),n.r=Ue(n,18),n.t=Ue(n,19),n.u=Ue(n,20),n.v=Ue(n,21),n.w=Ue(n,22),n.B=Ue(n,23),n.A=Ue(n,24),n.C=Ue(n,25),n.D=Ue(n,26),n.F=Ue(n,27),n.G=Ue(n,28),n.H=Ue(n,29),n.J=Ue(n,30),n.I=Ue(n,31),n.K=Ue(n,32),n.M=Ue(n,33),n.L=Ue(n,34),n.P=Ue(n,35),n.Q=Ue(n,36),n.R=Ue(n,37),n.S=Ue(n,38),n.T=Ue(n,39),n.U=Ue(n,40),n.V=Ue(n,41),n.X=Ue(n,42),n.W=Ue(n,43),n.Y=Ue(n,44),n.Z=Ue(n,45),n.$=Ue(n,46),n._=Ue(n,47),n.ab=Ue(n,48),n.cb=Ue(n,49),n.db=Ue(n,50),n.eb=Ue(n,51),n.gb=Ue(n,52),n.hb=Ue(n,53),n.ib=Ue(n,54),n.jb=Ue(n,55),n.kb=Ue(n,56),n.lb=Ue(n,57),n.mb=Ue(n,58),n.nb=Ue(n,59),n.ob=Ue(n,60),n.pb=Ue(n,61))}function cTe(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,x;if($=0,e.f.a==0)for(C=new E(n);C.al&&(Ln(l,e.c.length),u(e.c[l],200)).a.c.length==0;)Jc(e,(Ln(l,e.c.length),e.c[l]));if(!h){--c;continue}if(zke(e,a,r,h,g,t,l,i)){d=!0;continue}if(g){if(Yye(e,a,r,h,t,l,i)){d=!0;continue}else if(rQ(a,r)){r.c=!0,d=!0;continue}}else if(rQ(a,r)){r.c=!0,d=!0;continue}if(d)continue}if(rQ(a,r)){r.c=!0,d=!0,h&&(h.k=!1);continue}else GT(r.q)}return d}function kL(n,e,t,i,r,c,o){var f,h,l,a,d,g,p,v,m,C,S,$,O,x,_,U,en,ln,wn,zn,Wn,se,Ye,fi;for(m=0,zn=0,l=new E(n.b);l.am&&(c&&(ua(U,p),ua(ln,Q(a.b-1)),W(n.d,v),f.c=F(Zn,rn,1,0,5,1)),Ye=t.b,fi+=p+e,p=0,d=y.Math.max(d,t.b+t.c+se)),f.c[f.c.length]=h,U$n(h,Ye,fi),d=y.Math.max(d,Ye+se+t.c),p=y.Math.max(p,g),Ye+=se+e,v=h;if(Zt(n.a,f),W(n.d,u(un(f,f.c.length-1),157)),d=y.Math.max(d,i),Wn=fi+p+t.a,Wn1&&(o=y.Math.min(o,y.Math.abs(u(qo(f.a,1),8).b-a.b)))));else for(m=new E(e.j);m.ar&&(c=g.a-r,o=nt,i.c=F(Zn,rn,1,0,5,1),r=g.a),g.a>=r&&(i.c[i.c.length]=f,f.a.b>1&&(o=y.Math.min(o,y.Math.abs(u(qo(f.a,f.a.b-2),8).b-g.b)))));if(i.c.length!=0&&c>e.o.a/2&&o>e.o.b/2){for(p=new wc,Hr(p,e),si(p,(J(),Kn)),p.n.a=e.o.a/2,S=new wc,Hr(S,e),si(S,ae),S.n.a=e.o.a/2,S.n.b=e.o.b,h=new E(i);h.a=l.b?Hi(f,S):Hi(f,p)):(l=u(efe(f.a),8),C=f.a.b==0?rf(f.c):u(gE(f.a),8),C.b>=l.b?Ci(f,S):Ci(f,p)),d=u(k(f,(nn(),Mr)),74),d&&db(d,l,!0);e.n.a=r-e.o.a/2}}function hTe(n,e,t){var i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,x,_,U,en,ln,wn,zn,Wn,se,Ye,fi,ps,oo;if(zn=null,se=e,Wn=$An(n,PAn(t),se),Q5(Wn,$h(se,Wf)),Ye=u(xw(n.g,G2(Dh(se,PB))),33),g=Dh(se,"sourcePort"),i=null,g&&(i=G2(g)),fi=u(xw(n.j,i),118),!Ye)throw f=i4(se),v="An edge must have a source node (edge id: '"+f,m=v+K4,T(new Sf(m));if(fi&&!Ff(ef(fi),Ye))throw h=$h(se,Wf),C="The source port of an edge must be a port of the edge's source node (edge id: '"+h,S=C+K4,T(new Sf(S));if(ln=(!Wn.b&&(Wn.b=new Fn(he,Wn,4,7)),Wn.b),c=null,fi?c=fi:c=Ye,me(ln,c),ps=u(xw(n.g,G2(Dh(se,_tn))),33),p=Dh(se,"targetPort"),r=null,p&&(r=G2(p)),oo=u(xw(n.j,r),118),!ps)throw d=i4(se),$="An edge must have a target node (edge id: '"+d,O=$+K4,T(new Sf(O));if(oo&&!Ff(ef(oo),ps))throw l=$h(se,Wf),x="The target port of an edge must be a port of the edge's target node (edge id: '"+l,_=x+K4,T(new Sf(_));if(wn=(!Wn.c&&(Wn.c=new Fn(he,Wn,5,8)),Wn.c),o=null,oo?o=oo:o=ps,me(wn,o),(!Wn.b&&(Wn.b=new Fn(he,Wn,4,7)),Wn.b).i==0||(!Wn.c&&(Wn.c=new Fn(he,Wn,5,8)),Wn.c).i==0)throw a=$h(se,Wf),U=Tqn+a,en=U+K4,T(new Sf(en));return YT(se,Wn),n9e(se,Wn),zn=oF(n,se,Wn),zn}function I_n(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,x,_,U,en,ln,wn,zn;return d=dye(Xc(n,(J(),Cf)),e),v=Uw(Xc(n,Do),e),x=Uw(Xc(n,bs),e),ln=zT(Xc(n,to),e),g=zT(Xc(n,Fs),e),$=Uw(Xc(n,$o),e),m=Uw(Xc(n,Pu),e),U=Uw(Xc(n,ws),e),_=Uw(Xc(n,xs),e),wn=zT(Xc(n,Gc),e),S=Uw(Xc(n,uu),e),O=Uw(Xc(n,Iu),e),en=Uw(Xc(n,cu),e),zn=zT(Xc(n,su),e),p=zT(Xc(n,ku),e),C=Uw(Xc(n,Sc),e),t=Bw(A(M(Ei,1),pr,25,15,[$.a,ln.a,U.a,zn.a])),i=Bw(A(M(Ei,1),pr,25,15,[v.a,d.a,x.a,C.a])),r=S.a,c=Bw(A(M(Ei,1),pr,25,15,[m.a,g.a,_.a,p.a])),l=Bw(A(M(Ei,1),pr,25,15,[$.b,v.b,m.b,O.b])),h=Bw(A(M(Ei,1),pr,25,15,[ln.b,d.b,g.b,C.b])),a=wn.b,f=Bw(A(M(Ei,1),pr,25,15,[U.b,x.b,_.b,en.b])),a1(Xc(n,Cf),t+r,l+a),a1(Xc(n,Sc),t+r,l+a),a1(Xc(n,Do),t+r,0),a1(Xc(n,bs),t+r,l+a+h),a1(Xc(n,to),0,l+a),a1(Xc(n,Fs),t+r+i,l+a),a1(Xc(n,Pu),t+r+i,0),a1(Xc(n,ws),0,l+a+h),a1(Xc(n,xs),t+r+i,l+a+h),a1(Xc(n,Gc),0,l),a1(Xc(n,uu),t,0),a1(Xc(n,cu),0,l+a+h),a1(Xc(n,ku),t+r+i,0),o=new Li,o.a=Bw(A(M(Ei,1),pr,25,15,[t+i+r+c,wn.a,O.a,en.a])),o.b=Bw(A(M(Ei,1),pr,25,15,[l+h+a+f,S.b,zn.b,p.b])),o}function lTe(n){var e,t,i,r,c,o,f,h,l,a,d,g,p,v,m,C;for(m=new X,g=new E(n.d.b);g.ar.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(te(n.f,o.d.i),57),e.bc.d.d+c.d.a?a.f.d=!0:(a.f.d=!0,a.f.a=!0))}for(f=new re(ue(Lr(p).a.Kc(),new An));Se(f);)o=u(ve(f),17),o.a.b!=0&&(e=u(gE(o.a),8),o.d.j==(J(),Kn)&&(C=new P6(e,new fn(e.a,r.d.d),r,o),C.f.a=!0,C.a=o.d,m.c[m.c.length]=C),o.d.j==ae&&(C=new P6(e,new fn(e.a,r.d.d+r.d.a),r,o),C.f.d=!0,C.a=o.d,m.c[m.c.length]=C))}return m}function aTe(n,e,t){var i,r,c,o,f,h,l,a,d;if(le(t,"Network simplex node placement",1),n.e=e,n.n=u(k(e,(G(),Ig)),304),Pje(n),fve(n),Rt(qr(new $n(null,new xn(n.e.b,16)),new Fwn),new E6n(n)),Rt(gt(qr(gt(qr(new $n(null,new xn(n.e.b,16)),new Wwn),new Xwn),new Vwn),new Qwn),new j6n(n)),on(sn(k(n.e,(nn(),Dm))))&&(o=kc(t,1),le(o,"Straight Edges Pre-Processing",1),XEe(n),ce(o)),Gpe(n.f),c=u(k(e,xm),19).a*n.f.a.c.length,Yx(gG(pG(fD(n.f),c),!1),kc(t,1)),n.d.a.gc()!=0){for(o=kc(t,1),le(o,"Flexible Where Space Processing",1),f=u(yd(HE(Vc(new $n(null,new xn(n.f.a,16)),new xwn),new Swn)),19).a,h=u(yd(KE(Vc(new $n(null,new xn(n.f.a,16)),new Lwn),new Pwn)),19).a,l=h-f,a=kd(new ra,n.f),d=kd(new ra,n.f),jo(lo(ho(fo(ao(new Ns,2e4),l),a),d)),Rt(gt(gt(ID(n.i),new Nwn),new Bwn),new kTn(f,a,l,d)),r=n.d.a.ec().Kc();r.Ob();)i=u(r.Pb(),213),i.g=1;Yx(gG(pG(fD(n.f),c),!1),kc(o,1)),ce(o)}on(sn(k(e,Dm)))&&(o=kc(t,1),le(o,"Straight Edges Post-Processing",1),Z5e(n),ce(o)),DEe(n),n.e=null,n.f=null,n.i=null,n.c=null,Cu(n.k),n.j=null,n.a=null,n.o=null,n.d.a.$b(),ce(t)}function dTe(n,e,t){var i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,x,_;for(f=new E(n.a.b);f.a0)if(i=d.gc(),l=Gt(y.Math.floor((i+1)/2))-1,r=Gt(y.Math.ceil((i+1)/2))-1,e.o==yf)for(a=r;a>=l;a--)e.a[x.p]==x&&(m=u(d.Xb(a),46),v=u(m.a,10),!Ah(t,m.b)&&p>n.b.e[v.p]&&(e.a[v.p]=x,e.g[x.p]=e.g[v.p],e.a[x.p]=e.g[x.p],e.f[e.g[x.p].p]=(qn(),!!(on(e.f[e.g[x.p].p])&x.k==(Qn(),pi))),p=n.b.e[v.p]));else for(a=l;a<=r;a++)e.a[x.p]==x&&(S=u(d.Xb(a),46),C=u(S.a,10),!Ah(t,S.b)&&p=v&&($>v&&(p.c=F(Zn,rn,1,0,5,1),v=$),p.c[p.c.length]=o);p.c.length!=0&&(g=u(un(p,_T(e,p.c.length)),128),Wn.a.Bc(g)!=null,g.s=m++,BY(g,wn,U),p.c=F(Zn,rn,1,0,5,1))}for(x=n.c.length+1,f=new E(n);f.azn.s&&(Wu(t),Jc(zn.i,i),i.c>0&&(i.a=zn,W(zn.t,i),i.b=en,W(en.i,i)))}function HZ(n){var e,t,i,r,c;switch(e=n.c,e){case 11:return n.Ml();case 12:return n.Ol();case 14:return n.Ql();case 15:return n.Tl();case 16:return n.Rl();case 17:return n.Ul();case 21:return Qe(n),Je(),Je(),k9;case 10:switch(n.a){case 65:return n.yl();case 90:return n.Dl();case 122:return n.Kl();case 98:return n.El();case 66:return n.zl();case 60:return n.Jl();case 62:return n.Hl()}}switch(c=oTe(n),e=n.c,e){case 3:return n.Zl(c);case 4:return n.Xl(c);case 5:return n.Yl(c);case 0:if(n.a==123&&n.d=48&&e<=57){for(i=e-48;r=48&&e<=57;)if(i=i*10+e-48,i<0)throw T(new Ee(Pe((je(),Utn))))}else throw T(new Ee(Pe((je(),Zqn))));if(t=i,e==44){if(r>=n.j)throw T(new Ee(Pe((je(),eGn))));if((e=Di(n.i,r++))>=48&&e<=57){for(t=e-48;r=48&&e<=57;)if(t=t*10+e-48,t<0)throw T(new Ee(Pe((je(),Utn))));if(i>t)throw T(new Ee(Pe((je(),tGn))))}else t=-1}if(e!=125)throw T(new Ee(Pe((je(),nGn))));n.sl(r)?(c=(Je(),Je(),new ib(9,c)),n.d=r+1):(c=(Je(),Je(),new ib(3,c)),n.d=r),c.dm(i),c.cm(t),Qe(n)}}return c}function O_n(n,e,t,i,r){var c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,x,_,U,en,ln,wn,zn,Wn;for(m=new Pc(e.b),x=new Pc(e.b),g=new Pc(e.b),ln=new Pc(e.b),C=new Pc(e.b),en=_e(e,0);en.b!=en.d.c;)for(_=u(Re(en),11),f=new E(_.g);f.a0,S=_.g.c.length>0,l&&S?g.c[g.c.length]=_:l?m.c[m.c.length]=_:S&&(x.c[x.c.length]=_);for(v=new E(m);v.a1)for(v=new b2((!n.a&&(n.a=new V(Mt,n,6,6)),n.a));v.e!=v.i.gc();)p6(v);for(o=u(D((!n.a&&(n.a=new V(Mt,n,6,6)),n.a),0),202),C=Ye,Ye>_+x?C=_+x:Ye<_-x&&(C=_-x),S=fi,fi>U+m?S=U+m:fi_-x&&C<_+x&&S>U-m&&SYe+se?ln=Ye+se:_fi+en?wn=fi+en:UYe-se&&lnfi-en&&wnt&&(g=t-1),p=Ky+xu(e,24)*uk*d-d/2,p<0?p=1:p>i&&(p=i-1),r=(ad(),h=new Xy,h),UC(r,g),WC(r,p),me((!o.a&&(o.a=new Yt(io,o,5)),o.a),r)}function nn(){nn=N,q_=(Xe(),QZn),Isn=JZn,Zk=yhn,Mo=YZn,jp=jhn,C0=ZZn,nw=Ehn,wv=Chn,gv=Thn,G_=KP,T0=ed,z_=nne,Fm=Shn,rP=Ap,Yk=(zZ(),WVn),Dg=XVn,Qa=VVn,$g=QVn,$Qn=new tr(_P,Q(0)),bv=GVn,Psn=zVn,yp=UVn,Bsn=vQn,Osn=ZVn,Dsn=tQn,W_=fQn,$sn=cQn,Fsn=sQn,cP=jQn,X_=mQn,Lsn=bQn,xsn=aQn,Nsn=gQn,j0=BVn,$m=RVn,B_=tVn,ssn=rVn,Csn=new vd(12),Esn=new tr(nd,Csn),rsn=(Hh(),Cv),Qh=new tr(Jfn,rsn),Jb=new tr(Ru,0),FQn=new tr(tH,Q(1)),zS=new tr(Tp,$4),Va=RP,Lt=n9,dv=Hg,MQn=py,Jf=KZn,Vb=Bg,xQn=new tr(iH,(qn(),!0)),Qb=vy,Wa=VK,Xa=Za,iP=_l,H_=BP,isn=(sr(),kh),as=new tr(A0,isn),y0=_g,eP=uhn,Yb=rw,DQn=eH,Asn=mhn,Msn=(qw(),Cy),new tr(bhn,Msn),PQn=JK,IQn=YK,OQn=ZK,SQn=QK,U_=YVn,vsn=MVn,__=TVn,xm=JVn,qc=vVn,Xb=XXn,Om=WXn,Wb=FXn,nsn=xXn,F_=RXn,Jk=LXn,x_=zXn,msn=AVn,ksn=SVn,dsn=aVn,tP=HVn,K_=OVn,R_=sVn,jsn=LVn,usn=nVn,N_=eVn,$_=LP,ysn=PVn,WS=AXn,Jun=MXn,US=TXn,hsn=hVn,fsn=fVn,lsn=lVn,lv=Kg,Mr=Rg,S1=Zfn,Yf=XK,L_=WK,esn=KXn,P1=nH,Im=GZn,YS=zZn,E0=ghn,Tsn=UZn,av=WZn,wsn=kVn,gsn=jVn,Zb=Mp,O_=CXn,psn=CVn,JS=JXn,QS=QXn,nP=my,bsn=wVn,Dm=$Vn,ny=Mhn,tsn=VXn,Ssn=qVn,csn=YXn,AQn=pVn,TQn=qXn,asn=ihn,ZS=mVn,VS=GXn,Ll=$Xn,Zun=OXn,XS=PXn,Yun=IXn,D_=DXn,kp=SXn,osn=oVn}function jL(n,e){oL();var t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,x,_,U,en,ln,wn,zn,Wn,se,Ye;if(ln=n.e,v=n.d,r=n.a,ln==0)switch(e){case 0:return"0";case 1:return S4;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 U=new V1,e<0?U.a+="0E+":U.a+="0E",U.a+=-e,U.a}if(O=v*10+1+7,x=F(Ls,Rf,25,O+1,15,1),t=O,v==1)if(f=r[0],f<0){Ye=ui(f,fr);do m=Ye,Ye=M7(Ye,10),x[--t]=48+ge(vl(m,Ni(Ye,10)))&Ut;while(fc(Ye,0)!=0)}else{Ye=f;do m=Ye,Ye=Ye/10|0,x[--t]=48+(m-Ye*10)&Ut;while(Ye!=0)}else{zn=F(be,Le,25,v,15,1),se=v,gc(r,0,zn,0,se);n:for(;;){for(en=0,l=se-1;l>=0;l--)Wn=qi(Ih(en,32),ui(zn[l],fr)),S=Cve(Wn),zn[l]=ge(S),en=ge(cl(S,32));$=ge(en),C=t;do x[--t]=48+$%10&Ut;while(($=$/10|0)!=0&&t!=0);for(i=9-C+t,h=0;h0;h++)x[--t]=48;for(d=se-1;zn[d]==0;d--)if(d==0)break n;se=d+1}for(;x[t]==48;)++t}if(p=ln<0,o=O-t-e-1,e==0)return p&&(x[--t]=45),Hs(x,t,O-t);if(e>0&&o>=-6){if(o>=0){for(a=t+o,g=O-1;g>=a;g--)x[g+1]=x[g];return x[++a]=46,p&&(x[--t]=45),Hs(x,t,O-t+1)}for(d=2;d<-o+1;d++)x[--t]=48;return x[--t]=46,x[--t]=48,p&&(x[--t]=45),Hs(x,t,O-t)}return wn=t+1,c=O,_=new R0,p&&(_.a+="-"),c-wn>=1?(sl(_,x[t]),_.a+=".",_.a+=Hs(x,t+1,O-t-1)):_.a+=Hs(x,t,O-t),_.a+="E",o>0&&(_.a+="+"),_.a+=""+o,_.a}function F_n(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,x,_,U;switch(n.c=e,n.g=new we,t=(K0(),new N0(n.c)),i=new tj(t),TQ(i),O=Ce(hn(n.c,(S7(),kfn))),h=u(hn(n.c,BK),316),_=u(hn(n.c,RK),429),o=u(hn(n.c,pfn),482),x=u(hn(n.c,NK),430),n.j=K(Y(hn(n.c,lZn))),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 Hn(bA+(h.f!=null?h.f:""+h.g)))}if(n.d=new rMn(f,_,o),H(n.d,(_3(),pm),sn(hn(n.c,fZn))),n.d.c=on(sn(hn(n.c,vfn))),iC(n.c).i==0)return n.d;for(d=new ie(iC(n.c));d.e!=d.i.gc();){for(a=u(oe(d),33),p=a.g/2,g=a.f/2,U=new fn(a.i+p,a.j+g);Uu(n.g,U);)U0(U,(y.Math.random()-.5)*Hf,(y.Math.random()-.5)*Hf);m=u(hn(a,(Xe(),my)),142),C=new yMn(U,new ys(U.a-p-n.j/2-m.b,U.b-g-n.j/2-m.d,a.g+n.j+(m.b+m.c),a.f+n.j+(m.d+m.a))),W(n.d.i,C),it(n.g,U,new Si(C,a))}switch(x.g){case 0:if(O==null)n.d.d=u(un(n.d.i,0),65);else for($=new E(n.d.i);$.a<$.c.c.length;)C=u(j($),65),v=u(u(te(n.g,C.a),46).b,33).zg(),v!=null&&Mn(v,O)&&(n.d.d=C);break;case 1:for(r=new fn(n.c.g,n.c.f),r.a*=.5,r.b*=.5,U0(r,n.c.i,n.c.j),c=Ft,S=new E(n.d.i);S.a1&&Kt(a,S,a.c.b,a.c),HC(r)));S=$}return a}function kTe(n,e,t){var i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,x,_,U,en,ln,wn,zn,Wn,se,Ye,fi,ps,oo,Af;for(le(t,"Greedy cycle removal",1),O=e.a,Af=O.c.length,n.a=F(be,Le,25,Af,15,1),n.c=F(be,Le,25,Af,15,1),n.b=F(be,Le,25,Af,15,1),l=0,S=new E(O);S.a0?se+1:1);for(o=new E(U.g);o.a0?se+1:1)}n.c[l]==0?Ke(n.e,m):n.a[l]==0&&Ke(n.f,m),++l}for(v=-1,p=1,d=new X,n.d=u(k(e,(G(),vp)),230);Af>0;){for(;n.e.b!=0;)fi=u(aD(n.e),10),n.b[fi.p]=v--,lZ(n,fi),--Af;for(;n.f.b!=0;)ps=u(aD(n.f),10),n.b[ps.p]=p++,lZ(n,ps),--Af;if(Af>0){for(g=Bi,$=new E(O);$.a<$.c.c.length;)m=u(j($),10),n.b[m.p]==0&&(x=n.c[m.p]-n.a[m.p],x>=g&&(x>g&&(d.c=F(Zn,rn,1,0,5,1),g=x),d.c[d.c.length]=m));a=n.Zf(d),n.b[a.p]=p++,lZ(n,a),--Af}}for(Ye=O.c.length+1,l=0;ln.b[oo]&&(e0(i,!0),H(e,Uk,(qn(),!0)));n.a=null,n.c=null,n.b=null,_s(n.f),_s(n.e),ce(t)}function L_n(n,e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S;for(i=new X,f=new X,C=e/2,p=n.gc(),r=u(n.Xb(0),8),S=u(n.Xb(1),8),v=Lx(r.a,r.b,S.a,S.b,C),W(i,(Ln(0,v.c.length),u(v.c[0],8))),W(f,(Ln(1,v.c.length),u(v.c[1],8))),l=2;l=0;h--)Ke(t,(Ln(h,o.c.length),u(o.c[h],8)));return t}function yTe(n){var e,t,i,r,c,o,f,h,l,a,d,g,p;if(o=!0,d=null,i=null,r=null,e=!1,p=Hne,l=null,c=null,f=0,h=HF(n,f,a1n,d1n),h=0&&Mn(n.substr(f,2),"//")?(f+=2,h=HF(n,f,a9,d9),i=n.substr(f,h-f),f=h):d!=null&&(f==n.length||(Te(f,n.length),n.charCodeAt(f)!=47))&&(o=!1,h=qz(n,iu(35),f),h==-1&&(h=n.length),i=n.substr(f,h-f),f=h);if(!t&&f0&&Di(a,a.length-1)==58&&(r=a,f=h)),f=n.j){n.a=-1,n.c=1;return}if(e=Di(n.i,n.d++),n.a=e,n.b==1){switch(e){case 92:if(i=10,n.d>=n.j)throw T(new Ee(Pe((je(),yA))));n.a=Di(n.i,n.d++);break;case 45:(n.e&512)==512&&n.d=n.j||Di(n.i,n.d)!=63)break;if(++n.d>=n.j)throw T(new Ee(Pe((je(),_B))));switch(e=Di(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 Ee(Pe((je(),_B))));if(e=Di(n.i,n.d++),e==61)i=16;else if(e==33)i=17;else throw T(new Ee(Pe((je(),xqn))));break;case 35:for(;n.d=n.j)throw T(new Ee(Pe((je(),yA))));n.a=Di(n.i,n.d++);break;default:i=0}n.c=i}function ETe(n){var e,t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,x,_,U,en,ln,wn,zn,Wn,se;if(en=u(k(n,(nn(),Lt)),98),en!=(Mi(),Ef)&&en!=ql){for(v=n.b,p=v.c.length,a=new Pc((rs(p+2,AL),KC(qi(qi(5,p+2),(p+2)/10|0)))),m=new Pc((rs(p+2,AL),KC(qi(qi(5,p+2),(p+2)/10|0)))),W(a,new we),W(a,new we),W(m,new X),W(m,new X),U=new X,e=0;e=_||!G2e(S,i))&&(i=OMn(e,a)),jr(S,i),c=new re(ue(Lr(S).a.Kc(),new An));Se(c);)r=u(ve(c),17),!n.a[r.p]&&(m=r.c.i,--n.e[m.p],n.e[m.p]==0&&M3(f4(p,m)));for(l=a.c.length-1;l>=0;--l)W(e.b,(Ln(l,a.c.length),u(a.c[l],29)));e.a.c=F(Zn,rn,1,0,5,1),ce(t)}function N_n(n){var e,t,i,r,c,o,f,h,l;for(n.b=1,Qe(n),e=null,n.c==0&&n.a==94?(Qe(n),e=(Je(),Je(),new es(4)),yc(e,0,q4),f=new es(4)):f=(Je(),Je(),new es(4)),r=!0;(l=n.c)!=1;){if(l==0&&n.a==93&&!r){e&&(F6(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:Ab(f,v4(t)),i=!0;break;case 105:case 73:case 99:case 67:t=(Ab(f,v4(t)),-1),t<0&&(i=!0);break;case 112:case 80:if(h=mY(n,t),!h)throw T(new Ee(Pe((je(),KB))));Ab(f,h),i=!0;break;default:t=ZY(n)}else if(l==24&&!r){if(e&&(F6(e,f),f=e),c=N_n(n),F6(f,c),n.c!=0||n.a!=93)throw T(new Ee(Pe((je(),zqn))));break}if(Qe(n),!i){if(l==0){if(t==91)throw T(new Ee(Pe((je(),Gtn))));if(t==93)throw T(new Ee(Pe((je(),ztn))));if(t==45&&!r&&n.a!=93)throw T(new Ee(Pe((je(),HB))))}if(n.c!=0||n.a!=45||t==45&&r)yc(f,t,t);else{if(Qe(n),(l=n.c)==1)throw T(new Ee(Pe((je(),jA))));if(l==0&&n.a==93)yc(f,t,t),yc(f,45,45);else{if(l==0&&n.a==93||l==24)throw T(new Ee(Pe((je(),HB))));if(o=n.a,l==0){if(o==91)throw T(new Ee(Pe((je(),Gtn))));if(o==93)throw T(new Ee(Pe((je(),ztn))));if(o==45)throw T(new Ee(Pe((je(),HB))))}else l==10&&(o=ZY(n));if(Qe(n),t>o)throw T(new Ee(Pe((je(),Xqn))));yc(f,t,o)}}}r=!1}if(n.c==1)throw T(new Ee(Pe((je(),jA))));return Jw(f),D6(f),n.b=0,Qe(n),f}function TTe(n){ke(n.c,xe,A(M(tn,1),q,2,6,[Ri,"http://www.w3.org/2001/XMLSchema#decimal"])),ke(n.d,xe,A(M(tn,1),q,2,6,[Ri,"http://www.w3.org/2001/XMLSchema#integer"])),ke(n.e,xe,A(M(tn,1),q,2,6,[Ri,"http://www.w3.org/2001/XMLSchema#boolean"])),ke(n.f,xe,A(M(tn,1),q,2,6,[Ri,"EBoolean",We,"EBoolean:Object"])),ke(n.i,xe,A(M(tn,1),q,2,6,[Ri,"http://www.w3.org/2001/XMLSchema#byte"])),ke(n.g,xe,A(M(tn,1),q,2,6,[Ri,"http://www.w3.org/2001/XMLSchema#hexBinary"])),ke(n.j,xe,A(M(tn,1),q,2,6,[Ri,"EByte",We,"EByte:Object"])),ke(n.n,xe,A(M(tn,1),q,2,6,[Ri,"EChar",We,"EChar:Object"])),ke(n.t,xe,A(M(tn,1),q,2,6,[Ri,"http://www.w3.org/2001/XMLSchema#double"])),ke(n.u,xe,A(M(tn,1),q,2,6,[Ri,"EDouble",We,"EDouble:Object"])),ke(n.F,xe,A(M(tn,1),q,2,6,[Ri,"http://www.w3.org/2001/XMLSchema#float"])),ke(n.G,xe,A(M(tn,1),q,2,6,[Ri,"EFloat",We,"EFloat:Object"])),ke(n.I,xe,A(M(tn,1),q,2,6,[Ri,"http://www.w3.org/2001/XMLSchema#int"])),ke(n.J,xe,A(M(tn,1),q,2,6,[Ri,"EInt",We,"EInt:Object"])),ke(n.N,xe,A(M(tn,1),q,2,6,[Ri,"http://www.w3.org/2001/XMLSchema#long"])),ke(n.O,xe,A(M(tn,1),q,2,6,[Ri,"ELong",We,"ELong:Object"])),ke(n.Z,xe,A(M(tn,1),q,2,6,[Ri,"http://www.w3.org/2001/XMLSchema#short"])),ke(n.$,xe,A(M(tn,1),q,2,6,[Ri,"EShort",We,"EShort:Object"])),ke(n._,xe,A(M(tn,1),q,2,6,[Ri,"http://www.w3.org/2001/XMLSchema#string"]))}function MTe(n){var e,t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,x,_,U,en,ln,wn,zn,Wn,se;if(n.c.length==1)return Ln(0,n.c.length),u(n.c[0],135);if(n.c.length<=0)return new AC;for(h=new E(n);h.ad&&(Wn=0,se+=a+en,a=0),L9e(_,o,Wn,se),e=y.Math.max(e,Wn+U.a),a=y.Math.max(a,U.b),Wn+=U.a+en;for(x=new we,t=new we,wn=new E(n);wn.aNx(c))&&(d=c);for(!d&&(d=(Ln(0,C.c.length),u(C.c[0],180))),m=new E(e.b);m.a=-1900?1:0,t>=4?De(n,A(M(tn,1),q,2,6,[nKn,eKn])[f]):De(n,A(M(tn,1),q,2,6,["BC","AD"])[f]);break;case 121:kpe(n,t,i);break;case 77:Cke(n,t,i);break;case 107:h=r.q.getHours(),h==0?oh(n,24,t):oh(n,h,t);break;case 83:z9e(n,t,r);break;case 69:a=i.q.getDay(),t==5?De(n,A(M(tn,1),q,2,6,["S","M","T","W","T","F","S"])[a]):t==4?De(n,A(M(tn,1),q,2,6,[KL,HL,qL,GL,zL,UL,WL])[a]):De(n,A(M(tn,1),q,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[a]);break;case 97:r.q.getHours()>=12&&r.q.getHours()<24?De(n,A(M(tn,1),q,2,6,["AM","PM"])[1]):De(n,A(M(tn,1),q,2,6,["AM","PM"])[0]);break;case 104:d=r.q.getHours()%12,d==0?oh(n,12,t):oh(n,d,t);break;case 75:g=r.q.getHours()%12,oh(n,g,t);break;case 72:p=r.q.getHours(),oh(n,p,t);break;case 99:v=i.q.getDay(),t==5?De(n,A(M(tn,1),q,2,6,["S","M","T","W","T","F","S"])[v]):t==4?De(n,A(M(tn,1),q,2,6,[KL,HL,qL,GL,zL,UL,WL])[v]):t==3?De(n,A(M(tn,1),q,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[v]):oh(n,v,1);break;case 76:m=i.q.getMonth(),t==5?De(n,A(M(tn,1),q,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[m]):t==4?De(n,A(M(tn,1),q,2,6,[IL,OL,DL,$L,V2,FL,xL,LL,NL,BL,RL,_L])[m]):t==3?De(n,A(M(tn,1),q,2,6,["Jan","Feb","Mar","Apr",V2,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[m]):oh(n,m+1,t);break;case 81:C=i.q.getMonth()/3|0,t<4?De(n,A(M(tn,1),q,2,6,["Q1","Q2","Q3","Q4"])[C]):De(n,A(M(tn,1),q,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[C]);break;case 100:S=i.q.getDate(),oh(n,S,t);break;case 109:l=r.q.getMinutes(),oh(n,l,t);break;case 115:o=r.q.getSeconds(),oh(n,o,t);break;case 122:t<4?De(n,c.c[0]):De(n,c.c[1]);break;case 118:De(n,c.b);break;case 90:t<3?De(n,F6e(c)):t==3?De(n,N6e(c)):De(n,B6e(c.a));break;default:return!1}return!0}function GZ(n,e,t,i){var r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,x,_,U,en,ln,wn,zn,Wn,se,Ye;if(CBn(e),h=u(D((!e.b&&(e.b=new Fn(he,e,4,7)),e.b),0),82),a=u(D((!e.c&&(e.c=new Fn(he,e,5,8)),e.c),0),82),f=Ir(h),l=Ir(a),o=(!e.a&&(e.a=new V(Mt,e,6,6)),e.a).i==0?null:u(D((!e.a&&(e.a=new V(Mt,e,6,6)),e.a),0),202),en=u(te(n.a,f),10),Wn=u(te(n.a,l),10),ln=null,se=null,I(h,186)&&(U=u(te(n.a,h),299),I(U,11)?ln=u(U,11):I(U,10)&&(en=u(U,10),ln=u(un(en.j,0),11))),I(a,186)&&(zn=u(te(n.a,a),299),I(zn,11)?se=u(zn,11):I(zn,10)&&(Wn=u(zn,10),se=u(un(Wn.j,0),11))),!en||!Wn)throw T(new Gv("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(m=new Pd,Pr(m,e),H(m,(G(),rt),e),H(m,(nn(),Mr),null),p=u(k(i,Mc),21),en==Wn&&p.Fc((or(),Mm)),ln||(_=(ur(),xc),wn=null,o&&Cw(u(k(en,Lt),98))&&(wn=new fn(o.j,o.k),FAn(wn,S8(e)),hSn(wn,t),ob(l,f)&&(_=Su,st(wn,en.n))),ln=jRn(en,wn,_,i)),se||(_=(ur(),Su),Ye=null,o&&Cw(u(k(Wn,Lt),98))&&(Ye=new fn(o.b,o.c),FAn(Ye,S8(e)),hSn(Ye,t)),se=jRn(Wn,Ye,_,Gi(Wn))),Hi(m,ln),Ci(m,se),(ln.e.c.length>1||ln.g.c.length>1||se.e.c.length>1||se.g.c.length>1)&&p.Fc((or(),Tm)),g=new ie((!e.n&&(e.n=new V(Rr,e,1,7)),e.n));g.e!=g.i.gc();)if(d=u(oe(g),137),!on(sn(hn(d,Va)))&&d.a)switch(C=EF(d),W(m.b,C),u(k(C,Yf),272).g){case 1:case 2:p.Fc((or(),sv));break;case 0:p.Fc((or(),uv)),H(C,Yf,(of(),jv))}if(c=u(k(i,Om),314),S=u(k(i,tP),315),r=c==(F2(),qk)||S==(b6(),nK),o&&(!o.a&&(o.a=new Yt(io,o,5)),o.a).i!=0&&r){for($=I7(o),v=new hu,x=_e($,0);x.b!=x.d.c;)O=u(Re(x),8),Ke(v,new kr(O));H(m,gun,v)}return m}function ITe(n){n.gb||(n.gb=!0,n.b=Yr(n,0),It(n.b,18),dt(n.b,19),n.a=Yr(n,1),It(n.a,1),dt(n.a,2),dt(n.a,3),dt(n.a,4),dt(n.a,5),n.o=Yr(n,2),It(n.o,8),It(n.o,9),dt(n.o,10),dt(n.o,11),dt(n.o,12),dt(n.o,13),dt(n.o,14),dt(n.o,15),dt(n.o,16),dt(n.o,17),dt(n.o,18),dt(n.o,19),dt(n.o,20),dt(n.o,21),dt(n.o,22),dt(n.o,23),Cr(n.o),Cr(n.o),Cr(n.o),Cr(n.o),Cr(n.o),Cr(n.o),Cr(n.o),Cr(n.o),Cr(n.o),Cr(n.o),n.p=Yr(n,3),It(n.p,2),It(n.p,3),It(n.p,4),It(n.p,5),dt(n.p,6),dt(n.p,7),Cr(n.p),Cr(n.p),n.q=Yr(n,4),It(n.q,8),n.v=Yr(n,5),dt(n.v,9),Cr(n.v),Cr(n.v),Cr(n.v),n.w=Yr(n,6),It(n.w,2),It(n.w,3),It(n.w,4),dt(n.w,5),n.B=Yr(n,7),dt(n.B,1),Cr(n.B),Cr(n.B),Cr(n.B),n.Q=Yr(n,8),dt(n.Q,0),Cr(n.Q),n.R=Yr(n,9),It(n.R,1),n.S=Yr(n,10),Cr(n.S),Cr(n.S),Cr(n.S),Cr(n.S),Cr(n.S),Cr(n.S),Cr(n.S),Cr(n.S),Cr(n.S),Cr(n.S),Cr(n.S),Cr(n.S),Cr(n.S),Cr(n.S),Cr(n.S),n.T=Yr(n,11),dt(n.T,10),dt(n.T,11),dt(n.T,12),dt(n.T,13),dt(n.T,14),Cr(n.T),Cr(n.T),n.U=Yr(n,12),It(n.U,2),It(n.U,3),dt(n.U,4),dt(n.U,5),dt(n.U,6),dt(n.U,7),Cr(n.U),n.V=Yr(n,13),dt(n.V,10),n.W=Yr(n,14),It(n.W,18),It(n.W,19),It(n.W,20),dt(n.W,21),dt(n.W,22),dt(n.W,23),n.bb=Yr(n,15),It(n.bb,10),It(n.bb,11),It(n.bb,12),It(n.bb,13),It(n.bb,14),It(n.bb,15),It(n.bb,16),dt(n.bb,17),Cr(n.bb),Cr(n.bb),n.eb=Yr(n,16),It(n.eb,2),It(n.eb,3),It(n.eb,4),It(n.eb,5),It(n.eb,6),It(n.eb,7),dt(n.eb,8),dt(n.eb,9),n.ab=Yr(n,17),It(n.ab,0),It(n.ab,1),n.H=Yr(n,18),dt(n.H,0),dt(n.H,1),dt(n.H,2),dt(n.H,3),dt(n.H,4),dt(n.H,5),Cr(n.H),n.db=Yr(n,19),dt(n.db,2),n.c=Ue(n,20),n.d=Ue(n,21),n.e=Ue(n,22),n.f=Ue(n,23),n.i=Ue(n,24),n.g=Ue(n,25),n.j=Ue(n,26),n.k=Ue(n,27),n.n=Ue(n,28),n.r=Ue(n,29),n.s=Ue(n,30),n.t=Ue(n,31),n.u=Ue(n,32),n.fb=Ue(n,33),n.A=Ue(n,34),n.C=Ue(n,35),n.D=Ue(n,36),n.F=Ue(n,37),n.G=Ue(n,38),n.I=Ue(n,39),n.J=Ue(n,40),n.L=Ue(n,41),n.M=Ue(n,42),n.N=Ue(n,43),n.O=Ue(n,44),n.P=Ue(n,45),n.X=Ue(n,46),n.Y=Ue(n,47),n.Z=Ue(n,48),n.$=Ue(n,49),n._=Ue(n,50),n.cb=Ue(n,51),n.K=Ue(n,52))}function Xe(){Xe=N;var n,e;Zm=new kt(GHn),yv=new kt(zHn),Ufn=(fh(),HK),KZn=new In(Oen,Ufn),Tp=new In(ep,null),HZn=new kt(Ttn),Xfn=(vb(),pt(zK,A(M(UK,1),z,291,0,[GK]))),LP=new In(sA,Xfn),py=new In(mk,(qn(),!1)),Vfn=(sr(),kh),A0=new In(Fen,Vfn),Yfn=(Hh(),rH),Jfn=new In(pk,Yfn),ehn=new In(dA,!1),thn=(_h(),HP),Bg=new In(uA,thn),ahn=new vd(12),nd=new In(u0,ahn),NP=new In(lk,!1),ihn=new In(cB,!1),ky=new In(G6,!1),phn=(Mi(),ql),n9=new In(CN,phn),Mp=new kt(oA),_P=new kt(hk),tH=new kt(HM),iH=new kt(q6),rhn=new hu,Rg=new In(qen,rhn),GZn=new In(Uen,!1),zZn=new In(Wen,!1),chn=new Bv,my=new In(Ven,chn),RP=new In(Pen,!1),VZn=new In(UHn,1),new In(WHn,!0),Q(0),new In(XHn,Q(100)),new In(VHn,!1),Q(0),new In(QHn,Q(4e3)),Q(0),new In(JHn,Q(400)),new In(YHn,!1),new In(ZHn,!1),new In(nqn,!0),new In(eqn,!1),Wfn=(AT(),oH),qZn=new In(Ctn,Wfn),QZn=new In(pen,10),JZn=new In(ven,10),yhn=new In(vN,20),YZn=new In(men,10),jhn=new In(EN,2),ZZn=new In(ken,10),Ehn=new In(yen,0),KP=new In(Cen,5),Chn=new In(jen,1),Thn=new In(Een,1),ed=new In(Db,20),nne=new In(Ten,10),Shn=new In(Men,10),Ap=new kt(Aen),Ahn=new uyn,Mhn=new In(Qen,Ahn),WZn=new kt(rB),dhn=!1,UZn=new In(iB,dhn),shn=new vd(5),uhn=new In(xen,shn),ohn=(jb(),e=u(xo(lr),9),new ks(e,u(bo(e,e.length),9),0)),_g=new In(F4,ohn),whn=(qw(),Hl),bhn=new In(Ben,whn),JK=new kt(Ren),YK=new kt(_en),ZK=new kt(Ken),QK=new kt(Hen),fhn=(n=u(xo(o9),9),new ks(n,u(bo(n,n.length),9),0)),Za=new In(hg,fhn),lhn=Cn((Lu(),Mv)),_l=new In(tp,lhn),hhn=new fn(0,0),Kg=new In(ip,hhn),BP=new In(tB,!1),Qfn=(of(),jv),XK=new In(Gen,Qfn),WK=new In(qM,!1),Q(1),new In(tqn,null),ghn=new kt(Xen),nH=new kt(zen),khn=(J(),Xr),Hg=new In(Ien,khn),Ru=new kt(Sen),vhn=(Mu(),Cn(Gl)),rw=new In(x4,vhn),eH=new In(Len,!1),mhn=new In(Nen,!0),vy=new In(Den,!1),VK=new In($en,!1),Zfn=new In(mN,1),nhn=(ZT(),uH),new In(iqn,nhn),XZn=!0}function G(){G=N;var n,e;rt=new kt(Ann),aun=new kt("coordinateOrigin"),S_=new kt("processors"),lun=new ri("compoundNode",(qn(),!1)),Wk=new ri("insideConnections",!1),gun=new kt("originalBendpoints"),pun=new kt("originalDummyNodePosition"),vun=new kt("originalLabelEdge"),Vk=new kt("representedLabels"),Am=new kt("endLabels"),wp=new kt("endLabel.origin"),pp=new ri("labelSide",(us(),Ey)),Sg=new ri("maxEdgeThickness",0),kf=new ri("reversed",!1),vp=new kt(RKn),Xo=new ri("longEdgeSource",null),Ys=new ri("longEdgeTarget",null),zb=new ri("longEdgeHasLabelDummies",!1),Xk=new ri("longEdgeBeforeLabelDummy",!1),HS=new ri("edgeConstraint",(ya(),l_)),m0=new kt("inLayerLayoutUnit"),za=new ri("inLayerConstraint",(Nh(),zk)),gp=new ri("inLayerSuccessorConstraint",new X),wun=new ri("inLayerSuccessorConstraintBetweenNonDummies",!1),Au=new kt("portDummy"),KS=new ri("crossingHint",Q(0)),Mc=new ri("graphProperties",(e=u(xo(v_),9),new ks(e,u(bo(e,e.length),9),0))),ec=new ri("externalPortSide",(J(),Xr)),bun=new ri("externalPortSize",new Li),E_=new kt("externalPortReplacedDummies"),qS=new kt("externalPortReplacedDummy"),Gb=new ri("externalPortConnections",(n=u(xo(Zi),9),new ks(n,u(bo(n,n.length),9),0))),k0=new ri(OKn,0),hun=new kt("barycenterAssociates"),mp=new kt("TopSideComments"),bp=new kt("BottomSideComments"),_S=new kt("CommentConnectionPort"),T_=new ri("inputCollect",!1),A_=new ri("outputCollect",!1),Uk=new ri("cyclic",!1),dun=new kt("crossHierarchyMap"),I_=new kt("targetOffset"),new ri("splineLabelSize",new Li),Ig=new kt("spacings"),GS=new ri("partitionConstraint",!1),p0=new kt("breakingPoint.info"),yun=new kt("splines.survivingEdge"),Ua=new kt("splines.route.start"),Og=new kt("splines.edgeChain"),kun=new kt("originalPortConstraints"),fv=new kt("selfLoopHolder"),hv=new kt("splines.nsPortY"),dc=new kt("modelOrder"),M_=new kt("longEdgeTargetNode"),v0=new ri(aHn,!1),Pg=new ri(aHn,!1),C_=new kt("layerConstraints.hiddenNodes"),mun=new kt("layerConstraints.opposidePort"),P_=new kt("targetNode.modelOrder")}function zZ(){zZ=N,Dun=(V8(),$S),VXn=new In(xnn,Dun),sVn=new In(Lnn,(qn(),!1)),Bun=(kC(),j_),aVn=new In(WM,Bun),AVn=new In(Nnn,!1),SVn=new In(Bnn,!0),CXn=new In(Rnn,!1),Uun=(z8(),iK),qVn=new In(_nn,Uun),Q(1),JVn=new In(Knn,Q(7)),YVn=new In(Hnn,!1),oVn=new In(qnn,!1),Oun=(Pa(),f_),XXn=new In(IN,Oun),Kun=(JT(),Q_),MVn=new In(wk,Kun),Run=(Ss(),Qk),vVn=new In(Gnn,Run),Q(-1),pVn=new In(znn,Q(-1)),Q(-1),mVn=new In(Unn,Q(-1)),Q(-1),kVn=new In(ON,Q(4)),Q(-1),jVn=new In(DN,Q(2)),_un=(Zw(),hP),TVn=new In($N,_un),Q(0),CVn=new In(FN,Q(0)),wVn=new In(xN,Q(nt)),Iun=(F2(),ap),WXn=new In(X6,Iun),FXn=new In(Wnn,!1),KXn=new In(LN,.1),zXn=new In(NN,!1),Q(-1),qXn=new In(Xnn,Q(-1)),Q(-1),GXn=new In(Vnn,Q(-1)),Q(0),xXn=new In(Qnn,Q(40)),Pun=(q3(),k_),RXn=new In(BN,Pun),Sun=Gk,LXn=new In(XM,Sun),zun=(b6(),Lm),HVn=new In(lg,zun),$Vn=new kt(VM),Hun=(K8(),xS),PVn=new In(RN,Hun),qun=(A7(),LS),OVn=new In(_N,qun),LVn=new In(KN,.3),BVn=new kt(HN),Gun=(wb(),fP),RVn=new In(qN,Gun),xun=(oT(),cK),nVn=new In(Jnn,xun),Lun=(x8(),uK),eVn=new In(Ynn,Lun),Nun=(Q3(),Rm),tVn=new In(QM,Nun),rVn=new In(JM,.2),YXn=new In(GN,2),WVn=new In(Znn,null),VVn=new In(nen,10),XVn=new In(een,10),QVn=new In(ten,20),Q(0),GVn=new In(ien,Q(0)),Q(0),zVn=new In(ren,Q(0)),Q(0),UVn=new In(cen,Q(0)),TXn=new In(zN,!1),Cun=(h4(),Cm),AXn=new In(uen,Cun),Eun=(OC(),s_),MXn=new In(sen,Eun),hVn=new In(YM,!1),Q(0),fVn=new In(UN,Q(16)),Q(0),lVn=new In(WN,Q(5)),Vun=(dT(),fK),vQn=new In(Vh,Vun),ZVn=new In(ZM,10),tQn=new In(nA,1),Xun=(VC(),DS),fQn=new In(V6,Xun),cQn=new kt(XN),Wun=Q(1),Q(0),sQn=new In(VN,Wun),Qun=(uT(),oK),jQn=new In(eA,Qun),mQn=new kt(tA),bQn=new In(iA,!0),aQn=new In(rA,2),gQn=new In(QN,!0),Fun=(eM(),FS),JXn=new In(oen,Fun),$un=(q2(),iv),QXn=new In(fen,$un),Aun=(Rh(),Nl),$Xn=new In(cA,Aun),DXn=new In(hen,!1),Tun=(qd(),yg),SXn=new In(JN,Tun),Mun=(i6(),J_),OXn=new In(len,Mun),PXn=new In(YN,0),IXn=new In(ZN,0),bVn=h_,dVn=qk,yVn=sP,EVn=sP,gVn=V_,HXn=(_h(),F1),UXn=ap,_Xn=ap,NXn=ap,BXn=F1,FVn=Nm,xVn=Lm,IVn=Lm,DVn=Lm,NVn=eK,KVn=Nm,_Vn=Nm,iVn=(Hh(),Sp),cVn=Sp,uVn=Rm,ZXn=yy,nQn=pv,eQn=ew,iQn=pv,rQn=ew,hQn=pv,lQn=ew,uQn=o_,oQn=DS,EQn=pv,CQn=ew,kQn=pv,yQn=ew,wQn=ew,dQn=ew,pQn=ew}function rr(){rr=N,fcn=new zt("DIRECTION_PREPROCESSOR",0),ucn=new zt("COMMENT_PREPROCESSOR",1),mm=new zt("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2),WR=new zt("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3),Scn=new zt("PARTITION_PREPROCESSOR",4),dS=new zt("LABEL_DUMMY_INSERTER",5),ES=new zt("SELF_LOOP_PREPROCESSOR",6),Z4=new zt("LAYER_CONSTRAINT_PREPROCESSOR",7),Mcn=new zt("PARTITION_MIDPROCESSOR",8),pcn=new zt("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9),Ccn=new zt("NODE_PROMOTION",10),Y4=new zt("LAYER_CONSTRAINT_POSTPROCESSOR",11),Acn=new zt("PARTITION_POSTPROCESSOR",12),bcn=new zt("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13),Pcn=new zt("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14),ncn=new zt("BREAKING_POINT_INSERTER",15),pS=new zt("LONG_EDGE_SPLITTER",16),XR=new zt("PORT_SIDE_PROCESSOR",17),lS=new zt("INVERTED_PORT_PROCESSOR",18),kS=new zt("PORT_LIST_SORTER",19),Ocn=new zt("SORT_BY_INPUT_ORDER_OF_MODEL",20),mS=new zt("NORTH_SOUTH_PORT_PREPROCESSOR",21),ecn=new zt("BREAKING_POINT_PROCESSOR",22),Tcn=new zt(rHn,23),Dcn=new zt(cHn,24),yS=new zt("SELF_LOOP_PORT_RESTORER",25),Icn=new zt("SINGLE_EDGE_GRAPH_WRAPPER",26),aS=new zt("IN_LAYER_CONSTRAINT_PROCESSOR",27),lcn=new zt("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",28),jcn=new zt("LABEL_AND_NODE_SIZE_PROCESSOR",29),ycn=new zt("INNERMOST_NODE_MARGIN_CALCULATOR",30),CS=new zt("SELF_LOOP_ROUTER",31),rcn=new zt("COMMENT_NODE_MARGIN_CALCULATOR",32),hS=new zt("END_LABEL_PREPROCESSOR",33),wS=new zt("LABEL_DUMMY_SWITCHER",34),icn=new zt("CENTER_LABEL_MANAGEMENT_PROCESSOR",35),J4=new zt("LABEL_SIDE_SELECTOR",36),mcn=new zt("HYPEREDGE_DUMMY_MERGER",37),wcn=new zt("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",38),Ecn=new zt("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",39),km=new zt("HIERARCHICAL_PORT_POSITION_PROCESSOR",40),scn=new zt("CONSTRAINTS_POSTPROCESSOR",41),ccn=new zt("COMMENT_POSTPROCESSOR",42),kcn=new zt("HYPERNODE_PROCESSOR",43),gcn=new zt("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",44),gS=new zt("LONG_EDGE_JOINER",45),jS=new zt("SELF_LOOP_POSTPROCESSOR",46),tcn=new zt("BREAKING_POINT_REMOVER",47),vS=new zt("NORTH_SOUTH_PORT_POSTPROCESSOR",48),vcn=new zt("HORIZONTAL_COMPACTOR",49),bS=new zt("LABEL_DUMMY_REMOVER",50),acn=new zt("FINAL_SPLINE_BENDPOINTS_CALCULATOR",51),hcn=new zt("END_LABEL_SORTER",52),Kk=new zt("REVERSED_EDGE_RESTORER",53),fS=new zt("END_LABEL_POSTPROCESSOR",54),dcn=new zt("HIERARCHICAL_NODE_RESIZER",55),ocn=new zt("DIRECTION_POSTPROCESSOR",56)}function OTe(n,e,t){var i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,x,_,U,en,ln,wn,zn,Wn,se,Ye,fi,ps,oo,Af,hI,Ky,y9,Hy,Ov,CH,Ree,TH,_1,$0,Dv,qy,Gy,Fp,MH,j9,_ee,W1n,F0,E9,AH,xp,C9,bw,T9,SH,Kee;for(W1n=0,Ye=e,oo=0,Ky=Ye.length;oo0&&(n.a[_1.p]=W1n++)}for(C9=0,fi=t,Af=0,y9=fi.length;Af0;){for(_1=(ne(Gy.b>0),u(Gy.a.Xb(Gy.c=--Gy.b),11)),qy=0,f=new E(_1.e);f.a0&&(_1.j==(J(),Kn)?(n.a[_1.p]=C9,++C9):(n.a[_1.p]=C9+Hy+CH,++CH))}C9+=CH}for(Dv=new we,v=new Sh,se=e,ps=0,hI=se.length;psl.b&&(l.b=Fp)):_1.i.c==_ee&&(Fpl.c&&(l.c=Fp));for(S3(m,0,m.length,null),xp=F(be,Le,25,m.length,15,1),i=F(be,Le,25,C9+1,15,1),S=0;S0;)en%2>0&&(r+=SH[en+1]),en=(en-1)/2|0,++SH[en];for(wn=F(dJn,rn,362,m.length*2,0,1),x=0;x'?":Mn(xqn,n)?"'(?<' or '(? toIndex: ",rnn=", toIndex: ",cnn="Index: ",unn=", Size: ",P4="org.eclipse.elk.alg.common",lt={62:1},dKn="org.eclipse.elk.alg.common.compaction",bKn="Scanline/EventHandler",wh="org.eclipse.elk.alg.common.compaction.oned",wKn="CNode belongs to another CGroup.",gKn="ISpacingsHandler/1",uN="The ",sN=" instance has been finished already.",pKn="The direction ",vKn=" is not supported by the CGraph instance.",mKn="OneDimensionalCompactor",kKn="OneDimensionalCompactor/lambda$0$Type",yKn="Quadruplet",jKn="ScanlineConstraintCalculator",EKn="ScanlineConstraintCalculator/ConstraintsScanlineHandler",CKn="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",TKn="ScanlineConstraintCalculator/Timestamp",MKn="ScanlineConstraintCalculator/lambda$0$Type",_f={169:1,45:1},oN="org.eclipse.elk.alg.common.compaction.options",Wr="org.eclipse.elk.core.data",snn="org.eclipse.elk.polyomino.traversalStrategy",onn="org.eclipse.elk.polyomino.lowLevelSort",fnn="org.eclipse.elk.polyomino.highLevelSort",hnn="org.eclipse.elk.polyomino.fill",zs={130:1},fN="polyomino",_6="org.eclipse.elk.alg.common.networksimplex",gh={177:1,3:1,4:1},AKn="org.eclipse.elk.alg.common.nodespacing",Fa="org.eclipse.elk.alg.common.nodespacing.cellsystem",I4="CENTER",SKn={212:1,326:1},lnn={3:1,4:1,5:1,595:1},Y2="LEFT",Z2="RIGHT",ann="Vertical alignment cannot be null",dnn="BOTTOM",LM="org.eclipse.elk.alg.common.nodespacing.internal",K6="UNDEFINED",wf=.01,sk="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",PKn="LabelPlacer/lambda$0$Type",IKn="LabelPlacer/lambda$1$Type",OKn="portRatioOrPosition",O4="org.eclipse.elk.alg.common.overlaps",hN="DOWN",Kf="org.eclipse.elk.alg.common.polyomino",NM="NORTH",lN="EAST",aN="SOUTH",dN="WEST",BM="org.eclipse.elk.alg.common.polyomino.structures",bnn="Direction",bN="Grid is only of size ",wN=". Requested point (",gN=") is out of bounds.",RM=" Given center based coordinates were (",ok="org.eclipse.elk.graph.properties",DKn="IPropertyHolder",wnn={3:1,94:1,134:1},np="org.eclipse.elk.alg.common.spore",$Kn="org.eclipse.elk.alg.common.utils",xa={209:1},og="org.eclipse.elk.core",FKn="Connected Components Compaction",xKn="org.eclipse.elk.alg.disco",_M="org.eclipse.elk.alg.disco.graph",pN="org.eclipse.elk.alg.disco.options",gnn="CompactionStrategy",pnn="org.eclipse.elk.disco.componentCompaction.strategy",vnn="org.eclipse.elk.disco.componentCompaction.componentLayoutAlgorithm",mnn="org.eclipse.elk.disco.debug.discoGraph",knn="org.eclipse.elk.disco.debug.discoPolys",LKn="componentCompaction",La="org.eclipse.elk.disco",vN="org.eclipse.elk.spacing.componentComponent",mN="org.eclipse.elk.edge.thickness",ep="org.eclipse.elk.aspectRatio",u0="org.eclipse.elk.padding",fg="org.eclipse.elk.alg.disco.transform",kN=1.5707963267948966,D4=17976931348623157e292,Ob={3:1,4:1,5:1,192:1},ynn={3:1,6:1,4:1,5:1,106:1,120:1},jnn="org.eclipse.elk.alg.force",Enn="ComponentsProcessor",NKn="ComponentsProcessor/1",fk="org.eclipse.elk.alg.force.graph",BKn="Component Layout",Cnn="org.eclipse.elk.alg.force.model",KM="org.eclipse.elk.force.model",Tnn="org.eclipse.elk.force.iterations",Mnn="org.eclipse.elk.force.repulsivePower",yN="org.eclipse.elk.force.temperature",Hf=.001,jN="org.eclipse.elk.force.repulsion",H6="org.eclipse.elk.alg.force.options",$4=1.600000023841858,fs="org.eclipse.elk.force",hk="org.eclipse.elk.priority",Db="org.eclipse.elk.spacing.nodeNode",EN="org.eclipse.elk.spacing.edgeLabel",HM="org.eclipse.elk.randomSeed",q6="org.eclipse.elk.separateConnectedComponents",lk="org.eclipse.elk.interactive",CN="org.eclipse.elk.portConstraints",qM="org.eclipse.elk.edgeLabels.inline",G6="org.eclipse.elk.omitNodeMicroLayout",tp="org.eclipse.elk.nodeSize.options",hg="org.eclipse.elk.nodeSize.constraints",F4="org.eclipse.elk.nodeLabels.placement",x4="org.eclipse.elk.portLabels.placement",Ann="origin",RKn="random",_Kn="boundingBox.upLeft",KKn="boundingBox.lowRight",Snn="org.eclipse.elk.stress.fixed",Pnn="org.eclipse.elk.stress.desiredEdgeLength",Inn="org.eclipse.elk.stress.dimension",Onn="org.eclipse.elk.stress.epsilon",Dnn="org.eclipse.elk.stress.iterationLimit",Ml="org.eclipse.elk.stress",HKn="ELK Stress",ip="org.eclipse.elk.nodeSize.minimum",GM="org.eclipse.elk.alg.force.stress",qKn="Layered layout",rp="org.eclipse.elk.alg.layered",ak="org.eclipse.elk.alg.layered.compaction.components",z6="org.eclipse.elk.alg.layered.compaction.oned",zM="org.eclipse.elk.alg.layered.compaction.oned.algs",Na="org.eclipse.elk.alg.layered.compaction.recthull",qf="org.eclipse.elk.alg.layered.components",Xh="NONE",hc={3:1,6:1,4:1,9:1,5:1,122:1},GKn={3:1,6:1,4:1,5:1,141:1,106:1,120:1},UM="org.eclipse.elk.alg.layered.compound",xt={51:1},$c="org.eclipse.elk.alg.layered.graph",TN=" -> ",zKn="Not supported by LGraph",$nn="Port side is undefined",MN={3:1,6:1,4:1,5:1,474:1,141:1,106:1,120:1},E1={3:1,6:1,4:1,5:1,141:1,193:1,203:1,106:1,120:1},UKn={3:1,6:1,4:1,5:1,141:1,1943:1,203:1,106:1,120:1},WKn=`([{"' \r +`,XKn=`)]}"' \r +`,VKn="The given string contains parts that cannot be parsed as numbers.",dk="org.eclipse.elk.core.math",QKn={3:1,4:1,142:1,207:1,414:1},JKn={3:1,4:1,116:1,207:1,414:1},Jn="org.eclipse.elk.layered",C1="org.eclipse.elk.alg.layered.graph.transform",YKn="ElkGraphImporter",ZKn="ElkGraphImporter/lambda$0$Type",nHn="ElkGraphImporter/lambda$1$Type",eHn="ElkGraphImporter/lambda$2$Type",tHn="ElkGraphImporter/lambda$4$Type",iHn="Node margin calculation",Un="org.eclipse.elk.alg.layered.intermediate",rHn="ONE_SIDED_GREEDY_SWITCH",cHn="TWO_SIDED_GREEDY_SWITCH",AN="No implementation is available for the layout processor ",Fnn="IntermediateProcessorStrategy",SN="Node '",uHn="FIRST_SEPARATE",sHn="LAST_SEPARATE",oHn="Odd port side processing",Jt="org.eclipse.elk.alg.layered.intermediate.compaction",U6="org.eclipse.elk.alg.layered.intermediate.greedyswitch",ph="org.eclipse.elk.alg.layered.p3order.counting",bk={225:1},cp="org.eclipse.elk.alg.layered.intermediate.loops",hs="org.eclipse.elk.alg.layered.intermediate.loops.ordering",Al="org.eclipse.elk.alg.layered.intermediate.loops.routing",W6="org.eclipse.elk.alg.layered.intermediate.preserveorder",Gf="org.eclipse.elk.alg.layered.intermediate.wrapping",lc="org.eclipse.elk.alg.layered.options",PN="INTERACTIVE",fHn="DEPTH_FIRST",hHn="EDGE_LENGTH",lHn="SELF_LOOPS",aHn="firstTryWithInitialOrder",xnn="org.eclipse.elk.layered.directionCongruency",Lnn="org.eclipse.elk.layered.feedbackEdges",WM="org.eclipse.elk.layered.interactiveReferencePoint",Nnn="org.eclipse.elk.layered.mergeEdges",Bnn="org.eclipse.elk.layered.mergeHierarchyEdges",Rnn="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",_nn="org.eclipse.elk.layered.portSortingStrategy",Knn="org.eclipse.elk.layered.thoroughness",Hnn="org.eclipse.elk.layered.unnecessaryBendpoints",qnn="org.eclipse.elk.layered.generatePositionAndLayerIds",IN="org.eclipse.elk.layered.cycleBreaking.strategy",wk="org.eclipse.elk.layered.layering.strategy",Gnn="org.eclipse.elk.layered.layering.layerConstraint",znn="org.eclipse.elk.layered.layering.layerChoiceConstraint",Unn="org.eclipse.elk.layered.layering.layerId",ON="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",DN="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",$N="org.eclipse.elk.layered.layering.nodePromotion.strategy",FN="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",xN="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",X6="org.eclipse.elk.layered.crossingMinimization.strategy",Wnn="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",LN="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",NN="org.eclipse.elk.layered.crossingMinimization.semiInteractive",Xnn="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",Vnn="org.eclipse.elk.layered.crossingMinimization.positionId",Qnn="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",BN="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",XM="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",lg="org.eclipse.elk.layered.nodePlacement.strategy",VM="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",RN="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",_N="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",KN="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",HN="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",qN="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",Jnn="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",Ynn="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",QM="org.eclipse.elk.layered.edgeRouting.splines.mode",JM="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",GN="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",Znn="org.eclipse.elk.layered.spacing.baseValue",nen="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",een="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",ten="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",ien="org.eclipse.elk.layered.priority.direction",ren="org.eclipse.elk.layered.priority.shortness",cen="org.eclipse.elk.layered.priority.straightness",zN="org.eclipse.elk.layered.compaction.connectedComponents",uen="org.eclipse.elk.layered.compaction.postCompaction.strategy",sen="org.eclipse.elk.layered.compaction.postCompaction.constraints",YM="org.eclipse.elk.layered.highDegreeNodes.treatment",UN="org.eclipse.elk.layered.highDegreeNodes.threshold",WN="org.eclipse.elk.layered.highDegreeNodes.treeHeight",Vh="org.eclipse.elk.layered.wrapping.strategy",ZM="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",nA="org.eclipse.elk.layered.wrapping.correctionFactor",V6="org.eclipse.elk.layered.wrapping.cutting.strategy",XN="org.eclipse.elk.layered.wrapping.cutting.cuts",VN="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",eA="org.eclipse.elk.layered.wrapping.validify.strategy",tA="org.eclipse.elk.layered.wrapping.validify.forbiddenIndices",iA="org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",rA="org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty",QN="org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges",oen="org.eclipse.elk.layered.edgeLabels.sideSelection",fen="org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy",cA="org.eclipse.elk.layered.considerModelOrder.strategy",hen="org.eclipse.elk.layered.considerModelOrder.noModelOrder",JN="org.eclipse.elk.layered.considerModelOrder.components",len="org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy",YN="org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence",ZN="org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence",nB="layering",dHn="layering.minWidth",bHn="layering.nodePromotion",gk="crossingMinimization",uA="org.eclipse.elk.hierarchyHandling",wHn="crossingMinimization.greedySwitch",gHn="nodePlacement",pHn="nodePlacement.bk",vHn="edgeRouting",pk="org.eclipse.elk.edgeRouting",gf="spacing",aen="priority",den="compaction",mHn="compaction.postCompaction",kHn="Specifies whether and how post-process compaction is applied.",ben="highDegreeNodes",wen="wrapping",yHn="wrapping.cutting",jHn="wrapping.validify",gen="wrapping.multiEdge",eB="edgeLabels",vk="considerModelOrder",pen="org.eclipse.elk.spacing.commentComment",ven="org.eclipse.elk.spacing.commentNode",men="org.eclipse.elk.spacing.edgeEdge",ken="org.eclipse.elk.spacing.edgeNode",yen="org.eclipse.elk.spacing.labelLabel",jen="org.eclipse.elk.spacing.labelPortHorizontal",Een="org.eclipse.elk.spacing.labelPortVertical",Cen="org.eclipse.elk.spacing.labelNode",Ten="org.eclipse.elk.spacing.nodeSelfLoop",Men="org.eclipse.elk.spacing.portPort",Aen="org.eclipse.elk.spacing.individual",Sen="org.eclipse.elk.port.borderOffset",Pen="org.eclipse.elk.noLayout",Ien="org.eclipse.elk.port.side",mk="org.eclipse.elk.debugMode",Oen="org.eclipse.elk.alignment",Den="org.eclipse.elk.insideSelfLoops.activate",$en="org.eclipse.elk.insideSelfLoops.yo",tB="org.eclipse.elk.nodeSize.fixedGraphSize",Fen="org.eclipse.elk.direction",xen="org.eclipse.elk.nodeLabels.padding",Len="org.eclipse.elk.portLabels.nextToPortIfPossible",Nen="org.eclipse.elk.portLabels.treatAsGroup",Ben="org.eclipse.elk.portAlignment.default",Ren="org.eclipse.elk.portAlignment.north",_en="org.eclipse.elk.portAlignment.south",Ken="org.eclipse.elk.portAlignment.west",Hen="org.eclipse.elk.portAlignment.east",sA="org.eclipse.elk.contentAlignment",qen="org.eclipse.elk.junctionPoints",Gen="org.eclipse.elk.edgeLabels.placement",zen="org.eclipse.elk.port.index",Uen="org.eclipse.elk.commentBox",Wen="org.eclipse.elk.hypernode",Xen="org.eclipse.elk.port.anchor",iB="org.eclipse.elk.partitioning.activate",rB="org.eclipse.elk.partitioning.partition",oA="org.eclipse.elk.position",Ven="org.eclipse.elk.margins",Qen="org.eclipse.elk.spacing.portsSurrounding",cB="org.eclipse.elk.interactiveLayout",ac="org.eclipse.elk.core.util",Jen={3:1,4:1,5:1,593:1},EHn="NETWORK_SIMPLEX",Ec={123:1,51:1},fA="org.eclipse.elk.alg.layered.p1cycles",$b="org.eclipse.elk.alg.layered.p2layers",Yen={402:1,225:1},CHn={832:1,3:1,4:1},vu="org.eclipse.elk.alg.layered.p3order",hr="org.eclipse.elk.alg.layered.p4nodes",THn={3:1,4:1,5:1,840:1},zf=1e-5,Sl="org.eclipse.elk.alg.layered.p4nodes.bk",uB="org.eclipse.elk.alg.layered.p5edges",zo="org.eclipse.elk.alg.layered.p5edges.orthogonal",sB="org.eclipse.elk.alg.layered.p5edges.orthogonal.direction",oB=1e-6,Fb="org.eclipse.elk.alg.layered.p5edges.splines",fB=.09999999999999998,hA=1e-8,MHn=4.71238898038469,AHn=3.141592653589793,Q6="org.eclipse.elk.alg.mrtree",J6="org.eclipse.elk.alg.mrtree.graph",up="org.eclipse.elk.alg.mrtree.intermediate",SHn="Set neighbors in level",PHn="DESCENDANTS",Zen="org.eclipse.elk.mrtree.weighting",ntn="org.eclipse.elk.mrtree.searchOrder",lA="org.eclipse.elk.alg.mrtree.options",T1="org.eclipse.elk.mrtree",IHn="org.eclipse.elk.tree",etn="org.eclipse.elk.alg.radial",ag=6.283185307179586,ttn=5e-324,OHn="org.eclipse.elk.alg.radial.intermediate",hB="org.eclipse.elk.alg.radial.intermediate.compaction",DHn={3:1,4:1,5:1,106:1},itn="org.eclipse.elk.alg.radial.intermediate.optimization",lB="No implementation is available for the layout option ",Y6="org.eclipse.elk.alg.radial.options",rtn="org.eclipse.elk.radial.orderId",ctn="org.eclipse.elk.radial.radius",aB="org.eclipse.elk.radial.compactor",dB="org.eclipse.elk.radial.compactionStepSize",utn="org.eclipse.elk.radial.sorter",stn="org.eclipse.elk.radial.wedgeCriteria",otn="org.eclipse.elk.radial.optimizationCriteria",Uf="org.eclipse.elk.radial",$Hn="org.eclipse.elk.alg.radial.p1position.wedge",ftn="org.eclipse.elk.alg.radial.sorting",FHn=5.497787143782138,xHn=3.9269908169872414,LHn=2.356194490192345,NHn="org.eclipse.elk.alg.rectpacking",aA="org.eclipse.elk.alg.rectpacking.firstiteration",bB="org.eclipse.elk.alg.rectpacking.options",htn="org.eclipse.elk.rectpacking.optimizationGoal",ltn="org.eclipse.elk.rectpacking.lastPlaceShift",atn="org.eclipse.elk.rectpacking.currentPosition",dtn="org.eclipse.elk.rectpacking.desiredPosition",btn="org.eclipse.elk.rectpacking.onlyFirstIteration",wtn="org.eclipse.elk.rectpacking.rowCompaction",wB="org.eclipse.elk.rectpacking.expandToAspectRatio",gtn="org.eclipse.elk.rectpacking.targetWidth",dA="org.eclipse.elk.expandNodes",Us="org.eclipse.elk.rectpacking",kk="org.eclipse.elk.alg.rectpacking.util",bA="No implementation available for ",xb="org.eclipse.elk.alg.spore",Lb="org.eclipse.elk.alg.spore.options",s0="org.eclipse.elk.sporeCompaction",gB="org.eclipse.elk.underlyingLayoutAlgorithm",ptn="org.eclipse.elk.processingOrder.treeConstruction",vtn="org.eclipse.elk.processingOrder.spanningTreeCostFunction",pB="org.eclipse.elk.processingOrder.preferredRoot",vB="org.eclipse.elk.processingOrder.rootSelection",mB="org.eclipse.elk.structure.structureExtractionStrategy",mtn="org.eclipse.elk.compaction.compactionStrategy",ktn="org.eclipse.elk.compaction.orthogonal",ytn="org.eclipse.elk.overlapRemoval.maxIterations",jtn="org.eclipse.elk.overlapRemoval.runScanline",kB="processingOrder",BHn="overlapRemoval",L4="org.eclipse.elk.sporeOverlap",RHn="org.eclipse.elk.alg.spore.p1structure",yB="org.eclipse.elk.alg.spore.p2processingorder",jB="org.eclipse.elk.alg.spore.p3execution",_Hn="Invalid index: ",N4="org.eclipse.elk.core.alg",dg={331:1},Nb={288:1},KHn="Make sure its type is registered with the ",Etn=" utility class.",B4="true",EB="false",HHn="Couldn't clone property '",o0=.05,Ws="org.eclipse.elk.core.options",qHn=1.2999999523162842,f0="org.eclipse.elk.box",Ctn="org.eclipse.elk.box.packingMode",GHn="org.eclipse.elk.algorithm",zHn="org.eclipse.elk.resolvedAlgorithm",Ttn="org.eclipse.elk.bendPoints",LTe="org.eclipse.elk.labelManager",UHn="org.eclipse.elk.scaleFactor",WHn="org.eclipse.elk.animate",XHn="org.eclipse.elk.animTimeFactor",VHn="org.eclipse.elk.layoutAncestors",QHn="org.eclipse.elk.maxAnimTime",JHn="org.eclipse.elk.minAnimTime",YHn="org.eclipse.elk.progressBar",ZHn="org.eclipse.elk.validateGraph",nqn="org.eclipse.elk.validateOptions",eqn="org.eclipse.elk.zoomToFit",NTe="org.eclipse.elk.font.name",tqn="org.eclipse.elk.font.size",iqn="org.eclipse.elk.edge.type",rqn="partitioning",cqn="nodeLabels",wA="portAlignment",CB="nodeSize",TB="port",Mtn="portLabels",uqn="insideSelfLoops",Z6="org.eclipse.elk.fixed",gA="org.eclipse.elk.random",sqn="port must have a parent node to calculate the port side",oqn="The edge needs to have exactly one edge section. Found: ",nm="org.eclipse.elk.core.util.adapters",Is="org.eclipse.emf.ecore",bg="org.eclipse.elk.graph",fqn="EMapPropertyHolder",hqn="ElkBendPoint",lqn="ElkGraphElement",aqn="ElkConnectableShape",Atn="ElkEdge",dqn="ElkEdgeSection",bqn="EModelElement",wqn="ENamedElement",Stn="ElkLabel",Ptn="ElkNode",Itn="ElkPort",gqn={92:1,90:1},sp="org.eclipse.emf.common.notify.impl",Pl="The feature '",em="' is not a valid changeable feature",pqn="Expecting null",MB="' is not a valid feature",vqn="The feature ID",mqn=" is not a valid feature ID",uc=32768,kqn={105:1,92:1,90:1,56:1,49:1,97:1},Bn="org.eclipse.emf.ecore.impl",Ba="org.eclipse.elk.graph.impl",tm="Recursive containment not allowed for ",R4="The datatype '",h0="' is not a valid classifier",AB="The value '",wg={190:1,3:1,4:1},SB="The class '",_4="http://www.eclipse.org/elk/ElkGraph",Eo=1024,Otn="property",im="value",PB="source",yqn="properties",jqn="identifier",IB="height",OB="width",DB="parent",$B="text",FB="children",Eqn="hierarchical",Dtn="sources",xB="targets",$tn="sections",pA="bendPoints",Ftn="outgoingShape",xtn="incomingShape",Ltn="outgoingSections",Ntn="incomingSections",Ui="org.eclipse.emf.common.util",Btn="Severe implementation error in the Json to ElkGraph importer.",Wf="id",Fi="org.eclipse.elk.graph.json",Rtn="Unhandled parameter types: ",Cqn="startPoint",Tqn="An edge must have at least one source and one target (edge id: '",K4="').",Mqn="Referenced edge section does not exist: ",Aqn=" (edge id: '",_tn="target",Sqn="sourcePoint",Pqn="targetPoint",vA="group",We="name",Iqn="connectableShape cannot be null",Oqn="edge cannot be null",LB="Passed edge is not 'simple'.",mA="org.eclipse.elk.graph.util",yk="The 'no duplicates' constraint is violated",NB="targetIndex=",Ra=", size=",BB="sourceIndex=",Xf={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,63:1,58:1},RB={3:1,4:1,20:1,28:1,52:1,14:1,47:1,15:1,54:1,67:1,63:1,58:1,588:1},kA="logging",Dqn="measureExecutionTime",$qn="parser.parse.1",Fqn="parser.parse.2",yA="parser.next.1",_B="parser.next.2",xqn="parser.next.3",Lqn="parser.next.4",_a="parser.factor.1",Ktn="parser.factor.2",Nqn="parser.factor.3",Bqn="parser.factor.4",Rqn="parser.factor.5",_qn="parser.factor.6",Kqn="parser.atom.1",Hqn="parser.atom.2",qqn="parser.atom.3",Htn="parser.atom.4",KB="parser.atom.5",qtn="parser.cc.1",jA="parser.cc.2",Gqn="parser.cc.3",zqn="parser.cc.5",Gtn="parser.cc.6",ztn="parser.cc.7",HB="parser.cc.8",Uqn="parser.ope.1",Wqn="parser.ope.2",Xqn="parser.ope.3",M1="parser.descape.1",Vqn="parser.descape.2",Qqn="parser.descape.3",Jqn="parser.descape.4",Yqn="parser.descape.5",Os="parser.process.1",Zqn="parser.quantifier.1",nGn="parser.quantifier.2",eGn="parser.quantifier.3",tGn="parser.quantifier.4",Utn="parser.quantifier.5",iGn="org.eclipse.emf.common.notify",Wtn={415:1,672:1},rGn={3:1,4:1,20:1,28:1,52:1,14:1,15:1,67:1,58:1},jk={366:1,143:1},rm="index=",qB={3:1,4:1,5:1,126:1},cGn={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,58:1},Xtn={3:1,6:1,4:1,5:1,192:1},uGn={3:1,4:1,5:1,165:1,367:1},sGn=";/?:@&=+$,",oGn="invalid authority: ",fGn="EAnnotation",hGn="ETypedElement",lGn="EStructuralFeature",aGn="EAttribute",dGn="EClassifier",bGn="EEnumLiteral",wGn="EGenericType",gGn="EOperation",pGn="EParameter",vGn="EReference",mGn="ETypeParameter",vt="org.eclipse.emf.ecore.util",GB={76:1},Vtn={3:1,20:1,14:1,15:1,58:1,589:1,76:1,69:1,95:1},kGn="org.eclipse.emf.ecore.util.FeatureMap$Entry",mu=8192,Bb=2048,cm="byte",EA="char",um="double",sm="float",om="int",fm="long",hm="short",yGn="java.lang.Object",gg={3:1,4:1,5:1,247:1},Qtn={3:1,4:1,5:1,673:1},jGn={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,63:1,58:1,69:1},Br={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,63:1,58:1,76:1,69:1,95:1},Ek="mixed",xe="http:///org/eclipse/emf/ecore/util/ExtendedMetaData",Xs="kind",EGn={3:1,4:1,5:1,674:1},Jtn={3:1,4:1,20:1,28:1,52:1,14:1,15:1,67:1,58:1,76:1,69:1,95:1},CA={20:1,28:1,52:1,14:1,15:1,58:1,69:1},TA={47:1,125:1,279:1},MA={72:1,332:1},AA="The value of type '",SA="' must be of type '",pg=1316,Vs="http://www.eclipse.org/emf/2002/Ecore",PA=-32768,l0="constraints",Ri="baseType",CGn="getEStructuralFeature",TGn="getFeatureID",lm="feature",MGn="getOperationID",Ytn="operation",AGn="defaultValue",SGn="eTypeParameters",PGn="isInstance",IGn="getEEnumLiteral",OGn="eContainingClass",qe={55:1},DGn={3:1,4:1,5:1,119:1},$Gn="org.eclipse.emf.ecore.resource",FGn={92:1,90:1,591:1,1935:1},zB="org.eclipse.emf.ecore.resource.impl",Ztn="unspecified",Ck="simple",IA="attribute",xGn="attributeWildcard",OA="element",UB="elementWildcard",Uo="collapse",WB="itemType",DA="namespace",Tk="##targetNamespace",Qs="whiteSpace",nin="wildcards",Ka="http://www.eclipse.org/emf/2003/XMLType",XB="##any",H4="uninitialized",Mk="The multiplicity constraint is violated",$A="org.eclipse.emf.ecore.xml.type",LGn="ProcessingInstruction",NGn="SimpleAnyType",BGn="XMLTypeDocumentRoot",Wt="org.eclipse.emf.ecore.xml.type.impl",Ak="INF",RGn="processing",_Gn="ENTITIES_._base",ein="minLength",tin="ENTITY",FA="NCName",KGn="IDREFS_._base",iin="integer",VB="token",QB="pattern",HGn="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*",rin="\\i\\c*",qGn="[\\i-[:]][\\c-[:]]*",GGn="nonPositiveInteger",Sk="maxInclusive",cin="NMTOKEN",zGn="NMTOKENS_._base",uin="nonNegativeInteger",Pk="minInclusive",UGn="normalizedString",WGn="unsignedByte",XGn="unsignedInt",VGn="18446744073709551615",QGn="unsignedShort",JGn="processingInstruction",A1="org.eclipse.emf.ecore.xml.type.internal",q4=1114111,YGn="Internal Error: shorthands: \\u",am="xml:isDigit",JB="xml:isWord",YB="xml:isSpace",ZB="xml:isNameChar",nR="xml:isInitialNameChar",ZGn="09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩",nzn="AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣",ezn="Private Use",eR="ASSIGNED",tR="\0€ÿĀſƀɏɐʯʰ˿̀ͯͰϿЀӿ԰֏֐׿؀ۿ܀ݏހ޿ऀॿঀ৿਀੿઀૿଀୿஀௿ఀ౿ಀ೿ഀൿ඀෿฀๿຀໿ༀ࿿က႟Ⴀჿᄀᇿሀ፿Ꭰ᏿᐀ᙿ ᚟ᚠ᛿ក៿᠀᢯Ḁỿἀ῿ ⁰₟₠⃏⃐⃿℀⅏⅐↏←⇿∀⋿⌀⏿␀␿⑀⑟①⓿─╿▀▟■◿☀⛿✀➿⠀⣿⺀⻿⼀⿟⿰⿿ 〿぀ゟ゠ヿ㄀ㄯ㄰㆏㆐㆟ㆠㆿ㈀㋿㌀㏿㐀䶵一鿿ꀀ꒏꒐꓏가힣豈﫿ffﭏﭐ﷿︠︯︰﹏﹐﹯ﹰ﻾\uFEFF\uFEFF＀￯",sin="UNASSIGNED",G4={3:1,117:1},tzn="org.eclipse.emf.ecore.xml.type.util",xA={3:1,4:1,5:1,368:1},oin="org.eclipse.xtext.xbase.lib",izn="Cannot add elements to a Range",rzn="Cannot set elements in a Range",czn="Cannot remove elements from a Range",LA="locale",NA="default",BA="user.agent",s,RA,iR;y.goog=y.goog||{},y.goog.global=y.goog.global||y,f5e(),b(1,null,{},Lc),s.Fb=function(e){return nyn(this,e)},s.Gb=function(){return this.gm},s.Hb=function(){return md(this)},s.Ib=function(){var e;return J1($u(this))+"@"+(e=mt(this)>>>0,e.toString(16))},s.equals=function(n){return this.Fb(n)},s.hashCode=function(){return this.Hb()},s.toString=function(){return this.Ib()};var uzn,szn,ozn;b(290,1,{290:1,2026:1},RV),s.le=function(e){var t;return t=new RV,t.i=4,e>1?t.c=pMn(this,e-1):t.c=this,t},s.me=function(){return Ph(this),this.b},s.ne=function(){return J1(this)},s.oe=function(){return Ph(this),this.k},s.pe=function(){return(this.i&4)!=0},s.qe=function(){return(this.i&1)!=0},s.Ib=function(){return nV(this)},s.i=0;var Zn=w(Ur,"Object",1),fin=w(Ur,"Class",290);b(1998,1,J7),w(Y7,"Optional",1998),b(1170,1998,J7,Bt),s.Fb=function(e){return e===this},s.Hb=function(){return 2040732332},s.Ib=function(){return"Optional.absent()"},s.Jb=function(e){return pe(e),Rv(),rR};var rR;w(Y7,"Absent",1170),b(628,1,{},YI),w(Y7,"Joiner",628);var BTe=Ct(Y7,"Predicate");b(582,1,{169:1,582:1,3:1,45:1},nvn),s.Mb=function(e){return iDn(this,e)},s.Lb=function(e){return iDn(this,e)},s.Fb=function(e){var t;return I(e,582)?(t=u(e,582),DY(this.a,t.a)):!1},s.Hb=function(){return GV(this.a)+306654252},s.Ib=function(){return V5e(this.a)},w(Y7,"Predicates/AndPredicate",582),b(408,1998,{408:1,3:1},Zy),s.Fb=function(e){var t;return I(e,408)?(t=u(e,408),tt(this.a,t.a)):!1},s.Hb=function(){return 1502476572+mt(this.a)},s.Ib=function(){return q_n+this.a+")"},s.Jb=function(e){return new Zy(tC(e.Kb(this.a),"the Function passed to Optional.transform() must not return null."))},w(Y7,"Present",408),b(198,1,E4),s.Nb=function(e){Oi(this,e)},s.Qb=function(){G9n()},w(an,"UnmodifiableIterator",198),b(1978,198,C4),s.Qb=function(){G9n()},s.Rb=function(e){throw T(new ye)},s.Wb=function(e){throw T(new ye)},w(an,"UnmodifiableListIterator",1978),b(386,1978,C4),s.Ob=function(){return this.c0},s.Pb=function(){if(this.c>=this.d)throw T(new ic);return this.Xb(this.c++)},s.Tb=function(){return this.c},s.Ub=function(){if(this.c<=0)throw T(new ic);return this.Xb(--this.c)},s.Vb=function(){return this.c-1},s.c=0,s.d=0,w(an,"AbstractIndexedListIterator",386),b(699,198,E4),s.Ob=function(){return V$(this)},s.Pb=function(){return XX(this)},s.e=1,w(an,"AbstractIterator",699),b(1986,1,{224:1}),s.Zb=function(){var e;return e=this.f,e||(this.f=this.ac())},s.Fb=function(e){return dF(this,e)},s.Hb=function(){return mt(this.Zb())},s.dc=function(){return this.gc()==0},s.ec=function(){return k2(this)},s.Ib=function(){return Nr(this.Zb())},w(an,"AbstractMultimap",1986),b(726,1986,Da),s.$b=function(){QC(this)},s._b=function(e){return f8n(this,e)},s.ac=function(){return new Yp(this,this.c)},s.ic=function(e){return this.hc()},s.bc=function(){return new Sw(this,this.c)},s.jc=function(){return this.mc(this.hc())},s.kc=function(){return new A9n(this)},s.lc=function(){return kx(this.c.vc().Nc(),new Ge,64,this.d)},s.cc=function(e){return ct(this,e)},s.fc=function(e){return l7(this,e)},s.gc=function(){return this.d},s.mc=function(e){return Pn(),new _p(e)},s.nc=function(){return new M9n(this)},s.oc=function(){return kx(this.c.Cc().Nc(),new qt,64,this.d)},s.pc=function(e,t){return new IC(this,e,t,null)},s.d=0,w(an,"AbstractMapBasedMultimap",726),b(1631,726,Da),s.hc=function(){return new Pc(this.a)},s.jc=function(){return Pn(),Pn(),cr},s.cc=function(e){return u(ct(this,e),15)},s.fc=function(e){return u(l7(this,e),15)},s.Zb=function(){return T2(this)},s.Fb=function(e){return dF(this,e)},s.qc=function(e){return u(ct(this,e),15)},s.rc=function(e){return u(l7(this,e),15)},s.mc=function(e){return C8(u(e,15))},s.pc=function(e,t){return jAn(this,e,u(t,15),null)},w(an,"AbstractListMultimap",1631),b(732,1,ji),s.Nb=function(e){Oi(this,e)},s.Ob=function(){return this.c.Ob()||this.e.Ob()},s.Pb=function(){var e;return this.e.Ob()||(e=u(this.c.Pb(),42),this.b=e.cd(),this.a=u(e.dd(),14),this.e=this.a.Kc()),this.sc(this.b,this.e.Pb())},s.Qb=function(){this.e.Qb(),this.a.dc()&&this.c.Qb(),--this.d.d},w(an,"AbstractMapBasedMultimap/Itr",732),b(1099,732,ji,M9n),s.sc=function(e,t){return t},w(an,"AbstractMapBasedMultimap/1",1099),b(1100,1,{},qt),s.Kb=function(e){return u(e,14).Nc()},w(an,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1100),b(1101,732,ji,A9n),s.sc=function(e,t){return new bd(e,t)},w(an,"AbstractMapBasedMultimap/2",1101);var hin=Ct(fe,"Map");b(1967,1,r0),s.wc=function(e){n6(this,e)},s.yc=function(e,t,i){return IF(this,e,t,i)},s.$b=function(){this.vc().$b()},s.tc=function(e){return ix(this,e)},s._b=function(e){return!!xJ(this,e,!1)},s.uc=function(e){var t,i,r;for(i=this.vc().Kc();i.Ob();)if(t=u(i.Pb(),42),r=t.dd(),B(e)===B(r)||e!=null&&tt(e,r))return!0;return!1},s.Fb=function(e){var t,i,r;if(e===this)return!0;if(!I(e,83)||(r=u(e,83),this.gc()!=r.gc()))return!1;for(i=r.vc().Kc();i.Ob();)if(t=u(i.Pb(),42),!this.tc(t))return!1;return!0},s.xc=function(e){return Vr(xJ(this,e,!1))},s.Hb=function(){return FV(this.vc())},s.dc=function(){return this.gc()==0},s.ec=function(){return new Rp(this)},s.zc=function(e,t){throw T(new t1("Put not supported on this map"))},s.Ac=function(e){Z5(this,e)},s.Bc=function(e){return Vr(xJ(this,e,!0))},s.gc=function(){return this.vc().gc()},s.Ib=function(){return cxn(this)},s.Cc=function(){return new Mh(this)},w(fe,"AbstractMap",1967),b(1987,1967,r0),s.bc=function(){return new Ej(this)},s.vc=function(){return yCn(this)},s.ec=function(){var e;return e=this.g,e||(this.g=this.bc())},s.Cc=function(){var e;return e=this.i,e||(this.i=new e7n(this))},w(an,"Maps/ViewCachingAbstractMap",1987),b(389,1987,r0,Yp),s.xc=function(e){return O0e(this,e)},s.Bc=function(e){return Wwe(this,e)},s.$b=function(){this.d==this.e.c?this.e.$b():DE(new tW(this))},s._b=function(e){return LDn(this.d,e)},s.Ec=function(){return new rvn(this)},s.Dc=function(){return this.Ec()},s.Fb=function(e){return this===e||tt(this.d,e)},s.Hb=function(){return mt(this.d)},s.ec=function(){return this.e.ec()},s.gc=function(){return this.d.gc()},s.Ib=function(){return Nr(this.d)},w(an,"AbstractMapBasedMultimap/AsMap",389);var pf=Ct(Ur,"Iterable");b(28,1,Sb),s.Jc=function(e){$i(this,e)},s.Lc=function(){return this.Oc()},s.Nc=function(){return new xn(this,0)},s.Oc=function(){return new $n(null,this.Nc())},s.Fc=function(e){throw T(new t1("Add not supported on this collection"))},s.Gc=function(e){return Vi(this,e)},s.$b=function(){KW(this)},s.Hc=function(e){return db(this,e,!1)},s.Ic=function(e){return t7(this,e)},s.dc=function(){return this.gc()==0},s.Mc=function(e){return db(this,e,!0)},s.Pc=function(){return wW(this)},s.Qc=function(e){return y7(this,e)},s.Ib=function(){return kl(this)},w(fe,"AbstractCollection",28);var Js=Ct(fe,"Set");b(bf,28,pu),s.Nc=function(){return new xn(this,1)},s.Fb=function(e){return P$n(this,e)},s.Hb=function(){return FV(this)},w(fe,"AbstractSet",bf),b(1970,bf,pu),w(an,"Sets/ImprovedAbstractSet",1970),b(1971,1970,pu),s.$b=function(){this.Rc().$b()},s.Hc=function(e){return h$n(this,e)},s.dc=function(){return this.Rc().dc()},s.Mc=function(e){var t;return this.Hc(e)?(t=u(e,42),this.Rc().ec().Mc(t.cd())):!1},s.gc=function(){return this.Rc().gc()},w(an,"Maps/EntrySet",1971),b(1097,1971,pu,rvn),s.Hc=function(e){return fQ(this.a.d.vc(),e)},s.Kc=function(){return new tW(this.a)},s.Rc=function(){return this.a},s.Mc=function(e){var t;return fQ(this.a.d.vc(),e)?(t=u(e,42),pde(this.a.e,t.cd()),!0):!1},s.Nc=function(){return g8(this.a.d.vc().Nc(),new cvn(this.a))},w(an,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1097),b(1098,1,{},cvn),s.Kb=function(e){return lSn(this.a,u(e,42))},w(an,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1098),b(730,1,ji,tW),s.Nb=function(e){Oi(this,e)},s.Pb=function(){var e;return e=u(this.b.Pb(),42),this.a=u(e.dd(),14),lSn(this.c,e)},s.Ob=function(){return this.b.Ob()},s.Qb=function(){Nw(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null},w(an,"AbstractMapBasedMultimap/AsMap/AsMapIterator",730),b(532,1970,pu,Ej),s.$b=function(){this.b.$b()},s.Hc=function(e){return this.b._b(e)},s.Jc=function(e){pe(e),this.b.wc(new jvn(e))},s.dc=function(){return this.b.dc()},s.Kc=function(){return new _v(this.b.vc().Kc())},s.Mc=function(e){return this.b._b(e)?(this.b.Bc(e),!0):!1},s.gc=function(){return this.b.gc()},w(an,"Maps/KeySet",532),b(318,532,pu,Sw),s.$b=function(){var e;DE((e=this.b.vc().Kc(),new SG(this,e)))},s.Ic=function(e){return this.b.ec().Ic(e)},s.Fb=function(e){return this===e||tt(this.b.ec(),e)},s.Hb=function(){return mt(this.b.ec())},s.Kc=function(){var e;return e=this.b.vc().Kc(),new SG(this,e)},s.Mc=function(e){var t,i;return i=0,t=u(this.b.Bc(e),14),t&&(i=t.gc(),t.$b(),this.a.d-=i),i>0},s.Nc=function(){return this.b.ec().Nc()},w(an,"AbstractMapBasedMultimap/KeySet",318),b(731,1,ji,SG),s.Nb=function(e){Oi(this,e)},s.Ob=function(){return this.c.Ob()},s.Pb=function(){return this.a=u(this.c.Pb(),42),this.a.cd()},s.Qb=function(){var e;Nw(!!this.a),e=u(this.a.dd(),14),this.c.Qb(),this.b.a.d-=e.gc(),e.$b(),this.a=null},w(an,"AbstractMapBasedMultimap/KeySet/1",731),b(491,389,{83:1,161:1},f8),s.bc=function(){return this.Sc()},s.ec=function(){return this.Tc()},s.Sc=function(){return new R9(this.c,this.Uc())},s.Tc=function(){var e;return e=this.b,e||(this.b=this.Sc())},s.Uc=function(){return u(this.d,161)},w(an,"AbstractMapBasedMultimap/SortedAsMap",491),b(542,491,G_n,mE),s.bc=function(){return new Jp(this.a,u(u(this.d,161),171))},s.Sc=function(){return new Jp(this.a,u(u(this.d,161),171))},s.ec=function(){var e;return e=this.b,u(e||(this.b=new Jp(this.a,u(u(this.d,161),171))),271)},s.Tc=function(){var e;return e=this.b,u(e||(this.b=new Jp(this.a,u(u(this.d,161),171))),271)},s.Uc=function(){return u(u(this.d,161),171)},w(an,"AbstractMapBasedMultimap/NavigableAsMap",542),b(490,318,z_n,R9),s.Nc=function(){return this.b.ec().Nc()},w(an,"AbstractMapBasedMultimap/SortedKeySet",490),b(388,490,WZ,Jp),w(an,"AbstractMapBasedMultimap/NavigableKeySet",388),b(541,28,Sb,IC),s.Fc=function(e){var t,i;return Fu(this),i=this.d.dc(),t=this.d.Fc(e),t&&(++this.f.d,i&&d8(this)),t},s.Gc=function(e){var t,i,r;return e.dc()?!1:(r=(Fu(this),this.d.gc()),t=this.d.Gc(e),t&&(i=this.d.gc(),this.f.d+=i-r,r==0&&d8(this)),t)},s.$b=function(){var e;e=(Fu(this),this.d.gc()),e!=0&&(this.d.$b(),this.f.d-=e,NE(this))},s.Hc=function(e){return Fu(this),this.d.Hc(e)},s.Ic=function(e){return Fu(this),this.d.Ic(e)},s.Fb=function(e){return e===this?!0:(Fu(this),tt(this.d,e))},s.Hb=function(){return Fu(this),mt(this.d)},s.Kc=function(){return Fu(this),new HU(this)},s.Mc=function(e){var t;return Fu(this),t=this.d.Mc(e),t&&(--this.f.d,NE(this)),t},s.gc=function(){return Rkn(this)},s.Nc=function(){return Fu(this),this.d.Nc()},s.Ib=function(){return Fu(this),Nr(this.d)},w(an,"AbstractMapBasedMultimap/WrappedCollection",541);var Ds=Ct(fe,"List");b(728,541,{20:1,28:1,14:1,15:1},pW),s.ad=function(e){Lw(this,e)},s.Nc=function(){return Fu(this),this.d.Nc()},s.Vc=function(e,t){var i;Fu(this),i=this.d.dc(),u(this.d,15).Vc(e,t),++this.a.d,i&&d8(this)},s.Wc=function(e,t){var i,r,c;return t.dc()?!1:(c=(Fu(this),this.d.gc()),i=u(this.d,15).Wc(e,t),i&&(r=this.d.gc(),this.a.d+=r-c,c==0&&d8(this)),i)},s.Xb=function(e){return Fu(this),u(this.d,15).Xb(e)},s.Xc=function(e){return Fu(this),u(this.d,15).Xc(e)},s.Yc=function(){return Fu(this),new vyn(this)},s.Zc=function(e){return Fu(this),new OTn(this,e)},s.$c=function(e){var t;return Fu(this),t=u(this.d,15).$c(e),--this.a.d,NE(this),t},s._c=function(e,t){return Fu(this),u(this.d,15)._c(e,t)},s.bd=function(e,t){return Fu(this),jAn(this.a,this.e,u(this.d,15).bd(e,t),this.b?this.b:this)},w(an,"AbstractMapBasedMultimap/WrappedList",728),b(1096,728,{20:1,28:1,14:1,15:1,54:1},ojn),w(an,"AbstractMapBasedMultimap/RandomAccessWrappedList",1096),b(620,1,ji,HU),s.Nb=function(e){Oi(this,e)},s.Ob=function(){return m3(this),this.b.Ob()},s.Pb=function(){return m3(this),this.b.Pb()},s.Qb=function(){zyn(this)},w(an,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",620),b(729,620,lh,vyn,OTn),s.Qb=function(){zyn(this)},s.Rb=function(e){var t;t=Rkn(this.a)==0,(m3(this),u(this.b,125)).Rb(e),++this.a.a.d,t&&d8(this.a)},s.Sb=function(){return(m3(this),u(this.b,125)).Sb()},s.Tb=function(){return(m3(this),u(this.b,125)).Tb()},s.Ub=function(){return(m3(this),u(this.b,125)).Ub()},s.Vb=function(){return(m3(this),u(this.b,125)).Vb()},s.Wb=function(e){(m3(this),u(this.b,125)).Wb(e)},w(an,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",729),b(727,541,z_n,fU),s.Nc=function(){return Fu(this),this.d.Nc()},w(an,"AbstractMapBasedMultimap/WrappedSortedSet",727),b(1095,727,WZ,hyn),w(an,"AbstractMapBasedMultimap/WrappedNavigableSet",1095),b(1094,541,pu,jjn),s.Nc=function(){return Fu(this),this.d.Nc()},w(an,"AbstractMapBasedMultimap/WrappedSet",1094),b(1103,1,{},Ge),s.Kb=function(e){return Ede(u(e,42))},w(an,"AbstractMapBasedMultimap/lambda$1$Type",1103),b(1102,1,{},uvn),s.Kb=function(e){return new bd(this.a,e)},w(an,"AbstractMapBasedMultimap/lambda$2$Type",1102);var Ha=Ct(fe,"Map/Entry");b(345,1,PM),s.Fb=function(e){var t;return I(e,42)?(t=u(e,42),Ff(this.cd(),t.cd())&&Ff(this.dd(),t.dd())):!1},s.Hb=function(){var e,t;return e=this.cd(),t=this.dd(),(e==null?0:mt(e))^(t==null?0:mt(t))},s.ed=function(e){throw T(new ye)},s.Ib=function(){return this.cd()+"="+this.dd()},w(an,U_n,345),b(1988,28,Sb),s.$b=function(){this.fd().$b()},s.Hc=function(e){var t;return I(e,42)?(t=u(e,42),iae(this.fd(),t.cd(),t.dd())):!1},s.Mc=function(e){var t;return I(e,42)?(t=u(e,42),tAn(this.fd(),t.cd(),t.dd())):!1},s.gc=function(){return this.fd().d},w(an,"Multimaps/Entries",1988),b(733,1988,Sb,rq),s.Kc=function(){return this.a.kc()},s.fd=function(){return this.a},s.Nc=function(){return this.a.lc()},w(an,"AbstractMultimap/Entries",733),b(734,733,pu,rG),s.Nc=function(){return this.a.lc()},s.Fb=function(e){return ZJ(this,e)},s.Hb=function(){return iOn(this)},w(an,"AbstractMultimap/EntrySet",734),b(735,28,Sb,cq),s.$b=function(){this.a.$b()},s.Hc=function(e){return Kwe(this.a,e)},s.Kc=function(){return this.a.nc()},s.gc=function(){return this.a.d},s.Nc=function(){return this.a.oc()},w(an,"AbstractMultimap/Values",735),b(1989,28,{835:1,20:1,28:1,14:1}),s.Jc=function(e){pe(e),Iw(this).Jc(new yvn(e))},s.Nc=function(){var e;return e=Iw(this).Nc(),kx(e,new G1,64|e.qd()&1296,this.a.d)},s.Fc=function(e){return dG(),!0},s.Gc=function(e){return pe(this),pe(e),I(e,543)?oae(u(e,835)):!e.dc()&&_$(this,e.Kc())},s.Hc=function(e){var t;return t=u(ab(T2(this.a),e),14),(t?t.gc():0)>0},s.Fb=function(e){return e9e(this,e)},s.Hb=function(){return mt(Iw(this))},s.dc=function(){return Iw(this).dc()},s.Mc=function(e){return jLn(this,e,1)>0},s.Ib=function(){return Nr(Iw(this))},w(an,"AbstractMultiset",1989),b(1991,1970,pu),s.$b=function(){QC(this.a.a)},s.Hc=function(e){var t,i;return I(e,492)?(i=u(e,416),u(i.a.dd(),14).gc()<=0?!1:(t=DMn(this.a,i.a.cd()),t==u(i.a.dd(),14).gc())):!1},s.Mc=function(e){var t,i,r,c;return I(e,492)&&(i=u(e,416),t=i.a.cd(),r=u(i.a.dd(),14).gc(),r!=0)?(c=this.a,q6e(c,t,r)):!1},w(an,"Multisets/EntrySet",1991),b(1109,1991,pu,svn),s.Kc=function(){return new x9n(yCn(T2(this.a.a)).Kc())},s.gc=function(){return T2(this.a.a).gc()},w(an,"AbstractMultiset/EntrySet",1109),b(619,726,Da),s.hc=function(){return this.gd()},s.jc=function(){return this.hd()},s.cc=function(e){return this.jd(e)},s.fc=function(e){return this.kd(e)},s.Zb=function(){var e;return e=this.f,e||(this.f=this.ac())},s.hd=function(){return Pn(),Pn(),zA},s.Fb=function(e){return dF(this,e)},s.jd=function(e){return u(ct(this,e),21)},s.kd=function(e){return u(l7(this,e),21)},s.mc=function(e){return Pn(),new Wp(u(e,21))},s.pc=function(e,t){return new jjn(this,e,u(t,21))},w(an,"AbstractSetMultimap",619),b(1657,619,Da),s.hc=function(){return new Y1(this.b)},s.gd=function(){return new Y1(this.b)},s.jc=function(){return DW(new Y1(this.b))},s.hd=function(){return DW(new Y1(this.b))},s.cc=function(e){return u(u(ct(this,e),21),84)},s.jd=function(e){return u(u(ct(this,e),21),84)},s.fc=function(e){return u(u(l7(this,e),21),84)},s.kd=function(e){return u(u(l7(this,e),21),84)},s.mc=function(e){return I(e,271)?DW(u(e,271)):(Pn(),new Hz(u(e,84)))},s.Zb=function(){var e;return e=this.f,e||(this.f=I(this.c,171)?new mE(this,u(this.c,171)):I(this.c,161)?new f8(this,u(this.c,161)):new Yp(this,this.c))},s.pc=function(e,t){return I(t,271)?new hyn(this,e,u(t,271)):new fU(this,e,u(t,84))},w(an,"AbstractSortedSetMultimap",1657),b(1658,1657,Da),s.Zb=function(){var e;return e=this.f,u(u(e||(this.f=I(this.c,171)?new mE(this,u(this.c,171)):I(this.c,161)?new f8(this,u(this.c,161)):new Yp(this,this.c)),161),171)},s.ec=function(){var e;return e=this.i,u(u(e||(this.i=I(this.c,171)?new Jp(this,u(this.c,171)):I(this.c,161)?new R9(this,u(this.c,161)):new Sw(this,this.c)),84),271)},s.bc=function(){return I(this.c,171)?new Jp(this,u(this.c,171)):I(this.c,161)?new R9(this,u(this.c,161)):new Sw(this,this.c)},w(an,"AbstractSortedKeySortedSetMultimap",1658),b(2010,1,{1947:1}),s.Fb=function(e){return D4e(this,e)},s.Hb=function(){var e;return FV((e=this.g,e||(this.g=new MI(this))))},s.Ib=function(){var e;return cxn((e=this.f,e||(this.f=new Fz(this))))},w(an,"AbstractTable",2010),b(665,bf,pu,MI),s.$b=function(){z9n()},s.Hc=function(e){var t,i;return I(e,468)?(t=u(e,682),i=u(ab(GCn(this.a),el(t.c.e,t.b)),83),!!i&&fQ(i.vc(),new bd(el(t.c.c,t.a),D2(t.c,t.b,t.a)))):!1},s.Kc=function(){return g1e(this.a)},s.Mc=function(e){var t,i;return I(e,468)?(t=u(e,682),i=u(ab(GCn(this.a),el(t.c.e,t.b)),83),!!i&&bge(i.vc(),new bd(el(t.c.c,t.a),D2(t.c,t.b,t.a)))):!1},s.gc=function(){return tCn(this.a)},s.Nc=function(){return lae(this.a)},w(an,"AbstractTable/CellSet",665),b(1928,28,Sb,ovn),s.$b=function(){z9n()},s.Hc=function(e){return Eve(this.a,e)},s.Kc=function(){return p1e(this.a)},s.gc=function(){return tCn(this.a)},s.Nc=function(){return cAn(this.a)},w(an,"AbstractTable/Values",1928),b(1632,1631,Da),w(an,"ArrayListMultimapGwtSerializationDependencies",1632),b(513,1632,Da,JI,iX),s.hc=function(){return new Pc(this.a)},s.a=0,w(an,"ArrayListMultimap",513),b(664,2010,{664:1,1947:1,3:1},DLn),w(an,"ArrayTable",664),b(1924,386,C4,Ryn),s.Xb=function(e){return new BV(this.a,e)},w(an,"ArrayTable/1",1924),b(1925,1,{},evn),s.ld=function(e){return new BV(this.a,e)},w(an,"ArrayTable/1methodref$getCell$Type",1925),b(2011,1,{682:1}),s.Fb=function(e){var t;return e===this?!0:I(e,468)?(t=u(e,682),Ff(el(this.c.e,this.b),el(t.c.e,t.b))&&Ff(el(this.c.c,this.a),el(t.c.c,t.a))&&Ff(D2(this.c,this.b,this.a),D2(t.c,t.b,t.a))):!1},s.Hb=function(){return gT(A(M(Zn,1),rn,1,5,[el(this.c.e,this.b),el(this.c.c,this.a),D2(this.c,this.b,this.a)]))},s.Ib=function(){return"("+el(this.c.e,this.b)+","+el(this.c.c,this.a)+")="+D2(this.c,this.b,this.a)},w(an,"Tables/AbstractCell",2011),b(468,2011,{468:1,682:1},BV),s.a=0,s.b=0,s.d=0,w(an,"ArrayTable/2",468),b(1927,1,{},tvn),s.ld=function(e){return gPn(this.a,e)},w(an,"ArrayTable/2methodref$getValue$Type",1927),b(1926,386,C4,_yn),s.Xb=function(e){return gPn(this.a,e)},w(an,"ArrayTable/3",1926),b(1979,1967,r0),s.$b=function(){DE(this.kc())},s.vc=function(){return new Evn(this)},s.lc=function(){return new vTn(this.kc(),this.gc())},w(an,"Maps/IteratorBasedAbstractMap",1979),b(828,1979,r0),s.$b=function(){throw T(new ye)},s._b=function(e){return h8n(this.c,e)},s.kc=function(){return new Kyn(this,this.c.b.c.gc())},s.lc=function(){return gD(this.c.b.c.gc(),16,new ivn(this))},s.xc=function(e){var t;return t=u(M5(this.c,e),19),t?this.nd(t.a):null},s.dc=function(){return this.c.b.c.dc()},s.ec=function(){return CD(this.c)},s.zc=function(e,t){var i;if(i=u(M5(this.c,e),19),!i)throw T(new Hn(this.md()+" "+e+" not in "+CD(this.c)));return this.od(i.a,t)},s.Bc=function(e){throw T(new ye)},s.gc=function(){return this.c.b.c.gc()},w(an,"ArrayTable/ArrayMap",828),b(1923,1,{},ivn),s.ld=function(e){return UCn(this.a,e)},w(an,"ArrayTable/ArrayMap/0methodref$getEntry$Type",1923),b(1921,345,PM,G8n),s.cd=function(){return Dce(this.a,this.b)},s.dd=function(){return this.a.nd(this.b)},s.ed=function(e){return this.a.od(this.b,e)},s.b=0,w(an,"ArrayTable/ArrayMap/1",1921),b(1922,386,C4,Kyn),s.Xb=function(e){return UCn(this.a,e)},w(an,"ArrayTable/ArrayMap/2",1922),b(1920,828,r0,$Cn),s.md=function(){return"Column"},s.nd=function(e){return D2(this.b,this.a,e)},s.od=function(e,t){return HOn(this.b,this.a,e,t)},s.a=0,w(an,"ArrayTable/Row",1920),b(829,828,r0,Fz),s.nd=function(e){return new $Cn(this.a,e)},s.zc=function(e,t){return u(t,83),wie()},s.od=function(e,t){return u(t,83),gie()},s.md=function(){return"Row"},w(an,"ArrayTable/RowMap",829),b(1120,1,Gs,z8n),s.qd=function(){return this.a.qd()&-262},s.rd=function(){return this.a.rd()},s.Nb=function(e){this.a.Nb(new _8n(e,this.b))},s.sd=function(e){return this.a.sd(new R8n(e,this.b))},w(an,"CollectSpliterators/1",1120),b(1121,1,Yn,R8n),s.td=function(e){this.a.td(this.b.Kb(e))},w(an,"CollectSpliterators/1/lambda$0$Type",1121),b(1122,1,Yn,_8n),s.td=function(e){this.a.td(this.b.Kb(e))},w(an,"CollectSpliterators/1/lambda$1$Type",1122),b(1123,1,Gs,gAn),s.qd=function(){return this.a},s.rd=function(){return this.d&&(this.b=kyn(this.b,this.d.rd())),kyn(this.b,0)},s.Nb=function(e){this.d&&(this.d.Nb(e),this.d=null),this.c.Nb(new B8n(this.e,e)),this.b=0},s.sd=function(e){for(;;){if(this.d&&this.d.sd(e))return b5(this.b,IM)&&(this.b=vl(this.b,1)),!0;if(this.d=null,!this.c.sd(new K8n(this,this.e)))return!1}},s.a=0,s.b=0,w(an,"CollectSpliterators/1FlatMapSpliterator",1123),b(1124,1,Yn,K8n),s.td=function(e){xue(this.a,this.b,e)},w(an,"CollectSpliterators/1FlatMapSpliterator/lambda$0$Type",1124),b(1125,1,Yn,B8n),s.td=function(e){mce(this.b,this.a,e)},w(an,"CollectSpliterators/1FlatMapSpliterator/lambda$1$Type",1125),b(1117,1,Gs,Yjn),s.qd=function(){return 16464|this.b},s.rd=function(){return this.a.rd()},s.Nb=function(e){this.a.xe(new q8n(e,this.c))},s.sd=function(e){return this.a.ye(new H8n(e,this.c))},s.b=0,w(an,"CollectSpliterators/1WithCharacteristics",1117),b(1118,1,Z7,H8n),s.ud=function(e){this.a.td(this.b.ld(e))},w(an,"CollectSpliterators/1WithCharacteristics/lambda$0$Type",1118),b(1119,1,Z7,q8n),s.ud=function(e){this.a.td(this.b.ld(e))},w(an,"CollectSpliterators/1WithCharacteristics/lambda$1$Type",1119),b(245,1,TL),s.wd=function(e){return this.vd(u(e,245))},s.vd=function(e){var t;return e==(HI(),uR)?1:e==(qI(),cR)?-1:(t=(PE(),Y8(this.a,e.a)),t!=0?t:I(this,519)==I(e,519)?0:I(this,519)?1:-1)},s.zd=function(){return this.a},s.Fb=function(e){return KQ(this,e)},w(an,"Cut",245),b(1761,245,TL,X9n),s.vd=function(e){return e==this?0:1},s.xd=function(e){throw T(new _q)},s.yd=function(e){e.a+="+∞)"},s.zd=function(){throw T(new $r(X_n))},s.Hb=function(){return nh(),QQ(this)},s.Ad=function(e){return!1},s.Ib=function(){return"+∞"};var cR;w(an,"Cut/AboveAll",1761),b(519,245,{245:1,519:1,3:1,35:1},Uyn),s.xd=function(e){rc((e.a+="(",e),this.a)},s.yd=function(e){sl(rc(e,this.a),93)},s.Hb=function(){return~mt(this.a)},s.Ad=function(e){return PE(),Y8(this.a,e)<0},s.Ib=function(){return"/"+this.a+"\\"},w(an,"Cut/AboveValue",519),b(1760,245,TL,V9n),s.vd=function(e){return e==this?0:-1},s.xd=function(e){e.a+="(-∞"},s.yd=function(e){throw T(new _q)},s.zd=function(){throw T(new $r(X_n))},s.Hb=function(){return nh(),QQ(this)},s.Ad=function(e){return!0},s.Ib=function(){return"-∞"};var uR;w(an,"Cut/BelowAll",1760),b(1762,245,TL,Wyn),s.xd=function(e){rc((e.a+="[",e),this.a)},s.yd=function(e){sl(rc(e,this.a),41)},s.Hb=function(){return mt(this.a)},s.Ad=function(e){return PE(),Y8(this.a,e)<=0},s.Ib=function(){return"\\"+this.a+"/"},w(an,"Cut/BelowValue",1762),b(537,1,ah),s.Jc=function(e){$i(this,e)},s.Ib=function(){return Gge(u(tC(this,"use Optional.orNull() instead of Optional.or(null)"),20).Kc())},w(an,"FluentIterable",537),b(433,537,ah,p5),s.Kc=function(){return new re(ue(this.a.Kc(),new An))},w(an,"FluentIterable/2",433),b(1046,537,ah,Jkn),s.Kc=function(){return ul(this)},w(an,"FluentIterable/3",1046),b(708,386,C4,xz),s.Xb=function(e){return this.a[e].Kc()},w(an,"FluentIterable/3/1",708),b(1972,1,{}),s.Ib=function(){return Nr(this.Bd().b)},w(an,"ForwardingObject",1972),b(1973,1972,V_n),s.Bd=function(){return this.Cd()},s.Jc=function(e){$i(this,e)},s.Lc=function(){return this.Oc()},s.Nc=function(){return new xn(this,0)},s.Oc=function(){return new $n(null,this.Nc())},s.Fc=function(e){return this.Cd(),b8n()},s.Gc=function(e){return this.Cd(),w8n()},s.$b=function(){this.Cd(),g8n()},s.Hc=function(e){return this.Cd().Hc(e)},s.Ic=function(e){return this.Cd().Ic(e)},s.dc=function(){return this.Cd().b.dc()},s.Kc=function(){return this.Cd().Kc()},s.Mc=function(e){return this.Cd(),p8n()},s.gc=function(){return this.Cd().b.gc()},s.Pc=function(){return this.Cd().Pc()},s.Qc=function(e){return this.Cd().Qc(e)},w(an,"ForwardingCollection",1973),b(1980,28,XZ),s.Kc=function(){return this.Ed()},s.Fc=function(e){throw T(new ye)},s.Gc=function(e){throw T(new ye)},s.$b=function(){throw T(new ye)},s.Hc=function(e){return e!=null&&db(this,e,!1)},s.Dd=function(){switch(this.gc()){case 0:return nb(),nb(),sR;case 1:return nb(),new pD(pe(this.Ed().Pb()));default:return new FCn(this,this.Pc())}},s.Mc=function(e){throw T(new ye)},w(an,"ImmutableCollection",1980),b(712,1980,XZ,Bq),s.Kc=function(){return $2(this.a.Kc())},s.Hc=function(e){return e!=null&&this.a.Hc(e)},s.Ic=function(e){return this.a.Ic(e)},s.dc=function(){return this.a.dc()},s.Ed=function(){return $2(this.a.Kc())},s.gc=function(){return this.a.gc()},s.Pc=function(){return this.a.Pc()},s.Qc=function(e){return this.a.Qc(e)},s.Ib=function(){return Nr(this.a)},w(an,"ForwardingImmutableCollection",712),b(152,1980,x6),s.Kc=function(){return this.Ed()},s.Yc=function(){return this.Fd(0)},s.Zc=function(e){return this.Fd(e)},s.ad=function(e){Lw(this,e)},s.Nc=function(){return new xn(this,16)},s.bd=function(e,t){return this.Gd(e,t)},s.Vc=function(e,t){throw T(new ye)},s.Wc=function(e,t){throw T(new ye)},s.Fb=function(e){return Rme(this,e)},s.Hb=function(){return Qbe(this)},s.Xc=function(e){return e==null?-1:f3e(this,e)},s.Ed=function(){return this.Fd(0)},s.Fd=function(e){return Qz(this,e)},s.$c=function(e){throw T(new ye)},s._c=function(e,t){throw T(new ye)},s.Gd=function(e,t){var i;return mT((i=new t7n(this),new uh(i,e,t)))};var sR;w(an,"ImmutableList",152),b(2006,152,x6),s.Kc=function(){return $2(this.Hd().Kc())},s.bd=function(e,t){return mT(this.Hd().bd(e,t))},s.Hc=function(e){return e!=null&&this.Hd().Hc(e)},s.Ic=function(e){return this.Hd().Ic(e)},s.Fb=function(e){return tt(this.Hd(),e)},s.Xb=function(e){return el(this,e)},s.Hb=function(){return mt(this.Hd())},s.Xc=function(e){return this.Hd().Xc(e)},s.dc=function(){return this.Hd().dc()},s.Ed=function(){return $2(this.Hd().Kc())},s.gc=function(){return this.Hd().gc()},s.Gd=function(e,t){return mT(this.Hd().bd(e,t))},s.Pc=function(){return this.Hd().Qc(F(Zn,rn,1,this.Hd().gc(),5,1))},s.Qc=function(e){return this.Hd().Qc(e)},s.Ib=function(){return Nr(this.Hd())},w(an,"ForwardingImmutableList",2006),b(714,1,T4),s.vc=function(){return Ed(this)},s.wc=function(e){n6(this,e)},s.ec=function(){return CD(this)},s.yc=function(e,t,i){return IF(this,e,t,i)},s.Cc=function(){return this.Ld()},s.$b=function(){throw T(new ye)},s._b=function(e){return this.xc(e)!=null},s.uc=function(e){return this.Ld().Hc(e)},s.Jd=function(){return new Rmn(this)},s.Kd=function(){return new _mn(this)},s.Fb=function(e){return Hwe(this,e)},s.Hb=function(){return Ed(this).Hb()},s.dc=function(){return this.gc()==0},s.zc=function(e,t){return pie()},s.Bc=function(e){throw T(new ye)},s.Ib=function(){return k5e(this)},s.Ld=function(){return this.e?this.e:this.e=this.Kd()},s.c=null,s.d=null,s.e=null;var fzn;w(an,"ImmutableMap",714),b(715,714,T4),s._b=function(e){return h8n(this,e)},s.uc=function(e){return u7n(this.b,e)},s.Id=function(){return xDn(new fvn(this))},s.Jd=function(){return xDn(bTn(this.b))},s.Kd=function(){return $f(),new Bq(dTn(this.b))},s.Fb=function(e){return s7n(this.b,e)},s.xc=function(e){return M5(this,e)},s.Hb=function(){return mt(this.b.c)},s.dc=function(){return this.b.c.dc()},s.gc=function(){return this.b.c.gc()},s.Ib=function(){return Nr(this.b.c)},w(an,"ForwardingImmutableMap",715),b(1974,1973,ML),s.Bd=function(){return this.Md()},s.Cd=function(){return this.Md()},s.Nc=function(){return new xn(this,1)},s.Fb=function(e){return e===this||this.Md().Fb(e)},s.Hb=function(){return this.Md().Hb()},w(an,"ForwardingSet",1974),b(1069,1974,ML,fvn),s.Bd=function(){return p3(this.a.b)},s.Cd=function(){return p3(this.a.b)},s.Hc=function(e){if(I(e,42)&&u(e,42).cd()==null)return!1;try{return c7n(p3(this.a.b),e)}catch(t){if(t=jt(t),I(t,205))return!1;throw T(t)}},s.Md=function(){return p3(this.a.b)},s.Qc=function(e){var t;return t=VTn(p3(this.a.b),e),p3(this.a.b).b.gc()=0?"+":"")+(i/60|0),t=tE(y.Math.abs(i)%60),(wxn(),Tzn)[this.q.getDay()]+" "+Mzn[this.q.getMonth()]+" "+tE(this.q.getDate())+" "+tE(this.q.getHours())+":"+tE(this.q.getMinutes())+":"+tE(this.q.getSeconds())+" GMT"+e+t+" "+this.q.getFullYear()};var HA=w(fe,"Date",199);b(1915,199,rKn,HFn),s.a=!1,s.b=0,s.c=0,s.d=0,s.e=0,s.f=0,s.g=!1,s.i=0,s.j=0,s.k=0,s.n=0,s.o=0,s.p=0,w("com.google.gwt.i18n.shared.impl","DateRecord",1915),b(1966,1,{}),s.fe=function(){return null},s.ge=function(){return null},s.he=function(){return null},s.ie=function(){return null},s.je=function(){return null},w(Q2,"JSONValue",1966),b(216,1966,{216:1},na,sq),s.Fb=function(e){return I(e,216)?uX(this.a,u(e,216).a):!1},s.ee=function(){return Rte},s.Hb=function(){return WW(this.a)},s.fe=function(){return this},s.Ib=function(){var e,t,i;for(i=new Yu("["),t=0,e=this.a.length;t0&&(i.a+=","),rc(i,ub(this,t));return i.a+="]",i.a},w(Q2,"JSONArray",216),b(483,1966,{483:1},oq),s.ee=function(){return _te},s.ge=function(){return this},s.Ib=function(){return qn(),""+this.a},s.a=!1;var gzn,pzn;w(Q2,"JSONBoolean",483),b(985,60,Uh,L9n),w(Q2,"JSONException",985),b(1023,1966,{},ww),s.ee=function(){return zte},s.Ib=function(){return ru};var vzn;w(Q2,"JSONNull",1023),b(258,1966,{258:1},nj),s.Fb=function(e){return I(e,258)?this.a==u(e,258).a:!1},s.ee=function(){return Kte},s.Hb=function(){return i3(this.a)},s.he=function(){return this},s.Ib=function(){return this.a+""},s.a=0,w(Q2,"JSONNumber",258),b(183,1966,{183:1},r2,M9),s.Fb=function(e){return I(e,183)?uX(this.a,u(e,183).a):!1},s.ee=function(){return Hte},s.Hb=function(){return WW(this.a)},s.ie=function(){return this},s.Ib=function(){var e,t,i,r,c,o,f;for(f=new Yu("{"),e=!0,o=Z$(this,F(tn,q,2,0,6,1)),i=o,r=0,c=i.length;r=0?":"+this.c:"")+")"},s.c=0;var Ain=w(Ur,"StackTraceElement",310);ozn={3:1,475:1,35:1,2:1};var tn=w(Ur,VZ,2);b(107,418,{475:1},i1,zv,Bs),w(Ur,"StringBuffer",107),b(100,418,{475:1},V1,R0,Yu),w(Ur,"StringBuilder",100),b(687,73,VL,wG),w(Ur,"StringIndexOutOfBoundsException",687),b(2043,1,{});var Sin;b(844,1,{},cln),s.Kb=function(e){return u(e,78).e},w(Ur,"Throwable/lambda$0$Type",844),b(41,60,{3:1,102:1,60:1,78:1,41:1},ye,t1),w(Ur,"UnsupportedOperationException",41),b(240,236,{3:1,35:1,236:1,240:1},W8,CG),s.wd=function(e){return VBn(this,u(e,240))},s.ke=function(){return kb(ORn(this))},s.Fb=function(e){var t;return this===e?!0:I(e,240)?(t=u(e,240),this.e==t.e&&VBn(this,t)==0):!1},s.Hb=function(){var e;return this.b!=0?this.b:this.a<54?(e=tu(this.f),this.b=ge(ui(e,-1)),this.b=33*this.b+ge(ui(cl(e,32),-1)),this.b=17*this.b+Gt(this.e),this.b):(this.b=17*PDn(this.c)+Gt(this.e),this.b)},s.Ib=function(){return ORn(this)},s.a=0,s.b=0,s.d=0,s.e=0,s.f=0;var jzn,Ga,Pin,Iin,Oin,Din,$in,Fin,wR=w("java.math","BigDecimal",240);b(91,236,{3:1,35:1,236:1,91:1},VQ,l1,Pw,OJ,D$n,il),s.wd=function(e){return A$n(this,u(e,91))},s.ke=function(){return kb(jL(this,0))},s.Fb=function(e){return SQ(this,e)},s.Hb=function(){return PDn(this)},s.Ib=function(){return jL(this,0)},s.b=-2,s.c=0,s.d=0,s.e=0;var gR,qA,xin,pR,GA,W4,vg=w("java.math","BigInteger",91),Ezn,Czn,fp,wm;b(488,1967,r0),s.$b=function(){Cu(this)},s._b=function(e){return Uu(this,e)},s.uc=function(e){return dDn(this,e,this.g)||dDn(this,e,this.f)},s.vc=function(){return new ta(this)},s.xc=function(e){return te(this,e)},s.zc=function(e,t){return it(this,e,t)},s.Bc=function(e){return O2(this,e)},s.gc=function(){return Xv(this)},w(fe,"AbstractHashMap",488),b(261,bf,pu,ta),s.$b=function(){this.a.$b()},s.Hc=function(e){return lAn(this,e)},s.Kc=function(){return new Ea(this.a)},s.Mc=function(e){var t;return lAn(this,e)?(t=u(e,42).cd(),this.a.Bc(t),!0):!1},s.gc=function(){return this.a.gc()},w(fe,"AbstractHashMap/EntrySet",261),b(262,1,ji,Ea),s.Nb=function(e){Oi(this,e)},s.Pb=function(){return Nd(this)},s.Ob=function(){return this.b},s.Qb=function(){oPn(this)},s.b=!1,w(fe,"AbstractHashMap/EntrySetIterator",262),b(417,1,ji,$v),s.Nb=function(e){Oi(this,e)},s.Ob=function(){return G9(this)},s.Pb=function(){return $Tn(this)},s.Qb=function(){Wu(this)},s.b=0,s.c=-1,w(fe,"AbstractList/IteratorImpl",417),b(96,417,lh,Pi),s.Qb=function(){Wu(this)},s.Rb=function(e){X0(this,e)},s.Sb=function(){return this.b>0},s.Tb=function(){return this.b},s.Ub=function(){return ne(this.b>0),this.a.Xb(this.c=--this.b)},s.Vb=function(){return this.b-1},s.Wb=function(e){z0(this.c!=-1),this.a._c(this.c,e)},w(fe,"AbstractList/ListIteratorImpl",96),b(219,52,A4,uh),s.Vc=function(e,t){tb(e,this.b),this.c.Vc(this.a+e,t),++this.b},s.Xb=function(e){return Ln(e,this.b),this.c.Xb(this.a+e)},s.$c=function(e){var t;return Ln(e,this.b),t=this.c.$c(this.a+e),--this.b,t},s._c=function(e,t){return Ln(e,this.b),this.c._c(this.a+e,t)},s.gc=function(){return this.b},s.a=0,s.b=0,w(fe,"AbstractList/SubList",219),b(384,bf,pu,Rp),s.$b=function(){this.a.$b()},s.Hc=function(e){return this.a._b(e)},s.Kc=function(){var e;return e=this.a.vc().Kc(),new bq(e)},s.Mc=function(e){return this.a._b(e)?(this.a.Bc(e),!0):!1},s.gc=function(){return this.a.gc()},w(fe,"AbstractMap/1",384),b(691,1,ji,bq),s.Nb=function(e){Oi(this,e)},s.Ob=function(){return this.a.Ob()},s.Pb=function(){var e;return e=u(this.a.Pb(),42),e.cd()},s.Qb=function(){this.a.Qb()},w(fe,"AbstractMap/1/1",691),b(226,28,Sb,Mh),s.$b=function(){this.a.$b()},s.Hc=function(e){return this.a.uc(e)},s.Kc=function(){var e;return e=this.a.vc().Kc(),new L0(e)},s.gc=function(){return this.a.gc()},w(fe,"AbstractMap/2",226),b(294,1,ji,L0),s.Nb=function(e){Oi(this,e)},s.Ob=function(){return this.a.Ob()},s.Pb=function(){var e;return e=u(this.a.Pb(),42),e.dd()},s.Qb=function(){this.a.Qb()},w(fe,"AbstractMap/2/1",294),b(484,1,{484:1,42:1}),s.Fb=function(e){var t;return I(e,42)?(t=u(e,42),pc(this.d,t.cd())&&pc(this.e,t.dd())):!1},s.cd=function(){return this.d},s.dd=function(){return this.e},s.Hb=function(){return Tw(this.d)^Tw(this.e)},s.ed=function(e){return gU(this,e)},s.Ib=function(){return this.d+"="+this.e},w(fe,"AbstractMap/AbstractEntry",484),b(383,484,{484:1,383:1,42:1},Nj),w(fe,"AbstractMap/SimpleEntry",383),b(1984,1,ZL),s.Fb=function(e){var t;return I(e,42)?(t=u(e,42),pc(this.cd(),t.cd())&&pc(this.dd(),t.dd())):!1},s.Hb=function(){return Tw(this.cd())^Tw(this.dd())},s.Ib=function(){return this.cd()+"="+this.dd()},w(fe,U_n,1984),b(1992,1967,G_n),s.tc=function(e){return mSn(this,e)},s._b=function(e){return cD(this,e)},s.vc=function(){return new mq(this)},s.xc=function(e){var t;return t=e,Vr(VV(this,t))},s.ec=function(){return new P9(this)},w(fe,"AbstractNavigableMap",1992),b(739,bf,pu,mq),s.Hc=function(e){return I(e,42)&&mSn(this.b,u(e,42))},s.Kc=function(){return new T5(this.b)},s.Mc=function(e){var t;return I(e,42)?(t=u(e,42),uPn(this.b,t)):!1},s.gc=function(){return this.b.c},w(fe,"AbstractNavigableMap/EntrySet",739),b(493,bf,WZ,P9),s.Nc=function(){return new xj(this)},s.$b=function(){Kv(this.a)},s.Hc=function(e){return cD(this.a,e)},s.Kc=function(){var e;return e=new T5(new j5(this.a).b),new I9(e)},s.Mc=function(e){return cD(this.a,e)?(R5(this.a,e),!0):!1},s.gc=function(){return this.a.c},w(fe,"AbstractNavigableMap/NavigableKeySet",493),b(494,1,ji,I9),s.Nb=function(e){Oi(this,e)},s.Ob=function(){return G9(this.a.a)},s.Pb=function(){var e;return e=pE(this.a),e.cd()},s.Qb=function(){fEn(this.a)},w(fe,"AbstractNavigableMap/NavigableKeySet/1",494),b(2004,28,Sb),s.Fc=function(e){return M3(f4(this,e)),!0},s.Gc=function(e){return _n(e),TE(e!=this,"Can't add a queue to itself"),Vi(this,e)},s.$b=function(){for(;K$(this)!=null;);},w(fe,"AbstractQueue",2004),b(302,28,{4:1,20:1,28:1,14:1},gw,LMn),s.Fc=function(e){return bX(this,e),!0},s.$b=function(){kX(this)},s.Hc=function(e){return LOn(new B5(this),e)},s.dc=function(){return Hv(this)},s.Kc=function(){return new B5(this)},s.Mc=function(e){return ele(new B5(this),e)},s.gc=function(){return this.c-this.b&this.a.length-1},s.Nc=function(){return new xn(this,272)},s.Qc=function(e){var t;return t=this.c-this.b&this.a.length-1,e.lengtht&&St(e,t,null),e},s.b=0,s.c=0,w(fe,"ArrayDeque",302),b(446,1,ji,B5),s.Nb=function(e){Oi(this,e)},s.Ob=function(){return this.a!=this.b},s.Pb=function(){return vT(this)},s.Qb=function(){FIn(this)},s.a=0,s.b=0,s.c=-1,w(fe,"ArrayDeque/IteratorImpl",446),b(12,52,sKn,X,Pc,du),s.Vc=function(e,t){Q0(this,e,t)},s.Fc=function(e){return W(this,e)},s.Wc=function(e,t){return eQ(this,e,t)},s.Gc=function(e){return Zt(this,e)},s.$b=function(){this.c=F(Zn,rn,1,0,5,1)},s.Hc=function(e){return xr(this,e,0)!=-1},s.Jc=function(e){Zc(this,e)},s.Xb=function(e){return un(this,e)},s.Xc=function(e){return xr(this,e,0)},s.dc=function(){return this.c.length==0},s.Kc=function(){return new E(this)},s.$c=function(e){return h1(this,e)},s.Mc=function(e){return Jc(this,e)},s.Ud=function(e,t){xMn(this,e,t)},s._c=function(e,t){return Es(this,e,t)},s.gc=function(){return this.c.length},s.ad=function(e){wi(this,e)},s.Pc=function(){return XO(this)},s.Qc=function(e){return af(this,e)};var RTe=w(fe,"ArrayList",12);b(7,1,ji,E),s.Nb=function(e){Oi(this,e)},s.Ob=function(){return Kr(this)},s.Pb=function(){return j(this)},s.Qb=function(){F5(this)},s.a=0,s.b=-1,w(fe,"ArrayList/1",7),b(2013,y.Function,{},zy),s.te=function(e,t){return ni(e,t)},b(154,52,oKn,Hu),s.Hc=function(e){return LIn(this,e)!=-1},s.Jc=function(e){var t,i,r,c;for(_n(e),i=this.a,r=0,c=i.length;r>>0,e.toString(16)))},s.f=0,s.i=Qt;var VA=w(wh,"CNode",57);b(814,1,{},Vq),w(wh,"CNode/CNodeBuilder",814);var _zn;b(1525,1,{},Tln),s.Oe=function(e,t){return 0},s.Pe=function(e,t){return 0},w(wh,gKn,1525),b(1790,1,{},Mln),s.Le=function(e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m,C;for(a=Ft,r=new E(e.a.b);r.ar.d.c||r.d.c==o.d.c&&r.d.b0?e+this.n.d+this.n.a:0},s.Se=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].Se());else if(this.g)c=EQ(this,lx(this,null,!0));else for(t=(_o(),A(M(_b,1),z,232,0,[Zr,Fc,nc])),i=0,r=t.length;i0?c+this.n.b+this.n.c:0},s.Te=function(){var e,t,i,r,c;if(this.g)for(e=lx(this,null,!1),i=(_o(),A(M(_b,1),z,232,0,[Zr,Fc,nc])),r=0,c=i.length;r0&&(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),AX(this,Fc,t.d+e.d+r[0]-(r[1]-i)/2,r)},s.b=null,s.d=0,s.e=!1,s.f=!1,s.g=!1;var CR=0,QA=0;w(Fa,"GridContainerCell",1473),b(461,22,{3:1,35:1,22:1,461:1},oO);var Ol,Vf,Co,Qzn=Me(Fa,"HorizontalLabelAlignment",461,Ie,gle,nse),Jzn;b(306,212,{212:1,306:1},tMn,fIn,ZTn),s.Re=function(){return _En(this)},s.Se=function(){return nW(this)},s.a=0,s.c=!1;var VTe=w(Fa,"LabelCell",306);b(244,326,{212:1,326:1,244:1},l6),s.Re=function(){return $7(this)},s.Se=function(){return F7(this)},s.Te=function(){tL(this)},s.Ue=function(){iL(this)},s.b=0,s.c=0,s.d=!1,w(Fa,"StripContainerCell",244),b(1626,1,Ve,$ln),s.Mb=function(e){return die(u(e,212))},w(Fa,"StripContainerCell/lambda$0$Type",1626),b(1627,1,{},Fln),s.Fe=function(e){return u(e,212).Se()},w(Fa,"StripContainerCell/lambda$1$Type",1627),b(1628,1,Ve,xln),s.Mb=function(e){return bie(u(e,212))},w(Fa,"StripContainerCell/lambda$2$Type",1628),b(1629,1,{},Lln),s.Fe=function(e){return u(e,212).Re()},w(Fa,"StripContainerCell/lambda$3$Type",1629),b(462,22,{3:1,35:1,22:1,462:1},fO);var To,Dl,Wo,Yzn=Me(Fa,"VerticalLabelAlignment",462,Ie,ple,ese),Zzn;b(789,1,{},NZ),s.c=0,s.d=0,s.k=0,s.s=0,s.t=0,s.v=!1,s.w=0,s.D=!1,w(LM,"NodeContext",789),b(1471,1,lt,Nln),s.ue=function(e,t){return tyn(u(e,61),u(t,61))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(LM,"NodeContext/0methodref$comparePortSides$Type",1471),b(1472,1,lt,Bln),s.ue=function(e,t){return Kve(u(e,111),u(t,111))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(LM,"NodeContext/1methodref$comparePortContexts$Type",1472),b(159,22,{3:1,35:1,22:1,159:1},Ms);var nUn,eUn,tUn,iUn,rUn,cUn,uUn,sUn,oUn,fUn,hUn,lUn,aUn,dUn,bUn,wUn,gUn,pUn,vUn,mUn,kUn,TR,yUn=Me(LM,"NodeLabelLocation",159,Ie,qF,tse),jUn;b(111,1,{111:1},xLn),s.a=!1,w(LM,"PortContext",111),b(1476,1,Yn,Rln),s.td=function(e){y8n(u(e,306))},w(sk,PKn,1476),b(1477,1,Ve,_ln),s.Mb=function(e){return!!u(e,111).c},w(sk,IKn,1477),b(1478,1,Yn,Kln),s.td=function(e){y8n(u(e,111).c)},w(sk,"LabelPlacer/lambda$2$Type",1478);var prn;b(1475,1,Yn,qln),s.td=function(e){W0(),Wte(u(e,111))},w(sk,"NodeLabelAndSizeUtilities/lambda$0$Type",1475),b(790,1,Yn,$U),s.td=function(e){cre(this.b,this.c,this.a,u(e,181))},s.a=!1,s.c=!1,w(sk,"NodeLabelCellCreator/lambda$0$Type",790),b(1474,1,Yn,i5n),s.td=function(e){Qte(this.a,u(e,181))},w(sk,"PortContextCreator/lambda$0$Type",1474);var JA;b(1829,1,{},Gln),w(O4,"GreedyRectangleStripOverlapRemover",1829),b(1830,1,lt,Hln),s.ue=function(e,t){return Nce(u(e,222),u(t,222))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(O4,"GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type",1830),b(1786,1,{},Zmn),s.a=5,s.e=0,w(O4,"RectangleStripOverlapRemover",1786),b(1787,1,lt,Uln),s.ue=function(e,t){return Bce(u(e,222),u(t,222))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(O4,"RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type",1787),b(1789,1,lt,Wln),s.ue=function(e,t){return ohe(u(e,222),u(t,222))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(O4,"RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type",1789),b(406,22,{3:1,35:1,22:1,406:1},_j);var Ik,MR,AR,Ok,EUn=Me(O4,"RectangleStripOverlapRemover/OverlapRemovalDirection",406,Ie,gae,ise),CUn;b(222,1,{222:1},jD),w(O4,"RectangleStripOverlapRemover/RectangleNode",222),b(1788,1,Yn,r5n),s.td=function(e){a3e(this.a,u(e,222))},w(O4,"RectangleStripOverlapRemover/lambda$1$Type",1788),b(1304,1,lt,Xln),s.ue=function(e,t){return vje(u(e,167),u(t,167))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Kf,"PolyominoCompactor/CornerCasesGreaterThanRestComparator",1304),b(1307,1,{},Vln),s.Kb=function(e){return u(e,324).a},w(Kf,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$0$Type",1307),b(1308,1,Ve,Qln),s.Mb=function(e){return u(e,323).a},w(Kf,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$1$Type",1308),b(1309,1,Ve,Jln),s.Mb=function(e){return u(e,323).a},w(Kf,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$2$Type",1309),b(1302,1,lt,Yln),s.ue=function(e,t){return Y7e(u(e,167),u(t,167))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Kf,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator",1302),b(1305,1,{},zln),s.Kb=function(e){return u(e,324).a},w(Kf,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator/lambda$0$Type",1305),b(767,1,lt,xH),s.ue=function(e,t){return nwe(u(e,167),u(t,167))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Kf,"PolyominoCompactor/MinNumOfExtensionsComparator",767),b(1300,1,lt,Zln),s.ue=function(e,t){return fbe(u(e,321),u(t,321))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Kf,"PolyominoCompactor/MinPerimeterComparator",1300),b(1301,1,lt,nan),s.ue=function(e,t){return Rpe(u(e,321),u(t,321))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Kf,"PolyominoCompactor/MinPerimeterComparatorWithShape",1301),b(1303,1,lt,ean),s.ue=function(e,t){return yke(u(e,167),u(t,167))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Kf,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator",1303),b(1306,1,{},tan),s.Kb=function(e){return u(e,324).a},w(Kf,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator/lambda$0$Type",1306),b(777,1,{},_G),s.Ce=function(e,t){return aae(this,u(e,46),u(t,167))},w(Kf,"SuccessorCombination",777),b(644,1,{},wI),s.Ce=function(e,t){var i;return eme((i=u(e,46),u(t,167),i))},w(Kf,"SuccessorJitter",644),b(643,1,{},gI),s.Ce=function(e,t){var i;return q8e((i=u(e,46),u(t,167),i))},w(Kf,"SuccessorLineByLine",643),b(568,1,{},Uy),s.Ce=function(e,t){var i;return t9e((i=u(e,46),u(t,167),i))},w(Kf,"SuccessorManhattan",568),b(1356,1,{},ian),s.Ce=function(e,t){var i;return d8e((i=u(e,46),u(t,167),i))},w(Kf,"SuccessorMaxNormWindingInMathPosSense",1356),b(400,1,{},Hp),s.Ce=function(e,t){return SW(this,e,t)},s.c=!1,s.d=!1,s.e=!1,s.f=!1,w(Kf,"SuccessorQuadrantsGeneric",400),b(1357,1,{},ran),s.Kb=function(e){return u(e,324).a},w(Kf,"SuccessorQuadrantsGeneric/lambda$0$Type",1357),b(323,22,{3:1,35:1,22:1,323:1},Rj),s.a=!1;var Dk,$k,Fk,xk,TUn=Me(BM,bnn,323,Ie,mae,rse),MUn;b(1298,1,{}),s.Ib=function(){var e,t,i,r,c,o;for(i=" ",e=Q(0),c=0;c=0?"b"+e+"["+k$(this.a)+"]":"b["+k$(this.a)+"]"):"b_"+md(this)},w(fk,"FBendpoint",559),b(282,134,{3:1,282:1,94:1,134:1},Ljn),s.Ib=function(){return k$(this)},w(fk,"FEdge",282),b(231,134,{3:1,231:1,94:1,134:1},TC);var JTe=w(fk,"FGraph",231);b(447,357,{3:1,447:1,357:1,94:1,134:1},RAn),s.Ib=function(){return this.b==null||this.b.length==0?"l["+k$(this.a)+"]":"l_"+this.b},w(fk,"FLabel",447),b(144,357,{3:1,144:1,357:1,94:1,134:1},VCn),s.Ib=function(){return cX(this)},s.b=0,w(fk,"FNode",144),b(2003,1,{}),s.bf=function(e){gZ(this,e)},s.cf=function(){vFn(this)},s.d=0,w(Cnn,"AbstractForceModel",2003),b(631,2003,{631:1},SOn),s.af=function(e,t){var i,r,c,o,f;return bLn(this.f,e,t),c=yi(Qr(t.d),e.d),f=y.Math.sqrt(c.a*c.a+c.b*c.b),r=y.Math.max(0,f-L5(e.e)/2-L5(t.e)/2),i=rDn(this.e,e,t),i>0?o=-che(r,this.c)*i:o=Jce(r,this.b)*u(k(e,(Go(),Q4)),19).a,Of(c,o/f),c},s.bf=function(e){gZ(this,e),this.a=u(k(e,(Go(),iS)),19).a,this.c=K(Y(k(e,rS))),this.b=K(Y(k(e,FR)))},s.df=function(e){return e0&&(o-=fie(r,this.a)*i),Of(c,o*this.b/f),c},s.bf=function(e){var t,i,r,c,o,f,h;for(gZ(this,e),this.b=K(Y(k(e,(Go(),xR)))),this.c=this.b/u(k(e,iS),19).a,r=e.e.c.length,o=0,c=0,h=new E(e.e);h.a0},s.a=0,s.b=0,s.c=0,w(Cnn,"FruchtermanReingoldModel",632),b(849,1,zs,f4n),s.Qe=function(e){En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,KM),""),"Force Model"),"Determines the model for force calculation."),Mrn),(y1(),Nt)),Arn),Cn((Ho(),Xn))))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Tnn),""),"Iterations"),"The number of iterations on the force model."),Q(300)),sc),Wi),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Mnn),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),Q(0)),sc),Wi),Cn(Zf)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,yN),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),Hf),Dr),Ai),Cn(Xn)))),Ti(e,yN,KM,UUn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,jN),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),Dr),Ai),Cn(Xn)))),Ti(e,jN,KM,qUn),w_n((new h4n,e))};var _Un,KUn,Mrn,HUn,qUn,GUn,zUn,UUn;w(H6,"ForceMetaDataProvider",849),b(424,22,{3:1,35:1,22:1,424:1},GG);var $R,tS,Arn=Me(H6,"ForceModelStrategy",424,Ie,z1e,sse),WUn;b(988,1,zs,h4n),s.Qe=function(e){w_n(e)};var XUn,VUn,Srn,iS,Prn,QUn,JUn,YUn,Irn,ZUn,Orn,Drn,nWn,Q4,eWn,FR,$rn,tWn,iWn,rS,xR;w(H6,"ForceOptions",988),b(989,1,{},van),s.$e=function(){var e;return e=new Uq,e},s._e=function(e){},w(H6,"ForceOptions/ForceFactory",989);var Bk,vm,hp,cS;b(850,1,zs,l4n),s.Qe=function(e){En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Snn),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(qn(),!1)),(y1(),_i)),oi),Cn((Ho(),vi))))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Pnn),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),Dr),Ai),pt(Xn,A(M($1,1),z,175,0,[Zf]))))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Inn),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),Frn),Nt),Krn),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Onn),""),"Stress Epsilon"),"Termination criterion for the iterative process."),Hf),Dr),Ai),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Dnn),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),Q(nt)),sc),Wi),Cn(Xn)))),ZRn((new a4n,e))};var rWn,cWn,Frn,uWn,sWn,oWn;w(H6,"StressMetaDataProvider",850),b(992,1,zs,a4n),s.Qe=function(e){ZRn(e)};var uS,xrn,Lrn,Nrn,Brn,Rrn,fWn,hWn,lWn,aWn,_rn,dWn;w(H6,"StressOptions",992),b(993,1,{},man),s.$e=function(){var e;return e=new Njn,e},s._e=function(e){},w(H6,"StressOptions/StressFactory",993),b(1128,209,xa,Njn),s.Ze=function(e,t){var i,r,c,o,f;for(le(t,HKn,1),on(sn(hn(e,(C7(),Brn))))?on(sn(hn(e,_rn)))||oC((i=new O9((K0(),new N0(e))),i)):kNn(new Uq,e,kc(t,1)),c=QOn(e),r=fRn(this.a,c),f=r.Kc();f.Ob();)o=u(f.Pb(),231),!(o.e.c.length<=1)&&(gje(this.b,o),Xme(this.b),Zc(o.d,new kan));c=j_n(r),m_n(c),ce(t)},w(GM,"StressLayoutProvider",1128),b(1129,1,Yn,kan),s.td=function(e){EZ(u(e,447))},w(GM,"StressLayoutProvider/lambda$0$Type",1129),b(990,1,{},Umn),s.c=0,s.e=0,s.g=0,w(GM,"StressMajorization",990),b(379,22,{3:1,35:1,22:1,379:1},hO);var LR,NR,BR,Krn=Me(GM,"StressMajorization/Dimension",379,Ie,mle,ose),bWn;b(991,1,lt,o5n),s.ue=function(e,t){return Bue(this.a,u(e,144),u(t,144))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(GM,"StressMajorization/lambda$0$Type",991),b(1229,1,{},YMn),w(rp,"ElkLayered",1229),b(1230,1,Yn,yan),s.td=function(e){V6e(u(e,37))},w(rp,"ElkLayered/lambda$0$Type",1230),b(1231,1,Yn,f5n),s.td=function(e){Rue(this.a,u(e,37))},w(rp,"ElkLayered/lambda$1$Type",1231),b(1263,1,{},Cyn);var wWn,gWn,pWn;w(rp,"GraphConfigurator",1263),b(759,1,Yn,Sq),s.td=function(e){Mxn(this.a,u(e,10))},w(rp,"GraphConfigurator/lambda$0$Type",759),b(760,1,{},NH),s.Kb=function(e){return kJ(),new $n(null,new xn(u(e,29).a,16))},w(rp,"GraphConfigurator/lambda$1$Type",760),b(761,1,Yn,Pq),s.td=function(e){Mxn(this.a,u(e,10))},w(rp,"GraphConfigurator/lambda$2$Type",761),b(1127,209,xa,Vmn),s.Ze=function(e,t){var i;i=Nye(new e9n,e),B(hn(e,(nn(),Vb)))===B((_h(),F1))?w2e(this.a,i,t):lme(this.a,i,t),b_n(new b4n,i)},w(rp,"LayeredLayoutProvider",1127),b(356,22,{3:1,35:1,22:1,356:1},U9);var Qf,$l,Hc,Cc,Or,Hrn=Me(rp,"LayeredPhases",356,Ie,tde,fse),vWn;b(1651,1,{},NIn),s.i=0;var mWn;w(ak,"ComponentsToCGraphTransformer",1651);var kWn;b(1652,1,{},jan),s.ef=function(e,t){return y.Math.min(e.a!=null?K(e.a):e.c.i,t.a!=null?K(t.a):t.c.i)},s.ff=function(e,t){return y.Math.min(e.a!=null?K(e.a):e.c.i,t.a!=null?K(t.a):t.c.i)},w(ak,"ComponentsToCGraphTransformer/1",1652),b(81,1,{81:1}),s.i=0,s.k=!0,s.o=Qt;var RR=w(z6,"CNode",81);b(460,81,{460:1,81:1},zz,UQ),s.Ib=function(){return""},w(ak,"ComponentsToCGraphTransformer/CRectNode",460),b(1623,1,{},Ean);var _R,KR;w(ak,"OneDimensionalComponentsCompaction",1623),b(1624,1,{},Can),s.Kb=function(e){return hle(u(e,46))},s.Fb=function(e){return this===e},w(ak,"OneDimensionalComponentsCompaction/lambda$0$Type",1624),b(1625,1,{},Tan),s.Kb=function(e){return E2e(u(e,46))},s.Fb=function(e){return this===e},w(ak,"OneDimensionalComponentsCompaction/lambda$1$Type",1625),b(1654,1,{},XCn),w(z6,"CGraph",1654),b(189,1,{189:1},_F),s.b=0,s.c=0,s.e=0,s.g=!0,s.i=Qt,w(z6,"CGroup",189),b(1653,1,{},Pan),s.ef=function(e,t){return y.Math.max(e.a!=null?K(e.a):e.c.i,t.a!=null?K(t.a):t.c.i)},s.ff=function(e,t){return y.Math.max(e.a!=null?K(e.a):e.c.i,t.a!=null?K(t.a):t.c.i)},w(z6,gKn,1653),b(1655,1,{},ALn),s.d=!1;var yWn,HR=w(z6,mKn,1655);b(1656,1,{},Ian),s.Kb=function(e){return OG(),qn(),u(u(e,46).a,81).d.e!=0},s.Fb=function(e){return this===e},w(z6,kKn,1656),b(823,1,{},eW),s.a=!1,s.b=!1,s.c=!1,s.d=!1,w(z6,yKn,823),b(1825,1,{},aCn),w(zM,jKn,1825);var Rk=Ct(Na,bKn);b(1826,1,{369:1},qTn),s.Ke=function(e){r7e(this,u(e,466))},w(zM,EKn,1826),b(1827,1,lt,Oan),s.ue=function(e,t){return r1e(u(e,81),u(t,81))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(zM,CKn,1827),b(466,1,{466:1},UG),s.a=!1,w(zM,TKn,466),b(1828,1,lt,Dan),s.ue=function(e,t){return g4e(u(e,466),u(t,466))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(zM,MKn,1828),b(140,1,{140:1},t3,QU),s.Fb=function(e){var t;return e==null||YTe!=$u(e)?!1:(t=u(e,140),pc(this.c,t.c)&&pc(this.d,t.d))},s.Hb=function(){return gT(A(M(Zn,1),rn,1,5,[this.c,this.d]))},s.Ib=function(){return"("+this.c+Ji+this.d+(this.a?"cx":"")+this.b+")"},s.a=!0,s.c=0,s.d=0;var YTe=w(Na,"Point",140);b(405,22,{3:1,35:1,22:1,405:1},Kj);var b0,Kb,kg,Hb,jWn=Me(Na,"Point/Quadrant",405,Ie,kae,hse),EWn;b(1642,1,{},Qmn),s.b=null,s.c=null,s.d=null,s.e=null,s.f=null;var CWn,TWn,MWn,AWn,SWn;w(Na,"RectilinearConvexHull",1642),b(574,1,{369:1},LT),s.Ke=function(e){i0e(this,u(e,140))},s.b=0;var qrn;w(Na,"RectilinearConvexHull/MaximalElementsEventHandler",574),b(1644,1,lt,Aan),s.ue=function(e,t){return Whe(Y(e),Y(t))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Na,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1644),b(1643,1,{369:1},uIn),s.Ke=function(e){p8e(this,u(e,140))},s.a=0,s.b=null,s.c=null,s.d=null,s.e=null,w(Na,"RectilinearConvexHull/RectangleEventHandler",1643),b(1645,1,lt,San),s.ue=function(e,t){return Qle(u(e,140),u(t,140))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Na,"RectilinearConvexHull/lambda$0$Type",1645),b(1646,1,lt,Man),s.ue=function(e,t){return Jle(u(e,140),u(t,140))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Na,"RectilinearConvexHull/lambda$1$Type",1646),b(1647,1,lt,$an),s.ue=function(e,t){return Zle(u(e,140),u(t,140))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Na,"RectilinearConvexHull/lambda$2$Type",1647),b(1648,1,lt,Fan),s.ue=function(e,t){return Yle(u(e,140),u(t,140))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Na,"RectilinearConvexHull/lambda$3$Type",1648),b(1649,1,lt,xan),s.ue=function(e,t){return e5e(u(e,140),u(t,140))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Na,"RectilinearConvexHull/lambda$4$Type",1649),b(1650,1,{},kMn),w(Na,"Scanline",1650),b(2005,1,{}),w(qf,"AbstractGraphPlacer",2005),b(325,1,{325:1},ajn),s.mf=function(e){return this.nf(e)?(Tn(this.b,u(k(e,(G(),Gb)),21),e),!0):!1},s.nf=function(e){var t,i,r,c;for(t=u(k(e,(G(),Gb)),21),c=u(ct(at,t),21),r=c.Kc();r.Ob();)if(i=u(r.Pb(),21),!u(ct(this.b,i),15).dc())return!1;return!0};var at;w(qf,"ComponentGroup",325),b(765,2005,{},Qq),s.of=function(e){var t,i;for(i=new E(this.a);i.av&&(U=0,en+=p+c,p=0),S=f.c,M6(f,U+S.a,en+S.b),Lo(S),i=y.Math.max(i,U+O.a),p=y.Math.max(p,O.b),U+=O.a+c;if(t.f.a=i,t.f.b=en+p,on(sn(k(o,US)))){for(r=new vI,qZ(r,e,c),g=e.Kc();g.Ob();)d=u(g.Pb(),37),st(Lo(d.c),r.e);st(Lo(t.f),r.a)}qX(t,e)},w(qf,"SimpleRowGraphPlacer",1291),b(1292,1,lt,Ban),s.ue=function(e,t){return Zbe(u(e,37),u(t,37))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(qf,"SimpleRowGraphPlacer/1",1292);var IWn;b(1262,1,_f,Ran),s.Lb=function(e){var t;return t=u(k(u(e,243).b,(nn(),Mr)),74),!!t&&t.b!=0},s.Fb=function(e){return this===e},s.Mb=function(e){var t;return t=u(k(u(e,243).b,(nn(),Mr)),74),!!t&&t.b!=0},w(UM,"CompoundGraphPostprocessor/1",1262),b(1261,1,xt,t9n),s.pf=function(e,t){eFn(this,u(e,37),t)},w(UM,"CompoundGraphPreprocessor",1261),b(441,1,{441:1},HDn),s.c=!1,w(UM,"CompoundGraphPreprocessor/ExternalPort",441),b(243,1,{243:1},EE),s.Ib=function(){return VO(this.c)+":"+ELn(this.b)},w(UM,"CrossHierarchyEdge",243),b(763,1,lt,Iq),s.ue=function(e,t){return H3e(this,u(e,243),u(t,243))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(UM,"CrossHierarchyEdgeComparator",763),b(299,134,{3:1,299:1,94:1,134:1}),s.p=0,w($c,"LGraphElement",299),b(17,299,{3:1,17:1,299:1,94:1,134:1},Pd),s.Ib=function(){return ELn(this)};var GR=w($c,"LEdge",17);b(37,299,{3:1,20:1,37:1,299:1,94:1,134:1},lV),s.Jc=function(e){$i(this,e)},s.Kc=function(){return new E(this.b)},s.Ib=function(){return this.b.c.length==0?"G-unlayered"+kl(this.a):this.a.c.length==0?"G-layered"+kl(this.b):"G[layerless"+kl(this.a)+", layers"+kl(this.b)+"]"};var OWn=w($c,"LGraph",37),DWn;b(657,1,{}),s.qf=function(){return this.e.n},s.We=function(e){return k(this.e,e)},s.rf=function(){return this.e.o},s.sf=function(){return this.e.p},s.Xe=function(e){return ai(this.e,e)},s.tf=function(e){this.e.n.a=e.a,this.e.n.b=e.b},s.uf=function(e){this.e.o.a=e.a,this.e.o.b=e.b},s.vf=function(e){this.e.p=e},w($c,"LGraphAdapters/AbstractLShapeAdapter",657),b(577,1,{839:1},ij),s.wf=function(){var e,t;if(!this.b)for(this.b=eh(this.a.b.c.length),t=new E(this.a.b);t.a0&&SDn((Te(t-1,e.length),e.charCodeAt(t-1)),XKn);)--t;if(o> ",e),UT(i)),De(rc((e.a+="[",e),i.i),"]")),e.a},s.c=!0,s.d=!1;var Xrn,Vrn,Qrn,Jrn,Yrn,Zrn,FWn=w($c,"LPort",11);b(397,1,ah,qp),s.Jc=function(e){$i(this,e)},s.Kc=function(){var e;return e=new E(this.a.e),new h5n(e)},w($c,"LPort/1",397),b(1290,1,ji,h5n),s.Nb=function(e){Oi(this,e)},s.Pb=function(){return u(j(this.a),17).c},s.Ob=function(){return Kr(this.a)},s.Qb=function(){F5(this.a)},w($c,"LPort/1/1",1290),b(359,1,ah,n2),s.Jc=function(e){$i(this,e)},s.Kc=function(){var e;return e=new E(this.a.g),new Oq(e)},w($c,"LPort/2",359),b(762,1,ji,Oq),s.Nb=function(e){Oi(this,e)},s.Pb=function(){return u(j(this.a),17).d},s.Ob=function(){return Kr(this.a)},s.Qb=function(){F5(this.a)},w($c,"LPort/2/1",762),b(1283,1,ah,q7n),s.Jc=function(e){$i(this,e)},s.Kc=function(){return new sf(this)},w($c,"LPort/CombineIter",1283),b(201,1,ji,sf),s.Nb=function(e){Oi(this,e)},s.Qb=function(){d8n()},s.Ob=function(){return E5(this)},s.Pb=function(){return Kr(this.a)?j(this.a):j(this.b)},w($c,"LPort/CombineIter/1",201),b(1285,1,_f,Kan),s.Lb=function(e){return CCn(e)},s.Fb=function(e){return this===e},s.Mb=function(e){return wu(),u(e,11).e.c.length!=0},w($c,"LPort/lambda$0$Type",1285),b(1284,1,_f,Han),s.Lb=function(e){return TCn(e)},s.Fb=function(e){return this===e},s.Mb=function(e){return wu(),u(e,11).g.c.length!=0},w($c,"LPort/lambda$1$Type",1284),b(1286,1,_f,qan),s.Lb=function(e){return wu(),u(e,11).j==(J(),Kn)},s.Fb=function(e){return this===e},s.Mb=function(e){return wu(),u(e,11).j==(J(),Kn)},w($c,"LPort/lambda$2$Type",1286),b(1287,1,_f,Gan),s.Lb=function(e){return wu(),u(e,11).j==(J(),Vn)},s.Fb=function(e){return this===e},s.Mb=function(e){return wu(),u(e,11).j==(J(),Vn)},w($c,"LPort/lambda$3$Type",1287),b(1288,1,_f,zan),s.Lb=function(e){return wu(),u(e,11).j==(J(),ae)},s.Fb=function(e){return this===e},s.Mb=function(e){return wu(),u(e,11).j==(J(),ae)},w($c,"LPort/lambda$4$Type",1288),b(1289,1,_f,Uan),s.Lb=function(e){return wu(),u(e,11).j==(J(),Gn)},s.Fb=function(e){return this===e},s.Mb=function(e){return wu(),u(e,11).j==(J(),Gn)},w($c,"LPort/lambda$5$Type",1289),b(29,299,{3:1,20:1,299:1,29:1,94:1,134:1},Rs),s.Jc=function(e){$i(this,e)},s.Kc=function(){return new E(this.a)},s.Ib=function(){return"L_"+xr(this.b.b,this,0)+kl(this.a)},w($c,"Layer",29),b(1342,1,{},e9n),w(C1,YKn,1342),b(1346,1,{},Wan),s.Kb=function(e){return Ir(u(e,82))},w(C1,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1346),b(1349,1,{},Xan),s.Kb=function(e){return Ir(u(e,82))},w(C1,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1349),b(1343,1,Yn,l5n),s.td=function(e){NLn(this.a,u(e,118))},w(C1,ZKn,1343),b(1344,1,Yn,a5n),s.td=function(e){NLn(this.a,u(e,118))},w(C1,nHn,1344),b(1345,1,{},Van),s.Kb=function(e){return new $n(null,new xn(Hhe(u(e,79)),16))},w(C1,eHn,1345),b(1347,1,Ve,d5n),s.Mb=function(e){return qre(this.a,u(e,33))},w(C1,tHn,1347),b(1348,1,{},Qan),s.Kb=function(e){return new $n(null,new xn(qhe(u(e,79)),16))},w(C1,"ElkGraphImporter/lambda$5$Type",1348),b(1350,1,Ve,b5n),s.Mb=function(e){return Gre(this.a,u(e,33))},w(C1,"ElkGraphImporter/lambda$7$Type",1350),b(1351,1,Ve,Jan),s.Mb=function(e){return u1e(u(e,79))},w(C1,"ElkGraphImporter/lambda$8$Type",1351),b(1278,1,{},b4n);var xWn;w(C1,"ElkGraphLayoutTransferrer",1278),b(1279,1,Ve,w5n),s.Mb=function(e){return Due(this.a,u(e,17))},w(C1,"ElkGraphLayoutTransferrer/lambda$0$Type",1279),b(1280,1,Yn,g5n),s.td=function(e){H9(),W(this.a,u(e,17))},w(C1,"ElkGraphLayoutTransferrer/lambda$1$Type",1280),b(1281,1,Ve,p5n),s.Mb=function(e){return pue(this.a,u(e,17))},w(C1,"ElkGraphLayoutTransferrer/lambda$2$Type",1281),b(1282,1,Yn,v5n),s.td=function(e){H9(),W(this.a,u(e,17))},w(C1,"ElkGraphLayoutTransferrer/lambda$3$Type",1282),b(1485,1,xt,Yan),s.pf=function(e,t){mbe(u(e,37),t)},w(Un,"CommentNodeMarginCalculator",1485),b(1486,1,{},Zan),s.Kb=function(e){return new $n(null,new xn(u(e,29).a,16))},w(Un,"CommentNodeMarginCalculator/lambda$0$Type",1486),b(1487,1,Yn,ndn),s.td=function(e){Zye(u(e,10))},w(Un,"CommentNodeMarginCalculator/lambda$1$Type",1487),b(1488,1,xt,edn),s.pf=function(e,t){a7e(u(e,37),t)},w(Un,"CommentPostprocessor",1488),b(1489,1,xt,tdn),s.pf=function(e,t){mCe(u(e,37),t)},w(Un,"CommentPreprocessor",1489),b(1490,1,xt,idn),s.pf=function(e,t){x9e(u(e,37),t)},w(Un,"ConstraintsPostprocessor",1490),b(1491,1,xt,rdn),s.pf=function(e,t){Hbe(u(e,37),t)},w(Un,"EdgeAndLayerConstraintEdgeReverser",1491),b(1492,1,xt,cdn),s.pf=function(e,t){I2e(u(e,37),t)},w(Un,"EndLabelPostprocessor",1492),b(1493,1,{},udn),s.Kb=function(e){return new $n(null,new xn(u(e,29).a,16))},w(Un,"EndLabelPostprocessor/lambda$0$Type",1493),b(1494,1,Ve,sdn),s.Mb=function(e){return C1e(u(e,10))},w(Un,"EndLabelPostprocessor/lambda$1$Type",1494),b(1495,1,Yn,odn),s.td=function(e){p4e(u(e,10))},w(Un,"EndLabelPostprocessor/lambda$2$Type",1495),b(1496,1,xt,fdn),s.pf=function(e,t){u6e(u(e,37),t)},w(Un,"EndLabelPreprocessor",1496),b(1497,1,{},hdn),s.Kb=function(e){return new $n(null,new xn(u(e,29).a,16))},w(Un,"EndLabelPreprocessor/lambda$0$Type",1497),b(1498,1,Yn,wEn),s.td=function(e){ure(this.a,this.b,this.c,u(e,10))},s.a=0,s.b=0,s.c=!1,w(Un,"EndLabelPreprocessor/lambda$1$Type",1498),b(1499,1,Ve,ldn),s.Mb=function(e){return B(k(u(e,70),(nn(),Yf)))===B((of(),Ev))},w(Un,"EndLabelPreprocessor/lambda$2$Type",1499),b(1500,1,Yn,m5n),s.td=function(e){Ke(this.a,u(e,70))},w(Un,"EndLabelPreprocessor/lambda$3$Type",1500),b(1501,1,Ve,adn),s.Mb=function(e){return B(k(u(e,70),(nn(),Yf)))===B((of(),cw))},w(Un,"EndLabelPreprocessor/lambda$4$Type",1501),b(1502,1,Yn,k5n),s.td=function(e){Ke(this.a,u(e,70))},w(Un,"EndLabelPreprocessor/lambda$5$Type",1502),b(1551,1,xt,d4n),s.pf=function(e,t){Bge(u(e,37),t)};var LWn;w(Un,"EndLabelSorter",1551),b(1552,1,lt,ddn),s.ue=function(e,t){return bpe(u(e,456),u(t,456))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Un,"EndLabelSorter/1",1552),b(456,1,{456:1},xTn),w(Un,"EndLabelSorter/LabelGroup",456),b(1553,1,{},bdn),s.Kb=function(e){return q9(),new $n(null,new xn(u(e,29).a,16))},w(Un,"EndLabelSorter/lambda$0$Type",1553),b(1554,1,Ve,wdn),s.Mb=function(e){return q9(),u(e,10).k==(Qn(),ii)},w(Un,"EndLabelSorter/lambda$1$Type",1554),b(1555,1,Yn,gdn),s.td=function(e){p5e(u(e,10))},w(Un,"EndLabelSorter/lambda$2$Type",1555),b(1556,1,Ve,pdn),s.Mb=function(e){return q9(),B(k(u(e,70),(nn(),Yf)))===B((of(),cw))},w(Un,"EndLabelSorter/lambda$3$Type",1556),b(1557,1,Ve,vdn),s.Mb=function(e){return q9(),B(k(u(e,70),(nn(),Yf)))===B((of(),Ev))},w(Un,"EndLabelSorter/lambda$4$Type",1557),b(1503,1,xt,mdn),s.pf=function(e,t){hje(this,u(e,37))},s.b=0,s.c=0,w(Un,"FinalSplineBendpointsCalculator",1503),b(1504,1,{},kdn),s.Kb=function(e){return new $n(null,new xn(u(e,29).a,16))},w(Un,"FinalSplineBendpointsCalculator/lambda$0$Type",1504),b(1505,1,{},ydn),s.Kb=function(e){return new $n(null,new Cd(new re(ue(ei(u(e,10)).a.Kc(),new An))))},w(Un,"FinalSplineBendpointsCalculator/lambda$1$Type",1505),b(1506,1,Ve,jdn),s.Mb=function(e){return!Xi(u(e,17))},w(Un,"FinalSplineBendpointsCalculator/lambda$2$Type",1506),b(1507,1,Ve,Edn),s.Mb=function(e){return ai(u(e,17),(G(),Ua))},w(Un,"FinalSplineBendpointsCalculator/lambda$3$Type",1507),b(1508,1,Yn,y5n),s.td=function(e){Eke(this.a,u(e,128))},w(Un,"FinalSplineBendpointsCalculator/lambda$4$Type",1508),b(1509,1,Yn,Cdn),s.td=function(e){Ax(u(e,17).a)},w(Un,"FinalSplineBendpointsCalculator/lambda$5$Type",1509),b(792,1,xt,Dq),s.pf=function(e,t){iEe(this,u(e,37),t)},w(Un,"GraphTransformer",792),b(511,22,{3:1,35:1,22:1,511:1},zG);var UR,_k,NWn=Me(Un,"GraphTransformer/Mode",511,Ie,U1e,Coe),BWn;b(1510,1,xt,Tdn),s.pf=function(e,t){$8e(u(e,37),t)},w(Un,"HierarchicalNodeResizingProcessor",1510),b(1511,1,xt,Mdn),s.pf=function(e,t){bbe(u(e,37),t)},w(Un,"HierarchicalPortConstraintProcessor",1511),b(1512,1,lt,Adn),s.ue=function(e,t){return Tpe(u(e,10),u(t,10))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Un,"HierarchicalPortConstraintProcessor/NodeComparator",1512),b(1513,1,xt,Sdn),s.pf=function(e,t){Fye(u(e,37),t)},w(Un,"HierarchicalPortDummySizeProcessor",1513),b(1514,1,xt,Pdn),s.pf=function(e,t){O7e(this,u(e,37),t)},s.a=0,w(Un,"HierarchicalPortOrthogonalEdgeRouter",1514),b(1515,1,lt,Idn),s.ue=function(e,t){return Lce(u(e,10),u(t,10))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Un,"HierarchicalPortOrthogonalEdgeRouter/1",1515),b(1516,1,lt,Odn),s.ue=function(e,t){return Qde(u(e,10),u(t,10))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Un,"HierarchicalPortOrthogonalEdgeRouter/2",1516),b(1517,1,xt,Ddn),s.pf=function(e,t){t5e(u(e,37),t)},w(Un,"HierarchicalPortPositionProcessor",1517),b(1518,1,xt,w4n),s.pf=function(e,t){JCe(this,u(e,37))},s.a=0,s.c=0;var sS,oS;w(Un,"HighDegreeNodeLayeringProcessor",1518),b(571,1,{571:1},$dn),s.b=-1,s.d=-1,w(Un,"HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation",571),b(1519,1,{},Fdn),s.Kb=function(e){return w8(),Lr(u(e,10))},s.Fb=function(e){return this===e},w(Un,"HighDegreeNodeLayeringProcessor/lambda$0$Type",1519),b(1520,1,{},xdn),s.Kb=function(e){return w8(),ei(u(e,10))},s.Fb=function(e){return this===e},w(Un,"HighDegreeNodeLayeringProcessor/lambda$1$Type",1520),b(1526,1,xt,Ldn),s.pf=function(e,t){oye(this,u(e,37),t)},w(Un,"HyperedgeDummyMerger",1526),b(793,1,{},xU),s.a=!1,s.b=!1,s.c=!1,w(Un,"HyperedgeDummyMerger/MergeState",793),b(1527,1,{},Ndn),s.Kb=function(e){return new $n(null,new xn(u(e,29).a,16))},w(Un,"HyperedgeDummyMerger/lambda$0$Type",1527),b(1528,1,{},Bdn),s.Kb=function(e){return new $n(null,new xn(u(e,10).j,16))},w(Un,"HyperedgeDummyMerger/lambda$1$Type",1528),b(1529,1,Yn,Rdn),s.td=function(e){u(e,11).p=-1},w(Un,"HyperedgeDummyMerger/lambda$2$Type",1529),b(1530,1,xt,_dn),s.pf=function(e,t){uye(u(e,37),t)},w(Un,"HypernodesProcessor",1530),b(1531,1,xt,Kdn),s.pf=function(e,t){sye(u(e,37),t)},w(Un,"InLayerConstraintProcessor",1531),b(1532,1,xt,Hdn),s.pf=function(e,t){Nbe(u(e,37),t)},w(Un,"InnermostNodeMarginCalculator",1532),b(1533,1,xt,qdn),s.pf=function(e,t){bCe(this,u(e,37))},s.a=Qt,s.b=Qt,s.c=Ft,s.d=Ft;var ZTe=w(Un,"InteractiveExternalPortPositioner",1533);b(1534,1,{},Gdn),s.Kb=function(e){return u(e,17).d.i},s.Fb=function(e){return this===e},w(Un,"InteractiveExternalPortPositioner/lambda$0$Type",1534),b(1535,1,{},j5n),s.Kb=function(e){return Rce(this.a,Y(e))},s.Fb=function(e){return this===e},w(Un,"InteractiveExternalPortPositioner/lambda$1$Type",1535),b(1536,1,{},zdn),s.Kb=function(e){return u(e,17).c.i},s.Fb=function(e){return this===e},w(Un,"InteractiveExternalPortPositioner/lambda$2$Type",1536),b(1537,1,{},E5n),s.Kb=function(e){return _ce(this.a,Y(e))},s.Fb=function(e){return this===e},w(Un,"InteractiveExternalPortPositioner/lambda$3$Type",1537),b(1538,1,{},C5n),s.Kb=function(e){return Pue(this.a,Y(e))},s.Fb=function(e){return this===e},w(Un,"InteractiveExternalPortPositioner/lambda$4$Type",1538),b(1539,1,{},T5n),s.Kb=function(e){return Iue(this.a,Y(e))},s.Fb=function(e){return this===e},w(Un,"InteractiveExternalPortPositioner/lambda$5$Type",1539),b(77,22,{3:1,35:1,22:1,77:1,234:1},zt),s.Kf=function(){switch(this.g){case 15:return new awn;case 22:return new dwn;case 47:return new gwn;case 28:case 35:return new t0n;case 32:return new Yan;case 42:return new edn;case 1:return new tdn;case 41:return new idn;case 56:return new Dq((B3(),_k));case 0:return new Dq((B3(),UR));case 2:return new rdn;case 54:return new cdn;case 33:return new fdn;case 51:return new mdn;case 55:return new Tdn;case 13:return new Mdn;case 38:return new Sdn;case 44:return new Pdn;case 40:return new Ddn;case 9:return new w4n;case 49:return new ejn;case 37:return new Ldn;case 43:return new _dn;case 27:return new Kdn;case 30:return new Hdn;case 3:return new qdn;case 18:return new Wdn;case 29:return new Xdn;case 5:return new g4n;case 50:return new Udn;case 34:return new p4n;case 36:return new i0n;case 52:return new d4n;case 11:return new c0n;case 7:return new m4n;case 39:return new u0n;case 45:return new s0n;case 16:return new o0n;case 10:return new f0n;case 48:return new l0n;case 21:return new a0n;case 23:return new WI((_d(),_m));case 8:return new b0n;case 12:return new g0n;case 4:return new p0n;case 19:return new E4n;case 17:return new A0n;case 53:return new S0n;case 6:return new _0n;case 25:return new c9n;case 46:return new $0n;case 31:return new Rjn;case 14:return new X0n;case 26:return new mwn;case 20:return new Z0n;case 24:return new WI((_d(),aP));default:throw T(new Hn(AN+(this.f!=null?this.f:""+this.g)))}};var ncn,ecn,tcn,icn,rcn,ccn,ucn,scn,ocn,fcn,mm,fS,hS,hcn,lcn,acn,dcn,bcn,wcn,gcn,km,pcn,vcn,mcn,kcn,ycn,WR,lS,aS,jcn,dS,bS,wS,J4,Y4,Z4,Ecn,gS,pS,Ccn,vS,mS,Tcn,Mcn,Acn,Scn,kS,XR,Kk,yS,jS,ES,CS,Pcn,Icn,Ocn,Dcn,nMe=Me(Un,Fnn,77,Ie,PNn,Eoe),RWn;b(1540,1,xt,Wdn),s.pf=function(e,t){gCe(u(e,37),t)},w(Un,"InvertedPortProcessor",1540),b(1541,1,xt,Xdn),s.pf=function(e,t){gke(u(e,37),t)},w(Un,"LabelAndNodeSizeProcessor",1541),b(1542,1,Ve,Vdn),s.Mb=function(e){return u(e,10).k==(Qn(),ii)},w(Un,"LabelAndNodeSizeProcessor/lambda$0$Type",1542),b(1543,1,Ve,Qdn),s.Mb=function(e){return u(e,10).k==(Qn(),Xt)},w(Un,"LabelAndNodeSizeProcessor/lambda$1$Type",1543),b(1544,1,Yn,gEn),s.td=function(e){sre(this.b,this.a,this.c,u(e,10))},s.a=!1,s.c=!1,w(Un,"LabelAndNodeSizeProcessor/lambda$2$Type",1544),b(1545,1,xt,g4n),s.pf=function(e,t){_Ee(u(e,37),t)};var _Wn;w(Un,"LabelDummyInserter",1545),b(1546,1,_f,Jdn),s.Lb=function(e){return B(k(u(e,70),(nn(),Yf)))===B((of(),jv))},s.Fb=function(e){return this===e},s.Mb=function(e){return B(k(u(e,70),(nn(),Yf)))===B((of(),jv))},w(Un,"LabelDummyInserter/1",1546),b(1547,1,xt,Udn),s.pf=function(e,t){Hje(u(e,37),t)},w(Un,"LabelDummyRemover",1547),b(1548,1,Ve,Ydn),s.Mb=function(e){return on(sn(k(u(e,70),(nn(),L_))))},w(Un,"LabelDummyRemover/lambda$0$Type",1548),b(1359,1,xt,p4n),s.pf=function(e,t){pEe(this,u(e,37),t)},s.a=null;var VR;w(Un,"LabelDummySwitcher",1359),b(286,1,{286:1},ABn),s.c=0,s.d=null,s.f=0,w(Un,"LabelDummySwitcher/LabelDummyInfo",286),b(1360,1,{},Zdn),s.Kb=function(e){return x2(),new $n(null,new xn(u(e,29).a,16))},w(Un,"LabelDummySwitcher/lambda$0$Type",1360),b(1361,1,Ve,n0n),s.Mb=function(e){return x2(),u(e,10).k==(Qn(),Ju)},w(Un,"LabelDummySwitcher/lambda$1$Type",1361),b(1362,1,{},S5n),s.Kb=function(e){return vue(this.a,u(e,10))},w(Un,"LabelDummySwitcher/lambda$2$Type",1362),b(1363,1,Yn,P5n),s.td=function(e){phe(this.a,u(e,286))},w(Un,"LabelDummySwitcher/lambda$3$Type",1363),b(1364,1,lt,e0n),s.ue=function(e,t){return zfe(u(e,286),u(t,286))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Un,"LabelDummySwitcher/lambda$4$Type",1364),b(791,1,xt,t0n),s.pf=function(e,t){Sde(u(e,37),t)},w(Un,"LabelManagementProcessor",791),b(1549,1,xt,i0n),s.pf=function(e,t){Z8e(u(e,37),t)},w(Un,"LabelSideSelector",1549),b(1550,1,Ve,r0n),s.Mb=function(e){return on(sn(k(u(e,70),(nn(),L_))))},w(Un,"LabelSideSelector/lambda$0$Type",1550),b(1558,1,xt,c0n),s.pf=function(e,t){xye(u(e,37),t)},w(Un,"LayerConstraintPostprocessor",1558),b(1559,1,xt,m4n),s.pf=function(e,t){Vme(u(e,37),t)};var $cn;w(Un,"LayerConstraintPreprocessor",1559),b(360,22,{3:1,35:1,22:1,360:1},Hj);var Hk,TS,MS,QR,KWn=Me(Un,"LayerConstraintPreprocessor/HiddenNodeConnections",360,Ie,yae,bse),HWn;b(1560,1,xt,u0n),s.pf=function(e,t){Rje(u(e,37),t)},w(Un,"LayerSizeAndGraphHeightCalculator",1560),b(1561,1,xt,s0n),s.pf=function(e,t){H9e(u(e,37),t)},w(Un,"LongEdgeJoiner",1561),b(1562,1,xt,o0n),s.pf=function(e,t){kje(u(e,37),t)},w(Un,"LongEdgeSplitter",1562),b(1563,1,xt,f0n),s.pf=function(e,t){kEe(this,u(e,37),t)},s.d=0,s.e=0,s.i=0,s.j=0,s.k=0,s.n=0,w(Un,"NodePromotion",1563),b(1564,1,{},h0n),s.Kb=function(e){return u(e,46),qn(),!0},s.Fb=function(e){return this===e},w(Un,"NodePromotion/lambda$0$Type",1564),b(1565,1,{},M5n),s.Kb=function(e){return Bhe(this.a,u(e,46))},s.Fb=function(e){return this===e},s.a=0,w(Un,"NodePromotion/lambda$1$Type",1565),b(1566,1,{},A5n),s.Kb=function(e){return Rhe(this.a,u(e,46))},s.Fb=function(e){return this===e},s.a=0,w(Un,"NodePromotion/lambda$2$Type",1566),b(1567,1,xt,l0n),s.pf=function(e,t){GCe(u(e,37),t)},w(Un,"NorthSouthPortPostprocessor",1567),b(1568,1,xt,a0n),s.pf=function(e,t){PCe(u(e,37),t)},w(Un,"NorthSouthPortPreprocessor",1568),b(1569,1,lt,d0n),s.ue=function(e,t){return rwe(u(e,11),u(t,11))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Un,"NorthSouthPortPreprocessor/lambda$0$Type",1569),b(1570,1,xt,b0n),s.pf=function(e,t){Uke(u(e,37),t)},w(Un,"PartitionMidprocessor",1570),b(1571,1,Ve,w0n),s.Mb=function(e){return ai(u(e,10),(nn(),av))},w(Un,"PartitionMidprocessor/lambda$0$Type",1571),b(1572,1,Yn,I5n),s.td=function(e){s1e(this.a,u(e,10))},w(Un,"PartitionMidprocessor/lambda$1$Type",1572),b(1573,1,xt,g0n),s.pf=function(e,t){o8e(u(e,37),t)},w(Un,"PartitionPostprocessor",1573),b(1574,1,xt,p0n),s.pf=function(e,t){vme(u(e,37),t)},w(Un,"PartitionPreprocessor",1574),b(1575,1,Ve,v0n),s.Mb=function(e){return ai(u(e,10),(nn(),av))},w(Un,"PartitionPreprocessor/lambda$0$Type",1575),b(1576,1,{},m0n),s.Kb=function(e){return new $n(null,new Cd(new re(ue(ei(u(e,10)).a.Kc(),new An))))},w(Un,"PartitionPreprocessor/lambda$1$Type",1576),b(1577,1,Ve,k0n),s.Mb=function(e){return lpe(u(e,17))},w(Un,"PartitionPreprocessor/lambda$2$Type",1577),b(1578,1,Yn,y0n),s.td=function(e){bwe(u(e,17))},w(Un,"PartitionPreprocessor/lambda$3$Type",1578),b(1579,1,xt,E4n),s.pf=function(e,t){Ike(u(e,37),t)};var Fcn,qWn,GWn,zWn,xcn,Lcn;w(Un,"PortListSorter",1579),b(1580,1,{},j0n),s.Kb=function(e){return V3(),u(e,11).e},w(Un,"PortListSorter/lambda$0$Type",1580),b(1581,1,{},E0n),s.Kb=function(e){return V3(),u(e,11).g},w(Un,"PortListSorter/lambda$1$Type",1581),b(1582,1,lt,C0n),s.ue=function(e,t){return KAn(u(e,11),u(t,11))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Un,"PortListSorter/lambda$2$Type",1582),b(1583,1,lt,T0n),s.ue=function(e,t){return x3e(u(e,11),u(t,11))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Un,"PortListSorter/lambda$3$Type",1583),b(1584,1,lt,M0n),s.ue=function(e,t){return QBn(u(e,11),u(t,11))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Un,"PortListSorter/lambda$4$Type",1584),b(1585,1,xt,A0n),s.pf=function(e,t){qme(u(e,37),t)},w(Un,"PortSideProcessor",1585),b(1586,1,xt,S0n),s.pf=function(e,t){G7e(u(e,37),t)},w(Un,"ReversedEdgeRestorer",1586),b(1591,1,xt,c9n),s.pf=function(e,t){m3e(this,u(e,37),t)},w(Un,"SelfLoopPortRestorer",1591),b(1592,1,{},P0n),s.Kb=function(e){return new $n(null,new xn(u(e,29).a,16))},w(Un,"SelfLoopPortRestorer/lambda$0$Type",1592),b(1593,1,Ve,I0n),s.Mb=function(e){return u(e,10).k==(Qn(),ii)},w(Un,"SelfLoopPortRestorer/lambda$1$Type",1593),b(1594,1,Ve,O0n),s.Mb=function(e){return ai(u(e,10),(G(),fv))},w(Un,"SelfLoopPortRestorer/lambda$2$Type",1594),b(1595,1,{},D0n),s.Kb=function(e){return u(k(u(e,10),(G(),fv)),403)},w(Un,"SelfLoopPortRestorer/lambda$3$Type",1595),b(1596,1,Yn,O5n),s.td=function(e){S5e(this.a,u(e,403))},w(Un,"SelfLoopPortRestorer/lambda$4$Type",1596),b(794,1,Yn,RH),s.td=function(e){q5e(u(e,101))},w(Un,"SelfLoopPortRestorer/lambda$5$Type",794),b(1597,1,xt,$0n),s.pf=function(e,t){Spe(u(e,37),t)},w(Un,"SelfLoopPostProcessor",1597),b(1598,1,{},F0n),s.Kb=function(e){return new $n(null,new xn(u(e,29).a,16))},w(Un,"SelfLoopPostProcessor/lambda$0$Type",1598),b(1599,1,Ve,x0n),s.Mb=function(e){return u(e,10).k==(Qn(),ii)},w(Un,"SelfLoopPostProcessor/lambda$1$Type",1599),b(1600,1,Ve,L0n),s.Mb=function(e){return ai(u(e,10),(G(),fv))},w(Un,"SelfLoopPostProcessor/lambda$2$Type",1600),b(1601,1,Yn,N0n),s.td=function(e){x4e(u(e,10))},w(Un,"SelfLoopPostProcessor/lambda$3$Type",1601),b(1602,1,{},B0n),s.Kb=function(e){return new $n(null,new xn(u(e,101).f,1))},w(Un,"SelfLoopPostProcessor/lambda$4$Type",1602),b(1603,1,Yn,D5n),s.td=function(e){Cae(this.a,u(e,409))},w(Un,"SelfLoopPostProcessor/lambda$5$Type",1603),b(1604,1,Ve,R0n),s.Mb=function(e){return!!u(e,101).i},w(Un,"SelfLoopPostProcessor/lambda$6$Type",1604),b(1605,1,Yn,$5n),s.td=function(e){oie(this.a,u(e,101))},w(Un,"SelfLoopPostProcessor/lambda$7$Type",1605),b(1587,1,xt,_0n),s.pf=function(e,t){y9e(u(e,37),t)},w(Un,"SelfLoopPreProcessor",1587),b(1588,1,{},K0n),s.Kb=function(e){return new $n(null,new xn(u(e,101).f,1))},w(Un,"SelfLoopPreProcessor/lambda$0$Type",1588),b(1589,1,{},H0n),s.Kb=function(e){return u(e,409).a},w(Un,"SelfLoopPreProcessor/lambda$1$Type",1589),b(1590,1,Yn,q0n),s.td=function(e){dce(u(e,17))},w(Un,"SelfLoopPreProcessor/lambda$2$Type",1590),b(1606,1,xt,Rjn),s.pf=function(e,t){v5e(this,u(e,37),t)},w(Un,"SelfLoopRouter",1606),b(1607,1,{},G0n),s.Kb=function(e){return new $n(null,new xn(u(e,29).a,16))},w(Un,"SelfLoopRouter/lambda$0$Type",1607),b(1608,1,Ve,z0n),s.Mb=function(e){return u(e,10).k==(Qn(),ii)},w(Un,"SelfLoopRouter/lambda$1$Type",1608),b(1609,1,Ve,U0n),s.Mb=function(e){return ai(u(e,10),(G(),fv))},w(Un,"SelfLoopRouter/lambda$2$Type",1609),b(1610,1,{},W0n),s.Kb=function(e){return u(k(u(e,10),(G(),fv)),403)},w(Un,"SelfLoopRouter/lambda$3$Type",1610),b(1611,1,Yn,x7n),s.td=function(e){Yhe(this.a,this.b,u(e,403))},w(Un,"SelfLoopRouter/lambda$4$Type",1611),b(1612,1,xt,X0n),s.pf=function(e,t){K8e(u(e,37),t)},w(Un,"SemiInteractiveCrossMinProcessor",1612),b(1613,1,Ve,V0n),s.Mb=function(e){return u(e,10).k==(Qn(),ii)},w(Un,"SemiInteractiveCrossMinProcessor/lambda$0$Type",1613),b(1614,1,Ve,Q0n),s.Mb=function(e){return eCn(u(e,10))._b((nn(),Zb))},w(Un,"SemiInteractiveCrossMinProcessor/lambda$1$Type",1614),b(1615,1,lt,J0n),s.ue=function(e,t){return gbe(u(e,10),u(t,10))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Un,"SemiInteractiveCrossMinProcessor/lambda$2$Type",1615),b(1616,1,{},Y0n),s.Ce=function(e,t){return w1e(u(e,10),u(t,10))},w(Un,"SemiInteractiveCrossMinProcessor/lambda$3$Type",1616),b(1618,1,xt,Z0n),s.pf=function(e,t){Lye(u(e,37),t)},w(Un,"SortByInputModelProcessor",1618),b(1619,1,Ve,nbn),s.Mb=function(e){return u(e,11).g.c.length!=0},w(Un,"SortByInputModelProcessor/lambda$0$Type",1619),b(1620,1,Yn,F5n),s.td=function(e){X5e(this.a,u(e,11))},w(Un,"SortByInputModelProcessor/lambda$1$Type",1620),b(1693,803,{},QIn),s.Me=function(e){var t,i,r,c;switch(this.c=e,this.a.g){case 2:t=new X,Rt(gt(new $n(null,new xn(this.c.a.b,16)),new bbn),new _7n(this,t)),O7(this,new ibn),Zc(t,new rbn),t.c=F(Zn,rn,1,0,5,1),Rt(gt(new $n(null,new xn(this.c.a.b,16)),new cbn),new L5n(t)),O7(this,new ubn),Zc(t,new sbn),t.c=F(Zn,rn,1,0,5,1),i=myn(fOn(YE(new $n(null,new xn(this.c.a.b,16)),new N5n(this))),new obn),Rt(new $n(null,new xn(this.c.a.a,16)),new N7n(i,t)),O7(this,new hbn),Zc(t,new ebn),t.c=F(Zn,rn,1,0,5,1);break;case 3:r=new X,O7(this,new tbn),c=myn(fOn(YE(new $n(null,new xn(this.c.a.b,16)),new x5n(this))),new fbn),Rt(gt(new $n(null,new xn(this.c.a.b,16)),new lbn),new R7n(c,r)),O7(this,new abn),Zc(r,new dbn),r.c=F(Zn,rn,1,0,5,1);break;default:throw T(new Gmn)}},s.b=0,w(Jt,"EdgeAwareScanlineConstraintCalculation",1693),b(1694,1,_f,tbn),s.Lb=function(e){return I(u(e,57).g,145)},s.Fb=function(e){return this===e},s.Mb=function(e){return I(u(e,57).g,145)},w(Jt,"EdgeAwareScanlineConstraintCalculation/lambda$0$Type",1694),b(1695,1,{},x5n),s.Fe=function(e){return A6e(this.a,u(e,57))},w(Jt,"EdgeAwareScanlineConstraintCalculation/lambda$1$Type",1695),b(1703,1,DM,L7n),s.Vd=function(){g6(this.a,this.b,-1)},s.b=0,w(Jt,"EdgeAwareScanlineConstraintCalculation/lambda$10$Type",1703),b(1705,1,_f,ibn),s.Lb=function(e){return I(u(e,57).g,145)},s.Fb=function(e){return this===e},s.Mb=function(e){return I(u(e,57).g,145)},w(Jt,"EdgeAwareScanlineConstraintCalculation/lambda$11$Type",1705),b(1706,1,Yn,rbn),s.td=function(e){u(e,365).Vd()},w(Jt,"EdgeAwareScanlineConstraintCalculation/lambda$12$Type",1706),b(1707,1,Ve,cbn),s.Mb=function(e){return I(u(e,57).g,10)},w(Jt,"EdgeAwareScanlineConstraintCalculation/lambda$13$Type",1707),b(1709,1,Yn,L5n),s.td=function(e){n2e(this.a,u(e,57))},w(Jt,"EdgeAwareScanlineConstraintCalculation/lambda$14$Type",1709),b(1708,1,DM,G7n),s.Vd=function(){g6(this.b,this.a,-1)},s.a=0,w(Jt,"EdgeAwareScanlineConstraintCalculation/lambda$15$Type",1708),b(1710,1,_f,ubn),s.Lb=function(e){return I(u(e,57).g,10)},s.Fb=function(e){return this===e},s.Mb=function(e){return I(u(e,57).g,10)},w(Jt,"EdgeAwareScanlineConstraintCalculation/lambda$16$Type",1710),b(1711,1,Yn,sbn),s.td=function(e){u(e,365).Vd()},w(Jt,"EdgeAwareScanlineConstraintCalculation/lambda$17$Type",1711),b(1712,1,{},N5n),s.Fe=function(e){return S6e(this.a,u(e,57))},w(Jt,"EdgeAwareScanlineConstraintCalculation/lambda$18$Type",1712),b(1713,1,{},obn),s.De=function(){return 0},w(Jt,"EdgeAwareScanlineConstraintCalculation/lambda$19$Type",1713),b(1696,1,{},fbn),s.De=function(){return 0},w(Jt,"EdgeAwareScanlineConstraintCalculation/lambda$2$Type",1696),b(1715,1,Yn,N7n),s.td=function(e){xfe(this.a,this.b,u(e,307))},s.a=0,w(Jt,"EdgeAwareScanlineConstraintCalculation/lambda$20$Type",1715),b(1714,1,DM,B7n),s.Vd=function(){uNn(this.a,this.b,-1)},s.b=0,w(Jt,"EdgeAwareScanlineConstraintCalculation/lambda$21$Type",1714),b(1716,1,_f,hbn),s.Lb=function(e){return u(e,57),!0},s.Fb=function(e){return this===e},s.Mb=function(e){return u(e,57),!0},w(Jt,"EdgeAwareScanlineConstraintCalculation/lambda$22$Type",1716),b(1717,1,Yn,ebn),s.td=function(e){u(e,365).Vd()},w(Jt,"EdgeAwareScanlineConstraintCalculation/lambda$23$Type",1717),b(1697,1,Ve,lbn),s.Mb=function(e){return I(u(e,57).g,10)},w(Jt,"EdgeAwareScanlineConstraintCalculation/lambda$3$Type",1697),b(1699,1,Yn,R7n),s.td=function(e){Lfe(this.a,this.b,u(e,57))},s.a=0,w(Jt,"EdgeAwareScanlineConstraintCalculation/lambda$4$Type",1699),b(1698,1,DM,z7n),s.Vd=function(){g6(this.b,this.a,-1)},s.a=0,w(Jt,"EdgeAwareScanlineConstraintCalculation/lambda$5$Type",1698),b(1700,1,_f,abn),s.Lb=function(e){return u(e,57),!0},s.Fb=function(e){return this===e},s.Mb=function(e){return u(e,57),!0},w(Jt,"EdgeAwareScanlineConstraintCalculation/lambda$6$Type",1700),b(1701,1,Yn,dbn),s.td=function(e){u(e,365).Vd()},w(Jt,"EdgeAwareScanlineConstraintCalculation/lambda$7$Type",1701),b(1702,1,Ve,bbn),s.Mb=function(e){return I(u(e,57).g,145)},w(Jt,"EdgeAwareScanlineConstraintCalculation/lambda$8$Type",1702),b(1704,1,Yn,_7n),s.td=function(e){$0e(this.a,this.b,u(e,57))},w(Jt,"EdgeAwareScanlineConstraintCalculation/lambda$9$Type",1704),b(1521,1,xt,ejn),s.pf=function(e,t){Aje(this,u(e,37),t)};var UWn;w(Jt,"HorizontalGraphCompactor",1521),b(1522,1,{},B5n),s.Oe=function(e,t){var i,r,c;return YX(e,t)||(i=$w(e),r=$w(t),i&&i.k==(Qn(),Xt)||r&&r.k==(Qn(),Xt))?0:(c=u(k(this.a.a,(G(),Ig)),304),Kce(c,i?i.k:(Qn(),pi),r?r.k:(Qn(),pi)))},s.Pe=function(e,t){var i,r,c;return YX(e,t)?1:(i=$w(e),r=$w(t),c=u(k(this.a.a,(G(),Ig)),304),Wz(c,i?i.k:(Qn(),pi),r?r.k:(Qn(),pi)))},w(Jt,"HorizontalGraphCompactor/1",1522),b(1523,1,{},wbn),s.Ne=function(e,t){return Qv(),e.a.i==0},w(Jt,"HorizontalGraphCompactor/lambda$0$Type",1523),b(1524,1,{},R5n),s.Ne=function(e,t){return l1e(this.a,e,t)},w(Jt,"HorizontalGraphCompactor/lambda$1$Type",1524),b(1664,1,{},xPn);var WWn,XWn;w(Jt,"LGraphToCGraphTransformer",1664),b(1672,1,Ve,gbn),s.Mb=function(e){return e!=null},w(Jt,"LGraphToCGraphTransformer/0methodref$nonNull$Type",1672),b(1665,1,{},pbn),s.Kb=function(e){return wo(),Nr(k(u(u(e,57).g,10),(G(),rt)))},w(Jt,"LGraphToCGraphTransformer/lambda$0$Type",1665),b(1666,1,{},vbn),s.Kb=function(e){return wo(),BDn(u(u(e,57).g,145))},w(Jt,"LGraphToCGraphTransformer/lambda$1$Type",1666),b(1675,1,Ve,mbn),s.Mb=function(e){return wo(),I(u(e,57).g,10)},w(Jt,"LGraphToCGraphTransformer/lambda$10$Type",1675),b(1676,1,Yn,kbn),s.td=function(e){h1e(u(e,57))},w(Jt,"LGraphToCGraphTransformer/lambda$11$Type",1676),b(1677,1,Ve,ybn),s.Mb=function(e){return wo(),I(u(e,57).g,145)},w(Jt,"LGraphToCGraphTransformer/lambda$12$Type",1677),b(1681,1,Yn,jbn),s.td=function(e){wge(u(e,57))},w(Jt,"LGraphToCGraphTransformer/lambda$13$Type",1681),b(1678,1,Yn,_5n),s.td=function(e){Rre(this.a,u(e,8))},s.a=0,w(Jt,"LGraphToCGraphTransformer/lambda$14$Type",1678),b(1679,1,Yn,K5n),s.td=function(e){Kre(this.a,u(e,110))},s.a=0,w(Jt,"LGraphToCGraphTransformer/lambda$15$Type",1679),b(1680,1,Yn,H5n),s.td=function(e){_re(this.a,u(e,8))},s.a=0,w(Jt,"LGraphToCGraphTransformer/lambda$16$Type",1680),b(1682,1,{},Ebn),s.Kb=function(e){return wo(),new $n(null,new Cd(new re(ue(ei(u(e,10)).a.Kc(),new An))))},w(Jt,"LGraphToCGraphTransformer/lambda$17$Type",1682),b(1683,1,Ve,Cbn),s.Mb=function(e){return wo(),Xi(u(e,17))},w(Jt,"LGraphToCGraphTransformer/lambda$18$Type",1683),b(1684,1,Yn,q5n),s.td=function(e){y0e(this.a,u(e,17))},w(Jt,"LGraphToCGraphTransformer/lambda$19$Type",1684),b(1668,1,Yn,G5n),s.td=function(e){eae(this.a,u(e,145))},w(Jt,"LGraphToCGraphTransformer/lambda$2$Type",1668),b(1685,1,{},Tbn),s.Kb=function(e){return wo(),new $n(null,new xn(u(e,29).a,16))},w(Jt,"LGraphToCGraphTransformer/lambda$20$Type",1685),b(1686,1,{},Mbn),s.Kb=function(e){return wo(),new $n(null,new Cd(new re(ue(ei(u(e,10)).a.Kc(),new An))))},w(Jt,"LGraphToCGraphTransformer/lambda$21$Type",1686),b(1687,1,{},Abn),s.Kb=function(e){return wo(),u(k(u(e,17),(G(),Ua)),15)},w(Jt,"LGraphToCGraphTransformer/lambda$22$Type",1687),b(1688,1,Ve,Sbn),s.Mb=function(e){return qce(u(e,15))},w(Jt,"LGraphToCGraphTransformer/lambda$23$Type",1688),b(1689,1,Yn,z5n),s.td=function(e){v6e(this.a,u(e,15))},w(Jt,"LGraphToCGraphTransformer/lambda$24$Type",1689),b(1667,1,Yn,K7n),s.td=function(e){Hae(this.a,this.b,u(e,145))},w(Jt,"LGraphToCGraphTransformer/lambda$3$Type",1667),b(1669,1,{},Pbn),s.Kb=function(e){return wo(),new $n(null,new xn(u(e,29).a,16))},w(Jt,"LGraphToCGraphTransformer/lambda$4$Type",1669),b(1670,1,{},Ibn),s.Kb=function(e){return wo(),new $n(null,new Cd(new re(ue(ei(u(e,10)).a.Kc(),new An))))},w(Jt,"LGraphToCGraphTransformer/lambda$5$Type",1670),b(1671,1,{},Obn),s.Kb=function(e){return wo(),u(k(u(e,17),(G(),Ua)),15)},w(Jt,"LGraphToCGraphTransformer/lambda$6$Type",1671),b(1673,1,Yn,U5n),s.td=function(e){Q6e(this.a,u(e,15))},w(Jt,"LGraphToCGraphTransformer/lambda$8$Type",1673),b(1674,1,Yn,H7n),s.td=function(e){fce(this.a,this.b,u(e,145))},w(Jt,"LGraphToCGraphTransformer/lambda$9$Type",1674),b(1663,1,{},Dbn),s.Le=function(e){var t,i,r,c,o;for(this.a=e,this.d=new LI,this.c=F(grn,rn,121,this.a.a.a.c.length,0,1),this.b=0,i=new E(this.a.a.a);i.a=C&&(W(o,Q(d)),O=y.Math.max(O,x[d-1]-g),h+=m,S+=x[d-1]-S,g=x[d-1],m=l[d]),m=y.Math.max(m,l[d]),++d;h+=m}v=y.Math.min(1/O,1/t.b/h),v>r&&(r=v,i=o)}return i},s.Wf=function(){return!1},w(Gf,"MSDCutIndexHeuristic",802),b(1617,1,xt,mwn),s.pf=function(e,t){Sye(u(e,37),t)},w(Gf,"SingleEdgeGraphWrapper",1617),b(227,22,{3:1,35:1,22:1,227:1},i5);var Eg,tv,iv,qb,ym,Cg,rv=Me(lc,"CenterEdgeLabelPlacementStrategy",227,Ie,Rde,pse),uXn;b(422,22,{3:1,35:1,22:1,422:1},WG);var Bcn,s_,Rcn=Me(lc,"ConstraintCalculationStrategy",422,Ie,P1e,vse),sXn;b(314,22,{3:1,35:1,22:1,314:1,246:1,234:1},dO),s.Kf=function(){return pLn(this)},s.Xf=function(){return pLn(this)};var qk,ap,_cn,Kcn=Me(lc,"CrossingMinimizationStrategy",314,Ie,yle,mse),oXn;b(337,22,{3:1,35:1,22:1,337:1},bO);var Hcn,o_,DS,qcn=Me(lc,"CuttingStrategy",337,Ie,jle,jse),fXn;b(335,22,{3:1,35:1,22:1,335:1,246:1,234:1},X9),s.Kf=function(){return iNn(this)},s.Xf=function(){return iNn(this)};var Gcn,f_,jm,h_,Em,zcn=Me(lc,"CycleBreakingStrategy",335,Ie,lde,Ese),hXn;b(419,22,{3:1,35:1,22:1,419:1},XG);var $S,Ucn,Wcn=Me(lc,"DirectionCongruency",419,Ie,S1e,Cse),lXn;b(450,22,{3:1,35:1,22:1,450:1},wO);var cv,l_,Tg,aXn=Me(lc,"EdgeConstraint",450,Ie,Ele,Tse),dXn;b(276,22,{3:1,35:1,22:1,276:1},r5);var a_,d_,b_,w_,FS,g_,Xcn=Me(lc,"EdgeLabelSideSelection",276,Ie,qde,Mse),bXn;b(479,22,{3:1,35:1,22:1,479:1},VG);var xS,Vcn,Qcn=Me(lc,"EdgeStraighteningStrategy",479,Ie,A1e,Ase),wXn;b(274,22,{3:1,35:1,22:1,274:1},c5);var p_,Jcn,Ycn,LS,Zcn,nun,eun=Me(lc,"FixedAlignment",274,Ie,Kde,Sse),gXn;b(275,22,{3:1,35:1,22:1,275:1},u5);var tun,iun,run,cun,Cm,uun,sun=Me(lc,"GraphCompactionStrategy",275,Ie,_de,Pse),pXn;b(256,22,{3:1,35:1,22:1,256:1},H0);var uv,NS,sv,$s,Tm,BS,ov,Mg,RS,Mm,v_=Me(lc,"GraphProperties",256,Ie,Sbe,Ise),vXn;b(292,22,{3:1,35:1,22:1,292:1},gO);var Gk,m_,k_,y_=Me(lc,"GreedySwitchType",292,Ie,Mle,Ose),mXn;b(303,22,{3:1,35:1,22:1,303:1},pO);var dp,zk,Ag,kXn=Me(lc,"InLayerConstraint",303,Ie,Tle,Dse),yXn;b(420,22,{3:1,35:1,22:1,420:1},QG);var j_,oun,fun=Me(lc,"InteractiveReferencePoint",420,Ie,I1e,$se),jXn,hun,bp,p0,_S,lun,aun,KS,dun,Uk,HS,Am,wp,Gb,E_,qS,ec,bun,v0,Mc,C_,T_,Wk,za,m0,gp,wun,pp,Xk,zb,Xo,Ys,M_,Sg,dc,rt,gun,pun,vun,mun,kun,A_,GS,Au,k0,S_,vp,Vk,kf,Pg,fv,Ig,Og,hv,Ua,yun,P_,I_,mp;b(163,22,{3:1,35:1,22:1,163:1},Q9);var Sm,xl,Pm,Ub,Qk,jun=Me(lc,"LayerConstraint",163,Ie,bde,Fse),EXn;b(848,1,zs,A4n),s.Qe=function(e){En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,xnn),""),"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."),Dun),(y1(),Nt)),Wcn),Cn((Ho(),Xn))))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Lnn),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(qn(),!1)),_i),oi),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,WM),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),Bun),Nt),fun),Cn(Xn)))),Ti(e,WM,IN,bVn),Ti(e,WM,X6,dVn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Nnn),""),"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),_i),oi),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Bnn),""),"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),_i),oi),Cn(Xn)))),En(e,new bn(_ie(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Rnn),""),"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),_i),oi),Cn(Ya)),A(M(tn,1),q,2,6,["org.eclipse.elk.layered.northOrSouthPort"])))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,_nn),""),"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."),Uun),Nt),non),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Knn),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),Q(7)),sc),Wi),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Hnn),""),"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),_i),oi),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,qnn),""),"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),_i),oi),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,IN),"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)."),Oun),Nt),zcn),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,wk),nB),"Node Layering Strategy"),"Strategy for node layering."),Kun),Nt),Hsn),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Gnn),nB),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),Run),Nt),jun),Cn(vi)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,znn),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."),Q(-1)),sc),Wi),Cn(vi)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Unn),nB),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),Q(-1)),sc),Wi),Cn(vi)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,ON),dHn),"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."),Q(4)),sc),Wi),Cn(Xn)))),Ti(e,ON,wk,yVn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,DN),dHn),"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."),Q(2)),sc),Wi),Cn(Xn)))),Ti(e,DN,wk,EVn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,$N),bHn),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),_un),Nt),Jsn),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,FN),bHn),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),Q(0)),sc),Wi),Cn(Xn)))),Ti(e,FN,$N,null),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,xN),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),Q(nt)),sc),Wi),Cn(Xn)))),Ti(e,xN,wk,gVn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,X6),gk),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),Iun),Nt),Kcn),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Wnn),gk),"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),_i),oi),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,LN),gk),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),Dr),Ai),Cn(Xn)))),Ti(e,LN,uA,HXn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,NN),gk),"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),_i),oi),Cn(Xn)))),Ti(e,NN,X6,UXn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Xnn),gk),"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."),Q(-1)),sc),Wi),Cn(vi)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Vnn),gk),"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."),Q(-1)),sc),Wi),Cn(vi)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Qnn),wHn),"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."),Q(40)),sc),Wi),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,BN),wHn),"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."),Pun),Nt),y_),Cn(Xn)))),Ti(e,BN,X6,_Xn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,XM),"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."),Sun),Nt),y_),Cn(Xn)))),Ti(e,XM,X6,NXn),Ti(e,XM,uA,BXn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,lg),gHn),"Node Placement Strategy"),"Strategy for node placement."),zun),Nt),Usn),Cn(Xn)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,VM),gHn),"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."),_i),oi),Cn(Xn)))),Ti(e,VM,lg,FVn),Ti(e,VM,lg,xVn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,RN),pHn),"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."),Hun),Nt),Qcn),Cn(Xn)))),Ti(e,RN,lg,IVn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,_N),pHn),"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."),qun),Nt),eun),Cn(Xn)))),Ti(e,_N,lg,DVn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,KN),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),Dr),Ai),Cn(Xn)))),Ti(e,KN,lg,NVn),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,HN),"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."),Nt),Z_),Cn(vi)))),Ti(e,HN,lg,KVn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,qN),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),Gun),Nt),Z_),Cn(Xn)))),Ti(e,qN,lg,_Vn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Jnn),vHn),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),xun),Nt),ion),Cn(vi)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Ynn),vHn),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),Lun),Nt),ron),Cn(vi)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,QM),"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."),Nun),Nt),uon),Cn(Xn)))),Ti(e,QM,pk,iVn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,JM),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),Dr),Ai),Cn(Xn)))),Ti(e,JM,pk,cVn),Ti(e,JM,QM,uVn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,GN),"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),Dr),Ai),Cn(Xn)))),Ti(e,GN,pk,ZXn),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,Znn),gf),"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."),Dr),Ai),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,nen),gf),"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),Dr),Ai),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,een),gf),"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),Dr),Ai),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,ten),gf),"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),Dr),Ai),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,ien),aen),"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."),Q(0)),sc),Wi),Cn(Zf)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,ren),aen),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),Q(0)),sc),Wi),Cn(Zf)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,cen),aen),"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."),Q(0)),sc),Wi),Cn(Zf)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,zN),den),FKn),"Tries to further compact components (disconnected sub-graphs)."),!1),_i),oi),Cn(Xn)))),Ti(e,zN,q6,!0),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,uen),mHn),"Post Compaction Strategy"),kHn),Cun),Nt),sun),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,sen),mHn),"Post Compaction Constraint Calculation"),kHn),Eun),Nt),Rcn),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,YM),ben),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),!1),_i),oi),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,UN),ben),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),Q(16)),sc),Wi),Cn(Xn)))),Ti(e,UN,YM,!0),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,WN),ben),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),Q(5)),sc),Wi),Cn(Xn)))),Ti(e,WN,YM,!0),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Vh),wen),"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'."),Vun),Nt),hon),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,ZM),wen),"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),Dr),Ai),Cn(Xn)))),Ti(e,ZM,Vh,nQn),Ti(e,ZM,Vh,eQn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,nA),wen),"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),Dr),Ai),Cn(Xn)))),Ti(e,nA,Vh,iQn),Ti(e,nA,Vh,rQn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,V6),yHn),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),Xun),Nt),qcn),Cn(Xn)))),Ti(e,V6,Vh,hQn),Ti(e,V6,Vh,lQn),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,XN),yHn),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),jf),Ds),Cn(Xn)))),Ti(e,XN,V6,uQn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,VN),"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."),Wun),sc),Wi),Cn(Xn)))),Ti(e,VN,V6,oQn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,eA),jHn),"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."),Qun),Nt),fon),Cn(Xn)))),Ti(e,eA,Vh,EQn),Ti(e,eA,Vh,CQn),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,tA),jHn),"Valid Indices for Wrapping"),null),jf),Ds),Cn(Xn)))),Ti(e,tA,Vh,kQn),Ti(e,tA,Vh,yQn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,iA),gen),"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),_i),oi),Cn(Xn)))),Ti(e,iA,Vh,wQn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,rA),gen),"Distance Penalty When Improving Cuts"),null),2),Dr),Ai),Cn(Xn)))),Ti(e,rA,Vh,dQn),Ti(e,rA,iA,!0),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,QN),gen),"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),_i),oi),Cn(Xn)))),Ti(e,QN,Vh,pQn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,oen),eB),"Edge Label Side Selection"),"Method to decide on edge label sides."),Fun),Nt),Xcn),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,fen),eB),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),$un),Nt),rv),pt(Xn,A(M($1,1),z,175,0,[D1]))))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,cA),vk),"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."),Aun),Nt),Zsn),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,hen),vk),"No Model Order"),"Set on a node to not set a model order for this node even though it is a real node."),!1),_i),oi),Cn(vi)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,JN),vk),"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."),Tun),Nt),zrn),Cn(Xn)))),Ti(e,JN,q6,null),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,len),vk),"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."),Mun),Nt),Gsn),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,YN),vk),"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),Dr),Ai),Cn(Xn)))),Ti(e,YN,cA,null),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,ZN),vk),"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),Dr),Ai),Cn(Xn)))),Ti(e,ZN,cA,null),R_n((new I4n,e))};var CXn,TXn,MXn,Eun,AXn,Cun,SXn,Tun,PXn,IXn,OXn,Mun,DXn,$Xn,Aun,FXn,xXn,LXn,Sun,NXn,BXn,RXn,Pun,_Xn,KXn,HXn,qXn,GXn,zXn,UXn,WXn,Iun,XXn,Oun,VXn,Dun,QXn,$un,JXn,Fun,YXn,ZXn,nVn,xun,eVn,Lun,tVn,Nun,iVn,rVn,cVn,uVn,sVn,oVn,fVn,hVn,lVn,aVn,Bun,dVn,bVn,wVn,gVn,pVn,vVn,Run,mVn,kVn,yVn,jVn,EVn,CVn,TVn,_un,MVn,Kun,AVn,SVn,PVn,Hun,IVn,OVn,qun,DVn,$Vn,FVn,xVn,LVn,NVn,BVn,RVn,Gun,_Vn,KVn,HVn,zun,qVn,Uun,GVn,zVn,UVn,WVn,XVn,VVn,QVn,JVn,YVn,ZVn,nQn,eQn,tQn,iQn,rQn,cQn,uQn,sQn,Wun,oQn,fQn,Xun,hQn,lQn,aQn,dQn,bQn,wQn,gQn,pQn,vQn,Vun,mQn,kQn,yQn,jQn,Qun,EQn,CQn;w(lc,"LayeredMetaDataProvider",848),b(986,1,zs,I4n),s.Qe=function(e){R_n(e)};var Jf,O_,zS,Im,US,Jun,WS,kp,XS,Yun,Zun,D_,Ll,$_,Wb,nsn,Jk,F_,esn,TQn,VS,x_,Om,Xb,MQn,as,tsn,isn,QS,L_,Yf,JS,Qh,rsn,csn,usn,N_,B_,ssn,S1,R_,osn,Vb,fsn,hsn,lsn,YS,Qb,Wa,asn,dsn,Mr,bsn,AQn,qc,ZS,wsn,gsn,psn,__,vsn,nP,msn,ksn,eP,y0,ysn,K_,Dm,jsn,j0,$m,tP,Xa,H_,lv,iP,Va,Esn,Csn,Tsn,av,Msn,SQn,PQn,IQn,OQn,E0,Jb,Lt,P1,DQn,Yb,Asn,dv,Ssn,Zb,$Qn,bv,Psn,yp,FQn,xQn,Yk,q_,Isn,Zk,Mo,Dg,jp,C0,Qa,rP,nw,G_,wv,gv,T0,$g,z_,ny,Fm,xm,U_,Osn,Dsn,$sn,Fsn,W_,xsn,Lsn,Nsn,Bsn,X_,cP;w(lc,"LayeredOptions",986),b(987,1,{},ywn),s.$e=function(){var e;return e=new Vmn,e},s._e=function(e){},w(lc,"LayeredOptions/LayeredFactory",987),b(1372,1,{}),s.a=0;var LQn;w(ac,"ElkSpacings/AbstractSpacingsBuilder",1372),b(779,1372,{},AQ);var uP,NQn;w(lc,"LayeredSpacings/LayeredSpacingsBuilder",779),b(313,22,{3:1,35:1,22:1,313:1,246:1,234:1},s5),s.Kf=function(){return vNn(this)},s.Xf=function(){return vNn(this)};var V_,Rsn,_sn,sP,Q_,Ksn,Hsn=Me(lc,"LayeringStrategy",313,Ie,Hde,xse),BQn;b(378,22,{3:1,35:1,22:1,378:1},vO);var J_,qsn,oP,Gsn=Me(lc,"LongEdgeOrderingStrategy",378,Ie,kle,Lse),RQn;b(197,22,{3:1,35:1,22:1,197:1},Gj);var Fg,xg,fP,Y_,Z_=Me(lc,"NodeFlexibility",197,Ie,Aae,Nse),_Qn;b(315,22,{3:1,35:1,22:1,315:1,246:1,234:1},V9),s.Kf=function(){return tNn(this)},s.Xf=function(){return tNn(this)};var Lm,nK,eK,Nm,zsn,Usn=Me(lc,"NodePlacementStrategy",315,Ie,hde,qse),KQn;b(260,22,{3:1,35:1,22:1,260:1},h2);var Wsn,ey,Xsn,Vsn,ty,Qsn,hP,lP,Jsn=Me(lc,"NodePromotionStrategy",260,Ie,K0e,Rse),HQn;b(339,22,{3:1,35:1,22:1,339:1},mO);var Ysn,Nl,tK,Zsn=Me(lc,"OrderingStrategy",339,Ie,Sle,_se),qQn;b(421,22,{3:1,35:1,22:1,421:1},JG);var iK,rK,non=Me(lc,"PortSortingStrategy",421,Ie,O1e,Kse),GQn;b(452,22,{3:1,35:1,22:1,452:1},kO);var Su,xc,Bm,zQn=Me(lc,"PortType",452,Ie,Ale,Bse),UQn;b(375,22,{3:1,35:1,22:1,375:1},yO);var eon,cK,ton,ion=Me(lc,"SelfLoopDistributionStrategy",375,Ie,Ple,Hse),WQn;b(376,22,{3:1,35:1,22:1,376:1},YG);var iy,uK,ron=Me(lc,"SelfLoopOrderingStrategy",376,Ie,M1e,Gse),XQn;b(304,1,{304:1},KRn),w(lc,"Spacings",304),b(336,22,{3:1,35:1,22:1,336:1},jO);var sK,con,Rm,uon=Me(lc,"SplineRoutingMode",336,Ie,Ole,zse),VQn;b(338,22,{3:1,35:1,22:1,338:1},EO);var oK,son,oon,fon=Me(lc,"ValidifyStrategy",338,Ie,Dle,Use),QQn;b(377,22,{3:1,35:1,22:1,377:1},CO);var ew,fK,pv,hon=Me(lc,"WrappingStrategy",377,Ie,Ile,Wse),JQn;b(1383,1,Ec,O4n),s.Yf=function(e){return u(e,37),YQn},s.pf=function(e,t){jje(this,u(e,37),t)};var YQn;w(fA,"DepthFirstCycleBreaker",1383),b(782,1,Ec,lW),s.Yf=function(e){return u(e,37),ZQn},s.pf=function(e,t){kTe(this,u(e,37),t)},s.Zf=function(e){return u(un(e,_T(this.d,e.c.length)),10)};var ZQn;w(fA,"GreedyCycleBreaker",782),b(1386,782,Ec,Skn),s.Zf=function(e){var t,i,r,c;for(c=null,t=nt,r=new E(e);r.a1&&(on(sn(k(Gi((Ln(0,e.c.length),u(e.c[0],10))),(nn(),Wb))))?aNn(e,this.d,u(this,660)):(Pn(),wi(e,this.d)),DOn(this.e,e))},s.Sf=function(e,t,i,r){var c,o,f,h,l,a,d;for(t!=iCn(i,e.length)&&(o=e[t-(i?1:-1)],LX(this.f,o,i?(ur(),xc):(ur(),Su))),c=e[t][0],d=!r||c.k==(Qn(),Xt),a=uf(e[t]),this.ag(a,d,!1,i),f=0,l=new E(a);l.a"),e0?r$(this.a,e[t-1],e[t]):!i&&t1&&(on(sn(k(Gi((Ln(0,e.c.length),u(e.c[0],10))),(nn(),Wb))))?aNn(e,this.d,this):(Pn(),wi(e,this.d)),on(sn(k(Gi((Ln(0,e.c.length),u(e.c[0],10))),Wb)))||DOn(this.e,e))},w(vu,"ModelOrderBarycenterHeuristic",660),b(1803,1,lt,a6n),s.ue=function(e,t){return L5e(this.a,u(e,10),u(t,10))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(vu,"ModelOrderBarycenterHeuristic/lambda$0$Type",1803),b(1403,1,Ec,R4n),s.Yf=function(e){var t;return u(e,37),t=iE(aJn),Ze(t,(Qi(),Hc),(rr(),kS)),t},s.pf=function(e,t){y1e((u(e,37),t))};var aJn;w(vu,"NoCrossingMinimizer",1403),b(796,402,Yen,yG),s.$f=function(e,t,i){var r,c,o,f,h,l,a,d,g,p,v;switch(g=this.g,i.g){case 1:{for(c=0,o=0,d=new E(e.j);d.a1&&(c.j==(J(),Vn)?this.b[e]=!0:c.j==Gn&&e>0&&(this.b[e-1]=!0))},s.f=0,w(ph,"AllCrossingsCounter",1798),b(587,1,{},tT),s.b=0,s.d=0,w(ph,"BinaryIndexedTree",587),b(524,1,{},b8);var don,dP;w(ph,"CrossingsCounter",524),b(1906,1,lt,d6n),s.ue=function(e,t){return Cfe(this.a,u(e,11),u(t,11))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(ph,"CrossingsCounter/lambda$0$Type",1906),b(1907,1,lt,b6n),s.ue=function(e,t){return Tfe(this.a,u(e,11),u(t,11))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(ph,"CrossingsCounter/lambda$1$Type",1907),b(1908,1,lt,w6n),s.ue=function(e,t){return Mfe(this.a,u(e,11),u(t,11))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(ph,"CrossingsCounter/lambda$2$Type",1908),b(1909,1,lt,g6n),s.ue=function(e,t){return Afe(this.a,u(e,11),u(t,11))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(ph,"CrossingsCounter/lambda$3$Type",1909),b(1910,1,Yn,p6n),s.td=function(e){o0e(this.a,u(e,11))},w(ph,"CrossingsCounter/lambda$4$Type",1910),b(1911,1,Ve,v6n),s.Mb=function(e){return jre(this.a,u(e,11))},w(ph,"CrossingsCounter/lambda$5$Type",1911),b(1912,1,Yn,m6n),s.td=function(e){Ckn(this,e)},w(ph,"CrossingsCounter/lambda$6$Type",1912),b(1913,1,Yn,Q7n),s.td=function(e){var t;h3(),ll(this.b,(t=this.a,u(e,11),t))},w(ph,"CrossingsCounter/lambda$7$Type",1913),b(826,1,_f,UH),s.Lb=function(e){return h3(),ai(u(e,11),(G(),Au))},s.Fb=function(e){return this===e},s.Mb=function(e){return h3(),ai(u(e,11),(G(),Au))},w(ph,"CrossingsCounter/lambda$8$Type",826),b(1905,1,{},k6n),w(ph,"HyperedgeCrossingsCounter",1905),b(467,1,{35:1,467:1},_jn),s.wd=function(e){return cpe(this,u(e,467))},s.b=0,s.c=0,s.e=0,s.f=0;var eMe=w(ph,"HyperedgeCrossingsCounter/Hyperedge",467);b(362,1,{35:1,362:1},nC),s.wd=function(e){return i9e(this,u(e,362))},s.b=0,s.c=0;var dJn=w(ph,"HyperedgeCrossingsCounter/HyperedgeCorner",362);b(523,22,{3:1,35:1,22:1,523:1},ZG);var Km,Hm,bJn=Me(ph,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",523,Ie,D1e,Vse),wJn;b(1405,1,Ec,P4n),s.Yf=function(e){return u(k(u(e,37),(G(),Mc)),21).Hc((or(),$s))?gJn:null},s.pf=function(e,t){C4e(this,u(e,37),t)};var gJn;w(hr,"InteractiveNodePlacer",1405),b(1406,1,Ec,S4n),s.Yf=function(e){return u(k(u(e,37),(G(),Mc)),21).Hc((or(),$s))?pJn:null},s.pf=function(e,t){o3e(this,u(e,37),t)};var pJn,bP,wP;w(hr,"LinearSegmentsNodePlacer",1406),b(257,1,{35:1,257:1},Jq),s.wd=function(e){return Fie(this,u(e,257))},s.Fb=function(e){var t;return I(e,257)?(t=u(e,257),this.b==t.b):!1},s.Hb=function(){return this.b},s.Ib=function(){return"ls"+kl(this.e)},s.a=0,s.b=0,s.c=-1,s.d=-1,s.g=0;var vJn=w(hr,"LinearSegmentsNodePlacer/LinearSegment",257);b(1408,1,Ec,dCn),s.Yf=function(e){return u(k(u(e,37),(G(),Mc)),21).Hc((or(),$s))?mJn:null},s.pf=function(e,t){aTe(this,u(e,37),t)},s.b=0,s.g=0;var mJn;w(hr,"NetworkSimplexPlacer",1408),b(1427,1,lt,Swn),s.ue=function(e,t){return Wc(u(e,19).a,u(t,19).a)},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(hr,"NetworkSimplexPlacer/0methodref$compare$Type",1427),b(1429,1,lt,Pwn),s.ue=function(e,t){return Wc(u(e,19).a,u(t,19).a)},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(hr,"NetworkSimplexPlacer/1methodref$compare$Type",1429),b(649,1,{649:1},J7n);var tMe=w(hr,"NetworkSimplexPlacer/EdgeRep",649);b(401,1,{401:1},qW),s.b=!1;var iMe=w(hr,"NetworkSimplexPlacer/NodeRep",401);b(508,12,{3:1,4:1,20:1,28:1,52:1,12:1,14:1,15:1,54:1,508:1},u9n),w(hr,"NetworkSimplexPlacer/Path",508),b(1409,1,{},Iwn),s.Kb=function(e){return u(e,17).d.i.k},w(hr,"NetworkSimplexPlacer/Path/lambda$0$Type",1409),b(1410,1,Ve,Own),s.Mb=function(e){return u(e,267)==(Qn(),pi)},w(hr,"NetworkSimplexPlacer/Path/lambda$1$Type",1410),b(1411,1,{},Dwn),s.Kb=function(e){return u(e,17).d.i},w(hr,"NetworkSimplexPlacer/Path/lambda$2$Type",1411),b(1412,1,Ve,y6n),s.Mb=function(e){return Cjn(f$n(u(e,10)))},w(hr,"NetworkSimplexPlacer/Path/lambda$3$Type",1412),b(1413,1,Ve,$wn),s.Mb=function(e){return dfe(u(e,11))},w(hr,"NetworkSimplexPlacer/lambda$0$Type",1413),b(1414,1,Yn,Y7n),s.td=function(e){hce(this.a,this.b,u(e,11))},w(hr,"NetworkSimplexPlacer/lambda$1$Type",1414),b(1423,1,Yn,j6n),s.td=function(e){I6e(this.a,u(e,17))},w(hr,"NetworkSimplexPlacer/lambda$10$Type",1423),b(1424,1,{},Fwn),s.Kb=function(e){return ns(),new $n(null,new xn(u(e,29).a,16))},w(hr,"NetworkSimplexPlacer/lambda$11$Type",1424),b(1425,1,Yn,E6n),s.td=function(e){M7e(this.a,u(e,10))},w(hr,"NetworkSimplexPlacer/lambda$12$Type",1425),b(1426,1,{},xwn),s.Kb=function(e){return ns(),Q(u(e,121).e)},w(hr,"NetworkSimplexPlacer/lambda$13$Type",1426),b(1428,1,{},Lwn),s.Kb=function(e){return ns(),Q(u(e,121).e)},w(hr,"NetworkSimplexPlacer/lambda$15$Type",1428),b(1430,1,Ve,Nwn),s.Mb=function(e){return ns(),u(e,401).c.k==(Qn(),ii)},w(hr,"NetworkSimplexPlacer/lambda$17$Type",1430),b(1431,1,Ve,Bwn),s.Mb=function(e){return ns(),u(e,401).c.j.c.length>1},w(hr,"NetworkSimplexPlacer/lambda$18$Type",1431),b(1432,1,Yn,kTn),s.td=function(e){g2e(this.c,this.b,this.d,this.a,u(e,401))},s.c=0,s.d=0,w(hr,"NetworkSimplexPlacer/lambda$19$Type",1432),b(1415,1,{},Rwn),s.Kb=function(e){return ns(),new $n(null,new xn(u(e,29).a,16))},w(hr,"NetworkSimplexPlacer/lambda$2$Type",1415),b(1433,1,Yn,C6n),s.td=function(e){oce(this.a,u(e,11))},s.a=0,w(hr,"NetworkSimplexPlacer/lambda$20$Type",1433),b(1434,1,{},_wn),s.Kb=function(e){return ns(),new $n(null,new xn(u(e,29).a,16))},w(hr,"NetworkSimplexPlacer/lambda$21$Type",1434),b(1435,1,Yn,T6n),s.td=function(e){Ece(this.a,u(e,10))},w(hr,"NetworkSimplexPlacer/lambda$22$Type",1435),b(1436,1,Ve,Kwn),s.Mb=function(e){return Cjn(e)},w(hr,"NetworkSimplexPlacer/lambda$23$Type",1436),b(1437,1,{},Hwn),s.Kb=function(e){return ns(),new $n(null,new xn(u(e,29).a,16))},w(hr,"NetworkSimplexPlacer/lambda$24$Type",1437),b(1438,1,Ve,M6n),s.Mb=function(e){return Pre(this.a,u(e,10))},w(hr,"NetworkSimplexPlacer/lambda$25$Type",1438),b(1439,1,Yn,Z7n),s.td=function(e){Y5e(this.a,this.b,u(e,10))},w(hr,"NetworkSimplexPlacer/lambda$26$Type",1439),b(1440,1,Ve,qwn),s.Mb=function(e){return ns(),!Xi(u(e,17))},w(hr,"NetworkSimplexPlacer/lambda$27$Type",1440),b(1441,1,Ve,Gwn),s.Mb=function(e){return ns(),!Xi(u(e,17))},w(hr,"NetworkSimplexPlacer/lambda$28$Type",1441),b(1442,1,{},A6n),s.Ce=function(e,t){return kce(this.a,u(e,29),u(t,29))},w(hr,"NetworkSimplexPlacer/lambda$29$Type",1442),b(1416,1,{},zwn),s.Kb=function(e){return ns(),new $n(null,new Cd(new re(ue(ei(u(e,10)).a.Kc(),new An))))},w(hr,"NetworkSimplexPlacer/lambda$3$Type",1416),b(1417,1,Ve,Uwn),s.Mb=function(e){return ns(),sae(u(e,17))},w(hr,"NetworkSimplexPlacer/lambda$4$Type",1417),b(1418,1,Yn,S6n),s.td=function(e){Tye(this.a,u(e,17))},w(hr,"NetworkSimplexPlacer/lambda$5$Type",1418),b(1419,1,{},Wwn),s.Kb=function(e){return ns(),new $n(null,new xn(u(e,29).a,16))},w(hr,"NetworkSimplexPlacer/lambda$6$Type",1419),b(1420,1,Ve,Xwn),s.Mb=function(e){return ns(),u(e,10).k==(Qn(),ii)},w(hr,"NetworkSimplexPlacer/lambda$7$Type",1420),b(1421,1,{},Vwn),s.Kb=function(e){return ns(),new $n(null,new Cd(new re(ue(Kh(u(e,10)).a.Kc(),new An))))},w(hr,"NetworkSimplexPlacer/lambda$8$Type",1421),b(1422,1,Ve,Qwn),s.Mb=function(e){return ns(),sfe(u(e,17))},w(hr,"NetworkSimplexPlacer/lambda$9$Type",1422),b(1404,1,Ec,z4n),s.Yf=function(e){return u(k(u(e,37),(G(),Mc)),21).Hc((or(),$s))?kJn:null},s.pf=function(e,t){uje(u(e,37),t)};var kJn;w(hr,"SimpleNodePlacer",1404),b(180,1,{180:1},tg),s.Ib=function(){var e;return e="",this.c==(xf(),M0)?e+=Z2:this.c==I1&&(e+=Y2),this.o==(tf(),Ja)?e+=hN:this.o==yf?e+="UP":e+="BALANCED",e},w(Sl,"BKAlignedLayout",180),b(516,22,{3:1,35:1,22:1,516:1},ez);var I1,M0,yJn=Me(Sl,"BKAlignedLayout/HDirection",516,Ie,F1e,Qse),jJn;b(515,22,{3:1,35:1,22:1,515:1},nz);var Ja,yf,EJn=Me(Sl,"BKAlignedLayout/VDirection",515,Ie,x1e,Jse),CJn;b(1634,1,{},nkn),w(Sl,"BKAligner",1634),b(1637,1,{},$Fn),w(Sl,"BKCompactor",1637),b(654,1,{654:1},Jwn),s.a=0,w(Sl,"BKCompactor/ClassEdge",654),b(458,1,{458:1},r9n),s.a=null,s.b=0,w(Sl,"BKCompactor/ClassNode",458),b(1407,1,Ec,Mkn),s.Yf=function(e){return u(k(u(e,37),(G(),Mc)),21).Hc((or(),$s))?TJn:null},s.pf=function(e,t){ATe(this,u(e,37),t)},s.d=!1;var TJn;w(Sl,"BKNodePlacer",1407),b(1635,1,{},Ywn),s.d=0,w(Sl,"NeighborhoodInformation",1635),b(1636,1,lt,P6n),s.ue=function(e,t){return F0e(this,u(e,46),u(t,46))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Sl,"NeighborhoodInformation/NeighborComparator",1636),b(808,1,{}),w(Sl,"ThresholdStrategy",808),b(1763,808,{},f9n),s.bg=function(e,t,i){return this.a.o==(tf(),yf)?Ft:Qt},s.cg=function(){},w(Sl,"ThresholdStrategy/NullThresholdStrategy",1763),b(579,1,{579:1},ekn),s.c=!1,s.d=!1,w(Sl,"ThresholdStrategy/Postprocessable",579),b(1764,808,{},h9n),s.bg=function(e,t,i){var r,c,o;return c=t==i,r=this.a.a[i.p]==t,c||r?(o=e,this.a.c==(xf(),M0)?(c&&(o=hL(this,t,!0)),!isNaN(o)&&!isFinite(o)&&r&&(o=hL(this,i,!1))):(c&&(o=hL(this,t,!0)),!isNaN(o)&&!isFinite(o)&&r&&(o=hL(this,i,!1))),o):e},s.cg=function(){for(var e,t,i,r,c;this.d.b!=0;)c=u(J1e(this.d),579),r=nRn(this,c),r.a&&(e=r.a,i=on(this.a.f[this.a.g[c.b.p].p]),!(!i&&!Xi(e)&&e.c.i.c==e.d.i.c)&&(t=sNn(this,c),t||Nre(this.e,c)));for(;this.e.a.c.length!=0;)sNn(this,u(pDn(this.e),579))},w(Sl,"ThresholdStrategy/SimpleThresholdStrategy",1764),b(635,1,{635:1,246:1,234:1},Zwn),s.Kf=function(){return AOn(this)},s.Xf=function(){return AOn(this)};var hK;w(uB,"EdgeRouterFactory",635),b(1458,1,Ec,U4n),s.Yf=function(e){return c7e(u(e,37))},s.pf=function(e,t){dje(u(e,37),t)};var MJn,AJn,SJn,PJn,IJn,bon,OJn,DJn;w(uB,"OrthogonalEdgeRouter",1458),b(1451,1,Ec,Akn),s.Yf=function(e){return P4e(u(e,37))},s.pf=function(e,t){$Ce(this,u(e,37),t)};var $Jn,FJn,xJn,LJn,cy,NJn;w(uB,"PolylineEdgeRouter",1451),b(1452,1,_f,ngn),s.Lb=function(e){return IV(u(e,10))},s.Fb=function(e){return this===e},s.Mb=function(e){return IV(u(e,10))},w(uB,"PolylineEdgeRouter/1",1452),b(1809,1,Ve,egn),s.Mb=function(e){return u(e,129).c==(No(),Bl)},w(zo,"HyperEdgeCycleDetector/lambda$0$Type",1809),b(1810,1,{},tgn),s.Ge=function(e){return u(e,129).d},w(zo,"HyperEdgeCycleDetector/lambda$1$Type",1810),b(1811,1,Ve,ign),s.Mb=function(e){return u(e,129).c==(No(),Bl)},w(zo,"HyperEdgeCycleDetector/lambda$2$Type",1811),b(1812,1,{},rgn),s.Ge=function(e){return u(e,129).d},w(zo,"HyperEdgeCycleDetector/lambda$3$Type",1812),b(1813,1,{},cgn),s.Ge=function(e){return u(e,129).d},w(zo,"HyperEdgeCycleDetector/lambda$4$Type",1813),b(1814,1,{},ugn),s.Ge=function(e){return u(e,129).d},w(zo,"HyperEdgeCycleDetector/lambda$5$Type",1814),b(112,1,{35:1,112:1},n7),s.wd=function(e){return xie(this,u(e,112))},s.Fb=function(e){var t;return I(e,112)?(t=u(e,112),this.g==t.g):!1},s.Hb=function(){return this.g},s.Ib=function(){var e,t,i,r;for(e=new Yu("{"),r=new E(this.n);r.a"+this.b+" ("+Uce(this.c)+")"},s.d=0,w(zo,"HyperEdgeSegmentDependency",129),b(520,22,{3:1,35:1,22:1,520:1},tz);var Bl,tw,BJn=Me(zo,"HyperEdgeSegmentDependency/DependencyType",520,Ie,$1e,Yse),RJn;b(1815,1,{},I6n),w(zo,"HyperEdgeSegmentSplitter",1815),b(1816,1,{},s8n),s.a=0,s.b=0,w(zo,"HyperEdgeSegmentSplitter/AreaRating",1816),b(329,1,{329:1},hD),s.a=0,s.b=0,s.c=0,w(zo,"HyperEdgeSegmentSplitter/FreeArea",329),b(1817,1,lt,bgn),s.ue=function(e,t){return Hue(u(e,112),u(t,112))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(zo,"HyperEdgeSegmentSplitter/lambda$0$Type",1817),b(1818,1,Yn,yTn),s.td=function(e){Wae(this.a,this.d,this.c,this.b,u(e,112))},s.b=0,w(zo,"HyperEdgeSegmentSplitter/lambda$1$Type",1818),b(1819,1,{},wgn),s.Kb=function(e){return new $n(null,new xn(u(e,112).e,16))},w(zo,"HyperEdgeSegmentSplitter/lambda$2$Type",1819),b(1820,1,{},ggn),s.Kb=function(e){return new $n(null,new xn(u(e,112).j,16))},w(zo,"HyperEdgeSegmentSplitter/lambda$3$Type",1820),b(1821,1,{},pgn),s.Fe=function(e){return K(Y(e))},w(zo,"HyperEdgeSegmentSplitter/lambda$4$Type",1821),b(655,1,{},FD),s.a=0,s.b=0,s.c=0,w(zo,"OrthogonalRoutingGenerator",655),b(1638,1,{},vgn),s.Kb=function(e){return new $n(null,new xn(u(e,112).e,16))},w(zo,"OrthogonalRoutingGenerator/lambda$0$Type",1638),b(1639,1,{},mgn),s.Kb=function(e){return new $n(null,new xn(u(e,112).j,16))},w(zo,"OrthogonalRoutingGenerator/lambda$1$Type",1639),b(661,1,{}),w(sB,"BaseRoutingDirectionStrategy",661),b(1807,661,{},l9n),s.dg=function(e,t,i){var r,c,o,f,h,l,a,d,g,p,v,m,C;if(!(e.r&&!e.q))for(d=t+e.o*i,a=new E(e.n);a.aHf&&(o=d,c=e,r=new fn(g,o),Ke(f.a,r),n0(this,f,c,r,!1),p=e.r,p&&(v=K(Y(qo(p.e,0))),r=new fn(v,o),Ke(f.a,r),n0(this,f,c,r,!1),o=t+p.o*i,c=p,r=new fn(v,o),Ke(f.a,r),n0(this,f,c,r,!1)),r=new fn(C,o),Ke(f.a,r),n0(this,f,c,r,!1)))},s.eg=function(e){return e.i.n.a+e.n.a+e.a.a},s.fg=function(){return J(),ae},s.gg=function(){return J(),Kn},w(sB,"NorthToSouthRoutingStrategy",1807),b(1808,661,{},a9n),s.dg=function(e,t,i){var r,c,o,f,h,l,a,d,g,p,v,m,C;if(!(e.r&&!e.q))for(d=t-e.o*i,a=new E(e.n);a.aHf&&(o=d,c=e,r=new fn(g,o),Ke(f.a,r),n0(this,f,c,r,!1),p=e.r,p&&(v=K(Y(qo(p.e,0))),r=new fn(v,o),Ke(f.a,r),n0(this,f,c,r,!1),o=t-p.o*i,c=p,r=new fn(v,o),Ke(f.a,r),n0(this,f,c,r,!1)),r=new fn(C,o),Ke(f.a,r),n0(this,f,c,r,!1)))},s.eg=function(e){return e.i.n.a+e.n.a+e.a.a},s.fg=function(){return J(),Kn},s.gg=function(){return J(),ae},w(sB,"SouthToNorthRoutingStrategy",1808),b(1806,661,{},d9n),s.dg=function(e,t,i){var r,c,o,f,h,l,a,d,g,p,v,m,C;if(!(e.r&&!e.q))for(d=t+e.o*i,a=new E(e.n);a.aHf&&(o=d,c=e,r=new fn(o,g),Ke(f.a,r),n0(this,f,c,r,!0),p=e.r,p&&(v=K(Y(qo(p.e,0))),r=new fn(o,v),Ke(f.a,r),n0(this,f,c,r,!0),o=t+p.o*i,c=p,r=new fn(o,v),Ke(f.a,r),n0(this,f,c,r,!0)),r=new fn(o,C),Ke(f.a,r),n0(this,f,c,r,!0)))},s.eg=function(e){return e.i.n.b+e.n.b+e.a.b},s.fg=function(){return J(),Vn},s.gg=function(){return J(),Gn},w(sB,"WestToEastRoutingStrategy",1806),b(813,1,{},jZ),s.Ib=function(){return kl(this.a)},s.b=0,s.c=!1,s.d=!1,s.f=0,w(Fb,"NubSpline",813),b(407,1,{407:1},LNn,eMn),w(Fb,"NubSpline/PolarCP",407),b(1453,1,Ec,TFn),s.Yf=function(e){return vve(u(e,37))},s.pf=function(e,t){YCe(this,u(e,37),t)};var _Jn,KJn,HJn,qJn,GJn;w(Fb,"SplineEdgeRouter",1453),b(268,1,{268:1},MC),s.Ib=function(){return this.a+" ->("+this.c+") "+this.b},s.c=0,w(Fb,"SplineEdgeRouter/Dependency",268),b(455,22,{3:1,35:1,22:1,455:1},iz);var Rl,Lg,zJn=Me(Fb,"SplineEdgeRouter/SideToProcess",455,Ie,L1e,Zse),UJn;b(1454,1,Ve,agn),s.Mb=function(e){return C6(),!u(e,128).o},w(Fb,"SplineEdgeRouter/lambda$0$Type",1454),b(1455,1,{},lgn),s.Ge=function(e){return C6(),u(e,128).v+1},w(Fb,"SplineEdgeRouter/lambda$1$Type",1455),b(1456,1,Yn,tkn),s.td=function(e){ffe(this.a,this.b,u(e,46))},w(Fb,"SplineEdgeRouter/lambda$2$Type",1456),b(1457,1,Yn,ikn),s.td=function(e){hfe(this.a,this.b,u(e,46))},w(Fb,"SplineEdgeRouter/lambda$3$Type",1457),b(128,1,{35:1,128:1},Zxn,SZ),s.wd=function(e){return Lie(this,u(e,128))},s.b=0,s.e=!1,s.f=0,s.g=0,s.j=!1,s.k=!1,s.n=0,s.o=!1,s.p=!1,s.q=!1,s.s=0,s.u=0,s.v=0,s.F=0,w(Fb,"SplineSegment",128),b(459,1,{459:1},dgn),s.a=0,s.b=!1,s.c=!1,s.d=!1,s.e=!1,s.f=0,w(Fb,"SplineSegment/EdgeInformation",459),b(1234,1,{},sgn),w(Q6,Enn,1234),b(1235,1,lt,ogn),s.ue=function(e,t){return U6e(u(e,135),u(t,135))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(Q6,NKn,1235),b(1233,1,{},E8n),w(Q6,"MrTree",1233),b(393,22,{3:1,35:1,22:1,393:1,246:1,234:1},zj),s.Kf=function(){return CLn(this)},s.Xf=function(){return CLn(this)};var gP,qm,uy,Gm,won=Me(Q6,"TreeLayoutPhases",393,Ie,Sae,noe),WJn;b(1130,209,xa,qjn),s.Ze=function(e,t){var i,r,c,o,f,h,l;for(on(sn(hn(e,(Zd(),yon))))||oC((i=new O9((K0(),new N0(e))),i)),f=(h=new AC,Pr(h,e),H(h,(cc(),Wm),e),l=new we,Nke(e,h,l),nye(e,h,l),h),o=Wke(this.a,f),c=new E(o);c.a"+wC(this.c):"e_"+mt(this)},w(J6,"TEdge",188),b(135,134,{3:1,135:1,94:1,134:1},AC),s.Ib=function(){var e,t,i,r,c;for(c=null,r=_e(this.b,0);r.b!=r.d.c;)i=u(Re(r),86),c+=(i.c==null||i.c.length==0?"n_"+i.g:"n_"+i.c)+` +`;for(t=_e(this.a,0);t.b!=t.d.c;)e=u(Re(t),188),c+=(e.b&&e.c?wC(e.b)+"->"+wC(e.c):"e_"+mt(e))+` +`;return c};var rMe=w(J6,"TGraph",135);b(633,502,{3:1,502:1,633:1,94:1,134:1}),w(J6,"TShape",633),b(86,633,{3:1,502:1,86:1,633:1,94:1,134:1},hF),s.Ib=function(){return wC(this)};var cMe=w(J6,"TNode",86);b(255,1,ah,X1),s.Jc=function(e){$i(this,e)},s.Kc=function(){var e;return e=_e(this.a.d,0),new e2(e)},w(J6,"TNode/2",255),b(358,1,ji,e2),s.Nb=function(e){Oi(this,e)},s.Pb=function(){return u(Re(this.a),188).c},s.Ob=function(){return yj(this.a)},s.Qb=function(){HC(this.a)},w(J6,"TNode/2/1",358),b(1840,1,xt,Hjn),s.pf=function(e,t){gye(this,u(e,135),t)},w(up,"FanProcessor",1840),b(327,22,{3:1,35:1,22:1,327:1,234:1},o5),s.Kf=function(){switch(this.g){case 0:return new S9n;case 1:return new Hjn;case 2:return new jgn;case 3:return new kgn;case 4:return new Cgn;case 5:return new Tgn;default:throw T(new Hn(AN+(this.f!=null?this.f:""+this.g)))}};var lK,aK,dK,bK,wK,pP,XJn=Me(up,Fnn,327,Ie,Gde,eoe),VJn;b(1843,1,xt,kgn),s.pf=function(e,t){Yme(this,u(e,135),t)},s.a=0,w(up,"LevelHeightProcessor",1843),b(1844,1,ah,ygn),s.Jc=function(e){$i(this,e)},s.Kc=function(){return Pn(),Zp(),X4},w(up,"LevelHeightProcessor/1",1844),b(1841,1,xt,jgn),s.pf=function(e,t){c6e(this,u(e,135),t)},s.a=0,w(up,"NeighborsProcessor",1841),b(1842,1,ah,Egn),s.Jc=function(e){$i(this,e)},s.Kc=function(){return Pn(),Zp(),X4},w(up,"NeighborsProcessor/1",1842),b(1845,1,xt,Cgn),s.pf=function(e,t){Jme(this,u(e,135),t)},s.a=0,w(up,"NodePositionProcessor",1845),b(1839,1,xt,S9n),s.pf=function(e,t){Eje(this,u(e,135))},w(up,"RootProcessor",1839),b(1846,1,xt,Tgn),s.pf=function(e,t){Dge(u(e,135))},w(up,"Untreeifyer",1846);var sy,zm,QJn,gK,vP,Um,pK,mP,kP,vv,Wm,yP,O1,gon,JJn,vK,iw,mK,pon;b(851,1,zs,G4n),s.Qe=function(e){En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Zen),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),mon),(y1(),Nt)),Mon),Cn((Ho(),Xn))))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,ntn),""),"Search Order"),"Which search order to use when computing a spanning tree."),von),Nt),Son),Cn(Xn)))),QRn((new q4n,e))};var YJn,von,ZJn,mon;w(lA,"MrTreeMetaDataProvider",851),b(994,1,zs,q4n),s.Qe=function(e){QRn(e)};var nYn,kon,eYn,tYn,iYn,rYn,yon,cYn,jon,uYn,jP,Eon,sYn,Con,oYn;w(lA,"MrTreeOptions",994),b(995,1,{},Mgn),s.$e=function(){var e;return e=new qjn,e},s._e=function(e){},w(lA,"MrTreeOptions/MrtreeFactory",995),b(480,22,{3:1,35:1,22:1,480:1},rz);var kK,Ton,Mon=Me(lA,"OrderWeighting",480,Ie,B1e,toe),fYn;b(425,22,{3:1,35:1,22:1,425:1},cz);var Aon,yK,Son=Me(lA,"TreeifyingOrder",425,Ie,N1e,roe),hYn;b(1459,1,Ec,F4n),s.Yf=function(e){return u(e,135),lYn},s.pf=function(e,t){Obe(this,u(e,135),t)};var lYn;w("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1459),b(1460,1,Ec,x4n),s.Yf=function(e){return u(e,135),aYn},s.pf=function(e,t){w6e(this,u(e,135),t)};var aYn;w("org.eclipse.elk.alg.mrtree.p2order","NodeOrderer",1460),b(1461,1,Ec,$4n),s.Yf=function(e){return u(e,135),dYn},s.pf=function(e,t){D7e(this,u(e,135),t)},s.a=0;var dYn;w("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1461),b(1462,1,Ec,L4n),s.Yf=function(e){return u(e,135),bYn},s.pf=function(e,t){r4e(u(e,135),t)};var bYn;w("org.eclipse.elk.alg.mrtree.p4route","EdgeRouter",1462);var Xm;b(495,22,{3:1,35:1,22:1,495:1,246:1,234:1},uz),s.Kf=function(){return t$n(this)},s.Xf=function(){return t$n(this)};var EP,mv,Pon=Me(etn,"RadialLayoutPhases",495,Ie,R1e,ioe),wYn;b(1131,209,xa,j8n),s.Ze=function(e,t){var i,r,c,o,f,h;if(i=cLn(this,e),le(t,"Radial layout",i.c.length),on(sn(hn(e,(gb(),Ron))))||oC((r=new O9((K0(),new N0(e))),r)),h=yve(e),gr(e,(C5(),Xm),h),!h)throw T(new Hn("The given graph is not a tree!"));for(c=K(Y(hn(e,MP))),c==0&&(c=mLn(e)),gr(e,MP,c),f=new E(cLn(this,e));f.a0&&ADn((Te(t-1,e.length),e.charCodeAt(t-1)),XKn);)--t;if(r>=t)throw T(new Hn("The given string does not contain any numbers."));if(c=Tb(e.substr(r,t-r),`,|;|\r| +`),c.length!=2)throw T(new Hn("Exactly two numbers are expected, "+c.length+" were found."));try{this.a=kb(mb(c[0])),this.b=kb(mb(c[1]))}catch(o){throw o=jt(o),I(o,127)?(i=o,T(new Hn(VKn+i))):T(o)}},s.Ib=function(){return"("+this.a+","+this.b+")"},s.a=0,s.b=0;var di=w(dk,"KVector",8);b(74,68,{3:1,4:1,20:1,28:1,52:1,14:1,68:1,15:1,74:1,414:1},hu,mj,ljn),s.Pc=function(){return Gwe(this)},s.Jf=function(e){var t,i,r,c,o,f;r=Tb(e,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | | +`),_s(this);try{for(i=0,o=0,c=0,f=0;i0&&(o%2==0?c=kb(r[i]):f=kb(r[i]),o>0&&o%2!=0&&Ke(this,new fn(c,f)),++o),++i}catch(h){throw h=jt(h),I(h,127)?(t=h,T(new Hn("The given string does not match the expected format for vectors."+t))):T(h)}},s.Ib=function(){var e,t,i;for(e=new Yu("("),t=_e(this,0);t.b!=t.d.c;)i=u(Re(t),8),De(e,i.a+","+i.b),t.b!=t.d.c&&(e.a+="; ");return(e.a+=")",e).a};var Bfn=w(dk,"KVectorChain",74);b(248,22,{3:1,35:1,22:1,248:1},f5);var HK,$P,FP,ly,ay,xP,Rfn=Me(Ws,"Alignment",248,Ie,Bde,yoe),FZn;b(979,1,zs,Q4n),s.Qe=function(e){zBn(e)};var _fn,qK,xZn,Kfn,Hfn,LZn,qfn,NZn,BZn,Gfn,zfn,RZn;w(Ws,"BoxLayouterOptions",979),b(980,1,{},m2n),s.$e=function(){var e;return e=new A2n,e},s._e=function(e){},w(Ws,"BoxLayouterOptions/BoxFactory",980),b(291,22,{3:1,35:1,22:1,291:1},h5);var dy,GK,by,wy,gy,zK,UK=Me(Ws,"ContentAlignment",291,Ie,Nde,joe),_Zn;b(684,1,zs,nq),s.Qe=function(e){En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,GHn),""),"Layout Algorithm"),"Select a specific layout algorithm."),(y1(),kv)),tn),Cn((Ho(),Xn))))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,zHn),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),jf),oMe),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Oen),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),Ufn),Nt),Rfn),Cn(vi)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,ep),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),Dr),Ai),Cn(Xn)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,Ttn),""),"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."),jf),Bfn),Cn(Zf)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,sA),""),"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."),Xfn),Cp),UK),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,mk),""),"Debug Mode"),"Whether additional debug information shall be generated."),(qn(),!1)),_i),oi),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Fen),""),bnn),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),Vfn),Nt),e9),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,pk),""),"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."),Yfn),Nt),cH),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,dA),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),_i),oi),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,uA),""),"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`."),thn),Nt),Khn),pt(Xn,A(M($1,1),z,175,0,[vi]))))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,u0),""),"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."),ahn),jf),Wrn),pt(Xn,A(M($1,1),z,175,0,[vi]))))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,lk),""),"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),_i),oi),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,cB),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),_i),oi),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,G6),""),"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),_i),oi),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,CN),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),phn),Nt),Ghn),Cn(vi)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,oA),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),jf),di),pt(vi,A(M($1,1),z,175,0,[Ya,D1]))))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,hk),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),sc),Wi),pt(vi,A(M($1,1),z,175,0,[Zf]))))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,HM),""),"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)."),sc),Wi),Cn(Xn)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,q6),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),_i),oi),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,qen),""),"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."),rhn),jf),Bfn),Cn(Zf)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Uen),""),"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),_i),oi),Cn(vi)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Wen),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),_i),oi),Cn(vi)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,LTe),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),jf),dMe),pt(Xn,A(M($1,1),z,175,0,[D1]))))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Ven),""),"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."),chn),jf),Urn),Cn(vi)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Pen),""),"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),_i),oi),pt(vi,A(M($1,1),z,175,0,[Zf,Ya,D1]))))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,UHn),""),"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),Dr),Ai),Cn(vi)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,WHn),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),_i),oi),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,XHn),""),"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'."),Q(100)),sc),Wi),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,VHn),""),"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),_i),oi),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,QHn),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),Q(4e3)),sc),Wi),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,JHn),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),Q(400)),sc),Wi),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,YHn),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),_i),oi),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,ZHn),""),"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),_i),oi),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,nqn),""),"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),_i),oi),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,eqn),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),_i),oi),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Ctn),"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."),Wfn),Nt),Qhn),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,pen),gf),"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),Dr),Ai),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,ven),gf),"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),Dr),Ai),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,vN),gf),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),Dr),Ai),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,men),gf),"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),Dr),Ai),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,EN),gf),"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),Dr),Ai),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,ken),gf),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),Dr),Ai),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,yen),gf),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),Dr),Ai),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Cen),gf),"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),Dr),Ai),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,jen),gf),"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),Dr),Ai),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Een),gf),"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),Dr),Ai),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Db),gf),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),Dr),Ai),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Ten),gf),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),Dr),Ai),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Men),gf),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),Dr),Ai),pt(Xn,A(M($1,1),z,175,0,[vi]))))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,Aen),gf),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),jf),yne),pt(vi,A(M($1,1),z,175,0,[Zf,Ya,D1]))))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Qen),gf),"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."),Ahn),jf),Urn),Cn(Xn)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,rB),rqn),"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)."),sc),Wi),pt(Xn,A(M($1,1),z,175,0,[vi]))))),Ti(e,rB,iB,XZn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,iB),rqn),"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."),dhn),_i),oi),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,xen),cqn),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),shn),jf),Wrn),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,F4),cqn),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),ohn),Cp),lr),pt(vi,A(M($1,1),z,175,0,[D1]))))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Ben),wA),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),whn),Nt),c9),Cn(vi)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,Ren),wA),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),Nt),c9),Cn(vi)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,_en),wA),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),Nt),c9),Cn(vi)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,Ken),wA),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),Nt),c9),Cn(vi)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,Hen),wA),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),Nt),c9),Cn(vi)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,hg),CB),"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."),fhn),Cp),o9),Cn(vi)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,tp),CB),"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."),lhn),Cp),Uhn),Cn(vi)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,ip),CB),"Node Size Minimum"),"The minimal size to which a node can be reduced."),hhn),jf),di),Cn(vi)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,tB),CB),"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),_i),oi),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Gen),eB),"Edge Label Placement"),"Gives a hint on where to put edge labels."),Qfn),Nt),Phn),Cn(D1)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,qM),eB),"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),_i),oi),Cn(D1)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,NTe),"font"),"Font Name"),"Font name used for a label."),kv),tn),Cn(D1)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,tqn),"font"),"Font Size"),"Font size used for a label."),sc),Wi),Cn(D1)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,Xen),TB),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),jf),di),Cn(Ya)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,zen),TB),"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."),sc),Wi),Cn(Ya)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Ien),TB),"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."),khn),Nt),Zi),Cn(Ya)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,Sen),TB),"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."),Dr),Ai),Cn(Ya)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,x4),Mtn),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),vhn),Cp),qP),Cn(vi)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Len),Mtn),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),_i),oi),Cn(vi)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Nen),Mtn),"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),_i),oi),Cn(vi)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Den),uqn),"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),_i),oi),Cn(vi)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,$en),uqn),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),_i),oi),Cn(Zf)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,mN),"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),Dr),Ai),Cn(Zf)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,iqn),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),nhn),Nt),xhn),Cn(Zf)))),Yv(e,new M2(Uv(Vp(Xp(new Zg,Jn),"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.'))),Yv(e,new M2(Uv(Vp(Xp(new Zg,"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.`))),Yv(e,new M2(Uv(Vp(Xp(new Zg,fs),"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."))),Yv(e,new M2(Uv(Vp(Xp(new Zg,"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."))),Yv(e,new M2(Uv(Vp(Xp(new Zg,IHn),"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."))),Yv(e,new M2(Uv(Vp(Xp(new Zg,"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."))),Yv(e,new M2(Uv(Vp(Xp(new Zg,Uf),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),IBn((new J4n,e)),zBn((new Q4n,e)),uBn((new Y4n,e))};var Zm,KZn,Ufn,Tp,HZn,qZn,Wfn,GZn,LP,Xfn,py,A0,Vfn,WK,XK,Qfn,Jfn,Yfn,Zfn,nhn,ehn,Bg,thn,zZn,vy,VK,NP,ihn,Rg,rhn,my,chn,uhn,shn,_g,ohn,Za,fhn,BP,Kg,hhn,_l,lhn,RP,ky,nd,ahn,UZn,dhn,WZn,XZn,bhn,whn,QK,JK,YK,ZK,ghn,Ru,n9,phn,nH,eH,rw,vhn,mhn,Hg,khn,Mp,_P,tH,yv,VZn,iH,QZn,JZn,yhn,YZn,jhn,ZZn,Ap,Ehn,KP,Chn,Thn,ed,nne,Mhn,Ahn,Shn;w(Ws,"CoreOptions",684),b(103,22,{3:1,35:1,22:1,103:1},n8);var Jh,Zs,Ao,kh,Yh,e9=Me(Ws,bnn,103,Ie,ude,Toe),ene;b(272,22,{3:1,35:1,22:1,272:1},OO);var jv,cw,Ev,Phn=Me(Ws,"EdgeLabelPlacement",272,Ie,_le,Moe),tne;b(218,22,{3:1,35:1,22:1,218:1},Wj);var Cv,yy,Sp,rH,cH=Me(Ws,"EdgeRouting",218,Ie,Dae,Aoe),ine;b(312,22,{3:1,35:1,22:1,312:1},l5);var Ihn,Ohn,Dhn,$hn,uH,Fhn,xhn=Me(Ws,"EdgeType",312,Ie,Ude,Soe),rne;b(977,1,zs,J4n),s.Qe=function(e){IBn(e)};var Lhn,Nhn,Bhn,Rhn,cne,_hn,t9;w(Ws,"FixedLayouterOptions",977),b(978,1,{},D2n),s.$e=function(){var e;return e=new T2n,e},s._e=function(e){},w(Ws,"FixedLayouterOptions/FixedFactory",978),b(334,22,{3:1,35:1,22:1,334:1},DO);var F1,HP,i9,Khn=Me(Ws,"HierarchyHandling",334,Ie,Rle,Poe),une;b(285,22,{3:1,35:1,22:1,285:1},Xj);var yh,Kl,jy,Ey,sne=Me(Ws,"LabelSide",285,Ie,Oae,Ioe),one;b(93,22,{3:1,35:1,22:1,93:1},yw);var Zh,So,no,Po,ds,Io,eo,jh,Oo,lr=Me(Ws,"NodeLabelPlacement",93,Ie,V0e,Ooe),fne;b(249,22,{3:1,35:1,22:1,249:1},e8);var Hhn,r9,Hl,qhn,Cy,c9=Me(Ws,"PortAlignment",249,Ie,sde,Doe),hne;b(98,22,{3:1,35:1,22:1,98:1},a5);var td,Ac,Eh,Tv,Ef,ql,Ghn=Me(Ws,"PortConstraints",98,Ie,Pde,$oe),lne;b(273,22,{3:1,35:1,22:1,273:1},d5);var u9,s9,n1,Ty,Gl,Pp,qP=Me(Ws,"PortLabelPlacement",273,Ie,zde,Foe),ane;b(61,22,{3:1,35:1,22:1,61:1},t8);var Vn,Kn,Fs,xs,cu,Gc,Cf,Do,Pu,ku,Sc,Iu,uu,su,$o,bs,ws,to,ae,Xr,Gn,Zi=Me(Ws,"PortSide",61,Ie,ide,Noe),dne;b(981,1,zs,Y4n),s.Qe=function(e){uBn(e)};var bne,wne,zhn,gne,pne;w(Ws,"RandomLayouterOptions",981),b(982,1,{},$2n),s.$e=function(){var e;return e=new L2n,e},s._e=function(e){},w(Ws,"RandomLayouterOptions/RandomFactory",982),b(374,22,{3:1,35:1,22:1,374:1},Vj);var uw,My,Ay,id,o9=Me(Ws,"SizeConstraint",374,Ie,Iae,xoe),vne;b(259,22,{3:1,35:1,22:1,259:1},jw);var Sy,GP,Mv,sH,Py,f9,zP,UP,WP,Uhn=Me(Ws,"SizeOptions",259,Ie,tbe,Loe),mne;b(370,1,{1949:1},zp),s.b=!1,s.c=0,s.d=-1,s.e=null,s.f=null,s.g=-1,s.j=!1,s.k=!1,s.n=!1,s.o=0,s.q=0,s.r=0,w(ac,"BasicProgressMonitor",370),b(972,209,xa,A2n),s.Ze=function(e,t){var i,r,c,o,f,h,l,a,d;switch(le(t,"Box layout",2),c=x9(Y(hn(e,(nM(),RZn)))),o=u(hn(e,BZn),116),i=on(sn(hn(e,Kfn))),r=on(sn(hn(e,Hfn))),u(hn(e,qK),311).g){case 0:f=(h=new du((!e.a&&(e.a=new V(Ot,e,10,11)),e.a)),Pn(),wi(h,new H6n(r)),h),l=sY(e),a=Y(hn(e,_fn)),(a==null||(_n(a),a<=0))&&(a=1.3),d=KCe(f,c,o,l.a,l.b,i,(_n(a),a)),t0(e,d.a,d.b,!1,!0);break;default:Nje(e,c,o,i)}ce(t)},w(ac,"BoxLayoutProvider",972),b(973,1,lt,H6n),s.ue=function(e,t){return c8e(this,u(e,33),u(t,33))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},s.a=!1,w(ac,"BoxLayoutProvider/1",973),b(157,1,{157:1},zC,hjn),s.Ib=function(){return this.c?uZ(this.c):kl(this.b)},w(ac,"BoxLayoutProvider/Group",157),b(311,22,{3:1,35:1,22:1,311:1},Qj);var Whn,Xhn,Vhn,oH,Qhn=Me(ac,"BoxLayoutProvider/PackingMode",311,Ie,$ae,Boe),kne;b(974,1,lt,S2n),s.ue=function(e,t){return o1e(u(e,157),u(t,157))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(ac,"BoxLayoutProvider/lambda$0$Type",974),b(975,1,lt,P2n),s.ue=function(e,t){return e1e(u(e,157),u(t,157))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(ac,"BoxLayoutProvider/lambda$1$Type",975),b(976,1,lt,I2n),s.ue=function(e,t){return t1e(u(e,157),u(t,157))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(ac,"BoxLayoutProvider/lambda$2$Type",976),b(1365,1,{831:1},O2n),s.qg=function(e,t){return Oj(),!I(t,160)||k8n((L2(),u(e,160)),t)},w(ac,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1365),b(1366,1,Yn,q6n),s.td=function(e){Uwe(this.a,u(e,146))},w(ac,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1366),b(1367,1,Yn,M2n),s.td=function(e){u(e,94),Oj()},w(ac,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1367),b(1371,1,Yn,G6n),s.td=function(e){pbe(this.a,u(e,94))},w(ac,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1371),b(1369,1,Ve,ukn),s.Mb=function(e){return Dwe(this.a,this.b,u(e,146))},w(ac,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1369),b(1368,1,Ve,skn),s.Mb=function(e){return Vce(this.a,this.b,u(e,831))},w(ac,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1368),b(1370,1,Yn,okn),s.td=function(e){Vfe(this.a,this.b,u(e,146))},w(ac,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1370),b(935,1,{},C2n),s.Kb=function(e){return oyn(e)},s.Fb=function(e){return this===e},w(ac,"ElkUtil/lambda$0$Type",935),b(936,1,Yn,fkn),s.td=function(e){sme(this.a,this.b,u(e,79))},s.a=0,s.b=0,w(ac,"ElkUtil/lambda$1$Type",936),b(937,1,Yn,hkn),s.td=function(e){sie(this.a,this.b,u(e,202))},s.a=0,s.b=0,w(ac,"ElkUtil/lambda$2$Type",937),b(938,1,Yn,lkn),s.td=function(e){Yre(this.a,this.b,u(e,137))},s.a=0,s.b=0,w(ac,"ElkUtil/lambda$3$Type",938),b(939,1,Yn,z6n),s.td=function(e){lfe(this.a,u(e,469))},w(ac,"ElkUtil/lambda$4$Type",939),b(342,1,{35:1,342:1},Nte),s.wd=function(e){return Mce(this,u(e,236))},s.Fb=function(e){var t;return I(e,342)?(t=u(e,342),this.a==t.a):!1},s.Hb=function(){return Gt(this.a)},s.Ib=function(){return this.a+" (exclusive)"},s.a=0,w(ac,"ExclusiveBounds/ExclusiveLowerBound",342),b(1138,209,xa,T2n),s.Ze=function(e,t){var i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,x,_,U,en,ln,wn;for(le(t,"Fixed Layout",1),o=u(hn(e,(Xe(),Jfn)),218),g=0,p=0,O=new ie((!e.a&&(e.a=new V(Ot,e,10,11)),e.a));O.e!=O.i.gc();){for(S=u(oe(O),33),wn=u(hn(S,(wT(),t9)),8),wn&&(Yo(S,wn.a,wn.b),u(hn(S,Nhn),174).Hc((Qu(),uw))&&(v=u(hn(S,Rhn),8),v.a>0&&v.b>0&&t0(S,v.a,v.b,!0,!0))),g=y.Math.max(g,S.i+S.g),p=y.Math.max(p,S.j+S.f),a=new ie((!S.n&&(S.n=new V(Rr,S,1,7)),S.n));a.e!=a.i.gc();)h=u(oe(a),137),wn=u(hn(h,t9),8),wn&&Yo(h,wn.a,wn.b),g=y.Math.max(g,S.i+h.i+h.g),p=y.Math.max(p,S.j+h.j+h.f);for(U=new ie((!S.c&&(S.c=new V(_u,S,9,9)),S.c));U.e!=U.i.gc();)for(_=u(oe(U),118),wn=u(hn(_,t9),8),wn&&Yo(_,wn.a,wn.b),en=S.i+_.i,ln=S.j+_.j,g=y.Math.max(g,en+_.g),p=y.Math.max(p,ln+_.f),l=new ie((!_.n&&(_.n=new V(Rr,_,1,7)),_.n));l.e!=l.i.gc();)h=u(oe(l),137),wn=u(hn(h,t9),8),wn&&Yo(h,wn.a,wn.b),g=y.Math.max(g,en+h.i+h.g),p=y.Math.max(p,ln+h.j+h.f);for(c=new re(ue(Gh(S).a.Kc(),new An));Se(c);)i=u(ve(c),79),d=y_n(i),g=y.Math.max(g,d.a),p=y.Math.max(p,d.b);for(r=new re(ue(N7(S).a.Kc(),new An));Se(r);)i=u(ve(r),79),Pt(hh(i))!=e&&(d=y_n(i),g=y.Math.max(g,d.a),p=y.Math.max(p,d.b))}if(o==(Hh(),Cv))for($=new ie((!e.a&&(e.a=new V(Ot,e,10,11)),e.a));$.e!=$.i.gc();)for(S=u(oe($),33),r=new re(ue(Gh(S).a.Kc(),new An));Se(r);)i=u(ve(r),79),f=rye(i),f.b==0?gr(i,Rg,null):gr(i,Rg,f);on(sn(hn(e,(wT(),Bhn))))||(x=u(hn(e,cne),116),C=g+x.b+x.c,m=p+x.d+x.a,t0(e,C,m,!0,!0)),ce(t)},w(ac,"FixedLayoutProvider",1138),b(373,134,{3:1,414:1,373:1,94:1,134:1},jI,BPn),s.Jf=function(e){var t,i,r,c,o,f,h,l,a;if(e)try{for(l=Tb(e,";,;"),o=l,f=0,h=o.length;f>16&Ut|t^r<<16},s.Kc=function(){return new U6n(this)},s.Ib=function(){return this.a==null&&this.b==null?"pair(null,null)":this.a==null?"pair(null,"+Nr(this.b)+")":this.b==null?"pair("+Nr(this.a)+",null)":"pair("+Nr(this.a)+","+Nr(this.b)+")"},w(ac,"Pair",46),b(983,1,ji,U6n),s.Nb=function(e){Oi(this,e)},s.Ob=function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},s.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 ic)},s.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 fu)},s.b=!1,s.c=!1,w(ac,"Pair/1",983),b(448,1,{448:1},jTn),s.Fb=function(e){return pc(this.a,u(e,448).a)&&pc(this.c,u(e,448).c)&&pc(this.d,u(e,448).d)&&pc(this.b,u(e,448).b)},s.Hb=function(){return gT(A(M(Zn,1),rn,1,5,[this.a,this.c,this.d,this.b]))},s.Ib=function(){return"("+this.a+Ji+this.c+Ji+this.d+Ji+this.b+")"},w(ac,"Quadruple",448),b(1126,209,xa,L2n),s.Ze=function(e,t){var i,r,c,o,f;if(le(t,"Random Layout",1),(!e.a&&(e.a=new V(Ot,e,10,11)),e.a).i==0){ce(t);return}o=u(hn(e,(NQ(),gne)),19),o&&o.a!=0?c=new EC(o.a):c=new OF,i=x9(Y(hn(e,bne))),f=x9(Y(hn(e,pne))),r=u(hn(e,wne),116),vCe(e,c,i,f,r),ce(t)},w(ac,"RandomLayoutProvider",1126);var Cne;b(553,1,{}),s.qf=function(){return new fn(this.f.i,this.f.j)},s.We=function(e){return XTn(e,(Xe(),Ru))?hn(this.f,Tne):hn(this.f,e)},s.rf=function(){return new fn(this.f.g,this.f.f)},s.sf=function(){return this.g},s.Xe=function(e){return wa(this.f,e)},s.tf=function(e){nu(this.f,e.a),eu(this.f,e.b)},s.uf=function(e){Rd(this.f,e.a),Bd(this.f,e.b)},s.vf=function(e){this.g=e},s.g=0;var Tne;w(nm,"ElkGraphAdapters/AbstractElkGraphElementAdapter",553),b(554,1,{839:1},cj),s.wf=function(){var e,t;if(!this.b)for(this.b=mC(JE(this.a).i),t=new ie(JE(this.a));t.e!=t.i.gc();)e=u(oe(t),137),W(this.b,new XI(e));return this.b},s.b=null,w(nm,"ElkGraphAdapters/ElkEdgeAdapter",554),b(301,553,{},N0),s.xf=function(){return jFn(this)},s.a=null,w(nm,"ElkGraphAdapters/ElkGraphAdapter",301),b(630,553,{181:1},XI),w(nm,"ElkGraphAdapters/ElkLabelAdapter",630),b(629,553,{680:1},WO),s.wf=function(){return k3e(this)},s.Af=function(){var e;return e=u(hn(this.f,(Xe(),my)),142),!e&&(e=new Bv),e},s.Cf=function(){return y3e(this)},s.Ef=function(e){var t;t=new oD(e),gr(this.f,(Xe(),my),t)},s.Ff=function(e){gr(this.f,(Xe(),nd),new DU(e))},s.yf=function(){return this.d},s.zf=function(){var e,t;if(!this.a)for(this.a=new X,t=new re(ue(N7(u(this.f,33)).a.Kc(),new An));Se(t);)e=u(ve(t),79),W(this.a,new cj(e));return this.a},s.Bf=function(){var e,t;if(!this.c)for(this.c=new X,t=new re(ue(Gh(u(this.f,33)).a.Kc(),new An));Se(t);)e=u(ve(t),79),W(this.c,new cj(e));return this.c},s.Df=function(){return iC(u(this.f,33)).i!=0||on(sn(u(this.f,33).We((Xe(),vy))))},s.Gf=function(){l0e(this,(K0(),Cne))},s.a=null,s.b=null,s.c=null,s.d=null,s.e=null,w(nm,"ElkGraphAdapters/ElkNodeAdapter",629),b(1266,553,{838:1},ymn),s.wf=function(){return P3e(this)},s.zf=function(){var e,t;if(!this.a)for(this.a=eh(u(this.f,118).xg().i),t=new ie(u(this.f,118).xg());t.e!=t.i.gc();)e=u(oe(t),79),W(this.a,new cj(e));return this.a},s.Bf=function(){var e,t;if(!this.c)for(this.c=eh(u(this.f,118).yg().i),t=new ie(u(this.f,118).yg());t.e!=t.i.gc();)e=u(oe(t),79),W(this.c,new cj(e));return this.c},s.Hf=function(){return u(u(this.f,118).We((Xe(),Hg)),61)},s.If=function(){var e,t,i,r,c,o,f,h;for(r=ef(u(this.f,118)),i=new ie(u(this.f,118).yg());i.e!=i.i.gc();)for(e=u(oe(i),79),h=new ie((!e.c&&(e.c=new Fn(he,e,5,8)),e.c));h.e!=h.i.gc();){if(f=u(oe(h),82),ob(Ir(f),r))return!0;if(Ir(f)==r&&on(sn(hn(e,(Xe(),VK)))))return!0}for(t=new ie(u(this.f,118).xg());t.e!=t.i.gc();)for(e=u(oe(t),79),o=new ie((!e.b&&(e.b=new Fn(he,e,4,7)),e.b));o.e!=o.i.gc();)if(c=u(oe(o),82),ob(Ir(c),r))return!0;return!1},s.a=null,s.b=null,s.c=null,w(nm,"ElkGraphAdapters/ElkPortAdapter",1266),b(1267,1,lt,N2n),s.ue=function(e,t){return J7e(u(e,118),u(t,118))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(nm,"ElkGraphAdapters/PortComparator",1267);var zl=Ct(Is,"EObject"),Av=Ct(bg,fqn),io=Ct(bg,hqn),Iy=Ct(bg,lqn),Oy=Ct(bg,"ElkShape"),he=Ct(bg,aqn),bi=Ct(bg,Atn),Mt=Ct(bg,dqn),Dy=Ct(Is,bqn),h9=Ct(Is,"EFactory"),Mne,fH=Ct(Is,wqn),Vo=Ct(Is,"EPackage"),mi,Ane,Sne,n1n,XP,Pne,e1n,t1n,i1n,Ul,Ine,One,Rr=Ct(bg,Stn),Ot=Ct(bg,Ptn),_u=Ct(bg,Itn);b(90,1,gqn),s.Jg=function(){return this.Kg(),null},s.Kg=function(){return null},s.Lg=function(){return this.Kg(),!1},s.Mg=function(){return!1},s.Ng=function(e){et(this,e)},w(sp,"BasicNotifierImpl",90),b(97,90,kqn),s.nh=function(){return qu(this)},s.Og=function(e,t){return e},s.Pg=function(){throw T(new ye)},s.Qg=function(e){var t;return t=ir(u(On(this.Tg(),this.Vg()),18)),this.eh().ih(this,t.n,t.f,e)},s.Rg=function(e,t){throw T(new ye)},s.Sg=function(e,t,i){return os(this,e,t,i)},s.Tg=function(){var e;return this.Pg()&&(e=this.Pg().ck(),e)?e:this.zh()},s.Ug=function(){return Fx(this)},s.Vg=function(){throw T(new ye)},s.Wg=function(){var e,t;return t=this.ph().dk(),!t&&this.Pg().ik(t=(Zv(),e=VW(Nf(this.Tg())),e==null?pH:new c8(this,e))),t},s.Xg=function(e,t){return e},s.Yg=function(e){var t;return t=e.Gj(),t?e.aj():yt(this.Tg(),e)},s.Zg=function(){var e;return e=this.Pg(),e?e.fk():null},s.$g=function(){return this.Pg()?this.Pg().ck():null},s._g=function(e,t,i){return BT(this,e,t,i)},s.ah=function(e){return A3(this,e)},s.bh=function(e,t){return T$(this,e,t)},s.dh=function(){var e;return e=this.Pg(),!!e&&e.gk()},s.eh=function(){throw T(new ye)},s.fh=function(){return OT(this)},s.gh=function(e,t,i,r){return _2(this,e,t,r)},s.hh=function(e,t,i){var r;return r=u(On(this.Tg(),t),66),r.Nj().Qj(this,this.yh(),t-this.Ah(),e,i)},s.ih=function(e,t,i,r){return sC(this,e,t,r)},s.jh=function(e,t,i){var r;return r=u(On(this.Tg(),t),66),r.Nj().Rj(this,this.yh(),t-this.Ah(),e,i)},s.kh=function(){return!!this.Pg()&&!!this.Pg().ek()},s.lh=function(e){return zF(this,e)},s.mh=function(e){return lMn(this,e)},s.oh=function(e){return LRn(this,e)},s.ph=function(){throw T(new ye)},s.qh=function(){return this.Pg()?this.Pg().ek():null},s.rh=function(){return OT(this)},s.sh=function(e,t){Px(this,e,t)},s.th=function(e){this.ph().hk(e)},s.uh=function(e){this.ph().kk(e)},s.vh=function(e){this.ph().jk(e)},s.wh=function(e,t){var i,r,c,o;return o=this.Zg(),o&&e&&(t=zi(o.Vk(),this,t),o.Zk(this)),r=this.eh(),r&&(Qx(this,this.eh(),this.Vg()).Bb&Yi?(c=r.fh(),c&&(e?!o&&c.Zk(this):c.Yk(this))):(t=(i=this.Vg(),i>=0?this.Qg(t):this.eh().ih(this,-1-i,null,t)),t=this.Sg(null,-1,t))),this.uh(e),t},s.xh=function(e){var t,i,r,c,o,f,h,l;if(i=this.Tg(),o=yt(i,e),t=this.Ah(),o>=t)return u(e,66).Nj().Uj(this,this.yh(),o-t);if(o<=-1)if(f=rg((gu(),xi),i,e),f){if(er(),u(f,66).Oj()||(f=A2(Er(xi,f))),c=(r=this.Yg(f),u(r>=0?this._g(r,!0,!0):Yd(this,f,!0),153)),l=f.Zj(),l>1||l==-1)return u(u(c,215).hl(e,!1),76)}else throw T(new Hn(Pl+e.ne()+MB));else if(e.$j())return r=this.Yg(e),u(r>=0?this._g(r,!1,!0):Yd(this,e,!1),76);return h=new Okn(this,e),h},s.yh=function(){return QX(this)},s.zh=function(){return(ol(),Nn).S},s.Ah=function(){return ee(this.zh())},s.Bh=function(e){Cx(this,e)},s.Ib=function(){return yo(this)},w(Bn,"BasicEObjectImpl",97);var Dne;b(114,97,{105:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1}),s.Ch=function(e){var t;return t=JX(this),t[e]},s.Dh=function(e,t){var i;i=JX(this),St(i,e,t)},s.Eh=function(e){var t;t=JX(this),St(t,e,null)},s.Jg=function(){return u(Rn(this,4),126)},s.Kg=function(){throw T(new ye)},s.Lg=function(){return(this.Db&4)!=0},s.Pg=function(){throw T(new ye)},s.Fh=function(e){R2(this,2,e)},s.Rg=function(e,t){this.Db=t<<16|this.Db&255,this.Fh(e)},s.Tg=function(){return Qc(this)},s.Vg=function(){return this.Db>>16},s.Wg=function(){var e,t;return Zv(),t=VW(Nf((e=u(Rn(this,16),26),e||this.zh()))),t==null?pH:new c8(this,t)},s.Mg=function(){return(this.Db&1)==0},s.Zg=function(){return u(Rn(this,128),1935)},s.$g=function(){return u(Rn(this,16),26)},s.dh=function(){return(this.Db&32)!=0},s.eh=function(){return u(Rn(this,2),49)},s.kh=function(){return(this.Db&64)!=0},s.ph=function(){throw T(new ye)},s.qh=function(){return u(Rn(this,64),281)},s.th=function(e){R2(this,16,e)},s.uh=function(e){R2(this,128,e)},s.vh=function(e){R2(this,64,e)},s.yh=function(){return Rc(this)},s.Db=0,w(Bn,"MinimalEObjectImpl",114),b(115,114,{105:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),s.Fh=function(e){this.Cb=e},s.eh=function(){return this.Cb},w(Bn,"MinimalEObjectImpl/Container",115),b(1985,115,{105:1,413:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),s._g=function(e,t,i){return oJ(this,e,t,i)},s.jh=function(e,t,i){return QJ(this,e,t,i)},s.lh=function(e){return sX(this,e)},s.sh=function(e,t){WV(this,e,t)},s.zh=function(){return Dc(),One},s.Bh=function(e){LV(this,e)},s.Ve=function(){return q$n(this)},s.We=function(e){return hn(this,e)},s.Xe=function(e){return wa(this,e)},s.Ye=function(e,t){return gr(this,e,t)},w(Ba,"EMapPropertyHolderImpl",1985),b(567,115,{105:1,469:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},Xy),s._g=function(e,t,i){switch(e){case 0:return this.a;case 1:return this.b}return BT(this,e,t,i)},s.lh=function(e){switch(e){case 0:return this.a!=0;case 1:return this.b!=0}return zF(this,e)},s.sh=function(e,t){switch(e){case 0:UC(this,K(Y(t)));return;case 1:WC(this,K(Y(t)));return}Px(this,e,t)},s.zh=function(){return Dc(),Ane},s.Bh=function(e){switch(e){case 0:UC(this,0);return;case 1:WC(this,0);return}Cx(this,e)},s.Ib=function(){var e;return this.Db&64?yo(this):(e=new Bs(yo(this)),e.a+=" (x: ",mw(e,this.a),e.a+=", y: ",mw(e,this.b),e.a+=")",e.a)},s.a=0,s.b=0,w(Ba,"ElkBendPointImpl",567),b(723,1985,{105:1,413:1,160:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),s._g=function(e,t,i){return aQ(this,e,t,i)},s.hh=function(e,t,i){return vx(this,e,t,i)},s.jh=function(e,t,i){return tF(this,e,t,i)},s.lh=function(e){return SV(this,e)},s.sh=function(e,t){AJ(this,e,t)},s.zh=function(){return Dc(),Pne},s.Bh=function(e){oQ(this,e)},s.zg=function(){return this.k},s.Ag=function(){return JE(this)},s.Ib=function(){return PF(this)},s.k=null,w(Ba,"ElkGraphElementImpl",723),b(724,723,{105:1,413:1,160:1,470:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),s._g=function(e,t,i){return jQ(this,e,t,i)},s.lh=function(e){return PQ(this,e)},s.sh=function(e,t){SJ(this,e,t)},s.zh=function(){return Dc(),Ine},s.Bh=function(e){FQ(this,e)},s.Bg=function(){return this.f},s.Cg=function(){return this.g},s.Dg=function(){return this.i},s.Eg=function(){return this.j},s.Fg=function(e,t){rE(this,e,t)},s.Gg=function(e,t){Yo(this,e,t)},s.Hg=function(e){nu(this,e)},s.Ig=function(e){eu(this,e)},s.Ib=function(){return Ex(this)},s.f=0,s.g=0,s.i=0,s.j=0,w(Ba,"ElkShapeImpl",724),b(725,724,{105:1,413:1,82:1,160:1,470:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),s._g=function(e,t,i){return tJ(this,e,t,i)},s.hh=function(e,t,i){return yJ(this,e,t,i)},s.jh=function(e,t,i){return jJ(this,e,t,i)},s.lh=function(e){return zV(this,e)},s.sh=function(e,t){OY(this,e,t)},s.zh=function(){return Dc(),Sne},s.Bh=function(e){XQ(this,e)},s.xg=function(){return!this.d&&(this.d=new Fn(bi,this,8,5)),this.d},s.yg=function(){return!this.e&&(this.e=new Fn(bi,this,7,4)),this.e},w(Ba,"ElkConnectableShapeImpl",725),b(352,723,{105:1,413:1,79:1,160:1,352:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},VH),s.Qg=function(e){return pJ(this,e)},s._g=function(e,t,i){switch(e){case 3:return S8(this);case 4:return!this.b&&(this.b=new Fn(he,this,4,7)),this.b;case 5:return!this.c&&(this.c=new Fn(he,this,5,8)),this.c;case 6:return!this.a&&(this.a=new V(Mt,this,6,6)),this.a;case 7:return qn(),!this.b&&(this.b=new Fn(he,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Fn(he,this,5,8)),this.c.i<=1));case 8:return qn(),!!j6(this);case 9:return qn(),!!Jd(this);case 10:return qn(),!this.b&&(this.b=new Fn(he,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Fn(he,this,5,8)),this.c.i!=0)}return aQ(this,e,t,i)},s.hh=function(e,t,i){var r;switch(t){case 3:return this.Cb&&(i=(r=this.Db>>16,r>=0?pJ(this,i):this.Cb.ih(this,-1-r,null,i))),hU(this,u(e,33),i);case 4:return!this.b&&(this.b=new Fn(he,this,4,7)),Oc(this.b,e,i);case 5:return!this.c&&(this.c=new Fn(he,this,5,8)),Oc(this.c,e,i);case 6:return!this.a&&(this.a=new V(Mt,this,6,6)),Oc(this.a,e,i)}return vx(this,e,t,i)},s.jh=function(e,t,i){switch(t){case 3:return hU(this,null,i);case 4:return!this.b&&(this.b=new Fn(he,this,4,7)),zi(this.b,e,i);case 5:return!this.c&&(this.c=new Fn(he,this,5,8)),zi(this.c,e,i);case 6:return!this.a&&(this.a=new V(Mt,this,6,6)),zi(this.a,e,i)}return tF(this,e,t,i)},s.lh=function(e){switch(e){case 3:return!!S8(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 Fn(he,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Fn(he,this,5,8)),this.c.i<=1));case 8:return j6(this);case 9:return Jd(this);case 10:return!this.b&&(this.b=new Fn(he,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Fn(he,this,5,8)),this.c.i!=0)}return SV(this,e)},s.sh=function(e,t){switch(e){case 3:_x(this,u(t,33));return;case 4:!this.b&&(this.b=new Fn(he,this,4,7)),de(this.b),!this.b&&(this.b=new Fn(he,this,4,7)),Dt(this.b,u(t,14));return;case 5:!this.c&&(this.c=new Fn(he,this,5,8)),de(this.c),!this.c&&(this.c=new Fn(he,this,5,8)),Dt(this.c,u(t,14));return;case 6:!this.a&&(this.a=new V(Mt,this,6,6)),de(this.a),!this.a&&(this.a=new V(Mt,this,6,6)),Dt(this.a,u(t,14));return}AJ(this,e,t)},s.zh=function(){return Dc(),n1n},s.Bh=function(e){switch(e){case 3:_x(this,null);return;case 4:!this.b&&(this.b=new Fn(he,this,4,7)),de(this.b);return;case 5:!this.c&&(this.c=new Fn(he,this,5,8)),de(this.c);return;case 6:!this.a&&(this.a=new V(Mt,this,6,6)),de(this.a);return}oQ(this,e)},s.Ib=function(){return yRn(this)},w(Ba,"ElkEdgeImpl",352),b(439,1985,{105:1,413:1,202:1,439:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},Vy),s.Qg=function(e){return dJ(this,e)},s._g=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 Yt(io,this,5)),this.a;case 6:return oMn(this);case 7:return t?QF(this):this.i;case 8:return t?VF(this):this.f;case 9:return!this.g&&(this.g=new Fn(Mt,this,9,10)),this.g;case 10:return!this.e&&(this.e=new Fn(Mt,this,10,9)),this.e;case 11:return this.d}return oJ(this,e,t,i)},s.hh=function(e,t,i){var r,c,o;switch(t){case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?dJ(this,i):this.Cb.ih(this,-1-c,null,i))),lU(this,u(e,79),i);case 9:return!this.g&&(this.g=new Fn(Mt,this,9,10)),Oc(this.g,e,i);case 10:return!this.e&&(this.e=new Fn(Mt,this,10,9)),Oc(this.e,e,i)}return o=u(On((r=u(Rn(this,16),26),r||(Dc(),XP)),t),66),o.Nj().Qj(this,Rc(this),t-ee((Dc(),XP)),e,i)},s.jh=function(e,t,i){switch(t){case 5:return!this.a&&(this.a=new Yt(io,this,5)),zi(this.a,e,i);case 6:return lU(this,null,i);case 9:return!this.g&&(this.g=new Fn(Mt,this,9,10)),zi(this.g,e,i);case 10:return!this.e&&(this.e=new Fn(Mt,this,10,9)),zi(this.e,e,i)}return QJ(this,e,t,i)},s.lh=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!!oMn(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 sX(this,e)},s.sh=function(e,t){switch(e){case 1:$3(this,K(Y(t)));return;case 2:x3(this,K(Y(t)));return;case 3:D3(this,K(Y(t)));return;case 4:F3(this,K(Y(t)));return;case 5:!this.a&&(this.a=new Yt(io,this,5)),de(this.a),!this.a&&(this.a=new Yt(io,this,5)),Dt(this.a,u(t,14));return;case 6:jNn(this,u(t,79));return;case 7:YC(this,u(t,82));return;case 8:JC(this,u(t,82));return;case 9:!this.g&&(this.g=new Fn(Mt,this,9,10)),de(this.g),!this.g&&(this.g=new Fn(Mt,this,9,10)),Dt(this.g,u(t,14));return;case 10:!this.e&&(this.e=new Fn(Mt,this,10,9)),de(this.e),!this.e&&(this.e=new Fn(Mt,this,10,9)),Dt(this.e,u(t,14));return;case 11:mV(this,Ce(t));return}WV(this,e,t)},s.zh=function(){return Dc(),XP},s.Bh=function(e){switch(e){case 1:$3(this,0);return;case 2:x3(this,0);return;case 3:D3(this,0);return;case 4:F3(this,0);return;case 5:!this.a&&(this.a=new Yt(io,this,5)),de(this.a);return;case 6:jNn(this,null);return;case 7:YC(this,null);return;case 8:JC(this,null);return;case 9:!this.g&&(this.g=new Fn(Mt,this,9,10)),de(this.g);return;case 10:!this.e&&(this.e=new Fn(Mt,this,10,9)),de(this.e);return;case 11:mV(this,null);return}LV(this,e)},s.Ib=function(){return _Ln(this)},s.b=0,s.c=0,s.d=null,s.j=0,s.k=0,w(Ba,"ElkEdgeSectionImpl",439),b(150,115,{105:1,92:1,90:1,147:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1}),s._g=function(e,t,i){var r;return e==0?(!this.Ab&&(this.Ab=new V(Be,this,0,3)),this.Ab):Cs(this,e-ee(this.zh()),On((r=u(Rn(this,16),26),r||this.zh()),e),t,i)},s.hh=function(e,t,i){var r,c;return t==0?(!this.Ab&&(this.Ab=new V(Be,this,0,3)),Oc(this.Ab,e,i)):(c=u(On((r=u(Rn(this,16),26),r||this.zh()),t),66),c.Nj().Qj(this,Rc(this),t-ee(this.zh()),e,i))},s.jh=function(e,t,i){var r,c;return t==0?(!this.Ab&&(this.Ab=new V(Be,this,0,3)),zi(this.Ab,e,i)):(c=u(On((r=u(Rn(this,16),26),r||this.zh()),t),66),c.Nj().Rj(this,Rc(this),t-ee(this.zh()),e,i))},s.lh=function(e){var t;return e==0?!!this.Ab&&this.Ab.i!=0:js(this,e-ee(this.zh()),On((t=u(Rn(this,16),26),t||this.zh()),e))},s.oh=function(e){return RZ(this,e)},s.sh=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(Be,this,0,3)),Dt(this.Ab,u(t,14));return}Ps(this,e-ee(this.zh()),On((i=u(Rn(this,16),26),i||this.zh()),e),t)},s.uh=function(e){R2(this,128,e)},s.zh=function(){return Sn(),Qne},s.Bh=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab);return}As(this,e-ee(this.zh()),On((t=u(Rn(this,16),26),t||this.zh()),e))},s.Gh=function(){this.Bb|=1},s.Hh=function(e){return A6(this,e)},s.Bb=0,w(Bn,"EModelElementImpl",150),b(704,150,{105:1,92:1,90:1,471:1,147:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1},eq),s.Ih=function(e,t){return JRn(this,e,t)},s.Jh=function(e){var t,i,r,c,o;if(this.a!=is(e)||e.Bb&256)throw T(new Hn(SB+e.zb+h0));for(r=Ar(e);bc(r.a).i!=0;){if(i=u(X7(r,0,(t=u(D(bc(r.a),0),87),o=t.c,I(o,88)?u(o,26):(Sn(),so))),26),Qd(i))return c=is(i).Nh().Jh(i),u(c,49).th(e),c;r=Ar(i)}return(e.D!=null?e.D:e.B)=="java.util.Map$Entry"?new UEn(e):new JU(e)},s.Kh=function(e,t){return i0(this,e,t)},s._g=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),this.Ab;case 1:return this.a}return Cs(this,e-ee((Sn(),Ql)),On((r=u(Rn(this,16),26),r||Ql),e),t,i)},s.hh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),Oc(this.Ab,e,i);case 1:return this.a&&(i=u(this.a,49).ih(this,4,Vo,i)),uQ(this,u(e,235),i)}return c=u(On((r=u(Rn(this,16),26),r||(Sn(),Ql)),t),66),c.Nj().Qj(this,Rc(this),t-ee((Sn(),Ql)),e,i)},s.jh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),zi(this.Ab,e,i);case 1:return uQ(this,null,i)}return c=u(On((r=u(Rn(this,16),26),r||(Sn(),Ql)),t),66),c.Nj().Rj(this,Rc(this),t-ee((Sn(),Ql)),e,i)},s.lh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return js(this,e-ee((Sn(),Ql)),On((t=u(Rn(this,16),26),t||Ql),e))},s.sh=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(Be,this,0,3)),Dt(this.Ab,u(t,14));return;case 1:jxn(this,u(t,235));return}Ps(this,e-ee((Sn(),Ql)),On((i=u(Rn(this,16),26),i||Ql),e),t)},s.zh=function(){return Sn(),Ql},s.Bh=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab);return;case 1:jxn(this,null);return}As(this,e-ee((Sn(),Ql)),On((t=u(Rn(this,16),26),t||Ql),e))};var l9,r1n,$ne;w(Bn,"EFactoryImpl",704),b(Eo,704,{105:1,2014:1,92:1,90:1,471:1,147:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1},R2n),s.Ih=function(e,t){switch(e.yj()){case 12:return u(t,146).tg();case 13:return Nr(t);default:throw T(new Hn(R4+e.ne()+h0))}},s.Jh=function(e){var t,i,r,c,o,f,h,l;switch(e.G==-1&&(e.G=(t=is(e),t?v1(t.Mh(),e):-1)),e.G){case 4:return o=new QH,o;case 6:return f=new nG,f;case 7:return h=new eG,h;case 8:return r=new VH,r;case 9:return i=new Xy,i;case 10:return c=new Vy,c;case 11:return l=new _2n,l;default:throw T(new Hn(SB+e.zb+h0))}},s.Kh=function(e,t){switch(e.yj()){case 13:case 12:return null;default:throw T(new Hn(R4+e.ne()+h0))}},w(Ba,"ElkGraphFactoryImpl",Eo),b(438,150,{105:1,92:1,90:1,147:1,191:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1}),s.Wg=function(){var e,t;return t=(e=u(Rn(this,16),26),VW(Nf(e||this.zh()))),t==null?(Zv(),Zv(),pH):new djn(this,t)},s._g=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),this.Ab;case 1:return this.ne()}return Cs(this,e-ee(this.zh()),On((r=u(Rn(this,16),26),r||this.zh()),e),t,i)},s.lh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return js(this,e-ee(this.zh()),On((t=u(Rn(this,16),26),t||this.zh()),e))},s.sh=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(Be,this,0,3)),Dt(this.Ab,u(t,14));return;case 1:this.Lh(Ce(t));return}Ps(this,e-ee(this.zh()),On((i=u(Rn(this,16),26),i||this.zh()),e),t)},s.zh=function(){return Sn(),Jne},s.Bh=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab);return;case 1:this.Lh(null);return}As(this,e-ee(this.zh()),On((t=u(Rn(this,16),26),t||this.zh()),e))},s.ne=function(){return this.zb},s.Lh=function(e){Ic(this,e)},s.Ib=function(){return r6(this)},s.zb=null,w(Bn,"ENamedElementImpl",438),b(179,438,{105:1,92:1,90:1,147:1,191:1,56:1,235:1,108:1,49:1,97:1,150:1,179:1,114:1,115:1,675:1},WTn),s.Qg=function(e){return LFn(this,e)},s._g=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new V(Be,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 Y0(this,Qo,this)),this.rb;case 6:return!this.vb&&(this.vb=new g2(Vo,this,6,7)),this.vb;case 7:return t?this.Db>>16==7?u(this.Cb,235):null:fMn(this)}return Cs(this,e-ee((Sn(),B1)),On((r=u(Rn(this,16),26),r||B1),e),t,i)},s.hh=function(e,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),Oc(this.Ab,e,i);case 4:return this.sb&&(i=u(this.sb,49).ih(this,1,h9,i)),hQ(this,u(e,471),i);case 5:return!this.rb&&(this.rb=new Y0(this,Qo,this)),Oc(this.rb,e,i);case 6:return!this.vb&&(this.vb=new g2(Vo,this,6,7)),Oc(this.vb,e,i);case 7:return this.Cb&&(i=(c=this.Db>>16,c>=0?LFn(this,i):this.Cb.ih(this,-1-c,null,i))),os(this,e,7,i)}return o=u(On((r=u(Rn(this,16),26),r||(Sn(),B1)),t),66),o.Nj().Qj(this,Rc(this),t-ee((Sn(),B1)),e,i)},s.jh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),zi(this.Ab,e,i);case 4:return hQ(this,null,i);case 5:return!this.rb&&(this.rb=new Y0(this,Qo,this)),zi(this.rb,e,i);case 6:return!this.vb&&(this.vb=new g2(Vo,this,6,7)),zi(this.vb,e,i);case 7:return os(this,null,7,i)}return c=u(On((r=u(Rn(this,16),26),r||(Sn(),B1)),t),66),c.Nj().Rj(this,Rc(this),t-ee((Sn(),B1)),e,i)},s.lh=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!!fMn(this)}return js(this,e-ee((Sn(),B1)),On((t=u(Rn(this,16),26),t||B1),e))},s.oh=function(e){var t;return t=m8e(this,e),t||RZ(this,e)},s.sh=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(Be,this,0,3)),Dt(this.Ab,u(t,14));return;case 1:Ic(this,Ce(t));return;case 2:cT(this,Ce(t));return;case 3:rT(this,Ce(t));return;case 4:jx(this,u(t,471));return;case 5:!this.rb&&(this.rb=new Y0(this,Qo,this)),de(this.rb),!this.rb&&(this.rb=new Y0(this,Qo,this)),Dt(this.rb,u(t,14));return;case 6:!this.vb&&(this.vb=new g2(Vo,this,6,7)),de(this.vb),!this.vb&&(this.vb=new g2(Vo,this,6,7)),Dt(this.vb,u(t,14));return}Ps(this,e-ee((Sn(),B1)),On((i=u(Rn(this,16),26),i||B1),e),t)},s.vh=function(e){var t,i;if(e&&this.rb)for(i=new ie(this.rb);i.e!=i.i.gc();)t=oe(i),I(t,351)&&(u(t,351).w=null);R2(this,64,e)},s.zh=function(){return Sn(),B1},s.Bh=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab);return;case 1:Ic(this,null);return;case 2:cT(this,null);return;case 3:rT(this,null);return;case 4:jx(this,null);return;case 5:!this.rb&&(this.rb=new Y0(this,Qo,this)),de(this.rb);return;case 6:!this.vb&&(this.vb=new g2(Vo,this,6,7)),de(this.vb);return}As(this,e-ee((Sn(),B1)),On((t=u(Rn(this,16),26),t||B1),e))},s.Gh=function(){fx(this)},s.Mh=function(){return!this.rb&&(this.rb=new Y0(this,Qo,this)),this.rb},s.Nh=function(){return this.sb},s.Oh=function(){return this.ub},s.Ph=function(){return this.xb},s.Qh=function(){return this.yb},s.Rh=function(e){this.ub=e},s.Ib=function(){var e;return this.Db&64?r6(this):(e=new Bs(r6(this)),e.a+=" (nsURI: ",dr(e,this.yb),e.a+=", nsPrefix: ",dr(e,this.xb),e.a+=")",e.a)},s.xb=null,s.yb=null,w(Bn,"EPackageImpl",179),b(555,179,{105:1,2016:1,555:1,92:1,90:1,147:1,191:1,56:1,235:1,108:1,49:1,97:1,150:1,179:1,114:1,115:1,675:1},VLn),s.q=!1,s.r=!1;var Fne=!1;w(Ba,"ElkGraphPackageImpl",555),b(354,724,{105:1,413:1,160:1,137:1,470:1,354:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},QH),s.Qg=function(e){return bJ(this,e)},s._g=function(e,t,i){switch(e){case 7:return hMn(this);case 8:return this.a}return jQ(this,e,t,i)},s.hh=function(e,t,i){var r;switch(t){case 7:return this.Cb&&(i=(r=this.Db>>16,r>=0?bJ(this,i):this.Cb.ih(this,-1-r,null,i))),aW(this,u(e,160),i)}return vx(this,e,t,i)},s.jh=function(e,t,i){return t==7?aW(this,null,i):tF(this,e,t,i)},s.lh=function(e){switch(e){case 7:return!!hMn(this);case 8:return!Mn("",this.a)}return PQ(this,e)},s.sh=function(e,t){switch(e){case 7:zY(this,u(t,160));return;case 8:aV(this,Ce(t));return}SJ(this,e,t)},s.zh=function(){return Dc(),e1n},s.Bh=function(e){switch(e){case 7:zY(this,null);return;case 8:aV(this,"");return}FQ(this,e)},s.Ib=function(){return Lxn(this)},s.a="",w(Ba,"ElkLabelImpl",354),b(239,725,{105:1,413:1,82:1,160:1,33:1,470:1,239:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},nG),s.Qg=function(e){return vJ(this,e)},s._g=function(e,t,i){switch(e){case 9:return!this.c&&(this.c=new V(_u,this,9,9)),this.c;case 10:return!this.a&&(this.a=new V(Ot,this,10,11)),this.a;case 11:return Pt(this);case 12:return!this.b&&(this.b=new V(bi,this,12,3)),this.b;case 13:return qn(),!this.a&&(this.a=new V(Ot,this,10,11)),this.a.i>0}return tJ(this,e,t,i)},s.hh=function(e,t,i){var r;switch(t){case 9:return!this.c&&(this.c=new V(_u,this,9,9)),Oc(this.c,e,i);case 10:return!this.a&&(this.a=new V(Ot,this,10,11)),Oc(this.a,e,i);case 11:return this.Cb&&(i=(r=this.Db>>16,r>=0?vJ(this,i):this.Cb.ih(this,-1-r,null,i))),kU(this,u(e,33),i);case 12:return!this.b&&(this.b=new V(bi,this,12,3)),Oc(this.b,e,i)}return yJ(this,e,t,i)},s.jh=function(e,t,i){switch(t){case 9:return!this.c&&(this.c=new V(_u,this,9,9)),zi(this.c,e,i);case 10:return!this.a&&(this.a=new V(Ot,this,10,11)),zi(this.a,e,i);case 11:return kU(this,null,i);case 12:return!this.b&&(this.b=new V(bi,this,12,3)),zi(this.b,e,i)}return jJ(this,e,t,i)},s.lh=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!!Pt(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new V(Ot,this,10,11)),this.a.i>0}return zV(this,e)},s.sh=function(e,t){switch(e){case 9:!this.c&&(this.c=new V(_u,this,9,9)),de(this.c),!this.c&&(this.c=new V(_u,this,9,9)),Dt(this.c,u(t,14));return;case 10:!this.a&&(this.a=new V(Ot,this,10,11)),de(this.a),!this.a&&(this.a=new V(Ot,this,10,11)),Dt(this.a,u(t,14));return;case 11:HY(this,u(t,33));return;case 12:!this.b&&(this.b=new V(bi,this,12,3)),de(this.b),!this.b&&(this.b=new V(bi,this,12,3)),Dt(this.b,u(t,14));return}OY(this,e,t)},s.zh=function(){return Dc(),t1n},s.Bh=function(e){switch(e){case 9:!this.c&&(this.c=new V(_u,this,9,9)),de(this.c);return;case 10:!this.a&&(this.a=new V(Ot,this,10,11)),de(this.a);return;case 11:HY(this,null);return;case 12:!this.b&&(this.b=new V(bi,this,12,3)),de(this.b);return}XQ(this,e)},s.Ib=function(){return uZ(this)},w(Ba,"ElkNodeImpl",239),b(186,725,{105:1,413:1,82:1,160:1,118:1,470:1,186:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},eG),s.Qg=function(e){return wJ(this,e)},s._g=function(e,t,i){return e==9?ef(this):tJ(this,e,t,i)},s.hh=function(e,t,i){var r;switch(t){case 9:return this.Cb&&(i=(r=this.Db>>16,r>=0?wJ(this,i):this.Cb.ih(this,-1-r,null,i))),aU(this,u(e,33),i)}return yJ(this,e,t,i)},s.jh=function(e,t,i){return t==9?aU(this,null,i):jJ(this,e,t,i)},s.lh=function(e){return e==9?!!ef(this):zV(this,e)},s.sh=function(e,t){switch(e){case 9:KY(this,u(t,33));return}OY(this,e,t)},s.zh=function(){return Dc(),i1n},s.Bh=function(e){switch(e){case 9:KY(this,null);return}XQ(this,e)},s.Ib=function(){return jBn(this)},w(Ba,"ElkPortImpl",186);var xne=Ct(Ui,"BasicEMap/Entry");b(1092,115,{105:1,42:1,92:1,90:1,133:1,56:1,108:1,49:1,97:1,114:1,115:1},_2n),s.Fb=function(e){return this===e},s.cd=function(){return this.b},s.Hb=function(){return md(this)},s.Uh=function(e){dV(this,u(e,146))},s._g=function(e,t,i){switch(e){case 0:return this.b;case 1:return this.c}return BT(this,e,t,i)},s.lh=function(e){switch(e){case 0:return!!this.b;case 1:return this.c!=null}return zF(this,e)},s.sh=function(e,t){switch(e){case 0:dV(this,u(t,146));return;case 1:gV(this,t);return}Px(this,e,t)},s.zh=function(){return Dc(),Ul},s.Bh=function(e){switch(e){case 0:dV(this,null);return;case 1:gV(this,null);return}Cx(this,e)},s.Sh=function(){var e;return this.a==-1&&(e=this.b,this.a=e?mt(e):0),this.a},s.dd=function(){return this.c},s.Th=function(e){this.a=e},s.ed=function(e){var t;return t=this.c,gV(this,e),t},s.Ib=function(){var e;return this.Db&64?yo(this):(e=new V1,De(De(De(e,this.b?this.b.tg():ru),TN),y5(this.c)),e.a)},s.a=-1,s.c=null;var S0=w(Ba,"ElkPropertyToValueMapEntryImpl",1092);b(984,1,{},q2n),w(Fi,"JsonAdapter",984),b(210,60,Uh,Sf),w(Fi,"JsonImportException",210),b(857,1,{},NFn),w(Fi,"JsonImporter",857),b(891,1,{},akn),w(Fi,"JsonImporter/lambda$0$Type",891),b(892,1,{},dkn),w(Fi,"JsonImporter/lambda$1$Type",892),b(900,1,{},W6n),w(Fi,"JsonImporter/lambda$10$Type",900),b(902,1,{},bkn),w(Fi,"JsonImporter/lambda$11$Type",902),b(903,1,{},wkn),w(Fi,"JsonImporter/lambda$12$Type",903),b(909,1,{},ATn),w(Fi,"JsonImporter/lambda$13$Type",909),b(908,1,{},MTn),w(Fi,"JsonImporter/lambda$14$Type",908),b(904,1,{},gkn),w(Fi,"JsonImporter/lambda$15$Type",904),b(905,1,{},pkn),w(Fi,"JsonImporter/lambda$16$Type",905),b(906,1,{},vkn),w(Fi,"JsonImporter/lambda$17$Type",906),b(907,1,{},mkn),w(Fi,"JsonImporter/lambda$18$Type",907),b(912,1,{},X6n),w(Fi,"JsonImporter/lambda$19$Type",912),b(893,1,{},V6n),w(Fi,"JsonImporter/lambda$2$Type",893),b(910,1,{},Q6n),w(Fi,"JsonImporter/lambda$20$Type",910),b(911,1,{},J6n),w(Fi,"JsonImporter/lambda$21$Type",911),b(915,1,{},Y6n),w(Fi,"JsonImporter/lambda$22$Type",915),b(913,1,{},Z6n),w(Fi,"JsonImporter/lambda$23$Type",913),b(914,1,{},nmn),w(Fi,"JsonImporter/lambda$24$Type",914),b(917,1,{},emn),w(Fi,"JsonImporter/lambda$25$Type",917),b(916,1,{},tmn),w(Fi,"JsonImporter/lambda$26$Type",916),b(918,1,Yn,kkn),s.td=function(e){Xde(this.b,this.a,Ce(e))},w(Fi,"JsonImporter/lambda$27$Type",918),b(919,1,Yn,ykn),s.td=function(e){Vde(this.b,this.a,Ce(e))},w(Fi,"JsonImporter/lambda$28$Type",919),b(920,1,{},jkn),w(Fi,"JsonImporter/lambda$29$Type",920),b(896,1,{},imn),w(Fi,"JsonImporter/lambda$3$Type",896),b(921,1,{},Ekn),w(Fi,"JsonImporter/lambda$30$Type",921),b(922,1,{},rmn),w(Fi,"JsonImporter/lambda$31$Type",922),b(923,1,{},cmn),w(Fi,"JsonImporter/lambda$32$Type",923),b(924,1,{},umn),w(Fi,"JsonImporter/lambda$33$Type",924),b(925,1,{},smn),w(Fi,"JsonImporter/lambda$34$Type",925),b(859,1,{},omn),w(Fi,"JsonImporter/lambda$35$Type",859),b(929,1,{},vEn),w(Fi,"JsonImporter/lambda$36$Type",929),b(926,1,Yn,fmn),s.td=function(e){Yae(this.a,u(e,469))},w(Fi,"JsonImporter/lambda$37$Type",926),b(927,1,Yn,Pkn),s.td=function(e){Mre(this.a,this.b,u(e,202))},w(Fi,"JsonImporter/lambda$38$Type",927),b(928,1,Yn,Ikn),s.td=function(e){Are(this.a,this.b,u(e,202))},w(Fi,"JsonImporter/lambda$39$Type",928),b(894,1,{},hmn),w(Fi,"JsonImporter/lambda$4$Type",894),b(930,1,Yn,lmn),s.td=function(e){Zae(this.a,u(e,8))},w(Fi,"JsonImporter/lambda$40$Type",930),b(895,1,{},amn),w(Fi,"JsonImporter/lambda$5$Type",895),b(899,1,{},dmn),w(Fi,"JsonImporter/lambda$6$Type",899),b(897,1,{},bmn),w(Fi,"JsonImporter/lambda$7$Type",897),b(898,1,{},wmn),w(Fi,"JsonImporter/lambda$8$Type",898),b(901,1,{},gmn),w(Fi,"JsonImporter/lambda$9$Type",901),b(948,1,Yn,pmn),s.td=function(e){j2(this.a,new Z0(Ce(e)))},w(Fi,"JsonMetaDataConverter/lambda$0$Type",948),b(949,1,Yn,vmn),s.td=function(e){whe(this.a,u(e,237))},w(Fi,"JsonMetaDataConverter/lambda$1$Type",949),b(950,1,Yn,mmn),s.td=function(e){ale(this.a,u(e,149))},w(Fi,"JsonMetaDataConverter/lambda$2$Type",950),b(951,1,Yn,kmn),s.td=function(e){ghe(this.a,u(e,175))},w(Fi,"JsonMetaDataConverter/lambda$3$Type",951),b(237,22,{3:1,35:1,22:1,237:1},a2);var VP,QP,hH,JP,YP,ZP,lH,aH,nI=Me(ok,"GraphFeature",237,Ie,B0e,_oe),Lne;b(13,1,{35:1,146:1},kt,ri,In,tr),s.wd=function(e){return Tce(this,u(e,146))},s.Fb=function(e){return XTn(this,e)},s.wg=function(){return cn(this)},s.tg=function(){return this.b},s.Hb=function(){return m1(this.b)},s.Ib=function(){return this.b},w(ok,"Property",13),b(818,1,lt,$q),s.ue=function(e,t){return qge(this,u(e,94),u(t,94))},s.Fb=function(e){return this===e},s.ve=function(){return new ut(this)},w(ok,"PropertyHolderComparator",818),b(695,1,ji,Fq),s.Nb=function(e){Oi(this,e)},s.Pb=function(){return Zde(this)},s.Qb=function(){d8n()},s.Ob=function(){return!!this.a},w(mA,"ElkGraphUtil/AncestorIterator",695);var c1n=Ct(Ui,"EList");b(67,52,{20:1,28:1,52:1,14:1,15:1,67:1,58:1}),s.Vc=function(e,t){s6(this,e,t)},s.Fc=function(e){return me(this,e)},s.Wc=function(e,t){return NV(this,e,t)},s.Gc=function(e){return Dt(this,e)},s.Zh=function(){return new w2(this)},s.$h=function(){return new u8(this)},s._h=function(e){return J8(this,e)},s.ai=function(){return!0},s.bi=function(e,t){},s.ci=function(){},s.di=function(e,t){A$(this,e,t)},s.ei=function(e,t,i){},s.fi=function(e,t){},s.gi=function(e,t,i){},s.Fb=function(e){return oBn(this,e)},s.Hb=function(){return DV(this)},s.hi=function(){return!1},s.Kc=function(){return new ie(this)},s.Yc=function(){return new b2(this)},s.Zc=function(e){var t;if(t=this.gc(),e<0||e>t)throw T(new V0(e,t));return new DD(this,e)},s.ji=function(e,t){this.ii(e,this.Xc(t))},s.Mc=function(e){return BC(this,e)},s.li=function(e,t){return t},s._c=function(e,t){return Gw(this,e,t)},s.Ib=function(){return CQ(this)},s.ni=function(){return!0},s.oi=function(e,t){return W3(this,t)},w(Ui,"AbstractEList",67),b(63,67,Xf,Jy,Ld,CV),s.Vh=function(e,t){return mx(this,e,t)},s.Wh=function(e){return hFn(this,e)},s.Xh=function(e,t){a7(this,e,t)},s.Yh=function(e){F8(this,e)},s.pi=function(e){return zX(this,e)},s.$b=function(){U5(this)},s.Hc=function(e){return o4(this,e)},s.Xb=function(e){return D(this,e)},s.qi=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=0?(this.$c(t),!0):!1},s.mi=function(e,t){return this.Ui(e,this.oi(e,t))},s.gc=function(){return this.Vi()},s.Pc=function(){return this.Wi()},s.Qc=function(e){return this.Xi(e)},s.Ib=function(){return this.Yi()},w(Ui,"DelegatingEList",1995),b(1996,1995,rGn),s.Vh=function(e,t){return wZ(this,e,t)},s.Wh=function(e){return this.Vh(this.Vi(),e)},s.Xh=function(e,t){WLn(this,e,t)},s.Yh=function(e){BLn(this,e)},s.ai=function(){return!this.bj()},s.$b=function(){$6(this)},s.Zi=function(e,t,i,r,c){return new QTn(this,e,t,i,r,c)},s.$i=function(e){et(this.Ai(),e)},s._i=function(){return null},s.aj=function(){return-1},s.Ai=function(){return null},s.bj=function(){return!1},s.cj=function(e,t){return t},s.dj=function(e,t){return t},s.ej=function(){return!1},s.fj=function(){return!this.Ri()},s.ii=function(e,t){var i,r;return this.ej()?(r=this.fj(),i=WJ(this,e,t),this.$i(this.Zi(7,Q(t),i,e,r)),i):WJ(this,e,t)},s.$c=function(e){var t,i,r,c;return this.ej()?(i=null,r=this.fj(),t=this.Zi(4,c=OE(this,e),null,e,r),this.bj()&&c?(i=this.dj(c,i),i?(i.Ei(t),i.Fi()):this.$i(t)):i?(i.Ei(t),i.Fi()):this.$i(t),c):(c=OE(this,e),this.bj()&&c&&(i=this.dj(c,null),i&&i.Fi()),c)},s.mi=function(e,t){return eRn(this,e,t)},w(sp,"DelegatingNotifyingListImpl",1996),b(143,1,jk),s.Ei=function(e){return FJ(this,e)},s.Fi=function(){L$(this)},s.xi=function(){return this.d},s._i=function(){return null},s.gj=function(){return null},s.yi=function(e){return-1},s.zi=function(){return KNn(this)},s.Ai=function(){return null},s.Bi=function(){return QY(this)},s.Ci=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},s.hj=function(){return!1},s.Di=function(e){var t,i,r,c,o,f,h,l,a,d,g;switch(this.d){case 1:case 2:switch(c=e.xi(),c){case 1:case 2:if(o=e.Ai(),B(o)===B(this.Ai())&&this.yi(null)==e.yi(null))return this.g=e.zi(),e.xi()==1&&(this.d=1),!0}case 4:{switch(c=e.xi(),c){case 4:{if(o=e.Ai(),B(o)===B(this.Ai())&&this.yi(null)==e.yi(null))return a=DZ(this),l=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,f=e.Ci(),this.d=6,g=new Ld(2),l<=f?(me(g,this.n),me(g,e.Bi()),this.g=A(M(be,1),Le,25,15,[this.o=l,f+1])):(me(g,e.Bi()),me(g,this.n),this.g=A(M(be,1),Le,25,15,[this.o=f,l])),this.n=g,a||(this.o=-2-this.o-1),!0;break}}break}case 6:{switch(c=e.xi(),c){case 4:{if(o=e.Ai(),B(o)===B(this.Ai())&&this.yi(null)==e.yi(null)){for(a=DZ(this),f=e.Ci(),d=u(this.g,48),r=F(be,Le,25,d.length+1,15,1),t=0;t>>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:{eO(r,this.d);break}}if(PBn(this)&&(r.a+=", touch: true"),r.a+=", position: ",eO(r,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),r.a+=", notifier: ",w5(r,this.Ai()),r.a+=", feature: ",w5(r,this._i()),r.a+=", oldValue: ",w5(r,QY(this)),r.a+=", newValue: ",this.d==6&&I(this.g,48)){for(i=u(this.g,48),r.a+="[",e=0;e10?((!this.b||this.c.j!=this.a)&&(this.b=new S5(this),this.a=this.j),Ah(this.b,e)):o4(this,e)},s.ni=function(){return!0},s.a=0,w(Ui,"AbstractEList/1",953),b(295,73,VL,V0),w(Ui,"AbstractEList/BasicIndexOutOfBoundsException",295),b(40,1,ji,ie),s.Nb=function(e){Oi(this,e)},s.mj=function(){if(this.i.j!=this.f)throw T(new vs)},s.nj=function(){return oe(this)},s.Ob=function(){return this.e!=this.i.gc()},s.Pb=function(){return this.nj()},s.Qb=function(){p6(this)},s.e=0,s.f=0,s.g=-1,w(Ui,"AbstractEList/EIterator",40),b(278,40,lh,b2,DD),s.Qb=function(){p6(this)},s.Rb=function(e){a$n(this,e)},s.oj=function(){var e;try{return e=this.d.Xb(--this.e),this.mj(),this.g=this.e,e}catch(t){throw t=jt(t),I(t,73)?(this.mj(),T(new ic)):T(t)}},s.pj=function(e){dFn(this,e)},s.Sb=function(){return this.e!=0},s.Tb=function(){return this.e},s.Ub=function(){return this.oj()},s.Vb=function(){return this.e-1},s.Wb=function(e){this.pj(e)},w(Ui,"AbstractEList/EListIterator",278),b(341,40,ji,w2),s.nj=function(){return UF(this)},s.Qb=function(){throw T(new ye)},w(Ui,"AbstractEList/NonResolvingEIterator",341),b(385,278,lh,u8,AU),s.Rb=function(e){throw T(new ye)},s.nj=function(){var e;try{return e=this.c.ki(this.e),this.mj(),this.g=this.e++,e}catch(t){throw t=jt(t),I(t,73)?(this.mj(),T(new ic)):T(t)}},s.oj=function(){var e;try{return e=this.c.ki(--this.e),this.mj(),this.g=this.e,e}catch(t){throw t=jt(t),I(t,73)?(this.mj(),T(new ic)):T(t)}},s.Qb=function(){throw T(new ye)},s.Wb=function(e){throw T(new ye)},w(Ui,"AbstractEList/NonResolvingEListIterator",385),b(1982,67,cGn),s.Vh=function(e,t){var i,r,c,o,f,h,l,a,d,g,p;if(c=t.gc(),c!=0){for(a=u(Rn(this.a,4),126),d=a==null?0:a.length,p=d+c,r=bF(this,p),g=d-e,g>0&&gc(a,e,r,e+c,g),l=t.Kc(),f=0;fi)throw T(new V0(e,i));return new sTn(this,e)},s.$b=function(){var e,t;++this.j,e=u(Rn(this.a,4),126),t=e==null?0:e.length,r4(this,null),A$(this,t,e)},s.Hc=function(e){var t,i,r,c,o;if(t=u(Rn(this.a,4),126),t!=null){if(e!=null){for(r=t,c=0,o=r.length;c=i)throw T(new V0(e,i));return t[e]},s.Xc=function(e){var t,i,r;if(t=u(Rn(this.a,4),126),t!=null){if(e!=null){for(i=0,r=t.length;ii)throw T(new V0(e,i));return new uTn(this,e)},s.ii=function(e,t){var i,r,c;if(i=k$n(this),c=i==null?0:i.length,e>=c)throw T(new mr(NB+e+Ra+c));if(t>=c)throw T(new mr(BB+t+Ra+c));return r=i[t],e!=t&&(e0&&gc(e,0,t,0,i),t},s.Qc=function(e){var t,i,r;return t=u(Rn(this.a,4),126),r=t==null?0:t.length,r>0&&(e.lengthr&&St(e,r,null),e};var Nne;w(Ui,"ArrayDelegatingEList",1982),b(1038,40,ji,gSn),s.mj=function(){if(this.b.j!=this.f||B(u(Rn(this.b.a,4),126))!==B(this.a))throw T(new vs)},s.Qb=function(){p6(this),this.a=u(Rn(this.b.a,4),126)},w(Ui,"ArrayDelegatingEList/EIterator",1038),b(706,278,lh,ICn,uTn),s.mj=function(){if(this.b.j!=this.f||B(u(Rn(this.b.a,4),126))!==B(this.a))throw T(new vs)},s.pj=function(e){dFn(this,e),this.a=u(Rn(this.b.a,4),126)},s.Qb=function(){p6(this),this.a=u(Rn(this.b.a,4),126)},w(Ui,"ArrayDelegatingEList/EListIterator",706),b(1039,341,ji,pSn),s.mj=function(){if(this.b.j!=this.f||B(u(Rn(this.b.a,4),126))!==B(this.a))throw T(new vs)},w(Ui,"ArrayDelegatingEList/NonResolvingEIterator",1039),b(707,385,lh,OCn,sTn),s.mj=function(){if(this.b.j!=this.f||B(u(Rn(this.b.a,4),126))!==B(this.a))throw T(new vs)},w(Ui,"ArrayDelegatingEList/NonResolvingEListIterator",707),b(606,295,VL,xO),w(Ui,"BasicEList/BasicIndexOutOfBoundsException",606),b(696,63,Xf,az),s.Vc=function(e,t){throw T(new ye)},s.Fc=function(e){throw T(new ye)},s.Wc=function(e,t){throw T(new ye)},s.Gc=function(e){throw T(new ye)},s.$b=function(){throw T(new ye)},s.qi=function(e){throw T(new ye)},s.Kc=function(){return this.Zh()},s.Yc=function(){return this.$h()},s.Zc=function(e){return this._h(e)},s.ii=function(e,t){throw T(new ye)},s.ji=function(e,t){throw T(new ye)},s.$c=function(e){throw T(new ye)},s.Mc=function(e){throw T(new ye)},s._c=function(e,t){throw T(new ye)},w(Ui,"BasicEList/UnmodifiableEList",696),b(705,1,{3:1,20:1,14:1,15:1,58:1,589:1}),s.Vc=function(e,t){wce(this,e,u(t,42))},s.Fc=function(e){return eue(this,u(e,42))},s.Jc=function(e){$i(this,e)},s.Xb=function(e){return u(D(this.c,e),133)},s.ii=function(e,t){return u(this.c.ii(e,t),42)},s.ji=function(e,t){gce(this,e,u(t,42))},s.Lc=function(){return new $n(null,new xn(this,16))},s.$c=function(e){return u(this.c.$c(e),42)},s._c=function(e,t){return fhe(this,e,u(t,42))},s.ad=function(e){Lw(this,e)},s.Nc=function(){return new xn(this,16)},s.Oc=function(){return new $n(null,new xn(this,16))},s.Wc=function(e,t){return this.c.Wc(e,t)},s.Gc=function(e){return this.c.Gc(e)},s.$b=function(){this.c.$b()},s.Hc=function(e){return this.c.Hc(e)},s.Ic=function(e){return t7(this.c,e)},s.qj=function(){var e,t,i;if(this.d==null){for(this.d=F(u1n,Xtn,63,2*this.f+1,0,1),i=this.e,this.f=0,t=this.c.Kc();t.e!=t.i.gc();)e=u(t.nj(),133),KT(this,e);this.e=i}},s.Fb=function(e){return tEn(this,e)},s.Hb=function(){return DV(this.c)},s.Xc=function(e){return this.c.Xc(e)},s.rj=function(){this.c=new jmn(this)},s.dc=function(){return this.f==0},s.Kc=function(){return this.c.Kc()},s.Yc=function(){return this.c.Yc()},s.Zc=function(e){return this.c.Zc(e)},s.sj=function(){return N8(this)},s.tj=function(e,t,i){return new mEn(e,t,i)},s.uj=function(){return new W2n},s.Mc=function(e){return xIn(this,e)},s.gc=function(){return this.f},s.bd=function(e,t){return new uh(this.c,e,t)},s.Pc=function(){return this.c.Pc()},s.Qc=function(e){return this.c.Qc(e)},s.Ib=function(){return CQ(this.c)},s.e=0,s.f=0,w(Ui,"BasicEMap",705),b(1033,63,Xf,jmn),s.bi=function(e,t){Yte(this,u(t,133))},s.ei=function(e,t,i){var r;++(r=this,u(t,133),r).a.e},s.fi=function(e,t){Zte(this,u(t,133))},s.gi=function(e,t,i){Hce(this,u(t,133),u(i,133))},s.di=function(e,t){TOn(this.a)},w(Ui,"BasicEMap/1",1033),b(1034,63,Xf,W2n),s.ri=function(e){return F(hMe,uGn,612,e,0,1)},w(Ui,"BasicEMap/2",1034),b(1035,bf,pu,Emn),s.$b=function(){this.a.c.$b()},s.Hc=function(e){return NF(this.a,e)},s.Kc=function(){return this.a.f==0?(o3(),xy.a):new r8n(this.a)},s.Mc=function(e){var t;return t=this.a.f,IT(this.a,e),this.a.f!=t},s.gc=function(){return this.a.f},w(Ui,"BasicEMap/3",1035),b(1036,28,Sb,Cmn),s.$b=function(){this.a.c.$b()},s.Hc=function(e){return fBn(this.a,e)},s.Kc=function(){return this.a.f==0?(o3(),xy.a):new c8n(this.a)},s.gc=function(){return this.a.f},w(Ui,"BasicEMap/4",1036),b(1037,bf,pu,Tmn),s.$b=function(){this.a.c.$b()},s.Hc=function(e){var t,i,r,c,o,f,h,l,a;if(this.a.f>0&&I(e,42)&&(this.a.qj(),l=u(e,42),h=l.cd(),c=h==null?0:mt(h),o=dU(this.a,c),t=this.a.d[o],t)){for(i=u(t.g,367),a=t.i,f=0;f"+this.c},s.a=0;var hMe=w(Ui,"BasicEMap/EntryImpl",612);b(536,1,{},Qy),w(Ui,"BasicEMap/View",536);var xy;b(768,1,{}),s.Fb=function(e){return DY((Pn(),cr),e)},s.Hb=function(){return GV((Pn(),cr))},s.Ib=function(){return kl((Pn(),cr))},w(Ui,"ECollections/BasicEmptyUnmodifiableEList",768),b(1312,1,lh,X2n),s.Nb=function(e){Oi(this,e)},s.Rb=function(e){throw T(new ye)},s.Ob=function(){return!1},s.Sb=function(){return!1},s.Pb=function(){throw T(new ic)},s.Tb=function(){return 0},s.Ub=function(){throw T(new ic)},s.Vb=function(){return-1},s.Qb=function(){throw T(new ye)},s.Wb=function(e){throw T(new ye)},w(Ui,"ECollections/BasicEmptyUnmodifiableEList/1",1312),b(1310,768,{20:1,14:1,15:1,58:1},w9n),s.Vc=function(e,t){M8n()},s.Fc=function(e){return A8n()},s.Wc=function(e,t){return S8n()},s.Gc=function(e){return P8n()},s.$b=function(){I8n()},s.Hc=function(e){return!1},s.Ic=function(e){return!1},s.Jc=function(e){$i(this,e)},s.Xb=function(e){return wz((Pn(),e)),null},s.Xc=function(e){return-1},s.dc=function(){return!0},s.Kc=function(){return this.a},s.Yc=function(){return this.a},s.Zc=function(e){return this.a},s.ii=function(e,t){return O8n()},s.ji=function(e,t){D8n()},s.Lc=function(){return new $n(null,new xn(this,16))},s.$c=function(e){return $8n()},s.Mc=function(e){return F8n()},s._c=function(e,t){return x8n()},s.gc=function(){return 0},s.ad=function(e){Lw(this,e)},s.Nc=function(){return new xn(this,16)},s.Oc=function(){return new $n(null,new xn(this,16))},s.bd=function(e,t){return Pn(),new uh(cr,e,t)},s.Pc=function(){return wW((Pn(),cr))},s.Qc=function(e){return Pn(),y7(cr,e)},w(Ui,"ECollections/EmptyUnmodifiableEList",1310),b(1311,768,{20:1,14:1,15:1,58:1,589:1},g9n),s.Vc=function(e,t){M8n()},s.Fc=function(e){return A8n()},s.Wc=function(e,t){return S8n()},s.Gc=function(e){return P8n()},s.$b=function(){I8n()},s.Hc=function(e){return!1},s.Ic=function(e){return!1},s.Jc=function(e){$i(this,e)},s.Xb=function(e){return wz((Pn(),e)),null},s.Xc=function(e){return-1},s.dc=function(){return!0},s.Kc=function(){return this.a},s.Yc=function(){return this.a},s.Zc=function(e){return this.a},s.ii=function(e,t){return O8n()},s.ji=function(e,t){D8n()},s.Lc=function(){return new $n(null,new xn(this,16))},s.$c=function(e){return $8n()},s.Mc=function(e){return F8n()},s._c=function(e,t){return x8n()},s.gc=function(){return 0},s.ad=function(e){Lw(this,e)},s.Nc=function(){return new xn(this,16)},s.Oc=function(){return new $n(null,new xn(this,16))},s.bd=function(e,t){return Pn(),new uh(cr,e,t)},s.Pc=function(){return wW((Pn(),cr))},s.Qc=function(e){return Pn(),y7(cr,e)},s.sj=function(){return Pn(),Pn(),vh},w(Ui,"ECollections/EmptyUnmodifiableEMap",1311);var o1n=Ct(Ui,"Enumerator"),eI;b(281,1,{281:1},zx),s.Fb=function(e){var t;return this===e?!0:I(e,281)?(t=u(e,281),this.f==t.f&&Ife(this.i,t.i)&&vD(this.a,this.f&256?t.f&256?t.a:null:t.f&256?null:t.a)&&vD(this.d,t.d)&&vD(this.g,t.g)&&vD(this.e,t.e)&&Cpe(this,t)):!1},s.Hb=function(){return this.f},s.Ib=function(){return _Bn(this)},s.f=0;var Bne=0,Rne=0,_ne=0,Kne=0,f1n=0,h1n=0,l1n=0,a1n=0,d1n=0,Hne,a9=0,d9=0,qne=0,Gne=0,tI,b1n;w(Ui,"URI",281),b(1091,43,sg,p9n),s.zc=function(e,t){return u(yr(this,Ce(e),u(t,281)),281)},w(Ui,"URI/URICache",1091),b(497,63,Xf,H2n,$E),s.hi=function(){return!0},w(Ui,"UniqueEList",497),b(581,60,Uh,xC),w(Ui,"WrappedException",581);var Be=Ct(Is,fGn),sw=Ct(Is,hGn),ou=Ct(Is,lGn),ow=Ct(Is,aGn),Qo=Ct(Is,dGn),ro=Ct(Is,"EClass"),wH=Ct(Is,"EDataType"),zne;b(1183,43,sg,v9n),s.xc=function(e){return ki(e)?vc(this,e):Vr(Sr(this.f,e))},w(Is,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1183);var iI=Ct(Is,"EEnum"),e1=Ct(Is,bGn),ar=Ct(Is,wGn),co=Ct(Is,gGn),uo,P0=Ct(Is,pGn),fw=Ct(Is,vGn);b(1029,1,{},K2n),s.Ib=function(){return"NIL"},w(Is,"EStructuralFeature/Internal/DynamicValueHolder/1",1029);var Une;b(1028,43,sg,m9n),s.xc=function(e){return ki(e)?vc(this,e):Vr(Sr(this.f,e))},w(Is,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1028);var zc=Ct(Is,mGn),Ip=Ct(Is,"EValidator/PatternMatcher"),w1n,g1n,Nn,x1,hw,Xl,Wne,Xne,Vne,Vl,L1,Ql,I0,Tf,Qne,Jne,so,N1,Yne,B1,lw,qg,nr,Zne,nee,O0,rI=Ct(vt,"FeatureMap/Entry");b(535,1,{72:1},Yj),s.ak=function(){return this.a},s.dd=function(){return this.b},w(Bn,"BasicEObjectImpl/1",535),b(1027,1,GB,Okn),s.Wj=function(e){return T$(this.a,this.b,e)},s.fj=function(){return lMn(this.a,this.b)},s.Wb=function(e){JW(this.a,this.b,e)},s.Xj=function(){Mhe(this.a,this.b)},w(Bn,"BasicEObjectImpl/4",1027),b(1983,1,{108:1}),s.bk=function(e){this.e=e==0?eee:F(Zn,rn,1,e,5,1)},s.Ch=function(e){return this.e[e]},s.Dh=function(e,t){this.e[e]=t},s.Eh=function(e){this.e[e]=null},s.ck=function(){return this.c},s.dk=function(){throw T(new ye)},s.ek=function(){throw T(new ye)},s.fk=function(){return this.d},s.gk=function(){return this.e!=null},s.hk=function(e){this.c=e},s.ik=function(e){throw T(new ye)},s.jk=function(e){throw T(new ye)},s.kk=function(e){this.d=e};var eee;w(Bn,"BasicEObjectImpl/EPropertiesHolderBaseImpl",1983),b(185,1983,{108:1},Fo),s.dk=function(){return this.a},s.ek=function(){return this.b},s.ik=function(e){this.a=e},s.jk=function(e){this.b=e},w(Bn,"BasicEObjectImpl/EPropertiesHolderImpl",185),b(506,97,kqn,Yy),s.Kg=function(){return this.f},s.Pg=function(){return this.k},s.Rg=function(e,t){this.g=e,this.i=t},s.Tg=function(){return this.j&2?this.ph().ck():this.zh()},s.Vg=function(){return this.i},s.Mg=function(){return(this.j&1)!=0},s.eh=function(){return this.g},s.kh=function(){return(this.j&4)!=0},s.ph=function(){return!this.k&&(this.k=new Fo),this.k},s.th=function(e){this.ph().hk(e),e?this.j|=2:this.j&=-3},s.vh=function(e){this.ph().jk(e),e?this.j|=4:this.j&=-5},s.zh=function(){return(ol(),Nn).S},s.i=0,s.j=1,w(Bn,"EObjectImpl",506),b(780,506,{105:1,92:1,90:1,56:1,108:1,49:1,97:1},JU),s.Ch=function(e){return this.e[e]},s.Dh=function(e,t){this.e[e]=t},s.Eh=function(e){this.e[e]=null},s.Tg=function(){return this.d},s.Yg=function(e){return yt(this.d,e)},s.$g=function(){return this.d},s.dh=function(){return this.e!=null},s.ph=function(){return!this.k&&(this.k=new V2n),this.k},s.th=function(e){this.d=e},s.yh=function(){var e;return this.e==null&&(e=ee(this.d),this.e=e==0?tee:F(Zn,rn,1,e,5,1)),this},s.Ah=function(){return 0};var tee;w(Bn,"DynamicEObjectImpl",780),b(1376,780,{105:1,42:1,92:1,90:1,133:1,56:1,108:1,49:1,97:1},UEn),s.Fb=function(e){return this===e},s.Hb=function(){return md(this)},s.th=function(e){this.d=e,this.b=R7(e,"key"),this.c=R7(e,im)},s.Sh=function(){var e;return this.a==-1&&(e=N$(this,this.b),this.a=e==null?0:mt(e)),this.a},s.cd=function(){return N$(this,this.b)},s.dd=function(){return N$(this,this.c)},s.Th=function(e){this.a=e},s.Uh=function(e){JW(this,this.b,e)},s.ed=function(e){var t;return t=N$(this,this.c),JW(this,this.c,e),t},s.a=0,w(Bn,"DynamicEObjectImpl/BasicEMapEntry",1376),b(1377,1,{108:1},V2n),s.bk=function(e){throw T(new ye)},s.Ch=function(e){throw T(new ye)},s.Dh=function(e,t){throw T(new ye)},s.Eh=function(e){throw T(new ye)},s.ck=function(){throw T(new ye)},s.dk=function(){return this.a},s.ek=function(){return this.b},s.fk=function(){return this.c},s.gk=function(){throw T(new ye)},s.hk=function(e){throw T(new ye)},s.ik=function(e){this.a=e},s.jk=function(e){this.b=e},s.kk=function(e){this.c=e},w(Bn,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1377),b(510,150,{105:1,92:1,90:1,590:1,147:1,56:1,108:1,49:1,97:1,510:1,150:1,114:1,115:1},JH),s.Qg=function(e){return gJ(this,e)},s._g=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),this.Ab;case 1:return this.d;case 2:return i?(!this.b&&(this.b=new Gu((Sn(),nr),tc,this)),this.b):(!this.b&&(this.b=new Gu((Sn(),nr),tc,this)),N8(this.b));case 3:return gMn(this);case 4:return!this.a&&(this.a=new Yt(zl,this,4)),this.a;case 5:return!this.c&&(this.c=new Aw(zl,this,5)),this.c}return Cs(this,e-ee((Sn(),x1)),On((r=u(Rn(this,16),26),r||x1),e),t,i)},s.hh=function(e,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),Oc(this.Ab,e,i);case 3:return this.Cb&&(i=(c=this.Db>>16,c>=0?gJ(this,i):this.Cb.ih(this,-1-c,null,i))),dW(this,u(e,147),i)}return o=u(On((r=u(Rn(this,16),26),r||(Sn(),x1)),t),66),o.Nj().Qj(this,Rc(this),t-ee((Sn(),x1)),e,i)},s.jh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),zi(this.Ab,e,i);case 2:return!this.b&&(this.b=new Gu((Sn(),nr),tc,this)),yE(this.b,e,i);case 3:return dW(this,null,i);case 4:return!this.a&&(this.a=new Yt(zl,this,4)),zi(this.a,e,i)}return c=u(On((r=u(Rn(this,16),26),r||(Sn(),x1)),t),66),c.Nj().Rj(this,Rc(this),t-ee((Sn(),x1)),e,i)},s.lh=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!!gMn(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return js(this,e-ee((Sn(),x1)),On((t=u(Rn(this,16),26),t||x1),e))},s.sh=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(Be,this,0,3)),Dt(this.Ab,u(t,14));return;case 1:wfe(this,Ce(t));return;case 2:!this.b&&(this.b=new Gu((Sn(),nr),tc,this)),fT(this.b,t);return;case 3:INn(this,u(t,147));return;case 4:!this.a&&(this.a=new Yt(zl,this,4)),de(this.a),!this.a&&(this.a=new Yt(zl,this,4)),Dt(this.a,u(t,14));return;case 5:!this.c&&(this.c=new Aw(zl,this,5)),de(this.c),!this.c&&(this.c=new Aw(zl,this,5)),Dt(this.c,u(t,14));return}Ps(this,e-ee((Sn(),x1)),On((i=u(Rn(this,16),26),i||x1),e),t)},s.zh=function(){return Sn(),x1},s.Bh=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab);return;case 1:pV(this,null);return;case 2:!this.b&&(this.b=new Gu((Sn(),nr),tc,this)),this.b.c.$b();return;case 3:INn(this,null);return;case 4:!this.a&&(this.a=new Yt(zl,this,4)),de(this.a);return;case 5:!this.c&&(this.c=new Aw(zl,this,5)),de(this.c);return}As(this,e-ee((Sn(),x1)),On((t=u(Rn(this,16),26),t||x1),e))},s.Ib=function(){return zDn(this)},s.d=null,w(Bn,"EAnnotationImpl",510),b(151,705,Vtn,Xu),s.Xh=function(e,t){Jre(this,e,u(t,42))},s.lk=function(e,t){return zue(this,u(e,42),t)},s.pi=function(e){return u(u(this.c,69).pi(e),133)},s.Zh=function(){return u(this.c,69).Zh()},s.$h=function(){return u(this.c,69).$h()},s._h=function(e){return u(this.c,69)._h(e)},s.mk=function(e,t){return yE(this,e,t)},s.Wj=function(e){return u(this.c,76).Wj(e)},s.rj=function(){},s.fj=function(){return u(this.c,76).fj()},s.tj=function(e,t,i){var r;return r=u(is(this.b).Nh().Jh(this.b),133),r.Th(e),r.Uh(t),r.ed(i),r},s.uj=function(){return new Lq(this)},s.Wb=function(e){fT(this,e)},s.Xj=function(){u(this.c,76).Xj()},w(vt,"EcoreEMap",151),b(158,151,Vtn,Gu),s.qj=function(){var e,t,i,r,c,o;if(this.d==null){for(o=F(u1n,Xtn,63,2*this.f+1,0,1),i=this.c.Kc();i.e!=i.i.gc();)t=u(i.nj(),133),r=t.Sh(),c=(r&nt)%o.length,e=o[c],!e&&(e=o[c]=new Lq(this)),e.Fc(t);this.d=o}},w(Bn,"EAnnotationImpl/1",158),b(284,438,{105:1,92:1,90:1,147:1,191:1,56:1,108:1,472:1,49:1,97:1,150:1,284:1,114:1,115:1}),s._g=function(e,t,i){var r,c;switch(e){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),this.Ab;case 1:return this.zb;case 2:return qn(),!!(this.Bb&256);case 3:return qn(),!!(this.Bb&512);case 4:return Q(this.s);case 5:return Q(this.t);case 6:return qn(),!!this.$j();case 7:return qn(),c=this.s,c>=1;case 8:return t?qs(this):this.r;case 9:return this.q}return Cs(this,e-ee(this.zh()),On((r=u(Rn(this,16),26),r||this.zh()),e),t,i)},s.jh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),zi(this.Ab,e,i);case 9:return xD(this,i)}return c=u(On((r=u(Rn(this,16),26),r||this.zh()),t),66),c.Nj().Rj(this,Rc(this),t-ee(this.zh()),e,i)},s.lh=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.$j();case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&Ad(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Ad(this.q).i==0)}return js(this,e-ee(this.zh()),On((t=u(Rn(this,16),26),t||this.zh()),e))},s.sh=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(Be,this,0,3)),Dt(this.Ab,u(t,14));return;case 1:this.Lh(Ce(t));return;case 2:g1(this,on(sn(t)));return;case 3:p1(this,on(sn(t)));return;case 4:d1(this,u(t,19).a);return;case 5:this.ok(u(t,19).a);return;case 8:Ca(this,u(t,138));return;case 9:r=df(this,u(t,87),null),r&&r.Fi();return}Ps(this,e-ee(this.zh()),On((i=u(Rn(this,16),26),i||this.zh()),e),t)},s.zh=function(){return Sn(),nee},s.Bh=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab);return;case 1:this.Lh(null);return;case 2:g1(this,!0);return;case 3:p1(this,!0);return;case 4:d1(this,0);return;case 5:this.ok(1);return;case 8:Ca(this,null);return;case 9:i=df(this,null,null),i&&i.Fi();return}As(this,e-ee(this.zh()),On((t=u(Rn(this,16),26),t||this.zh()),e))},s.Gh=function(){qs(this),this.Bb|=1},s.Yj=function(){return qs(this)},s.Zj=function(){return this.t},s.$j=function(){var e;return e=this.t,e>1||e==-1},s.hi=function(){return(this.Bb&512)!=0},s.nk=function(e,t){return lQ(this,e,t)},s.ok=function(e){hb(this,e)},s.Ib=function(){return jY(this)},s.s=0,s.t=1,w(Bn,"ETypedElementImpl",284),b(449,284,{105:1,92:1,90:1,147:1,191:1,56:1,170:1,66:1,108:1,472:1,49:1,97:1,150:1,449:1,284:1,114:1,115:1,677:1}),s.Qg=function(e){return AFn(this,e)},s._g=function(e,t,i){var r,c;switch(e){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),this.Ab;case 1:return this.zb;case 2:return qn(),!!(this.Bb&256);case 3:return qn(),!!(this.Bb&512);case 4:return Q(this.s);case 5:return Q(this.t);case 6:return qn(),!!this.$j();case 7:return qn(),c=this.s,c>=1;case 8:return t?qs(this):this.r;case 9:return this.q;case 10:return qn(),!!(this.Bb&Eo);case 11:return qn(),!!(this.Bb&Bb);case 12:return qn(),!!(this.Bb&Ib);case 13:return this.j;case 14:return w4(this);case 15:return qn(),!!(this.Bb&mu);case 16:return qn(),!!(this.Bb&Bf);case 17:return eb(this)}return Cs(this,e-ee(this.zh()),On((r=u(Rn(this,16),26),r||this.zh()),e),t,i)},s.hh=function(e,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),Oc(this.Ab,e,i);case 17:return this.Cb&&(i=(c=this.Db>>16,c>=0?AFn(this,i):this.Cb.ih(this,-1-c,null,i))),os(this,e,17,i)}return o=u(On((r=u(Rn(this,16),26),r||this.zh()),t),66),o.Nj().Qj(this,Rc(this),t-ee(this.zh()),e,i)},s.jh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),zi(this.Ab,e,i);case 9:return xD(this,i);case 17:return os(this,null,17,i)}return c=u(On((r=u(Rn(this,16),26),r||this.zh()),t),66),c.Nj().Rj(this,Rc(this),t-ee(this.zh()),e,i)},s.lh=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.$j();case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&Ad(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Ad(this.q).i==0);case 10:return(this.Bb&Eo)==0;case 11:return(this.Bb&Bb)!=0;case 12:return(this.Bb&Ib)!=0;case 13:return this.j!=null;case 14:return w4(this)!=null;case 15:return(this.Bb&mu)!=0;case 16:return(this.Bb&Bf)!=0;case 17:return!!eb(this)}return js(this,e-ee(this.zh()),On((t=u(Rn(this,16),26),t||this.zh()),e))},s.sh=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(Be,this,0,3)),Dt(this.Ab,u(t,14));return;case 1:f$(this,Ce(t));return;case 2:g1(this,on(sn(t)));return;case 3:p1(this,on(sn(t)));return;case 4:d1(this,u(t,19).a);return;case 5:this.ok(u(t,19).a);return;case 8:Ca(this,u(t,138));return;case 9:r=df(this,u(t,87),null),r&&r.Fi();return;case 10:Y3(this,on(sn(t)));return;case 11:e4(this,on(sn(t)));return;case 12:Z3(this,on(sn(t)));return;case 13:dz(this,Ce(t));return;case 15:n4(this,on(sn(t)));return;case 16:t4(this,on(sn(t)));return}Ps(this,e-ee(this.zh()),On((i=u(Rn(this,16),26),i||this.zh()),e),t)},s.zh=function(){return Sn(),Zne},s.Bh=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab);return;case 1:I(this.Cb,88)&&yb(Ou(u(this.Cb,88)),4),Ic(this,null);return;case 2:g1(this,!0);return;case 3:p1(this,!0);return;case 4:d1(this,0);return;case 5:this.ok(1);return;case 8:Ca(this,null);return;case 9:i=df(this,null,null),i&&i.Fi();return;case 10:Y3(this,!0);return;case 11:e4(this,!1);return;case 12:Z3(this,!1);return;case 13:this.i=null,nT(this,null);return;case 15:n4(this,!1);return;case 16:t4(this,!1);return}As(this,e-ee(this.zh()),On((t=u(Rn(this,16),26),t||this.zh()),e))},s.Gh=function(){v3(Er((gu(),xi),this)),qs(this),this.Bb|=1},s.Gj=function(){return this.f},s.zj=function(){return w4(this)},s.Hj=function(){return eb(this)},s.Lj=function(){return null},s.pk=function(){return this.k},s.aj=function(){return this.n},s.Mj=function(){return QT(this)},s.Nj=function(){var e,t,i,r,c,o,f,h,l;return this.p||(i=eb(this),(i.i==null&&Nf(i),i.i).length,r=this.Lj(),r&&ee(eb(r)),c=qs(this),f=c.Bj(),e=f?f.i&1?f==Ku?oi:f==be?Wi:f==dw?U4:f==Ei?Ai:f==Yl?a0:f==Wg?d0:f==yu?op:bm:f:null,t=w4(this),h=c.zj(),Vge(this),this.Bb&Bf&&((o=EJ((gu(),xi),i))&&o!=this||(o=A2(Er(xi,this))))?this.p=new $kn(this,o):this.$j()?this.rk()?r?this.Bb&mu?e?this.sk()?this.p=new ha(47,e,this,r):this.p=new ha(5,e,this,r):this.sk()?this.p=new da(46,this,r):this.p=new da(4,this,r):e?this.sk()?this.p=new ha(49,e,this,r):this.p=new ha(7,e,this,r):this.sk()?this.p=new da(48,this,r):this.p=new da(6,this,r):this.Bb&mu?e?e==Ha?this.p=new s1(50,xne,this):this.sk()?this.p=new s1(43,e,this):this.p=new s1(1,e,this):this.sk()?this.p=new f1(42,this):this.p=new f1(0,this):e?e==Ha?this.p=new s1(41,xne,this):this.sk()?this.p=new s1(45,e,this):this.p=new s1(3,e,this):this.sk()?this.p=new f1(44,this):this.p=new f1(2,this):I(c,148)?e==rI?this.p=new f1(40,this):this.Bb&512?this.Bb&mu?e?this.p=new s1(9,e,this):this.p=new f1(8,this):e?this.p=new s1(11,e,this):this.p=new f1(10,this):this.Bb&mu?e?this.p=new s1(13,e,this):this.p=new f1(12,this):e?this.p=new s1(15,e,this):this.p=new f1(14,this):r?(l=r.t,l>1||l==-1?this.sk()?this.Bb&mu?e?this.p=new ha(25,e,this,r):this.p=new da(24,this,r):e?this.p=new ha(27,e,this,r):this.p=new da(26,this,r):this.Bb&mu?e?this.p=new ha(29,e,this,r):this.p=new da(28,this,r):e?this.p=new ha(31,e,this,r):this.p=new da(30,this,r):this.sk()?this.Bb&mu?e?this.p=new ha(33,e,this,r):this.p=new da(32,this,r):e?this.p=new ha(35,e,this,r):this.p=new da(34,this,r):this.Bb&mu?e?this.p=new ha(37,e,this,r):this.p=new da(36,this,r):e?this.p=new ha(39,e,this,r):this.p=new da(38,this,r)):this.sk()?this.Bb&mu?e?this.p=new s1(17,e,this):this.p=new f1(16,this):e?this.p=new s1(19,e,this):this.p=new f1(18,this):this.Bb&mu?e?this.p=new s1(21,e,this):this.p=new f1(20,this):e?this.p=new s1(23,e,this):this.p=new f1(22,this):this.qk()?this.sk()?this.p=new kEn(u(c,26),this,r):this.p=new QW(u(c,26),this,r):I(c,148)?e==rI?this.p=new f1(40,this):this.Bb&mu?e?this.p=new vCn(t,h,this,(LF(),f==be?E1n:f==Ku?v1n:f==Yl?C1n:f==dw?j1n:f==Ei?y1n:f==Wg?T1n:f==yu?m1n:f==Ls?k1n:vH)):this.p=new ITn(u(c,148),t,h,this):e?this.p=new pCn(t,h,this,(LF(),f==be?E1n:f==Ku?v1n:f==Yl?C1n:f==dw?j1n:f==Ei?y1n:f==Wg?T1n:f==yu?m1n:f==Ls?k1n:vH)):this.p=new PTn(u(c,148),t,h,this):this.rk()?r?this.Bb&mu?this.sk()?this.p=new jEn(u(c,26),this,r):this.p=new KU(u(c,26),this,r):this.sk()?this.p=new yEn(u(c,26),this,r):this.p=new lD(u(c,26),this,r):this.Bb&mu?this.sk()?this.p=new pjn(u(c,26),this):this.p=new eU(u(c,26),this):this.sk()?this.p=new gjn(u(c,26),this):this.p=new JO(u(c,26),this):this.sk()?r?this.Bb&mu?this.p=new EEn(u(c,26),this,r):this.p=new RU(u(c,26),this,r):this.Bb&mu?this.p=new vjn(u(c,26),this):this.p=new tU(u(c,26),this):r?this.Bb&mu?this.p=new CEn(u(c,26),this,r):this.p=new _U(u(c,26),this,r):this.Bb&mu?this.p=new mjn(u(c,26),this):this.p=new FE(u(c,26),this)),this.p},s.Ij=function(){return(this.Bb&Eo)!=0},s.qk=function(){return!1},s.rk=function(){return!1},s.Jj=function(){return(this.Bb&Bf)!=0},s.Oj=function(){return R$(this)},s.sk=function(){return!1},s.Kj=function(){return(this.Bb&mu)!=0},s.tk=function(e){this.k=e},s.Lh=function(e){f$(this,e)},s.Ib=function(){return bM(this)},s.e=!1,s.n=0,w(Bn,"EStructuralFeatureImpl",449),b(322,449,{105:1,92:1,90:1,34:1,147:1,191:1,56:1,170:1,66:1,108:1,472:1,49:1,97:1,322:1,150:1,449:1,284:1,114:1,115:1,677:1},BI),s._g=function(e,t,i){var r,c;switch(e){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),this.Ab;case 1:return this.zb;case 2:return qn(),!!(this.Bb&256);case 3:return qn(),!!(this.Bb&512);case 4:return Q(this.s);case 5:return Q(this.t);case 6:return qn(),!!vY(this);case 7:return qn(),c=this.s,c>=1;case 8:return t?qs(this):this.r;case 9:return this.q;case 10:return qn(),!!(this.Bb&Eo);case 11:return qn(),!!(this.Bb&Bb);case 12:return qn(),!!(this.Bb&Ib);case 13:return this.j;case 14:return w4(this);case 15:return qn(),!!(this.Bb&mu);case 16:return qn(),!!(this.Bb&Bf);case 17:return eb(this);case 18:return qn(),!!(this.Bb&uc);case 19:return t?iF(this):ISn(this)}return Cs(this,e-ee((Sn(),hw)),On((r=u(Rn(this,16),26),r||hw),e),t,i)},s.lh=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 vY(this);case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&Ad(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Ad(this.q).i==0);case 10:return(this.Bb&Eo)==0;case 11:return(this.Bb&Bb)!=0;case 12:return(this.Bb&Ib)!=0;case 13:return this.j!=null;case 14:return w4(this)!=null;case 15:return(this.Bb&mu)!=0;case 16:return(this.Bb&Bf)!=0;case 17:return!!eb(this);case 18:return(this.Bb&uc)!=0;case 19:return!!ISn(this)}return js(this,e-ee((Sn(),hw)),On((t=u(Rn(this,16),26),t||hw),e))},s.sh=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(Be,this,0,3)),Dt(this.Ab,u(t,14));return;case 1:f$(this,Ce(t));return;case 2:g1(this,on(sn(t)));return;case 3:p1(this,on(sn(t)));return;case 4:d1(this,u(t,19).a);return;case 5:o8n(this,u(t,19).a);return;case 8:Ca(this,u(t,138));return;case 9:r=df(this,u(t,87),null),r&&r.Fi();return;case 10:Y3(this,on(sn(t)));return;case 11:e4(this,on(sn(t)));return;case 12:Z3(this,on(sn(t)));return;case 13:dz(this,Ce(t));return;case 15:n4(this,on(sn(t)));return;case 16:t4(this,on(sn(t)));return;case 18:SF(this,on(sn(t)));return}Ps(this,e-ee((Sn(),hw)),On((i=u(Rn(this,16),26),i||hw),e),t)},s.zh=function(){return Sn(),hw},s.Bh=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab);return;case 1:I(this.Cb,88)&&yb(Ou(u(this.Cb,88)),4),Ic(this,null);return;case 2:g1(this,!0);return;case 3:p1(this,!0);return;case 4:d1(this,0);return;case 5:this.b=0,hb(this,1);return;case 8:Ca(this,null);return;case 9:i=df(this,null,null),i&&i.Fi();return;case 10:Y3(this,!0);return;case 11:e4(this,!1);return;case 12:Z3(this,!1);return;case 13:this.i=null,nT(this,null);return;case 15:n4(this,!1);return;case 16:t4(this,!1);return;case 18:SF(this,!1);return}As(this,e-ee((Sn(),hw)),On((t=u(Rn(this,16),26),t||hw),e))},s.Gh=function(){iF(this),v3(Er((gu(),xi),this)),qs(this),this.Bb|=1},s.$j=function(){return vY(this)},s.nk=function(e,t){return this.b=0,this.a=null,lQ(this,e,t)},s.ok=function(e){o8n(this,e)},s.Ib=function(){var e;return this.Db&64?bM(this):(e=new Bs(bM(this)),e.a+=" (iD: ",r1(e,(this.Bb&uc)!=0),e.a+=")",e.a)},s.b=0,w(Bn,"EAttributeImpl",322),b(351,438,{105:1,92:1,90:1,138:1,147:1,191:1,56:1,108:1,49:1,97:1,351:1,150:1,114:1,115:1,676:1}),s.uk=function(e){return e.Tg()==this},s.Qg=function(e){return ox(this,e)},s.Rg=function(e,t){this.w=null,this.Db=t<<16|this.Db&255,this.Cb=e},s._g=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return Qd(this);case 4:return this.zj();case 5:return this.F;case 6:return t?is(this):y3(this);case 7:return!this.A&&(this.A=new lu(zc,this,7)),this.A}return Cs(this,e-ee(this.zh()),On((r=u(Rn(this,16),26),r||this.zh()),e),t,i)},s.hh=function(e,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),Oc(this.Ab,e,i);case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?ox(this,i):this.Cb.ih(this,-1-c,null,i))),os(this,e,6,i)}return o=u(On((r=u(Rn(this,16),26),r||this.zh()),t),66),o.Nj().Qj(this,Rc(this),t-ee(this.zh()),e,i)},s.jh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),zi(this.Ab,e,i);case 6:return os(this,null,6,i);case 7:return!this.A&&(this.A=new lu(zc,this,7)),zi(this.A,e,i)}return c=u(On((r=u(Rn(this,16),26),r||this.zh()),t),66),c.Nj().Rj(this,Rc(this),t-ee(this.zh()),e,i)},s.lh=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!!Qd(this);case 4:return this.zj()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!y3(this);case 7:return!!this.A&&this.A.i!=0}return js(this,e-ee(this.zh()),On((t=u(Rn(this,16),26),t||this.zh()),e))},s.sh=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(Be,this,0,3)),Dt(this.Ab,u(t,14));return;case 1:bC(this,Ce(t));return;case 2:BO(this,Ce(t));return;case 5:y4(this,Ce(t));return;case 7:!this.A&&(this.A=new lu(zc,this,7)),de(this.A),!this.A&&(this.A=new lu(zc,this,7)),Dt(this.A,u(t,14));return}Ps(this,e-ee(this.zh()),On((i=u(Rn(this,16),26),i||this.zh()),e),t)},s.zh=function(){return Sn(),Wne},s.Bh=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab);return;case 1:I(this.Cb,179)&&(u(this.Cb,179).tb=null),Ic(this,null);return;case 2:X3(this,null),L3(this,this.D);return;case 5:y4(this,null);return;case 7:!this.A&&(this.A=new lu(zc,this,7)),de(this.A);return}As(this,e-ee(this.zh()),On((t=u(Rn(this,16),26),t||this.zh()),e))},s.yj=function(){var e;return this.G==-1&&(this.G=(e=is(this),e?v1(e.Mh(),this):-1)),this.G},s.zj=function(){return null},s.Aj=function(){return is(this)},s.vk=function(){return this.v},s.Bj=function(){return Qd(this)},s.Cj=function(){return this.D!=null?this.D:this.B},s.Dj=function(){return this.F},s.wj=function(e){return nL(this,e)},s.wk=function(e){this.v=e},s.xk=function(e){uOn(this,e)},s.yk=function(e){this.C=e},s.Lh=function(e){bC(this,e)},s.Ib=function(){return MT(this)},s.C=null,s.D=null,s.G=-1,w(Bn,"EClassifierImpl",351),b(88,351,{105:1,92:1,90:1,26:1,138:1,147:1,191:1,56:1,108:1,49:1,97:1,88:1,351:1,150:1,473:1,114:1,115:1,676:1},tq),s.uk=function(e){return Oue(this,e.Tg())},s._g=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return Qd(this);case 4:return null;case 5:return this.F;case 6:return t?is(this):y3(this);case 7:return!this.A&&(this.A=new lu(zc,this,7)),this.A;case 8:return qn(),!!(this.Bb&256);case 9:return qn(),!!(this.Bb&512);case 10:return Ar(this);case 11:return!this.q&&(this.q=new V(co,this,11,10)),this.q;case 12:return ig(this);case 13:return I6(this);case 14:return I6(this),this.r;case 15:return ig(this),this.k;case 16:return oY(this);case 17:return cL(this);case 18:return Nf(this);case 19:return sM(this);case 20:return ig(this),this.o;case 21:return!this.s&&(this.s=new V(ou,this,21,17)),this.s;case 22:return bc(this);case 23:return Gx(this)}return Cs(this,e-ee((Sn(),Xl)),On((r=u(Rn(this,16),26),r||Xl),e),t,i)},s.hh=function(e,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),Oc(this.Ab,e,i);case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?ox(this,i):this.Cb.ih(this,-1-c,null,i))),os(this,e,6,i);case 11:return!this.q&&(this.q=new V(co,this,11,10)),Oc(this.q,e,i);case 21:return!this.s&&(this.s=new V(ou,this,21,17)),Oc(this.s,e,i)}return o=u(On((r=u(Rn(this,16),26),r||(Sn(),Xl)),t),66),o.Nj().Qj(this,Rc(this),t-ee((Sn(),Xl)),e,i)},s.jh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),zi(this.Ab,e,i);case 6:return os(this,null,6,i);case 7:return!this.A&&(this.A=new lu(zc,this,7)),zi(this.A,e,i);case 11:return!this.q&&(this.q=new V(co,this,11,10)),zi(this.q,e,i);case 21:return!this.s&&(this.s=new V(ou,this,21,17)),zi(this.s,e,i);case 22:return zi(bc(this),e,i)}return c=u(On((r=u(Rn(this,16),26),r||(Sn(),Xl)),t),66),c.Nj().Rj(this,Rc(this),t-ee((Sn(),Xl)),e,i)},s.lh=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!!Qd(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!y3(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&&bc(this.u.a).i!=0&&!(this.n&&JF(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return ig(this).i!=0;case 13:return I6(this).i!=0;case 14:return I6(this),this.r.i!=0;case 15:return ig(this),this.k.i!=0;case 16:return oY(this).i!=0;case 17:return cL(this).i!=0;case 18:return Nf(this).i!=0;case 19:return sM(this).i!=0;case 20:return ig(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&JF(this.n);case 23:return Gx(this).i!=0}return js(this,e-ee((Sn(),Xl)),On((t=u(Rn(this,16),26),t||Xl),e))},s.oh=function(e){var t;return t=this.i==null||this.q&&this.q.i!=0?null:R7(this,e),t||RZ(this,e)},s.sh=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(Be,this,0,3)),Dt(this.Ab,u(t,14));return;case 1:bC(this,Ce(t));return;case 2:BO(this,Ce(t));return;case 5:y4(this,Ce(t));return;case 7:!this.A&&(this.A=new lu(zc,this,7)),de(this.A),!this.A&&(this.A=new lu(zc,this,7)),Dt(this.A,u(t,14));return;case 8:dQ(this,on(sn(t)));return;case 9:bQ(this,on(sn(t)));return;case 10:$6(Ar(this)),Dt(Ar(this),u(t,14));return;case 11:!this.q&&(this.q=new V(co,this,11,10)),de(this.q),!this.q&&(this.q=new V(co,this,11,10)),Dt(this.q,u(t,14));return;case 21:!this.s&&(this.s=new V(ou,this,21,17)),de(this.s),!this.s&&(this.s=new V(ou,this,21,17)),Dt(this.s,u(t,14));return;case 22:de(bc(this)),Dt(bc(this),u(t,14));return}Ps(this,e-ee((Sn(),Xl)),On((i=u(Rn(this,16),26),i||Xl),e),t)},s.zh=function(){return Sn(),Xl},s.Bh=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab);return;case 1:I(this.Cb,179)&&(u(this.Cb,179).tb=null),Ic(this,null);return;case 2:X3(this,null),L3(this,this.D);return;case 5:y4(this,null);return;case 7:!this.A&&(this.A=new lu(zc,this,7)),de(this.A);return;case 8:dQ(this,!1);return;case 9:bQ(this,!1);return;case 10:this.u&&$6(this.u);return;case 11:!this.q&&(this.q=new V(co,this,11,10)),de(this.q);return;case 21:!this.s&&(this.s=new V(ou,this,21,17)),de(this.s);return;case 22:this.n&&de(this.n);return}As(this,e-ee((Sn(),Xl)),On((t=u(Rn(this,16),26),t||Xl),e))},s.Gh=function(){var e,t;if(ig(this),I6(this),oY(this),cL(this),Nf(this),sM(this),Gx(this),U5(Xoe(Ou(this))),this.s)for(e=0,t=this.s.i;e=0;--t)D(this,t);return LQ(this,e)},s.Xj=function(){de(this)},s.oi=function(e,t){return PIn(this,e,t)},w(vt,"EcoreEList",622),b(496,622,Br,v8),s.ai=function(){return!1},s.aj=function(){return this.c},s.bj=function(){return!1},s.Fk=function(){return!0},s.hi=function(){return!0},s.li=function(e,t){return t},s.ni=function(){return!1},s.c=0,w(vt,"EObjectEList",496),b(85,496,Br,Yt),s.bj=function(){return!0},s.Dk=function(){return!1},s.rk=function(){return!0},w(vt,"EObjectContainmentEList",85),b(545,85,Br,hE),s.ci=function(){this.b=!0},s.fj=function(){return this.b},s.Xj=function(){var e;de(this),qu(this.e)?(e=this.b,this.b=!1,et(this.e,new vo(this.e,2,this.c,e,!1))):this.b=!1},s.b=!1,w(vt,"EObjectContainmentEList/Unsettable",545),b(1140,545,Br,wCn),s.ii=function(e,t){var i,r;return i=u(o6(this,e,t),87),qu(this.e)&&Gp(this,new R8(this.a,7,(Sn(),Xne),Q(t),(r=i.c,I(r,88)?u(r,26):so),e)),i},s.jj=function(e,t){return L2e(this,u(e,87),t)},s.kj=function(e,t){return x2e(this,u(e,87),t)},s.lj=function(e,t,i){return N4e(this,u(e,87),u(t,87),i)},s.Zi=function(e,t,i,r,c){switch(e){case 3:return _5(this,e,t,i,r,this.i>1);case 5:return _5(this,e,t,i,r,this.i-u(i,15).gc()>0);default:return new Lh(this.e,e,this.c,t,i,r,!0)}},s.ij=function(){return!0},s.fj=function(){return JF(this)},s.Xj=function(){de(this)},w(Bn,"EClassImpl/1",1140),b(1154,1153,Wtn),s.ui=function(e){var t,i,r,c,o,f,h;if(i=e.xi(),i!=8){if(r=mpe(e),r==0)switch(i){case 1:case 9:{h=e.Bi(),h!=null&&(t=Ou(u(h,473)),!t.c&&(t.c=new Bp),BC(t.c,e.Ai())),f=e.zi(),f!=null&&(c=u(f,473),c.Bb&1||(t=Ou(c),!t.c&&(t.c=new Bp),me(t.c,u(e.Ai(),26))));break}case 3:{f=e.zi(),f!=null&&(c=u(f,473),c.Bb&1||(t=Ou(c),!t.c&&(t.c=new Bp),me(t.c,u(e.Ai(),26))));break}case 5:{if(f=e.zi(),f!=null)for(o=u(f,14).Kc();o.Ob();)c=u(o.Pb(),473),c.Bb&1||(t=Ou(c),!t.c&&(t.c=new Bp),me(t.c,u(e.Ai(),26)));break}case 4:{h=e.Bi(),h!=null&&(c=u(h,473),c.Bb&1||(t=Ou(c),!t.c&&(t.c=new Bp),BC(t.c,e.Ai())));break}case 6:{if(h=e.Bi(),h!=null)for(o=u(h,14).Kc();o.Ob();)c=u(o.Pb(),473),c.Bb&1||(t=Ou(c),!t.c&&(t.c=new Bp),BC(t.c,e.Ai()));break}}this.Hk(r)}},s.Hk=function(e){bBn(this,e)},s.b=63,w(Bn,"ESuperAdapter",1154),b(1155,1154,Wtn,Amn),s.Hk=function(e){yb(this,e)},w(Bn,"EClassImpl/10",1155),b(1144,696,Br),s.Vh=function(e,t){return mx(this,e,t)},s.Wh=function(e){return hFn(this,e)},s.Xh=function(e,t){a7(this,e,t)},s.Yh=function(e){F8(this,e)},s.pi=function(e){return zX(this,e)},s.mi=function(e,t){return B$(this,e,t)},s.lk=function(e,t){throw T(new ye)},s.Zh=function(){return new w2(this)},s.$h=function(){return new u8(this)},s._h=function(e){return J8(this,e)},s.mk=function(e,t){throw T(new ye)},s.Wj=function(e){return this},s.fj=function(){return this.i!=0},s.Wb=function(e){throw T(new ye)},s.Xj=function(){throw T(new ye)},w(vt,"EcoreEList/UnmodifiableEList",1144),b(319,1144,Br,Ew),s.ni=function(){return!1},w(vt,"EcoreEList/UnmodifiableEList/FastCompare",319),b(1147,319,Br,YOn),s.Xc=function(e){var t,i,r;if(I(e,170)&&(t=u(e,170),i=t.aj(),i!=-1)){for(r=this.i;i4)if(this.wj(e)){if(this.rk()){if(r=u(e,49),i=r.Ug(),h=i==this.b&&(this.Dk()?r.Og(r.Vg(),u(On(Qc(this.b),this.aj()).Yj(),26).Bj())==ir(u(On(Qc(this.b),this.aj()),18)).n:-1-r.Vg()==this.aj()),this.Ek()&&!h&&!i&&r.Zg()){for(c=0;c1||r==-1)):!1},s.Dk=function(){var e,t,i;return t=On(Qc(this.b),this.aj()),I(t,99)?(e=u(t,18),i=ir(e),!!i):!1},s.Ek=function(){var e,t;return t=On(Qc(this.b),this.aj()),I(t,99)?(e=u(t,18),(e.Bb&Yi)!=0):!1},s.Xc=function(e){var t,i,r,c;if(r=this.Qi(e),r>=0)return r;if(this.Fk()){for(i=0,c=this.Vi();i=0;--e)X7(this,e,this.Oi(e));return this.Wi()},s.Qc=function(e){var t;if(this.Ek())for(t=this.Vi()-1;t>=0;--t)X7(this,t,this.Oi(t));return this.Xi(e)},s.Xj=function(){$6(this)},s.oi=function(e,t){return dPn(this,e,t)},w(vt,"DelegatingEcoreEList",742),b(1150,742,Jtn,Ijn),s.Hi=function(e,t){cue(this,e,u(t,26))},s.Ii=function(e){Zre(this,u(e,26))},s.Oi=function(e){var t,i;return t=u(D(bc(this.a),e),87),i=t.c,I(i,88)?u(i,26):(Sn(),so)},s.Ti=function(e){var t,i;return t=u(Eb(bc(this.a),e),87),i=t.c,I(i,88)?u(i,26):(Sn(),so)},s.Ui=function(e,t){return u3e(this,e,u(t,26))},s.ai=function(){return!1},s.Zi=function(e,t,i,r,c){return null},s.Ji=function(){return new Pmn(this)},s.Ki=function(){de(bc(this.a))},s.Li=function(e){return qDn(this,e)},s.Mi=function(e){var t,i;for(i=e.Kc();i.Ob();)if(t=i.Pb(),!qDn(this,t))return!1;return!0},s.Ni=function(e){var t,i,r;if(I(e,15)&&(r=u(e,15),r.gc()==bc(this.a).i)){for(t=r.Kc(),i=new ie(this);t.Ob();)if(B(t.Pb())!==B(oe(i)))return!1;return!0}return!1},s.Pi=function(){var e,t,i,r,c;for(i=1,t=new ie(bc(this.a));t.e!=t.i.gc();)e=u(oe(t),87),r=(c=e.c,I(c,88)?u(c,26):(Sn(),so)),i=31*i+(r?md(r):0);return i},s.Qi=function(e){var t,i,r,c;for(r=0,i=new ie(bc(this.a));i.e!=i.i.gc();){if(t=u(oe(i),87),B(e)===B((c=t.c,I(c,88)?u(c,26):(Sn(),so))))return r;++r}return-1},s.Ri=function(){return bc(this.a).i==0},s.Si=function(){return null},s.Vi=function(){return bc(this.a).i},s.Wi=function(){var e,t,i,r,c,o;for(o=bc(this.a).i,c=F(Zn,rn,1,o,5,1),i=0,t=new ie(bc(this.a));t.e!=t.i.gc();)e=u(oe(t),87),c[i++]=(r=e.c,I(r,88)?u(r,26):(Sn(),so));return c},s.Xi=function(e){var t,i,r,c,o,f,h;for(h=bc(this.a).i,e.lengthh&&St(e,h,null),r=0,i=new ie(bc(this.a));i.e!=i.i.gc();)t=u(oe(i),87),o=(f=t.c,I(f,88)?u(f,26):(Sn(),so)),St(e,r++,o);return e},s.Yi=function(){var e,t,i,r,c;for(c=new i1,c.a+="[",e=bc(this.a),t=0,r=bc(this.a).i;t>16,c>=0?ox(this,i):this.Cb.ih(this,-1-c,null,i))),os(this,e,6,i);case 9:return!this.a&&(this.a=new V(e1,this,9,5)),Oc(this.a,e,i)}return o=u(On((r=u(Rn(this,16),26),r||(Sn(),Vl)),t),66),o.Nj().Qj(this,Rc(this),t-ee((Sn(),Vl)),e,i)},s.jh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),zi(this.Ab,e,i);case 6:return os(this,null,6,i);case 7:return!this.A&&(this.A=new lu(zc,this,7)),zi(this.A,e,i);case 9:return!this.a&&(this.a=new V(e1,this,9,5)),zi(this.a,e,i)}return c=u(On((r=u(Rn(this,16),26),r||(Sn(),Vl)),t),66),c.Nj().Rj(this,Rc(this),t-ee((Sn(),Vl)),e,i)},s.lh=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!!Qd(this);case 4:return!!ZV(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!y3(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 js(this,e-ee((Sn(),Vl)),On((t=u(Rn(this,16),26),t||Vl),e))},s.sh=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(Be,this,0,3)),Dt(this.Ab,u(t,14));return;case 1:bC(this,Ce(t));return;case 2:BO(this,Ce(t));return;case 5:y4(this,Ce(t));return;case 7:!this.A&&(this.A=new lu(zc,this,7)),de(this.A),!this.A&&(this.A=new lu(zc,this,7)),Dt(this.A,u(t,14));return;case 8:kT(this,on(sn(t)));return;case 9:!this.a&&(this.a=new V(e1,this,9,5)),de(this.a),!this.a&&(this.a=new V(e1,this,9,5)),Dt(this.a,u(t,14));return}Ps(this,e-ee((Sn(),Vl)),On((i=u(Rn(this,16),26),i||Vl),e),t)},s.zh=function(){return Sn(),Vl},s.Bh=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab);return;case 1:I(this.Cb,179)&&(u(this.Cb,179).tb=null),Ic(this,null);return;case 2:X3(this,null),L3(this,this.D);return;case 5:y4(this,null);return;case 7:!this.A&&(this.A=new lu(zc,this,7)),de(this.A);return;case 8:kT(this,!0);return;case 9:!this.a&&(this.a=new V(e1,this,9,5)),de(this.a);return}As(this,e-ee((Sn(),Vl)),On((t=u(Rn(this,16),26),t||Vl),e))},s.Gh=function(){var e,t;if(this.a)for(e=0,t=this.a.i;e>16==5?u(this.Cb,671):null}return Cs(this,e-ee((Sn(),L1)),On((r=u(Rn(this,16),26),r||L1),e),t,i)},s.hh=function(e,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),Oc(this.Ab,e,i);case 5:return this.Cb&&(i=(c=this.Db>>16,c>=0?xFn(this,i):this.Cb.ih(this,-1-c,null,i))),os(this,e,5,i)}return o=u(On((r=u(Rn(this,16),26),r||(Sn(),L1)),t),66),o.Nj().Qj(this,Rc(this),t-ee((Sn(),L1)),e,i)},s.jh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),zi(this.Ab,e,i);case 5:return os(this,null,5,i)}return c=u(On((r=u(Rn(this,16),26),r||(Sn(),L1)),t),66),c.Nj().Rj(this,Rc(this),t-ee((Sn(),L1)),e,i)},s.lh=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,671))}return js(this,e-ee((Sn(),L1)),On((t=u(Rn(this,16),26),t||L1),e))},s.sh=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(Be,this,0,3)),Dt(this.Ab,u(t,14));return;case 1:Ic(this,Ce(t));return;case 2:G$(this,u(t,19).a);return;case 3:ILn(this,u(t,1940));return;case 4:U$(this,Ce(t));return}Ps(this,e-ee((Sn(),L1)),On((i=u(Rn(this,16),26),i||L1),e),t)},s.zh=function(){return Sn(),L1},s.Bh=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab);return;case 1:Ic(this,null);return;case 2:G$(this,0);return;case 3:ILn(this,null);return;case 4:U$(this,null);return}As(this,e-ee((Sn(),L1)),On((t=u(Rn(this,16),26),t||L1),e))},s.Ib=function(){var e;return e=this.c,e??this.zb},s.b=null,s.c=null,s.d=0,w(Bn,"EEnumLiteralImpl",573);var lMe=Ct(Bn,"EFactoryImpl/InternalEDateTimeFormat");b(489,1,{2015:1},D9),w(Bn,"EFactoryImpl/1ClientInternalEDateTimeFormat",489),b(241,115,{105:1,92:1,90:1,87:1,56:1,108:1,49:1,97:1,241:1,114:1,115:1},ud),s.Sg=function(e,t,i){var r;return i=os(this,e,t,i),this.e&&I(e,170)&&(r=uM(this,this.e),r!=this.c&&(i=j4(this,r,i))),i},s._g=function(e,t,i){var r;switch(e){case 0:return this.f;case 1:return!this.d&&(this.d=new Yt(ar,this,1)),this.d;case 2:return t?pM(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return t?nx(this):this.a}return Cs(this,e-ee((Sn(),I0)),On((r=u(Rn(this,16),26),r||I0),e),t,i)},s.jh=function(e,t,i){var r,c;switch(t){case 0:return $Dn(this,null,i);case 1:return!this.d&&(this.d=new Yt(ar,this,1)),zi(this.d,e,i);case 3:return DDn(this,null,i)}return c=u(On((r=u(Rn(this,16),26),r||(Sn(),I0)),t),66),c.Nj().Rj(this,Rc(this),t-ee((Sn(),I0)),e,i)},s.lh=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 js(this,e-ee((Sn(),I0)),On((t=u(Rn(this,16),26),t||I0),e))},s.sh=function(e,t){var i;switch(e){case 0:ZFn(this,u(t,87));return;case 1:!this.d&&(this.d=new Yt(ar,this,1)),de(this.d),!this.d&&(this.d=new Yt(ar,this,1)),Dt(this.d,u(t,14));return;case 3:DJ(this,u(t,87));return;case 4:VJ(this,u(t,836));return;case 5:O3(this,u(t,138));return}Ps(this,e-ee((Sn(),I0)),On((i=u(Rn(this,16),26),i||I0),e),t)},s.zh=function(){return Sn(),I0},s.Bh=function(e){var t;switch(e){case 0:ZFn(this,null);return;case 1:!this.d&&(this.d=new Yt(ar,this,1)),de(this.d);return;case 3:DJ(this,null);return;case 4:VJ(this,null);return;case 5:O3(this,null);return}As(this,e-ee((Sn(),I0)),On((t=u(Rn(this,16),26),t||I0),e))},s.Ib=function(){var e;return e=new Yu(yo(this)),e.a+=" (expression: ",fL(this,e),e.a+=")",e.a};var p1n;w(Bn,"EGenericTypeImpl",241),b(1969,1964,CA),s.Xh=function(e,t){Ajn(this,e,t)},s.lk=function(e,t){return Ajn(this,this.gc(),e),t},s.pi=function(e){return qo(this.Gi(),e)},s.Zh=function(){return this.$h()},s.Gi=function(){return new $mn(this)},s.$h=function(){return this._h(0)},s._h=function(e){return this.Gi().Zc(e)},s.mk=function(e,t){return db(this,e,!0),t},s.ii=function(e,t){var i,r;return r=hx(this,t),i=this.Zc(e),i.Rb(r),r},s.ji=function(e,t){var i;db(this,t,!0),i=this.Zc(e),i.Rb(t)},w(vt,"AbstractSequentialInternalEList",1969),b(486,1969,CA,c8),s.pi=function(e){return qo(this.Gi(),e)},s.Zh=function(){return this.b==null?(c1(),c1(),Ly):this.Jk()},s.Gi=function(){return new Ykn(this.a,this.b)},s.$h=function(){return this.b==null?(c1(),c1(),Ly):this.Jk()},s._h=function(e){var t,i;if(this.b==null){if(e<0||e>1)throw T(new mr(rm+e+", size=0"));return c1(),c1(),Ly}for(i=this.Jk(),t=0;t0;)if(t=this.c[--this.d],(!this.e||t.Gj()!=Av||t.aj()!=0)&&(!this.Mk()||this.b.mh(t))){if(o=this.b.bh(t,this.Lk()),this.f=(er(),u(t,66).Oj()),this.f||t.$j()){if(this.Lk()?(r=u(o,15),this.k=r):(r=u(o,69),this.k=this.j=r),I(this.k,54)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j._h(this.k.gc()):this.k.Zc(this.k.gc()),this.p?zxn(this,this.p):iLn(this))return c=this.p?this.p.Ub():this.j?this.j.pi(--this.n):this.k.Xb(--this.n),this.f?(e=u(c,72),e.ak(),i=e.dd(),this.i=i):(i=c,this.i=i),this.g=-3,!0}else if(o!=null)return this.k=null,this.p=null,i=o,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.pi(--this.n):this.k.Xb(--this.n),this.f?(e=u(c,72),e.ak(),i=e.dd(),this.i=i):(i=c,this.i=i),this.g=-3,!0}},s.Pb=function(){return hT(this)},s.Tb=function(){return this.a},s.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 ic)},s.Vb=function(){return this.a-1},s.Qb=function(){throw T(new ye)},s.Lk=function(){return!1},s.Wb=function(e){throw T(new ye)},s.Mk=function(){return!0},s.a=0,s.d=0,s.f=!1,s.g=0,s.n=0,s.o=0;var Ly;w(vt,"EContentsEList/FeatureIteratorImpl",279),b(697,279,TA,nU),s.Lk=function(){return!0},w(vt,"EContentsEList/ResolvingFeatureIteratorImpl",697),b(1157,697,TA,wjn),s.Mk=function(){return!1},w(Bn,"ENamedElementImpl/1/1",1157),b(1158,279,TA,bjn),s.Mk=function(){return!1},w(Bn,"ENamedElementImpl/1/2",1158),b(36,143,jk,rb,p$,gi,D$,Lh,vo,rV,qMn,cV,GMn,PX,zMn,oV,UMn,IX,WMn,uV,XMn,$5,R8,VD,sV,VMn,OX,QMn),s._i=function(){return HX(this)},s.gj=function(){var e;return e=HX(this),e?e.zj():null},s.yi=function(e){return this.b==-1&&this.a&&(this.b=this.c.Xg(this.a.aj(),this.a.Gj())),this.c.Og(this.b,e)},s.Ai=function(){return this.c},s.hj=function(){var e;return e=HX(this),e?e.Kj():!1},s.b=-1,w(Bn,"ENotificationImpl",36),b(399,284,{105:1,92:1,90:1,147:1,191:1,56:1,59:1,108:1,472:1,49:1,97:1,150:1,399:1,284:1,114:1,115:1},RI),s.Qg=function(e){return BFn(this,e)},s._g=function(e,t,i){var r,c,o;switch(e){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),this.Ab;case 1:return this.zb;case 2:return qn(),!!(this.Bb&256);case 3:return qn(),!!(this.Bb&512);case 4:return Q(this.s);case 5:return Q(this.t);case 6:return qn(),o=this.t,o>1||o==-1;case 7:return qn(),c=this.s,c>=1;case 8:return t?qs(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?u(this.Cb,26):null;case 11:return!this.d&&(this.d=new lu(zc,this,11)),this.d;case 12:return!this.c&&(this.c=new V(P0,this,12,10)),this.c;case 13:return!this.a&&(this.a=new l8(this,this)),this.a;case 14:return Du(this)}return Cs(this,e-ee((Sn(),N1)),On((r=u(Rn(this,16),26),r||N1),e),t,i)},s.hh=function(e,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),Oc(this.Ab,e,i);case 10:return this.Cb&&(i=(c=this.Db>>16,c>=0?BFn(this,i):this.Cb.ih(this,-1-c,null,i))),os(this,e,10,i);case 12:return!this.c&&(this.c=new V(P0,this,12,10)),Oc(this.c,e,i)}return o=u(On((r=u(Rn(this,16),26),r||(Sn(),N1)),t),66),o.Nj().Qj(this,Rc(this),t-ee((Sn(),N1)),e,i)},s.jh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),zi(this.Ab,e,i);case 9:return xD(this,i);case 10:return os(this,null,10,i);case 11:return!this.d&&(this.d=new lu(zc,this,11)),zi(this.d,e,i);case 12:return!this.c&&(this.c=new V(P0,this,12,10)),zi(this.c,e,i);case 14:return zi(Du(this),e,i)}return c=u(On((r=u(Rn(this,16),26),r||(Sn(),N1)),t),66),c.Nj().Rj(this,Rc(this),t-ee((Sn(),N1)),e,i)},s.lh=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&&Ad(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Ad(this.q).i==0);case 10:return!!(this.Db>>16==10&&u(this.Cb,26));case 11:return!!this.d&&this.d.i!=0;case 12:return!!this.c&&this.c.i!=0;case 13:return!!this.a&&Du(this.a.a).i!=0&&!(this.b&&YF(this.b));case 14:return!!this.b&&YF(this.b)}return js(this,e-ee((Sn(),N1)),On((t=u(Rn(this,16),26),t||N1),e))},s.sh=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(Be,this,0,3)),Dt(this.Ab,u(t,14));return;case 1:Ic(this,Ce(t));return;case 2:g1(this,on(sn(t)));return;case 3:p1(this,on(sn(t)));return;case 4:d1(this,u(t,19).a);return;case 5:hb(this,u(t,19).a);return;case 8:Ca(this,u(t,138));return;case 9:r=df(this,u(t,87),null),r&&r.Fi();return;case 11:!this.d&&(this.d=new lu(zc,this,11)),de(this.d),!this.d&&(this.d=new lu(zc,this,11)),Dt(this.d,u(t,14));return;case 12:!this.c&&(this.c=new V(P0,this,12,10)),de(this.c),!this.c&&(this.c=new V(P0,this,12,10)),Dt(this.c,u(t,14));return;case 13:!this.a&&(this.a=new l8(this,this)),$6(this.a),!this.a&&(this.a=new l8(this,this)),Dt(this.a,u(t,14));return;case 14:de(Du(this)),Dt(Du(this),u(t,14));return}Ps(this,e-ee((Sn(),N1)),On((i=u(Rn(this,16),26),i||N1),e),t)},s.zh=function(){return Sn(),N1},s.Bh=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab);return;case 1:Ic(this,null);return;case 2:g1(this,!0);return;case 3:p1(this,!0);return;case 4:d1(this,0);return;case 5:hb(this,1);return;case 8:Ca(this,null);return;case 9:i=df(this,null,null),i&&i.Fi();return;case 11:!this.d&&(this.d=new lu(zc,this,11)),de(this.d);return;case 12:!this.c&&(this.c=new V(P0,this,12,10)),de(this.c);return;case 13:this.a&&$6(this.a);return;case 14:this.b&&de(this.b);return}As(this,e-ee((Sn(),N1)),On((t=u(Rn(this,16),26),t||N1),e))},s.Gh=function(){var e,t;if(this.c)for(e=0,t=this.c.i;eh&&St(e,h,null),r=0,i=new ie(Du(this.a));i.e!=i.i.gc();)t=u(oe(i),87),o=(f=t.c,f||(Sn(),Tf)),St(e,r++,o);return e},s.Yi=function(){var e,t,i,r,c;for(c=new i1,c.a+="[",e=Du(this.a),t=0,r=Du(this.a).i;t1);case 5:return _5(this,e,t,i,r,this.i-u(i,15).gc()>0);default:return new Lh(this.e,e,this.c,t,i,r,!0)}},s.ij=function(){return!0},s.fj=function(){return YF(this)},s.Xj=function(){de(this)},w(Bn,"EOperationImpl/2",1341),b(498,1,{1938:1,498:1},Dkn),w(Bn,"EPackageImpl/1",498),b(16,85,Br,V),s.zk=function(){return this.d},s.Ak=function(){return this.b},s.Dk=function(){return!0},s.b=0,w(vt,"EObjectContainmentWithInverseEList",16),b(353,16,Br,g2),s.Ek=function(){return!0},s.li=function(e,t){return U2(this,e,u(t,56))},w(vt,"EObjectContainmentWithInverseEList/Resolving",353),b(298,353,Br,Y0),s.ci=function(){this.a.tb=null},w(Bn,"EPackageImpl/2",298),b(1228,1,{},Jee),w(Bn,"EPackageImpl/3",1228),b(718,43,sg,tG),s._b=function(e){return ki(e)?QD(this,e):!!Sr(this.f,e)},w(Bn,"EPackageRegistryImpl",718),b(509,284,{105:1,92:1,90:1,147:1,191:1,56:1,2017:1,108:1,472:1,49:1,97:1,150:1,509:1,284:1,114:1,115:1},_I),s.Qg=function(e){return RFn(this,e)},s._g=function(e,t,i){var r,c,o;switch(e){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),this.Ab;case 1:return this.zb;case 2:return qn(),!!(this.Bb&256);case 3:return qn(),!!(this.Bb&512);case 4:return Q(this.s);case 5:return Q(this.t);case 6:return qn(),o=this.t,o>1||o==-1;case 7:return qn(),c=this.s,c>=1;case 8:return t?qs(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?u(this.Cb,59):null}return Cs(this,e-ee((Sn(),lw)),On((r=u(Rn(this,16),26),r||lw),e),t,i)},s.hh=function(e,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),Oc(this.Ab,e,i);case 10:return this.Cb&&(i=(c=this.Db>>16,c>=0?RFn(this,i):this.Cb.ih(this,-1-c,null,i))),os(this,e,10,i)}return o=u(On((r=u(Rn(this,16),26),r||(Sn(),lw)),t),66),o.Nj().Qj(this,Rc(this),t-ee((Sn(),lw)),e,i)},s.jh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),zi(this.Ab,e,i);case 9:return xD(this,i);case 10:return os(this,null,10,i)}return c=u(On((r=u(Rn(this,16),26),r||(Sn(),lw)),t),66),c.Nj().Rj(this,Rc(this),t-ee((Sn(),lw)),e,i)},s.lh=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&&Ad(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Ad(this.q).i==0);case 10:return!!(this.Db>>16==10&&u(this.Cb,59))}return js(this,e-ee((Sn(),lw)),On((t=u(Rn(this,16),26),t||lw),e))},s.zh=function(){return Sn(),lw},w(Bn,"EParameterImpl",509),b(99,449,{105:1,92:1,90:1,147:1,191:1,56:1,18:1,170:1,66:1,108:1,472:1,49:1,97:1,150:1,99:1,449:1,284:1,114:1,115:1,677:1},cU),s._g=function(e,t,i){var r,c,o,f;switch(e){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),this.Ab;case 1:return this.zb;case 2:return qn(),!!(this.Bb&256);case 3:return qn(),!!(this.Bb&512);case 4:return Q(this.s);case 5:return Q(this.t);case 6:return qn(),f=this.t,f>1||f==-1;case 7:return qn(),c=this.s,c>=1;case 8:return t?qs(this):this.r;case 9:return this.q;case 10:return qn(),!!(this.Bb&Eo);case 11:return qn(),!!(this.Bb&Bb);case 12:return qn(),!!(this.Bb&Ib);case 13:return this.j;case 14:return w4(this);case 15:return qn(),!!(this.Bb&mu);case 16:return qn(),!!(this.Bb&Bf);case 17:return eb(this);case 18:return qn(),!!(this.Bb&uc);case 19:return qn(),o=ir(this),!!(o&&o.Bb&uc);case 20:return qn(),!!(this.Bb&Yi);case 21:return t?ir(this):this.b;case 22:return t?HV(this):vSn(this);case 23:return!this.a&&(this.a=new Aw(ow,this,23)),this.a}return Cs(this,e-ee((Sn(),qg)),On((r=u(Rn(this,16),26),r||qg),e),t,i)},s.lh=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&&Ad(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Ad(this.q).i==0);case 10:return(this.Bb&Eo)==0;case 11:return(this.Bb&Bb)!=0;case 12:return(this.Bb&Ib)!=0;case 13:return this.j!=null;case 14:return w4(this)!=null;case 15:return(this.Bb&mu)!=0;case 16:return(this.Bb&Bf)!=0;case 17:return!!eb(this);case 18:return(this.Bb&uc)!=0;case 19:return r=ir(this),!!r&&(r.Bb&uc)!=0;case 20:return(this.Bb&Yi)==0;case 21:return!!this.b;case 22:return!!vSn(this);case 23:return!!this.a&&this.a.i!=0}return js(this,e-ee((Sn(),qg)),On((t=u(Rn(this,16),26),t||qg),e))},s.sh=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(Be,this,0,3)),Dt(this.Ab,u(t,14));return;case 1:f$(this,Ce(t));return;case 2:g1(this,on(sn(t)));return;case 3:p1(this,on(sn(t)));return;case 4:d1(this,u(t,19).a);return;case 5:hb(this,u(t,19).a);return;case 8:Ca(this,u(t,138));return;case 9:r=df(this,u(t,87),null),r&&r.Fi();return;case 10:Y3(this,on(sn(t)));return;case 11:e4(this,on(sn(t)));return;case 12:Z3(this,on(sn(t)));return;case 13:dz(this,Ce(t));return;case 15:n4(this,on(sn(t)));return;case 16:t4(this,on(sn(t)));return;case 18:lle(this,on(sn(t)));return;case 20:mQ(this,on(sn(t)));return;case 21:vV(this,u(t,18));return;case 23:!this.a&&(this.a=new Aw(ow,this,23)),de(this.a),!this.a&&(this.a=new Aw(ow,this,23)),Dt(this.a,u(t,14));return}Ps(this,e-ee((Sn(),qg)),On((i=u(Rn(this,16),26),i||qg),e),t)},s.zh=function(){return Sn(),qg},s.Bh=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab);return;case 1:I(this.Cb,88)&&yb(Ou(u(this.Cb,88)),4),Ic(this,null);return;case 2:g1(this,!0);return;case 3:p1(this,!0);return;case 4:d1(this,0);return;case 5:hb(this,1);return;case 8:Ca(this,null);return;case 9:i=df(this,null,null),i&&i.Fi();return;case 10:Y3(this,!0);return;case 11:e4(this,!1);return;case 12:Z3(this,!1);return;case 13:this.i=null,nT(this,null);return;case 15:n4(this,!1);return;case 16:t4(this,!1);return;case 18:vQ(this,!1),I(this.Cb,88)&&yb(Ou(u(this.Cb,88)),2);return;case 20:mQ(this,!0);return;case 21:vV(this,null);return;case 23:!this.a&&(this.a=new Aw(ow,this,23)),de(this.a);return}As(this,e-ee((Sn(),qg)),On((t=u(Rn(this,16),26),t||qg),e))},s.Gh=function(){HV(this),v3(Er((gu(),xi),this)),qs(this),this.Bb|=1},s.Lj=function(){return ir(this)},s.qk=function(){var e;return e=ir(this),!!e&&(e.Bb&uc)!=0},s.rk=function(){return(this.Bb&uc)!=0},s.sk=function(){return(this.Bb&Yi)!=0},s.nk=function(e,t){return this.c=null,lQ(this,e,t)},s.Ib=function(){var e;return this.Db&64?bM(this):(e=new Bs(bM(this)),e.a+=" (containment: ",r1(e,(this.Bb&uc)!=0),e.a+=", resolveProxies: ",r1(e,(this.Bb&Yi)!=0),e.a+=")",e.a)},w(Bn,"EReferenceImpl",99),b(548,115,{105:1,42:1,92:1,90:1,133:1,56:1,108:1,49:1,97:1,548:1,114:1,115:1},epn),s.Fb=function(e){return this===e},s.cd=function(){return this.b},s.dd=function(){return this.c},s.Hb=function(){return md(this)},s.Uh=function(e){gfe(this,Ce(e))},s.ed=function(e){return rfe(this,Ce(e))},s._g=function(e,t,i){var r;switch(e){case 0:return this.b;case 1:return this.c}return Cs(this,e-ee((Sn(),nr)),On((r=u(Rn(this,16),26),r||nr),e),t,i)},s.lh=function(e){var t;switch(e){case 0:return this.b!=null;case 1:return this.c!=null}return js(this,e-ee((Sn(),nr)),On((t=u(Rn(this,16),26),t||nr),e))},s.sh=function(e,t){var i;switch(e){case 0:pfe(this,Ce(t));return;case 1:wV(this,Ce(t));return}Ps(this,e-ee((Sn(),nr)),On((i=u(Rn(this,16),26),i||nr),e),t)},s.zh=function(){return Sn(),nr},s.Bh=function(e){var t;switch(e){case 0:bV(this,null);return;case 1:wV(this,null);return}As(this,e-ee((Sn(),nr)),On((t=u(Rn(this,16),26),t||nr),e))},s.Sh=function(){var e;return this.a==-1&&(e=this.b,this.a=e==null?0:m1(e)),this.a},s.Th=function(e){this.a=e},s.Ib=function(){var e;return this.Db&64?yo(this):(e=new Bs(yo(this)),e.a+=" (key: ",dr(e,this.b),e.a+=", value: ",dr(e,this.c),e.a+=")",e.a)},s.a=-1,s.b=null,s.c=null;var tc=w(Bn,"EStringToStringMapEntryImpl",548),ree=Ct(vt,"FeatureMap/Entry/Internal");b(565,1,MA),s.Ok=function(e){return this.Pk(u(e,49))},s.Pk=function(e){return this.Ok(e)},s.Fb=function(e){var t,i;return this===e?!0:I(e,72)?(t=u(e,72),t.ak()==this.c?(i=this.dd(),i==null?t.dd()==null:tt(i,t.dd())):!1):!1},s.ak=function(){return this.c},s.Hb=function(){var e;return e=this.dd(),mt(this.c)^(e==null?0:mt(e))},s.Ib=function(){var e,t;return e=this.c,t=is(e.Hj()).Ph(),e.ne(),(t!=null&&t.length!=0?t+":"+e.ne():e.ne())+"="+this.dd()},w(Bn,"EStructuralFeatureImpl/BasicFeatureMapEntry",565),b(776,565,MA,bU),s.Pk=function(e){return new bU(this.c,e)},s.dd=function(){return this.a},s.Qk=function(e,t,i){return $be(this,e,this.a,t,i)},s.Rk=function(e,t,i){return Fbe(this,e,this.a,t,i)},w(Bn,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",776),b(1314,1,{},$kn),s.Pj=function(e,t,i,r,c){var o;return o=u(A3(e,this.b),215),o.nl(this.a).Wj(r)},s.Qj=function(e,t,i,r,c){var o;return o=u(A3(e,this.b),215),o.el(this.a,r,c)},s.Rj=function(e,t,i,r,c){var o;return o=u(A3(e,this.b),215),o.fl(this.a,r,c)},s.Sj=function(e,t,i){var r;return r=u(A3(e,this.b),215),r.nl(this.a).fj()},s.Tj=function(e,t,i,r){var c;c=u(A3(e,this.b),215),c.nl(this.a).Wb(r)},s.Uj=function(e,t,i){return u(A3(e,this.b),215).nl(this.a)},s.Vj=function(e,t,i){var r;r=u(A3(e,this.b),215),r.nl(this.a).Xj()},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1314),b(89,1,{},s1,ha,f1,da),s.Pj=function(e,t,i,r,c){var o;if(o=t.Ch(i),o==null&&t.Dh(i,o=AM(this,e)),!c)switch(this.e){case 50:case 41:return u(o,589).sj();case 40:return u(o,215).kl()}return o},s.Qj=function(e,t,i,r,c){var o,f;return f=t.Ch(i),f==null&&t.Dh(i,f=AM(this,e)),o=u(f,69).lk(r,c),o},s.Rj=function(e,t,i,r,c){var o;return o=t.Ch(i),o!=null&&(c=u(o,69).mk(r,c)),c},s.Sj=function(e,t,i){var r;return r=t.Ch(i),r!=null&&u(r,76).fj()},s.Tj=function(e,t,i,r){var c;c=u(t.Ch(i),76),!c&&t.Dh(i,c=AM(this,e)),c.Wb(r)},s.Uj=function(e,t,i){var r,c;return c=t.Ch(i),c==null&&t.Dh(i,c=AM(this,e)),I(c,76)?u(c,76):(r=u(t.Ch(i),15),new Dmn(r))},s.Vj=function(e,t,i){var r;r=u(t.Ch(i),76),!r&&t.Dh(i,r=AM(this,e)),r.Xj()},s.b=0,s.e=0,w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateMany",89),b(504,1,{}),s.Qj=function(e,t,i,r,c){throw T(new ye)},s.Rj=function(e,t,i,r,c){throw T(new ye)},s.Uj=function(e,t,i){return new STn(this,e,t,i)};var Ch;w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingle",504),b(1331,1,GB,STn),s.Wj=function(e){return this.a.Pj(this.c,this.d,this.b,e,!0)},s.fj=function(){return this.a.Sj(this.c,this.d,this.b)},s.Wb=function(e){this.a.Tj(this.c,this.d,this.b,e)},s.Xj=function(){this.a.Vj(this.c,this.d,this.b)},s.b=0,w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1331),b(769,504,{},QW),s.Pj=function(e,t,i,r,c){return Qx(e,e.eh(),e.Vg())==this.b?this.sk()&&r?Fx(e):e.eh():null},s.Qj=function(e,t,i,r,c){var o,f;return e.eh()&&(c=(o=e.Vg(),o>=0?e.Qg(c):e.eh().ih(e,-1-o,null,c))),f=yt(e.Tg(),this.e),e.Sg(r,f,c)},s.Rj=function(e,t,i,r,c){var o;return o=yt(e.Tg(),this.e),e.Sg(null,o,c)},s.Sj=function(e,t,i){var r;return r=yt(e.Tg(),this.e),!!e.eh()&&e.Vg()==r},s.Tj=function(e,t,i,r){var c,o,f,h,l;if(r!=null&&!nL(this.a,r))throw T(new Up(AA+(I(r,56)?IJ(u(r,56).Tg()):nV($u(r)))+SA+this.a+"'"));if(c=e.eh(),f=yt(e.Tg(),this.e),B(r)!==B(c)||e.Vg()!=f&&r!=null){if(u4(e,u(r,56)))throw T(new Hn(tm+e.Ib()));l=null,c&&(l=(o=e.Vg(),o>=0?e.Qg(l):e.eh().ih(e,-1-o,null,l))),h=u(r,49),h&&(l=h.gh(e,yt(h.Tg(),this.b),null,l)),l=e.Sg(h,f,l),l&&l.Fi()}else e.Lg()&&e.Mg()&&et(e,new gi(e,1,f,r,r))},s.Vj=function(e,t,i){var r,c,o,f;r=e.eh(),r?(f=(c=e.Vg(),c>=0?e.Qg(null):e.eh().ih(e,-1-c,null,null)),o=yt(e.Tg(),this.e),f=e.Sg(null,o,f),f&&f.Fi()):e.Lg()&&e.Mg()&&et(e,new $5(e,1,this.e,null,null))},s.sk=function(){return!1},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",769),b(1315,769,{},kEn),s.sk=function(){return!0},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1315),b(563,504,{}),s.Pj=function(e,t,i,r,c){var o;return o=t.Ch(i),o==null?this.b:B(o)===B(Ch)?null:o},s.Sj=function(e,t,i){var r;return r=t.Ch(i),r!=null&&(B(r)===B(Ch)||!tt(r,this.b))},s.Tj=function(e,t,i,r){var c,o;e.Lg()&&e.Mg()?(c=(o=t.Ch(i),o==null?this.b:B(o)===B(Ch)?null:o),r==null?this.c!=null?(t.Dh(i,null),r=this.b):this.b!=null?t.Dh(i,Ch):t.Dh(i,null):(this.Sk(r),t.Dh(i,r)),et(e,this.d.Tk(e,1,this.e,c,r))):r==null?this.c!=null?t.Dh(i,null):this.b!=null?t.Dh(i,Ch):t.Dh(i,null):(this.Sk(r),t.Dh(i,r))},s.Vj=function(e,t,i){var r,c;e.Lg()&&e.Mg()?(r=(c=t.Ch(i),c==null?this.b:B(c)===B(Ch)?null:c),t.Eh(i),et(e,this.d.Tk(e,1,this.e,r,this.b))):t.Eh(i)},s.Sk=function(e){throw T(new Hmn)},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",563),b(pg,1,{},tpn),s.Tk=function(e,t,i,r,c){return new $5(e,t,i,r,c)},s.Uk=function(e,t,i,r,c,o){return new VD(e,t,i,r,c,o)};var v1n,m1n,k1n,y1n,j1n,E1n,C1n,vH,T1n;w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",pg),b(1332,pg,{},ipn),s.Tk=function(e,t,i,r,c){return new OX(e,t,i,on(sn(r)),on(sn(c)))},s.Uk=function(e,t,i,r,c,o){return new QMn(e,t,i,on(sn(r)),on(sn(c)),o)},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1332),b(1333,pg,{},rpn),s.Tk=function(e,t,i,r,c){return new rV(e,t,i,u(r,217).a,u(c,217).a)},s.Uk=function(e,t,i,r,c,o){return new qMn(e,t,i,u(r,217).a,u(c,217).a,o)},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1333),b(1334,pg,{},cpn),s.Tk=function(e,t,i,r,c){return new cV(e,t,i,u(r,172).a,u(c,172).a)},s.Uk=function(e,t,i,r,c,o){return new GMn(e,t,i,u(r,172).a,u(c,172).a,o)},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1334),b(1335,pg,{},upn),s.Tk=function(e,t,i,r,c){return new PX(e,t,i,K(Y(r)),K(Y(c)))},s.Uk=function(e,t,i,r,c,o){return new zMn(e,t,i,K(Y(r)),K(Y(c)),o)},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1335),b(1336,pg,{},spn),s.Tk=function(e,t,i,r,c){return new oV(e,t,i,u(r,155).a,u(c,155).a)},s.Uk=function(e,t,i,r,c,o){return new UMn(e,t,i,u(r,155).a,u(c,155).a,o)},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1336),b(1337,pg,{},opn),s.Tk=function(e,t,i,r,c){return new IX(e,t,i,u(r,19).a,u(c,19).a)},s.Uk=function(e,t,i,r,c,o){return new WMn(e,t,i,u(r,19).a,u(c,19).a,o)},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1337),b(1338,pg,{},fpn),s.Tk=function(e,t,i,r,c){return new uV(e,t,i,u(r,162).a,u(c,162).a)},s.Uk=function(e,t,i,r,c,o){return new XMn(e,t,i,u(r,162).a,u(c,162).a,o)},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1338),b(1339,pg,{},hpn),s.Tk=function(e,t,i,r,c){return new sV(e,t,i,u(r,184).a,u(c,184).a)},s.Uk=function(e,t,i,r,c,o){return new VMn(e,t,i,u(r,184).a,u(c,184).a,o)},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1339),b(1317,563,{},PTn),s.Sk=function(e){if(!this.a.wj(e))throw T(new Up(AA+$u(e)+SA+this.a+"'"))},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1317),b(1318,563,{},pCn),s.Sk=function(e){},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1318),b(770,563,{}),s.Sj=function(e,t,i){var r;return r=t.Ch(i),r!=null},s.Tj=function(e,t,i,r){var c,o;e.Lg()&&e.Mg()?(c=!0,o=t.Ch(i),o==null?(c=!1,o=this.b):B(o)===B(Ch)&&(o=null),r==null?this.c!=null?(t.Dh(i,null),r=this.b):t.Dh(i,Ch):(this.Sk(r),t.Dh(i,r)),et(e,this.d.Uk(e,1,this.e,o,r,!c))):r==null?this.c!=null?t.Dh(i,null):t.Dh(i,Ch):(this.Sk(r),t.Dh(i,r))},s.Vj=function(e,t,i){var r,c;e.Lg()&&e.Mg()?(r=!0,c=t.Ch(i),c==null?(r=!1,c=this.b):B(c)===B(Ch)&&(c=null),t.Eh(i),et(e,this.d.Uk(e,2,this.e,c,this.b,r))):t.Eh(i)},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",770),b(1319,770,{},ITn),s.Sk=function(e){if(!this.a.wj(e))throw T(new Up(AA+$u(e)+SA+this.a+"'"))},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1319),b(1320,770,{},vCn),s.Sk=function(e){},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1320),b(398,504,{},FE),s.Pj=function(e,t,i,r,c){var o,f,h,l,a;if(a=t.Ch(i),this.Kj()&&B(a)===B(Ch))return null;if(this.sk()&&r&&a!=null){if(h=u(a,49),h.kh()&&(l=pl(e,h),h!=l)){if(!nL(this.a,l))throw T(new Up(AA+$u(l)+SA+this.a+"'"));t.Dh(i,a=l),this.rk()&&(o=u(l,49),f=h.ih(e,this.b?yt(h.Tg(),this.b):-1-yt(e.Tg(),this.e),null,null),!o.eh()&&(f=o.gh(e,this.b?yt(o.Tg(),this.b):-1-yt(e.Tg(),this.e),null,f)),f&&f.Fi()),e.Lg()&&e.Mg()&&et(e,new $5(e,9,this.e,h,l))}return a}else return a},s.Qj=function(e,t,i,r,c){var o,f;return f=t.Ch(i),B(f)===B(Ch)&&(f=null),t.Dh(i,r),this.bj()?B(f)!==B(r)&&f!=null&&(o=u(f,49),c=o.ih(e,yt(o.Tg(),this.b),null,c)):this.rk()&&f!=null&&(c=u(f,49).ih(e,-1-yt(e.Tg(),this.e),null,c)),e.Lg()&&e.Mg()&&(!c&&(c=new Q1(4)),c.Ei(new $5(e,1,this.e,f,r))),c},s.Rj=function(e,t,i,r,c){var o;return o=t.Ch(i),B(o)===B(Ch)&&(o=null),t.Eh(i),e.Lg()&&e.Mg()&&(!c&&(c=new Q1(4)),this.Kj()?c.Ei(new $5(e,2,this.e,o,null)):c.Ei(new $5(e,1,this.e,o,null))),c},s.Sj=function(e,t,i){var r;return r=t.Ch(i),r!=null},s.Tj=function(e,t,i,r){var c,o,f,h,l;if(r!=null&&!nL(this.a,r))throw T(new Up(AA+(I(r,56)?IJ(u(r,56).Tg()):nV($u(r)))+SA+this.a+"'"));l=t.Ch(i),h=l!=null,this.Kj()&&B(l)===B(Ch)&&(l=null),f=null,this.bj()?B(l)!==B(r)&&(l!=null&&(c=u(l,49),f=c.ih(e,yt(c.Tg(),this.b),null,f)),r!=null&&(c=u(r,49),f=c.gh(e,yt(c.Tg(),this.b),null,f))):this.rk()&&B(l)!==B(r)&&(l!=null&&(f=u(l,49).ih(e,-1-yt(e.Tg(),this.e),null,f)),r!=null&&(f=u(r,49).gh(e,-1-yt(e.Tg(),this.e),null,f))),r==null&&this.Kj()?t.Dh(i,Ch):t.Dh(i,r),e.Lg()&&e.Mg()?(o=new VD(e,1,this.e,l,r,this.Kj()&&!h),f?(f.Ei(o),f.Fi()):et(e,o)):f&&f.Fi()},s.Vj=function(e,t,i){var r,c,o,f,h;h=t.Ch(i),f=h!=null,this.Kj()&&B(h)===B(Ch)&&(h=null),o=null,h!=null&&(this.bj()?(r=u(h,49),o=r.ih(e,yt(r.Tg(),this.b),null,o)):this.rk()&&(o=u(h,49).ih(e,-1-yt(e.Tg(),this.e),null,o))),t.Eh(i),e.Lg()&&e.Mg()?(c=new VD(e,this.Kj()?2:1,this.e,h,null,f),o?(o.Ei(c),o.Fi()):et(e,c)):o&&o.Fi()},s.bj=function(){return!1},s.rk=function(){return!1},s.sk=function(){return!1},s.Kj=function(){return!1},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",398),b(564,398,{},JO),s.rk=function(){return!0},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",564),b(1323,564,{},gjn),s.sk=function(){return!0},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1323),b(772,564,{},eU),s.Kj=function(){return!0},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",772),b(1325,772,{},pjn),s.sk=function(){return!0},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1325),b(640,564,{},lD),s.bj=function(){return!0},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",640),b(1324,640,{},yEn),s.sk=function(){return!0},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1324),b(773,640,{},KU),s.Kj=function(){return!0},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",773),b(1326,773,{},jEn),s.sk=function(){return!0},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1326),b(641,398,{},tU),s.sk=function(){return!0},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",641),b(1327,641,{},vjn),s.Kj=function(){return!0},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1327),b(774,641,{},RU),s.bj=function(){return!0},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",774),b(1328,774,{},EEn),s.Kj=function(){return!0},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1328),b(1321,398,{},mjn),s.Kj=function(){return!0},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1321),b(771,398,{},_U),s.bj=function(){return!0},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",771),b(1322,771,{},CEn),s.Kj=function(){return!0},w(Bn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1322),b(775,565,MA,LW),s.Pk=function(e){return new LW(this.a,this.c,e)},s.dd=function(){return this.b},s.Qk=function(e,t,i){return Fde(this,e,this.b,i)},s.Rk=function(e,t,i){return xde(this,e,this.b,i)},w(Bn,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",775),b(1329,1,GB,Dmn),s.Wj=function(e){return this.a},s.fj=function(){return I(this.a,95)?u(this.a,95).fj():!this.a.dc()},s.Wb=function(e){this.a.$b(),this.a.Gc(u(e,15))},s.Xj=function(){I(this.a,95)?u(this.a,95).Xj():this.a.$b()},w(Bn,"EStructuralFeatureImpl/SettingMany",1329),b(1330,565,MA,BAn),s.Ok=function(e){return new nD((ht(),p9),this.b.Ih(this.a,e))},s.dd=function(){return null},s.Qk=function(e,t,i){return i},s.Rk=function(e,t,i){return i},w(Bn,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1330),b(642,565,MA,nD),s.Ok=function(e){return new nD(this.c,e)},s.dd=function(){return this.a},s.Qk=function(e,t,i){return i},s.Rk=function(e,t,i){return i},w(Bn,"EStructuralFeatureImpl/SimpleFeatureMapEntry",642),b(391,497,Xf,Bp),s.ri=function(e){return F(ro,rn,26,e,0,1)},s.ni=function(){return!1},w(Bn,"ESuperAdapter/1",391),b(444,438,{105:1,92:1,90:1,147:1,191:1,56:1,108:1,836:1,49:1,97:1,150:1,444:1,114:1,115:1},CI),s._g=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new P5(this,ar,this)),this.a}return Cs(this,e-ee((Sn(),O0)),On((r=u(Rn(this,16),26),r||O0),e),t,i)},s.jh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new V(Be,this,0,3)),zi(this.Ab,e,i);case 2:return!this.a&&(this.a=new P5(this,ar,this)),zi(this.a,e,i)}return c=u(On((r=u(Rn(this,16),26),r||(Sn(),O0)),t),66),c.Nj().Rj(this,Rc(this),t-ee((Sn(),O0)),e,i)},s.lh=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 js(this,e-ee((Sn(),O0)),On((t=u(Rn(this,16),26),t||O0),e))},s.sh=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(Be,this,0,3)),Dt(this.Ab,u(t,14));return;case 1:Ic(this,Ce(t));return;case 2:!this.a&&(this.a=new P5(this,ar,this)),de(this.a),!this.a&&(this.a=new P5(this,ar,this)),Dt(this.a,u(t,14));return}Ps(this,e-ee((Sn(),O0)),On((i=u(Rn(this,16),26),i||O0),e),t)},s.zh=function(){return Sn(),O0},s.Bh=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new V(Be,this,0,3)),de(this.Ab);return;case 1:Ic(this,null);return;case 2:!this.a&&(this.a=new P5(this,ar,this)),de(this.a);return}As(this,e-ee((Sn(),O0)),On((t=u(Rn(this,16),26),t||O0),e))},w(Bn,"ETypeParameterImpl",444),b(445,85,Br,P5),s.cj=function(e,t){return xve(this,u(e,87),t)},s.dj=function(e,t){return Lve(this,u(e,87),t)},w(Bn,"ETypeParameterImpl/1",445),b(634,43,sg,KI),s.ec=function(){return new sj(this)},w(Bn,"ETypeParameterImpl/2",634),b(556,bf,pu,sj),s.Fc=function(e){return zjn(this,u(e,87))},s.Gc=function(e){var t,i,r;for(r=!1,i=e.Kc();i.Ob();)t=u(i.Pb(),87),it(this.a,t,"")==null&&(r=!0);return r},s.$b=function(){Cu(this.a)},s.Hc=function(e){return Uu(this.a,e)},s.Kc=function(){var e;return e=new Ea(new ta(this.a).a),new oj(e)},s.Mc=function(e){return OSn(this,e)},s.gc=function(){return Xv(this.a)},w(Bn,"ETypeParameterImpl/2/1",556),b(557,1,ji,oj),s.Nb=function(e){Oi(this,e)},s.Pb=function(){return u(Nd(this.a).cd(),87)},s.Ob=function(){return this.a.b},s.Qb=function(){oPn(this.a)},w(Bn,"ETypeParameterImpl/2/1/1",557),b(1276,43,sg,j9n),s._b=function(e){return ki(e)?QD(this,e):!!Sr(this.f,e)},s.xc=function(e){var t,i;return t=ki(e)?vc(this,e):Vr(Sr(this.f,e)),I(t,837)?(i=u(t,837),t=i._j(),it(this,u(e,235),t),t):t??(e==null?(rO(),uee):null)},w(Bn,"EValidatorRegistryImpl",1276),b(1313,704,{105:1,92:1,90:1,471:1,147:1,56:1,108:1,1941:1,49:1,97:1,150:1,114:1,115:1},lpn),s.Ih=function(e,t){switch(e.yj()){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:Nr(t);case 25:return q0e(t);case 27:return u0e(t);case 28:return s0e(t);case 29:return t==null?null:Tyn(l9[0],u(t,199));case 41:return t==null?"":J1(u(t,290));case 42:return Nr(t);case 50:return Ce(t);default:throw T(new Hn(R4+e.ne()+h0))}},s.Jh=function(e){var t,i,r,c,o,f,h,l,a,d,g,p,v,m,C,S;switch(e.G==-1&&(e.G=(p=is(e),p?v1(p.Mh(),e):-1)),e.G){case 0:return i=new BI,i;case 1:return t=new JH,t;case 2:return r=new tq,r;case 4:return c=new fj,c;case 5:return o=new y9n,o;case 6:return f=new zmn,f;case 7:return h=new eq,h;case 10:return a=new Yy,a;case 11:return d=new RI,d;case 12:return g=new WTn,g;case 13:return v=new _I,v;case 14:return m=new cU,m;case 17:return C=new epn,C;case 18:return l=new ud,l;case 19:return S=new CI,S;default:throw T(new Hn(SB+e.zb+h0))}},s.Kh=function(e,t){switch(e.yj()){case 20:return t==null?null:new CG(t);case 21:return t==null?null:new il(t);case 23:case 22:return t==null?null:X2e(t);case 26:case 24:return t==null?null:X8(ss(t,-128,127)<<24>>24);case 25:return c9e(t);case 27:return O3e(t);case 28:return D3e(t);case 29:return n5e(t);case 32:case 31:return t==null?null:kb(t);case 38:case 37:return t==null?null:new Gq(t);case 40:case 39:return t==null?null:Q(ss(t,Bi,nt));case 41:return null;case 42:return t==null,null;case 44:case 43:return t==null?null:Ma(MM(t));case 49:case 48:return t==null?null:J3(ss(t,PA,32767)<<16>>16);case 50:return t;default:throw T(new Hn(R4+e.ne()+h0))}},w(Bn,"EcoreFactoryImpl",1313),b(547,179,{105:1,92:1,90:1,147:1,191:1,56:1,235:1,108:1,1939:1,49:1,97:1,150:1,179:1,547:1,114:1,115:1,675:1},hTn),s.gb=!1,s.hb=!1;var M1n,cee=!1;w(Bn,"EcorePackageImpl",547),b(1184,1,{837:1},apn),s._j=function(){return Vyn(),see},w(Bn,"EcorePackageImpl/1",1184),b(1193,1,qe,dpn),s.wj=function(e){return I(e,147)},s.xj=function(e){return F(Dy,rn,147,e,0,1)},w(Bn,"EcorePackageImpl/10",1193),b(1194,1,qe,bpn),s.wj=function(e){return I(e,191)},s.xj=function(e){return F(fH,rn,191,e,0,1)},w(Bn,"EcorePackageImpl/11",1194),b(1195,1,qe,wpn),s.wj=function(e){return I(e,56)},s.xj=function(e){return F(zl,rn,56,e,0,1)},w(Bn,"EcorePackageImpl/12",1195),b(1196,1,qe,gpn),s.wj=function(e){return I(e,399)},s.xj=function(e){return F(co,Qtn,59,e,0,1)},w(Bn,"EcorePackageImpl/13",1196),b(1197,1,qe,ppn),s.wj=function(e){return I(e,235)},s.xj=function(e){return F(Vo,rn,235,e,0,1)},w(Bn,"EcorePackageImpl/14",1197),b(1198,1,qe,vpn),s.wj=function(e){return I(e,509)},s.xj=function(e){return F(P0,rn,2017,e,0,1)},w(Bn,"EcorePackageImpl/15",1198),b(1199,1,qe,mpn),s.wj=function(e){return I(e,99)},s.xj=function(e){return F(fw,gg,18,e,0,1)},w(Bn,"EcorePackageImpl/16",1199),b(1200,1,qe,kpn),s.wj=function(e){return I(e,170)},s.xj=function(e){return F(ou,gg,170,e,0,1)},w(Bn,"EcorePackageImpl/17",1200),b(1201,1,qe,ypn),s.wj=function(e){return I(e,472)},s.xj=function(e){return F(sw,rn,472,e,0,1)},w(Bn,"EcorePackageImpl/18",1201),b(1202,1,qe,jpn),s.wj=function(e){return I(e,548)},s.xj=function(e){return F(tc,uGn,548,e,0,1)},w(Bn,"EcorePackageImpl/19",1202),b(1185,1,qe,Epn),s.wj=function(e){return I(e,322)},s.xj=function(e){return F(ow,gg,34,e,0,1)},w(Bn,"EcorePackageImpl/2",1185),b(1203,1,qe,Cpn),s.wj=function(e){return I(e,241)},s.xj=function(e){return F(ar,EGn,87,e,0,1)},w(Bn,"EcorePackageImpl/20",1203),b(1204,1,qe,Tpn),s.wj=function(e){return I(e,444)},s.xj=function(e){return F(zc,rn,836,e,0,1)},w(Bn,"EcorePackageImpl/21",1204),b(1205,1,qe,Mpn),s.wj=function(e){return q0(e)},s.xj=function(e){return F(oi,q,476,e,8,1)},w(Bn,"EcorePackageImpl/22",1205),b(1206,1,qe,Apn),s.wj=function(e){return I(e,190)},s.xj=function(e){return F(yu,q,190,e,0,2)},w(Bn,"EcorePackageImpl/23",1206),b(1207,1,qe,Spn),s.wj=function(e){return I(e,217)},s.xj=function(e){return F(op,q,217,e,0,1)},w(Bn,"EcorePackageImpl/24",1207),b(1208,1,qe,Ppn),s.wj=function(e){return I(e,172)},s.xj=function(e){return F(bm,q,172,e,0,1)},w(Bn,"EcorePackageImpl/25",1208),b(1209,1,qe,Ipn),s.wj=function(e){return I(e,199)},s.xj=function(e){return F(HA,q,199,e,0,1)},w(Bn,"EcorePackageImpl/26",1209),b(1210,1,qe,Opn),s.wj=function(e){return!1},s.xj=function(e){return F(G1n,rn,2110,e,0,1)},w(Bn,"EcorePackageImpl/27",1210),b(1211,1,qe,Dpn),s.wj=function(e){return G0(e)},s.xj=function(e){return F(Ai,q,333,e,7,1)},w(Bn,"EcorePackageImpl/28",1211),b(1212,1,qe,$pn),s.wj=function(e){return I(e,58)},s.xj=function(e){return F(c1n,Ob,58,e,0,1)},w(Bn,"EcorePackageImpl/29",1212),b(1186,1,qe,Fpn),s.wj=function(e){return I(e,510)},s.xj=function(e){return F(Be,{3:1,4:1,5:1,1934:1},590,e,0,1)},w(Bn,"EcorePackageImpl/3",1186),b(1213,1,qe,xpn),s.wj=function(e){return I(e,573)},s.xj=function(e){return F(o1n,rn,1940,e,0,1)},w(Bn,"EcorePackageImpl/30",1213),b(1214,1,qe,Lpn),s.wj=function(e){return I(e,153)},s.xj=function(e){return F(O1n,Ob,153,e,0,1)},w(Bn,"EcorePackageImpl/31",1214),b(1215,1,qe,Npn),s.wj=function(e){return I(e,72)},s.xj=function(e){return F(rI,DGn,72,e,0,1)},w(Bn,"EcorePackageImpl/32",1215),b(1216,1,qe,Bpn),s.wj=function(e){return I(e,155)},s.xj=function(e){return F(U4,q,155,e,0,1)},w(Bn,"EcorePackageImpl/33",1216),b(1217,1,qe,Rpn),s.wj=function(e){return I(e,19)},s.xj=function(e){return F(Wi,q,19,e,0,1)},w(Bn,"EcorePackageImpl/34",1217),b(1218,1,qe,_pn),s.wj=function(e){return I(e,290)},s.xj=function(e){return F(fin,rn,290,e,0,1)},w(Bn,"EcorePackageImpl/35",1218),b(1219,1,qe,Kpn),s.wj=function(e){return I(e,162)},s.xj=function(e){return F(a0,q,162,e,0,1)},w(Bn,"EcorePackageImpl/36",1219),b(1220,1,qe,Hpn),s.wj=function(e){return I(e,83)},s.xj=function(e){return F(hin,rn,83,e,0,1)},w(Bn,"EcorePackageImpl/37",1220),b(1221,1,qe,qpn),s.wj=function(e){return I(e,591)},s.xj=function(e){return F(A1n,rn,591,e,0,1)},w(Bn,"EcorePackageImpl/38",1221),b(1222,1,qe,Gpn),s.wj=function(e){return!1},s.xj=function(e){return F(z1n,rn,2111,e,0,1)},w(Bn,"EcorePackageImpl/39",1222),b(1187,1,qe,zpn),s.wj=function(e){return I(e,88)},s.xj=function(e){return F(ro,rn,26,e,0,1)},w(Bn,"EcorePackageImpl/4",1187),b(1223,1,qe,Upn),s.wj=function(e){return I(e,184)},s.xj=function(e){return F(d0,q,184,e,0,1)},w(Bn,"EcorePackageImpl/40",1223),b(1224,1,qe,Wpn),s.wj=function(e){return ki(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Bn,"EcorePackageImpl/41",1224),b(1225,1,qe,Xpn),s.wj=function(e){return I(e,588)},s.xj=function(e){return F(s1n,rn,588,e,0,1)},w(Bn,"EcorePackageImpl/42",1225),b(1226,1,qe,Vpn),s.wj=function(e){return!1},s.xj=function(e){return F(U1n,q,2112,e,0,1)},w(Bn,"EcorePackageImpl/43",1226),b(1227,1,qe,Qpn),s.wj=function(e){return I(e,42)},s.xj=function(e){return F(Ha,OM,42,e,0,1)},w(Bn,"EcorePackageImpl/44",1227),b(1188,1,qe,Jpn),s.wj=function(e){return I(e,138)},s.xj=function(e){return F(Qo,rn,138,e,0,1)},w(Bn,"EcorePackageImpl/5",1188),b(1189,1,qe,Ypn),s.wj=function(e){return I(e,148)},s.xj=function(e){return F(wH,rn,148,e,0,1)},w(Bn,"EcorePackageImpl/6",1189),b(1190,1,qe,Zpn),s.wj=function(e){return I(e,457)},s.xj=function(e){return F(iI,rn,671,e,0,1)},w(Bn,"EcorePackageImpl/7",1190),b(1191,1,qe,n3n),s.wj=function(e){return I(e,573)},s.xj=function(e){return F(e1,rn,678,e,0,1)},w(Bn,"EcorePackageImpl/8",1191),b(1192,1,qe,e3n),s.wj=function(e){return I(e,471)},s.xj=function(e){return F(h9,rn,471,e,0,1)},w(Bn,"EcorePackageImpl/9",1192),b(1025,1982,cGn,_9n),s.bi=function(e,t){kge(this,u(t,415))},s.fi=function(e,t){nLn(this,e,u(t,415))},w(Bn,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1025),b(1026,143,jk,eTn),s.Ai=function(){return this.a.a},w(Bn,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1026),b(1053,1052,{},pyn),w("org.eclipse.emf.ecore.plugin","EcorePlugin",1053);var A1n=Ct($Gn,"Resource");b(781,1378,FGn),s.Yk=function(e){},s.Zk=function(e){},s.Vk=function(){return!this.a&&(this.a=new $I(this)),this.a},s.Wk=function(e){var t,i,r,c,o;if(r=e.length,r>0)if(Te(0,e.length),e.charCodeAt(0)==47){for(o=new Pc(4),c=1,t=1;t0&&(e=e.substr(0,i)));return H6e(this,e)},s.Xk=function(){return this.c},s.Ib=function(){var e;return J1(this.gm)+"@"+(e=mt(this)>>>0,e.toString(16))+" uri='"+this.d+"'"},s.b=!1,w(zB,"ResourceImpl",781),b(1379,781,FGn,Fmn),w(zB,"BinaryResourceImpl",1379),b(1169,694,RB),s.si=function(e){return I(e,56)?E1e(this,u(e,56)):I(e,591)?new ie(u(e,591).Vk()):B(e)===B(this.f)?u(e,14).Kc():(o3(),xy.a)},s.Ob=function(){return yY(this)},s.a=!1,w(vt,"EcoreUtil/ContentTreeIterator",1169),b(1380,1169,RB,DCn),s.si=function(e){return B(e)===B(this.f)?u(e,15).Kc():new wAn(u(e,56))},w(zB,"ResourceImpl/5",1380),b(648,1994,jGn,$I),s.Hc=function(e){return this.i<=4?o4(this,e):I(e,49)&&u(e,49).Zg()==this.a},s.bi=function(e,t){e==this.i-1&&(this.a.b||(this.a.b=!0))},s.di=function(e,t){e==0?this.a.b||(this.a.b=!0):A$(this,e,t)},s.fi=function(e,t){},s.gi=function(e,t,i){},s.aj=function(){return 2},s.Ai=function(){return this.a},s.bj=function(){return!0},s.cj=function(e,t){var i;return i=u(e,49),t=i.wh(this.a,t),t},s.dj=function(e,t){var i;return i=u(e,49),i.wh(null,t)},s.ej=function(){return!1},s.hi=function(){return!0},s.ri=function(e){return F(zl,rn,56,e,0,1)},s.ni=function(){return!1},w(zB,"ResourceImpl/ContentsEList",648),b(957,1964,A4,$mn),s.Zc=function(e){return this.a._h(e)},s.gc=function(){return this.a.gc()},w(vt,"AbstractSequentialInternalEList/1",957);var S1n,P1n,xi,I1n;b(624,1,{},FEn);var cI,uI;w(vt,"BasicExtendedMetaData",624),b(1160,1,{},Fkn),s.$k=function(){return null},s._k=function(){return this.a==-2&&yte(this,Vve(this.d,this.b)),this.a},s.al=function(){return null},s.bl=function(){return Pn(),Pn(),cr},s.ne=function(){return this.c==H4&&Ete(this,O$n(this.d,this.b)),this.c},s.cl=function(){return 0},s.a=-2,s.c=H4,w(vt,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1160),b(1161,1,{},eAn),s.$k=function(){return this.a==(T3(),cI)&&jte(this,l8e(this.f,this.b)),this.a},s._k=function(){return 0},s.al=function(){return this.c==(T3(),cI)&&Cte(this,a8e(this.f,this.b)),this.c},s.bl=function(){return!this.d&&Tte(this,lke(this.f,this.b)),this.d},s.ne=function(){return this.e==H4&&Mte(this,O$n(this.f,this.b)),this.e},s.cl=function(){return this.g==-2&&Ate(this,bve(this.f,this.b)),this.g},s.e=H4,s.g=-2,w(vt,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1161),b(1159,1,{},Lkn),s.b=!1,s.c=!1,w(vt,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1159),b(1162,1,{},nAn),s.c=-2,s.e=H4,s.f=H4,w(vt,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1162),b(585,622,Br,ME),s.aj=function(){return this.c},s.Fk=function(){return!1},s.li=function(e,t){return t},s.c=0,w(vt,"EDataTypeEList",585);var O1n=Ct(vt,"FeatureMap");b(75,585,{3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,63:1,58:1,76:1,153:1,215:1,1937:1,69:1,95:1},$t),s.Vc=function(e,t){s8e(this,e,u(t,72))},s.Fc=function(e){return M9e(this,u(e,72))},s.Yh=function(e){ahe(this,u(e,72))},s.cj=function(e,t){return Uue(this,u(e,72),t)},s.dj=function(e,t){return SU(this,u(e,72),t)},s.ii=function(e,t){return Pke(this,e,t)},s.li=function(e,t){return oEe(this,e,u(t,72))},s._c=function(e,t){return J8e(this,e,u(t,72))},s.jj=function(e,t){return Wue(this,u(e,72),t)},s.kj=function(e,t){return cEn(this,u(e,72),t)},s.lj=function(e,t,i){return J4e(this,u(e,72),u(t,72),i)},s.oi=function(e,t){return px(this,e,u(t,72))},s.dl=function(e,t){return fZ(this,e,t)},s.Wc=function(e,t){var i,r,c,o,f,h,l,a,d;for(a=new Ld(t.gc()),c=t.Kc();c.Ob();)if(r=u(c.Pb(),72),o=r.ak(),zh(this.e,o))(!o.hi()||!yC(this,o,r.dd())&&!o4(a,r))&&me(a,r);else{for(d=Kc(this.e.Tg(),o),i=u(this.g,119),f=!0,h=0;h=0;)if(t=e[this.c],this.k.rl(t.ak()))return this.j=this.f?t:t.dd(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},w(vt,"BasicFeatureMap/FeatureEIterator",410),b(662,410,lh,LO),s.Lk=function(){return!0},w(vt,"BasicFeatureMap/ResolvingFeatureEIterator",662),b(955,486,CA,Ayn),s.Gi=function(){return this},w(vt,"EContentsEList/1",955),b(956,486,CA,Ykn),s.Lk=function(){return!1},w(vt,"EContentsEList/2",956),b(954,279,TA,Syn),s.Nk=function(e){},s.Ob=function(){return!1},s.Sb=function(){return!1},w(vt,"EContentsEList/FeatureIteratorImpl/1",954),b(825,585,Br,$z),s.ci=function(){this.a=!0},s.fj=function(){return this.a},s.Xj=function(){var e;de(this),qu(this.e)?(e=this.a,this.a=!1,et(this.e,new vo(this.e,2,this.c,e,!1))):this.a=!1},s.a=!1,w(vt,"EDataTypeEList/Unsettable",825),b(1849,585,Br,Lyn),s.hi=function(){return!0},w(vt,"EDataTypeUniqueEList",1849),b(1850,825,Br,Nyn),s.hi=function(){return!0},w(vt,"EDataTypeUniqueEList/Unsettable",1850),b(139,85,Br,lu),s.Ek=function(){return!0},s.li=function(e,t){return U2(this,e,u(t,56))},w(vt,"EObjectContainmentEList/Resolving",139),b(1163,545,Br,xyn),s.Ek=function(){return!0},s.li=function(e,t){return U2(this,e,u(t,56))},w(vt,"EObjectContainmentEList/Unsettable/Resolving",1163),b(748,16,Br,yU),s.ci=function(){this.a=!0},s.fj=function(){return this.a},s.Xj=function(){var e;de(this),qu(this.e)?(e=this.a,this.a=!1,et(this.e,new vo(this.e,2,this.c,e,!1))):this.a=!1},s.a=!1,w(vt,"EObjectContainmentWithInverseEList/Unsettable",748),b(1173,748,Br,Ujn),s.Ek=function(){return!0},s.li=function(e,t){return U2(this,e,u(t,56))},w(vt,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1173),b(743,496,Br,Dz),s.ci=function(){this.a=!0},s.fj=function(){return this.a},s.Xj=function(){var e;de(this),qu(this.e)?(e=this.a,this.a=!1,et(this.e,new vo(this.e,2,this.c,e,!1))):this.a=!1},s.a=!1,w(vt,"EObjectEList/Unsettable",743),b(328,496,Br,Aw),s.Ek=function(){return!0},s.li=function(e,t){return U2(this,e,u(t,56))},w(vt,"EObjectResolvingEList",328),b(1641,743,Br,Byn),s.Ek=function(){return!0},s.li=function(e,t){return U2(this,e,u(t,56))},w(vt,"EObjectResolvingEList/Unsettable",1641),b(1381,1,{},t3n);var uee;w(vt,"EObjectValidator",1381),b(546,496,Br,zE),s.zk=function(){return this.d},s.Ak=function(){return this.b},s.bj=function(){return!0},s.Dk=function(){return!0},s.b=0,w(vt,"EObjectWithInverseEList",546),b(1176,546,Br,Wjn),s.Ck=function(){return!0},w(vt,"EObjectWithInverseEList/ManyInverse",1176),b(625,546,Br,tD),s.ci=function(){this.a=!0},s.fj=function(){return this.a},s.Xj=function(){var e;de(this),qu(this.e)?(e=this.a,this.a=!1,et(this.e,new vo(this.e,2,this.c,e,!1))):this.a=!1},s.a=!1,w(vt,"EObjectWithInverseEList/Unsettable",625),b(1175,625,Br,Xjn),s.Ck=function(){return!0},w(vt,"EObjectWithInverseEList/Unsettable/ManyInverse",1175),b(749,546,Br,jU),s.Ek=function(){return!0},s.li=function(e,t){return U2(this,e,u(t,56))},w(vt,"EObjectWithInverseResolvingEList",749),b(31,749,Br,Fn),s.Ck=function(){return!0},w(vt,"EObjectWithInverseResolvingEList/ManyInverse",31),b(750,625,Br,EU),s.Ek=function(){return!0},s.li=function(e,t){return U2(this,e,u(t,56))},w(vt,"EObjectWithInverseResolvingEList/Unsettable",750),b(1174,750,Br,Vjn),s.Ck=function(){return!0},w(vt,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1174),b(1164,622,Br),s.ai=function(){return(this.b&1792)==0},s.ci=function(){this.b|=1},s.Bk=function(){return(this.b&4)!=0},s.bj=function(){return(this.b&40)!=0},s.Ck=function(){return(this.b&16)!=0},s.Dk=function(){return(this.b&8)!=0},s.Ek=function(){return(this.b&Bb)!=0},s.rk=function(){return(this.b&32)!=0},s.Fk=function(){return(this.b&Eo)!=0},s.wj=function(e){return this.d?IAn(this.d,e):this.ak().Yj().wj(e)},s.fj=function(){return this.b&2?(this.b&1)!=0:this.i!=0},s.hi=function(){return(this.b&128)!=0},s.Xj=function(){var e;de(this),this.b&2&&(qu(this.e)?(e=(this.b&1)!=0,this.b&=-2,Gp(this,new vo(this.e,2,yt(this.e.Tg(),this.ak()),e,!1))):this.b&=-2)},s.ni=function(){return(this.b&1536)==0},s.b=0,w(vt,"EcoreEList/Generic",1164),b(1165,1164,Br,RTn),s.ak=function(){return this.a},w(vt,"EcoreEList/Dynamic",1165),b(747,63,Xf,Lq),s.ri=function(e){return Q8(this.a.a,e)},w(vt,"EcoreEMap/1",747),b(746,85,Br,yW),s.bi=function(e,t){KT(this.b,u(t,133))},s.di=function(e,t){TOn(this.b)},s.ei=function(e,t,i){var r;++(r=this.b,u(t,133),r).e},s.fi=function(e,t){MF(this.b,u(t,133))},s.gi=function(e,t,i){MF(this.b,u(i,133)),B(i)===B(t)&&u(i,133).Th(ece(u(t,133).cd())),KT(this.b,u(t,133))},w(vt,"EcoreEMap/DelegateEObjectContainmentEList",746),b(1171,151,Vtn,BIn),w(vt,"EcoreEMap/Unsettable",1171),b(1172,746,Br,Qjn),s.ci=function(){this.a=!0},s.fj=function(){return this.a},s.Xj=function(){var e;de(this),qu(this.e)?(e=this.a,this.a=!1,et(this.e,new vo(this.e,2,this.c,e,!1))):this.a=!1},s.a=!1,w(vt,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1172),b(1168,228,sg,HCn),s.a=!1,s.b=!1,w(vt,"EcoreUtil/Copier",1168),b(745,1,ji,wAn),s.Nb=function(e){Oi(this,e)},s.Ob=function(){return l$n(this)},s.Pb=function(){var e;return l$n(this),e=this.b,this.b=null,e},s.Qb=function(){this.a.Qb()},w(vt,"EcoreUtil/ProperContentIterator",745),b(1382,1381,{},Z4n);var see;w(vt,"EcoreValidator",1382);var oee;Ct(vt,"FeatureMapUtil/Validator"),b(1260,1,{1942:1},i3n),s.rl=function(e){return!0},w(vt,"FeatureMapUtil/1",1260),b(757,1,{1942:1},BZ),s.rl=function(e){var t;return this.c==e?!0:(t=sn(te(this.a,e)),t==null?U7e(this,e)?(ESn(this.a,e,(qn(),z4)),!0):(ESn(this.a,e,(qn(),qa)),!1):t==(qn(),z4))},s.e=!1;var mH;w(vt,"FeatureMapUtil/BasicValidator",757),b(758,43,sg,Sz),w(vt,"FeatureMapUtil/BasicValidator/Cache",758),b(501,52,{20:1,28:1,52:1,14:1,15:1,58:1,76:1,69:1,95:1},i8),s.Vc=function(e,t){_Nn(this.c,this.b,e,t)},s.Fc=function(e){return fZ(this.c,this.b,e)},s.Wc=function(e,t){return sje(this.c,this.b,e,t)},s.Gc=function(e){return m5(this,e)},s.Xh=function(e,t){S0e(this.c,this.b,e,t)},s.lk=function(e,t){return iZ(this.c,this.b,e,t)},s.pi=function(e){return kM(this.c,this.b,e,!1)},s.Zh=function(){return fyn(this.c,this.b)},s.$h=function(){return Hre(this.c,this.b)},s._h=function(e){return $de(this.c,this.b,e)},s.mk=function(e,t){return Sjn(this,e,t)},s.$b=function(){t2(this)},s.Hc=function(e){return yC(this.c,this.b,e)},s.Ic=function(e){return Dbe(this.c,this.b,e)},s.Xb=function(e){return kM(this.c,this.b,e,!0)},s.Wj=function(e){return this},s.Xc=function(e){return Gae(this.c,this.b,e)},s.dc=function(){return Zj(this)},s.fj=function(){return!g7(this.c,this.b)},s.Kc=function(){return g0e(this.c,this.b)},s.Yc=function(){return p0e(this.c,this.b)},s.Zc=function(e){return Pge(this.c,this.b,e)},s.ii=function(e,t){return rRn(this.c,this.b,e,t)},s.ji=function(e,t){Ade(this.c,this.b,e,t)},s.$c=function(e){return Nxn(this.c,this.b,e)},s.Mc=function(e){return dke(this.c,this.b,e)},s._c=function(e,t){return hRn(this.c,this.b,e,t)},s.Wb=function(e){iM(this.c,this.b),m5(this,u(e,15))},s.gc=function(){return Hge(this.c,this.b)},s.Pc=function(){return Kle(this.c,this.b)},s.Qc=function(e){return zae(this.c,this.b,e)},s.Ib=function(){var e,t;for(t=new i1,t.a+="[",e=fyn(this.c,this.b);gF(e);)dr(t,y5(RT(e))),gF(e)&&(t.a+=Ji);return t.a+="]",t.a},s.Xj=function(){iM(this.c,this.b)},w(vt,"FeatureMapUtil/FeatureEList",501),b(627,36,jk,v$),s.yi=function(e){return u6(this,e)},s.Di=function(e){var t,i,r,c,o,f,h;switch(this.d){case 1:case 2:{if(o=e.Ai(),B(o)===B(this.c)&&u6(this,null)==e.yi(null))return this.g=e.zi(),e.xi()==1&&(this.d=1),!0;break}case 3:{switch(c=e.xi(),c){case 3:{if(o=e.Ai(),B(o)===B(this.c)&&u6(this,null)==e.yi(null))return this.d=5,t=new Ld(2),me(t,this.g),me(t,e.zi()),this.g=t,!0;break}}break}case 5:{switch(c=e.xi(),c){case 3:{if(o=e.Ai(),B(o)===B(this.c)&&u6(this,null)==e.yi(null))return i=u(this.g,14),i.Fc(e.zi()),!0;break}}break}case 4:{switch(c=e.xi(),c){case 3:{if(o=e.Ai(),B(o)===B(this.c)&&u6(this,null)==e.yi(null))return this.d=1,this.g=e.zi(),!0;break}case 4:{if(o=e.Ai(),B(o)===B(this.c)&&u6(this,null)==e.yi(null))return this.d=6,h=new Ld(2),me(h,this.n),me(h,e.Bi()),this.n=h,f=A(M(be,1),Le,25,15,[this.o,e.Ci()]),this.g=f,!0;break}}break}case 6:{switch(c=e.xi(),c){case 4:{if(o=e.Ai(),B(o)===B(this.c)&&u6(this,null)==e.yi(null))return i=u(this.n,14),i.Fc(e.Bi()),f=u(this.g,48),r=F(be,Le,25,f.length+1,15,1),gc(f,0,r,0,f.length),r[f.length]=e.Ci(),this.g=r,!0;break}}break}}return!1},w(vt,"FeatureMapUtil/FeatureENotificationImpl",627),b(552,501,{20:1,28:1,52:1,14:1,15:1,58:1,76:1,153:1,215:1,1937:1,69:1,95:1},IE),s.dl=function(e,t){return fZ(this.c,e,t)},s.el=function(e,t,i){return iZ(this.c,e,t,i)},s.fl=function(e,t,i){return MZ(this.c,e,t,i)},s.gl=function(){return this},s.hl=function(e,t){return W7(this.c,e,t)},s.il=function(e){return u(kM(this.c,this.b,e,!1),72).ak()},s.jl=function(e){return u(kM(this.c,this.b,e,!1),72).dd()},s.kl=function(){return this.a},s.ll=function(e){return!g7(this.c,e)},s.ml=function(e,t){yM(this.c,e,t)},s.nl=function(e){return zIn(this.c,e)},s.ol=function(e){wFn(this.c,e)},w(vt,"FeatureMapUtil/FeatureFeatureMap",552),b(1259,1,GB,Nkn),s.Wj=function(e){return kM(this.b,this.a,-1,e)},s.fj=function(){return!g7(this.b,this.a)},s.Wb=function(e){yM(this.b,this.a,e)},s.Xj=function(){iM(this.b,this.a)},w(vt,"FeatureMapUtil/FeatureValue",1259);var Op,kH,yH,Dp,fee,Ny=Ct($A,"AnyType");b(666,60,Uh,VI),w($A,"InvalidDatatypeValueException",666);var sI=Ct($A,LGn),By=Ct($A,NGn),D1n=Ct($A,BGn),hee,oc,$1n,rd,lee,aee,dee,bee,wee,gee,pee,vee,mee,kee,yee,Gg,jee,zg,w9,Eee,D0,Ry,_y,Cee,g9,p9;b(830,506,{105:1,92:1,90:1,56:1,49:1,97:1,843:1},iG),s._g=function(e,t,i){switch(e){case 0:return i?(!this.c&&(this.c=new $t(this,0)),this.c):(!this.c&&(this.c=new $t(this,0)),this.c.b);case 1:return i?(!this.c&&(this.c=new $t(this,0)),u(mc(this.c,(ht(),rd)),153)):(!this.c&&(this.c=new $t(this,0)),u(u(mc(this.c,(ht(),rd)),153),215)).kl();case 2:return i?(!this.b&&(this.b=new $t(this,2)),this.b):(!this.b&&(this.b=new $t(this,2)),this.b.b)}return Cs(this,e-ee(this.zh()),On(this.j&2?(!this.k&&(this.k=new Fo),this.k).ck():this.zh(),e),t,i)},s.jh=function(e,t,i){var r;switch(t){case 0:return!this.c&&(this.c=new $t(this,0)),q7(this.c,e,i);case 1:return(!this.c&&(this.c=new $t(this,0)),u(u(mc(this.c,(ht(),rd)),153),69)).mk(e,i);case 2:return!this.b&&(this.b=new $t(this,2)),q7(this.b,e,i)}return r=u(On(this.j&2?(!this.k&&(this.k=new Fo),this.k).ck():this.zh(),t),66),r.Nj().Rj(this,QX(this),t-ee(this.zh()),e,i)},s.lh=function(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new $t(this,0)),u(mc(this.c,(ht(),rd)),153)).dc();case 2:return!!this.b&&this.b.i!=0}return js(this,e-ee(this.zh()),On(this.j&2?(!this.k&&(this.k=new Fo),this.k).ck():this.zh(),e))},s.sh=function(e,t){switch(e){case 0:!this.c&&(this.c=new $t(this,0)),j8(this.c,t);return;case 1:(!this.c&&(this.c=new $t(this,0)),u(u(mc(this.c,(ht(),rd)),153),215)).Wb(t);return;case 2:!this.b&&(this.b=new $t(this,2)),j8(this.b,t);return}Ps(this,e-ee(this.zh()),On(this.j&2?(!this.k&&(this.k=new Fo),this.k).ck():this.zh(),e),t)},s.zh=function(){return ht(),$1n},s.Bh=function(e){switch(e){case 0:!this.c&&(this.c=new $t(this,0)),de(this.c);return;case 1:(!this.c&&(this.c=new $t(this,0)),u(mc(this.c,(ht(),rd)),153)).$b();return;case 2:!this.b&&(this.b=new $t(this,2)),de(this.b);return}As(this,e-ee(this.zh()),On(this.j&2?(!this.k&&(this.k=new Fo),this.k).ck():this.zh(),e))},s.Ib=function(){var e;return this.j&4?yo(this):(e=new Bs(yo(this)),e.a+=" (mixed: ",w5(e,this.c),e.a+=", anyAttribute: ",w5(e,this.b),e.a+=")",e.a)},w(Wt,"AnyTypeImpl",830),b(667,506,{105:1,92:1,90:1,56:1,49:1,97:1,2021:1,667:1},c3n),s._g=function(e,t,i){switch(e){case 0:return this.a;case 1:return this.b}return Cs(this,e-ee((ht(),Gg)),On(this.j&2?(!this.k&&(this.k=new Fo),this.k).ck():Gg,e),t,i)},s.lh=function(e){switch(e){case 0:return this.a!=null;case 1:return this.b!=null}return js(this,e-ee((ht(),Gg)),On(this.j&2?(!this.k&&(this.k=new Fo),this.k).ck():Gg,e))},s.sh=function(e,t){switch(e){case 0:Fte(this,Ce(t));return;case 1:xte(this,Ce(t));return}Ps(this,e-ee((ht(),Gg)),On(this.j&2?(!this.k&&(this.k=new Fo),this.k).ck():Gg,e),t)},s.zh=function(){return ht(),Gg},s.Bh=function(e){switch(e){case 0:this.a=null;return;case 1:this.b=null;return}As(this,e-ee((ht(),Gg)),On(this.j&2?(!this.k&&(this.k=new Fo),this.k).ck():Gg,e))},s.Ib=function(){var e;return this.j&4?yo(this):(e=new Bs(yo(this)),e.a+=" (data: ",dr(e,this.a),e.a+=", target: ",dr(e,this.b),e.a+=")",e.a)},s.a=null,s.b=null,w(Wt,"ProcessingInstructionImpl",667),b(668,830,{105:1,92:1,90:1,56:1,49:1,97:1,843:1,2022:1,668:1},C9n),s._g=function(e,t,i){switch(e){case 0:return i?(!this.c&&(this.c=new $t(this,0)),this.c):(!this.c&&(this.c=new $t(this,0)),this.c.b);case 1:return i?(!this.c&&(this.c=new $t(this,0)),u(mc(this.c,(ht(),rd)),153)):(!this.c&&(this.c=new $t(this,0)),u(u(mc(this.c,(ht(),rd)),153),215)).kl();case 2:return i?(!this.b&&(this.b=new $t(this,2)),this.b):(!this.b&&(this.b=new $t(this,2)),this.b.b);case 3:return!this.c&&(this.c=new $t(this,0)),Ce(W7(this.c,(ht(),w9),!0));case 4:return CU(this.a,(!this.c&&(this.c=new $t(this,0)),Ce(W7(this.c,(ht(),w9),!0))));case 5:return this.a}return Cs(this,e-ee((ht(),zg)),On(this.j&2?(!this.k&&(this.k=new Fo),this.k).ck():zg,e),t,i)},s.lh=function(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new $t(this,0)),u(mc(this.c,(ht(),rd)),153)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new $t(this,0)),Ce(W7(this.c,(ht(),w9),!0))!=null;case 4:return CU(this.a,(!this.c&&(this.c=new $t(this,0)),Ce(W7(this.c,(ht(),w9),!0))))!=null;case 5:return!!this.a}return js(this,e-ee((ht(),zg)),On(this.j&2?(!this.k&&(this.k=new Fo),this.k).ck():zg,e))},s.sh=function(e,t){switch(e){case 0:!this.c&&(this.c=new $t(this,0)),j8(this.c,t);return;case 1:(!this.c&&(this.c=new $t(this,0)),u(u(mc(this.c,(ht(),rd)),153),215)).Wb(t);return;case 2:!this.b&&(this.b=new $t(this,2)),j8(this.b,t);return;case 3:fX(this,Ce(t));return;case 4:fX(this,TU(this.a,t));return;case 5:Lte(this,u(t,148));return}Ps(this,e-ee((ht(),zg)),On(this.j&2?(!this.k&&(this.k=new Fo),this.k).ck():zg,e),t)},s.zh=function(){return ht(),zg},s.Bh=function(e){switch(e){case 0:!this.c&&(this.c=new $t(this,0)),de(this.c);return;case 1:(!this.c&&(this.c=new $t(this,0)),u(mc(this.c,(ht(),rd)),153)).$b();return;case 2:!this.b&&(this.b=new $t(this,2)),de(this.b);return;case 3:!this.c&&(this.c=new $t(this,0)),yM(this.c,(ht(),w9),null);return;case 4:fX(this,TU(this.a,null));return;case 5:this.a=null;return}As(this,e-ee((ht(),zg)),On(this.j&2?(!this.k&&(this.k=new Fo),this.k).ck():zg,e))},w(Wt,"SimpleAnyTypeImpl",668),b(669,506,{105:1,92:1,90:1,56:1,49:1,97:1,2023:1,669:1},E9n),s._g=function(e,t,i){switch(e){case 0:return i?(!this.a&&(this.a=new $t(this,0)),this.a):(!this.a&&(this.a=new $t(this,0)),this.a.b);case 1:return i?(!this.b&&(this.b=new Xu((Sn(),nr),tc,this,1)),this.b):(!this.b&&(this.b=new Xu((Sn(),nr),tc,this,1)),N8(this.b));case 2:return i?(!this.c&&(this.c=new Xu((Sn(),nr),tc,this,2)),this.c):(!this.c&&(this.c=new Xu((Sn(),nr),tc,this,2)),N8(this.c));case 3:return!this.a&&(this.a=new $t(this,0)),mc(this.a,(ht(),Ry));case 4:return!this.a&&(this.a=new $t(this,0)),mc(this.a,(ht(),_y));case 5:return!this.a&&(this.a=new $t(this,0)),mc(this.a,(ht(),g9));case 6:return!this.a&&(this.a=new $t(this,0)),mc(this.a,(ht(),p9))}return Cs(this,e-ee((ht(),D0)),On(this.j&2?(!this.k&&(this.k=new Fo),this.k).ck():D0,e),t,i)},s.jh=function(e,t,i){var r;switch(t){case 0:return!this.a&&(this.a=new $t(this,0)),q7(this.a,e,i);case 1:return!this.b&&(this.b=new Xu((Sn(),nr),tc,this,1)),yE(this.b,e,i);case 2:return!this.c&&(this.c=new Xu((Sn(),nr),tc,this,2)),yE(this.c,e,i);case 5:return!this.a&&(this.a=new $t(this,0)),Sjn(mc(this.a,(ht(),g9)),e,i)}return r=u(On(this.j&2?(!this.k&&(this.k=new Fo),this.k).ck():(ht(),D0),t),66),r.Nj().Rj(this,QX(this),t-ee((ht(),D0)),e,i)},s.lh=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 $t(this,0)),!Zj(mc(this.a,(ht(),Ry)));case 4:return!this.a&&(this.a=new $t(this,0)),!Zj(mc(this.a,(ht(),_y)));case 5:return!this.a&&(this.a=new $t(this,0)),!Zj(mc(this.a,(ht(),g9)));case 6:return!this.a&&(this.a=new $t(this,0)),!Zj(mc(this.a,(ht(),p9)))}return js(this,e-ee((ht(),D0)),On(this.j&2?(!this.k&&(this.k=new Fo),this.k).ck():D0,e))},s.sh=function(e,t){switch(e){case 0:!this.a&&(this.a=new $t(this,0)),j8(this.a,t);return;case 1:!this.b&&(this.b=new Xu((Sn(),nr),tc,this,1)),fT(this.b,t);return;case 2:!this.c&&(this.c=new Xu((Sn(),nr),tc,this,2)),fT(this.c,t);return;case 3:!this.a&&(this.a=new $t(this,0)),t2(mc(this.a,(ht(),Ry))),!this.a&&(this.a=new $t(this,0)),m5(mc(this.a,Ry),u(t,14));return;case 4:!this.a&&(this.a=new $t(this,0)),t2(mc(this.a,(ht(),_y))),!this.a&&(this.a=new $t(this,0)),m5(mc(this.a,_y),u(t,14));return;case 5:!this.a&&(this.a=new $t(this,0)),t2(mc(this.a,(ht(),g9))),!this.a&&(this.a=new $t(this,0)),m5(mc(this.a,g9),u(t,14));return;case 6:!this.a&&(this.a=new $t(this,0)),t2(mc(this.a,(ht(),p9))),!this.a&&(this.a=new $t(this,0)),m5(mc(this.a,p9),u(t,14));return}Ps(this,e-ee((ht(),D0)),On(this.j&2?(!this.k&&(this.k=new Fo),this.k).ck():D0,e),t)},s.zh=function(){return ht(),D0},s.Bh=function(e){switch(e){case 0:!this.a&&(this.a=new $t(this,0)),de(this.a);return;case 1:!this.b&&(this.b=new Xu((Sn(),nr),tc,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new Xu((Sn(),nr),tc,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new $t(this,0)),t2(mc(this.a,(ht(),Ry)));return;case 4:!this.a&&(this.a=new $t(this,0)),t2(mc(this.a,(ht(),_y)));return;case 5:!this.a&&(this.a=new $t(this,0)),t2(mc(this.a,(ht(),g9)));return;case 6:!this.a&&(this.a=new $t(this,0)),t2(mc(this.a,(ht(),p9)));return}As(this,e-ee((ht(),D0)),On(this.j&2?(!this.k&&(this.k=new Fo),this.k).ck():D0,e))},s.Ib=function(){var e;return this.j&4?yo(this):(e=new Bs(yo(this)),e.a+=" (mixed: ",w5(e,this.a),e.a+=")",e.a)},w(Wt,"XMLTypeDocumentRootImpl",669),b(1919,704,{105:1,92:1,90:1,471:1,147:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1,2024:1},r3n),s.Ih=function(e,t){switch(e.yj()){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:Nr(t);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return Ce(t);case 6:return uue(u(t,190));case 12:case 47:case 49:case 11:return JRn(this,e,t);case 13:return t==null?null:Wye(u(t,240));case 15:case 14:return t==null?null:ihe(K(Y(t)));case 17:return nxn((ht(),t));case 18:return nxn(t);case 21:case 20:return t==null?null:rhe(u(t,155).a);case 27:return sue(u(t,190));case 30:return gFn((ht(),u(t,15)));case 31:return gFn(u(t,15));case 40:return fue((ht(),t));case 42:return exn((ht(),t));case 43:return exn(t);case 59:case 48:return oue((ht(),t));default:throw T(new Hn(R4+e.ne()+h0))}},s.Jh=function(e){var t,i,r,c,o;switch(e.G==-1&&(e.G=(i=is(e),i?v1(i.Mh(),e):-1)),e.G){case 0:return t=new iG,t;case 1:return r=new c3n,r;case 2:return c=new C9n,c;case 3:return o=new E9n,o;default:throw T(new Hn(SB+e.zb+h0))}},s.Kh=function(e,t){var i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$;switch(e.yj()){case 5:case 52:case 4:return t;case 6:return Epe(t);case 8:case 7:return t==null?null:hve(t);case 9:return t==null?null:X8(ss((r=jc(t,!0),r.length>0&&(Te(0,r.length),r.charCodeAt(0)==43)?r.substr(1):r),-128,127)<<24>>24);case 10:return t==null?null:X8(ss((c=jc(t,!0),c.length>0&&(Te(0,c.length),c.charCodeAt(0)==43)?c.substr(1):c),-128,127)<<24>>24);case 11:return Ce(i0(this,(ht(),dee),t));case 12:return Ce(i0(this,(ht(),bee),t));case 13:return t==null?null:new CG(jc(t,!0));case 15:case 14:return O9e(t);case 16:return Ce(i0(this,(ht(),wee),t));case 17:return j$n((ht(),t));case 18:return j$n(t);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return jc(t,!0);case 21:case 20:return _9e(t);case 22:return Ce(i0(this,(ht(),gee),t));case 23:return Ce(i0(this,(ht(),pee),t));case 24:return Ce(i0(this,(ht(),vee),t));case 25:return Ce(i0(this,(ht(),mee),t));case 26:return Ce(i0(this,(ht(),kee),t));case 27:return vpe(t);case 30:return E$n((ht(),t));case 31:return E$n(t);case 32:return t==null?null:Q(ss((d=jc(t,!0),d.length>0&&(Te(0,d.length),d.charCodeAt(0)==43)?d.substr(1):d),Bi,nt));case 33:return t==null?null:new il((g=jc(t,!0),g.length>0&&(Te(0,g.length),g.charCodeAt(0)==43)?g.substr(1):g));case 34:return t==null?null:Q(ss((p=jc(t,!0),p.length>0&&(Te(0,p.length),p.charCodeAt(0)==43)?p.substr(1):p),Bi,nt));case 36:return t==null?null:Ma(MM((v=jc(t,!0),v.length>0&&(Te(0,v.length),v.charCodeAt(0)==43)?v.substr(1):v)));case 37:return t==null?null:Ma(MM((m=jc(t,!0),m.length>0&&(Te(0,m.length),m.charCodeAt(0)==43)?m.substr(1):m)));case 40:return F2e((ht(),t));case 42:return C$n((ht(),t));case 43:return C$n(t);case 44:return t==null?null:new il((C=jc(t,!0),C.length>0&&(Te(0,C.length),C.charCodeAt(0)==43)?C.substr(1):C));case 45:return t==null?null:new il((S=jc(t,!0),S.length>0&&(Te(0,S.length),S.charCodeAt(0)==43)?S.substr(1):S));case 46:return jc(t,!1);case 47:return Ce(i0(this,(ht(),yee),t));case 59:case 48:return $2e((ht(),t));case 49:return Ce(i0(this,(ht(),jee),t));case 50:return t==null?null:J3(ss(($=jc(t,!0),$.length>0&&(Te(0,$.length),$.charCodeAt(0)==43)?$.substr(1):$),PA,32767)<<16>>16);case 51:return t==null?null:J3(ss((o=jc(t,!0),o.length>0&&(Te(0,o.length),o.charCodeAt(0)==43)?o.substr(1):o),PA,32767)<<16>>16);case 53:return Ce(i0(this,(ht(),Eee),t));case 55:return t==null?null:J3(ss((f=jc(t,!0),f.length>0&&(Te(0,f.length),f.charCodeAt(0)==43)?f.substr(1):f),PA,32767)<<16>>16);case 56:return t==null?null:J3(ss((h=jc(t,!0),h.length>0&&(Te(0,h.length),h.charCodeAt(0)==43)?h.substr(1):h),PA,32767)<<16>>16);case 57:return t==null?null:Ma(MM((l=jc(t,!0),l.length>0&&(Te(0,l.length),l.charCodeAt(0)==43)?l.substr(1):l)));case 58:return t==null?null:Ma(MM((a=jc(t,!0),a.length>0&&(Te(0,a.length),a.charCodeAt(0)==43)?a.substr(1):a)));case 60:return t==null?null:Q(ss((i=jc(t,!0),i.length>0&&(Te(0,i.length),i.charCodeAt(0)==43)?i.substr(1):i),Bi,nt));case 61:return t==null?null:Q(ss(jc(t,!0),Bi,nt));default:throw T(new Hn(R4+e.ne()+h0))}};var Tee,F1n,Mee,x1n;w(Wt,"XMLTypeFactoryImpl",1919),b(586,179,{105:1,92:1,90:1,147:1,191:1,56:1,235:1,108:1,49:1,97:1,150:1,179:1,114:1,115:1,675:1,1945:1,586:1},fTn),s.N=!1,s.O=!1;var Aee=!1;w(Wt,"XMLTypePackageImpl",586),b(1852,1,{837:1},u3n),s._j=function(){return pZ(),Lee},w(Wt,"XMLTypePackageImpl/1",1852),b(1861,1,qe,s3n),s.wj=function(e){return ki(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/10",1861),b(1862,1,qe,o3n),s.wj=function(e){return ki(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/11",1862),b(1863,1,qe,f3n),s.wj=function(e){return ki(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/12",1863),b(1864,1,qe,h3n),s.wj=function(e){return G0(e)},s.xj=function(e){return F(Ai,q,333,e,7,1)},w(Wt,"XMLTypePackageImpl/13",1864),b(1865,1,qe,l3n),s.wj=function(e){return ki(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/14",1865),b(1866,1,qe,a3n),s.wj=function(e){return I(e,15)},s.xj=function(e){return F(Ds,Ob,15,e,0,1)},w(Wt,"XMLTypePackageImpl/15",1866),b(1867,1,qe,d3n),s.wj=function(e){return I(e,15)},s.xj=function(e){return F(Ds,Ob,15,e,0,1)},w(Wt,"XMLTypePackageImpl/16",1867),b(1868,1,qe,b3n),s.wj=function(e){return ki(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/17",1868),b(1869,1,qe,w3n),s.wj=function(e){return I(e,155)},s.xj=function(e){return F(U4,q,155,e,0,1)},w(Wt,"XMLTypePackageImpl/18",1869),b(1870,1,qe,g3n),s.wj=function(e){return ki(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/19",1870),b(1853,1,qe,p3n),s.wj=function(e){return I(e,843)},s.xj=function(e){return F(Ny,rn,843,e,0,1)},w(Wt,"XMLTypePackageImpl/2",1853),b(1871,1,qe,v3n),s.wj=function(e){return ki(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/20",1871),b(1872,1,qe,m3n),s.wj=function(e){return ki(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/21",1872),b(1873,1,qe,k3n),s.wj=function(e){return ki(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/22",1873),b(1874,1,qe,y3n),s.wj=function(e){return ki(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/23",1874),b(1875,1,qe,j3n),s.wj=function(e){return I(e,190)},s.xj=function(e){return F(yu,q,190,e,0,2)},w(Wt,"XMLTypePackageImpl/24",1875),b(1876,1,qe,E3n),s.wj=function(e){return ki(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/25",1876),b(1877,1,qe,C3n),s.wj=function(e){return ki(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/26",1877),b(1878,1,qe,T3n),s.wj=function(e){return I(e,15)},s.xj=function(e){return F(Ds,Ob,15,e,0,1)},w(Wt,"XMLTypePackageImpl/27",1878),b(1879,1,qe,M3n),s.wj=function(e){return I(e,15)},s.xj=function(e){return F(Ds,Ob,15,e,0,1)},w(Wt,"XMLTypePackageImpl/28",1879),b(1880,1,qe,A3n),s.wj=function(e){return ki(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/29",1880),b(1854,1,qe,S3n),s.wj=function(e){return I(e,667)},s.xj=function(e){return F(sI,rn,2021,e,0,1)},w(Wt,"XMLTypePackageImpl/3",1854),b(1881,1,qe,P3n),s.wj=function(e){return I(e,19)},s.xj=function(e){return F(Wi,q,19,e,0,1)},w(Wt,"XMLTypePackageImpl/30",1881),b(1882,1,qe,I3n),s.wj=function(e){return ki(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/31",1882),b(1883,1,qe,O3n),s.wj=function(e){return I(e,162)},s.xj=function(e){return F(a0,q,162,e,0,1)},w(Wt,"XMLTypePackageImpl/32",1883),b(1884,1,qe,D3n),s.wj=function(e){return ki(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/33",1884),b(1885,1,qe,$3n),s.wj=function(e){return ki(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/34",1885),b(1886,1,qe,F3n),s.wj=function(e){return ki(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/35",1886),b(1887,1,qe,x3n),s.wj=function(e){return ki(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/36",1887),b(1888,1,qe,L3n),s.wj=function(e){return I(e,15)},s.xj=function(e){return F(Ds,Ob,15,e,0,1)},w(Wt,"XMLTypePackageImpl/37",1888),b(1889,1,qe,N3n),s.wj=function(e){return I(e,15)},s.xj=function(e){return F(Ds,Ob,15,e,0,1)},w(Wt,"XMLTypePackageImpl/38",1889),b(1890,1,qe,B3n),s.wj=function(e){return ki(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/39",1890),b(1855,1,qe,R3n),s.wj=function(e){return I(e,668)},s.xj=function(e){return F(By,rn,2022,e,0,1)},w(Wt,"XMLTypePackageImpl/4",1855),b(1891,1,qe,_3n),s.wj=function(e){return ki(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/40",1891),b(1892,1,qe,K3n),s.wj=function(e){return ki(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/41",1892),b(1893,1,qe,H3n),s.wj=function(e){return ki(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/42",1893),b(1894,1,qe,q3n),s.wj=function(e){return ki(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/43",1894),b(1895,1,qe,G3n),s.wj=function(e){return ki(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/44",1895),b(1896,1,qe,z3n),s.wj=function(e){return I(e,184)},s.xj=function(e){return F(d0,q,184,e,0,1)},w(Wt,"XMLTypePackageImpl/45",1896),b(1897,1,qe,U3n),s.wj=function(e){return ki(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/46",1897),b(1898,1,qe,W3n),s.wj=function(e){return ki(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/47",1898),b(1899,1,qe,X3n),s.wj=function(e){return ki(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/48",1899),b(Tl,1,qe,V3n),s.wj=function(e){return I(e,184)},s.xj=function(e){return F(d0,q,184,e,0,1)},w(Wt,"XMLTypePackageImpl/49",Tl),b(1856,1,qe,Q3n),s.wj=function(e){return I(e,669)},s.xj=function(e){return F(D1n,rn,2023,e,0,1)},w(Wt,"XMLTypePackageImpl/5",1856),b(1901,1,qe,J3n),s.wj=function(e){return I(e,162)},s.xj=function(e){return F(a0,q,162,e,0,1)},w(Wt,"XMLTypePackageImpl/50",1901),b(1902,1,qe,Y3n),s.wj=function(e){return ki(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/51",1902),b(1903,1,qe,Z3n),s.wj=function(e){return I(e,19)},s.xj=function(e){return F(Wi,q,19,e,0,1)},w(Wt,"XMLTypePackageImpl/52",1903),b(1857,1,qe,n4n),s.wj=function(e){return ki(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Wt,"XMLTypePackageImpl/6",1857),b(1858,1,qe,e4n),s.wj=function(e){return I(e,190)},s.xj=function(e){return F(yu,q,190,e,0,2)},w(Wt,"XMLTypePackageImpl/7",1858),b(1859,1,qe,t4n),s.wj=function(e){return q0(e)},s.xj=function(e){return F(oi,q,476,e,8,1)},w(Wt,"XMLTypePackageImpl/8",1859),b(1860,1,qe,i4n),s.wj=function(e){return I(e,217)},s.xj=function(e){return F(op,q,217,e,0,1)},w(Wt,"XMLTypePackageImpl/9",1860);var Mf,R1,v9,oI,P;b(50,60,Uh,Ee),w(A1,"RegEx/ParseException",50),b(820,1,{},ZH),s.sl=function(e){return ei*16)throw T(new Ee(Pe((je(),Vqn))));i=i*16+c}while(!0);if(this.a!=125)throw T(new Ee(Pe((je(),Qqn))));if(i>q4)throw T(new Ee(Pe((je(),Jqn))));e=i}else{if(c=0,this.c!=0||(c=Sa(this.a))<0)throw T(new Ee(Pe((je(),M1))));if(i=c,Qe(this),this.c!=0||(c=Sa(this.a))<0)throw T(new Ee(Pe((je(),M1))));i=i*16+c,e=i}break;case 117:if(r=0,Qe(this),this.c!=0||(r=Sa(this.a))<0)throw T(new Ee(Pe((je(),M1))));if(t=r,Qe(this),this.c!=0||(r=Sa(this.a))<0)throw T(new Ee(Pe((je(),M1))));if(t=t*16+r,Qe(this),this.c!=0||(r=Sa(this.a))<0)throw T(new Ee(Pe((je(),M1))));if(t=t*16+r,Qe(this),this.c!=0||(r=Sa(this.a))<0)throw T(new Ee(Pe((je(),M1))));t=t*16+r,e=t;break;case 118:if(Qe(this),this.c!=0||(r=Sa(this.a))<0)throw T(new Ee(Pe((je(),M1))));if(t=r,Qe(this),this.c!=0||(r=Sa(this.a))<0)throw T(new Ee(Pe((je(),M1))));if(t=t*16+r,Qe(this),this.c!=0||(r=Sa(this.a))<0)throw T(new Ee(Pe((je(),M1))));if(t=t*16+r,Qe(this),this.c!=0||(r=Sa(this.a))<0)throw T(new Ee(Pe((je(),M1))));if(t=t*16+r,Qe(this),this.c!=0||(r=Sa(this.a))<0)throw T(new Ee(Pe((je(),M1))));if(t=t*16+r,Qe(this),this.c!=0||(r=Sa(this.a))<0)throw T(new Ee(Pe((je(),M1))));if(t=t*16+r,t>q4)throw T(new Ee(Pe((je(),"parser.descappe.4"))));e=t;break;case 65:case 90:case 122:throw T(new Ee(Pe((je(),Yqn))))}return e},s.ul=function(e){var t,i;switch(e){case 100:i=(this.e&32)==32?El("Nd",!0):(Je(),fI);break;case 68:i=(this.e&32)==32?El("Nd",!1):(Je(),K1n);break;case 119:i=(this.e&32)==32?El("IsWord",!0):(Je(),Iv);break;case 87:i=(this.e&32)==32?El("IsWord",!1):(Je(),q1n);break;case 115:i=(this.e&32)==32?El("IsSpace",!0):(Je(),$p);break;case 83:i=(this.e&32)==32?El("IsSpace",!1):(Je(),H1n);break;default:throw T(new _r((t=e,YGn+t.toString(16))))}return i},s.vl=function(e){var t,i,r,c,o,f,h,l,a,d,g,p;for(this.b=1,Qe(this),t=null,this.c==0&&this.a==94?(Qe(this),e?d=(Je(),Je(),new es(5)):(t=(Je(),Je(),new es(4)),yc(t,0,q4),d=new es(4))):d=(Je(),Je(),new es(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:Ab(d,this.ul(i)),r=!0;break;case 105:case 73:case 99:case 67:i=this.Ll(d,i),i<0&&(r=!0);break;case 112:case 80:if(g=mY(this,i),!g)throw T(new Ee(Pe((je(),KB))));Ab(d,g),r=!0;break;default:i=this.tl()}else if(p==20){if(f=u3(this.i,58,this.d),f<0)throw T(new Ee(Pe((je(),qtn))));if(h=!0,Di(this.i,this.d)==94&&(++this.d,h=!1),o=Zu(this.i,this.d,f),l=hPn(o,h,(this.e&512)==512),!l)throw T(new Ee(Pe((je(),Gqn))));if(Ab(d,l),r=!0,f+1>=this.j||Di(this.i,f+1)!=93)throw T(new Ee(Pe((je(),qtn))));this.d=f+2}if(Qe(this),!r)if(this.c!=0||this.a!=45)yc(d,i,i);else{if(Qe(this),(p=this.c)==1)throw T(new Ee(Pe((je(),jA))));p==0&&this.a==93?(yc(d,i,i),yc(d,45,45)):(a=this.a,p==10&&(a=this.tl()),Qe(this),yc(d,i,a))}(this.e&Eo)==Eo&&this.c==0&&this.a==44&&Qe(this)}if(this.c==1)throw T(new Ee(Pe((je(),jA))));return t&&(F6(t,d),d=t),Jw(d),D6(d),this.b=0,Qe(this),d},s.wl=function(){var e,t,i,r;for(i=this.vl(!1);(r=this.c)!=7;)if(e=this.a,r==0&&(e==45||e==38)||r==4){if(Qe(this),this.c!=9)throw T(new Ee(Pe((je(),Uqn))));if(t=this.vl(!1),r==4)Ab(i,t);else if(e==45)F6(i,t);else if(e==38)zRn(i,t);else throw T(new _r("ASSERT"))}else throw T(new Ee(Pe((je(),Wqn))));return Qe(this),i},s.xl=function(){var e,t;return e=this.a-48,t=(Je(),Je(),new e$(12,null,e)),!this.g&&(this.g=new lj),hj(this.g,new Nq(e)),Qe(this),t},s.yl=function(){return Qe(this),Je(),Iee},s.zl=function(){return Qe(this),Je(),Pee},s.Al=function(){throw T(new Ee(Pe((je(),Os))))},s.Bl=function(){throw T(new Ee(Pe((je(),Os))))},s.Cl=function(){return Qe(this),xwe()},s.Dl=function(){return Qe(this),Je(),Dee},s.El=function(){return Qe(this),Je(),Fee},s.Fl=function(){var e;if(this.d>=this.j||((e=Di(this.i,this.d++))&65504)!=64)throw T(new Ee(Pe((je(),Kqn))));return Qe(this),Je(),Je(),new ih(0,e-64)},s.Gl=function(){return Qe(this),vye()},s.Hl=function(){return Qe(this),Je(),xee},s.Il=function(){var e;return e=(Je(),Je(),new ih(0,105)),Qe(this),e},s.Jl=function(){return Qe(this),Je(),$ee},s.Kl=function(){return Qe(this),Je(),Oee},s.Ll=function(e,t){return this.tl()},s.Ml=function(){return Qe(this),Je(),R1n},s.Nl=function(){var e,t,i,r,c;if(this.d+1>=this.j)throw T(new Ee(Pe((je(),Bqn))));if(r=-1,t=null,e=Di(this.i,this.d),49<=e&&e<=57){if(r=e-48,!this.g&&(this.g=new lj),hj(this.g,new Nq(r)),++this.d,Di(this.i,this.d)!=41)throw T(new Ee(Pe((je(),_a))));++this.d}else switch(e==63&&--this.d,Qe(this),t=HZ(this),t.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw T(new Ee(Pe((je(),_a))));break;default:throw T(new Ee(Pe((je(),Rqn))))}if(Qe(this),c=Wd(this),i=null,c.e==2){if(c.em()!=2)throw T(new Ee(Pe((je(),_qn))));i=c.am(1),c=c.am(0)}if(this.c!=7)throw T(new Ee(Pe((je(),_a))));return Qe(this),Je(),Je(),new HPn(r,t,c,i)},s.Ol=function(){return Qe(this),Je(),_1n},s.Pl=function(){var e;if(Qe(this),e=UE(24,Wd(this)),this.c!=7)throw T(new Ee(Pe((je(),_a))));return Qe(this),e},s.Ql=function(){var e;if(Qe(this),e=UE(20,Wd(this)),this.c!=7)throw T(new Ee(Pe((je(),_a))));return Qe(this),e},s.Rl=function(){var e;if(Qe(this),e=UE(22,Wd(this)),this.c!=7)throw T(new Ee(Pe((je(),_a))));return Qe(this),e},s.Sl=function(){var e,t,i,r,c;for(e=0,i=0,t=-1;this.d=this.j)throw T(new Ee(Pe((je(),Ktn))));if(t==45){for(++this.d;this.d=this.j)throw T(new Ee(Pe((je(),Ktn))))}if(t==58){if(++this.d,Qe(this),r=WCn(Wd(this),e,i),this.c!=7)throw T(new Ee(Pe((je(),_a))));Qe(this)}else if(t==41)++this.d,Qe(this),r=WCn(Wd(this),e,i);else throw T(new Ee(Pe((je(),Nqn))));return r},s.Tl=function(){var e;if(Qe(this),e=UE(21,Wd(this)),this.c!=7)throw T(new Ee(Pe((je(),_a))));return Qe(this),e},s.Ul=function(){var e;if(Qe(this),e=UE(23,Wd(this)),this.c!=7)throw T(new Ee(Pe((je(),_a))));return Qe(this),e},s.Vl=function(){var e,t;if(Qe(this),e=this.f++,t=SD(Wd(this),e),this.c!=7)throw T(new Ee(Pe((je(),_a))));return Qe(this),t},s.Wl=function(){var e;if(Qe(this),e=SD(Wd(this),0),this.c!=7)throw T(new Ee(Pe((je(),_a))));return Qe(this),e},s.Xl=function(e){return Qe(this),this.c==5?(Qe(this),LE(e,(Je(),Je(),new ib(9,e)))):LE(e,(Je(),Je(),new ib(3,e)))},s.Yl=function(e){var t;return Qe(this),t=(Je(),Je(),new v5(2)),this.c==5?(Qe(this),Oa(t,k9),Oa(t,e)):(Oa(t,e),Oa(t,k9)),t},s.Zl=function(e){return Qe(this),this.c==5?(Qe(this),Je(),Je(),new ib(9,e)):(Je(),Je(),new ib(3,e))},s.a=0,s.b=0,s.c=0,s.d=0,s.e=0,s.f=1,s.g=null,s.j=0,w(A1,"RegEx/RegexParser",820),b(1824,820,{},T9n),s.sl=function(e){return!1},s.tl=function(){return ZY(this)},s.ul=function(e){return v4(e)},s.vl=function(e){return N_n(this)},s.wl=function(){throw T(new Ee(Pe((je(),Os))))},s.xl=function(){throw T(new Ee(Pe((je(),Os))))},s.yl=function(){throw T(new Ee(Pe((je(),Os))))},s.zl=function(){throw T(new Ee(Pe((je(),Os))))},s.Al=function(){return Qe(this),v4(67)},s.Bl=function(){return Qe(this),v4(73)},s.Cl=function(){throw T(new Ee(Pe((je(),Os))))},s.Dl=function(){throw T(new Ee(Pe((je(),Os))))},s.El=function(){throw T(new Ee(Pe((je(),Os))))},s.Fl=function(){return Qe(this),v4(99)},s.Gl=function(){throw T(new Ee(Pe((je(),Os))))},s.Hl=function(){throw T(new Ee(Pe((je(),Os))))},s.Il=function(){return Qe(this),v4(105)},s.Jl=function(){throw T(new Ee(Pe((je(),Os))))},s.Kl=function(){throw T(new Ee(Pe((je(),Os))))},s.Ll=function(e,t){return Ab(e,v4(t)),-1},s.Ml=function(){return Qe(this),Je(),Je(),new ih(0,94)},s.Nl=function(){throw T(new Ee(Pe((je(),Os))))},s.Ol=function(){return Qe(this),Je(),Je(),new ih(0,36)},s.Pl=function(){throw T(new Ee(Pe((je(),Os))))},s.Ql=function(){throw T(new Ee(Pe((je(),Os))))},s.Rl=function(){throw T(new Ee(Pe((je(),Os))))},s.Sl=function(){throw T(new Ee(Pe((je(),Os))))},s.Tl=function(){throw T(new Ee(Pe((je(),Os))))},s.Ul=function(){throw T(new Ee(Pe((je(),Os))))},s.Vl=function(){var e;if(Qe(this),e=SD(Wd(this),0),this.c!=7)throw T(new Ee(Pe((je(),_a))));return Qe(this),e},s.Wl=function(){throw T(new Ee(Pe((je(),Os))))},s.Xl=function(e){return Qe(this),LE(e,(Je(),Je(),new ib(3,e)))},s.Yl=function(e){var t;return Qe(this),t=(Je(),Je(),new v5(2)),Oa(t,e),Oa(t,k9),t},s.Zl=function(e){return Qe(this),Je(),Je(),new ib(3,e)};var Ug=null,Sv=null;w(A1,"RegEx/ParserForXMLSchema",1824),b(117,1,G4,cd),s.$l=function(e){throw T(new _r("Not supported."))},s._l=function(){return-1},s.am=function(e){return null},s.bm=function(){return null},s.cm=function(e){},s.dm=function(e){},s.em=function(){return 0},s.Ib=function(){return this.fm(0)},s.fm=function(e){return this.e==11?".":""},s.e=0;var L1n,Pv,m9,See,N1n,aw=null,fI,jH=null,B1n,k9,EH=null,R1n,_1n,K1n,H1n,q1n,Pee,$p,Iee,Oee,Dee,$ee,Iv,Fee,xee,aMe=w(A1,"RegEx/Token",117);b(136,117,{3:1,136:1,117:1},es),s.fm=function(e){var t,i,r;if(this.e==4)if(this==B1n)i=".";else if(this==fI)i="\\d";else if(this==Iv)i="\\w";else if(this==$p)i="\\s";else{for(r=new i1,r.a+="[",t=0;t0&&(r.a+=","),this.b[t]===this.b[t+1]?dr(r,U7(this.b[t])):(dr(r,U7(this.b[t])),r.a+="-",dr(r,U7(this.b[t+1])));r.a+="]",i=r.a}else if(this==K1n)i="\\D";else if(this==q1n)i="\\W";else if(this==H1n)i="\\S";else{for(r=new i1,r.a+="[^",t=0;t0&&(r.a+=","),this.b[t]===this.b[t+1]?dr(r,U7(this.b[t])):(dr(r,U7(this.b[t])),r.a+="-",dr(r,U7(this.b[t+1])));r.a+="]",i=r.a}return i},s.a=!1,s.c=!1,w(A1,"RegEx/RangeToken",136),b(584,1,{584:1},Nq),s.a=0,w(A1,"RegEx/RegexParser/ReferencePosition",584),b(583,1,{3:1,583:1},L8n),s.Fb=function(e){var t;return e==null||!I(e,583)?!1:(t=u(e,583),Mn(this.b,t.b)&&this.a==t.a)},s.Hb=function(){return m1(this.b+"/"+WY(this.a))},s.Ib=function(){return this.c.fm(this.a)},s.a=0,w(A1,"RegEx/RegularExpression",583),b(223,117,G4,ih),s._l=function(){return this.a},s.fm=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="\\"+eD(this.a&Ut);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>=Yi?(i=(t=this.a>>>0,"0"+t.toString(16)),r="\\v"+Zu(i,i.length-6,i.length)):r=""+eD(this.a&Ut)}break;case 8:this==R1n||this==_1n?r=""+eD(this.a&Ut):r="\\"+eD(this.a&Ut);break;default:r=null}return r},s.a=0,w(A1,"RegEx/Token/CharToken",223),b(309,117,G4,ib),s.am=function(e){return this.a},s.cm=function(e){this.b=e},s.dm=function(e){this.c=e},s.em=function(){return 1},s.fm=function(e){var t;if(this.e==3)if(this.c<0&&this.b<0)t=this.a.fm(e)+"*";else if(this.c==this.b)t=this.a.fm(e)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)t=this.a.fm(e)+"{"+this.c+","+this.b+"}";else if(this.c>=0&&this.b<0)t=this.a.fm(e)+"{"+this.c+",}";else throw T(new _r("Token#toString(): CLOSURE "+this.c+Ji+this.b));else if(this.c<0&&this.b<0)t=this.a.fm(e)+"*?";else if(this.c==this.b)t=this.a.fm(e)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)t=this.a.fm(e)+"{"+this.c+","+this.b+"}?";else if(this.c>=0&&this.b<0)t=this.a.fm(e)+"{"+this.c+",}?";else throw T(new _r("Token#toString(): NONGREEDYCLOSURE "+this.c+Ji+this.b));return t},s.b=0,s.c=0,w(A1,"RegEx/Token/ClosureToken",309),b(821,117,G4,PW),s.am=function(e){return e==0?this.a:this.b},s.em=function(){return 2},s.fm=function(e){var t;return this.b.e==3&&this.b.am(0)==this.a?t=this.a.fm(e)+"+":this.b.e==9&&this.b.am(0)==this.a?t=this.a.fm(e)+"+?":t=this.a.fm(e)+(""+this.b.fm(e)),t},w(A1,"RegEx/Token/ConcatToken",821),b(1822,117,G4,HPn),s.am=function(e){if(e==0)return this.d;if(e==1)return this.b;throw T(new _r("Internal Error: "+e))},s.em=function(){return this.b?2:1},s.fm=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},s.c=0,w(A1,"RegEx/Token/ConditionToken",1822),b(1823,117,G4,HMn),s.am=function(e){return this.b},s.em=function(){return 1},s.fm=function(e){return"(?"+(this.a==0?"":WY(this.a))+(this.c==0?"":WY(this.c))+":"+this.b.fm(e)+")"},s.a=0,s.c=0,w(A1,"RegEx/Token/ModifierToken",1823),b(822,117,G4,xW),s.am=function(e){return this.a},s.em=function(){return 1},s.fm=function(e){var t;switch(t=null,this.e){case 6:this.b==0?t="(?:"+this.a.fm(e)+")":t="("+this.a.fm(e)+")";break;case 20:t="(?="+this.a.fm(e)+")";break;case 21:t="(?!"+this.a.fm(e)+")";break;case 22:t="(?<="+this.a.fm(e)+")";break;case 23:t="(?"+this.a.fm(e)+")"}return t},s.b=0,w(A1,"RegEx/Token/ParenToken",822),b(521,117,{3:1,117:1,521:1},e$),s.bm=function(){return this.b},s.fm=function(e){return this.e==12?"\\"+this.a:Mme(this.b)},s.a=0,w(A1,"RegEx/Token/StringToken",521),b(465,117,G4,v5),s.$l=function(e){Oa(this,e)},s.am=function(e){return u(Md(this.a,e),117)},s.em=function(){return this.a?this.a.a.c.length:0},s.fm=function(e){var t,i,r,c,o;if(this.e==1){if(this.a.a.c.length==2)t=u(Md(this.a,0),117),i=u(Md(this.a,1),117),i.e==3&&i.am(0)==t?c=t.fm(e)+"+":i.e==9&&i.am(0)==t?c=t.fm(e)+"+?":c=t.fm(e)+(""+i.fm(e));else{for(o=new i1,r=0;r=this.c.b:this.a<=this.c.b},s.Sb=function(){return this.b>0},s.Tb=function(){return this.b},s.Vb=function(){return this.b-1},s.Qb=function(){throw T(new t1(czn))},s.a=0,s.b=0,w(oin,"ExclusiveRange/RangeIterator",254);var Ls=g3(EA,"C"),be=g3(om,"I"),Ku=g3(X2,"Z"),Yl=g3(fm,"J"),yu=g3(cm,"B"),Ei=g3(um,"D"),dw=g3(sm,"F"),Wg=g3(hm,"S"),dMe=Ct("org.eclipse.elk.core.labels","ILabelManager"),G1n=Ct(Ui,"DiagnosticChain"),z1n=Ct($Gn,"ResourceSet"),U1n=w(Ui,"InvocationTargetException",null),Nee=(gj(),rde),Bee=Bee=W4e;Z0e(Ute),Tbe("permProps",[[[LA,NA],[BA,"gecko1_8"]],[[LA,NA],[BA,"ie10"]],[[LA,NA],[BA,"ie8"]],[[LA,NA],[BA,"ie9"]],[[LA,NA],[BA,"safari"]]]),Bee(null,"elk",null)}).call(this)}).call(this,typeof Hee<"u"?Hee:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(ft,wt,Vt){function Et(qt,Ge){if(!(qt instanceof Ge))throw new TypeError("Cannot call a class as a function")}function y(qt,Ge){if(!qt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ge&&(typeof Ge=="object"||typeof Ge=="function")?Ge:qt}function Ht(qt,Ge){if(typeof Ge!="function"&&Ge!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Ge);qt.prototype=Object.create(Ge&&Ge.prototype,{constructor:{value:qt,enumerable:!1,writable:!0,configurable:!0}}),Ge&&(Object.setPrototypeOf?Object.setPrototypeOf(qt,Ge):qt.__proto__=Ge)}var Lc=ft("./elk-api.js").default,Bt=function(qt){Ht(Ge,qt);function Ge(){var Ki=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Et(this,Ge);var Ii=Object.assign({},Ki),An=!1;try{ft.resolve("web-worker"),An=!0}catch{}if(Ki.workerUrl)if(An){var Uc=ft("web-worker");Ii.workerFactory=function(vr){return new Uc(vr)}}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(!Ii.workerFactory){var Nc=ft("./elk-worker.min.js"),ju=Nc.Worker;Ii.workerFactory=function(vr){return new ju(vr)}}return y(this,(Ge.__proto__||Object.getPrototypeOf(Ge)).call(this,Ii))}return Ge}(Lc);Object.defineProperty(wt.exports,"__esModule",{value:!0}),wt.exports=Bt,Bt.default=Bt},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(ft,wt,Vt){wt.exports=Worker},{}]},{},[3])(3)})})(Uee);var TMe=Uee.exports;const MMe=gMe(TMe),AMe=(Ae,At,ft)=>{const{parentById:wt}=ft,Vt=new Set;let Et=Ae;for(;Et;){if(Vt.add(Et),Et===At)return Et;Et=wt[Et]}for(Et=At;Et;){if(Vt.has(Et))return Et;Et=wt[Et]}return"root"},qee=new MMe;let x0={};const SMe={};let Lp={};const PMe=async function(Ae,At,ft,wt,Vt,Et,y){const Lc=ft.select(`[id="${At}"]`).insert("g").attr("class","nodes"),Bt=Object.keys(Ae);return await Promise.all(Bt.map(async function(qt){const Ge=Ae[qt];let Ki="default";Ge.classes.length>0&&(Ki=Ge.classes.join(" ")),Ki=Ki+" flowchart-label";const Ii=V1n(Ge.styles);let An=Ge.text!==void 0?Ge.text:Ge.id;const Uc={width:0,height:0},Nc=[{id:Ge.id+"-west",layoutOptions:{"port.side":"WEST"}},{id:Ge.id+"-east",layoutOptions:{"port.side":"EAST"}},{id:Ge.id+"-south",layoutOptions:{"port.side":"SOUTH"}},{id:Ge.id+"-north",layoutOptions:{"port.side":"NORTH"}}];let ju=0,vr="",Jo={};switch(Ge.type){case"round":ju=5,vr="rect";break;case"square":vr="rect";break;case"diamond":vr="question",Jo={portConstraints:"FIXED_SIDE"};break;case"hexagon":vr="hexagon";break;case"odd":vr="rect_left_inv_arrow";break;case"lean_right":vr="lean_right";break;case"lean_left":vr="lean_left";break;case"trapezoid":vr="trapezoid";break;case"inv_trapezoid":vr="inv_trapezoid";break;case"odd_right":vr="rect_left_inv_arrow";break;case"circle":vr="circle";break;case"ellipse":vr="ellipse";break;case"stadium":vr="stadium";break;case"subroutine":vr="subroutine";break;case"cylinder":vr="cylinder";break;case"group":vr="rect";break;case"doublecircle":vr="doublecircle";break;default:vr="rect"}const H1={labelStyle:Ii.labelStyle,shape:vr,labelText:An,labelType:Ge.labelType,rx:ju,ry:ju,class:Ki,style:Ii.style,id:Ge.id,link:Ge.link,linkTarget:Ge.linkTarget,tooltip:Vt.db.getTooltip(Ge.id)||"",domId:Vt.db.lookUpDomId(Ge.id),haveCallback:Ge.haveCallback,width:Ge.type==="group"?500:void 0,dir:Ge.dir,type:Ge.type,props:Ge.props,padding:OH().flowchart.padding};let q1,ww;if(H1.type!=="group")ww=await kMe(Lc,H1,Ge.dir),q1=ww.node().getBBox();else{wt.createElementNS("http://www.w3.org/2000/svg","text");const{shapeSvg:G1,bbox:Th}=await yMe(Lc,H1,void 0,!0);Uc.width=Th.width,Uc.wrappingWidth=OH().flowchart.wrappingWidth,Uc.height=Th.height,Uc.labelNode=G1.node(),H1.labelData=Uc}const Np={id:Ge.id,ports:Ge.type==="diamond"?Nc:[],layoutOptions:Jo,labelText:An,labelData:Uc,domId:Vt.db.lookUpDomId(Ge.id),width:q1==null?void 0:q1.width,height:q1==null?void 0:q1.height,type:Ge.type,el:ww,parent:Et.parentById[Ge.id]};Lp[H1.id]=Np})),y},Gee=(Ae,At,ft)=>{const wt={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 wt.TD=wt.TB,K1.info("abc88",ft,At,Ae),wt[ft][At][Ae]},zee=(Ae,At,ft)=>{if(K1.info("getNextPort abc88",{node:Ae,edgeDirection:At,graphDirection:ft}),!x0[Ae])switch(ft){case"TB":case"TD":x0[Ae]={inPosition:"north",outPosition:"south"};break;case"BT":x0[Ae]={inPosition:"south",outPosition:"north"};break;case"RL":x0[Ae]={inPosition:"east",outPosition:"west"};break;case"LR":x0[Ae]={inPosition:"west",outPosition:"east"};break}const wt=At==="in"?x0[Ae].inPosition:x0[Ae].outPosition;return At==="in"?x0[Ae].inPosition=Gee(x0[Ae].inPosition,At,ft):x0[Ae].outPosition=Gee(x0[Ae].outPosition,At,ft),wt},IMe=(Ae,At)=>{let ft=Ae.start,wt=Ae.end;const Vt=ft,Et=wt,y=Lp[ft],Ht=Lp[wt];return!y||!Ht?{source:ft,target:wt}:(y.type==="diamond"&&(ft=`${ft}-${zee(ft,"out",At)}`),Ht.type==="diamond"&&(wt=`${wt}-${zee(wt,"in",At)}`),{source:ft,target:wt,sourceId:Vt,targetId:Et})},OMe=function(Ae,At,ft,wt){K1.info("abc78 edges = ",Ae);const Vt=wt.insert("g").attr("class","edgeLabels");let Et={},y=At.db.getDirection(),Ht,Lc;if(Ae.defaultStyle!==void 0){const Bt=V1n(Ae.defaultStyle);Ht=Bt.style,Lc=Bt.labelStyle}return Ae.forEach(function(Bt){const qt="L-"+Bt.start+"-"+Bt.end;Et[qt]===void 0?(Et[qt]=0,K1.info("abc78 new entry",qt,Et[qt])):(Et[qt]++,K1.info("abc78 new entry",qt,Et[qt]));let Ge=qt+"-"+Et[qt];K1.info("abc78 new link id to be used is",qt,Ge,Et[qt]);const Ki="LS-"+Bt.start,Ii="LE-"+Bt.end,An={style:"",labelStyle:""};switch(An.minlen=Bt.length||1,Bt.type==="arrow_open"?An.arrowhead="none":An.arrowhead="normal",An.arrowTypeStart="arrow_open",An.arrowTypeEnd="arrow_open",Bt.type){case"double_arrow_cross":An.arrowTypeStart="arrow_cross";case"arrow_cross":An.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":An.arrowTypeStart="arrow_point";case"arrow_point":An.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":An.arrowTypeStart="arrow_circle";case"arrow_circle":An.arrowTypeEnd="arrow_circle";break}let Uc="",Nc="";switch(Bt.stroke){case"normal":Uc="fill:none;",Ht!==void 0&&(Uc=Ht),Lc!==void 0&&(Nc=Lc),An.thickness="normal",An.pattern="solid";break;case"dotted":An.thickness="normal",An.pattern="dotted",An.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":An.thickness="thick",An.pattern="solid",An.style="stroke-width: 3.5px;fill:none;";break}if(Bt.style!==void 0){const ww=V1n(Bt.style);Uc=ww.style,Nc=ww.labelStyle}An.style=An.style+=Uc,An.labelStyle=An.labelStyle+=Nc,Bt.interpolate!==void 0?An.curve=X1n(Bt.interpolate,IH):Ae.defaultInterpolate!==void 0?An.curve=X1n(Ae.defaultInterpolate,IH):An.curve=X1n(SMe.curve,IH),Bt.text===void 0?Bt.style!==void 0&&(An.arrowheadStyle="fill: #333"):(An.arrowheadStyle="fill: #333",An.labelpos="c"),An.labelType=Bt.labelType,An.label=Bt.text.replace(vMe.lineBreakRegex,` +`),Bt.style===void 0&&(An.style=An.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),An.labelStyle=An.labelStyle.replace("color:","fill:"),An.id=Ge,An.classes="flowchart-link "+Ki+" "+Ii;const ju=jMe(Vt,An),{source:vr,target:Jo,sourceId:H1,targetId:q1}=IMe(Bt,y);K1.debug("abc78 source and target",vr,Jo),ft.edges.push({id:"e"+Bt.start+Bt.end,sources:[vr],targets:[Jo],sourceId:H1,targetId:q1,labelEl:ju,labels:[{width:An.width,height:An.height,orgWidth:An.width,orgHeight:An.height,text:An.label,layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}}],edgeData:An})}),ft},DMe=function(Ae,At,ft,wt,Vt){let Et="";switch(wt&&(Et=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,Et=Et.replace(/\(/g,"\\("),Et=Et.replace(/\)/g,"\\)")),At.arrowTypeStart){case"arrow_cross":Ae.attr("marker-start","url("+Et+"#"+Vt+"_"+ft+"-crossStart)");break;case"arrow_point":Ae.attr("marker-start","url("+Et+"#"+Vt+"_"+ft+"-pointStart)");break;case"arrow_barb":Ae.attr("marker-start","url("+Et+"#"+Vt+"_"+ft+"-barbStart)");break;case"arrow_circle":Ae.attr("marker-start","url("+Et+"#"+Vt+"_"+ft+"-circleStart)");break;case"aggregation":Ae.attr("marker-start","url("+Et+"#"+Vt+"_"+ft+"-aggregationStart)");break;case"extension":Ae.attr("marker-start","url("+Et+"#"+Vt+"_"+ft+"-extensionStart)");break;case"composition":Ae.attr("marker-start","url("+Et+"#"+Vt+"_"+ft+"-compositionStart)");break;case"dependency":Ae.attr("marker-start","url("+Et+"#"+Vt+"_"+ft+"-dependencyStart)");break;case"lollipop":Ae.attr("marker-start","url("+Et+"#"+Vt+"_"+ft+"-lollipopStart)");break}switch(At.arrowTypeEnd){case"arrow_cross":Ae.attr("marker-end","url("+Et+"#"+Vt+"_"+ft+"-crossEnd)");break;case"arrow_point":Ae.attr("marker-end","url("+Et+"#"+Vt+"_"+ft+"-pointEnd)");break;case"arrow_barb":Ae.attr("marker-end","url("+Et+"#"+Vt+"_"+ft+"-barbEnd)");break;case"arrow_circle":Ae.attr("marker-end","url("+Et+"#"+Vt+"_"+ft+"-circleEnd)");break;case"aggregation":Ae.attr("marker-end","url("+Et+"#"+Vt+"_"+ft+"-aggregationEnd)");break;case"extension":Ae.attr("marker-end","url("+Et+"#"+Vt+"_"+ft+"-extensionEnd)");break;case"composition":Ae.attr("marker-end","url("+Et+"#"+Vt+"_"+ft+"-compositionEnd)");break;case"dependency":Ae.attr("marker-end","url("+Et+"#"+Vt+"_"+ft+"-dependencyEnd)");break;case"lollipop":Ae.attr("marker-end","url("+Et+"#"+Vt+"_"+ft+"-lollipopEnd)");break}},$Me=function(Ae,At){return K1.info("Extracting classes"),At.db.getClasses()},FMe=function(Ae){const At={parentById:{},childrenById:{}},ft=Ae.getSubGraphs();return K1.info("Subgraphs - ",ft),ft.forEach(function(wt){wt.nodes.forEach(function(Vt){At.parentById[Vt]=wt.id,At.childrenById[wt.id]===void 0&&(At.childrenById[wt.id]=[]),At.childrenById[wt.id].push(Vt)})}),ft.forEach(function(wt){wt.id,At.parentById[wt.id]!==void 0&&At.parentById[wt.id]}),At},xMe=function(Ae,At,ft){const wt=AMe(Ae,At,ft);if(wt===void 0||wt==="root")return{x:0,y:0};const Vt=Lp[wt].offset;return{x:Vt.posX,y:Vt.posY}},LMe=function(Ae,At,ft,wt,Vt,Et){const y=xMe(At.sourceId,At.targetId,Vt),Ht=At.sections[0].startPoint,Lc=At.sections[0].endPoint,qt=(At.sections[0].bendPoints?At.sections[0].bendPoints:[]).map(Jo=>[Jo.x+y.x,Jo.y+y.y]),Ge=[[Ht.x+y.x,Ht.y+y.y],...qt,[Lc.x+y.x,Lc.y+y.y]],{x:Ki,y:Ii}=EMe(At.edgeData),An=CMe().x(Ki).y(Ii).curve(IH),Uc=Ae.insert("path").attr("d",An(Ge)).attr("class","path "+ft.classes).attr("fill","none"),Nc=Ae.insert("g").attr("class","edgeLabel"),ju=lI(Nc.node().appendChild(At.labelEl)),vr=ju.node().firstChild.getBoundingClientRect();ju.attr("width",vr.width),ju.attr("height",vr.height),Nc.attr("transform",`translate(${At.labels[0].x+y.x}, ${At.labels[0].y+y.y})`),DMe(Uc,ft,wt.type,wt.arrowMarkerAbsolute,Et)},Wee=(Ae,At)=>{Ae.forEach(ft=>{ft.children||(ft.children=[]);const wt=At.childrenById[ft.id];wt&&wt.forEach(Vt=>{ft.children.push(Lp[Vt])}),Wee(ft.children,At)})},NMe=async function(Ae,At,ft,wt){var Vt;Lp={},x0={};const Et=lI("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(K1.info("Drawing flowchart using v3 renderer",qee),wt.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:Lc,flowchart:Bt}=OH();let qt;Lc==="sandbox"&&(qt=lI("#i"+At));const Ge=Lc==="sandbox"?lI(qt.nodes()[0].contentDocument.body):lI("body"),Ki=Lc==="sandbox"?qt.nodes()[0].contentDocument:document,Ii=Ge.select(`[id="${At}"]`);mMe(Ii,["point","circle","cross"],wt.type,At);const Uc=wt.db.getVertices();let Nc;const ju=wt.db.getSubGraphs();K1.info("Subgraphs - ",ju);for(let G1=ju.length-1;G1>=0;G1--)Nc=ju[G1],wt.db.addVertex(Nc.id,{text:Nc.title,type:Nc.labelType},"group",void 0,Nc.classes,Nc.dir);const vr=Ii.insert("g").attr("class","subgraphs"),Jo=FMe(wt.db);y=await PMe(Uc,At,Ge,Ki,wt,Jo,y);const H1=Ii.insert("g").attr("class","edges edgePath"),q1=wt.db.getEdges();y=OMe(q1,wt,y,Ii),Object.keys(Lp).forEach(G1=>{const Th=Lp[G1];Th.parent||y.children.push(Th),Jo.childrenById[G1]!==void 0&&(Th.labels=[{text:Th.labelText,layoutOptions:{"nodeLabels.placement":"[H_CENTER, V_TOP, INSIDE]"},width:Th.labelData.width,height:Th.labelData.height}],delete Th.x,delete Th.y,delete Th.width,delete Th.height)}),Wee(y.children,Jo),K1.info("after layout",JSON.stringify(y,null,2));const Np=await qee.layout(y);Xee(0,0,Np.children,Ii,vr,wt,0),K1.info("after layout",Np),(Vt=Np.edges)==null||Vt.map(G1=>{LMe(H1,G1,G1.edgeData,wt,Jo,At)}),pMe({},Ii,Bt.diagramPadding,Bt.useMaxWidth),Et.remove()},Xee=(Ae,At,ft,wt,Vt,Et,y)=>{ft.forEach(function(Ht){if(Ht)if(Lp[Ht.id].offset={posX:Ht.x+Ae,posY:Ht.y+At,x:Ae,y:At,depth:y,width:Ht.width,height:Ht.height},Ht.type==="group"){const Lc=Vt.insert("g").attr("class","subgraph");Lc.insert("rect").attr("class","subgraph subgraph-lvl-"+y%5+" node").attr("x",Ht.x+Ae).attr("y",Ht.y+At).attr("width",Ht.width).attr("height",Ht.height);const Bt=Lc.insert("g").attr("class","label"),qt=OH().flowchart.htmlLabels?Ht.labelData.width/2:0;Bt.attr("transform",`translate(${Ht.labels[0].x+Ae+Ht.x+qt}, ${Ht.labels[0].y+At+Ht.y+3})`),Bt.node().appendChild(Ht.labelData.labelNode),K1.info("Id (UGH)= ",Ht.type,Ht.labels)}else K1.info("Id (UGH)= ",Ht.id),Ht.el.attr("transform",`translate(${Ht.x+Ae+Ht.width/2}, ${Ht.y+At+Ht.height/2})`)}),ft.forEach(function(Ht){Ht&&Ht.type==="group"&&Xee(Ae+Ht.x,At+Ht.y,Ht.children,wt,Vt,Et,y+1)})},BMe={getClasses:$Me,draw:NMe},RMe=Ae=>{let At="";for(let ft=0;ft<5;ft++)At+=` + .subgraph-lvl-${ft} { + fill: ${Ae[`surface${ft}`]}; + stroke: ${Ae[`surfacePeer${ft}`]}; + } + `;return At},_Me=Ae=>`.label { + font-family: ${Ae.fontFamily}; + color: ${Ae.nodeTextColor||Ae.textColor}; + } + .cluster-label text { + fill: ${Ae.titleColor}; + } + .cluster-label span { + color: ${Ae.titleColor}; + } + + .label text,span { + fill: ${Ae.nodeTextColor||Ae.textColor}; + color: ${Ae.nodeTextColor||Ae.textColor}; + } + + .node rect, + .node circle, + .node ellipse, + .node polygon, + .node path { + fill: ${Ae.mainBkg}; + stroke: ${Ae.nodeBorder}; + stroke-width: 1px; + } + + .node .label { + text-align: center; + } + .node.clickable { + cursor: pointer; + } + + .arrowheadPath { + fill: ${Ae.arrowheadColor}; + } + + .edgePath .path { + stroke: ${Ae.lineColor}; + stroke-width: 2.0px; + } + + .flowchart-link { + stroke: ${Ae.lineColor}; + fill: none; + } + + .edgeLabel { + background-color: ${Ae.edgeLabelBackground}; + rect { + opacity: 0.85; + background-color: ${Ae.edgeLabelBackground}; + fill: ${Ae.edgeLabelBackground}; + } + text-align: center; + } + + .cluster rect { + fill: ${Ae.clusterBkg}; + stroke: ${Ae.clusterBorder}; + stroke-width: 1px; + } + + .cluster text { + fill: ${Ae.titleColor}; + } + + .cluster span { + color: ${Ae.titleColor}; + } + /* .cluster div { + color: ${Ae.titleColor}; + } */ + + div.mermaidTooltip { + position: absolute; + text-align: center; + max-width: 200px; + padding: 2px; + font-family: ${Ae.fontFamily}; + font-size: 12px; + background: ${Ae.tertiaryColor}; + border: 1px solid ${Ae.border2}; + border-radius: 2px; + pointer-events: none; + z-index: 100; + } + + .flowchartTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${Ae.textColor}; + } + .subgraph { + stroke-width:2; + rx:3; + } + // .subgraph-lvl-1 { + // fill:#ccc; + // // stroke:black; + // } + + .flowchart-label text { + text-anchor: middle; + } + + ${RMe(Ae)} +`,KMe=_Me,QMe={db:bMe,renderer:BMe,parser:wMe,styles:KMe};export{QMe as diagram}; diff --git a/assets/fun.html-6201a3e7.js b/assets/fun.html-6201a3e7.js new file mode 100644 index 000000000..64304890e --- /dev/null +++ b/assets/fun.html-6201a3e7.js @@ -0,0 +1 @@ +const e=JSON.parse('{"key":"v-739773bb","path":"/use/fun.html","title":"娱乐","lang":"zh-cn","frontmatter":{"lang":"zh-cn","title":"娱乐","description":"本节内容 本节将展示海豹的「娱乐」扩展提供的指令,也包括若干不完整支持的其他 TRPG 规则。请善用侧边栏和搜索,按需阅读文档。 .jrrp 今日人品 .jrrp 今日人品是一个每个用户独立、每天刷新的 D100 随机数。你可通过 自定义文案 (../config/custom_text.md) 编写对它的解读。 .gugu 人工智能鸽子 .gugu ...","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/use/fun.html"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"娱乐"}],["meta",{"property":"og:description","content":"本节内容 本节将展示海豹的「娱乐」扩展提供的指令,也包括若干不完整支持的其他 TRPG 规则。请善用侧边栏和搜索,按需阅读文档。 .jrrp 今日人品 .jrrp 今日人品是一个每个用户独立、每天刷新的 D100 随机数。你可通过 自定义文案 (../config/custom_text.md) 编写对它的解读。 .gugu 人工智能鸽子 .gugu ..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-cn"}],["meta",{"property":"og:updated_time","content":"2023-11-01T05:34:52.000Z"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-11-01T05:34:52.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"娱乐\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2023-11-01T05:34:52.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[{"level":2,"title":".jrrp 今日人品","slug":"jrrp-今日人品","link":"#jrrp-今日人品","children":[]},{"level":2,"title":".gugu 人工智能鸽子","slug":"gugu-人工智能鸽子","link":"#gugu-人工智能鸽子","children":[]},{"level":2,"title":".jsr 不重复骰点","slug":"jsr-不重复骰点","link":"#jsr-不重复骰点","children":[]},{"level":2,"title":".drl 骰池抽取","slug":"drl-骰池抽取","link":"#drl-骰池抽取","children":[]},{"level":2,"title":".text 文本模板测试","slug":"text-文本模板测试","link":"#text-文本模板测试","children":[]},{"level":2,"title":"额外 TRPG 规则支持","slug":"额外-trpg-规则支持","link":"#额外-trpg-规则支持","children":[{"level":3,"title":".ww WOD 规则骰点","slug":"ww-wod-规则骰点","link":"#ww-wod-规则骰点","children":[]},{"level":3,"title":".dx 双重十字规则骰点","slug":"dx-双重十字规则骰点","link":"#dx-双重十字规则骰点","children":[]},{"level":3,"title":".ek 共鸣性怪异规则骰点","slug":"ek-共鸣性怪异规则骰点","link":"#ek-共鸣性怪异规则骰点","children":[]},{"level":3,"title":".ekgen 共鸣性怪异规则属性生成","slug":"ekgen-共鸣性怪异规则属性生成","link":"#ekgen-共鸣性怪异规则属性生成","children":[]},{"level":3,"title":".rsr 暗影狂奔规则骰点","slug":"rsr-暗影狂奔规则骰点","link":"#rsr-暗影狂奔规则骰点","children":[]}]}],"git":{"createdTime":1698072668000,"updatedTime":1698816892000,"contributors":[{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":3},{"name":"Xiangze Li","email":"lee_johnson@qq.com","commits":2}]},"readingTime":{"minutes":3.05,"words":914},"filePathRelative":"use/fun.md","localizedDate":"2023年10月23日","autoDesc":true,"excerpt":""}');export{e as data}; diff --git a/assets/fun.html-73af9b0a.js b/assets/fun.html-73af9b0a.js new file mode 100644 index 000000000..3b22144bc --- /dev/null +++ b/assets/fun.html-73af9b0a.js @@ -0,0 +1,39 @@ +import{_ as t}from"./plugin-vue_export-helper-c27b6911.js";import{r as l,o as r,c,a as d,d as e,b as i,w as s,f as o,e as n}from"./app-d2f9e1e0.js";const u={},v=n('

    娱乐

    本节内容

    本节将展示海豹的「娱乐」扩展提供的指令,也包括若干不完整支持的其他 TRPG 规则。请善用侧边栏和搜索,按需阅读文档。

    .jrrp 今日人品

    .jrrp

    ',4),h=n(`

    .gugu 人工智能鸽子

    .gugu.咕咕

    $ .gugu
    +🕊️:今天发版本,领导说发不完不让走
    +

    .gugu 来源 查看鸽子背后的故事。

    $ .gugu 来源
    +🕊️: 前往了一个以前捕鲸的小岛度假~这里人很亲切!但是吃了这里的鱼肉料理之后有点晕晕的诶...想到前几天<木落>的短信,还是别追究他为什么不在了。
    +    ——鹊鹊结合实际经历创作
    +

    .jsr 不重复骰点

    .jsr <次数># <面数> (<原因>) 投掷指定面数的骰子指定次数,使每一次的结果都不相同。

    $ .jsr 5# 100
    +<木落>掷骰10次:
    +D100=6
    +D100=71
    +D100=53
    +D100=31
    +D100=2
    +

    以这种方式骰出的点数会自动成为一个骰池,供 drl 指令使用。

    .drl 骰池抽取

    骰池(Draw Lot)是一组来自相同面数骰子、出目互不相同的骰点,支持每次抽取一个。骰池是每个群组共用的。

    .drl new <个数># <面数> 创建一个指定数量、指定面数的骰池。

    .drl / .drlh 从当前骰池抽取一个数值,后者将结果私聊发送。

    $ .drl
    +当前群组无骰池,请使用.drl new创建一个。
    +
    +$ .drl new 10# 1000
    +创建骰池成功,骰子面数1000,可抽取10次。
    +
    +$ .drl
    +<木落>掷出了 D1000=568
    +
    +$ .drl # 第 10 次
    +<木落>掷出了 D1000=539
    +骰池已经抽空,现在关闭。
    +

    .text 文本模板测试

    .text <文本模板>

    骰子会将模板内容解析后返回,其中含有的表达式和变量都将被求值。

    $ .text 看看手气 {1d16}
    +看看手气 2
    +

    额外 TRPG 规则支持

    .ww WOD 规则骰点

    `,20),m=d("code",null,".ww <表达式>",-1),g=n(`

    特别地,使用 ww 指令时允许省略加骰线 aY,这时将使用默认值进行骰点。

    $ .ww 5
    +<木落>掷出了 5a10=[成功0/5 {6,2,2,7,4}]=0
    +

    .ww set <默认值> 设定默认值,默认值可以由 加骰线 aY、骰子面数 mZ、成功线 kN 中的部分任意组合。默认值的生效范围是当前群组。

    .ww set clr 重置默认值为:加骰线 10、面数 10、成功线 8,即 a10m10k8

    $ .ww set a6m10k9
    +成功线k: 已修改为9
    +骰子面数m: 已修改为10
    +加骰线a: 已修改为6
    +
    +$ .ww 5
    +<木落>掷出了 5a6=[成功1/11 轮数:4 {<9*>,5,<6>,3,3},{<6>,<6>},{<6>,<7>},{5,4}]=1
    +
    +$ .ww set clr
    +骰池设定已恢复默认
    +

    .dx 双重十字规则骰点

    `,6),p=d("code",null,".dx <表达式>",-1),b=d("h3",{id:"ek-共鸣性怪异规则骰点",tabindex:"-1"},[d("a",{class:"header-anchor",href:"#ek-共鸣性怪异规则骰点","aria-hidden":"true"},"#"),e(),d("code",null,".ek"),e(" 共鸣性怪异规则骰点")],-1),x=d("p",null,[d("code",null,".ek <技能名>(+<奖励骰>) (<判定线>)")],-1),_=n('

    .ekgen 共鸣性怪异规则属性生成

    .ekgen (<数量>) 生成指定数量的共鸣性怪异角色属性。

    .rsr 暗影狂奔规则骰点

    .rsr <骰数> 骰点。

    骰指定数量的 D6。每有一个骰子骰出 5 或 6 称为 1 成功度。

    如果超过半数的骰子骰出 1,称为这次骰点「失误」;失误的同时成功度为 0,称为「严重失误」。

    ',6);function w(f,k){const a=l("RouterLink");return r(),c("div",null,[v,d("p",null,[e("今日人品是一个每个用户独立、每天刷新的 D100 随机数。你可通过 "),i(a,{to:"/config/custom_text.html"},{default:s(()=>[e("自定义文案")]),_:1}),e(" 编写对它的解读。")]),h,d("p",null,[m,e(" 骰点,表达式用法请参考 "),i(a,{to:"/use/core.html#wod-%E9%AA%B0%E7%82%B9"},{default:s(()=>[e("核心指令")]),_:1}),e(" 节。")]),g,d("p",null,[p,e(" 骰点,表达式用法请参考 "),i(a,{to:"/use/core.html#%E5%8F%8C%E5%8D%81%E5%AD%97%E9%AA%B0%E7%82%B9"},{default:s(()=>[e("核心指令")]),_:1}),e(" 节。")]),b,x,o(" TODO 由熟悉规则的朋友结合规则说明用法 "),_])}const $=t(u,[["render",w],["__file","fun.html.vue"]]);export{$ as default}; diff --git a/assets/ganttDiagram-6a1a118f-b9fb0fb1.js b/assets/ganttDiagram-6a1a118f-b9fb0fb1.js new file mode 100644 index 000000000..38fd0def0 --- /dev/null +++ b/assets/ganttDiagram-6a1a118f-b9fb0fb1.js @@ -0,0 +1,266 @@ +import{av as Be,aw as Ze,ax as Xe,ay as qe,az as Dn,aA as Kt,aB as Mn,aC as ye,aD as ke,aE as nt,c as xt,s as Sn,g as _n,v as Un,x as Yn,b as Fn,a as En,z as Ln,m as An,l as qt,h as Pt,i as In,j as Wn,y as On}from"./mermaid.core-d8bc71ff.js";import{b as zn,t as Ue,c as Hn,a as Nn,l as Vn}from"./linear-0a2d62a3.js";import{i as Pn}from"./init-77b53fdd.js";import"./app-d2f9e1e0.js";function Rn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n=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,y=3,_=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?Xn:qn;function w(x){var q=r??(e.ticks?e.ticks.apply(e,n):e.domain()),g=i??(e.tickFormat?e.tickFormat.apply(e,n):Zn),E=Math.max(s,0)+y,O=e.range(),W=+O[0]+_,B=+O[O.length-1]+_,Z=(e.bandwidth?jn:Gn)(e.copy(),_),Q=x.selection?x.selection():x,v=Q.selectAll(".domain").data([null]),A=Q.selectAll(".tick").data(q,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*E).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+_):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))+_)})),T.remove(),v.attr("d",t===Rt||t===te?a?"M"+k*a+","+W+"H"+_+"V"+B+"H"+k*a:"M"+_+","+W+"V"+B:a?"M"+W+","+k*a+"V"+_+"H"+B+"V"+k*a:"M"+W+","+_+"H"+B),A.attr("opacity",1).attr("transform",function(o){return F(Z(o)+_)}),D.attr(C+"2",k*s),b.attr(C,k*E).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?(_=+x,w):_},w}function $n(t){return Ge(Bt,t)}function Jn(t){return Ge(ue,t)}const Kn=Math.PI/180,tr=180/Math.PI,Gt=18,je=.96422,Qe=1,$e=.82521,Je=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 Xe||(t=Dn(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)/$e)),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=$e*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+Je}function ne(t){return t>wt?t*t*t:Ke*(t-Je)}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(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(e(s=new Date(+s),a==null?1:Math.floor(a)),s),i.range=(s,a,y)=>{const _=[];if(s=i.ceil(s),y=y==null?1:Math.floor(y),!(s0))return _;let k;do _.push(k=new Date(+s)),e(s,y),t(s);while(kK(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 Lt=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());Lt.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=CE).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[q,g]=a[w/a[x-1][2]53)return null;"w"in l||(l.w=1),"Z"in l?(H=le(Yt(l.y,0,1)),j=H.getUTCDay(),H=j>4||j===0?jt.ceil(H):jt(H),H=Te.offset(H,(l.V-1)*7),l.y=H.getUTCFullYear(),l.m=H.getUTCMonth(),l.d=H.getUTCDate()+(l.w+6)%7):(H=ce(Yt(l.y,0,1)),j=H.getDay(),H=j>4||j===0?It.ceil(H):It(H),H=yt.offset(H,(l.V-1)*7),l.y=H.getFullYear(),l.m=H.getMonth(),l.d=H.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,L,M,l){for(var R=0,H=L.length,j=M.length,$,et;R=j)return-1;if($=L.charCodeAt(R++),$===37){if($=L.charAt(R++),et=Q[$ in Ee?L.charAt(R++):$],!et||(l=et(p,M,l))<0)return-1}else if($!=M.charCodeAt(l++))return-1}return l}function Y(p,L,M){var l=k.exec(L.slice(M));return l?(p.p=C.get(l[0].toLowerCase()),M+l[0].length):-1}function D(p,L,M){var l=x.exec(L.slice(M));return l?(p.w=q.get(l[0].toLowerCase()),M+l[0].length):-1}function b(p,L,M){var l=F.exec(L.slice(M));return l?(p.w=w.get(l[0].toLowerCase()),M+l[0].length):-1}function o(p,L,M){var l=O.exec(L.slice(M));return l?(p.m=W.get(l[0].toLowerCase()),M+l[0].length):-1}function d(p,L,M){var l=g.exec(L.slice(M));return l?(p.m=E.get(l[0].toLowerCase()),M+l[0].length):-1}function m(p,L,M){return T(p,e,L,M)}function u(p,L,M){return T(p,n,L,M)}function S(p,L,M){return T(p,r,L,M)}function c(p){return a[p.getDay()]}function X(p){return s[p.getDay()]}function f(p){return _[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 z(p){return a[p.getUTCDay()]}function N(p){return s[p.getUTCDay()]}function I(p){return _[p.getUTCMonth()]}function V(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 L=v(p+="",B);return L.toString=function(){return p},L},parse:function(p){var L=A(p+="",!1);return L.toString=function(){return p},L},utcFormat:function(p){var L=v(p+="",Z);return L.toString=function(){return p},L},utcParse:function(p){var L=A(p+="",!0);return L.toString=function(){return p},L}}}var Ee={"-":"",_:" ",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[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 Le(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 Er(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Lr(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 zr(t,e){return P(t.getHours(),e,2)}function Hr(t,e){return P(t.getHours()%12||12,e,2)}function Nr(t,e){return P(1+yt.count(mt(t),t),e,3)}function cn(t,e){return P(t.getMilliseconds(),e,3)}function Vr(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 Xr(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 qr(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 $r(t,e){return t=ln(t),P(t.getFullYear()%100,e,2)}function Jr(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 ze(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 He(){return"%"}function Ne(t){return+t}function Ve(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,_,k){var C=Hn(),F=C.invert,w=C.domain,x=k(".%L"),q=k(":%S"),g=k("%I:%M"),E=k("%I %p"),O=k("%a %d"),W=k("%b %d"),B=k("%B"),Z=k("%Y");function Q(v){return(_(v)4&&(x+=7),w.add(x,n));return q.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 _=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"):_.bind(this)(k,C)}}})})(dn);var xi=dn.exports;const wi=ke(xi);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={},_=function(g){return(g=+g)+(g>68?1900:2e3)},k=function(g){return function(E){this[g]=+E}},C=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(E){if(!E||E==="Z")return 0;var O=E.match(/([+-]|\d\d)/g),W=60*O[1]+(+O[2]||0);return W===0?0:O[0]==="+"?-W:W}(g)}],F=function(g){var E=y[g];return E&&(E.indexOf?E:E.s.concat(E.f))},w=function(g,E){var O,W=y.meridiem;if(W){for(var B=1;B<=24;B+=1)if(g.indexOf(W(B,0,E))>-1){O=B>12;break}}else O=g===(E?"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 E=y.ordinal,O=g.match(/\d+/);if(this.day=O[0],E)for(var W=1;W<=31;W+=1)E(W).replace(/\[|\]/g,"")===g&&(this.day=W)}],M:[s,k("month")],MM:[i,k("month")],MMM:[a,function(g){var E=F("months"),O=(F("monthsShort")||E.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 E=F("months").indexOf(g)+1;if(E<1)throw new Error;this.month=E%12||E}],Y:[/[+-]?\d+/,k("year")],YY:[i,function(g){this.year=_(g)}],YYYY:[/\d{4}/,k("year")],Z:C,ZZ:C};function q(g){var E,O;E=g,O=y&&y.formats;for(var W=(g=E.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-1)return new Date((c==="X"?1e3:1)*S);var f=q(c)(S),h=f.year,U=f.month,G=f.day,z=f.hours,N=f.minutes,I=f.seconds,V=f.milliseconds,st=f.zone,it=new Date,p=G||(h||U?1:it.getDate()),L=h||it.getFullYear(),M=0;h&&!U||(M=U>0?U-1:it.getMonth());var l=z||0,R=N||0,H=I||0,j=V||0;return st?new Date(Date.UTC(L,M,p,l,R,H,j+60*st.offset*1e3)):X?new Date(Date.UTC(L,M,p,l,R,H,j)):new Date(L,M,p,l,R,H,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 Ci=mn.exports;const Di=ke(Ci);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,_=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 _.ordinal(y.$D);case"gggg":return y.weekYear();case"GGGG":return y.isoWeekYear();case"wo":return _.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 Mi=gn.exports;const Si=ke(Mi);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],_=[1,31],k=[1,9],C=[1,10],F=[1,11],w=[1,12],x=[1,13],q=[1,14],g=[1,15],E=[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,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:y,18:_,19:k,20:C,21:F,22:w,23:x,24:q,25:g,26:E,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:_,19:k,20:C,21:F,22:w,23:x,24:q,25:g,26:E,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=[],S=[null],c=[],X=this.table,f="",h=0,U=0,G=2,z=1,N=c.slice.call(arguments,1),I=Object.create(this.lexer),V={yy:{}};for(var st in this.yy)Object.prototype.hasOwnProperty.call(this.yy,st)&&(V.yy[st]=this.yy[st]);I.setInput(o,V.yy),V.yy.lexer=I,V.yy.parser=this,typeof I.yylloc>"u"&&(I.yylloc={});var it=I.yylloc;c.push(it);var p=I.options&&I.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function L(){var ct;return ct=u.pop()||I.lex()||z,typeof ct!="number"&&(ct instanceof Array&&(u=ct,ct=u.pop()),ct=d.symbols_[ct]||ct),ct}for(var M,l,R,H,j={},$,et,Ut,Vt;;){if(l=m[m.length-1],this.defaultActions[l]?R=this.defaultActions[l]:((M===null||typeof M>"u")&&(M=L()),R=X[l]&&X[l][M]),typeof R>"u"||!R.length||!R[0]){var Jt="";Vt=[];for($ in X[l])this.terminals_[$]&&$>G&&Vt.push("'"+this.terminals_[$]+"'");I.showPosition?Jt="Parse error on line "+(h+1)+`: +`+I.showPosition()+` +Expecting `+Vt.join(", ")+", got '"+(this.terminals_[M]||M)+"'":Jt="Parse error on line "+(h+1)+": Unexpected "+(M==z?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(Jt,{text:I.match,token:this.terminals_[M]||M,line:I.yylineno,loc:it,expected:Vt})}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,U=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]]),H=this.performAction.apply(j,[f,U,h,V.yy,R[1],S,c].concat(N)),typeof H<"u")return H;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}},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 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;cd[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: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 _i=he;nt.extend(wi);nt.extend(Di);nt.extend(Si);let at="",ve="",be,xe="",zt=[],Ht=[],we={},Ce=[],$t=[],St="",De="";const yn=["active","done","crit","milestone"];let Me=[],Nt=!1,Se=!1,_e="sunday",de=0;const Ui=function(){Ce=[],$t=[],St="",Me=[],Zt=0,ge=void 0,Xt=void 0,J=[],at="",ve="",De="",be=void 0,xe="",zt=[],Ht=[],Nt=!1,Se=!1,de=0,we={},Ln(),_e="sunday"},Yi=function(t){ve=t},Fi=function(){return ve},Ei=function(t){be=t},Li=function(){return be},Ai=function(t){xe=t},Ii=function(){return xe},Wi=function(t){at=t},Oi=function(){Nt=!0},zi=function(){return Nt},Hi=function(){Se=!0},Ni=function(){return Se},Vi=function(t){De=t},Pi=function(){return De},Ri=function(){return at},Bi=function(t){zt=t.toLowerCase().split(/[\s,]+/)},Zi=function(){return zt},Xi=function(t){Ht=t.toLowerCase().split(/[\s,]+/)},qi=function(){return Ht},Gi=function(){return we},ji=function(t){St=t,Ce.push(t)},Qi=function(){return Ce},$i=function(){let t=Pe();const e=10;let n=0;for(;!t&&n=6&&n.includes("weekends")||n.includes(t.format("dddd").toLowerCase())?!0:n.includes(t.format(e.trim()))},Ji=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,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 _=_t(y);_!==void 0&&(a?_.endTime>a.endTime&&(a=_):a=_)}),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();{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();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.add(a,y);_.isValid()&&(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{window.open(n,"_self")}),we[r]=n)}),xn(t,"clickable")},xn=function(t,e){t.split(",").forEach(function(n){let r=_t(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{On.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:zi,enableTopAxis:Hi,topAxisEnabled:Ni,setAxisFormat:Yi,getAxisFormat:Fi,setTickInterval:Ei,getTickInterval:Li,setTodayMarker:Ai,getTodayMarker:Ii,setAccTitle:Sn,getAccTitle:_n,setDiagramTitle:Un,getDiagramTitle:Yn,setDisplayMode:Vi,getDisplayMode:Pi,setAccDescription:Fn,getAccDescription:En,addSection:ji,getSections:Qi,getTasks:$i,addTask:rs,findTaskById:_t,addTaskOrg:is,setIncludes:Bi,getIncludes:Zi,setExcludes:Xi,getExcludes:qi,setClickEvent:os,setLink:ss,getLinks:Gi,bindFunctions:cs,parseDuration:Tn,isInvalidDate:kn,setWeekday:Ji,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[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==="sandbox"?a.nodes()[0].contentDocument:document,k=_.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 q=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 E(T,Y){const D=T.startTime,b=Y.startTime;let o=0;return D>b?o=1:Dh.order))].map(h=>T.find(U=>U.order===h));q.append("g").selectAll("rect").data(S).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=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?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 z=0;for(const[I,V]of F.entries())h.type===V&&(z=I%i.numberSectionStyles);let N="";return h.active?h.crit?N+=" activeCrit":N=" active":h.done?h.crit?N=" doneCrit":N=" done":h.crit&&(N+=" crit"),N.length===0&&(N=" task"),h.milestone&&(N=" milestone "+N),N+=z,N+=" "+G,U+N}),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 z=this.getBBox().width;return z>G-U?G+z+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 z=this.getBBox().width;let N="";h.classes.length>0&&(N=h.classes.join(" "));let I=0;for(const[st,it]of F.entries())h.type===it&&(I=st%i.numberSectionStyles);let V="";return h.active&&(h.crit?V="activeCritText"+I:V="activeText"+I),h.done?h.crit?V=V+" doneCritText"+I:V=V+" doneText"+I:h.crit&&(V=V+" critText"+I),h.milestone&&(V+=" milestoneText"),z>G-U?G+z+1.5*i.leftPadding>m?N+" taskTextOutsideLeft taskTextOutside"+I+" "+V:N+" taskTextOutsideRight taskTextOutside"+I+" "+V+" width-"+z:N+" taskText taskText"+I+" "+V+" width-"+z}),xt().securityLevel==="sandbox"){let h;h=Pt("#i"+e);const U=h.nodes()[0].contentDocument;c.filter(function(G){return X[G.id]!==void 0}).each(function(G){var z=U.querySelector("#"+G.id),N=U.querySelector("#"+G.id+"-text");const I=z.parentNode;var V=U.createElement("a");V.setAttribute("xlink:href",X[G.id]),V.setAttribute("target","_top"),I.appendChild(V),V.appendChild(z),V.appendChild(N)})}}function B(T,Y,D,b,o,d,m,u){if(m.length===0&&u.length===0)return;let S,c;for(const{startTime:z,endTime:N}of d)(S===void 0||zc)&&(c=N);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,U=nt(S);for(;U.valueOf()<=c;)r.db.isInvalidDate(U,X,m,u)?h?h.end=U:h={start:U,end:U}:h&&(f.push(h),h=null),U=U.add(1,"d");q.append("g").selectAll("rect").data(f).enter().append("rect").attr("id",function(z){return"exclude-"+z.start.format("YYYY-MM-DD")}).attr("x",function(z){return g(z.start)+D}).attr("y",i.gridLineStartPadding).attr("width",function(z){const N=z.end.add(1,"day");return g(N)-g(z.start)}).attr("height",o-Y-i.gridLineStartPadding).attr("transform-origin",function(z,N){return(g(z.start)+D+.5*(g(z.end)-g(z.start))).toString()+"px "+(N*T+.5*o).toString()+"px"}).attr("class","exclude-range")}function Z(T,Y,D,b){let o=Jn(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],S=m[2],c=r.db.getWeekday()||i.weekday;switch(S){case"millisecond":o.ticks(Dt.every(u));break;case"second":o.ticks(gt.every(u));break;case"minute":o.ticks(Lt.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+", "+(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=$n(g).tickSize(-b+Y+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(Dt.every(S));break;case"second":u.ticks(gt.every(S));break;case"minute":u.ticks(Lt.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+", "+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]]);q.append("g").selectAll("text").data(b).enter().append(function(o){const d=o[0].split(Wn.lineBreakRegex),m=-(d.length-1)/2,u=_.createElementNS("http://www.w3.org/2000/svg","text");u.setAttribute("dy",m+"em");for(const[S,c]of d.entries()){const X=_.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` + .mermaid-main-font { + font-family: "trebuchet ms", verdana, arial, sans-serif; + font-family: var(--mermaid-font-family); + } + .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-size: ${t.ganttFontSize}; + // text-height: 14px; + font-family: 'trebuchet ms', verdana, arial, sans-serif; + font-family: var(--mermaid-font-family); + + } + + + /* Grid and axis */ + + .grid .tick { + stroke: ${t.gridColor}; + opacity: 0.8; + shape-rendering: crispEdges; + 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: 'trebuchet ms', verdana, arial, sans-serif; + font-family: var(--mermaid-font-family); + } + + // .taskText:not([font-size]) { + // font-size: ${t.ganttFontSize}; + // } + + .taskTextOutsideRight { + fill: ${t.taskTextDarkColor}; + text-anchor: start; + // font-size: ${t.ganttFontSize}; + font-family: 'trebuchet ms', verdana, arial, sans-serif; + font-family: var(--mermaid-font-family); + + } + + .taskTextOutsideLeft { + fill: ${t.taskTextDarkColor}; + text-anchor: end; + // font-size: ${t.ganttFontSize}; + } + + /* 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.textColor} ; + font-family: 'trebuchet ms', verdana, arial, sans-serif; + font-family: var(--mermaid-font-family); + } +`,gs=ms,vs={parser:_i,db:ls,renderer:ds,styles:gs};export{vs as diagram}; diff --git a/assets/gitGraphDiagram-2139c8c6-c9408d0d.js b/assets/gitGraphDiagram-2139c8c6-c9408d0d.js new file mode 100644 index 000000000..8ed1b13ad --- /dev/null +++ b/assets/gitGraphDiagram-2139c8c6-c9408d0d.js @@ -0,0 +1,70 @@ +import{c as O,s as Ct,g as At,a as Ot,b as St,v as It,x as Gt,l as G,j as D,z as Pt,as as ut,h as Nt,y as Ht,at as Bt,au as Vt}from"./mermaid.core-d8bc71ff.js";import"./app-d2f9e1e0.js";var mt=function(){var r=function(q,h,b,k){for(b=b||{},k=q.length;k--;b[q[k]]=h);return b},a=[1,3],o=[1,6],u=[1,4],n=[1,5],c=[2,5],m=[1,12],l=[5,7,13,19,21,23,24,26,28,31,36,39,46],E=[7,13,19,21,23,24,26,28,31,36,39],_=[7,12,13,19,21,23,24,26,28,31,36,39],i=[7,13,46],g=[1,42],f=[1,41],x=[7,13,29,32,34,37,46],p=[1,55],d=[1,56],y=[1,57],H=[7,13,32,34,41,46],w={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,COMMIT_TAG:34,EMPTYSTR:35,MERGE:36,COMMIT_TYPE:37,commitType:38,COMMIT:39,commit_arg:40,COMMIT_MSG:41,NORMAL:42,REVERSE:43,HIGHLIGHT:44,ID:45,";":46,$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:"COMMIT_TAG",35:"EMPTYSTR",36:"MERGE",37:"COMMIT_TYPE",39:"COMMIT",41:"COMMIT_MSG",42:"NORMAL",43:"REVERSE",44:"HIGHLIGHT",45:"ID",46:";"},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,5],[18,5],[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],[40,0],[40,1],[38,1],[38,1],[38,1],[27,1],[27,1],[4,1],[4,1],[4,1]],performAction:function(h,b,k,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],"",t[e]);break;case 26:case 28:s.cherryPick(t[e-2],"","");break;case 27:s.cherryPick(t[e],"",t[e-2]);break;case 29:s.merge(t[e],"","","");break;case 30:s.merge(t[e-2],t[e],"","");break;case 31:s.merge(t[e-2],"",t[e],"");break;case 32:s.merge(t[e-2],"","",t[e]);break;case 33:s.merge(t[e-4],t[e],"",t[e-2]);break;case 34:s.merge(t[e-4],"",t[e],t[e-2]);break;case 35:s.merge(t[e-4],"",t[e-2],t[e]);break;case 36:s.merge(t[e-4],t[e-2],t[e],"");break;case 37:s.merge(t[e-4],t[e-2],"",t[e]);break;case 38:s.merge(t[e-4],t[e],t[e-2],"");break;case 39:s.merge(t[e-6],t[e-4],t[e-2],t[e]);break;case 40:s.merge(t[e-6],t[e],t[e-4],t[e-2]);break;case 41:s.merge(t[e-6],t[e-4],t[e],t[e-2]);break;case 42:s.merge(t[e-6],t[e-2],t[e-4],t[e]);break;case 43:s.merge(t[e-6],t[e],t[e-2],t[e-4]);break;case 44:s.merge(t[e-6],t[e-2],t[e],t[e-4]);break;case 45:s.commit(t[e]);break;case 46:s.commit("","",s.commitType.NORMAL,t[e]);break;case 47:s.commit("","",t[e],"");break;case 48:s.commit("","",t[e],t[e-2]);break;case 49:s.commit("","",t[e-2],t[e]);break;case 50:s.commit("",t[e],s.commitType.NORMAL,"");break;case 51:s.commit("",t[e-2],s.commitType.NORMAL,t[e]);break;case 52:s.commit("",t[e],s.commitType.NORMAL,t[e-2]);break;case 53:s.commit("",t[e-2],t[e],"");break;case 54:s.commit("",t[e],t[e-2],"");break;case 55:s.commit("",t[e-4],t[e-2],t[e]);break;case 56:s.commit("",t[e-4],t[e],t[e-2]);break;case 57:s.commit("",t[e-2],t[e-4],t[e]);break;case 58:s.commit("",t[e],t[e-4],t[e-2]);break;case 59:s.commit("",t[e],t[e-2],t[e-4]);break;case 60:s.commit("",t[e-2],t[e],t[e-4]);break;case 61:s.commit(t[e],"",s.commitType.NORMAL,"");break;case 62:s.commit(t[e],"",s.commitType.NORMAL,t[e-2]);break;case 63:s.commit(t[e-2],"",s.commitType.NORMAL,t[e]);break;case 64:s.commit(t[e-2],"",t[e],"");break;case 65:s.commit(t[e],"",t[e-2],"");break;case 66:s.commit(t[e],t[e-2],s.commitType.NORMAL,"");break;case 67:s.commit(t[e-2],t[e],s.commitType.NORMAL,"");break;case 68:s.commit(t[e-4],"",t[e-2],t[e]);break;case 69:s.commit(t[e-4],"",t[e],t[e-2]);break;case 70:s.commit(t[e-2],"",t[e-4],t[e]);break;case 71:s.commit(t[e],"",t[e-4],t[e-2]);break;case 72:s.commit(t[e],"",t[e-2],t[e-4]);break;case 73:s.commit(t[e-2],"",t[e],t[e-4]);break;case 74:s.commit(t[e-4],t[e],t[e-2],"");break;case 75:s.commit(t[e-4],t[e-2],t[e],"");break;case 76:s.commit(t[e-2],t[e],t[e-4],"");break;case 77:s.commit(t[e],t[e-2],t[e-4],"");break;case 78:s.commit(t[e],t[e-4],t[e-2],"");break;case 79:s.commit(t[e-2],t[e-4],t[e],"");break;case 80:s.commit(t[e-4],t[e],s.commitType.NORMAL,t[e-2]);break;case 81:s.commit(t[e-4],t[e-2],s.commitType.NORMAL,t[e]);break;case 82:s.commit(t[e-2],t[e],s.commitType.NORMAL,t[e-4]);break;case 83:s.commit(t[e],t[e-2],s.commitType.NORMAL,t[e-4]);break;case 84:s.commit(t[e],t[e-4],s.commitType.NORMAL,t[e-2]);break;case 85:s.commit(t[e-2],t[e-4],s.commitType.NORMAL,t[e]);break;case 86:s.commit(t[e-6],t[e-4],t[e-2],t[e]);break;case 87:s.commit(t[e-6],t[e-4],t[e],t[e-2]);break;case 88:s.commit(t[e-6],t[e-2],t[e-4],t[e]);break;case 89:s.commit(t[e-6],t[e],t[e-4],t[e-2]);break;case 90:s.commit(t[e-6],t[e-2],t[e],t[e-4]);break;case 91:s.commit(t[e-6],t[e],t[e-2],t[e-4]);break;case 92:s.commit(t[e-4],t[e-6],t[e-2],t[e]);break;case 93:s.commit(t[e-4],t[e-6],t[e],t[e-2]);break;case 94:s.commit(t[e-2],t[e-6],t[e-4],t[e]);break;case 95:s.commit(t[e],t[e-6],t[e-4],t[e-2]);break;case 96:s.commit(t[e-2],t[e-6],t[e],t[e-4]);break;case 97:s.commit(t[e],t[e-6],t[e-2],t[e-4]);break;case 98:s.commit(t[e],t[e-4],t[e-2],t[e-6]);break;case 99:s.commit(t[e-2],t[e-4],t[e],t[e-6]);break;case 100:s.commit(t[e],t[e-2],t[e-4],t[e-6]);break;case 101:s.commit(t[e-2],t[e],t[e-4],t[e-6]);break;case 102:s.commit(t[e-4],t[e-2],t[e],t[e-6]);break;case 103:s.commit(t[e-4],t[e],t[e-2],t[e-6]);break;case 104:s.commit(t[e-2],t[e-4],t[e-6],t[e]);break;case 105:s.commit(t[e],t[e-4],t[e-6],t[e-2]);break;case 106:s.commit(t[e-2],t[e],t[e-6],t[e-4]);break;case 107:s.commit(t[e],t[e-2],t[e-6],t[e-4]);break;case 108:s.commit(t[e-4],t[e-2],t[e-6],t[e]);break;case 109:s.commit(t[e-4],t[e],t[e-6],t[e-2]);break;case 110:this.$="";break;case 111:this.$=t[e];break;case 112:this.$=s.commitType.NORMAL;break;case 113:this.$=s.commitType.REVERSE;break;case 114:this.$=s.commitType.HIGHLIGHT;break}},table:[{3:1,4:2,5:a,7:o,13:u,46:n},{1:[3]},{3:7,4:2,5:a,7:o,13:u,46:n},{6:8,7:c,8:[1,9],9:[1,10],10:11,13:m},r(l,[2,117]),r(l,[2,118]),r(l,[2,119]),{1:[2,1]},{7:[1,13]},{6:14,7:c,10:11,13:m},{8:[1,15]},r(E,[2,9],{11:16,12:[1,17]}),r(_,[2,8]),{1:[2,2]},{7:[1,18]},{6:19,7:c,10:11,13:m},{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],36:[1,33],39:[1,32]},r(_,[2,7]),{1:[2,3]},{7:[1,36]},r(E,[2,10]),{4:37,7:o,13:u,46:n},r(E,[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:g,45:f},r(i,[2,110],{40:43,32:[1,46],33:[1,48],34:[1,44],37:[1,45],41:[1,47]}),{27:49,33:g,45:f},{32:[1,50],34:[1,51]},{27:52,33:g,45:f},{1:[2,4]},r(E,[2,11]),r(i,[2,16]),r(i,[2,17]),r(i,[2,21]),r(x,[2,115]),r(x,[2,116]),r(i,[2,45]),{33:[1,53]},{38:54,42:p,43:d,44:y},{33:[1,58]},{33:[1,59]},r(i,[2,111]),r(i,[2,29],{32:[1,60],34:[1,62],37:[1,61]}),{33:[1,63]},{33:[1,64],35:[1,65]},r(i,[2,22],{29:[1,66]}),r(i,[2,46],{32:[1,68],37:[1,67],41:[1,69]}),r(i,[2,47],{32:[1,71],34:[1,70],41:[1,72]}),r(H,[2,112]),r(H,[2,113]),r(H,[2,114]),r(i,[2,50],{34:[1,73],37:[1,74],41:[1,75]}),r(i,[2,61],{32:[1,78],34:[1,76],37:[1,77]}),{33:[1,79]},{38:80,42:p,43:d,44:y},{33:[1,81]},r(i,[2,24],{34:[1,82]}),{32:[1,83]},{32:[1,84]},{30:[1,85]},{38:86,42:p,43:d,44:y},{33:[1,87]},{33:[1,88]},{33:[1,89]},{33:[1,90]},{33:[1,91]},{33:[1,92]},{38:93,42:p,43:d,44:y},{33:[1,94]},{33:[1,95]},{38:96,42:p,43:d,44:y},{33:[1,97]},r(i,[2,30],{34:[1,99],37:[1,98]}),r(i,[2,31],{32:[1,101],34:[1,100]}),r(i,[2,32],{32:[1,102],37:[1,103]}),{33:[1,104],35:[1,105]},{33:[1,106]},{33:[1,107]},r(i,[2,23]),r(i,[2,48],{32:[1,108],41:[1,109]}),r(i,[2,52],{37:[1,110],41:[1,111]}),r(i,[2,62],{32:[1,113],37:[1,112]}),r(i,[2,49],{32:[1,114],41:[1,115]}),r(i,[2,54],{34:[1,116],41:[1,117]}),r(i,[2,65],{32:[1,119],34:[1,118]}),r(i,[2,51],{37:[1,120],41:[1,121]}),r(i,[2,53],{34:[1,122],41:[1,123]}),r(i,[2,66],{34:[1,125],37:[1,124]}),r(i,[2,63],{32:[1,127],37:[1,126]}),r(i,[2,64],{32:[1,129],34:[1,128]}),r(i,[2,67],{34:[1,131],37:[1,130]}),{38:132,42:p,43:d,44:y},{33:[1,133]},{33:[1,134]},{33:[1,135]},{33:[1,136]},{38:137,42:p,43:d,44:y},r(i,[2,25]),r(i,[2,26]),r(i,[2,27]),r(i,[2,28]),{33:[1,138]},{33:[1,139]},{38:140,42:p,43:d,44:y},{33:[1,141]},{38:142,42:p,43:d,44:y},{33:[1,143]},{33:[1,144]},{33:[1,145]},{33:[1,146]},{33:[1,147]},{33:[1,148]},{33:[1,149]},{38:150,42:p,43:d,44:y},{33:[1,151]},{33:[1,152]},{33:[1,153]},{38:154,42:p,43:d,44:y},{33:[1,155]},{38:156,42:p,43:d,44:y},{33:[1,157]},{33:[1,158]},{33:[1,159]},{38:160,42:p,43:d,44:y},{33:[1,161]},r(i,[2,36],{34:[1,162]}),r(i,[2,37],{37:[1,163]}),r(i,[2,35],{32:[1,164]}),r(i,[2,38],{34:[1,165]}),r(i,[2,33],{37:[1,166]}),r(i,[2,34],{32:[1,167]}),r(i,[2,59],{41:[1,168]}),r(i,[2,72],{32:[1,169]}),r(i,[2,60],{41:[1,170]}),r(i,[2,83],{37:[1,171]}),r(i,[2,73],{32:[1,172]}),r(i,[2,82],{37:[1,173]}),r(i,[2,58],{41:[1,174]}),r(i,[2,71],{32:[1,175]}),r(i,[2,57],{41:[1,176]}),r(i,[2,77],{34:[1,177]}),r(i,[2,70],{32:[1,178]}),r(i,[2,76],{34:[1,179]}),r(i,[2,56],{41:[1,180]}),r(i,[2,84],{37:[1,181]}),r(i,[2,55],{41:[1,182]}),r(i,[2,78],{34:[1,183]}),r(i,[2,79],{34:[1,184]}),r(i,[2,85],{37:[1,185]}),r(i,[2,69],{32:[1,186]}),r(i,[2,80],{37:[1,187]}),r(i,[2,68],{32:[1,188]}),r(i,[2,74],{34:[1,189]}),r(i,[2,75],{34:[1,190]}),r(i,[2,81],{37:[1,191]}),{33:[1,192]},{38:193,42:p,43:d,44:y},{33:[1,194]},{33:[1,195]},{38:196,42:p,43:d,44:y},{33:[1,197]},{33:[1,198]},{33:[1,199]},{33:[1,200]},{38:201,42:p,43:d,44:y},{33:[1,202]},{38:203,42:p,43:d,44:y},{33:[1,204]},{33:[1,205]},{33:[1,206]},{33:[1,207]},{33:[1,208]},{33:[1,209]},{33:[1,210]},{38:211,42:p,43:d,44:y},{33:[1,212]},{33:[1,213]},{33:[1,214]},{38:215,42:p,43:d,44:y},{33:[1,216]},{38:217,42:p,43:d,44:y},{33:[1,218]},{33:[1,219]},{33:[1,220]},{38:221,42:p,43:d,44:y},r(i,[2,39]),r(i,[2,41]),r(i,[2,40]),r(i,[2,42]),r(i,[2,44]),r(i,[2,43]),r(i,[2,100]),r(i,[2,101]),r(i,[2,98]),r(i,[2,99]),r(i,[2,103]),r(i,[2,102]),r(i,[2,107]),r(i,[2,106]),r(i,[2,105]),r(i,[2,104]),r(i,[2,109]),r(i,[2,108]),r(i,[2,97]),r(i,[2,96]),r(i,[2,95]),r(i,[2,94]),r(i,[2,92]),r(i,[2,93]),r(i,[2,91]),r(i,[2,90]),r(i,[2,89]),r(i,[2,88]),r(i,[2,86]),r(i,[2,87])],defaultActions:{7:[2,1],13:[2,2],18:[2,3],36:[2,4]},parseError:function(h,b){if(b.recoverable)this.trace(h);else{var k=new Error(h);throw k.hash=b,k}},parse:function(h){var b=this,k=[0],s=[],T=[null],t=[],X=this.table,e="",rt=0,pt=0,Lt=2,bt=1,Rt=t.slice.call(arguments,1),v=Object.create(this.lexer),Y={yy:{}};for(var ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ct)&&(Y.yy[ct]=this.yy[ct]);v.setInput(h,Y.yy),Y.yy.lexer=v,Y.yy.parser=this,typeof v.yylloc>"u"&&(v.yylloc={});var ot=v.yylloc;t.push(ot);var vt=v.options&&v.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Mt(){var j;return j=s.pop()||v.lex()||bt,typeof j!="number"&&(j instanceof Array&&(s=j,j=s.pop()),j=b.symbols_[j]||j),j}for(var I,K,V,lt,W={},it,z,gt,st;;){if(K=k[k.length-1],this.defaultActions[K]?V=this.defaultActions[K]:((I===null||typeof I>"u")&&(I=Mt()),V=X[K]&&X[K][I]),typeof V>"u"||!V.length||!V[0]){var ht="";st=[];for(it in X[K])this.terminals_[it]&&it>Lt&&st.push("'"+this.terminals_[it]+"'");v.showPosition?ht="Parse error on line "+(rt+1)+`: +`+v.showPosition()+` +Expecting `+st.join(", ")+", got '"+(this.terminals_[I]||I)+"'":ht="Parse error on line "+(rt+1)+": Unexpected "+(I==bt?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(ht,{text:v.match,token:this.terminals_[I]||I,line:v.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: "+I);switch(V[0]){case 1:k.push(I),T.push(v.yytext),t.push(v.yylloc),k.push(V[1]),I=null,pt=v.yyleng,e=v.yytext,rt=v.yylineno,ot=v.yylloc;break;case 2:if(z=this.productions_[V[1]][1],W.$=T[T.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},vt&&(W._$.range=[t[t.length-(z||1)].range[0],t[t.length-1].range[1]]),lt=this.performAction.apply(W,[e,pt,rt,Y.yy,V[1],T,t].concat(Rt)),typeof lt<"u")return lt;z&&(k=k.slice(0,-1*z*2),T=T.slice(0,-1*z),t=t.slice(0,-1*z)),k.push(this.productions_[V[1]][0]),T.push(W.$),t.push(W._$),gt=X[k[k.length-2]][k[k.length-1]],k.push(gt);break;case 3:return!0}}return!0}},B=function(){var q={EOF:1,parseError:function(b,k){if(this.yy.parser)this.yy.parser.parseError(b,k);else throw new Error(b)},setInput:function(h,b){return this.yy=b||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 b=h.match(/(?:\r\n?|\n).*/g);return b?(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 b=h.length,k=h.split(/(?:\r\n?|\n)/g);this._input=h+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b),this.offset-=b;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),k.length-1&&(this.yylineno-=k.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:k?(k.length===s.length?this.yylloc.first_column:0)+s[s.length-k.length].length-k[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[T[0],T[0]+this.yyleng-b]),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(),b=new Array(h.length+1).join("-");return h+this.upcomingInput()+` +`+b+"^"},test_match:function(h,b){var k,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=h[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+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],k=this.performAction.call(this,this.yy,this,b,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),k)return k;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 h,b,k,s;this._more||(this.yytext="",this.match="");for(var T=this._currentRules(),t=0;tb[0].length)){if(b=k,s=t,this.options.backtrack_lexer){if(h=this.test_match(k,T[t]),h!==!1)return h;if(this._backtrack){b=!1;continue}else return!1}else if(!this.options.flex)break}return b?(h=this.test_match(b,T[s]),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 b=this.next();return b||this.lex()},begin:function(b){this.conditionStack.push(b)},popState:function(){var b=this.conditionStack.length-1;return b>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(b){return b=this.conditionStack.length-1-Math.abs(b||0),b>=0?this.conditionStack[b]:"INITIAL"},pushState:function(b){this.begin(b)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(b,k,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 39;case 12:return 32;case 13:return 37;case 14:return 41;case 15:return 42;case 16:return 43;case 17:return 44;case 18:return 34;case 19:return 28;case 20:return 29;case 21:return 36;case 22:return 31;case 23:return 26;case 24:return 9;case 25:return 9;case 26:return 8;case 27:return"CARET";case 28:this.begin("options");break;case 29:this.popState();break;case 30:return 12;case 31:return 35;case 32:this.begin("string");break;case 33:this.popState();break;case 34:return 33;case 35:return 30;case 36:return 45;case 37: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,/^(?: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:[29,30],inclusive:!1},string:{rules:[33,34],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,31,32,35,36,37,38],inclusive:!0}}};return q}();w.lexer=B;function P(){this.yy={}}return P.prototype=w,w.Parser=P,new P}();mt.parser=mt;const Dt=mt;let at=O().gitGraph.mainBranchName,zt=O().gitGraph.mainBranchOrder,R={},S=null,Z={};Z[at]={name:at,order:zt};let L={};L[at]=S;let C=at,xt="LR",U=0;function ft(){return Vt({length:7})}function jt(r,a){const o=Object.create(null);return r.reduce((u,n)=>{const c=a(n);return o[c]||(o[c]=!0,u.push(n)),u},[])}const qt=function(r){xt=r};let yt={};const Yt=function(r){G.debug("options str",r),r=r&&r.trim(),r=r||"{}";try{yt=JSON.parse(r)}catch(a){G.error("error while parsing gitGraph options",a.message)}},Kt=function(){return yt},Ft=function(r,a,o,u){G.debug("Entering commit:",r,a,o,u),a=D.sanitizeText(a,O()),r=D.sanitizeText(r,O()),u=D.sanitizeText(u,O());const n={id:a||U+"-"+ft(),message:r,seq:U++,type:o||$.NORMAL,tag:u||"",parents:S==null?[]:[S.id],branch:C};S=n,R[n.id]=n,L[C]=n.id,G.debug("in pushCommit "+n.id)},Ut=function(r,a){if(r=D.sanitizeText(r,O()),L[r]===void 0)L[r]=S!=null?S.id:null,Z[r]={name:r,order:a?parseInt(a,10):null},_t(r),G.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}},Wt=function(r,a,o,u){r=D.sanitizeText(r,O()),a=D.sanitizeText(a,O());const n=R[L[C]],c=R[L[r]];if(C===r){let l=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw l.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"]},l}else if(n===void 0||!n){let l=new Error('Incorrect usage of "merge". Current branch ('+C+")has no commits");throw l.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["commit"]},l}else if(L[r]===void 0){let l=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw l.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]},l}else if(c===void 0||!c){let l=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw l.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"commit"']},l}else if(n===c){let l=new Error('Incorrect usage of "merge". Both branches have same head');throw l.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"]},l}else if(a&&R[a]!==void 0){let l=new Error('Incorrect usage of "merge". Commit with id:'+a+" already exists, use different custom Id");throw l.hash={text:"merge "+r+a+o+u,token:"merge "+r+a+o+u,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["merge "+r+" "+a+"_UNIQUE "+o+" "+u]},l}const m={id:a||U+"-"+ft(),message:"merged branch "+r+" into "+C,seq:U++,parents:[S==null?null:S.id,L[r]],branch:C,type:$.MERGE,customType:o,customId:!!a,tag:u||""};S=m,R[m.id]=m,L[C]=m.id,G.debug(L),G.debug("in mergeBranch")},Xt=function(r,a,o){if(G.debug("Entering cherryPick:",r,a,o),r=D.sanitizeText(r,O()),a=D.sanitizeText(a,O()),o=D.sanitizeText(o,O()),!r||R[r]===void 0){let c=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw c.hash={text:"cherryPick "+r+" "+a,token:"cherryPick "+r+" "+a,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},c}let u=R[r],n=u.branch;if(u.type===$.MERGE){let c=new Error('Incorrect usage of "cherryPick". Source commit should not be a merge commit');throw c.hash={text:"cherryPick "+r+" "+a,token:"cherryPick "+r+" "+a,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},c}if(!a||R[a]===void 0){if(n===C){let l=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw l.hash={text:"cherryPick "+r+" "+a,token:"cherryPick "+r+" "+a,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},l}const c=R[L[C]];if(c===void 0||!c){let l=new Error('Incorrect usage of "cherry-pick". Current branch ('+C+")has no commits");throw l.hash={text:"cherryPick "+r+" "+a,token:"cherryPick "+r+" "+a,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},l}const m={id:U+"-"+ft(),message:"cherry-picked "+u+" into "+C,seq:U++,parents:[S==null?null:S.id,u.id],branch:C,type:$.CHERRY_PICK,tag:o??"cherry-pick:"+u.id};S=m,R[m.id]=m,L[C]=m.id,G.debug(L),G.debug("in cherryPick")}},_t=function(r){if(r=D.sanitizeText(r,O()),L[r]===void 0){let a=new Error('Trying to checkout branch which is not yet created. (Help try using "branch '+r+'")');throw a.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+'"']},a}else{C=r;const a=L[C];S=R[a]}};function dt(r,a,o){const u=r.indexOf(a);u===-1?r.push(o):r.splice(u,1,o)}function Et(r){const a=r.reduce((n,c)=>n.seq>c.seq?n:c,r[0]);let o="";r.forEach(function(n){n===a?o+=" *":o+=" |"});const u=[o,a.id,a.seq];for(let n in L)L[n]===a.id&&u.push(n);if(G.debug(u.join(" ")),a.parents&&a.parents.length==2){const n=R[a.parents[0]];dt(r,a,n),r.push(R[a.parents[1]])}else{if(a.parents.length==0)return;{const n=R[a.parents];dt(r,a,n)}}r=jt(r,n=>n.id),Et(r)}const Jt=function(){G.debug(R);const r=wt()[0];Et([r])},Qt=function(){R={},S=null;let r=O().gitGraph.mainBranchName,a=O().gitGraph.mainBranchOrder;L={},L[r]=null,Z={},Z[r]={name:r,order:a},C=r,U=0,Pt()},Zt=function(){return Object.values(Z).map((a,o)=>a.order!==null?a:{...a,order:parseFloat(`0.${o}`,10)}).sort((a,o)=>a.order-o.order).map(({name:a})=>({name:a}))},$t=function(){return L},te=function(){return R},wt=function(){const r=Object.keys(R).map(function(a){return R[a]});return r.forEach(function(a){G.debug(a.id)}),r.sort((a,o)=>a.seq-o.seq),r},ee=function(){return C},re=function(){return xt},ie=function(){return S},$={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},se={getConfig:()=>O().gitGraph,setDirection:qt,setOptions:Yt,getOptions:Kt,commit:Ft,branch:Ut,merge:Wt,cherryPick:Xt,checkout:_t,prettyPrint:Jt,clear:Qt,getBranchesAsObjArray:Zt,getBranches:$t,getCommits:te,getCommitsArray:wt,getCurrentBranch:ee,getDirection:re,getHead:ie,setAccTitle:Ct,getAccTitle:At,getAccDescription:Ot,setAccDescription:St,setDiagramTitle:It,getDiagramTitle:Gt,commitType:$};let J={};const N={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},F=8;let M={},tt={},nt=[],et=0,A="LR";const ae=()=>{M={},tt={},J={},et=0,nt=[],A="LR"},Tt=r=>{const a=document.createElementNS("http://www.w3.org/2000/svg","text");let o=[];typeof r=="string"?o=r.split(/\\n|\n|/gi):Array.isArray(r)?o=r:o=[];for(const u of o){const n=document.createElementNS("http://www.w3.org/2000/svg","tspan");n.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),n.setAttribute("dy","1em"),n.setAttribute("x","0"),n.setAttribute("class","row"),n.textContent=u.trim(),a.appendChild(n)}return a},kt=(r,a,o)=>{const u=ut().gitGraph,n=r.append("g").attr("class","commit-bullets"),c=r.append("g").attr("class","commit-labels");let m=0;A==="TB"&&(m=30),Object.keys(a).sort((_,i)=>a[_].seq-a[i].seq).forEach(_=>{const i=a[_],g=A==="TB"?m+10:M[i.branch].pos,f=A==="TB"?M[i.branch].pos:m+10;if(o){let x,p=i.customType!==void 0&&i.customType!==""?i.customType:i.type;switch(p){case N.NORMAL:x="commit-normal";break;case N.REVERSE:x="commit-reverse";break;case N.HIGHLIGHT:x="commit-highlight";break;case N.MERGE:x="commit-merge";break;case N.CHERRY_PICK:x="commit-cherry-pick";break;default:x="commit-normal"}if(p===N.HIGHLIGHT){const d=n.append("rect");d.attr("x",f-10),d.attr("y",g-10),d.attr("height",20),d.attr("width",20),d.attr("class",`commit ${i.id} commit-highlight${M[i.branch].index%F} ${x}-outer`),n.append("rect").attr("x",f-6).attr("y",g-6).attr("height",12).attr("width",12).attr("class",`commit ${i.id} commit${M[i.branch].index%F} ${x}-inner`)}else if(p===N.CHERRY_PICK)n.append("circle").attr("cx",f).attr("cy",g).attr("r",10).attr("class",`commit ${i.id} ${x}`),n.append("circle").attr("cx",f-3).attr("cy",g+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${i.id} ${x}`),n.append("circle").attr("cx",f+3).attr("cy",g+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${i.id} ${x}`),n.append("line").attr("x1",f+3).attr("y1",g+1).attr("x2",f).attr("y2",g-5).attr("stroke","#fff").attr("class",`commit ${i.id} ${x}`),n.append("line").attr("x1",f-3).attr("y1",g+1).attr("x2",f).attr("y2",g-5).attr("stroke","#fff").attr("class",`commit ${i.id} ${x}`);else{const d=n.append("circle");if(d.attr("cx",f),d.attr("cy",g),d.attr("r",i.type===N.MERGE?9:10),d.attr("class",`commit ${i.id} commit${M[i.branch].index%F}`),p===N.MERGE){const y=n.append("circle");y.attr("cx",f),y.attr("cy",g),y.attr("r",6),y.attr("class",`commit ${x} ${i.id} commit${M[i.branch].index%F}`)}p===N.REVERSE&&n.append("path").attr("d",`M ${f-5},${g-5}L${f+5},${g+5}M${f-5},${g+5}L${f+5},${g-5}`).attr("class",`commit ${x} ${i.id} commit${M[i.branch].index%F}`)}}if(A==="TB"?tt[i.id]={x:f,y:m+10}:tt[i.id]={x:m+10,y:g},o){if(i.type!==N.CHERRY_PICK&&(i.customId&&i.type===N.MERGE||i.type!==N.MERGE)&&u.showCommitLabel){const d=c.append("g"),y=d.insert("rect").attr("class","commit-label-bkg"),H=d.append("text").attr("x",m).attr("y",g+25).attr("class","commit-label").text(i.id);let w=H.node().getBBox();if(y.attr("x",m+10-w.width/2-2).attr("y",g+13.5).attr("width",w.width+2*2).attr("height",w.height+2*2),A==="TB"&&(y.attr("x",f-(w.width+4*4+5)).attr("y",g-12),H.attr("x",f-(w.width+4*4)).attr("y",g+w.height-12)),A!=="TB"&&H.attr("x",m+10-w.width/2),u.rotateCommitLabel)if(A==="TB")H.attr("transform","rotate(-45, "+f+", "+g+")"),y.attr("transform","rotate(-45, "+f+", "+g+")");else{let B=-7.5-(w.width+10)/25*9.5,P=10+w.width/25*8.5;d.attr("transform","translate("+B+", "+P+") rotate(-45, "+m+", "+g+")")}}if(i.tag){const d=c.insert("polygon"),y=c.append("circle"),H=c.append("text").attr("y",g-16).attr("class","tag-label").text(i.tag);let w=H.node().getBBox();H.attr("x",m+10-w.width/2);const B=w.height/2,P=g-19.2;d.attr("class","tag-label-bkg").attr("points",` + ${m-w.width/2-4/2},${P+2} + ${m-w.width/2-4/2},${P-2} + ${m+10-w.width/2-4},${P-B-2} + ${m+10+w.width/2+4},${P-B-2} + ${m+10+w.width/2+4},${P+B+2} + ${m+10-w.width/2-4},${P+B+2}`),y.attr("cx",m-w.width/2+4/2).attr("cy",P).attr("r",1.5).attr("class","tag-hole"),A==="TB"&&(d.attr("class","tag-label-bkg").attr("points",` + ${f},${m+2} + ${f},${m-2} + ${f+10},${m-B-2} + ${f+10+w.width+4},${m-B-2} + ${f+10+w.width+4},${m+B+2} + ${f+10},${m+B+2}`).attr("transform","translate(12,12) rotate(45, "+f+","+m+")"),y.attr("cx",f+4/2).attr("cy",m).attr("transform","translate(12,12) rotate(45, "+f+","+m+")"),H.attr("x",f+5).attr("y",m+3).attr("transform","translate(14,14) rotate(45, "+f+","+m+")"))}}m+=50,m>et&&(et=m)})},ne=(r,a,o)=>Object.keys(o).filter(c=>o[c].branch===a.branch&&o[c].seq>r.seq&&o[c].seq0,Q=(r,a,o=0)=>{const u=r+Math.abs(r-a)/2;if(o>5)return u;if(nt.every(m=>Math.abs(m-u)>=10))return nt.push(u),u;const c=Math.abs(r-a);return Q(r,a-c/5,o+1)},ce=(r,a,o,u)=>{const n=tt[a.id],c=tt[o.id],m=ne(a,o,u);let l="",E="",_=0,i=0,g=M[o.branch].index,f;if(m){l="A 10 10, 0, 0, 0,",E="A 10 10, 0, 0, 1,",_=10,i=10,g=M[o.branch].index;const x=n.yc.x&&(l="A 20 20, 0, 0, 0,",E="A 20 20, 0, 0, 1,",_=20,i=20,g=M[a.branch].index,f=`M ${n.x} ${n.y} L ${n.x} ${c.y-_} ${E} ${n.x-i} ${c.y} L ${c.x} ${c.y}`),n.x===c.x&&(g=M[a.branch].index,f=`M ${n.x} ${n.y} L ${n.x+_} ${n.y} ${l} ${n.x+i} ${c.y+_} L ${c.x} ${c.y}`)):(n.yc.y&&(l="A 20 20, 0, 0, 0,",_=20,i=20,g=M[a.branch].index,f=`M ${n.x} ${n.y} L ${c.x-_} ${n.y} ${l} ${c.x} ${n.y-i} L ${c.x} ${c.y}`),n.y===c.y&&(g=M[a.branch].index,f=`M ${n.x} ${n.y} L ${n.x} ${c.y-_} ${l} ${n.x+i} ${c.y} L ${c.x} ${c.y}`));r.append("path").attr("d",f).attr("class","arrow arrow"+g%F)},oe=(r,a)=>{const o=r.append("g").attr("class","commit-arrows");Object.keys(a).forEach(u=>{const n=a[u];n.parents&&n.parents.length>0&&n.parents.forEach(c=>{ce(o,a[c],n,a)})})},le=(r,a)=>{const o=ut().gitGraph,u=r.append("g");a.forEach((n,c)=>{const m=c%F,l=M[n.name].pos,E=u.append("line");E.attr("x1",0),E.attr("y1",l),E.attr("x2",et),E.attr("y2",l),E.attr("class","branch branch"+m),A==="TB"&&(E.attr("y1",30),E.attr("x1",l),E.attr("y2",et),E.attr("x2",l)),nt.push(l);let _=n.name;const i=Tt(_),g=u.insert("rect"),x=u.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+m);x.node().appendChild(i);let p=i.getBBox();g.attr("class","branchLabelBkg label"+m).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),x.attr("transform","translate("+(-p.width-14-(o.rotateCommitLabel===!0?30:0))+", "+(l-p.height/2-1)+")"),A==="TB"&&(g.attr("x",l-p.width/2-10).attr("y",0),x.attr("transform","translate("+(l-p.width/2-5)+", 0)")),A!=="TB"&&g.attr("transform","translate(-19, "+(l-p.height/2)+")")})},he=function(r,a,o,u){ae();const n=ut(),c=n.gitGraph;G.debug("in gitgraph renderer",r+` +`,"id:",a,o),J=u.db.getCommits();const m=u.db.getBranchesAsObjArray();A=u.db.getDirection();const l=Nt(`[id="${a}"]`);let E=0;m.forEach((_,i)=>{const g=Tt(_.name),f=l.append("g"),x=f.insert("g").attr("class","branchLabel"),p=x.insert("g").attr("class","label branch-label");p.node().appendChild(g);let d=g.getBBox();M[_.name]={pos:E,index:i},E+=50+(c.rotateCommitLabel?40:0)+(A==="TB"?d.width/2:0),p.remove(),x.remove(),f.remove()}),kt(l,J,!1),c.showBranches&&le(l,m),oe(l,J),kt(l,J,!0),Ht.insertTitle(l,"gitTitleText",c.titleTopMargin,u.db.getDiagramTitle()),Bt(void 0,l,c.diagramPadding,c.useMaxWidth??n.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(a=>` + .branch-label${a} { fill: ${r["gitBranchLabel"+a]}; } + .commit${a} { stroke: ${r["git"+a]}; fill: ${r["git"+a]}; } + .commit-highlight${a} { stroke: ${r["gitInv"+a]}; fill: ${r["gitInv"+a]}; } + .label${a} { fill: ${r["git"+a]}; } + .arrow${a} { stroke: ${r["git"+a]}; } + `).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,ge={parser:Dt,db:se,renderer:me,styles:fe};export{ge as diagram}; diff --git a/assets/helpdoc-delete-79792869.png b/assets/helpdoc-delete-79792869.png new file mode 100644 index 000000000..6ead6fc3f Binary files /dev/null and b/assets/helpdoc-delete-79792869.png differ diff --git a/assets/helpdoc-itemlist-8460b5f1.png b/assets/helpdoc-itemlist-8460b5f1.png new file mode 100644 index 000000000..5f43bf602 Binary files /dev/null and b/assets/helpdoc-itemlist-8460b5f1.png differ diff --git a/assets/helpdoc-ui-3d849988.png b/assets/helpdoc-ui-3d849988.png new file mode 100644 index 000000000..4f47abcf0 Binary files /dev/null and b/assets/helpdoc-ui-3d849988.png differ diff --git a/assets/helpdoc-upload-cce48a54.png b/assets/helpdoc-upload-cce48a54.png new file mode 100644 index 000000000..deab011b5 Binary files /dev/null and b/assets/helpdoc-upload-cce48a54.png differ diff --git a/assets/helpdoc.html-0383a912.js b/assets/helpdoc.html-0383a912.js new file mode 100644 index 000000000..58026d558 --- /dev/null +++ b/assets/helpdoc.html-0383a912.js @@ -0,0 +1 @@ +import{_ as r}from"./plugin-vue_export-helper-c27b6911.js";import{r as o,o as s,c as p,a,d as e,b as i,w as d,e as t}from"./app-d2f9e1e0.js";const h="/sealdice-manual-next/assets/helpdoc-ui-3d849988.png",l="/sealdice-manual-next/assets/helpdoc-upload-cce48a54.png",f="/sealdice-manual-next/assets/helpdoc-delete-79792869.png",u="/sealdice-manual-next/assets/helpdoc-itemlist-8460b5f1.png",g={},_=t('

    帮助文档

    本节内容

    本节将介绍帮助文档功能,请善用侧边栏和搜索,按需阅读文档。

    什么是帮助文档?

    「帮助文档」是提供给骰子使用的查询资料,一般用于各种规则的资料查询,也可用于编写骰子的使用帮助。

    获取帮助文档

    ',5),m={href:"https://github.com/sealdice/helpdoc",target:"_blank",rel:"noopener noreferrer"},x=t('

    无法访问仓库?

    仓库位于 GitHub,访问时请确认你的网络状况。

    海豹目前可以健康食用的 helpdoc 格式为 json 以及 xslx,其中更多使用后者来编写资料查询文档。

    海豹官方安装包中也默认提供了 CoC 和 D&D 的资料查询文档,无需额外下载即可使用相关内容搜索。

    如何使用帮助文档?

    当你在帮助文档中写下 词条A 后,通过 .help 词条A 即可返回对应词条内容。

    对于资料查询,更建议使用 .find 来搜索词条内容。

    ',6),b=t('

    如何管理帮助文档?

    点击海豹 UI 界面的「扩展功能 - 帮助文档」选项,你就可以进入帮助文档的管理页面。

    帮助文档管理
    帮助文档管理

    我们可以看到默认置入的 CoC 与 D&D 的资料文档已经在列表中展示出来了。

    帮助文档列表以文件树的形式展示。文件夹内部的文档在一级文件夹下平铺展示,最外层的 一级文件夹名将作为其中所有文档的分组名,用于精确控制查询范围的分组。

    修改帮助文档后,需要点击「重载帮助文档」来刷新。

    重载帮助文档

    帮助文档的文本量较大,重载过程需要一定时间(通常为几分钟,与文档数量、机器性能有关)。在重载期间,搜索功能会暂时不可用,所以建议在骰子使用的低峰期进行重载。

    上传帮助文档

    点击「上传」按钮,即可弹出帮助文档的上传框:

    帮助文档的上传
    帮助文档的上传

    「分组」即是一级文件夹,可以选择已有的分组,也可手动填写新的分组名来创建文件夹。

    选择分组和相应文档后,点击「上传」即可将文档上传至骰子。

    默认分组

    分组选择中存在一个「默认」分组,代表位于文档根目录的帮助文档位置,和一级文件夹同级。

    非常不建议你将文档放在这个文件夹中进行管理。 对指定分组的搜索需要有意义的分组名。

    删除帮助文档

    如需删除某些帮助文档,勾选对应文档前的选框后点击「删除所选」,即可批量删除帮助文档。

    尝试删除帮助文档
    尝试删除帮助文档

    查看帮助文档词条

    切换标签页到「词条」,即可浏览当前已经加载的帮助文档词条。

    帮助文档词条
    帮助文档词条

    通过筛选可以快速查找到相应的词条内容。

    如何编写帮助文档?

    ',21);function v(A,E){const c=o("ExternalLinkIcon"),n=o("RouterLink");return s(),p("div",null,[_,a("p",null,[e("你可以在 "),a("a",m,[e("帮助文档仓库"),i(c)]),e(" 或官方群的群文件中找到其他骰主分享的帮助文档。")]),x,a("p",null,[e("见 "),i(n,{to:"/use/core.html#find%E6%9F%A5%E8%AF%A2-%E6%9F%A5%E8%AF%A2%E6%8C%87%E4%BB%A4"},{default:d(()=>[e("使用 - 核心指令")]),_:1}),e("。")]),b,a("p",null,[e("见 "),i(n,{to:"/advanced/edit_helpdoc.html"},{default:d(()=>[e("进阶 - 编写帮助文档")]),_:1}),e("。")])])}const w=r(g,[["render",v],["__file","helpdoc.html.vue"]]);export{w as default}; diff --git a/assets/helpdoc.html-284859b3.js b/assets/helpdoc.html-284859b3.js new file mode 100644 index 000000000..a280600aa --- /dev/null +++ b/assets/helpdoc.html-284859b3.js @@ -0,0 +1 @@ +const e=JSON.parse('{"key":"v-2e19d214","path":"/config/helpdoc.html","title":"帮助文档","lang":"zh-cn","frontmatter":{"lang":"zh-cn","title":"帮助文档","description":"本节内容 本节将介绍帮助文档功能,请善用侧边栏和搜索,按需阅读文档。 什么是帮助文档? 「帮助文档」是提供给骰子使用的查询资料,一般用于各种规则的资料查询,也可用于编写骰子的使用帮助。 获取帮助文档 你可以在 帮助文档仓库 (https://github.com/sealdice/helpdoc) 或官方群的群文件中找到其他骰主分享的帮助文档。 无法访...","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/config/helpdoc.html"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"帮助文档"}],["meta",{"property":"og:description","content":"本节内容 本节将介绍帮助文档功能,请善用侧边栏和搜索,按需阅读文档。 什么是帮助文档? 「帮助文档」是提供给骰子使用的查询资料,一般用于各种规则的资料查询,也可用于编写骰子的使用帮助。 获取帮助文档 你可以在 帮助文档仓库 (https://github.com/sealdice/helpdoc) 或官方群的群文件中找到其他骰主分享的帮助文档。 无法访..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:image","content":"http://localhost:8080/sealdice-manual-next/"}],["meta",{"property":"og:locale","content":"zh-cn"}],["meta",{"property":"og:updated_time","content":"2023-10-29T17:01:34.000Z"}],["meta",{"name":"twitter:card","content":"summary_large_image"}],["meta",{"name":"twitter:image:alt","content":"帮助文档"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-10-29T17:01:34.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"帮助文档\\",\\"image\\":[\\"http://localhost:8080/sealdice-manual-next/\\"],\\"dateModified\\":\\"2023-10-29T17:01:34.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[{"level":2,"title":"什么是帮助文档?","slug":"什么是帮助文档","link":"#什么是帮助文档","children":[]},{"level":2,"title":"获取帮助文档","slug":"获取帮助文档","link":"#获取帮助文档","children":[]},{"level":2,"title":"如何使用帮助文档?","slug":"如何使用帮助文档","link":"#如何使用帮助文档","children":[]},{"level":2,"title":"如何管理帮助文档?","slug":"如何管理帮助文档","link":"#如何管理帮助文档","children":[{"level":3,"title":"上传帮助文档","slug":"上传帮助文档","link":"#上传帮助文档","children":[]},{"level":3,"title":"删除帮助文档","slug":"删除帮助文档","link":"#删除帮助文档","children":[]},{"level":3,"title":"查看帮助文档词条","slug":"查看帮助文档词条","link":"#查看帮助文档词条","children":[]}]},{"level":2,"title":"如何编写帮助文档?","slug":"如何编写帮助文档","link":"#如何编写帮助文档","children":[]}],"git":{"createdTime":1698072668000,"updatedTime":1698598894000,"contributors":[{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":4}]},"readingTime":{"minutes":2.85,"words":856},"filePathRelative":"config/helpdoc.md","localizedDate":"2023年10月23日","autoDesc":true,"excerpt":""}');export{e as data}; diff --git a/assets/image-20221009003612068-63ae798c.png b/assets/image-20221009003612068-63ae798c.png new file mode 100644 index 000000000..a8716dbe2 Binary files /dev/null and b/assets/image-20221009003612068-63ae798c.png differ diff --git a/assets/image-20221009004030395-fd94273b.png b/assets/image-20221009004030395-fd94273b.png new file mode 100644 index 000000000..10c7ab961 Binary files /dev/null and b/assets/image-20221009004030395-fd94273b.png differ diff --git a/assets/image-20230109202133901-832f6cbd.png b/assets/image-20230109202133901-832f6cbd.png new file mode 100644 index 000000000..f2171649a Binary files /dev/null and b/assets/image-20230109202133901-832f6cbd.png differ diff --git a/assets/image-20230109203431758-b43ab927.png b/assets/image-20230109203431758-b43ab927.png new file mode 100644 index 000000000..fa55218cd Binary files /dev/null and b/assets/image-20230109203431758-b43ab927.png differ diff --git a/assets/image-20230109205906109-6158f44b.png b/assets/image-20230109205906109-6158f44b.png new file mode 100644 index 000000000..c3a666145 Binary files /dev/null and b/assets/image-20230109205906109-6158f44b.png differ diff --git a/assets/image-20230109210448115-817d8b4b.png b/assets/image-20230109210448115-817d8b4b.png new file mode 100644 index 000000000..f48128701 Binary files /dev/null and b/assets/image-20230109210448115-817d8b4b.png differ diff --git a/assets/index-f9462f3f-9287aadd.js b/assets/index-f9462f3f-9287aadd.js new file mode 100644 index 000000000..64fbbfcda --- /dev/null +++ b/assets/index-f9462f3f-9287aadd.js @@ -0,0 +1 @@ +import{b as G,i as m,m as O,G as j,l as A}from"./layout-58f7ec6d.js";import{i as M,u as _,s as H,a as V,b as q,p as D,c as U,d as W,e as Y,f as z,g as L,h as C}from"./edges-f15a7e05-a8484ad2.js";import{l as i,q as N,c as S,h as T}from"./mermaid.core-d8bc71ff.js";import{c as K}from"./createText-80c3befb-7196e989.js";var Q=4;function Z(e){return G(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 j({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 $={};const ft=(e,t)=>{i.trace("Inserting cluster");const n=t.shape||"rect";$[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 k(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]),q(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),A(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=U(u,a,o,f,n,t,r);W(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),Y(),z(),dt(),et(),i.warn("Graph at first:",JSON.stringify(x(t))),it(t),i.warn("Graph after:",JSON.stringify(x(t))),await k(e,t,r,s)};export{xt as r}; diff --git a/assets/index.html-0cb69b9c.js b/assets/index.html-0cb69b9c.js new file mode 100644 index 000000000..b453622fe --- /dev/null +++ b/assets/index.html-0cb69b9c.js @@ -0,0 +1 @@ +const e=JSON.parse('{"key":"v-744dba01","path":"/use/","title":"使用","lang":"zh-CN","frontmatter":{"title":"使用","index":false,"description":"新手入门; 基础概念 (./introduce.md); 快速上手 (./quick-start.md); 核心指令; 核心指令 (./core.md); 规则扩展; 克苏鲁的呼唤 7 版 (./coc7.md); 龙与地下城 5E (./dnd5e.md); 属性同义词 (./attribute_alias.md); 其它规则支持 (./other_...","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/use/"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"使用"}],["meta",{"property":"og:description","content":"新手入门; 基础概念 (./introduce.md); 快速上手 (./quick-start.md); 核心指令; 核心指令 (./core.md); 规则扩展; 克苏鲁的呼唤 7 版 (./coc7.md); 龙与地下城 5E (./dnd5e.md); 属性同义词 (./attribute_alias.md); 其它规则支持 (./other_..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"og:updated_time","content":"2023-11-01T05:34:52.000Z"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-11-01T05:34:52.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"使用\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2023-11-01T05:34:52.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[],"git":{"createdTime":1698739062000,"updatedTime":1698816892000,"contributors":[{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":2},{"name":"Xiangze Li","email":"lee_johnson@qq.com","commits":1}]},"readingTime":{"minutes":0.29,"words":88},"filePathRelative":"use/README.md","localizedDate":"2023年10月31日","autoDesc":true,"excerpt":""}');export{e as data}; diff --git a/assets/index.html-100b410e.js b/assets/index.html-100b410e.js new file mode 100644 index 000000000..cd175d8d7 --- /dev/null +++ b/assets/index.html-100b410e.js @@ -0,0 +1 @@ +const e=JSON.parse('{"key":"v-8daa1a0e","path":"/","title":"首页","lang":"zh-cn","frontmatter":{"home":true,"lang":"zh-cn","title":"首页","tagline":"✨海豹核心的全新官方使用手册","heroImage":"/images/sealdice.svg","bgImage":"/images/bg/4-light.svg","bgImageDark":"/images/bg/4-dark.svg","bgImageStyle":{"background-attachment":"fixed"},"actions":[{"text":"指令上手","icon":"interact","link":"/use/quick-start","type":"primary"},{"text":"快速部署","icon":"light","link":"/deploy/quick-start"},{"text":"特色功能","icon":"categoryselected","link":"/deploy/special_feature"}],"highlights":[{"header":"海豹核心","image":"/images/seal.png","highlights":[{"title":"一个简单易用的跑团骰子系统。可以被叫做 海豹骰、豹骰,豹子骰。"},{"title":"前往官网的「在线试用」中快速尝试——","icon":"arrow","link":"https://sealdice.com"}]},{"header":"特性","features":[{"title":"常用指令","icon":"comment","details":"实现了跑团常用的绝大部分指令,用你熟悉的指令跑团","link":null},{"title":"多规则支持","icon":"context","details":"CoC、D&D、SR、WOD 等规则都有专门支持","link":null},{"title":"同义词表","icon":"change","details":"属性兼容中文简体、繁体、英文缩写和其他常见别名","link":null},{"title":"全文搜索","icon":"search","details":"使用全文搜索技术,小型的搜索引擎帮助你快速查询各种资料","link":null},{"title":"指令代骰","icon":"at","details":"通过 @ 指名代替其他玩家进行检定,愉快规避掉鸽子带来的麻烦事","link":null},{"title":"自定义扩展","icon":"discover","details":"提供牌堆等或实用或娱乐的扩展能力","link":null}]},{"header":"开始使用","features":[{"title":"特色功能","icon":"categoryselected","details":"快速了解和其它骰系的区别","link":"./deploy/special_feature.md"},{"title":"我是 PL","icon":"interact","details":"指令快速上手","link":"./use/quick-start.md"},{"title":"我是 GM","icon":"read","details":"了解全部指令","link":"./use/core.md"},{"title":"我是骰主","icon":"light","details":"了解如何快速搭建海豹","link":"./deploy/quick-start.md"},{"title":"我是 MOD 作者","icon":"setting","details":"了解海豹的扩展能力,定制属于你的骰子","link":"./advanced/introduce.md"},{"title":"我是开发者","icon":"code","details":"一起开始海豹的开发吧","link":"./about/develop.md"}]},{"header":"更多……","description":"使用有问题?对功能有新想法?想认识更多骰主?欢迎加入官方群","image":"/images/seal2.png","bgImage":"/images/bg/6-light.svg","bgImageDark":"/images/bg/6-dark.svg","highlights":[{"title":"QQ 一群:524364253"},{"title":"QQ 二群:562897832"},{"title":"QQ 三群:715664650"},{"title":"QQ 四群:917654757"},{"title":"QQ 五群:747114944"},{"title":"DODO 群:https://imdodo.com/s/246716"},{"title":"KOOK 群:https://kook.top/Cmr0Fy"}]}],"description":"","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"首页"}],["meta",{"property":"og:type","content":"website"}],["meta",{"property":"og:locale","content":"zh-cn"}],["meta",{"property":"og:updated_time","content":"2023-11-02T05:25:21.000Z"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-11-02T05:25:21.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"WebPage\\",\\"name\\":\\"首页\\"}"]]},"headers":[],"git":{"createdTime":1698059111000,"updatedTime":1698902721000,"contributors":[{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":10},{"name":"Xiangze Li","email":"lee_johnson@qq.com","commits":2}]},"readingTime":{"minutes":1.71,"words":513},"filePathRelative":"index.md","localizedDate":"2023年10月23日","autoDesc":true,"excerpt":""}');export{e as data}; diff --git a/assets/index.html-220653af.js b/assets/index.html-220653af.js new file mode 100644 index 000000000..93096c62e --- /dev/null +++ b/assets/index.html-220653af.js @@ -0,0 +1 @@ +import{_ as n}from"./plugin-vue_export-helper-c27b6911.js";import{r,o as c,c as u,a as e,b as o,w as l,d as a}from"./app-d2f9e1e0.js";const s={};function _(i,d){const t=r("RouterLink");return c(),u("div",null,[e("ul",null,[e("li",null,[o(t,{to:"/about/about.html"},{default:l(()=>[a("关于")]),_:1})]),e("li",null,[o(t,{to:"/about/license.html"},{default:l(()=>[a("许可协议")]),_:1})]),e("li",null,[o(t,{to:"/about/develop.html"},{default:l(()=>[a("参与项目")]),_:1})])])])}const p=n(s,[["render",_],["__file","index.html.vue"]]);export{p as default}; diff --git a/assets/index.html-4ad9f49f.js b/assets/index.html-4ad9f49f.js new file mode 100644 index 000000000..3d933da23 --- /dev/null +++ b/assets/index.html-4ad9f49f.js @@ -0,0 +1 @@ +import{_ as o}from"./plugin-vue_export-helper-c27b6911.js";import{r as a,o as s,c as i,a as l,d as t,b as u,w as n}from"./app-d2f9e1e0.js";const _={};function r(d,c){const e=a("RouterLink");return s(),i("div",null,[l("ul",null,[l("li",null,[t("新手入门 "),l("ul",null,[l("li",null,[u(e,{to:"/use/introduce.html"},{default:n(()=>[t("基础概念")]),_:1})]),l("li",null,[u(e,{to:"/use/quick-start.html"},{default:n(()=>[t("快速上手")]),_:1})])])]),l("li",null,[t("核心指令 "),l("ul",null,[l("li",null,[u(e,{to:"/use/core.html"},{default:n(()=>[t("核心指令")]),_:1})])])]),l("li",null,[t("规则扩展 "),l("ul",null,[l("li",null,[u(e,{to:"/use/coc7.html"},{default:n(()=>[t("克苏鲁的呼唤 7 版")]),_:1})]),l("li",null,[u(e,{to:"/use/dnd5e.html"},{default:n(()=>[t("龙与地下城 5E")]),_:1})]),l("li",null,[u(e,{to:"/use/attribute_alias.html"},{default:n(()=>[t("属性同义词")]),_:1})]),l("li",null,[u(e,{to:"/use/other_rules.html"},{default:n(()=>[t("其它规则支持")]),_:1})])])]),l("li",null,[t("功能扩展 "),l("ul",null,[l("li",null,[u(e,{to:"/use/story.html"},{default:n(()=>[t("故事")]),_:1})]),l("li",null,[u(e,{to:"/use/log.html"},{default:n(()=>[t("日志")]),_:1})]),l("li",null,[u(e,{to:"/use/fun.html"},{default:n(()=>[t("娱乐")]),_:1})]),l("li",null,[u(e,{to:"/use/deck_and_reply.html"},{default:n(()=>[t("牌堆 自定义回复")]),_:1})])])]),l("li",null,[u(e,{to:"/use/faq.html"},{default:n(()=>[t("常见问题")]),_:1})])])])}const h=o(_,[["render",r],["__file","index.html.vue"]]);export{h as default}; diff --git a/assets/index.html-504e4869.js b/assets/index.html-504e4869.js new file mode 100644 index 000000000..e42633074 --- /dev/null +++ b/assets/index.html-504e4869.js @@ -0,0 +1 @@ +const e=JSON.parse('{"key":"v-74bc627b","path":"/about/","title":"关于","lang":"zh-CN","frontmatter":{"title":"关于","index":false,"description":"关于 (./about.md); 许可协议 (./license.md); 参与项目 (./develop.md);","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/about/"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"关于"}],["meta",{"property":"og:description","content":"关于 (./about.md); 许可协议 (./license.md); 参与项目 (./develop.md);"}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"og:updated_time","content":"2023-10-31T07:57:42.000Z"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-10-31T07:57:42.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"关于\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2023-10-31T07:57:42.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[],"git":{"createdTime":1698739062000,"updatedTime":1698739062000,"contributors":[{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":1}]},"readingTime":{"minutes":0.06,"words":18},"filePathRelative":"about/README.md","localizedDate":"2023年10月31日","autoDesc":true,"excerpt":""}');export{e as data}; diff --git a/assets/index.html-5bd131e8.js b/assets/index.html-5bd131e8.js new file mode 100644 index 000000000..9e157e57e --- /dev/null +++ b/assets/index.html-5bd131e8.js @@ -0,0 +1 @@ +import{_ as c}from"./plugin-vue_export-helper-c27b6911.js";import{r as u,o as i,c as a,a as l,d as t,b as n,w as o}from"./app-d2f9e1e0.js";const r={};function f(_,s){const e=u("RouterLink");return i(),a("div",null,[l("ul",null,[l("li",null,[t("扩展功能 "),l("ul",null,[l("li",null,[n(e,{to:"/config/custom_text.html"},{default:o(()=>[t("自定义文案")]),_:1})]),l("li",null,[n(e,{to:"/config/reply.html"},{default:o(()=>[t("自定义回复")]),_:1})]),l("li",null,[n(e,{to:"/config/deck.html"},{default:o(()=>[t("牌堆")]),_:1})]),l("li",null,[n(e,{to:"/config/jsscript.html"},{default:o(()=>[t("JavaScript 插件")]),_:1})]),l("li",null,[n(e,{to:"/config/helpdoc.html"},{default:o(()=>[t("帮助文档")]),_:1})]),l("li",null,[n(e,{to:"/config/censor.html"},{default:o(()=>[t("拦截")]),_:1})])])]),l("li",null,[t("综合设置 "),l("ul",null,[l("li",null,[n(e,{to:"/config/ban.html"},{default:o(()=>[t("黑白名单")]),_:1})])])])])])}const h=c(r,[["render",f],["__file","index.html.vue"]]);export{h as default}; diff --git a/assets/index.html-5bfe6aa2.js b/assets/index.html-5bfe6aa2.js new file mode 100644 index 000000000..aee7f8114 --- /dev/null +++ b/assets/index.html-5bfe6aa2.js @@ -0,0 +1 @@ +import{_ as e}from"./plugin-vue_export-helper-c27b6911.js";import{o as t,c}from"./app-d2f9e1e0.js";const o={};function r(n,_){return t(),c("div")}const f=e(o,[["render",r],["__file","index.html.vue"]]);export{f as default}; diff --git a/assets/index.html-6b857d4d.js b/assets/index.html-6b857d4d.js new file mode 100644 index 000000000..63234ca2f --- /dev/null +++ b/assets/index.html-6b857d4d.js @@ -0,0 +1 @@ +import{_ as n}from"./plugin-vue_export-helper-c27b6911.js";import{r as o,o as c,c as i,a as e,b as a,w as d,d as t}from"./app-d2f9e1e0.js";const _={};function u(r,s){const l=o("RouterLink");return c(),i("div",null,[e("ul",null,[e("li",null,[a(l,{to:"/advanced/introduce.html"},{default:d(()=>[t("进阶介绍")]),_:1})]),e("li",null,[a(l,{to:"/advanced/script.html"},{default:d(()=>[t("内置脚本语言")]),_:1})]),e("li",null,[t("扩展功能进阶 "),e("ul",null,[e("li",null,[a(l,{to:"/advanced/edit_complex_custom_text.html"},{default:d(()=>[t("编写复杂文案")]),_:1})]),e("li",null,[a(l,{to:"/advanced/edit_reply.html"},{default:d(()=>[t("编写自定义回复")]),_:1})]),e("li",null,[a(l,{to:"/advanced/edit_deck.html"},{default:d(()=>[t("编写牌堆")]),_:1})]),e("li",null,[a(l,{to:"/advanced/edit_jsscript.html"},{default:d(()=>[t("编写 JavaScript 插件")]),_:1})]),e("li",null,[a(l,{to:"/advanced/edit_helpdoc.html"},{default:d(()=>[t("编写帮助文档")]),_:1})]),e("li",null,[a(l,{to:"/advanced/edit_sensitive_words.html"},{default:d(()=>[t("编写敏感词库")]),_:1})])])])])])}const h=n(_,[["render",u],["__file","index.html.vue"]]);export{h as default}; diff --git a/assets/index.html-a2823f62.js b/assets/index.html-a2823f62.js new file mode 100644 index 000000000..3275fb4e9 --- /dev/null +++ b/assets/index.html-a2823f62.js @@ -0,0 +1 @@ +const e=JSON.parse('{"key":"v-ba934fd8","path":"/config/","title":"配置","lang":"zh-CN","frontmatter":{"title":"配置","index":false,"description":"扩展功能; 自定义文案 (./custom_text.md); 自定义回复 (./reply.md); 牌堆 (./deck.md); JavaScript 插件 (./jsscript.md); 帮助文档 (./helpdoc.md); 拦截 (./censor.md); 综合设置; 黑白名单 (./ban.md);","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/config/"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"配置"}],["meta",{"property":"og:description","content":"扩展功能; 自定义文案 (./custom_text.md); 自定义回复 (./reply.md); 牌堆 (./deck.md); JavaScript 插件 (./jsscript.md); 帮助文档 (./helpdoc.md); 拦截 (./censor.md); 综合设置; 黑白名单 (./ban.md);"}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"og:updated_time","content":"2023-11-02T05:25:21.000Z"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-11-02T05:25:21.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"配置\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2023-11-02T05:25:21.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[],"git":{"createdTime":1698739062000,"updatedTime":1698902721000,"contributors":[{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":2}]},"readingTime":{"minutes":0.15,"words":45},"filePathRelative":"config/README.md","localizedDate":"2023年10月31日","autoDesc":true,"excerpt":""}');export{e as data}; diff --git a/assets/index.html-aaea9432.js b/assets/index.html-aaea9432.js new file mode 100644 index 000000000..1622db78e --- /dev/null +++ b/assets/index.html-aaea9432.js @@ -0,0 +1 @@ +const t=JSON.parse('{"key":"v-72a9c1e2","path":"/deploy/","title":"部署","lang":"zh-CN","frontmatter":{"title":"部署","index":false,"description":"快速开始 (./quick-start.md); 迁移 (./transfer.md); 特色功能 (./special_feature.md); 平台; QQ (./platform-qq.md); KOOK (./platform-kook.md); DODO (./platform-dodo.md); ……;","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/deploy/"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"部署"}],["meta",{"property":"og:description","content":"快速开始 (./quick-start.md); 迁移 (./transfer.md); 特色功能 (./special_feature.md); 平台; QQ (./platform-qq.md); KOOK (./platform-kook.md); DODO (./platform-dodo.md); ……;"}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"og:updated_time","content":"2023-11-02T19:07:23.000Z"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-11-02T19:07:23.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"部署\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2023-11-02T19:07:23.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[],"git":{"createdTime":1698739062000,"updatedTime":1698952043000,"contributors":[{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":2}]},"readingTime":{"minutes":0.1,"words":30},"filePathRelative":"deploy/README.md","localizedDate":"2023年10月31日","autoDesc":true,"excerpt":""}');export{t as data}; diff --git a/assets/index.html-c688fc39.js b/assets/index.html-c688fc39.js new file mode 100644 index 000000000..046fe4cba --- /dev/null +++ b/assets/index.html-c688fc39.js @@ -0,0 +1 @@ +const t=JSON.parse('{"key":"v-638c1d18","path":"/advanced/","title":"进阶","lang":"zh-CN","frontmatter":{"title":"进阶","index":false,"description":"进阶介绍 (./introduce.md); 内置脚本语言 (./script.md); 扩展功能进阶; 编写复杂文案 (./editcomplexcustom_text.md); 编写自定义回复 (./edit_reply.md); 编写牌堆 (./edit_deck.md); 编写 JavaScript 插件 (./edit_jsscript.md...","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/advanced/"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"进阶"}],["meta",{"property":"og:description","content":"进阶介绍 (./introduce.md); 内置脚本语言 (./script.md); 扩展功能进阶; 编写复杂文案 (./editcomplexcustom_text.md); 编写自定义回复 (./edit_reply.md); 编写牌堆 (./edit_deck.md); 编写 JavaScript 插件 (./edit_jsscript.md..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"og:updated_time","content":"2023-10-31T07:57:42.000Z"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-10-31T07:57:42.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"进阶\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2023-10-31T07:57:42.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[],"git":{"createdTime":1698739062000,"updatedTime":1698739062000,"contributors":[{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":1}]},"readingTime":{"minutes":0.21,"words":63},"filePathRelative":"advanced/README.md","localizedDate":"2023年10月31日","autoDesc":true,"excerpt":""}');export{t as data}; diff --git a/assets/index.html-fc5984b6.js b/assets/index.html-fc5984b6.js new file mode 100644 index 000000000..1cc381530 --- /dev/null +++ b/assets/index.html-fc5984b6.js @@ -0,0 +1 @@ +import{_ as a}from"./plugin-vue_export-helper-c27b6911.js";import{r,o as u,c as d,a as l,b as o,w as n,d as e}from"./app-d2f9e1e0.js";const _={},i=l("li",null,"……",-1);function s(c,f){const t=r("RouterLink");return u(),d("div",null,[l("ul",null,[l("li",null,[o(t,{to:"/deploy/quick-start.html"},{default:n(()=>[e("快速开始")]),_:1})]),l("li",null,[o(t,{to:"/deploy/transfer.html"},{default:n(()=>[e("迁移")]),_:1})]),l("li",null,[o(t,{to:"/deploy/special_feature.html"},{default:n(()=>[e("特色功能")]),_:1})]),l("li",null,[e("平台 "),l("ul",null,[l("li",null,[o(t,{to:"/deploy/platform-qq.html"},{default:n(()=>[e("QQ")]),_:1})]),l("li",null,[o(t,{to:"/deploy/platform-kook.html"},{default:n(()=>[e("KOOK")]),_:1})]),l("li",null,[o(t,{to:"/deploy/platform-dodo.html"},{default:n(()=>[e("DODO")]),_:1})]),i])])])])}const h=a(_,[["render",s],["__file","index.html.vue"]]);export{h as default}; diff --git a/assets/infoDiagram-2064d999-3ca7a546.js b/assets/infoDiagram-2064d999-3ca7a546.js new file mode 100644 index 000000000..d8e8632e7 --- /dev/null +++ b/assets/infoDiagram-2064d999-3ca7a546.js @@ -0,0 +1,7 @@ +import{l as Y,aK as D,i as M}from"./mermaid.core-d8bc71ff.js";import"./app-d2f9e1e0.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;ie[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 K=a=>{$=a},V=()=>$,X=()=>{$=j.info},q={clear:X,setInfo:K,getInfo:V},C=(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}`)},G={draw:C},Q={parser:B,db:q,renderer:G};export{Q as diagram}; diff --git a/assets/init-77b53fdd.js b/assets/init-77b53fdd.js new file mode 100644 index 000000000..d44de9416 --- /dev/null +++ b/assets/init-77b53fdd.js @@ -0,0 +1 @@ +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}; diff --git a/assets/introduce.html-4f742cd4.js b/assets/introduce.html-4f742cd4.js new file mode 100644 index 000000000..abc0fb3dc --- /dev/null +++ b/assets/introduce.html-4f742cd4.js @@ -0,0 +1 @@ +import{_ as s}from"./plugin-vue_export-helper-c27b6911.js";import{r as a,o as i,c,a as e,d as t,b as n,w as l,e as d}from"./app-d2f9e1e0.js";const h={},p=d('

    进阶介绍

    本节内容

    本节将介绍海豹扩展功能的进阶内容,请善用侧边栏和搜索,按需阅读文档。

    海豹核心提供了多种扩展功能,这些功能能让你实现更多的个性化功能,但通常也需要你具备一些知识。

    我们建议,在尝试使用对应功能进行个性化前,先阅读本章的对应小节,帮助你快速掌握相关内容。

    阅读完小节教程后,如果在使用中依然存在疑问,可以在官方群内寻求帮助。

    了解海豹语

    在很多地方为了实现一些逻辑,都需要用到海豹所提供的一种简单的脚本语言,可以称为「海豹语」「豹语」等。

    ',7),_=e("h2",{id:"用什么编写",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#用什么编写","aria-hidden":"true"},"#"),t(" 用什么编写?")],-1),u=e("p",null,"在牌堆、JS 插件、敏感词库等的编写中,我们通常需要在对应格式的文件进行编写。",-1),f={href:"https://code.visualstudio.com",target:"_blank",rel:"noopener noreferrer"},m={href:"https://www.sublimetext.com",target:"_blank",rel:"noopener noreferrer"},x=e("p",null,"更专业的编辑器能更好地帮助你编写相关格式的文件。这些编辑器提供的语法高亮、自动补全、格式化、错误检查、编码转换等诸多功能,能为你带来更好的编写体验。",-1),v=e("p",null,[e("em",null,"不建议使用 Windows 记事本、Notepad++ 编写。")],-1),b=e("div",{class:"hint-container tip"},[e("p",{class:"hint-container-title"},"如何获取安装包?"),e("p",null,[e("strong",null,"官网"),t("应当是你下载软件的首选途径,请不要被搜索引擎等误导进各种下载站,它们很可能会提供二次封装后、捆绑大量流氓软件的安装包。")]),e("p",null,"但由于各种原因,官网下载可能会十分缓慢,你还可以选择从海豹官方群的群文件中获取安装包。通常群文件的「工具&内置文件」中,请善用搜索。")],-1);function k(w,N){const r=a("RouterLink"),o=a("ExternalLinkIcon");return i(),c("div",null,[p,e("p",null,[t("我们非常建议你在扩展功能的编写中,先了解海豹语。见 "),n(r,{to:"/advanced/script.html"},{default:l(()=>[t("扩展-内置脚本语言")]),_:1}),t("。")]),_,u,e("p",null,[t("务必使用更专业的编辑器,如果你不知道选择什么,可以尝试使用 "),e("a",f,[t("vscode"),n(o)]),t("、"),e("a",m,[t("sublime text"),n(o)]),t("或 MT 管理器(Android)等,这些都是被广泛使用的优秀编辑器。")]),x,v,b])}const g=s(h,[["render",k],["__file","introduce.html.vue"]]);export{g as default}; diff --git a/assets/introduce.html-8626e822.js b/assets/introduce.html-8626e822.js new file mode 100644 index 000000000..706e360c0 --- /dev/null +++ b/assets/introduce.html-8626e822.js @@ -0,0 +1 @@ +const e=JSON.parse('{"key":"v-e461914a","path":"/use/introduce.html","title":"基础概念","lang":"zh-cn","frontmatter":{"lang":"zh-cn","title":"基础概念","description":"本节内容 这里讲的是使用海豹核心的相关事项,如果要了解如何搭建和部署骰子,请参考 部署 - 快速开始 (../deploy/quick-start.md)。 以下内容针对从未接触过骰子的用户准备。如果你已经有使用其他骰系的经验,可以 跳过本节 (./quick-start.md)。 什么是骰子? 骰子这里特指在即时聊天软件(如 QQ、KOOK、Disc...","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/use/introduce.html"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"基础概念"}],["meta",{"property":"og:description","content":"本节内容 这里讲的是使用海豹核心的相关事项,如果要了解如何搭建和部署骰子,请参考 部署 - 快速开始 (../deploy/quick-start.md)。 以下内容针对从未接触过骰子的用户准备。如果你已经有使用其他骰系的经验,可以 跳过本节 (./quick-start.md)。 什么是骰子? 骰子这里特指在即时聊天软件(如 QQ、KOOK、Disc..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-cn"}],["meta",{"property":"og:updated_time","content":"2023-11-02T19:07:23.000Z"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-11-02T19:07:23.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"基础概念\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2023-11-02T19:07:23.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[{"level":2,"title":"什么是骰子?","slug":"什么是骰子","link":"#什么是骰子","children":[]},{"level":2,"title":"获取和使用","slug":"获取和使用","link":"#获取和使用","children":[{"level":3,"title":"指令回复","slug":"指令回复","link":"#指令回复","children":[]},{"level":3,"title":"自定义回复","slug":"自定义回复","link":"#自定义回复","children":[]}]}],"git":{"createdTime":1698059111000,"updatedTime":1698952043000,"contributors":[{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":3},{"name":"Xiangze Li","email":"lee_johnson@qq.com","commits":1}]},"readingTime":{"minutes":5,"words":1500},"filePathRelative":"use/introduce.md","localizedDate":"2023年10月23日","autoDesc":true,"excerpt":""}');export{e as data}; diff --git a/assets/introduce.html-c7d15f37.js b/assets/introduce.html-c7d15f37.js new file mode 100644 index 000000000..6c1e9cb0c --- /dev/null +++ b/assets/introduce.html-c7d15f37.js @@ -0,0 +1,7 @@ +import{_ as s}from"./plugin-vue_export-helper-c27b6911.js";import{r as c,o as l,c as r,a as e,d,b as o,w as n,f as h,e as a}from"./app-d2f9e1e0.js";const p={},_=e("h1",{id:"基础概念",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#基础概念","aria-hidden":"true"},"#"),d(" 基础概念")],-1),u={class:"hint-container info"},f=e("p",{class:"hint-container-title"},"本节内容",-1),m=e("strong",null,"使用",-1),g=e("strong",null,"搭建和部署",-1),v=e("h2",{id:"什么是骰子",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#什么是骰子","aria-hidden":"true"},"#"),d(" 什么是骰子?")],-1),x=e("p",null,[e("strong",null,"骰子"),d("这里特指在即时聊天软件(如 QQ、KOOK、Discord)中为 TRPG(跑团)玩家提供方便的机器人。顾名思义,骰子提供各种基于各种跑团规则(如 CoC、D&D)的骰点服务,"),e("br"),d(" 同时还包括技能检定、日志记录(Log)等功能。一些骰子服务,包括 SealDice,还提供一系列的自定义和娱乐功能。")],-1),b=e("h2",{id:"获取和使用",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#获取和使用","aria-hidden":"true"},"#"),d(" 获取和使用")],-1),k={href:"https://docs.qq.com/sheet/DV0F4RWdyellaRkZD?tab=BB08J2&scode=",target:"_blank",rel:"noopener noreferrer"},D=a('

    一般而言,公骰是免费的。但他们的维护者(骰主)一般都要求用户严格遵循使用协议,使用前请使用 .help 协议 指令了解你需要注意哪些事项。

    QQ 骰子的使用注意项

    QQ 并未提供公开的机器人接口,因此机器人只能使用第三方软件作为假用户接入。QQ 可能会检测到这些机器人,将它们视为诈骗而予以警告、封禁,甚至永久冻结。

    因此,在 QQ 使用骰子有许多约定俗成的规则,例如必须使用指令使骰子退群,而严禁直接移出群聊。为了尊重骰主的劳动成果,你应该遵守这些规则。

    在 QQ 上,你需要和骰子成为好友,然后拉入群组使用;在其他平台,一般使用邀请链接或者其他方式(详细操作请查看对应平台的相关使用文档)将机器人邀请进服务器、频道,或群组。之后,你可以通过触发 指令回复自定义回复 来使用骰子机器人了。

    指令回复

    指令是和骰子互动的基本方式。一个指令由指令前缀、指令名、指令参数、指令标志组成。

    指令前缀

    为了避免意外触发,指令前面都带有前缀,如 .help 协议 中的 .。按照习惯,指令前缀一般是便于输入的中英文句号,通常是 .

    海豹核心提供了自定义指令前缀功能,因此,其他符号如 /,甚至一段话 哦,我的骰子, 都可以被用作前缀。如果你使用公骰,请注意查阅它的使用说明。

    指令名

    .help 协议 为例,其中的 help 就是指令名。指令可以有别名,例如 查询 就是 find 的别名。

    ',10),Q={class:"hint-container info"},y=e("p",{class:"hint-container-title"},"指令的行为与预期不符?",-1),C=e("p",null,"如果你发现指令的回复与预期不符合,有可能是没有开启正确的扩展,从而执行了来自其他扩展的指令。",-1),V=e("code",null,"rc",-1),q=e("code",null,"ext",-1),B=a(`

    指令参数

    .help 协议 为例,其中 协议 就是指令参数,参数提供指令所需要的信息。

    虽然海豹在一定程度上可以兼容 .help协议 这种情况,但是在指令名与参数、参数与参数之间添加空格能保证海豹骰识别指令时准确无误,避免出现预期外情况。

    获取指令帮助

    多数情况下,第一个参数为 help,或者没有正确提供指令所需参数时会返回指令的帮助信息。例如,下面是 find 指令返回的帮助信息:

    查询指令,通常使用全文搜索(x86 版)或快速查询(arm, 移动版)
    +.find/查询 <关键字>      // 查找文档。关键字可以多个,用空格分割
    +.find#<分组> <关键字>    // 查找指定分组下的文档。关键字可以多个,用空格分割
    +.find <数字 ID>          // 显示该 ID 的词条
    +.find --rand           // 显示随机词条
    +.find <关键字> --num=10 // 需要更多结果
    +

    依照惯例,帮助说明中的的一些符号有特定含义,说明如下:

    1. <关键字> 的尖括号 <> 表示你应以相应内容替换此处内容。

      正常的用例:.find 火球术
      错误的用例:.find <火球术>

    2. [关键字](关键字) 的括号 [] () 表示此参数可以被省略。

    3. (关键字1|关键字2) 的圆括号 () 搭配竖线 | 表示在所列各项中选择一个。

    指令标志

    标志(flag)和参数相似,但不同于参数往往需要处于按照一定的顺序出现,标志可以无序排列。标志通过特定的关键字(key)来辅助识别,一般形式为 --key=value 或者 --key

    注意

    一些系统(如 iOS)会将两个连字符(hyphen)-- 自动转换为短画线(en dash),输入 flag 时请注意辨别。

    自定义回复

    `,8),L=e("p",null,"海豹核心没有预置的自定义回复,完全由骰主自行设定。因此每个骰子使用自定义回复的方法可能完全不同。",-1),N=e("p",null,"如果你使用公骰,请参阅相应的使用文档以了解骰主设定的自定义回复。",-1);function O(R,I){const t=c("RouterLink"),i=c("ExternalLinkIcon");return l(),r("div",null,[_,e("div",u,[f,e("p",null,[d("这里讲的是"),m,d("海豹核心的相关事项,如果要了解如何"),g,d("骰子,请参考 "),o(t,{to:"/deploy/quick-start.html"},{default:n(()=>[d("部署 - 快速开始")]),_:1}),d("。")]),e("p",null,[d("以下内容针对从未接触过骰子的用户准备。如果你已经有使用其他骰系的经验,可以 "),o(t,{to:"/use/quick-start.html"},{default:n(()=>[d("跳过本节")]),_:1}),d("。")])]),v,x,b,e("p",null,[d("最简单的方法就是自己 "),o(t,{to:"/deploy/quick-start.html"},{default:n(()=>[d("搭建")]),_:1}),d(" 一个海豹骰自用(私骰),也可以从 "),e("a",k,[d("SealDice 海豹骰公骰登记表"),o(i)]),d(" 中寻找一个面向公众提供服务的骰子(公骰)。")]),D,e("div",Q,[y,e("p",null,[d("海豹通过 "),o(t,{to:"/advanced/introduce.html"},{default:n(()=>[d("扩展")]),_:1}),d(" 来组织功能和指令,指令名只要求在同一扩展内不重复。")]),C,e("p",null,[d("例如,CoC 和 D&D 都存在掷骰检定指令 "),V,d(",你需要通过扩展管理指令 "),o(t,{to:"/use/core.html"},{default:n(()=>[q]),_:1}),d(" 来开启其中一个、关闭另一个,以控制指令的行为。")]),h(" TODO ext 链接到适当的段标题 ")]),B,e("p",null,[o(t,{to:"/use/deck_and_reply.html"},{default:n(()=>[d("自定义回复")]),_:1}),d(" 形式自由,触发机制多样(关键字、正则表达式等),并且能配合海豹核心独特的变量系统使用。")]),L,N])}const T=s(p,[["render",O],["__file","introduce.html.vue"]]);export{T as default}; diff --git a/assets/introduce.html-ed378809.js b/assets/introduce.html-ed378809.js new file mode 100644 index 000000000..09a31b590 --- /dev/null +++ b/assets/introduce.html-ed378809.js @@ -0,0 +1 @@ +const e=JSON.parse('{"key":"v-c7c02ce4","path":"/advanced/introduce.html","title":"进阶介绍","lang":"zh-cn","frontmatter":{"lang":"zh-cn","title":"进阶介绍","description":"本节内容 本节将介绍海豹扩展功能的进阶内容,请善用侧边栏和搜索,按需阅读文档。 海豹核心提供了多种扩展功能,这些功能能让你实现更多的个性化功能,但通常也需要你具备一些知识。 我们建议,在尝试使用对应功能进行个性化前,先阅读本章的对应小节,帮助你快速掌握相关内容。 阅读完小节教程后,如果在使用中依然存在疑问,可以在官方群内寻求帮助。 了解海豹语 在很多地...","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/advanced/introduce.html"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"进阶介绍"}],["meta",{"property":"og:description","content":"本节内容 本节将介绍海豹扩展功能的进阶内容,请善用侧边栏和搜索,按需阅读文档。 海豹核心提供了多种扩展功能,这些功能能让你实现更多的个性化功能,但通常也需要你具备一些知识。 我们建议,在尝试使用对应功能进行个性化前,先阅读本章的对应小节,帮助你快速掌握相关内容。 阅读完小节教程后,如果在使用中依然存在疑问,可以在官方群内寻求帮助。 了解海豹语 在很多地..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-cn"}],["meta",{"property":"og:updated_time","content":"2023-10-30T09:14:16.000Z"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-10-30T09:14:16.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"进阶介绍\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2023-10-30T09:14:16.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[{"level":2,"title":"了解海豹语","slug":"了解海豹语","link":"#了解海豹语","children":[]},{"level":2,"title":"用什么编写?","slug":"用什么编写","link":"#用什么编写","children":[]}],"git":{"createdTime":1698059111000,"updatedTime":1698657256000,"contributors":[{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":2}]},"readingTime":{"minutes":1.79,"words":538},"filePathRelative":"advanced/introduce.md","localizedDate":"2023年10月23日","autoDesc":true,"excerpt":""}');export{e as data}; diff --git a/assets/journeyDiagram-6df70039-a61a8f46.js b/assets/journeyDiagram-6df70039-a61a8f46.js new file mode 100644 index 000000000..2353af69e --- /dev/null +++ b/assets/journeyDiagram-6df70039-a61a8f46.js @@ -0,0 +1,139 @@ +import{c as I,v as yt,x as ft,s as dt,g as pt,b as gt,a as mt,z as xt,h as W,i as kt}from"./mermaid.core-d8bc71ff.js";import{d as _t,f as bt,a as vt,g as it}from"./svgDrawCommon-057d45d0-b7474b9e.js";import{a as Q}from"./arc-3e498105.js";import"./app-d2f9e1e0.js";import"./path-53f90ab3.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 T;return T=u.pop()||x.lex()||J,typeof T!="number"&&(T instanceof Array&&(u=T,T=u.pop()),T=r.symbols_[T]||T),T}for(var _,E,b,O,A={},N,$,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($=this.productions_[b[1]][1],A.$=d[d.length-$],A._$={first_line:o[o.length-($||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-($||1)].first_column,last_column:o[o.length-1].last_column},ht&&(A._$.range=[o[o.length-($||1)].range[0],o[o.length-1].range[1]]),O=this.performAction.apply(A,[k,Z,R,S.yy,b[1],d,o].concat(ct)),typeof O<"u")return O;$&&(a=a.slice(0,-1*$*2),d=d.slice(0,-1*$),o=o.slice(0,-1*$)),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). +`+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;or[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 C="";const H=[],V=[],F=[],$t=function(){H.length=0,V.length=0,C="",F.length=0,xt()},Tt=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{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:$t,setDiagramTitle:yt,getDiagramTitle:ft,setAccTitle:dt,getAccTitle:pt,setAccDescription:gt,getAccDescription:mt,addSection:Tt,getSections:Mt,getTasks:St,addTask:Pt,addTaskOrg:It,getActors:At},Ct=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=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(//gi);for(let d=0;d{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,Ot=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),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=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,qt=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(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},Zt={parser:wt,db:tt,renderer:nt,styles:Vt,init:t=>{nt.setConf(t.journey),tt.clear()}};export{Zt as diagram}; diff --git a/assets/js-config-example-717e902c.png b/assets/js-config-example-717e902c.png new file mode 100644 index 000000000..859f1b6df Binary files /dev/null and b/assets/js-config-example-717e902c.png differ diff --git a/assets/jsscript-list-10e552c3.png b/assets/jsscript-list-10e552c3.png new file mode 100644 index 000000000..8589267dc Binary files /dev/null and b/assets/jsscript-list-10e552c3.png differ diff --git a/assets/jsscript-ui-a0d31675.png b/assets/jsscript-ui-a0d31675.png new file mode 100644 index 000000000..ba38abda9 Binary files /dev/null and b/assets/jsscript-ui-a0d31675.png differ diff --git a/assets/jsscript.html-102df8cf.js b/assets/jsscript.html-102df8cf.js new file mode 100644 index 000000000..cc084327d --- /dev/null +++ b/assets/jsscript.html-102df8cf.js @@ -0,0 +1 @@ +const t=JSON.parse('{"key":"v-0dd0cb1e","path":"/config/jsscript.html","title":"JavaScript 插件","lang":"zh-cn","frontmatter":{"lang":"zh-cn","title":"JavaScript 插件","description":"本节内容 本节将介绍 JavaScript 插件功能,请善用侧边栏和搜索,按需阅读文档。 JavaScript 插件是什么 为了给有能力的用户提供更大的自定义空间,海豹核心支持使用 JavaScript 语言编写扩展插件。 JavaScript JavaScript(JS)是一门基于原型和头等函数的多范式高级解释型编程语言,它支持面向对象程序设计、指令...","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/config/jsscript.html"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"JavaScript 插件"}],["meta",{"property":"og:description","content":"本节内容 本节将介绍 JavaScript 插件功能,请善用侧边栏和搜索,按需阅读文档。 JavaScript 插件是什么 为了给有能力的用户提供更大的自定义空间,海豹核心支持使用 JavaScript 语言编写扩展插件。 JavaScript JavaScript(JS)是一门基于原型和头等函数的多范式高级解释型编程语言,它支持面向对象程序设计、指令..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:image","content":"http://localhost:8080/sealdice-manual-next/"}],["meta",{"property":"og:locale","content":"zh-cn"}],["meta",{"property":"og:updated_time","content":"2023-10-30T09:14:16.000Z"}],["meta",{"name":"twitter:card","content":"summary_large_image"}],["meta",{"name":"twitter:image:alt","content":"JavaScript 插件"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-10-30T09:14:16.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"JavaScript 插件\\",\\"image\\":[\\"http://localhost:8080/sealdice-manual-next/\\"],\\"dateModified\\":\\"2023-10-30T09:14:16.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[{"level":2,"title":"JavaScript 插件是什么","slug":"javascript-插件是什么","link":"#javascript-插件是什么","children":[]},{"level":2,"title":"获取 JS 插件","slug":"获取-js-插件","link":"#获取-js-插件","children":[]},{"level":2,"title":"如何安装和管理 JS 插件?","slug":"如何安装和管理-js-插件","link":"#如何安装和管理-js-插件","children":[{"level":3,"title":"插件列表","slug":"插件列表","link":"#插件列表","children":[]},{"level":3,"title":"插件的更新","slug":"插件的更新","link":"#插件的更新","children":[]},{"level":3,"title":"控制台","slug":"控制台","link":"#控制台","children":[]},{"level":3,"title":"插件设置","slug":"插件设置","link":"#插件设置","children":[]}]},{"level":2,"title":"如何使用 JS 插件?","slug":"如何使用-js-插件","link":"#如何使用-js-插件","children":[]},{"level":2,"title":"如何编写 JS 插件?","slug":"如何编写-js-插件","link":"#如何编写-js-插件","children":[]}],"git":{"createdTime":1698072668000,"updatedTime":1698657256000,"contributors":[{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":5},{"name":"Szzrain","email":"54656633+Szzrain@users.noreply.github.com","commits":1}]},"readingTime":{"minutes":2.46,"words":738},"filePathRelative":"config/jsscript.md","localizedDate":"2023年10月23日","autoDesc":true,"excerpt":""}');export{t as data}; diff --git a/assets/jsscript.html-a806dddf.js b/assets/jsscript.html-a806dddf.js new file mode 100644 index 000000000..c6d938083 --- /dev/null +++ b/assets/jsscript.html-a806dddf.js @@ -0,0 +1 @@ +import{_ as o}from"./plugin-vue_export-helper-c27b6911.js";import{r as s,o as d,c as h,a,d as e,b as t,w as r,e as c}from"./app-d2f9e1e0.js";const p="/sealdice-manual-next/assets/jsscript-ui-a0d31675.png",l="/sealdice-manual-next/assets/jsscript-list-10e552c3.png",_="/sealdice-manual-next/assets/jsscrpit-console-ba7a344d.png",u={},f=c('

    JavaScript 插件

    本节内容

    本节将介绍 JavaScript 插件功能,请善用侧边栏和搜索,按需阅读文档。

    JavaScript 插件是什么

    为了给有能力的用户提供更大的自定义空间,海豹核心支持使用 JavaScript 语言编写扩展插件。

    ',4),S={class:"hint-container tip"},J=a("p",{class:"hint-container-title"},"JavaScript",-1),g=a("p",null,"JavaScript(JS)是一门基于原型和头等函数的多范式高级解释型编程语言,它支持面向对象程序设计、指令式编程和函数式编程。它提供方法来操控文本、数组、日期以及正则表达式等。",-1),x={style:{"text-align":"right"}},m={href:"https://zh.wikipedia.org/wiki/JavaScript",target:"_blank",rel:"noopener noreferrer"},v=a("h2",{id:"获取-js-插件",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#获取-js-插件","aria-hidden":"true"},"#"),e(" 获取 JS 插件")],-1),j={href:"https://github.com/sealdice/javascript",target:"_blank",rel:"noopener noreferrer"},b=c('

    无法访问仓库?

    仓库位于 GitHub,访问时请确认你的网络状况。

    如何安装和管理 JS 插件?

    点击海豹 UI 界面的「扩展功能-JS 扩展」选项,你就可以进入 JS 插件的管理页面。

    JS 扩展
    JS 扩展

    如果左上角的开关未打开,可以点击启用 JS 插件的支持。可以看见,在管理界面中有多个标签页,下面将一一介绍。

    插件列表

    在「插件列表」页,可以查看当前的 JS 插件列表并进行管理。

    JS 插件列表
    JS 插件列表

    在每一个插件名前都有一个开关,用来单独控制这个插件是否开启。

    点击「上传插件」,选择获取的插件文件,即可上传到海豹核心。在插件的右侧有「删除」按钮来删除不想要的插件。

    在对插件进行调整后,需要点击「重载 JS」来使修改生效。

    插件的更新

    一些插件作者为扩展提供了更新链接,方便你快速获取最新的插件。

    点击「更新」按钮后会取获取最新的插件数据,随后弹出获取到的新数据与当前插件数据的对比:

    对比弹窗的右上角可以控制显示的样式,如勾选「折叠无变更」可以收起过长的内容。

    确认插件的更新内容之后,点击「确认更新」即可升级到最新。

    控制台

    为了方便插件作者编写插件,海豹核心提供了「控制台」,方便直接测试代码。

    JS 插件控制台
    JS 插件控制台

    在代码框中编写代码,点击「执行代码」即可运行,运行结果将显示在下方。

    插件设置

    ',21),E=a("h2",{id:"如何使用-js-插件",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#如何使用-js-插件","aria-hidden":"true"},"#"),e(" 如何使用 JS 插件?")],-1),k=a("p",null,[e("不同的 JS 插件的使用方法不同,不过一般都是提供了一些 "),a("code",null,"."),e(" 开头的命令,可以查看相应扩展的说明来获取使用帮助。")],-1),B=a("h2",{id:"如何编写-js-插件",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#如何编写-js-插件","aria-hidden":"true"},"#"),e(" 如何编写 JS 插件?")],-1);function I(w,y){const i=s("ExternalLinkIcon"),n=s("RouterLink");return d(),h("div",null,[f,a("div",S,[J,g,a("div",x,[a("p",null,[e("—— "),a("a",m,[e("WIKI"),t(i)])])])]),v,a("p",null,[e("你可以在 "),a("a",j,[e("JS 插件仓库"),t(i)]),e(" 或官方群的群文件中找到其他骰主分享的 JS 插件。")]),b,a("p",null,[e("见 "),t(n,{to:"/advanced/edit_jsscript.html#%E6%B3%A8%E5%86%8C%E6%8F%92%E4%BB%B6%E9%85%8D%E7%BD%AE%E9%A1%B9"},{default:r(()=>[e("进阶 - 编写 JS 插件 - 注册插件配置项")]),_:1}),e("。")]),E,k,B,a("p",null,[e("见 "),t(n,{to:"/advanced/edit_jsscript.html"},{default:r(()=>[e("进阶 - 编写 JS 插件")]),_:1}),e("。")])])}const N=o(u,[["render",I],["__file","jsscript.html.vue"]]);export{N as default}; diff --git a/assets/jsscrpit-console-ba7a344d.png b/assets/jsscrpit-console-ba7a344d.png new file mode 100644 index 000000000..e97c63baf Binary files /dev/null and b/assets/jsscrpit-console-ba7a344d.png differ diff --git a/assets/layout-58f7ec6d.js b/assets/layout-58f7ec6d.js new file mode 100644 index 000000000..3c60d1439 --- /dev/null +++ b/assets/layout-58f7ec6d.js @@ -0,0 +1 @@ +import{A as H,B as fr,S as O,C as x,D as F,E as fn,F as dr,G as cr,H as hr,I as Te,J as lr,K as vr,L as dn,M as X,N as gr,O as Le,P as pr,Q as q,R as an,T as Cn,U as br,V as Ln,W as wr,X as mr,Y as U,Z as In,_ as _r,$ as Ae,a0 as Kn,a1 as Er,a2 as yr,a3 as Ne,a4 as V,a5 as Oe,a6 as xr,a7 as Pn,a8 as on,a9 as Tr,aa as bn,ab as Lr,ac as B,ad as Xn,ae as Vn,af as An}from"./mermaid.core-d8bc71ff.js";var Ar="[object Symbol]";function $(n){return typeof n=="symbol"||H(n)&&fr(n)==Ar}function R(n,e){for(var r=-1,t=n==null?0:n.length,i=Array(t);++r-1}function T(n){return fn(n)?dr(n):cr(n)}var qr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Wr=/^\w*$/;function $n(n,e){if(x(n))return!1;var r=typeof n;return r=="number"||r=="symbol"||r=="boolean"||n==null||$(n)?!0:Wr.test(n)||!qr.test(n)||e!=null&&n in Object(e)}var jr=500;function Kr(n){var e=hr(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 $e(n){return n==null?"":Ce(n)}function cn(n,e){return x(n)?n:$n(n,e)?[n]:Jr($e(n))}var Qr=1/0;function Z(n){if(typeof n=="string"||$(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&&r0&&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 lr(vr(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]);++is))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);++h2?e[2]:void 0;for(i&&on(e[0],e[1],i)&&(t=1);++r-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)),Pe(n,C(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,C(e))}function Ea(n,e){return n==null?n:Oe(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&&qe(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 ne||a&&o&&u&&!s&&!f||t&&o&&u||!r&&u||!i)return 1;if(!t&&!a&&!f&&n=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(C));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 Ia(i,function(a,o){return $a(a,o,r)})}function Ma(n,e){return Ca(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?e1&&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 Ha=1/0,qa=bn&&1/Rn(new bn([,-0]))[1]==Ha?function(n){return new bn(n)}:kr;const Wa=qa;var ja=200;function Ka(n,e,r){var t=-1,i=Hr,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(;++t1?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]=P,this._children[e]={},this._children[P][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=P;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!==P)return r}}children(e){if(y(e)&&(e=P),this._isCompound){var r=this._children[e];if(r)return T(r)}else{if(e===P)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 Xn(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;ao.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),qn(n,e),$o(n,e)}function $o(n,e){var r=kn(n.nodes(),function(i){return!e.node(i).parent}),t=Io(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 So(n,e,r){return n.hasEdge(e,r)}function me(n,e,r){return r.low<=e.lim&&e.lim<=r.lim}function Mo(n){switch(n.graph().ranker){case"network-simplex":_e(n);break;case"tight-tree":Fo(n);break;case"longest-path":Ro(n);break;default:_e(n)}}var Ro=Hn;function Fo(n){Hn(n),Qe(n)}function _e(n){M(n)}function Do(n){var e=k(n,"root",{},"_root"),r=Go(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=ko(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 Go(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 ko(n){return J(n.edges(),function(e,r){return e+n.edge(r).weight},0)}function Bo(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 Yo(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 Uo(n,e,r){var t=Ho(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 Ho(n){for(var e;n.hasNode(e=Un("_root")););return e}function qo(n,e){for(var r=0,t=1;t0;)d%2&&(h+=s[d+1]),d=d-1>>1,s[d]+=f.weight;u+=f.weight*h})),u}function jo(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 Ko(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 Xo(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 Vo(t)}function Vo(n){var e=[];function r(a){return function(o){o.merged||(y(o.barycenter)||y(a.barycenter)||o.barycenter>=a.barycenter)&&Zo(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 Zo(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 Jo(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(Qo(!!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 Qo(n){return function(e,r){return e.barycenterr.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=Ko(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")&&ns(v,p)}});var d=Xo(f,r);zo(d,u);var h=Jo(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 zo(n,e){c(n,function(r){r.vs=G(r.vs.map(function(t){return e[t]?e[t].vs:t}))})}function ns(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 es(n){var e=Ze(n),r=ye(n,D(1,e+1),"inEdges"),t=ye(n,D(e-1,-1,-1),"outEdges"),i=jo(n);xe(n,i);for(var a=Number.POSITIVE_INFINITY,o,s=0,u=0;u<4;++s,++u){rs(s%2?r:t,s%4>=2),i=pn(n);var f=qo(n,i);fo||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 as(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 os(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=us(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;(_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 us(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 fs(n,e,r){if(e>r){var t=e;e=r,r=t}return b(n[e],r)}function ds(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 许可协议

    进行使用即代表同意此声明:

    尊敬的用户,欢迎您选择由木落等研发的海豹骰点核心(SealDice),在您使用海豹骰点核心前,请务必仔细阅读使用须知,使用即代表您已同意使用须知的内容,使用造成的任何后果与海豹开发组无关。

    您需了解,海豹核心官方版只支持 TRPG 功能,娱乐功能定制化请自便,和海豹无关。

    您清楚并明白您对通过骰子提供的全部内容负责,包括自定义回复、非自带的插件、牌堆。海豹骰不对非自身提供以外的内容合法性负责。您不得在使用海豹骰服务时,导入包括但不限于以下情形的内容:

    (1) 反对中华人民共和国宪法所确定的基本原则的;

    (2) 危害国家安全,泄露国家秘密,颠覆国家政权,破坏国家统一的;

    (3) 损害国家荣誉和利益的;

    (4) 煽动民族仇恨、民族歧视、破坏民族团结的;

    (5) 破坏国家宗教政策,宣扬邪教和封建迷信的;

    (6) 散布谣言,扰乱社会秩序,破坏社会稳定的;

    (7) 散布淫秽、色情、赌博、暴力、凶杀、恐怖或者教唆犯罪的;

    (8) 侮辱或者诽谤他人,侵害他人合法权益的;

    (9) 宣扬、教唆使用外挂、私服、病毒、恶意代码、木马及其相关内容的;

    (10) 侵犯他人知识产权或涉及第三方商业秘密及其他专有权利的;

    (11) 散布任何贬损、诋毁、恶意攻击海豹骰及开发人员、海洋馆工作人员、mod 编写人员、关联合作者的;

    (12) 含有中华人民共和国法律、行政法规、政策、上级主管部门下发通知中所禁止的其他内容的。

    一旦您有以上禁止行为,请立即停用海豹骰。

    ',18),a=[r];function n(s,i){return e(),t("div",null,a)}const l=p(o,[["render",n],["__file","license.html.vue"]]);export{l as default}; diff --git a/assets/line-e21175d5.js b/assets/line-e21175d5.js new file mode 100644 index 000000000..9ed65520d --- /dev/null +++ b/assets/line-e21175d5.js @@ -0,0 +1 @@ +import{a as h}from"./array-9f3ba611.js";import{w as d,c as o}from"./path-53f90ab3.js";import{o as v}from"./mermaid.core-d8bc71ff.js";function w(t){return t[0]}function b(t){return t[1]}function P(t,u){var s=o(!0),i=null,l=v,r=null,m=d(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 f,g=(n=h(n)).length,p,c=!1,a;for(i==null&&(r=l(a=m())),f=0;f<=g;++f)!(ft?1:n>=t?0:NaN}function hn(n,t){return n==null||t==null?NaN:tn?1:t>=n?0:NaN}function _(n){let t,e,r;n.length!==2?(t=$,e=(u,c)=>$(n(u),c),r=(u,c)=>n(u)-c):(t=n===$||n===hn?n:mn,e=n,r=n);function i(u,c,o=0,l=u.length){if(o>>1;e(u[h],c)<0?o=h+1:l=h}while(o>>1;e(u[h],c)<=0?o=h+1:l=h}while(oo&&r(u[h-1],c)>-r(u[h],c)?h-1:h}return{left:i,center:a,right:f}}function mn(){return 0}function sn(n){return n===null?NaN:+n}const ln=_($),dn=ln.right;_(sn).center;const gn=dn,yn=Math.sqrt(50),Mn=Math.sqrt(10),pn=Math.sqrt(2);function R(n,t,e){const r=(t-n)/Math.max(0,e),i=Math.floor(Math.log10(r)),f=r/Math.pow(10,i),a=f>=yn?10:f>=Mn?5:f>=pn?2:1;let u,c,o;return i<0?(o=Math.pow(10,-i)/a,u=Math.round(n*o),c=Math.round(t*o),u/ot&&--c,o=-o):(o=Math.pow(10,i)*a,u=Math.round(n/o),c=Math.round(t/o),u*ot&&--c),c0))return[];if(n===t)return[n];const r=t=i))return[];const u=f-i+1,c=new Array(u);if(r)if(a<0)for(let o=0;o=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function E(n,t){if((e=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var e,r=n.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+n.slice(e+1)]}function v(n){return n=E(Math.abs(n)),n?n[1]:NaN}function Pn(n,t){return function(e,r){for(var i=e.length,f=[],a=0,u=n[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),f.push(e.substring(i-=u,i+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(e){return n[+e]})}}var Fn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function D(n){if(!(t=Fn.exec(n)))throw new Error("invalid format: "+n);var t;return new G({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=G.prototype;function G(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+""}G.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 $n(n){n:for(var t=n.length,e=1,r=-1,i;e0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(i+1):n}var nn;function Rn(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1],f=i-(nn=Math.max(-8,Math.min(8,Math.floor(i/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 U(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const Y={"%":(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)=>U(n*100,t),r:U,s:Rn,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function Z(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?Z:Pn(K.call(n.grouping,Number),n.thousands+""),e=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",i=n.decimal===void 0?".":n.decimal+"",f=n.numerals===void 0?Z: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,k=h.zero,b=h.width,I=h.comma,w=h.precision,B=h.trim,d=h.type;d==="n"?(I=!0,d="g"):Y[d]||(w===void 0&&(w=12),B=!0,d="g"),(k||s==="0"&&p==="=")&&(k=!0,s="0",p="=");var en=S==="$"?e:S==="#"&&/[boxX]/.test(d)?"0"+d.toLowerCase():"",on=S==="$"?r:/[%p]/.test(d)?a:"",O=Y[d],an=/[defgprs%]/.test(d);w=w===void 0?6:/[gprs]/.test(d)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function V(m){var N=en,g=on,x,X,j;if(d==="c")g=O(m)+g,m="";else{m=+m;var P=m<0||1/m<0;if(m=isNaN(m)?c:O(Math.abs(m),w),B&&(m=$n(m)),P&&+m==0&&y!=="+"&&(P=!1),N=(P?y==="("?y:u:y==="-"||y==="("?"":y)+N,g=(d==="s"?Q[8+nn/3]:"")+g+(P&&y==="("?")":""),an){for(x=-1,X=m.length;++xj||j>57){g=(j===46?i+m.slice(x+1):m.slice(x))+g,m=m.slice(0,x);break}}}I&&!k&&(m=t(m,1/0));var z=N.length+m.length+g.length,M=z>1)+N+m+g+M.slice(z);break;default:m=M+N+m+g;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(v(s)/3)))*3,S=Math.pow(10,-y),k=Q[8+y/3];return function(b){return p(S*b)+k}}return{format:o,formatPrefix:l}}var F,tn,rn;Dn({thousands:",",grouping:[3],currency:["$",""]});function Dn(n){return F=En(n),tn=F.format,rn=F.formatPrefix,F}function In(n){return Math.max(0,-v(Math.abs(n)))}function Tn(n,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(v(t)/3)))*3-v(Math.abs(n)))}function Ln(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,v(t)-v(n))+1}function qn(n){return function(){return n}}function Cn(n){return+n}var W=[0,1];function A(n){return n}function q(n,t){return(t-=n=+n)?function(e){return(e-n)/t}:qn(isNaN(t)?NaN:.5)}function Gn(n,t){var e;return n>t&&(e=n,n=t,t=e),function(r){return Math.max(n,Math.min(t,r))}}function Bn(n,t,e){var r=n[0],i=n[1],f=t[0],a=t[1];return i2?On:Bn,c=o=null,h}function h(s){return s==null||isNaN(s=+s)?f:(c||(c=u(n.map(r),t,e)))(r(a(s)))}return h.invert=function(s){return a(i((o||(o=u(t,n.map(r),T)))(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),e=bn,l()},h.clamp=function(s){return arguments.length?(a=s?!0:A,l()):a!==A},h.interpolate=function(s){return arguments.length?(e=s,l()):e},h.unknown=function(s){return arguments.length?(f=s,h):f},function(s,p){return r=s,i=p,l()}}function Hn(){return Xn()(A,A)}function Jn(n,t,e,r){var i=Nn(n,t,e),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=Tn(i,a))&&(r.precision=f),rn(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(f=Ln(i,Math.max(Math.abs(n),Math.abs(t))))&&(r.precision=f-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(f=In(i))&&(r.precision=f-(r.type==="%")*2);break}}return tn(r)}function Un(n){var t=n.domain;return n.ticks=function(e){var r=t();return wn(r[0],r[r.length-1],e??10)},n.tickFormat=function(e,r){var i=t();return Jn(i[0],i[i.length-1],e??10,r)},n.nice=function(e){e==null&&(e=10);var r=t(),i=0,f=r.length-1,a=r[i],u=r[f],c,o,l=10;for(u0;){if(o=L(a,u,e),o===c)return r[i]=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 Yn(){var n=Hn();return n.copy=function(){return Vn(n,Yn())},cn.apply(n,arguments),Un(n)}export{Vn as a,_ as b,Hn as c,Yn as l,Nn as t}; diff --git a/assets/log.html-77098619.js b/assets/log.html-77098619.js new file mode 100644 index 000000000..620f356e6 --- /dev/null +++ b/assets/log.html-77098619.js @@ -0,0 +1 @@ +import{_ as e}from"./plugin-vue_export-helper-c27b6911.js";import{o,c as d,e as a}from"./app-d2f9e1e0.js";const c={},p=a('

    日志

    本节内容

    本节将展示记录跑团日志相关的指令,请善用侧边栏和搜索,按需阅读文档。

    .log 跑团日志

    记录日志

    对于每个群组,有若干个日志记录和一个当前日志。日志记录是本群记录过的所有日志。当前日志指向本群的其中一个日志记录,可以为空,但不会存在多个。

    注意

    海豹核心的日志记录只在骰子启用时进行。

    即,如果你在一个群中通过 .bot off 关闭了骰子,即使有记录中的日志,也会暂停。

    .log new <日志名>

    新建一份日志,并且开始记录。

    如果本群的当前日志不为空,则不能创建。如果创建成功,将本群的当前日志设定成新日志。

    .log on (<日志名>)

    如果不指定日志名,如果当前日志存在,则开始记录本群的当前日志。

    如果指定日志名,则开始记录指定的日志,当前日志设定为指定的日志。

    .log off

    暂停记录当前日志。

    .log halt / .log end

    停止记录当前日志,将本群的当前日志设定为空。

    如果使用的是 .log end,还会向海豹日志染色器上传日志,并返回一个获取链接。

    停止的日志并不会丢失,仍然存在于本群的日志记录中,可以使用 .log on <日志名> 继续记录。

    数据统计

    .log stat (<日志名>) / .stat log (<日志名>)

    统计指定日志中检定的成功失败数量,与角色的属性数值变化。

    如果本群的当前日志不为空,可以省略日志名,统计当前日志。

    管理日志

    .log list

    列出本群的所有日志记录。

    .log get <日志名>

    重新获取指定日志的染色器链接。

    .log del <日志名>

    删除指定日志。

    注意

    删除的日志在海豹核心中永远失去,无法再继续记录。

    如果已经上传到染色器,该链接仍然可以使用。你也可以在海豹核心中的 data/default/log-exports/ 目录寻找日志的文件快照。

    骰主代取 Log

    对于已经解散/退出的群聊,如果还想要取出其中的日志,需要知道对应的群号。

    你可在任意有 Master 权限的交互平台做以下操作:

    首先使用 .log list <群号> 列出该群的所有日志记录。

    然后,使用 .log masterget <群号> <日志名> 获取指定日志记录的染色器链接。

    UI 中管理跑团 Log

    作为骰主,你也可以在管理后台的 扩展功能 - 跑团日志 界面,管理所有群的所有日志。

    .ob 旁观

    .ob

    让使用者成为观众。

    这个指令的作用实际是给使用者的名字上前缀 ob。不会造成其他的效果。

    对于海豹日志染色器,名字前缀有 ob 的用户发言可以被一键去除。

    .ob exit

    如果使用者的名字有ob前缀,这个指令将其去除。

    .sn 自动群名片

    开启后,当用户角色卡的数值变化时,自动更新用户的群名片。

    更改其他玩家的名片,需要骰子账号有适当的权限。

    对于 QQ,这个权限是群主或群管理员。

    预设模板

    .sn coc / .sn cocL角色名 SAN70 HP14/14 DEX60

    克苏鲁的呼唤常用格式,使用 cocL 以在名片中使用小写字母。

    .sn dnd角色名 HP10/10 AC8 DC6 PW8

    龙与地下城常用格式。

    .sn none角色名

    空白名片,当角色名变化时也会自动更新。

    扩展规则

    有些插件提供的扩展规则也定义了名片模板。对于这样的扩展规则,可以使用 .sn <规则名> 使用其模板。

    自定义模板

    .sn expr <模板>

    在模板中使用变量以自动更新。

    例如,CoC 模板的等价写法是 .sn expr {$t玩家_RAW} SAN{san} HP{hp}/{hpmax} DEX{dex}

    关闭自动修改

    .sn off

    .hiy 数据统计

    海豹核心不提供统计整体成功率的功能。

    ',63),t=[p];function n(i,h){return o(),d("div",null,t)}const l=e(c,[["render",n],["__file","log.html.vue"]]);export{l as default}; diff --git a/assets/log.html-f38c029e.js b/assets/log.html-f38c029e.js new file mode 100644 index 000000000..481167b67 --- /dev/null +++ b/assets/log.html-f38c029e.js @@ -0,0 +1 @@ +const e=JSON.parse('{"key":"v-ccf19dd4","path":"/use/log.html","title":"日志","lang":"zh-cn","frontmatter":{"lang":"zh-cn","title":"日志","description":"本节内容 本节将展示记录跑团日志相关的指令,请善用侧边栏和搜索,按需阅读文档。 .log 跑团日志 记录日志 对于每个群组,有若干个日志记录和一个当前日志。日志记录是本群记录过的所有日志。当前日志指向本群的其中一个日志记录,可以为空,但不会存在多个。 注意 海豹核心的日志记录只在骰子启用时进行。 即,如果你在一个群中通过 .bot off 关闭了骰子,...","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/use/log.html"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"日志"}],["meta",{"property":"og:description","content":"本节内容 本节将展示记录跑团日志相关的指令,请善用侧边栏和搜索,按需阅读文档。 .log 跑团日志 记录日志 对于每个群组,有若干个日志记录和一个当前日志。日志记录是本群记录过的所有日志。当前日志指向本群的其中一个日志记录,可以为空,但不会存在多个。 注意 海豹核心的日志记录只在骰子启用时进行。 即,如果你在一个群中通过 .bot off 关闭了骰子,..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-cn"}],["meta",{"property":"og:updated_time","content":"2023-11-01T05:34:52.000Z"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-11-01T05:34:52.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"日志\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2023-11-01T05:34:52.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[{"level":2,"title":".log 跑团日志","slug":"log-跑团日志","link":"#log-跑团日志","children":[{"level":3,"title":"记录日志","slug":"记录日志","link":"#记录日志","children":[]},{"level":3,"title":"数据统计","slug":"数据统计","link":"#数据统计","children":[]},{"level":3,"title":"管理日志","slug":"管理日志","link":"#管理日志","children":[]},{"level":3,"title":"骰主代取 Log","slug":"骰主代取-log","link":"#骰主代取-log","children":[]}]},{"level":2,"title":".ob 旁观","slug":"ob-旁观","link":"#ob-旁观","children":[]},{"level":2,"title":".sn 自动群名片","slug":"sn-自动群名片","link":"#sn-自动群名片","children":[{"level":3,"title":"预设模板","slug":"预设模板","link":"#预设模板","children":[]},{"level":3,"title":"扩展规则","slug":"扩展规则","link":"#扩展规则","children":[]},{"level":3,"title":"自定义模板","slug":"自定义模板","link":"#自定义模板","children":[]},{"level":3,"title":"关闭自动修改","slug":"关闭自动修改","link":"#关闭自动修改","children":[]}]},{"level":2,"title":".hiy 数据统计","slug":"hiy-数据统计","link":"#hiy-数据统计","children":[]}],"git":{"createdTime":1698072668000,"updatedTime":1698816892000,"contributors":[{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":2},{"name":"Xiangze Li","email":"lee_johnson@qq.com","commits":2}]},"readingTime":{"minutes":3.57,"words":1071},"filePathRelative":"use/log.md","localizedDate":"2023年10月23日","autoDesc":true,"excerpt":""}');export{e as data}; diff --git a/assets/mermaid.core-d8bc71ff.js b/assets/mermaid.core-d8bc71ff.js new file mode 100644 index 000000000..809a39512 --- /dev/null +++ b/assets/mermaid.core-d8bc71ff.js @@ -0,0 +1,86 @@ +import{_ as tt}from"./app-d2f9e1e0.js";function cc(t){for(var e=[],i=1;i=v?M:""+Array(v+1-B.length).join(y)+M},H={s:q,z:function(M){var v=-M.utcOffset(),y=Math.abs(v),B=Math.floor(y/60),b=y%60;return(v<=0?"+":"-")+q(B,2,"0")+":"+q(b,2,"0")},m:function M(v,y){if(v.date()1)return M(D[0])}else{var $=v.name;X[$]=v,b=$}return!B&&b&&(Y=b),b||!B&&Y},j=function(M,v){if(Gt(M))return M.clone();var y=typeof v=="object"?v:{};return y.date=M,y.args=arguments,new vt(y)},z=H;z.l=Xt,z.i=Gt,z.w=function(M,v){return j(M,{locale:v.$L,utc:v.$u,x:v.$x,$offset:v.$offset})};var vt=function(){function M(y){this.$L=Xt(y.locale,null,!0),this.parse(y),this.$x=this.$x||y.x||{},this[W]=!0}var v=M.prototype;return v.parse=function(y){this.$d=function(B){var b=B.date,x=B.utc;if(b===null)return new Date(NaN);if(z.u(b))return new Date;if(b instanceof Date)return new Date(b);if(typeof b=="string"&&!/Z$/i.test(b)){var D=b.match(k);if(D){var $=D[2]-1||0,G=(D[7]||"0").substring(0,3);return x?new Date(Date.UTC(D[1],$,D[3]||1,D[4]||0,D[5]||0,D[6]||0,G)):new Date(D[1],$,D[3]||1,D[4]||0,D[5]||0,D[6]||0,G)}}return new Date(b)}(y),this.init()},v.init=function(){var y=this.$d;this.$y=y.getFullYear(),this.$M=y.getMonth(),this.$D=y.getDate(),this.$W=y.getDay(),this.$H=y.getHours(),this.$m=y.getMinutes(),this.$s=y.getSeconds(),this.$ms=y.getMilliseconds()},v.$utils=function(){return z},v.isValid=function(){return this.$d.toString()!==S},v.isSame=function(y,B){var b=j(y);return this.startOf(B)<=b&&b<=this.endOf(B)},v.isAfter=function(y,B){return j(y)-1}function l(h){var u=h.replace(n,"");return u.replace(i,function(g,p){return String.fromCharCode(p)})}function c(h){if(!h)return t.BLANK_URL;var u=l(h).replace(r,"").replace(n,"").trim();if(!u)return t.BLANK_URL;if(a(u))return u;var g=u.match(o);if(!g)return u;var p=g[0];return e.test(p)?t.BLANK_URL:u}t.sanitizeUrl=c})(Is);var pc={value:()=>{}};function $s(){for(var t=0,e=arguments.length,i={},r;t=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}})}Oi.prototype=$s.prototype={constructor:Oi,on:function(t,e){var i=this._,r=gc(t+"",i),n,o=-1,s=r.length;if(arguments.length<2){for(;++o0)for(var i=new Array(n),r=0,n,o;r=0&&(e=t.slice(0,i))!=="xmlns"&&(t=t.slice(i+1)),To.hasOwnProperty(e)?{space:To[e],local:t}:t}function _c(t){return function(){var e=this.ownerDocument,i=this.namespaceURI;return i===tn&&e.documentElement.namespaceURI===tn?e.createElement(t):e.createElementNS(i,t)}}function yc(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ds(t){var e=fr(t);return(e.local?yc:_c)(e)}function Cc(){}function vn(t){return t==null?Cc:function(){return this.querySelector(t)}}function bc(t){typeof t!="function"&&(t=vn(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n=q&&(q=T+1);!(Y=k[q])&&++q<_;);H._next=Y||null}}return s=new yt(s,r),s._enter=a,s._exit=l,s}function qc(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function zc(){return new yt(this._exit||this._groups.map(qs),this._parents)}function Wc(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 Hc(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=0;)(s=r[n])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function Uc(t){t||(t=Yc);function e(u,g){return u&&g?t(u.__data__,g.__data__):!u-!g}for(var i=this._groups,r=i.length,n=new Array(r),o=0;oe?1:t>=e?0:NaN}function Vc(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Gc(){return Array.from(this)}function Xc(){for(var t=this._groups,e=0,i=t.length;e1?this.each((e==null?sh:typeof e=="function"?lh:ah)(t,e,i??"")):Ae(this.node(),t)}function Ae(t,e){return t.style.getPropertyValue(e)||zs(t).getComputedStyle(t,null).getPropertyValue(e)}function hh(t){return function(){delete this[t]}}function uh(t,e){return function(){this[t]=e}}function fh(t,e){return function(){var i=e.apply(this,arguments);i==null?delete this[t]:this[t]=i}}function dh(t,e){return arguments.length>1?this.each((e==null?hh:typeof e=="function"?fh:uh)(t,e)):this.node()[t]}function Ws(t){return t.trim().split(/^|\s+/)}function Sn(t){return t.classList||new Hs(t)}function Hs(t){this._node=t,this._names=Ws(t.getAttribute("class")||"")}Hs.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 js(t,e){for(var i=Sn(t),r=-1,n=e.length;++r=0&&(i=e.slice(r+1),e=e.slice(0,r)),{type:e,name:i}})}function zh(t){return function(){var e=this.__on;if(e){for(var i=0,r=-1,n=e.length,o;i>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):i===8?Ti(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):i===4?Ti(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=Kh.exec(t))?new gt(e[1],e[2],e[3],1):(e=Zh.exec(t))?new gt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Jh.exec(t))?Ti(e[1],e[2],e[3],e[4]):(e=Qh.exec(t))?Ti(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=tu.exec(t))?Fo(e[1],e[2]/100,e[3]/100,1):(e=eu.exec(t))?Fo(e[1],e[2]/100,e[3]/100,e[4]):vo.hasOwnProperty(t)?wo(vo[t]):t==="transparent"?new gt(NaN,NaN,NaN,0):null}function wo(t){return new gt(t>>16&255,t>>8&255,t&255,1)}function Ti(t,e,i,r){return r<=0&&(t=e=i=NaN),new gt(t,e,i,r)}function nu(t){return t instanceof di||(t=ri(t)),t?(t=t.rgb(),new gt(t.r,t.g,t.b,t.opacity)):new gt}function en(t,e,i,r){return arguments.length===1?nu(t):new gt(t,e,i,r??1)}function gt(t,e,i,r){this.r=+t,this.g=+e,this.b=+i,this.opacity=+r}kn(gt,en,Gs(di,{brighter(t){return t=t==null?ji:Math.pow(ji,t),new gt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?ei:Math.pow(ei,t),new gt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new gt(ue(this.r),ue(this.g),ue(this.b),Ui(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:Bo,formatHex:Bo,formatHex8:ou,formatRgb:Lo,toString:Lo}));function Bo(){return`#${he(this.r)}${he(this.g)}${he(this.b)}`}function ou(){return`#${he(this.r)}${he(this.g)}${he(this.b)}${he((isNaN(this.opacity)?1:this.opacity)*255)}`}function Lo(){const t=Ui(this.opacity);return`${t===1?"rgb(":"rgba("}${ue(this.r)}, ${ue(this.g)}, ${ue(this.b)}${t===1?")":`, ${t})`}`}function Ui(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function ue(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function he(t){return t=ue(t),(t<16?"0":"")+t.toString(16)}function Fo(t,e,i,r){return r<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new kt(t,e,i,r)}function Xs(t){if(t instanceof kt)return new kt(t.h,t.s,t.l,t.opacity);if(t instanceof di||(t=ri(t)),!t)return new kt;if(t instanceof kt)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+(i0&&l<1?0:s,new kt(s,a,l,t.opacity)}function su(t,e,i,r){return arguments.length===1?Xs(t):new kt(t,e,i,r??1)}function kt(t,e,i,r){this.h=+t,this.s=+e,this.l=+i,this.opacity=+r}kn(kt,su,Gs(di,{brighter(t){return t=t==null?ji:Math.pow(ji,t),new kt(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?ei:Math.pow(ei,t),new kt(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 gt(Rr(t>=240?t-240:t+120,n,r),Rr(t,n,r),Rr(t<120?t+240:t-120,n,r),this.opacity)},clamp(){return new kt(Ao(this.h),vi(this.s),vi(this.l),Ui(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=Ui(this.opacity);return`${t===1?"hsl(":"hsla("}${Ao(this.h)}, ${vi(this.s)*100}%, ${vi(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Ao(t){return t=(t||0)%360,t<0?t+360:t}function vi(t){return Math.max(0,Math.min(1,t||0))}function Rr(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 wn=t=>()=>t;function Ks(t,e){return function(i){return t+i*e}}function au(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 Ub(t,e){var i=e-t;return i?Ks(t,i>180||i<-180?i-360*Math.round(i/360):i):wn(isNaN(t)?e:t)}function lu(t){return(t=+t)==1?Zs:function(e,i){return i-e?au(e,i,t):wn(isNaN(e)?i:e)}}function Zs(t,e){var i=e-t;return i?Ks(t,i):wn(isNaN(t)?e:t)}const Eo=function t(e){var i=lu(e);function r(n,o){var s=i((n=en(n)).r,(o=en(o)).r),a=i(n.g,o.g),l=i(n.b,o.b),c=Zs(n.opacity,o.opacity);return function(h){return n.r=s(h),n.g=a(h),n.b=l(h),n.opacity=c(h),n+""}}return r.gamma=t,r}(1);function ee(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var rn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Pr=new RegExp(rn.source,"g");function cu(t){return function(){return t}}function hu(t){return function(e){return t(e)+""}}function uu(t,e){var i=rn.lastIndex=Pr.lastIndex=0,r,n,o,s=-1,a=[],l=[];for(t=t+"",e=e+"";(r=rn.exec(t))&&(n=Pr.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:ee(r,n)})),i=Pr.lastIndex;return i180?h+=360:h-c>180&&(c+=360),g.push({i:u.push(n(u)+"rotate(",null,r)-2,x:ee(c,h)})):h&&u.push(n(u)+"rotate("+h+r)}function a(c,h,u,g){c!==h?g.push({i:u.push(n(u)+"skewX(",null,r)-2,x:ee(c,h)}):h&&u.push(n(u)+"skewX("+h+r)}function l(c,h,u,g,p,_){if(c!==u||h!==g){var S=p.push(n(p)+"scale(",null,",",null,")");_.push({i:S-4,x:ee(c,u)},{i:S-2,x:ee(h,g)})}else(u!==1||g!==1)&&p.push(n(p)+"scale("+u+","+g+")")}return function(c,h){var u=[],g=[];return c=t(c),h=t(h),o(c.translateX,c.translateY,h.translateX,h.translateY,u,g),s(c.rotate,h.rotate,u,g),a(c.skewX,h.skewX,u,g),l(c.scaleX,c.scaleY,h.scaleX,h.scaleY,u,g),c=h=null,function(p){for(var _=-1,S=g.length,k;++_=0&&t._call.call(void 0,e),t=t._next;--Ee}function Mo(){pe=(Vi=ni.now())+dr,Ee=Ye=0;try{_u()}finally{Ee=0,Cu(),pe=0}}function yu(){var t=ni.now(),e=t-Vi;e>ta&&(dr-=e,Vi=t)}function Cu(){for(var t,e=Yi,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:Yi=i);Ve=t,on(r)}function on(t){if(!Ee){Ye&&(Ye=clearTimeout(Ye));var e=t-pe;e>24?(t<1/0&&(Ye=setTimeout(Mo,t-ni.now()-dr)),ze&&(ze=clearInterval(ze))):(ze||(Vi=ni.now(),ze=setInterval(yu,ta)),Ee=1,ea(Mo))}}function Io(t,e,i){var r=new Gi;return e=e==null?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,i),r}var bu=$s("start","end","cancel","interrupt"),xu=[],ra=0,$o=1,sn=2,Mi=3,Do=4,an=5,Ii=6;function pr(t,e,i,r,n,o){var s=t.__transition;if(!s)t.__transition={};else if(i in s)return;Tu(t,i,{name:e,index:r,group:n,on:bu,tween:xu,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:ra})}function Ln(t,e){var i=At(t,e);if(i.state>ra)throw new Error("too late; already scheduled");return i}function $t(t,e){var i=At(t,e);if(i.state>Mi)throw new Error("too late; already running");return i}function At(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function Tu(t,e,i){var r=t.__transition,n;r[e]=i,i.timer=ia(o,0,i.time);function o(c){i.state=$o,i.timer.restart(s,i.delay,i.time),i.delay<=c&&s(c-i.delay)}function s(c){var h,u,g,p;if(i.state!==$o)return l();for(h in r)if(p=r[h],p.name===i.name){if(p.state===Mi)return Io(s);p.state===Do?(p.state=Ii,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete r[h]):+hsn&&r.state=0&&(e=e.slice(0,i)),!e||e==="start"})}function Qu(t,e,i){var r,n,o=Ju(e)?Ln:$t;return function(){var s=o(this,t),a=s.on;a!==r&&(n=(r=a).copy()).on(e,i),s.on=n}}function tf(t,e){var i=this._id;return arguments.length<2?At(this.node(),i).on.on(t):this.each(Qu(i,t,e))}function ef(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}function rf(){return this.on("end.remove",ef(this._id))}function nf(t){var e=this._name,i=this._id;typeof t!="function"&&(t=vn(t));for(var r=this._groups,n=r.length,o=new Array(n),s=0;s1?0:t<-1?An:Math.acos(t)}function ex(t){return t>=1?Ro:t<=-1?-Ro:Math.asin(t)}function aa(t){this._context=t}aa.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 Ff(t){return new aa(t)}class la{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 Af(t){return new la(t,!0)}function Ef(t){return new la(t,!1)}function re(){}function Xi(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 gr(t){this._context=t}gr.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:Xi(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:Xi(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Of(t){return new gr(t)}function ca(t){this._context=t}ca.prototype={areaStart:re,areaEnd:re,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:Xi(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Mf(t){return new ca(t)}function ha(t){this._context=t}ha.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:Xi(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function If(t){return new ha(t)}function ua(t,e){this._basis=new gr(t),this._beta=e}ua.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 $f=function t(e){function i(r){return e===1?new gr(r):new ua(r,e)}return i.beta=function(r){return t(+r)},i}(.85);function Ki(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 En(t,e){this._context=t,this._k=(1-e)/6}En.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:Ki(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:Ki(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 Df=function t(e){function i(r){return new En(r,e)}return i.tension=function(r){return t(+r)},i}(0);function On(t,e){this._context=t,this._k=(1-e)/6}On.prototype={areaStart:re,areaEnd:re,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:Ki(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 Nf=function t(e){function i(r){return new On(r,e)}return i.tension=function(r){return t(+r)},i}(0);function Mn(t,e){this._context=t,this._k=(1-e)/6}Mn.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:Ki(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 Rf=function t(e){function i(r){return new Mn(r,e)}return i.tension=function(r){return t(+r)},i}(0);function In(t,e,i){var r=t._x1,n=t._y1,o=t._x2,s=t._y2;if(t._l01_a>No){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>No){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,h=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-e*t._l12_2a)/h,s=(s*c+t._y1*t._l23_2a-i*t._l12_2a)/h}t._context.bezierCurveTo(r,n,o,s,t._x2,t._y2)}function fa(t,e){this._context=t,this._alpha=e}fa.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:In(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 Pf=function t(e){function i(r){return e?new fa(r,e):new En(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function da(t,e){this._context=t,this._alpha=e}da.prototype={areaStart:re,areaEnd:re,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:In(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 qf=function t(e){function i(r){return e?new da(r,e):new On(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function pa(t,e){this._context=t,this._alpha=e}pa.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:In(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 zf=function t(e){function i(r){return e?new pa(r,e):new Mn(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function ga(t){this._context=t}ga.prototype={areaStart:re,areaEnd:re,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 Wf(t){return new ga(t)}function Po(t){return t<0?-1:1}function qo(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(Po(o)+Po(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function zo(t,e){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function qr(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 Zi(t){this._context=t}Zi.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:qr(this,this._t0,zo(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,qr(this,zo(this,i=qo(this,t,e)),i);break;default:qr(this,this._t0,i=qo(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}};function ma(t){this._context=new _a(t)}(ma.prototype=Object.create(Zi.prototype)).point=function(t,e){Zi.prototype.point.call(this,e,t)};function _a(t){this._context=t}_a.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 Hf(t){return new Zi(t)}function jf(t){return new ma(t)}function ya(t){this._context=t}ya.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=Wo(t),n=Wo(e),o=0,s=1;s=0;--e)n[e]=(s[e]-n[e+1])/o[e];for(o[i-1]=(t[i]+n[i-1])/2,e=0;e=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 Yf(t){return new mr(t,.5)}function Vf(t){return new mr(t,0)}function Gf(t){return new mr(t,1)}function Ge(t,e,i){this.k=t,this.x=e,this.y=i}Ge.prototype={constructor:Ge,scale:function(t){return t===1?this:new Ge(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Ge(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+")"}};Ge.prototype;/*! @license DOMPurify 3.0.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.6/LICENSE */const{entries:Ca,setPrototypeOf:Ho,isFrozen:Xf,getPrototypeOf:Kf,getOwnPropertyDescriptor:ba}=Object;let{freeze:ut,seal:Bt,create:xa}=Object,{apply:ln,construct:cn}=typeof Reflect<"u"&&Reflect;ut||(ut=function(e){return e});Bt||(Bt=function(e){return e});ln||(ln=function(e,i,r){return e.apply(i,r)});cn||(cn=function(e,i){return new e(...i)});const ki=xt(Array.prototype.forEach),jo=xt(Array.prototype.pop),We=xt(Array.prototype.push),$i=xt(String.prototype.toLowerCase),zr=xt(String.prototype.toString),Zf=xt(String.prototype.match),He=xt(String.prototype.replace),Jf=xt(String.prototype.indexOf),Qf=xt(String.prototype.trim),_t=xt(RegExp.prototype.test),je=td(TypeError);function xt(t){return function(e){for(var i=arguments.length,r=new Array(i>1?i-1:0),n=1;n2&&arguments[2]!==void 0?arguments[2]:$i;Ho&&Ho(t,null);let r=e.length;for(;r--;){let n=e[r];if(typeof n=="string"){const o=i(n);o!==n&&(Xf(e)||(e[r]=o),n=o)}t[n]=!0}return t}function ke(t){const e=xa(null);for(const[i,r]of Ca(t))ba(t,i)!==void 0&&(e[i]=r);return e}function wi(t,e){for(;t!==null;){const r=ba(t,e);if(r){if(r.get)return xt(r.get);if(typeof r.value=="function")return xt(r.value)}t=Kf(t)}function i(r){return console.warn("fallback value for",r),null}return i}const Uo=ut(["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"]),Wr=ut(["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"]),Hr=ut(["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"]),ed=ut(["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"]),jr=ut(["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"]),id=ut(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Yo=ut(["#text"]),Vo=ut(["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"]),Ur=ut(["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"]),Go=ut(["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"]),Bi=ut(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),rd=Bt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),nd=Bt(/<%[\w\W]*|[\w\W]*%>/gm),od=Bt(/\${[\w\W]*}/gm),sd=Bt(/^data-[\-\w.\u00B7-\uFFFF]/),ad=Bt(/^aria-[\-\w]+$/),Ta=Bt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ld=Bt(/^(?:\w+script|data):/i),cd=Bt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),va=Bt(/^html$/i);var Xo=Object.freeze({__proto__:null,MUSTACHE_EXPR:rd,ERB_EXPR:nd,TMPLIT_EXPR:od,DATA_ATTR:sd,ARIA_ATTR:ad,IS_ALLOWED_URI:Ta,IS_SCRIPT_OR_DATA:ld,ATTR_WHITESPACE:cd,DOCTYPE_NAME:va});const hd=function(){return typeof window>"u"?null:window},ud=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 Sa(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:hd();const e=L=>Sa(L);if(e.version="3.0.6",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:h=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:u,DOMParser:g,trustedTypes:p}=t,_=l.prototype,S=wi(_,"cloneNode"),k=wi(_,"nextSibling"),P=wi(_,"childNodes"),T=wi(_,"parentNode");if(typeof s=="function"){const L=i.createElement("template");L.content&&L.content.ownerDocument&&(i=L.content.ownerDocument)}let q,H="";const{implementation:Y,createNodeIterator:X,createDocumentFragment:W,getElementsByTagName:Gt}=i,{importNode:Xt}=r;let j={};e.isSupported=typeof Ca=="function"&&typeof T=="function"&&Y&&Y.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:z,ERB_EXPR:vt,TMPLIT_EXPR:Kt,DATA_ATTR:M,ARIA_ATTR:v,IS_SCRIPT_OR_DATA:y,ATTR_WHITESPACE:B}=Xo;let{IS_ALLOWED_URI:b}=Xo,x=null;const D=R({},[...Uo,...Wr,...Hr,...jr,...Yo]);let $=null;const G=R({},[...Vo,...Ur,...Go,...Bi]);let N=Object.seal(xa(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}})),K=null,it=null,Nt=!0,St=!0,Zt=!1,Et=!0,Z=!1,rt=!1,Rt=!1,Jt=!1,be=!1,_i=!1,yi=!1,io=!0,ro=!1;const tc="user-content-";let Er=!0,Pe=!1,xe={},Te=null;const no=R({},["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 oo=null;const so=R({},["audio","video","img","source","image","track"]);let Or=null;const ao=R({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ci="http://www.w3.org/1998/Math/MathML",bi="http://www.w3.org/2000/svg",Pt="http://www.w3.org/1999/xhtml";let ve=Pt,Mr=!1,Ir=null;const ec=R({},[Ci,bi,Pt],zr);let se=null;const ic=["application/xhtml+xml","text/html"],rc="text/html";let et=null,Se=null;const nc=i.createElement("form"),lo=function(f){return f instanceof RegExp||f instanceof Function},$r=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Se&&Se===f)){if((!f||typeof f!="object")&&(f={}),f=ke(f),se=ic.indexOf(f.PARSER_MEDIA_TYPE)===-1?se=rc:se=f.PARSER_MEDIA_TYPE,et=se==="application/xhtml+xml"?zr:$i,x="ALLOWED_TAGS"in f?R({},f.ALLOWED_TAGS,et):D,$="ALLOWED_ATTR"in f?R({},f.ALLOWED_ATTR,et):G,Ir="ALLOWED_NAMESPACES"in f?R({},f.ALLOWED_NAMESPACES,zr):ec,Or="ADD_URI_SAFE_ATTR"in f?R(ke(ao),f.ADD_URI_SAFE_ATTR,et):ao,oo="ADD_DATA_URI_TAGS"in f?R(ke(so),f.ADD_DATA_URI_TAGS,et):so,Te="FORBID_CONTENTS"in f?R({},f.FORBID_CONTENTS,et):no,K="FORBID_TAGS"in f?R({},f.FORBID_TAGS,et):{},it="FORBID_ATTR"in f?R({},f.FORBID_ATTR,et):{},xe="USE_PROFILES"in f?f.USE_PROFILES:!1,Nt=f.ALLOW_ARIA_ATTR!==!1,St=f.ALLOW_DATA_ATTR!==!1,Zt=f.ALLOW_UNKNOWN_PROTOCOLS||!1,Et=f.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Z=f.SAFE_FOR_TEMPLATES||!1,rt=f.WHOLE_DOCUMENT||!1,be=f.RETURN_DOM||!1,_i=f.RETURN_DOM_FRAGMENT||!1,yi=f.RETURN_TRUSTED_TYPE||!1,Jt=f.FORCE_BODY||!1,io=f.SANITIZE_DOM!==!1,ro=f.SANITIZE_NAMED_PROPS||!1,Er=f.KEEP_CONTENT!==!1,Pe=f.IN_PLACE||!1,b=f.ALLOWED_URI_REGEXP||Ta,ve=f.NAMESPACE||Pt,N=f.CUSTOM_ELEMENT_HANDLING||{},f.CUSTOM_ELEMENT_HANDLING&&lo(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(N.tagNameCheck=f.CUSTOM_ELEMENT_HANDLING.tagNameCheck),f.CUSTOM_ELEMENT_HANDLING&&lo(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(N.attributeNameCheck=f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),f.CUSTOM_ELEMENT_HANDLING&&typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(N.allowCustomizedBuiltInElements=f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Z&&(St=!1),_i&&(be=!0),xe&&(x=R({},[...Yo]),$=[],xe.html===!0&&(R(x,Uo),R($,Vo)),xe.svg===!0&&(R(x,Wr),R($,Ur),R($,Bi)),xe.svgFilters===!0&&(R(x,Hr),R($,Ur),R($,Bi)),xe.mathMl===!0&&(R(x,jr),R($,Go),R($,Bi))),f.ADD_TAGS&&(x===D&&(x=ke(x)),R(x,f.ADD_TAGS,et)),f.ADD_ATTR&&($===G&&($=ke($)),R($,f.ADD_ATTR,et)),f.ADD_URI_SAFE_ATTR&&R(Or,f.ADD_URI_SAFE_ATTR,et),f.FORBID_CONTENTS&&(Te===no&&(Te=ke(Te)),R(Te,f.FORBID_CONTENTS,et)),Er&&(x["#text"]=!0),rt&&R(x,["html","head","body"]),x.table&&(R(x,["tbody"]),delete K.tbody),f.TRUSTED_TYPES_POLICY){if(typeof f.TRUSTED_TYPES_POLICY.createHTML!="function")throw je('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof f.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw je('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');q=f.TRUSTED_TYPES_POLICY,H=q.createHTML("")}else q===void 0&&(q=ud(p,n)),q!==null&&typeof H=="string"&&(H=q.createHTML(""));ut&&ut(f),Se=f}},co=R({},["mi","mo","mn","ms","mtext"]),ho=R({},["foreignobject","desc","title","annotation-xml"]),oc=R({},["title","style","font","a","script"]),xi=R({},Wr);R(xi,Hr),R(xi,ed);const Dr=R({},jr);R(Dr,id);const sc=function(f){let m=T(f);(!m||!m.tagName)&&(m={namespaceURI:ve,tagName:"template"});const w=$i(f.tagName),U=$i(m.tagName);return Ir[f.namespaceURI]?f.namespaceURI===bi?m.namespaceURI===Pt?w==="svg":m.namespaceURI===Ci?w==="svg"&&(U==="annotation-xml"||co[U]):!!xi[w]:f.namespaceURI===Ci?m.namespaceURI===Pt?w==="math":m.namespaceURI===bi?w==="math"&&ho[U]:!!Dr[w]:f.namespaceURI===Pt?m.namespaceURI===bi&&!ho[U]||m.namespaceURI===Ci&&!co[U]?!1:!Dr[w]&&(oc[w]||!xi[w]):!!(se==="application/xhtml+xml"&&Ir[f.namespaceURI]):!1},ae=function(f){We(e.removed,{element:f});try{f.parentNode.removeChild(f)}catch{f.remove()}},Nr=function(f,m){try{We(e.removed,{attribute:m.getAttributeNode(f),from:m})}catch{We(e.removed,{attribute:null,from:m})}if(m.removeAttribute(f),f==="is"&&!$[f])if(be||_i)try{ae(m)}catch{}else try{m.setAttribute(f,"")}catch{}},uo=function(f){let m=null,w=null;if(Jt)f=""+f;else{const ot=Zf(f,/^[\r\n\t ]+/);w=ot&&ot[0]}se==="application/xhtml+xml"&&ve===Pt&&(f=''+f+"");const U=q?q.createHTML(f):f;if(ve===Pt)try{m=new g().parseFromString(U,se)}catch{}if(!m||!m.documentElement){m=Y.createDocument(ve,"template",null);try{m.documentElement.innerHTML=Mr?H:U}catch{}}const nt=m.body||m.documentElement;return f&&w&&nt.insertBefore(i.createTextNode(w),nt.childNodes[0]||null),ve===Pt?Gt.call(m,rt?"html":"body")[0]:rt?m.documentElement:nt},fo=function(f){return X.call(f.ownerDocument||f,f,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null)},ac=function(f){return f instanceof u&&(typeof f.nodeName!="string"||typeof f.textContent!="string"||typeof f.removeChild!="function"||!(f.attributes instanceof h)||typeof f.removeAttribute!="function"||typeof f.setAttribute!="function"||typeof f.namespaceURI!="string"||typeof f.insertBefore!="function"||typeof f.hasChildNodes!="function")},po=function(f){return typeof a=="function"&&f instanceof a},qt=function(f,m,w){j[f]&&ki(j[f],U=>{U.call(e,m,w,Se)})},go=function(f){let m=null;if(qt("beforeSanitizeElements",f,null),ac(f))return ae(f),!0;const w=et(f.nodeName);if(qt("uponSanitizeElement",f,{tagName:w,allowedTags:x}),f.hasChildNodes()&&!po(f.firstElementChild)&&_t(/<[/\w]/g,f.innerHTML)&&_t(/<[/\w]/g,f.textContent))return ae(f),!0;if(!x[w]||K[w]){if(!K[w]&&_o(w)&&(N.tagNameCheck instanceof RegExp&&_t(N.tagNameCheck,w)||N.tagNameCheck instanceof Function&&N.tagNameCheck(w)))return!1;if(Er&&!Te[w]){const U=T(f)||f.parentNode,nt=P(f)||f.childNodes;if(nt&&U){const ot=nt.length;for(let ft=ot-1;ft>=0;--ft)U.insertBefore(S(nt[ft],!0),k(f))}}return ae(f),!0}return f instanceof l&&!sc(f)||(w==="noscript"||w==="noembed"||w==="noframes")&&_t(/<\/no(script|embed|frames)/i,f.innerHTML)?(ae(f),!0):(Z&&f.nodeType===3&&(m=f.textContent,ki([z,vt,Kt],U=>{m=He(m,U," ")}),f.textContent!==m&&(We(e.removed,{element:f.cloneNode()}),f.textContent=m)),qt("afterSanitizeElements",f,null),!1)},mo=function(f,m,w){if(io&&(m==="id"||m==="name")&&(w in i||w in nc))return!1;if(!(St&&!it[m]&&_t(M,m))){if(!(Nt&&_t(v,m))){if(!$[m]||it[m]){if(!(_o(f)&&(N.tagNameCheck instanceof RegExp&&_t(N.tagNameCheck,f)||N.tagNameCheck instanceof Function&&N.tagNameCheck(f))&&(N.attributeNameCheck instanceof RegExp&&_t(N.attributeNameCheck,m)||N.attributeNameCheck instanceof Function&&N.attributeNameCheck(m))||m==="is"&&N.allowCustomizedBuiltInElements&&(N.tagNameCheck instanceof RegExp&&_t(N.tagNameCheck,w)||N.tagNameCheck instanceof Function&&N.tagNameCheck(w))))return!1}else if(!Or[m]){if(!_t(b,He(w,B,""))){if(!((m==="src"||m==="xlink:href"||m==="href")&&f!=="script"&&Jf(w,"data:")===0&&oo[f])){if(!(Zt&&!_t(y,He(w,B,"")))){if(w)return!1}}}}}}return!0},_o=function(f){return f.indexOf("-")>0},yo=function(f){qt("beforeSanitizeAttributes",f,null);const{attributes:m}=f;if(!m)return;const w={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:$};let U=m.length;for(;U--;){const nt=m[U],{name:ot,namespaceURI:ft,value:le}=nt,qe=et(ot);let dt=ot==="value"?le:Qf(le);if(w.attrName=qe,w.attrValue=dt,w.keepAttr=!0,w.forceKeepAttr=void 0,qt("uponSanitizeAttribute",f,w),dt=w.attrValue,w.forceKeepAttr||(Nr(ot,f),!w.keepAttr))continue;if(!Et&&_t(/\/>/i,dt)){Nr(ot,f);continue}Z&&ki([z,vt,Kt],bo=>{dt=He(dt,bo," ")});const Co=et(f.nodeName);if(mo(Co,qe,dt)){if(ro&&(qe==="id"||qe==="name")&&(Nr(ot,f),dt=tc+dt),q&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!ft)switch(p.getAttributeType(Co,qe)){case"TrustedHTML":{dt=q.createHTML(dt);break}case"TrustedScriptURL":{dt=q.createScriptURL(dt);break}}try{ft?f.setAttributeNS(ft,ot,dt):f.setAttribute(ot,dt),jo(e.removed)}catch{}}}qt("afterSanitizeAttributes",f,null)},lc=function L(f){let m=null;const w=fo(f);for(qt("beforeSanitizeShadowDOM",f,null);m=w.nextNode();)qt("uponSanitizeShadowNode",m,null),!go(m)&&(m.content instanceof o&&L(m.content),yo(m));qt("afterSanitizeShadowDOM",f,null)};return e.sanitize=function(L){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=null,w=null,U=null,nt=null;if(Mr=!L,Mr&&(L=""),typeof L!="string"&&!po(L))if(typeof L.toString=="function"){if(L=L.toString(),typeof L!="string")throw je("dirty is not a string, aborting")}else throw je("toString is not a function");if(!e.isSupported)return L;if(Rt||$r(f),e.removed=[],typeof L=="string"&&(Pe=!1),Pe){if(L.nodeName){const le=et(L.nodeName);if(!x[le]||K[le])throw je("root node is forbidden and cannot be sanitized in-place")}}else if(L instanceof a)m=uo(""),w=m.ownerDocument.importNode(L,!0),w.nodeType===1&&w.nodeName==="BODY"||w.nodeName==="HTML"?m=w:m.appendChild(w);else{if(!be&&!Z&&!rt&&L.indexOf("<")===-1)return q&&yi?q.createHTML(L):L;if(m=uo(L),!m)return be?null:yi?H:""}m&&Jt&&ae(m.firstChild);const ot=fo(Pe?L:m);for(;U=ot.nextNode();)go(U)||(U.content instanceof o&&lc(U.content),yo(U));if(Pe)return L;if(be){if(_i)for(nt=W.call(m.ownerDocument);m.firstChild;)nt.appendChild(m.firstChild);else nt=m;return($.shadowroot||$.shadowrootmode)&&(nt=Xt.call(r,nt,!0)),nt}let ft=rt?m.outerHTML:m.innerHTML;return rt&&x["!doctype"]&&m.ownerDocument&&m.ownerDocument.doctype&&m.ownerDocument.doctype.name&&_t(va,m.ownerDocument.doctype.name)&&(ft=" +`+ft),Z&&ki([z,vt,Kt],le=>{ft=He(ft,le," ")}),q&&yi?q.createHTML(ft):ft},e.setConfig=function(){let L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};$r(L),Rt=!0},e.clearConfig=function(){Se=null,Rt=!1},e.isValidAttribute=function(L,f,m){Se||$r({});const w=et(L),U=et(f);return mo(w,U,m)},e.addHook=function(L,f){typeof f=="function"&&(j[L]=j[L]||[],We(j[L],f))},e.removeHook=function(L){if(j[L])return jo(j[L])},e.removeHooks=function(L){j[L]&&(j[L]=[])},e.removeAllHooks=function(){j={}},e}var Ji=Sa();const Di={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 Di.hue2rgb(o,n,t+1/3)*255;case"g":return Di.hue2rgb(o,n,t)*255;case"b":return Di.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+(ee>i?Math.min(e,Math.max(i,t)):Math.min(i,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},pd=dd,gd={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},md=gd,_d={channel:fd,lang:pd,unit:md},I=_d,te={};for(let t=0;t<=255;t++)te[t]=I.unit.dec2hex(t);const st={ALL:0,RGB:1,HSL:2};class yd{constructor(){this.type=st.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=st.ALL}is(e){return this.type===e}}const Cd=yd;class bd{constructor(e,i){this.color=i,this.changed=!1,this.data=e,this.type=new Cd}set(e,i){return this.color=i,this.changed=!1,this.data=e,this.type.type=st.ALL,this}_ensureHSL(){const e=this.data,{h:i,s:r,l:n}=e;i===void 0&&(e.h=I.channel.rgb2hsl(e,"h")),r===void 0&&(e.s=I.channel.rgb2hsl(e,"s")),n===void 0&&(e.l=I.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:i,g:r,b:n}=e;i===void 0&&(e.r=I.channel.hsl2rgb(e,"r")),r===void 0&&(e.g=I.channel.hsl2rgb(e,"g")),n===void 0&&(e.b=I.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,i=e.r;return!this.type.is(st.HSL)&&i!==void 0?i:(this._ensureHSL(),I.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,i=e.g;return!this.type.is(st.HSL)&&i!==void 0?i:(this._ensureHSL(),I.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,i=e.b;return!this.type.is(st.HSL)&&i!==void 0?i:(this._ensureHSL(),I.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,i=e.h;return!this.type.is(st.RGB)&&i!==void 0?i:(this._ensureRGB(),I.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,i=e.s;return!this.type.is(st.RGB)&&i!==void 0?i:(this._ensureRGB(),I.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,i=e.l;return!this.type.is(st.RGB)&&i!==void 0?i:(this._ensureRGB(),I.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(st.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(st.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(st.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(st.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(st.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(st.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const xd=bd,Td=new xd({r:0,g:0,b:0,a:0},"transparent"),_r=Td,ka={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(ka.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,h=s?255:15;return _r.set({r:(r>>l*(c+3)&h)*a,g:(r>>l*(c+2)&h)*a,b:(r>>l*(c+1)&h)*a,a:o?(r&h)*a/255:1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`#${te[Math.round(e)]}${te[Math.round(i)]}${te[Math.round(r)]}${te[Math.round(n*255)]}`:`#${te[Math.round(e)]}${te[Math.round(i)]}${te[Math.round(r)]}`}},Xe=ka,Ni={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(Ni.hueRe);if(e){const[,i,r]=e;switch(r){case"grad":return I.channel.clamp.h(parseFloat(i)*.9);case"rad":return I.channel.clamp.h(parseFloat(i)*180/Math.PI);case"turn":return I.channel.clamp.h(parseFloat(i)*360)}}return I.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const i=t.match(Ni.re);if(!i)return;const[,r,n,o,s,a]=i;return _r.set({h:Ni._hue2deg(r),s:I.channel.clamp.s(parseFloat(n)),l:I.channel.clamp.l(parseFloat(o)),a:s?I.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(${I.lang.round(e)}, ${I.lang.round(i)}%, ${I.lang.round(r)}%, ${n})`:`hsl(${I.lang.round(e)}, ${I.lang.round(i)}%, ${I.lang.round(r)}%)`}},Li=Ni,Ri={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=Ri.colors[t];if(e)return Xe.parse(e)},stringify:t=>{const e=Xe.stringify(t);for(const i in Ri.colors)if(Ri.colors[i]===e)return i}},Ko=Ri,wa={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(wa.re);if(!i)return;const[,r,n,o,s,a,l,c,h]=i;return _r.set({r:I.channel.clamp.r(n?parseFloat(r)*2.55:parseFloat(r)),g:I.channel.clamp.g(s?parseFloat(o)*2.55:parseFloat(o)),b:I.channel.clamp.b(l?parseFloat(a)*2.55:parseFloat(a)),a:c?I.channel.clamp.a(h?parseFloat(c)/100:parseFloat(c)):1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`rgba(${I.lang.round(e)}, ${I.lang.round(i)}, ${I.lang.round(r)}, ${I.lang.round(n)})`:`rgb(${I.lang.round(e)}, ${I.lang.round(i)}, ${I.lang.round(r)})`}},Fi=wa,vd={format:{keyword:Ko,hex:Xe,rgb:Fi,rgba:Fi,hsl:Li,hsla:Li},parse:t=>{if(typeof t!="string")return t;const e=Xe.parse(t)||Fi.parse(t)||Li.parse(t)||Ko.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(st.HSL)||t.data.r===void 0?Li.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?Fi.stringify(t):Xe.stringify(t)},It=vd,Sd=(t,e)=>{const i=It.parse(t);for(const r in e)i[r]=I.channel.clamp[r](e[r]);return It.stringify(i)},Ba=Sd,kd=(t,e,i=0,r=1)=>{if(typeof t!="number")return Ba(t,{a:e});const n=_r.set({r:I.channel.clamp.r(t),g:I.channel.clamp.g(e),b:I.channel.clamp.b(i),a:I.channel.clamp.a(r)});return It.stringify(n)},Ke=kd,wd=t=>{const{r:e,g:i,b:r}=It.parse(t),n=.2126*I.channel.toLinear(e)+.7152*I.channel.toLinear(i)+.0722*I.channel.toLinear(r);return I.lang.round(n)},Bd=wd,Ld=t=>Bd(t)>=.5,Fd=Ld,Ad=t=>!Fd(t),pi=Ad,Ed=(t,e,i)=>{const r=It.parse(t),n=r[e],o=I.channel.clamp[e](n+i);return n!==o&&(r[e]=o),It.stringify(r)},La=Ed,Od=(t,e)=>La(t,"l",e),F=Od,Md=(t,e)=>La(t,"l",-e),O=Md,Id=(t,e)=>{const i=It.parse(t),r={};for(const n in e)e[n]&&(r[n]=i[n]+e[n]);return Ba(t,r)},d=Id,$d=(t,e,i=50)=>{const{r,g:n,b:o,a:s}=It.parse(t),{r:a,g:l,b:c,a:h}=It.parse(e),u=i/100,g=u*2-1,p=s-h,S=((g*p===-1?g:(g+p)/(1+g*p))+1)/2,k=1-S,P=r*S+a*k,T=n*S+l*k,q=o*S+c*k,H=s*u+h*(1-u);return Ke(P,T,q,H)},Dd=$d,Nd=(t,e=100)=>{const i=It.parse(t);return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,Dd(i,t,e)},C=Nd;var Rd=typeof global=="object"&&global&&global.Object===Object&&global;const Fa=Rd;var Pd=typeof self=="object"&&self&&self.Object===Object&&self,qd=Fa||Pd||Function("return this")();const Dt=qd;var zd=Dt.Symbol;const Qi=zd;var Aa=Object.prototype,Wd=Aa.hasOwnProperty,Hd=Aa.toString,Ue=Qi?Qi.toStringTag:void 0;function jd(t){var e=Wd.call(t,Ue),i=t[Ue];try{t[Ue]=void 0;var r=!0}catch{}var n=Hd.call(t);return r&&(e?t[Ue]=i:delete t[Ue]),n}var Ud=Object.prototype,Yd=Ud.toString;function Vd(t){return Yd.call(t)}var Gd="[object Null]",Xd="[object Undefined]",Zo=Qi?Qi.toStringTag:void 0;function De(t){return t==null?t===void 0?Xd:Gd:Zo&&Zo in Object(t)?jd(t):Vd(t)}function _e(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Kd="[object AsyncFunction]",Zd="[object Function]",Jd="[object GeneratorFunction]",Qd="[object Proxy]";function $n(t){if(!_e(t))return!1;var e=De(t);return e==Zd||e==Jd||e==Kd||e==Qd}var tp=Dt["__core-js_shared__"];const Yr=tp;var Jo=function(){var t=/[^.]+$/.exec(Yr&&Yr.keys&&Yr.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function ep(t){return!!Jo&&Jo in t}var ip=Function.prototype,rp=ip.toString;function ye(t){if(t!=null){try{return rp.call(t)}catch{}try{return t+""}catch{}}return""}var np=/[\\^$.*+?()[\]{}|]/g,op=/^\[object .+?Constructor\]$/,sp=Function.prototype,ap=Object.prototype,lp=sp.toString,cp=ap.hasOwnProperty,hp=RegExp("^"+lp.call(cp).replace(np,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function up(t){if(!_e(t)||ep(t))return!1;var e=$n(t)?hp:op;return e.test(ye(t))}function fp(t,e){return t==null?void 0:t[e]}function Ce(t,e){var i=fp(t,e);return up(i)?i:void 0}var dp=Ce(Object,"create");const oi=dp;function pp(){this.__data__=oi?oi(null):{},this.size=0}function gp(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var mp="__lodash_hash_undefined__",_p=Object.prototype,yp=_p.hasOwnProperty;function Cp(t){var e=this.__data__;if(oi){var i=e[t];return i===mp?void 0:i}return yp.call(e,t)?e[t]:void 0}var bp=Object.prototype,xp=bp.hasOwnProperty;function Tp(t){var e=this.__data__;return oi?e[t]!==void 0:xp.call(e,t)}var vp="__lodash_hash_undefined__";function Sp(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=oi&&e===void 0?vp:e,this}function ge(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e-1}function Ep(t,e){var i=this.__data__,r=Cr(i,t);return r<0?(++this.size,i.push([t,e])):i[r][1]=e,this}function Vt(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=fg}function Tr(t){return t!=null&&$a(t.length)&&!$n(t)}function dg(t){return mi(t)&&Tr(t)}function pg(){return!1}var Da=typeof exports=="object"&&exports&&!exports.nodeType&&exports,os=Da&&typeof module=="object"&&module&&!module.nodeType&&module,gg=os&&os.exports===Da,ss=gg?Dt.Buffer:void 0,mg=ss?ss.isBuffer:void 0,_g=mg||pg;const Nn=_g;var yg="[object Object]",Cg=Function.prototype,bg=Object.prototype,Na=Cg.toString,xg=bg.hasOwnProperty,Tg=Na.call(Object);function vg(t){if(!mi(t)||De(t)!=yg)return!1;var e=Ma(t);if(e===null)return!0;var i=xg.call(e,"constructor")&&e.constructor;return typeof i=="function"&&i instanceof i&&Na.call(i)==Tg}var Sg="[object Arguments]",kg="[object Array]",wg="[object Boolean]",Bg="[object Date]",Lg="[object Error]",Fg="[object Function]",Ag="[object Map]",Eg="[object Number]",Og="[object Object]",Mg="[object RegExp]",Ig="[object Set]",$g="[object String]",Dg="[object WeakMap]",Ng="[object ArrayBuffer]",Rg="[object DataView]",Pg="[object Float32Array]",qg="[object Float64Array]",zg="[object Int8Array]",Wg="[object Int16Array]",Hg="[object Int32Array]",jg="[object Uint8Array]",Ug="[object Uint8ClampedArray]",Yg="[object Uint16Array]",Vg="[object Uint32Array]",V={};V[Pg]=V[qg]=V[zg]=V[Wg]=V[Hg]=V[jg]=V[Ug]=V[Yg]=V[Vg]=!0;V[Sg]=V[kg]=V[Ng]=V[wg]=V[Rg]=V[Bg]=V[Lg]=V[Fg]=V[Ag]=V[Eg]=V[Og]=V[Mg]=V[Ig]=V[$g]=V[Dg]=!1;function Gg(t){return mi(t)&&$a(t.length)&&!!V[De(t)]}function Xg(t){return function(e){return t(e)}}var Ra=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ze=Ra&&typeof module=="object"&&module&&!module.nodeType&&module,Kg=Ze&&Ze.exports===Ra,Vr=Kg&&Fa.process,Zg=function(){try{var t=Ze&&Ze.require&&Ze.require("util").types;return t||Vr&&Vr.binding&&Vr.binding("util")}catch{}}();const as=Zg;var ls=as&&as.isTypedArray,Jg=ls?Xg(ls):Gg;const Rn=Jg;function un(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var Qg=Object.prototype,tm=Qg.hasOwnProperty;function em(t,e,i){var r=t[e];(!(tm.call(t,e)&&yr(r,i))||i===void 0&&!(e in t))&&Dn(t,e,i)}function im(t,e,i,r){var n=!i;i||(i={});for(var o=-1,s=e.length;++o-1&&t%1==0&&t0){if(++e>=bm)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Sm=vm(Cm);const km=Sm;function wm(t,e){return km(mm(t,e,Wa),t+"")}function Bm(t,e,i){if(!_e(i))return!1;var r=typeof e;return(r=="number"?Tr(i)&&Pa(e,i.length):r=="string"&&e in i)?yr(i[e],t):!1}function Lm(t){return wm(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&&Bm(i[0],i[1],s)&&(o=n<3?void 0:o,n=1),e=Object(e);++r0?ai(Re,--Tt):0,Oe--,J===10&&(Oe=1,vr--),J}function wt(){return J=Tt2||fn(J)>3?"":" "}function Wm(t,e){for(;--e&&wt()&&!(J<48||J>102||J>57&&J<65||J>70&&J<97););return Sr(t,qi()+(e<6&&fe()==32&&wt()==32))}function dn(t){for(;wt();)switch(J){case t:return Tt;case 34:case 39:t!==34&&t!==39&&dn(J);break;case 40:t===41&&dn(t);break;case 92:wt();break}return Tt}function Hm(t,e){for(;wt()&&t+J!==47+10;)if(t+J===42+42&&fe()===47)break;return"/*"+Sr(e,Tt-1)+"*"+Pn(t===47?t:wt())}function jm(t){for(;!fn(fe());)wt();return Sr(t,Tt)}function Um(t){return qm(zi("",null,null,null,[""],t=Pm(t),0,[0],t))}function zi(t,e,i,r,n,o,s,a,l){for(var c=0,h=0,u=s,g=0,p=0,_=0,S=1,k=1,P=1,T=0,q="",H=n,Y=o,X=r,W=q;k;)switch(_=T,T=wt()){case 40:if(_!=108&&ai(W,u-1)==58){$m(W+=Pi(Gr(T),"&","&\f"),"&\f")!=-1&&(P=-1);break}case 34:case 39:case 91:W+=Gr(T);break;case 9:case 10:case 13:case 32:W+=zm(_);break;case 92:W+=Wm(qi()-1,7);continue;case 47:switch(fe()){case 42:case 47:Ai(Ym(Hm(wt(),qi()),e,i,l),l);break;default:W+="/"}break;case 123*S:a[c++]=Ht(W)*P;case 125*S:case 59:case 0:switch(T){case 0:case 125:k=0;case 59+h:P==-1&&(W=Pi(W,/\f/g,"")),p>0&&Ht(W)-u&&Ai(p>32?us(W+";",r,i,u-1,l):us(Pi(W," ","")+";",r,i,u-2,l),l);break;case 59:W+=";";default:if(Ai(X=hs(W,e,i,c,h,n,a,q,H=[],Y=[],u,o),o),T===123)if(h===0)zi(W,e,X,X,H,o,u,a,Y);else switch(g===99&&ai(W,3)===110?100:g){case 100:case 108:case 109:case 115:zi(t,X,X,r&&Ai(hs(t,X,X,0,0,n,a,q,n,H=[],u,Y),Y),n,Y,u,a,r?H:Y);break;default:zi(W,X,X,X,[""],Y,0,a,Y)}}c=h=p=0,S=P=1,q=W="",u=s;break;case 58:u=1+Ht(W),p=_;default:if(S<1){if(T==123)--S;else if(T==125&&S++==0&&Rm()==125)continue}switch(W+=Pn(T),T*S){case 38:P=h>0?1:(W+="\f",-1);break;case 44:a[c++]=(Ht(W)-1)*P,P=1;break;case 64:fe()===45&&(W+=Gr(wt())),g=fe(),h=u=Ht(q=W+=jm(qi())),T++;break;case 45:_===45&&Ht(W)==2&&(S=0)}}return o}function hs(t,e,i,r,n,o,s,a,l,c,h,u){for(var g=n-1,p=n===0?o:[""],_=Dm(p),S=0,k=0,P=0;S0?p[T]+" "+q:Pi(q,/&\f/g,p[T])))&&(l[P++]=H);return qn(t,e,i,n===0?ja:a,l,c,h,u)}function Ym(t,e,i,r){return qn(t,e,i,Ha,Pn(Nm()),li(t,2,-2),0,r)}function us(t,e,i,r,n){return qn(t,e,i,Ua,li(t,0,r),li(t,r+1,-1),r,n)}function pn(t,e){for(var i="",r=0;r{},debug:(...t)=>{},info:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},fatal:(...t)=>{}},zn=function(t="fatal"){let e=Wt.fatal;typeof t=="string"?(t=t.toLowerCase(),t in Wt&&(e=Wt[t])):typeof t=="number"&&(e=t),E.trace=()=>{},E.debug=()=>{},E.info=()=>{},E.warn=()=>{},E.error=()=>{},E.fatal=()=>{},e<=Wt.fatal&&(E.fatal=console.error?console.error.bind(console,Ct("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",Ct("FATAL"))),e<=Wt.error&&(E.error=console.error?console.error.bind(console,Ct("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",Ct("ERROR"))),e<=Wt.warn&&(E.warn=console.warn?console.warn.bind(console,Ct("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",Ct("WARN"))),e<=Wt.info&&(E.info=console.info?console.info.bind(console,Ct("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",Ct("INFO"))),e<=Wt.debug&&(E.debug=console.debug?console.debug.bind(console,Ct("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Ct("DEBUG"))),e<=Wt.trace&&(E.trace=console.debug?console.debug.bind(console,Ct("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Ct("TRACE")))},Ct=t=>`%c${dc().format("ss.SSS")} : ${t} : `,kr=//gi,p0=t=>t?Xa(t).replace(/\\n/g,"#br#").split("#br#"):[""],Ga=t=>Ji.sanitize(t),_s=(t,e)=>{var i;if(((i=e.flowchart)==null?void 0:i.htmlLabels)!==!1){const r=e.securityLevel;r==="antiscript"||r==="strict"?t=Ga(t):r!=="loose"&&(t=Xa(t),t=t.replace(//g,">"),t=t.replace(/=/g,"="),t=y0(t))}return t},ci=(t,e)=>t&&(e.dompurifyConfig?t=Ji.sanitize(_s(t,e),e.dompurifyConfig).toString():t=Ji.sanitize(_s(t,e),{FORBID_TAGS:["style"]}).toString(),t),g0=(t,e)=>typeof t=="string"?ci(t,e):t.flat().map(i=>ci(i,e)),m0=t=>kr.test(t),_0=t=>t.split(kr),y0=t=>t.replace(/#br#/g,"
    "),Xa=t=>t.replace(kr,"#br#"),C0=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},Ka=t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),b0=function(...t){const e=t.filter(i=>!isNaN(i));return Math.max(...e)},x0=function(...t){const e=t.filter(i=>!isNaN(i));return Math.min(...e)},ix=function(t){const e=t.split(/(,)/),i=[];for(let r=0;r0&&r+1Math.max(0,t.split(e).length-1),T0=(t,e)=>{const i=Cn(t,"~"),r=Cn(e,"~");return i===1&&r===1},v0=t=>{const e=Cn(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("")},Wn={getRows:p0,sanitizeText:ci,sanitizeTextOrArray:g0,hasBreaks:m0,splitBreaks:_0,lineBreakRegex:kr,removeScript:Ga,getUrl:C0,evaluate:Ka,getMax:b0,getMin:x0},ht=(t,e)=>e?d(t,{s:-40,l:10}):d(t,{s:-40,l:-10}),wr="#ffffff",Br="#f2f2f2";let S0=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(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||d(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||d(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ht(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ht(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ht(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ht(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||C(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||C(this.tertiaryColor),this.lineColor=this.lineColor||C(this.background),this.arrowheadColor=this.arrowheadColor||C(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?O(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||O(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||C(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||F(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||d(this.primaryColor,{h:30}),this.cScale4=this.cScale4||d(this.primaryColor,{h:60}),this.cScale5=this.cScale5||d(this.primaryColor,{h:90}),this.cScale6=this.cScale6||d(this.primaryColor,{h:120}),this.cScale7=this.cScale7||d(this.primaryColor,{h:150}),this.cScale8=this.cScale8||d(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||d(this.primaryColor,{h:270}),this.cScale10=this.cScale10||d(this.primaryColor,{h:300}),this.cScale11=this.cScale11||d(this.primaryColor,{h:330}),this.darkMode)for(let i=0;i{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const k0=t=>{const e=new S0;return e.calculate(t),e};let w0=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=F(this.primaryColor,16),this.tertiaryColor=d(this.primaryColor,{h:-160}),this.primaryBorderColor=C(this.background),this.secondaryBorderColor=ht(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ht(this.tertiaryColor,this.darkMode),this.primaryTextColor=C(this.primaryColor),this.secondaryTextColor=C(this.secondaryColor),this.tertiaryTextColor=C(this.tertiaryColor),this.lineColor=C(this.background),this.textColor=C(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=F(C("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=Ke(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=O("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=O(this.sectionBkgColor,10),this.taskBorderColor=Ke(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Ke(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(){this.secondBkg=F(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=F(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=F(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=d(this.primaryColor,{h:64}),this.fillType3=d(this.secondaryColor,{h:64}),this.fillType4=d(this.primaryColor,{h:-64}),this.fillType5=d(this.secondaryColor,{h:-64}),this.fillType6=d(this.primaryColor,{h:128}),this.fillType7=d(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||d(this.primaryColor,{h:30}),this.cScale4=this.cScale4||d(this.primaryColor,{h:60}),this.cScale5=this.cScale5||d(this.primaryColor,{h:90}),this.cScale6=this.cScale6||d(this.primaryColor,{h:120}),this.cScale7=this.cScale7||d(this.primaryColor,{h:150}),this.cScale8=this.cScale8||d(this.primaryColor,{h:210}),this.cScale9=this.cScale9||d(this.primaryColor,{h:270}),this.cScale10=this.cScale10||d(this.primaryColor,{h:300}),this.cScale11=this.cScale11||d(this.primaryColor,{h:330});for(let e=0;e{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const B0=t=>{const e=new w0;return e.calculate(t),e};let L0=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=d(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=d(this.primaryColor,{h:-160}),this.primaryBorderColor=ht(this.primaryColor,this.darkMode),this.secondaryBorderColor=ht(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ht(this.tertiaryColor,this.darkMode),this.primaryTextColor=C(this.primaryColor),this.secondaryTextColor=C(this.secondaryColor),this.tertiaryTextColor=C(this.tertiaryColor),this.lineColor=C(this.background),this.textColor=C(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=Ke(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(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||d(this.primaryColor,{h:30}),this.cScale4=this.cScale4||d(this.primaryColor,{h:60}),this.cScale5=this.cScale5||d(this.primaryColor,{h:90}),this.cScale6=this.cScale6||d(this.primaryColor,{h:120}),this.cScale7=this.cScale7||d(this.primaryColor,{h:150}),this.cScale8=this.cScale8||d(this.primaryColor,{h:210}),this.cScale9=this.cScale9||d(this.primaryColor,{h:270}),this.cScale10=this.cScale10||d(this.primaryColor,{h:300}),this.cScale11=this.cScale11||d(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||O(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||O(this.tertiaryColor,40);for(let e=0;e{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const F0=t=>{const e=new L0;return e.calculate(t),e};let A0=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=F("#cde498",10),this.primaryBorderColor=ht(this.primaryColor,this.darkMode),this.secondaryBorderColor=ht(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ht(this.tertiaryColor,this.darkMode),this.primaryTextColor=C(this.primaryColor),this.secondaryTextColor=C(this.secondaryColor),this.tertiaryTextColor=C(this.primaryColor),this.lineColor=C(this.background),this.textColor=C(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(){this.actorBorder=O(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||d(this.primaryColor,{h:30}),this.cScale4=this.cScale4||d(this.primaryColor,{h:60}),this.cScale5=this.cScale5||d(this.primaryColor,{h:90}),this.cScale6=this.cScale6||d(this.primaryColor,{h:120}),this.cScale7=this.cScale7||d(this.primaryColor,{h:150}),this.cScale8=this.cScale8||d(this.primaryColor,{h:210}),this.cScale9=this.cScale9||d(this.primaryColor,{h:270}),this.cScale10=this.cScale10||d(this.primaryColor,{h:300}),this.cScale11=this.cScale11||d(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||O(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||O(this.tertiaryColor,40);for(let e=0;e{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const E0=t=>{const e=new A0;return e.calculate(t),e};class O0{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=F(this.contrast,55),this.background="#ffffff",this.tertiaryColor=d(this.primaryColor,{h:-160}),this.primaryBorderColor=ht(this.primaryColor,this.darkMode),this.secondaryBorderColor=ht(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ht(this.tertiaryColor,this.darkMode),this.primaryTextColor=C(this.primaryColor),this.secondaryTextColor=C(this.secondaryColor),this.tertiaryTextColor=C(this.tertiaryColor),this.lineColor=C(this.background),this.textColor=C(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(){this.secondBkg=F(this.contrast,55),this.border2=this.contrast,this.actorBorder=F(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 e=0;e{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}}const M0=t=>{const e=new O0;return e.calculate(t),e},Ut={base:{getThemeVariables:k0},dark:{getThemeVariables:B0},default:{getThemeVariables:F0},forest:{getThemeVariables:E0},neutral:{getThemeVariables:M0}},Qt={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},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,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize"],deterministicIds:!1,fontSize:16},Za={...Qt,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:Ut.default.getThemeVariables(),sequence:{...Qt.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:{...Qt.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Qt.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:{...Qt.pie,useWidth:984},requirement:{...Qt.requirement,useWidth:void 0},gitGraph:{...Qt.gitGraph,useMaxWidth:!1},sankey:{...Qt.sankey,useMaxWidth:!1}},Ja=(t,e="")=>Object.keys(t).reduce((i,r)=>Array.isArray(t[r])?i:typeof t[r]=="object"&&t[r]!==null?[...i,e+r,...Ja(t[r],"")]:[...i,e+r],[]),I0=new Set(Ja(Za,"")),$0=Za,rr=t=>{if(E.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>rr(e));return}for(const e of Object.keys(t)){if(E.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!I0.has(e)||t[e]==null){E.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){E.debug("sanitizing object",e),rr(t[e]);continue}const i=["themeCSS","fontFamily","altFontFamily"];for(const r of i)e.includes(r)&&(E.debug("sanitizing css option",e),t[e]=D0(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]="")}E.debug("After sanitization",t)}},D0=t=>{let e=0,i=0;for(const r of t){if(e{for(const{id:e,detector:i,loader:r}of t)il(e,i,r)},il=(t,e,i)=>{Me[t]?E.error(`Detector with key ${t} already exists`):Me[t]={detector:e,loader:i},E.debug(`Detector with key ${t} added${i?" with loader":""}`)},R0=t=>Me[t].loader,bn=(t,e,{depth:i=2,clobber:r=!1}={})=>{const n={depth:i,clobber:r};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(o=>bn(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]=bn(t[o],e[o],{depth:i-1,clobber:r})):(r||typeof t[o]!="object"&&typeof e[o]!="object")&&(t[o]=e[o])}),t)},at=bn,P0="​",q0={curveBasis:Of,curveBasisClosed:Mf,curveBasisOpen:If,curveBumpX:Af,curveBumpY:Ef,curveBundle:$f,curveCardinalClosed:Nf,curveCardinalOpen:Rf,curveCardinal:Df,curveCatmullRomClosed:qf,curveCatmullRomOpen:zf,curveCatmullRom:Pf,curveLinear:Ff,curveLinearClosed:Wf,curveMonotoneX:Hf,curveMonotoneY:jf,curveNatural:Uf,curveStep:Yf,curveStepAfter:Gf,curveStepBefore:Vf},z0=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,W0=function(t,e){const i=rl(t,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(i)){const s=i.map(a=>a.args);rr(s),r=at(r,[...s])}else r=i.args;if(!r)return;let n=Lr(t,e);const o="config";return r[o]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),r[n]=r[o],delete r[o]),r},rl=function(t,e=null){try{const i=new RegExp(`[%]{2}(?![{]${z0.source})(?=[}][%]{2}).* +`,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),E.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const n=[];for(;(r=Je.exec(t))!==null;)if(r.index===Je.lastIndex&&Je.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 E.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},H0=function(t){return t.replace(Je,"")},j0=function(t,e){for(const[i,r]of e.entries())if(r.match(t))return i;return-1};function U0(t,e){if(!t)return e;const i=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return q0[i]??e}function Y0(t,e){const i=t.trim();if(i)return e.securityLevel!=="loose"?Is.sanitizeUrl(i):i}const V0=(t,...e)=>{const i=t.split("."),r=i.length-1,n=i[r];let o=window;for(let s=0;s{i+=nl(n,e),e=n});const r=i/2;return Hn(t,r)}function X0(t){return t.length===1?t[0]:G0(t)}const ys=(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=nl(n,i);if(o=1)return{x:n.x,y:n.y};if(s>0&&s<1)return{x:ys((1-s)*i.x+s*n.x,5),y:ys((1-s)*i.y+s*n.y,5)}}}i=n}throw new Error("Could not find a suitable point for the given distance")},K0=(t,e,i)=>{E.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 Z0(t,e,i){const r=structuredClone(i);E.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 J0(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 Cs=0;const Q0=()=>(Cs++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Cs);function t_(t){let e="";const i="0123456789abcdef",r=i.length;for(let n=0;nt_(t.length),i_=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:""}},r_=function(t,e){const i=e.text.replace(Wn.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},n_=gi((t,e,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
    "},i),Wn.lineBreakRegex.test(t)))return t;const r=t.split(" "),n=[];let o="";return r.forEach((s,a)=>{const l=nr(`${s} `,i),c=nr(o,i);if(l>e){const{hyphenatedStrings:g,remainingWord:p}=o_(s,e,"-",i);n.push(o,...g),o=p}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}`),o_=gi((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(nr(c,r)>=e){const u=l+1,g=n.length===u,p=`${c}${i}`;o.push(g?c:p),s=""}else s=c}),{hyphenatedStrings:o,remainingWord:s}},(t,e,i="-",r)=>`${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function s_(t,e){return jn(t,e).height}function nr(t,e){return jn(t,e).width}const jn=gi((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(Wn.lineBreakRegex),l=[],c=bt("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const h=c.append("svg");for(const g of s){let p=0;const _={width:0,height:0,lineHeight:0};for(const S of a){const k=i_();k.text=S||P0;const P=r_(h,k).style("font-size",o).style("font-weight",n).style("font-family",g),T=(P._groups||P)[0][0].getBBox();if(T.width===0&&T.height===0)throw new Error("svg element not in render tree");_.width=Math.round(Math.max(_.width,T.width)),p=Math.round(T.height),_.height+=p,_.lineHeight=Math.round(Math.max(_.lineHeight,p))}l.push(_)}h.remove();const u=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[u]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`);class a_{constructor(e=!1,i){this.count=0,this.count=i?i.length:0,this.next=e?()=>this.count++:()=>Date.now()}}let Ei;const l_=function(t){return Ei=Ei||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Ei.innerHTML=t,unescape(Ei.textContent)};function ol(t){return"str"in t}const c_=(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 sl(t,e){return Am({},t,e)}const Qe={assignWithDepth:at,wrapLabel:n_,calculateTextHeight:s_,calculateTextWidth:nr,calculateTextDimensions:jn,cleanAndMerge:sl,detectInit:W0,detectDirective:rl,isSubstringInArray:j0,interpolateToCurve:U0,calcLabelPosition:X0,calcCardinalityPosition:K0,calcTerminalLabelPosition:Z0,formatUrl:Y0,getStylesFromArray:J0,generateId:Q0,random:e_,runFunc:V0,entityDecode:l_,insertTitle:c_,parseFontSize:Un,InitIDGenerator:a_},bs="10.5.0",hi=Object.freeze($0);let pt=at({},hi),al,Ie=[],ti=at({},hi);const Fr=(t,e)=>{let i=at({},t),r={};for(const n of e)cl(n),r=at(r,n);if(i=at(i,r),r.theme&&r.theme in Ut){const n=at({},al),o=at(n.themeVariables||{},r.themeVariables);i.theme&&i.theme in Ut&&(i.themeVariables=Ut[i.theme].getThemeVariables(o))}return ti=i,hl(ti),ti},h_=t=>(pt=at({},hi),pt=at(pt,t),t.theme&&Ut[t.theme]&&(pt.themeVariables=Ut[t.theme].getThemeVariables(t.themeVariables)),Fr(pt,Ie),pt),u_=t=>{al=at({},t)},f_=t=>(pt=at(pt,t),Fr(pt,Ie),pt),ll=()=>at({},pt),d_=t=>(hl(t),at(ti,t),Lt()),Lt=()=>at({},ti),cl=t=>{t&&(["secure",...pt.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(E.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"&&cl(t[e])}))},p_=t=>{rr(t),t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),Ie.push(t),Fr(pt,Ie)},or=(t=pt)=>{Ie=[],Fr(t,Ie)},g_={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},xs={},m_=t=>{xs[t]||(E.warn(g_[t]),xs[t]=!0)},hl=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&m_("LAZY_LOAD_DEPRECATED")},ul="c4",__=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),y_=async()=>{const{diagram:t}=await tt(()=>import("./c4Diagram-7ff6304f-1a25bab8.js"),["assets/c4Diagram-7ff6304f-1a25bab8.js","assets/svgDrawCommon-057d45d0-b7474b9e.js","assets/app-d2f9e1e0.js"]);return{id:ul,diagram:t}},C_={id:ul,detector:__,loader:y_},b_=C_,fl="flowchart",x_=(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)},T_=async()=>{const{diagram:t}=await tt(()=>import("./flowDiagram-f303bdd6-38bad9e8.js"),["assets/flowDiagram-f303bdd6-38bad9e8.js","assets/flowDb-fa1288b0-080edacf.js","assets/layout-58f7ec6d.js","assets/styles-0671a096-13891fb5.js","assets/index-f9462f3f-9287aadd.js","assets/edges-f15a7e05-a8484ad2.js","assets/createText-80c3befb-7196e989.js","assets/line-e21175d5.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js","assets/app-d2f9e1e0.js"]);return{id:fl,diagram:t}},v_={id:fl,detector:x_,loader:T_},S_=v_,dl="flowchart-v2",k_=(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)},w_=async()=>{const{diagram:t}=await tt(()=>import("./flowDiagram-v2-34644886-a261f2a2.js"),["assets/flowDiagram-v2-34644886-a261f2a2.js","assets/flowDb-fa1288b0-080edacf.js","assets/styles-0671a096-13891fb5.js","assets/layout-58f7ec6d.js","assets/index-f9462f3f-9287aadd.js","assets/edges-f15a7e05-a8484ad2.js","assets/createText-80c3befb-7196e989.js","assets/line-e21175d5.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js","assets/app-d2f9e1e0.js"]);return{id:dl,diagram:t}},B_={id:dl,detector:k_,loader:w_},L_=B_,pl="er",F_=t=>/^\s*erDiagram/.test(t),A_=async()=>{const{diagram:t}=await tt(()=>import("./erDiagram-a995d1fe-c2e83c39.js"),["assets/erDiagram-a995d1fe-c2e83c39.js","assets/layout-58f7ec6d.js","assets/line-e21175d5.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js","assets/app-d2f9e1e0.js"]);return{id:pl,diagram:t}},E_={id:pl,detector:F_,loader:A_},O_=E_,gl="gitGraph",M_=t=>/^\s*gitGraph/.test(t),I_=async()=>{const{diagram:t}=await tt(()=>import("./gitGraphDiagram-2139c8c6-c9408d0d.js"),["assets/gitGraphDiagram-2139c8c6-c9408d0d.js","assets/app-d2f9e1e0.js"]);return{id:gl,diagram:t}},$_={id:gl,detector:M_,loader:I_},D_=$_,ml="gantt",N_=t=>/^\s*gantt/.test(t),R_=async()=>{const{diagram:t}=await tt(()=>import("./ganttDiagram-6a1a118f-b9fb0fb1.js"),["assets/ganttDiagram-6a1a118f-b9fb0fb1.js","assets/linear-0a2d62a3.js","assets/init-77b53fdd.js","assets/app-d2f9e1e0.js"]);return{id:ml,diagram:t}},P_={id:ml,detector:N_,loader:R_},q_=P_,_l="info",z_=t=>/^\s*info/.test(t),W_=async()=>{const{diagram:t}=await tt(()=>import("./infoDiagram-2064d999-3ca7a546.js"),["assets/infoDiagram-2064d999-3ca7a546.js","assets/app-d2f9e1e0.js"]);return{id:_l,diagram:t}},H_={id:_l,detector:z_,loader:W_},yl="pie",j_=t=>/^\s*pie/.test(t),U_=async()=>{const{diagram:t}=await tt(()=>import("./pieDiagram-ed51bc52-94ed60f9.js"),["assets/pieDiagram-ed51bc52-94ed60f9.js","assets/arc-3e498105.js","assets/path-53f90ab3.js","assets/ordinal-ba9b4969.js","assets/init-77b53fdd.js","assets/array-9f3ba611.js","assets/app-d2f9e1e0.js"]);return{id:yl,diagram:t}},Y_={id:yl,detector:j_,loader:U_},Cl="quadrantChart",V_=t=>/^\s*quadrantChart/.test(t),G_=async()=>{const{diagram:t}=await tt(()=>import("./quadrantDiagram-3a393d1c-57ae2fb5.js"),["assets/quadrantDiagram-3a393d1c-57ae2fb5.js","assets/linear-0a2d62a3.js","assets/init-77b53fdd.js","assets/app-d2f9e1e0.js"]);return{id:Cl,diagram:t}},X_={id:Cl,detector:V_,loader:G_},K_=X_,bl="requirement",Z_=t=>/^\s*requirement(Diagram)?/.test(t),J_=async()=>{const{diagram:t}=await tt(()=>import("./requirementDiagram-e12f1d97-9d1a729c.js"),["assets/requirementDiagram-e12f1d97-9d1a729c.js","assets/layout-58f7ec6d.js","assets/line-e21175d5.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js","assets/app-d2f9e1e0.js"]);return{id:bl,diagram:t}},Q_={id:bl,detector:Z_,loader:J_},ty=Q_,xl="sequence",ey=t=>/^\s*sequenceDiagram/.test(t),iy=async()=>{const{diagram:t}=await tt(()=>import("./sequenceDiagram-d89d0f25-950a25b8.js"),["assets/sequenceDiagram-d89d0f25-950a25b8.js","assets/svgDrawCommon-057d45d0-b7474b9e.js","assets/app-d2f9e1e0.js"]);return{id:xl,diagram:t}},ry={id:xl,detector:ey,loader:iy},ny=ry,Tl="class",oy=(t,e)=>{var i;return((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},sy=async()=>{const{diagram:t}=await tt(()=>import("./classDiagram-04f04946-4e8d9603.js"),["assets/classDiagram-04f04946-4e8d9603.js","assets/styles-8b67d7cb-2a1933f6.js","assets/layout-58f7ec6d.js","assets/line-e21175d5.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js","assets/app-d2f9e1e0.js"]);return{id:Tl,diagram:t}},ay={id:Tl,detector:oy,loader:sy},ly=ay,vl="classDiagram",cy=(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)},hy=async()=>{const{diagram:t}=await tt(()=>import("./classDiagram-v2-d4efdcc3-1154b70e.js"),["assets/classDiagram-v2-d4efdcc3-1154b70e.js","assets/styles-8b67d7cb-2a1933f6.js","assets/layout-58f7ec6d.js","assets/index-f9462f3f-9287aadd.js","assets/edges-f15a7e05-a8484ad2.js","assets/createText-80c3befb-7196e989.js","assets/line-e21175d5.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js","assets/app-d2f9e1e0.js"]);return{id:vl,diagram:t}},uy={id:vl,detector:cy,loader:hy},fy=uy,Sl="state",dy=(t,e)=>{var i;return((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},py=async()=>{const{diagram:t}=await tt(()=>import("./stateDiagram-0d589c85-f017bb7f.js"),["assets/stateDiagram-0d589c85-f017bb7f.js","assets/styles-24dfea38-ae7583ad.js","assets/layout-58f7ec6d.js","assets/line-e21175d5.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js","assets/app-d2f9e1e0.js"]);return{id:Sl,diagram:t}},gy={id:Sl,detector:dy,loader:py},my=gy,kl="stateDiagram",_y=(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")},yy=async()=>{const{diagram:t}=await tt(()=>import("./stateDiagram-v2-8bb05ecb-4a705aaf.js"),["assets/stateDiagram-v2-8bb05ecb-4a705aaf.js","assets/styles-24dfea38-ae7583ad.js","assets/layout-58f7ec6d.js","assets/index-f9462f3f-9287aadd.js","assets/edges-f15a7e05-a8484ad2.js","assets/createText-80c3befb-7196e989.js","assets/line-e21175d5.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js","assets/app-d2f9e1e0.js"]);return{id:kl,diagram:t}},Cy={id:kl,detector:_y,loader:yy},by=Cy,wl="journey",xy=t=>/^\s*journey/.test(t),Ty=async()=>{const{diagram:t}=await tt(()=>import("./journeyDiagram-6df70039-a61a8f46.js"),["assets/journeyDiagram-6df70039-a61a8f46.js","assets/svgDrawCommon-057d45d0-b7474b9e.js","assets/arc-3e498105.js","assets/path-53f90ab3.js","assets/app-d2f9e1e0.js"]);return{id:wl,diagram:t}},vy={id:wl,detector:xy,loader:Ty},Sy=vy,ky=t=>{var e;const{securityLevel:i}=Lt();let r=bt("body");if(i==="sandbox"){const s=((e=bt(`#i${t}`).node())==null?void 0:e.contentDocument)??document;r=bt(s.body)}return r.select(`#${t}`)},wy=function(t,e){for(let i of e)t.attr(i[0],i[1])},By=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},Bl=function(t,e,i,r){const n=By(e,i,r);wy(t,n)},Ly=function(t,e,i,r){const n=e.node().getBBox(),o=n.width,s=n.height;E.info(`SVG bounds: ${o}x${s}`,n);let a=0,l=0;E.info(`Graph bounds: ${a}x${l}`,t),a=o+i*2,l=s+i*2,E.info(`Calculated bounds: ${a}x${l}`),Bl(e,l,a,r);const c=`${n.x-i} ${n.y-i} ${n.width+2*i} ${n.height+2*i}`;e.attr("viewBox",c)},Fy=(t,e,i)=>{E.debug(`renering svg for syntax error +`);const r=ky(e);r.attr("viewBox","0 0 2412 512"),Bl(r,100,512,!0);const n=r.append("g");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}`)},Ll={draw:Fy},Ay=Ll,Ey={db:{},renderer:Ll,parser:{parser:{yy:{}},parse:()=>{}}},Oy=Ey,Fl="flowchart-elk",My=(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")},Iy=async()=>{const{diagram:t}=await tt(()=>import("./flowchart-elk-definition-b487ab79-36230ddc.js"),["assets/flowchart-elk-definition-b487ab79-36230ddc.js","assets/flowDb-fa1288b0-080edacf.js","assets/edges-f15a7e05-a8484ad2.js","assets/createText-80c3befb-7196e989.js","assets/line-e21175d5.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js","assets/app-d2f9e1e0.js"]);return{id:Fl,diagram:t}},$y={id:Fl,detector:My,loader:Iy},Dy=$y,Al="timeline",Ny=t=>/^\s*timeline/.test(t),Ry=async()=>{const{diagram:t}=await tt(()=>import("./timeline-definition-8b56e66a-17119a8b.js"),["assets/timeline-definition-8b56e66a-17119a8b.js","assets/arc-3e498105.js","assets/path-53f90ab3.js","assets/app-d2f9e1e0.js"]);return{id:Al,diagram:t}},Py={id:Al,detector:Ny,loader:Ry},qy=Py,El="mindmap",zy=t=>/^\s*mindmap/.test(t),Wy=async()=>{const{diagram:t}=await tt(()=>import("./mindmap-definition-7f612c4b-07efdd04.js"),["assets/mindmap-definition-7f612c4b-07efdd04.js","assets/createText-80c3befb-7196e989.js","assets/app-d2f9e1e0.js"]);return{id:El,diagram:t}},Hy={id:El,detector:zy,loader:Wy},jy=Hy,Ol="sankey",Uy=t=>/^\s*sankey-beta/.test(t),Yy=async()=>{const{diagram:t}=await tt(()=>import("./sankeyDiagram-6de1f9fe-41184d1a.js"),["assets/sankeyDiagram-6de1f9fe-41184d1a.js","assets/ordinal-ba9b4969.js","assets/init-77b53fdd.js","assets/app-d2f9e1e0.js"]);return{id:Ol,diagram:t}},Vy={id:Ol,detector:Uy,loader:Yy},Gy=Vy,Wi={},Xy=(t,e,i)=>{let r="";return t in Wi&&Wi[t]?r=Wi[t](i):E.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} +`},Ky=(t,e)=>{e!==void 0&&(Wi[t]=e)},Zy=Xy;let Yn="",Vn="",Gn="";const Xn=t=>ci(t,Lt()),Jy=()=>{Yn="",Gn="",Vn=""},Qy=t=>{Yn=Xn(t).replace(/^\s+/g,"")},tC=()=>Yn,eC=t=>{Gn=Xn(t).replace(/\n\s+/g,` +`)},iC=()=>Gn,rC=t=>{Vn=Xn(t)},nC=()=>Vn,oC=Object.freeze(Object.defineProperty({__proto__:null,clear:Jy,getAccDescription:iC,getAccTitle:tC,getDiagramTitle:nC,setAccDescription:eC,setAccTitle:Qy,setDiagramTitle:rC},Symbol.toStringTag,{value:"Module"})),sC=E,aC=zn,Ml=Lt,lC=t=>ci(t,Ml()),cC=Ly,hC=()=>oC,sr={},ar=(t,e,i)=>{var r;if(sr[t])throw new Error(`Diagram ${t} already registered.`);sr[t]=e,i&&il(t,i),Ky(t,e.styles),(r=e.injectUtils)==null||r.call(e,sC,aC,Ml,lC,cC,hC(),()=>{})},Kn=t=>{if(t in sr)return sr[t];throw new uC(t)};class uC extends Error{constructor(e){super(`Diagram ${e} not found.`)}}let Ts=!1;const Zn=()=>{Ts||(Ts=!0,ar("error",Oy,t=>t.toLowerCase().trim()==="error"),ar("---",{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("---")),el(b_,fy,ly,O_,q_,H_,Y_,ty,ny,Dy,L_,S_,jy,qy,D_,by,my,Sy,K_,Gy))};class Il{constructor(e,i={}){this.text=e,this.metadata=i,this.type="graph",this.text+=` +`;const r=Lt();try{this.type=Lr(e,r)}catch(o){this.type="error",this.detectError=o}const n=Kn(this.type);E.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=Lt();(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 Jn=async(t,e={})=>{const i=Lr(t,Lt());try{Kn(i)}catch{const n=R0(i);if(!n)throw new tl(`Diagram ${i} not found.`);const{id:o,diagram:s}=await n();ar(o,s)}return new Il(t,e)};let xn=[];const ax=t=>{xn.push(t)},fC=()=>{xn.forEach(t=>{t()}),xn=[]},dC="graphics-document document";function pC(t,e){t.attr("role",dC),e!==""&&t.attr("aria-roledescription",e)}function gC(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 mC=t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function $l(t){return typeof t>"u"||t===null}function _C(t){return typeof t=="object"&&t!==null}function yC(t){return Array.isArray(t)?t:$l(t)?[]:[t]}function CC(t,e){var i,r,n,o;if(e)for(o=Object.keys(e),i=0,r=o.length;ia&&(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 Zr(t,e){return ct.repeat(" ",e-t.length)+t}function LC(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,h=Math.min(t.line+e.linesAfter,n.length).toString().length,u=e.maxLength-(e.indent+h+3);for(l=1;l<=e.linesBefore&&!(s-l<0);l++)c=Kr(t.buffer,r[s-l],n[s-l],t.position-(r[s]-r[s-l]),u),a=ct.repeat(" ",e.indent)+Zr((t.line-l+1).toString(),h)+" | "+c.str+` +`+a;for(c=Kr(t.buffer,r[s],n[s],t.position,u),a+=ct.repeat(" ",e.indent)+Zr((t.line+1).toString(),h)+" | "+c.str+` +`,a+=ct.repeat("-",e.indent+h+3+c.pos)+`^ +`,l=1;l<=e.linesAfter&&!(s+l>=n.length);l++)c=Kr(t.buffer,r[s+l],n[s+l],t.position-(r[s]-r[s+l]),u),a+=ct.repeat(" ",e.indent)+Zr((t.line+l+1).toString(),h)+" | "+c.str+` +`;return a.replace(/\n$/,"")}var FC=LC,AC=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],EC=["scalar","sequence","mapping"];function OC(t){var e={};return t!==null&&Object.keys(t).forEach(function(i){t[i].forEach(function(r){e[String(r)]=i})}),e}function MC(t,e){if(e=e||{},Object.keys(e).forEach(function(i){if(AC.indexOf(i)===-1)throw new jt('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=OC(e.styleAliases||null),EC.indexOf(this.kind)===-1)throw new jt('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var lt=MC;function vs(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 IC(){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=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"]}}),e1=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function i1(t){return!(t===null||!e1.test(t)||t[t.length-1]==="_")}function r1(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 n1=/^[-+]?[0-9]+e/;function o1(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(ct.isNegativeZero(t))return"-0.0";return i=t.toString(10),n1.test(i)?i.replace("e",".e"):i}function s1(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||ct.isNegativeZero(t))}var a1=new lt("tag:yaml.org,2002:float",{kind:"scalar",resolve:i1,construct:r1,predicate:s1,represent:o1,defaultStyle:"lowercase"}),Nl=PC.extend({implicit:[HC,VC,t1,a1]}),l1=Nl,Rl=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Pl=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 c1(t){return t===null?!1:Rl.exec(t)!==null||Pl.exec(t)!==null}function h1(t){var e,i,r,n,o,s,a,l=0,c=null,h,u,g;if(e=Rl.exec(t),e===null&&(e=Pl.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]&&(h=+e[10],u=+(e[11]||0),c=(h*60+u)*6e4,e[9]==="-"&&(c=-c)),g=new Date(Date.UTC(i,r,n,o,s,a,l)),c&&g.setTime(g.getTime()-c),g}function u1(t){return t.toISOString()}var f1=new lt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:c1,construct:h1,instanceOf:Date,represent:u1});function d1(t){return t==="<<"||t===null}var p1=new lt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:d1}),Qn=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +\r`;function g1(t){if(t===null)return!1;var e,i,r=0,n=t.length,o=Qn;for(i=0;i64)){if(e<0)return!1;r+=6}return r%8===0}function m1(t){var e,i,r=t.replace(/[\r\n=]/g,""),n=r.length,o=Qn,s=0,a=[];for(e=0;e>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 _1(t){var e="",i=0,r,n,o=t.length,s=Qn;for(r=0;r>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 y1(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var C1=new lt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:g1,construct:m1,predicate:y1,represent:_1}),b1=Object.prototype.hasOwnProperty,x1=Object.prototype.toString;function T1(t){if(t===null)return!0;var e=[],i,r,n,o,s,a=t;for(i=0,r=a.length;i>10)+55296,(t-65536&1023)+56320)}var jl=new Array(256),Ul=new Array(256);for(var we=0;we<256;we++)jl[we]=ws(we)?1:0,Ul[we]=ws(we);function W1(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||M1,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 Yl(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=FC(i),new jt(e,i)}function A(t,e){throw Yl(t,e)}function hr(t,e){t.onWarning&&t.onWarning.call(null,Yl(t,e))}var Bs={YAML:function(e,i,r){var n,o,s;e.version!==null&&A(e,"duplication of %YAML directive"),r.length!==1&&A(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),n===null&&A(e,"ill-formed argument of the YAML directive"),o=parseInt(n[1],10),s=parseInt(n[2],10),o!==1&&A(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=s<2,s!==1&&s!==2&&hr(e,"unsupported YAML version of the document")},TAG:function(e,i,r){var n,o;r.length!==2&&A(e,"TAG directive accepts exactly two arguments"),n=r[0],o=r[1],Wl.test(n)||A(e,"ill-formed tag handle (first argument) of the TAG directive"),ne.call(e.tagMap,n)&&A(e,'there is a previously declared suffix for "'+n+'" tag handle'),Hl.test(o)||A(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{A(e,"tag prefix is malformed: "+o)}e.tagMap[n]=o}};function ie(t,e,i,r){var n,o,s,a;if(e1&&(t.result+=ct.repeat(` +`,e-1))}function H1(t,e,i){var r,n,o,s,a,l,c,h,u=t.kind,g=t.result,p;if(p=t.input.charCodeAt(t.position),mt(p)||Be(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(n=t.input.charCodeAt(t.position+1),mt(n)||i&&Be(n)))return!1;for(t.kind="scalar",t.result="",o=s=t.position,a=!1;p!==0;){if(p===58){if(n=t.input.charCodeAt(t.position+1),mt(n)||i&&Be(n))break}else if(p===35){if(r=t.input.charCodeAt(t.position-1),mt(r))break}else{if(t.position===t.lineStart&&Ar(t)||i&&Be(p))break;if(Mt(p))if(l=t.line,c=t.lineStart,h=t.lineIndent,Q(t,!1,-1),t.lineIndent>=e){a=!0,p=t.input.charCodeAt(t.position);continue}else{t.position=s,t.line=l,t.lineStart=c,t.lineIndent=h;break}}a&&(ie(t,o,s,!1),eo(t,t.line-l),o=s=t.position,a=!1),de(p)||(s=t.position+1),p=t.input.charCodeAt(++t.position)}return ie(t,o,s,!1),t.result?!0:(t.kind=u,t.result=g,!1)}function j1(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(ie(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 Mt(i)?(ie(t,r,n,!0),eo(t,Q(t,!1,e)),r=n=t.position):t.position===t.lineStart&&Ar(t)?A(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);A(t,"unexpected end of the stream within a single quoted scalar")}function U1(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 ie(t,i,t.position,!0),t.position++,!0;if(a===92){if(ie(t,i,t.position,!0),a=t.input.charCodeAt(++t.position),Mt(a))Q(t,!1,e);else if(a<256&&jl[a])t.result+=Ul[a],t.position++;else if((s=P1(a))>0){for(n=s,o=0;n>0;n--)a=t.input.charCodeAt(++t.position),(s=R1(a))>=0?o=(o<<4)+s:A(t,"expected hexadecimal character");t.result+=z1(o),t.position++}else A(t,"unknown escape sequence");i=r=t.position}else Mt(a)?(ie(t,i,r,!0),eo(t,Q(t,!1,e)),i=r=t.position):t.position===t.lineStart&&Ar(t)?A(t,"unexpected end of the document within a double quoted scalar"):(t.position++,r=t.position)}A(t,"unexpected end of the stream within a double quoted scalar")}function Y1(t,e){var i=!0,r,n,o,s=t.tag,a,l=t.anchor,c,h,u,g,p,_=Object.create(null),S,k,P,T;if(T=t.input.charCodeAt(t.position),T===91)h=93,p=!1,a=[];else if(T===123)h=125,p=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),T=t.input.charCodeAt(++t.position);T!==0;){if(Q(t,!0,e),T=t.input.charCodeAt(t.position),T===h)return t.position++,t.tag=s,t.anchor=l,t.kind=p?"mapping":"sequence",t.result=a,!0;i?T===44&&A(t,"expected the node content, but found ','"):A(t,"missed comma between flow collection entries"),k=S=P=null,u=g=!1,T===63&&(c=t.input.charCodeAt(t.position+1),mt(c)&&(u=g=!0,t.position++,Q(t,!0,e))),r=t.line,n=t.lineStart,o=t.position,$e(t,e,lr,!1,!0),k=t.tag,S=t.result,Q(t,!0,e),T=t.input.charCodeAt(t.position),(g||t.line===r)&&T===58&&(u=!0,T=t.input.charCodeAt(++t.position),Q(t,!0,e),$e(t,e,lr,!1,!0),P=t.result),p?Le(t,a,_,k,S,P,r,n,o):u?a.push(Le(t,null,_,k,S,P,r,n,o)):a.push(S),Q(t,!0,e),T=t.input.charCodeAt(t.position),T===44?(i=!0,T=t.input.charCodeAt(++t.position)):i=!1}A(t,"unexpected end of the stream within a flow collection")}function V1(t,e){var i,r,n=Jr,o=!1,s=!1,a=e,l=0,c=!1,h,u;if(u=t.input.charCodeAt(t.position),u===124)r=!1;else if(u===62)r=!0;else return!1;for(t.kind="scalar",t.result="";u!==0;)if(u=t.input.charCodeAt(++t.position),u===43||u===45)Jr===n?n=u===43?Ss:I1:A(t,"repeat of a chomping mode identifier");else if((h=q1(u))>=0)h===0?A(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?A(t,"repeat of an indentation width identifier"):(a=e+h-1,s=!0);else break;if(de(u)){do u=t.input.charCodeAt(++t.position);while(de(u));if(u===35)do u=t.input.charCodeAt(++t.position);while(!Mt(u)&&u!==0)}for(;u!==0;){for(to(t),t.lineIndent=0,u=t.input.charCodeAt(t.position);(!s||t.lineIndenta&&(a=t.lineIndent),Mt(u)){l++;continue}if(t.lineIndente)&&l!==0)A(t,"bad indentation of a sequence entry");else if(t.lineIndente)&&(k&&(s=t.line,a=t.lineStart,l=t.position),$e(t,e,cr,!0,n)&&(k?_=t.result:S=t.result),k||(Le(t,u,g,p,_,S,s,a,l),p=_=S=null),Q(t,!0,-1),T=t.input.charCodeAt(t.position)),(t.line===o||t.lineIndent>e)&&T!==0)A(t,"bad indentation of a mapping entry");else if(t.lineIndente?l=1:t.lineIndent===e?l=0:t.lineIndente?l=1:t.lineIndent===e?l=0:t.lineIndent tag; it should be "scalar", not "'+t.kind+'"'),u=0,g=t.implicitTypes.length;u"),t.result!==null&&_.kind!==t.kind&&A(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)):A(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||h}function J1(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&&(Q(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&&!mt(s);)s=t.input.charCodeAt(++t.position);for(r=t.input.slice(i,t.position),n=[],r.length<1&&A(t,"directive name must not be less than one character in length");s!==0;){for(;de(s);)s=t.input.charCodeAt(++t.position);if(s===35){do s=t.input.charCodeAt(++t.position);while(s!==0&&!Mt(s));break}if(Mt(s))break;for(i=t.position;s!==0&&!mt(s);)s=t.input.charCodeAt(++t.position);n.push(t.input.slice(i,t.position))}s!==0&&to(t),ne.call(Bs,r)?Bs[r](t,r,n):hr(t,'unknown document directive "'+r+'"')}if(Q(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,Q(t,!0,-1)):o&&A(t,"directives end mark is expected"),$e(t,t.lineIndent-1,cr,!1,!0),Q(t,!0,-1),t.checkLineBreaks&&D1.test(t.input.slice(e,t.position))&&hr(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&Ar(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,Q(t,!0,-1));return}if(t.position"u"&&(i=e,e=null);var r=Vl(t,i);if(typeof e!="function")return r;for(var n=0,o=r.length;nt.replace(/\r\n?/g,` +`).replace(/<(\w+)([^>]*)>/g,(e,i,r)=>"<"+i+r.replace(/="([^"]*)"/g,"='$1'")+">"),lb=t=>{const{text:e,metadata:i}=sb(t),{displayMode:r,title:n,config:o={}}=i;return r&&(o.gantt||(o.gantt={}),o.gantt.displayMode=r),{title:n,config:o,text:e}},cb=t=>{const e=Qe.detectInit(t)??{},i=Qe.detectDirective(t,"wrap");return Array.isArray(i)?e.wrap=i.some(({type:r})=>{}):(i==null?void 0:i.type)==="wrap"&&(e.wrap=!0),{text:H0(t),directive:e}};function hb(t){const e=ab(t),i=lb(e),r=cb(i.text),n=sl(i.config,r.directive);return t=mC(r.text),{code:t,title:i.title,config:n}}const ub=5e4,fb="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",db="sandbox",pb="loose",gb="http://www.w3.org/2000/svg",mb="http://www.w3.org/1999/xlink",_b="http://www.w3.org/1999/xhtml",yb="100%",Cb="100%",bb="border:0;margin:0;",xb="margin:0",Tb="allow-top-navigation-by-user-activation allow-popups",vb='The "iframe" tag is not supported by your browser.',Sb=["foreignobject"],kb=["dominant-baseline"];function Gl(t){const e=hb(t);return or(),p_(e.config??{}),e}async function wb(t,e){Zn(),t=Gl(t).code;try{await Jn(t)}catch(i){if(e!=null&&e.suppressErrors)return!1;throw i}return!0}const Bb=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},Lb=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},As=(t,e,i=[])=>` +.${t} ${e} { ${i.join(" !important; ")} !important; }`,Fb=(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}}`),!Xr(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];Xr(c.styles)||a.forEach(h=>{r+=As(c.id,h,c.styles)}),Xr(c.textStyles)||(r+=As(c.id,"tspan",c.textStyles))}}return r},Ab=(t,e,i,r)=>{const n=Fb(t,i),o=Zy(e,n,t.themeVariables);return pn(Um(`${r}{${o}}`),Vm)},Eb=(t="",e,i)=>{let r=t;return!i&&!e&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=Lb(r),r=r.replace(/
    /g,"
    "),r},Ob=(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":Cb,o=btoa(''+t+"");return``},Es=(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",gb);return n&&s.attr("xmlns:xlink",n),s.append("g"),t};function Os(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const Mb=(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()},Ib=async function(t,e,i){var r,n,o,s,a,l;Zn();const c=Gl(e);e=c.code;const h=Lt();E.debug(h),e.length>((h==null?void 0:h.maxTextSize)??ub)&&(e=fb);const u="#"+t,g="i"+t,p="#"+g,_="d"+t,S="#"+_;let k=bt("body");const P=h.securityLevel===db,T=h.securityLevel===pb,q=h.fontFamily;if(i!==void 0){if(i&&(i.innerHTML=""),P){const x=Os(bt(i),g);k=bt(x.nodes()[0].contentDocument.body),k.node().style.margin=0}else k=bt(i);Es(k,t,_,`font-family: ${q}`,mb)}else{if(Mb(document,t,_,g),P){const x=Os(bt("body"),g);k=bt(x.nodes()[0].contentDocument.body),k.node().style.margin=0}else k=bt("body");Es(k,t,_)}e=Bb(e);let H,Y;try{H=await Jn(e,{title:c.title})}catch(x){H=new Il("error"),Y=x}const X=k.select(S).node(),W=H.type,Gt=X.firstChild,Xt=Gt.firstChild,j=(n=(r=H.renderer).getClasses)==null?void 0:n.call(r,e,H),z=Ab(h,W,j,u),vt=document.createElement("style");vt.innerHTML=z,Gt.insertBefore(vt,Xt);try{await H.renderer.draw(e,t,bs,H)}catch(x){throw Ay.draw(e,t,bs),x}const Kt=k.select(`${S} svg`),M=(s=(o=H.db).getAccTitle)==null?void 0:s.call(o),v=(l=(a=H.db).getAccDescription)==null?void 0:l.call(a);Db(W,Kt,M,v),k.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",_b);let y=k.select(S).node().innerHTML;if(E.debug("config.arrowMarkerAbsolute",h.arrowMarkerAbsolute),y=Eb(y,P,Ka(h.arrowMarkerAbsolute)),P){const x=k.select(S+" svg").node();y=Ob(y,x)}else T||(y=Ji.sanitize(y,{ADD_TAGS:Sb,ADD_ATTR:kb}));if(fC(),Y)throw Y;const b=bt(P?p:S).node();return b&&"remove"in b&&b.remove(),{svg:y,bindFunctions:H.db.bindFunctions}};function $b(t={}){var e;t!=null&&t.fontFamily&&!((e=t.themeVariables)!=null&&e.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),u_(t),t!=null&&t.theme&&t.theme in Ut?t.themeVariables=Ut[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=Ut.default.getThemeVariables(t.themeVariables));const i=typeof t=="object"?h_(t):ll();zn(i.logLevel),Zn()}function Db(t,e,i,r){pC(e,t),gC(e,i,r,e.attr("id"))}const me=Object.freeze({render:Ib,parse:wb,getDiagramFromText:Jn,initialize:$b,getConfig:Lt,setConfig:d_,getSiteConfig:ll,updateSiteConfig:f_,reset:()=>{or()},globalReset:()=>{or(hi)},defaultConfig:hi});zn(Lt().logLevel);or(Lt());const Nb=async()=>{E.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries(Me).map(async([i,{detector:r,loader:n}])=>{if(n)try{Kn(i)}catch{try{const{diagram:s,id:a}=await n();ar(a,s,r)}catch(s){throw E.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){E.error(`Failed to load ${e.length} external diagrams`);for(const i of e)E.error(i);throw new Error(`Failed to load ${e.length} external diagrams`)}},Rb=(t,e,i)=>{E.warn(t),ol(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}))},Xl=async function(t={querySelector:".mermaid"}){try{await Pb(t)}catch(e){if(ol(e)&&E.error(e.str),Ft.parseError&&Ft.parseError(e),!t.suppressErrors)throw E.error("Use the suppressErrors option to suppress these errors"),e}},Pb=async function({postRenderCallback:t,querySelector:e,nodes:i}={querySelector:".mermaid"}){const r=me.getConfig();E.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");E.debug(`Found ${n.length} diagrams`),(r==null?void 0:r.startOnLoad)!==void 0&&(E.debug("Start On Load: "+(r==null?void 0:r.startOnLoad)),me.updateSiteConfig({startOnLoad:r==null?void 0:r.startOnLoad}));const o=new Qe.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed);let s;const a=[];for(const l of Array.from(n)){E.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=cc(Qe.entityDecode(s)).trim().replace(//gi,"
    ");const h=Qe.detectInit(s);h&&E.debug("Detected early reinit: ",h);try{const{svg:u,bindFunctions:g}=await Ql(c,s,l);l.innerHTML=u,t&&await t(c),g&&g(l)}catch(u){Rb(u,a,Ft.parseError)}}if(a.length>0)throw a[0]},Kl=function(t){me.initialize(t)},qb=async function(t,e,i){E.warn("mermaid.init is deprecated. Please use run instead."),t&&Kl(t);const r={postRenderCallback:i,querySelector:".mermaid"};typeof e=="string"?r.querySelector=e:e&&(e instanceof HTMLElement?r.nodes=[e]:r.nodes=e),await Xl(r)},zb=async(t,{lazyLoad:e=!0}={})=>{el(...t),e===!1&&await Nb()},Zl=function(){if(Ft.startOnLoad){const{startOnLoad:t}=me.getConfig();t&&Ft.run().catch(e=>E.error("Mermaid failed to initialize",e))}};if(typeof document<"u"){/*! + * Wait for document loaded before starting the execution + */window.addEventListener("load",Zl,!1)}const Wb=function(t){Ft.parseError=t},ur=[];let Qr=!1;const Jl=async()=>{if(!Qr){for(Qr=!0;ur.length>0;){const t=ur.shift();if(t)try{await t()}catch(e){E.error("Error executing queue",e)}}Qr=!1}},Hb=async(t,e)=>new Promise((i,r)=>{const n=()=>new Promise((o,s)=>{me.parse(t,e).then(a=>{o(a),i(a)},a=>{var l;E.error("Error parsing",a),(l=Ft.parseError)==null||l.call(Ft,a),s(a),r(a)})});ur.push(n),Jl().catch(r)}),Ql=(t,e,i)=>new Promise((r,n)=>{const o=()=>new Promise((s,a)=>{me.render(t,e,i).then(l=>{s(l),r(l)},l=>{var c;E.error("Error parsing",l),(c=Ft.parseError)==null||c.call(Ft,l),a(l),n(l)})});ur.push(o),Jl().catch(n)}),Ft={startOnLoad:!0,mermaidAPI:me,parse:Hb,render:Ql,init:qb,run:Xl,registerExternalDiagrams:zb,initialize:Kl,parseError:void 0,contentLoaded:Zl,setParseErrorHandler:Wb,detectType:Lr},lx=Object.freeze(Object.defineProperty({__proto__:null,default:Ft},Symbol.toStringTag,{value:"Module"}));export{yr as $,mi as A,De as B,ir as C,_e as D,Tr as E,lm as F,Jm as G,gi as H,er as I,km as J,mm as K,im as L,qa as M,Ma as N,Qp as O,tg as P,c0 as Q,as as R,Qi as S,Xg as T,eg as U,Nn as V,Zp as W,sg as X,Ne as Y,em as Z,oe as _,iC as a,F0 as a$,is as a0,Rn as a1,$a as a2,Pa as a3,Wa as a4,Xp as a5,Dt as a6,wm as a7,Bm as a8,Dn as a9,Zs as aA,Ub as aB,hc as aC,uc as aD,dc as aE,wn as aF,ee as aG,ri as aH,Eo as aI,uu as aJ,ky as aK,Qb as aL,$0 as aM,sl as aN,Un as aO,An as aP,Gb as aQ,Zb as aR,Ro as aS,No as aT,Jb as aU,Kb as aV,Yb as aW,Vb as aX,ex as aY,tx as aZ,Xb as a_,_n as aa,dg as ab,_m as ac,$n as ad,Xr as ae,Am as af,yt as ag,Vs as ah,xc as ai,I as aj,It as ak,vg as al,Ke as am,Lb as an,Of as ao,cc as ap,d_ as aq,ix as ar,Ml as as,cC as at,e_ as au,kn as av,Gs as aw,gt as ax,di as ay,nu as az,eC as b,ax as b0,P0 as b1,Q0 as b2,oC as b3,pi as b4,F as b5,O as b6,lx as b7,Lt as c,ci as d,at as e,nr as f,tC as g,bt as h,Bl as i,Wn as j,s_ as k,E as l,Is as m,kr as n,Ff as o,J0 as p,Ka as q,U0 as r,Qy as s,Ly as t,hi as u,rC as v,n_ as w,nC as x,Qe as y,Jy as z}; diff --git a/assets/mindmap-definition-7f612c4b-07efdd04.js b/assets/mindmap-definition-7f612c4b-07efdd04.js new file mode 100644 index 000000000..ef65c3867 --- /dev/null +++ b/assets/mindmap-definition-7f612c4b-07efdd04.js @@ -0,0 +1,109 @@ +import{aC as Da,aD as _u,d as Ep,c as sn,l as qr,h as ti,t as wp,b4 as xp,b5 as Tp,b6 as Cp}from"./mermaid.core-d8bc71ff.js";import{c as Dp}from"./createText-80c3befb-7196e989.js";import"./app-d2f9e1e0.js";var Uu={exports:{}};(function(pe,le){(function(ee,ce){pe.exports=ce()})(Da,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 ce(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function H(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,a=new Array(e);r"u"?null:window,$=D?D.navigator:null;D&&D.document;var _=ee(""),Q=ee({}),ne=ee(function(){}),oe=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!de(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},V=function(e){return e!=null&&ee(e)===Q},I=function(e){return e!=null&&ee(e)===ee(1)&&!isNaN(e)},W=function(e){return I(e)&&Math.floor(e)===e},fe=function(e){if(oe!=="undefined")return e!=null&&e instanceof HTMLElement},de=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"},vt=function(e){return J(e)==="event"},Pe=function(e){return e==null?!0:!!(e===""||e.match(/^\s+$/))},Ve=function(e){return typeof HTMLElement>"u"?!1:e instanceof HTMLElement},Xe=function(e){return L(e)&&I(e.x1)&&I(e.x2)&&I(e.y1)&&I(e.y2)},rt=function(e){return V(e)&&Y(e.then)},ft=function(){return $&&$.userAgent.match(/msie|trident|edge/i)},at=function(e,r){r||(r=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var i=[],s=0;sr?1:0},ju=function(e,r){return-1*ji(e,r)},Ue=Object.assign!=null?Object.assign.bind(Object):function(t){for(var e=arguments,r=1;r1&&(y-=1),y<1/6?v+(p-v)*6*y:y<1/2?p:y<2/3?v+(p-v)*(2/3-y)*6:v}var h=new RegExp("^"+un+"$").exec(e);if(h){if(a=parseInt(h[1]),a<0?a=(360- -1*a%360)%360:a>360&&(a=a%360),a/=360,n=parseFloat(h[2]),n<0||n>100||(n=n/100,i=parseFloat(h[3]),i<0||i>100)||(i=i/100,s=h[4],s!==void 0&&(s=parseFloat(s),s<0||s>1)))return;if(n===0)o=l=u=Math.round(i*255);else{var c=i<.5?i*(1+n):i+n-i*n,d=2*i-c;o=Math.round(255*f(d,c,a+1/3)),l=Math.round(255*f(d,c,a)),u=Math.round(255*f(d,c,a-1/3))}r=[o,l,u,s]}return r},rl=function(e){var r,a=new RegExp("^"+dr+"$").exec(e);if(a){r=[];for(var n=[],i=1;i<=3;i++){var s=a[i];if(s[s.length-1]==="%"&&(n[i]=!0),s=parseFloat(s),n[i]&&(s=s/100*255),s<0||s>255)return;r.push(Math.floor(s))}var o=n[1]||n[2]||n[3],l=n[1]&&n[2]&&n[3];if(o&&!l)return;var u=a[4];if(u!==void 0){if(u=parseFloat(u),u<0||u>1)return;r.push(u)}}return r},al=function(e){return il[e.toLowerCase()]},nl=function(e){return(te(e)?e:null)||al(e)||el(e)||rl(e)||tl(e)},il={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]},es=function(e){for(var r=e.map,a=e.keys,n=a.length,i=0;i=e||x<0||h&&R>=i}function g(){var A=ri();if(y(A))return m(A);o=setTimeout(g,p(A))}function m(A){return o=void 0,c&&a?d(A):(a=n=void 0,s)}function b(){o!==void 0&&clearTimeout(o),u=0,a=l=n=o=void 0}function E(){return o===void 0?s:m(ri())}function N(){var A=ri(),x=y(A);if(a=arguments,n=this,l=A,x){if(o===void 0)return v(l);if(h)return clearTimeout(o),o=setTimeout(g,e),d(l)}return o===void 0&&(o=setTimeout(g,e)),s}return N.cancel=b,N.flush=E,N}var fn=Ul,ai=D?D.performance:null,os=ai&&ai.now?function(){return ai.now()}:function(){return Date.now()},Yl=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(os())},1e3/60)}}(),hn=function(e){return Yl(e)},gr=os,Jr=9261,us=65599,Na=5381,ls=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jr,a=r,n;n=e.next(),!n.done;)a=a*us+n.value|0;return a},Ma=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jr;return r*us+e|0},Ia=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Na;return(r<<5)+r+e|0},Hl=function(e,r){return e*2097152+r},wr=function(e){return e[0]*2097152+e[1]},cn=function(e,r){return[Ma(e[0],r[0]),Ia(e[1],r[1])]},Xl=function(e,r){var a={value:0,done:!1},n=0,i=e.length,s={next:function(){return n=0&&!(e[n]===r&&(e.splice(n,1),a));n--);},si=function(e){e.splice(0,e.length)},jl=function(e,r){for(var a=0;a"u"?"undefined":ee(Set))!==tf?Set:rf,dn=function(e,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||r===void 0||!_e(e)){Tt("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"){Tt("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 s=r.renderedPosition,o=e.pan(),l=e.zoom();i.position={x:(s.x-o.x)/l,y:(s.y-o.y)/l}}var u=[];te(r.classes)?u=r.classes:j(r.classes)&&(u=r.classes.split(/\s+/));for(var f=0,h=u.length;fm?1:0},f=function(g,m,b,E,N){var A;if(b==null&&(b=0),N==null&&(N=a),b<0)throw new Error("lo must be non-negative");for(E==null&&(E=g.length);bB;0<=B?C++:C--)R.push(C);return R}).apply(this).reverse(),x=[],E=0,N=A.length;Ez;0<=z?++R:--R)M.push(s(g,b));return M},p=function(g,m,b,E){var N,A,x;for(E==null&&(E=a),N=g[b];b>m;){if(x=b-1>>1,A=g[x],E(N,A)<0){g[b]=A,b=x;continue}break}return g[b]=N},y=function(g,m,b){var E,N,A,x,R;for(b==null&&(b=a),N=g.length,R=m,A=g[m],E=2*m+1;E0;){var A=m.pop(),x=y(A),R=A.id();if(c[R]=x,x!==1/0)for(var C=A.neighborhood().intersect(v),B=0;B0)for(ie.unshift(Z);h[ge];){var se=h[ge];ie.unshift(se.edge),ie.unshift(se.node),ue=se.node,ge=ue.id()}return o.spawn(ie)}}}},of={kruskal:function(e){e=e||function(b){return 1};for(var r=this.byGroup(),a=r.nodes,n=r.edges,i=a.length,s=new Array(i),o=a,l=function(E){for(var N=0;N0;){if(N(),x++,E===f){for(var R=[],C=i,B=f,z=g[B];R.unshift(C),z!=null&&R.unshift(z),C=y[B],C!=null;)B=C.id(),z=g[B];return{found:!0,distance:h[E],path:this.spawn(R),steps:x}}d[E]=!0;for(var M=b._private.edges,X=0;Xz&&(v[B]=z,m[B]=C,b[B]=N),!i){var M=C*f+R;!i&&v[M]>z&&(v[M]=z,m[M]=R,b[M]=N)}}}for(var X=0;X1&&arguments[1]!==void 0?arguments[1]:s,je=b(ke),Ze=[],Ye=je;;){if(Ye==null)return r.spawn();var ct=m(Ye),De=ct.edge,k=ct.pred;if(Ze.unshift(Ye[0]),Ye.same(ze)&&Ze.length>0)break;De!=null&&Ze.unshift(De),Ye=k}return l.spawn(Ze)},A=0;A=0;f--){var h=u[f],c=h[1],d=h[2];(r[c]===o&&r[d]===l||r[c]===l&&r[d]===o)&&u.splice(f,1)}for(var v=0;vn;){var i=Math.floor(Math.random()*r.length);r=gf(i,e,r),a--}return r},pf={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,s=n.length,o=Math.ceil(Math.pow(Math.log(i)/Math.LN2,2)),l=Math.floor(i/df);if(i<2){Tt("At least 2 nodes are required for Karger-Stein algorithm");return}for(var u=[],f=0;f1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=1/0,i=r;i1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=-1/0,i=r;i1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=0,i=0,s=r;s1&&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,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;n?e=e.slice(r,a):(a0&&e.splice(0,r));for(var o=0,l=e.length-1;l>=0;l--){var u=e[l];s?isFinite(u)||(e[l]=-1/0,o++):e.splice(l,1)}i&&e.sort(function(c,d){return c-d});var f=e.length,h=Math.floor(f/2);return f%2!==0?e[h+1+o]:(e[h-1+o]+e[h+o])/2},xf=function(e){return Math.PI*e/180},pn=function(e,r){return Math.atan2(r,e)-Math.PI/2},ui=Math.log2||function(t){return Math.log(t)/Math.log(2)},bs=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},Tf=function(e){for(var r=e.length,a=0,n=0;n=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}}},Df=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},Sf=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},Lf=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},Af=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},yn=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,s;if(r.length===1)a=n=i=s=r[0];else if(r.length===2)a=i=r[0],s=n=r[1];else if(r.length===4){var o=w(r,4);a=o[0],n=o[1],i=o[2],s=o[3]}return e.x1-=s,e.x2+=n,e.y1-=a,e.y2+=i,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},Es=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},fi=function(e,r){return!(e.x1>r.x2||r.x1>e.x2||e.x2r.y2||r.y1>e.y2)},ra=function(e,r,a){return e.x1<=r&&r<=e.x2&&e.y1<=a&&a<=e.y2},Of=function(e,r){return ra(e,r.x,r.y)},ws=function(e,r){return ra(e,r.x1,r.y1)&&ra(e,r.x2,r.y2)},xs=function(e,r,a,n,i,s,o){var l=za(i,s),u=i/2,f=s/2,h;{var c=a-u+l-o,d=n-f-o,v=a+u-l+o,p=d;if(h=Cr(e,r,a,n,c,d,v,p,!1),h.length>0)return h}{var y=a+u+o,g=n-f+l-o,m=y,b=n+f-l+o;if(h=Cr(e,r,a,n,y,g,m,b,!1),h.length>0)return h}{var E=a-u+l-o,N=n+f+o,A=a+u-l+o,x=N;if(h=Cr(e,r,a,n,E,N,A,x,!1),h.length>0)return h}{var R=a-u-o,C=n-f+l-o,B=R,z=n+f-l+o;if(h=Cr(e,r,a,n,R,C,B,z,!1),h.length>0)return h}var M;{var X=a-u+l,F=n-f+l;if(M=Ba(e,r,a,n,X,F,l+o),M.length>0&&M[0]<=X&&M[1]<=F)return[M[0],M[1]]}{var re=a+u-l,q=n-f+l;if(M=Ba(e,r,a,n,re,q,l+o),M.length>0&&M[0]>=re&&M[1]<=q)return[M[0],M[1]]}{var Z=a+u-l,ie=n+f-l;if(M=Ba(e,r,a,n,Z,ie,l+o),M.length>0&&M[0]>=Z&&M[1]>=ie)return[M[0],M[1]]}{var ue=a-u+l,ge=n+f-l;if(M=Ba(e,r,a,n,ue,ge,l+o),M.length>0&&M[0]<=ue&&M[1]>=ge)return[M[0],M[1]]}return[]},Nf=function(e,r,a,n,i,s,o){var l=o,u=Math.min(a,i),f=Math.max(a,i),h=Math.min(n,s),c=Math.max(n,s);return u-l<=e&&e<=f+l&&h-l<=r&&r<=c+l},Mf=function(e,r,a,n,i,s,o,l,u){var f={x1:Math.min(a,o,i)-u,x2:Math.max(a,o,i)+u,y1:Math.min(n,l,s)-u,y2:Math.max(n,l,s)+u};return!(ef.x2||rf.y2)},If=function(e,r,a,n){a-=n;var i=r*r-4*e*a;if(i<0)return[];var s=Math.sqrt(i),o=2*e,l=(-r+s)/o,u=(-r-s)/o;return[l,u]},Rf=function(e,r,a,n,i){var s=1e-5;e===0&&(e=s),r/=e,a/=e,n/=e;var o,l,u,f,h,c,d,v;if(l=(3*a-r*r)/9,u=-(27*n)+r*(9*a-2*(r*r)),u/=54,o=l*l*l+u*u,i[1]=0,d=r/3,o>0){h=u+Math.sqrt(o),h=h<0?-Math.pow(-h,1/3):Math.pow(h,1/3),c=u-Math.sqrt(o),c=c<0?-Math.pow(-c,1/3):Math.pow(c,1/3),i[0]=-d+h+c,d+=(h+c)/2,i[4]=i[2]=-d,d=Math.sqrt(3)*(-c+h)/2,i[3]=d,i[5]=-d;return}if(i[5]=i[3]=0,o===0){v=u<0?-Math.pow(-u,1/3):Math.pow(u,1/3),i[0]=-d+2*v,i[4]=i[2]=-(v+d);return}l=-l,f=l*l*l,f=Math.acos(u/Math.sqrt(f)),v=2*Math.sqrt(l),i[0]=-d+v*Math.cos(f/3),i[2]=-d+v*Math.cos((f+2*Math.PI)/3),i[4]=-d+v*Math.cos((f+4*Math.PI)/3)},kf=function(e,r,a,n,i,s,o,l){var u=1*a*a-4*a*i+2*a*o+4*i*i-4*i*o+o*o+n*n-4*n*s+2*n*l+4*s*s-4*s*l+l*l,f=1*9*a*i-3*a*a-3*a*o-6*i*i+3*i*o+9*n*s-3*n*n-3*n*l-6*s*s+3*s*l,h=1*3*a*a-6*a*i+a*o-a*e+2*i*i+2*i*e-o*e+3*n*n-6*n*s+n*l-n*r+2*s*s+2*s*r-l*r,c=1*a*i-a*a+a*e-i*e+n*s-n*n+n*r-s*r,d=[];Rf(u,f,h,c,d);for(var v=1e-7,p=[],y=0;y<6;y+=2)Math.abs(d[y+1])=0&&d[y]<=1&&p.push(d[y]);p.push(1),p.push(0);for(var g=-1,m,b,E,N=0;N=0?Eu?(e-i)*(e-i)+(r-s)*(r-s):f-c},Ht=function(e,r,a){for(var n,i,s,o,l,u=0,f=0;f=e&&e>=s||n<=e&&e<=s)l=(e-n)/(s-n)*(o-i)+i,l>r&&u++;else continue;return u%2!==0},pr=function(e,r,a,n,i,s,o,l,u){var f=new Array(a.length),h;l[0]!=null?(h=Math.atan(l[1]/l[0]),l[0]<0?h=h+Math.PI/2:h=-h-Math.PI/2):h=l;for(var c=Math.cos(-h),d=Math.sin(-h),v=0;v0){var y=Cs(f,-u);p=Ts(y)}else p=f;return Ht(e,r,p)},Bf=function(e,r,a,n,i,s,o){for(var l=new Array(a.length),u=s/2,f=o/2,h=vi(s,o),c=h*h,d=0;d=0&&y<=1&&m.push(y),g>=0&&g<=1&&m.push(g),m.length===0)return[];var b=m[0]*l[0]+e,E=m[0]*l[1]+r;if(m.length>1){if(m[0]==m[1])return[b,E];var N=m[1]*l[0]+e,A=m[1]*l[1]+r;return[b,E,N,A]}else return[b,E]},hi=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,s,o,l,u){var f=e-i,h=a-e,c=o-i,d=r-s,v=n-r,p=l-s,y=c*d-p*f,g=h*d-v*f,m=p*h-c*v;if(m!==0){var b=y/m,E=g/m,N=.001,A=0-N,x=1+N;return A<=b&&b<=x&&A<=E&&E<=x?[e+b*h,r+b*v]:u?[e+b*h,r+b*v]:[]}else return y===0||g===0?hi(e,a,o)===o?[o,l]:hi(e,a,i)===i?[i,s]:hi(i,o,a)===a?[a,n]:[]:[]},Fa=function(e,r,a,n,i,s,o,l){var u=[],f,h=new Array(a.length),c=!0;s==null&&(c=!1);var d;if(c){for(var v=0;v0){var p=Cs(h,-l);d=Ts(p)}else d=h}else d=a;for(var y,g,m,b,E=0;E2){for(var q=[u[0],u[1]],Z=Math.pow(q[0]-e,2)+Math.pow(q[1]-r,2),ie=1;ief&&(f=E)},get:function(b){return u[b]}},c=0;c0?q=re.edgesTo(F)[0]:q=F.edgesTo(re)[0];var Z=n(q);F=F.id(),R[F]>R[M]+Z&&(R[F]=R[M]+Z,C.nodes.indexOf(F)<0?C.push(F):C.updateItem(F),x[F]=0,A[F]=[]),R[F]==R[M]+Z&&(x[F]=x[F]+x[M],A[F].push(M))}else for(var ie=0;ie0;){for(var ve=N.pop(),ye=0;ye0&&o.push(a[l]);o.length!==0&&i.push(n.collection(o))}return i},Jf=function(e,r){for(var a=0;a5&&arguments[5]!==void 0?arguments[5]:th,o=n,l,u,f=0;f=2?Ga(e,r,a,0,Rs,rh):Ga(e,r,a,0,Is)},squaredEuclidean:function(e,r,a){return Ga(e,r,a,0,Rs)},manhattan:function(e,r,a){return Ga(e,r,a,0,Is)},max:function(e,r,a){return Ga(e,r,a,-1/0,ah)}};ia["squared-euclidean"]=ia.squaredEuclidean,ia.squaredeuclidean=ia.squaredEuclidean;function bn(t,e,r,a,n,i){var s;return Y(t)?s=t:s=ia[t]||ia.euclidean,e===0&&Y(t)?s(n,i):s(e,r,a,n,i)}var nh=At({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),pi=function(e){return nh(e)},En=function(e,r,a,n,i){var s=i!=="kMedoids",o=s?function(h){return a[h]}:function(h){return n[h](a)},l=function(c){return n[c](r)},u=a,f=r;return bn(e,n.length,o,l,u,f)},yi=function(e,r,a){for(var n=a.length,i=new Array(n),s=new Array(n),o=new Array(r),l=null,u=0;ua)return!1}return!0},oh=function(e,r,a){for(var n=0;no&&(o=r[u][f],l=f);i[l].push(e[u])}for(var h=0;h=i.threshold||i.mode==="dendrogram"&&e.length===1)return!1;var v=r[s],p=r[n[s]],y;i.mode==="dendrogram"?y={left:v,right:p,key:v.key}:y={value:v.value.concat(p.value),key:v.key},e[v.index]=y,e.splice(p.index,1),r[v.key]=y;for(var g=0;ga[p.key][m.key]&&(l=a[p.key][m.key])):i.linkage==="max"?(l=a[v.key][m.key],a[v.key][m.key]0&&n.push(i);return n},$s=function(e,r,a){for(var n=[],i=0;io&&(s=u,o=r[i*e+u])}s>0&&n.push(s)}for(var f=0;fu&&(l=f,u=h)}a[i]=s[l]}return n=$s(e,r,a),n},_s=function(e){for(var r=this.cy(),a=this.nodes(),n=wh(e),i={},s=0;s=z?(M=z,z=F,X=re):F>M&&(M=F);for(var q=0;q0?1:0;x[C%n.minIterations*o+ve]=ye,se+=ye}if(se>0&&(C>=n.minIterations-1||C==n.maxIterations-1)){for(var Te=0,be=0;be1||A>1)&&(o=!0),h[b]=[],m.outgoers().forEach(function(R){R.isEdge()&&h[b].push(R.id())})}else c[b]=[void 0,m.target().id()]}):s.forEach(function(m){var b=m.id();if(m.isNode()){var E=m.degree(!0);E%2&&(l?u?o=!0:u=b:l=b),h[b]=[],m.connectedEdges().forEach(function(N){return h[b].push(N.id())})}else c[b]=[m.source().id(),m.target().id()]});var d={found:!1,trail:void 0};if(o)return d;if(u&&l)if(i){if(f&&u!=f)return d;f=u}else{if(f&&u!=f&&l!=f)return d;f||(f=u)}else f||(f=s[0].id());var v=function(b){for(var E=b,N=[b],A,x,R;h[E].length;)A=h[E].shift(),x=c[A][0],R=c[A][1],E!=R?(h[R]=h[R].filter(function(C){return C!=A}),E=R):!i&&E!=x&&(h[x]=h[x].filter(function(C){return C!=A}),E=x),N.unshift(A),N.unshift(E);return N},p=[],y=[];for(y=v(f);y.length!=1;)h[y[0]].length==0?(p.unshift(s.getElementById(y.shift())),p.unshift(s.getElementById(y.shift()))):y=v(y.shift()).concat(y);p.unshift(s.getElementById(y.shift()));for(var g in h)if(h[g].length)return d;return d.found=!0,d.trail=this.spawn(p,!0),d}},xn=function(){var e=this,r={},a=0,n=0,i=[],s=[],o={},l=function(c,d){for(var v=s.length-1,p=[],y=e.spawn();s[v].x!=c||s[v].y!=d;)p.push(s.pop().edge),v--;p.push(s.pop().edge),p.forEach(function(g){var m=g.connectedNodes().intersection(e);y.merge(g),m.forEach(function(b){var E=b.id(),N=b.connectedEdges().intersection(e);y.merge(b),r[E].cutVertex?y.merge(N.filter(function(A){return A.isLoop()})):y.merge(N)})}),i.push(y)},u=function h(c,d,v){c===v&&(n+=1),r[d]={id:a,low:a++,cutVertex:!1};var p=e.getElementById(d).connectedEdges().intersection(e);if(p.size()===0)i.push(e.spawn(e.getElementById(d)));else{var y,g,m,b;p.forEach(function(E){y=E.source().id(),g=E.target().id(),m=y===d?g:y,m!==v&&(b=E.id(),o[b]||(o[b]=!0,s.push({x:d,y:m,edge:E})),m in r?r[d].low=Math.min(r[d].low,r[m].id):(h(c,m,d),r[d].low=Math.min(r[d].low,r[m].low),r[d].id<=r[m].low&&(r[d].cutVertex=!0,l(d,m))))})}};e.forEach(function(h){if(h.isNode()){var c=h.id();c in r||(n=0,u(c,c),r[c].cutVertex=n>1)}});var f=Object.keys(r).filter(function(h){return r[h].cutVertex}).map(function(h){return e.getElementById(h)});return{cut:e.spawn(f),components:i}},Oh={hopcroftTarjanBiconnected:xn,htbc:xn,htb:xn,hopcroftTarjanBiconnectedComponents:xn},Tn=function(){var e=this,r={},a=0,n=[],i=[],s=e.spawn(e),o=function l(u){i.push(u),r[u]={index:a,low:a++,explored:!1};var f=e.getElementById(u).connectedEdges().intersection(e);if(f.forEach(function(p){var y=p.target().id();y!==u&&(y in r||l(y),r[y].explored||(r[u].low=Math.min(r[u].low,r[y].low)))}),r[u].index===r[u].low){for(var h=e.spawn();;){var c=i.pop();if(h.merge(e.getElementById(c)),r[c].low=r[u].index,r[c].explored=!0,c===u)break}var d=h.edgesWith(h),v=h.merge(d);n.push(v),s=s.difference(v)}};return e.forEach(function(l){if(l.isNode()){var u=l.id();u in r||o(u)}}),{cut:s,components:n}},Nh={tarjanStronglyConnected:Tn,tsc:Tn,tscc:Tn,tarjanStronglyConnectedComponents:Tn},Us={};[Ra,sf,of,lf,hf,vf,pf,$f,aa,na,gi,eh,vh,bh,Sh,Ah,Oh,Nh].forEach(function(t){Ue(Us,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 Ys=0,Hs=1,Xs=2,yr=function t(e){if(!(this instanceof t))return new t(e);this.id="Thenable/1.0.7",this.state=Ys,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 Ws(this,Hs,"fulfillValue",e)},reject:function(e){return Ws(this,Xs,"rejectReason",e)},then:function(e,r){var a=this,n=new yr;return a.onFulfilled.push(Zs(e,n,"fulfill")),a.onRejected.push(Zs(r,n,"reject")),qs(a),n.proxy}};var Ws=function(e,r,a,n){return e.state===Ys&&(e.state=r,e[a]=n,qs(e)),e},qs=function(e){e.state===Hs?Ks(e,"onFulfilled",e.fulfillValue):e.state===Xs&&Ks(e,"onRejected",e.rejectReason)},Ks=function(e,r,a){if(e[r].length!==0){var n=e[r];e[r]=[];var i=function(){for(var o=0;o0}},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 s=0;s-1}var Fc=Bc;function zc(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 Gc=zc;function ua(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t0&&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=[],s=0,o=a.length;s0&&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 nt={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:dt,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};nt.variable="(?:[\\w-.]|(?:\\\\"+nt.metaChar+"))+",nt.className="(?:[\\w-]|(?:\\\\"+nt.metaChar+"))+",nt.value=nt.string+"|"+nt.number,nt.id=nt.variable,function(){var t,e,r;for(t=nt.comparatorOp.split("|"),r=0;r=0)&&e!=="="&&(nt.comparatorOp+="|\\!"+e)}();var pt=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},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 ju(t.selector,e.selector)}),Uv=function(){for(var t={},e,r=0;r0&&f.edgeCount>0)return ut("The selector `"+e+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(f.edgeCount>1)return ut("The selector `"+e+"` is invalid because it uses multiple edge selectors"),!1;f.edgeCount===1&&ut("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},Kv=function(){if(this.toStringCache!=null)return this.toStringCache;for(var e=function(f){return f??""},r=function(f){return j(f)?'"'+f+'"':e(f)},a=function(f){return" "+f+" "},n=function(f,h){var c=f.type,d=f.value;switch(c){case Be.GROUP:{var v=e(d);return v.substring(0,v.length-1)}case Be.DATA_COMPARE:{var p=f.field,y=f.operator;return"["+p+a(e(y))+r(d)+"]"}case Be.DATA_BOOL:{var g=f.operator,m=f.field;return"["+e(g)+m+"]"}case Be.DATA_EXIST:{var b=f.field;return"["+b+"]"}case Be.META_COMPARE:{var E=f.operator,N=f.field;return"[["+N+a(e(E))+r(d)+"]]"}case Be.STATE:return d;case Be.ID:return"#"+d;case Be.CLASS:return"."+d;case Be.PARENT:case Be.CHILD:return i(f.parent,h)+a(">")+i(f.child,h);case Be.ANCESTOR:case Be.DESCENDANT:return i(f.ancestor,h)+" "+i(f.descendant,h);case Be.COMPOUND_SPLIT:{var A=i(f.left,h),x=i(f.subject,h),R=i(f.right,h);return A+(A.length>0?" ":"")+x+R}case Be.TRUE:return""}},i=function(f,h){return f.checks.reduce(function(c,d,v){return c+(h===f&&v===0?"$":"")+n(d,h)},"")},s="",o=0;o1&&o=0&&(r=r.replace("!",""),h=!0),r.indexOf("@")>=0&&(r=r.replace("@",""),f=!0),(i||o||f)&&(l=!i&&!s?"":""+e,u=""+a),f&&(e=l=l.toLowerCase(),a=u=u.toLowerCase()),r){case"*=":n=l.indexOf(u)>=0;break;case"$=":n=l.indexOf(u,l.length-u.length)>=0;break;case"^=":n=l.indexOf(u)===0;break;case"=":n=e===a;break;case">":c=!0,n=e>a;break;case">=":c=!0,n=e>=a;break;case"<":c=!0,n=e0;){var f=n.shift();e(f),i.add(f.id()),o&&a(n,i,f)}return t}function fo(t,e,r){if(r.isParent())for(var a=r._private.children,n=0;n1&&arguments[1]!==void 0?arguments[1]:!0;return Si(this,t,e,fo)};function ho(t,e,r){if(r.isChild()){var a=r._private.parent;e.has(a.id())||t.push(a)}}ha.forEachUp=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Si(this,t,e,ho)};function ad(t,e,r){ho(t,e,r),fo(t,e,r)}ha.forEachUpAndDown=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Si(this,t,e,ad)},ha.ancestors=ha.parents;var $a,co;$a=co={data:ht.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:ht.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:ht.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:ht.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:ht.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:ht.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 nd=co,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,s=0;se}),minIndegree:ca("indegree",function(t,e){return te}),minOutdegree:ca("outdegree",function(t,e){return te})}),Ue(An,{totalDegree:function(e){for(var r=0,a=this.nodes(),n=0;n0,c=h;h&&(f=f[0]);var d=c?f.position():{x:0,y:0};r!==void 0?u.position(e,r+d[e]):i!==void 0&&u.position({x:i.x+d.x,y:i.y+d.y})}else{var v=a.position(),p=o?a.parent():null,y=p&&p.length>0,g=y;y&&(p=p[0]);var m=g?p.position():{x:0,y:0};return i={x:v.x-m.x,y:v.y-m.y},e===void 0?i:i[e]}else if(!s)return;return this}},rr.modelPosition=rr.point=rr.position,rr.modelPositions=rr.points=rr.positions,rr.renderedPoint=rr.renderedPosition,rr.relativePoint=rr.relativePosition;var id=vo,va,Or;va=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,s=e.x2*a+n.x,o=e.y1*a+n.y,l=e.y2*a+n.y;return{x1:i,x2:s,y1:o,y2:l,w:s-i,h:l-o}},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(s){if(!s.isParent())return;var o=s._private,l=s.children(),u=s.pstyle("compound-sizing-wrt-labels").value==="include",f={width:{val:s.pstyle("min-width").pfValue,left:s.pstyle("min-width-bias-left"),right:s.pstyle("min-width-bias-right")},height:{val:s.pstyle("min-height").pfValue,top:s.pstyle("min-height-bias-top"),bottom:s.pstyle("min-height-bias-bottom")}},h=l.boundingBox({includeLabels:u,includeOverlays:!1,useCache:!1}),c=o.position;(h.w===0||h.h===0)&&(h={w:s.pstyle("width").pfValue,h:s.pstyle("height").pfValue},h.x1=c.x-h.w/2,h.x2=c.x+h.w/2,h.y1=c.y-h.h/2,h.y2=c.y+h.h/2);function d(C,B,z){var M=0,X=0,F=B+z;return C>0&&F>0&&(M=B/F*C,X=z/F*C),{biasDiff:M,biasComplementDiff:X}}function v(C,B,z,M){if(z.units==="%")switch(M){case"width":return C>0?z.pfValue*C:0;case"height":return B>0?z.pfValue*B:0;case"average":return C>0&&B>0?z.pfValue*(C+B)/2:0;case"min":return C>0&&B>0?C>B?z.pfValue*B:z.pfValue*C:0;case"max":return C>0&&B>0?C>B?z.pfValue*C:z.pfValue*B:0;default:return 0}else return z.units==="px"?z.pfValue:0}var p=f.width.left.value;f.width.left.units==="px"&&f.width.val>0&&(p=p*100/f.width.val);var y=f.width.right.value;f.width.right.units==="px"&&f.width.val>0&&(y=y*100/f.width.val);var g=f.height.top.value;f.height.top.units==="px"&&f.height.val>0&&(g=g*100/f.height.val);var m=f.height.bottom.value;f.height.bottom.units==="px"&&f.height.val>0&&(m=m*100/f.height.val);var b=d(f.width.val-h.w,p,y),E=b.biasDiff,N=b.biasComplementDiff,A=d(f.height.val-h.h,g,m),x=A.biasDiff,R=A.biasComplementDiff;o.autoPadding=v(h.w,h.h,s.pstyle("padding"),s.pstyle("padding-relative-to").value),o.autoWidth=Math.max(h.w,f.width.val),c.x=(-E+h.x1+h.x2+N)/2,o.autoHeight=Math.max(h.h,f.height.val),c.y=(-x+h.y1+h.y2+R)/2}for(var a=0;ae.x2?n:e.x2,e.y1=ae.y2?i:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},Vr=function(e,r){return r==null?e:ar(e,r.x1,r.y1,r.x2,r.y2)},_a=function(e,r,a){return tr(e,r,a)},On=function(e,r,a){if(!r.cy().headless()){var n=r._private,i=n.rstyle,s=i.arrowWidth/2,o=r.pstyle(a+"-arrow-shape").value,l,u;if(o!=="none"){a==="source"?(l=i.srcX,u=i.srcY):a==="target"?(l=i.tgtX,u=i.tgtY):(l=i.midX,u=i.midY);var f=n.arrowBounds=n.arrowBounds||{},h=f[a]=f[a]||{};h.x1=l-s,h.y1=u-s,h.x2=l+s,h.y2=u+s,h.w=h.x2-h.x1,h.h=h.y2-h.y1,yn(h,1),ar(e,h.x1,h.y1,h.x2,h.y2)}}},Ai=function(e,r,a){if(!r.cy().headless()){var n;a?n=a+"-":n="";var i=r._private,s=i.rstyle,o=r.pstyle(n+"label").strValue;if(o){var l=r.pstyle("text-halign"),u=r.pstyle("text-valign"),f=_a(s,"labelWidth",a),h=_a(s,"labelHeight",a),c=_a(s,"labelX",a),d=_a(s,"labelY",a),v=r.pstyle(n+"text-margin-x").pfValue,p=r.pstyle(n+"text-margin-y").pfValue,y=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,N=r.pstyle("text-background-padding").pfValue,A=2,x=h,R=f,C=R/2,B=x/2,z,M,X,F;if(y)z=c-C,M=c+C,X=d-B,F=d+B;else{switch(l.value){case"left":z=c-R,M=c;break;case"center":z=c-C,M=c+C;break;case"right":z=c,M=c+R;break}switch(u.value){case"top":X=d-x,F=d;break;case"center":X=d-B,F=d+B;break;case"bottom":X=d,F=d+x;break}}z+=v-Math.max(m,E)-N-A,M+=v+Math.max(m,E)+N+A,X+=p-Math.max(m,E)-N-A,F+=p+Math.max(m,E)+N+A;var re=a||"main",q=i.labelBounds,Z=q[re]=q[re]||{};Z.x1=z,Z.y1=X,Z.x2=M,Z.y2=F,Z.w=M-z,Z.h=F-X;var ie=y&&g.strValue==="autorotate",ue=g.pfValue!=null&&g.pfValue!==0;if(ie||ue){var ge=ie?_a(i.rstyle,"labelAngle",a):g.pfValue,se=Math.cos(ge),ve=Math.sin(ge),ye=(z+M)/2,Te=(X+F)/2;if(!y){switch(l.value){case"left":ye=M;break;case"right":ye=z;break}switch(u.value){case"top":Te=F;break;case"bottom":Te=X;break}}var be=function(We,Re){return We=We-ye,Re=Re-Te,{x:We*se-Re*ve+ye,y:We*ve+Re*se+Te}},me=be(z,X),ae=be(z,F),xe=be(M,X),Ce=be(M,F);z=Math.min(me.x,ae.x,xe.x,Ce.x),M=Math.max(me.x,ae.x,xe.x,Ce.x),X=Math.min(me.y,ae.y,xe.y,Ce.y),F=Math.max(me.y,ae.y,xe.y,Ce.y)}var Oe=re+"Rot",Me=q[Oe]=q[Oe]||{};Me.x1=z,Me.y1=X,Me.x2=M,Me.y2=F,Me.w=M-z,Me.h=F-X,ar(e,z,X,M,F),ar(i.labelBounds.all,z,X,M,F)}return e}},sd=function(e,r){var a=e._private.cy,n=a.styleEnabled(),i=a.headless(),s=Yt(),o=e._private,l=e.isNode(),u=e.isEdge(),f,h,c,d,v,p,y=o.rstyle,g=l&&n?e.pstyle("bounds-expansion").pfValue:[0],m=function(Ge){return Ge.pstyle("display").value!=="none"},b=!n||m(e)&&(!u||m(e.source())&&m(e.target()));if(b){var E=0,N=0;n&&r.includeOverlays&&(E=e.pstyle("overlay-opacity").value,E!==0&&(N=e.pstyle("overlay-padding").value));var A=0,x=0;n&&r.includeUnderlays&&(A=e.pstyle("underlay-opacity").value,A!==0&&(x=e.pstyle("underlay-padding").value));var R=Math.max(N,x),C=0,B=0;if(n&&(C=e.pstyle("width").pfValue,B=C/2),l&&r.includeNodes){var z=e.position();v=z.x,p=z.y;var M=e.outerWidth(),X=M/2,F=e.outerHeight(),re=F/2;f=v-X,h=v+X,c=p-re,d=p+re,ar(s,f,c,h,d)}else if(u&&r.includeEdges)if(n&&!i){var q=e.pstyle("curve-style").strValue;if(f=Math.min(y.srcX,y.midX,y.tgtX),h=Math.max(y.srcX,y.midX,y.tgtX),c=Math.min(y.srcY,y.midY,y.tgtY),d=Math.max(y.srcY,y.midY,y.tgtY),f-=B,h+=B,c-=B,d+=B,ar(s,f,c,h,d),q==="haystack"){var Z=y.haystackPts;if(Z&&Z.length===2){if(f=Z[0].x,c=Z[0].y,h=Z[1].x,d=Z[1].y,f>h){var ie=f;f=h,h=ie}if(c>d){var ue=c;c=d,d=ue}ar(s,f-B,c-B,h+B,d+B)}}else if(q==="bezier"||q==="unbundled-bezier"||q==="segments"||q==="taxi"){var ge;switch(q){case"bezier":case"unbundled-bezier":ge=y.bezierPts;break;case"segments":case"taxi":ge=y.linePts;break}if(ge!=null)for(var se=0;seh){var ae=f;f=h,h=ae}if(c>d){var xe=c;c=d,d=xe}f-=B,h+=B,c-=B,d+=B,ar(s,f,c,h,d)}if(n&&r.includeEdges&&u&&(On(s,e,"mid-source"),On(s,e,"mid-target"),On(s,e,"source"),On(s,e,"target")),n){var Ce=e.pstyle("ghost").value==="yes";if(Ce){var Oe=e.pstyle("ghost-offset-x").pfValue,Me=e.pstyle("ghost-offset-y").pfValue;ar(s,s.x1+Oe,s.y1+Me,s.x2+Oe,s.y2+Me)}}var He=o.bodyBounds=o.bodyBounds||{};Es(He,s),li(He,g),yn(He,1),n&&(f=s.x1,h=s.x2,c=s.y1,d=s.y2,ar(s,f-R,c-R,h+R,d+R));var We=o.overlayBounds=o.overlayBounds||{};Es(We,s),li(We,g),yn(We,1);var Re=o.labelBounds=o.labelBounds||{};Re.all!=null?Sf(Re.all):Re.all=Yt(),n&&r.includeLabels&&(r.includeMainLabels&&Ai(s,e,null),u&&(r.includeSourceLabels&&Ai(s,e,"source"),r.includeTargetLabels&&Ai(s,e,"target")))}return s.x1=Qt(s.x1),s.y1=Qt(s.y1),s.x2=Qt(s.x2),s.y2=Qt(s.y2),s.w=Qt(s.x2-s.x1),s.h=Qt(s.y2-s.y1),s.w>0&&s.h>0&&b&&(li(s,g),yn(s,1)),s},yo=function(e){var r=0,a=function(s){return(s?1:0)<0&&arguments[0]!==void 0?arguments[0]:wd,e=arguments.length>1?arguments[1]:void 0,r=0;r=0;o--)s(o);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]),xd(this,function(i,s){r!=null&&(a=[{event:s.event,type:s.type,namespace:s.namespace,callback:r}],n=a.length);for(var o=function(f){var h=a[f];if(h.type===s.type&&(!h.namespace||h.namespace===s.namespace||h.namespace===Ed)&&i.eventMatches(i.context,h,s)){var c=[s];e!=null&&jl(c,e),i.beforeEmit(i.context,h,s),h.conf&&h.conf.one&&(i.listeners=i.listeners.filter(function(p){return p!==h}));var d=i.callbackContext(i.context,h,s),v=h.callback.apply(d,c);i.afterEmit(i.context,h,s),v===!1&&(s.stopPropagation(),s.preventDefault())}},l=0;l1&&!s){var o=this.length-1,l=this[o],u=l._private.data.id;this[o]=void 0,this[e]=l,i.set(u,{ele:l,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 s=i.index;return this.unmergeAt(s),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=0;r--){var a=this[r];e(a)&&this.unmergeAt(r)}return this},map:function(e,r){for(var a=[],n=this,i=0;ia&&(a=l,n=o)}return{value:a,ele:n}},min:function(e,r){for(var a=1/0,n,i=this,s=0;s=0&&i"u"?"undefined":ee(Symbol))!=e&&ee(Symbol.iterator)!=e;r&&(Rn[Symbol.iterator]=function(){var a=this,n={value:void 0,done:!1},i=0,s=this.length;return T({next:function(){return i1&&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 s=e;i.applyBypass(this,s,n),this.emitAndNotify("style")}else if(j(e))if(r===void 0){var o=this[0];return o?i.getStylePropertyValue(o,e):void 0}else i.applyBypass(this,e,r,n),this.emitAndNotify("style");else if(e===void 0){var l=this[0];return l?i.getRawStyle(l):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 s=0;s0&&e.push(f[0]),e.push(o[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,Ue(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:zo({attr:"source"}),targets:zo({attr:"target"})});function zo(t){return function(r){for(var a=[],n=0;n0);return s},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){Tt("A collection must have a reference to the core");return}var i=new lr,s=!1;if(!r)r=[];else if(r.length>0&&L(r[0])&&!Ae(r[0])){s=!0;for(var o=[],l=new jr,u=0,f=r.length;u0&&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=[],s=[],o,l=0,u=r.length;l0){for(var ue=o.length===r.length?r:new Nt(a,o),ge=0;ge0&&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 s(F){for(var re=F._private.edges,q=0;q0&&(t?z.emitAndNotify("remove"):e&&z.emit("remove"));for(var M=0;M0?M=F:z=F;while(Math.abs(X)>s&&++re=i?m(B,re):q===0?re:E(B,z,z+u)}var A=!1;function x(){A=!0,(t!==e||r!==a)&&b()}var R=function(z){return A||x(),t===e&&r===a?z:z===0?0:z===1?1:y(N(z),e,a)};R.getControlPoints=function(){return[{x:t,y:e},{x:r,y:a}]};var C="generateBezier("+[t,e,r,a]+")";return R.toString=function(){return C},R}/*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License */var Rd=function(){function t(a){return-a.tension*a.x-a.friction*a.v}function e(a,n,i){var s={x:a.x+i.dx*n,v:a.v+i.dv*n,tension:a.tension,friction:a.friction};return{dx:s.v,dv:t(s)}}function r(a,n){var i={dx:a.v,dv:t(a)},s=e(a,n*.5,i),o=e(a,n*.5,s),l=e(a,n,o),u=1/6*(i.dx+2*(s.dx+o.dx)+l.dx),f=1/6*(i.dv+2*(s.dv+o.dv)+l.dv);return a.x=a.x+u*n,a.v=a.v+f*n,a}return function a(n,i,s){var o={x:-1,v:0,tension:null,friction:null},l=[0],u=0,f=1/1e4,h=16/1e3,c,d,v;for(n=parseFloat(n)||500,i=parseFloat(i)||20,s=s||null,o.tension=n,o.friction=i,c=s!==null,c?(u=a(n,i),d=u/s*h):d=h;v=r(v||o,d),l.push(1+v.x),u+=16,Math.abs(v.x)>f&&Math.abs(v.v)>f;);return c?function(p){return l[p*(l.length-1)|0]}:u}}(),Et=function(e,r,a,n){var i=Id(e,r,a,n);return function(s,o,l){return s+(o-s)*i(l)}},Fn={linear:function(e,r,a){return e+(r-e)*a},ease:Et(.25,.1,.25,1),"ease-in":Et(.42,0,1,1),"ease-out":Et(0,0,.58,1),"ease-in-out":Et(.42,0,.58,1),"ease-in-sine":Et(.47,0,.745,.715),"ease-out-sine":Et(.39,.575,.565,1),"ease-in-out-sine":Et(.445,.05,.55,.95),"ease-in-quad":Et(.55,.085,.68,.53),"ease-out-quad":Et(.25,.46,.45,.94),"ease-in-out-quad":Et(.455,.03,.515,.955),"ease-in-cubic":Et(.55,.055,.675,.19),"ease-out-cubic":Et(.215,.61,.355,1),"ease-in-out-cubic":Et(.645,.045,.355,1),"ease-in-quart":Et(.895,.03,.685,.22),"ease-out-quart":Et(.165,.84,.44,1),"ease-in-out-quart":Et(.77,0,.175,1),"ease-in-quint":Et(.755,.05,.855,.06),"ease-out-quint":Et(.23,1,.32,1),"ease-in-out-quint":Et(.86,0,.07,1),"ease-in-expo":Et(.95,.05,.795,.035),"ease-out-expo":Et(.19,1,.22,1),"ease-in-out-expo":Et(1,0,0,1),"ease-in-circ":Et(.6,.04,.98,.335),"ease-out-circ":Et(.075,.82,.165,1),"ease-in-out-circ":Et(.785,.135,.15,.86),spring:function(e,r,a){if(a===0)return Fn.linear;var n=Rd(e,r,a);return function(i,s,o){return i+(s-i)*n(o)}},"cubic-bezier":Et};function $o(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 _o(t,e){return t.pfValue!=null||t.value!=null?t.pfValue!=null&&(e==null||e.type.units!=="%")?t.pfValue:t.value:t}function pa(t,e,r,a,n){var i=n!=null?n.type:null;r<0?r=0:r>1&&(r=1);var s=_o(t,n),o=_o(e,n);if(I(s)&&I(o))return $o(i,s,o,r,a);if(te(s)&&te(o)){for(var l=[],u=0;u0?(d==="spring"&&v.push(s.duration),s.easingImpl=Fn[d].apply(null,v)):s.easingImpl=Fn[d]}var p=s.easingImpl,y;if(s.duration===0?y=1:y=(r-l)/s.duration,s.applying&&(y=s.progress),y<0?y=0:y>1&&(y=1),s.delay==null){var g=s.startPosition,m=s.position;if(m&&n&&!t.locked()){var b={};Wa(g.x,m.x)&&(b.x=pa(g.x,m.x,y,p)),Wa(g.y,m.y)&&(b.y=pa(g.y,m.y,y,p)),t.position(b)}var E=s.startPan,N=s.pan,A=i.pan,x=N!=null&&a;x&&(Wa(E.x,N.x)&&(A.x=pa(E.x,N.x,y,p)),Wa(E.y,N.y)&&(A.y=pa(E.y,N.y,y,p)),t.emit("pan"));var R=s.startZoom,C=s.zoom,B=C!=null&&a;B&&(Wa(R,C)&&(i.zoom=Pa(i.minZoom,pa(R,C,y,p),i.maxZoom)),t.emit("zoom")),(x||B)&&t.emit("viewport");var z=s.style;if(z&&z.length>0&&n){for(var M=0;M=0;x--){var R=A[x];R()}A.splice(0,A.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||Pd(f,b,t),kd(f,b,t,h),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)),p=!0)}return!h&&d.length===0&&v.length===0&&a.push(f),p}for(var i=!1,s=0;s0?e.notify("draw",r):e.notify("draw")),r.unmerge(a),e.emit("step")}var Bd={animate:ht.animate(),animation:ht.animation(),animated:ht.animated(),clearQueue:ht.clearQueue(),delay:ht.delay(),delayAnimation:ht.delayAnimation(),stop:ht.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&&hn(function(i){Uo(i,e),r()})}var a=e.renderer();a&&a.beforeRender?a.beforeRender(function(i,s){Uo(s,e)},a.beforeRenderPriorities.animations):r()}},Fd={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}},zn=function(e){return j(e)?new Sr(e):e},Yo={createEmitter:function(){var e=this._private;return e.emitter||(e.emitter=new Mn(Fd,this)),this},emitter:function(){return this._private.emitter},on:function(e,r,a){return this.emitter().on(e,zn(r),a),this},removeListener:function(e,r,a){return this.emitter().removeListener(e,zn(r),a),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(e,r,a){return this.emitter().one(e,zn(r),a),this},once:function(e,r,a){return this.emitter().one(e,zn(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}};ht.eventAliasesOn(Yo);var Mi={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)}};Mi.jpeg=Mi.jpg;var Gn={layout:function(e){var r=this;if(e==null){Tt("Layout options must be specified to make a layout");return}if(e.name==null){Tt("A `name` must be specified to make a layout");return}var a=e.name,n=r.extension("layout",a);if(n==null){Tt("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 s=new n(Ue({},e,{cy:r,eles:i}));return s}};Gn.createLayout=Gn.makeLayout=Gn.layout;var zd={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;n0;)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)}};Ii.invalidateDimensions=Ii.resize;var Vn={collection:function(e,r){return j(e)?this.$(e):de(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={},qa="t",Vd="f";Ft.apply=function(t){for(var e=this,r=e._private,a=r.cy,n=a.collection(),i=0;i0;if(c||h&&d){var v=void 0;c&&d||c?v=u.properties:d&&(v=u.mappedProperties);for(var p=0;p1&&(E=1),o.color){var A=a.valueMin[0],x=a.valueMax[0],R=a.valueMin[1],C=a.valueMax[1],B=a.valueMin[2],z=a.valueMax[2],M=a.valueMin[3]==null?1:a.valueMin[3],X=a.valueMax[3]==null?1:a.valueMax[3],F=[Math.round(A+(x-A)*E),Math.round(R+(C-R)*E),Math.round(B+(z-B)*E),Math.round(M+(X-M)*E)];i={bypass:a.bypass,name:a.name,value:F,strValue:"rgb("+F[0]+", "+F[1]+", "+F[2]+")"}}else if(o.number){var re=a.valueMin+(a.valueMax-a.valueMin)*E;i=this.parse(a.name,re,a.bypass,c)}else return!1;if(!i)return p(),!1;i.mapping=a,a=i;break}case s.data:{for(var q=a.field.split("."),Z=h.data,ie=0;ie0&&i>0){for(var o={},l=!1,u=0;u0?t.delayAnimation(s).play().promise().then(b):b()}).then(function(){return t.animation({style:o,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 s=this.properties[e],o=n(s);o!=null&&o(r,a)&&i(s)},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")||e==="display"&&(r==="none"||a==="none"))&&t.parallelEdges().forEach(function(i){i.isBundledBezier()&&i.dirtyBoundingBoxCache()})})},Ft.checkTriggers=function(t,e,r,a){t.dirtyStyleCache(),this.checkZOrderTrigger(t,e,r,a),this.checkBoundsTrigger(t,e,r,a)};var Ka={};Ka.applyBypass=function(t,e,r,a){var n=this,i=[],s=!0;if(e==="*"||e==="**"){if(r!==void 0)for(var o=0;on.length?a=a.substr(n.length):a=""}function l(){i.length>s.length?i=i.substr(s.length):i=""}for(;;){var u=a.match(/^\s*$/);if(u)break;var f=a.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!f){ut("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+a);break}n=f[0];var h=f[1];if(h!=="core"){var c=new Sr(h);if(c.invalid){ut("Skipping parsing of block: Invalid selector found in string stylesheet: "+h),o();continue}}var d=f[2],v=!1;i=d;for(var p=[];;){var y=i.match(/^\s*$/);if(y)break;var g=i.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!g){ut("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+d),v=!0;break}s=g[0];var m=g[1],b=g[2],E=e.properties[m];if(!E){ut("Skipping property: Invalid property name in: "+s),l();continue}var N=r.parse(m,b);if(!N){ut("Skipping property: Invalid property definition in: "+s),l();continue}p.push({name:m,val:b}),l()}if(v){o();break}r.selector(h);for(var A=0;A=7&&e[0]==="d"&&(f=new RegExp(o.data.regex).exec(e))){if(r)return!1;var c=o.data;return{name:t,value:f,strValue:""+e,mapped:c,field:f[1],bypass:r}}else if(e.length>=10&&e[0]==="m"&&(h=new RegExp(o.mapData.regex).exec(e))){if(r||u.multiple)return!1;var d=o.mapData;if(!(u.color||u.number))return!1;var v=this.parse(t,h[4]);if(!v||v.mapped)return!1;var p=this.parse(t,h[5]);if(!p||p.mapped)return!1;if(v.pfValue===p.pfValue||v.strValue===p.strValue)return ut("`"+t+": "+e+"` is not a valid mapper because the output range is zero; converting to `"+t+": "+v.strValue+"`"),this.parse(t,v.strValue);if(u.color){var y=v.value,g=p.value,m=y[0]===g[0]&&y[1]===g[1]&&y[2]===g[2]&&(y[3]===g[3]||(y[3]==null||y[3]===1)&&(g[3]==null||g[3]===1));if(m)return!1}return{name:t,value:h,strValue:""+e,mapped:d,field:h[1],fieldMin:parseFloat(h[2]),fieldMax:parseFloat(h[3]),valueMin:v.value,valueMax:p.value,bypass:r}}}if(u.multiple&&a!=="multiple"){var b;if(l?b=e.split(/\s+/):te(e)?b=e:b=[e],u.evenMultiple&&b.length%2!==0)return null;for(var E=[],N=[],A=[],x="",R=!1,C=0;C0?" ":"")+B.strValue}return u.validate&&!u.validate(E,N)?null:u.singleEnum&&R?E.length===1&&j(E[0])?{name:t,value:E[0],strValue:E[0],bypass:r}:null:{name:t,value:E,pfValue:A,strValue:x,bypass:r,units:N}}var z=function(){for(var Ce=0;Ceu.max||u.strictMax&&e===u.max))return null;var q={name:t,value:e,strValue:""+e+(M||""),units:M,bypass:r};return u.unitless||M!=="px"&&M!=="em"?q.pfValue=e:q.pfValue=M==="px"||!M?e:this.getEmSizeInPixels()*e,(M==="ms"||M==="s")&&(q.pfValue=M==="ms"?e:1e3*e),(M==="deg"||M==="rad")&&(q.pfValue=M==="rad"?e:xf(e)),M==="%"&&(q.pfValue=e/100),q}else if(u.propList){var Z=[],ie=""+e;if(ie!=="none"){for(var ue=ie.split(/\s*,\s*|\s+/),ge=0;ge0&&o>0&&!isNaN(a.w)&&!isNaN(a.h)&&a.w>0&&a.h>0){l=Math.min((s-2*r)/a.w,(o-2*r)/a.h),l=l>this._private.maxZoom?this._private.maxZoom:l,l=l=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,s,o=!1;if(r.zoomingEnabled||(o=!0),I(e)?s=e:L(e)&&(s=e.level,e.position!=null?i=gn(e.position,n,a):e.renderedPosition!=null&&(i=e.renderedPosition),i!=null&&!r.panningEnabled&&(o=!0)),s=s>r.maxZoom?r.maxZoom:s,s=sr.maxZoom||!r.zoomingEnabled?s=!0:(r.zoom=l,i.push("zoom"))}if(n&&(!s||!e.cancelOnFailedZoom)&&r.panningEnabled){var u=e.pan;I(u.x)&&(r.pan.x=u.x,o=!1),I(u.y)&&(r.pan.y=u.y,o=!1),o||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 de(e)||(e=this.mutableElements());if(e.length!==0){var n=e.boundingBox(),i=this.width(),s=this.height();r=r===void 0?this._private.zoom:r;var o={x:(i-r*(n.x1+n.x2))/2,y:(s-r*(n.y1+n.y2))/2};return o}}},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(o){return parseFloat(n.getPropertyValue(o))};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 Za={data:ht.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:ht.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:ht.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:ht.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};Za.attr=Za.data,Za.removeAttr=Za.removeData;var Qa=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 s=D!==void 0&&a!==void 0&&!e.headless,o=e;o.layout=Ue({name:s?"grid":"null"},o.layout),o.renderer=Ue({name:s?"canvas":"null"},o.renderer);var l=function(v,p,y){return p!==void 0?p:y!==void 0?y:v},u=this._private={container:a,ready:!1,options:o,elements:new Nt(this),listeners:[],aniEles:new Nt(this),data:o.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:l(!0,o.zoomingEnabled),userZoomingEnabled:l(!0,o.userZoomingEnabled),panningEnabled:l(!0,o.panningEnabled),userPanningEnabled:l(!0,o.userPanningEnabled),boxSelectionEnabled:l(!0,o.boxSelectionEnabled),autolock:l(!1,o.autolock,o.autolockNodes),autoungrabify:l(!1,o.autoungrabify,o.autoungrabifyNodes),autounselectify:l(!1,o.autounselectify),styleEnabled:o.styleEnabled===void 0?s:o.styleEnabled,zoom:I(o.zoom)?o.zoom:1,pan:{x:L(o.pan)&&I(o.pan.x)?o.pan.x:0,y:L(o.pan)&&I(o.pan.y)?o.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:l(250,o.multiClickDebounceTime)};this.createEmitter(),this.selectionType(o.selectionType),this.zoomRange({min:o.minZoom,max:o.maxZoom});var f=function(v,p){var y=v.some(rt);if(y)return sa.all(v).then(p);p(v)};u.styleEnabled&&r.setStyle([]);var h=Ue({},o,o.renderer);r.initRenderer(h);var c=function(v,p,y){r.notifications(!1);var g=r.mutableElements();g.length>0&&g.remove(),v!=null&&(L(v)||te(v))&&r.add(v),r.one("layoutready",function(b){r.notifications(!0),r.emit(b),r.one("load",p),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()};f([o.style,o.elements],function(d){var v=d[0],p=d[1];u.styleEnabled&&r.style().append(v),c(p,function(){r.startAnimationLoop(),u.ready=!0,Y(o.ready)&&r.on("ready",o.ready);for(var y=0;y0,l=Yt(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),u;if(de(e.roots))u=e.roots;else if(te(e.roots)){for(var f=[],h=0;h0;){var re=F(),q=B(re,M);if(q)re.outgoers().filter(function(Re){return Re.isNode()&&a.has(Re)}).forEach(X);else if(q===null){ut("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;ie0&&g[0].length<=3?Ye/2:0),k=2*Math.PI/g[Fe].length*ke;return Fe===0&&g[0].length===1&&(De=1),{x:Me.x+De*Math.cos(k),y:Me.y+De*Math.sin(k)}}else{var ct={x:Me.x+(ke+1-(ze+1)/2)*je,y:(Fe+1)*Ze};return ct}};return a.nodes().layoutPositions(this,e,We),this};var Hd={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 Wo(t){this.options=Ue({},Hd,t)}Wo.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 s=Yt(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),o={x:s.x1+s.w/2,y:s.y1+s.h/2},l=e.sweep===void 0?2*Math.PI-2*Math.PI/i.length:e.sweep,u=l/Math.max(1,i.length-1),f,h=0,c=0;c1&&e.avoidOverlap){h*=1.75;var g=Math.cos(u)-Math.cos(0),m=Math.sin(u)-Math.sin(0),b=Math.sqrt(h*h/(g*g+m*m));f=Math.max(b,f)}var E=function(A,x){var R=e.startAngle+x*u*(n?1:-1),C=f*Math.cos(R),B=f*Math.sin(R),z={x:o.x+C,y:o.y+B};return z};return a.nodes().layoutPositions(this,e,E),this};var Xd={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 qo(t){this.options=Ue({},Xd,t)}qo.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"),s=Yt(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:a.width(),h:a.height()}),o={x:s.x1+s.w/2,y:s.y1+s.h/2},l=[],u=0,f=0;f0){var N=Math.abs(m[0].value-E.value);N>=y&&(m=[],g.push(m))}m.push(E)}var A=u+e.minNodeSpacing;if(!e.avoidOverlap){var x=g.length>0&&g[0].length>1,R=Math.min(s.w,s.h)/2-A,C=R/(g.length+x?1:0);A=Math.min(A,C)}for(var B=0,z=0;z1&&e.avoidOverlap){var re=Math.cos(F)-Math.cos(0),q=Math.sin(F)-Math.sin(0),Z=Math.sqrt(A*A/(re*re+q*q));B=Math.max(Z,B)}M.r=B,B+=A}if(e.equidistant){for(var ie=0,ue=0,ge=0;ge=t.numIter||(eg(a,t),a.temperature=a.temperature*t.coolingFactor,a.temperature=t.animationThreshold&&i(),hn(h)}};f()}else{for(;u;)u=s(l),l++;Qo(a,t),o()}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 qd=function(e,r,a){for(var n=a.eles.edges(),i=a.eles.nodes(),s=Yt(a.boundingBox?a.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),o={isCompound:e.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:i.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:n.size(),temperature:a.initialTemp,clientWidth:s.w,clientHeight:s.h,boundingBox:s},l=a.eles.components(),u={},f=0;f0){o.graphSet.push(R);for(var f=0;fn.count?0:n.graph},Zd=function t(e,r,a,n){var i=n.graphSet[a];if(-10)var h=n.nodeOverlap*f,c=Math.sqrt(o*o+l*l),d=h*o/c,v=h*l/c;else var p=Hn(e,o,l),y=Hn(r,-1*o,-1*l),g=y.x-p.x,m=y.y-p.y,b=g*g+m*m,c=Math.sqrt(b),h=(e.nodeRepulsion+r.nodeRepulsion)/b,d=h*g/c,v=h*m/c;e.isLocked||(e.offsetX-=d,e.offsetY-=v),r.isLocked||(r.offsetX+=d,r.offsetY+=v)}},ag=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 s=e.maxY-r.minY;else var s=r.maxY-e.minY;return i>=0&&s>=0?Math.sqrt(i*i+s*s):0},Hn=function(e,r,a){var n=e.positionX,i=e.positionY,s=e.height||1,o=e.width||1,l=a/r,u=s/o,f={};return r===0&&0a?(f.x=n,f.y=i+s/2,f):0r&&-1*u<=l&&l<=u?(f.x=n-o/2,f.y=i-o*a/2/r,f):0=u)?(f.x=n+s*r/2/a,f.y=i+s/2,f):(0>a&&(l<=-1*u||l>=u)&&(f.x=n-s*r/2/a,f.y=i-s/2),f)},ng=function(e,r){for(var a=0;aa){var y=r.gravity*d/p,g=r.gravity*v/p;c.offsetX+=y,c.offsetY+=g}}}}},sg=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 s=a[n++],o=e.idToIndex[s],l=e.layoutNodes[o],u=l.children;if(0a)var i={x:a*e/n,y:a*r/n};else var i={x:e,y:r};return i},lg=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.padLeftn.maxY)&&(n.maxY=e.maxY+n.padBottom,i=!0),(n.minY==null||e.minY-n.padTopg&&(v+=y+r.componentSpacing,d=0,p=0,y=0)}}},fg={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 Jo(t){this.options=Ue({},fg,t)}Jo.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(ye){return{x:i.x1,y:i.y1}});else{var s=n.size(),o=Math.sqrt(s*i.h/i.w),l=Math.round(o),u=Math.round(i.w/i.h*o),f=function(Te){if(Te==null)return Math.min(l,u);var be=Math.min(l,u);be==l?l=Te:u=Te},h=function(Te){if(Te==null)return Math.max(l,u);var be=Math.max(l,u);be==l?l=Te:u=Te},c=e.rows,d=e.cols!=null?e.cols:e.columns;if(c!=null&&d!=null)l=c,u=d;else if(c!=null&&d==null)l=c,u=Math.ceil(s/l);else if(c==null&&d!=null)u=d,l=Math.ceil(s/u);else if(u*l>s){var v=f(),p=h();(v-1)*p>=s?f(v-1):(p-1)*v>=s&&h(p-1)}else for(;u*l=s?h(g+1):f(y+1)}var m=i.w/u,b=i.h/l;if(e.condense&&(m=0,b=0),e.avoidOverlap)for(var E=0;E=u&&(re=0,F++)},Z={},ie=0;ie(re=Pf(t,e,q[Z],q[Z+1],q[Z+2],q[Z+3])))return y(x,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(re=kf(t,e,q[Z],q[Z+1],q[Z+2],q[Z+3],q[Z+4],q[Z+5])))return y(x,re),!0}for(var ie=ie||R.source,ue=ue||R.target,ge=n.getArrowWidth(B,z),se=[{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;Z0&&(g(ie),g(ue))}function b(x,R,C){return tr(x,R,C)}function E(x,R){var C=x._private,B=c,z;R?z=R+"-":z="",x.boundingBox();var M=C.labelBounds[R||"main"],X=x.pstyle(z+"label").value,F=x.pstyle("text-events").strValue==="yes";if(!(!F||!X)){var re=b(C.rscratch,"labelX",R),q=b(C.rscratch,"labelY",R),Z=b(C.rscratch,"labelAngle",R),ie=x.pstyle(z+"text-margin-x").pfValue,ue=x.pstyle(z+"text-margin-y").pfValue,ge=M.x1-B-ie,se=M.x2+B-ie,ve=M.y1-B-ue,ye=M.y2+B-ue;if(Z){var Te=Math.cos(Z),be=Math.sin(Z),me=function(We,Re){return We=We-re,Re=Re-q,{x:We*Te-Re*be+re,y:We*be+Re*Te+q}},ae=me(ge,ve),xe=me(ge,ye),Ce=me(se,ve),Oe=me(se,ye),Me=[ae.x+ie,ae.y+ue,Ce.x+ie,Ce.y+ue,Oe.x+ie,Oe.y+ue,xe.x+ie,xe.y+ue];if(Ht(t,e,Me))return y(x),!0}else if(ra(M,t,e))return y(x),!0}}for(var N=s.length-1;N>=0;N--){var A=s[N];A.isNode()?g(A)||E(A):m(A)||E(A)||E(A,"source")||E(A,"target")}return o},_r.getAllInBox=function(t,e,r,a){var n=this.getCachedZSortedEles().interactive,i=[],s=Math.min(t,r),o=Math.max(t,r),l=Math.min(e,a),u=Math.max(e,a);t=s,r=o,e=l,a=u;for(var f=Yt({x1:t,y1:e,x2:r,y2:a}),h=0;h0?Math.max(Le-$e,0):Math.min(Le+$e,0)},X=M(B,R),F=M(z,C),re=!1;m===u?g=Math.abs(X)>Math.abs(F)?n:a:m===l||m===o?(g=a,re=!0):(m===i||m===s)&&(g=n,re=!0);var q=g===a,Z=q?F:X,ie=q?z:B,ue=bs(ie),ge=!1;!(re&&(E||A))&&(m===o&&ie<0||m===l&&ie>0||m===i&&ie>0||m===s&&ie<0)&&(ue*=-1,Z=ue*Math.abs(Z),ge=!0);var se;if(E){var ve=N<0?1+N:N;se=ve*Z}else{var ye=N<0?Z:0;se=ye+N*ue}var Te=function(Le){return Math.abs(Le)=Math.abs(Z)},be=Te(se),me=Te(Math.abs(Z)-Math.abs(se)),ae=be||me;if(ae&&!ge)if(q){var xe=Math.abs(ie)<=c/2,Ce=Math.abs(B)<=d/2;if(xe){var Oe=(f.x1+f.x2)/2,Me=f.y1,He=f.y2;r.segpts=[Oe,Me,Oe,He]}else if(Ce){var We=(f.y1+f.y2)/2,Re=f.x1,Ie=f.x2;r.segpts=[Re,We,Ie,We]}else r.segpts=[f.x1,f.y2]}else{var Ge=Math.abs(ie)<=h/2,Fe=Math.abs(z)<=v/2;if(Ge){var ke=(f.y1+f.y2)/2,ze=f.x1,je=f.x2;r.segpts=[ze,ke,je,ke]}else if(Fe){var Ze=(f.x1+f.x2)/2,Ye=f.y1,ct=f.y2;r.segpts=[Ze,Ye,Ze,ct]}else r.segpts=[f.x2,f.y1]}else if(q){var De=f.y1+se+(y?c/2*ue:0),k=f.x1,he=f.x2;r.segpts=[k,De,he,De]}else{var Se=f.x1+se+(y?h/2*ue:0),Ee=f.y1,we=f.y2;r.segpts=[Se,Ee,Se,we]}},Vt.tryToCorrectInvalidPoints=function(t,e){var r=t._private.rscratch;if(r.edgeType==="bezier"){var a=e.srcPos,n=e.tgtPos,i=e.srcW,s=e.srcH,o=e.tgtW,l=e.tgtH,u=e.srcShape,f=e.tgtShape,h=!I(r.startX)||!I(r.startY),c=!I(r.arrowStartX)||!I(r.arrowStartY),d=!I(r.endX)||!I(r.endY),v=!I(r.arrowEndX)||!I(r.arrowEndY),p=3,y=this.getArrowWidth(t.pstyle("width").pfValue,t.pstyle("arrow-scale").value)*this.arrowShapeWidth,g=p*y,m=Br({x:r.ctrlpts[0],y:r.ctrlpts[1]},{x:r.startX,y:r.startY}),b=mF.poolIndex()){var re=X;X=F,F=re}var q=C.srcPos=X.position(),Z=C.tgtPos=F.position(),ie=C.srcW=X.outerWidth(),ue=C.srcH=X.outerHeight(),ge=C.tgtW=F.outerWidth(),se=C.tgtH=F.outerHeight(),ve=C.srcShape=r.nodeShapes[e.getNodeShape(X)],ye=C.tgtShape=r.nodeShapes[e.getNodeShape(F)];C.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var Te=0;Te0){var xe=i,Ce=Fr(xe,ea(r)),Oe=Fr(xe,ea(ae)),Me=Ce;if(Oe2){var He=Fr(xe,{x:ae[2],y:ae[3]});He0){var k=s,he=Fr(k,ea(r)),Se=Fr(k,ea(De)),Ee=he;if(Se2){var we=Fr(k,{x:De[2],y:De[3]});we=v||x){y={cp:E,segment:A};break}}if(y)break}var R=y.cp,C=y.segment,B=(v-g)/C.length,z=C.t1-C.t0,M=d?C.t0+z*B:C.t1-z*B;M=Pa(0,M,1),e=ta(R.p0,R.p1,R.p2,M),c=pg(R.p0,R.p1,R.p2,M);break}case"straight":case"segments":case"haystack":{for(var X=0,F,re,q,Z,ie=a.allpts.length,ue=0;ue+3=v));ue+=2);var ge=v-re,se=ge/F;se=Pa(0,se,1),e=Cf(q,Z,se),c=su(q,Z);break}}s("labelX",h,e.x),s("labelY",h,e.y),s("labelAutoAngle",h,c)}};u("source"),u("target"),this.applyLabelDimensions(t)}},hr.applyLabelDimensions=function(t){this.applyPrefixedLabelDimensions(t),t.isEdge()&&(this.applyPrefixedLabelDimensions(t,"source"),this.applyPrefixedLabelDimensions(t,"target"))},hr.applyPrefixedLabelDimensions=function(t,e){var r=t._private,a=this.getLabelText(t,e),n=this.calculateLabelDimensions(t,a),i=t.pstyle("line-height").pfValue,s=t.pstyle("text-wrap").strValue,o=tr(r.rscratch,"labelWrapCachedLines",e)||[],l=s!=="wrap"?1:Math.max(o.length,1),u=n.height/l,f=u*i,h=n.width,c=n.height+(l-1)*(i-1)*u;Tr(r.rstyle,"labelWidth",e,h),Tr(r.rscratch,"labelWidth",e,h),Tr(r.rstyle,"labelHeight",e,c),Tr(r.rscratch,"labelHeight",e,c),Tr(r.rscratch,"labelLineHeight",e,f)},hr.getLabelText=function(t,e){var r=t._private,a=e?e+"-":"",n=t.pstyle(a+"label").strValue,i=t.pstyle("text-transform").value,s=function(ge,se){return se?(Tr(r.rscratch,ge,e,se),se):tr(r.rscratch,ge,e)};if(!n)return"";i=="none"||(i=="uppercase"?n=n.toUpperCase():i=="lowercase"&&(n=n.toLowerCase()));var o=t.pstyle("text-wrap").value;if(o==="wrap"){var l=s("labelKey");if(l!=null&&s("labelWrapKey")===l)return s("labelWrapCachedText");for(var u="​",f=n.split(` +`),h=t.pstyle("text-max-width").pfValue,c=t.pstyle("text-overflow-wrap").value,d=c==="anywhere",v=[],p=/[\s\u200b]+/,y=d?"":" ",g=0;gh){for(var A=m.split(p),x="",R=0;RX)break;F+=n[Z],Z===n.length-1&&(q=!0)}return q||(F+=re),F}return n},hr.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},hr.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 s=0,o=t.pstyle("font-style").strValue,l=t.pstyle("font-size").pfValue,u=t.pstyle("font-family").strValue,f=t.pstyle("font-weight").strValue,h=this.labelCalcCanvas,c=this.labelCalcCanvasContext;if(!h){h=this.labelCalcCanvas=document.createElement("canvas"),c=this.labelCalcCanvasContext=h.getContext("2d");var d=h.style;d.position="absolute",d.left="-9999px",d.top="-9999px",d.zIndex="-1",d.visibility="hidden",d.pointerEvents="none"}c.font="".concat(o," ").concat(f," ").concat(l,"px ").concat(u);for(var v=0,p=0,y=e.split(` +`),g=0;g1&&arguments[1]!==void 0?arguments[1]:!0;if(e.merge(s),o)for(var l=0;l=t.desktopTapThreshold2}var Er=n(k);Rt&&(t.hoverData.tapholdCancelled=!0);var Rr=function(){var vr=t.hoverData.dragDelta=t.hoverData.dragDelta||[];vr.length===0?(vr.push(Je[0]),vr.push(Je[1])):(vr[0]+=Je[0],vr[1]+=Je[1])};Se=!0,a(Qe,["mousemove","vmousemove","tapdrag"],k,{x:Le[0],y:Le[1]});var Ta=function(){t.data.bgActivePosistion=void 0,t.hoverData.selecting||Ee.emit({originalEvent:k,type:"boxstart",position:{x:Le[0],y:Le[1]}}),gt[4]=1,t.hoverData.selecting=!0,t.redrawHint("select",!0),t.redraw()};if(t.hoverData.which===3){if(Rt){var Xr={originalEvent:k,type:"cxtdrag",position:{x:Le[0],y:Le[1]}};Ke?Ke.emit(Xr):Ee.emit(Xr),t.hoverData.cxtDragged=!0,(!t.hoverData.cxtOver||Qe!==t.hoverData.cxtOver)&&(t.hoverData.cxtOver&&t.hoverData.cxtOver.emit({originalEvent:k,type:"cxtdragout",position:{x:Le[0],y:Le[1]}}),t.hoverData.cxtOver=Qe,Qe&&Qe.emit({originalEvent:k,type:"cxtdragover",position:{x:Le[0],y:Le[1]}}))}}else if(t.hoverData.dragging){if(Se=!0,Ee.panningEnabled()&&Ee.userPanningEnabled()){var Ca;if(t.hoverData.justStartedPan){var Jn=t.hoverData.mdownPos;Ca={x:(Le[0]-Jn[0])*we,y:(Le[1]-Jn[1])*we},t.hoverData.justStartedPan=!1}else Ca={x:Je[0]*we,y:Je[1]*we};Ee.panBy(Ca),Ee.emit("dragpan"),t.hoverData.dragged=!0}Le=t.projectIntoViewport(k.clientX,k.clientY)}else if(gt[4]==1&&(Ke==null||Ke.pannable())){if(Rt){if(!t.hoverData.dragging&&Ee.boxSelectionEnabled()&&(Er||!Ee.panningEnabled()||!Ee.userPanningEnabled()))Ta();else if(!t.hoverData.selecting&&Ee.panningEnabled()&&Ee.userPanningEnabled()){var Wr=i(Ke,t.hoverData.downs);Wr&&(t.hoverData.dragging=!0,t.hoverData.justStartedPan=!0,gt[4]=0,t.data.bgActivePosistion=ea($e),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!=lt&&(lt&&a(lt,["mouseout","tapdragout"],k,{x:Le[0],y:Le[1]}),Qe&&a(Qe,["mouseover","tapdragover"],k,{x:Le[0],y:Le[1]}),t.hoverData.last=Qe),Ke)if(Rt){if(Ee.boxSelectionEnabled()&&Er)Ke&&Ke.grabbed()&&(y(Dt),Ke.emit("freeon"),Dt.emit("free"),t.dragData.didDrag&&(Ke.emit("dragfreeon"),Dt.emit("dragfree"))),Ta();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||v(Dt,{inDragLayer:!0});var $t={x:0,y:0};if(I(Je[0])&&I(Je[1])&&($t.x+=Je[0],$t.y+=Je[1],Xt)){var Wt=t.hoverData.dragDelta;Wt&&I(Wt[0])&&I(Wt[1])&&($t.x+=Wt[0],$t.y+=Wt[1])}t.hoverData.draggingEles=!0,Dt.silentShift($t).emit("position drag"),t.redrawHint("drag",!0),t.redraw()}}else Rr();Se=!0}if(gt[2]=Le[0],gt[3]=Le[1],Se)return k.stopPropagation&&k.stopPropagation(),k.preventDefault&&k.preventDefault(),!1}},!1);var B,z,M;t.registerBinding(e,"mouseup",function(k){var he=t.hoverData.capture;if(he){t.hoverData.capture=!1;var Se=t.cy,Ee=t.projectIntoViewport(k.clientX,k.clientY),we=t.selection,qe=t.findNearestElement(Ee[0],Ee[1],!0,!1),Le=t.dragData.possibleDragElements,$e=t.hoverData.down,ot=n(k);if(t.data.bgActivePosistion&&(t.redrawHint("select",!0),t.redraw()),t.hoverData.tapholdCancelled=!0,t.data.bgActivePosistion=void 0,$e&&$e.unactivate(),t.hoverData.which===3){var gt={originalEvent:k,type:"cxttapend",position:{x:Ee[0],y:Ee[1]}};if($e?$e.emit(gt):Se.emit(gt),!t.hoverData.cxtDragged){var Qe={originalEvent:k,type:"cxttap",position:{x:Ee[0],y:Ee[1]}};$e?$e.emit(Qe):Se.emit(Qe)}t.hoverData.cxtDragged=!1,t.hoverData.which=null}else if(t.hoverData.which===1){if(a(qe,["mouseup","tapend","vmouseup"],k,{x:Ee[0],y:Ee[1]}),!t.dragData.didDrag&&!t.hoverData.dragged&&!t.hoverData.selecting&&!t.hoverData.isOverThresholdDrag&&(a($e,["click","tap","vclick"],k,{x:Ee[0],y:Ee[1]}),z=!1,k.timeStamp-M<=Se.multiClickDebounceTime()?(B&&clearTimeout(B),z=!0,M=null,a($e,["dblclick","dbltap","vdblclick"],k,{x:Ee[0],y:Ee[1]})):(B=setTimeout(function(){z||a($e,["oneclick","onetap","voneclick"],k,{x:Ee[0],y:Ee[1]})},Se.multiClickDebounceTime()),M=k.timeStamp)),$e==null&&!t.dragData.didDrag&&!t.hoverData.selecting&&!t.hoverData.dragged&&!n(k)&&(Se.$(r).unselect(["tapunselect"]),Le.length>0&&t.redrawHint("eles",!0),t.dragData.possibleDragElements=Le=Se.collection()),qe==$e&&!t.dragData.didDrag&&!t.hoverData.selecting&&qe!=null&&qe._private.selectable&&(t.hoverData.dragging||(Se.selectionType()==="additive"||ot?qe.selected()?qe.unselect(["tapunselect"]):qe.select(["tapselect"]):ot||(Se.$(r).unmerge(qe).unselect(["tapunselect"]),qe.select(["tapselect"]))),t.redrawHint("eles",!0)),t.hoverData.selecting){var lt=Se.collection(t.getAllInBox(we[0],we[1],we[2],we[3]));t.redrawHint("select",!0),lt.length>0&&t.redrawHint("eles",!0),Se.emit({type:"boxend",originalEvent:k,position:{x:Ee[0],y:Ee[1]}});var Ke=function(Rt){return Rt.selectable()&&!Rt.selected()};Se.selectionType()==="additive"||ot||Se.$(r).unmerge(lt).unselect(),lt.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()),!we[4]){t.redrawHint("drag",!0),t.redrawHint("eles",!0);var Je=$e&&$e.grabbed();y(Le),Je&&($e.emit("freeon"),Le.emit("free"),t.dragData.didDrag&&($e.emit("dragfreeon"),Le.emit("dragfree")))}}we[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(k){if(!t.scrollingPage){var he=t.cy,Se=he.zoom(),Ee=he.pan(),we=t.projectIntoViewport(k.clientX,k.clientY),qe=[we[0]*Se+Ee.x,we[1]*Se+Ee.y];if(t.hoverData.draggingEles||t.hoverData.dragging||t.hoverData.cxtStarted||R()){k.preventDefault();return}if(he.panningEnabled()&&he.userPanningEnabled()&&he.zoomingEnabled()&&he.userZoomingEnabled()){k.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;k.deltaY!=null?Le=k.deltaY/-250:k.wheelDeltaY!=null?Le=k.wheelDeltaY/1e3:Le=k.wheelDelta/1e3,Le=Le*t.wheelSensitivity;var $e=k.deltaMode===1;$e&&(Le*=33);var ot=he.zoom()*Math.pow(10,Le);k.type==="gesturechange"&&(ot=t.gestureStartZoom*k.scale),he.zoom({level:ot,renderedPosition:{x:qe[0],y:qe[1]}}),he.emit(k.type==="gesturechange"?"pinchzoom":"scrollzoom")}}};t.registerBinding(t.container,"wheel",X,!0),t.registerBinding(e,"scroll",function(k){t.scrollingPage=!0,clearTimeout(t.scrollingPageTimeout),t.scrollingPageTimeout=setTimeout(function(){t.scrollingPage=!1},250)},!0),t.registerBinding(t.container,"gesturestart",function(k){t.gestureStartZoom=t.cy.zoom(),t.hasTouchStarted||k.preventDefault()},!0),t.registerBinding(t.container,"gesturechange",function(De){t.hasTouchStarted||X(De)},!0),t.registerBinding(t.container,"mouseout",function(k){var he=t.projectIntoViewport(k.clientX,k.clientY);t.cy.emit({originalEvent:k,type:"mouseout",position:{x:he[0],y:he[1]}})},!1),t.registerBinding(t.container,"mouseover",function(k){var he=t.projectIntoViewport(k.clientX,k.clientY);t.cy.emit({originalEvent:k,type:"mouseover",position:{x:he[0],y:he[1]}})},!1);var F,re,q,Z,ie,ue,ge,se,ve,ye,Te,be,me,ae=function(k,he,Se,Ee){return Math.sqrt((Se-k)*(Se-k)+(Ee-he)*(Ee-he))},xe=function(k,he,Se,Ee){return(Se-k)*(Se-k)+(Ee-he)*(Ee-he)},Ce;t.registerBinding(t.container,"touchstart",Ce=function(k){if(t.hasTouchStarted=!0,!!C(k)){m(),t.touchData.capture=!0,t.data.bgActivePosistion=void 0;var he=t.cy,Se=t.touchData.now,Ee=t.touchData.earlier;if(k.touches[0]){var we=t.projectIntoViewport(k.touches[0].clientX,k.touches[0].clientY);Se[0]=we[0],Se[1]=we[1]}if(k.touches[1]){var we=t.projectIntoViewport(k.touches[1].clientX,k.touches[1].clientY);Se[2]=we[0],Se[3]=we[1]}if(k.touches[2]){var we=t.projectIntoViewport(k.touches[2].clientX,k.touches[2].clientY);Se[4]=we[0],Se[5]=we[1]}if(k.touches[1]){t.touchData.singleTouchMoved=!0,y(t.dragData.touchDragEles);var qe=t.findContainerClientCoords();ve=qe[0],ye=qe[1],Te=qe[2],be=qe[3],F=k.touches[0].clientX-ve,re=k.touches[0].clientY-ye,q=k.touches[1].clientX-ve,Z=k.touches[1].clientY-ye,me=0<=F&&F<=Te&&0<=q&&q<=Te&&0<=re&&re<=be&&0<=Z&&Z<=be;var Le=he.pan(),$e=he.zoom();ie=ae(F,re,q,Z),ue=xe(F,re,q,Z),ge=[(F+q)/2,(re+Z)/2],se=[(ge[0]-Le.x)/$e,(ge[1]-Le.y)/$e];var ot=200,gt=ot*ot;if(ue=1){for(var ir=t.touchData.startPosition=[null,null,null,null,null,null],kt=0;kt=t.touchTapThreshold2}if(he&&t.touchData.cxt){k.preventDefault();var ir=k.touches[0].clientX-ve,kt=k.touches[0].clientY-ye,Jt=k.touches[1].clientX-ve,Ut=k.touches[1].clientY-ye,Er=xe(ir,kt,Jt,Ut),Rr=Er/ue,Ta=150,Xr=Ta*Ta,Ca=1.5,Jn=Ca*Ca;if(Rr>=Jn||Er>=Xr){t.touchData.cxt=!1,t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var Wr={originalEvent:k,type:"cxttapend",position:{x:we[0],y:we[1]}};t.touchData.start?(t.touchData.start.unactivate().emit(Wr),t.touchData.start=null):Ee.emit(Wr)}}if(he&&t.touchData.cxt){var Wr={originalEvent:k,type:"cxtdrag",position:{x:we[0],y:we[1]}};t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.touchData.start?t.touchData.start.emit(Wr):Ee.emit(Wr),t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxtDragged=!0;var Xt=t.findNearestElement(we[0],we[1],!0,!0);(!t.touchData.cxtOver||Xt!==t.touchData.cxtOver)&&(t.touchData.cxtOver&&t.touchData.cxtOver.emit({originalEvent:k,type:"cxtdragout",position:{x:we[0],y:we[1]}}),t.touchData.cxtOver=Xt,Xt&&Xt.emit({originalEvent:k,type:"cxtdragover",position:{x:we[0],y:we[1]}}))}else if(he&&k.touches[2]&&Ee.boxSelectionEnabled())k.preventDefault(),t.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,t.touchData.selecting||Ee.emit({originalEvent:k,type:"boxstart",position:{x:we[0],y:we[1]}}),t.touchData.selecting=!0,t.touchData.didSelect=!0,Se[4]=1,!Se||Se.length===0||Se[0]===void 0?(Se[0]=(we[0]+we[2]+we[4])/3,Se[1]=(we[1]+we[3]+we[5])/3,Se[2]=(we[0]+we[2]+we[4])/3+1,Se[3]=(we[1]+we[3]+we[5])/3+1):(Se[2]=(we[0]+we[2]+we[4])/3,Se[3]=(we[1]+we[3]+we[5])/3),t.redrawHint("select",!0),t.redraw();else if(he&&k.touches[1]&&!t.touchData.didSelect&&Ee.zoomingEnabled()&&Ee.panningEnabled()&&Ee.userZoomingEnabled()&&Ee.userPanningEnabled()){k.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 vr=t.touchData.start,ir=k.touches[0].clientX-ve,kt=k.touches[0].clientY-ye,Jt=k.touches[1].clientX-ve,Ut=k.touches[1].clientY-ye,Bu=ae(ir,kt,Jt,Ut),hp=Bu/ie;if(me){var cp=ir-F,vp=kt-re,dp=Jt-q,gp=Ut-Z,pp=(cp+dp)/2,yp=(vp+gp)/2,an=Ee.zoom(),Xi=an*hp,ei=Ee.pan(),Fu=se[0]*an+ei.x,zu=se[1]*an+ei.y,mp={x:-Xi/an*(Fu-ei.x-pp)+Fu,y:-Xi/an*(zu-ei.y-yp)+zu};if(vr&&vr.active()){var $t=t.dragData.touchDragEles;y($t),t.redrawHint("drag",!0),t.redrawHint("eles",!0),vr.unactivate().emit("freeon"),$t.emit("free"),t.dragData.didDrag&&(vr.emit("dragfreeon"),$t.emit("dragfree"))}Ee.viewport({zoom:Xi,pan:mp,cancelOnFailedZoom:!0}),Ee.emit("pinchzoom"),ie=Bu,F=ir,re=kt,q=Jt,Z=Ut,t.pinching=!0}if(k.touches[0]){var $e=t.projectIntoViewport(k.touches[0].clientX,k.touches[0].clientY);we[0]=$e[0],we[1]=$e[1]}if(k.touches[1]){var $e=t.projectIntoViewport(k.touches[1].clientX,k.touches[1].clientY);we[2]=$e[0],we[3]=$e[1]}if(k.touches[2]){var $e=t.projectIntoViewport(k.touches[2].clientX,k.touches[2].clientY);we[4]=$e[0],we[5]=$e[1]}}else if(k.touches[0]&&!t.touchData.didSelect){var sr=t.touchData.start,Wi=t.touchData.last,Xt;if(!t.hoverData.draggingEles&&!t.swipePanning&&(Xt=t.findNearestElement(we[0],we[1],!0,!0)),he&&sr!=null&&k.preventDefault(),he&&sr!=null&&t.nodeIsDraggable(sr))if(gt){var $t=t.dragData.touchDragEles,Gu=!t.dragData.didDrag;Gu&&v($t,{inDragLayer:!0}),t.dragData.didDrag=!0;var nn={x:0,y:0};if(I(Qe[0])&&I(Qe[1])&&(nn.x+=Qe[0],nn.y+=Qe[1],Gu)){t.redrawHint("eles",!0);var or=t.touchData.dragDelta;or&&I(or[0])&&I(or[1])&&(nn.x+=or[0],nn.y+=or[1])}t.hoverData.draggingEles=!0,$t.silentShift(nn).emit("position drag"),t.redrawHint("drag",!0),t.touchData.startPosition[0]==qe[0]&&t.touchData.startPosition[1]==qe[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(sr||Xt,["touchmove","tapdrag","vmousemove"],k,{x:we[0],y:we[1]}),(!sr||!sr.grabbed())&&Xt!=Wi&&(Wi&&Wi.emit({originalEvent:k,type:"tapdragout",position:{x:we[0],y:we[1]}}),Xt&&Xt.emit({originalEvent:k,type:"tapdragover",position:{x:we[0],y:we[1]}})),t.touchData.last=Xt,he)for(var Wt=0;Wt0&&!t.hoverData.draggingEles&&!t.swipePanning&&t.data.bgActivePosistion!=null&&(t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.redraw())}},!1);var Me;t.registerBinding(e,"touchcancel",Me=function(k){var he=t.touchData.start;t.touchData.capture=!1,he&&he.unactivate()});var He,We,Re,Ie;if(t.registerBinding(e,"touchend",He=function(k){var he=t.touchData.start,Se=t.touchData.capture;if(Se)k.touches.length===0&&(t.touchData.capture=!1),k.preventDefault();else return;var Ee=t.selection;t.swipePanning=!1,t.hoverData.draggingEles=!1;var we=t.cy,qe=we.zoom(),Le=t.touchData.now,$e=t.touchData.earlier;if(k.touches[0]){var ot=t.projectIntoViewport(k.touches[0].clientX,k.touches[0].clientY);Le[0]=ot[0],Le[1]=ot[1]}if(k.touches[1]){var ot=t.projectIntoViewport(k.touches[1].clientX,k.touches[1].clientY);Le[2]=ot[0],Le[3]=ot[1]}if(k.touches[2]){var ot=t.projectIntoViewport(k.touches[2].clientX,k.touches[2].clientY);Le[4]=ot[0],Le[5]=ot[1]}he&&he.unactivate();var gt;if(t.touchData.cxt){if(gt={originalEvent:k,type:"cxttapend",position:{x:Le[0],y:Le[1]}},he?he.emit(gt):we.emit(gt),!t.touchData.cxtDragged){var Qe={originalEvent:k,type:"cxttap",position:{x:Le[0],y:Le[1]}};he?he.emit(Qe):we.emit(Qe)}t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxt=!1,t.touchData.start=null,t.redraw();return}if(!k.touches[2]&&we.boxSelectionEnabled()&&t.touchData.selecting){t.touchData.selecting=!1;var lt=we.collection(t.getAllInBox(Ee[0],Ee[1],Ee[2],Ee[3]));Ee[0]=void 0,Ee[1]=void 0,Ee[2]=void 0,Ee[3]=void 0,Ee[4]=0,t.redrawHint("select",!0),we.emit({type:"boxend",originalEvent:k,position:{x:Le[0],y:Le[1]}});var Ke=function(Xr){return Xr.selectable()&&!Xr.selected()};lt.emit("box").stdFilter(Ke).select().emit("boxselect"),lt.nonempty()&&t.redrawHint("eles",!0),t.redraw()}if(he!=null&&he.unactivate(),k.touches[2])t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);else if(!k.touches[1]){if(!k.touches[0]){if(!k.touches[0]){t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var Je=t.dragData.touchDragEles;if(he!=null){var Dt=he._private.grabbed;y(Je),t.redrawHint("drag",!0),t.redrawHint("eles",!0),Dt&&(he.emit("freeon"),Je.emit("free"),t.dragData.didDrag&&(he.emit("dragfreeon"),Je.emit("dragfree"))),a(he,["touchend","tapend","vmouseup","tapdragout"],k,{x:Le[0],y:Le[1]}),he.unactivate(),t.touchData.start=null}else{var Rt=t.findNearestElement(Le[0],Le[1],!0,!0);a(Rt,["touchend","tapend","vmouseup","tapdragout"],k,{x:Le[0],y:Le[1]})}var nr=t.touchData.startPosition[0]-Le[0],ir=nr*nr,kt=t.touchData.startPosition[1]-Le[1],Jt=kt*kt,Ut=ir+Jt,Er=Ut*qe*qe;t.touchData.singleTouchMoved||(he||we.$(":selected").unselect(["tapunselect"]),a(he,["tap","vclick"],k,{x:Le[0],y:Le[1]}),We=!1,k.timeStamp-Ie<=we.multiClickDebounceTime()?(Re&&clearTimeout(Re),We=!0,Ie=null,a(he,["dbltap","vdblclick"],k,{x:Le[0],y:Le[1]})):(Re=setTimeout(function(){We||a(he,["onetap","voneclick"],k,{x:Le[0],y:Le[1]})},we.multiClickDebounceTime()),Ie=k.timeStamp)),he!=null&&!t.dragData.didDrag&&he._private.selectable&&Er"u"){var Ge=[],Fe=function(k){return{clientX:k.clientX,clientY:k.clientY,force:1,identifier:k.pointerId,pageX:k.pageX,pageY:k.pageY,radiusX:k.width/2,radiusY:k.height/2,screenX:k.screenX,screenY:k.screenY,target:k.target}},ke=function(k){return{event:k,touch:Fe(k)}},ze=function(k){Ge.push(ke(k))},je=function(k){for(var he=0;he0)return se[0]}return null},d=Object.keys(h),v=0;v0?c:xs(i,s,e,r,a,n,o)},checkPoint:function(e,r,a,n,i,s,o){var l=za(n,i),u=2*l;if(pr(e,r,this.points,s,o,n,i-u,[0,-1],a)||pr(e,r,this.points,s,o,n-u,i,[0,-1],a))return!0;var f=n/2+2*a,h=i/2+2*a,c=[s-f,o-h,s-f,o,s+f,o,s+f,o-h];return!!(Ht(e,r,c)||zr(e,r,u,u,s+n/2-l,o+i/2-l,a)||zr(e,r,u,u,s-n/2+l,o+i/2-l,a))}}},mr.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=ci(5,0),i=ci(5,Math.PI/5),s=.5*(3-Math.sqrt(5));s*=1.57;for(var o=0;o=e.deqFastCost*E)break}else if(u){if(m>=e.deqCost*d||m>=e.deqAvgCost*c)break}else if(b>=e.deqNoDrawCost*Gi)break;var N=e.deq(a,y,p);if(N.length>0)for(var A=0;A0&&(e.onDeqd(a,v),!u&&e.shouldRedraw(a,v,y,p)&&i())},o=e.priority||ii;n.beforeRender(s,o(a))}}}},mg=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:vn;ce(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&&Tt("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}(),gu=25,Kn=50,Zn=-4,Vi=3,bg=7.99,Eg=8,wg=1024,xg=1024,Tg=1024,Cg=.2,Dg=.8,Sg=10,Lg=.15,Ag=.1,Og=.9,Ng=.9,Mg=100,Ig=1,Ea={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},Rg=At({getKey:null,doesEleInvalidateKey:vn,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:cs,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),en=function(e,r){var a=this;a.renderer=e,a.onDequeues=[];var n=Rg(r);Ue(a,n),a.lookup=new mg(n.getKey,n.doesEleInvalidateKey),a.setupDequeueing()},St=en.prototype;St.reasons=Ea,St.getTextureQueue=function(t){var e=this;return e.eleImgCaches=e.eleImgCaches||{},e.eleImgCaches[t]=e.eleImgCaches[t]||[]},St.getRetiredTextureQueue=function(t){var e=this,r=e.eleImgCaches.retired=e.eleImgCaches.retired||{},a=r[t]=r[t]||[];return a},St.getElementQueue=function(){var t=this,e=t.eleCacheQueue=t.eleCacheQueue||new ka(function(r,a){return a.reqs-r.reqs});return e},St.getElementKeyToQueue=function(){var t=this,e=t.eleKeyToCacheQueue=t.eleKeyToCacheQueue||{};return e},St.getElement=function(t,e,r,a,n){var i=this,s=this.renderer,o=s.cy.zoom(),l=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(o*r))),a=bg||a>Vi)return null;var u=Math.pow(2,a),f=e.h*u,h=e.w*u,c=s.eleTextBiggerThanMin(t,u);if(!this.isVisible(t,c))return null;var d=l.get(t,a);if(d&&d.invalidated&&(d.invalidated=!1,d.texture.invalidatedWidth-=d.width),d)return d;var v;if(f<=gu?v=gu:f<=Kn?v=Kn:v=Math.ceil(f/Kn)*Kn,f>Tg||h>xg)return null;var p=i.getTextureQueue(v),y=p[p.length-2],g=function(){return i.recycleTexture(v,h)||i.addTexture(v,h)};y||(y=p[p.length-1]),y||(y=g()),y.width-y.usedWidtha;z--)C=i.getElement(t,e,r,z,Ea.downscale);B()}else return i.queueElement(t,A.level-1),A;else{var M;if(!b&&!E&&!N)for(var X=a-1;X>=Zn;X--){var F=l.get(t,X);if(F){M=F;break}}if(m(M))return i.queueElement(t,a),M;y.context.translate(y.usedWidth,0),y.context.scale(u,u),this.drawElement(y.context,t,e,c,!1),y.context.scale(1/u,1/u),y.context.translate(-y.usedWidth,0)}return d={x:y.usedWidth,texture:y,level:a,scale:u,width:h,height:f,scaledLabelShown:c},y.usedWidth+=Math.ceil(h+Eg),y.eleCaches.push(d),l.set(t,a,d),i.checkTextureFullness(y),d},St.invalidateElements=function(t){for(var e=0;e=Cg*t.width&&this.retireTexture(t)},St.checkTextureFullness=function(t){var e=this,r=e.getTextureQueue(t.height);t.usedWidth/t.width>Dg&&t.fullnessChecks>=Sg?xr(r,t):t.fullnessChecks++},St.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,s=0;s=e)return s.retired=!1,s.usedWidth=0,s.invalidatedWidth=0,s.fullnessChecks=0,si(s.eleCaches),s.context.setTransform(1,0,0,1,0,0),s.context.clearRect(0,0,s.width,s.height),xr(n,s),a.push(s),s}},St.queueElement=function(t,e){var r=this,a=r.getElementQueue(),n=r.getElementKeyToQueue(),i=this.getKey(t),s=n[i];if(s)s.level=Math.max(s.level,e),s.eles.merge(t),s.reqs++,a.updateItem(s);else{var o={eles:t.spawn().merge(t),level:e,reqs:1,key:i};a.push(o),n[i]=o}},St.dequeue=function(t){for(var e=this,r=e.getElementQueue(),a=e.getElementKeyToQueue(),n=[],i=e.lookup,s=0;s0;s++){var o=r.pop(),l=o.key,u=o.eles[0],f=i.hasCache(u,o.level);if(a[l]=null,f)continue;n.push(o);var h=e.getBoundingBox(u);e.getElement(u,h,t,o.level,Ea.dequeue)}return n},St.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=ni,r.updateItem(i),r.pop(),a[n]=null):i.eles.unmerge(t))},St.onDequeue=function(t){this.onDequeues.push(t)},St.offDequeue=function(t){xr(this.onDequeues,t)},St.setupDequeueing=du.setupDequeueing({deqRedrawThreshold:Mg,deqCost:Lg,deqAvgCost:Ag,deqNoDrawCost:Og,deqFastCost:Ng,deq:function(e,r,a){return e.dequeue(r,a)},onDeqd:function(e,r){for(var a=0;a=Pg||r>Qn)return null}a.validateLayersElesOrdering(r,t);var l=a.layersByLevel,u=Math.pow(2,r),f=l[r]=l[r]||[],h,c=a.levelIsComplete(r,t),d,v=function(){var B=function(re){if(a.validateLayersElesOrdering(re,t),a.levelIsComplete(re,t))return d=l[re],!0},z=function(re){if(!d)for(var q=r+re;tn<=q&&q<=Qn&&!B(q);q+=re);};z(1),z(-1);for(var M=f.length-1;M>=0;M--){var X=f[M];X.invalid&&xr(f,X)}};if(!c)v();else return f;var p=function(){if(!h){h=Yt();for(var B=0;BUg)return null;var X=a.makeLayer(h,r);if(z!=null){var F=f.indexOf(z)+1;f.splice(F,0,X)}else(B.insert===void 0||B.insert)&&f.unshift(X);return X};if(a.skipping&&!o)return null;for(var g=null,m=t.length/kg,b=!o,E=0;E=m||!ws(g.bb,N.boundingBox()))&&(g=y({insert:!0,after:g}),!g))return null;d||b?a.queueLayer(g,N):a.drawEleInLayer(g,N,r,e),g.eles.push(N),x[r]=g}return d||(b?null:f)},It.getEleLevelForLayerLevel=function(t,e){return t},It.drawEleInLayer=function(t,e,r,a){var n=this,i=this.renderer,s=t.context,o=e.boundingBox();o.w===0||o.h===0||!e.visible()||(r=n.getEleLevelForLayerLevel(r,a),i.setImgSmoothing(s,!1),i.drawCachedElement(s,e,null,null,r,Yg),i.setImgSmoothing(s,!0))},It.levelIsComplete=function(t,e){var r=this,a=r.layersByLevel[t];if(!a||a.length===0)return!1;for(var n=0,i=0;i0||s.invalid)return!1;n+=s.eles.length}return n===e.length},It.validateLayersElesOrdering=function(t,e){var r=this.layersByLevel[t];if(r)for(var a=0;a0){e=!0;break}}return e},It.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)}))},It.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;n3&&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,s=this,o=e._private.rscratch;if(!(i&&!e.visible())&&!(o.badLine||o.allpts==null||isNaN(o.allpts[0]))){var l;r&&(l=r,t.translate(-l.x1,-l.y1));var u=i?e.pstyle("opacity").value:1,f=i?e.pstyle("line-opacity").value:1,h=e.pstyle("curve-style").value,c=e.pstyle("line-style").value,d=e.pstyle("width").pfValue,v=e.pstyle("line-cap").value,p=u*f,y=u*f,g=function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p;h==="straight-triangle"?(s.eleStrokeStyle(t,e,M),s.drawEdgeTrianglePath(e,t,o.allpts)):(t.lineWidth=d,t.lineCap=v,s.eleStrokeStyle(t,e,M),s.drawEdgePath(e,t,o.allpts,c),t.lineCap="butt")},m=function(){n&&s.drawEdgeOverlay(t,e)},b=function(){n&&s.drawEdgeUnderlay(t,e)},E=function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:y;s.drawArrowheads(t,e,M)},N=function(){s.drawElementText(t,e,null,a)};t.lineJoin="round";var A=e.pstyle("ghost").value==="yes";if(A){var x=e.pstyle("ghost-offset-x").pfValue,R=e.pstyle("ghost-offset-y").pfValue,C=e.pstyle("ghost-opacity").value,B=p*C;t.translate(x,R),g(B),E(B),t.translate(-x,-R)}b(),g(),E(),m(),N(),r&&t.translate(l.x1,l.y1)}};var xu=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,s=i.usePaths(),o=a._private.rscratch,l=a.pstyle("".concat(e,"-padding")).pfValue,u=2*l,f=a.pstyle("".concat(e,"-color")).value;r.lineWidth=u,o.edgeType==="self"&&!s?r.lineCap="butt":r.lineCap="round",i.colorStrokeStyle(r,f[0],f[1],f[2],n),i.drawEdgePath(a,r,o.allpts,"solid")}}}};br.drawEdgeOverlay=xu("overlay"),br.drawEdgeUnderlay=xu("underlay"),br.drawEdgePath=function(t,e,r,a){var n=t._private.rscratch,i=e,s,o=!1,l=this.usePaths(),u=t.pstyle("line-dash-pattern").pfValue,f=t.pstyle("line-dash-offset").pfValue;if(l){var h=r.join("$"),c=n.pathCacheKey&&n.pathCacheKey===h;c?(s=e=n.pathCache,o=!0):(s=e=new Path2D,n.pathCacheKey=h,n.pathCache=s)}if(i.setLineDash)switch(a){case"dotted":i.setLineDash([1,1]);break;case"dashed":i.setLineDash(u),i.lineDashOffset=f;break;case"solid":i.setLineDash([]);break}if(!o&&!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+35&&arguments[5]!==void 0?arguments[5]:!0,s=this;if(a==null){if(i&&!s.eleTextBiggerThanMin(e))return}else if(a===!1)return;if(e.isNode()){var o=e.pstyle("label");if(!o||!o.value)return;var l=s.getLabelJustification(e);t.textAlign=l,t.textBaseline="bottom"}else{var u=e.element()._private.rscratch.badLine,f=e.pstyle("label"),h=e.pstyle("source-label"),c=e.pstyle("target-label");if(u||(!f||!f.value)&&(!h||!h.value)&&(!c||!c.value))return;t.textAlign="center",t.textBaseline="bottom"}var d=!r,v;r&&(v=r,t.translate(-v.x1,-v.y1)),n==null?(s.drawText(t,e,null,d,i),e.isEdge()&&(s.drawText(t,e,"source",d,i),s.drawText(t,e,"target",d,i))):s.drawText(t,e,n,d,i),r&&t.translate(v.x1,v.y1)},Ur.getFontCache=function(t){var e;this.fontCaches=this.fontCaches||[];for(var r=0;r2&&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,s=e.pstyle("font-weight").strValue,o=r?e.effectiveOpacity()*e.pstyle("text-opacity").value:1,l=e.pstyle("text-outline-opacity").value*o,u=e.pstyle("color").value,f=e.pstyle("text-outline-color").value;t.font=a+" "+s+" "+n+" "+i,t.lineJoin="round",this.colorFillStyle(t,u[0],u[1],u[2],o),this.colorStrokeStyle(t,f[0],f[1],f[2],l)};function tp(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()}Ur.getTextAngle=function(t,e){var r,a=t._private,n=a.rscratch,i=e?e+"-":"",s=t.pstyle(i+"text-rotation"),o=tr(n,"labelAngle",e);return s.strValue==="autorotate"?r=t.isEdge()?o:0:s.strValue==="none"?r=0:r=s.pfValue,r},Ur.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,s=i.rscratch,o=n?e.effectiveOpacity():1;if(!(n&&(o===0||e.pstyle("text-opacity").value===0))){r==="main"&&(r=null);var l=tr(s,"labelX",r),u=tr(s,"labelY",r),f,h,c=this.getLabelText(e,r);if(c!=null&&c!==""&&!isNaN(l)&&!isNaN(u)){this.setupTextStyle(t,e,n);var d=r?r+"-":"",v=tr(s,"labelWidth",r),p=tr(s,"labelHeight",r),y=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"),l+=y,u+=g;var N;switch(a?N=this.getTextAngle(e,r):N=0,N!==0&&(f=l,h=u,t.translate(f,h),t.rotate(N),l=0,u=0),E){case"top":break;case"center":u+=p/2;break;case"bottom":u+=p;break}var A=e.pstyle("text-background-opacity").value,x=e.pstyle("text-border-opacity").value,R=e.pstyle("text-border-width").pfValue,C=e.pstyle("text-background-padding").pfValue;if(A>0||R>0&&x>0){var B=l-C;switch(b){case"left":B-=v;break;case"center":B-=v/2;break}var z=u-p-C,M=v+2*C,X=p+2*C;if(A>0){var F=t.fillStyle,re=e.pstyle("text-background-color").value;t.fillStyle="rgba("+re[0]+","+re[1]+","+re[2]+","+A*o+")";var q=e.pstyle("text-background-shape").strValue;q.indexOf("round")===0?tp(t,B,z,M,X,2):t.fillRect(B,z,M,X),t.fillStyle=F}if(R>0&&x>0){var Z=t.strokeStyle,ie=t.lineWidth,ue=e.pstyle("text-border-color").value,ge=e.pstyle("text-border-style").value;if(t.strokeStyle="rgba("+ue[0]+","+ue[1]+","+ue[2]+","+x*o+")",t.lineWidth=R,t.setLineDash)switch(ge){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"double":t.lineWidth=R/4,t.setLineDash([]);break;case"solid":t.setLineDash([]);break}if(t.strokeRect(B,z,M,X),ge==="double"){var se=R/2;t.strokeRect(B+se,z+se,M-se*2,X-se*2)}t.setLineDash&&t.setLineDash([]),t.lineWidth=ie,t.strokeStyle=Z}}var ve=2*e.pstyle("text-outline-width").pfValue;if(ve>0&&(t.lineWidth=ve),e.pstyle("text-wrap").value==="wrap"){var ye=tr(s,"labelWrapCachedLines",r),Te=tr(s,"labelLineHeight",r),be=v/2,me=this.getLabelJustification(e);switch(me==="auto"||(b==="left"?me==="left"?l+=-v:me==="center"&&(l+=-be):b==="center"?me==="left"?l+=-be:me==="right"&&(l+=be):b==="right"&&(me==="center"?l+=be:me==="right"&&(l+=v))),E){case"top":u-=(ye.length-1)*Te;break;case"center":case"bottom":u-=(ye.length-1)*Te;break}for(var ae=0;ae0&&t.strokeText(ye[ae],l,u),t.fillText(ye[ae],l,u),u+=Te}else ve>0&&t.strokeText(c,l,u),t.fillText(c,l,u);N!==0&&(t.rotate(-N),t.translate(-f,-h))}}};var wa={};wa.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,s=this,o,l,u=e._private,f=u.rscratch,h=e.position();if(!(!I(h.x)||!I(h.y))&&!(i&&!e.visible())){var c=i?e.effectiveOpacity():1,d=s.usePaths(),v,p=!1,y=e.padding();o=e.width()+2*y,l=e.height()+2*y;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),N=new Array(b.length),A=0,x=0;x0&&arguments[0]!==void 0?arguments[0]:X;s.eleFillStyle(t,e,ke)},ie=function(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:q;s.colorStrokeStyle(t,F[0],F[1],F[2],ke)},ue=e.pstyle("shape").strValue,ge=e.pstyle("shape-polygon-points").pfValue;if(d){t.translate(h.x,h.y);var se=s.nodePathCache=s.nodePathCache||[],ve=fs(ue==="polygon"?ue+","+ge.join(","):ue,""+l,""+o),ye=se[ve];ye!=null?(v=ye,p=!0,f.pathCache=v):(v=new Path2D,se[ve]=f.pathCache=v)}var Te=function(){if(!p){var ke=h;d&&(ke={x:0,y:0}),s.nodeShapes[s.getNodeShape(e)].draw(v||t,ke.x,ke.y,o,l)}d?t.fill(v):t.fill()},be=function(){for(var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:c,ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,je=u.backgrounding,Ze=0,Ye=0;Ye0&&arguments[0]!==void 0?arguments[0]:!1,ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:c;s.hasPie(e)&&(s.drawPie(t,e,ze),ke&&(d||s.nodeShapes[s.getNodeShape(e)].draw(t,h.x,h.y,o,l)))},ae=function(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:c,ze=(z>0?z:-z)*ke,je=z>0?0:255;z!==0&&(s.colorFillStyle(t,je,je,je,ze),d?t.fill(v):t.fill())},xe=function(){if(M>0){if(t.lineWidth=M,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(v):t.stroke(),re==="double"){t.lineWidth=M/3;var ke=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",d?t.stroke(v):t.stroke(),t.globalCompositeOperation=ke}t.setLineDash&&t.setLineDash([])}},Ce=function(){n&&s.drawNodeOverlay(t,e,h,o,l)},Oe=function(){n&&s.drawNodeUnderlay(t,e,h,o,l)},Me=function(){s.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,Ie=e.pstyle("ghost-opacity").value,Ge=Ie*c;t.translate(We,Re),Z(Ie*X),Te(),be(Ge,!0),ie(Ie*q),xe(),me(z!==0||M!==0),be(Ge,!1),ae(Ge),t.translate(-We,-Re)}d&&t.translate(-h.x,-h.y),Oe(),d&&t.translate(h.x,h.y),Z(),Te(),be(c,!0),ie(),xe(),me(z!==0||M!==0),be(c,!1),ae(),d&&t.translate(-h.x,-h.y),Me(),Ce(),r&&t.translate(g.x1,g.y1)}};var Tu=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(r,a,n,i,s){var o=this;if(a.visible()){var l=a.pstyle("".concat(e,"-padding")).pfValue,u=a.pstyle("".concat(e,"-opacity")).value,f=a.pstyle("".concat(e,"-color")).value,h=a.pstyle("".concat(e,"-shape")).value;if(u>0){if(n=n||a.position(),i==null||s==null){var c=a.padding();i=a.width()+2*c,s=a.height()+2*c}o.colorFillStyle(r,f[0],f[1],f[2],u),o.nodeShapes[h].draw(r,n.x,n.y,i+l*2,s+l*2),r.fill()}}}};wa.drawNodeOverlay=Tu("overlay"),wa.drawNodeUnderlay=Tu("underlay"),wa.hasPie=function(t){return t=t[0],t._private.hasPie},wa.drawPie=function(t,e,r,a){e=e[0],a=a||e.position();var n=e.cy().style(),i=e.pstyle("pie-size"),s=a.x,o=a.y,l=e.width(),u=e.height(),f=Math.min(l,u)/2,h=0,c=this.usePaths();c&&(s=0,o=0),i.units==="%"?f=f*i.pfValue:i.pfValue!==void 0&&(f=i.pfValue/2);for(var d=1;d<=n.pieBackgroundN;d++){var v=e.pstyle("pie-"+d+"-background-size").value,p=e.pstyle("pie-"+d+"-background-color").value,y=e.pstyle("pie-"+d+"-background-opacity").value*r,g=v/100;g+h>1&&(g=1-h);var m=1.5*Math.PI+2*Math.PI*h,b=2*Math.PI*g,E=m+b;v===0||h>=1||h+g>1||(t.beginPath(),t.moveTo(s,o),t.arc(s,o,f,m,E),t.closePath(),this.colorFillStyle(t,p[0],p[1],p[2],y),t.fill(),h+=g)}};var Kt={},rp=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;ns.minMbLowQualFrames&&(s.motionBlurPxRatio=s.mbPxRBlurry)),s.clearingMotionBlur&&(s.motionBlurPxRatio=1),s.textureDrawLastFrame&&!h&&(f[s.NODE]=!0,f[s.SELECT_BOX]=!0);var m=l.style(),b=l.zoom(),E=n!==void 0?n:b,N=l.pan(),A={x:N.x,y:N.y},x={zoom:b,pan:{x:N.x,y:N.y}},R=s.prevViewport,C=R===void 0||x.zoom!==R.zoom||x.pan.x!==R.pan.x||x.pan.y!==R.pan.y;!C&&!(p&&!v)&&(s.motionBlurPxRatio=1),i&&(A=i),E*=o,A.x*=o,A.y*=o;var B=s.getCachedZSortedEles();function z(Re,Ie,Ge,Fe,ke){var ze=Re.globalCompositeOperation;Re.globalCompositeOperation="destination-out",s.colorFillStyle(Re,255,255,255,s.motionBlurTransparency),Re.fillRect(Ie,Ge,Fe,ke),Re.globalCompositeOperation=ze}function M(Re,Ie){var Ge,Fe,ke,ze;!s.clearingMotionBlur&&(Re===u.bufferContexts[s.MOTIONBLUR_BUFFER_NODE]||Re===u.bufferContexts[s.MOTIONBLUR_BUFFER_DRAG])?(Ge={x:N.x*d,y:N.y*d},Fe=b*d,ke=s.canvasWidth*d,ze=s.canvasHeight*d):(Ge=A,Fe=E,ke=s.canvasWidth,ze=s.canvasHeight),Re.setTransform(1,0,0,1,0,0),Ie==="motionBlur"?z(Re,0,0,ke,ze):!e&&(Ie===void 0||Ie)&&Re.clearRect(0,0,ke,ze),r||(Re.translate(Ge.x,Ge.y),Re.scale(Fe,Fe)),i&&Re.translate(i.x,i.y),n&&Re.scale(n,n)}if(h||(s.textureDrawLastFrame=!1),h){if(s.textureDrawLastFrame=!0,!s.textureCache){s.textureCache={},s.textureCache.bb=l.mutableElements().boundingBox(),s.textureCache.texture=s.data.bufferCanvases[s.TEXTURE_BUFFER];var X=s.data.bufferContexts[s.TEXTURE_BUFFER];X.setTransform(1,0,0,1,0,0),X.clearRect(0,0,s.canvasWidth*s.textureMult,s.canvasHeight*s.textureMult),s.render({forcedContext:X,drawOnlyNodeLayer:!0,forcedPxRatio:o*s.textureMult});var x=s.textureCache.viewport={zoom:l.zoom(),pan:l.pan(),width:s.canvasWidth,height:s.canvasHeight};x.mpan={x:(0-x.pan.x)/x.zoom,y:(0-x.pan.y)/x.zoom}}f[s.DRAG]=!1,f[s.NODE]=!1;var F=u.contexts[s.NODE],re=s.textureCache.texture,x=s.textureCache.viewport;F.setTransform(1,0,0,1,0,0),c?z(F,0,0,x.width,x.height):F.clearRect(0,0,x.width,x.height);var q=m.core("outside-texture-bg-color").value,Z=m.core("outside-texture-bg-opacity").value;s.colorFillStyle(F,q[0],q[1],q[2],Z),F.fillRect(0,0,x.width,x.height);var b=l.zoom();M(F,!1),F.clearRect(x.mpan.x,x.mpan.y,x.width/x.zoom/o,x.height/x.zoom/o),F.drawImage(re,x.mpan.x,x.mpan.y,x.width/x.zoom/o,x.height/x.zoom/o)}else s.textureOnViewport&&!e&&(s.textureCache=null);var ie=l.extent(),ue=s.pinching||s.hoverData.dragging||s.swipePanning||s.data.wheelZooming||s.hoverData.draggingEles||s.cy.animated(),ge=s.hideEdgesOnViewport&&ue,se=[];if(se[s.NODE]=!f[s.NODE]&&c&&!s.clearedForMotionBlur[s.NODE]||s.clearingMotionBlur,se[s.NODE]&&(s.clearedForMotionBlur[s.NODE]=!0),se[s.DRAG]=!f[s.DRAG]&&c&&!s.clearedForMotionBlur[s.DRAG]||s.clearingMotionBlur,se[s.DRAG]&&(s.clearedForMotionBlur[s.DRAG]=!0),f[s.NODE]||r||a||se[s.NODE]){var ve=c&&!se[s.NODE]&&d!==1,F=e||(ve?s.data.bufferContexts[s.MOTIONBLUR_BUFFER_NODE]:u.contexts[s.NODE]),ye=c&&!ve?"motionBlur":void 0;M(F,ye),ge?s.drawCachedNodes(F,B.nondrag,o,ie):s.drawLayeredElements(F,B.nondrag,o,ie),s.debug&&s.drawDebugPoints(F,B.nondrag),!r&&!c&&(f[s.NODE]=!1)}if(!a&&(f[s.DRAG]||r||se[s.DRAG])){var ve=c&&!se[s.DRAG]&&d!==1,F=e||(ve?s.data.bufferContexts[s.MOTIONBLUR_BUFFER_DRAG]:u.contexts[s.DRAG]);M(F,c&&!ve?"motionBlur":void 0),ge?s.drawCachedNodes(F,B.drag,o,ie):s.drawCachedElements(F,B.drag,o,ie),s.debug&&s.drawDebugPoints(F,B.drag),!r&&!c&&(f[s.DRAG]=!1)}if(s.showFps||!a&&f[s.SELECT_BOX]&&!r){var F=e||u.contexts[s.SELECT_BOX];if(M(F),s.selection[4]==1&&(s.hoverData.selecting||s.touchData.selecting)){var b=s.cy.zoom(),Te=m.core("selection-box-border-width").value/b;F.lineWidth=Te,F.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+")",F.fillRect(s.selection[0],s.selection[1],s.selection[2]-s.selection[0],s.selection[3]-s.selection[1]),Te>0&&(F.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+")",F.strokeRect(s.selection[0],s.selection[1],s.selection[2]-s.selection[0],s.selection[3]-s.selection[1]))}if(u.bgActivePosistion&&!s.hoverData.selecting){var b=s.cy.zoom(),be=u.bgActivePosistion;F.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+")",F.beginPath(),F.arc(be.x,be.y,m.core("active-bg-size").pfValue/b,0,2*Math.PI),F.fill()}var me=s.lastRedrawTime;if(s.showFps&&me){me=Math.round(me);var ae=Math.round(1e3/me);F.setTransform(1,0,0,1,0,0),F.fillStyle="rgba(255, 0, 0, 0.75)",F.strokeStyle="rgba(255, 0, 0, 0.75)",F.lineWidth=1,F.fillText("1 frame = "+me+" ms = "+ae+" fps",0,20);var xe=60;F.strokeRect(0,30,250,20),F.fillRect(0,30,250*Math.min(ae/xe,1),20)}r||(f[s.SELECT_BOX]=!1)}if(c&&d!==1){var Ce=u.contexts[s.NODE],Oe=s.data.bufferCanvases[s.MOTIONBLUR_BUFFER_NODE],Me=u.contexts[s.DRAG],He=s.data.bufferCanvases[s.MOTIONBLUR_BUFFER_DRAG],We=function(Ie,Ge,Fe){Ie.setTransform(1,0,0,1,0,0),Fe||!g?Ie.clearRect(0,0,s.canvasWidth,s.canvasHeight):z(Ie,0,0,s.canvasWidth,s.canvasHeight);var ke=d;Ie.drawImage(Ge,0,0,s.canvasWidth*ke,s.canvasHeight*ke,0,0,s.canvasWidth,s.canvasHeight)};(f[s.NODE]||se[s.NODE])&&(We(Ce,Oe,se[s.NODE]),f[s.NODE]=!1),(f[s.DRAG]||se[s.DRAG])&&(We(Me,He,se[s.DRAG]),f[s.DRAG]=!1)}s.prevViewport=x,s.clearingMotionBlur&&(s.clearingMotionBlur=!1,s.motionBlurCleared=!0,s.motionBlur=!0),c&&(s.motionBlurTimeout=setTimeout(function(){s.motionBlurTimeout=null,s.clearedForMotionBlur[s.NODE]=!1,s.clearedForMotionBlur[s.DRAG]=!1,s.motionBlur=!1,s.clearingMotionBlur=!h,s.mbFrames=0,f[s.NODE]=!0,f[s.DRAG]=!0,s.redraw()},rp)),e||l.emit("render")};var Ir={};Ir.drawPolygonPath=function(t,e,r,a,n,i){var s=a/2,o=n/2;t.beginPath&&t.beginPath(),t.moveTo(e+s*i[0],r+o*i[1]);for(var l=1;l0&&s>0){d.clearRect(0,0,i,s),d.globalCompositeOperation="source-over";var v=this.getCachedZSortedEles();if(t.full)d.translate(-a.x1*u,-a.y1*u),d.scale(u,u),this.drawElements(d,v),d.scale(1/u,1/u),d.translate(a.x1*u,a.y1*u);else{var p=e.pan(),y={x:p.x*u,y:p.y*u};u*=e.zoom(),d.translate(y.x,y.y),d.scale(u,u),this.drawElements(d,v),d.scale(1/u,1/u),d.translate(-y.x,-y.y)}t.bg&&(d.globalCompositeOperation="destination-over",d.fillStyle=t.bg,d.rect(0,0,i,s),d.fill())}return c};function ap(t,e){for(var r=atob(t),a=new ArrayBuffer(r.length),n=new Uint8Array(a),i=0;i"u"?"undefined":ee(OffscreenCanvas))!=="undefined"?r=new OffscreenCanvas(t,e):(r=document.createElement("canvas"),r.width=t,r.height=e),r},[bu,cr,br,_i,Ur,wa,Kt,Ir,rn,Ou].forEach(function(t){Ue(st,t)});var sp=[{name:"null",impl:tu},{name:"base",impl:vu},{name:"canvas",impl:np}],op=[{type:"layout",extensions:dg},{type:"renderer",extensions:sp}],Mu={},Iu={};function Ru(t,e,r){var a=r,n=function(R){ut("Can not register `"+e+"` for `"+t+"` since `"+R+"` already exists in the prototype and can not be overridden")};if(t==="core"){if(Qa.prototype[e])return n(e);Qa.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(R){this.options=R,r.call(this,R),L(this._private)||(this._private={}),this._private.cy=R.cy,this._private.listeners=[],this.createEmitter()},s=i.prototype=Object.create(r.prototype),o=[],l=0;l$&&(this.rect.x-=(this.labelWidth-$)/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 $=this.rect.x;$>S.WORLD_BOUNDARY?$=S.WORLD_BOUNDARY:$<-S.WORLD_BOUNDARY&&($=-S.WORLD_BOUNDARY);var _=this.rect.y;_>S.WORLD_BOUNDARY?_=S.WORLD_BOUNDARY:_<-S.WORLD_BOUNDARY&&(_=-S.WORLD_BOUNDARY);var Q=new U($,_),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,ce,H){function O(T,w){T==null&&w==null?(this.x=0,this.y=0):(this.x=T,this.y=w)}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,ce,H){var O=H(2),T=H(10),w=H(0),S=H(6),G=H(3),U=H(1),P=H(13),K=H(12),D=H(11);function $(Q,ne,oe){O.call(this,oe),this.estimatedSize=T.MIN_VALUE,this.margin=w.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)}$.prototype=Object.create(O.prototype);for(var _ in O)$[_]=O[_];$.prototype.getNodes=function(){return this.nodes},$.prototype.getEdges=function(){return this.edges},$.prototype.getGraphManager=function(){return this.graphManager},$.prototype.getParent=function(){return this.parent},$.prototype.getLeft=function(){return this.left},$.prototype.getRight=function(){return this.right},$.prototype.getTop=function(){return this.top},$.prototype.getBottom=function(){return this.bottom},$.prototype.isConnected=function(){return this.isConnected},$.prototype.add=function(Q,ne,oe){if(ne==null&&oe==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(oe)>-1))throw"Source or target not in graph!";if(!(ne.owner==oe.owner&&ne.owner==this))throw"Both owners must be this graph!";return ne.owner!=oe.owner?null:(j.source=ne,j.target=oe,j.isInterGraph=!1,this.getEdges().push(j),ne.edges.push(j),oe!=ne&&oe.edges.push(j),j)}},$.prototype.remove=function(Q){var ne=Q;if(Q instanceof G){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 oe=ne.edges.slice(),J,j=oe.length,Y=0;Y-1&&V>-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(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)}},$.prototype.updateLeftTop=function(){for(var Q=T.MAX_VALUE,ne=T.MAX_VALUE,oe,J,j,Y=this.getNodes(),te=Y.length,L=0;Loe&&(Q=oe),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))},$.prototype.updateBounds=function(Q){for(var ne=T.MAX_VALUE,oe=-T.MAX_VALUE,J=T.MAX_VALUE,j=-T.MAX_VALUE,Y,te,L,V,I,W=this.nodes,fe=W.length,de=0;deY&&(ne=Y),oeL&&(J=L),jY&&(ne=Y),oeL&&(J=L),j=this.nodes.length){var fe=0;oe.forEach(function(de){de.owner==Q&&fe++}),fe==this.nodes.length&&(this.isConnected=!0)}},ee.exports=$},function(ee,ce,H){var O,T=H(1);function w(S){O=H(5),this.layout=S,this.graphs=[],this.edges=[]}w.prototype.addRoot=function(){var S=this.layout.newGraph(),G=this.layout.newNode(null),U=this.add(S,G);return this.setRootGraph(U),this.rootGraph},w.prototype.add=function(S,G,U,P,K){if(U==null&&P==null&&K==null){if(S==null)throw"Graph is null!";if(G==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(G.child!=null)throw"Already has a child!";return S.parent=G,G.child=S,S}else{K=U,P=G,U=S;var D=P.getOwner(),$=K.getOwner();if(!(D!=null&&D.getGraphManager()==this))throw"Source not in this graph mgr!";if(!($!=null&&$.getGraphManager()==this))throw"Target not in this graph mgr!";if(D==$)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}},w.prototype.remove=function(S){if(S instanceof O){var G=S;if(G.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(G==this.rootGraph||G.parent!=null&&G.parent.graphManager==this))throw"Invalid parent node!";var U=[];U=U.concat(G.getEdges());for(var P,K=U.length,D=0;D=S.getRight()?G[0]+=Math.min(S.getX()-w.getX(),w.getRight()-S.getRight()):S.getX()<=w.getX()&&S.getRight()>=w.getRight()&&(G[0]+=Math.min(w.getX()-S.getX(),S.getRight()-w.getRight())),w.getY()<=S.getY()&&w.getBottom()>=S.getBottom()?G[1]+=Math.min(S.getY()-w.getY(),w.getBottom()-S.getBottom()):S.getY()<=w.getY()&&S.getBottom()>=w.getBottom()&&(G[1]+=Math.min(w.getY()-S.getY(),S.getBottom()-w.getBottom()));var K=Math.abs((S.getCenterY()-w.getCenterY())/(S.getCenterX()-w.getCenterX()));S.getCenterY()===w.getCenterY()&&S.getCenterX()===w.getCenterX()&&(K=1);var D=K*G[0],$=G[1]/K;G[0]<$?$=G[0]:D=G[1],G[0]=-1*P[0]*($/2+U),G[1]=-1*P[1]*(D/2+U)},T.decideDirectionsForOverlappingNodes=function(w,S,G){w.getCenterX()D)return G[0]=U,G[1]=_,G[2]=K,G[3]=W,!1;if(PK)return G[0]=$,G[1]=P,G[2]=V,G[3]=D,!1;if(UK?(G[0]=ne,G[1]=oe,Ne=!0):(G[0]=Q,G[1]=_,Ne=!0):tt===Pe&&(U>K?(G[0]=$,G[1]=_,Ne=!0):(G[0]=J,G[1]=oe,Ne=!0)),-vt===Pe?K>U?(G[2]=I,G[3]=W,_e=!0):(G[2]=V,G[3]=L,_e=!0):vt===Pe&&(K>U?(G[2]=te,G[3]=L,_e=!0):(G[2]=fe,G[3]=W,_e=!0)),Ne&&_e)return!1;if(U>K?P>D?(Ve=this.getCardinalDirection(tt,Pe,4),Xe=this.getCardinalDirection(vt,Pe,2)):(Ve=this.getCardinalDirection(-tt,Pe,3),Xe=this.getCardinalDirection(-vt,Pe,1)):P>D?(Ve=this.getCardinalDirection(-tt,Pe,1),Xe=this.getCardinalDirection(-vt,Pe,3)):(Ve=this.getCardinalDirection(tt,Pe,2),Xe=this.getCardinalDirection(vt,Pe,4)),!Ne)switch(Ve){case 1:ft=_,rt=U+-Y/Pe,G[0]=rt,G[1]=ft;break;case 2:rt=J,ft=P+j*Pe,G[0]=rt,G[1]=ft;break;case 3:ft=oe,rt=U+Y/Pe,G[0]=rt,G[1]=ft;break;case 4:rt=ne,ft=P+-j*Pe,G[0]=rt,G[1]=ft;break}if(!_e)switch(Xe){case 1:et=L,at=K+-Ae/Pe,G[2]=at,G[3]=et;break;case 2:at=fe,et=D+de*Pe,G[2]=at,G[3]=et;break;case 3:et=W,at=K+Ae/Pe,G[2]=at,G[3]=et;break;case 4:at=I,et=D+-de*Pe,G[2]=at,G[3]=et;break}}return!1},T.getCardinalDirection=function(w,S,G){return w>S?G:1+G%4},T.getIntersection=function(w,S,G,U){if(U==null)return this.getIntersection2(w,S,G);var P=w.x,K=w.y,D=S.x,$=S.y,_=G.x,Q=G.y,ne=U.x,oe=U.y,J=void 0,j=void 0,Y=void 0,te=void 0,L=void 0,V=void 0,I=void 0,W=void 0,fe=void 0;return Y=$-K,L=P-D,I=D*K-P*$,te=oe-Q,V=_-ne,W=ne*Q-_*oe,fe=Y*V-te*L,fe===0?null:(J=(L*W-V*I)/fe,j=(te*I-Y*W)/fe,new O(J,j))},T.angleOfVector=function(w,S,G,U){var P=void 0;return w!==G?(P=Math.atan((U-S)/(G-w)),G0?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,ce,H){function O(){}O.MAX_VALUE=2147483647,O.MIN_VALUE=-2147483648,ee.exports=O},function(ee,ce,H){var O=function(){function P(K,D){for(var $=0;$"u"?"undefined":O(w);return w==null||S!="object"&&S!="function"},ee.exports=T},function(ee,ce,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),w=H(6),S=H(3),G=H(1),U=H(5),P=H(4),K=H(17),D=H(27);function $(_){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 w(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,_!=null&&(this.isRemoteUse=_)}$.RANDOM_SEED=1,$.prototype=Object.create(D.prototype),$.prototype.getGraphManager=function(){return this.graphManager},$.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},$.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},$.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},$.prototype.newGraphManager=function(){var _=new w(this);return this.graphManager=_,_},$.prototype.newGraph=function(_){return new U(null,this.graphManager,_)},$.prototype.newNode=function(_){return new S(this.graphManager,_)},$.prototype.newEdge=function(_){return new G(null,null,_)},$.prototype.checkLayoutSuccess=function(){return this.graphManager.getRoot()==null||this.graphManager.getRoot().getNodes().length==0||this.graphManager.includesInvalidEdge()},$.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,_)},$.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},$.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;Q0&&Q;){for(Y.push(L[0]);Y.length>0&&Q;){var V=Y[0];Y.splice(0,1),j.add(V);for(var I=V.getEdges(),J=0;J-1&&L.splice(Ae,1)}j=new Set,te=new Map}}return _},$.prototype.createDummyNodesForBendpoints=function(_){for(var Q=[],ne=_.source,oe=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)),oe.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(_):oe.remove(_),Q},$.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 oe=this.edgeToDummyNodes.get(ne),J=0;J=0&&Q.splice(W,1);var fe=te.getNeighborsList();fe.forEach(function(Ne){if(ne.indexOf(Ne)<0){var _e=oe.get(Ne),tt=_e-1;tt==1&&V.push(Ne),oe.set(Ne,tt)}})}ne=ne.concat(V),(Q.length==1||Q.length==2)&&(J=!0,j=Q[0])}return j},$.prototype.setGraphManager=function(_){this.graphManager=_},ee.exports=$},function(ee,ce,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,ce,H){var O=H(4);function T(w,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(w){this.lworldOrgX=w},T.prototype.getWorldOrgY=function(){return this.lworldOrgY},T.prototype.setWorldOrgY=function(w){this.lworldOrgY=w},T.prototype.getWorldExtX=function(){return this.lworldExtX},T.prototype.setWorldExtX=function(w){this.lworldExtX=w},T.prototype.getWorldExtY=function(){return this.lworldExtY},T.prototype.setWorldExtY=function(w){this.lworldExtY=w},T.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},T.prototype.setDeviceOrgX=function(w){this.ldeviceOrgX=w},T.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},T.prototype.setDeviceOrgY=function(w){this.ldeviceOrgY=w},T.prototype.getDeviceExtX=function(){return this.ldeviceExtX},T.prototype.setDeviceExtX=function(w){this.ldeviceExtX=w},T.prototype.getDeviceExtY=function(){return this.ldeviceExtY},T.prototype.setDeviceExtY=function(w){this.ldeviceExtY=w},T.prototype.transformX=function(w){var S=0,G=this.lworldExtX;return G!=0&&(S=this.ldeviceOrgX+(w-this.lworldOrgX)*this.ldeviceExtX/G),S},T.prototype.transformY=function(w){var S=0,G=this.lworldExtY;return G!=0&&(S=this.ldeviceOrgY+(w-this.lworldOrgY)*this.ldeviceExtY/G),S},T.prototype.inverseTransformX=function(w){var S=0,G=this.ldeviceExtX;return G!=0&&(S=this.lworldOrgX+(w-this.ldeviceOrgX)*this.lworldExtX/G),S},T.prototype.inverseTransformY=function(w){var S=0,G=this.ldeviceExtY;return G!=0&&(S=this.lworldOrgY+(w-this.ldeviceOrgY)*this.lworldExtY/G),S},T.prototype.inverseTransformPoint=function(w){var S=new O(this.inverseTransformX(w.x),this.inverseTransformY(w.y));return S},ee.exports=T},function(ee,ce,H){function O(D){if(Array.isArray(D)){for(var $=0,_=Array(D.length);$w.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*w.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(D-w.ADAPTATION_LOWER_NODE_LIMIT)/(w.ADAPTATION_UPPER_NODE_LIMIT-w.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-w.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=w.MAX_NODE_DISPLACEMENT_INCREMENTAL):(D>w.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(w.COOLING_ADAPTATION_FACTOR,1-(D-w.ADAPTATION_LOWER_NODE_LIMIT)/(w.ADAPTATION_UPPER_NODE_LIMIT-w.ADAPTATION_LOWER_NODE_LIMIT)*(1-w.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=w.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(),$,_=0;_0&&arguments[0]!==void 0?arguments[0]:!0,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_,Q,ne,oe,J=this.getAllNodes(),j;if(this.useFRGridVariant)for(this.totalIterations%w.GRID_CALCULATION_CHECK_PERIOD==1&&D&&this.updateGrid(),j=new Set,_=0;_Y||j>Y)&&(D.gravitationForceX=-this.gravityConstant*ne,D.gravitationForceY=-this.gravityConstant*oe)):(Y=$.getEstimatedSize()*this.compoundGravityRangeFactor,(J>Y||j>Y)&&(D.gravitationForceX=-this.gravityConstant*ne*this.compoundGravityConstant,D.gravitationForceY=-this.gravityConstant*oe*this.compoundGravityConstant))},P.prototype.isConverged=function(){var D,$=!1;return this.totalIterations>this.maxIterations/3&&($=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),D=this.totalDisplacement=J.length||Y>=J[0].length)){for(var te=0;teP}}]),G}();ee.exports=S},function(ee,ce,H){var O=function(){function S(G,U){for(var P=0;P2&&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=G,this.sequence2=U,this.match_score=P,this.mismatch_penalty=K,this.gap_penalty=D,this.iMax=G.length+1,this.jMax=U.length+1,this.grid=new Array(this.iMax);for(var $=0;$=0;G--){var U=this.listeners[G];U.event===w&&U.callback===S&&this.listeners.splice(G,1)}},T.emit=function(w,S){for(var G=0;GU.coolingFactor*U.maxNodeDisplacement&&(this.displacementX=U.coolingFactor*U.maxNodeDisplacement*w.sign(this.displacementX)),Math.abs(this.displacementY)>U.coolingFactor*U.maxNodeDisplacement&&(this.displacementY=U.coolingFactor*U.maxNodeDisplacement*w.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,$=0;$0)this.positionNodesRadially(L);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var V=new Set(this.getAllNodes()),I=this.nodesWithGravity.filter(function(W){return V.has(W)});this.graphManager.setAllNodesToApplyGravitation(I),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()),V=this.nodesWithGravity.filter(function(fe){return L.has(fe)});this.graphManager.setAllNodesToApplyGravitation(V),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 I=!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(I,W),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},Y.prototype.getPositionsData=function(){for(var L=this.graphManager.getAllNodes(),V={},I=0;I1){var Ne;for(Ne=0;NeW&&(W=Math.floor(Ae.y)),de=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,V,I){var W=Math.max(this.maxDiagonalInTree(L),P.DEFAULT_RADIAL_SEPARATION);Y.branchRadialLayout(V,null,0,359,0,W);var fe=J.calculateBounds(L),de=new j;de.setDeviceOrgX(fe.getMinX()),de.setDeviceOrgY(fe.getMinY()),de.setWorldOrgX(I.x),de.setWorldOrgY(I.y);for(var Ae=0;Ae1;){var et=at[0];at.splice(0,1);var yt=Pe.indexOf(et);yt>=0&&Pe.splice(yt,1),rt--,Ve--}V!=null?ft=(Pe.indexOf(at[0])+1)%rt:ft=0;for(var wt=Math.abs(W-I)/Ve,Pt=ft;Xe!=Ve;Pt=++Pt%rt){var dt=Pe[Pt].getOtherEnd(L);if(dt!=V){var dr=(I+Xe*wt)%360,qt=(dr+wt)%360;Y.branchRadialLayout(dt,L,dr,qt,fe+de,de),Xe++}}},Y.maxDiagonalInTree=function(L){for(var V=ne.MIN_VALUE,I=0;IV&&(V=fe)}return V},Y.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},Y.prototype.groupZeroDegreeMembers=function(){var L=this,V={};this.memberGroups={},this.idToDummyNode={};for(var I=[],W=this.graphManager.getAllNodes(),fe=0;fe"u"&&(V[Ne]=[]),V[Ne]=V[Ne].concat(de)}Object.keys(V).forEach(function(_e){if(V[_e].length>1){var tt="DummyCompound_"+_e;L.memberGroups[tt]=V[_e];var vt=V[_e][0].getParent(),Pe=new G(L.graphManager);Pe.id=tt,Pe.paddingLeft=vt.paddingLeft||0,Pe.paddingRight=vt.paddingRight||0,Pe.paddingBottom=vt.paddingBottom||0,Pe.paddingTop=vt.paddingTop||0,L.idToDummyNode[tt]=Pe;var Ve=L.getGraphManager().add(L.newGraph(),Pe),Xe=vt.getChild();Xe.add(Pe);for(var rt=0;rt=0;L--){var V=this.compoundOrder[L],I=V.id,W=V.paddingLeft,fe=V.paddingTop;this.adjustLocations(this.tiledMemberPack[I],V.rect.x,V.rect.y,W,fe)}},Y.prototype.repopulateZeroDegreeMembers=function(){var L=this,V=this.tiledZeroDegreePack;Object.keys(V).forEach(function(I){var W=L.idToDummyNode[I],fe=W.paddingLeft,de=W.paddingTop;L.adjustLocations(V[I],W.rect.x,W.rect.y,fe,de)})},Y.prototype.getToBeTiled=function(L){var V=L.id;if(this.toBeTiled[V]!=null)return this.toBeTiled[V];var I=L.getChild();if(I==null)return this.toBeTiled[V]=!1,!1;for(var W=I.getNodes(),fe=0;fe0)return this.toBeTiled[V]=!1,!1;if(de.getChild()==null){this.toBeTiled[de.id]=!1;continue}if(!this.getToBeTiled(de))return this.toBeTiled[V]=!1,!1}return this.toBeTiled[V]=!0,!0},Y.prototype.getNodeDegree=function(L){L.id;for(var V=L.getEdges(),I=0,W=0;W_e&&(_e=vt.rect.height)}I+=_e+L.verticalPadding}},Y.prototype.tileCompoundMembers=function(L,V){var I=this;this.tiledMemberPack=[],Object.keys(L).forEach(function(W){var fe=V[W];I.tiledMemberPack[W]=I.tileNodes(L[W],fe.paddingLeft+fe.paddingRight),fe.rect.width=I.tiledMemberPack[W].width,fe.rect.height=I.tiledMemberPack[W].height})},Y.prototype.tileNodes=function(L,V){var I=P.TILING_PADDING_VERTICAL,W=P.TILING_PADDING_HORIZONTAL,fe={rows:[],rowWidth:[],rowHeight:[],width:0,height:V,verticalPadding:I,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 de=0;de0&&(Ae+=L.horizontalPadding),L.rowWidth[I]=Ae,L.width0&&(Ne+=L.verticalPadding);var _e=0;Ne>L.rowHeight[I]&&(_e=L.rowHeight[I],L.rowHeight[I]=Ne,_e=L.rowHeight[I]-_e),L.height+=_e,L.rows[I].push(V)},Y.prototype.getShortestRowIndex=function(L){for(var V=-1,I=Number.MAX_VALUE,W=0;WI&&(V=W,I=L.rowWidth[W]);return V},Y.prototype.canAddHorizontal=function(L,V,I){var W=this.getShortestRowIndex(L);if(W<0)return!0;var fe=L.rowWidth[W];if(fe+L.horizontalPadding+V<=L.width)return!0;var de=0;L.rowHeight[W]0&&(de=I+L.verticalPadding-L.rowHeight[W]);var Ae;L.width-fe>=V+L.horizontalPadding?Ae=(L.height+de)/(fe+V+L.horizontalPadding):Ae=(L.height+de)/L.width,de=I+L.verticalPadding;var Ne;return L.widthde&&V!=I){W.splice(-1,1),L.rows[I].push(fe),L.rowWidth[V]=L.rowWidth[V]-de,L.rowWidth[I]=L.rowWidth[I]+de,L.width=L.rowWidth[instance.getLongestRowIndex(L)];for(var Ae=Number.MIN_VALUE,Ne=0;NeAe&&(Ae=W[Ne].height);V>0&&(Ae+=L.verticalPadding);var _e=L.rowHeight[V]+L.rowHeight[I];L.rowHeight[V]=Ae,L.rowHeight[I]0)for(var Xe=fe;Xe<=de;Xe++)Ve[0]+=this.grid[Xe][Ae-1].length+this.grid[Xe][Ae].length-1;if(de0)for(var Xe=Ae;Xe<=Ne;Xe++)Ve[3]+=this.grid[fe-1][Xe].length+this.grid[fe][Xe].length-1;for(var rt=ne.MAX_VALUE,ft,at,et=0;et0){var Ne;Ne=j.getGraphManager().add(j.newGraph(),I),this.processChildrenList(Ne,V,j)}}},_.prototype.stop=function(){return this.stopped=!0,this};var ne=function(J){J("layout","cose-bilkent",_)};typeof cytoscape<"u"&&ne(cytoscape),ce.exports=ne}])})})(Hu);var Op=Hu.exports;const Np=_u(Op);var Zi=function(){var pe=function(j,Y,te,L){for(te=te||{},L=j.length;L--;te[j[L]]=Y);return te},le=[1,4],ee=[1,13],ce=[1,12],H=[1,15],O=[1,16],T=[1,20],w=[1,19],S=[6,7,8],G=[1,26],U=[1,24],P=[1,25],K=[6,7,11],D=[1,6,13,15,16,19,22],$=[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,V,I,W,fe){var de=W.length-1;switch(I){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: ",W[de].id),V.addNode(W[de-1].length,W[de].id,W[de].descr,W[de].type);break;case 16:V.getLogger().trace("Icon: ",W[de]),V.decorateNode({icon:W[de]});break;case 17:case 21:V.decorateNode({class:W[de]});break;case 18:V.getLogger().trace("SPACELIST");break;case 19:V.getLogger().trace("Node: ",W[de].id),V.addNode(0,W[de].id,W[de].descr,W[de].type);break;case 20:V.decorateNode({icon:W[de]});break;case 25:V.getLogger().trace("node found ..",W[de-2]),this.$={id:W[de-1],descr:W[de-1],type:V.getType(W[de-2],W[de])};break;case 26:this.$={id:W[de],descr:W[de],type:V.nodeType.DEFAULT};break;case 27:V.getLogger().trace("node found ..",W[de-3]),this.$={id:W[de-3],descr:W[de-1],type:V.getType(W[de-2],W[de])};break}},table:[{3:1,4:2,5:3,6:[1,5],8:le},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:le},{6:ee,7:[1,10],9:9,12:11,13:ce,14:14,15:H,16:O,17:17,18:18,19:T,22:w},pe(S,[2,3]),{1:[2,2]},pe(S,[2,4]),pe(S,[2,5]),{1:[2,6],6:ee,12:21,13:ce,14:14,15:H,16:O,17:17,18:18,19:T,22:w},{6:ee,9:22,12:11,13:ce,14:14,15:H,16:O,17:17,18:18,19:T,22:w},{6:G,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:w}),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:G,7:U,10:32,11:P},{1:[2,7],6:ee,12:21,13:ce,14:14,15:H,16:O,17:17,18:18,19:T,22:w},pe(D,[2,14],{7:$,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:$,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],V=[],I=[null],W=[],fe=this.table,de="",Ae=0,Ne=0,_e=2,tt=1,vt=W.slice.call(arguments,1),Pe=Object.create(this.lexer),Ve={yy:{}};for(var Xe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Xe)&&(Ve.yy[Xe]=this.yy[Xe]);Pe.setInput(Y,Ve.yy),Ve.yy.lexer=Pe,Ve.yy.parser=this,typeof Pe.yylloc>"u"&&(Pe.yylloc={});var rt=Pe.yylloc;W.push(rt);var ft=Pe.options&&Pe.options.ranges;typeof Ve.yy.parseError=="function"?this.parseError=Ve.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function at(){var er;return er=V.pop()||Pe.lex()||tt,typeof er!="number"&&(er instanceof Array&&(V=er,er=V.pop()),er=te.symbols_[er]||er),er}for(var et,yt,wt,Pt,dt={},dr,qt,un,Zr;;){if(yt=L[L.length-1],this.defaultActions[yt]?wt=this.defaultActions[yt]:((et===null||typeof et>"u")&&(et=at()),wt=fe[yt]&&fe[yt][et]),typeof wt>"u"||!wt.length||!wt[0]){var Sa="";Zr=[];for(dr in fe[yt])this.terminals_[dr]&&dr>_e&&Zr.push("'"+this.terminals_[dr]+"'");Pe.showPosition?Sa="Parse error on line "+(Ae+1)+`: +`+Pe.showPosition()+` +Expecting `+Zr.join(", ")+", got '"+(this.terminals_[et]||et)+"'":Sa="Parse error on line "+(Ae+1)+": Unexpected "+(et==tt?"end of input":"'"+(this.terminals_[et]||et)+"'"),this.parseError(Sa,{text:Pe.match,token:this.terminals_[et]||et,line:Pe.yylineno,loc:rt,expected:Zr})}if(wt[0]instanceof Array&&wt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+yt+", token: "+et);switch(wt[0]){case 1:L.push(et),I.push(Pe.yytext),W.push(Pe.yylloc),L.push(wt[1]),et=null,Ne=Pe.yyleng,de=Pe.yytext,Ae=Pe.yylineno,rt=Pe.yylloc;break;case 2:if(qt=this.productions_[wt[1]][1],dt.$=I[I.length-qt],dt._$={first_line:W[W.length-(qt||1)].first_line,last_line:W[W.length-1].last_line,first_column:W[W.length-(qt||1)].first_column,last_column:W[W.length-1].last_column},ft&&(dt._$.range=[W[W.length-(qt||1)].range[0],W[W.length-1].range[1]]),Pt=this.performAction.apply(dt,[de,Ne,Ae,Ve.yy,wt[1],I,W].concat(vt)),typeof Pt<"u")return Pt;qt&&(L=L.slice(0,-1*qt*2),I=I.slice(0,-1*qt),W=W.slice(0,-1*qt)),L.push(this.productions_[wt[1]][0]),I.push(dt.$),W.push(dt._$),un=fe[L[L.length-2]][L[L.length-1]],L.push(un);break;case 3:return!0}}return!0}},oe=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 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),L.length-1&&(this.yylineno-=L.length-1);var I=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===V.length?this.yylloc.first_column:0)+V[V.length-L.length].length-L[0].length:this.yylloc.first_column-te},this.options.ranges&&(this.yylloc.range=[I[0],I[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,V,I;if(this.options.backtrack_lexer&&(I={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&&(I.yylloc.range=this.yylloc.range.slice(0))),V=Y[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+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 I)this[W]=I[W];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Y,te,L,V;this._more||(this.yytext="",this.match="");for(var I=this._currentRules(),W=0;Wte[0].length)){if(te=L,V=W,this.options.backtrack_lexer){if(Y=this.test_match(L,I[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,I[V]),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,V,I){switch(V){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=oe;function J(){this.yy={}}return J.prototype=ne,ne.Parser=J,new J}();Zi.parser=Zi;const Mp=Zi,on=pe=>Ep(pe,sn());let jt=[],Xu=0,Qi={};const Ip=()=>{jt=[],Xu=0,Qi={}},Rp=function(pe){for(let le=jt.length-1;le>=0;le--)if(jt[le].leveljt.length>0?jt[0]:null,Pp=(pe,le,ee,ce)=>{qr.info("addNode",pe,le,ee,ce);const H=sn(),O={id:Xu++,nodeId:on(le),level:pe,descr:on(ee),type:ce,children:[],width:sn().mindmap.maxNodeWidth};switch(O.type){case mt.ROUNDED_RECT:O.padding=2*H.mindmap.padding;break;case mt.RECT:O.padding=2*H.mindmap.padding;break;case mt.HEXAGON:O.padding=2*H.mindmap.padding;break;default:O.padding=H.mindmap.padding}const T=Rp(pe);if(T)T.children.push(O),jt.push(O);else if(jt.length===0)jt.push(O);else{let w=new Error('There can be only one root. No parent could be found for ("'+O.descr+'")');throw w.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+'"']},w}},mt={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},Bp=(pe,le)=>{switch(qr.debug("In get type",pe,le),pe){case"[":return mt.RECT;case"(":return le===")"?mt.ROUNDED_RECT:mt.CLOUD;case"((":return mt.CIRCLE;case")":return mt.CLOUD;case"))":return mt.BANG;case"{{":return mt.HEXAGON;default:return mt.DEFAULT}},Wu=(pe,le)=>{Qi[pe]=le},Fp=pe=>{const le=jt[jt.length-1];pe&&pe.icon&&(le.icon=on(pe.icon)),pe&&pe.class&&(le.class=on(pe.class))},Kr=pe=>{switch(pe){case mt.DEFAULT:return"no-border";case mt.RECT:return"rect";case mt.ROUNDED_RECT:return"rounded-rect";case mt.CIRCLE:return"circle";case mt.CLOUD:return"cloud";case mt.BANG:return"bang";case mt.HEXAGON:return"hexgon";default:return"no-border"}};let qu;const zp=pe=>{qu=pe},Gp=()=>qr,Vp=pe=>jt[pe],Ji=pe=>Qi[pe],$p=Object.freeze(Object.defineProperty({__proto__:null,addNode:Pp,clear:Ip,decorateNode:Fp,getElementById:Ji,getLogger:Gp,getMindmap:kp,getNodeById:Vp,getType:Bp,nodeType:mt,get parseError(){return qu},sanitizeText:on,setElementForId:Wu,setErrorHandler:zp,type2Str:Kr},Symbol.toStringTag,{value:"Module"})),Ku=12,_p=function(pe,le,ee){pe.append("path").attr("id","node-"+le.id).attr("class","node-bkg node-"+Kr(le.type)).attr("d",`M0 ${le.height-5} v${-le.height+2*5} q0,-5 5,-5 h${le.width-2*5} q5,0 5,5 v${le.height-5} H0 Z`),pe.append("line").attr("class","node-line-"+ee).attr("x1",0).attr("y1",le.height).attr("x2",le.width).attr("y2",le.height)},Up=function(pe,le){pe.append("rect").attr("id","node-"+le.id).attr("class","node-bkg node-"+Kr(le.type)).attr("height",le.height).attr("width",le.width)},Yp=function(pe,le){const ee=le.width,ce=le.height,H=.15*ee,O=.25*ee,T=.35*ee,w=.2*ee;pe.append("path").attr("id","node-"+le.id).attr("class","node-bkg node-"+Kr(le.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*ce*.35} + a${w},${w} 1 0,1 ${-1*ee*.15},${1*ce*.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*ce*.35} + a${w},${w} 1 0,1 ${ee*.1},${-1*ce*.65} + + H0 V0 Z`)},Hp=function(pe,le){const ee=le.width,ce=le.height,H=.15*ee;pe.append("path").attr("id","node-"+le.id).attr("class","node-bkg node-"+Kr(le.type)).attr("d",`M0 0 a${H},${H} 1 0,0 ${ee*.25},${-1*ce*.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*ce*.1} + + a${H},${H} 1 0,0 ${ee*.15},${1*ce*.33} + a${H*.8},${H*.8} 1 0,0 0,${1*ce*.34} + a${H},${H} 1 0,0 ${-1*ee*.15},${1*ce*.33} + + a${H},${H} 1 0,0 ${-1*ee*.25},${ce*.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*ce*.15} + + a${H},${H} 1 0,0 ${-1*ee*.1},${-1*ce*.33} + a${H*.8},${H*.8} 1 0,0 0,${-1*ce*.34} + a${H},${H} 1 0,0 ${ee*.1},${-1*ce*.33} + + H0 V0 Z`)},Xp=function(pe,le){pe.append("circle").attr("id","node-"+le.id).attr("class","node-bkg node-"+Kr(le.type)).attr("r",le.width/2)};function Wp(pe,le,ee,ce,H){return pe.insert("polygon",":first-child").attr("points",ce.map(function(O){return O.x+","+O.y}).join(" ")).attr("transform","translate("+(H.width-le)/2+", "+ee+")")}const qp=function(pe,le){const ee=le.height,H=ee/4,O=le.width-le.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}];Wp(pe,O,ee,T,le)},Kp=function(pe,le){pe.append("rect").attr("id","node-"+le.id).attr("class","node-bkg node-"+Kr(le.type)).attr("height",le.height).attr("rx",le.padding).attr("ry",le.padding).attr("width",le.width)},Zp=function(pe,le,ee,ce){const H=ce.htmlLabels,O=ee%(Ku-1),T=pe.append("g");le.section=O;let w="section-"+O;O<0&&(w+=" section-root"),T.attr("class",(le.class?le.class+" ":"")+"mindmap-node "+w);const S=T.append("g"),G=T.append("g"),U=le.descr.replace(/()/g,` +`);Dp(G,U,{useHtmlLabels:H,width:le.width,classes:"mindmap-node-label"}),H||G.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle");const P=G.node().getBBox(),K=ce.fontSize.replace?ce.fontSize.replace("px",""):ce.fontSize;if(le.height=P.height+K*1.1*.5+le.padding,le.width=P.width+2*le.padding,le.icon)if(le.type===mt.CIRCLE)le.height+=50,le.width+=50,T.append("foreignObject").attr("height","50px").attr("width",le.width).attr("style","text-align: center;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+O+" "+le.icon),G.attr("transform","translate("+le.width/2+", "+(le.height/2-1.5*le.padding)+")");else{le.width+=50;const D=le.height;le.height=Math.max(D,60);const $=Math.abs(le.height-D);T.append("foreignObject").attr("width","60px").attr("height",le.height).attr("style","text-align: center;margin-top:"+$/2+"px;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+O+" "+le.icon),G.attr("transform","translate("+(25+le.width/2)+", "+($/2+le.padding/2)+")")}else if(H){const D=(le.width-P.width)/2,$=(le.height-P.height)/2;G.attr("transform","translate("+D+", "+$+")")}else{const D=le.width/2,$=le.padding/2;G.attr("transform","translate("+D+", "+$+")")}switch(le.type){case mt.DEFAULT:_p(S,le,O);break;case mt.ROUNDED_RECT:Kp(S,le);break;case mt.RECT:Up(S,le);break;case mt.CIRCLE:S.attr("transform","translate("+le.width/2+", "+ +le.height/2+")"),Xp(S,le);break;case mt.CLOUD:Yp(S,le);break;case mt.BANG:Hp(S,le);break;case mt.HEXAGON:qp(S,le);break}return Wu(le.id,T),le.height},Qp=function(le,ee,ce,H,O){const T=O%(Ku-1),w=ce.x+ce.width/2,S=ce.y+ce.height/2,G=ee.x+ee.width/2,U=ee.y+ee.height/2,P=G>w?w+Math.abs(w-G)/2:w-Math.abs(w-G)/2,K=U>S?S+Math.abs(S-U)/2:S-Math.abs(S-U)/2,D=G>w?Math.abs(w-P)/2+w:-Math.abs(w-P)/2+w,$=U>S?Math.abs(S-K)/2+S:-Math.abs(S-K)/2+S;le.append("path").attr("d",ce.direction==="TB"||ce.direction==="BT"?`M${w},${S} Q${w},${$} ${P},${K} T${G},${U}`:`M${w},${S} Q${D},${S} ${P},${K} T${G},${U}`).attr("class","edge section-edge-"+T+" edge-depth-"+H)},Jp=function(pe){const le=Ji(pe.id),ee=pe.x||0,ce=pe.y||0;le.attr("transform","translate("+ee+","+ce+")")},Zu={drawNode:Zp,positionNode:Jp,drawEdge:Qp};Yu.use(Np);function Qu(pe,le,ee,ce){Zu.drawNode(pe,le,ee,ce),le.children&&le.children.forEach((H,O)=>{Qu(pe,H,ee<0?O:ee,ce)})}function jp(pe,le){le.edges().map((ee,ce)=>{const H=ee.data();if(ee[0]._private.bodyBounds){const O=ee[0]._private.rscratch;qr.trace("Edge: ",ce,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 Ju(pe,le,ee,ce){le.add({group:"nodes",data:{id:pe.id,labelText:pe.descr,height:pe.height,width:pe.width,level:ce,nodeId:pe.id,padding:pe.padding,type:pe.type},position:{x:pe.x,y:pe.y}}),pe.children&&pe.children.forEach(H=>{Ju(H,le,ee,ce+1),le.add({group:"edges",data:{id:`${pe.id}_${H.id}`,source:pe.id,target:H.id,depth:ce,section:H.section}})})}function ey(pe,le){return new Promise(ee=>{const ce=ti("body").append("div").attr("id","cy").attr("style","display:none"),H=Yu({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});ce.remove(),Ju(pe,H,le,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=>{qr.info("Ready",O),ee(H)})})}function ty(pe){pe.nodes().map((le,ee)=>{const ce=le.data();ce.x=le.position().x,ce.y=le.position().y,Zu.positionNode(ce);const H=Ji(ce.nodeId);qr.info("Id:",ee,"Position: (",le.position().x,", ",le.position().y,")",ce),H.attr("transform",`translate(${le.position().x-ce.width/2}, ${le.position().y-ce.height/2})`),H.attr("attr",`apa-${ee})`)})}const ry=async(pe,le,ee,ce)=>{const H=sn();H.htmlLabels=!1,qr.debug(`Rendering mindmap diagram +`+pe,ce.parser);const O=sn().securityLevel;let T;O==="sandbox"&&(T=ti("#i"+le));const S=(O==="sandbox"?ti(T.nodes()[0].contentDocument.body):ti("body")).select("#"+le);S.append("g");const G=ce.db.getMindmap(),U=S.append("g");U.attr("class","mindmap-edges");const P=S.append("g");P.attr("class","mindmap-nodes"),Qu(P,G,-1,H);const K=await ey(G,H);jp(U,K),ty(K),wp(void 0,S,H.mindmap.padding,H.mindmap.useMaxWidth)},ay={draw:ry},ny=pe=>{let le="";for(let ee=0;ee` + .edge { + stroke-width: 3; + } + ${ny(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; + } +`,sy=iy,fy={db:$p,renderer:ay,parser:Mp,styles:sy};export{fy as diagram}; diff --git a/assets/ordinal-ba9b4969.js b/assets/ordinal-ba9b4969.js new file mode 100644 index 000000000..c31c946b8 --- /dev/null +++ b/assets/ordinal-ba9b4969.js @@ -0,0 +1 @@ +import{i as a}from"./init-77b53fdd.js";class o extends Map{constructor(n,t=g){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),n!=null)for(const[r,s]of n)this.set(r,s)}get(n){return super.get(c(this,n))}has(n){return super.has(c(this,n))}set(n,t){return super.set(l(this,n),t)}delete(n){return super.delete(p(this,n))}}function c({_intern:e,_key:n},t){const r=n(t);return e.has(r)?e.get(r):t}function l({_intern:e,_key:n},t){const r=n(t);return e.has(r)?e.get(r):(e.set(r,t),t)}function p({_intern:e,_key:n},t){const r=n(t);return e.has(r)&&(t=e.get(r),e.delete(r)),t}function g(e){return e!==null&&typeof e=="object"?e.valueOf():e}const f=Symbol("implicit");function h(){var e=new o,n=[],t=[],r=f;function s(u){let i=e.get(u);if(i===void 0){if(r!==f)return r;e.set(u,i=n.push(u)-1)}return t[i%t.length]}return s.domain=function(u){if(!arguments.length)return n.slice();n=[],e=new o;for(const i of u)e.has(i)||e.set(i,n.push(i)-1);return s},s.range=function(u){return arguments.length?(t=Array.from(u),s):t.slice()},s.unknown=function(u){return arguments.length?(r=u,s):r},s.copy=function(){return h(n,t).unknown(r)},a.apply(s,arguments),s}export{h as o}; diff --git a/assets/other_rules.html-19513dfa.js b/assets/other_rules.html-19513dfa.js new file mode 100644 index 000000000..dbdfda17d --- /dev/null +++ b/assets/other_rules.html-19513dfa.js @@ -0,0 +1 @@ +const e=JSON.parse('{"key":"v-0a7a5ed2","path":"/use/other_rules.html","title":"其它规则支持","lang":"zh-cn","frontmatter":{"lang":"zh-cn","title":"其它规则支持","description":"本节内容 本节是海豹支持的其他 TRPG 规则的索引。 这些规则因指令数量少或仍在预览阶段的原因,未被单独作为扩展。下面将引导你跳转到对应规则的具体命令支持页。 绿色三角洲 Delta Green 「绿色三角洲」(Delta Green,简称 DG)是克苏鲁的呼唤(CoC)的拓展规则,同时也是作为游戏核心的秘密组织的名字。绿色三角洲是保护人类免遭旧日支...","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/use/other_rules.html"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"其它规则支持"}],["meta",{"property":"og:description","content":"本节内容 本节是海豹支持的其他 TRPG 规则的索引。 这些规则因指令数量少或仍在预览阶段的原因,未被单独作为扩展。下面将引导你跳转到对应规则的具体命令支持页。 绿色三角洲 Delta Green 「绿色三角洲」(Delta Green,简称 DG)是克苏鲁的呼唤(CoC)的拓展规则,同时也是作为游戏核心的秘密组织的名字。绿色三角洲是保护人类免遭旧日支..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-cn"}],["meta",{"property":"og:updated_time","content":"2023-11-01T17:22:26.000Z"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-11-01T17:22:26.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"其它规则支持\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2023-11-01T17:22:26.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[{"level":2,"title":"绿色三角洲 Delta Green","slug":"绿色三角洲-delta-green","link":"#绿色三角洲-delta-green","children":[]},{"level":2,"title":"黑暗世界 World of Darkness","slug":"黑暗世界-world-of-darkness","link":"#黑暗世界-world-of-darkness","children":[]},{"level":2,"title":"双重十字 Double Cross","slug":"双重十字-double-cross","link":"#双重十字-double-cross","children":[]},{"level":2,"title":"暗影狂奔 Shadowrun","slug":"暗影狂奔-shadowrun","link":"#暗影狂奔-shadowrun","children":[]},{"level":2,"title":"共鸣性怪异 Emoklore","slug":"共鸣性怪异-emoklore","link":"#共鸣性怪异-emoklore","children":[]},{"level":2,"title":"更多规则","slug":"更多规则","link":"#更多规则","children":[]}],"git":{"createdTime":1698723003000,"updatedTime":1698859346000,"contributors":[{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":2},{"name":"Xiangze Li","email":"lee_johnson@qq.com","commits":1}]},"readingTime":{"minutes":2.33,"words":699},"filePathRelative":"use/other_rules.md","localizedDate":"2023年10月31日","autoDesc":true,"excerpt":""}');export{e as data}; diff --git a/assets/other_rules.html-a829e88c.js b/assets/other_rules.html-a829e88c.js new file mode 100644 index 000000000..e9a14b0eb --- /dev/null +++ b/assets/other_rules.html-a829e88c.js @@ -0,0 +1 @@ +import{_ as a}from"./plugin-vue_export-helper-c27b6911.js";import{r,o as l,c as d,a as o,d as e,b as n,w as s,e as h}from"./app-d2f9e1e0.js";const c={},i=h('

    其它规则支持

    本节内容

    本节是海豹支持的其他 TRPG 规则的索引。

    这些规则因指令数量少或仍在预览阶段的原因,未被单独作为扩展。下面将引导你跳转到对应规则的具体命令支持页。

    绿色三角洲 Delta Green

    「绿色三角洲」(Delta Green,简称 DG)是克苏鲁的呼唤(CoC)的拓展规则,同时也是作为游戏核心的秘密组织的名字。绿色三角洲是保护人类免遭旧日支配者威胁的「抗神组织」,其队员(特工)大多在政府部门工作,组织本身是非官方且非法的存在。他们的敌人不仅是旧日支配者的眷族或崇拜者,同时也包括操弄禁忌知识的人类势力。

    ',4),u=o("code",null,".setcoc dg",-1),_=o("h2",{id:"黑暗世界-world-of-darkness",tabindex:"-1"},[o("a",{class:"header-anchor",href:"#黑暗世界-world-of-darkness","aria-hidden":"true"},"#"),e(" 黑暗世界 World of Darkness")],-1),E=o("p",null,[o("strong",null,"「黑暗世界」"),e("(World of Darkness,简称 WOD)是一款超自然题材的 TRPG 游戏。在这个世界中,所有阴谋论都是真的,都市传说不再是什么可以轻松无视的「故事」。你可能会从镜子里召唤出血腥玛丽,也可能登上电梯后不慎消失在超市的某个漆黑楼层中。")],-1),f=o("h2",{id:"双重十字-double-cross",tabindex:"-1"},[o("a",{class:"header-anchor",href:"#双重十字-double-cross","aria-hidden":"true"},"#"),e(" 双重十字 Double Cross")],-1),p=o("p",null,[o("strong",null,"「双重十字」"),e("(Double Cross,简称 DX)是一款日系超能力战斗 TRPG 游戏。在病毒感染了绝大多数人类使得他们进化为超能力者的时代,PL 在 GM 的指引下为了守护重要的人或者日常生活而战斗。")],-1),A=o("h2",{id:"暗影狂奔-shadowrun",tabindex:"-1"},[o("a",{class:"header-anchor",href:"#暗影狂奔-shadowrun","aria-hidden":"true"},"#"),e(" 暗影狂奔 Shadowrun")],-1),B=o("p",null,[o("strong",null,"「暗影狂奔」"),e("(Shadowrun,简称 SR)是一款科学奇幻 TRPG 游戏,背景设定在近未来的灵气复苏赛博朋克虚构世界中。")],-1),m=o("h2",{id:"共鸣性怪异-emoklore",tabindex:"-1"},[o("a",{class:"header-anchor",href:"#共鸣性怪异-emoklore","aria-hidden":"true"},"#"),e(" 共鸣性怪异 Emoklore")],-1),D=o("p",null,"与我们所生活的现实颇为相似的另一个世界。",-1),x=o("p",null,"超常的存在——「怪异」——确确实实地存在于人们身边的世界。",-1),b=o("p",null,[e("这就是《"),o("strong",null,"共鸣性怪异 TRPG"),e("》的舞台。")],-1),k=o("h2",{id:"更多规则",tabindex:"-1"},[o("a",{class:"header-anchor",href:"#更多规则","aria-hidden":"true"},"#"),e(" 更多规则")],-1),w=o("p",null,"除了上述由官方提供支持的规则之外,海豹社区还通过插件的形式为其它规则提供了支持,向你所使用的骰子主人请求安装相应插件吧。",-1);function g(G,C){const t=r("RouterLink");return l(),d("div",null,[i,o("p",null,[e("参阅 "),n(t,{to:"/use/coc7.html#setcoc-%E8%AE%BE%E7%BD%AE%E6%88%BF%E8%A7%84"},{default:s(()=>[e("克苏鲁的呼唤 7 版 # 设置房规")]),_:1}),e(",使用 "),u,e(" 切换到 DG 支持。")]),_,E,o("p",null,[e("参阅 "),n(t,{to:"/use/fun.html#ww-wod-%E8%A7%84%E5%88%99%E9%AA%B0%E7%82%B9"},{default:s(()=>[e("娱乐 # WOD 规则骰点")]),_:1}),e("。")]),f,p,o("p",null,[e("参阅 "),n(t,{to:"/use/fun.html#dx-%E5%8F%8C%E9%87%8D%E5%8D%81%E5%AD%97%E8%A7%84%E5%88%99%E9%AA%B0%E7%82%B9"},{default:s(()=>[e("娱乐 # 双重十字规则骰点")]),_:1}),e("。")]),A,B,o("p",null,[e("参阅 "),n(t,{to:"/use/fun.html#rsr-%E6%9A%97%E5%BD%B1%E7%8B%82%E5%A5%94%E8%A7%84%E5%88%99%E9%AA%B0%E7%82%B9"},{default:s(()=>[e("娱乐 # 暗影狂奔规则骰点")]),_:1}),e("。")]),m,D,x,b,o("p",null,[e("参阅 "),n(t,{to:"/use/fun.html#ek-%E5%85%B1%E9%B8%A3%E6%80%A7%E6%80%AA%E5%BC%82%E8%A7%84%E5%88%99%E9%AA%B0%E7%82%B9"},{default:s(()=>[e("娱乐 # 共鸣性怪异规则骰点")]),_:1}),e("。")]),k,w,o("p",null,[e("参阅 "),n(t,{to:"/config/jsscript.html"},{default:s(()=>[e("配置 - JavaScript 插件")]),_:1}),e(",在插件仓库中获取相应插件。")])])}const P=a(c,[["render",g],["__file","other_rules.html.vue"]]);export{P as default}; diff --git a/assets/path-53f90ab3.js b/assets/path-53f90ab3.js new file mode 100644 index 000000000..f55758f48 --- /dev/null +++ b/assets/path-53f90ab3.js @@ -0,0 +1 @@ +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=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;su)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}; diff --git a/assets/photoswipe.esm-1464cdb9.js b/assets/photoswipe.esm-1464cdb9.js new file mode 100644 index 000000000..c38a7fa42 --- /dev/null +++ b/assets/photoswipe.esm-1464cdb9.js @@ -0,0 +1,4 @@ +/*! + * PhotoSwipe 5.4.2 - https://photoswipe.com + * (c) 2023 Dmytro Semenov + */function f(r,t,i){const e=document.createElement(t);return r&&(e.className=r),i&&i.appendChild(e),e}function p(r,t){return r.x=t.x,r.y=t.y,t.id!==void 0&&(r.id=t.id),r}function M(r){r.x=Math.round(r.x),r.y=Math.round(r.y)}function A(r,t){const i=Math.abs(r.x-t.x),e=Math.abs(r.y-t.y);return Math.sqrt(i*i+e*e)}function x(r,t){return r.x===t.x&&r.y===t.y}function I(r,t,i){return Math.min(Math.max(r,t),i)}function b(r,t,i){let e=`translate3d(${r}px,${t||0}px,0)`;return i!==void 0&&(e+=` scale3d(${i},${i},1)`),e}function y(r,t,i,e){r.style.transform=b(t,i,e)}const $="cubic-bezier(.4,0,.22,1)";function R(r,t,i,e){r.style.transition=t?`${t} ${i}ms ${e||$}`:"none"}function L(r,t,i){r.style.width=typeof t=="number"?`${t}px`:t,r.style.height=typeof i=="number"?`${i}px`:i}function U(r){R(r)}function q(r){return"decode"in r?r.decode().catch(()=>{}):r.complete?Promise.resolve(r):new Promise((t,i)=>{r.onload=()=>t(r),r.onerror=i})}const _={IDLE:"idle",LOADING:"loading",LOADED:"loaded",ERROR:"error"};function G(r){return"button"in r&&r.button===1||r.ctrlKey||r.metaKey||r.altKey||r.shiftKey}function K(r,t,i=document){let e=[];if(r instanceof Element)e=[r];else if(r instanceof NodeList||Array.isArray(r))e=Array.from(r);else{const s=typeof r=="string"?r:t;s&&(e=Array.from(i.querySelectorAll(s)))}return e}function C(){return!!(navigator.vendor&&navigator.vendor.match(/apple/i))}let F=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>{F=!0}}))}catch{}class X{constructor(){this._pool=[]}add(t,i,e,s){this._toggleListener(t,i,e,s)}remove(t,i,e,s){this._toggleListener(t,i,e,s,!0)}removeAll(){this._pool.forEach(t=>{this._toggleListener(t.target,t.type,t.listener,t.passive,!0,!0)}),this._pool=[]}_toggleListener(t,i,e,s,n,o){if(!t)return;const a=n?"removeEventListener":"addEventListener";i.split(" ").forEach(l=>{if(l){o||(n?this._pool=this._pool.filter(d=>d.type!==l||d.listener!==e||d.target!==t):this._pool.push({target:t,type:l,listener:e,passive:s}));const c=F?{passive:s||!1}:!1;t[a](l,e,c)}})}}function B(r,t){if(r.getViewportSizeFn){const i=r.getViewportSizeFn(r,t);if(i)return i}return{x:document.documentElement.clientWidth,y:window.innerHeight}}function S(r,t,i,e,s){let n=0;if(t.paddingFn)n=t.paddingFn(i,e,s)[r];else if(t.padding)n=t.padding[r];else{const o="padding"+r[0].toUpperCase()+r.slice(1);t[o]&&(n=t[o])}return Number(n)||0}function N(r,t,i,e){return{x:t.x-S("left",r,t,i,e)-S("right",r,t,i,e),y:t.y-S("top",r,t,i,e)-S("bottom",r,t,i,e)}}class Y{constructor(t){this.slide=t,this.currZoomLevel=1,this.center={x:0,y:0},this.max={x:0,y:0},this.min={x:0,y:0}}update(t){this.currZoomLevel=t,this.slide.width?(this._updateAxis("x"),this._updateAxis("y"),this.slide.pswp.dispatch("calcBounds",{slide:this.slide})):this.reset()}_updateAxis(t){const{pswp:i}=this.slide,e=this.slide[t==="x"?"width":"height"]*this.currZoomLevel,n=S(t==="x"?"left":"top",i.options,i.viewportSize,this.slide.data,this.slide.index),o=this.slide.panAreaSize[t];this.center[t]=Math.round((o-e)/2)+n,this.max[t]=e>o?Math.round(o-e)+n:this.center[t],this.min[t]=e>o?n:this.center[t]}reset(){this.center.x=0,this.center.y=0,this.max.x=0,this.max.y=0,this.min.x=0,this.min.y=0}correctPan(t,i){return I(i,this.max[t],this.min[t])}}const T=4e3;class k{constructor(t,i,e,s){this.pswp=s,this.options=t,this.itemData=i,this.index=e,this.panAreaSize=null,this.elementSize=null,this.fit=1,this.fill=1,this.vFill=1,this.initial=1,this.secondary=1,this.max=1,this.min=1}update(t,i,e){const s={x:t,y:i};this.elementSize=s,this.panAreaSize=e;const n=e.x/s.x,o=e.y/s.y;this.fit=Math.min(1,no?n:o),this.vFill=Math.min(1,o),this.initial=this._getInitial(),this.secondary=this._getSecondary(),this.max=Math.max(this.initial,this.secondary,this._getMax()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}_parseZoomLevelOption(t){const i=t+"ZoomLevel",e=this.options[i];if(e)return typeof e=="function"?e(this):e==="fill"?this.fill:e==="fit"?this.fit:Number(e)}_getSecondary(){let t=this._parseZoomLevelOption("secondary");return t||(t=Math.min(1,this.fit*3),this.elementSize&&t*this.elementSize.x>T&&(t=T/this.elementSize.x),t)}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){return this._parseZoomLevelOption("max")||Math.max(1,this.fit*4)}}class j{constructor(t,i,e){this.data=t,this.index=i,this.pswp=e,this.isActive=i===e.currIndex,this.currentResolution=0,this.panAreaSize={x:0,y:0},this.pan={x:0,y:0},this.isFirstSlide=this.isActive&&!e.opener.isOpen,this.zoomLevels=new k(e.options,t,i,e),this.pswp.dispatch("gettingData",{slide:this,data:this.data,index:i}),this.content=this.pswp.contentLoader.getContentBySlide(this),this.container=f("pswp__zoom-wrap","div"),this.holderElement=null,this.currZoomLevel=1,this.width=this.content.width,this.height=this.content.height,this.heavyAppended=!1,this.bounds=new Y(this),this.prevDisplayedWidth=-1,this.prevDisplayedHeight=-1,this.pswp.dispatch("slideInit",{slide:this})}setIsActive(t){t&&!this.isActive?this.activate():!t&&this.isActive&&this.deactivate()}append(t){this.holderElement=t,this.container.style.transformOrigin="0 0",this.data&&(this.calculateSize(),this.load(),this.updateContentSize(),this.appendHeavy(),this.holderElement.appendChild(this.container),this.zoomAndPanToInitial(),this.pswp.dispatch("firstZoomPan",{slide:this}),this.applyCurrentZoomPan(),this.pswp.dispatch("afterSetContent",{slide:this}),this.isActive&&this.activate())}load(){this.content.load(!1),this.pswp.dispatch("slideLoad",{slide:this})}appendHeavy(){const{pswp:t}=this,i=!0;this.heavyAppended||!t.opener.isOpen||t.mainScroll.isShifted()||!this.isActive&&!i||this.pswp.dispatch("appendHeavy",{slide:this}).defaultPrevented||(this.heavyAppended=!0,this.content.append(),this.pswp.dispatch("appendHeavyContent",{slide:this}))}activate(){this.isActive=!0,this.appendHeavy(),this.content.activate(),this.pswp.dispatch("slideActivate",{slide:this})}deactivate(){this.isActive=!1,this.content.deactivate(),this.currZoomLevel!==this.zoomLevels.initial&&this.calculateSize(),this.currentResolution=0,this.zoomAndPanToInitial(),this.applyCurrentZoomPan(),this.updateContentSize(),this.pswp.dispatch("slideDeactivate",{slide:this})}destroy(){this.content.hasSlide=!1,this.content.remove(),this.container.remove(),this.pswp.dispatch("slideDestroy",{slide:this})}resize(){this.currZoomLevel===this.zoomLevels.initial||!this.isActive?(this.calculateSize(),this.currentResolution=0,this.zoomAndPanToInitial(),this.applyCurrentZoomPan(),this.updateContentSize()):(this.calculateSize(),this.bounds.update(this.currZoomLevel),this.panTo(this.pan.x,this.pan.y))}updateContentSize(t){const i=this.currentResolution||this.zoomLevels.initial;if(!i)return;const e=Math.round(this.width*i)||this.pswp.viewportSize.x,s=Math.round(this.height*i)||this.pswp.viewportSize.y;!this.sizeChanged(e,s)&&!t||this.content.setDisplayedSize(e,s)}sizeChanged(t,i){return t!==this.prevDisplayedWidth||i!==this.prevDisplayedHeight?(this.prevDisplayedWidth=t,this.prevDisplayedHeight=i,!0):!1}getPlaceholderElement(){var t;return(t=this.content.placeholder)===null||t===void 0?void 0:t.element}zoomTo(t,i,e,s){const{pswp:n}=this;if(!this.isZoomable()||n.mainScroll.isShifted())return;n.dispatch("beforeZoomTo",{destZoomLevel:t,centerPoint:i,transitionDuration:e}),n.animations.stopAllPan();const o=this.currZoomLevel;s||(t=I(t,this.zoomLevels.min,this.zoomLevels.max)),this.setZoomLevel(t),this.pan.x=this.calculateZoomToPanOffset("x",i,o),this.pan.y=this.calculateZoomToPanOffset("y",i,o),M(this.pan);const a=()=>{this._setResolution(t),this.applyCurrentZoomPan()};e?n.animations.startTransition({isPan:!0,name:"zoomTo",target:this.container,transform:this.getCurrentTransform(),onComplete:a,duration:e,easing:n.options.easing}):a()}toggleZoom(t){this.zoomTo(this.currZoomLevel===this.zoomLevels.initial?this.zoomLevels.secondary:this.zoomLevels.initial,t,this.pswp.options.zoomAnimationDuration)}setZoomLevel(t){this.currZoomLevel=t,this.bounds.update(this.currZoomLevel)}calculateZoomToPanOffset(t,i,e){if(this.bounds.max[t]-this.bounds.min[t]===0)return this.bounds.center[t];i||(i=this.pswp.getViewportCenterPoint()),e||(e=this.zoomLevels.initial);const n=this.currZoomLevel/e;return this.bounds.correctPan(t,(this.pan[t]-i[t])*n+i[t])}panTo(t,i){this.pan.x=this.bounds.correctPan("x",t),this.pan.y=this.bounds.correctPan("y",i),this.applyCurrentZoomPan()}isPannable(){return!!this.width&&this.currZoomLevel>this.zoomLevels.fit}isZoomable(){return!!this.width&&this.content.isZoomable()}applyCurrentZoomPan(){this._applyZoomTransform(this.pan.x,this.pan.y,this.currZoomLevel),this===this.pswp.currSlide&&this.pswp.dispatch("zoomPanUpdate",{slide:this})}zoomAndPanToInitial(){this.currZoomLevel=this.zoomLevels.initial,this.bounds.update(this.currZoomLevel),p(this.pan,this.bounds.center),this.pswp.dispatch("initialZoomPan",{slide:this})}_applyZoomTransform(t,i,e){e/=this.currentResolution||this.zoomLevels.initial,y(this.container,t,i,e)}calculateSize(){const{pswp:t}=this;p(this.panAreaSize,N(t.options,t.viewportSize,this.data,this.index)),this.zoomLevels.update(this.width,this.height,this.panAreaSize),t.dispatch("calcSlideSize",{slide:this})}getCurrentTransform(){const t=this.currZoomLevel/(this.currentResolution||this.zoomLevels.initial);return b(this.pan.x,this.pan.y,t)}_setResolution(t){t!==this.currentResolution&&(this.currentResolution=t,this.updateContentSize(),this.pswp.dispatch("resolutionChanged"))}}const Q=.35,J=.6,z=.4,E=.5;function tt(r,t){return r*t/(1-t)}class it{constructor(t){this.gestures=t,this.pswp=t.pswp,this.startPan={x:0,y:0}}start(){this.pswp.currSlide&&p(this.startPan,this.pswp.currSlide.pan),this.pswp.animations.stopAll()}change(){const{p1:t,prevP1:i,dragAxis:e}=this.gestures,{currSlide:s}=this.pswp;if(e==="y"&&this.pswp.options.closeOnVerticalDrag&&s&&s.currZoomLevel<=s.zoomLevels.fit&&!this.gestures.isMultitouch){const n=s.pan.y+(t.y-i.y);if(!this.pswp.dispatch("verticalDrag",{panY:n}).defaultPrevented){this._setPanWithFriction("y",n,J);const o=1-Math.abs(this._getVerticalDragRatio(s.pan.y));this.pswp.applyBgOpacity(o),s.applyCurrentZoomPan()}}else this._panOrMoveMainScroll("x")||(this._panOrMoveMainScroll("y"),s&&(M(s.pan),s.applyCurrentZoomPan()))}end(){const{velocity:t}=this.gestures,{mainScroll:i,currSlide:e}=this.pswp;let s=0;if(this.pswp.animations.stopAll(),i.isShifted()){const o=(i.x-i.getCurrSlideX())/this.pswp.viewportSize.x;t.x<-E&&o<0||t.x<.1&&o<-.5?(s=1,t.x=Math.min(t.x,0)):(t.x>E&&o>0||t.x>-.1&&o>.5)&&(s=-1,t.x=Math.max(t.x,0)),i.moveIndexBy(s,!0,t.x)}e&&e.currZoomLevel>e.zoomLevels.max||this.gestures.isMultitouch?this.gestures.zoomLevels.correctZoomPan(!0):(this._finishPanGestureForAxis("x"),this._finishPanGestureForAxis("y"))}_finishPanGestureForAxis(t){const{velocity:i}=this.gestures,{currSlide:e}=this.pswp;if(!e)return;const{pan:s,bounds:n}=e,o=s[t],a=this.pswp.bgOpacity<1&&t==="y",h=.995,l=o+tt(i[t],h);if(a){const v=this._getVerticalDragRatio(o),w=this._getVerticalDragRatio(l);if(v<0&&w<-z||v>0&&w>z){this.pswp.close();return}}const c=n.correctPan(t,l);if(o===c)return;const d=c===l?1:.82,u=this.pswp.bgOpacity,m=c-o;this.pswp.animations.startSpring({name:"panGesture"+t,isPan:!0,start:o,end:c,velocity:i[t],dampingRatio:d,onUpdate:v=>{if(a&&this.pswp.bgOpacity<1){const w=1-(c-v)/m;this.pswp.applyBgOpacity(I(u+(1-u)*w,0,1))}s[t]=Math.floor(v),e.applyCurrentZoomPan()}})}_panOrMoveMainScroll(t){const{p1:i,dragAxis:e,prevP1:s,isMultitouch:n}=this.gestures,{currSlide:o,mainScroll:a}=this.pswp,h=i[t]-s[t],l=a.x+h;if(!h||!o)return!1;if(t==="x"&&!o.isPannable()&&!n)return a.moveTo(l,!0),!0;const{bounds:c}=o,d=o.pan[t]+h;if(this.pswp.options.allowPanToNext&&e==="x"&&t==="x"&&!n){const u=a.getCurrSlideX(),m=a.x-u,v=h>0,w=!v;if(d>c.min[t]&&v){if(c.min[t]<=this.startPan[t])return a.moveTo(l,!0),!0;this._setPanWithFriction(t,d)}else if(d0)return a.moveTo(Math.max(l,u),!0),!0;if(m<0)return a.moveTo(Math.min(l,u),!0),!0}else this._setPanWithFriction(t,d)}else t==="y"?!a.isShifted()&&c.min.y!==c.max.y&&this._setPanWithFriction(t,d):this._setPanWithFriction(t,d);return!1}_getVerticalDragRatio(t){var i,e;return(t-((i=(e=this.pswp.currSlide)===null||e===void 0?void 0:e.bounds.center.y)!==null&&i!==void 0?i:0))/(this.pswp.viewportSize.y/3)}_setPanWithFriction(t,i,e){const{currSlide:s}=this.pswp;if(!s)return;const{pan:n,bounds:o}=s;if(o.correctPan(t,i)!==i||e){const h=Math.round(i-n[t]);n[t]+=h*(e||Q)}else n[t]=i}}const et=.05,st=.15;function O(r,t,i){return r.x=(t.x+i.x)/2,r.y=(t.y+i.y)/2,r}class nt{constructor(t){this.gestures=t,this._startPan={x:0,y:0},this._startZoomPoint={x:0,y:0},this._zoomPoint={x:0,y:0},this._wasOverFitZoomLevel=!1,this._startZoomLevel=1}start(){const{currSlide:t}=this.gestures.pswp;t&&(this._startZoomLevel=t.currZoomLevel,p(this._startPan,t.pan)),this.gestures.pswp.animations.stopAllPan(),this._wasOverFitZoomLevel=!1}change(){const{p1:t,startP1:i,p2:e,startP2:s,pswp:n}=this.gestures,{currSlide:o}=n;if(!o)return;const a=o.zoomLevels.min,h=o.zoomLevels.max;if(!o.isZoomable()||n.mainScroll.isShifted())return;O(this._startZoomPoint,i,s),O(this._zoomPoint,t,e);let l=1/A(i,s)*A(t,e)*this._startZoomLevel;if(l>o.zoomLevels.initial+o.zoomLevels.initial/15&&(this._wasOverFitZoomLevel=!0),lh&&(l=h+(l-h)*et);o.pan.x=this._calculatePanForZoomLevel("x",l),o.pan.y=this._calculatePanForZoomLevel("y",l),o.setZoomLevel(l),o.applyCurrentZoomPan()}end(){const{pswp:t}=this.gestures,{currSlide:i}=t;(!i||i.currZoomLevele.zoomLevels.max?n=e.zoomLevels.max:(o=!1,n=s);const a=i.bgOpacity,h=i.bgOpacity<1,l=p({x:0,y:0},e.pan);let c=p({x:0,y:0},l);t&&(this._zoomPoint.x=0,this._zoomPoint.y=0,this._startZoomPoint.x=0,this._startZoomPoint.y=0,this._startZoomLevel=s,p(this._startPan,l)),o&&(c={x:this._calculatePanForZoomLevel("x",n),y:this._calculatePanForZoomLevel("y",n)}),e.setZoomLevel(n),c={x:e.bounds.correctPan("x",c.x),y:e.bounds.correctPan("y",c.y)},e.setZoomLevel(s);const d=!x(c,l);if(!d&&!o&&!h){e._setResolution(n),e.applyCurrentZoomPan();return}i.animations.stopAllPan(),i.animations.startSpring({isPan:!0,start:0,end:1e3,velocity:0,dampingRatio:1,naturalFrequency:40,onUpdate:u=>{if(u/=1e3,d||o){if(d&&(e.pan.x=l.x+(c.x-l.x)*u,e.pan.y=l.y+(c.y-l.y)*u),o){const m=s+(n-s)*u;e.setZoomLevel(m)}e.applyCurrentZoomPan()}h&&i.bgOpacity<1&&i.applyBgOpacity(I(a+(1-a)*u,0,1))},onComplete:()=>{e._setResolution(n),e.applyCurrentZoomPan()}})}}function Z(r){return!!r.target.closest(".pswp__container")}class ot{constructor(t){this.gestures=t}click(t,i){const e=i.target.classList,s=e.contains("pswp__img"),n=e.contains("pswp__item")||e.contains("pswp__zoom-wrap");s?this._doClickOrTapAction("imageClick",t,i):n&&this._doClickOrTapAction("bgClick",t,i)}tap(t,i){Z(i)&&this._doClickOrTapAction("tap",t,i)}doubleTap(t,i){Z(i)&&this._doClickOrTapAction("doubleTap",t,i)}_doClickOrTapAction(t,i,e){var s;const{pswp:n}=this.gestures,{currSlide:o}=n,a=t+"Action",h=n.options[a];if(!n.dispatch(a,{point:i,originalEvent:e}).defaultPrevented){if(typeof h=="function"){h.call(n,i,e);return}switch(h){case"close":case"next":n[h]();break;case"zoom":o==null||o.toggleZoom(i);break;case"zoom-or-close":o!=null&&o.isZoomable()&&o.zoomLevels.secondary!==o.zoomLevels.initial?o.toggleZoom(i):n.options.clickToCloseNonZoomable&&n.close();break;case"toggle-controls":(s=this.gestures.pswp.element)===null||s===void 0||s.classList.toggle("pswp--ui-visible");break}}}}const rt=10,at=300,ht=25;class lt{constructor(t){this.pswp=t,this.dragAxis=null,this.p1={x:0,y:0},this.p2={x:0,y:0},this.prevP1={x:0,y:0},this.prevP2={x:0,y:0},this.startP1={x:0,y:0},this.startP2={x:0,y:0},this.velocity={x:0,y:0},this._lastStartP1={x:0,y:0},this._intervalP1={x:0,y:0},this._numActivePoints=0,this._ongoingPointers=[],this._touchEventEnabled="ontouchstart"in window,this._pointerEventEnabled=!!window.PointerEvent,this.supportsTouch=this._touchEventEnabled||this._pointerEventEnabled&&navigator.maxTouchPoints>1,this._numActivePoints=0,this._intervalTime=0,this._velocityCalculated=!1,this.isMultitouch=!1,this.isDragging=!1,this.isZooming=!1,this.raf=null,this._tapTimer=null,this.supportsTouch||(t.options.allowPanToNext=!1),this.drag=new it(this),this.zoomLevels=new nt(this),this.tapHandler=new ot(this),t.on("bindEvents",()=>{t.events.add(t.scrollWrap,"click",this._onClick.bind(this)),this._pointerEventEnabled?this._bindEvents("pointer","down","up","cancel"):this._touchEventEnabled?(this._bindEvents("touch","start","end","cancel"),t.scrollWrap&&(t.scrollWrap.ontouchmove=()=>{},t.scrollWrap.ontouchend=()=>{})):this._bindEvents("mouse","down","up")})}_bindEvents(t,i,e,s){const{pswp:n}=this,{events:o}=n,a=s?t+s:"";o.add(n.scrollWrap,t+i,this.onPointerDown.bind(this)),o.add(window,t+"move",this.onPointerMove.bind(this)),o.add(window,t+e,this.onPointerUp.bind(this)),a&&o.add(n.scrollWrap,a,this.onPointerUp.bind(this))}onPointerDown(t){const i=t.type==="mousedown"||t.pointerType==="mouse";if(i&&t.button>0)return;const{pswp:e}=this;if(!e.opener.isOpen){t.preventDefault();return}e.dispatch("pointerDown",{originalEvent:t}).defaultPrevented||(i&&(e.mouseDetected(),this._preventPointerEventBehaviour(t,"down")),e.animations.stopAll(),this._updatePoints(t,"down"),this._numActivePoints===1&&(this.dragAxis=null,p(this.startP1,this.p1)),this._numActivePoints>1?(this._clearTapTimer(),this.isMultitouch=!0):this.isMultitouch=!1)}onPointerMove(t){this._preventPointerEventBehaviour(t,"move"),this._numActivePoints&&(this._updatePoints(t,"move"),!this.pswp.dispatch("pointerMove",{originalEvent:t}).defaultPrevented&&(this._numActivePoints===1&&!this.isDragging?(this.dragAxis||this._calculateDragDirection(),this.dragAxis&&!this.isDragging&&(this.isZooming&&(this.isZooming=!1,this.zoomLevels.end()),this.isDragging=!0,this._clearTapTimer(),this._updateStartPoints(),this._intervalTime=Date.now(),this._velocityCalculated=!1,p(this._intervalP1,this.p1),this.velocity.x=0,this.velocity.y=0,this.drag.start(),this._rafStopLoop(),this._rafRenderLoop())):this._numActivePoints>1&&!this.isZooming&&(this._finishDrag(),this.isZooming=!0,this._updateStartPoints(),this.zoomLevels.start(),this._rafStopLoop(),this._rafRenderLoop())))}_finishDrag(){this.isDragging&&(this.isDragging=!1,this._velocityCalculated||this._updateVelocity(!0),this.drag.end(),this.dragAxis=null)}onPointerUp(t){this._numActivePoints&&(this._updatePoints(t,"up"),!this.pswp.dispatch("pointerUp",{originalEvent:t}).defaultPrevented&&(this._numActivePoints===0&&(this._rafStopLoop(),this.isDragging?this._finishDrag():!this.isZooming&&!this.isMultitouch&&this._finishTap(t)),this._numActivePoints<2&&this.isZooming&&(this.isZooming=!1,this.zoomLevels.end(),this._numActivePoints===1&&(this.dragAxis=null,this._updateStartPoints()))))}_rafRenderLoop(){(this.isDragging||this.isZooming)&&(this._updateVelocity(),this.isDragging?x(this.p1,this.prevP1)||this.drag.change():(!x(this.p1,this.prevP1)||!x(this.p2,this.prevP2))&&this.zoomLevels.change(),this._updatePrevPoints(),this.raf=requestAnimationFrame(this._rafRenderLoop.bind(this)))}_updateVelocity(t){const i=Date.now(),e=i-this._intervalTime;e<50&&!t||(this.velocity.x=this._getVelocity("x",e),this.velocity.y=this._getVelocity("y",e),this._intervalTime=i,p(this._intervalP1,this.p1),this._velocityCalculated=!0)}_finishTap(t){const{mainScroll:i}=this.pswp;if(i.isShifted()){i.moveIndexBy(0,!0);return}if(t.type.indexOf("cancel")>0)return;if(t.type==="mouseup"||t.pointerType==="mouse"){this.tapHandler.click(this.startP1,t);return}const e=this.pswp.options.doubleTapAction?at:0;this._tapTimer?(this._clearTapTimer(),A(this._lastStartP1,this.startP1){this.tapHandler.tap(this.startP1,t),this._clearTapTimer()},e))}_clearTapTimer(){this._tapTimer&&(clearTimeout(this._tapTimer),this._tapTimer=null)}_getVelocity(t,i){const e=this.p1[t]-this._intervalP1[t];return Math.abs(e)>1&&i>5?e/i:0}_rafStopLoop(){this.raf&&(cancelAnimationFrame(this.raf),this.raf=null)}_preventPointerEventBehaviour(t,i){this.pswp.applyFilters("preventPointerEvent",!0,t,i)&&t.preventDefault()}_updatePoints(t,i){if(this._pointerEventEnabled){const e=t,s=this._ongoingPointers.findIndex(n=>n.id===e.pointerId);i==="up"&&s>-1?this._ongoingPointers.splice(s,1):i==="down"&&s===-1?this._ongoingPointers.push(this._convertEventPosToPoint(e,{x:0,y:0})):s>-1&&this._convertEventPosToPoint(e,this._ongoingPointers[s]),this._numActivePoints=this._ongoingPointers.length,this._numActivePoints>0&&p(this.p1,this._ongoingPointers[0]),this._numActivePoints>1&&p(this.p2,this._ongoingPointers[1])}else{const e=t;this._numActivePoints=0,e.type.indexOf("touch")>-1?e.touches&&e.touches.length>0&&(this._convertEventPosToPoint(e.touches[0],this.p1),this._numActivePoints++,e.touches.length>1&&(this._convertEventPosToPoint(e.touches[1],this.p2),this._numActivePoints++)):(this._convertEventPosToPoint(t,this.p1),i==="up"?this._numActivePoints=0:this._numActivePoints++)}}_updatePrevPoints(){p(this.prevP1,this.p1),p(this.prevP2,this.p2)}_updateStartPoints(){p(this.startP1,this.p1),p(this.startP2,this.p2),this._updatePrevPoints()}_calculateDragDirection(){if(this.pswp.mainScroll.isShifted())this.dragAxis="x";else{const t=Math.abs(this.p1.x-this.startP1.x)-Math.abs(this.p1.y-this.startP1.y);if(t!==0){const i=t>0?"x":"y";Math.abs(this.p1[i]-this.startP1[i])>=rt&&(this.dragAxis=i)}}}_convertEventPosToPoint(t,i){return i.x=t.pageX-this.pswp.offset.x,i.y=t.pageY-this.pswp.offset.y,"pointerId"in t?i.id=t.pointerId:t.identifier!==void 0&&(i.id=t.identifier),i}_onClick(t){this.pswp.mainScroll.isShifted()&&(t.preventDefault(),t.stopPropagation())}}const ct=.35;class dt{constructor(t){this.pswp=t,this.x=0,this.slideWidth=0,this._currPositionIndex=0,this._prevPositionIndex=0,this._containerShiftIndex=-1,this.itemHolders=[]}resize(t){const{pswp:i}=this,e=Math.round(i.viewportSize.x+i.viewportSize.x*i.options.spacing),s=e!==this.slideWidth;s&&(this.slideWidth=e,this.moveTo(this.getCurrSlideX())),this.itemHolders.forEach((n,o)=>{s&&y(n.el,(o+this._containerShiftIndex)*this.slideWidth),t&&n.slide&&n.slide.resize()})}resetPosition(){this._currPositionIndex=0,this._prevPositionIndex=0,this.slideWidth=0,this._containerShiftIndex=-1}appendHolders(){this.itemHolders=[];for(let t=0;t<3;t++){const i=f("pswp__item","div",this.pswp.container);i.setAttribute("role","group"),i.setAttribute("aria-roledescription","slide"),i.setAttribute("aria-hidden","true"),i.style.display=t===1?"block":"none",this.itemHolders.push({el:i})}}canBeSwiped(){return this.pswp.getNumItems()>1}moveIndexBy(t,i,e){const{pswp:s}=this;let n=s.potentialIndex+t;const o=s.getNumItems();if(s.canLoop()){n=s.getLoopedIndex(n);const h=(t+o)%o;h<=o/2?t=h:t=h-o}else n<0?n=0:n>=o&&(n=o-1),t=n-s.potentialIndex;s.potentialIndex=n,this._currPositionIndex-=t,s.animations.stopMainScroll();const a=this.getCurrSlideX();if(!i)this.moveTo(a),this.updateCurrItem();else{s.animations.startSpring({isMainScroll:!0,start:this.x,end:a,velocity:e||0,naturalFrequency:30,dampingRatio:1,onUpdate:l=>{this.moveTo(l)},onComplete:()=>{this.updateCurrItem(),s.appendHeavy()}});let h=s.potentialIndex-s.currIndex;if(s.canLoop()){const l=(h+o)%o;l<=o/2?h=l:h=l-o}Math.abs(h)>1&&this.updateCurrItem()}return!!t}getCurrSlideX(){return this.slideWidth*this._currPositionIndex}isShifted(){return this.x!==this.getCurrSlideX()}updateCurrItem(){var t;const{pswp:i}=this,e=this._prevPositionIndex-this._currPositionIndex;if(!e)return;this._prevPositionIndex=this._currPositionIndex,i.currIndex=i.potentialIndex;let s=Math.abs(e),n;s>=3&&(this._containerShiftIndex+=e+(e>0?-3:3),s=3);for(let o=0;o0?(n=this.itemHolders.shift(),n&&(this.itemHolders[2]=n,this._containerShiftIndex++,y(n.el,(this._containerShiftIndex+2)*this.slideWidth),i.setContent(n,i.currIndex-s+o+2))):(n=this.itemHolders.pop(),n&&(this.itemHolders.unshift(n),this._containerShiftIndex--,y(n.el,this._containerShiftIndex*this.slideWidth),i.setContent(n,i.currIndex+s-o-2)));Math.abs(this._containerShiftIndex)>50&&!this.isShifted()&&(this.resetPosition(),this.resize()),i.animations.stopAllPan(),this.itemHolders.forEach((o,a)=>{o.slide&&o.slide.setIsActive(a===1)}),i.currSlide=(t=this.itemHolders[1])===null||t===void 0?void 0:t.slide,i.contentLoader.updateLazy(e),i.currSlide&&i.currSlide.applyCurrentZoomPan(),i.dispatch("change")}moveTo(t,i){if(!this.pswp.canLoop()&&i){let e=(this.slideWidth*this._currPositionIndex-t)/this.slideWidth;e+=this.pswp.currIndex;const s=Math.round(t-this.x);(e<0&&s>0||e>=this.pswp.getNumItems()-1&&s<0)&&(t=this.x+s*ct)}this.x=t,this.pswp.container&&y(this.pswp.container,t),this.pswp.dispatch("moveMainScroll",{x:t,dragging:i??!1})}}const pt={Escape:27,z:90,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Tab:9},g=(r,t)=>t?r:pt[r];class ut{constructor(t){this.pswp=t,this._wasFocused=!1,t.on("bindEvents",()=>{t.options.trapFocus&&(t.options.initialPointerPos||this._focusRoot(),t.events.add(document,"focusin",this._onFocusIn.bind(this))),t.events.add(document,"keydown",this._onKeyDown.bind(this))});const i=document.activeElement;t.on("destroy",()=>{t.options.returnFocus&&i&&this._wasFocused&&i.focus()})}_focusRoot(){!this._wasFocused&&this.pswp.element&&(this.pswp.element.focus(),this._wasFocused=!0)}_onKeyDown(t){const{pswp:i}=this;if(i.dispatch("keydown",{originalEvent:t}).defaultPrevented||G(t))return;let e,s,n=!1;const o="key"in t;switch(o?t.key:t.keyCode){case g("Escape",o):i.options.escKey&&(e="close");break;case g("z",o):e="toggleZoom";break;case g("ArrowLeft",o):s="x";break;case g("ArrowUp",o):s="y";break;case g("ArrowRight",o):s="x",n=!0;break;case g("ArrowDown",o):n=!0,s="y";break;case g("Tab",o):this._focusRoot();break}if(s){t.preventDefault();const{currSlide:a}=i;i.options.arrowKeys&&s==="x"&&i.getNumItems()>1?e=n?"next":"prev":a&&a.currZoomLevel>a.zoomLevels.fit&&(a.pan[s]+=n?-80:80,a.panTo(a.pan.x,a.pan.y))}e&&(t.preventDefault(),i[e]())}_onFocusIn(t){const{template:i}=this.pswp;i&&document!==t.target&&i!==t.target&&!i.contains(t.target)&&i.focus()}}const mt="cubic-bezier(.4,0,.22,1)";class ft{constructor(t){var i;this.props=t;const{target:e,onComplete:s,transform:n,onFinish:o=()=>{},duration:a=333,easing:h=mt}=t;this.onFinish=o;const l=n?"transform":"opacity",c=(i=t[l])!==null&&i!==void 0?i:"";this._target=e,this._onComplete=s,this._finished=!1,this._onTransitionEnd=this._onTransitionEnd.bind(this),this._helperTimeout=setTimeout(()=>{R(e,l,a,h),this._helperTimeout=setTimeout(()=>{e.addEventListener("transitionend",this._onTransitionEnd,!1),e.addEventListener("transitioncancel",this._onTransitionEnd,!1),this._helperTimeout=setTimeout(()=>{this._finalizeAnimation()},a+500),e.style[l]=c},30)},0)}_onTransitionEnd(t){t.target===this._target&&this._finalizeAnimation()}_finalizeAnimation(){this._finished||(this._finished=!0,this.onFinish(),this._onComplete&&this._onComplete())}destroy(){this._helperTimeout&&clearTimeout(this._helperTimeout),U(this._target),this._target.removeEventListener("transitionend",this._onTransitionEnd,!1),this._target.removeEventListener("transitioncancel",this._onTransitionEnd,!1),this._finished||this._finalizeAnimation()}}const _t=12,vt=.75;class gt{constructor(t,i,e){this.velocity=t*1e3,this._dampingRatio=i||vt,this._naturalFrequency=e||_t,this._dampedFrequency=this._naturalFrequency,this._dampingRatio<1&&(this._dampedFrequency*=Math.sqrt(1-this._dampingRatio*this._dampingRatio))}easeFrame(t,i){let e=0,s;i/=1e3;const n=Math.E**(-this._dampingRatio*this._naturalFrequency*i);if(this._dampingRatio===1)s=this.velocity+this._naturalFrequency*t,e=(t+s*i)*n,this.velocity=e*-this._naturalFrequency+s*n;else if(this._dampingRatio<1){s=1/this._dampedFrequency*(this._dampingRatio*this._naturalFrequency*t+this.velocity);const o=Math.cos(this._dampedFrequency*i),a=Math.sin(this._dampedFrequency*i);e=n*(t*o+s*a),this.velocity=e*-this._naturalFrequency*this._dampingRatio+n*(-this._dampedFrequency*t*a+this._dampedFrequency*s*o)}return e}}class yt{constructor(t){this.props=t,this._raf=0;const{start:i,end:e,velocity:s,onUpdate:n,onComplete:o,onFinish:a=()=>{},dampingRatio:h,naturalFrequency:l}=t;this.onFinish=a;const c=new gt(s,h,l);let d=Date.now(),u=i-e;const m=()=>{this._raf&&(u=c.easeFrame(u,Date.now()-d),Math.abs(u)<1&&Math.abs(c.velocity)<50?(n(e),o&&o(),this.onFinish()):(d=Date.now(),n(u+e),this._raf=requestAnimationFrame(m)))};this._raf=requestAnimationFrame(m)}destroy(){this._raf>=0&&cancelAnimationFrame(this._raf),this._raf=0}}class wt{constructor(){this.activeAnimations=[]}startSpring(t){this._start(t,!0)}startTransition(t){this._start(t)}_start(t,i){const e=i?new yt(t):new ft(t);return this.activeAnimations.push(e),e.onFinish=()=>this.stop(e),e}stop(t){t.destroy();const i=this.activeAnimations.indexOf(t);i>-1&&this.activeAnimations.splice(i,1)}stopAll(){this.activeAnimations.forEach(t=>{t.destroy()}),this.activeAnimations=[]}stopAllPan(){this.activeAnimations=this.activeAnimations.filter(t=>t.props.isPan?(t.destroy(),!1):!0)}stopMainScroll(){this.activeAnimations=this.activeAnimations.filter(t=>t.props.isMainScroll?(t.destroy(),!1):!0)}isPanRunning(){return this.activeAnimations.some(t=>t.props.isPan)}}class Pt{constructor(t){this.pswp=t,t.events.add(t.element,"wheel",this._onWheel.bind(this))}_onWheel(t){t.preventDefault();const{currSlide:i}=this.pswp;let{deltaX:e,deltaY:s}=t;if(i&&!this.pswp.dispatch("wheel",{originalEvent:t}).defaultPrevented)if(t.ctrlKey||this.pswp.options.wheelToZoom){if(i.isZoomable()){let n=-s;t.deltaMode===1?n*=.05:n*=t.deltaMode?1:.002,n=2**n;const o=i.currZoomLevel*n;i.zoomTo(o,{x:t.clientX,y:t.clientY})}}else i.isPannable()&&(t.deltaMode===1&&(e*=18,s*=18),i.panTo(i.pan.x-e,i.pan.y-s))}}function St(r){if(typeof r=="string")return r;if(!r||!r.isCustomSVG)return"";const t=r;let i='",i}class xt{constructor(t,i){var e;const s=i.name||i.className;let n=i.html;if(t.options[s]===!1)return;typeof t.options[s+"SVG"]=="string"&&(n=t.options[s+"SVG"]),t.dispatch("uiElementCreate",{data:i});let o="";i.isButton?(o+="pswp__button ",o+=i.className||`pswp__button--${i.name}`):o+=i.className||`pswp__${i.name}`;let a=i.isButton?i.tagName||"button":i.tagName||"div";a=a.toLowerCase();const h=f(o,a);if(i.isButton){a==="button"&&(h.type="button");let{title:d}=i;const{ariaLabel:u}=i;typeof t.options[s+"Title"]=="string"&&(d=t.options[s+"Title"]),d&&(h.title=d);const m=u||d;m&&h.setAttribute("aria-label",m)}h.innerHTML=St(n),i.onInit&&i.onInit(h,t),i.onClick&&(h.onclick=d=>{typeof i.onClick=="string"?t[i.onClick]():typeof i.onClick=="function"&&i.onClick(d,h,t)});const l=i.appendTo||"bar";let c=t.element;l==="bar"?(t.topBar||(t.topBar=f("pswp__top-bar pswp__hide-on-close","div",t.scrollWrap)),c=t.topBar):(h.classList.add("pswp__hide-on-close"),l==="wrapper"&&(c=t.scrollWrap)),(e=c)===null||e===void 0||e.appendChild(t.applyFilters("uiElement",h,i))}}function H(r,t,i){r.classList.add("pswp__button--arrow"),r.setAttribute("aria-controls","pswp__items"),t.on("change",()=>{t.options.loop||(i?r.disabled=!(t.currIndex0))})}const bt={name:"arrowPrev",className:"pswp__button--arrow--prev",title:"Previous",order:10,isButton:!0,appendTo:"wrapper",html:{isCustomSVG:!0,size:60,inner:'',outlineID:"pswp__icn-arrow"},onClick:"prev",onInit:H},It={name:"arrowNext",className:"pswp__button--arrow--next",title:"Next",order:11,isButton:!0,appendTo:"wrapper",html:{isCustomSVG:!0,size:60,inner:'',outlineID:"pswp__icn-arrow"},onClick:"next",onInit:(r,t)=>{H(r,t,!0)}},At={name:"close",title:"Close",order:20,isButton:!0,html:{isCustomSVG:!0,inner:'',outlineID:"pswp__icn-close"},onClick:"close"},Lt={name:"zoom",title:"Zoom",order:10,isButton:!0,html:{isCustomSVG:!0,inner:'',outlineID:"pswp__icn-zoom"},onClick:"toggleZoom"},Ct={name:"preloader",appendTo:"bar",order:7,html:{isCustomSVG:!0,inner:'',outlineID:"pswp__icn-loading"},onInit:(r,t)=>{let i,e=null;const s=(a,h)=>{r.classList.toggle("pswp__preloader--"+a,h)},n=a=>{i!==a&&(i=a,s("active",a))},o=()=>{var a;if(!((a=t.currSlide)!==null&&a!==void 0&&a.content.isLoading())){n(!1),e&&(clearTimeout(e),e=null);return}e||(e=setTimeout(()=>{var h;n(!!(!((h=t.currSlide)===null||h===void 0)&&h.content.isLoading())),e=null},t.options.preloaderDelay))};t.on("change",o),t.on("loadComplete",a=>{t.currSlide===a.slide&&o()}),t.ui&&(t.ui.updatePreloaderVisibility=o)}},Tt={name:"counter",order:5,onInit:(r,t)=>{t.on("change",()=>{r.innerText=t.currIndex+1+t.options.indexIndicatorSep+t.getNumItems()})}};function D(r,t){r.classList.toggle("pswp--zoomed-in",t)}class zt{constructor(t){this.pswp=t,this.isRegistered=!1,this.uiElementsData=[],this.items=[],this.updatePreloaderVisibility=()=>{},this._lastUpdatedZoomLevel=void 0}init(){const{pswp:t}=this;this.isRegistered=!1,this.uiElementsData=[At,bt,It,Lt,Ct,Tt],t.dispatch("uiRegister"),this.uiElementsData.sort((i,e)=>(i.order||0)-(e.order||0)),this.items=[],this.isRegistered=!0,this.uiElementsData.forEach(i=>{this.registerElement(i)}),t.on("change",()=>{var i;(i=t.element)===null||i===void 0||i.classList.toggle("pswp--one-slide",t.getNumItems()===1)}),t.on("zoomPanUpdate",()=>this._onZoomPanUpdate())}registerElement(t){this.isRegistered?this.items.push(new xt(this.pswp,t)):this.uiElementsData.push(t)}_onZoomPanUpdate(){const{template:t,currSlide:i,options:e}=this.pswp;if(this.pswp.opener.isClosing||!t||!i)return;let{currZoomLevel:s}=i;if(this.pswp.opener.isOpen||(s=i.zoomLevels.initial),s===this._lastUpdatedZoomLevel)return;this._lastUpdatedZoomLevel=s;const n=i.zoomLevels.initial-i.zoomLevels.secondary;if(Math.abs(n)<.01||!i.isZoomable()){D(t,!1),t.classList.remove("pswp--zoom-allowed");return}t.classList.add("pswp--zoom-allowed");const o=s===i.zoomLevels.initial?i.zoomLevels.secondary:i.zoomLevels.initial;D(t,o<=s),(e.imageClickAction==="zoom"||e.imageClickAction==="zoom-or-close")&&t.classList.add("pswp--click-to-zoom")}}function Et(r){const t=r.getBoundingClientRect();return{x:t.left,y:t.top,w:t.width}}function Ot(r,t,i){const e=r.getBoundingClientRect(),s=e.width/t,n=e.height/i,o=s>n?s:n,a=(e.width-t*o)/2,h=(e.height-i*o)/2,l={x:e.left+a,y:e.top+h,w:t*o};return l.innerRect={w:e.width,h:e.height,x:a,y:h},l}function Zt(r,t,i){const e=i.dispatch("thumbBounds",{index:r,itemData:t,instance:i});if(e.thumbBounds)return e.thumbBounds;const{element:s}=t;let n,o;if(s&&i.options.thumbSelector!==!1){const a=i.options.thumbSelector||"img";o=s.matches(a)?s:s.querySelector(a)}return o=i.applyFilters("thumbEl",o,t,r),o&&(t.thumbCropped?n=Ot(o,t.width||t.w||0,t.height||t.h||0):n=Et(o)),i.applyFilters("thumbBounds",n,t,r)}class Dt{constructor(t,i){this.type=t,this.defaultPrevented=!1,i&&Object.assign(this,i)}preventDefault(){this.defaultPrevented=!0}}class Mt{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(t,i,e=100){var s,n,o;this._filters[t]||(this._filters[t]=[]),(s=this._filters[t])===null||s===void 0||s.push({fn:i,priority:e}),(n=this._filters[t])===null||n===void 0||n.sort((a,h)=>a.priority-h.priority),(o=this.pswp)===null||o===void 0||o.addFilter(t,i,e)}removeFilter(t,i){this._filters[t]&&(this._filters[t]=this._filters[t].filter(e=>e.fn!==i)),this.pswp&&this.pswp.removeFilter(t,i)}applyFilters(t,...i){var e;return(e=this._filters[t])===null||e===void 0||e.forEach(s=>{i[0]=s.fn.apply(this,i)}),i[0]}on(t,i){var e,s;this._listeners[t]||(this._listeners[t]=[]),(e=this._listeners[t])===null||e===void 0||e.push(i),(s=this.pswp)===null||s===void 0||s.on(t,i)}off(t,i){var e;this._listeners[t]&&(this._listeners[t]=this._listeners[t].filter(s=>i!==s)),(e=this.pswp)===null||e===void 0||e.off(t,i)}dispatch(t,i){var e;if(this.pswp)return this.pswp.dispatch(t,i);const s=new Dt(t,i);return(e=this._listeners[t])===null||e===void 0||e.forEach(n=>{n.call(this,s)}),s}}class Rt{constructor(t,i){if(this.element=f("pswp__img pswp__img--placeholder",t?"img":"div",i),t){const e=this.element;e.decoding="async",e.alt="",e.src=t,e.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(t,i){this.element&&(this.element.tagName==="IMG"?(L(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=b(0,0,t/250)):L(this.element,t,i))}destroy(){var t;(t=this.element)!==null&&t!==void 0&&t.parentNode&&this.element.remove(),this.element=null}}class Ft{constructor(t,i,e){this.instance=i,this.data=t,this.index=e,this.element=void 0,this.placeholder=void 0,this.slide=void 0,this.displayedImageWidth=0,this.displayedImageHeight=0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.isDecoding=!1,this.state=_.IDLE,this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout(()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0)},1e3)}load(t,i){if(this.slide&&this.usePlaceholder())if(this.placeholder){const e=this.placeholder.element;e&&!e.parentElement&&this.slide.container.prepend(e)}else{const e=this.instance.applyFilters("placeholderSrc",this.data.msrc&&this.slide.isFirstSlide?this.data.msrc:!1,this);this.placeholder=new Rt(e,this.slide.container)}this.element&&!i||this.instance.dispatch("contentLoad",{content:this,isLazy:t}).defaultPrevented||(this.isImageContent()?(this.element=f("pswp__img","img"),this.displayedImageWidth&&this.loadImage(t)):(this.element=f("pswp__content","div"),this.element.innerHTML=this.data.html||""),i&&this.slide&&this.slide.updateContentSize(!0))}loadImage(t){var i,e;if(!this.isImageContent()||!this.element||this.instance.dispatch("contentLoadImage",{content:this,isLazy:t}).defaultPrevented)return;const s=this.element;this.updateSrcsetSizes(),this.data.srcset&&(s.srcset=this.data.srcset),s.src=(i=this.data.src)!==null&&i!==void 0?i:"",s.alt=(e=this.data.alt)!==null&&e!==void 0?e:"",this.state=_.LOADING,s.complete?this.onLoaded():(s.onload=()=>{this.onLoaded()},s.onerror=()=>{this.onError()})}setSlide(t){this.slide=t,this.hasSlide=!0,this.instance=t.pswp}onLoaded(){this.state=_.LOADED,this.slide&&this.element&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.append(),this.slide.updateContentSize(!0)),(this.state===_.LOADED||this.state===_.ERROR)&&this.removePlaceholder())}onError(){this.state=_.ERROR,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===_.LOADING,this)}isError(){return this.state===_.ERROR}isImageContent(){return this.type==="image"}setDisplayedSize(t,i){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(t,i),!this.instance.dispatch("contentResize",{content:this,width:t,height:i}).defaultPrevented&&(L(this.element,t,i),this.isImageContent()&&!this.isError()))){const e=!this.displayedImageWidth&&t;this.displayedImageWidth=t,this.displayedImageHeight=i,e?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:t,height:i,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==_.ERROR,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return;const t=this.element,i=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!t.dataset.largestUsedSize||i>parseInt(t.dataset.largestUsedSize,10))&&(t.sizes=i+"px",t.dataset.largestUsedSize=String(i))}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=void 0,!this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented&&(this.remove(),this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=void 0))}displayError(){if(this.slide){var t,i;let e=f("pswp__error-msg","div");e.innerText=(t=(i=this.instance.options)===null||i===void 0?void 0:i.errorMsg)!==null&&t!==void 0?t:"",e=this.instance.applyFilters("contentErrorElement",e,this),this.element=f("pswp__content pswp__error-msg-container","div"),this.element.appendChild(e),this.slide.container.innerText="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){if(this.isAttached||!this.element)return;if(this.isAttached=!0,this.state===_.ERROR){this.displayError();return}if(this.instance.dispatch("contentAppend",{content:this}).defaultPrevented)return;const t="decode"in this.element;this.isImageContent()?t&&this.slide&&(!this.slide.isActive||C())?(this.isDecoding=!0,this.element.decode().catch(()=>{}).finally(()=>{this.isDecoding=!1,this.appendImage()})):this.appendImage():this.slide&&!this.element.parentNode&&this.slide.container.appendChild(this.element)}activate(){this.instance.dispatch("contentActivate",{content:this}).defaultPrevented||!this.slide||(this.isImageContent()&&this.isDecoding&&!C()?this.appendImage():this.isError()&&this.load(!1,!0),this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","false"))}deactivate(){this.instance.dispatch("contentDeactivate",{content:this}),this.slide&&this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","true")}remove(){this.isAttached=!1,!this.instance.dispatch("contentRemove",{content:this}).defaultPrevented&&(this.element&&this.element.parentNode&&this.element.remove(),this.placeholder&&this.placeholder.element&&this.placeholder.element.remove())}appendImage(){this.isAttached&&(this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||(this.slide&&this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element),(this.state===_.LOADED||this.state===_.ERROR)&&this.removePlaceholder()))}}const Bt=5;function W(r,t,i){const e=t.createContentFromData(r,i);let s;const{options:n}=t;if(n){s=new k(n,r,-1);let o;t.pswp?o=t.pswp.viewportSize:o=B(n,t);const a=N(n,o,r,i);s.update(e.width,e.height,a)}return e.lazyLoad(),s&&e.setDisplayedSize(Math.ceil(e.width*s.initial),Math.ceil(e.height*s.initial)),e}function Nt(r,t){const i=t.getItemData(r);if(!t.dispatch("lazyLoadSlide",{index:r,itemData:i}).defaultPrevented)return W(i,t,r)}class kt{constructor(t){this.pswp=t,this.limit=Math.max(t.options.preload[0]+t.options.preload[1]+1,Bt),this._cachedItems=[]}updateLazy(t){const{pswp:i}=this;if(i.dispatch("lazyLoad").defaultPrevented)return;const{preload:e}=i.options,s=t===void 0?!0:t>=0;let n;for(n=0;n<=e[1];n++)this.loadSlideByIndex(i.currIndex+(s?n:-n));for(n=1;n<=e[0];n++)this.loadSlideByIndex(i.currIndex+(s?-n:n))}loadSlideByIndex(t){const i=this.pswp.getLoopedIndex(t);let e=this.getContentByIndex(i);e||(e=Nt(i,this.pswp),e&&this.addToCache(e))}getContentBySlide(t){let i=this.getContentByIndex(t.index);return i||(i=this.pswp.createContentFromData(t.data,t.index),this.addToCache(i)),i.setSlide(t),i}addToCache(t){if(this.removeByIndex(t.index),this._cachedItems.push(t),this._cachedItems.length>this.limit){const i=this._cachedItems.findIndex(e=>!e.isAttached&&!e.hasSlide);i!==-1&&this._cachedItems.splice(i,1)[0].destroy()}}removeByIndex(t){const i=this._cachedItems.findIndex(e=>e.index===t);i!==-1&&this._cachedItems.splice(i,1)}getContentByIndex(t){return this._cachedItems.find(i=>i.index===t)}destroy(){this._cachedItems.forEach(t=>t.destroy()),this._cachedItems=[]}}class Ht extends Mt{getNumItems(){var t;let i=0;const e=(t=this.options)===null||t===void 0?void 0:t.dataSource;e&&"length"in e?i=e.length:e&&"gallery"in e&&(e.items||(e.items=this._getGalleryDOMElements(e.gallery)),e.items&&(i=e.items.length));const s=this.dispatch("numItems",{dataSource:e,numItems:i});return this.applyFilters("numItems",s.numItems,e)}createContentFromData(t,i){return new Ft(t,this,i)}getItemData(t){var i;const e=(i=this.options)===null||i===void 0?void 0:i.dataSource;let s={};Array.isArray(e)?s=e[t]:e&&"gallery"in e&&(e.items||(e.items=this._getGalleryDOMElements(e.gallery)),s=e.items[t]);let n=s;n instanceof Element&&(n=this._domElementToItemData(n));const o=this.dispatch("itemData",{itemData:n||{},index:t});return this.applyFilters("itemData",o.itemData,t)}_getGalleryDOMElements(t){var i,e;return(i=this.options)!==null&&i!==void 0&&i.children||(e=this.options)!==null&&e!==void 0&&e.childSelector?K(this.options.children,this.options.childSelector,t)||[]:[t]}_domElementToItemData(t){const i={element:t},e=t.tagName==="A"?t:t.querySelector("a");if(e){i.src=e.dataset.pswpSrc||e.href,e.dataset.pswpSrcset&&(i.srcset=e.dataset.pswpSrcset),i.width=e.dataset.pswpWidth?parseInt(e.dataset.pswpWidth,10):0,i.height=e.dataset.pswpHeight?parseInt(e.dataset.pswpHeight,10):0,i.w=i.width,i.h=i.height,e.dataset.pswpType&&(i.type=e.dataset.pswpType);const n=t.querySelector("img");if(n){var s;i.msrc=n.currentSrc||n.src,i.alt=(s=n.getAttribute("alt"))!==null&&s!==void 0?s:""}(e.dataset.pswpCropped||e.dataset.cropped)&&(i.thumbCropped=!0)}return this.applyFilters("domItemData",i,t,e)}lazyLoadData(t,i){return W(t,this,i)}}const P=.003;class Wt{constructor(t){this.pswp=t,this.isClosed=!0,this.isOpen=!1,this.isClosing=!1,this.isOpening=!1,this._duration=void 0,this._useAnimation=!1,this._croppedZoom=!1,this._animateRootOpacity=!1,this._animateBgOpacity=!1,this._placeholder=void 0,this._opacityElement=void 0,this._cropContainer1=void 0,this._cropContainer2=void 0,this._thumbBounds=void 0,this._prepareOpen=this._prepareOpen.bind(this),t.on("firstZoomPan",this._prepareOpen)}open(){this._prepareOpen(),this._start()}close(){if(this.isClosed||this.isClosing||this.isOpening)return;const t=this.pswp.currSlide;this.isOpen=!1,this.isOpening=!1,this.isClosing=!0,this._duration=this.pswp.options.hideAnimationDuration,t&&t.currZoomLevel*t.width>=this.pswp.options.maxWidthToAnimate&&(this._duration=0),this._applyStartProps(),setTimeout(()=>{this._start()},this._croppedZoom?30:0)}_prepareOpen(){if(this.pswp.off("firstZoomPan",this._prepareOpen),!this.isOpening){const t=this.pswp.currSlide;this.isOpening=!0,this.isClosing=!1,this._duration=this.pswp.options.showAnimationDuration,t&&t.zoomLevels.initial*t.width>=this.pswp.options.maxWidthToAnimate&&(this._duration=0),this._applyStartProps()}}_applyStartProps(){const{pswp:t}=this,i=this.pswp.currSlide,{options:e}=t;if(e.showHideAnimationType==="fade"?(e.showHideOpacity=!0,this._thumbBounds=void 0):e.showHideAnimationType==="none"?(e.showHideOpacity=!1,this._duration=0,this._thumbBounds=void 0):this.isOpening&&t._initialThumbBounds?this._thumbBounds=t._initialThumbBounds:this._thumbBounds=this.pswp.getThumbBounds(),this._placeholder=i==null?void 0:i.getPlaceholderElement(),t.animations.stopAll(),this._useAnimation=!!(this._duration&&this._duration>50),this._animateZoom=!!this._thumbBounds&&(i==null?void 0:i.content.usePlaceholder())&&(!this.isClosing||!t.mainScroll.isShifted()),!this._animateZoom)this._animateRootOpacity=!0,this.isOpening&&i&&(i.zoomAndPanToInitial(),i.applyCurrentZoomPan());else{var s;this._animateRootOpacity=(s=e.showHideOpacity)!==null&&s!==void 0?s:!1}if(this._animateBgOpacity=!this._animateRootOpacity&&this.pswp.options.bgOpacity>P,this._opacityElement=this._animateRootOpacity?t.element:t.bg,!this._useAnimation){this._duration=0,this._animateZoom=!1,this._animateBgOpacity=!1,this._animateRootOpacity=!0,this.isOpening&&(t.element&&(t.element.style.opacity=String(P)),t.applyBgOpacity(1));return}if(this._animateZoom&&this._thumbBounds&&this._thumbBounds.innerRect){var n;this._croppedZoom=!0,this._cropContainer1=this.pswp.container,this._cropContainer2=(n=this.pswp.currSlide)===null||n===void 0?void 0:n.holderElement,t.container&&(t.container.style.overflow="hidden",t.container.style.width=t.viewportSize.x+"px")}else this._croppedZoom=!1;this.isOpening?(this._animateRootOpacity?(t.element&&(t.element.style.opacity=String(P)),t.applyBgOpacity(1)):(this._animateBgOpacity&&t.bg&&(t.bg.style.opacity=String(P)),t.element&&(t.element.style.opacity="1")),this._animateZoom&&(this._setClosedStateZoomPan(),this._placeholder&&(this._placeholder.style.willChange="transform",this._placeholder.style.opacity=String(P)))):this.isClosing&&(t.mainScroll.itemHolders[0]&&(t.mainScroll.itemHolders[0].el.style.display="none"),t.mainScroll.itemHolders[2]&&(t.mainScroll.itemHolders[2].el.style.display="none"),this._croppedZoom&&t.mainScroll.x!==0&&(t.mainScroll.resetPosition(),t.mainScroll.resize()))}_start(){this.isOpening&&this._useAnimation&&this._placeholder&&this._placeholder.tagName==="IMG"?new Promise(t=>{let i=!1,e=!0;q(this._placeholder).finally(()=>{i=!0,e||t(!0)}),setTimeout(()=>{e=!1,i&&t(!0)},50),setTimeout(t,250)}).finally(()=>this._initiate()):this._initiate()}_initiate(){var t,i;(t=this.pswp.element)===null||t===void 0||t.style.setProperty("--pswp-transition-duration",this._duration+"ms"),this.pswp.dispatch(this.isOpening?"openingAnimationStart":"closingAnimationStart"),this.pswp.dispatch("initialZoom"+(this.isOpening?"In":"Out")),(i=this.pswp.element)===null||i===void 0||i.classList.toggle("pswp--ui-visible",this.isOpening),this.isOpening?(this._placeholder&&(this._placeholder.style.opacity="1"),this._animateToOpenState()):this.isClosing&&this._animateToClosedState(),this._useAnimation||this._onAnimationComplete()}_onAnimationComplete(){const{pswp:t}=this;if(this.isOpen=this.isOpening,this.isClosed=this.isClosing,this.isOpening=!1,this.isClosing=!1,t.dispatch(this.isOpen?"openingAnimationEnd":"closingAnimationEnd"),t.dispatch("initialZoom"+(this.isOpen?"InEnd":"OutEnd")),this.isClosed)t.destroy();else if(this.isOpen){var i;this._animateZoom&&t.container&&(t.container.style.overflow="visible",t.container.style.width="100%"),(i=t.currSlide)===null||i===void 0||i.applyCurrentZoomPan()}}_animateToOpenState(){const{pswp:t}=this;this._animateZoom&&(this._croppedZoom&&this._cropContainer1&&this._cropContainer2&&(this._animateTo(this._cropContainer1,"transform","translate3d(0,0,0)"),this._animateTo(this._cropContainer2,"transform","none")),t.currSlide&&(t.currSlide.zoomAndPanToInitial(),this._animateTo(t.currSlide.container,"transform",t.currSlide.getCurrentTransform()))),this._animateBgOpacity&&t.bg&&this._animateTo(t.bg,"opacity",String(t.options.bgOpacity)),this._animateRootOpacity&&t.element&&this._animateTo(t.element,"opacity","1")}_animateToClosedState(){const{pswp:t}=this;this._animateZoom&&this._setClosedStateZoomPan(!0),this._animateBgOpacity&&t.bgOpacity>.01&&t.bg&&this._animateTo(t.bg,"opacity","0"),this._animateRootOpacity&&t.element&&this._animateTo(t.element,"opacity","0")}_setClosedStateZoomPan(t){if(!this._thumbBounds)return;const{pswp:i}=this,{innerRect:e}=this._thumbBounds,{currSlide:s,viewportSize:n}=i;if(this._croppedZoom&&e&&this._cropContainer1&&this._cropContainer2){const o=-n.x+(this._thumbBounds.x-e.x)+e.w,a=-n.y+(this._thumbBounds.y-e.y)+e.h,h=n.x-e.w,l=n.y-e.h;t?(this._animateTo(this._cropContainer1,"transform",b(o,a)),this._animateTo(this._cropContainer2,"transform",b(h,l))):(y(this._cropContainer1,o,a),y(this._cropContainer2,h,l))}s&&(p(s.pan,e||this._thumbBounds),s.currZoomLevel=this._thumbBounds.w/s.width,t?this._animateTo(s.container,"transform",s.getCurrentTransform()):s.applyCurrentZoomPan())}_animateTo(t,i,e){if(!this._duration){t.style[i]=e;return}const{animations:s}=this.pswp,n={duration:this._duration,easing:this.pswp.options.easing,onComplete:()=>{s.activeAnimations.length||this._onAnimationComplete()},target:t};n[i]=e,s.startTransition(n)}}const Vt={allowPanToNext:!0,spacing:.1,loop:!0,pinchToClose:!0,closeOnVerticalDrag:!0,hideAnimationDuration:333,showAnimationDuration:333,zoomAnimationDuration:333,escKey:!0,arrowKeys:!0,trapFocus:!0,returnFocus:!0,maxWidthToAnimate:4e3,clickToCloseNonZoomable:!0,imageClickAction:"zoom-or-close",bgClickAction:"close",tapAction:"toggle-controls",doubleTapAction:"zoom",indexIndicatorSep:" / ",preloaderDelay:2e3,bgOpacity:.8,index:0,errorMsg:"The image cannot be loaded",preload:[1,2],easing:"cubic-bezier(.4,0,.22,1)"};class $t extends Ht{constructor(t){super(),this.options=this._prepareOptions(t||{}),this.offset={x:0,y:0},this._prevViewportSize={x:0,y:0},this.viewportSize={x:0,y:0},this.bgOpacity=1,this.currIndex=0,this.potentialIndex=0,this.isOpen=!1,this.isDestroying=!1,this.hasMouse=!1,this._initialItemData={},this._initialThumbBounds=void 0,this.topBar=void 0,this.element=void 0,this.template=void 0,this.container=void 0,this.scrollWrap=void 0,this.currSlide=void 0,this.events=new X,this.animations=new wt,this.mainScroll=new dt(this),this.gestures=new lt(this),this.opener=new Wt(this),this.keyboard=new ut(this),this.contentLoader=new kt(this)}init(){if(this.isOpen||this.isDestroying)return!1;this.isOpen=!0,this.dispatch("init"),this.dispatch("beforeOpen"),this._createMainStructure();let t="pswp--open";return this.gestures.supportsTouch&&(t+=" pswp--touch"),this.options.mainClass&&(t+=" "+this.options.mainClass),this.element&&(this.element.className+=" "+t),this.currIndex=this.options.index||0,this.potentialIndex=this.currIndex,this.dispatch("firstUpdate"),this.scrollWheel=new Pt(this),(Number.isNaN(this.currIndex)||this.currIndex<0||this.currIndex>=this.getNumItems())&&(this.currIndex=0),this.gestures.supportsTouch||this.mouseDetected(),this.updateSize(),this.offset.y=window.pageYOffset,this._initialItemData=this.getItemData(this.currIndex),this.dispatch("gettingData",{index:this.currIndex,data:this._initialItemData,slide:void 0}),this._initialThumbBounds=this.getThumbBounds(),this.dispatch("initialLayout"),this.on("openingAnimationEnd",()=>{const{itemHolders:i}=this.mainScroll;i[0]&&(i[0].el.style.display="block",this.setContent(i[0],this.currIndex-1)),i[2]&&(i[2].el.style.display="block",this.setContent(i[2],this.currIndex+1)),this.appendHeavy(),this.contentLoader.updateLazy(),this.events.add(window,"resize",this._handlePageResize.bind(this)),this.events.add(window,"scroll",this._updatePageScrollOffset.bind(this)),this.dispatch("bindEvents")}),this.mainScroll.itemHolders[1]&&this.setContent(this.mainScroll.itemHolders[1],this.currIndex),this.dispatch("change"),this.opener.open(),this.dispatch("afterInit"),!0}getLoopedIndex(t){const i=this.getNumItems();return this.options.loop&&(t>i-1&&(t-=i),t<0&&(t+=i)),I(t,0,i-1)}appendHeavy(){this.mainScroll.itemHolders.forEach(t=>{var i;(i=t.slide)===null||i===void 0||i.appendHeavy()})}goTo(t){this.mainScroll.moveIndexBy(this.getLoopedIndex(t)-this.potentialIndex)}next(){this.goTo(this.potentialIndex+1)}prev(){this.goTo(this.potentialIndex-1)}zoomTo(...t){var i;(i=this.currSlide)===null||i===void 0||i.zoomTo(...t)}toggleZoom(){var t;(t=this.currSlide)===null||t===void 0||t.toggleZoom()}close(){!this.opener.isOpen||this.isDestroying||(this.isDestroying=!0,this.dispatch("close"),this.events.removeAll(),this.opener.close())}destroy(){var t;if(!this.isDestroying){this.options.showHideAnimationType="none",this.close();return}this.dispatch("destroy"),this._listeners={},this.scrollWrap&&(this.scrollWrap.ontouchmove=null,this.scrollWrap.ontouchend=null),(t=this.element)===null||t===void 0||t.remove(),this.mainScroll.itemHolders.forEach(i=>{var e;(e=i.slide)===null||e===void 0||e.destroy()}),this.contentLoader.destroy(),this.events.removeAll()}refreshSlideContent(t){this.contentLoader.removeByIndex(t),this.mainScroll.itemHolders.forEach((i,e)=>{var s,n;let o=((s=(n=this.currSlide)===null||n===void 0?void 0:n.index)!==null&&s!==void 0?s:0)-1+e;if(this.canLoop()&&(o=this.getLoopedIndex(o)),o===t&&(this.setContent(i,t,!0),e===1)){var a;this.currSlide=i.slide,(a=i.slide)===null||a===void 0||a.setIsActive(!0)}}),this.dispatch("change")}setContent(t,i,e){if(this.canLoop()&&(i=this.getLoopedIndex(i)),t.slide){if(t.slide.index===i&&!e)return;t.slide.destroy(),t.slide=void 0}if(!this.canLoop()&&(i<0||i>=this.getNumItems()))return;const s=this.getItemData(i);t.slide=new j(s,i,this),i===this.currIndex&&(this.currSlide=t.slide),t.slide.append(t.el)}getViewportCenterPoint(){return{x:this.viewportSize.x/2,y:this.viewportSize.y/2}}updateSize(t){if(this.isDestroying)return;const i=B(this.options,this);!t&&x(i,this._prevViewportSize)||(p(this._prevViewportSize,i),this.dispatch("beforeResize"),p(this.viewportSize,this._prevViewportSize),this._updatePageScrollOffset(),this.dispatch("viewportSize"),this.mainScroll.resize(this.opener.isOpen),!this.hasMouse&&window.matchMedia("(any-hover: hover)").matches&&this.mouseDetected(),this.dispatch("resize"))}applyBgOpacity(t){this.bgOpacity=Math.max(t,0),this.bg&&(this.bg.style.opacity=String(this.bgOpacity*this.options.bgOpacity))}mouseDetected(){if(!this.hasMouse){var t;this.hasMouse=!0,(t=this.element)===null||t===void 0||t.classList.add("pswp--has_mouse")}}_handlePageResize(){this.updateSize(),/iPhone|iPad|iPod/i.test(window.navigator.userAgent)&&setTimeout(()=>{this.updateSize()},500)}_updatePageScrollOffset(){this.setScrollOffset(0,window.pageYOffset)}setScrollOffset(t,i){this.offset.x=t,this.offset.y=i,this.dispatch("updateScrollOffset")}_createMainStructure(){this.element=f("pswp","div"),this.element.setAttribute("tabindex","-1"),this.element.setAttribute("role","dialog"),this.template=this.element,this.bg=f("pswp__bg","div",this.element),this.scrollWrap=f("pswp__scroll-wrap","section",this.element),this.container=f("pswp__container","div",this.scrollWrap),this.scrollWrap.setAttribute("aria-roledescription","carousel"),this.container.setAttribute("aria-live","off"),this.container.setAttribute("id","pswp__items"),this.mainScroll.appendHolders(),this.ui=new zt(this),this.ui.init(),(this.options.appendToEl||document.body).appendChild(this.element)}getThumbBounds(){return Zt(this.currIndex,this.currSlide?this.currSlide.data:this._initialItemData,this)}canLoop(){return this.options.loop&&this.getNumItems()>2}_prepareOptions(t){return window.matchMedia("(prefers-reduced-motion), (update: slow)").matches&&(t.showHideAnimationType="none",t.zoomAnimationDuration=0),{...Vt,...t}}}export{$t as default}; diff --git a/assets/pieDiagram-ed51bc52-94ed60f9.js b/assets/pieDiagram-ed51bc52-94ed60f9.js new file mode 100644 index 000000000..489fb93ec --- /dev/null +++ b/assets/pieDiagram-ed51bc52-94ed60f9.js @@ -0,0 +1,35 @@ +import{aL as H,aM as at,v as lt,x as ot,s as ct,g as ht,b as ut,a as yt,z as ft,d as pt,c as et,l as it,aN as gt,aK as dt,i as mt,aO as _t}from"./mermaid.core-d8bc71ff.js";import{a as tt}from"./arc-3e498105.js";import{o as vt}from"./ordinal-ba9b4969.js";import{a as xt}from"./array-9f3ba611.js";import{c as z}from"./path-53f90ab3.js";import"./app-d2f9e1e0.js";import"./init-77b53fdd.js";function kt(e,u){return ue?1:u>=e?0:NaN}function bt(e){return e}function St(){var e=bt,u=kt,$=null,f=z(0),b=z(H),w=z(0);function c(r){var l,g=(r=xt(r)).length,S,A,O=0,m=new Array(g),k=new Array(g),_=+f.apply(this,arguments),h=Math.min(H,Math.max(-H,b.apply(this,arguments)-_)),T,I=Math.min(Math.abs(h)/g,w.apply(this,arguments)),p=I*(h<0?-1:1),t;for(l=0;l0&&(O+=t);for(u!=null?m.sort(function(i,n){return u(k[i],k[n])}):$!=null&&m.sort(function(i,n){return $(r[i],r[n])}),l=0,A=O?(h-g*p)/O:0;l0?t*A:0)+p,k[S]={data:r[S],index:l,value:t,startAngle:_,endAngle:T,padAngle:I};return k}return c.value=function(r){return arguments.length?(e=typeof r=="function"?r:z(+r),c):e},c.sortValues=function(r){return arguments.length?(u=r,$=null,c):u},c.sort=function(r){return arguments.length?($=r,u=null,c):$},c.startAngle=function(r){return arguments.length?(f=typeof r=="function"?r:z(+r),c):f},c.endAngle=function(r){return arguments.length?(b=typeof r=="function"?r:z(+r),c):b},c.padAngle=function(r){return arguments.length?(w=typeof r=="function"?r:z(+r),c):w},c}var J=function(){var e=function(p,t,i,n){for(i=i||{},n=p.length;n--;i[p[n]]=t);return i},u=[1,3],$=[1,4],f=[1,5],b=[1,6],w=[1,10,12,14,16,18,19,20,21,22],c=[2,4],r=[1,5,10,12,14,16,18,19,20,21,22],l=[20,21,22],g=[2,7],S=[1,12],A=[1,13],O=[1,14],m=[1,15],k=[1,16],_=[1,17],h={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,a,o,s,P){var v=s.length-1;switch(o){case 3:a.setShowData(!0);break;case 6:this.$=s[v-1];break;case 8:a.addSection(s[v-1],a.cleanupValue(s[v]));break;case 9:this.$=s[v].trim(),a.setDiagramTitle(this.$);break;case 10:this.$=s[v].trim(),a.setAccTitle(this.$);break;case 11:case 12:this.$=s[v].trim(),a.setAccDescription(this.$);break;case 13:a.addSection(s[v].substr(8)),this.$=s[v].substr(8);break}},table:[{3:1,4:2,5:u,20:$,21:f,22:b},{1:[3]},{3:7,4:2,5:u,20:$,21:f,22:b},e(w,c,{6:8,7:[1,9]}),e(r,[2,14]),e(r,[2,15]),e(r,[2,16]),{1:[2,1]},e(l,g,{8:10,9:11,1:[2,2],10:S,12:A,14:O,16:m,18:k,19:_}),e(w,c,{6:18}),e(w,[2,5]),{4:19,20:$,21:f,22:b},{11:[1,20]},{13:[1,21]},{15:[1,22]},{17:[1,23]},e(l,[2,12]),e(l,[2,13]),e(l,g,{8:10,9:11,1:[2,3],10:S,12:A,14:O,16:m,18:k,19:_}),e(w,[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],a=[],o=[null],s=[],P=this.table,v="",d=0,V=0,F=2,M=1,B=s.slice.call(arguments,1),y=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]);y.setInput(t,N.yy),N.yy.lexer=y,N.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var K=y.yylloc;s.push(K);var st=y.options&&y.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function rt(){var C;return C=a.pop()||y.lex()||M,typeof C!="number"&&(C instanceof Array&&(a=C,C=a.pop()),C=i.symbols_[C]||C),C}for(var x,L,E,Z,R={},j,D,X,W;;){if(L=n[n.length-1],this.defaultActions[L]?E=this.defaultActions[L]:((x===null||typeof x>"u")&&(x=rt()),E=P[L]&&P[L][x]),typeof E>"u"||!E.length||!E[0]){var q="";W=[];for(j in P[L])this.terminals_[j]&&j>F&&W.push("'"+this.terminals_[j]+"'");y.showPosition?q="Parse error on line "+(d+1)+`: +`+y.showPosition()+` +Expecting `+W.join(", ")+", got '"+(this.terminals_[x]||x)+"'":q="Parse error on line "+(d+1)+": Unexpected "+(x==M?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(q,{text:y.match,token:this.terminals_[x]||x,line:y.yylineno,loc:K,expected:W})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+x);switch(E[0]){case 1:n.push(x),o.push(y.yytext),s.push(y.yylloc),n.push(E[1]),x=null,V=y.yyleng,v=y.yytext,d=y.yylineno,K=y.yylloc;break;case 2:if(D=this.productions_[E[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,[v,V,d,N.yy,E[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_[E[1]][0]),o.push(R.$),s.push(R._$),X=P[n[n.length-2]][n[n.length-1]],n.push(X);break;case 3:return!0}}return!0}},T=function(){var p={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 a=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===a.length?this.yylloc.first_column:0)+a[a.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,a,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))),a=t[0].match(/(?:\r\n?|\n).*/g),a&&(this.yylineno+=a.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:a?a[a.length-1].length-a[a.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,a;this._more||(this.yytext="",this.match="");for(var o=this._currentRules(),s=0;si[0].length)){if(i=n,a=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[a]),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,a,o){switch(a){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 p}();h.lexer=T;function I(){this.yy={}}return I.prototype=h,h.Parser=I,new I}();J.parser=J;const Et=J,nt=at.pie,G={sections:{},showData:!1,config:nt};let U=G.sections,Q=G.showData;const $t=structuredClone(nt),wt=()=>structuredClone($t),At=()=>{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,Pt={getConfig:wt,clear:At,setDiagramTitle:lt,getDiagramTitle:ot,setAccTitle:ct,getAccTitle:ht,setAccDescription:ut,getAccDescription:yt,addSection:Tt,getSections:It,cleanupValue:Dt,setShowData:Ct,getShowData:Ot},Vt=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=Vt,Lt=e=>{const u=Object.entries(e).map(f=>({label:f[0],value:f[1]})).sort((f,b)=>b.value-f.value);return St().value(f=>f.value)(u)},zt=(e,u,$,f)=>{var b,w;it.debug(`rendering pie chart +`+e);const c=f.db,r=et(),l=gt(c.getConfig(),r.pie),g=450,S=((w=(b=document.getElementById(u))==null?void 0:b.parentElement)==null?void 0:w.offsetWidth)??l.useWidth,A=dt(u);A.attr("viewBox",`0 0 ${S} ${g}`),mt(A,g,S,l.useMaxWidth);const O=40,m=18,k=4,_=A.append("g");_.attr("transform","translate("+S/2+","+g/2+")");const{themeVariables:h}=r;let[T]=_t(h.pieOuterStrokeWidth);T??(T=2);const I=l.textPosition,p=Math.min(S,g)/2-O,t=tt().innerRadius(0).outerRadius(p),i=tt().innerRadius(p*I).outerRadius(p*I);_.append("circle").attr("cx",0).attr("cy",0).attr("r",p+T/2).attr("class","pieOuterCircle");const n=c.getSections(),a=Lt(n),o=[h.pie1,h.pie2,h.pie3,h.pie4,h.pie5,h.pie6,h.pie7,h.pie8,h.pie9,h.pie10,h.pie11,h.pie12],s=vt(o);_.selectAll("mySlices").data(a).enter().append("path").attr("d",t).attr("fill",d=>s(d.data.label)).attr("class","pieCircle");let P=0;Object.keys(n).forEach(d=>{P+=n[d]}),_.selectAll("mySlices").data(a).enter().append("text").text(d=>(d.data.value/P*100).toFixed(0)+"%").attr("transform",d=>"translate("+i.centroid(d)+")").style("text-anchor","middle").attr("class","slice"),_.append("text").text(c.getDiagramTitle()).attr("x",0).attr("y",-(g-50)/2).attr("class","pieTitleText");const v=_.selectAll(".legend").data(s.domain()).enter().append("g").attr("class","legend").attr("transform",(d,V)=>{const F=m+k,M=F*s.domain().length/2,B=12*m,y=V*F-M;return"translate("+B+","+y+")"});v.append("rect").attr("width",m).attr("height",m).style("fill",s).style("stroke",s),v.data(a).append("text").attr("x",m+k).attr("y",m-k).text(d=>{const{label:V,value:F}=d.data;return c.getShowData()?`${V} [${F}]`:V})},Ft={draw:zt},Yt={parser:Et,db:Pt,renderer:Ft,styles:Nt};export{Yt as diagram}; diff --git a/assets/platform-dodo.html-3dbd51fb.js b/assets/platform-dodo.html-3dbd51fb.js new file mode 100644 index 000000000..0915339dc --- /dev/null +++ b/assets/platform-dodo.html-3dbd51fb.js @@ -0,0 +1 @@ +import{_ as t}from"./plugin-vue_export-helper-c27b6911.js";import{o as e,c as o,e as n}from"./app-d2f9e1e0.js";const a={},i=n('

    DODO

    本节内容

    本节将包含你在 DODO 平台搭建海豹核心需要了解的特定内容。

    施工中……

    ',3),c=[i];function r(s,d){return e(),o("div",null,c)}const h=t(a,[["render",r],["__file","platform-dodo.html.vue"]]);export{h as default}; diff --git a/assets/platform-dodo.html-5f8e76f0.js b/assets/platform-dodo.html-5f8e76f0.js new file mode 100644 index 000000000..2739744c7 --- /dev/null +++ b/assets/platform-dodo.html-5f8e76f0.js @@ -0,0 +1 @@ +const t=JSON.parse('{"key":"v-03edd4b8","path":"/deploy/platform-dodo.html","title":"DODO","lang":"zh-cn","frontmatter":{"lang":"zh-cn","title":"DODO","description":"本节内容 本节将包含你在 DODO 平台搭建海豹核心需要了解的特定内容。 ::: note 施工中…… :::","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/deploy/platform-dodo.html"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"DODO"}],["meta",{"property":"og:description","content":"本节内容 本节将包含你在 DODO 平台搭建海豹核心需要了解的特定内容。 ::: note 施工中…… :::"}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-cn"}],["meta",{"property":"og:updated_time","content":"2023-11-02T19:07:23.000Z"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-11-02T19:07:23.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"DODO\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2023-11-02T19:07:23.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[],"git":{"createdTime":1698952043000,"updatedTime":1698952043000,"contributors":[{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":1}]},"readingTime":{"minutes":0.13,"words":40},"filePathRelative":"deploy/platform-dodo.md","localizedDate":"2023年11月2日","autoDesc":true,"excerpt":""}');export{t as data}; diff --git a/assets/platform-kook.html-7b805e18.js b/assets/platform-kook.html-7b805e18.js new file mode 100644 index 000000000..c9cb42c2a --- /dev/null +++ b/assets/platform-kook.html-7b805e18.js @@ -0,0 +1 @@ +const t=JSON.parse('{"key":"v-50de070e","path":"/deploy/platform-kook.html","title":"KOOK","lang":"zh-cn","frontmatter":{"lang":"zh-cn","title":"KOOK","description":"本节内容 本节将包含你在 KOOK 平台搭建海豹核心需要了解的特定内容。 ::: note 施工中…… :::","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/deploy/platform-kook.html"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"KOOK"}],["meta",{"property":"og:description","content":"本节内容 本节将包含你在 KOOK 平台搭建海豹核心需要了解的特定内容。 ::: note 施工中…… :::"}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-cn"}],["meta",{"property":"og:updated_time","content":"2023-11-02T19:07:23.000Z"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-11-02T19:07:23.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"KOOK\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2023-11-02T19:07:23.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[],"git":{"createdTime":1698952043000,"updatedTime":1698952043000,"contributors":[{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":1}]},"readingTime":{"minutes":0.13,"words":40},"filePathRelative":"deploy/platform-kook.md","localizedDate":"2023年11月2日","autoDesc":true,"excerpt":""}');export{t as data}; diff --git a/assets/platform-kook.html-a67ab83c.js b/assets/platform-kook.html-a67ab83c.js new file mode 100644 index 000000000..bbb39543a --- /dev/null +++ b/assets/platform-kook.html-a67ab83c.js @@ -0,0 +1 @@ +import{_ as t}from"./plugin-vue_export-helper-c27b6911.js";import{o as e,c as o,e as n}from"./app-d2f9e1e0.js";const a={},i=n('

    KOOK

    本节内容

    本节将包含你在 KOOK 平台搭建海豹核心需要了解的特定内容。

    施工中……

    ',3),c=[i];function r(s,l){return e(),o("div",null,c)}const h=t(a,[["render",r],["__file","platform-kook.html.vue"]]);export{h as default}; diff --git a/assets/platform-qq-qsign-1-8fdb8511.png b/assets/platform-qq-qsign-1-8fdb8511.png new file mode 100644 index 000000000..5c68b4782 Binary files /dev/null and b/assets/platform-qq-qsign-1-8fdb8511.png differ diff --git a/assets/platform-qq-qsign-2-0a88dca7.png b/assets/platform-qq-qsign-2-0a88dca7.png new file mode 100644 index 000000000..53ae88b54 Binary files /dev/null and b/assets/platform-qq-qsign-2-0a88dca7.png differ diff --git a/assets/platform-qq.html-978af876.js b/assets/platform-qq.html-978af876.js new file mode 100644 index 000000000..b4aa94eda --- /dev/null +++ b/assets/platform-qq.html-978af876.js @@ -0,0 +1 @@ +const t=JSON.parse('{"key":"v-f2535f24","path":"/deploy/platform-qq.html","title":"QQ","lang":"zh-cn","frontmatter":{"lang":"zh-cn","title":"QQ","description":"本节内容 本节将包含你在 QQ 平台搭建海豹核心需要了解的特定内容。 不被 QQ 官方欢迎的机器人功能 直至目前,群聊中的 QQ 机器人普遍采用「假用户」方式,即通过第三方软件接入注册的另一个 QQ 。QQ 官方并未提供正规的群聊机器人支持,并且一直在对第三方实现进行技术与非技术层面的多重打击。 从目前的表现看来,QQ 官方会对账号行为进行检测,来区分...","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/deploy/platform-qq.html"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"QQ"}],["meta",{"property":"og:description","content":"本节内容 本节将包含你在 QQ 平台搭建海豹核心需要了解的特定内容。 不被 QQ 官方欢迎的机器人功能 直至目前,群聊中的 QQ 机器人普遍采用「假用户」方式,即通过第三方软件接入注册的另一个 QQ 。QQ 官方并未提供正规的群聊机器人支持,并且一直在对第三方实现进行技术与非技术层面的多重打击。 从目前的表现看来,QQ 官方会对账号行为进行检测,来区分..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:image","content":"http://localhost:8080/sealdice-manual-next/"}],["meta",{"property":"og:locale","content":"zh-cn"}],["meta",{"property":"og:updated_time","content":"2023-11-02T19:07:23.000Z"}],["meta",{"name":"twitter:card","content":"summary_large_image"}],["meta",{"name":"twitter:image:alt","content":"QQ"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-11-02T19:07:23.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"QQ\\",\\"image\\":[\\"http://localhost:8080/sealdice-manual-next/\\"],\\"dateModified\\":\\"2023-11-02T19:07:23.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[{"level":2,"title":"使用签名服务","slug":"使用签名服务","link":"#使用签名服务","children":[{"level":3,"title":"怎么使用签名服务?","slug":"怎么使用签名服务","link":"#怎么使用签名服务","children":[]},{"level":3,"title":"如何搭建签名服务","slug":"如何搭建签名服务","link":"#如何搭建签名服务","children":[]}]}],"git":{"createdTime":1698952043000,"updatedTime":1698952043000,"contributors":[{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":1}]},"readingTime":{"minutes":3.57,"words":1072},"filePathRelative":"deploy/platform-qq.md","localizedDate":"2023年11月2日","autoDesc":true,"excerpt":""}');export{t as data}; diff --git a/assets/platform-qq.html-f4629c30.js b/assets/platform-qq.html-f4629c30.js new file mode 100644 index 000000000..0c34c9518 --- /dev/null +++ b/assets/platform-qq.html-f4629c30.js @@ -0,0 +1 @@ +import{_ as d}from"./plugin-vue_export-helper-c27b6911.js";import{r as s,o as p,c as h,a as t,d as e,b as l,w as i,e as r}from"./app-d2f9e1e0.js";const u="/sealdice-manual-next/assets/platform-qq-qsign-1-8fdb8511.png",g="/sealdice-manual-next/assets/platform-qq-qsign-2-0a88dca7.png",_={},q=r('

    QQ

    本节内容

    本节将包含你在 QQ 平台搭建海豹核心需要了解的特定内容。

    不被 QQ 官方欢迎的机器人功能

    直至目前,群聊中的 QQ 机器人普遍采用「假用户」方式,即通过第三方软件接入注册的另一个 QQ 。QQ 官方并未提供正规的群聊机器人支持,并且一直在对第三方实现进行技术与非技术层面的多重打击。

    从目前的表现看来,QQ 官方会对账号行为进行检测,来区分出账号是否是正常用户(如不正常的登录方式,以不合理的速度在多地区登录等等)。我们无法得知具体的检测细节,但已证实的是,当 QQ 账号用作机器人并被检测到时,该 QQ 会视为风险账号,被官方予以警告,封禁,甚至 永久冻结 的惩罚。

    因此,是否在 QQ 平台搭建骰子取决于你的慎重考虑,海豹官方无法做出任何保证。倘若出现账号被封禁等情况时,海豹官方无力解决此类问题,也不对相应后果负责。

    来自官方的围追堵截让 QQ 平台的部署门槛不断拉高。目前的军备竞赛下,如此复杂的部署方式是现状下几乎唯一的选择。对此我们也十分无奈,只能希望并期待 QQ 官方提供正式的群聊机器人支持,让合理的需求得到合法的解。

    使用签名服务

    qsing 已停止维护

    原 qsign 作者已因「不可抗力」无法再维护此项目,对应原代码仓库也已删除,该方法会在未来逐渐失效,请做好预期准备。

    ',5),f={href:"https://github.com/fuqiuluo/unidbg-fetch-qsign",target:"_blank",rel:"noopener noreferrer"},b=r('

    怎么使用签名服务?

    你可以自己在本地搭一个 qsign 服务,也可以使用别人搭好的。

    自行搭建签名服务

    如果你的动手能力足够强或者有足够的电脑知识,强烈推荐 自己搭建本地签名服务器。

    使用他人的签名服务可能会泄漏以下信息 (截取自 qsign 的说明)

    • 登录账号
    • 登录时间
    • 登录后发送的消息内容
    • 登录后发送消息的群号/好友 ID

    不会泄露的信息:

    • 账号密码
    • 账号 session
    • 群列表/好友列表
    • 接收的消息
    • 除发送消息外的任何历史记录

    使用共享签名服务可能会提高账号被封禁的概率。

    在登录账号的时候会看到这样一个界面:

    海豹的qq登录页
    海豹的qq登录页

    点击下面的「签名服务」一栏的「简易配置」,可以看到如下配置项:

    配置签名服务
    配置签名服务
    • 服务 url:你要链接的 qsign url
    • 服务 key:密码
    • 服务鉴权:默认为空,如果有的服务器要求特定的鉴权,就填上吧

    默认的 qsign 配置

    没有特殊设置的话,qsign 的 url 通常默认为 http://localhost:13579,key 通常默认为 114514

    如何搭建签名服务

    有能力的用户可以自行搭建服务。

    ',11),m={href:"https://github.com/rhwong/unidbg-fetch-qsign-onekey",target:"_blank",rel:"noopener noreferrer"},Q=t("p",null,"引用自说明:",-1),v=t("blockquote",null,[t("p",null,[e("点开以后删掉文件夹里的 "),t("code",null,"go-cqhttp.bat"),e(" 及 "),t("code",null,"go-cqhttp_windows_386.exe"),e(",然后运行里面的 "),t("code",null,"Start_Qsign.bat"),e(" 启动qsign,按照提示依次键入 "),t("code",null,"txlib_version"),e(" 参数、设定 "),t("code",null,"host"),e("、"),t("code",null,"port"),e("、"),t("code",null,"key"),e("的值。(如果不知道这些是干什么的,请直接依次按下 Enter)")])],-1),x={href:"https://github.com/fuqiuluo/unidbg-fetch-qsign/wiki/%E9%83%A8%E7%BD%B2%E5%9C%A8Linux",target:"_blank",rel:"noopener noreferrer"},k={href:"https://github.com/Verplitic/AutoQSignForMac",target:"_blank",rel:"noopener noreferrer"},w=t("p",null,[e("在终端运行 "),t("code",null,"start.sh"),e(" 即可配置和启动签名服务器。如果提示 "),t("code",null,"zsh: access denied"),e(",需要先运行 "),t("code",null,"chmod -x start.sh"),e(" 来给予权限。")],-1),A=t("p",null,"初次启动会选择 txlib 版本,及运行 QSign 的主机、端口和 API Key。通常情况下,可以回车跳过而使用默认配置。",-1);function y(E,S){const a=s("ExternalLinkIcon"),c=s("Tabs");return p(),h("div",null,[q,t("p",null,[e("部署签名服务,即使用开源签名服务 "),t("a",f,[e("qsign"),l(a)]),e(",是目前用来绕过检测的最有效手段。")]),b,l(c,{id:"145",data:[{id:"windows"},{id:"linux"},{id:"macos"}],"tab-id":"os"},{title0:i(({value:n,isActive:o})=>[e("Windows")]),title1:i(({value:n,isActive:o})=>[e("Linux")]),title2:i(({value:n,isActive:o})=>[e("MacOS")]),tab0:i(({value:n,isActive:o})=>[t("p",null,[e("可以尝试使用 "),t("a",m,[e("一键qsign"),l(a)]),e("。")]),Q,v]),tab1:i(({value:n,isActive:o})=>[t("p",null,[e("参阅 qsign 提供的完整教程,看 "),t("a",x,[e("这里"),l(a)]),e("。")])]),tab2:i(({value:n,isActive:o})=>[t("p",null,[e("可以尝试使用 "),t("a",k,[e("AutoQSignForMac"),l(a)]),e("。")]),w,A]),_:1})])}const I=d(_,[["render",y],["__file","platform-qq.html.vue"]]);export{I as default}; diff --git a/assets/plugin-vue_export-helper-c27b6911.js b/assets/plugin-vue_export-helper-c27b6911.js new file mode 100644 index 000000000..718edd339 --- /dev/null +++ b/assets/plugin-vue_export-helper-c27b6911.js @@ -0,0 +1 @@ +const s=(t,r)=>{const o=t.__vccOpts||t;for(const[c,e]of r)o[c]=e;return o};export{s as _}; diff --git a/assets/quadrantDiagram-3a393d1c-57ae2fb5.js b/assets/quadrantDiagram-3a393d1c-57ae2fb5.js new file mode 100644 index 000000000..0fbfae049 --- /dev/null +++ b/assets/quadrantDiagram-3a393d1c-57ae2fb5.js @@ -0,0 +1,7 @@ +import{a$ as vt,c as yt,aM as I,l as ot,s as Lt,g as Ct,v as zt,x as bt,a as Et,b as Dt,z as It,h as gt,i as Bt,d as wt}from"./mermaid.core-d8bc71ff.js";import{l as mt}from"./linear-0a2d62a3.js";import"./app-d2f9e1e0.js";import"./init-77b53fdd.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],W=[1,18],L=[1,19],C=[1,20],N=[1,21],M=[1,22],X=[1,23],z=[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],b=[1,36],A=[1,37],S=[1,38],k=[1,39],F=[1,40],P=[1,41],v=[1,42],O=[1,57],Y=[1,58],E=[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:W,17:L,19:C,20:N,25:M,27:X,28:z,29:it,30:at,31:nt,37:U,38:Q,40:T,41:m,42:_,43:t,44:b,45:A,46:S,47:k,48:F,49:P,50:v}),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:W,17:L,19:C,20:N,25:M,27:X,28:z,29:it,30:at,31:nt,37:U,38:Q,40:T,41:m,42:_,43:t,44:b,45:A,46:S,47:k,48:F,49:P,50:v}),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:b,45:A,46:S,47:k,48:F,49:P,50:v},{21:49,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:b,45:A,46:S,47:k,48:F,49:P,50:v},{21:50,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:b,45:A,46:S,47:k,48:F,49:P,50:v},{21:51,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:b,45:A,46:S,47:k,48:F,49:P,50:v},{21:52,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:b,45:A,46:S,47:k,48:F,49:P,50:v},{21:53,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:b,45:A,46:S,47:k,48:F,49:P,50:v},{5:O,22:[1,54],35:56,36:55,40:T,41:m,42:_,43:t,44:b,45:A,46:S,47:k,48:F,49:P,50:v,51:Y},e(E,[2,31]),e(E,[2,33]),e(E,[2,34]),e(E,[2,37]),e(E,[2,38]),e(E,[2,39]),e(E,[2,40]),e(E,[2,41]),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(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:b,45:A,46:S,47:k,48:F,49:P,50:v,51:Y}),e(i,[2,23],{36:55,35:56,5:O,26:[1,60],40:T,41:m,42:_,43:t,44:b,45:A,46:S,47:k,48:F,49:P,50:v,51:Y}),e(i,[2,24],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:b,45:A,46:S,47:k,48:F,49:P,50:v,51:Y}),e(i,[2,25],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:b,45:A,46:S,47:k,48:F,49:P,50:v,51:Y}),e(i,[2,26],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:b,45:A,46:S,47:k,48:F,49:P,50:v,51:Y}),e(i,[2,27],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:b,45:A,46:S,47:k,48:F,49:P,50:v,51:Y}),{23:[1,61]},e(E,[2,32]),e(E,[2,48]),e(E,[2,49]),e(E,[2,50]),e(i,[2,19],{35:29,21:62,37:U,38:Q,40:T,41:m,42:_,43:t,44:b,45:A,46:S,47:k,48:F,49:P,50:v}),e(i,[2,22],{35:29,21:63,37:U,38:Q,40:T,41:m,42:_,43:t,44:b,45:A,46:S,47:k,48:F,49:P,50:v}),{24:[1,64]},e(i,[2,18],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:b,45:A,46:S,47:k,48:F,49:P,50:v,51:Y}),e(i,[2,21],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:b,45:A,46:S,47:k,48:F,49:P,50:v,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),D=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]);D.setInput(n,Z.yy),Z.yy.lexer=D,Z.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var ut=D.yylloc;a.push(ut);var Ft=D.options&&D.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()||D.lex()||Tt,typeof j!="number"&&(j instanceof Array&&(o=j,j=o.pop()),j=r.symbols_[j]||j),j}for(var V,J,H,xt,tt={},rt,$,_t,lt;;){if(J=l[l.length-1],this.defaultActions[J]?H=this.defaultActions[J]:((V===null||typeof V>"u")&&(V=Pt()),H=et[J]&&et[J][V]),typeof H>"u"||!H.length||!H[0]){var ft="";lt=[];for(rt in et[J])this.terminals_[rt]&&rt>St&<.push("'"+this.terminals_[rt]+"'");D.showPosition?ft="Parse error on line "+(st+1)+`: +`+D.showPosition()+` +Expecting `+lt.join(", ")+", got '"+(this.terminals_[V]||V)+"'":ft="Parse error on line "+(st+1)+": Unexpected "+(V==Tt?"end of input":"'"+(this.terminals_[V]||V)+"'"),this.parseError(ft,{text:D.match,token:this.terminals_[V]||V,line:D.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: "+V);switch(H[0]){case 1:l.push(V),q.push(D.yytext),a.push(D.yylloc),l.push(H[1]),V=null,qt=D.yyleng,u=D.yytext,st=D.yylineno,ut=D.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;ar[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,W,L,C,N,M,X,z;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:((s=I.quadrantChart)==null?void 0:s.chartWidth)||500,chartWidth:((h=I.quadrantChart)==null?void 0:h.chartHeight)||500,titlePadding:((x=I.quadrantChart)==null?void 0:x.titlePadding)||10,titleFontSize:((f=I.quadrantChart)==null?void 0:f.titleFontSize)||20,quadrantPadding:((d=I.quadrantChart)==null?void 0:d.quadrantPadding)||5,xAxisLabelPadding:((c=I.quadrantChart)==null?void 0:c.xAxisLabelPadding)||5,yAxisLabelPadding:((g=I.quadrantChart)==null?void 0:g.yAxisLabelPadding)||5,xAxisLabelFontSize:((i=I.quadrantChart)==null?void 0:i.xAxisLabelFontSize)||16,yAxisLabelFontSize:((y=I.quadrantChart)==null?void 0:y.yAxisLabelFontSize)||16,quadrantLabelFontSize:((p=I.quadrantChart)==null?void 0:p.quadrantLabelFontSize)||16,quadrantTextTopPadding:((B=I.quadrantChart)==null?void 0:B.quadrantTextTopPadding)||5,pointTextPadding:((W=I.quadrantChart)==null?void 0:W.pointTextPadding)||5,pointLabelFontSize:((L=I.quadrantChart)==null?void 0:L.pointLabelFontSize)||12,pointRadius:((C=I.quadrantChart)==null?void 0:C.pointRadius)||5,xAxisPosition:((N=I.quadrantChart)==null?void 0:N.xAxisPosition)||"top",yAxisPosition:((M=I.quadrantChart)==null?void 0:M.yAxisPosition)||"left",quadrantInternalBorderStrokeWidth:((X=I.quadrantChart)==null?void 0:X.quadrantInternalBorderStrokeWidth)||1,quadrantExternalBorderStrokeWidth:((z=I.quadrantChart)==null?void 0:z.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,W=this.config.quadrantPadding+c.top+p.top,L=this.config.chartWidth-this.config.quadrantPadding*2-i.left-i.right,C=this.config.chartHeight-this.config.quadrantPadding*2-c.top-c.bottom-p.top,N=L/2,M=C/2;return{xAxisSpace:c,yAxisSpace:i,titleSpace:p,quadrantSpace:{quadrantLeft:B,quadrantTop:W,quadrantWidth:L,quadrantHalfWidth:N,quadrantHeight:C,quadrantHalfHeight:M}}}getAxisLabels(s,h,x,f){const{quadrantSpace:d,titleSpace:c}=f,{quadrantHalfHeight:g,quadrantHeight:i,quadrantLeft:y,quadrantHalfWidth:p,quadrantTop:B,quadrantWidth:W}=d,L=this.data.points.length===0,C=[];return this.data.xAxisLeftText&&h&&C.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:y+(L?p/2:0),y:s==="top"?this.config.xAxisLabelPadding+c.top:this.config.xAxisLabelPadding+B+i+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:L?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&h&&C.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:y+p+(L?p/2:0),y:s==="top"?this.config.xAxisLabelPadding+c.top:this.config.xAxisLabelPadding+B+i+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:L?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&x&&C.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+y+W+this.config.quadrantPadding,y:B+i-(L?g/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:L?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&x&&C.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+y+W+this.config.quadrantPadding,y:B+g-(L?g/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:L?"center":"left",horizontalPos:"top",rotation:-90}),C}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 W;B==="sandbox"&&(W=gt("#i"+s));const C=(B==="sandbox"?gt(W.nodes()[0].contentDocument.body):gt("body")).select(`[id="${s}"]`),N=C.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(C,X,M,((c=p.quadrantChart)==null?void 0:c.useMaxWidth)||!0),C.attr("viewBox","0 0 "+M+" "+X),x.db.setHeight(X),x.db.setWidth(M);const z=x.db.getQuadrantData(),it=N.append("g").attr("class","quadrants"),at=N.append("g").attr("class","border"),nt=N.append("g").attr("class","data-points"),U=N.append("g").attr("class","labels"),Q=N.append("g").attr("class","title");z.title&&Q.append("text").attr("x",0).attr("y",0).attr("fill",z.title.fill).attr("font-size",z.title.fontSize).attr("dominant-baseline",g(z.title.horizontalPos)).attr("text-anchor",i(z.title.verticalPos)).attr("transform",y(z.title)).text(z.title.text),z.borderLines&&at.selectAll("line").data(z.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(z.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(z.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(z.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},re={parser:Rt,db:Jt,renderer:ee,styles:()=>""};export{re as diagram}; diff --git a/assets/quick-start.html-073006aa.js b/assets/quick-start.html-073006aa.js new file mode 100644 index 000000000..d872ef0ee --- /dev/null +++ b/assets/quick-start.html-073006aa.js @@ -0,0 +1 @@ +const e=JSON.parse('{"key":"v-7c88c198","path":"/use/quick-start.html","title":"快速上手","lang":"zh-cn","frontmatter":{"lang":"zh-cn","title":"快速上手","description":"本节内容 本节将展示 TRPG 跑团过程玩家使用海豹骰的常用指令和一般流程,请善用搜索,按需阅读文档。 常用指令速查 核心指令 动作 指令 ---------------------------------- 移出骰子 .bot bye / .dismiss 开关骰子 .bot on/off 开关自定义回复 .reply on/off 新建日志 .lo...","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/use/quick-start.html"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"快速上手"}],["meta",{"property":"og:description","content":"本节内容 本节将展示 TRPG 跑团过程玩家使用海豹骰的常用指令和一般流程,请善用搜索,按需阅读文档。 常用指令速查 核心指令 动作 指令 ---------------------------------- 移出骰子 .bot bye / .dismiss 开关骰子 .bot on/off 开关自定义回复 .reply on/off 新建日志 .lo..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-cn"}],["meta",{"property":"og:updated_time","content":"2023-10-29T17:01:34.000Z"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-10-29T17:01:34.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"快速上手\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2023-10-29T17:01:34.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[{"level":2,"title":"常用指令速查","slug":"常用指令速查","link":"#常用指令速查","children":[]},{"level":2,"title":"通常流程","slug":"通常流程","link":"#通常流程","children":[{"level":3,"title":"秘密团","slug":"秘密团","link":"#秘密团","children":[]},{"level":3,"title":"进行 CoC 游戏","slug":"进行-coc-游戏","link":"#进行-coc-游戏","children":[]},{"level":3,"title":"进行 D&D 游戏","slug":"进行-d-d-游戏","link":"#进行-d-d-游戏","children":[]}]}],"git":{"createdTime":1698059111000,"updatedTime":1698598894000,"contributors":[{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":3},{"name":"Xiangze Li","email":"lee_johnson@qq.com","commits":1}]},"readingTime":{"minutes":4.24,"words":1272},"filePathRelative":"use/quick-start.md","localizedDate":"2023年10月23日","autoDesc":true,"excerpt":""}');export{e as data}; diff --git a/assets/quick-start.html-3e85c69a.js b/assets/quick-start.html-3e85c69a.js new file mode 100644 index 000000000..46c90d8df --- /dev/null +++ b/assets/quick-start.html-3e85c69a.js @@ -0,0 +1,15 @@ +import{_ as r}from"./plugin-vue_export-helper-c27b6911.js";import{r as d,o as u,c as h,a as e,d as s,b as i,w as a,e as o}from"./app-d2f9e1e0.js";const p={},m=o('

    快速开始

    本节内容

    本节将会指导你如何在你的 PC、服务器、甚至安卓手机上搭建和部署海豹核心。

    获取海豹

    可以从以下两个渠道获取海豹核心安装包:

    ',4),v={href:"https://dice.weizaima.com/download",target:"_blank",rel:"noopener noreferrer"},_={href:"https://github.com/sealdice/sealdice-build/releases",target:"_blank",rel:"noopener noreferrer"},b=e("p",null,[s("这一渠道提供两个版本:以 "),e("code",null,"版本号+发布日期"),s(" 命名的正式版,与官网一致;以 "),e("code",null,"Latest Dev Build+日期"),s(" 命名的最新构建,可能有各种 Bug,不推荐一般用户使用。")],-1),g=o('

    我该选择从哪里获取?

    我们非常建议你使用从官网获取的正式版海豹。对于绝大多数用户来说,官网的下载最顺畅和便捷,所提供的正式版也适合绝大多数用户使用。

    但是,如果你使用的是中国移动运营的网络,由于运营商的限制政策,你可能无法从官网下载。可以尝试使用其他运营商的网络。

    海豹提供了多个平台的安装包,请确认你的操作系统并选择对应版本的安装包。提供的平台如下:

    • Windows:普通用户首选,适用于 Windows 7 或者更高,同样可以部署在 Windows 云服务器。
      • 64 位:适合绝大多数用户使用。
      • 32 位:只在你明确知道为何要使用 32 位版本的情况下使用 32 位版本。
    • Linux: 提供给更专业的用户使用,需要使用终端启动。适用于服务器、树莓派等设备。
      • x64:绝大多数使用 Intel 或 AMD CPU 的服务器都应使用此版本。
      • arm64:树莓派等 arm 设备请使用 arm64 版。
    • MacOS:提供给 Mac 用户使用,需要使用终端启动。
      • arm64:Apple Silicon 芯片(M1、M2 等)请使用 arm64 版。
      • x64:Intel 芯片请使用 x64 版。
    • Android:提供 Android 的 apk 安装包。

    启动

    注意

    永远不要直接运行压缩包中的海豹核心,也不要在临时目录中运行海豹核心。

    将安装包解压到合适的目录。考虑到后续升级,将目录名中的版本号删去或许是更好的做法。

    根据系统不同,用以下方法即可启动海豹:

    ',7),x=e("p",null,[s("双击运行 "),e("code",null,"sealdice-core.exe"),s("。数秒钟后,海豹核心将会在后台运行并弹出提示。")],-1),k=e("p",null,"在任务栏中找到海豹图标,点击即可打开后台(WebUI)。",-1),f=e("p",null,[s("在 "),e("code",null,"sealdice-core"),s(" 所在的目录启动终端,输入以下命令:")],-1),A=e("div",{class:"language-bash line-numbers-mode","data-ext":"sh"},[e("pre",{class:"language-bash"},[e("code",null,[e("span",{class:"token function"},"chmod"),s(` +x ./sealdice-core +`)])]),e("div",{class:"line-numbers","aria-hidden":"true"},[e("div",{class:"line-number"})])],-1),w=e("p",null,[s("给予其足够的运行权限。随后,运行 "),e("code",null,"./sealdice-core"),s(" 来启动海豹。在浏览器中输入 "),e("code",null,"localhost:3211"),s(" 来访问后台(WebUI)。")],-1),L=e("p",null,[s("在 "),e("code",null,"sealdice-core"),s(" 所在的目录启动终端,输入以下命令:")],-1),y=e("div",{class:"language-bash line-numbers-mode","data-ext":"sh"},[e("pre",{class:"language-bash"},[e("code",null,[s("xattr "),e("span",{class:"token parameter variable"},"-rd"),s(` com.apple.quarantine ./sealdice-core +`),e("span",{class:"token function"},"chmod"),s(` +x ./sealdice-core +`)])]),e("div",{class:"line-numbers","aria-hidden":"true"},[e("div",{class:"line-number"}),e("div",{class:"line-number"})])],-1),I={href:"https://zhuanlan.zhihu.com/p/611471192",target:"_blank",rel:"noopener noreferrer"},W=e("p",null,[s("随后,运行 "),e("code",null,"./sealdice-core"),s(" 来启动海豹。在浏览器中输入 "),e("code",null,"localhost:3211"),s(" 来访问后台(WebUI)。")],-1),M=e("p",null,"安装下载的 APK 包,给予适当的权限。为了保证海豹核心在手机上稳定运行,可以采取以下措施:",-1),S=e("ol",null,[e("li",null,"允许海豹核心自启动;"),e("li",null,"关闭海豹核心的省电模式、自动清理、后台禁止联网等;"),e("li",null,"确保手机的省电模式保持关闭。")],-1),B=o('

    安装为系统服务(可选)

    如果你使用远程 Linux 服务器部署,或者使用终端启动海豹核心,那么,随着终端关闭,通常海豹核心也会一同关闭。

    海豹核心提供了一种自动安装为系统服务(systemd 服务项)的功能,可以免去手动配置。

    服务名称和服务的启动用户均可以通过提供命令行参数自定义,请运行 ./sealdice-core -h 查阅详细说明。

    默认情况下,海豹核心将尝试安装一个由 root 用户运行的,名为 sealdice.service 的服务。这要求海豹核心拥有 root 权限(通常由 sudo 运行得到)。

    ',5),C=e("div",{class:"language-bash line-numbers-mode","data-ext":"sh"},[e("pre",{class:"language-bash"},[e("code",null,[s("$ ./sealdice-core "),e("span",{class:"token parameter variable"},"-i"),s(` +正在安装系统服务,安装完成后,SealDice将自动随系统启动 +安装完成,正在启动…… +`)])]),e("div",{class:"line-numbers","aria-hidden":"true"},[e("div",{class:"line-number"}),e("div",{class:"line-number"}),e("div",{class:"line-number"})])],-1),N=e("p",null,"也提供自动卸载:",-1),U=e("div",{class:"language-bash line-numbers-mode","data-ext":"sh"},[e("pre",{class:"language-bash"},[e("code",null,[s("$ ./sealdice-core "),e("span",{class:"token parameter variable"},"--uninstall"),s(` +正在卸载系统服务…… +系统服务已删除 +`)])]),e("div",{class:"line-numbers","aria-hidden":"true"},[e("div",{class:"line-number"}),e("div",{class:"line-number"}),e("div",{class:"line-number"})])],-1),V=e("p",null,"安装完成后,可以使用 systemctl 来管理服务:",-1),q=e("div",{class:"language-bash line-numbers-mode","data-ext":"sh"},[e("pre",{class:"language-bash"},[e("code",null,[s("systemctl status sealdice "),e("span",{class:"token comment"},"# 查看运行状态"),s(` +systemctl start sealdice `),e("span",{class:"token comment"},"# 启动海豹核心"),s(` +systemctl start sealdice `),e("span",{class:"token comment"},"# 启动或重启海豹核心"),s(` +systemctl stop sealdice `),e("span",{class:"token comment"},"# 停止海豹核心"),s(` +journalctl `),e("span",{class:"token parameter variable"},"-xe"),s(),e("span",{class:"token parameter variable"},"-u"),s(" sealdice.service "),e("span",{class:"token comment"},"# 查看日志"),s(` +`)])]),e("div",{class:"line-numbers","aria-hidden":"true"},[e("div",{class:"line-number"}),e("div",{class:"line-number"}),e("div",{class:"line-number"}),e("div",{class:"line-number"}),e("div",{class:"line-number"})])],-1),z=e("p",null,[s("以上命令的详细用法,请查阅你系统的 "),e("code",null,"systemd"),s(" 文档。")],-1);function D(E,P){const c=d("ExternalLinkIcon"),t=d("Tabs");return u(),h("div",null,[m,e("ul",null,[e("li",null,[e("p",null,[s("官网:从 "),e("a",v,[s("官网下载页"),i(c)]),s(" 获取最新的正式版海豹核心安装包。")])]),e("li",null,[e("p",null,[s("GitHub:从 "),e("a",_,[s("GitHub Release"),i(c)]),s(" 获取海豹核心安装包。")]),b])]),g,i(t,{id:"112",data:[{id:"windows"},{id:"linux"},{id:"macos"},{id:"android"}],"tab-id":"os"},{title0:a(({value:l,isActive:n})=>[s("Windows")]),title1:a(({value:l,isActive:n})=>[s("Linux")]),title2:a(({value:l,isActive:n})=>[s("MacOS")]),title3:a(({value:l,isActive:n})=>[s("Android")]),tab0:a(({value:l,isActive:n})=>[x,k]),tab1:a(({value:l,isActive:n})=>[f,A,w]),tab2:a(({value:l,isActive:n})=>[L,y,e("p",null,[s("这两条命令移除海豹核心程序的 "),e("a",I,[s("隔离属性"),i(c)]),s(",并给予其足够的运行权限。")]),W]),tab3:a(({value:l,isActive:n})=>[M,S]),_:1}),B,i(t,{id:"180",data:[{id:"linux"}],"tab-id":"os"},{title0:a(({value:l,isActive:n})=>[s("Linux")]),tab0:a(({value:l,isActive:n})=>[C]),_:1}),N,i(t,{id:"188",data:[{id:"linux"}],"tab-id":"os"},{title0:a(({value:l,isActive:n})=>[s("Linux")]),tab0:a(({value:l,isActive:n})=>[U]),_:1}),V,i(t,{id:"196",data:[{id:"linux"}],"tab-id":"os"},{title0:a(({value:l,isActive:n})=>[s("Linux")]),tab0:a(({value:l,isActive:n})=>[q,z]),_:1})])}const H=r(p,[["render",D],["__file","quick-start.html.vue"]]);export{H as default}; diff --git a/assets/quick-start.html-77deb671.js b/assets/quick-start.html-77deb671.js new file mode 100644 index 000000000..56b7ed97c --- /dev/null +++ b/assets/quick-start.html-77deb671.js @@ -0,0 +1 @@ +const t=JSON.parse('{"key":"v-3a736ab4","path":"/deploy/quick-start.html","title":"快速开始","lang":"zh-cn","frontmatter":{"lang":"zh-cn","title":"快速开始","description":"本节内容 本节将会指导你如何在你的 PC、服务器、甚至安卓手机上搭建和部署海豹核心。 获取海豹 可以从以下两个渠道获取海豹核心安装包: 官网:从 官网下载页 (https://dice.weizaima.com/download) 获取最新的正式版海豹核心安装包。; GitHub:从 GitHub Release (https://github.com...","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/deploy/quick-start.html"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"快速开始"}],["meta",{"property":"og:description","content":"本节内容 本节将会指导你如何在你的 PC、服务器、甚至安卓手机上搭建和部署海豹核心。 获取海豹 可以从以下两个渠道获取海豹核心安装包: 官网:从 官网下载页 (https://dice.weizaima.com/download) 获取最新的正式版海豹核心安装包。; GitHub:从 GitHub Release (https://github.com..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-cn"}],["meta",{"property":"og:updated_time","content":"2023-10-29T17:01:34.000Z"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-10-29T17:01:34.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"快速开始\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2023-10-29T17:01:34.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[{"level":2,"title":"获取海豹","slug":"获取海豹","link":"#获取海豹","children":[]},{"level":2,"title":"启动","slug":"启动","link":"#启动","children":[]},{"level":2,"title":"安装为系统服务(可选)","slug":"安装为系统服务-可选","link":"#安装为系统服务-可选","children":[]}],"git":{"createdTime":1698059111000,"updatedTime":1698598894000,"contributors":[{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":3},{"name":"Xiangze Li","email":"lee_johnson@qq.com","commits":1}]},"readingTime":{"minutes":4.08,"words":1224},"filePathRelative":"deploy/quick-start.md","localizedDate":"2023年10月23日","autoDesc":true,"excerpt":""}');export{t as data}; diff --git a/assets/quick-start.html-8e217087.js b/assets/quick-start.html-8e217087.js new file mode 100644 index 000000000..f22278d6e --- /dev/null +++ b/assets/quick-start.html-8e217087.js @@ -0,0 +1 @@ +import{_ as d}from"./plugin-vue_export-helper-c27b6911.js";import{o as e,c,f as o,e as t}from"./app-d2f9e1e0.js";const a={},r=t('

    快速上手

    本节内容

    本节将展示 TRPG 跑团过程玩家使用海豹骰的常用指令和一般流程,请善用搜索,按需阅读文档。

    常用指令速查

    核心指令
    动作指令
    移出骰子.bot bye / .dismiss
    开关骰子.bot on/off
    开关自定义回复.reply on/off
    新建日志.log new <日志名>
    暂停/恢复日志记录.log off/on
    结束并获取日志.log end
    重新获取日志.log get <日志名>
    掷骰
    动作指令
    掷骰.r <x>d<y>,并有诸多扩展写法
    检定.ra <技能>
    暗骰 / 暗中检定.rh <x>d<y> / .rah <技能>
    代替检定.ra <技能> @代替目标
    设定默认骰子面数.set <面数>
    角色卡
    动作指令
    新建空白卡.pc new <角色名>
    修改角色名.nn <角色名>
    录入数据.st <属性><值>
    列出数据.st show (<属性>)
    列出角色卡.pc list
    绑定角色卡.pc tag <角色名>
    删除角色卡.pc del <角色名>
    自动名片.sn (参考说明)
    CoC 7th
    动作指令
    切换到 CoC 规则.set coc
    生成随机属性数值.coc <数量>
    理智检定.pc new <角色名>
    对抗检定.rav <自身技能> <对手技能> @对手
    奖励骰与惩罚骰.ra (b|p)<数量> <技能>
    疯狂症状.ti 即时疯狂症状,.li 总结性疯狂症状
    技能成长.en <技能>
    切换房规.setcoc details 列出房规,.setcoc <序号> 设定房规
    D&D 5E
    动作指令
    切换到 D&D 规则.set dnd
    生成随机属性值.dnd <数量>
    优势/劣势掷骰.r d(优势|劣势)
    检定.rc [优势|劣势] <技能>[+<调整值>]
    先攻.ri (<角色名>)
    先攻列表.init
    随机 D&D 名字.namednd <种族> <数量>
    其它
    动作指令
    给骰主发送消息.send <消息>
    获取帮助.help <指令名称>
    搜索词条.find <关键字>
    暗影狂奔掷骰.rsr
    WoD 掷骰.ww
    双十字掷骰.dx
    共鸣性怪异掷骰 / 生成属性.ek / .ekgen

    通常流程

    注意

    这一段落是以玩家视角而非主持人视角编写的。

    如果你想主持游戏,我们推荐你较为完整地了解海豹核心提供的各种指令,尤其是 CoC 指令与 D&D 指令相冲突的部分。

    游戏主持人邀请你进入群聊(根据平台不同,也可能是频道、服务器等,本节以群聊代称)。

    尊重主持人与其他玩家

    如果你对于玩法还不熟悉,在主持人要求你使用骰子时才动作,或者在动作前请求主持人的许可。

    你可能用到以下指令:

    • nn 命名角色卡
    • st 设置和修改角色卡属性
    • sn 设置自动名片
    • r 掷骰:需要产生一个随机数的时候,例如伤害值
    • ra/rc 检定:你使用一个技能
    • 根据你使用的规则,你还可能用到其他指令,请参考下面的段落。

    如果还需要使用这张人物卡,并且不在这个群聊使用:

    • pc save 保存到角色卡列表
    • 你还会用到其他指令才能在其他群聊使用这张角色卡。参考 .pc help

    秘密团

    按照主持人的要求,你需要在不同群聊中使用同一角色卡,并且需要数据互相同步。

    • pc new <角色名> 创建一张可以跨群聊使用的角色卡并绑定到当前群聊
    • pc tag <角色名> 将指定角色卡绑定到当前群聊

    通过这种方式,你可在不同群聊之间使用同一角色卡。在任意群聊产生的数据修改都会自动同步到其他绑定的群聊。

    进行 CoC 游戏

    创作角色卡

    .coc <数量> 生成指定数量的随机属性。

    理智检定 San Check

    .sc <成功时失去理智>/<失败时失去理智>

    例如:.sc 0/1 .sc 1/1d4 .sc 1d10/1d100

    抽取疯狂症状

    .ti 抽取即时疯狂症状;

    或者,在主持人要求时 .li 抽取总结性疯狂症状。

    技能成长

    .en <技能> 对技能进行一次成长。

    进行 D&D 游戏

    ',33),i=t('

    创作角色卡

    .dnd <数量> 生成指定数量的随机属性。

    设定先攻值

    .ri <先攻值> 设定自己的先攻值。

    先攻值支持以下三种写法:

    1. 12 直接写数值
    2. +2 写调整值,表示 D20+2
    3. =D20+2 写骰点式

    设定临时属性

    .buff <参数> 设定临时属性。参数的写法参考角色数据录入的 st 指令。

    法术位

    .ss 指令设定角色的法术位。请使用 .ss help 查看用法。

    .cast 指令使用法术。请使用 .cast help 查看用法。

    长休

    .longrest 指令使角色进行长休。

    死亡豁免

    .ds 指令进行死亡豁免。请使用 .ds help 查看用法。

    ',15);function l(h,s){return e(),c("div",null,[r,o(" TODO(Xiangze Li): 需要熟悉 DnD 规则的朋友来审阅以下内容 "),i])}const g=d(a,[["render",l],["__file","quick-start.html.vue"]]);export{g as default}; diff --git a/assets/reply-add-53e5e751.png b/assets/reply-add-53e5e751.png new file mode 100644 index 000000000..ae463b9b7 Binary files /dev/null and b/assets/reply-add-53e5e751.png differ diff --git a/assets/reply-config-9a9b3956.png b/assets/reply-config-9a9b3956.png new file mode 100644 index 000000000..ca6b38030 Binary files /dev/null and b/assets/reply-config-9a9b3956.png differ diff --git a/assets/reply-example-5efa6e3c.png b/assets/reply-example-5efa6e3c.png new file mode 100644 index 000000000..a34890d0d Binary files /dev/null and b/assets/reply-example-5efa6e3c.png differ diff --git a/assets/reply-file-192cfb5e.png b/assets/reply-file-192cfb5e.png new file mode 100644 index 000000000..ac9f83bf6 Binary files /dev/null and b/assets/reply-file-192cfb5e.png differ diff --git a/assets/reply-file-disable-2c78163f.png b/assets/reply-file-disable-2c78163f.png new file mode 100644 index 000000000..a15f96fa1 Binary files /dev/null and b/assets/reply-file-disable-2c78163f.png differ diff --git a/assets/reply-ui-21e723ec.png b/assets/reply-ui-21e723ec.png new file mode 100644 index 000000000..90095356d Binary files /dev/null and b/assets/reply-ui-21e723ec.png differ diff --git a/assets/reply.html-19290d83.js b/assets/reply.html-19290d83.js new file mode 100644 index 000000000..8c2ce05f1 --- /dev/null +++ b/assets/reply.html-19290d83.js @@ -0,0 +1 @@ +const e=JSON.parse('{"key":"v-5312bf43","path":"/config/reply.html","title":"自定义回复","lang":"zh-cn","frontmatter":{"lang":"zh-cn","title":"自定义回复","description":"本节内容 本节将介绍自定义回复功能,请善用侧边栏和搜索,按需阅读文档。 什么是自定义回复? - 我希望让骰子能回复用户发送的早安、午安、晚安,应该怎么做? - 我不会 JavaScript,有没有更简单的方式给骰子编写功能呢? - …… 如果希望骰子能对某些关键词做出响应,最简单的方式就是使用「自定义回复」功能。 自定义回复的典型使用场景 「自定义回复...","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/config/reply.html"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"自定义回复"}],["meta",{"property":"og:description","content":"本节内容 本节将介绍自定义回复功能,请善用侧边栏和搜索,按需阅读文档。 什么是自定义回复? - 我希望让骰子能回复用户发送的早安、午安、晚安,应该怎么做? - 我不会 JavaScript,有没有更简单的方式给骰子编写功能呢? - …… 如果希望骰子能对某些关键词做出响应,最简单的方式就是使用「自定义回复」功能。 自定义回复的典型使用场景 「自定义回复..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:image","content":"http://localhost:8080/sealdice-manual-next/"}],["meta",{"property":"og:locale","content":"zh-cn"}],["meta",{"property":"og:updated_time","content":"2023-11-01T17:22:26.000Z"}],["meta",{"name":"twitter:card","content":"summary_large_image"}],["meta",{"name":"twitter:image:alt","content":"自定义回复"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-11-01T17:22:26.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"自定义回复\\",\\"image\\":[\\"http://localhost:8080/sealdice-manual-next/\\"],\\"dateModified\\":\\"2023-11-01T17:22:26.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[{"level":2,"title":"什么是自定义回复?","slug":"什么是自定义回复","link":"#什么是自定义回复","children":[]},{"level":2,"title":"在哪编写自定义回复?","slug":"在哪编写自定义回复","link":"#在哪编写自定义回复","children":[{"level":3,"title":"当前回复文件","slug":"当前回复文件","link":"#当前回复文件","children":[]},{"level":3,"title":"新建/解析/导入自定义回复文件","slug":"新建-解析-导入自定义回复文件","link":"#新建-解析-导入自定义回复文件","children":[]},{"level":3,"title":"获取自定义回复文件","slug":"获取自定义回复文件","link":"#获取自定义回复文件","children":[]}]},{"level":2,"title":"设置回复项","slug":"设置回复项","link":"#设置回复项","children":[{"level":3,"title":"回复项的条件","slug":"回复项的条件","link":"#回复项的条件","children":[]},{"level":3,"title":"回复项的结果","slug":"回复项的结果","link":"#回复项的结果","children":[]}]},{"level":2,"title":"更复杂的回复","slug":"更复杂的回复","link":"#更复杂的回复","children":[]}],"git":{"createdTime":1698072668000,"updatedTime":1698859346000,"contributors":[{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":5}]},"readingTime":{"minutes":7.43,"words":2230},"filePathRelative":"config/reply.md","localizedDate":"2023年10月23日","autoDesc":true,"excerpt":""}');export{e as data}; diff --git a/assets/reply.html-a88aa392.js b/assets/reply.html-a88aa392.js new file mode 100644 index 000000000..232ba6610 --- /dev/null +++ b/assets/reply.html-a88aa392.js @@ -0,0 +1,15 @@ +import{_ as s}from"./plugin-vue_export-helper-c27b6911.js";import{r as a,o as d,c,a as e,d as i,b as n,w as p,e as t}from"./app-d2f9e1e0.js";const o="/sealdice-manual-next/assets/reply-example-5efa6e3c.png",h="/sealdice-manual-next/assets/reply-ui-21e723ec.png",u="/sealdice-manual-next/assets/reply-config-9a9b3956.png",g="/sealdice-manual-next/assets/reply-file-192cfb5e.png",v="/sealdice-manual-next/assets/reply-file-disable-2c78163f.png",f="/sealdice-manual-next/assets/reply-add-53e5e751.png",b={},m=t('

    自定义回复

    本节内容

    本节将介绍自定义回复功能,请善用侧边栏和搜索,按需阅读文档。

    什么是自定义回复?

    • 我希望让骰子能回复用户发送的早安、午安、晚安,应该怎么做?

    • 我不会 JavaScript,有没有更简单的方式给骰子编写功能呢?

    • ……

    如果希望骰子能对某些关键词做出响应,最简单的方式就是使用「自定义回复」功能。

    自定义回复的典型使用场景
    自定义回复的典型使用场景

    「自定义回复」是海豹核心提供的一种功能扩展方式。它的形式自由,触发机制多样(关键字、正则表达式等),并且能配合海豹核心的变量系统与牌堆功能使用。无论你只是想增加简单的回复,还是需要复杂的判断和响应,都可以尝试使用自定义回复。

    在哪编写自定义回复?

    点击海豹 UI 界面的「扩展功能 - 自定义回复」选项,你就可以进入「自定义回复」的设置页面。

    自定义回复页
    自定义回复页

    默认情况下,自定义回复功能是被关闭的,你可以点击 页面左上角的开关 打开这一功能,在同意许可协议后,你就可以看到自定义回复的设置页面,下面我们将一一介绍其中的功能。

    自定义回复设置页
    自定义回复设置页

    在页面的上半部分,你可以看见一些帮助信息,阅读它们也能为编写自定义回复带来帮助。

    当前回复文件

    自定义回复文件
    自定义回复文件

    「自定义回复」支持多个设置文件,你可以在下拉框选择进行切换。默认状态下,会有一个名为 reply.yaml 的初始自定义回复文件,可以直接在该文件中进行自定义回复的编写。

    你可以分别控制回复文件的启用与否。启用了的回复文件会显示「已启用」,如果显示「未启用」,可以点击它启用该文件。

    未启用的自定义回复文件
    未启用的自定义回复文件

    对于每一个自定义回复文件,都可以进行「删除」和「下载」操作,方便你管理和分享它们。

    在编写过程中,可以勾选「开启回复调试日志」项,来为你编写回复提供更多有用信息。

    删除要谨慎!

    点击「删除」时,会弹出二次确认框。一旦点击确认,删除的文件将无法找回,务必在删除时小心确认。

    可以选择点击「已启用」按钮禁用它来代替删除。

    新建/解析/导入自定义回复文件

    在当前文件的右侧有三个按钮,它们是快速创建新自定义回复的不同方式:

    • 新建:创建一个新的自定义回复文件。在你想要将不同的回复区分开,方便管理的时候,可以新建一个文件;
    • 解析:通过粘贴文本来快速向当前文件添加自定义回复项。通常来说这段文本是其他人分享给你的;
    • 上传:直接上传 .yaml 格式的自定义回复文件,通常来说这也是其他人分享给你的。

    获取自定义回复文件

    ',25),x={href:"https://github.com/sealdice/reply",target:"_blank",rel:"noopener noreferrer"},_=t('

    无法访问仓库?

    仓库位于 GitHub,访问时请确认你的网络状况。

    设置回复项

    在自定义回复页的左下角有一个「添加一项」按钮,点击可以向当前文件中添加一条回复项。

    添加回复项
    添加回复项

    每一个自定义回复项都包括两个部分:「条件」「结果」,分别对应着该回复项的触发条件和骰子的回复动作。

    在回复项的左上角可以控制该项的启用与否,右上角可以删除这一条回复项。当回复项较多的时候,可以点击「收缩」来将不重要的项折叠起来。

    随时保存修改

    记得随时保存自己的修改,防止改动内容丢失。

    回复项的条件

    在回复项的左上角是该项的匹配模式,可以理解为当什么情况下会触发这一条回复项。目前提供了三种匹配模式:

    • 文本匹配:即设置什么样的内容会触发这条回复项;
    • 文本长度:即当回复内容的长度满足什么条件时会触发这条回复项;
    • 表达式为真:此处不介绍,见 更复杂的回复

    回复项的条件支持多个,点击「增加」即可为该回复项增加一个条件。当回复项有多个条件时,必须同时满足所有条件 才会触发该回复项。

    如何实现多个内容中任意一个均可触发回复项?

    • 我希望 v我50vme50 任意一个都能触发同样的回复,我该不会需要编写两条相同的回复项吧?

    当然不用!你可以使用文本匹配中的「任意相符」方式来实现,或者直接使用「正则匹配」方式。见 文本匹配

    文本匹配

    文本匹配支持多种方式,在内容中填写要匹配的内容,即可按设置的方式匹配触发回复项。

    • 精准匹配:当骰子收到和内容 完全一致 的消息时,触发该回复项;
    • 任意相符:收到符合任意一个内容的消息时,都能触发该回复项,如 aa|bb,则 aa 或 bb 均可触发;
    • 包含文本:消息包含此内容时触发;
    • 不含文本:消息不包含此内容时触发;
    • 模糊匹配:消息与内容相似时触发该回复项;(普通用户无需纠结什么叫相似)
    • 正则匹配:消息匹配正则表达式时触发,此处不介绍,见 更复杂的回复
    • 前缀匹配:消息以内容为开头时触发;
    • 后缀匹配:消息以此内容为结尾时触发。

    「任意相符」示例

    设置:任意相符,文本 a|b,回复 c

    输入:a
    +回复:c
    +
    +输入:b  
    +回复:c
    +
    +输入:ab
    +回复:不回复
    +
    +输入:a|b
    +回复:不回复
    +
    +输入:其他
    +回复:不回复
    +

    常用方式

    「精准匹配」与「任意相符」是最常用的模式。当然,对于了解正则表达式的用户,「正则匹配」也是经常被使用的。

    文本长度

    指定字数,当消息长度「大于等于」或「小于等于」给定的字数时触发对应回复项。

    汉字的长度

    在文本长度匹配中,一个汉字算作两个字符。如 你好 两字可以触发大于等于 4 的文本长度匹配。

    回复项的结果

    每一个回复项可以有一个或者多个「回复结果」,多个回复结果将 从上到下依次执行。点击「增加」可以新增一条结果,也可以通过「删除结果」按钮去掉对应结果。

    每一个回复结果可以有多条回复文本,结果会在这些文本中 随机抽取 一条作为结果。

    回复可以是直接的回复,也可以指定是「私聊回复」或者「群内回复」。

    提示

    回复项有几个结果,该回复项就会发送几条消息。

    回复结果延迟

    可以给回复结果设置延迟,消息将在此延迟后发送,单位是秒,可以是小数。

    注意

    QQ 消息的随机延迟仍会被加入,如果你希望保证发言顺序,记得考虑这点。

    更复杂的回复

    • 自定义回复要怎么抽取牌堆?

    • 我想控制只有私聊才触发回复,要怎样设置?

    • 我希望编写有一定逻辑的自定义回复,我要怎么做?

    • 前缀/后缀/包含等文本匹配方式不够用/出现误判,听说可以用正则匹配解决?要怎样使用呢?

    • ……

    更复杂的自定义回复编写,会涉及到海豹提供的其他系统,如牌堆、内置脚本语法、变量机制等。也有可能要求你有其它知识的了解,如正则表达式等。

    `,31);function E(y,k){const l=a("ExternalLinkIcon"),r=a("RouterLink");return d(),c("div",null,[m,e("p",null,[i("你可以在 "),e("a",x,[i("自定义回复仓库"),n(l)]),i(" 或官方群的群文件中找到其他骰主分享的文件,使用「上传」功能导入它们。")]),_,e("p",null,[i("如果你有复杂回复编写的需要,或想了解更多细节,可以跳转到 "),n(r,{to:"/advanced/edit_reply.html"},{default:p(()=>[i("进阶 - 编写自定义回复")]),_:1}),i(" 进行阅读。")])])}const D=s(b,[["render",E],["__file","reply.html.vue"]]);export{D as default}; diff --git a/assets/requirementDiagram-e12f1d97-9d1a729c.js b/assets/requirementDiagram-e12f1d97-9d1a729c.js new file mode 100644 index 000000000..2ce0be019 --- /dev/null +++ b/assets/requirementDiagram-e12f1d97-9d1a729c.js @@ -0,0 +1,52 @@ +import{c as Te,s as Ce,g as Fe,b as Me,a as De,l as Ne,z as Pe,h as oe,i as Ye,j as ke}from"./mermaid.core-d8bc71ff.js";import{G as Ue,l as Be}from"./layout-58f7ec6d.js";import{l as Qe}from"./line-e21175d5.js";import"./app-d2f9e1e0.js";import"./array-9f3ba611.js";import"./path-53f90ab3.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],g=[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],ge=[1,51],Ee=[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,f,s,W){var _=s.length-1;switch(f){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:g,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:g,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:g,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:g,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:g,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:g,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:ge,60:Ee,61:Re},{52:54,55:pe,56:fe,57:ye,58:_e,59:ge,60:Ee,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=[],f=[null],s=[],W=this.table,_="",Z=0,me=0,Ve=2,Ie=1,qe=s.slice.call(arguments,1),E=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]);E.setInput(i,L.yy),L.yy.lexer=E,L.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var se=E.yylloc;s.push(se);var Oe=E.options&&E.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Le(){var w;return w=n.pop()||E.lex()||Ie,typeof w!="number"&&(w instanceof Array&&(n=w,w=n.pop()),w=r.symbols_[w]||w),w}for(var I,C,S,ae,Q={},ee,$,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]+"'");E.showPosition?le="Parse error on line "+(Z+1)+`: +`+E.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:E.match,token:this.terminals_[I]||I,line:E.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(E.yytext),s.push(E.yylloc),a.push(S[1]),I=null,me=E.yyleng,_=E.yytext,Z=E.yylineno,se=E.yylloc;break;case 2:if($=this.productions_[S[1]][1],Q.$=f[f.length-$],Q._$={first_line:s[s.length-($||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-($||1)].first_column,last_column:s[s.length-1].last_column},Oe&&(Q._$.range=[s[s.length-($||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;$&&(a=a.slice(0,-1*$*2),f=f.slice(0,-1*$),s=s.slice(0,-1*$)),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}},we=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 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===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=[f[0],f[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,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=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 f)this[s]=f[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 f=this._currentRules(),s=0;sr[0].length)){if(r=a,n=s,this.options.backtrack_lexer){if(i=this.test_match(a,f[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,f[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,f){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=we;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 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(g=>{d==0?u.append("tspan").attr("text-anchor","middle").attr("x",y.rect_min_width/2).attr("dy",0).text(g):u.append("tspan").attr("text-anchor","middle").attr("x",y.rect_min_width/2).attr("dy",y.line_height*.75).text(g),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}},$e=(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 g=o.length;for(;g>p&&d<3;){let R=o.substring(0,p);o=o.substring(p,o.length),g=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}`]);$e(d,c+"_body",[`Id: ${u.id}`,`Text: ${u.text}`,`Risk: ${u.risk}`,`Verification: ${u.verifyMethod}`],o.y);const g=h.node().getBBox();t.setNode(c,{width:g.width,height:g.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 g=ve(p,h+"_title",["<>",`${c}`]);$e(p,h+"_body",[`Type: ${u.type||"Not Specified"}`,`Doc Ref: ${u.docRef||"None"}`],g.y);const R=o.node().getBBox();t.setNode(d,{width:R.width,height:R.height,shape:"rect",id:d})})},gt=(e,t)=>(e.forEach(function(l){let c=H(l.src),u=H(l.dst);t.setEdge(c,u,{relationship:l})}),e),Et=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 g=c.db.getRequirements(),R=c.db.getElements(),A=c.db.getRelationships();yt(g,o,h),_t(R,o,h),gt(A,o),Be(o),Et(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},xt={parser:He,db:ct,renderer:mt,styles:ut};export{xt as diagram}; diff --git a/assets/sankeyDiagram-6de1f9fe-41184d1a.js b/assets/sankeyDiagram-6de1f9fe-41184d1a.js new file mode 100644 index 000000000..0c8388c25 --- /dev/null +++ b/assets/sankeyDiagram-6de1f9fe-41184d1a.js @@ -0,0 +1,8 @@ +import{c as ot,g as pt,s as mt,a as _t,b as kt,x as xt,v as vt,z as bt,j as wt,u as St,h as Y,i as Lt}from"./mermaid.core-d8bc71ff.js";import{o as Et}from"./ordinal-ba9b4969.js";import"./app-d2f9e1e0.js";import"./init-77b53fdd.js";function At(t){for(var n=t.length/6|0,i=new Array(n),l=0;l=l)&&(i=l);else{let l=-1;for(let u of t)(u=n(u,++l,t))!=null&&(i=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 Mt(t){return t.target.depth}function Nt(t){return t.depth}function Pt(t,n){return n-1-t.height}function dt(t,n){return t.sourceLinks.length?t.depth:n-1}function Ct(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?yt(t.sourceLinks,Mt)-1:0}function G(t){return function(){return t}}function at(t,n){return H(t.source,n.source)||t.index-n.index}function ct(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 It(t){return t.index}function $t(t){return t.nodes}function Ot(t){return t.links}function ut(t,n){const i=t.get(n);if(!i)throw new Error("missing: "+n);return i}function ht({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 zt(){let t=0,n=0,i=1,l=1,u=24,k=8,g,m=It,s=dt,o,c,p=$t,b=Ot,y=6;function x(){const e={nodes:p.apply(null,arguments),links:b.apply(null,arguments)};return E(e),L(e),A(e),N(e),S(e),ht(e),e}x.update=function(e){return ht(e),e},x.nodeId=function(e){return arguments.length?(m=typeof e=="function"?e:G(e),x):m},x.nodeAlign=function(e){return arguments.length?(s=typeof e=="function"?e:G(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?(k=g=+e,x):k},x.nodes=function(e){return arguments.length?(p=typeof e=="function"?e:G(e),x):p},x.links=function(e){return arguments.length?(b=typeof e=="function"?e:G(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)=>[m(h,r,e),h]));for(const[h,r]of f.entries()){r.index=h;let{source:_,target:v}=r;typeof _!="object"&&(_=r.source=ut(a,_)),typeof v!="object"&&(v=r.target=ut(a,v)),_.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 _ of a){_.depth=r;for(const{target:v}of _.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 _ of a){_.height=r;for(const{source:v}of _.targetLinks)h.add(v)}if(++r>f)throw new Error("circular link");a=h,h=new Set}}function P({nodes:e}){const f=lt(e,r=>r.depth)+1,a=(i-t-u)/(f-1),h=new Array(f);for(const r of e){const _=Math.max(0,Math.min(f-1,Math.floor(s.call(null,r,f))));r.layer=_,r.x0=t+_*a,r.x1=r.x0+u,h[_]?h[_].push(r):h[_]=[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 _ of r.sourceLinks)_.width=_.value*f}h=(l-h+g)/(a.length+1);for(let r=0;ra.length)-1)),z(f);for(let a=0;a0))continue;let F=(V/j-v.y0)*f;v.y0+=F,v.y1+=F,w(v)}o===void 0&&_.sort(H),C(_,a)}}function O(e,f,a){for(let h=e.length,r=h-2;r>=0;--r){const _=e[r];for(const v of _){let V=0,j=0;for(const{target:U,value:K}of v.sourceLinks){let W=K*(U.layer-v.layer);V+=R(v,U)*W,j+=W}if(!(j>0))continue;let F=(V/j-v.y0)*f;v.y0+=F,v.y1+=F,w(v)}o===void 0&&_.sort(H),C(_,a)}}function C(e,f){const a=e.length>>1,h=e[a];d(e,h.y0-g,a-1,f),I(e,h.y1+g,a+1,f),d(e,l,e.length-1,f),I(e,n,0,f)}function I(e,f,a,h){for(;a1e-6&&(r.y0+=_,r.y1+=_),f=r.y1+g}}function d(e,f,a,h){for(;a>=0;--a){const r=e[a],_=(r.y1-f)*h;_>1e-6&&(r.y0-=_,r.y1-=_),f=r.y0-g}}function w({sourceLinks:e,targetLinks:f}){if(c===void 0){for(const{source:{sourceLinks:a}}of f)a.sort(ct);for(const{target:{targetLinks:a}}of e)a.sort(at)}}function $(e){if(c===void 0)for(const{sourceLinks:f,targetLinks:a}of e)f.sort(ct),a.sort(at)}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 R(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 tt=Math.PI,et=2*tt,D=1e-6,jt=et-D;function nt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function gt(){return new nt}nt.prototype=gt.prototype={constructor:nt,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,k){this._+="C"+ +t+","+ +n+","+ +i+","+ +l+","+(this._x1=+u)+","+(this._y1=+k)},arcTo:function(t,n,i,l,u){t=+t,n=+n,i=+i,l=+l,u=+u;var k=this._x1,g=this._y1,m=i-t,s=l-n,o=k-t,c=g-n,p=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(p>D)if(!(Math.abs(c*m-s*o)>D)||!u)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var b=i-k,y=l-g,x=m*m+s*s,E=b*b+y*y,L=Math.sqrt(x),A=Math.sqrt(p),N=u*Math.tan((tt-Math.acos((x+p-E)/(2*L*A)))/2),P=N/A,z=N/L;Math.abs(P-1)>D&&(this._+="L"+(t+P*o)+","+(n+P*c)),this._+="A"+u+","+u+",0,0,"+ +(c*b>o*y)+","+(this._x1=t+z*m)+","+(this._y1=n+z*s)}},arc:function(t,n,i,l,u,k){t=+t,n=+n,i=+i,k=!!k;var g=i*Math.cos(l),m=i*Math.sin(l),s=t+g,o=n+m,c=1^k,p=k?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)>D||Math.abs(this._y1-o)>D)&&(this._+="L"+s+","+o),i&&(p<0&&(p=p%et+et),p>jt?this._+="A"+i+","+i+",0,1,"+c+","+(t-g)+","+(n-m)+"A"+i+","+i+",0,1,"+c+","+(this._x1=s)+","+(this._y1=o):p>D&&(this._+="A"+i+","+i+",0,"+ +(p>=tt)+","+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 ft(t){return function(){return t}}function Dt(t){return t[0]}function Bt(t){return t[1]}var Rt=Array.prototype.slice;function Vt(t){return t.source}function Ft(t){return t.target}function Ut(t){var n=Vt,i=Ft,l=Dt,u=Bt,k=null;function g(){var m,s=Rt.call(arguments),o=n.apply(this,s),c=i.apply(this,s);if(k||(k=m=gt()),t(k,+l.apply(this,(s[0]=o,s)),+u.apply(this,s),+l.apply(this,(s[0]=c,s)),+u.apply(this,s)),m)return k=null,m+""||null}return g.source=function(m){return arguments.length?(n=m,g):n},g.target=function(m){return arguments.length?(i=m,g):i},g.x=function(m){return arguments.length?(l=typeof m=="function"?m:ft(+m),g):l},g.y=function(m){return arguments.length?(u=typeof m=="function"?m:ft(+m),g):u},g.context=function(m){return arguments.length?(k=m??null,g):k},g}function Wt(t,n,i,l,u){t.moveTo(n,i),t.bezierCurveTo(n=(n+l)/2,i,n,u,l,u)}function Yt(){return Ut(Wt)}function Gt(t){return[t.source.x1,t.y0]}function Ht(t){return[t.target.x0,t.y1]}function Xt(){return Yt().source(Gt).target(Ht)}var it=function(){var t=function(m,s,o,c){for(o=o||{},c=m.length;c--;o[m[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,p,b,y,x){var E=y.length-1;switch(b){case 7:const L=p.findOrCreateNode(y[E-4].trim().replaceAll('""','"')),A=p.findOrCreateNode(y[E-2].trim().replaceAll('""','"')),N=parseFloat(y[E].trim());p.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],p=[],b=[null],y=[],x=this.table,E="",L=0,A=0,N=2,P=1,z=y.slice.call(arguments,1),S=Object.create(this.lexer),M={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(M.yy[O]=this.yy[O]);S.setInput(s,M.yy),M.yy.lexer=S,M.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var C=S.yylloc;y.push(C);var I=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=p.pop()||S.lex()||P,typeof v!="number"&&(v instanceof Array&&(p=v,v=p.pop()),v=o.symbols_[v]||v),v}for(var w,$,T,R,e={},f,a,h,r;;){if($=c[c.length-1],this.defaultActions[$]?T=this.defaultActions[$]:((w===null||typeof w>"u")&&(w=d()),T=x[$]&&x[$][w]),typeof T>"u"||!T.length||!T[0]){var _="";r=[];for(f in x[$])this.terminals_[f]&&f>N&&r.push("'"+this.terminals_[f]+"'");S.showPosition?_="Parse error on line "+(L+1)+`: +`+S.showPosition()+` +Expecting `+r.join(", ")+", got '"+(this.terminals_[w]||w)+"'":_="Parse error on line "+(L+1)+": Unexpected "+(w==P?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(_,{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: "+$+", 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(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},I&&(e._$.range=[y[y.length-(a||1)].range[0],y[y.length-1].range[1]]),R=this.performAction.apply(e,[E,A,L,M.yy,T[1],b,y].concat(z)),typeof R<"u")return R;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}},k=function(){var m={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 p=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===p.length?this.yylloc.first_column:0)+p[p.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,p,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))),p=s[0].match(/(?:\r\n?|\n).*/g),p&&(this.yylineno+=p.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:p?p[p.length-1].length-p[p.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,p;this._more||(this.yytext="",this.match="");for(var b=this._currentRules(),y=0;yo[0].length)){if(o=c,p=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[p]),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,p,b){switch(p){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 m}();u.lexer=k;function g(){this.yy={}}return g.prototype=u,u.Parser=g,new g}();it.parser=it;const X=it;let q=[],Q=[],B={};const qt=()=>{q=[],Q=[],B={},bt()};class Qt{constructor(n,i,l=0){this.source=n,this.target=i,this.value=l}}const Kt=(t,n,i)=>{q.push(new Qt(t,n,i))};class Zt{constructor(n){this.ID=n}}const Jt=t=>(t=wt.sanitizeText(t,ot()),B[t]||(B[t]=new Zt(t),Q.push(B[t])),B[t]),te=()=>Q,ee=()=>q,ne=()=>({nodes:Q.map(t=>({id:t.ID})),links:q.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),ie={nodesMap:B,getConfig:()=>ot().sankey,getNodes:te,getLinks:ee,getGraph:ne,addLink:Kt,findOrCreateNode:Jt,getAccTitle:pt,setAccTitle:mt,getAccDescription:_t,setAccDescription:kt,getDiagramTitle:xt,setDiagramTitle:vt,clear:qt},st=class{static next(t){return new st(t+ ++st.count)}constructor(t){this.id=t,this.href=`#${t}`}toString(){return"url("+this.href+")"}};let rt=st;rt.count=0;const se={left:Nt,right:Pt,center:Ct,justify:dt},re=function(t,n,i,l){const{securityLevel:u,sankey:k}=ot(),g=St.sankey;let m;u==="sandbox"&&(m=Y("#i"+n));const s=u==="sandbox"?Y(m.nodes()[0].contentDocument.body):Y("body"),o=u==="sandbox"?s.select(`[id="${n}"]`):Y(`[id="${n}"]`),c=(k==null?void 0:k.width)??g.width,p=(k==null?void 0:k.height)??g.width,b=(k==null?void 0:k.useMaxWidth)??g.useMaxWidth,y=(k==null?void 0:k.nodeAlignment)??g.nodeAlignment,x=(k==null?void 0:k.prefix)??g.prefix,E=(k==null?void 0:k.suffix)??g.suffix,L=(k==null?void 0:k.showValues)??g.showValues;Lt(o,p,c,b);const A=l.db.getGraph(),N=se[y],P=10;zt().nodeId(d=>d.id).nodeWidth(P).nodePadding(10+(L?15:0)).nodeAlign(N).extent([[0,0],[c,p]])(A);const S=Et(Tt);o.append("g").attr("class","nodes").selectAll(".node").data(A.nodes).join("g").attr("class","node").attr("id",d=>(d.uid=rt.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(d.y1+d.y0)/2).attr("dy",`${L?"0":"0.35"}em`).attr("text-anchor",d=>d.x0(w.uid=rt.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 I;switch(C){case"gradient":I=d=>d.uid;break;case"source":I=d=>S(d.source.id);break;case"target":I=d=>S(d.target.id);break;default:I=C}O.append("path").attr("d",Xt()).attr("stroke",I).attr("stroke-width",d=>Math.max(1,d.width))},oe={draw:re},le=t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,` +`).trim(),ae=X.parse.bind(X);X.parse=t=>ae(le(t));const ye={parser:X,db:ie,renderer:oe};export{ye as diagram}; diff --git a/assets/script.html-0c9ac02a.js b/assets/script.html-0c9ac02a.js new file mode 100644 index 000000000..d9e5a7136 --- /dev/null +++ b/assets/script.html-0c9ac02a.js @@ -0,0 +1 @@ +const e=JSON.parse('{"key":"v-309cd60c","path":"/advanced/script.html","title":"内置脚本语言","lang":"zh-cn","frontmatter":{"lang":"zh-cn","title":"内置脚本语言","description":"本节内容 本节将介绍海豹内置的脚本语言,请善用侧边栏和搜索,按需阅读文档。 为了在很多地方支持实现一些逻辑,但又不至于直接使用学习门槛较高的正式编程语言,海豹提供了一种简单易学的脚本语言,可以称为「海豹语」「豹语」等。 变量 你可能注意到,在自定义文案等地方,出现了一些以 $t 开头的东西,这些是海豹中的变量。 变量的名称可以是汉字、字母和数字,$t ...","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/advanced/script.html"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"内置脚本语言"}],["meta",{"property":"og:description","content":"本节内容 本节将介绍海豹内置的脚本语言,请善用侧边栏和搜索,按需阅读文档。 为了在很多地方支持实现一些逻辑,但又不至于直接使用学习门槛较高的正式编程语言,海豹提供了一种简单易学的脚本语言,可以称为「海豹语」「豹语」等。 变量 你可能注意到,在自定义文案等地方,出现了一些以 $t 开头的东西,这些是海豹中的变量。 变量的名称可以是汉字、字母和数字,$t ..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-cn"}],["meta",{"property":"og:updated_time","content":"2023-10-30T09:14:16.000Z"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-10-30T09:14:16.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"内置脚本语言\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2023-10-30T09:14:16.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[{"level":2,"title":"变量","slug":"变量","link":"#变量","children":[]},{"level":2,"title":"数据类型和赋值","slug":"数据类型和赋值","link":"#数据类型和赋值","children":[]},{"level":2,"title":"语句","slug":"语句","link":"#语句","children":[]},{"level":2,"title":"运算符","slug":"运算符","link":"#运算符","children":[{"level":3,"title":"数学运算","slug":"数学运算","link":"#数学运算","children":[]},{"level":3,"title":"骰子算符","slug":"骰子算符","link":"#骰子算符","children":[]},{"level":3,"title":"条件算符","slug":"条件算符","link":"#条件算符","children":[]}]},{"level":2,"title":"条件语句","slug":"条件语句","link":"#条件语句","children":[]}],"git":{"createdTime":1698072668000,"updatedTime":1698657256000,"contributors":[{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":2},{"name":"Xiangze Li","email":"lee_johnson@qq.com","commits":1}]},"readingTime":{"minutes":4.15,"words":1246},"filePathRelative":"advanced/script.md","localizedDate":"2023年10月23日","autoDesc":true,"excerpt":""}');export{e as data}; diff --git a/assets/script.html-434ac9ea.js b/assets/script.html-434ac9ea.js new file mode 100644 index 000000000..f60063524 --- /dev/null +++ b/assets/script.html-434ac9ea.js @@ -0,0 +1,42 @@ +import{_ as d}from"./plugin-vue_export-helper-c27b6911.js";import{o as t,c as e,e as i}from"./app-d2f9e1e0.js";const a={},n=i(`

    内置脚本语言

    本节内容

    本节将介绍海豹内置的脚本语言,请善用侧边栏和搜索,按需阅读文档。

    为了在很多地方支持实现一些逻辑,但又不至于直接使用学习门槛较高的正式编程语言,海豹提供了一种简单易学的脚本语言,可以称为「海豹语」「豹语」等。

    变量

    你可能注意到,在自定义文案等地方,出现了一些以 $t 开头的东西,这些是海豹中的变量

    变量的名称可以是汉字、字母和数字,$t 是一个特殊的变量前缀,还有其它的前缀。不同前缀代表不同的作用域:

    变量名字用途举例
    普通名字玩家的角色属性理智、力量、智力
    $t开头个人临时变量,不存数据库$t随机点数
    $m开头个人变量,跨群存在$m今日人品
    $g开头群变量,群内所有人共享$g群主体重

    所有变量均可以在 .rx / .rxh / .ra/ .text 等指令以及「自定义文案」中使用。

    变量不生效?

    如果一部分变量无效,请检查海豹是否为最新版本。

    一些内置变量

    变量名内容示例结果
    $t玩家当前人物卡的名字,如果不存在则为群昵称或 QQ 昵称。<木落>
    $t玩家_RAW同上,但没有<>木落
    $tQQ昵称QQ 昵称<木落>
    $t账号ID海豹格式的 IDQQ:123456789
    $t账号ID_RAW原始格式的 ID123456789
    $tQQ海豹格式的 IDQQ:123456789
    $t群名群名海豹核心·SealDice 用户群
    $t群号海豹格式的 IDQQ-Group:987654321
    $t群号_RAW原始格式的 ID987654321
    $t个人骰子面数个人骰子面数100
    $tDate数字格式的现日期20230109
    $tYear数字格式的年份2023
    $tMonth数字格式的现月份1
    $tDay数字格式的现日期9
    $tWeekday数字格式的星期(1-7)1
    $tHour数字格式的现时间(小时)15
    $tMinute数字格式的现时间(分钟)41
    $tSecond数字格式的现时间(秒)55
    $tTimestamp数字格式的 10 位时间戳1673250115
    $t文本长度触发消息的文本,汉字长度为 3,英文字母和数字长度为 1。6
    $t平台触发的平台QQ
    $t游戏模式.set coc/dnd 改变coc7
    $t消息类型触发位置为群还是私聊(group/private)group
    娱乐:今日人品自定义文案<木落> 的今日人品为 0
    常量:APPNAME软件名SealDice
    常量:VERSION版本号1.4.0
    $tMsgID消息 ID,仅自定义回复中可用。-123

    所有自定义文案也均为可用变量。

    数据类型和赋值

    // 注意,目前并不支持写注释,此为教程中便于展示
    +// 文本类型
    +$t0 = '文本'
    +$t0 = "也是文本"
    +$t0 = \`特殊文本类型,可以插入表达式,例如,玩家的力量数值: {力量}\`
    +$t0 = \`另一种插入表达式的写法 {% 力量 %} \`
    +
    +// 数字类型
    +$t0 = 1
    +
    +// 布尔类型:没有专门的布尔类型,0 或空字符串被视为 False,非零和非空字符串为 True
    +$t0 > 1
    +$t0 >= 1
    +$t0 == 1
    +$t0 != 1
    +$t0 < 1
    +$t0 <= 1
    +

    语句

    多个语句可以用 ; 分隔,取分隔后的最后一项的值,为整个表达式的值,例如:

    $t0 = 1;2;3
    +

    此时 $t0 的值为 3

    运算符

    数学运算

    加减乘除余 + -* / %
    +乘方 ^ ** // 2 ** 3 或 2 ^ 3,即 2 的 3 次方
    +

    骰子算符

    d 常规骰子算符,用法举例 d20 2d20k1 d20 优势

    f 命运骰,随机骰 4 次,每骰结果可能是 -1 0 1,记为 - 0 +

    b 奖励骰 (COC)

    p 惩罚骰 (COC)

    c 双十字

    条件算符

    条件算符 ?

    灵视 >= 40 ? '如果灵视达到40以上,你就能看到这句话'
    +

    可以用这个指令测试,下同:

    .st 灵视 41
    +.text {灵视 >= 40 ? '如果灵视达到 40 以上,你就能看到这句话'}
    +

    多重条件算符 ? ,

    灵视 >= 80 ? '看得很清楚吗?',
    +灵视 >= 50 ? '不错,再靠近一点……',
    +灵视 >= 30 ? '仔细听……',
    +灵视 >= 0 ? '呵,无知之人。'
    +

    应用举例,默认的 jrrp

    {$t玩家} 今日人品为{$t人品},{%
    +    $t人品 > 95 ? '人品爆表!',
    +    $t人品 > 80 ? '运气还不错!',
    +    $t人品 > 50 ? '人品还行吧',
    +    $t人品 > 10 ? '今天不太行',
    +    1 ? '流年不利啊!'
    +%}
    +

    三目运算符 ? :

    灵视 >= 40 ? '如果灵视达到 40 以上,你就能看到这句话' : '无知亦是幸运'
    +

    条件语句

    if $t0 > 10 {
    +    $t1 = "aaa"
    +} else {
    +    $t1 = 'bbb'
    +}
    +

    出现格式化错误

    如果上面的代码输出「格式化错误」,那是因为你的 $t0 不是数值。字符串当然不能和数值比较大小,所以会报错。

    解决方法:.text {$t0=0}

    实际测试:

    .text {% if $t0 > 10 { $t1="aaa"} else { $t1 = 'bbb' }; $t1 %}
    +
    `,41),r=[n];function c(s,l){return t(),e("div",null,r)}const u=d(a,[["render",c],["__file","script.html.vue"]]);export{u as default}; diff --git a/assets/sequenceDiagram-d89d0f25-950a25b8.js b/assets/sequenceDiagram-d89d0f25-950a25b8.js new file mode 100644 index 000000000..c34412935 --- /dev/null +++ b/assets/sequenceDiagram-d89d0f25-950a25b8.js @@ -0,0 +1,122 @@ +import{g as ke,x as Le,v as Ie,c as dt,s as ae,b as Ae,a as Ne,z as Se,l as U,d as Mt,j as w,e as Me,h as St,i as Re,y as O,m as re,aO as oe,b0 as De,b1 as Ve}from"./mermaid.core-d8bc71ff.js";import{d as Ce,a as Oe,g as Rt,b as Be,c as Ye,e as Gt}from"./svgDrawCommon-057d45d0-b7474b9e.js";import"./app-d2f9e1e0.js";var qt=function(){var t=function(ht,m,_,k){for(_=_||{},k=ht.length;k--;_[ht[k]]=m);return _},e=[1,2],o=[1,3],i=[1,4],s=[2,4],n=[1,9],c=[1,11],h=[1,13],p=[1,14],a=[1,16],x=[1,17],E=[1,18],u=[1,24],g=[1,25],b=[1,26],P=[1,27],I=[1,28],R=[1,29],N=[1,30],F=[1,31],S=[1,32],tt=[1,33],W=[1,34],K=[1,35],Z=[1,36],q=[1,37],Y=[1,38],C=[1,39],G=[1,41],z=[1,42],X=[1,43],Q=[1,44],j=[1,45],y=[1,46],v=[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],L=[4,5,16,50,52,53],pt=[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],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],$t=[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],lt=[68,69,70],nt=[1,120],Ct={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(m,_,k,T,M,l,vt){var d=l.length-1;switch(M){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:i},{1:[3]},{3:5,4:e,5:o,6:i},{3:6,4:e,5:o,6:i},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],s,{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:a,21:x,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:b,33:P,35:I,36:R,37:N,38:F,39:S,41:tt,43:W,44:K,46:Z,50:q,52:Y,53:C,54:G,59:z,60:X,61:Q,62:j,70:y},t(v,[2,5]),{9:47,12:12,13:h,14:p,17:15,18:a,21:x,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:b,33:P,35:I,36:R,37:N,38:F,39:S,41:tt,43:W,44:K,46:Z,50:q,52:Y,53:C,54:G,59:z,60:X,61:Q,62:j,70:y},t(v,[2,7]),t(v,[2,8]),t(v,[2,14]),{12:48,50:q,52:Y,53:C},{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(v,[2,29]),t(v,[2,30]),{32:[1,61]},{34:[1,62]},t(v,[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(v,[2,6]),t(v,[2,15]),t(L,[2,9],{10:91}),t(v,[2,17]),{5:[1,93],19:[1,92]},{5:[1,94]},t(v,[2,21]),{5:[1,95]},{5:[1,96]},t(v,[2,24]),t(v,[2,25]),t(v,[2,26]),t(v,[2,27]),t(v,[2,28]),t(v,[2,31]),t(v,[2,32]),t(pt,s,{7:97}),t(pt,s,{7:98}),t(pt,s,{7:99}),t(et,s,{40:100,7:101}),t(A,s,{42:102,7:103}),t(A,s,{7:103,42:104}),t($t,s,{45:105,7:106}),t(pt,s,{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(lt,[2,69]),t(lt,[2,70]),t(lt,[2,71]),t(lt,[2,72]),t(lt,[2,73]),t(lt,[2,74]),t(lt,[2,75]),t(lt,[2,76]),{22:116,70:y},{22:118,58:117,70:y},{70:[2,63]},{70:[2,64]},{56:119,79:nt},{56:121,79:nt},{56:122,79:nt},{56:123,79:nt},{4:[1,126],5:[1,128],11:125,12:127,16:[1,124],50:q,52:Y,53:C},{5:[1,129]},t(v,[2,19]),t(v,[2,20]),t(v,[2,22]),t(v,[2,23]),{4:n,5:c,8:8,9:10,12:12,13:h,14:p,16:[1,130],17:15,18:a,21:x,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:b,33:P,35:I,36:R,37:N,38:F,39:S,41:tt,43:W,44:K,46:Z,50:q,52:Y,53:C,54:G,59:z,60:X,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:a,21:x,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:b,33:P,35:I,36:R,37:N,38:F,39:S,41:tt,43:W,44:K,46:Z,50:q,52:Y,53:C,54:G,59:z,60:X,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:a,21:x,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:b,33:P,35:I,36:R,37:N,38:F,39:S,41:tt,43:W,44:K,46:Z,50:q,52:Y,53:C,54:G,59:z,60:X,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:a,21:x,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:b,33:P,35:I,36:R,37:N,38:F,39:S,41:tt,43:W,44:K,46:Z,49:[1,134],50:q,52:Y,53:C,54:G,59:z,60:X,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:a,21:x,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:b,33:P,35:I,36:R,37:N,38:F,39:S,41:tt,43:W,44:K,46:Z,48:[1,136],50:q,52:Y,53:C,54:G,59:z,60:X,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:a,21:x,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:b,33:P,35:I,36:R,37:N,38:F,39:S,41:tt,43:W,44:K,46:Z,47:[1,139],50:q,52:Y,53:C,54:G,59:z,60:X,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:a,21:x,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:b,33:P,35:I,36:R,37:N,38:F,39:S,41:tt,43:W,44:K,46:Z,50:q,52:Y,53:C,54:G,59:z,60:X,61:Q,62:j,70:y},{15:[1,141]},t(v,[2,49]),{15:[1,142]},t(v,[2,51]),t(v,[2,52]),{22:143,70:y},{22:144,70:y},{56:145,79:nt},{56:146,79:nt},{56:147,79:nt},{64:[1,148],79:[2,62]},{5:[2,55]},{5:[2,77]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(v,[2,16]),t(L,[2,10]),{12:149,50:q,52:Y,53:C},t(L,[2,12]),t(L,[2,13]),t(v,[2,18]),t(v,[2,34]),t(v,[2,35]),t(v,[2,36]),t(v,[2,37]),{15:[1,150]},t(v,[2,38]),{15:[1,151]},t(v,[2,39]),t(v,[2,40]),{15:[1,152]},t(v,[2,41]),{5:[1,153]},{5:[1,154]},{56:155,79:nt},{56:156,79:nt},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:157,70:y},t(L,[2,11]),t(et,s,{7:101,40:158}),t(A,s,{7:103,42:159}),t($t,s,{7:106,45:160}),t(v,[2,48]),t(v,[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(m,_){if(_.recoverable)this.trace(m);else{var k=new Error(m);throw k.hash=_,k}},parse:function(m){var _=this,k=[0],T=[],M=[null],l=[],vt=this.table,d="",It=0,te=0,we=2,ee=1,ve=l.slice.call(arguments,1),B=Object.create(this.lexer),ut={yy:{}};for(var Bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Bt)&&(ut.yy[Bt]=this.yy[Bt]);B.setInput(m,ut.yy),ut.yy.lexer=B,ut.yy.parser=this,typeof B.yylloc>"u"&&(B.yylloc={});var Yt=B.yylloc;l.push(Yt);var _e=B.options&&B.options.ranges;typeof ut.yy.parseError=="function"?this.parseError=ut.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Pe(){var rt;return rt=T.pop()||B.lex()||ee,typeof rt!="number"&&(rt instanceof Array&&(T=rt,rt=T.pop()),rt=_.symbols_[rt]||rt),rt}for(var H,ft,$,Ft,yt={},At,at,ie,Nt;;){if(ft=k[k.length-1],this.defaultActions[ft]?$=this.defaultActions[ft]:((H===null||typeof H>"u")&&(H=Pe()),$=vt[ft]&&vt[ft][H]),typeof $>"u"||!$.length||!$[0]){var Wt="";Nt=[];for(At in vt[ft])this.terminals_[At]&&At>we&&Nt.push("'"+this.terminals_[At]+"'");B.showPosition?Wt="Parse error on line "+(It+1)+`: +`+B.showPosition()+` +Expecting `+Nt.join(", ")+", got '"+(this.terminals_[H]||H)+"'":Wt="Parse error on line "+(It+1)+": Unexpected "+(H==ee?"end of input":"'"+(this.terminals_[H]||H)+"'"),this.parseError(Wt,{text:B.match,token:this.terminals_[H]||H,line:B.yylineno,loc:Yt,expected:Nt})}if($[0]instanceof Array&&$.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ft+", token: "+H);switch($[0]){case 1:k.push(H),M.push(B.yytext),l.push(B.yylloc),k.push($[1]),H=null,te=B.yyleng,d=B.yytext,It=B.yylineno,Yt=B.yylloc;break;case 2:if(at=this.productions_[$[1]][1],yt.$=M[M.length-at],yt._$={first_line:l[l.length-(at||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(at||1)].first_column,last_column:l[l.length-1].last_column},_e&&(yt._$.range=[l[l.length-(at||1)].range[0],l[l.length-1].range[1]]),Ft=this.performAction.apply(yt,[d,te,It,ut.yy,$[1],M,l].concat(ve)),typeof Ft<"u")return Ft;at&&(k=k.slice(0,-1*at*2),M=M.slice(0,-1*at),l=l.slice(0,-1*at)),k.push(this.productions_[$[1]][0]),M.push(yt.$),l.push(yt._$),ie=vt[k[k.length-2]][k[k.length-1]],k.push(ie);break;case 3:return!0}}return!0}},me=function(){var ht={EOF:1,parseError:function(_,k){if(this.yy.parser)this.yy.parser.parseError(_,k);else throw new Error(_)},setInput:function(m,_){return this.yy=_||this.yy||{},this._input=m,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 m=this._input[0];this.yytext+=m,this.yyleng++,this.offset++,this.match+=m,this.matched+=m;var _=m.match(/(?:\r\n?|\n).*/g);return _?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),m},unput:function(m){var _=m.length,k=m.split(/(?:\r\n?|\n)/g);this._input=m+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-_),this.offset-=_;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),k.length-1&&(this.yylineno-=k.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:k?(k.length===T.length?this.yylloc.first_column:0)+T[T.length-k.length].length-k[0].length:this.yylloc.first_column-_},this.options.ranges&&(this.yylloc.range=[M[0],M[0]+this.yyleng-_]),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(m){this.unput(this.match.slice(m))},pastInput:function(){var m=this.matched.substr(0,this.matched.length-this.match.length);return(m.length>20?"...":"")+m.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var m=this.match;return m.length<20&&(m+=this._input.substr(0,20-m.length)),(m.substr(0,20)+(m.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var m=this.pastInput(),_=new Array(m.length+1).join("-");return m+this.upcomingInput()+` +`+_+"^"},test_match:function(m,_){var k,T,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))),T=m[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+m[0].length},this.yytext+=m[0],this.match+=m[0],this.matches=m,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(m[0].length),this.matched+=m[0],k=this.performAction.call(this,this.yy,this,_,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),k)return k;if(this._backtrack){for(var l in M)this[l]=M[l];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var m,_,k,T;this._more||(this.yytext="",this.match="");for(var M=this._currentRules(),l=0;l_[0].length)){if(_=k,T=l,this.options.backtrack_lexer){if(m=this.test_match(k,M[l]),m!==!1)return m;if(this._backtrack){_=!1;continue}else return!1}else if(!this.options.flex)break}return _?(m=this.test_match(_,M[T]),m!==!1?m:!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 _=this.next();return _||this.lex()},begin:function(_){this.conditionStack.push(_)},popState:function(){var _=this.conditionStack.length-1;return _>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(_){return _=this.conditionStack.length-1-Math.abs(_||0),_>=0?this.conditionStack[_]:"INITIAL"},pushState:function(_){this.begin(_)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(_,k,T,M){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 k.yytext=k.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 k.yytext=k.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 ht}();Ct.lexer=me;function Ot(){this.yy={}}return Ot.prototype=Ct,Ct.Parser=Ot,new Ot}();qt.parser=qt;const Fe=qt;let _t,ct={},Xt={},Jt={},mt=[],J=[],Dt=!1,zt,ot,Pt,Et;const We=function(t){mt.push({name:t.text,wrap:t.wrap===void 0&&xt()||!!t.wrap,fill:t.color,actorKeys:[]}),ot=mt.slice(-1)[0]},Ht=function(t,e,o,i){let s=ot;const n=ct[t];if(n){if(ot&&n.box&&ot!==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 '"+ot.name+"' at the same time.");if(s=n.box?n.box:ot,n.box=s,n&&e===n.name&&o==null)return}(o==null||o.text==null)&&(o={text:e,wrap:null,type:i}),(i==null||o.text==null)&&(o={text:e,wrap:null,type:i}),ct[t]={box:s,name:e,description:o.text,wrap:o.wrap===void 0&&xt()||!!o.wrap,prevActor:_t,links:{},properties:{},actorCnt:null,rectData:null,type:i||"participant"},_t&&ct[_t]&&(ct[_t].nextActor=t),ot&&ot.actorKeys.push(t),_t=t},qe=t=>{let e,o=0;for(e=0;e>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},c}return J.push({from:t,to:e,message:o.text,wrap:o.wrap===void 0&&xt()||!!o.wrap,type:i,activate:s}),!0},He=function(){return mt.length>0},Ue=function(){return mt.some(t=>t.name)},Ke=function(){return J},Ge=function(){return mt},Xe=function(){return ct},Je=function(){return Xt},Ze=function(){return Jt},Lt=function(t){return ct[t]},Qe=function(){return Object.keys(ct)},je=function(){Dt=!0},$e=function(){Dt=!1},t0=()=>Dt,e0=function(t){zt=t},xt=()=>zt!==void 0?zt:dt().sequence.wrap,i0=function(){ct={},Xt={},Jt={},mt=[],J=[],Dt=!1,Se()},s0=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 U.debug("parseMessage:",o),o},n0=function(t){const e=t.match(/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/);let o=e!=null&&e[1]?e[1].trim():"transparent",i=e!=null&&e[2]?e[2].trim():void 0;if(window&&window.CSS)window.CSS.supports("color",o)||(o="transparent",i=t.trim());else{const n=new Option().style;n.color=o,n.color!==o&&(o="transparent",i=t.trim())}return{color:o,text:i!==void 0?Mt(i.replace(/^:?(?:no)?wrap:/,""),dt()):void 0,wrap:i!==void 0?i.match(/^:?wrap:/)!==null?!0:i.match(/^:?nowrap:/)!==null?!1:void 0:void 0}},kt={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},a0={FILLED:0,OPEN:1},r0={LEFTOF:0,RIGHTOF:1,OVER:2},ce=function(t,e,o){o.text,o.wrap===void 0&&xt()||o.wrap;const i=[].concat(t,t);J.push({from:i[0],to:i[1],message:o.text,wrap:o.wrap===void 0&&xt()||!!o.wrap,type:kt.NOTE,placement:e})},le=function(t,e){const o=Lt(t);try{let i=Mt(e.text,dt());i=i.replace(/&/g,"&"),i=i.replace(/=/g,"=");const s=JSON.parse(i);Zt(o,s)}catch(i){U.error("error while parsing actor link text",i)}},o0=function(t,e){const o=Lt(t);try{const c={};let h=Mt(e.text,dt());var i=h.indexOf("@");h=h.replace(/&/g,"&"),h=h.replace(/=/g,"=");var s=h.slice(0,i-1).trim(),n=h.slice(i+1).trim();c[s]=n,Zt(o,c)}catch(c){U.error("error while parsing actor link text",c)}};function Zt(t,e){if(t.links==null)t.links=e;else for(let o in e)t.links[o]=e[o]}const he=function(t,e){const o=Lt(t);try{let i=Mt(e.text,dt());const s=JSON.parse(i);de(o,s)}catch(i){U.error("error while parsing actor properties text",i)}};function de(t,e){if(t.properties==null)t.properties=e;else for(let o in e)t.properties[o]=e[o]}function c0(){ot=void 0}const pe=function(t,e){const o=Lt(t),i=document.getElementById(e.text);try{const s=i.innerHTML,n=JSON.parse(s);n.properties&&de(o,n.properties),n.links&&Zt(o,n.links)}catch(s){U.error("error while parsing actor details text",s)}},l0=function(t,e){if(t!==void 0&&t.properties!==void 0)return t.properties[e]},ue=function(t){if(Array.isArray(t))t.forEach(function(e){ue(e)});else switch(t.type){case"sequenceIndex":J.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":Ht(t.actor,t.actor,t.description,t.draw);break;case"createParticipant":if(ct[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");Pt=t.actor,Ht(t.actor,t.actor,t.description,t.draw),Xt[t.actor]=J.length;break;case"destroyParticipant":Et=t.actor,Jt[t.actor]=J.length;break;case"activeStart":D(t.actor,void 0,void 0,t.signalType);break;case"activeEnd":D(t.actor,void 0,void 0,t.signalType);break;case"addNote":ce(t.actor,t.placement,t.text);break;case"addLinks":le(t.actor,t.text);break;case"addALink":o0(t.actor,t.text);break;case"addProperties":he(t.actor,t.text);break;case"addDetails":pe(t.actor,t.text);break;case"addMessage":if(Pt){if(t.to!==Pt)throw new Error("The created participant "+Pt+" does not have an associated creating message after its declaration. Please check the sequence diagram.");Pt=void 0}else if(Et){if(t.to!==Et&&t.from!==Et)throw new Error("The destroyed participant "+Et+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");Et=void 0}D(t.from,t.to,t.msg,t.signalType,t.activate);break;case"boxStart":We(t.boxData);break;case"boxEnd":c0();break;case"loopStart":D(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":D(void 0,void 0,void 0,t.signalType);break;case"rectStart":D(void 0,void 0,t.color,t.signalType);break;case"rectEnd":D(void 0,void 0,void 0,t.signalType);break;case"optStart":D(void 0,void 0,t.optText,t.signalType);break;case"optEnd":D(void 0,void 0,void 0,t.signalType);break;case"altStart":D(void 0,void 0,t.altText,t.signalType);break;case"else":D(void 0,void 0,t.altText,t.signalType);break;case"altEnd":D(void 0,void 0,void 0,t.signalType);break;case"setAccTitle":ae(t.text);break;case"parStart":D(void 0,void 0,t.parText,t.signalType);break;case"and":D(void 0,void 0,t.parText,t.signalType);break;case"parEnd":D(void 0,void 0,void 0,t.signalType);break;case"criticalStart":D(void 0,void 0,t.criticalText,t.signalType);break;case"option":D(void 0,void 0,t.optionText,t.signalType);break;case"criticalEnd":D(void 0,void 0,void 0,t.signalType);break;case"breakStart":D(void 0,void 0,t.breakText,t.signalType);break;case"breakEnd":D(void 0,void 0,void 0,t.signalType);break}},se={addActor:Ht,addMessage:ze,addSignal:D,addLinks:le,addDetails:pe,addProperties:he,autoWrap:xt,setWrap:e0,enableSequenceNumbers:je,disableSequenceNumbers:$e,showSequenceNumbers:t0,getMessages:Ke,getActors:Xe,getCreatedActors:Je,getDestroyedActors:Ze,getActor:Lt,getActorKeys:Qe,getActorProperty:l0,getAccTitle:ke,getBoxes:Ge,getDiagramTitle:Le,setDiagramTitle:Ie,getConfig:()=>dt().sequence,clear:i0,parseMessage:s0,parseBoxData:n0,LINETYPE:kt,ARROWTYPE:a0,PLACEMENT:r0,addNote:ce,setAccTitle:ae,apply:ue,setAccDescription:Ae,getAccDescription:Ne,hasAtLeastOneBox:He,hasAtLeastOneBoxWithTitle:Ue},h0=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; + } +`,d0=h0,gt=18*2,Qt=function(t,e){return Ce(t,e)},fe=(t,e)=>{De(()=>{const o=document.querySelectorAll(t);o.length!==0&&(o[0].addEventListener("mouseover",function(){g0("actor"+e+"_popup")}),o[0].addEventListener("mouseout",function(){x0("actor"+e+"_popup")}))})},p0=function(t,e,o,i,s){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";s&&(p="block !important");const a=t.append("g");a.attr("id","actor"+c+"_popup"),a.attr("class","actorPopupMenu"),a.attr("display",p),fe("#actor"+c+"_popup",c);var x="";h.class!==void 0&&(x=" "+h.class);let E=h.width>o?h.width:o;const u=a.append("rect");if(u.attr("class","actorPopupMenuPanel"+x),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 g=20;for(let I in n){var b=a.append("a"),P=re.sanitizeUrl(n[I]);b.attr("xlink:href",P),b.attr("target","_blank"),M0(i)(I,b,h.x+10,h.height+g,E,20,{class:"actor"},i),g+=30}}return u.attr("height",g),{height:h.height+g,width:E}},u0=function(t){return"var pu = document.getElementById('"+t+"'); if (pu != null) { pu.style.display = 'block'; }"},f0=function(t){return"var pu = document.getElementById('"+t+"'); if (pu != null) { pu.style.display = 'none'; }"},g0=function(t){var e=document.getElementById(t);e!=null&&(e.style.display="block")},x0=function(t){var e=document.getElementById(t);e!=null&&(e.style.display="none")},wt=function(t,e){let o=0,i=0;const s=e.text.split(w.lineBreakRegex),[n,c]=oe(e.fontSize);let h=[],p=0,a=()=>e.y;if(e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0)switch(e.valign){case"top":case"start":a=()=>Math.round(e.y+e.textMargin);break;case"middle":case"center":a=()=>Math.round(e.y+(o+i+e.textMargin)/2);break;case"bottom":case"end":a=()=>Math.round(e.y+(o+i+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,E]of s.entries()){e.textMargin!==void 0&&e.textMargin===0&&n!==void 0&&(p=x*n);const u=t.append("text");u.attr("x",e.x),u.attr("y",a()),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 g=E||Ve;if(e.tspan){const b=u.append("tspan");b.attr("x",e.x),e.fill!==void 0&&b.attr("fill",e.fill),b.text(g)}else u.text(g);e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0&&(i+=(u._groups||u)[0][0].getBBox().height,o=i),h.push(u)}return h},ge=function(t,e){function o(s,n,c,h,p){return s+","+n+" "+(s+c)+","+n+" "+(s+c)+","+(n+h-p)+" "+(s+c-p*1.2)+","+(n+h)+" "+s+","+(n+h)}const i=t.append("polygon");return i.attr("points",o(e.x,e.y,e.width,e.height,7)),i.attr("class","labelBox"),e.y=e.y+e.height/2,wt(t,e),i};let it=-1;const xe=(t,e,o,i)=>{t.select&&o.forEach(s=>{const n=e[s],c=t.select("#actor"+n.actorCnt);!i.mirrorActors&&n.stopy?c.attr("y2",n.stopy+n.height/2):i.mirrorActors&&c.attr("y2",n.stopy)})},T0=function(t,e,o,i){const s=i?e.stopy:e.starty,n=e.x+e.width/2,c=s+5,h=t.append("g").lower();var p=h;i||(it++,p.append("line").attr("id","actor"+it).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=it,e.links!=null&&(p.attr("id","root-"+it),fe("#root-"+it,it)));const a=Rt();var x="actor";e.properties!=null&&e.properties.class?x=e.properties.class:a.fill="#eaeaea",a.x=e.x,a.y=s,a.width=e.width,a.height=e.height,a.class=x,a.rx=3,a.ry=3;const E=Qt(p,a);if(e.rectData=a,e.properties!=null&&e.properties.icon){const g=e.properties.icon.trim();g.charAt(0)==="@"?Be(p,a.x+a.width-20,a.y+10,g.substr(1)):Ye(p,a.x+a.width-20,a.y+10,g)}jt(o)(e.description,p,a.x,a.y,a.width,a.height,{class:"actor"},o);let u=e.height;if(E.node){const g=E.node().getBBox();e.height=g.height,u=g.height}return u},y0=function(t,e,o,i){const s=i?e.stopy:e.starty,n=e.x+e.width/2,c=s+80;t.lower(),i||(it++,t.append("line").attr("id","actor"+it).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=it);const h=t.append("g");h.attr("class","actor-man");const p=Rt();p.x=e.x,p.y=s,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"+it).attr("x1",n).attr("y1",s+25).attr("x2",n).attr("y2",s+45),h.append("line").attr("id","actor-man-arms"+it).attr("x1",n-gt/2).attr("y1",s+33).attr("x2",n+gt/2).attr("y2",s+33),h.append("line").attr("x1",n-gt/2).attr("y1",s+60).attr("x2",n).attr("y2",s+45),h.append("line").attr("x1",n).attr("y1",s+45).attr("x2",n+gt/2-2).attr("y2",s+60);const a=h.append("circle");a.attr("cx",e.x+e.width/2),a.attr("cy",s+10),a.attr("r",15),a.attr("width",e.width),a.attr("height",e.height);const x=h.node().getBBox();return e.height=x.height,jt(o)(e.description,h,p.x,p.y+35,p.width,p.height,{class:"actor"},o),e.height},E0=function(t,e,o,i){switch(e.type){case"actor":return y0(t,e,o,i);case"participant":return T0(t,e,o,i)}},b0=function(t,e,o){const s=t.append("g");Te(s,e),e.name&&jt(o)(e.name,s,e.x,e.y+(e.textMaxHeight||0)/2,e.width,0,{class:"text"},o),s.lower()},m0=function(t){return t.append("g")},w0=function(t,e,o,i,s){const n=Rt(),c=e.anchored;n.x=e.startx,n.y=e.starty,n.class="activation"+s%3,n.width=e.stopx-e.startx,n.height=o-e.starty,Qt(c,n)},v0=function(t,e,o,i){const{boxMargin:s,boxTextMargin:n,labelBoxHeight:c,labelBoxWidth:h,messageFontFamily:p,messageFontSize:a,messageFontWeight:x}=i,E=t.append("g"),u=function(P,I,R,N){return E.append("line").attr("x1",P).attr("y1",I).attr("x2",R).attr("y2",N).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(P){u(e.startx,P.y,e.stopx,P.y).style("stroke-dasharray","3, 3")});let g=Gt();g.text=o,g.x=e.startx,g.y=e.starty,g.fontFamily=p,g.fontSize=a,g.fontWeight=x,g.anchor="middle",g.valign="middle",g.tspan=!1,g.width=h||50,g.height=c||20,g.textMargin=n,g.class="labelText",ge(E,g),g=ye(),g.text=e.title,g.x=e.startx+h/2+(e.stopx-e.startx)/2,g.y=e.starty+s+n,g.anchor="middle",g.valign="middle",g.textMargin=n,g.class="loopText",g.fontFamily=p,g.fontSize=a,g.fontWeight=x,g.wrap=!0;let b=wt(E,g);return e.sectionTitles!==void 0&&e.sectionTitles.forEach(function(P,I){if(P.message){g.text=P.message,g.x=e.startx+(e.stopx-e.startx)/2,g.y=e.sections[I].y+s+n,g.class="loopText",g.anchor="middle",g.valign="middle",g.tspan=!1,g.fontFamily=p,g.fontSize=a,g.fontWeight=x,g.wrap=e.wrap,b=wt(E,g);let R=Math.round(b.map(N=>(N._groups||N)[0][0].getBBox().height).reduce((N,F)=>N+F));e.sections[I].height+=R-(s+n)}}),e.height=Math.round(e.stopy-e.starty),E},Te=function(t,e){Oe(t,e)},_0=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")},P0=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")},k0=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")},L0=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")},I0=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")},A0=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)},N0=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")},ye=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}},S0=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},jt=function(){function t(s,n,c,h,p,a,x){const E=n.append("text").attr("x",c+p/2).attr("y",h+a/2+5).style("text-anchor","middle").text(s);i(E,x)}function e(s,n,c,h,p,a,x,E){const{actorFontSize:u,actorFontFamily:g,actorFontWeight:b}=E,[P,I]=oe(u),R=s.split(w.lineBreakRegex);for(let N=0;Nt.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,be(dt())},updateVal:function(t,e,o,i){t[e]===void 0?t[e]=o:t[e]=i(o,t[e])},updateBounds:function(t,e,o,i){const s=this;let n=0;function c(h){return function(a){n++;const x=s.sequenceItems.length-n+1;s.updateVal(a,"starty",e-x*r.boxMargin,Math.min),s.updateVal(a,"stopy",i+x*r.boxMargin,Math.max),s.updateVal(f.data,"startx",t-x*r.boxMargin,Math.min),s.updateVal(f.data,"stopx",o+x*r.boxMargin,Math.max),h!=="activation"&&(s.updateVal(a,"startx",t-x*r.boxMargin,Math.min),s.updateVal(a,"stopx",o+x*r.boxMargin,Math.max),s.updateVal(f.data,"starty",e-x*r.boxMargin,Math.min),s.updateVal(f.data,"stopy",i+x*r.boxMargin,Math.max))}}this.sequenceItems.forEach(c()),this.activations.forEach(c("activation"))},insert:function(t,e,o,i){const s=w.getMin(t,o),n=w.getMax(t,o),c=w.getMin(e,i),h=w.getMax(e,i);this.updateVal(f.data,"startx",s,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(s,c,n,h)},newActivation:function(t,e,o){const i=o[t.from.actor],s=Vt(t.from.actor).length||0,n=i.x+i.width/2+(s-1)*r.activationWidth/2;this.activations.push({startx:n,starty:this.verticalPos+2,stopx:n+r.activationWidth,stopy:void 0,actor:t.from.actor,anchored:V.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=w.getMax(this.data.stopy,this.verticalPos)},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},R0=function(t,e){f.bumpVerticalPos(r.boxMargin),e.height=r.boxMargin,e.starty=f.getVerticalPos();const o=Rt();o.x=e.startx,o.y=e.starty,o.width=e.width||r.width,o.class="note";const i=t.append("g"),s=V.drawRect(i,o),n=Gt();n.x=e.startx,n.y=e.starty,n.width=o.width,n.dy="1em",n.text=e.message,n.class="noteText",n.fontFamily=r.noteFontFamily,n.fontSize=r.noteFontSize,n.fontWeight=r.noteFontWeight,n.anchor=r.noteAlign,n.textMargin=r.noteMargin,n.valign="center";const c=wt(i,n),h=Math.round(c.map(p=>(p._groups||p)[0][0].getBBox().height).reduce((p,a)=>p+a));s.attr("height",h+2*r.noteMargin),e.height+=h+2*r.noteMargin,f.bumpVerticalPos(h+2*r.noteMargin),e.stopy=e.starty+h+2*r.noteMargin,e.stopx=e.startx+o.width,f.insert(e.startx,e.starty,e.stopx,e.stopy),f.models.addNote(e)},Tt=t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),bt=t=>({fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight}),Ut=t=>({fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight});function D0(t,e){f.bumpVerticalPos(10);const{startx:o,stopx:i,message:s}=e,n=w.splitBreaks(s).length,c=O.calculateTextDimensions(s,Tt(r)),h=c.height/n;e.height+=h,f.bumpVerticalPos(h);let p,a=c.height-10;const x=c.width;if(o===i){p=f.getVerticalPos()+a,r.rightAngles||(a+=r.boxMargin,p=f.getVerticalPos()+a),a+=30;const E=w.getMax(x/2,r.width/2);f.insert(o-E,f.getVerticalPos()-10+a,i+E,f.getVerticalPos()+30+a)}else a+=r.boxMargin,p=f.getVerticalPos()+a,f.insert(o,p-10,i,p);return f.bumpVerticalPos(a),e.height+=a,e.stopy=e.starty+e.height,f.insert(e.fromBounds,e.starty,e.toBounds,e.stopy),p}const V0=function(t,e,o,i){const{startx:s,stopx:n,starty:c,message:h,type:p,sequenceIndex:a,sequenceVisible:x}=e,E=O.calculateTextDimensions(h,Tt(r)),u=Gt();u.x=s,u.y=c+10,u.width=n-s,u.class="messageText",u.dy="1em",u.text=h,u.fontFamily=r.messageFontFamily,u.fontSize=r.messageFontSize,u.fontWeight=r.messageFontWeight,u.anchor=r.messageAlign,u.valign="center",u.textMargin=r.wrapPadding,u.tspan=!1,wt(t,u);const g=E.width;let b;s===n?r.rightAngles?b=t.append("path").attr("d",`M ${s},${o} H ${s+w.getMax(r.width/2,g/2)} V ${o+25} H ${s}`):b=t.append("path").attr("d","M "+s+","+o+" C "+(s+60)+","+(o-10)+" "+(s+60)+","+(o+30)+" "+s+","+(o+20)):(b=t.append("line"),b.attr("x1",s),b.attr("y1",o),b.attr("x2",n),b.attr("y2",o)),p===i.db.LINETYPE.DOTTED||p===i.db.LINETYPE.DOTTED_CROSS||p===i.db.LINETYPE.DOTTED_POINT||p===i.db.LINETYPE.DOTTED_OPEN?(b.style("stroke-dasharray","3, 3"),b.attr("class","messageLine1")):b.attr("class","messageLine0");let P="";r.arrowMarkerAbsolute&&(P=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,P=P.replace(/\(/g,"\\("),P=P.replace(/\)/g,"\\)")),b.attr("stroke-width",2),b.attr("stroke","none"),b.style("fill","none"),(p===i.db.LINETYPE.SOLID||p===i.db.LINETYPE.DOTTED)&&b.attr("marker-end","url("+P+"#arrowhead)"),(p===i.db.LINETYPE.SOLID_POINT||p===i.db.LINETYPE.DOTTED_POINT)&&b.attr("marker-end","url("+P+"#filled-head)"),(p===i.db.LINETYPE.SOLID_CROSS||p===i.db.LINETYPE.DOTTED_CROSS)&&b.attr("marker-end","url("+P+"#crosshead)"),(x||r.showSequenceNumbers)&&(b.attr("marker-start","url("+P+"#sequencenumber)"),t.append("text").attr("x",s).attr("y",o+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(a))},C0=function(t,e,o,i,s,n,c){let h=0,p=0,a,x=0;for(const E of i){const u=e[E],g=u.box;a&&a!=g&&(c||f.models.addBox(a),p+=r.boxMargin+a.margin),g&&g!=a&&(c||(g.x=h+p,g.y=s),p+=g.margin),u.width=u.width||r.width,u.height=w.getMax(u.height||r.height,r.height),u.margin=u.margin||r.actorMargin,x=w.getMax(x,u.height),o[u.name]&&(p+=u.width/2),u.x=h+p,u.starty=f.getVerticalPos(),f.insert(u.x,s,u.x+u.width,u.height),h+=u.width+p,u.box&&(u.box.width=h+g.margin-u.box.x),p=u.margin,a=u.box,f.models.addActor(u)}a&&!c&&f.models.addBox(a),f.bumpVerticalPos(x)},Kt=function(t,e,o,i){if(i){let s=0;f.bumpVerticalPos(r.boxMargin*2);for(const n of o){const c=e[n];c.stopy||(c.stopy=f.getVerticalPos());const h=V.drawActor(t,c,r,!0);s=w.getMax(s,h)}f.bumpVerticalPos(s+r.boxMargin)}else for(const s of o){const n=e[s];V.drawActor(t,n,r,!1)}},Ee=function(t,e,o,i){let s=0,n=0;for(const c of o){const h=e[c],p=F0(h),a=V.drawPopup(t,h,p,r,r.forceMenus,i);a.height>s&&(s=a.height),a.width+h.x>n&&(n=a.width+h.x)}return{maxHeight:s,maxWidth:n}},be=function(t){Me(r,t),t.fontFamily&&(r.actorFontFamily=r.noteFontFamily=r.messageFontFamily=t.fontFamily),t.fontSize&&(r.actorFontSize=r.noteFontSize=r.messageFontSize=t.fontSize),t.fontWeight&&(r.actorFontWeight=r.noteFontWeight=r.messageFontWeight=t.fontWeight)},Vt=function(t){return f.activations.filter(function(e){return e.actor===t})},ne=function(t,e){const o=e[t],i=Vt(t),s=i.reduce(function(c,h){return w.getMin(c,h.startx)},o.x+o.width/2-1),n=i.reduce(function(c,h){return w.getMax(c,h.stopx)},o.x+o.width/2+1);return[s,n]};function st(t,e,o,i,s){f.bumpVerticalPos(o);let n=i;if(e.id&&e.message&&t[e.id]){const c=t[e.id].width,h=Tt(r);e.message=O.wrapLabel(`[${e.message}]`,c-2*r.wrapPadding,h),e.width=c,e.wrap=!0;const p=O.calculateTextDimensions(e.message,h),a=w.getMax(p.height,r.labelBoxHeight);n=i+a,U.debug(`${a} - ${e.message}`)}s(e),f.bumpVerticalPos(n)}function O0(t,e,o,i,s,n,c){function h(a,x){a.x{y.add(v.from),y.add(v.to)}),b=b.filter(v=>y.has(v))}C0(a,x,E,b,0,P,!1);const S=H0(P,x,F,i);V.insertArrowHead(a),V.insertArrowCrossHead(a),V.insertArrowFilledHead(a),V.insertSequenceNumber(a);function tt(y,v){const L=f.endActivation(y);L.starty+18>v&&(L.starty=v-6,v+=12),V.drawActivation(a,L,v,r,Vt(y.from.actor).length),f.insert(L.startx,v-10,L.stopx,v)}let W=1,K=1;const Z=[],q=[];P.forEach(function(y,v){let L,pt,et;switch(y.type){case i.db.LINETYPE.NOTE:f.resetVerticalPos(),pt=y.noteModel,R0(a,pt);break;case i.db.LINETYPE.ACTIVE_START:f.newActivation(y,a,x);break;case i.db.LINETYPE.ACTIVE_END:tt(y,f.getVerticalPos());break;case i.db.LINETYPE.LOOP_START:st(S,y,r.boxMargin,r.boxMargin+r.boxTextMargin,A=>f.newLoop(A));break;case i.db.LINETYPE.LOOP_END:L=f.endLoop(),V.drawLoop(a,L,"loop",r),f.bumpVerticalPos(L.stopy-f.getVerticalPos()),f.models.addLoop(L);break;case i.db.LINETYPE.RECT_START:st(S,y,r.boxMargin,r.boxMargin,A=>f.newLoop(void 0,A.message));break;case i.db.LINETYPE.RECT_END:L=f.endLoop(),q.push(L),f.models.addLoop(L),f.bumpVerticalPos(L.stopy-f.getVerticalPos());break;case i.db.LINETYPE.OPT_START:st(S,y,r.boxMargin,r.boxMargin+r.boxTextMargin,A=>f.newLoop(A));break;case i.db.LINETYPE.OPT_END:L=f.endLoop(),V.drawLoop(a,L,"opt",r),f.bumpVerticalPos(L.stopy-f.getVerticalPos()),f.models.addLoop(L);break;case i.db.LINETYPE.ALT_START:st(S,y,r.boxMargin,r.boxMargin+r.boxTextMargin,A=>f.newLoop(A));break;case i.db.LINETYPE.ALT_ELSE:st(S,y,r.boxMargin+r.boxTextMargin,r.boxMargin,A=>f.addSectionToLoop(A));break;case i.db.LINETYPE.ALT_END:L=f.endLoop(),V.drawLoop(a,L,"alt",r),f.bumpVerticalPos(L.stopy-f.getVerticalPos()),f.models.addLoop(L);break;case i.db.LINETYPE.PAR_START:case i.db.LINETYPE.PAR_OVER_START:st(S,y,r.boxMargin,r.boxMargin+r.boxTextMargin,A=>f.newLoop(A)),f.saveVerticalPos();break;case i.db.LINETYPE.PAR_AND:st(S,y,r.boxMargin+r.boxTextMargin,r.boxMargin,A=>f.addSectionToLoop(A));break;case i.db.LINETYPE.PAR_END:L=f.endLoop(),V.drawLoop(a,L,"par",r),f.bumpVerticalPos(L.stopy-f.getVerticalPos()),f.models.addLoop(L);break;case i.db.LINETYPE.AUTONUMBER:W=y.message.start||W,K=y.message.step||K,y.message.visible?i.db.enableSequenceNumbers():i.db.disableSequenceNumbers();break;case i.db.LINETYPE.CRITICAL_START:st(S,y,r.boxMargin,r.boxMargin+r.boxTextMargin,A=>f.newLoop(A));break;case i.db.LINETYPE.CRITICAL_OPTION:st(S,y,r.boxMargin+r.boxTextMargin,r.boxMargin,A=>f.addSectionToLoop(A));break;case i.db.LINETYPE.CRITICAL_END:L=f.endLoop(),V.drawLoop(a,L,"critical",r),f.bumpVerticalPos(L.stopy-f.getVerticalPos()),f.models.addLoop(L);break;case i.db.LINETYPE.BREAK_START:st(S,y,r.boxMargin,r.boxMargin+r.boxTextMargin,A=>f.newLoop(A));break;case i.db.LINETYPE.BREAK_END:L=f.endLoop(),V.drawLoop(a,L,"break",r),f.bumpVerticalPos(L.stopy-f.getVerticalPos()),f.models.addLoop(L);break;default:try{et=y.msgModel,et.starty=f.getVerticalPos(),et.sequenceIndex=W,et.sequenceVisible=i.db.showSequenceNumbers();const A=D0(a,et);O0(y,et,A,v,x,E,u),Z.push({messageModel:et,lineStartY:A}),f.models.addMessage(et)}catch(A){U.error("error while drawing message",A)}}[i.db.LINETYPE.SOLID_OPEN,i.db.LINETYPE.DOTTED_OPEN,i.db.LINETYPE.SOLID,i.db.LINETYPE.DOTTED,i.db.LINETYPE.SOLID_CROSS,i.db.LINETYPE.DOTTED_CROSS,i.db.LINETYPE.SOLID_POINT,i.db.LINETYPE.DOTTED_POINT].includes(y.type)&&(W=W+K)}),U.debug("createdActors",E),U.debug("destroyedActors",u),Kt(a,x,b,!1),Z.forEach(y=>V0(a,y.messageModel,y.lineStartY,i)),r.mirrorActors&&Kt(a,x,b,!0),q.forEach(y=>V.drawBackgroundRect(a,y)),xe(a,x,b,r),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)",V.drawBox(a,y,r)}),R&&f.bumpVerticalPos(r.boxMargin);const Y=Ee(a,x,b,p),{bounds:C}=f.getBounds();let G=C.stopy-C.starty;G{const c=t[n];c.wrap&&(c.description=O.wrapLabel(c.description,r.width-2*r.wrapPadding,Ut(r)));const h=O.calculateTextDimensions(c.description,Ut(r));c.width=c.wrap?r.width:w.getMax(r.width,h.width+2*r.wrapPadding),c.height=c.wrap?w.getMax(h.height,r.height):r.height,i=w.getMax(i,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]+r.actorMargin-c.width/2;c.margin=w.getMax(E,r.actorMargin);continue}const a=e[n]+r.actorMargin-c.width/2-h.width/2;c.margin=w.getMax(a,r.actorMargin)}let s=0;return o.forEach(n=>{const c=Tt(r);let h=n.actorKeys.reduce((x,E)=>x+=t[E].width+(t[E].margin||0),0);h-=2*r.boxTextMargin,n.wrap&&(n.name=O.wrapLabel(n.name,h-2*r.wrapPadding,c));const p=O.calculateTextDimensions(n.name,c);s=w.getMax(p.height,s);const a=w.getMax(h,p.width+2*r.wrapPadding);if(n.margin=r.boxTextMargin,hn.textMaxHeight=s),w.getMax(i,r.height)}const q0=function(t,e,o){const i=e[t.from].x,s=e[t.to].x,n=t.wrap&&t.message;let c=O.calculateTextDimensions(n?O.wrapLabel(t.message,r.width,bt(r)):t.message,bt(r));const h={width:n?r.width:w.getMax(r.width,c.width+2*r.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?w.getMax(r.width,c.width):w.getMax(e[t.from].width/2+e[t.to].width/2,c.width+2*r.noteMargin),h.startx=i+(e[t.from].width+r.actorMargin)/2):t.placement===o.db.PLACEMENT.LEFTOF?(h.width=n?w.getMax(r.width,c.width+2*r.noteMargin):w.getMax(e[t.from].width/2+e[t.to].width/2,c.width+2*r.noteMargin),h.startx=i-h.width+(e[t.from].width-r.actorMargin)/2):t.to===t.from?(c=O.calculateTextDimensions(n?O.wrapLabel(t.message,w.getMax(r.width,e[t.from].width),bt(r)):t.message,bt(r)),h.width=n?w.getMax(r.width,e[t.from].width):w.getMax(e[t.from].width,r.width,c.width+2*r.noteMargin),h.startx=i+(e[t.from].width-h.width)/2):(h.width=Math.abs(i+e[t.from].width/2-(s+e[t.to].width/2))+r.actorMargin,h.startx=i2,E=P=>h?-P:P;t.from===t.to?a=p:(t.activate&&!x&&(a+=E(r.activationWidth/2-1)),[o.db.LINETYPE.SOLID_OPEN,o.db.LINETYPE.DOTTED_OPEN].includes(t.type)||(a+=E(3)));const u=[i,s,n,c],g=Math.abs(p-a);t.wrap&&t.message&&(t.message=O.wrapLabel(t.message,w.getMax(g+2*r.wrapPadding,r.width),Tt(r)));const b=O.calculateTextDimensions(t.message,Tt(r));return{width:w.getMax(t.wrap?0:b.width+2*r.wrapPadding,g+2*r.wrapPadding,r.width),height:0,startx:p,stopx:a,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)}},H0=function(t,e,o,i){const s={},n=[];let c,h,p;return t.forEach(function(a){switch(a.id=O.random({length:10}),a.type){case i.db.LINETYPE.LOOP_START:case i.db.LINETYPE.ALT_START:case i.db.LINETYPE.OPT_START:case i.db.LINETYPE.PAR_START:case i.db.LINETYPE.PAR_OVER_START:case i.db.LINETYPE.CRITICAL_START:case i.db.LINETYPE.BREAK_START:n.push({id:a.id,msg:a.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case i.db.LINETYPE.ALT_ELSE:case i.db.LINETYPE.PAR_AND:case i.db.LINETYPE.CRITICAL_OPTION:a.message&&(c=n.pop(),s[c.id]=c,s[a.id]=c,n.push(c));break;case i.db.LINETYPE.LOOP_END:case i.db.LINETYPE.ALT_END:case i.db.LINETYPE.OPT_END:case i.db.LINETYPE.PAR_END:case i.db.LINETYPE.CRITICAL_END:case i.db.LINETYPE.BREAK_END:c=n.pop(),s[c.id]=c;break;case i.db.LINETYPE.ACTIVE_START:{const E=e[a.from?a.from.actor:a.to.actor],u=Vt(a.from?a.from.actor:a.to.actor).length,g=E.x+E.width/2+(u-1)*r.activationWidth/2,b={startx:g,stopx:g+r.activationWidth,actor:a.from.actor,enabled:!0};f.activations.push(b)}break;case i.db.LINETYPE.ACTIVE_END:{const E=f.activations.map(u=>u.actor).lastIndexOf(a.from.actor);delete f.activations.splice(E,1)[0]}break}a.placement!==void 0?(h=q0(a,e,i),a.noteModel=h,n.forEach(E=>{c=E,c.from=w.getMin(c.from,h.startx),c.to=w.getMax(c.to,h.startx+h.width),c.width=w.getMax(c.width,Math.abs(c.from-c.to))-r.labelBoxWidth})):(p=z0(a,e,i),a.msgModel=p,p.startx&&p.stopx&&n.length>0&&n.forEach(E=>{if(c=E,p.startx===p.stopx){const u=e[a.from],g=e[a.to];c.from=w.getMin(u.x-p.width/2,u.x-u.width/2,c.from),c.to=w.getMax(g.x+p.width/2,g.x+u.width/2,c.to),c.width=w.getMax(c.width,Math.abs(c.to-c.from))-r.labelBoxWidth}else c.from=w.getMin(p.startx,c.from),c.to=w.getMax(p.stopx,c.to),c.width=w.getMax(c.width,p.width)-r.labelBoxWidth}))}),f.activations=[],U.debug("Loop type widths:",s),s},U0={bounds:f,drawActors:Kt,drawActorsPopup:Ee,setConf:be,draw:B0},J0={parser:Fe,db:se,renderer:U0,styles:d0,init:({wrap:t})=>{se.setWrap(t)}};export{J0 as diagram}; diff --git a/assets/special_feature.html-5b02ee3d.js b/assets/special_feature.html-5b02ee3d.js new file mode 100644 index 000000000..91028cf27 --- /dev/null +++ b/assets/special_feature.html-5b02ee3d.js @@ -0,0 +1 @@ +const e=JSON.parse('{"key":"v-6fdc0ef8","path":"/deploy/special_feature.html","title":"特色功能","lang":"zh-cn","frontmatter":{"lang":"zh-cn","title":"特色功能","description":"本节内容 本节将会介绍海豹的特色功能。 指令兼容性 海豹核心兼容了溯洄核心、赵骰核心和塔骰核心的绝大部分主流指令,无论之前用过哪一个都可以轻松上手。 海豹核心对指令格式不敏感,你可以使用 .r1d20 +1、`.r d20+1、.stshow力量 敏捷、。st hp - 1` 等等各种写法。 虽然海豹尽可能提高兼容性,我们仍推荐适当使用空格,以避免预期...","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/deploy/special_feature.html"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"特色功能"}],["meta",{"property":"og:description","content":"本节内容 本节将会介绍海豹的特色功能。 指令兼容性 海豹核心兼容了溯洄核心、赵骰核心和塔骰核心的绝大部分主流指令,无论之前用过哪一个都可以轻松上手。 海豹核心对指令格式不敏感,你可以使用 .r1d20 +1、`.r d20+1、.stshow力量 敏捷、。st hp - 1` 等等各种写法。 虽然海豹尽可能提高兼容性,我们仍推荐适当使用空格,以避免预期..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-cn"}],["meta",{"property":"og:updated_time","content":"2023-11-01T05:34:52.000Z"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-11-01T05:34:52.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"特色功能\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2023-11-01T05:34:52.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[{"level":2,"title":"指令兼容性","slug":"指令兼容性","link":"#指令兼容性","children":[]},{"level":2,"title":"易于部署和使用","slug":"易于部署和使用","link":"#易于部署和使用","children":[]},{"level":2,"title":"极少的资源占用","slug":"极少的资源占用","link":"#极少的资源占用","children":[]},{"level":2,"title":"强自定义","slug":"强自定义","link":"#强自定义","children":[]},{"level":2,"title":"人工智能鸽子","slug":"人工智能鸽子","link":"#人工智能鸽子","children":[]},{"level":2,"title":"强大的查询功能","slug":"强大的查询功能","link":"#强大的查询功能","children":[]},{"level":2,"title":"通用特化支持","slug":"通用特化支持","link":"#通用特化支持","children":[{"level":3,"title":"代替他人检定 / 操作他人属性","slug":"代替他人检定-操作他人属性","link":"#代替他人检定-操作他人属性","children":[]}]},{"level":2,"title":"CoC 特化支持","slug":"coc-特化支持","link":"#coc-特化支持","children":[{"level":3,"title":"属性同义词","slug":"属性同义词","link":"#属性同义词","children":[]},{"level":3,"title":"默认技能等级","slug":"默认技能等级","link":"#默认技能等级","children":[]},{"level":3,"title":"支持 .scb 指令","slug":"支持-scb-指令","link":"#支持-scb-指令","children":[]}]},{"level":2,"title":"D&D 特化支持","slug":"d-d-特化支持","link":"#d-d-特化支持","children":[{"level":3,"title":"属性同义词","slug":"属性同义词-1","link":"#属性同义词-1","children":[]},{"level":3,"title":"优势骰劣势骰","slug":"优势骰劣势骰","link":"#优势骰劣势骰","children":[]},{"level":3,"title":"属性调整值和熟练自动计算","slug":"属性调整值和熟练自动计算","link":"#属性调整值和熟练自动计算","children":[]},{"level":3,"title":"临时属性","slug":"临时属性","link":"#临时属性","children":[]},{"level":3,"title":"法术位支持","slug":"法术位支持","link":"#法术位支持","children":[]},{"level":3,"title":"死亡豁免","slug":"死亡豁免","link":"#死亡豁免","children":[]},{"level":3,"title":"休息","slug":"休息","link":"#休息","children":[]}]},{"level":2,"title":"可以实时编辑的跑团日志","slug":"可以实时编辑的跑团日志","link":"#可以实时编辑的跑团日志","children":[]},{"level":2,"title":"是纯净骰,也是娱乐骰","slug":"是纯净骰-也是娱乐骰","link":"#是纯净骰-也是娱乐骰","children":[]},{"level":2,"title":"更强的指令支持","slug":"更强的指令支持","link":"#更强的指令支持","children":[]},{"level":2,"title":"跨平台","slug":"跨平台","link":"#跨平台","children":[]},{"level":2,"title":"TRPG 规则支持列表","slug":"trpg-规则支持列表","link":"#trpg-规则支持列表","children":[]}],"git":{"createdTime":1698406713000,"updatedTime":1698816892000,"contributors":[{"name":"Xiangze Li","email":"lee_johnson@qq.com","commits":2},{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":1}]},"readingTime":{"minutes":5.33,"words":1600},"filePathRelative":"deploy/special_feature.md","localizedDate":"2023年10月27日","autoDesc":true,"excerpt":""}');export{e as data}; diff --git a/assets/special_feature.html-e5f3b570.js b/assets/special_feature.html-e5f3b570.js new file mode 100644 index 000000000..e47668b4d --- /dev/null +++ b/assets/special_feature.html-e5f3b570.js @@ -0,0 +1,54 @@ +import{_ as l}from"./plugin-vue_export-helper-c27b6911.js";import{r as s,o as t,c,a as e,d as a,b as n,w as h,e as i}from"./app-d2f9e1e0.js";const o={},u=i(`

    特色功能

    本节内容

    本节将会介绍海豹的特色功能。

    指令兼容性

    海豹核心兼容了溯洄核心、赵骰核心和塔骰核心的绝大部分主流指令,无论之前用过哪一个都可以轻松上手。

    海豹核心对指令格式不敏感,你可以使用 .r1d20 +1.r d20+1.stshow力量 敏捷。st hp - 1 等等各种写法。

    虽然海豹尽可能提高兼容性,我们仍推荐适当使用空格,以避免预期外结果。

    易于部署和使用

    海豹的设计初衷是 「能被任何 TRPG 玩家喜爱和使用」,同时秉持 「没有提供 UI 的功能等于不存在」 的理念。

    只需一个不到 25 MB 的安装包、一个可用的机器人账号、和一小段空闲时间,任何人都可以搭建一个 TRPG 骰子。

    如果你希望在 QQ 平台上搭建骰子,由于 QQ 原则上不允许机器人账号,你会需要使用一些特殊技术,这可能花费你更多时间和精力。

    极少的资源占用

    由于 Golang 的高效,海豹核心只占用大概 40 MB 内存,以及极少的 CPU 资源。

    自带的《CoC 7th 怪物之锤》和《D&D 系列资料》会另外占用 50 - 70 MB 内存,但能提供极为强大的资料查询功能。

    内存占用会随着持续运行而稍稍增长并有所波动。根据我们的观察,即使是持续运行数月的大型公骰,内存占用也不会超过数百 MB。

    强自定义

    提供了友好的 WebUI 界面,可以自定义大部分指令的回复语句。

    同时对于自定义回复功能进行了强化,你可以编写一些复杂逻辑,使你的骰子更加鲜活。

    人工智能鸽子

    让你想咕就咕。

    .gugu
    +🕊️: <木落>在来开团的路上被巨龙叼走了!
    +

    查看鸽子背后的故事

    .gugu 来源
    +🕊️: 前往了一个以前捕鲸的小岛度假~这里人很亲切!但是吃了这里的鱼肉料理之后有点晕晕的诶...想到前几天<木落>的短信,还是别追究他为什么不在了。
    +    ——鹊鹊结合实际经历创作
    +

    强大的查询功能

    海豹搭载了全文搜索技术(仅限 PC 版),可以看作是一个微型搜索引擎。

    .find 30尺 法术
    +
    `,25),v=i(`

    通用特化支持

    代替他人检定 / 操作他人属性

    CoC 特化支持

    属性同义词

    各种旧版翻译、俗称、简繁汉字的属性被视为同一属性。

    默认技能等级

    内置部分人物卡上没有的默认技能等级。

    包括不限于速记、园艺、攀爬、各种武器等等。

    支持 .scb 指令

    用于在 sc 时附加一个奖励骰。

    适用于规则书中的关键连接自救规则。

    D&D 特化支持

    属性同义词

    各种旧版翻译、俗称、简繁汉字的属性被视为同一属性。

    优势骰劣势骰

    $ .set 20
    +设定默认骰子面数为 20
    +
    +$ .r d20优势
    +<木落>掷出了 d20优势=[{7 | 6 }]=7
    +
    +$ .r d劣势
    +<木落>掷出了 d劣势=[{16 | 18 }]=16
    +

    属性调整值和熟练自动计算

    临时属性

    法术位支持

    死亡豁免

    休息

    可以实时编辑的跑团日志

    `,22),p={href:"https://log.sealdice.com/",target:"_blank",rel:"noopener noreferrer"},b=i(`

    在海豹中记录的日志会自动上传,省去你一一发送日志文件的麻烦。

    除了海豹 Log 自用之外,支持 QQ 格式和塔骰格式,将你的 Log 全文粘贴到文本框里即可。

    是纯净骰,也是娱乐骰

    海豹除了核心指令之外,都被设计为可插拔的,目前有 7 个内置扩展。

    关闭对应扩展会连同扩展带来的指令一块关闭。

    因此在跑团时,如果你不想要任何娱乐功能,你可以(以 CoC 团为例):

    .ext fun off // 关闭.jrrp和.gugu
    +.ext reply off // 关闭关键字回复
    +.ext deck off // 关闭抽牌 .draw
    +.ext dnd5e off // 关闭dnd5e系列指令
    +.ext story off // 关闭.name[随机指令]/.modu[魔都查询]/.who[排序]等
    +
    +也可以写成一行:
    +.ext fun reply deck dnd5e story off
    +

    这样一来,就只剩下 coc 系列指令和 log 指令了。

    这个改动在当前群聊持续生效。你也可以再打开相应扩展:

    .ext fun on
    +

    如果你是骰主,你也可以在 WebUI 中设置各个扩展是否默认开启。这配置对于海豹核心新加入的群聊生效。

    更强的指令支持

    海豹核心将表达式翻译成字节码,丢进指令虚拟机里执行,同时也做了很强的兼容性处理。

    可以在不同骰系下测试一下这些指令:

    .r 30 + (-1d20) + 49
    +.r d20 + (3 + 1d4)
    +.r 1 + (3+2)d(4+2d10)
    +
    +.sc 0/-1
    +.sc (1+2)/0
    +.sc 0/1d4+(3*2)
    +.sc 1 / 2
    +.sc 1/2 + 3
    +
    +.ra b 测试50
    +.ra b 50 测试
    +

    彩蛋:

    .r 1+d10-3*4 --asm
    +<木落>掷出了 1+d10-3*4=1 + 3[1d10=3] - 12=-8
    +=== VM Code ===
    +push 1
    +mark.left
    +push 1
    +mark.left
    +push 10
    +dice
    +add
    +mark.left
    +push 3
    +mark.left
    +push 4
    +mul
    +sub
    +halt
    +=== VM Code End===
    +

    跨平台

    海豹核心的底层架构,支持单进程多号,也支持很方便地多开

    多号指每个骰子上连接多个帐号,并且支持同时连接不同平台。

    多开指同时运行多个海豹核心,以提供各自不同的服务内容。

    TRPG 规则支持列表

    `,22),m=e("li",null,"COC7",-1),x=e("li",null,"COC - DeltaGreen (.setcoc dg)",-1),g=e("li",null,"DND5e",-1),f=e("li",null,"暗影狂奔 (.rsr)",-1),_=e("li",null,"WOD/无限团 (.ww)",-1),C=e("li",null,"双十字 DoubleCross (.dx)",-1),k=e("li",null,"共鸣性怪异 Emoklore (.ek .ekgen)",-1),E=e("li",null,"剑世界 2.5 (插件)",-1),B=e("li",null,"明日方舟跑团规则 (插件)",-1),D={href:"https://github.com/sealdice/javascript/tree/main/scripts/%E6%A1%8C%E6%B8%B8%E8%A7%84%E5%88%99",target:"_blank",rel:"noopener noreferrer"},A=e("p",null,"如果你不跑这些规则,或者觉得并无必要,可以在后台关闭对应的指令。",-1),w=e("p",null,"如果你喜欢的规则这里没有,那么可以去插件仓库看一看,或者自己编写规则模板插件!",-1);function L(M,Q){const r=s("RouterLink"),d=s("ExternalLinkIcon");return t(),c("div",null,[u,e("p",null,[a("细节可参见 "),n(r,{to:"/use/core.html#find-%E8%AF%8D%E6%9D%A1%E6%9F%A5%E8%AF%A2%E6%8C%87%E4%BB%A4"},{default:h(()=>[a("查询指令")]),_:1}),a(" 一节。")]),v,e("p",null,[a("海豹开发了 "),e("a",p,[a("日志在线染色器"),n(d)]),a("。")]),b,e("ul",null,[m,x,g,f,_,C,k,E,B,e("li",null,[a("其它插件由海豹社区提供,欢迎前去 "),e("a",D,[a("插件仓库"),n(d)]),a(" 查看")])]),A,w])}const I=l(o,[["render",L],["__file","special_feature.html.vue"]]);export{I as default}; diff --git a/assets/stateDiagram-0d589c85-f017bb7f.js b/assets/stateDiagram-0d589c85-f017bb7f.js new file mode 100644 index 000000000..a9ad41064 --- /dev/null +++ b/assets/stateDiagram-0d589c85-f017bb7f.js @@ -0,0 +1 @@ +import{p as P,d as N,s as W}from"./styles-24dfea38-ae7583ad.js";import{c as t,h as H,l as b,i as R,j as T,ao as v,y as U}from"./mermaid.core-d8bc71ff.js";import{G as C,l as F}from"./layout-58f7ec6d.js";import{l as $}from"./line-e21175d5.js";import"./app-d2f9e1e0.js";import"./array-9f3ba611.js";import"./path-53f90ab3.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)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,"
    ");p=p.replace(/\n/g,"
    ");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(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={},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;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,A=(e,i,o,c,s,g,p)=>{const a=new C({compound:!0,multigraph:!0});let r,y=!0;for(r=0;r{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},ct={parser:P,db:N,renderer:et,styles:W,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,N.clear()}};export{ct as diagram}; diff --git a/assets/stateDiagram-v2-8bb05ecb-4a705aaf.js b/assets/stateDiagram-v2-8bb05ecb-4a705aaf.js new file mode 100644 index 000000000..021a0ba0c --- /dev/null +++ b/assets/stateDiagram-v2-8bb05ecb-4a705aaf.js @@ -0,0 +1 @@ +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-24dfea38-ae7583ad.js";import{G as tt}from"./layout-58f7ec6d.js";import{l as E,c as g,h as x,y as et,i as ot,j as w}from"./mermaid.core-d8bc71ff.js";import{r as st}from"./index-f9462f3f-9287aadd.js";import"./app-d2f9e1e0.js";import"./edges-f15a7e05-a8484ad2.js";import"./createText-80c3befb-7196e989.js";import"./line-e21175d5.js";import"./array-9f3ba611.js";import"./path-53f90ab3.js";const h="rect",C="rectWithTitle",nt="start",ct="end",it="divider",rt="roundedWithTitle",lt="note",at="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}`,W="fill:none",z="fill: #333",m="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="",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 l={labelStyle:"",shape:lt,labelText:e.note.text,classes:_t,style:"",id:o+ht+"-"+d,domId:R(o,d,Y),type:s.type,padding:15},a={labelStyle:"",shape:at,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,a),t.setNode(l.id,l),t.setNode(o,p),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:W,labelStyle:"",classes:pt,arrowheadStyle:z,labelpos:m,labelType:j,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:W,labelStyle:"",label:w.sanitizeText(o.description,g()),arrowheadStyle:z,labelpos:m,labelType:j,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.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,B.clear()}};export{Ht as diagram}; diff --git a/assets/story.html-43f3395a.js b/assets/story.html-43f3395a.js new file mode 100644 index 000000000..d7e44f2ac --- /dev/null +++ b/assets/story.html-43f3395a.js @@ -0,0 +1 @@ +const e=JSON.parse('{"key":"v-4d2e85c5","path":"/use/story.html","title":"故事","lang":"zh-cn","frontmatter":{"lang":"zh-cn","title":"故事","description":"本节内容 本节将展示对故事发展有帮助的一些指令,请善用侧边栏和搜索,按需阅读文档。 .name 随机名字 .name [cnenjp] [] [男|女] 抽取随机名字。 可以指定语言,如果不指定,默认是中文。可以指定数量,如果不指定,默认是 5 个。可以指定性别,如果不指定,默认随机生成。 .namednd 随机 DND 名字 .namednd [] ...","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/use/story.html"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"故事"}],["meta",{"property":"og:description","content":"本节内容 本节将展示对故事发展有帮助的一些指令,请善用侧边栏和搜索,按需阅读文档。 .name 随机名字 .name [cnenjp] [] [男|女] 抽取随机名字。 可以指定语言,如果不指定,默认是中文。可以指定数量,如果不指定,默认是 5 个。可以指定性别,如果不指定,默认随机生成。 .namednd 随机 DND 名字 .namednd [] ..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-cn"}],["meta",{"property":"og:updated_time","content":"2023-11-01T05:34:52.000Z"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-11-01T05:34:52.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"故事\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2023-11-01T05:34:52.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[{"level":2,"title":".name 随机名字","slug":"name-随机名字","link":"#name-随机名字","children":[]},{"level":2,"title":".namednd 随机 DND 名字","slug":"namednd-随机-dnd-名字","link":"#namednd-随机-dnd-名字","children":[]},{"level":2,"title":".who 随机排列顺序","slug":"who-随机排列顺序","link":"#who-随机排列顺序","children":[]},{"level":2,"title":".modu 魔都模组查询","slug":"modu-魔都模组查询","link":"#modu-魔都模组查询","children":[]}],"git":{"createdTime":1698072668000,"updatedTime":1698816892000,"contributors":[{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":2},{"name":"Xiangze Li","email":"lee_johnson@qq.com","commits":2}]},"readingTime":{"minutes":1.16,"words":349},"filePathRelative":"use/story.md","localizedDate":"2023年10月23日","autoDesc":true,"excerpt":""}');export{e as data}; diff --git a/assets/story.html-795cdb5f.js b/assets/story.html-795cdb5f.js new file mode 100644 index 000000000..b02be7235 --- /dev/null +++ b/assets/story.html-795cdb5f.js @@ -0,0 +1,3 @@ +import{_ as e}from"./plugin-vue_export-helper-c27b6911.js";import{o as d,c as a,e as t}from"./app-d2f9e1e0.js";const i={},o=t(`

    故事

    本节内容

    本节将展示对故事发展有帮助的一些指令,请善用侧边栏和搜索,按需阅读文档。

    .name 随机名字

    .name [cn|en|jp] [<数量>] [男|女]

    抽取随机名字。

    可以指定语言,如果不指定,默认是中文。可以指定数量,如果不指定,默认是 5 个。可以指定性别,如果不指定,默认随机生成。

    .namednd 随机 DND 名字

    .namednd <种族> [<数量>]

    抽取指定种族的随机名字。可以指定数量,默认是 5 个。

    可以选用的种族
    • 达马拉人
    • 卡林珊人
    • 莱瑟曼人
    • 受国人
    • 精灵
    • 矮人
    • 兽人
    • 海族
    • 地精

    .who 随机排列顺序

    .who <排列元素>...

    随机打乱提供的元素。

    $ .who 1 2 3 4 5 6 7 8 9
    +打乱顺序: 9, 7, 6, 3, 1, 4, 8, 5, 2
    +

    .modu 魔都模组查询

    感谢魔都的章鱼站长给予的许可和支持!

    .modu search <关键字> (<页码>)

    使用关键字进行搜索。

    .modu rec <关键字> (<页码>)

    使用关键字对编辑推荐模组进行搜索。

    .modu author <关键字> (<页码>)

    搜索作者符合关键字的模组。

    .modu luck (<页码>)

    查看编辑推荐。

    .modu get <编号>

    查看指定模组的详细内容。

    .modu roll

    随机抽取一个模组。

    .modu help

    显示帮助。

    `,30),c=[o];function n(l,r){return d(),a("div",null,c)}const h=e(i,[["render",n],["__file","story.html.vue"]]);export{h as default}; diff --git a/assets/style-c136719b.css b/assets/style-c136719b.css new file mode 100644 index 000000000..5abe8eb19 --- /dev/null +++ b/assets/style-c136719b.css @@ -0,0 +1 @@ +html[data-theme=dark]{--text-color: #9e9e9e;--bg-color: #0d1117;--bg-color-secondary: #161b22;--bg-color-tertiary: #21262c;--border-color: #30363d;--box-shadow: #282a32;--card-shadow: rgba(0, 0, 0, .3);--black: #fff;--dark-grey: #999;--light-grey: #666;--white: #000;--grey3: #bbb;--grey12: #333;--grey14: #111;--bg-color-light: #161b22;--bg-color-back: #0d1117;--bg-color-float: #161b22;--bg-color-blur: rgba(13, 17, 23, .9);--bg-color-float-blur: rgba(22, 27, 34, .9);--text-color-light: #a8a8a8;--text-color-lighter: #b1b1b1;--text-color-bright: #c5c5c5;--border-color-light: #2e333a;--border-color-dark: #394048}:root{--theme-color: #3eaf7c;--text-color: #2c3e50;--bg-color: #fff;--bg-color-secondary: #f8f8f8;--bg-color-tertiary: #efeef4;--border-color: #eaecef;--box-shadow: #f0f1f2;--card-shadow: rgba(0, 0, 0, .15);--black: #000;--dark-grey: #666;--light-grey: #999;--white: #fff;--grey3: #333;--grey12: #bbb;--grey14: #eee;--navbar-height: 3.75rem;--navbar-horizontal-padding: 1.5rem;--navbar-vertical-padding: .7rem;--navbar-mobile-height: 3.25rem;--navbar-mobile-horizontal-padding: 1rem;--navbar-mobile-vertical-padding: .5rem;--sidebar-width: 18rem;--sidebar-mobile-width: 16rem;--content-width: 780px;--home-page-width: 1160px;--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", STHeiti, "Microsoft YaHei", SimSun, sans-serif;--font-family-heading: Georgia Pro, Crimson, Georgia, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", STHeiti, "Microsoft YaHei", SimSun, sans-serif;--font-family-mono: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;--line-numbers-width: 2.5rem;--color-transition: .3s ease;--transform-transition: .3s ease;--vp-bg: var(--bg-color);--vp-bgl: var(--bg-color-light);--vp-bglt: var(--bg-color-tertiary);--vp-c: var(--text-color);--vp-cl: var(--text-color-light);--vp-clt: var(--text-color-lighter);--vp-brc: var(--border-color);--vp-brcd: var(--border-color-dark);--vp-tc: var(--theme-color);--vp-tcl: var(--theme-color-light);--vp-ct: var(--color-transition);--vp-tt: var(--transform-transition);--bg-color-light: #fff;--bg-color-back: #f8f8f8;--bg-color-float: #fff;--bg-color-blur: rgba(255, 255, 255, .9);--bg-color-float-blur: rgba(255, 255, 255, .9);--text-color-light: #3a5169;--text-color-lighter: #476582;--text-color-bright: #6a8bad;--border-color-light: #eceef1;--border-color-dark: #cfd4db;--theme-color-dark: #389e70;--theme-color-light: #4abf8a;--theme-color-mask: rgba(62, 175, 124, .15)}:root{--badge-tip-color: #42b983;--badge-warning-color: #f4cd00;--badge-danger-color: #f55;--badge-info-color: #0295ff;--badge-note-color: #666}.vp-badge{display:inline-block;vertical-align:center;height:18px;padding:0 6px;border-radius:3px;background:var(--vp-tc);color:var(--white);font-size:14px;line-height:18px;transition:background var(--vp-ct),color var(--vp-ct)}.vp-badge+.vp-badge{margin-inline-start:5px}h1 .vp-badge,h2 .vp-badge,h3 .vp-badge,h4 .vp-badge,h5 .vp-badge,h6 .vp-badge{vertical-align:top}.vp-badge.tip{background:var(--badge-tip-color)}.vp-badge.warning{background:var(--badge-warning-color)}.vp-badge.danger{background:var(--badge-danger-color)}.vp-badge.info{background:var(--badge-info-color)}.vp-badge.note{background:var(--badge-note-color)}.font-icon{display:inline-block}.theme-hope-content .font-icon{vertical-align:middle}:root{--balloon-border-radius: 2px;--balloon-color: rgba(16, 16, 16, .95);--balloon-text-color: #fff;--balloon-font-size: 12px;--balloon-move: 4px}button[aria-label][data-balloon-pos]{overflow:visible}[aria-label][data-balloon-pos]{position:relative;cursor:pointer}[aria-label][data-balloon-pos]:after{opacity:0;pointer-events:none;transition:all .18s ease-out .18s;text-indent:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;font-weight:400;font-style:normal;text-shadow:none;font-size:var(--balloon-font-size);background:var(--balloon-color);border-radius:2px;color:var(--balloon-text-color);border-radius:var(--balloon-border-radius);content:attr(aria-label);padding:.5em 1em;position:absolute;white-space:nowrap;z-index:10}[aria-label][data-balloon-pos]:before{width:0;height:0;border:5px solid transparent;border-top-color:var(--balloon-color);opacity:0;pointer-events:none;transition:all .18s ease-out .18s;content:"";position:absolute;z-index:10}[aria-label][data-balloon-pos]:hover:before,[aria-label][data-balloon-pos]:hover:after,[aria-label][data-balloon-pos][data-balloon-visible]:before,[aria-label][data-balloon-pos][data-balloon-visible]:after,[aria-label][data-balloon-pos]:not([data-balloon-nofocus]):focus:before,[aria-label][data-balloon-pos]:not([data-balloon-nofocus]):focus:after{opacity:1;pointer-events:none}[aria-label][data-balloon-pos].font-awesome:after{font-family:FontAwesome,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}[aria-label][data-balloon-pos][data-balloon-break]:after{white-space:pre}[aria-label][data-balloon-pos][data-balloon-break][data-balloon-length]:after{white-space:pre-line;word-break:break-word}[aria-label][data-balloon-pos][data-balloon-blunt]:before,[aria-label][data-balloon-pos][data-balloon-blunt]:after{transition:none}[aria-label][data-balloon-pos][data-balloon-pos=up]:hover:after,[aria-label][data-balloon-pos][data-balloon-pos=up][data-balloon-visible]:after,[aria-label][data-balloon-pos][data-balloon-pos=down]:hover:after,[aria-label][data-balloon-pos][data-balloon-pos=down][data-balloon-visible]:after{transform:translate(-50%)}[aria-label][data-balloon-pos][data-balloon-pos=up]:hover:before,[aria-label][data-balloon-pos][data-balloon-pos=up][data-balloon-visible]:before,[aria-label][data-balloon-pos][data-balloon-pos=down]:hover:before,[aria-label][data-balloon-pos][data-balloon-pos=down][data-balloon-visible]:before{transform:translate(-50%)}[aria-label][data-balloon-pos][data-balloon-pos*=-left]:after{left:0}[aria-label][data-balloon-pos][data-balloon-pos*=-left]:before{left:5px}[aria-label][data-balloon-pos][data-balloon-pos*=-right]:after{right:0}[aria-label][data-balloon-pos][data-balloon-pos*=-right]:before{right:5px}[aria-label][data-balloon-pos][data-balloon-po*=-left]:hover:after,[aria-label][data-balloon-pos][data-balloon-po*=-left][data-balloon-visible]:after,[aria-label][data-balloon-pos][data-balloon-pos*=-right]:hover:after,[aria-label][data-balloon-pos][data-balloon-pos*=-right][data-balloon-visible]:after{transform:translate(0)}[aria-label][data-balloon-pos][data-balloon-po*=-left]:hover:before,[aria-label][data-balloon-pos][data-balloon-po*=-left][data-balloon-visible]:before,[aria-label][data-balloon-pos][data-balloon-pos*=-right]:hover:before,[aria-label][data-balloon-pos][data-balloon-pos*=-right][data-balloon-visible]:before{transform:translate(0)}[aria-label][data-balloon-pos][data-balloon-pos^=up]:before,[aria-label][data-balloon-pos][data-balloon-pos^=up]:after{bottom:100%;transform-origin:top;transform:translateY(var(--balloon-move))}[aria-label][data-balloon-pos][data-balloon-pos^=up]:after{margin-bottom:10px}[aria-label][data-balloon-pos][data-balloon-pos=up]:before,[aria-label][data-balloon-pos][data-balloon-pos=up]:after{left:50%;transform:translate(-50%,var(--balloon-move))}[aria-label][data-balloon-pos][data-balloon-pos^=down]:before,[aria-label][data-balloon-pos][data-balloon-pos^=down]:after{top:100%;transform:translateY(calc(var(--balloon-move) * -1))}[aria-label][data-balloon-pos][data-balloon-pos^=down]:after{margin-top:10px}[aria-label][data-balloon-pos][data-balloon-pos^=down]:before{width:0;height:0;border:5px solid transparent;border-bottom-color:var(--balloon-color)}[aria-label][data-balloon-pos][data-balloon-pos=down]:after,[aria-label][data-balloon-pos][data-balloon-pos=down]:before{left:50%;transform:translate(-50%,calc(var(--balloon-move) * -1))}[aria-label][data-balloon-pos][data-balloon-pos=left]:hover:after,[aria-label][data-balloon-pos][data-balloon-pos=left][data-balloon-visible]:after,[aria-label][data-balloon-pos][data-balloon-pos=right]:hover:after,[aria-label][data-balloon-pos][data-balloon-pos=right][data-balloon-visible]:after{transform:translateY(-50%)}[aria-label][data-balloon-pos][data-balloon-pos=left]:hover:before,[aria-label][data-balloon-pos][data-balloon-pos=left][data-balloon-visible]:before,[aria-label][data-balloon-pos][data-balloon-pos=right]:hover:before,[aria-label][data-balloon-pos][data-balloon-pos=right][data-balloon-visible]:before{transform:translateY(-50%)}[aria-label][data-balloon-pos][data-balloon-pos=left]:after,[aria-label][data-balloon-pos][data-balloon-pos=left]:before{right:100%;top:50%;transform:translate(var(--balloon-move),-50%)}[aria-label][data-balloon-pos][data-balloon-pos=left]:after{margin-right:10px}[aria-label][data-balloon-pos][data-balloon-pos=left]:before{width:0;height:0;border:5px solid transparent;border-left-color:var(--balloon-color)}[aria-label][data-balloon-pos][data-balloon-pos=right]:after,[aria-label][data-balloon-pos][data-balloon-pos=right]:before{left:100%;top:50%;transform:translate(calc(var(--balloon-move) * -1),-50%)}[aria-label][data-balloon-pos][data-balloon-pos=right]:after{margin-left:10px}[aria-label][data-balloon-pos][data-balloon-pos=right]:before{width:0;height:0;border:5px solid transparent;border-right-color:var(--balloon-color)}[aria-label][data-balloon-pos][data-balloon-length]:after{white-space:normal}[aria-label][data-balloon-pos][data-balloon-length=small]:after{width:80px}[aria-label][data-balloon-pos][data-balloon-length=medium]:after{width:150px}[aria-label][data-balloon-pos][data-balloon-length=large]:after{width:260px}[aria-label][data-balloon-pos][data-balloon-length=xlarge]:after{width:380px}@media screen and (max-width: 768px){[aria-label][data-balloon-pos][data-balloon-length=xlarge]:after{width:90vw}}[aria-label][data-balloon-pos][data-balloon-length=fit]:after{width:100%}.vp-back-to-top-button{border-width:0;background:transparent;cursor:pointer;position:fixed!important;bottom:64px;inset-inline-end:1rem;z-index:100;width:48px;height:48px;padding:8px;border-radius:50%;background:var(--vp-bg);color:var(--vp-tc);box-shadow:2px 2px 10px 4px var(--card-shadow);transition:background var(--vp-ct),color var(--vp-ct),box-shadow var(--vp-ct)}@media (max-width: 719px){.vp-back-to-top-button{width:36px;height:36px}}@media print{.vp-back-to-top-button{display:none}}.vp-back-to-top-button:hover{color:var(--vp-tcl)}.vp-back-to-top-button .back-to-top-icon{overflow:hidden;width:100%;border-radius:50%;fill:currentcolor}.vp-scroll-progress{position:absolute;right:-2px;bottom:-2px;width:52px;height:52px}@media (max-width: 719px){.vp-scroll-progress{width:40px;height:40px}}.vp-scroll-progress circle{opacity:.9;fill:none;stroke:var(--vp-tc);transform:rotate(-90deg);transform-origin:50% 50%;r:22;stroke-dasharray:0% 314.1593%;stroke-width:3px}@media (max-width: 719px){.vp-scroll-progress circle{r:18}}.fade-enter-active,.fade-leave-active{transition:opacity var(--vp-ct)}.fade-enter-from,.fade-leave-to{opacity:0}@media screen{.sr-only{position:absolute;overflow:hidden;clip:rect 0,0,0,0;width:1px;height:1px;margin:-1px;padding:0;border:0}}@media print{.sr-only{display:none}}.vp-catalog{margin-top:8px;margin-bottom:8px}.vp-catalog .font-icon{vertical-align:baseline;margin-inline-end:.25rem}.vp-catalog-main-title,.vp-catalog-child-title,.vp-catalog-sub-title{margin-top:calc(.5rem - var(--navbar-height, 3.6rem));margin-bottom:.5rem;padding-top:var(--navbar-height, 3.6rem);font-weight:500}.vp-catalog-main-title:first-child,.vp-catalog-child-title:first-child,.vp-catalog-sub-title:first-child{margin-bottom:.5rem}.vp-catalog-main-title{font-size:1.75rem}.vp-catalog-child-title{font-size:1.3rem}.vp-catalog-child-title.has-children{border-bottom:1px solid var(--vp-brc);transition:border-color var(--vp-ct)}.vp-catalog-sub-title{font-size:1.1rem}.vp-catalog-title{color:inherit;text-decoration:none}.vp-catalog-title:hover{color:var(--vp-tc)}.vp-child-catalogs{margin:0}.vp-child-catalogs::marker{color:var(--vp-clt)}.vp-sub-catalogs{display:flex;flex-wrap:wrap}.vp-sub-catalog{display:inline-block;margin:4px 8px;padding:4px 8px;border-radius:6px;background-color:var(--vp-bgl);line-height:1.5;overflow-wrap:break-word;transition:background-color var(--vp-ct),color var(--vp-ct)}.vp-sub-catalog:hover{background-color:var(--vp-tcl);color:var(--vp-bg);text-decoration:none!important}.vp-empty-catalog{font-size:1.25rem;text-align:center}:root{--external-link-icon-color: #aaa}.external-link-icon{position:relative;display:inline-block;color:var(--external-link-icon-color);vertical-align:middle;top:-1px}@media print{.external-link-icon{display:none}}.external-link-icon-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;-webkit-user-select:none;-moz-user-select:none;user-select:none}:root{--nprogress-color: #29d;--nprogress-z-index: 1031}#nprogress{pointer-events:none}#nprogress .bar{background:var(--nprogress-color);position:fixed;z-index:var(--nprogress-z-index);top:0;left:0;width:100%;height:2px}:root{--copy-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' height='20' width='20' stroke='rgba(128,128,128,1)' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2M9 5a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2M9 5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2'/%3E%3C/svg%3E");--copied-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' height='20' width='20' stroke='rgba(128,128,128,1)' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2M9 5a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2M9 5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2m-6 9 2 2 4-4'/%3E%3C/svg%3E")}div[class*=language-]>button.copy-code-button{border-width:0;background:transparent;position:absolute;outline:none;cursor:pointer}@media print{div[class*=language-]>button.copy-code-button{display:none}}div[class*=language-]>button.copy-code-button .copy-icon{background:currentcolor;-webkit-mask-image:var(--copy-icon);mask-image:var(--copy-icon);-webkit-mask-position:50%;mask-position:50%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:1em;mask-size:1em}div[class*=language-]>button.copy-code-button:not(.fancy){border-width:0;background:transparent;cursor:pointer;position:absolute;top:.5em;right:.5em;z-index:5;width:2.5rem;height:2.5rem;padding:0;border-radius:.5rem;opacity:0;transition:opacity .4s}div[class*=language-]>button.copy-code-button:not(.fancy):hover,div[class*=language-]>button.copy-code-button:not(.fancy).copied{background:var(--code-hl-bg-color, rgba(0, 0, 0, .66))}div[class*=language-]>button.copy-code-button:not(.fancy):focus,div[class*=language-]>button.copy-code-button:not(.fancy).copied{opacity:1}div[class*=language-]>button.copy-code-button:not(.fancy).copied:after{content:attr(data-copied);position:absolute;top:0;right:calc(100% + .25rem);display:block;height:1.25rem;padding:.625rem;border-radius:.5rem;background:var(--code-hl-bg-color, rgba(0, 0, 0, .66));color:var(--code-ln-color, #9e9e9e);font-weight:500;line-height:1.25rem;white-space:nowrap}div[class*=language-]>button.copy-code-button:not(.fancy) .copy-icon{width:1.25rem;height:1.25rem;padding:.625rem;color:var(--code-ln-color, #9e9e9e);font-size:1.25rem}div[class*=language-]>button.copy-code-button.fancy{right:-14px;bottom:-14px;z-index:5;width:2rem;height:2rem;padding:7px 8px;border-radius:50%;background:#339af0;color:#fff}@media (max-width: 419px){div[class*=language-]>button.copy-code-button.fancy{right:0;bottom:0;width:28px;height:28px;border-radius:50% 10% 0}}div[class*=language-]>button.copy-code-button.fancy:hover{background:#228be6}div[class*=language-]>button.copy-code-button.fancy .copy-icon{width:100%;height:100%;color:#fff;font-size:1.25rem}@media (max-width: 419px){div[class*=language-]>button.copy-code-button.fancy .copy-icon{position:relative;top:2px;left:2px}}div[class*=language-]>button.copy-code-button.copied .copy-icon{-webkit-mask-image:var(--copied-icon);mask-image:var(--copied-icon)}div[class*=language-]:hover:before{display:none}div[class*=language-]:hover>button.copy-code-button:not(.fancy){opacity:1}:root{--info-title-color: #193c47;--info-bg-color: #eef9fd;--info-border-color: #4cb3d4;--info-code-bg-color: rgb(76 179 212 / 10%);--note-title-color: #474748;--note-bg-color: #fdfdfe;--note-border-color: #ccc;--note-code-bg-color: rgb(212 213 216 / 20%);--tip-title-color: #003100;--tip-bg-color: #e6f6e6;--tip-border-color: #009400;--tip-code-bg-color: rgb(0 148 0 / 15%);--warning-title-color: #4d3800;--warning-bg-color: #fff8e6;--warning-border-color: #e6a700;--warning-code-bg-color: rgb(230 167 0 / 15%);--danger-title-color: #4b1113;--danger-bg-color: #ffebec;--danger-border-color: #e13238;--danger-code-bg-color: rgb(225 50 56 / 15%);--detail-bg-color: #eee;--detail-text-color: inherit;--detail-code-bg-color: rgb(127 127 127 / 15%)}html[data-theme=dark]{--info-title-color: #eef9fd;--info-bg-color: #193c47;--note-title-color: #fdfdfe;--note-bg-color: #474748;--tip-title-color: #e6f6e6;--tip-bg-color: #003100;--warning-title-color: #fff8e6;--warning-bg-color: #4d3800;--danger-title-color: #ffebec;--danger-bg-color: #4b1113;--detail-bg-color: #333;--detail-text-color: #a8a8a8}.hint-container{position:relative;transition:background var(--vp-ct),border-color var(--vp-ct),color var(--vp-ct)}@media print{.hint-container{page-break-inside:avoid}}.hint-container .hint-container-title{position:relative;font-weight:600;line-height:1.25}.hint-container.info,.hint-container.note,.hint-container.tip,.hint-container.warning,.hint-container.danger{margin:1rem 0;padding:.25rem 1rem;border-inline-start-width:.3rem;border-inline-start-style:solid;border-radius:.5rem;color:inherit}@media (max-width: 419px){.hint-container.info,.hint-container.note,.hint-container.tip,.hint-container.warning,.hint-container.danger{margin-inline:-.75rem}}.hint-container.info .hint-container-title,.hint-container.note .hint-container-title,.hint-container.tip .hint-container-title,.hint-container.warning .hint-container-title,.hint-container.danger .hint-container-title{padding-inline-start:1.75rem}@media print{.hint-container.info .hint-container-title,.hint-container.note .hint-container-title,.hint-container.tip .hint-container-title,.hint-container.warning .hint-container-title,.hint-container.danger .hint-container-title{padding-inline-start:0}}.hint-container.info .hint-container-title:before,.hint-container.note .hint-container-title:before,.hint-container.tip .hint-container-title:before,.hint-container.warning .hint-container-title:before,.hint-container.danger .hint-container-title:before{content:" ";position:absolute;top:calc(50% - .6125em);inset-inline-start:0;width:1.25em;height:1.25em;background-position:left;background-repeat:no-repeat}@media print{.hint-container.info .hint-container-title:before,.hint-container.note .hint-container-title:before,.hint-container.tip .hint-container-title:before,.hint-container.warning .hint-container-title:before,.hint-container.danger .hint-container-title:before{display:none}}.hint-container.info p,.hint-container.note p,.hint-container.tip p,.hint-container.warning p,.hint-container.danger p{line-height:1.5}.hint-container.info a,.hint-container.note a,.hint-container.tip a,.hint-container.warning a,.hint-container.danger a{color:var(--vp-tc)}.hint-container.info{border-color:var(--info-border-color);background:var(--info-bg-color)}.hint-container.info>.hint-container-title{color:var(--info-title-color)}.hint-container.info>.hint-container-title:before{background-image:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-1-11v6h2v-6h-2zm0-4v2h2V7h-2z' fill='%234cb3d4'/%3E%3C/svg%3E")}.hint-container.info code{background:var(--info-code-bg-color)}.hint-container.note{border-color:var(--note-border-color);background:var(--note-bg-color)}.hint-container.note>.hint-container-title{color:var(--note-title-color)}.hint-container.note>.hint-container-title:before{background-image:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-1-11v6h2v-6h-2zm0-4v2h2V7h-2z' fill='%23ccc'/%3E%3C/svg%3E")}.hint-container.note code{background:var(--note-code-bg-color)}.hint-container.tip{border-color:var(--tip-border-color);background:var(--tip-bg-color)}.hint-container.tip>.hint-container-title{color:var(--tip-title-color)}.hint-container.tip>.hint-container-title:before{background-image:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23009400' d='M7.941 18c-.297-1.273-1.637-2.314-2.187-3a8 8 0 1 1 12.49.002c-.55.685-1.888 1.726-2.185 2.998H7.94zM16 20v1a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2v-1h8zm-3-9.995V6l-4.5 6.005H11v4l4.5-6H13z'/%3E%3C/svg%3E")}.hint-container.tip code{background:var(--tip-code-bg-color)}.hint-container.warning{border-color:var(--warning-border-color);background:var(--warning-bg-color)}.hint-container.warning>.hint-container-title{color:var(--warning-title-color)}.hint-container.warning>.hint-container-title:before{background-image:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath d='M576.286 752.57v-95.425q0-7.031-4.771-11.802t-11.3-4.772h-96.43q-6.528 0-11.3 4.772t-4.77 11.802v95.424q0 7.031 4.77 11.803t11.3 4.77h96.43q6.528 0 11.3-4.77t4.77-11.803zm-1.005-187.836 9.04-230.524q0-6.027-5.022-9.543-6.529-5.524-12.053-5.524H456.754q-5.524 0-12.053 5.524-5.022 3.516-5.022 10.547l8.538 229.52q0 5.023 5.022 8.287t12.053 3.265h92.913q7.032 0 11.803-3.265t5.273-8.287zM568.25 95.65l385.714 707.142q17.578 31.641-1.004 63.282-8.538 14.564-23.354 23.102t-31.892 8.538H126.286q-17.076 0-31.892-8.538T71.04 866.074q-18.582-31.641-1.004-63.282L455.75 95.65q8.538-15.57 23.605-24.61T512 62t32.645 9.04 23.605 24.61z' fill='%23e6a700'/%3E%3C/svg%3E")}.hint-container.warning code{background:var(--warning-code-bg-color)}.hint-container.danger{border-color:var(--danger-border-color);background:var(--danger-bg-color)}.hint-container.danger>.hint-container-title{color:var(--danger-title-color)}.hint-container.danger>.hint-container-title:before{background-image:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c5.523 0 10 4.477 10 10v3.764a2 2 0 0 1-1.106 1.789L18 19v1a3 3 0 0 1-2.824 2.995L14.95 23a2.5 2.5 0 0 0 .044-.33L15 22.5V22a2 2 0 0 0-1.85-1.995L13 20h-2a2 2 0 0 0-1.995 1.85L9 22v.5c0 .171.017.339.05.5H9a3 3 0 0 1-3-3v-1l-2.894-1.447A2 2 0 0 1 2 15.763V12C2 6.477 6.477 2 12 2zm-4 9a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm8 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4z' fill='%23e13238'/%3E%3C/svg%3E")}.hint-container.danger code{background:var(--danger-code-bg-color)}.hint-container.details{position:relative;display:block;margin:1.6em 0;padding:1.5rem;border-radius:.5rem;background:var(--detail-bg-color);color:var(--detail-text-color);transition:background var(--vp-tt),color var(--vp-tt)}@media print{.hint-container.details{display:none}}@media (max-width: 419px){.hint-container.details{margin-inline:-.75rem}}.hint-container.details h4{margin-top:0}.hint-container.details figure:last-child,.hint-container.details p:last-child{margin-bottom:0;padding-bottom:0}.hint-container.details a{color:var(--vp-tc)}.hint-container.details code{background:var(--detail-code-bg-color)}.hint-container.details summary{position:relative;margin:-1.5rem;padding-block:1.5rem;padding-inline:4rem 1.5rem;list-style:none;cursor:pointer}.hint-container.details summary::-webkit-details-marker,.hint-container.details summary::marker{color:transparent;font-size:0}.hint-container.details summary:before,.hint-container.details summary:after{content:" ";position:absolute;top:calc(50% - .75rem);inset-inline-start:1.5rem;width:1.5rem;height:1.5rem}@media print{.hint-container.details summary:before,.hint-container.details summary:after{display:block}}.hint-container.details summary:before{border-radius:50%;background:#ccc;transition:background var(--vp-ct),transform var(--vp-tt)}html[data-theme=dark] .hint-container.details summary:before{background:#555}.hint-container.details summary:after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='rgba(0,0,0,0.5)' d='M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z'/%3E%3C/svg%3E");line-height:normal;transition:transform var(--vp-tt);transform:rotate(90deg)}html[data-theme=dark] .hint-container.details summary:after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='rgba(255,255,255,0.5)' d='M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z'/%3E%3C/svg%3E")}.hint-container.details[open]>summary{margin-bottom:.5em}.hint-container.details[open]>summary:after{transform:rotate(180deg)}.theme-hope-content figure{position:relative;display:flex;flex-direction:column;width:auto;margin:1rem auto;text-align:center;transition:transform var(--vp-tt)}.theme-hope-content figure img{overflow:hidden;margin:0 auto;border-radius:8px}.theme-hope-content figure img[tabindex]:hover,.theme-hope-content figure img[tabindex]:focus{box-shadow:2px 2px 10px 0 var(--card-shadow)}@media print{.theme-hope-content figure>a[href^="http://"]:after,.theme-hope-content figure>a[href^="https://"]:after{content:""}}.theme-hope-content figure>a .external-link-icon{display:none}.theme-hope-content figure figcaption{display:inline-block;margin:6px auto;font-size:.8rem}html[data-theme=light] img[data-mode=darkmode-only],html[data-theme=dark] img[data-mode=lightmode-only]{display:none!important}.mermaid-preview .node rect,.mermaid-preview .clusters rect,.mermaid-preview rect.note,.mermaid-preview .actor,.mermaid-wrapper .node rect,.mermaid-wrapper .clusters rect,.mermaid-wrapper rect.note,.mermaid-wrapper .actor{rx:8;ry:8}.mermaid-wrapper{position:relative;overflow-x:auto;padding:.6em .4em;text-align:center;transition:all 1s}@media (max-width: 419px){.mermaid-wrapper{margin:0 -1.5rem;padding:.6em 0}}.mermaid-loading{color:var(--vp-tc)}@media print{.mermaid-content{page-break-inside:avoid}}.mermaid-actions{text-align:end}.mermaid-preview{position:fixed;top:0;right:0;bottom:0;left:0;z-index:800;display:flex;align-items:center;justify-content:center;background-color:#fffc}html[data-theme=dark] .mermaid-preview{background-color:#000c}.mermaid-preview svg{max-width:100%;max-height:100%}.preview-button,.download-button{border-width:0;background:transparent;cursor:pointer;width:2rem;height:2rem;padding:.25rem;color:var(--dark-grey)}@media (max-width: 719px){.preview-button,.download-button{width:1.5rem;height:1.5rem}}.preview-button:hover,.download-button:hover{color:var(--vp-tc)}.preview-button svg,.download-button svg{width:100%;height:100%}:root{--tab-bg-color: var(--vp-bg);--tab-nav-text-color: var(--vp-c);--tab-nav-bg-color: #e0e0e0;--tab-nav-hover-color: #eee}html[data-theme=dark]{--tab-nav-bg-color: #34343f;--tab-nav-hover-color: #2d2d38}.vp-tabs{margin:1.5rem 0;border:2px solid var(--vp-brc);border-radius:8px}@media (max-width: 419px){.theme-hope-content>.vp-tabs{margin-inline:-1.5rem;border-radius:0}}.vp-tabs-nav{overflow-x:auto;margin:0;padding:0;border-radius:8px 8px 0 0;background:var(--tab-nav-bg-color);list-style:none;white-space:nowrap;transition:background var(--vp-ct)}@media print{.vp-tabs-nav{display:none}}@media (max-width: 419px){.vp-tabs-nav{border-radius:0}}.vp-tab-nav{border-width:0;position:relative;min-width:4rem;margin:0;padding:.5em 1em;border-radius:8px 8px 0 0;background:transparent;color:var(--tab-nav-text-color);font-weight:600;font-size:.85em;line-height:1.75;cursor:pointer;transition:background var(--vp-ct),color var(--vp-ct)}.vp-tab-nav:hover{background:var(--tab-nav-hover-color)}.vp-tab-nav:before,.vp-tab-nav:after{content:" ";position:absolute;bottom:0;z-index:1;width:8px;height:8px}.vp-tab-nav:before{right:100%}.vp-tab-nav:after{left:100%}.vp-tab-nav.active{background:var(--tab-bg-color)}.vp-tab-nav.active:before{background:radial-gradient(16px at left top,transparent 50%,var(--tab-bg-color) 50%)}.vp-tab-nav.active:after{background:radial-gradient(16px at right top,transparent 50%,var(--tab-bg-color) 50%)}.vp-tab-nav:first-child:before{display:none}.vp-tab{display:none;padding:1rem .75rem;background:var(--tab-bg-color);transition:background var(--vp-ct)}.vp-tab.active{display:block}/*! PhotoSwipe main CSS by Dmytro Semenov | photoswipe.com */.pswp{--pswp-bg: #000;--pswp-placeholder-bg: #222;--pswp-root-z-index: 100000;--pswp-preloader-color: rgba(79, 79, 79, .4);--pswp-preloader-color-secondary: rgba(255, 255, 255, .9);--pswp-icon-color: #fff;--pswp-icon-color-secondary: #4f4f4f;--pswp-icon-stroke-color: #4f4f4f;--pswp-icon-stroke-width: 2px;--pswp-error-text-color: var(--pswp-icon-color)}.pswp{position:fixed;top:0;left:0;width:100%;height:100%;z-index:var(--pswp-root-z-index);display:none;touch-action:none;outline:0;opacity:.003;contain:layout style size;-webkit-tap-highlight-color:rgba(0,0,0,0)}.pswp:focus{outline:0}.pswp *{box-sizing:border-box}.pswp img{max-width:none}.pswp--open{display:block}.pswp,.pswp__bg{transform:translateZ(0);will-change:opacity}.pswp__bg{opacity:.005;background:var(--pswp-bg)}.pswp,.pswp__scroll-wrap{overflow:hidden}.pswp__scroll-wrap,.pswp__bg,.pswp__container,.pswp__item,.pswp__content,.pswp__img,.pswp__zoom-wrap{position:absolute;top:0;left:0;width:100%;height:100%}.pswp__img,.pswp__zoom-wrap{width:auto;height:auto}.pswp--click-to-zoom.pswp--zoom-allowed .pswp__img{cursor:zoom-in}.pswp--click-to-zoom.pswp--zoomed-in .pswp__img{cursor:move;cursor:grab}.pswp--click-to-zoom.pswp--zoomed-in .pswp__img:active{cursor:grabbing}.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img,.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img:active,.pswp__img{cursor:zoom-out}.pswp__container,.pswp__img,.pswp__button,.pswp__counter{-webkit-user-select:none;-moz-user-select:none;user-select:none}.pswp__item{z-index:1;overflow:hidden}.pswp__hidden{display:none!important}.pswp__content{pointer-events:none}.pswp__content>*{pointer-events:auto}.pswp__error-msg-container{display:grid}.pswp__error-msg{margin:auto;font-size:1em;line-height:1;color:var(--pswp-error-text-color)}.pswp .pswp__hide-on-close{opacity:.005;will-change:opacity;transition:opacity var(--pswp-transition-duration) cubic-bezier(.4,0,.22,1);z-index:10;pointer-events:none}.pswp--ui-visible .pswp__hide-on-close{opacity:1;pointer-events:auto}.pswp__button{position:relative;display:block;width:50px;height:60px;padding:0;margin:0;overflow:hidden;cursor:pointer;background:none;border:0;box-shadow:none;opacity:.85;-webkit-appearance:none;-webkit-touch-callout:none}.pswp__button:hover,.pswp__button:active,.pswp__button:focus{transition:none;padding:0;background:none;border:0;box-shadow:none;opacity:1}.pswp__button:disabled{opacity:.3;cursor:auto}.pswp__icn{fill:var(--pswp-icon-color);color:var(--pswp-icon-color-secondary)}.pswp__icn{position:absolute;top:14px;left:9px;width:32px;height:32px;overflow:hidden;pointer-events:none}.pswp__icn-shadow{stroke:var(--pswp-icon-stroke-color);stroke-width:var(--pswp-icon-stroke-width);fill:none}.pswp__icn:focus{outline:0}div.pswp__img--placeholder,.pswp__img--with-bg{background:var(--pswp-placeholder-bg)}.pswp__top-bar{position:absolute;left:0;top:0;width:100%;height:60px;display:flex;flex-direction:row;justify-content:flex-end;z-index:10;pointer-events:none!important}.pswp__top-bar>*{pointer-events:auto;will-change:opacity}.pswp__button--close{margin-right:6px}.pswp__button--arrow{position:absolute;width:75px;height:100px;top:50%;margin-top:-50px}.pswp__button--arrow:disabled{display:none;cursor:default}.pswp__button--arrow .pswp__icn{top:50%;margin-top:-30px;width:60px;height:60px;background:none;border-radius:0}.pswp--one-slide .pswp__button--arrow{display:none}.pswp--touch .pswp__button--arrow{visibility:hidden}.pswp--has_mouse .pswp__button--arrow{visibility:visible}.pswp__button--arrow--prev{right:auto;left:0}.pswp__button--arrow--next{right:0}.pswp__button--arrow--next .pswp__icn{left:auto;right:14px;transform:scaleX(-1)}.pswp__button--zoom{display:none}.pswp--zoom-allowed .pswp__button--zoom{display:block}.pswp--zoomed-in .pswp__zoom-icn-bar-v{display:none}.pswp__preloader{position:relative;overflow:hidden;width:50px;height:60px;margin-right:auto}.pswp__preloader .pswp__icn{opacity:0;transition:opacity .2s linear;animation:pswp-clockwise .6s linear infinite}.pswp__preloader--active .pswp__icn{opacity:.85}@keyframes pswp-clockwise{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.pswp__counter{height:30px;margin-top:15px;margin-inline-start:20px;font-size:14px;line-height:30px;color:var(--pswp-icon-color);text-shadow:1px 1px 3px var(--pswp-icon-color-secondary);opacity:.85}.pswp--one-slide .pswp__counter{display:none}.photo-swipe-loading{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center}.photo-swipe-bullets-indicator{position:absolute;bottom:30px;left:50%;display:flex;flex-direction:row;align-items:center;transform:translate(-50%)}.photo-swipe-bullet{width:12px;height:6px;margin:0 5px;border-radius:3px;background:#fff;transition:width var(--vp-tt),color var(--vp-ct)}.photo-swipe-bullet.active{width:30px;background:var(--vp-tc)}:root{--navbar-bg-color: var(--bg-color-float-blur);--sidebar-bg-color: var(--bg-color-blur)}html[data-theme=dark]{--navbar-bg-color: var(--bg-color-blur);--sidebar-bg-color: var(--bg-color-blur)}#app{--code-hl-bg-color: var(--code-highlight-line-color);--code-ln-color: var(--code-line-color);--code-ln-wrapper-width: var(--line-numbers-width);--code-tabs-nav-text-color: var(--code-color);--code-tabs-nav-bg-color: var(--code-border-color);--code-tabs-nav-hover-color: var(--code-highlight-line-color);--sidebar-space: var(--sidebar-width)}@media (max-width: 959px){#app{--navbar-height: var(--navbar-mobile-height);--navbar-vertical-padding: var(--navbar-mobile-vertical-padding);--navbar-horizontal-padding: var(--navbar-mobile-horizontal-padding);--sidebar-width: var(--sidebar-mobile-width)}}@media (min-width: 1440px){#app{--sidebar-space: clamp( var(--sidebar-width), max(0px, calc((100vw - var(--content-width)) / 2 - 2rem)), 100vw )}}.DocSearch-Button,.DocSearch{--docsearch-primary-color: var(--vp-tc);--docsearch-text-color: var(--vp-c);--docsearch-highlight-color: var(--vp-tc);--docsearch-muted-color: var(--light-grey);--docsearch-container-background: rgb(9 10 17 / 80%);--docsearch-modal-background: var(--bg-color-float);--docsearch-searchbox-background: var(--bg-color-secondary);--docsearch-searchbox-focus-background: var(--vp-bg);--docsearch-searchbox-shadow: inset 0 0 0 2px var(--vp-tc);--docsearch-hit-color: var(--vp-cl);--docsearch-hit-active-color: var(--vp-bg);--docsearch-hit-background: var(--vp-bg);--docsearch-hit-shadow: 0 1px 3px 0 var(--border-color);--docsearch-footer-background: var(--vp-bg)}html[data-theme=dark] .DocSearch-Button,html[data-theme=dark] .DocSearch{--docsearch-logo-color: var(--vp-c);--docsearch-modal-shadow: inset 1px 1px 0 0 #2c2e40, 0 3px 8px 0 #000309;--docsearch-key-shadow: inset 0 -2px 0 0 #282d55, inset 0 0 1px 1px #51577d, 0 2px 2px 0 rgb(3 4 9 / 30%);--docsearch-key-gradient: linear-gradient(-225deg, #444950, #1c1e21);--docsearch-footer-shadow: inset 0 1px 0 0 rgb(73 76 106 / 50%), 0 -4px 8px 0 rgb(0 0 0 / 20%)}#nprogress{--nprogress-color: var(--vp-tc)}.search-box{--search-bg-color: var(--vp-bg);--search-accent-color: var(--vp-tc);--search-text-color: var(--vp-c);--search-border-color: var(--border-color);--search-item-text-color: var(--vp-clt);--search-item-focus-bg-color: var(--bg-color-secondary)}.external-link-icon{--external-link-icon-color: var(--light-grey)}html,body{margin:0;padding:0;background:#fff}html{font-size:16px;font-display:optional;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent}@media print{html{font-size:12pt}}body{min-height:100vh;color:#2c3e50}a{color:#3eaf7c;font-weight:500;text-decoration:none;overflow-wrap:break-word}kbd{display:inline-block;min-width:1em;margin-inline:.125rem;padding:.25em;border:1px solid #eee;border-radius:.25em;box-shadow:1px 1px 4px #00000026;line-height:1;letter-spacing:-.1em;text-align:center}code{margin:0;padding:.2rem .4rem;border-radius:5px;background:rgba(127,127,127,.12);font-size:.85em;overflow-wrap:break-word}table code{padding:.1rem .4rem}p a code{color:#3eaf7c;font-weight:400}strong{font-weight:600}h1,h2,h3,h4,h5,h6{font-weight:500;line-height:1.25;overflow-wrap:break-word}h1:hover .header-anchor,h2:hover .header-anchor,h3:hover .header-anchor,h4:hover .header-anchor,h5:hover .header-anchor,h6:hover .header-anchor{opacity:1}h1{font-size:2rem}h2{padding-bottom:.3rem;border-bottom:1px solid #eaecef;font-size:1.65rem}h3{font-size:1.35rem}h4{font-size:1.15rem}h5{font-size:1.05rem}h6{font-size:1rem}a.header-anchor{float:left;margin-top:.125em;margin-inline-start:-.87em;padding-inline-end:.23em;font-size:.85em;opacity:0;transition:opacity .2s}@media print{a.header-anchor{display:none!important}}a.header-anchor:hover{text-decoration:none}a.header-anchor:focus-visible{opacity:1}p,ul,ol{line-height:1.6;overflow-wrap:break-word}@media print{p,ul,ol{line-height:1.5}}ul,ol{padding-inline-start:1.2em}blockquote{margin:1rem 0;padding:.25rem 0 .25rem 1rem;border-inline-start:.2rem solid #ddd;color:#666;font-size:1rem;overflow-wrap:break-word}blockquote>p{margin:0}hr{border:0;border-top:1px solid #eaecef}table{display:block;overflow-x:auto;margin:1rem 0;border-collapse:collapse}tr:nth-child(2n){background:#f6f8fa}th,td{padding:.6em 1em;border:1px solid #dfe2e5}pre{direction:ltr}@page{margin:2cm;font-size:12pt;size:a4}@media print{*,:after,:before{box-shadow:none!important;text-shadow:none!important}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}a{color:inherit;font-weight:inherit!important;font-size:inherit!important;text-decoration:underline}a[href^="http://"]:after,a[href^="https://"]:after{content:" (" attr(href) ") "}abbr[title]:after{content:" (" attr(title) ")"}pre{border:1px solid #eee;white-space:pre-wrap!important}pre>code{white-space:pre-wrap!important}blockquote{border-inline-start:.2rem solid #ddd;color:inherit}blockquote,pre{orphans:5;widows:5}img,tr,canvas{page-break-inside:avoid}}@font-face{font-weight:400;font-style:normal;font-family:Crimson;src:url(data:font/truetype;charset=utf-8;base64,AAEAAAANAIAAAwBQRkZUTYr5mwEAAAyMAAAAHEdERUYAKQATAAAMbAAAAB5PUy8yVsJ0MgAAAVgAAABgY21hcBiKDzgAAAHcAAABWGdhc3D//wADAAAMZAAAAAhnbHlmr+DBdQAAA1AAAAdsaGVhZBZwt+8AAADcAAAANmhoZWEFawEuAAABFAAAACRobXR4BksA9gAAAbgAAAAibG9jYQlsC24AAAM0AAAAHG1heHAAEQBZAAABOAAAACBuYW1lLaFDVAAACrwAAAFrcG9zdAC1AHoAAAwoAAAAPAABAAAAAQAAqBd2H18PPPUACwQAAAAAANqqufwAAAAA2qq5/AAb/9wB4QMeAAAACAACAAAAAAAAAAEAAAMs/ywAXAH9AAAAAAHhAAEAAAAAAAAAAAAAAAAAAAAEAAEAAAANAFkAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAH1AZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAIABgMAAAAAAAAAAAABEAAAAAAAAAAAAAAAUGZFZADAADAAOQMs/ywAXAMsANQAAAABAAAAAAMYAAAAAAAgAAEBpwAfAAAAAAFVAAAB/QAfAH0ALQA+ABsAPgAyACgAPgAxAAAAAAADAAAAAwAAABwAAQAAAAAAUgADAAEAAAAcAAQANgAAAAQABAABAAAAOf//AAAAL///AAAAAQAEAAAAAAADAAQABQAGAAcACAAJAAoACwAMAAABBgAAAQAAAAAAAAABAgAAAAIAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAwQFBgcICQoLDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACYAJgAmAGIAwAEeAZIBzgJAApYC2gNiA7YAAQAf/9wBhwMeABIAAAEGBwYHATAXFjM2NzY3ASYnJjcBgxwLCgH+zgMECxIKCgIBLgEDAwMDHhQFBgP85wMEAQgJBgMOAwMDEwAAAAIAH//9Ad0CkAAQACEAABMWFxYXNjc2NzQnJicGBwYHNyY3NjcWFxYXFAcGByYnJjcfATo6amo7OQE5OmxrOjkBXQIlJEE5IyIBIyJEOSQjAgFOkV5eBAReXoqJXl4EBF5eggJ0UlEDA09Qe3xVVgMDU1OEAAAAAAEAff/9AYACkQA+AAA3FAcGBwYHBiMGFQYXNjc2MzIXFhc2JzQnIicmJyY1JjURNjc2MSYnJicjBgcGBwYVFBUUFxYXNjc2NzIXFhXkAQEEBRgYDAMBBB4ZGhweGxofBAEDDBgZBQQBAQMEAQIDBAIFNTZCAgMDBA0XFw0LBQV3GBMVDAgEBAUKCgUCAQICAQIFCgoFBAQIDBUTGAGnLxkbBAYFAQIZGh4BAgECBQUEAwUHBwEICRYAAAAAAQAtAAAB0QKRADoAADcGFxYXITY3NjcmJyYjIgcGBwYHBisBNjc2NzY3NjUmJyYnBgcGBxQXFhc2NzY3FhcWFxYHBgcGBwYHLgEEAwMBYwURERADBwYFBAMDAg8VEx/LJkBAOhsQDwIxMkxSMjIHCAYGCSYmPTIfHwEBCgoeLkJBQg8EBQQCETAwKQICAgEBBCgUEylJSUYhJicsRDIzAgY1NRoEBQYBEyEhAwEjIjYlJCQtQlBQSAAAAAABAD7/+wG+ApEASgAANwYXFhcWFxYzNjc2NyYnJic2NzY3JicmIwYHBgcUFxYXNjc2NxYXFhcGBwYHBgcUFRQXNjc2NxYXFhcGBwYnIicmJyYnJiciBwYXPwEIBwUaHB0VZU5NBAMvLi8eIB4DAywsKzwrKxgEAwUIHR4wLRscAQMvLz8BAQYKEhEQNSYmAgImJSsWExQPCw0NFREMDQE7DgsLBQwFBgE8PWpMKSoGECQkMkAiIQIdHyUHBwcBCRscAwEbGSpCIyUOAgMCAwwIAwUEAQEoKD9XJSQBBQYODg8PAQ0NFQAAAgAb//oB4QKTACIAJQAANxQXFhchFRQXFjMyNzYjNTM2NzY1NCcmJyMRNCcmIwYHBgcBExEbAgMFASEJCRIdCAkBRgIBAQUEBTwFAwgHCQkG/vjmxgUGBgOwBQIBAwKzAgQDCBAMDQEBlAYGBgEICQf+cwEs/tQAAQA+//sBvgKTAEoAADcGFxYXFhcWMzY3NjcmJyYnIgcGBzY3NjczMjc2NzY3NjU0JyYnBgcGByMGBwYHFBcWMzY3NjMWFxYHBgcGJyInJicmJyYnIgcGFz8BCAcFGhwdFWVOTQQBMjJbFx8gFwoJCQlWKB0dFQ4JCAQDBQMdHSKXCREQEgMCBA4bGhNYJyUBAiYlKxYTFA8LDQ0VEQwNATsOCwsFDAUGATw9akU2NwMFBggrMC8uAgICExcZBgQCAgMBAwQBMVNUWAUFBAYFBAMxMTNZIyQBBQYODg8PAQ0NFQAAAgAy//oBzQKXACAAMwAANxQXFhc2NzY3NicmJyIHBgc2NzY3NCcmJwYHBgcGBwYXNyY3Njc2FxYXFgcGBwYHJicmNzM1NV5aOTsCAioqahoiIRsnWFhFAwIHQ0tMOTAZGQFbBAQaGxkXRB8fAQEfIDE9Hh4E511FRwQDPT1ZPEJBBQwLF4Y9PRMGCwwBEiwsPDZFRkkTHyAbCAcBAjAwREYsLQEFREVQAAAAAAEAKP/7AdUCiwApAAATFhcWMzI3Njc2NzYzIQYHBgcWFxYzMjcBNjc2NzQnJiMiBwYjIQYHBgcoAwYHAwYDAwELEBEdAQUJYWJXAQ8PDgcDAQ4LCQgBAQEEBhUVFv7JBgsNDAH6DQMCAQEFKRITFMjHjQcFBgMCPxYSEwoEAgMBAhkrKiAAAAADAD7/9wG/ApIAKABBAFgAADcGFxYXNjc2NyYnJicmJzQ3Njc2NyYnJiMGBwYHFhcWFxYVFAcGBwYHNyY3Njc2MzIzMhcyFxYXFhcGBwYHIicmNxMmNzY3FhcWFRQHBgcGByIjIicmJyY3PwE1M1ZQODgDAykpMQIBAyYlJQMCMC9HRjExAgIiIiMCAiMvLwNTBBQTKgEBAQECAQIBEjU1CAEdHjMrISICGAMYGSYvGxoTEx8CAQIBBAMfJCQBoU8tLQECMjFPOC4uGwIBAgEWJiU7SCYoAjEwQzopKhMBAgECEykpQAQsIiEbAQEBBywsQjUeHQEiI0QBZSMhIAECJiYvKh8gFAEBAhAfIEYAAAIAMf/6AcsClwAgADMAABMGFxYXMjc2NwYHBgcUFxYXNjc2NzY3NjUmJyYnBgcGBzcmNzY3FhcWFRQHBgcGJyYnJjc0AyopahoiIRsoV1hFAwIHQ0tMODEZGQE2NF5ZOjoBWgMfHzE9Hh4EGhoaF0QeHwUBy0dBQgUMCxeFPj0SBwsLAREsLD01RkVPV0dFBQQ8PU8UPCwtAQVFRUklIRsHCAECMDBPAAAADACWAAEAAAAAAAEABwAQAAEAAAAAAAIABwAoAAEAAAAAAAMABwBAAAEAAAAAAAQABwBYAAEAAAAAAAUAHgCeAAEAAAAAAAYABwDNAAMAAQQJAAEADgAAAAMAAQQJAAIADgAYAAMAAQQJAAMADgAwAAMAAQQJAAQADgBIAAMAAQQJAAUAPABgAAMAAQQJAAYADgC9AEMAcgBpAG0AcwBvAG4AAENyaW1zb24AAEMAcgBpAG0AcwBvAG4AAENyaW1zb24AAEMAcgBpAG0AcwBvAG4AAENyaW1zb24AAEMAcgBpAG0AcwBvAG4AAENyaW1zb24AAFYAZQByAHMAaQBvAG4AIAAxAC4AMAA7ACAARgBvAG4AdABFAGQAaQB0AG8AcgAgACgAdgAxAC4AMAApAABWZXJzaW9uIDEuMDsgRm9udEVkaXRvciAodjEuMCkAAEMAcgBpAG0AcwBvAG4AAENyaW1zb24AAAACAAAAAAAAADIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA0AAAABAAIAEwAUABUAFgAXABgAGQAaABsAHAAAAAH//wACAAEAAAAMAAAAFgAAAAIAAQADAAwAAQAEAAAAAgAAAAAAAAABAAAAANWkJwgAAAAA2qq5/AAAAADaqrn8) format("truetype")}html,body{background:var(--bg-color);transition:background var(--color-transition)}:root{color-scheme:light}html[data-theme=dark]{color-scheme:dark}body{color:var(--text-color);font-family:var(--font-family)}@media (min-width: 1440px){body{font-size:17px}}a{color:var(--theme-color)}kbd{border-color:var(--border-color-dark);background:var(--bg-color-secondary);font-family:var(--font-family-mono)}code{font-family:var(--font-family-mono);transition:background var(--color-transition),color var(--color-transition)}html[data-theme=dark] code{background:#333}p a code{color:var(--theme-color)}blockquote{border-color:#eee;color:#666;transition:border-color var(--color-transition),color var(--color-transition)}html[data-theme=dark] blockquote{border-color:#333}h1,h2,h3,h4,h5,h6{font-family:var(--font-family-heading)}@media (max-width: 419px){h1{font-size:1.9rem}}h2{border-color:var(--border-color);transition:border-bottom-color var(--color-transition)}hr{border-color:var(--border-color);transition:border-top-color var(--color-transition)}tr:nth-child(2n){background:var(--bg-color-secondary)}th,td{border-color:var(--border-color-dark)}@media print{@page{--text-color: #000 !important;--bg-color: #fff !important}div[class*=language-]{position:relative!important}}.theme-hope-content:not(.custom)>*:first-child{margin-top:0}.vp-breadcrumb{max-width:var(--content-width, 740px);margin-inline:auto;padding-inline:2.5rem;position:relative;z-index:2;padding-top:1rem;font-size:15px}@media (max-width: 959px){.vp-breadcrumb{padding-inline:1.5rem}}@media print{.vp-breadcrumb{max-width:unset}}@media (max-width: 959px){.vp-breadcrumb{font-size:14px}}@media (max-width: 419px){.vp-breadcrumb{padding-top:.5rem;font-size:12.8px}}@media print{.vp-breadcrumb{display:none}}.vp-breadcrumb .icon{margin-inline-end:.25em}.vp-breadcrumb a{display:inline-block;padding:0 .5em}.vp-breadcrumb a:before{position:relative;bottom:.125rem;margin-inline-end:.25em}.vp-breadcrumb a:hover{color:var(--theme-color)}.vp-breadcrumb ol{margin:0;padding-inline-start:0;list-style:none}.vp-breadcrumb li{display:inline-block;line-height:1.5}.vp-breadcrumb li:first-child a{padding-inline-start:0}.vp-breadcrumb li:last-child a{padding-inline-end:0}.vp-breadcrumb li.is-active a{color:var(--light-grey);cursor:default;pointer-events:none}.vp-breadcrumb li+li:before{content:"/";color:var(--light-grey)}.toggle-sidebar-wrapper{position:fixed;top:var(--navbar-height);bottom:0;inset-inline-start:var(--sidebar-space);z-index:100;display:flex;align-items:center;justify-content:center;font-size:2rem;transition:inset-inline-start var(--transform-transition)}@media (max-width: 719px){.toggle-sidebar-wrapper{display:none}}@media (min-width: 1440px){.toggle-sidebar-wrapper{display:none}}.toggle-sidebar-wrapper:hover{background:rgba(127,127,127,.05);cursor:pointer}.toggle-sidebar-wrapper .arrow{display:inline-block;vertical-align:middle;width:1em;height:1em;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='rgba(0,0,0,0.5)' d='M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z'/%3E%3C/svg%3E");line-height:normal;transition:all .3s}html[data-theme=dark] .toggle-sidebar-wrapper .arrow{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='rgba(255,255,255,0.5)' d='M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z'/%3E%3C/svg%3E")}.toggle-sidebar-wrapper .arrow.down{transform:rotate(180deg)}html[dir=rtl] .toggle-sidebar-wrapper .arrow.down{transform:rotate(-180deg)}.toggle-sidebar-wrapper .arrow.end{transform:rotate(90deg)}html[dir=rtl] .toggle-sidebar-wrapper .arrow.end,.toggle-sidebar-wrapper .arrow.start{transform:rotate(-90deg)}html[dir=rtl] .toggle-sidebar-wrapper .arrow.start{transform:rotate(90deg)}.theme-container{display:flex;flex-direction:column;justify-content:space-between;min-height:100vh}.theme-container .vp-page{padding-top:var(--navbar-height);padding-inline-start:calc(var(--sidebar-space) + 2rem)}@media (max-width: 719px){.theme-container .vp-page{padding-inline:0}}@media (min-width: 1440px){.theme-container .vp-page{padding-inline-end:calc(100vw - var(--content-width) - var(--sidebar-space) - 6rem)}}.theme-container .vp-sidebar{top:var(--navbar-height)}.theme-container.no-navbar .vp-page{padding-top:0}.theme-container.no-navbar .vp-sidebar{top:0}@media (max-width: 719px){.theme-container.no-navbar .vp-sidebar{top:0}}@media (max-width: 719px){.theme-container.hide-navbar .vp-sidebar{top:0}}.theme-container.sidebar-collapsed .vp-page{padding-inline-start:0}.theme-container.sidebar-collapsed .vp-sidebar{box-shadow:none;transform:translate(-100%)}html[dir=rtl] .theme-container.sidebar-collapsed .vp-sidebar{transform:translate(100%)}.theme-container.sidebar-collapsed .toggle-sidebar-wrapper{inset-inline-start:0}.theme-container.no-sidebar .vp-page{padding-inline:0}@media (min-width: 1440px){.theme-container.no-sidebar.has-toc .vp-page{padding-inline-end:16rem}}.theme-container.no-sidebar .vp-toggle-sidebar-button,.theme-container.no-sidebar .toggle-sidebar-wrapper,.theme-container.no-sidebar .vp-sidebar{display:none}.theme-container.sidebar-open .vp-sidebar{box-shadow:2px 0 8px var(--card-shadow);transform:translate(0)}.fade-slide-y-enter-active{transition:all .3s ease!important}.fade-slide-y-leave-active{transition:all .3s cubic-bezier(1,.5,.8,1)!important}.fade-slide-y-enter-from,.fade-slide-y-leave-to{opacity:0;transform:translateY(10px)}.vp-feature-wrapper{position:relative}.vp-feature-bg{position:absolute;top:0;right:0;bottom:0;left:0;z-index:0;background-attachment:fixed;background-position:50%;background-size:cover}.vp-feature-bg.light{display:inline-block}.vp-feature-bg.dark,html[data-theme=dark] .vp-feature-bg.light{display:none}html[data-theme=dark] .vp-feature-bg.dark{display:inline-block}.vp-feature{position:relative;z-index:1;margin:0 auto;padding:1.5rem 1rem;color:var(--text-color-lighter);text-align:center}.vp-feature-bg+.vp-feature{color:#222}html[data-theme=dark] .vp-feature-bg+.vp-feature{color:#eee}.vp-feature-bg+.vp-feature .icon{color:inherit}.vp-feature-image{height:10rem;margin:0 auto}@media (max-width: 959px){.vp-feature-image{height:8rem}}.vp-feature-image.light{display:inline-block}.vp-feature-image.dark,html[data-theme=dark] .vp-feature-image.light{display:none}html[data-theme=dark] .vp-feature-image.dark{display:inline-block}.vp-feature-header{margin-bottom:1.5rem;border-bottom:none;font-size:3rem;font-family:var(--font-family);text-align:center}@media (max-width: 959px){.vp-feature-header{font-size:2.5rem}}@media (max-width: 719px){.vp-feature-header{font-size:2.25rem}}@media (max-width: 419px){.vp-feature-header{font-size:2rem}}.vp-feature-description{font-size:1.125rem}.vp-features{z-index:1;display:flex;flex-wrap:wrap;align-items:stretch;place-content:stretch center;margin:1rem 0;text-align:start}@media print{.vp-features{display:block}}.vp-features:first-child{border-top:1px solid var(--border-color);transition:border-color var(--color-transition)}.vp-feature-item{position:relative;display:block;flex-basis:calc(33% - 3rem);margin:.5rem;padding:1rem;border-radius:.5rem;color:inherit;transition:background var(--color-transition),box-shadow var(--color-transition),transform var(--transform-transition)}@media (min-width: 1440px){.vp-feature-item{flex-basis:calc(25% - 3rem)}}@media (max-width: 959px){.vp-feature-item{flex-basis:calc(50% - 3rem)}}@media (max-width: 719px){.vp-feature-item{flex-basis:100%;font-size:.95rem}}@media (max-width: 419px){.vp-feature-item{margin:.5rem 0;font-size:.9rem}}.vp-feature-item.link{cursor:pointer}@media print{.vp-feature-item.link{text-decoration:none}}.vp-feature-item .icon{display:inline-block;width:1.1em;margin-inline-end:.5rem;color:var(--theme-color);font-weight:400;font-size:1.1em}.vp-feature-item:hover{background-color:var(--bg-color-secondary);box-shadow:0 2px 12px 0 var(--card-shadow);transform:translate(-2px,-2px);transform:scale(1.05)}.vp-feature-bg+.vp-feature .vp-feature-item:hover{background-color:transparent}.vp-feature-item:only-child{flex-basis:100%}.vp-feature-item:first-child:nth-last-child(2),.vp-feature-item:nth-child(2):last-child{flex-basis:calc(50% - 3rem)}@media (max-width: 719px){.vp-feature-item:first-child:nth-last-child(2),.vp-feature-item:nth-child(2):last-child{flex-basis:100%}}.vp-feature-title{margin:.25rem 0 .5rem;font-weight:700;font-size:1.3rem;font-family:var(--font-family)}@media (max-width: 419px){.vp-feature-title{font-size:1.2rem}}.vp-feature-details{margin:0;line-height:1.4}.vp-footer-wrapper{position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-evenly;padding-block:.75rem;padding-inline:calc(var(--sidebar-space) + 2rem) 2rem;border-top:1px solid var(--border-color);background:var(--bg-color);color:var(--dark-grey);text-align:center;transition:border-top-color var(--color-transition),background var(--color-transition),padding var(--transform-transition)}@media (max-width: 719px){.vp-footer-wrapper{padding-inline-start:2rem}}@media (min-width: 1440px){.vp-footer-wrapper{z-index:50;padding-inline-start:2rem}}@media print{.vp-footer-wrapper{margin:0!important;padding:0!important}}@media (max-width: 419px){.vp-footer-wrapper{display:block}}.no-sidebar .vp-footer-wrapper,.sidebar-collapsed .vp-footer-wrapper{padding-inline-start:2rem}.vp-footer{margin:.5rem 1rem;font-size:14px}@media print{.vp-footer{display:none}}.vp-copyright{margin:6px 0;font-size:13px}.vp-page:not(.not-found)+.vp-footer-wrapper{margin-top:-2rem}.vp-hero-info-wrapper{position:relative;display:flex;align-items:center;justify-content:center;margin-inline:auto}.vp-hero-info-wrapper.fullscreen{height:calc(100vh - var(--navbar-height))!important}.vp-hero-info{z-index:1;width:100%;padding-inline:2.5rem}@media (max-width: 959px){.vp-hero-info{padding-inline:1.5rem}}@media (min-width: 959px){.vp-hero-info{display:flex;align-items:center;justify-content:space-evenly}}.vp-hero-mask{position:absolute;top:0;right:0;bottom:0;left:0;z-index:0;background-position:50%;background-size:cover}.vp-hero-mask:after{content:" ";position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;display:block}.vp-hero-mask.light{display:block}html[data-theme=dark] .vp-hero-mask.light,.vp-hero-mask.dark{display:none}html[data-theme=dark] .vp-hero-mask.dark{display:block}.vp-hero-infos{z-index:1;margin:0 .5rem}.vp-hero-image{display:block;max-width:100%;max-height:18rem;margin:1rem}@media (max-width: 959px){.vp-hero-image{margin:2rem auto}}@media (max-width: 719px){.vp-hero-image{max-height:16rem;margin:1.5rem auto}}@media (max-width: 419px){.vp-hero-image{max-height:14rem}}.vp-hero-image.light{display:block}html[data-theme=dark] .vp-hero-image.light,.vp-hero-image.dark{display:none}html[data-theme=dark] .vp-hero-image.dark{display:block}#main-title{margin:.5rem 0;background:linear-gradient(120deg,var(--theme-color-light),var(--theme-color) 30%,#3e71af 100%);-webkit-background-clip:text;background-clip:text;font-weight:700;font-size:3.6rem;font-family:var(--font-family);line-height:1.5;-webkit-text-fill-color:transparent}@media (max-width: 719px){#main-title{margin:0}}@media (max-width: 959px){#main-title{font-size:2.5rem;text-align:center}}@media (max-width: 719px){#main-title{font-size:2.25rem;text-align:center}}@media (max-width: 419px){#main-title{margin:0 auto;font-size:2rem}}.vp-description,.vp-actions{margin:1.8rem 0}@media (max-width: 719px){.vp-description,.vp-actions{margin:1.5rem 0}}@media (max-width: 959px){.vp-description,.vp-actions{margin:1.5rem auto;text-align:center}}@media (max-width: 419px){.vp-description,.vp-actions{margin:1.2rem 0}}.vp-description{max-width:35rem;color:var(--text-color-light);font-weight:500;font-size:1.6rem;line-height:1.3}@media (max-width: 719px){.vp-description{font-size:1.4rem}}@media (max-width: 419px){.vp-description{font-size:1.2rem}}.vp-action{display:inline-block;overflow:hidden;min-width:4rem;margin:.5rem;padding:.5em 1.5rem;border-radius:2rem;background:var(--bg-color-secondary);color:var(--text-color);font-size:1.2rem;text-align:center;transition:color var(--color-transition),color var(--color-transition),transform var(--transform-transition)}@media (max-width: 719px){.vp-action{padding:.5rem 1rem;font-size:1.1rem}}@media (max-width: 419px){.vp-action{font-size:1rem}}@media print{.vp-action{text-decoration:none}}.vp-action:hover{background:var(--bg-color-tertiary)}.vp-action.primary{border-color:var(--theme-color);background:var(--theme-color);color:var(--white)}.vp-action.primary:hover{border-color:var(--theme-color-light);background:var(--theme-color-light)}.vp-project-home:not(.pure) .vp-action:active{transform:scale(.96)}.vp-highlight-wrapper{position:relative;display:flex;align-items:center;justify-content:center}.vp-highlight-wrapper:nth-child(2n) .vp-highlight{flex-direction:row-reverse}.vp-highlight{z-index:1;display:flex;flex:1;align-items:center;justify-content:flex-end;max-width:var(--home-page-width);margin:0 auto;padding:1.5rem 2.5rem;color:#222}@media (max-width: 719px){.vp-highlight{display:block;padding-inline:1.5rem;text-align:center}}html[data-theme=dark] .vp-highlight{color:#eee}.vp-highlight-bg{position:absolute;top:0;right:0;bottom:0;left:0;z-index:0;background-attachment:fixed;background-position:50%;background-size:cover}.vp-highlight-bg.light{display:inline-block}.vp-highlight-bg.dark,html[data-theme=dark] .vp-highlight-bg.light{display:none}html[data-theme=dark] .vp-highlight-bg.dark{display:inline-block}.vp-highlight-image{width:12rem;margin:2rem 4rem}@media (max-width: 959px){.vp-highlight-image{width:10rem}}@media (max-width: 719px){.vp-highlight-image{width:8rem;margin:0 auto}}.vp-highlight-image.light{display:inline-block}.vp-highlight-image.dark,html[data-theme=dark] .vp-highlight-image.light{display:none}html[data-theme=dark] .vp-highlight-image.dark{display:inline-block}.vp-highlight-info-wrapper{display:flex;flex:1;justify-content:center;padding:2rem}@media (max-width: 719px){.vp-highlight-info-wrapper{padding:1rem 0}}.vp-highlight-info-wrapper:only-child{flex:1 0 100%}.vp-highlight-info{text-align:start}.vp-highlight-header{margin-bottom:1.5rem;border-bottom:none;font-size:3rem;font-family:var(--font-family)}@media (max-width: 959px){.vp-highlight-header{font-size:2.5rem}}@media (max-width: 719px){.vp-highlight-header{font-size:2.25rem;text-align:center}}@media (max-width: 419px){.vp-highlight-header{font-size:2rem}}.vp-highlight-description{font-size:1.125rem}.vp-highlights{margin-inline-start:-1.25em;padding-inline-start:0}.vp-highlight-item-wrapper{padding:.5em .5em .5em 1.75em;border-radius:.5rem;list-style:none}.vp-highlight-item-wrapper.link{cursor:pointer}.vp-highlight-item-wrapper:hover{background-color:var(--bg-color-secondary);box-shadow:0 2px 12px 0 var(--card-shadow);transition:transform var(--transform-transition);transform:translate(-2px,-2px)}.vp-highlight-bg+.vp-highlight .vp-highlight-item-wrapper:hover{background-color:transparent}.vp-highlight-item-wrapper::marker{font-weight:700}.vp-highlight-item{display:list-item;color:inherit;list-style:initial}@media print{.vp-highlight-item{text-decoration:none}}.vp-highlight-title{margin:0;font-weight:600;font-size:1.125rem;font-family:var(--font-family)}.vp-highlight-title .icon{margin-inline-end:.25em}.vp-highlight-details{margin:.5rem 0 0}.vp-project-home{--content-width: var(--home-page-width);display:block;flex:1;padding-top:var(--navbar-height)}@media screen{.vp-project-home .vp-hero-info-wrapper:not(.fullscreen) .vp-hero-info{max-width:var(--home-page-width)}}@media screen{.vp-project-home .vp-feature{max-width:var(--home-page-width)}}.vp-project-home .theme-hope-content{padding-bottom:1.5rem!important}.vp-project-home .theme-hope-content:empty{padding:0!important}.not-found-hint{padding:2rem}.not-found-hint .error-code{margin:0;font-weight:700;font-size:4rem;line-height:4rem}.not-found-hint .error-title{font-weight:700}.not-found-hint .error-hint{margin:0;padding:12px 0;font-weight:600;font-size:20px;line-height:20px;letter-spacing:2px}.vp-page.not-found{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;width:100vw;max-width:var(--home-page-width);margin:0 auto;padding:calc(var(--navbar-height) + 1rem) 1rem 1rem!important;text-align:center}.vp-page.not-found .action-button{display:inline-block;box-sizing:border-box;margin:.25rem;padding:.75rem 1rem;border-width:0;border-bottom:1px solid var(--theme-color-dark);border-radius:3rem;background:var(--theme-color);color:var(--white);outline:none;font-size:1rem;transition:background .1s ease}.vp-page.not-found .action-button:hover{background:var(--theme-color-light);cursor:pointer}.vp-page-nav{display:flex;flex-wrap:wrap;min-height:2rem;margin-top:0;padding-block:.5rem;padding-inline:2rem;border-top:1px solid var(--border-color);transition:border-top var(--color-transition)}@media (max-width: 959px){.vp-page-nav{padding-inline:1rem}}@media print{.vp-page-nav{display:none}}.vp-page-nav .nav-link{display:inline-block;flex-grow:1;margin:.25rem;padding:.25rem .5rem;border:1px solid var(--border-color);border-radius:.25rem}.vp-page-nav .nav-link:hover{background:var(--bg-color-secondary)}.vp-page-nav .nav-link .hint{color:var(--light-grey);font-size:.875rem;line-height:2}.vp-page-nav .nav-link .arrow{display:inline-block;vertical-align:middle;width:1em;height:1em;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='rgba(0,0,0,0.5)' d='M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z'/%3E%3C/svg%3E");line-height:normal;transition:all .3s;font-size:.75rem}html[data-theme=dark] .vp-page-nav .nav-link .arrow{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='rgba(255,255,255,0.5)' d='M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z'/%3E%3C/svg%3E")}.vp-page-nav .nav-link .arrow.down{transform:rotate(180deg)}html[dir=rtl] .vp-page-nav .nav-link .arrow.down{transform:rotate(-180deg)}.vp-page-nav .nav-link .arrow.end{transform:rotate(90deg)}html[dir=rtl] .vp-page-nav .nav-link .arrow.end,.vp-page-nav .nav-link .arrow.start{transform:rotate(-90deg)}html[dir=rtl] .vp-page-nav .nav-link .arrow.start{transform:rotate(90deg)}.vp-page-nav .prev{text-align:start}.vp-page-nav .prev .icon{margin-inline-end:.25em}.vp-page-nav .next{text-align:end}.vp-page-nav .next .icon{margin-inline-start:.25em}.vp-page-title{max-width:var(--content-width, 740px);margin-inline:auto;padding-inline:2.5rem;position:relative;z-index:1;padding-top:1rem;padding-bottom:0}@media (max-width: 959px){.vp-page-title{padding-inline:1.5rem}}@media print{.vp-page-title{max-width:unset}}@media print{.vp-page-title{padding-inline:0!important}}@media (max-width: 959px){.vp-page-title{padding-top:.5rem}}.vp-page-title h1{margin-top:calc(0px - var(--navbar-height))!important;margin-bottom:1rem;padding-top:var(--navbar-height)!important;font-size:2.2rem}@media (max-width: 959px){.vp-page-title h1{margin-bottom:.5rem}}.vp-page-title h1 .icon{margin-inline-end:.25em;color:var(--theme-color);font-size:.9em}.theme-hope-content:not(.custom){padding-top:0!important}.theme-hope-content:not(.custom) h1:first-child,.theme-hope-content:not(.custom) h2:first-child,.theme-hope-content:not(.custom) h3:first-child,.theme-hope-content:not(.custom) h4:first-child,.theme-hope-content:not(.custom) h5:first-child,.theme-hope-content:not(.custom) h6:first-child{margin-top:calc(.5rem - var(--navbar-height))!important;padding-top:var(--navbar-height)!important}.theme-hope-content:not(.custom)>h1:first-child{display:none}.vp-page{display:block;flex-grow:1;padding-bottom:2rem;transition:padding var(--transform-transition)}@media print{.vp-page{min-height:auto!important;margin:0!important;padding:0!important}}.page-cover{-o-object-fit:cover;object-fit:cover;width:calc(100% + 2rem);max-height:25vh;margin-inline-start:-2rem}@media (max-width: 719px){.page-cover{width:100%;margin:0;border-radius:0}}@media (min-width: 1440px){.page-cover{width:calc(100% - 2rem);margin:0 1rem;border-radius:.5rem}}.page-cover .sidebar-collapsed{width:100%;margin-inline-start:0}.vp-skip-link{top:.25rem;inset-inline-start:.25rem;z-index:999;padding:.65rem 1.5rem;border-radius:.5rem;background:var(--bg-color);color:var(--theme-color);box-shadow:var(--card-shadow);font-weight:700;font-size:.9em;text-decoration:none}@media print{.vp-skip-link{display:none}}.vp-skip-link:focus{clip:auto;width:auto;height:auto;-webkit-clip-path:none;clip-path:none}.theme-hope-content pre{overflow:auto;margin:.85rem 0;padding:1rem;border-radius:6px;line-height:1.375}.theme-hope-content pre code{padding:0;border-radius:0;background:transparent!important;color:var(--code-color);font-family:var(--font-family-mono);text-align:left;white-space:pre;word-spacing:normal;word-wrap:normal;word-break:normal;overflow-wrap:unset;-webkit-hyphens:none;hyphens:none;transition:color var(--color-transition);-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}@media print{.theme-hope-content pre code{white-space:pre-wrap}}.theme-hope-content .line-number{font-family:var(--font-family-mono)}div[class*=language-]{position:relative;border-radius:6px;background:var(--code-bg-color);transition:background var(--color-transition)}@media (max-width: 419px){.theme-hope-content>div[class*=language-]{margin:.85rem -1.5rem;border-radius:0}}div[class*=language-]:before{content:attr(data-ext);position:absolute;top:0;right:1em;z-index:3;color:var(--code-line-color);font-size:.75rem;transition:color var(--color-transition)}div[class*=language-] pre{position:relative;z-index:1}div[class*=language-] .highlight-lines{position:absolute;top:0;left:0;width:100%;padding-top:1rem;line-height:1.375;-webkit-user-select:none;-moz-user-select:none;user-select:none}div[class*=language-] .highlight-line{background:var(--code-highlight-line-color);transition:background var(--color-transition)}div[class*=language-].line-numbers-mode:after{content:"";position:absolute;top:0;left:0;z-index:2;width:var(--line-numbers-width);height:100%;border-right:1px solid var(--code-highlight-line-color);border-radius:6px 0 0 6px;transition:border-color var(--color-transition)}@media (max-width: 419px){div[class*=language-].line-numbers-mode:after{border-radius:0}}@media print{div[class*=language-].line-numbers-mode:after{display:none}}div[class*=language-].line-numbers-mode .highlight-line{position:relative}div[class*=language-].line-numbers-mode .highlight-line:before{content:" ";position:absolute;top:0;left:0;z-index:3;display:block;width:var(--line-numbers-width);height:100%}div[class*=language-].line-numbers-mode pre{vertical-align:middle;margin-left:var(--line-numbers-width);padding-left:.5rem}@media print{div[class*=language-].line-numbers-mode pre{margin-left:0;padding-left:1rem}}div[class*=language-].line-numbers-mode .line-numbers{position:absolute;top:0;left:0;width:var(--line-numbers-width);padding:1rem 0;color:var(--code-line-color);line-height:1.375;counter-reset:line-number;text-align:center;transition:color var(--color-transition);transform:translateY(1px)}@media print{div[class*=language-].line-numbers-mode .line-numbers{display:none}}div[class*=language-].line-numbers-mode .line-number{position:relative;z-index:4;height:1.375em;-webkit-user-select:none;-moz-user-select:none;user-select:none}div[class*=language-].line-numbers-mode .line-number:before{content:counter(line-number);font-size:.85em;counter-increment:line-number}div[class*=language-]:not(.line-numbers-mode) .line-numbers{display:none}html[data-theme=light] #app{--code-color: #383a42;--code-line-color: rgba(56, 58, 66, .67);--code-bg-color: #ecf4fa;--code-border-color: #c3def3;--code-highlight-line-color: #d8e9f6}html[data-theme=light] code[class*=language-],html[data-theme=light] pre[class*=language-]{-moz-tab-size:2;-o-tab-size:2;tab-size:2}html[data-theme=light] code[class*=language-]::-moz-selection,html[data-theme=light] code[class*=language-] ::-moz-selection,html[data-theme=light] pre[class*=language-]::-moz-selection,html[data-theme=light] pre[class*=language-] ::-moz-selection{background:#e5e5e6;color:inherit}html[data-theme=light] code[class*=language-]::selection,html[data-theme=light] code[class*=language-] ::selection,html[data-theme=light] pre[class*=language-]::selection,html[data-theme=light] pre[class*=language-] ::selection{background:#e5e5e6;color:inherit}html[data-theme=light] .token.comment,html[data-theme=light] .token.prolog,html[data-theme=light] .token.cdata{color:#a0a1a7}html[data-theme=light] .token.doctype,html[data-theme=light] .token.punctuation,html[data-theme=light] .token.entity{color:#383a42}html[data-theme=light] .token.attr-name,html[data-theme=light] .token.class-name,html[data-theme=light] .token.boolean,html[data-theme=light] .token.constant,html[data-theme=light] .token.number,html[data-theme=light] .token.atrule{color:#b76b01}html[data-theme=light] .token.keyword{color:#a626a4}html[data-theme=light] .token.property,html[data-theme=light] .token.tag,html[data-theme=light] .token.symbol,html[data-theme=light] .token.deleted,html[data-theme=light] .token.important{color:#e45649}html[data-theme=light] .token.selector,html[data-theme=light] .token.string,html[data-theme=light] .token.char,html[data-theme=light] .token.builtin,html[data-theme=light] .token.inserted,html[data-theme=light] .token.regex,html[data-theme=light] .token.attr-value,html[data-theme=light] .token.attr-value>.token.punctuation{color:#50a14f}html[data-theme=light] .token.variable,html[data-theme=light] .token.operator,html[data-theme=light] .token.function{color:#4078f2}html[data-theme=light] .token.url{color:#0184bc}html[data-theme=light] .token.attr-value>.token.punctuation.attr-equals,html[data-theme=light] .token.special-attr>.token.attr-value>.token.value.css{color:#383a42}html[data-theme=light] .language-css .token.selector{color:#e45649}html[data-theme=light] .language-css .token.property{color:#383a42}html[data-theme=light] .language-css .token.function,html[data-theme=light] .language-css .token.url>.token.function{color:#0184bc}html[data-theme=light] .language-css .token.url>.token.string.url{color:#50a14f}html[data-theme=light] .language-css .token.important,html[data-theme=light] .language-css .token.atrule .token.rule,html[data-theme=light] .language-javascript .token.operator{color:#a626a4}html[data-theme=light] .language-javascript .token.template-string>.token.interpolation>.token.interpolation-punctuation.punctuation{color:#ca1243}html[data-theme=light] .language-json .token.operator{color:#383a42}html[data-theme=light] .language-json .token.null.keyword{color:#b76b01}html[data-theme=light] .language-markdown .token.url,html[data-theme=light] .language-markdown .token.url>.token.operator,html[data-theme=light] .language-markdown .token.url-reference.url>.token.string{color:#383a42}html[data-theme=light] .language-markdown .token.url>.token.content{color:#4078f2}html[data-theme=light] .language-markdown .token.url>.token.url,html[data-theme=light] .language-markdown .token.url-reference.url{color:#0184bc}html[data-theme=light] .language-markdown .token.blockquote.punctuation,html[data-theme=light] .language-markdown .token.hr.punctuation{color:#a0a1a7;font-style:italic}html[data-theme=light] .language-markdown .token.code-snippet{color:#50a14f}html[data-theme=light] .language-markdown .token.bold .token.content{color:#b76b01}html[data-theme=light] .language-markdown .token.italic .token.content{color:#a626a4}html[data-theme=light] .language-markdown .token.strike .token.content,html[data-theme=light] .language-markdown .token.strike .token.punctuation,html[data-theme=light] .language-markdown .token.list.punctuation,html[data-theme=light] .language-markdown .token.title.important>.token.punctuation{color:#e45649}html[data-theme=light] .token.bold{font-weight:700}html[data-theme=light] .token.comment,html[data-theme=light] .token.italic{font-style:italic}html[data-theme=light] .token.entity{cursor:help}html[data-theme=light] .token.namespace{opacity:.8}html[data-theme=dark] #app{--code-color: #abb2bf;--code-line-color: rgba(171, 178, 191, .67);--code-bg-color: #282c34;--code-border-color: #343e51;--code-highlight-line-color: #2f3542}html[data-theme=dark] code[class*=language-],html[data-theme=dark] pre[class*=language-]{text-shadow:0 1px rgba(0,0,0,.3);-moz-tab-size:2;-o-tab-size:2;tab-size:2}@media print{html[data-theme=dark] code[class*=language-],html[data-theme=dark] pre[class*=language-]{text-shadow:none}}html[data-theme=dark] code[class*=language-]::-moz-selection,html[data-theme=dark] code[class*=language-] ::-moz-selection,html[data-theme=dark] pre[class*=language-]::-moz-selection,html[data-theme=dark] pre[class*=language-] ::-moz-selection{background:#3e4451;color:inherit;text-shadow:none}html[data-theme=dark] code[class*=language-]::selection,html[data-theme=dark] code[class*=language-] ::selection,html[data-theme=dark] pre[class*=language-]::selection,html[data-theme=dark] pre[class*=language-] ::selection{background:#3e4451;color:inherit;text-shadow:none}html[data-theme=dark] .token.comment,html[data-theme=dark] .token.prolog,html[data-theme=dark] .token.cdata{color:#5c6370}html[data-theme=dark] .token.doctype,html[data-theme=dark] .token.punctuation,html[data-theme=dark] .token.entity{color:#abb2bf}html[data-theme=dark] .token.attr-name,html[data-theme=dark] .token.class-name,html[data-theme=dark] .token.boolean,html[data-theme=dark] .token.constant,html[data-theme=dark] .token.number,html[data-theme=dark] .token.atrule{color:#d19a66}html[data-theme=dark] .token.keyword{color:#c678dd}html[data-theme=dark] .token.property,html[data-theme=dark] .token.tag,html[data-theme=dark] .token.symbol,html[data-theme=dark] .token.deleted,html[data-theme=dark] .token.important{color:#e06c75}html[data-theme=dark] .token.selector,html[data-theme=dark] .token.string,html[data-theme=dark] .token.char,html[data-theme=dark] .token.builtin,html[data-theme=dark] .token.inserted,html[data-theme=dark] .token.regex,html[data-theme=dark] .token.attr-value,html[data-theme=dark] .token.attr-value>.token.punctuation{color:#98c379}html[data-theme=dark] .token.variable,html[data-theme=dark] .token.operator,html[data-theme=dark] .token.function{color:#61afef}html[data-theme=dark] .token.url{color:#56b6c2}html[data-theme=dark] .token.attr-value>.token.punctuation.attr-equals,html[data-theme=dark] .token.special-attr>.token.attr-value>.token.value.css{color:#abb2bf}html[data-theme=dark] .language-css .token.selector{color:#e06c75}html[data-theme=dark] .language-css .token.property{color:#abb2bf}html[data-theme=dark] .language-css .token.function,html[data-theme=dark] .language-css .token.url>.token.function{color:#56b6c2}html[data-theme=dark] .language-css .token.url>.token.string.url{color:#98c379}html[data-theme=dark] .language-css .token.important,html[data-theme=dark] .language-css .token.atrule .token.rule,html[data-theme=dark] .language-javascript .token.operator{color:#c678dd}html[data-theme=dark] .language-javascript .token.template-string>.token.interpolation>.token.interpolation-punctuation.punctuation{color:#be5046}html[data-theme=dark] .language-json .token.operator{color:#abb2bf}html[data-theme=dark] .language-json .token.null.keyword{color:#d19a66}html[data-theme=dark] .language-markdown .token.url,html[data-theme=dark] .language-markdown .token.url>.token.operator,html[data-theme=dark] .language-markdown .token.url-reference.url>.token.string{color:#abb2bf}html[data-theme=dark] .language-markdown .token.url>.token.content{color:#61afef}html[data-theme=dark] .language-markdown .token.url>.token.url,html[data-theme=dark] .language-markdown .token.url-reference.url{color:#56b6c2}html[data-theme=dark] .language-markdown .token.blockquote.punctuation,html[data-theme=dark] .language-markdown .token.hr.punctuation{color:#5c6370;font-style:italic}html[data-theme=dark] .language-markdown .token.code-snippet{color:#98c379}html[data-theme=dark] .language-markdown .token.bold .token.content{color:#d19a66}html[data-theme=dark] .language-markdown .token.italic .token.content{color:#c678dd}html[data-theme=dark] .language-markdown .token.strike .token.content,html[data-theme=dark] .language-markdown .token.strike .token.punctuation,html[data-theme=dark] .language-markdown .token.list.punctuation,html[data-theme=dark] .language-markdown .token.title.important>.token.punctuation{color:#e06c75}html[data-theme=dark] .token.bold{font-weight:700}html[data-theme=dark] .token.comment,html[data-theme=dark] .token.italic{font-style:italic}html[data-theme=dark] .token.entity{cursor:help}html[data-theme=dark] .token.namespace{opacity:.8}.sr-only{position:absolute;overflow:hidden;clip:rect(0,0,0,0);width:1px;height:1px;margin:-1px;padding:0;border-width:0;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none}@media print{.theme-hope-content{margin:0!important;padding-inline:0!important}}.theme-hope-content.custom{margin:0;padding:0}.theme-hope-content:not(.custom){max-width:var(--content-width, 740px);margin:0 auto;padding:2rem 2.5rem;padding-top:0}@media (max-width: 959px){.theme-hope-content:not(.custom){padding:1.5rem}}@media (max-width: 419px){.theme-hope-content:not(.custom){padding:1rem 1.5rem}}@media print{.theme-hope-content:not(.custom){max-width:unset}}.theme-hope-content:not(.custom)>h1,.theme-hope-content:not(.custom)>h2,.theme-hope-content:not(.custom)>h3,.theme-hope-content:not(.custom)>h4,.theme-hope-content:not(.custom)>h5,.theme-hope-content:not(.custom)>h6{margin-top:calc(.5rem - var(--navbar-height));margin-bottom:.5rem;padding-top:calc(1rem + var(--navbar-height));outline:none}.theme-container.no-navbar .theme-hope-content:not(.custom)>h1,.theme-container.no-navbar .theme-hope-content:not(.custom)>h2,.theme-container.no-navbar .theme-hope-content:not(.custom)>h3,.theme-container.no-navbar .theme-hope-content:not(.custom)>h4,.theme-container.no-navbar .theme-hope-content:not(.custom)>h5,.theme-container.no-navbar .theme-hope-content:not(.custom)>h6{margin-top:1.5rem;padding-top:0}.theme-hope-content:not(.custom)>p,.theme-hope-content:not(.custom)>ul p,.theme-hope-content:not(.custom)>ol p{text-align:justify;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}@media (max-width: 419px){.theme-hope-content:not(.custom)>p,.theme-hope-content:not(.custom)>ul p,.theme-hope-content:not(.custom)>ol p{text-align:start}}@media print{.theme-hope-content:not(.custom)>p,.theme-hope-content:not(.custom)>ul p,.theme-hope-content:not(.custom)>ol p{text-align:start}}.theme-hope-content a:hover{text-decoration:underline}.theme-hope-content img{max-width:100%}@media (min-width: 1280px){.chart-wrapper::-webkit-scrollbar,.flowchart-wrapper::-webkit-scrollbar,.mermaid-wrapper::-webkit-scrollbar{width:8px;height:8px}.chart-wrapper::-webkit-scrollbar-track-piece,.flowchart-wrapper::-webkit-scrollbar-track-piece,.mermaid-wrapper::-webkit-scrollbar-track-piece{border-radius:8px;background:rgba(0,0,0,.1)}}html[dir=rtl] a.header-anchor{float:right}#docsearch-container{min-width:145.7px!important}@media (max-width: 959px){#docsearch-container{min-width:36px!important}}.DocSearch.DocSearch-Button{margin-left:0}@media (max-width: 959px){.DocSearch.DocSearch-Button{min-width:36px!important}}.DocSearch .DocSearch-Button-Placeholder{display:inline-block;padding:4px 12px 4px 6px;font-size:14px}@media (max-width: 719px){.DocSearch .DocSearch-Button-Placeholder{display:none}}.DocSearch .DocSearch-Search-Icon{width:1.25em;height:1.25em}@media (max-width: 959px){.DocSearch .DocSearch-Button-Keys{display:none}}.DocSearch .DocSearch-Button-Key{background:var(--bg-color);box-shadow:none}@media (prefers-reduced-motion: no-preference){:root{scroll-behavior:smooth}}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track-piece{border-radius:6px;background:rgba(0,0,0,.1)}::-webkit-scrollbar-thumb{border-radius:6px;background:var(--theme-color)}::-webkit-scrollbar-thumb:active{background:var(--theme-color-light)}@media (max-width: 719px){.hide-in-mobile{display:none!important}}@media (max-width: 959px){.hide-in-pad{display:none!important}}.page-author-item{display:inline-block;margin:0 4px;font-weight:400;overflow-wrap:break-word}.page-category-info{flex-wrap:wrap}.page-category-item{display:inline-block;margin:.125em .25em;padding:0 .25em;border-radius:.25em;background:var(--bg-color-secondary);color:var(--text-color-light);font-weight:700;font-size:.75rem;line-height:2;transition:background var(--color-transition),color var(--color-transition)}@media print{.page-category-item{padding:0;font-weight:400}.page-category-item:after{content:", "}.page-category-item:last-of-type:after{content:""}}.page-category-item.clickable>span:hover{color:var(--theme-color);cursor:pointer}.page-category-item.category0{background:#fde5e7;color:#ec2f3e}html[data-theme=dark] .page-category-item.category0{background:#340509;color:#ba111f}.page-category-item.category0:hover{background:#f9bec3}html[data-theme=dark] .page-category-item.category0:hover{background:#53080e}.page-category-item.category1{background:#ffeee8;color:#fb7649}html[data-theme=dark] .page-category-item.category1{background:#441201;color:#f54205}.page-category-item.category1:hover{background:#fed4c6}html[data-theme=dark] .page-category-item.category1:hover{background:#6d1d02}.page-category-item.category2{background:#fef5e7;color:#f5b041}html[data-theme=dark] .page-category-item.category2{background:#3e2703;color:#e08e0b}.page-category-item.category2:hover{background:#fce6c4}html[data-theme=dark] .page-category-item.category2:hover{background:#633f05}.page-category-item.category3{background:#eafaf1;color:#55d98d}html[data-theme=dark] .page-category-item.category3{background:#0c331c;color:#29b866}.page-category-item.category3:hover{background:#caf3db}html[data-theme=dark] .page-category-item.category3:hover{background:#12522d}.page-category-item.category4{background:#e6f9ee;color:#36d278}html[data-theme=dark] .page-category-item.category4{background:#092917;color:#219552}.page-category-item.category4:hover{background:#c0f1d5}html[data-theme=dark] .page-category-item.category4:hover{background:#0f4224}.page-category-item.category5{background:#e1fcfc;color:#16e1e1}html[data-theme=dark] .page-category-item.category5{background:#042929;color:#0e9595}.page-category-item.category5:hover{background:#b4f8f8}html[data-theme=dark] .page-category-item.category5:hover{background:#064242}.page-category-item.category6{background:#e4f0fe;color:#2589f6}html[data-theme=dark] .page-category-item.category6{background:#021b36;color:#0862c3}.page-category-item.category6:hover{background:#bbdafc}html[data-theme=dark] .page-category-item.category6:hover{background:#042c57}.page-category-item.category7{background:#f7f1fd;color:#bb8ced}html[data-theme=dark] .page-category-item.category7{background:#2a0b4b;color:#9851e4}.page-category-item.category7:hover{background:#eadbfa}html[data-theme=dark] .page-category-item.category7:hover{background:#431277}.page-category-item.category8{background:#fdeaf5;color:#ef59ab}html[data-theme=dark] .page-category-item.category8{background:#400626;color:#e81689}.page-category-item.category8:hover{background:#facbe5}html[data-theme=dark] .page-category-item.category8:hover{background:#670a3d}.page-original-info{position:relative;display:inline-block;vertical-align:middle;overflow:hidden;padding:0 .5em;border:.5px solid var(--dark-grey);border-radius:.75em;background:var(--bg-color);font-size:.75em;line-height:1.5!important}.page-info{display:flex;flex-wrap:wrap;align-items:center;place-content:stretch flex-start;color:var(--dark-grey);font-size:14px}@media print{.page-info{display:flex!important}}.page-info>span{display:flex;align-items:center;max-width:100%;margin-inline-end:.5em;line-height:2}@media (min-width: 1440px){.page-info>span{font-size:1.1em}}@media (max-width: 419px){.page-info>span{margin-inline-end:.3em;font-size:.875em}}@media print{.page-info>span{display:flex!important}}.page-info .icon{position:relative;display:inline-block;vertical-align:middle;width:1em;height:1em;margin-inline-end:.25em}.page-info a{color:inherit}.page-info a:hover,.page-info a:active{color:var(--theme-color)}.page-meta{max-width:var(--content-width, 740px);margin-inline:auto;padding-inline:2.5rem;display:flex;flex-wrap:wrap;justify-content:space-between;overflow:auto;padding-top:.75rem;padding-bottom:.75rem}@media (max-width: 959px){.page-meta{padding-inline:1.5rem}}@media print{.page-meta{max-width:unset}}@media print{.page-meta{margin:0!important;padding-inline:0!important}}@media (max-width: 719px){.page-meta{display:block}}.page-meta .meta-item{flex-grow:1}.page-meta .meta-item .label{font-weight:500}.page-meta .meta-item .label:not(a){color:var(--text-color-lighter)}.page-meta .meta-item .info{color:var(--dark-grey);font-weight:400}.page-meta .git-info{text-align:end}.page-meta .edit-link{margin-top:.25rem;margin-bottom:.25rem;margin-inline-end:.5rem;font-size:14px}@media print{.page-meta .edit-link{display:none}}.page-meta .edit-link .icon{position:relative;bottom:-.125em;width:1em;height:1em;margin-inline-end:.25em}.page-meta .update-time,.page-meta .contributors{margin-top:.25rem;margin-bottom:.25rem;font-size:14px}@media (max-width: 719px){.page-meta .update-time,.page-meta .contributors{font-size:13px;text-align:start}}.print-button{border-width:0;background:transparent;cursor:pointer;box-sizing:content-box;width:1rem;height:1rem;padding:.5rem;border-radius:.25em;color:inherit;font-size:1rem;transform:translateY(.25rem)}@media print{.print-button{display:none}}.page-tag-info{flex-wrap:wrap}.page-tag-item{position:relative;display:inline-block;vertical-align:middle;overflow:hidden;min-width:1.5rem;margin:.125rem;padding:.125rem .25rem .125rem .625rem;background:var(--bg-color-secondary);background:linear-gradient(135deg,transparent .75em,var(--bg-color-secondary) 0) top,linear-gradient(45deg,transparent .75em,var(--bg-color-secondary) 0) bottom;background-size:100% 52%!important;background-repeat:no-repeat!important;color:var(--text-color-light);font-weight:700;font-size:.625rem;line-height:1.5;text-align:center;transition:background var(--color-transition),color var(--color-transition)}@media print{.page-tag-item{padding:0;font-weight:400}.page-tag-item:after{content:", "}.page-tag-item:last-of-type:after{content:""}}.page-tag-item.clickable:hover{cursor:pointer}.page-tag-item.tag0{background:#fde5e7;background:linear-gradient(135deg,transparent .75em,#fde5e7 0) top,linear-gradient(45deg,transparent .75em,#fde5e7 0) bottom;color:#ec2f3e}html[data-theme=dark] .page-tag-item.tag0{background:#340509;background:linear-gradient(135deg,transparent .75em,#340509 0) top,linear-gradient(45deg,transparent .75em,#340509 0) bottom;color:#ba111f}.page-tag-item.tag0.clickable:hover{background:#f9bec3;background:linear-gradient(135deg,transparent .75em,#f9bec3 0) top,linear-gradient(45deg,transparent .75em,#f9bec3 0) bottom}html[data-theme=dark] .page-tag-item.tag0.clickable:hover{background:#53080e;background:linear-gradient(135deg,transparent .75em,#53080e 0) top,linear-gradient(45deg,transparent .75em,#53080e 0) bottom}.page-tag-item.tag1{background:#ffeee8;background:linear-gradient(135deg,transparent .75em,#ffeee8 0) top,linear-gradient(45deg,transparent .75em,#ffeee8 0) bottom;color:#fb7649}html[data-theme=dark] .page-tag-item.tag1{background:#441201;background:linear-gradient(135deg,transparent .75em,#441201 0) top,linear-gradient(45deg,transparent .75em,#441201 0) bottom;color:#f54205}.page-tag-item.tag1.clickable:hover{background:#fed4c6;background:linear-gradient(135deg,transparent .75em,#fed4c6 0) top,linear-gradient(45deg,transparent .75em,#fed4c6 0) bottom}html[data-theme=dark] .page-tag-item.tag1.clickable:hover{background:#6d1d02;background:linear-gradient(135deg,transparent .75em,#6d1d02 0) top,linear-gradient(45deg,transparent .75em,#6d1d02 0) bottom}.page-tag-item.tag2{background:#fef5e7;background:linear-gradient(135deg,transparent .75em,#fef5e7 0) top,linear-gradient(45deg,transparent .75em,#fef5e7 0) bottom;color:#f5b041}html[data-theme=dark] .page-tag-item.tag2{background:#3e2703;background:linear-gradient(135deg,transparent .75em,#3e2703 0) top,linear-gradient(45deg,transparent .75em,#3e2703 0) bottom;color:#e08e0b}.page-tag-item.tag2.clickable:hover{background:#fce6c4;background:linear-gradient(135deg,transparent .75em,#fce6c4 0) top,linear-gradient(45deg,transparent .75em,#fce6c4 0) bottom}html[data-theme=dark] .page-tag-item.tag2.clickable:hover{background:#633f05;background:linear-gradient(135deg,transparent .75em,#633f05 0) top,linear-gradient(45deg,transparent .75em,#633f05 0) bottom}.page-tag-item.tag3{background:#eafaf1;background:linear-gradient(135deg,transparent .75em,#eafaf1 0) top,linear-gradient(45deg,transparent .75em,#eafaf1 0) bottom;color:#55d98d}html[data-theme=dark] .page-tag-item.tag3{background:#0c331c;background:linear-gradient(135deg,transparent .75em,#0c331c 0) top,linear-gradient(45deg,transparent .75em,#0c331c 0) bottom;color:#29b866}.page-tag-item.tag3.clickable:hover{background:#caf3db;background:linear-gradient(135deg,transparent .75em,#caf3db 0) top,linear-gradient(45deg,transparent .75em,#caf3db 0) bottom}html[data-theme=dark] .page-tag-item.tag3.clickable:hover{background:#12522d;background:linear-gradient(135deg,transparent .75em,#12522d 0) top,linear-gradient(45deg,transparent .75em,#12522d 0) bottom}.page-tag-item.tag4{background:#e6f9ee;background:linear-gradient(135deg,transparent .75em,#e6f9ee 0) top,linear-gradient(45deg,transparent .75em,#e6f9ee 0) bottom;color:#36d278}html[data-theme=dark] .page-tag-item.tag4{background:#092917;background:linear-gradient(135deg,transparent .75em,#092917 0) top,linear-gradient(45deg,transparent .75em,#092917 0) bottom;color:#219552}.page-tag-item.tag4.clickable:hover{background:#c0f1d5;background:linear-gradient(135deg,transparent .75em,#c0f1d5 0) top,linear-gradient(45deg,transparent .75em,#c0f1d5 0) bottom}html[data-theme=dark] .page-tag-item.tag4.clickable:hover{background:#0f4224;background:linear-gradient(135deg,transparent .75em,#0f4224 0) top,linear-gradient(45deg,transparent .75em,#0f4224 0) bottom}.page-tag-item.tag5{background:#e1fcfc;background:linear-gradient(135deg,transparent .75em,#e1fcfc 0) top,linear-gradient(45deg,transparent .75em,#e1fcfc 0) bottom;color:#16e1e1}html[data-theme=dark] .page-tag-item.tag5{background:#042929;background:linear-gradient(135deg,transparent .75em,#042929 0) top,linear-gradient(45deg,transparent .75em,#042929 0) bottom;color:#0e9595}.page-tag-item.tag5.clickable:hover{background:#b4f8f8;background:linear-gradient(135deg,transparent .75em,#b4f8f8 0) top,linear-gradient(45deg,transparent .75em,#b4f8f8 0) bottom}html[data-theme=dark] .page-tag-item.tag5.clickable:hover{background:#064242;background:linear-gradient(135deg,transparent .75em,#064242 0) top,linear-gradient(45deg,transparent .75em,#064242 0) bottom}.page-tag-item.tag6{background:#e4f0fe;background:linear-gradient(135deg,transparent .75em,#e4f0fe 0) top,linear-gradient(45deg,transparent .75em,#e4f0fe 0) bottom;color:#2589f6}html[data-theme=dark] .page-tag-item.tag6{background:#021b36;background:linear-gradient(135deg,transparent .75em,#021b36 0) top,linear-gradient(45deg,transparent .75em,#021b36 0) bottom;color:#0862c3}.page-tag-item.tag6.clickable:hover{background:#bbdafc;background:linear-gradient(135deg,transparent .75em,#bbdafc 0) top,linear-gradient(45deg,transparent .75em,#bbdafc 0) bottom}html[data-theme=dark] .page-tag-item.tag6.clickable:hover{background:#042c57;background:linear-gradient(135deg,transparent .75em,#042c57 0) top,linear-gradient(45deg,transparent .75em,#042c57 0) bottom}.page-tag-item.tag7{background:#f7f1fd;background:linear-gradient(135deg,transparent .75em,#f7f1fd 0) top,linear-gradient(45deg,transparent .75em,#f7f1fd 0) bottom;color:#bb8ced}html[data-theme=dark] .page-tag-item.tag7{background:#2a0b4b;background:linear-gradient(135deg,transparent .75em,#2a0b4b 0) top,linear-gradient(45deg,transparent .75em,#2a0b4b 0) bottom;color:#9851e4}.page-tag-item.tag7.clickable:hover{background:#eadbfa;background:linear-gradient(135deg,transparent .75em,#eadbfa 0) top,linear-gradient(45deg,transparent .75em,#eadbfa 0) bottom}html[data-theme=dark] .page-tag-item.tag7.clickable:hover{background:#431277;background:linear-gradient(135deg,transparent .75em,#431277 0) top,linear-gradient(45deg,transparent .75em,#431277 0) bottom}.page-tag-item.tag8{background:#fdeaf5;background:linear-gradient(135deg,transparent .75em,#fdeaf5 0) top,linear-gradient(45deg,transparent .75em,#fdeaf5 0) bottom;color:#ef59ab}html[data-theme=dark] .page-tag-item.tag8{background:#400626;background:linear-gradient(135deg,transparent .75em,#400626 0) top,linear-gradient(45deg,transparent .75em,#400626 0) bottom;color:#e81689}.page-tag-item.tag8.clickable:hover{background:#facbe5;background:linear-gradient(135deg,transparent .75em,#facbe5 0) top,linear-gradient(45deg,transparent .75em,#facbe5 0) bottom}html[data-theme=dark] .page-tag-item.tag8.clickable:hover{background:#670a3d;background:linear-gradient(135deg,transparent .75em,#670a3d 0) top,linear-gradient(45deg,transparent .75em,#670a3d 0) bottom}.toc-place-holder{margin-inline:auto;padding-inline:2.5rem;position:sticky;top:calc(var(--navbar-height) + 2rem);z-index:99;max-width:var(--content-width, 740px)}@media (max-width: 959px){.toc-place-holder{padding-inline:1.5rem}}@media print{.toc-place-holder{max-width:unset}}.toc-place-holder+.theme-hope-content:not(.custom){padding-top:0}#toc{position:absolute;inset-inline-start:calc(100% + 1rem);display:none;min-width:10rem;max-width:15rem}@media (min-width: 1440px){.has-toc #toc{display:block}}@media print{#toc{display:none!important}}#toc .toc-header{margin-bottom:.75rem;margin-inline-start:.5rem;font-weight:600;font-size:.875rem}#toc .toc-wrapper{position:relative;overflow:hidden auto;max-height:75vh;margin:0 .5rem;padding-inline-start:8px;text-overflow:ellipsis;white-space:nowrap;scroll-behavior:smooth}#toc .toc-wrapper::-webkit-scrollbar-track-piece{background:transparent}#toc .toc-wrapper::-webkit-scrollbar{width:3px}#toc .toc-wrapper::-webkit-scrollbar-thumb:vertical{background:#ddd}html[data-theme=dark] #toc .toc-wrapper::-webkit-scrollbar-thumb:vertical{background:#333}#toc .toc-wrapper:before{content:" ";position:absolute;top:0;bottom:0;inset-inline-start:0;z-index:-1;width:2px;background:var(--border-color)}#toc .toc-list{position:relative;margin:0;padding:0}#toc .toc-marker{content:" ";position:absolute;top:0;inset-inline-start:-8px;z-index:2;width:2px;height:1.7rem;background:var(--theme-color);transition:top var(--vp-tt)}#toc .toc-link{position:relative;display:block;overflow:hidden;max-width:100%;color:var(--light-grey);line-height:inherit;text-overflow:ellipsis;white-space:nowrap}#toc .toc-link.level2{padding-inline-start:0px;font-size:14px}#toc .toc-link.level3{padding-inline-start:8px;font-size:13px}#toc .toc-link.level4{padding-inline-start:16px;font-size:12px}#toc .toc-link.level5{padding-inline-start:24px;font-size:11px}#toc .toc-link.level6{padding-inline-start:32px;font-size:10px}#toc .toc-item{position:relative;box-sizing:border-box;height:1.7rem;padding:0 .5rem;list-style:none;line-height:1.7rem}#toc .toc-item:hover>.toc-link{color:var(--theme-color)}#toc .toc-item.active>.toc-link{color:var(--theme-color);font-weight:700}.dropdown-wrapper{cursor:pointer}.dropdown-wrapper:not(:hover) .arrow{transform:rotate(-180deg)}.dropdown-wrapper .dropdown-title{border-width:0;background:transparent;cursor:pointer;padding:0 .25rem;color:var(--dark-grey);font-weight:500;font-size:inherit;font-family:inherit;line-height:inherit;cursor:inherit}.dropdown-wrapper .dropdown-title:hover{border-color:transparent}.dropdown-wrapper .dropdown-title .icon{margin-inline-end:.25em;font-size:1em}.dropdown-wrapper .dropdown-title .arrow{display:inline-block;vertical-align:middle;width:1em;height:1em;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='rgba(0,0,0,0.5)' d='M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z'/%3E%3C/svg%3E");line-height:normal;transition:all .3s;font-size:1.2em}html[data-theme=dark] .dropdown-wrapper .dropdown-title .arrow{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='rgba(255,255,255,0.5)' d='M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z'/%3E%3C/svg%3E")}.dropdown-wrapper .dropdown-title .arrow.down{transform:rotate(180deg)}html[dir=rtl] .dropdown-wrapper .dropdown-title .arrow.down{transform:rotate(-180deg)}.dropdown-wrapper .dropdown-title .arrow.end{transform:rotate(90deg)}html[dir=rtl] .dropdown-wrapper .dropdown-title .arrow.end,.dropdown-wrapper .dropdown-title .arrow.start{transform:rotate(-90deg)}html[dir=rtl] .dropdown-wrapper .dropdown-title .arrow.start{transform:rotate(90deg)}.dropdown-wrapper ul{margin:0;padding:0;list-style-type:none}.dropdown-wrapper .nav-dropdown{position:absolute;top:100%;inset-inline-end:0;overflow-y:auto;box-sizing:border-box;min-width:6rem;max-height:calc(100vh - var(--navbar-height));margin:0;padding:.5rem .75rem;border:1px solid var(--grey14);border-radius:.5rem;background:var(--bg-color);box-shadow:2px 2px 10px var(--card-shadow);text-align:start;white-space:nowrap;opacity:0;visibility:hidden;transition:all .18s ease-out;transform:scale(.9)}.dropdown-wrapper:hover .nav-dropdown,.dropdown-wrapper.open .nav-dropdown{z-index:2;opacity:1;visibility:visible;transform:none}.dropdown-wrapper .nav-link{position:relative;display:block;margin-bottom:0;border-bottom:none;color:var(--dark-grey);font-weight:400;font-size:.875rem;line-height:1.7rem;transition:color var(--color-transition)}.dropdown-wrapper .nav-link:hover,.dropdown-wrapper .nav-link.active{color:var(--theme-color)}.dropdown-wrapper .dropdown-subtitle{margin:0;padding:.5rem .25rem 0;color:var(--light-grey);font-weight:600;font-size:.75rem;line-height:2;text-transform:uppercase;transition:color var(--color-transition)}.dropdown-wrapper .dropdown-subitem-wrapper{padding:0 0 .25rem}.dropdown-wrapper .dropdown-item{color:inherit;line-height:1.7rem}.dropdown-wrapper .dropdown-item:last-child .dropdown-subtitle{padding-top:0}.dropdown-wrapper .dropdown-item:last-child .dropdown-subitem-wrapper{padding-bottom:0}.nav-screen-dropdown-title{border-width:0;background:transparent;position:relative;display:flex;align-items:center;width:100%;padding:0;color:var(--dark-grey);font-size:inherit;font-family:inherit;text-align:start;cursor:pointer}.nav-screen-dropdown-title:hover,.nav-screen-dropdown-title.active{color:var(--text-color)}.nav-screen-dropdown-title .title{flex:1}.nav-screen-dropdown-title .arrow{display:inline-block;vertical-align:middle;width:1em;height:1em;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='rgba(0,0,0,0.5)' d='M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z'/%3E%3C/svg%3E");line-height:normal;transition:all .3s}html[data-theme=dark] .nav-screen-dropdown-title .arrow{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='rgba(255,255,255,0.5)' d='M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z'/%3E%3C/svg%3E")}.nav-screen-dropdown-title .arrow.down{transform:rotate(180deg)}html[dir=rtl] .nav-screen-dropdown-title .arrow.down{transform:rotate(-180deg)}.nav-screen-dropdown-title .arrow.end{transform:rotate(90deg)}html[dir=rtl] .nav-screen-dropdown-title .arrow.end,.nav-screen-dropdown-title .arrow.start{transform:rotate(-90deg)}html[dir=rtl] .nav-screen-dropdown-title .arrow.start{transform:rotate(90deg)}.nav-screen-dropdown{overflow:hidden;margin:.5rem 0 0;padding:0;list-style:none;transition:transform .1s ease-out;transform:scaleY(1);transform-origin:top}.nav-screen-dropdown.hide{height:0;margin:0;transform:scaleY(0)}.nav-screen-dropdown .nav-link{position:relative;display:block;padding-inline-start:.5rem;font-weight:400;line-height:2}.nav-screen-dropdown .nav-link:hover,.nav-screen-dropdown .nav-link.active{color:var(--theme-color)}.nav-screen-dropdown .nav-link .icon{font-size:1em}.nav-screen-dropdown .dropdown-item{color:inherit;line-height:1.7rem}.nav-screen-dropdown .dropdown-subtitle{margin:0;padding-inline-start:.25rem;color:var(--light-grey);font-weight:600;font-size:.75rem;line-height:2;text-transform:uppercase;transition:color var(--color-transition)}.nav-screen-dropdown .dropdown-subtitle .nav-link{padding:0}.nav-screen-dropdown .dropdown-subitem-wrapper{margin:0;padding:0;list-style:none}.nav-screen-dropdown .dropdown-subitem{padding-inline-start:.5rem;font-size:.9em}.nav-screen-links{display:none;padding-bottom:.75rem}@media (max-width: 719px){.nav-screen-links{display:block}}.nav-screen-links .navbar-links-item{position:relative;display:block;padding:12px 4px 11px 0;border-bottom:1px solid var(--border-color);font-size:16px;line-height:1.5rem;transition:border-bottom-color var(--color-transition)}.nav-screen-links .nav-link{display:inline-block;width:100%;color:var(--dark-grey);font-weight:400}.nav-screen-links .nav-link:hover{color:var(--text-color)}.nav-screen-links .nav-link.active{color:var(--theme-color)}.vp-nav-screen-container{max-width:320px;margin:0 auto;padding:2rem 0 4rem}#nav-screen{position:fixed;inset:var(--navbar-height) 0 0 0;z-index:150;display:none;overflow-y:auto;padding:0 2rem;background:var(--bg-color);transition:background .5s}@media (max-width: 719px){#nav-screen{display:block}}#nav-screen.fade-enter-active,#nav-screen.fade-leave-active{transition:opacity .25s}#nav-screen.fade-enter-active .vp-nav-screen-container,#nav-screen.fade-leave-active .vp-nav-screen-container{transition:transform .25s ease}#nav-screen.fade-enter-from,#nav-screen.fade-leave-to{opacity:0}#nav-screen.fade-enter-from .vp-nav-screen-container,#nav-screen.fade-leave-to .vp-nav-screen-container{transform:translateY(-8px)}#nav-screen .icon{margin-inline-end:.25em}.vp-outlook-wrapper{display:flex;justify-content:space-around}.vp-nav-logo{vertical-align:top;height:var(--navbar-line-height);margin-inline-end:.8rem}.vp-nav-logo.light{display:inline-block}.vp-nav-logo.dark,html[data-theme=dark] .vp-nav-logo.light{display:none}html[data-theme=dark] .vp-nav-logo.dark{display:inline-block}.vp-site-name{position:relative;color:var(--text-color);font-size:1.25rem}@media (max-width: 719px){.vp-site-name{overflow:hidden;width:calc(100vw - 9.4rem);text-overflow:ellipsis;white-space:nowrap}}.vp-brand:hover .vp-site-name{color:var(--theme-color)}.vp-navbar .vp-nav-links{display:flex;align-items:center;font-size:.875rem}.vp-navbar .nav-item{position:relative;margin:0 .25rem;line-height:2rem}.vp-navbar .nav-item:first-child{margin-inline-start:0}.vp-navbar .nav-item:last-child{margin-inline-end:0}.vp-navbar .nav-item>.nav-link{color:var(--dark-grey)}.vp-navbar .nav-item>.nav-link:after{content:" ";position:absolute;inset:auto 50% 0;height:2px;border-radius:1px;background:var(--theme-color-light);visibility:hidden;transition:inset .2s ease-in-out}.vp-navbar .nav-item>.nav-link.active{color:var(--theme-color)}.vp-navbar .nav-item>.nav-link:hover:after,.vp-navbar .nav-item>.nav-link.active:after{inset:auto 0 0;visibility:visible}.vp-navbar{--navbar-line-height: calc( var(--navbar-height) - var(--navbar-vertical-padding) * 2 );position:fixed;inset:0 0 auto;z-index:175;display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;height:var(--navbar-height);padding:var(--navbar-vertical-padding) var(--navbar-horizontal-padding);background:var(--navbar-bg-color);box-shadow:0 2px 8px var(--card-shadow);line-height:var(--navbar-line-height);white-space:nowrap;transition:transform ease-in-out .3s,background var(--color-transition),box-shadow var(--color-transition);-webkit-backdrop-filter:saturate(150%) blur(12px);backdrop-filter:saturate(150%) blur(12px)}@media print{.vp-navbar{display:none}}.hide-navbar .vp-navbar.auto-hide{transform:translateY(-100%)}.vp-navbar .nav-link{padding:0 .25rem;color:var(--dark-grey)}.vp-navbar .nav-link.active{color:var(--theme-color)}.vp-navbar .nav-link .icon{margin-inline-end:.25em;font-size:1em}.vp-navbar.hide-icon .vp-nav-links .icon{display:none!important}.vp-navbar-start,.vp-navbar-end,.vp-navbar-center{display:flex;flex:1;align-items:center}.vp-navbar-start>*,.vp-navbar-end>*,.vp-navbar-center>*{position:relative;margin:0 .25rem!important}.vp-navbar-start>*:first-child,.vp-navbar-end>*:first-child,.vp-navbar-center>*:first-child{margin-inline-start:0!important}.vp-navbar-start>*:last-child,.vp-navbar-end>*:last-child,.vp-navbar-center>*:last-child{margin-inline-end:0!important}.vp-navbar-start{justify-content:start}.vp-navbar-center{justify-content:center}.vp-navbar-end{justify-content:end}.vp-navbar .vp-repo{margin:0!important}.vp-navbar .vp-repo-link{display:inline-block;margin:auto;padding:6px;color:var(--dark-grey);line-height:1}.vp-navbar .vp-repo-link:hover,.vp-navbar .vp-repo-link:active{color:var(--theme-color)}.vp-toggle-navbar-button{border-width:0;background:transparent;cursor:pointer;position:relative;display:none;align-items:center;justify-content:center;padding:6px}@media screen and (max-width: 719px){.vp-toggle-navbar-button{display:flex}}.vp-toggle-navbar-button>span{position:relative;overflow:hidden;width:16px;height:14px}.vp-toggle-navbar-button .vp-top,.vp-toggle-navbar-button .vp-middle,.vp-toggle-navbar-button .vp-bottom{position:absolute;width:16px;height:2px;background:var(--dark-grey);transition:top .25s,background .5s,transform .25s}.vp-toggle-navbar-button .vp-top{top:0;left:0;transform:translate(0)}.vp-toggle-navbar-button .vp-middle{top:6px;left:0;transform:translate(8px)}.vp-toggle-navbar-button .vp-bottom{top:12px;left:0;transform:translate(4px)}.vp-toggle-navbar-button:hover .vp-top{top:0;left:0;transform:translate(4px)}.vp-toggle-navbar-button:hover .vp-middle{top:6;left:0;transform:translate(0)}.vp-toggle-navbar-button:hover .vp-bottom{top:12px;left:0;transform:translate(8px)}.vp-toggle-navbar-button.is-active .vp-top{top:6px;transform:translate(0) rotate(225deg)}.vp-toggle-navbar-button.is-active .vp-middle{top:6px;transform:translate(16px)}.vp-toggle-navbar-button.is-active .vp-bottom{top:6px;transform:translate(0) rotate(135deg)}.vp-toggle-navbar-button.is-active:hover .vp-top,.vp-toggle-navbar-button.is-active:hover .vp-middle,.vp-toggle-navbar-button.is-active:hover .vp-bottom{background:var(--theme-color);transition:top .25s,background .25s,transform .25s}.vp-toggle-sidebar-button{border-width:0;background:transparent;cursor:pointer;display:none;vertical-align:middle;box-sizing:content-box;width:1rem;height:1rem;padding:.5rem;font:unset;transition:transform .2s ease-in-out}@media screen and (max-width: 719px){.vp-toggle-sidebar-button{display:block;padding-inline-end:var(--navbar-mobile-horizontal-padding)}}.vp-toggle-sidebar-button:before,.vp-toggle-sidebar-button:after,.vp-toggle-sidebar-button .icon{display:block;width:100%;height:2px;border-radius:.05em;background:var(--dark-grey);transition:transform .2s ease-in-out}.vp-toggle-sidebar-button:before{content:" ";margin-top:.125em}.sidebar-open .vp-toggle-sidebar-button:before{transform:translateY(.34rem) rotate(135deg)}.vp-toggle-sidebar-button:after{content:" ";margin-bottom:.125em}.sidebar-open .vp-toggle-sidebar-button:after{transform:translateY(-.34rem) rotate(-135deg)}.vp-toggle-sidebar-button .icon{margin:.2em 0}.sidebar-open .vp-toggle-sidebar-button .icon{transform:scale(0)}.appearance-title{display:block;margin:0;padding:0 .25rem;color:var(--light-grey);font-weight:600;font-size:.75rem;line-height:2;transition:color var(--color-transition)}#appearance-switch{border-width:0;background:transparent;vertical-align:middle;padding:6px;color:var(--dark-grey);cursor:pointer;transition:color var(--color-transition)}#appearance-switch:hover{color:var(--theme-color)}#appearance-switch .icon{width:1.25rem;height:1.25rem}.outlook-button{border-width:0;background:transparent;cursor:pointer;position:relative;padding:.375rem;color:var(--dark-grey)}.outlook-button .icon{vertical-align:middle;width:1.25rem;height:1.25rem}.outlook-dropdown{position:absolute;top:100%;inset-inline-end:0;overflow-y:auto;box-sizing:border-box;min-width:100px;margin:0;padding:.5rem .75rem;border:1px solid var(--grey14);border-radius:.25rem;background:var(--bg-color);box-shadow:2px 2px 10px var(--card-shadow);text-align:start;white-space:nowrap;opacity:0;visibility:hidden;transition:all .18s ease-out;transform:scale(.8)}.outlook-dropdown>*:not(:last-child){padding-bottom:.5rem;border-bottom:1px solid var(--grey14)}.outlook-button:hover .outlook-dropdown,.outlook-button.open .outlook-dropdown{z-index:2;opacity:1;visibility:visible;transform:scale(1)}.theme-color-title{display:block;margin:0;padding:0 .25rem;color:var(--light-grey);font-weight:600;font-size:.75rem;line-height:2;transition:color var(--color-transition)}#theme-color-picker{display:flex;margin:0;padding:0;list-style-type:none;font-size:14px}#theme-color-picker li span{display:inline-block;vertical-align:middle;width:15px;height:15px;margin:0 2px;border-radius:2px}#theme-color-picker li span.theme-color,#theme-color-picker li span.theme-color html[data-theme=dark]{background:#3eaf7c}@media print{.full-screen-wrapper{display:none}}.full-screen-title{display:block;margin:0;padding:0 .25rem;color:var(--light-grey);font-weight:600;font-size:.75rem;line-height:2;transition:color var(--color-transition)}.full-screen,.cancel-full-screen{border-width:0;background:transparent;vertical-align:middle;padding:.375rem;color:var(--dark-grey);cursor:pointer}.full-screen:hover,.cancel-full-screen:hover{color:var(--theme-color)}.full-screen .icon,.cancel-full-screen .icon{width:1.25rem;height:1.25rem}.enter-fullscreen-icon:hover,.cancel-fullscreen-icon{color:var(--theme-color)}.cancel-fullscreen-icon:hover{color:var(--dark-grey)}.vp-sidebar-heading{display:flex;align-items:center;overflow:hidden;box-sizing:border-box;width:calc(100% - 1rem);margin:0;margin-inline:.5rem;padding:.25rem .5rem;border-width:0;border-radius:.375rem;background:transparent;color:var(--text-color);font-size:1.1em;line-height:1.5;-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:color .15s ease;transform:rotate(0)}.vp-sidebar-heading.open{color:inherit}.vp-sidebar-heading.clickable:hover{background:var(--bg-color-secondary)}.vp-sidebar-heading.clickable.exact{border-inline-start-color:var(--theme-color);color:var(--theme-color)}.vp-sidebar-heading.clickable.exact a{color:inherit}.vp-sidebar-heading .icon{margin-inline-end:.25em}.vp-sidebar-heading .vp-sidebar-title{flex:1}.vp-sidebar-heading .vp-arrow{display:inline-block;vertical-align:middle;width:1em;height:1em;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='rgba(0,0,0,0.5)' d='M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z'/%3E%3C/svg%3E");line-height:normal;transition:all .3s;font-size:1.5em}html[data-theme=dark] .vp-sidebar-heading .vp-arrow{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='rgba(255,255,255,0.5)' d='M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z'/%3E%3C/svg%3E")}.vp-sidebar-heading .vp-arrow.down{transform:rotate(180deg)}html[dir=rtl] .vp-sidebar-heading .vp-arrow.down{transform:rotate(-180deg)}.vp-sidebar-heading .vp-arrow.end{transform:rotate(90deg)}html[dir=rtl] .vp-sidebar-heading .vp-arrow.end,.vp-sidebar-heading .vp-arrow.start{transform:rotate(-90deg)}html[dir=rtl] .vp-sidebar-heading .vp-arrow.start{transform:rotate(90deg)}button.vp-sidebar-heading{outline:none;font-weight:inherit;font-family:inherit;line-height:inherit;text-align:start;cursor:pointer}.vp-sidebar-link{display:inline-block;box-sizing:border-box;width:calc(100% - 1rem);margin-inline:.5rem;padding:.25rem .5rem;border-radius:.375rem;color:var(--text-color);font-weight:400;font-size:1em;line-height:1.5}.vp-sidebar-link .icon{margin-inline-end:.25em}.vp-sidebar-link:hover{background:var(--bg-color-secondary)}.vp-sidebar-link.active{background:var(--theme-color-mask);color:var(--theme-color);font-weight:500}.vp-sidebar-link.active .icon{color:var(--theme-color)}.vp-sidebar-sub-headers .vp-sidebar-link{padding-top:.25rem;padding-bottom:.25rem;border-inline-start:none}.vp-sidebar-sub-headers .vp-sidebar-link.active{background:transparent;font-weight:500}.vp-sidebar-group:not(.collapsible) .vp-sidebar-heading:not(.clickable){color:inherit;cursor:auto}.vp-sidebar-group .vp-sidebar-group{padding-inline-start:.75rem}.vp-sidebar-group .vp-sidebar-group .vp-sidebar-heading{font-size:1em}.vp-sidebar-group .vp-sidebar-link{padding-inline-start:1.25rem}.vp-sidebar-links,.vp-sidebar-links ul{margin:0;padding:0}.vp-sidebar-links ul.vp-sidebar-sub-headers{padding-inline-start:.75rem;font-size:.95em}@media (min-width: 1440px){.has-toc .vp-sidebar-links ul.vp-sidebar-sub-headers{display:none}}.vp-sidebar-links li{list-style-type:none}.vp-sidebar>.vp-sidebar-links{padding:1.5rem 0}@media (max-width: 719px){.vp-sidebar>.vp-sidebar-links{padding:1rem 0}}.vp-sidebar>.vp-sidebar-links>li>.vp-sidebar-link{font-size:1.1em}.vp-sidebar>.vp-sidebar-links>li:not(:first-child){margin-top:.5rem}.vp-sidebar{position:fixed;top:0;bottom:0;inset-inline-start:0;z-index:1;overflow-y:auto;width:var(--sidebar-width);margin:0;padding-inline-start:calc(var(--sidebar-space) - var(--sidebar-width));background:var(--sidebar-bg-color);box-shadow:2px 0 8px var(--card-shadow);font-size:.94rem;transition:background var(--color-transition),box-shadow var(--color-transition),padding var(--transform-transition),transform var(--transform-transition);-webkit-backdrop-filter:saturate(150%) blur(12px);backdrop-filter:saturate(150%) blur(12px);scrollbar-color:var(--theme-color) var(--border-color);scrollbar-width:thin}@media (max-width: 959px){.vp-sidebar{font-size:.86em}}@media (max-width: 719px){.vp-sidebar{z-index:125;box-shadow:none;transform:translate(-100%)}html[dir=rtl] .vp-sidebar{transform:translate(100%)}}@media (min-width: 1440px){.vp-sidebar{padding-bottom:3rem;box-shadow:none;font-size:1rem}}@media print{.vp-sidebar{display:none}}.vp-sidebar a{display:inline-block;color:var(--text-color);font-weight:400}.vp-sidebar .icon{margin-inline-end:.25em}.vp-sidebar.hide-icon .icon{display:none!important}.vp-sidebar-mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9;background:rgba(0,0,0,.15)}.vp-sidebar-mask.fade-enter-active,.vp-sidebar-mask.fade-leave-active{transition:opacity .25s}.vp-sidebar-mask.fade-enter-from,.vp-sidebar-mask.fade-leave-to{opacity:0}.vp-project-home .vp-highlight-wrapper,.vp-project-home .vp-feature-wrapper{border-bottom:1px solid var(--border-color)}.search-pro-button{border-width:0;background:transparent;display:inline-flex;align-items:center;box-sizing:content-box;height:1.25rem;margin-inline:1rem 0;margin-top:0;margin-bottom:0;padding:.5rem;border:0;border:1px solid var(--vp-bgl);border-radius:1rem;background:var(--vp-bgl);color:var(--vp-c);font-weight:500;cursor:pointer;transition:background var(--vp-ct),color var(--vp-ct)}@media print{.search-pro-button{display:none}}@media (max-width: 959px){.search-pro-button{border-radius:50%}}.search-pro-button:hover{border:1px solid var(--vp-tc);background-color:var(--vp-bglt);color:var(--vp-clt)}.search-pro-button .search-icon{width:1.25rem;height:1.25rem}.search-pro-placeholder{margin-inline:.25rem;font-size:1rem}@media (max-width: 959px){.search-pro-placeholder{display:none}}.search-pro-key-hints{font-size:.75rem}@media (max-width: 959px){.search-pro-key-hints{display:none}}.search-pro-key{display:inline-block;min-width:1em;margin-inline:.125rem;padding:.25rem;border:1px solid var(--vp-brc);border-radius:4px;box-shadow:1px 1px 4px 0 var(--card-shadow);line-height:1;letter-spacing:-.1em;transition:background var(--vp-ct),color var(--vp-ct),border var(--vp-ct) box-shadow var(--vp-ct)}@keyframes search-pro-fade-in{0%{opacity:.2}to{opacity:1}}.search-pro-modal-wrapper{position:fixed;top:0;left:0;z-index:997;display:flex;align-items:center;justify-content:center;overflow:auto;width:100vw;height:100vh;cursor:default}.search-pro-mask{position:fixed;top:0;left:0;z-index:998;width:100vw;height:100vh;animation:.25s search-pro-fade-in;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.search-pro-modal{position:absolute;z-index:999;display:flex;flex-direction:column;width:calc(100% - 6rem);max-width:50em;border-radius:10px;background:var(--vp-bg);box-shadow:2px 2px 10px 0 var(--card-shadow);transition:background var(--vp-ct);animation:.15s pwa-opened}@media (max-width: 1280px){.search-pro-modal{animation:.25s pwa-mobile}}@media (max-width: 719px){.search-pro-modal{width:100vw;max-width:unset;height:100vh}}.search-pro-box{display:flex;margin:1rem}.search-pro-box form{position:relative;display:flex;flex:1}.search-pro-box label{position:absolute;top:calc(50% - .75rem);left:.5rem;color:var(--vp-tc)}html[dir=rtl] .search-pro-box label{right:.5rem;left:unset}.search-pro-box label .search-icon{width:1.5rem;height:1.5rem}.search-pro-clear-button{border-width:0;background:transparent;cursor:pointer;position:absolute;top:calc(50% - 10px);right:.75rem;padding:0;color:var(--vp-tc)}html[dir=rtl] .search-pro-clear-button{right:.75rem;left:unset}.search-pro-clear-button:hover{border-radius:50%;background-color:#0000001a}.search-pro-close-button{border-width:0;background:transparent;cursor:pointer;display:none;margin-inline-start:.5rem;margin-inline-end:-.5rem;padding:.5rem;color:var(--grey3);font-size:1rem}@media (max-width: 719px){.search-pro-close-button{display:block}}.search-pro-input{flex:1;width:0;margin:0;padding-top:.25rem;padding-bottom:.25rem;padding-inline-start:2.5rem;padding-inline-end:2rem;border:0;border:2px solid var(--vp-tc);border-radius:8px;background:var(--vp-bg);color:var(--vp-c);outline:none;font-size:1.25rem;line-height:2.5;-webkit-appearance:none;-moz-appearance:none;appearance:none}.search-pro-input::-webkit-search-cancel-button{display:none}.search-pro-suggestions{position:absolute;top:calc(100% + 4px);right:0;left:0;z-index:20;overflow:visible;overflow-y:auto;max-height:50vh;margin:0;padding:0;border-radius:.5rem;background-color:var(--vp-bg);box-shadow:2px 2px 10px 0 var(--card-shadow);list-style:none;line-height:1.5}.search-pro-suggestion{padding:.25rem 1rem;border-top:1px solid var(--vp-brc);cursor:pointer}.search-pro-suggestion:first-child{border-top:none}.search-pro-suggestion.active,.search-pro-suggestion:hover{background-color:var(--vp-bglt)}.search-pro-auto-complete{display:none;float:right;margin:0 .5rem;padding:4px;border:1px solid var(--vp-brc);border-radius:4px;box-shadow:1px 1px 4px 0 var(--card-shadow);font-size:12px;line-height:1}.search-pro-suggestion.active .search-pro-auto-complete{display:block}.search-pro-result-wrapper{flex-grow:1;overflow-y:auto;min-height:40vh;max-height:calc(80vh - 10rem);padding:0 1rem}@media (max-width: 719px){.search-pro-result-wrapper{min-height:unset;max-height:unset}}.search-pro-result-wrapper.loading,.search-pro-result-wrapper.empty{display:flex;align-items:center;justify-content:center;padding:1.5rem;font-weight:600;font-size:22px;text-align:center}.search-pro-hints{margin-top:1rem;padding:.75rem .5rem;box-shadow:0 -1px 4px 0 var(--card-shadow);line-height:1}.search-pro-hint{display:inline-flex;align-items:center;margin:0 .5rem}.search-pro-hint kbd{margin:0 .5rem;padding:2px;border:1px solid var(--vp-brc);border-radius:4px;box-shadow:1px 1px 4px 0 var(--card-shadow)}.search-pro-hint kbd+kbd{margin-inline-start:-.25rem}.search-pro-hint svg{display:block;width:15px;height:15px}.search-pro-result-wrapper{scrollbar-color:var(--vp-tc) var(--vp-brc);scrollbar-width:thin}@media (max-width: 419px){.search-pro-result-wrapper{font-size:14px}}.search-pro-result-wrapper::-webkit-scrollbar{width:6px;height:6px}.search-pro-result-wrapper::-webkit-scrollbar-track-piece{border-radius:6px;background:rgba(0,0,0,.1)}.search-pro-result-wrapper::-webkit-scrollbar-thumb{border-radius:6px;background:var(--vp-tc)}.search-pro-result-wrapper::-webkit-scrollbar-thumb:active{background:var(--vp-tcl)}.search-pro-result-wrapper mark{border-radius:.25em;line-height:1}.search-pro-result-list{margin:0;padding:0}.search-pro-result-list-item{display:block;list-style:none}.search-pro-result-title{position:sticky;top:-2px;z-index:10;margin:-4px;margin-bottom:.25rem;padding:4px;background:var(--vp-bg);color:var(--vp-tc);font-weight:600;font-size:.85em;line-height:2rem;text-indent:.5em}.search-pro-result-item.active .search-pro-result-title{color:var(--vp-tc)}.search-pro-result-type{display:block;width:1rem;height:1rem;margin-inline-start:-.5rem;padding:.5rem;color:var(--vp-tc)}.search-pro-remove-icon{border-width:0;background:transparent;cursor:pointer;box-sizing:content-box;height:1.5rem;padding:0;border-radius:50%;color:var(--vp-tc);font-size:1rem}.search-pro-remove-icon svg{width:1.5rem;height:1.5rem}.search-pro-remove-icon:hover{background:rgba(128,128,128,.3)}.search-pro-result-content{display:flex;flex-grow:1;flex-direction:column;align-items:stretch;justify-content:center;line-height:1.5}.search-pro-result-content .content-header{margin-bottom:.25rem;border-bottom:1px solid var(--vp-brcd);font-size:.9em}.search-pro-result-item{display:flex;align-items:center;margin:.5rem 0;padding:.5rem .75rem;border-radius:.25rem;background:var(--vp-bgl);color:inherit;box-shadow:0 1px 3px 0 var(--card-shadow);font-weight:400;white-space:pre-wrap;word-wrap:break-word}.search-pro-result-item strong{color:var(--vp-tc)}.search-pro-result-item:hover,.search-pro-result-item.active{background-color:var(--vp-tcl);color:var(--white);cursor:pointer}.search-pro-result-item:hover .search-pro-result-type,.search-pro-result-item:hover .search-pro-remove-icon,.search-pro-result-item:hover strong,.search-pro-result-item.active .search-pro-result-type,.search-pro-result-item.active .search-pro-remove-icon,.search-pro-result-item.active strong{color:var(--white)} diff --git a/assets/styles-0671a096-13891fb5.js b/assets/styles-0671a096-13891fb5.js new file mode 100644 index 000000000..15dc7ba87 --- /dev/null +++ b/assets/styles-0671a096-13891fb5.js @@ -0,0 +1,110 @@ +import{G as V}from"./layout-58f7ec6d.js";import{ag as D,ah as M,ai as R,aj as j,ak as F,al as U,ad as H,p as N,l as y,q as W,c as $,j as G,r as C,o as E,h as _,y as X,t as J,am as K}from"./mermaid.core-d8bc71ff.js";import{r as Q}from"./index-f9462f3f-9287aadd.js";function Y(e){return typeof e=="string"?new D([document.querySelectorAll(e)],[document.documentElement]):new D([R(e)],M)}const Z=(e,r)=>j.lang.round(F.parse(e)[r]),O=Z;function be(e,r){return!!e.children(r).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,r){r&&e.attr("style",r)}function ue(e,r,c){r&&e.attr("class",r).attr("class",c+" "+e.attr("class"))}function we(e,r){var c=r.graph();if(U(c)){var a=c.transition;if(H(a))return a(e)}return e}function le(e,r){var c=e.append("foreignObject").attr("width","100000"),a=c.append("xhtml:div");a.attr("xmlns","http://www.w3.org/1999/xhtml");var i=r.label;switch(typeof i){case"function":a.insert(i);break;case"object":a.insert(function(){return i});break;default:a.html(i)}te(a,r.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={},re=function(e){const r=Object.keys(e);for(const c of r)z[c]=e[c]},q=function(e,r,c,a,i,d){const u=a.select(`[id="${c}"]`);Object.keys(e).forEach(function(p){const l=e[p];let g="default";l.classes.length>0&&(g=l.classes.join(" ")),g=g+" flowchart-label";const w=N(l.styles);let t=l.text!==void 0?l.text:l.id,s;if(y.info("vertex",l,l.labelType),l.labelType==="markdown")y.info("vertex",l,l.labelType);else if(W($().flowchart.htmlLabels)){const m={label:t.replace(/fa[blrs]?:fa-[\w-]+/g,k=>``)};s=le(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(l.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"}r.setNode(l.id,{labelStyle:w.labelStyle,shape:o,labelText:t,labelType:l.labelType,rx:b,ry:b,class:g,style:w.style,id:l.id,link:l.link,linkTarget:l.linkTarget,tooltip:d.db.getTooltip(l.id)||"",domId:d.db.lookUpDomId(l.id),haveCallback:l.haveCallback,width:l.type==="group"?500:void 0,dir:l.dir,type:l.type,props:l.props,padding:$().flowchart.padding}),y.info("setNode",{labelStyle:w.labelStyle,labelType:l.labelType,shape:o,labelText:t,rx:b,ry:b,class:g,style:w.style,id:l.id,domId:d.db.lookUpDomId(l.id),width:l.type==="group"?500:void 0,type:l.type,dir:l.dir,props:l.props,padding:$().flowchart.padding})})},P=function(e,r,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 l=p+"-"+i[p];y.info("abc78 new link id to be used is",p,l,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=l,t.classes="flowchart-link "+g+" "+w,r.setEdge(n.start,n.end,t,a)})},ae=function(e,r){return r.db.getClasses()},oe=async function(e,r,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 l;d==="sandbox"&&(l=_("#i"+r));const g=d==="sandbox"?_(l.nodes()[0].contentDocument.body):_("body"),w=d==="sandbox"?l.nodes()[0].contentDocument:document,t=new V({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{const c=O,a=c(e,"r"),i=c(e,"g"),d=c(e,"b");return K(a,i,d,r)},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{te as a,le as b,we as c,ue as d,fe as e,he as f,ye as g,be as i,Y as s}; diff --git a/assets/styles-24dfea38-ae7583ad.js b/assets/styles-24dfea38-ae7583ad.js new file mode 100644 index 000000000..9211ca017 --- /dev/null +++ b/assets/styles-24dfea38-ae7583ad.js @@ -0,0 +1,207 @@ +import{c as Y,g as Ut,s as zt,a as Mt,b as Ht,v as Xt,x as Kt,l as D,j as ot,z as Wt,b2 as Jt}from"./mermaid.core-d8bc71ff.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;en[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,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*<>)/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;d0&&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}; diff --git a/assets/styles-8b67d7cb-2a1933f6.js b/assets/styles-8b67d7cb-2a1933f6.js new file mode 100644 index 000000000..0d7c51e7d --- /dev/null +++ b/assets/styles-8b67d7cb-2a1933f6.js @@ -0,0 +1,160 @@ +import{s as Xe,g as We,a as qe,b as He,c as F,v as Je,x as Ze,j as v,z as $e,l as et,y as Pe,h as U,d as tt,ar as ye}from"./mermaid.core-d8bc71ff.js";var De=function(){var e=function(L,u,a,o){for(a=a||{},o=L.length;o--;a[L[o]]=u);return a},n=[1,16],r=[1,17],h=[1,18],l=[1,37],A=[1,38],g=[1,24],D=[1,22],B=[1,23],_=[1,29],ne=[1,30],ue=[1,31],re=[1,32],ae=[1,33],le=[1,34],ce=[1,25],oe=[1,26],he=[1,27],Ae=[1,28],d=[1,42],E=[1,39],C=[1,40],m=[1,41],k=[1,43],pe=[1,9],c=[1,8,9],Y=[1,54],K=[1,55],j=[1,56],Q=[1,57],X=[1,58],fe=[1,59],de=[1,60],W=[1,8,9,38],Ne=[1,71],V=[1,8,9,12,13,21,36,38,41,58,59,60,61,62,63,64,69,71],q=[1,8,9,12,13,19,21,36,38,41,45,58,59,60,61,62,63,64,69,71,84,86,87,88,89],H=[13,84,86,87,88,89],M=[13,63,64,84,86,87,88,89],ve=[13,58,59,60,61,62,84,86,87,88,89],Ee=[1,90],Ce=[1,8,9,36,38,41],J=[1,8,9,21],me={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,cssClassStatement:27,noteStatement:28,direction:29,acc_title:30,acc_title_value:31,acc_descr:32,acc_descr_value:33,acc_descr_multiline_value:34,namespaceIdentifier:35,STRUCT_START:36,classStatements:37,STRUCT_STOP:38,NAMESPACE:39,classIdentifier:40,STYLE_SEPARATOR:41,members:42,CLASS:43,ANNOTATION_START:44,ANNOTATION_END:45,MEMBER:46,SEPARATOR:47,relation:48,NOTE_FOR:49,noteText:50,NOTE:51,direction_tb:52,direction_bt:53,direction_rl:54,direction_lr:55,relationType:56,lineType:57,AGGREGATION:58,EXTENSION:59,COMPOSITION:60,DEPENDENCY:61,LOLLIPOP:62,LINE:63,DOTTED_LINE:64,CALLBACK:65,LINK:66,LINK_TARGET:67,CLICK:68,CALLBACK_NAME:69,CALLBACK_ARGS:70,HREF:71,CSSCLASS:72,commentToken:73,textToken:74,graphCodeTokens:75,textNoTagsToken:76,TAGSTART:77,TAGEND:78,"==":79,"--":80,PCT:81,DEFAULT:82,SPACE:83,MINUS:84,keywords:85,UNICODE_TEXT:86,NUM:87,ALPHA:88,BQUOTE_STR:89,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",19:"GENERICTYPE",21:"LABEL",30:"acc_title",31:"acc_title_value",32:"acc_descr",33:"acc_descr_value",34:"acc_descr_multiline_value",36:"STRUCT_START",38:"STRUCT_STOP",39:"NAMESPACE",41:"STYLE_SEPARATOR",43:"CLASS",44:"ANNOTATION_START",45:"ANNOTATION_END",46:"MEMBER",47:"SEPARATOR",49:"NOTE_FOR",51:"NOTE",52:"direction_tb",53:"direction_bt",54:"direction_rl",55:"direction_lr",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:"CSSCLASS",75:"graphCodeTokens",77:"TAGSTART",78:"TAGEND",79:"==",80:"--",81:"PCT",82:"DEFAULT",83:"SPACE",84:"MINUS",85:"keywords",86:"UNICODE_TEXT",87:"NUM",88:"ALPHA",89:"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,2],[10,2],[10,1],[22,4],[22,5],[35,2],[37,1],[37,2],[37,3],[23,1],[23,3],[23,4],[23,6],[40,2],[40,3],[25,4],[42,1],[42,2],[24,1],[24,2],[24,1],[24,1],[20,3],[20,4],[20,4],[20,5],[28,3],[28,2],[29,1],[29,1],[29,1],[29,1],[48,3],[48,2],[48,2],[48,1],[56,1],[56,1],[56,1],[56,1],[56,1],[57,1],[57,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],[73,1],[73,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[76,1],[76,1],[76,1],[76,1],[16,1],[16,1],[16,1],[16,1],[18,1],[50,1]],performAction:function(u,a,o,i,p,t,G){var s=t.length-1;switch(p){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:i.addRelation(t[s]);break;case 17:t[s-1].title=i.cleanupLabel(t[s]),i.addRelation(t[s-1]);break;case 26:this.$=t[s].trim(),i.setAccTitle(this.$);break;case 27:case 28:this.$=t[s].trim(),i.setAccDescription(this.$);break;case 29:i.addClassesToNamespace(t[s-3],t[s-1]);break;case 30:i.addClassesToNamespace(t[s-4],t[s-1]);break;case 31:this.$=t[s],i.addNamespace(t[s]);break;case 32:this.$=[t[s]];break;case 33:this.$=[t[s-1]];break;case 34:t[s].unshift(t[s-2]),this.$=t[s];break;case 36:i.setCssClass(t[s-2],t[s]);break;case 37:i.addMembers(t[s-3],t[s-1]);break;case 38:i.setCssClass(t[s-5],t[s-3]),i.addMembers(t[s-5],t[s-1]);break;case 39:this.$=t[s],i.addClass(t[s]);break;case 40:this.$=t[s-1],i.addClass(t[s-1]),i.setClassLabel(t[s-1],t[s]);break;case 41:i.addAnnotation(t[s],t[s-2]);break;case 42:this.$=[t[s]];break;case 43:t[s].push(t[s-1]),this.$=t[s];break;case 44:break;case 45:i.addMember(t[s-1],i.cleanupLabel(t[s]));break;case 46:break;case 47:break;case 48:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 49:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 50:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 51:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 52:i.addNote(t[s],t[s-1]);break;case 53:i.addNote(t[s]);break;case 54:i.setDirection("TB");break;case 55:i.setDirection("BT");break;case 56:i.setDirection("RL");break;case 57:i.setDirection("LR");break;case 58:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 59:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 60:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 61:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 62:this.$=i.relationType.AGGREGATION;break;case 63:this.$=i.relationType.EXTENSION;break;case 64:this.$=i.relationType.COMPOSITION;break;case 65:this.$=i.relationType.DEPENDENCY;break;case 66:this.$=i.relationType.LOLLIPOP;break;case 67:this.$=i.lineType.LINE;break;case 68:this.$=i.lineType.DOTTED_LINE;break;case 69:case 75:this.$=t[s-2],i.setClickEvent(t[s-1],t[s]);break;case 70:case 76:this.$=t[s-3],i.setClickEvent(t[s-2],t[s-1]),i.setTooltip(t[s-2],t[s]);break;case 71:this.$=t[s-2],i.setLink(t[s-1],t[s]);break;case 72:this.$=t[s-3],i.setLink(t[s-2],t[s-1],t[s]);break;case 73:this.$=t[s-3],i.setLink(t[s-2],t[s-1]),i.setTooltip(t[s-2],t[s]);break;case 74:this.$=t[s-4],i.setLink(t[s-3],t[s-2],t[s]),i.setTooltip(t[s-3],t[s-1]);break;case 77:this.$=t[s-3],i.setClickEvent(t[s-2],t[s-1],t[s]);break;case 78:this.$=t[s-4],i.setClickEvent(t[s-3],t[s-2],t[s-1]),i.setTooltip(t[s-3],t[s]);break;case 79:this.$=t[s-3],i.setLink(t[s-2],t[s]);break;case 80:this.$=t[s-4],i.setLink(t[s-3],t[s-1],t[s]);break;case 81:this.$=t[s-4],i.setLink(t[s-3],t[s-1]),i.setTooltip(t[s-3],t[s]);break;case 82:this.$=t[s-5],i.setLink(t[s-4],t[s-2],t[s]),i.setTooltip(t[s-4],t[s-1]);break;case 83:i.setCssClass(t[s-1],t[s]);break}},table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:35,17:19,18:36,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:n,32:r,34:h,35:20,39:l,40:21,43:A,44:g,46:D,47:B,49:_,51:ne,52:ue,53:re,54:ae,55:le,65:ce,66:oe,68:he,72:Ae,84:d,86:E,87:C,88:m,89:k},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(pe,[2,5],{8:[1,44]}),{8:[1,45]},e(c,[2,16],{21:[1,46]}),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]),{31:[1,47]},{33:[1,48]},e(c,[2,28]),e(c,[2,44],{48:49,56:52,57:53,13:[1,50],21:[1,51],58:Y,59:K,60:j,61:Q,62:X,63:fe,64:de}),{36:[1,61]},e(W,[2,35],{36:[1,63],41:[1,62]}),e(c,[2,46]),e(c,[2,47]),{16:64,84:d,86:E,87:C,88:m},{16:35,17:65,18:36,84:d,86:E,87:C,88:m,89:k},{16:35,17:66,18:36,84:d,86:E,87:C,88:m,89:k},{16:35,17:67,18:36,84:d,86:E,87:C,88:m,89:k},{13:[1,68]},{16:35,17:69,18:36,84:d,86:E,87:C,88:m,89:k},{13:Ne,50:70},e(c,[2,54]),e(c,[2,55]),e(c,[2,56]),e(c,[2,57]),e(V,[2,11],{16:35,18:36,17:72,19:[1,73],84:d,86:E,87:C,88:m,89:k}),e(V,[2,12],{19:[1,74]}),{15:75,16:76,84:d,86:E,87:C,88:m},{16:35,17:77,18:36,84:d,86:E,87:C,88:m,89:k},e(q,[2,97]),e(q,[2,98]),e(q,[2,99]),e(q,[2,100]),e([1,8,9,12,13,19,21,36,38,41,58,59,60,61,62,63,64,69,71],[2,101]),e(pe,[2,6],{10:5,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,17:19,35:20,40:21,16:35,18:36,5:78,30:n,32:r,34:h,39:l,43:A,44:g,46:D,47:B,49:_,51:ne,52:ue,53:re,54:ae,55:le,65:ce,66:oe,68:he,72:Ae,84:d,86:E,87:C,88:m,89:k}),{5:79,10:5,16:35,17:19,18:36,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:n,32:r,34:h,35:20,39:l,40:21,43:A,44:g,46:D,47:B,49:_,51:ne,52:ue,53:re,54:ae,55:le,65:ce,66:oe,68:he,72:Ae,84:d,86:E,87:C,88:m,89:k},e(c,[2,17]),e(c,[2,26]),e(c,[2,27]),{13:[1,81],16:35,17:80,18:36,84:d,86:E,87:C,88:m,89:k},{48:82,56:52,57:53,58:Y,59:K,60:j,61:Q,62:X,63:fe,64:de},e(c,[2,45]),{57:83,63:fe,64:de},e(H,[2,61],{56:84,58:Y,59:K,60:j,61:Q,62:X}),e(M,[2,62]),e(M,[2,63]),e(M,[2,64]),e(M,[2,65]),e(M,[2,66]),e(ve,[2,67]),e(ve,[2,68]),{8:[1,86],23:87,37:85,40:21,43:A},{16:88,84:d,86:E,87:C,88:m},{42:89,46:Ee},{45:[1,91]},{13:[1,92]},{13:[1,93]},{69:[1,94],71:[1,95]},{16:96,84:d,86:E,87:C,88:m},{13:Ne,50:97},e(c,[2,53]),e(c,[2,102]),e(V,[2,13]),e(V,[2,14]),e(V,[2,15]),{36:[2,31]},{15:98,16:76,36:[2,9],84:d,86:E,87:C,88:m},e(Ce,[2,39],{11:99,12:[1,100]}),e(pe,[2,7]),{9:[1,101]},e(J,[2,48]),{16:35,17:102,18:36,84:d,86:E,87:C,88:m,89:k},{13:[1,104],16:35,17:103,18:36,84:d,86:E,87:C,88:m,89:k},e(H,[2,60],{56:105,58:Y,59:K,60:j,61:Q,62:X}),e(H,[2,59]),{38:[1,106]},{23:87,37:107,40:21,43:A},{8:[1,108],38:[2,32]},e(W,[2,36],{36:[1,109]}),{38:[1,110]},{38:[2,42],42:111,46:Ee},{16:35,17:112,18:36,84:d,86:E,87:C,88:m,89:k},e(c,[2,69],{13:[1,113]}),e(c,[2,71],{13:[1,115],67:[1,114]}),e(c,[2,75],{13:[1,116],70:[1,117]}),{13:[1,118]},e(c,[2,83]),e(c,[2,52]),{36:[2,10]},e(Ce,[2,40]),{13:[1,119]},{1:[2,4]},e(J,[2,50]),e(J,[2,49]),{16:35,17:120,18:36,84:d,86:E,87:C,88:m,89:k},e(H,[2,58]),e(c,[2,29]),{38:[1,121]},{23:87,37:122,38:[2,33],40:21,43:A},{42:123,46:Ee},e(W,[2,37]),{38:[2,43]},e(c,[2,41]),e(c,[2,70]),e(c,[2,72]),e(c,[2,73],{67:[1,124]}),e(c,[2,76]),e(c,[2,77],{13:[1,125]}),e(c,[2,79],{13:[1,127],67:[1,126]}),{14:[1,128]},e(J,[2,51]),e(c,[2,30]),{38:[2,34]},{38:[1,129]},e(c,[2,74]),e(c,[2,78]),e(c,[2,80]),e(c,[2,81],{67:[1,130]}),e(Ce,[2,8]),e(W,[2,38]),e(c,[2,82])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],75:[2,31],98:[2,10],101:[2,4],111:[2,43],122:[2,34]},parseError:function(u,a){if(a.recoverable)this.trace(u);else{var o=new Error(u);throw o.hash=a,o}},parse:function(u){var a=this,o=[0],i=[],p=[null],t=[],G=this.table,s="",Z=0,Le=0,Ye=2,xe=1,Ke=t.slice.call(arguments,1),b=Object.create(this.lexer),I={yy:{}};for(var ge in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ge)&&(I.yy[ge]=this.yy[ge]);b.setInput(u,I.yy),I.yy.lexer=b,I.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var ke=b.yylloc;t.push(ke);var je=b.options&&b.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Qe(){var N;return N=i.pop()||b.lex()||xe,typeof N!="number"&&(N instanceof Array&&(i=N,N=i.pop()),N=a.symbols_[N]||N),N}for(var T,O,y,Te,w={},$,S,Ie,ee;;){if(O=o[o.length-1],this.defaultActions[O]?y=this.defaultActions[O]:((T===null||typeof T>"u")&&(T=Qe()),y=G[O]&&G[O][T]),typeof y>"u"||!y.length||!y[0]){var Fe="";ee=[];for($ in G[O])this.terminals_[$]&&$>Ye&&ee.push("'"+this.terminals_[$]+"'");b.showPosition?Fe="Parse error on line "+(Z+1)+`: +`+b.showPosition()+` +Expecting `+ee.join(", ")+", got '"+(this.terminals_[T]||T)+"'":Fe="Parse error on line "+(Z+1)+": Unexpected "+(T==xe?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(Fe,{text:b.match,token:this.terminals_[T]||T,line:b.yylineno,loc:ke,expected:ee})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+O+", token: "+T);switch(y[0]){case 1:o.push(T),p.push(b.yytext),t.push(b.yylloc),o.push(y[1]),T=null,Le=b.yyleng,s=b.yytext,Z=b.yylineno,ke=b.yylloc;break;case 2:if(S=this.productions_[y[1]][1],w.$=p[p.length-S],w._$={first_line:t[t.length-(S||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(S||1)].first_column,last_column:t[t.length-1].last_column},je&&(w._$.range=[t[t.length-(S||1)].range[0],t[t.length-1].range[1]]),Te=this.performAction.apply(w,[s,Le,Z,I.yy,y[1],p,t].concat(Ke)),typeof Te<"u")return Te;S&&(o=o.slice(0,-1*S*2),p=p.slice(0,-1*S),t=t.slice(0,-1*S)),o.push(this.productions_[y[1]][0]),p.push(w.$),t.push(w._$),Ie=G[o[o.length-2]][o[o.length-1]],o.push(Ie);break;case 3:return!0}}return!0}},ze=function(){var L={EOF:1,parseError:function(a,o){if(this.yy.parser)this.yy.parser.parseError(a,o);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,o=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 i=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),o.length-1&&(this.yylineno-=o.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:o?(o.length===i.length?this.yylloc.first_column:0)+i[i.length-o.length].length-o[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[p[0],p[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 o,i,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))),i=u[0].match(/(?:\r\n?|\n).*/g),i&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.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],o=this.performAction.call(this,this.yy,this,a,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o)return o;if(this._backtrack){for(var t in p)this[t]=p[t];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var u,a,o,i;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),t=0;ta[0].length)){if(a=o,i=t,this.options.backtrack_lexer){if(u=this.test_match(o,p[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,p[i]),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,o,i,p){switch(i){case 0:return 52;case 1:return 53;case 2:return 54;case 3:return 55;case 4:break;case 5:break;case 6:return this.begin("acc_title"),30;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),32;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 69;case 22:this.popState();break;case 23:return 70;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return this.begin("namespace"),39;case 28:return this.popState(),8;case 29:break;case 30:return this.begin("namespace-body"),36;case 31:return this.popState(),38;case 32:return"EOF_IN_STRUCT";case 33:return 8;case 34:break;case 35:return"EDGE_STATE";case 36:return this.begin("class"),43;case 37:return this.popState(),8;case 38:break;case 39:return this.popState(),this.popState(),38;case 40:return this.begin("class-body"),36;case 41:return this.popState(),38;case 42:return"EOF_IN_STRUCT";case 43:return"EDGE_STATE";case 44:return"OPEN_IN_STRUCT";case 45:break;case 46:return"MEMBER";case 47:return 72;case 48:return 65;case 49:return 66;case 50:return 68;case 51:return 49;case 52:return 51;case 53:return 44;case 54:return 45;case 55:return 71;case 56:this.popState();break;case 57:return"GENERICTYPE";case 58:this.begin("generic");break;case 59:this.popState();break;case 60:return"BQUOTE_STR";case 61:this.begin("bqstring");break;case 62:return 67;case 63:return 67;case 64:return 67;case 65:return 67;case 66:return 59;case 67:return 59;case 68:return 61;case 69:return 61;case 70:return 60;case 71:return 58;case 72:return 62;case 73:return 63;case 74:return 64;case 75:return 21;case 76:return 41;case 77:return 84;case 78:return"DOT";case 79:return"PLUS";case 80:return 81;case 81:return"EQUALS";case 82:return"EQUALS";case 83:return 88;case 84:return 12;case 85:return 14;case 86:return"PUNCTUATION";case 87:return 87;case 88:return 86;case 89:return 83;case 90: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]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?: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)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,31,32,33,34,35,36,47,48,49,50,51,52,53,54,55,58,61,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],inclusive:!1},namespace:{rules:[26,27,28,29,30,47,48,49,50,51,52,53,54,55,58,61,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],inclusive:!1},"class-body":{rules:[26,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,58,61,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],inclusive:!1},class:{rules:[26,37,38,39,40,47,48,49,50,51,52,53,54,55,58,61,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],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,47,48,49,50,51,52,53,54,55,58,61,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],inclusive:!1},acc_descr:{rules:[9,26,47,48,49,50,51,52,53,54,55,58,61,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],inclusive:!1},acc_title:{rules:[7,26,47,48,49,50,51,52,53,54,55,58,61,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],inclusive:!1},callback_args:{rules:[22,23,26,47,48,49,50,51,52,53,54,55,58,61,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],inclusive:!1},callback_name:{rules:[19,20,21,26,47,48,49,50,51,52,53,54,55,58,61,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],inclusive:!1},href:{rules:[26,47,48,49,50,51,52,53,54,55,58,61,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],inclusive:!1},struct:{rules:[26,47,48,49,50,51,52,53,54,55,58,61,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],inclusive:!1},generic:{rules:[26,47,48,49,50,51,52,53,54,55,56,57,58,61,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],inclusive:!1},bqstring:{rules:[26,47,48,49,50,51,52,53,54,55,58,59,60,61,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],inclusive:!1},string:{rules:[24,25,26,47,48,49,50,51,52,53,54,55,58,61,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],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,36,47,48,49,50,51,52,53,54,55,58,61,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],inclusive:!0}}};return L}();me.lexer=ze;function be(){this.yy={}}return be.prototype=me,me.Parser=be,new be}();De.parser=De;const Nt=De,Oe=["#","+","~","-",""];class Re{constructor(n,r){this.memberType=r,this.visibility="",this.classifier="";const h=tt(n,F());this.parseMember(h)}getDisplayDetails(){let n=this.visibility+ye(this.id);this.memberType==="method"&&(n+=`(${ye(this.parameters.trim())})`,this.returnType&&(n+=" : "+ye(this.returnType))),n=n.trim();const r=this.parseClassifier();return{displayText:n,cssStyle:r}}parseMember(n){let r="";if(this.memberType==="method"){const h=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/,l=n.match(h);if(l){const A=l[1]?l[1].trim():"";if(Oe.includes(A)&&(this.visibility=A),this.id=l[2].trim(),this.parameters=l[3]?l[3].trim():"",r=l[4]?l[4].trim():"",this.returnType=l[5]?l[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 h=n.length,l=n.substring(0,1),A=n.substring(h-1);Oe.includes(l)&&(this.visibility=l),A.match(/[*?]/)&&(r=A),this.id=n.substring(this.visibility===""?0:1,r===""?h:h-1)}this.classifier=r}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}}const ie="classId-";let _e=[],f={},te=[],we=0,x={},Be=0,z=[];const R=e=>v.sanitizeText(e,F()),P=function(e){const n=v.sanitizeText(e,F());let r="",h=n;if(n.indexOf("~")>0){const l=n.split("~");h=R(l[0]),r=R(l[1])}return{className:h,type:r}},st=function(e,n){const r=v.sanitizeText(e,F());n&&(n=R(n));const{className:h}=P(r);f[h].label=n},se=function(e){const n=v.sanitizeText(e,F()),{className:r,type:h}=P(n);if(Object.hasOwn(f,r))return;const l=v.sanitizeText(r,F());f[l]={id:l,type:h,label:l,cssClasses:[],methods:[],members:[],annotations:[],domId:ie+l+"-"+we},we++},Ve=function(e){const n=v.sanitizeText(e,F());if(n in f)return f[n].domId;throw new Error("Class not found: "+n)},it=function(){_e=[],f={},te=[],z=[],z.push(Ge),x={},Be=0,$e()},nt=function(e){return f[e]},ut=function(){return f},rt=function(){return _e},at=function(){return te},lt=function(e){et.debug("Adding relation: "+JSON.stringify(e)),se(e.id1),se(e.id2),e.id1=P(e.id1).className,e.id2=P(e.id2).className,e.relationTitle1=v.sanitizeText(e.relationTitle1.trim(),F()),e.relationTitle2=v.sanitizeText(e.relationTitle2.trim(),F()),_e.push(e)},ct=function(e,n){const r=P(e).className;f[r].annotations.push(n)},Me=function(e,n){se(e);const r=P(e).className,h=f[r];if(typeof n=="string"){const l=n.trim();l.startsWith("<<")&&l.endsWith(">>")?h.annotations.push(R(l.substring(2,l.length-2))):l.indexOf(")")>0?h.methods.push(new Re(l,"method")):l&&h.members.push(new Re(l,"attribute"))}},ot=function(e,n){Array.isArray(n)&&(n.reverse(),n.forEach(r=>Me(e,r)))},ht=function(e,n){const r={id:`note${te.length}`,class:n,text:e};te.push(r)},At=function(e){return e.startsWith(":")&&(e=e.substring(1)),R(e.trim())},Se=function(e,n){e.split(",").forEach(function(r){let h=r;r[0].match(/\d/)&&(h=ie+h),f[h]!==void 0&&f[h].cssClasses.push(n)})},pt=function(e,n){e.split(",").forEach(function(r){n!==void 0&&(f[r].tooltip=R(n))})},ft=function(e,n){return n?x[n].classes[e].tooltip:f[e].tooltip},dt=function(e,n,r){const h=F();e.split(",").forEach(function(l){let A=l;l[0].match(/\d/)&&(A=ie+A),f[A]!==void 0&&(f[A].link=Pe.formatUrl(n,h),h.securityLevel==="sandbox"?f[A].linkTarget="_top":typeof r=="string"?f[A].linkTarget=R(r):f[A].linkTarget="_blank")}),Se(e,"clickable")},Et=function(e,n,r){e.split(",").forEach(function(h){Ct(h,n,r),f[h].haveCallback=!0}),Se(e,"clickable")},Ct=function(e,n,r){const h=v.sanitizeText(e,F());if(F().securityLevel!=="loose"||n===void 0)return;const A=h;if(f[A]!==void 0){const g=Ve(A);let D=[];if(typeof r=="string"){D=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let B=0;B")),l.classed("hover",!0)}).on("mouseout",function(){n.transition().duration(500).style("opacity",0),U(this).classed("hover",!1)})};z.push(Ge);let Ue="TB";const kt=()=>Ue,Tt=e=>{Ue=e},Ft=function(e){x[e]===void 0&&(x[e]={id:e,classes:{},children:{},domId:ie+e+"-"+Be},Be++)},yt=function(e){return x[e]},Dt=function(){return x},Bt=function(e,n){x[e]!==void 0&&n.map(r=>{f[r].parent=e,x[e].classes[r]=f[r]})},vt={setAccTitle:Xe,getAccTitle:We,getAccDescription:qe,setAccDescription:He,getConfig:()=>F().class,addClass:se,bindFunctions:mt,clear:it,getClass:nt,getClasses:ut,getNotes:at,addAnnotation:ct,addNote:ht,getRelations:rt,addRelation:lt,getDirection:kt,setDirection:Tt,addMember:Me,addMembers:ot,cleanupLabel:At,lineType:bt,relationType:gt,setClickEvent:Et,setCssClass:Se,setLink:dt,getTooltip:ft,setTooltip:pt,lookUpDomId:Ve,setDiagramTitle:Je,getDiagramTitle:Ze,setClassLabel:st,addNamespace:Ft,addClassesToNamespace:Bt,getNamespace:yt,getNamespaces:Dt},_t=e=>`g.classGroup text { + fill: ${e.nodeBorder}; + fill: ${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; +} + +.classTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${e.textColor}; +} +`,Lt=_t;export{vt as d,Nt as p,Lt as s}; diff --git a/assets/svgDrawCommon-057d45d0-b7474b9e.js b/assets/svgDrawCommon-057d45d0-b7474b9e.js new file mode 100644 index 000000000..a6b6cec91 --- /dev/null +++ b/assets/svgDrawCommon-057d45d0-b7474b9e.js @@ -0,0 +1 @@ +import{n as o,m as i}from"./mermaid.core-d8bc71ff.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.sanitizeUrl(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.sanitizeUrl(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}; diff --git a/assets/timeline-definition-8b56e66a-17119a8b.js b/assets/timeline-definition-8b56e66a-17119a8b.js new file mode 100644 index 000000000..3253292aa --- /dev/null +++ b/assets/timeline-definition-8b56e66a-17119a8b.js @@ -0,0 +1,61 @@ +import{b3 as ft,z as gt,c as mt,l as E,h as G,t as xt,b4 as bt,b5 as _t,b6 as kt}from"./mermaid.core-d8bc71ff.js";import{a as D}from"./arc-3e498105.js";import"./app-d2f9e1e0.js";import"./path-53f90ab3.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="",T=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 I=k.yylloc;o.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),o.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: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,T,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}},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 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;or[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=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)},lt=function(){return Q},ot=function(){let n=tt();const t=100;let e=0;for(;!n&&ee.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: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},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 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},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(//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"),Tt(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,b,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,b)}function t(s,h,l,p,y,f,b,m,g){const{taskFontSize:i,taskFontFamily:r}=m,c=s.split(//gi);for(let d=0;d)/).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 b=0;bt||s==="
    ")&&(h.pop(),f.text(h.join(" ").trim()),s==="
    "?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(),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(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: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 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 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,l);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,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 _=0;_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,l);E.debug("sectionNode output",z),P.attr("transform",`translate(${$}, ${o})`),x+=c+50,v.length>0&&nt(m,v,T,$,x,d,l,C,A,c,!1),$+=200*Math.max(v.length,1),x=o,T++}):(W=!1,nt(m,g,T,$,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,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,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+Ft(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+(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=l.timeline)!=null&&m.disableMulticolor)&&e++}s=s-10},Ft=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 b=n.append("g").attr("class","eventWrapper"),g=H.drawNode(b,f,e,h).height;l=l+g,b.attr("transform",`translate(${a}, ${s})`),s=s+10+g}return s=p,l},Vt={setConf:()=>{},draw:Rt},Wt=n=>{let t="";for(let e=0;e` + .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,Zt={db:St,renderer:Vt,parser:vt,styles:Ot};export{Zt as diagram}; diff --git a/assets/transfer.html-08432ef9.js b/assets/transfer.html-08432ef9.js new file mode 100644 index 000000000..c672ba028 --- /dev/null +++ b/assets/transfer.html-08432ef9.js @@ -0,0 +1 @@ +const e=JSON.parse('{"key":"v-43dbd51f","path":"/deploy/transfer.html","title":"迁移","lang":"zh-cn","frontmatter":{"lang":"zh-cn","title":"迁移","description":"本节内容 本节将会指导你如何迁移现有的海豹核心。 海豹核心的数据文件全平台通用。因此,在不同平台间迁移时,你只需要准备每个平台的可执行文件。 在进行任何迁移时,你都应确保迁出和迁入的海豹核心都未在运行,否则可能造成不可逆的数据损坏。 相同平台间迁移 将整个海豹核心目录复制到新的位置即可。 如果目录体积较大,你可以自行删除 backups/ 下的备份文件...","head":[["meta",{"property":"og:url","content":"http://localhost:8080/sealdice-manual-next/deploy/transfer.html"}],["meta",{"property":"og:site_name","content":"海豹手册"}],["meta",{"property":"og:title","content":"迁移"}],["meta",{"property":"og:description","content":"本节内容 本节将会指导你如何迁移现有的海豹核心。 海豹核心的数据文件全平台通用。因此,在不同平台间迁移时,你只需要准备每个平台的可执行文件。 在进行任何迁移时,你都应确保迁出和迁入的海豹核心都未在运行,否则可能造成不可逆的数据损坏。 相同平台间迁移 将整个海豹核心目录复制到新的位置即可。 如果目录体积较大,你可以自行删除 backups/ 下的备份文件..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-cn"}],["meta",{"property":"og:updated_time","content":"2023-10-29T17:01:34.000Z"}],["meta",{"property":"article:author","content":"SealDice Team"}],["meta",{"property":"article:modified_time","content":"2023-10-29T17:01:34.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"迁移\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2023-10-29T17:01:34.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"SealDice Team\\",\\"url\\":\\"https://github.com/sealdice\\"}]}"]]},"headers":[{"level":2,"title":"相同平台间迁移","slug":"相同平台间迁移","link":"#相同平台间迁移","children":[]},{"level":2,"title":"跨平台迁移","slug":"跨平台迁移","link":"#跨平台迁移","children":[{"level":3,"title":"Linux 服务器间跨架构迁移(arm64 → amd64)","slug":"linux-服务器间跨架构迁移-arm64-→-amd64","link":"#linux-服务器间跨架构迁移-arm64-→-amd64","children":[]}]},{"level":2,"title":"迁移数据到手机","slug":"迁移数据到手机","link":"#迁移数据到手机","children":[]}],"git":{"createdTime":1698072668000,"updatedTime":1698598894000,"contributors":[{"name":"JustAnotherID","email":"just-another-id@outlook.com","commits":2},{"name":"Xiangze Li","email":"lee_johnson@qq.com","commits":1}]},"readingTime":{"minutes":2.5,"words":750},"filePathRelative":"deploy/transfer.md","localizedDate":"2023年10月23日","autoDesc":true,"excerpt":""}');export{e as data}; diff --git a/assets/transfer.html-844ce329.js b/assets/transfer.html-844ce329.js new file mode 100644 index 000000000..0d14578db --- /dev/null +++ b/assets/transfer.html-844ce329.js @@ -0,0 +1,3 @@ +import{_ as a}from"./plugin-vue_export-helper-c27b6911.js";import{o as n,c as s,e}from"./app-d2f9e1e0.js";const t={},i=e(`

    迁移

    本节内容

    本节将会指导你如何迁移现有的海豹核心。

    海豹核心的数据文件全平台通用。因此,在不同平台间迁移时,你只需要准备每个平台的可执行文件。

    注意

    在进行任何迁移时,你都应确保迁出和迁入的海豹核心都未在运行,否则可能造成不可逆的数据损坏。

    相同平台间迁移

    将整个海豹核心目录复制到新的位置即可。

    如果目录体积较大,你可以自行删除 backups/ 下的备份文件。这不会造成数据损失。

    跨平台迁移

    跨平台迁移时不能使用旧的可执行文件,而只迁移数据部分。

    将迁出海豹核心中的 data/ 目录以你习惯的任何方式打包。

    在迁入平台准备一份全新的海豹核心,用打包的数据覆盖迁入海豹的对应目录。

    如果你希望保留旧的备份文件,你可以复制迁出海豹 backups/ 目录中的内容,放置于迁入海豹的对应目录。备份文件也是通用的。

    Linux 服务器间跨架构迁移(arm64 → amd64)

    步骤与普通跨平台迁移一致。在运行新海豹核心时,如果文件权限不正确,可以在海豹核心目录下执行以下两条命令:

    find . -type f | xargs chmod 644
    +find . -type d | xargs chmod 755
    +

    迁移数据到手机

    如果你需要把电脑海豹的数据迁移到手机海豹上,同样是迁移海豹的 data/ 目录。步骤如下:

    1. 关闭你的电脑海豹,复制电脑海豹的 data/ 目录发送到手机上。
    2. 点击手机海豹的 导出数据 按钮,在设置中勾选 文件同步模式。(平时推荐关闭这个选项,这里是为了替换数据库特别地需要开启)
    3. 在你习惯的手机文件管理软件中找到 根目录/document/com.sealdice.dice/sealdice,用迁出海豹的 data 目录替换这里面的 data 目录。
    4. 回到手机海豹的界面中点击 导入数据。导入完成后再点击启动核心,这时你的手机海豹里就应该是旧海豹的数据了。导入完成后也可以把「文件同步模式」关闭了。

    注意

    在手机海豹上,每次导入数据前都进行一次导出,导出后不要再运行海豹核心。

    这是因为,手机海豹不会实时更新导出的文件,它们是海豹数据在导出时的一份快照。

    如果在上次导出后产生了新数据,而再次进行导入,会导致新产生的数据被之前导出的数据覆盖,丢失这段时间以来录入的角色卡、Log、修改的自定义文案等海豹内部的数据。

    `,19),c=[i];function o(r,d){return n(),s("div",null,c)}const h=a(t,[["render",o],["__file","transfer.html.vue"]]);export{h as default}; diff --git a/config/ban.html b/config/ban.html new file mode 100644 index 000000000..bc2ea39e4 --- /dev/null +++ b/config/ban.html @@ -0,0 +1,40 @@ + + + + + + + + 黑白名单 | 海豹手册 + + + + + + +
    跳至主要內容

    黑白名单

    大约 1 分钟

    黑白名单

    本节内容

    本节将介绍黑白名单的设置,请善用侧边栏和搜索,按需阅读文档。

    如何设置黑白名单?

    黑白名单是骰子拉黑/豁免的用户/群的列表。来源可能是骰主在后台设置的,也可能是因为触发了某些自动规则添加的。

    黑白名单
    黑白名单

    点击海豹 UI 界面的「综合设置 - 黑白名单」选项,你就可以进入黑白名单管理页面。

    添加黑白名单

    UI 手动添加

    点击「添加」按钮,可在后台手动添加黑(白)名单。

    UI 手动添加黑白名单
    UI 手动添加黑白名单

    指令添加

    使用 - 核心指令

    自动添加

    触发某些自动规则时,可能会自动添加用户进黑名单,如:

    黑白名单设置

    点开「设置选项」,可以对黑白名单进行一些设置。

    黑白名单设置
    黑白名单设置

    黑名单惩罚:

    • 拒绝回复:骰子不回复黑名单用户;
    • 拒绝邀请:骰子自动拒绝黑名单用户的邀请;
    • 退出事发群:比如禁言骰子触发了黑名单事件,会退出禁言的事发群;
    • 使用时立即退出群:有黑名单用户在其他群尝试使用骰子时,骰子会立即退群。

    连带责任:当有用户触发黑名单事件时,对应的群组和邀请人会按 设置的比例 增加怒气值。

    上次编辑于:
    + + + diff --git a/config/censor.html b/config/censor.html new file mode 100644 index 000000000..0850d484b --- /dev/null +++ b/config/censor.html @@ -0,0 +1,40 @@ + + + + + + + + 拦截 | 海豹手册 + + + + + + +
    跳至主要內容

    拦截

    大约 3 分钟

    拦截

    本节内容

    本节将介绍拦截功能和相关设置,请善用侧边栏和搜索,按需阅读文档。

    什么是拦截功能?

    • 我不希望我的骰子被用来跑粉红团,如何避免?

    • 发生了超过普通人类认知的离谱事情,如何设置骰子收到了某些词语时自动拦截掉这些用户?

    • ……

    「拦截管理」提供检查骰子收到的消息内容中是否有敏感词汇,命中时进行相应处理的能力。

    点击海豹 UI 界面的「扩展功能 - 拦截管理」选项,你就可以进入拦截管理页面。

    拦截管理
    拦截管理

    如果显示未启用的话,点击左上角开关来启用拦截。

    配置拦截

    拦截设置主要分为两部分:「匹配选项」,即设置拦截什么样的消息;「响应设置」,即命中敏感词后要如何处理。下面我们将一一介绍。

    匹配选项

    匹配选项
    匹配选项

    匹配选项中最重要的设置就是 「拦截范围」,这个选项决定了什么范围的内容会进行拦截检查。

    • 发出的消息:拦截骰子发出的消息文本(包括指令回复和自定义回复,总之所有骰子发的内容)进行检查
    • 收到的指令:拦截骰子收到的命令文本进行检查,如收到「.rd 进行一次骰点」时,会检查其中的「进行一次骰点」,不受 bot off 影响
    • 收到的所有消息:拦截骰子收到的所有消息进行检查,包括不以 . 等开头的消息,不受 bot off 影响

    其余选项可以参看对应的提示,悬浮在问号上即可看见对应帮助。

    响应设置

    海豹核心的敏感词主要分为四个等级:提醒 注意 警告 危险,程度依次升高。你可以对不同等级的处理方式做不同的设置。

    当消息命中敏感词的时候,将取命中词汇中的 最高等级 作为处理等级。当同一个用户触发同一等级的次数超过对应设置时,将进行对应等级配置的操作,同时清空用户该等级的计数,重新计算。

    匹配设置
    匹配设置
    • 发送警告:会向触发用户发送警告信息;
    • 通知 Master:会通知骰主;
    • 拉黑用户/群/邀请人,增加怒气值:拉黑和怒气值机制,见 黑白名单

    敏感词管理

    将标签页切换到「敏感词管理」,可以看到如下的两个列表:「词库列表」和「敏感词列表」。

    页面中也提供了相应的帮助信息,可以点开查看。

    敏感词管理
    敏感词管理

    敏感词库通常为 txttoml 格式的文件,通过「导入」按钮可以导入多个词库,词库同时生效,其中重复的词取设置的最高等级。导入后点击「重载拦截」按钮以生效变更。

    为什么没有默认的敏感词库?

    「当你在凝视深渊的时候,深渊也正在凝视着你。」

    敏感词库本身属于敏感信息,故海豹官方不提供默认的敏感词库。

    下方的敏感词列表会展示当前加载的敏感词,如果设置中勾选了「匹配拼音」,也会将实际去匹配的拼音展示出来。

    查看拦截日志

    在「拦截日志」标签页,你可以看到在何时、何地、哪个用户触发了什么等级的敏感词,具体的内容是什么。

    拦截日志
    拦截日志

    如何让用户/群豁免检查?

    给用户/群配置白名单,即可豁免检查。设置白名单见 黑白名单

    如何编写敏感词库?

    在「敏感词管理」标签页,提供了词库模板的下载。

    具体的编写帮助见 进阶 - 编写敏感词库

    上次编辑于:
    + + + diff --git a/config/custom_text.html b/config/custom_text.html new file mode 100644 index 000000000..4c6c64b73 --- /dev/null +++ b/config/custom_text.html @@ -0,0 +1,43 @@ + + + + + + + + 自定义文案 | 海豹手册 + + + + + + +
    跳至主要內容

    自定义文案

    大约 5 分钟

    自定义文案

    本节内容

    本节将介绍自定义文案的设置,请善用侧边栏和搜索,按需阅读文档。

    什么是自定义文案?

    • 骰子的回复内容太过单调,要怎样让它丰富起来呢?

    • 骰子的回复内容太过繁琐,要怎样让它简洁起来呢?

    • 我的骰子有自己的人设,怎么修改那些固定的回复词,让 TA 符合人设呢?

    • ……

    如果你想要修改骰子向用户回复的提示词,那么你就需要修改自定义文案。

    海豹骰子的回复内容几乎可以进行完全的自定义,绝大部分指令的文案都可以进行修改。修改的文案内容还支持插入图片和 CQ 码。

    如何修改文案?

    在海豹 UI 界面的「自定义文案」选项中,你可以看见文案被按照几个大类放置在一起。

    自定义文案设置页
    自定义文案设置页

    左侧是分类,可以看见,文案目前被分为以下几个大类:

    • CoC:内置的 CoC 支持相关的文案;
    • DND:内置的 DND 支持相关的文案;
    • 其它:一些杂项文案设置;
    • 娱乐:内置 娱乐功能 的相关文案,如 .jrrp 的文案;
    • 日志:跑团日志 功能相关的文案;
    • 核心:海豹核心功能的文案。

    在每一个分类中,都可以在右侧看见当前分类的「文案列表」与上方的「筛选」,接下来将依次介绍它们。

    文案列表

    在「文案列表」中,每一个文案都以类似下图的格式展示,我们以「大成功」的文案来举例:

    大成功文案
    大成功文案

    可以看见,对于「大成功」文案,它归属于 判定-常规 这个小类中,结果有两行文案,这意味着骰子会 随机抽取 其中的一行文案来使用。例如:

    示例结果

    .ra 力量

    Dice: <木落>的力量检定结果为:D100=3/30=([1d100=3]) 大成功!

    .ra 力量

    Dice: <木落>的力量检定结果为:D100=2/30=([1d100=3]) 运气不错,大成功!

    如果想要添加一行,那么点击左侧「加号」按钮:

    增加文案选项
    增加文案选项

    如果你觉得某一行不满意,点左侧「删除」按钮。当然,至少需要保留一个选项。

    删除文案选项
    删除文案选项

    修改好之后,不要忘记保存!

    等待保存
    等待保存

    尽早保存!

    对文案的修改建议及时保存,同时注意 保存前不要切换左侧的分类,否则未保存的修改将丢失!

    最后,如果你想回到初始设置,点击右上角的「刷子」图标。

    重置为初始设置
    重置为初始设置

    随后会弹出确认框,点击确定后,一切就是刚开始的样子了。

    筛选文案

    我们可以看见,为了方便在本组中查找到对应的条目,在文案列表的上方都有着对应的「筛选」功能。

    文案筛选
    文案筛选
    • 搜索:搜索文案的小类和具体文案名。
    • 指定类别:
      • 全部:显示全部文案;
      • 默认文案:显示当前大类下未修改过的文案;
      • 修改过:已修改过的文案;
      • 指定分组:选中后会多出一个「分组」下拉框,用于筛选出指定小类下的文案条目;
      • 旧版文案:海豹的更新有时会调整和删除部分文案条目,但旧的数据不会删除。海豹从旧版升级后,可以通过此项筛选出那些不用的条目。

    文案的导入/导出

    • 我不想自己一条条修改文案,如何快速导入?

    • 我想给我的小伙伴分享我的文案,他们要如何导入进去?

    如果需要导入/导出文案内容,可以点击右上角的「导入/导出」按钮进入页面复制粘贴,就能快速分享相关设置了。

    确认内容完整再导入

    粘贴文案内容时,注意检查自己导入的内容是不是完整复制进来的。

    文案插入图片和 CQ 码

    将图片放在骰子的适当目录(建议放在 data/images),再按照相应图片的路径插入这样一段文本即可。以图片 data/images/sealdice.png 为例:

    插入文本为 [图:data/images/sealdice.png]

    例如修改骰子进群的文案:

    文案图片示例
    文案图片示例

    全文案为:

    <{核心:骰子名字}> 已经就绪。可通过.help 查看指令列表\n[图:data/images/sealdice.png]
    +

    效果如下:

    文案回复图片效果
    文案回复图片效果

    文案变量标签

    你可能注意到,有些词条下面有这样的内容,如下图的 $t群组骰子面数

    有变量标签的文案
    有变量标签的文案

    文案下方的标签代表了被默认文案所使用的特殊变量,你可以使用 {变量名} 来插入他们,例如 {$t群组骰子面数}

    除此之外,有些变量可以在所有文案中使用,具体列表可以见 进阶 - 内置脚本语言

    在一个文案中使用另一个文案

    所有的自定义文案都可以嵌套使用,例如:

    这里是{核心:骰子名字},我是一个示例
    +

    默认会被解析为:

    这里是海豹,我是一个示例
    +

    禁止递归嵌套!

    千万不要递归嵌套,会发生很糟糕的事情!

    文案常见问题

    骰子进群和成为好友的问候语是哪个?

    核心:骰子进群

    核心:骰子成为好友

    更复杂的文案设置

    • 我希望能根据骰点结果显示不同的文案,要怎么实现?

    • 我希望骰子能有多套回复词,要如何设置?

    • ……

    更复杂的文案设置涉及到逻辑的编写,见 进阶 - 编写复杂文案

    上次编辑于:
    + + + diff --git a/config/deck.html b/config/deck.html new file mode 100644 index 000000000..34d3e14b8 --- /dev/null +++ b/config/deck.html @@ -0,0 +1,42 @@ + + + + + + + + 牌堆 | 海豹手册 + + + + + + +
    跳至主要內容

    牌堆

    大约 3 分钟

    牌堆

    本节内容

    本节将介绍牌堆功能,请善用侧边栏和搜索,按需阅读文档。

    牌堆是什么?

    「牌堆」是一组有名字的文本,你可以把它想象成一组扑克牌,通过 .draw 命令来随机抽取其中的内容发送。为了便于骰子读取增加相应的说明内容,牌堆以某种结构化的格式保存成文件。

    牌堆

    牌堆以 json yamltoml 格式组织起来,但其本质只是一段文本,只是编写需要遵循对应的结构方便读取。

    获取牌堆

    你可以在 牌堆仓库open in new window 或官方群的群文件中找到其他骰主分享的牌堆。

    无法访问仓库?

    仓库位于 GitHub,访问时请确认你的网络状况。

    怎么上传牌堆到骰子?怎么管理牌堆?

    点击海豹 UI 界面的「扩展功能 - 牌堆管理」选项,你就可以进入牌堆的管理页面。

    牌堆管理
    牌堆管理

    可以看见有一个「上传牌堆」按钮,点击它选择本地的牌堆文件上传后即可读取牌堆。

    在上图中已经有一个名为「常规抽取与放回抽取示例」牌堆被读取到了,它的版本号是 1.1,格式是 json,其他信息也相应展示。

    你可以通过「删除」按钮来删掉对应的牌堆。

    重载牌堆

    新增/删除牌堆通常会自动重载,但如果出现牌堆未更新等情况时,可以手动点击「重载牌堆」按钮进行刷新。

    怎么使用牌堆?

    在上面的「常规抽取与放回抽取示例」中,我们可以看见有名为 常规抽取 放回抽取 的两个牌组。可以使用 .draw 命令来抽取它们。

    .draw 常规抽取
    +.draw 放回抽取
    +

    更多牌堆命令,见 使用 - 扩展:牌堆 自定义回复

    牌堆更新与云牌堆

    在加载某些牌堆之后,你可能会发现一些牌堆拥有特殊的功能:

    带有更新和云内容的牌堆示例
    带有更新和云内容的牌堆示例

    牌堆更新

    一些牌堆作者为牌堆提供了更新链接,方便你快速获取最新的牌堆内容。

    点击「更新」按钮后会取获取最新的牌堆,随后弹出获取到的新牌堆与当前牌堆的对比:

    牌堆对比
    牌堆对比

    对比弹窗的右上角可以控制显示的样式,如勾选「折叠无变更」可以收起过长的内容。

    确认牌堆的更新内容之后,点击「确认更新」即可升级到最新的牌堆。

    牌堆云端内容

    一些牌堆作者为牌堆提供了云端内容,这意味着这个牌堆在抽取时,可能会去拉取远程内容作为牌堆项。

    所有含有云端内容的牌堆,海豹 UI 都会给出「提供云端内容」的提示。

    云端内容

    牌堆作者可以实时调整云端内容,可能存在风险,请自行考虑是否使用这样的牌堆。

    如何编写牌堆?

    进阶 - 编写牌堆

    上次编辑于:
    + + + diff --git a/config/helpdoc.html b/config/helpdoc.html new file mode 100644 index 000000000..dd2ed0944 --- /dev/null +++ b/config/helpdoc.html @@ -0,0 +1,40 @@ + + + + + + + + 帮助文档 | 海豹手册 + + + + + + +
    跳至主要內容

    帮助文档

    大约 3 分钟

    帮助文档

    本节内容

    本节将介绍帮助文档功能,请善用侧边栏和搜索,按需阅读文档。

    什么是帮助文档?

    「帮助文档」是提供给骰子使用的查询资料,一般用于各种规则的资料查询,也可用于编写骰子的使用帮助。

    获取帮助文档

    你可以在 帮助文档仓库open in new window 或官方群的群文件中找到其他骰主分享的帮助文档。

    无法访问仓库?

    仓库位于 GitHub,访问时请确认你的网络状况。

    海豹目前可以健康食用的 helpdoc 格式为 json 以及 xslx,其中更多使用后者来编写资料查询文档。

    海豹官方安装包中也默认提供了 CoC 和 D&D 的资料查询文档,无需额外下载即可使用相关内容搜索。

    如何使用帮助文档?

    当你在帮助文档中写下 词条A 后,通过 .help 词条A 即可返回对应词条内容。

    对于资料查询,更建议使用 .find 来搜索词条内容。

    使用 - 核心指令

    如何管理帮助文档?

    点击海豹 UI 界面的「扩展功能 - 帮助文档」选项,你就可以进入帮助文档的管理页面。

    帮助文档管理
    帮助文档管理

    我们可以看到默认置入的 CoC 与 D&D 的资料文档已经在列表中展示出来了。

    帮助文档列表以文件树的形式展示。文件夹内部的文档在一级文件夹下平铺展示,最外层的 一级文件夹名将作为其中所有文档的分组名,用于精确控制查询范围的分组。

    修改帮助文档后,需要点击「重载帮助文档」来刷新。

    重载帮助文档

    帮助文档的文本量较大,重载过程需要一定时间(通常为几分钟,与文档数量、机器性能有关)。在重载期间,搜索功能会暂时不可用,所以建议在骰子使用的低峰期进行重载。

    上传帮助文档

    点击「上传」按钮,即可弹出帮助文档的上传框:

    帮助文档的上传
    帮助文档的上传

    「分组」即是一级文件夹,可以选择已有的分组,也可手动填写新的分组名来创建文件夹。

    选择分组和相应文档后,点击「上传」即可将文档上传至骰子。

    默认分组

    分组选择中存在一个「默认」分组,代表位于文档根目录的帮助文档位置,和一级文件夹同级。

    非常不建议你将文档放在这个文件夹中进行管理。 对指定分组的搜索需要有意义的分组名。

    删除帮助文档

    如需删除某些帮助文档,勾选对应文档前的选框后点击「删除所选」,即可批量删除帮助文档。

    尝试删除帮助文档
    尝试删除帮助文档

    查看帮助文档词条

    切换标签页到「词条」,即可浏览当前已经加载的帮助文档词条。

    帮助文档词条
    帮助文档词条

    通过筛选可以快速查找到相应的词条内容。

    如何编写帮助文档?

    进阶 - 编写帮助文档

    上次编辑于:
    + + + diff --git a/config/index.html b/config/index.html new file mode 100644 index 000000000..f17cd5206 --- /dev/null +++ b/config/index.html @@ -0,0 +1,40 @@ + + + + + + + + 配置 | 海豹手册 + + + + + + + + + + diff --git a/config/jsscript.html b/config/jsscript.html new file mode 100644 index 000000000..e18ab9a77 --- /dev/null +++ b/config/jsscript.html @@ -0,0 +1,40 @@ + + + + + + + + JavaScript 插件 | 海豹手册 + + + + + + +
    跳至主要內容

    JavaScript 插件

    大约 2 分钟

    JavaScript 插件

    本节内容

    本节将介绍 JavaScript 插件功能,请善用侧边栏和搜索,按需阅读文档。

    JavaScript 插件是什么

    为了给有能力的用户提供更大的自定义空间,海豹核心支持使用 JavaScript 语言编写扩展插件。

    JavaScript

    JavaScript(JS)是一门基于原型和头等函数的多范式高级解释型编程语言,它支持面向对象程序设计、指令式编程和函数式编程。它提供方法来操控文本、数组、日期以及正则表达式等。

    获取 JS 插件

    你可以在 JS 插件仓库open in new window 或官方群的群文件中找到其他骰主分享的 JS 插件。

    无法访问仓库?

    仓库位于 GitHub,访问时请确认你的网络状况。

    如何安装和管理 JS 插件?

    点击海豹 UI 界面的「扩展功能-JS 扩展」选项,你就可以进入 JS 插件的管理页面。

    JS 扩展
    JS 扩展

    如果左上角的开关未打开,可以点击启用 JS 插件的支持。可以看见,在管理界面中有多个标签页,下面将一一介绍。

    插件列表

    在「插件列表」页,可以查看当前的 JS 插件列表并进行管理。

    JS 插件列表
    JS 插件列表

    在每一个插件名前都有一个开关,用来单独控制这个插件是否开启。

    点击「上传插件」,选择获取的插件文件,即可上传到海豹核心。在插件的右侧有「删除」按钮来删除不想要的插件。

    在对插件进行调整后,需要点击「重载 JS」来使修改生效。

    插件的更新

    一些插件作者为扩展提供了更新链接,方便你快速获取最新的插件。

    点击「更新」按钮后会取获取最新的插件数据,随后弹出获取到的新数据与当前插件数据的对比:

    对比弹窗的右上角可以控制显示的样式,如勾选「折叠无变更」可以收起过长的内容。

    确认插件的更新内容之后,点击「确认更新」即可升级到最新。

    控制台

    为了方便插件作者编写插件,海豹核心提供了「控制台」,方便直接测试代码。

    JS 插件控制台
    JS 插件控制台

    在代码框中编写代码,点击「执行代码」即可运行,运行结果将显示在下方。

    插件设置

    进阶 - 编写 JS 插件 - 注册插件配置项

    如何使用 JS 插件?

    不同的 JS 插件的使用方法不同,不过一般都是提供了一些 . 开头的命令,可以查看相应扩展的说明来获取使用帮助。

    如何编写 JS 插件?

    进阶 - 编写 JS 插件

    上次编辑于:
    + + + diff --git a/config/reply.html b/config/reply.html new file mode 100644 index 000000000..147468815 --- /dev/null +++ b/config/reply.html @@ -0,0 +1,54 @@ + + + + + + + + 自定义回复 | 海豹手册 + + + + + + +
    跳至主要內容

    自定义回复

    大约 7 分钟

    自定义回复

    本节内容

    本节将介绍自定义回复功能,请善用侧边栏和搜索,按需阅读文档。

    什么是自定义回复?

    • 我希望让骰子能回复用户发送的早安、午安、晚安,应该怎么做?

    • 我不会 JavaScript,有没有更简单的方式给骰子编写功能呢?

    • ……

    如果希望骰子能对某些关键词做出响应,最简单的方式就是使用「自定义回复」功能。

    自定义回复的典型使用场景
    自定义回复的典型使用场景

    「自定义回复」是海豹核心提供的一种功能扩展方式。它的形式自由,触发机制多样(关键字、正则表达式等),并且能配合海豹核心的变量系统与牌堆功能使用。无论你只是想增加简单的回复,还是需要复杂的判断和响应,都可以尝试使用自定义回复。

    在哪编写自定义回复?

    点击海豹 UI 界面的「扩展功能 - 自定义回复」选项,你就可以进入「自定义回复」的设置页面。

    自定义回复页
    自定义回复页

    默认情况下,自定义回复功能是被关闭的,你可以点击 页面左上角的开关 打开这一功能,在同意许可协议后,你就可以看到自定义回复的设置页面,下面我们将一一介绍其中的功能。

    自定义回复设置页
    自定义回复设置页

    在页面的上半部分,你可以看见一些帮助信息,阅读它们也能为编写自定义回复带来帮助。

    当前回复文件

    自定义回复文件
    自定义回复文件

    「自定义回复」支持多个设置文件,你可以在下拉框选择进行切换。默认状态下,会有一个名为 reply.yaml 的初始自定义回复文件,可以直接在该文件中进行自定义回复的编写。

    你可以分别控制回复文件的启用与否。启用了的回复文件会显示「已启用」,如果显示「未启用」,可以点击它启用该文件。

    未启用的自定义回复文件
    未启用的自定义回复文件

    对于每一个自定义回复文件,都可以进行「删除」和「下载」操作,方便你管理和分享它们。

    在编写过程中,可以勾选「开启回复调试日志」项,来为你编写回复提供更多有用信息。

    删除要谨慎!

    点击「删除」时,会弹出二次确认框。一旦点击确认,删除的文件将无法找回,务必在删除时小心确认。

    可以选择点击「已启用」按钮禁用它来代替删除。

    新建/解析/导入自定义回复文件

    在当前文件的右侧有三个按钮,它们是快速创建新自定义回复的不同方式:

    • 新建:创建一个新的自定义回复文件。在你想要将不同的回复区分开,方便管理的时候,可以新建一个文件;
    • 解析:通过粘贴文本来快速向当前文件添加自定义回复项。通常来说这段文本是其他人分享给你的;
    • 上传:直接上传 .yaml 格式的自定义回复文件,通常来说这也是其他人分享给你的。

    获取自定义回复文件

    你可以在 自定义回复仓库open in new window 或官方群的群文件中找到其他骰主分享的文件,使用「上传」功能导入它们。

    无法访问仓库?

    仓库位于 GitHub,访问时请确认你的网络状况。

    设置回复项

    在自定义回复页的左下角有一个「添加一项」按钮,点击可以向当前文件中添加一条回复项。

    添加回复项
    添加回复项

    每一个自定义回复项都包括两个部分:「条件」「结果」,分别对应着该回复项的触发条件和骰子的回复动作。

    在回复项的左上角可以控制该项的启用与否,右上角可以删除这一条回复项。当回复项较多的时候,可以点击「收缩」来将不重要的项折叠起来。

    随时保存修改

    记得随时保存自己的修改,防止改动内容丢失。

    回复项的条件

    在回复项的左上角是该项的匹配模式,可以理解为当什么情况下会触发这一条回复项。目前提供了三种匹配模式:

    • 文本匹配:即设置什么样的内容会触发这条回复项;
    • 文本长度:即当回复内容的长度满足什么条件时会触发这条回复项;
    • 表达式为真:此处不介绍,见 更复杂的回复

    回复项的条件支持多个,点击「增加」即可为该回复项增加一个条件。当回复项有多个条件时,必须同时满足所有条件 才会触发该回复项。

    如何实现多个内容中任意一个均可触发回复项?

    • 我希望 v我50vme50 任意一个都能触发同样的回复,我该不会需要编写两条相同的回复项吧?

    当然不用!你可以使用文本匹配中的「任意相符」方式来实现,或者直接使用「正则匹配」方式。见 文本匹配

    文本匹配

    文本匹配支持多种方式,在内容中填写要匹配的内容,即可按设置的方式匹配触发回复项。

    • 精准匹配:当骰子收到和内容 完全一致 的消息时,触发该回复项;
    • 任意相符:收到符合任意一个内容的消息时,都能触发该回复项,如 aa|bb,则 aa 或 bb 均可触发;
    • 包含文本:消息包含此内容时触发;
    • 不含文本:消息不包含此内容时触发;
    • 模糊匹配:消息与内容相似时触发该回复项;(普通用户无需纠结什么叫相似)
    • 正则匹配:消息匹配正则表达式时触发,此处不介绍,见 更复杂的回复
    • 前缀匹配:消息以内容为开头时触发;
    • 后缀匹配:消息以此内容为结尾时触发。

    「任意相符」示例

    设置:任意相符,文本 a|b,回复 c

    输入:a
    +回复:c
    +
    +输入:b  
    +回复:c
    +
    +输入:ab
    +回复:不回复
    +
    +输入:a|b
    +回复:不回复
    +
    +输入:其他
    +回复:不回复
    +

    常用方式

    「精准匹配」与「任意相符」是最常用的模式。当然,对于了解正则表达式的用户,「正则匹配」也是经常被使用的。

    文本长度

    指定字数,当消息长度「大于等于」或「小于等于」给定的字数时触发对应回复项。

    汉字的长度

    在文本长度匹配中,一个汉字算作两个字符。如 你好 两字可以触发大于等于 4 的文本长度匹配。

    回复项的结果

    每一个回复项可以有一个或者多个「回复结果」,多个回复结果将 从上到下依次执行。点击「增加」可以新增一条结果,也可以通过「删除结果」按钮去掉对应结果。

    每一个回复结果可以有多条回复文本,结果会在这些文本中 随机抽取 一条作为结果。

    回复可以是直接的回复,也可以指定是「私聊回复」或者「群内回复」。

    提示

    回复项有几个结果,该回复项就会发送几条消息。

    回复结果延迟

    可以给回复结果设置延迟,消息将在此延迟后发送,单位是秒,可以是小数。

    注意

    QQ 消息的随机延迟仍会被加入,如果你希望保证发言顺序,记得考虑这点。

    更复杂的回复

    • 自定义回复要怎么抽取牌堆?

    • 我想控制只有私聊才触发回复,要怎样设置?

    • 我希望编写有一定逻辑的自定义回复,我要怎么做?

    • 前缀/后缀/包含等文本匹配方式不够用/出现误判,听说可以用正则匹配解决?要怎样使用呢?

    • ……

    更复杂的自定义回复编写,会涉及到海豹提供的其他系统,如牌堆、内置脚本语法、变量机制等。也有可能要求你有其它知识的了解,如正则表达式等。

    如果你有复杂回复编写的需要,或想了解更多细节,可以跳转到 进阶 - 编写自定义回复 进行阅读。

    上次编辑于:
    + + + diff --git a/deploy/index.html b/deploy/index.html new file mode 100644 index 000000000..56f0f8e00 --- /dev/null +++ b/deploy/index.html @@ -0,0 +1,40 @@ + + + + + + + + 部署 | 海豹手册 + + + + + + + + + + diff --git a/deploy/platform-dodo.html b/deploy/platform-dodo.html new file mode 100644 index 000000000..e8740aa30 --- /dev/null +++ b/deploy/platform-dodo.html @@ -0,0 +1,40 @@ + + + + + + + + DODO | 海豹手册 + + + + + + + + + + diff --git a/deploy/platform-kook.html b/deploy/platform-kook.html new file mode 100644 index 000000000..843462b4a --- /dev/null +++ b/deploy/platform-kook.html @@ -0,0 +1,40 @@ + + + + + + + + KOOK | 海豹手册 + + + + + + + + + + diff --git a/deploy/platform-qq.html b/deploy/platform-qq.html new file mode 100644 index 000000000..80e4af1ca --- /dev/null +++ b/deploy/platform-qq.html @@ -0,0 +1,40 @@ + + + + + + + + QQ | 海豹手册 + + + + + + +
    跳至主要內容

    QQ

    大约 4 分钟

    QQ

    本节内容

    本节将包含你在 QQ 平台搭建海豹核心需要了解的特定内容。

    不被 QQ 官方欢迎的机器人功能

    直至目前,群聊中的 QQ 机器人普遍采用「假用户」方式,即通过第三方软件接入注册的另一个 QQ 。QQ 官方并未提供正规的群聊机器人支持,并且一直在对第三方实现进行技术与非技术层面的多重打击。

    从目前的表现看来,QQ 官方会对账号行为进行检测,来区分出账号是否是正常用户(如不正常的登录方式,以不合理的速度在多地区登录等等)。我们无法得知具体的检测细节,但已证实的是,当 QQ 账号用作机器人并被检测到时,该 QQ 会视为风险账号,被官方予以警告,封禁,甚至 永久冻结 的惩罚。

    因此,是否在 QQ 平台搭建骰子取决于你的慎重考虑,海豹官方无法做出任何保证。倘若出现账号被封禁等情况时,海豹官方无力解决此类问题,也不对相应后果负责。

    来自官方的围追堵截让 QQ 平台的部署门槛不断拉高。目前的军备竞赛下,如此复杂的部署方式是现状下几乎唯一的选择。对此我们也十分无奈,只能希望并期待 QQ 官方提供正式的群聊机器人支持,让合理的需求得到合法的解。

    使用签名服务

    qsing 已停止维护

    原 qsign 作者已因「不可抗力」无法再维护此项目,对应原代码仓库也已删除,该方法会在未来逐渐失效,请做好预期准备。

    部署签名服务,即使用开源签名服务 qsignopen in new window,是目前用来绕过检测的最有效手段。

    怎么使用签名服务?

    你可以自己在本地搭一个 qsign 服务,也可以使用别人搭好的。

    自行搭建签名服务

    如果你的动手能力足够强或者有足够的电脑知识,强烈推荐 自己搭建本地签名服务器。

    使用他人的签名服务可能会泄漏以下信息 (截取自 qsign 的说明)

    • 登录账号
    • 登录时间
    • 登录后发送的消息内容
    • 登录后发送消息的群号/好友 ID

    不会泄露的信息:

    • 账号密码
    • 账号 session
    • 群列表/好友列表
    • 接收的消息
    • 除发送消息外的任何历史记录

    使用共享签名服务可能会提高账号被封禁的概率。

    在登录账号的时候会看到这样一个界面:

    海豹的qq登录页
    海豹的qq登录页

    点击下面的「签名服务」一栏的「简易配置」,可以看到如下配置项:

    配置签名服务
    配置签名服务
    • 服务 url:你要链接的 qsign url
    • 服务 key:密码
    • 服务鉴权:默认为空,如果有的服务器要求特定的鉴权,就填上吧

    默认的 qsign 配置

    没有特殊设置的话,qsign 的 url 通常默认为 http://localhost:13579,key 通常默认为 114514

    如何搭建签名服务

    有能力的用户可以自行搭建服务。

    可以尝试使用 一键qsignopen in new window

    引用自说明:

    点开以后删掉文件夹里的 go-cqhttp.bat 及 go-cqhttp_windows_386.exe,然后运行里面的 Start_Qsign.bat 启动qsign,按照提示依次键入 txlib_version 参数、设定 hostportkey的值。(如果不知道这些是干什么的,请直接依次按下 Enter)

    上次编辑于:
    + + + diff --git a/deploy/quick-start.html b/deploy/quick-start.html new file mode 100644 index 000000000..8960bd9a5 --- /dev/null +++ b/deploy/quick-start.html @@ -0,0 +1,54 @@ + + + + + + + + 快速开始 | 海豹手册 + + + + + + +
    跳至主要內容

    快速开始

    大约 4 分钟

    快速开始

    本节内容

    本节将会指导你如何在你的 PC、服务器、甚至安卓手机上搭建和部署海豹核心。

    获取海豹

    可以从以下两个渠道获取海豹核心安装包:

    • 官网:从 官网下载页open in new window 获取最新的正式版海豹核心安装包。

    • GitHub:从 GitHub Releaseopen in new window 获取海豹核心安装包。

      这一渠道提供两个版本:以 版本号+发布日期 命名的正式版,与官网一致;以 Latest Dev Build+日期 命名的最新构建,可能有各种 Bug,不推荐一般用户使用。

    我该选择从哪里获取?

    我们非常建议你使用从官网获取的正式版海豹。对于绝大多数用户来说,官网的下载最顺畅和便捷,所提供的正式版也适合绝大多数用户使用。

    但是,如果你使用的是中国移动运营的网络,由于运营商的限制政策,你可能无法从官网下载。可以尝试使用其他运营商的网络。

    海豹提供了多个平台的安装包,请确认你的操作系统并选择对应版本的安装包。提供的平台如下:

    • Windows:普通用户首选,适用于 Windows 7 或者更高,同样可以部署在 Windows 云服务器。
      • 64 位:适合绝大多数用户使用。
      • 32 位:只在你明确知道为何要使用 32 位版本的情况下使用 32 位版本。
    • Linux: 提供给更专业的用户使用,需要使用终端启动。适用于服务器、树莓派等设备。
      • x64:绝大多数使用 Intel 或 AMD CPU 的服务器都应使用此版本。
      • arm64:树莓派等 arm 设备请使用 arm64 版。
    • MacOS:提供给 Mac 用户使用,需要使用终端启动。
      • arm64:Apple Silicon 芯片(M1、M2 等)请使用 arm64 版。
      • x64:Intel 芯片请使用 x64 版。
    • Android:提供 Android 的 apk 安装包。

    启动

    注意

    永远不要直接运行压缩包中的海豹核心,也不要在临时目录中运行海豹核心。

    将安装包解压到合适的目录。考虑到后续升级,将目录名中的版本号删去或许是更好的做法。

    根据系统不同,用以下方法即可启动海豹:

    双击运行 sealdice-core.exe。数秒钟后,海豹核心将会在后台运行并弹出提示。

    在任务栏中找到海豹图标,点击即可打开后台(WebUI)。

    安装为系统服务(可选)

    如果你使用远程 Linux 服务器部署,或者使用终端启动海豹核心,那么,随着终端关闭,通常海豹核心也会一同关闭。

    海豹核心提供了一种自动安装为系统服务(systemd 服务项)的功能,可以免去手动配置。

    服务名称和服务的启动用户均可以通过提供命令行参数自定义,请运行 ./sealdice-core -h 查阅详细说明。

    默认情况下,海豹核心将尝试安装一个由 root 用户运行的,名为 sealdice.service 的服务。这要求海豹核心拥有 root 权限(通常由 sudo 运行得到)。

    $ ./sealdice-core -i
    +正在安装系统服务,安装完成后,SealDice将自动随系统启动
    +安装完成,正在启动……
    +

    也提供自动卸载:

    $ ./sealdice-core --uninstall
    +正在卸载系统服务……
    +系统服务已删除
    +

    安装完成后,可以使用 systemctl 来管理服务:

    systemctl status sealdice # 查看运行状态
    +systemctl start sealdice  # 启动海豹核心
    +systemctl start sealdice  # 启动或重启海豹核心
    +systemctl stop sealdice   # 停止海豹核心
    +journalctl -xe -u sealdice.service # 查看日志
    +

    以上命令的详细用法,请查阅你系统的 systemd 文档。

    上次编辑于:
    + + + diff --git a/deploy/special_feature.html b/deploy/special_feature.html new file mode 100644 index 000000000..7e1faa986 --- /dev/null +++ b/deploy/special_feature.html @@ -0,0 +1,93 @@ + + + + + + + + 特色功能 | 海豹手册 + + + + + + +
    跳至主要內容

    特色功能

    大约 5 分钟

    特色功能

    本节内容

    本节将会介绍海豹的特色功能。

    指令兼容性

    海豹核心兼容了溯洄核心、赵骰核心和塔骰核心的绝大部分主流指令,无论之前用过哪一个都可以轻松上手。

    海豹核心对指令格式不敏感,你可以使用 .r1d20 +1.r d20+1.stshow力量 敏捷。st hp - 1 等等各种写法。

    虽然海豹尽可能提高兼容性,我们仍推荐适当使用空格,以避免预期外结果。

    易于部署和使用

    海豹的设计初衷是 「能被任何 TRPG 玩家喜爱和使用」,同时秉持 「没有提供 UI 的功能等于不存在」 的理念。

    只需一个不到 25 MB 的安装包、一个可用的机器人账号、和一小段空闲时间,任何人都可以搭建一个 TRPG 骰子。

    如果你希望在 QQ 平台上搭建骰子,由于 QQ 原则上不允许机器人账号,你会需要使用一些特殊技术,这可能花费你更多时间和精力。

    极少的资源占用

    由于 Golang 的高效,海豹核心只占用大概 40 MB 内存,以及极少的 CPU 资源。

    自带的《CoC 7th 怪物之锤》和《D&D 系列资料》会另外占用 50 - 70 MB 内存,但能提供极为强大的资料查询功能。

    内存占用会随着持续运行而稍稍增长并有所波动。根据我们的观察,即使是持续运行数月的大型公骰,内存占用也不会超过数百 MB。

    强自定义

    提供了友好的 WebUI 界面,可以自定义大部分指令的回复语句。

    同时对于自定义回复功能进行了强化,你可以编写一些复杂逻辑,使你的骰子更加鲜活。

    人工智能鸽子

    让你想咕就咕。

    .gugu
    +🕊️: <木落>在来开团的路上被巨龙叼走了!
    +

    查看鸽子背后的故事

    .gugu 来源
    +🕊️: 前往了一个以前捕鲸的小岛度假~这里人很亲切!但是吃了这里的鱼肉料理之后有点晕晕的诶...想到前几天<木落>的短信,还是别追究他为什么不在了。
    +    ——鹊鹊结合实际经历创作
    +

    强大的查询功能

    海豹搭载了全文搜索技术(仅限 PC 版),可以看作是一个微型搜索引擎。

    .find 30尺 法术
    +

    细节可参见 查询指令 一节。

    通用特化支持

    代替他人检定 / 操作他人属性

    CoC 特化支持

    属性同义词

    各种旧版翻译、俗称、简繁汉字的属性被视为同一属性。

    默认技能等级

    内置部分人物卡上没有的默认技能等级。

    包括不限于速记、园艺、攀爬、各种武器等等。

    支持 .scb 指令

    用于在 sc 时附加一个奖励骰。

    适用于规则书中的关键连接自救规则。

    D&D 特化支持

    属性同义词

    各种旧版翻译、俗称、简繁汉字的属性被视为同一属性。

    优势骰劣势骰

    $ .set 20
    +设定默认骰子面数为 20
    +
    +$ .r d20优势
    +<木落>掷出了 d20优势=[{7 | 6 }]=7
    +
    +$ .r d劣势
    +<木落>掷出了 d劣势=[{16 | 18 }]=16
    +

    属性调整值和熟练自动计算

    临时属性

    法术位支持

    死亡豁免

    休息

    可以实时编辑的跑团日志

    海豹开发了 日志在线染色器open in new window

    在海豹中记录的日志会自动上传,省去你一一发送日志文件的麻烦。

    除了海豹 Log 自用之外,支持 QQ 格式和塔骰格式,将你的 Log 全文粘贴到文本框里即可。

    是纯净骰,也是娱乐骰

    海豹除了核心指令之外,都被设计为可插拔的,目前有 7 个内置扩展。

    关闭对应扩展会连同扩展带来的指令一块关闭。

    因此在跑团时,如果你不想要任何娱乐功能,你可以(以 CoC 团为例):

    .ext fun off // 关闭.jrrp和.gugu
    +.ext reply off // 关闭关键字回复
    +.ext deck off // 关闭抽牌 .draw
    +.ext dnd5e off // 关闭dnd5e系列指令
    +.ext story off // 关闭.name[随机指令]/.modu[魔都查询]/.who[排序]等
    +
    +也可以写成一行:
    +.ext fun reply deck dnd5e story off
    +

    这样一来,就只剩下 coc 系列指令和 log 指令了。

    这个改动在当前群聊持续生效。你也可以再打开相应扩展:

    .ext fun on
    +

    如果你是骰主,你也可以在 WebUI 中设置各个扩展是否默认开启。这配置对于海豹核心新加入的群聊生效。

    更强的指令支持

    海豹核心将表达式翻译成字节码,丢进指令虚拟机里执行,同时也做了很强的兼容性处理。

    可以在不同骰系下测试一下这些指令:

    .r 30 + (-1d20) + 49
    +.r d20 + (3 + 1d4)
    +.r 1 + (3+2)d(4+2d10)
    +
    +.sc 0/-1
    +.sc (1+2)/0
    +.sc 0/1d4+(3*2)
    +.sc 1 / 2
    +.sc 1/2 + 3
    +
    +.ra b 测试50
    +.ra b 50 测试
    +

    彩蛋:

    .r 1+d10-3*4 --asm
    +<木落>掷出了 1+d10-3*4=1 + 3[1d10=3] - 12=-8
    +=== VM Code ===
    +push 1
    +mark.left
    +push 1
    +mark.left
    +push 10
    +dice
    +add
    +mark.left
    +push 3
    +mark.left
    +push 4
    +mul
    +sub
    +halt
    +=== VM Code End===
    +

    跨平台

    海豹核心的底层架构,支持单进程多号,也支持很方便地多开

    多号指每个骰子上连接多个帐号,并且支持同时连接不同平台。

    多开指同时运行多个海豹核心,以提供各自不同的服务内容。

    TRPG 规则支持列表

    • COC7
    • COC - DeltaGreen (.setcoc dg)
    • DND5e
    • 暗影狂奔 (.rsr)
    • WOD/无限团 (.ww)
    • 双十字 DoubleCross (.dx)
    • 共鸣性怪异 Emoklore (.ek .ekgen)
    • 剑世界 2.5 (插件)
    • 明日方舟跑团规则 (插件)
    • 其它插件由海豹社区提供,欢迎前去 插件仓库open in new window 查看

    如果你不跑这些规则,或者觉得并无必要,可以在后台关闭对应的指令。

    如果你喜欢的规则这里没有,那么可以去插件仓库看一看,或者自己编写规则模板插件!

    上次编辑于:
    + + + diff --git a/deploy/transfer.html b/deploy/transfer.html new file mode 100644 index 000000000..38ba95719 --- /dev/null +++ b/deploy/transfer.html @@ -0,0 +1,42 @@ + + + + + + + + 迁移 | 海豹手册 + + + + + + +
    跳至主要內容

    迁移

    大约 3 分钟

    迁移

    本节内容

    本节将会指导你如何迁移现有的海豹核心。

    海豹核心的数据文件全平台通用。因此,在不同平台间迁移时,你只需要准备每个平台的可执行文件。

    注意

    在进行任何迁移时,你都应确保迁出和迁入的海豹核心都未在运行,否则可能造成不可逆的数据损坏。

    相同平台间迁移

    将整个海豹核心目录复制到新的位置即可。

    如果目录体积较大,你可以自行删除 backups/ 下的备份文件。这不会造成数据损失。

    跨平台迁移

    跨平台迁移时不能使用旧的可执行文件,而只迁移数据部分。

    将迁出海豹核心中的 data/ 目录以你习惯的任何方式打包。

    在迁入平台准备一份全新的海豹核心,用打包的数据覆盖迁入海豹的对应目录。

    如果你希望保留旧的备份文件,你可以复制迁出海豹 backups/ 目录中的内容,放置于迁入海豹的对应目录。备份文件也是通用的。

    Linux 服务器间跨架构迁移(arm64 → amd64)

    步骤与普通跨平台迁移一致。在运行新海豹核心时,如果文件权限不正确,可以在海豹核心目录下执行以下两条命令:

    find . -type f | xargs chmod 644
    +find . -type d | xargs chmod 755
    +

    迁移数据到手机

    如果你需要把电脑海豹的数据迁移到手机海豹上,同样是迁移海豹的 data/ 目录。步骤如下:

    1. 关闭你的电脑海豹,复制电脑海豹的 data/ 目录发送到手机上。
    2. 点击手机海豹的 导出数据 按钮,在设置中勾选 文件同步模式。(平时推荐关闭这个选项,这里是为了替换数据库特别地需要开启)
    3. 在你习惯的手机文件管理软件中找到 根目录/document/com.sealdice.dice/sealdice,用迁出海豹的 data 目录替换这里面的 data 目录。
    4. 回到手机海豹的界面中点击 导入数据。导入完成后再点击启动核心,这时你的手机海豹里就应该是旧海豹的数据了。导入完成后也可以把「文件同步模式」关闭了。

    注意

    在手机海豹上,每次导入数据前都进行一次导出,导出后不要再运行海豹核心。

    这是因为,手机海豹不会实时更新导出的文件,它们是海豹数据在导出时的一份快照。

    如果在上次导出后产生了新数据,而再次进行导入,会导致新产生的数据被之前导出的数据覆盖,丢失这段时间以来录入的角色卡、Log、修改的自定义文案等海豹内部的数据。

    上次编辑于:
    + + + diff --git a/images/bg/1-dark.svg b/images/bg/1-dark.svg new file mode 100644 index 000000000..7eb0b37ca --- /dev/null +++ b/images/bg/1-dark.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/bg/1-light.svg b/images/bg/1-light.svg new file mode 100644 index 000000000..e06f5f0a1 --- /dev/null +++ b/images/bg/1-light.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/bg/2-dark.svg b/images/bg/2-dark.svg new file mode 100644 index 000000000..89a11fa94 --- /dev/null +++ b/images/bg/2-dark.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/bg/2-light.svg b/images/bg/2-light.svg new file mode 100644 index 000000000..255c99b83 --- /dev/null +++ b/images/bg/2-light.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/bg/3-dark.svg b/images/bg/3-dark.svg new file mode 100644 index 000000000..2267dc929 --- /dev/null +++ b/images/bg/3-dark.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/bg/3-light.svg b/images/bg/3-light.svg new file mode 100644 index 000000000..e7b024819 --- /dev/null +++ b/images/bg/3-light.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/bg/4-dark.svg b/images/bg/4-dark.svg new file mode 100644 index 000000000..6dd25f94e --- /dev/null +++ b/images/bg/4-dark.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/bg/4-light.svg b/images/bg/4-light.svg new file mode 100644 index 000000000..14c7f38cc --- /dev/null +++ b/images/bg/4-light.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/bg/5-dark.svg b/images/bg/5-dark.svg new file mode 100644 index 000000000..f185663b5 --- /dev/null +++ b/images/bg/5-dark.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/bg/5-light.svg b/images/bg/5-light.svg new file mode 100644 index 000000000..e3b5a1c52 --- /dev/null +++ b/images/bg/5-light.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/bg/6-dark.svg b/images/bg/6-dark.svg new file mode 100644 index 000000000..c5144d657 --- /dev/null +++ b/images/bg/6-dark.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/bg/6-light.svg b/images/bg/6-light.svg new file mode 100644 index 000000000..e724d2914 --- /dev/null +++ b/images/bg/6-light.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/seal.png b/images/seal.png new file mode 100644 index 000000000..78f07a939 Binary files /dev/null and b/images/seal.png differ diff --git a/images/seal2.png b/images/seal2.png new file mode 100644 index 000000000..7052fa757 Binary files /dev/null and b/images/seal2.png differ diff --git a/images/sealdice-dark.svg b/images/sealdice-dark.svg new file mode 100644 index 000000000..a980c5ee0 --- /dev/null +++ b/images/sealdice-dark.svg @@ -0,0 +1,24 @@ + + + + + icon-s + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/images/sealdice.svg b/images/sealdice.svg new file mode 100644 index 000000000..a516c34ff --- /dev/null +++ b/images/sealdice.svg @@ -0,0 +1 @@ +icon-s \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 000000000..e712a95cc --- /dev/null +++ b/index.html @@ -0,0 +1,40 @@ + + + + + + + + 首页 | 海豹手册 + + + + + + +
    跳至主要內容
    hero image

    海豹手册

    ✨海豹核心的全新官方使用手册

    指令上手快速部署特色功能

    海豹核心

    海豹核心

    特性

    常用指令

    实现了跑团常用的绝大部分指令,用你熟悉的指令跑团

    多规则支持

    CoC、D&D、SR、WOD 等规则都有专门支持

    同义词表

    属性兼容中文简体、繁体、英文缩写和其他常见别名

    全文搜索

    使用全文搜索技术,小型的搜索引擎帮助你快速查询各种资料

    指令代骰

    通过 @ 指名代替其他玩家进行检定,愉快规避掉鸽子带来的麻烦事

    自定义扩展

    提供牌堆等或实用或娱乐的扩展能力

    更多……

    更多……

    使用有问题?对功能有新想法?想认识更多骰主?欢迎加入官方群

    • QQ 一群:524364253

    • QQ 二群:562897832

    • QQ 三群:715664650

    • QQ 四群:917654757

    • QQ 五群:747114944

    • DODO 群:https://imdodo.com/s/246716

    • KOOK 群:https://kook.top/Cmr0Fy

    + + + diff --git a/robots.txt b/robots.txt new file mode 100644 index 000000000..19bfe75d0 --- /dev/null +++ b/robots.txt @@ -0,0 +1,5 @@ + +User-agent:* +Disallow: + +Sitemap: http://localhost:8080/sealdice-manual-next/sitemap.xml diff --git a/search-pro.worker.js b/search-pro.worker.js new file mode 100644 index 000000000..7f9e9feab --- /dev/null +++ b/search-pro.worker.js @@ -0,0 +1,2 @@ +const nt="ENTRIES",V="KEYS",T="VALUES",F="";class D{set;_type;_path;constructor(t,s){const n=t._tree,o=Array.from(n.keys());this.set=t,this._type=s,this._path=o.length>0?[{node:n,keys:o}]:[]}next(){const t=this.dive();return this.backtrack(),t}dive(){if(this._path.length===0)return{done:!0,value:void 0};const{node:t,keys:s}=E(this._path);if(E(s)===F)return{done:!1,value:this.result()};const n=t.get(E(s));return this._path.push({node:n,keys:Array.from(n.keys())}),this.dive()}backtrack(){if(this._path.length===0)return;const t=E(this._path).keys;t.pop(),!(t.length>0)&&(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:t})=>E(t)).filter(t=>t!==F).join("")}value(){return E(this._path).node.get(F)}result(){switch(this._type){case T:return this.value();case V:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}}const E=e=>e[e.length-1],ot=(e,t,s)=>{const n=new Map;if(t===void 0)return n;const o=t.length+1,u=o+s,i=new Uint8Array(u*o).fill(s+1);for(let r=0;r{const d=u*i;t:for(const l of e.keys())if(l===F){const a=o[d-1];a<=s&&n.set(r,[e.get(l),a])}else{let a=u;for(let h=0;hs)continue t}W(e.get(l),t,s,n,o,a,i,r+l)}};class C{_tree;_prefix;_size=void 0;constructor(t=new Map,s=""){this._tree=t,this._prefix=s}atPrefix(t){if(!t.startsWith(this._prefix))throw new Error("Mismatched prefix");const[s,n]=x(this._tree,t.slice(this._prefix.length));if(s===void 0){const[o,u]=O(n);for(const i of o.keys())if(i!==F&&i.startsWith(u)){const r=new Map;return r.set(i.slice(u.length),o.get(i)),new C(r,t)}}return new C(s,t)}clear(){this._size=void 0,this._tree.clear()}delete(t){return this._size=void 0,ut(this._tree,t)}entries(){return new D(this,nt)}forEach(t){for(const[s,n]of this)t(s,n,this)}fuzzyGet(t,s){return ot(this._tree,t,s)}get(t){const s=I(this._tree,t);return s!==void 0?s.get(F):void 0}has(t){const s=I(this._tree,t);return s!==void 0&&s.has(F)}keys(){return new D(this,V)}set(t,s){if(typeof t!="string")throw new Error("key must be a string");return this._size=void 0,M(this._tree,t).set(F,s),this}get size(){if(this._size)return this._size;this._size=0;const t=this.entries();for(;!t.next().done;)this._size+=1;return this._size}update(t,s){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;const n=M(this._tree,t);return n.set(F,s(n.get(F))),this}fetch(t,s){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;const n=M(this._tree,t);let o=n.get(F);return o===void 0&&n.set(F,o=s()),o}values(){return new D(this,T)}[Symbol.iterator](){return this.entries()}static from(t){const s=new C;for(const[n,o]of t)s.set(n,o);return s}static fromObject(t){return C.from(Object.entries(t))}}const x=(e,t,s=[])=>{if(t.length===0||e==null)return[e,s];for(const n of e.keys())if(n!==F&&t.startsWith(n))return s.push([e,n]),x(e.get(n),t.slice(n.length),s);return s.push([e,t]),x(void 0,"",s)},I=(e,t)=>{if(t.length===0||e==null)return e;for(const s of e.keys())if(s!==F&&t.startsWith(s))return I(e.get(s),t.slice(s.length))},M=(e,t)=>{const s=t.length;t:for(let n=0;e&&n{const[s,n]=x(e,t);if(s!==void 0){if(s.delete(F),s.size===0)R(n);else if(s.size===1){const[o,u]=s.entries().next().value;$(n,o,u)}}},R=e=>{if(e.length===0)return;const[t,s]=O(e);if(t.delete(s),t.size===0)R(e.slice(0,-1));else if(t.size===1){const[n,o]=t.entries().next().value;n!==F&&$(e.slice(0,-1),n,o)}},$=(e,t,s)=>{if(e.length===0)return;const[n,o]=O(e);n.set(o+t,s),n.delete(o)},O=e=>e[e.length-1],it=(e,t)=>{const s=e._idToShortId.get(t);if(s!=null)return e._storedFields.get(s)},rt=/[\n\r -#%-*,-/:;?@[-\]_{}\u00A0\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\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\u1680\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2000-\u200A\u2010-\u2029\u202F-\u2043\u2045-\u2051\u2053-\u205F\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\u3000-\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]+/u,S="or",q="and",ct="and_not",lt=(e,t)=>{e.includes(t)||e.push(t)},P=(e,t)=>{for(const s of t)e.includes(s)||e.push(s)},G=({score:e},{score:t})=>t-e,ht=()=>new Map,k=e=>{const t=new Map;for(const s of Object.keys(e))t.set(parseInt(s,10),e[s]);return t},N=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0,dt={[S]:(e,t)=>{for(const s of t.keys()){const n=e.get(s);if(n==null)e.set(s,t.get(s));else{const{score:o,terms:u,match:i}=t.get(s);n.score=n.score+o,n.match=Object.assign(n.match,i),P(n.terms,u)}}return e},[q]:(e,t)=>{const s=new Map;for(const n of t.keys()){const o=e.get(n);if(o==null)continue;const{score:u,terms:i,match:r}=t.get(n);P(o.terms,i),s.set(n,{score:o.score+u,terms:o.terms,match:Object.assign(o.match,r)})}return s},[ct]:(e,t)=>{for(const s of t.keys())e.delete(s);return e}},at=(e,t,s,n,o,u)=>{const{k:i,b:r,d}=u;return Math.log(1+(s-t+.5)/(t+.5))*(d+e*(i+1)/(e+i*(1-r+r*n/o)))},ft=e=>(t,s,n)=>{const o=typeof e.fuzzy=="function"?e.fuzzy(t,s,n):e.fuzzy||!1,u=typeof e.prefix=="function"?e.prefix(t,s,n):e.prefix===!0;return{term:t,fuzzy:o,prefix:u}},H=(e,t,s,n)=>{for(const o of Object.keys(e._fieldIds))if(e._fieldIds[o]===s){e._options.logger("warn",`SlimSearch: document with ID ${e._documentIds.get(t)} has changed before removal: term "${n}" was not present in field "${o}". Removing a document after it has changed can corrupt the index!`,"version_conflict");return}},gt=(e,t,s,n)=>{if(!e._index.has(n)){H(e,s,t,n);return}const o=e._index.fetch(n,ht),u=o.get(t);u==null||u.get(s)==null?H(e,s,t,n):u.get(s)<=1?u.size<=1?o.delete(t):u.delete(s):u.set(s,u.get(s)-1),e._index.get(n).size===0&&e._index.delete(n)},mt={k:1.2,b:.7,d:.5},pt={idField:"id",extractField:(e,t)=>e[t],tokenize:e=>e.split(rt),processTerm:e=>e.toLowerCase(),fields:void 0,searchOptions:void 0,storeFields:[],logger:(e,t)=>{typeof(console==null?void 0:console[e])=="function"&&console[e](t)},autoVacuum:!0},J={combineWith:S,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:mt},Ft={combineWith:q,prefix:(e,t,s)=>t===s.length-1},_t={batchSize:1e3,batchWait:10},U={minDirtFactor:.1,minDirtCount:20},yt={..._t,...U},Y=(e,t=S)=>{if(e.length===0)return new Map;const s=t.toLowerCase();return e.reduce(dt[s])||new Map},B=(e,t,s,n,o,u,i,r,d=new Map)=>{if(o==null)return d;for(const l of Object.keys(u)){const a=u[l],h=e._fieldIds[l],m=o.get(h);if(m==null)continue;let p=m.size;const f=e._avgFieldLength[h];for(const c of m.keys()){if(!e._documentIds.has(c)){gt(e,h,c,s),p-=1;continue}const g=i?i(e._documentIds.get(c),s,e._storedFields.get(c)):1;if(!g)continue;const _=m.get(c),y=e._fieldLength.get(c)[h],b=at(_,p,e._documentCount,y,f,r),z=n*a*g*b,A=d.get(c);if(A){A.score+=z,lt(A.terms,t);const w=N(A.match,s);w?w.push(l):A.match[s]=[l]}else d.set(c,{score:z,terms:[t],match:{[s]:[l]}})}}return d},At=(e,t,s)=>{const n={...e._options.searchOptions,...s},o=(n.fields||e._options.fields).reduce((c,g)=>({...c,[g]:N(n.boost,g)||1}),{}),{boostDocument:u,weights:i,maxFuzzy:r,bm25:d}=n,{fuzzy:l,prefix:a}={...J.weights,...i},h=e._index.get(t.term),m=B(e,t.term,t.term,1,h,o,u,d);let p,f;if(t.prefix&&(p=e._index.atPrefix(t.term)),t.fuzzy){const c=t.fuzzy===!0?.2:t.fuzzy,g=c<1?Math.min(r,Math.round(t.term.length*c)):c;g&&(f=e._index.fuzzyGet(t.term,g))}if(p)for(const[c,g]of p){const _=c.length-t.term.length;if(!_)continue;f==null||f.delete(c);const y=a*c.length/(c.length+.3*_);B(e,t.term,c,y,g,o,u,d,m)}if(f)for(const c of f.keys()){const[g,_]=f.get(c);if(!_)continue;const y=l*c.length/(c.length+_);B(e,t.term,c,y,g,o,u,d,m)}return m},X=(e,t,s={})=>{if(typeof t!="string"){const a={...s,...t,queries:void 0},h=t.queries.map(m=>X(e,m,a));return Y(h,a.combineWith)}const{tokenize:n,processTerm:o,searchOptions:u}=e._options,i={tokenize:n,processTerm:o,...u,...s},{tokenize:r,processTerm:d}=i,l=r(t).flatMap(a=>d(a)).filter(a=>!!a).map(ft(i)).map(a=>At(e,a,i));return Y(l,i.combineWith)},K=(e,t,s={})=>{const n=X(e,t,s),o=[];for(const[u,{score:i,terms:r,match:d}]of n){const l=r.length,a={id:e._documentIds.get(u),score:i*l,terms:Object.keys(d),match:d};Object.assign(a,e._storedFields.get(u)),(s.filter==null||s.filter(a))&&o.push(a)}return o.sort(G),o},Ct=(e,t,s={})=>{s={...e._options.autoSuggestOptions,...s};const n=new Map;for(const{score:u,terms:i}of K(e,t,s)){const r=i.join(" "),d=n.get(r);d!=null?(d.score+=u,d.count+=1):n.set(r,{score:u,terms:i,count:1})}const o=[];for(const[u,{score:i,terms:r,count:d}]of n)o.push({suggestion:u,terms:r,score:i/d});return o.sort(G),o};class Et{_options;_index;_documentCount;_documentIds;_idToShortId;_fieldIds;_fieldLength;_avgFieldLength;_nextId;_storedFields;_dirtCount;_currentVacuum;_enqueuedVacuum;_enqueuedVacuumConditions;constructor(t){if((t==null?void 0:t.fields)==null)throw new Error('SlimSearch: option "fields" must be provided');const s=t.autoVacuum==null||t.autoVacuum===!0?yt:t.autoVacuum;this._options={...pt,...t,autoVacuum:s,searchOptions:{...J,...t.searchOptions||{}},autoSuggestOptions:{...Ft,...t.autoSuggestOptions||{}}},this._index=new C,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldIds={},this._fieldLength=new Map,this._avgFieldLength=[],this._nextId=0,this._storedFields=new Map,this._dirtCount=0,this._currentVacuum=null,this._enqueuedVacuum=null,this._enqueuedVacuumConditions=U,this.addFields(this._options.fields)}get isVacuuming(){return this._currentVacuum!=null}get dirtCount(){return this._dirtCount}get dirtFactor(){return this._dirtCount/(1+this._documentCount+this._dirtCount)}get documentCount(){return this._documentCount}get termCount(){return this._index.size}toJSON(){const t=[];for(const[s,n]of this._index){const o={};for(const[u,i]of n)o[u]=Object.fromEntries(i);t.push([s,o])}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:t,serializationVersion:2}}addFields(t){for(let s=0;s{if(l!==1&&l!==2)throw new Error("SlimSearch: cannot deserialize an index created with an incompatible version");const h=new Et(a);h._documentCount=t,h._nextId=s,h._documentIds=k(n),h._idToShortId=new Map,h._fieldIds=o,h._fieldLength=k(u),h._avgFieldLength=i,h._storedFields=k(r),h._dirtCount=d||0,h._index=new C;for(const[m,p]of h._documentIds)h._idToShortId.set(p,m);for(const[m,p]of e){const f=new Map;for(const c of Object.keys(p)){let g=p[c];l===1&&(g=g.ds),f.set(parseInt(c,10),k(g))}h._index.set(m,f)}return h},Q=Object.entries,wt=Object.fromEntries,j=(e,t)=>{const s=e.toLowerCase(),n=t.toLowerCase(),o=[];let u=0,i=0;const r=(l,a=!1)=>{let h="";i===0?h=l.length>20?`… ${l.slice(-20)}`:l:a?h=l.length+i>100?`${l.slice(0,100-i)}… `:l:h=l.length>20?`${l.slice(0,20)} … ${l.slice(-20)}`:l,h&&o.push(h),i+=h.length,a||(o.push(["mark",t]),i+=t.length,i>=100&&o.push(" …"))};let d=s.indexOf(n,u);if(d===-1)return null;for(;d>=0;){const l=d+n.length;if(r(e.slice(u,d)),u=l,i>100)break;d=s.indexOf(n,u)}return i<100&&r(e.slice(u),!0),o},Z=/[\u4e00-\u9fa5]/g,tt=(e={})=>({fuzzy:.2,prefix:!0,processTerm:t=>{const s=t.match(Z)||[],n=t.replace(Z,"").toLowerCase();return n?[n,...s]:[...s]},...e}),xt=(e,t)=>t.contents.reduce((s,[,n])=>s+n,0)-e.contents.reduce((s,[,n])=>s+n,0),kt=(e,t)=>Math.max(...t.contents.map(([,s])=>s))-Math.max(...e.contents.map(([,s])=>s)),et=(e,t,s={})=>{const n={};return K(t,e,tt({boost:{h:2,t:1,c:4},...s})).forEach(o=>{const{id:u,terms:i,score:r}=o,d=u.includes("@"),l=u.includes("#"),[a,h]=u.split(/[#@]/),m=i.sort((f,c)=>f.length-c.length).filter((f,c)=>i.slice(c+1).every(g=>!g.includes(f))),{contents:p}=n[a]??={title:"",contents:[]};if(d)p.push([{type:"customField",key:a,index:h,display:m.map(f=>o.c.map(c=>j(c,f))).flat().filter(f=>f!==null)},r]);else{const f=m.map(c=>j(o.h,c)).filter(c=>c!==null);if(f.length&&p.push([{type:l?"heading":"title",key:a,...l&&{anchor:h},display:f},r]),"t"in o)for(const c of o.t){const g=m.map(_=>j(c,_)).filter(_=>_!==null);g.length&&p.push([{type:"text",key:a,...l&&{anchor:h},display:g},r])}}}),Q(n).sort(([,o],[,u])=>"max"==="total"?xt(o,u):kt(o,u)).map(([o,{title:u,contents:i}])=>{if(!u){const r=it(t,o);r&&(u=r.h)}return{title:u,contents:i.map(([r])=>r)}})},st=(e,t,s={})=>Ct(t,e,tt(s)).map(({suggestion:n})=>n),v=wt(Q(JSON.parse("{\"/\":{\"documentCount\":415,\"nextId\":415,\"documentIds\":{\"0\":\"v-74bc627b\",\"1\":\"v-22991227\",\"2\":\"v-22991227#官方站点\",\"3\":\"v-22991227#投喂\",\"4\":\"v-22991227#手册贡献者\",\"5\":\"v-22991227#开源\",\"6\":\"v-59513697\",\"7\":\"v-59513697#如何参与项目\",\"8\":\"v-59513697#bug-反馈、功能建议\",\"9\":\"v-59513697#提交修改\",\"10\":\"v-5993bf33\",\"11\":\"v-638c1d18\",\"12\":\"v-1bb267ce\",\"13\":\"v-1bb267ce#示例\",\"14\":\"v-1bb267ce#根据骰点结果展示不同文案\",\"15\":\"v-1bb267ce#多套文案的实现\",\"16\":\"v-1bb267ce#切换命令实现\",\"17\":\"v-1bb267ce#文案调整\",\"18\":\"v-1bb267ce#展示\",\"19\":\"v-3f75ff62\",\"20\":\"v-3f75ff62#概览\",\"21\":\"v-3f75ff62#语法快速入门\",\"22\":\"v-3f75ff62#基础牌堆编写\",\"23\":\"v-3f75ff62#牌堆语法\",\"24\":\"v-3f75ff62#一个项中抽取其他项\",\"25\":\"v-3f75ff62#插入掷骰表达式\",\"26\":\"v-3f75ff62#权重\",\"27\":\"v-3f75ff62#发送图片等\",\"28\":\"v-3f75ff62#牌组的隐藏和导出控制\",\"29\":\"v-3f75ff62#配置牌堆更新\",\"30\":\"v-3f75ff62#toml-牌堆的更多功能\",\"31\":\"v-3f75ff62#更多牌组设置\",\"32\":\"v-3f75ff62#云端内容\",\"33\":\"v-3f75ff62#面向有经验用户的快速指南\",\"34\":\"v-53c17e03\",\"35\":\"v-53c17e03#创建-json-格式的帮助文档\",\"36\":\"v-53c17e03#示例文档-塔罗牌-节选\",\"37\":\"v-53c17e03#创建-excel-格式的帮助文档\",\"38\":\"v-2fd3d5f8\",\"39\":\"v-2fd3d5f8#一些有帮助的资源\",\"40\":\"v-2fd3d5f8#第一个-js-扩展\",\"41\":\"v-2fd3d5f8#填写插件信息\",\"42\":\"v-2fd3d5f8#创建和注册扩展\",\"43\":\"v-2fd3d5f8#自定义指令\",\"44\":\"v-2fd3d5f8#创建指令\",\"45\":\"v-2fd3d5f8#指令参数与返回值\",\"46\":\"v-2fd3d5f8#指令核心执行流程\",\"47\":\"v-2fd3d5f8#注册指令\",\"48\":\"v-2fd3d5f8#示例\",\"49\":\"v-2fd3d5f8#生成随机数\",\"50\":\"v-2fd3d5f8#抽取牌堆\",\"51\":\"v-2fd3d5f8#存取数据\",\"52\":\"v-2fd3d5f8#示例代码-投喂插件\",\"53\":\"v-2fd3d5f8#示例代码-群内安价收集\",\"54\":\"v-2fd3d5f8#数据处理模板\",\"55\":\"v-2fd3d5f8#读取玩家或群组数据\",\"56\":\"v-2fd3d5f8#编写暗骰指令\",\"57\":\"v-2fd3d5f8#编写代骰指令\",\"58\":\"v-2fd3d5f8#网络请求\",\"59\":\"v-2fd3d5f8#自定义-coc-规则\",\"60\":\"v-2fd3d5f8#补充-使用非指令关键词\",\"61\":\"v-2fd3d5f8#注册插件配置项\",\"62\":\"v-2fd3d5f8#示例代码-注册配置项\",\"63\":\"v-2fd3d5f8#使用-ts-模板\",\"64\":\"v-2fd3d5f8#clone-或下载项目\",\"65\":\"v-2fd3d5f8#使用和编译\",\"66\":\"v-2fd3d5f8#补全信息\",\"67\":\"v-2fd3d5f8#目录结构\",\"68\":\"v-2fd3d5f8#js-扩展-api\",\"69\":\"v-2fd3d5f8#部分-api-使用示例\",\"70\":\"v-2fd3d5f8#replygroup-replyperson-replytosender\",\"71\":\"v-2fd3d5f8#memberban-memberkick\",\"72\":\"v-2fd3d5f8#format-formattmpl\",\"73\":\"v-2fd3d5f8#getctxproxyfirst-getctxproxyatpos\",\"74\":\"v-2fd3d5f8#vars\",\"75\":\"v-2fd3d5f8#ext\",\"76\":\"v-2fd3d5f8#coc\",\"77\":\"v-2fd3d5f8#deck\",\"78\":\"v-2fd3d5f8#自定义-trpg-规则相关\",\"79\":\"v-2fd3d5f8#其他\",\"80\":\"v-2fd3d5f8#ctx-的内容\",\"81\":\"v-2fd3d5f8#ctx-group-的内容\",\"82\":\"v-2fd3d5f8#ctx-player-的内容\",\"83\":\"v-2fd3d5f8#ctx-endpoint-的内容\",\"84\":\"v-2fd3d5f8#msg-的内容\",\"85\":\"v-2fd3d5f8#cmdargs-的内容\",\"86\":\"v-7c798590\",\"87\":\"v-7c798590#第一个自定义回复\",\"88\":\"v-7c798590#触发条件\",\"89\":\"v-7c798590#文本匹配-模糊匹配\",\"90\":\"v-7c798590#文本匹配-正则匹配\",\"91\":\"v-7c798590#表达式为真\",\"92\":\"v-7c798590#回复结果\",\"93\":\"v-7c798590#嵌入脚本语言\",\"94\":\"v-7c798590#执行块\",\"95\":\"v-7c798590#示例-使用-if\",\"96\":\"v-7c798590#示例-变量运算\",\"97\":\"v-7c798590#更多示例片段\",\"98\":\"v-7c798590#牌堆与自定义回复的结合\",\"99\":\"v-7c798590#多回复行的错误使用\",\"100\":\"v-7c798590#限定每人-每群每天一次\",\"101\":\"v-7c798590#条件语句嵌套条件算符-多条件条件语句\",\"102\":\"v-7c798590#同时使用前缀和后缀匹配-以匹配-axxxxxxxb-型文本\",\"103\":\"v-7c798590#随机看图\",\"104\":\"v-7c798590#单人模组\",\"105\":\"v-1375253a\",\"106\":\"v-1375253a#创建文本格式的敏感词库\",\"107\":\"v-1375253a#创建-toml-格式的敏感词库\",\"108\":\"v-c7c02ce4\",\"109\":\"v-c7c02ce4#了解海豹语\",\"110\":\"v-c7c02ce4#用什么编写\",\"111\":\"v-309cd60c\",\"112\":\"v-309cd60c#变量\",\"113\":\"v-309cd60c#数据类型和赋值\",\"114\":\"v-309cd60c#语句\",\"115\":\"v-309cd60c#运算符\",\"116\":\"v-309cd60c#数学运算\",\"117\":\"v-309cd60c#骰子算符\",\"118\":\"v-309cd60c#条件算符\",\"119\":\"v-309cd60c#条件算符-1\",\"120\":\"v-309cd60c#多重条件算符\",\"121\":\"v-309cd60c#三目运算符\",\"122\":\"v-309cd60c#条件语句\",\"123\":\"v-ba934fd8\",\"124\":\"v-3614fa3e\",\"125\":\"v-3614fa3e#如何设置黑白名单\",\"126\":\"v-3614fa3e#添加黑白名单\",\"127\":\"v-3614fa3e#ui-手动添加\",\"128\":\"v-3614fa3e#指令添加\",\"129\":\"v-3614fa3e#自动添加\",\"130\":\"v-3614fa3e#黑白名单设置\",\"131\":\"v-645298bb\",\"132\":\"v-645298bb#什么是拦截功能\",\"133\":\"v-645298bb#配置拦截\",\"134\":\"v-645298bb#匹配选项\",\"135\":\"v-645298bb#响应设置\",\"136\":\"v-645298bb#敏感词管理\",\"137\":\"v-645298bb#查看拦截日志\",\"138\":\"v-645298bb#如何让用户-群豁免检查\",\"139\":\"v-645298bb#如何编写敏感词库\",\"140\":\"v-21148c92\",\"141\":\"v-21148c92#什么是自定义文案\",\"142\":\"v-21148c92#如何修改文案\",\"143\":\"v-21148c92#文案列表\",\"144\":\"v-21148c92#筛选文案\",\"145\":\"v-21148c92#文案的导入-导出\",\"146\":\"v-21148c92#文案插入图片和-cq-码\",\"147\":\"v-21148c92#文案变量标签\",\"148\":\"v-21148c92#在一个文案中使用另一个文案\",\"149\":\"v-21148c92#文案常见问题\",\"150\":\"v-21148c92#骰子进群和成为好友的问候语是哪个\",\"151\":\"v-21148c92#更复杂的文案设置\",\"152\":\"v-7394443c\",\"153\":\"v-7394443c#牌堆是什么\",\"154\":\"v-7394443c#获取牌堆\",\"155\":\"v-7394443c#怎么上传牌堆到骰子-怎么管理牌堆\",\"156\":\"v-7394443c#怎么使用牌堆\",\"157\":\"v-7394443c#牌堆更新与云牌堆\",\"158\":\"v-7394443c#牌堆更新\",\"159\":\"v-7394443c#牌堆云端内容\",\"160\":\"v-7394443c#如何编写牌堆\",\"161\":\"v-2e19d214\",\"162\":\"v-2e19d214#什么是帮助文档\",\"163\":\"v-2e19d214#获取帮助文档\",\"164\":\"v-2e19d214#如何使用帮助文档\",\"165\":\"v-2e19d214#如何管理帮助文档\",\"166\":\"v-2e19d214#上传帮助文档\",\"167\":\"v-2e19d214#删除帮助文档\",\"168\":\"v-2e19d214#查看帮助文档词条\",\"169\":\"v-2e19d214#如何编写帮助文档\",\"170\":\"v-0dd0cb1e\",\"171\":\"v-0dd0cb1e#javascript-插件是什么\",\"172\":\"v-0dd0cb1e#获取-js-插件\",\"173\":\"v-0dd0cb1e#如何安装和管理-js-插件\",\"174\":\"v-0dd0cb1e#插件列表\",\"175\":\"v-0dd0cb1e#插件的更新\",\"176\":\"v-0dd0cb1e#控制台\",\"177\":\"v-0dd0cb1e#插件设置\",\"178\":\"v-0dd0cb1e#如何使用-js-插件\",\"179\":\"v-0dd0cb1e#如何编写-js-插件\",\"180\":\"v-5312bf43\",\"181\":\"v-5312bf43#什么是自定义回复\",\"182\":\"v-5312bf43#在哪编写自定义回复\",\"183\":\"v-5312bf43#当前回复文件\",\"184\":\"v-5312bf43#新建-解析-导入自定义回复文件\",\"185\":\"v-5312bf43#获取自定义回复文件\",\"186\":\"v-5312bf43#设置回复项\",\"187\":\"v-5312bf43#回复项的条件\",\"188\":\"v-5312bf43#文本匹配\",\"189\":\"v-5312bf43#文本长度\",\"190\":\"v-5312bf43#回复项的结果\",\"191\":\"v-5312bf43#回复结果延迟\",\"192\":\"v-5312bf43#更复杂的回复\",\"193\":\"v-72a9c1e2\",\"194\":\"v-03edd4b8\",\"195\":\"v-50de070e\",\"196\":\"v-f2535f24\",\"197\":\"v-f2535f24#使用签名服务\",\"198\":\"v-f2535f24#怎么使用签名服务\",\"199\":\"v-f2535f24#如何搭建签名服务\",\"200\":\"v-3a736ab4\",\"201\":\"v-3a736ab4#获取海豹\",\"202\":\"v-3a736ab4#启动\",\"203\":\"v-3a736ab4#安装为系统服务-可选\",\"204\":\"v-6fdc0ef8\",\"205\":\"v-6fdc0ef8#指令兼容性\",\"206\":\"v-6fdc0ef8#易于部署和使用\",\"207\":\"v-6fdc0ef8#极少的资源占用\",\"208\":\"v-6fdc0ef8#强自定义\",\"209\":\"v-6fdc0ef8#人工智能鸽子\",\"210\":\"v-6fdc0ef8#强大的查询功能\",\"211\":\"v-6fdc0ef8#通用特化支持\",\"212\":\"v-6fdc0ef8#代替他人检定-操作他人属性\",\"213\":\"v-6fdc0ef8#coc-特化支持\",\"214\":\"v-6fdc0ef8#属性同义词\",\"215\":\"v-6fdc0ef8#默认技能等级\",\"216\":\"v-6fdc0ef8#支持-scb-指令\",\"217\":\"v-6fdc0ef8#d-d-特化支持\",\"218\":\"v-6fdc0ef8#属性同义词-1\",\"219\":\"v-6fdc0ef8#优势骰劣势骰\",\"220\":\"v-6fdc0ef8#属性调整值和熟练自动计算\",\"221\":\"v-6fdc0ef8#临时属性\",\"222\":\"v-6fdc0ef8#法术位支持\",\"223\":\"v-6fdc0ef8#死亡豁免\",\"224\":\"v-6fdc0ef8#休息\",\"225\":\"v-6fdc0ef8#可以实时编辑的跑团日志\",\"226\":\"v-6fdc0ef8#是纯净骰-也是娱乐骰\",\"227\":\"v-6fdc0ef8#更强的指令支持\",\"228\":\"v-6fdc0ef8#跨平台\",\"229\":\"v-6fdc0ef8#trpg-规则支持列表\",\"230\":\"v-43dbd51f\",\"231\":\"v-43dbd51f#相同平台间迁移\",\"232\":\"v-43dbd51f#跨平台迁移\",\"233\":\"v-43dbd51f#linux-服务器间跨架构迁移-arm64-→-amd64\",\"234\":\"v-43dbd51f#迁移数据到手机\",\"235\":\"v-744dba01\",\"236\":\"v-7acffd8d\",\"237\":\"v-7acffd8d#概念说明\",\"238\":\"v-7acffd8d#同义词表\",\"239\":\"v-ccf9e350\",\"240\":\"v-ccf9e350#st-操作人物卡\",\"241\":\"v-ccf9e350#st-help-获取帮助信息\",\"242\":\"v-ccf9e350#列出属性\",\"243\":\"v-ccf9e350#删除属性\",\"244\":\"v-ccf9e350#设定属性值\",\"245\":\"v-ccf9e350#更新属性值\",\"246\":\"v-ccf9e350#设定计算表达式\",\"247\":\"v-ccf9e350#导出属性值\",\"248\":\"v-ccf9e350#代骰\",\"249\":\"v-ccf9e350#ra-rc-检定\",\"250\":\"v-ccf9e350#进行检定\",\"251\":\"v-ccf9e350#多轮检定\",\"252\":\"v-ccf9e350#要求一定难度的检定\",\"253\":\"v-ccf9e350#奖励骰和惩罚骰\",\"254\":\"v-ccf9e350#代骰-1\",\"255\":\"v-ccf9e350#以上功能可以组合使用\",\"256\":\"v-ccf9e350#rah-rch-暗中检定\",\"257\":\"v-ccf9e350#代骰-2\",\"258\":\"v-ccf9e350#rav-rcv-对抗检定\",\"259\":\"v-ccf9e350#使用相同技能对抗\",\"260\":\"v-ccf9e350#使用不同技能对抗\",\"261\":\"v-ccf9e350#指定两个其他人对抗\",\"262\":\"v-ccf9e350#sc-理智检定\",\"263\":\"v-ccf9e350#指定损失的理智\",\"264\":\"v-ccf9e350#简略写法\",\"265\":\"v-ccf9e350#奖励骰和惩罚骰-1\",\"266\":\"v-ccf9e350#代骰-3\",\"267\":\"v-ccf9e350#ti-li-疯狂发作症状\",\"268\":\"v-ccf9e350#en-技能成长\",\"269\":\"v-ccf9e350#进行技能成长\",\"270\":\"v-ccf9e350#指定成长值\",\"271\":\"v-ccf9e350#coc-生成随机属性-制卡\",\"272\":\"v-ccf9e350#setcoc-设置房规\",\"273\":\"v-ccf9e350#显示当前房规\",\"274\":\"v-ccf9e350#列出可用房规\",\"275\":\"v-ccf9e350#设定房规\",\"276\":\"v-017f73b9\",\"277\":\"v-017f73b9#master-骰主指令\",\"278\":\"v-017f73b9#bot-骰子管理\",\"279\":\"v-017f73b9#ext-扩展管理\",\"280\":\"v-017f73b9#r-骰点\",\"281\":\"v-017f73b9#常用示例\",\"282\":\"v-017f73b9#多轮骰点\",\"283\":\"v-017f73b9#在骰点中使用属性值\",\"284\":\"v-017f73b9#奖励骰与惩罚骰\",\"285\":\"v-017f73b9#优势骰与劣势骰\",\"286\":\"v-017f73b9#fvtt-骰点兼容\",\"287\":\"v-017f73b9#fate-命运骰\",\"288\":\"v-017f73b9#wod-骰点\",\"289\":\"v-017f73b9#双十字骰点\",\"290\":\"v-017f73b9#混合运算\",\"291\":\"v-017f73b9#rh-暗骰\",\"292\":\"v-017f73b9#rx-rxh-特殊骰点\",\"293\":\"v-017f73b9#nn-角色名设定\",\"294\":\"v-017f73b9#pc-角色卡管理\",\"295\":\"v-017f73b9#find-词条查询指令\",\"296\":\"v-017f73b9#全文搜索\",\"297\":\"v-017f73b9#快速文档查找\",\"298\":\"v-017f73b9#致谢\",\"299\":\"v-017f73b9#help-帮助指令\",\"300\":\"v-017f73b9#send-向骰主发送消息-回复消息\",\"301\":\"v-017f73b9#set-设定默认骰子面数-设定游戏系统\",\"302\":\"v-017f73b9#botlist-机器人列表\",\"303\":\"v-017f73b9#welcome-新人入群欢迎\",\"304\":\"v-2b665368\",\"305\":\"v-2b665368#draw-抽牌-管理牌堆\",\"306\":\"v-2b665368#信息查询\",\"307\":\"v-2b665368#抽牌\",\"308\":\"v-2b665368#牌堆管理\",\"309\":\"v-2b665368#reply-管理自定义回复\",\"310\":\"v-4f9c5270\",\"311\":\"v-4f9c5270#dnd-dndx-生成随机属性-制卡\",\"312\":\"v-4f9c5270#ri-先攻设置\",\"313\":\"v-4f9c5270#init-先攻列表\",\"314\":\"v-4f9c5270#st-操作角色卡\",\"315\":\"v-4f9c5270#st-help-获取帮助信息\",\"316\":\"v-4f9c5270#列出属性\",\"317\":\"v-4f9c5270#删除属性\",\"318\":\"v-4f9c5270#更新属性值\",\"319\":\"v-4f9c5270#代骰\",\"320\":\"v-4f9c5270#rc-检定\",\"321\":\"v-4f9c5270#代骰-1\",\"322\":\"v-4f9c5270#奇妙运用\",\"323\":\"v-4f9c5270#buff-临时属性\",\"324\":\"v-4f9c5270#代骰-2\",\"325\":\"v-4f9c5270#ss-法术位-spell-slots\",\"326\":\"v-4f9c5270#代骰-3\",\"327\":\"v-4f9c5270#cast-使用法术位\",\"328\":\"v-4f9c5270#代骰-4\",\"329\":\"v-4f9c5270#longrest-长休\",\"330\":\"v-4f9c5270#代骰-5\",\"331\":\"v-4f9c5270#ds-死亡豁免\",\"332\":\"v-4f9c5270#代骰-6\",\"333\":\"v-56b95c84\",\"334\":\"v-56b95c84#为啥海豹不理我\",\"335\":\"v-56b95c84#可以关闭暗骰吗\",\"336\":\"v-56b95c84#退群指令\",\"337\":\"v-56b95c84#登录服务器开浏览器使用好麻烦-能远程直接访问-webui-吗\",\"338\":\"v-56b95c84#在服务器上登录时说「需要在同一-wifi-下扫码」怎么办\",\"339\":\"v-56b95c84#_1-首选-让手机跟服务器真的处于同一个网络\",\"340\":\"v-56b95c84#_2-本机上完成扫码登录-然后将登录过的配置文件覆盖到服务器上\",\"341\":\"v-56b95c84#at-其他骰子做检定的时候-海豹也会回应-怎么办\",\"342\":\"v-56b95c84#为啥好像反应慢一拍\",\"343\":\"v-56b95c84#我希望在我的骰子进群或者被踢出时通知我\",\"344\":\"v-56b95c84#支持-qq-频道吗\",\"345\":\"v-56b95c84#怎么同时运行多个海豹\",\"346\":\"v-56b95c84#windows-系统\",\"347\":\"v-56b95c84#如果你想在-windows-系统指定端口-需要一点操作\",\"348\":\"v-56b95c84#除-android-外的其他系统\",\"349\":\"v-56b95c84#我机器上启动非常慢-而且托盘点不出来右键菜单\",\"350\":\"v-56b95c84#能在手机上搭建吗\",\"351\":\"v-56b95c84#我是-master-怎么帮人取出-log\",\"352\":\"v-56b95c84#我忘了-webui-密码\",\"353\":\"v-739773bb\",\"354\":\"v-739773bb#jrrp-今日人品\",\"355\":\"v-739773bb#gugu-人工智能鸽子\",\"356\":\"v-739773bb#jsr-不重复骰点\",\"357\":\"v-739773bb#drl-骰池抽取\",\"358\":\"v-739773bb#text-文本模板测试\",\"359\":\"v-739773bb#额外-trpg-规则支持\",\"360\":\"v-739773bb#ww-wod-规则骰点\",\"361\":\"v-739773bb#dx-双重十字规则骰点\",\"362\":\"v-739773bb#ek-共鸣性怪异规则骰点\",\"363\":\"v-739773bb#ekgen-共鸣性怪异规则属性生成\",\"364\":\"v-739773bb#rsr-暗影狂奔规则骰点\",\"365\":\"v-e461914a\",\"366\":\"v-e461914a#什么是骰子\",\"367\":\"v-e461914a#获取和使用\",\"368\":\"v-e461914a#指令回复\",\"369\":\"v-e461914a#指令前缀\",\"370\":\"v-e461914a#指令名\",\"371\":\"v-e461914a#指令参数\",\"372\":\"v-e461914a#指令标志\",\"373\":\"v-e461914a#自定义回复\",\"374\":\"v-ccf19dd4\",\"375\":\"v-ccf19dd4#log-跑团日志\",\"376\":\"v-ccf19dd4#记录日志\",\"377\":\"v-ccf19dd4#数据统计\",\"378\":\"v-ccf19dd4#管理日志\",\"379\":\"v-ccf19dd4#骰主代取-log\",\"380\":\"v-ccf19dd4#ob-旁观\",\"381\":\"v-ccf19dd4#sn-自动群名片\",\"382\":\"v-ccf19dd4#预设模板\",\"383\":\"v-ccf19dd4#扩展规则\",\"384\":\"v-ccf19dd4#自定义模板\",\"385\":\"v-ccf19dd4#关闭自动修改\",\"386\":\"v-ccf19dd4#hiy-数据统计\",\"387\":\"v-0a7a5ed2\",\"388\":\"v-0a7a5ed2#绿色三角洲-delta-green\",\"389\":\"v-0a7a5ed2#黑暗世界-world-of-darkness\",\"390\":\"v-0a7a5ed2#双重十字-double-cross\",\"391\":\"v-0a7a5ed2#暗影狂奔-shadowrun\",\"392\":\"v-0a7a5ed2#共鸣性怪异-emoklore\",\"393\":\"v-0a7a5ed2#更多规则\",\"394\":\"v-7c88c198\",\"395\":\"v-7c88c198#常用指令速查\",\"396\":\"v-7c88c198#通常流程\",\"397\":\"v-7c88c198#秘密团\",\"398\":\"v-7c88c198#进行-coc-游戏\",\"399\":\"v-7c88c198#创作角色卡\",\"400\":\"v-7c88c198#理智检定-san-check\",\"401\":\"v-7c88c198#抽取疯狂症状\",\"402\":\"v-7c88c198#技能成长\",\"403\":\"v-7c88c198#进行-d-d-游戏\",\"404\":\"v-7c88c198#创作角色卡-1\",\"405\":\"v-7c88c198#设定先攻值\",\"406\":\"v-7c88c198#设定临时属性\",\"407\":\"v-7c88c198#法术位\",\"408\":\"v-7c88c198#长休\",\"409\":\"v-7c88c198#死亡豁免\",\"410\":\"v-4d2e85c5\",\"411\":\"v-4d2e85c5#name-随机名字\",\"412\":\"v-4d2e85c5#namednd-随机-dnd-名字\",\"413\":\"v-4d2e85c5#who-随机排列顺序\",\"414\":\"v-4d2e85c5#modu-魔都模组查询\"},\"fieldIds\":{\"h\":0,\"t\":1,\"c\":2},\"fieldLength\":{\"0\":[1],\"1\":[1],\"2\":[1],\"3\":[1],\"4\":[1],\"5\":[1],\"6\":[1],\"7\":[2],\"8\":[3],\"9\":[1],\"10\":[1],\"11\":[1],\"12\":[1],\"13\":[1],\"14\":[1],\"15\":[1],\"16\":[1],\"17\":[1],\"18\":[1],\"19\":[1],\"20\":[1],\"21\":[1],\"22\":[1],\"23\":[1],\"24\":[1],\"25\":[1],\"26\":[1],\"27\":[1],\"28\":[1],\"29\":[1],\"30\":[2],\"31\":[1],\"32\":[1],\"33\":[1],\"34\":[1],\"35\":[3],\"36\":[4],\"37\":[3],\"38\":[3],\"39\":[1],\"40\":[3],\"41\":[1],\"42\":[1],\"43\":[1],\"44\":[1],\"45\":[1],\"46\":[1],\"47\":[1],\"48\":[1],\"49\":[1],\"50\":[1],\"51\":[1],\"52\":[2],\"53\":[2],\"54\":[1],\"55\":[1],\"56\":[1],\"57\":[1],\"58\":[1],\"59\":[3],\"60\":[2],\"61\":[1],\"62\":[2],\"63\":[3],\"64\":[2],\"65\":[1],\"66\":[1],\"67\":[1],\"68\":[3],\"69\":[3],\"70\":[3],\"71\":[2],\"72\":[2],\"73\":[2],\"74\":[1],\"75\":[1],\"76\":[1],\"77\":[1],\"78\":[3],\"79\":[1],\"80\":[2],\"81\":[3],\"82\":[3],\"83\":[3],\"84\":[2],\"85\":[2],\"86\":[1],\"87\":[1],\"88\":[1],\"89\":[2],\"90\":[2],\"91\":[1],\"92\":[1],\"93\":[1],\"94\":[1],\"95\":[3],\"96\":[2],\"97\":[1],\"98\":[1],\"99\":[1],\"100\":[2],\"101\":[2],\"102\":[4],\"103\":[1],\"104\":[1],\"105\":[1],\"106\":[1],\"107\":[3],\"108\":[1],\"109\":[1],\"110\":[2],\"111\":[1],\"112\":[1],\"113\":[1],\"114\":[1],\"115\":[1],\"116\":[1],\"117\":[1],\"118\":[1],\"119\":[2],\"120\":[2],\"121\":[2],\"122\":[1],\"123\":[1],\"124\":[1],\"125\":[2],\"126\":[1],\"127\":[2],\"128\":[1],\"129\":[1],\"130\":[1],\"131\":[1],\"132\":[2],\"133\":[1],\"134\":[1],\"135\":[1],\"136\":[1],\"137\":[1],\"138\":[3],\"139\":[2],\"140\":[1],\"141\":[2],\"142\":[2],\"143\":[1],\"144\":[1],\"145\":[2],\"146\":[3],\"147\":[1],\"148\":[1],\"149\":[1],\"150\":[2],\"151\":[1],\"152\":[1],\"153\":[2],\"154\":[1],\"155\":[3],\"156\":[2],\"157\":[1],\"158\":[1],\"159\":[1],\"160\":[2],\"161\":[1],\"162\":[2],\"163\":[1],\"164\":[2],\"165\":[2],\"166\":[1],\"167\":[1],\"168\":[1],\"169\":[2],\"170\":[2],\"171\":[2],\"172\":[3],\"173\":[4],\"174\":[1],\"175\":[1],\"176\":[1],\"177\":[1],\"178\":[4],\"179\":[4],\"180\":[1],\"181\":[2],\"182\":[2],\"183\":[1],\"184\":[3],\"185\":[1],\"186\":[1],\"187\":[1],\"188\":[1],\"189\":[1],\"190\":[1],\"191\":[1],\"192\":[1],\"193\":[1],\"194\":[1],\"195\":[1],\"196\":[1],\"197\":[1],\"198\":[2],\"199\":[1],\"200\":[1],\"201\":[1],\"202\":[1],\"203\":[3],\"204\":[1],\"205\":[1],\"206\":[1],\"207\":[1],\"208\":[1],\"209\":[1],\"210\":[1],\"211\":[1],\"212\":[2],\"213\":[2],\"214\":[1],\"215\":[1],\"216\":[3],\"217\":[2],\"218\":[1],\"219\":[1],\"220\":[1],\"221\":[1],\"222\":[1],\"223\":[1],\"224\":[1],\"225\":[1],\"226\":[2],\"227\":[1],\"228\":[1],\"229\":[2],\"230\":[1],\"231\":[1],\"232\":[1],\"233\":[6],\"234\":[1],\"235\":[1],\"236\":[1],\"237\":[1],\"238\":[1],\"239\":[3],\"240\":[3],\"241\":[4],\"242\":[1],\"243\":[1],\"244\":[1],\"245\":[1],\"246\":[1],\"247\":[1],\"248\":[1],\"249\":[4],\"250\":[1],\"251\":[1],\"252\":[1],\"253\":[1],\"254\":[1],\"255\":[1],\"256\":[4],\"257\":[1],\"258\":[4],\"259\":[1],\"260\":[1],\"261\":[1],\"262\":[3],\"263\":[1],\"264\":[1],\"265\":[1],\"266\":[1],\"267\":[4],\"268\":[3],\"269\":[1],\"270\":[1],\"271\":[4],\"272\":[3],\"273\":[1],\"274\":[1],\"275\":[1],\"276\":[1],\"277\":[3],\"278\":[3],\"279\":[3],\"280\":[3],\"281\":[1],\"282\":[1],\"283\":[1],\"284\":[1],\"285\":[1],\"286\":[2],\"287\":[2],\"288\":[2],\"289\":[1],\"290\":[1],\"291\":[3],\"292\":[4],\"293\":[3],\"294\":[3],\"295\":[3],\"296\":[1],\"297\":[1],\"298\":[1],\"299\":[3],\"300\":[4],\"301\":[4],\"302\":[3],\"303\":[3],\"304\":[2],\"305\":[4],\"306\":[1],\"307\":[1],\"308\":[1],\"309\":[3],\"310\":[2],\"311\":[5],\"312\":[3],\"313\":[3],\"314\":[3],\"315\":[4],\"316\":[1],\"317\":[1],\"318\":[1],\"319\":[1],\"320\":[3],\"321\":[1],\"322\":[1],\"323\":[3],\"324\":[1],\"325\":[5],\"326\":[1],\"327\":[3],\"328\":[1],\"329\":[3],\"330\":[1],\"331\":[3],\"332\":[1],\"333\":[1],\"334\":[2],\"335\":[2],\"336\":[2],\"337\":[5],\"338\":[5],\"339\":[3],\"340\":[3],\"341\":[4],\"342\":[1],\"343\":[1],\"344\":[4],\"345\":[2],\"346\":[2],\"347\":[4],\"348\":[3],\"349\":[3],\"350\":[2],\"351\":[5],\"352\":[3],\"353\":[1],\"354\":[3],\"355\":[3],\"356\":[3],\"357\":[3],\"358\":[3],\"359\":[3],\"360\":[4],\"361\":[3],\"362\":[3],\"363\":[3],\"364\":[3],\"365\":[1],\"366\":[2],\"367\":[1],\"368\":[1],\"369\":[1],\"370\":[1],\"371\":[1],\"372\":[1],\"373\":[1],\"374\":[1],\"375\":[3],\"376\":[1],\"377\":[1],\"378\":[1],\"379\":[2],\"380\":[3],\"381\":[3],\"382\":[1],\"383\":[1],\"384\":[1],\"385\":[1],\"386\":[3],\"387\":[1],\"388\":[3],\"389\":[4],\"390\":[3],\"391\":[2],\"392\":[2],\"393\":[1],\"394\":[1],\"395\":[1],\"396\":[1],\"397\":[1],\"398\":[3],\"399\":[1],\"400\":[3],\"401\":[1],\"402\":[1],\"403\":[3],\"404\":[1],\"405\":[1],\"406\":[1],\"407\":[1],\"408\":[1],\"409\":[1],\"410\":[1],\"411\":[3],\"412\":[5],\"413\":[3],\"414\":[3]},\"averageFieldLength\":[1.7325301204819283],\"storedFields\":{\"0\":{\"h\":\"关于\"},\"1\":{\"h\":\"关于\"},\"2\":{\"h\":\"官方站点\"},\"3\":{\"h\":\"投喂\"},\"4\":{\"h\":\"手册贡献者\"},\"5\":{\"h\":\"开源\"},\"6\":{\"h\":\"参与项目\"},\"7\":{\"h\":\"如何参与项目?\"},\"8\":{\"h\":\"Bug 反馈、功能建议\"},\"9\":{\"h\":\"提交修改\"},\"10\":{\"h\":\"许可协议\"},\"11\":{\"h\":\"进阶\"},\"12\":{\"h\":\"编写复杂文案\"},\"13\":{\"h\":\"示例\"},\"14\":{\"h\":\"根据骰点结果展示不同文案\"},\"15\":{\"h\":\"多套文案的实现\"},\"16\":{\"h\":\"切换命令实现\"},\"17\":{\"h\":\"文案调整\"},\"18\":{\"h\":\"展示\"},\"19\":{\"h\":\"编写牌堆\"},\"20\":{\"h\":\"概览\"},\"21\":{\"h\":\"语法快速入门\"},\"22\":{\"h\":\"基础牌堆编写\"},\"23\":{\"h\":\"牌堆语法\"},\"24\":{\"h\":\"一个项中抽取其他项\"},\"25\":{\"h\":\"插入掷骰表达式\"},\"26\":{\"h\":\"权重\"},\"27\":{\"h\":\"发送图片等\"},\"28\":{\"h\":\"牌组的隐藏和导出控制\"},\"29\":{\"h\":\"配置牌堆更新\"},\"30\":{\"h\":\"TOML 牌堆的更多功能\"},\"31\":{\"h\":\"更多牌组设置\"},\"32\":{\"h\":\"云端内容\"},\"33\":{\"h\":\"面向有经验用户的快速指南\"},\"34\":{\"h\":\"编写帮助文档\"},\"35\":{\"h\":\"创建 JSON 格式的帮助文档\"},\"36\":{\"h\":\"示例文档:塔罗牌(节选)\"},\"37\":{\"h\":\"创建 EXCEL 格式的帮助文档\"},\"38\":{\"h\":\"编写 JavaScript 插件\"},\"39\":{\"h\":\"一些有帮助的资源\"},\"40\":{\"h\":\"第一个 JS 扩展\"},\"41\":{\"h\":\"填写插件信息\"},\"42\":{\"h\":\"创建和注册扩展\"},\"43\":{\"h\":\"自定义指令\"},\"44\":{\"h\":\"创建指令\"},\"45\":{\"h\":\"指令参数与返回值\"},\"46\":{\"h\":\"指令核心执行流程\"},\"47\":{\"h\":\"注册指令\"},\"48\":{\"h\":\"示例\"},\"49\":{\"h\":\"生成随机数\"},\"50\":{\"h\":\"抽取牌堆\"},\"51\":{\"h\":\"存取数据\"},\"52\":{\"h\":\"示例代码:投喂插件\"},\"53\":{\"h\":\"示例代码:群内安价收集\"},\"54\":{\"h\":\"数据处理模板\"},\"55\":{\"h\":\"读取玩家或群组数据\"},\"56\":{\"h\":\"编写暗骰指令\"},\"57\":{\"h\":\"编写代骰指令\"},\"58\":{\"h\":\"网络请求\"},\"59\":{\"h\":\"自定义 COC 规则\"},\"60\":{\"h\":\"补充:使用非指令关键词\"},\"61\":{\"h\":\"注册插件配置项\"},\"62\":{\"h\":\"示例代码:注册配置项\"},\"63\":{\"h\":\"使用 TS 模板\"},\"64\":{\"h\":\"clone 或下载项目\"},\"65\":{\"h\":\"使用和编译\"},\"66\":{\"h\":\"补全信息\"},\"67\":{\"h\":\"目录结构\"},\"68\":{\"h\":\"JS 扩展 API\"},\"69\":{\"h\":\"部分 api 使用示例\"},\"70\":{\"h\":\"replyGroup replyPerson replyToSender\"},\"71\":{\"h\":\"memberBan memberKick\"},\"72\":{\"h\":\"format formatTmpl\"},\"73\":{\"h\":\"getCtxProxyFirst getCtxProxyAtPos\"},\"74\":{\"h\":\"vars\"},\"75\":{\"h\":\"ext\"},\"76\":{\"h\":\"coc\"},\"77\":{\"h\":\"deck\"},\"78\":{\"h\":\"自定义 TRPG 规则相关\"},\"79\":{\"h\":\"其他\"},\"80\":{\"h\":\"ctx 的内容\"},\"81\":{\"h\":\"ctx.group 的内容\"},\"82\":{\"h\":\"ctx.player 的内容\"},\"83\":{\"h\":\"ctx.endPoint 的内容\"},\"84\":{\"h\":\"msg 的内容\"},\"85\":{\"h\":\"cmdArgs 的内容\"},\"86\":{\"h\":\"编写自定义回复\"},\"87\":{\"h\":\"第一个自定义回复\"},\"88\":{\"h\":\"触发条件\"},\"89\":{\"h\":\"文本匹配:模糊匹配\"},\"90\":{\"h\":\"文本匹配:正则匹配\"},\"91\":{\"h\":\"表达式为真\"},\"92\":{\"h\":\"回复结果\"},\"93\":{\"h\":\"嵌入脚本语言\"},\"94\":{\"h\":\"执行块\"},\"95\":{\"h\":\"示例:使用 if\"},\"96\":{\"h\":\"示例:变量运算\"},\"97\":{\"h\":\"更多示例片段\"},\"98\":{\"h\":\"牌堆与自定义回复的结合\"},\"99\":{\"h\":\"多回复行的错误使用\"},\"100\":{\"h\":\"限定每人/每群每天一次\"},\"101\":{\"h\":\"条件语句嵌套条件算符,多条件条件语句\"},\"102\":{\"h\":\"同时使用前缀和后缀匹配,以匹配 AxxxxxxxB 型文本\"},\"103\":{\"h\":\"随机看图\"},\"104\":{\"h\":\"单人模组\"},\"105\":{\"h\":\"编写敏感词库\"},\"106\":{\"h\":\"创建文本格式的敏感词库\"},\"107\":{\"h\":\"创建 TOML 格式的敏感词库\"},\"108\":{\"h\":\"进阶介绍\"},\"109\":{\"h\":\"了解海豹语\"},\"110\":{\"h\":\"用什么编写?\"},\"111\":{\"h\":\"内置脚本语言\"},\"112\":{\"h\":\"变量\"},\"113\":{\"h\":\"数据类型和赋值\"},\"114\":{\"h\":\"语句\"},\"115\":{\"h\":\"运算符\"},\"116\":{\"h\":\"数学运算\"},\"117\":{\"h\":\"骰子算符\"},\"118\":{\"h\":\"条件算符\"},\"119\":{\"h\":\"条件算符 ?\"},\"120\":{\"h\":\"多重条件算符 ? ,\"},\"121\":{\"h\":\"三目运算符 ? :\"},\"122\":{\"h\":\"条件语句\"},\"123\":{\"h\":\"配置\"},\"124\":{\"h\":\"黑白名单\"},\"125\":{\"h\":\"如何设置黑白名单?\"},\"126\":{\"h\":\"添加黑白名单\"},\"127\":{\"h\":\"UI 手动添加\"},\"128\":{\"h\":\"指令添加\"},\"129\":{\"h\":\"自动添加\"},\"130\":{\"h\":\"黑白名单设置\"},\"131\":{\"h\":\"拦截\"},\"132\":{\"h\":\"什么是拦截功能?\"},\"133\":{\"h\":\"配置拦截\"},\"134\":{\"h\":\"匹配选项\"},\"135\":{\"h\":\"响应设置\"},\"136\":{\"h\":\"敏感词管理\"},\"137\":{\"h\":\"查看拦截日志\"},\"138\":{\"h\":\"如何让用户/群豁免检查?\"},\"139\":{\"h\":\"如何编写敏感词库?\"},\"140\":{\"h\":\"自定义文案\"},\"141\":{\"h\":\"什么是自定义文案?\"},\"142\":{\"h\":\"如何修改文案?\"},\"143\":{\"h\":\"文案列表\"},\"144\":{\"h\":\"筛选文案\"},\"145\":{\"h\":\"文案的导入/导出\"},\"146\":{\"h\":\"文案插入图片和 CQ 码\"},\"147\":{\"h\":\"文案变量标签\"},\"148\":{\"h\":\"在一个文案中使用另一个文案\"},\"149\":{\"h\":\"文案常见问题\"},\"150\":{\"h\":\"骰子进群和成为好友的问候语是哪个?\"},\"151\":{\"h\":\"更复杂的文案设置\"},\"152\":{\"h\":\"牌堆\"},\"153\":{\"h\":\"牌堆是什么?\"},\"154\":{\"h\":\"获取牌堆\"},\"155\":{\"h\":\"怎么上传牌堆到骰子?怎么管理牌堆?\"},\"156\":{\"h\":\"怎么使用牌堆?\"},\"157\":{\"h\":\"牌堆更新与云牌堆\"},\"158\":{\"h\":\"牌堆更新\"},\"159\":{\"h\":\"牌堆云端内容\"},\"160\":{\"h\":\"如何编写牌堆?\"},\"161\":{\"h\":\"帮助文档\"},\"162\":{\"h\":\"什么是帮助文档?\"},\"163\":{\"h\":\"获取帮助文档\"},\"164\":{\"h\":\"如何使用帮助文档?\"},\"165\":{\"h\":\"如何管理帮助文档?\"},\"166\":{\"h\":\"上传帮助文档\"},\"167\":{\"h\":\"删除帮助文档\"},\"168\":{\"h\":\"查看帮助文档词条\"},\"169\":{\"h\":\"如何编写帮助文档?\"},\"170\":{\"h\":\"JavaScript 插件\"},\"171\":{\"h\":\"JavaScript 插件是什么\"},\"172\":{\"h\":\"获取 JS 插件\"},\"173\":{\"h\":\"如何安装和管理 JS 插件?\"},\"174\":{\"h\":\"插件列表\"},\"175\":{\"h\":\"插件的更新\"},\"176\":{\"h\":\"控制台\"},\"177\":{\"h\":\"插件设置\"},\"178\":{\"h\":\"如何使用 JS 插件?\"},\"179\":{\"h\":\"如何编写 JS 插件?\"},\"180\":{\"h\":\"自定义回复\"},\"181\":{\"h\":\"什么是自定义回复?\"},\"182\":{\"h\":\"在哪编写自定义回复?\"},\"183\":{\"h\":\"当前回复文件\"},\"184\":{\"h\":\"新建/解析/导入自定义回复文件\"},\"185\":{\"h\":\"获取自定义回复文件\"},\"186\":{\"h\":\"设置回复项\"},\"187\":{\"h\":\"回复项的条件\"},\"188\":{\"h\":\"文本匹配\"},\"189\":{\"h\":\"文本长度\"},\"190\":{\"h\":\"回复项的结果\"},\"191\":{\"h\":\"回复结果延迟\"},\"192\":{\"h\":\"更复杂的回复\"},\"193\":{\"h\":\"部署\"},\"194\":{\"h\":\"DODO\"},\"195\":{\"h\":\"KOOK\"},\"196\":{\"h\":\"QQ\"},\"197\":{\"h\":\"使用签名服务\"},\"198\":{\"h\":\"怎么使用签名服务?\"},\"199\":{\"h\":\"如何搭建签名服务\"},\"200\":{\"h\":\"快速开始\"},\"201\":{\"h\":\"获取海豹\"},\"202\":{\"h\":\"启动\"},\"203\":{\"h\":\"安装为系统服务(可选)\"},\"204\":{\"h\":\"特色功能\"},\"205\":{\"h\":\"指令兼容性\"},\"206\":{\"h\":\"易于部署和使用\"},\"207\":{\"h\":\"极少的资源占用\"},\"208\":{\"h\":\"强自定义\"},\"209\":{\"h\":\"人工智能鸽子\"},\"210\":{\"h\":\"强大的查询功能\"},\"211\":{\"h\":\"通用特化支持\"},\"212\":{\"h\":\"代替他人检定 / 操作他人属性\"},\"213\":{\"h\":\"CoC 特化支持\"},\"214\":{\"h\":\"属性同义词\"},\"215\":{\"h\":\"默认技能等级\"},\"216\":{\"h\":\"支持 .scb 指令\"},\"217\":{\"h\":\"D&D 特化支持\"},\"218\":{\"h\":\"属性同义词\"},\"219\":{\"h\":\"优势骰劣势骰\"},\"220\":{\"h\":\"属性调整值和熟练自动计算\"},\"221\":{\"h\":\"临时属性\"},\"222\":{\"h\":\"法术位支持\"},\"223\":{\"h\":\"死亡豁免\"},\"224\":{\"h\":\"休息\"},\"225\":{\"h\":\"可以实时编辑的跑团日志\"},\"226\":{\"h\":\"是纯净骰,也是娱乐骰\"},\"227\":{\"h\":\"更强的指令支持\"},\"228\":{\"h\":\"跨平台\"},\"229\":{\"h\":\"TRPG 规则支持列表\"},\"230\":{\"h\":\"迁移\"},\"231\":{\"h\":\"相同平台间迁移\"},\"232\":{\"h\":\"跨平台迁移\"},\"233\":{\"h\":\"Linux 服务器间跨架构迁移(arm64 → amd64)\"},\"234\":{\"h\":\"迁移数据到手机\"},\"235\":{\"h\":\"使用\"},\"236\":{\"h\":\"属性同义词\"},\"237\":{\"h\":\"概念说明\"},\"238\":{\"h\":\"同义词表\"},\"239\":{\"h\":\"克苏鲁的呼唤 7 版\"},\"240\":{\"h\":\".st 操作人物卡\"},\"241\":{\"h\":\".st help 获取帮助信息\"},\"242\":{\"h\":\"列出属性\"},\"243\":{\"h\":\"删除属性\"},\"244\":{\"h\":\"设定属性值\"},\"245\":{\"h\":\"更新属性值\"},\"246\":{\"h\":\"设定计算表达式\"},\"247\":{\"h\":\"导出属性值\"},\"248\":{\"h\":\"代骰\"},\"249\":{\"h\":\".ra / .rc 检定\"},\"250\":{\"h\":\"进行检定\"},\"251\":{\"h\":\"多轮检定\"},\"252\":{\"h\":\"要求一定难度的检定\"},\"253\":{\"h\":\"奖励骰和惩罚骰\"},\"254\":{\"h\":\"代骰\"},\"255\":{\"h\":\"以上功能可以组合使用\"},\"256\":{\"h\":\".rah / .rch 暗中检定\"},\"257\":{\"h\":\"代骰\"},\"258\":{\"h\":\".rav / .rcv 对抗检定\"},\"259\":{\"h\":\"使用相同技能对抗\"},\"260\":{\"h\":\"使用不同技能对抗\"},\"261\":{\"h\":\"指定两个其他人对抗\"},\"262\":{\"h\":\".sc 理智检定\"},\"263\":{\"h\":\"指定损失的理智\"},\"264\":{\"h\":\"简略写法\"},\"265\":{\"h\":\"奖励骰和惩罚骰\"},\"266\":{\"h\":\"代骰\"},\"267\":{\"h\":\".ti / .li 疯狂发作症状\"},\"268\":{\"h\":\".en 技能成长\"},\"269\":{\"h\":\"进行技能成长\"},\"270\":{\"h\":\"指定成长值\"},\"271\":{\"h\":\".coc 生成随机属性(制卡)\"},\"272\":{\"h\":\".setcoc 设置房规\"},\"273\":{\"h\":\"显示当前房规\"},\"274\":{\"h\":\"列出可用房规\"},\"275\":{\"h\":\"设定房规\"},\"276\":{\"h\":\"核心指令\"},\"277\":{\"h\":\".master 骰主指令\"},\"278\":{\"h\":\".bot 骰子管理\"},\"279\":{\"h\":\".ext 扩展管理\"},\"280\":{\"h\":\".r 骰点\"},\"281\":{\"h\":\"常用示例\"},\"282\":{\"h\":\"多轮骰点\"},\"283\":{\"h\":\"在骰点中使用属性值\"},\"284\":{\"h\":\"奖励骰与惩罚骰\"},\"285\":{\"h\":\"优势骰与劣势骰\"},\"286\":{\"h\":\"fvtt 骰点兼容\"},\"287\":{\"h\":\"fate 命运骰\"},\"288\":{\"h\":\"WOD 骰点\"},\"289\":{\"h\":\"双十字骰点\"},\"290\":{\"h\":\"混合运算\"},\"291\":{\"h\":\".rh 暗骰\"},\"292\":{\"h\":\".rx / .rxh 特殊骰点\"},\"293\":{\"h\":\".nn 角色名设定\"},\"294\":{\"h\":\".pc 角色卡管理\"},\"295\":{\"h\":\".find 词条查询指令\"},\"296\":{\"h\":\"全文搜索\"},\"297\":{\"h\":\"快速文档查找\"},\"298\":{\"h\":\"致谢\"},\"299\":{\"h\":\".help 帮助指令\"},\"300\":{\"h\":\".send 向骰主发送消息 / 回复消息\"},\"301\":{\"h\":\".set 设定默认骰子面数 / 设定游戏系统\"},\"302\":{\"h\":\".botlist 机器人列表\"},\"303\":{\"h\":\".welcome 新人入群欢迎\"},\"304\":{\"h\":\"牌堆 自定义回复\"},\"305\":{\"h\":\".draw 抽牌 / 管理牌堆\"},\"306\":{\"h\":\"信息查询\"},\"307\":{\"h\":\"抽牌\"},\"308\":{\"h\":\"牌堆管理\"},\"309\":{\"h\":\".reply 管理自定义回复\"},\"310\":{\"h\":\"龙与地下城 5E\"},\"311\":{\"h\":\".dnd / .dndx 生成随机属性(制卡)\"},\"312\":{\"h\":\".ri 先攻设置\"},\"313\":{\"h\":\".init 先攻列表\"},\"314\":{\"h\":\".st 操作角色卡\"},\"315\":{\"h\":\".st help 获取帮助信息\"},\"316\":{\"h\":\"列出属性\"},\"317\":{\"h\":\"删除属性\"},\"318\":{\"h\":\"更新属性值\"},\"319\":{\"h\":\"代骰\"},\"320\":{\"h\":\".rc 检定\"},\"321\":{\"h\":\"代骰\"},\"322\":{\"h\":\"奇妙运用\"},\"323\":{\"h\":\".buff 临时属性\"},\"324\":{\"h\":\"代骰\"},\"325\":{\"h\":\".ss 法术位 (spell slots)\"},\"326\":{\"h\":\"代骰\"},\"327\":{\"h\":\".cast 使用法术位\"},\"328\":{\"h\":\"代骰\"},\"329\":{\"h\":\".longrest / .长休\"},\"330\":{\"h\":\"代骰\"},\"331\":{\"h\":\".ds / .死亡豁免\"},\"332\":{\"h\":\"代骰\"},\"333\":{\"h\":\"常见问题\"},\"334\":{\"h\":\"为啥海豹不理我?\"},\"335\":{\"h\":\"可以关闭暗骰吗?\"},\"336\":{\"h\":\"退群指令?\"},\"337\":{\"h\":\"登录服务器开浏览器使用好麻烦!能远程直接访问 WebUI 吗?\"},\"338\":{\"h\":\"在服务器上登录时说「需要在同一 WIFI 下扫码」怎么办\"},\"339\":{\"h\":\"1. [首选] 让手机跟服务器真的处于同一个网络\"},\"340\":{\"h\":\"2. 本机上完成扫码登录,然后将登录过的配置文件覆盖到服务器上\"},\"341\":{\"h\":\"AT 其他骰子做检定的时候,海豹也会回应,怎么办\"},\"342\":{\"h\":\"为啥好像反应慢一拍\"},\"343\":{\"h\":\"我希望在我的骰子进群或者被踢出时通知我\"},\"344\":{\"h\":\"支持 QQ 频道吗?\"},\"345\":{\"h\":\"怎么同时运行多个海豹?\"},\"346\":{\"h\":\"Windows 系统\"},\"347\":{\"h\":\"如果你想在 Windows 系统指定端口,需要一点操作\"},\"348\":{\"h\":\"除 Android 外的其他系统\"},\"349\":{\"h\":\"我机器上启动非常慢,而且托盘点不出来右键菜单?\"},\"350\":{\"h\":\"能在手机上搭建吗?\"},\"351\":{\"h\":\"我是 Master,怎么帮人取出 Log?\"},\"352\":{\"h\":\"我忘了 WebUI 密码\"},\"353\":{\"h\":\"娱乐\"},\"354\":{\"h\":\".jrrp 今日人品\"},\"355\":{\"h\":\".gugu 人工智能鸽子\"},\"356\":{\"h\":\".jsr 不重复骰点\"},\"357\":{\"h\":\".drl 骰池抽取\"},\"358\":{\"h\":\".text 文本模板测试\"},\"359\":{\"h\":\"额外 TRPG 规则支持\"},\"360\":{\"h\":\".ww WOD 规则骰点\"},\"361\":{\"h\":\".dx 双重十字规则骰点\"},\"362\":{\"h\":\".ek 共鸣性怪异规则骰点\"},\"363\":{\"h\":\".ekgen 共鸣性怪异规则属性生成\"},\"364\":{\"h\":\".rsr 暗影狂奔规则骰点\"},\"365\":{\"h\":\"基础概念\"},\"366\":{\"h\":\"什么是骰子?\"},\"367\":{\"h\":\"获取和使用\"},\"368\":{\"h\":\"指令回复\"},\"369\":{\"h\":\"指令前缀\"},\"370\":{\"h\":\"指令名\"},\"371\":{\"h\":\"指令参数\"},\"372\":{\"h\":\"指令标志\"},\"373\":{\"h\":\"自定义回复\"},\"374\":{\"h\":\"日志\"},\"375\":{\"h\":\".log 跑团日志\"},\"376\":{\"h\":\"记录日志\"},\"377\":{\"h\":\"数据统计\"},\"378\":{\"h\":\"管理日志\"},\"379\":{\"h\":\"骰主代取 Log\"},\"380\":{\"h\":\".ob 旁观\"},\"381\":{\"h\":\".sn 自动群名片\"},\"382\":{\"h\":\"预设模板\"},\"383\":{\"h\":\"扩展规则\"},\"384\":{\"h\":\"自定义模板\"},\"385\":{\"h\":\"关闭自动修改\"},\"386\":{\"h\":\".hiy 数据统计\"},\"387\":{\"h\":\"其它规则支持\"},\"388\":{\"h\":\"绿色三角洲 Delta Green\"},\"389\":{\"h\":\"黑暗世界 World of Darkness\"},\"390\":{\"h\":\"双重十字 Double Cross\"},\"391\":{\"h\":\"暗影狂奔 Shadowrun\"},\"392\":{\"h\":\"共鸣性怪异 Emoklore\"},\"393\":{\"h\":\"更多规则\"},\"394\":{\"h\":\"快速上手\"},\"395\":{\"h\":\"常用指令速查\"},\"396\":{\"h\":\"通常流程\"},\"397\":{\"h\":\"秘密团\"},\"398\":{\"h\":\"进行 CoC 游戏\"},\"399\":{\"h\":\"创作角色卡\"},\"400\":{\"h\":\"理智检定 San Check\"},\"401\":{\"h\":\"抽取疯狂症状\"},\"402\":{\"h\":\"技能成长\"},\"403\":{\"h\":\"进行 D&D 游戏\"},\"404\":{\"h\":\"创作角色卡\"},\"405\":{\"h\":\"设定先攻值\"},\"406\":{\"h\":\"设定临时属性\"},\"407\":{\"h\":\"法术位\"},\"408\":{\"h\":\"长休\"},\"409\":{\"h\":\"死亡豁免\"},\"410\":{\"h\":\"故事\"},\"411\":{\"h\":\".name 随机名字\"},\"412\":{\"h\":\".namednd 随机 DND 名字\"},\"413\":{\"h\":\".who 随机排列顺序\"},\"414\":{\"h\":\".modu 魔都模组查询\"}},\"dirtCount\":0,\"index\":[[\"魔都模组查询\",{\"0\":{\"414\":1}}],[\"名字\",{\"0\":{\"412\":1}}],[\"随机排列顺序\",{\"0\":{\"413\":1}}],[\"随机\",{\"0\":{\"412\":1}}],[\"随机名字\",{\"0\":{\"411\":1}}],[\"随机看图\",{\"0\":{\"103\":1}}],[\"namednd\",{\"0\":{\"412\":1}}],[\"name\",{\"0\":{\"411\":1}}],[\"nn\",{\"0\":{\"293\":1}}],[\"故事\",{\"0\":{\"410\":1}}],[\"创作角色卡\",{\"0\":{\"399\":1,\"404\":1}}],[\"创建文本格式的敏感词库\",{\"0\":{\"106\":1}}],[\"创建指令\",{\"0\":{\"44\":1}}],[\"创建和注册扩展\",{\"0\":{\"42\":1}}],[\"创建\",{\"0\":{\"35\":1,\"37\":1,\"107\":1}}],[\"游戏\",{\"0\":{\"398\":1,\"403\":1}}],[\"秘密团\",{\"0\":{\"397\":1}}],[\"通常流程\",{\"0\":{\"396\":1}}],[\"通用特化支持\",{\"0\":{\"211\":1}}],[\"共鸣性怪异\",{\"0\":{\"392\":1}}],[\"共鸣性怪异规则属性生成\",{\"0\":{\"363\":1}}],[\"共鸣性怪异规则骰点\",{\"0\":{\"362\":1}}],[\"of\",{\"0\":{\"389\":1}}],[\"ob\",{\"0\":{\"380\":1}}],[\"黑暗世界\",{\"0\":{\"389\":1}}],[\"黑白名单设置\",{\"0\":{\"130\":1}}],[\"黑白名单\",{\"0\":{\"124\":1}}],[\"绿色三角洲\",{\"0\":{\"388\":1}}],[\"其它规则支持\",{\"0\":{\"387\":1}}],[\"其他骰子做检定的时候\",{\"0\":{\"341\":1}}],[\"其他\",{\"0\":{\"79\":1}}],[\"hiy\",{\"0\":{\"386\":1}}],[\"help\",{\"0\":{\"241\":1,\"299\":1,\"315\":1}}],[\"关闭自动修改\",{\"0\":{\"385\":1}}],[\"关于\",{\"0\":{\"0\":1,\"1\":1}}],[\"预设模板\",{\"0\":{\"382\":1}}],[\"旁观\",{\"0\":{\"380\":1}}],[\"记录日志\",{\"0\":{\"376\":1}}],[\"跑团日志\",{\"0\":{\"375\":1}}],[\"日志\",{\"0\":{\"374\":1}}],[\"基础概念\",{\"0\":{\"365\":1}}],[\"基础牌堆编写\",{\"0\":{\"22\":1}}],[\"双重十字\",{\"0\":{\"390\":1}}],[\"双重十字规则骰点\",{\"0\":{\"361\":1}}],[\"双十字骰点\",{\"0\":{\"289\":1}}],[\"额外\",{\"0\":{\"359\":1}}],[\"不重复骰点\",{\"0\":{\"356\":1}}],[\"今日人品\",{\"0\":{\"354\":1}}],[\"娱乐\",{\"0\":{\"353\":1}}],[\"密码\",{\"0\":{\"352\":1}}],[\"能在手机上搭建吗\",{\"0\":{\"350\":1}}],[\"能远程直接访问\",{\"0\":{\"337\":1}}],[\"而且托盘点不出来右键菜单\",{\"0\":{\"349\":1}}],[\"我忘了\",{\"0\":{\"352\":1}}],[\"我是\",{\"0\":{\"351\":1}}],[\"我机器上启动非常慢\",{\"0\":{\"349\":1}}],[\"我希望在我的骰子进群或者被踢出时通知我\",{\"0\":{\"343\":1}}],[\"外的其他系统\",{\"0\":{\"348\":1}}],[\"除\",{\"0\":{\"348\":1}}],[\"需要一点操作\",{\"0\":{\"347\":1}}],[\"需要在同一\",{\"0\":{\"338\":1}}],[\"如果你想在\",{\"0\":{\"347\":1}}],[\"如何搭建签名服务\",{\"0\":{\"199\":1}}],[\"如何使用\",{\"0\":{\"178\":1}}],[\"如何使用帮助文档\",{\"0\":{\"164\":1}}],[\"如何安装和管理\",{\"0\":{\"173\":1}}],[\"如何管理帮助文档\",{\"0\":{\"165\":1}}],[\"如何编写\",{\"0\":{\"179\":1}}],[\"如何编写帮助文档\",{\"0\":{\"169\":1}}],[\"如何编写牌堆\",{\"0\":{\"160\":1}}],[\"如何编写敏感词库\",{\"0\":{\"139\":1}}],[\"如何修改文案\",{\"0\":{\"142\":1}}],[\"如何让用户\",{\"0\":{\"138\":1}}],[\"如何设置黑白名单\",{\"0\":{\"125\":1}}],[\"如何参与项目\",{\"0\":{\"7\":1}}],[\"系统指定端口\",{\"0\":{\"347\":1}}],[\"系统\",{\"0\":{\"346\":1}}],[\"频道吗\",{\"0\":{\"344\":1}}],[\"为啥好像反应慢一拍\",{\"0\":{\"342\":1}}],[\"为啥海豹不理我\",{\"0\":{\"334\":1}}],[\"海豹也会回应\",{\"0\":{\"341\":1}}],[\"然后将登录过的配置文件覆盖到服务器上\",{\"0\":{\"340\":1}}],[\"本机上完成扫码登录\",{\"0\":{\"340\":1}}],[\"2\",{\"0\":{\"340\":1}}],[\"让手机跟服务器真的处于同一个网络\",{\"0\":{\"339\":1}}],[\"首选\",{\"0\":{\"339\":1}}],[\"1\",{\"0\":{\"339\":1}}],[\"下扫码\",{\"0\":{\"338\":1}}],[\"吗\",{\"0\":{\"337\":1}}],[\"登录服务器开浏览器使用好麻烦\",{\"0\":{\"337\":1}}],[\"退群指令\",{\"0\":{\"336\":1}}],[\"常用指令速查\",{\"0\":{\"395\":1}}],[\"常用示例\",{\"0\":{\"281\":1}}],[\"常见问题\",{\"0\":{\"333\":1}}],[\"长休\",{\"0\":{\"329\":1,\"408\":1}}],[\"log\",{\"0\":{\"351\":1,\"375\":1,\"379\":1}}],[\"longrest\",{\"0\":{\"329\":1}}],[\"li\",{\"0\":{\"267\":1}}],[\"linux\",{\"0\":{\"233\":1}}],[\"法术位\",{\"0\":{\"325\":1,\"407\":1}}],[\"法术位支持\",{\"0\":{\"222\":1}}],[\"奇妙运用\",{\"0\":{\"322\":1}}],[\"先攻列表\",{\"0\":{\"313\":1}}],[\"先攻设置\",{\"0\":{\"312\":1}}],[\"init\",{\"0\":{\"313\":1}}],[\"if\",{\"0\":{\"95\":1}}],[\"5e\",{\"0\":{\"310\":1}}],[\"龙与地下城\",{\"0\":{\"310\":1}}],[\"管理日志\",{\"0\":{\"378\":1}}],[\"管理自定义回复\",{\"0\":{\"309\":1}}],[\"管理牌堆\",{\"0\":{\"305\":1}}],[\"信息查询\",{\"0\":{\"306\":1}}],[\"抽取疯狂症状\",{\"0\":{\"401\":1}}],[\"抽取牌堆\",{\"0\":{\"50\":1}}],[\"抽牌\",{\"0\":{\"305\":1,\"307\":1}}],[\"新人入群欢迎\",{\"0\":{\"303\":1}}],[\"新建\",{\"0\":{\"184\":1}}],[\"who\",{\"0\":{\"413\":1}}],[\"world\",{\"0\":{\"389\":1}}],[\"wod\",{\"0\":{\"288\":1,\"360\":1}}],[\"ww\",{\"0\":{\"360\":1}}],[\"windows\",{\"0\":{\"346\":1,\"347\":1}}],[\"wifi\",{\"0\":{\"338\":1}}],[\"webui\",{\"0\":{\"337\":1,\"352\":1}}],[\"welcome\",{\"0\":{\"303\":1}}],[\"机器人列表\",{\"0\":{\"302\":1}}],[\"向骰主发送消息\",{\"0\":{\"300\":1}}],[\"帮助指令\",{\"0\":{\"299\":1}}],[\"帮助文档\",{\"0\":{\"161\":1}}],[\"致谢\",{\"0\":{\"298\":1}}],[\"快速上手\",{\"0\":{\"394\":1}}],[\"快速文档查找\",{\"0\":{\"297\":1}}],[\"快速开始\",{\"0\":{\"200\":1}}],[\"全文搜索\",{\"0\":{\"296\":1}}],[\"词条查询指令\",{\"0\":{\"295\":1}}],[\"角色卡管理\",{\"0\":{\"294\":1}}],[\"角色名设定\",{\"0\":{\"293\":1}}],[\"pc\",{\"0\":{\"294\":1}}],[\"player\",{\"0\":{\"82\":1}}],[\"暗影狂奔\",{\"0\":{\"391\":1}}],[\"暗影狂奔规则骰点\",{\"0\":{\"364\":1}}],[\"暗骰\",{\"0\":{\"291\":1}}],[\"暗中检定\",{\"0\":{\"256\":1}}],[\"混合运算\",{\"0\":{\"290\":1}}],[\"命运骰\",{\"0\":{\"287\":1}}],[\"find\",{\"0\":{\"295\":1}}],[\"fate\",{\"0\":{\"287\":1}}],[\"fvtt\",{\"0\":{\"286\":1}}],[\"formattmpl\",{\"0\":{\"72\":1}}],[\"format\",{\"0\":{\"72\":1}}],[\"优势骰与劣势骰\",{\"0\":{\"285\":1}}],[\"优势骰劣势骰\",{\"0\":{\"219\":1}}],[\"奖励骰与惩罚骰\",{\"0\":{\"284\":1}}],[\"奖励骰和惩罚骰\",{\"0\":{\"253\":1,\"265\":1}}],[\"buff\",{\"0\":{\"323\":1}}],[\"bug\",{\"0\":{\"8\":1}}],[\"botlist\",{\"0\":{\"302\":1}}],[\"bot\",{\"0\":{\"278\":1}}],[\"骰主代取\",{\"0\":{\"379\":1}}],[\"骰主指令\",{\"0\":{\"277\":1}}],[\"骰池抽取\",{\"0\":{\"357\":1}}],[\"骰点兼容\",{\"0\":{\"286\":1}}],[\"骰点\",{\"0\":{\"280\":1,\"288\":1}}],[\"骰子管理\",{\"0\":{\"278\":1}}],[\"骰子进群和成为好友的问候语是哪个\",{\"0\":{\"150\":1}}],[\"骰子算符\",{\"0\":{\"117\":1}}],[\"核心指令\",{\"0\":{\"276\":1}}],[\"列出可用房规\",{\"0\":{\"274\":1}}],[\"列出属性\",{\"0\":{\"242\":1,\"316\":1}}],[\"显示当前房规\",{\"0\":{\"273\":1}}],[\"制卡\",{\"0\":{\"271\":1,\"311\":1}}],[\"生成随机属性\",{\"0\":{\"271\":1,\"311\":1}}],[\"生成随机数\",{\"0\":{\"49\":1}}],[\"技能成长\",{\"0\":{\"268\":1,\"402\":1}}],[\"疯狂发作症状\",{\"0\":{\"267\":1}}],[\"简略写法\",{\"0\":{\"264\":1}}],[\"理智检定\",{\"0\":{\"262\":1,\"400\":1}}],[\"指定成长值\",{\"0\":{\"270\":1}}],[\"指定损失的理智\",{\"0\":{\"263\":1}}],[\"指定两个其他人对抗\",{\"0\":{\"261\":1}}],[\"指令标志\",{\"0\":{\"372\":1}}],[\"指令参数\",{\"0\":{\"371\":1}}],[\"指令参数与返回值\",{\"0\":{\"45\":1}}],[\"指令名\",{\"0\":{\"370\":1}}],[\"指令前缀\",{\"0\":{\"369\":1}}],[\"指令回复\",{\"0\":{\"368\":1}}],[\"指令\",{\"0\":{\"216\":1}}],[\"指令兼容性\",{\"0\":{\"205\":1}}],[\"指令添加\",{\"0\":{\"128\":1}}],[\"指令核心执行流程\",{\"0\":{\"46\":1}}],[\"对抗检定\",{\"0\":{\"258\":1}}],[\"以上功能可以组合使用\",{\"0\":{\"255\":1}}],[\"以匹配\",{\"0\":{\"102\":1}}],[\"要求一定难度的检定\",{\"0\":{\"252\":1}}],[\"进行\",{\"0\":{\"398\":1,\"403\":1}}],[\"进行技能成长\",{\"0\":{\"269\":1}}],[\"进行检定\",{\"0\":{\"250\":1}}],[\"进阶介绍\",{\"0\":{\"108\":1}}],[\"进阶\",{\"0\":{\"11\":1}}],[\"检定\",{\"0\":{\"249\":1,\"320\":1}}],[\"rsr\",{\"0\":{\"364\":1}}],[\"ri\",{\"0\":{\"312\":1}}],[\"rxh\",{\"0\":{\"292\":1}}],[\"rx\",{\"0\":{\"292\":1}}],[\"rh\",{\"0\":{\"291\":1}}],[\"r\",{\"0\":{\"280\":1}}],[\"rcv\",{\"0\":{\"258\":1}}],[\"rch\",{\"0\":{\"256\":1}}],[\"rc\",{\"0\":{\"249\":1,\"320\":1}}],[\"rav\",{\"0\":{\"258\":1}}],[\"rah\",{\"0\":{\"256\":1}}],[\"ra\",{\"0\":{\"249\":1}}],[\"reply\",{\"0\":{\"309\":1}}],[\"replytosender\",{\"0\":{\"70\":1}}],[\"replyperson\",{\"0\":{\"70\":1}}],[\"replygroup\",{\"0\":{\"70\":1}}],[\"代骰\",{\"0\":{\"248\":1,\"254\":1,\"257\":1,\"266\":1,\"319\":1,\"321\":1,\"324\":1,\"326\":1,\"328\":1,\"330\":1,\"332\":1}}],[\"代替他人检定\",{\"0\":{\"212\":1}}],[\"设置房规\",{\"0\":{\"272\":1}}],[\"设置回复项\",{\"0\":{\"186\":1}}],[\"设定临时属性\",{\"0\":{\"406\":1}}],[\"设定先攻值\",{\"0\":{\"405\":1}}],[\"设定游戏系统\",{\"0\":{\"301\":1}}],[\"设定默认骰子面数\",{\"0\":{\"301\":1}}],[\"设定房规\",{\"0\":{\"275\":1}}],[\"设定计算表达式\",{\"0\":{\"246\":1}}],[\"设定属性值\",{\"0\":{\"244\":1}}],[\"删除属性\",{\"0\":{\"243\":1,\"317\":1}}],[\"删除帮助文档\",{\"0\":{\"167\":1}}],[\"操作角色卡\",{\"0\":{\"314\":1}}],[\"操作人物卡\",{\"0\":{\"240\":1}}],[\"操作他人属性\",{\"0\":{\"212\":1}}],[\"san\",{\"0\":{\"400\":1}}],[\"shadowrun\",{\"0\":{\"391\":1}}],[\"sn\",{\"0\":{\"381\":1}}],[\"slots\",{\"0\":{\"325\":1}}],[\"spell\",{\"0\":{\"325\":1}}],[\"ss\",{\"0\":{\"325\":1}}],[\"set\",{\"0\":{\"301\":1}}],[\"setcoc\",{\"0\":{\"272\":1}}],[\"send\",{\"0\":{\"300\":1}}],[\"sc\",{\"0\":{\"262\":1}}],[\"scb\",{\"0\":{\"216\":1}}],[\"st\",{\"0\":{\"240\":1,\"241\":1,\"314\":1,\"315\":1}}],[\"版\",{\"0\":{\"239\":1}}],[\"7\",{\"0\":{\"239\":1}}],[\"克苏鲁的呼唤\",{\"0\":{\"239\":1}}],[\"同义词表\",{\"0\":{\"238\":1}}],[\"同时使用前缀和后缀匹配\",{\"0\":{\"102\":1}}],[\"概念说明\",{\"0\":{\"237\":1}}],[\"概览\",{\"0\":{\"20\":1}}],[\"→\",{\"0\":{\"233\":1}}],[\"服务器间跨架构迁移\",{\"0\":{\"233\":1}}],[\"相同平台间迁移\",{\"0\":{\"231\":1}}],[\"迁移数据到手机\",{\"0\":{\"234\":1}}],[\"迁移\",{\"0\":{\"230\":1}}],[\"跨平台迁移\",{\"0\":{\"232\":1}}],[\"跨平台\",{\"0\":{\"228\":1}}],[\"也是娱乐骰\",{\"0\":{\"226\":1}}],[\"是纯净骰\",{\"0\":{\"226\":1}}],[\"可以关闭暗骰吗\",{\"0\":{\"335\":1}}],[\"可以实时编辑的跑团日志\",{\"0\":{\"225\":1}}],[\"可选\",{\"0\":{\"203\":1}}],[\"休息\",{\"0\":{\"224\":1}}],[\"死亡豁免\",{\"0\":{\"223\":1,\"331\":1,\"409\":1}}],[\"临时属性\",{\"0\":{\"221\":1,\"323\":1}}],[\"属性调整值和熟练自动计算\",{\"0\":{\"220\":1}}],[\"属性同义词\",{\"0\":{\"214\":1,\"218\":1,\"236\":1}}],[\"支持\",{\"0\":{\"216\":1,\"344\":1}}],[\"默认技能等级\",{\"0\":{\"215\":1}}],[\"特殊骰点\",{\"0\":{\"292\":1}}],[\"特化支持\",{\"0\":{\"213\":1,\"217\":1}}],[\"特色功能\",{\"0\":{\"204\":1}}],[\"强大的查询功能\",{\"0\":{\"210\":1}}],[\"强自定义\",{\"0\":{\"208\":1}}],[\"人工智能鸽子\",{\"0\":{\"209\":1,\"355\":1}}],[\"极少的资源占用\",{\"0\":{\"207\":1}}],[\"易于部署和使用\",{\"0\":{\"206\":1}}],[\"安装为系统服务\",{\"0\":{\"203\":1}}],[\"启动\",{\"0\":{\"202\":1}}],[\"qq\",{\"0\":{\"196\":1,\"344\":1}}],[\"kook\",{\"0\":{\"195\":1}}],[\"double\",{\"0\":{\"390\":1}}],[\"dodo\",{\"0\":{\"194\":1}}],[\"darkness\",{\"0\":{\"389\":1}}],[\"delta\",{\"0\":{\"388\":1}}],[\"deck\",{\"0\":{\"77\":1}}],[\"dx\",{\"0\":{\"361\":1}}],[\"drl\",{\"0\":{\"357\":1}}],[\"draw\",{\"0\":{\"305\":1}}],[\"ds\",{\"0\":{\"331\":1}}],[\"dndx\",{\"0\":{\"311\":1}}],[\"dnd\",{\"0\":{\"311\":1,\"412\":1}}],[\"d\",{\"0\":{\"217\":2,\"403\":2}}],[\"部署\",{\"0\":{\"193\":1}}],[\"部分\",{\"0\":{\"69\":1}}],[\"回复消息\",{\"0\":{\"300\":1}}],[\"回复项的结果\",{\"0\":{\"190\":1}}],[\"回复项的条件\",{\"0\":{\"187\":1}}],[\"回复结果延迟\",{\"0\":{\"191\":1}}],[\"回复结果\",{\"0\":{\"92\":1}}],[\"导入自定义回复文件\",{\"0\":{\"184\":1}}],[\"导出属性值\",{\"0\":{\"247\":1}}],[\"导出\",{\"0\":{\"145\":1}}],[\"解析\",{\"0\":{\"184\":1}}],[\"当前回复文件\",{\"0\":{\"183\":1}}],[\"在服务器上登录时说\",{\"0\":{\"338\":1}}],[\"在骰点中使用属性值\",{\"0\":{\"283\":1}}],[\"在哪编写自定义回复\",{\"0\":{\"182\":1}}],[\"在一个文案中使用另一个文案\",{\"0\":{\"148\":1}}],[\"控制台\",{\"0\":{\"176\":1}}],[\"查看帮助文档词条\",{\"0\":{\"168\":1}}],[\"查看拦截日志\",{\"0\":{\"137\":1}}],[\"上传帮助文档\",{\"0\":{\"166\":1}}],[\"获取和使用\",{\"0\":{\"367\":1}}],[\"获取帮助信息\",{\"0\":{\"241\":1,\"315\":1}}],[\"获取帮助文档\",{\"0\":{\"163\":1}}],[\"获取海豹\",{\"0\":{\"201\":1}}],[\"获取自定义回复文件\",{\"0\":{\"185\":1}}],[\"获取\",{\"0\":{\"172\":1}}],[\"获取牌堆\",{\"0\":{\"154\":1}}],[\"怎么帮人取出\",{\"0\":{\"351\":1}}],[\"怎么同时运行多个海豹\",{\"0\":{\"345\":1}}],[\"怎么办\",{\"0\":{\"338\":1,\"341\":1}}],[\"怎么使用签名服务\",{\"0\":{\"198\":1}}],[\"怎么使用牌堆\",{\"0\":{\"156\":1}}],[\"怎么管理牌堆\",{\"0\":{\"155\":1}}],[\"怎么上传牌堆到骰子\",{\"0\":{\"155\":1}}],[\"更新属性值\",{\"0\":{\"245\":1,\"318\":1}}],[\"更强的指令支持\",{\"0\":{\"227\":1}}],[\"更复杂的回复\",{\"0\":{\"192\":1}}],[\"更复杂的文案设置\",{\"0\":{\"151\":1}}],[\"更多规则\",{\"0\":{\"393\":1}}],[\"更多示例片段\",{\"0\":{\"97\":1}}],[\"更多牌组设置\",{\"0\":{\"31\":1}}],[\"码\",{\"0\":{\"146\":1}}],[\"筛选文案\",{\"0\":{\"144\":1}}],[\"什么是骰子\",{\"0\":{\"366\":1}}],[\"什么是自定义回复\",{\"0\":{\"181\":1}}],[\"什么是自定义文案\",{\"0\":{\"141\":1}}],[\"什么是帮助文档\",{\"0\":{\"162\":1}}],[\"什么是拦截功能\",{\"0\":{\"132\":1}}],[\"群豁免检查\",{\"0\":{\"138\":1}}],[\"群内安价收集\",{\"0\":{\"53\":1}}],[\"敏感词管理\",{\"0\":{\"136\":1}}],[\"响应设置\",{\"0\":{\"135\":1}}],[\"匹配选项\",{\"0\":{\"134\":1}}],[\"拦截\",{\"0\":{\"131\":1}}],[\"自动群名片\",{\"0\":{\"381\":1}}],[\"自动添加\",{\"0\":{\"129\":1}}],[\"自定义模板\",{\"0\":{\"384\":1}}],[\"自定义回复\",{\"0\":{\"180\":1,\"304\":1,\"373\":1}}],[\"自定义文案\",{\"0\":{\"140\":1}}],[\"自定义\",{\"0\":{\"59\":1,\"78\":1}}],[\"自定义指令\",{\"0\":{\"43\":1}}],[\"手动添加\",{\"0\":{\"127\":1}}],[\"手册贡献者\",{\"0\":{\"4\":1}}],[\"ui\",{\"0\":{\"127\":1}}],[\"添加黑白名单\",{\"0\":{\"126\":1}}],[\"配置拦截\",{\"0\":{\"133\":1}}],[\"配置\",{\"0\":{\"123\":1}}],[\"配置牌堆更新\",{\"0\":{\"29\":1}}],[\"三目运算符\",{\"0\":{\"121\":1}}],[\"条件语句\",{\"0\":{\"122\":1}}],[\"条件语句嵌套条件算符\",{\"0\":{\"101\":1}}],[\"条件算符\",{\"0\":{\"118\":1,\"119\":1}}],[\"数学运算\",{\"0\":{\"116\":1}}],[\"数据统计\",{\"0\":{\"377\":1,\"386\":1}}],[\"数据类型和赋值\",{\"0\":{\"113\":1}}],[\"数据处理模板\",{\"0\":{\"54\":1}}],[\"运算符\",{\"0\":{\"115\":1}}],[\"语句\",{\"0\":{\"114\":1}}],[\"语法快速入门\",{\"0\":{\"21\":1}}],[\"变量\",{\"0\":{\"112\":1}}],[\"变量运算\",{\"0\":{\"96\":1}}],[\"内置脚本语言\",{\"0\":{\"111\":1}}],[\"用什么编写\",{\"0\":{\"110\":1}}],[\"了解海豹语\",{\"0\":{\"109\":1}}],[\"格式的敏感词库\",{\"0\":{\"107\":1}}],[\"格式的帮助文档\",{\"0\":{\"35\":1,\"37\":1}}],[\"单人模组\",{\"0\":{\"104\":1}}],[\"型文本\",{\"0\":{\"102\":1}}],[\"android\",{\"0\":{\"348\":1}}],[\"at\",{\"0\":{\"341\":1}}],[\"amd64\",{\"0\":{\"233\":1}}],[\"arm64\",{\"0\":{\"233\":1}}],[\"axxxxxxxb\",{\"0\":{\"102\":1}}],[\"api\",{\"0\":{\"68\":1,\"69\":1}}],[\"每群每天一次\",{\"0\":{\"100\":1}}],[\"限定每人\",{\"0\":{\"100\":1}}],[\"多轮骰点\",{\"0\":{\"282\":1}}],[\"多轮检定\",{\"0\":{\"251\":1}}],[\"多重条件算符\",{\"0\":{\"120\":1}}],[\"多条件条件语句\",{\"0\":{\"101\":1}}],[\"多回复行的错误使用\",{\"0\":{\"99\":1}}],[\"多套文案的实现\",{\"0\":{\"15\":1}}],[\"执行块\",{\"0\":{\"94\":1}}],[\"嵌入脚本语言\",{\"0\":{\"93\":1}}],[\"表达式为真\",{\"0\":{\"91\":1}}],[\"正则匹配\",{\"0\":{\"90\":1}}],[\"模糊匹配\",{\"0\":{\"89\":1}}],[\"模板\",{\"0\":{\"63\":1}}],[\"文本模板测试\",{\"0\":{\"358\":1}}],[\"文本长度\",{\"0\":{\"189\":1}}],[\"文本匹配\",{\"0\":{\"89\":1,\"90\":1,\"188\":1}}],[\"文案常见问题\",{\"0\":{\"149\":1}}],[\"文案变量标签\",{\"0\":{\"147\":1}}],[\"文案插入图片和\",{\"0\":{\"146\":1}}],[\"文案的导入\",{\"0\":{\"145\":1}}],[\"文案列表\",{\"0\":{\"143\":1}}],[\"文案调整\",{\"0\":{\"17\":1}}],[\"触发条件\",{\"0\":{\"88\":1}}],[\"modu\",{\"0\":{\"414\":1}}],[\"master\",{\"0\":{\"277\":1,\"351\":1}}],[\"msg\",{\"0\":{\"84\":1}}],[\"memberkick\",{\"0\":{\"71\":1}}],[\"memberban\",{\"0\":{\"71\":1}}],[\"emoklore\",{\"0\":{\"392\":1}}],[\"ekgen\",{\"0\":{\"363\":1}}],[\"ek\",{\"0\":{\"362\":1}}],[\"en\",{\"0\":{\"268\":1}}],[\"endpoint\",{\"0\":{\"83\":1}}],[\"ext\",{\"0\":{\"75\":1,\"279\":1}}],[\"excel\",{\"0\":{\"37\":1}}],[\"green\",{\"0\":{\"388\":1}}],[\"group\",{\"0\":{\"81\":1}}],[\"gugu\",{\"0\":{\"355\":1}}],[\"getctxproxyatpos\",{\"0\":{\"73\":1}}],[\"getctxproxyfirst\",{\"0\":{\"73\":1}}],[\"的内容\",{\"0\":{\"80\":1,\"81\":1,\"82\":1,\"83\":1,\"84\":1,\"85\":1}}],[\"vars\",{\"0\":{\"74\":1}}],[\"目录结构\",{\"0\":{\"67\":1}}],[\"补全信息\",{\"0\":{\"66\":1}}],[\"补充\",{\"0\":{\"60\":1}}],[\"或下载项目\",{\"0\":{\"64\":1}}],[\"check\",{\"0\":{\"400\":1}}],[\"cross\",{\"0\":{\"390\":1}}],[\"cast\",{\"0\":{\"327\":1}}],[\"cq\",{\"0\":{\"146\":1}}],[\"cmdargs\",{\"0\":{\"85\":1}}],[\"ctx\",{\"0\":{\"80\":1,\"81\":1,\"82\":1,\"83\":1}}],[\"clone\",{\"0\":{\"64\":1}}],[\"coc\",{\"0\":{\"59\":1,\"76\":1,\"213\":1,\"271\":1,\"398\":1}}],[\"text\",{\"0\":{\"358\":1}}],[\"ti\",{\"0\":{\"267\":1}}],[\"trpg\",{\"0\":{\"78\":1,\"229\":1,\"359\":1}}],[\"ts\",{\"0\":{\"63\":1}}],[\"toml\",{\"0\":{\"30\":1,\"107\":1}}],[\"使用法术位\",{\"0\":{\"327\":1}}],[\"使用不同技能对抗\",{\"0\":{\"260\":1}}],[\"使用相同技能对抗\",{\"0\":{\"259\":1}}],[\"使用签名服务\",{\"0\":{\"197\":1}}],[\"使用示例\",{\"0\":{\"69\":1}}],[\"使用和编译\",{\"0\":{\"65\":1}}],[\"使用\",{\"0\":{\"63\":1,\"95\":1,\"235\":1}}],[\"使用非指令关键词\",{\"0\":{\"60\":1}}],[\"注册配置项\",{\"0\":{\"62\":1}}],[\"注册插件配置项\",{\"0\":{\"61\":1}}],[\"注册指令\",{\"0\":{\"47\":1}}],[\"规则骰点\",{\"0\":{\"360\":1}}],[\"规则支持\",{\"0\":{\"359\":1}}],[\"规则支持列表\",{\"0\":{\"229\":1}}],[\"规则相关\",{\"0\":{\"78\":1}}],[\"规则\",{\"0\":{\"59\":1}}],[\"网络请求\",{\"0\":{\"58\":1}}],[\"读取玩家或群组数据\",{\"0\":{\"55\":1}}],[\"存取数据\",{\"0\":{\"51\":1}}],[\"填写插件信息\",{\"0\":{\"41\":1}}],[\"扩展规则\",{\"0\":{\"383\":1}}],[\"扩展管理\",{\"0\":{\"279\":1}}],[\"扩展\",{\"0\":{\"40\":1,\"68\":1}}],[\"第一个自定义回复\",{\"0\":{\"87\":1}}],[\"第一个\",{\"0\":{\"40\":1}}],[\"一些有帮助的资源\",{\"0\":{\"39\":1}}],[\"一个项中抽取其他项\",{\"0\":{\"24\":1}}],[\"插件设置\",{\"0\":{\"177\":1}}],[\"插件的更新\",{\"0\":{\"175\":1}}],[\"插件列表\",{\"0\":{\"174\":1}}],[\"插件是什么\",{\"0\":{\"171\":1}}],[\"插件\",{\"0\":{\"38\":1,\"170\":1,\"172\":1,\"173\":1,\"178\":1,\"179\":1}}],[\"插入掷骰表达式\",{\"0\":{\"25\":1}}],[\"jrrp\",{\"0\":{\"354\":1}}],[\"jsr\",{\"0\":{\"356\":1}}],[\"js\",{\"0\":{\"40\":1,\"68\":1,\"172\":1,\"173\":1,\"178\":1,\"179\":1}}],[\"json\",{\"0\":{\"35\":1}}],[\"javascript\",{\"0\":{\"38\":1,\"170\":1,\"171\":1}}],[\"节选\",{\"0\":{\"36\":1}}],[\"塔罗牌\",{\"0\":{\"36\":1}}],[\"面向有经验用户的快速指南\",{\"0\":{\"33\":1}}],[\"云端内容\",{\"0\":{\"32\":1}}],[\"牌堆管理\",{\"0\":{\"308\":1}}],[\"牌堆云端内容\",{\"0\":{\"159\":1}}],[\"牌堆更新\",{\"0\":{\"158\":1}}],[\"牌堆更新与云牌堆\",{\"0\":{\"157\":1}}],[\"牌堆是什么\",{\"0\":{\"153\":1}}],[\"牌堆\",{\"0\":{\"152\":1,\"304\":1}}],[\"牌堆与自定义回复的结合\",{\"0\":{\"98\":1}}],[\"牌堆的更多功能\",{\"0\":{\"30\":1}}],[\"牌堆语法\",{\"0\":{\"23\":1}}],[\"牌组的隐藏和导出控制\",{\"0\":{\"28\":1}}],[\"发送图片等\",{\"0\":{\"27\":1}}],[\"权重\",{\"0\":{\"26\":1}}],[\"编写敏感词库\",{\"0\":{\"105\":1}}],[\"编写自定义回复\",{\"0\":{\"86\":1}}],[\"编写代骰指令\",{\"0\":{\"57\":1}}],[\"编写暗骰指令\",{\"0\":{\"56\":1}}],[\"编写\",{\"0\":{\"38\":1}}],[\"编写帮助文档\",{\"0\":{\"34\":1}}],[\"编写牌堆\",{\"0\":{\"19\":1}}],[\"编写复杂文案\",{\"0\":{\"12\":1}}],[\"展示\",{\"0\":{\"18\":1}}],[\"切换命令实现\",{\"0\":{\"16\":1}}],[\"根据骰点结果展示不同文案\",{\"0\":{\"14\":1}}],[\"示例代码\",{\"0\":{\"52\":1,\"53\":1,\"62\":1}}],[\"示例文档\",{\"0\":{\"36\":1}}],[\"示例\",{\"0\":{\"13\":1,\"48\":1,\"95\":1,\"96\":1}}],[\"许可协议\",{\"0\":{\"10\":1}}],[\"提交修改\",{\"0\":{\"9\":1}}],[\"功能建议\",{\"0\":{\"8\":1}}],[\"反馈\",{\"0\":{\"8\":1}}],[\"参与项目\",{\"0\":{\"6\":1}}],[\"开源\",{\"0\":{\"5\":1}}],[\"投喂插件\",{\"0\":{\"52\":1}}],[\"投喂\",{\"0\":{\"3\":1}}],[\"官方站点\",{\"0\":{\"2\":1}}]],\"serializationVersion\":2}}")).map(([e,t])=>[e,zt(t,{fields:["h","t","c"],storeFields:["h","t","c"]})]));self.onmessage=({data:{type:e="all",query:t,locale:s,options:n}})=>{e==="suggest"?self.postMessage(st(t,v[s],n)):e==="search"?self.postMessage(et(t,v[s],n)):self.postMessage({suggestions:st(t,v[s],n),results:et(t,v[s],n)})}; +//# sourceMappingURL=index.js.map diff --git a/sitemap.xml b/sitemap.xml new file mode 100644 index 000000000..a2ed4101b --- /dev/null +++ b/sitemap.xml @@ -0,0 +1,3 @@ + + +http://localhost:8080/sealdice-manual-next/2023-11-02T05:25:21.000Zdailyhttp://localhost:8080/sealdice-manual-next/about/2023-10-31T07:57:42.000Zdailyhttp://localhost:8080/sealdice-manual-next/about/about.html2023-10-30T09:14:16.000Zdailyhttp://localhost:8080/sealdice-manual-next/about/develop.html2023-10-29T17:01:34.000Zdailyhttp://localhost:8080/sealdice-manual-next/about/license.html2023-10-29T17:01:34.000Zdailyhttp://localhost:8080/sealdice-manual-next/advanced/2023-10-31T07:57:42.000Zdailyhttp://localhost:8080/sealdice-manual-next/advanced/edit_complex_custom_text.html2023-11-01T18:38:47.000Zdailyhttp://localhost:8080/sealdice-manual-next/advanced/edit_deck.html2023-10-30T09:14:16.000Zdailyhttp://localhost:8080/sealdice-manual-next/advanced/edit_helpdoc.html2023-10-30T09:14:16.000Zdailyhttp://localhost:8080/sealdice-manual-next/advanced/edit_jsscript.html2023-10-30T09:14:16.000Zdailyhttp://localhost:8080/sealdice-manual-next/advanced/edit_reply.html2023-11-01T18:38:47.000Zdailyhttp://localhost:8080/sealdice-manual-next/advanced/edit_sensitive_words.html2023-10-30T09:14:16.000Zdailyhttp://localhost:8080/sealdice-manual-next/advanced/introduce.html2023-10-30T09:14:16.000Zdailyhttp://localhost:8080/sealdice-manual-next/advanced/script.html2023-10-30T09:14:16.000Zdailyhttp://localhost:8080/sealdice-manual-next/config/2023-11-02T05:25:21.000Zdailyhttp://localhost:8080/sealdice-manual-next/config/ban.html2023-10-29T17:01:34.000Zdailyhttp://localhost:8080/sealdice-manual-next/config/censor.html2023-10-29T17:01:34.000Zdailyhttp://localhost:8080/sealdice-manual-next/config/custom_text.html2023-10-31T07:57:42.000Zdailyhttp://localhost:8080/sealdice-manual-next/config/deck.html2023-10-29T17:01:34.000Zdailyhttp://localhost:8080/sealdice-manual-next/config/helpdoc.html2023-10-29T17:01:34.000Zdailyhttp://localhost:8080/sealdice-manual-next/config/jsscript.html2023-10-30T09:14:16.000Zdailyhttp://localhost:8080/sealdice-manual-next/config/reply.html2023-11-01T17:22:26.000Zdailyhttp://localhost:8080/sealdice-manual-next/deploy/2023-11-02T19:07:23.000Zdailyhttp://localhost:8080/sealdice-manual-next/deploy/platform-dodo.html2023-11-02T19:07:23.000Zdailyhttp://localhost:8080/sealdice-manual-next/deploy/platform-kook.html2023-11-02T19:07:23.000Zdailyhttp://localhost:8080/sealdice-manual-next/deploy/platform-qq.html2023-11-02T19:07:23.000Zdailyhttp://localhost:8080/sealdice-manual-next/deploy/quick-start.html2023-10-29T17:01:34.000Zdailyhttp://localhost:8080/sealdice-manual-next/deploy/special_feature.html2023-11-01T05:34:52.000Zdailyhttp://localhost:8080/sealdice-manual-next/deploy/transfer.html2023-10-29T17:01:34.000Zdailyhttp://localhost:8080/sealdice-manual-next/use/2023-11-01T05:34:52.000Zdailyhttp://localhost:8080/sealdice-manual-next/use/attribute_alias.html2023-11-01T05:34:52.000Zdailyhttp://localhost:8080/sealdice-manual-next/use/coc7.html2023-11-01T05:52:34.000Zdailyhttp://localhost:8080/sealdice-manual-next/use/core.html2023-10-30T09:14:16.000Zdailyhttp://localhost:8080/sealdice-manual-next/use/deck_and_reply.html2023-11-02T05:25:21.000Zdailyhttp://localhost:8080/sealdice-manual-next/use/dnd5e.html2023-11-02T04:52:18.000Zdailyhttp://localhost:8080/sealdice-manual-next/use/faq.html2023-10-29T17:01:34.000Zdailyhttp://localhost:8080/sealdice-manual-next/use/fun.html2023-11-01T05:34:52.000Zdailyhttp://localhost:8080/sealdice-manual-next/use/introduce.html2023-11-02T19:07:23.000Zdailyhttp://localhost:8080/sealdice-manual-next/use/log.html2023-11-01T05:34:52.000Zdailyhttp://localhost:8080/sealdice-manual-next/use/other_rules.html2023-11-01T17:22:26.000Zdailyhttp://localhost:8080/sealdice-manual-next/use/quick-start.html2023-10-29T17:01:34.000Zdailyhttp://localhost:8080/sealdice-manual-next/use/story.html2023-11-01T05:34:52.000Zdaily \ No newline at end of file diff --git a/sitemap.xsl b/sitemap.xsl new file mode 100644 index 000000000..8ad0f2338 --- /dev/null +++ b/sitemap.xsl @@ -0,0 +1,152 @@ + + + + + + + XML Sitemap + + + + +

    XML Sitemap

    +
    + + + + + + + + + + + + + + + + + + + + + + +
    URLs list
    + + PriorityChange FrequencyLast Updated Time
    + + + + + + + + + + + + + 0.5 + + + + + + + + + - + + + + +
    +
    + + + +
    +
    diff --git a/use/attribute_alias.html b/use/attribute_alias.html new file mode 100644 index 000000000..36477ad68 --- /dev/null +++ b/use/attribute_alias.html @@ -0,0 +1,71 @@ + + + + + + + + 属性同义词 | 海豹手册 + + + + + + +
    跳至主要內容

    属性同义词

    大约 3 分钟

    属性同义词

    本节内容

    本节将介绍海豹在 CoC 和 D&D 规则中默认使用的同义词。

    概念说明

    属性同义词是在录入和存储角色数据时,将若干个属性名视为同一个属性、互相可以替代使用。

    这一设计是为了解决下面这样的问题:(由于笔者的游戏栈,使用 CoC 举例)

    场景举例

    用户可能使用某些自动工具创建了一名调查员,由工具生成了录入数据的指令。这指令可能包含了类似这样的内容:

    .st 力量50str50
    +

    我们知道,「str」是「力量」属性的英文缩写法,它们完全指代的是同一属性。

    因此,我们期待这样的指令实际只录入一条属性,但是用户仍然可以用「力量」或「str」的任何一个名字使用这一属性。

    $ .st 力量50str50
    +<木落>的属性录入完成,本次共记录了2条数据 (其中1条为同义词)
    +
    +# 实际上只有一条属性
    +$ .st show
    +<木落>的个人属性为:力量: 50
    +
    +# 可以用各种名字使用
    +$ .ra 力量
    +<木落>尝试使用"力量"技能:D100=64/50 失败
    +$ .ra STR
    +<木落>尝试使用"力量"技能:D100=78/50 失败
    +
    +# 可以用各种名字修改
    +$ .st str+10
    +<木落>的属性变化:
    +力量: 50 ➯ 60 (增加10=10)
    +$ .ra 力量
    +<木落>尝试使用"力量"技能:D100=90/60 失败
    +

    类似地,在 CoC 中,「智力」与「灵感」是规则书规定的同一属性的两个名字。它们也被视为同义词。

    一些分支专精技能的名字,如「冲锋枪」,我们将「射击:冲锋枪」作为它的同义词,以适配尽量多的用法。

    我们在选择同义词时遵循以下几条原则:

    1. 规定的同义词等价,如 智力灵感教育知识
    2. 中文和英文缩写等价,如 力量str
    3. 同一概念的不同常用称呼等价,如 理智理智值,根据原则 2,sansan值 也指向同一属性;
    4. 日常用语中基本等价且易混淆的词汇等价,如 侦查侦察
    5. 不同版本规则之间的同一技能更换了用词,或翻译有变化,这些名字等价;如 CoC 6 版的 快速交谈 与 7 版的 话术;又如 7 版的 魅惑取悦
    6. 简体与繁体字等价,如 体质體質
    7. 在玩家中广泛使用的简称、别称与其正式名称等价,如 克苏鲁神话克苏鲁克苏鲁神话知识

    同义词表

    为了确保你不会获取到过时内容,我们决定不将列表放在手册中,敬请理解。

    这些同义词都是符合直觉的,你通常也无需专门查阅列表。如果你确实想了解,请参考以下内容。

    • CoC 规则的同义词,请自行理解 此源文件open in new window 的内容。

    • D&D 规则的同义词可在骰子启动后,在本地文件 data/default/extensions/dnd5e/attribute.yaml 中查看。

      这个文件遵守以下格式。其中,ac 位置上的名字是海豹核心选用的主要名字,后续列出的是它的同义词。

      alias:
      +    ac:
      +        - AC
      +        - 护甲等级
      +        - 护甲值
      +        - 护甲
      +        - 護甲等級
      +        - 護甲值
      +        - 護甲
      +        - 装甲
      +        - 裝甲
      +
    上次编辑于:
    + + + diff --git a/use/coc7.html b/use/coc7.html new file mode 100644 index 000000000..2b7de59ee --- /dev/null +++ b/use/coc7.html @@ -0,0 +1,106 @@ + + + + + + + + 克苏鲁的呼唤 7 版 | 海豹手册 + + + + + + +
    跳至主要內容

    克苏鲁的呼唤 7 版

    大约 11 分钟

    克苏鲁的呼唤 7 版

    本节内容

    本节将展示 CoC 7th 玩家所需指令,请善用侧边栏和搜索,按需阅读文档。

    我们假定你已对 CoC 规则有适当了解,本节只涉及如何使用海豹核心完成规则中指定的操作。

    克苏鲁的呼唤

    「克苏鲁的呼唤」(Call of Cthulhu)是一个充满了秘密、神秘和恐怖的游戏。你将扮演一位坚定的侦探,奔波在奇怪而危险的场所之间,揭开邪恶的阴谋,对抗暗夜的恐怖。你将面对令人 SAN 值直葬(令人理智崩溃)的存在、怪物们,还有疯魔的邪教徒们。在被人遗忘的奇异书卷中,你会发现不应当为人类所知晓的秘密。

    .st 操作人物卡

    在克苏鲁的呼唤中,每位玩家都需要创造一位调查员。这是一群发掘深层秘密的人,这是一群搜索遗忘之地的人,这是一群用禁忌知识武装自己头脑,正面应对克苏鲁神话中那些毛骨悚然之物的人。

    此指令用来操作骰子程序模拟的人物卡。

    属性与技能

    由于属性和技能在检定时基本不做区分,表述时不以 <属性/技能> 的形式表明这里既可以使用技能名又可以使用属性名,而是统一使用 <属性> 来代指。

    .st help 获取帮助信息

    请以海豹核心最新帮助信息为准。列出几个常用功能供参考。

    列出属性

    .st show (<属性>)

    不提供参数则列出所有属性数值;提供属性名则列出特定属性数值。

    删除属性

    .st clr 删除所有属性数值;

    .st del <属性>... 删除指定属性。

    设定属性值

    .st <属性><表达式> <属性><表达式>...

    将指定属性设定为指定表达式的计算结果。如 .st 敏捷50 力量3d6*5

    更新属性值

    .st <属性>±<表达式>

    将指定属性增加或减去表达式的计算结果。表达式中可以包含骰点。如 .st 敏捷+2 hp+1d3

    设定计算表达式

    .st &<属性>=<表达式>

    保存计算表达式,以更方便地计算某些固定骰点。例如

    $ .st &手枪伤害=1d6+1
    +$ .r 手枪伤害
    +掷出了 手枪伤害=[手枪伤害=5[1d6=5] + 1]=6
    +

    导出属性值

    .st export

    将保存的属性数值以 st 指令格式列出,可以直接复制到其他骰子使用。

    代骰

    以上功能均可以通过附加 @其他人 来操作对方的属性值。

    $ .st 侦查80 @A
    +(省略输出) # 现在A的侦查技能被设定成80
    +$ .st hp-1 @A
    +(省略输出) # A的HP减少1点
    +

    .ra/.rc 检定

    检定一词要与恰当的技能或属性一起使用;也就是说,比如说,守秘人会要求进行一个「攀爬检定」或一个「力量检定」。

    rc 还是 ra?

    rc 是规则书检定。而 ra 是房规检定。区别主要在于对大成功/大失败的判定方式。

    当房规设定为规则书标准(.setcoc 0)时,ra 和 rc 等价。

    进行检定

    .ra <属性表达式>

    使用指定的属性或技能进行检定。其中,属性可以被包含在表达式中进行调整。

    另外,直接指明技能名和数值,将以给出的数值进行检定。

    # 假设角色的侦查技能是40
    +$ .ra 侦查
    +尝试使用"侦查"技能:D100=64/40 失败         # 判定线是40
    +$ .ra 侦查+10
    +尝试使用"侦查+10"技能:D100=15/50 困难成功  # 判定线是50
    +$ .ra 侦查99
    +尝试使用"侦查99"技能:D100=30/99 困难成功   # 忽略了本来的技能值
    +

    多轮检定

    .ra <次数># <属性表达式>

    重复进行指定次数的相同检定。

    $ .ra 3# 侦查
    +尝试3次使用"侦查"技能:
    +D100=16/40 困难成功
    +D100=66/40 失败
    +D100=4/40 极难成功
    +

    要求一定难度的检定

    .ra <难度><属性表达式>

    进行检定,但只有成功等级达到要求的难度才判定为成功。可以指定的难度有 困难(当前判定线的二分之一)、极难(当前判定线的五分之一)、大成功(根据当前房规确定)

    # 假设角色的侦查技能是40
    +$ .ra 困难侦查+10
    +尝试使用"困难侦查+10"技能:D100=30/25 失败
    +

    奖励骰和惩罚骰

    .ra (b|p)[<个数>] <属性表达式>

    进行检定,并且使用指定个数(如果不指定,为 1 个)的奖励骰(b)或惩罚骰(p)。

    $ .ra b2 侦查
    +尝试使用"侦查"技能:b2=14/40, ([D100=94, 奖励 1 3]) 困难成功
    +

    代骰

    以上功能均可以通过附加 @其他人 来使用对方的技能进行检定。

    # 假定A的侦查技能是80
    +$ .ra 侦查 @A
    +由<你>代骰:
    +<A>尝试使用"侦查"技能:D100=65/80 成功
    +

    以上功能可以组合使用

    .ra 3# p 困难侦查+10 @A
    +由<你>代骰:
    +<A>尝试3次使用"困难侦查+10"技能:
    +p=36/45, ([D100=16, 惩罚 3]) 成功
    +p=91/45, ([D100=91, 惩罚 8]) 失败
    +p=75/45, ([D100=5, 惩罚 7]) 失败
    +

    .rah/.rch 暗中检定

    .ra/.rc 功能相同。区别是,检定结果将不会发送到使用指令的群聊,而是私聊发送给指令发起者。

    为什么没有结果?

    暗中检定只在群聊中可用。

    由于要私聊发送检定结果,你可能需要先将骰子加为好友

    代骰

    此功能同样支持通过附加 @其他人 以使用对方的技能进行检定。

    一个较为常见的用法是,PL 要求使用心理学技能,由 KP 进行暗中代骰。

    > PL:我要对这个 NPC 使用心理学
    +> KP:可以
    +$ .rah 心理学 @PL
    +<KP>悄悄进行了一项"心理学"检定
    +
    +# 在 KP 的私聊
    +来自群<群名>(群号)的暗中检定:
    +<PL>尝试使用"心理学"技能:D100=70/70 成功。
    +

    .rav/.rcv 对抗检定

    有些情况,例如两位调查员相互对抗时,你会希望双方都进行掷骰来决出胜者。
    此外,对抗检定也是近战的标准处理方式。

    在对抗检定中应用调整

    在对抗检定这一节中,所述的「属性表达式」除了使用 技能名技能名+指定数值 外,可以进行以下调整:

    1. 在前面附加难度等级,如 困难侦查
    2. 进行运算,如 侦查+10
    3. 在后面附加奖励骰与惩罚骰,如 侦查,b2

    使用相同技能对抗

    .rav <属性表达式> @对手

    自己与对手均使用相同属性/技能(如果有调整值,也相同应用)进行一次检定,然后比较成功等级。

    $ .rav 侦查+10 @A
    +<你> 侦查+10-> 34/50 成功
    +<A> 侦查+10-> 78/90 成功
    +成功等级相同
    +

    使用不同技能对抗

    .rav <自己的属性表达式> <对手的属性表达式> @对手

    使用自己的一个属性/技能对抗对手的另一属性/技能,或者相同属性/技能应用不同调整值。

    $ .rav 潜行,b 侦查 @A
    +<你> 潜行-> 17/20[[D100=37, 奖励 1]] 成功
    +<A> 侦查-> 64/80 成功
    +成功等级相同
    +

    指定两个其他人对抗

    通过 at 两个其他用户,可用让 TA 们进行对抗,而不包括自己。

    .rav <共用属性表达式> @A @B

    .rav <A属性表达式> <B属性表达式> @A @B

    .sc 理智检定

    在令人不安或恐怖的情景中,守秘人将考验调查员的心智。这会要求场景中每位调查员进行一次理智检定。在较短的时间内失去过多理智值,会使调查员陷入临时性或不定性疯狂。

    指定损失的理智

    .sc <成功时理智损失>/<失败时理智损失>

    其中,理智损失均可以是包含骰点的表达式。

    $ .sc 1/1D4+1
    +(如果理智检定成功,失去1点理智;否则,计算 1D4+1 并失去相应理智值)
    +

    简略写法

    .sc <失败时理智损失>(完全等价于 .sc 0/<失败时理智损失>

    如果检定成功时不失去理智,可以只指定失败时的理智损失。

    奖励骰和惩罚骰

    .sc (b|p)[<数量>] <成功时理智损失>/<失败时理智损失>

    在进行理智检定时使用指定数量的奖励骰或惩罚骰。

    代骰

    此指令支持附加 @其他人,使目标进行指定的理智检定。

    $ .sc 0/1 @Szz
    +由<你>代骰:
    +(Szz 的理智检定结果)
    +

    .ti/.li 疯狂发作症状

    在《克苏鲁的呼唤》中,与克苏鲁神话相关的痛苦经历和可怖领悟都会诱发疯狂。

    疯狂状态的持续时间取决于失去的理智值的数量和比例。

    ti 还是 li?

    通常的疯狂发作应该使用 ti 抽取即时症状

    但是,如果疯狂发作时调查员周围没有其他调查员陪伴,或在场的所有调查员同时疯狂发作,
    则守秘人可以快速推进行动,只陈述结果。这被称为疯狂发作的总结症状。使用 li 来抽取。

    .ti

    使用该指令以抽取疯狂发作的即时症状与发作时间。如果抽到的是恐惧症与躁狂症,也会同时抽取具体条目。

    .li

    使用该指令以抽取疯狂发作的总结症状与消耗时间。如果抽到的是恐惧症与躁狂症,也会同时抽取具体条目。

    .en 技能成长

    当调查员在游戏中成功使用了技能,玩家应该勾上角色卡上该技能旁的方框。这提供了调查员从经验中学习的机会。

    • 若使用了奖励骰则不能获得技能成长标记。
    • 对于对抗检定,双方可能都实现某种程度的成功,但只有一方获胜,也只有胜者可以获得技能成长标记。

    进行技能成长

    .en <技能名称> [<更多技能名称>...]

    对指定的技能分别进行一次成长检定。

    相同技能不能被反复列出。如果需要对一个技能进行多次成长,请多次使用成长指令。

    .en 侦查 聆听 图书馆使用
    +

    .en <技能名称><技能点数>

    也可以强制指定一个技能的数值。注意,不论成功与否,这都将使用新的技能值覆盖现有的技能值。

    指定成长值

    .en <技能名称>(<技能点数>) +<失败成长值>/<成功成长值>

    指定当成长检定成功与失败时的技能成长点数。两个点数都可以是包含骰点的表达式。

    .en <技能名称>(技能点数) +<成功成长值>

    如果检定失败时成长为 0,也可以略去不写。

    指定的成长值

    指定值前面的加号 + 是必须的。

    成长值可以是负数,如果命中,则会失去相应的技能点数。

    .coc 生成随机属性(制卡)

    .coc (<数量>)

    随机生成指定数量的调查员属性。如果省略数量,将生成 1 个。生成的属性包括 8 项基础属性与幸运,同时会计算 HP 点数。

    此外,也会计算属性的总值供用户参考。总值包括两个,其一是 8 项基础属性的总值,其二是前者与幸运的总值。

    $ .coc 2
    +力量:65 敏捷:80 意志:55
    +体质:50 外貌:45 教育:90
    +体型:70 智力:75
    +HP:12 幸运:45 [530/575]
    +
    +力量:40 敏捷:60 意志:65
    +体质:60 外貌:75 教育:60
    +体型:50 智力:75
    +HP:11 幸运:55 [485/540]
    +

    .setcoc 设置房规

    改变海豹核心判定大成功与大失败的方式。

    显示当前房规

    .setcoc

    不加参数的使用,即显示当前设定的房规。

    列出可用房规

    .setcoc details

    列出所有内置或通过扩展加入的房规。海豹核心内置的房规列出如下:

    序号规则
    0(默认)出 1 大成功,不满 50 出 96-100 大失败,满 50 出 100 大失败 (CoC7th 规则书)
    1不满 50 出 1 大成功,不满 50 出 96-100 大失败,满 50 出 100 大失败
    2(常用)出 1-5 且判定成功为大成功,出 96-100 且判定失败为大失败
    3出 1-5 大成功,出 96-100 大失败 (即大成功/大失败时无视判定结果)
    4出 1-5 且≤(成功率/10) 为大成功,不满 50 出>=96+(成功率/10) 为大失败,满 50 出 100 大失败
    5出 1-2 且≤(成功率/5) 为大成功,不满 50 出 96-100 大失败,满 50 出 99-100 大失败
    dg出 1 或检定成功基础上个位十位相同为大成功,出 100 或检定失败基础上个位十位相同为大失败,此规则无困难成功或极难成功

    设定房规

    .setcoc <房规序号>

    使用指定的房规。

    上次编辑于:
    + + + diff --git a/use/core.html b/use/core.html new file mode 100644 index 000000000..2876ddd54 --- /dev/null +++ b/use/core.html @@ -0,0 +1,243 @@ + + + + + + + + 核心指令 | 海豹手册 + + + + + + +
    跳至主要內容

    核心指令

    大约 15 分钟

    核心指令

    本节内容

    本节将介绍海豹核心的核心指令。

    核心指令是无法被关闭的指令。与之相对的概念是扩展指令,扩展指令可以被关闭。

    .master 骰主指令

    此指令只能由具有 Master 权限的用户使用。

    .master add @A 为 A 添加 Master 权限。

    .master del @A 移除 A 的 Master 权限。

    .master list 查看当前 Master 权限列表。

    .master relogin 30 秒后重新登录。

    .master reboot 重新启动海豹核心(需要二次确认)。

    .master checkupdate 检查并进行远程更新(需要二次确认)。

    .master unlock <解锁码> 清空 Master 权限列表,并给自己重新添加 Master 权限。

    保护好你的骰子

    我们认为,拥有海豹核心的最终判定方式是可以接触到 WebUI。因此,该解锁码仅能通过 WebUI 的「综合设置 - 基本设置」获取。

    你可以将 Master 权限授予若干位维护人员。但是,确保只有你完全信任的人能够接触到你骰子的 WebUI 与本地文件。

    如果你的 WebUI 可以通过公开互联网访问,确保你设置了合适的密码。

    .bot 骰子管理

    你必须 AT 骰子账号,才能使用 bot 命令。为了简单,在以下示例中略去 AT 的部分。

    # 开启骰子
    +$ .bot on
    +<海豹bot> 已启用 SealDice <版本号>
    +
    +# 关闭骰子
    +$ .bot off // 关闭
    +<海豹bot> 停止服务
    +
    +# 退群
    +$ .bot bye
    +收到指令,5s后将退出当前群组
    +
    +# 骰子信息
    +$ .bot # 或者 .bot about
    +SealDice <版本号>
    +

    .ext 扩展管理

    除了本节所述的「核心指令」之外,海豹的其他功能都作为「扩展」提供。每一个扩展提供若干指令和其他功能,并可以单独开关。你可在每个群聊中启用不同的扩展。

    .ext <扩展名> (on|off) 开启、关闭指定扩展。

    .ext <扩展名> 查询指定扩展的信息。

    .ext list 查看扩展列表和开启情况。

    目前,海豹提供 7 个内置扩展,它们的详细信息在本章的后续内容中逐一介绍。同时,海豹核心也支持通过装载 JavaScript 脚本添加第三方扩展。

    $ .ext
    +检测到以下扩展:
    +1. [开]coc7 - 版本:1.0.0 作者:木落
    +2. [开]log - 版本:1.0.0 作者:木落
    +3. [开]fun - 版本:1.0.0 作者:木落
    +4. [开]deck - 版本:1.0.0 作者:木落
    +5. [关]reply - 版本:1.0.0 作者:木落
    +6. [开]dnd5e - 版本:1.0.0 作者:木落
    +7. [开]story - 版本:1.0.0 作者:木落
    +使用命令: .ext <扩展名> on/off 可以在当前群开启或关闭某扩展。
    +命令: .ext <扩展名> 可以查看扩展介绍及帮助
    +
    +$ .ext coc7 on
    +打开扩展 coc7
    +
    +$ .ext reply
    +> [reply] 版本1.2.0 作者木落
    +> 自定义回复模块,支持各种文本匹配和简易脚本
    +
    +$ .ext reply off
    +关闭扩展 reply
    +

    可以在 UI 界面中「综合设置 - 基本设置」的最底下,设置各个扩展及其指令的默认开启状态。

    .r 骰点

    .r <表达式> (<原因>)

    别名:.roll

    常用示例

    $ .r
    +<木落>掷出了 D100=69
    +
    +$ .r d50
    +<木落>掷出了 d50=[1d50=48]=48
    +
    +$ .r d50 天气不错
    +由于天气不错,<木落>掷出了 d50=[1d50=4]=4
    +
    +$ .r 5d24 骰5个24面骰
    +由于骰5个24面骰,<木落>掷出了 5d24=[5d24=60, 7+20+15+1+17]=60
    +
    +$ .r 4d6k3 骰4个6面骰,选3个最大的
    +由于骰4个6面骰,选3个最大的,<木落>掷出了 4d6k3=[{6 5 3 | 1 }]=14
    +
    +$ .r 100 + 3 * 2
    +<木落>掷出了 100 + 3 * 2=100 + 6=106
    +

    或许你已注意到,.r 指令的表达式在不包含骰子算符时,相当于计算器。海豹的计算只支持整数,出现的小数被立即舍弃。

    多轮骰点

    $ .r 2#d10
    +<木落>掷骰2次:
    +d10=[1d10=7]=7
    +d10=[1d10=8]=8
    +

    在骰点中使用属性值

    你可在表达式中包含属性值或其他变量。

    # 此时木落的侦查是53
    +$ .r 侦查+10
    +<木落>掷出了 侦查+10=53[侦查=53] + 10=63
    +

    奖励骰与惩罚骰

    CoC 规则中,对于百分骰的一种补偿骰法,通过额外骰一定数量的十位骰,选择组成的最好结果或最坏结果。

    $ .r b
    +<木落>掷出了 b=[D100=72, 奖励 4]=42
    +
    +$ .r b3
    +<木落>掷出了 b3=[D100=96, 奖励 4 6 3]=36
    +
    +$ .r p4 惩罚骰
    +由于惩罚骰,<木落>掷出了 p4=[D100=27, 惩罚 5 6 8 7]=87
    +

    优势骰与劣势骰

    D&D 规则中对 20 面骰的一种补偿骰法。额外骰一次,取较高或较低结果。

    $ .set 20
    +设定默认骰子面数为 20
    +
    +$ .r d20优势
    +<木落>掷出了 d20优势=[{7 | 6 }]=7
    +
    +$ .r d劣势
    +<木落>掷出了 d劣势=[{16 | 18 }]=16
    +

    优势骰与劣势骰也可使用通用的表达式表达

    $ .r 2d20k1 等于优势骰
    +由于等于优势骰,<木落>掷出了 2d20k1=[{19 | 17 }]=19
    +
    +$ .r 2d20q1 等于劣势骰
    +由于等于劣势骰,<木落>掷出了 2d20k1=[{19 | 17 }]=17
    +

    fvtt 骰点兼容

    $ .r d20kh  // 优势骰
    +<木落>掷出了 d20kh=[{10 | 3 }]=10
    +
    +$ .r d20kl  // 劣势骰
    +<木落>掷出了 d20kl=[{6 | 15 }]=6
    +
    +$ .r 4d6dl1 // 丢4排除1个最低值
    +<木落>掷出了 4d6dl1=[{5 3 2 | 1 }]=10
    +
    +$ .r 4d6dh1 // 丢4排除1个最高值
    +<木落>掷出了 4d6dh1=[{3 3 5 | 6 }]=11
    +

    fate 命运骰

    一种特殊的六面骰,六个面分别为 -、-、0、0、+、+,分别代表 -1、0、1。

    骰点时投掷 4 次,加在一起为结果。

    $ .r f
    +<木落>掷出了 f=[---+]=-2
    +

    带补正的情况:

    $ .r f+1
    +<木落>掷出了 f+1=0[+0-0] + 1=1
    +

    WOD 骰点

    WOD 骰点规则是一个多轮骰点规则,国内多见于无限团。

    进行 WOD 骰点需要设定以下参数:骰池数量 X、加骰线 Y、骰子面数 Z、成功线 N,其中 X Y 是必须的,成功线默认为 8,骰子面数默认为 10。

    骰 X 个 Z 面骰,每有一个大于等于成功线 N 的骰,成功数加 1,每有一个大于等于加骰线 Y 的骰,加骰数加 1,进入下一轮。

    在第二轮中,骰上一轮中加骰数个 Z 面骰,重复进行计算。以此类推。

    最后计算总计成功数。

    表达式形如 XaY[mZ][kN]。其中的大写字母用相应参数替换。

    $ .r 5a6
    +<木落>掷出了 5a6=[成功2/8 轮数:3 {4,<10*>,<10*>,5,1},{5,<6>},{1}]=2
    +
    +$ .r 10a6k4m9
    +<木落>掷出了 10a6k4m9=[成功11/16 轮数:3 {1,<6*>,5*,3,<8*>,5*,<8*>,<6*>,2,<8*>},{5*,2,<9*>,1,4*},{5*}]=11
    +

    在计算过程中,每一轮骰点被包含在一对花括号 {} 中;达到加骰线 Y 的骰点用 <> 标记;达到成功线 N 的骰点用 * 标记。

    你可指定 Y = 0,这时不进行加骰而只骰一轮。

    你可将 kN 替换成 qM,这时,最终计算的是小于等于 M的骰子总数。

    $ .r 5a6q4
    +<木落>掷出了 5a6q4=[成功4/9 轮数:3 {<9>,5,<9>,3*,<9>},{<10>,3*,2*},{2*}]=4
    +

    双十字骰点

    双十字规则是一种多轮的骰点规则。

    进行双十字骰点需要设定以下参数:骰池数量 X、暴击线 Y、骰子面数 Z,其中 X Y 是必须的,骰子面数 Z 默认为 10。

    骰 X 个 Z 面骰,出目大于等于暴击线的骰子称为此骰子「暴击」。只要存在暴击的骰子,就称本轮暴击,进入下一轮;否则计算最终骰点。

    第二轮中,骰 上一轮中暴击的骰子数 个 Z 面骰,统计暴击数,判断进入下一轮或结束。以此类推。

    最终的骰点结果为:暴击轮数 * 10 + 最后一轮中最大点数。

    表达式形如 XcY[mZ]。其中的大写字母用相应参数替换。

    $ .r 4c3m7
    +<木落>掷出了 4c3m7=[出目32/9 轮数:4 {<4>,2,<4>,<5>},{<7>,1,2},{<7>},{2}]=32
    +

    在计算过程中,每一轮骰点被包含在一对花括号 {} 中;达到暴击线 Y 的骰点用 <> 标记。

    混合运算

    以上所有骰法,加、减、乘、除、乘方等 5 个数学运算,以及括号 () 可以被组合使用,以进行更复杂的运算。

    $ .r 30 + (-1d20) + 49
    +<木落>掷出了 30 + (-1d20) + 49=30 + -1[1d20=1] + 49=78
    +
    +$ .r d50 * 3 + 2
    +<木落>掷出了 d50 * 3 + 2=21[1d50=21] * 3 + 2=65
    +
    +$ .r d50 * 3 + (2 - p2) 多项式
    +由于多项式,<木落>掷出了 d50 * 3 + (2 - p2)=25[1d50=25] * 3 + -64[D100=6, 惩罚 6 5]=11
    +

    特别地,上文所述的「骰法」d b p f a c 均可作为运算符使用。

    $ .r 1d1d1d1d1d1d1d1d1d1d1d1d1d1d(20+1d3*4)
    +<木落>掷出了 1d1d1d1d1d1d1d1d1d1d1d1d1d1d(20+1d3*4)=13
    +
    +$ .r 1d10+(1+32)d(4*6)d20
    +<木落>掷出了 1d10+(1+32)d(4*6)d20=1[1d10=1] + 3941[33d24=384,384d20=3941]=3942
    +

    .rh 暗骰

    这个指令的格式与普通骰点 .r 完全相同,区别在于发送骰点结果的方式。

    在发送指令的群聊中,海豹核心会进行提示,但提示不包含骰点结果。

    骰点结果将由海豹核心私聊给指令发送者。

    收不到结果?

    在 QQ 平台上,如果你不是海豹账号的好友,将无法进行私聊。也就无法收到暗骰结果。

    # 群内
    +$ .rh d50
    +命运正在低语!
    +
    +# 私聊
    +来自群<群名>(群号)的暗骰:
    +<木落>掷出了 d10=[1d10=3]=3
    +

    .rx / .rxh 特殊骰点

    这个指令的格式与普通骰点 .r 完全相同,区别在于允许额外 AT 其他人,以使用对方的属性。

    这种操作称为「代骰」,你会在许多其他指令中看到代骰用法。

    # 此时木落的侦查是75,Szz的侦查是80
    +$ .rx 侦查+1d20**2
    +<木落>掷出了 侦查+1d20**2=75[侦查=75] + 324[1d20=18]=399
    +
    +$ .rx 侦查+1d20**2 @Szz
    +由<木落>代骰:
    +<Szz>掷出了 侦查+1d20**2=80[侦查=80] + 144[1d20=12]=224
    +

    .nn 角色名设定

    .nn 查看当前角色名。

    .nn <角色名> 修改角色名,角色名中不能带有空格。

    .nn clr 重置角色名,即,将角色名设置为 IM 平台的昵称。

    角色名被用于在进行各种操作和记录 Log 时显示。

    .nn 简·拉基·茨德
    +<木落>(IM 账号)的昵称被设定为<简·拉基·茨德>
    +
    +.r
    +<简·拉基·茨德>掷出了 D100=16
    +
    +.nn
    +玩家的当前昵称为: <简·拉基·茨德>
    +
    +.nn clr
    +<简·拉基·茨德>(IM 账号)的昵称已重置为<木落>
    +

    .pc 角色卡管理

    相关信息

    为了使用这个指令,需要先介绍海豹核心管理你角色卡的方式。

    在每个群聊(对于这里,私聊也被认为是一个特殊的群聊)中,你都自动拥有一张独立的角色卡。这些角色卡互相无任何影响。

    你还可以拥有若干与特定群聊无关的角色卡,这些角色卡可以被绑定到任意数量的群聊。这时,绑定的群聊中角色数据互相同步,在一处的修改就会影响其他各处。

    pc 指令的作用是管理上述第二种群聊无关角色卡。

    .pc new <角色名> 新建一张角色卡,并绑定到当前群聊。

    .pc tag <角色名> 将指定角色卡绑定到当前群聊。

    .pc tag 不带有角色名参数,将本群的绑定关系解除。你在本群的角色将会恢复为独立卡的数据。

    .pc untagAll <角色名> 将指定角色卡从其绑定的所有群解绑。

    .pc list 列出你所保存的所有角色。

    .pc save (<角色名>) 将你当前群聊中的独立卡数据保存为个人角色卡。你可指定保存的角色名,如不指定,将使用当前群聊中你的角色名。

    .pc load <角色名> 使用指定角色卡的数据覆盖当前群聊的独立卡。这不会将角色卡绑定到当前群聊。

    .pc del/rm <角色名> 删除指定角色卡。

    .find 词条查询指令

    海豹核心默认搭载了 CoC 的《怪物之锤》、《魔法大典》和 D&D 规则的一系列资料。这些资料被整理成词条,并支持使用此指令进行查询。

    .find <关键字> 用关键字进行词条查询。

    别名:.查询

    查询功能在不同设备上的实现是不同的。在 x86 设备上,海豹核心使用稍微更多的内存使用全文搜索,这赋予了查询指令强大的获取能力。在其他平台上,由于搜索库的限制,海豹核心使用词条标题模糊搜索。

    全文搜索

    $ .find 30尺 法术
    +全部结果:
    +[序号3066]【术士:超魔法:远程法术】 匹配度 0.16
    +[序号3015]【游侠:驯兽师:法术共享】 匹配度 0.13
    +[序号2396]【法术详述:迷踪步】 匹配度 0.12
    +[序号1319]【法术详述:阿迦纳萨喷火术】 匹配度 0.12
    +[序号507]【法术详述:智能堡垒/智力堡垒/智慧堡垒/智能壁垒/心智堡垒/心智壁垒】 匹配度 0.12
    +[序号2514]【法术详述:水下呼吸/水中呼吸】 匹配度 0.11
    +[序号2212]【法术详述:原力法阵】 匹配度 0.11
    +[序号1403]【法术详述:众星冠冕/星辰冠冕/星之冠冕】 匹配度 0.11
    +[序号2243]【法术详述:造水/枯水术/造水术/枯水术】 匹配度 0.11
    +[序号2176]【法术详述:秘法眼】 匹配度 0.11
    +
    +(本次搜索由全文搜索完成)
    +

    因为多个文本匹配度相近,因此没有列出最佳匹配条目的正文内容。用这条指令可以查看:

    $ .find 2212
    +词条: 法术详述:原力法阵
    +原力法阵 Circle of Power
    +圣武士
    +5环 防护
    +施法时间:1动作
    +施法距离:自身(30尺半径)
    +法术成分:V
    +持续时间:专注,至多10分钟
    +你身上发出神圣能量并以扭曲散溢的魔法能量构成一个半径30尺的球状力场。法术持续时间内力场将以你为中心随你移动。力场范围内的友方生物(包括你自己)为对抗法术或其他魔法效应而进行的豁免检定具有优势。此外,受本法术效应影响的生物在对抗豁免成功则伤害减半的法术或魔法效应时,若成功则不受伤害。
    +

    这么好用,那代价是什么呢?

    更多的内存占用和变慢的启动速度。

    大致来说,每 1 MB 帮助文本会产生约 15 MB 额外内存占用

    快速文档查找

    $ .find 测试词条
    +最优先结果:
    +词条: 测试:测试词条
    +他在命运的沉浮中随波逐流, 扮演着受害与加害者的双重角色
    +
    +全部结果:
    +[序号2]【测试:测试词条】 匹配度 67.00
    +
    +(本次搜索由快速文档查找完成)
    +

    致谢

    CoC《怪物之锤》的整理者为:蜜瓜包October

    CoC 魔法大典的整理者为:魔骨NULLDr.Amber

    D&D 系列资料的整理者主要为 DicePP 项目组成员,包括Farevell梨子花作噫邪恶惠惠赵小安等。

    这些资料的原始出处和译者很多已经不可考,此处无法一一列出,甚为遗憾。

    也在此感谢一代又一代无名作者和译者做出的工作。

    .help 帮助指令

    .help (<词条名>) 显示指定词条的帮助文档。

    .help reload 重新装载帮助文档。仅 Master 可用。

    .send 向骰主发送消息 / 回复消息

    .send <消息内容>

    拥有 Master 权限的用户将看到消息内容和发送者的 IM 账号,如果是来自群组,也能看到群号。

    # 用户在某群聊使用 send 指令
    +$ .send 骰主你好!
    +
    +# 拥有 Master 权限的用户
    +一条来自群组<群名>(群号),作者<用户名>(用户 IM 账号)的留言:
    +骰主你好!
    +

    .send to <对方ID> <消息内容>

    Master 可以通过这个指令进行回复。目标 ID 可以是群号,也可以是个人的 IM 账号。将收到的消息中的对应 ID 复制到此处即可。

    # 拥有 Master 权限的用户
    +$ .send to <群号> 我收到了!
    +
    +# 在群聊中
    +本消息由骰主<木落>通过指令发送:
    +我收到了!
    +

    .set 设定默认骰子面数 / 设定游戏系统

    .set info 查看当前默认骰子面数。如果从未设置过,将显示为「0」。

    .set dnd 设置群内骰子面数为 20,并自动开启 D&D 扩展。

    .set (coc|coc7) 设置群内骰子面数为 100,并自动开启 CoC 扩展。

    .set <面数> 设定群内默认骰子面数。

    .set <面数> --my 设定个人专属默认骰子面数。

    .set clr 清除群内骰子面数设置。

    .set clr --my 清除个人骰子面数设置。

    如果通过「规则模板」机制添加了自设规则,并有相关配置,可以使用 .set <规则名> 切换为对应规则的默认骰面数。你可以通过 .set help 来查看当前可用的关键字。

    .set 20
    +设定默认骰子面数为 20
    +
    +.set coc
    +设定群组默认骰子面数为 100
    +提示:已切换至100面骰,并自动开启coc7扩展
    +
    +.set dnd
    +设定群组默认骰子面数为 20
    +提示:已切换至20面骰,并自动开启dnd5e扩展。
    +
    +.set info
    +个人骰子面数: 0
    +群组骰子面数: 20
    +当前骰子面数: 20
    +

    .botlist 机器人列表

    这个指令用于标记同一群聊内的其他机器人。

    当一个账号被标记后,对于与 TA 相关的消息,海豹核心会按以下规则进行忽略:

    1. 如果 TA 被 AT,忽略;
    2. 如果是 TA 发出的消息,忽略。

    这可避免机器人互相响应造成的危险的循环。

    .botlist add @A @B @C 标记 A、B、C 为机器人。

    .botlist add @A @B --s 同上,不过骰子不会做出回复。

    .botlist del @A @B @C 去除 A、B、C 的标记。

    .botlist list 查看当前标记列表。

    .welcome 新人入群欢迎

    .welcome (on|off) 开启、关闭功能

    .welcome show 查看当前欢迎语

    .welcome set <欢迎语> 设定欢迎语

    上次编辑于:
    + + + diff --git a/use/deck_and_reply.html b/use/deck_and_reply.html new file mode 100644 index 000000000..fbbaf2149 --- /dev/null +++ b/use/deck_and_reply.html @@ -0,0 +1,87 @@ + + + + + + + + 牌堆 自定义回复 | 海豹手册 + + + + + + +
    跳至主要內容

    牌堆 自定义回复

    大约 2 分钟

    牌堆 自定义回复

    本节内容

    本节将展示牌堆和自定义回复相关的指令,请善用侧边栏和搜索,按需阅读文档。

    如何自定义?

    牌堆和自定义回复都是海豹提供的扩展性功能,此处只展示相关控制指令,如果你想知道如何进行自定义,请转到 进阶介绍

    .draw 抽牌 / 管理牌堆

    关于牌堆功能的一般性介绍,请参阅 配置 - 牌堆

    .draw help 显示帮助信息。

    信息查询

    .draw list 列出当前装载的牌堆列表。

    .draw keys <牌堆> 查看特定牌堆可抽取的牌组列表。

    .draw search <牌组名称> 模糊搜索指定牌组。

    .draw desc <牌组名称> 查看牌组所属牌堆的详细信息。

    $ .draw list
    +载入并开启的牌堆:
    +- GRE单词 格式: Dice! 作者:于言诺 版本:1.0.1 牌组数量: 1
    +- IELTS单词 格式: Dice! 作者:于言诺 版本:1.0.1 牌组数量: 1
    +- TOEFL单词 格式: Dice! 作者:于言诺 版本:1.0.1 牌组数量: 1
    +- SealDice内置牌堆 格式: Dice! 作者:<因过长略去> 版本:1.2.0 牌组数量: 8
    +
    +$ .draw keys GRE单词
    +牌组关键字列表:
    +GRE单词
    +
    +$ .draw search 单词
    +找到以下牌组:
    +- GRE单词
    +- TOEFL单词
    +- IELTS单词
    +
    +$ .draw desc GRE单词
    +牌堆信息:
    +牌堆: GRE单词
    +格式: Dice!
    +作者: 于言诺
    +版本: 1.0.1
    +牌组数量: 1
    +时间: 2022/5/23
    +更新时间: 2022/8/16
    +牌组: GRE单词
    +

    需要说明,在以上的例子中,「GRE单词」同时是牌堆名与牌组名。在 .draw keys GRE单词 中,它作为牌堆名出现;在 .draw desc GRE单词 中,它作为牌组名出现。

    .draw keys 列出所有可抽取的牌组列表。

    谨慎使用

    这一指令会将所有可抽取的牌组列出,在牌组较多时造成刷屏。

    抽牌

    .draw <牌组名称> (<数量>#) 在指定牌组抽指定数量的牌,默认为抽 1 张。

    .draw GRE单词 3#
    +<木落>抽出了:
    +GRE3178
    +invoice n.
    +发票, 发货单, 货物。
    +
    +<木落>抽出了:
    +GRE4889
    +rig n.
    +索具装备, 钻探设备, 钻探平台, 钻塔。
    +
    +<木落>抽出了:
    +GRE5421
    +austerity n.
    +严峻, 严厉, 朴素, 节俭, 苦行。
    +

    当指定的牌组名称不存在时,将会进行模糊搜索,效果与 draw search 类似。

    $ .draw 单词
    +找不到这个牌组,但发现一些相似的:
    +- GRE单词
    +- TOEFL单词
    +- IELTS单词
    +

    牌堆管理

    .draw reload 重新加载牌堆,仅限 Master 使用。

    .reply 管理自定义回复

    关于自定义回复功能的一般性介绍,请参阅 配置 - 自定义回复

    .reply (on|off) 开启、关闭本群的自定义回复功能。

    以上指令等价于 .ext reply (on|off)

    上次编辑于:
    + + + diff --git a/use/dnd5e.html b/use/dnd5e.html new file mode 100644 index 000000000..d1f7debfb --- /dev/null +++ b/use/dnd5e.html @@ -0,0 +1,227 @@ + + + + + + + + 龙与地下城 5E | 海豹手册 + + + + + + +
    跳至主要內容

    龙与地下城 5E

    大约 11 分钟

    龙与地下城 5E

    本节内容

    本节将展示 D&D 5E 玩家所需指令,请善用侧边栏和搜索,按需阅读文档。

    我们假定你已对 D&D 规则有适当了解,本节只涉及如何使用海豹核心完成规则中指定的操作。

    龙与地下城

    「龙与地下城」(Dungeons & Dragons, D&D, DnD)是一款剑与魔法奇幻背景的叙事性角色扮演游戏。与孩提时代的过家家扮演游戏相似,D&D 依靠的是玩家无穷的想象力。

    你所需要做的,即是描述场景如暴风骤雨里,夜空下的某座高耸古堡。然后想象奇幻世界中的冒险者们会如何迎接即将到来的挑战。

    .dnd / .dndx 生成随机属性(制卡)

    .dnd (<数量>) 随机生成指定组数的待分配属性,如果省略数量将生成 1 组。

    .dndx (<数量>) 随机生成带属性名的结果。

    $ .dnd 5
    +<木落>的DnD5e人物作成(自由分配模式):
    +[16, 16, 14, 11, 10, 9] = 76
    +[16, 15, 15, 12, 9, 9] = 76
    +[16, 15, 14, 13, 13, 12] = 83
    +[18, 17, 15, 14, 13, 8] = 85
    +[15, 14, 13, 13, 10, 8] = 73
    +获取带属性名的预设请用.dndx
    +
    +$ .dndx 5
    +<木落>的DnD5e人物作成(预设模式):
    +力量:16 体质:9 敏捷:14 智力:10 感知:13 魅力:10 共计:72
    +力量:13 体质:12 敏捷:8 智力:8 感知:14 魅力:9 共计:64
    +力量:16 体质:10 敏捷:11 智力:14 感知:12 魅力:10 共计:73
    +力量:9 体质:17 敏捷:15 智力:9 感知:10 魅力:13 共计:73
    +力量:12 体质:6 敏捷:8 智力:13 感知:10 魅力:8 共计:57
    +自由分配模式请用.dnd
    +

    .ri 先攻设置

    .ri <先攻值> (<角色名>) 为指定角色设定先攻值。如果省略角色名则默认为当前角色,以下的角色名部分相同。

    其中,先攻值部分支持以下三种写法

    1. .ri 12 固定值 12;
    2. .ri +2 掷骰 D20+2;
    3. .ri =D20+3 掷骰 D15+3。

    .ri <单项>, <单项>, ... 批量设定多个角色的先攻值,每个单项都是 <先攻值> <角色名> 形式。

    .ri +2
    +<木落>对先攻点数设置如下:
    + 1. 木落: 15[1d20=15] + 2=17
    +
    +.ri +3 狗头人1
    +<木落>对先攻点数设置如下:
    + 1. 狗头人1: 15[1d20=15] + 3=18
    +
    +.ri =D20+2 狗头人1
    +<木落>对先攻点数设置如下:
    + 1. 狗头人1: 13
    +
    +.ri 30 狗头人1
    +<木落>对先攻点数设置如下:
    + 1. 狗头人1: 30
    +
    +.ri 优势+2 狗头人2
    +<木落>对先攻点数设置如下:
    + 1. 狗头人2: 13[{13 | 11 }] + 2=15
    +
    +.ri +2 狗头人1, 3 狗头人2, =d30 狗头人3, +3
    +<木落>对先攻点数设置如下:
    + 1. 木落: 19[1d20=19] + 3=22
    + 2. 狗头人3: 17
    + 3. 狗头人1: 15[1d20=15] + 2=17
    + 4. 狗头人2: 3
    +

    .init 先攻列表

    .init 查看先攻列表。

    .init del <单位1> <单位2> ... 从先攻列表中删除指定单位。

    .init set <单位名称> <先攻表达式> 为指定单位设定先攻值。

    .init clr 清除先攻列表。

    .init end 结束当前的回合,并开始下一回合;如果轮到玩家行动,会 at 将要行动的玩家。

    .init help 显示帮助。

    # 已经设置了先攻列表的情况
    +$ .init
    +当前先攻列表为:
    + 1. 木落: 22
    + 2. 狗头人3: 17
    + 3. 狗头人1: 17
    + 4. 狗头人2: 3
    +当前回合:木落
    +
    +$ .init del 狗头人2
    +<木落>将以下单位从先攻列表中移除:
    + 1. 狗头人2
    +
    +$ .init set 狗头人3 16
    +<木落>已设置 狗头人3 的先攻点为16 16
    +
    +$ .init end
    +【木落】戏份结束了,下面该【狗头人1】出场了!
    +

    .st 操作角色卡

    .st help 获取帮助信息

    列出属性

    .st show 列出角色卡所有属性。

    .st show <属性1> <属性2> ... 列出指定的属性数值。

    .st show <数值> 列出高于指定数值的属性。

    .st export 导出属性值和法术位。

    删除属性

    .st clr/clear 删除所有属性数值和法术位。

    .st del <属性1> <属性2> ... 删除指定属性。

    更新属性值

    .st 模板 获取角色卡录入模板。

    .st <属性>:<值> 设置指定属性,技能加值会自动计算。

    .st <属性>=<值> 与前一用法相同,可避免中英文冒号的识别问题。

    .st <属性>±<表达式> 将指定属性增加或减去表达式的计算结果。表达式中可以包含骰点。如 .st 生命+1d4

    .st hp-1d6 --over 前一用法的特殊情况,不计算临时生命扣血。

    $ .st 模板
    +人物卡模板(第二行文本):
    +.dst 力量:10 体质:10 敏捷:10 智力:10 感知:10 魅力:10 hp:10 hpmax: 10 熟练:2 运动:0 特技:0 巧手:0 隐匿:0 调查:0 奥秘:0 历史:0 自然:0 宗教:0 察觉:0 洞悉:0 驯养:0 医疗:0 生存:0 说服:0 欺诈:0 威吓:0 表演:0
    +注意: 技能只填写修正值即可,属性调整值会自动计算。熟练写为“运动*:0”
    +
    +$ .st 力量:12 体质:10 敏捷:10 智力:10 感知:10 魅力:10 hp:10 hpmax: 10 熟练:2 运动*:3 特技:1 巧手:0 隐匿:0 调查:0 奥秘:0 历史:0 自然:0 宗教:0 察觉:0 洞悉:0 驯养:0 医疗:0 生存:0 说服:0 欺诈:0 威吓:0 表演:0
    +<木落>的dnd5e人物属性设置如下:
    +读入: 力量:12, 体质:10, 敏捷:10, 智力:10, 感知:10, 魅力:10, hp:10, hpmax:10, 熟练:2, 运动:3[技能, 熟练], 特技:1[技能], 巧手:0[技能], 隐匿:0[技能], 调查:0[技能], 奥秘:0[技能], 历史:0[技能], 自然:0[技能], 宗教:0[技能], 察觉:0[技能], 洞悉:0[技能], 驯养:0[技能], 医疗:0[技能], 生存:0[技能], 说服:0[技能], 欺诈:0[技能], 威吓:0[技能], 表演:0[技能]
    +
    +$ .st show
    +<木落>的个人属性为:
    +力量: 12  敏捷: 10  体质: 10  智力: 10
    +感知: 10  魅力: 10  hp: 10  hpmax: 10
    +EXP: 0  熟练: 2   特技: 1[基础值1] 运动: 6[基础值3]
    +(下略)
    +
    +$ .st show 力量 运动 熟练
    +<木落>的个人属性为:
    +力量: 12  熟练: 2   运动: 6[基础值3]
    +
    +$ .st 力量 + 2
    +人物属性设置如下:
    +修改: 力量(12 ➯ 14)
    +

    属性修改后,属性调整值会自动变更。不用再行关注。

    对生命值的特殊支持

    • 当存在临时生命 (buff 血量),自动优先消耗。若临时生命不足以抵挡伤害,剩余会扣减血量;
    • 当生命值归零,若伤害大于等于血量上限,判定人物死亡;
    • 当生命值归零,若伤害小于血量上限,人物昏迷;
    • 当人物已经昏迷,不足致死的伤害自动折算为死亡豁免失败。
    $ .st hp-3 hp-3 hp-3
    +<木落>的dnd5e人物属性设置如下:
    +修改: hp(2 ➯ 0), hp(0 ➯ 0), hp(0 ➯ 0)
    +<木落>遭受了1点过量伤害,生命值降至0,陷入了昏迷!
    +<木落>在昏迷状态下遭受了3点过量伤害,死亡豁免失败+1!
    +<木落>在昏迷状态下遭受了3点过量伤害,死亡豁免失败+1!
    +

    退游小技巧,黑暗录卡:

    .st 力量:4d6k3 体质:4d6k3 敏捷:4d6k3 智力:4d6k3 感知:4d6k3 魅力:4d6k3 hp:10 hpmax: 10 熟练:2 运动:0 特技:0 巧手:0 隐匿:0 调查:0 奥秘:0 历史:0 自然:0 宗教:0 察觉:0 洞悉:0 驯养:0 医疗:0 生存:0 说服:0 欺诈:0 威吓:0 表演:0
    +

    代骰

    以上功能均可以通过附加 @其他人 来操作对方的属性值。

    .rc 检定

    .rc <属性> 进行检定。

    .rc <属性>豁免 进行豁免检定。

    .rc <表达式> 使用可带调整值的表达式进行检定,如 力量+3

    .rc (优势|劣势) <表达式> 进行优势或劣势检定。

    $ .rc 运动
    +<木落>的“运动”检定结果为:
    +8[1d20=8] + 6[运动=6] = 14
    +
    +$ .rc 优势 力量+4
    +<木落>的“力量+4”检定结果为:
    +17[{17 | 11 }] + 12[力量=12] + 4 = 33
    +
    +$ .rc 劣势 力量+4 推一下试试
    +<木落>的“推一下试试”检定结果为:
    +17[{17 | 18 }] + 12[力量=12] + 4 = 33
    +

    代骰

    以上功能均可以通过附加 @其他人 来使用对方的技能进行检定。

    奇妙运用

    你可以通过如下方式记录武器的熟练项。

    $ .st 长剑=4
    +<木落>的属性录入完成,本次录入了1条数据。
    +
    +$ .rc 长剑
    +<木落>的“长剑”检定(dnd5e)结果为:
    +16[1d20=16] + 4[长剑=4] = 20
    +

    .buff 临时属性

    .buff help 显示帮助。

    .buff 展示当前 buff。

    .buff clr 清除 buff。

    .buff del <属性1> <属性2> ... 删除指定属性的 buff。

    .buff <属性>:<值> 为指定属性设定 buff。

    .buff <属性>±<表达式> 修改指定属性的 buff。

    用于设置临时属性,例如虚假生命:

    $ .st hp:10
    +<木落>的dnd5e人物属性设置如下:
    +读入: hp:10
    +
    +$ .buff hp : 1d4+4
    +<木落>的dnd5e人物Buff属性设置如下:
    +读入: hp:7
    +
    +$ .st show hp
    +<木落>的个人属性为:
    +hp:17[10]
    +

    也可以用来设置其他属性:

    $ .st 力量:10  运动:0
    +<木落>的dnd5e人物属性设置如下:
    +读入: 力量:10, 运动:0[技能]
    +
    +$ .buff 力量:6
    +<木落>的dnd5e人物Buff属性设置如下:
    +读入: 力量:6
    +
    +$ .st show 力量 运动
    +<木落>的个人属性为:
    +力量:16[10] 运动:3[0]
    +

    临时的技能熟练(装备或法术效果):

    $ .st 力量:10  运动:0 熟练:3
    +<木落>的dnd5e人物属性设置如下:
    +读入: 力量:10, 运动:0[技能], 熟练:3
    +
    +$ .buff 运动*:0
    +<木落>的dnd5e人物Buff属性设置如下:
    +读入: 运动:0[技能, 熟练*]
    +
    +$ .st show 力量 运动
    +<木落>的个人属性为:
    +力量:16[10] 运动:6[0]
    +

    删除和清空

    $ .buff del hp
    +<木落>的如下buff属性被成功删除:hp,失败0项
    +
    +$ .buff clr
    +<木落>的BUFF数据已经清除,共计0条
    +

    代骰

    以上功能均可以通过附加 @其他人 来操作对方的 buff。

    .ss 法术位 (spell slots)

    .ss 查看当前法术位状况。

    .ss init 4 3 2 设置 1 2 3 环的法术位上限,以此类推,上不封顶。

    .ss set 2环 4 单独设置某一环的法术位上限,可用逗号分隔地连写多组。

    .ss clr 清除法术位设置。

    .ss rest 恢复所有法术位 (不回复 hp)。

    .ss 3环 +1 增加一个 3 环法术位(不会超过上限)。

    .ss lv3 +1 同上,另一种写法。

    .ss 3环 -1 消耗一个 3 环法术位。

    $ .ss init 3 4 5
    +为<木落>设置法术位: 1环3个, 2环4个, 3环5个
    +
    +$ .ss 1环 -1
    +<木落>的1环法术位消耗至2个,上限3个
    +
    +$ .ss
    +<木落>的法术位状况: 1环:2/3, 2环:4/4, 3环:5/5
    +
    +$ .ss rest
    +<木落>的法术位已经完全恢复
    +
    +$ .ss set 4环 3
    +为<木落>设置法术位: 4环3个
    +

    代骰

    以上功能均可以通过附加 @其他人 来操作对方的法术位。

    .cast 使用法术位

    .cast <环数> (<消耗数量>) 消耗指定数量的指定法术位,省略消耗数量时,消耗 1 个。

    $ .cast 2
    +<木落>的2环法术位消耗至3个,上限4个
    +

    代骰

    以上功能均可以通过附加 @其他人 来消耗对方的法术位。

    .longrest / .长休

    .longrest 恢复生命值和法术位。当前角色需已设定最大生命值且当前生命值大于 0。

    $ .长休
    +<木落>的长休: hp得到了恢复,现为12 法术位得到了恢复
    +
    +$ .长休
    +<木落>的长休: 没有设置hpmax,无法回复hp
    +

    代骰

    以上功能均可以通过附加 @其他人 来令对方进行长休。

    .ds / .死亡豁免

    .ds help 查看帮助。

    .ds 进行一次死亡豁免检定,此时角色 hp 必须为 0。

    .ds +1d4 检定时添加 1d4 的加值。

    .ds (成功|失败)±<变化值> 死亡豁免的成功或失败数量增加或减少指定值。成功和失败可分别简写为 sf

    .ds stat 查看当前死亡豁免情况。

    st 指令对 hp 的操作也会自动触发死亡豁免。

    $ .st hp:3 hpmax:12
    +<木落>的dnd5e人物属性设置如下:
    +读入: hp:3, hpmax:12
    +
    +$ .st hp-10
    +<木落>的dnd5e人物属性设置如下:
    +修改: hp(3 ➯ 0)
    +<木落>遭受了7点过量伤害,生命值降至0,陷入了昏迷!
    +
    +# 昏迷后被攻击:
    +<木落>的dnd5e人物属性设置如下:
    +修改: hp(0 ➯ 0)
    +<木落>在昏迷状态下遭受了1点过量伤害,死亡豁免失败+1!
    +
    +# 死亡
    +<木落>的死亡豁免检定: [1d20=3]=3 有些不妙!死亡豁免失败+1
    +你获得了3次死亡豁免检定失败,不幸去世了!
    +
    +# 医学奇迹:
    +<木落>的死亡豁免检定: [1d20=20]=20 你觉得你还可以抢救一下!HP回复1点!
    +

    代骰

    以上功能均可以通过附加 @其他人 来令对方进行死亡豁免。

    上次编辑于:
    + + + diff --git a/use/faq.html b/use/faq.html new file mode 100644 index 000000000..1d4eea3f2 --- /dev/null +++ b/use/faq.html @@ -0,0 +1,59 @@ + + + + + + + + 常见问题 | 海豹手册 + + + + + + +
    跳至主要內容

    常见问题

    大约 8 分钟

    常见问题

    本节内容

    本节将提供一些常见问题的解决方式,方便快速解决。如果你的问题并没有在这里得到答案,欢迎加入官方群寻求帮助。

    为啥海豹不理我?

    可能性一:你尝试私聊海豹核心,但并非是海豹账号的好友;

    可能性二:如果是 QQ 平台,骰子账号遭到了风控;

    可能性三:你使用的指令/扩展被关闭了。例如当 coc7 扩展关闭时,sc 等指令是不会回应的;这时需要执行 .ext coc7 on 开启对应扩展。

    如果你是骰主,可以在 WebUI 查看日志,以确定海豹核心是否收到了指令、是否正确做出了响应。

    如果你无法理解发生了什么,或者需要更多帮助,欢迎加入官方答疑群。

    可以关闭暗骰吗?

    海豹核心不支持关闭暗骰。但是,海豹不会与非好友帐号私聊,所以不必担心暗骰会影响帐号安全。

    退群指令?

    以下指令均可:

    .bot bye
    +.bot exit
    +.dismiss
    +

    骰主也可以 WebUI 的群组管理中操作退群。

    登录服务器开浏览器使用好麻烦!能远程直接访问 WebUI 吗?

    对于大部分有公网 IP 的服务器都可以,但是需要你进行一些配置。

    1. 在 WebUI 修改配置,让海豹 WebUI 运行在公开端口而不是本地端口;

    2. 在基本设置中设置 WebUI 访问密码;

    3. 修改你服务器的防火墙(根据服务提供商,也可能称为「安全组」等),以允许远程 TCP 访问海豹端口。

      1. 如果你使用的是 Oracle Linux 或类似服务器,还需要在服务器系统中放行端口:

        sudo iptables -I INPUT -s 0.0.0.0/0 -p tcp --dport 3211  -j ACCEPT
        +
      2. 如果你使用 Windows 服务器,需要关闭系统内置防火墙或设置端口放行。

    4. 使用 http://<服务器IP地址>:3211 访问 WebUI。

    在服务器上登录时说「需要在同一 WIFI 下扫码」怎么办

    首先确认使用安卓协议,并且输入密码登录(不要使用无密码的扫码登录,现在已经很不好用了)。

    有几种办法:

    1. [首选] 让手机跟服务器真的处于同一个网络

    1. 配置防火墙

      配置你的服务器,允许外部访问 13325 端口。

      详情

      以腾讯云轻量服务器为例,点入「服务器」,再点击卡片。

      服务器配置
      服务器配置

      进入后点击「防火墙」,随后「添加规则」,这里选择 TCP 协议,端口输入 13325(演示图片中为 13326),点击确定。

      放通防火墙
      放通防火墙

      搞定,其他服务商大同小异。

      特别的,如果是 Windows Server 2012R2 及以上系统,请再额外关闭系统防火墙或设置规则放行。具体做法搜索关键字 Windows server 关闭防火墙

    2. 服务器端运行工具

    在海豹骰中集成了 socks 工具,点击图中「辅助工具 -13325 端口」按钮。

    登录弹窗
    登录弹窗

    稍等片刻后,出现如下窗口。

    辅助工具弹窗
    辅助工具弹窗

    点击 OK。

    运行起来之后,显示一串这样的文本:

    http/socks5简易工具©sealdice.com
    +将在服务器上开启一个 socks5 服务,端口 13325,默认持续时长为 25 分钟
    +将在服务器上开启一个 http 代理服务,端口 13326,默认持续时长为 25 分钟
    +
    +可能的公网 IP:  12.34.56.78
    +请于服务器管理面板放行你要用的端口 (一般为 13325 即 socks),协议 TCP
    +如果是 Windows Server 2012R2 及以上系统,请再额外关闭系统防火墙或设置规则放行
    +
    +正在启动服务:0.0.0.0:13326
    +正在启动服务:0.0.0.0:13325
    +
    1. 手机端连接

    你需要一个代理软件,比如 postern,如果可能的话你可以从 Google Play 下载,你也可以在用户群里找到它。

    然后在你将要扫码的手机上启动它,弹出的窗口都点击确定

    点击默认存在在的代理,将他删除,然后点击添加代理服务器,按照下图填写。

    postern 配置代理服务器
    postern 配置代理服务器

    保存后点击左上角 Postern 的图标,点击配置规则,类似前文删除代理,删除掉默认的规则 1 和规则 2,然后点击添加规则。如图选择匹配类型和动作,之后会自动填入代理/代理组。

    postern 配置规则
    postern 配置规则

    保存后重启软件。

    现在就配置完成了。手机上打开浏览器进入 https://ip138.com/open in new window,如果显示的 IP 地址和服务器一样,那么配置正确。

    如果打不开网页或提示「当前 WiFi 不能访问网络」,可能是防火墙没配置好。如果 IP 不一样,可能是代理没配置上。

    如果你使用 iOS 手机,可以使用 Potatso 替代 Postern。

    现在可以进入海豹 WebUI,重新进行登录流程了。如果以后再出类似情况,直接重复步骤 2、3 即可。

    2. 本机上完成扫码登录,然后将登录过的配置文件覆盖到服务器上

    具体目录是 data/default/extra/go-cqhttp-qq12345

    当然如果你没做过自定义配置,可以整个复制。

    使用密码登录,重试 3 次左右,有概率直接上号

    AT 其他骰子做检定的时候,海豹也会回应,怎么办

    使用这个指令将其他骰子进行标记:

    .botlist add @骰子A @骰子B
    +

    会有如下效果:

    1. 当有人@该骰发指令,海豹不会做出回应
    2. 该骰发出的指令和消息,海豹不会回应,这可以有效避免关键词触发的无限复读

    为啥好像反应慢一拍

    首先确定是否为网络问题。如果你是骰主,可在后台的日志中检查收到指令的实际时间和发出响应的实际时间。

    对于 QQ 平台,发送消息会有随机延迟,这是为了防止引起企鹅的警惕。随机延迟间隔 0.4 - 0.9 秒,可以在设置中调整。

    我希望在我的骰子进群或者被踢出时通知我

    在 WebUI 的「综合设置 - 基本设置」页面。在「消息通知列表」中可以添加消息通知的接收者。支持个人、群聊、电子邮箱作为接收者。

    在海豹核心发生 收到加群邀请、收到好友邀请、进入群组、被踢出群、被禁言、自动激活、指令退群 时,会给消息通知列表的各个接收者发送通知。

    支持 QQ 频道吗?

    支持,默认不记录频道消息,也不自动开启。邀请入频道后 @骰子 .bot on 即可开启。

    在 WebUI 的「综合设置 - 基本设置」可以进行配置。特别的,骰子不会自动同意频道邀请,需要骰主上号同意。

    怎么同时运行多个海豹?

    Windows 系统

    在 Windows 系统运行两个是很简单的:

    我们假设你的第一只海豹已经配置好了,当前正在运行,端口为默认的 3211。

    现在,你需要使用安装包,在另一个目录再解压一份海豹核心。

    进入新的目录,像运行第一只海豹一样直接双击执行。它会自动检测端口,因为 3211 端口已经被占用,会弹窗询问是否更换端口,直接点是就可以了。

    如果你想在 Windows 系统指定端口,需要一点操作

    在每一个你需要指定端口的海豹核心目录下创建一个 启动.cmd,用文本编辑器编辑,内容为:

    sealdice-core --address=0.0.0.0:<端口号> -m
    +

    其中的 <端口号> 替换成你希望指定的端口号。然后双击 启动.cmd 运行。

    你只需在第一次启动时这样做,这个端口号会被写入配置中供后续启动使用。

    除 Android 外的其他系统

    通常来说,你在这些系统上是通过命令行(终端)来启动海豹核心。

    将安装包解压到你为新海豹准备的目录,在初次启动海豹时,使用以下命令:

    ./sealdice-core --address=127.0.0.1:<端口号>
    +

    将在你系统上,占用指定的端口号,启动一个不向互联网公开的新海豹核心。

    我机器上启动非常慢,而且托盘点不出来右键菜单?

    请确认你的硬盘状态是否还好,一般来说是磁盘 I/O 性能过低导致的,常见于软路由设备。

    这种情况可以删除 data/helpdoc/ 目录来提速,代价是无法使用查询指令。

    能在手机上搭建吗?

    手机海豹已经公测啦!详见 搭建 章节。

    我是 Master,怎么帮人取出 Log?

    详见 这一章节

    骰主具有很大的权限,所以还请各位选择自己信任的骰主,也请各位骰主谨慎对待大家的信任!

    我忘了 WebUI 密码

    首先彻底关闭海豹。

    用文本编辑器打开 dice/dice.yaml,删除 uiPasswordHash 一行,保存。

    重新启动海豹。

    上次编辑于:
    + + + diff --git a/use/fun.html b/use/fun.html new file mode 100644 index 000000000..9c0dbec49 --- /dev/null +++ b/use/fun.html @@ -0,0 +1,78 @@ + + + + + + + + 娱乐 | 海豹手册 + + + + + + +
    跳至主要內容

    娱乐

    大约 3 分钟

    娱乐

    本节内容

    本节将展示海豹的「娱乐」扩展提供的指令,也包括若干不完整支持的其他 TRPG 规则。请善用侧边栏和搜索,按需阅读文档。

    .jrrp 今日人品

    .jrrp

    今日人品是一个每个用户独立、每天刷新的 D100 随机数。你可通过 自定义文案 编写对它的解读。

    .gugu 人工智能鸽子

    .gugu.咕咕

    $ .gugu
    +🕊️:今天发版本,领导说发不完不让走
    +

    .gugu 来源 查看鸽子背后的故事。

    $ .gugu 来源
    +🕊️: 前往了一个以前捕鲸的小岛度假~这里人很亲切!但是吃了这里的鱼肉料理之后有点晕晕的诶...想到前几天<木落>的短信,还是别追究他为什么不在了。
    +    ——鹊鹊结合实际经历创作
    +

    .jsr 不重复骰点

    .jsr <次数># <面数> (<原因>) 投掷指定面数的骰子指定次数,使每一次的结果都不相同。

    $ .jsr 5# 100
    +<木落>掷骰10次:
    +D100=6
    +D100=71
    +D100=53
    +D100=31
    +D100=2
    +

    以这种方式骰出的点数会自动成为一个骰池,供 drl 指令使用。

    .drl 骰池抽取

    骰池(Draw Lot)是一组来自相同面数骰子、出目互不相同的骰点,支持每次抽取一个。骰池是每个群组共用的。

    .drl new <个数># <面数> 创建一个指定数量、指定面数的骰池。

    .drl / .drlh 从当前骰池抽取一个数值,后者将结果私聊发送。

    $ .drl
    +当前群组无骰池,请使用.drl new创建一个。
    +
    +$ .drl new 10# 1000
    +创建骰池成功,骰子面数1000,可抽取10次。
    +
    +$ .drl
    +<木落>掷出了 D1000=568
    +
    +$ .drl # 第 10 次
    +<木落>掷出了 D1000=539
    +骰池已经抽空,现在关闭。
    +

    .text 文本模板测试

    .text <文本模板>

    骰子会将模板内容解析后返回,其中含有的表达式和变量都将被求值。

    $ .text 看看手气 {1d16}
    +看看手气 2
    +

    额外 TRPG 规则支持

    .ww WOD 规则骰点

    .ww <表达式> 骰点,表达式用法请参考 核心指令 节。

    特别地,使用 ww 指令时允许省略加骰线 aY,这时将使用默认值进行骰点。

    $ .ww 5
    +<木落>掷出了 5a10=[成功0/5 {6,2,2,7,4}]=0
    +

    .ww set <默认值> 设定默认值,默认值可以由 加骰线 aY、骰子面数 mZ、成功线 kN 中的部分任意组合。默认值的生效范围是当前群组。

    .ww set clr 重置默认值为:加骰线 10、面数 10、成功线 8,即 a10m10k8

    $ .ww set a6m10k9
    +成功线k: 已修改为9
    +骰子面数m: 已修改为10
    +加骰线a: 已修改为6
    +
    +$ .ww 5
    +<木落>掷出了 5a6=[成功1/11 轮数:4 {<9*>,5,<6>,3,3},{<6>,<6>},{<6>,<7>},{5,4}]=1
    +
    +$ .ww set clr
    +骰池设定已恢复默认
    +

    .dx 双重十字规则骰点

    .dx <表达式> 骰点,表达式用法请参考 核心指令 节。

    .ek 共鸣性怪异规则骰点

    .ek <技能名>(+<奖励骰>) (<判定线>)

    .ekgen 共鸣性怪异规则属性生成

    .ekgen (<数量>) 生成指定数量的共鸣性怪异角色属性。

    .rsr 暗影狂奔规则骰点

    .rsr <骰数> 骰点。

    骰指定数量的 D6。每有一个骰子骰出 5 或 6 称为 1 成功度。

    如果超过半数的骰子骰出 1,称为这次骰点「失误」;失误的同时成功度为 0,称为「严重失误」。

    上次编辑于:
    + + + diff --git a/use/index.html b/use/index.html new file mode 100644 index 000000000..5dd694024 --- /dev/null +++ b/use/index.html @@ -0,0 +1,40 @@ + + + + + + + + 使用 | 海豹手册 + + + + + + + + + + diff --git a/use/introduce.html b/use/introduce.html new file mode 100644 index 000000000..5f8cba7fd --- /dev/null +++ b/use/introduce.html @@ -0,0 +1,46 @@ + + + + + + + + 基础概念 | 海豹手册 + + + + + + +
    跳至主要內容

    基础概念

    大约 5 分钟

    基础概念

    本节内容

    这里讲的是使用海豹核心的相关事项,如果要了解如何搭建和部署骰子,请参考 部署 - 快速开始

    以下内容针对从未接触过骰子的用户准备。如果你已经有使用其他骰系的经验,可以 跳过本节

    什么是骰子?

    骰子这里特指在即时聊天软件(如 QQ、KOOK、Discord)中为 TRPG(跑团)玩家提供方便的机器人。顾名思义,骰子提供各种基于各种跑团规则(如 CoC、D&D)的骰点服务,
    同时还包括技能检定、日志记录(Log)等功能。一些骰子服务,包括 SealDice,还提供一系列的自定义和娱乐功能。

    获取和使用

    最简单的方法就是自己 搭建 一个海豹骰自用(私骰),也可以从 SealDice 海豹骰公骰登记表open in new window 中寻找一个面向公众提供服务的骰子(公骰)。

    一般而言,公骰是免费的。但他们的维护者(骰主)一般都要求用户严格遵循使用协议,使用前请使用 .help 协议 指令了解你需要注意哪些事项。

    QQ 骰子的使用注意项

    QQ 并未提供公开的机器人接口,因此机器人只能使用第三方软件作为假用户接入。QQ 可能会检测到这些机器人,将它们视为诈骗而予以警告、封禁,甚至永久冻结。

    因此,在 QQ 使用骰子有许多约定俗成的规则,例如必须使用指令使骰子退群,而严禁直接移出群聊。为了尊重骰主的劳动成果,你应该遵守这些规则。

    在 QQ 上,你需要和骰子成为好友,然后拉入群组使用;在其他平台,一般使用邀请链接或者其他方式(详细操作请查看对应平台的相关使用文档)将机器人邀请进服务器、频道,或群组。之后,你可以通过触发 指令回复自定义回复 来使用骰子机器人了。

    指令回复

    指令是和骰子互动的基本方式。一个指令由指令前缀、指令名、指令参数、指令标志组成。

    指令前缀

    为了避免意外触发,指令前面都带有前缀,如 .help 协议 中的 .。按照习惯,指令前缀一般是便于输入的中英文句号,通常是 .

    海豹核心提供了自定义指令前缀功能,因此,其他符号如 /,甚至一段话 哦,我的骰子, 都可以被用作前缀。如果你使用公骰,请注意查阅它的使用说明。

    指令名

    .help 协议 为例,其中的 help 就是指令名。指令可以有别名,例如 查询 就是 find 的别名。

    指令的行为与预期不符?

    海豹通过 扩展 来组织功能和指令,指令名只要求在同一扩展内不重复。

    如果你发现指令的回复与预期不符合,有可能是没有开启正确的扩展,从而执行了来自其他扩展的指令。

    例如,CoC 和 D&D 都存在掷骰检定指令 rc,你需要通过扩展管理指令 ext 来开启其中一个、关闭另一个,以控制指令的行为。

    指令参数

    .help 协议 为例,其中 协议 就是指令参数,参数提供指令所需要的信息。

    虽然海豹在一定程度上可以兼容 .help协议 这种情况,但是在指令名与参数、参数与参数之间添加空格能保证海豹骰识别指令时准确无误,避免出现预期外情况。

    获取指令帮助

    多数情况下,第一个参数为 help,或者没有正确提供指令所需参数时会返回指令的帮助信息。例如,下面是 find 指令返回的帮助信息:

    查询指令,通常使用全文搜索(x86 版)或快速查询(arm, 移动版)
    +.find/查询 <关键字>      // 查找文档。关键字可以多个,用空格分割
    +.find#<分组> <关键字>    // 查找指定分组下的文档。关键字可以多个,用空格分割
    +.find <数字 ID>          // 显示该 ID 的词条
    +.find --rand           // 显示随机词条
    +.find <关键字> --num=10 // 需要更多结果
    +

    依照惯例,帮助说明中的的一些符号有特定含义,说明如下:

    1. <关键字> 的尖括号 <> 表示你应以相应内容替换此处内容。

      正常的用例:.find 火球术
      错误的用例:.find <火球术>

    2. [关键字](关键字) 的括号 [] () 表示此参数可以被省略。

    3. (关键字1|关键字2) 的圆括号 () 搭配竖线 | 表示在所列各项中选择一个。

    指令标志

    标志(flag)和参数相似,但不同于参数往往需要处于按照一定的顺序出现,标志可以无序排列。标志通过特定的关键字(key)来辅助识别,一般形式为 --key=value 或者 --key

    注意

    一些系统(如 iOS)会将两个连字符(hyphen)-- 自动转换为短画线(en dash),输入 flag 时请注意辨别。

    自定义回复

    自定义回复 形式自由,触发机制多样(关键字、正则表达式等),并且能配合海豹核心独特的变量系统使用。

    海豹核心没有预置的自定义回复,完全由骰主自行设定。因此每个骰子使用自定义回复的方法可能完全不同。

    如果你使用公骰,请参阅相应的使用文档以了解骰主设定的自定义回复。

    上次编辑于:
    + + + diff --git a/use/log.html b/use/log.html new file mode 100644 index 000000000..0d1512802 --- /dev/null +++ b/use/log.html @@ -0,0 +1,40 @@ + + + + + + + + 日志 | 海豹手册 + + + + + + +
    跳至主要內容

    日志

    大约 4 分钟

    日志

    本节内容

    本节将展示记录跑团日志相关的指令,请善用侧边栏和搜索,按需阅读文档。

    .log 跑团日志

    记录日志

    对于每个群组,有若干个日志记录和一个当前日志。日志记录是本群记录过的所有日志。当前日志指向本群的其中一个日志记录,可以为空,但不会存在多个。

    注意

    海豹核心的日志记录只在骰子启用时进行。

    即,如果你在一个群中通过 .bot off 关闭了骰子,即使有记录中的日志,也会暂停。

    .log new <日志名>

    新建一份日志,并且开始记录。

    如果本群的当前日志不为空,则不能创建。如果创建成功,将本群的当前日志设定成新日志。

    .log on (<日志名>)

    如果不指定日志名,如果当前日志存在,则开始记录本群的当前日志。

    如果指定日志名,则开始记录指定的日志,当前日志设定为指定的日志。

    .log off

    暂停记录当前日志。

    .log halt / .log end

    停止记录当前日志,将本群的当前日志设定为空。

    如果使用的是 .log end,还会向海豹日志染色器上传日志,并返回一个获取链接。

    停止的日志并不会丢失,仍然存在于本群的日志记录中,可以使用 .log on <日志名> 继续记录。

    数据统计

    .log stat (<日志名>) / .stat log (<日志名>)

    统计指定日志中检定的成功失败数量,与角色的属性数值变化。

    如果本群的当前日志不为空,可以省略日志名,统计当前日志。

    管理日志

    .log list

    列出本群的所有日志记录。

    .log get <日志名>

    重新获取指定日志的染色器链接。

    .log del <日志名>

    删除指定日志。

    注意

    删除的日志在海豹核心中永远失去,无法再继续记录。

    如果已经上传到染色器,该链接仍然可以使用。你也可以在海豹核心中的 data/default/log-exports/ 目录寻找日志的文件快照。

    骰主代取 Log

    对于已经解散/退出的群聊,如果还想要取出其中的日志,需要知道对应的群号。

    你可在任意有 Master 权限的交互平台做以下操作:

    首先使用 .log list <群号> 列出该群的所有日志记录。

    然后,使用 .log masterget <群号> <日志名> 获取指定日志记录的染色器链接。

    UI 中管理跑团 Log

    作为骰主,你也可以在管理后台的 扩展功能 - 跑团日志 界面,管理所有群的所有日志。

    .ob 旁观

    .ob

    让使用者成为观众。

    这个指令的作用实际是给使用者的名字上前缀 ob。不会造成其他的效果。

    对于海豹日志染色器,名字前缀有 ob 的用户发言可以被一键去除。

    .ob exit

    如果使用者的名字有ob前缀,这个指令将其去除。

    .sn 自动群名片

    开启后,当用户角色卡的数值变化时,自动更新用户的群名片。

    更改其他玩家的名片,需要骰子账号有适当的权限。

    对于 QQ,这个权限是群主或群管理员。

    预设模板

    .sn coc / .sn cocL角色名 SAN70 HP14/14 DEX60

    克苏鲁的呼唤常用格式,使用 cocL 以在名片中使用小写字母。

    .sn dnd角色名 HP10/10 AC8 DC6 PW8

    龙与地下城常用格式。

    .sn none角色名

    空白名片,当角色名变化时也会自动更新。

    扩展规则

    有些插件提供的扩展规则也定义了名片模板。对于这样的扩展规则,可以使用 .sn <规则名> 使用其模板。

    自定义模板

    .sn expr <模板>

    在模板中使用变量以自动更新。

    例如,CoC 模板的等价写法是 .sn expr {$t玩家_RAW} SAN{san} HP{hp}/{hpmax} DEX{dex}

    关闭自动修改

    .sn off

    .hiy 数据统计

    海豹核心不提供统计整体成功率的功能。

    上次编辑于:
    + + + diff --git a/use/other_rules.html b/use/other_rules.html new file mode 100644 index 000000000..f73a67711 --- /dev/null +++ b/use/other_rules.html @@ -0,0 +1,40 @@ + + + + + + + + 其它规则支持 | 海豹手册 + + + + + + +
    跳至主要內容

    其它规则支持

    大约 2 分钟

    其它规则支持

    本节内容

    本节是海豹支持的其他 TRPG 规则的索引。

    这些规则因指令数量少或仍在预览阶段的原因,未被单独作为扩展。下面将引导你跳转到对应规则的具体命令支持页。

    绿色三角洲 Delta Green

    「绿色三角洲」(Delta Green,简称 DG)是克苏鲁的呼唤(CoC)的拓展规则,同时也是作为游戏核心的秘密组织的名字。绿色三角洲是保护人类免遭旧日支配者威胁的「抗神组织」,其队员(特工)大多在政府部门工作,组织本身是非官方且非法的存在。他们的敌人不仅是旧日支配者的眷族或崇拜者,同时也包括操弄禁忌知识的人类势力。

    参阅 克苏鲁的呼唤 7 版 # 设置房规,使用 .setcoc dg 切换到 DG 支持。

    黑暗世界 World of Darkness

    「黑暗世界」(World of Darkness,简称 WOD)是一款超自然题材的 TRPG 游戏。在这个世界中,所有阴谋论都是真的,都市传说不再是什么可以轻松无视的「故事」。你可能会从镜子里召唤出血腥玛丽,也可能登上电梯后不慎消失在超市的某个漆黑楼层中。

    参阅 娱乐 # WOD 规则骰点

    双重十字 Double Cross

    「双重十字」(Double Cross,简称 DX)是一款日系超能力战斗 TRPG 游戏。在病毒感染了绝大多数人类使得他们进化为超能力者的时代,PL 在 GM 的指引下为了守护重要的人或者日常生活而战斗。

    参阅 娱乐 # 双重十字规则骰点

    暗影狂奔 Shadowrun

    「暗影狂奔」(Shadowrun,简称 SR)是一款科学奇幻 TRPG 游戏,背景设定在近未来的灵气复苏赛博朋克虚构世界中。

    参阅 娱乐 # 暗影狂奔规则骰点

    共鸣性怪异 Emoklore

    与我们所生活的现实颇为相似的另一个世界。

    超常的存在——「怪异」——确确实实地存在于人们身边的世界。

    这就是《共鸣性怪异 TRPG》的舞台。

    参阅 娱乐 # 共鸣性怪异规则骰点

    更多规则

    除了上述由官方提供支持的规则之外,海豹社区还通过插件的形式为其它规则提供了支持,向你所使用的骰子主人请求安装相应插件吧。

    参阅 配置 - JavaScript 插件,在插件仓库中获取相应插件。

    上次编辑于:
    + + + diff --git a/use/quick-start.html b/use/quick-start.html new file mode 100644 index 000000000..a6fc65ad6 --- /dev/null +++ b/use/quick-start.html @@ -0,0 +1,40 @@ + + + + + + + + 快速上手 | 海豹手册 + + + + + + +
    跳至主要內容

    快速上手

    大约 4 分钟

    快速上手

    本节内容

    本节将展示 TRPG 跑团过程玩家使用海豹骰的常用指令和一般流程,请善用搜索,按需阅读文档。

    常用指令速查

    核心指令
    动作指令
    移出骰子.bot bye / .dismiss
    开关骰子.bot on/off
    开关自定义回复.reply on/off
    新建日志.log new <日志名>
    暂停/恢复日志记录.log off/on
    结束并获取日志.log end
    重新获取日志.log get <日志名>
    掷骰
    动作指令
    掷骰.r <x>d<y>,并有诸多扩展写法
    检定.ra <技能>
    暗骰 / 暗中检定.rh <x>d<y> / .rah <技能>
    代替检定.ra <技能> @代替目标
    设定默认骰子面数.set <面数>
    角色卡
    动作指令
    新建空白卡.pc new <角色名>
    修改角色名.nn <角色名>
    录入数据.st <属性><值>
    列出数据.st show (<属性>)
    列出角色卡.pc list
    绑定角色卡.pc tag <角色名>
    删除角色卡.pc del <角色名>
    自动名片.sn (参考说明)
    CoC 7th
    动作指令
    切换到 CoC 规则.set coc
    生成随机属性数值.coc <数量>
    理智检定.pc new <角色名>
    对抗检定.rav <自身技能> <对手技能> @对手
    奖励骰与惩罚骰.ra (b|p)<数量> <技能>
    疯狂症状.ti 即时疯狂症状,.li 总结性疯狂症状
    技能成长.en <技能>
    切换房规.setcoc details 列出房规,.setcoc <序号> 设定房规
    D&D 5E
    动作指令
    切换到 D&D 规则.set dnd
    生成随机属性值.dnd <数量>
    优势/劣势掷骰.r d(优势|劣势)
    检定.rc [优势|劣势] <技能>[+<调整值>]
    先攻.ri (<角色名>)
    先攻列表.init
    随机 D&D 名字.namednd <种族> <数量>
    其它
    动作指令
    给骰主发送消息.send <消息>
    获取帮助.help <指令名称>
    搜索词条.find <关键字>
    暗影狂奔掷骰.rsr
    WoD 掷骰.ww
    双十字掷骰.dx
    共鸣性怪异掷骰 / 生成属性.ek / .ekgen

    通常流程

    注意

    这一段落是以玩家视角而非主持人视角编写的。

    如果你想主持游戏,我们推荐你较为完整地了解海豹核心提供的各种指令,尤其是 CoC 指令与 D&D 指令相冲突的部分。

    游戏主持人邀请你进入群聊(根据平台不同,也可能是频道、服务器等,本节以群聊代称)。

    尊重主持人与其他玩家

    如果你对于玩法还不熟悉,在主持人要求你使用骰子时才动作,或者在动作前请求主持人的许可。

    你可能用到以下指令:

    • nn 命名角色卡
    • st 设置和修改角色卡属性
    • sn 设置自动名片
    • r 掷骰:需要产生一个随机数的时候,例如伤害值
    • ra/rc 检定:你使用一个技能
    • 根据你使用的规则,你还可能用到其他指令,请参考下面的段落。

    如果还需要使用这张人物卡,并且不在这个群聊使用:

    • pc save 保存到角色卡列表
    • 你还会用到其他指令才能在其他群聊使用这张角色卡。参考 .pc help

    秘密团

    按照主持人的要求,你需要在不同群聊中使用同一角色卡,并且需要数据互相同步。

    • pc new <角色名> 创建一张可以跨群聊使用的角色卡并绑定到当前群聊
    • pc tag <角色名> 将指定角色卡绑定到当前群聊

    通过这种方式,你可在不同群聊之间使用同一角色卡。在任意群聊产生的数据修改都会自动同步到其他绑定的群聊。

    进行 CoC 游戏

    创作角色卡

    .coc <数量> 生成指定数量的随机属性。

    理智检定 San Check

    .sc <成功时失去理智>/<失败时失去理智>

    例如:.sc 0/1 .sc 1/1d4 .sc 1d10/1d100

    抽取疯狂症状

    .ti 抽取即时疯狂症状;

    或者,在主持人要求时 .li 抽取总结性疯狂症状。

    技能成长

    .en <技能> 对技能进行一次成长。

    进行 D&D 游戏

    创作角色卡

    .dnd <数量> 生成指定数量的随机属性。

    设定先攻值

    .ri <先攻值> 设定自己的先攻值。

    先攻值支持以下三种写法:

    1. 12 直接写数值
    2. +2 写调整值,表示 D20+2
    3. =D20+2 写骰点式

    设定临时属性

    .buff <参数> 设定临时属性。参数的写法参考角色数据录入的 st 指令。

    法术位

    .ss 指令设定角色的法术位。请使用 .ss help 查看用法。

    .cast 指令使用法术。请使用 .cast help 查看用法。

    长休

    .longrest 指令使角色进行长休。

    死亡豁免

    .ds 指令进行死亡豁免。请使用 .ds help 查看用法。

    上次编辑于:
    + + + diff --git a/use/story.html b/use/story.html new file mode 100644 index 000000000..f8e417cf4 --- /dev/null +++ b/use/story.html @@ -0,0 +1,42 @@ + + + + + + + + 故事 | 海豹手册 + + + + + + +
    跳至主要內容

    故事

    大约 1 分钟

    故事

    本节内容

    本节将展示对故事发展有帮助的一些指令,请善用侧边栏和搜索,按需阅读文档。

    .name 随机名字

    .name [cn|en|jp] [<数量>] [男|女]

    抽取随机名字。

    可以指定语言,如果不指定,默认是中文。可以指定数量,如果不指定,默认是 5 个。可以指定性别,如果不指定,默认随机生成。

    .namednd 随机 DND 名字

    .namednd <种族> [<数量>]

    抽取指定种族的随机名字。可以指定数量,默认是 5 个。

    可以选用的种族
    • 达马拉人
    • 卡林珊人
    • 莱瑟曼人
    • 受国人
    • 精灵
    • 矮人
    • 兽人
    • 海族
    • 地精

    .who 随机排列顺序

    .who <排列元素>...

    随机打乱提供的元素。

    $ .who 1 2 3 4 5 6 7 8 9
    +打乱顺序: 9, 7, 6, 3, 1, 4, 8, 5, 2
    +

    .modu 魔都模组查询

    感谢魔都的章鱼站长给予的许可和支持!

    .modu search <关键字> (<页码>)

    使用关键字进行搜索。

    .modu rec <关键字> (<页码>)

    使用关键字对编辑推荐模组进行搜索。

    .modu author <关键字> (<页码>)

    搜索作者符合关键字的模组。

    .modu luck (<页码>)

    查看编辑推荐。

    .modu get <编号>

    查看指定模组的详细内容。

    .modu roll

    随机抽取一个模组。

    .modu help

    显示帮助。

    上次编辑于:
    + + +