@jhuix/showdowns 0.6.9 → 0.6.11
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,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* showdowns.core.min.js v0.6.
|
|
2
|
+
* showdowns.core.min.js v0.6.11
|
|
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 s=0;i.length>s;++s)i[s]===t&&i.splice(s,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,s=this.getOptions();let u=Promise.resolve({wrapper:a,options:s,globals:i,scripts:[],cssLinks:[]});return o.forEach(function(t){u=u.then(e=>{const n=t.filter(e);return n||e})}),u.then(t=>{if("function"==typeof e&&e){const n=e(t);if(n instanceof Promise)return n.then(t=>({html:t.wrapper.innerHTML,extras:t.extras,scripts:t.scripts,cssLinks:t.cssLinks}))}return{html:t.wrapper.innerHTML,extras:t.extras,scripts:t.scripts,cssLinks:t.cssLinks}})},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,s){var u=n.omitExtraWLInCodeBlocks?"":"\n";return s=t.subParser("encodeCode")(s,n,o),s="<pre><code"+(r?' class="'+r+" language-"+r+'"':"")+(a?` data-lang='${a}'`:"")+">"+(s=(s=(s=t.subParser("detab")(s,n,o)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+u+"</code></pre>",s=t.subParser("hashBlock")(s,n,o),"\n\n¨G"+(o.ghCodeBlocks.push({text:e,codeblock:s})-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){var r="";return e=e.trim(),(n.tablesHeaderId||n.tableHeaderId)&&(r=' id="'+e.replace(/ /g,"_").toLowerCase()+'"'),"<th"+r+i+">"+(e=t.subParser("spanGamut")(e,n,o))+"</th>\n"}function a(e,i,r,a,s){if(n.tablesMerge){var u=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(u))return u}return a=a.trim(),"<td"+s+">"+t.subParser("spanGamut")(a,n,o)+"</td>\n"}function s(e,s){var u,l=e.split("\n");for(u=0;l.length>u;++u)/^ {0,3}\|/.test(l[u])&&(l[u]=l[u].replace(/^ {0,3}\|/,"")),/\|[ \t]*$/.test(l[u])&&(l[u]=l[u].replace(/\|[ \t]*$/,"")),l[u]=t.subParser("codeSpans")(l[u],n,o);var c=[],p=[],d=[],m=[],h=[];if(s)for(c=l[0].split("|").map(function(t){return t.trim()}),l.shift(),u=0;c.length>u;++u)m.push(i(c[u]));else{var f=l[0].split("|").map(function(t){return t.trim()});if(c=l[1].split("|").map(function(t){return t.trim()}),l.shift(),l.shift(),c.length>f.length)return e;for(u=0;c.length>u;++u)m.push(i(c[u]));for(u=0;f.length>u;++u)t.helper.isUndefined(m[u])&&(m[u]=""),d.push(r(f[u],m[u]))}for(u=0;l.length>u;++u)""!==l[u].trim()&&p.push(l[u].split("|").map(function(t){var e=t.trim();return""===e&&t.length>0?t:e}));for(u=0;p.length>u;++u){var g=[];h.push(g);for(var y=0;m.length>y;++y)t.helper.isUndefined(p[u][y])&&(p[u][y]=""),g.push(a(h,u,y,p[u][y],m[y]))}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 s=0;r>s;++s)n.tablesMerge&&"^^"===o[a][s]||(i+=o[a][s]);i+="</tr>\n"}return i+"</tbody>\n</table>\n"}(d,m,h)}function u(t){return s(t,!1)}function l(t){return s(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,l)).replace(/^ {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,l)),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 s(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 u="jsdelivr",l="file:"===document.location.protocol?"https://":document.location.protocol+"//",c="",p="",d="";const m={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.min.js",vegaLite:"../node_modules/vega-lite/build/vega-lite.min.js",vegaEmbed:"../node_modules/vega-embed/build/vega-embed.min.js"},cdnjs:{ABCJS:l+"cdnjs.cloudflare.com/ajax/libs/abcjs/6.5.1/abcjs-basic-min.js",ABCJSCSS:l+"cdn.jsdelivr.net/npm/abcjs@6/abcjs-audio.css",echarts:l+"cdnjs.cloudflare.com/ajax/libs/echarts/5.6.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/11.6.0/mermaid.min.js",katex:l+"cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.22/katex.min.js",katexCSS:l+"cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.22/katex.min.css",renderMathInElement:l+"cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.22/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.7/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/6.1.2/vega.min.js",vegaLite:l+"cdnjs.cloudflare.com/ajax/libs/vega-lite/6.1.0/vega-lite.min.js",vegaEmbed:l+"cdnjs.cloudflare.com/ajax/libs/vega-embed/7.0.2/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@11/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@6/build/vega.min.js",vegaLite:l+"cdn.jsdelivr.net/npm/vega-lite@6/build/vega-lite.min.js",vegaEmbed:l+"cdn.jsdelivr.net/npm/vega-embed@7/build/vega-embed.min.js"}};function h(){return u}function f(t){if("object"==typeof t){const e=Object.keys(t)[0],n=t[e];if("string"==typeof n)return e+"-"+n}return t}function g(t,e,n,o){if(void 0!==n&&n||(n=h()),m.hasOwnProperty(n)){const i=m[n];let r="";if("object"==typeof e){const t=Object.keys(e)[0],n=e[t];i[t]&&"string"==typeof n&&n&&i[t][n]&&(r=i[t][n])}else i[e]&&(r=i[e]);r&&(o=t||r.substring(0,l.length)===l?r:"../dist/"===r.substring(0,8)?p+r:c+r)}return o}const y={setCDN:function(t,e,n,o){t in m&&(u=t),"string"==typeof e&&e&&(c=e),"string"==typeof n&&n&&(p=n),"string"==typeof o&&o&&("/"!==d.at(d.length-1)&&(o+="/"),d=o)},getCDN:h,getUrl:function(t){try{const e=new URL(t);if("dist:"===e.protocol)return t="../dist/"===(t=t.substring(e.protocol.length+2)).substring(0,8)?p+t:c+t;if("file:"===e.protocol&&d){return t=new URL(d).origin+"/"+t.substring(8)}}catch{if(d){const e="./";t.substring(0,e.length)===e&&(t=t.substring(e.length)),t=d+t}}return t},getSrc:g,loadScript:function(t,e){return new Promise((n,o)=>{t&&"undefined"!=typeof document||o("Args is invaild!"),void 0===e&&(e=""),(e=g(!1,t,e))||o(t+" script source invaild!");const i="script-"+f(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=f(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=g(!1,t,e)))return"";const n="css-"+f(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"===u?"":e},unloadStyleSheet:function(t){t=f(t);const e=document.getElementById("css-"+t.toLowerCase());if(e){(document.head||document.getElementsByTagName("head")[0]).removeChild(e)}}};const v={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.type="text/css",o.innerText=e,t.appendChild(o)}return!0},loadStylesheet:function(t,e){if(!t||"undefined"==typeof document)return!1;let n=null;if(e&&(n=document.getElementById(e)),!n){const n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("link");o.rel="stylesheet",o.href=t,e&&(o.id=e),n.appendChild(o)}return!0},loadScript:function(t,e,n){return new Promise((o,i)=>{if(!t||!e||"undefined"==typeof document)return i("Args is invaild!");let r=document.getElementById(t);if(r)return o(!0);n?"string"==typeof n&&(n=document.querySelector(n)):n=document.body,r=document.createElement("script"),r.id=t,r.type="text/javascript",r.text=e,n.appendChild(r),o(!0)})},removeAllStylesheet:function(t){if(!t)return;const e=document.head||document.getElementsByTagName("head")[0];e.querySelectorAll("link").forEach(n=>{n.id&&n.id.substring(0,t.length)===t&&e.removeChild(n)})},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")),i.width&&"string"!=typeof i.width&&(i.width=i.width+"px"),i.height&&"string"!=typeof i.height&&(i.height=i.height+"px")}let a=e.textContent.trim();n&&"function"==typeof n&&(a=n(a));const s=(e.classList.length>0?e.classList[0]:"")+(e.className&&r?" ":"")+r,u=t.toLowerCase()+"-"+Date.now()+"-"+Math.floor(1e4*Math.random());return e.id=u,{id:u,container:u+"-container",className:s,data:a,element:e,lang:i}},addCssLink:function(t,e,n){return t.cssLinks?Array.isArray(t.cssLinks)||(t.cssLinks=[t.cssLinks]):t.cssLinks=[],t.cssLinks.push({id:n,link:e}),t},addScript:function(t,e){return t.scripts?Array.isArray(t.scripts)||(t.scripts=[t.scripts]):t.scripts=[],t.scripts.push(e),t},addExtra:function(t,e){return t.extras?Array.isArray(t.extras)||(t.extras=[t.extras]):t.extras=[],t.extras.push(e),t},hashString:function(t){let e=0;for(let n=0;t.length>n;n++){const o=t.charCodeAt(n);e=Math.imul(31,e)+o|0}return e>>>0}},w="abc",x="ABCJSCSS";if("undefined"==typeof window)throw Error("The showdown abcjs extension can only be used in browser environment!");if(void 0===b)var b=window.ABCJS||void 0;function S(){return!!b}let j=!1;function E(t,e,n){if(S()){const o=n.id,i=n.className,r=n.container;let a="";n.lang&&(n.lang.width&&(a+=`width:${n.lang.width};`),n.lang.height&&(a+=`height:${n.lang.height};`));let s="";if(a?(s+=`<div id="${r}" class="${i}" style="${a}">`,s+=`<div id="${o}" style="width:100%;height:100%;display:inline-block"></div>`):(s+=`<div id="${r}" class="${i}">`,s+=`<div id="${o}"></div>`),!n.lang||!n.lang.audio){const e=n.data,i=n.element.ownerDocument;s+="</div>",n.element.parentNode.outerHTML=s;const r=i.getElementById(o);return b.renderAbc(r,e,{add_classes:!0,responsive:"resize"}),t(!0)}const u=n.cssLink,l=n.data,c=o+"-audio";s+=a?u?`<div id="${c}" style="width:100%;height:100%;display:inline-block" class="css-abc" data-css="${u}"></div>`:`<div id="${c}" style="width:100%;height:100%;display:inline-block"></div>`:u?`<div id="${c}" class="css-abc" data-css="${u}"></div>`:`<div id="${c}"></div>`,s+="</div>",n.element.parentNode.outerHTML=s;return e.push({id:r,code:`(function() {\n load('${c}', {\n id:'${o}',\n class:'${i}',\n data:\`${l}\`\n });\n })();`}),t(!0)}setTimeout(()=>{E(t,e,n)},10)}function k(t,e){return new Promise(n=>{let o=v.createElementMeta(w,t);if(!o)return n(!1);o.cssLink=y.getSrc(!0,x),E(n,e,o)})}function A(t,e){const n={outer:[{name:"ABCJS",src:y.getSrc(!1,"ABCJS","jsdelivr")}],id:"abcjs-ext",code:'\nvar abcOptions = {\n add_classes: true,\n responsive: "resize"\n};\n\nfunction cursorControl(id) {\n const self = this;\n\n self.onReady = function() {\n };\n self.onStart = function() {\n const tag = "#"+ id + " svg";\n const svg = document.querySelector(tag);\n const cursor = document.createElementNS("http://www.w3.org/2000/svg", "line");\n cursor.setAttribute("class", "abcjs-cursor");\n cursor.setAttributeNS(null, \'x1\', 0);\n cursor.setAttributeNS(null, \'y1\', 0);\n cursor.setAttributeNS(null, \'x2\', 0);\n cursor.setAttributeNS(null, \'y2\', 0);\n svg.appendChild(cursor);\n };\n self.beatSubdivisions = 2;\n self.onBeat = function(beatNumber, totalBeats, totalTime) {\n };\n self.onEvent = function(ev) {\n if (ev.measureStart && ev.left === null)\n return; // this was the second part of a tie across a measure line. Just ignore it.\n\n const className = "#"+ id + " svg .highlight";\n const lastSelection = document.querySelectorAll(className);\n for (let k = 0; k < lastSelection.length; k++)\n lastSelection[k].classList.remove("highlight");\n\n for (let i = 0; i < ev.elements.length; i++ ) {\n const note = ev.elements[i];\n for (let j = 0; j < note.length; j++) {\n note[j].classList.add("highlight");\n }\n }\n\n const tag = "#"+ id + " svg .abcjs-cursor";\n const cursor = document.querySelector(tag);\n if (cursor) {\n cursor.setAttribute("x1", ev.left - 2);\n cursor.setAttribute("x2", ev.left - 2);\n cursor.setAttribute("y1", ev.top);\n cursor.setAttribute("y2", ev.top + ev.height);\n }\n };\n self.onFinished = function() {\n const className = "#"+ id + " svg .highlight";\n const els = document.querySelectorAll(className);\n for (let i = 0; i < els.length; i++ ) {\n els[i].classList.remove("highlight");\n }\n const tag = "#"+ id + " svg .abcjs-cursor";\n const cursor = document.querySelector(tag);\n if (cursor) {\n cursor.setAttribute("x1", 0);\n cursor.setAttribute("x2", 0);\n cursor.setAttribute("y1", 0);\n cursor.setAttribute("y2", 0);\n }\n };\n}\n\nfunction load(audio, render) {\n let synthControl;\n if (audio) {\n const id = "#" + audio;\n if (ABCJS.synth.supportsAudio()) {\n synthControl = new ABCJS.synth.SynthController();\n synthControl.load(id, new cursorControl(render.id), {displayLoop: true, displayRestart: true, displayPlay: true, displayProgress: true, displayWarp: true});\n } else {\n document.querySelector(id).innerHTML = "<div class=\'audio-error\'>Audio is not supported in this browser.</div>";\n }\n }\n setTune(render, false, synthControl);\n}\n\nfunction setTune(render, userAction, synthControl) {\n const id = render.id;\n const abc = render.data;\n if (!synthControl) {\n ABCJS.renderAbc(id, abc, abcOptions);\n return;\n }\n\n synthControl.disable(true);\n const visualObj = ABCJS.renderAbc(id, abc, abcOptions)[0];\n const midiBuffer = new ABCJS.synth.CreateSynth();\n midiBuffer.init({\n visualObj: visualObj,\n }).then(function (response) {\n // console.log(response);\n synthControl.setTune(visualObj, userAction).then(function (response) {\n console.log("Audio successfully loaded.");\n }).catch(function (error) {\n console.warn("Audio problem:", error);\n });\n }).catch(function (error) {\n console.warn("Audio problem:", error);\n });\n}\n',inner:[]};return e.push(n),function(){const t=S();if("undefined"!=typeof window){if(j)return t;t||(j=!0,y.loadStyleSheet(x),v.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;}"),y.loadScript("ABCJS").then(t=>{b=v.interopDefault(window[t])}))}}(),new Promise(e=>{const o=[];t.forEach(t=>{o.push(k(t,n.inner))}),Promise.all(o).then(()=>{e(!0)})})}function C(){return[{type:"output",filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll(`code.${w}.language-${w}`);return!!n.length&&(this.config={cssLink:y.getSrc(!0,x)},v.addCssLink(t,this.config.cssLink,"css-abc"),A(n,t.scripts).then(()=>t))}}]}function L(t,e,n,o,i){try{if(i){if(o>1){const t=n.parentNode;t&&"UL"===t.tagName&&t.classList.add("toc-multi")}const e=n.querySelector("div");if(e){e.classList.remove("toc-title"),e.classList.add("toc-multi-title");const t=e.querySelector("i");t&&(t.classList.remove("toc-chapter"),t.classList.add("toc-multi-chapter"),t.innerHTML='<svg class="icon" aria-hidden="true"><use xlink:href="#icon-expand"></use></svg>')}(n=n.appendChild(t.ownerDocument.createElement("ul"))).classList.add(o>1?"toc-level-"+o:"toc-main")}if(n=n.appendChild(t.ownerDocument.createElement("li")),e){const i=n.appendChild(t.ownerDocument.createElement("div"));i.classList.add("toc-title-"+o,"toc-title");const r=i.appendChild(t.ownerDocument.createElement("i"));r.classList.add("iconfont","toc-chapter"),r.innerHTML='<svg class="icon" aria-hidden="true"><use xlink:href="#icon-chapter-l"></use></svg>';const a=i.appendChild(t.ownerDocument.createElement("a"));a.appendChild(t.ownerDocument.createTextNode(e.textContent)),a.href="#"+e.id}}catch{}return n}function O(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&&O(t,e,n,o),n}if(o>n.preLevel){for(n.preLevel++;o>n.preLevel;)n.toc=L(t,null,n.toc,o,!0),n.preLevel++;n.toc=L(t,e,n.toc,o,!0)}else{for(;n.preLevel>o;)n.toc&&(n.toc=n.toc.parentNode),n.toc&&(n.toc=n.toc.parentNode),n.preLevel--;n.toc&&(n.toc=n.toc.parentNode),n.toc=L(t,e,n.toc,o,!1)}return n.parentNode&&O(t,e,n.parentNode,o),n}function N(){if(!document.querySelector("#total-showdown-toc"))return;const t=document.querySelector("#toc-fold-icon");t&&(t.onclick=e=>{const n=document.querySelectorAll(".total-toc ul"),o=document.querySelectorAll(".total-toc ul:not(.toc-main) .toc-multi-chapter use");if("toc-expand"===t.dataset.name)return n.forEach(t=>{t.classList.contains("toc-main")||t.classList.contains("toc-level-2")||t.classList.add("hidden")}),o.forEach(t=>{t.setAttributeNS("http://www.w3.org/1999/xlink","href","#icon-collapse")}),void(t.dataset.name="toc-fold");n.forEach(t=>{t.classList.remove("hidden")}),o.forEach(t=>{t.setAttributeNS("http://www.w3.org/1999/xlink","href","#icon-expand")}),t.dataset.name="toc-expand"});const e=document.querySelector("#toc-close-icon");e&&(e.onclick=t=>{const e=document.querySelector("#total-showdown-toc");e&&e.classList.add("hidden");const n=document.querySelector("#toc-switch-button");n&&n.classList.remove("hidden")});const n=document.querySelector("#toc-switch-button");n&&(n.onclick=t=>{t.currentTarget.classList.add("hidden");const e=document.querySelector("#total-showdown-toc");e&&e.classList.remove("hidden")});document.querySelectorAll(".total-toc .toc-multi-chapter").forEach(t=>{t.onclick=t=>{let e=t.currentTarget.parentNode;if(!e)return;if(e=e.parentNode,!e)return;const n=e.querySelectorAll("ul"),o=e.querySelectorAll(".toc-multi-chapter use"),i=t.currentTarget.querySelector("use");if(i){if("#icon-expand"===i.getAttributeNS("http://www.w3.org/1999/xlink","href"))return n.forEach(t=>{t.classList.add("hidden")}),void o.forEach(t=>{t.setAttributeNS("http://www.w3.org/1999/xlink","href","#icon-collapse")});n.forEach(t=>{t.classList.remove("hidden")}),o.forEach(t=>{t.setAttributeNS("http://www.w3.org/1999/xlink","href","#icon-expand")})}}})}function $(){return[{type:"output",filter:function(t){if("string"==typeof t){const e=(new DOMParser).parseFromString(t,"text/html"),n=void 0!==e.body?e.body:e;return function(t){let e=null,n=0,o=null,i=!1,r=!1;const a=t.ownerDocument.createElement("div");a.id="toc-svgs",a.classList.add("hidden"),a.innerHTML='<svg aria-hidden="true" style="position: absolute; width: 0px; height: 0px; overflow: hidden;"><symbol id="icon-chapter-s" viewBox="0 0 1024 1024"><path d="M725.108359 579.864261c11.519371-117.753568-94.714826-195.829303-165.110981-247.666471l-10.879406-7.679581-21.118846-15.359161c-40.317798-28.798427-81.915525-58.876784-95.994756-95.994756-15.999126-41.597728-13.439266-74.235945 7.67958-97.274686 26.878532-29.438392 90.235071-35.838042 120.313428-11.519371 26.238567 20.478881 26.878532 53.117098 24.958637 70.396154-2.55986 24.318672 14.719196 46.717448 39.037867 49.917274 24.318672 2.55986 46.717448-14.719196 49.917274-39.037868 7.039615-60.796679-14.079231-115.833673-58.236819-151.03175C547.838042-19.143018 432.644335-8.903578 373.127586 55.732892c-44.157588 47.997378-53.117098 115.193708-24.958637 189.429652 8.319546 23.038742 21.758811 42.877658 37.117973 60.156714-36.478007 34.558112-73.59598 78.075735-79.355665 138.872414C294.411886 561.94524 400.646083 640.020975 471.042237 691.858143l10.879406 7.679581 21.118846 15.359161c40.317798 28.798427 81.915525 58.876784 95.994757 95.994756 15.999126 41.597728 13.439266 74.235945-7.679581 97.274686-26.878532 29.438392-90.235071 35.838042-120.313428 11.519371-26.238567-20.478881-26.878532-53.117098-24.958636-70.396154 2.55986-24.318672-14.719196-46.717448-39.037868-49.917274s-46.717448 14.719196-49.917273 39.037868c-7.039615 60.796679 14.079231 115.833673 58.236819 151.03175 29.438392 23.038742 67.196329 34.558112 106.234197 34.558112 50.557238 0 102.394407-19.198951 135.672589-55.676959 44.157588-47.997378 53.117098-115.193708 24.958636-189.429652-8.319546-23.038742-21.758811-42.877658-37.117972-60.156714 36.478007-34.558112 74.235945-78.075735 79.99563-138.872414z m-201.588988 39.677833c-60.156714-44.157588-135.672589-99.834547-129.272939-166.390911 3.199825-33.278182 28.158462-60.156714 57.596854-87.675211 7.679581 5.759685 15.999126 11.519371 23.678707 17.279056 7.039615 5.11972 13.439266 9.599476 19.838916 14.719196l10.879406 8.319546c60.156714 44.157588 135.672589 99.834547 129.272938 166.39091-3.199825 33.278182-28.158462 60.156714-57.596854 87.675211-8.319546-5.759685-15.999126-11.519371-23.678706-17.279056-7.039615-5.11972-13.439266-9.599476-19.838917-14.719196l-10.879405-8.319545z"></path></symbol><symbol id="icon-chapter-l" viewBox="0 0 1024 1024"><path d="M791.272727 11.636364a81.454545 81.454545 0 0 1 81.175273 74.752L872.727273 93.090909v884.363636a34.909091 34.909091 0 0 1-51.060364 30.999273l-4.142545-2.606545-142.615273-101.888-142.615273 101.934545a34.909091 34.909091 0 0 1-30.813091 4.840727l-5.026909-2.048-4.747636-2.792727L349.090909 903.912727l-142.615273 101.934546a34.955636 34.955636 0 0 1-53.946181-18.944l-0.93091-4.654546L151.272727 977.454545V93.090909A81.454545 81.454545 0 0 1 226.024727 11.915636L232.727273 11.636364h558.545454z m-139.636363 605.090909H372.363636l-4.747636 0.325818A34.909091 34.909091 0 0 0 372.363636 686.545455h279.272728l4.747636-0.325819A34.909091 34.909091 0 0 0 651.636364 616.727273z m0-186.181818H372.363636l-4.747636 0.325818A34.909091 34.909091 0 0 0 372.363636 500.363636h279.272728l4.747636-0.325818A34.909091 34.909091 0 0 0 651.636364 430.545455z m0-186.181819H372.363636l-4.747636 0.325819A34.909091 34.909091 0 0 0 372.363636 314.181818h279.272728l4.747636-0.325818A34.909091 34.909091 0 0 0 651.636364 244.363636z"></path></symbol><symbol id="icon-toc" viewBox="0 0 1024 1024"><path d="M62.500473 512.163729l61.447491-40.958854 387.221112 202.039529L898.394281 471.204875l61.443397 40.958854-448.668603 244.728794L62.500473 512.163729zM62.500473 308.228013l448.668603-244.732887 448.668603 244.732887-448.668603 244.724701L62.500473 308.228013zM511.169075 877.18012l387.225205-202.035436 61.443397 40.958854L511.169075 960.836425 62.500473 716.104561l61.447491-40.958854L511.169075 877.18012z"></path></symbol><symbol id="icon-collapse" viewBox="0 0 1024 1024"><path d="M85.781832 219.399571h73.720856c20.35996 0 36.879928-16.359968 36.879928-36.559928s-16.519968-36.559929-36.879928-36.559929h-73.719856c-20.35996 0-36.860928 16.359968-36.860928 36.559929 0 20.199961 16.499968 36.559929 36.859928 36.559928zM50.462901 475.419071c0 20.199961 16.500968 36.579929 36.859928 36.579929h72.179859c20.35996 0 36.879928-16.379968 36.879928-36.579929s-16.519968-36.579929-36.879928-36.579928h-72.179859c-20.35996 0-36.859928 16.379968-36.859928 36.579928z m145.919715 292.577429c0-20.199961-16.519968-36.595929-36.879928-36.595929h-73.719856c-20.35996 0-36.860928 16.395968-36.860928 36.595929 0 20.180961 16.499968 36.562929 36.859928 36.562929h73.720856c20.35996 0 36.879928-16.381968 36.879928-36.562929z"></path><path d="M933.660176 38.839924l-73.718856-2.279995c0-20.198961-16.519968-36.559929-36.879928-36.559929h-661.998707c-20.35996 0-36.879928 16.359968-36.879928 36.559929v70.879861h36.879928s73.359857 6.840987 73.359857 73.140857c0 0 0.779998 73.279857-75.239853 73.279857l-34.999932 2.119996 0.759999 144.019719 34.399933-0.02s75.879852-0.02 75.879852 77.699848c0 0-7.057986 70.879862-76.179852 70.879862l-34.699932 0.019-0.619999 143.980718h36.740929s73.559856 2.279996 73.559856 75.437853c0 0-0.14 75.402853-76.179851 75.402853l-33.199935-2.279996-0.46 73.159857s42.239918 109.718786 106.759792 109.718786h705.018623s34.557933-6.877987 34.557932-34.298933V75.421853s-6.899987-36.580929-36.859928-36.580929zM306.9634 255.9795h479.238064v292.579429h-479.239064V255.9795zM897.939246 916.55821s1.159998 34.279933-37.999926 34.279933H233.243544s-38.019926-12.559975-38.019925-37.719926l627.838773-0.36c20.35996 0 36.879928-16.379968 36.879928-36.579928V69.719864l37.998926 12.559975v834.278371z"></path><path d="M694.042644 329.119357H399.14022c-10.19998 0-18.439964 8.199984-18.439964 18.319964 0 10.07998 8.239984 18.259964 18.439964 18.259965h294.901424c10.17898 0 18.418964-8.179984 18.418964-18.259965 0-10.11898-8.239984-18.319964-18.419964-18.319964z m0 109.719786H399.14022c-10.19998 0-18.439964 8.199984-18.439964 18.279964 0 10.11998 8.239984 18.299964 18.439964 18.299964h294.901424c10.17898 0 18.418964-8.179984 18.418964-18.299964 0-10.07998-8.239984-18.279964-18.419964-18.279964z"></path></symbol><symbol id="icon-chapter" viewBox="0 0 1024 1024"><path d="M832 128v768H256V128h576m64-64H192v896h704V64z" ></path><path d="M161.3 296.2v-0.2H320v-40H161.3c-35.5 0-64.3 28.7-64.3 64s28.8 64 64.3 64h90v-40h-90v-0.2c-13.3 0-24.1-10.7-24.1-23.8 0-13.1 10.8-23.8 24.1-23.8z m0 192v-0.2H320v-40H161.3c-35.5 0-64.3 28.7-64.3 64s28.8 64 64.3 64h90v-40h-90v-0.2c-13.3 0-24.1-10.7-24.1-23.8 0-13.1 10.8-23.8 24.1-23.8z m0 192v-0.2H320v-40H161.3c-35.5 0-64.3 28.7-64.3 64s28.8 64 64.3 64h90v-40h-90v-0.2c-13.3 0-24.1-10.7-24.1-23.8 0-13.1 10.8-23.8 24.1-23.8z" ></path><path d="M288 277a32 32 0 1 0 64 0 32 32 0 1 0-64 0zM288 469a32 32 0 1 0 64 0 32 32 0 1 0-64 0zM288 662a32 32 0 1 0 64 0 32 32 0 1 0-64 0zM384 256h385v40H384z m0 128h385v40H384z m0 128h385v40H384z m0 128h256v40H384z" ></path></symbol><symbol id="icon-expand" viewBox="0 0 1024 1024"><path d="M731.093333 128c82.346667 0 158.08 20.906667 218.88 56.32 6.4 3.626667 10.026667 10.88 10.026667 18.346667v667.306666c0 12.16-9.386667 20.906667-19.84 20.906667-2.986667 0-5.76-0.64-8.746667-2.133333-57.386667-29.226667-126.08-46.08-200.32-46.08s-141.866667 17.066667-199.04 45.653333c-2.986667 1.493333-5.973333 2.986667-8.96 4.693333-0.426667 0.213333-0.853333 0.64-1.493333 0.853334-5.973333 3.2-13.226667 3.2-19.2 0-3.413333-1.92-6.826667-3.626667-10.453333-5.546667-56.96-28.586667-125.44-45.653333-199.04-45.653333s-143.146667 16.853333-200.32 46.08c-2.773333 1.493333-5.76 2.133333-8.746667 2.133333-10.453333 0-19.84-8.746667-19.84-20.906667V202.453333c0-7.68 3.84-14.72 10.026667-18.346666C134.826667 148.693333 210.56 128 292.906667 128S451.2 149.333333 512 184.746667C572.8 149.333333 648.746667 128 731.093333 128zM701.866667 187.733333c-71.466667 0-137.386667 17.92-189.866667 47.786667-52.693333-29.866667-118.613333-47.786667-189.866667-47.786667s-136.96 17.493333-189.653333 47.36c-5.546667 3.2-8.746667 9.173333-8.746667 15.573334v563.626666c0 10.24 8.106667 17.493333 17.066667 17.493334 2.56 0 5.12-0.64 7.466667-1.92 49.706667-24.533333 109.44-38.826667 173.653333-38.826667s123.093333 14.293333 172.373333 38.4c3.2 1.493333 6.186667 2.986667 9.173334 4.693333 5.12 2.773333 11.52 2.773333 16.64 0 0.64-0.213333 0.853333-0.426667 1.493333-0.853333l7.68-3.84c49.493333-24.106667 108.8-38.4 172.373333-38.4s123.946667 14.293333 173.653334 38.826667c2.56 1.28 5.12 1.92 7.466666 1.92 8.96 0 17.066667-7.466667 17.066667-17.493334V250.666667c0-6.4-3.2-12.373333-8.746667-15.573334-52.693333-29.866667-118.186667-47.573333-189.653333-47.573333z" ></path><path d="M949.333333 771.84c-123.306667-71.68-260.266667-80.64-407.466666-26.666667V221.866667c0-16.426667-13.44-29.866667-29.866667-29.866667s-29.866667 13.44-29.866667 29.866667v529.066666c-120.533333-55.466667-253.226667-53.973333-395.093333 5.12-10.88 4.48-16 17.066667-11.52 27.946667 4.48 10.88 17.066667 16 27.946667 11.52 139.306667-58.026667 263.253333-57.173333 378.666666 2.773333v46.506667c0 16.426667 13.44 29.866667 29.866667 29.866667s29.866667-13.44 29.866667-29.866667v-53.973333c142.08-56.32 268.586667-50.56 386.133333 17.706666 3.413333 1.92 7.04 2.986667 10.666667 2.986667 7.253333 0 14.506667-3.84 18.56-10.666667a21.290667 21.290667 0 0 0-7.68-29.226666z" ></path></symbol></svg>',t.insertBefore(a,t.firstChild);const s=t.querySelectorAll("p,h1,h2,h3,h4,h5,h6");for(let a=0;s.length>a;a++){if(e=s[a],r||"h1"!=e.tagName.toLowerCase()||(r=!0),"[toc]"==e.textContent.trim().toLowerCase()){let a=t.ownerDocument.createElement("div");if(a.classList.add("showdown-toc"),!r){const n=t.ownerDocument.createElement("div");n.id="toc-switch-button",n.classList.add("toc-switch","hidden"),n.innerHTML='<svg class="icon" aria-hidden="true"><use xlink:href="#icon-chapter-l"></use></svg>',e.parentNode.insertBefore(n,e),a.id="total-showdown-toc",a.classList.add("total-toc","hidden"),a.innerHTML='<div class="toc-pin"><span class="toc-pin-text">目录</span><div class="toc-fold-wrap"><div id="toc-fold-icon" class="toc-fold toc-icon" data-name="toc-expand"><svg class="icon" aria-hidden="true"><use xlink:href="#icon-toc"></use></svg></div><div id="toc-close-icon" class="toc-close toc-icon"><svg class="icon" aria-hidden="true"><use xlink:href="#icon-chapter-s"></use></svg></div></div></div>'}let s=t.ownerDocument.createElement("div");s.className="toc-view",a.appendChild(s);let u={parentNode:null,toc:s,headingLevel:n,preLevel:n,standalone:!1};if(o)if(n>o.headingLevel)u.parentNode=o;else{let t=o;for(;t.headingLevel>n;)t=t.parentNode;t&&(u.parentNode=n===t.headingLevel?t.parentNode:t)}o=u,i=!0,o.standalone=!r,e.parentNode.replaceChild(a,e);continue}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=O(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}(n)?n.innerHTML:t}if("object"!=typeof t||!t||!t.wrapper)return!1;const e=t,n=e.wrapper;let o=n.querySelector("#toc-svgs");if(!o)return!1;if(o.parentNode.removeChild(o),v.addExtra(e,o.outerHTML),o=n.querySelector("#total-showdown-toc"),!o)return e;o.parentNode.removeChild(o),o.classList.remove("hidden"),v.addExtra(e,o.outerHTML),o=n.querySelector("#toc-switch-button"),o&&(o.parentNode.removeChild(o),v.addExtra(e,o.outerHTML));return v.addScript(e,{inner:[{id:"showdown-toc",code:N,host:"#total-showdown-toc"}]}),e}}]}function q(){return[{type:"output",filter:function(t){const e="css-ex-";v.removeAllStylesheet(e);const n=t.wrapper;if(!n)return!1;const o=n.querySelectorAll("a");return!!o.length&&(o.forEach(n=>{try{if(n.href&&"css:"===n.href.substr(0,4)){let o=n.href.substr(4).trim();const i=""+v.hashString(o);v.addCssLink(t,o,e+i),n.parentNode&&"P"===n.parentNode.tagName&&n.parentNode.parentNode?n.parentNode.parentNode.removeChild(n.parentNode):n.parentNode.removeChild(n),o=y.getUrl(o),v.loadStylesheet(o,e+i)}}catch{}}),t)}}]}if("undefined"==typeof window)throw Error("The showdown viz extension can only be used in browser environment!");if(void 0===M)var M=window.Viz||void 0;const T=["circo","dot","neato","osage","twopi"];function D(){return!(void 0===M||!M||void 0===M.instance)}let P=!1;function H(t,e){if(D()){const n=e.id,o=e.className,i=e.data,r=e.element,a=e.element.dataset.lang;let s="dot";if(a){const t=JSON.parse(a);t&&t.engine&&-1!=T.indexOf(t.engine)&&(s=t.engine)}return void M.instance().then(e=>{const a=e.renderString(i,{format:"svg",engine:s});r.parentNode.outerHTML=`<div id="${n}" class="${o}">${a}</div>`,t(!0)})}setTimeout(()=>{H(t,e)},10)}function z(t){return new Promise(e=>{const n=v.createElementMeta("viz",t);if(!n)return e(!1);H(e,n)})}function B(t){return function(){const t=D();if("undefined"!=typeof window){if(P)return t;t||(P=!0,y.loadScript("Viz").then(t=>{M=v.interopDefault(window[t])}))}}(),new Promise(e=>{const n=[];t.forEach(t=>{n.push(z(t))}),Promise.all(n).then(()=>{e(!0)})})}function _(){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&&B(n).then(()=>t)}}]}const F="vega";if("undefined"==typeof window)throw Error("The showdown vega extension can only be used in browser environment!");if(void 0===J)var J=window.vegaEmbed||void 0;function R(){return!(void 0===J||!J)}let I=!1;function V(t,e,n,o){const i=v.createElementMeta(F,t);if(!i)return Promise.resolve(!1);const r=JSON.stringify(e);JSON.stringify(JSON.parse(i.data));const a=i.container;let s=`(function() {\n let el = document.getElementById('${i.id}');\n if (el){\n `;if(i.lang&&i.lang.type&&"string"==typeof i.lang.type&&"javascript"==i.lang.type.toLowerCase())s+=" "+i.data;else{s+=` const option = JSON.parse(\`${JSON.stringify(JSON.parse(i.data))}\`);`}s+=`\n vegaEmbed(el, option, JSON.parse('${r}'));\n }\n })();`;return n.push({id:a,code:s}),new Promise(t=>{U(t,i)})}function W(t,e,n,o){const i={outer:[{name:F,src:y.getSrc(!1,F,"jsdelivr")},{name:"vegaLite",src:y.getSrc(!1,"vegaLite","jsdelivr")},{name:"vegaEmbed",src:y.getSrc(!1,"vegaEmbed","jsdelivr")}],inner:[]};return n.push(i),function(){const t=R();if("undefined"!=typeof window){if(I)return t;t||(I=!0,y.loadScript(F).then(()=>y.loadScript("vegaLite")).then(()=>y.loadScript("vegaEmbed")).then(t=>{J=v.interopDefault(window[t])}))}}(),new Promise(n=>{const r=[];t.forEach(t=>{r.push(V(t,o,i.inner))}),e.forEach(t=>{r.push(V(t,o,i.inner))}),Promise.all(r).then(()=>{n(!0)})})}function U(t,e){if(R()){return e.element.parentNode.outerHTML=`<div id="${e.container}" class="${e.className}"><div id="${e.id}"></div></div>`,t(!0)}setTimeout(()=>{U(t,e)},10)}function G(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 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=".",Z={input:'"',tag:"mtext",output:"mbox",tex:null,ttype:10},Q=[{input:"alpha",tag:"mi",output:"α",tex:null,ttype:0},{input:"beta",tag:"mi",output:"β",tex:null,ttype:0},{input:"chi",tag:"mi",output:"χ",tex:null,ttype:0},{input:"delta",tag:"mi",output:"δ",tex:null,ttype:0},{input:"Delta",tag:"mo",output:"Δ",tex:null,ttype:0},{input:"epsi",tag:"mi",output:"ε",tex:"epsilon",ttype:0},{input:"varepsilon",tag:"mi",output:"ɛ",tex:null,ttype:0},{input:"eta",tag:"mi",output:"η",tex:null,ttype:0},{input:"gamma",tag:"mi",output:"γ",tex:null,ttype:0},{input:"Gamma",tag:"mo",output:"Γ",tex:null,ttype:0},{input:"iota",tag:"mi",output:"ι",tex:null,ttype:0},{input:"kappa",tag:"mi",output:"κ",tex:null,ttype:0},{input:"lambda",tag:"mi",output:"λ",tex:null,ttype:0},{input:"Lambda",tag:"mo",output:"Λ",tex:null,ttype:0},{input:"lamda",tag:"mi",output:"lambda",tex:null,ttype:8},{input:"Lamda",tag:"mi",output:"Lambda",tex:null,ttype:8},{input:"mu",tag:"mi",output:"μ",tex:null,ttype:0},{input:"nu",tag:"mi",output:"ν",tex:null,ttype:0},{input:"omega",tag:"mi",output:"ω",tex:null,ttype:0},{input:"Omega",tag:"mo",output:"Ω",tex:null,ttype:0},{input:"phi",tag:"mi",output:"φ",tex:null,ttype:0},{input:"varphi",tag:"mi",output:"ϕ",tex:null,ttype:0},{input:"Phi",tag:"mo",output:"Φ",tex:null,ttype:0},{input:"pi",tag:"mi",output:"π",tex:null,ttype:0},{input:"Pi",tag:"mo",output:"Π",tex:null,ttype:0},{input:"psi",tag:"mi",output:"ψ",tex:null,ttype:0},{input:"Psi",tag:"mi",output:"Ψ",tex:null,ttype:0},{input:"rho",tag:"mi",output:"ρ",tex:null,ttype:0},{input:"sigma",tag:"mi",output:"σ",tex:null,ttype:0},{input:"Sigma",tag:"mo",output:"Σ",tex:null,ttype:0},{input:"tau",tag:"mi",output:"τ",tex:null,ttype:0},{input:"theta",tag:"mi",output:"θ",tex:null,ttype:0},{input:"vartheta",tag:"mi",output:"ϑ",tex:null,ttype:0},{input:"Theta",tag:"mo",output:"Θ",tex:null,ttype:0},{input:"upsilon",tag:"mi",output:"υ",tex:null,ttype:0},{input:"xi",tag:"mi",output:"ξ",tex:null,ttype:0},{input:"Xi",tag:"mo",output:"Ξ",tex:null,ttype:0},{input:"zeta",tag:"mi",output:"ζ",tex:null,ttype:0},{input:"*",tag:"mo",output:"⋅",tex:"cdot",ttype:0},{input:"**",tag:"mo",output:"∗",tex:"ast",ttype:0},{input:"***",tag:"mo",output:"⋆",tex:"star",ttype:0},{input:"//",tag:"mo",output:"/",tex:"/",ttype:0,val:!0,notexcopy:!0},{input:"\\\\",tag:"mo",output:"\\",tex:"backslash",ttype:0},{input:"setminus",tag:"mo",output:"\\",tex:null,ttype:0},{input:"xx",tag:"mo",output:"×",tex:"times",ttype:0},{input:"|><",tag:"mo",output:"⋉",tex:"ltimes",ttype:0},{input:"><|",tag:"mo",output:"⋊",tex:"rtimes",ttype:0},{input:"|><|",tag:"mo",output:"⋈",tex:"bowtie",ttype:0},{input:"-:",tag:"mo",output:"÷",tex:"div",ttype:0},{input:"divide",tag:"mo",output:"-:",tex:null,ttype:8},{input:"@",tag:"mo",output:"∘",tex:"circ",ttype:0},{input:"o+",tag:"mo",output:"⊕",tex:"oplus",ttype:0},{input:"ox",tag:"mo",output:"⊗",tex:"otimes",ttype:0},{input:"o.",tag:"mo",output:"⊙",tex:"odot",ttype:0},{input:"sum",tag:"mo",output:"∑",tex:null,ttype:7},{input:"prod",tag:"mo",output:"∏",tex:null,ttype:7},{input:"^^",tag:"mo",output:"∧",tex:"wedge",ttype:0},{input:"^^^",tag:"mo",output:"⋀",tex:"bigwedge",ttype:7},{input:"vv",tag:"mo",output:"∨",tex:"vee",ttype:0},{input:"vvv",tag:"mo",output:"⋁",tex:"bigvee",ttype:7},{input:"nn",tag:"mo",output:"∩",tex:"cap",ttype:0},{input:"nnn",tag:"mo",output:"⋂",tex:"bigcap",ttype:7},{input:"uu",tag:"mo",output:"∪",tex:"cup",ttype:0},{input:"uuu",tag:"mo",output:"⋃",tex:"bigcup",ttype:7},{input:"overset",tag:"mover",output:"stackrel",tex:null,ttype:2},{input:"underset",tag:"munder",output:"stackrel",tex:null,ttype:2},{input:"!=",tag:"mo",output:"≠",tex:"ne",ttype:0},{input:":=",tag:"mo",output:":=",tex:null,ttype:0},{input:"lt",tag:"mo",output:"<",tex:null,ttype:0},{input:"gt",tag:"mo",output:">",tex:null,ttype:0},{input:"<=",tag:"mo",output:"≤",tex:"le",ttype:0},{input:"lt=",tag:"mo",output:"≤",tex:"leq",ttype:0},{input:"gt=",tag:"mo",output:"≥",tex:"geq",ttype:0},{input:">=",tag:"mo",output:"≥",tex:"ge",ttype:0},{input:"-<",tag:"mo",output:"≺",tex:"prec",ttype:0},{input:"-lt",tag:"mo",output:"≺",tex:null,ttype:0},{input:">-",tag:"mo",output:"≻",tex:"succ",ttype:0},{input:"-<=",tag:"mo",output:"⪯",tex:"preceq",ttype:0},{input:">-=",tag:"mo",output:"⪰",tex:"succeq",ttype:0},{input:"in",tag:"mo",output:"∈",tex:null,ttype:0},{input:"!in",tag:"mo",output:"∉",tex:"notin",ttype:0},{input:"sub",tag:"mo",output:"⊂",tex:"subset",ttype:0},{input:"sup",tag:"mo",output:"⊃",tex:"supset",ttype:0},{input:"sube",tag:"mo",output:"⊆",tex:"subseteq",ttype:0},{input:"supe",tag:"mo",output:"⊇",tex:"supseteq",ttype:0},{input:"-=",tag:"mo",output:"≡",tex:"equiv",ttype:0},{input:"~=",tag:"mo",output:"≅",tex:"stackrel{\\sim}{=}",notexcopy:!0,ttype:0},{input:"cong",tag:"mo",output:"~=",tex:null,ttype:8},{input:"~~",tag:"mo",output:"≈",tex:"approx",ttype:0},{input:"prop",tag:"mo",output:"∝",tex:"propto",ttype:0},{input:"and",tag:"mtext",output:"and",tex:null,ttype:6},{input:"or",tag:"mtext",output:"or",tex:null,ttype:6},{input:"not",tag:"mo",output:"¬",tex:"neg",ttype:0},{input:"=>",tag:"mo",output:"⇒",tex:"Rightarrow",ttype:0},{input:"implies",tag:"mo",output:"=>",tex:null,ttype:8},{input:"if",tag:"mo",output:"if",tex:null,ttype:6},{input:"<=>",tag:"mo",output:"⇔",tex:"Leftrightarrow",ttype:0},{input:"iff",tag:"mo",output:"<=>",tex:null,ttype:8},{input:"AA",tag:"mo",output:"∀",tex:"forall",ttype:0},{input:"EE",tag:"mo",output:"∃",tex:"exists",ttype:0},{input:"_|_",tag:"mo",output:"⊥",tex:"bot",ttype:0},{input:"TT",tag:"mo",output:"⊤",tex:"top",ttype:0},{input:"|--",tag:"mo",output:"⊢",tex:"vdash",ttype:0},{input:"|==",tag:"mo",output:"⊨",tex:"models",ttype:0},{input:"(",tag:"mo",output:"(",tex:null,ttype:4,val:!0},{input:")",tag:"mo",output:")",tex:null,ttype:5,val:!0},{input:"[",tag:"mo",output:"[",tex:null,ttype:4,val:!0},{input:"]",tag:"mo",output:"]",tex:null,ttype:5,val:!0},{input:"left(",tag:"mo",output:"(",tex:"(",notexcopy:!0,ttype:4,val:!0},{input:"right)",tag:"mo",output:")",tex:")",notexcopy:!0,ttype:5,val:!0},{input:"left[",tag:"mo",output:"[",tex:"[",notexcopy:!0,ttype:4,val:!0},{input:"right]",tag:"mo",output:"]",tex:"]",notexcopy:!0,ttype:5,val:!0},{input:"{",tag:"mo",output:"{",tex:"lbrace",ttype:4},{input:"}",tag:"mo",output:"}",tex:"rbrace",ttype:5},{input:"|",tag:"mo",output:"|",tex:null,ttype:9,val:!0},{input:"|:",tag:"mo",output:"|",tex:"|",ttype:4,notexcopy:!0,val:!0},{input:":|",tag:"mo",output:"|",tex:"|",ttype:5,notexcopy:!0,val:!0},{input:":|:",tag:"mo",output:"|",tex:"|",ttype:0,notexcopy:!0,val:!0},{input:"(:",tag:"mo",output:"〈",tex:"langle",ttype:4},{input:":)",tag:"mo",output:"〉",tex:"rangle",ttype:5},{input:"<<",tag:"mo",output:"〈",tex:"langle",ttype:4},{input:">>",tag:"mo",output:"〉",tex:"rangle",ttype:5},{input:"{:",tag:"mo",output:"{:",tex:null,ttype:4,invisible:!0},{input:":}",tag:"mo",output:":}",tex:null,ttype:5,invisible:!0},{input:"int",tag:"mo",output:"∫",tex:null,ttype:0},{input:"dx",tag:"mi",output:"{:d x:}",tex:null,ttype:8},{input:"dy",tag:"mi",output:"{:d y:}",tex:null,ttype:8},{input:"dz",tag:"mi",output:"{:d z:}",tex:null,ttype:8},{input:"dt",tag:"mi",output:"{:d t:}",tex:null,ttype:8},{input:"oint",tag:"mo",output:"∮",tex:null,ttype:0},{input:"del",tag:"mo",output:"∂",tex:"partial",ttype:0},{input:"grad",tag:"mo",output:"∇",tex:"nabla",ttype:0},{input:"+-",tag:"mo",output:"±",tex:"pm",ttype:0},{input:"O/",tag:"mo",output:"∅",tex:"emptyset",ttype:0},{input:"oo",tag:"mo",output:"∞",tex:"infty",ttype:0},{input:"aleph",tag:"mo",output:"ℵ",tex:null,ttype:0},{input:"...",tag:"mo",output:"...",tex:"ldots",ttype:0},{input:":.",tag:"mo",output:"∴",tex:"therefore",ttype:0},{input:":'",tag:"mo",output:"∵",tex:"because",ttype:0},{input:"/_",tag:"mo",output:"∠",tex:"angle",ttype:0},{input:"/_\\",tag:"mo",output:"△",tex:"triangle",ttype:0},{input:"\\ ",tag:"mo",output:" ",tex:null,ttype:0,val:!0},{input:"frown",tag:"mo",output:"⌢",tex:null,ttype:0},{input:"%",tag:"mo",output:"%",tex:"%",ttype:0,notexcopy:!0},{input:"quad",tag:"mo",output:" ",tex:null,ttype:0},{input:"qquad",tag:"mo",output:" ",tex:null,ttype:0},{input:"cdots",tag:"mo",output:"⋯",tex:null,ttype:0},{input:"vdots",tag:"mo",output:"⋮",tex:null,ttype:0},{input:"ddots",tag:"mo",output:"⋱",tex:null,ttype:0},{input:"diamond",tag:"mo",output:"⋄",tex:null,ttype:0},{input:"square",tag:"mo",output:"□",tex:"boxempty",ttype:0},{input:"|__",tag:"mo",output:"⌊",tex:"lfloor",ttype:0},{input:"__|",tag:"mo",output:"⌋",tex:"rfloor",ttype:0},{input:"|~",tag:"mo",output:"⌈",tex:"lceil",ttype:0},{input:"lceiling",tag:"mo",output:"|~",tex:null,ttype:8},{input:"~|",tag:"mo",output:"⌉",tex:"rceil",ttype:0},{input:"rceiling",tag:"mo",output:"~|",tex:null,ttype:8},{input:"CC",tag:"mo",output:"ℂ",tex:"mathbb{C}",ttype:0,notexcopy:!0},{input:"NN",tag:"mo",output:"ℕ",tex:"mathbb{N}",ttype:0,notexcopy:!0},{input:"QQ",tag:"mo",output:"ℚ",tex:"mathbb{Q}",ttype:0,notexcopy:!0},{input:"RR",tag:"mo",output:"ℝ",tex:"mathbb{R}",ttype:0,notexcopy:!0},{input:"ZZ",tag:"mo",output:"ℤ",tex:"mathbb{Z}",ttype:0,notexcopy:!0},{input:"f",tag:"mi",output:"f",tex:null,ttype:1,func:!0,val:!0},{input:"g",tag:"mi",output:"g",tex:null,ttype:1,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:7},{input:"Lim",tag:"mo",output:"Lim",tex:null,ttype:7},{input:"sin",tag:"mo",output:"sin",tex:null,ttype:1,func:!0},{input:"cos",tag:"mo",output:"cos",tex:null,ttype:1,func:!0},{input:"tan",tag:"mo",output:"tan",tex:null,ttype:1,func:!0},{input:"arcsin",tag:"mo",output:"arcsin",tex:null,ttype:1,func:!0},{input:"arccos",tag:"mo",output:"arccos",tex:null,ttype:1,func:!0},{input:"arctan",tag:"mo",output:"arctan",tex:null,ttype:1,func:!0},{input:"sinh",tag:"mo",output:"sinh",tex:null,ttype:1,func:!0},{input:"cosh",tag:"mo",output:"cosh",tex:null,ttype:1,func:!0},{input:"tanh",tag:"mo",output:"tanh",tex:null,ttype:1,func:!0},{input:"cot",tag:"mo",output:"cot",tex:null,ttype:1,func:!0},{input:"coth",tag:"mo",output:"coth",tex:null,ttype:1,func:!0},{input:"sech",tag:"mo",output:"sech",tex:null,ttype:1,func:!0},{input:"csch",tag:"mo",output:"csch",tex:null,ttype:1,func:!0},{input:"sec",tag:"mo",output:"sec",tex:null,ttype:1,func:!0},{input:"csc",tag:"mo",output:"csc",tex:null,ttype:1,func:!0},{input:"log",tag:"mo",output:"log",tex:null,ttype:1,func:!0},{input:"ln",tag:"mo",output:"ln",tex:null,ttype:1,func:!0},{input:"abs",tag:"mo",output:"abs",tex:null,ttype:1,notexcopy:!0,rewriteleftright:["|","|"]},{input:"norm",tag:"mo",output:"norm",tex:null,ttype:1,notexcopy:!0,rewriteleftright:["\\|","\\|"]},{input:"floor",tag:"mo",output:"floor",tex:null,ttype:1,notexcopy:!0,rewriteleftright:["\\lfloor","\\rfloor"]},{input:"ceil",tag:"mo",output:"ceil",tex:null,ttype:1,notexcopy:!0,rewriteleftright:["\\lceil","\\rceil"]},{input:"Sin",tag:"mo",output:"Sin",tex:null,ttype:1,func:!0},{input:"Cos",tag:"mo",output:"Cos",tex:null,ttype:1,func:!0},{input:"Tan",tag:"mo",output:"Tan",tex:null,ttype:1,func:!0},{input:"Arcsin",tag:"mo",output:"Arcsin",tex:null,ttype:1,func:!0},{input:"Arccos",tag:"mo",output:"Arccos",tex:null,ttype:1,func:!0},{input:"Arctan",tag:"mo",output:"Arctan",tex:null,ttype:1,func:!0},{input:"Sinh",tag:"mo",output:"Sinh",tex:null,ttype:1,func:!0},{input:"Cosh",tag:"mo",output:"Cosh",tex:null,ttype:1,func:!0},{input:"Tanh",tag:"mo",output:"Tanh",tex:null,ttype:1,func:!0},{input:"Cot",tag:"mo",output:"Cot",tex:null,ttype:1,func:!0},{input:"Sec",tag:"mo",output:"Sec",tex:null,ttype:1,func:!0},{input:"Csc",tag:"mo",output:"Csc",tex:null,ttype:1,func:!0},{input:"Log",tag:"mo",output:"Log",tex:null,ttype:1,func:!0},{input:"Ln",tag:"mo",output:"Ln",tex:null,ttype:1,func:!0},{input:"Abs",tag:"mo",output:"abs",tex:null,ttype:1,notexcopy:!0,rewriteleftright:["|","|"]},{input:"det",tag:"mo",output:"det",tex:null,ttype:1,func:!0},{input:"exp",tag:"mo",output:"exp",tex:null,ttype:1,func:!0},{input:"dim",tag:"mo",output:"dim",tex:null,ttype:0},{input:"mod",tag:"mo",output:"mod",tex:"text{mod}",ttype:0,notexcopy:!0},{input:"gcd",tag:"mo",output:"gcd",tex:null,ttype:1,func:!0},{input:"lcm",tag:"mo",output:"lcm",tex:"text{lcm}",ttype:1,func:!0,notexcopy:!0},{input:"lub",tag:"mo",output:"lub",tex:null,ttype:0},{input:"glb",tag:"mo",output:"glb",tex:null,ttype:0},{input:"min",tag:"mo",output:"min",tex:null,ttype:7},{input:"max",tag:"mo",output:"max",tex:null,ttype:7},{input:"uarr",tag:"mo",output:"↑",tex:"uparrow",ttype:0},{input:"darr",tag:"mo",output:"↓",tex:"downarrow",ttype:0},{input:"rarr",tag:"mo",output:"→",tex:"rightarrow",ttype:0},{input:"->",tag:"mo",output:"→",tex:"to",ttype:0},{input:">->",tag:"mo",output:"↣",tex:"rightarrowtail",ttype:0},{input:"->>",tag:"mo",output:"↠",tex:"twoheadrightarrow",ttype:0},{input:">->>",tag:"mo",output:"⤖",tex:"twoheadrightarrowtail",ttype:0},{input:"|->",tag:"mo",output:"↦",tex:"mapsto",ttype:0},{input:"larr",tag:"mo",output:"←",tex:"leftarrow",ttype:0},{input:"harr",tag:"mo",output:"↔",tex:"leftrightarrow",ttype:0},{input:"rArr",tag:"mo",output:"⇒",tex:"Rightarrow",ttype:0},{input:"lArr",tag:"mo",output:"⇐",tex:"Leftarrow",ttype:0},{input:"hArr",tag:"mo",output:"⇔",tex:"Leftrightarrow",ttype:0},{input:"sqrt",tag:"msqrt",output:"sqrt",tex:null,ttype:1},{input:"root",tag:"mroot",output:"root",tex:null,ttype:2},{input:"frac",tag:"mfrac",output:"/",tex:null,ttype:2},{input:"/",tag:"mfrac",output:"/",tex:null,ttype:3},{input:"stackrel",tag:"mover",output:"stackrel",tex:null,ttype:2},{input:"_",tag:"msub",output:"_",tex:null,ttype:3},{input:"^",tag:"msup",output:"^",tex:null,ttype:3},{input:"cancel",tag:"menclose",output:"cancel",tex:null,ttype:1},{input:"Sqrt",tag:"msqrt",output:"sqrt",tex:null,ttype:1},{input:"hat",tag:"mover",output:"^",tex:null,ttype:1,acc:!0},{input:"bar",tag:"mover",output:"¯",tex:"overline",ttype:1,acc:!0},{input:"vec",tag:"mover",output:"→",tex:null,ttype:1,acc:!0},{input:"tilde",tag:"mover",output:"~",tex:null,ttype:1,acc:!0},{input:"dot",tag:"mover",output:".",tex:null,ttype:1,acc:!0},{input:"ddot",tag:"mover",output:"..",tex:null,ttype:1,acc:!0},{input:"overarc",tag:"mover",output:"⏜",tex:"stackrel{\\frown}",notexcopy:!0,ttype:1,acc:!0},{input:"overparen",tag:"mover",output:"⏜",tex:"stackrel{\\frown}",notexcopy:!0,ttype:1,acc:!0},{input:"ul",tag:"munder",output:"̲",tex:"underline",ttype:1,acc:!0},{input:"ubrace",tag:"munder",output:"⏟",tex:"underbrace",ttype:1,acc:!0},{input:"obrace",tag:"mover",output:"⏞",tex:"overbrace",ttype:1,acc:!0},{input:"text",tag:"mtext",output:"text",tex:null,ttype:10},{input:"mbox",tag:"mtext",output:"mbox",tex:null,ttype:10},Z,{input:"color",tag:"mstyle",ttype:2},{input:"bb",tag:"mstyle",atname:"mathvariant",atval:"bold",output:"bb",tex:"mathbf",ttype:1,notexcopy:!0},{input:"mathbf",tag:"mstyle",atname:"mathvariant",atval:"bold",output:"mathbf",tex:null,ttype:1},{input:"sf",tag:"mstyle",atname:"mathvariant",atval:"sans-serif",output:"sf",tex:"mathsf",ttype:1,notexcopy:!0},{input:"mathsf",tag:"mstyle",atname:"mathvariant",atval:"sans-serif",output:"mathsf",tex:null,ttype:1},{input:"bbb",tag:"mstyle",atname:"mathvariant",atval:"double-struck",output:"bbb",tex:"mathbb",ttype:1,notexcopy:!0},{input:"mathbb",tag:"mstyle",atname:"mathvariant",atval:"double-struck",output:"mathbb",tex:null,ttype:1},{input:"cc",tag:"mstyle",atname:"mathvariant",atval:"script",output:"cc",tex:"mathcal",ttype:1,notexcopy:!0},{input:"mathcal",tag:"mstyle",atname:"mathvariant",atval:"script",output:"mathcal",tex:null,ttype:1},{input:"tt",tag:"mstyle",atname:"mathvariant",atval:"monospace",output:"tt",tex:"mathtt",ttype:1,notexcopy:!0},{input:"mathtt",tag:"mstyle",atname:"mathvariant",atval:"monospace",output:"mathtt",tex:null,ttype:1},{input:"fr",tag:"mstyle",atname:"mathvariant",atval:"fraktur",output:"fr",tex:"mathfrak",ttype:1,notexcopy:!0},{input:"mathfrak",tag:"mstyle",atname:"mathvariant",atval:"fraktur",output:"mathfrak",tex:null,ttype:1}];function Y(t,e){return t.input>e.input?1:-1}var tt,et,nt,ot=[];function it(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 rt(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 at(t){for(var e,n,o,i=0,r="",a=!0,s=1;t.length>=s&&a;s++)n=t.slice(0,s),i=rt(ot,n,i),ot.length>i&&t.slice(0,ot[i].length)==ot[i]&&(e=i,s=(r=ot[i]).length),a=ot.length>i&&t.slice(0,ot[i].length)>=ot[i];if(et=nt,""!=r)return nt=Q[e].ttype,Q[e];nt=0,i=1,n=t.slice(0,1);for(var u=!0;n>="0"&&"9">=n&&t.length>=i;)n=t.slice(i,i+1),i++;if(n==X&&(n=t.slice(i,i+1))>="0"&&"9">=n)for(u=!1,i++;n>="0"&&"9">=n&&t.length>=i;)n=t.slice(i,i+1),i++;return u&&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&&3==et?(nt=3,{input:n,tag:o,output:n,ttype:1,func:!0,val:!0}):{input:n,tag:o,output:n,ttype:0,val:!0}}function st(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 ut(t){var e;return e="boolean"==typeof t.val&&t.val?"":"\\",null==t.tex?e+t.input:e+t.tex}function lt(t){var e,n,o,i,r="";if(null==(e=at(t=it(t,0)))||5==e.ttype&&tt>0)return[null,t];switch(8==e.ttype&&(e=at(t=e.output+it(t,e.input.length))),e.ttype){case 7:case 0:t=it(t,e.input.length);var a=ut(e);return"\\"==a.charAt(0)||"mo"==e.tag?[a,t]:["{"+a+"}",t];case 4:tt++,o=pt(t=it(t,e.input.length),!0),tt--;var s=0;return"\\right"==o[0].substr(0,6)&&(")"==(l=o[0].charAt(6))||"]"==l||"}"==l?s=6:"."==l?s=7:"\\rbrace"==(l=o[0].substr(6,7))&&(s=13)),s>0?(o[0]=o[0].substr(s),n="boolean"==typeof e.invisible&&e.invisible?"{"+o[0]+"}":"{"+ut(e)+o[0]+"}"):n="boolean"==typeof e.invisible&&e.invisible?"{\\left."+o[0]+"}":"{\\left"+ut(e)+o[0]+"}",[n,o[1]];case 10:return e!=Z&&(t=it(t,e.input.length)),-1==(i="{"==t.charAt(0)?t.indexOf("}"):"("==t.charAt(0)?t.indexOf(")"):"["==t.charAt(0)?t.indexOf("]"):e==Z?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=it(t,i+1)];case 1:return null==(o=lt(t=it(t,e.input.length)))[0]?["{"+ut(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?["{"+ut(e)+"}",t]:[n="{"+ut(e)+"{"+o[0]+"}}",o[1]]:(o[0]=st(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?[ut(e)+"{"+o[0]+"}",o[1]]:["{"+ut(e)+"{"+o[0]+"}}",o[1]]);case 2:if(null==(o=lt(t=it(t,e.input.length)))[0])return["{"+ut(e)+"}",t];o[0]=st(o[0]);var u=lt(o[1]);return null==u[0]?["{"+ut(e)+"}",t]:(u[0]=st(u[0]),[r="color"==e.input?"{\\color{"+o[0].replace(/[\{\}]/g,"")+"}"+u[0]+"}":"root"==e.input?"{\\sqrt["+o[0]+"]{"+u[0]+"}}":"{"+ut(e)+"{"+o[0]+"}{"+u[0]+"}}",u[1]]);case 3:return t=it(t,e.input.length),[e.output,t];case 6:return t=it(t,e.input.length),["{\\quad\\text{"+e.input+"}\\quad}",t];case 9:tt++,o=pt(t=it(t,e.input.length),!1),tt--;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=it(t,e.input.length),["{"+ut(e)+"}",t]}}function ct(t){var e,n,o,i,r;if(n=at(t=it(t,0)),i=(r=lt(t))[0],3==(e=at(t=r[1])).ttype&&"/"!=e.input){if((r=lt(t=it(t,e.input.length)))[0]=null==r[0]?"{}":st(r[0]),t=r[1],"_"==e.input)if("^"==(o=at(t)).input){var a=lt(t=it(t,o.input.length));a[0]=st(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&&(3==(o=at(t)).ttype||5==o.ttype||1>=n.input.length&&4!=o.ttype||(i="{"+i+(r=ct(t))[0]+"}",t=r[1]))}return[i,t]}function pt(t,e){var n,o,i,r,a="",s=!1;do{o=(i=ct(t=it(t,0)))[0],3==(n=at(t=i[1])).ttype&&"/"==n.input?((i=ct(t=it(t,n.input.length)))[0]=null==i[0]?"{}":st(i[0]),t=i[1],o="\\frac{"+(o=st(o))+"}",a+=o+="{"+i[0]+"}",n=at(t)):null!=o&&(a+=o)}while((5!=n.ttype&&(9!=n.ttype||e)||0==tt)&&null!=n&&""!=n.output);if(5==n.ttype||9==n.ttype){var u=a.length;if(u>2&&"{"==a.charAt(0)&&a.indexOf(",")>0){var l=a.charAt(u-2);if(")"==l||"]"==l){var c=a.charAt(6);if("("==c&&")"==l&&"}"!=n.output||"["==c&&"]"==l){var p="",d=[];d.push(0);var m=!0,h=0,f=[];f[0]=[0];var g=0,y=0,v="";for(r=1;u-1>r;r++)a.charAt(r)==c&&h++,a.charAt(r)==l&&0==--h&&","==a.charAt(r+2)&&"{"==a.charAt(r+3)&&(d.push(r+2),f[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&&f[g].push(r),0>y&&(g==r+1?r++:m=!1);d.push(u);var w=-1;if(0==h&&d.length>0&&m)for(r=0;d.length-1>r;r++){if(r>0&&(p+="\\\\"),0==r)if(1==f[d[r]].length)var x=[a.substr(d[r]+7,d[r+1]-d[r]-15)];else{x=[a.substring(d[r]+7,f[d[r]][1])];for(var b=2;f[d[r]].length>b;b++)x.push(a.substring(f[d[r]][b-1]+1,f[d[r]][b]));x.push(a.substring(f[d[r]][f[d[r]].length-1]+1,d[r+1]-8))}else if(1==f[d[r]].length)x=[a.substr(d[r]+8,d[r+1]-d[r]-16)];else{for(x=[a.substring(d[r]+8,f[d[r]][1])],b=2;f[d[r]].length>b;b++)x.push(a.substring(f[d[r]][b-1]+1,f[d[r]][b]));x.push(a.substring(f[d[r]][f[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),p+=x.join("&")}p="\\begin{array}{"+v+"} "+p+"\\end{array}",m&&(a=p)}}}t=it(t,n.input.length),"boolean"==typeof n.invisible&&n.invisible?(a+="\\right.",s=!0):(a+=o="\\right"+ut(n),s=!0)}return tt>0&&!s&&(a+="\\right."),[a,t]}function dt(t){return tt=0,null==(t=(t=(t=t.replace(/( |\u00a0| )/g,"")).replace(/>/g,">")).replace(/</g,"<")).match(/\S/)?"":pt(t.replace(/^\s+/g,""),!1)[0]}if(function(){var t,e=Q.length;for(t=0;e>t;t++)!Q[t].tex||"boolean"==typeof Q[t].notexcopy&&Q[t].notexcopy||Q.push({input:Q[t].tex,tag:Q[t].tag,output:Q[t].output,ttype:Q[t].ttype,acc:Q[t].acc||!1});!function(){var t;for(Q.sort(Y),t=0;Q.length>t;t++)ot[t]=Q[t].input}()}(),"undefined"==typeof window)throw Error("The showdown katex extension can only be used in browser environment!");if(void 0===mt)var mt=window.katex||void 0;if("undefined"==typeof renderMathInElement)var ht=window.renderMathInElement||void 0;let ft=0;function gt(){return!(void 0===ht||!ht||void 0===mt||!mt)}let yt=!1;const vt="katexCSS";function wt(t){const e=gt();if("undefined"!=typeof window){if(yt)return e;if(!e)return yt=!0,y.loadStyleSheet(vt),y.loadScript("katex").then(t=>(mt=v.interopDefault(window[t]),y.loadScript("renderMathInElement"))).then(e=>{ht=v.interopDefault(window[e]),"function"==typeof t&&t&&t(ht)}).catch(t=>{}),e}return"function"==typeof t&&t&&t(ht),e}function xt(t,e){if(gt()){const n=e.className,o=e.input,i=e.data,r=e.cssLink,a=e.options,s=e.element.ownerDocument;let u="";if(i instanceof Array)i.forEach(t=>{if(""===t)u+="<br>";else{const e=mt.renderToString(t,a);u+=r?`<div title="${o}" class="${n} css-katex" data-css="${r}">${e}</div>`:`<div title="${o}" class="${n}">${e}</div>`}});else{const t=mt.renderToString(i,a);u=r?`<div title="${o}" class="${n} css-katex" data-css="${r}">${t}</div>`:`<div title="${o}" class="${n}">${t}</div>`}e.element.parentNode.outerHTML=u,--ft,ft||ht(s.body,a),t(!0)}else setTimeout(()=>{xt(t,e)},10)}function bt(t,e,n){return new Promise(o=>{let i;const r=v.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?dt(t):t),e.push(t)})):e=n?dt(i):i,e});if(!r)return o(!1);r.cssLink=y.getSrc(!0,vt),r.input=i,r.options=e,xt(o,r)})}function St(t){return t.replace(/[-[\]/{}()*+?.\\$^|]/g,"\\$&")}const jt=(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}]):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}]),e};function Et(t){let e=0;const n=jt(t),o=n.delimiters.map(({left:t,right:n,display:o,asciimath:i})=>({test:RegExp(`${St(t)}(.+?)${St(n)}`,"g"),replacer:(t,n)=>(++e,i&&(n=dt(n)),o?`\\[${n}\\]`:`\\(${n}\\)`)}));return[{type:"output",config:n,filter:function(t){e=0;const n=t.wrapper;if(!n)return!1;o.length&&n.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 i=n.querySelectorAll("code.latex.language-latex"),r=n.querySelectorAll("code.asciimath.language-asciimath");if(!i.length&&!r.length){if(e>0){this.config.cssLink=y.getSrc(!0,vt);const a=this;function s(t,e){gt()?(e(n.ownerDocument.body,a.config),t(!0)):setTimeout(()=>{s(t,e)},10)}return new Promise(t=>{wt(e=>{s(t,e)})}).then(()=>t)}return!1}return this.config.cssLink=y.getSrc(!0,vt),v.addCssLink(t,this.config.cssLink,"css-katex"),function(t,e,n){return ft=t.length+e.length,wt(),new Promise(o=>{const i=[];t.forEach(t=>{i.push(bt(t,n,!1))}),e.forEach(t=>{i.push(bt(t,n,!0))}),Promise.all(i).then(()=>{o(!0)})})}(i,r,this.config).then(()=>t)}}]}const kt="echarts";if("undefined"==typeof window)throw Error(`The showdown ${kt} extension can only be used in browser environment!`);if(void 0===At)var At=window.echarts||void 0;function Ct(){return!!At}let Lt=!1;function Ot(t,e){if(Ct()){const n=e.id,o=e.container,i=e.className,r=e.element.parentNode;e.lang?(e.lang.width||(e.lang.width="400px"),e.lang.height||(e.lang.height="300px")):e.lang={width:"400px",height:"300px"};return r.outerHTML=`<div id="${o}" class="${i}" style="${`width:${e.lang.width}; height:${e.lang.height};`}"><div id="${n}" style="width:100%;height:100%;display:inline-block"></div></div>`,t(!0)}setTimeout(()=>{Ot(t,e)},20)}function Nt(t,e,n){const o=v.createElementMeta(kt,t);if(!o)return Promise.resolve(!1);n={...n,ssr:!1},n=JSON.stringify(n);let i=`(function() {\n let el = document.getElementById('${o.id}');\n if (el){\n let chart = echarts.getInstanceByDom(el);\n if (!chart) {\n el.innerHTML = '';\n }\n let config = JSON.parse('${n}');\n chart = echarts.init(el, null, config);\n `;if(o.lang&&o.lang.type&&"string"==typeof o.lang.type&&"javascript"==o.lang.type.toLowerCase())i+=" "+o.data;else{i+=` const option = JSON.parse(\`${JSON.stringify(JSON.parse(o.data))}\`);`}i+="\n chart.setOption(option);\n }\n })();";return e.push({id:o.container,code:i}),new Promise(t=>{Ot(t,o)})}function $t(t,e,n){const o={outer:[{name:kt,src:y.getSrc(!1,kt,"jsdelivr")}],inner:[]};return e.push(o),function(){const t=Ct();if("undefined"!=typeof window){if(Lt)return t;t||(Lt=!0,y.loadScript(kt).then(t=>{At=v.interopDefault(window[t])}))}}(),new Promise(e=>{const i=[];t.forEach(t=>{i.push(Nt(t,o.inner,n))}),Promise.all(i).then(()=>{e(!0)})})}function qt(t){return[{type:"output",config:((t={})=>({renderer:"svg",ssr:!1,tooltip:{show:!0},animation:!0,useDirtyRect:!1,...t}))(t),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll(`code.${kt}.language-${kt}`);return!!n.length&&$t(n,t.scripts,this.config).then(()=>t)}}]}const Mt="mermaid";if("undefined"==typeof window)throw Error("The showdown mermaid extension can only be used in browser environment!");if(void 0===Tt)var Tt=window.mermaid||void 0;function Dt(){return!(void 0===Tt||!Tt)}let Pt=!1;function Ht(t,e){if(Dt()){const n=e.className,o=e.element.parentNode;return void Tt.render(e.id,e.data).then(e=>{o.outerHTML=`<div class="${n}">${e.svg}</div>`,t(!0)})}setTimeout(()=>{Ht(t,e)},10)}function zt(t){return new Promise(e=>{const n=v.createElementMeta(Mt,t);if(!n)return e(!1);Ht(e,n)})}function Bt(t,e){return function(t){const e=Dt();if("undefined"!=typeof window){if(Pt)return e;if(!e)return Pt=!0,y.loadScript(Mt).then(e=>{(Tt=v.interopDefault(window[e])).initialize(t)}),e}Tt.initialize(t)}(e),new Promise(e=>{const n=[];t.forEach(t=>{n.push(zt(t))}),Promise.all(n).then(()=>{e(!0)})})}function _t(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&&Bt(n,this.config).then(()=>t)}}]}function Ft(t,e,n){var o=(3&t)<<4|e>>4,i=(15&e)<<2|n>>6,r=63&n,a="";return a+=Jt(63&t>>2),a+=Jt(63&o),a+=Jt(63&i),a+=Jt(63&r)}function Jt(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 Rt(t){var e=t.charCodeAt(0);return"_"===t?63:"-"===t?62:97>e?65>e?48>e?"?":e-48:e-55:e-61}function It(t){var e=Rt(t[0]),n=Rt(t[1]),o=Rt(t[2]);return[e<<2|n>>4&63,n<<4&240|o>>2&15,o<<6&192|63&Rt(t[3])]}function Vt(t){return function(t){for(var e="",n=0;t.length>n;n+=3)e+=n+2==t.length?Ft(t.charCodeAt(n),t.charCodeAt(n+1),0):n+1==t.length?Ft(t.charCodeAt(n),0,0):Ft(t.charCodeAt(n),t.charCodeAt(n+1),t.charCodeAt(n+2));return e}(e.deflateRawSync(t,{level:9}).toString("binary"))}function Wt(t){return""+e.inflateRawSync(Buffer.from(function(t){var e="",n=0;for(n=0;t.length>n;n+=4){var o=It(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 Ut={encodeuml:function(t){const e="@startuml",n="@enduml";return Vt(`${e}${(t.split(e)[1]+"").split(n)[0]||""}${n}`)},decodeuml:function(t){return Wt(t)}},Gt="img";let Kt=0;function Xt(t,e){return Kt=t.length,new Promise(n=>{const o=[];t.forEach(t=>{o.push(function(t,e){return new Promise(n=>{const o=t.dataset.lang;let i=null;if(o)try{i=JSON.parse(o)}catch{}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(),s=(t.classList.length>0?t.classList[0]:"")+(t.className&&r?" ":"")+r,u=e.imageFormat;if("svg"!==u){const o=window&&window.location.protocol,i=("http:"===o||"https:"===o?"//":"https://")+e.umlWebSite,r=u!==Gt?"."+u:"",l=Ut.encodeuml(a);return t.parentNode.outerHTML=`<div class="${s}"><img src='${i}/${u}/${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,s,a,Kt).then(e=>{t.parentNode.outerHTML=`<div id="${o}" class="${s}">${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=u!==Gt?"."+u:"",c=Ut.encodeuml(a);window.fetch(`${r}/${u}/${c}${l}`).then(t=>{if(t.ok)return t.text()}).then(e=>{t.parentNode.outerHTML=`<div id="${o}" class="${s}">${e}</div>`,n(!0)})}}})}(t,e))}),Promise.all(o).then(()=>{n(!0)})})}function Zt(t){return[{type:"output",config:((t={})=>({umlWebSite:"www.plantuml.com/plantuml",imageFormat:Gt,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&&Xt(n,this.config).then(()=>t)}}]}const Qt="railroad",Yt="railroadCSS";if("undefined"==typeof window)throw Error("The showdown railroad extension can only be used in browser environment!");let te=!1;function ee(){return te}let ne,oe=!1;function ie(t,e){if(ee()){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(()=>{ie(t,e)},10)}function re(t){return new Promise(e=>{const n=v.createElementMeta(Qt,t);if(!n)return e(!1);n.cssLink=y.getSrc(!0,Yt),ie(e,n)})}function ae(t){return function(){const t=ee();if("undefined"!=typeof window){if(oe)return t;t||(oe=!0,y.loadStyleSheet(Yt),y.loadScript(Qt).then(()=>{te=!0}))}}(),new Promise(e=>{const n=[];t.forEach(t=>{n.push(re(t))}),Promise.all(n).then(()=>{e(!0)})})}function se(){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:y.getSrc(!0,Yt)},v.addCssLink(t,this.config.cssLink,"css-railroad"),ae(n).then(()=>t))}}]}if("undefined"==typeof window)throw Error("The showdown sequence extension can only be used in browser environment!");if(void 0===ue)var ue=window.Raphael||void 0;if("undefined"!=typeof window&&window.Diagram&&(ne=window.Diagram,window.Diagram.Signal))var le=window.Diagram;const ce=["simple","hand"];if(void 0===le&&"undefined"!=typeof window)le=window.SequenceJS;function pe(){return!!ue}function de(){return pe()&&!!le}let me=!1;const he="sequenceCSS";function fe(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=de();if("undefined"!=typeof window){if(me)return t;t||(me=!0,y.loadStyleSheet(he),y.loadScript("WebFont").then(()=>pe()?"Raphael":y.loadScript("Raphael")).then(t=>(ue=v.interopDefault(window[t]),y.loadScript("Snap"))).then(()=>y.loadScript("underscore")).then(()=>(!ne&&window.Diagram&&(ne=window.Diagram),y.loadScript("sequence"))).then(()=>{le=window.Diagram,window.SequenceJS=le,ne&&(window.Diagram=ne)}))}return t}(),r=y.getSrc(!0,he),a=t.textContent.trim(),s="js-sequence"+(o?" ":"")+o,u="sequence-"+Date.now()+"-"+Math.floor(1e4*Math.random());t.id=u,r&&(t.className=t.className+(t.className?" ":"")+"css-sequence",t.dataset.css=r),!i&&"undefined"!=typeof window&&window.dispatchEvent?Promise.resolve(u).then(t=>{window.dispatchEvent(new CustomEvent("sequence",{detail:{id:t,className:s,data:a,langattr:e,cssLink:r}}))}):"undefined"!=typeof window&&window.dispatchEvent&&window.dispatchEvent(new CustomEvent("sequence",{detail:{id:u,className:s,data:a,langattr:e,cssLink:r}}))}function ge(t){if(de()){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!=ce.indexOf(t.theme)&&(r=t.theme)}let s=window.document.getElementById(e);if(s){s.parentNode.outerHTML=i?`<div id="${e}" class="${n} css-sequence" data-css="${i}"></div>`:`<div id="${e}" class="${n}"></div>`,s=window.document.getElementById(e);return void le.parse(o).drawSVG(s||e,{theme:r})}}setTimeout(()=>{ge(t)},10)}function ye(){let t=!1;return[{type:"output",filter:function(e){if("string"==typeof e){const n=(new DOMParser).parseFromString(e,"text/html"),o=void 0!==n.body?n.body:n,i=o.querySelectorAll("code.sequence.language-sequence");return i.length&&(t||"undefined"!=typeof window&&window.dispatchEvent&&(t=!0,window.addEventListener("sequence",t=>{t.detail&&ge(t.detail)})),this.config={cssLink:y.getSrc(!0,he)}),function(t){return!!t.length&&(t.forEach(t=>{fe(t)}),!0)}(i)?o.innerHTML:e}if(!e||!e.wrapper)return!1;const n=e;return n.wrapper.querySelectorAll("code.sequence.language-sequence").length>0&&v.addCssLink(n,y.getSrc(!0,he),"css-sequence"),n}}]}if("undefined"==typeof window)throw Error("The showdown wavedrom extension can only be used in browser environment!");if(void 0===ve)var ve=window.WaveDrom||void 0;let we=0,xe=0;function be(){return!!ve}let Se=!1;function je(t,e){if(be()){const n=e.index,o=e.id,i=e.data;let r=e.element;return r.parentNode.outerHTML=v.renderCacheElement(r.ownerDocument,o+n,e.className,t=>{const e=window.eval(`(${i})`);ve.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(()=>{je(t,e)},10)}function Ee(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,s=xe;++xe,--we,we||(xe=0);const u="WaveDrom_Display_";t.id=u+s;je(e,{element:t,index:s,id:u,className:a,data:r})})}function ke(t,e){return function(t){const e=be();Se||e||(Se=!0,"undefined"!=typeof window&&y.loadScript({WaveDromSkin:t}).then(()=>y.loadScript("WaveDrom")).then(t=>{ve=v.interopDefault(window[t])}))}(e),new Promise(e=>{const n=[];we=t.length,t.forEach(t=>{n.push(Ee(t))}),Promise.all(n).then(()=>{e(!0)})})}function Ae(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&&(s("Begin render wavedrom elements."),ke(n,this.config.skin).then(()=>(s("End render wavedrom elements."),t)))}}]}function Ce(){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]+)\]/gm,(t,e,n)=>`${e}<a href="#footnote-${n}"><sup>[${n}]</sup></a>`)},{type:"lang",filter:t=>t.replace(/\\\[\^([\d\w]+)\]/gm,(t,e)=>`[^${e}]`)}]}function Le(){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===Oe)var Oe=window.Raphael||void 0;if(void 0===Ne)var Ne=window.flowchart||void 0;function $e(){return!(void 0===Oe||!Oe||void 0===Ne||!Ne)}let qe=!1;function Me(){const t=$e();if("undefined"!=typeof window){if(qe)return t;if(!t){if(qe=!0,!Oe)return y.loadScript("Raphael").then(t=>(Oe=v.interopDefault(window[t]),y.loadScript("flowchart"))).then(t=>{Ne=v.interopDefault(window[t])}),t;y.loadScript("flowchart").then(t=>{Ne=v.interopDefault(window[t])})}}return t}function Te(t,e){if($e()){const n=e.data,o=e.options;return e.element.parentNode.outerHTML=v.renderCacheElement(e.element.ownerDocument,e.id,e.className,t=>{Ne.parse(n).drawSVG(t,o)}),void t(!0)}setTimeout(()=>{Te(t,e)},10)}function De(t,e){return new Promise(n=>{const o=v.createElementMeta("flowchart",t);if(!o)return n(!1);o.options=e,Te(n,o)})}function Pe(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 Me(),new Promise(o=>{const i=[];t.forEach(t=>{i.push(De(t,n))}),e.forEach(t=>{i.push(De(t,n))}),Promise.all(i).then(()=>{o(!0)})})}(n,o,this.config).then(()=>t)}}]}const He=(t={})=>({flavor:"github",...t}),ze=(t,e,n)=>{if(!t||!e||"undefined"==typeof document)return!1;let o=document.getElementById(t);o||(n?"string"==typeof n&&(n=document.querySelector(n)):n=document.body,o=n);const i="script-"+t;let r=document.querySelector(`${o.tagName} > #${i}`);return r||(r=document.createElement("script"),r.id=i,r.type="text/javascript",r.text=e,o.appendChild(r)),!0};function Be(t,e){return new Promise((n,o)=>{t&&e&&"undefined"!=typeof document||o("Args is invaild!");const i="script-"+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)})}const _e=["github","ghost","vanilla","original","allon"],Fe=["default","forest","dark","neutral"],Je=["excel","ggplot2","quartz","vox","dark"],Re=["canvas","svg"],Ie=["svg","png","jpg"],Ve={showdown:t,converter:null,defaultOptions:{showdown:He(),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,o){"string"==typeof t&&t&&y.setCDN(t,e,n,o)},setShowdownFlavor:function(t){this.initDefaultOptions(),t&&(-1===_e.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===Ie.indexOf(e)&&(this.defaultOptions.plantuml.imageFormat="png"),this.converter&&this.addAsyncExtension("showdown-plantuml",Zt(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===Fe.indexOf(e)&&(this.defaultOptions.mermaid.theme="default"),this.converter&&this.addAsyncExtension("showdown-mermaid",_t(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",Et(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===Je.indexOf(e)&&(this.defaultOptions.vega.theme="vox");const n=this.defaultOptions.vega.renderer;return n&&-1===Re.indexOf(n)&&(this.defaultOptions.vega.renderer="canvas"),this.converter&&this.addAsyncExtension("showdown-vega",G(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=He(this.defaultOptions&&this.defaultOptions.showdown||{});this.addOptions(t)}t.hasOwnProperty("extension")&&t.extension&&(this.addAsyncExtension("showdown-plantuml",Zt(this.defaultOptions.plantuml)),this.addAsyncExtension("showdown-mermaid",_t(this.defaultOptions.mermaid)),this.addAsyncExtension("showdown-vega",G(this.defaultOptions.vega)))}}else{const e=He(this.defaultOptions&&this.defaultOptions.showdown||{}),n=((e,n={})=>{const o={"showdown-toc":$,"showdown-align":K,"showdown-footnotes":Ce,"showdown-container":Le,"showdown-sequence":ye,...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.plantuml||{},r=e&&e.katex||{},a=e&&e.vega||{},s=(e,n)=>{let o=null;try{o=t.extension(e)}catch{}return o||n},u={"showdown-toc":s("showdown-toc",$),"showdown-plantuml":Zt(i),"showdown-mermaid":_t(o),"showdown-katex":Et(r),"showdown-flowchart":Pe,"showdown-viz":_,"showdown-vega":G(a),"showdown-wavedrom":Ae,"showdown-railroad":se,"showdown-abc":C,"showdown-echarts":qt,"showdown-sequence":s("showdown-sequence",ye),...n,"showdow-css":q};let l=[];for(let e in u)u.hasOwnProperty(e)&&(t.asyncExtension(e,u[e]),l.push(e));return l})(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(t){return new Promise(e=>(t.cssLinks&&Array.isArray(t.cssLinks)&&(t.cssTypes={css:{}},t.cssLinks.forEach(e=>"css-abc"===e.id?(t.cssTypes.hasAbc=!0,void(t.cssTypes.css.abc=e.link)):"css-katex"===e.id?(t.cssTypes.hasKatex=!0,void(t.cssTypes.css.katex=e.link)):"css-railroad"===e.id?(t.cssTypes.hasRailroad=!0,void(t.cssTypes.css.railroad=e.link)):void("css-sequence"===e.id&&(t.cssTypes.hasSequence=!0,t.cssTypes.css.sequence=e.link))),"function"==typeof n&&n&&n(t.cssTypes)),e(t)))}return this.converter.asyncMakeHtml(o,i).then(e=>{if(o=`<div class='showdowns'>${e.html}</div>`,e.extras){let n=e.extras;t.helper.isArray(n)||(n=[n]);for(let t=0;n.length>t;++t)"string"==typeof n[t]&&(o+=n[t])}return{html:o,scripts:e.scripts,cssLinks:e.cssLinks}})}return Promise.reject(o?"Converter is invaild.":"Content is empty.")},completedHtml:function(e,n){t.helper.isArray(e)||(e=[e]);const o=function(e,n){let o=n;if(e.host&&"string"==typeof e.host&&(o=document.querySelector(e.host)),!e.inner)return!e.code||("function"==typeof e.code?(e.code(),!0):ze(e.id,e.code,o));if(t.helper.isArray(e.inner)||(e.inner=[e.inner]),e.code&&("function"==typeof e.code?e.code():((t,e,n)=>{if(!t||!e||"undefined"==typeof document)return!1;let o=document.getElementById(t);o||(n?"string"==typeof n&&(n=document.querySelector(n)):n=document.body,o=n);const i="script-"+t;let r=document.querySelector(`${o.tagName} > #${i}`);r||(r=document.createElement("script"),r.id=i,r.type="text/javascript",r.text=e,o.insertBefore(r,o.children[0]))})(e.id,e.code,o)),e.inner.length>0)for(let t=0;e.inner.length>t;++t){const n=e.inner[t];if(!n.code)continue;if("function"==typeof n.code){n.code();continue}let i=o;n.host&&"string"==typeof n.host&&(i=document.querySelector(n.host)),ze(n.id,n.code,i)}return!0};return new Promise((i,r)=>{"string"==typeof n&&(n=document.querySelector(n));for(let i=0;e.length>i;++i){const a=e[i];if(a.outer){t.helper.isArray(a.outer)||(a.outer=[a.outer]);let e=a.outer[0],i=Be(e.name,e.src);for(let t=1;a.outer.length>t;++t)i=i.then(()=>(e=a.outer[t],Be(e.name,e.src)));i.then(()=>{o(a,n)});continue}if(!o(a,n))return r("Args is invaild!")}i(!0)})},zDecode:function(t){return""+e.inflateRawSync(Buffer.from(t,"base64"))},zEncode:function(t){return e.deflateRawSync(t,{level:9}).toString("base64")}};module.exports=Ve;
|
|
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 s=0;i.length>s;++s)i[s]===t&&i.splice(s,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,s=this.getOptions();let u=Promise.resolve({wrapper:a,options:s,globals:i,scripts:[],cssLinks:[]});return o.forEach(function(t){u=u.then(e=>{const n=t.filter(e);return n||e})}),u.then(t=>{if("function"==typeof e&&e){const n=e(t);if(n instanceof Promise)return n.then(t=>({html:t.wrapper.innerHTML,extras:t.extras,scripts:t.scripts,cssLinks:t.cssLinks}))}return{html:t.wrapper.innerHTML,extras:t.extras,scripts:t.scripts,cssLinks:t.cssLinks}})},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,s){var u=n.omitExtraWLInCodeBlocks?"":"\n";return s=t.subParser("encodeCode")(s,n,o),s="<pre><code"+(r?' class="'+r+" language-"+r+'"':"")+(a?` data-lang='${a}'`:"")+">"+(s=(s=(s=t.subParser("detab")(s,n,o)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+u+"</code></pre>",s=t.subParser("hashBlock")(s,n,o),"\n\n¨G"+(o.ghCodeBlocks.push({text:e,codeblock:s})-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){var r="";return e=e.trim(),(n.tablesHeaderId||n.tableHeaderId)&&(r=' id="'+e.replace(/ /g,"_").toLowerCase()+'"'),"<th"+r+i+">"+(e=t.subParser("spanGamut")(e,n,o))+"</th>\n"}function a(e,i,r,a,s){if(n.tablesMerge){var u=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(u))return u}return a=a.trim(),"<td"+s+">"+t.subParser("spanGamut")(a,n,o)+"</td>\n"}function s(e,s){var u,l=e.split("\n");for(u=0;l.length>u;++u)/^ {0,3}\|/.test(l[u])&&(l[u]=l[u].replace(/^ {0,3}\|/,"")),/\|[ \t]*$/.test(l[u])&&(l[u]=l[u].replace(/\|[ \t]*$/,"")),l[u]=t.subParser("codeSpans")(l[u],n,o);var c=[],p=[],d=[],m=[],h=[];if(s)for(c=l[0].split("|").map(function(t){return t.trim()}),l.shift(),u=0;c.length>u;++u)m.push(i(c[u]));else{var f=l[0].split("|").map(function(t){return t.trim()});if(c=l[1].split("|").map(function(t){return t.trim()}),l.shift(),l.shift(),c.length>f.length)return e;for(u=0;c.length>u;++u)m.push(i(c[u]));for(u=0;f.length>u;++u)t.helper.isUndefined(m[u])&&(m[u]=""),d.push(r(f[u],m[u]))}for(u=0;l.length>u;++u)""!==l[u].trim()&&p.push(l[u].split("|").map(function(t){var e=t.trim();return""===e&&t.length>0?t:e}));for(u=0;p.length>u;++u){var g=[];h.push(g);for(var y=0;m.length>y;++y)t.helper.isUndefined(p[u][y])&&(p[u][y]=""),g.push(a(h,u,y,p[u][y],m[y]))}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 s=0;r>s;++s)n.tablesMerge&&"^^"===o[a][s]||(i+=o[a][s]);i+="</tr>\n"}return i+"</tbody>\n</table>\n"}(d,m,h)}function u(t){return s(t,!1)}function l(t){return s(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,l)).replace(/^ {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,l)),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 s(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 u="jsdelivr",l="file:"===document.location.protocol?"https://":document.location.protocol+"//",c="",p="",d="";const m={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.min.js",vegaLite:"../node_modules/vega-lite/build/vega-lite.min.js",vegaEmbed:"../node_modules/vega-embed/build/vega-embed.min.js"},cdnjs:{ABCJS:l+"cdnjs.cloudflare.com/ajax/libs/abcjs/6.5.1/abcjs-basic-min.js",ABCJSCSS:l+"cdn.jsdelivr.net/npm/abcjs@6/abcjs-audio.css",echarts:l+"cdnjs.cloudflare.com/ajax/libs/echarts/5.6.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/11.6.0/mermaid.min.js",katex:l+"cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.22/katex.min.js",katexCSS:l+"cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.22/katex.min.css",renderMathInElement:l+"cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.22/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.7/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/6.1.2/vega.min.js",vegaLite:l+"cdnjs.cloudflare.com/ajax/libs/vega-lite/6.1.0/vega-lite.min.js",vegaEmbed:l+"cdnjs.cloudflare.com/ajax/libs/vega-embed/7.0.2/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@11/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@6/build/vega.min.js",vegaLite:l+"cdn.jsdelivr.net/npm/vega-lite@6/build/vega-lite.min.js",vegaEmbed:l+"cdn.jsdelivr.net/npm/vega-embed@7/build/vega-embed.min.js"}};function h(){return u}function f(t){if("object"==typeof t){const e=Object.keys(t)[0],n=t[e];if("string"==typeof n)return e+"-"+n}return t}function g(t,e,n,o){if(void 0!==n&&n||(n=h()),m.hasOwnProperty(n)){const i=m[n];let r="";if("object"==typeof e){const t=Object.keys(e)[0],n=e[t];i[t]&&"string"==typeof n&&n&&i[t][n]&&(r=i[t][n])}else i[e]&&(r=i[e]);r&&(o=t||r.substring(0,l.length)===l?r:"../dist/"===r.substring(0,8)?p+r:c+r)}return o}const y={setCDN:function(t,e,n,o){t in m&&(u=t),"string"==typeof e&&e&&(c=e),"string"==typeof n&&n&&(p=n),"string"==typeof o&&o&&("/"!==d.at(d.length-1)&&(o+="/"),d=o)},getCDN:h,getUrl:function(t){try{const e=new URL(t);if("dist:"===e.protocol)return t="../dist/"===(t=t.substring(e.protocol.length+2)).substring(0,8)?p+t:c+t;if("file:"===e.protocol&&d){return t=new URL(d).origin+"/"+t.substring(8)}}catch{if(d){const e="./";t.substring(0,e.length)===e&&(t=t.substring(e.length)),t=d+t}}return t},getSrc:g,loadScript:function(t,e){return new Promise((n,o)=>{t&&"undefined"!=typeof document||o("Args is invaild!"),void 0===e&&(e=""),(e=g(!1,t,e))||o(t+" script source invaild!");const i="script-"+f(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=f(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=g(!1,t,e)))return"";const n="css-"+f(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"===u?"":e},unloadStyleSheet:function(t){t=f(t);const e=document.getElementById("css-"+t.toLowerCase());if(e){(document.head||document.getElementsByTagName("head")[0]).removeChild(e)}}};const v={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.type="text/css",o.innerText=e,t.appendChild(o)}return!0},loadStylesheet:function(t,e){if(!t||"undefined"==typeof document)return!1;let n=null;if(e&&(n=document.getElementById(e)),!n){const n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("link");o.rel="stylesheet",o.href=t,e&&(o.id=e),n.appendChild(o)}return!0},loadScript:function(t,e,n){return new Promise((o,i)=>{if(!t||!e||"undefined"==typeof document)return i("Args is invaild!");let r=document.getElementById(t);if(r)return o(!0);n?"string"==typeof n&&(n=document.querySelector(n)):n=document.body,r=document.createElement("script"),r.id=t,r.type="text/javascript",r.text=e,n.appendChild(r),o(!0)})},removeAllStylesheet:function(t){if(!t)return;const e=document.head||document.getElementsByTagName("head")[0];e.querySelectorAll("link").forEach(n=>{n.id&&n.id.substring(0,t.length)===t&&e.removeChild(n)})},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")),i.width&&"string"!=typeof i.width&&(i.width=i.width+"px"),i.height&&"string"!=typeof i.height&&(i.height=i.height+"px")}let a=e.textContent.trim();n&&"function"==typeof n&&(a=n(a));const s=(e.classList.length>0?e.classList[0]:"")+(e.className&&r?" ":"")+r,u=t.toLowerCase()+"-"+Date.now()+"-"+Math.floor(1e4*Math.random());return e.id=u,{id:u,container:u+"-container",className:s,data:a,element:e,lang:i}},addCssLink:function(t,e,n){return t.cssLinks?Array.isArray(t.cssLinks)||(t.cssLinks=[t.cssLinks]):t.cssLinks=[],t.cssLinks.push({id:n,link:e}),t},addScript:function(t,e){return t.scripts?Array.isArray(t.scripts)||(t.scripts=[t.scripts]):t.scripts=[],t.scripts.push(e),t},addExtra:function(t,e){return t.extras?Array.isArray(t.extras)||(t.extras=[t.extras]):t.extras=[],t.extras.push(e),t},hashString:function(t){let e=0;for(let n=0;t.length>n;n++){const o=t.charCodeAt(n);e=Math.imul(31,e)+o|0}return e>>>0}},w="abc",x="ABCJSCSS";if("undefined"==typeof window)throw Error("The showdown abcjs extension can only be used in browser environment!");if(void 0===b)var b=window.ABCJS||void 0;function S(){return!!b}let j=!1;function E(){if(void 0===t)var t=window.ABCJS||void 0;function e(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))}}window.abcEnv={abcOptions:{add_classes:!0,responsive:"resize"},setTune(e,n,o){const i=e.id,r=e.data;if(!o)return void t.renderAbc(i,r,this.abcOptions);o.disable(!0);const a=t.renderAbc(i,r,this.abcOptions)[0];(new t.synth.CreateSynth).init({visualObj:a}).then(function(t){o.setTune(a,n).then(function(t){}).catch(function(t){})}).catch(function(t){})},load(n,o){let i;if(n){const r="#"+n;t.synth.supportsAudio()?(i=new t.synth.SynthController,i.load(r,new e(o.id),{displayLoop:!0,displayRestart:!0,displayPlay:!0,displayProgress:!0,displayWarp:!0})):document.querySelector(r).innerHTML="<div class='audio-error'>Audio is not supported in this browser.</div>"}this.setTune(o,!1,i)}}}function k(t,e){const n=function(){window.abcEnv.load(t,e)};return n.toString=function(){return`function(){\n const audio = '${t}';\n const render = ${JSON.stringify(e)};\n window.abcEnv.load(audio, render);\n }`},n}function A(t,e,n){if(S()){const o=n.id,i=n.className,r=n.container;let a="";n.lang&&(n.lang.width&&(a+=`width:${n.lang.width};`),n.lang.height&&(a+=`height:${n.lang.height};`));let s="";if(a?(s+=`<div id="${r}" class="${i}" style="${a}">`,s+=`<div id="${o}" style="width:100%;height:100%;display:inline-block"></div>`):(s+=`<div id="${r}" class="${i}">`,s+=`<div id="${o}"></div>`),!n.lang||!n.lang.audio){const e=n.data,i=n.element.ownerDocument;s+="</div>",n.element.parentNode.outerHTML=s;const r=i.getElementById(o);return b.renderAbc(r,e,{add_classes:!0,responsive:"resize"}),t(!0)}const u=n.cssLink,l=n.data,c=o+"-audio";s+=a?u?`<div id="${c}" style="width:100%;height:100%;display:inline-block" class="css-abc" data-css="${u}"></div>`:`<div id="${c}" style="width:100%;height:100%;display:inline-block"></div>`:u?`<div id="${c}" class="css-abc" data-css="${u}"></div>`:`<div id="${c}"></div>`,s+="</div>",n.element.parentNode.outerHTML=s;const p={id:r,code:k(c,{id:o,class:i,data:l}),host:"#"+r};return e.push(p),t(!0)}setTimeout(()=>{A(t,e,n)},10)}function L(t,e){return new Promise(n=>{let o=v.createElementMeta(w,t);if(!o)return n(!1);o.cssLink=y.getSrc(!0,x),A(n,e,o)})}function C(t,e){const n={outer:[{name:"ABCJS",src:y.getSrc(!1,"ABCJS","jsdelivr")}],id:"abcjs-ext",code:E,inner:[]};return e.push(n),function(){const t=S();if("undefined"!=typeof window){if(j)return t;t||(j=!0,y.loadStyleSheet(x),v.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;}"),y.loadScript("ABCJS").then(t=>{b=v.interopDefault(window[t])}))}}(),new Promise(e=>{const o=[];t.forEach(t=>{o.push(L(t,n.inner))}),Promise.all(o).then(()=>{e(!0)})})}function O(){return[{type:"output",filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll(`code.${w}.language-${w}`);return!!n.length&&(this.config={cssLink:y.getSrc(!0,x)},v.addCssLink(t,this.config.cssLink,"css-abc"),C(n,t.scripts).then(()=>t))}}]}function $(t,e,n,o,i){try{if(i){if(o>1){const t=n.parentNode;t&&"UL"===t.tagName&&t.classList.add("toc-multi")}const e=n.querySelector("div");if(e){e.classList.remove("toc-title"),e.classList.add("toc-multi-title");const t=e.querySelector("i");t&&(t.classList.remove("toc-chapter"),t.classList.add("toc-multi-chapter"),t.innerHTML='<svg class="icon" aria-hidden="true"><use xlink:href="#icon-expand"></use></svg>')}(n=n.appendChild(t.ownerDocument.createElement("ul"))).classList.add(o>1?"toc-level-"+o:"toc-main")}if(n=n.appendChild(t.ownerDocument.createElement("li")),e){const i=n.appendChild(t.ownerDocument.createElement("div"));i.classList.add("toc-title-"+o,"toc-title");const r=i.appendChild(t.ownerDocument.createElement("i"));r.classList.add("iconfont","toc-chapter"),r.innerHTML='<svg class="icon" aria-hidden="true"><use xlink:href="#icon-chapter-l"></use></svg>';const a=i.appendChild(t.ownerDocument.createElement("a"));a.appendChild(t.ownerDocument.createTextNode(e.textContent)),a.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,o,!0),n.preLevel++;n.toc=$(t,e,n.toc,o,!0)}else{for(;n.preLevel>o;)n.toc&&(n.toc=n.toc.parentNode),n.toc&&(n.toc=n.toc.parentNode),n.preLevel--;n.toc&&(n.toc=n.toc.parentNode),n.toc=$(t,e,n.toc,o,!1)}return n.parentNode&&N(t,e,n.parentNode,o),n}function q(){const t=document.querySelector("#total-showdown-toc");if(!t)return;const e=document.getElementById("divider");if(e){let r=0,a=0;function s(e){if(r>0){const n=e.clientX-r;if(0!=n){const e=a-n;5>e||e>document.documentElement.clientWidth-5||(t.style.width=e+"px")}}}function u(){document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",u),document.body.style.userSelect="",r=0}function l(e){r=e.clientX,a=t.clientWidth,document.body.style.userSelect="none",document.addEventListener("mousemove",s),document.addEventListener("mouseup",u)}e.addEventListener("mousedown",l)}const n=document.querySelector("#toc-fold-icon");n&&(n.onclick=t=>{const e=document.querySelectorAll(".total-toc ul"),o=document.querySelectorAll(".total-toc ul:not(.toc-main) .toc-multi-chapter use");if("toc-expand"===n.dataset.name)return e.forEach(t=>{t.classList.contains("toc-main")||t.classList.contains("toc-level-2")||t.classList.add("hidden")}),o.forEach(t=>{t.setAttributeNS("http://www.w3.org/1999/xlink","href","#icon-collapse")}),void(n.dataset.name="toc-fold");e.forEach(t=>{t.classList.remove("hidden")}),o.forEach(t=>{t.setAttributeNS("http://www.w3.org/1999/xlink","href","#icon-expand")}),n.dataset.name="toc-expand"});const o=document.querySelector("#toc-close-icon");o&&(o.onclick=t=>{const e=document.querySelector("#total-showdown-toc");e&&e.classList.add("hidden");const n=document.querySelector("#toc-switch-button");n&&n.classList.remove("hidden")});const i=document.querySelector("#toc-switch-button");i&&(i.onclick=t=>{t.currentTarget.classList.add("hidden");const e=document.querySelector("#total-showdown-toc");e&&e.classList.remove("hidden")});document.querySelectorAll(".total-toc .toc-multi-chapter").forEach(t=>{t.onclick=t=>{let e=t.currentTarget.parentNode;if(!e)return;if(e=e.parentNode,!e)return;const n=e.querySelectorAll("ul"),o=e.querySelectorAll(".toc-multi-chapter use"),i=t.currentTarget.querySelector("use");if(i){if("#icon-expand"===i.getAttributeNS("http://www.w3.org/1999/xlink","href"))return n.forEach(t=>{t.classList.add("hidden")}),void o.forEach(t=>{t.setAttributeNS("http://www.w3.org/1999/xlink","href","#icon-collapse")});n.forEach(t=>{t.classList.remove("hidden")}),o.forEach(t=>{t.setAttributeNS("http://www.w3.org/1999/xlink","href","#icon-expand")})}}})}function M(){return[{type:"output",config:{},filter:function(t){if("string"==typeof t){const e=(new DOMParser).parseFromString(t,"text/html"),n=void 0!==e.body?e.body:e;return function(t,e){let n=null,o=0,i=null,r=!1,a=!1,s=null;e.extraDocs=[],e.extraDocs.push('<div id="toc-svgs" class="hidden"><svg aria-hidden="true" style="position: absolute; width: 0px; height: 0px; overflow: hidden;"><symbol id="icon-chapter-s" viewBox="0 0 1024 1024"><path d="M725.108359 579.864261c11.519371-117.753568-94.714826-195.829303-165.110981-247.666471l-10.879406-7.679581-21.118846-15.359161c-40.317798-28.798427-81.915525-58.876784-95.994756-95.994756-15.999126-41.597728-13.439266-74.235945 7.67958-97.274686 26.878532-29.438392 90.235071-35.838042 120.313428-11.519371 26.238567 20.478881 26.878532 53.117098 24.958637 70.396154-2.55986 24.318672 14.719196 46.717448 39.037867 49.917274 24.318672 2.55986 46.717448-14.719196 49.917274-39.037868 7.039615-60.796679-14.079231-115.833673-58.236819-151.03175C547.838042-19.143018 432.644335-8.903578 373.127586 55.732892c-44.157588 47.997378-53.117098 115.193708-24.958637 189.429652 8.319546 23.038742 21.758811 42.877658 37.117973 60.156714-36.478007 34.558112-73.59598 78.075735-79.355665 138.872414C294.411886 561.94524 400.646083 640.020975 471.042237 691.858143l10.879406 7.679581 21.118846 15.359161c40.317798 28.798427 81.915525 58.876784 95.994757 95.994756 15.999126 41.597728 13.439266 74.235945-7.679581 97.274686-26.878532 29.438392-90.235071 35.838042-120.313428 11.519371-26.238567-20.478881-26.878532-53.117098-24.958636-70.396154 2.55986-24.318672-14.719196-46.717448-39.037868-49.917274s-46.717448 14.719196-49.917273 39.037868c-7.039615 60.796679 14.079231 115.833673 58.236819 151.03175 29.438392 23.038742 67.196329 34.558112 106.234197 34.558112 50.557238 0 102.394407-19.198951 135.672589-55.676959 44.157588-47.997378 53.117098-115.193708 24.958636-189.429652-8.319546-23.038742-21.758811-42.877658-37.117972-60.156714 36.478007-34.558112 74.235945-78.075735 79.99563-138.872414z m-201.588988 39.677833c-60.156714-44.157588-135.672589-99.834547-129.272939-166.390911 3.199825-33.278182 28.158462-60.156714 57.596854-87.675211 7.679581 5.759685 15.999126 11.519371 23.678707 17.279056 7.039615 5.11972 13.439266 9.599476 19.838916 14.719196l10.879406 8.319546c60.156714 44.157588 135.672589 99.834547 129.272938 166.39091-3.199825 33.278182-28.158462 60.156714-57.596854 87.675211-8.319546-5.759685-15.999126-11.519371-23.678706-17.279056-7.039615-5.11972-13.439266-9.599476-19.838917-14.719196l-10.879405-8.319545z"></path></symbol><symbol id="icon-chapter-l" viewBox="0 0 1024 1024"><path d="M791.272727 11.636364a81.454545 81.454545 0 0 1 81.175273 74.752L872.727273 93.090909v884.363636a34.909091 34.909091 0 0 1-51.060364 30.999273l-4.142545-2.606545-142.615273-101.888-142.615273 101.934545a34.909091 34.909091 0 0 1-30.813091 4.840727l-5.026909-2.048-4.747636-2.792727L349.090909 903.912727l-142.615273 101.934546a34.955636 34.955636 0 0 1-53.946181-18.944l-0.93091-4.654546L151.272727 977.454545V93.090909A81.454545 81.454545 0 0 1 226.024727 11.915636L232.727273 11.636364h558.545454z m-139.636363 605.090909H372.363636l-4.747636 0.325818A34.909091 34.909091 0 0 0 372.363636 686.545455h279.272728l4.747636-0.325819A34.909091 34.909091 0 0 0 651.636364 616.727273z m0-186.181818H372.363636l-4.747636 0.325818A34.909091 34.909091 0 0 0 372.363636 500.363636h279.272728l4.747636-0.325818A34.909091 34.909091 0 0 0 651.636364 430.545455z m0-186.181819H372.363636l-4.747636 0.325819A34.909091 34.909091 0 0 0 372.363636 314.181818h279.272728l4.747636-0.325818A34.909091 34.909091 0 0 0 651.636364 244.363636z"></path></symbol><symbol id="icon-toc" viewBox="0 0 1024 1024"><path d="M62.500473 512.163729l61.447491-40.958854 387.221112 202.039529L898.394281 471.204875l61.443397 40.958854-448.668603 244.728794L62.500473 512.163729zM62.500473 308.228013l448.668603-244.732887 448.668603 244.732887-448.668603 244.724701L62.500473 308.228013zM511.169075 877.18012l387.225205-202.035436 61.443397 40.958854L511.169075 960.836425 62.500473 716.104561l61.447491-40.958854L511.169075 877.18012z"></path></symbol><symbol id="icon-collapse" viewBox="0 0 1024 1024"><path d="M85.781832 219.399571h73.720856c20.35996 0 36.879928-16.359968 36.879928-36.559928s-16.519968-36.559929-36.879928-36.559929h-73.719856c-20.35996 0-36.860928 16.359968-36.860928 36.559929 0 20.199961 16.499968 36.559929 36.859928 36.559928zM50.462901 475.419071c0 20.199961 16.500968 36.579929 36.859928 36.579929h72.179859c20.35996 0 36.879928-16.379968 36.879928-36.579929s-16.519968-36.579929-36.879928-36.579928h-72.179859c-20.35996 0-36.859928 16.379968-36.859928 36.579928z m145.919715 292.577429c0-20.199961-16.519968-36.595929-36.879928-36.595929h-73.719856c-20.35996 0-36.860928 16.395968-36.860928 36.595929 0 20.180961 16.499968 36.562929 36.859928 36.562929h73.720856c20.35996 0 36.879928-16.381968 36.879928-36.562929z"></path><path d="M933.660176 38.839924l-73.718856-2.279995c0-20.198961-16.519968-36.559929-36.879928-36.559929h-661.998707c-20.35996 0-36.879928 16.359968-36.879928 36.559929v70.879861h36.879928s73.359857 6.840987 73.359857 73.140857c0 0 0.779998 73.279857-75.239853 73.279857l-34.999932 2.119996 0.759999 144.019719 34.399933-0.02s75.879852-0.02 75.879852 77.699848c0 0-7.057986 70.879862-76.179852 70.879862l-34.699932 0.019-0.619999 143.980718h36.740929s73.559856 2.279996 73.559856 75.437853c0 0-0.14 75.402853-76.179851 75.402853l-33.199935-2.279996-0.46 73.159857s42.239918 109.718786 106.759792 109.718786h705.018623s34.557933-6.877987 34.557932-34.298933V75.421853s-6.899987-36.580929-36.859928-36.580929zM306.9634 255.9795h479.238064v292.579429h-479.239064V255.9795zM897.939246 916.55821s1.159998 34.279933-37.999926 34.279933H233.243544s-38.019926-12.559975-38.019925-37.719926l627.838773-0.36c20.35996 0 36.879928-16.379968 36.879928-36.579928V69.719864l37.998926 12.559975v834.278371z"></path><path d="M694.042644 329.119357H399.14022c-10.19998 0-18.439964 8.199984-18.439964 18.319964 0 10.07998 8.239984 18.259964 18.439964 18.259965h294.901424c10.17898 0 18.418964-8.179984 18.418964-18.259965 0-10.11898-8.239984-18.319964-18.419964-18.319964z m0 109.719786H399.14022c-10.19998 0-18.439964 8.199984-18.439964 18.279964 0 10.11998 8.239984 18.299964 18.439964 18.299964h294.901424c10.17898 0 18.418964-8.179984 18.418964-18.299964 0-10.07998-8.239984-18.279964-18.419964-18.279964z"></path></symbol><symbol id="icon-chapter" viewBox="0 0 1024 1024"><path d="M832 128v768H256V128h576m64-64H192v896h704V64z" ></path><path d="M161.3 296.2v-0.2H320v-40H161.3c-35.5 0-64.3 28.7-64.3 64s28.8 64 64.3 64h90v-40h-90v-0.2c-13.3 0-24.1-10.7-24.1-23.8 0-13.1 10.8-23.8 24.1-23.8z m0 192v-0.2H320v-40H161.3c-35.5 0-64.3 28.7-64.3 64s28.8 64 64.3 64h90v-40h-90v-0.2c-13.3 0-24.1-10.7-24.1-23.8 0-13.1 10.8-23.8 24.1-23.8z m0 192v-0.2H320v-40H161.3c-35.5 0-64.3 28.7-64.3 64s28.8 64 64.3 64h90v-40h-90v-0.2c-13.3 0-24.1-10.7-24.1-23.8 0-13.1 10.8-23.8 24.1-23.8z" ></path><path d="M288 277a32 32 0 1 0 64 0 32 32 0 1 0-64 0zM288 469a32 32 0 1 0 64 0 32 32 0 1 0-64 0zM288 662a32 32 0 1 0 64 0 32 32 0 1 0-64 0zM384 256h385v40H384z m0 128h385v40H384z m0 128h385v40H384z m0 128h256v40H384z" ></path></symbol><symbol id="icon-expand" viewBox="0 0 1024 1024"><path d="M731.093333 128c82.346667 0 158.08 20.906667 218.88 56.32 6.4 3.626667 10.026667 10.88 10.026667 18.346667v667.306666c0 12.16-9.386667 20.906667-19.84 20.906667-2.986667 0-5.76-0.64-8.746667-2.133333-57.386667-29.226667-126.08-46.08-200.32-46.08s-141.866667 17.066667-199.04 45.653333c-2.986667 1.493333-5.973333 2.986667-8.96 4.693333-0.426667 0.213333-0.853333 0.64-1.493333 0.853334-5.973333 3.2-13.226667 3.2-19.2 0-3.413333-1.92-6.826667-3.626667-10.453333-5.546667-56.96-28.586667-125.44-45.653333-199.04-45.653333s-143.146667 16.853333-200.32 46.08c-2.773333 1.493333-5.76 2.133333-8.746667 2.133333-10.453333 0-19.84-8.746667-19.84-20.906667V202.453333c0-7.68 3.84-14.72 10.026667-18.346666C134.826667 148.693333 210.56 128 292.906667 128S451.2 149.333333 512 184.746667C572.8 149.333333 648.746667 128 731.093333 128zM701.866667 187.733333c-71.466667 0-137.386667 17.92-189.866667 47.786667-52.693333-29.866667-118.613333-47.786667-189.866667-47.786667s-136.96 17.493333-189.653333 47.36c-5.546667 3.2-8.746667 9.173333-8.746667 15.573334v563.626666c0 10.24 8.106667 17.493333 17.066667 17.493334 2.56 0 5.12-0.64 7.466667-1.92 49.706667-24.533333 109.44-38.826667 173.653333-38.826667s123.093333 14.293333 172.373333 38.4c3.2 1.493333 6.186667 2.986667 9.173334 4.693333 5.12 2.773333 11.52 2.773333 16.64 0 0.64-0.213333 0.853333-0.426667 1.493333-0.853333l7.68-3.84c49.493333-24.106667 108.8-38.4 172.373333-38.4s123.946667 14.293333 173.653334 38.826667c2.56 1.28 5.12 1.92 7.466666 1.92 8.96 0 17.066667-7.466667 17.066667-17.493334V250.666667c0-6.4-3.2-12.373333-8.746667-15.573334-52.693333-29.866667-118.186667-47.573333-189.653333-47.573333z" ></path><path d="M949.333333 771.84c-123.306667-71.68-260.266667-80.64-407.466666-26.666667V221.866667c0-16.426667-13.44-29.866667-29.866667-29.866667s-29.866667 13.44-29.866667 29.866667v529.066666c-120.533333-55.466667-253.226667-53.973333-395.093333 5.12-10.88 4.48-16 17.066667-11.52 27.946667 4.48 10.88 17.066667 16 27.946667 11.52 139.306667-58.026667 263.253333-57.173333 378.666666 2.773333v46.506667c0 16.426667 13.44 29.866667 29.866667 29.866667s29.866667-13.44 29.866667-29.866667v-53.973333c142.08-56.32 268.586667-50.56 386.133333 17.706666 3.413333 1.92 7.04 2.986667 10.666667 2.986667 7.253333 0 14.506667-3.84 18.56-10.666667a21.290667 21.290667 0 0 0-7.68-29.226666z"></path></symbol></svg></div>');const u=t.querySelectorAll("p,h1,h2,h3,h4,h5,h6");for(let l=0;u.length>l;l++){if(n=u[l],a||"h1"!=n.tagName.toLowerCase()||(a=!0),"[toc]"==n.textContent.trim().toLowerCase()){let u=t.ownerDocument.createElement("div");if(u.classList.add("showdown-toc"),!a){s=u,e.extraDocs.push('<div id="divider" class="divider"></div>');const o=t.ownerDocument.createElement("div");o.id="toc-switch-button",o.classList.add("toc-switch","hidden"),o.innerHTML='<svg class="icon" aria-hidden="true"><use xlink:href="#icon-chapter-l"></use></svg>',n.parentNode.insertBefore(o,n),u.id="total-showdown-toc",u.classList.add("total-toc"),u.innerHTML='<div class="toc-pin"><span class="toc-pin-text">目录</span><div class="toc-fold-wrap"><div id="toc-fold-icon" class="toc-fold toc-icon" data-name="toc-expand"><svg class="icon" aria-hidden="true"><use xlink:href="#icon-toc"></use></svg></div><div id="toc-close-icon" class="toc-close toc-icon"><svg class="icon" aria-hidden="true"><use xlink:href="#icon-chapter-s"></use></svg></div></div></div>'}let l=t.ownerDocument.createElement("div");l.className="toc-view",u.appendChild(l);let c={parentNode:null,toc:l,headingLevel:o,preLevel:o,standalone:!1};if(i)if(o>i.headingLevel)c.parentNode=i;else{let t=i;for(;t.headingLevel>o;)t=t.parentNode;t&&(c.parentNode=o===t.headingLevel?t.parentNode:t)}i=c,r=!0,i.standalone=!a,a?n.parentNode.replaceChild(u,n):n.parentNode.removeChild(n);continue}if(n.tagName)switch(n.tagName){case"H1":case"H2":case"H3":case"H4":case"H5":case"H6":o=parseInt(n.tagName.substr(1)),i&&(i=N(t,n,i,o))}}for(s&&e.extraDocs.push(s.outerHTML);i;){let t=i;i=t.parentNode,t.parentNode=null,t.toc=null,t.headingLevel=null,t.preLevel=null}return r}(n,this.config)?n.innerHTML:t}if("object"!=typeof t||!t||!this.config.extraDocs||!Array.isArray(this.config.extraDocs))return!1;const e=t;this.config.extraDocs.forEach(t=>{v.addExtra(e,t)});return v.addScript(e,{inner:[{id:"showdown-toc",code:q,host:"#total-showdown-toc"}]}),e}}]}function D(){return[{type:"output",filter:function(t){const e="css-ex-";v.removeAllStylesheet(e);const n=t.wrapper;if(!n)return!1;const o=n.querySelectorAll("a");return!!o.length&&(o.forEach(n=>{try{if(n.href&&"string"==typeof n.href&&"css:"===n.href.substr(0,4)){let o=n.href.substr(4).trim();const i=""+v.hashString(o);v.addCssLink(t,o,e+i),n.parentNode&&"P"===n.parentNode.tagName&&n.parentNode.parentNode?n.parentNode.parentNode.removeChild(n.parentNode):n.parentNode.removeChild(n),o=y.getUrl(o),v.loadStylesheet(o,e+i)}}catch{}}),t)}}]}if("undefined"==typeof window)throw Error("The showdown viz extension can only be used in browser environment!");if(void 0===T)var T=window.Viz||void 0;const P=["circo","dot","neato","osage","twopi"];function H(){return!(void 0===T||!T||void 0===T.instance)}let z=!1;function B(t,e){if(H()){const n=e.id,o=e.className,i=e.data,r=e.element,a=e.element.dataset.lang;let s="dot";if(a){const t=JSON.parse(a);t&&t.engine&&-1!=P.indexOf(t.engine)&&(s=t.engine)}return void T.instance().then(e=>{const a=e.renderString(i,{format:"svg",engine:s});r.parentNode.outerHTML=`<div id="${n}" class="${o}">${a}</div>`,t(!0)})}setTimeout(()=>{B(t,e)},10)}function _(t){return new Promise(e=>{const n=v.createElementMeta("viz",t);if(!n)return e(!1);B(e,n)})}function F(t){return function(){const t=H();if("undefined"!=typeof window){if(z)return t;t||(z=!0,y.loadScript("Viz").then(t=>{T=v.interopDefault(window[t])}))}}(),new Promise(e=>{const n=[];t.forEach(t=>{n.push(_(t))}),Promise.all(n).then(()=>{e(!0)})})}function I(){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 R="vega";if("undefined"==typeof window)throw Error("The showdown vega extension can only be used in browser environment!");if(void 0===J)var J=window.vegaEmbed||void 0;function V(){return!(void 0===J||!J)}let W=!1;function U(t,e,n,o){const i=v.createElementMeta(R,t);if(!i)return Promise.resolve(!1);const r=i.container,a={id:r,code:((t,e)=>{const n=()=>{const n=eval;let o=document.getElementById(t.id);if(o)if(t.lang&&t.lang.type&&"string"==typeof t.lang.type&&"javascript"==t.lang.type.toLowerCase()){const i=n(`(function(){${t.data}; return option;})();`);J(o,i,e)}else{const n=JSON.parse(t.data);J(o,n,e)}};return n.toString=()=>t.lang&&t.lang.type&&"string"==typeof t.lang.type&&"javascript"==t.lang.type.toLowerCase()?`function(){\n let el = document.getElementById('${t.id}');\n if (el) {\n ${t.data};\n const config = ${JSON.stringify(e)};\n vegaEmbed(el, option, config);\n }\n }`:`function(){\n let el = document.getElementById('${t.id}');\n if (el) {\n const option = ${t.data};\n const config = ${JSON.stringify(e)};\n vegaEmbed(el, option, config);\n }\n }`,n})(i,e),host:"#"+r};return n.push(a),new Promise(t=>{X(t,i)})}function G(t,e,n,o){const i={outer:[{name:R,src:y.getSrc(!1,R,"jsdelivr")},{name:"vegaLite",src:y.getSrc(!1,"vegaLite","jsdelivr")},{name:"vegaEmbed",src:y.getSrc(!1,"vegaEmbed","jsdelivr")}],inner:[]};return n.push(i),function(){const t=V();if("undefined"!=typeof window){if(W)return t;t||(W=!0,y.loadScript(R).then(()=>y.loadScript("vegaLite")).then(()=>y.loadScript("vegaEmbed")).then(t=>{J=v.interopDefault(window[t])}))}}(),new Promise(n=>{const r=[];t.forEach(t=>{r.push(U(t,o,i.inner))}),e.forEach(t=>{r.push(U(t,o,i.inner))}),Promise.all(r).then(()=>{n(!0)})})}function X(t,e){if(V()){return e.element.parentNode.outerHTML=`<div id="${e.container}" class="${e.className}"><div id="${e.id}"></div></div>`,t(!0)}setTimeout(()=>{X(t,e)},10)}function K(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)&&G(n,o,t.scripts,this.config).then(()=>t)}}]}function Z(){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 Q=".",Y={input:'"',tag:"mtext",output:"mbox",tex:null,ttype:10},tt=[{input:"alpha",tag:"mi",output:"α",tex:null,ttype:0},{input:"beta",tag:"mi",output:"β",tex:null,ttype:0},{input:"chi",tag:"mi",output:"χ",tex:null,ttype:0},{input:"delta",tag:"mi",output:"δ",tex:null,ttype:0},{input:"Delta",tag:"mo",output:"Δ",tex:null,ttype:0},{input:"epsi",tag:"mi",output:"ε",tex:"epsilon",ttype:0},{input:"varepsilon",tag:"mi",output:"ɛ",tex:null,ttype:0},{input:"eta",tag:"mi",output:"η",tex:null,ttype:0},{input:"gamma",tag:"mi",output:"γ",tex:null,ttype:0},{input:"Gamma",tag:"mo",output:"Γ",tex:null,ttype:0},{input:"iota",tag:"mi",output:"ι",tex:null,ttype:0},{input:"kappa",tag:"mi",output:"κ",tex:null,ttype:0},{input:"lambda",tag:"mi",output:"λ",tex:null,ttype:0},{input:"Lambda",tag:"mo",output:"Λ",tex:null,ttype:0},{input:"lamda",tag:"mi",output:"lambda",tex:null,ttype:8},{input:"Lamda",tag:"mi",output:"Lambda",tex:null,ttype:8},{input:"mu",tag:"mi",output:"μ",tex:null,ttype:0},{input:"nu",tag:"mi",output:"ν",tex:null,ttype:0},{input:"omega",tag:"mi",output:"ω",tex:null,ttype:0},{input:"Omega",tag:"mo",output:"Ω",tex:null,ttype:0},{input:"phi",tag:"mi",output:"φ",tex:null,ttype:0},{input:"varphi",tag:"mi",output:"ϕ",tex:null,ttype:0},{input:"Phi",tag:"mo",output:"Φ",tex:null,ttype:0},{input:"pi",tag:"mi",output:"π",tex:null,ttype:0},{input:"Pi",tag:"mo",output:"Π",tex:null,ttype:0},{input:"psi",tag:"mi",output:"ψ",tex:null,ttype:0},{input:"Psi",tag:"mi",output:"Ψ",tex:null,ttype:0},{input:"rho",tag:"mi",output:"ρ",tex:null,ttype:0},{input:"sigma",tag:"mi",output:"σ",tex:null,ttype:0},{input:"Sigma",tag:"mo",output:"Σ",tex:null,ttype:0},{input:"tau",tag:"mi",output:"τ",tex:null,ttype:0},{input:"theta",tag:"mi",output:"θ",tex:null,ttype:0},{input:"vartheta",tag:"mi",output:"ϑ",tex:null,ttype:0},{input:"Theta",tag:"mo",output:"Θ",tex:null,ttype:0},{input:"upsilon",tag:"mi",output:"υ",tex:null,ttype:0},{input:"xi",tag:"mi",output:"ξ",tex:null,ttype:0},{input:"Xi",tag:"mo",output:"Ξ",tex:null,ttype:0},{input:"zeta",tag:"mi",output:"ζ",tex:null,ttype:0},{input:"*",tag:"mo",output:"⋅",tex:"cdot",ttype:0},{input:"**",tag:"mo",output:"∗",tex:"ast",ttype:0},{input:"***",tag:"mo",output:"⋆",tex:"star",ttype:0},{input:"//",tag:"mo",output:"/",tex:"/",ttype:0,val:!0,notexcopy:!0},{input:"\\\\",tag:"mo",output:"\\",tex:"backslash",ttype:0},{input:"setminus",tag:"mo",output:"\\",tex:null,ttype:0},{input:"xx",tag:"mo",output:"×",tex:"times",ttype:0},{input:"|><",tag:"mo",output:"⋉",tex:"ltimes",ttype:0},{input:"><|",tag:"mo",output:"⋊",tex:"rtimes",ttype:0},{input:"|><|",tag:"mo",output:"⋈",tex:"bowtie",ttype:0},{input:"-:",tag:"mo",output:"÷",tex:"div",ttype:0},{input:"divide",tag:"mo",output:"-:",tex:null,ttype:8},{input:"@",tag:"mo",output:"∘",tex:"circ",ttype:0},{input:"o+",tag:"mo",output:"⊕",tex:"oplus",ttype:0},{input:"ox",tag:"mo",output:"⊗",tex:"otimes",ttype:0},{input:"o.",tag:"mo",output:"⊙",tex:"odot",ttype:0},{input:"sum",tag:"mo",output:"∑",tex:null,ttype:7},{input:"prod",tag:"mo",output:"∏",tex:null,ttype:7},{input:"^^",tag:"mo",output:"∧",tex:"wedge",ttype:0},{input:"^^^",tag:"mo",output:"⋀",tex:"bigwedge",ttype:7},{input:"vv",tag:"mo",output:"∨",tex:"vee",ttype:0},{input:"vvv",tag:"mo",output:"⋁",tex:"bigvee",ttype:7},{input:"nn",tag:"mo",output:"∩",tex:"cap",ttype:0},{input:"nnn",tag:"mo",output:"⋂",tex:"bigcap",ttype:7},{input:"uu",tag:"mo",output:"∪",tex:"cup",ttype:0},{input:"uuu",tag:"mo",output:"⋃",tex:"bigcup",ttype:7},{input:"overset",tag:"mover",output:"stackrel",tex:null,ttype:2},{input:"underset",tag:"munder",output:"stackrel",tex:null,ttype:2},{input:"!=",tag:"mo",output:"≠",tex:"ne",ttype:0},{input:":=",tag:"mo",output:":=",tex:null,ttype:0},{input:"lt",tag:"mo",output:"<",tex:null,ttype:0},{input:"gt",tag:"mo",output:">",tex:null,ttype:0},{input:"<=",tag:"mo",output:"≤",tex:"le",ttype:0},{input:"lt=",tag:"mo",output:"≤",tex:"leq",ttype:0},{input:"gt=",tag:"mo",output:"≥",tex:"geq",ttype:0},{input:">=",tag:"mo",output:"≥",tex:"ge",ttype:0},{input:"-<",tag:"mo",output:"≺",tex:"prec",ttype:0},{input:"-lt",tag:"mo",output:"≺",tex:null,ttype:0},{input:">-",tag:"mo",output:"≻",tex:"succ",ttype:0},{input:"-<=",tag:"mo",output:"⪯",tex:"preceq",ttype:0},{input:">-=",tag:"mo",output:"⪰",tex:"succeq",ttype:0},{input:"in",tag:"mo",output:"∈",tex:null,ttype:0},{input:"!in",tag:"mo",output:"∉",tex:"notin",ttype:0},{input:"sub",tag:"mo",output:"⊂",tex:"subset",ttype:0},{input:"sup",tag:"mo",output:"⊃",tex:"supset",ttype:0},{input:"sube",tag:"mo",output:"⊆",tex:"subseteq",ttype:0},{input:"supe",tag:"mo",output:"⊇",tex:"supseteq",ttype:0},{input:"-=",tag:"mo",output:"≡",tex:"equiv",ttype:0},{input:"~=",tag:"mo",output:"≅",tex:"stackrel{\\sim}{=}",notexcopy:!0,ttype:0},{input:"cong",tag:"mo",output:"~=",tex:null,ttype:8},{input:"~~",tag:"mo",output:"≈",tex:"approx",ttype:0},{input:"prop",tag:"mo",output:"∝",tex:"propto",ttype:0},{input:"and",tag:"mtext",output:"and",tex:null,ttype:6},{input:"or",tag:"mtext",output:"or",tex:null,ttype:6},{input:"not",tag:"mo",output:"¬",tex:"neg",ttype:0},{input:"=>",tag:"mo",output:"⇒",tex:"Rightarrow",ttype:0},{input:"implies",tag:"mo",output:"=>",tex:null,ttype:8},{input:"if",tag:"mo",output:"if",tex:null,ttype:6},{input:"<=>",tag:"mo",output:"⇔",tex:"Leftrightarrow",ttype:0},{input:"iff",tag:"mo",output:"<=>",tex:null,ttype:8},{input:"AA",tag:"mo",output:"∀",tex:"forall",ttype:0},{input:"EE",tag:"mo",output:"∃",tex:"exists",ttype:0},{input:"_|_",tag:"mo",output:"⊥",tex:"bot",ttype:0},{input:"TT",tag:"mo",output:"⊤",tex:"top",ttype:0},{input:"|--",tag:"mo",output:"⊢",tex:"vdash",ttype:0},{input:"|==",tag:"mo",output:"⊨",tex:"models",ttype:0},{input:"(",tag:"mo",output:"(",tex:null,ttype:4,val:!0},{input:")",tag:"mo",output:")",tex:null,ttype:5,val:!0},{input:"[",tag:"mo",output:"[",tex:null,ttype:4,val:!0},{input:"]",tag:"mo",output:"]",tex:null,ttype:5,val:!0},{input:"left(",tag:"mo",output:"(",tex:"(",notexcopy:!0,ttype:4,val:!0},{input:"right)",tag:"mo",output:")",tex:")",notexcopy:!0,ttype:5,val:!0},{input:"left[",tag:"mo",output:"[",tex:"[",notexcopy:!0,ttype:4,val:!0},{input:"right]",tag:"mo",output:"]",tex:"]",notexcopy:!0,ttype:5,val:!0},{input:"{",tag:"mo",output:"{",tex:"lbrace",ttype:4},{input:"}",tag:"mo",output:"}",tex:"rbrace",ttype:5},{input:"|",tag:"mo",output:"|",tex:null,ttype:9,val:!0},{input:"|:",tag:"mo",output:"|",tex:"|",ttype:4,notexcopy:!0,val:!0},{input:":|",tag:"mo",output:"|",tex:"|",ttype:5,notexcopy:!0,val:!0},{input:":|:",tag:"mo",output:"|",tex:"|",ttype:0,notexcopy:!0,val:!0},{input:"(:",tag:"mo",output:"〈",tex:"langle",ttype:4},{input:":)",tag:"mo",output:"〉",tex:"rangle",ttype:5},{input:"<<",tag:"mo",output:"〈",tex:"langle",ttype:4},{input:">>",tag:"mo",output:"〉",tex:"rangle",ttype:5},{input:"{:",tag:"mo",output:"{:",tex:null,ttype:4,invisible:!0},{input:":}",tag:"mo",output:":}",tex:null,ttype:5,invisible:!0},{input:"int",tag:"mo",output:"∫",tex:null,ttype:0},{input:"dx",tag:"mi",output:"{:d x:}",tex:null,ttype:8},{input:"dy",tag:"mi",output:"{:d y:}",tex:null,ttype:8},{input:"dz",tag:"mi",output:"{:d z:}",tex:null,ttype:8},{input:"dt",tag:"mi",output:"{:d t:}",tex:null,ttype:8},{input:"oint",tag:"mo",output:"∮",tex:null,ttype:0},{input:"del",tag:"mo",output:"∂",tex:"partial",ttype:0},{input:"grad",tag:"mo",output:"∇",tex:"nabla",ttype:0},{input:"+-",tag:"mo",output:"±",tex:"pm",ttype:0},{input:"O/",tag:"mo",output:"∅",tex:"emptyset",ttype:0},{input:"oo",tag:"mo",output:"∞",tex:"infty",ttype:0},{input:"aleph",tag:"mo",output:"ℵ",tex:null,ttype:0},{input:"...",tag:"mo",output:"...",tex:"ldots",ttype:0},{input:":.",tag:"mo",output:"∴",tex:"therefore",ttype:0},{input:":'",tag:"mo",output:"∵",tex:"because",ttype:0},{input:"/_",tag:"mo",output:"∠",tex:"angle",ttype:0},{input:"/_\\",tag:"mo",output:"△",tex:"triangle",ttype:0},{input:"\\ ",tag:"mo",output:" ",tex:null,ttype:0,val:!0},{input:"frown",tag:"mo",output:"⌢",tex:null,ttype:0},{input:"%",tag:"mo",output:"%",tex:"%",ttype:0,notexcopy:!0},{input:"quad",tag:"mo",output:" ",tex:null,ttype:0},{input:"qquad",tag:"mo",output:" ",tex:null,ttype:0},{input:"cdots",tag:"mo",output:"⋯",tex:null,ttype:0},{input:"vdots",tag:"mo",output:"⋮",tex:null,ttype:0},{input:"ddots",tag:"mo",output:"⋱",tex:null,ttype:0},{input:"diamond",tag:"mo",output:"⋄",tex:null,ttype:0},{input:"square",tag:"mo",output:"□",tex:"boxempty",ttype:0},{input:"|__",tag:"mo",output:"⌊",tex:"lfloor",ttype:0},{input:"__|",tag:"mo",output:"⌋",tex:"rfloor",ttype:0},{input:"|~",tag:"mo",output:"⌈",tex:"lceil",ttype:0},{input:"lceiling",tag:"mo",output:"|~",tex:null,ttype:8},{input:"~|",tag:"mo",output:"⌉",tex:"rceil",ttype:0},{input:"rceiling",tag:"mo",output:"~|",tex:null,ttype:8},{input:"CC",tag:"mo",output:"ℂ",tex:"mathbb{C}",ttype:0,notexcopy:!0},{input:"NN",tag:"mo",output:"ℕ",tex:"mathbb{N}",ttype:0,notexcopy:!0},{input:"QQ",tag:"mo",output:"ℚ",tex:"mathbb{Q}",ttype:0,notexcopy:!0},{input:"RR",tag:"mo",output:"ℝ",tex:"mathbb{R}",ttype:0,notexcopy:!0},{input:"ZZ",tag:"mo",output:"ℤ",tex:"mathbb{Z}",ttype:0,notexcopy:!0},{input:"f",tag:"mi",output:"f",tex:null,ttype:1,func:!0,val:!0},{input:"g",tag:"mi",output:"g",tex:null,ttype:1,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:7},{input:"Lim",tag:"mo",output:"Lim",tex:null,ttype:7},{input:"sin",tag:"mo",output:"sin",tex:null,ttype:1,func:!0},{input:"cos",tag:"mo",output:"cos",tex:null,ttype:1,func:!0},{input:"tan",tag:"mo",output:"tan",tex:null,ttype:1,func:!0},{input:"arcsin",tag:"mo",output:"arcsin",tex:null,ttype:1,func:!0},{input:"arccos",tag:"mo",output:"arccos",tex:null,ttype:1,func:!0},{input:"arctan",tag:"mo",output:"arctan",tex:null,ttype:1,func:!0},{input:"sinh",tag:"mo",output:"sinh",tex:null,ttype:1,func:!0},{input:"cosh",tag:"mo",output:"cosh",tex:null,ttype:1,func:!0},{input:"tanh",tag:"mo",output:"tanh",tex:null,ttype:1,func:!0},{input:"cot",tag:"mo",output:"cot",tex:null,ttype:1,func:!0},{input:"coth",tag:"mo",output:"coth",tex:null,ttype:1,func:!0},{input:"sech",tag:"mo",output:"sech",tex:null,ttype:1,func:!0},{input:"csch",tag:"mo",output:"csch",tex:null,ttype:1,func:!0},{input:"sec",tag:"mo",output:"sec",tex:null,ttype:1,func:!0},{input:"csc",tag:"mo",output:"csc",tex:null,ttype:1,func:!0},{input:"log",tag:"mo",output:"log",tex:null,ttype:1,func:!0},{input:"ln",tag:"mo",output:"ln",tex:null,ttype:1,func:!0},{input:"abs",tag:"mo",output:"abs",tex:null,ttype:1,notexcopy:!0,rewriteleftright:["|","|"]},{input:"norm",tag:"mo",output:"norm",tex:null,ttype:1,notexcopy:!0,rewriteleftright:["\\|","\\|"]},{input:"floor",tag:"mo",output:"floor",tex:null,ttype:1,notexcopy:!0,rewriteleftright:["\\lfloor","\\rfloor"]},{input:"ceil",tag:"mo",output:"ceil",tex:null,ttype:1,notexcopy:!0,rewriteleftright:["\\lceil","\\rceil"]},{input:"Sin",tag:"mo",output:"Sin",tex:null,ttype:1,func:!0},{input:"Cos",tag:"mo",output:"Cos",tex:null,ttype:1,func:!0},{input:"Tan",tag:"mo",output:"Tan",tex:null,ttype:1,func:!0},{input:"Arcsin",tag:"mo",output:"Arcsin",tex:null,ttype:1,func:!0},{input:"Arccos",tag:"mo",output:"Arccos",tex:null,ttype:1,func:!0},{input:"Arctan",tag:"mo",output:"Arctan",tex:null,ttype:1,func:!0},{input:"Sinh",tag:"mo",output:"Sinh",tex:null,ttype:1,func:!0},{input:"Cosh",tag:"mo",output:"Cosh",tex:null,ttype:1,func:!0},{input:"Tanh",tag:"mo",output:"Tanh",tex:null,ttype:1,func:!0},{input:"Cot",tag:"mo",output:"Cot",tex:null,ttype:1,func:!0},{input:"Sec",tag:"mo",output:"Sec",tex:null,ttype:1,func:!0},{input:"Csc",tag:"mo",output:"Csc",tex:null,ttype:1,func:!0},{input:"Log",tag:"mo",output:"Log",tex:null,ttype:1,func:!0},{input:"Ln",tag:"mo",output:"Ln",tex:null,ttype:1,func:!0},{input:"Abs",tag:"mo",output:"abs",tex:null,ttype:1,notexcopy:!0,rewriteleftright:["|","|"]},{input:"det",tag:"mo",output:"det",tex:null,ttype:1,func:!0},{input:"exp",tag:"mo",output:"exp",tex:null,ttype:1,func:!0},{input:"dim",tag:"mo",output:"dim",tex:null,ttype:0},{input:"mod",tag:"mo",output:"mod",tex:"text{mod}",ttype:0,notexcopy:!0},{input:"gcd",tag:"mo",output:"gcd",tex:null,ttype:1,func:!0},{input:"lcm",tag:"mo",output:"lcm",tex:"text{lcm}",ttype:1,func:!0,notexcopy:!0},{input:"lub",tag:"mo",output:"lub",tex:null,ttype:0},{input:"glb",tag:"mo",output:"glb",tex:null,ttype:0},{input:"min",tag:"mo",output:"min",tex:null,ttype:7},{input:"max",tag:"mo",output:"max",tex:null,ttype:7},{input:"uarr",tag:"mo",output:"↑",tex:"uparrow",ttype:0},{input:"darr",tag:"mo",output:"↓",tex:"downarrow",ttype:0},{input:"rarr",tag:"mo",output:"→",tex:"rightarrow",ttype:0},{input:"->",tag:"mo",output:"→",tex:"to",ttype:0},{input:">->",tag:"mo",output:"↣",tex:"rightarrowtail",ttype:0},{input:"->>",tag:"mo",output:"↠",tex:"twoheadrightarrow",ttype:0},{input:">->>",tag:"mo",output:"⤖",tex:"twoheadrightarrowtail",ttype:0},{input:"|->",tag:"mo",output:"↦",tex:"mapsto",ttype:0},{input:"larr",tag:"mo",output:"←",tex:"leftarrow",ttype:0},{input:"harr",tag:"mo",output:"↔",tex:"leftrightarrow",ttype:0},{input:"rArr",tag:"mo",output:"⇒",tex:"Rightarrow",ttype:0},{input:"lArr",tag:"mo",output:"⇐",tex:"Leftarrow",ttype:0},{input:"hArr",tag:"mo",output:"⇔",tex:"Leftrightarrow",ttype:0},{input:"sqrt",tag:"msqrt",output:"sqrt",tex:null,ttype:1},{input:"root",tag:"mroot",output:"root",tex:null,ttype:2},{input:"frac",tag:"mfrac",output:"/",tex:null,ttype:2},{input:"/",tag:"mfrac",output:"/",tex:null,ttype:3},{input:"stackrel",tag:"mover",output:"stackrel",tex:null,ttype:2},{input:"_",tag:"msub",output:"_",tex:null,ttype:3},{input:"^",tag:"msup",output:"^",tex:null,ttype:3},{input:"cancel",tag:"menclose",output:"cancel",tex:null,ttype:1},{input:"Sqrt",tag:"msqrt",output:"sqrt",tex:null,ttype:1},{input:"hat",tag:"mover",output:"^",tex:null,ttype:1,acc:!0},{input:"bar",tag:"mover",output:"¯",tex:"overline",ttype:1,acc:!0},{input:"vec",tag:"mover",output:"→",tex:null,ttype:1,acc:!0},{input:"tilde",tag:"mover",output:"~",tex:null,ttype:1,acc:!0},{input:"dot",tag:"mover",output:".",tex:null,ttype:1,acc:!0},{input:"ddot",tag:"mover",output:"..",tex:null,ttype:1,acc:!0},{input:"overarc",tag:"mover",output:"⏜",tex:"stackrel{\\frown}",notexcopy:!0,ttype:1,acc:!0},{input:"overparen",tag:"mover",output:"⏜",tex:"stackrel{\\frown}",notexcopy:!0,ttype:1,acc:!0},{input:"ul",tag:"munder",output:"̲",tex:"underline",ttype:1,acc:!0},{input:"ubrace",tag:"munder",output:"⏟",tex:"underbrace",ttype:1,acc:!0},{input:"obrace",tag:"mover",output:"⏞",tex:"overbrace",ttype:1,acc:!0},{input:"text",tag:"mtext",output:"text",tex:null,ttype:10},{input:"mbox",tag:"mtext",output:"mbox",tex:null,ttype:10},Y,{input:"color",tag:"mstyle",ttype:2},{input:"bb",tag:"mstyle",atname:"mathvariant",atval:"bold",output:"bb",tex:"mathbf",ttype:1,notexcopy:!0},{input:"mathbf",tag:"mstyle",atname:"mathvariant",atval:"bold",output:"mathbf",tex:null,ttype:1},{input:"sf",tag:"mstyle",atname:"mathvariant",atval:"sans-serif",output:"sf",tex:"mathsf",ttype:1,notexcopy:!0},{input:"mathsf",tag:"mstyle",atname:"mathvariant",atval:"sans-serif",output:"mathsf",tex:null,ttype:1},{input:"bbb",tag:"mstyle",atname:"mathvariant",atval:"double-struck",output:"bbb",tex:"mathbb",ttype:1,notexcopy:!0},{input:"mathbb",tag:"mstyle",atname:"mathvariant",atval:"double-struck",output:"mathbb",tex:null,ttype:1},{input:"cc",tag:"mstyle",atname:"mathvariant",atval:"script",output:"cc",tex:"mathcal",ttype:1,notexcopy:!0},{input:"mathcal",tag:"mstyle",atname:"mathvariant",atval:"script",output:"mathcal",tex:null,ttype:1},{input:"tt",tag:"mstyle",atname:"mathvariant",atval:"monospace",output:"tt",tex:"mathtt",ttype:1,notexcopy:!0},{input:"mathtt",tag:"mstyle",atname:"mathvariant",atval:"monospace",output:"mathtt",tex:null,ttype:1},{input:"fr",tag:"mstyle",atname:"mathvariant",atval:"fraktur",output:"fr",tex:"mathfrak",ttype:1,notexcopy:!0},{input:"mathfrak",tag:"mstyle",atname:"mathvariant",atval:"fraktur",output:"mathfrak",tex:null,ttype:1}];function et(t,e){return t.input>e.input?1:-1}var nt,ot,it,rt=[];function at(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 st(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 ut(t){for(var e,n,o,i=0,r="",a=!0,s=1;t.length>=s&&a;s++)n=t.slice(0,s),i=st(rt,n,i),rt.length>i&&t.slice(0,rt[i].length)==rt[i]&&(e=i,s=(r=rt[i]).length),a=rt.length>i&&t.slice(0,rt[i].length)>=rt[i];if(ot=it,""!=r)return it=tt[e].ttype,tt[e];it=0,i=1,n=t.slice(0,1);for(var u=!0;n>="0"&&"9">=n&&t.length>=i;)n=t.slice(i,i+1),i++;if(n==Q&&(n=t.slice(i,i+1))>="0"&&"9">=n)for(u=!1,i++;n>="0"&&"9">=n&&t.length>=i;)n=t.slice(i,i+1),i++;return u&&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&&3==ot?(it=3,{input:n,tag:o,output:n,ttype:1,func:!0,val:!0}):{input:n,tag:o,output:n,ttype:0,val:!0}}function lt(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 ct(t){var e;return e="boolean"==typeof t.val&&t.val?"":"\\",null==t.tex?e+t.input:e+t.tex}function pt(t){var e,n,o,i,r="";if(null==(e=ut(t=at(t,0)))||5==e.ttype&&nt>0)return[null,t];switch(8==e.ttype&&(e=ut(t=e.output+at(t,e.input.length))),e.ttype){case 7:case 0:t=at(t,e.input.length);var a=ct(e);return"\\"==a.charAt(0)||"mo"==e.tag?[a,t]:["{"+a+"}",t];case 4:nt++,o=mt(t=at(t,e.input.length),!0),nt--;var s=0;return"\\right"==o[0].substr(0,6)&&(")"==(l=o[0].charAt(6))||"]"==l||"}"==l?s=6:"."==l?s=7:"\\rbrace"==(l=o[0].substr(6,7))&&(s=13)),s>0?(o[0]=o[0].substr(s),n="boolean"==typeof e.invisible&&e.invisible?"{"+o[0]+"}":"{"+ct(e)+o[0]+"}"):n="boolean"==typeof e.invisible&&e.invisible?"{\\left."+o[0]+"}":"{\\left"+ct(e)+o[0]+"}",[n,o[1]];case 10:return e!=Y&&(t=at(t,e.input.length)),-1==(i="{"==t.charAt(0)?t.indexOf("}"):"("==t.charAt(0)?t.indexOf(")"):"["==t.charAt(0)?t.indexOf("]"):e==Y?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=at(t,i+1)];case 1:return null==(o=pt(t=at(t,e.input.length)))[0]?["{"+ct(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?["{"+ct(e)+"}",t]:[n="{"+ct(e)+"{"+o[0]+"}}",o[1]]:(o[0]=lt(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?[ct(e)+"{"+o[0]+"}",o[1]]:["{"+ct(e)+"{"+o[0]+"}}",o[1]]);case 2:if(null==(o=pt(t=at(t,e.input.length)))[0])return["{"+ct(e)+"}",t];o[0]=lt(o[0]);var u=pt(o[1]);return null==u[0]?["{"+ct(e)+"}",t]:(u[0]=lt(u[0]),[r="color"==e.input?"{\\color{"+o[0].replace(/[\{\}]/g,"")+"}"+u[0]+"}":"root"==e.input?"{\\sqrt["+o[0]+"]{"+u[0]+"}}":"{"+ct(e)+"{"+o[0]+"}{"+u[0]+"}}",u[1]]);case 3:return t=at(t,e.input.length),[e.output,t];case 6:return t=at(t,e.input.length),["{\\quad\\text{"+e.input+"}\\quad}",t];case 9:nt++,o=mt(t=at(t,e.input.length),!1),nt--;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=at(t,e.input.length),["{"+ct(e)+"}",t]}}function dt(t){var e,n,o,i,r;if(n=ut(t=at(t,0)),i=(r=pt(t))[0],3==(e=ut(t=r[1])).ttype&&"/"!=e.input){if((r=pt(t=at(t,e.input.length)))[0]=null==r[0]?"{}":lt(r[0]),t=r[1],"_"==e.input)if("^"==(o=ut(t)).input){var a=pt(t=at(t,o.input.length));a[0]=lt(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&&(3==(o=ut(t)).ttype||5==o.ttype||1>=n.input.length&&4!=o.ttype||(i="{"+i+(r=dt(t))[0]+"}",t=r[1]))}return[i,t]}function mt(t,e){var n,o,i,r,a="",s=!1;do{o=(i=dt(t=at(t,0)))[0],3==(n=ut(t=i[1])).ttype&&"/"==n.input?((i=dt(t=at(t,n.input.length)))[0]=null==i[0]?"{}":lt(i[0]),t=i[1],o="\\frac{"+(o=lt(o))+"}",a+=o+="{"+i[0]+"}",n=ut(t)):null!=o&&(a+=o)}while((5!=n.ttype&&(9!=n.ttype||e)||0==nt)&&null!=n&&""!=n.output);if(5==n.ttype||9==n.ttype){var u=a.length;if(u>2&&"{"==a.charAt(0)&&a.indexOf(",")>0){var l=a.charAt(u-2);if(")"==l||"]"==l){var c=a.charAt(6);if("("==c&&")"==l&&"}"!=n.output||"["==c&&"]"==l){var p="",d=[];d.push(0);var m=!0,h=0,f=[];f[0]=[0];var g=0,y=0,v="";for(r=1;u-1>r;r++)a.charAt(r)==c&&h++,a.charAt(r)==l&&0==--h&&","==a.charAt(r+2)&&"{"==a.charAt(r+3)&&(d.push(r+2),f[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&&f[g].push(r),0>y&&(g==r+1?r++:m=!1);d.push(u);var w=-1;if(0==h&&d.length>0&&m)for(r=0;d.length-1>r;r++){if(r>0&&(p+="\\\\"),0==r)if(1==f[d[r]].length)var x=[a.substr(d[r]+7,d[r+1]-d[r]-15)];else{x=[a.substring(d[r]+7,f[d[r]][1])];for(var b=2;f[d[r]].length>b;b++)x.push(a.substring(f[d[r]][b-1]+1,f[d[r]][b]));x.push(a.substring(f[d[r]][f[d[r]].length-1]+1,d[r+1]-8))}else if(1==f[d[r]].length)x=[a.substr(d[r]+8,d[r+1]-d[r]-16)];else{for(x=[a.substring(d[r]+8,f[d[r]][1])],b=2;f[d[r]].length>b;b++)x.push(a.substring(f[d[r]][b-1]+1,f[d[r]][b]));x.push(a.substring(f[d[r]][f[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),p+=x.join("&")}p="\\begin{array}{"+v+"} "+p+"\\end{array}",m&&(a=p)}}}t=at(t,n.input.length),"boolean"==typeof n.invisible&&n.invisible?(a+="\\right.",s=!0):(a+=o="\\right"+ct(n),s=!0)}return nt>0&&!s&&(a+="\\right."),[a,t]}function ht(t){return nt=0,null==(t=(t=(t=t.replace(/( |\u00a0| )/g,"")).replace(/>/g,">")).replace(/</g,"<")).match(/\S/)?"":mt(t.replace(/^\s+/g,""),!1)[0]}if(function(){var t,e=tt.length;for(t=0;e>t;t++)!tt[t].tex||"boolean"==typeof tt[t].notexcopy&&tt[t].notexcopy||tt.push({input:tt[t].tex,tag:tt[t].tag,output:tt[t].output,ttype:tt[t].ttype,acc:tt[t].acc||!1});!function(){var t;for(tt.sort(et),t=0;tt.length>t;t++)rt[t]=tt[t].input}()}(),"undefined"==typeof window)throw Error("The showdown katex extension can only be used in browser environment!");if(void 0===ft)var ft=window.katex||void 0;if("undefined"==typeof renderMathInElement)var gt=window.renderMathInElement||void 0;let yt=0;function vt(){return!(void 0===gt||!gt||void 0===ft||!ft)}let wt=!1;const xt="katexCSS";function bt(t){const e=vt();if("undefined"!=typeof window){if(wt)return e;if(!e)return wt=!0,y.loadStyleSheet(xt),y.loadScript("katex").then(t=>(ft=v.interopDefault(window[t]),y.loadScript("renderMathInElement"))).then(e=>{gt=v.interopDefault(window[e]),"function"==typeof t&&t&&t(gt)}).catch(t=>{}),e}return"function"==typeof t&&t&&t(gt),e}function St(t,e){if(vt()){const n=e.className,o=e.input,i=e.data,r=e.cssLink,a=e.options,s=e.element.ownerDocument;let u="";if(i instanceof Array)i.forEach(t=>{if(""===t)u+="<br>";else{const e=ft.renderToString(t,a);u+=r?`<div title="${o}" class="${n} css-katex" data-css="${r}">${e}</div>`:`<div title="${o}" class="${n}">${e}</div>`}});else{const t=ft.renderToString(i,a);u=r?`<div title="${o}" class="${n} css-katex" data-css="${r}">${t}</div>`:`<div title="${o}" class="${n}">${t}</div>`}e.element.parentNode.outerHTML=u,--yt,yt||gt(s.body,a),t(!0)}else setTimeout(()=>{St(t,e)},10)}function jt(t,e,n){return new Promise(o=>{let i;const r=v.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?ht(t):t),e.push(t)})):e=n?ht(i):i,e});if(!r)return o(!1);r.cssLink=y.getSrc(!0,xt),r.input=i,r.options=e,St(o,r)})}function Et(t){return t.replace(/[-[\]/{}()*+?.\\$^|]/g,"\\$&")}const kt=(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}]):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}]),e};function At(t){let e=0;const n=kt(t),o=n.delimiters.map(({left:t,right:n,display:o,asciimath:i})=>({test:RegExp(`${Et(t)}(.+?)${Et(n)}`,"g"),replacer:(t,n)=>(++e,i&&(n=ht(n)),o?`\\[${n}\\]`:`\\(${n}\\)`)}));return[{type:"output",config:n,filter:function(t){e=0;const n=t.wrapper;if(!n)return!1;o.length&&n.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 i=n.querySelectorAll("code.latex.language-latex"),r=n.querySelectorAll("code.asciimath.language-asciimath");if(!i.length&&!r.length){if(e>0){this.config.cssLink=y.getSrc(!0,xt);const a=this;function s(t,e){vt()?(e(n.ownerDocument.body,a.config),t(!0)):setTimeout(()=>{s(t,e)},10)}return new Promise(t=>{bt(e=>{s(t,e)})}).then(()=>t)}return!1}return this.config.cssLink=y.getSrc(!0,xt),v.addCssLink(t,this.config.cssLink,"css-katex"),function(t,e,n){return yt=t.length+e.length,bt(),new Promise(o=>{const i=[];t.forEach(t=>{i.push(jt(t,n,!1))}),e.forEach(t=>{i.push(jt(t,n,!0))}),Promise.all(i).then(()=>{o(!0)})})}(i,r,this.config).then(()=>t)}}]}const Lt="echarts";if("undefined"==typeof window)throw Error(`The showdown ${Lt} extension can only be used in browser environment!`);if(void 0===Ct)var Ct=window.echarts||void 0;function Ot(){return!!Ct}let $t=!1;function Nt(t,e){if(Ot()){const n=e.id,o=e.container,i=e.className,r=e.element.parentNode;e.lang?(e.lang.width||(e.lang.width="400px"),e.lang.height||(e.lang.height="300px")):e.lang={width:"400px",height:"300px"};return r.outerHTML=`<div id="${o}" class="${i}" style="${`width:${e.lang.width}; height:${e.lang.height};`}"><div id="${n}" style="width:100%;height:100%;display:inline-block"></div></div>`,t(!0)}setTimeout(()=>{Nt(t,e)},20)}function qt(t,e,n){const o=v.createElementMeta(Lt,t);if(!o)return Promise.resolve(!1);n={...n,ssr:!1,width:o.lang.width,height:o.lang.height};const i={id:o.container,code:((t,e)=>{const n=()=>{const n=eval;let o=document.getElementById(t.id);if(o){let i=Ct.getInstanceByDom(o);if(i||(o.innerHTML=""),i=Ct.init(o,null,e),t.lang&&t.lang.type&&"string"==typeof t.lang.type&&"javascript"==t.lang.type.toLowerCase()){const e=n(`(function(){${t.data}; return option;})();`);i.setOption(e)}else{const e=JSON.parse(t.data);i.setOption(e)}}};return n.toString=()=>t.lang&&t.lang.type&&"string"==typeof t.lang.type&&"javascript"==t.lang.type.toLowerCase()?`function(){\n const config = ${JSON.stringify(e)};\n let el = document.getElementById('${t.id}');\n if (el) {\n let chart = echarts.getInstanceByDom(el);\n if (!chart) {\n el.innerHTML = '';\n }\n chart = echarts.init(el, null, config);\n ${t.data}\n chart.setOption(option); \n }\n }`:`function(){\n const config = ${JSON.stringify(e)};\n let el = document.getElementById('${t.id}');\n if (el) {\n let chart = echarts.getInstanceByDom(el);\n if (!chart) {\n el.innerHTML = '';\n }\n chart = echarts.init(el, null, config);\n const option = ${t.data};\n chart.setOption(option);\n }\n }`,n})(o,n),host:"#"+o.container};return e.push(i),new Promise(t=>{Nt(t,o)})}function Mt(t,e,n){const o={outer:[{name:Lt,src:y.getSrc(!1,Lt,"jsdelivr")}],inner:[]};return e.push(o),function(){const t=Ot();if("undefined"!=typeof window){if($t)return t;t||($t=!0,y.loadScript(Lt).then(t=>{Ct=v.interopDefault(window[t])}))}}(),new Promise(e=>{const i=[];t.forEach(t=>{i.push(qt(t,o.inner,n))}),Promise.all(i).then(()=>{e(!0)})})}function Dt(t){return[{type:"output",config:((t={})=>({renderer:"svg",ssr:!1,tooltip:{show:!0},animation:!0,useDirtyRect:!1,...t}))(t),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll(`code.${Lt}.language-${Lt}`);return!!n.length&&Mt(n,t.scripts,this.config).then(()=>t)}}]}const Tt="mermaid";if("undefined"==typeof window)throw Error("The showdown mermaid extension can only be used in browser environment!");if(void 0===Pt)var Pt=window.mermaid||void 0;function Ht(){return!(void 0===Pt||!Pt)}let zt=!1;function Bt(t,e){if(Ht()){const n=e.className,o=e.element.parentNode;return void Pt.render(e.id,e.data).then(e=>{o.outerHTML=`<div class="${n}">${e.svg}</div>`,t(!0)})}setTimeout(()=>{Bt(t,e)},10)}function _t(t){return new Promise(e=>{const n=v.createElementMeta(Tt,t);if(!n)return e(!1);Bt(e,n)})}function Ft(t,e){return function(t){const e=Ht();if("undefined"!=typeof window){if(zt)return e;if(!e)return zt=!0,y.loadScript(Tt).then(e=>{(Pt=v.interopDefault(window[e])).initialize(t)}),e}Pt.initialize(t)}(e),new Promise(e=>{const n=[];t.forEach(t=>{n.push(_t(t))}),Promise.all(n).then(()=>{e(!0)})})}function It(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&&Ft(n,this.config).then(()=>t)}}]}function Rt(t,e,n){var o=(3&t)<<4|e>>4,i=(15&e)<<2|n>>6,r=63&n,a="";return a+=Jt(63&t>>2),a+=Jt(63&o),a+=Jt(63&i),a+=Jt(63&r)}function Jt(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 Vt(t){var e=t.charCodeAt(0);return"_"===t?63:"-"===t?62:97>e?65>e?48>e?"?":e-48:e-55:e-61}function Wt(t){var e=Vt(t[0]),n=Vt(t[1]),o=Vt(t[2]);return[e<<2|n>>4&63,n<<4&240|o>>2&15,o<<6&192|63&Vt(t[3])]}function Ut(t){return function(t){for(var e="",n=0;t.length>n;n+=3)e+=n+2==t.length?Rt(t.charCodeAt(n),t.charCodeAt(n+1),0):n+1==t.length?Rt(t.charCodeAt(n),0,0):Rt(t.charCodeAt(n),t.charCodeAt(n+1),t.charCodeAt(n+2));return e}(e.deflateRawSync(t,{level:9}).toString("binary"))}function Gt(t){return""+e.inflateRawSync(Buffer.from(function(t){var e="",n=0;for(n=0;t.length>n;n+=4){var o=Wt(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 Xt={encodeuml:function(t){const e="@startuml",n="@enduml";return Ut(`${e}${(t.split(e)[1]+"").split(n)[0]||""}${n}`)},decodeuml:function(t){return Gt(t)}},Kt="img";let Zt=0;function Qt(t,e){return Zt=t.length,new Promise(n=>{const o=[];t.forEach(t=>{o.push(function(t,e){return new Promise(n=>{const o=t.dataset.lang;let i=null;if(o)try{i=JSON.parse(o)}catch{}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(),s=(t.classList.length>0?t.classList[0]:"")+(t.className&&r?" ":"")+r,u=e.imageFormat;if("svg"!==u){const o=window&&window.location.protocol,i=("http:"===o||"https:"===o?"//":"https://")+e.umlWebSite,r=u!==Kt?"."+u:"",l=Xt.encodeuml(a);return t.parentNode.outerHTML=`<div class="${s}"><img src='${i}/${u}/${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,s,a,Zt).then(e=>{t.parentNode.outerHTML=`<div id="${o}" class="${s}">${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=u!==Kt?"."+u:"",c=Xt.encodeuml(a);window.fetch(`${r}/${u}/${c}${l}`).then(t=>{if(t.ok)return t.text()}).then(e=>{t.parentNode.outerHTML=`<div id="${o}" class="${s}">${e}</div>`,n(!0)})}}})}(t,e))}),Promise.all(o).then(()=>{n(!0)})})}function Yt(t){return[{type:"output",config:((t={})=>({umlWebSite:"www.plantuml.com/plantuml",imageFormat:Kt,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&&Qt(n,this.config).then(()=>t)}}]}const te="railroad",ee="railroadCSS";if("undefined"==typeof window)throw Error("The showdown railroad extension can only be used in browser environment!");let ne=!1;function oe(){return ne}let ie,re=!1;function ae(t,e){if(oe()){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(()=>{ae(t,e)},10)}function se(t){return new Promise(e=>{const n=v.createElementMeta(te,t);if(!n)return e(!1);n.cssLink=y.getSrc(!0,ee),ae(e,n)})}function ue(t){return function(){const t=oe();if("undefined"!=typeof window){if(re)return t;t||(re=!0,y.loadStyleSheet(ee),y.loadScript(te).then(()=>{ne=!0}))}}(),new Promise(e=>{const n=[];t.forEach(t=>{n.push(se(t))}),Promise.all(n).then(()=>{e(!0)})})}function le(){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:y.getSrc(!0,ee)},v.addCssLink(t,this.config.cssLink,"css-railroad"),ue(n).then(()=>t))}}]}if("undefined"==typeof window)throw Error("The showdown sequence extension can only be used in browser environment!");if(void 0===ce)var ce=window.Raphael||void 0;if("undefined"!=typeof window&&window.Diagram&&(ie=window.Diagram,window.Diagram.Signal))var pe=window.Diagram;const de=["simple","hand"];if(void 0===pe&&"undefined"!=typeof window)pe=window.SequenceJS;function me(){return!!ce}function he(){return me()&&!!pe}let fe=!1;const ge="sequenceCSS";function ye(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=he();if("undefined"!=typeof window){if(fe)return t;t||(fe=!0,y.loadStyleSheet(ge),y.loadScript("WebFont").then(()=>me()?"Raphael":y.loadScript("Raphael")).then(t=>(ce=v.interopDefault(window[t]),y.loadScript("Snap"))).then(()=>y.loadScript("underscore")).then(()=>(!ie&&window.Diagram&&(ie=window.Diagram),y.loadScript("sequence"))).then(()=>{pe=window.Diagram,window.SequenceJS=pe,ie&&(window.Diagram=ie)}))}return t}(),r=y.getSrc(!0,ge),a=t.textContent.trim(),s="js-sequence"+(o?" ":"")+o,u="sequence-"+Date.now()+"-"+Math.floor(1e4*Math.random());t.id=u,r&&(t.className=t.className+(t.className?" ":"")+"css-sequence",t.dataset.css=r),!i&&"undefined"!=typeof window&&window.dispatchEvent?Promise.resolve(u).then(t=>{window.dispatchEvent(new CustomEvent("sequence",{detail:{id:t,className:s,data:a,langattr:e,cssLink:r}}))}):"undefined"!=typeof window&&window.dispatchEvent&&window.dispatchEvent(new CustomEvent("sequence",{detail:{id:u,className:s,data:a,langattr:e,cssLink:r}}))}function ve(t){if(he()){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!=de.indexOf(t.theme)&&(r=t.theme)}let s=window.document.getElementById(e);if(s){s.parentNode.outerHTML=i?`<div id="${e}" class="${n} css-sequence" data-css="${i}"></div>`:`<div id="${e}" class="${n}"></div>`,s=window.document.getElementById(e);return void pe.parse(o).drawSVG(s||e,{theme:r})}}setTimeout(()=>{ve(t)},10)}function we(){let t=!1;return[{type:"output",filter:function(e){if("string"==typeof e){const n=(new DOMParser).parseFromString(e,"text/html"),o=void 0!==n.body?n.body:n,i=o.querySelectorAll("code.sequence.language-sequence");return i.length&&(t||"undefined"!=typeof window&&window.dispatchEvent&&(t=!0,window.addEventListener("sequence",t=>{t.detail&&ve(t.detail)})),this.config={cssLink:y.getSrc(!0,ge)}),function(t){return!!t.length&&(t.forEach(t=>{ye(t)}),!0)}(i)?o.innerHTML:e}if(!e||!e.wrapper)return!1;const n=e;return n.wrapper.querySelectorAll("code.sequence.language-sequence").length>0&&v.addCssLink(n,y.getSrc(!0,ge),"css-sequence"),n}}]}if("undefined"==typeof window)throw Error("The showdown wavedrom extension can only be used in browser environment!");if(void 0===xe)var xe=window.WaveDrom||void 0;let be=0,Se=0;function je(){return!!xe}let Ee=!1;function ke(t,e){if(je()){const n=e.index,o=e.id,i=e.data;let r=e.element;return r.parentNode.outerHTML=v.renderCacheElement(r.ownerDocument,o+n,e.className,t=>{const e=window.eval(`(${i})`);xe.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(()=>{ke(t,e)},10)}function Ae(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,s=Se;++Se,--be,be||(Se=0);const u="WaveDrom_Display_";t.id=u+s;ke(e,{element:t,index:s,id:u,className:a,data:r})})}function Le(t,e){return function(t){const e=je();Ee||e||(Ee=!0,"undefined"!=typeof window&&y.loadScript({WaveDromSkin:t}).then(()=>y.loadScript("WaveDrom")).then(t=>{xe=v.interopDefault(window[t])}))}(e),new Promise(e=>{const n=[];be=t.length,t.forEach(t=>{n.push(Ae(t))}),Promise.all(n).then(()=>{e(!0)})})}function Ce(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&&(s("Begin render wavedrom elements."),Le(n,this.config.skin).then(()=>(s("End render wavedrom elements."),t)))}}]}function Oe(){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]+)\]/gm,(t,e,n)=>`${e}<a href="#footnote-${n}"><sup>[${n}]</sup></a>`)},{type:"lang",filter:t=>t.replace(/\\\[\^([\d\w]+)\]/gm,(t,e)=>`[^${e}]`)}]}function $e(){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===Ne)var Ne=window.Raphael||void 0;if(void 0===qe)var qe=window.flowchart||void 0;function Me(){return!(void 0===Ne||!Ne||void 0===qe||!qe)}let De=!1;function Te(){const t=Me();if("undefined"!=typeof window){if(De)return t;if(!t){if(De=!0,!Ne)return y.loadScript("Raphael").then(t=>(Ne=v.interopDefault(window[t]),y.loadScript("flowchart"))).then(t=>{qe=v.interopDefault(window[t])}),t;y.loadScript("flowchart").then(t=>{qe=v.interopDefault(window[t])})}}return t}function Pe(t,e){if(Me()){const n=e.data,o=e.options;return e.element.parentNode.outerHTML=v.renderCacheElement(e.element.ownerDocument,e.id,e.className,t=>{qe.parse(n).drawSVG(t,o)}),void t(!0)}setTimeout(()=>{Pe(t,e)},10)}function He(t,e){return new Promise(n=>{const o=v.createElementMeta("flowchart",t);if(!o)return n(!1);o.options=e,Pe(n,o)})}function ze(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 Te(),new Promise(o=>{const i=[];t.forEach(t=>{i.push(He(t,n))}),e.forEach(t=>{i.push(He(t,n))}),Promise.all(i).then(()=>{o(!0)})})}(n,o,this.config).then(()=>t)}}]}const Be=(t={})=>({flavor:"github",...t}),_e=(t,e,n)=>{if(!t||!e||"undefined"==typeof document)return!1;let o=document.getElementById(t);o||(n?"string"==typeof n&&(n=document.querySelector(n)):n=document.body,o=n);const i="script-"+t;let r=document.querySelector(`${o.tagName} > #${i}`);return r||(r=document.createElement("script"),r.id=i,r.type="text/javascript",r.text=e,o.appendChild(r)),!0},Fe=(t,e,n)=>{if(!t||!e||"undefined"==typeof document)return!1;let o=document.getElementById(t);o||(n?"string"==typeof n&&(n=document.querySelector(n)):n=document.body,o=n);const i="script-"+t;let r=document.querySelector(`${o.tagName} > #${i}`);return r||(r=document.createElement("script"),r.id=i,r.type="text/javascript",r.text=e,o.insertBefore(r,o.children[0])),!0};function Ie(t,e){return new Promise((n,o)=>{t&&e&&"undefined"!=typeof document||o("Args is invaild!");const i="script-"+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)})}const Re=function(e,n,o){let i=n;if(e.host&&"string"==typeof e.host&&(i=document.querySelector(e.host)),!e.inner){if(!e.code)return!1;if("function"==typeof e.code){const t=e.code;return o?(o.then(()=>{t()}),!0):(t(),!0)}return o?(o.then(()=>{_e(e.id,e.code,i)}),!0):_e(e.id,e.code,i)}if(t.helper.isArray(e.inner)||(e.inner=[e.inner]),e.code)if("function"==typeof e.code){const t=e.code;o?o.then(()=>{t()}):t()}else o?o.then(()=>{Fe(e.id,e.code,i)}):Fe(e.id,e.code,i);if(e.inner.length>0)for(let t=0;e.inner.length>t;++t){const n=e.inner[t];if(!n.code)continue;if("function"==typeof n.code){const t=n.code;o?o.then(()=>{t()}):t();continue}let r=i;n.host&&"string"==typeof n.host&&(r=document.querySelector(n.host)),o?o.then(()=>{_e(n.id,n.code,r)}):_e(n.id,n.code,r)}return!0},Je=["github","ghost","vanilla","original","allon"],Ve=["default","forest","dark","neutral"],We=["excel","ggplot2","quartz","vox","dark"],Ue=["canvas","svg"],Ge=["svg","png","jpg"],Xe={showdown:t,converter:null,defaultOptions:{showdown:Be(),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,o){"string"==typeof t&&t&&y.setCDN(t,e,n,o)},setShowdownFlavor:function(t){this.initDefaultOptions(),t&&(-1===Je.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===Ge.indexOf(e)&&(this.defaultOptions.plantuml.imageFormat="png"),this.converter&&this.addAsyncExtension("showdown-plantuml",Yt(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===Ve.indexOf(e)&&(this.defaultOptions.mermaid.theme="default"),this.converter&&this.addAsyncExtension("showdown-mermaid",It(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",At(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===We.indexOf(e)&&(this.defaultOptions.vega.theme="vox");const n=this.defaultOptions.vega.renderer;return n&&-1===Ue.indexOf(n)&&(this.defaultOptions.vega.renderer="canvas"),this.converter&&this.addAsyncExtension("showdown-vega",K(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=Be(this.defaultOptions&&this.defaultOptions.showdown||{});this.addOptions(t)}t.hasOwnProperty("extension")&&t.extension&&(this.addAsyncExtension("showdown-plantuml",Yt(this.defaultOptions.plantuml)),this.addAsyncExtension("showdown-mermaid",It(this.defaultOptions.mermaid)),this.addAsyncExtension("showdown-vega",K(this.defaultOptions.vega)))}}else{const e=Be(this.defaultOptions&&this.defaultOptions.showdown||{}),n=((e,n={})=>{const o={"showdown-toc":M,"showdown-align":Z,"showdown-footnotes":Oe,"showdown-container":$e,"showdown-sequence":we,...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.plantuml||{},r=e&&e.katex||{},a=e&&e.vega||{},s=(e,n)=>{let o=null;try{o=t.extension(e)}catch{}return o||n},u={"showdown-toc":s("showdown-toc",M),"showdown-plantuml":Yt(i),"showdown-mermaid":It(o),"showdown-katex":At(r),"showdown-flowchart":ze,"showdown-viz":I,"showdown-vega":K(a),"showdown-wavedrom":Ce,"showdown-railroad":le,"showdown-abc":O,"showdown-echarts":Dt,"showdown-sequence":s("showdown-sequence",we),...n,"showdow-css":D};let l=[];for(let e in u)u.hasOwnProperty(e)&&(t.asyncExtension(e,u[e]),l.push(e));return l})(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(t){return new Promise(e=>(t.cssLinks&&Array.isArray(t.cssLinks)&&(t.cssTypes={css:{}},t.cssLinks.forEach(e=>"css-abc"===e.id?(t.cssTypes.hasAbc=!0,void(t.cssTypes.css.abc=e.link)):"css-katex"===e.id?(t.cssTypes.hasKatex=!0,void(t.cssTypes.css.katex=e.link)):"css-railroad"===e.id?(t.cssTypes.hasRailroad=!0,void(t.cssTypes.css.railroad=e.link)):void("css-sequence"===e.id&&(t.cssTypes.hasSequence=!0,t.cssTypes.css.sequence=e.link))),"function"==typeof n&&n&&n(t.cssTypes)),e(t)))}return this.converter.asyncMakeHtml(o,i).then(e=>{if(o=`<div class='showdowns'>${e.html}</div>`,e.extras){let n=e.extras;t.helper.isArray(n)||(n=[n]);for(let t=0;n.length>t;++t)"string"==typeof n[t]&&(o+=n[t])}return{html:o,scripts:e.scripts,cssLinks:e.cssLinks}})}return Promise.reject(o?"Converter is invaild.":"Content is empty.")},completedHtml:function(e,n){return t.helper.isArray(e)||(e=[e]),new Promise((o,i)=>{"string"==typeof n&&(n=document.querySelector(n));for(let o=0;e.length>o;++o){const r=e[o];if(r.outer){t.helper.isArray(r.outer)||(r.outer=[r.outer]);let e=r.outer[0],o=Ie(e.name,e.src);for(let t=1;r.outer.length>t;++t)e=r.outer[t],o=o.then(()=>Ie(e.name,e.src));Re(r,n,o);continue}if(!Re(r,n))return i("Args is invaild!")}o(!0)})},zDecode:function(t){return""+e.inflateRawSync(Buffer.from(t,"base64"))},zEncode:function(t){return e.deflateRawSync(t,{level:9}).toString("base64")}};module.exports=Xe;
|
|
7
7
|
//# sourceMappingURL=showdowns.core.min.js.map
|