diff --git a/src/components/BootstrapBlazor.CherryMarkdown/BootstrapBlazor.CherryMarkdown.csproj b/src/components/BootstrapBlazor.CherryMarkdown/BootstrapBlazor.CherryMarkdown.csproj index 1fd4e77a..a632f3f7 100644 --- a/src/components/BootstrapBlazor.CherryMarkdown/BootstrapBlazor.CherryMarkdown.csproj +++ b/src/components/BootstrapBlazor.CherryMarkdown/BootstrapBlazor.CherryMarkdown.csproj @@ -1,7 +1,7 @@ - 9.0.0 + 9.0.1 diff --git a/src/components/BootstrapBlazor.CherryMarkdown/Components/CherryMarkdown/CherryMarkdown.razor.cs b/src/components/BootstrapBlazor.CherryMarkdown/Components/CherryMarkdown/CherryMarkdown.razor.cs index 2868a1cb..1d1969c3 100644 --- a/src/components/BootstrapBlazor.CherryMarkdown/Components/CherryMarkdown/CherryMarkdown.razor.cs +++ b/src/components/BootstrapBlazor.CherryMarkdown/Components/CherryMarkdown/CherryMarkdown.razor.cs @@ -11,8 +11,6 @@ namespace BootstrapBlazor.Components; /// public partial class CherryMarkdown { - private CherryMarkdownOption Option { get; } = new(); - /// /// 获得/设置 编辑器设置 /// @@ -25,6 +23,12 @@ public partial class CherryMarkdown [Parameter] public ToolbarSettings? ToolbarSettings { get; set; } + /// + /// 获得/ 设置 是否使用 Katex 渲染数学公式 默认 true + /// + [Parameter] + public bool IsSupportMath { get; set; } = true; + private string? _lastValue; /// /// 获得/设置 组件值 @@ -60,27 +64,7 @@ public partial class CherryMarkdown /// 获取/设置 组件是否为浏览器模式 /// [Parameter] - public bool? IsViewer { get; set; } - - /// - /// OnInitialized 方法 - /// - protected override void OnInitialized() - { - base.OnInitialized(); - - _lastValue = Value; - Option.Value = Value; - Option.Editor = EditorSettings ?? new EditorSettings(); - Option.Toolbars = ToolbarSettings ?? new ToolbarSettings(); - if (IsViewer == true) - { - Option.Editor.DefaultModel = "previewOnly"; - Option.Toolbars.Toolbar = false; - } - - _lastValue = Value; - } + public bool IsViewer { get; set; } /// /// @@ -91,6 +75,12 @@ protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); + if (firstRender) + { + _lastValue = Value; + return; + } + if (Value != _lastValue) { _lastValue = Value; @@ -102,7 +92,9 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// /// /// - protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop, Option, nameof(Upload)); + protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop, + new { Value, IsSupportMath, IsViewer, Editor = EditorSettings ?? new(), Toolbars = ToolbarSettings ?? new() }, + nameof(Upload)); /// /// 文件上传回调 @@ -111,7 +103,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender) [JSInvokable] public async Task Upload(CherryMarkdownUploadFile uploadFile) { -#if NET6_0_OR_GREATER var ret = ""; if (Module != null) { @@ -127,10 +118,6 @@ public async Task Upload(CherryMarkdownUploadFile uploadFile) } } return ret; -#else - await Task.Yield(); - throw new NotSupportedException(); -#endif } /// diff --git a/src/components/BootstrapBlazor.CherryMarkdown/Components/CherryMarkdown/CherryMarkdown.razor.js b/src/components/BootstrapBlazor.CherryMarkdown/Components/CherryMarkdown/CherryMarkdown.razor.js index 8262b316..5d0dda8e 100644 --- a/src/components/BootstrapBlazor.CherryMarkdown/Components/CherryMarkdown/CherryMarkdown.razor.js +++ b/src/components/BootstrapBlazor.CherryMarkdown/Components/CherryMarkdown/CherryMarkdown.razor.js @@ -1,86 +1,100 @@ -import '../../js/cherry-markdown.min.js' -import { addLink } from '../../../BootstrapBlazor/modules/utility.js' +import '../../js/cherry-markdown.core.js' +import { addLink, addScript } from '../../../BootstrapBlazor/modules/utility.js' import Data from '../../../BootstrapBlazor/modules/data.js' -export async function init(id, invoker, options, callback) { - await addLink('./_content/BootstrapBlazor.CherryMarkdown/css/cherry-markdown.min.css') - +export async function init(id, invoke, options, callback) { const el = document.getElementById(id); if (el === null) { return; } - const md = {} - Data.set(id, md) - - md._invoker = invoker - md._invokerMethod = callback - md._element = el - md._options = options - if (md._options.toolbars.toolbar === null) { - delete md._options.toolbars.toolbar - } - if (md._options.toolbars.bubble === null) { - delete md._options.toolbars.bubble + await addLink('./_content/BootstrapBlazor.CherryMarkdown/css/cherry-markdown.min.css') + if (options.isSupportMath) { + await addScript('./_content/BootstrapBlazor.CherryMarkdown/js/katex.min.js') + await addLink('./_content/BootstrapBlazor.CherryMarkdown/css/katex.min.css') + options.engine = { + syntax: { + mathBlock: { engine: 'katex', }, + inlineMath: { engine: 'katex' } + } + } + options.externals = { katex: window.katex }; + delete options.isSupportMath; } - if (md._options.toolbars.float === null) { - delete md._options.toolbars.float + if (options.isViewer) { + options.editor.defaultModel = 'previewOnly'; + options.toolbars.Toolbar = false; } - const fileUpload = (file, callback) => { - md._file = file - md._invoker.invokeMethodAsync(md._invokerMethod, { + const fileUpload = (file, cb) => { + md.file = file + invoke.invokeMethodAsync(callback, { fileName: file.name, fileSize: file.size, contentType: file.type, lastModified: new Date(file.lastModified).toISOString(), }).then(data => { if (data !== "") { - callback(data) + cb(data) } }) } - md._editor = new Cherry({ - el: md._element, - value: md._options.value, - editor: md._options.editor, - toolbars: md._options.toolbars, + options.editor = { + theme: 'Default', + height: '100%', + defaultModel: 'edit&preview', + convertWhenPaste: true, + ...options.editor + } + + const op = { + el, + ...options, callback: { afterChange: (markdown, html) => { - md._invoker.invokeMethodAsync('Update', [markdown, html]) + invoke.invokeMethodAsync('Update', [markdown, html]) } }, fileUpload: fileUpload - }); + }; + const editor = new Cherry(op); + const md = { invoke, editor }; + Data.set(id, md); } export function update(id, val) { - const md = Data.get(id) - md._editor.setMarkdown(val, true) + const md = Data.get(id); + const { editor } = md; + if (md) { + editor.setMarkdown(val, true) + } } export function fetch(id) { const md = Data.get(id) - return md._file + const { file } = md; + return file } export function invoke(id, method, parameters) { const md = Data.get(id) + const { editor, invoke } = md; + if (method.indexOf('.') < 0) { - md._editor[method](...parameters) + editor[method](...parameters) } else { const methods = method.split('.'); - let m = md._editor[methods[0]]; + let m = editor[methods[0]]; for (let i = 1; i < methods.length; i++) { m = m[methods[i]] } m(...parameters); } - const val = md._editor.getMarkdown(); - const html = md._editor.getHtml(); - md._invoker.invokeMethodAsync('Update', [val, html]); + const val = editor.getMarkdown(); + const html = editor.getHtml(); + invoke.invokeMethodAsync('Update', [val, html]); } export function dispose(id) { diff --git a/src/components/BootstrapBlazor.CherryMarkdown/Components/CherryMarkdown/CherryMarkdownOption.cs b/src/components/BootstrapBlazor.CherryMarkdown/Components/CherryMarkdown/CherryMarkdownOption.cs deleted file mode 100644 index e0a819a9..00000000 --- a/src/components/BootstrapBlazor.CherryMarkdown/Components/CherryMarkdown/CherryMarkdownOption.cs +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Argo Zhang (argo@163.com). All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -// Website: https://www.blazor.zone or https://argozhang.github.io/ - -namespace BootstrapBlazor.Components; - -/// -/// 配置信息 -/// -internal class CherryMarkdownOption -{ - /// - /// 初始值 - /// - public string? Value { get; set; } - - /// - /// 编辑器选项 - /// - public EditorSettings? Editor { get; set; } - - /// - /// 工具栏选项 - /// - public ToolbarSettings? Toolbars { get; set; } -} diff --git a/src/components/BootstrapBlazor.CherryMarkdown/Components/CherryMarkdown/EditorSettings.cs b/src/components/BootstrapBlazor.CherryMarkdown/Components/CherryMarkdown/EditorSettings.cs index aa7a3c05..b1c49a6f 100644 --- a/src/components/BootstrapBlazor.CherryMarkdown/Components/CherryMarkdown/EditorSettings.cs +++ b/src/components/BootstrapBlazor.CherryMarkdown/Components/CherryMarkdown/EditorSettings.cs @@ -2,6 +2,8 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Website: https://www.blazor.zone or https://argozhang.github.io/ +using System.Text.Json.Serialization; + namespace BootstrapBlazor.Components; /// @@ -12,12 +14,14 @@ public class EditorSettings /// /// CodeMirror主题,默认为 default /// - public string Theme { get; set; } = "default"; + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] + public string? Theme { get; set; } /// /// 编辑器高度,默认为100% /// - public string Height { get; set; } = "100%"; + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] + public string? Height { get; set; } /// /// 编辑器显示模式 @@ -25,10 +29,12 @@ public class EditorSettings /// editOnly: 只显示编辑器 /// previewOnly: 预览模式 /// - public string DefaultModel { get; set; } = "edit&preview"; + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] + public string? DefaultModel { get; set; } /// - /// 粘贴Html时自动转换为Markdown格式 + /// 粘贴 Html 时自动转换为 Markdown 格式 /// - public bool ConvertWhenPaste { get; set; } = true; + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] + public bool? ConvertWhenPaste { get; set; } } diff --git a/src/components/BootstrapBlazor.CherryMarkdown/Components/CherryMarkdown/ToolbarSettings.cs b/src/components/BootstrapBlazor.CherryMarkdown/Components/CherryMarkdown/ToolbarSettings.cs index 73724e72..9e931104 100644 --- a/src/components/BootstrapBlazor.CherryMarkdown/Components/CherryMarkdown/ToolbarSettings.cs +++ b/src/components/BootstrapBlazor.CherryMarkdown/Components/CherryMarkdown/ToolbarSettings.cs @@ -2,6 +2,8 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Website: https://www.blazor.zone or https://argozhang.github.io/ +using System.Text.Json.Serialization; + namespace BootstrapBlazor.Components; /// @@ -12,20 +14,24 @@ public class ToolbarSettings /// /// 主题,light 、dark(默认值) /// - public string Theme { get; set; } = "dark"; + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] + public string? Theme { get; set; } /// /// 自定义工具栏按钮,null则为默认工具栏,false则不显示工具栏 /// + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public object? Toolbar { get; set; } /// /// 选中后的悬浮菜单,null为默认悬浮菜单,false则不显示悬浮菜单 /// + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public object? Bubble { get; set; } /// /// 新行的悬浮菜单,null为默认悬浮菜单,false则不显示悬浮菜单 /// + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public object? Float { get; set; } } diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/cherry-markdown.min.css b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/cherry-markdown.min.css index 95d1782e..4650fbe8 100644 --- a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/cherry-markdown.min.css +++ b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/cherry-markdown.min.css @@ -1 +1 @@ -.cherry *{padding:0;margin:0}.cherry *::-webkit-scrollbar{height:7px;width:7px;background:transparent}.cherry *::-webkit-scrollbar:hover{background:rgba(128,128,128,0.1)}.cherry *::-webkit-scrollbar-thumb{background:#d3d7da;-webkit-border-radius:6px}.cherry *::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,0.6)}.cherry *::-webkit-scrollbar-corner{background:transparent}@font-face{font-family:"ch-icon";src:url("./fonts/ch-icon.eot");src:url("./fonts/ch-icon.eot?#iefix") format("eot"),url("./fonts/ch-icon.woff2") format("woff2"),url("./fonts/ch-icon.woff") format("woff"),url("./fonts/ch-icon.ttf") format("truetype"),url("./fonts/ch-icon.svg#ch-icon") format("svg");font-weight:normal;font-style:normal}.ch-icon:before{display:inline-block;font-family:"ch-icon";font-style:normal;font-weight:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ch-icon-list:before{content:"\EA03"}.ch-icon-check:before{content:"\EA04"}.ch-icon-square:before{content:"\EA09"}.ch-icon-bold:before{content:"\EA0A"}.ch-icon-code:before{content:"\EA0B"}.ch-icon-color:before{content:"\EA0C"}.ch-icon-header:before{content:"\EA0D"}.ch-icon-image:before{content:"\EA0E"}.ch-icon-italic:before{content:"\EA0F"}.ch-icon-link:before{content:"\EA10"}.ch-icon-ol:before{content:"\EA11"}.ch-icon-size:before{content:"\EA12"}.ch-icon-strike:before{content:"\EA13"}.ch-icon-table:before{content:"\EA14"}.ch-icon-ul:before{content:"\EA15"}.ch-icon-underline:before{content:"\EA16"}.ch-icon-word:before{content:"\EA17"}.ch-icon-blockquote:before{content:"\EA18"}.ch-icon-font:before{content:"\EA19"}.ch-icon-insertClass:before{content:"\EA1F"}.ch-icon-insertFlow:before{content:"\EA20"}.ch-icon-insertFormula:before{content:"\EA21"}.ch-icon-insertGantt:before{content:"\EA22"}.ch-icon-insertGraph:before{content:"\EA23"}.ch-icon-insertPie:before{content:"\EA24"}.ch-icon-insertSeq:before{content:"\EA25"}.ch-icon-insertState:before{content:"\EA26"}.ch-icon-line:before{content:"\EA27"}.ch-icon-preview:before{content:"\EA28"}.ch-icon-previewClose:before{content:"\EA29"}.ch-icon-toc:before{content:"\EA2A"}.ch-icon-sub:before{content:"\EA2D"}.ch-icon-sup:before{content:"\EA2E"}.ch-icon-h1:before{content:"\EA2F"}.ch-icon-h2:before{content:"\EA30"}.ch-icon-h3:before{content:"\EA31"}.ch-icon-h4:before{content:"\EA32"}.ch-icon-h5:before{content:"\EA33"}.ch-icon-h6:before{content:"\EA34"}.ch-icon-video:before{content:"\EA35"}.ch-icon-insert:before{content:"\EA36"}.ch-icon-little_table:before{content:"\EA37"}.ch-icon-pdf:before{content:"\EA38"}.ch-icon-checklist:before{content:"\EA39"}.ch-icon-close:before{content:"\EA40"}.ch-icon-fullscreen:before{content:"\EA41"}.ch-icon-minscreen:before{content:"\EA42"}.ch-icon-insertChart:before{content:"\EA43"}.ch-icon-question:before{content:"\EA44"}.ch-icon-settings:before{content:"\EA45"}.ch-icon-ok:before{content:"\EA46"}.ch-icon-br:before{content:"\EA47"}.ch-icon-normal:before{content:"\EA48"}.ch-icon-undo:before{content:"\EA49"}.ch-icon-redo:before{content:"\EA50"}.ch-icon-copy:before{content:"\EA51"}.ch-icon-phone:before{content:"\EA52"}.cherry-markdown{word-break:break-all}.cherry-markdown h1,.cherry-markdown h2,.cherry-markdown h3,.cherry-markdown h4,.cherry-markdown h5,.cherry-markdown h6,.cherry-markdown .h1,.cherry-markdown .h2,.cherry-markdown .h3,.cherry-markdown .h4,.cherry-markdown .h5,.cherry-markdown .h6{font-family:inherit;font-weight:700;line-height:1.1;color:inherit}.cherry-markdown h1 small,.cherry-markdown h2 small,.cherry-markdown h3 small,.cherry-markdown h4 small,.cherry-markdown h5 small,.cherry-markdown h6 small,.cherry-markdown .h1 small,.cherry-markdown .h2 small,.cherry-markdown .h3 small,.cherry-markdown .h4 small,.cherry-markdown .h5 small,.cherry-markdown .h6 small,.cherry-markdown h1 .small,.cherry-markdown h2 .small,.cherry-markdown h3 .small,.cherry-markdown h4 .small,.cherry-markdown h5 .small,.cherry-markdown h6 .small,.cherry-markdown .h1 .small,.cherry-markdown .h2 .small,.cherry-markdown .h3 .small,.cherry-markdown .h4 .small,.cherry-markdown .h5 .small,.cherry-markdown .h6 .small{font-weight:normal;line-height:1;color:#999}.cherry-markdown h1,.cherry-markdown h2,.cherry-markdown h3{margin-top:30px;margin-bottom:16px}.cherry-markdown h1 small,.cherry-markdown h2 small,.cherry-markdown h3 small,.cherry-markdown h1 .small,.cherry-markdown h2 .small,.cherry-markdown h3 .small{font-size:65%}.cherry-markdown h4,.cherry-markdown h5,.cherry-markdown h6{margin-top:12px;margin-bottom:12px}.cherry-markdown h4 small,.cherry-markdown h5 small,.cherry-markdown h6 small,.cherry-markdown h4 .small,.cherry-markdown h5 .small,.cherry-markdown h6 .small{font-size:75%}.cherry-markdown h1,.cherry-markdown .h1{font-size:2em}.cherry-markdown h2,.cherry-markdown .h2{font-size:1.5em}.cherry-markdown h3,.cherry-markdown .h3{font-size:1.25em}.cherry-markdown h4,.cherry-markdown .h4{font-size:1em}.cherry-markdown h5,.cherry-markdown .h5{font-size:.875em}.cherry-markdown h6,.cherry-markdown .h6{font-size:.85em}.cherry-markdown b,.cherry-markdown strong{font-weight:bold}.cherry-markdown ul,.cherry-markdown ol{padding-left:24px;margin-bottom:16px}.cherry-markdown ul ul,.cherry-markdown ul ol,.cherry-markdown ol ul,.cherry-markdown ol ol{margin-bottom:0}.cherry-markdown ul li,.cherry-markdown ol li{list-style:inherit}.cherry-markdown ul li p,.cherry-markdown ol li p{margin:0}.cherry-markdown div ul,.cherry-markdown div ol{margin-bottom:0}.cherry-markdown hr{height:0;border:0;border-top:1px solid #dfe6ee;margin:16px 0;box-sizing:content-box;overflow:visible}.cherry-markdown table{border-collapse:collapse}.cherry-markdown table th,.cherry-markdown table td{border:1px solid #dfe6ee;padding:0.2em 0.4em;min-width:100px}.cherry-markdown table th{background-color:#eee}.cherry-markdown a{color:#3582fb}.cherry-markdown a:hover{color:#056bad}.cherry-markdown em{font-style:italic}.cherry-markdown sup{vertical-align:super}.cherry-markdown sub{vertical-align:sub}.cherry-markdown figure{overflow-x:auto}.cherry-markdown blockquote{color:#6d6e6f;padding:10px 15px;border-left:10px solid #D6DBDF;background:rgba(102,128,153,0.05)}.cherry-markdown p,.cherry-markdown pre,.cherry-markdown blockquote,.cherry-markdown table{margin:0 0 16px}.cherry-markdown pre{padding:16px;overflow:auto;font-size:85%;line-height:1.45;background-color:#f6f8fa;border-radius:6px}.cherry-markdown .prettyprint{min-width:500px;display:inline-block;background:#00212b;font-family:Menlo, "Bitstream Vera Sans Mono", "DejaVu Sans Mono", Monaco, Consolas, monospace;border:0 !important}.cherry-markdown .pln{color:#dfe6ee}.cherry-markdown .str{color:#ffaf21}.cherry-markdown .kwd{color:#f85353}.cherry-markdown ol.linenums{margin-top:0;margin-bottom:0;color:#969896}.cherry-markdown li.L0,.cherry-markdown li.L1,.cherry-markdown li.L2,.cherry-markdown li.L3,.cherry-markdown li.L4,.cherry-markdown li.L5,.cherry-markdown li.L6,.cherry-markdown li.L7,.cherry-markdown li.L8,.cherry-markdown li.L9{padding-left:1em;background-color:#00212b;list-style-type:decimal}@media screen{.cherry-markdown .cherry-markdown .com{color:#969896}.cherry-markdown .cherry-markdown .typ{color:#81a2be}.cherry-markdown .cherry-markdown .lit{color:#de935f}.cherry-markdown .cherry-markdown .pun{color:#c5c8c6}.cherry-markdown .cherry-markdown .opn{color:#c5c8c6}.cherry-markdown .cherry-markdown .clo{color:#c5c8c6}.cherry-markdown .cherry-markdown .tag{color:#cc6666}.cherry-markdown .cherry-markdown .atn{color:#de935f}.cherry-markdown .cherry-markdown .atv{color:#8abeb7}.cherry-markdown .cherry-markdown .dec{color:#de935f}.cherry-markdown .cherry-markdown .var{color:#cc6666}.cherry-markdown .cherry-markdown .fun{color:#81a2be}}.cherry-markdown div[data-type='codeBlock']{display:inline-block;width:100%;box-sizing:border-box;border-radius:2px;margin-bottom:16px;font-size:14px;overflow-x:auto}.cherry-markdown div[data-type='codeBlock']>pre{margin:0}.cherry-markdown div[data-type='codeBlock']>pre code[class*="language-"]{counter-reset:line}.cherry-markdown div[data-type='codeBlock']>pre code[class*="language-"].wrap{white-space:pre-wrap}.cherry-markdown div[data-type='codeBlock']>pre code[class*="language-"] .code-line{display:inline-block;position:relative;padding-left:3em;height:1.3em;line-height:2em}.cherry-markdown div[data-type='codeBlock']>pre code[class*="language-"] .code-line:before{counter-increment:line;content:counter(line);margin-right:1em;position:absolute;left:0}.cherry-markdown div[data-type='codeBlock']>pre code[class*="language-"] .code-line:last-child{margin-bottom:0}.cherry-markdown :not(pre)>code{padding:.1em;border-radius:.3em;white-space:normal;color:#f85353;background-color:#e5e5e5}[data-inline-code-theme='black'] .cherry-markdown :not(pre)>code{color:#3f4a56;background-color:#e5e5e5}.cherry-markdown a.anchor:before{content:'\a7';text-decoration:none;width:15px;font-size:0.5em;vertical-align:middle;display:inline-block;text-align:center;margin-left:-15px}.cherry-markdown .toc{margin-bottom:16px}.cherry-markdown .toc .toc-title{font-size:24px;margin-bottom:5px}.cherry-markdown .toc .toc-li{border-bottom:1px ridge #dfe6ee;list-style:none}.cherry-markdown .toc .toc-li a{text-decoration:none;color:#3f4a56}.cherry-markdown .toc .toc-li a:hover{color:#056bad}.cherry-markdown .check-list-item{list-style:none}.cherry-markdown .check-list-item .ch-icon{margin:0 6px 0 -20px}.cherry-markdown .footnote:not(a){padding-top:20px;border-top:1px solid #dfe6ee;margin-top:50px}.cherry-markdown .footnote:not(a) .footnote-title{font-size:20px;margin-top:-38px;background-color:#f8fafb;width:60px;margin-bottom:16px}.cherry-markdown .footnote:not(a) .one-footnote{color:#6d6e6f;margin-bottom:16px;border-bottom:1px dotted #dfe6ee}.cherry-markdown .cherry-table-container{max-width:100%;overflow-x:auto}.cherry-markdown .cherry-table-container .cherry-table th,.cherry-markdown .cherry-table-container .cherry-table td{border:1px solid #dfe6ee;padding:0.2em 0.4em;min-width:100px}.cherry-markdown .cherry-table-container .cherry-table th{white-space:nowrap}.cherry-markdown mjx-assistive-mml{position:absolute;top:0;left:0;clip:rect(1px, 1px, 1px, 1px);padding:1px 0 0 0;border:0}.cherry-markdown.head-num{counter-reset:level1}.cherry-markdown.head-num h1 .anchor:before,.cherry-markdown.head-num h2 .anchor:before,.cherry-markdown.head-num h3 .anchor:before,.cherry-markdown.head-num h4 .anchor:before,.cherry-markdown.head-num h5 .anchor:before,.cherry-markdown.head-num h6 .anchor:before{width:auto;font-size:inherit;vertical-align:inherit;padding-right:10px}.cherry-markdown.head-num h1{counter-reset:level2}.cherry-markdown.head-num h2{counter-reset:level3}.cherry-markdown.head-num h3{counter-reset:level4}.cherry-markdown.head-num h4{counter-reset:level5}.cherry-markdown.head-num h5{counter-reset:level6}.cherry-markdown.head-num h1 .anchor:before{counter-increment:level1;content:counter(level1) ". "}.cherry-markdown.head-num h2 .anchor:before{counter-increment:level2;content:counter(level1) "." counter(level2) " "}.cherry-markdown.head-num h3 .anchor:before{counter-increment:level3;content:counter(level1) "." counter(level2) "." counter(level3) " "}.cherry-markdown.head-num h4 .anchor:before{counter-increment:level4;content:counter(level1) "." counter(level2) "." counter(level3) "." counter(level4) " "}.cherry-markdown.head-num h5 .anchor:before{counter-increment:level5;content:counter(level1) "." counter(level2) "." counter(level3) "." counter(level4) "." counter(level5) " "}.cherry-markdown.head-num h6 .anchor:before{counter-increment:level6;content:counter(level1) "." counter(level2) "." counter(level3) "." counter(level4) "." counter(level5) "." counter(level6) " "}div[data-type='codeBlock'] code[class*="language-"],div[data-type='codeBlock'] pre[class*="language-"]{color:#ccc;background:none;font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}div[data-type='codeBlock'] pre[class*="language-"]{padding:1em;margin:.5em 0;overflow:auto}div[data-type='codeBlock'] :not(pre)>code[class*="language-"],div[data-type='codeBlock'] pre[class*="language-"]{background:#2d2d2d}div[data-type='codeBlock'] :not(pre)>code[class*="language-"]{padding:.1em;border-radius:.3em;white-space:normal}div[data-type='codeBlock'] .token.comment,div[data-type='codeBlock'] .token.block-comment,div[data-type='codeBlock'] .token.prolog,div[data-type='codeBlock'] .token.doctype,div[data-type='codeBlock'] .token.cdata{color:#999}div[data-type='codeBlock'] .token.punctuation{color:#ccc}div[data-type='codeBlock'] .token.tag,div[data-type='codeBlock'] .token.attr-name,div[data-type='codeBlock'] .token.namespace,div[data-type='codeBlock'] .token.deleted{color:#e2777a}div[data-type='codeBlock'] .token.function-name{color:#6196cc}div[data-type='codeBlock'] .token.boolean,div[data-type='codeBlock'] .token.number,div[data-type='codeBlock'] .token.function{color:#f08d49}div[data-type='codeBlock'] .token.property,div[data-type='codeBlock'] .token.class-name,div[data-type='codeBlock'] .token.constant,div[data-type='codeBlock'] .token.symbol{color:#f8c555}div[data-type='codeBlock'] .token.selector,div[data-type='codeBlock'] .token.important,div[data-type='codeBlock'] .token.atrule,div[data-type='codeBlock'] .token.keyword,div[data-type='codeBlock'] .token.builtin{color:#cc99cd}div[data-type='codeBlock'] .token.string,div[data-type='codeBlock'] .token.char,div[data-type='codeBlock'] .token.attr-value,div[data-type='codeBlock'] .token.regex,div[data-type='codeBlock'] .token.variable{color:#7ec699}div[data-type='codeBlock'] .token.operator,div[data-type='codeBlock'] .token.entity,div[data-type='codeBlock'] .token.url{color:#67cdcc}div[data-type='codeBlock'] .token.important,div[data-type='codeBlock'] .token.bold{font-weight:bold}div[data-type='codeBlock'] .token.italic{font-style:italic}div[data-type='codeBlock'] .token.entity{cursor:help}div[data-type='codeBlock'] .token.inserted{color:green}[data-code-block-theme='default'] div[data-type='codeBlock'] code[class*="language-"],[data-code-block-theme='default'] div[data-type='codeBlock'] pre[class*="language-"]{color:black;background:none;text-shadow:0 1px white;font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}[data-code-block-theme='default'] div[data-type='codeBlock'] pre[class*="language-"]::-moz-selection,[data-code-block-theme='default'] div[data-type='codeBlock'] pre[class*="language-"] ::-moz-selection,[data-code-block-theme='default'] div[data-type='codeBlock'] code[class*="language-"]::-moz-selection,[data-code-block-theme='default'] div[data-type='codeBlock'] code[class*="language-"] ::-moz-selection{text-shadow:none;background:#b3d4fc}[data-code-block-theme='default'] div[data-type='codeBlock'] pre[class*="language-"]::selection,[data-code-block-theme='default'] div[data-type='codeBlock'] pre[class*="language-"] ::selection,[data-code-block-theme='default'] div[data-type='codeBlock'] code[class*="language-"]::selection,[data-code-block-theme='default'] div[data-type='codeBlock'] code[class*="language-"] ::selection{text-shadow:none;background:#b3d4fc}@media print{[data-code-block-theme='default'] div[data-type='codeBlock'] code[class*="language-"],[data-code-block-theme='default'] div[data-type='codeBlock'] pre[class*="language-"]{text-shadow:none}}[data-code-block-theme='default'] div[data-type='codeBlock'] pre[class*="language-"]{padding:1em;margin:.5em 0;overflow:auto}[data-code-block-theme='default'] div[data-type='codeBlock'] :not(pre)>code[class*="language-"],[data-code-block-theme='default'] div[data-type='codeBlock'] pre[class*="language-"]{background:#f5f2f0}[data-code-block-theme='default'] div[data-type='codeBlock'] :not(pre)>code[class*="language-"]{padding:.1em;border-radius:.3em;white-space:normal}[data-code-block-theme='default'] div[data-type='codeBlock'] .token.comment,[data-code-block-theme='default'] div[data-type='codeBlock'] .token.prolog,[data-code-block-theme='default'] div[data-type='codeBlock'] .token.doctype,[data-code-block-theme='default'] div[data-type='codeBlock'] .token.cdata{color:slategray}[data-code-block-theme='default'] div[data-type='codeBlock'] .token.punctuation{color:#999}[data-code-block-theme='default'] div[data-type='codeBlock'] .token.namespace{opacity:.7}[data-code-block-theme='default'] div[data-type='codeBlock'] .token.property,[data-code-block-theme='default'] div[data-type='codeBlock'] .token.tag,[data-code-block-theme='default'] div[data-type='codeBlock'] .token.boolean,[data-code-block-theme='default'] div[data-type='codeBlock'] .token.number,[data-code-block-theme='default'] div[data-type='codeBlock'] .token.constant,[data-code-block-theme='default'] div[data-type='codeBlock'] .token.symbol,[data-code-block-theme='default'] div[data-type='codeBlock'] .token.deleted{color:#905}[data-code-block-theme='default'] div[data-type='codeBlock'] .token.selector,[data-code-block-theme='default'] div[data-type='codeBlock'] .token.attr-name,[data-code-block-theme='default'] div[data-type='codeBlock'] .token.string,[data-code-block-theme='default'] div[data-type='codeBlock'] .token.char,[data-code-block-theme='default'] div[data-type='codeBlock'] .token.builtin,[data-code-block-theme='default'] div[data-type='codeBlock'] .token.inserted{color:#690}[data-code-block-theme='default'] div[data-type='codeBlock'] .token.operator,[data-code-block-theme='default'] div[data-type='codeBlock'] .token.entity,[data-code-block-theme='default'] div[data-type='codeBlock'] .token.url,[data-code-block-theme='default'] div[data-type='codeBlock'] .language-css .token.string,[data-code-block-theme='default'] div[data-type='codeBlock'] .style .token.string{color:#9a6e3a;background:rgba(255,255,255,0.5)}[data-code-block-theme='default'] div[data-type='codeBlock'] .token.atrule,[data-code-block-theme='default'] div[data-type='codeBlock'] .token.attr-value,[data-code-block-theme='default'] div[data-type='codeBlock'] .token.keyword{color:#07a}[data-code-block-theme='default'] div[data-type='codeBlock'] .token.function,[data-code-block-theme='default'] div[data-type='codeBlock'] .token.class-name{color:#DD4A68}[data-code-block-theme='default'] div[data-type='codeBlock'] .token.regex,[data-code-block-theme='default'] div[data-type='codeBlock'] .token.important,[data-code-block-theme='default'] div[data-type='codeBlock'] .token.variable{color:#e90}[data-code-block-theme='default'] div[data-type='codeBlock'] .token.important,[data-code-block-theme='default'] div[data-type='codeBlock'] .token.bold{font-weight:bold}[data-code-block-theme='default'] div[data-type='codeBlock'] .token.italic{font-style:italic}[data-code-block-theme='default'] div[data-type='codeBlock'] .token.entity{cursor:help}[data-code-block-theme='dark'] div[data-type='codeBlock'] code[class*="language-"],[data-code-block-theme='dark'] div[data-type='codeBlock'] pre[class*="language-"]{color:white;background:none;text-shadow:0 -.1em .2em black;font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}@media print{[data-code-block-theme='dark'] div[data-type='codeBlock'] code[class*="language-"],[data-code-block-theme='dark'] div[data-type='codeBlock'] pre[class*="language-"]{text-shadow:none}}[data-code-block-theme='dark'] div[data-type='codeBlock'] pre[class*="language-"],[data-code-block-theme='dark'] div[data-type='codeBlock'] :not(pre)>code[class*="language-"]{background:#4d4033}[data-code-block-theme='dark'] div[data-type='codeBlock'] pre[class*="language-"]{padding:1em;margin:.5em 0;overflow:auto;border:0.3em solid #7a6652;border-radius:.5em;box-shadow:1px 1px .5em black inset}[data-code-block-theme='dark'] div[data-type='codeBlock'] :not(pre)>code[class*="language-"]{padding:.15em .2em .05em;border-radius:.3em;border:0.13em solid #7a6652;box-shadow:1px 1px .3em -.1em black inset;white-space:normal}[data-code-block-theme='dark'] div[data-type='codeBlock'] .token.comment,[data-code-block-theme='dark'] div[data-type='codeBlock'] .token.prolog,[data-code-block-theme='dark'] div[data-type='codeBlock'] .token.doctype,[data-code-block-theme='dark'] div[data-type='codeBlock'] .token.cdata{color:#998066}[data-code-block-theme='dark'] div[data-type='codeBlock'] .token.punctuation{opacity:.7}[data-code-block-theme='dark'] div[data-type='codeBlock'] .token.namespace{opacity:.7}[data-code-block-theme='dark'] div[data-type='codeBlock'] .token.property,[data-code-block-theme='dark'] div[data-type='codeBlock'] .token.tag,[data-code-block-theme='dark'] div[data-type='codeBlock'] .token.boolean,[data-code-block-theme='dark'] div[data-type='codeBlock'] .token.number,[data-code-block-theme='dark'] div[data-type='codeBlock'] .token.constant,[data-code-block-theme='dark'] div[data-type='codeBlock'] .token.symbol{color:#d1949e}[data-code-block-theme='dark'] div[data-type='codeBlock'] .token.selector,[data-code-block-theme='dark'] div[data-type='codeBlock'] .token.attr-name,[data-code-block-theme='dark'] div[data-type='codeBlock'] .token.string,[data-code-block-theme='dark'] div[data-type='codeBlock'] .token.char,[data-code-block-theme='dark'] div[data-type='codeBlock'] .token.builtin,[data-code-block-theme='dark'] div[data-type='codeBlock'] .token.inserted{color:#bde052}[data-code-block-theme='dark'] div[data-type='codeBlock'] .token.operator,[data-code-block-theme='dark'] div[data-type='codeBlock'] .token.entity,[data-code-block-theme='dark'] div[data-type='codeBlock'] .token.url,[data-code-block-theme='dark'] div[data-type='codeBlock'] .language-css .token.string,[data-code-block-theme='dark'] div[data-type='codeBlock'] .style .token.string,[data-code-block-theme='dark'] div[data-type='codeBlock'] .token.variable{color:#f5b83d}[data-code-block-theme='dark'] div[data-type='codeBlock'] .token.atrule,[data-code-block-theme='dark'] div[data-type='codeBlock'] .token.attr-value,[data-code-block-theme='dark'] div[data-type='codeBlock'] .token.keyword{color:#d1949e}[data-code-block-theme='dark'] div[data-type='codeBlock'] .token.regex,[data-code-block-theme='dark'] div[data-type='codeBlock'] .token.important{color:#e90}[data-code-block-theme='dark'] div[data-type='codeBlock'] .token.important,[data-code-block-theme='dark'] div[data-type='codeBlock'] .token.bold{font-weight:bold}[data-code-block-theme='dark'] div[data-type='codeBlock'] .token.italic{font-style:italic}[data-code-block-theme='dark'] div[data-type='codeBlock'] .token.entity{cursor:help}[data-code-block-theme='dark'] div[data-type='codeBlock'] .token.deleted{color:red}[data-code-block-theme='funky'] div[data-type='codeBlock'] code[class*="language-"],[data-code-block-theme='funky'] div[data-type='codeBlock'] pre[class*="language-"]{font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}[data-code-block-theme='funky'] div[data-type='codeBlock'] pre[class*="language-"]{padding:.4em .8em;margin:.5em 0;overflow:auto;background:url('data:image/svg+xml;charset=utf-8,%0D%0A%0D%0A%0D%0A<%2Fsvg>');background-size:1em 1em}[data-code-block-theme='funky'] div[data-type='codeBlock'] code[class*="language-"]{background:black;color:white;box-shadow:-.3em 0 0 .3em black, .3em 0 0 .3em black}[data-code-block-theme='funky'] div[data-type='codeBlock'] :not(pre)>code[class*="language-"]{padding:.2em;border-radius:.3em;box-shadow:none;white-space:normal}[data-code-block-theme='funky'] div[data-type='codeBlock'] .token.comment,[data-code-block-theme='funky'] div[data-type='codeBlock'] .token.prolog,[data-code-block-theme='funky'] div[data-type='codeBlock'] .token.doctype,[data-code-block-theme='funky'] div[data-type='codeBlock'] .token.cdata{color:#aaa}[data-code-block-theme='funky'] div[data-type='codeBlock'] .token.punctuation{color:#999}[data-code-block-theme='funky'] div[data-type='codeBlock'] .token.namespace{opacity:.7}[data-code-block-theme='funky'] div[data-type='codeBlock'] .token.property,[data-code-block-theme='funky'] div[data-type='codeBlock'] .token.tag,[data-code-block-theme='funky'] div[data-type='codeBlock'] .token.boolean,[data-code-block-theme='funky'] div[data-type='codeBlock'] .token.number,[data-code-block-theme='funky'] div[data-type='codeBlock'] .token.constant,[data-code-block-theme='funky'] div[data-type='codeBlock'] .token.symbol{color:#0cf}[data-code-block-theme='funky'] div[data-type='codeBlock'] .token.selector,[data-code-block-theme='funky'] div[data-type='codeBlock'] .token.attr-name,[data-code-block-theme='funky'] div[data-type='codeBlock'] .token.string,[data-code-block-theme='funky'] div[data-type='codeBlock'] .token.char,[data-code-block-theme='funky'] div[data-type='codeBlock'] .token.builtin{color:yellow}[data-code-block-theme='funky'] div[data-type='codeBlock'] .token.operator,[data-code-block-theme='funky'] div[data-type='codeBlock'] .token.entity,[data-code-block-theme='funky'] div[data-type='codeBlock'] .token.url,[data-code-block-theme='funky'] div[data-type='codeBlock'] .language-css .token.string,[data-code-block-theme='funky'] div[data-type='codeBlock'] .token.variable,[data-code-block-theme='funky'] div[data-type='codeBlock'] .token.inserted{color:yellowgreen}[data-code-block-theme='funky'] div[data-type='codeBlock'] .token.atrule,[data-code-block-theme='funky'] div[data-type='codeBlock'] .token.attr-value,[data-code-block-theme='funky'] div[data-type='codeBlock'] .token.keyword{color:deeppink}[data-code-block-theme='funky'] div[data-type='codeBlock'] .token.regex,[data-code-block-theme='funky'] div[data-type='codeBlock'] .token.important{color:orange}[data-code-block-theme='funky'] div[data-type='codeBlock'] .token.important,[data-code-block-theme='funky'] div[data-type='codeBlock'] .token.bold{font-weight:bold}[data-code-block-theme='funky'] div[data-type='codeBlock'] .token.italic{font-style:italic}[data-code-block-theme='funky'] div[data-type='codeBlock'] .token.entity{cursor:help}[data-code-block-theme='funky'] div[data-type='codeBlock'] .token.deleted{color:red}[data-code-block-theme='funky'] div[data-type='codeBlock'] pre.diff-highlight.diff-highlight>code .token.deleted:not(.prefix),[data-code-block-theme='funky'] div[data-type='codeBlock'] pre>code.diff-highlight.diff-highlight .token.deleted:not(.prefix){background-color:rgba(255,0,0,0.3);display:inline}[data-code-block-theme='funky'] div[data-type='codeBlock'] pre.diff-highlight.diff-highlight>code .token.inserted:not(.prefix),[data-code-block-theme='funky'] div[data-type='codeBlock'] pre>code.diff-highlight.diff-highlight .token.inserted:not(.prefix){background-color:rgba(0,255,128,0.3);display:inline}[data-code-block-theme='okaidia'] div[data-type='codeBlock'] code[class*="language-"],[data-code-block-theme='okaidia'] div[data-type='codeBlock'] pre[class*="language-"]{color:#f8f8f2;background:none;text-shadow:0 1px rgba(0,0,0,0.3);font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}[data-code-block-theme='okaidia'] div[data-type='codeBlock'] pre[class*="language-"]{padding:1em;margin:.5em 0;overflow:auto;border-radius:0.3em}[data-code-block-theme='okaidia'] div[data-type='codeBlock'] :not(pre)>code[class*="language-"],[data-code-block-theme='okaidia'] div[data-type='codeBlock'] pre[class*="language-"]{background:#272822}[data-code-block-theme='okaidia'] div[data-type='codeBlock'] :not(pre)>code[class*="language-"]{padding:.1em;border-radius:.3em;white-space:normal}[data-code-block-theme='okaidia'] div[data-type='codeBlock'] .token.comment,[data-code-block-theme='okaidia'] div[data-type='codeBlock'] .token.prolog,[data-code-block-theme='okaidia'] div[data-type='codeBlock'] .token.doctype,[data-code-block-theme='okaidia'] div[data-type='codeBlock'] .token.cdata{color:#8292a2}[data-code-block-theme='okaidia'] div[data-type='codeBlock'] .token.punctuation{color:#f8f8f2}[data-code-block-theme='okaidia'] div[data-type='codeBlock'] .token.namespace{opacity:.7}[data-code-block-theme='okaidia'] div[data-type='codeBlock'] .token.property,[data-code-block-theme='okaidia'] div[data-type='codeBlock'] .token.tag,[data-code-block-theme='okaidia'] div[data-type='codeBlock'] .token.constant,[data-code-block-theme='okaidia'] div[data-type='codeBlock'] .token.symbol,[data-code-block-theme='okaidia'] div[data-type='codeBlock'] .token.deleted{color:#f92672}[data-code-block-theme='okaidia'] div[data-type='codeBlock'] .token.boolean,[data-code-block-theme='okaidia'] div[data-type='codeBlock'] .token.number{color:#ae81ff}[data-code-block-theme='okaidia'] div[data-type='codeBlock'] .token.selector,[data-code-block-theme='okaidia'] div[data-type='codeBlock'] .token.attr-name,[data-code-block-theme='okaidia'] div[data-type='codeBlock'] .token.string,[data-code-block-theme='okaidia'] div[data-type='codeBlock'] .token.char,[data-code-block-theme='okaidia'] div[data-type='codeBlock'] .token.builtin,[data-code-block-theme='okaidia'] div[data-type='codeBlock'] .token.inserted{color:#a6e22e}[data-code-block-theme='okaidia'] div[data-type='codeBlock'] .token.operator,[data-code-block-theme='okaidia'] div[data-type='codeBlock'] .token.entity,[data-code-block-theme='okaidia'] div[data-type='codeBlock'] .token.url,[data-code-block-theme='okaidia'] div[data-type='codeBlock'] .language-css .token.string,[data-code-block-theme='okaidia'] div[data-type='codeBlock'] .style .token.string,[data-code-block-theme='okaidia'] div[data-type='codeBlock'] .token.variable{color:#f8f8f2}[data-code-block-theme='okaidia'] div[data-type='codeBlock'] .token.atrule,[data-code-block-theme='okaidia'] div[data-type='codeBlock'] .token.attr-value,[data-code-block-theme='okaidia'] div[data-type='codeBlock'] .token.function,[data-code-block-theme='okaidia'] div[data-type='codeBlock'] .token.class-name{color:#e6db74}[data-code-block-theme='okaidia'] div[data-type='codeBlock'] .token.keyword{color:#66d9ef}[data-code-block-theme='okaidia'] div[data-type='codeBlock'] .token.regex,[data-code-block-theme='okaidia'] div[data-type='codeBlock'] .token.important{color:#fd971f}[data-code-block-theme='okaidia'] div[data-type='codeBlock'] .token.important,[data-code-block-theme='okaidia'] div[data-type='codeBlock'] .token.bold{font-weight:bold}[data-code-block-theme='okaidia'] div[data-type='codeBlock'] .token.italic{font-style:italic}[data-code-block-theme='okaidia'] div[data-type='codeBlock'] .token.entity{cursor:help}[data-code-block-theme='twilight'] div[data-type='codeBlock'] code[class*="language-"],[data-code-block-theme='twilight'] div[data-type='codeBlock'] pre[class*="language-"]{color:white;background:none;font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;font-size:1em;text-align:left;text-shadow:0 -.1em .2em black;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}[data-code-block-theme='twilight'] div[data-type='codeBlock'] pre[class*="language-"],[data-code-block-theme='twilight'] div[data-type='codeBlock'] :not(pre)>code[class*="language-"]{background:#141414}[data-code-block-theme='twilight'] div[data-type='codeBlock'] pre[class*="language-"]{border-radius:.5em;border:0.3em solid #545454;box-shadow:1px 1px .5em black inset;margin:.5em 0;overflow:auto;padding:1em}[data-code-block-theme='twilight'] div[data-type='codeBlock'] pre[class*="language-"]::-moz-selection{background:#27292a}[data-code-block-theme='twilight'] div[data-type='codeBlock'] pre[class*="language-"]::selection{background:#27292a}[data-code-block-theme='twilight'] div[data-type='codeBlock'] pre[class*="language-"]::-moz-selection,[data-code-block-theme='twilight'] div[data-type='codeBlock'] pre[class*="language-"] ::-moz-selection,[data-code-block-theme='twilight'] div[data-type='codeBlock'] code[class*="language-"]::-moz-selection,[data-code-block-theme='twilight'] div[data-type='codeBlock'] code[class*="language-"] ::-moz-selection{text-shadow:none;background:rgba(237,237,237,0.15)}[data-code-block-theme='twilight'] div[data-type='codeBlock'] pre[class*="language-"]::selection,[data-code-block-theme='twilight'] div[data-type='codeBlock'] pre[class*="language-"] ::selection,[data-code-block-theme='twilight'] div[data-type='codeBlock'] code[class*="language-"]::selection,[data-code-block-theme='twilight'] div[data-type='codeBlock'] code[class*="language-"] ::selection{text-shadow:none;background:rgba(237,237,237,0.15)}[data-code-block-theme='twilight'] div[data-type='codeBlock'] :not(pre)>code[class*="language-"]{border-radius:.3em;border:0.13em solid #545454;box-shadow:1px 1px .3em -.1em black inset;padding:.15em .2em .05em;white-space:normal}[data-code-block-theme='twilight'] div[data-type='codeBlock'] .token.comment,[data-code-block-theme='twilight'] div[data-type='codeBlock'] .token.prolog,[data-code-block-theme='twilight'] div[data-type='codeBlock'] .token.doctype,[data-code-block-theme='twilight'] div[data-type='codeBlock'] .token.cdata{color:#787878}[data-code-block-theme='twilight'] div[data-type='codeBlock'] .token.punctuation{opacity:.7}[data-code-block-theme='twilight'] div[data-type='codeBlock'] .token.namespace{opacity:.7}[data-code-block-theme='twilight'] div[data-type='codeBlock'] .token.tag,[data-code-block-theme='twilight'] div[data-type='codeBlock'] .token.boolean,[data-code-block-theme='twilight'] div[data-type='codeBlock'] .token.number,[data-code-block-theme='twilight'] div[data-type='codeBlock'] .token.deleted{color:#cf694a}[data-code-block-theme='twilight'] div[data-type='codeBlock'] .token.keyword,[data-code-block-theme='twilight'] div[data-type='codeBlock'] .token.property,[data-code-block-theme='twilight'] div[data-type='codeBlock'] .token.selector,[data-code-block-theme='twilight'] div[data-type='codeBlock'] .token.constant,[data-code-block-theme='twilight'] div[data-type='codeBlock'] .token.symbol,[data-code-block-theme='twilight'] div[data-type='codeBlock'] .token.builtin{color:#f9ee9a}[data-code-block-theme='twilight'] div[data-type='codeBlock'] .token.attr-name,[data-code-block-theme='twilight'] div[data-type='codeBlock'] .token.attr-value,[data-code-block-theme='twilight'] div[data-type='codeBlock'] .token.string,[data-code-block-theme='twilight'] div[data-type='codeBlock'] .token.char,[data-code-block-theme='twilight'] div[data-type='codeBlock'] .token.operator,[data-code-block-theme='twilight'] div[data-type='codeBlock'] .token.entity,[data-code-block-theme='twilight'] div[data-type='codeBlock'] .token.url,[data-code-block-theme='twilight'] div[data-type='codeBlock'] .language-css .token.string,[data-code-block-theme='twilight'] div[data-type='codeBlock'] .style .token.string,[data-code-block-theme='twilight'] div[data-type='codeBlock'] .token.variable,[data-code-block-theme='twilight'] div[data-type='codeBlock'] .token.inserted{color:#919e6b}[data-code-block-theme='twilight'] div[data-type='codeBlock'] .token.atrule{color:#7386a5}[data-code-block-theme='twilight'] div[data-type='codeBlock'] .token.regex,[data-code-block-theme='twilight'] div[data-type='codeBlock'] .token.important{color:#e9c163}[data-code-block-theme='twilight'] div[data-type='codeBlock'] .token.important,[data-code-block-theme='twilight'] div[data-type='codeBlock'] .token.bold{font-weight:bold}[data-code-block-theme='twilight'] div[data-type='codeBlock'] .token.italic{font-style:italic}[data-code-block-theme='twilight'] div[data-type='codeBlock'] .token.entity{cursor:help}[data-code-block-theme='twilight'] div[data-type='codeBlock'] pre[data-line]{padding:1em 0 1em 3em;position:relative}[data-code-block-theme='twilight'] div[data-type='codeBlock'] .language-markup .token.tag,[data-code-block-theme='twilight'] div[data-type='codeBlock'] .language-markup .token.attr-name,[data-code-block-theme='twilight'] div[data-type='codeBlock'] .language-markup .token.punctuation{color:#ad895c}[data-code-block-theme='twilight'] div[data-type='codeBlock'] .token{position:relative;z-index:1}[data-code-block-theme='twilight'] div[data-type='codeBlock'] .line-highlight{background:rgba(84,84,84,0.25);background:linear-gradient(to right, rgba(84,84,84,0.1) 70%, rgba(84,84,84,0));border-bottom:1px dashed #545454;border-top:1px dashed #545454;left:0;line-height:inherit;margin-top:0.75em;padding:inherit 0;pointer-events:none;position:absolute;right:0;white-space:pre;z-index:0}[data-code-block-theme='twilight'] div[data-type='codeBlock'] .line-highlight:before,[data-code-block-theme='twilight'] div[data-type='codeBlock'] .line-highlight[data-end]:after{background-color:#8794a6;border-radius:999px;box-shadow:0 1px white;color:#f5f2f0;content:attr(data-start);font:bold 65%/1.5 sans-serif;left:.6em;min-width:1em;padding:0 .5em;position:absolute;text-align:center;text-shadow:none;top:.4em;vertical-align:.3em}[data-code-block-theme='twilight'] div[data-type='codeBlock'] .line-highlight[data-end]:after{bottom:.4em;content:attr(data-end);top:auto}[data-code-block-theme='coy'] div[data-type='codeBlock'] code[class*="language-"],[data-code-block-theme='coy'] div[data-type='codeBlock'] pre[class*="language-"]{color:black;background:none;font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}[data-code-block-theme='coy'] div[data-type='codeBlock'] pre[class*="language-"]{position:relative;margin:.5em 0;overflow-y:hidden;padding:0}[data-code-block-theme='coy'] div[data-type='codeBlock'] pre[class*="language-"]>code{position:relative;border-left:10px solid #358ccb;box-shadow:-1px 0px 0px 0px #358ccb, 0px 0px 0px 1px #dfdfdf;background-color:#fdfdfd;background-image:linear-gradient(transparent 50%, rgba(69,142,209,0.04) 50%);background-size:3em 3em;background-origin:content-box;background-attachment:local}[data-code-block-theme='coy'] div[data-type='codeBlock'] code[class*="language-"]{max-height:inherit;height:inherit;padding:0 1em;display:block}[data-code-block-theme='coy'] div[data-type='codeBlock'] :not(pre)>code[class*="language-"],[data-code-block-theme='coy'] div[data-type='codeBlock'] pre[class*="language-"]{background-color:#fdfdfd;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin-bottom:1em}[data-code-block-theme='coy'] div[data-type='codeBlock'] :not(pre)>code[class*="language-"]{position:relative;padding:.2em;border-radius:0.3em;color:#c92c2c;border:1px solid rgba(0,0,0,0.1);display:inline;white-space:normal}[data-code-block-theme='coy'] div[data-type='codeBlock'] pre[class*="language-"]:before,[data-code-block-theme='coy'] div[data-type='codeBlock'] pre[class*="language-"]:after{content:'';z-index:-2;display:block;position:absolute;bottom:0.75em;left:0.18em;width:40%;height:20%;max-height:13em;box-shadow:0px 13px 8px #979797;-webkit-transform:rotate(-2deg);-moz-transform:rotate(-2deg);-ms-transform:rotate(-2deg);-o-transform:rotate(-2deg);transform:rotate(-2deg)}[data-code-block-theme='coy'] div[data-type='codeBlock'] pre[class*="language-"]:after{right:0.75em;left:auto;-webkit-transform:rotate(2deg);-moz-transform:rotate(2deg);-ms-transform:rotate(2deg);-o-transform:rotate(2deg);transform:rotate(2deg)}[data-code-block-theme='coy'] div[data-type='codeBlock'] .token.comment,[data-code-block-theme='coy'] div[data-type='codeBlock'] .token.block-comment,[data-code-block-theme='coy'] div[data-type='codeBlock'] .token.prolog,[data-code-block-theme='coy'] div[data-type='codeBlock'] .token.doctype,[data-code-block-theme='coy'] div[data-type='codeBlock'] .token.cdata{color:#7D8B99}[data-code-block-theme='coy'] div[data-type='codeBlock'] .token.punctuation{color:#5F6364}[data-code-block-theme='coy'] div[data-type='codeBlock'] .token.property,[data-code-block-theme='coy'] div[data-type='codeBlock'] .token.tag,[data-code-block-theme='coy'] div[data-type='codeBlock'] .token.boolean,[data-code-block-theme='coy'] div[data-type='codeBlock'] .token.number,[data-code-block-theme='coy'] div[data-type='codeBlock'] .token.function-name,[data-code-block-theme='coy'] div[data-type='codeBlock'] .token.constant,[data-code-block-theme='coy'] div[data-type='codeBlock'] .token.symbol,[data-code-block-theme='coy'] div[data-type='codeBlock'] .token.deleted{color:#c92c2c}[data-code-block-theme='coy'] div[data-type='codeBlock'] .token.selector,[data-code-block-theme='coy'] div[data-type='codeBlock'] .token.attr-name,[data-code-block-theme='coy'] div[data-type='codeBlock'] .token.string,[data-code-block-theme='coy'] div[data-type='codeBlock'] .token.char,[data-code-block-theme='coy'] div[data-type='codeBlock'] .token.function,[data-code-block-theme='coy'] div[data-type='codeBlock'] .token.builtin,[data-code-block-theme='coy'] div[data-type='codeBlock'] .token.inserted{color:#2f9c0a}[data-code-block-theme='coy'] div[data-type='codeBlock'] .token.operator,[data-code-block-theme='coy'] div[data-type='codeBlock'] .token.entity,[data-code-block-theme='coy'] div[data-type='codeBlock'] .token.url,[data-code-block-theme='coy'] div[data-type='codeBlock'] .token.variable{color:#a67f59;background:rgba(255,255,255,0.5)}[data-code-block-theme='coy'] div[data-type='codeBlock'] .token.atrule,[data-code-block-theme='coy'] div[data-type='codeBlock'] .token.attr-value,[data-code-block-theme='coy'] div[data-type='codeBlock'] .token.keyword,[data-code-block-theme='coy'] div[data-type='codeBlock'] .token.class-name{color:#1990b8}[data-code-block-theme='coy'] div[data-type='codeBlock'] .token.regex,[data-code-block-theme='coy'] div[data-type='codeBlock'] .token.important{color:#e90}[data-code-block-theme='coy'] div[data-type='codeBlock'] .language-css .token.string,[data-code-block-theme='coy'] div[data-type='codeBlock'] .style .token.string{color:#a67f59;background:rgba(255,255,255,0.5)}[data-code-block-theme='coy'] div[data-type='codeBlock'] .token.important{font-weight:normal}[data-code-block-theme='coy'] div[data-type='codeBlock'] .token.bold{font-weight:bold}[data-code-block-theme='coy'] div[data-type='codeBlock'] .token.italic{font-style:italic}[data-code-block-theme='coy'] div[data-type='codeBlock'] .token.entity{cursor:help}[data-code-block-theme='coy'] div[data-type='codeBlock'] .token.namespace{opacity:.7}@media screen and (max-width: 767px){[data-code-block-theme='coy'] div[data-type='codeBlock'] pre[class*="language-"]:before,[data-code-block-theme='coy'] div[data-type='codeBlock'] pre[class*="language-"]:after{bottom:14px;box-shadow:none}}[data-code-block-theme='coy'] div[data-type='codeBlock'] pre[class*="language-"].line-numbers.line-numbers{padding-left:0}[data-code-block-theme='coy'] div[data-type='codeBlock'] pre[class*="language-"].line-numbers.line-numbers code{padding-left:3.8em}[data-code-block-theme='coy'] div[data-type='codeBlock'] pre[class*="language-"].line-numbers.line-numbers .line-numbers-rows{left:0}[data-code-block-theme='coy'] div[data-type='codeBlock'] pre[class*="language-"][data-line]{padding-top:0;padding-bottom:0;padding-left:0}[data-code-block-theme='coy'] div[data-type='codeBlock'] pre[data-line] code{position:relative;padding-left:4em}[data-code-block-theme='coy'] div[data-type='codeBlock'] pre .line-highlight{margin-top:0}[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] code[class*="language-"],[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] pre[class*="language-"]{color:#657b83;font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] pre[class*="language-"]::-moz-selection,[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] pre[class*="language-"] ::-moz-selection,[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] code[class*="language-"]::-moz-selection,[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] code[class*="language-"] ::-moz-selection{background:#073642}[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] pre[class*="language-"]::selection,[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] pre[class*="language-"] ::selection,[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] code[class*="language-"]::selection,[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] code[class*="language-"] ::selection{background:#073642}[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] pre[class*="language-"]{padding:1em;margin:.5em 0;overflow:auto;border-radius:0.3em}[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] :not(pre)>code[class*="language-"],[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] pre[class*="language-"]{background-color:#fdf6e3}[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] :not(pre)>code[class*="language-"]{padding:.1em;border-radius:.3em}[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] .token.comment,[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] .token.prolog,[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] .token.doctype,[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] .token.cdata{color:#93a1a1}[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] .token.punctuation{color:#586e75}[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] .token.namespace{opacity:.7}[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] .token.property,[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] .token.tag,[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] .token.boolean,[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] .token.number,[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] .token.constant,[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] .token.symbol,[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] .token.deleted{color:#268bd2}[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] .token.selector,[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] .token.attr-name,[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] .token.string,[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] .token.char,[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] .token.builtin,[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] .token.url,[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] .token.inserted{color:#2aa198}[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] .token.entity{color:#657b83;background:#eee8d5}[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] .token.atrule,[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] .token.attr-value,[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] .token.keyword{color:#859900}[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] .token.function,[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] .token.class-name{color:#b58900}[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] .token.regex,[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] .token.important,[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] .token.variable{color:#cb4b16}[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] .token.important,[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] .token.bold{font-weight:bold}[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] .token.italic{font-style:italic}[data-code-block-theme='solarized-light'] div[data-type='codeBlock'] .token.entity{cursor:help}.cherry .doing-resize-img{-moz-user-select:none;-webkit-user-select:none;user-select:none}.cherry .cherry-previewer img{transition:all 0.1s}.cherry .cherry-previewer-img-size-hander{position:absolute;box-shadow:0 1px 4px 0 rgba(20,81,154,0.5);border:1px solid #3582fb;box-sizing:content-box;pointer-events:none}.cherry .cherry-previewer-img-size-hander .cherry-previewer-img-size-hander__points{position:absolute;height:10px;width:10px;margin-top:-7px;margin-left:-7px;border-radius:9px;background:#3582fb;border:2px solid #fff;box-sizing:content-box;box-shadow:0px 2px 2px 0px rgba(20,81,154,0.5);pointer-events:all}.cherry .cherry-previewer-img-size-hander .cherry-previewer-img-size-hander__background{background-repeat:no-repeat;background-size:100% 100%;opacity:0.5;width:100%;height:100%}.cherry .cherry-previewer-img-size-hander .cherry-previewer-img-size-hander__points-leftTop{cursor:nw-resize}.cherry .cherry-previewer-img-size-hander .cherry-previewer-img-size-hander__points-rightTop{cursor:sw-resize}.cherry .cherry-previewer-img-size-hander .cherry-previewer-img-size-hander__points-leftBottom{cursor:sw-resize}.cherry .cherry-previewer-img-size-hander .cherry-previewer-img-size-hander__points-rightBottom{cursor:nw-resize}.cherry .cherry-previewer-img-size-hander .cherry-previewer-img-size-hander__points-middleTop{cursor:n-resize}.cherry .cherry-previewer-img-size-hander .cherry-previewer-img-size-hander__points-middleBottom{cursor:n-resize}.cherry .cherry-previewer-img-size-hander .cherry-previewer-img-size-hander__points-leftMiddle{cursor:e-resize}.cherry .cherry-previewer-img-size-hander .cherry-previewer-img-size-hander__points-rightMiddle{cursor:e-resize}.cherry .cherry-previewer-table-content-hander .cherry-previewer-table-content-hander__input{position:absolute}.cherry .cherry-previewer-table-content-hander .cherry-previewer-table-content-hander__input textarea{width:100%;height:100%;border:0;box-sizing:border-box;resize:none;outline:1px solid #3582fb;word-break:break-all}@media print{img,figure,pre,table{page-break-inside:avoid}.cherry-previewer{width:100% !important;max-height:none;border-left:none !important}.cherry-toolbar,.cherry-sidebar,.cherry-editor,.cherry-drag{display:none !important}}.cherry{display:flex;flex-flow:row wrap;align-items:stretch;align-content:flex-start;height:100%;min-height:100px;position:relative}.cherry .cherry-editor,.cherry .cherry-previewer{max-height:calc(100% - 48px);min-height:calc(100% - 48px)}.cherry .CodeMirror{height:100%}.cherry.cherry--no-toolbar .cherry-toolbar,.cherry.cherry--no-toolbar .cherry-sidebar{height:0;display:none}.cherry.cherry--no-toolbar .cherry-editor,.cherry.cherry--no-toolbar .cherry-previewer{max-height:100%;min-height:100%}.cherry{font-family:"Helvetica Neue",Arial,"Hiragino Sans GB","STHeiti","Microsoft YaHei","WenQuanYi Micro Hei",sans-serif;font-size:16px;line-height:27px;color:#3f4a56;background:#f8fafb;box-shadow:0 0 10px rgba(128,145,165,0.2)}.cherry .ch-icon{vertical-align:middle}.cherry .clearfix{zoom:1}.cherry .clearfix:after{content:'.';display:block;height:0;clear:both;visibility:hidden;overflow:hidden;font-size:0}.cherry.fullscreen{position:fixed;top:0;left:0;right:0;bottom:0;z-index:1000}.cherry .no-select{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.cherry .cherry-insert-table-menu{display:block;position:absolute;top:40px;left:40px;border-collapse:separate;box-shadow:0 0 10px rgba(128,145,165,0.2);padding:4px;border-radius:3px;width:auto;height:auto}.cherry .cherry-insert-table-menu-item{padding:7px;border:1px solid #dfe6ee}.cherry .cherry-insert-table-menu-item.active{background-color:#ebf3ff}.cherry[data-toolbar-theme='dark'] .cherry-insert-table-menu-item{border-color:rgba(255,255,255,0.2)}.cherry[data-toolbar-theme='dark'] .cherry-insert-table-menu-item.active{background-color:#d7e6fe}.cherry-dropdown{position:absolute;width:130px;min-height:40px;background:#fff;box-shadow:0 5px 15px -5px rgba(0,0,0,0.5);margin-left:-60px;z-index:1000}.cherry-dropdown-item{width:100%;padding:0 15px;text-align:left;display:inline-block;height:36px;line-height:36px;font-size:14px;font-style:normal;cursor:pointer;box-sizing:border-box}.cherry-dropdown-item:hover{background:#ebf3ff;color:#5d9bfc}.cherry-dropdown-item .ch-icon{margin-right:10px}[data-toolbar-theme='dark'] .cherry-dropdown{background:#20304b}[data-toolbar-theme='dark'] .cherry-dropdown .cherry-dropdown-item{background:rgba(0,0,0,0);color:#d7e6fe}[data-toolbar-theme='dark'] .cherry-dropdown .cherry-dropdown-item:hover{background:rgba(255,255,255,0.1);color:#fff}.cherry-toolbar{position:relative;display:flex;align-items:center;padding:0 20px;height:48px;font-size:14px;line-height:2.8;flex-basis:100%;box-sizing:border-box;z-index:1;user-select:none;box-shadow:0 0 10px rgba(128,145,165,0.2);background:#fff;overflow:hidden}[data-toolbar-theme='dark'] .cherry-toolbar{background:#20304b;box-shadow:0 0 10px rgba(128,145,165,0.2)}[data-toolbar-theme='dark'] .cherry-toolbar .cherry-toolbar-button{color:#d7e6fe;background:rgba(0,0,0,0)}[data-toolbar-theme='dark'] .cherry-toolbar .cherry-toolbar-button:hover{color:#fff;background:rgba(255,255,255,0.1)}.cherry-toolbar.preview-only .cherry-toolbar-button{display:none}.cherry-toolbar.preview-only .cherry-toolbar-switchPreview{display:inline}.cherry-toolbar-button{float:left;padding:0 12px;margin:4px 0;height:38px;color:#3f4a56;background:transparent;border:1px solid transparent;-webkit-transition:background-color ease-in-out 0.15s, color ease-in-out 0.15s, border-color ease-in-out 0.15s;transition:background-color ease-in-out 0.15s, color ease-in-out 0.15s, border-color ease-in-out 0.15s;cursor:pointer;font-style:normal}.cherry-toolbar-button:hover{color:#5d9bfc;background:#ebf3ff}.cherry-toolbar-button.cherry-toolbar-split{font-size:0;height:50%;padding:0;margin-left:4px;margin-right:4px;border:none;border-left:1px solid #dfe6ee;pointer-events:none;overflow:hidden;opacity:0.5}.cherry-toolbar-button.disabled{color:#ccc}.cherry-sidebar{min-height:200px;width:40px;position:absolute;top:48px;right:7px;z-index:999}.cherry-sidebar .cherry-toolbar-button{height:30px;padding:3px 12px 0 12px}.cherry-sidebar .cherry-toolbar-button:hover{background:transparent}.cherry-sidebar .cherry-toolbar-button .icon-loading.loading{display:inline-block;width:8px;height:8px}.cherry-sidebar .cherry-toolbar-button .icon-loading.loading:after{content:" ";display:block;width:8px;height:8px;margin-left:2px;margin-top:-2px;border-radius:50%;border:2px solid #000;border-color:#000 transparent #000 transparent;animation:loading 1.2s linear infinite}@keyframes loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.cherry-bubble{position:absolute;top:100px;left:200px;background-color:#fff;box-shadow:0 2px 15px -5px rgba(0,0,0,0.5);height:35px;min-width:50px;border-radius:3px;border:1px solid #dfe6ee;z-index:999;display:none}.cherry-bubble .cherry-bubble-top,.cherry-bubble .cherry-bubble-bottom{width:0;height:0;border-left:8px solid rgba(0,0,0,0);border-right:8px solid rgba(0,0,0,0);position:relative;left:50%;margin-left:-8px}.cherry-bubble .cherry-bubble-top{border-bottom:8px solid #fff;top:-8px}.cherry-bubble .cherry-bubble-bottom{border-top:8px solid #fff;bottom:-35px}.cherry-bubble .cherry-toolbar-button{line-height:35px;height:100%;overflow:hidden;vertical-align:middle;display:inline-block;padding:0 15px;margin-top:-1px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.cherry-bubble .cherry-toolbar-button:hover{border-color:#dfe6ee;background-color:rgba(89,128,166,0.05)}.cherry-bubble .cherry-toolbar-button.cherry-toolbar-split{border-left:1px solid #ddd;width:0;padding:0;overflow:hidden}[data-toolbar-theme='dark'] .cherry-bubble{border-color:#20304b;background:#20304b}[data-toolbar-theme='dark'] .cherry-bubble .cherry-toolbar-button{color:#d7e6fe;background:rgba(0,0,0,0)}[data-toolbar-theme='dark'] .cherry-bubble .cherry-toolbar-button:hover{color:#fff;background:rgba(255,255,255,0.1)}[data-toolbar-theme='dark'] .cherry-bubble .cherry-bubble-top{border-bottom:8px solid #20304b}[data-toolbar-theme='dark'] .cherry-bubble .cherry-bubble-bottom{border-top:8px solid #20304b}[data-toolbar-theme='dark'] .cherry-bubble .cherry-toolbar-button:hover{border-color:#20304b}.cherry-floatmenu{z-index:100;display:none;position:absolute;left:30px;margin-left:60px;height:27px;line-height:27px;border-radius:3px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.cherry-floatmenu .cherry-toolbar-button{float:left;padding:0 9px;margin:0;height:27px;line-height:27px;font-size:14px;color:#3f4a56;overflow:hidden;vertical-align:middle;text-align:center;border:0;cursor:pointer;font-style:normal}.cherry-floatmenu .cherry-toolbar-button.cherry-toolbar-split{border-left:1px solid #dfe6ee;width:0;padding:0;overflow:hidden;height:25px}.cherry-floatmenu .cherry-toolbar-button .ch-icon{color:#aaa;font-size:12px}.cherry-floatmenu .cherry-toolbar-button:hover{background:rgba(0,0,0,0.05)}.cherry-floatmenu .cherry-toolbar-button:hover .ch-icon{color:#3f4a56}.cherry-editor{position:relative;padding-top:5px;padding-right:5px;width:50%;box-sizing:border-box;overflow:hidden}.cherry-editor.cherry-editor--full{width:100%;padding-right:0}.cherry-editor.cherry-editor--hidden{display:none}.cherry-editor .CodeMirror{font-family:"Helvetica Neue",Arial,"Hiragino Sans GB","STHeiti","Microsoft YaHei","WenQuanYi Micro Hei",sans-serif;background:#f8fafb;color:#3f4a56}.cherry-editor .CodeMirror textarea{font-size:27px}.cherry-editor .CodeMirror-lines{padding:15px 34px}.cherry-editor .cm-s-default .cm-header{color:#3f4a56}.cherry-editor .cm-s-default .cm-string{color:#3f4a56}.cherry-editor .cm-s-default .cm-comment{color:#3582fb;font-family:"Menlo","Liberation Mono","Consolas","DejaVu Sans Mono","Ubuntu Mono","Courier New","andale mono","lucida console",monospace;font-size:0.9em}.cherry-editor .cm-s-default .cm-whitespace,.cherry-editor .cm-tab{font-family:"Menlo","Liberation Mono","Consolas","DejaVu Sans Mono","Ubuntu Mono","Courier New","andale mono","lucida console",monospace;font-size:0.9em}.cherry-editor .cm-s-default .cm-quote{color:#3582fb}.cherry-editor .cm-s-default .cm-link{color:#3582fb}.cherry-editor .cm-s-default .cm-url{background:#d7e6fe;font-family:"Menlo","Liberation Mono","Consolas","DejaVu Sans Mono","Ubuntu Mono","Courier New","andale mono","lucida console",monospace;font-size:0.9em}.cherry-editor .cm-s-default .cm-variable-2{color:#3f4a56}.cherry-editor .cm-s-default .cm-variable-3{color:#3f4a56}.cherry-editor .cm-s-default .cm-keyword{color:#3f4a56}.cherry-drag{width:15px;cursor:ew-resize;position:absolute;z-index:1000;background:transparent}.cherry-drag.cherry-drag--show{width:5px;display:block;background:#dfe6ee}.cherry-drag.cherry-drag--hidden{display:none}.cherry-editor-mask{z-index:999;position:absolute;display:none;background:rgba(0,0,0,0.2)}.cherry-editor-mask.cherry-editor-mask--show{display:block}.cherry-previewer-mask{z-index:999;position:absolute;display:none;background:rgba(0,0,0,0.4)}.cherry-previewer-mask.cherry-previewer-mask--show{display:block}.cherry-previewer{padding:20px 34px;border-left:2px solid #ebedee;width:50%;box-sizing:border-box;background-color:#f8fafb;min-height:auto;overflow-y:auto}.cherry-previewer .cherry-mobile-previewer-content{width:375px;height:100%;margin:0 auto;padding:25px 30px;overflow-y:scroll;box-shadow:0 0 60px rgba(0,0,0,0.1);box-sizing:border-box}.cherry-previewer.cherry-previewer--hidden{width:0;display:none}.cherry-previewer.cherry-previewer--full{width:100%}.cherry-previewer .cherry-list__upper-roman{list-style:upper-roman}.cherry-previewer .cherry-list__lower-greek{list-style:lower-greek}.cherry-previewer .cherry-list__cjk-ideographic{list-style:cjk-ideographic}.cherry-previewer .cherry-list__circle{list-style:circle}.cherry-previewer .cherry-list__square{list-style:square}.cherry-color-wrap{display:none;position:fixed;width:auto;padding:5px 10px;z-index:1000;background:#fff;box-shadow:0 0 10px rgba(128,145,165,0.2)}.cherry-color-wrap h3{font-size:12px;margin:0px}.cherry-color-wrap .cherry-color-text{float:left;width:128px;margin:0 8px 0 5px}.cherry-color-wrap .cherry-color-bg{float:left;width:128px;margin-right:5px}.cherry-color-wrap .cherry-color-item{float:left;width:14px;height:14px;border:1px solid #fff;cursor:pointer}.cherry-color-wrap .cherry-color-item:hover{border:1px solid #000}.cherry-switch-paste{margin-left:-112px;left:50%;box-sizing:content-box}.cherry-switch-paste .switch-btn--bg{transition:all 0.3s;position:absolute;width:50%;height:100%;box-sizing:border-box;z-index:-1;left:-1px;opacity:0.3;background-color:#5d9bfc}.cherry-switch-paste .cherry-toolbar-button{width:80px;text-align:center}.cherry-switch-paste .cherry-toolbar-button:hover{border-color:transparent}.cherry-switch-paste[data-type='text'] .cherry-text-btn{color:#3f4a56}.cherry-switch-paste[data-type='text'] .cherry-md-btn{color:#5d9bfc}.cherry-switch-paste[data-type='md'] .cherry-md-btn{color:#3f4a56}.cherry-switch-paste[data-type='md'] .cherry-text-btn{color:#5d9bfc}.cherry-switch-paste[data-type='md'] .switch-btn--bg{left:50%}[data-toolbar-theme='dark'] .cherry-switch-paste .switch-btn--bg{background-color:#fff}[data-toolbar-theme='dark'] .cherry-switch-paste[data-type='text'] .cherry-text-btn{color:#d7e6fe}[data-toolbar-theme='dark'] .cherry-switch-paste[data-type='text'] .cherry-md-btn{color:#fff}[data-toolbar-theme='dark'] .cherry-switch-paste[data-type='md'] .cherry-md-btn{color:#d7e6fe}[data-toolbar-theme='dark'] .cherry-switch-paste[data-type='md'] .cherry-text-btn{color:#fff}[data-toolbar-theme='dark'] .cherry-switch-paste[data-type='md'] .switch-btn--bg{left:50%}.Cherry-Math svg{max-width:100%}.cherry-suggester-panel{display:none;position:absolute;left:0;top:0;background:#fff;border:1px solid #ccc;border-radius:2px;max-height:200px;box-shadow:0 2px 8px 1px #00000033}.cherry-suggester-panel .cherry-suggester-panel__item{border:none;white-space:nowrap;min-width:50px;padding:5px 13px;color:#333;display:block;cursor:pointer}.cherry-suggester-panel .cherry-suggester-panel__item.cherry-suggester-panel__item--selected{background-color:#f2f2f5;text-decoration:none;color:#eb7350}.cherry-suggestion{background-color:#ebf3ff;color:#3582fb;padding:1px 4px;border-radius:3px;cursor:pointer}.CodeMirror{font-family:monospace;height:300px;color:black;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:white}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:black}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0 !important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20,255,20,0.5);-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@-moz-keyframes blink{0%{}50%{background-color:transparent}100%{}}@-webkit-keyframes blink{0%{}50%{background-color:transparent}100%{}}@keyframes blink{0%{}50%{background-color:transparent}100%{}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:bold}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta{color:#555}.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error{color:#f00}.cm-invalidchar{color:#f00}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,0.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll !important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none !important;border:none !important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:0.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,0.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:''}span.CodeMirror-selectedtext{background:none} +.CodeMirror{font-family:monospace;height:300px;color:black;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:white}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:black}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0 !important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20, 255, 20, 0.5);-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:bold}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:blue}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta{color:#555}.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error{color:red}.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255, 150, 0, 0.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll !important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none !important;border:none !important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255, 255, 0, 0.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.cherry *::-webkit-scrollbar{height:7px;width:7px;background:rgba(0,0,0,0)}.cherry *::-webkit-scrollbar:hover{background:rgba(128,128,128,.1)}.cherry *::-webkit-scrollbar-thumb{background:#d3d7da;-webkit-border-radius:6px}.cherry *::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.6)}.cherry *::-webkit-scrollbar-corner{background:rgba(0,0,0,0)}@font-face{font-family:"ch-icon";src:url("./fonts/ch-icon.eot");src:url("./fonts/ch-icon.eot?#iefix") format("eot"),url("./fonts/ch-icon.woff2") format("woff2"),url("./fonts/ch-icon.woff") format("woff"),url("./fonts/ch-icon.ttf") format("truetype"),url("./fonts/ch-icon.svg#ch-icon") format("svg");font-weight:normal;font-style:normal}.ch-icon:before{display:inline-block;font-family:"ch-icon";font-style:normal;font-weight:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ch-icon-align:before{content:""}.ch-icon-list:before{content:""}.ch-icon-check:before{content:""}.ch-icon-square:before{content:""}.ch-icon-bold:before{content:""}.ch-icon-code:before{content:""}.ch-icon-color:before{content:""}.ch-icon-header:before{content:""}.ch-icon-image:before{content:""}.ch-icon-italic:before{content:""}.ch-icon-link:before{content:""}.ch-icon-ol:before{content:""}.ch-icon-size:before{content:""}.ch-icon-strike:before{content:""}.ch-icon-table:before{content:""}.ch-icon-ul:before{content:""}.ch-icon-underline:before{content:""}.ch-icon-word:before{content:""}.ch-icon-blockquote:before{content:""}.ch-icon-font:before{content:""}.ch-icon-insertClass:before{content:""}.ch-icon-insertFlow:before{content:""}.ch-icon-insertFormula:before{content:""}.ch-icon-insertGantt:before{content:""}.ch-icon-insertGraph:before{content:""}.ch-icon-insertPie:before{content:""}.ch-icon-insertSeq:before{content:""}.ch-icon-insertState:before{content:""}.ch-icon-line:before{content:""}.ch-icon-preview:before{content:""}.ch-icon-previewClose:before{content:""}.ch-icon-toc:before{content:""}.ch-icon-sub:before{content:""}.ch-icon-sup:before{content:""}.ch-icon-h1:before{content:""}.ch-icon-h2:before{content:""}.ch-icon-h3:before{content:""}.ch-icon-h4:before{content:""}.ch-icon-h5:before{content:""}.ch-icon-h6:before{content:""}.ch-icon-video:before{content:""}.ch-icon-insert:before{content:""}.ch-icon-little_table:before{content:""}.ch-icon-pdf:before{content:""}.ch-icon-checklist:before{content:""}.ch-icon-close:before{content:""}.ch-icon-fullscreen:before{content:""}.ch-icon-minscreen:before{content:""}.ch-icon-insertChart:before{content:""}.ch-icon-question:before{content:""}.ch-icon-settings:before{content:""}.ch-icon-ok:before{content:""}.ch-icon-br:before{content:""}.ch-icon-normal:before{content:""}.ch-icon-undo:before{content:""}.ch-icon-redo:before{content:""}.ch-icon-copy:before{content:""}.ch-icon-phone:before{content:""}.ch-icon-cherry-table-delete:before{content:""}.ch-icon-cherry-table-insert-bottom:before{content:""}.ch-icon-cherry-table-insert-left:before{content:""}.ch-icon-cherry-table-insert-right:before{content:""}.ch-icon-cherry-table-insert-top:before{content:""}.ch-icon-sort-s:before{content:""}.ch-icon-pinyin:before{content:""}.ch-icon-create:before{content:""}.ch-icon-download:before{content:""}.ch-icon-edit:before{content:""}.ch-icon-export:before{content:""}.ch-icon-folder-open:before{content:""}.ch-icon-folder:before{content:""}.ch-icon-help:before{content:""}.ch-icon-pen-fill:before{content:""}.ch-icon-pen:before{content:""}.ch-icon-tips:before{content:""}.ch-icon-warn:before{content:""}.ch-icon-mistake:before{content:""}.ch-icon-success:before{content:""}.ch-icon-danger:before{content:""}.ch-icon-info:before{content:""}.ch-icon-primary:before{content:""}.ch-icon-warning:before{content:""}.ch-icon-justify:before{content:""}.ch-icon-justifyCenter:before{content:""}.ch-icon-justifyLeft:before{content:""}.ch-icon-justifyRight:before{content:""}.ch-icon-chevronsLeft:before{content:""}.ch-icon-chevronsRight:before{content:""}.ch-icon-trendingUp:before{content:""}.ch-icon-codeBlock:before{content:""}.ch-icon-expand:before{content:""}.ch-icon-unExpand:before{content:""}.ch-icon-swap-vert:before{content:""}.ch-icon-swap:before{content:""}.ch-icon-keyboard:before{content:""}.ch-icon-command:before{content:""}.ch-icon-search:before{content:""}.ch-icon-alignCenter:before{content:""}.ch-icon-alignJustify:before{content:""}.ch-icon-alignLeft:before{content:""}.ch-icon-alignRight:before{content:""}.cherry-markdown{word-break:break-all}.cherry-markdown h1,.cherry-markdown h2,.cherry-markdown h3,.cherry-markdown h4,.cherry-markdown h5,.cherry-markdown h6,.cherry-markdown .h1,.cherry-markdown .h2,.cherry-markdown .h3,.cherry-markdown .h4,.cherry-markdown .h5,.cherry-markdown .h6{font-family:inherit;font-weight:700;line-height:1.1;color:inherit}.cherry-markdown h1 small,.cherry-markdown h2 small,.cherry-markdown h3 small,.cherry-markdown h4 small,.cherry-markdown h5 small,.cherry-markdown h6 small,.cherry-markdown .h1 small,.cherry-markdown .h2 small,.cherry-markdown .h3 small,.cherry-markdown .h4 small,.cherry-markdown .h5 small,.cherry-markdown .h6 small,.cherry-markdown h1 .small,.cherry-markdown h2 .small,.cherry-markdown h3 .small,.cherry-markdown h4 .small,.cherry-markdown h5 .small,.cherry-markdown h6 .small,.cherry-markdown .h1 .small,.cherry-markdown .h2 .small,.cherry-markdown .h3 .small,.cherry-markdown .h4 .small,.cherry-markdown .h5 .small,.cherry-markdown .h6 .small{font-weight:normal;line-height:1;color:#999}.cherry-markdown h1,.cherry-markdown h2,.cherry-markdown h3{margin-top:30px;margin-bottom:16px}.cherry-markdown h1 small,.cherry-markdown h2 small,.cherry-markdown h3 small,.cherry-markdown h1 .small,.cherry-markdown h2 .small,.cherry-markdown h3 .small{font-size:65%}.cherry-markdown h4,.cherry-markdown h5,.cherry-markdown h6{margin-top:12px;margin-bottom:12px}.cherry-markdown h4 small,.cherry-markdown h5 small,.cherry-markdown h6 small,.cherry-markdown h4 .small,.cherry-markdown h5 .small,.cherry-markdown h6 .small{font-size:75%}.cherry-markdown h1,.cherry-markdown .h1{font-size:2em}.cherry-markdown h2,.cherry-markdown .h2{font-size:1.5em}.cherry-markdown h3,.cherry-markdown .h3{font-size:1.25em}.cherry-markdown h4,.cherry-markdown .h4{font-size:1em}.cherry-markdown h5,.cherry-markdown .h5{font-size:.875em}.cherry-markdown h6,.cherry-markdown .h6{font-size:.85em}.cherry-markdown b,.cherry-markdown strong{font-weight:bold}.cherry-markdown ul,.cherry-markdown ol{padding-left:24px;margin-bottom:16px}.cherry-markdown ul ul,.cherry-markdown ul ol,.cherry-markdown ol ul,.cherry-markdown ol ol{margin-bottom:0}.cherry-markdown ul li,.cherry-markdown ol li{list-style:inherit}.cherry-markdown ul li p,.cherry-markdown ol li p{margin:0}.cherry-markdown div ul,.cherry-markdown div ol{margin-bottom:0}.cherry-markdown hr{height:0;border:0;border-top:1px solid #dfe6ee;margin:16px 0;box-sizing:content-box;overflow:visible}.cherry-markdown kbd{border:1px solid #dfe6ee;border-radius:4px;padding:1px 2px;box-sizing:border-box;box-shadow:inset 0px -1px #dfe6ee;font-size:.85rem}.cherry-markdown table{border-collapse:collapse}.cherry-markdown table th,.cherry-markdown table td{border:1px solid #dfe6ee;padding:.2em .4em;min-width:100px}.cherry-markdown table th{background-color:#eee}.cherry-markdown .link-quote{color:#3582fb}.cherry-markdown a{color:#3582fb;position:relative;text-decoration:none}.cherry-markdown a[target=_blank]{padding:0 2px}.cherry-markdown a[target=_blank]::after{content:"";font-size:12px;font-family:"ch-icon";margin:0 2px}.cherry-markdown a:hover{color:#056bad}.cherry-markdown em{font-style:italic}.cherry-markdown sup{vertical-align:super}.cherry-markdown sub{vertical-align:sub}.cherry-markdown figure{overflow-x:auto}.cherry-markdown p,.cherry-markdown pre,.cherry-markdown blockquote,.cherry-markdown table{margin:0 0 16px}.cherry-markdown blockquote{color:#6d6e6f;padding:10px 15px;border-left:10px solid #d6dbdf;background:rgba(102,128,153,.05)}.cherry-markdown blockquote p,.cherry-markdown blockquote blockquote,.cherry-markdown blockquote table,.cherry-markdown blockquote pre,.cherry-markdown blockquote ul,.cherry-markdown blockquote ol{margin:0}.cherry-markdown pre{padding:16px;overflow:auto;font-size:85%;line-height:1.45;background-color:#f6f8fa;border-radius:6px}.cherry-markdown .prettyprint{min-width:500px;display:inline-block;background:#00212b;font-family:Menlo,"Bitstream Vera Sans Mono","DejaVu Sans Mono",Monaco,Consolas,monospace;border:0 !important}.cherry-markdown .pln{color:#dfe6ee}.cherry-markdown .str{color:#ffaf21}.cherry-markdown .kwd{color:#f85353}.cherry-markdown ol.linenums{margin-top:0;margin-bottom:0;color:#969896}.cherry-markdown li.L0,.cherry-markdown li.L1,.cherry-markdown li.L2,.cherry-markdown li.L3,.cherry-markdown li.L4,.cherry-markdown li.L5,.cherry-markdown li.L6,.cherry-markdown li.L7,.cherry-markdown li.L8,.cherry-markdown li.L9{padding-left:1em;background-color:#00212b;list-style-type:decimal}@media screen{.cherry-markdown .cherry-markdown .com{color:#969896}.cherry-markdown .cherry-markdown .typ{color:#81a2be}.cherry-markdown .cherry-markdown .lit{color:#de935f}.cherry-markdown .cherry-markdown .pun{color:#c5c8c6}.cherry-markdown .cherry-markdown .opn{color:#c5c8c6}.cherry-markdown .cherry-markdown .clo{color:#c5c8c6}.cherry-markdown .cherry-markdown .tag{color:#c66}.cherry-markdown .cherry-markdown .atn{color:#de935f}.cherry-markdown .cherry-markdown .atv{color:#8abeb7}.cherry-markdown .cherry-markdown .dec{color:#de935f}.cherry-markdown .cherry-markdown .var{color:#c66}.cherry-markdown .cherry-markdown .fun{color:#81a2be}}.cherry-markdown div[data-type=codeBlock]{display:inline-block;width:100%;box-sizing:border-box;border-radius:2px;margin-bottom:16px;font-size:14px;overflow-x:auto}.cherry-markdown div[data-type=codeBlock]>pre{margin:0}.cherry-markdown div[data-type=codeBlock]>pre code[class*=language-]{counter-reset:line}.cherry-markdown div[data-type=codeBlock]>pre code[class*=language-].wrap{white-space:pre-wrap}.cherry-markdown div[data-type=codeBlock]>pre code[class*=language-] .code-line{display:inline-block;position:relative;padding-left:3em;height:1.3em;line-height:2em}.cherry-markdown div[data-type=codeBlock]>pre code[class*=language-] .code-line:before{counter-increment:line;content:counter(line);margin-right:1em;position:absolute;left:0}.cherry-markdown div[data-type=codeBlock]>pre code[class*=language-] .code-line:last-child{margin-bottom:0}.cherry-markdown :not(pre)>code{padding:.1em;border-radius:.3em;white-space:normal;color:#f85353;background-color:#e5e5e5}[data-inline-code-theme=black] .cherry-markdown :not(pre)>code{color:#3f4a56;background-color:#e5e5e5}.cherry-markdown a.anchor:before{content:"§";text-decoration:none;width:15px;font-size:.5em;vertical-align:middle;display:inline-block;text-align:center;margin-left:-15px}.cherry-markdown .toc{margin-bottom:16px;padding-left:0}.cherry-markdown .toc .toc-title{font-size:24px;margin-bottom:5px}.cherry-markdown .toc .toc-li{border-bottom:1px ridge #dfe6ee;list-style:none}.cherry-markdown .toc .toc-li a{text-decoration:none;color:#3f4a56}.cherry-markdown .toc .toc-li a:hover{color:#056bad}.cherry-markdown .auto-num-toc{counter-reset:headtoclevel1}.cherry-markdown .auto-num-toc .toc-li-1{counter-reset:headtoclevel2}.cherry-markdown .auto-num-toc .toc-li-1 a:before{counter-increment:headtoclevel1;content:counter(headtoclevel1) ". "}.cherry-markdown .auto-num-toc .toc-li-2{counter-reset:headtoclevel3}.cherry-markdown .auto-num-toc .toc-li-2 a:before{counter-increment:headtoclevel2;content:counter(headtoclevel1) "." counter(headtoclevel2) ". "}.cherry-markdown .auto-num-toc .toc-li-3{counter-reset:headtoclevel4}.cherry-markdown .auto-num-toc .toc-li-3 a:before{counter-increment:headtoclevel3;content:counter(headtoclevel1) "." counter(headtoclevel2) "." counter(headtoclevel3) ". "}.cherry-markdown .auto-num-toc .toc-li-4{counter-reset:headtoclevel5}.cherry-markdown .auto-num-toc .toc-li-4 a:before{counter-increment:headtoclevel4;content:counter(headtoclevel1) "." counter(headtoclevel2) "." counter(headtoclevel3) "." counter(headtoclevel4) ". "}.cherry-markdown .auto-num-toc .toc-li-5{counter-reset:headtoclevel6}.cherry-markdown .auto-num-toc .toc-li-5 a:before{counter-increment:headtoclevel5;content:counter(headtoclevel1) "." counter(headtoclevel2) "." counter(headtoclevel3) "." counter(headtoclevel4) "." counter(headtoclevel5) ". "}.cherry-markdown .auto-num-toc .toc-li-6 a:before{counter-increment:headtoclevel6;content:counter(headtoclevel1) "." counter(headtoclevel2) "." counter(headtoclevel3) "." counter(headtoclevel4) "." counter(headtoclevel5) "." counter(headtoclevel6) ". "}.cherry-markdown .check-list-item{list-style:none}.cherry-markdown .check-list-item .ch-icon{margin:0 6px 0 -20px}.cherry-markdown .footnote:not(a){padding-top:20px;border-top:1px solid #dfe6ee;margin-top:50px}.cherry-markdown .footnote:not(a) .footnote-title{font-size:20px;margin-top:-38px;background-color:#fff;width:60px;margin-bottom:16px}.cherry-markdown .footnote:not(a) .one-footnote{color:#6d6e6f;margin-bottom:16px;border-bottom:1px dotted #dfe6ee}.cherry-markdown .cherry-table-container{max-width:100%;overflow-x:auto}.cherry-markdown .cherry-table-container .cherry-table th,.cherry-markdown .cherry-table-container .cherry-table td{border:1px solid #dfe6ee;padding:.2em .4em;min-width:100px}.cherry-markdown .cherry-table-container .cherry-table th{white-space:nowrap}.cherry-markdown mjx-assistive-mml{position:absolute;top:0;left:0;clip:rect(1px, 1px, 1px, 1px);padding:1px 0 0 0;border:0}.cherry-markdown.head-num{counter-reset:level1}.cherry-markdown.head-num h1 .anchor:before,.cherry-markdown.head-num h2 .anchor:before,.cherry-markdown.head-num h3 .anchor:before,.cherry-markdown.head-num h4 .anchor:before,.cherry-markdown.head-num h5 .anchor:before,.cherry-markdown.head-num h6 .anchor:before{width:auto;font-size:inherit;vertical-align:inherit;padding-right:10px}.cherry-markdown.head-num h1{counter-reset:level2}.cherry-markdown.head-num h2{counter-reset:level3}.cherry-markdown.head-num h3{counter-reset:level4}.cherry-markdown.head-num h4{counter-reset:level5}.cherry-markdown.head-num h5{counter-reset:level6}.cherry-markdown.head-num h1 .anchor:before{counter-increment:level1;content:counter(level1) ". "}.cherry-markdown.head-num h2 .anchor:before{counter-increment:level2;content:counter(level1) "." counter(level2) " "}.cherry-markdown.head-num h3 .anchor:before{counter-increment:level3;content:counter(level1) "." counter(level2) "." counter(level3) " "}.cherry-markdown.head-num h4 .anchor:before{counter-increment:level4;content:counter(level1) "." counter(level2) "." counter(level3) "." counter(level4) " "}.cherry-markdown.head-num h5 .anchor:before{counter-increment:level5;content:counter(level1) "." counter(level2) "." counter(level3) "." counter(level4) "." counter(level5) " "}.cherry-markdown.head-num h6 .anchor:before{counter-increment:level6;content:counter(level1) "." counter(level2) "." counter(level3) "." counter(level4) "." counter(level5) "." counter(level6) " "}div[data-type=codeBlock] code[class*=language-],div[data-type=codeBlock] pre[class*=language-]{color:#ccc;background:none;font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}div[data-type=codeBlock] pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}div[data-type=codeBlock] :not(pre)>code[class*=language-],div[data-type=codeBlock] pre[class*=language-]{background:#2d2d2d}div[data-type=codeBlock] :not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}div[data-type=codeBlock] .token.comment,div[data-type=codeBlock] .token.block-comment,div[data-type=codeBlock] .token.prolog,div[data-type=codeBlock] .token.doctype,div[data-type=codeBlock] .token.cdata{color:#999}div[data-type=codeBlock] .token.punctuation{color:#ccc}div[data-type=codeBlock] .token.tag,div[data-type=codeBlock] .token.attr-name,div[data-type=codeBlock] .token.namespace,div[data-type=codeBlock] .token.deleted{color:#e2777a}div[data-type=codeBlock] .token.function-name{color:#6196cc}div[data-type=codeBlock] .token.boolean,div[data-type=codeBlock] .token.number,div[data-type=codeBlock] .token.function{color:#f08d49}div[data-type=codeBlock] .token.property,div[data-type=codeBlock] .token.class-name,div[data-type=codeBlock] .token.constant,div[data-type=codeBlock] .token.symbol{color:#f8c555}div[data-type=codeBlock] .token.selector,div[data-type=codeBlock] .token.important,div[data-type=codeBlock] .token.atrule,div[data-type=codeBlock] .token.keyword,div[data-type=codeBlock] .token.builtin{color:#cc99cd}div[data-type=codeBlock] .token.string,div[data-type=codeBlock] .token.char,div[data-type=codeBlock] .token.attr-value,div[data-type=codeBlock] .token.regex,div[data-type=codeBlock] .token.variable{color:#7ec699}div[data-type=codeBlock] .token.operator,div[data-type=codeBlock] .token.entity,div[data-type=codeBlock] .token.url{color:#67cdcc}div[data-type=codeBlock] .token.important,div[data-type=codeBlock] .token.bold{font-weight:bold}div[data-type=codeBlock] .token.italic{font-style:italic}div[data-type=codeBlock] .token.entity{cursor:help}div[data-type=codeBlock] .token.inserted{color:green}div[data-code-wrap=wrap] div[data-type=codeBlock] code[class*=language-]{white-space:pre-wrap}[data-code-block-theme=default] div[data-type=codeBlock] code[class*=language-],[data-code-block-theme=default] div[data-type=codeBlock] pre[class*=language-]{color:#000;background:none;text-shadow:0 1px #fff;font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}[data-code-block-theme=default] div[data-type=codeBlock] pre[class*=language-]::-moz-selection,[data-code-block-theme=default] div[data-type=codeBlock] pre[class*=language-] ::-moz-selection,[data-code-block-theme=default] div[data-type=codeBlock] code[class*=language-]::-moz-selection,[data-code-block-theme=default] div[data-type=codeBlock] code[class*=language-] ::-moz-selection{text-shadow:none;background:#b3d4fc}[data-code-block-theme=default] div[data-type=codeBlock] pre[class*=language-]::selection,[data-code-block-theme=default] div[data-type=codeBlock] pre[class*=language-] ::selection,[data-code-block-theme=default] div[data-type=codeBlock] code[class*=language-]::selection,[data-code-block-theme=default] div[data-type=codeBlock] code[class*=language-] ::selection{text-shadow:none;background:#b3d4fc}@media print{[data-code-block-theme=default] div[data-type=codeBlock] code[class*=language-],[data-code-block-theme=default] div[data-type=codeBlock] pre[class*=language-]{text-shadow:none}}[data-code-block-theme=default] div[data-type=codeBlock] pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}[data-code-block-theme=default] div[data-type=codeBlock] :not(pre)>code[class*=language-],[data-code-block-theme=default] div[data-type=codeBlock] pre[class*=language-]{background:#f5f2f0}[data-code-block-theme=default] div[data-type=codeBlock] :not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}[data-code-block-theme=default] div[data-type=codeBlock] .token.comment,[data-code-block-theme=default] div[data-type=codeBlock] .token.prolog,[data-code-block-theme=default] div[data-type=codeBlock] .token.doctype,[data-code-block-theme=default] div[data-type=codeBlock] .token.cdata{color:#708090}[data-code-block-theme=default] div[data-type=codeBlock] .token.punctuation{color:#999}[data-code-block-theme=default] div[data-type=codeBlock] .token.namespace{opacity:.7}[data-code-block-theme=default] div[data-type=codeBlock] .token.property,[data-code-block-theme=default] div[data-type=codeBlock] .token.tag,[data-code-block-theme=default] div[data-type=codeBlock] .token.boolean,[data-code-block-theme=default] div[data-type=codeBlock] .token.number,[data-code-block-theme=default] div[data-type=codeBlock] .token.constant,[data-code-block-theme=default] div[data-type=codeBlock] .token.symbol,[data-code-block-theme=default] div[data-type=codeBlock] .token.deleted{color:#905}[data-code-block-theme=default] div[data-type=codeBlock] .token.selector,[data-code-block-theme=default] div[data-type=codeBlock] .token.attr-name,[data-code-block-theme=default] div[data-type=codeBlock] .token.string,[data-code-block-theme=default] div[data-type=codeBlock] .token.char,[data-code-block-theme=default] div[data-type=codeBlock] .token.builtin,[data-code-block-theme=default] div[data-type=codeBlock] .token.inserted{color:#690}[data-code-block-theme=default] div[data-type=codeBlock] .token.operator,[data-code-block-theme=default] div[data-type=codeBlock] .token.entity,[data-code-block-theme=default] div[data-type=codeBlock] .token.url,[data-code-block-theme=default] div[data-type=codeBlock] .language-css .token.string,[data-code-block-theme=default] div[data-type=codeBlock] .style .token.string{color:#9a6e3a;background:rgba(255,255,255,.5)}[data-code-block-theme=default] div[data-type=codeBlock] .token.atrule,[data-code-block-theme=default] div[data-type=codeBlock] .token.attr-value,[data-code-block-theme=default] div[data-type=codeBlock] .token.keyword{color:#07a}[data-code-block-theme=default] div[data-type=codeBlock] .token.function,[data-code-block-theme=default] div[data-type=codeBlock] .token.class-name{color:#dd4a68}[data-code-block-theme=default] div[data-type=codeBlock] .token.regex,[data-code-block-theme=default] div[data-type=codeBlock] .token.important,[data-code-block-theme=default] div[data-type=codeBlock] .token.variable{color:#e90}[data-code-block-theme=default] div[data-type=codeBlock] .token.important,[data-code-block-theme=default] div[data-type=codeBlock] .token.bold{font-weight:bold}[data-code-block-theme=default] div[data-type=codeBlock] .token.italic{font-style:italic}[data-code-block-theme=default] div[data-type=codeBlock] .token.entity{cursor:help}[data-code-block-theme=dark] div[data-type=codeBlock] code[class*=language-],[data-code-block-theme=dark] div[data-type=codeBlock] pre[class*=language-]{color:#fff;background:none;text-shadow:0 -0.1em .2em #000;font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}@media print{[data-code-block-theme=dark] div[data-type=codeBlock] code[class*=language-],[data-code-block-theme=dark] div[data-type=codeBlock] pre[class*=language-]{text-shadow:none}}[data-code-block-theme=dark] div[data-type=codeBlock] pre[class*=language-],[data-code-block-theme=dark] div[data-type=codeBlock] :not(pre)>code[class*=language-]{background:#4d4033}[data-code-block-theme=dark] div[data-type=codeBlock] pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border:.3em solid #7a6652;border-radius:.5em;box-shadow:1px 1px .5em #000 inset}[data-code-block-theme=dark] div[data-type=codeBlock] :not(pre)>code[class*=language-]{padding:.15em .2em .05em;border-radius:.3em;border:.13em solid #7a6652;box-shadow:1px 1px .3em -0.1em #000 inset;white-space:normal}[data-code-block-theme=dark] div[data-type=codeBlock] .token.comment,[data-code-block-theme=dark] div[data-type=codeBlock] .token.prolog,[data-code-block-theme=dark] div[data-type=codeBlock] .token.doctype,[data-code-block-theme=dark] div[data-type=codeBlock] .token.cdata{color:#998066}[data-code-block-theme=dark] div[data-type=codeBlock] .token.punctuation{opacity:.7}[data-code-block-theme=dark] div[data-type=codeBlock] .token.namespace{opacity:.7}[data-code-block-theme=dark] div[data-type=codeBlock] .token.property,[data-code-block-theme=dark] div[data-type=codeBlock] .token.tag,[data-code-block-theme=dark] div[data-type=codeBlock] .token.boolean,[data-code-block-theme=dark] div[data-type=codeBlock] .token.number,[data-code-block-theme=dark] div[data-type=codeBlock] .token.constant,[data-code-block-theme=dark] div[data-type=codeBlock] .token.symbol{color:#d1949e}[data-code-block-theme=dark] div[data-type=codeBlock] .token.selector,[data-code-block-theme=dark] div[data-type=codeBlock] .token.attr-name,[data-code-block-theme=dark] div[data-type=codeBlock] .token.string,[data-code-block-theme=dark] div[data-type=codeBlock] .token.char,[data-code-block-theme=dark] div[data-type=codeBlock] .token.builtin,[data-code-block-theme=dark] div[data-type=codeBlock] .token.inserted{color:#bde052}[data-code-block-theme=dark] div[data-type=codeBlock] .token.operator,[data-code-block-theme=dark] div[data-type=codeBlock] .token.entity,[data-code-block-theme=dark] div[data-type=codeBlock] .token.url,[data-code-block-theme=dark] div[data-type=codeBlock] .language-css .token.string,[data-code-block-theme=dark] div[data-type=codeBlock] .style .token.string,[data-code-block-theme=dark] div[data-type=codeBlock] .token.variable{color:#f5b83d}[data-code-block-theme=dark] div[data-type=codeBlock] .token.atrule,[data-code-block-theme=dark] div[data-type=codeBlock] .token.attr-value,[data-code-block-theme=dark] div[data-type=codeBlock] .token.keyword{color:#d1949e}[data-code-block-theme=dark] div[data-type=codeBlock] .token.regex,[data-code-block-theme=dark] div[data-type=codeBlock] .token.important{color:#e90}[data-code-block-theme=dark] div[data-type=codeBlock] .token.important,[data-code-block-theme=dark] div[data-type=codeBlock] .token.bold{font-weight:bold}[data-code-block-theme=dark] div[data-type=codeBlock] .token.italic{font-style:italic}[data-code-block-theme=dark] div[data-type=codeBlock] .token.entity{cursor:help}[data-code-block-theme=dark] div[data-type=codeBlock] .token.deleted{color:red}[data-code-block-theme=one-dark] div[data-type=codeBlock] code[class*=language-],[data-code-block-theme=one-dark] div[data-type=codeBlock] pre[class*=language-]{background:#282c34;color:#abb2bf;text-shadow:0 1px rgba(0,0,0,.3);font-family:"Fira Code","Fira Mono",Menlo,Consolas,"DejaVu Sans Mono",monospace;direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;line-height:1.5;-moz-tab-size:2;-o-tab-size:2;tab-size:2;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}[data-code-block-theme=one-dark] div[data-type=codeBlock] code[class*=language-]::-moz-selection,[data-code-block-theme=one-dark] div[data-type=codeBlock] code[class*=language-] *::-moz-selection,[data-code-block-theme=one-dark] div[data-type=codeBlock] pre[class*=language-] *::-moz-selection{background:#3e4451;color:inherit;text-shadow:none}[data-code-block-theme=one-dark] div[data-type=codeBlock] code[class*=language-]::selection,[data-code-block-theme=one-dark] div[data-type=codeBlock] code[class*=language-] *::selection,[data-code-block-theme=one-dark] div[data-type=codeBlock] pre[class*=language-] *::selection{background:#3e4451;color:inherit;text-shadow:none}[data-code-block-theme=one-dark] div[data-type=codeBlock] pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border-radius:.3em}[data-code-block-theme=one-dark] div[data-type=codeBlock] :not(pre)>code[class*=language-]{padding:.2em .3em;border-radius:.3em;white-space:normal}@media print{[data-code-block-theme=one-dark] div[data-type=codeBlock] code[class*=language-],[data-code-block-theme=one-dark] div[data-type=codeBlock] pre[class*=language-]{text-shadow:none}}[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.comment,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.prolog,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.cdata{color:#5c6370}[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.doctype,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.punctuation,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.entity{color:#abb2bf}[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.attr-name,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.class-name,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.boolean,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.constant,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.number,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.atrule{color:#d19a66}[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.keyword{color:#c678dd}[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.property,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.tag,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.symbol,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.deleted,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.important{color:#e06c75}[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.selector,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.string,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.char,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.builtin,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.inserted,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.regex,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.attr-value,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.attr-value>.token.punctuation{color:#98c379}[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.variable,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.operator,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.function{color:#61afef}[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.url{color:#56b6c2}[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.attr-value>.token.punctuation.attr-equals,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.special-attr>.token.attr-value>.token.value.css{color:#abb2bf}[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-css .token.selector{color:#e06c75}[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-css .token.property{color:#abb2bf}[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-css .token.function,[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-css .token.url>.token.function{color:#56b6c2}[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-css .token.url>.token.string.url{color:#98c379}[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-css .token.important,[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-css .token.atrule .token.rule{color:#c678dd}[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-javascript .token.operator{color:#c678dd}[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-javascript .token.template-string>.token.interpolation>.token.interpolation-punctuation.punctuation{color:#be5046}[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-json .token.operator{color:#abb2bf}[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-json .token.null.keyword{color:#d19a66}[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-markdown .token.url,[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-markdown .token.url>.token.operator,[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-markdown .token.url-reference.url>.token.string{color:#abb2bf}[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-markdown .token.url>.token.content{color:#61afef}[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-markdown .token.url>.token.url,[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-markdown .token.url-reference.url{color:#56b6c2}[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-markdown .token.blockquote.punctuation,[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-markdown .token.hr.punctuation{color:#5c6370;font-style:italic}[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-markdown .token.code-snippet{color:#98c379}[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-markdown .token.bold .token.content{color:#d19a66}[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-markdown .token.italic .token.content{color:#c678dd}[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-markdown .token.strike .token.content,[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-markdown .token.strike .token.punctuation,[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-markdown .token.list.punctuation,[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-markdown .token.title.important>.token.punctuation{color:#e06c75}[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.bold{font-weight:bold}[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.comment,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.italic{font-style:italic}[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.entity{cursor:help}[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.namespace{opacity:.8}[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.token.tab:not(:empty):before,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.token.cr:before,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.token.lf:before,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.token.space:before{color:rgba(171,178,191,.15);text-shadow:none}[data-code-block-theme=one-dark] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item{margin-right:.4em}[data-code-block-theme=one-dark] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item>button,[data-code-block-theme=one-dark] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item>a,[data-code-block-theme=one-dark] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item>span{background:#3a3f4b;color:#828997;padding:.1em .4em;border-radius:.3em}[data-code-block-theme=one-dark] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item>button:hover,[data-code-block-theme=one-dark] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item>button:focus,[data-code-block-theme=one-dark] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item>a:hover,[data-code-block-theme=one-dark] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item>a:focus,[data-code-block-theme=one-dark] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item>span:hover,[data-code-block-theme=one-dark] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item>span:focus{background:#3e4451;color:#abb2bf}[data-code-block-theme=one-dark] div[data-type=codeBlock] .line-highlight.line-highlight{background:rgba(153,187,255,.04)}[data-code-block-theme=one-dark] div[data-type=codeBlock] .line-highlight.line-highlight:before,[data-code-block-theme=one-dark] div[data-type=codeBlock] .line-highlight.line-highlight[data-end]:after{background:#3a3f4b;color:#abb2bf;padding:.1em .6em;border-radius:.3em;box-shadow:0 2px 0 0 rgba(0,0,0,.2)}[data-code-block-theme=one-dark] div[data-type=codeBlock] pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows>span:hover:before{background-color:rgba(153,187,255,.04)}[data-code-block-theme=one-dark] div[data-type=codeBlock] .line-numbers.line-numbers .line-numbers-rows,[data-code-block-theme=one-dark] div[data-type=codeBlock] .command-line .command-line-prompt{border-right-color:rgba(171,178,191,.15)}[data-code-block-theme=one-dark] div[data-type=codeBlock] .line-numbers .line-numbers-rows>span:before,[data-code-block-theme=one-dark] div[data-type=codeBlock] .command-line .command-line-prompt>span:before{color:#636d83}[data-code-block-theme=one-dark] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-1,[data-code-block-theme=one-dark] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-5,[data-code-block-theme=one-dark] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-9{color:#e06c75}[data-code-block-theme=one-dark] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-2,[data-code-block-theme=one-dark] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-6,[data-code-block-theme=one-dark] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-10{color:#98c379}[data-code-block-theme=one-dark] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-3,[data-code-block-theme=one-dark] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-7,[data-code-block-theme=one-dark] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-11{color:#61afef}[data-code-block-theme=one-dark] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-4,[data-code-block-theme=one-dark] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-8,[data-code-block-theme=one-dark] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-12{color:#c678dd}[data-code-block-theme=one-dark] div[data-type=codeBlock] pre.diff-highlight>code .token.token.deleted:not(.prefix),[data-code-block-theme=one-dark] div[data-type=codeBlock] pre>code.diff-highlight .token.token.deleted:not(.prefix){background-color:rgba(255,82,102,.15)}[data-code-block-theme=one-dark] div[data-type=codeBlock] pre.diff-highlight>code .token.token.deleted:not(.prefix)::-moz-selection,[data-code-block-theme=one-dark] div[data-type=codeBlock] pre.diff-highlight>code .token.token.deleted:not(.prefix) *::-moz-selection,[data-code-block-theme=one-dark] div[data-type=codeBlock] pre>code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection,[data-code-block-theme=one-dark] div[data-type=codeBlock] pre>code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection{background-color:rgba(251,86,105,.25)}[data-code-block-theme=one-dark] div[data-type=codeBlock] pre.diff-highlight>code .token.token.deleted:not(.prefix)::selection,[data-code-block-theme=one-dark] div[data-type=codeBlock] pre.diff-highlight>code .token.token.deleted:not(.prefix) *::selection,[data-code-block-theme=one-dark] div[data-type=codeBlock] pre>code.diff-highlight .token.token.deleted:not(.prefix)::selection,[data-code-block-theme=one-dark] div[data-type=codeBlock] pre>code.diff-highlight .token.token.deleted:not(.prefix) *::selection{background-color:rgba(251,86,105,.25)}[data-code-block-theme=one-dark] div[data-type=codeBlock] pre.diff-highlight>code .token.token.inserted:not(.prefix),[data-code-block-theme=one-dark] div[data-type=codeBlock] pre>code.diff-highlight .token.token.inserted:not(.prefix){background-color:rgba(26,255,91,.15)}[data-code-block-theme=one-dark] div[data-type=codeBlock] pre.diff-highlight>code .token.token.inserted:not(.prefix)::-moz-selection,[data-code-block-theme=one-dark] div[data-type=codeBlock] pre.diff-highlight>code .token.token.inserted:not(.prefix) *::-moz-selection,[data-code-block-theme=one-dark] div[data-type=codeBlock] pre>code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection,[data-code-block-theme=one-dark] div[data-type=codeBlock] pre>code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection{background-color:rgba(56,224,98,.25)}[data-code-block-theme=one-dark] div[data-type=codeBlock] pre.diff-highlight>code .token.token.inserted:not(.prefix)::selection,[data-code-block-theme=one-dark] div[data-type=codeBlock] pre.diff-highlight>code .token.token.inserted:not(.prefix) *::selection,[data-code-block-theme=one-dark] div[data-type=codeBlock] pre>code.diff-highlight .token.token.inserted:not(.prefix)::selection,[data-code-block-theme=one-dark] div[data-type=codeBlock] pre>code.diff-highlight .token.token.inserted:not(.prefix) *::selection{background-color:rgba(56,224,98,.25)}[data-code-block-theme=one-dark] div[data-type=codeBlock] .prism-previewer.prism-previewer:before,[data-code-block-theme=one-dark] div[data-type=codeBlock] .prism-previewer-gradient.prism-previewer-gradient div{border-color:#262931}[data-code-block-theme=one-dark] div[data-type=codeBlock] .prism-previewer-color.prism-previewer-color:before,[data-code-block-theme=one-dark] div[data-type=codeBlock] .prism-previewer-gradient.prism-previewer-gradient div,[data-code-block-theme=one-dark] div[data-type=codeBlock] .prism-previewer-easing.prism-previewer-easing:before{border-radius:.3em}[data-code-block-theme=one-dark] div[data-type=codeBlock] .prism-previewer.prism-previewer:after{border-top-color:#262931}[data-code-block-theme=one-dark] div[data-type=codeBlock] .prism-previewer-flipped.prism-previewer-flipped.after{border-bottom-color:#262931}[data-code-block-theme=one-dark] div[data-type=codeBlock] .prism-previewer-angle.prism-previewer-angle:before,[data-code-block-theme=one-dark] div[data-type=codeBlock] .prism-previewer-time.prism-previewer-time:before,[data-code-block-theme=one-dark] div[data-type=codeBlock] .prism-previewer-easing.prism-previewer-easing{background:#31363f}[data-code-block-theme=one-dark] div[data-type=codeBlock] .prism-previewer-angle.prism-previewer-angle circle,[data-code-block-theme=one-dark] div[data-type=codeBlock] .prism-previewer-time.prism-previewer-time circle{stroke:#abb2bf;stroke-opacity:1}[data-code-block-theme=one-dark] div[data-type=codeBlock] .prism-previewer-easing.prism-previewer-easing circle,[data-code-block-theme=one-dark] div[data-type=codeBlock] .prism-previewer-easing.prism-previewer-easing path,[data-code-block-theme=one-dark] div[data-type=codeBlock] .prism-previewer-easing.prism-previewer-easing line{stroke:#abb2bf}[data-code-block-theme=one-dark] div[data-type=codeBlock] .prism-previewer-easing.prism-previewer-easing circle{fill:rgba(0,0,0,0)}[data-code-block-theme=one-light] div[data-type=codeBlock] code[class*=language-],[data-code-block-theme=one-light] div[data-type=codeBlock] pre[class*=language-]{background:#fafafa;color:#383a42;font-family:"Fira Code","Fira Mono",Menlo,Consolas,"DejaVu Sans Mono",monospace;direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;line-height:1.5;-moz-tab-size:2;-o-tab-size:2;tab-size:2;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}[data-code-block-theme=one-light] div[data-type=codeBlock] code[class*=language-]::-moz-selection,[data-code-block-theme=one-light] div[data-type=codeBlock] code[class*=language-] *::-moz-selection,[data-code-block-theme=one-light] div[data-type=codeBlock] pre[class*=language-] *::-moz-selection{background:#e5e5e6;color:inherit}[data-code-block-theme=one-light] div[data-type=codeBlock] code[class*=language-]::selection,[data-code-block-theme=one-light] div[data-type=codeBlock] code[class*=language-] *::selection,[data-code-block-theme=one-light] div[data-type=codeBlock] pre[class*=language-] *::selection{background:#e5e5e6;color:inherit}[data-code-block-theme=one-light] div[data-type=codeBlock] pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border-radius:.3em}[data-code-block-theme=one-light] div[data-type=codeBlock] :not(pre)>code[class*=language-]{padding:.2em .3em;border-radius:.3em;white-space:normal}[data-code-block-theme=one-light] div[data-type=codeBlock] .token.comment,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.prolog,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.cdata{color:#a0a1a7}[data-code-block-theme=one-light] div[data-type=codeBlock] .token.doctype,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.punctuation,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.entity{color:#383a42}[data-code-block-theme=one-light] div[data-type=codeBlock] .token.attr-name,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.class-name,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.boolean,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.constant,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.number,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.atrule{color:#b76b01}[data-code-block-theme=one-light] div[data-type=codeBlock] .token.keyword{color:#a626a4}[data-code-block-theme=one-light] div[data-type=codeBlock] .token.property,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.tag,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.symbol,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.deleted,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.important{color:#e45649}[data-code-block-theme=one-light] div[data-type=codeBlock] .token.selector,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.string,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.char,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.builtin,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.inserted,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.regex,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.attr-value,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.attr-value>.token.punctuation{color:#50a14f}[data-code-block-theme=one-light] div[data-type=codeBlock] .token.variable,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.operator,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.function{color:#4078f2}[data-code-block-theme=one-light] div[data-type=codeBlock] .token.url{color:#0184bc}[data-code-block-theme=one-light] div[data-type=codeBlock] .token.attr-value>.token.punctuation.attr-equals,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.special-attr>.token.attr-value>.token.value.css{color:#383a42}[data-code-block-theme=one-light] div[data-type=codeBlock] .language-css .token.selector{color:#e45649}[data-code-block-theme=one-light] div[data-type=codeBlock] .language-css .token.property{color:#383a42}[data-code-block-theme=one-light] div[data-type=codeBlock] .language-css .token.function,[data-code-block-theme=one-light] div[data-type=codeBlock] .language-css .token.url>.token.function{color:#0184bc}[data-code-block-theme=one-light] div[data-type=codeBlock] .language-css .token.url>.token.string.url{color:#50a14f}[data-code-block-theme=one-light] div[data-type=codeBlock] .language-css .token.important,[data-code-block-theme=one-light] div[data-type=codeBlock] .language-css .token.atrule .token.rule{color:#a626a4}[data-code-block-theme=one-light] div[data-type=codeBlock] .language-javascript .token.operator{color:#a626a4}[data-code-block-theme=one-light] div[data-type=codeBlock] .language-javascript .token.template-string>.token.interpolation>.token.interpolation-punctuation.punctuation{color:#ca1243}[data-code-block-theme=one-light] div[data-type=codeBlock] .language-json .token.operator{color:#383a42}[data-code-block-theme=one-light] div[data-type=codeBlock] .language-json .token.null.keyword{color:#b76b01}[data-code-block-theme=one-light] div[data-type=codeBlock] .language-markdown .token.url,[data-code-block-theme=one-light] div[data-type=codeBlock] .language-markdown .token.url>.token.operator,[data-code-block-theme=one-light] div[data-type=codeBlock] .language-markdown .token.url-reference.url>.token.string{color:#383a42}[data-code-block-theme=one-light] div[data-type=codeBlock] .language-markdown .token.url>.token.content{color:#4078f2}[data-code-block-theme=one-light] div[data-type=codeBlock] .language-markdown .token.url>.token.url,[data-code-block-theme=one-light] div[data-type=codeBlock] .language-markdown .token.url-reference.url{color:#0184bc}[data-code-block-theme=one-light] div[data-type=codeBlock] .language-markdown .token.blockquote.punctuation,[data-code-block-theme=one-light] div[data-type=codeBlock] .language-markdown .token.hr.punctuation{color:#a0a1a7;font-style:italic}[data-code-block-theme=one-light] div[data-type=codeBlock] .language-markdown .token.code-snippet{color:#50a14f}[data-code-block-theme=one-light] div[data-type=codeBlock] .language-markdown .token.bold .token.content{color:#b76b01}[data-code-block-theme=one-light] div[data-type=codeBlock] .language-markdown .token.italic .token.content{color:#a626a4}[data-code-block-theme=one-light] div[data-type=codeBlock] .language-markdown .token.strike .token.content,[data-code-block-theme=one-light] div[data-type=codeBlock] .language-markdown .token.strike .token.punctuation,[data-code-block-theme=one-light] div[data-type=codeBlock] .language-markdown .token.list.punctuation,[data-code-block-theme=one-light] div[data-type=codeBlock] .language-markdown .token.title.important>.token.punctuation{color:#e45649}[data-code-block-theme=one-light] div[data-type=codeBlock] .token.bold{font-weight:bold}[data-code-block-theme=one-light] div[data-type=codeBlock] .token.comment,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.italic{font-style:italic}[data-code-block-theme=one-light] div[data-type=codeBlock] .token.entity{cursor:help}[data-code-block-theme=one-light] div[data-type=codeBlock] .token.namespace{opacity:.8}[data-code-block-theme=one-light] div[data-type=codeBlock] .token.token.tab:not(:empty):before,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.token.cr:before,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.token.lf:before,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.token.space:before{color:rgba(56,58,66,.2)}[data-code-block-theme=one-light] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item{margin-right:.4em}[data-code-block-theme=one-light] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item>button,[data-code-block-theme=one-light] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item>a,[data-code-block-theme=one-light] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item>span{background:#e5e5e6;color:#696c77;padding:.1em .4em;border-radius:.3em}[data-code-block-theme=one-light] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item>button:hover,[data-code-block-theme=one-light] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item>button:focus,[data-code-block-theme=one-light] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item>a:hover,[data-code-block-theme=one-light] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item>a:focus,[data-code-block-theme=one-light] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item>span:hover,[data-code-block-theme=one-light] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item>span:focus{background:#c6c7c7;color:#383a42}[data-code-block-theme=one-light] div[data-type=codeBlock] .line-highlight.line-highlight{background:rgba(56,58,66,.05)}[data-code-block-theme=one-light] div[data-type=codeBlock] .line-highlight.line-highlight:before,[data-code-block-theme=one-light] div[data-type=codeBlock] .line-highlight.line-highlight[data-end]:after{background:#e5e5e6;color:#383a42;padding:.1em .6em;border-radius:.3em;box-shadow:0 2px 0 0 rgba(0,0,0,.2)}[data-code-block-theme=one-light] div[data-type=codeBlock] pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows>span:hover:before{background-color:rgba(56,58,66,.05)}[data-code-block-theme=one-light] div[data-type=codeBlock] .line-numbers.line-numbers .line-numbers-rows,[data-code-block-theme=one-light] div[data-type=codeBlock] .command-line .command-line-prompt{border-right-color:rgba(56,58,66,.2)}[data-code-block-theme=one-light] div[data-type=codeBlock] .line-numbers .line-numbers-rows>span:before,[data-code-block-theme=one-light] div[data-type=codeBlock] .command-line .command-line-prompt>span:before{color:#9d9d9f}[data-code-block-theme=one-light] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-1,[data-code-block-theme=one-light] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-5,[data-code-block-theme=one-light] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-9{color:#e45649}[data-code-block-theme=one-light] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-2,[data-code-block-theme=one-light] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-6,[data-code-block-theme=one-light] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-10{color:#50a14f}[data-code-block-theme=one-light] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-3,[data-code-block-theme=one-light] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-7,[data-code-block-theme=one-light] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-11{color:#4078f2}[data-code-block-theme=one-light] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-4,[data-code-block-theme=one-light] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-8,[data-code-block-theme=one-light] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-12{color:#a626a4}[data-code-block-theme=one-light] div[data-type=codeBlock] pre.diff-highlight>code .token.token.deleted:not(.prefix),[data-code-block-theme=one-light] div[data-type=codeBlock] pre>code.diff-highlight .token.token.deleted:not(.prefix){background-color:rgba(255,82,102,.15)}[data-code-block-theme=one-light] div[data-type=codeBlock] pre.diff-highlight>code .token.token.deleted:not(.prefix)::-moz-selection,[data-code-block-theme=one-light] div[data-type=codeBlock] pre.diff-highlight>code .token.token.deleted:not(.prefix) *::-moz-selection,[data-code-block-theme=one-light] div[data-type=codeBlock] pre>code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection,[data-code-block-theme=one-light] div[data-type=codeBlock] pre>code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection{background-color:rgba(251,86,105,.25)}[data-code-block-theme=one-light] div[data-type=codeBlock] pre.diff-highlight>code .token.token.deleted:not(.prefix)::selection,[data-code-block-theme=one-light] div[data-type=codeBlock] pre.diff-highlight>code .token.token.deleted:not(.prefix) *::selection,[data-code-block-theme=one-light] div[data-type=codeBlock] pre>code.diff-highlight .token.token.deleted:not(.prefix)::selection,[data-code-block-theme=one-light] div[data-type=codeBlock] pre>code.diff-highlight .token.token.deleted:not(.prefix) *::selection{background-color:rgba(251,86,105,.25)}[data-code-block-theme=one-light] div[data-type=codeBlock] pre.diff-highlight>code .token.token.inserted:not(.prefix),[data-code-block-theme=one-light] div[data-type=codeBlock] pre>code.diff-highlight .token.token.inserted:not(.prefix){background-color:rgba(26,255,91,.15)}[data-code-block-theme=one-light] div[data-type=codeBlock] pre.diff-highlight>code .token.token.inserted:not(.prefix)::-moz-selection,[data-code-block-theme=one-light] div[data-type=codeBlock] pre.diff-highlight>code .token.token.inserted:not(.prefix) *::-moz-selection,[data-code-block-theme=one-light] div[data-type=codeBlock] pre>code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection,[data-code-block-theme=one-light] div[data-type=codeBlock] pre>code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection{background-color:rgba(56,224,98,.25)}[data-code-block-theme=one-light] div[data-type=codeBlock] pre.diff-highlight>code .token.token.inserted:not(.prefix)::selection,[data-code-block-theme=one-light] div[data-type=codeBlock] pre.diff-highlight>code .token.token.inserted:not(.prefix) *::selection,[data-code-block-theme=one-light] div[data-type=codeBlock] pre>code.diff-highlight .token.token.inserted:not(.prefix)::selection,[data-code-block-theme=one-light] div[data-type=codeBlock] pre>code.diff-highlight .token.token.inserted:not(.prefix) *::selection{background-color:rgba(56,224,98,.25)}[data-code-block-theme=one-light] div[data-type=codeBlock] .prism-previewer.prism-previewer:before,[data-code-block-theme=one-light] div[data-type=codeBlock] .prism-previewer-gradient.prism-previewer-gradient div{border-color:#f2f2f2}[data-code-block-theme=one-light] div[data-type=codeBlock] .prism-previewer-color.prism-previewer-color:before,[data-code-block-theme=one-light] div[data-type=codeBlock] .prism-previewer-gradient.prism-previewer-gradient div,[data-code-block-theme=one-light] div[data-type=codeBlock] .prism-previewer-easing.prism-previewer-easing:before{border-radius:.3em}[data-code-block-theme=one-light] div[data-type=codeBlock] .prism-previewer.prism-previewer:after{border-top-color:#f2f2f2}[data-code-block-theme=one-light] div[data-type=codeBlock] .prism-previewer-flipped.prism-previewer-flipped.after{border-bottom-color:#f2f2f2}[data-code-block-theme=one-light] div[data-type=codeBlock] .prism-previewer-angle.prism-previewer-angle:before,[data-code-block-theme=one-light] div[data-type=codeBlock] .prism-previewer-time.prism-previewer-time:before,[data-code-block-theme=one-light] div[data-type=codeBlock] .prism-previewer-easing.prism-previewer-easing{background:#fff}[data-code-block-theme=one-light] div[data-type=codeBlock] .prism-previewer-angle.prism-previewer-angle circle,[data-code-block-theme=one-light] div[data-type=codeBlock] .prism-previewer-time.prism-previewer-time circle{stroke:#383a42;stroke-opacity:1}[data-code-block-theme=one-light] div[data-type=codeBlock] .prism-previewer-easing.prism-previewer-easing circle,[data-code-block-theme=one-light] div[data-type=codeBlock] .prism-previewer-easing.prism-previewer-easing path,[data-code-block-theme=one-light] div[data-type=codeBlock] .prism-previewer-easing.prism-previewer-easing line{stroke:#383a42}[data-code-block-theme=one-light] div[data-type=codeBlock] .prism-previewer-easing.prism-previewer-easing circle{fill:rgba(0,0,0,0)}[data-code-block-theme=vs-dark] div[data-type=codeBlock] pre[class*=language-],[data-code-block-theme=vs-dark] div[data-type=codeBlock] code[class*=language-]{color:#d4d4d4;font-size:13px;text-shadow:none;font-family:Menlo,Monaco,Consolas,"Andale Mono","Ubuntu Mono","Courier New",monospace;direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}[data-code-block-theme=vs-dark] div[data-type=codeBlock] pre[class*=language-]::selection,[data-code-block-theme=vs-dark] div[data-type=codeBlock] code[class*=language-]::selection,[data-code-block-theme=vs-dark] div[data-type=codeBlock] pre[class*=language-] *::selection,[data-code-block-theme=vs-dark] div[data-type=codeBlock] code[class*=language-] *::selection{text-shadow:none;background:#264f78}@media print{[data-code-block-theme=vs-dark] div[data-type=codeBlock] pre[class*=language-],[data-code-block-theme=vs-dark] div[data-type=codeBlock] code[class*=language-]{text-shadow:none}}[data-code-block-theme=vs-dark] div[data-type=codeBlock] pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;background:#1e1e1e}[data-code-block-theme=vs-dark] div[data-type=codeBlock] :not(pre)>code[class*=language-]{padding:.1em .3em;border-radius:.3em;color:#db4c69;background:#1e1e1e}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .namespace{opacity:.7}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.doctype .token.doctype-tag{color:#569cd6}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.doctype .token.name{color:#9cdcfe}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.comment,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.prolog{color:#6a9955}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.punctuation,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .language-html .language-css .token.punctuation,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .language-html .language-javascript .token.punctuation{color:#d4d4d4}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.property,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.tag,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.boolean,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.number,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.constant,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.symbol,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.inserted,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.unit{color:#b5cea8}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.selector,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.attr-name,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.string,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.char,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.builtin,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.deleted{color:#ce9178}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .language-css .token.string.url{text-decoration:underline}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.operator,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.entity{color:#d4d4d4}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.operator.arrow{color:#569cd6}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.atrule{color:#ce9178}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.atrule .token.rule{color:#c586c0}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.atrule .token.url{color:#9cdcfe}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.atrule .token.url .token.function{color:#dcdcaa}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.atrule .token.url .token.punctuation{color:#d4d4d4}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.keyword{color:#569cd6}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.keyword.module,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.keyword.control-flow{color:#c586c0}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.function,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.function .token.maybe-class-name{color:#dcdcaa}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.regex{color:#d16969}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.important{color:#569cd6}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.italic{font-style:italic}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.constant{color:#9cdcfe}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.class-name,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.maybe-class-name{color:#4ec9b0}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.console{color:#9cdcfe}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.parameter{color:#9cdcfe}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.interpolation{color:#9cdcfe}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.punctuation.interpolation-punctuation{color:#569cd6}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.boolean{color:#569cd6}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.property,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.variable,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.imports .token.maybe-class-name,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.exports .token.maybe-class-name{color:#9cdcfe}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.selector{color:#d7ba7d}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.escape{color:#d7ba7d}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.tag{color:#569cd6}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.tag .token.punctuation{color:gray}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.cdata{color:gray}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.attr-name{color:#9cdcfe}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.attr-value,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.attr-value .token.punctuation{color:#ce9178}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.attr-value .token.punctuation.attr-equals{color:#d4d4d4}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.entity{color:#569cd6}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.namespace{color:#4ec9b0}[data-code-block-theme=vs-dark] div[data-type=codeBlock] pre[class*=language-javascript],[data-code-block-theme=vs-dark] div[data-type=codeBlock] code[class*=language-javascript],[data-code-block-theme=vs-dark] div[data-type=codeBlock] pre[class*=language-jsx],[data-code-block-theme=vs-dark] div[data-type=codeBlock] code[class*=language-jsx],[data-code-block-theme=vs-dark] div[data-type=codeBlock] pre[class*=language-typescript],[data-code-block-theme=vs-dark] div[data-type=codeBlock] code[class*=language-typescript],[data-code-block-theme=vs-dark] div[data-type=codeBlock] pre[class*=language-tsx],[data-code-block-theme=vs-dark] div[data-type=codeBlock] code[class*=language-tsx]{color:#9cdcfe}[data-code-block-theme=vs-dark] div[data-type=codeBlock] pre[class*=language-css],[data-code-block-theme=vs-dark] div[data-type=codeBlock] code[class*=language-css]{color:#ce9178}[data-code-block-theme=vs-dark] div[data-type=codeBlock] pre[class*=language-html],[data-code-block-theme=vs-dark] div[data-type=codeBlock] code[class*=language-html]{color:#d4d4d4}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .language-regex .token.anchor{color:#dcdcaa}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .language-html .token.punctuation{color:gray}[data-code-block-theme=vs-dark] div[data-type=codeBlock] pre[class*=language-]>code[class*=language-]{position:relative;z-index:1}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .line-highlight.line-highlight{background:#f7ebc6;box-shadow:inset 5px 0 0 #f7d87c;z-index:0}[data-code-block-theme=vs-light] div[data-type=codeBlock] code[class*=language-],[data-code-block-theme=vs-light] div[data-type=codeBlock] pre[class*=language-]{color:#393a34;font-family:"Consolas","Bitstream Vera Sans Mono","Courier New",Courier,monospace;direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;font-size:.9em;line-height:1.2em;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}[data-code-block-theme=vs-light] div[data-type=codeBlock] pre>code[class*=language-]{font-size:1em}[data-code-block-theme=vs-light] div[data-type=codeBlock] pre[class*=language-]::-moz-selection,[data-code-block-theme=vs-light] div[data-type=codeBlock] pre[class*=language-] ::-moz-selection,[data-code-block-theme=vs-light] div[data-type=codeBlock] code[class*=language-]::-moz-selection,[data-code-block-theme=vs-light] div[data-type=codeBlock] code[class*=language-] ::-moz-selection{background:#c1def1}[data-code-block-theme=vs-light] div[data-type=codeBlock] pre[class*=language-]::selection,[data-code-block-theme=vs-light] div[data-type=codeBlock] pre[class*=language-] ::selection,[data-code-block-theme=vs-light] div[data-type=codeBlock] code[class*=language-]::selection,[data-code-block-theme=vs-light] div[data-type=codeBlock] code[class*=language-] ::selection{background:#c1def1}[data-code-block-theme=vs-light] div[data-type=codeBlock] pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border:1px solid #ddd;background-color:#fff}[data-code-block-theme=vs-light] div[data-type=codeBlock] :not(pre)>code[class*=language-]{padding:.2em;padding-top:1px;padding-bottom:1px;background:#f8f8f8;border:1px solid #ddd}[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.comment,[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.prolog,[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.doctype,[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.cdata{color:green;font-style:italic}[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.namespace{opacity:.7}[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.string{color:#a31515}[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.punctuation,[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.operator{color:#393a34}[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.url,[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.symbol,[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.number,[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.boolean,[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.variable,[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.constant,[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.inserted{color:#36acaa}[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.atrule,[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.keyword,[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.attr-value,[data-code-block-theme=vs-light] div[data-type=codeBlock] .language-autohotkey .token.selector,[data-code-block-theme=vs-light] div[data-type=codeBlock] .language-json .token.boolean,[data-code-block-theme=vs-light] div[data-type=codeBlock] .language-json .token.number,[data-code-block-theme=vs-light] div[data-type=codeBlock] code[class*=language-css]{color:blue}[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.function{color:#393a34}[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.deleted,[data-code-block-theme=vs-light] div[data-type=codeBlock] .language-autohotkey .token.tag{color:#9a050f}[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.selector,[data-code-block-theme=vs-light] div[data-type=codeBlock] .language-autohotkey .token.keyword{color:#00009f}[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.important{color:#e90}[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.important,[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.bold{font-weight:bold}[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.italic{font-style:italic}[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.class-name,[data-code-block-theme=vs-light] div[data-type=codeBlock] .language-json .token.property{color:#2b91af}[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.tag,[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.selector{color:maroon}[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.attr-name,[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.property,[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.regex,[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.entity{color:red}[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.directive.tag .tag{background:#ff0;color:#393a34}[data-code-block-theme=vs-light] div[data-type=codeBlock] .line-numbers.line-numbers .line-numbers-rows{border-right-color:#a5a5a5}[data-code-block-theme=vs-light] div[data-type=codeBlock] .line-numbers .line-numbers-rows>span:before{color:#2b91af}[data-code-block-theme=vs-light] div[data-type=codeBlock] .line-highlight.line-highlight{background:rgba(193,222,241,.2);background:-webkit-linear-gradient(left, rgba(193, 222, 241, 0.2) 70%, rgba(221, 222, 241, 0));background:linear-gradient(to right, rgba(193, 222, 241, 0.2) 70%, rgba(221, 222, 241, 0))}[data-code-block-theme=okaidia] div[data-type=codeBlock] code[class*=language-],[data-code-block-theme=okaidia] div[data-type=codeBlock] pre[class*=language-]{color:#f8f8f2;background:none;text-shadow:0 1px rgba(0,0,0,.3);font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}[data-code-block-theme=okaidia] div[data-type=codeBlock] pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border-radius:.3em}[data-code-block-theme=okaidia] div[data-type=codeBlock] :not(pre)>code[class*=language-],[data-code-block-theme=okaidia] div[data-type=codeBlock] pre[class*=language-]{background:#272822}[data-code-block-theme=okaidia] div[data-type=codeBlock] :not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.comment,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.prolog,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.doctype,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.cdata{color:#8292a2}[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.punctuation{color:#f8f8f2}[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.namespace{opacity:.7}[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.property,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.tag,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.constant,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.symbol,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.deleted{color:#f92672}[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.boolean,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.number{color:#ae81ff}[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.selector,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.attr-name,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.string,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.char,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.builtin,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.inserted{color:#a6e22e}[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.operator,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.entity,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.url,[data-code-block-theme=okaidia] div[data-type=codeBlock] .language-css .token.string,[data-code-block-theme=okaidia] div[data-type=codeBlock] .style .token.string,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.variable{color:#f8f8f2}[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.atrule,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.attr-value,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.function,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.class-name{color:#e6db74}[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.keyword{color:#66d9ef}[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.regex,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.important{color:#fd971f}[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.important,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.bold{font-weight:bold}[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.italic{font-style:italic}[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.entity{cursor:help}[data-code-block-theme=twilight] div[data-type=codeBlock] code[class*=language-],[data-code-block-theme=twilight] div[data-type=codeBlock] pre[class*=language-]{color:#fff;background:none;font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;font-size:1em;text-align:left;text-shadow:0 -0.1em .2em #000;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}[data-code-block-theme=twilight] div[data-type=codeBlock] pre[class*=language-],[data-code-block-theme=twilight] div[data-type=codeBlock] :not(pre)>code[class*=language-]{background:#141414}[data-code-block-theme=twilight] div[data-type=codeBlock] pre[class*=language-]{border-radius:.5em;border:.3em solid #545454;box-shadow:1px 1px .5em #000 inset;margin:.5em 0;overflow:auto;padding:1em}[data-code-block-theme=twilight] div[data-type=codeBlock] pre[class*=language-]::-moz-selection{background:#27292a}[data-code-block-theme=twilight] div[data-type=codeBlock] pre[class*=language-]::selection{background:#27292a}[data-code-block-theme=twilight] div[data-type=codeBlock] pre[class*=language-]::-moz-selection,[data-code-block-theme=twilight] div[data-type=codeBlock] pre[class*=language-] ::-moz-selection,[data-code-block-theme=twilight] div[data-type=codeBlock] code[class*=language-]::-moz-selection,[data-code-block-theme=twilight] div[data-type=codeBlock] code[class*=language-] ::-moz-selection{text-shadow:none;background:rgba(237,237,237,.15)}[data-code-block-theme=twilight] div[data-type=codeBlock] pre[class*=language-]::selection,[data-code-block-theme=twilight] div[data-type=codeBlock] pre[class*=language-] ::selection,[data-code-block-theme=twilight] div[data-type=codeBlock] code[class*=language-]::selection,[data-code-block-theme=twilight] div[data-type=codeBlock] code[class*=language-] ::selection{text-shadow:none;background:rgba(237,237,237,.15)}[data-code-block-theme=twilight] div[data-type=codeBlock] :not(pre)>code[class*=language-]{border-radius:.3em;border:.13em solid #545454;box-shadow:1px 1px .3em -0.1em #000 inset;padding:.15em .2em .05em;white-space:normal}[data-code-block-theme=twilight] div[data-type=codeBlock] .token.comment,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.prolog,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.doctype,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.cdata{color:#787878}[data-code-block-theme=twilight] div[data-type=codeBlock] .token.punctuation{opacity:.7}[data-code-block-theme=twilight] div[data-type=codeBlock] .token.namespace{opacity:.7}[data-code-block-theme=twilight] div[data-type=codeBlock] .token.tag,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.boolean,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.number,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.deleted{color:#cf694a}[data-code-block-theme=twilight] div[data-type=codeBlock] .token.keyword,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.property,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.selector,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.constant,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.symbol,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.builtin{color:#f9ee9a}[data-code-block-theme=twilight] div[data-type=codeBlock] .token.attr-name,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.attr-value,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.string,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.char,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.operator,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.entity,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.url,[data-code-block-theme=twilight] div[data-type=codeBlock] .language-css .token.string,[data-code-block-theme=twilight] div[data-type=codeBlock] .style .token.string,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.variable,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.inserted{color:#919e6b}[data-code-block-theme=twilight] div[data-type=codeBlock] .token.atrule{color:#7386a5}[data-code-block-theme=twilight] div[data-type=codeBlock] .token.regex,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.important{color:#e9c163}[data-code-block-theme=twilight] div[data-type=codeBlock] .token.important,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.bold{font-weight:bold}[data-code-block-theme=twilight] div[data-type=codeBlock] .token.italic{font-style:italic}[data-code-block-theme=twilight] div[data-type=codeBlock] .token.entity{cursor:help}[data-code-block-theme=twilight] div[data-type=codeBlock] pre[data-line]{padding:1em 0 1em 3em;position:relative}[data-code-block-theme=twilight] div[data-type=codeBlock] .language-markup .token.tag,[data-code-block-theme=twilight] div[data-type=codeBlock] .language-markup .token.attr-name,[data-code-block-theme=twilight] div[data-type=codeBlock] .language-markup .token.punctuation{color:#ad895c}[data-code-block-theme=twilight] div[data-type=codeBlock] .token{position:relative;z-index:1}[data-code-block-theme=twilight] div[data-type=codeBlock] .line-highlight{background:rgba(84,84,84,.25);background:linear-gradient(to right, hsla(0, 0%, 33%, 0.1) 70%, hsla(0, 0%, 33%, 0));border-bottom:1px dashed #545454;border-top:1px dashed #545454;left:0;line-height:inherit;margin-top:.75em;padding:inherit 0;pointer-events:none;position:absolute;right:0;white-space:pre;z-index:0}[data-code-block-theme=twilight] div[data-type=codeBlock] .line-highlight:before,[data-code-block-theme=twilight] div[data-type=codeBlock] .line-highlight[data-end]:after{background-color:#8794a6;border-radius:999px;box-shadow:0 1px #fff;color:#f5f2f0;content:attr(data-start);font:bold 65%/1.5 sans-serif;left:.6em;min-width:1em;padding:0 .5em;position:absolute;text-align:center;text-shadow:none;top:.4em;vertical-align:.3em}[data-code-block-theme=twilight] div[data-type=codeBlock] .line-highlight[data-end]:after{bottom:.4em;content:attr(data-end);top:auto}[data-code-block-theme=coy] div[data-type=codeBlock] code[class*=language-],[data-code-block-theme=coy] div[data-type=codeBlock] pre[class*=language-]{color:#000;background:none;font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}[data-code-block-theme=coy] div[data-type=codeBlock] pre[class*=language-]{position:relative;margin:.5em 0;overflow-y:hidden;padding:0}[data-code-block-theme=coy] div[data-type=codeBlock] pre[class*=language-]>code{position:relative;border-left:10px solid #358ccb;box-shadow:-1px 0px 0px 0px #358ccb,0px 0px 0px 1px #dfdfdf;background-color:#fdfdfd;background-image:linear-gradient(transparent 50%, rgba(69, 142, 209, 0.04) 50%);background-size:3em 3em;background-origin:content-box;background-attachment:local}[data-code-block-theme=coy] div[data-type=codeBlock] code[class*=language-]{max-height:inherit;height:inherit;padding:0 1em;display:block}[data-code-block-theme=coy] div[data-type=codeBlock] :not(pre)>code[class*=language-],[data-code-block-theme=coy] div[data-type=codeBlock] pre[class*=language-]{background-color:#fdfdfd;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin-bottom:1em}[data-code-block-theme=coy] div[data-type=codeBlock] :not(pre)>code[class*=language-]{position:relative;padding:.2em;border-radius:.3em;color:#c92c2c;border:1px solid rgba(0,0,0,.1);display:inline;white-space:normal}[data-code-block-theme=coy] div[data-type=codeBlock] pre[class*=language-]:before,[data-code-block-theme=coy] div[data-type=codeBlock] pre[class*=language-]:after{content:"";z-index:-2;display:block;position:absolute;bottom:.75em;left:.18em;width:40%;height:20%;max-height:13em;box-shadow:0px 13px 8px #979797;-webkit-transform:rotate(-2deg);-moz-transform:rotate(-2deg);-ms-transform:rotate(-2deg);-o-transform:rotate(-2deg);transform:rotate(-2deg)}[data-code-block-theme=coy] div[data-type=codeBlock] pre[class*=language-]:after{right:.75em;left:auto;-webkit-transform:rotate(2deg);-moz-transform:rotate(2deg);-ms-transform:rotate(2deg);-o-transform:rotate(2deg);transform:rotate(2deg)}[data-code-block-theme=coy] div[data-type=codeBlock] .token.comment,[data-code-block-theme=coy] div[data-type=codeBlock] .token.block-comment,[data-code-block-theme=coy] div[data-type=codeBlock] .token.prolog,[data-code-block-theme=coy] div[data-type=codeBlock] .token.doctype,[data-code-block-theme=coy] div[data-type=codeBlock] .token.cdata{color:#7d8b99}[data-code-block-theme=coy] div[data-type=codeBlock] .token.punctuation{color:#5f6364}[data-code-block-theme=coy] div[data-type=codeBlock] .token.property,[data-code-block-theme=coy] div[data-type=codeBlock] .token.tag,[data-code-block-theme=coy] div[data-type=codeBlock] .token.boolean,[data-code-block-theme=coy] div[data-type=codeBlock] .token.number,[data-code-block-theme=coy] div[data-type=codeBlock] .token.function-name,[data-code-block-theme=coy] div[data-type=codeBlock] .token.constant,[data-code-block-theme=coy] div[data-type=codeBlock] .token.symbol,[data-code-block-theme=coy] div[data-type=codeBlock] .token.deleted{color:#c92c2c}[data-code-block-theme=coy] div[data-type=codeBlock] .token.selector,[data-code-block-theme=coy] div[data-type=codeBlock] .token.attr-name,[data-code-block-theme=coy] div[data-type=codeBlock] .token.string,[data-code-block-theme=coy] div[data-type=codeBlock] .token.char,[data-code-block-theme=coy] div[data-type=codeBlock] .token.function,[data-code-block-theme=coy] div[data-type=codeBlock] .token.builtin,[data-code-block-theme=coy] div[data-type=codeBlock] .token.inserted{color:#2f9c0a}[data-code-block-theme=coy] div[data-type=codeBlock] .token.operator,[data-code-block-theme=coy] div[data-type=codeBlock] .token.entity,[data-code-block-theme=coy] div[data-type=codeBlock] .token.url,[data-code-block-theme=coy] div[data-type=codeBlock] .token.variable{color:#a67f59;background:rgba(255,255,255,.5)}[data-code-block-theme=coy] div[data-type=codeBlock] .token.atrule,[data-code-block-theme=coy] div[data-type=codeBlock] .token.attr-value,[data-code-block-theme=coy] div[data-type=codeBlock] .token.keyword,[data-code-block-theme=coy] div[data-type=codeBlock] .token.class-name{color:#1990b8}[data-code-block-theme=coy] div[data-type=codeBlock] .token.regex,[data-code-block-theme=coy] div[data-type=codeBlock] .token.important{color:#e90}[data-code-block-theme=coy] div[data-type=codeBlock] .language-css .token.string,[data-code-block-theme=coy] div[data-type=codeBlock] .style .token.string{color:#a67f59;background:rgba(255,255,255,.5)}[data-code-block-theme=coy] div[data-type=codeBlock] .token.important{font-weight:normal}[data-code-block-theme=coy] div[data-type=codeBlock] .token.bold{font-weight:bold}[data-code-block-theme=coy] div[data-type=codeBlock] .token.italic{font-style:italic}[data-code-block-theme=coy] div[data-type=codeBlock] .token.entity{cursor:help}[data-code-block-theme=coy] div[data-type=codeBlock] .token.namespace{opacity:.7}@media screen and (max-width: 767px){[data-code-block-theme=coy] div[data-type=codeBlock] pre[class*=language-]:before,[data-code-block-theme=coy] div[data-type=codeBlock] pre[class*=language-]:after{bottom:14px;box-shadow:none}}[data-code-block-theme=coy] div[data-type=codeBlock] pre[class*=language-].line-numbers.line-numbers{padding-left:0}[data-code-block-theme=coy] div[data-type=codeBlock] pre[class*=language-].line-numbers.line-numbers code{padding-left:3.8em}[data-code-block-theme=coy] div[data-type=codeBlock] pre[class*=language-].line-numbers.line-numbers .line-numbers-rows{left:0}[data-code-block-theme=coy] div[data-type=codeBlock] pre[class*=language-][data-line]{padding-top:0;padding-bottom:0;padding-left:0}[data-code-block-theme=coy] div[data-type=codeBlock] pre[data-line] code{position:relative;padding-left:4em}[data-code-block-theme=coy] div[data-type=codeBlock] pre .line-highlight{margin-top:0}[data-code-block-theme=solarized-light] div[data-type=codeBlock] code[class*=language-],[data-code-block-theme=solarized-light] div[data-type=codeBlock] pre[class*=language-]{color:#657b83;font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}[data-code-block-theme=solarized-light] div[data-type=codeBlock] pre[class*=language-]::-moz-selection,[data-code-block-theme=solarized-light] div[data-type=codeBlock] pre[class*=language-] ::-moz-selection,[data-code-block-theme=solarized-light] div[data-type=codeBlock] code[class*=language-]::-moz-selection,[data-code-block-theme=solarized-light] div[data-type=codeBlock] code[class*=language-] ::-moz-selection{background:#073642}[data-code-block-theme=solarized-light] div[data-type=codeBlock] pre[class*=language-]::selection,[data-code-block-theme=solarized-light] div[data-type=codeBlock] pre[class*=language-] ::selection,[data-code-block-theme=solarized-light] div[data-type=codeBlock] code[class*=language-]::selection,[data-code-block-theme=solarized-light] div[data-type=codeBlock] code[class*=language-] ::selection{background:#073642}[data-code-block-theme=solarized-light] div[data-type=codeBlock] pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border-radius:.3em}[data-code-block-theme=solarized-light] div[data-type=codeBlock] :not(pre)>code[class*=language-],[data-code-block-theme=solarized-light] div[data-type=codeBlock] pre[class*=language-]{background-color:#fdf6e3}[data-code-block-theme=solarized-light] div[data-type=codeBlock] :not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em}[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.comment,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.prolog,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.doctype,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.cdata{color:#93a1a1}[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.punctuation{color:#586e75}[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.namespace{opacity:.7}[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.property,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.tag,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.boolean,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.number,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.constant,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.symbol,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.deleted{color:#268bd2}[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.selector,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.attr-name,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.string,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.char,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.builtin,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.url,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.inserted{color:#2aa198}[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.entity{color:#657b83;background:#eee8d5}[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.atrule,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.attr-value,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.keyword{color:#859900}[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.function,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.class-name{color:#b58900}[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.regex,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.important,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.variable{color:#cb4b16}[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.important,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.bold{font-weight:bold}[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.italic{font-style:italic}[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.entity{cursor:help}.cherry-detail details{background:rgba(248,249,250,.6666666667);border-radius:8px;overflow:hidden;margin-bottom:10px}.cherry-detail details summary{user-select:none;padding:5px 10px;background-color:#6c757d;color:#fff;border-radius:8px}.cherry-detail details .cherry-detail-body{padding:15px 25px 0 25px}.cherry-detail__multiple{border-radius:8px;overflow:hidden}.cherry-detail__multiple details{margin-bottom:1px;border-radius:0;border:none}.cherry-detail__multiple details summary{border-radius:0}.cherry-text-align__center table{margin-left:auto;margin-right:auto}.cherry-text-align__right table{margin-left:auto}.cherry-panel{margin:10px 0;overflow:hidden;border-radius:8px;box-sizing:border-box;border:.5px solid}.cherry-panel .cherry-panel--title{color:#fff;padding:5px 20px}.cherry-panel .cherry-panel--title.cherry-panel--title__not-empty::before{font-family:"ch-icon";margin:0 12px 0 -6px;vertical-align:bottom}.cherry-panel .cherry-panel--body{padding:5px 20px}.cherry-panel__primary{background-color:#cfe2ff;color:#0a58ca}.cherry-panel__primary .cherry-panel--title{background-color:#0d6dfe}.cherry-panel__primary .cherry-panel--title.cherry-panel--title__not-empty::before{content:""}.cherry-panel__info{background-color:#cff4fc;color:#087990}.cherry-panel__info .cherry-panel--title{background-color:#099cba}.cherry-panel__info .cherry-panel--title.cherry-panel--title__not-empty::before{content:""}.cherry-panel__warning{background-color:#fff3cd;color:#997404}.cherry-panel__warning .cherry-panel--title{background-color:#b38806}.cherry-panel__warning .cherry-panel--title.cherry-panel--title__not-empty::before{content:""}.cherry-panel__danger{background-color:#f8d7da;color:#b02a37}.cherry-panel__danger .cherry-panel--title{background-color:#dc3545}.cherry-panel__danger .cherry-panel--title.cherry-panel--title__not-empty::before{content:""}.cherry-panel__success{background-color:#d1e7dd;color:#146c43}.cherry-panel__success .cherry-panel--title{background-color:#198754}.cherry-panel__success .cherry-panel--title.cherry-panel--title__not-empty::before{content:""}.cherry .doing-resize-img{-moz-user-select:none;-webkit-user-select:none;user-select:none}.cherry .cherry-previewer img{transition:all .1s}.cherry .cherry-previewer-footnote-ref-hover-handler{position:absolute;min-width:200px;max-width:500px;padding:10px;border-radius:5px;z-index:11;box-shadow:rgba(0,0,0,.05) 0px 3px 14px 2px,rgba(0,0,0,.06) 0px 8px 10px 1px,rgba(0,0,0,.1) 0px 5px 5px -3px,rgba(0,0,0,.08) 0px .5px 0px 0px inset,rgba(0,0,0,.08) .5px 0px 0px 0px inset,rgba(0,0,0,.08) 0px -0.5px 0px 0px inset,rgba(0,0,0,.08) -0.5px 0px 0px 0px inset;background:#fff}.cherry .footnote.hidden{display:none}.cherry .cherry-previewer-img-size-handler{position:absolute;box-shadow:0 1px 4px 0 rgba(20,81,154,.5);border:1px solid #3582fb;box-sizing:content-box;pointer-events:none}.cherry .cherry-previewer-img-size-handler .cherry-previewer-img-size-handler__points{position:absolute;height:10px;width:10px;margin-top:-7px;margin-left:-7px;border-radius:9px;background:#3582fb;border:2px solid #fff;box-sizing:content-box;box-shadow:0px 2px 2px 0px rgba(20,81,154,.5);pointer-events:all}.cherry .cherry-previewer-img-size-handler .cherry-previewer-img-size-handler__background{background-repeat:no-repeat;background-size:100% 100%;opacity:.5;width:100%;height:100%}.cherry .cherry-previewer-img-size-handler .cherry-previewer-img-size-handler__points-leftTop{cursor:nw-resize}.cherry .cherry-previewer-img-size-handler .cherry-previewer-img-size-handler__points-rightTop{cursor:sw-resize}.cherry .cherry-previewer-img-size-handler .cherry-previewer-img-size-handler__points-leftBottom{cursor:sw-resize}.cherry .cherry-previewer-img-size-handler .cherry-previewer-img-size-handler__points-rightBottom{cursor:nw-resize}.cherry .cherry-previewer-img-size-handler .cherry-previewer-img-size-handler__points-middleTop{cursor:n-resize}.cherry .cherry-previewer-img-size-handler .cherry-previewer-img-size-handler__points-middleBottom{cursor:n-resize}.cherry .cherry-previewer-img-size-handler .cherry-previewer-img-size-handler__points-leftMiddle{cursor:e-resize}.cherry .cherry-previewer-img-size-handler .cherry-previewer-img-size-handler__points-rightMiddle{cursor:e-resize}.cherry .cherry-previewer-table-content-handler .cherry-previewer-table-content-handler__input{position:absolute}.cherry .cherry-previewer-table-content-handler .cherry-previewer-table-content-handler__input textarea{width:100%;height:100%;border:0;box-sizing:border-box;resize:none;outline:1px solid #3582fb;word-break:break-all}.cherry .cherry-previewer-codeBlock-content-handler .cherry-previewer-codeBlock-content-handler__input{position:absolute}.cherry .cherry-previewer-table-hover-handler{position:absolute;pointer-events:none;z-index:999}.cherry .cherry-previewer-table-hover-handler-container,.cherry .cherry-previewer-table-hover-handler-sort-container,.cherry .cherry-previewer-table-hover-handler-delete-container{position:absolute;height:100%;width:100%;padding:0;margin:0;list-style-type:none}.cherry .cherry-previewer-table-hover-handler__symbol{pointer-events:auto;display:flex;justify-content:center;position:absolute;color:#3582fb;width:12px;height:12px;line-height:12px;border:1px solid rgba(53,130,251,0);background-color:rgba(255,255,255,0);border-radius:3px;cursor:pointer;transition:all .3s}.cherry .cherry-previewer-table-hover-handler__symbol:hover{background-color:rgba(53,130,251,.5333333333);color:#fff}.cherry .cherry-previewer-table-hover-handler__sort{pointer-events:auto;display:flex;justify-content:center;position:absolute;color:#3582fb;width:12px;height:12px;padding:5px 0;line-height:12px;border:1px solid rgba(53,130,251,0);background-color:rgba(255,255,255,0);border-radius:3px;cursor:pointer;transition:all .3s}.cherry .cherry-previewer-table-hover-handler__sort:hover{background-color:rgba(53,130,251,.5333333333);border-color:rgba(53,130,251,.5333333333);color:#fff}.cherry .cherry-previewer-table-hover-handler__sort[data-type=ColUp],.cherry .cherry-previewer-table-hover-handler__sort[data-type=ColDown]{padding:0 5px}.cherry .cherry-previewer-table-hover-handler__delete{pointer-events:auto;position:absolute;color:#fff;width:25px;height:15px;font-size:12px;line-height:12px;border:1px solid rgba(255,77,79,0);border-radius:3px;background-color:rgba(255,77,79,0);color:rgba(255,77,79,.5);cursor:pointer;transition:all .3s}.cherry .cherry-previewer-table-hover-handler__delete:hover{background-color:#ff4d4f;border-color:#ff4d4f;color:#fff}.cherry .cherry-previewer-table-hover-handler__delete[data-type=left],.cherry .cherry-previewer-table-hover-handler__delete[data-type=right]{padding:0;width:18px;height:18px}@keyframes changeBgColor{0%{background-color:rgba(255,255,204,.5333333333)}60%{background-color:rgba(255,255,204,.5333333333)}100%{background-color:rgba(255,255,204,0)}}.cherry .cherry-highlight-line{animation:changeBgColor 3s}@media print{img,figure,pre,table{page-break-inside:avoid}.cherry-previewer{width:100% !important;max-height:none;border-left:none !important}.cherry-toolbar,.cherry-sidebar,.cherry-editor,.cherry-drag{display:none !important}}.cherry-insert-formula-wrappler{width:610px !important;height:300px !important;padding:15px;display:flex;position:fixed !important;z-index:9999999;box-shadow:0 .5rem 1rem rgba(0,0,0,.15);box-sizing:border-box;border-radius:10px;background-color:#fff !important;overflow:hidden}.cherry-insert-formula-wrappler .cherry-insert-formula-more{position:absolute;bottom:0;font-size:12px}.cherry-insert-formula-wrappler .cherry-insert-formula-tabs{width:100px;height:100%;list-style:none;padding:0;margin:0;margin-right:10px}.cherry-insert-formula-wrappler .cherry-insert-formula-tabs .cherry-insert-formula-tab{width:100%;height:30px;text-align:center;border:1px solid #fff;display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer}.cherry-insert-formula-wrappler .cherry-insert-formula-tabs .cherry-insert-formula-tab>a{display:block;text-decoration:none;user-select:none;user-select:none}.cherry-insert-formula-wrappler .cherry-insert-formula-tabs .cherry-insert-formula-tab:not(:first-child){margin-top:10px}.cherry-insert-formula-wrappler .cherry-insert-formula-tabs .cherry-insert-formula-tab.active{color:#000;border:1px solid #000;border-radius:5px}.cherry-insert-formula-wrappler .cherry-insert-formula-select{height:100%;flex:1;display:none;overflow-y:scroll}.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary{width:130px}.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary:not(:first-child){margin-top:10px}.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary .cherry-insert-formula-categary__func{min-width:200px;height:260px;position:absolute;left:255px;top:0;z-index:100;padding:20px 10px;background-color:#fff;border-left:1px solid rgba(0,0,0,.15);display:none;overflow-y:scroll}.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary .cherry-insert-formula-categary__func .cherry-insert-formula-categary__func-categary{border-top:1px solid #e9ecef;border-bottom:1px solid #e9ecef;margin-bottom:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary .cherry-insert-formula-categary__func .cherry-insert-formula-categary__func-item{cursor:pointer;border:1px solid #fff;display:inline-block;text-align:center;background-color:#f8f9fa;margin:2px;padding:2px;vertical-align:middle;line-height:30px;border-color:#f8f9fa;border-radius:5px}.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary .cherry-insert-formula-categary__func .cherry-insert-formula-categary__func-item:hover{border-color:#dae0e5;background-color:#e2e6ea}.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary .cherry-insert-formula-categary__func .cherry-insert-formula-categary__func-item svg,.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary .cherry-insert-formula-categary__func .cherry-insert-formula-categary__func-item img{pointer-events:none}.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary .cherry-insert-formula-categary__func:hover{display:block}.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary .cherry-insert-formula-categary__btn{cursor:pointer;display:inline-block;font-weight:400;text-align:center;vertical-align:middle;user-select:none;background-color:rgba(0,0,0,0);border:1px solid rgba(0,0,0,0);padding:.375rem .75rem;font-size:1rem;line-height:1.5;border-radius:.25rem;width:100%}.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary .cherry-insert-formula-categary__btn>img{width:100%;height:60%}.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary .cherry-insert-formula-categary__btn:hover{color:#3582fb}.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary .cherry-insert-formula-categary__btn:hover+.cherry-insert-formula-categary__func{float:left;display:block}.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary .btn-light{color:#212529;background-color:#ebecf2;border-color:#f8f9fa}.cherry-insert-formula-wrappler .cherry-insert-formula-select.active{display:block}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.no-scrollbar::-webkit-scrollbar{display:none}.formula-utils-bubble-container{width:350px;height:40px;background-color:#fff;position:fixed;left:0;top:0;display:none;z-index:1000;box-sizing:border-box}.formula-utils-bubble-container .formula-utils-btn{flex:1;position:relative}.formula-utils-bubble-container .formula-utils-btn>button{width:100%;height:100%;border:1px solid #fff;background-color:#ebecf2;cursor:pointer;border-radius:5px}.formula-utils-bubble-container .formula-utils-btn>button:hover{background-color:#eee}.formula-utils-bubble-container .formula-utils-btn>button:focus{outline:none}.formula-utils-bubble-container .formula-utils-btn>button:active{background-color:#ddd}.formula-utils-bubble-container .formula-utils-btn>button:hover+.formula-utils-submenu{display:block}.formula-utils-bubble-container .formula-utils-btn .formula-utils-submenu{position:absolute;display:none;width:100%;background-color:#fff;border:1px solid #f8f9fa;left:0;top:100%;box-shadow:0 0 5px #f8f9fa}.formula-utils-bubble-container .formula-utils-btn .formula-utils-submenu:hover{display:block}.formula-utils-bubble-container .formula-utils-btn .formula-utils-submenu div{width:100%;height:40px}.formula-utils-bubble-container .formula-utils-btn .formula-utils-submenu div button{width:100%;height:100%;border:1px solid #fff;background-color:#fff;cursor:pointer}.formula-utils-bubble-container .formula-utils-btn .formula-utils-submenu div button:hover{background-color:#eee}.formula-utils-bubble-container .formula-utils-btn .formula-utils-submenu div button:focus{outline:none}.formula-utils-bubble-container .formula-utils-btn .formula-utils-submenu div button:active{background-color:#ddd}.cherry-shortcut-key-config-panel-wrapper{width:250px !important;height:400px !important}.cherry-shortcut-key-config-panel-wrapper .cherry-shortcut-key-config-panel-inner{width:100%;height:100%;overflow:auto}.cherry-shortcut-key-config-panel-wrapper .cherry-shortcut-key-config-panel-inner::-webkit-scrollbar{display:none}.cherry-shortcut-key-config-panel-wrapper .cherry-shortcut-key-config-panel-inner .shortcut-top{width:100%}.cherry-shortcut-key-config-panel-wrapper .cherry-shortcut-key-config-panel-inner .cherry-shortcut-key-config-panel-ul{list-style:none;padding:0;margin:0}.cherry-shortcut-key-config-panel-wrapper .cherry-shortcut-key-config-panel-inner .cherry-shortcut-key-config-panel-ul .shortcut-key-item{display:flex;justify-content:space-between;height:auto;padding:2px 15px;border-top:1px solid #eee}.cherry-shortcut-key-config-panel-wrapper .cherry-shortcut-key-config-panel-inner .cherry-shortcut-key-config-panel-ul .shortcut-key-item .input-shortcut-wrapper{width:100px}.cherry-shortcut-key-config-panel-wrapper .cherry-shortcut-key-config-panel-inner .cherry-shortcut-key-config-panel-ul .shortcut-key-item .input-shortcut-wrapper input{width:100%}.cherry-shortcut-key-config-panel-wrapper .cherry-shortcut-key-config-panel-inner .cherry-shortcut-key-config-panel-ul .shortcut-key-item .shortcut-key-config-panel-name{max-width:120px}.cherry-shortcut-key-config-panel-wrapper .cherry-shortcut-key-config-panel-inner .cherry-shortcut-key-config-panel-ul .shortcut-key-item .shortcut-key-config-panel-kbd{display:flex;gap:10px;min-width:120px;justify-content:right}.cherry-shortcut-key-config-panel-wrapper .cherry-shortcut-key-config-panel-inner .cherry-shortcut-key-config-panel-ul .shortcut-key-item .shortcut-key-config-panel-kbd .keyboard-key{border-radius:3px;border-style:solid;border-width:1px;display:inline-block;font-size:11px;margin:0 2px;padding:3px 5px;vertical-align:middle;line-height:20px;margin:4px;min-width:16px;text-align:center}.cherry-shortcut-key-config-panel-wrapper .shortcut-static .cherry-shortcut-key-config-panel-ul{gap:0}.cherry-shortcut-key-config-panel-wrapper .shortcut-static .cherry-shortcut-key-config-panel-ul .shortcut-key-item{cursor:default}.cherry-shortcut-key-config-panel-wrapper .shortcut-static .cherry-shortcut-key-config-panel-ul .shortcut-key-item .shortcut-key-config-panel-static{display:flex;gap:3px;min-width:80px;justify-content:right}.cherry-shortcut-key-config-panel-wrapper .shortcut-static .cherry-shortcut-key-config-panel-ul .shortcut-key-item .shortcut-key-config-panel-static .shortcut-split{color:#aaa}.cherry-shortcut-key-config-panel-wrapper .shortcut-panel-title,.cherry-shortcut-key-config-panel-wrapper .shortcut-panel-settings{font-size:14px;padding:10px 15px;background-color:#eee}.cherry-shortcut-key-config-panel-wrapper .shortcut-panel-settings{padding:10px 15px;font-size:12px;cursor:pointer;user-select:none;border-bottom:1px solid #aaa;justify-content:space-between;display:flex}.cherry-shortcut-key-config-panel-wrapper .shortcut-panel-settings .shortcut-settings-btn{height:auto;line-height:1.2em}.cherry-shortcut-key-config-panel-wrapper .shortcut-panel-settings .shortcut-settings-btn:hover{color:#ff4d4f}.cherry-shortcut-key-config-panel-wrapper.disable .cherry-shortcut-key-config-panel-ul{opacity:.3}.cherry-shortcut-key-config-panel-wrapper.disable .j-shortcut-settings-disable-btn{color:#ff4d4f}.cherry{display:flex;flex-flow:row wrap;align-items:stretch;align-content:flex-start;height:100%;min-height:60px;position:relative}.cherry .cherry-editor,.cherry .cherry-previewer{max-height:calc(100% - 48px);min-height:calc(100% - 48px)}.cherry .CodeMirror{height:100%}.cherry.cherry--no-toolbar .cherry-toolbar,.cherry.cherry--no-toolbar .cherry-sidebar{height:0;display:none}.cherry.cherry--no-toolbar .cherry-editor,.cherry.cherry--no-toolbar .cherry-previewer{max-height:100%;min-height:100%}.cherry{font-family:"Helvetica Neue",Arial,"Hiragino Sans GB","STHeiti","Microsoft YaHei","WenQuanYi Micro Hei",sans-serif;font-size:16px;line-height:27px;color:#3f4a56;background:#fff;box-shadow:0 0 10px rgba(128,145,165,.2)}.cherry .ch-icon{vertical-align:middle}.cherry .clearfix{zoom:1}.cherry .clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden;overflow:hidden;font-size:0}.cherry.fullscreen{position:fixed;top:0;left:0;right:0;bottom:0;z-index:99}.cherry .no-select{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.cherry .cherry-insert-table-menu{display:block;position:fixed;top:40px;left:40px;border-collapse:separate;box-shadow:0 0 10px rgba(128,145,165,.2);padding:4px;border-radius:3px;width:auto;height:auto}.cherry .cherry-insert-table-menu-item{padding:7px;border:1px solid #dfe6ee}.cherry .cherry-insert-table-menu-item.active{background-color:#ebf3ff}.cherry[data-toolbar-theme=dark] .cherry-insert-table-menu-item{border-color:rgba(255,255,255,.2)}.cherry[data-toolbar-theme=dark] .cherry-insert-table-menu-item.active{background-color:#d7e6fe}.cherry-dropdown{position:absolute;width:130px;min-height:40px;background:#fff;box-shadow:0 5px 15px -5px rgba(0,0,0,.5);margin-left:-60px;z-index:13}.cherry-dropdown-item{width:100%;padding:0 15px;text-align:left;display:inline-block;height:36px;line-height:36px;font-size:14px;font-style:normal;cursor:pointer;box-sizing:border-box}.cherry-dropdown-item:hover{background:#ebf3ff;color:#5d9bfc}.cherry-dropdown-item__selected{background:#ebf3ff;color:#5d9bfc}.cherry-dropdown-item .ch-icon{margin-right:10px}[data-toolbar-theme=dark] .cherry-dropdown{background:#20304b}[data-toolbar-theme=dark] .cherry-dropdown .cherry-dropdown-item{background:rgba(0,0,0,0);color:#d7e6fe}[data-toolbar-theme=dark] .cherry-dropdown .cherry-dropdown-item:hover{background:rgba(255,255,255,.1);color:#fff}[data-toolbar-theme=dark] .cherry-dropdown .cherry-dropdown-item__selected{background:rgba(255,255,255,.1);color:#5d9bfc}.cherry-toolbar{position:relative;display:flex;align-items:baseline;justify-content:space-between;padding:0 20px;min-height:48px;font-size:14px;line-height:2.8;flex-basis:100%;box-sizing:border-box;z-index:2;user-select:none;box-shadow:0 0 10px rgba(128,145,165,.2);background:#fff;overflow:hidden}.cherry-toolbar .icon-loading.loading{display:inline-block;width:8px;height:8px}.cherry-toolbar .icon-loading.loading:after{content:" ";display:block;width:8px;height:8px;margin-left:2px;margin-top:-2px;border-radius:50%;border:2px solid #000;border-color:#000 rgba(0,0,0,0) #000 rgba(0,0,0,0);animation:loading 1.2s linear infinite}[data-toolbar-theme=dark] .cherry-toolbar{background:#20304b;box-shadow:0 0 10px rgba(128,145,165,.2)}[data-toolbar-theme=dark] .cherry-toolbar .cherry-toolbar-button{color:#d7e6fe;background:rgba(0,0,0,0)}[data-toolbar-theme=dark] .cherry-toolbar .cherry-toolbar-button:hover{color:#fff;background:rgba(255,255,255,.1)}.cherry-toolbar .toolbar-left,.cherry-toolbar .toolbar-right{display:flex;align-items:center;min-height:48px;flex-wrap:wrap;flex:1}.cherry-toolbar .toolbar-left{margin-right:20px}.cherry-toolbar .toolbar-right{flex:0 1 auto;flex-direction:row-reverse;margin-left:10px;box-sizing:border-box;min-height:0}.cherry-toolbar.preview-only .cherry-toolbar-button{display:none}.cherry-toolbar.preview-only .cherry-toolbar-switchPreview{display:inline}.cherry-toolbar-button{float:left;padding:0 12px;height:38px;color:#3f4a56;background:rgba(0,0,0,0);border:1px solid rgba(0,0,0,0);-webkit-transition:background-color ease-in-out .15s,color ease-in-out .15s,border-color ease-in-out .15s;transition:background-color ease-in-out .15s,color ease-in-out .15s,border-color ease-in-out .15s;cursor:pointer;font-style:normal}.cherry-toolbar-button:hover{color:#5d9bfc;background:#ebf3ff}.cherry-toolbar-button.cherry-toolbar-split{font-size:0;height:19px;padding:0;margin:9.5px 4px;border:1px solid rgba(0,0,0,0);border-left:1px solid #dfe6ee;pointer-events:none;overflow:hidden;opacity:.5}.cherry-toolbar-button.disabled{color:#ccc}.cherry .ace_search{background:#fff}.cherry-sidebar{width:30px;position:absolute;top:48px;right:7px;z-index:11;bottom:0;overflow:hidden}.cherry-sidebar .cherry-toolbar-button{height:30px;padding:3px 12px 0 6px}.cherry-sidebar .cherry-toolbar-button:hover{background:rgba(0,0,0,0)}.cherry-sidebar .cherry-toolbar-button .icon-loading.loading{display:inline-block;width:8px;height:8px}.cherry-sidebar .cherry-toolbar-button .icon-loading.loading:after{content:" ";display:block;width:8px;height:8px;margin-left:2px;margin-top:-2px;border-radius:50%;border:2px solid #000;border-color:#000 rgba(0,0,0,0) #000 rgba(0,0,0,0);animation:loading 1.2s linear infinite}@keyframes loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.cherry-bubble{position:absolute;display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;font-size:14px;min-height:35px;min-width:50px;border:1px solid #dfe6ee;background-color:#fff;box-shadow:0 2px 15px -5px rgba(0,0,0,.5);border-radius:3px;z-index:8}.cherry-bubble.cherry-bubble--centered{left:50%;transform:translateX(-50%)}.cherry-bubble .cherry-bubble-top,.cherry-bubble .cherry-bubble-bottom{position:absolute;left:50%;width:0;height:0;margin-left:-8px;border-left:8px solid rgba(0,0,0,0);border-right:8px solid rgba(0,0,0,0)}.cherry-bubble .cherry-bubble-top{top:0;transform:translateY(-100%);border-bottom:8px solid #fff}.cherry-bubble .cherry-bubble-bottom{bottom:0;transform:translateY(100%);border-top:8px solid #fff}.cherry-bubble .cherry-toolbar-button{display:inline-flex;align-items:center;justify-content:center;height:35px;cursor:pointer;user-select:none}.cherry-bubble .cherry-toolbar-button:hover{border-color:#dfe6ee;background-color:rgba(89,128,166,.05)}.cherry-bubble .cherry-toolbar-button.cherry-toolbar-split{height:65%;min-height:22.75px}[data-toolbar-theme=dark] .cherry-bubble{border-color:#20304b;background:#20304b}[data-toolbar-theme=dark] .cherry-bubble .cherry-toolbar-button{color:#d7e6fe;background:rgba(0,0,0,0)}[data-toolbar-theme=dark] .cherry-bubble .cherry-toolbar-button:hover{color:#fff;background:rgba(255,255,255,.1)}[data-toolbar-theme=dark] .cherry-bubble .cherry-bubble-top{border-bottom-color:#20304b}[data-toolbar-theme=dark] .cherry-bubble .cherry-bubble-bottom{border-top-color:#20304b}[data-toolbar-theme=dark] .cherry-bubble .cherry-toolbar-button:hover{border-color:#20304b}.cherry-switch-paste .switch-btn--bg{position:absolute;width:50%;height:100%;box-sizing:border-box;z-index:-1;left:0;top:0;opacity:.3;background-color:#5d9bfc;border-radius:2px;transition:all .3s}.cherry-switch-paste .cherry-toolbar-button{display:inline-flex;align-items:center;justify-content:center;width:80px;text-align:center}.cherry-switch-paste .cherry-toolbar-button:hover{border-color:rgba(0,0,0,0)}.cherry-switch-paste[data-type=text] .cherry-text-btn{color:#3f4a56}.cherry-switch-paste[data-type=text] .cherry-md-btn{color:#5d9bfc}.cherry-switch-paste[data-type=md] .cherry-md-btn{color:#3f4a56}.cherry-switch-paste[data-type=md] .cherry-text-btn{color:#5d9bfc}.cherry-switch-paste[data-type=md] .switch-btn--bg{left:50%}[data-toolbar-theme=dark] .cherry-switch-paste .switch-btn--bg{background-color:#fff}[data-toolbar-theme=dark] .cherry-switch-paste[data-type=text] .cherry-text-btn{color:#d7e6fe}[data-toolbar-theme=dark] .cherry-switch-paste[data-type=text] .cherry-md-btn{color:#fff}[data-toolbar-theme=dark] .cherry-switch-paste[data-type=md] .cherry-md-btn{color:#d7e6fe}[data-toolbar-theme=dark] .cherry-switch-paste[data-type=md] .cherry-text-btn{color:#fff}[data-toolbar-theme=dark] .cherry-switch-paste[data-type=md] .switch-btn--bg{left:50%}.cherry-floatmenu{z-index:4;display:none;position:absolute;left:30px;margin-left:60px;height:27px;line-height:27px;border-radius:3px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.cherry-floatmenu .cherry-toolbar-button{float:left;padding:0 9px;margin:0;height:27px;line-height:27px;font-size:14px;color:#3f4a56;overflow:hidden;vertical-align:middle;text-align:center;border:0;cursor:pointer;font-style:normal}.cherry-floatmenu .cherry-toolbar-button.cherry-toolbar-split{border-left:1px solid #dfe6ee;width:0;padding:0;overflow:hidden;height:25px}.cherry-floatmenu .cherry-toolbar-button .ch-icon{color:#aaa;font-size:12px}.cherry-floatmenu .cherry-toolbar-button:hover{background:rgba(0,0,0,.05)}.cherry-floatmenu .cherry-toolbar-button:hover .ch-icon{color:#3f4a56}.cherry-editor{position:relative;padding-top:5px;padding-right:5px;width:50%;box-sizing:border-box;overflow:hidden}.cherry-editor.cherry-editor--full{width:100%;padding-right:0}.cherry-editor.cherry-editor--hidden{display:none}.cherry-editor-writing-style--focus::before{content:"";display:block;width:100%;position:absolute;top:0;background:linear-gradient(to bottom, rgba(0, 0, 0, 0.0235294118), rgba(0, 0, 0, 0.2));pointer-events:none;z-index:11}.cherry-editor-writing-style--focus::after{content:"";display:block;width:100%;position:absolute;bottom:0;background:linear-gradient(to top, rgba(0, 0, 0, 0.0235294118), rgba(0, 0, 0, 0.2));pointer-events:none;z-index:11}.cherry-editor-writing-style--typewriter .CodeMirror-lines{position:relative}.cherry-editor-writing-style--typewriter .CodeMirror-lines::before{content:"";display:block}.cherry-editor-writing-style--typewriter .CodeMirror-lines::after{content:"";display:block}.cherry-editor .CodeMirror{font-family:"Helvetica Neue",Arial,"Hiragino Sans GB","STHeiti","Microsoft YaHei","WenQuanYi Micro Hei",sans-serif;background:#fff;color:#3f4a56}.cherry-editor .CodeMirror textarea{font-size:27px}.cherry-editor .CodeMirror-lines{padding:15px 34px}.cherry-editor .CodeMirror-lines .long-text,.cherry-editor .CodeMirror-lines .drawio,.cherry-editor .CodeMirror-lines .base64{display:inline-block;overflow:hidden;text-overflow:ellipsis;max-width:80px;white-space:nowrap;vertical-align:bottom;color:#8b008b !important;font-size:12px !important}.cherry-editor .cm-s-default .cm-header{color:#3f4a56}.cherry-editor .cm-s-default .cm-string{color:#3f4a56}.cherry-editor .cm-s-default .cm-comment{color:#3582fb;font-family:"Menlo","Liberation Mono","Consolas","DejaVu Sans Mono","Ubuntu Mono","Courier New","andale mono","lucida console",monospace;font-size:.9em}.cherry-editor .cm-s-default .cm-whitespace,.cherry-editor .cm-tab{font-family:"Menlo","Liberation Mono","Consolas","DejaVu Sans Mono","Ubuntu Mono","Courier New","andale mono","lucida console",monospace;font-size:.9em}.cherry-editor .cm-s-default .cm-quote{color:#3582fb}.cherry-editor .cm-s-default .cm-link{color:#3582fb}.cherry-editor .cm-s-default .cm-url{background:#d7e6fe;font-family:"Menlo","Liberation Mono","Consolas","DejaVu Sans Mono","Ubuntu Mono","Courier New","andale mono","lucida console",monospace;font-size:.9em}.cherry-editor .cm-s-default .cm-variable-2{color:#3f4a56}.cherry-editor .cm-s-default .cm-variable-3{color:#3f4a56}.cherry-editor .cm-s-default .cm-keyword{color:#3f4a56}.cherry-editor .cm-s-default .cm-fullWidth{color:#d71616;z-index:3;cursor:pointer}.cherry-drag{width:15px;cursor:ew-resize;position:absolute;z-index:12;background:rgba(0,0,0,0)}.cherry-drag.cherry-drag--show{width:5px;display:block;background:#dfe6ee}.cherry-drag.cherry-drag--hidden{display:none}.cherry-editor-mask{z-index:10;position:absolute;display:none;background:rgba(0,0,0,.2)}.cherry-editor-mask.cherry-editor-mask--show{display:block}.cherry-previewer-mask{z-index:10;position:absolute;display:none;background:rgba(0,0,0,.4)}.cherry-previewer-mask.cherry-previewer-mask--show{display:block}.cherry-previewer-codeBlock-click-handler{position:absolute;z-index:1}.cherry-mask-code-block{width:100%;padding-top:50px;display:none;background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0)), to(#fff));background-image:linear-gradient(-180deg, rgba(255, 255, 255, 0) 0%, #fff 100%);text-align:center;position:absolute;left:0;right:0;bottom:.5em;z-index:10}.cherry-mask-code-block .expand-btn{width:25px;height:25px;border:1px solid rgba(255,255,255,0);cursor:pointer;border-radius:5px;transition:all .3s;z-index:12;color:#3582fb;background-color:#d7e6fe;display:inline-block}.cherry-mask-code-block .expand-btn:hover{color:#eee;background-color:#3582fb;border-color:#eee}.cherry-code-unExpand pre{height:240px;overflow:hidden !important}.cherry-code-unExpand .cherry-mask-code-block{display:inline-block}.cherry-previewer-codeBlock-hover-handler{z-index:0;position:absolute;pointer-events:none}.cherry-previewer-codeBlock-hover-handler *{pointer-events:all}.cherry-previewer-codeBlock-hover-handler .cherry-code-block-custom-btn,.cherry-previewer-codeBlock-hover-handler .cherry-copy-code-block,.cherry-previewer-codeBlock-hover-handler .cherry-unExpand-code-block,.cherry-previewer-codeBlock-hover-handler .cherry-edit-code-block{position:relative;width:25px;text-align:center;height:25px;border:1px solid #3582fb;cursor:pointer;float:right;top:15px;border-radius:5px;transition:all .3s;z-index:2;color:#3582fb;background-color:#eee;border-color:#3582fb}.cherry-previewer-codeBlock-hover-handler .cherry-code-block-custom-btn{width:auto}.cherry-previewer-codeBlock-hover-handler .cherry-expand-code-block{position:absolute;width:25px;text-align:center;height:25px;border:1px solid #3582fb;cursor:pointer;float:right;border-radius:5px;margin-left:-27px;transition:all .3s;z-index:2;color:#3582fb;background-color:#eee;border-color:#3582fb}.cherry-previewer-codeBlock-hover-handler .cherry-expand-code-block{top:45px;right:10px}.cherry-previewer-codeBlock-hover-handler .cherry-unExpand-code-block{z-index:12}.cherry-previewer-codeBlock-hover-handler .cherry-unExpand-code-block.hidden{display:none}.cherry-previewer-codeBlock-hover-handler .cherry-code-block-custom-btn:hover,.cherry-previewer-codeBlock-hover-handler .cherry-copy-code-block:hover,.cherry-previewer-codeBlock-hover-handler .cherry-expand-code-block:hover,.cherry-previewer-codeBlock-hover-handler .cherry-unExpand-code-block:hover,.cherry-previewer-codeBlock-hover-handler .cherry-edit-code-block:hover{color:#eee;background-color:#3582fb;border-color:#eee}.cherry-previewer-codeBlock-hover-handler .cherry-code-preview-lang-select{position:absolute;transform:translate(2px, -50%)}.float-previewer-wrap{position:fixed;right:0;top:0;z-index:100;border-radius:12px;overflow:hidden;box-shadow:0 0 60px rgba(0,0,0,.1);resize:both;min-width:430px;min-height:300px}.float-previewer-wrap.float-previewer-dragging{box-shadow:0 0 60px rgba(0,0,0,.3)}.float-previewer-wrap.float-previewer-dragging .float-previewer-header{cursor:grabbing;background:#ace4ff}.float-previewer-wrap .float-previewer-header{z-index:999999;height:40px;border-bottom:1px solid #ebedee;background:#caecfd;display:flex;align-items:center;justify-content:space-between;padding:0 20px;cursor:grab}.float-previewer-wrap .float-previewer-header .float-previewer-title{user-select:none;font-size:16px;color:#333;font-weight:bold}.float-previewer-wrap .cherry-previewer{border-left:none}.cherry-previewer{padding:20px 45px 20px 20px;border-left:2px solid #ebedee;width:50%;box-sizing:border-box;background-color:#fff;min-height:auto;overflow-y:auto;-webkit-print-color-adjust:exact}.cherry-previewer .cherry-mobile-previewer-content{width:375px;height:100%;margin:0 auto;padding:25px 30px;overflow-y:scroll;box-shadow:0 0 60px rgba(0,0,0,.1);box-sizing:border-box}.cherry-previewer.cherry-previewer--hidden{width:0;display:none}.cherry-previewer.cherry-previewer--full{width:100%}.cherry-previewer .cherry-list__upper-roman{list-style:upper-roman}.cherry-previewer .cherry-list__lower-greek{list-style:lower-greek}.cherry-previewer .cherry-list__lower-alpha{list-style:lower-alpha}.cherry-previewer .cherry-list__cjk-ideographic{list-style:cjk-ideographic}.cherry-previewer .cherry-list__circle{list-style:circle}.cherry-previewer .cherry-list__square{list-style:square}[data-code-block-theme=default] .cherry-previewer .cherry-code-block-custom-btn,[data-code-block-theme=default] .cherry-previewer .cherry-copy-code-block,[data-code-block-theme=default] .cherry-previewer .cherry-expand-code-block,[data-code-block-theme=default] .cherry-previewer .cherry-unExpand-code-block,[data-code-block-theme=default] .cherry-previewer .cherry-edit-code-block,[data-code-block-theme=funky] .cherry-previewer .cherry-code-block-custom-btn,[data-code-block-theme=funky] .cherry-previewer .cherry-copy-code-block,[data-code-block-theme=funky] .cherry-previewer .cherry-expand-code-block,[data-code-block-theme=funky] .cherry-previewer .cherry-unExpand-code-block,[data-code-block-theme=funky] .cherry-previewer .cherry-edit-code-block,[data-code-block-theme=solarized-light] .cherry-previewer .cherry-code-block-custom-btn,[data-code-block-theme=solarized-light] .cherry-previewer .cherry-copy-code-block,[data-code-block-theme=solarized-light] .cherry-previewer .cherry-expand-code-block,[data-code-block-theme=solarized-light] .cherry-previewer .cherry-unExpand-code-block,[data-code-block-theme=solarized-light] .cherry-previewer .cherry-edit-code-block,[data-code-block-theme=coy] .cherry-previewer .cherry-code-block-custom-btn,[data-code-block-theme=coy] .cherry-previewer .cherry-copy-code-block,[data-code-block-theme=coy] .cherry-previewer .cherry-expand-code-block,[data-code-block-theme=coy] .cherry-previewer .cherry-unExpand-code-block,[data-code-block-theme=coy] .cherry-previewer .cherry-edit-code-block{background-color:#3582fb}@keyframes blink{0%{opacity:1}50%{opacity:0}100%{opacity:1}}.cherry-previewer .cherry-flow-session-cursor{background-color:rgba(53,130,251,.5333333333);padding:0 2.5px;animation:blink 1s infinite}.cherry-color-wrap{display:none;position:fixed;width:auto;padding:5px 10px;z-index:6;background:#fff;box-shadow:0 0 10px rgba(128,145,165,.2)}.cherry-color-wrap h3{font-size:12px;margin:0px;font-weight:400}[data-toolbar-theme=dark] .cherry-color-wrap h3{color:#d7e6fe}.cherry-color-wrap .cherry-color-text{float:left;width:128px;margin:0 8px 0 5px}.cherry-color-wrap .cherry-color-bg{float:left;width:128px;margin-right:5px}.cherry-color-wrap .cherry-color-item{float:left;width:14px;height:14px;border:1px solid #fff;cursor:pointer}.cherry-color-wrap .cherry-color-item:hover{border:1px solid #000}.Cherry-Math svg{max-width:100%}.cherry-suggester-panel{display:none;position:absolute;left:0;top:0;background:#fff;border-radius:2px;max-height:500px;box-shadow:0 2px 8px 1px rgba(0,0,0,.2);overflow-x:hidden;overflow-y:auto}.cherry-suggester-panel .cherry-suggester-panel__item{border:none;white-space:nowrap;min-width:50px;padding:5px 13px;color:#333;display:block;cursor:pointer}.cherry-suggester-panel .cherry-suggester-panel__item.cherry-suggester-panel__item--selected{background-color:#f2f2f5;text-decoration:none;color:#eb7350}.cherry-suggester-panel .cherry-suggester-panel__item>i{display:inline-block;transform:translateY(2px);margin-right:8px}.cherry-suggestion{background-color:#ebf3ff;color:#3582fb;padding:1px 4px;border-radius:3px;cursor:pointer}.cherry-flex-toc{z-index:11;position:absolute;width:160px;height:calc(100% - 220px);max-height:600px;right:0;top:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:rgba(255,255,255,.2);margin-right:8px;box-sizing:border-box;user-select:none;box-shadow:0px 5px 11px rgba(51,51,51,.2);border-radius:10px;transition:all .3s}.cherry-flex-toc.cherry-flex-toc__fixed{position:fixed}.cherry-flex-toc:hover{background-color:#fff;width:260px}.cherry-flex-toc .cherry-toc-head{border-bottom:1px dashed rgba(51,51,51,.2);padding:5px}.cherry-flex-toc .cherry-toc-head .cherry-toc-title{font-size:16px;font-weight:bold;padding-left:5px}.cherry-flex-toc .cherry-toc-head .ch-icon-chevronsLeft{display:none}.cherry-flex-toc .cherry-toc-head .ch-icon-chevronsRight,.cherry-flex-toc .cherry-toc-head .ch-icon-chevronsLeft{padding:5px;position:absolute;right:0;top:0}.cherry-flex-toc .cherry-toc-head i{cursor:pointer;padding:5px 5px 0}.cherry-flex-toc .cherry-toc-head i:hover{color:#3582fb}.cherry-flex-toc .cherry-toc-list{overflow-y:auto;height:calc(100% - 40px);overflow-x:hidden;width:100%;padding-bottom:10px}.cherry-flex-toc .cherry-toc-list .cherry-toc-one-a{display:block;text-decoration:none;color:#000;border-left:5px solid rgba(51,51,51,.2);height:28px;line-height:28px;transition:all .3s;padding-left:10px;overflow:hidden;word-break:break-all;text-overflow:ellipsis;cursor:pointer}.cherry-flex-toc .cherry-toc-list .cherry-toc-one-a.current{border-left-color:#3582fb;color:#3582fb}.cherry-flex-toc .cherry-toc-list .cherry-toc-one-a:hover{border-left-color:rgba(53,130,251,.6666666667);color:rgba(53,130,251,.6666666667)}.cherry-flex-toc .cherry-toc-list .cherry-toc-one-a__1{font-weight:bold}.cherry-flex-toc .cherry-toc-list .cherry-toc-one-a__2{padding-left:20px}.cherry-flex-toc .cherry-toc-list .cherry-toc-one-a__3{padding-left:40px}.cherry-flex-toc .cherry-toc-list .cherry-toc-one-a__4{padding-left:60px}.cherry-flex-toc .cherry-toc-list .cherry-toc-one-a__5{padding-left:80px}.cherry-flex-toc.cherry-flex-toc__pure{width:30px;height:calc(100% - 200px);max-height:600px;background:rgba(255,255,255,0);box-shadow:none;border-radius:0}.cherry-flex-toc.cherry-flex-toc__pure .cherry-toc-head{height:25px;border-bottom:1px dashed rgba(51,51,51,0)}.cherry-flex-toc.cherry-flex-toc__pure .cherry-toc-head .cherry-toc-title{display:none}.cherry-flex-toc.cherry-flex-toc__pure .cherry-toc-head .ch-icon-chevronsRight{display:none}.cherry-flex-toc.cherry-flex-toc__pure .cherry-toc-head .ch-icon-chevronsLeft{display:inline}.cherry-flex-toc.cherry-flex-toc__pure .cherry-toc-list{padding-left:7px}.cherry-flex-toc.cherry-flex-toc__pure .cherry-toc-list .cherry-toc-one-a{overflow:hidden;width:0;margin-bottom:3px;height:5px;border-left-width:18px}.cherry-flex-toc.auto-num .cherry-toc-list{counter-reset:toclevel1}.cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__1{counter-reset:toclevel2}.cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__2{counter-reset:toclevel3}.cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__3{counter-reset:toclevel4}.cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__4{counter-reset:toclevel5}.cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__5{counter-reset:toclevel6}.cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__1:before{counter-increment:toclevel1;content:counter(toclevel1) ". "}.cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__2:before{counter-increment:toclevel2;content:counter(toclevel1) "." counter(toclevel2) ". "}.cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__3:before{counter-increment:toclevel3;content:counter(toclevel1) "." counter(toclevel2) "." counter(toclevel3) ". "}.cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__4:before{counter-increment:toclevel4;content:counter(toclevel1) "." counter(toclevel2) "." counter(toclevel3) "." counter(toclevel4) ". "}.cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__5:before{counter-increment:toclevel5;content:counter(toclevel1) "." counter(toclevel2) "." counter(toclevel3) "." counter(toclevel4) "." counter(toclevel5) ". "}.cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__6:before{counter-increment:toclevel5;content:counter(toclevel1) "." counter(toclevel2) "." counter(toclevel3) "." counter(toclevel4) "." counter(toclevel5) "." counter(toclevel6) ". "}.cherry-markdown.theme__default ul.cherry-list__upper-roman{list-style:upper-roman}.cherry-markdown.theme__default ul.cherry-list__lower-alpha{list-style:lower-alpha}.cherry-markdown.theme__default ul.cherry-list__lower-greek{list-style:lower-greek}.cherry-markdown.theme__default ul.cherry-list__cjk-ideographic{list-style:cjk-ideographic}.cherry-markdown.theme__default ul.cherry-list__circle{list-style:circle}.cherry-markdown.theme__default ul.cherry-list__square{list-style:square}.cherry.theme__dark .cherry-toolbar,.cherry.theme__dark .cherry-floatmenu,.cherry.theme__dark .cherry-bubble,.cherry.theme__dark .cherry-sidebar{background:#3c3c3c;border-color:#3c3c3c}.cherry.theme__dark .cherry-toolbar .cherry-toolbar-button,.cherry.theme__dark .cherry-floatmenu .cherry-toolbar-button,.cherry.theme__dark .cherry-bubble .cherry-toolbar-button,.cherry.theme__dark .cherry-sidebar .cherry-toolbar-button{color:#d7e6fe}.cherry.theme__dark .cherry-toolbar .cherry-toolbar-button:hover,.cherry.theme__dark .cherry-floatmenu .cherry-toolbar-button:hover,.cherry.theme__dark .cherry-bubble .cherry-toolbar-button:hover,.cherry.theme__dark .cherry-sidebar .cherry-toolbar-button:hover{background-color:#454646;color:#fff !important;border-color:#3c3c3c}.cherry.theme__dark .cherry-toolbar .cherry-toolbar-button:hover i,.cherry.theme__dark .cherry-floatmenu .cherry-toolbar-button:hover i,.cherry.theme__dark .cherry-bubble .cherry-toolbar-button:hover i,.cherry.theme__dark .cherry-sidebar .cherry-toolbar-button:hover i{color:#fff !important}.cherry.theme__dark .cherry-dropdown{background:#3c3c3c}.cherry.theme__dark .cherry-dropdown .cherry-dropdown-item{color:#d7e6fe}.cherry.theme__dark .cherry-dropdown .cherry-dropdown-item__selected{background-color:#454646;color:#fff}.cherry.theme__dark .cherry-dropdown .cherry-dropdown-item:hover{background-color:#454646;color:#fff}.cherry.theme__dark .cherry-dropdown.cherry-color-wrap h3{color:#d7e6fe}.cherry.theme__dark .cherry-dropdown.cherry-color-wrap .cherry-color-item{border-color:#454646}.cherry.theme__dark .cherry-dropdown.cherry-color-wrap .cherry-color-item:hover{border-color:#f78553}.cherry.theme__dark .cherry-dropdown .cherry-insert-table-menu-item{border-color:#454646}.cherry.theme__dark .cherry-bubble .cherry-bubble-bottom{border-top-color:#3c3c3c}.cherry.theme__dark .cherry-bubble .cherry-bubble-top{border-bottom-color:#3c3c3c}.cherry.theme__dark .cherry-editor{background-color:#252526}.cherry.theme__dark .cherry-editor .CodeMirror{background-color:#252526}.cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-cursor{border-left:1px solid #fff}.cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-scroll span,.cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-scroll .cm-variable-2,.cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-scroll .cm-string,.cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-scroll .cm-strong,.cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-scroll .cm-em,.cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-scroll .cm-meta{color:#c8c8c8}.cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-scroll .cm-image-marker,.cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-scroll .cm-quote,.cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-scroll .cm-header,.cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-scroll .cm-atom{color:#f78553}.cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-scroll .cm-url{background-color:#513838}.cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-scroll .cm-comment,.cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-scroll .cm-url{color:#ffcb6b}.cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-selected{background-color:#454646}.cherry.theme__dark .cherry-sidebar{box-shadow:0 0 10px rgba(128,145,165,.2)}.cherry.theme__dark .cherry-previewer{background-color:#333}.cherry.theme__dark .cherry-previewer .cherry-mobile-previewer-content{background-color:#252526}.cherry.theme__dark .cherry-previewer-table-content-handler .cherry-previewer-table-content-handler__input textarea{background-color:#252526;color:#c8c8c8;outline-color:#f78553}.cherry.theme__dark .cherry-flex-toc:hover{background-color:#d0cece;width:260px}.cherry.theme__dark .cherry-flex-toc .cherry-toc-head i:hover{color:#f78553}.cherry.theme__dark .cherry-flex-toc .cherry-toc-list .cherry-toc-one-a{border-left-color:rgba(247,133,83,.3)}.cherry.theme__dark .cherry-flex-toc .cherry-toc-list .cherry-toc-one-a.current{border-left-color:#ff6421;color:#ff6421}.cherry.theme__dark .cherry-flex-toc .cherry-toc-list .cherry-toc-one-a:hover{border-left-color:#f7a20e;color:#ff6421}.cherry.theme__dark .cherry-flex-toc.cherry-flex-toc__pure{width:30px;height:calc(100% - 200px);max-height:600px;background:rgba(255,255,255,0);box-shadow:none;border-radius:0}.cherry.theme__dark .cherry-flex-toc.cherry-flex-toc__pure .cherry-toc-head{height:25px;border-bottom:1px dashed rgba(51,51,51,0)}.cherry.theme__dark .cherry-flex-toc.cherry-flex-toc__pure .cherry-toc-head .cherry-toc-title{display:none}.cherry.theme__dark .cherry-flex-toc.cherry-flex-toc__pure .cherry-toc-head .ch-icon-chevronsRight{display:none}.cherry.theme__dark .cherry-flex-toc.cherry-flex-toc__pure .cherry-toc-head .ch-icon-chevronsLeft{display:inline;color:#ff6421}.cherry.theme__dark .cherry-flex-toc.cherry-flex-toc__pure .cherry-toc-list{padding-left:7px}.cherry.theme__dark .cherry-flex-toc.cherry-flex-toc__pure .cherry-toc-list .cherry-toc-one-a{overflow:hidden;width:0;margin-bottom:3px;height:5px;border-left-width:18px}.cherry.theme__dark .cherry-flex-toc.auto-num .cherry-toc-list{counter-reset:toclevel1}.cherry.theme__dark .cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__1{counter-reset:toclevel2}.cherry.theme__dark .cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__2{counter-reset:toclevel3}.cherry.theme__dark .cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__3{counter-reset:toclevel4}.cherry.theme__dark .cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__4{counter-reset:toclevel5}.cherry.theme__dark .cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__5{counter-reset:toclevel6}.cherry.theme__dark .cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__1:before{counter-increment:toclevel1;content:counter(toclevel1) ". "}.cherry.theme__dark .cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__2:before{counter-increment:toclevel2;content:counter(toclevel1) "." counter(toclevel2) ". "}.cherry.theme__dark .cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__3:before{counter-increment:toclevel3;content:counter(toclevel1) "." counter(toclevel2) "." counter(toclevel3) ". "}.cherry.theme__dark .cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__4:before{counter-increment:toclevel4;content:counter(toclevel1) "." counter(toclevel2) "." counter(toclevel3) "." counter(toclevel4) ". "}.cherry.theme__dark .cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__5:before{counter-increment:toclevel5;content:counter(toclevel1) "." counter(toclevel2) "." counter(toclevel3) "." counter(toclevel4) "." counter(toclevel5) ". "}.cherry.theme__dark .cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__6:before{counter-increment:toclevel5;content:counter(toclevel1) "." counter(toclevel2) "." counter(toclevel3) "." counter(toclevel4) "." counter(toclevel5) "." counter(toclevel6) ". "}.cherry-markdown.theme__dark{color:#c8c8c8;background-color:#333}.cherry-markdown.theme__dark h1,.cherry-markdown.theme__dark h2,.cherry-markdown.theme__dark h3,.cherry-markdown.theme__dark h4,.cherry-markdown.theme__dark h5{color:#f78553}.cherry-markdown.theme__dark ul.cherry-list__upper-roman{list-style:upper-roman}.cherry-markdown.theme__dark ul.cherry-list__lower-alpha{list-style:lower-alpha}.cherry-markdown.theme__dark ul.cherry-list__lower-greek{list-style:lower-greek}.cherry-markdown.theme__dark ul.cherry-list__cjk-ideographic{list-style:cjk-ideographic}.cherry-markdown.theme__dark ul.cherry-list__circle{list-style:circle}.cherry-markdown.theme__dark ul.cherry-list__square{list-style:square}.cherry-markdown.theme__dark ul.cherry-list__default{background-color:#333}.cherry-markdown.theme__dark blockquote{color:#c8c8c8}.cherry-markdown.theme__dark a{text-decoration:none;color:#ffcb6b}.cherry-markdown.theme__dark a:hover{color:#f78553}.cherry-markdown.theme__dark hr{border-color:dimgray}.cherry-markdown.theme__dark code:not([class]){background-color:#513838;color:#ffcb6b;border:1px solid dimgray}.cherry-markdown.theme__dark table,.cherry-markdown.theme__dark .cherry-table{color:#c8c8c8}.cherry-markdown.theme__dark table th,.cherry-markdown.theme__dark .cherry-table th{background-color:#513838}.cherry-markdown.theme__dark table tr,.cherry-markdown.theme__dark table th,.cherry-markdown.theme__dark table td,.cherry-markdown.theme__dark .cherry-table tr,.cherry-markdown.theme__dark .cherry-table th,.cherry-markdown.theme__dark .cherry-table td{border-color:dimgray}.cherry-markdown.theme__dark .footnote{border-color:dimgray}.cherry-markdown.theme__dark .footnote .footnote-title{background-color:#513838}.cherry-markdown.theme__dark .footnote .one-footnote{color:#c8c8c8;border-color:dimgray}.cherry-markdown.theme__dark .footnote .one-footnote a.footnote-ref{padding:5px}.cherry-markdown.theme__dark .toc{border:1px solid dimgray;margin-top:15px;margin-bottom:15px;margin-right:15px}.cherry-markdown.theme__dark .toc .toc-title{padding:15px;margin-bottom:15px;border-bottom:1px solid dimgray}.cherry-markdown.theme__dark .toc .toc-li{border:none;padding:0 20px}.cherry-markdown.theme__dark .toc .toc-li a{color:#c8c8c8}.cherry-markdown.theme__dark .toc .toc-li a:hover{color:#f78553}.cherry-markdown.theme__dark figure svg path,.cherry-markdown.theme__dark figure svg rect,.cherry-markdown.theme__dark figure svg line{stroke:#ffcb6b !important}.cherry-markdown.theme__dark figure svg text{fill:#faa000 !important;stroke:none !important}.cherry-markdown.theme__dark figure svg tspan{fill:#faa000 !important}.cherry-markdown.theme__dark figure svg circle{fill:#ececff !important}.cherry-markdown.theme__dark figure svg circle.state-start{fill:#faa000 !important}@keyframes changeBgColorDark{0%{background-color:#4e4c4c}60%{background-color:#4e4c4c}100%{background-color:#333}}.cherry-markdown.theme__dark .cherry-highlight-line{animation:changeBgColorDark 3s}.cherry.theme__light .cherry-toolbar,.cherry.theme__light .cherry-floatmenu,.cherry.theme__light .cherry-bubble,.cherry.theme__light .cherry-sidebar{background:#fff;border-color:#fff}.cherry.theme__light .cherry-toolbar .cherry-toolbar-button,.cherry.theme__light .cherry-floatmenu .cherry-toolbar-button,.cherry.theme__light .cherry-bubble .cherry-toolbar-button,.cherry.theme__light .cherry-sidebar .cherry-toolbar-button{color:#3f4a56}.cherry.theme__light .cherry-toolbar .cherry-toolbar-button:hover,.cherry.theme__light .cherry-floatmenu .cherry-toolbar-button:hover,.cherry.theme__light .cherry-bubble .cherry-toolbar-button:hover,.cherry.theme__light .cherry-sidebar .cherry-toolbar-button:hover{background-color:#ebf3ff;color:#5d9bfc !important;border-color:#fff}.cherry.theme__light .cherry-toolbar .cherry-toolbar-button:hover i,.cherry.theme__light .cherry-floatmenu .cherry-toolbar-button:hover i,.cherry.theme__light .cherry-bubble .cherry-toolbar-button:hover i,.cherry.theme__light .cherry-sidebar .cherry-toolbar-button:hover i{color:#5d9bfc !important}.cherry.theme__light .cherry-dropdown{background:#fff}.cherry.theme__light .cherry-dropdown .cherry-dropdown-item{color:#3f4a56}.cherry.theme__light .cherry-dropdown .cherry-dropdown-item__selected{background-color:#ebf3ff;color:#5d9bfc}.cherry.theme__light .cherry-dropdown .cherry-dropdown-item:hover{background-color:#ebf3ff;color:#5d9bfc}.cherry.theme__light .cherry-dropdown.cherry-color-wrap h3{color:#3f4a56}.cherry.theme__light .cherry-dropdown.cherry-color-wrap .cherry-color-item{border-color:#ebf3ff}.cherry.theme__light .cherry-dropdown.cherry-color-wrap .cherry-color-item:hover{border-color:#f78553}.cherry.theme__light .cherry-dropdown .cherry-insert-table-menu-item{border-color:#ebf3ff}.cherry.theme__light .cherry-bubble .cherry-bubble-bottom{border-top-color:#fff}.cherry.theme__light .cherry-bubble .cherry-bubble-top{border-bottom-color:#fff}.cherry.theme__light .cherry-editor{background-color:#fff}.cherry.theme__light .cherry-editor .CodeMirror{background-color:#fff}.cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-cursor{border-left:1px solid #000}.cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-scroll span,.cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-scroll .cm-variable-2,.cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-scroll .cm-string,.cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-scroll .cm-strong,.cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-scroll .cm-em,.cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-scroll .cm-meta{color:#3f4a56}.cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-scroll .cm-image-marker,.cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-scroll .cm-quote,.cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-scroll .cm-header,.cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-scroll .cm-atom{color:#228be6}.cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-scroll .cm-url{background-color:#d7e6fe}.cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-scroll .cm-comment,.cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-scroll .cm-url{color:#4dabf7}.cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-selected{background-color:#ebf3ff}.cherry.theme__light .cherry-sidebar{box-shadow:0 0 10px rgba(128,145,165,.2)}.cherry.theme__light .cherry-previewer{background-color:#fff}.cherry.theme__light .cherry-previewer .cherry-mobile-previewer-content{background-color:#fff}.cherry.theme__light .cherry-previewer-table-content-handler .cherry-previewer-table-content-handler__input textarea{background-color:#fff;color:#3f4a56;outline-color:#228be6}.cherry-markdown.theme__light{color:#3f4a56;background-color:#fff}.cherry-markdown.theme__light h1,.cherry-markdown.theme__light h2,.cherry-markdown.theme__light h3,.cherry-markdown.theme__light h4,.cherry-markdown.theme__light h5{color:#228be6}.cherry-markdown.theme__light ul.cherry-list__upper-roman{list-style:upper-roman}.cherry-markdown.theme__light ul.cherry-list__lower-alpha{list-style:lower-alpha}.cherry-markdown.theme__light ul.cherry-list__lower-greek{list-style:lower-greek}.cherry-markdown.theme__light ul.cherry-list__cjk-ideographic{list-style:cjk-ideographic}.cherry-markdown.theme__light ul.cherry-list__circle{list-style:circle}.cherry-markdown.theme__light ul.cherry-list__square{list-style:square}.cherry-markdown.theme__light blockquote{color:#3f4a56;background-color:#e7f5ff;border-color:#1971c2}.cherry-markdown.theme__light a{text-decoration:none;color:#4dabf7}.cherry-markdown.theme__light a:hover{text-decoration:underline;color:#228be6}.cherry-markdown.theme__light hr{border-color:#1971c2}.cherry-markdown.theme__light code:not([class]){background-color:#d7e6fe;color:#4dabf7;border:1px solid #1971c2}.cherry-markdown.theme__light table,.cherry-markdown.theme__light .cherry-table{color:#3f4a56}.cherry-markdown.theme__light table th,.cherry-markdown.theme__light .cherry-table th{background-color:#d7e6fe}.cherry-markdown.theme__light table tr,.cherry-markdown.theme__light table th,.cherry-markdown.theme__light table td,.cherry-markdown.theme__light .cherry-table tr,.cherry-markdown.theme__light .cherry-table th,.cherry-markdown.theme__light .cherry-table td{border-color:#1971c2}.cherry-markdown.theme__light .footnote{border-color:#1971c2}.cherry-markdown.theme__light .footnote .footnote-title{background-color:#d7e6fe}.cherry-markdown.theme__light .footnote .one-footnote{color:#3f4a56;border-color:#1971c2}.cherry-markdown.theme__light .footnote .one-footnote a.footnote-ref{padding:5px}.cherry.theme__green .cherry-toolbar,.cherry.theme__green .cherry-floatmenu,.cherry.theme__green .cherry-bubble,.cherry.theme__green .cherry-sidebar{background:#fff;border-color:#fff}.cherry.theme__green .cherry-toolbar .cherry-toolbar-button,.cherry.theme__green .cherry-floatmenu .cherry-toolbar-button,.cherry.theme__green .cherry-bubble .cherry-toolbar-button,.cherry.theme__green .cherry-sidebar .cherry-toolbar-button{color:#2b8a3e}.cherry.theme__green .cherry-toolbar .cherry-toolbar-button i,.cherry.theme__green .cherry-floatmenu .cherry-toolbar-button i,.cherry.theme__green .cherry-bubble .cherry-toolbar-button i,.cherry.theme__green .cherry-sidebar .cherry-toolbar-button i{color:#2b8a3e}.cherry.theme__green .cherry-toolbar .cherry-toolbar-button:hover,.cherry.theme__green .cherry-floatmenu .cherry-toolbar-button:hover,.cherry.theme__green .cherry-bubble .cherry-toolbar-button:hover,.cherry.theme__green .cherry-sidebar .cherry-toolbar-button:hover{background-color:#51cf66;color:#ebfbee !important;border-color:#fff}.cherry.theme__green .cherry-toolbar .cherry-toolbar-button:hover i,.cherry.theme__green .cherry-floatmenu .cherry-toolbar-button:hover i,.cherry.theme__green .cherry-bubble .cherry-toolbar-button:hover i,.cherry.theme__green .cherry-sidebar .cherry-toolbar-button:hover i{color:#ebfbee !important}.cherry.theme__green .cherry-dropdown{background:#fff}.cherry.theme__green .cherry-dropdown .cherry-dropdown-item{color:#2b8a3e}.cherry.theme__green .cherry-dropdown .cherry-dropdown-item__selected{background-color:#51cf66;color:#ebfbee}.cherry.theme__green .cherry-dropdown .cherry-dropdown-item:hover{background-color:#51cf66;color:#ebfbee}.cherry.theme__green .cherry-dropdown.cherry-color-wrap h3{color:#2b8a3e}.cherry.theme__green .cherry-dropdown.cherry-color-wrap .cherry-color-item{border-color:#51cf66}.cherry.theme__green .cherry-dropdown.cherry-color-wrap .cherry-color-item:hover{border-color:#2b8a3e}.cherry.theme__green .cherry-dropdown .cherry-insert-table-menu-item{border-color:#51cf66}.cherry.theme__green .cherry-bubble .cherry-bubble-bottom{border-top-color:#fff}.cherry.theme__green .cherry-bubble .cherry-bubble-top{border-bottom-color:#fff}.cherry.theme__green .cherry-editor{background-color:#fff}.cherry.theme__green .cherry-editor .CodeMirror{background-color:#fff}.cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-cursor{border-left:1px solid #2b8a3e}.cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-scroll span,.cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-scroll .cm-variable-2,.cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-scroll .cm-string,.cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-scroll .cm-strong,.cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-scroll .cm-em,.cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-scroll .cm-meta{color:#2b8a3e}.cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-scroll .cm-image-marker,.cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-scroll .cm-quote,.cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-scroll .cm-header,.cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-scroll .cm-atom{color:#37b24d}.cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-scroll .cm-url{background-color:#ebfbee}.cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-scroll .cm-comment,.cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-scroll .cm-url{color:#40c057}.cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-selected{background-color:#b2f2bb}.cherry.theme__green .cherry-sidebar{box-shadow:0 0 10px rgba(128,145,165,.2)}.cherry.theme__green .cherry-previewer{background-color:#ebfbee}.cherry.theme__green .cherry-previewer .cherry-mobile-previewer-content{background-color:#fff}.cherry.theme__green .cherry-previewer-table-content-handler .cherry-previewer-table-content-handler__input textarea{background-color:#fff;color:#2b8a3e;outline-color:#37b24d}.cherry-markdown.theme__green{color:#2b8a3e;background-color:#ebfbee}.cherry-markdown.theme__green h1,.cherry-markdown.theme__green h2,.cherry-markdown.theme__green h3,.cherry-markdown.theme__green h4,.cherry-markdown.theme__green h5{color:#37b24d;text-align:center;margin-bottom:35px}.cherry-markdown.theme__green ul.cherry-list__upper-roman{list-style:upper-roman}.cherry-markdown.theme__green ul.cherry-list__lower-greek{list-style:lower-greek}.cherry-markdown.theme__green ul.cherry-list__lower-alpha{list-style:lower-alpha}.cherry-markdown.theme__green ul.cherry-list__cjk-ideographic{list-style:cjk-ideographic}.cherry-markdown.theme__green ul.cherry-list__circle{list-style:circle}.cherry-markdown.theme__green ul.cherry-list__square{list-style:square}.cherry-markdown.theme__green blockquote{color:#2b8a3e;background-color:#d3f9d8;border-color:#2f9e44}.cherry-markdown.theme__green a{text-decoration:none;color:#40c057}.cherry-markdown.theme__green a:hover{text-decoration:underline;color:#37b24d}.cherry-markdown.theme__green hr{border-color:#2f9e44}.cherry-markdown.theme__green code:not([class]){background-color:#d3f9d8;color:#40c057;border:1px solid #2f9e44}.cherry-markdown.theme__green table,.cherry-markdown.theme__green .cherry-table{color:#2b8a3e}.cherry-markdown.theme__green table th,.cherry-markdown.theme__green .cherry-table th{background-color:#d3f9d8}.cherry-markdown.theme__green table tr,.cherry-markdown.theme__green table th,.cherry-markdown.theme__green table td,.cherry-markdown.theme__green .cherry-table tr,.cherry-markdown.theme__green .cherry-table th,.cherry-markdown.theme__green .cherry-table td{border-color:#2f9e44}.cherry-markdown.theme__green .footnote{border-color:#2f9e44}.cherry-markdown.theme__green .footnote .footnote-title{background-color:#d3f9d8}.cherry-markdown.theme__green .footnote .one-footnote{color:#2b8a3e;border-color:#2f9e44}.cherry-markdown.theme__green .footnote .one-footnote a.footnote-ref{padding:5px}.cherry-markdown.theme__green .toc{border-bottom:1px solid #2f9e44;padding-bottom:15px;margin-bottom:30px}.cherry-markdown.theme__green .toc .toc-title{text-align:center;padding-bottom:15px;margin-top:30px;margin-bottom:15px;border-bottom:1px solid #2f9e44}.cherry-markdown.theme__green .toc .toc-li{border:none}.cherry-markdown.theme__green .toc .toc-li a{color:#2b8a3e}.cherry-markdown.theme__green .toc .toc-li a:hover{color:#37b24d}.cherry.theme__red .cherry-toolbar,.cherry.theme__red .cherry-floatmenu,.cherry.theme__red .cherry-bubble,.cherry.theme__red .cherry-sidebar{background:#ffdeeb;border-color:#ffdeeb}.cherry.theme__red .cherry-toolbar .cherry-toolbar-button,.cherry.theme__red .cherry-floatmenu .cherry-toolbar-button,.cherry.theme__red .cherry-bubble .cherry-toolbar-button,.cherry.theme__red .cherry-sidebar .cherry-toolbar-button{color:#c2255c}.cherry.theme__red .cherry-toolbar .cherry-toolbar-button i,.cherry.theme__red .cherry-floatmenu .cherry-toolbar-button i,.cherry.theme__red .cherry-bubble .cherry-toolbar-button i,.cherry.theme__red .cherry-sidebar .cherry-toolbar-button i{color:#c2255c}.cherry.theme__red .cherry-toolbar .cherry-toolbar-button:hover,.cherry.theme__red .cherry-floatmenu .cherry-toolbar-button:hover,.cherry.theme__red .cherry-bubble .cherry-toolbar-button:hover,.cherry.theme__red .cherry-sidebar .cherry-toolbar-button:hover{background-color:#f06595;color:#fff0f6 !important;border-color:#ffdeeb}.cherry.theme__red .cherry-toolbar .cherry-toolbar-button:hover i,.cherry.theme__red .cherry-floatmenu .cherry-toolbar-button:hover i,.cherry.theme__red .cherry-bubble .cherry-toolbar-button:hover i,.cherry.theme__red .cherry-sidebar .cherry-toolbar-button:hover i{color:#fff0f6 !important}.cherry.theme__red .cherry-dropdown{background:#ffdeeb}.cherry.theme__red .cherry-dropdown .cherry-dropdown-item{color:#c2255c}.cherry.theme__red .cherry-dropdown .cherry-dropdown-item__selected{background-color:#f06595;color:#fff0f6}.cherry.theme__red .cherry-dropdown .cherry-dropdown-item:hover{background-color:#f06595;color:#fff0f6}.cherry.theme__red .cherry-dropdown.cherry-color-wrap h3{color:#c2255c}.cherry.theme__red .cherry-dropdown.cherry-color-wrap .cherry-color-item{border-color:#f06595}.cherry.theme__red .cherry-dropdown.cherry-color-wrap .cherry-color-item:hover{border-color:#a61e4d}.cherry.theme__red .cherry-dropdown .cherry-insert-table-menu-item{border-color:#f06595}.cherry.theme__red .cherry-bubble .cherry-bubble-bottom{border-top-color:#ffdeeb}.cherry.theme__red .cherry-bubble .cherry-bubble-top{border-bottom-color:#ffdeeb}.cherry.theme__red .cherry-editor{background-color:#fff0f6}.cherry.theme__red .cherry-editor .CodeMirror{background-color:#fff0f6}.cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-cursor{border-left:1px solid #a61e4d}.cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-scroll span,.cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-scroll .cm-variable-2,.cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-scroll .cm-string,.cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-scroll .cm-strong,.cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-scroll .cm-em,.cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-scroll .cm-meta{color:#a61e4d}.cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-scroll .cm-image-marker,.cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-scroll .cm-quote,.cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-scroll .cm-header,.cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-scroll .cm-atom{color:#d6336c}.cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-scroll .cm-url{background-color:#ffdeeb}.cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-scroll .cm-comment,.cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-scroll .cm-url{color:#f06595}.cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-selected{background-color:#fcc2d7}.cherry.theme__red .cherry-sidebar{box-shadow:0 0 10px #fcc2d7}.cherry.theme__red .cherry-previewer{background-color:#fff0f6}.cherry.theme__red .cherry-previewer .cherry-mobile-previewer-content{background-color:#fff0f6}.cherry.theme__red .cherry-previewer-table-content-handler .cherry-previewer-table-content-handler__input textarea{background-color:#fff0f6;color:#a61e4d;outline-color:#d6336c}.cherry-markdown.theme__red{color:#a61e4d;background-color:#fff0f6}.cherry-markdown.theme__red h1,.cherry-markdown.theme__red h2,.cherry-markdown.theme__red h3,.cherry-markdown.theme__red h4,.cherry-markdown.theme__red h5{color:#d6336c;text-align:center;border-bottom:1px dashed #c2255c;padding-bottom:15px;margin-bottom:25px}.cherry-markdown.theme__red ul.cherry-list__upper-roman{list-style:upper-roman}.cherry-markdown.theme__red ul.cherry-list__lower-greek{list-style:lower-greek}.cherry-markdown.theme__red ul.cherry-list__lower-alpha{list-style:lower-alpha}.cherry-markdown.theme__red ul.cherry-list__cjk-ideographic{list-style:cjk-ideographic}.cherry-markdown.theme__red ul.cherry-list__circle{list-style:circle}.cherry-markdown.theme__red ul.cherry-list__square{list-style:square}.cherry-markdown.theme__red blockquote{color:#a61e4d;background-color:#ffdeeb;border-color:#c2255c}.cherry-markdown.theme__red a{text-decoration:none;color:#f06595}.cherry-markdown.theme__red a:hover{text-decoration:underline;color:#d6336c}.cherry-markdown.theme__red hr{border-color:#c2255c}.cherry-markdown.theme__red code:not([class]){background-color:#ffdeeb;color:#f06595;border:1px solid #c2255c}.cherry-markdown.theme__red table,.cherry-markdown.theme__red .cherry-table{color:#a61e4d}.cherry-markdown.theme__red table th,.cherry-markdown.theme__red .cherry-table th{background-color:#ffdeeb}.cherry-markdown.theme__red table tr,.cherry-markdown.theme__red table th,.cherry-markdown.theme__red table td,.cherry-markdown.theme__red .cherry-table tr,.cherry-markdown.theme__red .cherry-table th,.cherry-markdown.theme__red .cherry-table td{border-color:#c2255c}.cherry-markdown.theme__red .footnote{border-color:#c2255c}.cherry-markdown.theme__red .footnote .footnote-title{background-color:#ffdeeb}.cherry-markdown.theme__red .footnote .one-footnote{color:#a61e4d;border-color:#c2255c}.cherry-markdown.theme__red .footnote .one-footnote a.footnote-ref{padding:5px}.cherry-markdown.theme__red .toc{border-bottom:1px solid #c2255c;padding-bottom:15px;margin-bottom:30px}.cherry-markdown.theme__red .toc .toc-title{text-align:center;padding-bottom:15px;margin-top:30px;margin-bottom:15px;border-bottom:1px solid #c2255c}.cherry-markdown.theme__red .toc .toc-li{border:none}.cherry-markdown.theme__red .toc .toc-li a{color:#a61e4d}.cherry-markdown.theme__red .toc .toc-li a:hover{color:#d6336c}.cherry.theme__violet .cherry-toolbar,.cherry.theme__violet .cherry-floatmenu,.cherry.theme__violet .cherry-bubble,.cherry.theme__violet .cherry-sidebar{background:#fff;border-color:#fff}.cherry.theme__violet .cherry-toolbar .cherry-toolbar-button,.cherry.theme__violet .cherry-floatmenu .cherry-toolbar-button,.cherry.theme__violet .cherry-bubble .cherry-toolbar-button,.cherry.theme__violet .cherry-sidebar .cherry-toolbar-button{color:#5f3dc4}.cherry.theme__violet .cherry-toolbar .cherry-toolbar-button i,.cherry.theme__violet .cherry-floatmenu .cherry-toolbar-button i,.cherry.theme__violet .cherry-bubble .cherry-toolbar-button i,.cherry.theme__violet .cherry-sidebar .cherry-toolbar-button i{color:#5f3dc4}.cherry.theme__violet .cherry-toolbar .cherry-toolbar-button:hover,.cherry.theme__violet .cherry-floatmenu .cherry-toolbar-button:hover,.cherry.theme__violet .cherry-bubble .cherry-toolbar-button:hover,.cherry.theme__violet .cherry-sidebar .cherry-toolbar-button:hover{background-color:#845ef7;color:#f3f0ff !important;border-color:#fff}.cherry.theme__violet .cherry-toolbar .cherry-toolbar-button:hover i,.cherry.theme__violet .cherry-floatmenu .cherry-toolbar-button:hover i,.cherry.theme__violet .cherry-bubble .cherry-toolbar-button:hover i,.cherry.theme__violet .cherry-sidebar .cherry-toolbar-button:hover i{color:#f3f0ff !important}.cherry.theme__violet .cherry-dropdown{background:#fff}.cherry.theme__violet .cherry-dropdown .cherry-dropdown-item{color:#5f3dc4}.cherry.theme__violet .cherry-dropdown .cherry-dropdown-item__selected{background-color:#845ef7;color:#f3f0ff}.cherry.theme__violet .cherry-dropdown .cherry-dropdown-item:hover{background-color:#845ef7;color:#f3f0ff}.cherry.theme__violet .cherry-dropdown.cherry-color-wrap h3{color:#5f3dc4}.cherry.theme__violet .cherry-dropdown.cherry-color-wrap .cherry-color-item{border-color:#845ef7}.cherry.theme__violet .cherry-dropdown.cherry-color-wrap .cherry-color-item:hover{border-color:#5f3dc4}.cherry.theme__violet .cherry-dropdown .cherry-insert-table-menu-item{border-color:#845ef7}.cherry.theme__violet .cherry-bubble .cherry-bubble-bottom{border-top-color:#fff}.cherry.theme__violet .cherry-bubble .cherry-bubble-top{border-bottom-color:#fff}.cherry.theme__violet .cherry-editor{background-color:#fff}.cherry.theme__violet .cherry-editor .CodeMirror{background-color:#fff}.cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-cursor{border-left:1px solid #5f3dc4}.cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-scroll span,.cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-scroll .cm-variable-2,.cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-scroll .cm-string,.cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-scroll .cm-strong,.cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-scroll .cm-em,.cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-scroll .cm-meta{color:#5f3dc4}.cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-scroll .cm-image-marker,.cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-scroll .cm-quote,.cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-scroll .cm-header,.cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-scroll .cm-atom{color:#7048e8}.cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-scroll .cm-url{background-color:#f3f0ff}.cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-scroll .cm-comment,.cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-scroll .cm-url{color:#7950f2}.cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-selected{background-color:#d0bfff}.cherry.theme__violet .cherry-sidebar{box-shadow:0 0 10px rgba(128,145,165,.2)}.cherry.theme__violet .cherry-previewer{background-color:#fff}.cherry.theme__violet .cherry-previewer .cherry-mobile-previewer-content{background-color:#fff}.cherry.theme__violet .cherry-previewer-table-content-handler .cherry-previewer-table-content-handler__input textarea{background-color:#fff;color:#5f3dc4;outline-color:#7048e8}.cherry-markdown.theme__violet{color:#5f3dc4;background-color:#fff}.cherry-markdown.theme__violet h1,.cherry-markdown.theme__violet h2,.cherry-markdown.theme__violet h3,.cherry-markdown.theme__violet h4,.cherry-markdown.theme__violet h5{color:#7048e8;text-align:center;margin-bottom:35px}.cherry-markdown.theme__violet ul.cherry-list__upper-roman{list-style:upper-roman}.cherry-markdown.theme__violet ul.cherry-list__lower-greek{list-style:lower-greek}.cherry-markdown.theme__violet ul.cherry-list__lower-alpha{list-style:lower-alpha}.cherry-markdown.theme__violet ul.cherry-list__cjk-ideographic{list-style:cjk-ideographic}.cherry-markdown.theme__violet ul.cherry-list__circle{list-style:circle}.cherry-markdown.theme__violet ul.cherry-list__square{list-style:square}.cherry-markdown.theme__violet blockquote{color:#5f3dc4;background-color:#e5dbff;border-color:#6741d9}.cherry-markdown.theme__violet a{text-decoration:none;color:#7950f2}.cherry-markdown.theme__violet a:hover{text-decoration:underline;color:#7048e8}.cherry-markdown.theme__violet hr{border-color:#6741d9}.cherry-markdown.theme__violet code:not([class]){background-color:#e5dbff;color:#7950f2;border:1px solid #6741d9}.cherry-markdown.theme__violet table,.cherry-markdown.theme__violet .cherry-table{color:#5f3dc4}.cherry-markdown.theme__violet table th,.cherry-markdown.theme__violet .cherry-table th{background-color:#e5dbff}.cherry-markdown.theme__violet table tr,.cherry-markdown.theme__violet table th,.cherry-markdown.theme__violet table td,.cherry-markdown.theme__violet .cherry-table tr,.cherry-markdown.theme__violet .cherry-table th,.cherry-markdown.theme__violet .cherry-table td{border-color:#6741d9}.cherry-markdown.theme__violet .footnote{border-color:#6741d9}.cherry-markdown.theme__violet .footnote .footnote-title{background-color:#e5dbff}.cherry-markdown.theme__violet .footnote .one-footnote{color:#5f3dc4;border-color:#6741d9}.cherry-markdown.theme__violet .footnote .one-footnote a.footnote-ref{padding:5px}.cherry-markdown.theme__violet .toc{border-bottom:1px solid #6741d9;padding-bottom:15px;margin-bottom:30px}.cherry-markdown.theme__violet .toc .toc-title{text-align:center;padding-bottom:15px;margin-top:30px;margin-bottom:15px;border-bottom:1px solid #6741d9}.cherry-markdown.theme__violet .toc .toc-li{border:none}.cherry-markdown.theme__violet .toc .toc-li a{color:#5f3dc4}.cherry-markdown.theme__violet .toc .toc-li a:hover{color:#7048e8}.cherry.theme__blue .cherry-toolbar,.cherry.theme__blue .cherry-floatmenu,.cherry.theme__blue .cherry-bubble,.cherry.theme__blue .cherry-sidebar{background:#ede7f6;border-color:#ede7f6;box-shadow:0 0 12px #c5cae9}.cherry.theme__blue .cherry-toolbar .cherry-toolbar-button,.cherry.theme__blue .cherry-floatmenu .cherry-toolbar-button,.cherry.theme__blue .cherry-bubble .cherry-toolbar-button,.cherry.theme__blue .cherry-sidebar .cherry-toolbar-button{color:#3949ab}.cherry.theme__blue .cherry-toolbar .cherry-toolbar-button i,.cherry.theme__blue .cherry-floatmenu .cherry-toolbar-button i,.cherry.theme__blue .cherry-bubble .cherry-toolbar-button i,.cherry.theme__blue .cherry-sidebar .cherry-toolbar-button i{color:#3949ab}.cherry.theme__blue .cherry-toolbar .cherry-toolbar-button:hover,.cherry.theme__blue .cherry-floatmenu .cherry-toolbar-button:hover,.cherry.theme__blue .cherry-bubble .cherry-toolbar-button:hover,.cherry.theme__blue .cherry-sidebar .cherry-toolbar-button:hover{background-color:#b39ddb;color:#edf2ff !important;border-color:#ede7f6}.cherry.theme__blue .cherry-toolbar .cherry-toolbar-button:hover i,.cherry.theme__blue .cherry-floatmenu .cherry-toolbar-button:hover i,.cherry.theme__blue .cherry-bubble .cherry-toolbar-button:hover i,.cherry.theme__blue .cherry-sidebar .cherry-toolbar-button:hover i{color:#edf2ff !important}.cherry.theme__blue .cherry-dropdown{background:#ede7f6}.cherry.theme__blue .cherry-dropdown .cherry-dropdown-item{color:#3949ab}.cherry.theme__blue .cherry-dropdown .cherry-dropdown-item__selected{background-color:#b39ddb;color:#edf2ff}.cherry.theme__blue .cherry-dropdown .cherry-dropdown-item:hover{background-color:#b39ddb;color:#edf2ff}.cherry.theme__blue .cherry-dropdown.cherry-color-wrap h3{color:#3949ab}.cherry.theme__blue .cherry-dropdown.cherry-color-wrap .cherry-color-item{border-color:#b39ddb}.cherry.theme__blue .cherry-dropdown.cherry-color-wrap .cherry-color-item:hover{border-color:#283593}.cherry.theme__blue .cherry-dropdown .cherry-insert-table-menu-item{border-color:#b39ddb}.cherry.theme__blue .cherry-bubble .cherry-bubble-bottom{border-top-color:#ede7f6}.cherry.theme__blue .cherry-bubble .cherry-bubble-top{border-bottom-color:#ede7f6}.cherry.theme__blue .cherry-editor{background-color:rgba(243,240,255,.862745098)}.cherry.theme__blue .cherry-editor .CodeMirror{background-color:rgba(243,240,255,.862745098)}.cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-cursor{border-left:1px solid #283593}.cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-scroll span,.cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-scroll .cm-variable-2,.cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-scroll .cm-string,.cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-scroll .cm-strong,.cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-scroll .cm-em,.cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-scroll .cm-meta{color:#283593}.cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-scroll .cm-image-marker,.cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-scroll .cm-quote,.cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-scroll .cm-header,.cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-scroll .cm-atom{color:#303f9f}.cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-scroll .cm-url{background-color:#ede7f6}.cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-scroll .cm-comment,.cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-scroll .cm-url{color:#8c9eff}.cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-selected{background-color:#d1c4e9}.cherry.theme__blue .cherry-sidebar{box-shadow:0 0 12px #c5cae9}.cherry.theme__blue .cherry-previewer{background-color:rgba(243,240,255,.862745098)}.cherry.theme__blue .cherry-previewer .cherry-mobile-previewer-content{background-color:rgba(243,240,255,.862745098)}.cherry.theme__blue .cherry-previewer-table-content-handler .cherry-previewer-table-content-handler__input textarea{background-color:rgba(243,240,255,.862745098);color:#283593;outline-color:#303f9f}.cherry-markdown.theme__blue{color:#283593;background-color:rgba(243,240,255,.862745098)}.cherry-markdown.theme__blue h1,.cherry-markdown.theme__blue h2,.cherry-markdown.theme__blue h3,.cherry-markdown.theme__blue h4,.cherry-markdown.theme__blue h5{color:#303f9f;text-align:center;border-bottom:1px dashed #3949ab;padding-bottom:15px;margin-bottom:25px}.cherry-markdown.theme__blue ul.cherry-list__upper-roman{list-style:upper-roman}.cherry-markdown.theme__blue ul.cherry-list__lower-alpha{list-style:lower-alpha}.cherry-markdown.theme__blue ul.cherry-list__lower-greek{list-style:lower-greek}.cherry-markdown.theme__blue ul.cherry-list__cjk-ideographic{list-style:cjk-ideographic}.cherry-markdown.theme__blue ul.cherry-list__circle{list-style:circle}.cherry-markdown.theme__blue ul.cherry-list__square{list-style:square}.cherry-markdown.theme__blue blockquote{color:#283593;background-color:#ede7f6;border-color:#3949ab}.cherry-markdown.theme__blue a{text-decoration:none;color:#8c9eff}.cherry-markdown.theme__blue a:hover{text-decoration:underline;color:#303f9f}.cherry-markdown.theme__blue hr{border-color:#3949ab}.cherry-markdown.theme__blue code:not([class]){background-color:#ede7f6;color:#8c9eff;border:1px solid #3949ab}.cherry-markdown.theme__blue table,.cherry-markdown.theme__blue .cherry-table{color:#283593}.cherry-markdown.theme__blue table th,.cherry-markdown.theme__blue .cherry-table th{background-color:#ede7f6}.cherry-markdown.theme__blue table tr,.cherry-markdown.theme__blue table th,.cherry-markdown.theme__blue table td,.cherry-markdown.theme__blue .cherry-table tr,.cherry-markdown.theme__blue .cherry-table th,.cherry-markdown.theme__blue .cherry-table td{border-color:#3949ab}.cherry-markdown.theme__blue .footnote{border-color:#3949ab}.cherry-markdown.theme__blue .footnote .footnote-title{background-color:#ede7f6}.cherry-markdown.theme__blue .footnote .one-footnote{color:#283593;border-color:#3949ab}.cherry-markdown.theme__blue .footnote .one-footnote a.footnote-ref{padding:5px}.cherry-markdown.theme__blue .toc{border-bottom:1px solid #3949ab;padding-bottom:15px;margin-bottom:30px}.cherry-markdown.theme__blue .toc .toc-title{text-align:center;padding-bottom:15px;margin-top:30px;margin-bottom:15px;border-bottom:1px solid #3949ab}.cherry-markdown.theme__blue .toc .toc-li{border:none}.cherry-markdown.theme__blue .toc .toc-li a{color:#283593}.cherry-markdown.theme__blue .toc .toc-li a:hover{color:#303f9f} \ No newline at end of file diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_AMS-Regular.ttf b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_AMS-Regular.ttf new file mode 100644 index 00000000..c6f9a5e7 Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_AMS-Regular.ttf differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_AMS-Regular.woff b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_AMS-Regular.woff new file mode 100644 index 00000000..b804d7b3 Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_AMS-Regular.woff differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_AMS-Regular.woff2 b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_AMS-Regular.woff2 new file mode 100644 index 00000000..0acaaff0 Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_AMS-Regular.woff2 differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Caligraphic-Bold.ttf b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Caligraphic-Bold.ttf new file mode 100644 index 00000000..9ff4a5e0 Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Caligraphic-Bold.ttf differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Caligraphic-Bold.woff b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Caligraphic-Bold.woff new file mode 100644 index 00000000..9759710d Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Caligraphic-Bold.woff differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Caligraphic-Bold.woff2 b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Caligraphic-Bold.woff2 new file mode 100644 index 00000000..f390922e Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Caligraphic-Bold.woff2 differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Caligraphic-Regular.ttf b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Caligraphic-Regular.ttf new file mode 100644 index 00000000..f522294f Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Caligraphic-Regular.ttf differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Caligraphic-Regular.woff b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Caligraphic-Regular.woff new file mode 100644 index 00000000..9bdd534f Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Caligraphic-Regular.woff differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Caligraphic-Regular.woff2 b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Caligraphic-Regular.woff2 new file mode 100644 index 00000000..75344a1f Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Caligraphic-Regular.woff2 differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Fraktur-Bold.ttf b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Fraktur-Bold.ttf new file mode 100644 index 00000000..4e98259c Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Fraktur-Bold.ttf differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Fraktur-Bold.woff b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Fraktur-Bold.woff new file mode 100644 index 00000000..e7730f66 Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Fraktur-Bold.woff differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Fraktur-Bold.woff2 b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Fraktur-Bold.woff2 new file mode 100644 index 00000000..395f28be Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Fraktur-Bold.woff2 differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Fraktur-Regular.ttf b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Fraktur-Regular.ttf new file mode 100644 index 00000000..b8461b27 Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Fraktur-Regular.ttf differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Fraktur-Regular.woff b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Fraktur-Regular.woff new file mode 100644 index 00000000..acab069f Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Fraktur-Regular.woff differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Fraktur-Regular.woff2 b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Fraktur-Regular.woff2 new file mode 100644 index 00000000..735f6948 Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Fraktur-Regular.woff2 differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Main-Bold.ttf b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Main-Bold.ttf new file mode 100644 index 00000000..4060e627 Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Main-Bold.ttf differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Main-Bold.woff b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Main-Bold.woff new file mode 100644 index 00000000..f38136ac Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Main-Bold.woff differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Main-Bold.woff2 b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Main-Bold.woff2 new file mode 100644 index 00000000..ab2ad21d Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Main-Bold.woff2 differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Main-BoldItalic.ttf b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Main-BoldItalic.ttf new file mode 100644 index 00000000..dc007977 Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Main-BoldItalic.ttf differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Main-BoldItalic.woff b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Main-BoldItalic.woff new file mode 100644 index 00000000..67807b0b Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Main-BoldItalic.woff differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Main-BoldItalic.woff2 b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Main-BoldItalic.woff2 new file mode 100644 index 00000000..5931794d Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Main-BoldItalic.woff2 differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Main-Italic.ttf b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Main-Italic.ttf new file mode 100644 index 00000000..0e9b0f35 Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Main-Italic.ttf differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Main-Italic.woff b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Main-Italic.woff new file mode 100644 index 00000000..6f43b594 Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Main-Italic.woff differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Main-Italic.woff2 b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Main-Italic.woff2 new file mode 100644 index 00000000..b50920e1 Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Main-Italic.woff2 differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Main-Regular.ttf b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Main-Regular.ttf new file mode 100644 index 00000000..dd45e1ed Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Main-Regular.ttf differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Main-Regular.woff b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Main-Regular.woff new file mode 100644 index 00000000..21f58129 Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Main-Regular.woff differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Main-Regular.woff2 b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Main-Regular.woff2 new file mode 100644 index 00000000..eb24a7ba Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Main-Regular.woff2 differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Math-BoldItalic.ttf b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Math-BoldItalic.ttf new file mode 100644 index 00000000..728ce7a1 Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Math-BoldItalic.ttf differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Math-BoldItalic.woff b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Math-BoldItalic.woff new file mode 100644 index 00000000..0ae390d7 Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Math-BoldItalic.woff differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Math-BoldItalic.woff2 b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Math-BoldItalic.woff2 new file mode 100644 index 00000000..29657023 Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Math-BoldItalic.woff2 differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Math-Italic.ttf b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Math-Italic.ttf new file mode 100644 index 00000000..70d559b4 Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Math-Italic.ttf differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Math-Italic.woff b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Math-Italic.woff new file mode 100644 index 00000000..eb5159d4 Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Math-Italic.woff differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Math-Italic.woff2 b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Math-Italic.woff2 new file mode 100644 index 00000000..215c143f Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Math-Italic.woff2 differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_SansSerif-Bold.ttf b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_SansSerif-Bold.ttf new file mode 100644 index 00000000..2f65a8a3 Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_SansSerif-Bold.ttf differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_SansSerif-Bold.woff b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_SansSerif-Bold.woff new file mode 100644 index 00000000..8d47c02d Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_SansSerif-Bold.woff differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_SansSerif-Bold.woff2 b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_SansSerif-Bold.woff2 new file mode 100644 index 00000000..cfaa3bda Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_SansSerif-Bold.woff2 differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_SansSerif-Italic.ttf b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_SansSerif-Italic.ttf new file mode 100644 index 00000000..d5850df9 Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_SansSerif-Italic.ttf differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_SansSerif-Italic.woff b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_SansSerif-Italic.woff new file mode 100644 index 00000000..7e02df96 Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_SansSerif-Italic.woff differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_SansSerif-Italic.woff2 b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_SansSerif-Italic.woff2 new file mode 100644 index 00000000..349c06dc Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_SansSerif-Italic.woff2 differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_SansSerif-Regular.ttf b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_SansSerif-Regular.ttf new file mode 100644 index 00000000..537279f6 Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_SansSerif-Regular.ttf differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_SansSerif-Regular.woff b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_SansSerif-Regular.woff new file mode 100644 index 00000000..31b84829 Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_SansSerif-Regular.woff differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_SansSerif-Regular.woff2 b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_SansSerif-Regular.woff2 new file mode 100644 index 00000000..a90eea85 Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_SansSerif-Regular.woff2 differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Script-Regular.ttf b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Script-Regular.ttf new file mode 100644 index 00000000..fd679bf3 Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Script-Regular.ttf differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Script-Regular.woff b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Script-Regular.woff new file mode 100644 index 00000000..0e7da821 Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Script-Regular.woff differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Script-Regular.woff2 b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Script-Regular.woff2 new file mode 100644 index 00000000..b3048fc1 Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Script-Regular.woff2 differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Size1-Regular.ttf b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Size1-Regular.ttf new file mode 100644 index 00000000..871fd7d1 Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Size1-Regular.ttf differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Size1-Regular.woff b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Size1-Regular.woff new file mode 100644 index 00000000..7f292d91 Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Size1-Regular.woff differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Size1-Regular.woff2 b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Size1-Regular.woff2 new file mode 100644 index 00000000..c5a8462f Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Size1-Regular.woff2 differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Size2-Regular.ttf b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Size2-Regular.ttf new file mode 100644 index 00000000..7a212caf Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Size2-Regular.ttf differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Size2-Regular.woff b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Size2-Regular.woff new file mode 100644 index 00000000..d241d9be Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Size2-Regular.woff differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Size2-Regular.woff2 b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Size2-Regular.woff2 new file mode 100644 index 00000000..e1bccfe2 Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Size2-Regular.woff2 differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Size3-Regular.ttf b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Size3-Regular.ttf new file mode 100644 index 00000000..00bff349 Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Size3-Regular.ttf differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Size3-Regular.woff b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Size3-Regular.woff new file mode 100644 index 00000000..e6e9b658 Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Size3-Regular.woff differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Size3-Regular.woff2 b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Size3-Regular.woff2 new file mode 100644 index 00000000..249a2866 Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Size3-Regular.woff2 differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Size4-Regular.ttf b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Size4-Regular.ttf new file mode 100644 index 00000000..74f08921 Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Size4-Regular.ttf differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Size4-Regular.woff b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Size4-Regular.woff new file mode 100644 index 00000000..e1ec5457 Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Size4-Regular.woff differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Size4-Regular.woff2 b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Size4-Regular.woff2 new file mode 100644 index 00000000..680c1308 Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Size4-Regular.woff2 differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Typewriter-Regular.ttf b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Typewriter-Regular.ttf new file mode 100644 index 00000000..c83252c5 Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Typewriter-Regular.ttf differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Typewriter-Regular.woff b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Typewriter-Regular.woff new file mode 100644 index 00000000..2432419f Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Typewriter-Regular.woff differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Typewriter-Regular.woff2 b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Typewriter-Regular.woff2 new file mode 100644 index 00000000..771f1af7 Binary files /dev/null and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/KaTeX_Typewriter-Regular.woff2 differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/ch-icon.eot b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/ch-icon.eot index 1a3153c4..f6fc471b 100644 Binary files a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/ch-icon.eot and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/ch-icon.eot differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/ch-icon.svg b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/ch-icon.svg index db655187..52b3e04e 100644 --- a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/ch-icon.svg +++ b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/ch-icon.svg @@ -2,7 +2,7 @@ - + @@ -178,6 +178,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/ch-icon.ttf b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/ch-icon.ttf index 41f754ff..c25808ff 100644 Binary files a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/ch-icon.ttf and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/ch-icon.ttf differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/ch-icon.woff b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/ch-icon.woff index 16e73966..a8019714 100644 Binary files a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/ch-icon.woff and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/ch-icon.woff differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/ch-icon.woff2 b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/ch-icon.woff2 index bfcd1e07..fa458a65 100644 Binary files a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/ch-icon.woff2 and b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/fonts/ch-icon.woff2 differ diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/katex.min.css b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/katex.min.css new file mode 100644 index 00000000..3d176abf --- /dev/null +++ b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/css/katex.min.css @@ -0,0 +1 @@ +@font-face{font-family:KaTeX_AMS;font-style:normal;font-weight:400;src:url(fonts/KaTeX_AMS-Regular.woff2) format("woff2"),url(fonts/KaTeX_AMS-Regular.woff) format("woff"),url(fonts/KaTeX_AMS-Regular.ttf) format("truetype")}@font-face{font-family:KaTeX_Caligraphic;font-style:normal;font-weight:700;src:url(fonts/KaTeX_Caligraphic-Bold.woff2) format("woff2"),url(fonts/KaTeX_Caligraphic-Bold.woff) format("woff"),url(fonts/KaTeX_Caligraphic-Bold.ttf) format("truetype")}@font-face{font-family:KaTeX_Caligraphic;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Caligraphic-Regular.woff2) format("woff2"),url(fonts/KaTeX_Caligraphic-Regular.woff) format("woff"),url(fonts/KaTeX_Caligraphic-Regular.ttf) format("truetype")}@font-face{font-family:KaTeX_Fraktur;font-style:normal;font-weight:700;src:url(fonts/KaTeX_Fraktur-Bold.woff2) format("woff2"),url(fonts/KaTeX_Fraktur-Bold.woff) format("woff"),url(fonts/KaTeX_Fraktur-Bold.ttf) format("truetype")}@font-face{font-family:KaTeX_Fraktur;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Fraktur-Regular.woff2) format("woff2"),url(fonts/KaTeX_Fraktur-Regular.woff) format("woff"),url(fonts/KaTeX_Fraktur-Regular.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:normal;font-weight:700;src:url(fonts/KaTeX_Main-Bold.woff2) format("woff2"),url(fonts/KaTeX_Main-Bold.woff) format("woff"),url(fonts/KaTeX_Main-Bold.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:italic;font-weight:700;src:url(fonts/KaTeX_Main-BoldItalic.woff2) format("woff2"),url(fonts/KaTeX_Main-BoldItalic.woff) format("woff"),url(fonts/KaTeX_Main-BoldItalic.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:italic;font-weight:400;src:url(fonts/KaTeX_Main-Italic.woff2) format("woff2"),url(fonts/KaTeX_Main-Italic.woff) format("woff"),url(fonts/KaTeX_Main-Italic.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Main-Regular.woff2) format("woff2"),url(fonts/KaTeX_Main-Regular.woff) format("woff"),url(fonts/KaTeX_Main-Regular.ttf) format("truetype")}@font-face{font-family:KaTeX_Math;font-style:italic;font-weight:700;src:url(fonts/KaTeX_Math-BoldItalic.woff2) format("woff2"),url(fonts/KaTeX_Math-BoldItalic.woff) format("woff"),url(fonts/KaTeX_Math-BoldItalic.ttf) format("truetype")}@font-face{font-family:KaTeX_Math;font-style:italic;font-weight:400;src:url(fonts/KaTeX_Math-Italic.woff2) format("woff2"),url(fonts/KaTeX_Math-Italic.woff) format("woff"),url(fonts/KaTeX_Math-Italic.ttf) format("truetype")}@font-face{font-family:"KaTeX_SansSerif";font-style:normal;font-weight:700;src:url(fonts/KaTeX_SansSerif-Bold.woff2) format("woff2"),url(fonts/KaTeX_SansSerif-Bold.woff) format("woff"),url(fonts/KaTeX_SansSerif-Bold.ttf) format("truetype")}@font-face{font-family:"KaTeX_SansSerif";font-style:italic;font-weight:400;src:url(fonts/KaTeX_SansSerif-Italic.woff2) format("woff2"),url(fonts/KaTeX_SansSerif-Italic.woff) format("woff"),url(fonts/KaTeX_SansSerif-Italic.ttf) format("truetype")}@font-face{font-family:"KaTeX_SansSerif";font-style:normal;font-weight:400;src:url(fonts/KaTeX_SansSerif-Regular.woff2) format("woff2"),url(fonts/KaTeX_SansSerif-Regular.woff) format("woff"),url(fonts/KaTeX_SansSerif-Regular.ttf) format("truetype")}@font-face{font-family:KaTeX_Script;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Script-Regular.woff2) format("woff2"),url(fonts/KaTeX_Script-Regular.woff) format("woff"),url(fonts/KaTeX_Script-Regular.ttf) format("truetype")}@font-face{font-family:KaTeX_Size1;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Size1-Regular.woff2) format("woff2"),url(fonts/KaTeX_Size1-Regular.woff) format("woff"),url(fonts/KaTeX_Size1-Regular.ttf) format("truetype")}@font-face{font-family:KaTeX_Size2;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Size2-Regular.woff2) format("woff2"),url(fonts/KaTeX_Size2-Regular.woff) format("woff"),url(fonts/KaTeX_Size2-Regular.ttf) format("truetype")}@font-face{font-family:KaTeX_Size3;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Size3-Regular.woff2) format("woff2"),url(fonts/KaTeX_Size3-Regular.woff) format("woff"),url(fonts/KaTeX_Size3-Regular.ttf) format("truetype")}@font-face{font-family:KaTeX_Size4;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Size4-Regular.woff2) format("woff2"),url(fonts/KaTeX_Size4-Regular.woff) format("woff"),url(fonts/KaTeX_Size4-Regular.ttf) format("truetype")}@font-face{font-family:KaTeX_Typewriter;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Typewriter-Regular.woff2) format("woff2"),url(fonts/KaTeX_Typewriter-Regular.woff) format("woff"),url(fonts/KaTeX_Typewriter-Regular.ttf) format("truetype")}.katex{font:normal 1.21em KaTeX_Main,Times New Roman,serif;line-height:1.2;text-indent:0;text-rendering:auto}.katex *{-ms-high-contrast-adjust:none!important;border-color:currentColor}.katex .katex-version:after{content:"0.16.22"}.katex .katex-mathml{clip:rect(1px,1px,1px,1px);border:0;height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.katex .katex-html>.newline{display:block}.katex .base{position:relative;white-space:nowrap;width:-webkit-min-content;width:-moz-min-content;width:min-content}.katex .base,.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-style:italic;font-weight:700}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathboldfrak,.katex .textboldfrak{font-family:KaTeX_Fraktur;font-weight:700}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .mathsfit,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{border-collapse:collapse;display:inline-table;table-layout:fixed}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;position:relative;vertical-align:bottom}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;font-size:1px;min-width:2px;vertical-align:bottom;width:2px}.katex .vbox{align-items:baseline;display:inline-flex;flex-direction:column}.katex .hbox{width:100%}.katex .hbox,.katex .thinbox{display:inline-flex;flex-direction:row}.katex .thinbox{max-width:0;width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline,.katex .hline,.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .rule,.katex .underline .underline-line{min-height:1px}.katex .mspace{display:inline-block}.katex .clap,.katex .llap,.katex .rlap{position:relative;width:0}.katex .clap>.inner,.katex .llap>.inner,.katex .rlap>.inner{position:absolute}.katex .clap>.fix,.katex .llap>.fix,.katex .rlap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .clap>.inner,.katex .rlap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{border:0 solid;display:inline-block;position:relative}.katex .hline,.katex .overline .overline-line,.katex .underline .underline-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline{border-bottom-style:dashed;display:inline-block;width:100%}.katex .sqrt>.root{margin-left:.2777777778em;margin-right:-.5555555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .sizing.reset-size2.size1{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .sizing.reset-size2.size3{font-size:1.1666666667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .sizing.reset-size2.size6{font-size:1.6666666667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .sizing.reset-size2.size10{font-size:3.4566666667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .sizing.reset-size2.size11{font-size:4.1466666667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.7142857143em}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.8571428571em}.katex .fontsize-ensurer.reset-size3.size3,.katex .sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .sizing.reset-size3.size4{font-size:1.1428571429em}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.2857142857em}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.4285714286em}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.7142857143em}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.0571428571em}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.4685714286em}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:2.9628571429em}.katex .fontsize-ensurer.reset-size3.size11,.katex .sizing.reset-size3.size11{font-size:3.5542857143em}.katex .fontsize-ensurer.reset-size4.size1,.katex .sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .sizing.reset-size5.size1{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.7777777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.8888888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .sizing.reset-size5.size6{font-size:1.1111111111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .sizing.reset-size5.size10{font-size:2.3044444444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .sizing.reset-size5.size11{font-size:2.7644444444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .sizing.reset-size7.size1{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .sizing.reset-size7.size3{font-size:.5833333333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .sizing.reset-size7.size6{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .sizing.reset-size7.size10{font-size:1.7283333333em}.katex .fontsize-ensurer.reset-size7.size11,.katex .sizing.reset-size7.size11{font-size:2.0733333333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.4861111111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .sizing.reset-size8.size6{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .sizing.reset-size8.size10{font-size:1.4402777778em}.katex .fontsize-ensurer.reset-size8.size11,.katex .sizing.reset-size8.size11{font-size:1.7277777778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.2893518519em}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.4050925926em}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.462962963em}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.5208333333em}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.5787037037em}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .sizing.reset-size9.size10{font-size:1.2002314815em}.katex .fontsize-ensurer.reset-size9.size11,.katex .sizing.reset-size9.size11{font-size:1.4398148148em}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.2410800386em}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.2892960463em}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.337512054em}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.3857280617em}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.4339440694em}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.4821600771em}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.5785920926em}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.6943105111em}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.8331726133em}.katex .fontsize-ensurer.reset-size10.size10,.katex .sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .sizing.reset-size10.size11{font-size:1.1996142719em}.katex .fontsize-ensurer.reset-size11.size1,.katex .sizing.reset-size11.size1{font-size:.2009646302em}.katex .fontsize-ensurer.reset-size11.size2,.katex .sizing.reset-size11.size2{font-size:.2411575563em}.katex .fontsize-ensurer.reset-size11.size3,.katex .sizing.reset-size11.size3{font-size:.2813504823em}.katex .fontsize-ensurer.reset-size11.size4,.katex .sizing.reset-size11.size4{font-size:.3215434084em}.katex .fontsize-ensurer.reset-size11.size5,.katex .sizing.reset-size11.size5{font-size:.3617363344em}.katex .fontsize-ensurer.reset-size11.size6,.katex .sizing.reset-size11.size6{font-size:.4019292605em}.katex .fontsize-ensurer.reset-size11.size7,.katex .sizing.reset-size11.size7{font-size:.4823151125em}.katex .fontsize-ensurer.reset-size11.size8,.katex .sizing.reset-size11.size8{font-size:.578778135em}.katex .fontsize-ensurer.reset-size11.size9,.katex .sizing.reset-size11.size9{font-size:.6945337621em}.katex .fontsize-ensurer.reset-size11.size10,.katex .sizing.reset-size11.size10{font-size:.8336012862em}.katex .fontsize-ensurer.reset-size11.size11,.katex .sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .accent>.vlist-t,.katex .op-limits>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{fill:currentColor;stroke:currentColor;fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;display:block;height:inherit;position:absolute;width:100%}.katex svg path{stroke:none}.katex img{border-style:none;max-height:none;max-width:none;min-height:0;min-width:0}.katex .stretchy{display:block;overflow:hidden;position:relative;width:100%}.katex .stretchy:after,.katex .stretchy:before{content:""}.katex .hide-tail{overflow:hidden;position:relative;width:100%}.katex .halfarrow-left{left:0;overflow:hidden;position:absolute;width:50.2%}.katex .halfarrow-right{overflow:hidden;position:absolute;right:0;width:50.2%}.katex .brace-left{left:0;overflow:hidden;position:absolute;width:25.1%}.katex .brace-center{left:25%;overflow:hidden;position:absolute;width:50%}.katex .brace-right{overflow:hidden;position:absolute;right:0;width:25.1%}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{border:.04em solid;box-sizing:border-box}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{border-right:.049em solid;border-top:.049em solid;box-sizing:border-box;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .eqn-num:before{content:"(" counter(katexEqnNo) ")";counter-increment:katexEqnNo}.katex .mml-eqn-num:before{content:"(" counter(mmlEqnNo) ")";counter-increment:mmlEqnNo}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{display:inline-block;position:absolute;right:calc(50% + .3em);text-align:left}.katex .cd-label-right{display:inline-block;left:calc(50% + .3em);position:absolute;text-align:right}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{padding-left:2em;text-align:left}body{counter-reset:katexEqnNo mmlEqnNo} diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/js/cherry-markdown.core.js b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/js/cherry-markdown.core.js new file mode 100644 index 00000000..edc66d42 --- /dev/null +++ b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/js/cherry-markdown.core.js @@ -0,0 +1 @@ +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Cherry={})}(this,(function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e,t){return e(t={exports:{}},t.exports),t.exports}var i,o,a=function(e){return e&&e.Math===Math&&e},A=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof t&&t)||a("object"==typeof t&&t)||function(){return this}()||Function("return this")(),s=function(e){try{return!!e()}catch(e){return!0}},l=!s((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),c=l,u=Function.prototype,h=u.apply,d=u.call,f="object"==typeof Reflect&&Reflect.apply||(c?d.bind(h):function(){return d.apply(h,arguments)}),p=Function.prototype,g=p.call,m=c&&p.bind.bind(g,g),v=c?m:function(e){return function(){return g.apply(e,arguments)}},y=v,b=y({}.toString),w=y("".slice),B=function(e){return w(b(e),8,-1)},C="object"==typeof document&&document.all,k=void 0===C&&void 0!==C?function(e){return"function"==typeof e||e===C}:function(e){return"function"==typeof e},T=!s((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),E=Function.prototype.call,S=c?E.bind(E):function(){return E.apply(E,arguments)},x={}.propertyIsEnumerable,Q=Object.getOwnPropertyDescriptor,L=Q&&!x.call({1:2},1)?function(e){var t=Q(this,e);return!!t&&t.enumerable}:x,I={f:L},F=Object,U=y("".split),_=s((function(){return!F("z").propertyIsEnumerable(0)}))?function(e){return"String"===B(e)?U(e,""):F(e)}:F,M=function(e){return null==e},H=TypeError,D=_,O=function(e){if(M(e))throw new H("Can't call method on "+e);return e},N=k,R={},P=A,$=function(e){return N(e)?e:void 0},K=y({}.isPrototypeOf),X="undefined"!=typeof navigator&&String(navigator.userAgent)||"",V=P.process,G=P.Deno,j=V&&V.versions||G&&G.version,W=j&&j.v8;W&&(o=(i=W.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!o&&X&&(!(i=X.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=X.match(/Chrome\/(\d+)/))&&(o=+i[1]);var z=o,q=P.String,J=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol("symbol detection");return!q(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&z&&z<41})),Y=J,Z=Y&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ee=function(e,t){return arguments.length<2?$(R[e])||$(P[e]):R[e]&&R[e][t]||P[e]&&P[e][t]},te=K,ne=Z,re=Object,ie=ne?function(e){return"symbol"==typeof e}:function(e){var t=ee("Symbol");return N(t)&&te(t.prototype,re(e))},oe=String,ae=function(e){try{return oe(e)}catch(e){return"Object"}},Ae=TypeError,se=function(e){if(N(e))return e;throw new Ae(ae(e)+" is not a function")},le=S,ce=function(e){return"object"==typeof e?null!==e:N(e)},ue=TypeError,he=Object.defineProperty,de=!0,fe=function(e,t){try{he(P,e,{value:t,configurable:!0,writable:!0})}catch(n){P[e]=t}return t},pe=r((function(e){var t="__core-js_shared__",n=e.exports=P[t]||fe(t,{});(n.versions||(n.versions=[])).push({version:"3.37.1",mode:"pure",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),ge=pe,me=Object,ve=function(e){return me(O(e))},ye=y({}.hasOwnProperty),be=Object.hasOwn||function(e,t){return ye(ve(e),t)},we=0,Be=Math.random(),Ce=y(1..toString),ke=function(e,t){return ge[e]||(ge[e]=t||{})},Te=be,Ee=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Ce(++we+Be,36)},Se=P.Symbol,xe=ke("wks"),Qe=ne?Se.for||Se:Se&&Se.withoutSetter||Ee,Le=ie,Ie=function(e,t){var n=e[t];return M(n)?void 0:se(n)},Fe=function(e,t){var n,r;if("string"===t&&N(n=e.toString)&&!ce(r=le(n,e)))return r;if(N(n=e.valueOf)&&!ce(r=le(n,e)))return r;if("string"!==t&&N(n=e.toString)&&!ce(r=le(n,e)))return r;throw new ue("Can't convert object to primitive value")},Ue=function(e){return Te(xe,e)||(xe[e]=Y&&Te(Se,e)?Se[e]:Qe("Symbol."+e)),xe[e]},_e=TypeError,Me=Ue("toPrimitive"),He=function(e,t){if(!ce(e)||Le(e))return e;var n,r=Ie(e,Me);if(r){if(void 0===t&&(t="default"),n=le(r,e,t),!ce(n)||Le(n))return n;throw new _e("Can't convert object to primitive value")}return void 0===t&&(t="number"),Fe(e,t)},De=P.document,Oe=ce(De)&&ce(De.createElement),Ne=T,Re=function(e){return Oe?De.createElement(e):{}},Pe=!Ne&&!s((function(){return 7!==Object.defineProperty(Re("div"),"a",{get:function(){return 7}}).a})),$e=I,Ke=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Xe=function(e){return D(O(e))},Ve=function(e){var t=He(e,"string");return Le(t)?t:t+""},Ge=Pe,je=Object.getOwnPropertyDescriptor,We={f:Ne?je:function(e,t){if(e=Xe(e),t=Ve(t),Ge)try{return je(e,t)}catch(e){}if(Te(e,t))return Ke(!le($e.f,e,t),e[t])}},ze=/#|\.prototype\./,qe=function(e,t){var n=Ye[Je(e)];return n===et||n!==Ze&&(N(t)?s(t):!!t)},Je=qe.normalize=function(e){return String(e).replace(ze,".").toLowerCase()},Ye=qe.data={},Ze=qe.NATIVE="N",et=qe.POLYFILL="P",tt=qe,nt=function(e){if("Function"===B(e))return y(e)},rt=nt(nt.bind),it=Ne&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),ot=String,at=TypeError,At=it,st=function(e){if(ce(e))return e;throw new at(ot(e)+" is not an object")},lt=TypeError,ct=Object.defineProperty,ut=Object.getOwnPropertyDescriptor,ht="enumerable",dt="configurable",ft="writable",pt={f:Ne?At?function(e,t,n){if(st(e),t=Ve(t),st(n),"function"==typeof e&&"prototype"===t&&"value"in n&&ft in n&&!n[ft]){var r=ut(e,t);r&&r[ft]&&(e[t]=n.value,n={configurable:dt in n?n[dt]:r[dt],enumerable:ht in n?n[ht]:r[ht],writable:!1})}return ct(e,t,n)}:ct:function(e,t,n){if(st(e),t=Ve(t),st(n),Ge)try{return ct(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new lt("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},gt=Ne?function(e,t,n){return pt.f(e,t,Ke(1,n))}:function(e,t,n){return e[t]=n,e},mt=f,vt=We,yt=tt,bt=function(e,t){return se(e),void 0===t?e:c?rt(e,t):function(){return e.apply(t,arguments)}},wt=gt,Bt=vt.f,Ct=function(e){var t=function(n,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,i)}return mt(e,this,arguments)};return t.prototype=e.prototype,t},kt=y([].slice),Tt=Function,Et=y([].concat),St=y([].join),xt={},Qt=c?Tt.bind:function(e){var t=se(this),n=t.prototype,r=kt(arguments,1),i=function(){var n=Et(r,kt(arguments));return this instanceof i?function(e,t,n){if(!Te(xt,t)){for(var r=[],i=0;i0?Yt:Jt)(t)},en=Zt,tn=function(e){var t=+e;return t!=t||0===t?0:en(t)},nn=Math.max,rn=Math.min,on=Math.min,an=function(e){var t=tn(e);return t>0?on(t,9007199254740991):0},An=function(e,t){var n=tn(e);return n<0?nn(n+t,0):rn(n,t)},sn=function(e){return an(e.length)},ln=function(e){return function(t,n,r){var i=Xe(t),o=sn(i);if(0===o)return!e&&-1;var a,A=An(r,o);if(e&&n!=n){for(;o>A;)if((a=i[A++])!=a)return!0}else for(;o>A;A++)if((e||A in i)&&i[A]===n)return e||A||0;return!e&&-1}},cn={includes:ln(!0),indexOf:ln(!1)},un={},hn=cn.indexOf,dn=y([].push),fn=function(e,t){var n,r=Xe(e),i=0,o=[];for(n in r)!Te(un,n)&&Te(r,n)&&dn(o,n);for(;t.length>i;)Te(r,n=t[i++])&&(~hn(o,n)||dn(o,n));return o},pn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],gn=Object.keys||function(e){return fn(e,pn)},mn=Ne&&!At?Object.defineProperties:function(e,t){st(e);for(var n,r=Xe(t),i=gn(t),o=i.length,a=0;o>a;)pt.f(e,n=i[a++],r[n]);return e},vn={f:mn},yn=ee("document","documentElement"),bn=ke("keys"),wn=vn,Bn=yn,Cn=function(e){return bn[e]||(bn[e]=Ee(e))},kn="prototype",Tn="script",En=Cn("IE_PROTO"),Sn=function(){},xn=function(e){return"<"+Tn+">"+e+""},Qn=function(e){e.write(xn("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ln=function(){try{jt=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;Ln="undefined"!=typeof document?document.domain&&jt?Qn(jt):(t=Re("iframe"),n="java"+Tn+":",t.style.display="none",Bn.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(xn("document.F=Object")),e.close(),e.F):Qn(jt);for(var r=pn.length;r--;)delete Ln[kn][pn[r]];return Ln()};un[En]=!0;var In=Object.create||function(e,t){var n;return null!==e?(Sn[kn]=st(e),n=new Sn,Sn[kn]=null,n[En]=e):n=Ln(),void 0===t?n:wn.f(n,t)},Fn=function(e,t){var n,r,i,o,a,A,s,l,c,u=e.target,h=e.global,d=e.stat,f=e.proto,p=h?P:d?P[u]:P[u]&&P[u].prototype,g=h?R:R[u]||wt(R,u,{})[u],m=g.prototype;for(o in t)r=!(n=yt(h?o:u+(d?".":"#")+o,e.forced))&&p&&Te(p,o),A=g[o],r&&(s=e.dontCallGetSet?(c=Bt(p,o))&&c.value:p[o]),a=r&&s?s:t[o],(n||f||typeof A!=typeof a)&&(l=e.bind&&r?bt(a,P):e.wrap&&r?Ct(a):f&&N(a)?nt(a):a,(e.sham||a&&a.sham||A&&A.sham)&&wt(l,"sham",!0),wt(g,o,l),f&&(Te(R,i=u+"Prototype")||wt(R,i,{}),wt(R[i],o,a),e.real&&m&&(n||!m[o])&&wt(m,o,a)))},Un=Qt,_n=function(e){if(zt(e))return e;throw new qt(ae(e)+" is not a constructor")},Mn=In,Hn=ee("Reflect","construct"),Dn=Object.prototype,On=[].push,Nn=s((function(){function e(){}return!(Hn((function(){}),[],e)instanceof e)})),Rn=!s((function(){Hn((function(){}))})),Pn=Nn||Rn;Fn({target:"Reflect",stat:!0,forced:Pn,sham:Pn},{construct:function(e,t){_n(e),st(t);var n=arguments.length<3?e:_n(arguments[2]);if(Rn&&!Nn)return Hn(e,t,n);if(e===n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return mt(On,r,t),new(mt(Un,e,r))}var i=n.prototype,o=Mn(ce(i)?i:Dn),a=mt(e,o,t);return ce(a)?a:o}});var $n,Kn,Xn,Vn=R.Reflect.construct,Gn=Vn,jn=String,Wn=pn.concat("length","prototype"),zn={f:Object.getOwnPropertyNames||function(e){return fn(e,Wn)}},qn=zn.f,Jn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Yn={f:function(e){return Jn&&"Window"===B(e)?function(e){try{return qn(e)}catch(e){return kt(Jn)}}(e):qn(Xe(e))}},Zn={f:Object.getOwnPropertySymbols},er={f:Ue},tr=pt.f,nr=function(e,t,n,r){return r&&r.enumerable?e[t]=n:wt(e,t,n),e},rr=It?{}.toString:function(){return"[object "+Ot(this)+"]"},ir=pt.f,or=Ue("toStringTag"),ar=P.WeakMap,Ar=N(ar)&&/native code/.test(String(ar)),sr="Object already initialized",lr=P.TypeError,cr=P.WeakMap;if(Ar||ge.state){var ur=ge.state||(ge.state=new cr);ur.get=ur.get,ur.has=ur.has,ur.set=ur.set,$n=function(e,t){if(ur.has(e))throw new lr(sr);return t.facade=e,ur.set(e,t),t},Kn=function(e){return ur.get(e)||{}},Xn=function(e){return ur.has(e)}}else{var hr=Cn("state");un[hr]=!0,$n=function(e,t){if(Te(e,hr))throw new lr(sr);return t.facade=e,wt(e,hr,t),t},Kn=function(e){return Te(e,hr)?e[hr]:{}},Xn=function(e){return Te(e,hr)}}var dr={set:$n,get:Kn,has:Xn,enforce:function(e){return Xn(e)?Kn(e):$n(e,{})},getterFor:function(e){return function(t){var n;if(!ce(t)||(n=Kn(t)).type!==e)throw new lr("Incompatible receiver, "+e+" required");return n}}},fr=Array.isArray||function(e){return"Array"===B(e)},pr=Ue("species"),gr=Array,mr=function(e){var t;return fr(e)&&(t=e.constructor,(zt(t)&&(t===gr||fr(t.prototype))||ce(t)&&null===(t=t[pr]))&&(t=void 0)),void 0===t?gr:t},vr=function(e,t){return new(mr(e))(0===t?0:t)},yr=y([].push),br=function(e){var t=1===e,n=2===e,r=3===e,i=4===e,o=6===e,a=7===e,A=5===e||o;return function(s,l,c,u){for(var h,d,f=ve(s),p=D(f),g=sn(p),m=bt(l,c),v=0,y=u||vr,b=t?y(s,g):n||a?y(s,0):void 0;g>v;v++)if((A||v in p)&&(d=m(h=p[v],v,f),e))if(t)b[v]=d;else if(d)switch(e){case 3:return!0;case 5:return h;case 6:return v;case 2:yr(b,h)}else switch(e){case 4:return!1;case 7:yr(b,h)}return o?-1:r||i?i:b}},wr={forEach:br(0),map:br(1),filter:br(2),some:br(3),every:br(4),find:br(5),findIndex:br(6),filterReject:br(7)},Br=function(e){if("Symbol"===Ot(e))throw new TypeError("Cannot convert a Symbol value to a string");return jn(e)},Cr=Yn,kr=Zn,Tr=function(e,t,n){return pt.f(e,t,n)},Er=function(e){var t=R.Symbol||(R.Symbol={});Te(t,e)||tr(t,e,{value:er.f(e)})},Sr=function(){var e=ee("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,r=Ue("toPrimitive");t&&!t[r]&&nr(t,r,(function(e){return le(n,this)}),{arity:1})},xr=function(e,t,n,r){var i=n?e:e&&e.prototype;i&&(Te(i,or)||ir(i,or,{configurable:!0,value:t}),r&&!It&&wt(i,"toString",rr))},Qr=dr,Lr=wr,Ir=Lr.forEach,Fr=Cn("hidden"),Ur="Symbol",_r="prototype",Mr=Qr.set,Hr=Qr.getterFor(Ur),Dr=Object[_r],Or=P.Symbol,Nr=Or&&Or[_r],Rr=P.RangeError,Pr=P.TypeError,$r=P.QObject,Kr=vt.f,Xr=pt.f,Vr=Cr.f,Gr=$e.f,jr=y([].push),Wr=ke("symbols"),zr=ke("op-symbols"),qr=ke("wks"),Jr=!$r||!$r[_r]||!$r[_r].findChild,Yr=function(e,t,n){var r=Kr(Dr,t);r&&delete Dr[t],Xr(e,t,n),r&&e!==Dr&&Xr(Dr,t,r)},Zr=Ne&&s((function(){return 7!==Mn(Xr({},"a",{get:function(){return Xr(this,"a",{value:7}).a}})).a}))?Yr:Xr,ei=function(e,t){var n=Wr[e]=Mn(Nr);return Mr(n,{type:Ur,tag:e,description:t}),Ne||(n.description=t),n},ti=function(e,t,n){e===Dr&&ti(zr,t,n),st(e);var r=Ve(t);return st(n),Te(Wr,r)?(n.enumerable?(Te(e,Fr)&&e[Fr][r]&&(e[Fr][r]=!1),n=Mn(n,{enumerable:Ke(0,!1)})):(Te(e,Fr)||Xr(e,Fr,Ke(1,Mn(null))),e[Fr][r]=!0),Zr(e,r,n)):Xr(e,r,n)},ni=function(e,t){st(e);var n=Xe(t),r=gn(n).concat(ai(n));return Ir(r,(function(t){Ne&&!le(ri,n,t)||ti(e,t,n[t])})),e},ri=function(e){var t=Ve(e),n=le(Gr,this,t);return!(this===Dr&&Te(Wr,t)&&!Te(zr,t))&&(!(n||!Te(this,t)||!Te(Wr,t)||Te(this,Fr)&&this[Fr][t])||n)},ii=function(e,t){var n=Xe(e),r=Ve(t);if(n!==Dr||!Te(Wr,r)||Te(zr,r)){var i=Kr(n,r);return!i||!Te(Wr,r)||Te(n,Fr)&&n[Fr][r]||(i.enumerable=!0),i}},oi=function(e){var t=Vr(Xe(e)),n=[];return Ir(t,(function(e){Te(Wr,e)||Te(un,e)||jr(n,e)})),n},ai=function(e){var t=e===Dr,n=Vr(t?zr:Xe(e)),r=[];return Ir(n,(function(e){!Te(Wr,e)||t&&!Te(Dr,e)||jr(r,Wr[e])})),r};Y||(Or=function(){if(te(Nr,this))throw new Pr("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?Br(arguments[0]):void 0,t=Ee(e),n=function(e){var r=void 0===this?P:this;r===Dr&&le(n,zr,e),Te(r,Fr)&&Te(r[Fr],t)&&(r[Fr][t]=!1);var i=Ke(1,e);try{Zr(r,t,i)}catch(e){if(!(e instanceof Rr))throw e;Yr(r,t,i)}};return Ne&&Jr&&Zr(Dr,t,{configurable:!0,set:n}),ei(t,e)},Nr=Or[_r],nr(Nr,"toString",(function(){return Hr(this).tag})),nr(Or,"withoutSetter",(function(e){return ei(Ee(e),e)})),$e.f=ri,pt.f=ti,wn.f=ni,vt.f=ii,zn.f=Cr.f=oi,kr.f=ai,er.f=function(e){return ei(Ue(e),e)},Ne&&Tr(Nr,"description",{configurable:!0,get:function(){return Hr(this).description}})),Fn({global:!0,constructor:!0,wrap:!0,forced:!Y,sham:!Y},{Symbol:Or}),Ir(gn(qr),(function(e){Er(e)})),Fn({target:Ur,stat:!0,forced:!Y},{useSetter:function(){Jr=!0},useSimple:function(){Jr=!1}}),Fn({target:"Object",stat:!0,forced:!Y,sham:!Ne},{create:function(e,t){return void 0===t?Mn(e):ni(Mn(e),t)},defineProperty:ti,defineProperties:ni,getOwnPropertyDescriptor:ii}),Fn({target:"Object",stat:!0,forced:!Y},{getOwnPropertyNames:oi}),Sr(),xr(Or,Ur),un[Fr]=!0;var Ai=Y&&!!Symbol.for&&!!Symbol.keyFor,si=ke("string-to-symbol-registry"),li=ke("symbol-to-string-registry");Fn({target:"Symbol",stat:!0,forced:!Ai},{for:function(e){var t=Br(e);if(Te(si,t))return si[t];var n=ee("Symbol")(t);return si[t]=n,li[n]=t,n}});var ci=ke("symbol-to-string-registry");Fn({target:"Symbol",stat:!0,forced:!Ai},{keyFor:function(e){if(!Le(e))throw new TypeError(ae(e)+" is not a symbol");if(Te(ci,e))return ci[e]}});var ui=y([].push),hi=function(e){if(N(e))return e;if(fr(e)){for(var t=e.length,n=[],r=0;r=51||!s((function(){var t=[];return(t.constructor={})[Li]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Fi=Lr.filter,Ui=Ii("filter");Fn({target:"Array",proto:!0,forced:!Ui},{filter:function(e){return Fi(this,e,arguments.length>1?arguments[1]:void 0)}});var _i=function(e,t){var n=R[e+"Prototype"],r=n&&n[t];if(r)return r;var i=P[e],o=i&&i.prototype;return o&&o[t]},Mi=_i("Array","filter"),Hi=Array.prototype,Di=function(e){var t=e.filter;return e===Hi||te(Hi,e)&&t===Hi.filter?Mi:t},Oi=vt.f,Ni=!Ne||s((function(){Oi(1)}));Fn({target:"Object",stat:!0,forced:Ni,sham:!Ne},{getOwnPropertyDescriptor:function(e,t){return Oi(Xe(e),t)}});var Ri=r((function(e){var t=R.Object,n=e.exports=function(e,n){return t.getOwnPropertyDescriptor(e,n)};t.getOwnPropertyDescriptor.sham&&(n.sham=!0)})),Pi=Ri,$i=Pi,Ki=y([].concat),Xi=ee("Reflect","ownKeys")||function(e){var t=zn.f(st(e)),n=kr.f;return n?Ki(t,n(e)):t},Vi=Xi,Gi=function(e,t,n){Ne?pt.f(e,t,Ke(0,n)):e[t]=n};Fn({target:"Object",stat:!0,sham:!Ne},{getOwnPropertyDescriptors:function(e){for(var t,n,r=Xe(e),i=vt.f,o=Vi(r),a={},A=0;o.length>A;)void 0!==(n=i(r,t=o[A++]))&&Gi(a,t,n);return a}});var ji=R.Object.getOwnPropertyDescriptors,Wi=wn.f;Fn({target:"Object",stat:!0,forced:Object.defineProperties!==Wi,sham:!Ne},{defineProperties:Wi});var zi=r((function(e){var t=R.Object,n=e.exports=function(e,n){return t.defineProperties(e,n)};t.defineProperties.sham&&(n.sham=!0)})),qi=zi,Ji=pt.f;Fn({target:"Object",stat:!0,forced:Object.defineProperty!==Ji,sham:!Ne},{defineProperty:Ji});var Yi=r((function(e){var t=R.Object,n=e.exports=function(e,n,r){return t.defineProperty(e,n,r)};t.defineProperty.sham&&(n.sham=!0)})),Zi=Yi;function eo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var to=Yi,no=to,ro=TypeError,io=function(e){if(e>9007199254740991)throw ro("Maximum allowed index exceeded");return e},oo=Ue("isConcatSpreadable"),ao=z>=51||!s((function(){var e=[];return e[oo]=!1,e.concat()[0]!==e})),Ao=function(e){if(!ce(e))return!1;var t=e[oo];return void 0!==t?!!t:fr(e)},so=!ao||!Ii("concat");Fn({target:"Array",proto:!0,arity:1,forced:so},{concat:function(e){var t,n,r,i,o,a=ve(this),A=vr(a,0),s=0;for(t=-1,r=arguments.length;t=t.length)return e.target=void 0,Wo(void 0,!0);switch(e.kind){case"keys":return Wo(n,!1);case"values":return Wo(t[n],!1)}return Wo([n,t[n]],!1)}),"values");So.Arguments=So.Array;Go(),Go(),Go();var Yo={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0};for(var Zo in Yo)xr(P[Zo],Zo),So[Zo]=So.Array;var ea=ho,ta=pt.f,na=Ue("metadata"),ra=Function.prototype;void 0===ra[na]&&ta(ra,na,{value:null}),Er("asyncDispose"),Er("dispose"),Er("metadata");var ia=ea,oa=ia,aa=ee("Symbol"),Aa=aa.keyFor,sa=y(aa.prototype.valueOf),la=aa.isRegisteredSymbol||function(e){try{return void 0!==Aa(sa(e))}catch(e){return!1}};Fn({target:"Symbol",stat:!0},{isRegisteredSymbol:la});for(var ca=ee("Symbol"),ua=ca.isWellKnownSymbol,ha=ee("Object","getOwnPropertyNames"),da=y(ca.prototype.valueOf),fa=ke("wks"),pa=0,ga=ha(ca),ma=ga.length;pa=A?e?"":void 0:(r=Ca(o,a))<55296||r>56319||a+1===A||(i=Ca(o,a+1))<56320||i>57343?e?Ba(o,a):r:e?ka(o,a,a+2):i-56320+(r-55296<<10)+65536}},Ea={codeAt:Ta(!1),charAt:Ta(!0)},Sa=Ea.charAt,xa="String Iterator",Qa=Qr.set,La=Qr.getterFor(xa);jo(String,"String",(function(e){Qa(this,{type:xa,string:Br(e),index:0})}),(function(){var e,t=La(this),n=t.string,r=t.index;return r>=n.length?Wo(void 0,!0):(e=Sa(n,r),t.index+=e.length,Wo(e,!1))}));var Ia=er.f("iterator"),Fa=Ia;function Ua(e){return Ua="function"==typeof wa&&"symbol"==typeof Fa?function(e){return typeof e}:function(e){return e&&"function"==typeof wa&&e.constructor===wa&&e!==wa.prototype?"symbol":typeof e},Ua(e)}var _a=er.f("toPrimitive");function Ma(e){var t=function(e,t){if("object"!=Ua(e)||!e)return e;var n=e[_a];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ua(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ua(t)?t:t+""}function Ha(e,t){for(var n=0;nn,a=N(r)?r:uA(r),A=o?kt(arguments,n):[],s=o?function(){mt(a,this,A)}:a;return t?e(s,i):e(s)}:e},fA=dA(P.setInterval,!0);Fn({global:!0,bind:!0,forced:P.setInterval!==fA},{setInterval:fA});var pA=dA(P.setTimeout,!0);Fn({global:!0,bind:!0,forced:P.setTimeout!==pA},{setTimeout:pA});var gA=R.setTimeout,mA=Object.assign,vA=Object.defineProperty,yA=y([].concat),bA=!mA||s((function(){if(Ne&&1!==mA({b:1},mA(vA({},"a",{enumerable:!0,get:function(){vA(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!==mA({},e)[n]||gn(mA({},t)).join("")!==r}))?function(e,t){for(var n=ve(e),r=arguments.length,i=1,o=kr.f,a=$e.f;r>i;)for(var A,s=D(arguments[i++]),l=o?yA(gn(s),o(s)):gn(s),c=l.length,u=0;c>u;)A=l[u++],Ne&&!le(a,s,A)||(n[A]=s[A]);return n}:mA,wA=bA;Fn({target:"Object",stat:!0,arity:2,forced:Object.assign!==wA},{assign:wA});var BA=R.Object.assign,CA=BA,kA=s((function(){gn(1)}));Fn({target:"Object",stat:!0,forced:kA},{keys:function(e){return gn(ve(e))}});var TA=R.Object.keys,EA=function(e,t){var n=[][e];return!!n&&s((function(){n.call(null,t||function(){return 1},1)}))},SA=Lr.forEach,xA=EA("forEach")?[].forEach:function(e){return SA(this,e,arguments.length>1?arguments[1]:void 0)};Fn({target:"Array",proto:!0,forced:[].forEach!==xA},{forEach:xA});var QA=_i("Array","forEach"),LA=Array.prototype,IA={DOMTokenList:!0,NodeList:!0},FA=function(e){var t=e.forEach;return e===LA||te(LA,e)&&t===LA.forEach||Te(IA,Ot(e))?QA:t},UA=FA,_A=Ue("match"),MA=function(){var e=st(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},HA=RegExp.prototype,DA=Math.floor,OA=y("".charAt),NA=y("".replace),RA=y("".slice),PA=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,$A=/\$([$&'`]|\d{1,2})/g,KA=function(e){var t;return ce(e)&&(void 0!==(t=e[_A])?!!t:"RegExp"===B(e))},XA=function(e){var t=e.flags;return void 0!==t||"flags"in HA||Te(e,"flags")||!te(HA,e)?t:le(MA,e)},VA=function(e,t,n,r,i,o){var a=n+e.length,A=r.length,s=$A;return void 0!==i&&(i=ve(i),s=PA),NA(o,s,(function(o,s){var l;switch(OA(s,0)){case"$":return"$";case"&":return e;case"`":return RA(t,0,n);case"'":return RA(t,a);case"<":l=i[RA(s,1,-1)];break;default:var c=+s;if(0===c)return o;if(c>A){var u=DA(c/10);return 0===u?o:u<=A?void 0===r[u-1]?OA(s,1):r[u-1]+OA(s,1):o}l=r[c-1]}return void 0===l?"":l}))},GA=Ue("replace"),jA=TypeError,WA=y("".indexOf),zA=y("".replace),qA=y("".slice),JA=Math.max;Fn({target:"String",proto:!0},{replaceAll:function(e,t){var n,r,i,o,a,A,s,l,c,u=O(this),h=0,d=0,f="";if(!M(e)){if((n=KA(e))&&(r=Br(O(XA(e))),!~WA(r,"g")))throw new jA("`.replaceAll` does not allow non-global regexes");if(i=Ie(e,GA))return le(i,e,u,t);if(n)return zA(Br(u),e,t)}for(o=Br(u),a=Br(e),(A=N(t))||(t=Br(t)),s=a.length,l=JA(1,s),h=WA(o,a);-1!==h;)c=A?Br(t(a,h,o)):VA(a,o,h,[],void 0,t),f+=qA(o,d,h)+c,d=h+s,h=h+l>o.length?-1:WA(o,a,h+l);return d-1};var ss=function(e,t){var n=this.__data__,r=rs(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function ls(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=9007199254740991};var Rl=function(e){return null!=e&&Nl(e.length)&&!Qs(e)};var Pl=function(e){return Il(e)&&Rl(e)};var $l=function(){return!1},Kl=r((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n?ms.Buffer:void 0,o=(i?i.isBuffer:void 0)||$l;e.exports=o})),Xl=Function.prototype,Vl=Object.prototype,Gl=Xl.toString,jl=Vl.hasOwnProperty,Wl=Gl.call(Object);var zl=function(e){if(!Il(e)||"[object Object]"!=Ss(e))return!1;var t=Sl(e);if(null===t)return!0;var n=jl.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Gl.call(n)==Wl},ql={};ql["[object Float32Array]"]=ql["[object Float64Array]"]=ql["[object Int8Array]"]=ql["[object Int16Array]"]=ql["[object Int32Array]"]=ql["[object Uint8Array]"]=ql["[object Uint8ClampedArray]"]=ql["[object Uint16Array]"]=ql["[object Uint32Array]"]=!0,ql["[object Arguments]"]=ql["[object Array]"]=ql["[object ArrayBuffer]"]=ql["[object Boolean]"]=ql["[object DataView]"]=ql["[object Date]"]=ql["[object Error]"]=ql["[object Function]"]=ql["[object Map]"]=ql["[object Number]"]=ql["[object Object]"]=ql["[object RegExp]"]=ql["[object Set]"]=ql["[object String]"]=ql["[object WeakMap]"]=!1;var Jl=function(e){return Il(e)&&Nl(e.length)&&!!ql[Ss(e)]};var Yl=function(e){return function(t){return e(t)}},Zl=r((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n&&ps.process,o=function(){try{var e=r&&r.require&&r.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=o})),ec=Zl&&Zl.isTypedArray,tc=ec?Yl(ec):Jl;var nc=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},rc=Object.prototype.hasOwnProperty;var ic=function(e,t,n){var r=e[t];rc.call(e,t)&&ns(r,n)&&(void 0!==n||t in e)||pl(e,t,n)};var oc=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},Sc=Ec(kc);var xc=function(e,t){return Sc(wc(e,t,vc),e+"")};var Qc=function(e,t,n){if(!xs(n))return!1;var r=typeof t;return!!("number"==r?Rl(n)&&sc(t,n.length):"string"==r&&t in n)&&ns(n[t],e)};var Lc=function(e){return xc((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&Qc(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r1?arguments[1]:void 0;return Hc?Mc(this,e,t)||0:_c(this,e,t)}});var Oc=_i("Array","indexOf"),Nc=Array.prototype,Rc=function(e){var t=e.indexOf;return e===Nc||te(Nc,e)&&t===Nc.indexOf?Oc:t},Pc=Rc;function $c(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(Pc(t).call(t,r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Uc){var o=Uc(e);for(r=0;r=0||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Kc=RangeError,Xc=function(e){var t=Br(O(this)),n="",r=tn(e);if(r<0||r===1/0)throw new Kc("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n},Vc=y(Xc),Gc=y("".slice),jc=Math.ceil,Wc=function(e){return function(t,n,r){var i,o,a=Br(O(t)),A=an(n),s=a.length,l=void 0===r?" ":Br(r);return A<=s||""===l?a:((o=Vc(l,jc((i=A-s)/l.length))).length>i&&(o=Gc(o,0,i)),e?a+o:o+a)}},zc={start:Wc(!1),end:Wc(!0)}.start,qc=RangeError,Jc=isFinite,Yc=Math.abs,Zc=Date.prototype,eu=Zc.toISOString,tu=y(Zc.getTime),nu=y(Zc.getUTCDate),ru=y(Zc.getUTCFullYear),iu=y(Zc.getUTCHours),ou=y(Zc.getUTCMilliseconds),au=y(Zc.getUTCMinutes),Au=y(Zc.getUTCMonth),su=y(Zc.getUTCSeconds),lu=s((function(){return"0385-07-25T07:06:39.999Z"!==eu.call(new Date(-50000000000001))}))||!s((function(){eu.call(new Date(NaN))}))?function(){if(!Jc(tu(this)))throw new qc("Invalid time value");var e=this,t=ru(e),n=ou(e),r=t<0?"-":t>9999?"+":"";return r+zc(Yc(t),r?6:4,0)+"-"+zc(Au(e)+1,2,0)+"-"+zc(nu(e),2,0)+"T"+zc(iu(e),2,0)+":"+zc(au(e),2,0)+":"+zc(su(e),2,0)+"."+zc(n,3,0)+"Z"}:eu,cu=s((function(){return null!==new Date(NaN).toJSON()||1!==le(Date.prototype.toJSON,{toISOString:function(){return 1}})}));Fn({target:"Date",proto:!0,forced:cu},{toJSON:function(e){var t=ve(this),n=He(t,"number");return"number"!=typeof n||isFinite(n)?"toISOString"in t||"Date"!==B(t)?t.toISOString():le(lu,t):null}}),R.JSON||(R.JSON={stringify:JSON.stringify});var uu=function(e,t,n){return mt(R.JSON.stringify,null,arguments)},hu=uu,du=Lr.find,fu="find",pu=!0;fu in[]&&Array(1)[fu]((function(){pu=!1})),Fn({target:"Array",proto:!0,forced:pu},{find:function(e){return du(this,e,arguments.length>1?arguments[1]:void 0)}}),Go();var gu=_i("Array","find"),mu=Array.prototype,vu=function(e){var t=e.find;return e===mu||te(mu,e)&&t===mu.find?gu:t},yu="\t\n\v\f\r                 \u2028\u2029\ufeff",bu=y("".replace),wu=RegExp("^["+yu+"]+"),Bu=RegExp("(^|[^"+yu+"])["+yu+"]+$"),Cu=function(e){return function(t){var n=Br(O(t));return 1&e&&(n=bu(n,wu,"")),2&e&&(n=bu(n,Bu,"$1")),n}},ku={start:Cu(1),end:Cu(2),trim:Cu(3)},Tu=Ho.PROPER,Eu=ku,Su=Eu.trim;Fn({target:"String",proto:!0,forced:function(e){return s((function(){return!!yu[e]()||"​…᠎"!=="​…᠎"[e]()||Tu&&yu[e].name!==e}))}("trim")},{trim:function(){return Su(this)}});var xu=_i("String","trim"),Qu=String.prototype,Lu=function(e){var t=e.trim;return"string"==typeof e||e===Qu||te(Qu,e)&&t===Qu.trim?xu:t},Iu=function(e,t,n){var r,i;st(e);try{if(!(r=Ie(e,"return"))){if("throw"===t)throw n;return n}r=le(r,e)}catch(e){i=!0,r=e}if("throw"===t)throw n;if(i)throw r;return st(r),n},Fu=Ue("iterator"),Uu=Array.prototype,_u=Ue("iterator"),Mu=function(e){if(!M(e))return Ie(e,_u)||Ie(e,"@@iterator")||So[Ot(e)]},Hu=TypeError,Du=function(e,t,n,r){try{return r?t(st(n)[0],n[1]):t(n)}catch(t){Iu(e,"throw",t)}},Ou=function(e){return void 0!==e&&(So.Array===e||Uu[Fu]===e)},Nu=function(e,t){var n=arguments.length<2?Mu(e):t;if(se(n))return st(le(n,e));throw new Hu(ae(e)+" is not iterable")},Ru=Array,Pu=Ue("iterator"),$u=!1;try{var Ku=0,Xu={next:function(){return{done:!!Ku++}},return:function(){$u=!0}};Xu[Pu]=function(){return this},Array.from(Xu,(function(){throw 2}))}catch(e){}var Vu=function(e){var t=ve(e),n=zt(this),r=arguments.length,i=r>1?arguments[1]:void 0,o=void 0!==i;o&&(i=bt(i,r>2?arguments[2]:void 0));var a,A,s,l,c,u,h=Mu(t),d=0;if(!h||this===Ru&&Ou(h))for(a=sn(t),A=n?new this(a):Ru(a);a>d;d++)u=o?i(t[d],d):t[d],Gi(A,d,u);else for(A=n?new this:[],c=(l=Nu(t,h)).next;!(s=le(c,l)).done;d++)u=o?Du(l,i,[s.value,d],!0):s.value,Gi(A,d,u);return A.length=d,A},Gu=function(e,t){try{if(!t&&!$u)return!1}catch(e){return!1}var n=!1;try{var r={};r[Pu]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},ju=!Gu((function(e){Array.from(e)}));Fn({target:"Array",stat:!0,forced:ju},{from:Vu});var Wu=R.Array.from,zu=Wu,qu=TypeError,Ju=Ue("match"),Yu=function(e){if(KA(e))throw new qu("The method doesn't accept regular expressions");return e},Zu=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[Ju]=!1,"/./"[e](t)}catch(e){}}return!1},eh=(vt.f,nt("".slice)),th=Math.min,nh=Zu("startsWith");Fn({target:"String",proto:!0,forced:!nh},{startsWith:function(e){var t=Br(O(this));Yu(e);var n=an(th(arguments.length>1?arguments[1]:void 0,t.length)),r=Br(e);return eh(t,n,n+r.length)===r}});var rh=_i("String","startsWith"),ih=String.prototype,oh=function(e){var t=e.startsWith;return"string"==typeof e||e===ih||te(ih,e)&&t===ih.startsWith?rh:t},ah=r((function(e,t){e.exports=function(){var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,A=a&&(r?document.documentMode||6:+(o||i)[1]),s=!o&&/WebKit\//.test(e),l=s&&/Qt\/\d+\.\d+/.test(e),c=!o&&/Chrome\//.test(e),u=/Opera\//.test(e),h=/Apple Computer/.test(navigator.vendor),d=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),f=/PhantomJS/.test(e),p=!o&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),g=/Android/.test(e),m=p||g||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),v=p||/Mac/.test(t),y=/\bCrOS\b/.test(e),b=/win/i.test(t),w=u&&e.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(u=!1,s=!0);var B=v&&(l||u&&(null==w||w<12.11)),C=n||a&&A>=9;function k(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var T,E=function(e,t){var n=e.className,r=k(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function S(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function x(e,t){return S(e).appendChild(t)}function Q(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=A-o,a+=n-a%n,o=A+1}}p?M=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(M=function(e){try{e.select()}catch(e){}});var N=function(){this.id=null,this.f=null,this.time=0,this.handler=H(this.onTimeout,this)};function R(e,t){for(var n=0;n=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var j=[""];function W(e){for(;j.length<=e;)j.push(z(j)+" ");return j[e]}function z(e){return e[e.length-1]}function q(e,t){for(var n=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||ee.test(e))}function ne(e,t){return t?!!(t.source.indexOf("\\w")>-1&&te(e))||t.test(e):te(e)}function re(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ie=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function oe(e){return e.charCodeAt(0)>=768&&ie.test(e)}function ae(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function se(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;ot||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}var le=null;function ce(e,t,n){var r;le=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:le=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:le=i)}return null!=r?r:le}var ue=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,A=/[1n]/;function s(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var l="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!r.test(e))return!1;for(var c=e.length,u=[],h=0;h-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function me(e,t){var n=pe(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function we(e){e.prototype.on=function(e,t){fe(this,e,t)},e.prototype.off=function(e,t){ge(this,e,t)}}function Be(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ce(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function ke(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Te(e){Be(e),Ce(e)}function Ee(e){return e.target||e.srcElement}function Se(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),v&&e.ctrlKey&&1==t&&(t=3),t}var xe,Qe,Le=function(){if(a&&A<9)return!1;var e=Q("div");return"draggable"in e||"dragDrop"in e}();function Ie(e){if(null==xe){var t=Q("span","​");x(e,Q("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(xe=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&A<8))}var n=xe?Q("span","​"):Q("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Fe(e){if(null!=Qe)return Qe;var t=x(e,document.createTextNode("AخA")),n=T(t,0,1).getBoundingClientRect(),r=T(t,1,2).getBoundingClientRect();return S(e),!(!n||n.left==n.right)&&(Qe=r.right-n.right<3)}var Ue,_e=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Me=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},He="oncopy"in(Ue=Q("div"))||(Ue.setAttribute("oncopy","return;"),"function"==typeof Ue.oncopy),De=null;function Oe(e){if(null!=De)return De;var t=x(e,Q("span","x")),n=t.getBoundingClientRect(),r=T(t,0,1).getBoundingClientRect();return De=Math.abs(n.left-r.left)>1}var Ne={},Re={};function Pe(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ne[e]=t}function $e(e,t){Re[e]=t}function Ke(e){if("string"==typeof e&&Re.hasOwnProperty(e))e=Re[e];else if(e&&"string"==typeof e.name&&Re.hasOwnProperty(e.name)){var t=Re[e.name];"string"==typeof t&&(t={name:t}),(e=Z(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ke("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ke("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Xe(e,t){t=Ke(t);var n=Ne[t.name];if(!n)return Xe(e,"text/plain");var r=n(e,t);if(Ve.hasOwnProperty(t.name)){var i=Ve[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var Ve={};function Ge(e,t){D(t,Ve.hasOwnProperty(e)?Ve[e]:Ve[e]={})}function je(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function We(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function ze(e,t,n){return!e.startState||e.startState(t,n)}var qe=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Je(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t=e.first&&tn?ot(n,Je(e,n).text.length):dt(t,Je(e,t.line).text.length)}function dt(e,t){var n=e.ch;return null==n||n>t?ot(e.line,t):n<0?ot(e.line,0):e}function ft(e,t){for(var n=[],r=0;r=this.string.length},qe.prototype.sol=function(){return this.pos==this.lineStart},qe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},qe.prototype.next=function(){if(this.post},qe.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},qe.prototype.skipToEnd=function(){this.pos=this.string.length},qe.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},qe.prototype.backUp=function(e){this.pos-=e},qe.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},qe.prototype.current=function(){return this.string.slice(this.start,this.pos)},qe.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},qe.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},qe.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var pt=function(e,t){this.state=e,this.lookAhead=t},gt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function mt(e,t,n,r){var i=[e.state.modeGen],o={};Et(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),o,r);for(var a=n.state,A=function(r){n.baseTokens=i;var A=e.state.overlays[r],s=1,l=0;n.state=!0,Et(e,t.text,A.mode,n,(function(e,t){for(var n=s;le&&i.splice(s,1,e,i[s+1],r),s+=2,l=Math.min(e,r)}if(t)if(A.opaque)i.splice(n,s-n,e,"overlay "+t),s=n+2;else for(;ne.options.maxHighlightLength&&je(e.doc.mode,r.state),o=mt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function yt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new gt(r,!0,t);var o=St(e,t,n),a=o>r.first&&Je(r,o-1).stateAfter,A=a?gt.fromSaved(r,a,o):new gt(r,ze(r.mode),o);return r.iter(o,t,(function(n){bt(e,n.text,A);var r=A.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&rt.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}gt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},gt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},gt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},gt.fromSaved=function(e,t,n){return t instanceof pt?new gt(e,je(e.mode,t.state),n,t.lookAhead):new gt(e,je(e.mode,t),n)},gt.prototype.save=function(e){var t=!1!==e?je(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new pt(t,this.maxLookAhead):t};var Ct=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function kt(e,t,n,r){var i,o,a=e.doc,A=a.mode,s=Je(a,(t=ht(a,t)).line),l=yt(e,t.line,n),c=new qe(s.text,e.options.tabSize,l);for(r&&(o=[]);(r||c.pose.options.maxHighlightLength?(A=!1,a&&bt(e,t,r,u.pos),u.pos=t.length,s=null):s=Tt(Bt(n,u,r.state,h),o),h){var d=h[0].name;d&&(s="m-"+(s?d+" "+s:d))}if(!A||c!=s){for(;la;--A){if(A<=o.first)return o.first;var s=Je(o,A-1),l=s.stateAfter;if(l&&(!n||A+(l instanceof pt?l.lookAhead:0)<=o.modeFrontier))return A;var c=O(s.text,null,e.options.tabSize);(null==i||r>c)&&(i=A-1,r=c)}return i}function xt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var i=Je(e,r).stateAfter;if(i&&(!(i instanceof pt)||r+i.lookAhead=t:o.to>t);(r||(r=[])).push(new Ut(a,o.from,A?null:o.to))}}return r}function Ot(e,t,n){var r;if(e)for(var i=0;i=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var A=null==o.from||(a.inclusiveLeft?o.from<=t:o.from0&&A)for(var y=0;y0)){var c=[s,1],u=at(l.from,A.from),h=at(l.to,A.to);(u<0||!a.inclusiveLeft&&!u)&&c.push({from:l.from,to:A.from}),(h>0||!a.inclusiveRight&&!h)&&c.push({from:A.to,to:l.to}),i.splice.apply(i,c),s+=c.length-3}}return i}function $t(e){var t=e.markedSpans;if(t){for(var n=0;nt)&&(!n||Gt(n,o.marker)<0)&&(n=o.marker)}return n}function Jt(e,t,n,r,i){var o=Je(e,t),a=Lt&&o.markedSpans;if(a)for(var A=0;A=0&&u<=0||c<=0&&u>=0)&&(c<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?at(l.to,n)>=0:at(l.to,n)>0)||c>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?at(l.from,r)<=0:at(l.from,r)<0)))return!0}}}function Yt(e){for(var t;t=Wt(e);)e=t.find(-1,!0).line;return e}function Zt(e){for(var t;t=zt(e);)e=t.find(1,!0).line;return e}function en(e){for(var t,n;t=zt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function tn(e,t){var n=Je(e,t),r=Yt(n);return n==r?t:tt(r)}function nn(e,t){if(t>e.lastLine())return t;var n,r=Je(e,t);if(!rn(e,r))return t;for(;n=zt(r);)r=n.find(1,!0).line;return tt(r)+1}function rn(e,t){var n=Lt&&t.markedSpans;if(n)for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var ln=function(e,t,n){this.text=e,Kt(this,t),this.height=n?n(this):1};function cn(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),$t(e),Kt(e,n);var i=r?r(e):1;i!=e.height&&et(e,i)}function un(e){e.parent=null,$t(e)}ln.prototype.lineNo=function(){return tt(this)},we(ln);var hn={},dn={};function fn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?dn:hn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function pn(e,t){var n=L("span",null,null,s?"padding-right: .1px":null),r={pre:L("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=mn,Fe(e.display.measure)&&(a=he(o,e.doc.direction))&&(r.addToken=yn(r.addToken,a)),r.map=[],wn(o,r,vt(e,o,t!=e.display.externalMeasured&&tt(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=_(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=_(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Ie(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(s){var A=r.content.lastChild;(/\bcm-tab\b/.test(A.className)||A.querySelector&&A.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return me(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=_(r.pre.className,r.textClass||"")),r}function gn(e){var t=Q("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function mn(e,t,n,r,i,o,s){if(t){var l,c=e.splitSpaces?vn(t,e.trailingSpace):t,u=e.cm.state.specialChars,h=!1;if(u.test(t)){l=document.createDocumentFragment();for(var d=0;;){u.lastIndex=d;var f=u.exec(t),p=f?f.index-d:t.length-d;if(p){var g=document.createTextNode(c.slice(d,d+p));a&&A<9?l.appendChild(Q("span",[g])):l.appendChild(g),e.map.push(e.pos,e.pos+p,g),e.col+=p,e.pos+=p}if(!f)break;d+=p+1;var m=void 0;if("\t"==f[0]){var v=e.cm.options.tabSize,y=v-e.col%v;(m=l.appendChild(Q("span",W(y),"cm-tab"))).setAttribute("role","presentation"),m.setAttribute("cm-text","\t"),e.col+=y}else"\r"==f[0]||"\n"==f[0]?((m=l.appendChild(Q("span","\r"==f[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",f[0]),e.col+=1):((m=e.cm.options.specialCharPlaceholder(f[0])).setAttribute("cm-text",f[0]),a&&A<9?l.appendChild(Q("span",[m])):l.appendChild(m),e.col+=1);e.map.push(e.pos,e.pos+1,m),e.pos++}}else e.col+=t.length,l=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,l),a&&A<9&&(h=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),n||r||i||h||o||s){var b=n||"";r&&(b+=r),i&&(b+=i);var w=Q("span",[l],b,o);if(s)for(var B in s)s.hasOwnProperty(B)&&"style"!=B&&"class"!=B&&w.setAttribute(B,s[B]);return e.content.appendChild(w)}e.content.appendChild(l)}}function vn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;il&&u.from<=l);h++);if(u.to>=c)return e(n,r,i,o,a,A,s);e(n,r.slice(0,u.to-l),i,o,null,A,s),o=null,r=r.slice(u.to-l),l=u.to}}}function bn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function wn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,A,s,l,c,u,h,d=i.length,f=0,p=1,g="",m=0;;){if(m==f){s=l=c=A="",h=null,u=null,m=1/0;for(var v=[],y=void 0,b=0;bf||B.collapsed&&w.to==f&&w.from==f)){if(null!=w.to&&w.to!=f&&m>w.to&&(m=w.to,l=""),B.className&&(s+=" "+B.className),B.css&&(A=(A?A+";":"")+B.css),B.startStyle&&w.from==f&&(c+=" "+B.startStyle),B.endStyle&&w.to==m&&(y||(y=[])).push(B.endStyle,w.to),B.title&&((h||(h={})).title=B.title),B.attributes)for(var C in B.attributes)(h||(h={}))[C]=B.attributes[C];B.collapsed&&(!u||Gt(u.marker,B)<0)&&(u=w)}else w.from>f&&m>w.from&&(m=w.from)}if(y)for(var k=0;k=d)break;for(var E=Math.min(d,m);;){if(g){var S=f+g.length;if(!u){var x=S>E?g.slice(0,E-f):g;t.addToken(t,x,a?a+s:s,c,f+x.length==m?l:"",A,h)}if(S>=E){g=g.slice(E-f),f=E;break}f=S,c=""}g=i.slice(o,o=n[p++]),a=fn(n[p++],t.cm.options)}}else for(var Q=1;Q2&&o.push((s.bottom+l.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Yn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;rn)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Zn(e,t){var n=tt(t=Yt(t)),r=e.display.externalMeasured=new Bn(e.doc,t,n);r.lineN=n;var i=r.built=pn(e,r);return r.text=i.pre,x(e.display.lineMeasure,i.pre),r}function er(e,t,n,r){return rr(e,nr(e,t),n,r)}function tr(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(i=(o=s-A)-1,t>=s&&(a="right")),null!=i){if(r=e[l+2],A==s&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;l&&e[l-2]==e[l-3]&&e[l-1].insertLeft;)r=e[2+(l-=3)],a="left";if("right"==n&&i==s-A)for(;l=0&&(n=e[i]).left==n.right;i--);return n}function sr(e,t,n,r){var i,o=ar(t.map,n,r),s=o.node,l=o.start,c=o.end,u=o.collapse;if(3==s.nodeType){for(var h=0;h<4;h++){for(;l&&oe(t.line.text.charAt(o.coverStart+l));)--l;for(;o.coverStart+c0&&(u=r="right"),i=e.options.lineWrapping&&(d=s.getClientRects()).length>1?d["right"==r?d.length-1:0]:s.getBoundingClientRect()}if(a&&A<9&&!l&&(!i||!i.left&&!i.right)){var f=s.parentNode.getClientRects()[0];i=f?{left:f.left,right:f.left+Lr(e.display),top:f.top,bottom:f.bottom}:or}for(var p=i.top-t.rect.top,g=i.bottom-t.rect.top,m=(p+g)/2,v=t.view.measure.heights,y=0;y=r.text.length?(s=r.text.length,l="before"):s<=0&&(s=0,l="after"),!A)return a("before"==l?s-1:s,"before"==l);function c(e,t,n){return a(n?e-1:e,1==A[t].level!=n)}var u=ce(A,s,l),h=le,d=c(s,u,"before"==l);return null!=h&&(d.other=c(s,h,"before"!=l)),d}function br(e,t){var n=0;t=ht(e.doc,t),e.options.lineWrapping||(n=Lr(e.display)*t.ch);var r=Je(e.doc,t.line),i=an(r)+Vn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function wr(e,t,n,r,i){var o=ot(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Br(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return wr(r.first,0,null,-1,-1);var i=nt(r,n),o=r.first+r.size-1;if(i>o)return wr(r.first+r.size-1,Je(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=Je(r,i);;){var A=Er(e,a,i,t,n),s=qt(a,A.ch+(A.xRel>0||A.outside>0?1:0));if(!s)return A;var l=s.find(1);if(l.line==i)return l;a=Je(r,i=l.line)}}function Cr(e,t,n,r){r-=pr(t);var i=t.text.length,o=Ae((function(t){return rr(e,n,t-1).bottom<=r}),i,0);return{begin:o,end:i=Ae((function(t){return rr(e,n,t).top>r}),o,i)}}function kr(e,t,n,r){return n||(n=nr(e,t)),Cr(e,t,n,gr(e,t,rr(e,n,r),"line").top)}function Tr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function Er(e,t,n,r,i){i-=an(t);var o=nr(e,t),a=pr(t),A=0,s=t.text.length,l=!0,c=he(t,e.doc.direction);if(c){var u=(e.options.lineWrapping?xr:Sr)(e,t,n,o,c,r,i);A=(l=1!=u.level)?u.from:u.to-1,s=l?u.to:u.from-1}var h,d,f=null,p=null,g=Ae((function(t){var n=rr(e,o,t);return n.top+=a,n.bottom+=a,!!Tr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(f=t,p=n),!0)}),A,s),m=!1;if(p){var v=r-p.left=b.bottom?1:0}return wr(n,g=ae(t.text,g,1),d,m,r-h)}function Sr(e,t,n,r,i,o,a){var A=Ae((function(A){var s=i[A],l=1!=s.level;return Tr(yr(e,ot(n,l?s.to:s.from,l?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),s=i[A];if(A>0){var l=1!=s.level,c=yr(e,ot(n,l?s.from:s.to,l?"after":"before"),"line",t,r);Tr(c,o,a,!0)&&c.top>a&&(s=i[A-1])}return s}function xr(e,t,n,r,i,o,a){var A=Cr(e,t,r,a),s=A.begin,l=A.end;/\s/.test(t.text.charAt(l-1))&&l--;for(var c=null,u=null,h=0;h=l||d.to<=s)){var f=rr(e,r,1!=d.level?Math.min(l,d.to)-1:Math.max(s,d.from)).right,p=fp)&&(c=d,u=p)}}return c||(c=i[i.length-1]),c.froml&&(c={from:c.from,to:l,level:c.level}),c}function Qr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==ir){ir=Q("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)ir.appendChild(document.createTextNode("x")),ir.appendChild(Q("br"));ir.appendChild(document.createTextNode("x"))}x(e.measure,ir);var n=ir.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),S(e.measure),n||1}function Lr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=Q("span","xxxxxxxxxx"),n=Q("pre",[t],"CodeMirror-line-like");x(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Ir(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var A=e.display.gutterSpecs[a].className;n[A]=o.offsetLeft+o.clientLeft+i,r[A]=o.clientWidth}return{fixedPos:Fr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Fr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Ur(e){var t=Qr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Lr(e.display)-3);return function(i){if(rn(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a0&&(s=Je(e.doc,l.line).text).length==l.ch){var c=O(s,s.length,e.options.tabSize)-s.length;l=ot(l.line,Math.max(0,Math.round((o-jn(e.display).left)/Lr(e.display))-c))}return l}function Hr(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;rt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Lt&&tn(e.doc,t)i.viewFrom?Nr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)Nr(e);else if(t<=i.viewFrom){var o=Rr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):Nr(e)}else if(n>=i.viewTo){var a=Rr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):Nr(e)}else{var A=Rr(e,t,t,-1),s=Rr(e,n,n+r,1);A&&s?(i.view=i.view.slice(0,A.index).concat(Cn(e,A.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=r):Nr(e)}var l=i.externalMeasured;l&&(n=i.lineN&&t=r.viewTo)){var o=r.view[Hr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==R(a,n)&&a.push(n)}}}function Nr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Rr(e,t,n,r){var i,o=Hr(e,t),a=e.display.view;if(!Lt||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var A=e.display.viewFrom,s=0;s0){if(o==a.length-1)return null;i=A+a[o].size-t,o++}else i=A-t;t+=i,n+=i}for(;tn(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function Pr(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=Cn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=Cn(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,Hr(e,n)))),r.viewTo=n}function $r(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||A.to().line0?t.blinker=setInterval((function(){e.hasFocus()||Yr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function zr(e){e.state.focused||(e.display.input.focus(),Jr(e))}function qr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Yr(e))}),100)}function Jr(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(me(e,"focus",e,t),e.state.focused=!0,U(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),s&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Wr(e))}function Yr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(me(e,"blur",e,t),e.state.focused=!1,E(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Zr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r.005||h<-.005)&&(et(i.line,s),ei(i.line),i.rest))for(var d=0;de.display.sizerWidth){var f=Math.ceil(l/Lr(e.display));f>e.display.maxLineLength&&(e.display.maxLineLength=f,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function ei(e){if(e.widgets)for(var t=0;t=a&&(o=nt(t,an(Je(t,s))-e.wrapper.clientHeight),a=s)}return{from:o,to:Math.max(a,o+1)}}function ni(e,t){if(!ve(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+r.top<0?i=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!f){var o=Q("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Vn(e.display))+"px;\n height: "+(t.bottom-t.top+Wn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}function ri(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==(t=t.ch?ot(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?ot(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,A=yr(e,t),s=n&&n!=t?yr(e,n):A,l=oi(e,i={left:Math.min(A.left,s.left),top:Math.min(A.top,s.top)-r,right:Math.max(A.left,s.left),bottom:Math.max(A.bottom,s.bottom)+r}),c=e.doc.scrollTop,u=e.doc.scrollLeft;if(null!=l.scrollTop&&(hi(e,l.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=l.scrollLeft&&(fi(e,l.scrollLeft),Math.abs(e.doc.scrollLeft-u)>1&&(a=!0)),!a)break}return i}function ii(e,t){var n=oi(e,t);null!=n.scrollTop&&hi(e,n.scrollTop),null!=n.scrollLeft&&fi(e,n.scrollLeft)}function oi(e,t){var n=e.display,r=Qr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=qn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var A=e.doc.height+Gn(n),s=t.topA-r;if(t.topi+o){var c=Math.min(t.top,(l?A:t.bottom)-o);c!=i&&(a.scrollTop=c)}var u=e.options.fixedGutter?0:n.gutters.offsetWidth,h=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-u,d=zn(e)-n.gutters.offsetWidth,f=t.right-t.left>d;return f&&(t.right=t.left+d),t.left<10?a.scrollLeft=0:t.leftd+h-3&&(a.scrollLeft=t.right+(f?0:10)-d),a}function ai(e,t){null!=t&&(ci(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Ai(e){ci(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function si(e,t,n){null==t&&null==n||ci(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function li(e,t){ci(e),e.curOp.scrollToPos=t}function ci(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,ui(e,br(e,t.from),br(e,t.to),t.margin))}function ui(e,t,n,r){var i=oi(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});si(e,i.scrollLeft,i.scrollTop)}function hi(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||Ki(e,{top:t}),di(e,t,!0),n&&Ki(e),Mi(e,100))}function di(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function fi(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,ji(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function pi(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Gn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Wn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var gi=function(e,t,n){this.cm=n;var r=this.vert=Q("div",[Q("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=Q("div",[Q("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),fe(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),fe(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&A<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};gi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},gi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},gi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},gi.prototype.zeroWidthHack=function(){var e=v&&!d?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new N,this.disableVert=new N},gi.prototype.enableZeroWidthBar=function(e,t,n){function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}e.style.pointerEvents="auto",t.set(1e3,r)},gi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var mi=function(){};function vi(e,t){t||(t=pi(e));var n=e.display.barWidth,r=e.display.barHeight;yi(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Zr(e),yi(e,pi(e)),n=e.display.barWidth,r=e.display.barHeight}function yi(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}mi.prototype.update=function(){return{bottom:0,right:0}},mi.prototype.setScrollLeft=function(){},mi.prototype.setScrollTop=function(){},mi.prototype.clear=function(){};var bi={native:gi,null:mi};function wi(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&E(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new bi[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),fe(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?fi(e,t):hi(e,t)}),e),e.display.scrollbars.addClass&&U(e.display.wrapper,e.display.scrollbars.addClass)}var Bi=0;function Ci(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Bi},Tn(e.curOp)}function ki(e){var t=e.curOp;t&&Sn(t,(function(e){for(var t=0;t=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Di(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Si(e){e.updatedDisplay=e.mustUpdate&&Pi(e.cm,e.update)}function xi(e){var t=e.cm,n=t.display;e.updatedDisplay&&Zr(t),e.barMeasure=pi(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=er(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Wn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-zn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Qi(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var n=+new Date+e.options.workTime,r=yt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var a=o.styles,A=o.text.length>e.options.maxHighlightLength?je(t.mode,r.state):null,s=mt(e,o,r,!0);A&&(r.state=A),o.styles=s.styles;var l=o.styleClasses,c=s.classes;c?o.styleClasses=c:l&&(o.styleClasses=null);for(var u=!a||a.length!=o.styles.length||l!=c&&(!l||!c||l.bgClass!=c.bgClass||l.textClass!=c.textClass),h=0;!u&&hn)return Mi(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Ii(e,(function(){for(var t=0;t=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==$r(e))return!1;Wi(e)&&(Nr(e),t.dims=Ir(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Lt&&(o=tn(e.doc,o),a=nn(e.doc,a));var A=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Pr(e,o,a),n.viewOffset=an(Je(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var s=$r(e);if(!A&&0==s&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var l=Ni(e);return s>4&&(n.lineDiv.style.display="none"),Xi(e,n.updateLineNumbers,t.dims),s>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Ri(l),S(n.cursorDiv),S(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,A&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Mi(e,400)),n.updateLineNumbers=null,!0}function $i(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=zn(e))r&&(t.visible=ti(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Gn(e.display)-qn(e),n.top)}),t.visible=ti(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!Pi(e,t))break;Zr(e);var i=pi(e);Kr(e),vi(e,i),Gi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Ki(e,t){var n=new Di(e,t);if(Pi(e,n)){Zr(e),$i(e,n);var r=pi(e);Kr(e),vi(e,r),Gi(e,r),n.finish()}}function Xi(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function A(t){var n=t.nextSibling;return s&&v&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var l=r.view,c=r.viewFrom,u=0;u-1&&(d=!1),In(e,h,c,n)),d&&(S(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(it(e.options,c)))),a=h.node.nextSibling}else{var f=Nn(e,h,c,n);o.insertBefore(f,a)}c+=h.size}for(;a;)a=A(a)}function Vi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function Gi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Wn(e)+"px"}function ji(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Fr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;aA.clientWidth,c=A.scrollHeight>A.clientHeight;if(i&&l||o&&c){if(o&&v&&s)e:for(var h=t.target,d=a.view;h!=A;h=h.parentNode)for(var f=0;f=0&&at(e,r.to())<=0)return n}return-1};var oo=function(e,t){this.anchor=e,this.head=t};function ao(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return at(e.from(),t.from())})),n=R(t,i);for(var o=1;o0:s>=0){var l=ct(A.from(),a.from()),c=lt(A.to(),a.to()),u=A.empty()?a.from()==a.head:A.from()==A.head;o<=n&&--n,t.splice(--o,2,new oo(u?c:l,u?l:c))}}return new io(t,n)}function Ao(e,t){return new io([new oo(e,t||e)],0)}function so(e){return e.text?ot(e.from.line+e.text.length-1,z(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function lo(e,t){if(at(e,t.from)<0)return e;if(at(e,t.to)<=0)return so(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=so(t).ch-t.to.ch),ot(n,r)}function co(e,t){for(var n=[],r=0;r1&&e.remove(A.line+1,f-1),e.insert(A.line+1,m)}Qn(e,"change",e,t)}function vo(e,t,n){function r(e,i,o){if(e.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges?(e.done.pop(),z(e.done)):void 0}function Eo(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,A=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>A-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=To(i,i.lastOp==r)))a=z(o.changes),0==at(t.from,t.to)&&0==at(t.from,a.to)?a.to=so(t):o.changes.push(Co(e,t));else{var s=z(i.done);for(s&&s.ranges||Qo(e.sel,i.done),o={changes:[Co(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=A,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||me(e,"historyAdded")}function So(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function xo(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||So(e,o,z(i.done),t))?i.done[i.done.length-1]=t:Qo(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&ko(i.undone)}function Qo(e,t){var n=z(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Lo(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function Io(e){if(!e)return null;for(var t,n=0;n-1&&(z(A)[u]=l[u],delete l[u])}}}return r}function Mo(e,t,n,r){if(r){var i=e.anchor;if(n){var o=at(t,i)<0;o!=at(n,i)<0?(i=t,t=n):o!=at(t,n)<0&&(t=n)}return new oo(i,t)}return new oo(n||t,t)}function Ho(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),$o(e,new io([Mo(e.sel.primary(),t,n,i)],0),r)}function Do(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:A.to>t.ch))){if(i&&(me(s,"beforeCursorEnter"),s.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!s.atomic)continue;if(n){var u=s.find(r<0?1:-1),h=void 0;if((r<0?c:l)&&(u=zo(e,u,-r,u&&u.line==t.line?o:null)),u&&u.line==t.line&&(h=at(u,n))&&(r<0?h<0:h>0))return jo(e,u,t,r,i)}var d=s.find(r<0?-1:1);return(r<0?l:c)&&(d=zo(e,d,r,d.line==t.line?o:null)),d?jo(e,d,t,r,i):null}}return t}function Wo(e,t,n,r,i){var o=r||1,a=jo(e,t,n,o,i)||!i&&jo(e,t,n,o,!0)||jo(e,t,n,-o,i)||!i&&jo(e,t,n,-o,!0);return a||(e.cantEdit=!0,ot(e.first,0))}function zo(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?ht(e,ot(t.line-1)):null:n>0&&t.ch==(r||Je(e,t.line)).text.length?t.line=0;--i)Zo(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else Zo(e,t)}}function Zo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=at(t.from,t.to)){var n=co(e,t);Eo(e,t,n,e.cm?e.cm.curOp.id:NaN),na(e,t,n,Nt(e,t));var r=[];vo(e,(function(e,n){n||-1!=R(r,e.history)||(Aa(e.history,t),r.push(e.history)),na(e,t,null,Nt(e,t))}))}}function ea(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,A="undo"==t?o.done:o.undone,s="undo"==t?o.undone:o.done,l=0;l=0;--d){var f=h(d);if(f)return f.v}}}}function ta(e,t){if(0!=t&&(e.first+=t,e.sel=new io(q(e.sel.ranges,(function(e){return new oo(ot(e.anchor.line+t,e.anchor.ch),ot(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Dr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.lineo&&(t={from:t.from,to:ot(o,Je(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Ye(e,t.from,t.to),n||(n=co(e,t)),e.cm?ra(e.cm,t,r):mo(e,t,r),Ko(e,n,K),e.cantEdit&&Wo(e,ot(e.firstLine(),0))&&(e.cantEdit=!1)}}function ra(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,A=!1,s=o.line;e.options.lineWrapping||(s=tt(Yt(Je(r,o.line))),r.iter(s,a.line+1,(function(e){if(e==i.maxLine)return A=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&ye(e),mo(r,t,n,Ur(e)),e.options.lineWrapping||(r.iter(s,o.line+t.text.length,(function(e){var t=An(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,A=!1)})),A&&(e.curOp.updateMaxLine=!0)),xt(r,o.line),Mi(e,400);var l=t.text.length-(a.line-o.line)-1;t.full?Dr(e):o.line!=a.line||1!=t.text.length||go(e.doc,t)?Dr(e,o.line,a.line+1,l):Or(e,o.line,"text");var c=be(e,"changes"),u=be(e,"change");if(u||c){var h={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};u&&Qn(e,"change",e,h),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(h)}e.display.selForContextMenu=null}function ia(e,t,n,r,i){var o;r||(r=n),at(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),Yo(e,{from:n,to:r,text:t,origin:i})}function oa(e,t,n,r){n1||!(this.children[0]instanceof la))){var A=[];this.collapse(A),this.children=[new la(A)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=i.lines.length%25+25,A=a;A10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=L("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Jt(e,t.line,t,n,o)||t.line!=n.line&&Jt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ft()}o.addToHistory&&Eo(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var A,s=t.line,l=e.cm;if(e.iter(s,n.line+1,(function(e){l&&o.collapsed&&!l.options.lineWrapping&&Yt(e)==l.display.maxLine&&(A=!0),o.collapsed&&s!=t.line&&et(e,0),Ht(e,new Ut(o,s==t.line?t.ch:null,s==n.line?n.ch:null)),++s})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){rn(e,t)&&et(t,0)})),o.clearOnEnter&&fe(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(It(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++fa,o.atomic=!0),l){if(A&&(l.curOp.updateMaxLine=!0),o.collapsed)Dr(l,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=n.line;c++)Or(l,c,"text");o.atomic&&Vo(l.doc),Qn(l,"markerAdded",l,o)}return o}pa.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Ci(e),be(this,"clear")){var n=this.find();n&&Qn(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;oe.display.maxLineLength&&(e.display.maxLine=l,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Dr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Vo(e.doc)),e&&Qn(e,"markerCleared",e,this,r,i),t&&ki(e),this.parent&&this.parent.clear()}},pa.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i=0;s--)Yo(this,r[s]);A?Po(this,A):this.cm&&Ai(this.cm)})),undo:_i((function(){ea(this,"undo")})),redo:_i((function(){ea(this,"redo")})),undoSelection:_i((function(){ea(this,"undo",!0)})),redoSelection:_i((function(){ea(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=ht(this,e),t=ht(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var A=0;A=s.to||null==s.from&&i!=e.line||null!=s.from&&i==t.line&&s.from>=t.ch||n&&!n(s.marker)||r.push(s.marker.parent||s.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=o,++n})),ht(this,ot(n,t))},indexFromPos:function(e){var t=(e=ht(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var u=e.dataTransfer.getData("Text");if(u){var h;if(t.state.draggingText&&!t.state.draggingText.copy&&(h=t.listSelections()),Ko(t.doc,Ao(n,n)),h)for(var d=0;d=0;t--)ia(e.doc,"",r[t].from,r[t].to,"+delete");Ai(e)}))}function ja(e,t,n){var r=ae(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Wa(e,t,n){var r=ja(e,t.ch,n);return null==r?null:new ot(t.line,r,n<0?"after":"before")}function za(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=he(n,t.doc.direction);if(o){var a,A=i<0?z(o):o[0],s=i<0==(1==A.level)?"after":"before";if(A.level>0||"rtl"==t.doc.direction){var l=nr(t,n);a=i<0?n.text.length-1:0;var c=rr(t,l,a).top;a=Ae((function(e){return rr(t,l,e).top==c}),i<0==(1==A.level)?A.from:A.to-1,a),"before"==s&&(a=ja(n,a,1))}else a=i<0?A.to:A.from;return new ot(r,a,s)}}return new ot(r,i<0?n.text.length:0,i<0?"before":"after")}function qa(e,t,n,r){var i=he(t,e.doc.direction);if(!i)return Wa(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=ce(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from=a.from&&h>=c.begin)){var d=u?"before":"after";return new ot(n.line,h,d)}}var f=function(e,t,r){for(var o=function(e,t){return t?new ot(n.line,s(e,1),"before"):new ot(n.line,e,"after")};e>=0&&e0==(1!=a.level),l=A?r.begin:s(r.end,-1);if(a.from<=l&&l0?c.end:s(c.begin,-1);return null==g||r>0&&g==t.text.length||!(p=f(r>0?0:i.length-1,r,l(g)))?null:p}Oa.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Oa.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Oa.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Oa.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Oa.default=v?Oa.macDefault:Oa.pcDefault;var Ja={selectAll:qo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),K)},killLine:function(e){return Ga(e,(function(t){if(t.empty()){var n=Je(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)i=new ot(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),ot(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=Je(e.doc,i.line-1).text;a&&(i=new ot(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),ot(i.line-1,a.length-1),i,"+transpose"))}n.push(new oo(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return Ii(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r-1&&(at((i=A.ranges[i]).from(),t)<0||t.xRel>0)&&(at(i.to(),t)>0||t.xRel<0)?BA(e,r,t,o):kA(e,r,t,o)}function BA(e,t,n,r){var i=e.display,o=!1,l=Fi(e,(function(t){s&&(i.scroller.draggable=!1),e.state.draggingText=!1,ge(i.wrapper.ownerDocument,"mouseup",l),ge(i.wrapper.ownerDocument,"mousemove",c),ge(i.scroller,"dragstart",u),ge(i.scroller,"drop",l),o||(Be(t),r.addNew||Ho(e.doc,n,null,null,r.extend),s&&!h||a&&9==A?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),c=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},u=function(){return o=!0};s&&(i.scroller.draggable=!0),e.state.draggingText=l,l.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),fe(i.wrapper.ownerDocument,"mouseup",l),fe(i.wrapper.ownerDocument,"mousemove",c),fe(i.scroller,"dragstart",u),fe(i.scroller,"drop",l),qr(e),setTimeout((function(){return i.input.focus()}),20)}function CA(e,t,n){if("char"==n)return new oo(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new oo(ot(t.line,0),ht(e.doc,ot(t.line+1,0)));var r=n(e,t);return new oo(r.from,r.to)}function kA(e,t,n,r){var i=e.display,o=e.doc;Be(t);var a,A,s=o.sel,l=s.ranges;if(r.addNew&&!r.extend?(A=o.sel.contains(n),a=A>-1?l[A]:new oo(n,n)):(a=o.sel.primary(),A=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(a=new oo(n,n)),n=Mr(e,t,!0,!0),A=-1;else{var c=CA(e,n,r.unit);a=r.extend?Mo(a,c.anchor,c.head,r.extend):c}r.addNew?-1==A?(A=l.length,$o(o,ao(e,l.concat([a]),A),{scroll:!1,origin:"*mouse"})):l.length>1&&l[A].empty()&&"char"==r.unit&&!r.extend?($o(o,ao(e,l.slice(0,A).concat(l.slice(A+1)),0),{scroll:!1,origin:"*mouse"}),s=o.sel):Oo(o,A,a,X):(A=0,$o(o,new io([a],0),X),s=o.sel);var u=n;function h(t){if(0!=at(u,t))if(u=t,"rectangle"==r.unit){for(var i=[],l=e.options.tabSize,c=O(Je(o,n.line).text,n.ch,l),h=O(Je(o,t.line).text,t.ch,l),d=Math.min(c,h),f=Math.max(c,h),p=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));p<=g;p++){var m=Je(o,p).text,v=G(m,d,l);d==f?i.push(new oo(ot(p,v),ot(p,v))):m.length>v&&i.push(new oo(ot(p,v),ot(p,G(m,f,l))))}i.length||i.push(new oo(n,n)),$o(o,ao(e,s.ranges.slice(0,A).concat(i),A),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var y,b=a,w=CA(e,t,r.unit),B=b.anchor;at(w.anchor,B)>0?(y=w.head,B=ct(b.from(),w.anchor)):(y=w.anchor,B=lt(b.to(),w.head));var C=s.ranges.slice(0);C[A]=TA(e,new oo(ht(o,B),y)),$o(o,ao(e,C,A),X)}}var d=i.wrapper.getBoundingClientRect(),f=0;function p(t){var n=++f,a=Mr(e,t,!0,"rectangle"==r.unit);if(a)if(0!=at(a,u)){e.curOp.focus=F(),h(a);var A=ti(i,o);(a.line>=A.to||a.lined.bottom?20:0;s&&setTimeout(Fi(e,(function(){f==n&&(i.scroller.scrollTop+=s,p(t))})),50)}}function g(t){e.state.selectingText=!1,f=1/0,t&&(Be(t),i.input.focus()),ge(i.wrapper.ownerDocument,"mousemove",m),ge(i.wrapper.ownerDocument,"mouseup",v),o.history.lastSelOrigin=null}var m=Fi(e,(function(e){0!==e.buttons&&Se(e)?p(e):g(e)})),v=Fi(e,g);e.state.selectingText=v,fe(i.wrapper.ownerDocument,"mousemove",m),fe(i.wrapper.ownerDocument,"mouseup",v)}function TA(e,t){var n=t.anchor,r=t.head,i=Je(e.doc,n.line);if(0==at(n,r)&&n.sticky==r.sticky)return t;var o=he(i);if(!o)return t;var a=ce(o,n.ch,n.sticky),A=o[a];if(A.from!=n.ch&&A.to!=n.ch)return t;var s,l=a+(A.from==n.ch==(1!=A.level)?0:1);if(0==l||l==o.length)return t;if(r.line!=n.line)s=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=ce(o,r.ch,r.sticky),u=c-a||(r.ch-n.ch)*(1==A.level?-1:1);s=c==l-1||c==l?u<0:u>0}var h=o[l+(s?-1:0)],d=s==(1==h.level),f=d?h.from:h.to,p=d?"after":"before";return n.ch==f&&n.sticky==p?t:new oo(new ot(n.line,f,p),r)}function EA(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Be(t);var a=e.display,A=a.lineDiv.getBoundingClientRect();if(o>A.bottom||!be(e,n))return ke(t);o-=A.top-a.viewOffset;for(var s=0;s=i)return me(e,n,e,nt(e.doc,o),e.display.gutterSpecs[s].className,t),ke(t)}}function SA(e,t){return EA(e,t,"gutterClick",!0)}function xA(e,t){Xn(e.display,t)||QA(e,t)||ve(e,t,"contextmenu")||C||e.display.input.onContextMenu(t)}function QA(e,t){return!!be(e,"gutterContextMenu")&&EA(e,t,"gutterContextMenu",!1)}function LA(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),hr(e)}gA.prototype.compare=function(e,t,n){return this.time+pA>e&&0==at(t,this.pos)&&n==this.button};var IA={toString:function(){return"CodeMirror.Init"}},FA={},UA={};function _A(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=IA&&i(e,t,n)}:i)}e.defineOption=n,e.Init=IA,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,fo(e)}),!0),n("indentUnit",2,fo,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){po(e),hr(e),Dr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(ot(r,o))}r++}));for(var i=n.length-1;i>=0;i--)ia(e.doc,t,n[i],ot(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=IA&&e.refresh()})),n("specialCharPlaceholder",gn,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",m?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!b),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){LA(e),Ji(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Va(t),i=n!=IA&&Va(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,HA,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=zi(t,e.options.lineNumbers),Ji(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?Fr(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return vi(e)}),!0),n("scrollbarStyle","native",(function(e){wi(e),vi(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=zi(e.options.gutters,t),Ji(e)}),!0),n("firstLineNumber",1,Ji,!0),n("lineNumberFormatter",(function(e){return e}),Ji,!0),n("showCursorWhenSelecting",!1,Kr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(Yr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,MA),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Kr,!0),n("singleCursorHeightPerLine",!0,Kr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,po,!0),n("addModeClass",!1,po,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,po,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}function MA(e,t,n){if(!t!=!(n&&n!=IA)){var r=e.display.dragFunctions,i=t?fe:ge;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function HA(e){e.options.lineWrapping?(U(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(E(e.display.wrapper,"CodeMirror-wrap"),sn(e)),_r(e),Dr(e),hr(e),setTimeout((function(){return vi(e)}),100)}function DA(e,t){var n=this;if(!(this instanceof DA))return new DA(e,t);this.options=t=t?D(t):{},D(FA,t,!1);var r=t.value;"string"==typeof r?r=new Ca(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new DA.inputStyles[t.inputStyle](this),o=this.display=new Yi(e,r,i,t);for(var l in o.wrapper.CodeMirror=this,LA(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),wi(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new N,keySeq:null,specialChars:null},t.autofocus&&!m&&o.input.focus(),a&&A<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),OA(this),Ia(),Ci(this),this.curOp.forceUpdate=!0,yo(this,r),t.autofocus&&!m||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Jr(n)}),20):Yr(this),UA)UA.hasOwnProperty(l)&&UA[l](this,t[l],IA);Wi(this),t.finishInit&&t.finishInit(this);for(var c=0;c400}fe(t.scroller,"touchstart",(function(i){if(!ve(e,i)&&!o(i)&&!SA(e,i)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),fe(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),fe(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!Xn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,a=e.coordsChar(t.activeTouch,"page");o=!r.prev||s(r,r.prev)?new oo(a,a):!r.prev.prev||s(r,r.prev.prev)?e.findWordAt(a):new oo(ot(a.line,0),ht(e.doc,ot(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),Be(n)}i()})),fe(t.scroller,"touchcancel",i),fe(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(hi(e,t.scroller.scrollTop),fi(e,t.scroller.scrollLeft,!0),me(e,"scroll",e))})),fe(t.scroller,"mousewheel",(function(t){return ro(e,t)})),fe(t.scroller,"DOMMouseScroll",(function(t){return ro(e,t)})),fe(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){ve(e,t)||Te(t)},over:function(t){ve(e,t)||(Sa(e,t),Te(t))},start:function(t){return Ea(e,t)},drop:Fi(e,Ta),leave:function(t){ve(e,t)||xa(e)}};var l=t.input.getField();fe(l,"keyup",(function(t){return uA.call(e,t)})),fe(l,"keydown",Fi(e,lA)),fe(l,"keypress",Fi(e,hA)),fe(l,"focus",(function(t){return Jr(e,t)})),fe(l,"blur",(function(t){return Yr(e,t)}))}DA.defaults=FA,DA.optionHandlers=UA;var NA=[];function RA(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=yt(e,t).state:n="prev");var a=e.options.tabSize,A=Je(o,t),s=O(A.text,null,a);A.stateAfter&&(A.stateAfter=null);var l,c=A.text.match(/^\s*/)[0];if(r||/\S/.test(A.text)){if("smart"==n&&((l=o.mode.indent(i,A.text.slice(c.length),A.text))==$||l>150)){if(!r)return;n="prev"}}else l=0,n="not";"prev"==n?l=t>o.first?O(Je(o,t-1).text,null,a):0:"add"==n?l=s+e.options.indentUnit:"subtract"==n?l=s-e.options.indentUnit:"number"==typeof n&&(l=s+n),l=Math.max(0,l);var u="",h=0;if(e.options.indentWithTabs)for(var d=Math.floor(l/a);d;--d)h+=a,u+="\t";if(ha,s=_e(t),l=null;if(A&&r.ranges.length>1)if(PA&&PA.text.join("\n")==t){if(r.ranges.length%PA.text.length==0){l=[];for(var c=0;c=0;h--){var d=r.ranges[h],f=d.from(),p=d.to();d.empty()&&(n&&n>0?f=ot(f.line,f.ch-n):e.state.overwrite&&!A?p=ot(p.line,Math.min(Je(o,p.line).text.length,p.ch+z(s).length)):A&&PA&&PA.lineWise&&PA.text.join("\n")==s.join("\n")&&(f=p=ot(f.line,0)));var g={from:f,to:p,text:l?l[h%l.length]:s,origin:i||(A?"paste":e.state.cutIncoming>a?"cut":"+input")};Yo(e.doc,g),Qn(e,"inputRead",e,g)}t&&!A&&VA(e,t),Ai(e),e.curOp.updateInput<2&&(e.curOp.updateInput=u),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function XA(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Ii(t,(function(){return KA(t,n,0,null,"paste")})),!0}function VA(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var A=0;A-1){a=RA(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Je(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=RA(e,i.head.line,"smart"));a&&Qn(e,"electricInput",e,i.head.line)}}}function GA(e){for(var t=[],n=[],r=0;rn&&(RA(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Ai(this));else{var o=i.from(),a=i.to(),A=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var s=A;s0&&Oo(this.doc,r,new oo(o,l[r].to()),K)}}})),getTokenAt:function(e,t){return kt(this,e,t)},getLineTokens:function(e,t){return kt(this,ot(e),t,!0)},getTokenTypeAt:function(e){e=ht(this.doc,e);var t,n=vt(this,Je(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]o&&(e=o,i=!0),r=Je(this.doc,e)}else r=e;return gr(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-an(r):0)},defaultTextHeight:function(){return Qr(this.display)},defaultCharWidth:function(){return Lr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o=this.display,a=(e=yr(this,ht(this.doc,e))).bottom,A=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var s=Math.max(o.wrapper.clientHeight,this.doc.height),l=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>s)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=s&&(a=e.bottom),A+t.offsetWidth>l&&(A=l-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(A=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?A=0:"middle"==i&&(A=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=A+"px"),n&&ii(this,{left:A,top:a,right:A+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:Ui(lA),triggerOnKeyPress:Ui(hA),triggerOnKeyUp:uA,triggerOnMouseDown:Ui(vA),execCommand:function(e){if(Ja.hasOwnProperty(e))return Ja[e].call(null,this)},triggerElectric:Ui((function(e){VA(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=ht(this.doc,e),a=0;a0&&a(t.charAt(n-1));)--n;for(;r.5||this.options.lineWrapping)&&_r(this),me(this,"refresh",this)})),swapDoc:Ui((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),yo(this,e),hr(this),this.display.input.reset(),si(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Qn(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},we(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}function qA(e,t,n,r,i){var o=t,a=n,A=Je(e,t.line),s=i&&"rtl"==e.direction?-n:n;function l(){var n=t.line+s;return!(n=e.first+e.size)&&(t=new ot(n,t.ch,t.sticky),A=Je(e,n))}function c(o){var a;if("codepoint"==r){var c=A.text.charCodeAt(t.ch+(r>0?0:-1));a=isNaN(c)?null:new ot(t.line,Math.max(0,Math.min(A.text.length,t.ch+n*(c>=55296&&c<56320?2:1))),-n)}else a=i?qa(e.cm,A,t,n):Wa(A,t,n);if(null==a){if(o||!l())return!1;t=za(i,e.cm,A,t.line,s)}else t=a;return!0}if("char"==r||"codepoint"==r)c();else if("column"==r)c(!0);else if("word"==r||"group"==r)for(var u=null,h="group"==r,d=e.cm&&e.cm.getHelper(t,"wordChars"),f=!0;!(n<0)||c(!f);f=!1){var p=A.text.charAt(t.ch)||"\n",g=ne(p,d)?"w":h&&"\n"==p?"n":!h||/\s/.test(p)?null:"p";if(!h||f||g||(g="s"),u&&u!=g){n<0&&(n=1,c(),t.sticky="after");break}if(g&&(u=g),n>0&&!c(!f))break}var m=Wo(e,t,o,a,!0);return At(o,m)&&(m.hitSide=!0),m}function JA(e,t,n,r){var i,o,a=e.doc,A=t.left;if("page"==r){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),l=Math.max(s-.5*Qr(e.display),3);i=(n>0?t.bottom:t.top)+n*l}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=Br(e,A,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var YA=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new N,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function ZA(e,t){var n=tr(e,t.line);if(!n||n.hidden)return null;var r=Je(e.doc,t.line),i=Yn(n,r,t.line),o=he(r,e.doc.direction),a="left";o&&(a=ce(o,t.ch)%2?"right":"left");var A=ar(i.map,t.ch,a);return A.offset="right"==A.collapse?A.end:A.start,A}function es(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function ts(e,t){return t&&(e.bad=!0),e}function ns(e,t,n,r,i){var o="",a=!1,A=e.doc.lineSeparator(),s=!1;function l(e){return function(t){return t.id==e}}function c(){a&&(o+=A,s&&(o+=A),a=s=!1)}function u(e){e&&(c(),o+=e)}function h(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void u(n);var o,d=t.getAttribute("cm-marker");if(d){var f=e.findMarks(ot(r,0),ot(i+1,0),l(+d));return void(f.length&&(o=f[0].find(0))&&u(Ye(e.doc,o.from,o.to).join(A)))}if("false"==t.getAttribute("contenteditable"))return;var p=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;p&&c();for(var g=0;g=t.display.viewTo||o.line=t.display.viewFrom&&ZA(t,i)||{node:s[0].measure.map[2],offset:0},c=o.liner.firstLine()&&(a=ot(a.line-1,Je(r.doc,a.line-1).length)),A.ch==Je(r.doc,A.line).text.length&&A.linei.viewTo-1)return!1;a.line==i.viewFrom||0==(e=Hr(r,a.line))?(t=tt(i.view[0].line),n=i.view[0].node):(t=tt(i.view[e].line),n=i.view[e-1].node.nextSibling);var s,l,c=Hr(r,A.line);if(c==i.view.length-1?(s=i.viewTo-1,l=i.lineDiv.lastChild):(s=tt(i.view[c+1].line)-1,l=i.view[c+1].node.previousSibling),!n)return!1;for(var u=r.doc.splitLines(ns(r,n,l,t,s)),h=Ye(r.doc,ot(t,0),ot(s,Je(r.doc,s).text.length));u.length>1&&h.length>1;)if(z(u)==z(h))u.pop(),h.pop(),s--;else{if(u[0]!=h[0])break;u.shift(),h.shift(),t++}for(var d=0,f=0,p=u[0],g=h[0],m=Math.min(p.length,g.length);da.ch&&v.charCodeAt(v.length-f-1)==y.charCodeAt(y.length-f-1);)d--,f++;u[u.length-1]=v.slice(0,v.length-f).replace(/^\u200b+/,""),u[0]=u[0].slice(d).replace(/\u200b+$/,"");var w=ot(t,d),B=ot(s,h.length?z(h).length-f:0);return u.length>1||u[0]||at(w,B)?(ia(r.doc,u,w,B,"+input"),!0):void 0},YA.prototype.ensurePolled=function(){this.forceCompositionEnd()},YA.prototype.reset=function(){this.forceCompositionEnd()},YA.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},YA.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},YA.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Ii(this.cm,(function(){return Dr(e.cm)}))},YA.prototype.setUneditable=function(e){e.contentEditable="false"},YA.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Fi(this.cm,KA)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},YA.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},YA.prototype.onContextMenu=function(){},YA.prototype.resetPosition=function(){},YA.prototype.needsContentAttribute=!0;var os=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new N,this.hasSelection=!1,this.composing=null};function as(e,t){if((t=t?D(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=F();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=A.getValue()}var i;if(e.form&&(fe(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(e){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(ge(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var A=DA((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return A}function As(e){e.off=ge,e.on=fe,e.wheelEventPixels=no,e.Doc=Ca,e.splitLines=_e,e.countColumn=O,e.findColumn=G,e.isWordChar=te,e.Pass=$,e.signal=me,e.Line=ln,e.changeEnd=so,e.scrollbarModel=bi,e.Pos=ot,e.cmpPos=at,e.modes=Ne,e.mimeModes=Re,e.resolveMode=Ke,e.getMode=Xe,e.modeExtensions=Ve,e.extendMode=Ge,e.copyState=je,e.startState=ze,e.innerMode=We,e.commands=Ja,e.keyMap=Oa,e.keyName=Xa,e.isModifierKey=$a,e.lookupKey=Pa,e.normalizeKeyMap=Ra,e.StringStream=qe,e.SharedTextMarker=ma,e.TextMarker=pa,e.LineWidget=ua,e.e_preventDefault=Be,e.e_stopPropagation=Ce,e.e_stop=Te,e.addClass=U,e.contains=I,e.rmClass=E,e.keyNames=_a}os.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!ve(r,e)){if(r.somethingSelected())$A({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=GA(r);$A({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,K):(n.prevInput="",i.value=t.text.join("\n"),M(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),p&&(i.style.width="0px"),fe(i,"input",(function(){a&&A>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),fe(i,"paste",(function(e){ve(r,e)||XA(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),fe(i,"cut",o),fe(i,"copy",o),fe(e.scroller,"paste",(function(t){if(!Xn(e,t)&&!ve(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),fe(e.lineSpace,"selectstart",(function(t){Xn(e,t)||Be(t)})),fe(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),fe(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},os.prototype.createField=function(e){this.wrapper=WA(),this.textarea=this.wrapper.firstChild},os.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},os.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Xr(e);if(e.options.moveInputWithCursor){var i=yr(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},os.prototype.showSelection=function(e){var t=this.cm.display;x(t.cursorDiv,e.cursors),x(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},os.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&M(this.textarea),a&&A>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&A>=9&&(this.hasSelection=null))}},os.prototype.getField=function(){return this.textarea},os.prototype.supportsTouch=function(){return!1},os.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!m||F()!=this.textarea))try{this.textarea.focus()}catch(e){}},os.prototype.blur=function(){this.textarea.blur()},os.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},os.prototype.receivedFocus=function(){this.slowPoll()},os.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},os.prototype.fastPoll=function(){var e=!1,t=this;function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}t.pollingFast=!0,t.polling.set(20,n)},os.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Me(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&A>=9&&this.hasSelection===i||v&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var s=0,l=Math.min(r.length,i.length);s1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},os.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},os.prototype.onKeyPress=function(){a&&A>=9&&(this.hasSelection=null),this.fastPoll()},os.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=Mr(n,e),l=r.scroller.scrollTop;if(o&&!u){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&Fi(n,$o)(n.doc,Ao(o),K);var c,h=i.style.cssText,d=t.wrapper.style.cssText,f=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-f.top-5)+"px; left: "+(e.clientX-f.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",s&&(c=window.scrollY),r.input.focus(),s&&window.scrollTo(null,c),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=m,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&A>=9&&g(),C){Te(e);var p=function(){ge(window,"mouseup",p),setTimeout(m,20)};fe(window,"mouseup",p)}else setTimeout(m,50)}function g(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function m(){if(t.contextMenuPending==m&&(t.contextMenuPending=!1,t.wrapper.style.cssText=d,i.style.cssText=h,a&&A<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=l),null!=i.selectionStart)){(!a||a&&A<9)&&g();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?Fi(n,qo)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},os.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},os.prototype.setUneditable=function(){},os.prototype.needsContentAttribute=!1,_A(DA),zA(DA);var ss="iter insert remove copy getEditor constructor".split(" ");for(var ls in Ca.prototype)Ca.prototype.hasOwnProperty(ls)&&R(ss,ls)<0&&(DA.prototype[ls]=function(e){return function(){return e.apply(this.doc,arguments)}}(Ca.prototype[ls]));return we(Ca),DA.inputStyles={textarea:os,contenteditable:YA},DA.defineMode=function(e){DA.defaults.mode||"null"==e||(DA.defaults.mode=e),Pe.apply(this,arguments)},DA.defineMIME=$e,DA.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),DA.defineMIME("text/plain","null"),DA.defineExtension=function(e,t){DA.prototype[e]=t},DA.defineDocExtension=function(e,t){Ca.prototype[e]=t},DA.fromTextArea=as,As(DA),DA.version="5.58.2",DA}()}));r((function(e,t){var n,r,i;r={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},i={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1},(n=ah).defineMode("xml",(function(e,t){var o,a,A=e.indentUnit,s={},l=t.htmlMode?r:i;for(var c in l)s[c]=l[c];for(var c in t)s[c]=t[c];function u(e,t){function n(n){return t.tokenize=n,n(e,t)}var r=e.next();return"<"==r?e.eat("!")?e.eat("[")?e.match("CDATA[")?n(f("atom","]]>")):null:e.match("--")?n(f("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(p(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=f("meta","?>"),"meta"):(o=e.eat("/")?"closeTag":"openTag",t.tokenize=h,"tag bracket"):"&"==r?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error":(e.eatWhile(/[^&<]/),null)}function h(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=u,o=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return o="equals",null;if("<"==n){t.tokenize=u,t.state=y,t.tagName=t.tagStart=null;var r=t.tokenize(e,t);return r?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=d(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function d(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=h;break}return"string"};return t.isInAttribute=!0,t}function f(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=u;break}n.next()}return e}}function p(e){return function(t,n){for(var r;null!=(r=t.next());){if("<"==r)return n.tokenize=p(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=u;break}return n.tokenize=p(e-1),n.tokenize(t,n)}}return"meta"}}function g(e,t,n){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=n,(s.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function m(e){e.context&&(e.context=e.context.prev)}function v(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!s.contextGrabbers.hasOwnProperty(n)||!s.contextGrabbers[n].hasOwnProperty(t))return;m(e)}}function y(e,t,n){return"openTag"==e?(n.tagStart=t.column(),b):"closeTag"==e?w:y}function b(e,t,n){return"word"==e?(n.tagName=t.current(),a="tag",k):s.allowMissingTagName&&"endTag"==e?(a="tag bracket",k(e,t,n)):(a="error",b)}function w(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&s.implicitlyClosed.hasOwnProperty(n.context.tagName)&&m(n),n.context&&n.context.tagName==r||!1===s.matchClosing?(a="tag",B):(a="tag error",C)}return s.allowMissingTagName&&"endTag"==e?(a="tag bracket",B(e,t,n)):(a="error",C)}function B(e,t,n){return"endTag"!=e?(a="error",B):(m(n),y)}function C(e,t,n){return a="error",B(e,t,n)}function k(e,t,n){if("word"==e)return a="attribute",T;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||s.autoSelfClosers.hasOwnProperty(r)?v(n,r):(v(n,r),n.context=new g(n,r,i==n.indented)),y}return a="error",k}function T(e,t,n){return"equals"==e?E:(s.allowMissing||(a="error"),k(e,t,n))}function E(e,t,n){return"string"==e?S:"word"==e&&s.allowUnquoted?(a="string",k):(a="error",k(e,t,n))}function S(e,t,n){return"string"==e?S:k(e,t,n)}return u.isInText=!0,{startState:function(e){var t={tokenize:u,state:y,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;o=null;var n=t.tokenize(e,t);return(n||o)&&"comment"!=n&&(a=null,t.state=t.state(o||n,e,t),a&&(n="error"==a?n+" error":a)),n},indent:function(e,t,r){var i=e.context;if(e.tokenize.isInAttribute)return e.tagStart==e.indented?e.stringStartCol+1:e.indented+A;if(i&&i.noIndent)return n.Pass;if(e.tokenize!=h&&e.tokenize!=u)return r?r.match(/^(\s*)/)[0].length:0;if(e.tagName)return!1!==s.multilineTagIndentPastTag?e.tagStart+e.tagName.length+2:e.tagStart+A*(s.multilineTagIndentFactor||1);if(s.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:s.htmlMode?"html":"xml",helperType:s.htmlMode?"html":"xml",skipAttribute:function(e){e.state==E&&(e.state=k)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],n=e.context;n;n=n.prev)n.tagName&&t.push(n.tagName);return t.reverse()}}})),n.defineMIME("text/xml","xml"),n.defineMIME("application/xml","xml"),n.mimeModes.hasOwnProperty("text/html")||n.defineMIME("text/html",{name:"xml",htmlMode:!0})})),r((function(e,t){!function(e){e.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var t=0;t-1&&t.substring(i+1,t.length);if(o)return e.findModeByExtension(o)},e.findModeByName=function(t){t=t.toLowerCase();for(var n=0;n` "'(~:]+/,f=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,p=/^\s*\[[^\]]+?\]:.*$/,g=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,m=" ";function v(e,t,n){return t.f=t.inline=n,n(e,t)}function y(e,t,n){return t.f=t.block=n,n(e,t)}function b(e){return!e||!/\S/.test(e.string)}function w(e){if(e.linkTitle=!1,e.linkHref=!1,e.linkText=!1,e.em=!1,e.strong=!1,e.strikethrough=!1,e.quote=0,e.indentedCode=!1,e.f==C){var t=i;if(!t){var o=n.innerMode(r,e.htmlState);t="xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText}t&&(e.f=S,e.block=B,e.htmlState=null)}return e.trailingSpace=0,e.trailingSpaceNewLine=!1,e.prevLine=e.thisLine,e.thisLine={stream:null},null}function B(e,r){var i=e.column()===r.indentation,A=b(r.prevLine.stream),d=r.indentedCode,g=r.prevLine.hr,m=!1!==r.list,y=(r.listStack[r.listStack.length-1]||0)+3;r.indentedCode=!1;var w=r.indentation;if(null===r.indentationDiff&&(r.indentationDiff=r.indentation,m)){for(r.list=null;w=4&&(d||r.prevLine.fencedCodeEnd||r.prevLine.header||A))return e.skipToEnd(),r.indentedCode=!0,a.code;if(e.eatSpace())return null;if(i&&r.indentation<=y&&(E=e.match(u))&&E[1].length<=6)return r.quote=0,r.header=E[1].length,r.thisLine.header=!0,t.highlightFormatting&&(r.formatting="header"),r.f=r.inline,T(r);if(r.indentation<=y&&e.eat(">"))return r.quote=i?1:r.quote+1,t.highlightFormatting&&(r.formatting="quote"),e.eatSpace(),T(r);if(!C&&!r.setext&&i&&r.indentation<=y&&(E=e.match(l))){var S=E[1]?"ol":"ul";return r.indentation=w+e.current().length,r.list=!0,r.quote=0,r.listStack.push(r.indentation),r.em=!1,r.strong=!1,r.code=!1,r.strikethrough=!1,t.taskLists&&e.match(c,!1)&&(r.taskList=!0),r.f=r.inline,t.highlightFormatting&&(r.formatting=["list","list-"+S]),T(r)}return i&&r.indentation<=y&&(E=e.match(f,!0))?(r.quote=0,r.fencedEndRE=new RegExp(E[1]+"+ *$"),r.localMode=t.fencedCodeBlockHighlighting&&o(E[2]||t.fencedCodeBlockDefaultMode),r.localMode&&(r.localState=n.startState(r.localMode)),r.f=r.block=k,t.highlightFormatting&&(r.formatting="code-block"),r.code=-1,T(r)):r.setext||!(B&&m||r.quote||!1!==r.list||r.code||C||p.test(e.string))&&(E=e.lookAhead(1))&&(E=E.match(h))?(r.setext?(r.header=r.setext,r.setext=0,e.skipToEnd(),t.highlightFormatting&&(r.formatting="header")):(r.header="="==E[0].charAt(0)?1:2,r.setext=r.header),r.thisLine.header=!0,r.f=r.inline,T(r)):C?(e.skipToEnd(),r.hr=!0,r.thisLine.hr=!0,a.hr):"["===e.peek()?v(e,r,F):v(e,r,r.inline)}function C(e,t){var o=r.token(e,t.htmlState);if(!i){var a=n.innerMode(r,t.htmlState);("xml"==a.mode.name&&null===a.state.tagStart&&!a.state.context&&a.state.tokenize.isInText||t.md_inside&&e.current().indexOf(">")>-1)&&(t.f=S,t.block=B,t.htmlState=null)}return o}function k(e,n){var r,i=n.listStack[n.listStack.length-1]||0,o=n.indentation=e.quote?n.push(a.formatting+"-"+e.formatting[r]+"-"+e.quote):n.push("error"))}if(e.taskOpen)return n.push("meta"),n.length?n.join(" "):null;if(e.taskClosed)return n.push("property"),n.length?n.join(" "):null;if(e.linkHref?n.push(a.linkHref,"url"):(e.strong&&n.push(a.strong),e.em&&n.push(a.em),e.strikethrough&&n.push(a.strikethrough),e.emoji&&n.push(a.emoji),e.linkText&&n.push(a.linkText),e.code&&n.push(a.code),e.image&&n.push(a.image),e.imageAltText&&n.push(a.imageAltText,"link"),e.imageMarker&&n.push(a.imageMarker)),e.header&&n.push(a.header,a.header+"-"+e.header),e.quote&&(n.push(a.quote),!t.maxBlockquoteDepth||t.maxBlockquoteDepth>=e.quote?n.push(a.quote+"-"+e.quote):n.push(a.quote+"-"+t.maxBlockquoteDepth)),!1!==e.list){var i=(e.listStack.length-1)%3;i?1===i?n.push(a.list2):n.push(a.list3):n.push(a.list1)}return e.trailingSpaceNewLine?n.push("trailing-space-new-line"):e.trailingSpace&&n.push("trailing-space-"+(e.trailingSpace%2?"a":"b")),n.length?n.join(" "):null}function E(e,t){if(e.match(d,!0))return T(t)}function S(e,i){var o=i.text(e,i);if(void 0!==o)return o;if(i.list)return i.list=null,T(i);if(i.taskList)return" "===e.match(c,!0)[1]?i.taskOpen=!0:i.taskClosed=!0,t.highlightFormatting&&(i.formatting="task"),i.taskList=!1,T(i);if(i.taskOpen=!1,i.taskClosed=!1,i.header&&e.match(/^#+$/,!0))return t.highlightFormatting&&(i.formatting="header"),T(i);var A=e.next();if(i.linkTitle){i.linkTitle=!1;var s=A;"("===A&&(s=")");var l="^\\s*(?:[^"+(s=(s+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1"))+"\\\\]+|\\\\\\\\|\\\\.)"+s;if(e.match(new RegExp(l),!0))return a.linkHref}if("`"===A){var u=i.formatting;t.highlightFormatting&&(i.formatting="code"),e.eatWhile("`");var h=e.current().length;if(0!=i.code||i.quote&&1!=h){if(h==i.code){var d=T(i);return i.code=0,d}return i.formatting=u,T(i)}return i.code=h,T(i)}if(i.code)return T(i);if("\\"===A&&(e.next(),t.highlightFormatting)){var f=T(i),p=a.formatting+"-escape";return f?f+" "+p:p}if("!"===A&&e.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return i.imageMarker=!0,i.image=!0,t.highlightFormatting&&(i.formatting="image"),T(i);if("["===A&&i.imageMarker&&e.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return i.imageMarker=!1,i.imageAltText=!0,t.highlightFormatting&&(i.formatting="image"),T(i);if("]"===A&&i.imageAltText){t.highlightFormatting&&(i.formatting="image");var f=T(i);return i.imageAltText=!1,i.image=!1,i.inline=i.f=Q,f}if("["===A&&!i.image)return i.linkText&&e.match(/^.*?\]/)||(i.linkText=!0,t.highlightFormatting&&(i.formatting="link")),T(i);if("]"===A&&i.linkText){t.highlightFormatting&&(i.formatting="link");var f=T(i);return i.linkText=!1,i.inline=i.f=e.match(/\(.*?\)| ?\[.*?\]/,!1)?Q:S,f}if("<"===A&&e.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=x,t.highlightFormatting&&(i.formatting="link"),(f=T(i))?f+=" ":f="",f+a.linkInline;if("<"===A&&e.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=x,t.highlightFormatting&&(i.formatting="link"),(f=T(i))?f+=" ":f="",f+a.linkEmail;if(t.xml&&"<"===A&&e.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var m=e.string.indexOf(">",e.pos);if(-1!=m){var v=e.string.substring(e.start,m);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(v)&&(i.md_inside=!0)}return e.backUp(1),i.htmlState=n.startState(r),y(e,i,C)}if(t.xml&&"<"===A&&e.match(/^\/\w*?>/))return i.md_inside=!1,"tag";if("*"===A||"_"===A){for(var b=1,w=1==e.pos?" ":e.string.charAt(e.pos-2);b<3&&e.eat(A);)b++;var B=e.peek()||" ",k=!/\s/.test(B)&&(!g.test(B)||/\s/.test(w)||g.test(w)),E=!/\s/.test(w)&&(!g.test(w)||/\s/.test(B)||g.test(B)),L=null,I=null;if(b%2&&(i.em||!k||"*"!==A&&E&&!g.test(w)?i.em!=A||!E||"*"!==A&&k&&!g.test(B)||(L=!1):L=!0),b>1&&(i.strong||!k||"*"!==A&&E&&!g.test(w)?i.strong!=A||!E||"*"!==A&&k&&!g.test(B)||(I=!1):I=!0),null!=I||null!=L)return t.highlightFormatting&&(i.formatting=null==L?"strong":null==I?"em":"strong em"),!0===L&&(i.em=A),!0===I&&(i.strong=A),d=T(i),!1===L&&(i.em=!1),!1===I&&(i.strong=!1),d}else if(" "===A&&(e.eat("*")||e.eat("_"))){if(" "===e.peek())return T(i);e.backUp(1)}if(t.strikethrough)if("~"===A&&e.eatWhile(A)){if(i.strikethrough)return t.highlightFormatting&&(i.formatting="strikethrough"),d=T(i),i.strikethrough=!1,d;if(e.match(/^[^\s]/,!1))return i.strikethrough=!0,t.highlightFormatting&&(i.formatting="strikethrough"),T(i)}else if(" "===A&&e.match(/^~~/,!0)){if(" "===e.peek())return T(i);e.backUp(2)}if(t.emoji&&":"===A&&e.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){i.emoji=!0,t.highlightFormatting&&(i.formatting="emoji");var F=T(i);return i.emoji=!1,F}return" "===A&&(e.match(/^ +$/,!1)?i.trailingSpace++:i.trailingSpace&&(i.trailingSpaceNewLine=!0)),T(i)}function x(e,n){if(">"===e.next()){n.f=n.inline=S,t.highlightFormatting&&(n.formatting="link");var r=T(n);return r?r+=" ":r="",r+a.linkInline}return e.match(/^[^>]+/,!0),a.linkInline}function Q(e,n){if(e.eatSpace())return null;var r=e.next();return"("===r||"["===r?(n.f=n.inline=I("("===r?")":"]"),t.highlightFormatting&&(n.formatting="link-string"),n.linkHref=!0,T(n)):"error"}var L={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function I(e){return function(n,r){if(n.next()===e){r.f=r.inline=S,t.highlightFormatting&&(r.formatting="link-string");var i=T(r);return r.linkHref=!1,i}return n.match(L[e]),r.linkHref=!0,T(r)}}function F(e,n){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(n.f=U,e.next(),t.highlightFormatting&&(n.formatting="link"),n.linkText=!0,T(n)):v(e,n,S)}function U(e,n){if(e.match(/^\]:/,!0)){n.f=n.inline=_,t.highlightFormatting&&(n.formatting="link");var r=T(n);return n.linkText=!1,r}return e.match(/^([^\]\\]|\\.)+/,!0),a.linkText}function _(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),void 0===e.peek()?t.linkTitle=!0:e.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),t.f=t.inline=S,a.linkHref+" url")}var M={startState:function(){return{f:B,prevLine:{stream:null},thisLine:{stream:null},block:B,htmlState:null,indentation:0,inline:S,text:E,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(e){return{f:e.f,prevLine:e.prevLine,thisLine:e.thisLine,block:e.block,htmlState:e.htmlState&&n.copyState(r,e.htmlState),indentation:e.indentation,localMode:e.localMode,localState:e.localMode?n.copyState(e.localMode,e.localState):null,inline:e.inline,text:e.text,formatting:!1,linkText:e.linkText,linkTitle:e.linkTitle,linkHref:e.linkHref,code:e.code,em:e.em,strong:e.strong,strikethrough:e.strikethrough,emoji:e.emoji,header:e.header,setext:e.setext,hr:e.hr,taskList:e.taskList,list:e.list,listStack:e.listStack.slice(0),quote:e.quote,indentedCode:e.indentedCode,trailingSpace:e.trailingSpace,trailingSpaceNewLine:e.trailingSpaceNewLine,md_inside:e.md_inside,fencedEndRE:e.fencedEndRE}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine.stream){if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0))return w(t),null;if(t.prevLine=t.thisLine,t.thisLine={stream:e},t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,!t.localState&&(t.f=t.block,t.f!=C)){var n=e.match(/^\s*/,!0)[0].replace(/\t/g,m).length;if(t.indentation=n,t.indentationDiff=null,n>0)return null}}return t.f(e,t)},innerMode:function(e){return e.block==C?{state:e.htmlState,mode:r}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:M}},indent:function(e,t,i){return e.block==C&&r.indent?r.indent(e.htmlState,t,i):e.localState&&e.localMode.indent?e.localMode.indent(e.localState,t,i):n.Pass},blankLine:w,getType:T,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return M}),"xml"),n.defineMIME("text/markdown","markdown"),n.defineMIME("text/x-markdown","markdown")})),r((function(e,t){var n;(n=ah).overlayMode=function(e,t,r){return{startState:function(){return{base:n.startState(e),overlay:n.startState(t),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(r){return{base:n.copyState(e,r.base),overlay:n.copyState(t,r.overlay),basePos:r.basePos,baseCur:null,overlayPos:r.overlayPos,overlayCur:null}},token:function(n,i){return(n!=i.streamSeen||Math.min(i.basePos,i.overlayPos)]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i,(n=ah).defineMode("gfm",(function(e,t){var i=0;function o(e){return e.code=!1,null}var a={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(e){return{code:e.code,codeBlock:e.codeBlock,ateSpace:e.ateSpace}},token:function(e,n){if(n.combineTokens=null,n.codeBlock)return e.match(/^```+/)?(n.codeBlock=!1,null):(e.skipToEnd(),null);if(e.sol()&&(n.code=!1),e.sol()&&e.match(/^```+/))return e.skipToEnd(),n.codeBlock=!0,null;if("`"===e.peek()){e.next();var o=e.pos;e.eatWhile("`");var a=1+e.pos-o;return n.code?a===i&&(n.code=!1):(i=a,n.code=!0),null}if(n.code)return e.next(),null;if(e.eatSpace())return n.ateSpace=!0,null;if((e.sol()||n.ateSpace)&&(n.ateSpace=!1,!1!==t.gitHubSpice)){if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return n.combineTokens=!0,"link";if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return n.combineTokens=!0,"link"}return e.match(r)&&"]("!=e.string.slice(e.start-2,e.start)&&(0==e.start||/\W/.test(e.string.charAt(e.start-1)))?(n.combineTokens=!0,"link"):(e.next(),null)},blankLine:o},A={taskLists:!0,strikethrough:!0,emoji:!0};for(var s in t)A[s]=t[s];return A.name="markdown",n.overlayMode(n.getMode(e,A),a)}),"markdown"),n.defineMIME("text/x-gfm","gfm")}));r((function(e,t){var n;(n=ah).defineMode("yaml",(function(){var e=new RegExp("\\b(("+["true","false","on","off","yes","no"].join(")|(")+"))$","i");return{token:function(t,n){var r=t.peek(),i=n.escaped;if(n.escaped=!1,"#"==r&&(0==t.pos||/\s/.test(t.string.charAt(t.pos-1))))return t.skipToEnd(),"comment";if(t.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(n.literal&&t.indentation()>n.keyCol)return t.skipToEnd(),"string";if(n.literal&&(n.literal=!1),t.sol()){if(n.keyCol=0,n.pair=!1,n.pairStart=!1,t.match(/---/))return"def";if(t.match(/\.\.\./))return"def";if(t.match(/\s*-\s+/))return"meta"}if(t.match(/^(\{|\}|\[|\])/))return"{"==r?n.inlinePairs++:"}"==r?n.inlinePairs--:"["==r?n.inlineList++:n.inlineList--,"meta";if(n.inlineList>0&&!i&&","==r)return t.next(),"meta";if(n.inlinePairs>0&&!i&&","==r)return n.keyCol=0,n.pair=!1,n.pairStart=!1,t.next(),"meta";if(n.pairStart){if(t.match(/^\s*(\||\>)\s*/))return n.literal=!0,"meta";if(t.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(0==n.inlinePairs&&t.match(/^\s*-?[0-9\.\,]+\s?$/))return"number";if(n.inlinePairs>0&&t.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(t.match(e))return"keyword"}return!n.pair&&t.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(n.pair=!0,n.keyCol=t.indentation(),"atom"):n.pair&&t.match(/^:\s*/)?(n.pairStart=!0,"meta"):(n.pairStart=!1,n.escaped="\\"==r,t.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}})),n.defineMIME("text/x-yaml","yaml"),n.defineMIME("text/yaml","yaml")}));r((function(e,t){var n,r,i,o;r=0,i=1,o=2,(n=ah).defineMode("yaml-frontmatter",(function(e,t){var a=n.getMode(e,"yaml"),A=n.getMode(e,t&&t.base||"gfm");function s(e){return e.state==o?A:a}return{startState:function(){return{state:r,inner:n.startState(a)}},copyState:function(e){return{state:e.state,inner:n.copyState(s(e),e.inner)}},token:function(e,t){if(t.state==r)return e.match(/---/,!1)?(t.state=i,a.token(e,t.inner)):(t.state=o,t.inner=n.startState(A),A.token(e,t.inner));if(t.state==i){var s=e.sol()&&e.match(/(---|\.\.\.)/,!1),l=a.token(e,t.inner);return s&&(t.state=o,t.inner=n.startState(A)),l}return A.token(e,t.inner)},innerMode:function(e){return{mode:s(e),state:e.inner}},blankLine:function(e){var t=s(e);if(t.blankLine)return t.blankLine(e.inner)}}}))})),r((function(e,t){!function(e){var t=/^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,n=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,r=/[*+-]\s/;function i(e,n){var r=n.line,i=0,o=0,a=t.exec(e.getLine(r)),A=a[1];do{var s=r+(i+=1),l=e.getLine(s),c=t.exec(l);if(c){var u=c[1],h=parseInt(a[3],10)+i-o,d=parseInt(c[3],10),f=d;if(A!==u||isNaN(d)){if(A.length>u.length)return;if(A.lengthd&&(f=h+1),e.replaceRange(l.replace(t,u+f+c[4]+c[5]),{line:s,ch:0},{line:s,ch:l.length})}}while(c)}e.commands.newlineAndIndentContinueMarkdownList=function(o){if(o.getOption("disableInput"))return e.Pass;for(var a=o.listSelections(),A=[],s=0;s\s*$/.test(f),v=!/>\s*$/.test(f);(m||v)&&o.replaceRange("",{line:l.line,ch:0},{line:l.line,ch:l.ch+1}),A[s]="\n"}else{var y=p[1],b=p[5],w=!(r.test(p[2])||p[2].indexOf(">")>=0),B=w?parseInt(p[3],10)+1+p[4]:p[2].replace("x"," ");A[s]="\n"+y+B+b,w&&i(o,l)}}o.replaceSelections(A)}}(ah)}));r((function(e,t){!function(e){var t=e.Pos;function n(e,t){return e.line-t.line||e.ch-t.ch}var r="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",i=new RegExp("<(/?)(["+r+"]["+r+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*)","g");function o(e,t,n,r){this.line=t,this.ch=n,this.cm=e,this.text=e.getLine(t),this.min=r?Math.max(r.from,e.firstLine()):e.firstLine(),this.max=r?Math.min(r.to-1,e.lastLine()):e.lastLine()}function a(e,n){var r=e.cm.getTokenTypeAt(t(e.line,n));return r&&/\btag\b/.test(r)}function A(e){if(!(e.line>=e.max))return e.ch=0,e.text=e.cm.getLine(++e.line),!0}function s(e){if(!(e.line<=e.min))return e.text=e.cm.getLine(--e.line),e.ch=e.text.length,!0}function l(e){for(;;){var t=e.text.indexOf(">",e.ch);if(-1==t){if(A(e))continue;return}if(a(e,t+1)){var n=e.text.lastIndexOf("/",t),r=n>-1&&!/\S/.test(e.text.slice(n+1,t));return e.ch=t+1,r?"selfClose":"regular"}e.ch=t+1}}function c(e){for(;;){var t=e.ch?e.text.lastIndexOf("<",e.ch-1):-1;if(-1==t){if(s(e))continue;return}if(a(e,t+1)){i.lastIndex=t,e.ch=t;var n=i.exec(e.text);if(n&&n.index==t)return n}else e.ch=t}}function u(e){for(;;){i.lastIndex=e.ch;var t=i.exec(e.text);if(!t){if(A(e))continue;return}if(a(e,t.index+1))return e.ch=t.index+t[0].length,t;e.ch=t.index+1}}function h(e){for(;;){var t=e.ch?e.text.lastIndexOf(">",e.ch-1):-1;if(-1==t){if(s(e))continue;return}if(a(e,t+1)){var n=e.text.lastIndexOf("/",t),r=n>-1&&!/\S/.test(e.text.slice(n+1,t));return e.ch=t+1,r?"selfClose":"regular"}e.ch=t}}function d(e,n){for(var r=[];;){var i,o=u(e),a=e.line,A=e.ch-(o?o[0].length:0);if(!o||!(i=l(e)))return;if("selfClose"!=i)if(o[1]){for(var s=r.length-1;s>=0;--s)if(r[s]==o[2]){r.length=s;break}if(s<0&&(!n||n==o[2]))return{tag:o[2],from:t(a,A),to:t(e.line,e.ch)}}else r.push(o[2])}}function f(e,n){for(var r=[];;){var i=h(e);if(!i)return;if("selfClose"!=i){var o=e.line,a=e.ch,A=c(e);if(!A)return;if(A[1])r.push(A[2]);else{for(var s=r.length-1;s>=0;--s)if(r[s]==A[2]){r.length=s;break}if(s<0&&(!n||n==A[2]))return{tag:A[2],from:t(e.line,e.ch),to:t(o,a)}}}else c(e)}}e.registerHelper("fold","xml",(function(e,r){for(var i=new o(e,r.line,0);;){var a=u(i);if(!a||i.line!=r.line)return;var A=l(i);if(!A)return;if(!a[1]&&"selfClose"!=A){var s=t(i.line,i.ch),c=d(i,a[2]);return c&&n(c.from,s)>0?{from:s,to:c.from}:null}}})),e.findMatchingTag=function(e,r,i){var a=new o(e,r.line,r.ch,i);if(-1!=a.text.indexOf(">")||-1!=a.text.indexOf("<")){var A=l(a),s=A&&t(a.line,a.ch),u=A&&c(a);if(A&&u&&!(n(a,r)>0)){var h={from:t(a.line,a.ch),to:s,tag:u[2]};return"selfClose"==A?{open:h,close:null,at:"open"}:u[1]?{open:f(a,u[2]),close:h,at:"close"}:{open:h,close:d(a=new o(e,s.line,s.ch,i),u[2]),at:"open"}}}},e.findEnclosingTag=function(e,t,n,r){for(var i=new o(e,t.line,t.ch,n);;){var a=f(i,r);if(!a)break;var A=d(new o(e,t.line,t.ch,n),a.tag);if(A)return{open:a,close:A}}},e.scanForClosingTag=function(e,t,n,r){return d(new o(e,t.line,t.ch,r?{from:0,to:r}:null),n)}}(ah)}));r((function(e,t){!function(e){e.defineOption("autoCloseTags",!1,(function(t,n,i){if(i!=e.Init&&i&&t.removeKeyMap("autoCloseTags"),n){var a={name:"autoCloseTags"};"object"==typeof n&&!1===n.whenClosing||(a["'/'"]=function(e){return o(e)}),"object"==typeof n&&!1===n.whenOpening||(a["'>'"]=function(e){return r(e)}),t.addKeyMap(a)}}));var t=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],n=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function r(r){if(r.getOption("disableInput"))return e.Pass;for(var i=r.listSelections(),o=[],s=r.getOption("autoCloseTags"),l=0;lc.ch&&(p=p.slice(0,p.length-u.end+c.ch));var y=p.toLowerCase();if(!p||"string"==u.type&&(u.end!=c.ch||!/[\"\']/.test(u.string.charAt(u.string.length-1))||1==u.string.length)||"tag"==u.type&&f.close||u.string.indexOf("/")==c.ch-u.start-1||m&&a(m,y)>-1||A(r,h.mode.xmlCurrentContext&&h.mode.xmlCurrentContext(d)||[],p,c,!0))return e.Pass;var b="object"==typeof s&&s.emptyTags;if(b&&a(b,p)>-1)o[l]={text:"/>",newPos:e.Pos(c.line,c.ch+2)};else{var w=v&&a(v,y)>-1;o[l]={indent:w,text:">"+(w?"\n\n":"")+"",newPos:w?e.Pos(c.line+1,0):e.Pos(c.line,c.ch+1)}}}var B="object"==typeof s&&s.dontIndentOnAutoClose;for(l=i.length-1;l>=0;l--){var C=o[l];r.replaceRange(C.text,i[l].head,i[l].anchor,"+insert");var k=r.listSelections().slice(0);k[l]={head:C.newPos,anchor:C.newPos},r.setSelections(k),!B&&C.indent&&(r.indentLine(C.newPos.line,null,!0),r.indentLine(C.newPos.line+1,null,!0))}}function i(t,n){for(var r=t.listSelections(),i=[],o=n?"/":""!=t.getLine(c.line).charAt(u.end)&&(f+=">"),i[l]=f}if(t.replaceSelections(i),r=t.listSelections(),!s)for(l=0;l=0&&n[l]==r;l--)++s;for(i=A.to,l=1;lc);u++){var h=e.getLine(l++);i=null==i?h:i+"\n"+h}s*=2,t.lastIndex=n.ch;var d=t.exec(i);if(d){var f=i.slice(0,d.index).split("\n"),p=d[0].split("\n"),g=n.line+f.length-1,m=f[f.length-1].length;return{from:r(g,m),to:r(g+p.length-1,1==p.length?m+p[0].length:p[p.length-1].length),match:d}}}}function l(e,t,n){for(var r,i=0;i<=e.length;){t.lastIndex=i;var o=t.exec(e);if(!o)break;var a=o.index+o[0].length;if(a>e.length-n)break;(!r||a>r.index+r[0].length)&&(r=o),i=o.index+1}return r}function c(e,t,n){t=o(t,"g");for(var i=n.line,a=n.ch,A=e.firstLine();i>=A;i--,a=-1){var s=e.getLine(i),c=l(s,t,a<0?0:s.length-a);if(c)return{from:r(i,c.index),to:r(i,c.index+c[0].length),match:c}}}function u(e,t,n){if(!a(t))return c(e,t,n);t=o(t,"gm");for(var i,A=1,s=e.getLine(n.line).length-n.ch,u=n.line,h=e.firstLine();u>=h;){for(var d=0;d=h;d++){var f=e.getLine(u--);i=null==i?f:f+"\n"+i}A*=2;var p=l(i,t,s);if(p){var g=i.slice(0,p.index).split("\n"),m=p[0].split("\n"),v=u+g.length,y=g[g.length-1].length;return{from:r(v,y),to:r(v+m.length-1,1==m.length?y+m[0].length:m[m.length-1].length),match:p}}}}function h(e,t,n,r){if(e.length==t.length)return n;for(var i=0,o=n+Math.max(0,e.length-t.length);;){if(i==o)return i;var a=i+o>>1,A=r(e.slice(0,a)).length;if(A==n)return a;A>n?o=a:i=a+1}}function d(e,i,o,a){if(!i.length)return null;var A=a?t:n,s=A(i).split(/\r|\n\r?/);e:for(var l=o.line,c=o.ch,u=e.lastLine()+1-s.length;l<=u;l++,c=0){var d=e.getLine(l).slice(c),f=A(d);if(1==s.length){var p=f.indexOf(s[0]);if(-1==p)continue e;return o=h(d,f,p,A)+c,{from:r(l,h(d,f,p,A)+c),to:r(l,h(d,f,p+s[0].length,A)+c)}}var g=f.length-s[0].length;if(f.slice(g)==s[0]){for(var m=1;m=u;l--,c=-1){var d=e.getLine(l);c>-1&&(d=d.slice(0,c));var f=A(d);if(1==s.length){var p=f.lastIndexOf(s[0]);if(-1==p)continue e;return{from:r(l,h(d,f,p,A)),to:r(l,h(d,f,p+s[0].length,A))}}var g=s[s.length-1];if(f.slice(0,g.length)==g){var m=1;for(o=l-s.length+1;m0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)}))}(ah)})),r((function(e,t){!function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(e){return e&&e.bracketRegex||/[(){}[\]]/}function o(e,t,o){var A=e.getLineHandle(t.line),s=t.ch-1,l=o&&o.afterCursor;null==l&&(l=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var c=i(o),u=!l&&s>=0&&c.test(A.text.charAt(s))&&r[A.text.charAt(s)]||c.test(A.text.charAt(s+1))&&r[A.text.charAt(++s)];if(!u)return null;var h=">"==u.charAt(1)?1:-1;if(o&&o.strict&&h>0!=(s==t.ch))return null;var d=e.getTokenTypeAt(n(t.line,s+1)),f=a(e,n(t.line,s+(h>0?1:0)),h,d||null,o);return null==f?null:{from:n(t.line,s),to:f&&f.pos,match:f&&f.ch==u.charAt(0),forward:h>0}}function a(e,t,o,a,A){for(var s=A&&A.maxScanLineLength||1e4,l=A&&A.maxScanLines||1e3,c=[],u=i(A),h=o>0?Math.min(t.line+l,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-l),d=t.line;d!=h;d+=o){var f=e.getLine(d);if(f){var p=o>0?0:f.length-1,g=o>0?f.length:-1;if(!(f.length>s))for(d==t.line&&(p=t.ch-(o<0?1:0));p!=g;p+=o){var m=f.charAt(p);if(u.test(m)&&(void 0===a||e.getTokenTypeAt(n(d,p+1))==a)){var v=r[m];if(v&&">"==v.charAt(1)==o>0)c.push(m);else{if(!c.length)return{pos:n(d,p),ch:m};c.pop()}}}}}return d-o!=(o>0?e.lastLine():e.firstLine())&&null}function A(e,r,i){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,A=[],s=e.listSelections(),l=0;l0&&r.ch>=o.length)return t.clipPos(n(r.line+1,0));for(var a,A="start",s=r.ch,l=s,c=i<0?0:o.length,u=0;l!=c;l+=i,u++){var h=o.charAt(i<0?l-1:l),d="_"!=h&&e.isWordChar(h)?"w":"o";if("w"==d&&h.toUpperCase()==h&&(d="W"),"start"==A)"o"!=d?(A="in",a=d):s=l+i;else if("in"==A&&a!=d){if("w"==a&&"W"==d&&i<0&&l--,"W"==a&&"w"==d&&i>0){if(l==s+1){a="w";continue}l--}break}}return n(r.line,l)}function i(e,t){e.extendSelectionsBy((function(n){return e.display.shift||e.doc.extend||n.empty()?r(e.doc,n.head,t):t<0?n.from():n.to()}))}function o(t,r){if(t.isReadOnly())return e.Pass;t.operation((function(){for(var e=t.listSelections().length,i=[],o=-1,a=0;a=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},t.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},t.splitSelectionByLine=function(e){for(var t=e.listSelections(),r=[],i=0;io.line&&A==a.line&&0==a.ch||r.push({anchor:A==o.line?o:n(A,0),head:A==a.line?a:n(A)});e.setSelections(r,0)},t.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},t.selectLine=function(e){for(var t=e.listSelections(),r=[],i=0;i=0;A--){var l=r[i[A]];if(!(s&&e.cmpPos(l.head,s)>0)){var c=a(t,l.head);s=c.from,t.replaceRange(n(c.word),c.from,c.to)}}}))}function f(t){var n=t.getCursor("from"),r=t.getCursor("to");if(0==e.cmpPos(n,r)){var i=a(t,n);if(!i.word)return;n=i.from,r=i.to}return{from:n,to:r,query:t.getRange(n,r),word:i}}function p(e,t){var r=f(e);if(r){var i=r.query,o=e.getSearchCursor(i,t?r.to:r.from);(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):(o=e.getSearchCursor(i,t?n(e.firstLine(),0):e.clipPos(n(e.lastLine()))),(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):r.word&&e.setSelection(r.from,r.to))}}t.selectScope=function(e){c(e)||e.execCommand("selectAll")},t.selectBetweenBrackets=function(t){if(!c(t))return e.Pass},t.goToBracket=function(t){t.extendSelectionsBy((function(r){var i=t.scanForBracket(r.head,1,u(t.getTokenTypeAt(r.head)));if(i&&0!=e.cmpPos(i.pos,r.head))return i.pos;var o=t.scanForBracket(r.head,-1,u(t.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return o&&n(o.pos.line,o.pos.ch+1)||r.head}))},t.swapLineUp=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.firstLine()-1,a=[],A=0;Ao?i.push(l,c):i.length&&(i[i.length-1]=c),o=c}t.operation((function(){for(var e=0;et.lastLine()?t.replaceRange("\n"+A,n(t.lastLine()),null,"+swapLine"):t.replaceRange(A+"\n",n(o,0),null,"+swapLine")}t.setSelections(a),t.scrollIntoView()}))},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.lastLine()+1,a=r.length-1;a>=0;a--){var A=r[a],s=A.to().line+1,l=A.from().line;0!=A.to().ch||A.empty()||s--,s=0;e-=2){var r=i[e],o=i[e+1],a=t.getLine(r);r==t.lastLine()?t.replaceRange("",n(r-1),n(r),"+swapLine"):t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),t.replaceRange(a+"\n",n(o,0),null,"+swapLine")}t.scrollIntoView()}))},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),r=[],i=0;i=0;o--){var a=r[o].head,A=t.getRange({line:a.line,ch:0},a),s=e.countColumn(A,null,t.getOption("tabSize")),l=t.findPosH(a,-1,"char",!1);if(A&&!/\S/.test(A)&&s%i==0){var c=new n(a.line,e.findColumn(A,s-i,i));c.ch!=a.ch&&(l=c)}t.replaceRange("",l,a,"+delete")}}))},t.delLineRight=function(e){e.operation((function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange("",t[r].anchor,n(t[r].to().line),"+delete");e.scrollIntoView()}))},t.upcaseAtCursor=function(e){d(e,(function(e){return e.toUpperCase()}))},t.downcaseAtCursor=function(e){d(e,(function(e){return e.toLowerCase()}))},t.setSublimeMark=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},t.selectToSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},t.deleteToSublimeMark=function(t){var n=t.state.sublimeMark&&t.state.sublimeMark.find();if(n){var r=t.getCursor(),i=n;if(e.cmpPos(r,i)>0){var o=i;i=r,r=o}t.state.sublimeKilled=t.getRange(r,i),t.replaceRange("",r,i)}},t.swapWithSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},t.sublimeYank=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},t.showInCenter=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)},t.findUnder=function(e){p(e,!0)},t.findUnderPrevious=function(e){p(e,!1)},t.findAllUnder=function(e){var t=f(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],i=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&i++;e.setSelections(r,i)}};var g=e.keyMap;g.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Cmd-F5":"sortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},e.normalizeKeyMap(g.macSublime),g.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Ctrl-F9":"sortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},e.normalizeKeyMap(g.pcSublime);var m=g.default==g.macDefault;g.sublime=m?g.macSublime:g.pcSublime}(ah)}));r((function(e,t){!function(e){function t(t,n,r){var i,o=t.getWrapperElement();return(i=o.appendChild(document.createElement("div"))).className=r?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?i.innerHTML=n:i.appendChild(n),e.addClass(o,"dialog-opened"),i}function n(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}e.defineExtension("openDialog",(function(r,i,o){o||(o={}),n(this,null);var a=t(this,r,o.bottom),A=!1,s=this;function l(t){if("string"==typeof t)u.value=t;else{if(A)return;A=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),s.focus(),o.onClose&&o.onClose(a)}}var c,u=a.getElementsByTagName("input")[0];return u?(u.focus(),o.value&&(u.value=o.value,!1!==o.selectValueOnOpen&&u.select()),o.onInput&&e.on(u,"input",(function(e){o.onInput(e,u.value,l)})),o.onKeyUp&&e.on(u,"keyup",(function(e){o.onKeyUp(e,u.value,l)})),e.on(u,"keydown",(function(t){o&&o.onKeyDown&&o.onKeyDown(t,u.value,l)||((27==t.keyCode||!1!==o.closeOnEnter&&13==t.keyCode)&&(u.blur(),e.e_stop(t),l()),13==t.keyCode&&i(u.value,t))})),!1!==o.closeOnBlur&&e.on(a,"focusout",(function(e){null!==e.relatedTarget&&l()}))):(c=a.getElementsByTagName("button")[0])&&(e.on(c,"click",(function(){l(),s.focus()})),!1!==o.closeOnBlur&&e.on(c,"blur",l),c.focus()),l})),e.defineExtension("openConfirm",(function(r,i,o){n(this,null);var a=t(this,r,o&&o.bottom),A=a.getElementsByTagName("button"),s=!1,l=this,c=1;function u(){s||(s=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),l.focus())}A[0].focus();for(var h=0;h",type:"keyToKey",toKeys:"h"},{keys:"",type:"keyToKey",toKeys:"l"},{keys:"",type:"keyToKey",toKeys:"k"},{keys:"",type:"keyToKey",toKeys:"j"},{keys:"",type:"keyToKey",toKeys:"l"},{keys:"",type:"keyToKey",toKeys:"h",context:"normal"},{keys:"",type:"keyToKey",toKeys:"x",context:"normal"},{keys:"",type:"keyToKey",toKeys:"W"},{keys:"",type:"keyToKey",toKeys:"B",context:"normal"},{keys:"",type:"keyToKey",toKeys:"w"},{keys:"",type:"keyToKey",toKeys:"b",context:"normal"},{keys:"",type:"keyToKey",toKeys:"j"},{keys:"",type:"keyToKey",toKeys:"k"},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:"",context:"insert"},{keys:"",type:"keyToKey",toKeys:"",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"c",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"VdO",context:"visual"},{keys:"",type:"keyToKey",toKeys:"0"},{keys:"",type:"keyToKey",toKeys:"$"},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"",type:"action",action:"toggleOverwrite",context:"insert"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"(",type:"motion",motion:"moveBySentence",motionArgs:{forward:!1}},{keys:")",type:"motion",motion:"moveBySentence",motionArgs:{forward:!0}},{keys:"",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"T",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:"=",type:"operator",operator:"indentAuto"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"gn",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!0}},{keys:"gN",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!1}},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"expandToLine",motionArgs:{linewise:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"",type:"idle",context:"normal"},{keys:"",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"gi",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"lastEdit"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"gI",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"bol"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"gJ",type:"action",action:"joinLines",actionArgs:{keepSpaces:!0},isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r",type:"action",action:"replace",isEdit:!0},{keys:"@",type:"action",action:"replayMacro"},{keys:"q",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0},context:"normal"},{keys:"R",type:"operator",operator:"change",operatorArgs:{linewise:!0,fullLine:!0},context:"visual",exitVisualBlock:!0},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"",type:"action",action:"redo"},{keys:"m",type:"action",action:"setMark"},{keys:'"',type:"action",action:"setRegister"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"",type:"action",action:"indent",actionArgs:{indentRight:!0},context:"insert"},{keys:"",type:"action",action:"indent",actionArgs:{indentRight:!1},context:"insert"},{keys:"a",type:"motion",motion:"textObjectManipulation"},{keys:"i",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}]).length,o=[{name:"colorscheme",shortName:"colo"},{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"unmap"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"se"},{name:"setlocal",shortName:"setl"},{name:"setglobal",shortName:"setg"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"nohlsearch",shortName:"noh"},{name:"yank",shortName:"y"},{name:"delmarks",shortName:"delm"},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"global",shortName:"g"}],a=(n=ah).Pos,A=function(){function e(e){e.setOption("disableInput",!0),e.setOption("showCursorWhenSelecting",!1),n.signal(e,"vim-mode-change",{mode:"normal"}),e.on("cursorActivity",$t),X(e),n.on(e.getInputField(),"paste",m(e))}function t(e){e.setOption("disableInput",!1),e.off("cursorActivity",$t),n.off(e.getInputField(),"paste",m(e)),e.state.vim=null}function A(e,r){this==n.keyMap.vim&&(n.rmClass(e.getWrapperElement(),"cm-fat-cursor"),"contenteditable"==e.getOption("inputStyle")&&null!=document.body.style.caretColor&&(h(e),e.getInputField().style.caretColor="")),r&&r.attach==s||t(e)}function s(t,r){this==n.keyMap.vim&&(n.addClass(t.getWrapperElement(),"cm-fat-cursor"),"contenteditable"==t.getOption("inputStyle")&&null!=document.body.style.caretColor&&(u(t),t.getInputField().style.caretColor="transparent")),r&&r.attach==s||e(t)}function l(e){if(e.state.fatCursorMarks){c(e);for(var t=e.listSelections(),n=[],r=0;r")}function m(e){var t=e.state.vim;return t.onPasteFn||(t.onPasteFn=function(){t.insertMode||(e.setCursor(le(e.getCursor(),0,1)),oe.enterInsertMode(e,{},t))}),t.onPasteFn}var v=/[\d]/,y=[n.isWordChar,function(e){return e&&!n.isWordChar(e)&&!/\s/.test(e)}],b=[function(e){return/\S/.test(e)}];function w(e,t){for(var n=[],r=e;r"]),E=[].concat(B,C,k,["-",'"',".",":","_","/"]);function S(e,t){return t>=e.firstLine()&&t<=e.lastLine()}function x(e){return/^[a-z]$/.test(e)}function Q(e){return-1!="()[]{}".indexOf(e)}function L(e){return v.test(e)}function I(e){return/^[A-Z]$/.test(e)}function F(e){return/^\s*$/.test(e)}function U(e){return-1!=".?!".indexOf(e)}function _(e,t){for(var n=0;nn?t=n:t0?1:-1,c=o.getCursor();do{if((A=i[(e+(t+=l))%e])&&(s=A.find())&&!pe(c,s))break}while(tr)}return A}function A(e,n){var r=t,i=a(e,n);return t=r,i&&i.find()}return{cachedCursor:void 0,add:o,find:A,move:a}},$=function(e){return e?{changes:e.changes,expectCursorActivityForChange:e.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};function K(){this.latestRegister=void 0,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=void 0,this.lastInsertModeChanges=$()}function X(e){return e.state.vim||(e.state.vim={inputState:new j,lastEditInputState:void 0,lastEditActionCommand:void 0,lastHPos:-1,lastHSPos:-1,lastMotion:null,marks:{},fakeCursor:null,insertMode:!1,insertModeRepeat:void 0,visualMode:!1,visualLine:!1,visualBlock:!1,lastSelection:null,lastPastedText:null,sel:{},options:{}}),e.state.vim}function V(){for(var e in N={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:void 0,jumpList:P(),macroModeState:new K,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new J({}),searchHistoryController:new Y,exCommandHistoryController:new Y},M){var t=M[e];t.value=t.defaultValue}}K.prototype={exitMacroRecordMode:function(){var e=N.macroModeState;e.onRecordingDone&&e.onRecordingDone(),e.onRecordingDone=void 0,e.isRecording=!1},enterMacroRecordMode:function(e,t){var n=N.registerController.getRegister(t);n&&(n.clear(),this.latestRegister=t,e.openDialog&&(this.onRecordingDone=e.openDialog("(recording)["+t+"]",null,{bottom:!0})),this.isRecording=!0)}};var G={buildKeyMap:function(){},getRegisterController:function(){return N.registerController},resetVimGlobalState_:V,getVimGlobalState_:function(){return N},maybeInitVimState_:X,suppressErrorLogging:!1,InsertModeKey:Gt,map:function(e,t,n){Ft.map(e,t,n)},unmap:function(e,t){Ft.unmap(e,t)},noremap:function(e,t,n){function o(e){return e?[e]:["normal","insert","visual"]}for(var a=o(n),A=r.length,s=A-i;s=0;a--){var A=o[a];if(e!==A.context)if(A.context)this._mapCommand(A);else{var s=["normal","insert","visual"];for(var l in s)if(s[l]!==e){var c={};for(var u in A)c[u]=A[u];c.context=s[l],this._mapCommand(c)}}}},setOption:D,getOption:O,defineOption:H,defineEx:function(e,t,n){if(t){if(0!==e.indexOf(t))throw new Error('(Vim.defineEx) "'+t+'" is not a prefix of "'+e+'", command not registered')}else t=e;It[e]=n,Ft.commandMap_[t]={name:e,shortName:t,type:"api"}},handleKey:function(e,t,n){var r=this.findKey(e,t,n);if("function"==typeof r)return r()},findKey:function(e,t,i){var o,a=X(e);function A(){var n=N.macroModeState;if(n.isRecording){if("q"==t)return n.exitMacroRecordMode(),W(e),!0;"mapping"!=i&&Ot(n,t)}}function s(){if(""==t)return W(e),a.visualMode?Ue(e):a.insertMode&&_t(e),!0}function l(r){for(var i;r;)i=/<\w+-.+?>|<\w+>|./.exec(r),t=i[0],r=r.substring(i.index+t.length),n.Vim.handleKey(e,t,"mapping")}function c(){if(s())return!0;for(var n=a.inputState.keyBuffer=a.inputState.keyBuffer+t,i=1==t.length,o=Z.matchCommand(n,r,a.inputState,"insert");n.length>1&&"full"!=o.type;){n=a.inputState.keyBuffer=n.slice(1);var A=Z.matchCommand(n,r,a.inputState,"insert");"none"!=A.type&&(o=A)}if("none"==o.type)return W(e),!1;if("partial"==o.type)return R&&window.clearTimeout(R),R=window.setTimeout((function(){a.insertMode&&a.inputState.keyBuffer&&W(e)}),O("insertModeEscKeysTimeout")),!i;if(R&&window.clearTimeout(R),i){for(var l=e.listSelections(),c=0;c0||this.motionRepeat.length>0)&&(e=1,this.prefixRepeat.length>0&&(e*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(e*=parseInt(this.motionRepeat.join(""),10))),e},z.prototype={setText:function(e,t,n){this.keyBuffer=[e||""],this.linewise=!!t,this.blockwise=!!n},pushText:function(e,t){t&&(this.linewise||this.keyBuffer.push("\n"),this.linewise=!0),this.keyBuffer.push(e)},pushInsertModeChanges:function(e){this.insertModeChanges.push($(e))},pushSearchQuery:function(e){this.searchQueries.push(e)},clear:function(){this.keyBuffer=[],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!1},toString:function(){return this.keyBuffer.join("")}},J.prototype={pushText:function(e,t,n,r,i){if("_"!==e){r&&"\n"!==n.charAt(n.length-1)&&(n+="\n");var o=this.isValidRegister(e)?this.getRegister(e):null;if(o)I(e)?o.pushText(n,r):o.setText(n,r,i),this.unnamedRegister.setText(o.toString(),r);else{switch(t){case"yank":this.registers[0]=new z(n,r,i);break;case"delete":case"change":-1==n.indexOf("\n")?this.registers["-"]=new z(n,r):(this.shiftNumericRegisters_(),this.registers[1]=new z(n,r))}this.unnamedRegister.setText(n,r,i)}}},getRegister:function(e){return this.isValidRegister(e)?(e=e.toLowerCase(),this.registers[e]||(this.registers[e]=new z),this.registers[e]):this.unnamedRegister},isValidRegister:function(e){return e&&_(e,E)},shiftNumericRegisters_:function(){for(var e=9;e>=2;e--)this.registers[e]=this.getRegister(""+(e-1))}},Y.prototype={nextMatch:function(e,t){var n=this.historyBuffer,r=t?-1:1;null===this.initialPrefix&&(this.initialPrefix=e);for(var i=this.iterator+r;t?i>=0:i=n.length?(this.iterator=n.length,this.initialPrefix):i<0?e:void 0},pushInput:function(e){var t=this.historyBuffer.indexOf(e);t>-1&&this.historyBuffer.splice(t,1),e.length&&this.historyBuffer.push(e)},reset:function(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}};var Z={matchCommand:function(e,t,n,r){var i,o=ce(e,t,r,n);if(!o.full&&!o.partial)return{type:"none"};if(!o.full&&o.partial)return{type:"partial"};for(var a=0;a"==i.keys.slice(-11)){var s=he(e);if(!s)return{type:"none"};n.selectedCharacter=s}return{type:"full",command:i}},processCommand:function(e,t,n){switch(t.inputState.repeatOverride=n.repeatOverride,n.type){case"motion":this.processMotion(e,t,n);break;case"operator":this.processOperator(e,t,n);break;case"operatorMotion":this.processOperatorMotion(e,t,n);break;case"action":this.processAction(e,t,n);break;case"search":this.processSearch(e,t,n);break;case"ex":case"keyToEx":this.processEx(e,t,n)}},processMotion:function(e,t,n){t.inputState.motion=n.motion,t.inputState.motionArgs=se(n.motionArgs),this.evalInput(e,t)},processOperator:function(e,t,n){var r=t.inputState;if(r.operator){if(r.operator==n.operator)return r.motion="expandToLine",r.motionArgs={linewise:!0},void this.evalInput(e,t);W(e)}r.operator=n.operator,r.operatorArgs=se(n.operatorArgs),n.exitVisualBlock&&(t.visualBlock=!1,Le(e)),t.visualMode&&this.evalInput(e,t)},processOperatorMotion:function(e,t,n){var r=t.visualMode,i=se(n.operatorMotionArgs);i&&r&&i.visualLine&&(t.visualLine=!0),this.processOperator(e,t,n),r||this.processMotion(e,t,n)},processAction:function(e,t,n){var r=t.inputState,i=r.getRepeat(),o=!!i,a=se(n.actionArgs)||{};r.selectedCharacter&&(a.selectedCharacter=r.selectedCharacter),n.operator&&this.processOperator(e,t,n),n.motion&&this.processMotion(e,t,n),(n.motion||n.operator)&&this.evalInput(e,t),a.repeat=i||1,a.repeatIsExplicit=o,a.registerName=r.registerName,W(e),t.lastMotion=null,n.isEdit&&this.recordLastEdit(t,r,n),oe[n.action](e,a,t)},processSearch:function(e,t,r){if(e.getSearchCursor){var i=r.searchArgs.forward,o=r.searchArgs.wholeWordOnly;nt(e).setReversed(!i);var a=i?"/":"?",A=nt(e).getQuery(),s=e.getScrollInfo();switch(r.searchArgs.querySrc){case"prompt":var l=N.macroModeState;l.isPlaying?d(h=l.replaySearchQueries.shift(),!0,!1):mt(e,{onClose:f,prefix:a,desc:gt,onKeyUp:p,onKeyDown:g});break;case"wordUnderCursor":var c=De(e,!1,!0,!1,!0),u=!0;if(c||(c=De(e,!1,!0,!1,!1),u=!1),!c)return;var h=e.getLine(c.start.line).substring(c.start.ch,c.end.ch);h=u&&o?"\\b"+h+"\\b":Be(h),N.jumpList.cachedCursor=e.getCursor(),e.setCursor(c.start),d(h,!0,!1)}}function d(n,i,o){N.searchHistoryController.pushInput(n),N.searchHistoryController.reset();try{yt(e,n,i,o)}catch(t){return ft(e,"Invalid regex: "+n),void W(e)}Z.processMotion(e,t,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:r.searchArgs.toJumplist}})}function f(t){e.scrollTo(s.left,s.top),d(t,!0,!0);var n=N.macroModeState;n.isRecording&&Rt(n,t)}function p(t,r,o){var a,A,l,c=n.keyName(t);"Up"==c||"Down"==c?(a="Up"==c,A=t.target?t.target.selectionEnd:0,o(r=N.searchHistoryController.nextMatch(r,a)||""),A&&t.target&&(t.target.selectionEnd=t.target.selectionStart=Math.min(A,t.target.value.length))):"Left"!=c&&"Right"!=c&&"Ctrl"!=c&&"Alt"!=c&&"Shift"!=c&&N.searchHistoryController.reset();try{l=yt(e,r,!0,!0)}catch(t){}l?e.scrollIntoView(Ct(e,!i,l),30):(Tt(e),e.scrollTo(s.left,s.top))}function g(t,r,i){var o=n.keyName(t);"Esc"==o||"Ctrl-C"==o||"Ctrl-["==o||"Backspace"==o&&""==r?(N.searchHistoryController.pushInput(r),N.searchHistoryController.reset(),yt(e,A),Tt(e),e.scrollTo(s.left,s.top),n.e_stop(t),W(e),i(),e.focus()):"Up"==o||"Down"==o?n.e_stop(t):"Ctrl-U"==o&&(n.e_stop(t),i(""))}},processEx:function(e,t,r){function i(t){N.exCommandHistoryController.pushInput(t),N.exCommandHistoryController.reset(),Ft.processCommand(e,t)}function o(t,r,i){var o,a,A=n.keyName(t);("Esc"==A||"Ctrl-C"==A||"Ctrl-["==A||"Backspace"==A&&""==r)&&(N.exCommandHistoryController.pushInput(r),N.exCommandHistoryController.reset(),n.e_stop(t),W(e),i(),e.focus()),"Up"==A||"Down"==A?(n.e_stop(t),o="Up"==A,a=t.target?t.target.selectionEnd:0,i(r=N.exCommandHistoryController.nextMatch(r,o)||""),a&&t.target&&(t.target.selectionEnd=t.target.selectionStart=Math.min(a,t.target.value.length))):"Ctrl-U"==A?(n.e_stop(t),i("")):"Left"!=A&&"Right"!=A&&"Ctrl"!=A&&"Alt"!=A&&"Shift"!=A&&N.exCommandHistoryController.reset()}"keyToEx"==r.type?Ft.processCommand(e,r.exArgs.input):t.visualMode?mt(e,{onClose:i,prefix:":",value:"'<,'>",onKeyDown:o,selectValueOnOpen:!1}):mt(e,{onClose:i,prefix:":",onKeyDown:o})},evalInput:function(e,t){var n,r,i,o=t.inputState,A=o.motion,s=o.motionArgs||{},l=o.operator,c=o.operatorArgs||{},u=o.registerName,h=t.sel,d=fe(t.visualMode?Ae(e,h.head):e.getCursor("head")),f=fe(t.visualMode?Ae(e,h.anchor):e.getCursor("anchor")),p=fe(d),g=fe(f);if(l&&this.recordLastEdit(t,o),(i=void 0!==o.repeatOverride?o.repeatOverride:o.getRepeat())>0&&s.explicitRepeat?s.repeatIsExplicit=!0:(s.noRepeat||!s.explicitRepeat&&0===i)&&(i=1,s.repeatIsExplicit=!1),o.selectedCharacter&&(s.selectedCharacter=c.selectedCharacter=o.selectedCharacter),s.repeat=i,W(e),A){var m=ee[A](e,d,s,t,o);if(t.lastMotion=ee[A],!m)return;if(s.toJumplist){var v=N.jumpList,y=v.cachedCursor;y?(Ne(e,y,m),delete v.cachedCursor):Ne(e,d,m)}m instanceof Array?(r=m[0],n=m[1]):n=m,n||(n=fe(d)),t.visualMode?(t.visualBlock&&n.ch===1/0||(n=Ae(e,n)),r&&(r=Ae(e,r)),r=r||g,h.anchor=r,h.head=n,Le(e),ze(e,t,"<",ge(r,n)?r:n),ze(e,t,">",ge(r,n)?n:r)):l||(n=Ae(e,n),e.setCursor(n.line,n.ch))}if(l){if(c.lastSel){r=g;var b=c.lastSel,w=Math.abs(b.head.line-b.anchor.line),B=Math.abs(b.head.ch-b.anchor.ch);n=b.visualLine?a(g.line+w,g.ch):b.visualBlock?a(g.line+w,g.ch+B):b.head.line==b.anchor.line?a(g.line,g.ch+B):a(g.line+w,g.ch),t.visualMode=!0,t.visualLine=b.visualLine,t.visualBlock=b.visualBlock,h=t.sel={anchor:r,head:n},Le(e)}else t.visualMode&&(c.lastSel={anchor:fe(h.anchor),head:fe(h.head),visualBlock:t.visualBlock,visualLine:t.visualLine});var C,k,T,E,S;if(t.visualMode){if(C=me(h.head,h.anchor),k=ve(h.head,h.anchor),T=t.visualLine||c.linewise,S=Ie(e,{anchor:C,head:k},E=t.visualBlock?"block":T?"line":"char"),T){var x=S.ranges;if("block"==E)for(var Q=0;Qs:u.linec&&i.line==c?Ge(e,t,n,r,!0):(n.toFirstChar&&(o=He(e.getLine(s)),r.lastHPos=o),r.lastHSPos=e.charCoords(a(s,o),"div").left,a(s,o))},moveByDisplayLines:function(e,t,n,r){var i=t;switch(r.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:r.lastHSPos=e.charCoords(i,"div").left}var o=n.repeat;if((s=e.findPosV(i,n.forward?o:-o,"line",r.lastHSPos)).hitSide)if(n.forward)var A={top:e.charCoords(s,"div").top+8,left:r.lastHSPos},s=e.coordsChar(A,"div");else{var l=e.charCoords(a(e.firstLine(),0),"div");l.left=r.lastHSPos,s=e.coordsChar(l,"div")}return r.lastHPos=s.ch,s},moveByPage:function(e,t,n){var r=t,i=n.repeat;return e.findPosV(r,n.forward?i:-i,"page")},moveByParagraph:function(e,t,n){var r=n.forward?1:-1;return Je(e,t,n.repeat,r)},moveBySentence:function(e,t,n){var r=n.forward?1:-1;return Ye(e,t,n.repeat,r)},moveByScroll:function(e,t,n,r){var i=e.getScrollInfo(),o=null,a=n.repeat;a||(a=i.clientHeight/(2*e.defaultTextHeight()));var A=e.charCoords(t,"local");if(n.repeat=a,!(o=ee.moveByDisplayLines(e,t,n,r)))return null;var s=e.charCoords(o,"local");return e.scrollTo(null,i.top+s.top-A.top),o},moveByWords:function(e,t,n){return Ve(e,t,n.repeat,!!n.forward,!!n.wordEnd,!!n.bigWord)},moveTillCharacter:function(e,t,n){var r=je(e,n.repeat,n.forward,n.selectedCharacter),i=n.forward?-1:1;return Re(i,n),r?(r.ch+=i,r):null},moveToCharacter:function(e,t,n){var r=n.repeat;return Re(0,n),je(e,r,n.forward,n.selectedCharacter)||t},moveToSymbol:function(e,t,n){return Ke(e,n.repeat,n.forward,n.selectedCharacter)||t},moveToColumn:function(e,t,n,r){var i=n.repeat;return r.lastHPos=i-1,r.lastHSPos=e.charCoords(t,"div").left,We(e,i)},moveToEol:function(e,t,n,r){return Ge(e,t,n,r,!1)},moveToFirstNonWhiteSpaceCharacter:function(e,t){var n=t;return a(n.line,He(e.getLine(n.line)))},moveToMatchedSymbol:function(e,t){for(var n,r=t,i=r.line,o=r.ch,A=e.getLine(i);o"===o?/[(){}[\]<>]/:/[(){}[\]]/;return e.findMatchingBracket(a(i,o),{bracketRegex:l}).to}return r},moveToStartOfLine:function(e,t){return a(t.line,0)},moveToLineOrEdgeOfDocument:function(e,t,n){var r=n.forward?e.lastLine():e.firstLine();return n.repeatIsExplicit&&(r=n.repeat-e.getOption("firstLineNumber")),a(r,He(e.getLine(r)))},textObjectManipulation:function(e,t,n,r){var i={"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"},o={"'":!0,'"':!0,"`":!0},a=n.selectedCharacter;"b"==a?a="(":"B"==a&&(a="{");var A,s=!n.textObjectInner;if(i[a])A=Ze(e,t,a,s);else if(o[a])A=et(e,t,a,s);else if("W"===a)A=De(e,s,!0,!0);else if("w"===a)A=De(e,s,!0,!1);else if("p"===a)if(A=Je(e,t,n.repeat,0,s),n.linewise=!0,r.visualMode)r.visualLine||(r.visualLine=!0);else{var l=r.inputState.operatorArgs;l&&(l.linewise=!0),A.end.line--}else{if("t"!==a)return null;A=Oe(e,t,s)}return e.state.vim.visualMode?Qe(e,A.start,A.end):[A.start,A.end]},repeatLastCharacterSearch:function(e,t,n){var r=N.lastCharacterSearch,i=n.repeat,o=n.forward===r.forward,a=(r.increment?1:0)*(o?-1:1);e.moveH(-a,"char"),n.inclusive=!!o;var A=je(e,i,o,r.selectedCharacter);return A?(A.ch+=a,A):(e.moveH(a,"char"),t)}};function te(e,t){ee[e]=t}function ne(e,t){for(var n=[],r=0;re.lastLine()&&t.linewise&&!f?e.replaceRange("",d,l):e.replaceRange("",s,l),t.linewise&&(f||(e.setCursor(d),n.commands.newlineAndIndent(e)),s.ch=Number.MAX_VALUE),i=s}N.registerController.pushText(t.registerName,"change",o,t.linewise,r.length>1),oe.enterInsertMode(e,{head:i},e.state.vim)},delete:function(e,t,n){var r,i,o=e.state.vim;if(o.visualBlock){i=e.getSelection();var A=ne("",n.length);e.replaceSelections(A),r=n[0].anchor}else{var s=n[0].anchor,l=n[0].head;t.linewise&&l.line!=e.firstLine()&&s.line==e.lastLine()&&s.line==l.line-1&&(s.line==e.firstLine()?s.ch=0:s=a(s.line-1,be(e,s.line-1))),i=e.getRange(s,l),e.replaceRange("",s,l),r=s,t.linewise&&(r=ee.moveToFirstNonWhiteSpaceCharacter(e,s))}return N.registerController.pushText(t.registerName,"delete",i,t.linewise,o.visualBlock),Ae(e,r)},indent:function(e,t,n){var r=e.state.vim,i=n[0].anchor.line,o=r.visualBlock?n[n.length-1].anchor.line:n[0].head.line,a=r.visualMode?t.repeat:1;t.linewise&&o--;for(var A=i;A<=o;A++)for(var s=0;sl.top?(s.line+=(A-l.top)/i,s.line=Math.ceil(s.line),e.setCursor(s),l=e.charCoords(s,"local"),e.scrollTo(null,l.top)):e.scrollTo(null,A);else{var c=A+e.getScrollInfo().clientHeight;c=o.anchor.line?le(o.head,0,1):a(o.anchor.line,0)}else if("inplace"==i){if(r.visualMode)return}else"lastEdit"==i&&(A=Qt(e)||A);e.setOption("disableInput",!1),t&&t.replace?(e.toggleOverwrite(!0),e.setOption("keyMap","vim-replace"),n.signal(e,"vim-mode-change",{mode:"replace"})):(e.toggleOverwrite(!1),e.setOption("keyMap","vim-insert"),n.signal(e,"vim-mode-change",{mode:"insert"})),N.macroModeState.isPlaying||(e.on("change",Pt),n.on(e.getInputField(),"keydown",jt)),r.visualMode&&Ue(e),Te(e,A,s)}},toggleVisualMode:function(e,t,r){var i,o=t.repeat,A=e.getCursor();r.visualMode?r.visualLine^t.linewise||r.visualBlock^t.blockwise?(r.visualLine=!!t.linewise,r.visualBlock=!!t.blockwise,n.signal(e,"vim-mode-change",{mode:"visual",subMode:r.visualLine?"linewise":r.visualBlock?"blockwise":""}),Le(e)):Ue(e):(r.visualMode=!0,r.visualLine=!!t.linewise,r.visualBlock=!!t.blockwise,i=Ae(e,a(A.line,A.ch+o-1)),r.sel={anchor:A,head:i},n.signal(e,"vim-mode-change",{mode:"visual",subMode:r.visualLine?"linewise":r.visualBlock?"blockwise":""}),Le(e),ze(e,r,"<",me(A,i)),ze(e,r,">",ve(A,i)))},reselectLastSelection:function(e,t,r){var i=r.lastSelection;if(r.visualMode&&xe(e,r),i){var o=i.anchorMark.find(),a=i.headMark.find();if(!o||!a)return;r.sel={anchor:o,head:a},r.visualMode=!0,r.visualLine=i.visualLine,r.visualBlock=i.visualBlock,Le(e),ze(e,r,"<",me(o,a)),ze(e,r,">",ve(o,a)),n.signal(e,"vim-mode-change",{mode:"visual",subMode:r.visualLine?"linewise":r.visualBlock?"blockwise":""})}},joinLines:function(e,t,n){var r,i;if(n.visualMode){if(r=e.getCursor("anchor"),ge(i=e.getCursor("head"),r)){var o=i;i=r,r=o}i.ch=be(e,i.line)-1}else{var A=Math.max(t.repeat,2);r=e.getCursor(),i=Ae(e,a(r.line+A-1,1/0))}for(var s=0,l=r.line;l1&&(d=Array(t.repeat+1).join(d));var f,p,g=i.linewise,m=i.blockwise;if(m){d=d.split("\n"),g&&d.pop();for(var v=0;ve.lastLine()&&e.replaceRange("\n",a(E,0)),be(e,E)c.length&&(i=c.length),o=a(s.line,i)}if("\n"==A)r.visualMode||e.replaceRange("",s,o),(n.commands.newlineAndIndentContinueComment||n.commands.newlineAndIndent)(e);else{var u=e.getRange(s,o);if(u=u.replace(/[^\n]/g,A),r.visualBlock){var h=new Array(e.getOption("tabSize")+1).join(" ");u=(u=e.getSelection()).replace(/\t/g,h).replace(/[^\n]/g,A).split("\n"),e.replaceSelections(u)}else e.replaceRange(u,s,o);r.visualMode?(s=ge(l[0].anchor,l[0].head)?l[0].anchor:l[0].head,e.setCursor(s),Ue(e,!1)):e.setCursor(le(o,0,-1))}},incrementNumberToken:function(e,t){for(var n,r,i,o,A=e.getCursor(),s=e.getLine(A.line),l=/(-?)(?:(0x)([\da-f]+)|(0b|0|)(\d+))/gi;null!==(n=l.exec(s))&&(i=(r=n.index)+n[0].length,!(A.ch"==t.slice(-11)){var n=t.length-11,r=e.slice(0,n),i=t.slice(0,n);return r==i&&e.length>n?"full":0==i.indexOf(r)&&"partial"}return e==t?"full":0==t.indexOf(e)&&"partial"}function he(e){var t=/^.*(<[^>]+>)$/.exec(e),n=t?t[1]:e.slice(-1);if(n.length>1)switch(n){case"":n="\n";break;case"":n=" ";break;default:n=""}return n}function de(e,t,n){return function(){for(var r=0;r2&&(t=me.apply(void 0,Array.prototype.slice.call(arguments,1))),ge(e,t)?e:t}function ve(e,t){return arguments.length>2&&(t=ve.apply(void 0,Array.prototype.slice.call(arguments,1))),ge(e,t)?t:e}function ye(e,t,n){var r=ge(e,t),i=ge(t,n);return r&&i}function be(e,t){return e.getLine(t).length}function we(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Be(e){return e.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1")}function Ce(e,t,n){var r=be(e,t),i=new Array(n-r+1).join(" ");e.setCursor(a(t,r)),e.replaceRange(i,e.getCursor())}function ke(e,t){var n=[],r=e.listSelections(),i=fe(e.clipPos(t)),o=!pe(t,i),A=Ee(r,e.getCursor("head")),s=pe(r[A].head,r[A].anchor),l=r.length-1,c=l-A>A?l:0,u=r[c].anchor,h=Math.min(u.line,i.line),d=Math.max(u.line,i.line),f=u.ch,p=i.ch,g=r[c].head.ch-f,m=p-f;g>0&&m<=0?(f++,o||p--):g<0&&m>=0?(f--,s||p++):g<0&&-1==m&&(f--,p++);for(var v=h;v<=d;v++){var y={anchor:new a(v,f),head:new a(v,p)};n.push(y)}return e.setSelections(n),t.ch=p,u.ch=f,u}function Te(e,t,n){for(var r=[],i=0;il&&(i.line=l),i.ch=be(e,i.line)}return{ranges:[{anchor:o,head:i}],primary:0}}if("block"==n){for(var c=Math.min(o.line,i.line),u=Math.min(o.ch,i.ch),h=Math.max(o.line,i.line),d=Math.max(o.ch,i.ch)+1,f=h-c+1,p=i.line==c?0:f-1,g=[],m=0;m0&&o&&F(o);o=i.pop())n.line--,n.ch=0;o?(n.line--,n.ch=be(e,n.line)):n.ch=0}}function Me(e,t,n){t.ch=0,n.ch=0,n.line++}function He(e){if(!e)return 0;var t=e.search(/\S/);return-1==t?e.length:t}function De(e,t,n,r,i){for(var o=Fe(e),A=e.getLine(o.line),s=o.ch,l=i?y[0]:b[0];!l(A.charAt(s));)if(++s>=A.length)return null;r?l=b[0]:(l=y[0])(A.charAt(s))||(l=y[1]);for(var c=s,u=s;l(A.charAt(c))&&c=0;)u--;if(u++,t){for(var h=c;/\s/.test(A.charAt(c))&&c0;)u--;u||(u=d)}}return{start:a(o.line,u),end:a(o.line,c)}}function Oe(e,t,r){var i=t;if(!n.findMatchingTag||!n.findEnclosingTag)return{start:i,end:i};var o=n.findMatchingTag(e,t)||n.findEnclosingTag(e,t);return o&&o.open&&o.close?r?{start:o.open.from,end:o.close.to}:{start:o.open.to,end:o.close.from}:{start:i,end:i}}function Ne(e,t,n){pe(t,n)||N.jumpList.add(e,t,n)}function Re(e,t){N.lastCharacterSearch.increment=e,N.lastCharacterSearch.forward=t.forward,N.lastCharacterSearch.selectedCharacter=t.selectedCharacter}var Pe={"(":"bracket",")":"bracket","{":"bracket","}":"bracket","[":"section","]":"section","*":"comment","/":"comment",m:"method",M:"method","#":"preprocess"},$e={bracket:{isComplete:function(e){if(e.nextCh===e.symb){if(e.depth++,e.depth>=1)return!0}else e.nextCh===e.reverseSymb&&e.depth--;return!1}},section:{init:function(e){e.curMoveThrough=!0,e.symb=(e.forward?"]":"[")===e.symb?"{":"}"},isComplete:function(e){return 0===e.index&&e.nextCh===e.symb}},comment:{isComplete:function(e){var t="*"===e.lastCh&&"/"===e.nextCh;return e.lastCh=e.nextCh,t}},method:{init:function(e){e.symb="m"===e.symb?"{":"}",e.reverseSymb="{"===e.symb?"}":"{"},isComplete:function(e){return e.nextCh===e.symb}},preprocess:{init:function(e){e.index=0},isComplete:function(e){if("#"===e.nextCh){var t=e.lineText.match(/#(\w+)/)[1];if("endif"===t){if(e.forward&&0===e.depth)return!0;e.depth++}else if("if"===t){if(!e.forward&&0===e.depth)return!0;e.depth--}if("else"===t&&0===e.depth)return!0}return!1}}};function Ke(e,t,n,r){var i=fe(e.getCursor()),o=n?1:-1,A=n?e.lineCount():-1,s=i.ch,l=i.line,c=e.getLine(l),u={lineText:c,nextCh:c.charAt(s),lastCh:null,index:s,symb:r,reverseSymb:(n?{")":"(","}":"{"}:{"(":")","{":"}"})[r],forward:n,depth:0,curMoveThrough:!1},h=Pe[r];if(!h)return i;var d=$e[h].init,f=$e[h].isComplete;for(d&&d(u);l!==A&&t;){if(u.index+=o,u.nextCh=u.lineText.charAt(u.index),!u.nextCh){if(l+=o,u.lineText=e.getLine(l)||"",o>0)u.index=0;else{var p=u.lineText.length;u.index=p>0?p-1:0}u.nextCh=u.lineText.charAt(u.index)}f(u)&&(i.line=l,i.ch=u.index,t--)}return u.nextCh||u.curMoveThrough?a(l,u.index):i}function Xe(e,t,n,r,i){var o=t.line,a=t.ch,A=e.getLine(o),s=n?1:-1,l=r?b:y;if(i&&""==A){if(o+=s,A=e.getLine(o),!S(e,o))return null;a=n?0:A.length}for(;;){if(i&&""==A)return{from:0,to:0,line:o};for(var c=s>0?A.length:-1,u=c,h=c;a!=c;){for(var d=!1,f=0;f0?0:A.length}}function Ve(e,t,n,r,i,o){var A=fe(t),s=[];(r&&!i||!r&&i)&&n++;for(var l=!(r&&i),c=0;c0;)h(c,r)&&n--,c+=r;return new a(c,0)}var d=e.state.vim;if(d.visualLine&&h(A,1,!0)){var f=d.sel.anchor;h(f.line,-1,!0)&&(i&&f.line==A||(A+=1))}var p=u(A);for(c=A;c<=l&&n;c++)h(c,1,!0)&&(i&&u(c)==p||n--);for(o=new a(c,0),c>l&&!p?p=!0:i=!1,c=A;c>s&&(i&&u(c)!=p&&c!=A||!h(c,-1,!0));c--);return{start:new a(c,0),end:o}}function Ye(e,t,n,r){function i(e,t){if(t.pos+t.dir<0||t.pos+t.dir>=t.line.length){if(t.ln+=t.dir,!S(e,t.ln))return t.line=null,t.ln=null,void(t.pos=null);t.line=e.getLine(t.ln),t.pos=t.dir>0?0:t.line.length-1}else t.pos+=t.dir}function o(e,t,n,r){var o=""===(l=e.getLine(t)),a={line:l,ln:t,pos:n,dir:r},A={ln:a.ln,pos:a.pos},s=""===a.line;for(i(e,a);null!==a.line;){if(A.ln=a.ln,A.pos=a.pos,""===a.line&&!s)return{ln:a.ln,pos:a.pos};if(o&&""!==a.line&&!F(a.line[a.pos]))return{ln:a.ln,pos:a.pos};!U(a.line[a.pos])||o||a.pos!==a.line.length-1&&!F(a.line[a.pos+1])||(o=!0),i(e,a)}var l=e.getLine(A.ln);A.pos=0;for(var c=l.length-1;c>=0;--c)if(!F(l[c])){A.pos=c;break}return A}function A(e,t,n,r){var o={line:s=e.getLine(t),ln:t,pos:n,dir:r},a={ln:o.ln,pos:null},A=""===o.line;for(i(e,o);null!==o.line;){if(""===o.line&&!A)return null!==a.pos?a:{ln:o.ln,pos:o.pos};if(U(o.line[o.pos])&&null!==a.pos&&(o.ln!==a.ln||o.pos+1!==a.pos))return a;""===o.line||F(o.line[o.pos])||(A=!1,a={ln:o.ln,pos:o.pos}),i(e,o)}var s=e.getLine(a.ln);a.pos=0;for(var l=0;l0;)s=r<0?A(e,s.ln,s.pos,r):o(e,s.ln,s.pos,r),n--;return a(s.ln,s.pos)}function Ze(e,t,n,r){var i,o,A=t,s={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[n],l={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[n],c=e.getLine(A.line).charAt(A.ch)===l?1:0;if(i=e.scanForBracket(a(A.line,A.ch+c),-1,void 0,{bracketRegex:s}),o=e.scanForBracket(a(A.line,A.ch+c),1,void 0,{bracketRegex:s}),!i||!o)return{start:A,end:A};if(i=i.pos,o=o.pos,i.line==o.line&&i.ch>o.ch||i.line>o.line){var u=i;i=o,o=u}return r?o.ch+=1:i.ch+=1,{start:i,end:o}}function et(e,t,n,r){var i,o,A,s,l=fe(t),c=e.getLine(l.line).split(""),u=c.indexOf(n);if(l.ch-1&&!i;A--)c[A]==n&&(i=A+1);else i=l.ch+1;if(i&&!o)for(A=i,s=c.length;A'+t+"",{bottom:!0,duration:5e3}):alert(t)}function pt(e,t){var n=''+(e||"")+'';return t&&(n+=' '+t+""),n}var gt="(Javascript regexp)";function mt(e,t){var n=(t.prefix||"")+" "+(t.desc||"");rt(e,pt(t.prefix,t.desc),n,t.onClose,t)}function vt(e,t){if(e instanceof RegExp&&t instanceof RegExp){for(var n=["global","multiline","ignoreCase","source"],r=0;r=t&&e<=n:e==t}function St(e){var t=e.getScrollInfo(),n=6,r=10,i=e.coordsChar({left:0,top:n+t.top},"local"),o=t.clientHeight-r+t.top,a=e.coordsChar({left:0,top:o},"local");return{top:i.line,bottom:a.line}}function xt(e,t,n){if("'"==n||"`"==n)return N.jumpList.find(e,-1)||a(0,0);if("."==n)return Qt(e);var r=t.marks[n];return r&&r.find()}function Qt(e){for(var t=e.doc.history.done,n=t.length;n--;)if(t[n].changes)return fe(t[n].changes[0].to)}var Lt=function(){this.buildCommandMap_()};Lt.prototype={processCommand:function(e,t,n){var r=this;e.operation((function(){e.curOp.isVimOp=!0,r._processCommand(e,t,n)}))},_processCommand:function(e,t,r){var i=e.state.vim,o=N.registerController.getRegister(":"),a=o.toString();i.visualMode&&Ue(e);var A=new n.StringStream(t);o.setText(t);var s,l,c=r||{};c.input=t;try{this.parseInput_(e,A,c)}catch(t){throw ft(e,t),t}if(c.commandName){if(s=this.matchCommand_(c.commandName)){if(l=s.name,s.excludeFromCommandHistory&&o.setText(a),this.parseCommandArgs_(A,c,s),"exToKey"==s.type){for(var u=0;u@~])/);return n.commandName=r?r[1]:t.match(/.*/)[0],n},parseLineSpec_:function(e,t){var n=t.match(/^(\d+)/);if(n)return parseInt(n[1],10)-1;switch(t.next()){case".":return this.parseLineSpecOffset_(t,e.getCursor().line);case"$":return this.parseLineSpecOffset_(t,e.lastLine());case"'":var r=t.next(),i=xt(e,e.state.vim,r);if(!i)throw new Error("Mark not set");return this.parseLineSpecOffset_(t,i.line);case"-":case"+":return t.backUp(1),this.parseLineSpecOffset_(t,e.getCursor().line);default:return void t.backUp(1)}},parseLineSpecOffset_:function(e,t){var n=e.match(/^([+-])?(\d+)/);if(n){var r=parseInt(n[2],10);"-"==n[1]?t-=r:t+=r}return t},parseCommandArgs_:function(e,t,n){if(!e.eol()){t.argString=e.match(/.*/)[0];var r=n.argDelimiter||/\s+/,i=we(t.argString).split(r);i.length&&i[0]&&(t.args=i)}},matchCommand_:function(e){for(var t=e.length;t>0;t--){var n=e.substring(0,t);if(this.commandMap_[n]){var r=this.commandMap_[n];if(0===r.name.indexOf(e))return r}}return null},buildCommandMap_:function(){this.commandMap_={};for(var e=0;e
";if(n){n=n.join("");for(var o=0;o")}else for(var a in r){var A=r[a].toString();A.length&&(i+='"'+a+" "+A+"
")}ft(e,i)},sort:function(e,t){var r,i,o,A,s;function l(){if(t.argString){var e=new n.StringStream(t.argString);if(e.eat("!")&&(r=!0),e.eol())return;if(!e.eatSpace())return"Invalid arguments";var a=e.match(/([dinuox]+)?\s*(\/.+\/)?\s*/);if(!a&&!e.eol())return"Invalid arguments";if(a[1]){i=-1!=a[1].indexOf("i"),o=-1!=a[1].indexOf("u");var l=-1!=a[1].indexOf("d")||-1!=a[1].indexOf("n")&&1,c=-1!=a[1].indexOf("x")&&1,u=-1!=a[1].indexOf("o")&&1;if(l+c+u>1)return"Invalid arguments";A=(l?"decimal":c&&"hex")||u&&"octal"}a[2]&&(s=new RegExp(a[2].substr(1,a[2].length-2),i?"i":""))}}var c=l();if(c)ft(e,c+": "+t.argString);else{var u=t.line||e.firstLine(),h=t.lineEnd||t.line||e.lastLine();if(u!=h){var d=a(u,0),f=a(h,be(e,h)),p=e.getRange(d,f).split("\n"),g=s||("decimal"==A?/(-?)([\d]+)/:"hex"==A?/(-?)(?:0x)?([0-9a-f]+)/i:"octal"==A?/([0-7]+)/:null),m="decimal"==A?10:"hex"==A?16:"octal"==A?8:null,v=[],y=[];if(A||s)for(var b=0;b");if(r){var h=0,d=function(){if(h=c)return void ft(e,"Invalid argument: "+t.argString.substring(o));for(var u=0;u<=c-l;u++){var h=String.fromCharCode(l+u);delete r.marks[h]}}else delete r.marks[a]}else ft(e,"Argument required")}},Ft=new Lt;function Ut(e,t,r,i,o,a,A,s,l){e.state.vim.exMode=!0;var c=!1,u=a.from();function h(){e.operation((function(){for(;!c;)d(),f();p()}))}function d(){var t=e.getRange(a.from(),a.to()).replace(A,s);a.replace(t)}function f(){for(;a.findNext()&&Et(a.from(),i,o);)if(r||!u||a.from().line!=u.line)return e.scrollIntoView(a.from(),30),e.setSelection(a.from(),a.to()),u=a.from(),void(c=!1);c=!0}function p(t){if(t&&t(),e.focus(),u){e.setCursor(u);var n=e.state.vim;n.exMode=!1,n.lastHPos=n.lastHSPos=u.ch}l&&l()}function g(t,r,i){switch(n.e_stop(t),n.keyName(t)){case"Y":d(),f();break;case"N":f();break;case"A":var o=l;l=void 0,e.operation(h),l=o;break;case"L":d();case"Q":case"Esc":case"Ctrl-C":case"Ctrl-[":p(i)}return c&&p(i),!0}if(f(),!c)return t?void mt(e,{prefix:"replace with "+s+" (y/n/a/q/l)",onKeyDown:g}):(h(),void(l&&l()));ft(e,"No matches for "+A.source)}function _t(e){var t=e.state.vim,r=N.macroModeState,i=N.registerController.getRegister("."),o=r.isPlaying,a=r.lastInsertModeChanges;o||(e.off("change",Pt),n.off(e.getInputField(),"keydown",jt)),!o&&t.insertModeRepeat>1&&(Wt(e,t,t.insertModeRepeat-1,!0),t.lastEditInputState.repeatOverride=t.insertModeRepeat),delete t.insertModeRepeat,t.insertMode=!1,e.setCursor(e.getCursor().line,e.getCursor().ch-1),e.setOption("keyMap","vim"),e.setOption("disableInput",!0),e.toggleOverwrite(!1),i.setText(a.changes.join("")),n.signal(e,"vim-mode-change",{mode:"normal"}),r.isRecording&&Nt(r)}function Mt(e){r.unshift(e)}function Ht(e,t,n,r,i){var o={keys:e,type:t};for(var a in o[t]=n,o[t+"Args"]=r,i)o[a]=i[a];Mt(o)}function Dt(e,t,r,i){var o=N.registerController.getRegister(i);if(":"==i)return o.keyBuffer[0]&&Ft.processCommand(e,o.keyBuffer[0]),void(r.isPlaying=!1);var a=o.keyBuffer,A=0;r.isPlaying=!0,r.replaySearchQueries=o.searchQueries.slice(0);for(var s=0;s|<\w+>|./.exec(u))[0],u=u.substring(l.index+c.length),n.Vim.handleKey(e,c,"macro"),t.insertMode){var h=o.insertModeChanges[A++].changes;N.macroModeState.lastInsertModeChanges.changes=h,zt(e,h,1),_t(e)}r.isPlaying=!1}function Ot(e,t){if(!e.isPlaying){var n=e.latestRegister,r=N.registerController.getRegister(n);r&&r.pushText(t)}}function Nt(e){if(!e.isPlaying){var t=e.latestRegister,n=N.registerController.getRegister(t);n&&n.pushInsertModeChanges&&n.pushInsertModeChanges(e.lastInsertModeChanges)}}function Rt(e,t){if(!e.isPlaying){var n=e.latestRegister,r=N.registerController.getRegister(n);r&&r.pushSearchQuery&&r.pushSearchQuery(t)}}function Pt(e,t){var n=N.macroModeState,r=n.lastInsertModeChanges;if(!n.isPlaying)for(;t;){if(r.expectCursorActivityForChange=!0,r.ignoreCount>1)r.ignoreCount--;else if("+input"==t.origin||"paste"==t.origin||void 0===t.origin){var i=e.listSelections().length;i>1&&(r.ignoreCount=i);var o=t.text.join("\n");r.maybeReset&&(r.changes=[],r.maybeReset=!1),o&&(e.state.overwrite&&!/\n/.test(o)?r.changes.push([o]):r.changes.push(o))}t=t.next}}function $t(e){var t=e.state.vim;if(t.insertMode){var n=N.macroModeState;if(n.isPlaying)return;var r=n.lastInsertModeChanges;r.expectCursorActivityForChange?r.expectCursorActivityForChange=!1:r.maybeReset=!0}else e.curOp.isVimOp||Vt(e,t);t.visualMode&&Kt(e)}function Kt(e){var t="cm-animate-fat-cursor",n=e.state.vim,r=Ae(e,fe(n.sel.head)),i=le(r,0,1);if(Xt(n),r.ch==e.getLine(r.line).length){var o=document.createElement("span");o.textContent=" ",o.className=t,n.fakeCursorBookmark=e.setBookmark(r,{widget:o})}else n.fakeCursor=e.markText(r,i,{className:t})}function Xt(e){e.fakeCursor&&(e.fakeCursor.clear(),e.fakeCursor=null),e.fakeCursorBookmark&&(e.fakeCursorBookmark.clear(),e.fakeCursorBookmark=null)}function Vt(e,t){var r=e.getCursor("anchor"),i=e.getCursor("head");if(t.visualMode&&!e.somethingSelected()?Ue(e,!1):t.visualMode||t.insertMode||!e.somethingSelected()||(t.visualMode=!0,t.visualLine=!1,n.signal(e,"vim-mode-change",{mode:"visual"})),t.visualMode){var o=ge(i,r)?0:-1,a=ge(i,r)?-1:0;i=le(i,0,o),r=le(r,0,a),t.sel={anchor:r,head:i},ze(e,t,"<",me(i,r)),ze(e,t,">",ve(i,r))}else t.insertMode||(t.lastHPos=e.getCursor().ch)}function Gt(e){this.keyName=e}function jt(e){var t=N.macroModeState.lastInsertModeChanges,r=n.keyName(e);function i(){return t.maybeReset&&(t.changes=[],t.maybeReset=!1),t.changes.push(new Gt(r)),!0}r&&(-1==r.indexOf("Delete")&&-1==r.indexOf("Backspace")||n.lookupKey(r,"vim-insert",i))}function Wt(e,t,n,r){var i=N.macroModeState;i.isPlaying=!0;var o=!!t.lastEditActionCommand,a=t.inputState;function A(){o?Z.processAction(e,t,t.lastEditActionCommand):Z.evalInput(e,t)}function s(n){if(i.lastInsertModeChanges.changes.length>0){n=t.lastEditActionCommand?n:1;var r=i.lastInsertModeChanges;zt(e,r.changes,n)}}if(t.inputState=t.lastEditInputState,o&&t.lastEditActionCommand.interlaceInsertRepeat)for(var l=0;la?t.charCoords(e,"local")[n?"top":"bottom"]:t.heightAtLine(s,"local")+(n?0:s.height)}var c=t.lastLine();if(t.display.barWidth)for(var u,h=0;hc)){for(var f=u||l(d.from,!0)*n,p=l(d.to,!1)*n;hc)&&!((u=l(i[h+1].from,!0)*n)>p+.9);)p=l((d=i[++h]).to,!1)*n;if(p!=f){var g=Math.max(p-f,3),m=r.appendChild(document.createElement("div"));m.style.cssText="position: absolute; right: 0px; width: "+Math.max(t.display.barWidth-1,2)+"px; top: "+(f+this.buttonHeight)+"px; height: "+g+"px",m.className=this.options.className,d.id&&m.setAttribute("annotation-id",d.id)}}}this.div.textContent="",this.div.appendChild(r)},t.prototype.clear=function(){this.cm.off("refresh",this.resizeHandler),this.cm.off("markerAdded",this.resizeHandler),this.cm.off("markerCleared",this.resizeHandler),this.changeHandler&&this.cm.off("changes",this.changeHandler),this.div.parentNode.removeChild(this.div)}}(ah)}));r((function(e,t){!function(e){function t(e,t,n,r){this.cm=e,this.options=r;var i={listenForChanges:!1};for(var o in r)i[o]=r[o];i.className||(i.className="CodeMirror-search-match"),this.annotation=e.annotateScrollbar(i),this.query=t,this.caseFold=n,this.gap={from:e.firstLine(),to:e.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var a=this;e.on("change",this.changeHandler=function(e,t){a.onChange(t)})}e.defineExtension("showMatchesOnScrollbar",(function(e,n,r){return"string"==typeof r&&(r={className:r}),r||(r={}),new t(this,e,n,r)}));var n=1e3;function r(e,t,n){return e<=t?e:Math.max(t,e+n)}t.prototype.findMatches=function(){if(this.gap){for(var t=0;t=this.gap.to);t++)o.to.line>=this.gap.from&&this.matches.splice(t--,1);for(var r=this.cm.getSearchCursor(this.query,e.Pos(this.gap.from,0),{caseFold:this.caseFold,multiline:this.options.multiline}),i=this.options&&this.options.maxMatches||n;r.findNext();){var o;if((o={from:r.from(),to:r.to()}).from.line>=this.gap.to)break;if(this.matches.splice(t++,0,o),this.matches.length>i)break}this.gap=null}},t.prototype.onChange=function(t){var n=t.from.line,i=e.changeEnd(t).line,o=i-t.to.line;if(this.gap?(this.gap.from=Math.min(r(this.gap.from,n,o),t.from.line),this.gap.to=Math.max(r(this.gap.to,n,o),t.from.line)):this.gap={from:t.from.line,to:i+1},o)for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=Array(t);n>>0||($h(Ph,n)?16:10))}:Oh;Fn({global:!0,forced:parseInt!==Kh},{parseInt:Kh});var Xh=R.parseInt;Fn({target:"String",proto:!0},{repeat:Xc});var Vh=_i("String","repeat"),Gh=String.prototype,jh=function(e){var t=e.repeat;return"string"==typeof e||e===Gh||te(Gh,e)&&t===Gh.repeat?Vh:t},Wh={run:function(e){var t,n="
".concat(e,"
");this.tagParser.formatEngine=this.mdFormatEngine,n=n.replace(//g,"");var r=this.htmlParser.parseHtml(n);return r=this.paragraphStyleClear(r),Lu(t=this.$dealHtml(r).replace(/\n{3,}/g,"\n\n\n").replace(/>/g,">").replace(/</g,"<").replace(/&/g,"&")).call(t,"\n")},$dealHtml:function(e){for(var t="",n=0;n0&&(t+=r.content.replace(/ /g," ").replace(/[\n]+/g,"\n").replace(/^[ \t\n]+\n\s*$/,"\n"))}return t},$handleTagObject:function(e,t){var n,r=t;e.attrs.class&&/(ch-icon-square|ch-icon-check)/.test(e.attrs.class)?_h(n=e.attrs.class).call(n,"ch-icon-check")>=0?r+="[x]":r+="[ ]":e.attrs.class&&/cherry-code-preview-lang-select/.test(e.attrs.class)?r+="":r+=this.$dealTag(e);return r},$dealTag:function(e){var t=this,n="";return e.children&&(n=t.$dealHtml(e.children)),/(style|meta|link|script)/.test(e.name)?"":"code"===e.name||"pre"===e.name?t.tagParser.codeParser(e,t.$dealCodeTag(e),"pre"===e.name):"function"==typeof t.tagParser["".concat(e.name,"Parser")]?t.tagParser["".concat(e.name,"Parser")](e,n):n},$dealCodeTag:function(e){if(e.children.length<0)return"";for(var t="",n=0;n])+>/g,empty:Mh?Mh(null):{},parseTags:function(e){var t,n=this,r=0,i={type:"tag",name:"",voidElement:!1,attrs:{},children:[]};return e.replace(this.attrRE,(function(o){r%2?t=o:0===r?((n.lookup[o]||"/"===e.charAt(e.length-2))&&(i.voidElement=!0),i.name=o):i.attrs[t]=o.replace(/['"]/g,""),r+=1})),i},parseHtml:function(e,t){var n=this,r=t||{};r.components||(r.components=this.empty);var i,o=[],a=-1,A=[],s={},l=!1;return e.replace(this.tagRE,(function(t,c){if(l){if(t!==""))return;l=!1}var u,h="/"!==t.charAt(1),d=c+t.length,f=e.charAt(d);h&&(a+=1,"tag"===(i=n.parseTags(t)).type&&r.components[i.name]&&(i.type="component",l=!0),i.voidElement||l||!f||"<"===f||i.children.push({type:"text",content:Hh(e).call(e,d,_h(e).call(e,"<",d))}),s[i.tagName]=i,0===a&&o.push(i),(u=A[a-1])&&u.children.push(i),A[a]=i),h&&!i.voidElement||(a-=1,!l&&"<"!==f&&f&&A[a]&&A[a].children.push({type:"text",content:Hh(e).call(e,d,_h(e).call(e,"<",d))}))})),o}},tagParser:{formatEngine:{},pParser:function(e,t){var n=t;return/\n$/.test(n)?n:"".concat(n,"\n")},divParser:function(e,t){var n=t;return/\n$/.test(n)?n:"".concat(n,"\n")},spanParser:function(e,t){var n=t.replace(/\t/g,"").replace(/\n/g," ");return e.attrs&&e.attrs.style,n},codeParser:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.formatEngine.convertCode(t,n)},brParser:function(e,t){return this.formatEngine.convertBr(t,"\n")},imgParser:function(e,t){return e.attrs&&"tapd-graph"===e.attrs["data-control"]?this.formatEngine.convertGraph(e.attrs.title,e.attrs.src,e.attrs["data-origin-xml"],e):e.attrs&&e.attrs.src?this.formatEngine.convertImg(e.attrs.alt,e.attrs.src):void 0},videoParser:function(e,t){if(e.attrs&&e.attrs.src)return this.formatEngine.convertVideo(t,e.attrs.src,e.attrs.poster,e.attrs.title)},bParser:function(e,t){for(var n=t.split("\n"),r=[],i=0;i0?r:""}return""},bgColorAttrParser:function(e){var t=e.match(/background-color:\s*([^;]+?);/);if(t&&t[1]){var n="";if(/rgb\([ 0-9]+,[ 0-9]+,[ 0-9]+\)/.test(t[1])){var r,i,o,a,A,s=t[1].match(/rgb\(([ 0-9]+),([ 0-9]+),([ 0-9]+)\)/);if(s[1]&&s[2]&&s[3])s[1]=Xh(Lu(r=s[1]).call(r),10),s[2]=Xh(Lu(i=s[2]).call(i),10),s[3]=Xh(Lu(o=s[3]).call(o),10),n=oA(a=oA(A="#".concat(s[1].toString(16))).call(A,s[2].toString(16))).call(a,s[3].toString(16))}else{n=Uh(t,2)[1]}return n}return""}}},mdFormatEngine:{convertColor:function(e,t){var n,r=Lu(e).call(e);return!r||/\n/.test(r)?r:t?oA(n="!!".concat(t," ")).call(n,r,"!!"):r},convertSize:function(e,t){var n,r=Lu(e).call(e);return!r||/\n/.test(r)?r:t?oA(n="!".concat(t," ")).call(n,r,"!"):r},convertBgColor:function(e,t){var n,r=Lu(e).call(e);return!r||/\n/.test(r)?r:t?oA(n="!!!".concat(t," ")).call(n,r,"!!!"):r},convertBr:function(e,t){return e+t},convertCode:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return/\n/.test(e)||t?"```\n".concat(e.replace(/\n+$/,""),"\n```"):"`".concat(e.replace(/`/g,"\\`"),"`")},convertB:function(e){return/^\s*$/.test(e)?"":"**".concat(e,"**")},convertI:function(e){return/^\s*$/.test(e)?"":"*".concat(e,"*")},convertU:function(e){return/^\s*$/.test(e)?"":" /".concat(e,"/ ")},convertImg:function(e,t){var n,r=e&&e.length>0?e:"image";return oA(n="![".concat(r,"](")).call(n,t,")")},convertGraph:function(e,t,n,r){var i,o,a,A=e&&e.length>0?e:"graph",s="";if(r)try{var l,c=r.attrs;UA(l=TA(c)).call(l,(function(e){var t;Object.prototype.hasOwnProperty.call(c,e)&&(_h(e).call(e,"data-graph-")>=0&&c[e]&&(s+=oA(t=" ".concat(e,"=")).call(t,c[e])))}))}catch(e){}return oA(i=oA(o=oA(a="![".concat(A,"](")).call(a,t,"){data-control=tapd-graph data-origin-xml=")).call(o,n)).call(i,s,"}")},convertVideo:function(e,t,n,r){var i,o,a=r&&r.length>0?r:"video";return oA(i=oA(o="!video[".concat(a,"](")).call(o,t,"){poster=")).call(i,n,"}")},convertA:function(e,t){var n;if(e===t)return"".concat(e," ");var r=Lu(e).call(e);return r?oA(n="[".concat(r,"](")).call(n,t,")"):r},convertSup:function(e){return"^".concat(Lu(e).call(e).replace(/\^/g,"\\^"),"^")},convertSub:function(e){return"^^".concat(Lu(e).call(e).replace(/\^\^/g,"\\^\\^"),"^^")},convertTd:function(e){return"~|".concat(Lu(e).call(e).replace(/\n{1,}/g,"
").replace(/ /g,"~s~")," ~|")},convertTh:function(e){return/^\s*$/.test(e)?"":"~|".concat(Lu(e).call(e).replace(/\n{1,}/g,"
")," ~|")},convertTr:function(e){return/^\s*$/.test(e)?"":"".concat(Lu(e).call(e).replace(/\n/g,""),"\n")},convertThead:function(e){var t,n="".concat(e.replace(/[ \t]+/g,"").replace(/~\|~\|/g,"~|").replace(/~\|/g,"|"),"\n"),r=n.match(/\|/g).length-1;return oA(t="".concat(n,"|")).call(t,jh(":-:|").call(":-:|",r),"\n")},convertTable:function(e){var t="\n".concat(e.replace(/[ \t]+/g,"").replace(/~\|~\|/g,"~|").replace(/~\|/g,"|"),"\n").replace(/\n{2,}/g,"\n").replace(/\n[ \t]+\n/g,"\n").replace(/~s~/g," ");if(!/\|:-:\|/.test(t)){var n=t.match(/^\n[^\n]+\n/);if(n){var r=n[0].match(/\|/g);if(r){var i,o,a=r.length-1;t=oA(i=oA(o="\n|".concat(jh(" |").call(" |",a),"\n|")).call(o,jh(":-:|").call(":-:|",a))).call(i,t)}}}return t},convertLi:function(e){return"- ".concat(e.replace(/^\n/,"").replace(/\n+$/,"").replace(/\n+/g,"\n\t"),"\n")},convertUl:function(e){return"".concat(e,"\n")},convertOl:function(e){for(var t=e.split("\n"),n=1,r=0;r".concat(Lu(e).call(e),"\n\n")},convertAddress:function(e){return">".concat(Lu(e).call(e),"\n\n")}},paragraphStyleClear:function(e){for(var t=0;t1)for(var a=0;a=0?n:n>=0?n+r:Math.min(n,r)}function ad(e){var t=e.previousElementSibling,n=e.nextElementSibling;if(!t){var r=getComputedStyle(e),i=e.getBoundingClientRect();if(!n)return{height:Math.max(id(r.marginTop)+i.height+id(r.marginBottom),0),offsetTop:e.offsetTop-Math.abs(id(r.marginTop))};var o=getComputedStyle(n),a=od(r.marginBottom,o.marginTop);return{height:Math.max(id(r.marginTop)+i.height+a,0),offsetTop:e.offsetTop-Math.abs(id(r.marginTop))}}var A,s,l,c,u=getComputedStyle(e),h=e.getBoundingClientRect(),d=getComputedStyle(t),f=(A=d.marginBottom,s=u.marginTop,l=id(A),(c=id(s))<0?0:l>=0?Math.max(c-l,0):c);if(!n)return{height:Math.max(f+h.height+id(u.marginBottom),0),offsetTop:e.offsetTop-Math.abs(id(u.marginTop))};var p=getComputedStyle(n),g=od(u.marginBottom,p.marginTop);return{height:Math.max(f+h.height+g,0),offsetTop:e.offsetTop-Math.abs(f)}}function Ad(e,t){if(!e||!e.tagName)return"";var n,r,i=document.createElement("div");return i.appendChild(e.cloneNode(!1)),n=i.innerHTML,t&&(r=_h(n).call(n,">")+1,n=n.substring(0,r)+e.innerHTML+n.substring(r)),i=null,n}function sd(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=document.createElement(e);(i.className=n,void 0!==r)&&UA(t=TA(r)).call(t,(function(e){var t=r[e];if(oh(e).call(e,"data-")){var n=e.replace(/^data-/,"");i.dataset[n]=t}else i.setAttribute(e,t)}));return i}var ld={showSwitchBtnAfterPasteHtml:function(e,t,n,r,i){Lu(r).call(r)!==Lu(i).call(i)&&(this.init(e,t,n,r,i),this.setSelection(),this.bindListener(),this.initBubble(),this.showBubble(),"text"===this.getTypeFromLocalStorage()&&this.switchTextClick())},init:function(e,t,n,r,i){this.$cherry=e,this.html=r,this.md=i,this.codemirror=n,this.currentCursor=t,this.locale=e.locale},getTypeFromLocalStorage:function(){return"undefined"==typeof localStorage?"md":localStorage.getItem("cherry-paste-type")||"md"},setTypeToLocalStorage:function(e){"undefined"!=typeof localStorage&&localStorage.setItem("cherry-paste-type",e)},setSelection:function(){var e=this.codemirror.getCursor(),t=Jh({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),e)),n=this.currentCursor;this.codemirror.setSelection(n,t)},bindListener:function(){var e=this;if(this.hasBindListener)return!0;this.hasBindListener=!0,this.codemirror.on("beforeSelectionChange",(function(t,n){e.hideBubble()})),this.codemirror.on("beforeChange",(function(t,n){e.hideBubble()})),this.codemirror.on("scroll",(function(t){e.updatePositionWhenScroll()}))},isHidden:function(){return"none"===this.bubbleDom.style.display},toggleBubbleDisplay:function(){this.isHidden()?this.bubbleDom.style.display="":this.bubbleDom.style.display="none"},hideBubble:function(){if(this.noHide)return!0;this.isHidden()||this.toggleBubbleDisplay()},updatePositionWhenScroll:function(){if(!this.isHidden()){var e=this.bubbleDom.dataset.scrollTop-this.getScrollTop();this.bubbleDom.style.marginTop="".concat(e,"px")}},getScrollTop:function(){return this.codemirror.getScrollInfo().top},showBubble:function(){var e=this.getLastSelectedPosition().top;this.isHidden()&&(this.toggleBubbleDisplay(),this.bubbleDom.style.marginTop="0",this.bubbleDom.dataset.scrollTop=this.getScrollTop()),e>this.codemirror.getWrapperElement().clientHeight-this.bubbleDom.getBoundingClientRect().height-15?(this.bubbleDom.style.top="",this.bubbleDom.style.bottom="".concat(15,"px")):(this.bubbleDom.style.top="".concat(e,"px"),this.bubbleDom.style.bottom="")},initBubble:function(){var e,t;if(this.bubbleDom)return this.bubbleDom.setAttribute("data-type","md"),!0;var n=sd("div","cherry-bubble cherry-bubble--centered cherry-switch-paste");n.style.display="none";var r=sd("span","cherry-toolbar-button cherry-text-btn",{title:this.locale.pastePlain});r.innerText="TEXT";var i=sd("span","cherry-toolbar-button cherry-md-btn",{title:this.locale.pasteMarkdown});i.innerText="Markdown";var o=sd("span","switch-btn--bg");this.bubbleDom=n,this.switchText=r,this.switchMd=i,this.switchBG=o,this.bubbleDom.appendChild(r),this.bubbleDom.appendChild(i),this.bubbleDom.appendChild(o),this.bubbleDom.setAttribute("data-type","md"),this.codemirror.getWrapperElement().appendChild(this.bubbleDom),this.switchMd.addEventListener("click",aA(e=this.switchMDClick).call(e,this)),this.switchText.addEventListener("click",aA(t=this.switchTextClick).call(t,this))},switchMDClick:function(e){this.setTypeToLocalStorage("md"),"md"!==this.bubbleDom.getAttribute("data-type")&&(this.noHide=!0,this.bubbleDom.setAttribute("data-type","md"),this.codemirror.doc.replaceSelection(this.md),this.setSelection(),this.showBubble(),this.noHide=!1)},switchTextClick:function(e){this.setTypeToLocalStorage("text"),"text"!==this.bubbleDom.getAttribute("data-type")&&(this.noHide=!0,this.bubbleDom.setAttribute("data-type","text"),this.codemirror.doc.replaceSelection(this.html),this.setSelection(),this.showBubble(),this.noHide=!1)},getLastSelectedPosition:function(){var e=zu(this.codemirror.getWrapperElement().getElementsByClassName("CodeMirror-selected")),t=0,n=0;if(e.length<=0)return this.hideBubble(),{};for(var r=0;rn&&o>=t&&(n=a),o>t&&(t=o)}return{top:n}}},cd=ld;function ud(e,t,n,r){return e.addEventListener?(e.addEventListener(t,n,r),!0):e.attachEvent?e.attachEvent("on".concat(t),n):void(e["on".concat(t)]=n)}function hd(e,t,n,r){if(e.removeEventListener)e.removeEventListener(t,n,r);else{if(e.detachEvent)return e.detachEvent("on".concat(t),n);e["on".concat(t)]=null}}var dd=new Proxy({},{get:function(e,t,n){return function(){}}}),fd=ia,pd=ch,gd=Ah;function md(e,t){var n=void 0!==fd&&pd(e)||e["@@iterator"];if(!n){if(gd(e)||(n=function(e,t){if(e){var n;if("string"==typeof e)return vd(e,t);var r=Hh(n={}.toString.call(e)).call(n,8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?zu(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vd(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,A=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){A=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(A)throw o}}}}function vd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:"image",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"*",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=document.createElement("input"),o=e.$cherry.options.multipleFileSelection||!1;i.type="file",i.id="fileUpload",i.value="",i.style.display="none",i.accept=n,i.multiple=o,i.addEventListener("change",(function(n){var i=n.target.files;e.$cherry.options.callback.fileUploadMulti(i,(function(n){if(0!==n.length){if(r)return r(n);var o,a="",A=md(i);try{for(A.s();!(o=A.n()).done;){var s=o.value,l=s.url;a+="".concat(wd(t,s,l),"/n")}}catch(e){A.e(e)}finally{A.f()}e.editor.doc.replaceSelection(a)}}))})),i.click()}function bd(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"image",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"*",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=document.createElement("input");i.type="file",i.id="fileUpload",i.value="",i.style.display="none",i.accept=n,i.addEventListener("change",(function(n){var i=Uh(n.target.files,1)[0];e.$cherry.options.callback.fileUpload(i,(function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof n&&n){if(r)return r(i.name,n,o);var a;a=wd(t,i,n),e.editor.doc.replaceSelection(a)}}))})),i.click()}var wd=function(e,t,n){var r,i,o,a;return"image"===e?oA(i="![".concat(t.name,"](")).call(i,n,")"):"video"===e?oA(o="!video[".concat(t.name,"](")).call(o,n,")"):"audio"===e?oA(a="!audio[".concat(t.name,"](")).call(a,n,")"):oA(r="[".concat(t.name,"](")).call(r,n,")")};function Bd(e){var t=[];return null!=e&&e.isBorder&&t.push("#B"),null!=e&&e.isShadow&&t.push("#S"),null!=e&&e.isRadius&&t.push("#R"),null!=e&&e.width&&t.push("#".concat(e.width)),null!=e&&e.height&&(e.width||t.push("#auto"),t.push("#".concat(e.height))),t.join(" ")}function Cd(e,t,n){var r,i,o,a,A,s,l,c=null!==(r=null==t?void 0:t.name)&&void 0!==r?r:n.name,u="",h="";/video/i.test(n.type)&&(u="!video",h=null!=t&&t.poster?"{poster=".concat(t.poster,"}"):""),/audio/i.test(n.type)&&(u="!audio"),/image/i.test(n.type)&&(u="!");var d=u?Bd(t):"",f=t.before,p=void 0===f?"":f,g=t.after,m=void 0===g?"":g;return oA(i=oA(o=oA(a=oA(A=oA(s=oA(l="".concat(p)).call(l,u,"[")).call(s,c)).call(A,d,"](")).call(a,e,")")).call(o,h)).call(i,m)}function kd(e,t){var n=TA(e);if(Qi){var r=Qi(e);t&&(r=Di(r).call(r,(function(t){return $i(e,t).enumerable}))),n.push.apply(n,r)}return n}function Td(e){for(var t=1;t\\x00-\\x1f"\\(\\)]*)?'),Md=new RegExp("(?:\\/\\/)".concat(_d.source)),Hd=new RegExp("^".concat(_d.source,"$")),Dd=new RegExp("^".concat(Md.source,"$")),Od=/^([ \t]*)([*+-][ ](\[[ x]\])?|[0-9一二三四五六七八九十零]+\.|[a-z]\.|\b(?:M{0,3}(?:CM|CD|D?C{0,3})(?:XC|XL|L?X{0,3})(?:IX|IV|V?I{0,3}))\b\.)([^\r\n]*)/;function Nd(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n={begin:"(?:^|\\n)(\\n*)",content:["(\\h*\\|[^\\n]+\\|?\\h*)","\\n","(?:(?:\\h*\\|\\h*:?[-]{1,}:?\\h*)+\\|?\\h*)","((\\n\\h*\\|[^\\n]+\\|?\\h*)*)"].join(""),end:"(?=$|\\n)"};n.reg=Ed(n,"g",!0);var r={begin:"(?:^|\\n)(\\n*)",content:["(\\|?[^\\n|]+(\\|[^\\n|]+)+\\|?)","\\n","(?:\\|?\\h*:?[-]{1,}:?[\\h]*(?:\\|[\\h]*:?[-]{1,}:?\\h*)+\\|?)","((\\n\\|?([^\\n|]+(\\|[^\\n|]*)+)\\|?)*)"].join(""),end:"(?=$|\\n)"};return r.reg=Ed(r,"g",!0),!1===t?{strict:n,loose:r}:Ed({begin:"",content:oA(e="(?:".concat(n.begin+n.content+n.end,"|")).call(e,r.begin+r.content+r.end,")"),end:""},"g",!0)}function Rd(){var e={begin:/(?:^|\n)(\n*((?:>[\t ]*)*)(?:[^\S\n]*))(`{3,})([^`]*?)\n/,content:/([\w\W]*?)/,end:/[^\S\n]*\3[ \t]*(?=$|\n+)/,reg:new RegExp("")};return e.reg=new RegExp(e.begin.source+e.content.source+e.end.source,"g"),Td(Td({},e),{},{begin:e.begin.source,content:e.content.source,end:e.end.source})}function Pd(e,t){var n=e||"Item 1\n Item 1.1\nItem 2";n=n.replace(/^\n+/,"").replace(/\n+$/,"");var r="1.";switch(t){case"ol":r="1.";break;case"ul":r="-";break;case"checklist":r="- [x]"}if(n=n.replace(/^(\s*)([0-9a-zA-Z]+\.|- \[x\]|- \[ \]|-) /gm,"$1"),"1."===r){var i={};n=n.replace(/^(\s*)(\S[\s\S]*?)$/gm,(function(e,t,n){var r,o,a,A=(null===(r=t.match(/[ \t]/g))||void 0===r?void 0:r.length)||0;return i[A]=i[A]?i[A]+1:1,oA(o=oA(a="".concat(t)).call(a,i[A],". ")).call(o,n)}))}else n=n.replace(/^(\s*)(\S[\s\S]*?)$/gm,"$1".concat(r," $2"));return n}function $d(){var e={begin:/(?:^|\n)(\n*(?:[^\S\n]*)):::([^:][^\n]+?)\s*\n/,content:/([\w\W]*?)/,end:/\n[ \t]*:::[ \t]*(?=$|\n+)/};return e.reg=new RegExp(e.begin.source+e.content.source+e.end.source,"g"),e}function Kd(){var e={begin:/(?:^|\n)(\n*(?:[^\S\n]*))\+\+\+([-]{0,1})\s+([^\n]+)\n/,content:/([\w\W]+?)/,end:/\n[ \t]*\+\+\+[ \t]*(?=$|\n+)/};return e.reg=new RegExp(e.begin.source+e.content.source+e.end.source,"g"),e}var Xd=/(\[[^\n]*?\]\(data:image\/[a-z]{1,10};base64,)([^)]+)\)/g,Vd=/(data:image\/[a-z]{1,10};base64,)([0-9a-zA-Z+/]+)/g,Gd=/([^\n]{100})([^\n|`\s]{5900,})/g,jd=/(!\[[^\n]*?\]\([^)]+\)\{[^}]* data-xml=)([^}]+)\}/g,Wd=/(!\[[^\n]*?\]\(data:image\/[a-z]{1,10};base64,[^)]+\)\{data-type=drawio data-xml=[^}]+\})/g,zd=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(Rd().reg,(function(e){return e.replace(/^.*$/gm,"/n")})).replace(/(`+)(.+?(?:\n.+?)*?)\1/g,(function(e){return e.replace(/[![\]()]/g,".")}))};function qd(e){(function(e){var t=/^(\s*)([I一二三四五六七八九十]+)\.(\s+)/,n=/^(\s*)([I一二三四五六七八九十]+)\.(\s+)$/;if(e.getOption("disableInput"))return!1;for(var r=e.listSelections(),i=[],o=0;o0&&void 0!==arguments[0])||arguments[0]?n.editor.setOption("keyMap","default"):n.editor.setOption("keyMap",n.options.keyMap)})),nA(this,"dealSpecialWords",(function(){"hide"!==n.$cherry.status.editor&&(n.formatBigData2Mark(Vd,"cm-url base64"),n.formatBigData2Mark(jd,"cm-url drawio"),n.formatBigData2Mark(Gd,"cm-url long-text"),n.formatFullWidthMark())})),nA(this,"formatBigData2Mark",(function(e,t){for(var r=n.editor,i=r.getSearchCursor(e),o=i.findNext();!1!==o;o=i.findNext()){var a,A,s=i.from();if(s){var l=null!==(a=o[2])&&void 0!==a?a:"",c=s.ch+(null===(A=o[1])||void 0===A?void 0:A.length),u=c+l.length,h=s.line,d={line:h,ch:c},f={line:h,ch:u};if(!(r.findMarks(d,f).length>0)){var p=sd("span","cm-string ".concat(t),{title:l});p.textContent=l,r.markText(d,f,{replacedWith:p,atomic:!0})}}}})),nA(this,"onKeyup",(function(e,t){var r=t.getCursor().line;n.previewer.highlightLine(r+1)})),nA(this,"onScroll",(function(e){if(n.$cherry.$event.emit("cleanAllSubMenus"),n.disableScrollListener)n.disableScrollListener=!1;else{var t=e.getScrollerElement();if(t.scrollTop<=0)n.previewer.scrollToLineNum(0);else if(t.scrollTop+t.clientHeight>=t.scrollHeight-20)n.previewer.scrollToLineNum(null);else{var r=e.getScrollInfo().top,i=e.lineAtHeight(r,"local"),o=e.charCoords({line:i,ch:0},"local"),a=e.getLineHandle(i).height,A=100*(r-(o.bottom-a))/a/100;n.previewer.scrollToLineNum(i+1,A)}}})),nA(this,"onMouseDown",(function(e,t){n.$cherry.$event.emit("cleanAllSubMenus");var r=e.getCursor().line,i=Math.abs(t.y-e.getWrapperElement().getBoundingClientRect().y);n.previewer.scrollToLineNumWithOffset(r+1,i),n.toHalfWidth(e,t)})),nA(this,"onCursorActivity",(function(){n.refreshWritingStatus()})),this.options={id:"code",name:"code",autoSave2Textarea:!1,editorDom:document.createElement("div"),wrapperDom:null,autoScrollByCursor:!0,convertWhenPaste:!0,keyMap:"sublime",showFullWidthMark:!0,showSuggestList:!0,codemirror:{lineNumbers:!1,cursorHeight:.85,indentUnit:4,tabSize:4,mode:{name:"yaml-frontmatter",base:{name:"gfm",gitHubSpice:!1}},lineWrapping:!0,indentWithTabs:!0,autofocus:!0,theme:"default",autoCloseTags:!0,extraKeys:{Enter:qd},matchTags:{bothTags:!0},placeholder:"",keyMap:"sublime"},toolbars:{},onKeydown:function(){},onChange:function(){},onFocus:function(){},onBlur:function(){},onPaste:this.onPaste,onScroll:this.onScroll},this.animation={},this.selectAll=!1;var r=t.codemirror,i=$c(t,Jd);r&&CA(this.options.codemirror,r),CA(this.options,i),this.options.codemirror.keyMap=this.options.keyMap,this.$cherry=this.options.$cherry,this.instanceId=this.$cherry.getInstanceId()}),[{key:"formatFullWidthMark",value:function(){var e;if(this.options.showFullWidthMark){var t=this.editor,n=/[·¥、:“”【】()《》]/,r=t.getSearchCursor(n),i=r.findNext();for(UA(e=t.getAllMarks()).call(e,(function(e){if("cm-fullWidth"===e.className){var r=JSON.parse(hu(vu(e).call(e))),i=t.getRange(r.from,r.to);n.test(i)||e.clear()}}));!1!==i;i=r.findNext()){var o,a=r.from();if(a){var A={line:a.line,ch:a.ch},s={line:a.line,ch:a.ch+1};0===Di(o=t.findMarks(A,s)).call(o,(function(e){return"cm-fullWidth"===e.className})).length&&t.markText(A,s,{className:"cm-fullWidth",title:"按住Ctrl/Cmd点击切换成半角(Hold down Ctrl/Cmd and click to switch to half-width)"})}}}}},{key:"toHalfWidth",value:function(e,t){var n=t.target;if(n instanceof HTMLElement&&n.classList.contains("cm-fullWidth")&&(t.ctrlKey||t.metaKey)&&1===t.buttons){var r=n.getBoundingClientRect(),i=e.coordsChar({left:r.left,top:r.top}),o={line:i.line,ch:i.ch+1};e.setSelection(i,o),e.replaceSelection(n.innerText.replace("·","`").replace("¥","$").replace("、","/").replace(":",":").replace("“",'"').replace("”",'"').replace("【","[").replace("】","]").replace("(","(").replace(")",")").replace("《","<").replace("》",">"))}}},{key:"onPaste",value:function(e,t){var n=e.clipboardData;n?this.handlePaste(e,n,t):(n=window.clipboardData,this.handlePaste(e,n,t))}},{key:"handlePaste",value:function(e,t,n){var r,i,o=this,a=this.$cherry.options.callback.onPaste(t,this.$cherry);if(!1!==a&&"string"==typeof a)return e.preventDefault(),void n.replaceSelection(a);var A=t.getData("Text/Html"),s=t.items;A=A.replace(//,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^$/i;var r={"included-cdata":{pattern://i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism),Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},function(e){var t={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,r="(?:[^\\\\-]|"+n.source+")",i=RegExp(r+"-"+r),o={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:i,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":t,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":t,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":o}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]||&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript,function(e){var t={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},n=e.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})$[\s\S]*?^\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:t,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:t.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:t,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function r(e){for(var t={},r=0,i=(e=e.split(" ")).length;r>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),r||"")}function r(e,t){for(var n=0;n>/g,(function(){return"(?:"+e+")"}));return e.replace(/<>/g,"[^\\s\\S]")}var i="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",o="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",A="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function s(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var l=s(o),c=RegExp(s(i+" "+o+" "+a+" "+A)),u=s(o+" "+a+" "+A),h=s(i+" "+o+" "+A),d=r(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),f=r(/\((?:[^()]|<>)*\)/.source,2),p=/@?\b[A-Za-z_]\w*\b/.source,g=t(/<<0>>(?:\s*<<1>>)?/.source,[p,d]),m=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[u,g]),v=/\[\s*(?:,\s*)*\]/.source,y=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,v]),b=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[d,f,v]),w=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[b]),B=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,m,v]),C={keyword:c,punctuation:/[<>()?,.:[\]]/},k=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,T=/"(?:\\.|[^\\"\r\n])*"/.source,E=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[E]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[T]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[p,B]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[p]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,g]),lookbehind:!0,inside:C},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:C},{pattern:n(/(\bwhere\s+)<<0>>/.source,[p]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[y]),lookbehind:!0,inside:C},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[B,h,p]),inside:C}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[p]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[p]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[f]),lookbehind:!0,alias:"class-name",inside:C},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[B,m]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[B]),lookbehind:!0,inside:C,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[p,d]),inside:{function:n(/^<<0>>/.source,[p]),generic:{pattern:RegExp(d),alias:"class-name",inside:C}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,g,p,B,c.source,f,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,f]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(B),greedy:!0,inside:C},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var S=T+"|"+k,x=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[S]),Q=r(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[x]),2),L=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,I=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,Q]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[L,I]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[L]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[Q]),inside:e.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var F=/:[^}\r\n]+/.source,U=r(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[x]),2),_=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[U,F]),M=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[S]),2),H=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[M,F]);function D(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,F]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[_]),lookbehind:!0,greedy:!0,inside:D(_,U)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[H]),lookbehind:!0,greedy:!0,inside:D(H,M)}],char:{pattern:RegExp(k),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(Prism),Prism.languages.aspnet=Prism.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:Prism.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:Prism.languages.csharp}}}),Prism.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,Prism.languages.insertBefore("inside","punctuation",{directive:Prism.languages.aspnet.directive},Prism.languages.aspnet.tag.inside["attr-value"]),Prism.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),Prism.languages.insertBefore("aspnet",Prism.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:Prism.languages.csharp||{}}}),Prism.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/},Prism.languages.awk={hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\\"\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},regex:{pattern:/((?:^|[^\w\s)])\s*)\/(?:[^\/\\\r\n]|\\.)*\//,lookbehind:!0,greedy:!0},variable:/\$\w+/,keyword:/\b(?:BEGIN|BEGINFILE|END|ENDFILE|break|case|continue|default|delete|do|else|exit|for|function|getline|if|in|next|nextfile|printf?|return|switch|while)\b|@(?:include|load)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[a-fA-F0-9]+)\b/,operator:/--|\+\+|!?~|>&|>>|<<|(?:\*\*|[<>!=+\-*/%^])=?|&&|\|[|&]|[?:]/,punctuation:/[()[\]{},;]/},Prism.languages.gawk=Prism.languages.awk,function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=r.variable[1].inside,a=0;a>)?=)/],number:i,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:r,parameter:n,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:t,number:i,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean,function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),Prism.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_NAME|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/},function(e){var t,n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var r={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},i={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:i,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:i})}(Prism),Prism.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/},function(e){var t=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};e.languages.dart=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),e.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.dart}}},string:/[\s\S]+/}},string:void 0}),e.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),e.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(Prism),function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,i,o){if(n.language===r){var a=n.tokenStack=[];n.code=n.code.replace(i,(function(e){if("function"==typeof o&&!o(e))return e;for(var i,A=a.length;-1!==n.code.indexOf(i=t(r,A));)++A;return a[A]=e,i})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var i=0,o=Object.keys(n.tokenStack);!function a(A){for(var s=0;s=o.length);s++){var l=A[s];if("string"==typeof l||l.content&&"string"==typeof l.content){var c=o[i],u=n.tokenStack[c],h="string"==typeof l?l:l.content,d=t(r,c),f=h.indexOf(d);if(f>-1){++i;var p=h.substring(0,f),g=new e.Token(r,e.tokenize(u,n.grammar),"language-"+r,u),m=h.substring(f+d.length),v=[];p&&v.push.apply(v,a([p])),v.push(g),m&&v.push.apply(v,a([m])),"string"==typeof l?A.splice.apply(A,[s,1].concat(v)):l.content=v}}else l.content&&a(l.content)}return A}(n.tokens)}}}})}(Prism),function(e){e.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var t=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,n=e.languages["markup-templating"];e.hooks.add("before-tokenize",(function(e){n.buildPlaceholders(e,"django",t)})),e.hooks.add("after-tokenize",(function(e){n.tokenizePlaceholders(e,"django")})),e.languages.jinja2=e.languages.django,e.hooks.add("before-tokenize",(function(e){n.buildPlaceholders(e,"jinja2",t)})),e.hooks.add("after-tokenize",(function(e){n.tokenizePlaceholders(e,"jinja2")}))}(Prism),Prism.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},Prism.languages["dns-zone"]=Prism.languages["dns-zone-file"],function(e){var t=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,n=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,(function(){return t})),r=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,i=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,(function(){return r})),o={pattern:RegExp(r),greedy:!0},a={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function A(e,t){return e=e.replace(//g,(function(){return i})).replace(//g,(function(){return n})),RegExp(e,t)}e.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:A(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[o,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:A(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:A(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:A(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:a,string:o,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:a},e.languages.dockerfile=e.languages.docker}(Prism),function(e){for(var t=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,n=0;n<2;n++)t=t.replace(//g,(function(){return t}));t=t.replace(//g,/[^\s\S]/.source);var r={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,(function(){return t}))),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,(function(){return t}))),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};r.string[1].inside.interpolation.inside.rest=r,e.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:r}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:r}}}},e.hooks.add("before-tokenize",(function(n){var r=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,(function(){return t})),"gi");e.languages["markup-templating"].buildPlaceholders(n,"ftl",r)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"ftl")}))}(Prism),Prism.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m},Prism.languages["linker-script"]={comment:{pattern:/(^|\s)\/\*[\s\S]*?(?:$|\*\/)/,lookbehind:!0,greedy:!0},identifier:{pattern:/"[^"\r\n]*"/,greedy:!0},"location-counter":{pattern:/\B\.\B/,alias:"important"},section:{pattern:/(^|[^\w*])\.\w+\b/,lookbehind:!0,alias:"keyword"},function:/\b[A-Z][A-Z_]*(?=\s*\()/,number:/\b(?:0[xX][a-fA-F0-9]+|\d+)[KM]?\b/,operator:/>>=?|<<=?|->|\+\+|--|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?/,punctuation:/[(){},;]/},Prism.languages.ld=Prism.languages["linker-script"],Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Prism.languages.go["class-name"],Prism.languages["go-mod"]=Prism.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/},Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json,Prism.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+"(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")"+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},Prism.languages.url=Prism.languages.uri,function(e){function t(e){return RegExp("(^(?:"+e+"):[ \t]*(?![ \t]))[^]+","i")}e.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:e.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:t(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:e.languages.csp},{pattern:t(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:e.languages.hpkp},{pattern:t(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:e.languages.hsts},{pattern:t(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var n,r=e.languages,i={"application/javascript":r.javascript,"application/json":r.json||r.javascript,"application/xml":r.xml,"text/xml":r.xml,"text/html":r.html,"text/css":r.css,"text/plain":r.plain},o={"application/json":!0,"application/xml":!0};function a(e){var t=e.replace(/^[a-z]+\//,"");return"(?:"+e+"|"+("\\w+/(?:[\\w.-]+\\+)+"+t+"(?![+\\w.-])")+")"}for(var A in i)if(i[A]){n=n||{};var s=o[A]?a(A):A;n[A.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+s+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[A]}}n&&e.languages.insertBefore("http","header",n)}(Prism),Prism.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/},function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,o=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:i,punctuation:o};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},A=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:A,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:A,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:i,punctuation:o}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){if(/<\?/.test(t.code)){e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(Prism),function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(t,n){"string"==typeof t&&(t=[t]),t.forEach((function(t){!function(t,n){var r="doc-comment",i=e.languages[t];if(i){var o=i[r];if(!o){var a={};a[r]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},o=(i=e.languages.insertBefore(t,"comment",a))[r]}if(o instanceof RegExp&&(o=i[r]={pattern:o}),Array.isArray(o))for(var A=0,s=o.length;A|\b(?:abstract|case|catch|class|def|derives|do|else|enum|extends|extension|final|finally|for|forSome|given|if|implicit|import|infix|inline|lazy|match|new|null|object|opaque|open|override|package|private|protected|return|sealed|self|super|this|throw|trait|transparent|try|type|using|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),Prism.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:Prism.languages.scala}}},string:/[\s\S]+/}}}),delete Prism.languages.scala["class-name"],delete Prism.languages.scala.function,delete Prism.languages.scala.constant,function(e){var t=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,n=/#\s*\w+(?:\s*\([^()]*\))?/.source,r=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*)?|/.source.replace(//g,(function(){return n}));e.languages.javadoc=e.languages.extend("javadoclike",{}),e.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+r+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:e.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:t,lookbehind:!0,inside:e.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:t,lookbehind:!0,inside:{tag:e.languages.markup.tag,entity:e.languages.markup.entity,code:{pattern:/.+/,inside:e.languages.java,alias:"language-java"}}}}}],tag:e.languages.markup.tag,entity:e.languages.markup.entity}),e.languages.javadoclike.addSupport("java",e.languages.javadoc)}(Prism),Prism.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:|[\w$]+)\()/,function:/(?:|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}},function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",i=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function a(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,(function(){return r})).replace(/<>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,(function(){return r})).replace(/<>/g,(function(){return"(?:"+i+"|"+o+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:a(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:a(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:a(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:a(o),lookbehind:!0,greedy:!0},number:{pattern:a(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(//g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+o+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+o+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:Prism.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},Prism.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n0)){var A=h(/^\{$/,/^\}$/);if(-1===A)continue;for(var s=n;s=0&&d(l,"variable-input")}}}}function c(e){return t[n+e]}function u(e,t){t=t||0;for(var n=0;n?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,i=r.inside["interpolation-punctuation"],o=r.pattern.source;function a(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function A(e,t){return"___"+t.toUpperCase()+"_"+e+"___"}function s(t,n,r){var i={code:t,grammar:n,language:r};return e.hooks.run("before-tokenize",i),i.tokens=e.tokenize(i.code,i.grammar),e.hooks.run("after-tokenize",i),i.tokens}function l(t){var n={};n["interpolation-punctuation"]=i;var o=e.tokenize(t,n);if(3===o.length){var a=[1,1];a.push.apply(a,s(o[1],e.languages.javascript,"javascript")),o.splice.apply(o,a)}return new e.Token("interpolation",o,r.alias,t)}function c(t,n,r){var i=e.tokenize(t,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),a=0,c={},u=s(i.map((function(e){if("string"==typeof e)return e;for(var n,i=e.content;-1!==t.indexOf(n=A(a++,r)););return c[n]=i,n})).join(""),n,r),h=Object.keys(c);return a=0,function e(t){for(var n=0;n=h.length)return;var r=t[n];if("string"==typeof r||"string"==typeof r.content){var i=h[a],o="string"==typeof r?r:r.content,A=o.indexOf(i);if(-1!==A){++a;var s=o.substring(0,A),u=l(c[i]),d=o.substring(A+i.length),f=[];if(s&&f.push(s),f.push(u),d){var p=[d];e(p),f.push.apply(f,p)}"string"==typeof r?(t.splice.apply(t,[n,1].concat(f)),n+=f.length-1):r.content=f}}else{var g=r.content;Array.isArray(g)?e(g):e([g])}}}(u),new e.Token(r,u,"language-"+r,t)}e.languages.javascript["template-string"]=[a("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),a("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),a("svg",/\bsvg/.source),a("markdown",/\b(?:markdown|md)/.source),a("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),a("sql",/\bsql/.source),t].filter(Boolean);var u={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function h(e){return"string"==typeof e?e:Array.isArray(e)?e.map(h).join(""):h(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in u&&function t(n){for(var r=0,i=n.length;r]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism),function(e){var t=e.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,(function(){return n}))),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}(Prism),function(e){function t(e,t){return RegExp(e.replace(//g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r|.*(?:node_modules|\(\)|\(|$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}},function(e){var t=/\\(?:[^a-z()[\]]|[a-z*]+)/i,n={"equation-command":{pattern:t,alias:"regex"}};e.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:n,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:n,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:t,alias:"selector"},punctuation:/[[\]{}&]/},e.languages.tex=e.languages.latex,e.languages.context=e.languages.latex}(Prism),Prism.languages.less=Prism.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),Prism.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}}),Prism.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/},Prism.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/},Prism.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/},function(e){var t=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],n="(?:"+(t=t.map((function(e){return e.replace("$","\\$")}))).join("|")+")\\b";e.languages.mongodb=e.languages.extend("javascript",{}),e.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp("^(['\"])?"+n+"(?:\\1)?$")}}}),e.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},e.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"].join("|")+")\\b"),alias:"keyword"}})}(Prism),Prism.languages.nasm={comment:/;.*$/m,string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,label:{pattern:/(^\s*)[A-Za-z._?$][\w.?$@~#]*:/m,lookbehind:!0,alias:"function"},keyword:[/\[?BITS (?:16|32|64)\]?/,{pattern:/(^\s*)section\s*[a-z.]+:?/im,lookbehind:!0},/(?:extern|global)[^;\r\n]*/i,/(?:CPU|DEFAULT|FLOAT).*$/m],register:{pattern:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s)\b/i,alias:"variable"},number:/(?:\b|(?=\$))(?:0[hx](?:\.[\da-f]+|[\da-f]+(?:\.[\da-f]+)?)(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-\/%<>=&|$!]/},function(e){var t=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;e.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:t}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:t}},punctuation:/[{};]/}}(Prism),Prism.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|KnownFolderPath|LabelAddress|TempFileName|WinVer)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|RtlLanguage|ShellVarContextAll|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|Target|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}},Prism.languages.objectivec=Prism.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Prism.languages.objectivec["class-name"],Prism.languages.objc=Prism.languages.objectivec,function(e){var t=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;e.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,t].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,t].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,t+/\s*/.source+t].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}}(Prism),function(e){var t=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;e.languages.phpdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+t+"\\s+)?)\\$\\w+"),lookbehind:!0}}),e.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+t),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),e.languages.javadoclike.addSupport("php",e.languages.phpdoc)}(Prism),Prism.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}}),function(e){var t=/\$\w+|%[a-z]+%/,n=/\[[^[\]]*\]/.source,r=/(?:[drlu]|do|down|le|left|ri|right|up)/.source,i="(?:-+"+r+"-+|\\.+"+r+"\\.+|-+(?:"+n+"-*)?|"+n+"-+|\\.+(?:"+n+"\\.*)?|"+n+"\\.+)",o=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,a=/[[?]?[ox]?/.source+"(?:"+i+o+"|"+/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source+i+"(?:"+o+")?)"+/[ox]?[\]?]?/.source;e.languages["plant-uml"]={comment:{pattern:/(^[ \t]*)(?:'.*|\/'[\s\S]*?'\/)/m,lookbehind:!0,greedy:!0},preprocessor:{pattern:/(^[ \t]*)!.*/m,lookbehind:!0,greedy:!0,alias:"property",inside:{variable:t}},delimiter:{pattern:/(^[ \t]*)@(?:end|start)uml\b/m,lookbehind:!0,greedy:!0,alias:"punctuation"},arrow:{pattern:RegExp(/(^|[^-.<>?|\\[\]ox])/.source+a+/(?![-.<>?|\\\]ox])/.source),lookbehind:!0,greedy:!0,alias:"operator",inside:{expression:{pattern:/(\[)[^[\]]+(?=\])/,lookbehind:!0,inside:null},punctuation:/\[(?=$|\])|^\]/}},string:{pattern:/"[^"]*"/,greedy:!0},text:{pattern:/(\[[ \t]*[\r\n]+(?![\r\n]))[^\]]*(?=\])/,lookbehind:!0,greedy:!0,alias:"string"},keyword:[{pattern:/^([ \t]*)(?:abstract\s+class|end\s+(?:box|fork|group|merge|note|ref|split|title)|(?:fork|split)(?:\s+again)?|activate|actor|agent|alt|annotation|artifact|autoactivate|autonumber|backward|binary|boundary|box|break|caption|card|case|circle|class|clock|cloud|collections|component|concise|control|create|critical|database|deactivate|destroy|detach|diamond|else|elseif|end|end[hr]note|endif|endswitch|endwhile|entity|enum|file|folder|footer|frame|group|[hr]?note|header|hexagon|hide|if|interface|label|legend|loop|map|namespace|network|newpage|node|nwdiag|object|opt|package|page|par|participant|person|queue|rectangle|ref|remove|repeat|restore|return|robust|scale|set|show|skinparam|stack|start|state|stop|storage|switch|title|together|usecase|usecase\/|while)(?=\s|$)/m,lookbehind:!0,greedy:!0},/\b(?:elseif|equals|not|while)(?=\s*\()/,/\b(?:as|is|then)\b/],divider:{pattern:/^==.+==$/m,greedy:!0,alias:"important"},time:{pattern:/@(?:\d+(?:[:/]\d+){2}|[+-]?\d+|:[a-z]\w*(?:[+-]\d+)?)\b/i,greedy:!0,alias:"number"},color:{pattern:/#(?:[a-z_]+|[a-fA-F0-9]+)\b/,alias:"symbol"},variable:t,punctuation:/[:,;()[\]{}]|\.{3}/},e.languages["plant-uml"].arrow.inside.expression.inside=e.languages["plant-uml"],e.languages.plantuml=e.languages["plant-uml"]}(Prism),Prism.languages.plsql=Prism.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),Prism.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}}),function(e){var t=e.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};t.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:t},boolean:t.boolean,variable:t.variable}}(Prism),Prism.languages.properties={comment:/^[ \t]*[#!].*$/m,value:{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0,alias:"attr-value"},key:{pattern:/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,alias:"attr-name"},punctuation:/[=:]/},Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,Prism.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/},function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function o(e,t){return e=e.replace(//g,(function(){return n})).replace(//g,(function(){return r})).replace(//g,(function(){return i})),RegExp(e,t)}i=o(i).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:o(//.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},A=function(t){for(var n=[],r=0;r0&&n[n.length-1].tagName===a(i.content[0].content[1])&&n.pop():"/>"===i.content[i.content.length-1].content||n.push({tagName:a(i.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===i.type&&"{"===i.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===i.type&&"}"===i.content?n[n.length-1].openedBraces--:o=!0),(o||"string"==typeof i)&&n.length>0&&0===n[n.length-1].openedBraces){var s=a(i);r0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(s=a(t[r-1])+s,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",s,null,s)}i.content&&"string"!=typeof i.content&&A(i.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||A(e.tokens)}))}(Prism),function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(Prism),function(e){e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var t={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete e.languages.ruby.function;var n="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",r=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+n+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+r),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+r+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+n),greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+n),greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby}(Prism),function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,n=0;n<2;n++)t=t.replace(//g,(function(){return t}));t=t.replace(//g,(function(){return/[^\s\S]/.source})),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},function(e){var t=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,n=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,r={pattern:RegExp(t+"[bx]"),alias:"number"},i={pattern:/&[a-z_]\w*/i},o={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},a={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},A=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],s={pattern:RegExp(t),greedy:!0},l=/[$%@.(){}\[\];,\\]/,c={pattern:/%?\b\w+(?=\()/,alias:"keyword"},u={function:c,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":i,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:n,"numeric-constant":r,punctuation:l,string:s},h={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},d={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},f={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},p={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},g=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,m={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,(function(){return g})),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,(function(){return g})),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:A,function:c,"arg-value":u["arg-value"],operator:u.operator,argument:u.arg,number:n,"numeric-constant":r,punctuation:l,string:s}},v={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};e.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,(function(){return t})),"im"),alias:"language-sql",inside:e.languages.sql},"global-statements":f,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:n,"numeric-constant":r,punctuation:l,string:s}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:A,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,(function(){return t})),"im"),lookbehind:!0,alias:"language-groovy",inside:e.languages.groovy},keyword:v,"submit-statement":p,"global-statements":f,number:n,"numeric-constant":r,punctuation:l,string:s}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:A,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,(function(){return t})),"im"),lookbehind:!0,alias:"language-lua",inside:e.languages.lua},keyword:v,"submit-statement":p,"global-statements":f,number:n,"numeric-constant":r,punctuation:l,string:s}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:A,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:u}},"cas-actions":m,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:u},step:a,keyword:v,function:c,format:h,altformat:d,"global-statements":f,number:n,"numeric-constant":r,punctuation:l,string:s}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,(function(){return t})),"im"),lookbehind:!0,inside:u},"macro-keyword":o,"macro-variable":i,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":o,"macro-variable":i,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:l}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:A,number:n,"numeric-constant":r}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:u},"cas-actions":m,comment:A,function:c,format:h,altformat:d,"numeric-constant":r,datetime:{pattern:RegExp(t+"(?:dt?|t)"),alias:"number"},string:s,step:a,keyword:v,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:n,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:l}}(Prism),function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(Prism),Prism.languages.scss=Prism.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),Prism.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),Prism.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),Prism.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),Prism.languages.scss.atrule.inside.rest=Prism.languages.scss,function(e){e.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(function(e){for(var t in e)e[t]=e[t].replace(/<[\w\s]+>/g,(function(t){return"(?:"+e[t].trim()+")"}));return e[t]}({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/}}(Prism),function(e){var t=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");e.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<>)+/.source.replace(/<>/g,(function(){return t})),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:e.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},e.languages["sh-session"]=e.languages.shellsession=e.languages["shell-session"]}(Prism),Prism.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/},Prism.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/},Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=Prism.languages.swift})),function(e){var t={pattern:/^[;#].*/m,greedy:!0},n=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;e.languages.systemd={comment:t,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+n+'|(?=[^"\r\n]))(?:'+/[^\s\\]/.source+'|[ \t]+(?:(?![ \t"])|'+n+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:t,quoted:{pattern:RegExp(/(^|\s)/.source+n),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}}(Prism),function(e){var t=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,n=/\)|\((?![^|()\n]+\))/.source;function r(e,r){return RegExp(e.replace(//g,(function(){return"(?:"+t+")"})).replace(//g,(function(){return"(?:"+n+")"})),r||"")}var i={css:{pattern:/\{[^{}]+\}/,inside:{rest:e.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},o=e.languages.textile=e.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:r(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:r(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:i},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:r(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:r(/(^[*#]+)+/.source),lookbehind:!0,inside:i},punctuation:/^[*#]+/}},table:{pattern:r(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:r(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:i},punctuation:/\||^\./}},inline:{pattern:r(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:r(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:r(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:r(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:r(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:r(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:r(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:r(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:r(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:i},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:r(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:r(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:r(/(^")+/.source),lookbehind:!0,inside:i},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:r(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:r(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:r(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:i},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),a=o.phrase.inside,A={inline:a.inline,link:a.link,image:a.image,footnote:a.footnote,acronym:a.acronym,mark:a.mark};o.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var s=a.inline.inside;s.bold.inside=A,s.italic.inside=A,s.inserted.inside=A,s.deleted.inside=A,s.span.inside=A;var l=a.table.inside;l.inline=A.inline,l.link=A.link,l.image=A.image,l.footnote=A.footnote,l.acronym=A.acronym,l.mark=A.mark}(Prism),Prism.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/},Prism.languages.vbnet=Prism.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/}),Prism.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/},Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/},Prism.languages.wiki=Prism.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:Prism.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),Prism.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:Prism.languages.markup.tag.inside}}}}),function(e){function t(t,n){e.languages[t]&&e.languages.insertBefore(t,"comment",{"doc-comment":n})}var n=e.languages.markup.tag,r={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:n}},i={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:n}};t("csharp",r),t("fsharp",r),t("vbnet",i)}(Prism),function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(t).forEach((function(n){var r=t[n],i=[];/^\w+$/.test(n)||i.push(/\w+/.exec(n)[0]),"diff"===n&&i.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}})),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}(Prism),Prism.languages.glsl=Prism.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/}),function(e){e.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:e.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:e.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:e.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:e.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:e.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:e.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:e.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var t=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],n={},r=0,i=t.length;r]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},Prism.languages.pascal.asm.inside=Prism.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),Prism.languages.objectpascal=Prism.languages.pascal,function(e){var t=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;e.languages.protobuf=e.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),e.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:t}},builtin:t,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})}(Prism),rm.manual=!0;var Am={figure:"figure"},sm=function(e){function t(e){var n;e.externals;var r,i=e.config;(eo(this,t),n=om(this,t,[{needCache:!0}]),t.inlineCodeCache={},n.codeCache={},n.codeCacheList=[],n.customLang=[],n.customParser={},n.lineNumber=i.lineNumber,n.copyCode=i.copyCode,n.expandCode=i.expandCode,n.editCode=i.editCode,n.changeLang=i.changeLang,n.selfClosing=i.selfClosing,n.mermaid=i.mermaid,n.indentedCodeBlock=void 0===i.indentedCodeBlock||i.indentedCodeBlock,n.INLINE_CODE_REGEX=/(`+)(.+?(?:\n.+?)*?)\1/g,i&&i.customRenderer)&&(n.customLang=wf(r=TA(i.customRenderer)).call(r,(function(e){return e.toLowerCase()})),n.customParser=function(e){for(var t=1;t5&&(this.failedCleanCacheTimes=0,gA((function(){t.$resetCache()}),500)),this.restoreCache(e)}},{key:"$resetCache",value:function(){if(this.codeCacheList.length>100){for(var e,t=0;t')).call(i,t,"")},A=i.render(t,n.sign,this.$engine,{mermaidConfig:this.mermaid,updateCache:function(e){r.$codeCache(n.sign,a(e)),r.pushCache(a(e),n.sign,n.lines)},fallback:function(){return r.$codeReplace(t,e,n.sign,n.lines)}});return!!A&&a(A)}},{key:"fillTag",value:function(e){var t=[];return wf(e).call(e,(function(e){if(!e)return"";for(var n=e;t.length;){var r,i=t.pop();n=oA(r="".concat(i)).call(r,n)}var o=n.match(/|<\/span>/g),a=0;if(!o)return n;for(;o.length;){var A=o.pop();/<\/span>/.test(A)?a+=1:a?a-=1:t.unshift(A.match(//)[0])}for(var s=0;s");return n}))}},{key:"renderLineNumber",value:function(e){if(!this.lineNumber)return e;var t=e.split("\n");return t.pop(),t=this.fillTag(t),''.concat(t.join('\n'),"")}},{key:"isInternalCustomLangCovered",value:function(e){var t;return-1!==_h(t=this.customLang).call(t,e)}},{key:"computeLines",value:function(e,t,n){var r=t,i=this.getLineCount(e,r);return{sign:this.$engine.hash(e.replace(/^\n+/,"")+i),lines:i}}},{key:"appendMermaid",value:function(e,t){var n=e,r=t;if(/^flow([ ](TD|LR))?$/i.test(r)&&!this.isInternalCustomLangCovered(r)){var i,o=r.match(/^flow(?:[ ](TD|LR))?$/i)||[];n=oA(i="graph ".concat(o[1]||"TD","\n")).call(i,n),r="mermaid"}return/^seq$/i.test(r)&&!this.isInternalCustomLangCovered(r)&&(n="sequenceDiagram\n".concat(n),r="mermaid"),"mermaid"===r&&(n=n.replace(/(^[\s]*)stateDiagram-v2\n/,"$1stateDiagram\n")),[n,r]}},{key:"wrapCode",value:function(e,t){var n;return oA(n='')).call(n,e,"")}},{key:"renderCodeBlock",value:function(e,t,n,r){var i,o,a,A,s,l,c,u,h,d,f=e,p=t;/\s*CHERRY_FLOW_SESSION_CURSOR/.test(p)&&(p=p.replace(/\s*CHERRY_FLOW_SESSION_CURSOR/,"")),p=p.toLowerCase(),this.customHighlighter?f=this.customHighlighter(f,p):(p&&rm.languages[p]||(p="javascript"),f=rm.highlight(f,rm.languages[p],p),f=this.renderLineNumber(f));var g=this.expandCode&&(null===(i=e.match(/\n/g))||void 0===i?void 0:i.length)>10;return f=oA(o=oA(a=oA(A=oA(s=oA(l=oA(c=oA(u=oA(h=oA(d='\n
')).call(o,this.wrapCode(f,p),"
\n "),g&&(f+='
\n
\n \n
\n
'),f+=""}},{key:"$getIndentedCodeReg",value:function(){return new RegExp("(?:^|\\n\\s*\\n)(?: {4}|\\t)"+"([\\s\\S]+?)"+"(?=$|\\n( {0,3}[^ \\t\\n]|\\n[^ \\t\\n]))","g")}},{key:"$getIndentCodeBlock",value:function(e){var t=this;return this.indentedCodeBlock?this.$recoverCodeInIndent(e).replace(this.$getIndentedCodeReg(),(function(e,n){var r,i,o=(e.match(/\n/g)||[]).length,a=t.$engine.hash(e),A=oA(r=oA(i='
')).call(r,Yf(n.replace(/\n( {4}|\t)/g,"\n")),"
");return Bf(e,t.pushCache(A,a,o))})):e}},{key:"$replaceCodeInIndent",value:function(e){return this.indentedCodeBlock?e.replace(this.$getIndentedCodeReg(),(function(e){return e.replace(/`/g,"~~~IndentCode")})):e}},{key:"$recoverCodeInIndent",value:function(e){return this.indentedCodeBlock?e.replace(this.$getIndentedCodeReg(),(function(e){return e.replace(/~~~IndentCode/g,"`")})):e}},{key:"$dealUnclosingCode",value:function(e){var t=e.match(/(?:^|\n)(\n*((?:>[\t ]*)*)(?:[^\S\n]*))(`{3,})([^`]*?)(?=CHERRY_FLOW_SESSION_CURSOR|$|\n)/g);if(!t||t.length<=0)return e;var n=!1,r=Di(t).call(t,(function(e){return!1===n?(n=!0,!0):!/```[^`\s]+/.test(e)&&(n=!1,!0)}));if(r.length%2==1){var i,o=r[r.length-1].replace(/(`)[^`]+$/,"$1").replace(/\n+/,""),a=e.replace(/\n+$/,"").replace(/\n`{1,2}$/,"");return oA(i="".concat(a,"\n")).call(i,o,"\n")}return e}},{key:"beforeMakeHtml",value:function(e,t,n){var r=this,i=e;return(this.selfClosing||this.$engine.$cherry.options.engine.global.flowSessionContext)&&(i=this.$dealUnclosingCode(i)),i=(i=this.$replaceCodeInIndent(i)).replace(this.RULE.reg,(function(e,t,n,i,o,a){var A,s,l;function c(e){if(n){var t=new RegExp("^\n*",""),r=e.match(t)[0];e=r+n+e.replace(t,(function(e){return""}))}return e}var u=a,h=r.computeLines(e,t,a),d=h.sign,f=h.lines,p=r.$codeCache(d);if(p&&""!==p)return c(r.getCacheWithSpace(r.pushCache(p,d,f),e));u=(u=(u=r.$recoverCodeInIndent(u)).replace(/~D/g,"$")).replace(/~T/g,"~");var g=null!==(A=null==t||null===(s=t.match(/[ ]/g))||void 0===s?void 0:s.length)&&void 0!==A?A:0;if(g>0){var m=new RegExp("(^|\\n)[ ]{1,".concat(g,"}"),"g");u=u.replace(m,"$1")}if(n){var v=new RegExp("(^|\\n)".concat(n),"g");u=u.replace(v,"$1")}var y=Lu(o).call(o);if(/^(math|katex|latex)$/i.test(y)&&!r.isInternalCustomLangCovered(y)){var b,w=e.match(/^\s*/g);return oA(b="".concat(w,"~D~D\n")).call(b,u,"~D~D")}var B=Uh(r.appendMermaid(u,y),2);return u=B[0],y=B[1],-1!==_h(l=r.customLang).call(l,y.toLowerCase())&&(p=r.parseCustomLanguage(y,u,{lines:f,sign:d,match:e,addBlockQuoteSignToResult:c}))&&""!==p?(r.$codeCache(d,p),r.getCacheWithSpace(r.pushCache(p,d,f),e)):(p=r.$codeReplace(u,y,d,f),c(r.getCacheWithSpace(r.pushCache(p,d,f),e)))})),i=i.replace(Nd(!0),(function(e){var t;return wf(t=e.split("|")).call(t,(function(e){return r.makeInlineCode(e)})).join("|").replace(/`/g,"\\`")})),i=this.makeInlineCode(i),i=this.$getIndentCodeBlock(i)}},{key:"makeInlineCode",value:function(e){var n=this,r=e;return this.INLINE_CODE_REGEX.test(r)&&(r=(r=r.replace(/\\`/g,"~~not~inlineCode")).replace(this.INLINE_CODE_REGEX,(function(e,r,i){if("`"===Lu(i).call(i))return e;var o=i.replace(/~~not~inlineCode/g,"\\`");o=(o=n.$replaceSpecialChar(o)).replace(/\\/g,"\\\\");var a="".concat(Yf(o),""),A=n.$engine.hash(a);return t.inlineCodeCache[A]=a,"~~CODE".concat(A,"$")})),r=r.replace(/~~not~inlineCode/g,"\\`")),r}},{key:"makeHtml",value:function(e){return e}},{key:"$replaceSpecialChar",value:function(e){var t=e.replace(/~Q/g,"\\~");return t=(t=(t=(t=t.replace(/~Y/g,"\\!")).replace(/~Z/g,"\\#")).replace(/~&/g,"\\&")).replace(/~K/g,"\\/")}},{key:"rule",value:function(){return Rd()}},{key:"mounted",value:function(e){}}])}(ap);function lm(e,t,n){return t=za(t),Na(e,cm()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function cm(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(cm=function(){return!!e})()}nA(sm,"HOOK_NAME","codeBlock"),nA(sm,"inlineCodeCache",{});var um=function(e){function t(){return eo(this,t),lm(this,t,arguments)}return tA(t,e),Da(t,[{key:"makeHtml",value:function(e){return e}},{key:"afterMakeHtml",value:function(e){var t=e;return TA(sm.inlineCodeCache).length>0&&(t=t.replace(/~~CODE([0-9a-zA-Z]+)\$/g,(function(e,t){return sm.inlineCodeCache[t]}))),t}},{key:"$cleanCache",value:function(){sm.inlineCodeCache={}}},{key:"rule",value:function(){var e={begin:"(`+)[ ]*",end:"[ ]*\\1",content:"(.+?(?:\\n.+?)*?)"};return e.reg=Ed(e,"g"),e}}])}(ap);nA(um,"HOOK_NAME","inlineCode");var hm,dm=(hm=Object.freeze({__proto__:null,default:{}}))&&hm.default||hm,fm=r((function(e,n){var r;e.exports=(r=r||function(e,n){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==t&&t.crypto&&(r=t.crypto),!r)try{r=dm}catch(e){}var i=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),a={},A=a.lib={},s=A.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},l=A.WordArray=s.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=t!=n?t:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(var A=0;A>>2]=n[A>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new l.init(n,t/2)}},h=c.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new l.init(n,t)}},d=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},f=A.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,i=r.words,o=r.sigBytes,a=this.blockSize,A=o/(4*a),s=(A=t?e.ceil(A):e.max((0|A)-this._minBufferSize,0))*a,c=e.min(4*s,o);if(s){for(var u=0;u>>2]|=e[i]<<24-i%4*8;t.call(this,r,n)}else t.apply(this,arguments)};r.prototype=e}}(),n.lib.WordArray)})),r((function(e,t){var n;e.exports=(n=fm,function(){var e=n,t=e.lib.WordArray,r=e.enc;function i(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>16-i%4*8&65535;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var n=e.length,r=[],i=0;i>>1]|=e.charCodeAt(i)<<16-i%2*16;return t.create(r,2*n)}},r.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o>>2]>>>16-o%4*8&65535);r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var n=e.length,r=[],o=0;o>>1]|=i(e.charCodeAt(o)<<16-o%2*16);return t.create(r,2*n)}}}(),n.enc.Utf16)})),r((function(e,t){var n;e.exports=(n=fm,function(){var e=n,t=e.lib.WordArray;function r(e,n,r){for(var i=[],o=0,a=0;a>>6-a%4*2;i[o>>>2]|=A<<24-o%4*8,o++}return t.create(i,o)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],o=0;o>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,A=0;A<4&&o+.75*A>>6*(3-A)&63));var s=r.charAt(64);if(s)for(;i.length%4;)i.push(s);return i.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o>>6-a%4*2;i[o>>>2]|=A<<24-o%4*8,o++}return t.create(i,o)}e.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var n=e.words,r=e.sigBytes,i=t?this._safe_map:this._map;e.clamp();for(var o=[],a=0;a>>2]>>>24-a%4*8&255)<<16|(n[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|n[a+2>>>2]>>>24-(a+2)%4*8&255,s=0;s<4&&a+.75*s>>6*(3-s)&63));var l=i.charAt(64);if(l)for(;o.length%4;)o.push(l);return o.join("")},parse:function(e,t){void 0===t&&(t=!0);var n=e.length,i=t?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var a=0;a>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],s=e[t+1],d=e[t+2],f=e[t+3],p=e[t+4],g=e[t+5],m=e[t+6],v=e[t+7],y=e[t+8],b=e[t+9],w=e[t+10],B=e[t+11],C=e[t+12],k=e[t+13],T=e[t+14],E=e[t+15],S=o[0],x=o[1],Q=o[2],L=o[3];S=l(S,x,Q,L,a,7,A[0]),L=l(L,S,x,Q,s,12,A[1]),Q=l(Q,L,S,x,d,17,A[2]),x=l(x,Q,L,S,f,22,A[3]),S=l(S,x,Q,L,p,7,A[4]),L=l(L,S,x,Q,g,12,A[5]),Q=l(Q,L,S,x,m,17,A[6]),x=l(x,Q,L,S,v,22,A[7]),S=l(S,x,Q,L,y,7,A[8]),L=l(L,S,x,Q,b,12,A[9]),Q=l(Q,L,S,x,w,17,A[10]),x=l(x,Q,L,S,B,22,A[11]),S=l(S,x,Q,L,C,7,A[12]),L=l(L,S,x,Q,k,12,A[13]),Q=l(Q,L,S,x,T,17,A[14]),S=c(S,x=l(x,Q,L,S,E,22,A[15]),Q,L,s,5,A[16]),L=c(L,S,x,Q,m,9,A[17]),Q=c(Q,L,S,x,B,14,A[18]),x=c(x,Q,L,S,a,20,A[19]),S=c(S,x,Q,L,g,5,A[20]),L=c(L,S,x,Q,w,9,A[21]),Q=c(Q,L,S,x,E,14,A[22]),x=c(x,Q,L,S,p,20,A[23]),S=c(S,x,Q,L,b,5,A[24]),L=c(L,S,x,Q,T,9,A[25]),Q=c(Q,L,S,x,f,14,A[26]),x=c(x,Q,L,S,y,20,A[27]),S=c(S,x,Q,L,k,5,A[28]),L=c(L,S,x,Q,d,9,A[29]),Q=c(Q,L,S,x,v,14,A[30]),S=u(S,x=c(x,Q,L,S,C,20,A[31]),Q,L,g,4,A[32]),L=u(L,S,x,Q,y,11,A[33]),Q=u(Q,L,S,x,B,16,A[34]),x=u(x,Q,L,S,T,23,A[35]),S=u(S,x,Q,L,s,4,A[36]),L=u(L,S,x,Q,p,11,A[37]),Q=u(Q,L,S,x,v,16,A[38]),x=u(x,Q,L,S,w,23,A[39]),S=u(S,x,Q,L,k,4,A[40]),L=u(L,S,x,Q,a,11,A[41]),Q=u(Q,L,S,x,f,16,A[42]),x=u(x,Q,L,S,m,23,A[43]),S=u(S,x,Q,L,b,4,A[44]),L=u(L,S,x,Q,C,11,A[45]),Q=u(Q,L,S,x,E,16,A[46]),S=h(S,x=u(x,Q,L,S,d,23,A[47]),Q,L,a,6,A[48]),L=h(L,S,x,Q,v,10,A[49]),Q=h(Q,L,S,x,T,15,A[50]),x=h(x,Q,L,S,g,21,A[51]),S=h(S,x,Q,L,C,6,A[52]),L=h(L,S,x,Q,f,10,A[53]),Q=h(Q,L,S,x,w,15,A[54]),x=h(x,Q,L,S,s,21,A[55]),S=h(S,x,Q,L,y,6,A[56]),L=h(L,S,x,Q,E,10,A[57]),Q=h(Q,L,S,x,m,15,A[58]),x=h(x,Q,L,S,k,21,A[59]),S=h(S,x,Q,L,p,6,A[60]),L=h(L,S,x,Q,B,10,A[61]),Q=h(Q,L,S,x,d,15,A[62]),x=h(x,Q,L,S,b,21,A[63]),o[0]=o[0]+S|0,o[1]=o[1]+x|0,o[2]=o[2]+Q|0,o[3]=o[3]+L|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32;var o=e.floor(r/4294967296),a=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var A=this._hash,s=A.words,l=0;l<4;l++){var c=s[l];s[l]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return A},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,n,r,i,o,a){var A=e+(t&n|~t&r)+i+a;return(A<>>32-o)+t}function c(e,t,n,r,i,o,a){var A=e+(t&r|n&~r)+i+a;return(A<>>32-o)+t}function u(e,t,n,r,i,o,a){var A=e+(t^n^r)+i+a;return(A<>>32-o)+t}function h(e,t,n,r,i,o,a){var A=e+(n^(t|~r))+i+a;return(A<>>32-o)+t}t.MD5=o._createHelper(s),t.HmacMD5=o._createHmacHelper(s)}(Math),n.MD5)})),r((function(e,t){var n,r,i,o,a,A,s,l;e.exports=(r=(n=l=fm).lib,i=r.WordArray,o=r.Hasher,a=n.algo,A=[],s=a.SHA1=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],l=0;l<80;l++){if(l<16)A[l]=0|e[t+l];else{var c=A[l-3]^A[l-8]^A[l-14]^A[l-16];A[l]=c<<1|c>>>31}var u=(r<<5|r>>>27)+s+A[l];u+=l<20?1518500249+(i&o|~i&a):l<40?1859775393+(i^o^a):l<60?(i&o|i&a|o&a)-1894007588:(i^o^a)-899497514,s=a,a=o,o=i<<30|i>>>2,i=r,r=u}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}}),n.SHA1=o._createHelper(s),n.HmacSHA1=o._createHmacHelper(s),l.SHA1)})),r((function(e,t){var n;e.exports=(n=fm,function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,A=[],s=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,i=0;i<64;)t(r)&&(i<8&&(A[i]=n(e.pow(r,.5))),s[i]=n(e.pow(r,1/3)),i++),r++}();var l=[],c=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(A.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],A=n[4],c=n[5],u=n[6],h=n[7],d=0;d<64;d++){if(d<16)l[d]=0|e[t+d];else{var f=l[d-15],p=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,g=l[d-2],m=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;l[d]=p+l[d-7]+m+l[d-16]}var v=r&i^r&o^i&o,y=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),b=h+((A<<26|A>>>6)^(A<<21|A>>>11)^(A<<7|A>>>25))+(A&c^~A&u)+s[d]+l[d];h=u,u=c,c=A,A=a+b|0,a=o,o=i,i=r,r=b+(y+v)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+A|0,n[5]=n[5]+c|0,n[6]=n[6]+u|0,n[7]=n[7]+h|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(c),t.HmacSHA256=o._createHmacHelper(c)}(Math),n.SHA256)})),r((function(e,t){var n,r,i,o,a,A;e.exports=(r=(n=A=fm).lib.WordArray,i=n.algo,o=i.SHA256,a=i.SHA224=o.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=o._doFinalize.call(this);return e.sigBytes-=4,e}}),n.SHA224=o._createHelper(a),n.HmacSHA224=o._createHmacHelper(a),A.SHA224)})),r((function(e,t){var n;e.exports=(n=fm,function(){var e=n,t=e.lib.Hasher,r=e.x64,i=r.Word,o=r.WordArray,a=e.algo;function A(){return i.create.apply(i,arguments)}var s=[A(1116352408,3609767458),A(1899447441,602891725),A(3049323471,3964484399),A(3921009573,2173295548),A(961987163,4081628472),A(1508970993,3053834265),A(2453635748,2937671579),A(2870763221,3664609560),A(3624381080,2734883394),A(310598401,1164996542),A(607225278,1323610764),A(1426881987,3590304994),A(1925078388,4068182383),A(2162078206,991336113),A(2614888103,633803317),A(3248222580,3479774868),A(3835390401,2666613458),A(4022224774,944711139),A(264347078,2341262773),A(604807628,2007800933),A(770255983,1495990901),A(1249150122,1856431235),A(1555081692,3175218132),A(1996064986,2198950837),A(2554220882,3999719339),A(2821834349,766784016),A(2952996808,2566594879),A(3210313671,3203337956),A(3336571891,1034457026),A(3584528711,2466948901),A(113926993,3758326383),A(338241895,168717936),A(666307205,1188179964),A(773529912,1546045734),A(1294757372,1522805485),A(1396182291,2643833823),A(1695183700,2343527390),A(1986661051,1014477480),A(2177026350,1206759142),A(2456956037,344077627),A(2730485921,1290863460),A(2820302411,3158454273),A(3259730800,3505952657),A(3345764771,106217008),A(3516065817,3606008344),A(3600352804,1432725776),A(4094571909,1467031594),A(275423344,851169720),A(430227734,3100823752),A(506948616,1363258195),A(659060556,3750685593),A(883997877,3785050280),A(958139571,3318307427),A(1322822218,3812723403),A(1537002063,2003034995),A(1747873779,3602036899),A(1955562222,1575990012),A(2024104815,1125592928),A(2227730452,2716904306),A(2361852424,442776044),A(2428436474,593698344),A(2756734187,3733110249),A(3204031479,2999351573),A(3329325298,3815920427),A(3391569614,3928383900),A(3515267271,566280711),A(3940187606,3454069534),A(4118630271,4000239992),A(116418474,1914138554),A(174292421,2731055270),A(289380356,3203993006),A(460393269,320620315),A(685471733,587496836),A(852142971,1086792851),A(1017036298,365543100),A(1126000580,2618297676),A(1288033470,3409855158),A(1501505948,4234509866),A(1607167915,987167468),A(1816402316,1246189591)],l=[];!function(){for(var e=0;e<80;e++)l[e]=A()}();var c=a.SHA512=t.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],A=n[4],c=n[5],u=n[6],h=n[7],d=r.high,f=r.low,p=i.high,g=i.low,m=o.high,v=o.low,y=a.high,b=a.low,w=A.high,B=A.low,C=c.high,k=c.low,T=u.high,E=u.low,S=h.high,x=h.low,Q=d,L=f,I=p,F=g,U=m,_=v,M=y,H=b,D=w,O=B,N=C,R=k,P=T,$=E,K=S,X=x,V=0;V<80;V++){var G,j,W=l[V];if(V<16)j=W.high=0|e[t+2*V],G=W.low=0|e[t+2*V+1];else{var z=l[V-15],q=z.high,J=z.low,Y=(q>>>1|J<<31)^(q>>>8|J<<24)^q>>>7,Z=(J>>>1|q<<31)^(J>>>8|q<<24)^(J>>>7|q<<25),ee=l[V-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,ie=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),oe=l[V-7],ae=oe.high,Ae=oe.low,se=l[V-16],le=se.high,ce=se.low;j=(j=(j=Y+ae+((G=Z+Ae)>>>0>>0?1:0))+re+((G+=ie)>>>0>>0?1:0))+le+((G+=ce)>>>0>>0?1:0),W.high=j,W.low=G}var ue,he=D&N^~D&P,de=O&R^~O&$,fe=Q&I^Q&U^I&U,pe=L&F^L&_^F&_,ge=(Q>>>28|L<<4)^(Q<<30|L>>>2)^(Q<<25|L>>>7),me=(L>>>28|Q<<4)^(L<<30|Q>>>2)^(L<<25|Q>>>7),ve=(D>>>14|O<<18)^(D>>>18|O<<14)^(D<<23|O>>>9),ye=(O>>>14|D<<18)^(O>>>18|D<<14)^(O<<23|D>>>9),be=s[V],we=be.high,Be=be.low,Ce=K+ve+((ue=X+ye)>>>0>>0?1:0),ke=me+pe;K=P,X=$,P=N,$=R,N=D,R=O,D=M+(Ce=(Ce=(Ce=Ce+he+((ue+=de)>>>0>>0?1:0))+we+((ue+=Be)>>>0>>0?1:0))+j+((ue+=G)>>>0>>0?1:0))+((O=H+ue|0)>>>0>>0?1:0)|0,M=U,H=_,U=I,_=F,I=Q,F=L,Q=Ce+(ge+fe+(ke>>>0>>0?1:0))+((L=ue+ke|0)>>>0>>0?1:0)|0}f=r.low=f+L,r.high=d+Q+(f>>>0>>0?1:0),g=i.low=g+F,i.high=p+I+(g>>>0>>0?1:0),v=o.low=v+_,o.high=m+U+(v>>>0<_>>>0?1:0),b=a.low=b+H,a.high=y+M+(b>>>0>>0?1:0),B=A.low=B+O,A.high=w+D+(B>>>0>>0?1:0),k=c.low=k+R,c.high=C+N+(k>>>0>>0?1:0),E=u.low=E+$,u.high=T+P+(E>>>0<$>>>0?1:0),x=h.low=x+X,h.high=S+K+(x>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(c),e.HmacSHA512=t._createHmacHelper(c)}(),n.SHA512)})),r((function(e,t){var n,r,i,o,a,A,s,l;e.exports=(r=(n=l=fm).x64,i=r.Word,o=r.WordArray,a=n.algo,A=a.SHA512,s=a.SHA384=A.extend({_doReset:function(){this._hash=new o.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var e=A._doFinalize.call(this);return e.sigBytes-=16,e}}),n.SHA384=A._createHelper(s),n.HmacSHA384=A._createHmacHelper(s),l.SHA384)})),r((function(e,t){var n;e.exports=(n=fm,function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.x64.Word,A=t.algo,s=[],l=[],c=[];!function(){for(var e=1,t=0,n=0;n<24;n++){s[e+5*t]=(n+1)*(n+2)/2%64;var r=(2*e+3*t)%5;e=t%5,t=r}for(e=0;e<5;e++)for(t=0;t<5;t++)l[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,o=0;o<24;o++){for(var A=0,u=0,h=0;h<7;h++){if(1&i){var d=(1<>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(x=n[i]).high^=a,x.low^=o}for(var A=0;A<24;A++){for(var h=0;h<5;h++){for(var d=0,f=0,p=0;p<5;p++)d^=(x=n[h+5*p]).high,f^=x.low;var g=u[h];g.high=d,g.low=f}for(h=0;h<5;h++){var m=u[(h+4)%5],v=u[(h+1)%5],y=v.high,b=v.low;for(d=m.high^(y<<1|b>>>31),f=m.low^(b<<1|y>>>31),p=0;p<5;p++)(x=n[h+5*p]).high^=d,x.low^=f}for(var w=1;w<25;w++){var B=(x=n[w]).high,C=x.low,k=s[w];k<32?(d=B<>>32-k,f=C<>>32-k):(d=C<>>64-k,f=B<>>64-k);var T=u[l[w]];T.high=d,T.low=f}var E=u[0],S=n[0];for(E.high=S.high,E.low=S.low,h=0;h<5;h++)for(p=0;p<5;p++){var x=n[w=h+5*p],Q=u[w],L=u[(h+1)%5+5*p],I=u[(h+2)%5+5*p];x.high=Q.high^~L.high&I.high,x.low=Q.low^~L.low&I.low}x=n[0];var F=c[A];x.high^=F.high,x.low^=F.low}},_doFinalize:function(){var t=this._data,n=t.words;this._nDataBytes;var r=8*t.sigBytes,o=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(e.ceil((r+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var a=this._state,A=this.cfg.outputLength/8,s=A/8,l=[],c=0;c>>24)|4278255360&(h<<24|h>>>8),d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),l.push(d),l.push(h)}return new i.init(l,A)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});t.SHA3=o._createHelper(h),t.HmacSHA3=o._createHmacHelper(h)}(Math),n.SHA3)})),r((function(e,t){var n;e.exports=(n=fm,function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,A=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=i.create([0,1518500249,1859775393,2400959708,2840853838]),h=i.create([1352829926,1548603684,1836072691,2053994217,0]),d=a.RIPEMD160=o.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,a,d,b,w,B,C,k,T,E,S,x=this._hash.words,Q=u.words,L=h.words,I=A.words,F=s.words,U=l.words,_=c.words;for(B=o=x[0],C=a=x[1],k=d=x[2],T=b=x[3],E=w=x[4],n=0;n<80;n+=1)S=o+e[t+I[n]]|0,S+=n<16?f(a,d,b)+Q[0]:n<32?p(a,d,b)+Q[1]:n<48?g(a,d,b)+Q[2]:n<64?m(a,d,b)+Q[3]:v(a,d,b)+Q[4],S=(S=y(S|=0,U[n]))+w|0,o=w,w=b,b=y(d,10),d=a,a=S,S=B+e[t+F[n]]|0,S+=n<16?v(C,k,T)+L[0]:n<32?m(C,k,T)+L[1]:n<48?g(C,k,T)+L[2]:n<64?p(C,k,T)+L[3]:f(C,k,T)+L[4],S=(S=y(S|=0,_[n]))+E|0,B=E,E=T,T=y(k,10),k=C,C=S;S=x[1]+d+T|0,x[1]=x[2]+b+E|0,x[2]=x[3]+w+B|0,x[3]=x[4]+o+C|0,x[4]=x[0]+a+k|0,x[0]=S},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var A=o[a];o[a]=16711935&(A<<8|A>>>24)|4278255360&(A<<24|A>>>8)}return i},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function f(e,t,n){return e^t^n}function p(e,t,n){return e&t|~e&n}function g(e,t,n){return(e|~t)^n}function m(e,t,n){return e&n|t&~n}function v(e,t,n){return e^(t|~n)}function y(e,t){return e<>>32-t}t.RIPEMD160=o._createHelper(d),t.HmacRIPEMD160=o._createHmacHelper(d)}(),n.RIPEMD160)})),r((function(e,t){var n,r,i;e.exports=(r=(n=fm).lib.Base,i=n.enc.Utf8,void(n.algo.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=i.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),A=o.words,s=a.words,l=0;l>>2];e.sigBytes-=t}};r.BlockCipher=c.extend({cfg:c.cfg.extend({mode:d,padding:f}),reset:function(){var e;c.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var p=r.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),g=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?o.create([1398893684,1701076831]).concat(n).concat(t):t).toString(s)},parse:function(e){var t,n=s.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=o.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),p.create({ciphertext:n,salt:t})}},m=r.SerializableCipher=i.extend({cfg:i.extend({format:g}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r),o=i.finalize(t),a=i.cfg;return p.create({ciphertext:o,key:n,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),v=(t.kdf={}).OpenSSL={execute:function(e,t,n,r,i){if(r||(r=o.random(8)),i)a=l.create({keySize:t+n,hasher:i}).compute(e,r);else var a=l.create({keySize:t+n}).compute(e,r);var A=o.create(a.words.slice(t),4*n);return a.sigBytes=4*t,p.create({key:a,iv:A,salt:r})}},y=r.PasswordBasedCipher=m.extend({cfg:m.cfg.extend({kdf:v}),encrypt:function(e,t,n,r){var i=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize,r.salt,r.hasher);r.iv=i.iv;var o=m.encrypt.call(this,e,t,i.key,r);return o.mixIn(i),o},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var i=r.kdf.execute(n,e.keySize,e.ivSize,t.salt,r.hasher);return r.iv=i.iv,m.decrypt.call(this,e,t,i.key,r)}})}())})),r((function(e,t){var n;e.exports=((n=fm).mode.CFB=function(){var e=n.lib.BlockCipherMode.extend();function t(e,t,n,r){var i,o=this._iv;o?(i=o.slice(0),this._iv=void 0):i=this._prevBlock,r.encryptBlock(i,0);for(var a=0;a>24))e+=1<<24;else{var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}return e}function r(e){return 0===(e[0]=t(e[0]))&&(e[1]=t(e[1])),e}var i=e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),r(a);var A=a.slice(0);n.encryptBlock(A,0);for(var s=0;s>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.pad.Ansix923)})),r((function(e,t){var n;e.exports=((n=fm).pad.Iso10126={pad:function(e,t){var r=4*t,i=r-e.sigBytes%r;e.concat(n.lib.WordArray.random(i-1)).concat(n.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.pad.Iso10126)})),r((function(e,t){var n;e.exports=((n=fm).pad.Iso97971={pad:function(e,t){e.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(e,t)},unpad:function(e){n.pad.ZeroPadding.unpad(e),e.sigBytes--}},n.pad.Iso97971)})),r((function(e,t){var n;e.exports=((n=fm).pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},n.pad.ZeroPadding)})),r((function(e,t){var n;e.exports=((n=fm).pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)})),r((function(e,t){var n,r,i,o;e.exports=(r=(n=o=fm).lib.CipherParams,i=n.enc.Hex,n.format.Hex={stringify:function(e){return e.ciphertext.toString(i)},parse:function(e){var t=i.parse(e);return r.create({ciphertext:t})}},o.format.Hex)})),r((function(e,t){var n;e.exports=(n=fm,function(){var e=n,t=e.lib.BlockCipher,r=e.algo,i=[],o=[],a=[],A=[],s=[],l=[],c=[],u=[],h=[],d=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,r=0;for(t=0;t<256;t++){var f=r^r<<1^r<<2^r<<3^r<<4;f=f>>>8^255&f^99,i[n]=f,o[f]=n;var p=e[n],g=e[p],m=e[g],v=257*e[f]^16843008*f;a[n]=v<<24|v>>>8,A[n]=v<<16|v>>>16,s[n]=v<<8|v>>>24,l[n]=v,v=16843009*m^65537*g^257*p^16843008*n,c[f]=v<<24|v>>>8,u[f]=v<<16|v>>>16,h[f]=v<<8|v>>>24,d[f]=v,n?(n=p^e[e[e[m^p]]],r^=e[e[r]]):n=r=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],p=r.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=4*((this._nRounds=n+6)+1),o=this._keySchedule=[],a=0;a6&&a%n==4&&(l=i[l>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l]):(l=i[(l=l<<8|l>>>24)>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l],l^=f[a/n|0]<<24),o[a]=o[a-n]^l);for(var A=this._invKeySchedule=[],s=0;s>>24]]^u[i[l>>>16&255]]^h[i[l>>>8&255]]^d[i[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,A,s,l,i)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,c,u,h,d,o),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,o,a,A){for(var s=this._nRounds,l=e[t]^n[0],c=e[t+1]^n[1],u=e[t+2]^n[2],h=e[t+3]^n[3],d=4,f=1;f>>24]^i[c>>>16&255]^o[u>>>8&255]^a[255&h]^n[d++],g=r[c>>>24]^i[u>>>16&255]^o[h>>>8&255]^a[255&l]^n[d++],m=r[u>>>24]^i[h>>>16&255]^o[l>>>8&255]^a[255&c]^n[d++],v=r[h>>>24]^i[l>>>16&255]^o[c>>>8&255]^a[255&u]^n[d++];l=p,c=g,u=m,h=v}p=(A[l>>>24]<<24|A[c>>>16&255]<<16|A[u>>>8&255]<<8|A[255&h])^n[d++],g=(A[c>>>24]<<24|A[u>>>16&255]<<16|A[h>>>8&255]<<8|A[255&l])^n[d++],m=(A[u>>>24]<<24|A[h>>>16&255]<<16|A[l>>>8&255]<<8|A[255&c])^n[d++],v=(A[h>>>24]<<24|A[l>>>16&255]<<16|A[c>>>8&255]<<8|A[255&u])^n[d++],e[t]=p,e[t+1]=g,e[t+2]=m,e[t+3]=v},keySize:8});e.AES=t._createHelper(p)}(),n.AES)})),r((function(e,t){var n;e.exports=(n=fm,function(){var e=n,t=e.lib,r=t.WordArray,i=t.BlockCipher,o=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],A=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],s=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],u=o.DES=i.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var r=a[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){var l=i[o]=[],c=s[o];for(n=0;n<24;n++)l[n/6|0]|=t[(A[n]-1+c)%28]<<31-n%6,l[4+(n/6|0)]|=t[28+(A[n+24]-1+c)%28]<<31-n%6;for(l[0]=l[0]<<1|l[0]>>>31,n=1;n<7;n++)l[n]=l[n]>>>4*(n-1)+3;l[7]=l[7]<<5|l[7]>>>27}var u=this._invSubKeys=[];for(n=0;n<16;n++)u[n]=i[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],h.call(this,4,252645135),h.call(this,16,65535),d.call(this,2,858993459),d.call(this,8,16711935),h.call(this,1,1431655765);for(var r=0;r<16;r++){for(var i=n[r],o=this._lBlock,a=this._rBlock,A=0,s=0;s<8;s++)A|=l[s][((a^i[s])&c[s])>>>0];this._lBlock=a,this._rBlock=o^A}var u=this._lBlock;this._lBlock=this._rBlock,this._rBlock=u,h.call(this,1,1431655765),d.call(this,8,16711935),d.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<192.");var t=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),i=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=u.createEncryptor(r.create(t)),this._des2=u.createEncryptor(r.create(n)),this._des3=u.createEncryptor(r.create(i))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=i._createHelper(f)}(),n.TripleDES)})),r((function(e,t){var n;e.exports=(n=fm,function(){var e=n,t=e.lib.StreamCipher,r=e.algo,i=r.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],i=0;i<256;i++)r[i]=i;i=0;for(var o=0;i<256;i++){var a=i%n,A=t[a>>>2]>>>24-a%4*8&255;o=(o+r[i]+A)%256;var s=r[i];r[i]=r[o],r[o]=s}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,n=this._j,r=0,i=0;i<4;i++){n=(n+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[n],e[n]=o,r|=e[(e[t]+e[n])%256]<<24-8*i}return this._i=t,this._j=n,r}e.RC4=t._createHelper(i);var a=r.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});e.RC4Drop=t._createHelper(a)}(),n.RC4)})),r((function(e,t){var n;e.exports=(n=fm,function(){var e=n,t=e.lib.StreamCipher,r=e.algo,i=[],o=[],a=[],A=r.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)s.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(t){var o=t.words,a=o[0],A=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(A<<8|A>>>24)|4278255360&(A<<24|A>>>8),u=l>>>16|4294901760&c,h=c<<16|65535&l;for(i[0]^=l,i[1]^=u,i[2]^=c,i[3]^=h,i[4]^=l,i[5]^=u,i[6]^=c,i[7]^=h,n=0;n<4;n++)s.call(this)}},_doProcessBlock:function(e,t){var n=this._X;s.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),e[t+r]^=i[r]},blockSize:4,ivSize:2});function s(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],i=65535&r,A=r>>>16,s=((i*i>>>17)+i*A>>>15)+A*A,l=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=s^l}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=t._createHelper(A)}(),n.Rabbit)})),r((function(e,t){var n;e.exports=(n=fm,function(){var e=n,t=e.lib.StreamCipher,r=e.algo,i=[],o=[],a=[],A=r.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)s.call(this);for(i=0;i<8;i++)r[i]^=n[i+4&7];if(t){var o=t.words,a=o[0],A=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(A<<8|A>>>24)|4278255360&(A<<24|A>>>8),u=l>>>16|4294901760&c,h=c<<16|65535&l;for(r[0]^=l,r[1]^=u,r[2]^=c,r[3]^=h,r[4]^=l,r[5]^=u,r[6]^=c,r[7]^=h,i=0;i<4;i++)s.call(this)}},_doProcessBlock:function(e,t){var n=this._X;s.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),e[t+r]^=i[r]},blockSize:4,ivSize:2});function s(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],i=65535&r,A=r>>>16,s=((i*i>>>17)+i*A>>>15)+A*A,l=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=s^l}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=t._createHelper(A)}(),n.RabbitLegacy)})),r((function(e,t){var n;e.exports=(n=fm,function(){var e=n,t=e.lib.BlockCipher,r=e.algo;const i=16,o=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var A={pbox:[],sbox:[]};function s(e,t){let n=t>>24&255,r=t>>16&255,i=t>>8&255,o=255&t,a=e.sbox[0][n]+e.sbox[1][r];return a^=e.sbox[2][i],a+=e.sbox[3][o],a}function l(e,t,n){let r,o=t,a=n;for(let t=0;t1;--t)o^=e.pbox[t],a=s(e,o)^a,r=o,o=a,a=r;return r=o,o=a,a=r,a^=e.pbox[1],o^=e.pbox[0],{left:o,right:a}}function u(e,t,n){for(let t=0;t<4;t++){e.sbox[t]=[];for(let n=0;n<256;n++)e.sbox[t][n]=a[t][n]}let r=0;for(let a=0;a=n&&(r=0);let A=0,s=0,c=0;for(let t=0;t")).call(m,p,"")}return oA(l="".concat(t+d,"")).call(l,n,"")}return e}},{key:"toStdMarkdown",value:function(e){return e}},{key:"makeHtml",value:function(e){var t,n,r=e.replace(this.RULE.reg,(function(e){return e.replace(/~D/g,"~1D")}));Sd()?r=r.replace(this.RULE.reg,aA(t=this.toHtml).call(t,this)):r=Hg(r,this.RULE.reg,aA(n=this.toHtml).call(n,this),!0,1);return r=r.replace(this.RULE.reg,(function(e){return e.replace(/~1D/g,"~D")})),r}},{key:"rule",value:function(){var e,t={begin:Sd()?"((?0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config;return eo(this,t),e=Cm(this,t,[{config:n}]),n?(e.allowWhitespace=!!n.allowWhitespace,e):Na(e)}return tA(t,e),Da(t,[{key:"makeHtml",value:function(e,t){var n=function(e,n,r,i){var o,a,A,s=r.length%2==1?"em":"strong",l=Math.floor(r.length/2),c=jh("").call("",l),u=jh("").call("",l);return"em"===s&&(c+="",u="".concat(u)),oA(o=oA(a=oA(A="".concat(n)).call(A,c)).call(a,t(i).html.replace(/_/g,"~U"))).call(o,u)},r=e;return r=(r=this.allowWhitespace?(r=(r=r.replace(/(^[\s]*|\n[\s]*)(\*)([^\s*](?:.*?)(?:(?:\n.*?)*?))\*/g,n)).replace(/(^[\s]*|\n[\s]*)(\*{2,})((?:.*?)(?:(?:\n.*?)*?))\2/g,n)).replace(/([^\n*\\\s][ ]*)(\*+)((?:.*?)(?:(?:\n.*?)*?))\2/g,n):r.replace(this.RULE.asterisk.reg,n)).replace(this.RULE.underscore.reg,(function(e,n,r,i,o,a){var A,s,l;if(""===Lu(i).call(i))return e;var c=r.length%2==1?"em":"strong",u=Math.floor(r.length/2),h=jh("").call("",u),d=jh("").call("",u),f=t(i).html;return"em"===c&&(h+="",d="".concat(d)),oA(A=oA(s=oA(l="".concat(n)).call(l,h)).call(s,f)).call(A,d)})),r.replace(/~U/g,"_")}},{key:"test",value:function(e,t){return this.RULE[t].reg&&this.RULE[t].reg.test(e)}},{key:"rule",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config,t=!!e&&!!e.allowWhitespace,n=function(e,t){var n,r,i,o="[^".concat(t,"\\s]");return e?"(?:.*?)(?:(?:\\n.*?)*?)":oA(n=oA(r=oA(i="(".concat(o,"|")).call(i,o,"(.*?(\n")).call(r,o,".*)*)")).call(n,o,")")},r={begin:"(^|[^\\\\])([*]+)",content:"(".concat(n(t,"*"),")"),end:"\\2"},i={begin:"(^|".concat(Id,")(_+)"),content:"(".concat(n(t,"_"),")"),end:"\\2(?=".concat(Id,"|$)")};return r.reg=Ed(r,"g"),i.reg=Ed(i,"g"),{asterisk:r,underscore:i}}}])}(gf);function Em(e,t,n){return t=za(t),Na(e,Sm()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function Sm(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(Sm=function(){return!!e})()}nA(Tm,"HOOK_NAME","fontEmphasis");var xm=function(e){function t(e){var n;return eo(this,t),(n=Em(this,t)).initBrReg(e.globalConfig.classicBr),n}return tA(t,e),Da(t,[{key:"makeHtml",value:function(e,t){var n=this;return this.test(e)?e.replace(this.RULE.reg,(function(e,r,i){var o;if(n.isContainsCache(e,!0))return e;var a,A=function(e){var r,i,o,a,A,s;if(""===Lu(e).call(e))return"";var l=t(e),c=l.sign,u=l.html,h="p";new RegExp("<(".concat(zf,")[^>]*>"),"i").test(u)&&(h="div");var d=n.getLineCount(e,e);return oA(r=oA(i=oA(o=oA(a=oA(A=oA(s="<".concat(h,' data-sign="')).call(s,c)).call(A,d,'" data-type="')).call(a,h,'" data-lines="')).call(o,d,'">')).call(i,n.$cleanParagraph(u),"")};return n.isContainsCache(i)?n.makeExcludingCached(oA(a="".concat(r)).call(a,i),A):A(oA(o="".concat(r)).call(o,i))})):e}},{key:"rule",value:function(){var e={begin:"(?:^|\\n)(\\n*)",end:"(?=\\s*$|\\n\\n)",content:"([\\s\\S]+?)"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}])}(ap);nA(xm,"HOOK_NAME","normalParagraph");var Qm=function(e){return void 0!==e&&(Te(e,"value")||Te(e,"writable"))};Fn({target:"Reflect",stat:!0},{get:function e(t,n){var r,i,o=arguments.length<3?t:arguments[2];return st(t)===o?t[n]:(r=vt.f(t,n))?Qm(r)?r.value:void 0===r.get?void 0:le(r.get,o):ce(i=Bo(t))?e(i,n,o):void 0}});var Lm=R.Reflect.get,Im=Pi;function Fm(){var e;return Fm="undefined"!=typeof Reflect&&Lm?Va(e=Lm).call(e):function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=za(e)););return e}(e,t);if(r){var i=Im(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},Fm.apply(null,arguments)}function Um(e,t,n){return t=za(t),Na(e,_m()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function _m(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(_m=function(){return!!e})()}var Mm="atx",Hm="setext",Dm=/[\s\-_]/,Om=/[A-Za-z]/,Nm=/[0-9]/,Rm=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0,externals:void 0};n.externals;var r=n.config;return eo(this,t),(e=Um(this,t,[{needCache:!0}])).strict=!r||!!r.strict,e.RULE=e.rule(),e.headerIDCache=[],e.headerIDCounter={},e.config=r||{},e}return tA(t,e),Da(t,[{key:"$parseTitleText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"string"!=typeof e?"":e.replace(/<.*?>/g,"").replace(/</g,"<").replace(/>/g,">")}},{key:"$generateId",value:function(e){for(var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.length,r="",i=0;i255)try{r+=encodeURIComponent(o)}catch(e){}}return r}},{key:"generateIDNoDup",value:function(e){var t,n=e.replace(/</g,"<").replace(/>/g,">"),r=this.$generateId(n,!0),i=_h(t=this.headerIDCache).call(t,r);if(-1!==i)this.headerIDCounter[i]+=1,r+="-".concat(this.headerIDCounter[i]+1);else{var o=this.headerIDCache.push(r);this.headerIDCounter[o-1]=1}return r}},{key:"$wrapHeader",value:function(e,t,n,r){var i,o,a,A,s,l,c,u=r(Lu(e).call(e)),h=u.html,d=h.match(/\s+\{#([A-Za-z0-9-]+)\}$/);null!==d&&(h=h.substring(0,d.index),c=Uh(d,2)[1]);var f=this.$parseTitleText(h);if(!c){c=this.generateIDNoDup(f.replace(/~fn#([0-9]+)#/g,""))}var p="safe_".concat(c),g=this.$engine.hash(oA(i=oA(o=oA(a="".concat(t,"-")).call(a,u.sign,"-")).call(o,c,"-")).call(i,n));return{html:[oA(A=oA(s=oA(l="'),this.$getAnchor(c),"".concat(h),"")].join(""),sign:"".concat(g)}}},{key:"$getAnchor",value:function(e){return"none"===(this.config.anchorStyle||"default")?"":'')}},{key:"beforeMakeHtml",value:function(e){var t=this,n=e;return this.$engine.$cherry.options.engine.global.flowSessionContext&&(n=n.replace(/(\n\s*-{1,})\s*$/,"$1 ")),this.test(n,Mm)&&(n=n.replace(this.RULE[Mm].reg,(function(e,n,r,i){return""===Lu(i).call(i)?e:t.getCacheWithSpace(t.pushCache(e),e,!0)}))),this.test(n,Hm)&&(n=n.replace(this.RULE[Hm].reg,(function(e,n,r){return""===Lu(r).call(r)||t.isContainsCache(r)?e:t.getCacheWithSpace(t.pushCache(e),e,!0)}))),n}},{key:"makeHtml",value:function(e,t){var n=this,r=this.restoreCache(e);return this.test(r,Mm)&&(r=r.replace(this.RULE[Mm].reg,(function(e,r,i,o){var a=Cf(r,n.getLineCount(e.replace(/^\n+/,""))),A=o.replace(/\s+#+\s*$/,""),s=n.$wrapHeader(A,i.length,a,t),l=s.html,c=s.sign;return n.getCacheWithSpace(n.pushCache(l,c,a),e,!0)}))),this.test(r,Hm)&&(r=r.replace(this.RULE[Hm].reg,(function(e,r,i,o){if(n.isContainsCache(i))return e;var a=Cf(r,n.getLineCount(e.replace(/^\n+/,""))),A="-"===o[0]?2:1,s=n.$wrapHeader(i,A,a,t),l=s.html,c=s.sign;return n.getCacheWithSpace(n.pushCache(l,c,a),e,!0)}))),r}},{key:"afterMakeHtml",value:function(e){var n=Fm(za(t.prototype),"afterMakeHtml",this).call(this,e);return this.headerIDCache=[],this.headerIDCounter={},n}},{key:"test",value:function(e,t){return this.RULE[t].reg&&this.RULE[t].reg.test(e)}},{key:"rule",value:function(){var e={begin:"(?:^|\\n)(\\n*)",content:["(?:\\h*","(.+)",")\\n","(?:\\h*","([=]+|[-]+)",")"].join(""),end:"(?=$|\\n)"};e.reg=Ed(e,"g",!0);var t={begin:"(?:^|\\n)(\\n*)(?:\\h*(#{1,6}))",content:"(.+?)",end:"(?=$|\\n)"};return this.strict&&(t.begin+="(?=\\h+)"),t.reg=Ed(t,"g",!0),{setext:e,atx:t}}}])}(ap);function Pm(e,t,n){return t=za(t),Na(e,$m()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function $m(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return($m=function(){return!!e})()}nA(Rm,"HOOK_NAME","header");var Km=function(e){function t(){return eo(this,t),Pm(this,t,arguments)}return tA(t,e),Da(t,[{key:"rule",value:function(){return{begin:"",content:"",end:"",reg:new RegExp("")}}},{key:"beforeMakeHtml",value:function(e){return e.replace(/\\\n/g,"\\ \n")}},{key:"afterMakeHtml",value:function(e){var t=e.replace(/~Q/g,"~");return t=(t=(t=(t=(t=t.replace(/~X/g,"`")).replace(/~Y/g,"!")).replace(/~Z/g,"#")).replace(/~&/g,"&")).replace(/~K/g,"/")}}])}(gf);nA(Km,"HOOK_NAME","transfer");var Xm=TypeError,Vm="Reduce of empty array with no initial value",Gm=function(e){return function(t,n,r,i){var o=ve(t),a=D(o),A=sn(o);if(se(n),0===A&&r<2)throw new Xm(Vm);var s=e?A-1:0,l=e?-1:1;if(r<2)for(;;){if(s in a){i=a[s],s+=l;break}if(s+=l,e?s<0:A<=s)throw new Xm(Vm)}for(;e?s>=0:A>s;s+=l)s in a&&(i=n(i,a[s],s,o));return i}},jm={left:Gm(!1),right:Gm(!0)},Wm="process"===B(P.process),zm=jm.left,qm=!Wm&&z>79&&z<83||!EA("reduce");Fn({target:"Array",proto:!0,forced:qm},{reduce:function(e){var t=arguments.length;return zm(this,e,t,t>1?arguments[1]:void 0)}});var Jm=_i("Array","reduce"),Ym=Array.prototype,Zm=function(e){var t=e.reduce;return e===Ym||te(Ym,e)&&t===Ym.reduce?Jm:t};function ev(e,t){var n=TA(e);if(Qi){var r=Qi(e);t&&(r=Di(r).call(r,(function(t){return $i(e,t).enumerable}))),n.push.apply(n,r)}return n}function tv(e){for(var t=1;t'.concat(m,""),y=oA(i="".concat(g.sign)).call(i,d);return{html:g.html.replace(/(^
)/,"$1".concat(v)).replace(/(^
0}},{key:"$renderTable",value:function(e,t,n,r){var i,o,a,A,s=this.$testHeadEmpty(t)?oA(i="~CTHD".concat(t,"~CTHD$~CTBD")).call(i,n,"~CTBD$"):"~CTBD".concat(n,"~CTBD$"),l=this.$engine.hash(s),c=s.replace(/~CTHD\$/g,"").replace(/~CTHD/g,"").replace(/~CTBD\$/g,"").replace(/~CTBD/g,"").replace(/~CTR\$/g,"").replace(/~CTR/g,"").replace(/[ ]?~CTH\$/g,"").replace(/[ ]?~CTD\$/g,"").replace(/~CT(D|H)(L|R|C|U)[ ]?/g,(function(t,n,r){var i="":' align="'.concat(e[r],'">')})).replace(/\\\|/g,"|");return{html:oA(o=oA(a=oA(A='
\n ')).call(o,c,"
"),sign:l}}},{key:"makeHtml",value:function(e,t){var n=this,r=e;return(this.$engine.$cherry.options.engine.global.flowSessionContext||this.selfClosing)&&/(^|^[^|][^\n]*\n|\n\n|\n[^|][^\n]*\n)\s*\|[^\n]+\n{0,1}[|:-\s]*\n*$/.test(r)&&(r="".concat(r.replace(/\n[|:-\s]*\n*$/,""),"\n|-|")),this.test(r,ov)&&(r=r.replace(this.RULE[ov].reg,(function(e,r){var i,o=n.getLineCount(e,r),a=wf(i=Lu(e).call(e).split(/\n/)).call(i,(function(e){var t;return Lu(t=String(e)).call(t)})),A=n.$parseTable(a,t,o),s=A.html,l=A.sign;return n.getCacheWithSpace(n.pushCache(s,l,o),e)}))),this.test(r,iv)&&(r=r.replace(this.RULE[iv].reg,(function(e,r){var i,o=n.getLineCount(e,r),a=wf(i=Lu(e).call(e).split(/\n/)).call(i,(function(e){var t;return Lu(t=String(e)).call(t)})),A=n.$parseTable(a,t,o),s=A.html,l=A.sign;return n.getCacheWithSpace(n.pushCache(s,l,o),e)}))),r}},{key:"test",value:function(e,t){return this.RULE[t].reg&&this.RULE[t].reg.test(e)}},{key:"rule",value:function(){return Nd()}}])}(ap);function Av(){return"object"===("undefined"==typeof window?"undefined":Ua(window))}function sv(e,t,n){return t=za(t),Na(e,lv()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function lv(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(lv=function(){return!!e})()}nA(av,"HOOK_NAME","table");var cv=function(e){function t(e){var n;return eo(this,t),(n=sv(this,t,[{needCache:!0}])).classicBr=Tf("classicBr")?Ef():e.globalConfig.classicBr,n}return tA(t,e),Da(t,[{key:"beforeMakeHtml",value:function(e){var t=this;return this.test(e)?e.replace(this.RULE.reg,(function(e,n,r){var i,o;if(0===r)return e;var a,A,s=null!==(i=null===(o=n.match(/\n/g))||void 0===o?void 0:o.length)&&void 0!==i?i:0,l="br".concat(s),c="";Av()?c=t.classicBr?oA(a=''):oA(A='

 

'):c=t.classicBr?"":"
";var u=t.pushCache(c,l,s);return"\n\n".concat(u,"\n")})):e}},{key:"makeHtml",value:function(e,t){return e}},{key:"rule",value:function(){var e={begin:"(?:\\n)",end:"",content:"((?:\\h*\\n){2,})"};return e.reg=Ed(e,"g",!0),e}}])}(ap);function uv(e,t,n){return t=za(t),Na(e,hv()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function hv(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(hv=function(){return!!e})()}nA(cv,"HOOK_NAME","br");var dv=function(e){function t(){return eo(this,t),uv(this,t,[{needCache:!0}])}return tA(t,e),Da(t,[{key:"beforeMakeHtml",value:function(e){var t=this;return e.replace(this.RULE.reg,(function(e,n){var r,i=(n.match(/\n/g)||[]).length+1,o="hr".concat(i);return Bf(e,t.pushCache(oA(r='
'),o))}))}},{key:"makeHtml",value:function(e,t){return e}},{key:"rule",value:function(){var e={begin:"(?:^|\\n)(\\n*)[ ]*",end:"(?=$|\\n)",content:"((?:-[ \\t]*){3,}|(?:\\*[ \\t]*){3,}|(?:_[ \\t]*){3,})"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}])}(ap);nA(dv,"HOOK_NAME","hr");var fv={processExtendAttributesInAlt:function(e){var t=e.match(/#([0-9]+(px|em|pt|pc|in|mm|cm|ex|%)|auto)/g);if(!t)return"";var n="",r=Uh(t,2),i=r[0],o=r[1];return i&&(n=' width="'.concat(i.replace(/[ #]*/g,""),'"')),o&&(n+=' height="'.concat(o.replace(/[ #]*/g,""),'"')),n},processExtendStyleInAlt:function(e){var t=fv.$getAlignment(e),n="",r=e.match(/#(border|shadow|radius|B|S|R)/g);if(r)for(var i=0;i')).call(c,Zf(r||""),"");return oA(g="".concat(n)).call(g,this.config.videoWrapper?this.config.videoWrapper(i,e,B):B)}return t}},{key:"toHtml",value:function(e,t,n,r,i,o,a){var A=void 0===r?"ref":"url",s="";if("ref"===A)return e;if("url"===A){var l,c,u,h,d,f,p,g,m=pv.processExtendAttributesInAlt(n),v=pv.processExtendStyleInAlt(n),y=v.extendStyles,b=v.extendClasses;y&&(y=' style="'.concat(y,'" ')),b&&(b=' class="'.concat(b,'" ')),s=i&&""!==Lu(i).call(i)?' title="'.concat(Zf(i.replace(/["']/g,"")),'"'):"";var w,B="src",C=this.$engine.$cherry.options;if(C.callback&&C.callback.beforeImageMounted){var k=C.callback.beforeImageMounted(B,r);B=k.srcProp||B,w=k.src||r}var T=a?a.replace(/[{}]/g,"").replace(/([^=\s]+)=([^\s]+)/g,'$1="$2"').replace(/&/g,"&"):"";return oA(l=oA(c=oA(u=oA(h=oA(d=oA(f=oA(p=oA(g="".concat(t,"')).call(u,Zf(n||")}return e}},{key:"toMediaHtml",value:function(e,t,n,r,i,o,a,A,s){return/(video|audio)/.test(n)?this.replaceToHtml(n,e,t,r,i,o,s):e}},{key:"makeHtml",value:function(e){var t,n,r,i,o=e;this.test(o)&&(o=Sd()?o.replace(this.RULE.reg,aA(t=this.toHtml).call(t,this)):Hg(o,this.RULE.reg,aA(n=this.toHtml).call(n,this),!0,1));this.testMedia(o)&&(o=Sd()?o.replace(this.RULE.regExtend,aA(r=this.toMediaHtml).call(r,this)):Hg(o,this.RULE.regExtend,aA(i=this.toMediaHtml).call(i,this),!0,1));return o}},{key:"testMedia",value:function(e){return this.RULE.regExtend&&this.RULE.regExtend.test(e)}},{key:"rule",value:function(e){var t,n={begin:Sd()?"((?-1?"ul":"ol",t.listStyle=function(e){return/^en-[a-z]/.test(e)?"lower-alpha":/^[a-z]/.test(e)?"lower-greek":/^[一二三四五六七八九十]/.test(e)?"cjk-ideographic":/^I/.test(e)?"upper-roman":/^\+/.test(e)?"circle":/^\*/.test(e)?"square":"default"}(r),t.start=Number(r.replace(".",""))?Number(r.replace(".","")):1,o})):(t.type="blank",e)}var Sv=Da((function e(){eo(this,e),this.index=0,this.space=0,this.type="",this.start=1,this.listStyle="",this.strs=[],this.children=[],this.lines=0})),xv=function(e){function t(e){var n,r=e.config;return eo(this,t),(n=Bv(this,t,[{needCache:!0}])).config=r||{},n.tree=[],n.emptyLines=0,n.indentSpace=Math.max(n.config.indentSpace,2),n}return tA(t,e),Da(t,[{key:"addNode",value:function(e,t,n,r){"blank"===e.type?this.tree[r].strs.push(e.strs[0]):(this.tree[n].children.push(t),this.tree[t]=wv(wv({},e),{},{parent:n}))}},{key:"buildTree",value:function(e,t){var n=e.split("\n");this.tree=[],n.unshift("");for(var r=e.match(/\n*$/g)[0].length,i=0;io.space;)a-=1;var A=o.space,s=this.tree[a].space;A".concat(s.strs.join("
"),"

");s.lines+=a.getLineCount(s.strs.join("\n"));var u=s.children.length?a.renderTree(n):"";e.lines+=s.lines,A+=s.lines;return/<\/span>/.test(c)&&(l.class+=" check-list-item"),oA(r=oA(i=oA(o="".concat(t,"")).call(i,c)).call(r,u,"")}),"");return void 0===e.parent&&(s["data-lines"]=0===e.index?A+this.emptyLines:A,s["data-sign"]=this.sign),t[0]&&"ol"===n&&(s.start=this.tree[t[0]].start),s.class="cherry-list__".concat(this.tree[t[0]].listStyle),oA(r=oA(i=oA(o="<".concat(n)).call(o,kv(s),">")).call(i,l,"")}},{key:"renderTree",value:function(e){var t=this,n=0,r=this.tree[e],i=r.children;return Zm(i).call(i,(function(e,o,a){if(0===a)return e;if(t.tree[i[a]].type===t.tree[i[a-1]].type)return e;var A=t.renderSubTree(r,Hh(i).call(i,n,a),t.tree[i[a-1]].type);return n=a,e+A}),"")+(i.length?this.renderSubTree(r,Hh(i).call(i,n,i.length),this.tree[i[i.length-1]].type):"")}},{key:"toHtml",value:function(e,t){var n,r;this.emptyLines=null!==(n=null===(r=e.match(/^\n\n/))||void 0===r?void 0:r.length)&&void 0!==n?n:0;var i=e.replace(/~0$/g,"").replace(/^\n+/,"");this.buildTree(function(e){return e.replace(/^((?:|[\t ]+)[*+-]\s+)\[(\s|x)\]/gm,(function(e,t,n){var r,i=/\s/.test(n)?'':'';return oA(r="".concat(t)).call(r,i)}))}(i),t);var o=this.renderTree(0);return this.pushCache(o,this.sign,this.$getLineNum(e))}},{key:"$getLineNum",value:function(e){var t,n,r,i,o=null!==(t=null===(n=e.match(/^\n\n/))||void 0===n?void 0:n.length)&&void 0!==t?t:0;return null!==(r=null===(i=e.replace(/^\n+/,"").replace(/\n+$/,"\n").match(/\n/g))||void 0===i?void 0:i.length)&&void 0!==r?r:0+o}},{key:"makeHtml",value:function(e,t){var n=this,r="".concat(e,"~0");return this.test(r)&&(r=r.replace(this.RULE.reg,(function(e){return n.getCacheWithSpace(n.checkCache(e,t,n.$getLineNum(e)),e)}))),r=r.replace(/~0$/g,"")}},{key:"rule",value:function(){var e={begin:"(?:^|\n)(\n*)(([ ]{0,3}([*+-]|\\d+[.]|en-[a-z]\\.|[a-z]\\.|[I一二三四五六七八九十]+\\.)[ \\t]+)",content:"([^\\r]+?)",end:"(~0|\\n{2,}(?=\\S)(?![ \\t]*(?:[*+-]|\\d+[.]|en-[a-z]\\.|[a-z]\\.|[I一二三四五六七八九十]+\\.)[ \\t]+)))"};return e.reg=new RegExp(e.begin+e.content+e.end,"gm"),e}}])}(ap);function Qv(e,t,n){return t=za(t),Na(e,Lv()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function Lv(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(Lv=function(){return!!e})()}nA(xv,"HOOK_NAME","list");var Iv=function(e){function t(){return eo(this,t),Qv(this,t,[{needCache:!0}])}return tA(t,e),Da(t,[{key:"handleMatch",value:function(e,t){var n=this;return e.replace(this.RULE.reg,(function(e,t,r){var i,o,a,A=n.getLineCount(e,t),s=n.$engine.hash(e),l=n.testHasCache(s);if(!1!==l)return n.getCacheWithSpace(l,e);var c=oA(i=oA(o='
'),u=r.split(/\n1&&(h="\n<".concat(Hh(u).call(u,1).join("\n<")));var d=u[0].replace(/^([ \t]*>)/gm,"");return c+=n.$engine.makeHtmlForBlockquote(d),c+="
",oA(a="".concat(n.getCacheWithSpace(n.pushCache(c,s,A),e))).call(a,h)}))}},{key:"makeHtml",value:function(e,t){return this.handleMatch(e,t)}},{key:"rule",value:function(){var e={begin:"(?:^|\\n)(\\s*)",content:["(",">(?:.+?\\n(?![*+-]|\\d+[.]|[a-z]\\.))(?:>*.+?\\n(?![*+-]|\\d+[.]|[a-z]\\.))*(?:>*.+?)","|",">(?:.+?)",")"].join(""),end:"(?=(\\n)|$)"};return e.reg=Ed(e,"g"),e}}])}(ap);function Fv(e,t,n){return t=za(t),Na(e,Uv()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function Uv(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(Uv=function(){return!!e})()}nA(Iv,"HOOK_NAME","blockquote");var _v=function(e){function t(e){var n,r=e.config;return e.globalConfig,eo(this,t),(n=Fv(this,t,[{config:r}])).enableShortLink=!!r.enableShortLink,n.shortLinkLength=r.shortLinkLength,n.target=r.target?'target="'.concat(r.target,'"'):r.openNewPage?'target="_blank"':"",n.rel=r.rel?'rel="'.concat(r.rel,'"'):"",n}return tA(t,e),Da(t,[{key:"isLinkInHtmlAttribute",value:function(e,t,n){for(var r,i=new RegExp(["<","([a-zA-Z][a-zA-Z0-9-]*)","(",["\\s+[a-zA-Z_:][a-zA-Z0-9_.:-]*","(",["\\s*=\\s*","(",["([^\\s\"'=<>`]+)","('[^']*')",'("[^"]*")'].join("|"),")"].join(""),")?"].join(""),")*","\\s*[/]?>"].join(""),"g");null!==(r=i.exec(e))&&!(r.index>t+n);)if(r.index=t+n)return!0;return!1}},{key:"isLinkInATag",value:function(e,t,n){for(var r,i=/[^<]*<\/a>/g;null!==(r=i.exec(e))&&!(r.index>t+n);)if(r.index=t+n)return!0;return!1}},{key:"makeHtml",value:function(e,t){var n=this;return this.test(e)&&(Fd.test(e)||_d.test(e))?e.replace(this.RULE.reg,(function(e,t,r,i,o,a,A){var s,l,c,u=null==i?void 0:i.replace(/CHERRYFLOWSESSIONCURSOR/g,"");if(n.isLinkInHtmlAttribute(A,a,r.length+u.length)||n.isLinkInATag(A,a,r.length+u.length))return e;var h=r.toLowerCase(),d="",f="",p=!0;if(("<"!==t&&"<"!==t||">"!==o&&">"!==o)&&(d=t,f=o,p=!1),""===Lu(u).call(u)||!p&&""===h&&!/www\./.test(u))return e;switch(h){case"javascript:":return e;case"mailto:":var g,m,v,y,b,w;return Ud.test(u)?oA(g=oA(m=oA(v=oA(y=oA(b="".concat(d,'")).call(m,Zf(u),"")).call(g,f):e;case"":var B,C,k,T,E,S,x,Q,L,I;if(d===f||!p)return Ud.test(u)?oA(B=oA(C=oA(k=oA(T=oA(E="".concat(d,'")).call(C,Zf(u),"")).call(B,f):Hd.test(u)?oA(S=oA(x="".concat(d)).call(x,n.renderLink("//".concat(u),u))).call(S,f):e;if(p)return Ud.test(u)?oA(Q=oA(L=oA(I='")).call(Q,Zf(u),""):Dd.test(u)||Hd.test(u)?n.renderLink(u):e;default:return Dd.test(u)?oA(s=oA(l="".concat(d)).call(l,n.renderLink(oA(c="".concat(h)).call(c,u)))).call(s,f):e}return e})):e}},{key:"rule",value:function(){var e,t={begin:"(?)"};return t.reg=Ed(t,"ig"),t}},{key:"renderLink",value:function(e,n){var r,i,o,a,A,s,l=null==n?void 0:n.replace(/CHERRYFLOWSESSIONCURSOR/g,"");if("string"!=typeof l)if(this.enableShortLink){var c,u=e.replace(/^https?:\/\//i,"");l=oA(c="".concat(u.substring(0,this.shortLinkLength))).call(c,u.length>this.shortLinkLength?"...":"")}else l=e;var h=this.$engine.urlProcessor(e,"autolink"),d=np(h),f=Zf(l),p=Di(r=[this.target,this.rel]).call(r,Boolean).join(" "),g=null!==(i=this.$engine.$cherry.options.engine.syntax.autoLink.attrRender(h,h))&&void 0!==i?i:"";return oA(o=oA(a=oA(A=oA(s='")).call(o,t.escapePreservedSymbol(f),"")}}])}(gf);function Mv(){var e,t,n,r;Av()&&(this.katex=null!==(e=null===(t=this.externals)||void 0===t?void 0:t.katex)&&void 0!==e?e:window.katex,this.MathJax=null!==(n=null===(r=this.externals)||void 0===r?void 0:r.MathJax)&&void 0!==n?n:window.MathJax)}nA(_v,"HOOK_NAME","autoLink"),nA(_v,"escapePreservedSymbol",(function(e){return e.replace(/_/g,"_").replace(/\*/g,"*")}));var Hv=["&","<",">",'"',"'"],Dv=function(e){var t=e.replace(new RegExp(Ld,"g"),(function(e){return-1!==_h(Hv).call(Hv,e)?Yf(e):"\\".concat(e)}));return t};function Ov(e,t,n){return t=za(t),Na(e,Nv()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function Nv(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(Nv=function(){return!!e})()}var Rv=function(e){function t(e){var n,r,i=e.config;return eo(this,t),nA(r=Ov(this,t,[{needCache:!0}]),"engine","MathJax"),nA(r,"katex",void 0),nA(r,"MathJax",void 0),r.engine=Av()?null!==(n=i.engine)&&void 0!==n?n:"MathJax":"node",r}return tA(t,e),Da(t,[{key:"toHtml",value:function(e,t,n,r){var i;aA(Mv).call(Mv,this)("engine");var o=e.replace(/^[ \f\r\t\v]*/,"").replace(/\s*$/,""),a=t.replace(/^[ \f\r\t\v]*\n/,""),A=this.$engine.hash(e),s=this.getLineCount(o,a);/\n/.test(t)||(s-=1),/\n\s*$/.test(e)||(s-=1),s=s>0?s:0;var l="",c=r.replace(/\\~D/g,"$").replace(/\\~T/g,"~").replace(/~T/g,"~");if("katex"===this.engine){var u,h,d=this.katex.renderToString(c,{throwOnError:!1,displayMode:!0});l=oA(u=oA(h='
')).call(u,d,"
")}else if(null!==(i=this.MathJax)&&void 0!==i&&i.tex2svg){var f,p,g=Ad(this.MathJax.tex2svg(c),!0);l=oA(f=oA(p='
')).call(f,g,"
")}else{var m,v;l=oA(m=oA(v='
$$')).call(m,Dv(r),"$$
")}return n+this.getCacheWithSpace(this.pushCache(l,A,s),e)}},{key:"beforeMakeHtml",value:function(e){var t,n;return Sd()?e.replace(this.RULE.reg,aA(n=this.toHtml).call(n,this)):Hg(e,this.RULE.reg,aA(t=this.toHtml).call(t,this),!0,1)}},{key:"makeHtml",value:function(e){return e}},{key:"rule",value:function(){var e={begin:Sd()?"(\\s*)((?')).call(c,h,"
")}else if(null!==(i=this.MathJax)&&void 0!==i&&i.tex2svg){var d,f,p=Ad(this.MathJax.tex2svg(s,{em:12,ex:6,display:!1}),!0);l=oA(d=oA(f="".concat(t,'')).call(d,p,"")}else{var g,m;l=oA(g=oA(m="".concat(t,'$')).call(g,Dv(n),"$")}return this.pushCache(l,ap.IN_PARAGRAPH_CACHE_KEY_PREFIX+A)}},{key:"beforeMakeHtml",value:function(e){var t=this,n=e;return n=n.replace(Nd(!0),(function(e){var n;return wf(n=e.split("|")).call(n,(function(e){return t.makeInlineMath(e)})).join("|").replace(/\\~D/g,"~D").replace(/~D/g,"\\~D")})),this.makeInlineMath(n)}},{key:"makeInlineMath",value:function(e){var t,n;return this.test(e)?Sd()?e.replace(this.RULE.reg,aA(n=this.toHtml).call(n,this)):Hg(e,this.RULE.reg,aA(t=this.toHtml).call(t,this),!0,1):e}},{key:"makeHtml",value:function(e){return e}},{key:"rule",value:function(){var e={begin:Sd()?"((?1?arguments[1]:void 0,n),o=r>2?arguments[2]:void 0,a=void 0===o?n:An(o,n);a>i;)t[i++]=e;return t};Fn({target:"Array",proto:!0},{fill:Xv}),Go();var Vv=_i("Array","fill"),Gv=Array.prototype,jv=function(e){var t=e.fill;return e===Gv||te(Gv,e)&&t===Gv.fill?Vv:t};function Wv(e,t,n){return t=za(t),Na(e,zv()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function zv(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(zv=function(){return!!e})()}function qv(e){return e}var Jv={tocStyle:"plain",tocNodeClass:"toc-li",tocContainerClass:"toc",tocTitleClass:"toc-title",linkProcessor:qv,showAutoNumber:!1},Yv='

 

',Zv=function(e){function t(e){var n,r;e.externals;var i=e.config;return eo(this,t),nA(r=Wv(this,t,[{needCache:!0}]),"tocStyle","nested"),nA(r,"tocNodeClass","toc-li"),nA(r,"tocContainerClass","toc"),nA(r,"tocTitleClass","toc-title"),nA(r,"linkProcessor",qv),nA(r,"baseLevel",1),nA(r,"isFirstTocToken",!0),nA(r,"allowMultiToc",!1),nA(r,"showAutoNumber",!1),UA(n=TA(Jv)).call(n,(function(e){r[e]=i[e]||Jv[e]})),r}return tA(t,e),Da(t,[{key:"beforeMakeHtml",value:function(e){var t=this,n=e;return this.test(n,"extend")&&(n=n.replace(this.RULE.extend.reg,(function(e,n,r){var i;if(!t.allowMultiToc&&!t.isFirstTocToken)return oA(i="\n".concat(n)).call(i,Yv);var o=t.pushCache(e);return t.isFirstTocToken=!1,Bf(e,o)}))),this.test(n,"standard")&&(n=n.replace(this.RULE.standard.reg,(function(e,n,r){var i;return t.allowMultiToc||t.isFirstTocToken?(t.isFirstTocToken=!1,Bf(e,t.pushCache(e))):oA(i="\n".concat(n)).call(i,Yv)}))),n}},{key:"makeHtml",value:function(e){return e}},{key:"$makeLevel",value:function(e){for(var t="",n=this.baseLevel;n2&&void 0!==arguments[2])||arguments[2],l="";t&&(l=this.$makeLevel(e.level));var c=this.linkProcessor("#".concat(e.id).replace(/safe_/g,""));return oA(n=oA(r=oA(i=oA(o=oA(a=oA(A='
  • \n ')).call(a,l,'')).call(r,e.text,"")).call(n,s?"
  • ":"")}},{key:"$makePlainToc",value:function(e){var t=this,n=wf(e).call(e,(function(e){return t.$makeTocItem(e,!0)}));return n.join("")}},{key:"$makeNestedToc",value:function(e){var t,n,r=this,i=0,o=jv(t=new Array(7)).call(t,!1),a=jv(n=new Array(7)).call(n,!1),A="";UA(e).call(e,(function(e){var t=e.level;if(0===i){for(var n=t;n>=r.baseLevel;n--)A+="
      ",a[n]=!0;return A+=r.$makeTocItem(e,!1,!1),o[t]=!0,void(i=t)}if(t=t;s--)o[s]&&(A+="",o[s]=!1),a[s]&&s>t&&(A+="
    ",a[s]=!1);o[t]=!0,A+=r.$makeTocItem(e,!1,!1),i=t}else if(t===i)o[i]&&(A+=""),A+=r.$makeTocItem(e,!1,!1),o[t]=!0,a[t]=!0;else{for(var l=i+1;l<=t;l++)A+="
      ",a[l]=!0;o[t]=!0,A+=r.$makeTocItem(e,!1,!1),i=t}}));for(var s=i;s>=this.baseLevel;s--)o[s]&&(A+="",o[s]=!1),a[s]&&(A+="
    ",a[s]=!1);return A}},{key:"$makeToc",value:function(e,t,n){var r,i,o,a,A,s,l,c=Cf(n,1),u=oA(r=oA(i=oA(o=oA(a='
    ');return u+=oA(A='

    ')).call(A,null!==(s=null===(l=this.$locale)||void 0===l?void 0:l.toc)&&void 0!==s?s:"目录","

    "),e.length<=0?"":(this.baseLevel=Math.min.apply(Math,Fg(wf(e).call(e,(function(e){return e.level})))),"nested"===this.tocStyle?u+=this.$makeNestedToc(e):u+=this.$makePlainToc(e),u+="
    ")}},{key:"afterMakeHtml",value:function(e){var n=this,r=Fm(za(t.prototype),"afterMakeHtml",this).call(this,e),i=[],o="";return r.replace(/]*? id="([^"]+?)"[^>]*?>(?:|)(.+?)<\/h\1>/g,(function(e,t,n,r){var a,A=r.replace(/~fn#[0-9]+#/g,"");i.push({level:+t,id:n,text:A}),o+=oA(a="".concat(t)).call(a,n)})),o=this.$engine.hash(o),r=r.replace(/(?:^|\n)(\[\[|\[|【【)(toc|TOC)(\]\]|\]|】】)([<~])/,(function(e){return e.replace(/(\]\]|\]|】】)([<~])/,"$1\n$2")})),r=(r=r.replace(this.RULE.extend.reg,(function(e,t){return n.$makeToc(i,o,t)}))).replace(this.RULE.standard.reg,(function(e,t){return n.$makeToc(i,o,t)})),this.isFirstTocToken=!0,r}},{key:"test",value:function(e,t){return!!this.RULE[t].reg&&this.RULE[t].reg.test(e)}},{key:"rule",value:function(){var e={begin:"(?:^|\\n)(\\n*)",end:"(?=$|\\n)",content:"[ ]*((?:【【|\\[\\[)(?:toc|TOC)(?:\\]\\]|】】))[ ]*"};e.reg=new RegExp(e.begin+e.content+e.end,"g");var t={begin:"(?:^|\\n)(\\n*)",end:"(?=$|\\n)",content:"[ ]*(\\[(?:toc|TOC)\\])[ ]*"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),{extend:e,standard:t}}}])}(ap);function ey(e,t,n){return t=za(t),Na(e,ty()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function ty(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(ty=function(){return!!e})()}nA(Zv,"HOOK_NAME","toc");var ny=function(e){function t(e){var n;e.externals;var r=e.config;return eo(this,t),(n=ey(this,t)).config=r,n.footnoteCache={},n.footnoteMap={},n.footnote=[],n}return tA(t,e),Da(t,[{key:"$cleanCache",value:function(){this.footnoteCache={},this.footnoteMap={},this.footnote=[]}},{key:"pushFootnoteCache",value:function(e,t){this.footnoteCache[e]=t}},{key:"getFootnoteCache",value:function(e){return this.footnoteCache[e]||null}},{key:"pushFootNote",value:function(e,t){var n,r,i,o,a,A,s,l,c,u,h,d,f,p,g=this;if(this.footnoteMap[e])return this.footnoteMap[e];var m=e.replace(/"/g,"'"),v=this.footnote.length+1,y={},b=this.config.refNumber.render(v,m)||"[".concat(v,"]"),w=(null===(n=this.config.refNumber)||void 0===n?void 0:n.appendClass)||"",B=null===(r=this.config.refList)||void 0===r||null===(i=r.listItem)||void 0===i?void 0:i.render(v,m,t,(function(){var e,t,n,r,i=g.config.refNumber.render(v,m)||"[".concat(v,"]");return oA(e=oA(t=oA(n=oA(r='')).call(e,i,"")}));y.fnref=oA(o=oA(a=oA(A=oA(s='')).call(o,b,""),y.num=v,y.note=B||y.fnref+Lu(t).call(t),y.note=this.$engine.makeHtmlForFootnote(y.note);var C=this.config.bubbleCard?"cherry-show-bubble-card":"",k=oA(l="footnote ".concat(w," ")).call(l,C).replace(/ {2,}/g," ");y.fn=oA(c=oA(u=oA(h=oA(d=oA(f=oA(p='')).call(c,b,""),this.footnote.push(y);var T="\0~fn#".concat(v-1,"#\0");return this.footnoteMap[e]=T,T}},{key:"getFootNote",value:function(){return this.footnote}},{key:"formatFootNote",value:function(){var e,t,n,r,i,o,a,A,s,l,c,u,h=this.getFootNote();if(h.length<=0)return"";var d=(null===(e=this.config.refList)||void 0===e||null===(t=e.listItem)||void 0===t?void 0:t.appendClass)||"",f=wf(h).call(h,(function(e,t){var n,r;return oA(n=oA(r='
    ')).call(n,e.note,"
    ")})).join(""),p=this.$engine.hash(f),g=(null===(n=this.config.refList)||void 0===n||null===(r=n.title)||void 0===r?void 0:r.render())||this.$engine.$cherry.locale.footnoteTitle,m=this.config.refList?"":"hidden",v=(null===(i=this.config.refList)||void 0===i?void 0:i.appendClass)||"",y=(null===(o=this.config.refList)||void 0===o||null===(a=o.title)||void 0===a?void 0:a.appendClass)||"";return f=oA(A=oA(s=oA(l=oA(c=oA(u='
    ')).call(s,g,"
    ")).call(A,f,"
    ")}},{key:"beforeMakeHtml",value:function(e){var t=this,n=e;return this.test(n)&&(n=n.replace(this.RULE.reg,(function(e,n,r,i){return t.pushFootnoteCache(r,i),(e.match(/\n/g)||[]).join("")})),n=n.replace(/\[\^([^\]]+?)\](?!:)/g,(function(e,n){var r=t.getFootnoteCache(n);return r?t.pushFootNote(n,r):e})),n+=this.formatFootNote()),n}},{key:"makeHtml",value:function(e,t){return e}},{key:"afterMakeHtml",value:function(e){var t=this.getFootNote();return e.replace(/\0~fn#([0-9]+)#\0/g,(function(e,n){return t[n].fn}))}},{key:"rule",value:function(){var e={begin:"(^|\\n)[ \t]*",content:["\\[\\^([^\\]]+?)\\]:\\h*","([\\s\\S]+?)"].join(""),end:"(?=\\s*$|\\n\\n)"};return e.reg=Ed(e,"g",!0),e}}])}(ap);function ry(e,t,n){return t=za(t),Na(e,iy()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function iy(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(iy=function(){return!!e})()}nA(ny,"HOOK_NAME","footnote");var oy=function(e){function t(e){var n;return e.externals,e.config,eo(this,t),(n=ry(this,t)).commentCache={},n}return tA(t,e),Da(t,[{key:"$cleanCache",value:function(){this.commentCache={}}},{key:"pushCommentReferenceCache",value:function(e,t){var n,r=Ug(t.split(/[ ]+/g)),i=r[0],o=Hh(r).call(r,1),a=ym.set(i);this.commentCache["".concat(e).toLowerCase()]=oA(n=[a]).call(n,Fg(o)).join(" ")}},{key:"getCommentReferenceCache",value:function(e){return this.commentCache["".concat(e).toLowerCase()]||null}},{key:"beforeMakeHtml",value:function(e){var t=this,n=e;if(this.test(n)){n=n.replace(this.RULE.reg,(function(e,n,r,i){var o;return t.pushCommentReferenceCache(r,i),(null!==(o=e.match(/\n/g))&&void 0!==o?o:[]).join("")}));n=n.replace(/(\[[^\]\n]+?\])?(?:\[([^\]\n]+?)\])/g,(function(e,n,r){var i,o,a=t.getCommentReferenceCache(r);return a?n?oA(o="".concat(n,"(")).call(o,a,")"):oA(i="[".concat(r,"](")).call(i,a,")"):e})),this.$cleanCache()}return n}},{key:"makeHtml",value:function(e,t){return e}},{key:"afterMakeHtml",value:function(e){return ym.restoreAll(e)}},{key:"rule",value:function(){var e={begin:"(^|\\n)[ \t]*",content:["\\[([^^][^\\]]*?)\\]:\\h*","([^\\n]+?)"].join(""),end:"(?=$|\\n)"};return e.reg=Ed(e,"g",!0),e}}])}(ap);nA(oy,"HOOK_NAME","commentReference");var ay=Lr.some,Ay=EA("some");Fn({target:"Array",proto:!0,forced:!Ay},{some:function(e){return ay(this,e,arguments.length>1?arguments[1]:void 0)}});var sy=_i("Array","some"),ly=Array.prototype,cy=function(e){var t=e.some;return e===ly||te(ly,e)&&t===ly.some?sy:t};const{entries:uy,setPrototypeOf:hy,isFrozen:dy,getPrototypeOf:fy,getOwnPropertyDescriptor:py}=Object;let{freeze:gy,seal:my,create:vy}=Object,{apply:yy,construct:by}="undefined"!=typeof Reflect&&Reflect;gy||(gy=function(e){return e}),my||(my=function(e){return e}),yy||(yy=function(e,t,n){return e.apply(t,n)}),by||(by=function(e,t){return new e(...t)});const wy=Hy(Array.prototype.forEach),By=Hy(Array.prototype.lastIndexOf),Cy=Hy(Array.prototype.pop),ky=Hy(Array.prototype.push),Ty=Hy(Array.prototype.splice),Ey=Hy(String.prototype.toLowerCase),Sy=Hy(String.prototype.toString),xy=Hy(String.prototype.match),Qy=Hy(String.prototype.replace),Ly=Hy(String.prototype.indexOf),Iy=Hy(String.prototype.trim),Fy=Hy(Object.prototype.hasOwnProperty),Uy=Hy(RegExp.prototype.test),_y=(My=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),i=1;i2&&void 0!==arguments[2]?arguments[2]:Ey;hy&&hy(e,null);let r=t.length;for(;r--;){let i=t[r];if("string"==typeof i){const e=n(i);e!==i&&(dy(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Oy(e){for(let t=0;t/gm),eb=my(/\$\{[\w\W]*/gm),tb=my(/^data-[\-\w.\u00B7-\uFFFF]+$/),nb=my(/^aria-[\-\w]+$/),rb=my(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ib=my(/^(?:\w+script|data):/i),ob=my(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ab=my(/^html$/i),Ab=my(/^[a-z][.\w]*(-[.\w]+)+$/i);var sb=Object.freeze({__proto__:null,ARIA_ATTR:nb,ATTR_WHITESPACE:ob,CUSTOM_ELEMENT:Ab,DATA_ATTR:tb,DOCTYPE_NAME:ab,ERB_EXPR:Zy,IS_ALLOWED_URI:rb,IS_SCRIPT_OR_DATA:ib,MUSTACHE_EXPR:Yy,TMPLIT_EXPR:eb});const lb=1,cb=3,ub=7,hb=8,db=9,fb=function(){return"undefined"==typeof window?null:window};var pb=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:fb();const n=t=>e(t);if(n.version="3.2.6",n.removed=[],!t||!t.document||t.document.nodeType!==db||!t.Element)return n.isSupported=!1,n;let{document:r}=t;const i=r,o=i.currentScript,{DocumentFragment:a,HTMLTemplateElement:A,Node:s,Element:l,NodeFilter:c,NamedNodeMap:u=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:d,trustedTypes:f}=t,p=l.prototype,g=Ry(p,"cloneNode"),m=Ry(p,"remove"),v=Ry(p,"nextSibling"),y=Ry(p,"childNodes"),b=Ry(p,"parentNode");if("function"==typeof A){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let w,B="";const{implementation:C,createNodeIterator:k,createDocumentFragment:T,getElementsByTagName:E}=r,{importNode:S}=i;let x={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof uy&&"function"==typeof b&&C&&void 0!==C.createHTMLDocument;const{MUSTACHE_EXPR:Q,ERB_EXPR:L,TMPLIT_EXPR:I,DATA_ATTR:F,ARIA_ATTR:U,IS_SCRIPT_OR_DATA:_,ATTR_WHITESPACE:M,CUSTOM_ELEMENT:H}=sb;let{IS_ALLOWED_URI:D}=sb,O=null;const N=Dy({},[...Py,...$y,...Ky,...Vy,...jy]);let R=null;const P=Dy({},[...Wy,...zy,...qy,...Jy]);let $=Object.seal(vy(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),K=null,X=null,V=!0,G=!0,j=!1,W=!0,z=!1,q=!0,J=!1,Y=!1,Z=!1,ee=!1,te=!1,ne=!1,re=!0,ie=!1,oe=!0,ae=!1,Ae={},se=null;const le=Dy({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ce=null;const ue=Dy({},["audio","video","img","source","image","track"]);let he=null;const de=Dy({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fe="http://www.w3.org/1998/Math/MathML",pe="http://www.w3.org/2000/svg",ge="http://www.w3.org/1999/xhtml";let me=ge,ve=!1,ye=null;const be=Dy({},[fe,pe,ge],Sy);let we=Dy({},["mi","mo","mn","ms","mtext"]),Be=Dy({},["annotation-xml"]);const Ce=Dy({},["title","style","font","a","script"]);let ke=null;const Te=["application/xhtml+xml","text/html"];let Ee=null,Se=null;const xe=r.createElement("form"),Qe=function(e){return e instanceof RegExp||e instanceof Function},Le=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Se||Se!==e){if(e&&"object"==typeof e||(e={}),e=Ny(e),ke=-1===Te.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ee="application/xhtml+xml"===ke?Sy:Ey,O=Fy(e,"ALLOWED_TAGS")?Dy({},e.ALLOWED_TAGS,Ee):N,R=Fy(e,"ALLOWED_ATTR")?Dy({},e.ALLOWED_ATTR,Ee):P,ye=Fy(e,"ALLOWED_NAMESPACES")?Dy({},e.ALLOWED_NAMESPACES,Sy):be,he=Fy(e,"ADD_URI_SAFE_ATTR")?Dy(Ny(de),e.ADD_URI_SAFE_ATTR,Ee):de,ce=Fy(e,"ADD_DATA_URI_TAGS")?Dy(Ny(ue),e.ADD_DATA_URI_TAGS,Ee):ue,se=Fy(e,"FORBID_CONTENTS")?Dy({},e.FORBID_CONTENTS,Ee):le,K=Fy(e,"FORBID_TAGS")?Dy({},e.FORBID_TAGS,Ee):Ny({}),X=Fy(e,"FORBID_ATTR")?Dy({},e.FORBID_ATTR,Ee):Ny({}),Ae=!!Fy(e,"USE_PROFILES")&&e.USE_PROFILES,V=!1!==e.ALLOW_ARIA_ATTR,G=!1!==e.ALLOW_DATA_ATTR,j=e.ALLOW_UNKNOWN_PROTOCOLS||!1,W=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,z=e.SAFE_FOR_TEMPLATES||!1,q=!1!==e.SAFE_FOR_XML,J=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,Z=e.FORCE_BODY||!1,re=!1!==e.SANITIZE_DOM,ie=e.SANITIZE_NAMED_PROPS||!1,oe=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,D=e.ALLOWED_URI_REGEXP||rb,me=e.NAMESPACE||ge,we=e.MATHML_TEXT_INTEGRATION_POINTS||we,Be=e.HTML_INTEGRATION_POINTS||Be,$=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Qe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&($.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Qe(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&($.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&($.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),z&&(G=!1),te&&(ee=!0),Ae&&(O=Dy({},jy),R=[],!0===Ae.html&&(Dy(O,Py),Dy(R,Wy)),!0===Ae.svg&&(Dy(O,$y),Dy(R,zy),Dy(R,Jy)),!0===Ae.svgFilters&&(Dy(O,Ky),Dy(R,zy),Dy(R,Jy)),!0===Ae.mathMl&&(Dy(O,Vy),Dy(R,qy),Dy(R,Jy))),e.ADD_TAGS&&(O===N&&(O=Ny(O)),Dy(O,e.ADD_TAGS,Ee)),e.ADD_ATTR&&(R===P&&(R=Ny(R)),Dy(R,e.ADD_ATTR,Ee)),e.ADD_URI_SAFE_ATTR&&Dy(he,e.ADD_URI_SAFE_ATTR,Ee),e.FORBID_CONTENTS&&(se===le&&(se=Ny(se)),Dy(se,e.FORBID_CONTENTS,Ee)),oe&&(O["#text"]=!0),J&&Dy(O,["html","head","body"]),O.table&&(Dy(O,["tbody"]),delete K.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw _y('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw _y('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=e.TRUSTED_TYPES_POLICY,B=w.createHTML("")}else void 0===w&&(w=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(f,o)),null!==w&&"string"==typeof B&&(B=w.createHTML(""));gy&&gy(e),Se=e}},Ie=Dy({},[...$y,...Ky,...Xy]),Fe=Dy({},[...Vy,...Gy]),Ue=function(e){ky(n.removed,{element:e});try{b(e).removeChild(e)}catch(t){m(e)}},_e=function(e,t){try{ky(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){ky(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ee||te)try{Ue(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Me=function(e){let t=null,n=null;if(Z)e=""+e;else{const t=xy(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ke&&me===ge&&(e=''+e+"");const i=w?w.createHTML(e):e;if(me===ge)try{t=(new d).parseFromString(i,ke)}catch(e){}if(!t||!t.documentElement){t=C.createDocument(me,"template",null);try{t.documentElement.innerHTML=ve?B:i}catch(e){}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(r.createTextNode(n),o.childNodes[0]||null),me===ge?E.call(t,J?"html":"body")[0]:J?t.documentElement:o},He=function(e){return k.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},De=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof u)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Oe=function(e){return"function"==typeof s&&e instanceof s};function Ne(e,t,r){wy(e,(e=>{e.call(n,t,r,Se)}))}const Re=function(e){let t=null;if(Ne(x.beforeSanitizeElements,e,null),De(e))return Ue(e),!0;const r=Ee(e.nodeName);if(Ne(x.uponSanitizeElement,e,{tagName:r,allowedTags:O}),q&&e.hasChildNodes()&&!Oe(e.firstElementChild)&&Uy(/<[/\w!]/g,e.innerHTML)&&Uy(/<[/\w!]/g,e.textContent))return Ue(e),!0;if(e.nodeType===ub)return Ue(e),!0;if(q&&e.nodeType===hb&&Uy(/<[/\w]/g,e.data))return Ue(e),!0;if(!O[r]||K[r]){if(!K[r]&&$e(r)){if($.tagNameCheck instanceof RegExp&&Uy($.tagNameCheck,r))return!1;if($.tagNameCheck instanceof Function&&$.tagNameCheck(r))return!1}if(oe&&!se[r]){const t=b(e)||e.parentNode,n=y(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r){const i=g(n[r],!0);i.__removalCount=(e.__removalCount||0)+1,t.insertBefore(i,v(e))}}}return Ue(e),!0}return e instanceof l&&!function(e){let t=b(e);t&&t.tagName||(t={namespaceURI:me,tagName:"template"});const n=Ey(e.tagName),r=Ey(t.tagName);return!!ye[e.namespaceURI]&&(e.namespaceURI===pe?t.namespaceURI===ge?"svg"===n:t.namespaceURI===fe?"svg"===n&&("annotation-xml"===r||we[r]):Boolean(Ie[n]):e.namespaceURI===fe?t.namespaceURI===ge?"math"===n:t.namespaceURI===pe?"math"===n&&Be[r]:Boolean(Fe[n]):e.namespaceURI===ge?!(t.namespaceURI===pe&&!Be[r])&&!(t.namespaceURI===fe&&!we[r])&&!Fe[n]&&(Ce[n]||!Ie[n]):!("application/xhtml+xml"!==ke||!ye[e.namespaceURI]))}(e)?(Ue(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!Uy(/<\/no(script|embed|frames)/i,e.innerHTML)?(z&&e.nodeType===cb&&(t=e.textContent,wy([Q,L,I],(e=>{t=Qy(t,e," ")})),e.textContent!==t&&(ky(n.removed,{element:e.cloneNode()}),e.textContent=t)),Ne(x.afterSanitizeElements,e,null),!1):(Ue(e),!0)},Pe=function(e,t,n){if(re&&("id"===t||"name"===t)&&(n in r||n in xe))return!1;if(G&&!X[t]&&Uy(F,t));else if(V&&Uy(U,t));else if(!R[t]||X[t]){if(!($e(e)&&($.tagNameCheck instanceof RegExp&&Uy($.tagNameCheck,e)||$.tagNameCheck instanceof Function&&$.tagNameCheck(e))&&($.attributeNameCheck instanceof RegExp&&Uy($.attributeNameCheck,t)||$.attributeNameCheck instanceof Function&&$.attributeNameCheck(t))||"is"===t&&$.allowCustomizedBuiltInElements&&($.tagNameCheck instanceof RegExp&&Uy($.tagNameCheck,n)||$.tagNameCheck instanceof Function&&$.tagNameCheck(n))))return!1}else if(he[t]);else if(Uy(D,Qy(n,M,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Ly(n,"data:")||!ce[e]){if(j&&!Uy(_,Qy(n,M,"")));else if(n)return!1}else;return!0},$e=function(e){return"annotation-xml"!==e&&xy(e,H)},Ke=function(e){Ne(x.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||De(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:R,forceKeepAttr:void 0};let i=t.length;for(;i--;){const o=t[i],{name:a,namespaceURI:A,value:s}=o,l=Ee(a),c=s;let u="value"===a?c:Iy(c);if(r.attrName=l,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,Ne(x.uponSanitizeAttribute,e,r),u=r.attrValue,!ie||"id"!==l&&"name"!==l||(_e(a,e),u="user-content-"+u),q&&Uy(/((--!?|])>)|<\/(style|title)/i,u)){_e(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){_e(a,e);continue}if(!W&&Uy(/\/>/i,u)){_e(a,e);continue}z&&wy([Q,L,I],(e=>{u=Qy(u,e," ")}));const h=Ee(e.nodeName);if(Pe(h,l,u)){if(w&&"object"==typeof f&&"function"==typeof f.getAttributeType)if(A);else switch(f.getAttributeType(h,l)){case"TrustedHTML":u=w.createHTML(u);break;case"TrustedScriptURL":u=w.createScriptURL(u)}if(u!==c)try{A?e.setAttributeNS(A,a,u):e.setAttribute(a,u),De(e)?Ue(e):Cy(n.removed)}catch(t){_e(a,e)}}else _e(a,e)}Ne(x.afterSanitizeAttributes,e,null)},Xe=function e(t){let n=null;const r=He(t);for(Ne(x.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)Ne(x.uponSanitizeShadowNode,n,null),Re(n),Ke(n),n.content instanceof a&&e(n.content);Ne(x.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,o=null,A=null,l=null;if(ve=!e,ve&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Oe(e)){if("function"!=typeof e.toString)throw _y("toString is not a function");if("string"!=typeof(e=e.toString()))throw _y("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Y||Le(t),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=Ee(e.nodeName);if(!O[t]||K[t])throw _y("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof s)r=Me("\x3c!----\x3e"),o=r.ownerDocument.importNode(e,!0),o.nodeType===lb&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o);else{if(!ee&&!z&&!J&&-1===e.indexOf("<"))return w&&ne?w.createHTML(e):e;if(r=Me(e),!r)return ee?null:ne?B:""}r&&Z&&Ue(r.firstChild);const c=He(ae?e:r);for(;A=c.nextNode();)Re(A),Ke(A),A.content instanceof a&&Xe(A.content);if(ae)return e;if(ee){if(te)for(l=T.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(R.shadowroot||R.shadowrootmode)&&(l=S.call(i,l,!0)),l}let u=J?r.outerHTML:r.innerHTML;return J&&O["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&Uy(ab,r.ownerDocument.doctype.name)&&(u="\n"+u),z&&wy([Q,L,I],(e=>{u=Qy(u,e," ")})),w&&ne?w.createHTML(u):u},n.setConfig=function(){Le(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Y=!0},n.clearConfig=function(){Se=null,Y=!1},n.isValidAttribute=function(e,t,n){Se||Le({});const r=Ee(e),i=Ee(t);return Pe(r,i,n)},n.addHook=function(e,t){"function"==typeof t&&ky(x[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=By(x[e],t);return-1===n?void 0:Ty(x[e],n,1)[0]}return Cy(x[e])},n.removeHooks=function(e){x[e]=[]},n.removeAllHooks=function(){x={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),gb=pb(window);function mb(e,t,n){return t=za(t),Na(e,vb()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function vb(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(vb=function(){return!!e})()}var yb=["href","src"];gb.addHook("afterSanitizeAttributes",(function(e){UA(yb).call(yb,(function(t){if(e.hasAttribute(t)){var n=e.getAttribute(t);e.setAttribute(t,n.replace(/\\/g,"%5c"))}}))}));var bb=function(e){function t(e){var n,r=e.config;return eo(this,t),(n=mb(this,t,[{needCache:!0}])).filterStyle=r.filterStyle||!1,n}return tA(t,e),Da(t,[{key:"isAutoLinkTag",value:function(e){var t=[/^<([a-z][a-z0-9+.-]{1,31}:\/\/[^<> `]+)>$/i,/^<(mailto:[^<> `]+)>$/i,/^<([^()<>[\]:'@\\,"\s`]+@[^()<>[\]:'@\\,"\s`.]+\.[^()<>[\]:'@\\,"\s`]+)>$/i];return cy(t).call(t,(function(t){return t.test(e)}))}},{key:"isHtmlComment",value:function(e){return/^$/.test(e)}},{key:"beforeMakeHtml",value:function(e,t){var n=this;this.$engine.htmlWhiteListAppend?(this.htmlWhiteListAppend=new RegExp("^(".concat(this.$engine.htmlWhiteListAppend,")( |$|/)"),"i"),this.htmlWhiteList=this.$engine.htmlWhiteListAppend.split("|")):(this.htmlWhiteListAppend=!1,this.htmlWhiteList=[]);var r=/^[ ]+/i;this.$engine.htmlBlackList&&(r=/\*/.test(this.$engine.htmlBlackList)?/^[^ ]+( |$|\/)/i:new RegExp("^(".concat(this.$engine.htmlBlackList,")( |$|/)"),"i"));var i=e;return i=function(e){if("string"!=typeof e)return"";var t=e.replace(/&(\w+);?/g,(function(e,t){return-1===_h(e).call(e,";")||-1===_h(Gf).call(Gf,t.toLowerCase())?e.replace(/&/g,"&"):e}));return t=t.replace(/&#(?!x)(\d*);?/gi,(function(e,t){return jf(t)||-1===_h(e).call(e,";")||t.lenth>7||!Wf(t)?e.replace(/&/g,"&"):e})),t=t.replace(/&#x([0-9a-f]*);?/gi,(function(e,t){if(jf(t))return e.replace(/&/g,"&");var n="0x".concat(t),r=Xh(n,16);return isNaN(r)||-1===_h(e).call(e,";")||t.lenth>6||!Wf(n)?e.replace(/&/g,"&"):e})),t}(i=ep(i)),i=(i=(i=(i=i.replace(/<[/]?([^<]*?)>/g,(function(e,t){if(r&&r.test(t)&&!n.isAutoLinkTag(e)&&!n.isHtmlComment(e))return e.replace(//g,">");if(!(Jf.test(t)||n.isAutoLinkTag(e)||n.isHtmlComment(e)||!1!==n.htmlWhiteListAppend&&n.htmlWhiteListAppend.test(t)))return e.replace(//g,">");var i=e;return t.replace(/^a .*? href="([^"]+)"/,(function(e,t){var r=n.$engine.urlProcessor(t,"link");i=i.replace(/ href="[^"]+"/,' href="'.concat(r,'"'))})),t.replace(/^a href="([^"]+)"/,(function(e,t){var r=n.$engine.urlProcessor(t,"link");i=i.replace(/ href="[^"]+"/,' href="'.concat(r,'"'))})),t.replace(/^img .*? src="([^"]+)"/,(function(e,t){var r=n.$engine.urlProcessor(t,"image");i=i.replace(/ src="[^"]+"/,' src="'.concat(r,'"'))})),t.replace(/^img src="([^"]+)"/,(function(e,t){var r=n.$engine.urlProcessor(t,"image");i=i.replace(/ src="[^"]+"/,' src="'.concat(r,'"'))})),i.replace(//g,"$#62;")}))).replace(/<(?=\/?(\w|\n|$))/g,"<")).replace(/\$#60;/g,"<").replace(/\$#62;/g,">")).replace(/\\</g,"<").replace(/\\>/g,">").replace(/\\/g,">"),this.filterStyle&&(i=(i=i.replace(/<([^/][^>]+?) style="[^>\n]+?"([^>\n]*)>/gi,"<$1$2>")).replace(/<([^/][^>]+?) style='[^>\n]+?'([^>\n]*)>/gi,"<$1$2>")),i}},{key:"makeHtml",value:function(e,t){return e}},{key:"afterMakeHtml",value:function(e){var t,n,r=e,i={ALLOW_UNKNOWN_PROTOCOLS:!0,ADD_ATTR:["target"]},o=this.$engine.$cherry.options.engine.global.htmlAttrWhiteList;if(i.ADD_ATTR=oA(t=i.ADD_ATTR).call(t,null!==(n=null==o?void 0:o.split(/[;,|]/))&&void 0!==n?n:[]),!1!==this.htmlWhiteListAppend){var a;if(i.ADD_TAGS=this.htmlWhiteList,(this.htmlWhiteListAppend.test("style")||this.htmlWhiteListAppend.test("ALL"))&&(r=r.replace(/| [^>]*>).*?<\/style>/gi,(function(e){return e.replace(/
    /gi,"")}))),this.htmlWhiteListAppend.test("iframe")||this.htmlWhiteListAppend.test("ALL"))i.ADD_ATTR=oA(a=i.ADD_ATTR).call(a,["align","frameborder","height","longdesc","marginheight","marginwidth","name","sandbox","scrolling","seamless","src","srcdoc","width"]),i.SANITIZE_DOM=!1,r=r.replace(/| [^>]*>).*?<\/iframe>/gi,(function(e){return e.replace(/
    /gi,"").replace(/\n/g,"")}));if(this.htmlWhiteListAppend.test("script")||this.htmlWhiteListAppend.test("ALL"))return r=r.replace(/| [^>]*>).*?<\/script>/gi,(function(e){return e.replace(/
    /gi,"")})),r}return Av()||(i.FORBID_ATTR=["data-sign","data-lines"]),i.ADD_TAGS||(i.ADD_TAGS=[]),"string"==typeof i.ADD_TAGS?i.ADD_TAGS+="|foreignObject":gd(i.ADD_TAGS)&&i.ADD_TAGS.push("foreignObject"),i.HTML_INTEGRATION_POINTS||(i.HTML_INTEGRATION_POINTS={}),i.HTML_INTEGRATION_POINTS.foreignobject=!0,gb.sanitize(r,i)}}])}(ap);nA(bb,"HOOK_NAME","htmlBlock");var wb={"+1":"1f44d","-1":"1f44e",100:"1f4af",1234:"1f522","1st_place_medal":"1f947","2nd_place_medal":"1f948","3rd_place_medal":"1f949","8ball":"1f3b1",a:"1f170",ab:"1f18e",abacus:"1f9ee",abc:"1f524",abcd:"1f521",accept:"1f251",adhesive_bandage:"1fa79",adult:"1f9d1",aerial_tramway:"1f6a1",afghanistan:"1f1e6-1f1eb",airplane:"2708",aland_islands:"1f1e6-1f1fd",alarm_clock:"23f0",albania:"1f1e6-1f1f1",alembic:"2697",algeria:"1f1e9-1f1ff",alien:"1f47d",ambulance:"1f691",american_samoa:"1f1e6-1f1f8",amphora:"1f3fa",anchor:"2693",andorra:"1f1e6-1f1e9",angel:"1f47c",anger:"1f4a2",angola:"1f1e6-1f1f4",angry:"1f620",anguilla:"1f1e6-1f1ee",anguished:"1f627",ant:"1f41c",antarctica:"1f1e6-1f1f6",antigua_barbuda:"1f1e6-1f1ec",apple:"1f34e",aquarius:"2652",argentina:"1f1e6-1f1f7",aries:"2648",armenia:"1f1e6-1f1f2",arrow_backward:"25c0",arrow_double_down:"23ec",arrow_double_up:"23eb",arrow_down:"2b07",arrow_down_small:"1f53d",arrow_forward:"25b6",arrow_heading_down:"2935",arrow_heading_up:"2934",arrow_left:"2b05",arrow_lower_left:"2199",arrow_lower_right:"2198",arrow_right:"27a1",arrow_right_hook:"21aa",arrow_up:"2b06",arrow_up_down:"2195",arrow_up_small:"1f53c",arrow_upper_left:"2196",arrow_upper_right:"2197",arrows_clockwise:"1f503",arrows_counterclockwise:"1f504",art:"1f3a8",articulated_lorry:"1f69b",artificial_satellite:"1f6f0",artist:"1f9d1-1f3a8",aruba:"1f1e6-1f1fc",ascension_island:"1f1e6-1f1e8",asterisk:"002a-20e3",astonished:"1f632",astronaut:"1f9d1-1f680",athletic_shoe:"1f45f",atm:"1f3e7",atom_symbol:"269b",australia:"1f1e6-1f1fa",austria:"1f1e6-1f1f9",auto_rickshaw:"1f6fa",avocado:"1f951",axe:"1fa93",azerbaijan:"1f1e6-1f1ff",b:"1f171",baby:"1f476",baby_bottle:"1f37c",baby_chick:"1f424",baby_symbol:"1f6bc",back:"1f519",bacon:"1f953",badger:"1f9a1",badminton:"1f3f8",bagel:"1f96f",baggage_claim:"1f6c4",baguette_bread:"1f956",bahamas:"1f1e7-1f1f8",bahrain:"1f1e7-1f1ed",balance_scale:"2696",bald_man:"1f468-1f9b2",bald_woman:"1f469-1f9b2",ballet_shoes:"1fa70",balloon:"1f388",ballot_box:"1f5f3",ballot_box_with_check:"2611",bamboo:"1f38d",banana:"1f34c",bangbang:"203c",bangladesh:"1f1e7-1f1e9",banjo:"1fa95",bank:"1f3e6",bar_chart:"1f4ca",barbados:"1f1e7-1f1e7",barber:"1f488",baseball:"26be",basket:"1f9fa",basketball:"1f3c0",basketball_man:"26f9-2642",basketball_woman:"26f9-2640",bat:"1f987",bath:"1f6c0",bathtub:"1f6c1",battery:"1f50b",beach_umbrella:"1f3d6",bear:"1f43b",bearded_person:"1f9d4",bed:"1f6cf",bee:"1f41d",beer:"1f37a",beers:"1f37b",beetle:"1f41e",beginner:"1f530",belarus:"1f1e7-1f1fe",belgium:"1f1e7-1f1ea",belize:"1f1e7-1f1ff",bell:"1f514",bellhop_bell:"1f6ce",benin:"1f1e7-1f1ef",bento:"1f371",bermuda:"1f1e7-1f1f2",beverage_box:"1f9c3",bhutan:"1f1e7-1f1f9",bicyclist:"1f6b4",bike:"1f6b2",biking_man:"1f6b4-2642",biking_woman:"1f6b4-2640",bikini:"1f459",billed_cap:"1f9e2",biohazard:"2623",bird:"1f426",birthday:"1f382",black_circle:"26ab",black_flag:"1f3f4",black_heart:"1f5a4",black_joker:"1f0cf",black_large_square:"2b1b",black_medium_small_square:"25fe",black_medium_square:"25fc",black_nib:"2712",black_small_square:"25aa",black_square_button:"1f532",blond_haired_man:"1f471-2642",blond_haired_person:"1f471",blond_haired_woman:"1f471-2640",blonde_woman:"1f471-2640",blossom:"1f33c",blowfish:"1f421",blue_book:"1f4d8",blue_car:"1f699",blue_heart:"1f499",blue_square:"1f7e6",blush:"1f60a",boar:"1f417",boat:"26f5",bolivia:"1f1e7-1f1f4",bomb:"1f4a3",bone:"1f9b4",book:"1f4d6",bookmark:"1f516",bookmark_tabs:"1f4d1",books:"1f4da",boom:"1f4a5",boot:"1f462",bosnia_herzegovina:"1f1e7-1f1e6",botswana:"1f1e7-1f1fc",bouncing_ball_man:"26f9-2642",bouncing_ball_person:"26f9",bouncing_ball_woman:"26f9-2640",bouquet:"1f490",bouvet_island:"1f1e7-1f1fb",bow:"1f647",bow_and_arrow:"1f3f9",bowing_man:"1f647-2642",bowing_woman:"1f647-2640",bowl_with_spoon:"1f963",bowling:"1f3b3",boxing_glove:"1f94a",boy:"1f466",brain:"1f9e0",brazil:"1f1e7-1f1f7",bread:"1f35e",breast_feeding:"1f931",bricks:"1f9f1",bride_with_veil:"1f470",bridge_at_night:"1f309",briefcase:"1f4bc",british_indian_ocean_territory:"1f1ee-1f1f4",british_virgin_islands:"1f1fb-1f1ec",broccoli:"1f966",broken_heart:"1f494",broom:"1f9f9",brown_circle:"1f7e4",brown_heart:"1f90e",brown_square:"1f7eb",brunei:"1f1e7-1f1f3",bug:"1f41b",building_construction:"1f3d7",bulb:"1f4a1",bulgaria:"1f1e7-1f1ec",bullettrain_front:"1f685",bullettrain_side:"1f684",burkina_faso:"1f1e7-1f1eb",burrito:"1f32f",burundi:"1f1e7-1f1ee",bus:"1f68c",business_suit_levitating:"1f574",busstop:"1f68f",bust_in_silhouette:"1f464",busts_in_silhouette:"1f465",butter:"1f9c8",butterfly:"1f98b",cactus:"1f335",cake:"1f370",calendar:"1f4c6",call_me_hand:"1f919",calling:"1f4f2",cambodia:"1f1f0-1f1ed",camel:"1f42b",camera:"1f4f7",camera_flash:"1f4f8",cameroon:"1f1e8-1f1f2",camping:"1f3d5",canada:"1f1e8-1f1e6",canary_islands:"1f1ee-1f1e8",cancer:"264b",candle:"1f56f",candy:"1f36c",canned_food:"1f96b",canoe:"1f6f6",cape_verde:"1f1e8-1f1fb",capital_abcd:"1f520",capricorn:"2651",car:"1f697",card_file_box:"1f5c3",card_index:"1f4c7",card_index_dividers:"1f5c2",caribbean_netherlands:"1f1e7-1f1f6",carousel_horse:"1f3a0",carrot:"1f955",cartwheeling:"1f938",cat:"1f431",cat2:"1f408",cayman_islands:"1f1f0-1f1fe",cd:"1f4bf",central_african_republic:"1f1e8-1f1eb",ceuta_melilla:"1f1ea-1f1e6",chad:"1f1f9-1f1e9",chains:"26d3",chair:"1fa91",champagne:"1f37e",chart:"1f4b9",chart_with_downwards_trend:"1f4c9",chart_with_upwards_trend:"1f4c8",checkered_flag:"1f3c1",cheese:"1f9c0",cherries:"1f352",cherry_blossom:"1f338",chess_pawn:"265f",chestnut:"1f330",chicken:"1f414",child:"1f9d2",children_crossing:"1f6b8",chile:"1f1e8-1f1f1",chipmunk:"1f43f",chocolate_bar:"1f36b",chopsticks:"1f962",christmas_island:"1f1e8-1f1fd",christmas_tree:"1f384",church:"26ea",cinema:"1f3a6",circus_tent:"1f3aa",city_sunrise:"1f307",city_sunset:"1f306",cityscape:"1f3d9",cl:"1f191",clamp:"1f5dc",clap:"1f44f",clapper:"1f3ac",classical_building:"1f3db",climbing:"1f9d7",climbing_man:"1f9d7-2642",climbing_woman:"1f9d7-2640",clinking_glasses:"1f942",clipboard:"1f4cb",clipperton_island:"1f1e8-1f1f5",clock1:"1f550",clock10:"1f559",clock1030:"1f565",clock11:"1f55a",clock1130:"1f566",clock12:"1f55b",clock1230:"1f567",clock130:"1f55c",clock2:"1f551",clock230:"1f55d",clock3:"1f552",clock330:"1f55e",clock4:"1f553",clock430:"1f55f",clock5:"1f554",clock530:"1f560",clock6:"1f555",clock630:"1f561",clock7:"1f556",clock730:"1f562",clock8:"1f557",clock830:"1f563",clock9:"1f558",clock930:"1f564",closed_book:"1f4d5",closed_lock_with_key:"1f510",closed_umbrella:"1f302",cloud:"2601",cloud_with_lightning:"1f329",cloud_with_lightning_and_rain:"26c8",cloud_with_rain:"1f327",cloud_with_snow:"1f328",clown_face:"1f921",clubs:"2663",cn:"1f1e8-1f1f3",coat:"1f9e5",cocktail:"1f378",coconut:"1f965",cocos_islands:"1f1e8-1f1e8",coffee:"2615",coffin:"26b0",cold_face:"1f976",cold_sweat:"1f630",collision:"1f4a5",colombia:"1f1e8-1f1f4",comet:"2604",comoros:"1f1f0-1f1f2",compass:"1f9ed",computer:"1f4bb",computer_mouse:"1f5b1",confetti_ball:"1f38a",confounded:"1f616",confused:"1f615",congo_brazzaville:"1f1e8-1f1ec",congo_kinshasa:"1f1e8-1f1e9",congratulations:"3297",construction:"1f6a7",construction_worker:"1f477",construction_worker_man:"1f477-2642",construction_worker_woman:"1f477-2640",control_knobs:"1f39b",convenience_store:"1f3ea",cook:"1f9d1-1f373",cook_islands:"1f1e8-1f1f0",cookie:"1f36a",cool:"1f192",cop:"1f46e",copyright:"00a9",corn:"1f33d",costa_rica:"1f1e8-1f1f7",cote_divoire:"1f1e8-1f1ee",couch_and_lamp:"1f6cb",couple:"1f46b",couple_with_heart:"1f491",couple_with_heart_man_man:"1f468-2764-1f468",couple_with_heart_woman_man:"1f469-2764-1f468",couple_with_heart_woman_woman:"1f469-2764-1f469",couplekiss:"1f48f",couplekiss_man_man:"1f468-2764-1f48b-1f468",couplekiss_man_woman:"1f469-2764-1f48b-1f468",couplekiss_woman_woman:"1f469-2764-1f48b-1f469",cow:"1f42e",cow2:"1f404",cowboy_hat_face:"1f920",crab:"1f980",crayon:"1f58d",credit_card:"1f4b3",crescent_moon:"1f319",cricket:"1f997",cricket_game:"1f3cf",croatia:"1f1ed-1f1f7",crocodile:"1f40a",croissant:"1f950",crossed_fingers:"1f91e",crossed_flags:"1f38c",crossed_swords:"2694",crown:"1f451",cry:"1f622",crying_cat_face:"1f63f",crystal_ball:"1f52e",cuba:"1f1e8-1f1fa",cucumber:"1f952",cup_with_straw:"1f964",cupcake:"1f9c1",cupid:"1f498",curacao:"1f1e8-1f1fc",curling_stone:"1f94c",curly_haired_man:"1f468-1f9b1",curly_haired_woman:"1f469-1f9b1",curly_loop:"27b0",currency_exchange:"1f4b1",curry:"1f35b",cursing_face:"1f92c",custard:"1f36e",customs:"1f6c3",cut_of_meat:"1f969",cyclone:"1f300",cyprus:"1f1e8-1f1fe",czech_republic:"1f1e8-1f1ff",dagger:"1f5e1",dancer:"1f483",dancers:"1f46f",dancing_men:"1f46f-2642",dancing_women:"1f46f-2640",dango:"1f361",dark_sunglasses:"1f576",dart:"1f3af",dash:"1f4a8",date:"1f4c5",de:"1f1e9-1f1ea",deaf_man:"1f9cf-2642",deaf_person:"1f9cf",deaf_woman:"1f9cf-2640",deciduous_tree:"1f333",deer:"1f98c",denmark:"1f1e9-1f1f0",department_store:"1f3ec",derelict_house:"1f3da",desert:"1f3dc",desert_island:"1f3dd",desktop_computer:"1f5a5",detective:"1f575",diamond_shape_with_a_dot_inside:"1f4a0",diamonds:"2666",diego_garcia:"1f1e9-1f1ec",disappointed:"1f61e",disappointed_relieved:"1f625",diving_mask:"1f93f",diya_lamp:"1fa94",dizzy:"1f4ab",dizzy_face:"1f635",djibouti:"1f1e9-1f1ef",dna:"1f9ec",do_not_litter:"1f6af",dog:"1f436",dog2:"1f415",dollar:"1f4b5",dolls:"1f38e",dolphin:"1f42c",dominica:"1f1e9-1f1f2",dominican_republic:"1f1e9-1f1f4",door:"1f6aa",doughnut:"1f369",dove:"1f54a",dragon:"1f409",dragon_face:"1f432",dress:"1f457",dromedary_camel:"1f42a",drooling_face:"1f924",drop_of_blood:"1fa78",droplet:"1f4a7",drum:"1f941",duck:"1f986",dumpling:"1f95f",dvd:"1f4c0","e-mail":"1f4e7",eagle:"1f985",ear:"1f442",ear_of_rice:"1f33e",ear_with_hearing_aid:"1f9bb",earth_africa:"1f30d",earth_americas:"1f30e",earth_asia:"1f30f",ecuador:"1f1ea-1f1e8",egg:"1f95a",eggplant:"1f346",egypt:"1f1ea-1f1ec",eight:"0038-20e3",eight_pointed_black_star:"2734",eight_spoked_asterisk:"2733",eject_button:"23cf",el_salvador:"1f1f8-1f1fb",electric_plug:"1f50c",elephant:"1f418",elf:"1f9dd",elf_man:"1f9dd-2642",elf_woman:"1f9dd-2640",email:"2709",end:"1f51a",england:"1f3f4-e0067-e0062-e0065-e006e-e0067-e007f",envelope:"2709",envelope_with_arrow:"1f4e9",equatorial_guinea:"1f1ec-1f1f6",eritrea:"1f1ea-1f1f7",es:"1f1ea-1f1f8",estonia:"1f1ea-1f1ea",ethiopia:"1f1ea-1f1f9",eu:"1f1ea-1f1fa",euro:"1f4b6",european_castle:"1f3f0",european_post_office:"1f3e4",european_union:"1f1ea-1f1fa",evergreen_tree:"1f332",exclamation:"2757",exploding_head:"1f92f",expressionless:"1f611",eye:"1f441",eye_speech_bubble:"1f441-1f5e8",eyeglasses:"1f453",eyes:"1f440",face_with_head_bandage:"1f915",face_with_thermometer:"1f912",facepalm:"1f926",facepunch:"1f44a",factory:"1f3ed",factory_worker:"1f9d1-1f3ed",fairy:"1f9da",fairy_man:"1f9da-2642",fairy_woman:"1f9da-2640",falafel:"1f9c6",falkland_islands:"1f1eb-1f1f0",fallen_leaf:"1f342",family:"1f46a",family_man_boy:"1f468-1f466",family_man_boy_boy:"1f468-1f466-1f466",family_man_girl:"1f468-1f467",family_man_girl_boy:"1f468-1f467-1f466",family_man_girl_girl:"1f468-1f467-1f467",family_man_man_boy:"1f468-1f468-1f466",family_man_man_boy_boy:"1f468-1f468-1f466-1f466",family_man_man_girl:"1f468-1f468-1f467",family_man_man_girl_boy:"1f468-1f468-1f467-1f466",family_man_man_girl_girl:"1f468-1f468-1f467-1f467",family_man_woman_boy:"1f468-1f469-1f466",family_man_woman_boy_boy:"1f468-1f469-1f466-1f466",family_man_woman_girl:"1f468-1f469-1f467",family_man_woman_girl_boy:"1f468-1f469-1f467-1f466",family_man_woman_girl_girl:"1f468-1f469-1f467-1f467",family_woman_boy:"1f469-1f466",family_woman_boy_boy:"1f469-1f466-1f466",family_woman_girl:"1f469-1f467",family_woman_girl_boy:"1f469-1f467-1f466",family_woman_girl_girl:"1f469-1f467-1f467",family_woman_woman_boy:"1f469-1f469-1f466",family_woman_woman_boy_boy:"1f469-1f469-1f466-1f466",family_woman_woman_girl:"1f469-1f469-1f467",family_woman_woman_girl_boy:"1f469-1f469-1f467-1f466",family_woman_woman_girl_girl:"1f469-1f469-1f467-1f467",farmer:"1f9d1-1f33e",faroe_islands:"1f1eb-1f1f4",fast_forward:"23e9",fax:"1f4e0",fearful:"1f628",feet:"1f43e",female_detective:"1f575-2640",female_sign:"2640",ferris_wheel:"1f3a1",ferry:"26f4",field_hockey:"1f3d1",fiji:"1f1eb-1f1ef",file_cabinet:"1f5c4",file_folder:"1f4c1",film_projector:"1f4fd",film_strip:"1f39e",finland:"1f1eb-1f1ee",fire:"1f525",fire_engine:"1f692",fire_extinguisher:"1f9ef",firecracker:"1f9e8",firefighter:"1f9d1-1f692",fireworks:"1f386",first_quarter_moon:"1f313",first_quarter_moon_with_face:"1f31b",fish:"1f41f",fish_cake:"1f365",fishing_pole_and_fish:"1f3a3",fist:"270a",fist_left:"1f91b",fist_oncoming:"1f44a",fist_raised:"270a",fist_right:"1f91c",five:"0035-20e3",flags:"1f38f",flamingo:"1f9a9",flashlight:"1f526",flat_shoe:"1f97f",fleur_de_lis:"269c",flight_arrival:"1f6ec",flight_departure:"1f6eb",flipper:"1f42c",floppy_disk:"1f4be",flower_playing_cards:"1f3b4",flushed:"1f633",flying_disc:"1f94f",flying_saucer:"1f6f8",fog:"1f32b",foggy:"1f301",foot:"1f9b6",football:"1f3c8",footprints:"1f463",fork_and_knife:"1f374",fortune_cookie:"1f960",fountain:"26f2",fountain_pen:"1f58b",four:"0034-20e3",four_leaf_clover:"1f340",fox_face:"1f98a",fr:"1f1eb-1f1f7",framed_picture:"1f5bc",free:"1f193",french_guiana:"1f1ec-1f1eb",french_polynesia:"1f1f5-1f1eb",french_southern_territories:"1f1f9-1f1eb",fried_egg:"1f373",fried_shrimp:"1f364",fries:"1f35f",frog:"1f438",frowning:"1f626",frowning_face:"2639",frowning_man:"1f64d-2642",frowning_person:"1f64d",frowning_woman:"1f64d-2640",fu:"1f595",fuelpump:"26fd",full_moon:"1f315",full_moon_with_face:"1f31d",funeral_urn:"26b1",gabon:"1f1ec-1f1e6",gambia:"1f1ec-1f1f2",game_die:"1f3b2",garlic:"1f9c4",gb:"1f1ec-1f1e7",gear:"2699",gem:"1f48e",gemini:"264a",genie:"1f9de",genie_man:"1f9de-2642",genie_woman:"1f9de-2640",georgia:"1f1ec-1f1ea",ghana:"1f1ec-1f1ed",ghost:"1f47b",gibraltar:"1f1ec-1f1ee",gift:"1f381",gift_heart:"1f49d",giraffe:"1f992",girl:"1f467",globe_with_meridians:"1f310",gloves:"1f9e4",goal_net:"1f945",goat:"1f410",goggles:"1f97d",golf:"26f3",golfing:"1f3cc",golfing_man:"1f3cc-2642",golfing_woman:"1f3cc-2640",gorilla:"1f98d",grapes:"1f347",greece:"1f1ec-1f1f7",green_apple:"1f34f",green_book:"1f4d7",green_circle:"1f7e2",green_heart:"1f49a",green_salad:"1f957",green_square:"1f7e9",greenland:"1f1ec-1f1f1",grenada:"1f1ec-1f1e9",grey_exclamation:"2755",grey_question:"2754",grimacing:"1f62c",grin:"1f601",grinning:"1f600",guadeloupe:"1f1ec-1f1f5",guam:"1f1ec-1f1fa",guard:"1f482",guardsman:"1f482-2642",guardswoman:"1f482-2640",guatemala:"1f1ec-1f1f9",guernsey:"1f1ec-1f1ec",guide_dog:"1f9ae",guinea:"1f1ec-1f1f3",guinea_bissau:"1f1ec-1f1fc",guitar:"1f3b8",gun:"1f52b",guyana:"1f1ec-1f1fe",haircut:"1f487",haircut_man:"1f487-2642",haircut_woman:"1f487-2640",haiti:"1f1ed-1f1f9",hamburger:"1f354",hammer:"1f528",hammer_and_pick:"2692",hammer_and_wrench:"1f6e0",hamster:"1f439",hand:"270b",hand_over_mouth:"1f92d",handbag:"1f45c",handball_person:"1f93e",handshake:"1f91d",hankey:"1f4a9",hash:"0023-20e3",hatched_chick:"1f425",hatching_chick:"1f423",headphones:"1f3a7",health_worker:"1f9d1-2695",hear_no_evil:"1f649",heard_mcdonald_islands:"1f1ed-1f1f2",heart:"2764",heart_decoration:"1f49f",heart_eyes:"1f60d",heart_eyes_cat:"1f63b",heartbeat:"1f493",heartpulse:"1f497",hearts:"2665",heavy_check_mark:"2714",heavy_division_sign:"2797",heavy_dollar_sign:"1f4b2",heavy_exclamation_mark:"2757",heavy_heart_exclamation:"2763",heavy_minus_sign:"2796",heavy_multiplication_x:"2716",heavy_plus_sign:"2795",hedgehog:"1f994",helicopter:"1f681",herb:"1f33f",hibiscus:"1f33a",high_brightness:"1f506",high_heel:"1f460",hiking_boot:"1f97e",hindu_temple:"1f6d5",hippopotamus:"1f99b",hocho:"1f52a",hole:"1f573",honduras:"1f1ed-1f1f3",honey_pot:"1f36f",honeybee:"1f41d",hong_kong:"1f1ed-1f1f0",horse:"1f434",horse_racing:"1f3c7",hospital:"1f3e5",hot_face:"1f975",hot_pepper:"1f336",hotdog:"1f32d",hotel:"1f3e8",hotsprings:"2668",hourglass:"231b",hourglass_flowing_sand:"23f3",house:"1f3e0",house_with_garden:"1f3e1",houses:"1f3d8",hugs:"1f917",hungary:"1f1ed-1f1fa",hushed:"1f62f",ice_cream:"1f368",ice_cube:"1f9ca",ice_hockey:"1f3d2",ice_skate:"26f8",icecream:"1f366",iceland:"1f1ee-1f1f8",id:"1f194",ideograph_advantage:"1f250",imp:"1f47f",inbox_tray:"1f4e5",incoming_envelope:"1f4e8",india:"1f1ee-1f1f3",indonesia:"1f1ee-1f1e9",infinity:"267e",information_desk_person:"1f481",information_source:"2139",innocent:"1f607",interrobang:"2049",iphone:"1f4f1",iran:"1f1ee-1f1f7",iraq:"1f1ee-1f1f6",ireland:"1f1ee-1f1ea",isle_of_man:"1f1ee-1f1f2",israel:"1f1ee-1f1f1",it:"1f1ee-1f1f9",izakaya_lantern:"1f3ee",jack_o_lantern:"1f383",jamaica:"1f1ef-1f1f2",japan:"1f5fe",japanese_castle:"1f3ef",japanese_goblin:"1f47a",japanese_ogre:"1f479",jeans:"1f456",jersey:"1f1ef-1f1ea",jigsaw:"1f9e9",jordan:"1f1ef-1f1f4",joy:"1f602",joy_cat:"1f639",joystick:"1f579",jp:"1f1ef-1f1f5",judge:"1f9d1-2696",juggling_person:"1f939",kaaba:"1f54b",kangaroo:"1f998",kazakhstan:"1f1f0-1f1ff",kenya:"1f1f0-1f1ea",key:"1f511",keyboard:"2328",keycap_ten:"1f51f",kick_scooter:"1f6f4",kimono:"1f458",kiribati:"1f1f0-1f1ee",kiss:"1f48b",kissing:"1f617",kissing_cat:"1f63d",kissing_closed_eyes:"1f61a",kissing_heart:"1f618",kissing_smiling_eyes:"1f619",kite:"1fa81",kiwi_fruit:"1f95d",kneeling_man:"1f9ce-2642",kneeling_person:"1f9ce",kneeling_woman:"1f9ce-2640",knife:"1f52a",koala:"1f428",koko:"1f201",kosovo:"1f1fd-1f1f0",kr:"1f1f0-1f1f7",kuwait:"1f1f0-1f1fc",kyrgyzstan:"1f1f0-1f1ec",lab_coat:"1f97c",label:"1f3f7",lacrosse:"1f94d",lantern:"1f3ee",laos:"1f1f1-1f1e6",large_blue_circle:"1f535",large_blue_diamond:"1f537",large_orange_diamond:"1f536",last_quarter_moon:"1f317",last_quarter_moon_with_face:"1f31c",latin_cross:"271d",latvia:"1f1f1-1f1fb",laughing:"1f606",leafy_green:"1f96c",leaves:"1f343",lebanon:"1f1f1-1f1e7",ledger:"1f4d2",left_luggage:"1f6c5",left_right_arrow:"2194",left_speech_bubble:"1f5e8",leftwards_arrow_with_hook:"21a9",leg:"1f9b5",lemon:"1f34b",leo:"264c",leopard:"1f406",lesotho:"1f1f1-1f1f8",level_slider:"1f39a",liberia:"1f1f1-1f1f7",libra:"264e",libya:"1f1f1-1f1fe",liechtenstein:"1f1f1-1f1ee",light_rail:"1f688",link:"1f517",lion:"1f981",lips:"1f444",lipstick:"1f484",lithuania:"1f1f1-1f1f9",lizard:"1f98e",llama:"1f999",lobster:"1f99e",lock:"1f512",lock_with_ink_pen:"1f50f",lollipop:"1f36d",loop:"27bf",lotion_bottle:"1f9f4",lotus_position:"1f9d8",lotus_position_man:"1f9d8-2642",lotus_position_woman:"1f9d8-2640",loud_sound:"1f50a",loudspeaker:"1f4e2",love_hotel:"1f3e9",love_letter:"1f48c",love_you_gesture:"1f91f",low_brightness:"1f505",luggage:"1f9f3",luxembourg:"1f1f1-1f1fa",lying_face:"1f925",m:"24c2",macau:"1f1f2-1f1f4",macedonia:"1f1f2-1f1f0",madagascar:"1f1f2-1f1ec",mag:"1f50d",mag_right:"1f50e",mage:"1f9d9",mage_man:"1f9d9-2642",mage_woman:"1f9d9-2640",magnet:"1f9f2",mahjong:"1f004",mailbox:"1f4eb",mailbox_closed:"1f4ea",mailbox_with_mail:"1f4ec",mailbox_with_no_mail:"1f4ed",malawi:"1f1f2-1f1fc",malaysia:"1f1f2-1f1fe",maldives:"1f1f2-1f1fb",male_detective:"1f575-2642",male_sign:"2642",mali:"1f1f2-1f1f1",malta:"1f1f2-1f1f9",man:"1f468",man_artist:"1f468-1f3a8",man_astronaut:"1f468-1f680",man_cartwheeling:"1f938-2642",man_cook:"1f468-1f373",man_dancing:"1f57a",man_facepalming:"1f926-2642",man_factory_worker:"1f468-1f3ed",man_farmer:"1f468-1f33e",man_firefighter:"1f468-1f692",man_health_worker:"1f468-2695",man_in_manual_wheelchair:"1f468-1f9bd",man_in_motorized_wheelchair:"1f468-1f9bc",man_in_tuxedo:"1f935",man_judge:"1f468-2696",man_juggling:"1f939-2642",man_mechanic:"1f468-1f527",man_office_worker:"1f468-1f4bc",man_pilot:"1f468-2708",man_playing_handball:"1f93e-2642",man_playing_water_polo:"1f93d-2642",man_scientist:"1f468-1f52c",man_shrugging:"1f937-2642",man_singer:"1f468-1f3a4",man_student:"1f468-1f393",man_teacher:"1f468-1f3eb",man_technologist:"1f468-1f4bb",man_with_gua_pi_mao:"1f472",man_with_probing_cane:"1f468-1f9af",man_with_turban:"1f473-2642",mandarin:"1f34a",mango:"1f96d",mans_shoe:"1f45e",mantelpiece_clock:"1f570",manual_wheelchair:"1f9bd",maple_leaf:"1f341",marshall_islands:"1f1f2-1f1ed",martial_arts_uniform:"1f94b",martinique:"1f1f2-1f1f6",mask:"1f637",massage:"1f486",massage_man:"1f486-2642",massage_woman:"1f486-2640",mate:"1f9c9",mauritania:"1f1f2-1f1f7",mauritius:"1f1f2-1f1fa",mayotte:"1f1fe-1f1f9",meat_on_bone:"1f356",mechanic:"1f9d1-1f527",mechanical_arm:"1f9be",mechanical_leg:"1f9bf",medal_military:"1f396",medal_sports:"1f3c5",medical_symbol:"2695",mega:"1f4e3",melon:"1f348",memo:"1f4dd",men_wrestling:"1f93c-2642",menorah:"1f54e",mens:"1f6b9",mermaid:"1f9dc-2640",merman:"1f9dc-2642",merperson:"1f9dc",metal:"1f918",metro:"1f687",mexico:"1f1f2-1f1fd",microbe:"1f9a0",micronesia:"1f1eb-1f1f2",microphone:"1f3a4",microscope:"1f52c",middle_finger:"1f595",milk_glass:"1f95b",milky_way:"1f30c",minibus:"1f690",minidisc:"1f4bd",mobile_phone_off:"1f4f4",moldova:"1f1f2-1f1e9",monaco:"1f1f2-1f1e8",money_mouth_face:"1f911",money_with_wings:"1f4b8",moneybag:"1f4b0",mongolia:"1f1f2-1f1f3",monkey:"1f412",monkey_face:"1f435",monocle_face:"1f9d0",monorail:"1f69d",montenegro:"1f1f2-1f1ea",montserrat:"1f1f2-1f1f8",moon:"1f314",moon_cake:"1f96e",morocco:"1f1f2-1f1e6",mortar_board:"1f393",mosque:"1f54c",mosquito:"1f99f",motor_boat:"1f6e5",motor_scooter:"1f6f5",motorcycle:"1f3cd",motorized_wheelchair:"1f9bc",motorway:"1f6e3",mount_fuji:"1f5fb",mountain:"26f0",mountain_bicyclist:"1f6b5",mountain_biking_man:"1f6b5-2642",mountain_biking_woman:"1f6b5-2640",mountain_cableway:"1f6a0",mountain_railway:"1f69e",mountain_snow:"1f3d4",mouse:"1f42d",mouse2:"1f401",movie_camera:"1f3a5",moyai:"1f5ff",mozambique:"1f1f2-1f1ff",mrs_claus:"1f936",muscle:"1f4aa",mushroom:"1f344",musical_keyboard:"1f3b9",musical_note:"1f3b5",musical_score:"1f3bc",mute:"1f507",myanmar:"1f1f2-1f1f2",nail_care:"1f485",name_badge:"1f4db",namibia:"1f1f3-1f1e6",national_park:"1f3de",nauru:"1f1f3-1f1f7",nauseated_face:"1f922",nazar_amulet:"1f9ff",necktie:"1f454",negative_squared_cross_mark:"274e",nepal:"1f1f3-1f1f5",nerd_face:"1f913",netherlands:"1f1f3-1f1f1",neutral_face:"1f610",new:"1f195",new_caledonia:"1f1f3-1f1e8",new_moon:"1f311",new_moon_with_face:"1f31a",new_zealand:"1f1f3-1f1ff",newspaper:"1f4f0",newspaper_roll:"1f5de",next_track_button:"23ed",ng:"1f196",ng_man:"1f645-2642",ng_woman:"1f645-2640",nicaragua:"1f1f3-1f1ee",niger:"1f1f3-1f1ea",nigeria:"1f1f3-1f1ec",night_with_stars:"1f303",nine:"0039-20e3",niue:"1f1f3-1f1fa",no_bell:"1f515",no_bicycles:"1f6b3",no_entry:"26d4",no_entry_sign:"1f6ab",no_good:"1f645",no_good_man:"1f645-2642",no_good_woman:"1f645-2640",no_mobile_phones:"1f4f5",no_mouth:"1f636",no_pedestrians:"1f6b7",no_smoking:"1f6ad","non-potable_water":"1f6b1",norfolk_island:"1f1f3-1f1eb",north_korea:"1f1f0-1f1f5",northern_mariana_islands:"1f1f2-1f1f5",norway:"1f1f3-1f1f4",nose:"1f443",notebook:"1f4d3",notebook_with_decorative_cover:"1f4d4",notes:"1f3b6",nut_and_bolt:"1f529",o:"2b55",o2:"1f17e",ocean:"1f30a",octopus:"1f419",oden:"1f362",office:"1f3e2",office_worker:"1f9d1-1f4bc",oil_drum:"1f6e2",ok:"1f197",ok_hand:"1f44c",ok_man:"1f646-2642",ok_person:"1f646",ok_woman:"1f646-2640",old_key:"1f5dd",older_adult:"1f9d3",older_man:"1f474",older_woman:"1f475",om:"1f549",oman:"1f1f4-1f1f2",on:"1f51b",oncoming_automobile:"1f698",oncoming_bus:"1f68d",oncoming_police_car:"1f694",oncoming_taxi:"1f696",one:"0031-20e3",one_piece_swimsuit:"1fa71",onion:"1f9c5",open_book:"1f4d6",open_file_folder:"1f4c2",open_hands:"1f450",open_mouth:"1f62e",open_umbrella:"2602",ophiuchus:"26ce",orange:"1f34a",orange_book:"1f4d9",orange_circle:"1f7e0",orange_heart:"1f9e1",orange_square:"1f7e7",orangutan:"1f9a7",orthodox_cross:"2626",otter:"1f9a6",outbox_tray:"1f4e4",owl:"1f989",ox:"1f402",oyster:"1f9aa",package:"1f4e6",page_facing_up:"1f4c4",page_with_curl:"1f4c3",pager:"1f4df",paintbrush:"1f58c",pakistan:"1f1f5-1f1f0",palau:"1f1f5-1f1fc",palestinian_territories:"1f1f5-1f1f8",palm_tree:"1f334",palms_up_together:"1f932",panama:"1f1f5-1f1e6",pancakes:"1f95e",panda_face:"1f43c",paperclip:"1f4ce",paperclips:"1f587",papua_new_guinea:"1f1f5-1f1ec",parachute:"1fa82",paraguay:"1f1f5-1f1fe",parasol_on_ground:"26f1",parking:"1f17f",parrot:"1f99c",part_alternation_mark:"303d",partly_sunny:"26c5",partying_face:"1f973",passenger_ship:"1f6f3",passport_control:"1f6c2",pause_button:"23f8",paw_prints:"1f43e",peace_symbol:"262e",peach:"1f351",peacock:"1f99a",peanuts:"1f95c",pear:"1f350",pen:"1f58a",pencil:"1f4dd",pencil2:"270f",penguin:"1f427",pensive:"1f614",people_holding_hands:"1f9d1-1f91d-1f9d1",performing_arts:"1f3ad",persevere:"1f623",person_bald:"1f9d1-1f9b2",person_curly_hair:"1f9d1-1f9b1",person_fencing:"1f93a",person_in_manual_wheelchair:"1f9d1-1f9bd",person_in_motorized_wheelchair:"1f9d1-1f9bc",person_red_hair:"1f9d1-1f9b0",person_white_hair:"1f9d1-1f9b3",person_with_probing_cane:"1f9d1-1f9af",person_with_turban:"1f473",peru:"1f1f5-1f1ea",petri_dish:"1f9eb",philippines:"1f1f5-1f1ed",phone:"260e",pick:"26cf",pie:"1f967",pig:"1f437",pig2:"1f416",pig_nose:"1f43d",pill:"1f48a",pilot:"1f9d1-2708",pinching_hand:"1f90f",pineapple:"1f34d",ping_pong:"1f3d3",pirate_flag:"1f3f4-2620",pisces:"2653",pitcairn_islands:"1f1f5-1f1f3",pizza:"1f355",place_of_worship:"1f6d0",plate_with_cutlery:"1f37d",play_or_pause_button:"23ef",pleading_face:"1f97a",point_down:"1f447",point_left:"1f448",point_right:"1f449",point_up:"261d",point_up_2:"1f446",poland:"1f1f5-1f1f1",police_car:"1f693",police_officer:"1f46e",policeman:"1f46e-2642",policewoman:"1f46e-2640",poodle:"1f429",poop:"1f4a9",popcorn:"1f37f",portugal:"1f1f5-1f1f9",post_office:"1f3e3",postal_horn:"1f4ef",postbox:"1f4ee",potable_water:"1f6b0",potato:"1f954",pouch:"1f45d",poultry_leg:"1f357",pound:"1f4b7",pout:"1f621",pouting_cat:"1f63e",pouting_face:"1f64e",pouting_man:"1f64e-2642",pouting_woman:"1f64e-2640",pray:"1f64f",prayer_beads:"1f4ff",pregnant_woman:"1f930",pretzel:"1f968",previous_track_button:"23ee",prince:"1f934",princess:"1f478",printer:"1f5a8",probing_cane:"1f9af",puerto_rico:"1f1f5-1f1f7",punch:"1f44a",purple_circle:"1f7e3",purple_heart:"1f49c",purple_square:"1f7ea",purse:"1f45b",pushpin:"1f4cc",put_litter_in_its_place:"1f6ae",qatar:"1f1f6-1f1e6",question:"2753",rabbit:"1f430",rabbit2:"1f407",raccoon:"1f99d",racehorse:"1f40e",racing_car:"1f3ce",radio:"1f4fb",radio_button:"1f518",radioactive:"2622",rage:"1f621",railway_car:"1f683",railway_track:"1f6e4",rainbow:"1f308",rainbow_flag:"1f3f3-1f308",raised_back_of_hand:"1f91a",raised_eyebrow:"1f928",raised_hand:"270b",raised_hand_with_fingers_splayed:"1f590",raised_hands:"1f64c",raising_hand:"1f64b",raising_hand_man:"1f64b-2642",raising_hand_woman:"1f64b-2640",ram:"1f40f",ramen:"1f35c",rat:"1f400",razor:"1fa92",receipt:"1f9fe",record_button:"23fa",recycle:"267b",red_car:"1f697",red_circle:"1f534",red_envelope:"1f9e7",red_haired_man:"1f468-1f9b0",red_haired_woman:"1f469-1f9b0",red_square:"1f7e5",registered:"00ae",relaxed:"263a",relieved:"1f60c",reminder_ribbon:"1f397",repeat:"1f501",repeat_one:"1f502",rescue_worker_helmet:"26d1",restroom:"1f6bb",reunion:"1f1f7-1f1ea",revolving_hearts:"1f49e",rewind:"23ea",rhinoceros:"1f98f",ribbon:"1f380",rice:"1f35a",rice_ball:"1f359",rice_cracker:"1f358",rice_scene:"1f391",right_anger_bubble:"1f5ef",ring:"1f48d",ringed_planet:"1fa90",robot:"1f916",rocket:"1f680",rofl:"1f923",roll_eyes:"1f644",roll_of_paper:"1f9fb",roller_coaster:"1f3a2",romania:"1f1f7-1f1f4",rooster:"1f413",rose:"1f339",rosette:"1f3f5",rotating_light:"1f6a8",round_pushpin:"1f4cd",rowboat:"1f6a3",rowing_man:"1f6a3-2642",rowing_woman:"1f6a3-2640",ru:"1f1f7-1f1fa",rugby_football:"1f3c9",runner:"1f3c3",running:"1f3c3",running_man:"1f3c3-2642",running_shirt_with_sash:"1f3bd",running_woman:"1f3c3-2640",rwanda:"1f1f7-1f1fc",sa:"1f202",safety_pin:"1f9f7",safety_vest:"1f9ba",sagittarius:"2650",sailboat:"26f5",sake:"1f376",salt:"1f9c2",samoa:"1f1fc-1f1f8",san_marino:"1f1f8-1f1f2",sandal:"1f461",sandwich:"1f96a",santa:"1f385",sao_tome_principe:"1f1f8-1f1f9",sari:"1f97b",sassy_man:"1f481-2642",sassy_woman:"1f481-2640",satellite:"1f4e1",satisfied:"1f606",saudi_arabia:"1f1f8-1f1e6",sauna_man:"1f9d6-2642",sauna_person:"1f9d6",sauna_woman:"1f9d6-2640",sauropod:"1f995",saxophone:"1f3b7",scarf:"1f9e3",school:"1f3eb",school_satchel:"1f392",scientist:"1f9d1-1f52c",scissors:"2702",scorpion:"1f982",scorpius:"264f",scotland:"1f3f4-e0067-e0062-e0073-e0063-e0074-e007f",scream:"1f631",scream_cat:"1f640",scroll:"1f4dc",seat:"1f4ba",secret:"3299",see_no_evil:"1f648",seedling:"1f331",selfie:"1f933",senegal:"1f1f8-1f1f3",serbia:"1f1f7-1f1f8",service_dog:"1f415-1f9ba",seven:"0037-20e3",seychelles:"1f1f8-1f1e8",shallow_pan_of_food:"1f958",shamrock:"2618",shark:"1f988",shaved_ice:"1f367",sheep:"1f411",shell:"1f41a",shield:"1f6e1",shinto_shrine:"26e9",ship:"1f6a2",shirt:"1f455",poo:"1f4a9",shoe:"1f45e",shopping:"1f6cd",shopping_cart:"1f6d2",shorts:"1fa73",shower:"1f6bf",shrimp:"1f990",shrug:"1f937",shushing_face:"1f92b",sierra_leone:"1f1f8-1f1f1",signal_strength:"1f4f6",singapore:"1f1f8-1f1ec",singer:"1f9d1-1f3a4",sint_maarten:"1f1f8-1f1fd",six:"0036-20e3",six_pointed_star:"1f52f",skateboard:"1f6f9",ski:"1f3bf",skier:"26f7",skull:"1f480",skull_and_crossbones:"2620",skunk:"1f9a8",sled:"1f6f7",sleeping:"1f634",sleeping_bed:"1f6cc",sleepy:"1f62a",slightly_frowning_face:"1f641",slightly_smiling_face:"1f642",slot_machine:"1f3b0",sloth:"1f9a5",slovakia:"1f1f8-1f1f0",slovenia:"1f1f8-1f1ee",small_airplane:"1f6e9",small_blue_diamond:"1f539",small_orange_diamond:"1f538",small_red_triangle:"1f53a",small_red_triangle_down:"1f53b",smile:"1f604",smile_cat:"1f638",smiley:"1f603",smiley_cat:"1f63a",smiling_face_with_three_hearts:"1f970",smiling_imp:"1f608",smirk:"1f60f",smirk_cat:"1f63c",smoking:"1f6ac",snail:"1f40c",snake:"1f40d",sneezing_face:"1f927",snowboarder:"1f3c2",snowflake:"2744",snowman:"26c4",snowman_with_snow:"2603",soap:"1f9fc",sob:"1f62d",soccer:"26bd",socks:"1f9e6",softball:"1f94e",solomon_islands:"1f1f8-1f1e7",somalia:"1f1f8-1f1f4",soon:"1f51c",sos:"1f198",sound:"1f509",south_africa:"1f1ff-1f1e6",south_georgia_south_sandwich_islands:"1f1ec-1f1f8",south_sudan:"1f1f8-1f1f8",space_invader:"1f47e",spades:"2660",spaghetti:"1f35d",sparkle:"2747",sparkler:"1f387",sparkles:"2728",sparkling_heart:"1f496",speak_no_evil:"1f64a",speaker:"1f508",speaking_head:"1f5e3",speech_balloon:"1f4ac",speedboat:"1f6a4",spider:"1f577",spider_web:"1f578",spiral_calendar:"1f5d3",spiral_notepad:"1f5d2",sponge:"1f9fd",spoon:"1f944",squid:"1f991",sri_lanka:"1f1f1-1f1f0",st_barthelemy:"1f1e7-1f1f1",st_helena:"1f1f8-1f1ed",st_kitts_nevis:"1f1f0-1f1f3",st_lucia:"1f1f1-1f1e8",st_martin:"1f1f2-1f1eb",st_pierre_miquelon:"1f1f5-1f1f2",st_vincent_grenadines:"1f1fb-1f1e8",stadium:"1f3df",standing_man:"1f9cd-2642",standing_person:"1f9cd",standing_woman:"1f9cd-2640",star:"2b50",star2:"1f31f",star_and_crescent:"262a",star_of_david:"2721",star_struck:"1f929",stars:"1f320",station:"1f689",statue_of_liberty:"1f5fd",steam_locomotive:"1f682",stethoscope:"1fa7a",stew:"1f372",stop_button:"23f9",stop_sign:"1f6d1",stopwatch:"23f1",straight_ruler:"1f4cf",strawberry:"1f353",stuck_out_tongue:"1f61b",stuck_out_tongue_closed_eyes:"1f61d",stuck_out_tongue_winking_eye:"1f61c",student:"1f9d1-1f393",studio_microphone:"1f399",stuffed_flatbread:"1f959",sudan:"1f1f8-1f1e9",sun_behind_large_cloud:"1f325",sun_behind_rain_cloud:"1f326",sun_behind_small_cloud:"1f324",sun_with_face:"1f31e",sunflower:"1f33b",sunglasses:"1f60e",sunny:"2600",sunrise:"1f305",sunrise_over_mountains:"1f304",superhero:"1f9b8",superhero_man:"1f9b8-2642",superhero_woman:"1f9b8-2640",supervillain:"1f9b9",supervillain_man:"1f9b9-2642",supervillain_woman:"1f9b9-2640",surfer:"1f3c4",surfing_man:"1f3c4-2642",surfing_woman:"1f3c4-2640",suriname:"1f1f8-1f1f7",sushi:"1f363",suspension_railway:"1f69f",svalbard_jan_mayen:"1f1f8-1f1ef",swan:"1f9a2",swaziland:"1f1f8-1f1ff",sweat:"1f613",sweat_drops:"1f4a6",sweat_smile:"1f605",sweden:"1f1f8-1f1ea",sweet_potato:"1f360",swim_brief:"1fa72",swimmer:"1f3ca",swimming_man:"1f3ca-2642",swimming_woman:"1f3ca-2640",switzerland:"1f1e8-1f1ed",symbols:"1f523",synagogue:"1f54d",syria:"1f1f8-1f1fe",syringe:"1f489","t-rex":"1f996",taco:"1f32e",tada:"1f389",taiwan:"1f1f9-1f1fc",tajikistan:"1f1f9-1f1ef",takeout_box:"1f961",tanabata_tree:"1f38b",tangerine:"1f34a",tanzania:"1f1f9-1f1ff",taurus:"2649",taxi:"1f695",tea:"1f375",teacher:"1f9d1-1f3eb",technologist:"1f9d1-1f4bb",teddy_bear:"1f9f8",telephone:"260e",telephone_receiver:"1f4de",telescope:"1f52d",tennis:"1f3be",tent:"26fa",test_tube:"1f9ea",thailand:"1f1f9-1f1ed",thermometer:"1f321",thinking:"1f914",thought_balloon:"1f4ad",thread:"1f9f5",three:"0033-20e3",thumbsdown:"1f44e",thumbsup:"1f44d",ticket:"1f3ab",tickets:"1f39f",tiger:"1f42f",tiger2:"1f405",timer_clock:"23f2",timor_leste:"1f1f9-1f1f1",tipping_hand_man:"1f481-2642",tipping_hand_person:"1f481",tipping_hand_woman:"1f481-2640",tired_face:"1f62b",tm:"2122",togo:"1f1f9-1f1ec",toilet:"1f6bd",tokelau:"1f1f9-1f1f0",tokyo_tower:"1f5fc",tomato:"1f345",tonga:"1f1f9-1f1f4",tongue:"1f445",toolbox:"1f9f0",tooth:"1f9b7",top:"1f51d",tophat:"1f3a9",tornado:"1f32a",tr:"1f1f9-1f1f7",trackball:"1f5b2",tractor:"1f69c",traffic_light:"1f6a5",train:"1f68b",train2:"1f686",tram:"1f68a",triangular_flag_on_post:"1f6a9",triangular_ruler:"1f4d0",trident:"1f531",trinidad_tobago:"1f1f9-1f1f9",tristan_da_cunha:"1f1f9-1f1e6",triumph:"1f624",trolleybus:"1f68e",trophy:"1f3c6",tropical_drink:"1f379",tropical_fish:"1f420",truck:"1f69a",trumpet:"1f3ba",tshirt:"1f455",tulip:"1f337",tumbler_glass:"1f943",tunisia:"1f1f9-1f1f3",turkey:"1f983",turkmenistan:"1f1f9-1f1f2",turks_caicos_islands:"1f1f9-1f1e8",turtle:"1f422",tuvalu:"1f1f9-1f1fb",tv:"1f4fa",twisted_rightwards_arrows:"1f500",two:"0032-20e3",two_hearts:"1f495",two_men_holding_hands:"1f46c",two_women_holding_hands:"1f46d",u5272:"1f239",u5408:"1f234",u55b6:"1f23a",u6307:"1f22f",u6708:"1f237",u6709:"1f236",u6e80:"1f235",u7121:"1f21a",u7533:"1f238",u7981:"1f232",u7a7a:"1f233",uganda:"1f1fa-1f1ec",uk:"1f1ec-1f1e7",ukraine:"1f1fa-1f1e6",umbrella:"2614",unamused:"1f612",underage:"1f51e",unicorn:"1f984",united_arab_emirates:"1f1e6-1f1ea",united_nations:"1f1fa-1f1f3",unlock:"1f513",up:"1f199",upside_down_face:"1f643",uruguay:"1f1fa-1f1fe",us:"1f1fa-1f1f8",us_outlying_islands:"1f1fa-1f1f2",us_virgin_islands:"1f1fb-1f1ee",uzbekistan:"1f1fa-1f1ff",v:"270c",vampire:"1f9db",vampire_man:"1f9db-2642",vampire_woman:"1f9db-2640",vanuatu:"1f1fb-1f1fa",vatican_city:"1f1fb-1f1e6",venezuela:"1f1fb-1f1ea",vertical_traffic_light:"1f6a6",vhs:"1f4fc",vibration_mode:"1f4f3",video_camera:"1f4f9",video_game:"1f3ae",vietnam:"1f1fb-1f1f3",violin:"1f3bb",virgo:"264d",volcano:"1f30b",volleyball:"1f3d0",vomiting_face:"1f92e",vs:"1f19a",vulcan_salute:"1f596",waffle:"1f9c7",wales:"1f3f4-e0067-e0062-e0077-e006c-e0073-e007f",walking:"1f6b6",walking_man:"1f6b6-2642",walking_woman:"1f6b6-2640",wallis_futuna:"1f1fc-1f1eb",waning_crescent_moon:"1f318",waning_gibbous_moon:"1f316",warning:"26a0",wastebasket:"1f5d1",watch:"231a",water_buffalo:"1f403",water_polo:"1f93d",watermelon:"1f349",wave:"1f44b",wavy_dash:"3030",waxing_crescent_moon:"1f312",waxing_gibbous_moon:"1f314",wc:"1f6be",weary:"1f629",wedding:"1f492",weight_lifting:"1f3cb",weight_lifting_man:"1f3cb-2642",weight_lifting_woman:"1f3cb-2640",western_sahara:"1f1ea-1f1ed",whale:"1f433",whale2:"1f40b",wheel_of_dharma:"2638",wheelchair:"267f",white_check_mark:"2705",white_circle:"26aa",white_flag:"1f3f3",white_flower:"1f4ae",white_haired_man:"1f468-1f9b3",white_haired_woman:"1f469-1f9b3",white_heart:"1f90d",white_large_square:"2b1c",white_medium_small_square:"25fd",white_medium_square:"25fb",white_small_square:"25ab",white_square_button:"1f533",wilted_flower:"1f940",wind_chime:"1f390",wind_face:"1f32c",wine_glass:"1f377",wink:"1f609",wolf:"1f43a",woman:"1f469",woman_artist:"1f469-1f3a8",woman_astronaut:"1f469-1f680",woman_cartwheeling:"1f938-2640",woman_cook:"1f469-1f373",woman_dancing:"1f483",woman_facepalming:"1f926-2640",woman_factory_worker:"1f469-1f3ed",woman_farmer:"1f469-1f33e",woman_firefighter:"1f469-1f692",woman_health_worker:"1f469-2695",woman_in_manual_wheelchair:"1f469-1f9bd",woman_in_motorized_wheelchair:"1f469-1f9bc",woman_judge:"1f469-2696",woman_juggling:"1f939-2640",woman_mechanic:"1f469-1f527",woman_office_worker:"1f469-1f4bc",woman_pilot:"1f469-2708",woman_playing_handball:"1f93e-2640",woman_playing_water_polo:"1f93d-2640",woman_scientist:"1f469-1f52c",woman_shrugging:"1f937-2640",woman_singer:"1f469-1f3a4",woman_student:"1f469-1f393",woman_teacher:"1f469-1f3eb",woman_technologist:"1f469-1f4bb",woman_with_headscarf:"1f9d5",woman_with_probing_cane:"1f469-1f9af",woman_with_turban:"1f473-2640",womans_clothes:"1f45a",womans_hat:"1f452",women_wrestling:"1f93c-2640",womens:"1f6ba",woozy_face:"1f974",world_map:"1f5fa",worried:"1f61f",wrench:"1f527",wrestling:"1f93c",writing_hand:"270d",x:"274c",yarn:"1f9f6",yawning_face:"1f971",yellow_circle:"1f7e1",yellow_heart:"1f49b",yellow_square:"1f7e8",yemen:"1f1fe-1f1ea",yen:"1f4b4",yin_yang:"262f",yo_yo:"1fa80",yum:"1f60b",zambia:"1f1ff-1f1f2",zany_face:"1f92a",zap:"26a1",zebra:"1f993",zero:"0030-20e3",zimbabwe:"1f1ff-1f1fc",zipper_mouth_face:"1f910",zombie:"1f9df",zombie_man:"1f9df-2642",zombie_woman:"1f9df-2640",zzz:"1f4a4"};function Bb(e,t){var n=TA(e);if(Qi){var r=Qi(e);t&&(r=Di(r).call(r,(function(t){return $i(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cb(e){for(var t=1;t>>0===o))throw new RangeError("Invalid code point: ".concat(o));o<=65535?t=e.push(o):(o-=65536,t=e.push(55296+(o>>10),o%1024+56320)),t>=16383&&(n+=String.fromCharCode.apply(null,e),e.length=0)}return n+String.fromCharCode.apply(null,e)}var Sb=function(e){function t(){var e,n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config;if(eo(this,t),(e=kb(this,t,[{config:n}])).options={useUnicode:!0,upperCase:!1,customHandled:!1,resourceURL:"https://github.githubassets.com/images/icons/emoji/unicode/${code}.png?v8",emojis:Cb({},wb)},"object"!==Ua(n))return Na(e);var r=n.useUnicode,i=n.customResourceURL,o=n.customRenderer,a=n.upperCase;return e.options.useUnicode="boolean"==typeof r?r:e.options.useUnicode,e.options.upperCase="boolean"==typeof a?a:e.options.upperCase,!1===r&&"string"==typeof i&&(e.options.resourceURL=i),"function"==typeof o&&(e.options.customHandled=!0,e.options.customRenderer=o),e}return tA(t,e),Da(t,[{key:"makeHtml",value:function(e,t){var n=this;return this.test(e)?e.replace(this.RULE.reg,(function(e,t){var r;if(n.options.customHandled&&"function"==typeof n.options.customRenderer)return n.options.customRenderer(t);var i=n.options.emojis[t];if("string"!=typeof i)return e;if(n.options.useUnicode){var o,a=wf(o=i.split("-")).call(o,(function(e){return"0x".concat(e)}));return Eb.apply(void 0,Fg(a))}n.options.upperCase&&(i=i.toUpperCase());var A=n.options.resourceURL.replace(/\$\{code\}/g,i);return oA(r='')).call(r,Zf(t),'')})):e}},{key:"rule",value:function(){var e={begin:":",content:"([a-zA-Z0-9+_]+?)",end:":"};return e.reg=Ed(e,"g"),e}}])}(gf);function xb(e,t,n){return t=za(t),Na(e,Qb()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function Qb(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(Qb=function(){return!!e})()}nA(Sb,"HOOK_NAME","emoji");var Lb=function(e){function t(){return eo(this,t),xb(this,t,arguments)}return tA(t,e),Da(t,[{key:"makeHtml",value:function(e){return this.test(e)?e.replace(this.RULE.reg,'$1$2$3'):e}},{key:"rule",value:function(){var e={begin:"(^| )\\/",end:"\\/( |$)",content:"([^\\n]+?)"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}])}(gf);function Ib(e,t,n){return t=za(t),Na(e,Fb()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function Fb(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(Fb=function(){return!!e})()}nA(Lb,"HOOK_NAME","underline");var Ub=function(e){function t(){return eo(this,t),Ib(this,t,arguments)}return tA(t,e),Da(t,[{key:"makeHtml",value:function(e){return this.test(e)?e.replace(this.RULE.reg,"$1$2$3"):e}},{key:"rule",value:function(){var e={begin:"(^| )==",end:"==( |$|\\n)",content:"([^\\n]+?)"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}])}(gf);nA(Ub,"HOOK_NAME","highLight");var _b=cn.includes,Mb=s((function(){return!Array(1).includes()}));Fn({target:"Array",proto:!0,forced:Mb},{includes:function(e){return _b(this,e,arguments.length>1?arguments[1]:void 0)}}),Go();var Hb=_i("Array","includes"),Db=y("".indexOf);Fn({target:"String",proto:!0,forced:!Zu("includes")},{includes:function(e){return!!~Db(Br(O(this)),Br(Yu(e)),arguments.length>1?arguments[1]:void 0)}});var Ob=_i("String","includes"),Nb=Hb,Rb=Ob,Pb=Array.prototype,$b=String.prototype,Kb=function(e){var t=e.includes;return e===Pb||te(Pb,e)&&t===Pb.includes?Nb:"string"==typeof e||e===$b||te($b,e)&&t===$b.includes?Rb:t};var Xb=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,A=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){A=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(A)throw o}}}}function rw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n",keyword:"》",value:">"}],lw=[{icon:"FullWidth",label:"[]",keyword:"【】",value:"[]",goLeft:1},{icon:"FullWidth",label:"【】",keyword:"【",value:"【】",goLeft:1},{icon:"link",label:"Link",keyword:"【】",value:"[title](https://url)",selection:{from:19,to:14}},{icon:"FullWidth",label:"()",keyword:"(",value:"()",goLeft:1},{icon:"FullWidth",label:"()",keyword:"(",value:"()",goLeft:1},{icon:"FullWidth",label:"<>",keyword:"《》",value:"<>",goLeft:1},{icon:"FullWidth",label:"《》",keyword:"《》",value:"《》",goLeft:1},{icon:"FullWidth",label:'""',keyword:"“”",value:'""',goLeft:1},{icon:"FullWidth",label:"“”",keyword:"“”",value:"”“",goLeft:1},{icon:"FullWidth",label:"inlineCode",keyword:"`",value:"``",goLeft:1},{icon:"FullWidth",label:"codeBlock",keyword:"`",value:"```\n\n```\n",goTop:2}],cw=(iw=wf(tw).call(tw,(function(e){return{icon:"FullWidth",label:e,keyword:"```",value:"```".concat(e,"\n\n```\n"),goTop:2,exactMatch:!0}})),ow=[],UA(tw).call(tw,(function(e){var t,n="",r=nw(e);try{for(r.s();!(t=r.n()).done;)n+=t.value,ow.push({icon:"FullWidth",label:e,keyword:"```".concat(n),value:"```".concat(e,"\n\n```\n"),goTop:2,exactMatch:!0})}catch(e){r.e(e)}finally{r.f()}})),oA(iw).call(iw,ow)),uw=oA(Yb=oA(sw).call(sw,lw)).call(Yb,cw);var hw=function(){return"CodeMirror.Pass"};function dw(e,t){var n=void 0!==fd&&pd(e)||e["@@iterator"];if(!n){if(gd(e)||(n=function(e,t){if(e){var n;if("string"==typeof e)return fw(e,t);var r=Hh(n={}.toString.call(e)).call(n,8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?zu(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?fw(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,A=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){A=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(A)throw o}}}}function fw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n')).call(s,n)).call(A,r,""):!1===(null===(i=this.suggester[n])||void 0===i?void 0:i.echo)?"".concat(t):this.suggester[n]?r?t+r:"".concat(t):t+r}},{key:"rule",value:function(){var e,t,n,r,i,o,a,A=this;if(null===(e=this.config)||void 0===e||!e.suggester||TA(null===(t=this.config)||void 0===t?void 0:t.suggester).length<=0)return{};gd(this.config.suggester)?i=wf(o=this.config.suggester).call(o,(function(e){return e.keyword||""})):i=wf(a=TA(this.config.suggester)).call(a,(function(e){return A.config.suggester[e].keyword||""}));var s=wf(i).call(i,(function(e){return Zb(e)})).join("|");return{reg:new RegExp(oA(n=oA(r="".concat(Sd()?"((?
    '),this.searchCache=!1,this.searchKeyCache=[],this.optionList=[],this.cursorMove=!0,this.suggesterConfig={},this.$cherry=t}),[{key:"tryCreatePanel",value:function(){!this.$suggesterPanel&&Av()&&document&&(this.$cherry.wrapperDom.appendChild(this.createDom(this.panelWrap)),this.$suggesterPanel=this.$cherry.wrapperDom.querySelector(".cherry-suggester-panel"))}},{key:"hasEditor",value:function(){return!!this.editor&&!!this.editor.editor.display&&!!this.editor.editor.display.wrapper}},{key:"setEditor",value:function(e){this.editor=e}},{key:"setSuggester",value:function(e){this.suggesterConfig=e}},{key:"bindEvent",value:function(){var e=this;if(this.editor.options.showSuggestList){var t=!1;this.editor.editor.on("change",(function(n,r){t=!0,e.onCodeMirrorChange(n,r)})),this.editor.editor.on("keydown",(function(n,r){t=!0,e.enableRelate()&&e.onKeyDown(n,r)})),this.editor.editor.on("cursorActivity",(function(){t||e.stopRelate(),t=!1}));var n=this.editor.editor.getOption("extraKeys"),r=["Up","Down","Enter"];UA(r).call(r,(function(t){if("function"==typeof n[t]){var r=n[t];n[t]=function(t){if(e.cursorMove){var n=r.call(t,t);if(n)return n}}}else if(n[t]){if("string"==typeof n[t]){var i=n[t];n[t]=function(t){e.cursorMove&&e.editor.editor.execCommand(i)}}}else n[t]=function(){if(e.cursorMove)return hw()}})),this.editor.editor.setOption("extraKeys",n),this.editor.editor.on("scroll",(function(t,n){e.searchCache&&e.relocatePanel(e.editor.editor)})),this.onClickPanelItem()}}},{key:"onClickPanelItem",value:function(){var e=this;this.tryCreatePanel(),this.$suggesterPanel.addEventListener("click",(function(t){var n=function(e,t){var n,r=-1;return UA(n=e.childNodes).call(n,(function(e,n){return e===t?r=n:""})),r}(e.$suggesterPanel,t.target);n>-1&&e.pasteSelectResult(n),e.stopRelate()}),!1)}},{key:"showSuggesterPanel",value:function(e){var t=e.left,n=e.top,r=e.items;this.tryCreatePanel(),!this.$suggesterPanel&&Av()&&(this.$cherry.wrapperDom.appendChild(this.createDom(this.panelWrap)),this.$suggesterPanel=this.$cherry.wrapperDom.querySelector(".cherry-suggester-panel")),this.updatePanel(r),this.$suggesterPanel.style.left="".concat(t,"px"),this.$suggesterPanel.style.top="".concat(n,"px"),this.$suggesterPanel.style.display="block",this.$suggesterPanel.style.position="absolute",this.$suggesterPanel.style.zIndex="100"}},{key:"hideSuggesterPanel",value:function(){this.tryCreatePanel(),this.$suggesterPanel&&(this.$suggesterPanel.style.display="none")}},{key:"updatePanel",value:function(e){var t=this;this.tryCreatePanel();var n=wf(e).call(e,(function(e,n){if("object"===Ua(e)&&null!==e){var r,i=e.label;if(null!=e&&e.icon)i=oA(r='')).call(r,i);return t.renderPanelItem(i,!1)}return t.renderPanelItem(e,!1)})).join(""),r=this.suggesterConfig[this.keyword];r&&"function"==typeof r.suggestListRender&&(n=r.suggestListRender.call(this,e)||n),this.$suggesterPanel.innerHTML="","string"==typeof n?this.$suggesterPanel.innerHTML=n:gd(n)&&n.length>0?UA(n).call(n,(function(e){t.$suggesterPanel.appendChild(e)})):"object"===Ua(n)&&1===n.nodeType&&this.$suggesterPanel.appendChild(n)}},{key:"renderPanelItem",value:function(e,t){return t?'
    '.concat(e,"
    "):'
    '.concat(e,"
    ")}},{key:"createDom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.template||(this.template=document.createElement("div")),this.template.innerHTML=Lu(e).call(e);var t=document.createDocumentFragment();return wf(Array.prototype).call(this.template.childNodes,(function(e,n){t.appendChild(e)})),t}},{key:"relocatePanel",value:function(e){var t=this.$cherry.wrapperDom.querySelector(".CodeMirror-cursors .CodeMirror-cursor");if(t||(t=this.$cherry.wrapperDom.querySelector(".CodeMirror-selected")),!t)return!1;var n=this.$cherry.wrapperDom.getBoundingClientRect(),r=t.getBoundingClientRect(),i=r.top+r.height+5-n.top,o=r.left-n.left;this.showSuggesterPanel({left:o,top:i,items:this.optionList})}},{key:"getCursorPos",value:function(e){var t=document.querySelector(".CodeMirror-cursors .CodeMirror-cursor");if(!t)return null;var n=e.getCursor(),r=e.lineInfo(n.line).handle.height,i=t.getBoundingClientRect(),o=i.top+r;return{left:i.left,top:o}}},{key:"startRelate",value:function(e,t,n){this.cursorFrom=n,this.keyword=t,this.searchCache=!0,this.relocatePanel(e)}},{key:"stopRelate",value:function(){this.hideSuggesterPanel(),this.cursorFrom=null,this.cursorTo=null,this.keyword="",this.searchKeyCache=[],this.searchCache=!1,this.cursorMove=!0,this.optionList=[]}},{key:"pasteSelectResult",value:function(e,t){if(this.cursorTo&&this.cursorTo!==this.cursorFrom||(this.cursorTo=JSON.parse(hu(this.cursorFrom))),this.cursorTo){this.cursorTo.ch+=1;var n=this.cursorFrom,r=this.cursorTo;if(this.optionList[e]){var i="";if("object"===Ua(this.optionList[e])&&null!==this.optionList[e]&&"string"==typeof this.optionList[e].value)i=this.optionList[e].value;else if("object"===Ua(this.optionList[e])&&null!==this.optionList[e]&&"function"==typeof this.optionList[e].value)i=this.optionList[e].value();else{var o;i=oA(o=" ".concat(this.keyword)).call(o,this.optionList[e]," ")}if(i&&this.editor.editor.replaceRange(i,n,r),this.optionList[e].goLeft){var a=this.editor.editor.getCursor();this.editor.editor.setCursor(a.line,a.ch-this.optionList[e].goLeft)}if(this.optionList[e].goTop){var A=this.editor.editor.getCursor();this.editor.editor.setCursor(A.line-this.optionList[e].goTop,A.ch)}if(this.optionList[e].selection){var s=this.editor.editor.getCursor().line,l=this.editor.editor.getCursor().ch;this.editor.editor.setSelection({line:s,ch:l-this.optionList[e].selection.from},{line:s,ch:l-this.optionList[e].selection.to})}}}}},{key:"findSelectedItemIndex",value:function(){return of(Array.prototype).call(this.$suggesterPanel.childNodes,(function(e){return e.classList.contains("cherry-suggester-panel__item--selected")}))}},{key:"enableRelate",value:function(){return this.searchCache}},{key:"onCodeMirrorChange",value:function(e,t){var n=this,r=t.text,i=t.from,o=t.to,a=t.origin,A=1===r.length?r[0]:"";if(!this.enableRelate()&&this.suggesterConfig[A]&&this.startRelate(e,A,i),this.enableRelate()&&(A||"+delete"===a)){var s;if(this.cursorTo=o,A)this.searchKeyCache.push(A);else if("+delete"===a&&(this.searchKeyCache.pop(),0===this.searchKeyCache.length))return void this.stopRelate();"function"==typeof(null===(s=this.suggesterConfig[this.keyword])||void 0===s?void 0:s.suggestList)&&this.suggesterConfig[this.keyword].suggestList(this.searchKeyCache.join(""),(function(e){!1!==e?(n.optionList=e&&e.length?e:[],n.updatePanel(n.optionList)):n.stopRelate()}))}}},{key:"onKeyDown",value:function(e,t){var n,r=this;if(this.tryCreatePanel(),!this.$suggesterPanel)return!1;var i=t.keyCode;if(Kb(n=[38,40]).call(n,i)){if(0===this.optionList.length)return void gA((function(){r.stopRelate()}),0);this.cursorMove=!1;var o=this.$suggesterPanel.querySelector(".cherry-suggester-panel__item--selected")||this.$suggesterPanel.querySelector(".cherry-suggester-panel__item:last-child"),a=null;38!==i||o.previousElementSibling?40!==i||o.nextElementSibling?38===i?a=o.previousElementSibling:40===i&&(a=o.nextElementSibling):a=this.$suggesterPanel.firstElementChild:a=this.$suggesterPanel.lastElementChild,o.classList.remove("cherry-suggester-panel__item--selected"),a.classList.add("cherry-suggester-panel__item--selected");var A=this.$suggesterPanel.offsetHeight,s=this.$suggesterPanel.scrollTop,l=s+A,c=a.offsetTop,u=a.offsetHeight;(cl)&&(this.$suggesterPanel.scrollTop=c-A/2)}else if(13===i){var h=this.findSelectedItemIndex();h>=0&&(t.stopPropagation(),this.cursorMove=!1,this.pasteSelectResult(h,t),e.focus()),gA((function(){r.stopRelate()}),0)}else 27!==i&&37!==i&&39!==i||(t.stopPropagation(),e.focus(),gA((function(){r.stopRelate()}),0))}}])}();function yw(e,t,n){return t=za(t),Na(e,bw()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function bw(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(bw=function(){return!!e})()}var ww=function(e){function t(){return eo(this,t),yw(this,t,arguments)}return tA(t,e),Da(t,[{key:"makeHtml",value:function(e){return this.test(e)?e.replace(this.RULE.reg,"$1$2$3$4"):e}},{key:"rule",value:function(){var e={begin:"(^| )\\{",end:"\\}( |$)",content:"([^\n]+?)\\|([^\n]+?)"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}])}(gf);function Bw(e,t,n){return t=za(t),Na(e,Cw()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function Cw(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(Cw=function(){return!!e})()}nA(ww,"HOOK_NAME","ruby");var kw=function(e){function t(e){var n;eo(this,t),n=Bw(this,t,[{needCache:!0}]);var r=e.config,i=r.enableJustify,o=void 0!==i&&i,a=r.enableAlign,A=void 0!==a&&a,s=r.enablePanel,l=void 0===s||s;return n.enableAlign=o||A,n.enablePanel=l,n.initBrReg(e.globalConfig.classicBr),n}return tA(t,e),Da(t,[{key:"makeHtml",value:function(e,t){var n=this;return e.replace(this.RULE.reg,(function(e,r,i,o){var a,A,s,l,c,u=n.$getTargetType(i);if(!n.enablePanel&&/primary|info|warning|danger|success/i.test(u))return e;if(!n.enableAlign&&/(left|right|center|justify)/i.test(u))return e;var h=n.getLineCount(e,r),d=n.$engine.hash(e),f=n.testHasCache(d);if(!1!==f)return Bf(e,f);var p=n.$getPanelInfo(i,o,t),g=p.title,m=p.body,v=p.appendStyle,y=p.className;return Bf(e,n.pushCache(oA(a=oA(A=oA(s=oA(l=oA(c='
    ")).call(A,g)).call(a,m,"
    "),d,h))}))}},{key:"$getClassByType",value:function(e){return/(left|right|center|justify)/i.test(e)?"cherry-text-align cherry-text-align__".concat(e):"cherry-panel cherry-panel__".concat(e)}},{key:"$getPanelInfo",value:function(e,t,n){var r,i=this,o={type:this.$getTargetType(e),title:n(this.$getTitle(e)).html,body:t,appendStyle:"",className:""};o.className=this.$getClassByType(o.type),/(left|right|center|justify)/i.test(o.type)&&(o.appendStyle='style="text-align:'.concat(o.type,';"')),o.title=oA(r='
    ')).call(r,o.title,"
    ");var a=function(e){var t,r;if(""===Lu(e).call(e))return"";var o=n(e).html,a="p";return new RegExp("<(".concat(zf,")[^>]*>"),"i").test(o)&&(a="div"),oA(t=oA(r="<".concat(a,">")).call(r,i.$cleanParagraph(o),"")},A="";return A=this.isContainsCache(o.body)?this.makeExcludingCached(o.body,a):a(o.body),o.body='
    '.concat(A,"
    "),o}},{key:"$getTitle",value:function(e){var t=Lu(e).call(e);return/\s/.test(t)?t.replace(/[^\s]+\s/,""):""}},{key:"$getTargetType",value:function(e){var t=/\s/.test(Lu(e).call(e))?Lu(e).call(e).replace(/\s.*$/,""):e;switch(Lu(t).call(t).toLowerCase()){case"primary":case"p":default:return"primary";case"info":case"i":return"info";case"warning":case"w":return"warning";case"danger":case"d":return"danger";case"success":case"s":return"success";case"right":case"r":return"right";case"center":case"c":return"center";case"left":case"l":return"left";case"justify":case"j":return"justify"}}},{key:"rule",value:function(){return $d()}}])}(ap);function Tw(e,t,n){return t=za(t),Na(e,Ew()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function Ew(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(Ew=function(){return!!e})()}nA(kw,"HOOK_NAME","panel");var Sw=function(e){function t(){return eo(this,t),Tw(this,t,[{needCache:!0}])}return tA(t,e),Da(t,[{key:"makeHtml",value:function(e,t){var n=this;return e.replace(this.RULE.reg,(function(e,r,i,o,a){var A,s,l,c=n.getLineCount(e,r),u=n.$engine.hash(e),h=n.testHasCache(u);if(!1!==h)return Bf(e,h);var d=n.$getDetailInfo(i,o,a,t),f=d.type,p=d.html;return Bf(e,n.pushCache(oA(A=oA(s=oA(l='
    ')).call(A,p,"
    "),u,c))}))}},{key:"$getDetailInfo",value:function(e,t,n,r){var i=this,o=/\n\s*(\+\+|\+\+-)\s*[^\n]+\n/.test(n)?"multiple":"single",a=n.split(/\n\s*(\+\+[-]{0,1}\s*[^\n]+)\n/),A="-"===e,s=t,l="";return"multiple"===o?UA(a).call(a,(function(e){if(/^\s*\+\+/.test(e))return A=/^\s*\+\+-/.test(e),s=e.replace(/\+\+[-]{0,1}\s*([^\n]+)$/,"$1"),!0;l+=i.$getDetailHtml(A,s,e,r)})):l=this.$getDetailHtml(A,s,n,r),{type:o,html:l}}},{key:"$getDetailHtml",value:function(e,t,n,r){var i=this,o="
    "),a=function(e){var t,n;if(""===Lu(e).call(e))return"";var o=r(e).html,a="p";return new RegExp("<(".concat(zf,")[^>]*>"),"i").test(o)&&(a="div"),oA(t=oA(n="<".concat(a,">")).call(n,i.$cleanParagraph(o),"")};o+="".concat(r(t).html,"");var A="";return A=this.isContainsCache(n)?this.makeExcludingCached(n,a):a(n),o+='
    '.concat(A,"
    "),o+="
    "}},{key:"rule",value:function(){return Kd()}}])}(ap);function xw(e,t,n){return t=za(t),Na(e,Qw()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function Qw(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(Qw=function(){return!!e})()}nA(Sw,"HOOK_NAME","detail");var Lw=function(e){function t(e){return eo(this,t),xw(this,t,[{needCache:!0}])}return tA(t,e),Da(t,[{key:"beforeMakeHtml",value:function(e){var t=this;return e.replace(this.RULE.reg,(function(e,n){var r,i,o,a,A,s=null!==(r=null===(i=e.match(/\n/g))||void 0===i?void 0:i.length)&&void 0!==r?r:0,l="fontMatter".concat(s);try{A=JSON.parse(Lu(n).call(n))}catch(e){var c=Lu(n).call(n).split("\n");A={},UA(c).call(c,(function(e){var t=Uh(e.split(":"),2),n=t[0],r=t[1];if("string"==typeof n&&"string"==typeof r){if(n.length>1024)return;A[Lu(n).call(n)]=Lu(r).call(r)}}))}if(TA(A).length<=0)return e;("font-size"in A||"fontSize"in A)&&(t.$engine.$cherry.previewer.getDom().style.fontSize=A["font-size"]||A.fontSize);var u=oA(o=oA(a='

    '),h=t.pushCache(u,l,s);return"".concat(h,"\n")}))}},{key:"makeHtml",value:function(e,t){return e}},{key:"rule",value:function(){var e={begin:"^\\s*-{3}[^\\n]*\\n",end:"\\n-{3}[^\\n]*\\n",content:"([\\s\\S]+?)"};return e.reg=Ed(e,"g",!0),e}}])}(ap);nA(Lw,"HOOK_NAME","frontMatter");var Iw=[Lw,sm,um,Kv,Rv,bb,ny,oy,Km,cv,av,Iv,Zv,Rm,dv,xv,Sw,kw,xm,Sb,yv,Bm,_v,Tm,$g,Ng,Vg,nm,Zg,ww,qg,Lb,Ub,mw];Fp("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),Up);var Fw=TypeError,Uw=ee("Set"),_w=Uw.prototype,Mw={Set:Uw,add:_p("add",1),has:_p("has",1),remove:_p("delete",1),proto:_w},Hw=function(e,t,n){return n?Jp(e.keys(),t,!0):e.forEach(t)},Dw=Mw.Set,Ow=Mw.add,Nw=function(e){return{iterator:e,next:e.next,done:!1}},Rw="Invalid size",Pw=RangeError,$w=TypeError,Kw=Math.max,Xw=function(e,t){this.set=e,this.size=Kw(t,0),this.has=se(e.has),this.keys=se(e.keys)};Xw.prototype={getIterator:function(){return Nw(st(le(this.keys,this.set)))},includes:function(e){return le(this.has,this.set,e)}};var Vw=function(e){if("object"==typeof e&&"size"in e&&"has"in e&&"add"in e&&"delete"in e&&"keys"in e)return e;throw new Fw(ae(e)+" is not a set")},Gw=function(e){var t=new Dw;return Hw(e,(function(e){Ow(t,e)})),t},jw=function(e){return e.size},Ww=function(e){st(e);var t=+e.size;if(t!=t)throw new $w(Rw);var n=tn(t);if(n<0)throw new Pw(Rw);return new Xw(e,n)},zw=Mw.has,qw=Mw.remove,Jw=function(e){var t=Vw(this),n=Ww(e),r=Gw(t);return jw(t)<=n.size?Hw(t,(function(e){n.includes(e)&&qw(r,e)})):Jp(n.getIterator(),(function(e){zw(t,e)&&qw(r,e)})),r},Yw=function(){return!1};Fn({target:"Set",proto:!0,real:!0,forced:!Yw()},{difference:Jw});var Zw=Mw.Set,eB=Mw.add,tB=Mw.has,nB=function(e){var t=Vw(this),n=Ww(e),r=new Zw;return jw(t)>n.size?Jp(n.getIterator(),(function(e){tB(t,e)&&eB(r,e)})):Hw(t,(function(e){n.includes(e)&&eB(r,e)})),r},rB=!Yw()||s((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}));Fn({target:"Set",proto:!0,real:!0,forced:rB},{intersection:nB});var iB=Mw.has,oB=function(e){var t=Vw(this),n=Ww(e);if(jw(t)<=n.size)return!1!==Hw(t,(function(e){if(n.includes(e))return!1}),!0);var r=n.getIterator();return!1!==Jp(r,(function(e){if(iB(t,e))return Iu(r,"normal",!1)}))};Fn({target:"Set",proto:!0,real:!0,forced:!Yw()},{isDisjointFrom:oB});var aB=function(e){var t=Vw(this),n=Ww(e);return!(jw(t)>n.size)&&!1!==Hw(t,(function(e){if(!n.includes(e))return!1}),!0)};Fn({target:"Set",proto:!0,real:!0,forced:!Yw()},{isSubsetOf:aB});var AB=Mw.has,sB=function(e){var t=Vw(this),n=Ww(e);if(jw(t)0&&void 0!==arguments[0]?arguments[0]:"";this.originMd=e}},{key:"handleSyncRenderCompleted",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.md=e,0===this.pendingRenderers.size&&this.handleAllCompleted()}},{key:"add",value:function(e){this.pendingRenderers.add(e)}},{key:"done",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).replacer,n=void 0===t?function(e){return e}:t;this.pendingRenderers.has(e)&&(this.pendingRenderers.delete(e),this.md=n(this.md),0===this.pendingRenderers.size&&this.handleAllCompleted())}},{key:"clear",value:function(){this.pendingRenderers.clear(),this.originMd="",this.md=""}},{key:"handleAllCompleted",value:function(){var e,t;this.$cherry.$event?this.$cherry.$event.emit("afterAsyncRender",{markdownText:this.originMd,html:this.md}):null===(e=this.$cherry.options.callback)||void 0===e||null===(t=e.afterAsyncRender)||void 0===t||t.call(e,this.originMd,this.md)}}])}();const mB=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((e=>e.charCodeAt(0)))),vB=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((e=>e.charCodeAt(0))));var yB;const bB=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),wB=null!==(yB=String.fromCodePoint)&&void 0!==yB?yB:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};var BB;!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(BB||(BB={}));var CB,kB,TB,EB,SB,xB;function QB(e){return e>=BB.ZERO&&e<=BB.NINE}function LB(e){return e===BB.EQUALS||function(e){return e>=BB.UPPER_A&&e<=BB.UPPER_Z||e>=BB.LOWER_A&&e<=BB.LOWER_Z||QB(e)}(e)}!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(CB||(CB={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(kB||(kB={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(TB||(TB={}));class IB{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=kB.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=TB.Strict}startEntity(e){this.decodeMode=e,this.state=kB.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case kB.EntityStart:return e.charCodeAt(t)===BB.NUM?(this.state=kB.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=kB.NamedEntity,this.stateNamedEntity(e,t));case kB.NumericStart:return this.stateNumericStart(e,t);case kB.NumericDecimal:return this.stateNumericDecimal(e,t);case kB.NumericHex:return this.stateNumericHex(e,t);case kB.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===BB.LOWER_X?(this.state=kB.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=kB.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){const i=n-t;this.result=this.result*Math.pow(r,i)+Number.parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){const n=t;for(;t=BB.UPPER_A&&r<=BB.UPPER_F||r>=BB.LOWER_A&&r<=BB.LOWER_F)))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(i,3);t+=1}var r;return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t=55296&&e<=57343||e>1114111?65533:null!==(t=bB.get(e))&&void 0!==t?t:e}(this.result),this.consumed),this.errors&&(e!==BB.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let r=n[this.treeIndex],i=(r&CB.VALUE_LENGTH)>>14;for(;t>14,0!==i){if(o===BB.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==TB.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,r=(n[t]&CB.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~CB.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case kB.NamedEntity:return 0===this.result||this.decodeMode===TB.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case kB.NumericDecimal:return this.emitNumericEntity(0,2);case kB.NumericHex:return this.emitNumericEntity(0,3);case kB.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case kB.EntityStart:return 0}}}function FB(e,t,n,r){const i=(t&CB.BRANCH_LENGTH)>>7,o=t&CB.JUMP_TABLE;if(0===i)return 0!==o&&r===o?n:-1;if(o){const t=r-o;return t<0||t>=i?-1:e[n+t]-1}let a=n,A=a+i-1;for(;a<=A;){const t=a+A>>>1,n=e[t];if(nr))return e[t+i];A=t-1}}return-1}function UB(e){return e===EB.Space||e===EB.NewLine||e===EB.Tab||e===EB.FormFeed||e===EB.CarriageReturn}function _B(e){return e===EB.Slash||e===EB.Gt||UB(e)}!function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Number=35]="Number",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"}(EB||(EB={})),function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.BeforeSpecialT=23]="BeforeSpecialT",e[e.SpecialStartSequence=24]="SpecialStartSequence",e[e.InSpecialTag=25]="InSpecialTag",e[e.InEntity=26]="InEntity"}(SB||(SB={})),function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"}(xB||(xB={}));const MB={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97]),XmpEnd:new Uint8Array([60,47,120,109,112])};class HB{constructor({xmlMode:e=!1,decodeEntities:t=!0},n){this.cbs=n,this.state=SB.Text,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=SB.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.xmlMode=e,this.decodeEntities=t,this.entityDecoder=new IB(e?vB:mB,((e,t)=>this.emitCodePoint(e,t)))}reset(){this.state=SB.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=SB.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=SB.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===EB.Amp&&this.startEntity()}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(t?_B(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.isSpecial=!1;this.sequenceIndex=0,this.state=SB.InTagName,this.stateInTagName(e)}stateInSpecialTag(e){if(this.sequenceIndex===this.currentSequence.length){if(e===EB.Gt||UB(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart=EB.LowerA&&e<=EB.LowerZ||e>=EB.UpperA&&e<=EB.UpperZ}(e)}startSpecial(e,t){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=t,this.state=SB.SpecialStartSequence}stateBeforeTagName(e){if(e===EB.ExclamationMark)this.state=SB.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===EB.Questionmark)this.state=SB.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){const t=32|e;this.sectionStart=this.index,this.xmlMode?this.state=SB.InTagName:t===MB.ScriptEnd[2]?this.state=SB.BeforeSpecialS:t===MB.TitleEnd[2]||t===MB.XmpEnd[2]?this.state=SB.BeforeSpecialT:this.state=SB.InTagName}else e===EB.Slash?this.state=SB.BeforeClosingTagName:(this.state=SB.Text,this.stateText(e))}stateInTagName(e){_B(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=SB.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateBeforeClosingTagName(e){UB(e)||(e===EB.Gt?this.state=SB.Text:(this.state=this.isTagStartChar(e)?SB.InClosingTagName:SB.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(e){(e===EB.Gt||UB(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=SB.AfterClosingTagName,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){(e===EB.Gt||this.fastForwardTo(EB.Gt))&&(this.state=SB.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(e){e===EB.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=SB.InSpecialTag,this.sequenceIndex=0):this.state=SB.Text,this.sectionStart=this.index+1):e===EB.Slash?this.state=SB.InSelfClosingTag:UB(e)||(this.state=SB.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(e){e===EB.Gt?(this.cbs.onselfclosingtag(this.index),this.state=SB.Text,this.sectionStart=this.index+1,this.isSpecial=!1):UB(e)||(this.state=SB.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateInAttributeName(e){(e===EB.Eq||_B(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=this.index,this.state=SB.AfterAttributeName,this.stateAfterAttributeName(e))}stateAfterAttributeName(e){e===EB.Eq?this.state=SB.BeforeAttributeValue:e===EB.Slash||e===EB.Gt?(this.cbs.onattribend(xB.NoValue,this.sectionStart),this.sectionStart=-1,this.state=SB.BeforeAttributeName,this.stateBeforeAttributeName(e)):UB(e)||(this.cbs.onattribend(xB.NoValue,this.sectionStart),this.state=SB.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(e){e===EB.DoubleQuote?(this.state=SB.InAttributeValueDq,this.sectionStart=this.index+1):e===EB.SingleQuote?(this.state=SB.InAttributeValueSq,this.sectionStart=this.index+1):UB(e)||(this.sectionStart=this.index,this.state=SB.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))}handleInAttributeValue(e,t){e===t||!this.decodeEntities&&this.fastForwardTo(t)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(t===EB.DoubleQuote?xB.Double:xB.Single,this.index+1),this.state=SB.BeforeAttributeName):this.decodeEntities&&e===EB.Amp&&this.startEntity()}stateInAttributeValueDoubleQuotes(e){this.handleInAttributeValue(e,EB.DoubleQuote)}stateInAttributeValueSingleQuotes(e){this.handleInAttributeValue(e,EB.SingleQuote)}stateInAttributeValueNoQuotes(e){UB(e)||e===EB.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(xB.Unquoted,this.index),this.state=SB.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===EB.Amp&&this.startEntity()}stateBeforeDeclaration(e){e===EB.OpeningSquareBracket?(this.state=SB.CDATASequence,this.sequenceIndex=0):this.state=e===EB.Dash?SB.BeforeComment:SB.InDeclaration}stateInDeclaration(e){(e===EB.Gt||this.fastForwardTo(EB.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=SB.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(e===EB.Gt||this.fastForwardTo(EB.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=SB.Text,this.sectionStart=this.index+1)}stateBeforeComment(e){e===EB.Dash?(this.state=SB.InCommentLike,this.currentSequence=MB.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=SB.InDeclaration}stateInSpecialComment(e){(e===EB.Gt||this.fastForwardTo(EB.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=SB.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){const t=32|e;t===MB.ScriptEnd[3]?this.startSpecial(MB.ScriptEnd,4):t===MB.StyleEnd[3]?this.startSpecial(MB.StyleEnd,4):(this.state=SB.InTagName,this.stateInTagName(e))}stateBeforeSpecialT(e){switch(32|e){case MB.TitleEnd[3]:this.startSpecial(MB.TitleEnd,4);break;case MB.TextareaEnd[3]:this.startSpecial(MB.TextareaEnd,4);break;case MB.XmpEnd[3]:this.startSpecial(MB.XmpEnd,4);break;default:this.state=SB.InTagName,this.stateInTagName(e)}}startEntity(){this.baseState=this.state,this.state=SB.InEntity,this.entityStart=this.index,this.entityDecoder.startEntity(this.xmlMode?TB.Strict:this.baseState===SB.Text||this.baseState===SB.InSpecialTag?TB.Legacy:TB.Attribute)}stateInEntity(){const e=this.entityDecoder.write(this.buffer,this.index-this.offset);e>=0?(this.state=this.baseState,0===e&&(this.index=this.entityStart)):this.index=this.offset+this.buffer.length-1}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===SB.Text||this.state===SB.InSpecialTag&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):this.state!==SB.InAttributeValueDq&&this.state!==SB.InAttributeValueSq&&this.state!==SB.InAttributeValueNq||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index=e||(this.state===SB.InCommentLike?this.currentSequence===MB.CdataEnd?this.cbs.oncdata(this.sectionStart,e,0):this.cbs.oncomment(this.sectionStart,e,0):this.state===SB.InTagName||this.state===SB.BeforeAttributeName||this.state===SB.BeforeAttributeValue||this.state===SB.AfterAttributeName||this.state===SB.InAttributeName||this.state===SB.InAttributeValueSq||this.state===SB.InAttributeValueDq||this.state===SB.InAttributeValueNq||this.state===SB.InClosingTagName||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){this.baseState!==SB.Text&&this.baseState!==SB.InSpecialTag?(this.sectionStart0&&o.has(this.stack[0]);){const e=this.stack.shift();null===(n=(t=this.cbs).onclosetag)||void 0===n||n.call(t,e,!0)}this.isVoidElement(e)||(this.stack.unshift(e),this.htmlMode&&(XB.has(e)?this.foreignContext.unshift(!0):VB.has(e)&&this.foreignContext.unshift(!1))),null===(i=(r=this.cbs).onopentagname)||void 0===i||i.call(r,e),this.cbs.onopentag&&(this.attribs={})}endOpenTag(e){var t,n;this.startIndex=this.openTagStart,this.attribs&&(null===(n=(t=this.cbs).onopentag)||void 0===n||n.call(t,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1}onclosetag(e,t){var n,r,i,o,a,A,s,l;this.endIndex=t;let c=this.getSlice(e,t);if(this.lowerCaseTagNames&&(c=c.toLowerCase()),this.htmlMode&&(XB.has(c)||VB.has(c))&&this.foreignContext.shift(),this.isVoidElement(c))this.htmlMode&&"br"===c&&(null===(o=(i=this.cbs).onopentagname)||void 0===o||o.call(i,"br"),null===(A=(a=this.cbs).onopentag)||void 0===A||A.call(a,"br",{},!0),null===(l=(s=this.cbs).onclosetag)||void 0===l||l.call(s,"br",!1));else{const e=this.stack.indexOf(c);if(-1!==e)for(let t=0;t<=e;t++){const i=this.stack.shift();null===(r=(n=this.cbs).onclosetag)||void 0===r||r.call(n,i,t!==e)}else this.htmlMode&&"p"===c&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=t+1}onselfclosingtag(e){this.endIndex=e,this.recognizeSelfClosing||this.foreignContext[0]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)}closeCurrentTag(e){var t,n;const r=this.tagname;this.endOpenTag(e),this.stack[0]===r&&(null===(n=(t=this.cbs).onclosetag)||void 0===n||n.call(t,r,!e),this.stack.shift())}onattribname(e,t){this.startIndex=e;const n=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n}onattribdata(e,t){this.attribvalue+=this.getSlice(e,t)}onattribentity(e){this.attribvalue+=wB(e)}onattribend(e,t){var n,r;this.endIndex=t,null===(r=(n=this.cbs).onattribute)||void 0===r||r.call(n,this.attribname,this.attribvalue,e===xB.Double?'"':e===xB.Single?"'":e===xB.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(e){const t=e.search(GB);let n=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n}ondeclaration(e,t){this.endIndex=t;const n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){const e=this.getInstructionName(n);this.cbs.onprocessinginstruction(`!${e}`,`!${n}`)}this.startIndex=t+1}onprocessinginstruction(e,t){this.endIndex=t;const n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){const e=this.getInstructionName(n);this.cbs.onprocessinginstruction(`?${e}`,`?${n}`)}this.startIndex=t+1}oncomment(e,t,n){var r,i,o,a;this.endIndex=t,null===(i=(r=this.cbs).oncomment)||void 0===i||i.call(r,this.getSlice(e,t-n)),null===(a=(o=this.cbs).oncommentend)||void 0===a||a.call(o),this.startIndex=t+1}oncdata(e,t,n){var r,i,o,a,A,s,l,c,u,h;this.endIndex=t;const d=this.getSlice(e,t-n);!this.htmlMode||this.options.recognizeCDATA?(null===(i=(r=this.cbs).oncdatastart)||void 0===i||i.call(r),null===(a=(o=this.cbs).ontext)||void 0===a||a.call(o,d),null===(s=(A=this.cbs).oncdataend)||void 0===s||s.call(A)):(null===(c=(l=this.cbs).oncomment)||void 0===c||c.call(l,`[CDATA[${d}]]`),null===(h=(u=this.cbs).oncommentend)||void 0===h||h.call(u)),this.startIndex=t+1}onend(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let e=0;e=this.buffers[0].length;)this.shiftBuffer();let n=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);for(;t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,t-this.bufferOffset);return n}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(e){var t,n;this.ended?null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,new Error(".write() after done!")):(this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++))}end(e){var t,n;this.ended?null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,new Error(".end() after done!")):(e&&this.write(e),this.ended=!0,this.tokenizer.end())}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}}class tC extends eC{constructor(){super(...arguments),this.type=WB.CDATA}get nodeType(){return 4}}class nC extends eC{constructor(){super(...arguments),this.type=WB.Root}get nodeType(){return 9}}class rC extends eC{constructor(e,t,n=[],r=("script"===e?WB.Script:"style"===e?WB.Style:WB.Tag)){super(n),this.name=e,this.attribs=t,this.type=r}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map((e=>{var t,n;return{name:e,value:this.attribs[e],namespace:null===(t=this["x-attribsNamespace"])||void 0===t?void 0:t[e],prefix:null===(n=this["x-attribsPrefix"])||void 0===n?void 0:n[e]}}))}}function iC(e){return(t=e).type===WB.Tag||t.type===WB.Script||t.type===WB.Style;var t}function oC(e,t=!1){let n;if(function(e){return e.type===WB.Text}(e))n=new JB(e.data);else if(function(e){return e.type===WB.Comment}(e))n=new YB(e.data);else if(iC(e)){const r=t?aC(e.children):[],i=new rC(e.name,{...e.attribs},r);r.forEach((e=>e.parent=i)),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]={...e["x-attribsPrefix"]}),n=i}else if(function(e){return e.type===WB.CDATA}(e)){const r=t?aC(e.children):[],i=new tC(r);r.forEach((e=>e.parent=i)),n=i}else if(function(e){return e.type===WB.Root}(e)){const r=t?aC(e.children):[],i=new nC(r);r.forEach((e=>e.parent=i)),e["x-mode"]&&(i["x-mode"]=e["x-mode"]),n=i}else{if(!function(e){return e.type===WB.Directive}(e))throw new Error(`Not implemented yet: ${e.type}`);{const t=new ZB(e.name,e.data);null!=e["x-name"]&&(t["x-name"]=e["x-name"],t["x-publicId"]=e["x-publicId"],t["x-systemId"]=e["x-systemId"]),n=t}}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function aC(e){const t=e.map((e=>oC(e,!0)));for(let e=1;e2e3){var n,r=Hh(n=TA(this.hashStrMap)).call(n,0,200);UA(r).call(r,(function(e){return delete t.hashStrMap[e]}))}return this.hashStrMap[e]||(this.hashStrMap[e]=pm.SHA256(e).toString()),this.hashStrMap[e]}},{key:"$checkCache",value:function(e,t){var n=this.hash(e);return void 0===this.hashCache[n]&&(this.hashCache[n]=t(e)),{sign:n,html:this.hashCache[n]}}},{key:"$dealParagraph",value:function(e){var t;return this.$fireHookAction(e,"paragraph","makeHtml",aA(t=this.$dealSentenceByCache).call(t,this))}},{key:"$cacheBigData",value:function(e){var t=this,n=e.replace(Xd,(function(e,n,r){var i,o="bigDataBegin".concat(t.hash(r),"bigDataEnd");return t.cachedBigData[o]=r,oA(i="".concat(n)).call(i,o,")")}));return n=(n=n.replace(jd,(function(e,n,r){var i,o="bigDataBegin".concat(t.hash(r),"bigDataEnd");return t.cachedBigData[o]=r,oA(i="".concat(n)).call(i,o,"}")}))).replace(Gd,(function(e,n,r){var i,o="bigDataBegin".concat(t.hash(r),"bigDataEnd");return t.cachedBigData[o]=r,oA(i="".concat(n)).call(i,o,"}")}))}},{key:"$deCacheBigData",value:function(e){var t=this;return e.replace(/bigDataBegin[^\n]+?bigDataEnd/g,(function(e){return t.cachedBigData[e]}))}},{key:"$setFlowSessionCursorCache",value:function(e){return this.$cherry.options.engine.global.flowSessionContext&&this.$cherry.options.engine.global.flowSessionCursor?/[*_~^]+\n*$/.test(e)?e.replace(/([*_~^]+\n*)$/,"CHERRYFLOWSESSIONCURSOR$1"):/:::\s*\n*$/.test(e)||/\+\+[+-]*\s*\n*$/.test(e)?e:/\n\s*`{1,}\s*\n*$/.test(e)?e.replace(/(\n\s*`{1,}\s*\n*)$/,"CHERRYFLOWSESSIONCURSOR$1"):/\n\s*[-*]$/.test(e)?e.replace(/(\n\s*[-*])$/,"CHERRYFLOWSESSIONCURSOR$1"):/\|[\s-:]+\|*\n*$/.test(e)?e:/\|\n*$/.test(e)?e.replace(/(\|\n*)$/,"CHERRYFLOWSESSIONCURSOR$1"):/\n+$/.test(e)?e.replace(/(\n+)$/,"CHERRYFLOWSESSIONCURSOR$1"):"".concat(e,"CHERRYFLOWSESSIONCURSOR"):e}},{key:"$clearFlowSessionCursorCache",value:function(e){var t=this;return this.$cherry.options.engine.global.flowSessionCursor?(this.clearCursorTimer&&clearTimeout(this.clearCursorTimer),this.clearCursorTimer=gA((function(){t.$cherry.clearFlowSessionCursor()}),2560),e.replace(/CHERRYFLOWSESSIONCURSOR/g,this.$cherry.options.engine.global.flowSessionCursor)):e}},{key:"makeHtml",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"string";this.$prepareMakeHtml(e);var n=this.$setFlowSessionCursorCache(e);return n=this.$cacheBigData(n),n=this.$beforeMakeHtml(n),n=this.$dealParagraph(n),n=this.$afterMakeHtml(n),this.$fireHookAction(n,"paragraph","$cleanCache"),n=this.$deCacheBigData(n),n=this.$clearFlowSessionCursorCache(n),this.$completeMakeHtml(n),"object"===t?function(e,t){const n=new sC(void 0,t);return new jB(n,t).end(e),n.root}(n.replace(/\n/g,"")):n}},{key:"makeHtmlForBlockquote",value:function(e){var t=e;return t=this.$dealParagraph(t),t=this.$fireHookAction(t,"paragraph","afterMakeHtml",{before:"blockquote"})}},{key:"makeHtmlForFootnote",value:function(e){var t=e;return t=this.$dealParagraph(t),t=this.$fireHookAction(t,"paragraph","afterMakeHtml",{before:"footnote"})}},{key:"mounted",value:function(){this.$fireHookAction("","sentence","mounted"),this.$fireHookAction("","paragraph","mounted")}},{key:"makeMarkdown",value:function(e){return zh.run(e)}}])}(),cC=Error,uC=y("".replace),hC=String(new cC("zxcasd").stack),dC=/\n\s*at [^:]*:[^\n]*/,fC=dC.test(hC),pC=!s((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Ke(1,7)),7!==e.stack)})),gC=function(e,t){if(fC&&"string"==typeof e&&!cC.prepareStackTrace)for(;t--;)e=uC(e,dC,"");return e},mC=pC,vC=Error.captureStackTrace,yC=function(e,t,n){for(var r=Vi(t),i=pt.f,o=vt.f,a=0;a2&&bC(n,arguments[2]);var i=[];return yp(e,TC,{that:i}),wt(n,"errors",i),n};Oo?Oo(EC,kC):yC(EC,kC,{name:!0});var SC=EC.prototype=Mn(kC.prototype,{constructor:Ke(1,EC),message:Ke(1,""),name:Ke(1,"AggregateError")});Fn({global:!0,constructor:!0,arity:2},{AggregateError:EC});var xC,QC,LC,IC,FC=Ue("species"),UC=/(?:ipad|iphone|ipod).*applewebkit/i.test(X),_C=P.setImmediate,MC=P.clearImmediate,HC=P.process,DC=P.Dispatch,OC=P.Function,NC=P.MessageChannel,RC=P.String,PC=0,$C={},KC="onreadystatechange";s((function(){xC=P.location}));var XC=function(e){if(Te($C,e)){var t=$C[e];delete $C[e],t()}},VC=function(e){return function(){XC(e)}},GC=function(e){XC(e.data)},jC=function(e){P.postMessage(RC(e),xC.protocol+"//"+xC.host)};_C&&MC||(_C=function(e){cA(arguments.length,1);var t=N(e)?e:OC(e),n=kt(arguments,1);return $C[++PC]=function(){mt(t,void 0,n)},QC(PC),PC},MC=function(e){delete $C[e]},Wm?QC=function(e){HC.nextTick(VC(e))}:DC&&DC.now?QC=function(e){DC.now(VC(e))}:NC&&!UC?(IC=(LC=new NC).port2,LC.port1.onmessage=GC,QC=bt(IC.postMessage,IC)):P.addEventListener&&N(P.postMessage)&&!P.importScripts&&xC&&"file:"!==xC.protocol&&!s(jC)?(QC=jC,P.addEventListener("message",GC,!1)):QC=KC in Re("script")?function(e){Bn.appendChild(Re("script"))[KC]=function(){Bn.removeChild(this),XC(e)}}:function(e){setTimeout(VC(e),0)});var WC={set:_C,clear:MC},zC=Object.getOwnPropertyDescriptor,qC=function(){this.head=null,this.tail=null};qC.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var JC,YC,ZC,ek,tk,nk=qC,rk=/ipad|iphone|ipod/i.test(X)&&"undefined"!=typeof Pebble,ik=/web0s(?!.*chrome)/i.test(X),ok=function(e){if(!Ne)return P[e];var t=zC(P,e);return t&&t.value},ak=WC,Ak=nk,sk=rk,lk=ik,ck=ak.set,uk=P.MutationObserver||P.WebKitMutationObserver,hk=P.document,dk=P.process,fk=P.Promise,pk=ok("queueMicrotask");if(!pk){var gk=new Ak,mk=function(){var e,t;for(Wm&&(e=dk.domain)&&e.exit();t=gk.get();)try{t()}catch(e){throw gk.head&&JC(),e}e&&e.enter()};UC||Wm||lk||!uk||!hk?!sk&&fk&&fk.resolve?((ek=fk.resolve(void 0)).constructor=fk,tk=bt(ek.then,ek),JC=function(){tk(mk)}):Wm?JC=function(){dk.nextTick(mk)}:(ck=bt(ck,P),JC=function(){ck(mk)}):(YC=!0,ZC=hk.createTextNode(""),new uk(mk).observe(ZC,{characterData:!0}),JC=function(){ZC.data=YC=!YC}),pk=function(e){gk.head||JC(),gk.add(e)}}var vk,yk,bk=pk,wk=P.Promise,Bk="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Ck=!Bk&&!Wm&&"object"==typeof window&&"object"==typeof document,kk=wk,Tk=Ck,Ek=kk&&kk.prototype,Sk=Ue("species"),xk=!1,Qk=N(P.PromiseRejectionEvent),Lk=yt("Promise",(function(){var e=Nt(kk),t=e!==String(kk);if(!t&&66===z)return!0;if(!Ek.catch||!Ek.finally)return!0;if(!z||z<51||!/native code/.test(e)){var n=new kk((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[Sk]=r,!(xk=n.then((function(){}))instanceof r))return!0}return!t&&(Tk||Bk)&&!Qk})),Ik=TypeError,Fk=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw new Ik("Bad Promise constructor");t=e,n=r})),this.resolve=se(t),this.reject=se(n)},Uk=function(e,t){var n,r=st(e).constructor;return void 0===r||M(n=st(r)[FC])?t:_n(n)},_k=bk,Mk=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}},Hk=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Dk={CONSTRUCTOR:Lk,REJECTION_EVENT:Qk,SUBCLASSING:xk},Ok={f:function(e){return new Fk(e)}},Nk=ak.set,Rk="Promise",Pk=Dk.CONSTRUCTOR,$k=Dk.REJECTION_EVENT,Kk=Qr.getterFor(Rk),Xk=Qr.set,Vk=kk&&kk.prototype,Gk=kk,jk=Vk,Wk=P.TypeError,zk=P.document,qk=P.process,Jk=Ok.f,Yk=Jk,Zk=!!(zk&&zk.createEvent&&P.dispatchEvent),eT="unhandledrejection",tT=function(e){var t;return!(!ce(e)||!N(t=e.then))&&t},nT=function(e,t){var n,r,i,o=t.value,a=1===t.state,A=a?e.ok:e.fail,s=e.resolve,l=e.reject,c=e.domain;try{A?(a||(2===t.rejection&&AT(t),t.rejection=1),!0===A?n=o:(c&&c.enter(),n=A(o),c&&(c.exit(),i=!0)),n===e.promise?l(new Wk("Promise-chain cycle")):(r=tT(n))?le(r,n,s,l):s(n)):l(o)}catch(e){c&&!i&&c.exit(),l(e)}},rT=function(e,t){e.notified||(e.notified=!0,_k((function(){for(var n,r=e.reactions;n=r.get();)nT(n,e);e.notified=!1,t&&!e.rejection&&oT(e)})))},iT=function(e,t,n){var r,i;Zk?((r=zk.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),P.dispatchEvent(r)):r={promise:t,reason:n},!$k&&(i=P["on"+e])?i(r):e===eT&&Mk("Unhandled promise rejection",n)},oT=function(e){le(Nk,P,(function(){var t,n=e.facade,r=e.value;if(aT(e)&&(t=Hk((function(){Wm?qk.emit("unhandledRejection",r,n):iT(eT,n,r)})),e.rejection=Wm||aT(e)?2:1,t.error))throw t.value}))},aT=function(e){return 1!==e.rejection&&!e.parent},AT=function(e){le(Nk,P,(function(){var t=e.facade;Wm?qk.emit("rejectionHandled",t):iT("rejectionhandled",t,e.value)}))},sT=function(e,t,n){return function(r){e(t,r,n)}},lT=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,rT(e,!0))},cT=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new Wk("Promise can't be resolved itself");var r=tT(t);r?_k((function(){var n={done:!1};try{le(r,t,sT(cT,n,e),sT(lT,n,e))}catch(t){lT(n,t,e)}})):(e.value=t,e.state=1,rT(e,!1))}catch(t){lT({done:!1},t,e)}}};Pk&&(jk=(Gk=function(e){bp(this,jk),se(e),le(vk,this);var t=Kk(this);try{e(sT(cT,t),sT(lT,t))}catch(e){lT(t,e)}}).prototype,(vk=function(e){Xk(this,{type:Rk,done:!1,notified:!1,parent:!1,reactions:new Ak,rejection:!1,state:0,value:void 0})}).prototype=nr(jk,"then",(function(e,t){var n=Kk(this),r=Jk(Uk(this,Gk));return n.parent=!0,r.ok=!N(e)||e,r.fail=N(t)&&t,r.domain=Wm?qk.domain:void 0,0===n.state?n.reactions.add(r):_k((function(){nT(r,n)})),r.promise})),yk=function(){var e=new vk,t=Kk(e);this.promise=e,this.resolve=sT(cT,t),this.reject=sT(lT,t)},Ok.f=Jk=function(e){return e===Gk||undefined===e?new yk(e):Yk(e)}),Fn({global:!0,constructor:!0,wrap:!0,forced:Pk},{Promise:Gk}),xr(Gk,Rk,!1,!0),Sp(Rk);var uT=Dk.CONSTRUCTOR||!Gu((function(e){kk.all(e).then(void 0,(function(){}))}));Fn({target:"Promise",stat:!0,forced:uT},{all:function(e){var t=this,n=Ok.f(t),r=n.resolve,i=n.reject,o=Hk((function(){var n=se(t.resolve),o=[],a=0,A=1;yp(e,(function(e){var s=a++,l=!1;A++,le(n,t,e).then((function(e){l||(l=!0,o[s]=e,--A||r(o))}),i)})),--A||r(o)}));return o.error&&i(o.value),n.promise}});var hT=Dk.CONSTRUCTOR;kk&&kk.prototype;Fn({target:"Promise",proto:!0,forced:hT,real:!0},{catch:function(e){return this.then(void 0,e)}}),Fn({target:"Promise",stat:!0,forced:uT},{race:function(e){var t=this,n=Ok.f(t),r=n.reject,i=Hk((function(){var i=se(t.resolve);yp(e,(function(e){le(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}}),Fn({target:"Promise",stat:!0,forced:Dk.CONSTRUCTOR},{reject:function(e){var t=Ok.f(this);return(0,t.reject)(e),t.promise}});var dT=function(e,t){if(st(e),ce(t)&&t.constructor===e)return t;var n=Ok.f(e);return(0,n.resolve)(t),n.promise},fT=Dk.CONSTRUCTOR,pT=ee("Promise"),gT=!fT;Fn({target:"Promise",stat:!0,forced:de},{resolve:function(e){return dT(gT&&this===pT?kk:this,e)}}),Fn({target:"Promise",stat:!0,forced:uT},{allSettled:function(e){var t=this,n=Ok.f(t),r=n.resolve,i=n.reject,o=Hk((function(){var n=se(t.resolve),i=[],o=0,a=1;yp(e,(function(e){var A=o++,s=!1;a++,le(n,t,e).then((function(e){s||(s=!0,i[A]={status:"fulfilled",value:e},--a||r(i))}),(function(e){s||(s=!0,i[A]={status:"rejected",reason:e},--a||r(i))}))})),--a||r(i)}));return o.error&&i(o.value),n.promise}});var mT="No one promise resolved";Fn({target:"Promise",stat:!0,forced:uT},{any:function(e){var t=this,n=ee("AggregateError"),r=Ok.f(t),i=r.resolve,o=r.reject,a=Hk((function(){var r=se(t.resolve),a=[],A=0,s=1,l=!1;yp(e,(function(e){var c=A++,u=!1;s++,le(r,t,e).then((function(e){u||l||(l=!0,i(e))}),(function(e){u||l||(u=!0,a[c]=e,--s||o(new n(a,mT)))}))})),--s||o(new n(a,mT))}));return a.error&&o(a.value),r.promise}}),Fn({target:"Promise",stat:!0},{withResolvers:function(){var e=Ok.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}});var vT=kk&&kk.prototype,yT=!!kk&&s((function(){vT.finally.call({then:function(){}},(function(){}))}));Fn({target:"Promise",proto:!0,real:!0,forced:yT},{finally:function(e){var t=Uk(this,ee("Promise")),n=N(e);return this.then(n?function(n){return dT(t,e()).then((function(){return n}))}:e,n?function(n){return dT(t,e()).then((function(){throw n}))}:e)}});var bT=R.Promise,wT=bT,BT=Array.isArray,CT=Object.prototype.toString,kT=BT||function(e){return"[object Array]"===CT.call(e)};var TT="2",ET=function(e){return e&&"VirtualNode"===e.type&&e.version===TT};var ST=function(e){return e&&"Widget"===e.type};var xT=function(e){return e&&"Thunk"===e.type};var QT=function(e){return e&&("function"==typeof e.hook&&!e.hasOwnProperty("hook")||"function"==typeof e.unhook&&!e.hasOwnProperty("unhook"))};var LT=UT,IT={},FT=[];function UT(e,t,n,r,i){this.tagName=e,this.properties=t||IT,this.children=n||FT,this.key=null!=r?String(r):void 0,this.namespace="string"==typeof i?i:null;var o,a=n&&n.length||0,A=0,s=!1,l=!1,c=!1;for(var u in t)if(t.hasOwnProperty(u)){var h=t[u];QT(h)&&h.unhook&&(o||(o={}),o[u]=h)}for(var d=0;d>>0:o>>>0;(A=i.exec(t))&&!((s=A.index+A[0].length)>h&&(c.push(t.slice(h,A.index)),!r&&A.length>1&&A[0].replace(a,(function(){for(var t=1;t1&&A.index=o));)i.lastIndex===A.index&&i.lastIndex++;return h===t.length?!l&&i.test("")||c.push(""):c.push(t.slice(h)),c.length>o?c.slice(0,o):c},t}(),OT=/([\.#]?[a-zA-Z0-9\u007F-\uFFFF_:-]+)/,NT=/^\.|#/,RT=function(e,t){if(!e)return"DIV";var n,r,i,o,a=!t.hasOwnProperty("id"),A=DT(e,OT),s=null;NT.test(A[1])&&(s="DIV");for(o=0;o=i.length?t.length:i[s],p=0;p=f&&A.push(g)}for(var m,v=A.slice(),y=0,b=[],w=[],B=0;Bl?s:l,u=0;u=t&&i<=n;if(in))return!0;a=r-1}}return!1}function LE(e,t){return e>t?1:-1}var IE=function(e,t){if(ST(e)&&ST(t))return"name"in e&&"name"in t?e.id===t.id:e.init===t.init;return!1};var FE=function(e,t,n){var r=e.type,i=e.vNode,o=e.patch;switch(r){case tE.REMOVE:return function(e,t){var n=e.parentNode;n&&n.removeChild(e);return UE(e,t),null}(t,i);case tE.INSERT:return function(e,t,n){var r=n.render(t,n);e&&e.appendChild(r);return e}(t,o,n);case tE.VTEXT:return function(e,t,n,r){var i;if(3===e.nodeType)e.replaceData(0,e.length,n.text),i=e;else{var o=e.parentNode;i=r.render(n,r),o&&i!==e&&o.replaceChild(i,e)}return i}(t,0,o,n);case tE.WIDGET:return function(e,t,n,r){var i,o=IE(t,n);i=o?n.update(t,e)||e:r.render(n,r);var a=e.parentNode;a&&i!==e&&a.replaceChild(i,e);o||UE(e,t);return i}(t,i,o,n);case tE.VNODE:return function(e,t,n,r){var i=e.parentNode,o=r.render(n,r);i&&o!==e&&i.replaceChild(o,e);return o}(t,0,o,n);case tE.ORDER:return function(e,t){for(var n,r,i,o=e.childNodes,a={},A=0;A=s++?null:o[i.to])}(t,o),t;case tE.PROPS:return wE(t,o,i.properties),t;case tE.THUNK:return function(e,t){e&&t&&e!==t&&e.parentNode&&e.parentNode.replaceChild(t,e);return t}(t,n.patch(t,o,n));default:return t}};function UE(e,t){"function"==typeof t.destroy&&ST(t)&&t.destroy(e)}var _E=function e(t,n,r){return(r=r||{}).patch=r.patch&&r.patch!==e?r.patch:ME,r.render=r.render||TE,r.patch(t,n,r)};function ME(e,t,n){var r=function(e){var t=[];for(var n in e)"a"!==n&&t.push(Number(n));return t}(t);if(0===r.length)return e;var i=SE(e,t.a,r),o=e.ownerDocument;n.document||o===bE||(n.document=o);for(var a=0;a=r&&f>=n)return a[A]=s,this.$backtraceSnakes(a,n,r,A)}a[A]=s}return[]}},{key:"$backtraceSnakes",value:function(e,t,n,r){for(var i=[],o={x:n,y:t},a=r;a>0;a--){var A=e[a],s=e[a-1],l=o.x-o.y,c=A[l],u=l===-a||l!==a&&s[l+1]>s[l-1],h=u?l+1:l-1,d=s[h],f=d-h,p=u?d:d+1;i.unshift({xStart:d,xMid:p,xEnd:c}),o.x=d,o.y=f}return i}},{key:"assembleResult",value:function(e,t,n){var r,i=this,o="color: gray",a="",A=[],s=0,l=[],c={},u={},h={};return UA(e).call(e,(function(e,r){var d=e.xStart;if(0===r&&0!==e.xStart)for(var f=0;f0;)e[i]=e[--i];i!==o++&&(e[i]=r)}else for(var a=PE(n/2),A=$E(kt(e,0,a),t),s=$E(kt(e,a),t),l=A.length,c=s.length,u=0,h=0;u=t.length)return e.target=void 0,Wo(void 0,!0);var r=t[n];switch(e.kind){case"keys":return Wo(r.key,!1);case"values":return Wo(r.value,!1)}return Wo([r.key,r.value],!1)}),!0),kS=function(e){this.entries=[],this.url=null,void 0!==e&&(ce(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===aS(e,0)?dS(e,1):e:Br(e)))};kS.prototype={type:GE,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,i,o,a,A,s=this.entries,l=Mu(e);if(l)for(n=(t=Nu(e,l)).next;!(r=le(n,t)).done;){if(o=(i=Nu(st(r.value))).next,(a=le(o,i)).done||(A=le(o,i)).done||!le(o,i).done)throw new rS("Expected sequence with length 2");sS(s,{key:Br(a.value),value:Br(A.value)})}else for(var c in e)Te(e,c)&&sS(s,{key:c,value:Br(e[c])})},parseQuery:function(e){if(e)for(var t,n,r=this.entries,i=hS(e,"&"),o=0;o0?arguments[0]:void 0));Ne||(this.size=e.entries.length)},ES=TS.prototype;if(Ep(ES,{append:function(e,t){var n=zE(this);cA(arguments.length,2),sS(n.entries,{key:Br(e),value:Br(t)}),Ne||this.length++,n.updateURL()},delete:function(e){for(var t=zE(this),n=cA(arguments.length,1),r=t.entries,i=Br(e),o=n<2?void 0:arguments[1],a=void 0===o?o:Br(o),A=0;At.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=zE(this).entries,r=bt(e,arguments.length>1?arguments[1]:void 0),i=0;i1?QS(arguments[1]):{})}}),N(YE)){var LS=function(e){return bp(this,eS),new YE(e,arguments.length>1?QS(arguments[1]):{})};eS.constructor=LS,LS.prototype=eS,Fn({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:LS})}}var IS,FS={URLSearchParams:TS,getState:zE},US=2147483647,_S=/[^\0-\u007E]/,MS=/[.\u3002\uFF0E\uFF61]/g,HS="Overflow: input needs wider integers to process",DS=RangeError,OS=y(MS.exec),NS=Math.floor,RS=String.fromCharCode,PS=y("".charCodeAt),$S=y([].join),KS=y([].push),XS=y("".replace),VS=y("".split),GS=y("".toLowerCase),jS=function(e){return e+22+75*(e<26)},WS=function(e,t,n){var r=0;for(e=n?NS(e/700):e>>1,e+=NS(e/t);e>455;)e=NS(e/35),r+=36;return NS(r+36*e/(e+38))},zS=function(e){var t=[];e=function(e){for(var t=[],n=0,r=e.length;n=55296&&i<=56319&&n=o&&rNS((US-a)/u))throw new DS(HS);for(a+=(c-o)*u,o=c,n=0;nUS)throw new DS(HS);if(r===o){for(var h=a,d=36;;){var f=d<=A?1:d>=A+26?26:d-A;if(h?@[\\\]^|]/,Lx=/[\0\t\n\r #/:<>?@[\\\]^|]/,Ix=/^[\u0000-\u0020]+/,Fx=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,Ux=/[\t\n\r]/g,_x=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)vx(t,e%256),e=ox(e/256);return lx(t,".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(t=r,n=i),t}(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=cx(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},Mx={},Hx=wA({},Mx,{" ":1,'"':1,"<":1,">":1,"`":1}),Dx=wA({},Hx,{"#":1,"?":1,"{":1,"}":1}),Ox=wA({},Dx,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Nx=function(e,t){var n=JS(e,0);return n>32&&n<127&&!Te(t,e)?e:encodeURIComponent(e)},Rx={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Px=function(e,t){var n;return 2===e.length&&sx(Bx,Ax(e,0))&&(":"===(n=Ax(e,1))||!t&&"|"===n)},$x=function(e){var t;return e.length>1&&Px(gx(e,0,2))&&(2===e.length||"/"===(t=Ax(e,2))||"\\"===t||"?"===t||"#"===t)},Kx=function(e){return"."===e||"%2e"===mx(e)},Xx={},Vx={},Gx={},jx={},Wx={},zx={},qx={},Jx={},Yx={},Zx={},eQ={},tQ={},nQ={},rQ={},iQ={},oQ={},aQ={},AQ={},sQ={},lQ={},cQ={},uQ=function(e,t,n){var r,i,o,a=Br(e);if(t){if(i=this.parse(a))throw new rx(i);this.searchParams=null}else{if(void 0!==n&&(r=new uQ(n,!0)),i=this.parse(a,null,r))throw new rx(i);(o=tx(new ex)).bindURL(this),this.searchParams=o}};uQ.prototype={type:"URL",parse:function(e,t,n){var r,i,o,a,A,s=this,l=t||Xx,c=0,u="",h=!1,d=!1,f=!1;for(e=Br(e),t||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,e=dx(e,Ix,""),e=dx(e,Fx,"$1")),e=dx(e,Ux,""),r=Vu(e);c<=r.length;){switch(i=r[c],l){case Xx:if(!i||!sx(Bx,i)){if(t)return yx;l=Gx;continue}u+=mx(i),l=Vx;break;case Vx:if(i&&(sx(Cx,i)||"+"===i||"-"===i||"."===i))u+=mx(i);else{if(":"!==i){if(t)return yx;u="",l=Gx,c=0;continue}if(t&&(s.isSpecial()!==Te(Rx,u)||"file"===u&&(s.includesCredentials()||null!==s.port)||"file"===s.scheme&&!s.host))return;if(s.scheme=u,t)return void(s.isSpecial()&&Rx[s.scheme]===s.port&&(s.port=null));u="","file"===s.scheme?l=rQ:s.isSpecial()&&n&&n.scheme===s.scheme?l=jx:s.isSpecial()?l=Jx:"/"===r[c+1]?(l=Wx,c++):(s.cannotBeABaseURL=!0,hx(s.path,""),l=sQ)}break;case Gx:if(!n||n.cannotBeABaseURL&&"#"!==i)return yx;if(n.cannotBeABaseURL&&"#"===i){s.scheme=n.scheme,s.path=kt(n.path),s.query=n.query,s.fragment="",s.cannotBeABaseURL=!0,l=cQ;break}l="file"===n.scheme?rQ:zx;continue;case jx:if("/"!==i||"/"!==r[c+1]){l=zx;continue}l=Yx,c++;break;case Wx:if("/"===i){l=Zx;break}l=AQ;continue;case zx:if(s.scheme=n.scheme,i===IS)s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=kt(n.path),s.query=n.query;else if("/"===i||"\\"===i&&s.isSpecial())l=qx;else if("?"===i)s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=kt(n.path),s.query="",l=lQ;else{if("#"!==i){s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=kt(n.path),s.path.length--,l=AQ;continue}s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=kt(n.path),s.query=n.query,s.fragment="",l=cQ}break;case qx:if(!s.isSpecial()||"/"!==i&&"\\"!==i){if("/"!==i){s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,l=AQ;continue}l=Zx}else l=Yx;break;case Jx:if(l=Yx,"/"!==i||"/"!==Ax(u,c+1))continue;c++;break;case Yx:if("/"!==i&&"\\"!==i){l=Zx;continue}break;case Zx:if("@"===i){h&&(u="%40"+u),h=!0,o=Vu(u);for(var p=0;p65535)return wx;s.port=s.isSpecial()&&v===Rx[s.scheme]?null:v,u=""}if(t)return;l=aQ;continue}return wx}u+=i;break;case rQ:if(s.scheme="file","/"===i||"\\"===i)l=iQ;else{if(!n||"file"!==n.scheme){l=AQ;continue}switch(i){case IS:s.host=n.host,s.path=kt(n.path),s.query=n.query;break;case"?":s.host=n.host,s.path=kt(n.path),s.query="",l=lQ;break;case"#":s.host=n.host,s.path=kt(n.path),s.query=n.query,s.fragment="",l=cQ;break;default:$x(lx(kt(r,c),""))||(s.host=n.host,s.path=kt(n.path),s.shortenPath()),l=AQ;continue}}break;case iQ:if("/"===i||"\\"===i){l=oQ;break}n&&"file"===n.scheme&&!$x(lx(kt(r,c),""))&&(Px(n.path[0],!0)?hx(s.path,n.path[0]):s.host=n.host),l=AQ;continue;case oQ:if(i===IS||"/"===i||"\\"===i||"?"===i||"#"===i){if(!t&&Px(u))l=AQ;else if(""===u){if(s.host="",t)return;l=aQ}else{if(a=s.parseHost(u))return a;if("localhost"===s.host&&(s.host=""),t)return;u="",l=aQ}continue}u+=i;break;case aQ:if(s.isSpecial()){if(l=AQ,"/"!==i&&"\\"!==i)continue}else if(t||"?"!==i)if(t||"#"!==i){if(i!==IS&&(l=AQ,"/"!==i))continue}else s.fragment="",l=cQ;else s.query="",l=lQ;break;case AQ:if(i===IS||"/"===i||"\\"===i&&s.isSpecial()||!t&&("?"===i||"#"===i)){if(".."===(A=mx(A=u))||"%2e."===A||".%2e"===A||"%2e%2e"===A?(s.shortenPath(),"/"===i||"\\"===i&&s.isSpecial()||hx(s.path,"")):Kx(u)?"/"===i||"\\"===i&&s.isSpecial()||hx(s.path,""):("file"===s.scheme&&!s.path.length&&Px(u)&&(s.host&&(s.host=""),u=Ax(u,0)+":"),hx(s.path,u)),u="","file"===s.scheme&&(i===IS||"?"===i||"#"===i))for(;s.path.length>1&&""===s.path[0];)fx(s.path);"?"===i?(s.query="",l=lQ):"#"===i&&(s.fragment="",l=cQ)}else u+=Nx(i,Dx);break;case sQ:"?"===i?(s.query="",l=lQ):"#"===i?(s.fragment="",l=cQ):i!==IS&&(s.path[0]+=Nx(i,Mx));break;case lQ:t||"#"!==i?i!==IS&&("'"===i&&s.isSpecial()?s.query+="%27":s.query+="#"===i?"%23":Nx(i,Mx)):(s.fragment="",l=cQ);break;case cQ:i!==IS&&(s.fragment+=Nx(i,Hx))}c++}},parseHost:function(e){var t,n,r;if("["===Ax(e,0)){if("]"!==Ax(e,e.length-1))return bx;if(t=function(e){var t,n,r,i,o,a,A,s=[0,0,0,0,0,0,0,0],l=0,c=null,u=0,h=function(){return Ax(e,u)};if(":"===h()){if(":"!==Ax(e,1))return;u+=2,c=++l}for(;h();){if(8===l)return;if(":"!==h()){for(t=n=0;n<4&&sx(xx,h());)t=16*t+ix(h(),16),u++,n++;if("."===h()){if(0===n)return;if(u-=n,l>6)return;for(r=0;h();){if(i=null,r>0){if(!("."===h()&&r<4))return;u++}if(!sx(kx,h()))return;for(;sx(kx,h());){if(o=ix(h(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;u++}s[l]=256*s[l]+i,2!=++r&&4!==r||l++}if(4!==r)return;break}if(":"===h()){if(u++,!h())return}else if(h())return;s[l++]=t}else{if(null!==c)return;u++,c=++l}}if(null!==c)for(a=l-c,l=7;0!==l&&a>0;)A=s[l],s[l--]=s[c+a-1],s[c+--a]=A;else if(8!==l)return;return s}(gx(e,1,-1)),!t)return bx;this.host=t}else if(this.isSpecial()){if(e=qS(e),sx(Qx,e))return bx;if(t=function(e){var t,n,r,i,o,a,A,s=px(e,".");if(s.length&&""===s[s.length-1]&&s.length--,(t=s.length)>4)return e;for(n=[],r=0;r1&&"0"===Ax(i,0)&&(o=sx(Tx,i)?16:8,i=gx(i,8===o?1:2)),""===i)a=0;else{if(!sx(10===o?Sx:8===o?Ex:xx,i))return e;a=ix(i,o)}hx(n,a)}for(r=0;r=ax(256,5-t))return null}else if(a>255)return null;for(A=ux(n),r=0;r1?arguments[1]:void 0,r=YS(t,new uQ(e,!1,n));Ne||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},dQ=hQ.prototype,fQ=function(e,t){return{get:function(){return ZS(this)[e]()},set:t&&function(e){return ZS(this)[t](e)},configurable:!0,enumerable:!0}};if(Ne&&(Tr(dQ,"href",fQ("serialize","setHref")),Tr(dQ,"origin",fQ("getOrigin")),Tr(dQ,"protocol",fQ("getProtocol","setProtocol")),Tr(dQ,"username",fQ("getUsername","setUsername")),Tr(dQ,"password",fQ("getPassword","setPassword")),Tr(dQ,"host",fQ("getHost","setHost")),Tr(dQ,"hostname",fQ("getHostname","setHostname")),Tr(dQ,"port",fQ("getPort","setPort")),Tr(dQ,"pathname",fQ("getPathname","setPathname")),Tr(dQ,"search",fQ("getSearch","setSearch")),Tr(dQ,"searchParams",fQ("getSearchParams")),Tr(dQ,"hash",fQ("getHash","setHash"))),nr(dQ,"toJSON",(function(){return ZS(this).serialize()}),{enumerable:!0}),nr(dQ,"toString",(function(){return ZS(this).serialize()}),{enumerable:!0}),nx){var pQ=nx.createObjectURL,gQ=nx.revokeObjectURL;pQ&&nr(hQ,"createObjectURL",bt(pQ,nx)),gQ&&nr(hQ,"revokeObjectURL",bt(gQ,nx))}xr(hQ,"URL"),Fn({global:!0,constructor:!0,forced:!KE,sham:!Ne},{URL:hQ});var mQ=ee("URL"),vQ=KE&&s((function(){mQ.canParse()})),yQ=s((function(){return 1!==mQ.canParse.length}));Fn({target:"URL",stat:!0,forced:!vQ||yQ},{canParse:function(e){var t=cA(arguments.length,1),n=Br(e),r=t<2||void 0===arguments[1]?void 0:Br(arguments[1]);try{return!!new mQ(n,r)}catch(e){return!1}}});var bQ=ee("URL");Fn({target:"URL",stat:!0,forced:!KE},{parse:function(e){var t=cA(arguments.length,1),n=Br(e),r=t<2||void 0===arguments[1]?void 0:Br(arguments[1]);try{return new bQ(n,r)}catch(e){return null}}});var wQ=R.URL,BQ=r((function(e,t){e.exports=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};function t(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var n=function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=55296&&i<=56319&&n>10),a%1024+56320)),(i+1===n||r.length>16384)&&(o+=String.fromCharCode.apply(String,r),r.length=0)}return o},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h="undefined"==typeof Uint8Array?[]:new Uint8Array(256),d=0;d>4,c[s++]=(15&r)<<4|i>>2,c[s++]=(3&i)<<6|63&o;return l},v=function(e){for(var t=e.length,n=[],r=0;r>b,k=(1<>b)+32,E=65536>>w,S=(1<=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>b])<>b)])<>w),t=this.index[t],t+=e>>b&S,t=((t=this.index[t])<M?(i.push(!0),a-=M):i.push(!1),-1!==["normal","auto","loose"].indexOf(t)&&-1!==[8208,8211,12316,12448].indexOf(e))return r.push(o),n.push(q);if(a===N||a===V){if(0===o)return r.push(o),n.push(ce);var A=n[o-1];return-1===Ue.indexOf(A)?(r.push(r[o-1]),n.push(A)):(r.push(o),n.push(ce))}return r.push(o),a===ue?n.push("strict"===t?te:me):a===Be||a===le?n.push(ce):a===Ce?e>=131072&&e<=196605||e>=196608&&e<=262141?n.push(me):n.push(ce):void n.push(a)})),[r,n,i]},De=function(e,t,n,r){var i=r[n];if(Array.isArray(e)?-1!==e.indexOf(i):e===i)for(var o=n;o<=r.length;){if((s=r[++o])===t)return!0;if(s!==X)break}if(i===X)for(o=n;o>0;){var a=r[--o];if(Array.isArray(e)?-1!==e.indexOf(a):e===a)for(var A=n;A<=r.length;){var s;if((s=r[++A])===t)return!0;if(s!==X)break}if(a!==X)break}return!1},Oe=function(e,t){for(var n=e;n>=0;){var r=t[n];if(r!==X)return r;n--}return 0},Ne=function(e,t,n,r,i){if(0===n[r])return Ee;var o=r-1;if(Array.isArray(i)&&!0===i[o])return Ee;var a=o-1,A=o+1,s=t[o],l=a>=0?t[a]:0,c=t[A];if(s===D&&c===O)return Ee;if(-1!==Le.indexOf(s))return Te;if(-1!==Le.indexOf(c))return Ee;if(-1!==Ie.indexOf(c))return Ee;if(Oe(o,t)===$)return Se;if(xe.get(e[o])===V)return Ee;if((s===he||s===de)&&xe.get(e[A])===V)return Ee;if(s===P||c===P)return Ee;if(s===K)return Ee;if(-1===[X,j,z].indexOf(s)&&c===K)return Ee;if(-1!==[J,Y,Z,ie,se].indexOf(c))return Ee;if(Oe(o,t)===ne)return Ee;if(De(re,ne,o,t))return Ee;if(De([J,Y],te,o,t))return Ee;if(De(G,G,o,t))return Ee;if(s===X)return Se;if(s===re||c===re)return Ee;if(c===q||s===q)return Se;if(-1!==[j,z,te].indexOf(c)||s===W)return Ee;if(l===ge&&-1!==Me.indexOf(s))return Ee;if(s===se&&c===ge)return Ee;if(c===ee)return Ee;if(-1!==Qe.indexOf(c)&&s===oe||-1!==Qe.indexOf(s)&&c===oe)return Ee;if(s===Ae&&-1!==[me,he,de].indexOf(c)||-1!==[me,he,de].indexOf(s)&&c===ae)return Ee;if(-1!==Qe.indexOf(s)&&-1!==Fe.indexOf(c)||-1!==Fe.indexOf(s)&&-1!==Qe.indexOf(c))return Ee;if(-1!==[Ae,ae].indexOf(s)&&(c===oe||-1!==[ne,z].indexOf(c)&&t[A+1]===oe)||-1!==[ne,z].indexOf(s)&&c===oe||s===oe&&-1!==[oe,se,ie].indexOf(c))return Ee;if(-1!==[oe,se,ie,J,Y].indexOf(c))for(var u=o;u>=0;){if((h=t[u])===oe)return Ee;if(-1===[se,ie].indexOf(h))break;u--}if(-1!==[Ae,ae].indexOf(c))for(u=-1!==[J,Y].indexOf(s)?a:o;u>=0;){var h;if((h=t[u])===oe)return Ee;if(-1===[se,ie].indexOf(h))break;u--}if(ve===s&&-1!==[ve,ye,fe,pe].indexOf(c)||-1!==[ye,fe].indexOf(s)&&-1!==[ye,be].indexOf(c)||-1!==[be,pe].indexOf(s)&&c===be)return Ee;if(-1!==_e.indexOf(s)&&-1!==[ee,ae].indexOf(c)||-1!==_e.indexOf(c)&&s===Ae)return Ee;if(-1!==Qe.indexOf(s)&&-1!==Qe.indexOf(c))return Ee;if(s===ie&&-1!==Qe.indexOf(c))return Ee;if(-1!==Qe.concat(oe).indexOf(s)&&c===ne&&-1===ke.indexOf(e[A])||-1!==Qe.concat(oe).indexOf(c)&&s===Y)return Ee;if(s===we&&c===we){for(var d=n[o],f=1;d>0&&t[--d]===we;)f++;if(f%2!=0)return Ee}return s===he&&c===de?Ee:Se},Re=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var n=He(e,t.lineBreak),r=n[0],i=n[1],o=n[2];"break-all"!==t.wordBreak&&"break-word"!==t.wordBreak||(i=i.map((function(e){return-1!==[oe,ce,Be].indexOf(e)?me:e})));var a="keep-all"===t.wordBreak?o.map((function(t,n){return t&&e[n]>=19968&&e[n]<=40959})):void 0;return[r,i,a]},Pe=function(){function e(e,t,n,r){this.codePoints=e,this.required=t===Te,this.start=n,this.end=r}return e.prototype.slice=function(){return c.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),$e=function(e,t){var n=l(e),r=Re(n,t),i=r[0],o=r[1],a=r[2],A=n.length,s=0,c=0;return{next:function(){if(c>=A)return{done:!0,value:null};for(var e=Ee;c=Mt&&e<=57},jt=function(e){return e>=55296&&e<=57343},Wt=function(e){return Gt(e)||e>=Pt&&e<=Kt||e>=Ht&&e<=Ot},zt=function(e){return e>=Ht&&e<=Rt},qt=function(e){return e>=Pt&&e<=Vt},Jt=function(e){return zt(e)||qt(e)},Yt=function(e){return e>=bt},Zt=function(e){return e===je||e===qe||e===Je},en=function(e){return Jt(e)||Yt(e)||e===at},tn=function(e){return en(e)||Gt(e)||e===At},nn=function(e){return e>=xt&&e<=Qt||e===Lt||e>=It&&e<=Ft||e===Ut},rn=function(e,t){return e===ze&&t!==je},on=function(e,t,n){return e===At?en(t)||rn(t,n):!!en(e)||!(e!==ze||!rn(e,t))},an=function(e,t,n){return e===Ct||e===At?!!Gt(t)||t===St&&Gt(n):Gt(e===St?t:e)},An=function(e){var t=0,n=1;e[t]!==Ct&&e[t]!==At||(e[t]===At&&(n=-1),t++);for(var r=[];Gt(e[t]);)r.push(e[t++]);var i=r.length?parseInt(c.apply(void 0,r),10):0;e[t]===St&&t++;for(var o=[];Gt(e[t]);)o.push(e[t++]);var a=o.length,A=a?parseInt(c.apply(void 0,o),10):0;e[t]!==$t&&e[t]!==Dt||t++;var s=1;e[t]!==Ct&&e[t]!==At||(e[t]===At&&(s=-1),t++);for(var l=[];Gt(e[t]);)l.push(e[t++]);var u=l.length?parseInt(c.apply(void 0,l),10):0;return n*(i+A*Math.pow(10,-a))*Math.pow(10,s*u)},sn={type:2},ln={type:3},cn={type:4},un={type:13},hn={type:8},dn={type:21},fn={type:9},pn={type:10},gn={type:11},mn={type:12},vn={type:14},yn={type:23},bn={type:1},wn={type:25},Bn={type:24},Cn={type:26},kn={type:27},Tn={type:28},En={type:29},Sn={type:31},xn={type:32},Qn=function(){function e(){this._value=[]}return e.prototype.write=function(e){this._value=this._value.concat(l(e))},e.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==xn;)e.push(t),t=this.consumeToken();return e},e.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case Ye:return this.consumeStringToken(Ye);case et:var t=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(tn(t)||rn(n,r)){var i=on(t,n,r)?Xe:Ke;return{type:5,value:this.consumeName(),flags:i}}break;case tt:if(this.peekCodePoint(0)===Ze)return this.consumeCodePoint(),un;break;case rt:return this.consumeStringToken(rt);case it:return sn;case ot:return ln;case Bt:if(this.peekCodePoint(0)===Ze)return this.consumeCodePoint(),vn;break;case Ct:if(an(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case kt:return cn;case At:var o=e,a=this.peekCodePoint(0),A=this.peekCodePoint(1);if(an(o,a,A))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(on(o,a,A))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(a===At&&A===ct)return this.consumeCodePoint(),this.consumeCodePoint(),Bn;break;case St:if(an(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case We:if(this.peekCodePoint(0)===Bt)for(this.consumeCodePoint();;){var s=this.consumeCodePoint();if(s===Bt&&(s=this.consumeCodePoint())===We)return this.consumeToken();if(s===_t)return this.consumeToken()}break;case Tt:return Cn;case Et:return kn;case lt:if(this.peekCodePoint(0)===st&&this.peekCodePoint(1)===At&&this.peekCodePoint(2)===At)return this.consumeCodePoint(),this.consumeCodePoint(),wn;break;case ut:var l=this.peekCodePoint(0),u=this.peekCodePoint(1),h=this.peekCodePoint(2);if(on(l,u,h))return{type:7,value:this.consumeName()};break;case ht:return Tn;case ze:if(rn(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case dt:return En;case ft:if(this.peekCodePoint(0)===Ze)return this.consumeCodePoint(),hn;break;case pt:return gn;case mt:return mn;case Nt:case Xt:var d=this.peekCodePoint(0),f=this.peekCodePoint(1);return d!==Ct||!Wt(f)&&f!==gt||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case vt:if(this.peekCodePoint(0)===Ze)return this.consumeCodePoint(),fn;if(this.peekCodePoint(0)===vt)return this.consumeCodePoint(),dn;break;case yt:if(this.peekCodePoint(0)===Ze)return this.consumeCodePoint(),pn;break;case _t:return xn}return Zt(e)?(this.consumeWhiteSpace(),Sn):Gt(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):en(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:c(e)}},e.prototype.consumeCodePoint=function(){var e=this._value.shift();return void 0===e?-1:e},e.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},e.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},e.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();Wt(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var n=!1;t===gt&&e.length<6;)e.push(t),t=this.consumeCodePoint(),n=!0;if(n)return{type:30,start:parseInt(c.apply(void 0,e.map((function(e){return e===gt?Mt:e}))),16),end:parseInt(c.apply(void 0,e.map((function(e){return e===gt?Kt:e}))),16)};var r=parseInt(c.apply(void 0,e),16);if(this.peekCodePoint(0)===At&&Wt(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var i=[];Wt(t)&&i.length<6;)i.push(t),t=this.consumeCodePoint();return{type:30,start:r,end:parseInt(c.apply(void 0,i),16)}}return{type:30,start:r,end:r}},e.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return"url"===e.toLowerCase()&&this.peekCodePoint(0)===it?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===it?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},e.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===_t)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===rt||t===Ye){var n=this.consumeStringToken(this.consumeCodePoint());return 0===n.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===_t||this.peekCodePoint(0)===ot)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),yn)}for(;;){var r=this.consumeCodePoint();if(r===_t||r===ot)return{type:22,value:c.apply(void 0,e)};if(Zt(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===_t||this.peekCodePoint(0)===ot?(this.consumeCodePoint(),{type:22,value:c.apply(void 0,e)}):(this.consumeBadUrlRemnants(),yn);if(r===Ye||r===rt||r===it||nn(r))return this.consumeBadUrlRemnants(),yn;if(r===ze){if(!rn(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),yn;e.push(this.consumeEscapedCodePoint())}else e.push(r)}},e.prototype.consumeWhiteSpace=function(){for(;Zt(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===ot||e===_t)return;rn(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(e){for(var t=5e4,n="";e>0;){var r=Math.min(t,e);n+=c.apply(void 0,this._value.splice(0,r)),e-=r}return this._value.shift(),n},e.prototype.consumeStringToken=function(e){for(var t="",n=0;;){var r=this._value[n];if(r===_t||void 0===r||r===e)return{type:0,value:t+=this.consumeStringSlice(n)};if(r===je)return this._value.splice(0,n),bn;if(r===ze){var i=this._value[n+1];i!==_t&&void 0!==i&&(i===je?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):rn(r,i)&&(t+=this.consumeStringSlice(n),t+=c(this.consumeEscapedCodePoint()),n=-1))}n++}},e.prototype.consumeNumber=function(){var e=[],t=Ve,n=this.peekCodePoint(0);for(n!==Ct&&n!==At||e.push(this.consumeCodePoint());Gt(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(n===St&&Gt(r))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=Ge;Gt(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((n===$t||n===Dt)&&((r===Ct||r===At)&&Gt(i)||Gt(r)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=Ge;Gt(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[An(e),t]},e.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],n=e[1],r=this.peekCodePoint(0),i=this.peekCodePoint(1),o=this.peekCodePoint(2);return on(r,i,o)?{type:15,number:t,flags:n,unit:this.consumeName()}:r===nt?(this.consumeCodePoint(),{type:16,number:t,flags:n}):{type:17,number:t,flags:n}},e.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(Wt(e)){for(var t=c(e);Wt(this.peekCodePoint(0))&&t.length<6;)t+=c(this.consumeCodePoint());Zt(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(t,16);return 0===n||jt(n)||n>1114111?wt:n}return e===_t?wt:e},e.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(tn(t))e+=c(t);else{if(!rn(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),e;e+=c(this.consumeEscapedCodePoint())}}},e}(),Ln=function(){function e(e){this._tokens=e}return e.create=function(t){var n=new Qn;return n.write(t),new e(n.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var e=this.consumeToken();31===e.type;)e=this.consumeToken();if(32===e.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do{e=this.consumeToken()}while(31===e.type);if(32===e.type)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(32===t.type)return e;e.push(t),e.push()}},e.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},e.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},n=this.consumeToken();;){if(32===n.type||Nn(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}},e.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:18};;){var n=this.consumeToken();if(32===n.type||3===n.type)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var e=this._tokens.shift();return void 0===e?xn:e},e.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},e}(),In=function(e){return 15===e.type},Fn=function(e){return 17===e.type},Un=function(e){return 20===e.type},_n=function(e){return 0===e.type},Mn=function(e,t){return Un(e)&&e.value===t},Hn=function(e){return 31!==e.type},Dn=function(e){return 31!==e.type&&4!==e.type},On=function(e){var t=[],n=[];return e.forEach((function(e){if(4===e.type){if(0===n.length)throw new Error("Error parsing function args, zero tokens for arg");return t.push(n),void(n=[])}31!==e.type&&n.push(e)})),n.length&&t.push(n),t},Nn=function(e,t){return 11===t&&12===e.type||28===t&&29===e.type||2===t&&3===e.type},Rn=function(e){return 17===e.type||15===e.type},Pn=function(e){return 16===e.type||Rn(e)},$n=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},Kn={type:17,number:0,flags:Ve},Xn={type:16,number:50,flags:Ve},Vn={type:16,number:100,flags:Ve},Gn=function(e,t,n){var r=e[0],i=e[1];return[jn(r,t),jn(void 0!==i?i:r,n)]},jn=function(e,t){if(16===e.type)return e.number/100*t;if(In(e))switch(e.unit){case"rem":case"em":return 16*e.number;default:return e.number}return e.number},Wn="deg",zn="grad",qn="rad",Jn="turn",Yn={name:"angle",parse:function(e,t){if(15===t.type)switch(t.unit){case Wn:return Math.PI*t.number/180;case zn:return Math.PI/200*t.number;case qn:return t.number;case Jn:return 2*Math.PI*t.number}throw new Error("Unsupported angle type")}},Zn=function(e){return 15===e.type&&(e.unit===Wn||e.unit===zn||e.unit===qn||e.unit===Jn)},er=function(e){switch(e.filter(Un).map((function(e){return e.value})).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Kn,Kn];case"to top":case"bottom":return tr(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Kn,Vn];case"to right":case"left":return tr(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Vn,Vn];case"to bottom":case"top":return tr(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Vn,Kn];case"to left":case"right":return tr(270)}return 0},tr=function(e){return Math.PI*e/180},nr={name:"color",parse:function(e,t){if(18===t.type){var n=cr[t.name];if(void 0===n)throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return n(e,t.values)}if(5===t.type){if(3===t.value.length){var r=t.value.substring(0,1),i=t.value.substring(1,2),o=t.value.substring(2,3);return or(parseInt(r+r,16),parseInt(i+i,16),parseInt(o+o,16),1)}if(4===t.value.length){r=t.value.substring(0,1),i=t.value.substring(1,2),o=t.value.substring(2,3);var a=t.value.substring(3,4);return or(parseInt(r+r,16),parseInt(i+i,16),parseInt(o+o,16),parseInt(a+a,16)/255)}if(6===t.value.length)return r=t.value.substring(0,2),i=t.value.substring(2,4),o=t.value.substring(4,6),or(parseInt(r,16),parseInt(i,16),parseInt(o,16),1);if(8===t.value.length)return r=t.value.substring(0,2),i=t.value.substring(2,4),o=t.value.substring(4,6),a=t.value.substring(6,8),or(parseInt(r,16),parseInt(i,16),parseInt(o,16),parseInt(a,16)/255)}if(20===t.type){var A=hr[t.value.toUpperCase()];if(void 0!==A)return A}return hr.TRANSPARENT}},rr=function(e){return!(255&e)},ir=function(e){var t=255&e,n=255&e>>8,r=255&e>>16,i=255&e>>24;return t<255?"rgba("+i+","+r+","+n+","+t/255+")":"rgb("+i+","+r+","+n+")"},or=function(e,t,n,r){return(e<<24|t<<16|n<<8|Math.round(255*r))>>>0},ar=function(e,t){if(17===e.type)return e.number;if(16===e.type){var n=3===t?1:255;return 3===t?e.number/100*n:Math.round(e.number/100*n)}return 0},Ar=function(e,t){var n=t.filter(Dn);if(3===n.length){var r=n.map(ar),i=r[0],o=r[1],a=r[2];return or(i,o,a,1)}if(4===n.length){var A=n.map(ar),s=(i=A[0],o=A[1],a=A[2],A[3]);return or(i,o,a,s)}return 0};function sr(e,t,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(t-e)*n*6+e:n<.5?t:n<2/3?6*(t-e)*(2/3-n)+e:e}var lr=function(e,t){var n=t.filter(Dn),r=n[0],i=n[1],o=n[2],a=n[3],A=(17===r.type?tr(r.number):Yn.parse(e,r))/(2*Math.PI),s=Pn(i)?i.number/100:0,l=Pn(o)?o.number/100:0,c=void 0!==a&&Pn(a)?jn(a,1):1;if(0===s)return or(255*l,255*l,255*l,1);var u=l<=.5?l*(s+1):l+s-l*s,h=2*l-u,d=sr(h,u,A+1/3),f=sr(h,u,A),p=sr(h,u,A-1/3);return or(255*d,255*f,255*p,c)},cr={hsl:lr,hsla:lr,rgb:Ar,rgba:Ar},ur=function(e,t){return nr.parse(e,Ln.create(t).parseComponentValue())},hr={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},dr={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map((function(e){if(Un(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},fr={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},pr=function(e,t){var n=nr.parse(e,t[0]),r=t[1];return r&&Pn(r)?{color:n,stop:r}:{color:n,stop:null}},gr=function(e,t){var n=e[0],r=e[e.length-1];null===n.stop&&(n.stop=Kn),null===r.stop&&(r.stop=Vn);for(var i=[],o=0,a=0;ao?i.push(s):i.push(o),o=s}else i.push(null)}var l=null;for(a=0;ae.optimumDistance)?{optimumCorner:t,optimumDistance:A}:e}),{optimumDistance:i?1/0:-1/0,optimumCorner:null}).optimumCorner},wr=function(e,t,n,r,i){var o=0,a=0;switch(e.size){case 0:0===e.shape?o=a=Math.min(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-i)):1===e.shape&&(o=Math.min(Math.abs(t),Math.abs(t-r)),a=Math.min(Math.abs(n),Math.abs(n-i)));break;case 2:if(0===e.shape)o=a=Math.min(yr(t,n),yr(t,n-i),yr(t-r,n),yr(t-r,n-i));else if(1===e.shape){var A=Math.min(Math.abs(n),Math.abs(n-i))/Math.min(Math.abs(t),Math.abs(t-r)),s=br(r,i,t,n,!0),l=s[0],c=s[1];a=A*(o=yr(l-t,(c-n)/A))}break;case 1:0===e.shape?o=a=Math.max(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-i)):1===e.shape&&(o=Math.max(Math.abs(t),Math.abs(t-r)),a=Math.max(Math.abs(n),Math.abs(n-i)));break;case 3:if(0===e.shape)o=a=Math.max(yr(t,n),yr(t,n-i),yr(t-r,n),yr(t-r,n-i));else if(1===e.shape){A=Math.max(Math.abs(n),Math.abs(n-i))/Math.max(Math.abs(t),Math.abs(t-r));var u=br(r,i,t,n,!1);l=u[0],c=u[1],a=A*(o=yr(l-t,(c-n)/A))}}return Array.isArray(e.size)&&(o=jn(e.size[0],r),a=2===e.size.length?jn(e.size[1],i):o),[o,a]},Br=function(e,t){var n=tr(180),r=[];return On(t).forEach((function(t,i){if(0===i){var o=t[0];if(20===o.type&&"to"===o.value)return void(n=er(t));if(Zn(o))return void(n=Yn.parse(e,o))}var a=pr(e,t);r.push(a)})),{angle:n,stops:r,type:1}},Cr=function(e,t){var n=tr(180),r=[];return On(t).forEach((function(t,i){if(0===i){var o=t[0];if(20===o.type&&-1!==["top","left","right","bottom"].indexOf(o.value))return void(n=er(t));if(Zn(o))return void(n=(Yn.parse(e,o)+tr(270))%tr(360))}var a=pr(e,t);r.push(a)})),{angle:n,stops:r,type:1}},kr=function(e,t){var n=tr(180),r=[],i=1,o=0,a=3,A=[];return On(t).forEach((function(t,n){var o=t[0];if(0===n){if(Un(o)&&"linear"===o.value)return void(i=1);if(Un(o)&&"radial"===o.value)return void(i=2)}if(18===o.type)if("from"===o.name){var a=nr.parse(e,o.values[0]);r.push({stop:Kn,color:a})}else if("to"===o.name)a=nr.parse(e,o.values[0]),r.push({stop:Vn,color:a});else if("color-stop"===o.name){var A=o.values.filter(Dn);if(2===A.length){a=nr.parse(e,A[1]);var s=A[0];Fn(s)&&r.push({stop:{type:16,number:100*s.number,flags:s.flags},color:a})}}})),1===i?{angle:(n+tr(180))%tr(360),stops:r,type:i}:{size:a,shape:o,stops:r,position:A,type:i}},Tr="closest-side",Er="farthest-side",Sr="closest-corner",xr="farthest-corner",Qr="circle",Lr="ellipse",Ir="cover",Fr="contain",Ur=function(e,t){var n=0,r=3,i=[],o=[];return On(t).forEach((function(t,a){var A=!0;if(0===a){var s=!1;A=t.reduce((function(e,t){if(s)if(Un(t))switch(t.value){case"center":return o.push(Xn),e;case"top":case"left":return o.push(Kn),e;case"right":case"bottom":return o.push(Vn),e}else(Pn(t)||Rn(t))&&o.push(t);else if(Un(t))switch(t.value){case Qr:return n=0,!1;case Lr:return n=1,!1;case"at":return s=!0,!1;case Tr:return r=0,!1;case Ir:case Er:return r=1,!1;case Fr:case Sr:return r=2,!1;case xr:return r=3,!1}else if(Rn(t)||Pn(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e}),A)}if(A){var l=pr(e,t);i.push(l)}})),{size:r,shape:n,stops:i,position:o,type:2}},_r=function(e,t){var n=0,r=3,i=[],o=[];return On(t).forEach((function(t,a){var A=!0;if(0===a?A=t.reduce((function(e,t){if(Un(t))switch(t.value){case"center":return o.push(Xn),!1;case"top":case"left":return o.push(Kn),!1;case"right":case"bottom":return o.push(Vn),!1}else if(Pn(t)||Rn(t))return o.push(t),!1;return e}),A):1===a&&(A=t.reduce((function(e,t){if(Un(t))switch(t.value){case Qr:return n=0,!1;case Lr:return n=1,!1;case Fr:case Tr:return r=0,!1;case Er:return r=1,!1;case Sr:return r=2,!1;case Ir:case xr:return r=3,!1}else if(Rn(t)||Pn(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e}),A)),A){var s=pr(e,t);i.push(s)}})),{size:r,shape:n,stops:i,position:o,type:2}},Mr=function(e){return 1===e.type},Hr=function(e){return 2===e.type},Dr={name:"image",parse:function(e,t){if(22===t.type){var n={url:t.value,type:0};return e.cache.addImage(t.value),n}if(18===t.type){var r=Rr[t.name];if(void 0===r)throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return r(e,t.values)}throw new Error("Unsupported image type "+t.type)}};function Or(e){return!(20===e.type&&"none"===e.value||18===e.type&&!Rr[e.name])}var Nr,Rr={"linear-gradient":Br,"-moz-linear-gradient":Cr,"-ms-linear-gradient":Cr,"-o-linear-gradient":Cr,"-webkit-linear-gradient":Cr,"radial-gradient":Ur,"-moz-radial-gradient":_r,"-ms-radial-gradient":_r,"-o-radial-gradient":_r,"-webkit-radial-gradient":_r,"-webkit-gradient":kr},Pr={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(0===t.length)return[];var n=t[0];return 20===n.type&&"none"===n.value?[]:t.filter((function(e){return Dn(e)&&Or(e)})).map((function(t){return Dr.parse(e,t)}))}},$r={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map((function(e){if(Un(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Kr={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return On(t).map((function(e){return e.filter(Pn)})).map($n)}},Xr={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return On(t).map((function(e){return e.filter(Un).map((function(e){return e.value})).join(" ")})).map(Vr)}},Vr=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}};!function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"}(Nr||(Nr={}));var Gr,jr={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return On(t).map((function(e){return e.filter(Wr)}))}},Wr=function(e){return Un(e)||Pn(e)},zr=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},qr=zr("top"),Jr=zr("right"),Yr=zr("bottom"),Zr=zr("left"),ei=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return $n(t.filter(Pn))}}},ti=ei("top-left"),ni=ei("top-right"),ri=ei("bottom-right"),ii=ei("bottom-left"),oi=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},ai=oi("top"),Ai=oi("right"),si=oi("bottom"),li=oi("left"),ci=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return In(t)?t.number:0}}},ui=ci("top"),hi=ci("right"),di=ci("bottom"),fi=ci("left"),pi={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},gi={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){return"rtl"===t?1:0}},mi={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(Un).reduce((function(e,t){return e|vi(t.value)}),0)}},vi=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},yi={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},bi={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,t){return 20===t.type&&"normal"===t.value?0:17===t.type||15===t.type?t.number:0}};!function(e){e.NORMAL="normal",e.STRICT="strict"}(Gr||(Gr={}));var wi,Bi={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){return"strict"===t?Gr.STRICT:Gr.NORMAL}},Ci={name:"line-height",initialValue:"normal",prefix:!1,type:4},ki=function(e,t){return Un(e)&&"normal"===e.value?1.2*t:17===e.type?t*e.number:Pn(e)?jn(e,t):t},Ti={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return 20===t.type&&"none"===t.value?null:Dr.parse(e,t)}},Ei={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,t){return"inside"===t?0:1}},Si={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},xi=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},Qi=xi("top"),Li=xi("right"),Ii=xi("bottom"),Fi=xi("left"),Ui={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(Un).map((function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}}))}},_i={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){return"break-word"===t?"break-word":"normal"}},Mi=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Hi=Mi("top"),Di=Mi("right"),Oi=Mi("bottom"),Ni=Mi("left"),Ri={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,t){switch(t){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},Pi={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},$i={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&Mn(t[0],"none")?[]:On(t).map((function(t){for(var n={color:hr.TRANSPARENT,offsetX:Kn,offsetY:Kn,blur:Kn},r=0,i=0;i1?1:0],this.overflowWrap=ko(e,_i,t.overflowWrap),this.paddingTop=ko(e,Hi,t.paddingTop),this.paddingRight=ko(e,Di,t.paddingRight),this.paddingBottom=ko(e,Oi,t.paddingBottom),this.paddingLeft=ko(e,Ni,t.paddingLeft),this.paintOrder=ko(e,vo,t.paintOrder),this.position=ko(e,Pi,t.position),this.textAlign=ko(e,Ri,t.textAlign),this.textDecorationColor=ko(e,no,null!==(n=t.textDecorationColor)&&void 0!==n?n:t.color),this.textDecorationLine=ko(e,ro,null!==(r=t.textDecorationLine)&&void 0!==r?r:t.textDecoration),this.textShadow=ko(e,$i,t.textShadow),this.textTransform=ko(e,Ki,t.textTransform),this.transform=ko(e,Xi,t.transform),this.transformOrigin=ko(e,qi,t.transformOrigin),this.visibility=ko(e,Ji,t.visibility),this.webkitTextStrokeColor=ko(e,yo,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=ko(e,bo,t.webkitTextStrokeWidth),this.wordBreak=ko(e,Yi,t.wordBreak),this.zIndex=ko(e,Zi,t.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},e.prototype.isTransparent=function(){return rr(this.backgroundColor)},e.prototype.isTransformed=function(){return null!==this.transform},e.prototype.isPositioned=function(){return 0!==this.position},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return 0!==this.float},e.prototype.isInlineLevel=function(){return lo(this.display,4)||lo(this.display,33554432)||lo(this.display,268435456)||lo(this.display,536870912)||lo(this.display,67108864)||lo(this.display,134217728)},e}(),Bo=function(){function e(e,t){this.content=ko(e,co,t.content),this.quotes=ko(e,po,t.quotes)}return e}(),Co=function(){function e(e,t){this.counterIncrement=ko(e,uo,t.counterIncrement),this.counterReset=ko(e,ho,t.counterReset)}return e}(),ko=function(e,t,n){var r=new Qn,i=null!=n?n.toString():t.initialValue;r.write(i);var o=new Ln(r.read());switch(t.type){case 2:var a=o.parseComponentValue();return t.parse(e,Un(a)?a.value:t.initialValue);case 0:return t.parse(e,o.parseComponentValue());case 1:return t.parse(e,o.parseComponentValues());case 4:return o.parseComponentValue();case 3:switch(t.format){case"angle":return Yn.parse(e,o.parseComponentValue());case"color":return nr.parse(e,o.parseComponentValue());case"image":return Dr.parse(e,o.parseComponentValue());case"length":var A=o.parseComponentValue();return Rn(A)?A:Kn;case"length-percentage":var s=o.parseComponentValue();return Pn(s)?s:Kn;case"time":return eo.parse(e,o.parseComponentValue())}}},To="data-html2canvas-debug",Eo=function(e){switch(e.getAttribute(To)){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},So=function(e,t){var n=Eo(e);return 1===n||t===n},xo=function(){function e(e,t){this.context=e,this.textNodes=[],this.elements=[],this.flags=0,So(t,3),this.styles=new wo(e,window.getComputedStyle(t,null)),pA(t)&&(this.styles.animationDuration.some((function(e){return e>0}))&&(t.style.animationDuration="0s"),null!==this.styles.transform&&(t.style.transform="none")),this.bounds=A(this.context,t),So(t,4)&&(this.flags|=16)}return e}(),Qo="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Lo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Io="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Fo=0;Fo>4,c[s++]=(15&r)<<4|i>>2,c[s++]=(3&i)<<6|63&o;return l},_o=function(e){for(var t=e.length,n=[],r=0;r>Ho,Ro=(1<>Ho)+32,$o=65536>>Do,Ko=(1<=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>Ho])<>Ho)])<>Do),t=this.index[t],t+=e>>Ho&Ko,t=((t=this.index[t])<=55296&&i<=56319&&n>10),a%1024+56320)),(i+1===n||r.length>16384)&&(o+=String.fromCharCode.apply(String,r),r.length=0)}return o},fa=Go(Qo),pa="×",ga="÷",ma=function(e){return fa.get(e)},va=function(e,t,n){var r=n-2,i=t[r],o=t[n-1],a=t[n];if(o===Zo&&a===ea)return pa;if(o===Zo||o===ea||o===ta)return ga;if(a===Zo||a===ea||a===ta)return ga;if(o===ia&&-1!==[ia,oa,Aa,sa].indexOf(a))return pa;if(!(o!==Aa&&o!==oa||a!==oa&&a!==aa))return pa;if((o===sa||o===aa)&&a===aa)return pa;if(a===la||a===na)return pa;if(a===ra)return pa;if(o===Yo)return pa;if(o===la&&a===ca){for(;i===na;)i=t[--r];if(i===ca)return pa}if(o===ua&&a===ua){for(var A=0;i===ua;)A++,i=t[--r];if(A%2==0)return pa}return ga},ya=function(e){var t=ha(e),n=t.length,r=0,i=0,o=t.map(ma);return{next:function(){if(r>=n)return{done:!0,value:null};for(var e=pa;ra.x||i.y>a.y;return a=i,0===t||A}));return e.body.removeChild(t),A},Ca=function(){return void 0!==(new Image).crossOrigin},ka=function(){return"string"==typeof(new XMLHttpRequest).responseType},Ta=function(e){var t=new Image,n=e.createElement("canvas"),r=n.getContext("2d");if(!r)return!1;t.src="data:image/svg+xml,";try{r.drawImage(t,0,0),n.toDataURL()}catch(e){return!1}return!0},Ea=function(e){return 0===e[0]&&255===e[1]&&0===e[2]&&255===e[3]},Sa=function(e){var t=e.createElement("canvas"),n=100;t.width=n,t.height=n;var r=t.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,n,n);var i=new Image,o=t.toDataURL();i.src=o;var a=xa(n,n,0,0,i);return r.fillStyle="red",r.fillRect(0,0,n,n),Qa(a).then((function(t){r.drawImage(t,0,0);var i=r.getImageData(0,0,n,n).data;r.fillStyle="red",r.fillRect(0,0,n,n);var a=e.createElement("div");return a.style.backgroundImage="url("+o+")",a.style.height=n+"px",Ea(i)?Qa(xa(n,n,0,0,a)):Promise.reject(!1)})).then((function(e){return r.drawImage(e,0,0),Ea(r.getImageData(0,0,n,n).data)})).catch((function(){return!1}))},xa=function(e,t,n,r,i){var o="http://www.w3.org/2000/svg",a=document.createElementNS(o,"svg"),A=document.createElementNS(o,"foreignObject");return a.setAttributeNS(null,"width",e.toString()),a.setAttributeNS(null,"height",t.toString()),A.setAttributeNS(null,"width","100%"),A.setAttributeNS(null,"height","100%"),A.setAttributeNS(null,"x",n.toString()),A.setAttributeNS(null,"y",r.toString()),A.setAttributeNS(null,"externalResourcesRequired","true"),a.appendChild(A),A.appendChild(i),a},Qa=function(e){return new Promise((function(t,n){var r=new Image;r.onload=function(){return t(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))}))},La={get SUPPORT_RANGE_BOUNDS(){var e=wa(document);return Object.defineProperty(La,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=La.SUPPORT_RANGE_BOUNDS&&Ba(document);return Object.defineProperty(La,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=Ta(document);return Object.defineProperty(La,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e="function"==typeof Array.from&&"function"==typeof window.fetch?Sa(document):Promise.resolve(!1);return Object.defineProperty(La,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=Ca();return Object.defineProperty(La,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=ka();return Object.defineProperty(La,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(La,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(La,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},Ia=function(){function e(e,t){this.text=e,this.bounds=t}return e}(),Fa=function(e,t,n,r){var i=Da(t,n),o=[],A=0;return i.forEach((function(t){if(n.textDecorationLine.length||t.trim().length>0)if(La.SUPPORT_RANGE_BOUNDS){var i=_a(r,A,t.length).getClientRects();if(i.length>1){var s=Ma(t),l=0;s.forEach((function(t){o.push(new Ia(t,a.fromDOMRectList(e,_a(r,l+A,t.length).getClientRects()))),l+=t.length}))}else o.push(new Ia(t,a.fromDOMRectList(e,i)))}else{var c=r.splitText(t.length);o.push(new Ia(t,Ua(e,r))),r=c}else La.SUPPORT_RANGE_BOUNDS||(r=r.splitText(t.length));A+=t.length})),o},Ua=function(e,t){var n=t.ownerDocument;if(n){var r=n.createElement("html2canvaswrapper");r.appendChild(t.cloneNode(!0));var i=t.parentNode;if(i){i.replaceChild(r,t);var o=A(e,r);return r.firstChild&&i.replaceChild(r.firstChild,r),o}}return a.EMPTY},_a=function(e,t,n){var r=e.ownerDocument;if(!r)throw new Error("Node has no owner document");var i=r.createRange();return i.setStart(e,t),i.setEnd(e,t+n),i},Ma=function(e){if(La.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).map((function(e){return e.segment}))}return ba(e)},Ha=function(e,t){if(La.SUPPORT_NATIVE_TEXT_SEGMENTATION){var n=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(n.segment(e)).map((function(e){return e.segment}))}return Na(e,t)},Da=function(e,t){return 0!==t.letterSpacing?Ma(e):Ha(e,t)},Oa=[32,160,4961,65792,65793,4153,4241],Na=function(e,t){for(var n,r=$e(e,{lineBreak:t.lineBreak,wordBreak:"break-word"===t.overflowWrap?"break-word":t.wordBreak}),i=[],o=function(){if(n.value){var e=n.value.slice(),t=l(e),r="";t.forEach((function(e){-1===Oa.indexOf(e)?r+=c(e):(r.length&&i.push(r),i.push(c(e)),r="")})),r.length&&i.push(r)}};!(n=r.next()).done;)o();return i},Ra=function(){function e(e,t,n){this.text=Pa(t.data,n.textTransform),this.textBounds=Fa(e,this.text,n,t)}return e}(),Pa=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace($a,Ka);case 2:return e.toUpperCase();default:return e}},$a=/(^|\s|:|-|\(|\))([a-z])/g,Ka=function(e,t,n){return e.length>0?t+n.toUpperCase():e},Xa=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.src=n.currentSrc||n.src,r.intrinsicWidth=n.naturalWidth,r.intrinsicHeight=n.naturalHeight,r.context.cache.addImage(r.src),r}return t(n,e),n}(xo),Va=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.canvas=n,r.intrinsicWidth=n.width,r.intrinsicHeight=n.height,r}return t(n,e),n}(xo),Ga=function(e){function n(t,n){var r=e.call(this,t,n)||this,i=new XMLSerializer,o=A(t,n);return n.setAttribute("width",o.width+"px"),n.setAttribute("height",o.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(n)),r.intrinsicWidth=n.width.baseVal.value,r.intrinsicHeight=n.height.baseVal.value,r.context.cache.addImage(r.svg),r}return t(n,e),n}(xo),ja=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.value=n.value,r}return t(n,e),n}(xo),Wa=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.start=n.start,r.reversed="boolean"==typeof n.reversed&&!0===n.reversed,r}return t(n,e),n}(xo),za=[{type:15,flags:0,unit:"px",number:3}],qa=[{type:16,flags:0,number:50}],Ja=function(e){return e.width>e.height?new a(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width0)n.textNodes.push(new Ra(e,i,n.styles));else if(fA(i))if(IA(i)&&i.assignedNodes)i.assignedNodes().forEach((function(t){return sA(e,t,n,r)}));else{var a=lA(e,i);a.styles.isVisible()&&(uA(i,a,r)?a.flags|=4:hA(a.styles)&&(a.flags|=2),-1!==AA.indexOf(i.tagName)&&(a.flags|=8),n.elements.push(a),i.slot,i.shadowRoot?sA(e,i.shadowRoot,a,r):QA(i)||wA(i)||LA(i)||sA(e,i,a,r))}},lA=function(e,t){return TA(t)?new Xa(e,t):CA(t)?new Va(e,t):wA(t)?new Ga(e,t):mA(t)?new ja(e,t):vA(t)?new Wa(e,t):yA(t)?new rA(e,t):LA(t)?new iA(e,t):QA(t)?new oA(e,t):EA(t)?new aA(e,t):new xo(e,t)},cA=function(e,t){var n=lA(e,t);return n.flags|=4,sA(e,t,n,n),n},uA=function(e,t,n){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||BA(e)&&n.styles.isTransparent()},hA=function(e){return e.isPositioned()||e.isFloating()},dA=function(e){return e.nodeType===Node.TEXT_NODE},fA=function(e){return e.nodeType===Node.ELEMENT_NODE},pA=function(e){return fA(e)&&void 0!==e.style&&!gA(e)},gA=function(e){return"object"==typeof e.className},mA=function(e){return"LI"===e.tagName},vA=function(e){return"OL"===e.tagName},yA=function(e){return"INPUT"===e.tagName},bA=function(e){return"HTML"===e.tagName},wA=function(e){return"svg"===e.tagName},BA=function(e){return"BODY"===e.tagName},CA=function(e){return"CANVAS"===e.tagName},kA=function(e){return"VIDEO"===e.tagName},TA=function(e){return"IMG"===e.tagName},EA=function(e){return"IFRAME"===e.tagName},SA=function(e){return"STYLE"===e.tagName},xA=function(e){return"SCRIPT"===e.tagName},QA=function(e){return"TEXTAREA"===e.tagName},LA=function(e){return"SELECT"===e.tagName},IA=function(e){return"SLOT"===e.tagName},FA=function(e){return e.tagName.indexOf("-")>0},UA=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(e){var t=this.counters[e];return t||[]},e.prototype.pop=function(e){var t=this;e.forEach((function(e){return t.counters[e].pop()}))},e.prototype.parse=function(e){var t=this,n=e.counterIncrement,r=e.counterReset,i=!0;null!==n&&n.forEach((function(e){var n=t.counters[e.counter];n&&0!==e.increment&&(i=!1,n.length||n.push(1),n[Math.max(0,n.length-1)]+=e.increment)}));var o=[];return i&&r.forEach((function(e){var n=t.counters[e.counter];o.push(e.counter),n||(n=t.counters[e.counter]=[]),n.push(e.reset)})),o},e}(),_A={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},MA={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},HA={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},DA={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},OA=function(e,t,n,r,i,o){return en?JA(e,i,o.length>0):r.integers.reduce((function(t,n,i){for(;e>=n;)e-=n,t+=r.values[i];return t}),"")+o},NA=function(e,t,n,r){var i="";do{n||e--,i=r(e)+i,e/=t}while(e*t>=t);return i},RA=function(e,t,n,r,i){var o=n-t+1;return(e<0?"-":"")+(NA(Math.abs(e),o,r,(function(e){return c(Math.floor(e%o)+t)}))+i)},PA=function(e,t,n){void 0===n&&(n=". ");var r=t.length;return NA(Math.abs(e),r,!1,(function(e){return t[Math.floor(e%r)]}))+n},$A=1,KA=2,XA=4,VA=8,GA=function(e,t,n,r,i,o){if(e<-9999||e>9999)return JA(e,4,i.length>0);var a=Math.abs(e),A=i;if(0===a)return t[0]+A;for(var s=0;a>0&&s<=4;s++){var l=a%10;0===l&&lo(o,$A)&&""!==A?A=t[l]+A:l>1||1===l&&0===s||1===l&&1===s&&lo(o,KA)||1===l&&1===s&&lo(o,XA)&&e>100||1===l&&s>1&&lo(o,VA)?A=t[l]+(s>0?n[s-1]:"")+A:1===l&&s>0&&(A=n[s-1]+A),a=Math.floor(a/10)}return(e<0?r:"")+A},jA="十百千萬",WA="拾佰仟萬",zA="マイナス",qA="마이너스",JA=function(e,t,n){var r=n?". ":"",i=n?"、":"",o=n?", ":"",a=n?" ":"";switch(t){case 0:return"•"+a;case 1:return"◦"+a;case 2:return"◾"+a;case 5:var A=RA(e,48,57,!0,r);return A.length<4?"0"+A:A;case 4:return PA(e,"〇一二三四五六七八九",i);case 6:return OA(e,1,3999,_A,3,r).toLowerCase();case 7:return OA(e,1,3999,_A,3,r);case 8:return RA(e,945,969,!1,r);case 9:return RA(e,97,122,!1,r);case 10:return RA(e,65,90,!1,r);case 11:return RA(e,1632,1641,!0,r);case 12:case 49:return OA(e,1,9999,MA,3,r);case 35:return OA(e,1,9999,MA,3,r).toLowerCase();case 13:return RA(e,2534,2543,!0,r);case 14:case 30:return RA(e,6112,6121,!0,r);case 15:return PA(e,"子丑寅卯辰巳午未申酉戌亥",i);case 16:return PA(e,"甲乙丙丁戊己庚辛壬癸",i);case 17:case 48:return GA(e,"零一二三四五六七八九",jA,"負",i,KA|XA|VA);case 47:return GA(e,"零壹貳參肆伍陸柒捌玖",WA,"負",i,$A|KA|XA|VA);case 42:return GA(e,"零一二三四五六七八九",jA,"负",i,KA|XA|VA);case 41:return GA(e,"零壹贰叁肆伍陆柒捌玖",WA,"负",i,$A|KA|XA|VA);case 26:return GA(e,"〇一二三四五六七八九","十百千万",zA,i,0);case 25:return GA(e,"零壱弐参四伍六七八九","拾百千万",zA,i,$A|KA|XA);case 31:return GA(e,"영일이삼사오육칠팔구","십백천만",qA,o,$A|KA|XA);case 33:return GA(e,"零一二三四五六七八九","十百千萬",qA,o,0);case 32:return GA(e,"零壹貳參四五六七八九","拾百千",qA,o,$A|KA|XA);case 18:return RA(e,2406,2415,!0,r);case 20:return OA(e,1,19999,DA,3,r);case 21:return RA(e,2790,2799,!0,r);case 22:return RA(e,2662,2671,!0,r);case 22:return OA(e,1,10999,HA,3,r);case 23:return PA(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return PA(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return RA(e,3302,3311,!0,r);case 28:return PA(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",i);case 29:return PA(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",i);case 34:return RA(e,3792,3801,!0,r);case 37:return RA(e,6160,6169,!0,r);case 38:return RA(e,4160,4169,!0,r);case 39:return RA(e,2918,2927,!0,r);case 40:return RA(e,1776,1785,!0,r);case 43:return RA(e,3046,3055,!0,r);case 44:return RA(e,3174,3183,!0,r);case 45:return RA(e,3664,3673,!0,r);case 46:return RA(e,3872,3881,!0,r);default:return RA(e,48,57,!0,r)}},YA="data-html2canvas-ignore",ZA=function(){function e(e,t,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=t,this.counters=new UA,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(e,t){var n=this,o=ts(e,t);if(!o.contentWindow)return Promise.reject("Unable to find iframe window");var a=e.defaultView.pageXOffset,A=e.defaultView.pageYOffset,s=o.contentWindow,l=s.document,c=is(o).then((function(){return r(n,void 0,void 0,(function(){var e,n;return i(this,(function(r){switch(r.label){case 0:return this.scrolledElements.forEach(ls),s&&(s.scrollTo(t.left,t.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||s.scrollY===t.top&&s.scrollX===t.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-t.left,s.scrollY-t.top,0,0))),e=this.options.onclone,void 0===(n=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:r.sent(),r.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,rs(l)]:[3,4];case 3:r.sent(),r.label=4;case 4:return"function"==typeof e?[2,Promise.resolve().then((function(){return e(l,n)})).then((function(){return o}))]:[2,o]}}))}))}));return l.open(),l.write(As(document.doctype)+""),ss(this.referenceElement.ownerDocument,a,A),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),c},e.prototype.createElementClone=function(e){if(So(e,2),CA(e))return this.createCanvasClone(e);if(kA(e))return this.createVideoClone(e);if(SA(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return TA(t)&&(TA(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),"lazy"===t.loading&&(t.loading="eager")),FA(t)?this.createCustomElementClone(t):t},e.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return as(e.style,t),t},e.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var n=[].slice.call(t.cssRules,0).reduce((function(e,t){return t&&"string"==typeof t.cssText?e+t.cssText:e}),""),r=e.cloneNode(!1);return r.textContent=n,r}}catch(e){if(this.context.logger.error("Unable to access cssRules property",e),"SecurityError"!==e.name)throw e}return e.cloneNode(!1)},e.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var n=e.ownerDocument.createElement("img");try{return n.src=e.toDataURL(),n}catch(t){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var r=e.cloneNode(!1);try{r.width=e.width,r.height=e.height;var i=e.getContext("2d"),o=r.getContext("2d");if(o)if(!this.options.allowTaint&&i)o.putImageData(i.getImageData(0,0,e.width,e.height),0,0);else{var a=null!==(t=e.getContext("webgl2"))&&void 0!==t?t:e.getContext("webgl");if(a){var A=a.getContextAttributes();!1===(null==A?void 0:A.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}o.drawImage(e,0,0)}return r}catch(t){this.context.logger.info("Unable to clone canvas as it is tainted",e)}return r},e.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var n=t.getContext("2d");try{return n&&(n.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||n.getImageData(0,0,t.width,t.height)),t}catch(t){this.context.logger.info("Unable to clone video as it is tainted",e)}var r=e.ownerDocument.createElement("canvas");return r.width=e.offsetWidth,r.height=e.offsetHeight,r},e.prototype.appendChildNode=function(e,t,n){fA(t)&&(xA(t)||t.hasAttribute(YA)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(t))||this.options.copyStyles&&fA(t)&&SA(t)||e.appendChild(this.cloneNode(t,n))},e.prototype.cloneChildNodes=function(e,t,n){for(var r=this,i=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;i;i=i.nextSibling)if(fA(i)&&IA(i)&&"function"==typeof i.assignedNodes){var o=i.assignedNodes();o.length&&o.forEach((function(e){return r.appendChildNode(t,e,n)}))}else this.appendChildNode(t,i,n)},e.prototype.cloneNode=function(e,t){if(dA(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&fA(e)&&(pA(e)||gA(e))){var r=this.createElementClone(e);r.style.transitionProperty="none";var i=n.getComputedStyle(e),o=n.getComputedStyle(e,":before"),a=n.getComputedStyle(e,":after");this.referenceElement===e&&pA(r)&&(this.clonedReferenceElement=r),BA(r)&&ps(r);var A=this.counters.parse(new Co(this.context,i)),s=this.resolvePseudoContent(e,r,o,Jo.BEFORE);FA(e)&&(t=!0),kA(e)||this.cloneChildNodes(e,r,t),s&&r.insertBefore(s,r.firstChild);var l=this.resolvePseudoContent(e,r,a,Jo.AFTER);return l&&r.appendChild(l),this.counters.pop(A),(i&&(this.options.copyStyles||gA(e))&&!EA(e)||t)&&as(i,r),0===e.scrollTop&&0===e.scrollLeft||this.scrolledElements.push([r,e.scrollLeft,e.scrollTop]),(QA(e)||LA(e))&&(QA(r)||LA(r))&&(r.value=e.value),r}return e.cloneNode(!1)},e.prototype.resolvePseudoContent=function(e,t,n,r){var i=this;if(n){var o=n.content,a=t.ownerDocument;if(a&&o&&"none"!==o&&"-moz-alt-content"!==o&&"none"!==n.display){this.counters.parse(new Co(this.context,n));var A=new Bo(this.context,n),s=a.createElement("html2canvaspseudoelement");as(n,s),A.content.forEach((function(t){if(0===t.type)s.appendChild(a.createTextNode(t.value));else if(22===t.type){var n=a.createElement("img");n.src=t.value,n.style.opacity="1",s.appendChild(n)}else if(18===t.type){if("attr"===t.name){var r=t.values.filter(Un);r.length&&s.appendChild(a.createTextNode(e.getAttribute(r[0].value)||""))}else if("counter"===t.name){var o=t.values.filter(Dn),l=o[0],c=o[1];if(l&&Un(l)){var u=i.counters.getCounterValue(l.value),h=c&&Un(c)?Si.parse(i.context,c.value):3;s.appendChild(a.createTextNode(JA(u,h,!1)))}}else if("counters"===t.name){var d=t.values.filter(Dn),f=(l=d[0],d[1]);if(c=d[2],l&&Un(l)){var p=i.counters.getCounterValues(l.value),g=c&&Un(c)?Si.parse(i.context,c.value):3,m=f&&0===f.type?f.value:"",v=p.map((function(e){return JA(e,g,!1)})).join(m);s.appendChild(a.createTextNode(v))}}}else if(20===t.type)switch(t.value){case"open-quote":s.appendChild(a.createTextNode(go(A.quotes,i.quoteDepth++,!0)));break;case"close-quote":s.appendChild(a.createTextNode(go(A.quotes,--i.quoteDepth,!1)));break;default:s.appendChild(a.createTextNode(t.value))}})),s.className=hs+" "+ds;var l=r===Jo.BEFORE?" "+hs:" "+ds;return gA(t)?t.className.baseValue+=l:t.className+=l,s}}},e.destroy=function(e){return!!e.parentNode&&(e.parentNode.removeChild(e),!0)},e}();!function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"}(Jo||(Jo={}));var es,ts=function(e,t){var n=e.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=t.width.toString(),n.height=t.height.toString(),n.scrolling="no",n.setAttribute(YA,"true"),e.body.appendChild(n),n},ns=function(e){return new Promise((function(t){e.complete?t():e.src?(e.onload=t,e.onerror=t):t()}))},rs=function(e){return Promise.all([].slice.call(e.images,0).map(ns))},is=function(e){return new Promise((function(t,n){var r=e.contentWindow;if(!r)return n("No window assigned for iframe");var i=r.document;r.onload=e.onload=function(){r.onload=e.onload=null;var n=setInterval((function(){i.body.childNodes.length>0&&"complete"===i.readyState&&(clearInterval(n),t(e))}),50)}}))},os=["all","d","content"],as=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e.item(n);-1===os.indexOf(r)&&t.style.setProperty(r,e.getPropertyValue(r))}return t},As=function(e){var t="";return e&&(t+=""),t},ss=function(e,t,n){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||n!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,n)},ls=function(e){var t=e[0],n=e[1],r=e[2];t.scrollLeft=n,t.scrollTop=r},cs=":before",us=":after",hs="___html2canvas___pseudoelement_before",ds="___html2canvas___pseudoelement_after",fs='{\n content: "" !important;\n display: none !important;\n}',ps=function(e){gs(e,"."+hs+cs+fs+"\n ."+ds+us+fs)},gs=function(e,t){var n=e.ownerDocument;if(n){var r=n.createElement("style");r.textContent=t,e.appendChild(r)}},ms=function(){function e(){}return e.getOrigin=function(t){var n=e._link;return n?(n.href=t,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e}(),vs=function(){function e(e,t){this.context=e,this._options=t,this._cache={}}return e.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)?t:Ts(e)||Bs(e)?((this._cache[e]=this.loadImage(e)).catch((function(){})),t):t},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return r(this,void 0,void 0,(function(){var t,n,r,o,a=this;return i(this,(function(i){switch(i.label){case 0:return t=ms.isSameOrigin(e),n=!Cs(e)&&!0===this._options.useCORS&&La.SUPPORT_CORS_IMAGES&&!t,r=!Cs(e)&&!t&&!Ts(e)&&"string"==typeof this._options.proxy&&La.SUPPORT_CORS_XHR&&!n,t||!1!==this._options.allowTaint||Cs(e)||Ts(e)||r||n?(o=e,r?[4,this.proxy(o)]:[3,2]):[2];case 1:o=i.sent(),i.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise((function(e,t){var r=new Image;r.onload=function(){return e(r)},r.onerror=t,(ks(o)||n)&&(r.crossOrigin="anonymous"),r.src=o,!0===r.complete&&setTimeout((function(){return e(r)}),500),a._options.imageTimeout>0&&setTimeout((function(){return t("Timed out ("+a._options.imageTimeout+"ms) loading image")}),a._options.imageTimeout)}))];case 3:return[2,i.sent()]}}))}))},e.prototype.has=function(e){return void 0!==this._cache[e]},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var t=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=e.substring(0,256);return new Promise((function(i,o){var a=La.SUPPORT_RESPONSE_TYPE?"blob":"text",A=new XMLHttpRequest;A.onload=function(){if(200===A.status)if("text"===a)i(A.response);else{var e=new FileReader;e.addEventListener("load",(function(){return i(e.result)}),!1),e.addEventListener("error",(function(e){return o(e)}),!1),e.readAsDataURL(A.response)}else o("Failed to proxy resource "+r+" with status code "+A.status)},A.onerror=o;var s=n.indexOf("?")>-1?"&":"?";if(A.open("GET",""+n+s+"url="+encodeURIComponent(e)+"&responseType="+a),"text"!==a&&A instanceof XMLHttpRequest&&(A.responseType=a),t._options.imageTimeout){var l=t._options.imageTimeout;A.timeout=l,A.ontimeout=function(){return o("Timed out ("+l+"ms) proxying "+r)}}A.send()}))},e}(),ys=/^data:image\/svg\+xml/i,bs=/^data:image\/.*;base64,/i,ws=/^data:image\/.*/i,Bs=function(e){return La.SUPPORT_SVG_DRAWING||!Es(e)},Cs=function(e){return ws.test(e)},ks=function(e){return bs.test(e)},Ts=function(e){return"blob"===e.substr(0,4)},Es=function(e){return"svg"===e.substr(-3).toLowerCase()||ys.test(e)},Ss=function(){function e(e,t){this.type=0,this.x=e,this.y=t}return e.prototype.add=function(t,n){return new e(this.x+t,this.y+n)},e}(),xs=function(e,t,n){return new Ss(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n)},Qs=function(){function e(e,t,n,r){this.type=1,this.start=e,this.startControl=t,this.endControl=n,this.end=r}return e.prototype.subdivide=function(t,n){var r=xs(this.start,this.startControl,t),i=xs(this.startControl,this.endControl,t),o=xs(this.endControl,this.end,t),a=xs(r,i,t),A=xs(i,o,t),s=xs(a,A,t);return n?new e(this.start,r,a,s):new e(s,A,o,this.end)},e.prototype.add=function(t,n){return new e(this.start.add(t,n),this.startControl.add(t,n),this.endControl.add(t,n),this.end.add(t,n))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),Ls=function(e){return 1===e.type},Is=function(){function e(e){var t=e.styles,n=e.bounds,r=Gn(t.borderTopLeftRadius,n.width,n.height),i=r[0],o=r[1],a=Gn(t.borderTopRightRadius,n.width,n.height),A=a[0],s=a[1],l=Gn(t.borderBottomRightRadius,n.width,n.height),c=l[0],u=l[1],h=Gn(t.borderBottomLeftRadius,n.width,n.height),d=h[0],f=h[1],p=[];p.push((i+A)/n.width),p.push((d+c)/n.width),p.push((o+f)/n.height),p.push((s+u)/n.height);var g=Math.max.apply(Math,p);g>1&&(i/=g,o/=g,A/=g,s/=g,c/=g,u/=g,d/=g,f/=g);var m=n.width-A,v=n.height-u,y=n.width-c,b=n.height-f,w=t.borderTopWidth,B=t.borderRightWidth,C=t.borderBottomWidth,k=t.borderLeftWidth,T=jn(t.paddingTop,e.bounds.width),E=jn(t.paddingRight,e.bounds.width),S=jn(t.paddingBottom,e.bounds.width),x=jn(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||o>0?Fs(n.left+k/3,n.top+w/3,i-k/3,o-w/3,es.TOP_LEFT):new Ss(n.left+k/3,n.top+w/3),this.topRightBorderDoubleOuterBox=i>0||o>0?Fs(n.left+m,n.top+w/3,A-B/3,s-w/3,es.TOP_RIGHT):new Ss(n.left+n.width-B/3,n.top+w/3),this.bottomRightBorderDoubleOuterBox=c>0||u>0?Fs(n.left+y,n.top+v,c-B/3,u-C/3,es.BOTTOM_RIGHT):new Ss(n.left+n.width-B/3,n.top+n.height-C/3),this.bottomLeftBorderDoubleOuterBox=d>0||f>0?Fs(n.left+k/3,n.top+b,d-k/3,f-C/3,es.BOTTOM_LEFT):new Ss(n.left+k/3,n.top+n.height-C/3),this.topLeftBorderDoubleInnerBox=i>0||o>0?Fs(n.left+2*k/3,n.top+2*w/3,i-2*k/3,o-2*w/3,es.TOP_LEFT):new Ss(n.left+2*k/3,n.top+2*w/3),this.topRightBorderDoubleInnerBox=i>0||o>0?Fs(n.left+m,n.top+2*w/3,A-2*B/3,s-2*w/3,es.TOP_RIGHT):new Ss(n.left+n.width-2*B/3,n.top+2*w/3),this.bottomRightBorderDoubleInnerBox=c>0||u>0?Fs(n.left+y,n.top+v,c-2*B/3,u-2*C/3,es.BOTTOM_RIGHT):new Ss(n.left+n.width-2*B/3,n.top+n.height-2*C/3),this.bottomLeftBorderDoubleInnerBox=d>0||f>0?Fs(n.left+2*k/3,n.top+b,d-2*k/3,f-2*C/3,es.BOTTOM_LEFT):new Ss(n.left+2*k/3,n.top+n.height-2*C/3),this.topLeftBorderStroke=i>0||o>0?Fs(n.left+k/2,n.top+w/2,i-k/2,o-w/2,es.TOP_LEFT):new Ss(n.left+k/2,n.top+w/2),this.topRightBorderStroke=i>0||o>0?Fs(n.left+m,n.top+w/2,A-B/2,s-w/2,es.TOP_RIGHT):new Ss(n.left+n.width-B/2,n.top+w/2),this.bottomRightBorderStroke=c>0||u>0?Fs(n.left+y,n.top+v,c-B/2,u-C/2,es.BOTTOM_RIGHT):new Ss(n.left+n.width-B/2,n.top+n.height-C/2),this.bottomLeftBorderStroke=d>0||f>0?Fs(n.left+k/2,n.top+b,d-k/2,f-C/2,es.BOTTOM_LEFT):new Ss(n.left+k/2,n.top+n.height-C/2),this.topLeftBorderBox=i>0||o>0?Fs(n.left,n.top,i,o,es.TOP_LEFT):new Ss(n.left,n.top),this.topRightBorderBox=A>0||s>0?Fs(n.left+m,n.top,A,s,es.TOP_RIGHT):new Ss(n.left+n.width,n.top),this.bottomRightBorderBox=c>0||u>0?Fs(n.left+y,n.top+v,c,u,es.BOTTOM_RIGHT):new Ss(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=d>0||f>0?Fs(n.left,n.top+b,d,f,es.BOTTOM_LEFT):new Ss(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||o>0?Fs(n.left+k,n.top+w,Math.max(0,i-k),Math.max(0,o-w),es.TOP_LEFT):new Ss(n.left+k,n.top+w),this.topRightPaddingBox=A>0||s>0?Fs(n.left+Math.min(m,n.width-B),n.top+w,m>n.width+B?0:Math.max(0,A-B),Math.max(0,s-w),es.TOP_RIGHT):new Ss(n.left+n.width-B,n.top+w),this.bottomRightPaddingBox=c>0||u>0?Fs(n.left+Math.min(y,n.width-k),n.top+Math.min(v,n.height-C),Math.max(0,c-B),Math.max(0,u-C),es.BOTTOM_RIGHT):new Ss(n.left+n.width-B,n.top+n.height-C),this.bottomLeftPaddingBox=d>0||f>0?Fs(n.left+k,n.top+Math.min(b,n.height-C),Math.max(0,d-k),Math.max(0,f-C),es.BOTTOM_LEFT):new Ss(n.left+k,n.top+n.height-C),this.topLeftContentBox=i>0||o>0?Fs(n.left+k+x,n.top+w+T,Math.max(0,i-(k+x)),Math.max(0,o-(w+T)),es.TOP_LEFT):new Ss(n.left+k+x,n.top+w+T),this.topRightContentBox=A>0||s>0?Fs(n.left+Math.min(m,n.width+k+x),n.top+w+T,m>n.width+k+x?0:A-k+x,s-(w+T),es.TOP_RIGHT):new Ss(n.left+n.width-(B+E),n.top+w+T),this.bottomRightContentBox=c>0||u>0?Fs(n.left+Math.min(y,n.width-(k+x)),n.top+Math.min(v,n.height+w+T),Math.max(0,c-(B+E)),u-(C+S),es.BOTTOM_RIGHT):new Ss(n.left+n.width-(B+E),n.top+n.height-(C+S)),this.bottomLeftContentBox=d>0||f>0?Fs(n.left+k+x,n.top+b,Math.max(0,d-(k+x)),f-(C+S),es.BOTTOM_LEFT):new Ss(n.left+k+x,n.top+n.height-(C+S))}return e}();!function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(es||(es={}));var Fs=function(e,t,n,r,i){var o=(Math.sqrt(2)-1)/3*4,a=n*o,A=r*o,s=e+n,l=t+r;switch(i){case es.TOP_LEFT:return new Qs(new Ss(e,l),new Ss(e,l-A),new Ss(s-a,t),new Ss(s,t));case es.TOP_RIGHT:return new Qs(new Ss(e,t),new Ss(e+a,t),new Ss(s,l-A),new Ss(s,l));case es.BOTTOM_RIGHT:return new Qs(new Ss(s,t),new Ss(s,t+A),new Ss(e+a,l),new Ss(e,l));case es.BOTTOM_LEFT:default:return new Qs(new Ss(s,l),new Ss(s-a,l),new Ss(e,t+A),new Ss(e,t))}},Us=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},_s=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},Ms=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Hs=function(){function e(e,t,n){this.offsetX=e,this.offsetY=t,this.matrix=n,this.type=0,this.target=6}return e}(),Ds=function(){function e(e,t){this.path=e,this.target=t,this.type=1}return e}(),Os=function(){function e(e){this.opacity=e,this.type=2,this.target=6}return e}(),Ns=function(e){return 0===e.type},Rs=function(e){return 1===e.type},Ps=function(e){return 2===e.type},$s=function(e,t){return e.length===t.length&&e.some((function(e,n){return e===t[n]}))},Ks=function(e,t,n,r,i){return e.map((function(e,o){switch(o){case 0:return e.add(t,n);case 1:return e.add(t+r,n);case 2:return e.add(t+r,n+i);case 3:return e.add(t,n+i)}return e}))},Xs=function(){function e(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),Vs=function(){function e(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new Is(this.container),this.container.styles.opacity<1&&this.effects.push(new Os(this.container.styles.opacity)),null!==this.container.styles.transform){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new Hs(n,r,i))}if(0!==this.container.styles.overflowX){var o=Us(this.curves),a=Ms(this.curves);$s(o,a)?this.effects.push(new Ds(o,6)):(this.effects.push(new Ds(o,2)),this.effects.push(new Ds(a,4)))}}return e.prototype.getEffects=function(e){for(var t=-1===[2,3].indexOf(this.container.styles.position),n=this.parent,r=this.effects.slice(0);n;){var i=n.effects.filter((function(e){return!Rs(e)}));if(t||0!==n.container.styles.position||!n.parent){if(r.unshift.apply(r,i),t=-1===[2,3].indexOf(n.container.styles.position),0!==n.container.styles.overflowX){var o=Us(n.curves),a=Ms(n.curves);$s(o,a)||r.unshift(new Ds(a,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter((function(t){return lo(t.target,e)}))},e}(),Gs=function(e,t,n,r){e.container.elements.forEach((function(i){var o=lo(i.flags,4),a=lo(i.flags,2),A=new Vs(i,e);lo(i.styles.display,2048)&&r.push(A);var s=lo(i.flags,8)?[]:r;if(o||a){var l=o||i.styles.isPositioned()?n:t,c=new Xs(A);if(i.styles.isPositioned()||i.styles.opacity<1||i.styles.isTransformed()){var u=i.styles.zIndex.order;if(u<0){var h=0;l.negativeZIndex.some((function(e,t){return u>e.element.container.styles.zIndex.order?(h=t,!1):h>0})),l.negativeZIndex.splice(h,0,c)}else if(u>0){var d=0;l.positiveZIndex.some((function(e,t){return u>=e.element.container.styles.zIndex.order?(d=t+1,!1):d>0})),l.positiveZIndex.splice(d,0,c)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else i.styles.isFloating()?l.nonPositionedFloats.push(c):l.nonPositionedInlineLevel.push(c);Gs(A,c,o?c:n,s)}else i.styles.isInlineLevel()?t.inlineLevel.push(A):t.nonInlineLevel.push(A),Gs(A,t,n,s);lo(i.flags,8)&&js(i,s)}))},js=function(e,t){for(var n=e instanceof Wa?e.start:1,r=e instanceof Wa&&e.reversed,i=0;i0&&e.intrinsicHeight>0){var r=nl(e),i=Ms(t);this.path(i),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,e.intrinsicWidth,e.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},n.prototype.renderNodeContent=function(e){return r(this,void 0,void 0,(function(){var t,r,o,A,s,l,c,u,h,d,f,p,g,m,v,y,b,w;return i(this,(function(i){switch(i.label){case 0:this.applyEffects(e.getEffects(4)),t=e.container,r=e.curves,o=t.styles,A=0,s=t.textNodes,i.label=1;case 1:return A0&&k>0&&(v=r.ctx.createPattern(p,"repeat"),r.renderRepeat(b,v,E,S))):Hr(n)&&(y=ol(e,t,[null,null,null]),b=y[0],w=y[1],B=y[2],C=y[3],k=y[4],T=0===n.position.length?[Xn]:n.position,E=jn(T[0],C),S=jn(T[T.length-1],k),x=wr(n,E,S,C,k),Q=x[0],L=x[1],Q>0&&L>0&&(I=r.ctx.createRadialGradient(w+E,B+S,0,w+E,B+S,Q),gr(n.stops,2*Q).forEach((function(e){return I.addColorStop(e.stop,ir(e.color))})),r.path(b),r.ctx.fillStyle=I,Q!==L?(F=e.bounds.left+.5*e.bounds.width,U=e.bounds.top+.5*e.bounds.height,M=1/(_=L/Q),r.ctx.save(),r.ctx.translate(F,U),r.ctx.transform(1,0,0,_,0,0),r.ctx.translate(-F,-U),r.ctx.fillRect(w,M*(B-U)+U,C,k*M),r.ctx.restore()):r.ctx.fill())),i.label=6;case 6:return t--,[2]}}))},r=this,o=0,a=e.styles.backgroundImage.slice(0).reverse(),s.label=1;case 1:return o0?2!==l.style?[3,5]:[4,this.renderDashedDottedBorder(l.color,l.width,a,e.curves,2)]:[3,11]:[3,13];case 4:return i.sent(),[3,11];case 5:return 3!==l.style?[3,7]:[4,this.renderDashedDottedBorder(l.color,l.width,a,e.curves,3)];case 6:return i.sent(),[3,11];case 7:return 4!==l.style?[3,9]:[4,this.renderDoubleBorder(l.color,l.width,a,e.curves)];case 8:return i.sent(),[3,11];case 9:return[4,this.renderSolidBorder(l.color,a,e.curves)];case 10:i.sent(),i.label=11;case 11:a++,i.label=12;case 12:return A++,[3,3];case 13:return[2]}}))}))},n.prototype.renderDashedDottedBorder=function(e,t,n,o,a){return r(this,void 0,void 0,(function(){var r,A,s,l,c,u,h,d,f,p,g,m,v,y,b,w;return i(this,(function(i){return this.ctx.save(),r=Ys(o,n),A=zs(o,n),2===a&&(this.path(A),this.ctx.clip()),Ls(A[0])?(s=A[0].start.x,l=A[0].start.y):(s=A[0].x,l=A[0].y),Ls(A[1])?(c=A[1].end.x,u=A[1].end.y):(c=A[1].x,u=A[1].y),h=0===n||2===n?Math.abs(s-c):Math.abs(l-u),this.ctx.beginPath(),3===a?this.formatPath(r):this.formatPath(A.slice(0,2)),d=t<3?3*t:2*t,f=t<3?2*t:t,3===a&&(d=t,f=t),p=!0,h<=2*d?p=!1:h<=2*d+f?(d*=g=h/(2*d+f),f*=g):(m=Math.floor((h+f)/(d+f)),v=(h-m*d)/(m-1),f=(y=(h-(m+1)*d)/m)<=0||Math.abs(f-v)0&&void 0!==arguments[0]?arguments[0]:[];UA(e=zu(document.body.children)).call(e,(function(e,n){void 0!==t[n]&&(e.style.display=t[n])}))}(o),document.body.style.overflow=a}))};function kQ(e,t){CQ(e,(function(e,n){window.scrollTo(0,0),e.innerHTML=e.innerHTML.replace(/
    \n
    ')).call(e,o,'
    \n
    \n ')}},{key:"$tryRemoveMe",value:function(e,t){/textarea/i.test(e.target.tagName)||(this.$remove(),t())}},{key:"$getPosition",value:function(){var e=this.target.getBoundingClientRect(),t=this.previewerDom.parentNode.getBoundingClientRect();return{top:e.top-t.top,left:e.left-t.left,width:e.width,height:e.height,maxLeft:t.width+t.left}}},{key:"setStyle",value:function(e,t,n){e.getBoundingClientRect()[t]!==n&&(e.style[t]=n)}},{key:"$remove",value:function(){this.bubbleCard={refNum:0,refTitle:"",content:""}}}])}(),zQ=bT;Fn({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=kt(arguments,1),n=Ok.f(this),r=Hk((function(){return mt(se(e),void 0,t)}));return(r.error?n.reject:n.resolve)(r.value),n.promise}});var qQ=zQ,JQ=qQ;function YQ(e,t,n,r,i,o,a){try{var A=e[o](a),s=A.value}catch(e){return void n(e)}A.done?t(s):JQ.resolve(s).then(r,i)}function ZQ(e){return function(){var t=this,n=arguments;return new JQ((function(r,i){var o=e.apply(t,n);function a(e){YQ(o,r,i,a,A,"next",e)}function A(e){YQ(o,r,i,a,A,"throw",e)}a(void 0)}))}}var eL=r((function(e){function t(n){return e.exports=t="function"==typeof ba&&"symbol"==typeof Ia?function(e){return typeof e}:function(e){return e&&"function"==typeof ba&&e.constructor===ba&&e!==ba.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}));n(eL);var tL=FA,nL=y([].reverse),rL=[1,2];Fn({target:"Array",proto:!0,forced:String(rL)===String(rL.reverse())},{reverse:function(){return fr(this)&&(this.length=this.length),nL(this)}});var iL=_i("Array","reverse"),oL=Array.prototype,aL=tL,AL=function(e){var t=e.reverse;return e===oL||te(oL,e)&&t===oL.reverse?iL:t},sL=r((function(e){var t=eL.default;function n(){e.exports=n=function(){return i},e.exports.__esModule=!0,e.exports.default=e.exports;var r,i={},o=Object.prototype,a=o.hasOwnProperty,A=to||function(e,t,n){e[t]=n.value},s="function"==typeof ba?ba:{},l=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function h(e,t,n){return to(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{h({},"")}catch(r){h=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,o=Ya(i.prototype),a=new F(r||[]);return A(o,"_invoke",{value:x(e,n,a)}),o}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}i.wrap=d;var p="suspendedStart",g="suspendedYield",m="executing",v="completed",y={};function b(){}function w(){}function B(){}var C={};h(C,l,(function(){return this}));var k=ja&&ja(ja(U([])));k&&k!==o&&a.call(k,l)&&(C=k);var T=B.prototype=b.prototype=Ya(C);function E(e){var t;aL(t=["next","throw","return"]).call(t,(function(t){h(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,n){function r(i,o,A,s){var l=f(e[i],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==t(u)&&a.call(u,"__await")?n.resolve(u.__await).then((function(e){r("next",e,A,s)}),(function(e){r("throw",e,A,s)})):n.resolve(u).then((function(e){c.value=e,A(c)}),(function(e){return r("throw",e,A,s)}))}s(l.arg)}var i;A(this,"_invoke",{value:function(e,t){function o(){return new n((function(n,i){r(e,t,n,i)}))}return i=i?i.then(o,o):o()}})}function x(e,t,n){var i=p;return function(o,a){if(i===m)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:r,done:!0}}for(n.method=o,n.arg=a;;){var A=n.delegate;if(A){var s=Q(A,n);if(s){if(s===y)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===p)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=m;var l=f(e,t,n);if("normal"===l.type){if(i=n.done?v:g,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=v,n.method="throw",n.arg=l.arg)}}}function Q(e,t){var n=t.method,i=e.iterator[n];if(i===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=r,Q(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=f(i,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,y;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,y):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,y)}function L(e){var t,n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),vh(t=this.tryEntries).call(t,n)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],aL(e).call(e,L,this),this.reset(!0)}function U(e){if(e||""===e){var n=e[l];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function t(){for(;++i=0;--i){var o=this.tryEntries[i],A=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=a.call(o,"catchLoc"),l=a.call(o,"finallyLoc");if(s&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;I(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:U(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=r),y}},i}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}));n(sL);var lL=sL(),cL=lL;try{regeneratorRuntime=lL}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=lL:Function("r","regeneratorRuntime = r")(lL)}function uL(e){function t(t){t.clipboardData.setData("text/html",e),t.clipboardData.setData("text/plain",e),t.preventDefault()}document.addEventListener("copy",t),document.execCommand("copy"),document.removeEventListener("copy",t)}function hL(e){var t=document.createElement("input");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}function dL(e){return fL.apply(this,arguments)}function fL(){return fL=ZQ(cL.mark((function e(t){return cL.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(navigator.clipboard){e.next=3;break}return hL(t),e.abrupt("return");case 3:return e.next=5,navigator.clipboard.writeText(t);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)}))),fL.apply(this,arguments)}var pL=function(){return Da((function e(t,n,r,i,o,a){eo(this,e),nA(this,"codeBlockEditor",{info:{},editorDom:{}}),this.trigger=t,this.target=n,this.previewerDom=i,this.container=r,this.codeMirror=o,this.$cherry=a.previewer.$cherry,this.parent=a,this.$initReg()}),[{key:"$initReg",value:function(){this.codeBlockReg=this.codeBlockReg?this.codeBlockReg:Rd().reg}},{key:"emit",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};switch(e){case"remove":return this.$remove();case"scroll":case"resize":return this.$updateContainerPosition();case"previewUpdate":return this.$updateContainerPosition(),void(this.editing&&this.$setInputOffset());case"mouseup":return this.$tryRemoveMe(t,n)}}},{key:"$remove",value:function(){this.codeBlockEditor={info:{},codeBlockCodes:[],editorDom:{}}}},{key:"$tryRemoveMe",value:function(e,t){var n=this.codeBlockEditor.editorDom.inputDiv;this.editing&&n&&!n.contains(e.target)&&(this.editing=!1,this.$remove(),t())}},{key:"$findCodeInEditor",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$collectCodeBlockDom(),this.$collectCodeBlockCode(),e?this.$setLangSelection(this.codeBlockEditor.info.codeBlockIndex):this.$setBlockSelection(this.codeBlockEditor.info.codeBlockIndex)}},{key:"$collectCodeBlockDom",value:function(){var e=zu(this.previewerDom.querySelectorAll('[data-type="codeBlock"]'));this.codeBlockEditor.info={codeBlockNode:this.target,codeBlockIndex:_h(e).call(e,this.target)}}},{key:"$collectCodeBlockCode",value:function(){var e=[];this.codeMirror.getValue().replace(this.codeBlockReg,(function(t){var n,r=t.replace(/^\n*/,""),i=((n=(arguments.length<=1?0:arguments.length-1)-2+1)<1||arguments.length<=n?void 0:arguments[n])+t.match(/^\n*/)[0].length;oh(r).call(r,"```mermaid")||e.push({code:r,offset:i})})),this.codeBlockEditor.codeBlockCodes=e}},{key:"$setBlockSelection",value:function(e){var t,n,r,i,o=this.codeBlockEditor.codeBlockCodes[e],a=this.codeMirror.getValue(),A=null!==(t=null===(n=Hh(a).call(a,0,o.offset).match(/\n/g))||void 0===n?void 0:n.length)&&void 0!==t?t:0,s=A+o.code.match(/\n/g).length,l=Hh(r=o.code).call(r,0,-3).match(/[^\n]+\n*$/)[0].length;this.codeBlockEditor.info.selection=[{line:s-1,ch:l},{line:A+1,ch:0}],(i=this.codeMirror).setSelection.apply(i,Fg(this.codeBlockEditor.info.selection))}},{key:"$setLangSelection",value:function(e){var t,n,r,i,o=this.codeBlockEditor.codeBlockCodes[e],a=this.codeMirror.getValue(),A=null!==(t=null===(n=Hh(a).call(a,0,o.offset).match(/\n/g))||void 0===n?void 0:n.length)&&void 0!==t?t:0,s=(null!==(r=o.code.match(/```\s*[^\n]+/)[0])&&void 0!==r?r:"```").length;this.codeBlockEditor.info.selection=[{line:A,ch:3},{line:A,ch:s}],(i=this.codeMirror).setSelection.apply(i,Fg(this.codeBlockEditor.info.selection))}},{key:"showBubble",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.$updateContainerPosition(),"hover"===this.trigger&&this.$showBtn(t),"click"===this.trigger&&this.$showContentEditor(),this.container.addEventListener("wheel",(function(t){t.stopPropagation(),t.preventDefault(),e.previewerDom.scrollTop+=t.deltaY/3}))}},{key:"$showContentEditor",value:function(){this.editing=!0,this.$findCodeInEditor(),this.$drawEditor()}},{key:"$showBtn",value:function(e){var t=this,n=this.target.dataset,r=n.changeLang,i=n.editCode,o=n.copyCode,a=n.lang,A=n.expandCode;if(this.container.innerHTML="","true"===r&&e){this.container.innerHTML=function(e){var t,n=wf(tw).call(tw,(function(t){var n,r;return e===t?oA(r='"):oA(n='")}));return oA(t='")}(a);var s=this.container.querySelector("#code-preview-lang-select");this.changeLangDom=s,this.changeLangDom.addEventListener("change",(function(e){e.preventDefault(),e.stopPropagation(),t.parent.$removeAllPreviewerBubbles("click"),t.$changeLang(e.target.value||"")}))}var l=10;if("true"===i&&e){var c=document.createElement("div");c.className="cherry-edit-code-block",c.innerHTML='',c.style.right="".concat(l,"px"),this.container.appendChild(c),c.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation(),t.$expandCodeBlock(!0,e),t.$hideAllBtn(),t.parent.$removeAllPreviewerBubbles("click"),t.parent.showCodeBlockPreviewerBubbles("click",t.target)})),this.editDom=c,l+=8}if("true"===o){var u=document.createElement("div");u.className="cherry-copy-code-block",u.innerHTML='',u.style.right="".concat(l,"px"),this.container.appendChild(u),u.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation(),t.parent.$removeAllPreviewerBubbles("click"),t.$copyCodeBlock()})),this.copyDom=u,l+=8}var h=this.$cherry.options.engine.syntax.codeBlock.customBtns;if(h&&(this.codeBlockCustomBtns=[],UA(h).call(h,(function(e){var n=document.createElement("div");n.className="cherry-code-block-custom-btn",n.innerHTML=e.html,n.style.right="".concat(l,"px"),t.container.appendChild(n),n.addEventListener("click",(function(n){var r;n.preventDefault(),n.stopPropagation();var i=t.target.querySelector("pre").innerText,o=null!==(r=t.target.dataset.lang)&&void 0!==r?r:"";e.onClick(n,i,o,t.target)})),t.codeBlockCustomBtns.push(n),l+=8}))),"true"===A){var d=this.target.classList.contains("cherry-code-expand"),f=this.target.querySelector(".cherry-mask-code-block"),p=document.createElement("div");p.className="cherry-unExpand-code-block",p.innerHTML='',p.style.right="".concat(l,"px"),d&&f||p.classList.add("hidden"),this.container.appendChild(p),p.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation(),t.parent.$removeAllPreviewerBubbles("click"),t.$expandCodeBlock(!1,e)})),this.unExpandDom=p,l+=8}}},{key:"$hideAllBtn",value:function(){var e,t,n,r,i,o,a,A;null!==(e=this.changeLangDom)&&void 0!==e&&null!==(t=e.style)&&void 0!==t&&t.display&&(this.changeLangDom.style.display="none"),null!==(n=this.editDom)&&void 0!==n&&null!==(r=n.style)&&void 0!==r&&r.display&&(this.editDom.style.display="none"),null!==(i=this.copyDom)&&void 0!==i&&null!==(o=i.style)&&void 0!==o&&o.display&&(this.copyDom.style.display="none"),null!==(a=this.unExpandDom)&&void 0!==a&&null!==(A=a.style)&&void 0!==A&&A.display&&(this.unExpandDom.style.display="none")}},{key:"$changeLang",value:function(e){this.$findCodeInEditor(!0),this.codeMirror.replaceSelection(e,"around")}},{key:"$drawEditor",value:function(){var e=document.createElement("div");e.className="cherry-previewer-codeBlock-content-handler__input";var t=document.createElement("textarea");t.id="codeMirrorEditor",e.appendChild(t);var n=ah.fromTextArea(t,{mode:"",theme:"default",scrollbarStyle:"null",lineNumbers:!0,autofocus:!0,lineWrapping:!0,cursorHeight:.85,indentUnit:4,tabSize:4,keyMap:"sublime"}),r=this.codeMirror;n.on("change",(function(){r.replaceSelection(n.getValue(),"around")})),this.codeBlockEditor.editorDom.inputDiv=e,this.codeBlockEditor.editorDom.inputDom=n,this.$updateEditorPosition(),this.container.appendChild(this.codeBlockEditor.editorDom.inputDiv),this.codeBlockEditor.editorDom.inputDom.focus(),this.codeBlockEditor.editorDom.inputDom.refresh(),n.setValue(this.codeMirror.getSelection())}},{key:"$expandCodeBlock",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;if(this.unExpandDom){this.target.classList.remove("cherry-code-unExpand"),this.target.classList.remove("cherry-code-expand"),this.unExpandDom.classList.remove("hidden");var n=this.target.querySelector("pre").innerText;e?(this.$cherry.options.callback.onExpandCode&&this.$cherry.options.callback.onUnExpandCode(t,n),this.target.classList.add("cherry-code-expand")):(this.$cherry.options.callback.onExpandCode&&this.$cherry.options.callback.onExpandCode(t,n),this.unExpandDom.classList.add("hidden"),this.target.classList.add("cherry-code-unExpand"))}}},{key:"$copyCodeBlock",value:function(){var e=this.target.querySelector("pre").innerText,t=this.$cherry.options.callback.onCopyCode({target:this.target},e);if(!1===t)return!1;var n=this.copyDom.querySelector("i.ch-icon-copy");n&&(n.className=n.className.replace("copy","ok"),gA((function(){n.className=n.className.replace("ok","copy")}),1e3)),uL(t)}},{key:"$updateContainerPosition",value:function(){this.codeBlockEditor.info.codeBlockNode=this.target;var e=this.$getPosition();this.setStyle(this.container,"width","".concat(e.width,"px")),this.setStyle(this.container,"top","".concat(e.top,"px")),this.setStyle(this.container,"left","".concat(e.left,"px"))}},{key:"$updateEditorPosition",value:function(){this.$setInputOffset();var e=getComputedStyle(this.codeBlockEditor.info.codeBlockNode),t=this.codeBlockEditor.editorDom.inputDom.getWrapperElement();this.setStyle(t,"fontSize",e.fontSize||"16px"),this.setStyle(t,"fontFamily",e.fontFamily),this.setStyle(t,"lineHeight","1.8em"),this.setStyle(t,"zIndex","1")}},{key:"$setInputOffset",value:function(){var e=this.$getPosition(),t=this.codeBlockEditor.editorDom.inputDiv;this.setStyle(t,"width","".concat(e.width,"px")),this.setStyle(t,"height","".concat(e.height+10,"px"))}},{key:"setStyle",value:function(e,t,n){e.getBoundingClientRect()[t]!==n&&(e.style[t]=n)}},{key:"$getPosition",value:function(){var e=this.codeBlockEditor.info.codeBlockNode.getBoundingClientRect(),t=this.previewerDom.parentNode.getBoundingClientRect();return{top:e.top-t.top,height:e.height,width:e.width,left:e.left-t.left,maxHeight:t.height}}}])}(),gL=function(e,t,n){return Math.min(Math.max(e,t),n)},mL={open:function(){this.resetStyle(),this.dom.style.display="block",this.postMessage("ready?")},close:function(){this.dom.style.display="none"},postMessage:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";null===(t=this.iframeDom)||void 0===t||null===(n=t.contentWindow)||void 0===n||n.postMessage({eventName:e,value:r},"*")},resetStyle:function(){var e=this.dom;e.style.left="10%",e.style.top="10%"},bindEvents:function(){this.bindClickEvents(),this.bindDNDEvents()},bindClickEvents:function(){var e=this;this.headCloseButton.addEventListener("click",(function(){e.close()})),this.footSureButton.addEventListener("click",(function(){e.postMessage("getData")}))},bindDNDEvents:function(){var e,t,n=this.dom,r=this.head,i=this.body,o=function(r){r.preventDefault();var i=gL(r.clientX-e,0,window.innerWidth-16),o=gL(r.clientY-t,0,window.innerHeight-16);n.style.left="".concat(i,"px"),n.style.top="".concat(o,"px")},a=function e(t){r.style.cursor="grab",i.style.pointerEvents=null,document.removeEventListener("mousemove",o),document.removeEventListener("mousemove",e)};r.addEventListener("mousedown",(function(A){A.target.classList.contains("cherry-dialog--close")||(e=A.clientX-n.offsetLeft,t=A.clientY-n.offsetTop,r.style.cursor="grabbing",i.style.pointerEvents="none",document.addEventListener("mousemove",o),document.addEventListener("mouseup",a))}))},draw:function(e,t,n){var r=this,i=e.iframeSrc,o=e.iframeStyle,a=e.title;if(this.onSubmit=n,this.onReady=t,this.dom)return new RegExp("".concat(i,"$"),"i").test(this.iframeDom.src)||(this.iframeDom.src=i),void this.open();window.addEventListener("message",(function(e){if(e.data&&e.data.eventName)switch(e.data.eventName){case"getData:success":r.onSubmit(e.data.value),r.close();case"ready":r.onReady()}})),this.iframeDom=sd("iframe","cherry-dialog-iframe",{src:i,style:o}),this.dom=sd("div","cherry-dialog",{style:["z-index:9999","display: block","position: absolute","top: 10%;left: 10%;width: 80%;height: 80%;","background-color: #FFF","box-shadow: 0px 50px 100px -12px rgba(0,0,0,.05),0px 30px 60px -30px rgba(0,0,0,.1)","border-radius: 6px","border: 1px solid #ddd;"].join(";")}),this.head=sd("div","cherry-dialog--head",{style:["height: 30px","line-height: 30px","padding-left: 10px","padding-right: 10px","cursor: grab;"].join(";")}),this.body=sd("div","cherry-dialog--body",{style:["position: absolute","bottom: 30px","top: 30px","left: 0","right: 0","overflow: hidden"].join(";")}),this.foot=sd("div","cherry-dialog--foot",{style:["height: 30px","line-height: 30px","padding-left: 10px","padding-right: 10px","position: absolute","bottom: 0","left: 0","right: 0"].join(";")}),this.headTitle=sd("span","cherry-dialog--title",{style:"user-select:none;"}),this.headCloseButton=sd("i","cherry-dialog--close ch-icon ch-icon-close",{style:"float: right;font-size: 12px;cursor: pointer;"}),this.footSureButton=sd("button","cherry-dialog--sure",{style:["float: right","cursor: pointer","margin: 3px","background-color: #4d90fe","color: #FFF","border: 1px solid #4d90fe","border-radius: 2px","padding: 2px 15px","user-select:none"].join(";")}),this.headCloseButton.title="关闭",this.footSureButton.textContent="确定",this.headTitle.textContent=a,this.head.appendChild(this.headTitle),this.head.appendChild(this.headCloseButton),this.foot.appendChild(this.footSureButton),this.body.appendChild(this.iframeDom),this.dom.appendChild(this.head),this.dom.appendChild(this.body),this.dom.appendChild(this.foot),this.bindEvents(),document.body.appendChild(this.dom)}};function vL(){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,n={iframeSrc:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",iframeStyle:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",title:"draw.io"};mL.draw(n,(function(){mL.postMessage("setData",e)}),(function(e){t(e)}))}var yL=function(){return ms.Date.now()},bL=/\s/;var wL=function(e){for(var t=e.length;t--&&bL.test(e.charAt(t)););return t},BL=/^\s+/;var CL=function(e){return e?e.slice(0,wL(e)+1).replace(BL,""):e},kL=/^[-+]0x[0-9a-f]+$/i,TL=/^0b[01]+$/i,EL=/^0o[0-7]+$/i,SL=parseInt;var xL=function(e){if("number"==typeof e)return e;if(Vb(e))return NaN;if(xs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=xs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=CL(e);var n=TL.test(e);return n||EL.test(e)?SL(e.slice(2),n?2:8):kL.test(e)?NaN:+e},QL=Math.max,LL=Math.min;var IL=function(e,t,n){var r,i,o,a,A,s,l=0,c=!1,u=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function d(t){var n=r,o=i;return r=i=void 0,l=t,a=e.apply(o,n)}function f(e){var n=e-s;return void 0===s||n>=t||n<0||u&&e-l>=o}function p(){var e=yL();if(f(e))return g(e);A=setTimeout(p,function(e){var n=t-(e-s);return u?LL(n,o-(e-l)):n}(e))}function g(e){return A=void 0,h&&r?d(e):(r=i=void 0,a)}function m(){var e=yL(),n=f(e);if(r=arguments,i=this,s=e,n){if(void 0===A)return function(e){return l=e,A=setTimeout(p,t),c?d(e):a}(s);if(u)return clearTimeout(A),A=setTimeout(p,t),d(s)}return void 0===A&&(A=setTimeout(p,t)),a}return t=xL(t)||0,xs(n)&&(c=!!n.leading,o=(u="maxWait"in n)?QL(xL(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),m.cancel=function(){void 0!==A&&clearTimeout(A),l=0,r=s=i=A=void 0},m.flush=function(){return void 0===A?a:g(yL())},m};function FL(e,t){var n=document.createElement("a");n.href=e,n.download=t,n.click(),n.remove()}function UL(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("svg"!==t.format){var n=t.width,r=void 0===n?e.width.baseVal.value:n,i=t.height,o=void 0===i?e.height.baseVal.value:i,a=t.scale,A=void 0===a?5:a,s=t.quality,l=void 0===s?1:s,c=t.backgroundColor,u=void 0===c?"white":c,h=t.filename,d=void 0===h?"formula":h,f=t.format,p=void 0===f?"png":f,g=t.mimeType,m=void 0===g?"image/png":g,v=_L(e),y=document.createElement("canvas"),b=y.getContext("2d"),w=new Image;w.src="data:image/svg+xml;base64,".concat(btoa(unescape(encodeURIComponent(v)))),w.onload=function(){y.width=r*A,y.height=o*A,b.fillStyle=u,b.fillRect(0,0,y.width,y.height),b.drawImage(w,0,0,y.width,y.height),y.toBlob((function(e){var t,n=wQ.createObjectURL(e);FL(n,oA(t="".concat(d,".")).call(t,p)),wQ.revokeObjectURL(n)}),m,l)}}else{var B;!function(e,t){var n=_L(e),r=new Blob([n],{type:"image/svg+xml;charset=utf-8"}),i=wQ.createObjectURL(r);FL(i,t),wQ.revokeObjectURL(i)}(e,null!==(B=t.filename)&&void 0!==B?B:"formula.svg")}}function _L(e){return(new XMLSerializer).serializeToString(e)}var ML=function(){return Da((function e(t,n,r,i,o){eo(this,e),nA(this,"bubbleContainer",null),this.trigger=t,this.target=n,this.container=r,this.previewerDom=i,this.editor=o}),[{key:"emit",value:function(e,t){switch(e){case"remove":case"scroll":return this.remove()}}},{key:"drawBubble",value:function(){var e,t,n,r=document.createElement("div");r.innerHTML='
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n
    ',r.id="formula-utils-bubble-container",r.className=["formula-utils-bubble-container"].join(" "),this.bubbleContainer=r,null==this||null===(e=this.editor)||void 0===e||null===(t=e.$cherry)||void 0===t||null===(n=t.wrapperDom)||void 0===n||n.appendChild(r)}},{key:"showBubble",value:function(e,t){var n,r,i,o,a,A=null==this||null===(n=this.editor)||void 0===n||null===(r=n.$cherry)||void 0===r||null===(i=r.wrapperDom)||void 0===i||null===(o=i.children)||void 0===o?void 0:o.namedItem("formula-utils-bubble-container"),s=this.target.getBoundingClientRect();A instanceof HTMLElement?this.bubbleContainer=A:this.drawBubble(),this.bubbleContainer.style.display="flex",this.bubbleContainer.style.top="".concat(t||s.top,"px"),this.bubbleContainer.style.left="".concat(e||s.left,"px"),this.bubbleContainer.addEventListener("click",aA(a=this.bubbleClickHandler).call(a,this),{once:!0}),this.collectFormulaCode()}},{key:"collectFormulaCode",value:function(){var e=[];this.editor.editor.getValue().replace(/(\$+)\s*([\w\W]*?)\s*(\1)/g,(function(t,n,r,i,o){e.push({code:r,offset:o})})),this.formulaCode=e}},{key:"remove",value:function(){this.bubbleContainer&&(this.bubbleContainer.style.display="none")}},{key:"bubbleClickHandler",value:function(e){var t=this;e.preventDefault(),e.stopPropagation();var n=e.target;if(n instanceof HTMLButtonElement){var r=n.dataset.name,i=void 0===r?"":r;switch(i){case"svg":case"png":case"jpg":this.target instanceof SVGSVGElement&&UL(this.target,{format:i});break;case"html":case"svgcode":if(this.target instanceof SVGSVGElement)if("svgcode"===i)dL(_L(this.target));else{var o=this.target.parentElement.querySelector("math");o.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),dL(o.outerHTML)}break;case"\\":case"$":case"$$":case"latex":case"mathml":case"docx":var a=this.previewerDom.querySelectorAll("mjx-container"),A=-1;if(UA(a).call(a,(function(e,n){e===t.target.parentElement&&(A=n)})),A>=0&&this.formulaCode[A]){var s=this.formulaCode[A].code;if("mathml"===i||"docx"===i){var l,c,u,h,d=vu(l=this.editor.$cherry.engine.hooks.paragraph).call(l,(function(e){return e instanceof Rv}));if(d&&"MathJax"===d.engine)null===(c=window.MathJax)||void 0===c||c.texReset(),null===(u=window.MathJax)||void 0===u||null===(h=u.tex2mmlPromise)||void 0===h||h.call(u,s,{display:!0}).then((function(e){"mathml"===i&&dL(e)}))}else if("latex"===i)dL(s);else if("$"===i){var f,p;dL(oA(f=oA(p="".concat(i)).call(p,s)).call(f,i))}else if("$$"===i){var g,m;dL(oA(g=oA(m="".concat(i,"\n")).call(m,s,"\n")).call(g,i))}else"\\"===i&&dL("\\".concat(s))}}}this.remove()}}])}(),HL=(vt.f,nt("".slice)),DL=Math.min,OL=Zu("endsWith");Fn({target:"String",proto:!0,forced:!OL},{endsWith:function(e){var t=Br(O(this));Yu(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,i=void 0===n?r:DL(an(n),r),o=Br(e);return HL(t,i-o.length,i)===o}});var NL=_i("String","endsWith"),RL=String.prototype,PL=function(e){var t=e.endsWith;return"string"==typeof e||e===RL||te(RL,e)&&t===RL.endsWith?NL:t},$L=function(){return Da((function e(t,n,r,i,o){var a,A;eo(this,e),nA(this,"bubbleContainer",null),nA(this,"regList",Od),nA(this,"range",[]),nA(this,"position",{line:0,ch:0}),nA(this,"input",!1),nA(this,"isCheckbox",!1),this.trigger=t,this.target=n,this.container=r,this.previewerDom=i,this.editor=o,this.insertLineBreak=!1,this.handleEditablesInputBinded=aA(a=this.handleEditablesInput).call(a,this),this.handleEditablesUnfocusBinded=aA(A=this.handleEditablesUnfocus).call(A,this),this.target.addEventListener("input",this.handleEditablesInputBinded,!1),this.target.addEventListener("focusout",this.handleEditablesUnfocusBinded,!1),this.setSelection()}),[{key:"emit",value:function(e,t){if("remove"===e)return this.remove()}},{key:"remove",value:function(){this.bubbleContainer&&(this.bubbleContainer.style.display="none",this.bubbleContainer.children[0]instanceof HTMLTextAreaElement&&(this.bubbleContainer.children[0].value="")),this.target.removeAttribute("contenteditable"),this.target.removeEventListener("input",this.handleEditablesInputBinded,!1),this.target.removeEventListener("focusout",this.handleEditablesUnfocusBinded,!1);var e=this.editor.editor.getCursor();this.editor.editor.setSelection(e,e)}},{key:"setSelection",value:function(){var e,t,n,r=this,i=zu(this.previewerDom.querySelectorAll("li.cherry-list-item")),o=of(i).call(i,(function(e){return e===r.target.parentElement}));if(-1!==o){for(var a=null!==(e=null===(t=zd(null==this?void 0:this.editor.editor.getValue()))||void 0===t?void 0:t.split("\n"))&&void 0!==e?e:[],A=0,s=-1,l=-1,c=[],u=0;u0)break;var f=Uh(d,5),p=f[1],g=f[2],m=f[3],v=f[4];A===o&&void 0!==p&&(s=u,c.push(v),l=_h(h).call(h,v),null!=g&&PL(g).call(g,".")&&(l+=1),m&&(this.isCheckbox=!0)),A+=1}else c.length>0&&c.push(h)}var y={line:s,ch:l},b={line:s+c.length-1,ch:l+(null===(n=c[c.length-1])||void 0===n?void 0:n.length)};this.editor.editor.setSelection(y,b),this.range=[y,b],this.position=this.editor.editor.getCursor()}}},{key:"handleEditablesInput",value:function(e){this.input=!0,e.stopPropagation(),e.preventDefault(),e.target instanceof HTMLParagraphElement&&("insertParagraph"!==e.inputType&&"insertLineBreak"!==e.inputType||(this.insertLineBreak=!0,this.handleInsertLineBreak(e)))}},{key:"handleEditablesUnfocus",value:function(e){if(e.stopPropagation(),e.preventDefault(),e.target instanceof HTMLParagraphElement){if(this.input){if(!this.insertLineBreak){var t=this.isCheckbox?e.target.innerHTML.replace(/<\/span>/,""):e.target.innerHTML,n=this.editor.$cherry.engine.makeMarkdown(t),r=Uh(this.range,2),i=r[0],o=r[1];this.editor.editor.replaceRange(n,i,o)}this.isCheckbox=!1,this.input=!1,this.insertLineBreak=!1}this.remove()}}},{key:"handleInsertLineBreak",value:function(e){var t,n,r,i=[];"innerText"in e.target&&"string"==typeof e.target.innerText&&(i=e.target.innerText.split("\n"));var o,a,A=Ug(i),s=A[0],l=Hh(A).call(A,1),c=this.editor.editor.getCursor(),u=this.editor.editor.getLine(c.line),h=this.regList.exec(u),d="\n- ";null!==h&&(d=oA(o="\n".concat(h[1])).call(o,null===(a=h[2])||void 0===a?void 0:a.replace("[x]","[ ] ")));d+=null!==(t=null==l?void 0:l.join(""))&&void 0!==t?t:"",this.editor.editor.replaceRange(s,{line:c.line,ch:null!==(n=null===(r=h[2])||void 0===r?void 0:r.length)&&void 0!==n?n:0},{line:c.line,ch:u.length}),this.editor.editor.replaceRange(d,{line:c.line,ch:u.length}),this.editor.editor.setCursor({line:c.line+1,ch:d.length+1}),this.editor.editor.focus(),this.remove()}}])}(),KL=function(){return Da((function e(t){eo(this,e),this.previewer=t,this.editor=t.editor,this.previewerDom=this.previewer.getDom(),this.$cherry=t.$cherry,this.bubble={},this.bubbleHandler={},this.init()}),[{key:"init",value:function(){var e,t,n,r=this;this.oldWrapperDomOverflow=this.previewer.$cherry.wrapperDom.style.overflow,this.previewerDom.addEventListener("click",aA(e=this.$onClick).call(e,this)),this.previewerDom.addEventListener("mouseover",aA(t=this.$onMouseOver).call(t,this)),document.addEventListener("mousedown",(function(e){var t;UA(t=FQ(r.bubbleHandler)).call(t,(function(t){return t.emit("mousedown",e)}))})),document.addEventListener("mouseup",(function(e){var t;UA(t=FQ(r.bubbleHandler)).call(t,(function(t){return t.emit("mouseup",e,(function(){return r.$removeAllPreviewerBubbles("click")}))}))})),document.addEventListener("mousemove",(function(e){var t;UA(t=FQ(r.bubbleHandler)).call(t,(function(t){return t.emit("mousemove",e)}))})),document.addEventListener("keyup",(function(e){var t;UA(t=FQ(r.bubbleHandler)).call(t,(function(t){return t.emit("keyup",e)}))})),this.$cherry.$event.on("editor.size.change",(function(){var e;UA(e=FQ(r.bubbleHandler)).call(e,(function(e){return e.emit("resize",{})}))})),this.previewerDom.addEventListener("scroll",(function(e){var t;UA(t=FQ(r.bubbleHandler)).call(t,(function(t){return t.emit("scroll",e)}))}),!0),this.$cherry.$event.on("previewerClose",(function(){return r.$removeAllPreviewerBubbles()})),this.previewer.options.afterUpdateCallBack.push((function(){var e;UA(e=FQ(r.bubbleHandler)).call(e,(function(e){return e.emit("previewUpdate",(function(){return r.$removeAllPreviewerBubbles()}))}))})),this.previewerDom.addEventListener("change",aA(n=this.$onChange).call(n,this)),this.removeHoverBubble=IL((function(){return r.$removeAllPreviewerBubbles("hover")}),400)}},{key:"isCherryCodeBlock",value:function(e){if(!1!==this.$getClosestNode(e,"BLOCKQUOTE"))return!1;if("DIV"===e.nodeName&&"codeBlock"===e.dataset.type)return e;var t=this.$getClosestNode(e,"DIV");return!1!==t&&("codeBlock"===t.dataset.type&&t)}},{key:"isCherryTable",value:function(e){var t=this.$getClosestNode(e,"DIV");return!1!==t&&(!(/simple-table/.test(t.className)||!/cherry-table-container/.test(t.className))&&(!1===this.$getClosestNode(e,"BLOCKQUOTE")&&t))}},{key:"$isEnableBubbleAndEditorShow",value:function(){return!!this.previewer.options.enablePreviewerBubble&&"hide"!==this.previewer.$cherry.getStatus().editor}},{key:"$onMouseOver",value:function(e){var t,n,r,i,o,a,A=e.target;if(A instanceof Element&&void 0!==A.tagName){switch(A.tagName){case"TD":case"TH":if(!this.$isEnableBubbleAndEditorShow())return;var s=this.isCherryTable(e.target);if(!1===s)return;return this.removeHoverBubble.cancel(),this.$removeAllPreviewerBubbles("hover"),void this.$showTablePreviewerBubbles("hover",e.target,s);case"PRE":case"CODE":case"SPAN":case"DIV":var l=this.isCherryCodeBlock(e.target);if(!1===l)return;return void this.showCodeBlockPreviewerBubbles("hover",l);case"A":var c=(null===(t=this.previewer)||void 0===t||null===(n=t.$cherry)||void 0===n||null===(r=n.options)||void 0===r||null===(i=r.engine)||void 0===i||null===(o=i.syntax)||void 0===o||null===(a=o.footnote)||void 0===a?void 0:a.bubbleCard)||!1;if(!1!==c&&/cherry-show-bubble-card/.test(e.target.className))return this.removeHoverBubble.cancel(),this.$removeAllPreviewerBubbles("hover"),void this.$showFootNoteBubbleCardPreviewerBubbles("hover",e.target,c)}this.removeHoverBubble()}}},{key:"$onMouseOut",value:function(){this.previewer.options.enablePreviewerBubble&&this.previewer.$cherry.getStatus().editor}},{key:"$dealCheckboxClick",value:function(e){var t=this,n=e.target,r=zu(this.previewerDom.querySelectorAll(".ch-icon-square, .ch-icon-check"));this.checkboxIdx=_h(r).call(r,n);var i=zd(this.editor.editor.getValue()).split("\n"),o=0,a=-1,A=-1;UA(i).call(i,(function(e,n){var r=Lu(e).call(e);(oh(r).call(r,"- [ ]")||oh(r).call(r,"- [x]"))&&(o===t.checkboxIdx&&(a=n,A=_h(e).call(e,"- [")+3),o+=1)})),-1!==a&&(this.editor.editor.setSelection({line:a,ch:A},{line:a,ch:A+1}),this.editor.editor.replaceSelection(" "===this.editor.editor.getSelection()?"x":" ","around"))}},{key:"$onClick",value:function(e){var t,n,r=this;if(this.previewer.$cherry.options.callback.onClickPreview){var i=this.previewer.$cherry.options.callback.onClickPreview(e);if(!1===i)return i}var o=e.target;if(o instanceof Element)if(o instanceof HTMLImageElement&&"IMG"===o.tagName&&"drawio"===o.getAttribute("data-type")&&"show"===this.$cherry.status.editor){if(!this.beginChangeDrawioImg(o))return;var a=decodeURI(o.getAttribute("data-xml"));vL(this.previewer.$cherry.options.drawioIframeUrl,this.previewer.$cherry.options.drawioIframeStyle,a,(function(e){var t,n=e.xmlData,i=e.base64;r.editor.editor.replaceSelection(oA(t="(".concat(i,"){data-type=drawio data-xml=")).call(t,encodeURI(n),"}"),"around")}))}else{if("expand-btn "===o.className||"ch-icon ch-icon-expand"===o.className){var A,s,l=this.$getClosestNode(o,"DIV");if(l.parentNode.parentNode.classList.remove("cherry-code-unExpand"),l.parentNode.parentNode.classList.add("cherry-code-expand"),this.$cherry.options.callback.onExpandCode){var c=l.parentNode.parentNode.innerText;this.$cherry.options.callback.onUnExpandCode(e,c)}null!==(A=this.bubbleHandler)&&void 0!==A&&null!==(s=A.hover)&&void 0!==s&&s.unExpandDom&&this.bubbleHandler.hover.unExpandDom.classList.remove("hidden")}if("A"===o.tagName){if(!1===(null===(t=this.previewer.$cherry.options.toolbars.toc)||void 0===t?void 0:t.updateLocationHash)&&o instanceof Element&&"A"===o.nodeName&&/level-\d+/.test(o.className)){var u,h=o.parentElement,d=_h(u=zu(h.parentElement.children)).call(u,h)-1;this.previewer.scrollToHeadByIndex(d),e.stopPropagation(),e.preventDefault()}if(o instanceof Element&&"A"===o.nodeName&&/(footnote|footnote-ref)/.test(o.className)){var f,p,g,m,v;if(null!==(f=this.previewer.$cherry.options.engine)&&void 0!==f&&null!==(p=f.syntax)&&void 0!==p&&null!==(g=p.footnote)&&void 0!==g&&null!==(m=g.refNumber)&&void 0!==m&&m.clickRefNumberCallback){var y,b=o.getAttribute("data-index"),w=o.getAttribute("data-key"),B=null!==(y=this.previewer.getDomContainer().querySelector('.one-footnote[data-index="'.concat(b,'"]')).innerHTML)&&void 0!==y?y:"",C=this.previewer.$cherry.options.engine.syntax.footnote.refNumber.clickRefNumberCallback(e,b,w,B);if(!1===C)return e.stopPropagation(),e.preventDefault(),C}if(!1===(null===(v=this.previewer.$cherry.options.toolbars.toc)||void 0===v?void 0:v.updateLocationHash)){var k=o.getAttribute("href");this.previewer.scrollToId(k),e.stopPropagation(),e.preventDefault()}}}if(this.previewer.options.enablePreviewerBubble&&("ch-icon ch-icon-square"!==o.className&&"ch-icon ch-icon-check"!==o.className||this.$dealCheckboxClick(e),this.$removeAllPreviewerBubbles("click"),void 0!==o.tagName))switch(o.tagName){case"IMG":o instanceof HTMLImageElement&&this.$showImgPreviewerBubbles(o);break;case"TD":case"TH":if(o instanceof HTMLElement){var T=this.isCherryTable(o);if(!1===T)return;this.$showTablePreviewerBubbles("click",o,T)}break;case"svg":"MJX-CONTAINER"===(null==o||null===(n=o.parentElement)||void 0===n?void 0:n.tagName)&&this.$showFormulaPreviewerBubbles("click",o,{x:e.pageX,y:e.pageY});break;case"A":e.stopPropagation();break;case"P":o instanceof HTMLParagraphElement&&o.parentElement instanceof HTMLLIElement&&!1===this.$getClosestNode(o,"BLOCKQUOTE")&&(0!==o.children.length&&(e.preventDefault(),e.stopPropagation()),o.setAttribute("contenteditable","true"),o.focus(),this.$showListPreviewerBubbles("click",o))}}}},{key:"$onChange",value:function(e){}},{key:"$getClosestNode",value:function(e,t){return!(!e||!e.tagName)&&(e.tagName===t?e:"BODY"!==e.parentNode.tagName&&this.$getClosestNode(e.parentNode,t))}},{key:"$removeAllPreviewerBubbles",value:function(){var e,t,n,r,i=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";UA(e=Di(t=_Q(this.bubble)).call(t,(function(e){var t=Uh(e,1)[0];return!o||o===t}))).call(e,(function(e){var t=Uh(e,2),n=t[0];t[1].remove(),delete i.bubble[n]})),UA(n=Di(r=_Q(this.bubbleHandler)).call(r,(function(e){var t=Uh(e,1)[0];return!o||o===t}))).call(n,(function(e){var t=Uh(e,2),n=t[0];t[1].emit("remove"),delete i.bubbleHandler[n]})),TA(this.bubbleHandler).length<=0&&(this.previewer.$cherry.wrapperDom.style.overflow=this.oldWrapperDomOverflow||"")}},{key:"$showFootNoteBubbleCardPreviewerBubbles",value:function(e,t,n){var r,i;if(this.bubbleHandler[e]&&(null===(i=this.bubbleHandler[e])||void 0===i?void 0:i.aElement)===t)return void this.bubbleHandler[e].showBubble();this.$createPreviewerBubbles(e,"footnote-ref-hover-handler cherry-markdown ".concat(null!==(r=n.appendClass)&&void 0!==r?r:""));var o=new WQ(e,t,this.bubble[e],this.previewer.$cherry,n);o.showBubble(),this.bubbleHandler[e]=o}},{key:"$showTablePreviewerBubbles",value:function(e,t,n){if(this.bubbleHandler[e]&&this.bubbleHandler[e].tableElement===n)this.bubbleHandler[e].showBubble();else{this.$createPreviewerBubbles(e,"click"===e?"table-content-handler":"table-hover-handler");var r=new jQ(e,t,this.bubble[e],this.previewerDom,this.editor.editor,n,this.previewer.$cherry);r.showBubble(),this.bubbleHandler[e]=r}}},{key:"showCodeBlockPreviewerBubbles",value:function(e,t){if(this.bubbleHandler[e]&&this.bubbleHandler[e].target===t)this.removeHoverBubble.cancel();else{this.$removeAllPreviewerBubbles("hover"),this.$createPreviewerBubbles(e,"codeBlock-".concat(e,"-handler"));var n=new pL(e,t,this.bubble[e],this.previewerDom,this.editor.editor,this);n.showBubble(this.$isEnableBubbleAndEditorShow()),this.bubbleHandler[e]=n}}},{key:"$showImgPreviewerBubbles",value:function(e){var t,n,r=this;this.$createPreviewerBubbles();var i=zu(this.previewerDom.querySelectorAll("img"));if(this.totalImgs=i.length,this.imgIndex=_h(i).call(i,e),!this.beginChangeImgValue(e))return{emit:function(){}};HQ.showBubble(e,this.bubble.click,this.previewerDom),HQ.bindChange(aA(t=this.changeImgValue).call(t,this));var o=aA(n=HQ.updatePosition).call(n,HQ);this.$cherry.$event.on("editor.size.change",o);var a=HQ.remove;HQ.remove=function(){return r.$cherry.$event.off("editor.size.change",o),a.call(HQ)},this.bubbleHandler.click=HQ}},{key:"$showFormulaPreviewerBubbles",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.$createPreviewerBubbles(e,"formula-hover-handler");var r=new ML(e,t,this.bubble[e],this.previewerDom,this.editor);r.showBubble((null==n?void 0:n.x)||0,(null==n?void 0:n.y)||0),this.bubbleHandler[e]=r}},{key:"$showListPreviewerBubbles",value:function(e,t){this.$createPreviewerBubbles(e,"list-hover-handler");var n=new $L(e,t,this.bubble[e],this.previewerDom,this.editor);this.bubbleHandler[e]=n}},{key:"beginChangeDrawioImg",value:function(e){var t,n=zu(this.previewerDom.querySelectorAll('img[data-type="drawio"]')),r=n.length,i=_h(n).call(n,e),o=zd(this.editor.editor.getValue()),a=o.match(Wd),A=a[i]?Lu(t=a[i].replace(/^!\[.*?\]\((.*?)\)/,"$1")).call(t):"";if(a.length===r||e.getAttribute("src")===A)for(var s=o.split(Wd),l=0,c=0,u=0,h=0,d=0;d0&&void 0!==arguments[0]?arguments[0]:"click",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"img-size-handler";this.bubble[e]||(this.bubble[e]=document.createElement("div"),this.bubble[e].className="cherry-previewer-".concat(t),this.previewerDom.after(this.bubble[e]),"hover"===e&&(this.bubble[e].addEventListener("mouseover",this.removeHoverBubble.cancel),this.bubble[e].addEventListener("mouseout",this.removeHoverBubble)),this.previewer.$cherry.wrapperDom.style.overflow="hidden")}},{key:"$showBorderBubbles",value:function(){}},{key:"$showBtnBubbles",value:function(){}}])}(),XL=R.setInterval,VL=function(){return Da((function e(t,n){eo(this,e),nA(this,"options",{loadingImgPath:"",maxNumPerTime:2,noLoadImgNum:5,autoLoadImgNum:5,maxTryTimesPerSrc:2,beforeLoadOneImgCallback:function(e){},failLoadOneImgCallback:function(e){},afterLoadOneImgCallback:function(e){},afterLoadAllImgCallback:function(){}}),CA(this.options,t),this.previewer=n,this.srcLoadedList=[],this.srcFailLoadedList={},this.srcLoadingList=[],this.srcList=[],this.loadingImgNum=0,this.lastLoadAllNum=0,this.previewerDom=this.previewer.getDomContainer()}),[{key:"isLoaded",value:function(e){var t;return Kb(t=this.srcLoadedList).call(t,e)}},{key:"isLoading",value:function(e){var t;return Kb(t=this.srcLoadingList).call(t,e)}},{key:"loadFailed",value:function(e){this.srcFailLoadedList[e]=this.srcFailLoadedList[e]?this.srcFailLoadedList[e]+1:1}},{key:"isFailLoadedMax",value:function(e){return this.srcFailLoadedList[e]&&this.srcFailLoadedList[e]>this.options.maxTryTimesPerSrc}},{key:"isLoadedAllDone",value:function(){var e=this.previewerDom.querySelectorAll("img[data-src]"),t=this.srcLoadedList.length;return e.length<=0&&this.lastLoadAllNum=u&&t.top<=c,o=r.srcList.length=r.options.maxNumPerTime)return{v:!1};var A,s=r.options.beforeLoadOneImgCallback(e);if(void 0!==s&&!s)return r.loadFailed(a),0;a=null!==(A=e.getAttribute("data-src"))&&void 0!==A?A:a,r.loadingImgNum+=1,r.srcList.push(a),r.srcLoadingList.push(a),r.tryLoadOneImg(a,(function(){var t,n;e.setAttribute("src",a),e.removeAttribute("data-src"),r.srcLoadedList.push(a),r.loadingImgNum-=1,df(t=r.srcLoadingList).call(t,_h(n=r.srcLoadingList).call(n,a),1),r.options.afterLoadOneImgCallback(e),r.loadOneImg()}),(function(){var t,n;r.loadFailed(a),r.loadingImgNum-=1,df(t=r.srcLoadingList).call(t,_h(n=r.srcLoadingList).call(n,a),1),r.options.failLoadOneImgCallback(e),r.loadOneImg()}))},f=0;f]*?)data-src="([^"]+)"([^>]*?)>/g,(function(e,n,r,i){var o,a;return oA(o=oA(a="").replace(/ {2,}/g," ")}))}},{key:"changeLoadedDataSrc2Src",value:function(e){var t=this;return e.replace(/]*?)data-src="([^"]+)"([^>]*?)>/g,(function(e,n,r,i){var o,a;return t.isLoaded(r)?oA(o=oA(a="").replace(/ {2,}/g," "):e}))}},{key:"$removeSrc",value:function(e){return" ".concat(e).replace(/^(.*?) src=".*?"(.*?$)/,"$1$2")}},{key:"changeSrc2DataSrc",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.options.loadingImgPath,i=this.options.noLoadImgNum,o=0;return e.replace(/]*?)src="([^"]+)"([^>]*?)>/g,(function(e,a,A,s){var l,c,u,h,d;if(/data-src="/.test(e)||!/ src="/.test(e)||i<0)return e;if(!1===n){if(o"):oA(l=oA(c="")}))}}])}(),GL=function(){},jL=function(){return Da((function e(t){eo(this,e),nA(this,"applyingDomChanges",!1),nA(this,"syncScrollLockTimer",0),nA(this,"isMobilePreview",!1),this.options={previewerDom:document.createElement("div"),virtualDragLineDom:document.createElement("div"),editorMaskDom:document.createElement("div"),previewerMaskDom:document.createElement("div"),minBlockPercentage:.2,value:"",enablePreviewerBubble:!0,floatWhenClosePreviewer:!1,afterUpdateCallBack:[],isPreviewOnly:!1,previewerCache:{html:"",htmlChanged:!1,layout:{}},lazyLoadImg:{loadingImgPath:"",maxNumPerTime:2,noLoadImgNum:5,autoLoadImgNum:5,maxTryTimesPerSrc:2,beforeLoadOneImgCallback:function(e){},failLoadOneImgCallback:function(e){},afterLoadOneImgCallback:function(e){},afterLoadAllImgCallback:function(){}}},CA(this.options,t),this.$cherry=this.options.$cherry,this.instanceId=this.$cherry.getInstanceId(),this.animation={}}),[{key:"init",value:function(e){this.disableScrollListener=!1,this.bindScroll(),this.editor=e,this.bindDrag(),this.$initPreviewerBubble(),this.lazyLoadImg=new VL(this.options.lazyLoadImg,this),this.lazyLoadImg.doLazyLoad(),this.bindClick(),this.onMouseDown(),this.onSizeChange()}},{key:"onSizeChange",value:function(){var e=this;new ResizeObserver((function(){e.syncVirtualLayoutFromReal(),e.subMenusPositionChange(),e.$cherry.$event.emit("editor.size.change")})).observe(this.$cherry.wrapperDom)}},{key:"subMenusPositionChange",value:function(){var e,t=this;UA(e=["toolbar","sidebar","toolbarRight"]).call(e,(function(e){t.$cherry[e]&&t.$cherry[e].updateSubMenuPosition()}))}},{key:"$initPreviewerBubble",value:function(){this.previewerBubble=new KL(this)}},{key:"getDomContainer",value:function(){return this.isMobilePreview?this.options.previewerDom.querySelector(".cherry-mobile-previewer-content"):this.options.previewerDom}},{key:"getDom",value:function(){return this.options.previewerDom}},{key:"getValue",value:function(){var e,t,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],r="";if(r=this.isPreviewerHidden()?this.options.previewerCache.html:this.getDomContainer().innerHTML,r=this.lazyLoadImg.changeDataSrc2Src(r),!n||!this.$cherry.wrapperDom)return r;var i=this.$cherry.wrapperDom.getAttribute("data-inline-code-theme"),o=this.$cherry.wrapperDom.getAttribute("data-code-block-theme");return oA(e=oA(t='
    ')).call(e,r,"
    ")}},{key:"isPreviewerHidden",value:function(){return this.options.previewerDom.classList.contains("cherry-previewer--hidden")}},{key:"isPreviewerFloat",value:function(){var e=this.$cherry.cherryDom.querySelector(".float-previewer-wrap");return this.$cherry.cherryDom.contains(e)}},{key:"isPreviewerNeedFloat",value:function(){return this.options.floatWhenClosePreviewer}},{key:"calculateRealLayout",value:function(e){var t=+(e/(this.editor.options.editorDom.getBoundingClientRect().width+this.options.previewerDom.getBoundingClientRect().width)).toFixed(3);t1-this.options.minBlockPercentage&&(t=+(1-this.options.minBlockPercentage).toFixed(3));var n=+(1-t).toFixed(3);return{editorPercentage:"".concat(100*t,"%"),previewerPercentage:"".concat(100*n,"%")}}},{key:"setRealLayout",value:function(e,t){var n=e,r=t;n&&r||(n="50%",r="50%"),this.editor.options.editorDom.style.width=n,this.options.previewerDom.style.width=r,this.syncVirtualLayoutFromReal()}},{key:"syncVirtualLayoutFromReal",value:function(){var e=this.editor.options.editorDom.getBoundingClientRect(),t=this.options.previewerDom.getBoundingClientRect(),n=e.height,r=this.editor.options.editorDom.offsetTop,i=e.left,o=e.width,a=t.left?t.left-i:0,A=t.width||0,s=this.options,l=s.editorMaskDom,c=s.previewerMaskDom,u=s.virtualDragLineDom;this.$tryChangeValue(u,"top","".concat(r,"px")),this.$tryChangeValue(u,"left","".concat(a,"px")),this.$tryChangeValue(u,"bottom","0px"),this.$tryChangeValue(l,"height","".concat(n,"px")),this.$tryChangeValue(l,"top","".concat(r,"px")),this.$tryChangeValue(l,"left","0px"),this.$tryChangeValue(l,"width","".concat(o,"px")),this.$tryChangeValue(c,"height","".concat(n,"px")),this.$tryChangeValue(c,"top","".concat(r,"px")),this.$tryChangeValue(c,"left","".concat(a,"px")),this.$tryChangeValue(c,"width","".concat(A,"px"))}},{key:"$tryChangeValue",value:function(e,t,n){e.style[t]!==n&&(e.style[t]=n)}},{key:"calculateVirtualLayout",value:function(e,t){var n=this.editor.options.editorDom.getBoundingClientRect().width+this.options.previewerDom.getBoundingClientRect().width,r=e.toFixed(0),i=t-e;in*(1-this.options.minBlockPercentage)&&(i=+(n*(1-this.options.minBlockPercentage)).toFixed(0));var o=n-i;return{startWidth:Xh(r,10),leftWidth:i,rightWidth:o}}},{key:"setVirtualLayout",value:function(e,t,n){var r=this.options,i=r.editorMaskDom,o=r.previewerMaskDom,a=r.virtualDragLineDom;i.style.left="".concat(0,"px"),i.style.width="".concat(t,"px"),a.style.left="".concat(0+t,"px"),o.style.left="".concat(0+t,"px"),o.style.width="".concat(n,"px")}},{key:"bindDrag",value:function(){var e,t=this,n=function(e){e&&e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():window.event.returnValue=!1;var n=t.editor.options.editorDom.getBoundingClientRect().left,r=e.clientX,i=t.calculateVirtualLayout(n,r);return t.setVirtualLayout(i.startWidth,i.leftWidth,i.rightWidth),!1},r=function e(r){r&&r.stopPropagation?r.stopPropagation():r.cancelBubble=!0,r.preventDefault?r.preventDefault():window.event.returnValue=!1;var i=t.editor.options.editorDom.getBoundingClientRect().left,o=r.clientX,a=t.calculateRealLayout(o-i);return t.setRealLayout(a.editorPercentage,a.previewerPercentage),t.editor.options.editorDom.classList.remove("no-select"),t.options.previewerDom.classList.remove("no-select"),t.options.editorMaskDom.classList.remove("cherry-editor-mask--show"),t.options.previewerMaskDom.classList.remove("cherry-previewer-mask--show"),t.options.virtualDragLineDom.classList.remove("cherry-drag--show"),t.editor.editor.refresh(),hd(document,"mousemove",n,!1),hd(document,"mouseup",e,!1),!1};ud(this.options.virtualDragLineDom,"mousedown",(function(e){e&&e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():window.event.returnValue=!1,t.syncVirtualLayoutFromReal();var i=t.editor.options.editorDom.getBoundingClientRect().left,o=e.clientX,a=t.calculateVirtualLayout(i,o);return t.setVirtualLayout(a.startWidth,a.leftWidth,a.rightWidth),t.options.virtualDragLineDom.classList.contains("cherry-drag--show")||(t.options.virtualDragLineDom.classList.add("cherry-drag--show"),t.options.editorMaskDom.classList.add("cherry-editor-mask--show"),t.options.previewerMaskDom.classList.add("cherry-previewer-mask--show"),t.options.previewerDom.classList.add("no-select"),t.editor.options.editorDom.classList.add("no-select"),ud(document,"mousemove",n,!1),ud(document,"mouseup",r,!1)),!1}),!1),ud(window,"resize",aA(e=this.syncVirtualLayoutFromReal).call(e,this),!1),this.setRealLayout()}},{key:"bindScroll",value:function(){var e=this,t=this.getDomContainer();GL=function(){if(e.applyingDomChanges)dd.log(new Date,"sync scroll locked");else if(e.disableScrollListener)e.disableScrollListener=!1;else if(t.scrollTop<=0)e.editor.scrollToLineNum(0,0,1);else if(t.scrollTop+t.offsetHeight+10>t.scrollHeight)e.editor.scrollToLineNum(null);else{for(var n,r=t.getBoundingClientRect(),i=0,o=t.children,a=0;a0)for(var o=0;o0&&(UA(e).call(e,(function(e,i){var o;Hh(o=e.sign).call(o,0,12)===Hh(t).call(t,0,12)&&i>n&&(r={index:i>n?i:n,sign:t})})),r)}},{key:"$dealWithMyersDiffResult",value:function(e,t,n,r){var i=this;UA(e).call(e,(function(e){switch(n[e.newIndex].dom&&(n[e.newIndex].dom.innerHTML=i.lazyLoadImg.changeLoadedDataSrc2Src(n[e.newIndex].dom.innerHTML)),e.type){case"delete":r.removeChild(t[e.oldIndex].dom);break;case"insert":t[e.oldIndex]?r.insertBefore(n[e.newIndex].dom,t[e.oldIndex].dom):r.appendChild(n[e.newIndex].dom);break;case"update":try{var o=!1;if("cherry-table-container"===n[e.newIndex].dom.className&&n[e.newIndex].dom.querySelector(".cherry-table-figure")&&t[e.oldIndex].dom.querySelector(".cherry-table-figure"))t[e.oldIndex].dom.querySelector(".cherry-table-figure").replaceWith(n[e.newIndex].dom.querySelector(".cherry-table-figure")),t[e.oldIndex].dom.dataset.sign=n[e.oldIndex].dom.dataset.sign,i.$updateDom(n[e.newIndex].dom.querySelector(".cherry-table"),t[e.oldIndex].dom.querySelector(".cherry-table")),o=!0;else if(n[e.newIndex].dom.querySelector("svg"))throw new Error;o||i.$updateDom(n[e.newIndex].dom,t[e.oldIndex].dom)}catch(i){r.insertBefore(n[e.newIndex].dom,t[e.oldIndex].dom),r.removeChild(t[e.oldIndex].dom)}}}))}},{key:"$dealUpdate",value:function(e,t,n){if(n.list!==t.list)if(n.list.length&&t.list.length){var r=new OE(n.list,t.list,(function(e,t){return e[t].sign})).doDiff();dd.log(r),this.$dealWithMyersDiffResult(r,t.list,n.list,e)}else if(n.list.length&&!t.list.length){var i;dd.log("add all"),UA(i=n.list).call(i,(function(t){e.appendChild(t.dom)}))}else if(!n.list.length&&t.list.length){var o;dd.log("delete all"),UA(o=t.list).call(o,(function(t){e.removeChild(t.dom)}))}}},{key:"refresh",value:function(e){this.getDomContainer().innerHTML=e}},{key:"update",value:function(e){var t=this,n=this.lazyLoadImg.changeSrc2DataSrc(e);if(this.isPreviewerHidden())this.doHtmlCache(n);else{window.clearTimeout(this.syncScrollLockTimer),this.applyingDomChanges=!0;var r=this.getDomContainer();this.editor.selectAll&&(r.innerHTML="");var i=null;if(void 0!==window.DOMParser)i=(new DOMParser).parseFromString(n,"text/html").querySelector("body");else(i=document.createElement("div")).innerHTML=n;var o=this.$getSignData(i.children),a=this.$getSignData(r.children);try{this.$dealUpdate(r,a,o),this.afterUpdate()}finally{this.syncScrollLockTimer=gA((function(){t.applyingDomChanges=!1}),50)}}}},{key:"$dealEditAndPreviewOnly",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n={editorPercentage:"0%",previewerPercentage:"100%"};t&&(n={editorPercentage:"100%",previewerPercentage:"0%"});var r=this.editor.options.editorDom.getBoundingClientRect().width,i=this.calculateRealLayout(r);this.options.previewerCache.layout=i,this.setRealLayout(n.editorPercentage,n.previewerPercentage),this.options.virtualDragLineDom.classList.add("cherry-drag--hidden");var o=this.options.previewerDom,a=this.editor.options.editorDom;t?(o.classList.add("cherry-previewer--hidden"),a.classList.add("cherry-editor--full"),o.classList.remove("cherry-preview--full"),a.classList.remove("cherry-editor--hidden")):(o.classList.add("cherry-preview--full"),a.classList.add("cherry-editor--hidden"),o.classList.remove("cherry-previewer--hidden"),a.classList.remove("cherry-editor--full")),gA((function(){return e.editor.editor.refresh()}),0)}},{key:"previewOnly",value:function(){this.$dealEditAndPreviewOnly(!1),this.options.previewerCache.htmlChanged&&this.update(this.options.previewerCache.html),this.cleanHtmlCache(),this.$cherry.$event.emit("previewerOpen"),this.$cherry.$event.emit("editorClose")}},{key:"editOnly",value:function(){this.$dealEditAndPreviewOnly(!0),this.cleanHtmlCache(),this.$cherry.$event.emit("previewerClose"),this.$cherry.$event.emit("editorOpen")}},{key:"floatPreviewer",value:function(){var e="100%",t="100%",n=this.editor.options.editorDom.getBoundingClientRect().width,r=this.calculateRealLayout(n);this.options.previewerCache.layout=r,this.setRealLayout(e,t),this.options.virtualDragLineDom.classList.add("cherry-drag--hidden"),this.$cherry.createFloatPreviewer()}},{key:"recoverFloatPreviewer",value:function(){this.recoverPreviewer(!0),this.$cherry.clearFloatPreviewer()}},{key:"recoverPreviewer",value:function(){var e=this;this.options.previewerDom.classList.remove("cherry-previewer--hidden"),this.options.virtualDragLineDom.classList.remove("cherry-drag--hidden"),this.editor.options.editorDom.classList.remove("cherry-editor--full");var t=this.options.previewerCache.layout;this.setRealLayout(t.editorPercentage,t.previewerPercentage),this.options.previewerCache.htmlChanged&&this.update(this.options.previewerCache.html),this.cleanHtmlCache(),this.$cherry.$event.emit("previewerOpen"),this.$cherry.$event.emit("editorOpen"),gA((function(){return e.editor.editor.refresh()}),0)}},{key:"doHtmlCache",value:function(e){this.options.previewerCache.html=e,this.options.previewerCache.htmlChanged=!0}},{key:"cleanHtmlCache",value:function(){this.options.previewerCache.html="",this.options.previewerCache.htmlChanged=!1,this.options.previewerCache.layout={}}},{key:"afterUpdate",value:function(){var e;wf(e=this.options.afterUpdateCallBack).call(e,(function(e){return e()})),void 0===this.highlightLineNum&&(this.highlightLineNum=0),this.highlightLine(this.highlightLineNum)}},{key:"registerAfterUpdate",value:function(e){if(gd(e)){var t;this.options.afterUpdateCallBack=oA(t=this.options.afterUpdateCallBack).call(t,e)}else{if(!e)throw new Error("[markdown error]: Previewer registerAfterUpdate params are undefined");this.options.afterUpdateCallBack.push(e)}}},{key:"$getTopByLineNum",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.getDomContainer();if(null===e)return n.scrollHeight;for(var r="number"==typeof e?e:Xh(e,10),i=n.querySelectorAll("[data-sign]"),o=0,a=n.offsetTop,A=0;A1&&(h=u+(s-Math.abs(r-(o+s))-1)/s*c+c/s*t),h}o+=s}return n.scrollHeight}},{key:"highlightLine",value:function(e){var t,n,r,i,o,a=this.getDomContainer();if(UA(t=a.querySelectorAll(".cherry-highlight-line")).call(t,(function(e){e.classList.remove("cherry-highlight-line")})),"show"===(null===(n=this.$cherry)||void 0===n||null===(r=n.status)||void 0===r?void 0:r.previewer)&&"show"===(null===(i=this.$cherry)||void 0===i||null===(o=i.status)||void 0===o?void 0:o.editor))for(var A=a.querySelectorAll("[data-sign]"),s=0,l=0;l1&&void 0!==arguments[1]?arguments[1]:"auto",n=this.getDomContainer();this.getDomCanScroll(n).scrollTo({top:e,left:0,behavior:t})}},{key:"scrollToId",value:function(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth",o=this.getDomContainer(),a=this.getDomCanScroll(o),A=o.getElementsByTagName("img"),s=new pB,l=!1;UA(t=zu(A)).call(t,(function(e){e.hasAttribute("width")||e.hasAttribute("height")||e.style.width||e.style.height||s.add(e)}));var c=Lu(n=e.replace(/^\s*#/,"")).call(n);c=/[%:]/.test(c)?c:encodeURIComponent(c);var u=null!==(r=o.querySelector('[id="'.concat(c,'"]')))&&void 0!==r&&r;if(!1===u)return!1;var h=0;h="HTML"===a.nodeName?a.scrollTop+u.getBoundingClientRect().y-10:a.scrollTop+u.getBoundingClientRect().y-a.getBoundingClientRect().y-10;var d=function(){s.clear();var e=0;e="HTML"===a.nodeName?a.scrollTop+u.getBoundingClientRect().y-10:a.scrollTop+u.getBoundingClientRect().y-a.getBoundingClientRect().y-10,Math.abs(e-h)>5&&a.scrollTo({top:e,left:0,behavior:"instant"})},f=function e(){l||(l=!0,a.removeEventListener("scrollend",e),gA((function(){var e,t=wf(e=zu(s)).call(e,(function(e){return e.complete?wT.resolve():new wT((function(t){var n=function n(){e.removeEventListener("load",n),e.removeEventListener("error",n),t()};e.addEventListener("load",n),e.addEventListener("error",n)}))}));wT.all(t).then((function(){requestAnimationFrame(d)}))}),100))};return a.addEventListener("scrollend",f),gA((function(){a.removeEventListener("scrollend",f),f()}),1e3),a.scrollTo({top:h,left:0,behavior:i}),!0}},{key:"$scrollAnimation",value:function(e){var t=this;if(this.animation.destinationTop=e,!this.animation.timer){this.animation.timer=requestAnimationFrame((function e(){var n=t.getDomContainer(),r=n.scrollTop,i=t.animation.destinationTop-r,o=Math.ceil(Math.min(Math.abs(i),Math.max(1,Math.abs(i)/(100/16.7))));if(0===i||r>=n.scrollHeight||o>Math.abs(i))return cancelAnimationFrame(t.animation.timer),void(t.animation.timer=0);t.disableScrollListener=!0,t.getDomContainer().scrollTo(null,r+i/Math.abs(i)*o),t.animation.timer=requestAnimationFrame(e)}))}}},{key:"scrollToLineNum",value:function(e,t){var n=this.$getTopByLineNum(e,t);this.$scrollAnimation(n)}},{key:"getDomCanScroll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getDomContainer();return e.scrollHeight>e.clientHeight||e.clientHeightdocument.documentElement.clientHeight?document.documentElement:e:this.getDomCanScroll(e.parentElement):void 0}},{key:"scrollToHeadByIndex",value:function(e){var t,n=null!==(t=this.getDomContainer().querySelectorAll("h1,h2,h3,h4,h5,h6,h7,h8")[e])&&void 0!==t&&t;!1!==n&&this.scrollToId(n.id)}},{key:"bindClick",value:function(){}},{key:"onMouseDown",value:function(){var e=this;ud(this.getDomContainer(),"mousedown",(function(){gA((function(){e.$cherry.$event.emit("cleanAllSubMenus")}))}))}},{key:"export",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pdf",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t||this.$cherry.getFirstLineText("cherry-export");"pdf"===e?function(e,t){var n=document.title;document.title=t,CQ(e,(function(e,t){e.innerHTML=e.innerHTML.replace(/class="cherry-code-unExpand("| )/g,'class="cherry-code-expand$1'),window.print(),t(),document.title=n}))}(this.getDomContainer(),n):"screenShot"===e||"img"===e?kQ(this.getDomContainer(),n):"markdown"===e?function(e,t){var n=new Blob([e],{type:"text/markdown;charset=utf-8"}),r=document.createElement("a");r.style.display="none",r.href=wQ.createObjectURL(n),r.download="".concat(t,".md"),document.body.appendChild(r),r.click(),document.body.removeChild(r)}(this.$cherry.getMarkdown(),n):"html"===e&&function(e,t){var n=new Blob([e],{type:"text/markdown;charset=utf-8"}),r=document.createElement("a");r.style.display="none",r.href=wQ.createObjectURL(n),r.download="".concat(t,".html"),document.body.appendChild(r),r.click(),document.body.removeChild(r)}(this.getValue(),n)}}])}();function WL(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"absolute",n=e.getBoundingClientRect();return"fixed"===t?n:"sidebar"===t?{left:zL.getTargetParentByButton(e).offsetLeft-130+n.width,top:e.offsetTop+n.height/2,width:n.width,height:n.height}:{left:e.offsetLeft,top:e.offsetTop,width:n.width,height:n.height}}var zL=function(){function e(t){var n,r,i;eo(this,e),nA(this,"_onClick",void 0),this.$cherry=t,this.bubbleMenu=!1,this.subMenu=null,this.$currentMenuOptions=t.$currentMenuOptions,this.name=null!==(n=null===(r=t.$currentMenuOptions)||void 0===r?void 0:r.name)&&void 0!==n?n:"","string"==typeof(null===(i=t.$currentMenuOptions)||void 0===i?void 0:i.icon)&&(this.iconName=t.$currentMenuOptions.icon),this.iconType=null,this.editor=t.editor,this.locale=t.locale,this.dom=null,this.updateMarkdown=!0,this.subMenuConfig=[],this.noIcon=!1,this.cacheOnce=!1,this.positionModel="absolute","function"==typeof this._onClick&&(dd.warn("`MenuBase._onClick` is deprecated. Override `fire` instead"),this.fire=this._onClick),this.shortcutKeyMap={}}return Da(e,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"setName",value:function(e,t){this.name=e,this.iconName=t,this.$currentMenuOptions={name:e,icon:t}}},{key:"setCacheOnce",value:function(e){this.cacheOnce=e}},{key:"getAndCleanCacheOnce",value:function(){this.updateMarkdown=!0;var e=this.cacheOnce;return this.cacheOnce=!1,e}},{key:"hasCacheOnce",value:function(){return!1!==this.cacheOnce}},{key:"createIconFontIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=sd("i","ch-icon ch-icon-".concat(e));return"string"==typeof(null==t?void 0:t.className)&&n.classList.add(t.className),n}},{key:"createSvgIcon",value:function(e){if("svg"!==e.type)throw new Error('except options.type is "svg", but get "${options.type}"');try{var t,n=null===(t=(new DOMParser).parseFromString(e.content,"image/svg+xml"))||void 0===t?void 0:t.lastElementChild;return e.iconStyle&&n.setAttribute("style",e.iconStyle),e.iconClassName&&n.setAttribute("class",e.iconClassName),n}catch(e){throw new kg(e)}}},{key:"createImageIcon",value:function(e){if("image"!==e.type)throw new Error('except options.type is "image", but get "${options.type}"');return sd("img","ch-icon".concat(e.iconClassName?" ".concat(e.iconClassName):""),{src:e.content,style:e.iconStyle})}},{key:"createBtn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=sd("span",e?"cherry-dropdown-item":"cherry-toolbar-button cherry-toolbar-".concat(this.iconName?this.iconName:this.name),{title:this.locale[this.name]||Zf(this.name)});if(!this.noIcon){var n=null,r=this.$currentMenuOptions.icon;if("string"==typeof r)n=this.createIconFontIcon(this.iconName!==this.name?this.iconName:r),this.iconType="iconfont";else if(r instanceof HTMLElement)n=r,this.iconType="element";else if("object"===Ua(r)){var i=r.type;if("svg"===i)n=this.createSvgIcon(r),this.iconType="svg";else if("image"===i)n=this.createImageIcon(r),this.iconType="image";else{if("iconfont"!==i)throw new Error('except customIcon.type is "svg", "image", "iconfont", but get "'.concat(i,'"'));n=this.createIconFontIcon(r.content),this.iconType="iconfont"}}null!==n&&(n.classList.add("cherry-menu-".concat(this.name)),t.appendChild(n))}return(e||this.noIcon)&&(t.innerHTML+=this.locale[this.name]||Zf(this.name)),e||this.dom||(this.dom=t),t}},{key:"createSubBtnByConfig",value:function(e){var t=e.name,n=e.iconName,r=e.icon,i=e.onclick,o=sd("span","cherry-dropdown-item",{title:this.locale[t]||Zf(t)});if(n){var a=sd("i","ch-icon ch-icon-".concat(n));o.appendChild(a)}else if(r){var A=sd("img","ch-icon",{src:r,style:"width: 16px; height: 16px; vertical-align: sub;"});o.appendChild(A)}return o.innerHTML+=this.locale[t]||Zf(t),o.addEventListener("click",i,!1),o}},{key:"fire",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(null==e||e.stopPropagation(),"function"==typeof this.onClick){var r=this.editor.editor.getSelections();this.isSelections=r.length>1;var i=wf(r).call(r,(function(r,i,o){return t.onClick(r,n,e)||o[i]}));if(!this.bubbleMenu&&this.updateMarkdown)cy(i).call(i,(function(e){return e instanceof wT}))?wT.all(wf(i).call(i,(function(e){return e instanceof wT?e:wT.resolve(e)}))).then((function(e){var n=wf(e).call(e,(function(e,t){return null==e?r[t]:String(e)}));t.editor.editor.replaceSelections(n,"around"),t.editor.editor.focus(),t.$afterClick()})):(this.editor.editor.replaceSelections(i,"around"),this.editor.editor.focus(),this.$afterClick())}}},{key:"$getSelectionRange",value:function(){var e=this.editor.editor.listSelections()[0],t=e.anchor,n=e.head;return t.line===n.line&&t.ch>n.ch||t.line>n.line?{begin:n,end:t}:{begin:t,end:n}}},{key:"registerAfterClickCb",value:function(e){this.afterClickCb=e}},{key:"$afterClick",value:function(){"function"!=typeof this.afterClickCb||this.isSelections||(this.afterClickCb(),this.afterClickCb=null)}},{key:"setLessSelection",value:function(e,t){var n,r,i,o,a=this.editor.editor,A=this.$getSelectionRange(),s=A.begin,l=A.end,c={line:(null===(n=e.match(/\n/g))||void 0===n?void 0:n.length)>0?s.line+e.match(/\n/g).length:s.line,ch:(null===(r=e.match(/\n/g))||void 0===r?void 0:r.length)>0?e.replace(/^[\s\S]*?\n([^\n]*)$/,"$1").length:s.ch+e.length},u=(null===(i=t.match(/\n/g))||void 0===i?void 0:i.length)>0?l.line-t.match(/\n/g).length:l.line,h={line:u,ch:(null===(o=t.match(/\n/g))||void 0===o?void 0:o.length)>0?a.getLine(u).length:l.ch-t.length};a.setSelection(c,h)}},{key:"getMoreSelection",value:function(e,t,n){var r=this.editor.editor,i=this.$getSelectionRange(),o=i.begin,a=i.end,A=/\n/.test(e)?0:o.ch-e.length;A=A<0?0:A;var s,l=/\n/.test(e)?o.line-e.match(/\n/g).length:o.line,c={line:l=l<0?0:l,ch:A},u=a.line,h=a.ch;/\n/.test(t)?(u=a.line+t.match(/\n/g).length,h=null===(s=r.getLine(u))||void 0===s?void 0:s.length):h=r.getLine(a.line).length1&&void 0!==arguments[1]?arguments[1]:"word",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.editor.editor;if(this.isSelections)return e;if(e&&!n)return e;if("line"===t){var i=this.$getSelectionRange(),o=i.begin,a=i.end;return r.setSelection({line:o.line,ch:0},{line:a.line,ch:r.getLine(a.line).length}),r.getSelection()}if("word"===t){var A=r.findWordAt(r.getCursor()),s=A.anchor,l=A.head;return r.setSelection(s,l),r.getSelection()}}},{key:"bindSubClick",value:function(e,t){return this.fire(null,e)}},{key:"onClick",value:function(e,t,n){return e}},{key:"shortcutKeys",get:function(){return[]}},{key:"updateMenuIcon",value:function(e){if(this.noIcon)return!1;var t;if("string"==typeof e)return"iconfont"===this.iconType&&(null===(t=this.dom.querySelector("i"))||void 0===t||t.classList.replace("ch-icon-".concat(this.iconName),"ch-icon-".concat(e)),this.iconName=e,this.$currentMenuOptions.icon=e,this.iconType="iconfont",!0);if(e instanceof HTMLElement)return e.classList.add("ch-icon cherry-menu-".concat(this.name)),this.dom.replaceChildren(e),this.iconType="element",!0;var n=this.iconName;switch(e.type){case"iconfont":if("iconfont"===this.iconType){var r;n=e.content,null===(r=this.dom.querySelector("i"))||void 0===r||r.classList.replace("ch-icon-".concat(this.iconName),"ch-icon-".concat(n)),this.iconName=n}else{var i=this.createIconFontIcon(e.content,{className:"cherry-menu-".concat(this.name)});e.iconClassName&&i.classList.add(e.iconClassName),e.iconStyle&&i.setAttribute("style",e.iconStyle),this.dom.replaceChildren(i)}this.iconType="iconfont";break;case"svg":this.dom.replaceChildren(this.createSvgIcon(e)),this.iconType="svg";break;case"image":this.dom.replaceChildren(this.createImageIcon(e)),this.iconType="image";break;case"element":throw Error("except the options argument instance of HTMLElement, but get a type of ".concat(Ua(e)))}}},{key:"getMenuPosition",value:function(){var t=e.getTargetParentByButton(this.dom),n=/cherry-sidebar/.test(t.className);return/cherry-bubble/.test(t.className)||/cherry-floatmenu/.test(t.className)?this.positionModel="fixed":this.positionModel=n?"sidebar":"absolute",WL(this.dom,this.positionModel)}},{key:"hide",value:function(){this.dom.style.display="none"}},{key:"show",value:function(){this.dom.style.display="block"}},{key:"getActiveSubMenuIndex",value:function(e){return-1}}],[{key:"getTargetParentByButton",value:function(e){var t=e.parentElement;return/toolbar-(left|right)/.test(t.className)&&(t=t.parentElement),t}}])}(),qL=navigator.userAgent,JL=navigator.platform;/gecko\/\d/i.test(qL);var YL=/MSIE \d/.test(qL),ZL=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(qL),eI=/Edge\/(\d+)/.exec(qL);(YL||ZL||eI)&&(YL?document.documentMode:(eI||ZL)[1]);var tI=!eI&&/WebKit\//.test(qL);tI&&/Qt\/\d+\.\d+/.test(qL),!eI&&/Chrome\//.test(qL);var nI=/Opera\//.test(qL);/Apple Computer/.test(navigator.vendor),/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(qL),/PhantomJS/.test(qL);var rI=!eI&&/AppleWebKit/.test(qL)&&/Mobile\/\w+/.test(qL),iI=/Android/.test(qL);rI||iI||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(qL);var oI=rI||/Mac/.test(JL);/\bCrOS\b/.test(qL),/win/i.test(JL);var aI,AI=nI&&qL.match(/Version\/(\d*\.\d*)/);AI&&(AI=Number(AI[1])),AI&&AI>=15&&(nI=!1,tI=!0);var sI="Shift",lI="Alt",cI=oI?"Meta":"Control",uI="Meta",hI="Enter",dI=nA(nA(nA(nA({},sI,(function(e){return{text:"⇧",tip:"Shift"}})),cI,(function(e){return e?{text:"⌃",tip:"Control"}:{text:"Ctrl",tip:"Control"}})),lI,(function(e){return e?{text:"⌥",tip:"Option"}:{text:"Alt",tip:"Alt"}})),uI,(function(e){return e?{text:"⌘",tip:"Command"}:{text:"⊞",tip:"Windows"}})),fI=oA(aI=[]).call(aI,["Backspace","Clear","Copy","CrSel","Cut","Delete","EraseEof","ExSel","Insert","Paste","Redo","Undo"],["ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp"],[" ","Tab","Enter"]),pI=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=oA(t=[]).call(t,Fg(fI),Fg(n)),i=[],o=e.metaKey||e.ctrlKey||e.altKey||e.shiftKey;if(Kb(r).call(r,e.key))return i;if(o&&(e.metaKey&&i.push(uI),e.ctrlKey&&i.push(cI),e.altKey&&i.push(lI),e.shiftKey&&i.push(sI)),!Kb(i).call(i,e.key)){if(jh(e))return i.push(e.code),i;i.push(e.code)}return i},gI=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"disable";window.localStorage.setItem("".concat(e,"-disable-cherry-shortcut-key"),t)},mI=function(e){return"disable"!==window.localStorage.getItem("".concat(e,"-disable-cherry-shortcut-key"))},vI=function(e,t){if(!t||"object"!==Ua(t))throw new Error("keyMap must be a object");return window.localStorage.setItem("".concat(e,"-cherry-shortcut-keymap"),hu(t))},yI=function(e){var t=window.localStorage.getItem("".concat(e,"-cherry-shortcut-keymap"));if(t)try{return JSON.parse(t)}catch(e){return console.error(e),null}return null},bI=function(e){if(!gd(e))throw new Error("keyStack must be a array");return e.join("-")},wI=function(e,t){if(e in dI){var n=dI[e];if("function"==typeof n)return n(t)}var r=e.replace(/Key|Digit/g,"");return{text:r,tip:r}},BI=function(e,t){if(!gd(e))throw new Error("keyStack must be a array");return bI(wf(e).call(e,(function(e){return wI(e,t).text})))},CI=function(e){if("number"==typeof e)return"Digit".concat(e);if("string"!=typeof e)throw new Error("key must be a string or number");if(e.length>1)throw new Error("key length must be 1, but get ".concat(e.length));var t=e.toUpperCase();return/\d/.test(t)?"Digit".concat(t):/[A-Z]/.test(t)?"Key".concat(t):void 0};function kI(e,t,n){return t=za(t),Na(e,TI()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function TI(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(TI=function(){return!!e})()}var EI=function(e){function t(e){var n,r;return eo(this,t),(r=kI(this,t,[e])).setName("bold","bold"),r.shortcutKeyMap=nA({},oA(n="".concat(cI,"-")).call(n,CI("b")),{hookName:r.name,aliasName:e.locale[r.name]}),r}return tA(t,e),Da(t,[{key:"$testIsBold",value:function(e){return/^\s*(\*\*|__)[\s\S]+(\1)/.test(e)}},{key:"onClick",value:function(e){var t=this,n=this.getSelection(e)||this.locale.bold;return this.isSelections||this.$testIsBold(n)||this.getMoreSelection("**","**",(function(){var e=t.editor.editor.getSelection(),r=t.$testIsBold(e);return r&&(n=e),r})),this.$testIsBold(n)?n.replace(/(^)(\s*)(\*\*|__)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb((function(){t.setLessSelection("**","**")})),n.replace(/(^)([^\n]+)($)/gm,"$1**$2**$3"))}}])}(zL);function SI(e,t,n){return t=za(t),Na(e,xI()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function xI(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(xI=function(){return!!e})()}var QI=function(e){function t(e){var n,r;return eo(this,t),(r=SI(this,t,[e])).setName("italic","italic"),r.shortcutKeyMap=nA({},oA(n="".concat(cI,"-")).call(n,CI("i")),{hookName:r.name,aliasName:r.$cherry.locale[r.name]}),r}return tA(t,e),Da(t,[{key:"$testIsItalic",value:function(e){return/^\s*(\*|_)[\s\S]+(\1)/.test(e)}},{key:"onClick",value:function(e){var t=this,n=this.getSelection(e)||this.locale.italic;return this.isSelections||this.$testIsItalic(n)||this.getMoreSelection("*","*",(function(){var e=t.editor.editor.getSelection(),r=t.$testIsItalic(e);return r&&(n=e),r})),this.$testIsItalic(n)?n.replace(/(^)(\s*)(\*|_)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb((function(){t.setLessSelection("*","*")})),n.replace(/(^)([^\n]+)($)/gm,"$1*$2*$3"))}}])}(zL);function LI(e,t,n){return t=za(t),Na(e,II()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function II(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(II=function(){return!!e})()}var FI=function(e){function t(e){var n;return eo(this,t),(n=LI(this,t,[e])).setName("split","|"),n}return tA(t,e),Da(t,[{key:"createBtn",value:function(){var e=document.createElement("i");return e.className="cherry-toolbar-button cherry-toolbar-split",e}}])}(zL);function UI(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"word",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(e.getSelections().length>1)return t;if(t&&!r)return t;if("line"===n){var i=e.listSelections()[0],o=i.anchor,a=i.head;return o.line===a.line&&o.ch>a.ch||o.line>a.line?e.setSelection({line:a.line,ch:0},{line:o.line,ch:e.getLine(o.line).length}):e.setSelection({line:o.line,ch:0},{line:a.line,ch:e.getLine(a.line).length}),e.getSelection()}if("word"===n){var A=e.findWordAt(e.getCursor()),s=A.anchor,l=A.head;return e.setSelection(s,l),e.getSelection()}}function _I(e,t,n){return t=za(t),Na(e,MI()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function MI(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(MI=function(){return!!e})()}var HI=function(e){function t(e){var n,r;return eo(this,t),(r=_I(this,t,[e])).setName("strikethrough","strike"),r.shortcutKeyMap=nA({},oA(n="".concat(cI,"-")).call(n,CI("d")),{hookName:r.name,aliasName:r.$cherry.locale[r.name]}),r}return tA(t,e),Da(t,[{key:"$testIsStrike",value:function(e){return/(~~)[\s\S]+(\1)/.test(e)}},{key:"onClick",value:function(e){var t,n,r,i,o,a,A=this,s=UI(this.editor.editor,e)||this.locale.strikethrough,l=(null===(t=this.$cherry)||void 0===t||null===(n=t.options)||void 0===n||null===(r=n.engine)||void 0===r||null===(i=r.syntax)||void 0===i||null===(o=i.strikethrough)||void 0===o?void 0:o.needWhitespace)?" ":"";return this.isSelections||this.$testIsStrike(s)||this.getMoreSelection("".concat(l,"~~"),"~~".concat(l),(function(){var e=A.editor.editor.getSelection(),t=A.$testIsStrike(e);return t&&(s=e),t})),this.$testIsStrike(s)?e.replace(/[\s]*(~~)([\s\S]+)(\1)[\s]*/g,"$2"):(this.registerAfterClickCb((function(){A.setLessSelection("".concat(l,"~~"),"~~".concat(l))})),s.replace(/(^)[\s]*([\s\S]+?)[\s]*($)/g,oA(a="$1".concat(l,"~~$2~~")).call(a,l,"$3")))}}])}(zL);function DI(e,t,n){return t=za(t),Na(e,OI()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function OI(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(OI=function(){return!!e})()}var NI=function(e){function t(e){var n;return eo(this,t),(n=DI(this,t,[e])).setName("sub","sub"),n}return tA(t,e),Da(t,[{key:"$testIsSub",value:function(e){return/^\s*(\^\^)[\s\S]+(\1)/.test(e)}},{key:"onClick",value:function(e){var t=this,n=UI(this.editor.editor,e)||this.locale.sub;return this.isSelections||this.$testIsSub(n)||this.getMoreSelection("^^","^^",(function(){var e=t.editor.editor.getSelection(),r=t.$testIsSub(e);return r&&(n=e),r})),this.$testIsSub(n)?n.replace(/(^)(\s*)(\^\^)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb((function(){t.setLessSelection("^^","^^")})),n.replace(/(^)([^\n]+)($)/gm,"$1^^$2^^$3"))}}])}(zL);function RI(e,t,n){return t=za(t),Na(e,PI()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function PI(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(PI=function(){return!!e})()}var $I=function(e){function t(e){var n;return eo(this,t),(n=RI(this,t,[e])).setName("sup","sup"),n}return tA(t,e),Da(t,[{key:"$testIsSup",value:function(e){return/^\s*(\^)[\s\S]+(\1)/.test(e)}},{key:"onClick",value:function(e){var t=this,n=UI(this.editor.editor,e)||this.locale.sup;return this.isSelections||this.$testIsSup(n)||this.getMoreSelection("^","^",(function(){var e=t.editor.editor.getSelection(),r=t.$testIsSup(e);return r&&(n=e),r})),this.$testIsSup(n)?e.replace(/(^)(\s*)(\^)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb((function(){t.setLessSelection("^","^")})),n.replace(/(^)([^\n]+)($)/gm,"$1^$2^$3"))}}])}(zL);function KI(e,t,n){return t=za(t),Na(e,XI()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function XI(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(XI=function(){return!!e})()}var VI=function(e){function t(e){var n;return eo(this,t),(n=KI(this,t,[e])).setName("color","color"),n.bubbleColor=new GI(e),n}return tA(t,e),Da(t,[{key:"$testIsColor",value:function(e,t){var n=/^\s*!!![^\s]+ [\s\S]+!!!\s*$/;return"text"===e?/^\s*!![^\s]+ [\s\S]+!!\s*$/.test(t)&&!n.test(t):n.test(t)}},{key:"$testIsShortKey",value:function(e){return/(color|background-color)\s*:/.test(e)}},{key:"$getTypeAndColor",value:function(e){var t;return this.$testIsShortKey(e)?{type:/background-color\s*:/.test(e)?"background-color":"text",color:Lu(t=e.replace(/(color|background-color)\s*:\s*([#0-9a-zA-Z]+)[^#0-9a-zA-Z]*$/,"$2")).call(t)}:this.getAndCleanCacheOnce()}},{key:"hideOtherSubMenu",value:function(e){var t=this.bubbleColor.dom.style.display||"none";e(),this.bubbleColor.dom.style.display=t}},{key:"onClick",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0;if(this.hasCacheOnce()||this.$testIsShortKey(n)){var i,o,a=UI(this.editor.editor,e)||this.locale.color,A=this.$getTypeAndColor(n),s=A.type,l=A.color,c="text"===s?"!!".concat(l," "):"!!!".concat(l," "),u="text"===s?"!!":"!!!";if(this.isSelections||this.$testIsColor(s,a)||this.getMoreSelection(c,u,(function(){var e=t.editor.editor.getSelection();return!!t.$testIsColor(s,e)&&(a=e,!0)})),this.$testIsColor(s,a)){var h,d=new RegExp(oA(h="(^\\s*".concat(u,")([^\\s]+) ([\\s\\S]+")).call(h,u,"\\s*$)"),"gm"),f=!0,p=a.replace(d,(function(e,t,n,r){var i,o;return f=!!f&&n===l,oA(i=oA(o="".concat(t)).call(o,l," ")).call(i,r)}));return f?a.replace(d,"$3").replace(/!+\s*$/gm,""):(this.registerAfterClickCb((function(){t.setLessSelection(c,u)})),p)}return this.registerAfterClickCb((function(){t.setLessSelection(c,u)})),oA(i=oA(o="".concat(c)).call(o,a)).call(i,u)}var g=0,m=0;if(r.target.closest(".cherry-bubble")){var v=r.target.closest(".cherry-bubble"),y=v.getBoundingClientRect();g=y.top+v.offsetHeight,m=r.target.closest(".cherry-toolbar-color").offsetLeft+y.left}else{var b=r.target.closest(".cherry-toolbar-color"),w=b.getBoundingClientRect();g=w.top+b.offsetHeight,m=w.left}this.updateMarkdown=!1,this.bubbleColor.toggle({left:m,top:g,$color:this})}}])}(zL),GI=function(){return Da((function e(t){eo(this,e),nA(this,"colorStack",["#000000","#444444","#666666","#999999","#cccccc","#eeeeee","#f3f3f3","#ffffff","#ff0000","#ff9900","#ffff00","#00ff00","#00ffff","#0000ff","#9900ff","#ff00ff","#f4cccc","#fce5cd","#fff2cc","#d9ead3","#d0e0e3","#cfe2f3","#d9d2e9","#ead1dc","#ea9999","#f9cb9c","#ffe599","#b6d7a8","#a2c4c9","#9fc5e8","#b4a7d6","#d5a6bd","#e06666","#f6b26b","#ffd966","#93c47d","#76a5af","#6fa8dc","#8e7cc3","#c27ba0","#cc0000","#e69138","#f1c232","#6aa84f","#45818e","#3d85c6","#674ea7","#a64d79","#990000","#b45f06","#bf9000","#38761d","#134f5c","#0b5394","#351c75","#741b47","#660000","#783f04","#7f6000","#274e13","#0c343d","#073763","#20124d","#4c1130"]),this.editor=t.editor,this.$cherry=t,this.init(),this.initAction()}),[{key:"setSelection",value:function(e){this.selection=e}},{key:"getFontColorDom",value:function(e){var t,n,r=wf(t=this.colorStack).call(t,(function(e){var t,n;return oA(t=oA(n='')})).join("");return oA(n="

    ".concat(e,"

    ")).call(n,r)}},{key:"getDom",value:function(){var e=document.createElement("div");e.classList.add("cherry-color-wrap"),e.classList.add("cherry-dropdown");var t=document.createElement("div");t.classList.add("cherry-color-text"),t.innerHTML=this.getFontColorDom(this.$cherry.locale.fontColor),e.appendChild(t);var n=document.createElement("div");return n.classList.add("cherry-color-bg"),n.innerHTML=this.getFontColorDom(this.$cherry.locale.fontBgColor),e.appendChild(n),e}},{key:"init",value:function(){this.dom=this.getDom(),this.editor.options.wrapperDom.appendChild(this.dom)}},{key:"onClick",value:function(){var e,t;return"text"===this.type?/^!!#\S+ [\s\S]+?!!/.test(this.selection)?this.selection.replace(/^!!#\S+ ([\s\S]+?)!!/,"!!".concat(this.colorValue," $1!!")):oA(t="!!".concat(this.colorValue," ")).call(t,this.selection,"!!"):/^!!!#\S+ [\s\S]+?!!!/.test(this.selection)?this.selection.replace(/^!!!#\S+ ([\s\S]+?)!!!/,"!!!".concat(this.colorValue," $1!!!")):oA(e="!!!".concat(this.colorValue," ")).call(e,this.selection,"!!!")}},{key:"initAction",value:function(){var e=this;this.dom.addEventListener("click",(function(t){var n=t.target;if(e.colorValue=n.getAttribute("data-val"),!e.colorValue)return!1;e.type=n.closest(".cherry-color-text")?"text":"bg",e.$color.setCacheOnce({type:e.type,color:e.colorValue}),e.$color.fire(null)}),!1)}},{key:"toggle",value:function(e){var t,n=e.left,r=e.top,i=e.$color;(null===(t=this.dom.style.display)||void 0===t?void 0:t.length)>0&&"none"!==this.dom.style.display?this.dom.style.display="none":(this.dom.style.left="".concat(n,"px"),this.dom.style.top="".concat(r,"px"),this.dom.style.display="block",this.$color=i)}}])}();function jI(e,t,n){return t=za(t),Na(e,WI()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function WI(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(WI=function(){return!!e})()}var zI=function(e){function t(e){var n,r,i,o,a,A,s,l,c,u,h;return eo(this,t),(h=jI(this,t,[e])).setName("header","header"),h.subMenuConfig=[{iconName:"h1",name:"h1",onclick:aA(n=h.bindSubClick).call(n,h,"1")},{iconName:"h2",name:"h2",onclick:aA(r=h.bindSubClick).call(r,h,"2")},{iconName:"h3",name:"h3",onclick:aA(i=h.bindSubClick).call(i,h,"3")},{iconName:"h4",name:"h4",onclick:aA(o=h.bindSubClick).call(o,h,"4")},{iconName:"h5",name:"h5",onclick:aA(a=h.bindSubClick).call(a,h,"5")}],h.shortcutKeyMap=nA(nA(nA(nA(nA({},oA(A="".concat(cI,"-")).call(A,CI(1)),{hookName:h.name,aliasName:h.$cherry.locale.h1}),oA(s="".concat(cI,"-")).call(s,CI(2)),{hookName:h.name,aliasName:h.$cherry.locale.h2}),oA(l="".concat(cI,"-")).call(l,CI(3)),{hookName:h.name,aliasName:h.$cherry.locale.h3}),oA(c="".concat(cI,"-")).call(c,CI(4)),{hookName:h.name,aliasName:h.$cherry.locale.h4}),oA(u="".concat(cI,"-")).call(u,CI(5)),{hookName:h.name,aliasName:h.$cherry.locale.h5}),h}return tA(t,e),Da(t,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"$getFlagStr",value:function(e){var t=+("string"==typeof e?e.replace(/[^0-9]+([0-9])/g,"$1"):e);return jh("#").call("#",t||1)}},{key:"$testIsHead",value:function(e){return/^\s*(#+)\s*.+/.test(e)}},{key:"onClick",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=UI(this.editor.editor,e,"line",!0)||this.locale.header,i=this.$getFlagStr(n);if(this.isSelections||this.$testIsHead(r)||this.getMoreSelection("\n","",(function(){var e=t.editor.editor.getSelection(),n=t.$testIsHead(e);return n&&(r=e),n})),this.$testIsHead(r)){var o=!0,a=r.replace(/(^\s*)(#+)(\s*)(.+$)/gm,(function(e,t,n,r,a){var A,s,l;return o=!!o&&n.length===i.length,oA(A=oA(s=oA(l="".concat(t)).call(l,i)).call(s,r)).call(A,a)}));return o?r.replace(/(^\s*)(#+)(\s*)(.+$)/gm,"$1$4"):(this.registerAfterClickCb((function(){t.setLessSelection("".concat(i," "),"")})),a)}return this.registerAfterClickCb((function(){t.setLessSelection("".concat(i," "),"")})),r.replace(/(^)([\s]*)([^\n]+)($)/gm,"$1".concat(i," $3$4"))}}])}(zL),qI=function(e,t){var n,r=document.createElement("td");return r.className=t||"table-item",UA(n=TA(e)).call(n,(function(t){r.dataset[t]=e[t]})),r},JI=function(){return Da((function e(t,n){var r=t.row,i=t.col;eo(this,e),this.init(r,i,n),this.initEventListeners(),this.afterClick=function(){}}),[{key:"init",value:function(e,t,n){var r=this,i=document.createElement("table"),o=[];i.className=["cherry-insert-table-menu","cherry-dropdown"].join(" ");for(var a=1;a<=e;a++){var A=document.createElement("tr");A.className="cherry-insert-table-menu-row",o[a-1]=[];for(var s=1;s<=t;s++){var l=qI({row:a,col:s},"cherry-insert-table-menu-item");A.appendChild(l),o[a-1][s-1]=l}i.appendChild(A)}return i.style.display="none",i.addEventListener("EditorHideToolbarSubMenu",(function(){r.hide()})),this.dom=i,this.cell=o,this.maxRow=e,this.maxCol=t,this.activeRow=0,this.activeCol=0,this.dom}},{key:"initEventListeners",value:function(){var e,t;this.dom.addEventListener("mousemove",aA(e=this.handleMouseMove).call(e,this),!1),this.dom.addEventListener("mouseup",aA(t=this.handleMouseUp).call(t,this))}},{key:"setActiveCell",value:function(e,t){if(this.activeRow!==e||this.activeCol!==t){var n=Math.min(this.activeRow,e),r=Math.max(this.activeRow,e);if(n!==r)for(var i=r;i>n;i--)for(var o=1;o<=this.activeCol;o++)this.cell[i-1][o-1].classList.toggle("active");var a=Math.min(this.activeCol,t),A=Math.max(this.activeCol,t);if(a!==A)for(var s=A;s>a;s--)for(var l=1;l<=e;l++)this.cell[l-1][s-1].classList.toggle("active");this.activeRow=e,this.activeCol=t}}},{key:"handleMouseMove",value:function(e){var t=e.target;t!==this.dom&&(t.classList.contains("cherry-insert-table-menu-item")||(t=t.querySelector(".cherry-insert-table-menu-item")),t&&this.setActiveCell(t.dataset.row,t.dataset.col))}},{key:"handleMouseUp",value:function(e){var t=e.target;return t===this.dom||t.classList.contains("cherry-insert-table-menu-item")||(t=t.querySelector(".cherry-insert-table-menu-item")),this.afterClick(this.activeRow,this.activeCol),void this.hide()}},{key:"show",value:function(e){this.dom.style.display="block",this.afterClick=e}},{key:"hide",value:function(){this.dom.style.display="none";for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:"image",n=document.createElement("input");n.type="file",n.id="fileUpload",n.value="",n.style.display="none",n.addEventListener("change",(function(n){var r=Uh(n.target.files,1)[0];e.$cherry.options.callback.fileUpload(r,(function(n){if("string"==typeof n&&n){var i,o="";if("image"===t)o=oA(i="![".concat(r.name,"](")).call(i,n,")");else if("video"===t){var a;o=oA(a="!video[".concat(r.name,"](")).call(a,n,")")}else if("audio"===t){var A;o=oA(A="!audio[".concat(r.name,"](")).call(A,n,")")}else{var s;o=oA(s="[".concat(r.name,"](")).call(s,n,")")}e.$cherry.$cherry.doc.replaceSelection(o)}}))})),n.click()}},{key:"onClick",value:function(e){var t,n,r,i,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",A=arguments.length>2?arguments[2]:void 0;if(/normal-table/.test(a)){var s,l,c,u=a.match(/([0-9]+)[^0-9]([0-9]+)/),h=u?+u[1]:3,d=u?+u[2]:5,f=jh(" Header |").call(" Header |",d),p=jh(" ------ |").call(" ------ |",d),g="\n|".concat(jh(" Sample |").call(" Sample |",d));return oA(s=oA(l=oA(c="".concat(e,"\n\n|")).call(c,f,"\n|")).call(l,p)).call(s,jh(g).call(g,h),"\n\n")}var m=UI(this.editor.editor,e);switch(a){case"hr":return"".concat(e,"\n\n---\n");case"br":return"".concat(e,"
    ");case"code":return"\n``` \n".concat(e||"code...","\n```\n");case"formula":return"".concat(e,"\n\n$ e=mc^2 $\n\n");case"checklist":return"".concat(e,"\n\n- [x] Item 1\n- [ ] Item 2\n- [ ] Item 3\n");case"toc":return"".concat(e,"\n\n[[toc]]\n");case"link":return oA(t="".concat(e,"[")).call(t,this.locale.link,"](http://url.com) ");case"image":return this.handleUpload("image"),e;case"video":return this.handleUpload("video"),e;case"audio":return this.handleUpload("audio"),e;case"table":return this.subBubbleTableMenu.dom.style.left=this.subMenu.dom.style.left,this.subBubbleTableMenu.dom.style.top=this.subMenu.dom.style.top,void this.subBubbleTableMenu.show((function(t,n){var r,i,o,a=jh(" Header |").call(" Header |",n),s=jh(" ------ |").call(" ------ |",n),l="\n|".concat(jh(" Sample |").call(" Sample |",n)),c=oA(r=oA(i=oA(o="".concat(e,"\n\n|")).call(o,a,"\n|")).call(i,s)).call(r,jh(l).call(l,t),"\n\n");A(c)}));case"line-table":return oA(n="".concat(e,"\n\n")).call(n,["| :line: {x,y} | a | b | c |","| :-: | :-: | :-: | :-: |","| x | 1 | 2 | 3 |","| y | 2 | 4 | 6 |","| z | 7 | 5 | 3 |"].join("\n"),"\n\n");case"bar-table":return oA(r="".concat(e,"\n\n")).call(r,["| :bar: {x,y} | a | b | c |","| :-: | :-: | :-: | :-: |","| x | 1 | 2 | 3 |","| y | 2 | 4 | 6 |","| z | 7 | 5 | 3 |"].join("\n"),"\n\n");case"headlessTable":return this.subBubbleTableMenu.dom.style.left=this.subMenu.dom.style.left,this.subBubbleTableMenu.dom.style.top=this.subMenu.dom.style.top,void this.subBubbleTableMenu.show((function(t,n){var r,i,o,a=oA(r=oA(i="".concat(e,"\n\n||")).call(i,jh(" ~Header ||").call(" ~Header ||",n))).call(r,jh(o="\n||".concat(jh(" SampleT ||").call(" SampleT ||",n))).call(o,t-1),"\n\n");A(a)}));case"pdf":return this.handleUpload("pdf"),e;case"word":return this.handleUpload("word"),e;case"ruby":return/^\s*\{[\s\S]+\|[\s\S]+\}/.test(m)?m.replace(/^\s*\{\s*([\s\S]+?)\s*\|[\s\S]+\}\s*/gm,"$1"):oA(i=" { ".concat(m," | ")).call(i,Lu(o=this.editor.$cherry.options.callback.changeString2Pinyin(m)).call(o)," } ")}}}])}(zL);function tF(e,t,n){return t=za(t),Na(e,nF()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function nF(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(nF=function(){return!!e})()}var rF=function(e){function t(e){var n,r,i,o;return eo(this,t),(o=tF(this,t,[e])).setName("list","list"),o.subMenuConfig=[{iconName:"ol",name:"ol",onclick:aA(n=o.bindSubClick).call(n,o,"1")},{iconName:"ul",name:"ul",onclick:aA(r=o.bindSubClick).call(r,o,"2")},{iconName:"checklist",name:"checklist",onclick:aA(i=o.bindSubClick).call(i,o,"3")}],o}return tA(t,e),Da(t,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"onClick",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=[null,"ol","ul","checklist"],o=UI(this.editor.editor,e,"line",!0),a=Uh(o.match(/^\n*/),1)[0],A=Uh(o.match(/\n*$/),1)[0],s=i[r]?i[r]:r;return s&&/^(ol|ul|checklist)$/.test(s)?oA(t=oA(n="".concat(a)).call(n,Pd(o,s))).call(t,A):o}}])}(zL);function iF(e,t,n){return t=za(t),Na(e,oF()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function oF(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(oF=function(){return!!e})()}var aF=function(e){function t(e){var n;return eo(this,t),(n=iF(this,t,[e])).setName("ol","ol"),n}return tA(t,e),Da(t,[{key:"onClick",value:function(e){var t,n,r=UI(this.editor.editor,e,"line",!0)||"Item 1\n Item 1.1\nItem 2",i=Uh(r.match(/^\n*/),1)[0],o=Uh(r.match(/\n*$/),1)[0];return oA(t=oA(n="".concat(i)).call(n,Pd(r,"ol"))).call(t,o)}}])}(zL);function AF(e,t,n){return t=za(t),Na(e,sF()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function sF(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(sF=function(){return!!e})()}var lF=function(e){function t(e){var n;return eo(this,t),(n=AF(this,t,[e])).setName("ul","ul"),n}return tA(t,e),Da(t,[{key:"onClick",value:function(e){var t,n,r=UI(this.editor.editor,e,"line",!0)||"Item 1\n Item 1.1\nItem 2",i=Uh(r.match(/^\n*/),1)[0],o=Uh(r.match(/\n*$/),1)[0];return oA(t=oA(n="".concat(i)).call(n,Pd(r,"ul"))).call(t,o)}}])}(zL);function cF(e,t,n){return t=za(t),Na(e,uF()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function uF(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(uF=function(){return!!e})()}var hF=function(e){function t(e){var n;return eo(this,t),(n=cF(this,t,[e])).setName("checklist","checklist"),n}return tA(t,e),Da(t,[{key:"onClick",value:function(e){var t,n,r=UI(this.editor.editor,e,"line",!0)||"Item 1\n Item 1.1\nItem 2",i=Uh(r.match(/^\n*/),1)[0],o=Uh(r.match(/\n*$/),1)[0];return oA(t=oA(n="".concat(i)).call(n,Pd(r,"checklist"))).call(t,o)}}])}(zL);function dF(e,t,n){return t=za(t),Na(e,fF()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function fF(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(fF=function(){return!!e})()}function pF(e,t){return[e,"```mermaid",t,"```"].join("\n")}var gF=["\tA[公司] --\x3e| 下 班 | B(菜市场)","\tB --\x3e C{看见
    卖西瓜的}","\tC --\x3e|Yes| D[买一个包子]","\tC --\x3e|No| E[买一斤包子]"].join("\n"),mF=["\tA[Company] --\x3e| Finish work | B(Grocery Store)","\tB --\x3e C{See
    Watermelon Seller}","\tC --\x3e|Yes| D[Buy a bun]","\tC --\x3e|No| E[Buy a kilogram of buns]"].join("\n"),vF={flow:["FlowChart",pF("左右结构","graph LR\n".concat(gF)),pF("上下结构","graph TD\n".concat(gF))].join("\n"),sequence:pF("SequenceDiagram",["sequenceDiagram","autonumber","A--\x3eA: 文本1","A->>B: 文本2","loop 循环1","loop 循环2","A->B: 文本3","end","loop 循环3","B --\x3e>A: 文本4","end","B --\x3e> B: 文本5","end"].join("\n")),state:pF("StateDiagram",["stateDiagram-v2","[*] --\x3e A","A --\x3e B","A --\x3e C","state A {"," \t[*] --\x3e D"," \tD --\x3e [*]","}","B --\x3e [*]","C --\x3e [*]"].join("\n")),class:pF("ClassDiagram",["classDiagram","Base <|-- One","Base <|-- Two","Base : +String name","Base: +getName()","Base: +setName(String name)","class One{"," \t+String newName"," \t+getNewName()","}","class Two{"," \t-int id"," \t-getId()","}"].join("\n")),pie:pF("PieChart",["pie","title 饼图",'"A" : 100','"B" : 80','"C" : 40','"D" : 30'].join("\n")),gantt:pF("GanttChart",["gantt","\ttitle 敏捷研发流程","\tsection 迭代前","\t\t交互设计 :a1, 2020-03-01, 4d","\t\tUI设计 :after a1, 5d","\t\t需求评审 : 1d","\tsection 迭代中","\t\t详细设计 :a2, 2020-03-11, 2d","\t\t开发 :2020-03-15, 7d","\t\t测试 :2020-03-22, 5d","\tsection 迭代后","\t\t发布: 1d","\t\t验收: 2d","\t\t回顾: 1d"].join("\n"))},yF={flow:["FlowChart",pF("Left-right structure","graph LR\n".concat(mF)),pF("Top-bottom structure","graph TD\n".concat(mF))].join("\n"),sequence:pF("SequenceDiagram",["sequenceDiagram","autonumber","A--\x3eA: text1","A->>B: text2","loop loop1","loop loop2","A->B: text3","end","loop loop3","B --\x3e>A: text4","end","B --\x3e> B: text5","end"].join("\n")),state:pF("StateDiagram",["stateDiagram-v2","[*] --\x3e A","A --\x3e B","A --\x3e C","state A {"," \t[*] --\x3e D"," \tD --\x3e [*]","}","B --\x3e [*]","C --\x3e [*]"].join("\n")),class:pF("ClassDiagram",["classDiagram","Base <|-- One","Base <|-- Two","Base : +String name","Base: +getName()","Base: +setName(String name)","class One{"," \t+String newName"," \t+getNewName()","}","class Two{"," \t-int id"," \t-getId()","}"].join("\n")),pie:pF("PieChart",["pie","title pie",'"A" : 100','"B" : 80','"C" : 40','"D" : 30'].join("\n")),gantt:pF("GanttChart",["gantt","\ttitle work","\tsection session 1","\t\twork1 :a1, 2020-03-01, 4d","\t\twork2 :after a1, 5d","\t\twork3 : 1d","\tsection session 2","\t\twork4 :a2, 2020-03-11, 2d","\t\twork5 :2020-03-15, 7d","\t\twork6 :2020-03-22, 5d","\tsection session 3","\t\twork7: 1d","\t\twork8: 2d","\t\twork9: 1d"].join("\n"))},bF=function(e){function t(e){var n,r,i,o,a,A,s;return eo(this,t),(s=dF(this,t,[e])).setName("graph","insertChart"),s.noIcon=!0,s.localeName=e.options.locale,s.subMenuConfig=[{iconName:"insertFlow",name:"insertFlow",onclick:aA(n=s.bindSubClick).call(n,s,"1")},{iconName:"insertSeq",name:"insertSeq",onclick:aA(r=s.bindSubClick).call(r,s,"2")},{iconName:"insertState",name:"insertState",onclick:aA(i=s.bindSubClick).call(i,s,"3")},{iconName:"insertClass",name:"insertClass",onclick:aA(o=s.bindSubClick).call(o,s,"4")},{iconName:"insertPie",name:"insertPie",onclick:aA(a=s.bindSubClick).call(a,s,"5")},{iconName:"insertGantt",name:"insertGantt",onclick:aA(A=s.bindSubClick).call(A,s,"6")}],s}return tA(t,e),Da(t,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"onClick",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=[null,"flow","sequence","state","class","pie","gantt"],i=r[n]?r[n]:n;if(i&&/^(flow|sequence|state|class|pie|gantt)$/.test(i))return this.registerAfterClickCb((function(){t.setLessSelection("\n\n\n\n\n","\n\n")})),"\n\n".concat(this.$getSampleCode(i),"\n")}},{key:"$getSampleCode",value:function(e){var t,n;return"zh-CN"!==this.localeName&&"zh_CN"!==this.localeName?null===(n=yF[e])||void 0===n?void 0:n.replace(/\t/g," "):null===(t=vF[e])||void 0===t?void 0:t.replace(/\t/g," ")}}])}(zL);function wF(e,t,n){return t=za(t),Na(e,BF()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function BF(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(BF=function(){return!!e})()}var CF=function(e){function t(e){var n,r,i,o,a,A,s,l,c,u,h,d,f;return eo(this,t),(f=wF(this,t,[e])).setName("size","size"),f.subMenuConfig=[{name:f.$cherry.locale.small,noIcon:!0,onclick:aA(n=f.bindSubClick).call(n,f,"12")},{name:f.$cherry.locale.medium,noIcon:!0,onclick:aA(r=f.bindSubClick).call(r,f,"17")},{name:f.$cherry.locale.large,noIcon:!0,onclick:aA(i=f.bindSubClick).call(i,f,"24")},{name:f.$cherry.locale.superLarge,noIcon:!0,onclick:aA(o=f.bindSubClick).call(o,f,"32")}],f.shortKeyMap={"Alt-Digit1":"12","Alt-Digit2":"17","Alt-Digit3":"24","Alt-Digit4":"32"},f.shortcutKeyMap=nA(nA(nA(nA({},oA(a="".concat(lI,"-")).call(a,CI(1)),{hookName:f.name,aliasName:oA(A="".concat(f.$cherry.locale[f.name],"-")).call(A,f.$cherry.locale.small)}),oA(s="".concat(lI,"-")).call(s,CI(2)),{hookName:f.name,aliasName:oA(l="".concat(f.$cherry.locale[f.name],"-")).call(l,f.$cherry.locale.medium)}),oA(c="".concat(lI,"-")).call(c,CI(3)),{hookName:f.name,aliasName:oA(u="".concat(f.$cherry.locale[f.name],"-")).call(u,f.$cherry.locale.large)}),oA(h="".concat(lI,"-")).call(h,CI(4)),{hookName:f.name,aliasName:oA(d="".concat(f.$cherry.locale[f.name],"-")).call(d,f.$cherry.locale.superLarge)}),f}return tA(t,e),Da(t,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"_getFlagStr",value:function(e){for(var t=e.replace(/[^0-9]+([0-9])/g,"$1"),n="#",r=1;r1&&void 0!==arguments[1]?arguments[1]:"17",r=this.$getSizeByShortKey(n),i=UI(this.editor.editor,e)||"字号";if(this.isSelections||this.$testIsSize(i)||this.getMoreSelection("!32 ","!",(function(){var e=t.editor.editor.getSelection();return!!t.$testIsSize(e)&&(i=e,!0)})),this.$testIsSize(i)){var o=!0,a=i.replace(/(^)(\s*)(![0-9]+)([^\n]+)(!)(\s*)($)/gm,(function(e,t,n,i,a,A,s,l){var c,u,h,d,f,p;return o=!!o&&i==="!".concat(r),oA(c=oA(u=oA(h=oA(d=oA(f=oA(p="".concat(t)).call(p,n,"!")).call(f,r)).call(d,a)).call(h,A)).call(u,s)).call(c,l)}));return o?i.replace(/(^)(\s*)(![0-9]+\s*)([^\n]+)(!)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb((function(){t.setLessSelection("!".concat(r," "),"!")})),a)}return this.registerAfterClickCb((function(){t.setLessSelection("!".concat(r," "),"!")})),i.replace(/(^)([^\n]+)($)/gm,"$1!".concat(r," $2!$3"))}}])}(zL);function kF(e,t,n){return t=za(t),Na(e,TF()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function TF(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(TF=function(){return!!e})()}var EF=function(e){function t(e){var n;return eo(this,t),(n=kF(this,t,[e])).setName("h1","h1"),n}return tA(t,e),Da(t,[{key:"$testIsHead",value:function(e){return/^\s*(#+)\s*.+/.test(e)}},{key:"onClick",value:function(e){var t=this,n=UI(this.editor.editor,e,"line",!0)||this.locale.h1,r="#";if(this.isSelections||this.$testIsHead(n)||this.getMoreSelection("\n","",(function(){var e=t.editor.editor.getSelection(),r=t.$testIsHead(e);return r&&(n=e),r})),this.$testIsHead(n)){var i=!0,o=n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,(function(e,t,n,o,a){var A,s,l;return i=!!i&&1===n.length,oA(A=oA(s=oA(l="".concat(t)).call(l,r)).call(s,o)).call(A,a)}));return i?n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,"$1$4"):(this.registerAfterClickCb((function(){t.setLessSelection("".concat(r," "),"")})),o)}return this.registerAfterClickCb((function(){t.setLessSelection("".concat(r," "),"")})),n.replace(/(^)([\s]*)([^\n]+)($)/gm,"$1".concat(r," $3$4"))}}])}(zL);function SF(e,t,n){return t=za(t),Na(e,xF()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function xF(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(xF=function(){return!!e})()}var QF=function(e){function t(e){var n;return eo(this,t),(n=SF(this,t,[e])).setName("h2","h2"),n}return tA(t,e),Da(t,[{key:"$testIsHead",value:function(e){return/^\s*(#+)\s*.+/.test(e)}},{key:"onClick",value:function(e){var t=this,n=UI(this.editor.editor,e,"line",!0)||this.locale.h2,r="##";if(this.isSelections||this.$testIsHead(n)||this.getMoreSelection("\n","",(function(){var e=t.editor.editor.getSelection(),r=t.$testIsHead(e);return r&&(n=e),r})),this.$testIsHead(n)){var i=!0,o=n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,(function(e,t,n,o,a){var A,s,l;return i=!!i&&2===n.length,oA(A=oA(s=oA(l="".concat(t)).call(l,r)).call(s,o)).call(A,a)}));return i?n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,"$1$4"):(this.registerAfterClickCb((function(){t.setLessSelection("".concat(r," "),"")})),o)}return this.registerAfterClickCb((function(){t.setLessSelection("".concat(r," "),"")})),n.replace(/(^)([\s]*)([^\n]+)($)/gm,"$1".concat(r," $3$4"))}}])}(zL);function LF(e,t,n){return t=za(t),Na(e,IF()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function IF(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(IF=function(){return!!e})()}var FF=function(e){function t(e){var n;return eo(this,t),(n=LF(this,t,[e])).setName("h3","h3"),n}return tA(t,e),Da(t,[{key:"$testIsHead",value:function(e){return/^\s*(#+)\s*.+/.test(e)}},{key:"onClick",value:function(e){var t=this,n=UI(this.editor.editor,e,"line",!0)||this.locale.h3,r="###";if(this.isSelections||this.$testIsHead(n)||this.getMoreSelection("\n","",(function(){var e=t.editor.editor.getSelection(),r=t.$testIsHead(e);return r&&(n=e),r})),this.$testIsHead(n)){var i=!0,o=n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,(function(e,t,n,o,a){var A,s,l;return i=!!i&&3===n.length,oA(A=oA(s=oA(l="".concat(t)).call(l,r)).call(s,o)).call(A,a)}));return i?n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,"$1$4"):(this.registerAfterClickCb((function(){t.setLessSelection("".concat(r," "),"")})),o)}return this.registerAfterClickCb((function(){t.setLessSelection("".concat(r," "),"")})),n.replace(/(^)([\s]*)([^\n]+)($)/gm,"$1".concat(r," $3$4"))}}])}(zL);function UF(e,t,n){return t=za(t),Na(e,_F()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function _F(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(_F=function(){return!!e})()}var MF=function(e){function t(e){var n;return eo(this,t),(n=UF(this,t,[e])).setName("quote","blockquote"),n}return tA(t,e),Da(t,[{key:"onClick",value:function(e){var t,n=this,r=UI(this.editor.editor,e,"line",!0)||this.locale.quote,i=PQ(t=r.split("\n")).call(t,(function(e){return/^\s*>[^\n]+$/.exec(e)}));return i?r.replace(/(^\s*)>\s*([^\n]+)($)/gm,"$1$2$3").replace(/\n+$/,"\n\n"):(this.registerAfterClickCb((function(){n.setLessSelection("> ","")})),r.replace(/(^)([^\n]+)($)/gm,"$1> $2$3").replace(/\n+$/,"\n\n"))}}])}(zL);function HF(e,t,n){return t=za(t),Na(e,DF()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function DF(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(DF=function(){return!!e})()}var OF=function(e){function t(e){var n;return eo(this,t),(n=HF(this,t,[e])).setName("quickTable","table"),n}return tA(t,e),Da(t,[{key:"onClick",value:function(e){return"".concat(e,"| LeftAlignedCol | CenterAlignedCol | RightAlignedCol |\n")+"| :--- | :---: | ---: |\n| sampleText | sampleText | sampleText |\n| **left**Text | centered Text | *right*Text |\n"}}])}(zL);function NF(e,t,n){return t=za(t),Na(e,RF()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function RF(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(RF=function(){return!!e})()}var PF=function(e){function t(e){var n;return eo(this,t),nA(n=NF(this,t,[e]),"$previewerHidden",!1),n.setName("previewClose","previewClose"),n.instanceId=e.instanceId,n.updateMarkdown=!1,n.attachEventListeners(),n}return tA(t,e),Da(t,[{key:"attachEventListeners",value:function(){var e=this;this.$cherry.$event.on("previewerClose",(function(){e.isHidden=!0})),this.$cherry.$event.on("previewerOpen",(function(){e.isHidden=!1}))}},{key:"isHidden",get:function(){return this.$previewerHidden},set:function(e){if(e!==this.$previewerHidden){var t=this.dom.querySelector("i");e?(t.classList.toggle("ch-icon-previewClose",!1),t.classList.toggle("ch-icon-preview",!0),t.title=this.locale.togglePreview):(t.classList.toggle("ch-icon-previewClose",!0),t.classList.toggle("ch-icon-preview",!1),t.title=this.locale.previewClose),this.$previewerHidden=e}}},{key:"onClick",value:function(){this.editor.previewer.isPreviewerNeedFloat()?this.editor.previewer.isPreviewerFloat()?(this.editor.previewer.recoverFloatPreviewer(!0),this.isHidden=!1):(this.editor.previewer.floatPreviewer(),this.isHidden=!0):this.editor.previewer.isPreviewerHidden()?(this.editor.previewer.recoverPreviewer(!0),this.isHidden=!1):(this.editor.previewer.editOnly(!0),this.isHidden=!0)}}])}(zL);function $F(e,t,n){return t=za(t),Na(e,KF()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function KF(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(KF=function(){return!!e})()}var XF=function(e){function t(e){var n;return eo(this,t),(n=$F(this,t,[e])).updateMarkdown=!1,n.setName("fullScreen","fullscreen"),n}return tA(t,e),Da(t,[{key:"onClick",value:function(){for(var e=this.editor.options.editorDom.parentElement.classList,t=document.querySelector(".cherry-toolbar-fullscreen");t&&t.firstChild;)t.removeChild(t.firstChild);if(e.contains("fullscreen")){var n=sd("i","ch-icon ch-icon-fullscreen");t&&t.appendChild(n),e.remove("fullscreen")}else{var r=sd("i","ch-icon ch-icon-minscreen");t&&t.appendChild(r),e.add("fullscreen")}this.editor.editor.refresh()}}])}(zL);function VF(e,t,n){return t=za(t),Na(e,GF()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function GF(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(GF=function(){return!!e})()}var jF=function(e){function t(e){var n;return eo(this,t),(n=VF(this,t,[e])).setName("undo","undo"),n}return tA(t,e),Da(t,[{key:"onClick",value:function(){this.editor.editor.undo()}}])}(zL);function WF(e,t,n){return t=za(t),Na(e,zF()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function zF(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(zF=function(){return!!e})()}var qF=function(e){function t(e){var n;return eo(this,t),(n=WF(this,t,[e])).setName("redo","redo"),n}return tA(t,e),Da(t,[{key:"onClick",value:function(){this.editor.editor.redo()}}])}(zL);function JF(e,t,n){return t=za(t),Na(e,YF()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function YF(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(YF=function(){return!!e})()}var ZF=function(e){function t(e){var n,r;return eo(this,t),(r=JF(this,t,[e])).setName("codeBlock","codeBlock"),r.shortcutKeyMap=nA({},oA(n="".concat(cI,"-")).call(n,CI("k")),{hookName:r.name,aliasName:r.$cherry.locale[r.name]}),r}return tA(t,e),Da(t,[{key:"onClick",value:function(e){var t=this,n=e||"code...";return this.registerAfterClickCb((function(){t.setLessSelection("\n``` \n","\n```\n")})),"\n``` \n".concat(n,"\n```\n")}}])}(zL);function eU(e,t,n){return t=za(t),Na(e,tU()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function tU(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(tU=function(){return!!e})()}var nU=function(e){function t(e){var n;return eo(this,t),(n=eU(this,t,[e])).setName("inlineCode","code"),n.shortcutKeyMap=nA({},"".concat(cI,"-Backquote"),{hookName:n.name,aliasName:n.$cherry.locale[n.name]}),n}return tA(t,e),Da(t,[{key:"onClick",value:function(e){var t,n=this;return e?Kb(e).call(e,"\n")?wf(t=e.split("\n")).call(t,(function(e){return"`".concat(e,"`")})).join("\n"):(this.registerAfterClickCb((function(){return n.setLessSelection("`","`")})),"`".concat(e,"`")):(this.registerAfterClickCb((function(){return n.setLessSelection("`","`")})),"``")}}])}(zL);function rU(e,t,n){return t=za(t),Na(e,iU()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function iU(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(iU=function(){return!!e})()}var oU=function(e){function t(e){var n,r,i,o,a,A,s,l,c,u,h,d,f;return eo(this,t),(f=rU(this,t,[e])).setName("codeTheme"),f.updateMarkdown=!1,f.noIcon=!0,f.subMenuConfig=[{noIcon:!1,name:"autoWrap",iconName:"br",onclick:aA(n=f.bindSubClick).call(n,f,"wrap")},{noIcon:!0,name:"light",onclick:aA(r=f.bindSubClick).call(r,f,"default")},{noIcon:!0,name:"dark",onclick:aA(i=f.bindSubClick).call(i,f,"dark")},{noIcon:!0,name:"one light",onclick:aA(o=f.bindSubClick).call(o,f,"one-light")},{noIcon:!0,name:"one dark",onclick:aA(a=f.bindSubClick).call(a,f,"one-dark")},{noIcon:!0,name:"vs light",onclick:aA(A=f.bindSubClick).call(A,f,"vs-light")},{noIcon:!0,name:"vs dark",onclick:aA(s=f.bindSubClick).call(s,f,"vs-dark")},{noIcon:!0,name:"solarized light",onclick:aA(l=f.bindSubClick).call(l,f,"solarized-light")},{noIcon:!0,name:"tomorrow dark",onclick:aA(c=f.bindSubClick).call(c,f,"tomorrow-night")},{noIcon:!0,name:"okaidia",onclick:aA(u=f.bindSubClick).call(u,f,"okaidia")},{noIcon:!0,name:"twilight",onclick:aA(h=f.bindSubClick).call(h,f,"twilight")},{noIcon:!0,name:"coy",onclick:aA(d=f.bindSubClick).call(d,f,"coy")}],f}return tA(t,e),Da(t,[{key:"getActiveSubMenuIndex",value:function(e){return"wrap"===this.$cherry.getCodeWrap()?0:-1}},{key:"onClick",value:function(){var e=arguments.length>1?arguments[1]:void 0;if("wrap"===e){var t="wrap"===this.$cherry.getCodeWrap()?"nowrap":"wrap";return this.$cherry.wrapperDom.dataset.codeWrap=t,void this.$cherry.setCodeWrap(t)}this.$cherry.$event.emit("changeCodeBlockTheme",e),If(this.$cherry,e)}}])}(zL);function aU(e,t,n){return t=za(t),Na(e,AU()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function AU(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(AU=function(){return!!e})()}var sU=function(e){function t(e){var n,r,i,o,a;return eo(this,t),(a=aU(this,t,[e])).setName("export"),a.noIcon=!0,a.updateMarkdown=!1,a.subMenuConfig=[{noIcon:!0,name:"exportToPdf",onclick:aA(n=a.bindSubClick).call(n,a,"pdf")},{noIcon:!0,name:"exportScreenshot",onclick:aA(r=a.bindSubClick).call(r,a,"screenShot")},{noIcon:!0,name:"exportMarkdownFile",onclick:aA(i=a.bindSubClick).call(i,a,"markdown")},{noIcon:!0,name:"exportHTMLFile",onclick:aA(o=a.bindSubClick).call(o,a,"html")}],a}return tA(t,e),Da(t,[{key:"onClick",value:function(){var e=arguments.length>1?arguments[1]:void 0;document.querySelector(".cherry-dropdown[name=export]")&&(document.querySelector(".cherry-dropdown[name=export]").style.display="none");var t=this.$cherry.previewer,n="";n=t.isPreviewerHidden()?t.options.previewerCache.html:t.getDomContainer().innerHTML,n=t.lazyLoadImg.changeDataSrc2Src(n),t.refresh(n),t.export(e)}}])}(zL),lU=["hookName","aliasName"];function cU(e,t){e.setAttribute("style","display: none;"),t.style.display="flex"}var uU=function(){return Da((function e(t){var n=this;eo(this,e),this.$cherry=t,this.shortcutUlClassName="cherry-shortcut-key-config-panel-ul",this.shortcutUlId=this.shortcutUlClassName,this.shortcutConfigPanelKbdClassName="shortcut-key-config-panel-kbd",this.shortcutKeyboardKeyClassName="keyboard-key",this.handleDbClick=function(e){if(mI(n.$cherry.nameSpace)&&e.target instanceof HTMLElement&&(e.target.classList.contains(n.shortcutConfigPanelKbdClassName)||e.target.classList.contains(n.shortcutKeyboardKeyClassName))){var t,r=e.target.classList.contains(n.shortcutConfigPanelKbdClassName)?e.target:e.target.parentElement;r.style.display="none";var i=r.nextElementSibling;i.setAttribute("style","display: block;");var o=i.querySelector("input"),a=[];UA(t=r.childNodes).call(t,(function(e){a.push(e.innerText)})),o.placeholder=a.join("-"),o.focus(),o.onblur=function(){cU(i,r),o.value=""};var A=[];o.onkeydown=function(e){if(e.preventDefault(),e.stopPropagation(),e.key===hI||"Backspace"===e.key)if(e.key===hI){for(var t,a,s=(null!==(t=null===(a=r.parentElement)||void 0===a?void 0:a.dataset)&&void 0!==t?t:{}).hookname,l=void 0===s?"":s,c=[],u=0;u=2&&(o.value=BI(A,oI))}}},this.clickSettingsDisableBtn=function(){mI(n.$cherry.nameSpace)?(gI(n.$cherry.nameSpace,"disable"),n.dom.classList.add("disable"),n.$cherry.editor.disableShortcut(!0)):(gI(n.$cherry.nameSpace,"enable"),n.dom.classList.remove("disable"),n.$cherry.editor.disableShortcut(!1))},this.clickSettingsRecoverBtn=function(){gI(n.$cherry.nameSpace,"enable"),n.dom.classList.remove("disable"),n.$cherry.editor.disableShortcut(!1),n.$cherry.toolbar.shortcutKeyMap={},n.$cherry.toolbar.collectShortcutKey(!1),vI(n.$cherry.nameSpace,n.$cherry.toolbar.shortcutKeyMap),n.dom.innerHTML=n.generateShortcutKeyConfigPanelHtmlStr(),n.show()},this.init()}),[{key:"init",value:function(){var e,t;null!==(e=this.$cherry)&&void 0!==e&&null!==(t=e.toolbar)&&void 0!==t&&t.shortcutKeyMap&&(this.dom=document.createElement("div"),this.dom.className=["cherry-dropdown","cherry-shortcut-key-config-panel","cherry-shortcut-key-config-panel-wrapper"].join(" "),this.dom.innerHTML=this.generateShortcutKeyConfigPanelHtmlStr(),this.dom.style.display="none",mI(this.$cherry.nameSpace)||this.dom.classList.add("disable"),this.$cherry.wrapperDom.append(this.dom))}},{key:"generateShortcutKeyConfigPanelHtmlStr",value:function(){var e,t,n,r,i,o,a,A,s,l=this,c=wf(e=Di(t=_Q(null!==(n=this.$cherry.toolbar.shortcutKeyMap)&&void 0!==n?n:{})).call(t,(function(e){var t=Uh(e,2);t[0];var n=t[1];return"object"===Ua(n)&&n}))).call(e,(function(e){var t,n,r,i,o,a,A=Uh(e,2),s=A[0],c=A[1],u=c.hookName,h=c.aliasName,d=$c(c,lU),f="";d&&"object"===Ua(d)&&(f=wf(a=_Q(d)).call(a,(function(e){var t,n=Uh(e,2),r=n[0],i=n[1];return oA(t="data-".concat(r,"=")).call(t,i)})).join(" "));return oA(t=oA(n=oA(r=oA(i='
  • \n
    ')).call(r,h,'
    \n
    ')).call(t,null==s?void 0:wf(o=s.split("-")).call(o,(function(e){var t,n,r,i=wI(e,oI),o=null!=i?i:{text:e,tip:e};return oA(t=oA(n=oA(r='')).call(t,o.text,"")})).join(""),'
    \n \n
  • ')})).join("");return oA(r=oA(i=oA(o=oA(a=oA(A=oA(s='\n
    \n
    \n '.concat(this.$cherry.locale.disableShortcut,'\n ')).call(s,this.$cherry.locale.recoverShortcut,'\n
    \n
    ')).call(A,this.$cherry.locale.editShortcutKeyConfigTip,'
    \n
      ')).call(i,c,"
    \n ")).call(r,this.$getStaticShortcut(),"\n
    ")}},{key:"$getStaticShortcut",value:function(){var e;if("vim"===this.$cherry.options.editor.keyMap)return"";for(var t=[{name:this.$cherry.locale.shortcutStatic1,key:"Ctrl+["},{name:this.$cherry.locale.shortcutStatic2,key:"Ctrl+]"},{name:this.$cherry.locale.shortcutStatic3,key:"Ctrl+Shift+D"},{name:this.$cherry.locale.shortcutStatic4,key:"Ctrl+Enter"},{name:this.$cherry.locale.shortcutStatic5,key:"Ctrl+Shift+Enter"},{name:this.$cherry.locale.shortcutStatic6,key:"Ctrl+Shift+↑"},{name:this.$cherry.locale.shortcutStatic7,key:"Ctrl+Shift+↓"},{name:this.$cherry.locale.shortcutStatic8,key:"Ctrl+Shift+K"},{name:this.$cherry.locale.shortcutStatic9,key:"Ctrl+Shift+←"},{name:this.$cherry.locale.shortcutStatic10,key:"Ctrl+Shift+→"},{name:this.$cherry.locale.shortcutStatic11,key:"Ctrl+Backspace"},{name:this.$cherry.locale.shortcutStatic12,key:"Ctrl+Shift+M"},{name:this.$cherry.locale.shortcutStatic13,key:"Ctrl+".concat(this.$cherry.locale.leftMouseButton)},{name:this.$cherry.locale.shortcutStatic14,key:"Ctrl+Shift+L"},{name:this.$cherry.locale.shortcutStatic16,key:"Alt+F3"},{name:this.$cherry.locale.shortcutStatic17,key:"Ctrl+Z"},{name:this.$cherry.locale.shortcutStatic18,key:"Ctrl+Y"}],n=[],r=0;r\n
    '.concat(o.name,'
    \n
    ')).call(i,o.key.replace(/\+/g,'+'),"\n
    \n \n "))}return oA(e='
    \n
    '.concat(this.$cherry.locale.shortcutStaticTitle,'
    \n
      ')).call(e,n.join(""),"
    \n
    ")}},{key:"show",value:function(){this.dom.style.removeProperty("display");var e=this.dom.querySelector("#".concat(this.shortcutUlId));e instanceof HTMLUListElement&&e.addEventListener("dblclick",this.handleDbClick);var t=this.dom.querySelector(".j-shortcut-settings-disable-btn");t instanceof HTMLElement&&t.addEventListener("click",this.clickSettingsDisableBtn);var n=this.dom.querySelector(".j-shortcut-settings-recover-btn");n instanceof HTMLElement&&n.addEventListener("click",this.clickSettingsRecoverBtn)}},{key:"hide",value:function(){this.dom.style.display="none";var e=this.dom.querySelector("#".concat(this.shortcutUlId));e instanceof HTMLUListElement&&e.removeEventListener("dblclick",this.handleDbClick);var t=this.dom.querySelector(".j-shortcut-settings-disable-btn");t instanceof HTMLElement&&t.removeEventListener("click",this.clickSettingsDisableBtn);var n=this.dom.querySelector(".j-shortcut-settings-recover-btn");n instanceof HTMLElement&&n.removeEventListener("click",this.clickSettingsRecoverBtn)}},{key:"isShow",value:function(){return"block"===this.dom.style.display}},{key:"isHide",value:function(){return"none"===this.dom.style.display}},{key:"toggle",value:function(e){if(!(e instanceof HTMLElement))throw new Error("settingsDom must be an instance of HTMLElement, but got: ".concat(e));var t=e.getBoundingClientRect(),n=this.$cherry.wrapperDom.getBoundingClientRect();if(this.isHide()){this.dom.style.left="".concat(t.left-n.left+t.width/2,"px"),this.dom.style.top="".concat(t.top-n.top+t.height,"px"),this.show();var r=this.dom.getBoundingClientRect();return this.dom.style.marginLeft="0px",this.dom.style.left="".concat(t.left-n.left+t.width/2-r.width/2,"px"),void(r.left+r.width>window.innerWidth&&(this.dom.style.left="".concat(window.innerWidth-r.width-5,"px")))}return this.hide()}}])}();function hU(e,t,n){return t=za(t),Na(e,dU()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function dU(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(dU=function(){return!!e})()}var fU=function(e){function t(e){var n,r,i,o,a,A;eo(this,t),(A=hU(this,t,[e])).setName("settings","settings"),A.updateMarkdown=!1,A.engine=e.engine;var s=Tf("classicBr")?Ef():null===(n=A.engine.$cherry.options.engine.global)||void 0===n?void 0:n.classicBr,l=e.editor.options.defaultModel,c=s?"br":"normal",u=s?"classicBr":"normalBr",h="editOnly"===l?"preview":"previewClose",d="editOnly"===l?"togglePreview":"previewClose";return A.instanceId=e.instanceId,A.subMenuConfig=[{iconName:c,name:u,onclick:aA(r=A.bindSubClick).call(r,A,"classicBr")},{iconName:h,name:d,onclick:aA(i=A.bindSubClick).call(i,A,"previewClose")},{iconName:"",name:"hide",onclick:aA(o=A.bindSubClick).call(o,A,"toggleToolbar")}],A.attachEventListeners(),A.shortcutKeyMap=nA({},oA(a="".concat(cI,"-")).call(a,CI("0")),{hookName:A.name,sub:"toggleToolbar",aliasName:A.$cherry.locale.hide}),A}return tA(t,e),Da(t,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"bindSubClick",value:function(e,t,n,r){return n?this.onClick(t,e,r):this.onClick(t,e)}},{key:"togglePreviewBtn",value:function(e){var t=this,n=e?"previewClose":"preview",r=e?"previewClose":"togglePreview";if(this.subMenu){var i=document.querySelector('.cherry-dropdown[name="settings"]');if(i){var o=i.querySelector(".ch-icon-previewClose,.ch-icon-preview");o.classList.toggle("ch-icon-previewClose"),o.classList.toggle("ch-icon-preview"),o.title=this.locale[r],o.parentElement.innerHTML=o.parentElement.innerHTML.replace(/<\/i>.+$/,"".concat(this.locale[r]))}}else{var a;this.subMenuConfig=wf(a=this.subMenuConfig).call(a,(function(e){var i;return"previewClose"===e.iconName||"preview"===e.iconName?{iconName:n,name:r,onclick:aA(i=t.bindSubClick).call(i,t,"previewClose")}:e}))}}},{key:"attachEventListeners",value:function(){var e=this;this.$cherry.$event.on("previewerClose",(function(){e.togglePreviewBtn(!1)})),this.$cherry.$event.on("previewerOpen",(function(){e.togglePreviewBtn(!0)}))}},{key:"onClick",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if("classicBr"===(n=this.matchShortcutKey(n))){var r,i=!Ef();t=i,"undefined"!=typeof localStorage&&localStorage.setItem("cherry-classicBr",t?"true":"false"),this.engine.$cherry.options.engine.global.classicBr=i,UA(r=this.engine.hookCenter.hookList.paragraph).call(r,(function(e){e.classicBr=i}));var o=this.$cherry.wrapperDom.querySelector(".cherry-dropdown .ch-icon-normal");o=o||this.$cherry.wrapperDom.querySelector(".cherry-dropdown .ch-icon-br"),i?(o.classList.replace("ch-icon-normal","ch-icon-br"),o.parentElement.childNodes[1].textContent=this.locale.classicBr):(o.classList.replace("ch-icon-br","ch-icon-normal"),o.parentElement.childNodes[1].textContent=this.locale.normalBr),this.engine.$cherry.previewer.update(""),this.engine.$cherry.initText(this.engine.$cherry.editor.editor)}else if("previewClose"===n){if(this.editor.previewer.isPreviewerNeedFloat())return void(this.editor.previewer.isPreviewerFloat()?this.editor.previewer.recoverFloatPreviewer(!0):this.editor.previewer.floatPreviewer());this.editor.previewer.isPreviewerHidden()?this.editor.previewer.recoverPreviewer(!0):this.editor.previewer.editOnly(!0)}else if("toggleToolbar"===n)this.toggleToolbar();else if("shortcutKey"===n){var a,A,s,l;this.shortcutKeyConfigPanel||(this.shortcutKeyConfigPanel=new uU(this.engine.$cherry));var c=null===(a=this.engine)||void 0===a||null===(A=a.$cherry)||void 0===A||null===(s=A.toolbar)||void 0===s||null===(l=s.subMenus)||void 0===l?void 0:l[this.name];c instanceof HTMLElement&&(c.style.display="none"),this.shortcutKeyConfigPanel.toggle(this.dom)}return e}},{key:"matchShortcutKey",value:function(e){var t,n=vu(t=FQ(this.shortcutKeyMap)).call(t,(function(t){return t.sub===e}));if(void 0===n){var r=yI(this.$cherry.nameSpace),i=null==r?void 0:r[e];return i?String(i.sub):e}return n.sub}},{key:"toggleToolbar",value:function(){var e,t=this.engine.$cherry.wrapperDom;t instanceof HTMLDivElement&&(_h(e=t.className).call(e,"cherry--no-toolbar")>-1?(t.classList.remove("cherry--no-toolbar"),this.$cherry.$event.emit("toolbarShow")):(t.classList.add("cherry--no-toolbar"),this.$cherry.$event.emit("toolbarHide")))}}])}(zL);function pU(e,t,n){return t=za(t),Na(e,gU()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function gU(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(gU=function(){return!!e})()}var mU=function(e){function t(e){var n,r;return eo(this,t),(r=pU(this,t,[e])).setName("underline","underline"),r.shortcutKeyMap=nA({},oA(n="".concat(cI,"-")).call(n,CI("u")),{hookName:r.name,aliasName:r.$cherry.locale[r.name]}),r}return tA(t,e),Da(t,[{key:"$testIsUnderline",value:function(e){return/^\s*(\/)[\s\S]+(\1)/.test(e)}},{key:"onClick",value:function(e){var t=this,n=e||this.locale.underline;return this.isSelections||this.$testIsUnderline(n)||this.getMoreSelection(" /","/ ",(function(){var e=t.editor.editor.getSelection(),r=t.$testIsUnderline(e);return r&&(n=e),r})),this.$testIsUnderline(n)?n.replace(/(^)(\s*)(\/)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb((function(){t.setLessSelection(" /","/ ")})),n.replace(/(^)([^\n]+)($)/gm,"$1 /$2/ $3"))}}])}(zL);function vU(e,t,n){return t=za(t),Na(e,yU()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function yU(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(yU=function(){return!!e})()}var bU=function(e){function t(e){var n;return eo(this,t),(n=vU(this,t,[e])).setName("switchPreview"),n.instanceId=e.instanceId,n.attachEventListeners(),n}return tA(t,e),Da(t,[{key:"attachEventListeners",value:function(){var e=this;this.$cherry.$event.on("toolbarHide",(function(){e.dom.textContent=e.locale.switchEdit})),this.$cherry.$event.on("toolbarShow",(function(){e.dom.textContent=e.locale.switchPreview}))}},{key:"onClick",value:function(){this.editor.previewer.isPreviewerHidden()?(this.editor.previewer.previewOnly(),this.dom.parentElement.parentElement.classList.add("preview-only"),this.dom.textContent=this.locale.switchEdit):(this.editor.previewer.editOnly(!0),this.dom.parentElement.parentElement.classList.remove("preview-only"),this.dom.textContent=this.locale.switchPreview)}}])}(zL);function wU(e,t){var n=void 0!==fd&&pd(e)||e["@@iterator"];if(!n){if(gd(e)||(n=function(e,t){if(e){var n;if("string"==typeof e)return BU(e,t);var r=Hh(n={}.toString.call(e)).call(n,8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?zu(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?BU(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,A=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){A=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(A)throw o}}}}function BU(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,A=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){A=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(A)throw o}}}}function SU(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,A=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){A=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(A)throw o}}}}function FU(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n")}}])}(zL);function NU(e,t,n){return t=za(t),Na(e,RU()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function RU(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(RU=function(){return!!e})()}var PU=function(e){function t(e){var n;return eo(this,t),(n=NU(this,t,[e])).setName("hr","line"),n}return tA(t,e),Da(t,[{key:"onClick",value:function(e){return"".concat(e,"\n\n---\n")}}])}(zL),$U=function(){return Da((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};eo(this,e),nA(this,"formulaConfig",{toolbar:{title:"快捷工具",subCategory:{sqrt:{title:"根式角标",formulas:[{name:"根式 Radicals",img:"",latex:""},{name:"",img:'',latex:"\\sqrt[n]{x^{a}}"},{name:"上下标 Sub&Super",img:"",latex:""},{name:"",img:'',latex:"\\sideset{_1^2}{_3^4}X_a^b"}]},limit:{title:"极限对数",formulas:[{name:"极限 Limits",img:"",latex:""},{name:"",img:'',latex:"\n\\lim_{x \\to \\infty} a"},{name:"",img:'',latex:"\\log_{a}{b}"}]}}},template:{title:"公式模板",subCategory:{algebra:{title:"代数",formulas:[{name:"",img:'',latex:"\\sqrt{a^2+b^2}"},{name:"",img:'',latex:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{name:"",img:'',latex:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{name:"",img:'',latex:"\n\\left\\{\\begin{matrix}\n x=a + r\\text{cos}\\theta \\\\\n y=b + r\\text{sin}\\theta \n\\end{matrix}\\right."}]},array:{title:"矩阵",formulas:[{name:"",img:'',latex:"\n\\begin{pmatrix}\n 1 & 0 \\\\\n 0 & 1\n\\end{pmatrix}"},{name:"",img:'',latex:"\n\\begin{pmatrix}\n a_{11} & \\cdots & a_{1n} \\\\\n \\vdots & \\ddots & \\vdots \\\\\n a_{m1} & \\cdots & a_{mn}\n\\end{pmatrix}"},{name:"",img:'',latex:"\nA_{m\\times n}=\n\\begin{bmatrix}\n a_{11}& a_{12}& \\cdots & a_{1n} \\\\\n a_{21}& a_{22}& \\cdots & a_{2n} \\\\\n \\vdots & \\vdots & \\ddots & \\vdots \\\\\n a_{m1}& a_{m2}& \\cdots & a_{mn}\n\\end{bmatrix}\n=\\left [ a_{ij}\\right ]"},{name:"",img:'',latex:"\n\\mathbf{V}_1 \\times \\mathbf{V}_2 =\n\\begin{vmatrix}\n \\mathbf{i}& \\mathbf{j}& \\mathbf{k} \\\\\n \\frac{\\partial X}{\\partial u}& \\frac{\\partial Y}{\\partial u}& 0 \\\\\n \\frac{\\partial X}{\\partial v}& \\frac{\\partial Y}{\\partial v}& 0 \\\\\n\\end{vmatrix}"}]}}}}),nA(this,"showLatexLive",!0),TA(t).length&&(this.formulaConfig=t.templateConfig||this.formulaConfig,this.showLatexLive=t.showLatexLive),this.init(),this.initEventListeners()}),[{key:"afterClick",value:function(e){}},{key:"generateBubbleFormulaHtmlStr",value:function(){var e,t,n=_Q(this.formulaConfig||{}),r=wf(n).call(n,(function(e,t){var n,r,i=Uh(e,2),o=i[0],a=i[1].title;return oA(n=oA(r='
  • ')).call(n,a,"
  • ")})).join(""),i='
      '.concat(r,"
    "),o=wf(n).call(n,(function(e,t){var n,r,i,o,a=Uh(e,2),A=a[0],s=a[1],l=null===(n=_Q((null==s?void 0:s.subCategory)||{}))||void 0===n?void 0:wf(n).call(n,(function(e){var t,n,r,i,o,a,A=Uh(e,2),s=A[0],l=A[1],c=null==l||null===(t=l.formulas)||void 0===t?void 0:wf(t).call(t,(function(e){var t,n;if(""===e.latex)return'
    '.concat(e.name,"
    ");var r=e.img||"";return oA(t=oA(n='
    ')).call(t,r||e.name,"
    ")})).join(""),u=oA(n='
    ')).call(n,c,"
    "),h=oA(r='");return oA(i=oA(o=oA(a='
    ')).call(o,h)).call(i,u,"
    ")})).join("");return oA(r=oA(i=oA(o='
    ')).call(r,l,"
    ")})).join(""),a=this.showLatexLive?'
    ':"";return oA(e=oA(t="".concat(i)).call(t,o)).call(e,a)}},{key:"init",value:function(){TA(this.formulaConfig).length&&(this.dom=document.createElement("div"),this.dom.className=["cherry-dropdown","cherry-insert-formula","cherry-insert-formula-wrappler"].join(" "),this.dom.innerHTML=this.generateBubbleFormulaHtmlStr(),this.dom.style.display="none")}},{key:"show",value:function(e){this.dom.style.removeProperty("display"),this.afterClick=e}},{key:"hide",value:function(){this.dom.style.display="none"}},{key:"isShow",value:function(){return"block"===this.dom.style.display}},{key:"isHide",value:function(){return"none"===this.dom.style.display}},{key:"initEventListeners",value:function(){var e,t,n,r=this;null===(e=this.dom.querySelector(".cherry-insert-formula-tabs"))||void 0===e||e.addEventListener("click",aA(t=this.handleClickFormulaTabs).call(t,this)),null===(n=this.dom.querySelectorAll(".cherry-insert-formula-categary__func-item"))||void 0===n||UA(n).call(n,(function(e){var t;return null==e?void 0:e.addEventListener("click",aA(t=r.handleClickFormulaSelect).call(t,r))}))}},{key:"handleClickFormulaTabs",value:function(e){e.preventDefault(),e.stopPropagation();var t=e.target;if(t instanceof HTMLLIElement||t instanceof HTMLSpanElement){var n=t instanceof HTMLSpanElement?t.parentElement:t,r=n.dataset.name,i=document.querySelector(".cherry-insert-formula-select[data-name=".concat(r,"]")),o=document.querySelector(".cherry-insert-formula-tab.active"),a=document.querySelector(".cherry-insert-formula-select.active");null==o||o.classList.remove("active"),null==a||a.classList.remove("active"),n.classList.add("active"),i.classList.add("active")}}},{key:"handleClickFormulaSelect",value:function(e){e.preventDefault(),e.stopPropagation();var t=e.target;if(t instanceof HTMLElement){var n=t.dataset.formulaCode,r=void 0===n?"":n;this.afterClick(r),this.hide()}}}])}();function KU(e,t,n){return t=za(t),Na(e,XU()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function XU(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(XU=function(){return!!e})()}var VU=function(e){function t(e){var n,r,i,o,a;return eo(this,t),(a=KU(this,t,[e])).setName("formula","insertFormula"),a.subBubbleFormulaMenu=new $U(null==e||null===(n=e.options)||void 0===n||null===(r=n.toolbars)||void 0===r||null===(i=r.config)||void 0===i?void 0:i.formula),e.editor.options.wrapperDom.appendChild(a.subBubbleFormulaMenu.dom),a.catchOnce="",a.shortcutKeyMap=nA({},oA(o="".concat(cI,"-")).call(o,CI("m")),{hookName:a.name,aliasName:a.$cherry.locale[a.name]}),a}return tA(t,e),Da(t,[{key:"onClick",value:function(e){var t=this;if(this.subBubbleFormulaMenu.isHide()||!this.hasCacheOnce()){var n=this.dom.getBoundingClientRect();return this.subBubbleFormulaMenu.dom.style.left="".concat(n.left+n.width,"px"),this.subBubbleFormulaMenu.dom.style.top="".concat(n.top+n.height,"px"),this.subBubbleFormulaMenu.show((function(n){var r,i,o=/\n/.test(n)?"".concat(/\n$/.test(e)?e:"".concat(e,"\n"),"$$"):"".concat(e," $ "),a=/\n/.test(n)?"\n$$ ":" $ ";t.registerAfterClickCb((function(){t.setLessSelection(o,a)}));var A=oA(r=oA(i="".concat(o)).call(i,n)).call(r,a);t.setCacheOnce(A),t.fire(null)})),this.updateMarkdown=!1,!1}return this.getAndCleanCacheOnce()}}])}(zL);function GU(e,t,n){return t=za(t),Na(e,jU()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function jU(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(jU=function(){return!!e})()}var WU=function(e){function t(e){var n,r;return eo(this,t),(r=GU(this,t,[e])).setName("link","link"),r.shortcutKeyMap=nA({},oA(n="".concat(cI,"-")).call(n,CI("l")),{hookName:r.name,aliasName:r.$cherry.locale[r.name]}),r}return tA(t,e),Da(t,[{key:"onClick",value:function(e){var t;if(/^http/.test(e))return oA(t="[".concat(this.locale.link,"](")).call(t,e,")");var n=e||this.locale.link;return"[".concat(n,"](http://url.com) ")}}])}(zL);function zU(e,t,n){return t=za(t),Na(e,qU()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function qU(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(qU=function(){return!!e})()}var JU=function(e){function t(e){var n;return eo(this,t),(n=zU(this,t,[e])).setName("table","table"),n.subBubbleTableMenu=new JI({row:9,col:9}),e.editor.options.wrapperDom.appendChild(n.subBubbleTableMenu.dom),n.catchOnce="",n}return tA(t,e),Da(t,[{key:"onClick",value:function(e){var t=this;if("none"===this.subBubbleTableMenu.dom.style.display||!this.hasCacheOnce()){var n=this.dom.getBoundingClientRect();return this.subBubbleTableMenu.dom.style.left="".concat(n.left+n.width,"px"),this.subBubbleTableMenu.dom.style.top="".concat(n.top+n.height,"px"),this.subBubbleTableMenu.show((function(n,r){var i,o,a,A=jh(" Header |").call(" Header |",r),s=jh(" ------ |").call(" ------ |",r),l="\n|".concat(jh(" Sample |").call(" Sample |",r)),c=oA(i=oA(o=oA(a="".concat(e,"\n\n|")).call(a,A,"\n|")).call(o,s)).call(i,jh(l).call(l,n),"\n\n");t.setCacheOnce(c),t.fire(null)})),this.updateMarkdown=!1,!1}return this.getAndCleanCacheOnce()}}])}(zL);function YU(e,t,n){return t=za(t),Na(e,ZU()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function ZU(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(ZU=function(){return!!e})()}var e_=function(e){function t(e){var n;return eo(this,t),(n=YU(this,t,[e])).setName("toc","toc"),n}return tA(t,e),Da(t,[{key:"onClick",value:function(e){return"".concat(e,"\n\n[[toc]]\n")}}])}(zL);function t_(e,t,n){return t=za(t),Na(e,n_()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function n_(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(n_=function(){return!!e})()}var r_=function(e){function t(e){var n;return eo(this,t),(n=t_(this,t,[e])).setName("lineTable","table"),n}return tA(t,e),Da(t,[{key:"onClick",value:function(e){var t;return oA(t="".concat(e,"\n\n")).call(t,["| :line: {x,y} | a | b | c |","| :-: | :-: | :-: | :-: |","| x | 1 | 2 | 3 |","| y | 2 | 4 | 6 |","| z | 7 | 5 | 3 |"].join("\n"),"\n\n")}}])}(zL);function i_(e,t,n){return t=za(t),Na(e,o_()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function o_(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(o_=function(){return!!e})()}var a_=function(e){function t(e){var n;return eo(this,t),(n=i_(this,t,[e])).setName("brTable","table"),n}return tA(t,e),Da(t,[{key:"onClick",value:function(e){var t;return oA(t="".concat(e,"\n\n")).call(t,["| :bar: {x,y} | a | b | c |","| :-: | :-: | :-: | :-: |","| x | 1 | 2 | 3 |","| y | 2 | 4 | 6 |","| z | 7 | 5 | 3 |"].join("\n"),"\n\n")}}])}(zL);function A_(e,t){var n=void 0!==fd&&pd(e)||e["@@iterator"];if(!n){if(gd(e)||(n=function(e,t){if(e){var n;if("string"==typeof e)return s_(e,t);var r=Hh(n={}.toString.call(e)).call(n,8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?zu(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s_(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,A=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){A=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(A)throw o}}}}function s_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,A=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){A=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(A)throw o}}}}function d_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,A=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){A=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(A)throw o}}}}function v_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:"";return this.$cherry.$event.emit("changeMainTheme",t),Qf(this.$cherry,t),this.updateMarkdown=!1,""}}])}(zL);function x_(e,t,n){return t=za(t),Na(e,Q_()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function Q_(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(Q_=function(){return!!e})()}var L_=function(e){function t(e){var n;return eo(this,t),(n=x_(this,t,[e])).setName("wordCount","wordCount"),n.noIcon=!0,n.countState=0,n.countEvent=new Event("count"),n}return tA(t,e),Da(t,[{key:"onClick",value:function(e){var t=this,n=this.$cherry.wrapperDom.querySelector(".cherry-toolbar-button.cherry-toolbar-wordCount");if(0===this.countState){n.addEventListener("count",(function(){var e,r,i,o,a,A,s,l,c=t.$cherry.getMarkdown(),u=t.wordCount(c),h=u.characters,d=u.words,f=u.paragraphs,p=t.$cherry.locale;switch(t.countState){case 0:n.innerHTML=p.wordCount;break;case 1:n.innerHTML=oA(e="".concat(p.wordCountC," ")).call(e,h);break;case 2:n.innerHTML=oA(r="".concat(p.wordCountW," ")).call(r,d);break;case 3:n.innerHTML=oA(i="".concat(p.wordCountP," ")).call(i,f);break;case 4:n.innerHTML=oA(o=oA(a=oA(A=oA(s=oA(l="".concat(p.wordCountC," ")).call(l,h,"   ")).call(s,p.wordCountW," ")).call(A,d,"   ")).call(a,p.wordCountP," ")).call(o,f)}}));var r=null;this.editor.editor.on("change",(function(){r&&clearTimeout(r),r=gA((function(){n.dispatchEvent(t.countEvent),r=null}),500)}))}return this.countState+=1,this.countState>4&&(this.countState=0),n.dispatchEvent(this.countEvent),e}},{key:"wordCount",value:function(e){var t,n,r=/[\u4e00-\u9fa5]|[\u3001\u3002\uff01\uff0c\uff1b\uff1a\u201c\u201d\u2018\u2019\u300a\u300b\u3008\u3009\u3010\u3011\u300e\u300f\u300c\u300d\uff08\uff09\u2014\u2026\u2013\uff0e]/g;return{characters:e.replace(/\n|\s/g,"").length,words:(e.match(r)||[]).length+Di(t=e.replace(r," ").split(/[\s\n]+/)).call(t,Boolean).length,paragraphs:Di(n=e.split(/\n{2,}/)).call(n,(function(e){return""!==Lu(e).call(e)})).length}}}])}(zL);function I_(e,t,n){return t=za(t),Na(e,F_()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function F_(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(F_=function(){return!!e})()}var U_=function(e){function t(e){var n;return eo(this,t),(n=I_(this,t,[e])).previewer=e.previewer,n.updateMarkdown=!1,n.setName("mobilePreview","phone"),n}return tA(t,e),Da(t,[{key:"onClick",value:function(){this.previewer.removeScroll();var e=this.previewer.getDomContainer();this.previewer.isMobilePreview?e.parentNode.innerHTML=e.innerHTML:e.innerHTML="
    ".concat(e.innerHTML,"
    "),this.previewer.isMobilePreview=!this.previewer.isMobilePreview,this.previewer.bindScroll()}}])}(zL);function __(e,t,n){return t=za(t),Na(e,M_()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function M_(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(M_=function(){return!!e})()}var H_=function(e){function t(e){var n;return eo(this,t),(n=__(this,t,[e])).previewer=e.previewer,n.isLoading=!1,n.updateMarkdown=!1,n.setName("copy","copy"),n.lastIconOuterHtml="",n}return tA(t,e),Da(t,[{key:"adaptWechat",value:(n=ZQ(cL.mark((function e(t){var n,r,i,o,a;return cL.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=/(
    .*?<\/figure>)/g,r=t.replace(n,(function(e,t,n,r){var i,o;return oA(i=oA(o="".concat(t,"p")).call(o,n,"p")).call(i,r)})),i=/()/g,o=[],r.replace(i,(function(e,t,n){o.push(D_(n))})),e.next=7,wT.all(o);case 7:return a=e.sent,e.abrupt("return",r.replace(i,(function(e,t,n,r){return t+a.shift()+r})));case 9:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})},{key:"getStyleFromSheets",value:function(e){var t,n=Di(t=zu(document.styleSheets)).call(t,(function(t){var n;return t.cssRules[0]&&_h(n=t.cssRules[0].cssText).call(n,e)>-1}));return"")}},{key:"computeStyle",value:function(){return{mathStyle:this.getStyleFromSheets("mjx-container"),echartStyle:"",cherryStyle:this.getStyleFromSheets("cherry")}}},{key:"toggleLoading",value:function(){this.isLoading?(this.dom.lastElementChild.outerHTML=this.lastIconOuterHtml,this.lastIconOuterHtml=""):(this.lastIconOuterHtml=this.dom.lastElementChild.outerHTML,this.dom.lastElementChild.outerHTML='
    '),this.isLoading=!this.isLoading}},{key:"onClick",value:function(e){var t=this;this.toggleLoading();var n=document.querySelector(".cherry").getAttribute("data-inline-code-theme"),r=document.querySelector(".cherry").getAttribute("data-code-block-theme"),i=this.computeStyle(),o=i.mathStyle,a=i.echartStyle,A=i.cherryStyle,s=this.previewer.isPreviewerHidden()?this.previewer.options.previewerCache.html:this.previewer.getValue();this.adaptWechat(s).then((function(e){var i,s,l;uL(oA(i=oA(s=oA(l="".concat(o+a+A,'\n
    \n
    ')).call(i,e,"
    \n
    ")),t.toggleLoading()}))}}]);var n}(zL);function D_(e,t,n){return new wT((function(t){var r=document.createElement("CANVAS"),i=r.getContext("2d"),o=new Image;o.crossOrigin="Anonymous",o.onload=function(){r.height=o.height,r.width=o.width,i.drawImage(o,0,0);var e=r.toDataURL(n||"image/png");t(e),r=null},o.src=e}))}function O_(e,t,n){return t=za(t),Na(e,N_()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function N_(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(N_=function(){return!!e})()}var R_=function(e){function t(e){var n,r,i,o,a,A;return eo(this,t),(A=O_(this,t,[e])).setName("panel","tips"),A.panelRule=$d().reg,A.subMenuConfig=[{iconName:"tips",name:"tips",onclick:aA(n=A.bindSubClick).call(n,A,"primary")},{iconName:"info",name:"info",onclick:aA(r=A.bindSubClick).call(r,A,"info")},{iconName:"warning",name:"warning",onclick:aA(i=A.bindSubClick).call(i,A,"warning")},{iconName:"danger",name:"danger",onclick:aA(o=A.bindSubClick).call(o,A,"danger")},{iconName:"success",name:"success",onclick:aA(a=A.bindSubClick).call(a,A,"success")}],A}return tA(t,e),Da(t,[{key:"$getNameFromStr",value:function(e){var t=!1;return this.panelRule.lastIndex=0,e.replace(this.panelRule,(function(e,n,r,i){var o=/\s/.test(Lu(r).call(r))?Lu(r).call(r).replace(/\s.*$/,""):r;return t=o?Lu(o).call(o).toLowerCase():"",e})),t}},{key:"$getTitle",value:function(e){return this.panelRule.lastIndex=0,e.replace(this.panelRule,(function(e,t,n,r){var i=Lu(n).call(n);return/\s/.test(i)?i.replace(/[^\s]+\s/,""):""})),""}},{key:"onClick",value:function(e){var t,n,r=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=UI(this.editor.editor,e,"line",!0)||"内容",a=this.$getNameFromStr(o),A=this.$getTitle(o);return!1===a&&this.getMoreSelection("::: ","\n",(function(){var e=r.editor.editor.getSelection(),t=r.$getNameFromStr(e);return!1!==t&&(o=e,a=t,A=r.$getTitle(e)),!1!==t})),!1!==a?a===i?(this.panelRule.lastIndex=0,o.replace(this.panelRule,(function(e,t,n,r){var i,o=Lu(n).call(n),a=/\s/.test(o)?o.replace(/[^\s]+\s/,""):"";return oA(i="".concat(a,"\n")).call(i,r)}))):(this.registerAfterClickCb((function(){r.setLessSelection("::: ","\n")})),this.panelRule.lastIndex=0,o.replace(this.panelRule,(function(e,t,n,r){var o,a,A=Lu(n).call(n),s=/\s/.test(A)?A.replace(/[^\s]+\s/,""):"";return oA(o=oA(a="::: ".concat(i," ")).call(a,s,"\n")).call(o,r.replace(/\n+$/,""),"\n:::")}))):(this.registerAfterClickCb((function(){r.setLessSelection("::: ","\n")})),o=o.replace(/^\n+/,""),/\n/.test(o)?A||(A=o.replace(/\n[\w\W]+$/,""),o=o.replace(/^[^\n]+\n/,"")):A=A||"标题",oA(t=oA(n="::: ".concat(i," ")).call(n,A,"\n")).call(t,o,"\n:::").replace(/\n{2,}:::/g,"\n:::"))}}])}(zL);function P_(e,t,n){return t=za(t),Na(e,$_()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function $_(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return($_=function(){return!!e})()}var K_=function(e){function t(e){var n,r,i,o,a,A,s,l,c;eo(this,t),(c=P_(this,t,[e])).setName("align","align"),c.panelRule=$d().reg;var u=c.$cherry.locale;return c.subMenuConfig=[{iconName:"alignLeft",name:null!==(n=null==u?void 0:u.alignLeft)&&void 0!==n?n:"左对齐",onclick:aA(r=c.bindSubClick).call(r,c,"left")},{iconName:"alignCenter",name:null!==(i=null==u?void 0:u.alignCenter)&&void 0!==i?i:"居中",onclick:aA(o=c.bindSubClick).call(o,c,"center")},{iconName:"alignRight",name:null!==(a=null==u?void 0:u.alignRight)&&void 0!==a?a:"右对齐",onclick:aA(A=c.bindSubClick).call(A,c,"right")},{iconName:"alignJustify",name:null!==(s=null==u?void 0:u.alignJustify)&&void 0!==s?s:"两端对齐",onclick:aA(l=c.bindSubClick).call(l,c,"justify")}],c}return tA(t,e),Da(t,[{key:"$getTitle",value:function(){return" "}}])}(R_);function X_(e,t,n){return t=za(t),Na(e,V_()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function V_(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(V_=function(){return!!e})()}var G_=function(e){function t(e){var n;return eo(this,t),(n=X_(this,t,[e])).setName("justify","justify"),n}return tA(t,e),Da(t,[{key:"$getTitle",value:function(){return" "}}])}(K_);function j_(e,t,n){return t=za(t),Na(e,W_()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function W_(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(W_=function(){return!!e})()}var z_=function(e){function t(e){var n;return eo(this,t),(n=j_(this,t,[e])).setName("detail","insertFlow"),n.detailRule=Kd().reg,n}return tA(t,e),Da(t,[{key:"onClick",value:function(e){var t,n=this,r=UI(this.editor.editor,e,"line",!0)||this.$cherry.locale.detailDefaultContent;if(this.detailRule.lastIndex=0,this.detailRule.test(r)||this.getMoreSelection("+++ ","\n",(function(){var e=n.editor.editor.getSelection();n.detailRule.lastIndex=0;var t=n.detailRule.test(e);return!1!==t&&(r=e),!1!==t})),this.detailRule.lastIndex=0,this.detailRule.test(r))return this.detailRule.lastIndex=0,r.replace(this.detailRule,(function(e,t,n,r,i){var o;return oA(o="".concat(r,"\n")).call(o,i)}));(r=r.replace(/^\s+/,""),/\n/.test(r))||(r=oA(t="".concat(r,"\n")).call(t,r));return this.registerAfterClickCb((function(){n.setLessSelection("+++ ","\n")})),"+++ ".concat(r,"\n+++").replace(/\n{2,}\+\+\+/g,"\n+++")}}])}(zL);function q_(e,t,n){return t=za(t),Na(e,J_()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function J_(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(J_=function(){return!!e})()}var Y_=function(e){function t(e){var n;return eo(this,t),(n=q_(this,t,[e])).setName("draw.io","draw.io"),n.noIcon=!0,n}return tA(t,e),Da(t,[{key:"onClick",value:function(e){var t=this;if(!this.$cherry.options.drawioIframeUrl)return e;if(this.hasCacheOnce()){var n,r,i=this.getAndCleanCacheOnce(),o=i.xmlData,a=i.base64,A=oA(n="](".concat(a,"){data-type=drawio data-xml=")).call(n,encodeURI(o),"}");return this.registerAfterClickCb((function(){t.setLessSelection("![",A)})),oA(r="".concat("![","在预览区点击图片重新编辑draw.io")).call(r,A)}return vL(this.$cherry.options.drawioIframeUrl,this.$cherry.options.drawioIframeStyle,"",(function(e){t.setCacheOnce(e),t.fire(null)})),this.updateMarkdown=!1,e}}])}(zL);function Z_(e,t,n){return new wT((function(t){var r=document.createElement("CANVAS"),i=r.getContext("2d"),o=new Image;o.crossOrigin="Anonymous",o.onload=function(){r.height=o.height,r.width=o.width,i.drawImage(o,0,0);var e=r.toDataURL(n||"image/png");t(e),r=null},o.src=e}))}var eM=function(){var e=ZQ(cL.mark((function e(t){var n,r,i,o,a;return cL.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=/(
    .*?<\/figure>)/g,r=t.replace(n,(function(e,t,n,r){var i,o;return oA(i=oA(o="".concat(t,"p")).call(o,n,"p")).call(i,r)})),i=/()/g,o=[],r.replace(i,(function(e,t,n){return o.push(Z_(n)),e})),e.next=7,wT.all(o);case 7:return a=e.sent,r=(r=r.replace(/(]+)href="[^"]*"/g,"$1")).replace(/(]+style="[^">]*width:\s*)[^";]+(;[^>]*>)/g,"$1100%$2"),e.abrupt("return",r.replace(i,(function(e,t,n,r){return t+a.shift()+r})));case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),tM=function(){var e=ZQ(cL.mark((function e(t,n){return cL.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("string"==typeof t&&t){e.next=2;break}return e.abrupt("return","");case 2:e.t0=n,e.next="wechat"===e.t0?5:6;break;case 5:return e.abrupt("return",eM(t));case 6:throw new Error("platform not support");case 7:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),nM=tM;function rM(e,t){var n=TA(e);if(Qi){var r=Qi(e);t&&(r=Di(r).call(r,(function(t){return $i(e,t).enumerable}))),n.push.apply(n,r)}return n}function iM(e){for(var t=1;t".concat(wf(t=zu(e.cssRules)).call(t,(function(e){return e.cssText})).join(""),"")})).join("")}}])}(zL);function lM(e,t,n){return t=za(t),Na(e,cM()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function cM(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(cM=function(){return!!e})()}var uM=function(e){function t(e){var n,r,i,o;eo(this,t),(o=lM(this,t,[e])).noIcon=!0;o.changeLocale=(null==e||null===(n=e.options)||void 0===n||null===(r=n.toolbars)||void 0===r||null===(i=r.config)||void 0===i?void 0:i.changeLocale)||[{locale:"zh_CN",name:"中文"},{locale:"en_US",name:"English"},{locale:"ru_RU",name:"Русский"}],o.subMenuConfig=[],o.nameMap={};for(var a=0;a','','
    ','','','',"
    ",'
    ','','",'","
    ",'
    ','+','0 matches found.','','Aa','',"
    ",""].join("");t.innerHTML=n;var r=t.firstChild;return e.appendChild(r),r}},{key:"addStyle",value:function(){var e=document.createElement("style"),t=[".ace_search {","color: black;","background-color: #ddd;","border: 1px solid #cbcbcb;","border-top: 0 none;","max-width: 325px;","overflow: hidden;","margin: 0;","padding: 4px;","padding-right: 6px;","padding-bottom: 0;","position: absolute;","top: 0px;","z-index: 99;","white-space: normal;","font-size: 12px;","}",".ace_search.left {","border-left: 0 none;","border-radius: 0px 0px 5px 0px;","left: 0;","}",".ace_search.right {","border-radius: 0px 0px 0px 5px;","border-right: 0 none;","right: 0;","}",".ace_search_form, .ace_replace_form {","border-radius: 3px;","border: 1px solid #cbcbcb;","float: left;","margin-bottom: 4px;","overflow: hidden;","}",".ace_search_form.ace_nomatch {","outline: 1px solid red;","}",".ace_search_field {","background-color: white;","border-right: 1px solid #cbcbcb;","border: 0 none;","-webkit-box-sizing: border-box;","-moz-box-sizing: border-box;","box-sizing: border-box;","float: left;","height: 22px;","outline: 0;","padding: 0 7px;","width: 238px;","margin: 0;","}",".ace_searchbtn,",".ace_replacebtn {","background: #fff;","border: 0 none;","border-left: 1px solid #dcdcdc;","cursor: pointer;","float: left;","height: 22px;","padding: 0 5px;","margin: 0;","position: relative;","}",".ace_searchbtn:last-child,",".ace_replacebtn:last-child {","border-top-right-radius: 3px;","border-bottom-right-radius: 3px;","}",".ace_searchbtn:disabled {","background: none;","cursor: default;","}",".ace_searchbtn {","background-position: 50% 50%;","background-repeat: no-repeat;","width: 27px;","}",".ace_searchbtn.prev {","background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADFJREFUeNpiSU1NZUAC/6E0I0yACYskCpsJiySKIiY0SUZk40FyTEgCjGgKwTRAgAEAQJUIPCE+qfkAAAAASUVORK5CYII=); ","}",".ace_searchbtn.next {","background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADRJREFUeNpiTE1NZQCC/0DMyIAKwGJMUAYDEo3M/s+EpvM/mkKwCQxYjIeLMaELoLMBAgwAU7UJObTKsvAAAAAASUVORK5CYII=); ","}",".ace_searchbtn_close {","background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;","border-radius: 50%;","border: 0 none;","color: #656565;","cursor: pointer;","float: right;","font: 16px/16px Arial;","height: 14px;","margin: 5px 1px 9px 5px;","padding: 0;","text-align: center;","width: 14px;","}",".ace_searchbtn_close:hover {","background-color: #656565;","background-position: 50% 100%;","color: white;","}",".ace_replacebtn.prev {","width: 54px","}",".ace_replacebtn.next {","width: 27px","}",".ace_button {","margin-left: 2px;","cursor: pointer;","-webkit-user-select: none;","-moz-user-select: none;","-o-user-select: none;","-ms-user-select: none;","user-select: none;","overflow: hidden;","opacity: 0.7;","border: 1px solid rgba(100,100,100,0.23);","padding: 1px;","-moz-box-sizing: border-box;","box-sizing: border-box;","color: black;","}",".ace_button:hover {","background-color: #eee;","opacity:1;","}",".ace_button:active {","background-color: #ddd;","}",".ace_button.checked {","border-color: #3399ff;","opacity:1;","}",".ace_search_options{","clear: both;","margin: 4px 0;","text-align: right;","-webkit-user-select: none;","-moz-user-select: none;","-o-user-select: none;","-ms-user-select: none;","user-select: none;","}",".replace_toggle{","float: left;","margin-top: -2px;","padding: 0 5px;"," }",".ace_search_counter{","float: left;","font-family: arial;","padding: 0 8px;","}","button svg,path {","pointer-events: none;","}"].join("");e.setAttribute("data-name","js-searchbox"),e.textContent=t,document.head.appendChild(e)}},{key:"initElements",value:function(e){this.searchBox=e.querySelector(".ace_search_form"),this.replaceBox=e.querySelector(".ace_replace_form"),this.searchOptions=e.querySelector(".ace_search_options"),this.regExpOption=e.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=e.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=e.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field")}},{key:"bindKeys",value:function(){var e=this,t={"Ctrl-F|Cmd-F|Ctrl-H|Command-Alt-F":function(){e.isReplace=!e.isReplace;var t=e.isReplace;e.replaceBox.style.display=t?"":"none",e[t?"replaceInput":"searchInput"].focus()},"Ctrl-G|Cmd-G":function(){e.findNext()},"Ctrl-Shift-G|Cmd-Shift-G":function(){e.findPrev()},Esc:function(){gA((function(){e.hide()}))},Enter:function(){e.activeInput===e.replaceInput&&e.replace(),e.findNext()},"Shift-Enter":function(){e.activeInput===e.replaceInput&&e.replace(),e.findPrev()},"Alt-Enter":function(){e.activeInput===e.replaceInput&&es(e).call(e),e.findAll()},Tab:function(){this.activeInput===this.replaceInput?this.searchInput.focus():this.replaceInput.focus()}};this.element.addEventListener("keydown",(function(e){var n;cy(n=TA(t)).call(n,(function(n){var r=function(e,t){var n,r={BACKSPACE:8,TAB:9,ENTER:13,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,UP:38,DOWN:40,INSERT:45,DELETE:46,INSERT_MAC:96,ASTERISK:106,PLUS:107,MINUS:109,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,SLASH:191,TRA:192,BACKSLASH:220},i=cy(n=e.split("|")).call(n,(function(e){var n,i=cy(n=e.split("-")).call(n,(function(e){var n,i;switch(e){case"Ctrl":i=t.ctrlKey;break;case"Shift":i=t.shiftKey;break;case"Alt":i=t.altKey;break;case"Cmd":i=t.metaKey;break;default:1===e.length?i=t.keyCode===e.charCodeAt(0):cy(n=TA(r)).call(n,(function(n){return e.toUpperCase()===n&&(i=t.keyCode===r[n]),n}))}return!i}));return!i}));return i}(n,e);return r&&(e.stopPropagation(),e.preventDefault(),t[n](e)),r}))}))}},{key:"$syncOptions",value:function(){gM(this.regExpOption,"checked",this.regExpOption.checked),gM(this.wholeWordOption,"checked",this.wholeWordOption.checked),gM(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked),vu(this).call(this,!1,!1)}},{key:"find",value:function(e,t){var n=this,r=this.searchInput.value,i={skipCurrent:e,backwards:t,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked};this.$find(r,i,(function(e){var t=e.matches(!1,e.from());n.cm.setSelection(t.from,t.to)}))}},{key:"$find",value:function(e,t,n){var r,i,o,a,A,s,l=this.cm;if(!e)return this.clearSearch(l),void this.updateCount();var c=e,u=t,h=!0,d=u.caseSensitive,f=u.regExp,p=u.wholeWord;f&&(c=c.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")),p&&(c=d?RegExp("\\b".concat(c,"\\b")):RegExp("\\b".concat(c,"\\b"),"i")),f&&(c=RegExp(c)),this.clearSearch(l),this.doSearch(l,c,d),this.updateCount(),s=u.backwards?u.skipCurrent?"from":"to":u.skipCurrent?"to":"from";var g=l.getCursor(s),m=l.getSearchCursor(c,g,!d);a=aA(r=m.findNext).call(r,m),A=aA(i=m.findPrevious).call(i,m),u.backwards&&!A()?(h=a())&&(l.setCursor(l.doc.size-1,0),this.$find(e,t,n),o=!0):u.backwards||a()||(h=A())&&(l.setCursor(0,0),this.$find(e,t,n),o=!0);var v=!h&&this.searchInput.value;gM(this.searchBox,"ace_nomatch",v),!o&&h&&n(m)}},{key:"findNext",value:function(){vu(this).call(this,!0,!1)}},{key:"findPrev",value:function(){vu(this).call(this,!0,!0)}},{key:"findAll",value:function(){var e=this.cm,t=this.searchInput.value,n=this.searchInput.value;gM(this.searchBox,"ace_nomatch",n),e.showMatchesOnScrollbar&&e.showMatchesOnScrollbar(t),this.hide()}},{key:"replace",value:function(){var e=this.cm,t=e.getOption("readOnly"),n=!!e.getSelection();!t&&n&&e.replaceSelection(this.replaceInput.value,"start"),this.updateCount()}},{key:"replaceAndFindNext",value:function(){this.cm.getOption("readOnly")||(this.replace(),this.findNext())}},{key:"replaceAll",value:function(){var e,t,n=this.cm,r=this.searchInput.value,i=this.replaceInput.value,o=RegExp(r,this.caseSensitiveOption.checked?"g":"gi");this.wholeWordOption.checked&&!this.regExpOption.checked&&(o=this.caseSensitiveOption.checked?RegExp("\\b".concat(r,"\\b"),"g"):RegExp("\\b".concat(r,"\\b"),"gi")),!n.getOption("readOnly")&&n.getSelection()&&(t=n.getCursor(),e=(e=n.getValue()).replace(o,i),n.setValue(e),n.setCursor(t)),this.updateCount()}},{key:"toggleReplace",value:function(){var e=this.cm.display.wrapper;"+"===e.parentElement.querySelector("[action=toggleReplace]").innerText?(e.parentElement.querySelector("[action=toggleReplace]").innerText="-",this.replaceBox.style.display="",this.isReplace=!0):(e.parentElement.querySelector("[action=toggleReplace]").innerText="+",this.replaceBox.style.display="none",this.isReplace=!1)}},{key:"hide",value:function(){var e=this.cm;this.clearSearch(e),this.element.style.display="none",e.focus()}},{key:"isVisible",value:function(){return"none"!==this.element.style.display}},{key:"show",value:function(e,t){(this.element.style.display="",this.replaceBox.style.display=t?"":"none",this.isReplace=t,e)&&(this.searchInput.value=e,vu(this).call(this,!1,!1));this.searchInput.focus(),this.searchInput.select()}},{key:"isFocused",value:function(){var e=document.activeElement;return e===this.searchInput||e===this.replaceInput}},{key:"doSearch",value:function(e,t,n){var r=this.getSearchState(e),i=t;i&&i!==r.queryText&&(this.startSearch(e,r,i,n),r.posFrom=e.getCursor(),r.posTo=r.posFrom)}},{key:"parseString",value:function(e){return e.replace(/\\([nrt\\])/g,(function(e,t){return"n"===t?"\n":"r"===t?"\r":"t"===t?"\t":"\\"===t?"\\":e}))}},{key:"parseQuery",value:function(e){var t=("object"===Ua(e)?e.toString():e).match(/^\/(.*)\/([a-z]*)$/),n=e;if(t)try{var r;n=new RegExp(t[1],-1===_h(r=t[2]).call(r,"i")?"":"i")}catch(e){}else n=this.parseString(e);return("string"==typeof n?""===n:n.test(""))&&(n=/x^/),n}},{key:"startSearch",value:function(e,t,n,r){t.queryText=n,t.query=this.parseQuery(n),e.removeOverlay(t.overlay,this.queryCaseInsensitive(t.query,r)),t.overlay=this.searchOverlay(t.query,this.queryCaseInsensitive(t.query,r)),e.addOverlay(t.overlay),e.showMatchesOnScrollbar&&(t.annotate&&(t.annotate.clear(),t.annotate=null),t.annotate=e.showMatchesOnScrollbar(t.query,this.queryCaseInsensitive(t.query,r)))}},{key:"queryCaseInsensitive",value:function(e,t){return"string"==typeof e&&!t}},{key:"searchOverlay",value:function(e,t){var n=e;return"string"==typeof e?n=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):e.global||(n=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(e){n.lastIndex=e.pos;var t=n.exec(e.string);if(t&&t.index===e.pos)return e.pos+=t[0].length||1,"searching";t?e.pos=t.index:e.skipToEnd()}}}},{key:"getSearchState",value:function(e){return e.state.search||(e.state.search={posFrom:null,posTo:null,lastQuery:null,query:null,overlay:null})}},{key:"clearSearch",value:function(e){var t=this;e.operation((function(){var n=t.getSearchState(e);n.lastQuery=n.query,n.query&&(n.query=null,n.queryText=null,e.removeOverlay(n.overlay),n.annotate&&(n.annotate.clear(),n.annotate=null))}))}},{key:"updateCount",value:function(){var e,t=this.cm,n=this.searchInput.value,r=[];n&&(n=n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),e=this.caseSensitiveOption.checked?RegExp(n,"g"):RegExp(n,"gi"),this.wholeWordOption.checked&&(e=this.caseSensitiveOption.checked?RegExp("\\b".concat(n,"\\b"),"g"):RegExp("\\b".concat(n,"\\b"),"gi")),this.regExpOption.checked&&(e=RegExp(n,"gi")),r=t.getValue().match(e));var i=r?r.length:0,o=t.display.wrapper.parentElement.querySelector(".ace_search_counter");o&&(o.innerText="".concat(i," matches found.")),0===i&&t.setSelection({ch:0,line:0},{ch:0,line:0})}}])}();function gM(e,t,n){e.classList[n?"add":"remove"](t)}function mM(e,t,n){return t=za(t),Na(e,vM()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function vM(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(vM=function(){return!!e})()}var yM=function(e){function t(e){var n,r;return eo(this,t),(r=mM(this,t,[e])).setName("search","search"),r.updateMarkdown=!1,r.shortcutKeyMap=nA({},oA(n="".concat(cI,"-")).call(n,CI("f")),{hookName:r.name,aliasName:e.locale[r.name]}),r.searchBox=new pM,r.searchBoxInit=!1,r}return tA(t,e),Da(t,[{key:"onClick",value:function(e){this.searchBoxInit||(this.searchBoxInit=!0,this.searchBox.init(this.$cherry.editor.editor)),this.searchBox.isVisible()?this.searchBox.hide():this.searchBox.show(e,!0)}}])}(zL),bM={bold:EI,italic:QI,"|":FI,strikethrough:HI,sub:NI,sup:$I,header:zI,insert:eF,list:rF,ol:aF,ul:lF,checklist:hF,graph:bF,size:CF,h1:EF,h2:QF,h3:FF,color:VI,quote:MF,quickTable:OF,togglePreview:PF,code:ZF,inlineCode:nU,codeTheme:oU,export:sU,settings:fU,fullScreen:XF,mobilePreview:U_,copy:H_,undo:jF,redo:qF,underline:mU,switchModel:bU,image:TU,audio:LU,video:MU,br:OU,hr:PU,formula:VU,link:WU,table:JU,toc:e_,lineTable:r_,barTable:a_,pdf:u_,word:w_,ruby:k_,theme:S_,file:g_,panel:R_,justify:G_,align:K_,detail:z_,drawIo:Y_,wordCount:L_,publish:sM,changeLocale:uM,shortcutKey:fM,search:yM},wM=function(){return Da((function e(t){eo(this,e),this.toolbar=t,this.hooks={},this.allMenusName=[],this.level1MenusName=[],this.level2MenusName={},this.menuOptionsKey=["name","icon","subMenu"],this.init()}),[{key:"$newMenu",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!this.hooks[e]){var n=t||{name:e,icon:e},r=this.toolbar.options,i=r.$cherry,o=r.customMenu;i.$currentMenuOptions=n,bM[e]?(this.allMenusName.push(e),this.hooks[e]=new bM[e](i)):null!=o&&o[e]&&(this.allMenusName.push(e),this.hooks[e]=new o[e](i))}}},{key:"init",value:function(){var e=this,t=this.toolbar.options.buttonConfig;UA(t).call(t,(function(t){if("string"==typeof t)e.level1MenusName.push(t),e.$newMenu(t);else if("object"===Ua(t)){var n=TA(t);if(1===n.length){var r,i,o,a=Uh(n,1)[0];if(Kb(r=e.menuOptionsKey).call(r,a))throw Error(oA(o="this menu key is not allowed: ".concat(a,", forbid menu key: ")).call(o,e.menuOptionsKey));e.level1MenusName.push(a),e.$newMenu(a),e.level2MenusName[a]=t[a],UA(i=t[a]).call(i,(function(t){e.$newMenu(t)}))}else{if(!t.name)return;e.level1MenusName.push(t.name),e.$newMenu(t.name,t)}}}))}}])}(),BM=function(){return Da((function e(t){eo(this,e),nA(this,"toolbarHandlers",{}),this.menus={},this.shortcutKeyMap={},this.subMenus={},this.currentActiveSubMenu=null,this.options={dom:document.createElement("div"),buttonConfig:["bold"],customMenu:[]},CA(this.options,t),this.$cherry=this.options.$cherry,this.instanceId=this.$cherry.instanceId,this.menus=new wM(this),this.drawMenus(),this.collectShortcutKey(),this.collectToolbarHandler(),this.init()}),[{key:"init",value:function(){var e=this;this.$cherry.$event.on("cleanAllSubMenus",(function(){return e.hideAllSubMenu()}))}},{key:"previewOnly",value:function(){this.options.dom.classList.add("preview-only"),this.$cherry.wrapperDom.classList.add("cherry--no-toolbar"),this.$cherry.$event.emit("toolbarHide")}},{key:"showToolbar",value:function(){this.options.dom.classList.remove("preview-only"),this.$cherry.wrapperDom.classList.remove("cherry--no-toolbar"),this.$cherry.$event.emit("toolbarShow")}},{key:"isHasLevel2Menu",value:function(e){return this.menus.level2MenusName[e]}},{key:"isHasConfigMenu",value:function(e){return this.menus.hooks[e].subMenuConfig||[]}},{key:"isHasSubMenu",value:function(e){return Boolean(this.isHasLevel2Menu(e)||this.isHasConfigMenu(e).length>0)}},{key:"drawMenus",value:function(){var e,t=this,n=document.createDocumentFragment();UA(e=this.menus.level1MenusName).call(e,(function(e){var r=t.menus.hooks[e].createBtn();"object"===("undefined"==typeof window?"undefined":Ua(window))&&"onpointerup"in window?(r.addEventListener("pointerdown",(function(){t.isPointerDown=!0}),!1),r.addEventListener("pointerup",(function(n){t.isPointerDown&&t.onClick(n,e),t.isPointerDown=!1}),!1)):r.addEventListener("click",(function(n){t.onClick(n,e)}),!1),t.isHasSubMenu(e)&&r.classList.add("cherry-toolbar-dropdown"),n.appendChild(r)})),this.appendMenusToDom(n)}},{key:"appendMenusToDom",value:function(e){var t=sd("div","toolbar-left");t.appendChild(e),this.options.dom.appendChild(t)}},{key:"setSubMenuPosition",value:function(e,t){var n=e.getMenuPosition();t.style.left="".concat(n.left+n.width/2,"px"),t.style.top="".concat(n.top+n.height,"px"),t.style.position=e.positionModel}},{key:"drawSubMenus",value:function(e){var t=this;this.subMenus[e]=sd("div","cherry-dropdown",{name:e}),this.setSubMenuPosition(this.menus.hooks[e],this.subMenus[e]);var n=this.isHasLevel2Menu(e);n&&UA(n).call(n,(function(n){var r=t.menus.hooks[n];if(void 0!==r&&"function"==typeof r.createBtn){var i=r.createBtn(!0);r.dom=r.dom?r.dom:t.menus.hooks[e].dom,i.addEventListener("click",(function(e){return t.onClick(e,n,!0)}),!1),t.subMenus[e].appendChild(i)}}));var r=this.isHasConfigMenu(e);r.length>0&&UA(r).call(r,(function(n){var r=t.menus.hooks[e].createSubBtnByConfig(n);null!=n&&n.disabledHideAllSubMenu||r.addEventListener("click",(function(){return t.hideAllSubMenu()}),!1),t.subMenus[e].appendChild(r)})),this.$cherry.wrapperDom.appendChild(this.subMenus[e])}},{key:"onClick",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.menus.hooks[t];i&&(this.isHasSubMenu(t)&&!r?this.toggleSubMenu(t):("function"==typeof i.hideOtherSubMenu?i.hideOtherSubMenu((function(){return n.hideAllSubMenu()})):this.hideAllSubMenu(),i.fire(e,t)))}},{key:"activeSubMenuItem",value:function(e){var t,n,r,i=this.subMenus[e],o=null===(t=this.menus.hooks)||void 0===t||null===(n=t[e])||void 0===n?void 0:n.getActiveSubMenuIndex(i);null==i||UA(r=i.querySelectorAll(".cherry-dropdown-item")).call(r,(function(e,t){e.classList.toggle("cherry-dropdown-item__selected",t===o)}))}},{key:"updateSubMenuPosition",value:function(){this.currentActiveSubMenu&&this.subMenus[this.currentActiveSubMenu]&&this.setSubMenuPosition(this.menus.hooks[this.currentActiveSubMenu],this.subMenus[this.currentActiveSubMenu])}},{key:"toggleSubMenu",value:function(e){if(!this.subMenus[e])return this.hideAllSubMenu(),this.drawSubMenus(e),this.subMenus[e].style.display="block",this.activeSubMenuItem(e),void(this.currentActiveSubMenu=e);"none"===this.subMenus[e].style.display?(this.hideAllSubMenu(),this.subMenus[e].style.display="block",this.setSubMenuPosition(this.menus.hooks[e],this.subMenus[e]),this.activeSubMenuItem(e),this.currentActiveSubMenu=e):(this.subMenus[e].style.display="none",this.currentActiveSubMenu=null)}},{key:"hideAllSubMenu",value:function(){var e;this.currentActiveSubMenu=null,UA(e=this.$cherry.wrapperDom.querySelectorAll(".cherry-dropdown")).call(e,(function(e){e.style.display="none"}))}},{key:"collectMenuInfo",value:function(e){this.toolbarHandlers=CA({},this.toolbarHandlers,e.toolbarHandlers),this.menus.hooks=CA({},e.menus.hooks,this.menus.hooks),(!this.options.shortcutKey||TA(this.options.shortcutKey).length<=0)&&(this.shortcutKeyMap=CA({},this.shortcutKeyMap,e.shortcutKeyMap))}},{key:"collectShortcutKey",value:function(){var e,t=this,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.$cherry.options.toolbars.shortcutKey&&TA(this.$cherry.options.toolbars.shortcutKey).length>0&&UA(e=_Q(this.$cherry.options.toolbars.shortcutKey)).call(e,(function(e){var n=Uh(e,2),r=n[0],i=n[1],o=r.replace(/Ctrl-/g,"Control-").replace(/-([A-Za-z])$/g,(function(e,t){return"-Key".concat(t.toUpperCase())})).replace(/-([0-9])$/g,"-Digit$1");t.shortcutKeyMap[o]={hookName:i,aliasName:t.$cherry.locale[i]||i}}));if(this.$cherry.options.toolbars.shortcutKeySettings.isReplace)this.shortcutKeyMap=this.$cherry.options.toolbars.shortcutKeySettings.shortcutKeyMap;else{var r,i;if(UA(r=this.menus.allMenusName).call(r,(function(e){var n,r;(null===(n=t.menus.hooks[e].shortcutKeys)||void 0===n||UA(n).call(n,(function(n){t.shortcutKeyMap[n]=e})),"object"===Ua(t.menus.hooks[e].shortcutKeyMap)&&t.menus.hooks[e].shortcutKeyMap)&&UA(r=_Q(t.menus.hooks[e].shortcutKeyMap)).call(r,(function(e){var n=Uh(e,2),r=n[0],i=n[1];r in t.shortcutKeyMap?console.error("The shortcut key ".concat(r," is already registered")):t.shortcutKeyMap[r]=i}))})),UA(i=_Q(this.$cherry.options.toolbars.shortcutKeySettings.shortcutKeyMap)).call(i,(function(e){var n=Uh(e,2),r=n[0],i=n[1];t.shortcutKeyMap[r]=i})),!n)return;var o=yI(this.$cherry.nameSpace);if(o){var a,A,s={};UA(a=_Q(this.shortcutKeyMap)).call(a,(function(e){var t,n=Uh(e,2),r=n[0],i=n[1];s[oA(t="".concat(i.hookName,"-")).call(t,i.aliasName)]=r})),UA(A=_Q(o)).call(A,(function(e){var n,r=Uh(e,2),i=r[0],o=r[1],a=oA(n="".concat(o.hookName,"-")).call(n,o.aliasName);s[a]&&delete t.shortcutKeyMap[s[a]],t.shortcutKeyMap[i]=o}))}}}},{key:"updateShortcutKeyMap",value:function(e,t){if(e===t)return!1;var n=this.shortcutKeyMap[e];if(!n)return!1;delete this.shortcutKeyMap[e],this.shortcutKeyMap[t]=n,vI(this.$cherry.nameSpace,this.shortcutKeyMap)}},{key:"collectToolbarHandler",value:function(){var e,t=this;this.toolbarHandlers=Zm(e=this.menus.allMenusName).call(e,(function(e,n){var r=t.menus.hooks[n];return r?(e[n]=function(e,t){"function"==typeof t&&dd.warn("MenuBase#onClick param callback is no longer supported. Please register the callback via MenuBase#registerAfterClickCb instead."),r.fire.call(r,void 0,e)},e):e}),{})}},{key:"matchShortcutKey",value:function(e){var t,n=pI(e),r=bI(n);return!(null===(t=this.shortcutKeyMap)||void 0===t||!t[r])}},{key:"fireShortcutKey",value:function(e){var t;if(!mI(this.$cherry.nameSpace))return!1;var n,r=pI(e),i=bI(r),o=null===(t=this.shortcutKeyMap[i])||void 0===t?void 0:t.hookName;"string"==typeof o&&o&&(null===(n=this.menus.hooks[o])||void 0===n||n.fire(e,i));return!0}}])}();function CM(e,t,n){return t=za(t),Na(e,kM()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function kM(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(kM=function(){return!!e})()}var TM=function(e){function t(){return eo(this,t),CM(this,t,arguments)}return tA(t,e),Da(t,[{key:"visible",get:function(){var e=window.getComputedStyle(this.bubbleDom);return"none"!==e.display&&"hidden"!==e.visibility},set:function(e){var n=window.getComputedStyle(this.bubbleDom);e?"none"===n.display&&(this.bubbleDom.style.display=t.displayType):"none"!==n.display&&(this.bubbleDom.style.display="none")}},{key:"init",value:function(){var e,t=this;this.options.editor=this.$cherry.editor,this.addSelectionChangeListener(),this.bubbleDom=this.options.dom,this.editorDom=this.options.editor.getEditorDom(),this.initBubbleDom(),this.editorDom.querySelector(".CodeMirror").appendChild(this.bubbleDom),UA(e=_Q(this.shortcutKeyMap)).call(e,(function(e){var n=Uh(e,2),r=n[0],i=n[1];t.$cherry.toolbar.shortcutKeyMap[r]=i}))}},{key:"appendMenusToDom",value:function(e){this.options.dom.appendChild(e)}},{key:"getScrollTop",value:function(){return this.options.editor.editor.getScrollInfo().top}},{key:"updatePositionWhenScroll",value:function(){this.bubbleDom.style.display===t.displayType&&(this.bubbleDom.style.marginTop="".concat(id(this.bubbleDom.dataset.scrollTop)-this.getScrollTop(),"px"))}},{key:"showBubble",value:function(e,t){this.visible||(this.visible=!0,this.bubbleDom.style.marginTop="0",this.bubbleDom.dataset.scrollTop=String(this.getScrollTop()));var n=this.editorDom.querySelector(".CodeMirror-lines").firstChild.getBoundingClientRect(),r=this.editorDom.getBoundingClientRect(),i=n.left-r.left,o=n.width+i,a=e;a<2*this.bubbleDom.offsetHeight?(a+=this.bubbleDom.offsetHeight-this.bubbleTop.getBoundingClientRect().height,this.bubbleTop.style.display="block",this.bubbleBottom.style.display="none"):(a-=this.bubbleDom.offsetHeight+2*this.bubbleBottom.getBoundingClientRect().height,this.bubbleTop.style.display="none",this.bubbleBottom.style.display="block"),this.bubbleDom.style.top="".concat(a,"px");var A=t-this.bubbleDom.offsetWidth/2;Ao?(A=o-this.bubbleDom.offsetWidth,this.$setBubbleCursorPosition("".concat(t-A,"px"))):this.$setBubbleCursorPosition("50%"),this.bubbleDom.style.left="".concat(Math.max(20,A),"px")}},{key:"hideBubble",value:function(){this.visible=!1}},{key:"$setBubbleCursorPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"50%";if("50%"===e)this.bubbleTop.style.left="50%",this.bubbleBottom.style.left="50%";else{var t=id(e)<10?"10px":e;this.bubbleTop.style.left=t,this.bubbleBottom.style.left=t}}},{key:"initBubbleDom",value:function(){var e=document.createElement("div");e.className="cherry-bubble-top";var t=document.createElement("div");t.className="cherry-bubble-bottom",this.bubbleTop=e,this.bubbleBottom=t,this.bubbleDom.appendChild(e),this.bubbleDom.appendChild(t),this.visible=!1}},{key:"getBubbleDom",value:function(){return this.bubbleDom}},{key:"addSelectionChangeListener",value:function(){var e=this;this.options.editor.addListener("change",(function(t){e.hideBubble()})),this.options.editor.addListener("refresh",(function(t){e.hideBubble()})),this.options.editor.addListener("scroll",(function(t){e.updatePositionWhenScroll()})),this.options.editor.addListener("beforeSelectionChange",(function(t,n){if(gA((function(){var r=t.getSelections(),i=r.join("");i!==e.lastSelectionsStr&&(i||e.lastSelectionsStr)&&(e.lastSelections=e.lastSelections?e.lastSelections:[],e.$cherry.$event.emit("selectionChange",{selections:r,lastSelections:e.lastSelections,info:n}),e.lastSelections=r,e.lastSelectionsStr=i)}),10),"*mouse"!==n.origin&&(null!==n.origin||void 0===n.origin))return!0;if(!n.ranges[0])return!0;var r=1e6*n.ranges[0].anchor.line+n.ranges[0].anchor.ch,i=1e6*n.ranges[0].head.line+n.ranges[0].head.ch,o="asc";r>i&&(o="desc"),gA((function(){if(t.getSelections().join("").length<=0)e.hideBubble();else{var n=t.getWrapperElement().getElementsByClassName("CodeMirror-selected"),r=e.editorDom.getBoundingClientRect(),i=0,a=0;if("object"!==Ua(n)||n.length<=0)e.hideBubble();else{for(var A=0;A=a&&(a=l,i=s.left-r.left+s.width/2):(l<=a||a<=0)&&(a=l,i=s.left-r.left+s.width/2)}e.showBubble(a,i)}}}),10)}))}}])}(BM);function EM(e,t,n){return t=za(t),Na(e,SM()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function SM(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(SM=function(){return!!e})()}nA(TM,"displayType","flex");var xM=function(e){function t(){return eo(this,t),EM(this,t,arguments)}return tA(t,e),Da(t,[{key:"init",value:function(){var e,t=this;this.editor=this.$cherry.editor,this.editorDom=this.editor.getEditorDom(),this.editorDom.querySelector(".CodeMirror-scroll").appendChild(this.options.dom),this.initAction(),UA(e=_Q(this.shortcutKeyMap)).call(e,(function(e){var n=Uh(e,2),r=n[0],i=n[1];t.$cherry.toolbar.shortcutKeyMap[r]=i}))}},{key:"appendMenusToDom",value:function(e){this.options.dom.appendChild(e)}},{key:"initAction",value:function(){var e=this;this.editor.addListener("cursorActivity",(function(t,n){e.cursorActivity(n,t)})),this.editor.addListener("update",(function(t,n){e.cursorActivity(n,t)})),this.editor.addListener("refresh",(function(t,n){gA((function(){e.cursorActivity(n,t)}),0)}))}},{key:"update",value:function(e,t){var n=t.getCursor();if(this.isHidden(n.line,t))return this.options.dom.style.display="none",!1;this.options.dom.style.display="inline-block"}},{key:"cursorActivity",value:function(e,t){var n=t.getCursor(),r=document.querySelector(".cherry-editor .CodeMirror-lines");if(!r)return!1;var i=getComputedStyle(r),o=id(i.paddingLeft),a=id(i.paddingTop);if(this.isHidden(n.line,t))return this.options.dom.style.display="none",!1;this.options.dom.style.display="inline-block",this.options.dom.style.left="".concat(o,"px"),this.options.dom.style.top="".concat(this.getLineHeight(n.line,t)+a,"px")}},{key:"isHidden",value:function(e,t){return t.getSelections().length>1||(t.getSelection().length>0||!!t.getLine(e))}},{key:"getLineHeight",value:function(e,t){var n=0;return t.getDoc().eachLine(0,e,(function(e){n+=e.height})),n}}])}(BM);function QM(e,t,n){return t=za(t),Na(e,LM()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function LM(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(LM=function(){return!!e})()}var IM=function(e){function t(){return eo(this,t),QM(this,t,arguments)}return tA(t,e),Da(t,[{key:"appendMenusToDom",value:function(e){var t=sd("div","toolbar-right");t.appendChild(e),this.options.dom.appendChild(t)}},{key:"init",value:function(){var e,n=this;Fm(za(t.prototype),"init",this).call(this),UA(e=_Q(this.shortcutKeyMap)).call(e,(function(e){var t=Uh(e,2),r=t[0],i=t[1];n.$cherry.toolbar.shortcutKeyMap[r]=i}))}}])}(BM),FM=function(){return Da((function e(t){var n,r,i,o,a;eo(this,e),this.$cherry=t.$cherry,this.editor=t.$cherry.editor.editor,this.tocStr="",this.updateLocationHash=null===(n=t.updateLocationHash)||void 0===n||n,this.defaultModel=null!==(r=t.defaultModel)&&void 0!==r?r:"full",this.showAutoNumber=null!==(i=t.showAutoNumber)&&void 0!==i&&i,this.position=null!==(o=t.position)&&void 0!==o?o:"absolute",this.cssText=null!==(a=t.cssText)&&void 0!==a?a:"",this.init()}),[{key:"init",value:function(){var e=this;this.drawDom(),this.timer=gA((function(){e.updateTocList()}),300),this.editor.on("change",(function(t,n){clearTimeout(e.timer),e.timer=gA((function(){e.updateTocList(),e.$switchModel(e.model)}),300)})),this.$switchModel(this.getModelFromLocalStorage())}},{key:"getModelFromLocalStorage",value:function(){return"undefined"==typeof localStorage?this.defaultModel:localStorage.getItem("cherry-toc-model")||this.defaultModel}},{key:"setModelToLocalStorage",value:function(e){"undefined"!=typeof localStorage&&localStorage.setItem("cherry-toc-model",e)}},{key:"drawDom",value:function(){var e=sd("div","cherry-flex-toc cherry-flex-toc__pure".concat(this.showAutoNumber?" auto-num":""));"fixed"===this.position&&e.classList.add("cherry-flex-toc__fixed"),this.cssText.length>0&&(e.style.cssText=this.cssText);var t=sd("div","cherry-toc-head"),n=sd("span","cherry-toc-title");n.append(this.$cherry.locale.toc);var r=sd("i","ch-icon ch-icon-chevronsRight"),i=sd("i","ch-icon ch-icon-chevronsLeft");this.tocClose=r,this.tocOpen=i,t.appendChild(n),t.appendChild(r),t.appendChild(i),e.appendChild(t);var o=sd("div","cherry-toc-list");this.tocListDom=o,e.appendChild(o),this.tocDom=e,this.$cherry.wrapperDom.appendChild(e),this.bindClickEvent()}},{key:"bindClickEvent",value:function(){var e=this;this.tocDom.addEventListener("click",(function(t){var n=e.$getClosestNode(t.target,"A");if(!1!==n&&/cherry-toc-one-a/.test(n.className)){var r=n.dataset,i=r.id,o=r.index;if("hide"===e.$cherry.status.previewer){for(var a=e.$cherry.editor.editor.getSearchCursor(/(?:^|\n)\n*((?:[ \t\u00a0]*#{1,6}).+?|(?:[ \t\u00a0]*.+)\n(?:[ \t\u00a0]*[=]+|[-]+))(?=$|\n)/g),A=0;A<=o;A++)a.findNext();var s=a.from();e.$cherry.editor.scrollToLineNum(s.line,s.line+1,0)}else e.$cherry.previewer.scrollToHeadByIndex(o);e.updateLocationHash&&(location.href=i)}})),this.tocClose.addEventListener("click",(function(t){e.$switchModel("pure"),e.setModelToLocalStorage("pure")})),this.tocOpen.addEventListener("click",(function(t){e.$switchModel("full"),e.setModelToLocalStorage("full")})),window&&window.addEventListener("resize",(function(){e.$switchModel(e.model)})),this.editor.on("scroll",(function(t,n){e.updateTocList(!0)}));var t=this.$cherry.previewer.getDomCanScroll();"HTML"===t.nodeName?window.addEventListener("scroll",(function(){e.updateTocList(!0)})):t.addEventListener("scroll",(function(){e.updateTocList(!0)}))}},{key:"$switchModel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pure";this.model=e;var t="cherry-flex-toc__".concat(e);this.tocDom.classList.contains(t)||(this.tocDom.classList.remove("cherry-flex-toc__pure"),this.tocDom.classList.remove("cherry-flex-toc__full"),this.tocDom.classList.add(t));var n=this.tocListDom.querySelectorAll(".cherry-toc-one-a");if(n.length>0){var r=28;if("pure"===e){var i=this.tocListDom.getBoundingClientRect().height,o=Math.floor((i-3*n.length)/n.length);r=o<3?3:o>10?10:o}for(var a=0;a0&&void 0!==arguments[0]&&arguments[0]));else{var e=this.$cherry.getToc(),t="";if(wf(e).call(e,(function(e){return t+=e.text,e})),t=this.$cherry.engine.hash(t),this.tocStr!==t){this.tocStr=t;var n="",r=0;wf(e).call(e,(function(e){var t,i,o,a,A=e.text.replace(//g,""),s=A.replace(/<[^>]+?>/g,"");return n+=oA(t=oA(i=oA(o=oA(a='')).call(t,A,""),r+=1,e})),this.tocListDom.innerHTML=n}}if("hide"===this.$cherry.status.previewer);else{for(var i,o=this.$cherry.previewer.getDomCanScroll(),a="HTML"===o.nodeName?0:o.getBoundingClientRect().y,A=this.$cherry.previewer.getDomContainer().querySelectorAll("h1,h2,h3,h4,h5,h6,h7,h8"),s=0;sa+20)break}s=s>0?s-1:s,UA(i=this.tocListDom.querySelectorAll(".cherry-toc-one-a")).call(i,(function(e,t){t===s?e.classList.add("current"):e.classList.remove("current")}))}}}])}();function UM(e,t,n){return t=za(t),Na(e,_M()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function _M(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(_M=function(){return!!e})()}var MM=function(e){function t(){return eo(this,t),UM(this,t,arguments)}return tA(t,e),Da(t,[{key:"appendMenusToDom",value:function(e){this.options.dom.appendChild(e)}},{key:"init",value:function(){var e,n=this;Fm(za(t.prototype),"init",this).call(this),UA(e=_Q(this.shortcutKeyMap)).call(e,(function(e){var t=Uh(e,2),r=t[0],i=t[1];n.$cherry.toolbar.shortcutKeyMap[r]=i}))}}])}(BM);function HM(e,t,n){return t=za(t),Na(e,DM()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function DM(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(DM=function(){return!!e})()}var OM=function(e){function t(){return eo(this,t),HM(this,t,arguments)}return tA(t,e),Da(t,[{key:"appendMenusToDom",value:function(e){}},{key:"init",value:function(){var e,n=this;Fm(za(t.prototype),"init",this).call(this),UA(e=_Q(this.shortcutKeyMap)).call(e,(function(e){var t=Uh(e,2),r=t[0],i=t[1];n.$cherry.toolbar.shortcutKeyMap[r]=i}))}}])}(BM),NM=-1,RM=1,PM=0;function $M(e,t,n,r,i){if(e===t)return e?[[PM,e]]:[];if(null!=n){var o=function(e,t,n){var r="number"==typeof n?{index:n,length:0}:n.oldRange,i="number"==typeof n?null:n.newRange,o=e.length,a=t.length;if(0===r.length&&(null===i||0===i.length)){var A=r.index,s=e.slice(0,A),l=e.slice(A),c=i?i.index:null,u=A+a-o;if((null===c||c===u)&&!(u<0||u>a)){var h=t.slice(0,u);if((p=t.slice(u))===l){var d=Math.min(A,u);if((m=s.slice(0,d))===(y=h.slice(0,d)))return rH(m,s.slice(d),h.slice(d),l)}}if(null===c||c===A){var f=A,p=(h=t.slice(0,f),t.slice(f));if(h===s){var g=Math.min(o-f,a-f);if((v=l.slice(l.length-g))===(b=p.slice(p.length-g)))return rH(s,l.slice(0,l.length-g),p.slice(0,p.length-g),v)}}}if(r.length>0&&i&&0===i.length){var m=e.slice(0,r.index),v=e.slice(r.index+r.length);if(!(a<(d=m.length)+(g=v.length))){var y=t.slice(0,d),b=t.slice(a-g);if(m===y&&v===b)return rH(m,e.slice(d,o-g),t.slice(d,a-g),v)}}return null}(e,t,n);if(o)return o}var a=XM(e,t),A=e.substring(0,a);a=GM(e=e.substring(a),t=t.substring(a));var s=e.substring(e.length-a),l=function(e,t){var n;if(!e)return[[RM,t]];if(!t)return[[NM,e]];var r=e.length>t.length?e:t,i=e.length>t.length?t:e,o=r.indexOf(i);if(-1!==o)return n=[[RM,r.substring(0,o)],[PM,i],[RM,r.substring(o+i.length)]],e.length>t.length&&(n[0][0]=n[2][0]=NM),n;if(1===i.length)return[[NM,e],[RM,t]];var a=function(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length=e.length?[r,i,o,a,l]:null}var o,a,A,s,l,c=i(n,r,Math.ceil(n.length/4)),u=i(n,r,Math.ceil(n.length/2));if(!c&&!u)return null;o=u?c&&c[4].length>u[4].length?c:u:c;e.length>t.length?(a=o[0],A=o[1],s=o[2],l=o[3]):(s=o[0],l=o[1],a=o[2],A=o[3]);var h=o[4];return[a,A,s,l,h]}(e,t);if(a){var A=a[0],s=a[1],l=a[2],c=a[3],u=a[4],h=$M(A,l),d=$M(s,c);return h.concat([[PM,u]],d)}return function(e,t){for(var n=e.length,r=t.length,i=Math.ceil((n+r)/2),o=i,a=2*i,A=new Array(a),s=new Array(a),l=0;ln)d+=2;else if(y>r)h+=2;else if(u){if((B=o+c-m)>=0&&B=(w=n-s[B]))return KM(e,t,k,y)}}for(var b=-g+f;b<=g-p;b+=2){for(var w,B=o+b,C=(w=b===-g||b!==g&&s[B-1]n)p+=2;else if(C>r)f+=2;else if(!u){if((v=o+c-b)>=0&&v=(w=n-w))return KM(e,t,k,y)}}}}return[[NM,e],[RM,t]]}(e,t)}(e=e.substring(0,e.length-a),t=t.substring(0,t.length-a));return A&&l.unshift([PM,A]),s&&l.push([PM,s]),YM(l,i),r&&function(e){var t=!1,n=[],r=0,i=null,o=0,a=0,A=0,s=0,l=0;for(;o0?n[r-1]:-1,a=0,A=0,s=0,l=0,i=null,t=!0)),o++;t&&YM(e);(function(e){function t(e,t){if(!e||!t)return 6;var n=e.charAt(e.length-1),r=t.charAt(0),i=n.match(jM),o=r.match(jM),a=i&&n.match(WM),A=o&&r.match(WM),s=a&&n.match(zM),l=A&&r.match(zM),c=s&&e.match(qM),u=l&&t.match(JM);return c||u?5:s||l?4:i&&!a&&A?3:a||A?2:i||o?1:0}var n=1;for(;n=u&&(u=h,s=r,l=i,c=o)}e[n-1][1]!=s&&(s?e[n-1][1]=s:(e.splice(n-1,1),n--),e[n][1]=l,c?e[n+1][1]=c:(e.splice(n+1,1),n--))}n++}})(e),o=1;for(;o=d?(h>=c.length/2||h>=u.length/2)&&(e.splice(o,0,[PM,u.substring(0,h)]),e[o-1][1]=c.substring(0,c.length-h),e[o+1][1]=u.substring(h),o++):(d>=c.length/2||d>=u.length/2)&&(e.splice(o,0,[PM,c.substring(0,d)]),e[o-1][0]=RM,e[o-1][1]=u.substring(0,u.length-d),e[o+1][0]=NM,e[o+1][1]=c.substring(d),o++),o++}o++}}(l),l}function KM(e,t,n,r){var i=e.substring(0,n),o=t.substring(0,r),a=e.substring(n),A=t.substring(r),s=$M(i,o),l=$M(a,A);return s.concat(l)}function XM(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,o=0;nr?e=e.substring(n-r):n=0&&nH(e[s][1])){var l=e[s][1].slice(-1);if(e[s][1]=e[s][1].slice(0,-1),a=l+a,A=l+A,!e[s][1]){e.splice(s,1),r--;var c=s-1;e[c]&&e[c][0]===RM&&(o++,A=e[c][1]+A,c--),e[c]&&e[c][0]===NM&&(i++,a=e[c][1]+a,c--),s=c}}if(tH(e[r][1])){l=e[r][1].charAt(0);e[r][1]=e[r][1].slice(1),a+=l,A+=l}}if(r0||A.length>0){a.length>0&&A.length>0&&(0!==(n=XM(A,a))&&(s>=0?e[s][1]+=A.substring(0,n):(e.splice(0,0,[PM,A.substring(0,n)]),r++),A=A.substring(n),a=a.substring(n)),0!==(n=GM(A,a))&&(e[r][1]=A.substring(A.length-n)+e[r][1],A=A.substring(0,A.length-n),a=a.substring(0,a.length-n)));var u=o+i;0===a.length&&0===A.length?(e.splice(r-u,u),r-=u):0===a.length?(e.splice(r-u,u,[RM,A]),r=r-u+1):0===A.length?(e.splice(r-u,u,[NM,a]),r=r-u+1):(e.splice(r-u,u,[NM,a],[RM,A]),r=r-u+2)}0!==r&&e[r-1][0]===PM?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,o=0,i=0,a="",A=""}""===e[e.length-1][1]&&e.pop();var h=!1;for(r=1;r=55296&&e<=56319}function eH(e){return e>=56320&&e<=57343}function tH(e){return eH(e.charCodeAt(0))}function nH(e){return ZM(e.charCodeAt(e.length-1))}function rH(e,t,n,r){return nH(e)||tH(r)?null:function(e){for(var t=[],n=0;n0&&t.push(e[n]);return t}([[PM,e],[NM,t],[RM,n],[PM,r]])}function iH(e,t,n,r){return $M(e,t,n,r,!0)}iH.INSERT=RM,iH.DELETE=NM,iH.EQUAL=PM;var oH=iH;var aH=function(e,t){for(var n=-1,r=null==e?0:e.length;++n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,A=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){A=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(A)throw o}}}}function cD(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n'.concat(e,". ")).call(i,t,'\n
    ')).call(r,n,'
    \n
    \n ')}}}}},editor:{id:"code",name:"code",autoSave2Textarea:!1,height:"100%",defaultModel:"edit&preview",convertWhenPaste:!0,keyMap:"sublime",codemirror:{autofocus:!0},writingStyle:"normal",keepDocumentScrollAfterInit:!1,showFullWidthMark:!0,showSuggestList:!0},toolbars:{showToolbar:!0,toolbar:["bold","italic","strikethrough","|","color","header","ruby","|","list","panel","detail",{insert:["image","audio","video","link","hr","br","code","formula","toc","table","line-table","bar-table","pdf","word"]},"graph","shortcutKey","togglePreview"],toolbarRight:[],sidebar:!1,bubble:["bold","italic","underline","strikethrough","sub","sup","quote","|","size","color"],float:["h1","h2","h3","|","checklist","quote","table","code"],hiddenToolbar:[],toc:!1,shortcutKey:{},shortcutKeySettings:{isReplace:!1,shortcutKeyMap:{}},config:{formula:{showLatexLive:!0,templateConfig:!1},changeLocale:[{locale:"zh_CN",name:"中文"},{locale:"en_US",name:"English"},{locale:"ru_RU",name:"Русский"}]}},drawioIframeUrl:"",drawioIframeStyle:"border: none;",fileTypeLimitMap:{video:"video/*",audio:"audio/*",image:"image/*",word:".doc,.docx",pdf:".pdf",file:"*"},multipleFileSelection:{video:!1,audio:!1,image:!1,word:!1,pdf:!1,file:!1},callback:{urlProcessor:uD.urlProcessor,fileUpload:uD.fileUpload,fileUploadMulti:uD.fileUploadMulti,beforeImageMounted:uD.beforeImageMounted,onClickPreview:uD.onClickPreview,onCopyCode:uD.onCopyCode,onExpandCode:uD.onExpandCode,onUnExpandCode:uD.onUnExpandCode,changeString2Pinyin:uD.changeString2Pinyin,onPaste:uD.onPaste},event:{afterChange:uD.afterChange,afterInit:uD.afterInit,focus:function(e){e.e,e.cherry},blur:function(e){e.e,e.cherry},selectionChange:function(e){e.selections,e.lastSelections,e.info},afterChangeLocale:function(e){},changeMainTheme:function(e){},changeCodeBlockTheme:function(e){}},previewer:{dom:!1,className:"cherry-markdown",enablePreviewerBubble:!0,floatWhenClosePreviewer:!1,lazyLoadImg:{loadingImgPath:"",maxNumPerTime:2,noLoadImgNum:5,autoLoadImgNum:5,maxTryTimesPerSrc:2,beforeLoadOneImgCallback:function(e){return!0},failLoadOneImgCallback:function(e){},afterLoadOneImgCallback:function(e){},afterLoadAllImgCallback:function(){}}},nameSpace:"cherry",themeSettings:{themeList:[{className:"default",label:"默认"},{className:"dark",label:"暗黑"},{className:"light",label:"明亮"},{className:"green",label:"清新"},{className:"red",label:"热情"},{className:"violet",label:"淡雅"},{className:"blue",label:"清幽"}],mainTheme:"light",codeBlockTheme:"default",inlineCodeTheme:"red",toolbarTheme:"dark"},isPreviewOnly:!1,autoScrollByCursor:!0,forceAppend:!0,locale:"zh_CN",locales:{},autoScrollByHashAfterInit:!1},dD=sD(hD);var fD=function(){return Da((function e(t){eo(this,e),nA(this,"Events",{previewerClose:"previewerClose",previewerOpen:"previewerOpen",editorClose:"editorClose",editorOpen:"editorOpen",toolbarHide:"toolbarHide",toolbarShow:"toolbarShow",cleanAllSubMenus:"cleanAllSubMenus",afterChange:"afterChange",afterInit:"afterInit",afterAsyncRender:"afterAsyncRender",focus:"focus",blur:"blur",selectionChange:"selectionChange",afterChangeLocale:"afterChangeLocale",changeMainTheme:"changeMainTheme",changeCodeBlockTheme:"changeCodeBlockTheme"}),nA(this,"emitter",function(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map((function(e){e(n)})),(r=e.get("*"))&&r.slice().map((function(e){e(t,n)}))}}}()),this.instanceId=t}),[{key:"setInstanceId",value:function(e){this.instanceId=e}},{key:"getInstanceId",value:function(){return this.instanceId}},{key:"clearAll",value:function(){this.emitter.all.clear()}},{key:"bindCallbacksByOptions",value:function(e){e.callback.afterChange&&this.on(this.Events.afterChange,(function(t){e.callback.afterChange(t.markdownText,t.html)})),e.callback.afterInit&&this.on(this.Events.afterInit,(function(t){e.callback.afterInit(t.markdownText,t.html)})),e.callback.afterAsyncRender&&this.on(this.Events.afterAsyncRender,(function(t){e.callback.afterAsyncRender(t.markdownText,t.html)})),e.event.afterChange&&this.on(this.Events.afterChange,(function(t){e.event.afterChange(t.markdownText,t.html)})),e.event.afterInit&&this.on(this.Events.afterInit,(function(t){e.event.afterInit(t.markdownText,t.html)})),e.event.afterAsyncRender&&this.on(this.Events.afterAsyncRender,(function(t){e.event.afterAsyncRender(t.markdownText,t.html)})),e.event.focus&&this.on(this.Events.focus,(function(t){e.event.focus(t)})),e.event.blur&&this.on(this.Events.blur,(function(t){e.event.blur(t)})),e.event.selectionChange&&this.on(this.Events.selectionChange,(function(t){e.event.selectionChange(t)})),e.event.afterChangeLocale&&this.on(this.Events.afterChangeLocale,(function(t){e.event.afterChangeLocale(t)})),e.event.changeMainTheme&&this.on(this.Events.changeMainTheme,(function(t){e.event.changeMainTheme(t)})),e.event.changeCodeBlockTheme&&this.on(this.Events.changeCodeBlockTheme,(function(t){e.event.changeCodeBlockTheme(t)}))}},{key:"on",value:function(e,t){var n;this.emitter.on(oA(n="".concat(this.instanceId,":")).call(n,e),t)}},{key:"off",value:function(e,t){var n;this.emitter.off(oA(n="".concat(this.instanceId,":")).call(n,e),t)}},{key:"emit",value:function(e,t){var n;this.emitter.emit(oA(n="".concat(this.instanceId,":")).call(n,e),t)}}])}(),pD={zh_CN:{bold:"加粗",code:"代码",graph:"画图",h1:"一级标题",h2:"二级标题",h3:"三级标题",h4:"四级标题",h5:"五级标题",header:"标题",insert:"插入",italic:"斜体",list:"列表",quickTable:"表格",quote:"引用",size:"大小",color:"文字颜色&背景",strikethrough:"删除线",sub:"下标",sup:"上标",togglePreview:"预览",fullScreen:"全屏",image:"图片",audio:"音频",video:"视频",link:"超链接",hr:"分隔线",br:"换行",toc:"目录",pdf:"pdf",word:"word",table:"表格","line-table":"折线表格","bar-table":"柱状表格",formula:"公式",insertFormula:"公式",insertFlow:"流程图",insertSeq:"时序图",insertState:"状态图",insertClass:"类图",insertPie:"饼图",insertGantt:"甘特图",checklist:"清单",ol:"有序列表",ul:"无序列表",undo:"撤销",redo:"恢复",previewClose:"关闭预览",codeTheme:"代码主题",switchModel:"模式切换",switchPreview:"预览",switchEdit:"返回编辑",classicBr:"经典换行",normalBr:"常规换行",settings:"设置",mobilePreview:"移动端预览",copy:"复制内容",export:"导出",underline:"下划线",pinyin:"拼音",file:"文件",pastePlain:"粘贴为纯文本格式",pasteMarkdown:"粘贴为markdown格式",hide:"隐藏工具栏",exportToPdf:"导出PDF",exportScreenshot:"导出长图",exportMarkdownFile:"导出markdown",exportHTMLFile:"导出html",theme:"主题",panel:"面板",detail:"手风琴","H1 Heading":"H1 一级标题","H2 Heading":"H2 二级标题","H3 Heading":"H3 三级标题",complement:"续写",summary:"总结",justify:"对齐方式",justifyLeft:"左对齐",justifyCenter:"居中",justifyRight:"右对齐",align:"对齐方式",alignLeft:"左对齐",alignCenter:"居中",alignRight:"右对齐",alignJustify:"两端对齐",publish:"发布",fontColor:"文本颜色",fontBgColor:"背景颜色",small:"小",medium:"中",large:"大",superLarge:"特大",detailDefaultContent:"点击展开更多\n内容\n++- 默认展开\n内容\n++ 默认收起\n内容",inlineCode:"行内代码",codeBlock:"代码块",shortcutKeySetting:"快捷键设置",editShortcutKeyConfigTip:"双击快捷键区域编辑快捷键",wordCount:"字数统计",wordCountP:"段落",wordCountW:"单词",wordCountC:"字符",deleteColumn:"删除列",deleteRow:"删除行",addRow:"添加行",addCol:"添加列",moveRow:"移动行",moveCol:"移动列",shortcutStaticTitle:"以下快捷键无法修改",shortcutStatic1:"整行向左缩进",shortcutStatic2:"整行向右缩进",shortcutStatic3:"复制并粘贴一行",shortcutStatic4:"在下方插入空行",shortcutStatic5:"在上方插入空行",shortcutStatic6:"与上行互换",shortcutStatic7:"与下行互换",shortcutStatic8:"删除一行",shortcutStatic9:"按词语向左选中",shortcutStatic10:"按词语向右选中",shortcutStatic11:"按词语删除",shortcutStatic12:"选中括号内内容",shortcutStatic13:"插入多个光标",shortcutStatic14:"分别选中文本块的每一行",shortcutStatic15:"查找",shortcutStatic16:"选中所有相同的词",shortcutStatic17:"撤销",shortcutStatic18:"回滚撤销",leftMouseButton:"鼠标左键",disableShortcut:"禁用所有快捷键",recoverShortcut:"恢复默认",search:"搜索",autoWrap:"自动换行",footnoteTitle:"脚注"},en_US:{bold:"Bold",code:"Code",graph:"Graph",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",h5:"Heading 5",header:"Header",insert:"Insert",italic:"Italic",list:"List",quickTable:"Quick Table",quote:"Quote",size:"Size",color:"Text Color & Background",strikethrough:"Strikethrough",sub:"Sub",sup:"Sup",togglePreview:"Toggle Preview",fullScreen:"Full Screen",image:"Image",audio:"Audio",video:"Video",link:"Link",hr:"Horizontal Rule",br:"New Line",toc:"Table Of Content",pdf:"PDF",word:"Word",table:"Table","line-table":"Line Table","bar-table":"Bar Table",formula:"Formula",insertFormula:"Insert Formula",insertFlow:"Insert Flow",insertSeq:"Insert Seq",insertState:"Insert State",insertClass:"Insert Class",insertPie:"Insert Pie",insertGantt:"Insert Gantt",checklist:"Checklist",ol:"Ordered List",ul:"Unordered List",undo:"Undo",redo:"Redo",previewClose:"Preview Close",codeTheme:"Code Theme",switchModel:"Switch Model",switchPreview:"Switch Preview",switchEdit:"Switch Edit",classicBr:"Classic New Line",normalBr:"Normal New Line",settings:"Settings",mobilePreview:"Mobile Preview",copy:"Copy",export:"Export",underline:"Underline",pinyin:"Pinyin",pastePlain:"Paste as Plain Text",pasteMarkdown:"Paste as Markdown",hide:"Hide Toolbar",exportToPdf:"Export to PDF",exportScreenshot:"Screenshot",exportMarkdownFile:"Export Markdown File",exportHTMLFile:"Export preview HTML File","H1 Heading":"H1 Heading","H2 Heading":"H1 Heading","H3 Heading":"H1 Heading",complement:"Complement",summary:"Summary",justify:"justify",justifyLeft:"Left",justifyCenter:"Center",justifyRight:"Right",align:"Align",alignLeft:"Align Left",alignCenter:"Align Center",alignRight:"Align Right",alignJustify:"Align Justify",publish:"Publish",fontColor:"Font Color",fontBgColor:"Font Bg Color",small:"Small",medium:"Medium",large:"Large",superLarge:"Super Large",detailDefaultContent:"Click to expand more\nContent\n++- Expand by default\nContent\n++ Collapse by default\nContent",inlineCode:"Inline Code",codeBlock:"Code Block",shortcutKeySetting:"Keyboard Shortcuts",editShortcutKeyConfigTip:"double click shortcut key area to edit",wordCount:"Word Count",wordCountP:"P",wordCountW:"W",wordCountC:"C",deleteColumn:"delete column",deleteRow:"delete row",addRow:"add row",addCol:"add column",moveRow:"move row",moveCol:"move column",shortcutStaticTitle:"The following shortcuts cannot be modified",shortcutStatic1:"Indent the whole line to the left",shortcutStatic2:"Indent the whole line to the right",shortcutStatic3:"Duplicate and paste a line",shortcutStatic4:"Insert a blank line below",shortcutStatic5:"Insert a blank line above",shortcutStatic6:"Swap with the line above",shortcutStatic7:"Swap with the line below",shortcutStatic8:"Delete a line",shortcutStatic9:"Select to the left by word",shortcutStatic10:"Select to the right by word",shortcutStatic11:"Delete by word",shortcutStatic12:"Select the content inside parentheses",shortcutStatic13:"Insert multiple cursors",shortcutStatic14:"Select each line of the text block separately",shortcutStatic15:"Find",shortcutStatic16:"Select all occurrences of the word",shortcutStatic17:"Undo",shortcutStatic18:"Redo",leftMouseButton:"left mouse button",disableShortcut:"Disable all shortcuts",recoverShortcut:"Restore default",search:"Search",autoWrap:"Auto Wrap",footnoteTitle:"Footnote"},ru_RU:{bold:"Жирный",code:"Code",graph:"Graph",h1:"Заголовок 1",h2:"Заголовок 2",h3:"Заголовок 3",h4:"Заголовок 4",h5:"Заголовок 5",header:"Заголовок",insert:"Вставить",italic:"Курсив",list:"Лист",quickTable:"Quick Table",quote:"Цитата",size:"Размер",color:"Цвет текста и фон",strikethrough:"Зачеркнуто",sub:"Sub",sup:"Sup",togglePreview:"Переключение предварительного просмотра",fullScreen:"Полноэкранный режим",image:"Изображение",audio:"Аудио",video:"Видео",link:"Ссылка",hr:"Горизонтальная линия",br:"Новая строка",toc:"Таблица содержания",pdf:"PDF",word:"Word",table:"Таблица","line-table":"Строки в таблице","bar-table":"Bar Table",formula:"Формула",insertFormula:"Вставить формулу",insertFlow:"Вставить поток",insertSeq:"Вставить Seq",insertState:"Вставить State",insertClass:"Вставить класс",insertPie:"Вставить Pie",insertGantt:"Вставить Gantt",checklist:"Контрольный список",ol:"Упорядоченный список",ul:"Неупорядоченный список",undo:"Отменить",redo:"Переделывать",previewClose:"Предварительный просмотр закрыт",codeTheme:"Тема для кода",switchModel:"Модель переключателя",switchPreview:"Переключите предварительный просмотр",switchEdit:"Переключить редактирование",classicBr:"Классическая новая линия",normalBr:"Обычная новая строка",settings:"Настройки",mobilePreview:"Предварительный просмотр на мобильном устройстве",copy:"Копировать",export:"Экспорт",underline:"Подчеркивать",pinyin:"Pinyin",pastePlain:"Вставить в виде обычного текста",pasteMarkdown:"Вставить как Markdown",hide:"Скрыть панель инструментов",exportToPdf:"Экспорт в формат PDF",exportScreenshot:"Скриншот",exportMarkdownFile:"Экспорт файла Markdown",exportHTMLFile:"Экспорт предварительного просмотра HTML-файла","H1 Заголовок":"H1 Заголовок","H2 Заголовок":"H1 Заголовок","H3 Заголовок":"H1 Заголовок",complement:"Дополнение",summary:"Резюме",justify:"объяснить",justifyLeft:"Слева",justifyCenter:"Центр",justifyRight:"Справа",align:"Выравнивание",alignLeft:"Выровнять слева",alignCenter:"В центре",alignRight:"Выровнять вправо",alignJustify:"Выровнять концы",publish:"Публиковать",fontColor:"Цвет шрифта",fontBgColor:"Цвет фона",small:"Маленький",medium:"Средний",large:"Большой",superLarge:"Очень большой",detailDefaultContent:"Нажмите, чтобы развернуть подробнее\nСодержание\n++- Развернуть по умолчанию\nСодержание\n++ Свернуть по умолчанию\nСодержание",inlineCode:"Встроенный код",codeBlock:"Кодовый блок",shortcutKeySetting:"Настройки горячих клавиш",editShortcutKeyConfigTip:"дважды щелкните область сочетания клавиш для редактирования",wordCount:"Количество слов",wordCountP:"P",wordCountW:"W",wordCountC:"C",deleteColumn:"Удалить столбец",deleteRow:"Удалить строку",addRow:"Добавить строку",addCol:"Добавить столбец",moveRow:"Переместить строку",moveCol:"Переместить столбец",shortcutStaticTitle:"Следующие сочетания клавиш не могут быть изменены",shortcutStatic1:"Отступить всю строку влево",shortcutStatic2:"Отступить всю строку вправо",shortcutStatic3:"Скопировать и вставить строку",shortcutStatic4:"Вставить пустую строку ниже",shortcutStatic5:"Вставить пустую строку выше",shortcutStatic6:"Поменять с предыдущей строкой",shortcutStatic7:"Поменять с следующей строкой",shortcutStatic8:"Удалить строку",shortcutStatic9:"Выделить влево по слову",shortcutStatic10:"Выделить вправо по слову",shortcutStatic11:"Удалить по слову",shortcutStatic12:"Выделить содержимое внутри скобок",shortcutStatic13:"Вставить несколько курсоров",shortcutStatic14:"Выделить каждую строку текстового блока отдельно",shortcutStatic15:"Найти",shortcutStatic16:"Выделить все вхождения слова",shortcutStatic17:"Отменить",shortcutStatic18:"Вернуть отмену",leftMouseButton:"левая кнопка мыши",disableShortcut:"Отключить все горячие клавиши",recoverShortcut:"Восстановить по умолчанию",search:"Поиск",autoWrap:"Автоперенос строк",footnoteTitle:"Сноска"}};function gD(e,t,n){return t=za(t),Na(e,mD()?Gn(t,n||[],za(e).constructor):t.apply(e,n))}function mD(){try{var e=!Boolean.prototype.valueOf.call(Gn(Boolean,[],(function(){})))}catch(e){}return(mD=function(){return!!e})()}function vD(e,t,n){if("object"!==Ua(e)||!e)throw TypeError("first argument must be a object, but get ".concat(Ua(e)));var r;return gd(n)||"object"!==Ua(n)||null===n||"object"!==Ua(e[t])||null===e[t]?"string"==typeof n&&Ua(e[t])===n||("function"==typeof n&&e[t]instanceof n||!!gd(n)&&cy(n).call(n,(function(n){return vD(e,t,n)}))):PQ(r=TA(e[t])).call(r,(function(r){return vD(e[t],r,n[r])}))}function yD(e,t,n){var r,i={};return UA(r=TA(e)).call(r,(function(r){-1!==_h(t).call(t,r)&&("object"===Ua(n)?vD(e,r,n[r])&&(i[r]=e[r]):"string"==typeof n&&Ua(e[r])===n&&(i[r]=e[r]))})),i}var bD={HOOKS_TYPE_LIST:pf},wD=[];Av()||UA(wD).call(wD,(function(e){}));var BD=function(){function e(){eo(this,e)}return Da(e,null,[{key:"usePlugin",value:function(t){var n;if(this===e)throw new Error("`usePlugin` is not allowed to called through CherryStatic class.");if(this.initialized)throw new Error("The function `usePlugin` should be called before Cherry is instantiated.");if(!0!==t.$cherry$mounted){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{};return eo(this,n),(e=t===pf.PAR?gD(this,n,[{needCache:!!a.needCache,defaultCache:a.defaultCache}]):gD(this,n)).config=r.config,Oa(e)}return tA(n,e),Da(n,[{key:"beforeMakeHtml",value:function(){for(var e,t,r=arguments.length,i=new Array(r),a=0;ar.pageWidth&&(i=r.pageWidth-r.floatPreviewerWrapDom.offsetWidth),o+r.floatPreviewerWrapDom.offsetHeight>r.pageHeight&&(o=r.pageHeight-r.floatPreviewerWrapDom.offsetHeight),requestAnimationFrame((function(){r.floatPreviewerWrapDom.style.left="".concat(i,"px"),r.floatPreviewerWrapDom.style.top="".concat(o,"px")}))}})),nA(r,"handleFloatPreviewerMouseUp",(function(e){r.floatPreviewerWrapDom.classList.remove("float-previewer-dragging")})),t.initialized=!0;var i=sD(t.config.defaults);return r.defaultToolbar=i.toolbars.toolbar,wg(e,Object),r.options=Fc({},i,e,kf),r.storageFloatPreviewerWrapData={x:50,y:58,width:800,height:500},r.locales=pD,r.options.locales&&(r.locales=kD(kD({},r.options.locales),r.locales)),r.locale=r.locales[r.options.locale],"function"==typeof r.options.engine.global.urlProcessor?(r.options.engine.global.urlProcessor=vm(r.options.engine.global.urlProcessor),r.options.callback.urlProcessor=r.options.engine.global.urlProcessor):r.options.callback.urlProcessor=vm(r.options.callback.urlProcessor),r.status={toolbar:"show",previewer:"show",editor:"show"},(r.options.isPreviewOnly||"previewOnly"===r.options.editor.defaultModel)&&(r.options.toolbars.showToolbar=!1,r.options.editor.defaultModel="previewOnly",r.status.editor="hide",r.status.toolbar="hide"),r.instanceId=oA(n="cherry-".concat((new Date).getTime())).call(n,Math.random()),r.options.instanceId=r.instanceId,r.lastMarkdownText="",r.$event=new fD(r.instanceId),"default"===r.options.engine.global.flowSessionCursor&&(r.options.engine.global.flowSessionCursor=''),r.engine=new lC(r.options,r),r.init(),r}return tA(t,e),Da(t,[{key:"init",value:function(){var e,t=this;this.storeDocumentScroll();var n=this.options.id?document.getElementById(this.options.id):this.options.el;if(!n){if(!this.options.forceAppend)return!1;this.noMountEl=!0,(n=document.createElement("div")).id=this.options.id||"cherry-markdown",document.body.appendChild(n)}n.style.height||(n.style.height=this.options.editor.height),this.cherryDom=n,"string"==typeof this.options.themeNameSpace?this.nameSpace=this.options.themeNameSpace:this.nameSpace=this.options.nameSpace;var r=this.createWrapper(),i=this.createEditor(),o=this.createPreviewer();!1!==this.options.toolbars.showToolbar&&!1!==this.options.toolbars.toolbar||(r.classList.add("cherry--no-toolbar"),this.options.toolbars.toolbar=this.options.toolbars.toolbar?this.options.toolbars.toolbar:this.defaultToolbar),wg(this.options.toolbars.toolbar,Array),this.createToolbar(),this.createToolbarRight();var a,A=document.createDocumentFragment();(A.appendChild(this.toolbar.options.dom),A.appendChild(i.options.editorDom),this.options.previewer.dom||A.appendChild(o.options.previewerDom),A.appendChild(o.options.virtualDragLineDom),A.appendChild(o.options.editorMaskDom),A.appendChild(o.options.previewerMaskDom),r.appendChild(A),this.wrapperDom=r,this.createSidebar(),this.createHiddenToolbar(),n.appendChild(r),this.$event.bindCallbacksByOptions(this.options),i.init(o),this.createBubble(),this.createFloatMenu(),o.init(i),o.registerAfterUpdate(aA(e=this.engine.mounted).call(e,this.engine)),this.initText(i.editor),this.$event.on("toolbarHide",(function(){t.status.toolbar="hide"})),this.$event.on("toolbarShow",(function(){t.status.toolbar="show"})),this.$event.on("previewerClose",(function(){t.status.previewer="hide"})),this.$event.on("previewerOpen",(function(){t.status.previewer="show"})),this.$event.on("editorClose",(function(){t.status.editor="hide",t.previewer.highlightLine(0)})),this.$event.on("editorOpen",(function(){t.status.editor="show"})),this.switchModel(this.options.editor.defaultModel,this.options.toolbars.showToolbar),this.options.autoScrollByHashAfterInit)&&gA(aA(a=this.scrollByHash).call(a,this));this.createToc(),this.restoreDocumentScroll()}},{key:"storeDocumentScroll",value:function(){this.options.editor.keepDocumentScrollAfterInit&&(this.needRestoreDocumentScroll=!0,this.documentElementScrollTop=document.documentElement.scrollTop,this.documentElementScrollLeft=document.documentElement.scrollLeft)}},{key:"restoreDocumentScroll",value:function(){this.options.editor.keepDocumentScrollAfterInit&&this.needRestoreDocumentScroll&&(this.needRestoreDocumentScroll=!1,window.scrollTo(this.documentElementScrollLeft,this.documentElementScrollTop))}},{key:"destroy",value:function(){this.noMountEl?this.cherryDom.remove():this.wrapperDom.remove(),this.$event.clearAll()}},{key:"on",value:function(e,t){if(this.$event.Events[e])return/^(afterInit|afterChange)$/.test(e)?this.$event.on(e,(function(e){t(e.markdownText,e.html)})):this.$event.on(e,t);if("urlProcessor"===e)this.options.callback.urlProcessor=vm(t);else this.options.callback[e]=t}},{key:"off",value:function(e,t){if(this.$event.Events[e])return this.$event.off(e,t);this.options.callback[e]=function(){}}},{key:"createToc",value:function(){var e,t,n,r,i;!1!==this.options.toolbars.toc?this.toc=new FM({$cherry:this,updateLocationHash:null===(e=this.options.toolbars.toc.updateLocationHash)||void 0===e||e,position:null!==(t=this.options.toolbars.toc.position)&&void 0!==t?t:"absolute",cssText:null!==(n=this.options.toolbars.toc.cssText)&&void 0!==n?n:"",defaultModel:null!==(r=this.options.toolbars.toc.defaultModel)&&void 0!==r?r:"pure",showAutoNumber:null!==(i=this.options.toolbars.toc.showAutoNumber)&&void 0!==i&&i}):this.toc=!1}},{key:"scrollByHash",value:function(){if(location.hash)try{var e=location.hash,t=document.getElementById(e.replace("#",""));t&&this.previewer.getDomContainer().contains(t)&&(location.hash="",location.hash=e)}catch(e){}}},{key:"$t",value:function(e){return this.locale[e]?this.locale[e]:e}},{key:"addLocale",value:function(e,t){this.locale[e]=t}},{key:"addLocales",value:function(e){this.locale=CA(this.locale,e)}},{key:"getLocales",value:function(){return this.locale}},{key:"switchModel",value:function(){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"edit&preview"){case"edit&preview":this.previewer&&(this.previewer.editOnly(!0),this.previewer.recoverPreviewer()),this.toolbar&&e&&this.toolbar.showToolbar(),e?this.wrapperDom.classList.remove("cherry--no-toolbar"):this.wrapperDom.classList.add("cherry--no-toolbar");break;case"editOnly":this.previewer.isPreviewerHidden()||this.previewer.editOnly(!0),this.toolbar&&e&&this.toolbar.showToolbar(),e?this.wrapperDom.classList.remove("cherry--no-toolbar"):this.wrapperDom.classList.add("cherry--no-toolbar");break;case"previewOnly":this.previewer.previewOnly(),this.toolbar&&this.toolbar.previewOnly(),this.wrapperDom.classList.add("cherry--no-toolbar")}}},{key:"getInstanceId",value:function(){return this.instanceId}},{key:"getStatus",value:function(){return this.status}},{key:"getValue",value:function(){return this.editor.editor.getValue()}},{key:"getMarkdown",value:function(){return this.getValue()}},{key:"getCodeMirror",value:function(){return this.editor.editor}},{key:"getHtml",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.previewer.getValue(e)}},{key:"getPreviewer",value:function(){return this.previewer}},{key:"getToc",value:function(){var e=this.getHtml(),t=[];return e.replace(/(.+?)<\/h[0-6]>/g,(function(e,n,r,i){return t.push({level:+n,id:r,text:i.replace(//,"")}),e})),t}},{key:"setValue",value:function(e){if(!1===(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))return this.editor.editor.setValue(e);var t=this.editor.editor,n=this.getValue(),r=function(e,t,n){for(var r=oH(t,n),i=e,o=e,a=0;a1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];n&&this.editor.editor.setSelection({line:n[0],ch:n[1]},{line:n[0],ch:n[1]}),this.editor.editor.replaceSelection(e,t?"around":"end"),r&&this.editor.editor.focus()}},{key:"insertValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return this.insert(e,t,n,r)}},{key:"refreshPreviewer",value:function(){try{var e=this.getValue(),t=this.engine.makeHtml(e);this.previewer.refresh(t)}catch(e){throw new kg(e)}}},{key:"setMarkdown",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.setValue(e,t)}},{key:"createWrapper",value:function(){var e="",t="",n="",r="";Sf(this.nameSpace,"theme")?e=xf(!0,this.nameSpace):(e=(e=this.options.themeSettings.mainTheme).replace(/theme__/g,""),e="theme__".concat(e)),t="string"==typeof this.options.toolbars.theme?"dark"===this.options.toolbars.theme?"dark":"light":"dark"===this.options.themeSettings.toolbarTheme?"dark":"light",n="string"==typeof this.options.engine.syntax.inlineCode.theme?"black"===this.options.engine.syntax.inlineCode.theme?"black":"red":"black"===this.options.themeSettings.inlineCodeTheme?"black":"red",r="string"==typeof this.options.engine.syntax.codeBlock.theme?this.options.engine.syntax.codeBlock.theme:this.options.themeSettings.codeBlockTheme,Sf(this.nameSpace,"codeTheme")&&(r=Lf(this.nameSpace)),"dark"===r?r="tomorrow-night":"light"===r&&(r="solarized-light");var i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"cherry",t=arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?"nowrap":"wrap";if("undefined"!=typeof localStorage){var n=localStorage.getItem("".concat(e,"-codeWrap"));n&&(t=n)}return t}(this.nameSpace,this.options.engine.syntax.codeBlock.wrap),o=sd("div",["cherry","clearfix",e].join(" "),{"data-toolbarTheme":t,"data-inlineCodeTheme":n,"data-codeBlockTheme":r,"data-codeWrap":"wrap"===i?"wrap":"nowrap"});return this.wrapperDom=o,o}},{key:"getCodeWrap",value:function(){return this.wrapperDom.dataset.codeWrap||"wrap"}},{key:"setCodeWrap",value:function(e){this.wrapperDom.dataset.codeWrap="wrap"===e?"wrap":"nowrap",function(e,t){"undefined"!=typeof localStorage&&localStorage.setItem("".concat(e,"-codeWrap"),t)}(this.nameSpace,e)}},{key:"createToolbar",value:function(){if(!this.toolbarContainer){var e=sd("div","cherry-toolbar");this.toolbarContainer=e}return this.options.toolbars.shortcutKey&&TA(this.options.toolbars.shortcutKey).length>0&&console.warn("options.shortcutKey is deprecated, please use shortcutKeySettings.shortcutKeyMap instead, get more info at https://github.com/Tencent/cherry-markdown/wiki"),this.toolbar=new BM({dom:this.toolbarContainer,$cherry:this,buttonConfig:this.options.toolbars.toolbar,customMenu:this.options.toolbars.customMenu}),this.toolbar}},{key:"resetToolbar",value:function(e,t){var n;return!1!==(!!/(toolbar|toolbarRight|sidebar|bubble|float|toc)/.test(e)&&e)&&(this.toolbarContainer&&(this.toolbarContainer.innerHTML=""),this.toolbarFloatContainer&&(this.toolbarFloatContainer.innerHTML=""),this.toolbarBubbleContainer&&(this.toolbarBubbleContainer.innerHTML=""),this.sidebarDom&&(this.sidebarDom.innerHTML=""),this.toc&&this.toc.tocDom.remove(),UA(n=this.cherryDom.querySelectorAll(".cherry-dropdown")).call(n,(function(e){e.remove()})),this.options.toolbars[e]=t,this.createToolbar(),this.createToolbarRight(),this.createBubble(),this.createFloatMenu(),this.createSidebar(),this.createHiddenToolbar(),this.createToc(),!0)}},{key:"createToolbarRight",value:function(){return this.toolbarRight=new IM({dom:this.toolbarContainer,$cherry:this,buttonConfig:this.options.toolbars.toolbarRight,customMenu:this.options.toolbars.customMenu}),this.toolbar.collectMenuInfo(this.toolbarRight),this.toolbarRight}},{key:"createSidebar",value:function(){if(this.options.toolbars.sidebar){wg(this.options.toolbars.sidebar,Array);var e=!1;if(!this.sidebarDom){e=!0;var t="dark"===this.options.toolbars.theme?"dark":"",n=sd("div","cherry-sidebar ".concat(t));this.sidebarDom=n}this.sidebar=new MM({dom:this.sidebarDom,$cherry:this,buttonConfig:this.options.toolbars.sidebar,customMenu:this.options.toolbars.customMenu}),this.toolbar.collectMenuInfo(this.sidebar),!0===e&&this.wrapperDom.appendChild(this.sidebarDom)}}},{key:"createHiddenToolbar",value:function(){this.options.toolbars.hiddenToolbar&&(wg(this.options.toolbars.hiddenToolbar,Array),this.hiddenToolbar=new OM({$cherry:this,buttonConfig:this.options.toolbars.hiddenToolbar,customMenu:this.options.toolbars.customMenu}),this.toolbar.collectMenuInfo(this.hiddenToolbar))}},{key:"createFloatMenu",value:function(){if(this.options.toolbars.float){if(!this.toolbarFloatContainer){var e=sd("div","cherry-floatmenu");this.toolbarFloatContainer=e}wg(this.options.toolbars.float,Array),this.floatMenu=new xM({dom:this.toolbarFloatContainer,$cherry:this,buttonConfig:this.options.toolbars.float,customMenu:this.options.toolbars.customMenu}),this.toolbar.collectMenuInfo(this.floatMenu)}}},{key:"createBubble",value:function(){if(this.options.toolbars.bubble){if(!this.toolbarBubbleContainer){var e=sd("div","cherry-bubble");this.toolbarBubbleContainer=e}wg(this.options.toolbars.bubble,Array),this.bubble=new TM({dom:this.toolbarBubbleContainer,$cherry:this,buttonConfig:this.options.toolbars.bubble,customMenu:this.options.toolbars.customMenu,engine:this.engine}),this.toolbar.collectMenuInfo(this.bubble)}}},{key:"createEditor",value:function(){var e,t,n,r,i=sd("textarea","",{id:null!==(e=this.options.editor.id)&&void 0!==e?e:"code",name:null!==(t=this.options.editor.name)&&void 0!==t?t:"code"});i.textContent=this.options.value;var o=sd("div","cherry-editor");return o.appendChild(i),"function"==typeof this.options.fileUpload&&(this.options.callback.fileUpload=this.options.fileUpload),this.editor=new Yd(kD({$cherry:this,editorDom:o,wrapperDom:this.wrapperDom,value:this.options.value,onKeydown:aA(n=this.fireShortcutKey).call(n,this),onChange:aA(r=this.editText).call(r,this),toolbars:this.options.toolbars,autoScrollByCursor:this.options.autoScrollByCursor},this.options.editor)),this.editor}},{key:"createPreviewer",value:function(){var e,t="autonumber"===(this.options.engine.syntax.header&&this.options.engine.syntax.header.anchorStyle||"default")?" head-num":"",n=this.options.previewer,r=n.className,i=n.dom,o=n.enablePreviewerBubble,a=n.floatWhenClosePreviewer,A=["cherry-previewer cherry-markdown",r||"",t,Sf(this.nameSpace,"theme")?xf(!0,this.nameSpace):this.options.themeSettings.mainTheme].join(" ");i?(e=i).className+=" ".concat(A):e=sd("div",A);var s=sd("div","cherry-drag"),l=sd("div","cherry-editor-mask"),c=sd("div","cherry-previewer-mask");return this.previewer=new jL({$cherry:this,virtualDragLineDom:s,editorMaskDom:l,previewerMaskDom:c,previewerDom:e,value:this.options.value,isPreviewOnly:this.options.isPreviewOnly,enablePreviewerBubble:o,floatWhenClosePreviewer:a,lazyLoadImg:this.options.previewer.lazyLoadImg}),this.previewer}},{key:"clearFloatPreviewer",value:function(){this.wrapperDom.appendChild(this.previewer.getDom()),this.storageFloatPreviewerWrapData={x:this.floatPreviewerWrapDom.offsetLeft,y:this.floatPreviewerWrapDom.offsetTop,height:this.floatPreviewerWrapDom.offsetHeight,width:this.floatPreviewerWrapDom.offsetWidth},this.floatPreviewerWrapDom.remove(),this.removeFloatPreviewerListener()}},{key:"createFloatPreviewerListener",value:function(){document.addEventListener("mousedown",this.handleFloatPreviewerMouseDown),document.addEventListener("mousemove",this.handleFloatPreviewerMouseMove),document.addEventListener("mouseup",this.handleFloatPreviewerMouseUp)}},{key:"removeFloatPreviewerListener",value:function(){document.removeEventListener("mousedown",this.handleFloatPreviewerMouseDown),document.removeEventListener("mousemove",this.handleFloatPreviewerMouseMove),document.removeEventListener("mouseup",this.handleFloatPreviewerMouseUp)}},{key:"createFloatPreviewer",value:function(){var e=sd("div","float-previewer-wrap"),t=sd("div","float-previewer-header"),n=sd("div","float-previewer-title");n.innerHTML="预览",e.style.left="".concat(this.storageFloatPreviewerWrapData.x,"px"),e.style.top="".concat(this.storageFloatPreviewerWrapData.y,"px"),e.style.height="".concat(this.storageFloatPreviewerWrapData.height,"px"),e.style.width="".concat(this.storageFloatPreviewerWrapData.width,"px"),t.appendChild(n),e.appendChild(t),e.appendChild(this.previewer.getDom()),this.wrapperDom.appendChild(e),this.floatPreviewerHeaderDom=t,this.floatPreviewerWrapDom=e,this.pageWidth=document.body.clientWidth,this.pageHeight=document.body.clientHeight,this.createFloatPreviewerListener()}},{key:"initText",value:function(e){try{var t=e.getValue();this.lastMarkdownText=t;var n=this.engine.makeHtml(t);this.previewer.update(n),this.$event.emit("afterInit",{markdownText:t,html:n})}catch(e){throw new kg(e)}}},{key:"editText",value:function(e,t){var n=this;try{this.timer&&(clearTimeout(this.timer),this.timer=null);var r=this.options.engine.global.flowSessionContext?10:50;this.timer=gA((function(){var e=t.getValue();if(e!==n.lastMarkdownText){n.lastMarkdownText=e;var r=n.engine.makeHtml(e);n.previewer.update(r),n.$event.emit("afterChange",{markdownText:e,html:r})}n.options.editor.keepDocumentScrollAfterInit||t.scrollIntoView(null)}),r)}catch(e){throw new kg(e)}}},{key:"onChange",value:function(e){this.editor.editor.on("change",(function(t){e({markdown:t.getValue()})}))}},{key:"fireShortcutKey",value:function(e){var t=this.editor.editor.getCursor(),n=this.editor.editor.getLine(t.line);if(!e.shiftKey&&"Tab"===e.key&&Od.test(n)&&(0===t.ch||t.ch===n.length||t.ch===n.length+1)){e.preventDefault(),this.editor.editor.setSelection({line:t.line,ch:0},{line:t.line,ch:n.length}),this.editor.editor.replaceSelection("\t".concat(n),"around");var r=this.editor.editor.getCursor();this.editor.editor.setSelection(r,r)}this.toolbar.matchShortcutKey(e)&&(this.toolbar.fireShortcutKey(e)&&e.preventDefault())}},{key:"export",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pdf",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.previewer.export(e,t)}},{key:"getFirstLineText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="";if("show"===this.status.previewer)t=this.previewer.getDomContainer().innerText;else{var n=this.previewer.options.previewerCache.html;t=n?n.replace(/<\/[^>]+>/g,"\n").replace(/<[^>]+>/g,""):this.getValue().replace(/[#*|$>`]/g,"")}return/^\s*([^\s][^\n]*)\n/.test(t)?t.match(/^\s*([^\s][^\n]*)\n/)[1]:e}},{key:"setTheme",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";this.$event.emit("changeMainTheme",e),Qf(this,e)}},{key:"setCodeBlockTheme",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";this.$event.emit("changeCodeBlockTheme",e),If(this,e)}},{key:"setWritingStyle",value:function(e){this.editor.setWritingStyle(e)}},{key:"setLocale",value:function(e){return!!this.locales[e]&&(this.options.locale=e,this.locale=this.locales[e],this.$event.emit("afterChangeLocale",e),this.resetToolbar("toolbar",this.options.toolbars.toolbar||[]),!0)}},{key:"toggleToc",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(this.toc){var t="full";if(""===e)t="full"===this.toc.model?"pure":"full";else t=e;this.toc.$switchModel(t),this.toc.setModelToLocalStorage(t)}}},{key:"clearFlowSessionCursor",value:function(){var e;this.options.engine.global.flowSessionCursor&&(this.previewer.getDom().innerHTML=es(e=this.previewer.getDom().innerHTML).call(e,this.options.engine.global.flowSessionCursor,""))}}])}(BD);nA(SD,"initialized",!1),nA(SD,"config",{defaults:dD}),window&&(window.Cherry=SD);var xD=SD;e.MenuHookBase=zL,e.SyntaxHookBase=gf,e.default=xD,Object.defineProperty(e,"__esModule",{value:!0})})); \ No newline at end of file diff --git a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/js/cherry-markdown.min.js b/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/js/cherry-markdown.min.js deleted file mode 100644 index 0b7a1482..00000000 --- a/src/components/BootstrapBlazor.CherryMarkdown/wwwroot/js/cherry-markdown.min.js +++ /dev/null @@ -1 +0,0 @@ -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).Cherry={})}(this,(function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function r(t,e){return t(e={exports:{}},e.exports),e.exports}var i,a,o=function(t){return t&&t.Math==Math&&t},s=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof e&&e)||function(){return this}()||Function("return this")(),l=function(t){try{return!!t()}catch(t){return!0}},A=!l((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),u=Function.prototype,h=u.apply,f=u.call,d="object"==typeof Reflect&&Reflect.apply||(A?f.bind(h):function(){return f.apply(h,arguments)}),p=Function.prototype,g=p.bind,m=p.call,y=A&&g.bind(m,m),v=A?function(t){return t&&y(t)}:function(t){return t&&function(){return m.apply(t,arguments)}},b=function(t){return"function"==typeof t},_=!l((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),w=Function.prototype.call,E=A?w.bind(w):function(){return w.apply(w,arguments)},C={}.propertyIsEnumerable,x=Object.getOwnPropertyDescriptor,B={f:x&&!C.call({1:2},1)?function(t){var e=x(this,t);return!!e&&e.enumerable}:C},T=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},k=v({}.toString),S=v("".slice),I=function(t){return S(k(t),8,-1)},L=s.Object,F=v("".split),N=l((function(){return!L("z").propertyIsEnumerable(0)}))?function(t){return"String"==I(t)?F(t,""):L(t)}:L,D=s.TypeError,O=function(t){if(null==t)throw D("Can't call method on "+t);return t},M=function(t){return N(O(t))},R=function(t){return"object"==typeof t?null!==t:b(t)},U={},P=function(t){return b(t)?t:void 0},H=function(t,e){return arguments.length<2?P(U[t])||P(s[t]):U[t]&&U[t][e]||s[t]&&s[t][e]},Q=v({}.isPrototypeOf),G=H("navigator","userAgent")||"",$=s.process,K=s.Deno,j=$&&$.versions||K&&K.version,Y=j&&j.v8;Y&&(a=(i=Y.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!a&&G&&(!(i=G.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=G.match(/Chrome\/(\d+)/))&&(a=+i[1]);var z=a,W=!!Object.getOwnPropertySymbols&&!l((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&z&&z<41})),V=W&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,q=s.Object,X=V?function(t){return"symbol"==typeof t}:function(t){var e=H("Symbol");return b(e)&&Q(e.prototype,q(t))},J=s.String,Z=function(t){try{return J(t)}catch(t){return"Object"}},tt=s.TypeError,et=function(t){if(b(t))return t;throw tt(Z(t)+" is not a function")},nt=function(t,e){var n=t[e];return null==n?void 0:et(n)},rt=s.TypeError,it=Object.defineProperty,at=s["__core-js_shared__"]||function(t,e){try{it(s,t,{value:e,configurable:!0,writable:!0})}catch(n){s[t]=e}return e}("__core-js_shared__",{}),ot=r((function(t){(t.exports=function(t,e){return at[t]||(at[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.22.6",mode:"pure",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.6/LICENSE",source:"https://github.com/zloirock/core-js"})})),st=s.Object,ct=function(t){return st(O(t))},lt=v({}.hasOwnProperty),At=Object.hasOwn||function(t,e){return lt(ct(t),e)},ut=0,ht=Math.random(),ft=v(1..toString),dt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ft(++ut+ht,36)},pt=ot("wks"),gt=s.Symbol,mt=gt&>.for,yt=V?gt:gt&>.withoutSetter||dt,vt=function(t){if(!At(pt,t)||!W&&"string"!=typeof pt[t]){var e="Symbol."+t;W&&At(gt,t)?pt[t]=gt[t]:pt[t]=V&&mt?mt(e):yt(e)}return pt[t]},bt=s.TypeError,_t=vt("toPrimitive"),wt=function(t,e){if(!R(t)||X(t))return t;var n,r=nt(t,_t);if(r){if(void 0===e&&(e="default"),n=E(r,t,e),!R(n)||X(n))return n;throw bt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&b(n=t.toString)&&!R(r=E(n,t)))return r;if(b(n=t.valueOf)&&!R(r=E(n,t)))return r;if("string"!==e&&b(n=t.toString)&&!R(r=E(n,t)))return r;throw rt("Can't convert object to primitive value")}(t,e)},Et=function(t){var e=wt(t,"string");return X(e)?e:e+""},Ct=s.document,xt=R(Ct)&&R(Ct.createElement),Bt=function(t){return xt?Ct.createElement(t):{}},Tt=!_&&!l((function(){return 7!=Object.defineProperty(Bt("div"),"a",{get:function(){return 7}}).a})),kt=Object.getOwnPropertyDescriptor,St={f:_?kt:function(t,e){if(t=M(t),e=Et(e),Tt)try{return kt(t,e)}catch(t){}if(At(t,e))return T(!E(B.f,t,e),t[e])}},It=/#|\.prototype\./,Lt=function(t,e){var n=Nt[Ft(t)];return n==Ot||n!=Dt&&(b(e)?l(e):!!e)},Ft=Lt.normalize=function(t){return String(t).replace(It,".").toLowerCase()},Nt=Lt.data={},Dt=Lt.NATIVE="N",Ot=Lt.POLYFILL="P",Mt=Lt,Rt=v(v.bind),Ut=function(t,e){return et(t),void 0===e?t:A?Rt(t,e):function(){return t.apply(e,arguments)}},Pt=_&&l((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ht=s.String,Qt=s.TypeError,Gt=function(t){if(R(t))return t;throw Qt(Ht(t)+" is not an object")},$t=s.TypeError,Kt=Object.defineProperty,jt=Object.getOwnPropertyDescriptor,Yt={f:_?Pt?function(t,e,n){if(Gt(t),e=Et(e),Gt(n),"function"==typeof t&&"prototype"===e&&"value"in n&&"writable"in n&&!n.writable){var r=jt(t,e);r&&r.writable&&(t[e]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return Kt(t,e,n)}:Kt:function(t,e,n){if(Gt(t),e=Et(e),Gt(n),Tt)try{return Kt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw $t("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},zt=_?function(t,e,n){return Yt.f(t,e,T(1,n))}:function(t,e,n){return t[e]=n,t},Wt=St.f,Vt=function(t){var e=function(n,r,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,i)}return d(t,this,arguments)};return e.prototype=t.prototype,e},qt=function(t,e){var n,r,i,a,o,c,l,A,u=t.target,h=t.global,f=t.stat,d=t.proto,p=h?s:f?s[u]:(s[u]||{}).prototype,g=h?U:U[u]||zt(U,u,{})[u],m=g.prototype;for(i in e)n=!Mt(h?i:u+(f?".":"#")+i,t.forced)&&p&&At(p,i),o=g[i],n&&(c=t.dontCallGetSet?(A=Wt(p,i))&&A.value:p[i]),a=n&&c?c:e[i],n&&typeof o==typeof a||(l=t.bind&&n?Ut(a,s):t.wrap&&n?Vt(a):d&&b(a)?v(a):a,(t.sham||a&&a.sham||o&&o.sham)&&zt(l,"sham",!0),zt(g,i,l),d&&(At(U,r=u+"Prototype")||zt(U,r,{}),zt(U[r],i,a),t.real&&m&&!m[i]&&zt(m,i,a)))},Xt=v([].slice),Jt=s.Function,Zt=v([].concat),te=v([].join),ee={},ne=function(t,e,n){if(!At(ee,e)){for(var r=[],i=0;i0?xe:Ce)(e)},Te=function(t){var e=+t;return e!=e||0===e?0:Be(e)},ke=Math.max,Se=Math.min,Ie=function(t,e){var n=Te(t);return n<0?ke(n+e,0):Se(n,e)},Le=Math.min,Fe=function(t){return t>0?Le(Te(t),9007199254740991):0},Ne=function(t){return Fe(t.length)},De=function(t){return function(e,n,r){var i,a=M(e),o=Ne(a),s=Ie(r,o);if(t&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((t||s in a)&&a[s]===n)return t||s||0;return!t&&-1}},Oe={includes:De(!0),indexOf:De(!1)},Me={},Re=Oe.indexOf,Ue=v([].push),Pe=function(t,e){var n,r=M(t),i=0,a=[];for(n in r)!At(Me,n)&&At(r,n)&&Ue(a,n);for(;e.length>i;)At(r,n=e[i++])&&(~Re(a,n)||Ue(a,n));return a},He=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Qe=Object.keys||function(t){return Pe(t,He)},Ge={f:_&&!Pt?Object.defineProperties:function(t,e){Gt(t);for(var n,r=M(e),i=Qe(e),a=i.length,o=0;a>o;)Yt.f(t,n=i[o++],r[n]);return t}},$e=H("document","documentElement"),Ke=ot("keys"),je=function(t){return Ke[t]||(Ke[t]=dt(t))},Ye=je("IE_PROTO"),ze=function(){},We=function(t){return"