From f9ab7131416c18850212834023b34cb9ad2c3e96 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sun, 19 Apr 2026 21:11:08 +0800 Subject: [PATCH 1/5] :bug: logging Signed-off-by: Daniel <845765@qq.com> --- kernel/util/working.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/util/working.go b/kernel/util/working.go index ddab533ef..2563e5317 100644 --- a/kernel/util/working.go +++ b/kernel/util/working.go @@ -431,18 +431,18 @@ func initPathDir() { plugins := filepath.Join(DataDir, "plugins") if err := os.MkdirAll(plugins, 0755); err != nil && !os.IsExist(err) { - logging.LogFatalf(logging.ExitCodeInitWorkspaceErr, "create data plugins folder [%s] failed: %s", widgets, err) + logging.LogFatalf(logging.ExitCodeInitWorkspaceErr, "create data plugins folder [%s] failed: %s", plugins, err) } emojis := filepath.Join(DataDir, "emojis") if err := os.MkdirAll(emojis, 0755); err != nil && !os.IsExist(err) { - logging.LogFatalf(logging.ExitCodeInitWorkspaceErr, "create data emojis folder [%s] failed: %s", widgets, err) + logging.LogFatalf(logging.ExitCodeInitWorkspaceErr, "create data emojis folder [%s] failed: %s", emojis, err) } // Support directly access `data/public/*` contents via URL link https://github.com/siyuan-note/siyuan/issues/8593 public := filepath.Join(DataDir, "public") if err := os.MkdirAll(public, 0755); err != nil && !os.IsExist(err) { - logging.LogFatalf(logging.ExitCodeInitWorkspaceErr, "create data public folder [%s] failed: %s", widgets, err) + logging.LogFatalf(logging.ExitCodeInitWorkspaceErr, "create data public folder [%s] failed: %s", public, err) } } From b40541dfda705d4a00e32a69432dfafacfc59b29 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sun, 19 Apr 2026 21:43:01 +0800 Subject: [PATCH 2/5] :memo: Update changelogs Signed-off-by: Daniel <845765@qq.com> --- app/changelogs/v3.6.5/v3.6.5.md | 46 ++++++++++++++++++++++++++ app/changelogs/v3.6.5/v3.6.5_zh_CHT.md | 46 ++++++++++++++++++++++++++ app/changelogs/v3.6.5/v3.6.5_zh_CN.md | 46 ++++++++++++++++++++++++++ 3 files changed, 138 insertions(+) create mode 100644 app/changelogs/v3.6.5/v3.6.5.md create mode 100644 app/changelogs/v3.6.5/v3.6.5_zh_CHT.md create mode 100644 app/changelogs/v3.6.5/v3.6.5_zh_CN.md diff --git a/app/changelogs/v3.6.5/v3.6.5.md b/app/changelogs/v3.6.5/v3.6.5.md new file mode 100644 index 000000000..dd71e8f54 --- /dev/null +++ b/app/changelogs/v3.6.5/v3.6.5.md @@ -0,0 +1,46 @@ +## Overview + +This version improves some details. + +## Changelogs + +Below are the detailed changes in this version. + +### Enhancement + +* [Treat the renaming of tags, bookmarks and assets as a data history `Replace` operation](https://github.com/siyuan-note/siyuan/issues/17407) +* [Improve inline text appearance on mobile](https://github.com/siyuan-note/siyuan/issues/17477) +* [Editor toolbar does not hide when clicking outside it on mobile](https://github.com/siyuan-note/siyuan/issues/17478) +* [Improve task list item markdown indexing for `data-task` marker](https://github.com/siyuan-note/siyuan/issues/17502) +* [Improve decoding of anchor text when pasting hyperlinks](https://github.com/siyuan-note/siyuan/issues/17513) +* [Improve `kbd` font `--b3-font-family-kbd`](https://github.com/siyuan-note/siyuan/issues/17517) +* [Change default Redo shortcut to `⇧⌘Z` on macOS](https://github.com/siyuan-note/siyuan/issues/17518) +* [Improve cursor positioning after Undo in tables](https://github.com/siyuan-note/siyuan/issues/17532) +* [Optimize code block line number rendering for better performance](https://github.com/siyuan-note/siyuan/issues/17542) +* [Improve data indexing](https://github.com/siyuan-note/siyuan/issues/17543) + +### Bugfix + +* [Click the editor may cause it to jump to the top on iOS](https://github.com/siyuan-note/siyuan/issues/17454) +* [The IFrame block cannot be edited](https://github.com/siyuan-note/siyuan/issues/17486) +* [Pasting links into database assets fields creates duplicate entries](https://github.com/siyuan-note/siyuan/issues/17492) +* [The outline does not refresh automatically](https://github.com/siyuan-note/siyuan/issues/17493) +* [Events are missing in the cloud configuration interface](https://github.com/siyuan-note/siyuan/issues/17495) +* [A blank area appears after splitting the tabs](https://github.com/siyuan-note/siyuan/issues/17499) +* [Fix some security vulnerabilities](https://github.com/siyuan-note/siyuan/issues/17503) +* [Missing `window.siyuan.config` at startup causes an error](https://github.com/siyuan-note/siyuan/issues/17508) +* [The `Ref` option in the slash menu is not searchable](https://github.com/siyuan-note/siyuan/issues/17510) +* [Authentication failed due to an excessively long cookie](https://github.com/siyuan-note/siyuan/issues/17512) + +### Refactor + +* [Upgrade to Electron v40.9.1](https://github.com/siyuan-note/siyuan/issues/17501) + +### Development + +* [Add `doc.mode` to `openTab` for opening in document mode](https://github.com/siyuan-note/siyuan/issues/17523) + +## Download + +* [B3log](https://b3log.org/siyuan/en/download.html) +* [GitHub](https://github.com/siyuan-note/siyuan/releases) diff --git a/app/changelogs/v3.6.5/v3.6.5_zh_CHT.md b/app/changelogs/v3.6.5/v3.6.5_zh_CHT.md new file mode 100644 index 000000000..32a070550 --- /dev/null +++ b/app/changelogs/v3.6.5/v3.6.5_zh_CHT.md @@ -0,0 +1,46 @@ +## 概述 + +此版本改進了一些細節。 + +## 變更記錄 + +以下是此版本中的詳細變更。 + +### 改進功能 + +* [將標籤、書籤和資源的重新命名視為資料歷史中的 `Replace` 操作](https://github.com/siyuan-note/siyuan/issues/17407) +* [改進行動端行級文字的顯示效果](https://github.com/siyuan-note/siyuan/issues/17477) +* [行動端點選編輯器外部時工具列不會隱藏](https://github.com/siyuan-note/siyuan/issues/17478) +* [改進任務清單項目中 `data-task` 標記的 Markdown 索引](https://github.com/siyuan-note/siyuan/issues/17502) +* [改進貼上超連結時對錨文本的解碼](https://github.com/siyuan-note/siyuan/issues/17513) +* [改良 `kbd` 字體 `--b3-font-family-kbd`](https://github.com/siyuan-note/siyuan/issues/17517) +* [將 macOS 上預設的重做快捷鍵改為 `⇧⌘Z`](https://github.com/siyuan-note/siyuan/issues/17518) +* [改進表格中撤銷後的遊標定位](https://github.com/siyuan-note/siyuan/issues/17532) +* [最佳化程式碼區塊行號渲染以提升效能](https://github.com/siyuan-note/siyuan/issues/17542) +* [改進資料索引](https://github.com/siyuan-note/siyuan/issues/17543) + +### 修復缺陷 + +* [在 iOS 上點擊編輯器可能會導致頁面跳到頂部](https://github.com/siyuan-note/siyuan/issues/17454) +* [IFrame 區塊無法編輯](https://github.com/siyuan-note/siyuan/issues/17486) +* [將連結貼到資料庫資源欄位時會建立重複條目](https://github.com/siyuan-note/siyuan/issues/17492) +* [大綱不會自動刷新](https://github.com/siyuan-note/siyuan/issues/17493) +* [雲端設定介面中事件缺失](https://github.com/siyuan-note/siyuan/issues/17495) +* [分割標籤頁後出現空白區域](https://github.com/siyuan-note/siyuan/issues/17499) +* [修復一些安全漏洞](https://github.com/siyuan-note/siyuan/issues/17503) +* [啟動時缺少 `window.siyuan.config` 會導致報錯](https://github.com/siyuan-note/siyuan/issues/17508) +* [斜線選單中的 `引用` 選項無法搜尋](https://github.com/siyuan-note/siyuan/issues/17510) +* [由於 Cookie 過長導致授權頁驗證失敗](https://github.com/siyuan-note/siyuan/issues/17512) + +### 開發重構 + +* [升級至 Electron v40.9.1](https://github.com/siyuan-note/siyuan/issues/17501) + +### 開發者 + +* [為 `openTab` 新增 `doc.mode`,以文件模式開啟](https://github.com/siyuan-note/siyuan/issues/17523) + +## 下載 + +* [B3log](https://b3log.org/siyuan/download.html) +* [GitHub](https://github.com/siyuan-note/siyuan/releases) diff --git a/app/changelogs/v3.6.5/v3.6.5_zh_CN.md b/app/changelogs/v3.6.5/v3.6.5_zh_CN.md new file mode 100644 index 000000000..1e1649c11 --- /dev/null +++ b/app/changelogs/v3.6.5/v3.6.5_zh_CN.md @@ -0,0 +1,46 @@ +## 概述 + +此版本改进了一些细节。 + +## 变更记录 + +以下是此版本中的详细变更。 + +### 改进功能 + +* [将标签、书签和资源的重命名视为数据历史中的 `Replace` 操作](https://github.com/siyuan-note/siyuan/issues/17407) +* [改进移动端行级文本的显示效果](https://github.com/siyuan-note/siyuan/issues/17477) +* [移动端点击编辑器外部时工具栏不会隐藏](https://github.com/siyuan-note/siyuan/issues/17478) +* [改进任务列表项中 `data-task` 标记的 Markdown 索引](https://github.com/siyuan-note/siyuan/issues/17502) +* [改进粘贴超链接时对锚文本的解码](https://github.com/siyuan-note/siyuan/issues/17513) +* [改进 `kbd` 字体 `--b3-font-family-kbd`](https://github.com/siyuan-note/siyuan/issues/17517) +* [将 macOS 上默认的重做快捷键改为 `⇧⌘Z`](https://github.com/siyuan-note/siyuan/issues/17518) +* [改进表格中撤销后的光标定位](https://github.com/siyuan-note/siyuan/issues/17532) +* [优化代码块行号渲染以提升性能](https://github.com/siyuan-note/siyuan/issues/17542) +* [改进数据索引](https://github.com/siyuan-note/siyuan/issues/17543) + +### 修复缺陷 + +* [在 iOS 上点击编辑器可能导致页面跳到顶部](https://github.com/siyuan-note/siyuan/issues/17454) +* [IFrame 块无法编辑](https://github.com/siyuan-note/siyuan/issues/17486) +* [将链接粘贴到数据库资源字段时会创建重复条目](https://github.com/siyuan-note/siyuan/issues/17492) +* [大纲不会自动刷新](https://github.com/siyuan-note/siyuan/issues/17493) +* [云端配置界面中事件缺失](https://github.com/siyuan-note/siyuan/issues/17495) +* [拆分标签页后出现空白区域](https://github.com/siyuan-note/siyuan/issues/17499) +* [修复一些安全漏洞](https://github.com/siyuan-note/siyuan/issues/17503) +* [启动时缺少 `window.siyuan.config` 会导致报错](https://github.com/siyuan-note/siyuan/issues/17508) +* [斜杠菜单中的 `引用` 选项无法搜索](https://github.com/siyuan-note/siyuan/issues/17510) +* [由于 Cookie 过长导致授权页验证失败](https://github.com/siyuan-note/siyuan/issues/17512) + +### 开发重构 + +* [升级到 Electron v40.9.1](https://github.com/siyuan-note/siyuan/issues/17501) + +### 开发者 + +* [为 `openTab` 添加 `doc.mode`,以文档模式打开](https://github.com/siyuan-note/siyuan/issues/17523) + +## 下载 + +* [B3log](https://b3log.org/siyuan/download.html) +* [GitHub](https://github.com/siyuan-note/siyuan/releases) From cea611fee55812a037a7cc181e0f6cd18b279741 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sun, 19 Apr 2026 21:58:13 +0800 Subject: [PATCH 3/5] :arrow_up: Upgrade lute Signed-off-by: Daniel <845765@qq.com> --- app/stage/protyle/js/lute/lute.min.js | 2 +- kernel/go.mod | 2 +- kernel/go.sum | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/stage/protyle/js/lute/lute.min.js b/app/stage/protyle/js/lute/lute.min.js index e63d10009..f3f908447 100644 --- a/app/stage/protyle/js/lute/lute.min.js +++ b/app/stage/protyle/js/lute/lute.min.js @@ -56,7 +56,7 @@ $packages["github.com/88250/lute/util"]=(function(){var $pkg={},$init,A,B,C,D,E, $packages["internal/godebug"]=(function(){var $pkg={},$init,A,B,C,L,O,T,Z,E,F,M,H,D,G,I,J,K;A=$packages["sync"];B=$packages["sync/atomic"];C=$newType(0,$kindStruct,"godebug.Setting",true,"internal/godebug",true,function(name_,once_,value_){this.$val=this;if(arguments.length===0){this.name="";this.once=new A.Once.ptr(0,new A.Mutex.ptr(0,0));this.value=O.nil;return;}this.name=name_;this.once=once_;this.value=value_;});$pkg.Setting=C;$pkg.$finishSetup=function(){L=$ptrType(A.readOnly);O=$ptrType(B.Pointer[0]);T=$ptrType($String);Z=$ptrType(C);D=function N(a){var a;return new C.ptr(a,new A.Once.ptr(0,new A.Mutex.ptr(0,0)),O.nil);};$pkg.New=D;$ptrType(C).prototype.Name=function P(){var a;a=this;return a.name;};$ptrType(C).prototype.String=function Q(){var{a,b,c,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:a=this;b=a.Value();$s=1;case 1:if($c){$c=false;b=b.$blk();}if(b&&b.$blk!==undefined){break s;}c=a.name+"="+b;$s=2;case 2:return c;}return;}var $f={$blk:Q,$c:true,$r,a,b,c,$s};return $f;};$ptrType(C).prototype.Value=function R(){var{a,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:a=[a];a[0]=this;$r=a[0].once.Do((function(a){return function S(){var{b,c,d,e,f,g,h,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:c=E.Load(new $String(a[0].name));$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}b=c;d=b[0];e=b[1];if(!e){$s=2;continue;}$s=3;continue;case 2:f=new B.Pointer[0].ptr(T.nil);f.Store((M||(M=new T(function(){return F;},function($v){F=$v;}))));h=E.LoadOrStore(new $String(a[0].name),f);$s=4;case 4:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}g=h;d=g[0];case 3:a[0].value=$assertType(d,O);$s=-1;return;}return;}var $f={$blk:S,$c:true,$r,b,c,d,e,f,g,h,$s};return $f;};})(a));$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return a[0].value.Load().$get();}return;}var $f={$blk:R,$c:true,$r,a,$s};return $f;};G=function U(){var{$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:$r=K(I);$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return;}return;}var $f={$blk:U,$c:true,$r,$s};return $f;};I=function V(a,b){var{a,b,c,$s,$deferred,$r,$c}=$restore(this,{a,b});$s=$s||0;var $err=null;try{s:while(true){switch($s){case 0:$deferred=[];$curGoroutine.deferStack.push($deferred);c=[c];$r=H.Lock();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$deferred.push([$methodVal(H,"Unlock"),[]]);c[0]=new $global.Map();$r=J(c[0],b);$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=J(c[0],a);$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=E.Range((function(c){return function W(d,e){var d,e,f;if(!(f=$mapIndex(c[0],$String.keyFor($assertType(d,$String))),f!==undefined?f.v:false)){$assertType(e,O).Store((M||(M=new T(function(){return F;},function($v){F=$v;}))));}return true;};})(c));$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return;}return;}}catch(err){$err=err;$s=-1;}finally{$callDeferred($deferred,$err);if($curGoroutine.asleep){var $f={$blk:V,$c:true,$r,a,b,c,$s,$deferred};return $f;}}};J=function X(a,b){var{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,$s,$r,$c}=$restore(this,{a,b});$s=$s||0;s:while(true){switch($s){case 0:c=b.length;d=-1;e=c-1>>0;case 1:if(!(e>=-1)){$s=2;continue;}f=[f];if((e===-1)||(b.charCodeAt(e)===44)){$s=3;continue;}if(b.charCodeAt(e)===61){$s=4;continue;}$s=5;continue;case 3:if(d>=0){$s=6;continue;}$s=7;continue;case 6:g=$substring(b,(e+1>>0),d);h=$substring(b,(d+1>>0),c);i=g;f[0]=h;if(!(j=$mapIndex(a,$String.keyFor(i)),j!==undefined?j.v:false)){$s=8;continue;}$s=9;continue;case 8:k=i;(a||$throwRuntimeError("assignment to entry in nil map")).set($String.keyFor(k),{k:k,v:true});m=E.Load(new $String(i));$s=10;case 10:if($c){$c=false;m=m.$blk();}if(m&&m.$blk!==undefined){break s;}l=m;n=l[0];o=l[1];if(!o){$s=11;continue;}$s=12;continue;case 11:p=new B.Pointer[0].ptr(T.nil);p.Store((M||(M=new T(function(){return F;},function($v){F=$v;}))));r=E.LoadOrStore(new $String(i),p);$s=13;case 13:if($c){$c=false;r=r.$blk();}if(r&&r.$blk!==undefined){break s;}q=r;n=q[0];case 12:$assertType(n,O).Store((f.$ptr||(f.$ptr=new T(function(){return this.$target[0];},function($v){this.$target[0]=$v;},f))));case 9:case 7:d=-1;c=e;$s=5;continue;case 4:d=e;case 5:e=e-(1)>>0;$s=1;continue;case 2:$s=-1;return;}return;}var $f={$blk:X,$c:true,$r,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,$s};return $f;};K=function(){$throwRuntimeError("native function not implemented: internal/godebug.setUpdate");};Z.methods=[{prop:"Name",name:"Name",pkg:"",typ:$funcType([],[$String],false)},{prop:"String",name:"String",pkg:"",typ:$funcType([],[$String],false)},{prop:"Value",name:"Value",pkg:"",typ:$funcType([],[$String],false)}];C.init("internal/godebug",[{prop:"name",name:"name",embedded:false,exported:false,typ:$String,tag:""},{prop:"once",name:"once",embedded:false,exported:false,typ:A.Once,tag:""},{prop:"value",name:"value",embedded:false,exported:false,typ:O,tag:""}]);$pkg.$initLinknames=function(){K=$linknames["runtime.godebug_setUpdate"];};};$init=function(){$pkg.$init=function(){};var $f,$c=false,$s=0,$r;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:$r=A.$init();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=B.$init();$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}E=new A.Map.ptr(new A.Mutex.ptr(0,0),new B.Pointer[5].ptr(L.nil),false,0);F="";H=new A.Mutex.ptr(0,0);$r=G();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})(); $packages["math/rand"]=(function(){var $pkg={},$init,A,B,C,G,I,J,M,AG,AQ,AU,BD,BG,BH,BU,BX,DA,DB,F,P,AH,AJ,AK,AL,AM,AN,AO,H,L,N,O,Q,Y,AI,AP;A=$packages["github.com/gopherjs/gopherjs/nosync"];B=$packages["internal/godebug"];C=$packages["math"];G=$newType(0,$kindStruct,"rand.rngSource",true,"math/rand",false,function(tap_,feed_,vec_){this.$val=this;if(arguments.length===0){this.tap=0;this.feed=0;this.vec=BD.zero();return;}this.tap=tap_;this.feed=feed_;this.vec=vec_;});I=$newType(8,$kindInterface,"rand.Source",true,"math/rand",true,null);J=$newType(8,$kindInterface,"rand.Source64",true,"math/rand",true,null);M=$newType(0,$kindStruct,"rand.Rand",true,"math/rand",true,function(src_,s64_,readVal_,readPos_){this.$val=this;if(arguments.length===0){this.src=$ifaceNil;this.s64=$ifaceNil;this.readVal=new $Int64(0,0);this.readPos=0;return;}this.src=src_;this.s64=s64_;this.readVal=readVal_;this.readPos=readPos_;});AG=$newType(0,$kindStruct,"rand.lockedSource",true,"math/rand",false,function(lk_,s_){this.$val=this;if(arguments.length===0){this.lk=new A.Mutex.ptr(false,false,false,false,0);this.s=AQ.nil;return;}this.lk=lk_;this.s=s_;});$pkg.rngSource=G;$pkg.Source=I;$pkg.Source64=J;$pkg.Rand=M;$pkg.lockedSource=AG;$pkg.$finishSetup=function(){AQ=$ptrType(G);AU=$ptrType(M);BD=$arrayType($Int64,607);BG=$ptrType(AG);BH=$ptrType($Int8);BU=$sliceType($Int);BX=$ptrType($Int64);DA=$funcType([$Int,$Int],[],false);DB=$sliceType($Uint8);H=function AX(a){var a,b,c,d,e;c=(b=a/44488,(b===b&&b!==1/0&&b!==-1/0)?b>>0:$throwRuntimeError("integer divide by zero"));e=(d=a%44488,d===d?d:$throwRuntimeError("integer divide by zero"));a=($imul(48271,e))-($imul(3399,c))>>0;if(a<0){a=a+(2147483647)>>0;}return a;};$ptrType(G).prototype.Seed=function AY(a){var a,b,c,d,e,f,g,h,i,j;b=this;b.tap=0;b.feed=334;a=$div64(a,new $Int64(0,2147483647),true);if((a.$high<0||(a.$high===0&&a.$low<0))){a=(c=new $Int64(0,2147483647),new $Int64(a.$high+c.$high,a.$low+c.$low));}if((a.$high===0&&a.$low===0)){a=new $Int64(0,89482311);}d=(((a.$low+((a.$high>>31)*4294967296))>>0));e=-20;while(true){if(!(e<607)){break;}d=H(d);if(e>=0){f=new $Int64(0,0);f=$shiftLeft64((new $Int64(0,d)),40);d=H(d);f=(g=$shiftLeft64((new $Int64(0,d)),20),new $Int64(f.$high^g.$high,(f.$low^g.$low)>>>0));d=H(d);f=(h=(new $Int64(0,d)),new $Int64(f.$high^h.$high,(f.$low^h.$low)>>>0));f=(i=((e<0||e>=F.length)?($throwRuntimeError("index out of range"),undefined):F[e]),new $Int64(f.$high^i.$high,(f.$low^i.$low)>>>0));(j=b.vec,((e<0||e>=j.length)?($throwRuntimeError("index out of range"),undefined):j[e]=f));}e=e+(1)>>0;}};$ptrType(G).prototype.Int63=function AZ(){var a,b,c;a=this;return((b=(c=a.Uint64(),new $Uint64(c.$high&2147483647,(c.$low&4294967295)>>>0)),new $Int64(b.$high,b.$low)));};$ptrType(G).prototype.Uint64=function BA(){var a,b,c,d,e,f,g,h,i,j;a=this;a.tap=a.tap-(1)>>0;if(a.tap<0){a.tap=a.tap+(607)>>0;}a.feed=a.feed-(1)>>0;if(a.feed<0){a.feed=a.feed+(607)>>0;}h=(b=(c=a.vec,d=a.feed,((d<0||d>=c.length)?($throwRuntimeError("index out of range"),undefined):c[d])),e=(f=a.vec,g=a.tap,((g<0||g>=f.length)?($throwRuntimeError("index out of range"),undefined):f[g])),new $Int64(b.$high+e.$high,b.$low+e.$low));(i=a.vec,j=a.feed,((j<0||j>=i.length)?($throwRuntimeError("index out of range"),undefined):i[j]=h));return(new $Uint64(h.$high,h.$low));};L=function BC(a){var a,b;b=new G.ptr(0,0,BD.zero());b.Seed(a);return b;};N=function BE(a){var a,b,c;b=$assertType(a,J,true);c=b[0];return new M.ptr(a,c,new $Int64(0,0),0);};$pkg.New=N;$ptrType(M).prototype.Seed=function BF(a){var{a,b,c,d,e,$s,$r,$c}=$restore(this,{a});$s=$s||0;s:while(true){switch($s){case 0:b=this;c=$assertType(b.src,BG,true);d=c[0];e=c[1];if(e){d.seedPos(a,(b.$ptr_readPos||(b.$ptr_readPos=new BH(function(){return this.$target.readPos;},function($v){this.$target.readPos=$v;},b))));$s=-1;return;}$r=b.src.Seed(a);$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}b.readPos=0;$s=-1;return;}return;}var $f={$blk:BF,$c:true,$r,a,b,c,d,e,$s};return $f;};$ptrType(M).prototype.Int63=function BI(){var{a,b,c,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:a=this;b=a.src.Int63();$s=1;case 1:if($c){$c=false;b=b.$blk();}if(b&&b.$blk!==undefined){break s;}c=b;$s=2;case 2:return c;}return;}var $f={$blk:BI,$c:true,$r,a,b,c,$s};return $f;};$ptrType(M).prototype.Uint32=function BJ(){var{a,b,c,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:a=this;b=a.Int63();$s=1;case 1:if($c){$c=false;b=b.$blk();}if(b&&b.$blk!==undefined){break s;}c=(($shiftRightInt64(b,31).$low>>>0));$s=2;case 2:return c;}return;}var $f={$blk:BJ,$c:true,$r,a,b,c,$s};return $f;};$ptrType(M).prototype.Uint64=function BK(){var{a,b,c,d,e,f,g,h,i,j,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:a=this;if(!($interfaceIsEqual(a.s64,$ifaceNil))){$s=1;continue;}$s=2;continue;case 1:b=a.s64.Uint64();$s=3;case 3:if($c){$c=false;b=b.$blk();}if(b&&b.$blk!==undefined){break s;}c=b;$s=4;case 4:return c;case 2:f=a.Int63();$s=5;case 5:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}i=a.Int63();$s=6;case 6:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}j=(d=$shiftRightUint64(((e=f,new $Uint64(e.$high,e.$low))),31),g=$shiftLeft64(((h=i,new $Uint64(h.$high,h.$low))),32),new $Uint64(d.$high|g.$high,(d.$low|g.$low)>>>0));$s=7;case 7:return j;}return;}var $f={$blk:BK,$c:true,$r,a,b,c,d,e,f,g,h,i,j,$s};return $f;};$ptrType(M).prototype.Int31=function BL(){var{a,b,c,d,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:a=this;c=a.Int63();$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}d=(((b=$shiftRightInt64(c,32),b.$low+((b.$high>>31)*4294967296))>>0));$s=2;case 2:return d;}return;}var $f={$blk:BL,$c:true,$r,a,b,c,d,$s};return $f;};$ptrType(M).prototype.Int=function BM(){var{a,b,c,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:a=this;b=a.Int63();$s=1;case 1:if($c){$c=false;b=b.$blk();}if(b&&b.$blk!==undefined){break s;}c=((b.$low>>>0));$s=-1;return((((c<<1>>>0)>>>1>>>0)>>0));}return;}var $f={$blk:BM,$c:true,$r,a,b,c,$s};return $f;};$ptrType(M).prototype.Int63n=function BN(a){var{a,b,c,d,e,f,g,h,i,j,k,l,m,n,$s,$r,$c}=$restore(this,{a});$s=$s||0;s:while(true){switch($s){case 0:b=this;if((a.$high<0||(a.$high===0&&a.$low<=0))){$panic(new $String("invalid argument to Int63n"));}if((c=(d=new $Int64(a.$high-0,a.$low-1),new $Int64(a.$high&d.$high,(a.$low&d.$low)>>>0)),(c.$high===0&&c.$low===0))){$s=1;continue;}$s=2;continue;case 1:f=b.Int63();$s=3;case 3:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}h=(e=f,g=new $Int64(a.$high-0,a.$low-1),new $Int64(e.$high&g.$high,(e.$low&g.$low)>>>0));$s=4;case 4:return h;case 2:k=((i=(j=$div64(new $Uint64(2147483648,0),(new $Uint64(a.$high,a.$low)),true),new $Uint64(2147483647-j.$high,4294967295-j.$low)),new $Int64(i.$high,i.$low)));l=b.Int63();$s=5;case 5:if($c){$c=false;l=l.$blk();}if(l&&l.$blk!==undefined){break s;}m=l;case 6:if(!((m.$high>k.$high||(m.$high===k.$high&&m.$low>k.$low)))){$s=7;continue;}n=b.Int63();$s=8;case 8:if($c){$c=false;n=n.$blk();}if(n&&n.$blk!==undefined){break s;}m=n;$s=6;continue;case 7:$s=-1;return $div64(m,a,true);}return;}var $f={$blk:BN,$c:true,$r,a,b,c,d,e,f,g,h,i,j,k,l,m,n,$s};return $f;};$ptrType(M).prototype.Int31n=function BO(a){var{a,b,c,d,e,f,g,h,i,j,$s,$r,$c}=$restore(this,{a});$s=$s||0;s:while(true){switch($s){case 0:b=this;if(a<=0){$panic(new $String("invalid argument to Int31n"));}if((a&((a-1>>0)))===0){$s=1;continue;}$s=2;continue;case 1:c=b.Int31();$s=3;case 3:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}d=c&((a-1>>0));$s=4;case 4:return d;case 2:f=(((2147483647-(e=2147483648%((a>>>0)),e===e?e:$throwRuntimeError("integer divide by zero"))>>>0)>>0));g=b.Int31();$s=5;case 5:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}h=g;case 6:if(!(h>f)){$s=7;continue;}i=b.Int31();$s=8;case 8:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}h=i;$s=6;continue;case 7:$s=-1;return(j=h%a,j===j?j:$throwRuntimeError("integer divide by zero"));}return;}var $f={$blk:BO,$c:true,$r,a,b,c,d,e,f,g,h,i,j,$s};return $f;};$ptrType(M).prototype.int31n=function BP(a){var{a,b,c,d,e,f,g,h,i,$s,$r,$c}=$restore(this,{a});$s=$s||0;s:while(true){switch($s){case 0:b=this;c=b.Uint32();$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}d=c;e=$mul64((new $Uint64(0,d)),(new $Uint64(0,a)));f=((e.$low>>>0));if(f<((a>>>0))){$s=2;continue;}$s=3;continue;case 2:h=(g=((-a>>>0))%((a>>>0)),g===g?g:$throwRuntimeError("integer divide by zero"));case 4:if(!(f>>0));$s=4;continue;case 5:case 3:$s=-1;return(($shiftRightUint64(e,32).$low>>0));}return;}var $f={$blk:BP,$c:true,$r,a,b,c,d,e,f,g,h,i,$s};return $f;};$ptrType(M).prototype.Intn=function BQ(a){var{a,b,c,d,e,f,g,$s,$r,$c}=$restore(this,{a});$s=$s||0;s:while(true){switch($s){case 0:b=this;if(a<=0){$panic(new $String("invalid argument to Intn"));}if(a<=2147483647){$s=1;continue;}$s=2;continue;case 1:c=b.Int31n(((a>>0)));$s=3;case 3:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}d=((c>>0));$s=4;case 4:return d;case 2:f=b.Int63n((new $Int64(0,a)));$s=5;case 5:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}g=(((e=f,e.$low+((e.$high>>31)*4294967296))>>0));$s=6;case 6:return g;}return;}var $f={$blk:BQ,$c:true,$r,a,b,c,d,e,f,g,$s};return $f;};$ptrType(M).prototype.Float64=function BR(){var{a,b,c,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:a=this;case 1:b=a.Int63();$s=2;case 2:if($c){$c=false;b=b.$blk();}if(b&&b.$blk!==undefined){break s;}c=($flatten64(b))/9.223372036854776e+18;if(c===1){$s=3;continue;}$s=4;continue;case 3:$s=1;continue;case 4:$s=-1;return c;}return;}var $f={$blk:BR,$c:true,$r,a,b,c,$s};return $f;};$ptrType(M).prototype.Float32=function BS(){var{a,b,c,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:a=this;case 1:b=a.Float64();$s=2;case 2:if($c){$c=false;b=b.$blk();}if(b&&b.$blk!==undefined){break s;}c=($fround(b));if(c===1){$s=3;continue;}$s=4;continue;case 3:$s=1;continue;case 4:$s=-1;return c;}return;}var $f={$blk:BS,$c:true,$r,a,b,c,$s};return $f;};$ptrType(M).prototype.Perm=function BT(a){var{a,b,c,d,e,f,$s,$r,$c}=$restore(this,{a});$s=$s||0;s:while(true){switch($s){case 0:b=this;c=$makeSlice(BU,a);d=0;case 1:if(!(d>0);$s=3;case 3:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;((d<0||d>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+d]=((f<0||f>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+f]));((f<0||f>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+f]=d);d=d+(1)>>0;$s=1;continue;case 2:$s=-1;return c;}return;}var $f={$blk:BT,$c:true,$r,a,b,c,d,e,f,$s};return $f;};$ptrType(M).prototype.Shuffle=function BV(a,b){var{a,b,c,d,e,f,g,h,i,$s,$r,$c}=$restore(this,{a,b});$s=$s||0;s:while(true){switch($s){case 0:c=this;if(a<0){$panic(new $String("invalid argument to Shuffle"));}d=a-1>>0;case 1:if(!(d>2147483646)){$s=2;continue;}f=c.Int63n((new $Int64(0,(d+1>>0))));$s=3;case 3:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}g=(((e=f,e.$low+((e.$high>>31)*4294967296))>>0));$r=b(d,g);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}d=d-(1)>>0;$s=1;continue;case 2:case 5:if(!(d>0)){$s=6;continue;}h=c.int31n((((d+1>>0)>>0)));$s=7;case 7:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}i=((h>>0));$r=b(d,i);$s=8;case 8:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}d=d-(1)>>0;$s=5;continue;case 6:$s=-1;return;}return;}var $f={$blk:BV,$c:true,$r,a,b,c,d,e,f,g,h,i,$s};return $f;};$ptrType(M).prototype.Read=function BW(a){var{a,b,c,d,e,f,g,h,i,j,k,l,m,$s,$r,$c}=$restore(this,{a});$s=$s||0;s:while(true){switch($s){case 0:b=0;c=$ifaceNil;d=this;e=$assertType(d.src,BG,true);f=e[0];g=e[1];if(g){$s=1;continue;}$s=2;continue;case 1:i=f.read(a,(d.$ptr_readVal||(d.$ptr_readVal=new BX(function(){return this.$target.readVal;},function($v){this.$target.readVal=$v;},d))),(d.$ptr_readPos||(d.$ptr_readPos=new BH(function(){return this.$target.readPos;},function($v){this.$target.readPos=$v;},d))));$s=3;case 3:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}h=i;b=h[0];c=h[1];j=[b,c];$s=4;case 4:return j;case 2:l=O(a,d.src,(d.$ptr_readVal||(d.$ptr_readVal=new BX(function(){return this.$target.readVal;},function($v){this.$target.readVal=$v;},d))),(d.$ptr_readPos||(d.$ptr_readPos=new BH(function(){return this.$target.readPos;},function($v){this.$target.readPos=$v;},d))));$s=5;case 5:if($c){$c=false;l=l.$blk();}if(l&&l.$blk!==undefined){break s;}k=l;b=k[0];c=k[1];m=[b,c];$s=6;case 6:return m;}return;}var $f={$blk:BW,$c:true,$r,a,b,c,d,e,f,g,h,i,j,k,l,m,$s};return $f;};O=function BY(a,b,c,d){var{a,b,c,d,e,f,g,h,i,j,k,$s,$r,$c}=$restore(this,{a,b,c,d});$s=$s||0;s:while(true){switch($s){case 0:e=0;f=$ifaceNil;g=d.$get();h=c.$get();i=$assertType(b,AQ,true);j=i[0];e=0;case 1:if(!(e=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+e]=((h.$low<<24>>>24)));h=$shiftRightInt64(h,(8));g=g-(1)<<24>>24;e=e+(1)>>0;$s=1;continue;case 2:d.$set(g);c.$set(h);$s=-1;return[e,f];}return;}var $f={$blk:BY,$c:true,$r,a,b,c,d,e,f,g,h,i,j,k,$s};return $f;};Q=function BZ(a){var{a,$s,$r,$c}=$restore(this,{a});$s=$s||0;s:while(true){switch($s){case 0:$r=P.Seed(a);$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return;}return;}var $f={$blk:BZ,$c:true,$r,a,$s};return $f;};$pkg.Seed=Q;Y=function CH(a){var{a,b,c,$s,$r,$c}=$restore(this,{a});$s=$s||0;s:while(true){switch($s){case 0:b=P.Intn(a);$s=1;case 1:if($c){$c=false;b=b.$blk();}if(b&&b.$blk!==undefined){break s;}c=b;$s=2;case 2:return c;}return;}var $f={$blk:CH,$c:true,$r,a,b,c,$s};return $f;};$pkg.Intn=Y;$ptrType(AG).prototype.source=function CP(){var{a,b,c,d,e,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:a=this;if(a.s===AQ.nil){$s=1;continue;}$s=2;continue;case 1:b=new $Int64(0,0);c=AH.Value();$s=6;case 6:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}if(c==="0"){$s=3;continue;}$s=4;continue;case 3:b=new $Int64(0,1);$s=5;continue;case 4:e=AP();$s=7;case 7:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}b=((d=e,new $Int64(d.$high,d.$low)));case 5:a.s=L(b);case 2:$s=-1;return a.s;}return;}var $f={$blk:CP,$c:true,$r,a,b,c,d,e,$s};return $f;};$ptrType(AG).prototype.Int63=function CQ(){var{a,b,c,d,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:a=new $Int64(0,0);b=this;b.lk.Lock();c=b.source();$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}d=c.Int63();$s=2;case 2:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}a=d;b.lk.Unlock();$s=-1;return a;}return;}var $f={$blk:CQ,$c:true,$r,a,b,c,d,$s};return $f;};$ptrType(AG).prototype.Uint64=function CR(){var{a,b,c,d,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:a=new $Uint64(0,0);b=this;b.lk.Lock();c=b.source();$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}d=c.Uint64();$s=2;case 2:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}a=d;b.lk.Unlock();$s=-1;return a;}return;}var $f={$blk:CR,$c:true,$r,a,b,c,d,$s};return $f;};$ptrType(AG).prototype.Seed=function CS(a){var a,b;b=this;b.lk.Lock();b.seed(a);b.lk.Unlock();};$ptrType(AG).prototype.seedPos=function CT(a,b){var a,b,c;c=this;c.lk.Lock();c.seed(a);b.$set(0);c.lk.Unlock();};$ptrType(AG).prototype.seed=function CU(a){var a,b;b=this;if(b.s===AQ.nil){b.s=L(a);}else{b.s.Seed(a);}};$ptrType(AG).prototype.read=function CV(a,b,c){var{a,b,c,d,e,f,g,h,i,j,k,l,m,$s,$r,$c}=$restore(this,{a,b,c});$s=$s||0;s:while(true){switch($s){case 0:d=0;e=$ifaceNil;f=this;f.lk.Lock();h=a;i=f.source();$s=1;case 1:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}j=i;k=b;l=c;m=O(h,j,k,l);$s=2;case 2:if($c){$c=false;m=m.$blk();}if(m&&m.$blk!==undefined){break s;}g=m;d=g[0];e=g[1];f.lk.Unlock();$s=-1;return[d,e];}return;}var $f={$blk:CV,$c:true,$r,a,b,c,d,e,f,g,h,i,j,k,l,m,$s};return $f;};AI=function CW(a){var a;if(a<0){return((-a>>>0));}return((a>>>0));};$ptrType(M).prototype.NormFloat64=function CX(){var{a,b,c,d,e,f,g,h,i,j,k,l,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:a=this;case 1:b=a.Uint32();$s=3;case 3:if($c){$c=false;b=b.$blk();}if(b&&b.$blk!==undefined){break s;}c=((b>>0));d=c&127;e=(c)*(((d<0||d>=AK.length)?($throwRuntimeError("index out of range"),undefined):AK[d]));if(AI(c)<((d<0||d>=AJ.length)?($throwRuntimeError("index out of range"),undefined):AJ[d])){$s=-1;return e;}if(d===0){$s=4;continue;}$s=5;continue;case 4:case 6:f=a.Float64();$s=8;case 8:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}g=C.Log(f);$s=9;case 9:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}e=-g*0.29047645161474317;h=a.Float64();$s=10;case 10:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}i=C.Log(h);$s=11;case 11:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}j=-i;if(j+j>=e*e){$s=7;continue;}$s=6;continue;case 7:if(c>0){$s=-1;return 3.442619855899+e;}$s=-1;return-3.442619855899-e;case 5:k=a.Float64();$s=14;case 14:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}if($fround(((d<0||d>=AL.length)?($throwRuntimeError("index out of range"),undefined):AL[d])+$fround(($fround(k))*($fround((l=d-1>>0,((l<0||l>=AL.length)?($throwRuntimeError("index out of range"),undefined):AL[l]))-((d<0||d>=AL.length)?($throwRuntimeError("index out of range"),undefined):AL[d])))))<($fround(C.Exp(-0.5*e*e)))){$s=12;continue;}$s=13;continue;case 12:$s=-1;return e;case 13:$s=1;continue;case 2:$s=-1;return 0;}return;}var $f={$blk:CX,$c:true,$r,a,b,c,d,e,f,g,h,i,j,k,l,$s};return $f;};$ptrType(M).prototype.ExpFloat64=function CY(){var{a,b,c,d,e,f,g,h,i,j,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:a=this;case 1:b=a.Uint32();$s=3;case 3:if($c){$c=false;b=b.$blk();}if(b&&b.$blk!==undefined){break s;}c=b;d=(c&255)>>>0;e=(c)*(((d<0||d>=AN.length)?($throwRuntimeError("index out of range"),undefined):AN[d]));if(c<((d<0||d>=AM.length)?($throwRuntimeError("index out of range"),undefined):AM[d])){$s=-1;return e;}if(d===0){$s=4;continue;}$s=5;continue;case 4:f=a.Float64();$s=6;case 6:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}g=C.Log(f);$s=7;case 7:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}h=7.69711747013105-g;$s=8;case 8:return h;case 5:i=a.Float64();$s=11;case 11:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}if($fround(((d<0||d>=AO.length)?($throwRuntimeError("index out of range"),undefined):AO[d])+$fround(($fround(i))*($fround((j=d-1>>>0,((j<0||j>=AO.length)?($throwRuntimeError("index out of range"),undefined):AO[j]))-((d<0||d>=AO.length)?($throwRuntimeError("index out of range"),undefined):AO[d])))))<($fround(C.Exp(-e)))){$s=9;continue;}$s=10;continue;case 9:$s=-1;return e;case 10:$s=1;continue;case 2:$s=-1;return 0;}return;}var $f={$blk:CY,$c:true,$r,a,b,c,d,e,f,g,h,i,j,$s};return $f;};AP=function(){$throwRuntimeError("native function not implemented: math/rand.fastrand64");};AQ.methods=[{prop:"Seed",name:"Seed",pkg:"",typ:$funcType([$Int64],[],false)},{prop:"Int63",name:"Int63",pkg:"",typ:$funcType([],[$Int64],false)},{prop:"Uint64",name:"Uint64",pkg:"",typ:$funcType([],[$Uint64],false)}];AU.methods=[{prop:"Seed",name:"Seed",pkg:"",typ:$funcType([$Int64],[],false)},{prop:"Int63",name:"Int63",pkg:"",typ:$funcType([],[$Int64],false)},{prop:"Uint32",name:"Uint32",pkg:"",typ:$funcType([],[$Uint32],false)},{prop:"Uint64",name:"Uint64",pkg:"",typ:$funcType([],[$Uint64],false)},{prop:"Int31",name:"Int31",pkg:"",typ:$funcType([],[$Int32],false)},{prop:"Int",name:"Int",pkg:"",typ:$funcType([],[$Int],false)},{prop:"Int63n",name:"Int63n",pkg:"",typ:$funcType([$Int64],[$Int64],false)},{prop:"Int31n",name:"Int31n",pkg:"",typ:$funcType([$Int32],[$Int32],false)},{prop:"int31n",name:"int31n",pkg:"math/rand",typ:$funcType([$Int32],[$Int32],false)},{prop:"Intn",name:"Intn",pkg:"",typ:$funcType([$Int],[$Int],false)},{prop:"Float64",name:"Float64",pkg:"",typ:$funcType([],[$Float64],false)},{prop:"Float32",name:"Float32",pkg:"",typ:$funcType([],[$Float32],false)},{prop:"Perm",name:"Perm",pkg:"",typ:$funcType([$Int],[BU],false)},{prop:"Shuffle",name:"Shuffle",pkg:"",typ:$funcType([$Int,DA],[],false)},{prop:"Read",name:"Read",pkg:"",typ:$funcType([DB],[$Int,$error],false)},{prop:"NormFloat64",name:"NormFloat64",pkg:"",typ:$funcType([],[$Float64],false)},{prop:"ExpFloat64",name:"ExpFloat64",pkg:"",typ:$funcType([],[$Float64],false)}];BG.methods=[{prop:"source",name:"source",pkg:"math/rand",typ:$funcType([],[AQ],false)},{prop:"Int63",name:"Int63",pkg:"",typ:$funcType([],[$Int64],false)},{prop:"Uint64",name:"Uint64",pkg:"",typ:$funcType([],[$Uint64],false)},{prop:"Seed",name:"Seed",pkg:"",typ:$funcType([$Int64],[],false)},{prop:"seedPos",name:"seedPos",pkg:"math/rand",typ:$funcType([$Int64,BH],[],false)},{prop:"seed",name:"seed",pkg:"math/rand",typ:$funcType([$Int64],[],false)},{prop:"read",name:"read",pkg:"math/rand",typ:$funcType([DB,BX,BH],[$Int,$error],false)}];G.init("math/rand",[{prop:"tap",name:"tap",embedded:false,exported:false,typ:$Int,tag:""},{prop:"feed",name:"feed",embedded:false,exported:false,typ:$Int,tag:""},{prop:"vec",name:"vec",embedded:false,exported:false,typ:BD,tag:""}]);I.init([{prop:"Int63",name:"Int63",pkg:"",typ:$funcType([],[$Int64],false)},{prop:"Seed",name:"Seed",pkg:"",typ:$funcType([$Int64],[],false)}]);J.init([{prop:"Int63",name:"Int63",pkg:"",typ:$funcType([],[$Int64],false)},{prop:"Seed",name:"Seed",pkg:"",typ:$funcType([$Int64],[],false)},{prop:"Uint64",name:"Uint64",pkg:"",typ:$funcType([],[$Uint64],false)}]);M.init("math/rand",[{prop:"src",name:"src",embedded:false,exported:false,typ:I,tag:""},{prop:"s64",name:"s64",embedded:false,exported:false,typ:J,tag:""},{prop:"readVal",name:"readVal",embedded:false,exported:false,typ:$Int64,tag:""},{prop:"readPos",name:"readPos",embedded:false,exported:false,typ:$Int8,tag:""}]);AG.init("math/rand",[{prop:"lk",name:"lk",embedded:false,exported:false,typ:A.Mutex,tag:""},{prop:"s",name:"s",embedded:false,exported:false,typ:AQ,tag:""}]);$pkg.$initLinknames=function(){AP=$linknames["runtime.fastrand64"];};};$init=function(){$pkg.$init=function(){};var $f,$c=false,$s=0,$r;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:$r=A.$init();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=B.$init();$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=C.$init();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}F=$toNativeArray($kindInt64,[new $Int64(-973649357,3952672746),new $Int64(-1065661887,3130416987),new $Int64(324977939,3414273807),new $Int64(1241840476,2806224363),new $Int64(-1477934308,1997590414),new $Int64(2103305448,2402795971),new $Int64(1663160183,1140819369),new $Int64(1120601685,1788868961),new $Int64(1848035537,1089001426),new $Int64(1235702047,873593504),new $Int64(1911387977,581324885),new $Int64(-1654874170,1609182556),new $Int64(1069394745,1241596776),new $Int64(1895445337,1771189259),new $Int64(-1374618802,3467012610),new $Int64(-140526423,2344407434),new $Int64(-1745367887,782467244),new $Int64(26335124,3404933915),new $Int64(1063924276,618867887),new $Int64(-968700782,520164395),new $Int64(-1591572833,1341358184),new $Int64(-1515085039,665794848),new $Int64(1527227641,3183648150),new $Int64(1781176124,696329606),new $Int64(1789146075,4151988961),new $Int64(-2087444114,998951326),new $Int64(-612324923,1364957564),new $Int64(63173359,4090230633),new $Int64(-1498029007,4009697548),new $Int64(248009524,2569622517),new $Int64(778703922,3742421481),new $Int64(-1109106023,1506914633),new $Int64(1738099768,1983412561),new $Int64(236311649,1436266083),new $Int64(-1111517500,3922894967),new $Int64(-1336974714,1792680179),new $Int64(563141142,1188796351),new $Int64(1349617468,405968250),new $Int64(1044074554,433754187),new $Int64(870549669,4073162024),new $Int64(-1094251604,433121399),new $Int64(2451824,4162580594),new $Int64(-137262572,4132415622),new $Int64(-1536231048,3033822028),new $Int64(2016407895,824682382),new $Int64(2366218,3583765414),new $Int64(-624604839,535386927),new $Int64(1637219058,2286693689),new $Int64(1453075389,2968466525),new $Int64(193683513,1351410206),new $Int64(-283806096,1412813499),new $Int64(492736522,4126267639),new $Int64(512765208,2105529399),new $Int64(2132966268,2413882233),new $Int64(947457634,32226200),new $Int64(1149341356,2032329073),new $Int64(106485445,1356518208),new $Int64(-2067810156,3430061722),new $Int64(-1484435135,3820169661),new $Int64(-1665985194,2981816134),new $Int64(1017155588,4184371017),new $Int64(206574701,2119206761),new $Int64(-852109057,2472200560),new $Int64(-560457548,2853524696),new $Int64(1307803389,1681119904),new $Int64(-174986835,95608918),new $Int64(392686347,3690479145),new $Int64(-1205570926,1397922290),new $Int64(-1159314025,1516129515),new $Int64(-320178155,1547420459),new $Int64(1311333971,1470949486),new $Int64(-1953469798,1336785672),new $Int64(-45086614,4131677129),new $Int64(-1392278100,4246329084),new $Int64(-1142500187,3788585631),new $Int64(-66478285,3080389532),new $Int64(-646438364,2215402037),new $Int64(391002300,1171593935),new $Int64(1408774047,1423855166),new $Int64(-519177718,2276716302),new $Int64(-368453140,2068027241),new $Int64(1369359303,3427553297),new $Int64(189241615,3289637845),new $Int64(1057480830,3486407650),new $Int64(-1512910664,3071877822),new $Int64(1159653919,3363620705),new $Int64(-934256930,4159821533),new $Int64(-76621938,1894661),new $Int64(-674493898,1156868282),new $Int64(348271067,776219088),new $Int64(-501428838,2425634259),new $Int64(1716021749,680510161),new $Int64(-574263456,1310101429),new $Int64(1095885995,2964454134),new $Int64(-325695512,3467098407),new $Int64(1990672920,2109628894),new $Int64(-2139648704,1232604732),new $Int64(-1838070714,3261916179),new $Int64(1699175360,434597899),new $Int64(235436061,1624796439),new $Int64(-1626402839,3589632480),new $Int64(1198416575,864579159),new $Int64(-1938748161,1380889830),new $Int64(619206309,2654509477),new $Int64(1419738251,1468209306),new $Int64(-1744284772,100794388),new $Int64(-1191421458,2991674471),new $Int64(-208666741,2224662036),new $Int64(-173659161,977097250),new $Int64(1351320195,726419512),new $Int64(-183459897,1747974366),new $Int64(-753095183,1556430604),new $Int64(-1049492215,1080776742),new $Int64(-385846958,280794874),new $Int64(117767733,919835643),new $Int64(-967009426,3434019658),new $Int64(-1951414480,2461941785),new $Int64(133215641,3615001066),new $Int64(417204809,3103414427),new $Int64(790056561,3380809712),new $Int64(-1267681408,2724693469),new $Int64(547796833,598827710),new $Int64(-1846559452,3452273442),new $Int64(-75778224,649274915),new $Int64(-801301329,2585724112),new $Int64(-1510934263,3165579553),new $Int64(1185578221,2635894283),new $Int64(-52910178,2053289721),new $Int64(985976581,3169337108),new $Int64(1170569632,144717764),new $Int64(1079216270,1383666384),new $Int64(-124804942,681540375),new $Int64(1375448925,537050586),new $Int64(-1964768344,315246468),new $Int64(226402871,849323088),new $Int64(-885062465,45543944),new $Int64(-946445250,2319052083),new $Int64(-40708194,3613090841),new $Int64(560472520,2992171180),new $Int64(-381863169,2068244785),new $Int64(917538188,4239862634),new $Int64(-1369555809,3892253031),new $Int64(720683925,958186149),new $Int64(-423297785,1877702262),new $Int64(1357886971,837674867),new $Int64(1837048883,1507589294),new $Int64(1905518400,873336795),new $Int64(-1879761037,2764496274),new $Int64(-1806480530,4196182374),new $Int64(-1066765755,550964545),new $Int64(818747069,420611474),new $Int64(-1924830376,204265180),new $Int64(1549974541,1787046383),new $Int64(1215581865,3102292318),new $Int64(418321538,1552199393),new $Int64(1243493047,980542004),new $Int64(267284263,3293718720),new $Int64(1179528763,3771917473),new $Int64(599484404,2195808264),new $Int64(252818753,3894702887),new $Int64(-1367475956,2099949527),new $Int64(1424094358,338442522),new $Int64(490737398,637158004),new $Int64(-1727621530,281976339),new $Int64(574970164,3619802330),new $Int64(-431930823,3084554784),new $Int64(-1264611183,4129772886),new $Int64(-2104399043,1680378557),new $Int64(-1621962591,3339087776),new $Int64(1680500332,4220317857),new $Int64(-1935828963,2959322499),new $Int64(1675600481,1488354890),new $Int64(-834863562,3958162143),new $Int64(-1226511573,2773705983),new $Int64(1876039582,225908689),new $Int64(-1183735113,908216283),new $Int64(-605696219,3574646075),new $Int64(-1827723091,1936937569),new $Int64(1519770881,75492235),new $Int64(816689472,1935193178),new $Int64(2142521206,2018250883),new $Int64(455141620,3943126022),new $Int64(-601399488,3066544345),new $Int64(1932392669,2793082663),new $Int64(-1239009361,3297036421),new $Int64(1640597065,2206987825),new $Int64(-553246738,807894872),new $Int64(-1781325307,766252117),new $Int64(2060649606,3833114345),new $Int64(845619743,1255067973),new $Int64(1201145605,741697208),new $Int64(-1476242608,2810093753),new $Int64(1109032642,4229340371),new $Int64(1462188720,1361684224),new $Int64(-1159399429,1906263026),new $Int64(475781207,3904421704),new $Int64(-623537128,1769075545),new $Int64(1062308525,2621599764),new $Int64(1279509432,3431891480),new $Int64(-1742751146,1871896503),new $Int64(128756421,1412808876),new $Int64(1605404688,952876175),new $Int64(-230443691,1824438899),new $Int64(1662295856,1005035476),new $Int64(-156574141,527508597),new $Int64(1288873303,3066806859),new $Int64(565995893,3244940914),new $Int64(-889746188,209092916),new $Int64(-247669406,1242699167),new $Int64(-713830396,456723774),new $Int64(1776978905,1001252870),new $Int64(1468772157,2026725874),new $Int64(857254202,2137562569),new $Int64(765939740,3183366709),new $Int64(1533887628,2612072960),new $Int64(56977098,1727148468),new $Int64(-1197583895,3803658212),new $Int64(1883670356,479946959),new $Int64(685713571,1562982345),new $Int64(-1946242443,1766109365),new $Int64(700596547,3257093788),new $Int64(-184714929,2365720207),new $Int64(93384808,3742754173),new $Int64(-458385235,2878193673),new $Int64(1096135042,2174002182),new $Int64(-834260953,3573511231),new $Int64(-754572527,1760299077),new $Int64(-1375627191,2260779833),new $Int64(-866019274,1452805722),new $Int64(-1229671918,2940011802),new $Int64(1890251082,1886183802),new $Int64(893897673,2514369088),new $Int64(1644345561,3924317791),new $Int64(-1974867432,500935732),new $Int64(1403501753,676580929),new $Int64(-1565912283,1184984890),new $Int64(-691968413,1271474274),new $Int64(-1828754738,3163791473),new $Int64(2051027584,2842487377),new $Int64(1511537551,2170968612),new $Int64(573262976,3535856740),new $Int64(-2053227187,1488599718),new $Int64(-1180531831,3408913763),new $Int64(-2086531912,2501050084),new $Int64(-875130448,1639124157),new $Int64(-2009482504,4088176393),new $Int64(1574896563,3989947576),new $Int64(-165243708,3414355209),new $Int64(-792329287,2275136352),new $Int64(-2057774345,2151835223),new $Int64(-931144933,1654534827),new $Int64(-679921451,377892833),new $Int64(-482716010,660204544),new $Int64(85706799,390828249),new $Int64(-1422172693,3402783878),new $Int64(-1468634160,3717936603),new $Int64(1113532086,2211058823),new $Int64(1564224320,2692150867),new $Int64(1952770442,1928910388),new $Int64(788716862,3931011137),new $Int64(1083670504,1112701047),new $Int64(-68150572,2452299106),new $Int64(-896164822,2337204777),new $Int64(1774877857,273889282),new $Int64(1798719843,1462008793),new $Int64(2138834788,1554494002),new $Int64(-1194967131,182675323),new $Int64(-1598554764,1882802136),new $Int64(589279648,3700220025),new $Int64(381039426,3083431543),new $Int64(-851859191,3622207527),new $Int64(338126939,432729309),new $Int64(-1667470126,2391914317),new $Int64(-1849558151,235747924),new $Int64(2120733629,3088823825),new $Int64(-745079795,2314658321),new $Int64(1165929723,2957634338),new $Int64(501323675,4117056981),new $Int64(1564699815,1482500298),new $Int64(-740826490,840489337),new $Int64(799522364,3483178565),new $Int64(532129761,2074004656),new $Int64(724246478,3643392642),new $Int64(-665153481,1583624461),new $Int64(-885822954,287473085),new $Int64(1667835381,3136843981),new $Int64(1138806821,1266970974),new $Int64(135185781,1998688839),new $Int64(392094735,1492900209),new $Int64(1031326774,1538112737),new $Int64(-2070568842,2207265429),new $Int64(-1886797613,963263315),new $Int64(1671145500,2295892134),new $Int64(1068469660,2002560897),new $Int64(-356250305,1369254035),new $Int64(33436120,3353312708),new $Int64(57507843,947771099),new $Int64(-1945755145,1747061399),new $Int64(1507240140,2047354631),new $Int64(720000810,4165367136),new $Int64(479265078,3388864963),new $Int64(-952181250,286492130),new $Int64(2045622690,2795735007),new $Int64(-715730566,3703961339),new $Int64(-148436487,1797825479),new $Int64(1429039600,1116589674),new $Int64(-1665420098,2593309206),new $Int64(1329049334,3404995677),new $Int64(-750579440,3453462936),new $Int64(1014767077,3016498634),new $Int64(75698599,1650371545),new $Int64(1592007860,212344364),new $Int64(1127766888,3843932156),new $Int64(-748019856,3573129983),new $Int64(-890581831,665897820),new $Int64(1071492673,1675628772),new $Int64(243225682,2831752928),new $Int64(2120298836,1486294219),new $Int64(-1954407413,268782709),new $Int64(-1002123503,4186179080),new $Int64(624342951,1613720397),new $Int64(857179861,2703686015),new $Int64(-911618704,2205342611),new $Int64(-672703993,1411666394),new $Int64(-1528454899,677744900),new $Int64(-1876628533,4172867247),new $Int64(135494707,2163418403),new $Int64(849547544,2841526879),new $Int64(-1117516959,1082141470),new $Int64(-1770111792,4046134367),new $Int64(51415528,2142943655),new $Int64(-249824333,3124627521),new $Int64(998228909,219992939),new $Int64(-1078790951,1756846531),new $Int64(1283749206,1225118210),new $Int64(-525858006,1647770243),new $Int64(-2035959705,444807907),new $Int64(2036369448,3952076173),new $Int64(53201823,1461839639),new $Int64(315761893,3699250910),new $Int64(702974850,1373688981),new $Int64(734022261,147523747),new $Int64(-2047330906,1211276581),new $Int64(1294440951,2548832680),new $Int64(1144696256,1995631888),new $Int64(-1992983070,2011457303),new $Int64(-1351022674,3057425772),new $Int64(667839456,81484597),new $Int64(-1681980888,3646681560),new $Int64(-1372462725,635548515),new $Int64(602489502,2508044581),new $Int64(-1794220117,1014917157),new $Int64(719992433,3214891315),new $Int64(-1294799037,959582252),new $Int64(226415134,3347040449),new $Int64(-362868096,4102971975),new $Int64(397887437,4078022210),new $Int64(-536803826,2851767182),new $Int64(-1398321012,1540160644),new $Int64(-1549098876,1057290595),new $Int64(-112592988,3907769253),new $Int64(579300318,4248952684),new $Int64(-1054576049,132554364),new $Int64(-1085862414,1029351092),new $Int64(697840928,2583007416),new $Int64(298619124,1486185789),new $Int64(55905697,2871589073),new $Int64(2017643612,723203291),new $Int64(146250550,2494333952),new $Int64(-1082993397,2230939180),new $Int64(-1804568072,3943232912),new $Int64(1768732449,2181367922),new $Int64(-729261111,2889274791),new $Int64(1824032949,2046728161),new $Int64(1653899792,1376052477),new $Int64(1022327048,381236993),new $Int64(-1113097690,3188942166),new $Int64(-74480109,350070824),new $Int64(144881592,61758415),new $Int64(-741824226,3492950336),new $Int64(-2030042720,3093818430),new $Int64(-453590535,2962480613),new $Int64(-1912050708,3154871160),new $Int64(-1636478569,3228564679),new $Int64(610731502,888276216),new $Int64(-946702974,3574998604),new $Int64(-1277068380,1967526716),new $Int64(-1556147941,1554691298),new $Int64(-1573024234,339944798),new $Int64(1223764147,1154515356),new $Int64(1825645307,967516237),new $Int64(1546195135,596588202),new $Int64(-1867600880,3764362170),new $Int64(-1655392592,266611402),new $Int64(-393255880,2047856075),new $Int64(-1000726433,21444105),new $Int64(-949424754,3065563181),new $Int64(-232418803,1140663212),new $Int64(633187674,2323741028),new $Int64(2126290159,3103873707),new $Int64(1008658319,2766828349),new $Int64(-485587503,1970872996),new $Int64(1628585413,3766615585),new $Int64(-595148528,2036813414),new $Int64(-1994877121,3105536507),new $Int64(13954645,3396176938),new $Int64(-721402003,1377154485),new $Int64(-61839181,3807014186),new $Int64(543009040,3710110597),new $Int64(-1751425519,916420443),new $Int64(734556788,2103831255),new $Int64(-1766161494,717331943),new $Int64(-1574598896,3550505941),new $Int64(45939673,378749927),new $Int64(-1997615719,611017331),new $Int64(592130075,758907650),new $Int64(1012992349,154266815),new $Int64(-1040454942,1407468696),new $Int64(-1678191250,970098704),new $Int64(-285057486,1971660656),new $Int64(998365243,3332747885),new $Int64(1947089649,1935189867),new $Int64(1510248801,203520055),new $Int64(-1305165746,3916463034),new $Int64(-388598655,3474113316),new $Int64(1036101639,316544223),new $Int64(-1773744891,1650844677),new $Int64(-907191419,4267565603),new $Int64(-1070275024,2501167616),new $Int64(-1520651863,3929401789),new $Int64(-2091360852,337170252),new $Int64(-960502090,2061966842),new $Int64(-304190848,2508461464),new $Int64(-1941471116,2791377107),new $Int64(1240791848,1227227588),new $Int64(1813978778,1709681848),new $Int64(1153692192,3768820575),new $Int64(-1002297449,2887126398),new $Int64(-1447111334,296561685),new $Int64(700300844,3729960077),new $Int64(-1572311344,372833036),new $Int64(2078875613,2409779288),new $Int64(1829161290,555274064),new $Int64(-1105595719,4239804901),new $Int64(1839403216,3723486978),new $Int64(-1649093095,2145871984),new $Int64(-1582765715,3565480803),new $Int64(-1568653827,2197313814),new $Int64(974785092,3613674566),new $Int64(438638731,3042093666),new $Int64(-96556264,3324034321),new $Int64(869420878,3708873369),new $Int64(946682149,1698090092),new $Int64(1618900382,4213940712),new $Int64(-1843479747,2087477361),new $Int64(-1766167800,2407950639),new $Int64(-1296225558,3942568569),new $Int64(-1223900450,4088074412),new $Int64(723260036,2964773675),new $Int64(-673921829,1539178386),new $Int64(1062961552,2694849566),new $Int64(460977733,2120273838),new $Int64(-1604570740,2484608657),new $Int64(880846449,2956190677),new $Int64(1970902366,4223313749),new $Int64(662161910,3502682327),new $Int64(705634754,4133891139),new $Int64(-1031359300,1166449596),new $Int64(1038247601,3362705993),new $Int64(93734798,3892921029),new $Int64(1876124043,786869787),new $Int64(1057490746,1046342263),new $Int64(242763728,493777327),new $Int64(-853573201,3304827646),new $Int64(616460742,125356352),new $Int64(499300063,74094113),new $Int64(-795586925,2500816079),new $Int64(-490248444,514015239),new $Int64(1377565129,543520454),new $Int64(-2039776725,3614531153),new $Int64(2056746300,2356753985),new $Int64(1390062617,2018141668),new $Int64(131272971,2087974891),new $Int64(-1502927041,3166972343),new $Int64(372256200,1517638666),new $Int64(-935275664,173466846),new $Int64(-695774461,4241513471),new $Int64(-1413550842,2783126920),new $Int64(1972004134,4167264826),new $Int64(29260506,3907395640),new $Int64(-910901561,1539634186),new $Int64(-595957298,178241987),new $Int64(-113277636,182168164),new $Int64(-1102530459,2386154934),new $Int64(1379126408,4077374341),new $Int64(-2114679722,1732699140),new $Int64(-421057745,1041306002),new $Int64(1860414813,2068001749),new $Int64(1005320202,3208962910),new $Int64(844054010,697710380),new $Int64(-1509359403,2228431183),new $Int64(-810313977,3554678728),new $Int64(-750989047,173470263),new $Int64(-85886265,3848297795),new $Int64(-926936977,246236185),new $Int64(-1984190461,2066374846),new $Int64(1771673660,312890749),new $Int64(703378057,3573310289),new $Int64(-598851901,143166754),new $Int64(613554316,2081511079),new $Int64(1197802104,486038032),new $Int64(-1906483789,2982218564),new $Int64(364901986,1000939191),new $Int64(1902782651,2750454885),new $Int64(-671844857,3375313137),new $Int64(-1643868040,881302957),new $Int64(-1508784745,2514186393),new $Int64(-1703622845,360024739),new $Int64(1399671872,292500025),new $Int64(1381210821,2276300752),new $Int64(521803381,4069087683),new $Int64(-1938982667,1637778212),new $Int64(720490469,1676670893),new $Int64(1067262482,3855174429),new $Int64(2114075974,2067248671),new $Int64(-89426259,2884561259),new $Int64(-805741095,2456511185),new $Int64(983726246,561175414),new $Int64(-1719489563,432588903),new $Int64(885133709,4059399550),new $Int64(-93096266,1075014784),new $Int64(-1733832628,2728058415),new $Int64(1839142064,1299703678),new $Int64(1262333188,2347583393),new $Int64(1285481956,2468164145),new $Int64(-1158354011,1140014346),new $Int64(2033889184,1936972070),new $Int64(-1737578993,3870530098),new $Int64(-484494257,1717789158),new $Int64(-232997156,1153452491),new $Int64(-990424416,3948827651),new $Int64(-1357145630,2101413152),new $Int64(1495744672,3854091229),new $Int64(83644069,4215565463),new $Int64(-1385277313,1202710438),new $Int64(-564909037,2072216740),new $Int64(705690639,2066751068),new $Int64(-2113583312,173902580),new $Int64(-741983806,142459001),new $Int64(172391592,1889151926),new $Int64(-498943125,3034199774),new $Int64(1618587731,516490102),new $Int64(93114264,3692577783),new $Int64(-2078821353,2953948865),new $Int64(-320938673,4041040923),new $Int64(-1942517976,592046130),new $Int64(-705643640,384297211),new $Int64(-2051649464,265863924),new $Int64(2101717619,1333136237),new $Int64(1499611781,1406273556),new $Int64(1074670496,426305476),new $Int64(125704633,2750898176),new $Int64(488068495,1633944332),new $Int64(2037723464,3236349343),new $Int64(-1703423246,4013676611),new $Int64(1718532237,2265047407),new $Int64(1433593806,875071080),new $Int64(-343047503,1418843655),new $Int64(2009228711,451657300),new $Int64(1229446621,1866374663),new $Int64(1653472867,1551455622),new $Int64(577191481,3560962459),new $Int64(1669204077,3347903778),new $Int64(-298327194,2675874918),new $Int64(-1831355577,2762991672),new $Int64(530492383,3689068477),new $Int64(844089962,4071997905),new $Int64(1508155730,1381702441),new $Int64(2089931018,2373284878),new $Int64(-864267462,2143983064),new $Int64(308739063,1938207195),new $Int64(1754949306,1188152253),new $Int64(1272345009,615870490),new $Int64(742653194,2662252621),new $Int64(1477718295,3839976789),new $Int64(-2091334213,306752547),new $Int64(-1426688067,2162363077),new $Int64(-57052633,2767224719),new $Int64(-1471624099,2628837712),new $Int64(1678405918,2967771969),new $Int64(1694285728,499792248),new $Int64(-1744131281,4285253508),new $Int64(962357072,2856511070),new $Int64(679471692,2526409716),new $Int64(-1793706473,1240875658),new $Int64(-914893422,2577342868),new $Int64(-1001298215,4136853496),new $Int64(-1477114974,2403540137),new $Int64(1372824515,1371410668),new $Int64(-176562048,371758825),new $Int64(-441063112,1528834084),new $Int64(-71688630,1504757260),new $Int64(-1461820072,699052551),new $Int64(-505543539,3347789870),new $Int64(1951619734,3430604759),new $Int64(2119672219,1935601723),new $Int64(966789690,834676166)]);P=N(new AG.ptr(new A.Mutex.ptr(false,false,false,false,0),AQ.nil));AH=B.New("randautoseed");AJ=$toNativeArray($kindUint32,[1991057938,0,1611602771,1826899878,1918584482,1969227037,2001281515,2023368125,2039498179,2051788381,2061460127,2069267110,2075699398,2081089314,2085670119,2089610331,2093034710,2096037586,2098691595,2101053571,2103168620,2105072996,2106796166,2108362327,2109791536,2111100552,2112303493,2113412330,2114437283,2115387130,2116269447,2117090813,2117856962,2118572919,2119243101,2119871411,2120461303,2121015852,2121537798,2122029592,2122493434,2122931299,2123344971,2123736059,2124106020,2124456175,2124787725,2125101763,2125399283,2125681194,2125948325,2126201433,2126441213,2126668298,2126883268,2127086657,2127278949,2127460589,2127631985,2127793506,2127945490,2128088244,2128222044,2128347141,2128463758,2128572095,2128672327,2128764606,2128849065,2128925811,2128994934,2129056501,2129110560,2129157136,2129196237,2129227847,2129251929,2129268426,2129277255,2129278312,2129271467,2129256561,2129233410,2129201800,2129161480,2129112170,2129053545,2128985244,2128906855,2128817916,2128717911,2128606255,2128482298,2128345305,2128194452,2128028813,2127847342,2127648860,2127432031,2127195339,2126937058,2126655214,2126347546,2126011445,2125643893,2125241376,2124799783,2124314271,2123779094,2123187386,2122530867,2121799464,2120980787,2120059418,2119015917,2117825402,2116455471,2114863093,2112989789,2110753906,2108037662,2104664315,2100355223,2094642347,2086670106,2074676188,2054300022,2010539237]);AK=$toNativeArray($kindFloat32,[1.7290404663583558e-09,1.2680928529462676e-10,1.689751810696194e-10,1.9862687883343e-10,2.223243117382978e-10,2.4244936613904144e-10,2.601613091623989e-10,2.761198769629658e-10,2.9073962681813725e-10,3.042996965518796e-10,3.169979556627567e-10,3.289802041894774e-10,3.4035738116777736e-10,3.5121602848242617e-10,3.61625090983253e-10,3.7164057942185025e-10,3.813085680537398e-10,3.906675816178762e-10,3.997501218933053e-10,4.0858399996679395e-10,4.1719308563337165e-10,4.255982233303257e-10,4.3381759295968436e-10,4.4186720948857783e-10,4.497613115272969e-10,4.57512583373898e-10,4.6513240481438345e-10,4.726310454117311e-10,4.800177477726209e-10,4.873009773476156e-10,4.944885056978876e-10,5.015873272284921e-10,5.086040477664255e-10,5.155446070048697e-10,5.224146670812502e-10,5.292193350214802e-10,5.359634958068682e-10,5.426517013518151e-10,5.492881705038144e-10,5.558769555769061e-10,5.624218868405251e-10,5.689264614971989e-10,5.75394121238304e-10,5.818281967329142e-10,5.882316855831959e-10,5.946076964136182e-10,6.009590047817426e-10,6.072883862451306e-10,6.135985053390414e-10,6.19892026598734e-10,6.261713370037114e-10,6.324390455780815e-10,6.386973727678935e-10,6.449488165749528e-10,6.511955974453087e-10,6.574400468473129e-10,6.636843297158634e-10,6.699307220081607e-10,6.761814441702541e-10,6.824387166481927e-10,6.887046488657234e-10,6.949815167800466e-10,7.012714853260604e-10,7.075767749498141e-10,7.13899661608508e-10,7.202424212593428e-10,7.266072743483676e-10,7.329966078550854e-10,7.394128087589991e-10,7.458582640396116e-10,7.523354716987285e-10,7.588469852493063e-10,7.653954137154528e-10,7.719834771435785e-10,7.786139510912449e-10,7.852897221383159e-10,7.920137878869582e-10,7.987892014504894e-10,8.056192379868321e-10,8.125072836762115e-10,8.194568912323064e-10,8.264716688799467e-10,8.3355555791087e-10,8.407127216614185e-10,8.479473234679347e-10,8.552640262671218e-10,8.626675485068347e-10,8.701631637464402e-10,8.777562010564566e-10,8.854524335966119e-10,8.932581896381464e-10,9.011799639857543e-10,9.092249730890956e-10,9.174008219758889e-10,9.25715837318819e-10,9.341788453909317e-10,9.42799727177146e-10,9.515889187738935e-10,9.605578554783278e-10,9.697193048552322e-10,9.790869226478094e-10,9.886760299337993e-10,9.985036131254788e-10,1.008588212947359e-09,1.0189509236369076e-09,1.0296150598776421e-09,1.040606933955246e-09,1.0519566329136865e-09,1.0636980185552147e-09,1.0758701707302976e-09,1.0885182755160372e-09,1.101694735439196e-09,1.115461056855338e-09,1.1298901814171813e-09,1.1450695946990663e-09,1.1611052119775422e-09,1.178127595480305e-09,1.1962995039027646e-09,1.2158286599728285e-09,1.2369856250415978e-09,1.2601323318151003e-09,1.2857697129220469e-09,1.3146201904845611e-09,1.3477839955200466e-09,1.3870635751089821e-09,1.43574030442295e-09,1.5008658760251592e-09,1.6030947680434338e-09]);AL=$toNativeArray($kindFloat32,[1,0.963599681854248,0.9362826943397522,0.9130436182022095,0.8922816514968872,0.8732430338859558,0.8555005788803101,0.8387836217880249,0.8229072093963623,0.8077383041381836,0.7931770086288452,0.7791460752487183,0.7655841708183289,0.7524415850639343,0.7396772503852844,0.7272568941116333,0.7151514887809753,0.7033361196517944,0.6917891502380371,0.6804918646812439,0.6694276928901672,0.6585819721221924,0.6479418277740479,0.6374954581260681,0.6272324919700623,0.6171433925628662,0.6072195172309875,0.5974531769752502,0.5878370404243469,0.5783646702766418,0.5690299868583679,0.5598273873329163,0.550751805305481,0.5417983531951904,0.5329626798629761,0.5242405533790588,0.5156282186508179,0.5071220397949219,0.49871864914894104,0.4904148280620575,0.48220765590667725,0.47409430146217346,0.466072142124176,0.45813870429992676,0.45029163360595703,0.44252872467041016,0.4348478317260742,0.42724698781967163,0.41972434520721436,0.41227802634239197,0.40490642189979553,0.39760786294937134,0.3903807997703552,0.3832238018512726,0.3761354684829712,0.3691144585609436,0.36215949058532715,0.3552693724632263,0.3484429717063904,0.3416791558265686,0.33497685194015503,0.32833510637283325,0.3217529058456421,0.3152293860912323,0.30876362323760986,0.3023548424243927,0.2960021495819092,0.2897048592567444,0.28346219658851624,0.2772735059261322,0.271138072013855,0.2650552988052368,0.25902456045150757,0.25304529070854187,0.24711695313453674,0.24123899638652802,0.23541094362735748,0.22963231801986694,0.22390270233154297,0.21822164952754974,0.21258877217769623,0.20700371265411377,0.20146611332893372,0.1959756463766098,0.19053204357624054,0.18513499200344086,0.17978426814079285,0.1744796335697174,0.16922089457511902,0.16400785744190216,0.1588403731584549,0.15371830761432648,0.14864157140254974,0.14361007511615753,0.13862377405166626,0.13368265330791473,0.12878671288490295,0.12393598258495331,0.11913054436445236,0.11437050998210907,0.10965602099895477,0.1049872562289238,0.10036443918943405,0.09578784555196762,0.09125780314207077,0.08677466958761215,0.08233889937400818,0.07795098423957825,0.07361150532960892,0.06932111829519272,0.06508058309555054,0.06089077144861221,0.05675266310572624,0.05266740173101425,0.048636294901371,0.044660862535238266,0.040742866694927216,0.03688438981771469,0.03308788686990738,0.029356317594647408,0.025693291798233986,0.02210330404341221,0.018592102453112602,0.015167297795414925,0.011839478276669979,0.0086244847625494,0.005548994988203049,0.0026696291752159595]);AM=$toNativeArray($kindUint32,[3801129273,0,2615860924,3279400049,3571300752,3733536696,3836274812,3906990442,3958562475,3997804264,4028649213,4053523342,4074002619,4091154507,4105727352,4118261130,4129155133,4138710916,4147160435,4154685009,4161428406,4167506077,4173011791,4178022498,4182601930,4186803325,4190671498,4194244443,4197554582,4200629752,4203493986,4206168142,4208670408,4211016720,4213221098,4215295924,4217252177,4219099625,4220846988,4222502074,4224071896,4225562770,4226980400,4228329951,4229616109,4230843138,4232014925,4233135020,4234206673,4235232866,4236216336,4237159604,4238064994,4238934652,4239770563,4240574564,4241348362,4242093539,4242811568,4243503822,4244171579,4244816032,4245438297,4246039419,4246620374,4247182079,4247725394,4248251127,4248760037,4249252839,4249730206,4250192773,4250641138,4251075867,4251497493,4251906522,4252303431,4252688672,4253062674,4253425844,4253778565,4254121205,4254454110,4254777611,4255092022,4255397640,4255694750,4255983622,4256264513,4256537670,4256803325,4257061702,4257313014,4257557464,4257795244,4258026541,4258251531,4258470383,4258683258,4258890309,4259091685,4259287526,4259477966,4259663135,4259843154,4260018142,4260188212,4260353470,4260514019,4260669958,4260821380,4260968374,4261111028,4261249421,4261383632,4261513736,4261639802,4261761900,4261880092,4261994441,4262105003,4262211835,4262314988,4262414513,4262510454,4262602857,4262691764,4262777212,4262859239,4262937878,4263013162,4263085118,4263153776,4263219158,4263281289,4263340187,4263395872,4263448358,4263497660,4263543789,4263586755,4263626565,4263663224,4263696735,4263727099,4263754314,4263778377,4263799282,4263817020,4263831582,4263842955,4263851124,4263856071,4263857776,4263856218,4263851370,4263843206,4263831695,4263816804,4263798497,4263776735,4263751476,4263722676,4263690284,4263654251,4263614520,4263571032,4263523724,4263472530,4263417377,4263358192,4263294892,4263227394,4263155608,4263079437,4262998781,4262913534,4262823581,4262728804,4262629075,4262524261,4262414220,4262298801,4262177846,4262051187,4261918645,4261780032,4261635148,4261483780,4261325704,4261160681,4260988457,4260808763,4260621313,4260425802,4260221905,4260009277,4259787550,4259556329,4259315195,4259063697,4258801357,4258527656,4258242044,4257943926,4257632664,4257307571,4256967906,4256612870,4256241598,4255853155,4255446525,4255020608,4254574202,4254106002,4253614578,4253098370,4252555662,4251984571,4251383021,4250748722,4250079132,4249371435,4248622490,4247828790,4246986404,4246090910,4245137315,4244119963,4243032411,4241867296,4240616155,4239269214,4237815118,4236240596,4234530035,4232664930,4230623176,4228378137,4225897409,4223141146,4220059768,4216590757,4212654085,4208145538,4202926710,4196809522,4189531420,4180713890,4169789475,4155865042,4137444620,4111806704,4073393724,4008685917,3873074895]);AN=$toNativeArray($kindFloat32,[2.0249555365836613e-09,1.4866739783681027e-11,2.4409616689036184e-11,3.1968806074589295e-11,3.844677007314168e-11,4.42282044321729e-11,4.951644302919611e-11,5.443358958023836e-11,5.905943789574764e-11,6.34494193296753e-11,6.764381416113352e-11,7.167294535648239e-11,7.556032188826833e-11,7.932458162551725e-11,8.298078890689453e-11,8.654132271912474e-11,9.001651507523079e-11,9.341507428706208e-11,9.674443190998971e-11,1.0001099254308699e-10,1.0322031424037093e-10,1.0637725422757427e-10,1.0948611461891744e-10,1.1255067711157807e-10,1.1557434870246297e-10,1.1856014781042035e-10,1.2151082917633005e-10,1.2442885610752796e-10,1.2731647680563896e-10,1.3017574518325858e-10,1.330085347417409e-10,1.3581656632677408e-10,1.386014220061682e-10,1.413645728254309e-10,1.4410737880776736e-10,1.4683107507629245e-10,1.4953686899854546e-10,1.522258291641876e-10,1.5489899640730442e-10,1.575573282952547e-10,1.6020171300645814e-10,1.628330109637588e-10,1.6545202707884954e-10,1.68059510752272e-10,1.7065616975120435e-10,1.73242697965037e-10,1.758197337720091e-10,1.783878739169964e-10,1.8094774290045024e-10,1.834998542005195e-10,1.8604476292871652e-10,1.8858298256319017e-10,1.9111498494872592e-10,1.9364125580789704e-10,1.9616222535212557e-10,1.9867835154840918e-10,2.011900368525943e-10,2.0369768372052732e-10,2.062016807302669e-10,2.0870240258208383e-10,2.1120022397624894e-10,2.136955057352452e-10,2.1618855317040442e-10,2.1867974098199738e-10,2.2116936060356807e-10,2.2365774510202385e-10,2.2614519978869652e-10,2.2863201609713002e-10,2.3111849933865614e-10,2.3360494094681883e-10,2.3609159072179864e-10,2.3857874009713953e-10,2.4106666662859766e-10,2.4355562011635357e-10,2.460458781161634e-10,2.485376904282077e-10,2.5103127909709144e-10,2.5352694943414633e-10,2.560248957284017e-10,2.585253955356137e-10,2.610286709003873e-10,2.6353494386732734e-10,2.6604446423661443e-10,2.6855745405285347e-10,2.71074163116225e-10,2.7359478571575835e-10,2.7611959940720965e-10,2.786487707240326e-10,2.8118254946640775e-10,2.8372118543451563e-10,2.8626484516180994e-10,2.8881380620404684e-10,2.9136826285025563e-10,2.9392840938946563e-10,2.96494523377433e-10,2.990667713476114e-10,3.016454031001814e-10,3.042306406797479e-10,3.068226783753403e-10,3.09421765987139e-10,3.12028125559749e-10,3.1464195138219964e-10,3.17263521010247e-10,3.1989300097734485e-10,3.225306410836737e-10,3.2517669112941405e-10,3.2783134540359526e-10,3.3049485370639786e-10,3.3316743808242677e-10,3.3584937608743815e-10,3.385408342548857e-10,3.4124211789610115e-10,3.4395342130011386e-10,3.4667499426710435e-10,3.494071143528288e-10,3.521500313574677e-10,3.54903967325626e-10,3.576691720574843e-10,3.6044595086437425e-10,3.632345535464765e-10,3.660352021483959e-10,3.688482297370399e-10,3.716738583570134e-10,3.7451239331964814e-10,3.773641121807003e-10,3.802292924959261e-10,3.831082673322328e-10,3.8600128648980103e-10,3.8890865527996255e-10,3.9183070676962473e-10,3.9476774627011935e-10,3.977200790927782e-10,4.006880383045086e-10,4.0367195697221803e-10,4.066721681628138e-10,4.0968900494320337e-10,4.127228558914453e-10,4.15774054074447e-10,4.188429603146915e-10,4.2192993543466173e-10,4.25035395767992e-10,4.2815970213716525e-10,4.313032986313914e-10,4.3446651831757777e-10,4.376498607960855e-10,4.408536868893975e-10,4.4407846844229937e-10,4.4732464954400086e-10,4.5059267428371186e-10,4.538830145062178e-10,4.5719619756745544e-10,4.605326675566346e-10,4.638929240741163e-10,4.672775499869886e-10,4.706869893844612e-10,4.74121908400349e-10,4.775827511238617e-10,4.810701836888143e-10,4.845848167178701e-10,4.881271498113904e-10,4.916979601254923e-10,4.952977472605369e-10,4.989272883726414e-10,5.025872495956207e-10,5.062783525744408e-10,5.100013189540675e-10,5.13756870379467e-10,5.175458395179078e-10,5.21369003525507e-10,5.252272505806843e-10,5.29121357839557e-10,5.330522134805449e-10,5.3702081670437e-10,5.41028055689452e-10,5.450749851476644e-10,5.491624932574268e-10,5.532918012640664e-10,5.574638528571541e-10,5.616799247931681e-10,5.659410717839819e-10,5.702485705860738e-10,5.746036979559221e-10,5.790077306500052e-10,5.83462111958255e-10,5.879682296594524e-10,5.925275825546805e-10,5.971417249561739e-10,6.01812211176167e-10,6.065408175714992e-10,6.113292094767075e-10,6.16179329782085e-10,6.21092954844471e-10,6.260721940876124e-10,6.311191569352559e-10,6.362359528111483e-10,6.414249686947926e-10,6.466885360545405e-10,6.520292639144998e-10,6.574497612987784e-10,6.629528592760892e-10,6.685415554485985e-10,6.742187919073217e-10,6.799880103436351e-10,6.858525969377638e-10,6.918161599145378e-10,6.978825850545434e-10,7.040559801829716e-10,7.103406751696184e-10,7.167412219288849e-10,7.232625609532306e-10,7.2990985477972e-10,7.366885990123251e-10,7.436047333442275e-10,7.506645305355164e-10,7.57874762946642e-10,7.652426470272644e-10,7.727759543385559e-10,7.804830115532013e-10,7.883728114777e-10,7.964550685635174e-10,8.047402189070851e-10,8.132396422944055e-10,8.219657177122031e-10,8.309318788590758e-10,8.401527806789488e-10,8.496445214056791e-10,8.594246980742071e-10,8.695127395874636e-10,8.799300732498239e-10,8.90700457834015e-10,9.01850316648023e-10,9.134091816243028e-10,9.254100818978372e-10,9.37890431984556e-10,9.508922538259412e-10,9.64463842123564e-10,9.78660263939446e-10,9.935448019859905e-10,1.0091912860943353e-09,1.0256859805934937e-09,1.0431305819125214e-09,1.0616465484503124e-09,1.0813799855569073e-09,1.1025096391392708e-09,1.1252564435793033e-09,1.149898620766976e-09,1.176793218427008e-09,1.2064089727203964e-09,1.2393785997488749e-09,1.2765849488616254e-09,1.319313880365769e-09,1.36954347862428e-09,1.4305497897382224e-09,1.5083649884672923e-09,1.6160853766322703e-09,1.7921247819074893e-09]);AO=$toNativeArray($kindFloat32,[1,0.9381436705589294,0.900469958782196,0.8717043399810791,0.847785472869873,0.8269932866096497,0.8084216713905334,0.7915276288986206,0.7759568691253662,0.7614634037017822,0.7478685975074768,0.7350381016731262,0.7228676676750183,0.7112747430801392,0.7001926302909851,0.6895664930343628,0.6793505549430847,0.669506311416626,0.6600008606910706,0.6508058309555054,0.6418967247009277,0.633251965045929,0.62485271692276,0.6166821718215942,0.608725368976593,0.6009689569473267,0.5934008955955505,0.5860103368759155,0.5787873864173889,0.5717230439186096,0.5648092031478882,0.5580382943153381,0.5514034032821655,0.5448982119560242,0.5385168790817261,0.5322538614273071,0.526104211807251,0.5200631618499756,0.5141264200210571,0.5082897543907166,0.5025495290756226,0.4969019889831543,0.4913438558578491,0.4858720004558563,0.48048335313796997,0.4751752018928528,0.4699448347091675,0.4647897481918335,0.4597076177597046,0.4546961486339569,0.4497532546520233,0.44487687945365906,0.4400651156902313,0.4353161156177521,0.4306281507015228,0.42599955201148987,0.42142874002456665,0.4169141948223114,0.4124544560909271,0.40804818272590637,0.4036940038204193,0.39939069747924805,0.3951369822025299,0.39093172550201416,0.38677382469177246,0.38266217708587646,0.378595769405365,0.37457355856895447,0.37059465050697327,0.366658091545105,0.362762987613678,0.358908474445343,0.35509374737739563,0.35131800174713135,0.3475804924964905,0.34388044476509094,0.34021714329719543,0.33658990263938904,0.3329980671405792,0.3294409513473511,0.32591795921325684,0.32242849469184875,0.3189719021320343,0.3155476748943329,0.31215524673461914,0.3087940812110901,0.30546361207962036,0.30216339230537415,0.29889291524887085,0.29565170407295227,0.2924392819404602,0.2892552316188812,0.28609907627105713,0.2829704284667969,0.27986884117126465,0.2767939269542694,0.2737452983856201,0.2707225978374481,0.26772540807724,0.26475343108177185,0.2618062496185303,0.258883535861969,0.2559850215911865,0.25311028957366943,0.25025907158851624,0.24743106961250305,0.2446259707212448,0.24184346199035645,0.23908329010009766,0.23634515702724457,0.2336287796497345,0.23093391954898834,0.22826029360294342,0.22560766339302063,0.22297576069831848,0.22036437690258026,0.21777324378490448,0.21520215272903442,0.212650865316391,0.21011915802955627,0.20760682225227356,0.20511364936828613,0.20263944566249847,0.20018397271633148,0.19774706661701202,0.1953285187482834,0.19292815029621124,0.19054576754570007,0.18818120658397675,0.18583425879478455,0.18350479006767273,0.18119260668754578,0.17889754474163055,0.17661945521831512,0.17435817420482635,0.1721135377883911,0.16988539695739746,0.16767361760139465,0.16547803580760956,0.16329853236675262,0.16113494336605072,0.1589871346950531,0.15685498714447021,0.15473836660385132,0.15263713896274567,0.1505511850118637,0.1484803706407547,0.14642459154129028,0.1443837285041809,0.14235764741897583,0.1403462439775467,0.13834942877292633,0.136367067694664,0.13439907133579254,0.1324453204870224,0.1305057406425476,0.12858019769191742,0.12666863203048706,0.12477091699838638,0.12288697808980942,0.1210167184472084,0.11916005611419678,0.11731690168380737,0.11548716574907303,0.11367076635360718,0.11186762899160385,0.11007767915725708,0.1083008274435997,0.10653700679540634,0.10478614270687103,0.1030481606721878,0.10132300108671188,0.0996105819940567,0.09791085124015808,0.09622374176979065,0.09454918652772903,0.09288713335990906,0.09123751521110535,0.08960027992725372,0.08797537535429001,0.08636274188756943,0.0847623273730278,0.08317409455776215,0.08159798383712769,0.08003395050764084,0.07848194986581802,0.07694194465875626,0.07541389018297195,0.07389774918556213,0.07239348441362381,0.070901058614254,0.06942043453454971,0.06795158982276917,0.06649449467658997,0.06504911929368973,0.06361543387174606,0.06219341605901718,0.06078304722905159,0.0593843050301075,0.05799717456102371,0.05662164092063904,0.05525768920779228,0.05390531197190285,0.05256449431180954,0.05123523622751236,0.04991753399372101,0.04861138388514519,0.047316793352365494,0.04603376239538193,0.044762298464775085,0.04350241273641586,0.04225412383675575,0.04101744294166565,0.039792392402887344,0.03857899457216263,0.03737728297710419,0.03618728369474411,0.03500903770327568,0.03384258225560188,0.0326879620552063,0.031545232981443405,0.030414443463087082,0.0292956605553627,0.028188949450850487,0.027094384655356407,0.02601204626262188,0.024942025542259216,0.023884421214461327,0.022839335724711418,0.021806888282299042,0.020787203684449196,0.019780423492193222,0.018786700442433357,0.017806200310587883,0.016839107498526573,0.015885621309280396,0.014945968054234982,0.01402039173990488,0.013109165243804455,0.012212592177093029,0.011331013403832912,0.010464809834957123,0.009614413604140282,0.008780314587056637,0.007963077165186405,0.007163353264331818,0.0063819061033427715,0.005619642324745655,0.004877655766904354,0.004157294984906912,0.003460264764726162,0.0027887988835573196,0.0021459676790982485,0.001536299823783338,0.0009672692976891994,0.0004541343660093844]);}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})(); $packages["github.com/88250/lute/ast"]=(function(){var $pkg={},$init,A,B,C,D,E,F,G,H,I,J,K,L,M,R,V,AA,AG,AS,BD,BL,BO,CU,CV,CW,CX,CY,Q,AB,AC,O,P,S,T,U,W,X,Y,Z,AD;A=$packages["bytes"];B=$packages["github.com/88250/lute/editor"];C=$packages["github.com/88250/lute/html"];D=$packages["github.com/88250/lute/lex"];E=$packages["github.com/88250/lute/util"];F=$packages["math/rand"];G=$packages["sort"];H=$packages["strconv"];I=$packages["strings"];J=$packages["sync"];K=$packages["time"];L=$packages["unicode/utf8"];M=$newType(4,$kindInt,"ast.WalkStatus",true,"github.com/88250/lute/ast",true,null);R=$newType(0,$kindStruct,"ast.Node",true,"github.com/88250/lute/ast",true,function(ID_,Box_,Path_,Spec_,Type_,Parent_,Previous_,Next_,FirstChild_,LastChild_,Children_,Tokens_,TypeStr_,Data_,Close_,LastLineBlank_,LastLineChecked_,CodeMarkerLen_,IsFencedCodeBlock_,CodeBlockFenceChar_,CodeBlockFenceLen_,CodeBlockFenceOffset_,CodeBlockOpenFence_,CodeBlockInfo_,CodeBlockCloseFence_,HtmlBlockType_,ListData_,TaskListItemChecked_,TaskListItemMarker_,TableAligns_,TableCellAlign_,TableCellContentWidth_,TableCellContentMaxWidth_,LinkType_,LinkRefLabel_,HeadingLevel_,HeadingSetext_,HeadingNormalizedID_,MathBlockDollarOffset_,FootnotesRefLabel_,FootnotesRefId_,FootnotesRefs_,HtmlEntityTokens_,KramdownIAL_,Properties_,TextMarkType_,TextMarkAHref_,TextMarkATitle_,TextMarkInlineMathContent_,TextMarkInlineMemoContent_,TextMarkBlockRefID_,TextMarkBlockRefSubtype_,TextMarkFileAnnotationRefID_,TextMarkTextContent_,AttributeViewID_,AttributeViewType_,CustomBlockFenceOffset_,CustomBlockInfo_,CalloutType_,CalloutTitle_,CalloutIcon_,CalloutIconType_){this.$val=this;if(arguments.length===0){this.ID="";this.Box="";this.Path="";this.Spec="";this.Type=0;this.Parent=AG.nil;this.Previous=AG.nil;this.Next=AG.nil;this.FirstChild=AG.nil;this.LastChild=AG.nil;this.Children=BL.nil;this.Tokens=BO.nil;this.TypeStr="";this.Data="";this.Close=false;this.LastLineBlank=false;this.LastLineChecked=false;this.CodeMarkerLen=0;this.IsFencedCodeBlock=false;this.CodeBlockFenceChar=0;this.CodeBlockFenceLen=0;this.CodeBlockFenceOffset=0;this.CodeBlockOpenFence=BO.nil;this.CodeBlockInfo=BO.nil;this.CodeBlockCloseFence=BO.nil;this.HtmlBlockType=0;this.ListData=CU.nil;this.TaskListItemChecked=false;this.TaskListItemMarker=0;this.TableAligns=CV.nil;this.TableCellAlign=0;this.TableCellContentWidth=0;this.TableCellContentMaxWidth=0;this.LinkType=0;this.LinkRefLabel=BO.nil;this.HeadingLevel=0;this.HeadingSetext=false;this.HeadingNormalizedID="";this.MathBlockDollarOffset=0;this.FootnotesRefLabel=BO.nil;this.FootnotesRefId="";this.FootnotesRefs=BL.nil;this.HtmlEntityTokens=BO.nil;this.KramdownIAL=CW.nil;this.Properties=false;this.TextMarkType="";this.TextMarkAHref="";this.TextMarkATitle="";this.TextMarkInlineMathContent="";this.TextMarkInlineMemoContent="";this.TextMarkBlockRefID="";this.TextMarkBlockRefSubtype="";this.TextMarkFileAnnotationRefID="";this.TextMarkTextContent="";this.AttributeViewID="";this.AttributeViewType="";this.CustomBlockFenceOffset=0;this.CustomBlockInfo="";this.CalloutType="";this.CalloutTitle="";this.CalloutIcon="";this.CalloutIconType=0;return;}this.ID=ID_;this.Box=Box_;this.Path=Path_;this.Spec=Spec_;this.Type=Type_;this.Parent=Parent_;this.Previous=Previous_;this.Next=Next_;this.FirstChild=FirstChild_;this.LastChild=LastChild_;this.Children=Children_;this.Tokens=Tokens_;this.TypeStr=TypeStr_;this.Data=Data_;this.Close=Close_;this.LastLineBlank=LastLineBlank_;this.LastLineChecked=LastLineChecked_;this.CodeMarkerLen=CodeMarkerLen_;this.IsFencedCodeBlock=IsFencedCodeBlock_;this.CodeBlockFenceChar=CodeBlockFenceChar_;this.CodeBlockFenceLen=CodeBlockFenceLen_;this.CodeBlockFenceOffset=CodeBlockFenceOffset_;this.CodeBlockOpenFence=CodeBlockOpenFence_;this.CodeBlockInfo=CodeBlockInfo_;this.CodeBlockCloseFence=CodeBlockCloseFence_;this.HtmlBlockType=HtmlBlockType_;this.ListData=ListData_;this.TaskListItemChecked=TaskListItemChecked_;this.TaskListItemMarker=TaskListItemMarker_;this.TableAligns=TableAligns_;this.TableCellAlign=TableCellAlign_;this.TableCellContentWidth=TableCellContentWidth_;this.TableCellContentMaxWidth=TableCellContentMaxWidth_;this.LinkType=LinkType_;this.LinkRefLabel=LinkRefLabel_;this.HeadingLevel=HeadingLevel_;this.HeadingSetext=HeadingSetext_;this.HeadingNormalizedID=HeadingNormalizedID_;this.MathBlockDollarOffset=MathBlockDollarOffset_;this.FootnotesRefLabel=FootnotesRefLabel_;this.FootnotesRefId=FootnotesRefId_;this.FootnotesRefs=FootnotesRefs_;this.HtmlEntityTokens=HtmlEntityTokens_;this.KramdownIAL=KramdownIAL_;this.Properties=Properties_;this.TextMarkType=TextMarkType_;this.TextMarkAHref=TextMarkAHref_;this.TextMarkATitle=TextMarkATitle_;this.TextMarkInlineMathContent=TextMarkInlineMathContent_;this.TextMarkInlineMemoContent=TextMarkInlineMemoContent_;this.TextMarkBlockRefID=TextMarkBlockRefID_;this.TextMarkBlockRefSubtype=TextMarkBlockRefSubtype_;this.TextMarkFileAnnotationRefID=TextMarkFileAnnotationRefID_;this.TextMarkTextContent=TextMarkTextContent_;this.AttributeViewID=AttributeViewID_;this.AttributeViewType=AttributeViewType_;this.CustomBlockFenceOffset=CustomBlockFenceOffset_;this.CustomBlockInfo=CustomBlockInfo_;this.CalloutType=CalloutType_;this.CalloutTitle=CalloutTitle_;this.CalloutIcon=CalloutIcon_;this.CalloutIconType=CalloutIconType_;});V=$newType(0,$kindStruct,"ast.ListData",true,"github.com/88250/lute/ast",true,function(Typ_,Tight_,BulletChar_,Start_,Delimiter_,Padding_,MarkerOffset_,Checked_,Marker_,Num_){this.$val=this;if(arguments.length===0){this.Typ=0;this.Tight=false;this.BulletChar=0;this.Start=0;this.Delimiter=0;this.Padding=0;this.MarkerOffset=0;this.Checked=false;this.Marker=BO.nil;this.Num=0;return;}this.Typ=Typ_;this.Tight=Tight_;this.BulletChar=BulletChar_;this.Start=Start_;this.Delimiter=Delimiter_;this.Padding=Padding_;this.MarkerOffset=MarkerOffset_;this.Checked=Checked_;this.Marker=Marker_;this.Num=Num_;});AA=$newType(4,$kindInt,"ast.NodeType",true,"github.com/88250/lute/ast",true,null);$pkg.WalkStatus=M;$pkg.Node=R;$pkg.ListData=V;$pkg.NodeType=AA;$pkg.$finishSetup=function(){AG=$ptrType(R);AS=$sliceType($Int32);BD=$sliceType($String);BL=$sliceType(AG);BO=$sliceType($Uint8);CU=$ptrType(V);CV=$sliceType($Int);CW=$sliceType(BD);CX=$sliceType(AA);CY=$mapType($String,$String);O=function AE(b,c){var{b,c,d,$s,$r,$c}=$restore(this,{b,c});$s=$s||0;s:while(true){switch($s){case 0:d=P(b,c);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}d;$s=-1;return;}return;}var $f={$blk:AE,$c:true,$r,b,c,d,$s};return $f;};$pkg.Walk=O;P=function AF(b,c){var{b,c,d,e,f,g,h,$s,$r,$c}=$restore(this,{b,c});$s=$s||0;s:while(true){switch($s){case 0:d=0;e=c(b,true);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}d=e;if(d===0){$s=-1;return d;}if(!((d===1))){$s=2;continue;}$s=3;continue;case 2:f=b.FirstChild;case 4:if(!(!(AG.nil===f))){$s=5;continue;}g=P(f,c);$s=6;case 6:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}d=g;if(0===d){d=0;$s=-1;return d;}f=f.Next;$s=4;continue;case 5:case 3:h=c(b,false);$s=7;case 7:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}d=h;$s=-1;return d;}return;}var $f={$blk:AF,$c:true,$r,b,c,d,e,f,g,h,$s};return $f;};AA.prototype.String=function AH(){var b,c,d,e,f;b=this.$val;c=(d=$mapIndex(Q,AA.keyFor(b)),d!==undefined?[d.v,true]:["",false]);e=c[0];f=c[1];if(f){return e;}return"NodeType("+H.FormatInt((new $Int64(0,b)),10)+")";};$ptrType(AA).prototype.String=function(...$args){return new AA(this.$get()).String(...$args);};$ptrType(R).prototype.EffectiveTaskListItemMarker=function AI(){var b;b=this;if(!((b.TaskListItemMarker===0))){if(b.TaskListItemMarker===120){return"X";}return C.EscapeHTMLStr(($encodeRune(b.TaskListItemMarker)));}if(b.TaskListItemChecked){return"X";}return" ";};$ptrType(R).prototype.ReviveFromMarker=function AJ(b){var b,c;c=this;c.TaskListItemMarker=b;c.TaskListItemChecked=!((b===32))&&!((b===0));};$ptrType(R).prototype.ReviveFromDataTask=function AK(b,c){var b,c,d,e;d=this;e=0;if(1===b.length){e=b.charCodeAt(0);}else if(c){e=88;}else{e=32;}d.ReviveFromMarker(e);};S=function AL(b){var b,c;c=b;if(c===("NOTE")||c===("TIP")||c===("IMPORTANT")||c===("WARNING")||c===("CAUTION")){return true;}return false;};$pkg.IsBuiltInCalloutType=S;T=function AM(b){var b,c;c=b;if(c===("NOTE")){return"\xE2\x9C\x8F\xEF\xB8\x8F";}else if(c===("TIP")){return"\xF0\x9F\x92\xA1";}else if(c===("IMPORTANT")){return"\xE2\x9D\x97";}else if(c===("WARNING")){return"\xE2\x9A\xA0\xEF\xB8\x8F";}else if(c===("CAUTION")){return"\xF0\x9F\x9A\xA8";}return"";};$pkg.GetCalloutIcon=T;U=function AN(b){var b,c;c=b;if(c===("NOTE")){return"Note";}else if(c===("TIP")){return"Tip";}else if(c===("IMPORTANT")){return"Important";}else if(c===("WARNING")){return"Warning";}else if(c===("CAUTION")){return"Caution";}return"";};$pkg.GetCalloutTitle=U;W=function AO(){var{b,c,d,e,f,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:if($pkg.Testing){$s=-1;return"20060102150405-1a2b3c4";}b=K.Now();$s=1;case 1:if($c){$c=false;b=b.$blk();}if(b&&b.$blk!==undefined){break s;}c=$clone(b,K.Time);d=$clone(c,K.Time).Format("20060102150405");$s=2;case 2:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=Z(7);$s=3;case 3:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=d+"-"+e;$s=4;case 4:return f;}return;}var $f={$blk:AO,$c:true,$r,b,c,d,e,f,$s};return $f;};$pkg.NewNodeID=W;X=function AP(b){var b,c,d,e,f,g,h,i,j,k,l,m;if(!((22===b.length))){return false;}if(!((1===I.Count(b,"-")))){return false;}c=I.Split(b,"-");d=(0>=c.$length?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+0]);if(!((14===d.length))){return false;}e=d;f=0;while(true){if(!(f=h)){return false;}f+=g[1];}i=(1>=c.$length?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+1]);if(!((7===i.length))){return false;}j=i;k=0;while(true){if(!(k=m)&&!(48<=m&&57>=m)){return false;}k+=l[1];}return true;};$pkg.IsNodeIDPattern=X;Y=function AQ(){var{b,c,d,e,f,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:b=K.Now();$s=1;case 1:if($c){$c=false;b=b.$blk();}if(b&&b.$blk!==undefined){break s;}c=$clone(b,K.Time).UTC();$s=2;case 2:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}d=$clone(c,K.Time).UnixNano();$s=3;case 3:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}$r=F.Seed(d);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}e=0;while(true){if(!(e<1024)){break;}f=new AA(e).String();(AB||$throwRuntimeError("assignment to entry in nil map")).set($String.keyFor(f),{k:f,v:e});e=e+(1)>>0;}$s=-1;return;}return;}var $f={$blk:AQ,$c:true,$r,b,c,d,e,f,$s};return $f;};Z=function AR(b){var{b,c,d,e,f,g,h,i,$s,$r,$c}=$restore(this,{b});$s=$s||0;s:while(true){switch($s){case 0:c=(new AS($stringToRunes("abcdefghijklmnopqrstuvwxyz0123456789")));d=$makeSlice(AS,b);e=d;f=0;case 1:if(!(f=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+g]=(h=i,((h<0||h>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+h])));f++;$s=1;continue;case 2:$s=-1;return($runesToString(d));}return;}var $f={$blk:AR,$c:true,$r,b,c,d,e,f,g,h,i,$s};return $f;};$ptrType(R).prototype.Marker=function AT(b){var b,c,d,e;c="";d=this;e=d.Type;if((e===(461))||(e===(462))){if(b){c="#";return c;}}else if((e===(18))||(e===(19))){if(b){c="*";return c;}}else if((e===(20))||(e===(21))){if(b){c="_";return c;}}else if((e===(23))||(e===(24))){if(b){c="**";return c;}}else if((e===(25))||(e===(26))){if(b){c="__";return c;}}else if((e===(104))||(e===(105))){if(b){c="~~";return c;}}else if((e===(486))||(e===(487))){if(b){c="^";return c;}}else if((e===(491))||(e===(492))){if(b){c="~";return c;}}else if((e===(305))||(e===(307))){if(b){c="$";return c;}}else if(e===(516)){if(b){c="";return c;}}else if(e===(517)){if(b){c="";return c;}}else if(e===(521)){if(b){c="";return c;}}else if(e===(522)){if(b){c="";return c;}}else if((e===(453))||(e===(454))){if(b){c="==";return c;}}else if(e===(35)){if(b){c="!";return c;}}else if(e===(36)){if(b){c="[";return c;}}else if(e===(37)){if(b){c="]";return c;}}else if(e===(38)){if(b){c="(";return c;}}else if(e===(39)){if(b){c=")";return c;}}c="";return c;};$ptrType(R).prototype.ContainTextMarkTypes=function AU(b){var b,c,d,e,f,g,h,i,j;c=this;d=I.Split(c.TextMarkType," ");e=b;f=0;while(true){if(!(f=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]);h=d;i=0;while(true){if(!(i=h.$length)?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+i]);if(g===j){return true;}i++;}f++;}return false;};$ptrType(R).prototype.IsTextMarkType=function AV(b){var b,c,d,e,f,g;c=this;d=I.Split(c.TextMarkType," ");e=d;f=0;while(true){if(!(f=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]);if(b===g){return true;}f++;}return false;};$ptrType(R).prototype.IsNextSameInlineMemo=function AW(){var b,c,d;b=this;if(AG.nil===b){return false;}c=AG.nil;d=b.Next;while(true){if(!(!(AG.nil===d))){break;}if(AG.nil===b.Next||(456===d.Type)||AG.nil===d.Next||(456===d.Next.Type)){d=d.Next;continue;}if((530===d.Type)&&d.IsTextMarkType("inline-memo")){c=d;break;}d=d.Next;}if(!(AG.nil===c)&&b.TextMarkInlineMemoContent===c.TextMarkInlineMemoContent){return true;}return false;};$ptrType(R).prototype.IsSameTextMarkType=function AX(b){var{b,c,d,e,f,g,h,i,$s,$r,$c}=$restore(this,{b});$s=$s||0;s:while(true){switch($s){case 0:c=this;if(""===c.TextMarkType||""===b.TextMarkType){$s=-1;return false;}d=I.Split(c.TextMarkType," ");e=I.Split(b.TextMarkType," ");if(!((d.$length===e.$length))){$s=-1;return false;}$r=G.Strings(d);$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=G.Strings(e);$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}f=d;g=0;while(true){if(!(g=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+h])===((h<0||h>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+h]))){$s=-1;return false;}i=((h<0||h>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+h]);if(i===("block-ref")){if(!(c.TextMarkBlockRefID===b.TextMarkBlockRefID)){$s=-1;return false;}}else if(i===("a")){if(!(c.TextMarkAHref===b.TextMarkAHref)||!(b.TextMarkATitle===b.TextMarkATitle)){$s=-1;return false;}}else if(i===("inline-memo")){if(!(c.TextMarkInlineMemoContent===b.TextMarkInlineMemoContent)){$s=-1;return false;}}g++;}$s=-1;return true;}return;}var $f={$blk:AX,$c:true,$r,b,c,d,e,f,g,h,i,$s};return $f;};$ptrType(R).prototype.SortTextMarkDataTypes=function AY(){var{b,c,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:b=this;if(""===b.TextMarkTextContent){$s=-1;return;}c=I.Split(b.TextMarkType," ");$r=G.Strings(c);$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}b.TextMarkType=I.Join(c," ");$s=-1;return;}return;}var $f={$blk:AY,$c:true,$r,b,c,$s};return $f;};$ptrType(R).prototype.ClearIALAttrs=function AZ(){var b,c,d,e,f;b=this;c=$subslice(b.KramdownIAL,0,0);d=b.KramdownIAL;e=0;while(true){if(!(e=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+e]);if(!("name"===(0>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+0]))&&!("alias"===(0>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+0]))&&!("memo"===(0>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+0]))&&!("bookmark"===(0>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+0]))&&!I.HasPrefix((0>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+0]),"custom-")){c=$append(c,f);}e++;}b.KramdownIAL=c;};$ptrType(R).prototype.RemoveIALAttr=function BA(b){var b,c,d,e,f,g;c=this;d=$subslice(c.KramdownIAL,0,0);e=c.KramdownIAL;f=0;while(true){if(!(f=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]);if(!(b===(0>=g.$length?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+0]))){d=$append(d,g);}f++;}c.KramdownIAL=d;};$ptrType(R).prototype.RemoveIALAttrsByPrefix=function BB(b){var b,c,d,e,f,g;c=this;d=$subslice(c.KramdownIAL,0,0);e=c.KramdownIAL;f=0;while(true){if(!(f=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]);if(!I.HasPrefix((0>=g.$length?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+0]),b)){d=$append(d,g);}f++;}c.KramdownIAL=d;};$ptrType(R).prototype.SetIALAttr=function BC(b,c){var b,c,d,e,f,g;d=this;c=C.EscapeAttrVal(c);e=d.KramdownIAL;f=0;while(true){if(!(f=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]);if(b===(0>=g.$length?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+0])){(1>=g.$length?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+1]=c);return;}f++;}d.KramdownIAL=$append(d.KramdownIAL,new BD([b,c]));};$ptrType(R).prototype.IALAttr=function BE(b){var b,c,d,e,f;c=this;d=c.KramdownIAL;e=0;while(true){if(!(e=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+e]);if(b===(0>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+0])){return C.UnescapeAttrVal((1>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+1]));}e++;}return"";};$ptrType(R).prototype.IsEmptyBlockIAL=function BF(){var b;b=this;if(!((455===b.Type))){return false;}if(E.IsDocIAL(b.Tokens)){return false;}if(!(AG.nil===b.Previous)){if(455===b.Previous.Type){return true;}return false;}return true;};$ptrType(R).prototype.TokensStr=function BG(){var b;b=this;return E.BytesToStr(b.Tokens);};$ptrType(R).prototype.LastDeepestChild=function BH(){var b,c;b=AG.nil;c=this;if(AG.nil===c.LastChild){b=c;return b;}b=c.LastChild.LastDeepestChild();return b;};$ptrType(R).prototype.FirstDeepestChild=function BI(){var b,c;b=AG.nil;c=this;if(AG.nil===c.FirstChild){b=c;return b;}b=c.FirstChild.FirstDeepestChild();return b;};$ptrType(R).prototype.ChildByType=function BJ(b){var b,c,d;c=this;d=c.FirstChild;while(true){if(!(!(AG.nil===d))){break;}if(d.Type===b){return d;}d=d.Next;}return AG.nil;};$ptrType(R).prototype.ChildrenByType=function BK(b){var{b,c,d,$s,$r,$c}=$restore(this,{b});$s=$s||0;s:while(true){switch($s){case 0:b=[b];c=[c];c[0]=BL.nil;d=this;c[0]=new BL([]);$r=O(d,(function(b,c){return function BM(e,f){var e,f;if(((b[0]===e.Type))&&f){c[0]=$append(c[0],e);}return 2;};})(b,c));$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return c[0];}return;}var $f={$blk:BK,$c:true,$r,b,c,d,$s};return $f;};$ptrType(R).prototype.Text=function BN(){var{b,c,d,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:b=[b];c="";d=this;b[0]=new A.Buffer.ptr(BO.nil,0,0);$r=O(d,(function(b){return function BP(e,f){var e,f,g;if(!f){return 2;}g=e.Type;if((g===(16))||(g===(40))||(g===(433))||(g===(434))||(g===(543))||(g===(412))){b[0].Write(e.Tokens);}else if(g===(530)){b[0].WriteString(e.TextMarkTextContent);}return 2;};})(b));$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c=b[0].String();$s=-1;return c;}return;}var $f={$blk:BN,$c:true,$r,b,c,d,$s};return $f;};$ptrType(R).prototype.TextLen=function BQ(){var{b,c,d,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:b=[b];c=0;d=this;b[0]=$makeSlice(BO,0,4096);$r=O(d,(function(b){return function BR(e,f){var e,f,g;if(!f){return 2;}g=e.Type;if((g===(16))||(g===(40))||(g===(433))||(g===(434))||(g===(543))||(g===(412))){b[0]=$appendSlice(b[0],e.Tokens);}else if(g===(530)){b[0]=$appendSlice(b[0],e.TextMarkTextContent);}return 2;};})(b));$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c=L.RuneCount(b[0]);$s=-1;return c;}return;}var $f={$blk:BQ,$c:true,$r,b,c,d,$s};return $f;};$ptrType(R).prototype.Content=function BS(){var{b,c,d,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:b=[b];c="";d=this;b[0]=new A.Buffer.ptr(BO.nil,0,0);$r=O(d,(function(b){return function BT(e,f){var e,f,g,h,i,j,k;if(!f){if(!(AG.nil===e.Next)&&!(AG.nil===e.Next.Next)&&1>0,((h<0||h>=g.$length)?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+h]))===10))){b[0].WriteByte(10);}return 2;}i=e.Type;if((i===(16))||(i===(40))||(i===(433))||(i===(434))||(i===(543))||(i===(412))||(i===(29))||(i===(15))||(i===(306))||(i===(302))||(i===(44))||(i===(203))||(i===(201))||(i===(401))||(i===(427))||(i===(497))){b[0].Write(e.Tokens);}else if(i===(530)){if(!(""===e.TextMarkTextContent)){if(e.IsTextMarkType("code")||e.IsTextMarkType("tag")||e.IsTextMarkType("strong")||e.IsTextMarkType("em")||e.IsTextMarkType("a")){b[0].WriteString(C.UnescapeString(e.TextMarkTextContent));}else{b[0].WriteString(e.TextMarkTextContent);}}else if(!(""===e.TextMarkInlineMathContent)){j=e.TextMarkInlineMathContent;j=I.ReplaceAll(j,"_esc_newline_"," ");b[0].WriteString(j);}if(!(""===e.TextMarkInlineMemoContent)){k=e.TextMarkInlineMemoContent;k=I.ReplaceAll(k,"_esc_newline_"," ");b[0].WriteString(k);}}return 2;};})(b));$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c=b[0].String();$s=-1;return c;}return;}var $f={$blk:BS,$c:true,$r,b,c,d,$s};return $f;};$ptrType(R).prototype.EscapeMarkerContent=function BU(){var{b,c,d,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:b="";c=this;d=c.Content();$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}b=d;b=($bytesToString(D.EscapeProtyleMarkers((new BO($stringToBytes(b))))));$s=-1;return b;}return;}var $f={$blk:BU,$c:true,$r,b,c,d,$s};return $f;};$ptrType(R).prototype.Stat=function BV(){var{b,c,d,e,f,g,h,i,j,k,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:b=[b];c=[c];d=[d];e=[e];f=0;g=0;c[0]=0;e[0]=0;d[0]=0;h=this;b[0]=$makeSlice(BO,0,8192);$r=O(h,(function(b,c,d,e){return function BW(i,j){var i,j,k,l,m;if(!j){return 2;}k=i.Type;if((k===(16))||(k===(40))||(k===(433))||(k===(434))||(k===(543))||(k===(412))||(k===(29))||(k===(15))||(k===(306))||(k===(302))||(k===(44))||(k===(203))||(k===(201))||(k===(401))||(k===(427))||(k===(497))){b[0]=$appendSlice(b[0],i.Tokens);}else if(k===(530)){if(0>0;}if(i.IsTextMarkType("block-ref")||i.IsTextMarkType("file-annotation-ref")){d[0]=d[0]+(1)>>0;}}else if(k===(33)){c[0]=c[0]+(1)>>0;}else if(k===(34)){e[0]=e[0]+(1)>>0;}else if(k===(430)){d[0]=d[0]+(1)>>0;}if(i.IsBlock()){b[0]=$append(b[0],32);}return 2;};})(b,c,d,e));$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}i=A.TrimSpace(b[0]);$s=2;case 2:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}b[0]=i;k=E.WordCount(E.BytesToStr(b[0]));$s=3;case 3:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}j=k;f=j[0];g=j[1];$s=-1;return[f,g,c[0],e[0],d[0]];}return;}var $f={$blk:BV,$c:true,$r,b,c,d,e,f,g,h,i,j,k,$s};return $f;};$ptrType(R).prototype.TokenLen=function BX(){var{b,c,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:b=[b];b[0]=0;c=this;$r=O(c,(function(b){return function BY(d,e){var d,e;if(!e){return 2;}b[0]=b[0]+(D.BytesShowLength(d.Tokens))>>0;return 2;};})(b));$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return b[0];}return;}var $f={$blk:BX,$c:true,$r,b,c,$s};return $f;};$ptrType(R).prototype.DocChild=function BZ(){var b,c,d;b=AG.nil;c=this;b=c;d=c;while(true){if(!(!(AG.nil===d))){break;}if(0===d.Type){return b;}b=d;d=d.Parent;}return b;};$ptrType(R).prototype.IsChildBlockOf=function CA(b,c){var b,c,d,e,f,g;d=this;if(""===d.ID||!d.IsBlock()){return false;}if(c===0){e=d.Parent;while(true){if(!(!(AG.nil===e))){break;}if(e===b){return true;}e=e.Parent;}return false;}f=d.Parent;g=1;while(true){if(!(g>0;}if(!(b===f)){return false;}return true;};$ptrType(R).prototype.NextNodeText=function CB(){var{b,c,d,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:b=this;if(AG.nil===b.Next){$s=-1;return"";}c=b.Next.Text();$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}d=c;$s=2;case 2:return d;}return;}var $f={$blk:CB,$c:true,$r,b,c,d,$s};return $f;};$ptrType(R).prototype.PreviousNodeText=function CC(){var{b,c,d,e,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:b=this;c=b.Previous;if(AG.nil===c){$s=-1;return"";}if(456===c.Type){c=c.Previous;}if(AG.nil===c){$s=-1;return"";}d=c.Text();$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;$s=2;case 2:return e;}return;}var $f={$blk:CC,$c:true,$r,b,c,d,e,$s};return $f;};$ptrType(R).prototype.Unlink=function CD(){var b;b=this;if(!(AG.nil===b.Previous)){b.Previous.Next=b.Next;}else if(!(AG.nil===b.Parent)){b.Parent.FirstChild=b.Next;}if(!(AG.nil===b.Next)){b.Next.Previous=b.Previous;}else if(!(AG.nil===b.Parent)){b.Parent.LastChild=b.Previous;}b.Parent=AG.nil;b.Next=AG.nil;b.Previous=AG.nil;};$ptrType(R).prototype.AppendTokens=function CE(b){var b,c;c=this;c.Tokens=$appendSlice(c.Tokens,($bytesToString(b)));};$ptrType(R).prototype.PrependTokens=function CF(b){var b,c;c=this;c.Tokens=$appendSlice(b,c.Tokens);};$ptrType(R).prototype.InsertAfter=function CG(b){var b,c;c=this;b.Unlink();b.Next=c.Next;if(!(AG.nil===b.Next)){b.Next.Previous=b;}b.Previous=c;c.Next=b;b.Parent=c.Parent;if(!(AG.nil===b.Parent)&&AG.nil===b.Next&&!(AG.nil===b.Parent.LastChild)){b.Parent.LastChild=b;}};$ptrType(R).prototype.InsertBefore=function CH(b){var b,c;c=this;b.Unlink();b.Previous=c.Previous;if(!(AG.nil===b.Previous)){b.Previous.Next=b;}b.Next=c;c.Previous=b;b.Parent=c.Parent;if(!(AG.nil===b.Parent)&&AG.nil===b.Previous){b.Parent.FirstChild=b;}};$ptrType(R).prototype.AppendChild=function CI(b){var b,c;c=this;b.Unlink();b.Parent=c;if(!(AG.nil===c.LastChild)){c.LastChild.Next=b;b.Previous=c.LastChild;c.LastChild=b;}else{c.FirstChild=b;c.LastChild=b;}};$ptrType(R).prototype.PrependChild=function CJ(b){var b,c;c=this;b.Unlink();b.Parent=c;if(!(AG.nil===c.FirstChild)){c.FirstChild.Previous=b;b.Next=c.FirstChild;c.FirstChild=b;}else{c.FirstChild=b;c.LastChild=b;}};$ptrType(R).prototype.List=function CK(){var{b,c,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:b=[b];b[0]=BL.nil;c=this;b[0]=$makeSlice(BL,0,512);$r=O(c,(function(b){return function CL(d,e){var d,e;if(e){b[0]=$append(b[0],d);}return 2;};})(b));$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return b[0];}return;}var $f={$blk:CK,$c:true,$r,b,c,$s};return $f;};$ptrType(R).prototype.ParentIs=function CM(b,c){var b,c,d,e,f,g,h,i,j;d=this;e=$append(c,b);f=0;g=d.Parent;while(true){if(!(!(AG.nil===g))){break;}h=e;i=0;while(true){if(!(i=h.$length)?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+i]);if(j===g.Type){return true;}i++;}f=f+(1)>>0;if(128>0));}b.Tokens=d;b.AppendChild(new B.Node.ptr("","","","",426,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));b.AppendChild(new B.Node.ptr("","","","",427,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,d,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));b.AppendChild(new B.Node.ptr("","","","",428,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));};$ptrType(AD).prototype.parseYamlFrontMatter=function DL(){var b,c,d,e,f;b=this;if(!((45===(c=b.Context.currentLine,(0>=c.$length?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+0]))))){return false;}d=0;e=0;while(true){if(!(e=f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+e]))))){break;}d=d+(1)>>0;e=e+(1)>>0;}return 3===d;};O=function DM(b){var b,c,d,e,f,g,h;if(b.ParseOption.KramdownBlockIAL&&BH(b.currentLine)){c=b.parseKramdownBlockIAL(b.currentLine);if(0=e.$length?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+0]))))){return false;}f=0;g=0;while(true){if(!(g=h.$length)?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+g]))))){break;}f=f+(1)>>0;g=g+(1)>>0;}return 3===f;};P=function DN(b,c){var{b,c,d,e,f,g,h,i,j,k,l,$s,$r,$c}=$restore(this,{b,c});$s=$s||0;s:while(true){switch($s){case 0:c=[c];d=[d];e=[e];f=[f];e[0]=DE.nil;$r=B.Walk(b.Root,(function(c,d,e,f){return function DO(g,h){var{g,h,i,j,k,l,m,n,o,p,q,r,$s,$r,$c}=$restore(this,{g,h});$s=$s||0;s:while(true){switch($s){case 0:i=[i];if(!h){$s=-1;return 2;}if(33===g.Type){$s=1;continue;}$s=2;continue;case 1:i[0]=DE.nil;$r=B.Walk(g,(function(c,d,e,f,i){return function DP(j,k){var j,k,l,m;if(!k){return 2;}if(400===j.Type){l=j.ChildByType(401);if(!(DD.nil===l)){m=new B.Node.ptr("","","","",40,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,l.Tokens,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);j.InsertBefore(m);}i[0]=$append(i[0],j);}return 2;};})(c,d,e,f,i));$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}j=i[0];k=0;while(true){if(!(k=j.$length)?($throwRuntimeError("index out of range"),undefined):j.$array[j.$offset+k]);l.Unlink();k++;}m=g.ChildByType(34);if(DD.nil===m){$s=-1;return 2;}g.InsertBefore(m);n=g.ChildByType(40);if(DD.nil===n){o=true;$s=6;continue s;}p=A.TrimSpace(n.Tokens);$s=7;case 7:if($c){$c=false;p=p.$blk();}if(p&&p.$blk!==undefined){break s;}o=1>p.$length;case 6:if(o){$s=4;continue;}$s=5;continue;case 4:q=g.ChildByType(36);if(!(DD.nil===q)){r=g.ChildByType(41);if(!(DD.nil===r)){q.InsertAfter(new B.Node.ptr("","","","",40,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,r.Tokens,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));}}case 5:case 2:$s=-1;return 2;}return;}var $f={$blk:DO,$c:true,$r,g,h,i,j,k,l,m,n,o,p,q,r,$s};return $f;};})(c,d,e,f));$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}g=e[0];h=0;while(true){if(!(h=g.$length)?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+h]);i.Unlink();h++;}e[0]=DE.nil;d[0]=DH.nil;f[0]=DD.nil;$r=B.Walk(b.Root,(function(c,d,e,f){return function DQ(j,k){var j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y;l=j.Type;if(l===(27)){R(j,"code",(d.$ptr||(d.$ptr=new DR(function(){return this.$target[0];},function($v){this.$target[0]=$v;},d))),(e.$ptr||(e.$ptr=new DS(function(){return this.$target[0];},function($v){this.$target[0]=$v;},e))),k);}else if(l===(460)){R(j,"tag",(d.$ptr||(d.$ptr=new DR(function(){return this.$target[0];},function($v){this.$target[0]=$v;},d))),(e.$ptr||(e.$ptr=new DS(function(){return this.$target[0];},function($v){this.$target[0]=$v;},e))),k);}else if(l===(304)){R(j,"inline-math",(d.$ptr||(d.$ptr=new DR(function(){return this.$target[0];},function($v){this.$target[0]=$v;},d))),(e.$ptr||(e.$ptr=new DS(function(){return this.$target[0];},function($v){this.$target[0]=$v;},e))),k);}else if(l===(17)){R(j,"em",(d.$ptr||(d.$ptr=new DR(function(){return this.$target[0];},function($v){this.$target[0]=$v;},d))),(e.$ptr||(e.$ptr=new DS(function(){return this.$target[0];},function($v){this.$target[0]=$v;},e))),k);}else if(l===(22)){R(j,"strong",(d.$ptr||(d.$ptr=new DR(function(){return this.$target[0];},function($v){this.$target[0]=$v;},d))),(e.$ptr||(e.$ptr=new DS(function(){return this.$target[0];},function($v){this.$target[0]=$v;},e))),k);}else if(l===(101)){R(j,"s",(d.$ptr||(d.$ptr=new DR(function(){return this.$target[0];},function($v){this.$target[0]=$v;},d))),(e.$ptr||(e.$ptr=new DS(function(){return this.$target[0];},function($v){this.$target[0]=$v;},e))),k);}else if(l===(450)){R(j,"mark",(d.$ptr||(d.$ptr=new DR(function(){return this.$target[0];},function($v){this.$target[0]=$v;},d))),(e.$ptr||(e.$ptr=new DS(function(){return this.$target[0];},function($v){this.$target[0]=$v;},e))),k);}else if(l===(520)){R(j,"u",(d.$ptr||(d.$ptr=new DR(function(){return this.$target[0];},function($v){this.$target[0]=$v;},d))),(e.$ptr||(e.$ptr=new DS(function(){return this.$target[0];},function($v){this.$target[0]=$v;},e))),k);}else if(l===(490)){R(j,"sub",(d.$ptr||(d.$ptr=new DR(function(){return this.$target[0];},function($v){this.$target[0]=$v;},d))),(e.$ptr||(e.$ptr=new DS(function(){return this.$target[0];},function($v){this.$target[0]=$v;},e))),k);}else if(l===(485)){R(j,"sup",(d.$ptr||(d.$ptr=new DR(function(){return this.$target[0];},function($v){this.$target[0]=$v;},d))),(e.$ptr||(e.$ptr=new DS(function(){return this.$target[0];},function($v){this.$target[0]=$v;},e))),k);}else if(l===(515)){R(j,"kbd",(d.$ptr||(d.$ptr=new DR(function(){return this.$target[0];},function($v){this.$target[0]=$v;},d))),(e.$ptr||(e.$ptr=new DS(function(){return this.$target[0];},function($v){this.$target[0]=$v;},e))),k);}else if(l===(33)){R(j,"a",(d.$ptr||(d.$ptr=new DR(function(){return this.$target[0];},function($v){this.$target[0]=$v;},d))),(e.$ptr||(e.$ptr=new DS(function(){return this.$target[0];},function($v){this.$target[0]=$v;},e))),k);}else if(l===(430)){R(j,"block-ref",(d.$ptr||(d.$ptr=new DR(function(){return this.$target[0];},function($v){this.$target[0]=$v;},d))),(e.$ptr||(e.$ptr=new DS(function(){return this.$target[0];},function($v){this.$target[0]=$v;},e))),k);}else if((l===(16))||(l===(29))||(l===(306))||(l===(40))||(l===(431))||(l===(44))||(l===(400))){if(1>d[0].$length){return 2;}if(k){m=($bytesToString(D.EscapeHTML(j.Tokens)));m=I.ReplaceAll(m,""","\"");f[0]=new B.Node.ptr("","","","",530,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,I.Join(d[0]," "),"","","","","","","",m,"","",0,"","","","",0);if(306===j.Type){f[0].TextMarkTextContent="";f[0].TextMarkInlineMathContent=($bytesToString(D.EscapeHTML(j.Tokens)));if(j.ParentIs(109,DT.nil)&&!c[0]){f[0].TextMarkInlineMathContent=I.ReplaceAll(f[0].TextMarkInlineMathContent,"\\|","|");}}else if(400===j.Type){n=j.ChildByType(401);if(!(DD.nil===n)){f[0].TextMarkTextContent=($bytesToString(D.EscapeHTML(n.Tokens)));}}else if(431===j.Type){f[0].TextMarkBlockRefSubtype="s";f[0].TextMarkTextContent=j.TokensStr();o=j.Parent.ChildByType(433);if(DD.nil===o){o=j.Parent.ChildByType(434);f[0].TextMarkBlockRefSubtype="d";}if(!(DD.nil===o)){f[0].TextMarkTextContent=o.TokensStr();}f[0].TextMarkBlockRefID=j.Parent.ChildByType(431).TokensStr();}else if(j.ParentIs(33,DT.nil)&&!j.ParentIs(34,DT.nil)){p=j.Next;if(!(DD.nil===p)&&(40===p.Type)){j.Next.PrependTokens(j.Tokens);return 2;}q=DD.nil;r=j.Parent;while(true){if(!(!(DD.nil===r))){break;}if(33===r.Type){q=r;break;}r=r.Parent;}if(!(DD.nil===q)){s=q.ChildByType(41);if(!(DD.nil===s)){f[0].TextMarkAHref=($bytesToString(s.Tokens));}t=q.ChildByType(42);if(!(DD.nil===t)){f[0].TextMarkATitle=($bytesToString(t.Tokens));}}}}else{u=j.Next;if(!(DD.nil===u)&&(40===u.Type)){return 2;}f[0].KramdownIAL=j.Parent.KramdownIAL;if(j.IsMarker()){j.Parent.InsertBefore(f[0]);}else if(!(DD.nil===j.Parent)&&(570===j.Parent.Type)&&!(DD.nil===j.Parent.Parent)&&(33===j.Parent.Parent.Type)){j.Parent.Parent.InsertBefore(f[0]);}else{j.InsertBefore(f[0]);if(16===j.Type){e[0]=$append(e[0],j);}}}}else if(l===(530)){if(1>d[0].$length){return 2;}if(k){v=false;w=d[0];x=0;while(true){if(!(x=w.$length)?($throwRuntimeError("index out of range"),undefined):w.$array[w.$offset+x]);if(j.IsTextMarkType(y)){v=true;break;}x++;}if(!v){d[0]=$append(d[0],j.TextMarkType);j.TextMarkType=I.Join(d[0]," ");}}else{if(DD.nil===j.Next||j.Next.IsCloseMarker()){d[0]=$subslice(d[0],0,(d[0].$length-1>>0));}}return 2;}return 2;};})(c,d,e,f));$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}j=e[0];k=0;while(true){if(!(k=j.$length)?($throwRuntimeError("index out of range"),undefined):j.$array[j.$offset+k]);l.Unlink();k++;}$s=-1;return;}return;}var $f={$blk:DN,$c:true,$r,b,c,d,e,f,g,h,i,j,k,l,$s};return $f;};$pkg.NestedInlines2FlattedSpansHybrid=P;R=function DX(b,c,d,e,f){var b,c,d,e,f,g,h;if(f){d.$set($append(d.$get(),c));}else{if(0>0)));}e.$set($append(e.$get(),b));g=b.FirstChild;while(true){if(!(!(DD.nil===g))){break;}h=g.Next;if((530===g.Type)||(16===g.Type)||(34===g.Type)){b.InsertBefore(g);g.KramdownIAL=b.KramdownIAL;}else if(41===g.Type){if(!(DD.nil===b.Previous)&&(530===b.Previous.Type)){b.Previous.TextMarkAHref=($bytesToString(g.Tokens));}}g=h;}}};S=function DY(b){var{b,c,$s,$r,$c}=$restore(this,{b});$s=$s||0;s:while(true){switch($s){case 0:b=[b];c=[c];c[0]=(function(b,c){return function DZ(d){var{d,e,f,g,h,$s,$r,$c}=$restore(this,{d});$s=$s||0;s:while(true){switch($s){case 0:e=DE.nil;f=AA("",(new DA($stringToBytes(d))),b[0].Context.ParseOption);$s=1;case 1:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}g=f;h=g.Root.FirstChild.FirstChild;while(true){if(!(!(DD.nil===h))){break;}e=$append(e,h);h=h.Next;}$s=-1;return e;}return;}var $f={$blk:DZ,$c:true,$r,d,e,f,g,h,$s};return $f;};})(b,c);$r=B.Walk(b[0].Root,(function(b,c){return function EA(d,e){var{aa,ab,ac,ad,ae,af,ag,ah,ai,aj,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s,$r,$c}=$restore(this,{d,e});$s=$s||0;s:while(true){switch($s){case 0:if(!e){$s=-1;return 2;}if(530===d.Type){$s=1;continue;}$s=2;continue;case 1:f=d.TextMarkType;if(f===("sup")){$s=4;continue;}if(f===("sub")){$s=5;continue;}if(f===("em")){$s=6;continue;}if(f===("strong")){$s=7;continue;}if(f===("mark")){$s=8;continue;}if(f===("s")){$s=9;continue;}$s=10;continue;case 4:d.Type=485;d.PrependChild(new B.Node.ptr("","","","",486,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));g=c[0](d.TextMarkTextContent);$s=11;case 11:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}h=g;i=h;j=0;while(true){if(!(j=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+j]);d.AppendChild(k);j++;}d.AppendChild(new B.Node.ptr("","","","",487,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));$s=10;continue;case 5:d.Type=490;d.PrependChild(new B.Node.ptr("","","","",491,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));l=c[0](d.TextMarkTextContent);$s=12;case 12:if($c){$c=false;l=l.$blk();}if(l&&l.$blk!==undefined){break s;}m=l;n=m;o=0;while(true){if(!(o=n.$length)?($throwRuntimeError("index out of range"),undefined):n.$array[n.$offset+o]);d.AppendChild(p);o++;}d.AppendChild(new B.Node.ptr("","","","",492,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));$s=10;continue;case 6:d.Type=17;d.PrependChild(new B.Node.ptr("","","","",18,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));q=c[0](d.TextMarkTextContent);$s=13;case 13:if($c){$c=false;q=q.$blk();}if(q&&q.$blk!==undefined){break s;}r=q;s=r;t=0;while(true){if(!(t=s.$length)?($throwRuntimeError("index out of range"),undefined):s.$array[s.$offset+t]);d.AppendChild(u);t++;}d.AppendChild(new B.Node.ptr("","","","",19,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));$s=10;continue;case 7:d.Type=22;d.PrependChild(new B.Node.ptr("","","","",23,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));v=c[0](d.TextMarkTextContent);$s=14;case 14:if($c){$c=false;v=v.$blk();}if(v&&v.$blk!==undefined){break s;}w=v;x=w;y=0;while(true){if(!(y=x.$length)?($throwRuntimeError("index out of range"),undefined):x.$array[x.$offset+y]);d.AppendChild(z);y++;}d.AppendChild(new B.Node.ptr("","","","",24,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));$s=10;continue;case 8:d.Type=450;d.PrependChild(new B.Node.ptr("","","","",453,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));aa=c[0](d.TextMarkTextContent);$s=15;case 15:if($c){$c=false;aa=aa.$blk();}if(aa&&aa.$blk!==undefined){break s;}ab=aa;ac=ab;ad=0;while(true){if(!(ad=ac.$length)?($throwRuntimeError("index out of range"),undefined):ac.$array[ac.$offset+ad]);d.AppendChild(ae);ad++;}d.AppendChild(new B.Node.ptr("","","","",454,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));$s=10;continue;case 9:d.Type=101;d.PrependChild(new B.Node.ptr("","","","",104,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));af=c[0](d.TextMarkTextContent);$s=16;case 16:if($c){$c=false;af=af.$blk();}if(af&&af.$blk!==undefined){break s;}ag=af;ah=ag;ai=0;while(true){if(!(ai=ah.$length)?($throwRuntimeError("index out of range"),undefined):ah.$array[ah.$offset+ai]);d.AppendChild(aj);ai++;}d.AppendChild(new B.Node.ptr("","","","",105,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));case 10:case 3:case 2:$s=-1;return 2;}return;}var $f={$blk:EA,$c:true,$r,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s};return $f;};})(b,c));$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return;}return;}var $f={$blk:DY,$c:true,$r,b,c,$s};return $f;};$pkg.TextMarks2Inlines=S;$ptrType(AB).prototype.parseToC=function EB(b){var{b,c,d,e,f,$s,$r,$c}=$restore(this,{b});$s=$s||0;s:while(true){switch($s){case 0:c=this;d=F.Split(b.Tokens,10);if(!((1===d.$length))){$s=-1;return DD.nil;}e=A.TrimSpace((0>=d.$length?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+0]));$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;if(c.ParseOption.VditorWYSIWYG||c.ParseOption.VditorIR||c.ParseOption.VditorSV){f=A.ReplaceAll(f,C.CaretTokens,DA.nil);}if(!A.EqualFold(f,(new DA($stringToBytes("[toc]"))))){$s=-1;return DD.nil;}$s=-1;return new B.Node.ptr("","","","",415,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);}return;}var $f={$blk:EB,$c:true,$r,b,c,d,e,f,$s};return $f;};T=function EC(b,c){var{b,c,d,e,f,g,h,$s,$r,$c}=$restore(this,{b,c});$s=$s||0;s:while(true){switch($s){case 0:if(b.Context.indented){$s=-1;return 0;}d=b.parseThematicBreak();e=d[0];f=d[1];if(e){$s=1;continue;}$s=2;continue;case 1:$r=b.Context.closeUnmatchedBlocks();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}g=b.Context.addChild(4);$s=4;case 4:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}h=g;h.Tokens=f;b.Context.advanceOffset(b.Context.currentLineLen-b.Context.offset>>0,false);$s=-1;return 2;case 2:$s=-1;return 0;}return;}var $f={$blk:EC,$c:true,$r,b,c,d,e,f,g,h,$s};return $f;};$pkg.ThematicBreakStart=T;$ptrType(AD).prototype.parseThematicBreak=function ED(){var b,c,d,e,f,g,h,i,j,k,l,m;b=false;c=DA.nil;d=this;e=0;f=0;g=d.Context.currentLine;h=false;i=g.$length;j=d.Context.nextNonspace;while(true){if(!(j<(i-1>>0))){break;}k=((j<0||j>=g.$length)?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+j]);if((32===k)||(9===k)){j=j+(1)>>0;continue;}if(!((45===k))&&!((95===k))&&!((42===k))){return[b,c];}if(!((0===f))){if(!((f===k))){return[b,c];}}else{f=k;}e=e+(1)>>0;j=j+(1)>>0;}if((d.Context.ParseOption.VditorWYSIWYG||d.Context.ParseOption.VditorIR||d.Context.ParseOption.VditorSV||d.Context.ParseOption.ProtyleWYSIWYG)&&h){c=C.CaretTokens;}l=3<=e;m=c;b=l;c=m;return[b,c];};$ptrType(AD).prototype.parseText=function EE(b){var b,c,d,e,f;c=this;d=b.pos;while(true){if(!(b.pos=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f])))){break;}b.pos=b.pos+(1)>>0;}return new B.Node.ptr("","","","",16,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,$subslice(b.tokens,d,b.pos),"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);};$ptrType(AD).prototype.isMarker=function EF(b){var b,c;c=this;if(F.IsMarker(b)){return true;}if(c.Context.ParseOption.Sup&&(94===b)){return true;}return false;};$ptrType(AD).prototype.parseBackslash=function EG(b,c){var b,c,d,e,f,g,h,i,j,k,l,m,n,o;d=this;if(c.pos===(c.tokensLen-1>>0)){c.pos=c.pos+(1)>>0;return new B.Node.ptr("","","","",16,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,U,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);}c.pos=c.pos+(1)>>0;g=(e=c.tokens,f=c.pos,((f<0||f>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]));if(10===g){c.pos=c.pos+(1)>>0;return new B.Node.ptr("","","","",31,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,new DA([g]),"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);}if(F.IsASCIIPunct(g)){if((60===g)&&!(DD.nil===d.Context.oldtip)&&(106===d.Context.oldtip.Type)){h=$subslice(c.tokens,c.pos);if(A.HasPrefix(h,(new DA($stringToBytes("
"))))||A.HasPrefix(h,(new DA($stringToBytes("
"))))||A.HasPrefix(h,(new DA($stringToBytes("
"))))){return new B.Node.ptr("","","","",16,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,U,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);}}c.pos=c.pos+(1)>>0;i=new B.Node.ptr("","","","",400,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);b.AppendChild(i);i.AppendChild(new B.Node.ptr("","","","",401,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,new DA([g]),"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));return DD.nil;}if(d.Context.ParseOption.VditorWYSIWYG||d.Context.ParseOption.VditorIR||d.Context.ParseOption.ProtyleWYSIWYG){j=$subslice(c.tokens,c.pos);k=C.CaretTokens;if(k.$length>0,((m<0||m>=l.$length)?($throwRuntimeError("index out of range"),undefined):l.$array[l.$offset+m]));if(F.IsASCIIPunct(g)){if((60===g)&&!(DD.nil===d.Context.oldtip)&&(106===d.Context.oldtip.Type)){n=$subslice(c.tokens,(c.pos+k.$length>>0));if(A.HasPrefix(n,(new DA($stringToBytes("
"))))||A.HasPrefix(n,(new DA($stringToBytes("
"))))||A.HasPrefix(n,(new DA($stringToBytes("
"))))){return new B.Node.ptr("","","","",16,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,U,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);}}c.pos=c.pos+(k.$length)>>0;c.pos=c.pos+(1)>>0;o=new B.Node.ptr("","","","",400,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);b.AppendChild(o);o.AppendChild(new B.Node.ptr("","","","",401,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,new DA([g]),"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));if(d.Context.ParseOption.ProtyleWYSIWYG){o.InsertBefore(new B.Node.ptr("","","","",16,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,k,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));}else{b.AppendChild(new B.Node.ptr("","","","",16,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,k,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));}return DD.nil;}}}return new B.Node.ptr("","","","",16,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,U,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);};$ptrType(AD).prototype.parseNewline=function EH(b,c){var b,c,d,e,f,g,h,i,j,k,l,m,n;d=DD.nil;e=this;f=c.pos;c.pos=c.pos+(1)>>0;g=false;h=b.LastChild;if(!(DD.nil===h)&&(16===h.Type)){i=h.Tokens;j=i.$length;if(32===(k=j-1>>0,((k<0||k>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+k]))){l=F.TrimRight(i);h.Tokens=l[1];if(1>0,((m<0||m>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+m]));}}}d=new B.Node.ptr("","","","",32,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,new DA([(n=c.tokens,((f<0||f>=n.$length)?($throwRuntimeError("index out of range"),undefined):n.$array[n.$offset+f]))]),"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);if(e.Context.ParseOption.ProtyleWYSIWYG){return d;}if(g){d.Type=31;}return d;};$ptrType(AD).prototype.MergeText=function EI(){var b;b=this;b.mergeText(b.Root);};$ptrType(AD).prototype.mergeText=function EJ(b){var b,c,d,e;c=this;d=b.FirstChild;while(true){if(!(!(DD.nil===d))){break;}e=d.Next;if(16===d.Type){while(true){if(!(!(DD.nil===e)&&(16===e.Type))){break;}d.AppendTokens(e.Tokens);e.Unlink();e=d.Next;}}else if(40===d.Type){while(true){if(!(!(DD.nil===e)&&(40===e.Type))){break;}d.AppendTokens(e.Tokens);e.Unlink();e=d.Next;}}else{c.mergeText(d);}d=e;}};$ptrType(AB).prototype.parseTable=function EK(b){var aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;c=DD.nil;d=DD.nil;e=this;f=DA.nil;g=b.Tokens.$length;h=0;i=0;while(true){if(!(i=j.$length)?($throwRuntimeError("index out of range"),undefined):j.$array[j.$offset+l]),(new DA($stringToBytes("|"))))){k=$append(k,((l<0||l>=j.$length)?($throwRuntimeError("index out of range"),undefined):j.$array[j.$offset+l]));}l=l+(1)>>0;}j=$subslice(j,k.$length);m=e.findTableDelimRow(j);if(1>m){return[c,d];}n=e.parseTableDelimRow(F.TrimWhitespace(((m<0||m>=j.$length)?($throwRuntimeError("index out of range"),undefined):j.$array[j.$offset+m])));if(DG.nil===n){return[c,d];}o=DE.nil;p=0;while(true){if(!(p=j.$length)?($throwRuntimeError("index out of range"),undefined):j.$array[j.$offset+p])),n,true);if(DD.nil===q){return[c,d];}o=$append(o,q);r=q.FirstChild;while(true){if(!(!(DD.nil===r))){break;}s=A.Index(r.Tokens,(new DA($stringToBytes("{:"))));if(!((0===s))){r=r.Next;continue;}t=$subslice(r.Tokens,s);u=e.parseKramdownSpanIAL(t);v=u[0];w=u[1];if(0>0));if(A.Contains(x,(new DA($stringToBytes("span"))))||A.Contains(x,(new DA($stringToBytes("fn__none"))))||A.Contains(x,(new DA($stringToBytes("width:"))))){r.KramdownIAL=w;r.Tokens=$subslice(r.Tokens,x.$length);y=new B.Node.ptr("","","","",456,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,x,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);r.PrependChild(y);}}r=r.Next;}p=p+(1)>>0;}d=new B.Node.ptr("","","","",106,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,n,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);d.TableAligns=n;d.AppendChild(e.newTableHead(o));z=m+1>>0;while(true){if(!(z=j.$length)?($throwRuntimeError("index out of range"),undefined):j.$array[j.$offset+z]));ab=e.parseTableRow(aa,n,false);if(DD.nil===ab){return[c,d];}if(e.ParseOption.KramdownSpanIAL){ac=ab.FirstChild;while(true){if(!(!(DD.nil===ac))){break;}ad=A.Index(ac.Tokens,(new DA($stringToBytes("{:"))));if(!((0===ad))){ac=ac.Next;continue;}ae=$subslice(ac.Tokens,ad);af=e.parseKramdownSpanIAL(ae);ag=af[0];ah=af[1];if(0>0));if(A.Contains(ai,(new DA($stringToBytes("span"))))||A.Contains(ai,(new DA($stringToBytes("fn__none"))))||A.Contains(ai,(new DA($stringToBytes("width:"))))){ac.KramdownIAL=ah;ac.Tokens=$subslice(ac.Tokens,ai.$length);aj=new B.Node.ptr("","","","",456,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,ai,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);ac.PrependChild(aj);}}ac=ac.Next;}}d.AppendChild(ab);z=z+(1)>>0;}if(0=ak.$length)?($throwRuntimeError("index out of range"),undefined):ak.$array[ak.$offset+i])))||(0===i)){if(0===i){f=$subslice(b.Tokens,i);}else{f=$subslice(b.Tokens,(i+1>>0));}al=e.parseTable0(f);if(!(DD.nil===al)){if(0>0;i=i+(1)>>0;}return[c,d];};$ptrType(AB).prototype.parseTable0=function EL(b){var aa,ab,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;c=DD.nil;d=this;e=F.Split(b,10);f=e.$length;if(2>f){return c;}g=F.TrimWhitespace((1>=e.$length?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+1]));if(2>g.$length){return c;}h=d.parseTableDelimRow(g);if(DG.nil===h){return c;}if((2===f)&&(1===h.$length)&&(0===(0>=h.$length?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+0]))&&!A.Contains(b,(new DA($stringToBytes("|"))))){return c;}i=d.parseTableRow(F.TrimWhitespace((0>=e.$length?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+0])),h,true);if(DD.nil===i){return c;}if(d.ParseOption.KramdownSpanIAL){j=i.FirstChild;while(true){if(!(!(DD.nil===j))){break;}k=A.LastIndex(j.Tokens,(new DA($stringToBytes("{:"))));if(0>k){j=j.Next;continue;}l=$subslice(j.Tokens,k);m=d.parseKramdownSpanIAL(l);n=m[0];o=m[1];if(0>0));j.Tokens=$subslice(j.Tokens,0,(j.Tokens.$length-p.$length>>0));q=new B.Node.ptr("","","","",456,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,p,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);j.InsertAfter(q);j=j.Next;}j=j.Next;}}c=new B.Node.ptr("","","","",106,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,h,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);c.TableAligns=h;c.AppendChild(d.newTableHead(new DE([i])));r=2;while(true){if(!(r=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+r]));t=d.parseTableRow(s,h,false);if(DD.nil===t){return c;}if(d.ParseOption.KramdownSpanIAL){u=t.FirstChild;while(true){if(!(!(DD.nil===u))){break;}v=A.LastIndex(u.Tokens,(new DA($stringToBytes("{:"))));if(0>v){u=u.Next;continue;}w=$subslice(u.Tokens,v);x=d.parseKramdownSpanIAL(w);y=x[0];z=x[1];if(0>0));u.Tokens=$subslice(u.Tokens,0,(u.Tokens.$length-aa.$length>>0));ab=new B.Node.ptr("","","","",456,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,aa,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);u.InsertAfter(ab);u=u.Next;}u=u.Next;}}c.AppendChild(t);r=r+(1)>>0;}return c;};$ptrType(AB).prototype.newTableHead=function EM(b){var b,c,d,e,f,g,h,i,j;c=this;d=new B.Node.ptr("","","","",107,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);e=b;f=0;while(true){if(!(f=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]);h=new B.Node.ptr("","","","",108,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);d.AppendChild(h);i=g.FirstChild;while(true){if(!(!(DD.nil===i))){break;}j=i.Next;h.AppendChild(i);i=j;}f++;}return d;};V=function EN(b,c,d){var b,c,d,e,f,g,h;if((c+1>>0)>=b.$length||c<1){return false;}e=A.IndexByte($subslice(b,0,c),d);g=0===(f=A.Count($subslice(b,0,c),new DA([d]))%2,f===f?f:$throwRuntimeError("integer divide by zero"));if(g){return false;}h=A.IndexByte($subslice(b,(c+1>>0)),d);return-1h.$length){e=DD.nil;return e;}if(F.IsBlank((0>=h.$length?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+0]))){h=$subslice(h,1);}if(h.$length>0&&F.IsBlank((i=h.$length-1>>0,((i<0||i>=h.$length)?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+i])))){h=$subslice(h,0,(h.$length-1>>0));}j=h.$length;k=c.$length;if(d&&j>k){e=DD.nil;return e;}l=0;m=DA.nil;while(true){if(!(l=h.$length)?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+l]);}else{m=F.TrimWhitespace(((l<0||l>=h.$length)?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+l]));}m=A.ReplaceAll(m,(new DA($stringToBytes("|"))),(new DA($stringToBytes("|"))));n=new B.Node.ptr("","","","",109,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,((l<0||l>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+l]),0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);n.Tokens=m;e.AppendChild(n);l=l+(1)>>0;}while(true){if(!(l=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+l]),0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);e.AppendChild(o);l=l+(1)>>0;}return e;};$ptrType(AB).prototype.findTableDelimRow=function EP(b){var b,c,d,e,f,g,h,i;c=0;d=this;e=b.$length;if(2>e){c=-1;return c;}f=b;g=0;while(true){if(!(g=f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+g]);if(!(DG.nil===d.parseTableDelimRow(i))){c=h;return c;}g++;}c=-1;return c;};$ptrType(AB).prototype.parseTableDelimRow=function EQ(b){var b,c,d,e,f,g,h,i,j,k,l,m,n,o;c=DG.nil;d=this;e=b.$length;if(1>e){c=DG.nil;return c;}f=0;g=0;while(true){if(!(g=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+g]);if(!((124===f))&&!((45===f))&&!((58===f))&&!((32===f))){c=DG.nil;return c;}g=g+(1)>>0;}h=A.Index(b,(new DA($stringToBytes("\\|"))));if(0=i.$length?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+0]))){i=$subslice(i,1);}if(i.$length>0&&F.IsBlank((j=i.$length-1>>0,((j<0||j>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+j])))){i=$subslice(i,0,(i.$length-1>>0));}k=DG.nil;l=i;m=0;while(true){if(!(m=l.$length)?($throwRuntimeError("index out of range"),undefined):l.$array[l.$offset+m]);n=F.TrimWhitespace(n);n=A.ReplaceAll(n,(new DA($stringToBytes("|"))),(new DA($stringToBytes("|"))));if(1>e||DA.nil===n){c=DG.nil;return c;}o=d.tableDelimAlign(n);if(-1===o){c=DG.nil;return c;}k=$append(k,o);m++;}c=k;return c;};$ptrType(AB).prototype.tableDelimAlign=function ER(b){var b,c,d,e,f,g,h,i,j,k,l,m;c=this;d=b.$length;if(1>d){return-1;}e=false;f=false;g=e;h=f;i=(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0]);g=58===i;k=(j=d-1>>0,((j<0||j>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+j]));h=58===k;l=1;m=0;while(true){if(!(l<(d-1>>0))){break;}m=((l<0||l>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+l]);if(!((45===m))){return-1;}l=l+(1)>>0;}if(g&&h){return 2;}if(g){return 1;}if(h){return 3;}return 0;};W=function ES(b,c){var{b,c,d,e,f,g,$s,$r,$c}=$restore(this,{b,c});$s=$s||0;s:while(true){switch($s){case 0:if(!b.Context.ParseOption.SuperBlock||b.Context.indented){$s=-1;return 0;}d=b.parseSuperBlock();e=d[0];f=d[1];if(e){$s=1;continue;}$s=2;continue;case 1:$r=b.Context.closeUnmatchedBlocks();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}g=b.Context.addChild(475);$s=4;case 4:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}g;b.Context.addChildMarker(476,DA.nil);b.Context.addChildMarker(477,f);b.Context.offset=b.Context.currentLineLen-1>>0;$s=-1;return 1;case 2:$s=-1;return 0;}return;}var $f={$blk:ES,$c:true,$r,b,c,d,e,f,g,$s};return $f;};$pkg.SuperBlockStart=W;X=function ET(b,c){var{b,c,d,e,$s,$r,$c}=$restore(this,{b,c});$s=$s||0;s:while(true){switch($s){case 0:if(!(DD.nil===c.Tip.LastChild)&&(478===c.Tip.LastChild.Type)&&c.Tip.LastChild.Close){$s=-1;return 1;}d=c.isSuperBlockClose($subslice(c.currentLine,c.nextNonspace));$s=3;case 3:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}if(d){$s=1;continue;}$s=2;continue;case 1:e=c.Tip;while(true){if(!(!(DD.nil===e))){break;}if(475===e.Type){$s=-1;return 3;}e=e.Parent;}case 2:$s=-1;return 0;}return;}var $f={$blk:ET,$c:true,$r,b,c,d,e,$s};return $f;};$pkg.SuperBlockContinue=X;$ptrType(AB).prototype.superBlockFinalize=function EU(b){var{b,c,d,$s,$r,$c}=$restore(this,{b});$s=$s||0;s:while(true){switch($s){case 0:c=this;d=b.FirstChild;case 1:if(!(!(DD.nil===d))){$s=2;continue;}if(d.Close){d=d.Next;$s=1;continue;}$r=c.finalize(d);$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}d=d.Next;$s=1;continue;case 2:$s=-1;return;}return;}var $f={$blk:EU,$c:true,$r,b,c,d,$s};return $f;};$ptrType(AD).prototype.parseSuperBlock=function EV(){var b,c,d,e,f,g,h,i,j,k,l,m;b=false;c=DA.nil;d=this;g=(e=d.Context.currentLine,f=d.Context.nextNonspace,((f<0||f>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]));if(!((123===g))){return[b,c];}h=g;i=0;j=d.Context.nextNonspace;while(true){if(!(j=k.$length)?($throwRuntimeError("index out of range"),undefined):k.$array[k.$offset+j]))))){break;}i=i+(1)>>0;j=j+(1)>>0;}if(!((3===i))){return[b,c];}c=$subslice(d.Context.currentLine,(d.Context.nextNonspace+i>>0));c=F.TrimWhitespace(c);if(!A.EqualFold(c,DA.nil)&&!A.EqualFold(c,(new DA($stringToBytes("row"))))&&!A.EqualFold(c,(new DA($stringToBytes("col"))))){return[b,c];}l=true;m=c;b=l;c=m;return[b,c];};$ptrType(AB).prototype.isSuperBlockClose=function EW(b){var{b,c,d,e,f,g,h,i,j,k,$s,$r,$c}=$restore(this,{b});$s=$s||0;s:while(true){switch($s){case 0:c=false;d=this;b=F.TrimWhitespace(b);if(A.Equal(b,(new DA($stringToBytes("\xE2\x80\xB8}}}"))))){e=new B.Node.ptr("","","","",1,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,C.CaretTokens,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);d.TipAppendChild(e);}f=A.HasSuffix(b,C.CaretTokens);b=A.ReplaceAll(b,C.CaretTokens,DA.nil);if(!A.Equal((new DA($stringToBytes("}}}"))),b)){$s=-1;return c;}if(f){$s=1;continue;}$s=2;continue;case 1:g=d.Tip.ChildrenByType(1);$s=3;case 3:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}h=g;i=h.$length;if(0>0,((j<0||j>=h.$length)?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+j]));k.Tokens=$appendSlice(k.Tokens,C.CaretTokens);}case 2:c=true;$s=-1;return c;}return;}var $f={$blk:EW,$c:true,$r,b,c,d,e,f,g,h,i,j,k,$s};return $f;};Y=function EX(b,c,d){var{b,c,d,e,$s,$r,$c}=$restore(this,{b,c,d});$s=$s||0;s:while(true){switch($s){case 0:e=EY.nil;e=new AD.ptr(DD.nil,new AB.ptr(EY.nil,d,DD.nil,DD.nil,DA.nil,0,0,0,0,0,0,false,false,false,false,DD.nil,DD.nil),FA.nil,FB.nil,b,"","","","",DH.nil,new $Int64(0,0),new $Int64(0,0),"");e.Context.Tree=e;e.lexer=F.NewLexer(c);e.Root=new B.Node.ptr("","","","",0,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);$r=e.parseBlocks();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=e.parseInlines();$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=e.finalParseBlockIAL();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}e.lexer=FA.nil;$s=-1;return e;}return;}var $f={$blk:EX,$c:true,$r,b,c,d,e,$s};return $f;};$pkg.Parse=Y;$ptrType(AD).prototype.finalParseBlockIAL=function FD(){var{b,c,d,e,f,g,h,i,j,k,l,m,n,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:b=[b];c=[c];c[0]=this;if(!c[0].Context.ParseOption.KramdownBlockIAL){$s=-1;return;}b[0]=DE.nil;$r=B.Walk(c[0].Root,(function(b,c){return function FE(d,e){var{d,e,f,g,h,i,$s,$r,$c}=$restore(this,{d,e});$s=$s||0;s:while(true){switch($s){case 0:if(!e||!d.IsBlock()||(455===d.Type)){$s=-1;return 2;}if((5===d.Type)&&!(DD.nil===d.FirstChild)&&DD.nil===d.FirstChild.Next){b[0]=$append(b[0],d);}if(""===d.ID){$s=1;continue;}$s=2;continue;case 1:f=d.IALAttr("id");if(""===f){$s=3;continue;}$s=4;continue;case 3:g=B.NewNodeID();$s=5;case 5:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}f=g;case 4:d.ID=f;if(c[0].Context.ParseOption.ProtyleWYSIWYG&&c[0].Context.ParseOption.Spin&&!((0===d.Type))&&!(DD.nil===d.Next)&&!((455===d.Next.Type))&&!(""===d.Next.ID)){$s=6;continue;}$s=7;continue;case 6:d.ID=d.Next.ID;d.KramdownIAL=d.Next.KramdownIAL;if(""===d.IALAttr("updated")){d.SetIALAttr("updated",$substring(d.ID,0,14));}h=B.NewNodeID();$s=8;case 8:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}d.Next.ID=h;d.Next.KramdownIAL=DI.nil;d.Next.SetIALAttr("id",d.Next.ID);d.Next.SetIALAttr("updated",$substring(d.Next.ID,0,14));if(!(DD.nil===d.Next.Next)&&(455===d.Next.Next.Type)){d.Next.Next.Tokens=BA(d.Next.KramdownIAL);}d.InsertAfter(new B.Node.ptr("","","","",455,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,BA(d.KramdownIAL),"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));$s=-1;return 2;case 7:case 2:i=d.Next;if(DD.nil===i||!((455===i.Type))){if(c[0].Context.ParseOption.ProtyleWYSIWYG){d.SetIALAttr("id",d.ID);d.SetIALAttr("updated",$substring(d.ID,0,14));}$s=-1;return 2;}d.KramdownIAL=BI(i.Tokens);if(""===d.IALAttr("updated")&&c[0].Context.ParseOption.ProtyleWYSIWYG){d.SetIALAttr("updated",$substring(d.ID,0,14));i.Tokens=BA(d.KramdownIAL);}$s=-1;return 2;}return;}var $f={$blk:FE,$c:true,$r,d,e,f,g,h,i,$s};return $f;};})(b,c));$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}d=b[0];e=0;case 2:if(!(e=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+e]);g=B.NewNodeID();$s=4;case 4:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}h=g;i=(new DA($stringToBytes("{: id=\""+h+"\"}")));j=new B.Node.ptr(h,"","","",1,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);j.KramdownIAL=new DI([new DH(["id",h]),new DH(["updated",$substring(h,0,14)])]);j.ID=h;j.InsertAfter(new B.Node.ptr("","","","",455,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,i,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));if(!(DD.nil===f.Next)&&(455===f.Next.Type)&&(5===f.Type)&&!(DD.nil===f.FirstChild)&&(6===f.FirstChild.Type)&&DD.nil===f.FirstChild.Next){k=new B.Node.ptr("","","","",16,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,C.CaretTokens,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);j.AppendChild(k);}f.AppendChild(j);e++;$s=2;continue;case 3:l=DD.nil;m="";if(!(DD.nil===c[0].Context.rootIAL)){$s=5;continue;}$s=6;continue;case 5:l=c[0].Context.rootIAL;$s=7;continue;case 6:n=B.NewNodeID();$s=8;case 8:if($c){$c=false;n=n.$blk();}if(n&&n.$blk!==undefined){break s;}m=n;l=new B.Node.ptr("","","","",455,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,(new DA($stringToBytes("{: id=\""+m+"\" updated=\""+$substring(m,0,14)+"\" type=\"doc\"}"))),"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);c[0].Root.ID=m;c[0].ID=m;case 7:c[0].Root.AppendChild(l);$s=-1;return;}return;}var $f={$blk:FD,$c:true,$r,b,c,d,e,f,g,h,i,j,k,l,m,n,$s};return $f;};AA=function FG(b,c,d){var{b,c,d,e,$s,$r,$c}=$restore(this,{b,c,d});$s=$s||0;s:while(true){switch($s){case 0:e=EY.nil;e=new AD.ptr(DD.nil,new AB.ptr(EY.nil,d,DD.nil,DD.nil,DA.nil,0,0,0,0,0,0,false,false,false,false,DD.nil,DD.nil),FA.nil,FB.nil,b,"","","","",DH.nil,new $Int64(0,0),new $Int64(0,0),"");e.Context.Tree=e;e.Root=new B.Node.ptr("","","","",0,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);e.Root.AppendChild(new B.Node.ptr("","","","",1,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,c,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));$r=e.parseInlines();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}e.lexer=FA.nil;$s=-1;return e;}return;}var $f={$blk:FG,$c:true,$r,b,c,d,e,$s};return $f;};$pkg.Inline=AA;$ptrType(AB).prototype.advanceOffset=function FH(b,c){var b,c,d,e,f,g,h,i,j,k,l;d=this;e=d.currentLine;f=0;g=0;h=f;i=g;j=0;while(true){if(!(0=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+k]));if(9===j){h=4-((l=d.column%4,l===l?l:$throwRuntimeError("integer divide by zero")))>>0;if(c){d.partiallyConsumedTab=h>b;if(d.partiallyConsumedTab){i=b;}else{i=h;d.offset=d.offset+(1)>>0;}d.column=d.column+(i)>>0;b=b-(i)>>0;}else{d.partiallyConsumedTab=false;d.column=d.column+(h)>>0;d.offset=d.offset+(1)>>0;b=b-(1)>>0;}}else{d.partiallyConsumedTab=false;d.offset=d.offset+(1)>>0;d.column=d.column+(1)>>0;b=b-(1)>>0;}}};$ptrType(AB).prototype.advanceNextNonspace=function FI(){var b;b=this;b.offset=b.nextNonspace;b.column=b.nextNonspaceColumn;b.partiallyConsumedTab=false;};$ptrType(AB).prototype.findNextNonspace=function FJ(){var b,c,d,e,f,g;b=this;c=b.offset;d=b.column;e=0;while(true){e=(f=b.currentLine,((c<0||c>=f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+c]));if(32===e){c=c+(1)>>0;d=d+(1)>>0;}else if(9===e){c=c+(1)>>0;d=d+((4-((g=d%4,g===g?g:$throwRuntimeError("integer divide by zero")))>>0))>>0;}else{break;}}b.blank=10===e;b.nextNonspace=c;b.nextNonspaceColumn=d;b.indent=b.nextNonspaceColumn-b.column>>0;b.indented=4<=b.indent;};$ptrType(AB).prototype.closeUnmatchedBlocks=function FK(){var{b,c,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:b=this;if(!b.allClosed){$s=1;continue;}$s=2;continue;case 1:case 3:if(!(!(b.oldtip===b.lastMatchedContainer))){$s=4;continue;}c=b.oldtip.Parent;$r=b.finalize(b.oldtip);$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}b.oldtip=c;$s=3;continue;case 4:b.allClosed=true;case 2:$s=-1;return;}return;}var $f={$blk:FK,$c:true,$r,b,c,$s};return $f;};$ptrType(AB).prototype.closeSuperBlockChildren=function FL(){var{b,c,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:b=this;c=b.Tip;case 1:if(!(!(DD.nil===c)&&!((475===c.Type)))){$s=2;continue;}$r=b.finalize(c);$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c=c.Parent;$s=1;continue;case 2:$s=-1;return;}return;}var $f={$blk:FL,$c:true,$r,b,c,$s};return $f;};$ptrType(AB).prototype.finalize=function FM(b){var{b,c,d,e,f,g,$s,$r,$c}=$restore(this,{b});$s=$s||0;s:while(true){switch($s){case 0:c=this;d=b.Parent;b.Close=true;e=b.Type;if(e===(11)){$s=2;continue;}if((e===(9))||(e===(500))||(e===(510))||(e===(505))||(e===(535))){$s=3;continue;}if(e===(1)){$s=4;continue;}if(e===(300)){$s=5;continue;}if(e===(425)){$s=6;continue;}if(e===(7)){$s=7;continue;}if(e===(475)){$s=8;continue;}if(e===(495)){$s=9;continue;}if(e===(560)){$s=10;continue;}if(e===(580)){$s=11;continue;}if(e===(5)){$s=12;continue;}$s=13;continue;case 2:c.codeBlockFinalize(b);$s=13;continue;case 3:c.htmlBlockFinalize(b);$s=13;continue;case 4:f=AH(b,c);$s=14;case 14:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}g=f;if(g){$s=-1;return;}$s=13;continue;case 5:$r=c.mathBlockFinalize(b);$s=15;case 15:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=13;continue;case 6:c.yamlFrontMatterFinalize(b);$s=13;continue;case 7:$r=c.listFinalize(b);$s=16;case 16:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=13;continue;case 8:$r=c.superBlockFinalize(b);$s=17;case 17:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=13;continue;case 9:$r=c.gitConflictFinalize(b);$s=18;case 18:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=13;continue;case 10:c.customBlockFinalize(b);$s=13;continue;case 11:$r=c.calloutFinalize(b);$s=19;case 19:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=13;continue;case 12:$r=c.blockquoteFinalize(b);$s=20;case 20:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 13:case 1:c.Tip=d;$s=-1;return;}return;}var $f={$blk:FM,$c:true,$r,b,c,d,e,f,g,$s};return $f;};$ptrType(AB).prototype.addChildMarker=function FN(b,c){var b,c,d,e;d=DD.nil;e=this;d=new B.Node.ptr("","","","",b,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,c,"","",true,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);e.Tip.AppendChild(d);return d;};$ptrType(AB).prototype.addChild=function FO(b){var{b,c,d,$s,$r,$c}=$restore(this,{b});$s=$s||0;s:while(true){switch($s){case 0:c=DD.nil;d=this;case 1:if(!(!d.Tip.CanContain(b))){$s=2;continue;}$r=d.finalize(d.Tip);$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=1;continue;case 2:c=new B.Node.ptr("","","","",b,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);d.Tip.AppendChild(c);d.Tip=c;$s=-1;return c;}return;}var $f={$blk:FO,$c:true,$r,b,c,d,$s};return $f;};$ptrType(AB).prototype.listsMatch=function FP(b,c){var b,c,d;d=this;return(b.Typ===c.Typ)&&(((0===b.Delimiter)&&(0===c.Delimiter))||(b.Delimiter===c.Delimiter))&&(b.BulletChar===c.BulletChar);};$ptrType(AE).prototype.IsValidTaskListItemMarker=function FQ(b){var b,c;c=this;return((32===b)||(120===b)||(88===b))||(c.ArbitraryTaskListItemMarker&&!((91===b))&&!((93===b)));};AF=function FR(){return new AE.ptr(true,true,true,true,true,true,true,false,true,$pkg.EmojiAliasUnicode,$pkg.EmojiUnicodeAlias,"https://cdn.jsdelivr.net/npm/vditor/dist/images/emoji",false,false,false,false,false,true,false,true,true,false,false,false,false,false,false,false,false,false,false,true,true,false,true,true,false,true,false,false,false,DH.nil,false,false,false);};$pkg.NewOptions=AF;$ptrType(AB).prototype.ParentTip=function FS(){var b,c;b=this;c=b.Tip.Parent;if(!(DD.nil===c)){b.Tip=b.Tip.Parent;}};$ptrType(AB).prototype.TipAppendChild=function FT(b){var b,c;c=this;c.Tip.AppendChild(b);};AG=function FU(b,c){var b,c;if(c.blank){return 1;}return 0;};$pkg.ParagraphContinue=AG;AH=function FV(b,c){var{aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,aq,ar,as,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s,$r,$c}=$restore(this,{b,c});$s=$s||0;s:while(true){switch($s){case 0:d=false;if(c.ParseOption.ParagraphBeginningSpace){e=F.TrimRight(b.Tokens);b.Tokens=e[1];}else{b.Tokens=F.TrimWhitespace(b.Tokens);}f=false;g=b.Tokens;while(true){if(!(0=g.$length?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+0])))){break;}g=c.parseLinkRefDef(g);if(!(DA.nil===g)){b.Tokens=g;f=true;g=b.Tokens;continue;}break;}if(f&&F.IsBlankLine(b.Tokens)){b.Unlink();}if(c.ParseOption.KramdownBlockIAL&&!(DD.nil===c.Tip.Parent)&&(8===c.Tip.Parent.Type)&&b===c.Tip.Parent.FirstChild){h=BI(b.Tokens);if(!(DI.nil===h)){i=new B.Node.ptr("","","","",1,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,h,false,"","","","","","","","","","","",0,"","","","",0);j=BD(h);i.ID=(k=$mapIndex(j,$String.keyFor("id")),k!==undefined?k.v:"");c.Tip.Parent.AppendChild(i);i.InsertAfter(new B.Node.ptr("","","","",455,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,BA(h),"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));b.Unlink();$s=-1;return d;}}if(c.ParseOption.GFMTaskListItem){$s=1;continue;}$s=2;continue;case 1:l=b.Parent;if(!(DD.nil===l)&&(8===l.Type)&&l.FirstChild===b){$s=3;continue;}$s=4;continue;case 3:if(3===l.ListData.Typ){$s=5;continue;}$s=6;continue;case 5:m=c.ParseOption.VditorWYSIWYG||c.ParseOption.VditorIR||c.ParseOption.VditorSV||c.ParseOption.ProtyleWYSIWYG;n=3>0));b.KramdownIAL=p;}}if(((3===o.$length)&&((0>=o.$length?($throwRuntimeError("index out of range"),undefined):o.$array[o.$offset+0])===91)&&((2>=o.$length?($throwRuntimeError("index out of range"),undefined):o.$array[o.$offset+2])===93)&&!(((1>=o.$length?($throwRuntimeError("index out of range"),undefined):o.$array[o.$offset+1])===93)))||(3=o.$length?($throwRuntimeError("index out of range"),undefined):o.$array[o.$offset+3]))||((q=C.CaretTokens,(0>=q.$length?($throwRuntimeError("index out of range"),undefined):q.$array[q.$offset+0]))===(3>=o.$length?($throwRuntimeError("index out of range"),undefined):o.$array[o.$offset+3]))||((r=C.CaretTokens,(0>=r.$length?($throwRuntimeError("index out of range"),undefined):r.$array[r.$offset+0]))===(2>=o.$length?($throwRuntimeError("index out of range"),undefined):o.$array[o.$offset+2]))))){$s=9;continue;}$s=10;continue;case 9:s=false;t=false;u=false;v=s;w=t;x=u;if(c.ParseOption.VditorWYSIWYG||c.ParseOption.VditorIR||c.ParseOption.VditorSV||c.ParseOption.ProtyleWYSIWYG){y=A.IndexByte(o,93);if(A.HasPrefix(o,C.CaretTokens)){o=A.ReplaceAll(o,C.CaretTokens,DA.nil);v=true;}else if(A.HasPrefix($subslice(o,(y+1>>0)),C.CaretTokens)){o=A.ReplaceAll(o,C.CaretTokens,DA.nil);w=true;}else if(A.Contains($subslice(o,1,y),C.CaretTokens)){o=A.ReplaceAll(o,C.CaretTokens,DA.nil);x=true;}}z=(1>=o.$length?($throwRuntimeError("index out of range"),undefined):o.$array[o.$offset+1]);if(c.ParseOption.IsValidTaskListItemMarker(z)){$s=11;continue;}$s=12;continue;case 11:aa=new B.Node.ptr("","","","",100,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,$subslice(o,0,3),"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);aa.ReviveFromMarker(z);if(c.ParseOption.ProtyleWYSIWYG){b.InsertBefore(aa);}else{b.PrependChild(aa);}b.Tokens=$subslice(o,3);if(m){$s=13;continue;}$s=14;continue;case 13:ab=A.TrimSpace(b.Tokens);$s=15;case 15:if($c){$c=false;ab=ab.$blk();}if(ab&&ab.$blk!==undefined){break s;}b.Tokens=ab;if(v||w||x){b.Tokens=$appendSlice((new DA($stringToBytes(" \xE2\x80\xB8"))),b.Tokens);}else{if(!c.ParseOption.ProtyleWYSIWYG){b.Tokens=$appendSlice((new DA($stringToBytes(" "))),b.Tokens);}}case 14:if(0=aj.$length)?($throwRuntimeError("index out of range"),undefined):aj.$array[aj.$offset+ak]);b.InsertAfter(al);ak++;}b.Unlink();}case 17:case 12:case 10:case 8:case 6:case 4:case 2:if(c.ParseOption.GFMTable){am=c.parseTable(b);an=am[0];ao=am[1];if(!(DD.nil===ao)){if(!(DD.nil===an)){b.Tokens=an.Tokens;b.InsertAfter(ao);ao.Close=true;c.Tip=ao;d=true;$s=-1;return d;}else{b.Type=106;b.TableAligns=ao.TableAligns;ap=ao.FirstChild;while(true){if(!(!(DD.nil===ap))){break;}aq=ap.Next;b.AppendChild(ap);ap=aq;}}$s=-1;return d;}}if(c.ParseOption.ToC){$s=19;continue;}$s=20;continue;case 19:ar=c.parseToC(b);$s=21;case 21:if($c){$c=false;ar=ar.$blk();}if(ar&&ar.$blk!==undefined){break s;}as=ar;if(!(DD.nil===as)){b.Type=415;$s=-1;return d;}case 20:$s=-1;return d;}return;}var $f={$blk:FV,$c:true,$r,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,aq,ar,as,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s};return $f;};AI=function FW(b,c){var{b,c,d,e,f,g,h,$s,$r,$c}=$restore(this,{b,c});$s=$s||0;s:while(true){switch($s){case 0:if(b.Context.indented){$s=-1;return 0;}d=b.parseMathBlock();e=d[0];f=d[1];if(e){$s=1;continue;}$s=2;continue;case 1:$r=b.Context.closeUnmatchedBlocks();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}g=b.Context.addChild(300);$s=4;case 4:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}h=g;h.MathBlockDollarOffset=f;b.Context.advanceNextNonspace();b.Context.advanceOffset(f,false);$s=-1;return 2;case 2:$s=-1;return 0;}return;}var $f={$blk:FW,$c:true,$r,b,c,d,e,f,g,h,$s};return $f;};$pkg.MathBlockStart=AI;AJ=function FX(b,c){var{b,c,d,e,f,g,$s,$r,$c}=$restore(this,{b,c});$s=$s||0;s:while(true){switch($s){case 0:d=c.currentLine;e=c.indent;if(3>=e&&c.isMathBlockClose($subslice(d,c.nextNonspace))){$s=1;continue;}$s=2;continue;case 1:$r=c.finalize(b);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return 2;case 2:f=b.MathBlockDollarOffset;g=0;while(true){if(!(f>0)){break;}g=F.Peek(d,c.offset);if(!((32===g))&&!((9===g))){break;}c.advanceOffset(1,true);f=f-(1)>>0;}case 3:$s=-1;return 0;}return;}var $f={$blk:FX,$c:true,$r,b,c,d,e,f,g,$s};return $f;};$pkg.MathBlockContinue=AJ;$ptrType(AB).prototype.mathBlockFinalize=function FY(b){var{b,c,d,e,f,g,$s,$r,$c}=$restore(this,{b});$s=$s||0;s:while(true){switch($s){case 0:c=this;if(2>b.Tokens.$length){b.AppendChild(new B.Node.ptr("","","","",301,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));b.AppendChild(new B.Node.ptr("","","","",302,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));b.AppendChild(new B.Node.ptr("","","","",303,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));$s=-1;return;}d=$subslice(b.Tokens,2);d=F.TrimWhitespace(d);if(c.ParseOption.VditorWYSIWYG||c.ParseOption.VditorIR||c.ParseOption.VditorSV||c.ParseOption.ProtyleWYSIWYG){if(A.HasSuffix(d,$pkg.MathBlockMarkerCaret)){d=A.TrimSuffix(d,$pkg.MathBlockMarkerCaret);d=$appendSlice(d,C.CaretTokens);}}if(A.HasSuffix(d,$pkg.MathBlockMarker)){d=$subslice(d,0,(d.$length-2>>0));}if(A.Contains(d,(new DA($stringToBytes("=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]));if(!((36===g))){return[b,c];}h=g;i=0;j=d.Context.nextNonspace;while(true){if(!(j=k.$length)?($throwRuntimeError("index out of range"),undefined):k.$array[k.$offset+j]))))){break;}i=i+(1)>>0;j=j+(1)>>0;}if(2>i){return[b,c];}l=true;m=d.Context.indent;b=l;c=m;return[b,c];};$ptrType(AB).prototype.isMathBlockClose=function GA(b){var b,c,d,e,f,g,h,i;c=this;if(c.ParseOption.KramdownBlockIAL&&BH(b)){d=c.parseKramdownBlockIAL(b);if(0=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0]);if(!((f===36))){return false;}if(2>F.Accept(b,f)){return false;}b=F.TrimWhitespace(b);g=b;h=0;while(true){if(!(h=g.$length)?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+h]);if(!((i===36))){return false;}h++;}return true;};AK=function GB(b,c){var{b,c,d,e,f,g,h,i,j,k,l,$s,$r,$c}=$restore(this,{b,c});$s=$s||0;s:while(true){switch($s){case 0:if(!((7===c.Type))&&b.Context.indented){$s=-1;return 0;}d=b.parseListMarker(c);e=d[0];f=d[1];if(DF.nil===e){$s=-1;return 0;}$r=b.Context.closeUnmatchedBlocks();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}g=(c.Type===7)&&b.Context.listsMatch(c.ListData,e);if(!((b.Context.Tip.Type===7))||!g){$s=2;continue;}$s=3;continue;case 2:h=b.Context.addChild(7);$s=4;case 4:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}i=h;i.ListData=e;case 3:j=b.Context.addChild(8);$s=5;case 5:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}k=j;k.ListData=e;if(b.Context.ParseOption.KramdownBlockIAL&&!(DI.nil===f)){k.KramdownIAL=f;k.ID=k.IALAttr("id");b.Context.offset=b.Context.offset+(BA(f).$length)>>0;}k.Tokens=e.Marker;if((1===k.ListData.Typ)||((3===k.ListData.Typ)&&(0===k.ListData.BulletChar))){l=k.Previous;if(!(DD.nil===l)){k.ListData.Num=l.ListData.Num+1>>0;}else{k.ListData.Num=e.Start;}}$s=-1;return 1;}return;}var $f={$blk:GB,$c:true,$r,b,c,d,e,f,g,h,i,j,k,l,$s};return $f;};$pkg.ListStart=AK;AL=function GC(b,c){var b,c;if(c.blank){if(DD.nil===b.FirstChild){return 1;}c.advanceNextNonspace();}else if(c.indent>=(b.ListData.MarkerOffset+b.ListData.Padding>>0)){c.advanceOffset(b.ListData.MarkerOffset+b.ListData.Padding>>0,true);}else{return 1;}return 0;};$pkg.ListItemContinue=AL;$ptrType(AB).prototype.listFinalize=function GD(b){var{b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,$s,$r,$c}=$restore(this,{b});$s=$s||0;s:while(true){switch($s){case 0:c=this;d=b.FirstChild;while(true){if(!(!(DD.nil===d))){break;}if(AN(d)&&!(DD.nil===d.Next)){b.ListData.Tight=false;break;}e=d.FirstChild;while(true){if(!(!(DD.nil===e))){break;}if(AN(e)&&(!(DD.nil===d.Next)||!(DD.nil===e.Next))){b.ListData.Tight=false;break;}e=e.Next;}d=d.Next;}if(c.ParseOption.KramdownBlockIAL){$s=1;continue;}$s=2;continue;case 1:f=b.FirstChild;case 3:if(!(!(DD.nil===f))){$s=4;continue;}if(DD.nil===f.FirstChild){$s=5;continue;}$s=6;continue;case 5:if(!((455===f.Type))){$s=7;continue;}$s=8;continue;case 7:g=B.NewNodeID();$s=9;case 9:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}h=g;i=(new DA($stringToBytes("{: id=\""+h+"\"}")));f.KramdownIAL=new DI([new DH(["id",h])]);f.ID=h;f.InsertAfter(new B.Node.ptr("","","","",455,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,i,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));j=B.NewNodeID();$s=10;case 10:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}h=j;i=(new DA($stringToBytes("{: id=\""+h+"\"}")));k=new B.Node.ptr(h,"","","",1,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);k.KramdownIAL=new DI([new DH(["id",h])]);k.ID=h;k.InsertAfter(new B.Node.ptr("","","","",455,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,i,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));f.AppendChild(k);f=f.Next;case 8:f=f.Next;$s=3;continue;case 6:if(7=l.$length?($throwRuntimeError("index out of range"),undefined):l.$array[l.$offset+0])))){$s=11;continue;}$s=12;continue;case 11:m=c.parseKramdownIALInListItem(f.FirstChild.Tokens);if(0=m.$length?($throwRuntimeError("index out of range"),undefined):m.$array[m.$offset+0]),(1>=n.$length?($throwRuntimeError("index out of range"),undefined):n.$array[n.$offset+1]));o=BA(m);f.InsertAfter(new B.Node.ptr("","","","",455,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,o,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));p=$subslice(f.FirstChild.Tokens,(A.Index(f.FirstChild.Tokens,(new DA($stringToBytes("}"))))+1>>0));p=F.TrimWhitespace(p);f.FirstChild.Tokens=p;f=f.Next;}$s=13;continue;case 12:q=DA.nil;if(DI.nil===f.KramdownIAL){$s=14;continue;}$s=15;continue;case 14:r=B.NewNodeID();$s=17;case 17:if($c){$c=false;r=r.$blk();}if(r&&r.$blk!==undefined){break s;}s=r;q=(new DA($stringToBytes("{: id=\""+s+"\"}")));f.KramdownIAL=new DI([new DH(["id",s])]);f.ID=s;$s=16;continue;case 15:q=BA(f.KramdownIAL);case 16:f.InsertAfter(new B.Node.ptr("","","","",455,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,q,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));case 13:f=f.Next;$s=3;continue;case 4:case 2:$s=-1;return;}return;}var $f={$blk:GD,$c:true,$r,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,$s};return $f;};$ptrType(AD).prototype.parseListMarker=function GE(b){var aa,ab,ac,ad,ae,af,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;c=DF.nil;d=DI.nil;e=this;if(4<=e.Context.indent){f=DF.nil;g=DI.nil;c=f;d=g;return[c,d];}h=e.Context.currentLine;if(e.Context.ParseOption.ProtyleWYSIWYG){i=A.Index(h,(new DA($stringToBytes(". "))));if(-1=k.$length?($throwRuntimeError("index out of range"),undefined):k.$array[k.$offset+0])]);n=0;if((43===(0>=m.$length?($throwRuntimeError("index out of range"),undefined):m.$array[m.$offset+0]))||(45===(0>=m.$length?($throwRuntimeError("index out of range"),undefined):m.$array[m.$offset+0]))||(42===(0>=m.$length?($throwRuntimeError("index out of range"),undefined):m.$array[m.$offset+0]))){c.BulletChar=(0>=m.$length?($throwRuntimeError("index out of range"),undefined):m.$array[m.$offset+0]);}else{o=e.parseOrderedListMarker(k);m=o[0];n=o[1];if(!(DA.nil===m)){if(!((b.Type===1))||A.Equal(AM,m)){c.Typ=1;p=H.Atoi(G.BytesToStr(m));c.Start=p[0];l=m.$length+1>>0;c.Delimiter=n;}else{q=DF.nil;r=DI.nil;c=q;d=r;return[c,d];}}else{s=DF.nil;t=DI.nil;c=s;d=t;return[c,d];}}c.Marker=m;if(1===c.Typ){c.Marker=$appendSlice(c.Marker,(new DA($stringToBytes("."))));}v=(u=e.Context.nextNonspace+l>>0,((u<0||u>=h.$length)?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+u]));if(!F.IsWhitespace(v)){w=DF.nil;x=DI.nil;c=w;d=x;return[c,d];}if((b.Type===1)&&(10===v)){y=DF.nil;z=DI.nil;c=y;d=z;return[c,d];}e.Context.advanceNextNonspace();e.Context.advanceOffset(l,true);aa=e.Context.column;ab=e.Context.offset;while(true){e.Context.advanceOffset(1,true);v=F.Peek(h,e.Context.offset);if((e.Context.column-aa>>0)>=5||(0===(v))||(!((32===v))&&!((9===v)))){break;}}v=F.Peek(h,e.Context.offset);ac=(0===v)||(10===v);ad=e.Context.column-aa>>0;if(ad>=5||ad<1||ac){c.Padding=l+1>>0;e.Context.column=aa;e.Context.offset=ab;v=F.Peek(h,e.Context.offset);if((32===v)||(9===v)){e.Context.advanceOffset(1,true);}}else{c.Padding=l+ad>>0;}if(!ac){ae=$subslice(h,e.Context.offset);if(e.Context.ParseOption.KramdownBlockIAL){d=e.Context.parseKramdownIALInListItem(ae);if(0>0));}}if(e.Context.ParseOption.VditorWYSIWYG||e.Context.ParseOption.VditorIR||e.Context.ParseOption.VditorSV){ae=A.ReplaceAll(ae,C.CaretTokens,DA.nil);}if(3<=ae.$length){if((91===(0>=ae.$length?($throwRuntimeError("index out of range"),undefined):ae.$array[ae.$offset+0]))&&!((93===(1>=ae.$length?($throwRuntimeError("index out of range"),undefined):ae.$array[ae.$offset+1])))&&(93===(2>=ae.$length?($throwRuntimeError("index out of range"),undefined):ae.$array[ae.$offset+2]))){af=(1>=ae.$length?($throwRuntimeError("index out of range"),undefined):ae.$array[ae.$offset+1]);if(e.Context.ParseOption.IsValidTaskListItemMarker(af)){c.Typ=3;c.Checked=!((af===32));}}}}return[c,d];};$ptrType(AD).prototype.parseOrderedListMarker=function GF(b){var b,c,d,e,f,g,h,i,j;c=DA.nil;d=0;e=this;f=b.$length;g=0;h=0;while(true){if(!(g=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+g]);if(!F.IsDigit(h)||8>0;}if(1>c.$length||(!((46===d))&&!((41===d)))){i=DA.nil;j=0;c=i;d=j;return[c,d];}return[c,d];};AN=function GG(b){var b,c;while(true){if(!(!(DD.nil===b))){break;}if(b.LastLineBlank){return true;}c=b.Type;if(!b.LastLineChecked&&((c===7)||(c===8))){b.LastLineChecked=true;b=b.LastChild;}else{b.LastLineChecked=true;break;}}return false;};$ptrType(AD).prototype.FindLinkRefDefLink=function GH(b){var{b,c,d,$s,$r,$c}=$restore(this,{b});$s=$s||0;s:while(true){switch($s){case 0:b=[b];c=[c];c[0]=DD.nil;d=this;if(!d.Context.ParseOption.LinkRef){$s=-1;return c[0];}if(d.Context.ParseOption.VditorIR||d.Context.ParseOption.VditorSV||d.Context.ParseOption.VditorWYSIWYG||d.Context.ParseOption.ProtyleWYSIWYG){b[0]=A.ReplaceAll(b[0],C.CaretTokens,DA.nil);}$r=B.Walk(d.Root,(function(b,c){return function GI(e,f){var e,f;if(!f||!((46===e.Type))){return 2;}if(A.EqualFold(e.Tokens,b[0])){c[0]=e.FirstChild;return 0;}return 2;};})(b,c));$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return c[0];}return;}var $f={$blk:GH,$c:true,$r,b,c,d,$s};return $f;};$ptrType(AB).prototype.parseLinkRefDef=function GJ(b){var aa,ab,ac,ad,ae,af,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;c=this;if(!c.ParseOption.LinkRef){return DA.nil;}d=F.TrimLeft(b);b=d[1];if(1>b.$length){return DA.nil;}e=c.parseLinkLabel(b);f=e[0];g=e[1];h=e[2];if(2>f||1>h.$length){return DA.nil;}i=g.$length;if(1>i){return DA.nil;}if(!((58===(0>=g.$length?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+0])))){return DA.nil;}g=$subslice(g,1);j=F.TrimLeft(g);k=j[0];g=j[1];l=F.StatWhitespace(k);m=l[0];if(1m){return DA.nil;}if(0<(s+t>>0)&&!F.IsBlankLine(g)&&!((10===(0>=g.$length?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+0])))){return DA.nil;}y=b;z=F.TrimLeft(g);k=z[0];b=z[1];aa=F.StatWhitespace(k);ab=aa[1];ac=aa[2];if(!F.IsBlankLine(b)&&0<(ab+ac>>0)){g=y;}else{g=b;}ad=c.Tree.newLink(33,h,p,x,1);ae=new B.Node.ptr("","","","",46,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,h,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);ae.AppendChild(ad);af=c.Tip;if(!((45===af.Type))){af=new B.Node.ptr("","","","",45,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);}af.AppendChild(ae);c.Tip.Parent.AppendChild(af);return g;};$ptrType(AB).prototype.parseLinkTitle=function GK(b){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r;c=false;d=DA.nil;e=DA.nil;f=DA.nil;g=this;if(1>b.$length){h=true;i=DA.nil;j=b;k=DA.nil;c=h;d=i;e=j;f=k;return[c,d,e,f];}if(91===(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0])){l=true;m=DA.nil;n=b;o=DA.nil;c=l;d=m;e=n;f=o;return[c,d,e,f];}p=g.parseLinkTitleMatch(34,34,b);c=p[0];d=p[1];e=p[2];f=p[3];if(!c){q=g.parseLinkTitleMatch(39,39,b);c=q[0];d=q[1];e=q[2];f=q[3];if(!c){r=g.parseLinkTitleMatch(40,41,b);c=r[0];d=r[1];e=r[2];f=r[3];}}if(!(DA.nil===f)){if(!g.ParseOption.VditorWYSIWYG&&!g.ParseOption.VditorIR&&!g.ParseOption.VditorSV&&!g.ParseOption.ProtyleWYSIWYG){f=D.UnescapeBytes(f);}}return[c,d,e,f];};$ptrType(AB).prototype.parseBlockRefText=function GL(b){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t;c=false;d=DA.nil;e=DA.nil;f=DA.nil;g="";h=this;if(1>b.$length){i=true;j=DA.nil;k=b;l=DA.nil;m="";c=i;d=j;e=k;f=l;g=m;return[c,d,e,f,g];}if(91===(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0])){n=true;o=DA.nil;p=b;q=DA.nil;r="";c=n;d=o;e=p;f=q;g=r;return[c,d,e,f,g];}s=h.parseLinkTitleMatch(34,34,b);c=s[0];d=s[1];e=s[2];f=s[3];g="s";if(!c){t=h.parseLinkTitleMatch(39,39,b);c=t[0];d=t[1];e=t[2];f=t[3];g="d";}if(!(DA.nil===f)){if(!h.ParseOption.VditorWYSIWYG&&!h.ParseOption.VditorIR&&!h.ParseOption.VditorSV&&!h.ParseOption.ProtyleWYSIWYG){f=D.UnescapeBytes(f);}}return[c,d,e,f,g];};$ptrType(AB).prototype.parseLinkTitleMatch=function GM(b,c,d){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s;e=false;f=DA.nil;g=DA.nil;h=DA.nil;i=this;g=d;j=d.$length;if(2>j){return[e,f,g,h];}if(!((b===(0>=d.$length?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+0])))){return[e,f,g,h];}k=d;j=k.$length;l=false;m=1;n=0;o=0;while(true){if(!(m=k.$length)?($throwRuntimeError("index out of range"),undefined):k.$array[k.$offset+m]);f=$append(f,p);q=L.DecodeRune($subslice(k,m));o=q[0];n=q[1];r=1;while(true){if(!(r>0,((s<0||s>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+s])));r=r+(1)>>0;}h=$appendSlice(h,G.StrToBytes(($encodeRune(o))));if((c===p)&&!F.IsBackslashEscapePunct(d,m)){l=true;h=$subslice(h,0,(h.$length-1>>0));break;}m=m+(n)>>0;}if(!l){f=DA.nil;return[e,f,g,h];}e=true;g=$subslice(d,(m+1>>0));return[e,f,g,h];};$ptrType(AB).prototype.parseLinkDest=function GN(b){var b,c,d,e,f,g,h;c=DA.nil;d=DA.nil;e=DA.nil;f=this;g=f.parseLinkDest1(b);c=g[0];d=g[1];e=g[2];if(DA.nil===c){h=f.parseLinkDest2(b);c=h[0];d=h[1];e=h[2];}if(!(DA.nil===c)){if(!f.ParseOption.VditorWYSIWYG&&!f.ParseOption.VditorIR&&!f.ParseOption.VditorSV&&!f.ParseOption.ProtyleWYSIWYG){e=D.EncodeDestination(D.UnescapeBytes(e));}}return[c,d,e];};$ptrType(AB).prototype.parseLinkDest2=function GO(b){var b,c,d,e,f,g,h,i,j,k,l,m,n,o;c=DA.nil;d=DA.nil;e=DA.nil;f=this;d=b;g=b.$length;if(1>g){return[c,d,e];}c=$makeSlice(DA,0,256);e=$makeSlice(DA,0,256);h=0;i=0;j=0;k=0;while(true){if(!(i=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+i]);c=$append(c,l);m=L.DecodeRune($subslice(b,i));k=m[0];j=m[1];n=1;while(true){if(!(n>0,((o<0||o>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+o])));n=n+(1)>>0;}e=$appendSlice(e,G.StrToBytes(($encodeRune(k))));if(F.IsWhitespace(l)||F.IsControl(l)){e=$subslice(e,0,(e.$length-1>>0));c=$subslice(c,0,(c.$length-1>>0));break;}if((40===l)&&!F.IsBackslashEscapePunct(b,i)){h=h+(1)>>0;}if((41===l)&&!F.IsBackslashEscapePunct(b,i)){h=h-(1)>>0;if(1>h){i=i+(1)>>0;break;}}i=i+(j)>>0;}d=$subslice(b,i);if(g>i&&!F.IsWhitespace(((i<0||i>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+i]))){c=DA.nil;return[c,d,e];}return[c,d,e];};$ptrType(AB).prototype.parseLinkDest1=function GP(b){var b,c,d,e,f,g,h,i,j,k,l,m,n,o;c=DA.nil;d=DA.nil;e=DA.nil;f=this;d=b;g=b.$length;if(2>g){return[c,d,e];}if(!((60===(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0])))){return[c,d,e];}c=$makeSlice(DA,0,256);e=$makeSlice(DA,0,256);h=false;i=0;j=0;k=0;while(true){if(!(i=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+i]);c=$append(c,l);j=1;if(0>0,((o<0||o>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+o])));n=n+(1)>>0;}e=$appendSlice(e,G.StrToBytes(($encodeRune(k))));if((60===l)&&!F.IsBackslashEscapePunct(b,i)){c=DA.nil;return[c,d,e];}}if((62===l)&&!F.IsBackslashEscapePunct(b,i)){h=true;e=$subslice(e,0,(e.$length-1>>0));break;}i=i+(j)>>0;}if(!h){c=DA.nil;return[c,d,e];}d=$subslice(b,(i+1>>0));return[c,d,e];};$ptrType(AB).prototype.parseLinkLabel=function GQ(b){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t;c=0;d=DA.nil;e=DA.nil;f=this;g=b.$length;if(2>g){return[c,d,e];}if(!((91===(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0])))){return[c,d,e];}h=$makeSlice(DA,0,b.$length);h=$append(h,(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0]));i=false;j=1;while(true){if(!(j=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+j]);h=$append(h,k);l=L.DecodeRune($subslice(b,j));m=l[0];n=l[1];o=1;while(true){if(!(o>0,((p<0||p>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+p])));o=o+(1)>>0;}e=$appendSlice(e,G.StrToBytes(($encodeRune(m))));if((93===k)&&!F.IsBackslashEscapePunct(b,j)){i=true;e=$subslice(e,0,(e.$length-1>>0));d=$subslice(b,(j+1>>0));break;}if((91===k)&&!F.IsBackslashEscapePunct(b,j)){h=DA.nil;return[c,d,e];}j=j+(n)>>0;}if(!i||DA.nil===F.TrimWhitespace(e)||999=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+s]);if((r===32)&&s<(q-1>>0)&&((t=s+1>>0,((t<0||t>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+t]))===32)){e=$appendSlice($subslice(e,0,s),$subslice(e,(s+1>>0)));q=q-(1)>>0;}s=s+(1)>>0;}}c=h.$length;return[c,d,e];};$ptrType(AD).prototype.parseInlines=function GR(){var{b,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:b=this;$r=b.walkParseInline(b.Root);$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}if(b.Context.ParseOption.KramdownSpanIAL){$s=2;continue;}$s=3;continue;case 2:$r=b.parseKramdownSpanIAL();$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 3:$s=-1;return;}return;}var $f={$blk:GR,$c:true,$r,b,$s};return $f;};$ptrType(AD).prototype.walkParseInline=function GS(b){var{b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,$s,$r,$c}=$restore(this,{b});$s=$s||0;s:while(true){switch($s){case 0:c=this;if(DD.nil===b){$s=-1;return;}d=b.Type;if(475===d){if(!(DD.nil===b.LastChild)&&(477===b.LastChild.Type)){b.Type=1;b.Tokens=$appendSlice((new DA($stringToBytes("{{{"))),b.LastChild.Tokens);b.FirstChild.Unlink();b.LastChild.Unlink();d=1;}}if((1===d)||(2===d)||(109===d)){$s=1;continue;}if(11===d){$s=2;continue;}$s=3;continue;case 1:e=b.Tokens;if(1===d){if(DA.nil===e&&DD.nil===b.FirstChild){if(!((8===b.Parent.Type))||c.Context.ParseOption.VditorWYSIWYG||c.Context.ParseOption.VditorIR||c.Context.ParseOption.VditorSV){f=b.Next;b.Unlink();b.Next=f;}$s=-1;return;}else{g=c.Context.parseKramdownIALInListItem(e);if(0=h.$length)?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+i]);b.Previous.SetIALAttr((0>=j.$length?($throwRuntimeError("index out of range"),undefined):j.$array[j.$offset+0]),D.UnescapeAttrVal((1>=j.$length?($throwRuntimeError("index out of range"),undefined):j.$array[j.$offset+1])));i++;}k=b.Next;b.Unlink();b.Next=k;if(!(DD.nil===b.Next)&&(455===b.Next.Type)){b.Next.Tokens=BA(BF(BI(b.Next.Tokens),g));}$s=-1;return;}}}}l=e.$length;if(1>l){$s=-1;return;}m=new AC.ptr(e,l,0,GT.nil,GT.nil);$r=c.parseInline(b,m);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.processEmphasis(GT.nil,m);c.mergeText(b);n=c.Context.ParseOption.VditorWYSIWYG||c.Context.ParseOption.VditorIR||c.Context.ParseOption.VditorSV||c.Context.ParseOption.ProtyleWYSIWYG;o=c.Context.ParseOption.ProtyleWYSIWYG&&c.Context.ParseOption.ProtyleWYSIWYGAutoLink;if((c.Context.ParseOption.GFMAutoLink&&!n)||o){c.parseGFMAutoEmailLink(b);c.parseGFMAutoLink(b);}if(c.Context.ParseOption.Emoji){$s=5;continue;}$s=6;continue;case 5:$r=c.emoji(b);$s=7;case 7:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 6:$s=-1;return;case 2:if(b.IsFencedCodeBlock){p=new B.Node.ptr("","","","",12,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,b.CodeBlockOpenFence,"","",false,false,false,0,false,0,b.CodeBlockFenceLen,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);b.PrependChild(p);q=new B.Node.ptr("","","","",14,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,b.CodeBlockInfo,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);b.AppendChild(q);r=new B.Node.ptr("","","","",15,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,b.Tokens,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);b.AppendChild(r);if(DA.nil===b.CodeBlockCloseFence){b.CodeBlockCloseFence=b.CodeBlockOpenFence;}s=new B.Node.ptr("","","","",13,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,b.CodeBlockCloseFence,"","",false,false,false,0,false,0,b.CodeBlockFenceLen,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);b.AppendChild(s);}else{t=new B.Node.ptr("","","","",15,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,b.Tokens,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);b.AppendChild(t);}b.Tokens=DA.nil;case 3:u=b.FirstChild;case 8:if(!(!(DD.nil===u))){$s=9;continue;}$r=c.walkParseInline(u);$s=10;case 10:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}u=u.Next;$s=8;continue;case 9:$s=-1;return;}return;}var $f={$blk:GS,$c:true,$r,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,$s};return $f;};$ptrType(AD).prototype.parseInlineMath=function GU(b){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r;c=DD.nil;d=this;if(3>b.tokensLen||!d.Context.ParseOption.InlineMath){b.pos=b.pos+(1)>>0;c=new B.Node.ptr("","","","",16,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,AO,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);return c;}e=b.pos;f=e;g=0;while(true){if(!(f=h.$length)?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+f]))))){break;}g=g+(1)>>0;f=f+(1)>>0;}if(2<=g){if(d.Context.ParseOption.ProtyleWYSIWYG){b.pos=b.pos+(1)>>0;c=new B.Node.ptr("","","","",16,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,AO,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);return c;}i=false;j=f+g>>0;k=0;while(true){if(!(j=l.$length)?($throwRuntimeError("index out of range"),undefined):l.$array[l.$offset+j]));if((36===k)&&j<(b.tokensLen-1>>0)&&(36===(m=b.tokens,n=j+1>>0,((n<0||n>=m.$length)?($throwRuntimeError("index out of range"),undefined):m.$array[m.$offset+n])))){i=true;break;}j=j+(1)>>0;}if(i){c=new B.Node.ptr("","","","",300,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);c.AppendChild(new B.Node.ptr("","","","",301,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));c.AppendChild(new B.Node.ptr("","","","",302,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,$subslice(b.tokens,f,j),"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));c.AppendChild(new B.Node.ptr("","","","",303,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));b.pos=j+2>>0;return c;}}if(!d.Context.ParseOption.InlineMathAllowDigitAfterOpenMarker&&b.tokensLen>(e+1>>0)&&F.IsDigit((o=b.tokens,p=e+1>>0,((p<0||p>=o.$length)?($throwRuntimeError("index out of range"),undefined):o.$array[o.$offset+p])))){b.pos=b.pos+(3)>>0;if(b.tokens.$length<(e+3>>0)){c=new B.Node.ptr("","","","",16,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,$subslice(b.tokens,e),"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);return c;}c=new B.Node.ptr("","","","",16,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,$subslice(b.tokens,e,(e+3>>0)),"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);return c;}q=d.matchInlineMathEnd($subslice(b.tokens,(e+1>>0)));if(1>q){b.pos=b.pos+(1)>>0;c=new B.Node.ptr("","","","",16,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,AO,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);return c;}if(d.Context.ParseOption.TextMark){if(A.Contains($subslice(b.tokens,(e+1>>0),((e+q>>0)+1>>0)),(new DA($stringToBytes(">0;c=new B.Node.ptr("","","","",16,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,AO,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);return c;}}q=(e+q>>0)+2>>0;r=$subslice(b.tokens,(e+1>>0),(q-1>>0));if(1>F.TrimWhitespace(r).$length){b.pos=b.pos+(1)>>0;c=new B.Node.ptr("","","","",16,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,AO,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);return c;}c=new B.Node.ptr("","","","",304,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);c.AppendChild(new B.Node.ptr("","","","",305,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));c.AppendChild(new B.Node.ptr("","","","",306,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,r,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));c.AppendChild(new B.Node.ptr("","","","",307,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));b.pos=q;return c;};$ptrType(AD).prototype.matchInlineMathEnd=function GV(b){var b,c,d,e,f,g;c=0;d=this;e=b.$length;while(true){if(!(c=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+c]))&&0>0,((f<0||f>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+f]))))){if(c<(e-1>>0)){if(!F.IsDigit((g=c+1>>0,((g<0||g>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+g])))||d.Context.ParseOption.InlineMathAllowDigitAfterOpenMarker){c=c;return c;}}else{c=c;return c;}}else if(10===((c<0||c>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+c])){c=-1;return c;}c=c+(1)>>0;}c=-1;return c;};$ptrType(AB).prototype.parseInlineLinkDest=function GW(b){var{aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s,$r,$c}=$restore(this,{b});$s=$s||0;s:while(true){switch($s){case 0:c=DA.nil;d=DA.nil;e=DA.nil;f=this;d=b;g=b.$length;if(2>g){$s=-1;return[c,d,e];}c=$makeSlice(DA,0,256);e=$makeSlice(DA,0,256);h=60===(1>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+1]);if(h){i=false;c=$append(c,(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0]),(1>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+1]));j=2;k=1;l=0;m=DA.nil;n=DA.nil;o=m;p=n;while(true){if(!(j=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+j]);if(10===q){c=DA.nil;$s=-1;return[c,d,e];}if(q<128){c=$append(c,q);o=new DA([q]);}else{o=new DA([]);r=L.DecodeRune($subslice(b,j));l=r[0];k=r[1];p=G.StrToBytes(($encodeRune(l)));c=$appendSlice(c,p);o=$appendSlice(o,p);}e=$appendSlice(e,o);if((62===q)&&!F.IsBackslashEscapePunct(b,j)){e=$subslice(e,0,(e.$length-1>>0));i=true;break;}j=j+(k)>>0;}if(!i||g<=(j+1>>0)){c=DA.nil;$s=-1;return[c,d,e];}if((62===(s=j+1>>0,((s<0||s>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+s])))||(41===(t=j+1>>0,((t<0||t>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+t])))){c=$append(c,(u=j+1>>0,((u<0||u>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+u])));d=$subslice(b,(j+2>>0));}else{d=$subslice(b,(j+1>>0));}}else{v=0;w=0;x=1;y=0;z=DA.nil;aa=DA.nil;ab=z;ac=aa;ad=false;while(true){if(!(w=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+w]);if(ae<128){c=$append(c,ae);ab=new DA([ae]);}else{ab=new DA([]);af=L.DecodeRune($subslice(b,w));y=af[0];x=af[1];ac=G.StrToBytes(($encodeRune(y)));c=$appendSlice(c,ac);ab=$appendSlice(ab,ac);}e=$appendSlice(e,ab);if(!ad&&!F.IsWhitespace(ae)&&0>0));c=$subslice(c,0,(c.$length-1>>0));v=v-(1)>>0;break;}}else{if(ad&&F.IsWhitespace(ae)&&(w+1>>0)>0,((ag<0||ag>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+ag]));if((34===ah)||(39===ah)){e=$subslice(e,0,(e.$length-x>>0));c=$subslice(c,0,(c.$length-1>>0));v=v-(1)>>0;break;}}}if((40===ae)&&!F.IsBackslashEscapePunct(b,w)){v=v+(1)>>0;}if((41===ae)&&!F.IsBackslashEscapePunct(b,w)){v=v-(1)>>0;if(1>v){if(40===(0>=e.$length?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+0])){e=$subslice(e,1);}e=$subslice(e,0,(e.$length-1>>0));break;}}w=w+(x)>>0;}d=$subslice(b,w);if(g>w&&(!((41===((w<0||w>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+w])))&&!((32===((w<0||w>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+w])))&&!((10===((w<0||w>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+w]))))){c=DA.nil;$s=-1;return[c,d,e];}if(!((0===v))){c=DA.nil;$s=-1;return[c,d,e];}}if(!(!f.ParseOption.DataImage)){ai=false;$s=3;continue s;}aj=A.ToLower(e);$s=4;case 4:if($c){$c=false;aj=aj.$blk();}if(aj&&aj.$blk!==undefined){break s;}ak=A.HasPrefix(aj,(new DA($stringToBytes("data:image"))));$s=5;case 5:if($c){$c=false;ak=ak.$blk();}if(ak&&ak.$blk!==undefined){break s;}ai=ak;case 3:if(ai){$s=1;continue;}$s=2;continue;case 1:al=DA.nil;am=DA.nil;an=DA.nil;c=al;d=am;e=an;$s=-1;return[c,d,e];case 2:if(!(DA.nil===c)){if((!f.ParseOption.VditorWYSIWYG&&!f.ParseOption.VditorIR&&!f.ParseOption.VditorSV&&!f.ParseOption.ProtyleWYSIWYG)&&!f.ParseOption.ImgPathAllowSpace){e=D.EncodeDestination(D.UnescapeBytes(e));}}$s=-1;return[c,d,e];}return;}var $f={$blk:GW,$c:true,$r,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s};return $f;};$ptrType(AD).prototype.parseInlineHTML=function GX(b){var{aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,aq,ar,as,at,au,av,aw,ax,ay,az,b,ba,bb,bc,bd,be,bf,bg,bh,bi,bj,bk,bl,bm,bn,bo,bp,bq,br,bs,bt,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s,$r,$c}=$restore(this,{b});$s=$s||0;s:while(true){switch($s){case 0:c=DD.nil;d=this;e=b.tokens;f=false;g=false;if(d.Context.ParseOption.VditorWYSIWYG||d.Context.ParseOption.VditorIR||d.Context.ParseOption.VditorSV||d.Context.ParseOption.ProtyleWYSIWYG){h=A.Index(e,C.CaretTokens);f=h>b.pos;if(f){g=A.Contains(e,(new DA($stringToBytes(" \xE2\x80\xB8"))));e=A.ReplaceAll(e,C.CaretTokens,(new DA($stringToBytes("caretreplacement"))));e=A.ReplaceAll(e,(new DA($stringToBytes("\"caretreplacement"))),(new DA($stringToBytes("\" caretreplacement"))));}}i=b.pos;c=new B.Node.ptr("","","","",16,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,new DA([(j=b.pos,((j<0||j>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+j]))]),"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);if(3>b.tokensLen||b.tokensLen<=(i+1>>0)){b.pos=b.pos+(1)>>0;$s=-1;return c;}k=DA.nil;k=$append(k,((i<0||i>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+i]));if((47===(l=i+1>>0,((l<0||l>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+l])))&&1<(b.tokensLen-((i+1>>0))>>0)){k=$append(k,(m=i+1>>0,((m<0||m>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+m])));n=d.parseTagName($subslice(e,(b.pos+2>>0)));o=n[0];p=n[1];if(1>p.$length){b.pos=b.pos+(1)>>0;$s=-1;return c;}k=$appendSlice(k,p);e=o;}else{q=d.parseTagName($subslice(e,(b.pos+1>>0)));r=q[0];s=q[1];if(0>0;$s=-1;return c;}e=v;k=$appendSlice(k,w);if(1>w.$length){break;}}}else{x=d.parseHTMLComment($subslice(e,(b.pos+1>>0)));y=x[0];z=x[1];aa=x[2];if(y){k=$appendSlice(k,aa);k=d.replaceCreateTokens(k,f,g);e=z;b.pos=b.pos+(k.$length)>>0;c=new B.Node.ptr("","","","",10,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,k,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);$s=-1;return c;}else{ab=d.parseProcessingInstruction($subslice(e,(b.pos+1>>0)));ac=ab[0];ad=ab[1];ae=ab[2];if(ac){k=$appendSlice(k,ae);k=d.replaceCreateTokens(k,f,g);e=ad;b.pos=b.pos+(k.$length)>>0;c=new B.Node.ptr("","","","",10,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,k,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);$s=-1;return c;}else{af=d.parseDeclaration($subslice(e,(b.pos+1>>0)));ag=af[0];ah=af[1];ai=af[2];if(ag){k=$appendSlice(k,ai);k=d.replaceCreateTokens(k,f,g);e=ah;b.pos=b.pos+(k.$length)>>0;c=new B.Node.ptr("","","","",10,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,k,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);$s=-1;return c;}else{aj=d.parseCDATA($subslice(e,(b.pos+1>>0)));ak=aj[0];al=aj[1];am=aj[2];if(ak){k=$appendSlice(k,am);k=d.replaceCreateTokens(k,f,g);e=al;b.pos=b.pos+(k.$length)>>0;c=new B.Node.ptr("","","","",10,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,k,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);$s=-1;return c;}else{b.pos=b.pos+(1)>>0;$s=-1;return c;}}}}}}an=F.TrimLeft(e);ao=an[0];e=an[1];ap=e.$length;if(1>ap){b.pos=i+1>>0;$s=-1;return c;}if(((62===(0>=e.$length?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+0])))||(1=e.$length?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+0]))&&(62===(1>=e.$length?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+1])))){$s=1;continue;}$s=2;continue;case 1:k=$appendSlice(k,ao);k=$append(k,(0>=e.$length?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+0]));if(47===(0>=e.$length?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+0])){k=$append(k,(1>=e.$length?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+1]));}k=d.replaceCreateTokens(k,f,g);b.pos=b.pos+(k.$length)>>0;if(d.Context.ParseOption.ProtyleWYSIWYG){$s=3;continue;}$s=4;continue;case 3:if(A.EqualFold(k,(new DA($stringToBytes("
"))))||A.EqualFold(k,(new DA($stringToBytes("
"))))||A.EqualFold(k,(new DA($stringToBytes("
"))))){$s=5;continue;}if(A.HasPrefix(k,(new DA($stringToBytes(""))))){$s=7;continue;}if(A.EqualFold(k,(new DA($stringToBytes(""))))){$s=8;continue;}if(A.EqualFold(k,(new DA($stringToBytes(""))))){$s=9;continue;}if(A.EqualFold(k,(new DA($stringToBytes(""))))){$s=10;continue;}if(A.EqualFold(k,(new DA($stringToBytes(""))))){$s=11;continue;}if(A.EqualFold(k,(new DA($stringToBytes(""))))){$s=12;continue;}if(A.EqualFold(k,(new DA($stringToBytes(""))))){$s=13;continue;}if(A.EqualFold(k,(new DA($stringToBytes(""))))){$s=14;continue;}if(A.EqualFold(k,(new DA($stringToBytes(""))))){$s=15;continue;}if(A.EqualFold(k,(new DA($stringToBytes(""))))){$s=16;continue;}if(A.EqualFold(k,(new DA($stringToBytes(""))))){$s=17;continue;}if(A.EqualFold(k,(new DA($stringToBytes(""))))){$s=18;continue;}aq=A.ToLower(k);$s=21;case 21:if($c){$c=false;aq=aq.$blk();}if(aq&&aq.$blk!==undefined){break s;}ar=A.HasPrefix(aq,(new DA($stringToBytes("",b);$s=23;case 23:if($c){$c=false;as=as.$blk();}if(as&&as.$blk!==undefined){break s;}c=as;$s=-1;return c;case 7:at=d.processSpanTag(k,"","",b);$s=24;case 24:if($c){$c=false;at=at.$blk();}if(at&&at.$blk!==undefined){break s;}c=at;$s=-1;return c;case 8:au=d.processSpanTag(k,"","",b);$s=25;case 25:if($c){$c=false;au=au.$blk();}if(au&&au.$blk!==undefined){break s;}c=au;$s=-1;return c;case 9:av=d.processSpanTag(k,"","",b);$s=26;case 26:if($c){$c=false;av=av.$blk();}if(av&&av.$blk!==undefined){break s;}c=av;$s=-1;return c;case 10:aw=d.processSpanTag(k,"","",b);$s=27;case 27:if($c){$c=false;aw=aw.$blk();}if(aw&&aw.$blk!==undefined){break s;}c=aw;$s=-1;return c;case 11:ax=d.processSpanTag(k,"","",b);$s=28;case 28:if($c){$c=false;ax=ax.$blk();}if(ax&&ax.$blk!==undefined){break s;}c=ax;$s=-1;return c;case 12:ay=d.processSpanTag(k,"","",b);$s=29;case 29:if($c){$c=false;ay=ay.$blk();}if(ay&&ay.$blk!==undefined){break s;}c=ay;$s=-1;return c;case 13:az=d.processSpanTag(k,"","",b);$s=30;case 30:if($c){$c=false;az=az.$blk();}if(az&&az.$blk!==undefined){break s;}c=az;$s=-1;return c;case 14:ba=d.processSpanTag(k,"","",b);$s=31;case 31:if($c){$c=false;ba=ba.$blk();}if(ba&&ba.$blk!==undefined){break s;}c=ba;$s=-1;return c;case 15:bb=d.processSpanTag(k,"","",b);$s=32;case 32:if($c){$c=false;bb=bb.$blk();}if(bb&&bb.$blk!==undefined){break s;}c=bb;$s=-1;return c;case 16:bc=d.processSpanTag(k,"","",b);$s=33;case 33:if($c){$c=false;bc=bc.$blk();}if(bc&&bc.$blk!==undefined){break s;}c=bc;$s=-1;return c;case 17:bd=d.processSpanTag(k,"","",b);$s=34;case 34:if($c){$c=false;bd=bd.$blk();}if(bd&&bd.$blk!==undefined){break s;}c=bd;$s=-1;return c;case 18:be=d.processSpanTag(k,"","",b);$s=35;case 35:if($c){$c=false;be=be.$blk();}if(be&&be.$blk!==undefined){break s;}c=be;$s=-1;return c;case 19:bg=D.ParseFragment(A.NewReader(k),new D.Node.ptr(GY.nil,GY.nil,GY.nil,GY.nil,GY.nil,3,0,"","",HA.nil));$s=36;case 36:if($c){$c=false;bg=bg.$blk();}if(bg&&bg.$blk!==undefined){break s;}bf=bg;bh=bf[0];if(!((1===bh.$length))){c=new B.Node.ptr("","","","",10,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,k,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);$s=-1;return c;}bi=(0>=bh.$length?($throwRuntimeError("index out of range"),undefined):bh.$array[bh.$offset+0]);if(198403===bi.DataAtom){$s=37;continue;}$s=38;continue;case 37:c=new B.Node.ptr("","","","",34,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);c.AppendChild(new B.Node.ptr("","","","",35,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));c.AppendChild(new B.Node.ptr("","","","",36,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));bj=G.DomAttrValue(bi,"alt");if(!(""===bj)){c.AppendChild(new B.Node.ptr("","","","",40,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,(new DA($stringToBytes(bj))),"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));}c.AppendChild(new B.Node.ptr("","","","",37,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));c.AppendChild(new B.Node.ptr("","","","",38,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));bk=G.DomAttrValue(bi,"src");if(!(""===bk)){c.AppendChild(new B.Node.ptr("","","","",41,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,(new DA($stringToBytes(bk))),"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));}bl=G.DomAttrValue(bi,"title");if(!(""===bl)){c.AppendChild(new B.Node.ptr("","","","",42,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,(new DA($stringToBytes(bl))),"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));}c.AppendChild(new B.Node.ptr("","","","",39,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));bm=I.TrimSpace(G.DomAttrValue(bi,"width"));$s=39;case 39:if($c){$c=false;bm=bm.$blk();}if(bm&&bm.$blk!==undefined){break s;}bn=bm;if(!(""===bn)){$s=40;continue;}$s=41;continue;case 40:if(G.IsDigit(bn)){bn=bn+("px");}bo="width: "+bn+";";bp=new B.Node.ptr("","","","",456,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,BA(new DI([new DH(["style",bo])])),"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);c.SetIALAttr("style",bo);c.InsertAfter(bp);$s=42;continue;case 41:bq=I.TrimSpace(G.DomAttrValue(bi,"height"));$s=43;case 43:if($c){$c=false;bq=bq.$blk();}if(bq&&bq.$blk!==undefined){break s;}br=bq;if(!(""===br)){if(G.IsDigit(br)){br=br+("px");}bs="height: "+br+";";bt=new B.Node.ptr("","","","",456,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,BA(new DI([new DH(["style",bs])])),"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);c.SetIALAttr("style",bs);c.InsertAfter(bt);}case 42:$s=-1;return c;case 38:c=new B.Node.ptr("","","","",10,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,k,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);case 20:case 4:c=new B.Node.ptr("","","","",10,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,k,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);$s=-1;return c;case 2:b.pos=i+1>>0;$s=-1;return c;}return;}var $f={$blk:GX,$c:true,$r,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,aq,ar,as,at,au,av,aw,ax,ay,az,b,ba,bb,bc,bd,be,bf,bg,bh,bi,bj,bk,bl,bm,bn,bo,bp,bq,br,bs,bt,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s};return $f;};$ptrType(AD).prototype.replaceCreateTokens=function HB(b,c,d){var b,c,d,e;e=this;if((e.Context.ParseOption.VditorWYSIWYG||e.Context.ParseOption.VditorIR||e.Context.ParseOption.VditorSV)&&c||e.Context.ParseOption.ProtyleWYSIWYG){if(!A.Contains(b,(new DA($stringToBytes("caretreplacement "))))&&!d){b=A.ReplaceAll(b,(new DA($stringToBytes("\" caretreplacement"))),(new DA($stringToBytes("\"caretreplacement"))));}b=A.ReplaceAll(b,(new DA($stringToBytes("caretreplacement"))),C.CaretTokens);}return b;};$ptrType(AD).prototype.processSpanTag=function HC(b,c,d,e){var{b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,$s,$r,$c}=$restore(this,{b,c,d,e});$s=$s||0;s:while(true){switch($s){case 0:f=DD.nil;g=this;h=$subslice(e.tokens,e.pos);if(1>h.$length){$s=-1;return f;}i=A.Index(h,(new DA($stringToBytes(d))));j=A.Index(h,(new DA($stringToBytes(c))));if((A.Contains(h,(new DA($stringToBytes(c))))&&-1>0;if(h.$length=p.$length?($throwRuntimeError("index out of range"),undefined):p.$array[p.$offset+0]);r="";s=c.length;if(""===c||""===c||""===c||""===c||""===c||""===c||""===c||""===c||""===c||""===c||""===c||""===c){if(!g.Context.ParseOption.HTMLTag2TextMark){f=new B.Node.ptr("","","","",10,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,b,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);$s=-1;return f;}r=q.Data;if("b"===r){r="strong";}else if("i"===r){r="em";}else if("del"===r||"strike"===r){r="s";}}else{r=($bytesToString($subslice(b,(s+1>>0))));r=$substring(r,0,I.Index(r,"\""));}f=new B.Node.ptr("","","","",530,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,r,"","","","","","","","","","",0,"","","","",0);if(!(GY.nil===q.FirstChild)&&!(r===q.FirstChild.Data)&&(3===q.FirstChild.Type)&&G.ContainsStr(q.FirstChild.Data,new DH(["sup","sub","em","strong"]))){f.TextMarkType=f.TextMarkType+(" "+q.FirstChild.Data);}$r=AU(f,q,g.Context.ParseOption);$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}e.pos=e.pos+((i+k>>0))>>0;$s=-1;return f;}return;}var $f={$blk:HC,$c:true,$r,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,$s};return $f;};$ptrType(AD).prototype.parseCDATA=function HD(b){var b,c,d,e,f,g,h,i,j,k;c=false;d=DA.nil;e=DA.nil;f=this;d=b;if(8>b.$length){return[c,d,e];}if(!((33===(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0])))){return[c,d,e];}if(!((91===(1>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+1])))){return[c,d,e];}if(!((67===(2>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+2])))||!((68===(3>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+3])))||!((65===(4>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+4])))||!((84===(5>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+5])))||!((65===(6>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+6])))){return[c,d,e];}if(!((91===(7>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+7])))){return[c,d,e];}e=$appendSlice(e,$subslice(b,0,7));b=$subslice(b,7);g=0;h=0;i=b.$length;while(true){if(!(h=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+h]);e=$append(e,g);if(h<=(i-3>>0)&&(93===g)&&(93===(j=h+1>>0,((j<0||j>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+j])))&&(62===(k=h+2>>0,((k<0||k>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+k])))){break;}h=h+(1)>>0;}b=$subslice(b,h);if(3>b.$length){return[c,d,e];}if(!((93===(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0])))||!((93===(1>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+1])))||!((62===(2>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+2])))){return[c,d,e];}e=$append(e,(1>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+1]),(2>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+2]));c=true;d=$subslice(b,3);return[c,d,e];};$ptrType(AD).prototype.parseDeclaration=function HE(b){var b,c,d,e,f,g,h,i,j,k;c=false;d=DA.nil;e=DA.nil;f=this;d=b;if(2>b.$length){return[c,d,e];}if(!((33===(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0])))){return[c,d,e];}g=0;h=0;i=$subslice(b,1);j=0;while(true){if(!(j=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+j]);if(F.IsWhitespace(g)){break;}if(!(65<=g&&90>=g)){return[c,d,e];}j++;}e=$append(e,(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0]),(1>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+1]));b=$subslice(b,2);k=b.$length;while(true){if(!(h=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+h]);e=$append(e,g);if(62===g){break;}h=h+(1)>>0;}b=$subslice(b,h);if(1>b.$length||!((62===(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0])))){return[c,d,e];}c=true;d=$subslice(b,1);return[c,d,e];};$ptrType(AD).prototype.parseProcessingInstruction=function HF(b){var b,c,d,e,f,g,h,i,j;c=false;d=DA.nil;e=DA.nil;f=this;d=b;if(!((63===(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0])))){return[c,d,e];}e=$append(e,(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0]));b=$subslice(b,1);g=0;h=0;i=b.$length;while(true){if(!(h=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+h]);e=$append(e,g);if(h<=(i-2>>0)&&(63===g)&&(62===(j=h+1>>0,((j<0||j>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+j])))){break;}h=h+(1)>>0;}b=$subslice(b,h);if(1>b.$length){return[c,d,e];}if(!((63===(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0])))||!((62===(1>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+1])))){return[c,d,e];}e=$append(e,(1>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+1]));c=true;d=$subslice(b,2);return[c,d,e];};$ptrType(AD).prototype.parseHTMLComment=function HG(b){var b,c,d,e,f,g,h,i,j;c=false;d=DA.nil;e=DA.nil;f=this;d=b;if(3>b.$length){return[c,d,e];}if(!((33===(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0])))||!((45===(1>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+1])))||!((45===(2>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+2])))){return[c,d,e];}g=b.$length;h=0;while(true){if(!(h=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+h]));if(h<=(g-3>>0)&&(45===((h<0||h>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+h]))&&(45===(i=h+1>>0,((i<0||i>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+i])))&&(62===(j=h+2>>0,((j<0||j>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+j])))){break;}h=h+(1)>>0;}b=$subslice(b,h);if(3>b.$length||!((45===(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0])))||!((45===(1>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+1])))||!((62===(2>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+2])))){return[c,d,e];}e=$append(e,(1>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+1]),(2>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+2]));c=true;d=$subslice(b,3);return[c,d,e];};AP=function HH(b){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p;c=false;d=DA.nil;e=DA.nil;f=DA.nil;g=DA.nil;c=true;d=b;h=DA.nil;i=0;j=0;k=b;l=0;while(true){if(!(l=k.$length)?($throwRuntimeError("index out of range"),undefined):k.$array[k.$offset+l]);if(!F.IsWhitespace(j)){break;}h=$append(h,j);l++;}if(1>h.$length){return[c,d,e,f,g];}b=$subslice(b,i);m=DA.nil;n=AR(b);b=n[0];m=n[1];if(1>m.$length){return[c,d,e,f,g];}o=DA.nil;p=AQ(b);c=p[0];b=p[1];o=p[2];if(!c){return[c,d,e,f,g];}d=b;e=$appendSlice(e,h);e=$appendSlice(e,m);e=$appendSlice(e,o);if(!(DA.nil===o)){f=m;g=$subslice(o,2,(o.$length-1>>0));}return[c,d,e,f,g];};$pkg.TagAttr=AP;AQ=function HI(b){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r;c=false;d=DA.nil;e=DA.nil;c=true;d=b;f=0;g=0;h=b;i=0;while(true){if(!(i=h.$length)?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+i]);if(!F.IsWhitespace(g)){break;}e=$append(e,g);i++;}if(!((61===g))){e=DA.nil;return[c,d,e];}e=$append(e,g);b=$subslice(b,(f+1>>0));if(1>b.$length){c=false;return[c,d,e];}j=b;k=0;while(true){if(!(k=j.$length)?($throwRuntimeError("index out of range"),undefined):j.$array[j.$offset+k]);if(!F.IsWhitespace(g)){break;}e=$append(e,g);k++;}g=((f<0||f>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+f]);e=$append(e,g);b=$subslice(b,(f+1>>0));l=false;if(34===g){m=b;n=0;while(true){if(!(n=m.$length)?($throwRuntimeError("index out of range"),undefined):m.$array[m.$offset+n]);e=$append(e,g);if(34===g){l=true;break;}n++;}}else if(39===g){o=b;p=0;while(true){if(!(p=o.$length)?($throwRuntimeError("index out of range"),undefined):o.$array[o.$offset+p]);e=$append(e,g);if(39===g){l=true;break;}p++;}}else{q=b;r=0;while(true){if(!(r=q.$length)?($throwRuntimeError("index out of range"),undefined):q.$array[q.$offset+r]);if(62===g){f=f-(1)>>0;break;}e=$append(e,g);if(F.IsWhitespace(g)){break;}if((34===g)||(39===g)||(61===g)||(60===g)||(62===g)||(96===g)){l=false;break;}l=true;r++;}}if(!l){c=false;e=DA.nil;return[c,d,e];}d=$subslice(b,(f+1>>0));return[c,d,e];};AR=function HJ(b){var b,c,d,e,f,g,h;c=DA.nil;d=DA.nil;c=b;if(!F.IsASCIILetter((0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0]))&&!((95===(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0])))&&!((58===(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0])))){return[c,d];}d=$append(d,(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0]));b=$subslice(b,1);e=0;f=0;g=b;h=0;while(true){if(!(h=g.$length)?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+h]);if(!F.IsASCIILetterNumHyphen(f)&&!((95===f))&&!((46===f))&&!((58===f))){break;}d=$append(d,f);h++;}if(1>d.$length){return[c,d];}c=$subslice(b,e);return[c,d];};$ptrType(AD).prototype.parseTagName=function HK(b){var b,c,d,e,f,g,h,i;c=DA.nil;d=DA.nil;e=this;if(1>b.$length){return[c,d];}f=0;g=((f<0||f>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+f]);if(!F.IsASCIILetter(g)){h=b;i=DA.nil;c=h;d=i;return[c,d];}d=$append(d,g);f=1;while(true){if(!(f=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+f]);if(!F.IsASCIILetterNumHyphen(g)){break;}d=$append(d,g);f=f+(1)>>0;}c=$subslice(b,f);return[c,d];};AS=function HL(b,c){var{aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,aq,ar,as,at,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s,$r,$c}=$restore(this,{b,c});$s=$s||0;s:while(true){switch($s){case 0:if(DD.nil===b||GY.nil===c){$s=-1;return;}d=false;e=G.DomAttrValue(c,"style");if(!(""===e)){$s=1;continue;}$s=2;continue;case 1:f=AV(e);$s=3;case 3:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}e=f;b.SetIALAttr("style",e);g=BA(b.KramdownIAL);h=new B.Node.ptr("","","","",456,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,g,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);if(109===b.Type){b.PrependChild(h);}else{b.InsertAfter(h);}d=true;case 2:i=G.DomCustomAttrs(c);if(!(false===i)){if(!d){j=i;k=0;l=j?j.keys():undefined;m=j?j.size:0;while(true){if(!(k=al.$length)?($throwRuntimeError("index out of range"),undefined):al.$array[al.$offset+am]);if("style"===(0>=an.$length?($throwRuntimeError("index out of range"),undefined):an.$array[an.$offset+0])){(1>=an.$length?($throwRuntimeError("index out of range"),undefined):an.$array[an.$offset+1]=(1>=an.$length?($throwRuntimeError("index out of range"),undefined):an.$array[an.$offset+1])+ai);ak=true;break;}am++;}if(!ak){aj=$append(aj,new DH(["style",ai]));}b.Next.Tokens=BA(aj);b.SetIALAttr("style",ai);b.KramdownIAL=aj;}else{b.SetIALAttr("style",ai);ao=BA(b.KramdownIAL);ap=new B.Node.ptr("","","","",456,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,ao,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);b.InsertAfter(ap);}d=true;}}if(!(GY.nil===c.Parent)&&!(GY.nil===c.Parent.Parent)&&(198403===c.DataAtom)){aq=G.DomAttrValue(c.Parent.Parent,"style");if(!(""===aq)){if(d){ar=BI(b.Next.Tokens);ar=$append(ar,new DH(["parent-style",aq]));b.Next.Tokens=BA(ar);b.SetIALAttr("parent-style",aq);b.KramdownIAL=ar;}else{b.SetIALAttr("parent-style",aq);as=BA(b.KramdownIAL);at=new B.Node.ptr("","","","",456,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,as,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);b.InsertAfter(at);}}}$s=-1;return;}return;}var $f={$blk:HL,$c:true,$r,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,aq,ar,as,at,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s};return $f;};$pkg.SetSpanIAL=AS;AT=function HM(b,c){var b,c,d,e,f,g,h,i,j;d=I.Split(b.TextMarkType," ");e=d;f=0;while(true){if(!(f=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]);h=c;i=0;while(true){if(!(i=h.$length)?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+i]);if(g===j){return true;}i++;}f++;}return false;};$pkg.ContainTextMark=AT;AU=function HN(b,c,d){var{aa,ab,ac,ad,ae,af,ag,ah,ai,aj,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s,$r,$c}=$restore(this,{b,c,d});$s=$s||0;s:while(true){switch($s){case 0:b.Type=530;e=G.DomAttrValue(c,"data-type");if(""===e){if(c.DataAtom===40708){e="text";}else{if(!(""===b.TextMarkType)){e=b.TextMarkType;}else{e=new E.Atom(c.DataAtom).String();if("b"===e){e="strong";}else if("i"===e){e="em";}else if("del"===e||"strike"===e){e="s";}}}}b.TextMarkType=e;b.Tokens=DA.nil;f=I.Split(e," ");g=DH.nil;h=f;i=0;while(true){if(!(i=h.$length)?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+i]);if("a"===k||"inline-memo"===k||"block-ref"===k||"file-annotation-ref"===k||"inline-math"===k){g=$append(g,k);f=$appendSlice($subslice(f,0,j),$subslice(f,(j+1>>0)));break;}i++;}f=$appendSlice(g,f);l=false;m=f;n=0;case 1:if(!(n=m.$length)?($throwRuntimeError("index out of range"),undefined):m.$array[m.$offset+n]);p=o;if(p===("a")){$s=4;continue;}if(p===("inline-math")){$s=5;continue;}if(p===("block-ref")){$s=6;continue;}if(p===("file-annotation-ref")){$s=7;continue;}if(p===("inline-memo")){$s=8;continue;}if(!l){$s=9;continue;}$s=10;continue;case 4:q=G.GetTextMarkAData(c);b.TextMarkAHref=q[0];b.TextMarkATitle=q[1];b.TextMarkTextContent=G.GetTextMarkTextData(c);$s=10;continue;case 5:b.TextMarkInlineMathContent=G.GetTextMarkInlineMathData(c);l=true;$s=10;continue;case 6:r=G.GetTextMarkBlockRefData(c);b.TextMarkBlockRefID=r[0];b.TextMarkBlockRefSubtype=r[1];b.TextMarkTextContent=G.GetTextMarkTextData(c);$s=10;continue;case 7:b.TextMarkFileAnnotationRefID=G.GetTextMarkFileAnnotationRefData(c);b.TextMarkTextContent=G.GetTextMarkTextData(c);$s=10;continue;case 8:b.TextMarkTextContent=G.GetTextMarkTextData(c);b.TextMarkInlineMemoContent=G.GetTextMarkInlineMemoData(c);b.TextMarkInlineMemoContent=I.ReplaceAll(b.TextMarkInlineMemoContent,"\n","_esc_newline_");b.TextMarkInlineMemoContent=I.ReplaceAll(b.TextMarkInlineMemoContent,"\"",""");$s=10;continue;case 9:b.TextMarkTextContent=G.GetTextMarkTextDataWithoutEscapeQuote(c);if(b.ContainTextMarkTypes(new DH(["strong","em","s","mark","sup","sub"]))){$s=11;continue;}$s=12;continue;case 11:s=AW(b.TextMarkTextContent);t=s[0];u=s[1];if(!(""===t)){$s=13;continue;}$s=14;continue;case 13:w=b.PreviousNodeText();$s=18;case 18:if($c){$c=false;w=w.$blk();}if(w&&w.$blk!==undefined){break s;}x=I.HasSuffix(w," ");$s=19;case 19:if($c){$c=false;x=x.$blk();}if(x&&x.$blk!==undefined){break s;}if(!(!x)){v=false;$s=17;continue s;}y=b.PreviousNodeText();$s=20;case 20:if($c){$c=false;y=y.$blk();}if(y&&y.$blk!==undefined){break s;}z=I.HasSuffix(y,"\xE3\x80\x80");$s=21;case 21:if($c){$c=false;z=z.$blk();}if(z&&z.$blk!==undefined){break s;}v=!z;case 17:if(v){$s=15;continue;}$s=16;continue;case 15:b.InsertBefore(new B.Node.ptr("","","","",16,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,(new DA($stringToBytes(t))),"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));case 16:case 14:if(!(""===u)){$s=22;continue;}$s=23;continue;case 22:ab=b.NextNodeText();$s=27;case 27:if($c){$c=false;ab=ab.$blk();}if(ab&&ab.$blk!==undefined){break s;}ac=I.HasPrefix(ab," ");$s=28;case 28:if($c){$c=false;ac=ac.$blk();}if(ac&&ac.$blk!==undefined){break s;}if(!(!ac)){aa=false;$s=26;continue s;}ad=b.NextNodeText();$s=29;case 29:if($c){$c=false;ad=ad.$blk();}if(ad&&ad.$blk!==undefined){break s;}ae=I.HasPrefix(ad,"\xE3\x80\x80");$s=30;case 30:if($c){$c=false;ae=ae.$blk();}if(ae&&ae.$blk!==undefined){break s;}aa=!ae;case 26:if(aa){$s=24;continue;}$s=25;continue;case 24:b.InsertAfter(new B.Node.ptr("","","","",16,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,(new DA($stringToBytes(u))),"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));case 25:case 23:af=I.TrimSpace(b.TextMarkTextContent);$s=31;case 31:if($c){$c=false;af=af.$blk();}if(af&&af.$blk!==undefined){break s;}b.TextMarkTextContent=af;if(!d.KeepEscaped&&!b.ContainTextMarkTypes(new DH(["code"]))){b.TextMarkTextContent=D.UnescapeHTMLStr(b.TextMarkTextContent);}case 12:if(b.ParentIs(109,DT.nil)&&b.IsTextMarkType("code")){b.TextMarkTextContent=I.ReplaceAll(b.TextMarkTextContent,"|","|");}if("u"===b.TextMarkType){$s=32;continue;}$s=33;continue;case 32:ag=b.TextMarkTextContent;if(!(GY.nil===c.FirstChild)&&"a"===G.DomAttrValue(c.FirstChild,"data-type")){ag="["+ag+"]("+G.DomAttrValue(c.FirstChild,"data-href")+")";}ah=AA("",(new DA($stringToBytes(ag))),d);$s=34;case 34:if($c){$c=false;ah=ah.$blk();}if(ah&&ah.$blk!==undefined){break s;}ai=ah;if(!(EY.nil===ai)&&!(DD.nil===ai.Root.FirstChild)&&!(DD.nil===ai.Root.FirstChild.FirstChild)){$s=35;continue;}$s=36;continue;case 35:aj=ai.Root.FirstChild.Content();$s=37;case 37:if($c){$c=false;aj=aj.$blk();}if(aj&&aj.$blk!==undefined){break s;}b.TextMarkTextContent=aj;if(DD.nil===ai.Root.FirstChild.FirstChild.Next){if(33===ai.Root.FirstChild.FirstChild.Type){b.TextMarkType=b.TextMarkType+(" a");b.TextMarkAHref=ai.Root.FirstChild.FirstChild.ChildByType(41).TokensStr();}}case 36:case 33:case 10:case 3:n++;$s=1;continue;case 2:$r=AS(b,c);$s=38;case 38:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return;}return;}var $f={$blk:HN,$c:true,$r,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s};return $f;};$pkg.SetTextMarkNode=AU;AV=function HO(b){var{b,c,d,e,f,$s,$r,$c}=$restore(this,{b});$s=$s||0;s:while(true){switch($s){case 0:c="";d=I.TrimSpace(b);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}c=d;c=I.ReplaceAll(c,"\n","");e=I.Fields(c);$s=2;case 2:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=I.Join(e," ");$s=3;case 3:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}c=f;$s=-1;return c;}return;}var $f={$blk:HO,$c:true,$r,b,c,d,e,f,$s};return $f;};$pkg.StyleValue=AV;AW=function HP(b){var b,c,d,e,f,g,h,i;c="";d="";e=(new HQ($stringToRunes(b)));f=e;g=0;while(true){if(!(g=f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+g]);if(!((32===h))&&!((9===h))&&!((10===h))&&!((12288===h))){break;}c=c+(($encodeRune(h)));g++;}i=e.$length-1>>0;while(true){if(!(i>=0)){break;}if(!((((i<0||i>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+i])===32))&&!((((i<0||i>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+i])===9))&&!((((i<0||i>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+i])===10))&&!((((i<0||i>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+i])===12288))){break;}d=($encodeRune(((i<0||i>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+i])))+d;i=i-(1)>>0;}return[c,d];};AX=function HR(b,c){var{b,c,d,e,f,g,h,i,j,k,l,m,n,$s,$r,$c}=$restore(this,{b,c});$s=$s||0;s:while(true){switch($s){case 0:if(!b.Context.ParseOption.KramdownBlockIAL||b.Context.indented){$s=-1;return 0;}if((8===b.Context.Tip.Type)&&DD.nil===b.Context.Tip.FirstChild){$s=-1;return 0;}d=b.parseKramdownBlockIAL();if(!(DI.nil===d)){$s=1;continue;}$s=2;continue;case 1:$r=b.Context.closeUnmatchedBlocks();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}b.Context.offset=b.Context.currentLineLen;if(G.IsDocIAL2(d)){b.Context.rootIAL=new B.Node.ptr("","","","",455,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,$subslice(b.Context.currentLine,b.Context.nextNonspace),"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);b.Root.KramdownIAL=d;b.Root.ID=(e=(0>=d.$length?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+0]),(1>=e.$length?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+1]));b.ID=b.Root.ID;$s=-1;return 2;}f=b.Context.lastMatchedContainer;if(b.Context.allClosed){if((0===f.Type)||(8===f.Type)||(5===f.Type)||(580===f.Type)||(475===f.Type)){f=b.Context.Tip.LastChild;if(DD.nil===f){f=b.Context.lastMatchedContainer;}if(((477===f.Type)||(455===f.Type))&&!(DD.nil===f.Parent)){g=BA(d);if(!A.HasPrefix(f.Tokens,g)){h=new B.Node.ptr("","","","",1,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,(new DA($stringToBytes(" "))),"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);f.InsertAfter(h);b.Context.Tip=h;f=h;}}else if(6===f.Type){i=new B.Node.ptr("","","","",1,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,(new DA($stringToBytes(" "))),"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);f.InsertAfter(i);b.Context.Tip=i;f=i;}else if(0===f.Type){j=new B.Node.ptr("","","","",1,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,(new DA($stringToBytes(" "))),"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);f.AppendChild(j);b.Context.Tip=j;f=j;}}}f.KramdownIAL=d;k=BE(d);f.ID=(l=$mapIndex(k,$String.keyFor("id")),l!==undefined?l.v:"");m=b.Context.addChild(455);$s=4;case 4:if($c){$c=false;m=m.$blk();}if(m&&m.$blk!==undefined){break s;}n=m;n.Tokens=$subslice(b.Context.currentLine,b.Context.nextNonspace);$s=-1;return 2;case 2:$s=-1;return 0;}return;}var $f={$blk:HR,$c:true,$r,b,c,d,e,f,g,h,i,j,k,l,m,n,$s};return $f;};$pkg.IALStart=AX;BA=function HS(b){var b,c,d,e,f,g;c=new A.Buffer.ptr(DA.nil,0,0);c.WriteString("{: ");d=b;e=0;while(true){if(!(e=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+e]);c.WriteString((0>=g.$length?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+0]));c.WriteString("=\"");c.WriteString((1>=g.$length?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+1]));c.WriteByte(34);if(f<(b.$length-1>>0)){c.WriteByte(32);}e++;}c.WriteByte(125);return c.Bytes();};$pkg.IAL2Tokens=BA;BD=function HV(b){var b,c,d,e,f,g;c=false;c=$makeMap($String.keyFor,[]);d=b;e=0;while(true){if(!(e=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+e]);g=(0>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+0]);(c||$throwRuntimeError("assignment to entry in nil map")).set($String.keyFor(g),{k:g,v:D.UnescapeAttrVal((1>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+1]))});e++;}return c;};$pkg.IAL2Map=BD;BE=function HW(b){var b,c,d,e,f,g;c=false;c=$makeMap($String.keyFor,[]);d=b;e=0;while(true){if(!(e=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+e]);g=(0>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+0]);(c||$throwRuntimeError("assignment to entry in nil map")).set($String.keyFor(g),{k:g,v:(1>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+1])});e++;}return c;};$pkg.IAL2MapUnEsc=BE;BF=function HX(b,c){var aa,ab,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;d=DI.nil;d=$makeSlice(DI,0,(b.$length+c.$length>>0));f=(e=b.$length+c.$length>>0,((e<0||e>2147483647)?$throwRuntimeError("makemap: size out of range"):new $global.Map()));g=b;h=0;while(true){if(!(h=g.$length)?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+h]);j=(0>=i.$length?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+0]);k=D.UnescapeAttrVal((1>=i.$length?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+1]));l=(m=$mapIndex(f,$String.keyFor(j)),m!==undefined?[m.v,true]:[0,false]);n=l[0];o=l[1];if(o){(p=((n<0||n>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+n]),(1>=p.$length?($throwRuntimeError("index out of range"),undefined):p.$array[p.$offset+1]=k));h++;continue;}q=j;(f||$throwRuntimeError("assignment to entry in nil map")).set($String.keyFor(q),{k:q,v:d.$length});d=$append(d,new DH([j,k]));h++;}r=c;s=0;while(true){if(!(s=r.$length)?($throwRuntimeError("index out of range"),undefined):r.$array[r.$offset+s]);u=(0>=t.$length?($throwRuntimeError("index out of range"),undefined):t.$array[t.$offset+0]);v=D.UnescapeAttrVal((1>=t.$length?($throwRuntimeError("index out of range"),undefined):t.$array[t.$offset+1]));w=(x=$mapIndex(f,$String.keyFor(u)),x!==undefined?[x.v,true]:[0,false]);y=w[0];z=w[1];if(z){(aa=((y<0||y>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+y]),(1>=aa.$length?($throwRuntimeError("index out of range"),undefined):aa.$array[aa.$offset+1]=v));s++;continue;}ab=u;(f||$throwRuntimeError("assignment to entry in nil map")).set($String.keyFor(ab),{k:ab,v:d.$length});d=$append(d,new DH([u,v]));s++;}return d;};BG=function HY(b){var b,c,d,e,f,g,h,i,j,k;c=DI.nil;c=new DI([]);d=b;e=0;f=d?d.keys():undefined;g=d?d.size:0;while(true){if(!(e=b.$length){return false;}return A.Contains(b,(new DA($stringToBytes("id=\""))));};BI=function IA(b){var b,c,d,e,f,g,h,i;c=DI.nil;b=A.TrimRight(b," \n");b=A.TrimPrefix(b,(new DA($stringToBytes("{:"))));b=A.TrimSuffix(b,(new DA($stringToBytes("}"))));b=A.ReplaceAll(b,(new DA($stringToBytes("\n"))),(new DA($stringToBytes("_esc_newline_"))));while(true){d=AP(b);e=d[0];f=d[1];g=d[2];h=d[3];i=d[4];if(!e){break;}b=f;if(1>g.$length){break;}i=A.ReplaceAll(i,(new DA($stringToBytes("_esc_newline_"))),(new DA($stringToBytes("\n"))));c=$append(c,new DH([G.BytesToStr(h),G.BytesToStr(i)]));}return c;};$pkg.Tokens2IAL=BI;$ptrType(AD).prototype.parseKramdownBlockIAL=function IB(){var b,c,d;b=DI.nil;c=this;d=$subslice(c.Context.currentLine,c.Context.nextNonspace);b=c.Context.parseKramdownBlockIAL(d);return b;};$ptrType(AD).prototype.parseKramdownSpanIAL=function IC(){var{b,$s,$r,$c}=$restore(this,{});$s=$s||0;s:while(true){switch($s){case 0:b=[b];b[0]=this;$r=B.Walk(b[0].Root,(function(b){return function ID(c,d){var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r;if(!d){return 2;}if(!(DD.nil===c.Previous)&&(456===c.Previous.Type)&&(16===c.Type)&&!(DD.nil===c.Previous.Previous)){e=c.Tokens;f=b[0].Context.parseKramdownSpanIAL(e);g=f[0];h=f[1];if(0=j.$length)?($throwRuntimeError("index out of range"),undefined):j.$array[j.$offset+k]);if(!(c.Previous.Previous.IALAttr((0>=l.$length?($throwRuntimeError("index out of range"),undefined):l.$array[l.$offset+0]))===(1>=l.$length?($throwRuntimeError("index out of range"),undefined):l.$array[l.$offset+1]))){i=false;break;}k++;}if(i){c.Tokens=$subslice(e,(g+1>>0));}}return 2;}switch(0){default:m=c.Type;if((m===(17))||(m===(22))||(m===(27))||(m===(101))||(m===(460))||(m===(450))||(m===(304))||(m===(34))||(m===(530))){break;}else{return 2;}}if(DD.nil===c.Next||!((16===c.Next.Type))){return 2;}n=c.Next.Tokens;o=b[0].Context.parseKramdownSpanIAL(n);p=o[0];q=o[1];if(0>0));if(1>c.Next.Tokens.$length){c.Next.Unlink();}r=new B.Node.ptr("","","","",456,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,$subslice(n,0,(p+1>>0)),"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);c.InsertAfter(r);}return 2;};})(b));$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return;}return;}var $f={$blk:IC,$c:true,$r,b,$s};return $f;};$ptrType(AB).prototype.parseKramdownBlockIAL=function IE(b){var b,c,d,e,f;c=DI.nil;d=this;e=A.Index(b,(new DA($stringToBytes("{:"))));if(0===e){b=$subslice(b,(e+2>>0));f=A.LastIndex(b,BS);if(3>f){return c;}if(!A.Equal($subslice(b,f),(new DA($stringToBytes("}\n"))))){return c;}c=BI(b);}return c;};$ptrType(AB).prototype.parseKramdownSpanIAL=function IF(b){var b,c,d,e,f,g,h,i,j,k,l,m,n,o;c=0;d=DI.nil;e=this;c=A.Index(b,BS);f=A.Index(b,(new DA($stringToBytes("{:"))));if((0===f)&&(f+2>>0)>0));g=A.Index(b,BS);if(3>g){return[c,d];}b=$subslice(b,0,g);while(true){h=AP(b);i=h[0];j=h[1];k=h[2];l=h[3];m=h[4];if(!i){break;}b=j;if(1>k.$length){break;}n=I.ReplaceAll(G.BytesToStr(l),"\xE2\x80\xB8","");o=I.ReplaceAll(G.BytesToStr(m),"\xE2\x80\xB8","");d=$append(d,new DH([n,o]));}}return[c,d];};$ptrType(AB).prototype.parseKramdownIALInListItem=function IG(b){var b,c,d,e,f,g,h,i,j,k,l;c=DI.nil;d=this;e=A.Index(b,(new DA($stringToBytes("{:"))));if(0===e){b=$subslice(b,(e+2>>0));f=A.Index(b,BS);if(3>f){return c;}b=$subslice(b,0,A.Index(b,(new DA($stringToBytes("}")))));while(true){g=AP(b);h=g[0];i=g[1];j=g[2];k=g[3];l=g[4];if(!h){break;}b=i;if(1>j.$length){break;}c=$append(c,new DH([G.BytesToStr(k),G.BytesToStr(l)]));}}return c;};$ptrType(AD).prototype.parseInline=function IH(b,c){var{b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,$s,$r,$c}=$restore(this,{b,c});$s=$s||0;s:while(true){switch($s){case 0:d=this;case 1:if(!(c.pos=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]));h=DD.nil;i=g;if(i===(92)){$s=4;continue;}if(i===(96)){$s=5;continue;}if((i===(42))||(i===(95))||(i===(126))||(i===(61))||(i===(35))){$s=6;continue;}if(i===(94)){$s=7;continue;}if(i===(10)){$s=8;continue;}if(i===(60)){$s=9;continue;}if(i===(91)){$s=10;continue;}if(i===(93)){$s=11;continue;}if(i===(38)){$s=12;continue;}if(i===(33)){$s=13;continue;}if(i===(36)){$s=14;continue;}if(i===(123)){$s=15;continue;}if(i===(40)){$s=16;continue;}$s=17;continue;case 4:h=d.parseBackslash(b,c);$s=18;continue;case 5:j=d.parseCodeSpan(b,c);$s=19;case 19:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}h=j;$s=18;continue;case 6:d.handleDelim(b,c);$s=18;continue;case 7:if(d.Context.ParseOption.Sup){d.handleDelim(b,c);}else{h=d.parseText(c);}$s=18;continue;case 8:h=d.parseNewline(b,c);$s=18;continue;case 9:h=d.parseAutolink(c);if(DD.nil===h){$s=20;continue;}$s=21;continue;case 20:h=d.parseAutoEmailLink(c);if(DD.nil===h){$s=22;continue;}$s=23;continue;case 22:k=d.parseFileAnnotationRef(c);$s=24;case 24:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}h=k;if(DD.nil===h){$s=25;continue;}$s=26;continue;case 25:l=d.parseInlineHTML(c);$s=27;case 27:if($c){$c=false;l=l.$blk();}if(l&&l.$blk!==undefined){break s;}h=l;if(d.Context.ParseOption.ProtyleWYSIWYG&&!(DD.nil===h)&&(10===h.Type)){h.Type=16;}case 26:case 23:case 21:$s=18;continue;case 10:h=d.parseOpenBracket(c);$s=18;continue;case 11:m=d.parseCloseBracket(c);$s=28;case 28:if($c){$c=false;m=m.$blk();}if(m&&m.$blk!==undefined){break s;}h=m;$s=18;continue;case 12:h=d.parseEntity(c);$s=18;continue;case 13:h=d.parseBang(c);$s=18;continue;case 14:h=d.parseInlineMath(c);$s=18;continue;case 15:h=d.parseHeadingID(b,c);$s=18;continue;case 16:h=d.parseBlockRef(c);$s=18;continue;case 17:h=d.parseText(c);case 18:case 3:if(!(DD.nil===h)){n=DE.nil;o=h;while(true){if(DD.nil===o.Previous){break;}o=o.Previous;}p=o;while(true){if(!(!(DD.nil===p))){break;}n=$append(n,p);p=p.Next;}q=n;r=0;while(true){if(!(r=q.$length)?($throwRuntimeError("index out of range"),undefined):q.$array[q.$offset+r]);b.AppendChild(s);r++;}}$s=1;continue;case 2:b.Tokens=DA.nil;$s=-1;return;}return;}var $f={$blk:IH,$c:true,$r,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,$s};return $f;};$ptrType(AD).prototype.parseEntity=function II(b){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r;c=DD.nil;d=this;g=new DA([(e=b.tokens,f=b.pos,((f<0||f>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]))]);if(2>b.tokensLen||b.tokensLen<=(b.pos+1>>0)){b.pos=b.pos+(1)>>0;c=new B.Node.ptr("","","","",16,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,g,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);return c;}h=b.pos;i=false;if(3>0,((k<0||k>=j.$length)?($throwRuntimeError("index out of range"),undefined):j.$array[j.$offset+k]));}l=b.pos;m=0;n=false;while(true){if(!(l=o.$length)?($throwRuntimeError("index out of range"),undefined):o.$array[o.$offset+l]));if(F.IsWhitespace(m)){break;}if(59===m){l=l+(1)>>0;n=true;break;}l=l+(1)>>0;}if(!n){b.pos=b.pos+(1)>>0;c=new B.Node.ptr("","","","",16,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,g,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);return c;}p=G.BytesToStr($subslice(b.tokens,h,l));if(i){q=p.length;if(10q){b.pos=b.pos+(1)>>0;c=new B.Node.ptr("","","","",16,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,g,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);return c;}if(((120===p.charCodeAt(2))||(88===p.charCodeAt(2)))&&5>q){b.pos=b.pos+(1)>>0;c=new B.Node.ptr("","","","",16,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,g,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);return c;}}r=D.HtmlUnescapeString(p);if(r===p){b.pos=b.pos+(1)>>0;c=new B.Node.ptr("","","","",16,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,g,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);return c;}b.pos=b.pos+((l-h>>0))>>0;c=new B.Node.ptr("","","","",44,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,G.StrToBytes(r),"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,G.StrToBytes(p),DI.nil,false,"","","","","","","","","","","",0,"","","","",0);return c;};$ptrType(AD).prototype.parseCloseBracket=function IJ(b){var{aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,aq,ar,as,at,au,av,aw,ax,ay,az,b,ba,bb,bc,bd,be,bf,bg,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s,$r,$c}=$restore(this,{b});$s=$s||0;s:while(true){switch($s){case 0:c=this;f=new DA([(d=b.tokens,e=b.pos,((e<0||e>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+e]))]);b.pos=b.pos+(1)>>0;g=b.pos;h=b.brackets;if(GT.nil===h){$s=-1;return new B.Node.ptr("","","","",16,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,f,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);}if(!h.active){c.removeBracket(b);$s=-1;return new B.Node.ptr("","","","",16,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,f,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);}i=h.image;j=DA.nil;k=DA.nil;l=DA.nil;m=DA.nil;n=DA.nil;o=j;p=k;q=l;r=m;s=n;t=b.pos;u=false;if((b.pos+1>>0)=v.$length)?($throwRuntimeError("index out of range"),undefined):v.$array[v.$offset+w])))){$s=1;continue;}$s=2;continue;case 1:b.pos=b.pos+(1)>>0;x=false;y=DA.nil;z=DA.nil;aa=y;ab=z;case 3:ac=F.Spnl($subslice(b.tokens,(b.pos-1>>0)));x=ac[0];aa=ac[1];ab=ac[2];if(!x){$s=4;continue;}b.pos=b.pos+(aa.$length)>>0;ae=c.Context.parseInlineLinkDest(ab);$s=5;case 5:if($c){$c=false;ae=ae.$blk();}if(ae&&ae.$blk!==undefined){break s;}ad=ae;aa=ad[0];ab=ad[1];p=ad[2];if(DA.nil===aa){$s=4;continue;}if(c.Context.ParseOption.VditorWYSIWYG||c.Context.ParseOption.VditorIR||c.Context.ParseOption.VditorSV||c.Context.ParseOption.ProtyleWYSIWYG){if(!i&&DD.nil===h.node.Next){$s=4;continue;}}b.pos=b.pos+(aa.$length)>>0;o=$subslice(aa,0,1);s=$subslice(aa,(aa.$length-1>>0));u=41===(af=aa.$length-1>>0,((af<0||af>=aa.$length)?($throwRuntimeError("index out of range"),undefined):aa.$array[aa.$offset+af]));if(u&&1=ab.$length?($throwRuntimeError("index out of range"),undefined):ab.$array[ab.$offset+0]))&&!((34===(1>=ab.$length?($throwRuntimeError("index out of range"),undefined):ab.$array[ab.$offset+1])));}if(u){b.pos=b.pos-(1)>>0;$s=4;continue;}if(1>ab.$length||!F.IsWhitespace((0>=ab.$length?($throwRuntimeError("index out of range"),undefined):ab.$array[ab.$offset+0]))){$s=4;continue;}ag=F.Spnl(ab);x=ag[0];aa=ag[1];ab=ag[2];if(!x){$s=4;continue;}q=aa;b.pos=b.pos+(aa.$length)>>0;u=41===(0>=ab.$length?($throwRuntimeError("index out of range"),undefined):ab.$array[ab.$offset+0]);s=$subslice(ab,0,1);if(u){$s=4;continue;}b.pos=b.pos+(1)>>0;ah=false;ai=c.Context.parseLinkTitle(ab);ah=ai[0];aa=ai[1];ab=ai[2];r=ai[3];if(!ah){$s=4;continue;}b.pos=b.pos+(aa.$length)>>0;aj=F.Spnl(ab);x=aj[0];aa=aj[1];ab=aj[2];b.pos=b.pos+(aa.$length)>>0;u=x&&0>0)),ab);}else{r=C.CaretTokens;ab=$subslice(ab,C.CaretTokens.$length);b.pos=b.pos+(3)>>0;}}else if(A.HasPrefix(ab,(new DA($stringToBytes(")\xE2\x80\xB8"))))){if(0===r.$length){r=C.CaretTokens;ab=A.ReplaceAll(ab,C.CaretTokens,DA.nil);b.pos=b.pos+(3)>>0;}}}u=41===(0>=ab.$length?($throwRuntimeError("index out of range"),undefined):ab.$array[ab.$offset+0]);}s=$subslice(ab,0);$s=4;continue;case 4:if(!u){b.pos=t;}case 2:ak=DA.nil;al=0;if(!u){$s=6;continue;}$s=7;continue;case 6:am=b.pos;an=c.Context.parseLinkLabel($subslice(b.tokens,am));ao=an[0];ap=an[2];if(2>0;}else if(!h.bracketAfter){aq=h.index;if(91===(ar=b.tokens,((aq<0||aq>=ar.$length)?($throwRuntimeError("index out of range"),undefined):ar.$array[ar.$offset+aq]))){aq=aq+(1)>>0;}ak=$subslice(b.tokens,aq,(g-1>>0));b.pos=b.pos+(2)>>0;}if(0===ao){b.pos=g;}if(!(DA.nil===ak)){$s=8;continue;}$s=9;continue;case 8:if(c.Context.ParseOption.Footnotes){$s=10;continue;}$s=11;continue;case 10:at=c.FindFootnotesDef(ak);$s=12;case 12:if($c){$c=false;at=at.$blk();}if(at&&at.$blk!==undefined){break s;}as=at;au=as[0];av=as[1];if(!(DD.nil===av)){c.removeBracket(b);if(c.Context.ParseOption.Sup&&!(DD.nil===h.node.Next.Next)){h.node.Next.Next.Unlink();h.node.Next.Unlink();}else{h.node.Next.Unlink();}h.node.Unlink();aw=H.Itoa(au);ax=av.FootnotesRefs.$length;if(0>0));}ay=new B.Node.ptr("","","","",412,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,ak,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,A.ReplaceAll(ak,C.CaretTokens,DA.nil),aw,DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);av.FootnotesRefs=$append(av.FootnotesRefs,ay);$s=-1;return ay;}case 11:az=c.FindLinkRefDefLink(ak);$s=13;case 13:if($c){$c=false;az=az.$blk();}if(az&&az.$blk!==undefined){break s;}ba=az;if(!(DD.nil===ba)){p=ba.ChildByType(41).Tokens;bb=ba.ChildByType(42);if(!(DD.nil===bb)){r=bb.Tokens;}u=true;al=3;}case 9:case 7:if(u){bc=new B.Node.ptr("","","","",33,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,DA.nil,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,al,ak,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);if(i){bc.Type=34;bc.AppendChild(new B.Node.ptr("","","","",35,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,$subslice(h.node.Tokens,0,1),"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));h.node.Tokens=$subslice(h.node.Tokens,1);}bc.AppendChild(new B.Node.ptr("","","","",36,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,h.node.Tokens,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));bd=DD.nil;be=DD.nil;bf=bd;bg=be;bf=h.node.Next;while(true){if(!(!(DD.nil===bf))){break;}bg=bf.Next;bf.Unlink();if(16===bf.Type){bf.Type=40;if(c.Context.ParseOption.ProtyleWYSIWYG){if(A.Contains(bf.Tokens,C.CaretTokens)){bc.InsertAfter(new B.Node.ptr("","","","",16,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,C.CaretTokens,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));bf.Tokens=A.ReplaceAll(bf.Tokens,C.CaretTokens,DA.nil);}}}bc.AppendChild(bf);bf=bg;}bc.AppendChild(new B.Node.ptr("","","","",37,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,f,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));bc.AppendChild(new B.Node.ptr("","","","",38,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,o,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));if(c.Context.ParseOption.ProtyleWYSIWYG){if(A.Contains(p,C.CaretTokens)){bc.InsertAfter(new B.Node.ptr("","","","",16,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,C.CaretTokens,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));p=A.ReplaceAll(p,C.CaretTokens,DA.nil);}}bc.AppendChild(new B.Node.ptr("","","","",41,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,p,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));if(!(DA.nil===q)){bc.AppendChild(new B.Node.ptr("","","","",43,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,q,"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0));}if(0>0;c=new B.Node.ptr("","","","",16,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,$subslice(b.tokens,e,b.pos),"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);d.addBracket(c,b.pos-1>>0,false,b);return c;};$ptrType(AD).prototype.addBracket=function IL(b,c,d,e){var b,c,d,e,f;f=this;if(!(GT.nil===e.brackets)){e.brackets.bracketAfter=true;}e.brackets=new CC.ptr(b,0,0,0,false,false,e.brackets,GT.nil,true,d,false,c,e.delimiters);};$ptrType(AD).prototype.removeBracket=function IM(b){var b,c;c=this;b.brackets=b.brackets.previous;};$ptrType(AD).prototype.parseBang=function IN(b){var b,c,d,e,f,g;c=DD.nil;d=this;e=b.pos;b.pos=b.pos+(1)>>0;if(b.pos=f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+g])))){b.pos=b.pos+(1)>>0;c=new B.Node.ptr("","","","",16,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,$subslice(b.tokens,e,b.pos),"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);d.addBracket(c,e+2>>0,true,b);return c;}c=new B.Node.ptr("","","","",16,DD.nil,DD.nil,DD.nil,DD.nil,DD.nil,DE.nil,$subslice(b.tokens,e,b.pos),"","",false,false,false,0,false,0,0,0,DA.nil,DA.nil,DA.nil,0,DF.nil,false,0,DG.nil,0,0,0,0,DA.nil,0,false,"",0,DA.nil,"",DE.nil,DA.nil,DI.nil,false,"","","","","","","","","","","",0,"","","","",0);return c;};BJ=function IO(b,c){var{b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,$s,$r,$c}=$restore(this,{b,c});$s=$s||0;s:while(true){switch($s){case 0:if(b.Context.indented){$s=-1;return 0;}if(!((60===F.Peek(b.Context.currentLine,b.Context.nextNonspace)))){$s=-1;return 0;}if(b.Context.ParseOption.VditorWYSIWYG){if(A.Contains(b.Context.currentLine,(new DA($stringToBytes("vditor-comment"))))){$s=-1;return 0;}}if(b.Context.ParseOption.ProtyleWYSIWYG){if(A.Contains(b.Context.currentLine,(new DA($stringToBytes(""))))){$s=7;continue;}if(A.HasPrefix(d,(new DA($stringToBytes(""))))){$s=8;continue;}if(A.HasPrefix(d,(new DA($stringToBytes(""))))){$s=9;continue;}if(A.HasPrefix(d,(new DA($stringToBytes(""))))){$s=10;continue;}$s=11;continue;case 7:if(A.Contains(d,(new DA($stringToBytes("data-subtype=\"widget\""))))){$s=12;continue;}$s=13;continue;case 12:g=b.Context.addChild(535);$s=15;case 15:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}g;$s=14;continue;case 13:h=b.Context.addChild(500);$s=16;case 16:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}h;case 14:$s=-1;return 2;case 8:i=b.Context.addChild(510);$s=17;case 17:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}i;$s=-1;return 2;case 9:j=b.Context.addChild(505);$s=18;case 18:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}j;$s=-1;return 2;case 10:k=b.Context.addChild(550);$s=19;case 19:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}l=k;m=A.Index(d,(new DA($stringToBytes("data-av-type=\""))))+14>>0;n=m+A.Index($subslice(d,m),(new DA($stringToBytes("\""))))>>0;l.AttributeViewType=($bytesToString($subslice(d,m,n)));o=A.Index(d,(new DA($stringToBytes("data-av-id=\""))));if(0>0;p=o+A.Index($subslice(d,o),(new DA($stringToBytes("\""))))>>0;l.AttributeViewID=($bytesToString($subslice(d,o,p)));$s=22;continue;case 21:q=B.NewNodeID();$s=23;case 23:if($c){$c=false;q=q.$blk();}if(q&&q.$blk!==undefined){break s;}l.AttributeViewID=q;case 22:$s=-1;return 2;case 11:case 5:if(b.Context.ParseOption.ProtyleWYSIWYG){r=F.TrimLeft($subslice(b.Context.currentLine,b.Context.nextNonspace));s=r[1];if(!A.HasPrefix(s,(new DA($stringToBytes(">0))){break;}if((45===((j<0||j>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+j]))&&(45===(k=j+1>>0,((k<0||k>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+k])))&&(62===(l=j+2>>0,((l<0||l>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+l])))){return true;}j=j+(1)>>0;}}else if(h===(3)){m=0;while(true){if(!(m<(g-2>>0))){break;}if((63===((m<0||m>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+m]))&&(62===(n=m+1>>0,((n<0||n>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+n])))){return true;}m=m+(1)>>0;}}else if(h===(4)){return A.Contains(b,BQ);}else if(h===(5)){o=0;while(true){if(!(o<(g-2>>0))){break;}if((93===((o<0||o>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+o]))&&(93===(p=o+1>>0,((p<0||p>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+p])))){return true;}o=o+(1)>>0;}}return false;};$ptrType(AD).prototype.parseHTML=function IS(b){var b,c,d,e,f,g,h,i,j,k,l,m;c=0;d=this;e=F.TrimLeft(b);b=e[1];f=b.$length;if(3>f){return c;}if(!((60===(0>=b.$length?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+0])))){return c;}c=1;g=F.AcceptTokenss(b,BL);if(0<=g){if(F.IsWhitespace(((g<0||g>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+g]))||(62===((g<0||g>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+g]))){return c;}}h=F.AcceptTokenss(b,BN);if(0<=h){if(F.IsWhitespace(((h<0||h>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+h]))||(62===((h<0||h>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+h]))){c=6;return c;}if((47===((h<0||h>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+h]))&&(62===(i=h+1>>0,((i<0||i>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+i])))){c=6;return c;}}j=F.TrimWhitespace(b);k=d.isOpenTag(j);if(k&&!((d.Context.Tip.Type===1))){c=7;return c;}l=d.isCloseTag(j);if(l&&!((d.Context.Tip.Type===1))){c=7;return c;}if(0===A.Index(b,G.StrToBytes("