@jhuix/showdowns 0.6.2 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
1
  /*!
2
- * css of showdowns v0.6.2
2
+ * css of showdowns v0.6.3
3
3
  * Copyright (c) 2019-present, Jhuix (Hui Jin) <jhuix0117@gmail.com>
4
4
  * Released under the MIT License.
5
5
  */.showdowns blockquote,.showdowns dd,.showdowns div,.showdowns dl,.showdowns dt,.showdowns form,.showdowns h1,.showdowns h2,.showdowns h3,.showdowns h4,.showdowns h5,.showdowns h6,.showdowns li,.showdowns ol,.showdowns p,.showdowns pre,.showdowns td,.showdowns th,.showdowns ul{margin:0;padding:0}.showdowns div.paragraph.align-right,.showdowns h1.align-right,.showdowns h2.align-right,.showdowns h3.align-right,.showdowns h4.align-right,.showdowns h5.align-right,.showdowns h6.align-right,.showdowns li.align-right,.showdowns p.align-right{text-align:right}.showdowns div.paragraph.align-center,.showdowns h1.align-center,.showdowns h2.align-center,.showdowns h3.align-center,.showdowns h4.align-center,.showdowns h5.align-center,.showdowns h6.align-center,.showdowns li.align-center,.showdowns p.align-center{text-align:center}.showdowns a{color:#0366d6;line-height:inherit;text-decoration:none}.showdowns a img{border:none}.showdowns a:hover{cursor:pointer;text-decoration:underline}.showdowns img{-ms-interpolation-mode:bicubic;display:inherit;height:auto;margin:0 auto;max-width:100%}.showdowns p{font-family:inherit;font-size:1em;font-weight:400;line-height:1.5;margin-bottom:1.25em;text-rendering:optimizeLegibility}.showdowns p.lead{font-size:1.21875em;line-height:1.5}.showdowns p aside{font-size:.875em;font-style:italic;line-height:1.5}.showdowns h1,.showdowns h2,.showdowns h3,.showdowns h4,.showdowns h5,.showdowns h6{font-style:normal;font-weight:600;line-height:1.25;margin-bottom:1rem;margin-top:1.5rem;text-rendering:optimizeLegibility}.showdowns h1 small,.showdowns h2 small,.showdowns h3 small,.showdowns h4 small,.showdowns h5 small,.showdowns h6 small{font-size:60%;line-height:0}.showdowns h1,.showdowns h2{border-bottom:1px solid #d6d6d6;padding-bottom:.3em}.showdowns h1{font-size:2em}.showdowns h2{font-size:1.5em}.showdowns h3{font-size:1.25em}.showdowns h4{font-size:1em}.showdowns h5{font-size:.875em}.showdowns h6{color:#6a737d;font-size:.85em}.showdowns .subheader{color:#6f6f6f;font-weight:400;line-height:1.4;margin-bottom:.5em;margin-top:.2em}.showdowns hr{border:solid #ddd;border-width:1px 0 0;clear:both;height:0;margin:1.25em 0 1.1875em}.showdowns em,.showdowns i{font-style:italic;line-height:inherit}.showdowns b,.showdowns strong{font-weight:600;line-height:inherit}.showdowns small{font-size:60%;line-height:inherit}.showdowns code{border-style:solid;border-width:1px;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;font-weight:400;padding:.125em .3125em .0625em}.showdowns dl,.showdowns ol,.showdowns ul{font-family:inherit;font-size:1em;line-height:1.5;list-style-position:outside;margin-bottom:1.25em}.showdowns ul{margin-left:1.1em}.showdowns ul.no-bullet{margin-left:0}.showdowns ul.no-bullet li ol,.showdowns ul.no-bullet li ul{list-style:none;margin-bottom:0;margin-left:1.25em}.showdowns ul li ol,.showdowns ul li ul{margin-bottom:0;margin-left:1.25em}.showdowns ul.circle li ul,.showdowns ul.disc li ul,.showdowns ul.square li ul{list-style:inherit}.showdowns ul.square{list-style-type:square;margin-left:1.1em}.showdowns ul.circle{list-style-type:circle;margin-left:1.1em}.showdowns ul.disc{list-style-type:disc;margin-left:1.1em}.showdowns ul.no-bullet{list-style:none}.showdowns ol{margin-left:1.4em}.showdowns ol li ol,.showdowns ol li ul{margin-bottom:0;margin-left:1.25em}.showdowns dl dt{font-weight:600;margin-bottom:.3em}.showdowns dl dd{margin-bottom:.75em}.showdowns abbr,.showdowns acronym{color:#222;cursor:help;font-size:90%;text-transform:uppercase}.showdowns abbr{text-transform:none}.showdowns abbr[title]{border-bottom:1px dotted #5c5c5c}.showdowns blockquote{border-left:4px solid #d6d6d6;color:#5c5c5c;line-height:1.5;margin:0 0 16px;padding:0 15px}.showdowns blockquote cite{color:#555;display:block;font-size:.8125em}.showdowns blockquote cite:before{content:"\2014 \0020"}.showdowns blockquote cite a,.showdowns blockquote cite a:visited{color:#555}.showdowns pre{word-wrap:break-word;border:1px solid #dfdfdf;margin-bottom:1.5em;margin-top:1.5em;padding:.125em .3125em .0625em;white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap}.showdowns pre code{background-color:transparent;border:0;padding:0}.showdowns table{background:#fff;border-collapse:collapse;border-spacing:0;margin-bottom:1.25em;overflow:auto;table-layout:auto}.showdowns table caption{background:transparent;color:#222;font-weight:600}.showdowns table thead{background:#f5f5f5}.showdowns table thead tr td,.showdowns table thead tr th{border:1px solid #d6d6d6;color:#222;font-weight:600;line-height:1.125em;padding:.5em .625em .625em}.showdowns table tfoot{background:#f5f5f5}.showdowns table tfoot tr td,.showdowns table tfoot tr th{border:1px solid #d6d6d6;color:#222;font-weight:600;line-height:1.125em;padding:.5em .625em .625em}.showdowns table tr td,.showdowns table tr th{border:1px solid #d6d6d6;color:#222;line-height:1.125em;padding:.5625em .625em}.showdowns table tr.alt,.showdowns table tr.even,.showdowns table tr:nth-of-type(2n){background:#f9f9f9}.showdowns table tbody tr td,.showdowns table tbody tr th{border:1px solid #d6d6d6;line-height:1.125em}.showdowns .flow,.showdowns .flowchart,.showdowns .mermaid,.showdowns .plantuml,.showdowns .sequence,.showdowns .wavedrom{background-color:#f9f9f9}.showdowns .diagram-center:not(.asciimath):not(.latex):not(.mermaid){display:table;margin:auto}.showdowns .diagram-right:not(.asciimath):not(.latex):not(.mermaid){display:table;margin:auto 0 auto auto}.showdowns .diagram-center.mermaid{text-align:center}.showdowns .diagram-right.mermaid{text-align:right}.showdowns .asciimath:not(.diagram-center):not(.diagram-right) .katex,.showdowns .asciimath:not(.diagram-center):not(.diagram-right) .katex-display,.showdowns .latex:not(.diagram-center):not(.diagram-right) .katex,.showdowns .latex:not(.diagram-center):not(.diagram-right) .katex-display{text-align:unset}.showdowns .asciimath.diagram-center .katex,.showdowns .asciimath.diagram-center .katex-display,.showdowns .latex.diagram-center .katex,.showdowns .latex.diagram-center .katex-display{text-align:center}.showdowns .asciimath.diagram-right .katex,.showdowns .asciimath.diagram-right .katex-display,.showdowns .latex.diagram-right .katex,.showdowns .latex.diagram-right .katex-display{text-align:right}
6
6
 
7
7
  /*!
8
- * css of showdowns v0.6.2
8
+ * css of showdowns v0.6.3
9
9
  * Copyright (c) 2019-present, Jhuix (Hui Jin) <jhuix0117@gmail.com>
10
10
  * Released under the MIT License.
11
11
  */.showdowns .showdown-container{border:1px solid #eee;border-radius:.25rem;margin-bottom:1rem;padding:.75rem 1.25rem;position:relative}.showdowns .showdown-container.container{border-left-width:.25rem;border-right-width:.25rem}.showdowns .showdown-container.container.tip{border-left-color:#5bc0de;border-right-color:#5bc0de}.showdowns .showdown-container.container.info{border-left-color:#cce5ff;border-right-color:#cce5ff}.showdowns .showdown-container.container.warning{border-left-color:#f0ad4e;border-right-color:#f0ad4e}.showdowns .showdown-container.container.error{border-left-color:#d9534f;border-right-color:#d9534f}.showdowns .showdown-container.container.success{border-left-color:#67c23a;border-right-color:#67c23a}.showdowns .showdown-container.alert{border:1px solid transparent;transition:opacity .2s}.showdowns .showdown-container.alert.alert-tip{background-color:#5bc0de}.showdowns .showdown-container.alert.alert-info{background-color:#cce5ff}.showdowns .showdown-container.alert.alert-warning{background-color:#f0ad4e}.showdowns .showdown-container.alert.alert-error{background-color:#d9534f}.showdowns .showdown-container.alert.alert-success{background-color:#67c23a}.showdowns .showdown-container .container-title{font-size:1.25rem;font-weight:700;line-height:1.2}
@@ -1,7 +1,7 @@
1
1
  /*!
2
- * showdowns.core.min.js v0.6.2
2
+ * showdowns.core.min.js v0.6.3
3
3
  * Copyright (c) 2019-present, Jhuix (Hui Jin) <jhuix0117@gmail.com>
4
4
  * Released under the MIT License.
5
5
  */
6
- "use strict";var t=require("showdown"),e=require("zlib");t.ConverterExtObj=function(e,n){let o=[],i=e;function r(e,n){if(n=n||null,t.helper.isString(e)&&(n=t.helper.stdExtName(e),e=t.asyncExtension(n),t.helper.isUndefined(e)))throw Error('Extension "'+n+'" could not be loaded. It was either not found or is not a valid aync extension.');if("function"==typeof e&&(e=e()),t.helper.isArray(e)||(e=[e]),t.validateExtension(e))for(var i=0;e.length>i;++i)if("output"===e[i].type)o.push(e[i])}n&&t.helper.forEach(n,r),this.addAsyncExtension=function(t,e){r(t,e=e||null)},this.removeAsyncExtension=function(e){t.helper.isArray(e)||(e=[e]);for(var n=0;e.length>n;++n){const t=e[n];for(var i=0;o.length>i;++i)o[i]===t&&o.splice(i,1)}},this.getAsyncExtensions=function(){return o},this.getCurrFlavor=function(){return i},this.setCurrFlavor=function(t){i=t}},t.Converter.prototype.initConvertExtObj=function(e,n){return this.extObj=new t.ConverterExtObj(e,n),this.resetOptions=function(e){e=e||{};const n=t.getOptions();let o=this.getOptions();for(var i in n)n.hasOwnProperty(i)&&(o[i]=n[i]);if("object"==typeof e)for(var r in e)e.hasOwnProperty(r)&&(o[r]=e[r])},this.setFlavor=function(e){let n=t.getFlavorOptions(e);if(t.helper.isUndefined(n))return;this.extObj.setCurrFlavor(e);let o=t.getDefaultOptions(!0);for(var i in o)o.hasOwnProperty(i)&&(this.getOptions()[i]=o[i]);for(var i in n)n.hasOwnProperty(i)&&(this.getOptions()[i]=n[i])},this.getFlavor=function(){return this.extObj.getCurrFlavor()},this.addAsyncExtension=function(t,e){this.extObj.addAsyncExtension(t,e)},this.removeAsyncExtension=function(t){this.extObj.removeAsyncExtension(t)},this.removeExtension=function(e){t.helper.isArray(e)||(e=[e]);const n=this.getAllExtensions();let o=n.language,i=n.output;for(var r=0;e.length>r;++r){const t=e[r];for(var a=0;o.length>a;++a)o[a]===t&&o.splice(a,1);for(var u=0;i.length>u;++u)i[u]===t&&i.splice(u,1)}},this.asyncMakeHtml=function(t,e){const n=this.makeHtml(t),o=this.extObj.getAsyncExtensions();if(!o.length)return Promise.resolve({html:n});var i={outputs:o,converter:this};const r=(new DOMParser).parseFromString(n,"text/html"),a=void 0!==r.body?r.body:r,u=this.getOptions();let s=Promise.resolve({wrapper:a,options:u,globals:i,scripts:[]});return o.forEach((function(t){s=s.then((e=>{const n=t.filter(e);return n||e}))})),s.then((t=>{if("function"==typeof e&&e){const n=e(t);if(n instanceof Promise)return n.then((t=>({html:t.wrapper.innerHTML,scripts:t.scripts})))}return{html:t.wrapper.innerHTML,scripts:t.scripts}}))},this},t.subParser("githubCodeBlocks",(function(e,n,o){return n.ghCodeBlocks?(e=o.converter._dispatch("githubCodeBlocks.before",e,n,o),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*?)(?:[ \t]*?)((?:\{[\S\t ]*\}|\[[\S\t ]*\])?)\n([\s\S]*?)\n(?: {0,3})\1/g,(function(e,i,r,a,u){var s=n.omitExtraWLInCodeBlocks?"":"\n";return u=t.subParser("encodeCode")(u,n,o),u="<pre><code"+(r?' class="'+r+" language-"+r+'"':"")+(a?` data-lang='${a}'`:"")+">"+(u=(u=(u=t.subParser("detab")(u,n,o)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+s+"</code></pre>",u=t.subParser("hashBlock")(u,n,o),"\n\n¨G"+(o.ghCodeBlocks.push({text:e,codeblock:u})-1)+"G\n\n"}))).replace(/¨0/,""),o.converter._dispatch("githubCodeBlocks.after",e,n,o)):e})),t.subParser("tables",(function(e,n,o){if(!n.tables)return e;function i(t){return/^:[ \t]*--*$/.test(t)?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(t)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(t)?' style="text-align:center;"':""}function r(e,i,r,a,u){if(n.tablesMerge){var s=function(t,e,o,i){if(i){if(!n.tablesRowspan||"^^"!==i||!e)return;for(var r=e-1;r>=0;--r)if(t[r][o]){if("^^"!==t[r][o])return t[r][o]=t[r][o].replace(/rowspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,(function(t,n,o){return n+' rowspan="'+(e-r+1)+'"'+o})),i;if(0===r)return t[r][o]='<td rowspan="'+(e-r+1)+'"></td>\n',i}else for(var a=o-1;a>=0;-a){if(t[r+1][a]&&"^^"!==t[r+1][a])return;if(t[r][a]){if(!t[r+1][a])return;return t[r][a]=t[r][a].replace(/rowspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,(function(t,n,o){return n+' rowspan="'+(e-r+1)+'"'+o})),i}}}else if(o)for(a=o-1;a>=0;--a)if(t[e][a]){if("^^"!==t[e][a])return t[e][a]=t[e][a].replace(/colspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,(function(t,e,n){return e+' colspan="'+(o-a+1)+'"'+n})),i;for(r=e-1;r>=0;--r){if(t[r][a+1])return;if("^^"!==t[r][a])return t[r][a]=t[r][a].replace(/colspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,(function(t,e,n){return e+' colspan="'+(o-a+1)+'"'+n})),i}}else if(0===a)return t[e][a]='<td colspan="'+(o-a+1)+'"></td>\n',i}(e,i,r,a);if(!t.helper.isUndefined(s))return s}return a=a.trim(),"<td"+u+">"+t.subParser("spanGamut")(a,n,o)+"</td>\n"}function a(e,a){var u,s=e.split("\n");for(u=0;s.length>u;++u)/^ {0,3}\|/.test(s[u])&&(s[u]=s[u].replace(/^ {0,3}\|/,"")),/\|[ \t]*$/.test(s[u])&&(s[u]=s[u].replace(/\|[ \t]*$/,"")),s[u]=t.subParser("codeSpans")(s[u],n,o);var l,p,c,d=[],m=[],f=[],h=[],g=[];if(a)for(d=s[0].split("|").map((function(t){return t.trim()})),s.shift(),u=0;d.length>u;++u)h.push(i(d[u]));else{var y=s[0].split("|").map((function(t){return t.trim()}));if(d=s[1].split("|").map((function(t){return t.trim()})),s.shift(),s.shift(),d.length>y.length)return e;for(u=0;d.length>u;++u)h.push(i(d[u]));for(u=0;y.length>u;++u)t.helper.isUndefined(h[u])&&(h[u]=""),f.push((p=h[u],c=void 0,c="",l=(l=y[u]).trim(),(n.tablesHeaderId||n.tableHeaderId)&&(c=' id="'+l.replace(/ /g,"_").toLowerCase()+'"'),"<th"+c+p+">"+(l=t.subParser("spanGamut")(l,n,o))+"</th>\n"))}for(u=0;s.length>u;++u)""!==s[u].trim()&&m.push(s[u].split("|").map((function(t){var e=t.trim();return""===e&&t.length>0?t:e})));for(u=0;m.length>u;++u){var v=[];g.push(v);for(var w=0;h.length>w;++w)t.helper.isUndefined(m[u][w])&&(m[u][w]=""),v.push(r(g,u,w,m[u][w],h[w]))}return function(t,e,o){var i="<table>\n",r=e.length;if(t.length){i+="<thead>\n<tr>\n";for(var a=0;t.length>a;++a)i+=t[a];i+="</tr>\n</thead>\n"}for(i+="<tbody>\n",a=0;o.length>a;++a){i+="<tr>\n";for(var u=0;r>u;++u)n.tablesMerge&&"^^"===o[a][u]||(i+=o[a][u]);i+="</tr>\n"}return i+"</tbody>\n</table>\n"}(f,h,g)}function u(t){return a(t,!1)}function s(t){return a(t,!0)}return e=(e=(e=(e=o.converter._dispatch("tables.before",e,n,o)).replace(/\\(\|)/g,t.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,u)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,u),n.tablesHeaderless&&(e=(e=e.replace(/^ {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,s)).replace(/^ {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,s)),e=o.converter._dispatch("tables.after",e,n,o)}));let n="vanilla",o={github:{ghCompatibleHeaderId:!1,underline:!0,rawHeaderId:!0,tablesHeaderless:!0,tablesMerge:!0,tablesRowspan:!0},ghost:{tablesHeaderless:!0,tablesMerge:!0,tablesRowspan:!0},allOn:{tablesHeaderless:!0,tablesMerge:!0,tablesRowspan:!0}},i={};t.asyncExtension=function(e,n){if(!t.helper.isString(e))throw Error("Extension 'name' must be a string");if(e=t.helper.stdExtName(e),t.helper.isUndefined(n)){if(!i.hasOwnProperty(e))throw Error("Async Extension named "+e+" is not registered!");return i[e]}"function"==typeof n&&(n=n()),t.helper.isArray(n)||(n=[n]),t.validateExtension(n)&&(i[e]=n)},t.removeAsyncExtension=function(e){e=t.helper.stdExtName(e),delete i[e]},t.resetAsyncExtensions=function(){i={}},t.removeExtension=function(e){e=t.helper.stdExtName(e),delete t.getAllExtensions[e]};const r=t.setFlavor,a=t.getFlavorOptions;function u(t){return`${(new Date).Format("yyyy-MM-dd HH:mm:ss.S")} ${t}`}t.setFlavor=function(e){try{if(r(e),n=e,!o.hasOwnProperty(e))return}catch{if(!o.hasOwnProperty(e))return;t.resetOptions(),n=e}var i=o[e];for(var a in i)i.hasOwnProperty(a)&&(t.getOptions()[a]=i[a])},t.getFlavor=function(){return n},t.setFlavorOptions=function(t,e){e&&(o[t]=Object.assign(o[t]||{},e))},t.getFlavorOptions=function(e){const n=a(e);return t.helper.isUndefined(n)?o.hasOwnProperty(e)?o[e]:void 0:o.hasOwnProperty(e)?Object.assign(n,o[e]):n},Date.prototype.Format=function(t){var e={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"H+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};t||(t="yyyy-MM-dd hh:mm:ss.S");const n=/(y+)/.exec(t);n&&(t=t.replace(n[1],(this.getFullYear()+"").substring(4-n[1].length)));for(const n in e){const o=RegExp("("+n+")").exec(t);if(o){let i=e[n];1==o[1].length?i=("000"+e[n]).substring((""+e[n]).length):2==o[1].length&&(i=("00"+e[n]).substring((""+e[n]).length)),t=t.replace(o[1],i)}}return t};let s="jsdelivr",l="file:"===document.location.protocol?"https://":document.location.protocol+"//",p="",c="";const d={local:{ABCJS:"../node_modules/abcjs/dist/abcjs-basic.js",ABCJSCSS:"../node_modules/abcjs/abcjs-audio.css",echarts:"../node_modules/echarts/dist/echarts.js",Viz:"../node_modules/@viz-js/viz/lib/viz-standalone.js",Raphael:"../node_modules/raphael/raphael.min.js",flowchart:"../dist/diagrams/flowchart/flowchart.min.js",mermaid:"../node_modules/mermaid/dist/mermaid.js",katex:"../node_modules/katex/dist/katex.min.js",katexCSS:"../node_modules/katex/dist/katex.min.css",renderMathInElement:"../node_modules/katex/dist/contrib/auto-render.js",railroad:"../node_modules/railroad-diagrams/railroad-diagrams.js",railroadCSS:"../node_modules/railroad-diagrams/railroad-diagrams.css",Snap:"../node_modules/snapsvg/dist/snap.svg-min.js",WebFont:"../node_modules/webfontloader/webfontloader.js",underscore:"../node_modules/underscore/underscore-min.js",sequence:"../node_modules/@rokt33r/js-sequence-diagrams/dist/sequence-diagram-min.js",sequenceCSS:"../node_modules/@rokt33r/js-sequence-diagrams/dist/sequence-diagram-min.css",WaveDrom:"../node_modules/wavedrom/wavedrom.min.js",WaveDromSkin:{default:"../node_modules/wavedrom/skins/default.js",lowkey:"../node_modules/wavedrom/skins/lowkey.js",narrow:"../node_modules/wavedrom/skins/narrow.js"},vega:"../node_modules/vega/build/vega.js",vegaLite:"../node_modules/vega-lite/build/vega-lite.js",vegaEmbed:"../node_modules/vega-embed/build/vega-embed.js"},cdnjs:{ABCJS:l+"cdnjs.cloudflare.com/ajax/libs/abcjs/6.4.1/abcjs-basic-min.js",ABCJSCSS:l+"cdnjs.cloudflare.com/ajax/libs/abcjs/abcjs-audio.css",echarts:l+"cdnjs.cloudflare.com/ajax/libs/echarts/5.5.0/echarts.min.js",Viz:l+"cdn.jsdelivr.net/npm/@viz-js/viz@3/lib/viz-standalone.js",Raphael:l+"cdnjs.cloudflare.com/ajax/libs/raphael/2.3.0/raphael.min.js",flowchart:l+"cdnjs.cloudflare.com/ajax/libs/flowchart/1.18.0/flowchart.min.js",mermaid:l+"cdnjs.cloudflare.com/ajax/libs/mermaid/10.9.1/mermaid.min.js",katex:l+"cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.11/katex.min.js",katexCSS:l+"cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.11/katex.min.css",renderMathInElement:l+"cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.11/contrib/auto-render.js",railroad:l+"cdnjs.cloudflare.com/ajax/libs/railroad-diagrams/1.0.0/railroad-diagrams.js",railroadCSS:l+"cdnjs.cloudflare.com/ajax/libs/railroad-diagrams/1.0.0/railroad-diagrams.css",Snap:l+"cdnjs.cloudflare.com/ajax/libs/snap.svg/0.5.1/snap.svg-min.js",WebFont:l+"cdnjs.cloudflare.com/ajax/libs/webfont/1.6.28/webfontloader.js",underscore:l+"cdnjs.cloudflare.com/ajax/libs/underscore.js/1.13.6/underscore-min.js",sequence:l+"cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams@2.0.6-2/dist/sequence-diagram-min.js",sequenceCSS:l+"cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams@2.0.6-2/dist/sequence-diagram-min.css",WaveDrom:l+"cdnjs.cloudflare.com/ajax/libs/wavedrom/3.5.0/wavedrom.min.js",WaveDromSkin:{default:l+"cdnjs.cloudflare.com/ajax/libs/wavedrom/3.5.0/skins/default.js",lowkey:l+"cdnjs.cloudflare.com/ajax/libs/wavedrom/3.5.0/skins/lowkey.js",narrow:l+"cdnjs.cloudflare.com/ajax/libs/wavedrom/3.5.0/skins/narrow.js"},vega:l+"cdnjs.cloudflare.com/ajax/libs/vega/5.30.0/vega.min.js",vegaLite:l+"cdnjs.cloudflare.com/ajax/libs/vega-lite/5.19.0/vega-lite.min.js",vegaEmbed:l+"cdnjs.cloudflare.com/ajax/libs/vega-embed/6.26.0/vega-embed.min.js"},jsdelivr:{ABCJS:l+"cdn.jsdelivr.net/npm/abcjs@6/dist/abcjs-basic-min.js",ABCJSCSS:l+"cdn.jsdelivr.net/npm/abcjs@6/abcjs-audio.css",echarts:l+"cdn.jsdelivr.net/npm/echarts@5/dist/echarts.min.js",Viz:l+"cdn.jsdelivr.net/npm/@viz-js/viz@3/lib/viz-standalone.js",Raphael:l+"cdn.jsdelivr.net/npm/raphael@2/raphael.min.js",flowchart:l+"cdnjs.cloudflare.com/ajax/libs/flowchart/1.18.0/flowchart.min.js",mermaid:l+"cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.min.js",katex:l+"cdn.jsdelivr.net/npm/katex@0/dist/katex.min.js",katexCSS:l+"cdn.jsdelivr.net/npm/katex@0/dist/katex.min.css",renderMathInElement:l+"cdn.jsdelivr.net/npm/katex@0/dist/contrib/auto-render.js",railroad:l+"cdn.jsdelivr.net/npm/railroad-diagrams@1/railroad-diagrams.js",railroadCSS:l+"cdn.jsdelivr.net/npm/railroad-diagrams@1/railroad-diagrams.css",Snap:l+"cdn.jsdelivr.net/npm/snapsvg@0/dist/snap.svg-min.js",WebFont:l+"cdn.jsdelivr.net/npm/webfontloader@1/webfontloader.js",underscore:l+"cdn.jsdelivr.net/npm/underscore@1/underscore-min.js",sequence:l+"cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams@2.0.6-2/dist/sequence-diagram-min.js",sequenceCSS:l+"cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams@2.0.6-2/dist/sequence-diagram-min.css",WaveDrom:l+"cdn.jsdelivr.net/npm/wavedrom@3/wavedrom.min.js",WaveDromSkin:{default:l+"cdn.jsdelivr.net/npm/wavedrom@3/skins/default.js",lowkey:l+"cdn.jsdelivr.net/npm/wavedrom@3/skins/lowkey.js",narrow:l+"cdn.jsdelivr.net/npm/wavedrom@3/skins/narrow.js"},vega:l+"cdn.jsdelivr.net/npm/vega@5/build/vega.js",vegaLite:l+"cdn.jsdelivr.net/npm/vega-lite@5/build/vega-lite.js",vegaEmbed:l+"cdn.jsdelivr.net/npm/vega-embed@6/build/vega-embed.js"}};function m(t){if("object"==typeof t){const e=Object.keys(t)[0],n=t[e];if("string"==typeof n)return e+"-"+n}return t}function f(t,e){if(d.hasOwnProperty(s)){const n=d[s];let o="";if("object"==typeof t){const e=Object.keys(t)[0],i=t[e];n[e]&&"string"==typeof i&&i&&n[e][i]&&(o=n[e][i])}else n[t]&&(o=n[t]);o&&(e=o.substring(0,l.length)===l?o:"../dist/"===o.substring(0,8)?c+o:p+o)}return e}const h={setCDN:function(t,e,n){t in d&&(s=t),"string"==typeof e&&e&&(p=e),"string"==typeof n&&n&&(c=n)},getCDN:function(){return s},getSrc:f,loadScript:function(t,e){return new Promise(((n,o)=>{t&&"undefined"!=typeof document||o("Args is invaild!"),void 0===e&&(e=""),(e=f(t,e))||o(t+" script source invaild!");const i="script-"+m(t).toLowerCase();let r=document.getElementById(i);if(r)return n(t);const a=document.head||document.getElementsByTagName("head")[0];r=document.createElement("script"),r.src=e,r.id=i,r.onload=()=>{n(t)},a.appendChild(r)}))},unloadScript:function(t){t=m(t);const e=document.getElementById("script-"+t.toLowerCase());if(e){(document.head||document.getElementsByTagName("head")[0]).removeChild(e)}},loadStyleSheet:function(t,e){if(!t||"undefined"==typeof document)return"";if(void 0===e&&(e=""),!(e=f(t,e)))return"";const n="css-"+m(t).toLowerCase();if(!document.getElementById(n)){var o=document.head||document.getElementsByTagName("head")[0],i=document.createElement("link");i.rel="stylesheet",i.href=e,i.id=n,o.appendChild(i)}return"local"===s?"":e},unloadStyleSheet:function(t){t=m(t);const e=document.getElementById("css-"+t.toLowerCase());if(e){(document.head||document.getElementsByTagName("head")[0]).removeChild(e)}}};const g={interopDefault:function(t){return t&&"object"==typeof t&&"default"in t?t.default:t},loadStyle:function(t,e){if(!t||!e||"undefined"==typeof document)return!1;const n="css-"+t.toLowerCase();if(!document.getElementById(n)){const t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.id=n,o.innerText=e,t.appendChild(o)}return!0},loadScript:function(t,e){return new Promise(((n,o)=>{e&&"undefined"!=typeof document||o("Args is invaild!");const i=document.body;let r=document.getElementById(t);r?i.removeChild(r):(r=document.createElement("script"),r.id=t),r.type="text/javascript",r.text=e,i.appendChild(r),n(!0)}))},renderCacheElement:function(t,e,n,o){"undefined"!=typeof window&&window.document&&(t=window.document);const i=t.createElement("div");if(i.id=e,i.className=n,i.style.display="none",t.body.appendChild(i),"function"==typeof o&&o){const e=o(i);if(e instanceof Promise)return e.then((e=>{t.body.removeChild(e),e.style.display=""})),i.outerHTML}return t.body.removeChild(i),i.style.display="",i.outerHTML},renderElement:function(t,e,n){"undefined"!=typeof window&&window.document&&(t=window.document);const o=t.createElement("div");return o.id=e,o.className=n,t.body.appendChild(o),o},createElementMeta:function(t,e,n){const o=e.dataset.lang,i=o?JSON.parse(o):null;let r="";if(i){if("boolean"==typeof i.codeblock&&i.codeblock||"string"==typeof i.codeblock&&"true"===i.codeblock.toLowerCase())return!1;i.align&&("center"===i.align?r="diagram-center":"right"===i.align&&(r="diagram-right"))}let a=e.textContent.trim();n&&"function"==typeof n&&(a=n(a));const u=(e.classList.length>0?e.classList[0]:"")+(e.className&&r?" ":"")+r,s=t+"-"+Date.now()+"-"+Math.floor(1e4*Math.random());return e.id=s,{id:s,className:u,data:a,element:e}}},y="abc",v="ABCJSCSS";if("undefined"==typeof window)throw Error("The showdown abcjs extension can only be used in browser environment!");if(void 0===w)var w=window.ABCJS||void 0;function x(){return!!w}let b=!1;var j={add_classes:!0,responsive:"resize"};function S(t){const e=this;e.onReady=function(){},e.onStart=function(){const e=document.querySelector(`#${t} svg`),n=document.createElementNS("http://www.w3.org/2000/svg","line");n.setAttribute("class","abcjs-cursor"),n.setAttributeNS(null,"x1",0),n.setAttributeNS(null,"y1",0),n.setAttributeNS(null,"x2",0),n.setAttributeNS(null,"y2",0),e.appendChild(n)},e.beatSubdivisions=2,e.onBeat=function(t,e,n){},e.onEvent=function(e){if(e.measureStart&&null===e.left)return;const n=document.querySelectorAll(`#${t} svg .highlight`);for(let t=0;n.length>t;t++)n[t].classList.remove("highlight");for(let t=0;e.elements.length>t;t++){const n=e.elements[t];for(let t=0;n.length>t;t++)n[t].classList.add("highlight")}const o=document.querySelector(`#${t} svg .abcjs-cursor`);o&&(o.setAttribute("x1",e.left-2),o.setAttribute("x2",e.left-2),o.setAttribute("y1",e.top),o.setAttribute("y2",e.top+e.height))},e.onFinished=function(){const e=document.querySelectorAll(`#${t} svg .highlight`);for(let t=0;e.length>t;t++)e[t].classList.remove("highlight");const n=document.querySelector(`#${t} svg .abcjs-cursor`);n&&(n.setAttribute("x1",0),n.setAttribute("x2",0),n.setAttribute("y1",0),n.setAttribute("y2",0))}}let E;function O(t,e,n){w.synth.supportsAudio()?(E=new w.synth.SynthController,E.load("#"+t,new S(e),{displayLoop:!0,displayRestart:!0,displayPlay:!0,displayProgress:!0,displayWarp:!0})):document.querySelector("#"+t).innerHTML="<div class='audio-error'>Audio is not supported in this browser.</div>",function(t,e,n){E.disable(!0);const o=w.renderAbc(""+t,n,j)[0];(new w.synth.CreateSynth).init({visualObj:o}).then((function(t){E&&E.setTune(o,e).then((function(t){})).catch((function(t){}))})).catch((function(t){}))}(e,!1,n)}function k(t,e,n){if(x()){const o=n.id,i=n.className,r=btoa(n.data),a=n.cssLink,u=o+"-audio";let s=a?`<div id="${o}" class="${i} css-abc" data-css="${a}"></div>`:`<div id="${o}" class="${i}"></div>`;s+=`<div id="${u}"></div>`,n.element.parentNode.outerHTML=s;return e.push({id:o,code:`(function() {\n if (typeof window !== 'undefined' && window.dispatchEvent) {\n window.dispatchEvent(new CustomEvent('abcjs',{\n detail: {\n audio: '${u}',\n render: '${o}',\n data: '${r}'\n }\n }));\n }\n })();`}),t(!0)}setTimeout((()=>{k(t,e,n)}),10)}function C(t,e){return new Promise((n=>{let o=g.createElementMeta(y,t);if(!o)return n(!1);o.cssLink=h.getSrc(v),k(n,e,o)}))}function A(t,e){return function(){const t=x();if("undefined"!=typeof window){if(b)return t;t||(b=!0,h.loadStyleSheet(v),g.loadStyle("abc-audio",".highlight{fill: #0a9ecc;} .abcjs-cursor{stroke: red;} .abcjs-inline-audio .abcjs-midi-loop.abcjs-pushed{border: none;} .abcjs-inline-audio .abcjs-midi-loop.abcjs-pushed svg path{fill: #6eaa49;}"),h.loadScript("ABCJS").then((t=>{w=g.interopDefault(window[t])})))}}(),new Promise((n=>{const o=[];t.forEach((t=>{o.push(C(t,e))})),Promise.all(o).then((()=>{n(!0)}))}))}function $(){let t=!1;return[{type:"output",filter:function(e){const n=e.wrapper;if(!n)return!1;const o=n.querySelectorAll(`code.${y}.language-${y}`);return!!o.length&&(t||"undefined"!=typeof window&&window.dispatchEvent&&(t=!0,window.addEventListener("abcjs",(t=>{t.detail&&O(t.detail.audio,t.detail.render,atob(t.detail.data))}))),this.config={cssLink:h.getSrc(v)},A(o,e.scripts).then((()=>e)))}}]}function L(t,e,n,o){try{o&&(n=n.appendChild(t.ownerDocument.createElement("ul")));const i=n.appendChild(t.ownerDocument.createElement("li")).appendChild(t.ownerDocument.createElement("a"));e&&(i.appendChild(t.ownerDocument.createTextNode(e.textContent)),i.href="#"+e.id)}catch{}return n}function N(t,e,n,o){if(n.headingLevel>=o){let i=null;for(;n&&n.headingLevel>=o;)i=n,n=i.parentNode,i.parentNode=null,i.toc=null,i.headingLevel=null,i.preLevel=null;return n&&N(t,e,n,o),n}if(o>n.preLevel){for(n.preLevel++;o>n.preLevel;)n.toc=L(t,null,n.toc,!0),n.preLevel++;n.toc=L(t,e,n.toc,!0)}else{for(;n.preLevel>o;)n.toc=n.toc.parentNode,n.preLevel--;L(t,e,n.toc,!1)}return n.parentNode&&N(t,e,n.parentNode,o),n}function q(){const t=new DOMParser;return[{type:"output",filter:function(e){const n=t.parseFromString(e,"text/html"),o=void 0!==n.body?n.body:n;return function(t){let e=null,n=0,o=null,i=!1;const r=t.querySelectorAll("p,h1,h2,h3,h4,h5,h6");for(let a=0;r.length>a;a++)if(e=r[a],"[toc]"==e.textContent.trim().toLowerCase()){let r=t.ownerDocument.createElement("ul");r.className="showdown-toc",e.parentNode.replaceChild(r,e);let a={parentNode:null,toc:r,headingLevel:n,preLevel:0};if(o)if(n>o.headingLevel)a.parentNode=o;else{let t=o;for(;t.headingLevel>n;)t=t.parentNode;t&&(a.parentNode=n===t.headingLevel?t.parentNode:t)}o=a,i=!0}else if(e.tagName)switch(e.tagName){case"H1":case"H2":case"H3":case"H4":case"H5":case"H6":n=parseInt(e.tagName.substr(1)),o&&(o.preLevel||(o.preLevel=n),o=N(t,e,o,n))}for(;o;){let t=o;o=t.parentNode,t.parentNode=null,t.toc=null,t.headingLevel=null,t.preLevel=null}return i}(o)?o.innerHTML:e}}]}if("undefined"==typeof window)throw Error("The showdown viz extension can only be used in browser environment!");if(void 0===P)var P=window.Viz||void 0;const D=["circo","dot","neato","osage","twopi"];function M(){return!(void 0===P||!P||void 0===P.instance)}let T=!1;function _(t,e){if(M()){const n=e.id,o=e.className,i=e.data,r=e.element,a=e.element.dataset.lang;let u="dot";if(a){const t=JSON.parse(a);t&&t.engine&&-1!=D.indexOf(t.engine)&&(u=t.engine)}P.instance().then((e=>{const a=e.renderString(i,{format:"svg",engine:u});r.parentNode.outerHTML=`<div id="${n}" class="${o}">${a}</div>`,t(!0)}))}else setTimeout((()=>{_(t,e)}),10)}function H(t){return new Promise((e=>{const n=g.createElementMeta("viz",t);if(!n)return e(!1);_(e,n)}))}function F(t){return function(){const t=M();if("undefined"!=typeof window){if(T)return t;t||(T=!0,h.loadScript("Viz").then((t=>{P=g.interopDefault(window[t])})))}}(),new Promise((e=>{const n=[];t.forEach((t=>{n.push(H(t))})),Promise.all(n).then((()=>{e(!0)}))}))}function B(){return[{type:"output",filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.dot.language-dot");return!!n.length&&F(n).then((()=>t))}}]}const z="vega";if("undefined"==typeof window)throw Error("The showdown vega extension can only be used in browser environment!");if(void 0===R)var R=window.vegaEmbed||void 0;function J(){return!(void 0===R||!R)}let I=!1;function W(t,e,n,o){const i=g.createElementMeta(z,t);if(!i)return Promise.resolve(!1);const r=JSON.stringify(e),a=JSON.stringify(JSON.parse(i.data)),u=i.id;return n.push({id:u,code:`(function() {\n let el = document.getElementById('${u}');\n if (el){\n vegaEmbed(el, JSON.parse('${a}'), JSON.parse('${r}'));\n }\n })();`}),new Promise((t=>{G(t,i)}))}function V(t,e,n,o){return function(){const t=J();if("undefined"!=typeof window){if(I)return t;t||(I=!0,h.loadScript(z).then((()=>h.loadScript("vegaLite"))).then((()=>h.loadScript("vegaEmbed"))).then((t=>{R=g.interopDefault(window[t])})))}}(),new Promise((i=>{const r=[];t.forEach((t=>{r.push(W(t,o,n))})),e.forEach((t=>{r.push(W(t,o,n))})),Promise.all(r).then((()=>{i(!0)}))}))}function G(t,e){if(J()){return e.element.parentNode.outerHTML=`<div id="${e.id}" class="${e.className}"></div>`,t(!0)}setTimeout((()=>{G(t,e)}),10)}function U(t){const e=((t={})=>({actions:{editor:!1},theme:"vox",tooltip:!1,renderer:"svg",...t}))(t);return[{type:"output",config:e,filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.vega.language-vega"),o=e.querySelectorAll("code.vega-lite.language-vega-lite");return!(!n.length&&!o.length)&&V(n,o,t.scripts,this.config).then((()=>t))}}]}function K(){const t=new DOMParser;return[{type:"output",filter:function(e){const n=t.parseFromString(e,"text/html"),o=void 0!==n.body?n.body:n;return function(t){let e=null,n=null,o=!1;const i=t.querySelectorAll("p, li, h1, h2, h3, h4, h5, h6, div.paragraph");for(let t=0;i.length>t;t++)for(e=i[t],n=e.firstChild;n;){if(3===n.nodeType){let t=n.nodeValue.match(/^([\s\S]*?)([:-]-:)(?:[\s]?)([\s\S]*)$/);t&&(":-:"===t[2]?(n.nodeValue=t[3],e.className?e.className+=" align-center":e.className="align-center",o=!0):"--:"===t[2]&&(n.nodeValue=t[3],e.className?e.className+=" align-right":e.className="align-right",o=!0));break}n=n.nextSibling}return o}(o)?o.innerHTML:e}}]}var X={decimalsign:"."},Z=0,Q=1,Y=2,tt=3,et=4,nt=5,ot=6,it=7,rt=8,at=9,ut=10,st={input:'"',tag:"mtext",output:"mbox",tex:null,ttype:ut},lt=[{input:"alpha",tag:"mi",output:"α",tex:null,ttype:Z},{input:"beta",tag:"mi",output:"β",tex:null,ttype:Z},{input:"chi",tag:"mi",output:"χ",tex:null,ttype:Z},{input:"delta",tag:"mi",output:"δ",tex:null,ttype:Z},{input:"Delta",tag:"mo",output:"Δ",tex:null,ttype:Z},{input:"epsi",tag:"mi",output:"ε",tex:"epsilon",ttype:Z},{input:"varepsilon",tag:"mi",output:"ɛ",tex:null,ttype:Z},{input:"eta",tag:"mi",output:"η",tex:null,ttype:Z},{input:"gamma",tag:"mi",output:"γ",tex:null,ttype:Z},{input:"Gamma",tag:"mo",output:"Γ",tex:null,ttype:Z},{input:"iota",tag:"mi",output:"ι",tex:null,ttype:Z},{input:"kappa",tag:"mi",output:"κ",tex:null,ttype:Z},{input:"lambda",tag:"mi",output:"λ",tex:null,ttype:Z},{input:"Lambda",tag:"mo",output:"Λ",tex:null,ttype:Z},{input:"lamda",tag:"mi",output:"lambda",tex:null,ttype:rt},{input:"Lamda",tag:"mi",output:"Lambda",tex:null,ttype:rt},{input:"mu",tag:"mi",output:"μ",tex:null,ttype:Z},{input:"nu",tag:"mi",output:"ν",tex:null,ttype:Z},{input:"omega",tag:"mi",output:"ω",tex:null,ttype:Z},{input:"Omega",tag:"mo",output:"Ω",tex:null,ttype:Z},{input:"phi",tag:"mi",output:"φ",tex:null,ttype:Z},{input:"varphi",tag:"mi",output:"ϕ",tex:null,ttype:Z},{input:"Phi",tag:"mo",output:"Φ",tex:null,ttype:Z},{input:"pi",tag:"mi",output:"π",tex:null,ttype:Z},{input:"Pi",tag:"mo",output:"Π",tex:null,ttype:Z},{input:"psi",tag:"mi",output:"ψ",tex:null,ttype:Z},{input:"Psi",tag:"mi",output:"Ψ",tex:null,ttype:Z},{input:"rho",tag:"mi",output:"ρ",tex:null,ttype:Z},{input:"sigma",tag:"mi",output:"σ",tex:null,ttype:Z},{input:"Sigma",tag:"mo",output:"Σ",tex:null,ttype:Z},{input:"tau",tag:"mi",output:"τ",tex:null,ttype:Z},{input:"theta",tag:"mi",output:"θ",tex:null,ttype:Z},{input:"vartheta",tag:"mi",output:"ϑ",tex:null,ttype:Z},{input:"Theta",tag:"mo",output:"Θ",tex:null,ttype:Z},{input:"upsilon",tag:"mi",output:"υ",tex:null,ttype:Z},{input:"xi",tag:"mi",output:"ξ",tex:null,ttype:Z},{input:"Xi",tag:"mo",output:"Ξ",tex:null,ttype:Z},{input:"zeta",tag:"mi",output:"ζ",tex:null,ttype:Z},{input:"*",tag:"mo",output:"⋅",tex:"cdot",ttype:Z},{input:"**",tag:"mo",output:"∗",tex:"ast",ttype:Z},{input:"***",tag:"mo",output:"⋆",tex:"star",ttype:Z},{input:"//",tag:"mo",output:"/",tex:"/",ttype:Z,val:!0,notexcopy:!0},{input:"\\\\",tag:"mo",output:"\\",tex:"backslash",ttype:Z},{input:"setminus",tag:"mo",output:"\\",tex:null,ttype:Z},{input:"xx",tag:"mo",output:"×",tex:"times",ttype:Z},{input:"|><",tag:"mo",output:"⋉",tex:"ltimes",ttype:Z},{input:"><|",tag:"mo",output:"⋊",tex:"rtimes",ttype:Z},{input:"|><|",tag:"mo",output:"⋈",tex:"bowtie",ttype:Z},{input:"-:",tag:"mo",output:"÷",tex:"div",ttype:Z},{input:"divide",tag:"mo",output:"-:",tex:null,ttype:rt},{input:"@",tag:"mo",output:"∘",tex:"circ",ttype:Z},{input:"o+",tag:"mo",output:"⊕",tex:"oplus",ttype:Z},{input:"ox",tag:"mo",output:"⊗",tex:"otimes",ttype:Z},{input:"o.",tag:"mo",output:"⊙",tex:"odot",ttype:Z},{input:"sum",tag:"mo",output:"∑",tex:null,ttype:it},{input:"prod",tag:"mo",output:"∏",tex:null,ttype:it},{input:"^^",tag:"mo",output:"∧",tex:"wedge",ttype:Z},{input:"^^^",tag:"mo",output:"⋀",tex:"bigwedge",ttype:it},{input:"vv",tag:"mo",output:"∨",tex:"vee",ttype:Z},{input:"vvv",tag:"mo",output:"⋁",tex:"bigvee",ttype:it},{input:"nn",tag:"mo",output:"∩",tex:"cap",ttype:Z},{input:"nnn",tag:"mo",output:"⋂",tex:"bigcap",ttype:it},{input:"uu",tag:"mo",output:"∪",tex:"cup",ttype:Z},{input:"uuu",tag:"mo",output:"⋃",tex:"bigcup",ttype:it},{input:"overset",tag:"mover",output:"stackrel",tex:null,ttype:Y},{input:"underset",tag:"munder",output:"stackrel",tex:null,ttype:Y},{input:"!=",tag:"mo",output:"≠",tex:"ne",ttype:Z},{input:":=",tag:"mo",output:":=",tex:null,ttype:Z},{input:"lt",tag:"mo",output:"<",tex:null,ttype:Z},{input:"gt",tag:"mo",output:">",tex:null,ttype:Z},{input:"<=",tag:"mo",output:"≤",tex:"le",ttype:Z},{input:"lt=",tag:"mo",output:"≤",tex:"leq",ttype:Z},{input:"gt=",tag:"mo",output:"≥",tex:"geq",ttype:Z},{input:">=",tag:"mo",output:"≥",tex:"ge",ttype:Z},{input:"-<",tag:"mo",output:"≺",tex:"prec",ttype:Z},{input:"-lt",tag:"mo",output:"≺",tex:null,ttype:Z},{input:">-",tag:"mo",output:"≻",tex:"succ",ttype:Z},{input:"-<=",tag:"mo",output:"⪯",tex:"preceq",ttype:Z},{input:">-=",tag:"mo",output:"⪰",tex:"succeq",ttype:Z},{input:"in",tag:"mo",output:"∈",tex:null,ttype:Z},{input:"!in",tag:"mo",output:"∉",tex:"notin",ttype:Z},{input:"sub",tag:"mo",output:"⊂",tex:"subset",ttype:Z},{input:"sup",tag:"mo",output:"⊃",tex:"supset",ttype:Z},{input:"sube",tag:"mo",output:"⊆",tex:"subseteq",ttype:Z},{input:"supe",tag:"mo",output:"⊇",tex:"supseteq",ttype:Z},{input:"-=",tag:"mo",output:"≡",tex:"equiv",ttype:Z},{input:"~=",tag:"mo",output:"≅",tex:"stackrel{\\sim}{=}",notexcopy:!0,ttype:Z},{input:"cong",tag:"mo",output:"~=",tex:null,ttype:rt},{input:"~~",tag:"mo",output:"≈",tex:"approx",ttype:Z},{input:"prop",tag:"mo",output:"∝",tex:"propto",ttype:Z},{input:"and",tag:"mtext",output:"and",tex:null,ttype:ot},{input:"or",tag:"mtext",output:"or",tex:null,ttype:ot},{input:"not",tag:"mo",output:"¬",tex:"neg",ttype:Z},{input:"=>",tag:"mo",output:"⇒",tex:"Rightarrow",ttype:Z},{input:"implies",tag:"mo",output:"=>",tex:null,ttype:rt},{input:"if",tag:"mo",output:"if",tex:null,ttype:ot},{input:"<=>",tag:"mo",output:"⇔",tex:"Leftrightarrow",ttype:Z},{input:"iff",tag:"mo",output:"<=>",tex:null,ttype:rt},{input:"AA",tag:"mo",output:"∀",tex:"forall",ttype:Z},{input:"EE",tag:"mo",output:"∃",tex:"exists",ttype:Z},{input:"_|_",tag:"mo",output:"⊥",tex:"bot",ttype:Z},{input:"TT",tag:"mo",output:"⊤",tex:"top",ttype:Z},{input:"|--",tag:"mo",output:"⊢",tex:"vdash",ttype:Z},{input:"|==",tag:"mo",output:"⊨",tex:"models",ttype:Z},{input:"(",tag:"mo",output:"(",tex:null,ttype:et,val:!0},{input:")",tag:"mo",output:")",tex:null,ttype:nt,val:!0},{input:"[",tag:"mo",output:"[",tex:null,ttype:et,val:!0},{input:"]",tag:"mo",output:"]",tex:null,ttype:nt,val:!0},{input:"left(",tag:"mo",output:"(",tex:"(",notexcopy:!0,ttype:et,val:!0},{input:"right)",tag:"mo",output:")",tex:")",notexcopy:!0,ttype:nt,val:!0},{input:"left[",tag:"mo",output:"[",tex:"[",notexcopy:!0,ttype:et,val:!0},{input:"right]",tag:"mo",output:"]",tex:"]",notexcopy:!0,ttype:nt,val:!0},{input:"{",tag:"mo",output:"{",tex:"lbrace",ttype:et},{input:"}",tag:"mo",output:"}",tex:"rbrace",ttype:nt},{input:"|",tag:"mo",output:"|",tex:null,ttype:at,val:!0},{input:"|:",tag:"mo",output:"|",tex:"|",ttype:et,notexcopy:!0,val:!0},{input:":|",tag:"mo",output:"|",tex:"|",ttype:nt,notexcopy:!0,val:!0},{input:":|:",tag:"mo",output:"|",tex:"|",ttype:Z,notexcopy:!0,val:!0},{input:"(:",tag:"mo",output:"〈",tex:"langle",ttype:et},{input:":)",tag:"mo",output:"〉",tex:"rangle",ttype:nt},{input:"<<",tag:"mo",output:"〈",tex:"langle",ttype:et},{input:">>",tag:"mo",output:"〉",tex:"rangle",ttype:nt},{input:"{:",tag:"mo",output:"{:",tex:null,ttype:et,invisible:!0},{input:":}",tag:"mo",output:":}",tex:null,ttype:nt,invisible:!0},{input:"int",tag:"mo",output:"∫",tex:null,ttype:Z},{input:"dx",tag:"mi",output:"{:d x:}",tex:null,ttype:rt},{input:"dy",tag:"mi",output:"{:d y:}",tex:null,ttype:rt},{input:"dz",tag:"mi",output:"{:d z:}",tex:null,ttype:rt},{input:"dt",tag:"mi",output:"{:d t:}",tex:null,ttype:rt},{input:"oint",tag:"mo",output:"∮",tex:null,ttype:Z},{input:"del",tag:"mo",output:"∂",tex:"partial",ttype:Z},{input:"grad",tag:"mo",output:"∇",tex:"nabla",ttype:Z},{input:"+-",tag:"mo",output:"±",tex:"pm",ttype:Z},{input:"O/",tag:"mo",output:"∅",tex:"emptyset",ttype:Z},{input:"oo",tag:"mo",output:"∞",tex:"infty",ttype:Z},{input:"aleph",tag:"mo",output:"ℵ",tex:null,ttype:Z},{input:"...",tag:"mo",output:"...",tex:"ldots",ttype:Z},{input:":.",tag:"mo",output:"∴",tex:"therefore",ttype:Z},{input:":'",tag:"mo",output:"∵",tex:"because",ttype:Z},{input:"/_",tag:"mo",output:"∠",tex:"angle",ttype:Z},{input:"/_\\",tag:"mo",output:"△",tex:"triangle",ttype:Z},{input:"\\ ",tag:"mo",output:" ",tex:null,ttype:Z,val:!0},{input:"frown",tag:"mo",output:"⌢",tex:null,ttype:Z},{input:"%",tag:"mo",output:"%",tex:"%",ttype:Z,notexcopy:!0},{input:"quad",tag:"mo",output:"  ",tex:null,ttype:Z},{input:"qquad",tag:"mo",output:"    ",tex:null,ttype:Z},{input:"cdots",tag:"mo",output:"⋯",tex:null,ttype:Z},{input:"vdots",tag:"mo",output:"⋮",tex:null,ttype:Z},{input:"ddots",tag:"mo",output:"⋱",tex:null,ttype:Z},{input:"diamond",tag:"mo",output:"⋄",tex:null,ttype:Z},{input:"square",tag:"mo",output:"□",tex:"boxempty",ttype:Z},{input:"|__",tag:"mo",output:"⌊",tex:"lfloor",ttype:Z},{input:"__|",tag:"mo",output:"⌋",tex:"rfloor",ttype:Z},{input:"|~",tag:"mo",output:"⌈",tex:"lceil",ttype:Z},{input:"lceiling",tag:"mo",output:"|~",tex:null,ttype:rt},{input:"~|",tag:"mo",output:"⌉",tex:"rceil",ttype:Z},{input:"rceiling",tag:"mo",output:"~|",tex:null,ttype:rt},{input:"CC",tag:"mo",output:"ℂ",tex:"mathbb{C}",ttype:Z,notexcopy:!0},{input:"NN",tag:"mo",output:"ℕ",tex:"mathbb{N}",ttype:Z,notexcopy:!0},{input:"QQ",tag:"mo",output:"ℚ",tex:"mathbb{Q}",ttype:Z,notexcopy:!0},{input:"RR",tag:"mo",output:"ℝ",tex:"mathbb{R}",ttype:Z,notexcopy:!0},{input:"ZZ",tag:"mo",output:"ℤ",tex:"mathbb{Z}",ttype:Z,notexcopy:!0},{input:"f",tag:"mi",output:"f",tex:null,ttype:Q,func:!0,val:!0},{input:"g",tag:"mi",output:"g",tex:null,ttype:Q,func:!0,val:!0},{input:"''",tag:"mo",output:"''",tex:null,val:!0},{input:"'''",tag:"mo",output:"'''",tex:null,val:!0},{input:"''''",tag:"mo",output:"''''",tex:null,val:!0},{input:"lim",tag:"mo",output:"lim",tex:null,ttype:it},{input:"Lim",tag:"mo",output:"Lim",tex:null,ttype:it},{input:"sin",tag:"mo",output:"sin",tex:null,ttype:Q,func:!0},{input:"cos",tag:"mo",output:"cos",tex:null,ttype:Q,func:!0},{input:"tan",tag:"mo",output:"tan",tex:null,ttype:Q,func:!0},{input:"arcsin",tag:"mo",output:"arcsin",tex:null,ttype:Q,func:!0},{input:"arccos",tag:"mo",output:"arccos",tex:null,ttype:Q,func:!0},{input:"arctan",tag:"mo",output:"arctan",tex:null,ttype:Q,func:!0},{input:"sinh",tag:"mo",output:"sinh",tex:null,ttype:Q,func:!0},{input:"cosh",tag:"mo",output:"cosh",tex:null,ttype:Q,func:!0},{input:"tanh",tag:"mo",output:"tanh",tex:null,ttype:Q,func:!0},{input:"cot",tag:"mo",output:"cot",tex:null,ttype:Q,func:!0},{input:"coth",tag:"mo",output:"coth",tex:null,ttype:Q,func:!0},{input:"sech",tag:"mo",output:"sech",tex:null,ttype:Q,func:!0},{input:"csch",tag:"mo",output:"csch",tex:null,ttype:Q,func:!0},{input:"sec",tag:"mo",output:"sec",tex:null,ttype:Q,func:!0},{input:"csc",tag:"mo",output:"csc",tex:null,ttype:Q,func:!0},{input:"log",tag:"mo",output:"log",tex:null,ttype:Q,func:!0},{input:"ln",tag:"mo",output:"ln",tex:null,ttype:Q,func:!0},{input:"abs",tag:"mo",output:"abs",tex:null,ttype:Q,notexcopy:!0,rewriteleftright:["|","|"]},{input:"norm",tag:"mo",output:"norm",tex:null,ttype:Q,notexcopy:!0,rewriteleftright:["\\|","\\|"]},{input:"floor",tag:"mo",output:"floor",tex:null,ttype:Q,notexcopy:!0,rewriteleftright:["\\lfloor","\\rfloor"]},{input:"ceil",tag:"mo",output:"ceil",tex:null,ttype:Q,notexcopy:!0,rewriteleftright:["\\lceil","\\rceil"]},{input:"Sin",tag:"mo",output:"Sin",tex:null,ttype:Q,func:!0},{input:"Cos",tag:"mo",output:"Cos",tex:null,ttype:Q,func:!0},{input:"Tan",tag:"mo",output:"Tan",tex:null,ttype:Q,func:!0},{input:"Arcsin",tag:"mo",output:"Arcsin",tex:null,ttype:Q,func:!0},{input:"Arccos",tag:"mo",output:"Arccos",tex:null,ttype:Q,func:!0},{input:"Arctan",tag:"mo",output:"Arctan",tex:null,ttype:Q,func:!0},{input:"Sinh",tag:"mo",output:"Sinh",tex:null,ttype:Q,func:!0},{input:"Cosh",tag:"mo",output:"Cosh",tex:null,ttype:Q,func:!0},{input:"Tanh",tag:"mo",output:"Tanh",tex:null,ttype:Q,func:!0},{input:"Cot",tag:"mo",output:"Cot",tex:null,ttype:Q,func:!0},{input:"Sec",tag:"mo",output:"Sec",tex:null,ttype:Q,func:!0},{input:"Csc",tag:"mo",output:"Csc",tex:null,ttype:Q,func:!0},{input:"Log",tag:"mo",output:"Log",tex:null,ttype:Q,func:!0},{input:"Ln",tag:"mo",output:"Ln",tex:null,ttype:Q,func:!0},{input:"Abs",tag:"mo",output:"abs",tex:null,ttype:Q,notexcopy:!0,rewriteleftright:["|","|"]},{input:"det",tag:"mo",output:"det",tex:null,ttype:Q,func:!0},{input:"exp",tag:"mo",output:"exp",tex:null,ttype:Q,func:!0},{input:"dim",tag:"mo",output:"dim",tex:null,ttype:Z},{input:"mod",tag:"mo",output:"mod",tex:"text{mod}",ttype:Z,notexcopy:!0},{input:"gcd",tag:"mo",output:"gcd",tex:null,ttype:Q,func:!0},{input:"lcm",tag:"mo",output:"lcm",tex:"text{lcm}",ttype:Q,func:!0,notexcopy:!0},{input:"lub",tag:"mo",output:"lub",tex:null,ttype:Z},{input:"glb",tag:"mo",output:"glb",tex:null,ttype:Z},{input:"min",tag:"mo",output:"min",tex:null,ttype:it},{input:"max",tag:"mo",output:"max",tex:null,ttype:it},{input:"uarr",tag:"mo",output:"↑",tex:"uparrow",ttype:Z},{input:"darr",tag:"mo",output:"↓",tex:"downarrow",ttype:Z},{input:"rarr",tag:"mo",output:"→",tex:"rightarrow",ttype:Z},{input:"->",tag:"mo",output:"→",tex:"to",ttype:Z},{input:">->",tag:"mo",output:"↣",tex:"rightarrowtail",ttype:Z},{input:"->>",tag:"mo",output:"↠",tex:"twoheadrightarrow",ttype:Z},{input:">->>",tag:"mo",output:"⤖",tex:"twoheadrightarrowtail",ttype:Z},{input:"|->",tag:"mo",output:"↦",tex:"mapsto",ttype:Z},{input:"larr",tag:"mo",output:"←",tex:"leftarrow",ttype:Z},{input:"harr",tag:"mo",output:"↔",tex:"leftrightarrow",ttype:Z},{input:"rArr",tag:"mo",output:"⇒",tex:"Rightarrow",ttype:Z},{input:"lArr",tag:"mo",output:"⇐",tex:"Leftarrow",ttype:Z},{input:"hArr",tag:"mo",output:"⇔",tex:"Leftrightarrow",ttype:Z},{input:"sqrt",tag:"msqrt",output:"sqrt",tex:null,ttype:Q},{input:"root",tag:"mroot",output:"root",tex:null,ttype:Y},{input:"frac",tag:"mfrac",output:"/",tex:null,ttype:Y},{input:"/",tag:"mfrac",output:"/",tex:null,ttype:tt},{input:"stackrel",tag:"mover",output:"stackrel",tex:null,ttype:Y},{input:"_",tag:"msub",output:"_",tex:null,ttype:tt},{input:"^",tag:"msup",output:"^",tex:null,ttype:tt},{input:"cancel",tag:"menclose",output:"cancel",tex:null,ttype:Q},{input:"Sqrt",tag:"msqrt",output:"sqrt",tex:null,ttype:Q},{input:"hat",tag:"mover",output:"^",tex:null,ttype:Q,acc:!0},{input:"bar",tag:"mover",output:"¯",tex:"overline",ttype:Q,acc:!0},{input:"vec",tag:"mover",output:"→",tex:null,ttype:Q,acc:!0},{input:"tilde",tag:"mover",output:"~",tex:null,ttype:Q,acc:!0},{input:"dot",tag:"mover",output:".",tex:null,ttype:Q,acc:!0},{input:"ddot",tag:"mover",output:"..",tex:null,ttype:Q,acc:!0},{input:"overarc",tag:"mover",output:"⏜",tex:"stackrel{\\frown}",notexcopy:!0,ttype:Q,acc:!0},{input:"overparen",tag:"mover",output:"⏜",tex:"stackrel{\\frown}",notexcopy:!0,ttype:Q,acc:!0},{input:"ul",tag:"munder",output:"̲",tex:"underline",ttype:Q,acc:!0},{input:"ubrace",tag:"munder",output:"⏟",tex:"underbrace",ttype:Q,acc:!0},{input:"obrace",tag:"mover",output:"⏞",tex:"overbrace",ttype:Q,acc:!0},{input:"text",tag:"mtext",output:"text",tex:null,ttype:ut},{input:"mbox",tag:"mtext",output:"mbox",tex:null,ttype:ut},st,{input:"color",tag:"mstyle",ttype:Y},{input:"bb",tag:"mstyle",atname:"mathvariant",atval:"bold",output:"bb",tex:"mathbf",ttype:Q,notexcopy:!0},{input:"mathbf",tag:"mstyle",atname:"mathvariant",atval:"bold",output:"mathbf",tex:null,ttype:Q},{input:"sf",tag:"mstyle",atname:"mathvariant",atval:"sans-serif",output:"sf",tex:"mathsf",ttype:Q,notexcopy:!0},{input:"mathsf",tag:"mstyle",atname:"mathvariant",atval:"sans-serif",output:"mathsf",tex:null,ttype:Q},{input:"bbb",tag:"mstyle",atname:"mathvariant",atval:"double-struck",output:"bbb",tex:"mathbb",ttype:Q,notexcopy:!0},{input:"mathbb",tag:"mstyle",atname:"mathvariant",atval:"double-struck",output:"mathbb",tex:null,ttype:Q},{input:"cc",tag:"mstyle",atname:"mathvariant",atval:"script",output:"cc",tex:"mathcal",ttype:Q,notexcopy:!0},{input:"mathcal",tag:"mstyle",atname:"mathvariant",atval:"script",output:"mathcal",tex:null,ttype:Q},{input:"tt",tag:"mstyle",atname:"mathvariant",atval:"monospace",output:"tt",tex:"mathtt",ttype:Q,notexcopy:!0},{input:"mathtt",tag:"mstyle",atname:"mathvariant",atval:"monospace",output:"mathtt",tex:null,ttype:Q},{input:"fr",tag:"mstyle",atname:"mathvariant",atval:"fraktur",output:"fr",tex:"mathfrak",ttype:Q,notexcopy:!0},{input:"mathfrak",tag:"mstyle",atname:"mathvariant",atval:"fraktur",output:"mathfrak",tex:null,ttype:Q}];function pt(t,e){return t.input>e.input?1:-1}var ct,dt,mt,ft=[];function ht(t,e){var n;n="\\"==t.charAt(e)&&"\\"!=t.charAt(e+1)&&" "!=t.charAt(e+1)?t.slice(e+1):t.slice(e);for(var o=0;n.length>o&&32>=n.charCodeAt(o);o+=1);return n.slice(o)}function gt(t,e,n){if(0==n){var o,i;for(n=-1,o=t.length;o>n+1;)e>t[i=n+o>>1]?n=i:o=i;return o}for(var r=n;t.length>r&&e>t[r];r++);return r}function yt(t){for(var e,n,o,i=0,r="",a=!0,u=1;t.length>=u&&a;u++)n=t.slice(0,u),i=gt(ft,n,i),ft.length>i&&t.slice(0,ft[i].length)==ft[i]&&(e=i,u=(r=ft[i]).length),a=ft.length>i&&t.slice(0,ft[i].length)>=ft[i];if(dt=mt,""!=r)return mt=lt[e].ttype,lt[e];mt=Z,i=1,n=t.slice(0,1);for(var s=!0;n>="0"&&"9">=n&&t.length>=i;)n=t.slice(i,i+1),i++;if(n==X.decimalsign&&(n=t.slice(i,i+1))>="0"&&"9">=n)for(s=!1,i++;n>="0"&&"9">=n&&t.length>=i;)n=t.slice(i,i+1),i++;return s&&i>1||i>2?(n=t.slice(0,i-1),o="mn"):(i=2,o=("A">(n=t.slice(0,1))||n>"Z")&&("a">n||n>"z")?"mo":"mi"),"-"==n&&dt==tt?(mt=tt,{input:n,tag:o,output:n,ttype:Q,func:!0,val:!0}):{input:n,tag:o,output:n,ttype:Z,val:!0}}function vt(t){var e;if("{"==t.charAt(0)&&"}"==t.charAt(t.length-1)){var n=0;"\\left"==(e=t.substr(1,5))?"("==(e=t.charAt(6))||"["==e||"{"==e?n=7:"\\lbrace"==(e=t.substr(6,7))&&(n=13):"("!=(e=t.charAt(1))&&"["!=e||(n=2),n>0&&("\\right)}"==(e=t.substr(t.length-8))||"\\right]}"==e||"\\right.}"==e?t=(t="{"+t.substr(n)).substr(0,t.length-8)+"}":"\\rbrace}"==e&&(t=(t="{"+t.substr(n)).substr(0,t.length-14)+"}"))}return t}function wt(t){var e;return e="boolean"==typeof t.val&&t.val?"":"\\",null==t.tex?e+t.input:e+t.tex}function xt(t){var e,n,o,i,r="";if(null==(e=yt(t=ht(t,0)))||e.ttype==nt&&ct>0)return[null,t];switch(e.ttype==rt&&(e=yt(t=e.output+ht(t,e.input.length))),e.ttype){case it:case Z:t=ht(t,e.input.length);var a=wt(e);return"\\"==a.charAt(0)||"mo"==e.tag?[a,t]:["{"+a+"}",t];case et:ct++,o=jt(t=ht(t,e.input.length),!0),ct--;var u=0;return"\\right"==o[0].substr(0,6)&&(")"==(l=o[0].charAt(6))||"]"==l||"}"==l?u=6:"."==l?u=7:"\\rbrace"==(l=o[0].substr(6,7))&&(u=13)),u>0?(o[0]=o[0].substr(u),n="boolean"==typeof e.invisible&&e.invisible?"{"+o[0]+"}":"{"+wt(e)+o[0]+"}"):n="boolean"==typeof e.invisible&&e.invisible?"{\\left."+o[0]+"}":"{\\left"+wt(e)+o[0]+"}",[n,o[1]];case ut:return e!=st&&(t=ht(t,e.input.length)),-1==(i="{"==t.charAt(0)?t.indexOf("}"):"("==t.charAt(0)?t.indexOf(")"):"["==t.charAt(0)?t.indexOf("]"):e==st?t.slice(1).indexOf('"')+1:0)&&(i=t.length)," "==(l=t.slice(1,i)).charAt(0)&&(r="\\ "),r+="\\text{"+l+"}"," "==l.charAt(l.length-1)&&(r+="\\ "),[r,t=ht(t,i+1)];case Q:return null==(o=xt(t=ht(t,e.input.length)))[0]?["{"+wt(e)+"}",t]:"boolean"==typeof e.func&&e.func?"^"==(l=t.charAt(0))||"_"==l||"/"==l||"|"==l||","==l||1==e.input.length&&e.input.match(/\w/)&&"("!=l?["{"+wt(e)+"}",t]:[n="{"+wt(e)+"{"+o[0]+"}}",o[1]]:(o[0]=vt(o[0]),"sqrt"==e.input?["\\sqrt{"+o[0]+"}",o[1]]:"cancel"==e.input?["\\cancel{"+o[0]+"}",o[1]]:void 0!==e.rewriteleftright?["{\\left"+e.rewriteleftright[0]+o[0]+"\\right"+e.rewriteleftright[1]+"}",o[1]]:"boolean"==typeof e.acc&&e.acc?[wt(e)+"{"+o[0]+"}",o[1]]:["{"+wt(e)+"{"+o[0]+"}}",o[1]]);case Y:if(null==(o=xt(t=ht(t,e.input.length)))[0])return["{"+wt(e)+"}",t];o[0]=vt(o[0]);var s=xt(o[1]);return null==s[0]?["{"+wt(e)+"}",t]:(s[0]=vt(s[0]),[r="color"==e.input?"{\\color{"+o[0].replace(/[\{\}]/g,"")+"}"+s[0]+"}":"root"==e.input?"{\\sqrt["+o[0]+"]{"+s[0]+"}}":"{"+wt(e)+"{"+o[0]+"}{"+s[0]+"}}",s[1]]);case tt:return t=ht(t,e.input.length),[e.output,t];case ot:return t=ht(t,e.input.length),["{\\quad\\text{"+e.input+"}\\quad}",t];case at:ct++,o=jt(t=ht(t,e.input.length),!1),ct--;var l="";return"|"==(l=o[0].charAt(o[0].length-1))&&","!==t.charAt(0)?[n="{\\left|"+o[0]+"}",o[1]]:[n="{\\mid}",t];default:return t=ht(t,e.input.length),["{"+wt(e)+"}",t]}}function bt(t){var e,n,o,i,r;if(n=yt(t=ht(t,0)),i=(r=xt(t))[0],(e=yt(t=r[1])).ttype==tt&&"/"!=e.input){if((r=xt(t=ht(t,e.input.length)))[0]=null==r[0]?"{}":vt(r[0]),t=r[1],"_"==e.input)if("^"==(o=yt(t)).input){var a=xt(t=ht(t,o.input.length));a[0]=vt(a[0]),t=a[1],i="{"+i,i+="_{"+r[0]+"}",i+="^{"+a[0]+"}",i+="}"}else i+="_{"+r[0]+"}";else i=i+"^{"+r[0]+"}";void 0!==n.func&&n.func&&((o=yt(t)).ttype==tt||o.ttype==nt||1>=n.input.length&&o.ttype!=et||(i="{"+i+(r=bt(t))[0]+"}",t=r[1]))}return[i,t]}function jt(t,e){var n,o,i,r,a="",u=!1;do{o=(i=bt(t=ht(t,0)))[0],(n=yt(t=i[1])).ttype==tt&&"/"==n.input?((i=bt(t=ht(t,n.input.length)))[0]=null==i[0]?"{}":vt(i[0]),t=i[1],o="\\frac{"+(o=vt(o))+"}",a+=o+="{"+i[0]+"}",n=yt(t)):null!=o&&(a+=o)}while((n.ttype!=nt&&(n.ttype!=at||e)||0==ct)&&null!=n&&""!=n.output);if(n.ttype==nt||n.ttype==at){var s=a.length;if(s>2&&"{"==a.charAt(0)&&a.indexOf(",")>0){var l=a.charAt(s-2);if(")"==l||"]"==l){var p=a.charAt(6);if("("==p&&")"==l&&"}"!=n.output||"["==p&&"]"==l){var c="",d=[];d.push(0);var m=!0,f=0,h=[];h[0]=[0];var g=0,y=0,v="";for(r=1;s-1>r;r++)a.charAt(r)==p&&f++,a.charAt(r)==l&&0==--f&&","==a.charAt(r+2)&&"{"==a.charAt(r+3)&&(d.push(r+2),h[g=r+2]=[r+2]),"["!=a.charAt(r)&&"("!=a.charAt(r)&&"{"!=a.charAt(r)||y++,"]"!=a.charAt(r)&&")"!=a.charAt(r)&&"}"!=a.charAt(r)||y--,","==a.charAt(r)&&1==y&&h[g].push(r),0>y&&(g==r+1?r++:m=!1);d.push(s);var w=-1;if(0==f&&d.length>0&&m)for(r=0;d.length-1>r;r++){if(r>0&&(c+="\\\\"),0==r)if(1==h[d[r]].length)var x=[a.substr(d[r]+7,d[r+1]-d[r]-15)];else{x=[a.substring(d[r]+7,h[d[r]][1])];for(var b=2;h[d[r]].length>b;b++)x.push(a.substring(h[d[r]][b-1]+1,h[d[r]][b]));x.push(a.substring(h[d[r]][h[d[r]].length-1]+1,d[r+1]-8))}else if(1==h[d[r]].length)x=[a.substr(d[r]+8,d[r+1]-d[r]-16)];else{for(x=[a.substring(d[r]+8,h[d[r]][1])],b=2;h[d[r]].length>b;b++)x.push(a.substring(h[d[r]][b-1]+1,h[d[r]][b]));x.push(a.substring(h[d[r]][h[d[r]].length-1]+1,d[r+1]-8))}for(b=x.length-1;b>=0;b--)"{\\mid}"==x[b]?(0==r&&(v="|"+v),x.splice(b,1)):0==r&&(v="c"+v);w>0&&x.length!=w?m=!1:-1==w&&(w=x.length),c+=x.join("&")}c="\\begin{array}{"+v+"} "+c+"\\end{array}",m&&(a=c)}}}t=ht(t,n.input.length),"boolean"==typeof n.invisible&&n.invisible?(a+="\\right.",u=!0):(a+=o="\\right"+wt(n),u=!0)}return ct>0&&!u&&(a+="\\right."),[a,t]}function St(t){return ct=0,null==(t=(t=(t=t.replace(/(&nbsp;|\u00a0|&#160;)/g,"")).replace(/&gt;/g,">")).replace(/&lt;/g,"<")).match(/\S/)?"":jt(t.replace(/^\s+/g,""),!1)[0]}if(function(){var t,e=lt.length;for(t=0;e>t;t++)!lt[t].tex||"boolean"==typeof lt[t].notexcopy&&lt[t].notexcopy||lt.push({input:lt[t].tex,tag:lt[t].tag,output:lt[t].output,ttype:lt[t].ttype,acc:lt[t].acc||!1});!function(){var t;for(lt.sort(pt),t=0;lt.length>t;t++)ft[t]=lt[t].input}()}(),"undefined"==typeof window)throw Error("The showdown katex extension can only be used in browser environment!");if(void 0===Et)var Et=window.katex||void 0;if("undefined"==typeof renderMathInElement)var Ot=window.renderMathInElement||void 0;let kt=0;function Ct(){return!(void 0===Ot||!Ot||void 0===Et||!Et)}let At=!1;const $t="katexCSS";function Lt(t){const e=Ct();if("undefined"!=typeof window){if(At)return e;if(!e)return At=!0,h.loadStyleSheet($t),h.loadScript("katex").then((t=>(Et=g.interopDefault(window[t]),h.loadScript("renderMathInElement")))).then((e=>{Ot=g.interopDefault(window[e]),"function"==typeof t&&t&&t(Ot)})).catch((t=>{})),e}return"function"==typeof t&&t&&t(Ot),e}function Nt(t,e){if(Ct()){const n=e.className,o=e.input,i=e.data,r=e.cssLink,a=e.options,u=e.element.ownerDocument;let s="";if(i instanceof Array)i.forEach((t=>{if(""===t)s+="<br>";else{const e=Et.renderToString(t,a);s+=r?`<div title="${o}" class="${n} css-katex" data-css="${r}">${e}</div>`:`<div title="${o}" class="${n}">${e}</div>`}}));else{const t=Et.renderToString(i,a);s=r?`<div title="${o}" class="${n} css-katex" data-css="${r}">${t}</div>`:`<div title="${o}" class="${n}">${t}</div>`}e.element.parentNode.outerHTML=s,--kt,kt||Ot(u.body,a),t(!0)}else setTimeout((()=>{Nt(t,e)}),10)}function qt(t,e,n){return new Promise((o=>{let i;const r=g.createElementMeta("katex",t,(t=>{let e;i=t;const o=t.split(/\n[ \f\r\t\v]*\n/);return o.length>1?(e=[],o.forEach((t=>{""!==(t=t.trim())&&(t=n?St(t):t),e.push(t)}))):e=n?St(i):i,e}));if(!r)return o(!1);r.cssLink=h.getSrc($t),r.input=i,r.options=e,Nt(o,r)}))}function Pt(t){return t.replace(/[-[\]/{}()*+?.\\$^|]/g,"\\$&")}const Dt=(t={})=>{let e={displayMode:!0,throwOnError:!1,errorColor:"#ff0000",delimiters:null,...t};function n(t,e){return!(!t||"object"!=typeof t||!t.hasOwnProperty(e))}function o(t,e,o){return!!(n(t,e)&&n(t[e],o)&&(i=t[e][o],Array.isArray(i)&&i.length))&&(t[e][o].forEach((t=>{t.display="inline"!==o,"asciimath"===e&&(t.asciimath=!0)})),t[e][o]);var i}return Array.isArray(e.delimiters)?e.delimiters.length||(e.delimiters=[{left:"$$",right:"$$",display:!0},{left:"\\[",right:"\\]",display:!0},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\(",right:"\\)",display:!1},{left:"@@",right:"@@",display:!0,asciimath:!0},{left:"@ ",right:" @",display:!1,asciimath:!0},{left:"\\~",right:"\\~",display:!1,asciimath:!0}]):e.delimiters=[].concat(o(e.delimiters,"texmath","display")||[{left:"$$",right:"$$",display:!0},{left:"\\[",right:"\\]",display:!0},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0}]).concat(o(e.delimiters,"texmath","inline")||[{left:"\\(",right:"\\)",display:!1}]).concat(o(e.delimiters,"asciimath","display")||[{left:"@@",right:"@@",display:!0,asciimath:!0}]).concat(o(e.delimiters,"asciimath","inline")||[{left:"@ ",right:" @",display:!1,asciimath:!0},{left:"\\~",right:"\\~",display:!1,asciimath:!0}]),e};function Mt(t){let e=0;const n=Dt(t),o=n.delimiters.map((({left:t,right:n,display:o,asciimath:i})=>({test:RegExp(`${Pt(t)}(.+?)${Pt(n)}`,"g"),replacer:(t,n)=>(++e,i&&(n=St(n)),o?`\\[${n}\\]`:`\\(${n}\\)`)})));return[{type:"output",config:n,filter:function(t){e=0;const i=t.wrapper;if(!i)return!1;o.length&&i.querySelectorAll(":not(code):not(pre)").forEach((t=>{[...t.childNodes].filter((t=>"#text"===t.nodeName&&t.nodeValue.trim())).forEach((t=>{const e=o.reduce(((t,{test:e,replacer:n})=>t.replace(e,n)),t.nodeValue);t.nodeValue=e}))}));const r=i.querySelectorAll("code.latex.language-latex"),a=i.querySelectorAll("code.asciimath.language-asciimath");if(!r.length&&!a.length){if(e>0){this.config.cssLink=h.getSrc($t);const u=this;function s(t,e){Ct()?(e(i.ownerDocument.body,u.config),t(!0)):setTimeout((()=>{s(t,e)}),10)}return new Promise((t=>{Lt((e=>{s(t,e)}))})).then((()=>t))}return!1}return n.cssLink=h.getSrc($t),function(t,e,n){return kt=t.length+e.length,Lt(),new Promise((o=>{const i=[];t.forEach((t=>{i.push(qt(t,n,!1))})),e.forEach((t=>{i.push(qt(t,n,!0))})),Promise.all(i).then((()=>{o(!0)}))}))}(r,a,this.config).then((()=>t))}}]}const Tt="echarts";if("undefined"==typeof window)throw Error(`The showdown ${Tt} extension can only be used in browser environment!`);if(void 0===_t)var _t=window.echarts||void 0;function Ht(){return!!_t}let Ft=!1;function Bt(t,e){if(Ht()){return e.element.parentNode.outerHTML=`<div id="${e.id}" class="${e.className}"></div>`,t(!0)}setTimeout((()=>{Bt(t,e)}),20)}function zt(t,e,n){const o=g.createElementMeta(Tt,t);if(!o)return Promise.resolve(!1);n=JSON.stringify({...n,ssr:!1});const i=JSON.stringify(JSON.parse(o.data));return e.push({id:o.id,code:`(function() {\n let el = document.getElementById('${o.id}');\n if (el){\n let config = JSON.parse('${n}');\n let chart = echarts.init(el, null, config);\n let option = JSON.parse('${i}');\n chart.setOption(option);\n }\n })();`}),new Promise((t=>{Bt(t,o)}))}function Rt(t,e,n){return function(){const t=Ht();if("undefined"!=typeof window){if(Ft)return t;t||(Ft=!0,h.loadScript(Tt).then((t=>{_t=g.interopDefault(window[t])})))}}(),new Promise((o=>{const i=[];t.forEach((t=>{i.push(zt(t,e,n))})),Promise.all(i).then((()=>{o(!0)}))}))}function Jt(t){return[{type:"output",config:((t={})=>({renderer:"svg",ssr:!1,width:400,height:300,tooltip:{show:!0},animation:!0,...t}))(t),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll(`code.${Tt}.language-${Tt}`);return!!n.length&&Rt(n,t.scripts,this.config).then((()=>t))}}]}const It="mermaid";if("undefined"==typeof window)throw Error("The showdown mermaid extension can only be used in browser environment!");if(void 0===Wt)var Wt=window.mermaid||void 0;function Vt(){return!(void 0===Wt||!Wt)}let Gt=!1;function Ut(t,e){if(Vt()){const n=e.className,o=e.element.parentNode;Wt.render(e.id,e.data).then((e=>{o.outerHTML=`<div class="${n}">${e.svg}</div>`,t(!0)}))}else setTimeout((()=>{Ut(t,e)}),10)}function Kt(t){return new Promise((e=>{const n=g.createElementMeta(It,t);if(!n)return e(!1);Ut(e,n)}))}function Xt(t,e){return function(t){const e=Vt();if("undefined"!=typeof window){if(Gt)return e;if(!e)return Gt=!0,h.loadScript(It).then((e=>{(Wt=g.interopDefault(window[e])).initialize(t)})),e}Wt.initialize(t)}(e),new Promise((e=>{const n=[];t.forEach((t=>{n.push(Kt(t))})),Promise.all(n).then((()=>{e(!0)}))}))}function Zt(t){return[{type:"output",config:((t={})=>({theme:"forest",logLevel:4,startOnLoad:!1,arrowMarkerAbsolute:!1,flowchart:{curve:"basis"},gantt:{axisFormat:"%m/%d/%Y"},sequence:{actorMargin:50},...t}))(t),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.mermaid.language-mermaid");return!!n.length&&Xt(n,this.config).then((()=>t))}}]}function Qt(t,e,n){var o=(3&t)<<4|e>>4,i=(15&e)<<2|n>>6,r=63&n,a="";return a+=Yt(63&t>>2),a+=Yt(63&o),a+=Yt(63&i),a+=Yt(63&r)}function Yt(t){return 10>t?String.fromCharCode(48+t):26>(t-=10)?String.fromCharCode(65+t):26>(t-=26)?String.fromCharCode(97+t):0==(t-=26)?"-":1==t?"_":"?"}function te(t){var e=t.charCodeAt(0);return"_"===t?63:"-"===t?62:97>e?65>e?48>e?"?":e-48:e-55:e-61}function ee(t){var e=te(t[0]),n=te(t[1]),o=te(t[2]);return[e<<2|n>>4&63,n<<4&240|o>>2&15,o<<6&192|63&te(t[3])]}function ne(t){return function(t){for(var e="",n=0;t.length>n;n+=3)e+=n+2==t.length?Qt(t.charCodeAt(n),t.charCodeAt(n+1),0):n+1==t.length?Qt(t.charCodeAt(n),0,0):Qt(t.charCodeAt(n),t.charCodeAt(n+1),t.charCodeAt(n+2));return e}(e.deflateRawSync(t,{level:9}).toString("binary"))}function oe(t){return""+e.inflateRawSync(Buffer.from(function(t){var e="",n=0;for(n=0;t.length>n;n+=4){var o=ee(t.substring(n,n+4));e+=String.fromCharCode(o[0]),e+=String.fromCharCode(o[1]),e+=String.fromCharCode(o[2])}return e}(t),"binary"))}const ie={encodeuml:function(t){const e="@startuml",n="@enduml";return ne(`${e}${(t.split(e)[1]+"").split(n)[0]||""}${n}`)},decodeuml:function(t){return oe(t)}},re="img";let ae=0;function ue(t,e){return ae=t.length,new Promise((n=>{const o=[];t.forEach((t=>{o.push(function(t,e){return new Promise((n=>{const o=t.dataset.lang,i=o?JSON.parse(o):null;let r="";if(i){if("boolean"==typeof i.codeblock&&i.codeblock||"string"==typeof i.codeblock&&"true"===i.codeblock.toLowerCase())return n(!1);i.align&&("center"===i.align?r="diagram-center":"right"===i.align&&(r="diagram-right"))}const a=t.textContent.trim(),u=(t.classList.length>0?t.classList[0]:"")+(t.className&&r?" ":"")+r,s=e.imageFormat;if("svg"!==s){const o=window&&window.location.protocol,i=("http:"===o||"https:"===o?"//":"https://")+e.umlWebSite,r=s!==re?"."+s:"",l=ie.encodeuml(a);return t.parentNode.outerHTML=`<div class="${u}"><img src='${i}/${s}/${l}${r}' alt=''></img></div>`,n(!0)}{const o="plantuml-"+Date.now()+"-"+Math.floor(1e4*Math.random());if("function"==typeof e.svgRender&&e.svgRender)e.svgRender(o,u,a,ae).then((e=>{t.parentNode.outerHTML=`<div id="${o}" class="${u}">${e}</div>`,n(!0)}));else if("undefined"!=typeof window&&window.fetch&&window.dispatchEvent){const i=window&&window.location.protocol,r=("http:"===i||"https:"===i?"//":"https://")+e.umlWebSite,l=s!==re?"."+s:"",p=ie.encodeuml(a);window.fetch(`${r}/${s}/${p}${l}`).then((t=>{if(t.ok)return t.text()})).then((e=>{t.parentNode.outerHTML=`<div id="${o}" class="${u}">${e}</div>`,n(!0)}))}}}))}(t,e))})),Promise.all(o).then((()=>{n(!0)}))}))}function se(t){return[{type:"output",config:((t={})=>({umlWebSite:"www.plantuml.com/plantuml",imageFormat:re,svgRender:null,...t}))(t),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.plantuml.language-plantuml");return!!n.length&&ue(n,this.config).then((()=>t))}}]}const le="railroad",pe="railroadCSS";if("undefined"==typeof window)throw Error("The showdown railroad extension can only be used in browser environment!");let ce=!1;function de(){return ce}let me,fe=!1;function he(t,e){if(de()){const n=e.id,o=e.className,i=e.cssLink,r=window.eval(e.data).format(),a=e.element.ownerDocument;return e.element.parentNode.outerHTML=i?`<div id="${n}" class="${o} css-railroad" data-css="${i}"></div>`:`<div id="${n}" class="${o}"></div>`,r.addTo(a.getElementById(n)),t(!0)}setTimeout((()=>{he(t,e)}),10)}function ge(t){return new Promise((e=>{const n=g.createElementMeta(le,t);if(!n)return e(!1);n.cssLink=h.getSrc(pe),he(e,n)}))}function ye(t){return function(){const t=de();if("undefined"!=typeof window){if(fe)return t;t||(fe=!0,h.loadStyleSheet(pe),h.loadScript(le).then((()=>{ce=!0})))}}(),new Promise((e=>{const n=[];t.forEach((t=>{n.push(ge(t))})),Promise.all(n).then((()=>{e(!0)}))}))}function ve(){return[{type:"output",filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.railroad.language-railroad");return!!n.length&&(this.config={cssLink:h.getSrc(pe)},ye(n).then((()=>t)))}}]}if("undefined"==typeof window)throw Error("The showdown sequence extension can only be used in browser environment!");if(void 0===we)var we=window.Raphael||void 0;if("undefined"!=typeof window&&window.Diagram&&(me=window.Diagram,window.Diagram.Signal))var xe=window.Diagram;const be=["simple","hand"];if(void 0===xe&&"undefined"!=typeof window)xe=window.SequenceJS;function je(){return!!we}function Se(){return je()&&!!xe}let Ee=!1;const Oe="sequenceCSS";function ke(t){const e=t.dataset.lang,n=e?JSON.parse(e):null;let o="";if(n){if("boolean"==typeof n.codeblock&&n.codeblock||"string"==typeof n.codeblock&&"true"===n.codeblock.toLowerCase())return;n.align&&("center"===n.align?o="diagram-center":"right"===n.align&&(o="diagram-right"))}const i=function(){const t=Se();if("undefined"!=typeof window){if(Ee)return t;t||(Ee=!0,h.loadStyleSheet(Oe),h.loadScript("WebFont").then((()=>je()?"Raphael":h.loadScript("Raphael"))).then((t=>(we=g.interopDefault(window[t]),h.loadScript("Snap")))).then((()=>h.loadScript("underscore"))).then((()=>(!me&&window.Diagram&&(me=window.Diagram),h.loadScript("sequence")))).then((()=>{xe=window.Diagram,window.SequenceJS=xe,me&&(window.Diagram=me)})))}return t}(),r=h.getSrc(Oe),a=t.textContent.trim(),u="js-sequence"+(o?" ":"")+o,s="sequence-"+Date.now()+"-"+Math.floor(1e4*Math.random());t.id=s,r&&(t.className=t.className+(t.className?" ":"")+"css-sequence",t.dataset.css=r),!i&&"undefined"!=typeof window&&window.dispatchEvent?Promise.resolve(s).then((t=>{window.dispatchEvent(new CustomEvent("sequence",{detail:{id:t,className:u,data:a,langattr:e,cssLink:r}}))})):"undefined"!=typeof window&&window.dispatchEvent&&window.dispatchEvent(new CustomEvent("sequence",{detail:{id:s,className:u,data:a,langattr:e,cssLink:r}}))}function Ce(t){if(Se()){const e=t.id,n=t.className,o=t.data,i=t.cssLink;let r="hand";const a=t.langattr;if(a){const t=JSON.parse(a);t&&t.theme&&-1!=be.indexOf(t.theme)&&(r=t.theme)}let u=window.document.getElementById(e);if(u){u.parentNode.outerHTML=i?`<div id="${e}" class="${n} css-sequence" data-css="${i}"></div>`:`<div id="${e}" class="${n}"></div>`,u=window.document.getElementById(e);return void xe.parse(o).drawSVG(u||e,{theme:r})}}setTimeout((()=>{Ce(t)}),10)}function Ae(){let t=!1;const e=new DOMParser;return[{type:"output",filter:function(n){const o=e.parseFromString(n,"text/html"),i=void 0!==o.body?o.body:o,r=i.querySelectorAll("code.sequence.language-sequence");return r.length&&(t||"undefined"!=typeof window&&window.dispatchEvent&&(t=!0,window.addEventListener("sequence",(t=>{t.detail&&Ce(t.detail)}))),this.config={cssLink:h.getSrc(Oe)}),function(t){return!!t.length&&(t.forEach((t=>{ke(t)})),!0)}(r)?i.innerHTML:n}}]}if("undefined"==typeof window)throw Error("The showdown wavedrom extension can only be used in browser environment!");if(void 0===$e)var $e=window.WaveDrom||void 0;let Le=0,Ne=0;function qe(){return!!$e}let Pe=!1;function De(t,e){if(qe()){const n=e.index,o=e.id,i=e.data;let r=e.element;return r.parentNode.outerHTML=g.renderCacheElement(r.ownerDocument,o+n,e.className,(t=>{const e=window.eval(`(${i})`);$e.RenderWaveForm(n,e,o);const r=document.getElementById("WaveDrom_Display_"+n);if(t!=r)for(;r.childNodes.length;)t.appendChild(r.removeChild(r.childNodes[0]))})),t(!0)}setTimeout((()=>{De(t,e)}),10)}function Me(t){return new Promise((e=>{const n=t.dataset.lang,o=n?JSON.parse(n):null;let i="";if(o){if("boolean"==typeof o.codeblock&&o.codeblock||"string"==typeof o.codeblock&&"true"===o.codeblock.toLowerCase())return;o.align&&("center"===o.align?i="diagram-center":"right"===o.align&&(i="diagram-right"))}const r=t.textContent.trim(),a=(t.classList.length>0?t.classList[0]:"")+(t.className&&i?" ":"")+i,u=Ne;++Ne,--Le,Le||(Ne=0);const s="WaveDrom_Display_";t.id=s+u;De(e,{element:t,index:u,id:s,className:a,data:r})}))}function Te(t,e){return function(t){const e=qe();Pe||e||(Pe=!0,"undefined"!=typeof window&&h.loadScript({WaveDromSkin:t}).then((()=>h.loadScript("WaveDrom"))).then((t=>{$e=g.interopDefault(window[t])})))}(e),new Promise((e=>{const n=[];Le=t.length,t.forEach((t=>{n.push(Me(t))})),Promise.all(n).then((()=>{e(!0)}))}))}function _e(t){return[{type:"output",config:((t={})=>({skin:"default",...t}))(t),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.wavedrom.language-wavedrom");return!!n.length&&(u("Begin render wavedrom elements."),Te(n,this.config.skin).then((()=>(u("End render wavedrom elements."),t))))}}]}function He(){return[{type:"lang",filter:(t,e)=>t.replace(/^\[\^([\d\w]+)\]:\s*((\n+(\s{2,4}|\t).+)+)$/gm,((t,n,o,i,r)=>`<div class="footnote" id="footnote-${n}"><a href="#footnote-${n}"><sup>[${n}]</sup></a>:${e.makeHtml(o.replace(RegExp("^"+r,"gm"),""))}</div>`))},{type:"lang",filter:t=>t.replace(/^\[\^([\d\w]+)\]:( |\n)((.+\n)*.+)$/gm,((t,e,n,o)=>`<small class="footnote" id="footnote-${e}"><a href="#footnote-${e}"><sup>[${e}]</sup></a>: ${o}</small>`))},{type:"lang",filter:t=>t.replace(/\[\^([\d\w]+)\]/m,((t,e)=>`<a href="#footnote-${e}"><sup>[${e}]</sup></a>`))}]}function Fe(){return[{type:"lang",filter:(t,e)=>t.replace(/(?:^|\n)(?: {0,3})(:::+)(?: *)([\S]+)(?:[ \t]*)([^\s][\S\t ]*)?\n([\s\S]*?)\n(?: {0,3})\1(?:[ \t]*)\n/g,(function(t,n,o,i,r){if(o){let t=o.split("-");t.length>1?t.forEach((function(t,e,n){e>0&&(n[e]=n[e-1]+"-"+t)})):t.unshift("container"),o=t.join(" ")}return r&&(r=e.makeHtml(r)),`<div class="showdown-container ${o}">${i=i?`<p class="container-title">${i}</p>`:""}${r}</div>`}))}]}if("undefined"==typeof window)throw Error("The showdown flowchart extension can only be used in browser environment!");if(void 0===Be)var Be=window.Raphael||void 0;if(void 0===ze)var ze=window.flowchart||void 0;function Re(){return!(void 0===Be||!Be||void 0===ze||!ze)}let Je=!1;function Ie(){const t=Re();if("undefined"!=typeof window){if(Je)return t;if(!t){if(Je=!0,!Be)return h.loadScript("Raphael").then((t=>(Be=g.interopDefault(window[t]),h.loadScript("flowchart")))).then((t=>{ze=g.interopDefault(window[t])})),t;h.loadScript("flowchart").then((t=>{ze=g.interopDefault(window[t])}))}}return t}function We(t,e){if(Re()){const n=e.data,o=e.options;return e.element.parentNode.outerHTML=g.renderCacheElement(e.element.ownerDocument,e.id,e.className,(t=>{ze.parse(n).drawSVG(t,o)})),void t(!0)}setTimeout((()=>{We(t,e)}),10)}function Ve(t,e){return new Promise((n=>{const o=g.createElementMeta("flowchart",t);if(!o)return n(!1);o.options=e,We(n,o)}))}function Ge(t){const e=((t={})=>({"line-width":3,maxWidth:3,"line-length":50,"text-margin":10,"font-size":14,font:"normal","font-family":"Helvetica","font-weight":"normal","font-color":"black","line-color":"black","element-color":"black",fill:"white","yes-text":"yes","no-text":"no","arrow-end":"block",scale:1,symbols:{start:{"font-color":"red","element-color":"green",fill:"yellow"},end:{class:"end-element"}},flowstate:{past:{fill:"#CCCCCC","font-size":12},current:{fill:"yellow","font-color":"red","font-weight":"bold"},future:{fill:"#FFFF99"},request:{fill:"blue"},invalid:{fill:"#444444"},approved:{fill:"#58C4A3","font-size":12,"yes-text":"APPROVED","no-text":"n/a"},rejected:{fill:"#C45879","font-size":12,"yes-text":"n/a","no-text":"REJECTED"}},...t}))(t);return[{type:"output",config:e,filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.flowchart.language-flowchart"),o=e.querySelectorAll("code.flow.language-flow");return!(!n.length&&!o.length)&&function(t,e,n){return Ie(),new Promise((o=>{const i=[];t.forEach((t=>{i.push(Ve(t,n))})),e.forEach((t=>{i.push(Ve(t,n))})),Promise.all(i).then((()=>{o(!0)}))}))}(n,o,this.config).then((()=>t))}}]}const Ue=(t={})=>({flavor:"github",...t}),Ke=(t,e,n)=>{if(!e||"undefined"==typeof document)return!1;if(n||(n=document.getElementById(t)),n){const o="script-"+t;let i=document.querySelector(`#${n.id} > #${o}`);i?document.body.removeChild(i):(i=document.createElement("script"),i.id=o),i.type="text/javascript",i.text=e,n.appendChild(i)}return!0},Xe=["github","ghost","vanilla","original","allon"],Ze=["default","forest","dark","neutral"],Qe=["excel","ggplot2","quartz","vox","dark"],Ye=["canvas","svg"],tn=["svg","png","jpg"],en={showdown:t,converter:null,defaultOptions:{showdown:Ue(),plantuml:{imageFormat:"svg"},mermaid:{theme:"default"},katex:{},vega:{theme:"vox"}},defaultExtensions:{},defaultAsyncExtensions:{},markdownDecodeFilter:function(t){return""},initDefaultOptions:function(){this.defaultOptions||(this.defaultOptions={showdown:{},plantuml:{},mermaid:{},katex:{},vega:{}})},setFlavor:function(t){this.showdown.setFlavor(t),this.converter&&this.converter.setFlavor(t)},addOptions:function(t){for(const e in t)"flavor"!==e&&(this.showdown.setOption(e,t[e]),this.converter&&this.converter.setOption(e,t[e]))},addExtension:function(e,n){if(this.removeExtension(e),"string"==typeof e)try{t.extension(e,n),this.converter&&this.converter.addExtension(e)}catch(t){}},removeExtension:function(e){if("string"==typeof e){if(this.converter){let n=null;try{n=t.extension(e)}catch(t){}if(!n)return;this.converter.removeExtension(n)}t.removeExtension(e)}},addAsyncExtension:function(e,n){if(this.removeAsyncExtension(e),"string"==typeof e)try{t.asyncExtension(e,n),this.converter&&this.converter.addAsyncExtension(e)}catch(t){}},removeAsyncExtension:function(e){if("string"==typeof e){if(this.converter){let n=null;try{n=t.asyncExtension(e)}catch(t){}if(!n)return;this.converter.removeAsyncExtension(n)}t.removeAsyncExtension(e)}},setCDN:function(t,e,n){"string"==typeof t&&t&&h.setCDN(t,e,n)},setShowdownFlavor:function(t){this.initDefaultOptions(),t&&(-1===Xe.indexOf(t)&&(t="github"),this.defaultOptions.showdown.flavor=t,this.setFlavor(t))},setShowdownOptions:function(t){return this.initDefaultOptions(),"object"==typeof t&&t||(t={}),this.defaultOptions.showdown=Object.assign(this.defaultOptions.showdown||{},t),this.setShowdownFlavor(this.defaultOptions.showdown.flavor),this.addOptions(this.defaultOptions.showdown),this.defaultOptions.showdown},setPlantumlOptions:function(t){this.initDefaultOptions(),"object"==typeof t&&t||(t={}),this.defaultOptions.plantuml=Object.assign(this.defaultOptions.plantuml||{},t);const e=this.defaultOptions.plantuml.imageFormat;return e&&-1===tn.indexOf(e)&&(this.defaultOptions.plantuml.imageFormat="png"),this.converter&&this.addAsyncExtension("showdown-plantuml",se(this.defaultOptions.plantuml)),this.defaultOptions.plantuml},setMermaidOptions:function(t){this.initDefaultOptions(),"object"==typeof t&&t||(t={}),this.defaultOptions.mermaid=Object.assign(this.defaultOptions.mermaid||{},t);const e=this.defaultOptions.mermaid.theme;return e&&-1===Ze.indexOf(e)&&(this.defaultOptions.mermaid.theme="default"),this.converter&&this.addAsyncExtension("showdown-mermaid",Zt(this.defaultOptions.mermaid)),this.defaultOptions.mermaid},setKatexOptions:function(t){return this.initDefaultOptions(),"object"==typeof t&&t||(t={}),this.defaultOptions.katex=Object.assign(this.defaultOptions.katex||{},t),this.converter&&this.addAsyncExtension("showdown-katex",Mt(this.defaultOptions.katex)),this.defaultOptions.katex},setVegaOptions:function(t){this.initDefaultOptions(),"object"==typeof t&&t||(t={}),this.defaultOptions.vega=Object.assign(this.defaultOptions.vega||{},t);const e=this.defaultOptions.vega.theme;e&&-1===Qe.indexOf(e)&&(this.defaultOptions.vega.theme="vox");const n=this.defaultOptions.vega.renderer;return n&&-1===Ye.indexOf(n)&&(this.defaultOptions.vega.renderer="canvas"),this.converter&&this.addAsyncExtension("showdown-vega",U(this.defaultOptions.vega)),this.defaultOptions.vega},init:function(e){if(this.converter){let t={};if(t="boolean"==typeof e&&e?{option:!0,extension:!0}:e,"object"==typeof t){if(t.hasOwnProperty("option")&&t.option){const t=Ue(this.defaultOptions&&this.defaultOptions.showdown||{});this.addOptions(t)}t.hasOwnProperty("extension")&&t.extension&&(this.addAsyncExtension("showdown-plantuml",se(this.defaultOptions.plantuml)),this.addAsyncExtension("showdown-mermaid",Zt(this.defaultOptions.mermaid)),this.addAsyncExtension("showdown-vega",U(this.defaultOptions.vega)))}}else{const e=Ue(this.defaultOptions&&this.defaultOptions.showdown||{}),n=((e,n={})=>{const o={"showdown-toc":q,"showdown-align":K,"showdown-footnotes":He,"showdown-container":Fe,"showdown-sequence":Ae,...n};let i=[];for(let e in o)o.hasOwnProperty(e)&&(t.extension(e,o[e]),i.push(e));return i})(0,this.defaultExtensions),o=((e,n={})=>{const o=e&&e.mermaid||{},i=e&&e.katex||{},r=e&&e.vega||{},a={"showdown-plantuml":se(e&&e.plantuml||{}),"showdown-mermaid":Zt(o),"showdown-katex":Mt(i),"showdown-flowchart":Ge,"showdown-viz":B,"showdown-vega":U(r),"showdown-wavedrom":_e,"showdown-railroad":ve,"showdown-abc":$,"showdown-echarts":Jt,...n};let u=[];for(let e in a)a.hasOwnProperty(e)&&(t.asyncExtension(e,a[e]),u.push(e));return u})(this.defaultOptions,this.defaultAsyncExtensions);this.setFlavor(e.flavor),this.converter=new t.Converter({extensions:n}).initConvertExtObj(e.flavor,o),this.addOptions(e)}return this},makeHtml:function(e,n){let o="";if("object"==typeof e){if("string"==typeof e.content)if("string"==typeof e.type)if("zip"===e.type)o=this.zDecode(e.content);else o=this.markdownDecodeFilter(e)||e.content;else o=e.content}else o=e;if(this.converter&&o){function i(e,n,o){const i=e.querySelector(n);let r="";if(i)r=i.dataset.css;else{let e;try{e=t.extension(o)}catch{}if(!e)try{e=t.asyncExtension(o)}catch{}if(e)if(Array.isArray(e)){for(var a=0;e.length>a;++a)if(e[a].hasOwnProperty("config")&&e[a].config.hasOwnProperty("cssLink")){r=e[a].config.cssLink;break}}else"object"==typeof e&&e.hasOwnProperty("config")&&e.config.hasOwnProperty("cssLink")&&(r=e.config.cssLink)}return r}function r(t){const e=t.wrapper;return!!e&&new Promise((o=>{const r=i(e,".css-katex","showdown-katex"),a=i(e,".css-sequence","showdown-sequence"),u=i(e,".css-railroad","showdown-railroad");return t.cssTypes={hasKatex:!!r,hasSequence:!!a,hasRailroad:!!u,css:{katex:r,sequence:a,railroad:u}},"function"==typeof n&&n&&n(t.cssTypes),o(t)}))}return this.converter.asyncMakeHtml(o,r).then((t=>(o=`<div class='showdowns'>${t.html}</div>`,{html:o,scripts:t.scripts})))}return Promise.reject(o?"Converter is invaild.":"Content is empty.")},completedHtml:function(e,n){return t.helper.isArray(e)||(e=[e]),new Promise(((t,o)=>{for(var i=0;e.length>i;++i){const t=e[i];if(!Ke(t.id,t.code,n))return o("Args is invaild!")}t(!0)}))},zDecode:function(t){return""+e.inflateRawSync(Buffer.from(t,"base64"))},zEncode:function(t){return e.deflateRawSync(t,{level:9}).toString("base64")}};module.exports=en;
6
+ "use strict";var t=require("showdown"),e=require("zlib");t.ConverterExtObj=function(e,n){let o=[],i=e;function r(e,n){if(n=n||null,t.helper.isString(e)&&(n=t.helper.stdExtName(e),e=t.asyncExtension(n),t.helper.isUndefined(e)))throw Error('Extension "'+n+'" could not be loaded. It was either not found or is not a valid aync extension.');if("function"==typeof e&&(e=e()),t.helper.isArray(e)||(e=[e]),t.validateExtension(e))for(var i=0;e.length>i;++i)if("output"===e[i].type)o.push(e[i])}n&&t.helper.forEach(n,r),this.addAsyncExtension=function(t,e){r(t,e=e||null)},this.removeAsyncExtension=function(e){t.helper.isArray(e)||(e=[e]);for(var n=0;e.length>n;++n){const t=e[n];for(var i=0;o.length>i;++i)o[i]===t&&o.splice(i,1)}},this.getAsyncExtensions=function(){return o},this.getCurrFlavor=function(){return i},this.setCurrFlavor=function(t){i=t}},t.Converter.prototype.initConvertExtObj=function(e,n){return this.extObj=new t.ConverterExtObj(e,n),this.resetOptions=function(e){e=e||{};const n=t.getOptions();let o=this.getOptions();for(var i in n)n.hasOwnProperty(i)&&(o[i]=n[i]);if("object"==typeof e)for(var r in e)e.hasOwnProperty(r)&&(o[r]=e[r])},this.setFlavor=function(e){let n=t.getFlavorOptions(e);if(t.helper.isUndefined(n))return;this.extObj.setCurrFlavor(e);let o=t.getDefaultOptions(!0);for(var i in o)o.hasOwnProperty(i)&&(this.getOptions()[i]=o[i]);for(var i in n)n.hasOwnProperty(i)&&(this.getOptions()[i]=n[i])},this.getFlavor=function(){return this.extObj.getCurrFlavor()},this.addAsyncExtension=function(t,e){this.extObj.addAsyncExtension(t,e)},this.removeAsyncExtension=function(t){this.extObj.removeAsyncExtension(t)},this.removeExtension=function(e){t.helper.isArray(e)||(e=[e]);const n=this.getAllExtensions();let o=n.language,i=n.output;for(var r=0;e.length>r;++r){const t=e[r];for(var a=0;o.length>a;++a)o[a]===t&&o.splice(a,1);for(var u=0;i.length>u;++u)i[u]===t&&i.splice(u,1)}},this.asyncMakeHtml=function(t,e){const n=this.makeHtml(t),o=this.extObj.getAsyncExtensions();if(!o.length)return Promise.resolve({html:n});var i={outputs:o,converter:this};const r=(new DOMParser).parseFromString(n,"text/html"),a=void 0!==r.body?r.body:r,u=this.getOptions();let s=Promise.resolve({wrapper:a,options:u,globals:i,scripts:[]});return o.forEach((function(t){s=s.then((e=>{const n=t.filter(e);return n||e}))})),s.then((t=>{if("function"==typeof e&&e){const n=e(t);if(n instanceof Promise)return n.then((t=>({html:t.wrapper.innerHTML,scripts:t.scripts})))}return{html:t.wrapper.innerHTML,scripts:t.scripts}}))},this},t.subParser("githubCodeBlocks",(function(e,n,o){return n.ghCodeBlocks?(e=o.converter._dispatch("githubCodeBlocks.before",e,n,o),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*?)(?:[ \t]*?)((?:\{[\S\t ]*\}|\[[\S\t ]*\])?)\n([\s\S]*?)\n(?: {0,3})\1/g,(function(e,i,r,a,u){var s=n.omitExtraWLInCodeBlocks?"":"\n";return u=t.subParser("encodeCode")(u,n,o),u="<pre><code"+(r?' class="'+r+" language-"+r+'"':"")+(a?` data-lang='${a}'`:"")+">"+(u=(u=(u=t.subParser("detab")(u,n,o)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+s+"</code></pre>",u=t.subParser("hashBlock")(u,n,o),"\n\n¨G"+(o.ghCodeBlocks.push({text:e,codeblock:u})-1)+"G\n\n"}))).replace(/¨0/,""),o.converter._dispatch("githubCodeBlocks.after",e,n,o)):e})),t.subParser("tables",(function(e,n,o){if(!n.tables)return e;function i(t){return/^:[ \t]*--*$/.test(t)?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(t)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(t)?' style="text-align:center;"':""}function r(e,i,r,a,u){if(n.tablesMerge){var s=function(t,e,o,i){if(i){if(!n.tablesRowspan||"^^"!==i||!e)return;for(var r=e-1;r>=0;--r)if(t[r][o]){if("^^"!==t[r][o])return t[r][o]=t[r][o].replace(/rowspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,(function(t,n,o){return n+' rowspan="'+(e-r+1)+'"'+o})),i;if(0===r)return t[r][o]='<td rowspan="'+(e-r+1)+'"></td>\n',i}else for(var a=o-1;a>=0;-a){if(t[r+1][a]&&"^^"!==t[r+1][a])return;if(t[r][a]){if(!t[r+1][a])return;return t[r][a]=t[r][a].replace(/rowspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,(function(t,n,o){return n+' rowspan="'+(e-r+1)+'"'+o})),i}}}else if(o)for(a=o-1;a>=0;--a)if(t[e][a]){if("^^"!==t[e][a])return t[e][a]=t[e][a].replace(/colspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,(function(t,e,n){return e+' colspan="'+(o-a+1)+'"'+n})),i;for(r=e-1;r>=0;--r){if(t[r][a+1])return;if("^^"!==t[r][a])return t[r][a]=t[r][a].replace(/colspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,(function(t,e,n){return e+' colspan="'+(o-a+1)+'"'+n})),i}}else if(0===a)return t[e][a]='<td colspan="'+(o-a+1)+'"></td>\n',i}(e,i,r,a);if(!t.helper.isUndefined(s))return s}return a=a.trim(),"<td"+u+">"+t.subParser("spanGamut")(a,n,o)+"</td>\n"}function a(e,a){var u,s=e.split("\n");for(u=0;s.length>u;++u)/^ {0,3}\|/.test(s[u])&&(s[u]=s[u].replace(/^ {0,3}\|/,"")),/\|[ \t]*$/.test(s[u])&&(s[u]=s[u].replace(/\|[ \t]*$/,"")),s[u]=t.subParser("codeSpans")(s[u],n,o);var l,p,c,d=[],m=[],f=[],g=[],h=[];if(a)for(d=s[0].split("|").map((function(t){return t.trim()})),s.shift(),u=0;d.length>u;++u)g.push(i(d[u]));else{var y=s[0].split("|").map((function(t){return t.trim()}));if(d=s[1].split("|").map((function(t){return t.trim()})),s.shift(),s.shift(),d.length>y.length)return e;for(u=0;d.length>u;++u)g.push(i(d[u]));for(u=0;y.length>u;++u)t.helper.isUndefined(g[u])&&(g[u]=""),f.push((p=g[u],c=void 0,c="",l=(l=y[u]).trim(),(n.tablesHeaderId||n.tableHeaderId)&&(c=' id="'+l.replace(/ /g,"_").toLowerCase()+'"'),"<th"+c+p+">"+(l=t.subParser("spanGamut")(l,n,o))+"</th>\n"))}for(u=0;s.length>u;++u)""!==s[u].trim()&&m.push(s[u].split("|").map((function(t){var e=t.trim();return""===e&&t.length>0?t:e})));for(u=0;m.length>u;++u){var v=[];h.push(v);for(var w=0;g.length>w;++w)t.helper.isUndefined(m[u][w])&&(m[u][w]=""),v.push(r(h,u,w,m[u][w],g[w]))}return function(t,e,o){var i="<table>\n",r=e.length;if(t.length){i+="<thead>\n<tr>\n";for(var a=0;t.length>a;++a)i+=t[a];i+="</tr>\n</thead>\n"}for(i+="<tbody>\n",a=0;o.length>a;++a){i+="<tr>\n";for(var u=0;r>u;++u)n.tablesMerge&&"^^"===o[a][u]||(i+=o[a][u]);i+="</tr>\n"}return i+"</tbody>\n</table>\n"}(f,g,h)}function u(t){return a(t,!1)}function s(t){return a(t,!0)}return e=(e=(e=(e=o.converter._dispatch("tables.before",e,n,o)).replace(/\\(\|)/g,t.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,u)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,u),n.tablesHeaderless&&(e=(e=e.replace(/^ {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,s)).replace(/^ {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,s)),e=o.converter._dispatch("tables.after",e,n,o)}));let n="vanilla",o={github:{ghCompatibleHeaderId:!1,underline:!0,rawHeaderId:!0,tablesHeaderless:!0,tablesMerge:!0,tablesRowspan:!0},ghost:{tablesHeaderless:!0,tablesMerge:!0,tablesRowspan:!0},allOn:{tablesHeaderless:!0,tablesMerge:!0,tablesRowspan:!0}},i={};t.asyncExtension=function(e,n){if(!t.helper.isString(e))throw Error("Extension 'name' must be a string");if(e=t.helper.stdExtName(e),t.helper.isUndefined(n)){if(!i.hasOwnProperty(e))throw Error("Async Extension named "+e+" is not registered!");return i[e]}"function"==typeof n&&(n=n()),t.helper.isArray(n)||(n=[n]),t.validateExtension(n)&&(i[e]=n)},t.removeAsyncExtension=function(e){e=t.helper.stdExtName(e),delete i[e]},t.resetAsyncExtensions=function(){i={}},t.removeExtension=function(e){e=t.helper.stdExtName(e),delete t.getAllExtensions[e]};const r=t.setFlavor,a=t.getFlavorOptions;function u(t){return`${(new Date).Format("yyyy-MM-dd HH:mm:ss.S")} ${t}`}t.setFlavor=function(e){try{if(r(e),n=e,!o.hasOwnProperty(e))return}catch{if(!o.hasOwnProperty(e))return;t.resetOptions(),n=e}var i=o[e];for(var a in i)i.hasOwnProperty(a)&&(t.getOptions()[a]=i[a])},t.getFlavor=function(){return n},t.setFlavorOptions=function(t,e){e&&(o[t]=Object.assign(o[t]||{},e))},t.getFlavorOptions=function(e){const n=a(e);return t.helper.isUndefined(n)?o.hasOwnProperty(e)?o[e]:void 0:o.hasOwnProperty(e)?Object.assign(n,o[e]):n},Date.prototype.Format=function(t){var e={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"H+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};t||(t="yyyy-MM-dd hh:mm:ss.S");const n=/(y+)/.exec(t);n&&(t=t.replace(n[1],(this.getFullYear()+"").substring(4-n[1].length)));for(const n in e){const o=RegExp("("+n+")").exec(t);if(o){let i=e[n];1==o[1].length?i=("000"+e[n]).substring((""+e[n]).length):2==o[1].length&&(i=("00"+e[n]).substring((""+e[n]).length)),t=t.replace(o[1],i)}}return t};let s="jsdelivr",l="file:"===document.location.protocol?"https://":document.location.protocol+"//",p="",c="";const d={local:{ABCJS:"../node_modules/abcjs/dist/abcjs-basic.js",ABCJSCSS:"../node_modules/abcjs/abcjs-audio.css",echarts:"../node_modules/echarts/dist/echarts.js",Viz:"../node_modules/@viz-js/viz/lib/viz-standalone.js",Raphael:"../node_modules/raphael/raphael.min.js",flowchart:"../dist/diagrams/flowchart/flowchart.min.js",mermaid:"../node_modules/mermaid/dist/mermaid.js",katex:"../node_modules/katex/dist/katex.min.js",katexCSS:"../node_modules/katex/dist/katex.min.css",renderMathInElement:"../node_modules/katex/dist/contrib/auto-render.js",railroad:"../node_modules/railroad-diagrams/railroad-diagrams.js",railroadCSS:"../node_modules/railroad-diagrams/railroad-diagrams.css",Snap:"../node_modules/snapsvg/dist/snap.svg-min.js",WebFont:"../node_modules/webfontloader/webfontloader.js",underscore:"../node_modules/underscore/underscore-min.js",sequence:"../node_modules/@rokt33r/js-sequence-diagrams/dist/sequence-diagram-min.js",sequenceCSS:"../node_modules/@rokt33r/js-sequence-diagrams/dist/sequence-diagram-min.css",WaveDrom:"../node_modules/wavedrom/wavedrom.min.js",WaveDromSkin:{default:"../node_modules/wavedrom/skins/default.js",lowkey:"../node_modules/wavedrom/skins/lowkey.js",narrow:"../node_modules/wavedrom/skins/narrow.js"},vega:"../node_modules/vega/build/vega.js",vegaLite:"../node_modules/vega-lite/build/vega-lite.js",vegaEmbed:"../node_modules/vega-embed/build/vega-embed.js"},cdnjs:{ABCJS:l+"cdnjs.cloudflare.com/ajax/libs/abcjs/6.4.1/abcjs-basic-min.js",ABCJSCSS:l+"cdnjs.cloudflare.com/ajax/libs/abcjs/abcjs-audio.css",echarts:l+"cdnjs.cloudflare.com/ajax/libs/echarts/5.5.0/echarts.min.js",Viz:l+"cdn.jsdelivr.net/npm/@viz-js/viz@3/lib/viz-standalone.js",Raphael:l+"cdnjs.cloudflare.com/ajax/libs/raphael/2.3.0/raphael.min.js",flowchart:l+"cdnjs.cloudflare.com/ajax/libs/flowchart/1.18.0/flowchart.min.js",mermaid:l+"cdnjs.cloudflare.com/ajax/libs/mermaid/10.9.1/mermaid.min.js",katex:l+"cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.11/katex.min.js",katexCSS:l+"cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.11/katex.min.css",renderMathInElement:l+"cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.11/contrib/auto-render.js",railroad:l+"cdnjs.cloudflare.com/ajax/libs/railroad-diagrams/1.0.0/railroad-diagrams.js",railroadCSS:l+"cdnjs.cloudflare.com/ajax/libs/railroad-diagrams/1.0.0/railroad-diagrams.css",Snap:l+"cdnjs.cloudflare.com/ajax/libs/snap.svg/0.5.1/snap.svg-min.js",WebFont:l+"cdnjs.cloudflare.com/ajax/libs/webfont/1.6.28/webfontloader.js",underscore:l+"cdnjs.cloudflare.com/ajax/libs/underscore.js/1.13.6/underscore-min.js",sequence:l+"cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams@2.0.6-2/dist/sequence-diagram-min.js",sequenceCSS:l+"cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams@2.0.6-2/dist/sequence-diagram-min.css",WaveDrom:l+"cdnjs.cloudflare.com/ajax/libs/wavedrom/3.5.0/wavedrom.min.js",WaveDromSkin:{default:l+"cdnjs.cloudflare.com/ajax/libs/wavedrom/3.5.0/skins/default.js",lowkey:l+"cdnjs.cloudflare.com/ajax/libs/wavedrom/3.5.0/skins/lowkey.js",narrow:l+"cdnjs.cloudflare.com/ajax/libs/wavedrom/3.5.0/skins/narrow.js"},vega:l+"cdnjs.cloudflare.com/ajax/libs/vega/5.30.0/vega.min.js",vegaLite:l+"cdnjs.cloudflare.com/ajax/libs/vega-lite/5.19.0/vega-lite.min.js",vegaEmbed:l+"cdnjs.cloudflare.com/ajax/libs/vega-embed/6.26.0/vega-embed.min.js"},jsdelivr:{ABCJS:l+"cdn.jsdelivr.net/npm/abcjs@6/dist/abcjs-basic-min.js",ABCJSCSS:l+"cdn.jsdelivr.net/npm/abcjs@6/abcjs-audio.css",echarts:l+"cdn.jsdelivr.net/npm/echarts@5/dist/echarts.min.js",Viz:l+"cdn.jsdelivr.net/npm/@viz-js/viz@3/lib/viz-standalone.js",Raphael:l+"cdn.jsdelivr.net/npm/raphael@2/raphael.min.js",flowchart:l+"cdnjs.cloudflare.com/ajax/libs/flowchart/1.18.0/flowchart.min.js",mermaid:l+"cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.min.js",katex:l+"cdn.jsdelivr.net/npm/katex@0/dist/katex.min.js",katexCSS:l+"cdn.jsdelivr.net/npm/katex@0/dist/katex.min.css",renderMathInElement:l+"cdn.jsdelivr.net/npm/katex@0/dist/contrib/auto-render.js",railroad:l+"cdn.jsdelivr.net/npm/railroad-diagrams@1/railroad-diagrams.js",railroadCSS:l+"cdn.jsdelivr.net/npm/railroad-diagrams@1/railroad-diagrams.css",Snap:l+"cdn.jsdelivr.net/npm/snapsvg@0/dist/snap.svg-min.js",WebFont:l+"cdn.jsdelivr.net/npm/webfontloader@1/webfontloader.js",underscore:l+"cdn.jsdelivr.net/npm/underscore@1/underscore-min.js",sequence:l+"cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams@2.0.6-2/dist/sequence-diagram-min.js",sequenceCSS:l+"cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams@2.0.6-2/dist/sequence-diagram-min.css",WaveDrom:l+"cdn.jsdelivr.net/npm/wavedrom@3/wavedrom.min.js",WaveDromSkin:{default:l+"cdn.jsdelivr.net/npm/wavedrom@3/skins/default.js",lowkey:l+"cdn.jsdelivr.net/npm/wavedrom@3/skins/lowkey.js",narrow:l+"cdn.jsdelivr.net/npm/wavedrom@3/skins/narrow.js"},vega:l+"cdn.jsdelivr.net/npm/vega@5/build/vega.js",vegaLite:l+"cdn.jsdelivr.net/npm/vega-lite@5/build/vega-lite.js",vegaEmbed:l+"cdn.jsdelivr.net/npm/vega-embed@6/build/vega-embed.js"}};function m(t){if("object"==typeof t){const e=Object.keys(t)[0],n=t[e];if("string"==typeof n)return e+"-"+n}return t}function f(t,e){if(d.hasOwnProperty(s)){const n=d[s];let o="";if("object"==typeof t){const e=Object.keys(t)[0],i=t[e];n[e]&&"string"==typeof i&&i&&n[e][i]&&(o=n[e][i])}else n[t]&&(o=n[t]);o&&(e=o.substring(0,l.length)===l?o:"../dist/"===o.substring(0,8)?c+o:p+o)}return e}const g={setCDN:function(t,e,n){t in d&&(s=t),"string"==typeof e&&e&&(p=e),"string"==typeof n&&n&&(c=n)},getCDN:function(){return s},getSrc:f,loadScript:function(t,e){return new Promise(((n,o)=>{t&&"undefined"!=typeof document||o("Args is invaild!"),void 0===e&&(e=""),(e=f(t,e))||o(t+" script source invaild!");const i="script-"+m(t).toLowerCase();let r=document.getElementById(i);if(r)return n(t);const a=document.head||document.getElementsByTagName("head")[0];r=document.createElement("script"),r.src=e,r.id=i,r.onload=()=>{n(t)},a.appendChild(r)}))},unloadScript:function(t){t=m(t);const e=document.getElementById("script-"+t.toLowerCase());if(e){(document.head||document.getElementsByTagName("head")[0]).removeChild(e)}},loadStyleSheet:function(t,e){if(!t||"undefined"==typeof document)return"";if(void 0===e&&(e=""),!(e=f(t,e)))return"";const n="css-"+m(t).toLowerCase();if(!document.getElementById(n)){var o=document.head||document.getElementsByTagName("head")[0],i=document.createElement("link");i.rel="stylesheet",i.href=e,i.id=n,o.appendChild(i)}return"local"===s?"":e},unloadStyleSheet:function(t){t=m(t);const e=document.getElementById("css-"+t.toLowerCase());if(e){(document.head||document.getElementsByTagName("head")[0]).removeChild(e)}}};const h={interopDefault:function(t){return t&&"object"==typeof t&&"default"in t?t.default:t},loadStyle:function(t,e){if(!t||!e||"undefined"==typeof document)return!1;const n="css-"+t.toLowerCase();if(!document.getElementById(n)){const t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.id=n,o.innerText=e,t.appendChild(o)}return!0},loadScript:function(t,e){return new Promise(((n,o)=>{e&&"undefined"!=typeof document||o("Args is invaild!");const i=document.body;let r=document.getElementById(t);r?i.removeChild(r):(r=document.createElement("script"),r.id=t),r.type="text/javascript",r.text=e,i.appendChild(r),n(!0)}))},renderCacheElement:function(t,e,n,o){"undefined"!=typeof window&&window.document&&(t=window.document);const i=t.createElement("div");if(i.id=e,i.className=n,i.style.display="none",t.body.appendChild(i),"function"==typeof o&&o){const e=o(i);if(e instanceof Promise)return e.then((e=>{t.body.removeChild(e),e.style.display=""})),i.outerHTML}return t.body.removeChild(i),i.style.display="",i.outerHTML},renderElement:function(t,e,n){"undefined"!=typeof window&&window.document&&(t=window.document);const o=t.createElement("div");return o.id=e,o.className=n,t.body.appendChild(o),o},createElementMeta:function(t,e,n){const o=e.dataset.lang,i=o?JSON.parse(o):null;let r="";if(i){if("boolean"==typeof i.codeblock&&i.codeblock||"string"==typeof i.codeblock&&"true"===i.codeblock.toLowerCase())return!1;i.align&&("center"===i.align?r="diagram-center":"right"===i.align&&(r="diagram-right"))}let a=e.textContent.trim();n&&"function"==typeof n&&(a=n(a));const u=(e.classList.length>0?e.classList[0]:"")+(e.className&&r?" ":"")+r,s=t+"-"+Date.now()+"-"+Math.floor(1e4*Math.random());return e.id=s,{id:s,className:u,data:a,element:e,lang:i}}},y="abc",v="ABCJSCSS";if("undefined"==typeof window)throw Error("The showdown abcjs extension can only be used in browser environment!");if(void 0===w)var w=window.ABCJS||void 0;function x(){return!!w}let b=!1;var j={add_classes:!0,responsive:"resize"};function S(t){const e=this;e.onReady=function(){},e.onStart=function(){const e=document.querySelector(`#${t} svg`),n=document.createElementNS("http://www.w3.org/2000/svg","line");n.setAttribute("class","abcjs-cursor"),n.setAttributeNS(null,"x1",0),n.setAttributeNS(null,"y1",0),n.setAttributeNS(null,"x2",0),n.setAttributeNS(null,"y2",0),e.appendChild(n)},e.beatSubdivisions=2,e.onBeat=function(t,e,n){},e.onEvent=function(e){if(e.measureStart&&null===e.left)return;const n=document.querySelectorAll(`#${t} svg .highlight`);for(let t=0;n.length>t;t++)n[t].classList.remove("highlight");for(let t=0;e.elements.length>t;t++){const n=e.elements[t];for(let t=0;n.length>t;t++)n[t].classList.add("highlight")}const o=document.querySelector(`#${t} svg .abcjs-cursor`);o&&(o.setAttribute("x1",e.left-2),o.setAttribute("x2",e.left-2),o.setAttribute("y1",e.top),o.setAttribute("y2",e.top+e.height))},e.onFinished=function(){const e=document.querySelectorAll(`#${t} svg .highlight`);for(let t=0;e.length>t;t++)e[t].classList.remove("highlight");const n=document.querySelector(`#${t} svg .abcjs-cursor`);n&&(n.setAttribute("x1",0),n.setAttribute("x2",0),n.setAttribute("y1",0),n.setAttribute("y2",0))}}function E(t,e){let n;w.synth.supportsAudio()?(n=new w.synth.SynthController,n.load("#"+t,new S(e.id),{displayLoop:!0,displayRestart:!0,displayPlay:!0,displayProgress:!0,displayWarp:!0})):document.querySelector("#"+t).innerHTML="<div class='audio-error'>Audio is not supported in this browser.</div>",function(t,e,n){const o=t.id,i=decodeURIComponent(atob(t.data));if(!n)return void w.renderAbc(""+o,i,j);n.disable(!0);const r=w.renderAbc(""+o,i,j)[0];(new w.synth.CreateSynth).init({visualObj:r}).then((function(t){n.setTune(r,e).then((function(t){})).catch((function(t){}))})).catch((function(t){}))}(e,!1,n)}function O(t,e,n){if(x()){const o=n.id,i=n.className;let r=`<div id="${o}" class="${i}"></div>`;if(!n.lang||!n.lang.audio){const e=n.data,i=n.element.ownerDocument.getElementById(o);return w.renderAbc(i,e),t(!0)}const a=btoa(encodeURIComponent(n.data)),u=o+"-audio";r+=`<div id="${u}"></div>`,n.element.parentNode.outerHTML=r;return e.push({id:o,code:`(function() {\n if (typeof window !== 'undefined' && window.dispatchEvent) {\n window.dispatchEvent(new CustomEvent('abcjs',{\n detail: {\n audio: '${u}',\n render: {\n id:'${o}',\n class:'${i}',\n data:"${a}"\n }\n }\n }));\n }\n })();`}),t(!0)}setTimeout((()=>{O(t,e,n)}),10)}function C(t,e){return new Promise((n=>{let o=h.createElementMeta(y,t);if(!o)return n(!1);O(n,e,o)}))}function A(t,e){return function(){const t=x();if("undefined"!=typeof window){if(b)return t;t||(b=!0,g.loadStyleSheet(v),h.loadStyle("abc-audio",".highlight{fill: #0a9ecc;} .abcjs-cursor{stroke: red;} .abcjs-inline-audio .abcjs-midi-loop.abcjs-pushed{border: none;} .abcjs-inline-audio .abcjs-midi-loop.abcjs-pushed svg path{fill: #6eaa49;}"),g.loadScript("ABCJS").then((t=>{w=h.interopDefault(window[t])})))}}(),new Promise((n=>{const o=[];t.forEach((t=>{o.push(C(t,e))})),Promise.all(o).then((()=>{n(!0)}))}))}function k(){let t=!1;return[{type:"output",filter:function(e){const n=e.wrapper;if(!n)return!1;const o=n.querySelectorAll(`code.${y}.language-${y}`);return!!o.length&&(t||"undefined"!=typeof window&&window.dispatchEvent&&(t=!0,window.addEventListener("abcjs",(t=>{t.detail&&E(t.detail.audio,t.detail.render)}))),A(o,e.scripts).then((()=>e)))}}]}function $(t,e,n,o){try{o&&(n=n.appendChild(t.ownerDocument.createElement("ul")));const i=n.appendChild(t.ownerDocument.createElement("li")).appendChild(t.ownerDocument.createElement("a"));e&&(i.appendChild(t.ownerDocument.createTextNode(e.textContent)),i.href="#"+e.id)}catch{}return n}function N(t,e,n,o){if(n.headingLevel>=o){let i=null;for(;n&&n.headingLevel>=o;)i=n,n=i.parentNode,i.parentNode=null,i.toc=null,i.headingLevel=null,i.preLevel=null;return n&&N(t,e,n,o),n}if(o>n.preLevel){for(n.preLevel++;o>n.preLevel;)n.toc=$(t,null,n.toc,!0),n.preLevel++;n.toc=$(t,e,n.toc,!0)}else{for(;n.preLevel>o;)n.toc=n.toc.parentNode,n.preLevel--;$(t,e,n.toc,!1)}return n.parentNode&&N(t,e,n.parentNode,o),n}function L(){const t=new DOMParser;return[{type:"output",filter:function(e){const n=t.parseFromString(e,"text/html"),o=void 0!==n.body?n.body:n;return function(t){let e=null,n=0,o=null,i=!1;const r=t.querySelectorAll("p,h1,h2,h3,h4,h5,h6");for(let a=0;r.length>a;a++)if(e=r[a],"[toc]"==e.textContent.trim().toLowerCase()){let r=t.ownerDocument.createElement("ul");r.className="showdown-toc",e.parentNode.replaceChild(r,e);let a={parentNode:null,toc:r,headingLevel:n,preLevel:0};if(o)if(n>o.headingLevel)a.parentNode=o;else{let t=o;for(;t.headingLevel>n;)t=t.parentNode;t&&(a.parentNode=n===t.headingLevel?t.parentNode:t)}o=a,i=!0}else if(e.tagName)switch(e.tagName){case"H1":case"H2":case"H3":case"H4":case"H5":case"H6":n=parseInt(e.tagName.substr(1)),o&&(o.preLevel||(o.preLevel=n),o=N(t,e,o,n))}for(;o;){let t=o;o=t.parentNode,t.parentNode=null,t.toc=null,t.headingLevel=null,t.preLevel=null}return i}(o)?o.innerHTML:e}}]}if("undefined"==typeof window)throw Error("The showdown viz extension can only be used in browser environment!");if(void 0===q)var q=window.Viz||void 0;const P=["circo","dot","neato","osage","twopi"];function D(){return!(void 0===q||!q||void 0===q.instance)}let M=!1;function T(t,e){if(D()){const n=e.id,o=e.className,i=e.data,r=e.element,a=e.element.dataset.lang;let u="dot";if(a){const t=JSON.parse(a);t&&t.engine&&-1!=P.indexOf(t.engine)&&(u=t.engine)}q.instance().then((e=>{const a=e.renderString(i,{format:"svg",engine:u});r.parentNode.outerHTML=`<div id="${n}" class="${o}">${a}</div>`,t(!0)}))}else setTimeout((()=>{T(t,e)}),10)}function _(t){return new Promise((e=>{const n=h.createElementMeta("viz",t);if(!n)return e(!1);T(e,n)}))}function H(t){return function(){const t=D();if("undefined"!=typeof window){if(M)return t;t||(M=!0,g.loadScript("Viz").then((t=>{q=h.interopDefault(window[t])})))}}(),new Promise((e=>{const n=[];t.forEach((t=>{n.push(_(t))})),Promise.all(n).then((()=>{e(!0)}))}))}function F(){return[{type:"output",filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.dot.language-dot");return!!n.length&&H(n).then((()=>t))}}]}const B="vega";if("undefined"==typeof window)throw Error("The showdown vega extension can only be used in browser environment!");if(void 0===R)var R=window.vegaEmbed||void 0;function z(){return!(void 0===R||!R)}let I=!1;function J(t,e,n,o){const i=h.createElementMeta(B,t);if(!i)return Promise.resolve(!1);const r=JSON.stringify(e),a=JSON.stringify(JSON.parse(i.data)),u=i.id;return n.push({id:u,code:`(function() {\n let el = document.getElementById('${u}');\n if (el){\n vegaEmbed(el, JSON.parse('${a}'), JSON.parse('${r}'));\n }\n })();`}),new Promise((t=>{V(t,i)}))}function W(t,e,n,o){return function(){const t=z();if("undefined"!=typeof window){if(I)return t;t||(I=!0,g.loadScript(B).then((()=>g.loadScript("vegaLite"))).then((()=>g.loadScript("vegaEmbed"))).then((t=>{R=h.interopDefault(window[t])})))}}(),new Promise((i=>{const r=[];t.forEach((t=>{r.push(J(t,o,n))})),e.forEach((t=>{r.push(J(t,o,n))})),Promise.all(r).then((()=>{i(!0)}))}))}function V(t,e){if(z()){return e.element.parentNode.outerHTML=`<div id="${e.id}" class="${e.className}"></div>`,t(!0)}setTimeout((()=>{V(t,e)}),10)}function U(t){const e=((t={})=>({actions:{editor:!1},theme:"vox",tooltip:!1,renderer:"svg",...t}))(t);return[{type:"output",config:e,filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.vega.language-vega"),o=e.querySelectorAll("code.vega-lite.language-vega-lite");return!(!n.length&&!o.length)&&W(n,o,t.scripts,this.config).then((()=>t))}}]}function G(){const t=new DOMParser;return[{type:"output",filter:function(e){const n=t.parseFromString(e,"text/html"),o=void 0!==n.body?n.body:n;return function(t){let e=null,n=null,o=!1;const i=t.querySelectorAll("p, li, h1, h2, h3, h4, h5, h6, div.paragraph");for(let t=0;i.length>t;t++)for(e=i[t],n=e.firstChild;n;){if(3===n.nodeType){let t=n.nodeValue.match(/^([\s\S]*?)([:-]-:)(?:[\s]?)([\s\S]*)$/);t&&(":-:"===t[2]?(n.nodeValue=t[3],e.className?e.className+=" align-center":e.className="align-center",o=!0):"--:"===t[2]&&(n.nodeValue=t[3],e.className?e.className+=" align-right":e.className="align-right",o=!0));break}n=n.nextSibling}return o}(o)?o.innerHTML:e}}]}var K={decimalsign:"."},X=0,Z=1,Q=2,Y=3,tt=4,et=5,nt=6,ot=7,it=8,rt=9,at=10,ut={input:'"',tag:"mtext",output:"mbox",tex:null,ttype:at},st=[{input:"alpha",tag:"mi",output:"α",tex:null,ttype:X},{input:"beta",tag:"mi",output:"β",tex:null,ttype:X},{input:"chi",tag:"mi",output:"χ",tex:null,ttype:X},{input:"delta",tag:"mi",output:"δ",tex:null,ttype:X},{input:"Delta",tag:"mo",output:"Δ",tex:null,ttype:X},{input:"epsi",tag:"mi",output:"ε",tex:"epsilon",ttype:X},{input:"varepsilon",tag:"mi",output:"ɛ",tex:null,ttype:X},{input:"eta",tag:"mi",output:"η",tex:null,ttype:X},{input:"gamma",tag:"mi",output:"γ",tex:null,ttype:X},{input:"Gamma",tag:"mo",output:"Γ",tex:null,ttype:X},{input:"iota",tag:"mi",output:"ι",tex:null,ttype:X},{input:"kappa",tag:"mi",output:"κ",tex:null,ttype:X},{input:"lambda",tag:"mi",output:"λ",tex:null,ttype:X},{input:"Lambda",tag:"mo",output:"Λ",tex:null,ttype:X},{input:"lamda",tag:"mi",output:"lambda",tex:null,ttype:it},{input:"Lamda",tag:"mi",output:"Lambda",tex:null,ttype:it},{input:"mu",tag:"mi",output:"μ",tex:null,ttype:X},{input:"nu",tag:"mi",output:"ν",tex:null,ttype:X},{input:"omega",tag:"mi",output:"ω",tex:null,ttype:X},{input:"Omega",tag:"mo",output:"Ω",tex:null,ttype:X},{input:"phi",tag:"mi",output:"φ",tex:null,ttype:X},{input:"varphi",tag:"mi",output:"ϕ",tex:null,ttype:X},{input:"Phi",tag:"mo",output:"Φ",tex:null,ttype:X},{input:"pi",tag:"mi",output:"π",tex:null,ttype:X},{input:"Pi",tag:"mo",output:"Π",tex:null,ttype:X},{input:"psi",tag:"mi",output:"ψ",tex:null,ttype:X},{input:"Psi",tag:"mi",output:"Ψ",tex:null,ttype:X},{input:"rho",tag:"mi",output:"ρ",tex:null,ttype:X},{input:"sigma",tag:"mi",output:"σ",tex:null,ttype:X},{input:"Sigma",tag:"mo",output:"Σ",tex:null,ttype:X},{input:"tau",tag:"mi",output:"τ",tex:null,ttype:X},{input:"theta",tag:"mi",output:"θ",tex:null,ttype:X},{input:"vartheta",tag:"mi",output:"ϑ",tex:null,ttype:X},{input:"Theta",tag:"mo",output:"Θ",tex:null,ttype:X},{input:"upsilon",tag:"mi",output:"υ",tex:null,ttype:X},{input:"xi",tag:"mi",output:"ξ",tex:null,ttype:X},{input:"Xi",tag:"mo",output:"Ξ",tex:null,ttype:X},{input:"zeta",tag:"mi",output:"ζ",tex:null,ttype:X},{input:"*",tag:"mo",output:"⋅",tex:"cdot",ttype:X},{input:"**",tag:"mo",output:"∗",tex:"ast",ttype:X},{input:"***",tag:"mo",output:"⋆",tex:"star",ttype:X},{input:"//",tag:"mo",output:"/",tex:"/",ttype:X,val:!0,notexcopy:!0},{input:"\\\\",tag:"mo",output:"\\",tex:"backslash",ttype:X},{input:"setminus",tag:"mo",output:"\\",tex:null,ttype:X},{input:"xx",tag:"mo",output:"×",tex:"times",ttype:X},{input:"|><",tag:"mo",output:"⋉",tex:"ltimes",ttype:X},{input:"><|",tag:"mo",output:"⋊",tex:"rtimes",ttype:X},{input:"|><|",tag:"mo",output:"⋈",tex:"bowtie",ttype:X},{input:"-:",tag:"mo",output:"÷",tex:"div",ttype:X},{input:"divide",tag:"mo",output:"-:",tex:null,ttype:it},{input:"@",tag:"mo",output:"∘",tex:"circ",ttype:X},{input:"o+",tag:"mo",output:"⊕",tex:"oplus",ttype:X},{input:"ox",tag:"mo",output:"⊗",tex:"otimes",ttype:X},{input:"o.",tag:"mo",output:"⊙",tex:"odot",ttype:X},{input:"sum",tag:"mo",output:"∑",tex:null,ttype:ot},{input:"prod",tag:"mo",output:"∏",tex:null,ttype:ot},{input:"^^",tag:"mo",output:"∧",tex:"wedge",ttype:X},{input:"^^^",tag:"mo",output:"⋀",tex:"bigwedge",ttype:ot},{input:"vv",tag:"mo",output:"∨",tex:"vee",ttype:X},{input:"vvv",tag:"mo",output:"⋁",tex:"bigvee",ttype:ot},{input:"nn",tag:"mo",output:"∩",tex:"cap",ttype:X},{input:"nnn",tag:"mo",output:"⋂",tex:"bigcap",ttype:ot},{input:"uu",tag:"mo",output:"∪",tex:"cup",ttype:X},{input:"uuu",tag:"mo",output:"⋃",tex:"bigcup",ttype:ot},{input:"overset",tag:"mover",output:"stackrel",tex:null,ttype:Q},{input:"underset",tag:"munder",output:"stackrel",tex:null,ttype:Q},{input:"!=",tag:"mo",output:"≠",tex:"ne",ttype:X},{input:":=",tag:"mo",output:":=",tex:null,ttype:X},{input:"lt",tag:"mo",output:"<",tex:null,ttype:X},{input:"gt",tag:"mo",output:">",tex:null,ttype:X},{input:"<=",tag:"mo",output:"≤",tex:"le",ttype:X},{input:"lt=",tag:"mo",output:"≤",tex:"leq",ttype:X},{input:"gt=",tag:"mo",output:"≥",tex:"geq",ttype:X},{input:">=",tag:"mo",output:"≥",tex:"ge",ttype:X},{input:"-<",tag:"mo",output:"≺",tex:"prec",ttype:X},{input:"-lt",tag:"mo",output:"≺",tex:null,ttype:X},{input:">-",tag:"mo",output:"≻",tex:"succ",ttype:X},{input:"-<=",tag:"mo",output:"⪯",tex:"preceq",ttype:X},{input:">-=",tag:"mo",output:"⪰",tex:"succeq",ttype:X},{input:"in",tag:"mo",output:"∈",tex:null,ttype:X},{input:"!in",tag:"mo",output:"∉",tex:"notin",ttype:X},{input:"sub",tag:"mo",output:"⊂",tex:"subset",ttype:X},{input:"sup",tag:"mo",output:"⊃",tex:"supset",ttype:X},{input:"sube",tag:"mo",output:"⊆",tex:"subseteq",ttype:X},{input:"supe",tag:"mo",output:"⊇",tex:"supseteq",ttype:X},{input:"-=",tag:"mo",output:"≡",tex:"equiv",ttype:X},{input:"~=",tag:"mo",output:"≅",tex:"stackrel{\\sim}{=}",notexcopy:!0,ttype:X},{input:"cong",tag:"mo",output:"~=",tex:null,ttype:it},{input:"~~",tag:"mo",output:"≈",tex:"approx",ttype:X},{input:"prop",tag:"mo",output:"∝",tex:"propto",ttype:X},{input:"and",tag:"mtext",output:"and",tex:null,ttype:nt},{input:"or",tag:"mtext",output:"or",tex:null,ttype:nt},{input:"not",tag:"mo",output:"¬",tex:"neg",ttype:X},{input:"=>",tag:"mo",output:"⇒",tex:"Rightarrow",ttype:X},{input:"implies",tag:"mo",output:"=>",tex:null,ttype:it},{input:"if",tag:"mo",output:"if",tex:null,ttype:nt},{input:"<=>",tag:"mo",output:"⇔",tex:"Leftrightarrow",ttype:X},{input:"iff",tag:"mo",output:"<=>",tex:null,ttype:it},{input:"AA",tag:"mo",output:"∀",tex:"forall",ttype:X},{input:"EE",tag:"mo",output:"∃",tex:"exists",ttype:X},{input:"_|_",tag:"mo",output:"⊥",tex:"bot",ttype:X},{input:"TT",tag:"mo",output:"⊤",tex:"top",ttype:X},{input:"|--",tag:"mo",output:"⊢",tex:"vdash",ttype:X},{input:"|==",tag:"mo",output:"⊨",tex:"models",ttype:X},{input:"(",tag:"mo",output:"(",tex:null,ttype:tt,val:!0},{input:")",tag:"mo",output:")",tex:null,ttype:et,val:!0},{input:"[",tag:"mo",output:"[",tex:null,ttype:tt,val:!0},{input:"]",tag:"mo",output:"]",tex:null,ttype:et,val:!0},{input:"left(",tag:"mo",output:"(",tex:"(",notexcopy:!0,ttype:tt,val:!0},{input:"right)",tag:"mo",output:")",tex:")",notexcopy:!0,ttype:et,val:!0},{input:"left[",tag:"mo",output:"[",tex:"[",notexcopy:!0,ttype:tt,val:!0},{input:"right]",tag:"mo",output:"]",tex:"]",notexcopy:!0,ttype:et,val:!0},{input:"{",tag:"mo",output:"{",tex:"lbrace",ttype:tt},{input:"}",tag:"mo",output:"}",tex:"rbrace",ttype:et},{input:"|",tag:"mo",output:"|",tex:null,ttype:rt,val:!0},{input:"|:",tag:"mo",output:"|",tex:"|",ttype:tt,notexcopy:!0,val:!0},{input:":|",tag:"mo",output:"|",tex:"|",ttype:et,notexcopy:!0,val:!0},{input:":|:",tag:"mo",output:"|",tex:"|",ttype:X,notexcopy:!0,val:!0},{input:"(:",tag:"mo",output:"〈",tex:"langle",ttype:tt},{input:":)",tag:"mo",output:"〉",tex:"rangle",ttype:et},{input:"<<",tag:"mo",output:"〈",tex:"langle",ttype:tt},{input:">>",tag:"mo",output:"〉",tex:"rangle",ttype:et},{input:"{:",tag:"mo",output:"{:",tex:null,ttype:tt,invisible:!0},{input:":}",tag:"mo",output:":}",tex:null,ttype:et,invisible:!0},{input:"int",tag:"mo",output:"∫",tex:null,ttype:X},{input:"dx",tag:"mi",output:"{:d x:}",tex:null,ttype:it},{input:"dy",tag:"mi",output:"{:d y:}",tex:null,ttype:it},{input:"dz",tag:"mi",output:"{:d z:}",tex:null,ttype:it},{input:"dt",tag:"mi",output:"{:d t:}",tex:null,ttype:it},{input:"oint",tag:"mo",output:"∮",tex:null,ttype:X},{input:"del",tag:"mo",output:"∂",tex:"partial",ttype:X},{input:"grad",tag:"mo",output:"∇",tex:"nabla",ttype:X},{input:"+-",tag:"mo",output:"±",tex:"pm",ttype:X},{input:"O/",tag:"mo",output:"∅",tex:"emptyset",ttype:X},{input:"oo",tag:"mo",output:"∞",tex:"infty",ttype:X},{input:"aleph",tag:"mo",output:"ℵ",tex:null,ttype:X},{input:"...",tag:"mo",output:"...",tex:"ldots",ttype:X},{input:":.",tag:"mo",output:"∴",tex:"therefore",ttype:X},{input:":'",tag:"mo",output:"∵",tex:"because",ttype:X},{input:"/_",tag:"mo",output:"∠",tex:"angle",ttype:X},{input:"/_\\",tag:"mo",output:"△",tex:"triangle",ttype:X},{input:"\\ ",tag:"mo",output:" ",tex:null,ttype:X,val:!0},{input:"frown",tag:"mo",output:"⌢",tex:null,ttype:X},{input:"%",tag:"mo",output:"%",tex:"%",ttype:X,notexcopy:!0},{input:"quad",tag:"mo",output:"  ",tex:null,ttype:X},{input:"qquad",tag:"mo",output:"    ",tex:null,ttype:X},{input:"cdots",tag:"mo",output:"⋯",tex:null,ttype:X},{input:"vdots",tag:"mo",output:"⋮",tex:null,ttype:X},{input:"ddots",tag:"mo",output:"⋱",tex:null,ttype:X},{input:"diamond",tag:"mo",output:"⋄",tex:null,ttype:X},{input:"square",tag:"mo",output:"□",tex:"boxempty",ttype:X},{input:"|__",tag:"mo",output:"⌊",tex:"lfloor",ttype:X},{input:"__|",tag:"mo",output:"⌋",tex:"rfloor",ttype:X},{input:"|~",tag:"mo",output:"⌈",tex:"lceil",ttype:X},{input:"lceiling",tag:"mo",output:"|~",tex:null,ttype:it},{input:"~|",tag:"mo",output:"⌉",tex:"rceil",ttype:X},{input:"rceiling",tag:"mo",output:"~|",tex:null,ttype:it},{input:"CC",tag:"mo",output:"ℂ",tex:"mathbb{C}",ttype:X,notexcopy:!0},{input:"NN",tag:"mo",output:"ℕ",tex:"mathbb{N}",ttype:X,notexcopy:!0},{input:"QQ",tag:"mo",output:"ℚ",tex:"mathbb{Q}",ttype:X,notexcopy:!0},{input:"RR",tag:"mo",output:"ℝ",tex:"mathbb{R}",ttype:X,notexcopy:!0},{input:"ZZ",tag:"mo",output:"ℤ",tex:"mathbb{Z}",ttype:X,notexcopy:!0},{input:"f",tag:"mi",output:"f",tex:null,ttype:Z,func:!0,val:!0},{input:"g",tag:"mi",output:"g",tex:null,ttype:Z,func:!0,val:!0},{input:"''",tag:"mo",output:"''",tex:null,val:!0},{input:"'''",tag:"mo",output:"'''",tex:null,val:!0},{input:"''''",tag:"mo",output:"''''",tex:null,val:!0},{input:"lim",tag:"mo",output:"lim",tex:null,ttype:ot},{input:"Lim",tag:"mo",output:"Lim",tex:null,ttype:ot},{input:"sin",tag:"mo",output:"sin",tex:null,ttype:Z,func:!0},{input:"cos",tag:"mo",output:"cos",tex:null,ttype:Z,func:!0},{input:"tan",tag:"mo",output:"tan",tex:null,ttype:Z,func:!0},{input:"arcsin",tag:"mo",output:"arcsin",tex:null,ttype:Z,func:!0},{input:"arccos",tag:"mo",output:"arccos",tex:null,ttype:Z,func:!0},{input:"arctan",tag:"mo",output:"arctan",tex:null,ttype:Z,func:!0},{input:"sinh",tag:"mo",output:"sinh",tex:null,ttype:Z,func:!0},{input:"cosh",tag:"mo",output:"cosh",tex:null,ttype:Z,func:!0},{input:"tanh",tag:"mo",output:"tanh",tex:null,ttype:Z,func:!0},{input:"cot",tag:"mo",output:"cot",tex:null,ttype:Z,func:!0},{input:"coth",tag:"mo",output:"coth",tex:null,ttype:Z,func:!0},{input:"sech",tag:"mo",output:"sech",tex:null,ttype:Z,func:!0},{input:"csch",tag:"mo",output:"csch",tex:null,ttype:Z,func:!0},{input:"sec",tag:"mo",output:"sec",tex:null,ttype:Z,func:!0},{input:"csc",tag:"mo",output:"csc",tex:null,ttype:Z,func:!0},{input:"log",tag:"mo",output:"log",tex:null,ttype:Z,func:!0},{input:"ln",tag:"mo",output:"ln",tex:null,ttype:Z,func:!0},{input:"abs",tag:"mo",output:"abs",tex:null,ttype:Z,notexcopy:!0,rewriteleftright:["|","|"]},{input:"norm",tag:"mo",output:"norm",tex:null,ttype:Z,notexcopy:!0,rewriteleftright:["\\|","\\|"]},{input:"floor",tag:"mo",output:"floor",tex:null,ttype:Z,notexcopy:!0,rewriteleftright:["\\lfloor","\\rfloor"]},{input:"ceil",tag:"mo",output:"ceil",tex:null,ttype:Z,notexcopy:!0,rewriteleftright:["\\lceil","\\rceil"]},{input:"Sin",tag:"mo",output:"Sin",tex:null,ttype:Z,func:!0},{input:"Cos",tag:"mo",output:"Cos",tex:null,ttype:Z,func:!0},{input:"Tan",tag:"mo",output:"Tan",tex:null,ttype:Z,func:!0},{input:"Arcsin",tag:"mo",output:"Arcsin",tex:null,ttype:Z,func:!0},{input:"Arccos",tag:"mo",output:"Arccos",tex:null,ttype:Z,func:!0},{input:"Arctan",tag:"mo",output:"Arctan",tex:null,ttype:Z,func:!0},{input:"Sinh",tag:"mo",output:"Sinh",tex:null,ttype:Z,func:!0},{input:"Cosh",tag:"mo",output:"Cosh",tex:null,ttype:Z,func:!0},{input:"Tanh",tag:"mo",output:"Tanh",tex:null,ttype:Z,func:!0},{input:"Cot",tag:"mo",output:"Cot",tex:null,ttype:Z,func:!0},{input:"Sec",tag:"mo",output:"Sec",tex:null,ttype:Z,func:!0},{input:"Csc",tag:"mo",output:"Csc",tex:null,ttype:Z,func:!0},{input:"Log",tag:"mo",output:"Log",tex:null,ttype:Z,func:!0},{input:"Ln",tag:"mo",output:"Ln",tex:null,ttype:Z,func:!0},{input:"Abs",tag:"mo",output:"abs",tex:null,ttype:Z,notexcopy:!0,rewriteleftright:["|","|"]},{input:"det",tag:"mo",output:"det",tex:null,ttype:Z,func:!0},{input:"exp",tag:"mo",output:"exp",tex:null,ttype:Z,func:!0},{input:"dim",tag:"mo",output:"dim",tex:null,ttype:X},{input:"mod",tag:"mo",output:"mod",tex:"text{mod}",ttype:X,notexcopy:!0},{input:"gcd",tag:"mo",output:"gcd",tex:null,ttype:Z,func:!0},{input:"lcm",tag:"mo",output:"lcm",tex:"text{lcm}",ttype:Z,func:!0,notexcopy:!0},{input:"lub",tag:"mo",output:"lub",tex:null,ttype:X},{input:"glb",tag:"mo",output:"glb",tex:null,ttype:X},{input:"min",tag:"mo",output:"min",tex:null,ttype:ot},{input:"max",tag:"mo",output:"max",tex:null,ttype:ot},{input:"uarr",tag:"mo",output:"↑",tex:"uparrow",ttype:X},{input:"darr",tag:"mo",output:"↓",tex:"downarrow",ttype:X},{input:"rarr",tag:"mo",output:"→",tex:"rightarrow",ttype:X},{input:"->",tag:"mo",output:"→",tex:"to",ttype:X},{input:">->",tag:"mo",output:"↣",tex:"rightarrowtail",ttype:X},{input:"->>",tag:"mo",output:"↠",tex:"twoheadrightarrow",ttype:X},{input:">->>",tag:"mo",output:"⤖",tex:"twoheadrightarrowtail",ttype:X},{input:"|->",tag:"mo",output:"↦",tex:"mapsto",ttype:X},{input:"larr",tag:"mo",output:"←",tex:"leftarrow",ttype:X},{input:"harr",tag:"mo",output:"↔",tex:"leftrightarrow",ttype:X},{input:"rArr",tag:"mo",output:"⇒",tex:"Rightarrow",ttype:X},{input:"lArr",tag:"mo",output:"⇐",tex:"Leftarrow",ttype:X},{input:"hArr",tag:"mo",output:"⇔",tex:"Leftrightarrow",ttype:X},{input:"sqrt",tag:"msqrt",output:"sqrt",tex:null,ttype:Z},{input:"root",tag:"mroot",output:"root",tex:null,ttype:Q},{input:"frac",tag:"mfrac",output:"/",tex:null,ttype:Q},{input:"/",tag:"mfrac",output:"/",tex:null,ttype:Y},{input:"stackrel",tag:"mover",output:"stackrel",tex:null,ttype:Q},{input:"_",tag:"msub",output:"_",tex:null,ttype:Y},{input:"^",tag:"msup",output:"^",tex:null,ttype:Y},{input:"cancel",tag:"menclose",output:"cancel",tex:null,ttype:Z},{input:"Sqrt",tag:"msqrt",output:"sqrt",tex:null,ttype:Z},{input:"hat",tag:"mover",output:"^",tex:null,ttype:Z,acc:!0},{input:"bar",tag:"mover",output:"¯",tex:"overline",ttype:Z,acc:!0},{input:"vec",tag:"mover",output:"→",tex:null,ttype:Z,acc:!0},{input:"tilde",tag:"mover",output:"~",tex:null,ttype:Z,acc:!0},{input:"dot",tag:"mover",output:".",tex:null,ttype:Z,acc:!0},{input:"ddot",tag:"mover",output:"..",tex:null,ttype:Z,acc:!0},{input:"overarc",tag:"mover",output:"⏜",tex:"stackrel{\\frown}",notexcopy:!0,ttype:Z,acc:!0},{input:"overparen",tag:"mover",output:"⏜",tex:"stackrel{\\frown}",notexcopy:!0,ttype:Z,acc:!0},{input:"ul",tag:"munder",output:"̲",tex:"underline",ttype:Z,acc:!0},{input:"ubrace",tag:"munder",output:"⏟",tex:"underbrace",ttype:Z,acc:!0},{input:"obrace",tag:"mover",output:"⏞",tex:"overbrace",ttype:Z,acc:!0},{input:"text",tag:"mtext",output:"text",tex:null,ttype:at},{input:"mbox",tag:"mtext",output:"mbox",tex:null,ttype:at},ut,{input:"color",tag:"mstyle",ttype:Q},{input:"bb",tag:"mstyle",atname:"mathvariant",atval:"bold",output:"bb",tex:"mathbf",ttype:Z,notexcopy:!0},{input:"mathbf",tag:"mstyle",atname:"mathvariant",atval:"bold",output:"mathbf",tex:null,ttype:Z},{input:"sf",tag:"mstyle",atname:"mathvariant",atval:"sans-serif",output:"sf",tex:"mathsf",ttype:Z,notexcopy:!0},{input:"mathsf",tag:"mstyle",atname:"mathvariant",atval:"sans-serif",output:"mathsf",tex:null,ttype:Z},{input:"bbb",tag:"mstyle",atname:"mathvariant",atval:"double-struck",output:"bbb",tex:"mathbb",ttype:Z,notexcopy:!0},{input:"mathbb",tag:"mstyle",atname:"mathvariant",atval:"double-struck",output:"mathbb",tex:null,ttype:Z},{input:"cc",tag:"mstyle",atname:"mathvariant",atval:"script",output:"cc",tex:"mathcal",ttype:Z,notexcopy:!0},{input:"mathcal",tag:"mstyle",atname:"mathvariant",atval:"script",output:"mathcal",tex:null,ttype:Z},{input:"tt",tag:"mstyle",atname:"mathvariant",atval:"monospace",output:"tt",tex:"mathtt",ttype:Z,notexcopy:!0},{input:"mathtt",tag:"mstyle",atname:"mathvariant",atval:"monospace",output:"mathtt",tex:null,ttype:Z},{input:"fr",tag:"mstyle",atname:"mathvariant",atval:"fraktur",output:"fr",tex:"mathfrak",ttype:Z,notexcopy:!0},{input:"mathfrak",tag:"mstyle",atname:"mathvariant",atval:"fraktur",output:"mathfrak",tex:null,ttype:Z}];function lt(t,e){return t.input>e.input?1:-1}var pt,ct,dt,mt=[];function ft(t,e){var n;n="\\"==t.charAt(e)&&"\\"!=t.charAt(e+1)&&" "!=t.charAt(e+1)?t.slice(e+1):t.slice(e);for(var o=0;n.length>o&&32>=n.charCodeAt(o);o+=1);return n.slice(o)}function gt(t,e,n){if(0==n){var o,i;for(n=-1,o=t.length;o>n+1;)e>t[i=n+o>>1]?n=i:o=i;return o}for(var r=n;t.length>r&&e>t[r];r++);return r}function ht(t){for(var e,n,o,i=0,r="",a=!0,u=1;t.length>=u&&a;u++)n=t.slice(0,u),i=gt(mt,n,i),mt.length>i&&t.slice(0,mt[i].length)==mt[i]&&(e=i,u=(r=mt[i]).length),a=mt.length>i&&t.slice(0,mt[i].length)>=mt[i];if(ct=dt,""!=r)return dt=st[e].ttype,st[e];dt=X,i=1,n=t.slice(0,1);for(var s=!0;n>="0"&&"9">=n&&t.length>=i;)n=t.slice(i,i+1),i++;if(n==K.decimalsign&&(n=t.slice(i,i+1))>="0"&&"9">=n)for(s=!1,i++;n>="0"&&"9">=n&&t.length>=i;)n=t.slice(i,i+1),i++;return s&&i>1||i>2?(n=t.slice(0,i-1),o="mn"):(i=2,o=("A">(n=t.slice(0,1))||n>"Z")&&("a">n||n>"z")?"mo":"mi"),"-"==n&&ct==Y?(dt=Y,{input:n,tag:o,output:n,ttype:Z,func:!0,val:!0}):{input:n,tag:o,output:n,ttype:X,val:!0}}function yt(t){var e;if("{"==t.charAt(0)&&"}"==t.charAt(t.length-1)){var n=0;"\\left"==(e=t.substr(1,5))?"("==(e=t.charAt(6))||"["==e||"{"==e?n=7:"\\lbrace"==(e=t.substr(6,7))&&(n=13):"("!=(e=t.charAt(1))&&"["!=e||(n=2),n>0&&("\\right)}"==(e=t.substr(t.length-8))||"\\right]}"==e||"\\right.}"==e?t=(t="{"+t.substr(n)).substr(0,t.length-8)+"}":"\\rbrace}"==e&&(t=(t="{"+t.substr(n)).substr(0,t.length-14)+"}"))}return t}function vt(t){var e;return e="boolean"==typeof t.val&&t.val?"":"\\",null==t.tex?e+t.input:e+t.tex}function wt(t){var e,n,o,i,r="";if(null==(e=ht(t=ft(t,0)))||e.ttype==et&&pt>0)return[null,t];switch(e.ttype==it&&(e=ht(t=e.output+ft(t,e.input.length))),e.ttype){case ot:case X:t=ft(t,e.input.length);var a=vt(e);return"\\"==a.charAt(0)||"mo"==e.tag?[a,t]:["{"+a+"}",t];case tt:pt++,o=bt(t=ft(t,e.input.length),!0),pt--;var u=0;return"\\right"==o[0].substr(0,6)&&(")"==(l=o[0].charAt(6))||"]"==l||"}"==l?u=6:"."==l?u=7:"\\rbrace"==(l=o[0].substr(6,7))&&(u=13)),u>0?(o[0]=o[0].substr(u),n="boolean"==typeof e.invisible&&e.invisible?"{"+o[0]+"}":"{"+vt(e)+o[0]+"}"):n="boolean"==typeof e.invisible&&e.invisible?"{\\left."+o[0]+"}":"{\\left"+vt(e)+o[0]+"}",[n,o[1]];case at:return e!=ut&&(t=ft(t,e.input.length)),-1==(i="{"==t.charAt(0)?t.indexOf("}"):"("==t.charAt(0)?t.indexOf(")"):"["==t.charAt(0)?t.indexOf("]"):e==ut?t.slice(1).indexOf('"')+1:0)&&(i=t.length)," "==(l=t.slice(1,i)).charAt(0)&&(r="\\ "),r+="\\text{"+l+"}"," "==l.charAt(l.length-1)&&(r+="\\ "),[r,t=ft(t,i+1)];case Z:return null==(o=wt(t=ft(t,e.input.length)))[0]?["{"+vt(e)+"}",t]:"boolean"==typeof e.func&&e.func?"^"==(l=t.charAt(0))||"_"==l||"/"==l||"|"==l||","==l||1==e.input.length&&e.input.match(/\w/)&&"("!=l?["{"+vt(e)+"}",t]:[n="{"+vt(e)+"{"+o[0]+"}}",o[1]]:(o[0]=yt(o[0]),"sqrt"==e.input?["\\sqrt{"+o[0]+"}",o[1]]:"cancel"==e.input?["\\cancel{"+o[0]+"}",o[1]]:void 0!==e.rewriteleftright?["{\\left"+e.rewriteleftright[0]+o[0]+"\\right"+e.rewriteleftright[1]+"}",o[1]]:"boolean"==typeof e.acc&&e.acc?[vt(e)+"{"+o[0]+"}",o[1]]:["{"+vt(e)+"{"+o[0]+"}}",o[1]]);case Q:if(null==(o=wt(t=ft(t,e.input.length)))[0])return["{"+vt(e)+"}",t];o[0]=yt(o[0]);var s=wt(o[1]);return null==s[0]?["{"+vt(e)+"}",t]:(s[0]=yt(s[0]),[r="color"==e.input?"{\\color{"+o[0].replace(/[\{\}]/g,"")+"}"+s[0]+"}":"root"==e.input?"{\\sqrt["+o[0]+"]{"+s[0]+"}}":"{"+vt(e)+"{"+o[0]+"}{"+s[0]+"}}",s[1]]);case Y:return t=ft(t,e.input.length),[e.output,t];case nt:return t=ft(t,e.input.length),["{\\quad\\text{"+e.input+"}\\quad}",t];case rt:pt++,o=bt(t=ft(t,e.input.length),!1),pt--;var l="";return"|"==(l=o[0].charAt(o[0].length-1))&&","!==t.charAt(0)?[n="{\\left|"+o[0]+"}",o[1]]:[n="{\\mid}",t];default:return t=ft(t,e.input.length),["{"+vt(e)+"}",t]}}function xt(t){var e,n,o,i,r;if(n=ht(t=ft(t,0)),i=(r=wt(t))[0],(e=ht(t=r[1])).ttype==Y&&"/"!=e.input){if((r=wt(t=ft(t,e.input.length)))[0]=null==r[0]?"{}":yt(r[0]),t=r[1],"_"==e.input)if("^"==(o=ht(t)).input){var a=wt(t=ft(t,o.input.length));a[0]=yt(a[0]),t=a[1],i="{"+i,i+="_{"+r[0]+"}",i+="^{"+a[0]+"}",i+="}"}else i+="_{"+r[0]+"}";else i=i+"^{"+r[0]+"}";void 0!==n.func&&n.func&&((o=ht(t)).ttype==Y||o.ttype==et||1>=n.input.length&&o.ttype!=tt||(i="{"+i+(r=xt(t))[0]+"}",t=r[1]))}return[i,t]}function bt(t,e){var n,o,i,r,a="",u=!1;do{o=(i=xt(t=ft(t,0)))[0],(n=ht(t=i[1])).ttype==Y&&"/"==n.input?((i=xt(t=ft(t,n.input.length)))[0]=null==i[0]?"{}":yt(i[0]),t=i[1],o="\\frac{"+(o=yt(o))+"}",a+=o+="{"+i[0]+"}",n=ht(t)):null!=o&&(a+=o)}while((n.ttype!=et&&(n.ttype!=rt||e)||0==pt)&&null!=n&&""!=n.output);if(n.ttype==et||n.ttype==rt){var s=a.length;if(s>2&&"{"==a.charAt(0)&&a.indexOf(",")>0){var l=a.charAt(s-2);if(")"==l||"]"==l){var p=a.charAt(6);if("("==p&&")"==l&&"}"!=n.output||"["==p&&"]"==l){var c="",d=[];d.push(0);var m=!0,f=0,g=[];g[0]=[0];var h=0,y=0,v="";for(r=1;s-1>r;r++)a.charAt(r)==p&&f++,a.charAt(r)==l&&0==--f&&","==a.charAt(r+2)&&"{"==a.charAt(r+3)&&(d.push(r+2),g[h=r+2]=[r+2]),"["!=a.charAt(r)&&"("!=a.charAt(r)&&"{"!=a.charAt(r)||y++,"]"!=a.charAt(r)&&")"!=a.charAt(r)&&"}"!=a.charAt(r)||y--,","==a.charAt(r)&&1==y&&g[h].push(r),0>y&&(h==r+1?r++:m=!1);d.push(s);var w=-1;if(0==f&&d.length>0&&m)for(r=0;d.length-1>r;r++){if(r>0&&(c+="\\\\"),0==r)if(1==g[d[r]].length)var x=[a.substr(d[r]+7,d[r+1]-d[r]-15)];else{x=[a.substring(d[r]+7,g[d[r]][1])];for(var b=2;g[d[r]].length>b;b++)x.push(a.substring(g[d[r]][b-1]+1,g[d[r]][b]));x.push(a.substring(g[d[r]][g[d[r]].length-1]+1,d[r+1]-8))}else if(1==g[d[r]].length)x=[a.substr(d[r]+8,d[r+1]-d[r]-16)];else{for(x=[a.substring(d[r]+8,g[d[r]][1])],b=2;g[d[r]].length>b;b++)x.push(a.substring(g[d[r]][b-1]+1,g[d[r]][b]));x.push(a.substring(g[d[r]][g[d[r]].length-1]+1,d[r+1]-8))}for(b=x.length-1;b>=0;b--)"{\\mid}"==x[b]?(0==r&&(v="|"+v),x.splice(b,1)):0==r&&(v="c"+v);w>0&&x.length!=w?m=!1:-1==w&&(w=x.length),c+=x.join("&")}c="\\begin{array}{"+v+"} "+c+"\\end{array}",m&&(a=c)}}}t=ft(t,n.input.length),"boolean"==typeof n.invisible&&n.invisible?(a+="\\right.",u=!0):(a+=o="\\right"+vt(n),u=!0)}return pt>0&&!u&&(a+="\\right."),[a,t]}function jt(t){return pt=0,null==(t=(t=(t=t.replace(/(&nbsp;|\u00a0|&#160;)/g,"")).replace(/&gt;/g,">")).replace(/&lt;/g,"<")).match(/\S/)?"":bt(t.replace(/^\s+/g,""),!1)[0]}if(function(){var t,e=st.length;for(t=0;e>t;t++)!st[t].tex||"boolean"==typeof st[t].notexcopy&&st[t].notexcopy||st.push({input:st[t].tex,tag:st[t].tag,output:st[t].output,ttype:st[t].ttype,acc:st[t].acc||!1});!function(){var t;for(st.sort(lt),t=0;st.length>t;t++)mt[t]=st[t].input}()}(),"undefined"==typeof window)throw Error("The showdown katex extension can only be used in browser environment!");if(void 0===St)var St=window.katex||void 0;if("undefined"==typeof renderMathInElement)var Et=window.renderMathInElement||void 0;let Ot=0;function Ct(){return!(void 0===Et||!Et||void 0===St||!St)}let At=!1;const kt="katexCSS";function $t(t){const e=Ct();if("undefined"!=typeof window){if(At)return e;if(!e)return At=!0,g.loadStyleSheet(kt),g.loadScript("katex").then((t=>(St=h.interopDefault(window[t]),g.loadScript("renderMathInElement")))).then((e=>{Et=h.interopDefault(window[e]),"function"==typeof t&&t&&t(Et)})).catch((t=>{})),e}return"function"==typeof t&&t&&t(Et),e}function Nt(t,e){if(Ct()){const n=e.className,o=e.input,i=e.data,r=e.cssLink,a=e.options,u=e.element.ownerDocument;let s="";if(i instanceof Array)i.forEach((t=>{if(""===t)s+="<br>";else{const e=St.renderToString(t,a);s+=r?`<div title="${o}" class="${n} css-katex" data-css="${r}">${e}</div>`:`<div title="${o}" class="${n}">${e}</div>`}}));else{const t=St.renderToString(i,a);s=r?`<div title="${o}" class="${n} css-katex" data-css="${r}">${t}</div>`:`<div title="${o}" class="${n}">${t}</div>`}e.element.parentNode.outerHTML=s,--Ot,Ot||Et(u.body,a),t(!0)}else setTimeout((()=>{Nt(t,e)}),10)}function Lt(t,e,n){return new Promise((o=>{let i;const r=h.createElementMeta("katex",t,(t=>{let e;i=t;const o=t.split(/\n[ \f\r\t\v]*\n/);return o.length>1?(e=[],o.forEach((t=>{""!==(t=t.trim())&&(t=n?jt(t):t),e.push(t)}))):e=n?jt(i):i,e}));if(!r)return o(!1);r.cssLink=g.getSrc(kt),r.input=i,r.options=e,Nt(o,r)}))}function qt(t){return t.replace(/[-[\]/{}()*+?.\\$^|]/g,"\\$&")}const Pt=(t={})=>{let e={displayMode:!0,throwOnError:!1,errorColor:"#ff0000",delimiters:null,...t};function n(t,e){return!(!t||"object"!=typeof t||!t.hasOwnProperty(e))}function o(t,e,o){return!!(n(t,e)&&n(t[e],o)&&(i=t[e][o],Array.isArray(i)&&i.length))&&(t[e][o].forEach((t=>{t.display="inline"!==o,"asciimath"===e&&(t.asciimath=!0)})),t[e][o]);var i}return Array.isArray(e.delimiters)?e.delimiters.length||(e.delimiters=[{left:"$$",right:"$$",display:!0},{left:"\\[",right:"\\]",display:!0},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\(",right:"\\)",display:!1},{left:"@@",right:"@@",display:!0,asciimath:!0},{left:"@ ",right:" @",display:!1,asciimath:!0},{left:"\\~",right:"\\~",display:!1,asciimath:!0}]):e.delimiters=[].concat(o(e.delimiters,"texmath","display")||[{left:"$$",right:"$$",display:!0},{left:"\\[",right:"\\]",display:!0},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0}]).concat(o(e.delimiters,"texmath","inline")||[{left:"\\(",right:"\\)",display:!1}]).concat(o(e.delimiters,"asciimath","display")||[{left:"@@",right:"@@",display:!0,asciimath:!0}]).concat(o(e.delimiters,"asciimath","inline")||[{left:"@ ",right:" @",display:!1,asciimath:!0},{left:"\\~",right:"\\~",display:!1,asciimath:!0}]),e};function Dt(t){let e=0;const n=Pt(t),o=n.delimiters.map((({left:t,right:n,display:o,asciimath:i})=>({test:RegExp(`${qt(t)}(.+?)${qt(n)}`,"g"),replacer:(t,n)=>(++e,i&&(n=jt(n)),o?`\\[${n}\\]`:`\\(${n}\\)`)})));return[{type:"output",config:n,filter:function(t){e=0;const i=t.wrapper;if(!i)return!1;o.length&&i.querySelectorAll(":not(code):not(pre)").forEach((t=>{[...t.childNodes].filter((t=>"#text"===t.nodeName&&t.nodeValue.trim())).forEach((t=>{const e=o.reduce(((t,{test:e,replacer:n})=>t.replace(e,n)),t.nodeValue);t.nodeValue=e}))}));const r=i.querySelectorAll("code.latex.language-latex"),a=i.querySelectorAll("code.asciimath.language-asciimath");if(!r.length&&!a.length){if(e>0){this.config.cssLink=g.getSrc(kt);const u=this;function s(t,e){Ct()?(e(i.ownerDocument.body,u.config),t(!0)):setTimeout((()=>{s(t,e)}),10)}return new Promise((t=>{$t((e=>{s(t,e)}))})).then((()=>t))}return!1}return n.cssLink=g.getSrc(kt),function(t,e,n){return Ot=t.length+e.length,$t(),new Promise((o=>{const i=[];t.forEach((t=>{i.push(Lt(t,n,!1))})),e.forEach((t=>{i.push(Lt(t,n,!0))})),Promise.all(i).then((()=>{o(!0)}))}))}(r,a,this.config).then((()=>t))}}]}const Mt="echarts";if("undefined"==typeof window)throw Error(`The showdown ${Mt} extension can only be used in browser environment!`);if(void 0===Tt)var Tt=window.echarts||void 0;function _t(){return!!Tt}let Ht=!1;function Ft(t,e){if(_t()){return e.element.parentNode.outerHTML=`<div id="${e.id}" class="${e.className}"></div>`,t(!0)}setTimeout((()=>{Ft(t,e)}),20)}function Bt(t,e,n){const o=h.createElementMeta(Mt,t);if(!o)return Promise.resolve(!1);n=JSON.stringify({...n,ssr:!1});const i=JSON.stringify(JSON.parse(o.data));return e.push({id:o.id,code:`(function() {\n let el = document.getElementById('${o.id}');\n if (el){\n let config = JSON.parse('${n}');\n let chart = echarts.init(el, null, config);\n let option = JSON.parse('${i}');\n chart.setOption(option);\n }\n })();`}),new Promise((t=>{Ft(t,o)}))}function Rt(t,e,n){return function(){const t=_t();if("undefined"!=typeof window){if(Ht)return t;t||(Ht=!0,g.loadScript(Mt).then((t=>{Tt=h.interopDefault(window[t])})))}}(),new Promise((o=>{const i=[];t.forEach((t=>{i.push(Bt(t,e,n))})),Promise.all(i).then((()=>{o(!0)}))}))}function zt(t){return[{type:"output",config:((t={})=>({renderer:"svg",ssr:!1,width:400,height:300,tooltip:{show:!0},animation:!0,...t}))(t),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll(`code.${Mt}.language-${Mt}`);return!!n.length&&Rt(n,t.scripts,this.config).then((()=>t))}}]}const It="mermaid";if("undefined"==typeof window)throw Error("The showdown mermaid extension can only be used in browser environment!");if(void 0===Jt)var Jt=window.mermaid||void 0;function Wt(){return!(void 0===Jt||!Jt)}let Vt=!1;function Ut(t,e){if(Wt()){const n=e.className,o=e.element.parentNode;Jt.render(e.id,e.data).then((e=>{o.outerHTML=`<div class="${n}">${e.svg}</div>`,t(!0)}))}else setTimeout((()=>{Ut(t,e)}),10)}function Gt(t){return new Promise((e=>{const n=h.createElementMeta(It,t);if(!n)return e(!1);Ut(e,n)}))}function Kt(t,e){return function(t){const e=Wt();if("undefined"!=typeof window){if(Vt)return e;if(!e)return Vt=!0,g.loadScript(It).then((e=>{(Jt=h.interopDefault(window[e])).initialize(t)})),e}Jt.initialize(t)}(e),new Promise((e=>{const n=[];t.forEach((t=>{n.push(Gt(t))})),Promise.all(n).then((()=>{e(!0)}))}))}function Xt(t){return[{type:"output",config:((t={})=>({theme:"forest",logLevel:4,startOnLoad:!1,arrowMarkerAbsolute:!1,flowchart:{curve:"basis"},gantt:{axisFormat:"%m/%d/%Y"},sequence:{actorMargin:50},...t}))(t),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.mermaid.language-mermaid");return!!n.length&&Kt(n,this.config).then((()=>t))}}]}function Zt(t,e,n){var o=(3&t)<<4|e>>4,i=(15&e)<<2|n>>6,r=63&n,a="";return a+=Qt(63&t>>2),a+=Qt(63&o),a+=Qt(63&i),a+=Qt(63&r)}function Qt(t){return 10>t?String.fromCharCode(48+t):26>(t-=10)?String.fromCharCode(65+t):26>(t-=26)?String.fromCharCode(97+t):0==(t-=26)?"-":1==t?"_":"?"}function Yt(t){var e=t.charCodeAt(0);return"_"===t?63:"-"===t?62:97>e?65>e?48>e?"?":e-48:e-55:e-61}function te(t){var e=Yt(t[0]),n=Yt(t[1]),o=Yt(t[2]);return[e<<2|n>>4&63,n<<4&240|o>>2&15,o<<6&192|63&Yt(t[3])]}function ee(t){return function(t){for(var e="",n=0;t.length>n;n+=3)e+=n+2==t.length?Zt(t.charCodeAt(n),t.charCodeAt(n+1),0):n+1==t.length?Zt(t.charCodeAt(n),0,0):Zt(t.charCodeAt(n),t.charCodeAt(n+1),t.charCodeAt(n+2));return e}(e.deflateRawSync(t,{level:9}).toString("binary"))}function ne(t){return""+e.inflateRawSync(Buffer.from(function(t){var e="",n=0;for(n=0;t.length>n;n+=4){var o=te(t.substring(n,n+4));e+=String.fromCharCode(o[0]),e+=String.fromCharCode(o[1]),e+=String.fromCharCode(o[2])}return e}(t),"binary"))}const oe={encodeuml:function(t){const e="@startuml",n="@enduml";return ee(`${e}${(t.split(e)[1]+"").split(n)[0]||""}${n}`)},decodeuml:function(t){return ne(t)}},ie="img";let re=0;function ae(t,e){return re=t.length,new Promise((n=>{const o=[];t.forEach((t=>{o.push(function(t,e){return new Promise((n=>{const o=t.dataset.lang,i=o?JSON.parse(o):null;let r="";if(i){if("boolean"==typeof i.codeblock&&i.codeblock||"string"==typeof i.codeblock&&"true"===i.codeblock.toLowerCase())return n(!1);i.align&&("center"===i.align?r="diagram-center":"right"===i.align&&(r="diagram-right"))}const a=t.textContent.trim(),u=(t.classList.length>0?t.classList[0]:"")+(t.className&&r?" ":"")+r,s=e.imageFormat;if("svg"!==s){const o=window&&window.location.protocol,i=("http:"===o||"https:"===o?"//":"https://")+e.umlWebSite,r=s!==ie?"."+s:"",l=oe.encodeuml(a);return t.parentNode.outerHTML=`<div class="${u}"><img src='${i}/${s}/${l}${r}' alt=''></img></div>`,n(!0)}{const o="plantuml-"+Date.now()+"-"+Math.floor(1e4*Math.random());if("function"==typeof e.svgRender&&e.svgRender)e.svgRender(o,u,a,re).then((e=>{t.parentNode.outerHTML=`<div id="${o}" class="${u}">${e}</div>`,n(!0)}));else if("undefined"!=typeof window&&window.fetch&&window.dispatchEvent){const i=window&&window.location.protocol,r=("http:"===i||"https:"===i?"//":"https://")+e.umlWebSite,l=s!==ie?"."+s:"",p=oe.encodeuml(a);window.fetch(`${r}/${s}/${p}${l}`).then((t=>{if(t.ok)return t.text()})).then((e=>{t.parentNode.outerHTML=`<div id="${o}" class="${u}">${e}</div>`,n(!0)}))}}}))}(t,e))})),Promise.all(o).then((()=>{n(!0)}))}))}function ue(t){return[{type:"output",config:((t={})=>({umlWebSite:"www.plantuml.com/plantuml",imageFormat:ie,svgRender:null,...t}))(t),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.plantuml.language-plantuml");return!!n.length&&ae(n,this.config).then((()=>t))}}]}const se="railroad",le="railroadCSS";if("undefined"==typeof window)throw Error("The showdown railroad extension can only be used in browser environment!");let pe=!1;function ce(){return pe}let de,me=!1;function fe(t,e){if(ce()){const n=e.id,o=e.className,i=e.cssLink,r=window.eval(e.data).format(),a=e.element.ownerDocument;return e.element.parentNode.outerHTML=i?`<div id="${n}" class="${o} css-railroad" data-css="${i}"></div>`:`<div id="${n}" class="${o}"></div>`,r.addTo(a.getElementById(n)),t(!0)}setTimeout((()=>{fe(t,e)}),10)}function ge(t){return new Promise((e=>{const n=h.createElementMeta(se,t);if(!n)return e(!1);n.cssLink=g.getSrc(le),fe(e,n)}))}function he(t){return function(){const t=ce();if("undefined"!=typeof window){if(me)return t;t||(me=!0,g.loadStyleSheet(le),g.loadScript(se).then((()=>{pe=!0})))}}(),new Promise((e=>{const n=[];t.forEach((t=>{n.push(ge(t))})),Promise.all(n).then((()=>{e(!0)}))}))}function ye(){return[{type:"output",filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.railroad.language-railroad");return!!n.length&&(this.config={cssLink:g.getSrc(le)},he(n).then((()=>t)))}}]}if("undefined"==typeof window)throw Error("The showdown sequence extension can only be used in browser environment!");if(void 0===ve)var ve=window.Raphael||void 0;if("undefined"!=typeof window&&window.Diagram&&(de=window.Diagram,window.Diagram.Signal))var we=window.Diagram;const xe=["simple","hand"];if(void 0===we&&"undefined"!=typeof window)we=window.SequenceJS;function be(){return!!ve}function je(){return be()&&!!we}let Se=!1;const Ee="sequenceCSS";function Oe(t){const e=t.dataset.lang,n=e?JSON.parse(e):null;let o="";if(n){if("boolean"==typeof n.codeblock&&n.codeblock||"string"==typeof n.codeblock&&"true"===n.codeblock.toLowerCase())return;n.align&&("center"===n.align?o="diagram-center":"right"===n.align&&(o="diagram-right"))}const i=function(){const t=je();if("undefined"!=typeof window){if(Se)return t;t||(Se=!0,g.loadStyleSheet(Ee),g.loadScript("WebFont").then((()=>be()?"Raphael":g.loadScript("Raphael"))).then((t=>(ve=h.interopDefault(window[t]),g.loadScript("Snap")))).then((()=>g.loadScript("underscore"))).then((()=>(!de&&window.Diagram&&(de=window.Diagram),g.loadScript("sequence")))).then((()=>{we=window.Diagram,window.SequenceJS=we,de&&(window.Diagram=de)})))}return t}(),r=g.getSrc(Ee),a=t.textContent.trim(),u="js-sequence"+(o?" ":"")+o,s="sequence-"+Date.now()+"-"+Math.floor(1e4*Math.random());t.id=s,r&&(t.className=t.className+(t.className?" ":"")+"css-sequence",t.dataset.css=r),!i&&"undefined"!=typeof window&&window.dispatchEvent?Promise.resolve(s).then((t=>{window.dispatchEvent(new CustomEvent("sequence",{detail:{id:t,className:u,data:a,langattr:e,cssLink:r}}))})):"undefined"!=typeof window&&window.dispatchEvent&&window.dispatchEvent(new CustomEvent("sequence",{detail:{id:s,className:u,data:a,langattr:e,cssLink:r}}))}function Ce(t){if(je()){const e=t.id,n=t.className,o=t.data,i=t.cssLink;let r="hand";const a=t.langattr;if(a){const t=JSON.parse(a);t&&t.theme&&-1!=xe.indexOf(t.theme)&&(r=t.theme)}let u=window.document.getElementById(e);if(u){u.parentNode.outerHTML=i?`<div id="${e}" class="${n} css-sequence" data-css="${i}"></div>`:`<div id="${e}" class="${n}"></div>`,u=window.document.getElementById(e);return void we.parse(o).drawSVG(u||e,{theme:r})}}setTimeout((()=>{Ce(t)}),10)}function Ae(){let t=!1;const e=new DOMParser;return[{type:"output",filter:function(n){const o=e.parseFromString(n,"text/html"),i=void 0!==o.body?o.body:o,r=i.querySelectorAll("code.sequence.language-sequence");return r.length&&(t||"undefined"!=typeof window&&window.dispatchEvent&&(t=!0,window.addEventListener("sequence",(t=>{t.detail&&Ce(t.detail)}))),this.config={cssLink:g.getSrc(Ee)}),function(t){return!!t.length&&(t.forEach((t=>{Oe(t)})),!0)}(r)?i.innerHTML:n}}]}if("undefined"==typeof window)throw Error("The showdown wavedrom extension can only be used in browser environment!");if(void 0===ke)var ke=window.WaveDrom||void 0;let $e=0,Ne=0;function Le(){return!!ke}let qe=!1;function Pe(t,e){if(Le()){const n=e.index,o=e.id,i=e.data;let r=e.element;return r.parentNode.outerHTML=h.renderCacheElement(r.ownerDocument,o+n,e.className,(t=>{const e=window.eval(`(${i})`);ke.RenderWaveForm(n,e,o);const r=document.getElementById("WaveDrom_Display_"+n);if(t!=r)for(;r.childNodes.length;)t.appendChild(r.removeChild(r.childNodes[0]))})),t(!0)}setTimeout((()=>{Pe(t,e)}),10)}function De(t){return new Promise((e=>{const n=t.dataset.lang,o=n?JSON.parse(n):null;let i="";if(o){if("boolean"==typeof o.codeblock&&o.codeblock||"string"==typeof o.codeblock&&"true"===o.codeblock.toLowerCase())return;o.align&&("center"===o.align?i="diagram-center":"right"===o.align&&(i="diagram-right"))}const r=t.textContent.trim(),a=(t.classList.length>0?t.classList[0]:"")+(t.className&&i?" ":"")+i,u=Ne;++Ne,--$e,$e||(Ne=0);const s="WaveDrom_Display_";t.id=s+u;Pe(e,{element:t,index:u,id:s,className:a,data:r})}))}function Me(t,e){return function(t){const e=Le();qe||e||(qe=!0,"undefined"!=typeof window&&g.loadScript({WaveDromSkin:t}).then((()=>g.loadScript("WaveDrom"))).then((t=>{ke=h.interopDefault(window[t])})))}(e),new Promise((e=>{const n=[];$e=t.length,t.forEach((t=>{n.push(De(t))})),Promise.all(n).then((()=>{e(!0)}))}))}function Te(t){return[{type:"output",config:((t={})=>({skin:"default",...t}))(t),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.wavedrom.language-wavedrom");return!!n.length&&(u("Begin render wavedrom elements."),Me(n,this.config.skin).then((()=>(u("End render wavedrom elements."),t))))}}]}function _e(){return[{type:"lang",filter:(t,e)=>t.replace(/^\[\^([\d\w]+)\]:\s*((\n+(\s{2,4}|\t).+)+)$/gm,((t,n,o,i,r)=>`<div class="footnote" id="footnote-${n}"><a href="#footnote-${n}"><sup>[${n}]</sup></a>:${e.makeHtml(o.replace(RegExp("^"+r,"gm"),""))}</div>`))},{type:"lang",filter:t=>t.replace(/^\[\^([\d\w]+)\]:( |\n)((.+\n)*.+)$/gm,((t,e,n,o)=>`<small class="footnote" id="footnote-${e}"><a href="#footnote-${e}"><sup>[${e}]</sup></a>: ${o}</small>`))},{type:"lang",filter:t=>t.replace(/\[\^([\d\w]+)\]/m,((t,e)=>`<a href="#footnote-${e}"><sup>[${e}]</sup></a>`))}]}function He(){return[{type:"lang",filter:(t,e)=>t.replace(/(?:^|\n)(?: {0,3})(:::+)(?: *)([\S]+)(?:[ \t]*)([^\s][\S\t ]*)?\n([\s\S]*?)\n(?: {0,3})\1(?:[ \t]*)\n/g,(function(t,n,o,i,r){if(o){let t=o.split("-");t.length>1?t.forEach((function(t,e,n){e>0&&(n[e]=n[e-1]+"-"+t)})):t.unshift("container"),o=t.join(" ")}return r&&(r=e.makeHtml(r)),`<div class="showdown-container ${o}">${i=i?`<p class="container-title">${i}</p>`:""}${r}</div>`}))}]}if("undefined"==typeof window)throw Error("The showdown flowchart extension can only be used in browser environment!");if(void 0===Fe)var Fe=window.Raphael||void 0;if(void 0===Be)var Be=window.flowchart||void 0;function Re(){return!(void 0===Fe||!Fe||void 0===Be||!Be)}let ze=!1;function Ie(){const t=Re();if("undefined"!=typeof window){if(ze)return t;if(!t){if(ze=!0,!Fe)return g.loadScript("Raphael").then((t=>(Fe=h.interopDefault(window[t]),g.loadScript("flowchart")))).then((t=>{Be=h.interopDefault(window[t])})),t;g.loadScript("flowchart").then((t=>{Be=h.interopDefault(window[t])}))}}return t}function Je(t,e){if(Re()){const n=e.data,o=e.options;return e.element.parentNode.outerHTML=h.renderCacheElement(e.element.ownerDocument,e.id,e.className,(t=>{Be.parse(n).drawSVG(t,o)})),void t(!0)}setTimeout((()=>{Je(t,e)}),10)}function We(t,e){return new Promise((n=>{const o=h.createElementMeta("flowchart",t);if(!o)return n(!1);o.options=e,Je(n,o)}))}function Ve(t){const e=((t={})=>({"line-width":3,maxWidth:3,"line-length":50,"text-margin":10,"font-size":14,font:"normal","font-family":"Helvetica","font-weight":"normal","font-color":"black","line-color":"black","element-color":"black",fill:"white","yes-text":"yes","no-text":"no","arrow-end":"block",scale:1,symbols:{start:{"font-color":"red","element-color":"green",fill:"yellow"},end:{class:"end-element"}},flowstate:{past:{fill:"#CCCCCC","font-size":12},current:{fill:"yellow","font-color":"red","font-weight":"bold"},future:{fill:"#FFFF99"},request:{fill:"blue"},invalid:{fill:"#444444"},approved:{fill:"#58C4A3","font-size":12,"yes-text":"APPROVED","no-text":"n/a"},rejected:{fill:"#C45879","font-size":12,"yes-text":"n/a","no-text":"REJECTED"}},...t}))(t);return[{type:"output",config:e,filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.flowchart.language-flowchart"),o=e.querySelectorAll("code.flow.language-flow");return!(!n.length&&!o.length)&&function(t,e,n){return Ie(),new Promise((o=>{const i=[];t.forEach((t=>{i.push(We(t,n))})),e.forEach((t=>{i.push(We(t,n))})),Promise.all(i).then((()=>{o(!0)}))}))}(n,o,this.config).then((()=>t))}}]}const Ue=(t={})=>({flavor:"github",...t}),Ge=(t,e,n)=>{if(!e||"undefined"==typeof document)return!1;if(n||(n=document.getElementById(t)),n){const o="script-"+t;let i=document.querySelector(`#${n.id} > #${o}`);i?document.body.removeChild(i):(i=document.createElement("script"),i.id=o),i.type="text/javascript",i.text=e,n.appendChild(i)}return!0},Ke=["github","ghost","vanilla","original","allon"],Xe=["default","forest","dark","neutral"],Ze=["excel","ggplot2","quartz","vox","dark"],Qe=["canvas","svg"],Ye=["svg","png","jpg"],tn={showdown:t,converter:null,defaultOptions:{showdown:Ue(),plantuml:{imageFormat:"svg"},mermaid:{theme:"default"},katex:{},vega:{theme:"vox"}},defaultExtensions:{},defaultAsyncExtensions:{},markdownDecodeFilter:function(t){return""},initDefaultOptions:function(){this.defaultOptions||(this.defaultOptions={showdown:{},plantuml:{},mermaid:{},katex:{},vega:{}})},setFlavor:function(t){this.showdown.setFlavor(t),this.converter&&this.converter.setFlavor(t)},addOptions:function(t){for(const e in t)"flavor"!==e&&(this.showdown.setOption(e,t[e]),this.converter&&this.converter.setOption(e,t[e]))},addExtension:function(e,n){if(this.removeExtension(e),"string"==typeof e)try{t.extension(e,n),this.converter&&this.converter.addExtension(e)}catch(t){}},removeExtension:function(e){if("string"==typeof e){if(this.converter){let n=null;try{n=t.extension(e)}catch(t){}if(!n)return;this.converter.removeExtension(n)}t.removeExtension(e)}},addAsyncExtension:function(e,n){if(this.removeAsyncExtension(e),"string"==typeof e)try{t.asyncExtension(e,n),this.converter&&this.converter.addAsyncExtension(e)}catch(t){}},removeAsyncExtension:function(e){if("string"==typeof e){if(this.converter){let n=null;try{n=t.asyncExtension(e)}catch(t){}if(!n)return;this.converter.removeAsyncExtension(n)}t.removeAsyncExtension(e)}},setCDN:function(t,e,n){"string"==typeof t&&t&&g.setCDN(t,e,n)},setShowdownFlavor:function(t){this.initDefaultOptions(),t&&(-1===Ke.indexOf(t)&&(t="github"),this.defaultOptions.showdown.flavor=t,this.setFlavor(t))},setShowdownOptions:function(t){return this.initDefaultOptions(),"object"==typeof t&&t||(t={}),this.defaultOptions.showdown=Object.assign(this.defaultOptions.showdown||{},t),this.setShowdownFlavor(this.defaultOptions.showdown.flavor),this.addOptions(this.defaultOptions.showdown),this.defaultOptions.showdown},setPlantumlOptions:function(t){this.initDefaultOptions(),"object"==typeof t&&t||(t={}),this.defaultOptions.plantuml=Object.assign(this.defaultOptions.plantuml||{},t);const e=this.defaultOptions.plantuml.imageFormat;return e&&-1===Ye.indexOf(e)&&(this.defaultOptions.plantuml.imageFormat="png"),this.converter&&this.addAsyncExtension("showdown-plantuml",ue(this.defaultOptions.plantuml)),this.defaultOptions.plantuml},setMermaidOptions:function(t){this.initDefaultOptions(),"object"==typeof t&&t||(t={}),this.defaultOptions.mermaid=Object.assign(this.defaultOptions.mermaid||{},t);const e=this.defaultOptions.mermaid.theme;return e&&-1===Xe.indexOf(e)&&(this.defaultOptions.mermaid.theme="default"),this.converter&&this.addAsyncExtension("showdown-mermaid",Xt(this.defaultOptions.mermaid)),this.defaultOptions.mermaid},setKatexOptions:function(t){return this.initDefaultOptions(),"object"==typeof t&&t||(t={}),this.defaultOptions.katex=Object.assign(this.defaultOptions.katex||{},t),this.converter&&this.addAsyncExtension("showdown-katex",Dt(this.defaultOptions.katex)),this.defaultOptions.katex},setVegaOptions:function(t){this.initDefaultOptions(),"object"==typeof t&&t||(t={}),this.defaultOptions.vega=Object.assign(this.defaultOptions.vega||{},t);const e=this.defaultOptions.vega.theme;e&&-1===Ze.indexOf(e)&&(this.defaultOptions.vega.theme="vox");const n=this.defaultOptions.vega.renderer;return n&&-1===Qe.indexOf(n)&&(this.defaultOptions.vega.renderer="canvas"),this.converter&&this.addAsyncExtension("showdown-vega",U(this.defaultOptions.vega)),this.defaultOptions.vega},init:function(e){if(this.converter){let t={};if(t="boolean"==typeof e&&e?{option:!0,extension:!0}:e,"object"==typeof t){if(t.hasOwnProperty("option")&&t.option){const t=Ue(this.defaultOptions&&this.defaultOptions.showdown||{});this.addOptions(t)}t.hasOwnProperty("extension")&&t.extension&&(this.addAsyncExtension("showdown-plantuml",ue(this.defaultOptions.plantuml)),this.addAsyncExtension("showdown-mermaid",Xt(this.defaultOptions.mermaid)),this.addAsyncExtension("showdown-vega",U(this.defaultOptions.vega)))}}else{const e=Ue(this.defaultOptions&&this.defaultOptions.showdown||{}),n=((e,n={})=>{const o={"showdown-toc":L,"showdown-align":G,"showdown-footnotes":_e,"showdown-container":He,"showdown-sequence":Ae,...n};let i=[];for(let e in o)o.hasOwnProperty(e)&&(t.extension(e,o[e]),i.push(e));return i})(0,this.defaultExtensions),o=((e,n={})=>{const o=e&&e.mermaid||{},i=e&&e.katex||{},r=e&&e.vega||{},a={"showdown-plantuml":ue(e&&e.plantuml||{}),"showdown-mermaid":Xt(o),"showdown-katex":Dt(i),"showdown-flowchart":Ve,"showdown-viz":F,"showdown-vega":U(r),"showdown-wavedrom":Te,"showdown-railroad":ye,"showdown-abc":k,"showdown-echarts":zt,...n};let u=[];for(let e in a)a.hasOwnProperty(e)&&(t.asyncExtension(e,a[e]),u.push(e));return u})(this.defaultOptions,this.defaultAsyncExtensions);this.setFlavor(e.flavor),this.converter=new t.Converter({extensions:n}).initConvertExtObj(e.flavor,o),this.addOptions(e)}return this},makeHtml:function(e,n){let o="";if("object"==typeof e){if("string"==typeof e.content)if("string"==typeof e.type)if("zip"===e.type)o=this.zDecode(e.content);else o=this.markdownDecodeFilter(e)||e.content;else o=e.content}else o=e;if(this.converter&&o){function i(e,n,o){const i=e.querySelector(n);let r="";if(i)r=i.dataset.css;else{let e;try{e=t.extension(o)}catch{}if(!e)try{e=t.asyncExtension(o)}catch{}if(e)if(Array.isArray(e)){for(var a=0;e.length>a;++a)if(e[a].hasOwnProperty("config")&&e[a].config.hasOwnProperty("cssLink")){r=e[a].config.cssLink;break}}else"object"==typeof e&&e.hasOwnProperty("config")&&e.config.hasOwnProperty("cssLink")&&(r=e.config.cssLink)}return r}function r(t){const e=t.wrapper;return!!e&&new Promise((o=>{const r=i(e,".css-katex","showdown-katex"),a=i(e,".css-sequence","showdown-sequence"),u=i(e,".css-railroad","showdown-railroad");return t.cssTypes={hasKatex:!!r,hasSequence:!!a,hasRailroad:!!u,css:{katex:r,sequence:a,railroad:u}},"function"==typeof n&&n&&n(t.cssTypes),o(t)}))}return this.converter.asyncMakeHtml(o,r).then((t=>(o=`<div class='showdowns'>${t.html}</div>`,{html:o,scripts:t.scripts})))}return Promise.reject(o?"Converter is invaild.":"Content is empty.")},completedHtml:function(e,n){return t.helper.isArray(e)||(e=[e]),new Promise(((t,o)=>{for(var i=0;e.length>i;++i){const t=e[i];if(!Ge(t.id,t.code,n))return o("Args is invaild!")}t(!0)}))},zDecode:function(t){return""+e.inflateRawSync(Buffer.from(t,"base64"))},zEncode:function(t){return e.deflateRawSync(t,{level:9}).toString("base64")}};module.exports=tn;
7
7
  //# sourceMappingURL=showdowns.core.min.js.map