From 39e93d7989b112bdd7749355e700bac120ac6a3d Mon Sep 17 00:00:00 2001 From: humyfred <513407656@qq.com> Date: Mon, 25 Dec 2023 16:59:01 +0800 Subject: [PATCH] chore(release): 0.8.33 --- CHANGELOG.md | 10 + .../cherry-code-block-mermaid-plugin.d.ts | 35 +- .../cherry-code-block-mermaid-plugin.js | 4 +- .../cherry-code-block-plantuml-plugin.d.ts | 9 +- .../cherry-code-block-plantuml-plugin.js | 4 +- dist/cherry-markdown.core.common.d.ts | 6 +- dist/cherry-markdown.core.common.js | 4 +- dist/cherry-markdown.core.d.ts | 6 +- dist/cherry-markdown.core.js | 4 +- dist/cherry-markdown.css | 5093 +- dist/cherry-markdown.d.ts | 6 +- dist/cherry-markdown.engine.core.common.d.ts | 6 +- dist/cherry-markdown.engine.core.common.js | 4 +- dist/cherry-markdown.engine.core.d.ts | 6 +- dist/cherry-markdown.engine.core.esm.d.ts | 6 +- dist/cherry-markdown.engine.core.esm.js | 4 +- dist/cherry-markdown.engine.core.js | 4 +- dist/cherry-markdown.esm.d.ts | 6 +- dist/cherry-markdown.esm.js | 4 +- dist/cherry-markdown.js | 192826 +-------------- dist/cherry-markdown.js.map | 4 +- dist/cherry-markdown.min.css | 4 +- dist/cherry-markdown.min.d.ts | 6 +- dist/cherry-markdown.min.js | 4 +- dist/fonts/ch-icon.eot | Bin 20352 -> 130 bytes dist/fonts/ch-icon.svg | 279 +- dist/fonts/ch-icon.ttf | Bin 20188 -> 130 bytes dist/fonts/ch-icon.woff | Bin 11728 -> 130 bytes dist/fonts/ch-icon.woff2 | Bin 9952 -> 129 bytes package.json | 2 +- 30 files changed, 83 insertions(+), 198263 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9953ed250..b06fc2c8b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,16 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [0.8.33](https://github.com/Tencent/cherry-markdown/compare/v0.8.32...v0.8.33) (2023-12-25) + + +### Bug Fixes + +* 额外兼容node场景 ([0d04a68](https://github.com/Tencent/cherry-markdown/commit/0d04a680f88fefd5516b9325e16adf59990b16ea)) +* 修复pointer event导致的误触,兼容浏览器不支持pointer event的情况 ([08965e5](https://github.com/Tencent/cherry-markdown/commit/08965e5dc05e2036c2443ed0ba089f4014c180e9)) + +### [0.8.31](https://github.com/Tencent/cherry-markdown/compare/v0.8.30...v0.8.31) (2023-12-07) + ### [0.8.32](https://github.com/Tencent/cherry-markdown/compare/v0.8.30...v0.8.32) (2023-12-18) diff --git a/dist/addons/cherry-code-block-mermaid-plugin.d.ts b/dist/addons/cherry-code-block-mermaid-plugin.d.ts index 7817883c8..81473856a 100644 --- a/dist/addons/cherry-code-block-mermaid-plugin.d.ts +++ b/dist/addons/cherry-code-block-mermaid-plugin.d.ts @@ -1,32 +1,3 @@ -export default class MermaidCodeEngine { - static TYPE: string; - static install(cherryOptions: any, ...args: any[]): void; - constructor(mermaidOptions?: {}); - mermaidAPIRefs: any; - options: { - theme: string; - altFontFamily: string; - fontFamily: string; - themeCSS: string; - flowchart: { - useMaxWidth: boolean; - }; - sequence: { - useMaxWidth: boolean; - }; - startOnLoad: boolean; - logLevel: number; - }; - dom: any; - mermaidCanvas: any; - mountMermaidCanvas($engine: any): void; - /** - * 转换svg为img,如果出错则直出svg - * @param {string} svgCode - * @param {string} graphId - * @returns {string} - */ - convertMermaidSvgToImg(svgCode: string, graphId: string): string; - render(src: any, sign: any, $engine: any, config?: {}): any; - svg2img: any; -} +version https://git-lfs.github.com/spec/v1 +oid sha256:f7e94c0e0790e3a81858a2788b170845f35dbda7a081f4c5ad677482e7b27128 +size 930 diff --git a/dist/addons/cherry-code-block-mermaid-plugin.js b/dist/addons/cherry-code-block-mermaid-plugin.js index cf8396a9c..a10559f19 100644 --- a/dist/addons/cherry-code-block-mermaid-plugin.js +++ b/dist/addons/cherry-code-block-mermaid-plugin.js @@ -1 +1,3 @@ -!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):(t="undefined"!=typeof globalThis?globalThis:t||self).CherryCodeBlockMermaidPlugin=r()}(this,(function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function e(t,r){return t(r={exports:{}},r.exports),r.exports}var n,o,i=function(t){return t&&t.Math==Math&&t},a=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof t&&t)||function(){return this}()||Function("return this")(),u=function(t){try{return!!t()}catch(t){return!0}},c=!u((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=Function.prototype,s=f.apply,l=f.call,p="object"==typeof Reflect&&Reflect.apply||(c?l.bind(s):function(){return l.apply(s,arguments)}),v=Function.prototype,y=v.bind,d=v.call,h=c&&y.bind(d,d),b=c?function(t){return t&&h(t)}:function(t){return t&&function(){return d.apply(t,arguments)}},g=function(t){return"function"==typeof t},m=!u((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),w=Function.prototype.call,O=c?w.bind(w):function(){return w.apply(w,arguments)},_={}.propertyIsEnumerable,j=Object.getOwnPropertyDescriptor,S={f:j&&!_.call({1:2},1)?function(t){var r=j(this,t);return!!r&&r.enumerable}:_},P=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},x=b({}.toString),A=b("".slice),T=function(t){return A(x(t),8,-1)},E=a.Object,F=b("".split),M=u((function(){return!E("z").propertyIsEnumerable(0)}))?function(t){return"String"==T(t)?F(t,""):E(t)}:E,I=a.TypeError,L=function(t){if(null==t)throw I("Can't call method on "+t);return t},C=function(t){return M(L(t))},k=function(t){return"object"==typeof t?null!==t:g(t)},R={},D=function(t){return g(t)?t:void 0},z=function(t,r){return arguments.length<2?D(R[t])||D(a[t]):R[t]&&R[t][r]||a[t]&&a[t][r]},B=b({}.isPrototypeOf),N=z("navigator","userAgent")||"",G=a.process,U=a.Deno,V=G&&G.versions||U&&U.version,$=V&&V.v8;$&&(o=(n=$.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&N&&(!(n=N.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=N.match(/Chrome\/(\d+)/))&&(o=+n[1]);var W=o,H=!!Object.getOwnPropertySymbols&&!u((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&W&&W<41})),q=H&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Y=a.Object,J=q?function(t){return"symbol"==typeof t}:function(t){var r=z("Symbol");return g(r)&&B(r.prototype,Y(t))},X=a.String,K=function(t){try{return X(t)}catch(t){return"Object"}},Q=a.TypeError,Z=function(t){if(g(t))return t;throw Q(K(t)+" is not a function")},tt=a.TypeError,rt=Object.defineProperty,et="__core-js_shared__",nt=a[et]||function(t,r){try{rt(a,t,{value:r,configurable:!0,writable:!0})}catch(e){a[t]=r}return r}(et,{}),ot=e((function(t){(t.exports=function(t,r){return nt[t]||(nt[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.22.6",mode:"pure",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.6/LICENSE",source:"https://github.com/zloirock/core-js"})})),it=a.Object,at=function(t){return it(L(t))},ut=b({}.hasOwnProperty),ct=Object.hasOwn||function(t,r){return ut(at(t),r)},ft=0,st=Math.random(),lt=b(1..toString),pt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+lt(++ft+st,36)},vt=ot("wks"),yt=a.Symbol,dt=yt&&yt.for,ht=q?yt:yt&&yt.withoutSetter||pt,bt=function(t){if(!ct(vt,t)||!H&&"string"!=typeof vt[t]){var r="Symbol."+t;H&&ct(yt,t)?vt[t]=yt[t]:vt[t]=q&&dt?dt(r):ht(r)}return vt[t]},gt=a.TypeError,mt=bt("toPrimitive"),wt=function(t,r){if(!k(t)||J(t))return t;var e,n,o=null==(e=t[mt])?void 0:Z(e);if(o){if(void 0===r&&(r="default"),n=O(o,t,r),!k(n)||J(n))return n;throw gt("Can't convert object to primitive value")}return void 0===r&&(r="number"),function(t,r){var e,n;if("string"===r&&g(e=t.toString)&&!k(n=O(e,t)))return n;if(g(e=t.valueOf)&&!k(n=O(e,t)))return n;if("string"!==r&&g(e=t.toString)&&!k(n=O(e,t)))return n;throw tt("Can't convert object to primitive value")}(t,r)},Ot=function(t){var r=wt(t,"string");return J(r)?r:r+""},_t=a.document,jt=k(_t)&&k(_t.createElement),St=function(t){return jt?_t.createElement(t):{}},Pt=!m&&!u((function(){return 7!=Object.defineProperty(St("div"),"a",{get:function(){return 7}}).a})),xt=Object.getOwnPropertyDescriptor,At={f:m?xt:function(t,r){if(t=C(t),r=Ot(r),Pt)try{return xt(t,r)}catch(t){}if(ct(t,r))return P(!O(S.f,t,r),t[r])}},Tt=/#|\.prototype\./,Et=function(t,r){var e=Mt[Ft(t)];return e==Lt||e!=It&&(g(r)?u(r):!!r)},Ft=Et.normalize=function(t){return String(t).replace(Tt,".").toLowerCase()},Mt=Et.data={},It=Et.NATIVE="N",Lt=Et.POLYFILL="P",Ct=Et,kt=b(b.bind),Rt=function(t,r){return Z(t),void 0===r?t:c?kt(t,r):function(){return t.apply(r,arguments)}},Dt=m&&u((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),zt=a.String,Bt=a.TypeError,Nt=function(t){if(k(t))return t;throw Bt(zt(t)+" is not an object")},Gt=a.TypeError,Ut=Object.defineProperty,Vt=Object.getOwnPropertyDescriptor,$t="enumerable",Wt="configurable",Ht="writable",qt={f:m?Dt?function(t,r,e){if(Nt(t),r=Ot(r),Nt(e),"function"==typeof t&&"prototype"===r&&"value"in e&&Ht in e&&!e[Ht]){var n=Vt(t,r);n&&n[Ht]&&(t[r]=e.value,e={configurable:Wt in e?e[Wt]:n[Wt],enumerable:$t in e?e[$t]:n[$t],writable:!1})}return Ut(t,r,e)}:Ut:function(t,r,e){if(Nt(t),r=Ot(r),Nt(e),Pt)try{return Ut(t,r,e)}catch(t){}if("get"in e||"set"in e)throw Gt("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},Yt=m?function(t,r,e){return qt.f(t,r,P(1,e))}:function(t,r,e){return t[r]=e,t},Jt=At.f,Xt=function(t){var r=function(e,n,o){if(this instanceof r){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,o)}return p(t,this,arguments)};return r.prototype=t.prototype,r},Kt=function(t,r){var e,n,o,i,u,c,f,s,l=t.target,p=t.global,v=t.stat,y=t.proto,d=p?a:v?a[l]:(a[l]||{}).prototype,h=p?R:R[l]||Yt(R,l,{})[l],m=h.prototype;for(o in r)e=!Ct(p?o:l+(v?".":"#")+o,t.forced)&&d&&ct(d,o),u=h[o],e&&(c=t.dontCallGetSet?(s=Jt(d,o))&&s.value:d[o]),i=e&&c?c:r[o],e&&typeof u==typeof i||(f=t.bind&&e?Rt(i,a):t.wrap&&e?Xt(i):y&&g(i)?b(i):i,(t.sham||i&&i.sham||u&&u.sham)&&Yt(f,"sham",!0),Yt(h,o,f),y&&(ct(R,n=l+"Prototype")||Yt(R,n,{}),Yt(R[n],o,i),t.real&&m&&!m[o]&&Yt(m,o,i)))},Qt=Math.ceil,Zt=Math.floor,tr=Math.trunc||function(t){var r=+t;return(r>0?Zt:Qt)(r)},rr=function(t){var r=+t;return r!=r||0===r?0:tr(r)},er=Math.max,nr=Math.min,or=function(t,r){var e=rr(t);return e<0?er(e+r,0):nr(e,r)},ir=Math.min,ar=function(t){return(r=t.length)>0?ir(rr(r),9007199254740991):0;var r},ur=function(t){return function(r,e,n){var o,i=C(r),a=ar(i),u=or(n,a);if(t&&e!=e){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===e)return t||u||0;return!t&&-1}},cr={includes:ur(!0),indexOf:ur(!1)},fr={},sr=cr.indexOf,lr=b([].push),pr=function(t,r){var e,n=C(t),o=0,i=[];for(e in n)!ct(fr,e)&&ct(n,e)&&lr(i,e);for(;r.length>o;)ct(n,e=r[o++])&&(~sr(i,e)||lr(i,e));return i},vr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],yr=Object.keys||function(t){return pr(t,vr)},dr=u((function(){yr(1)}));Kt({target:"Object",stat:!0,forced:dr},{keys:function(t){return yr(at(t))}});var hr=R.Object.keys,br={};br[bt("toStringTag")]="z";var gr,mr="[object z]"===String(br),wr=bt("toStringTag"),Or=a.Object,_r="Arguments"==T(function(){return arguments}()),jr=mr?T:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=Or(t),wr))?e:_r?T(r):"Object"==(n=T(r))&&g(r.callee)?"Arguments":n},Sr=a.String,Pr=function(t){if("Symbol"===jr(t))throw TypeError("Cannot convert a Symbol value to a string");return Sr(t)},xr=m&&!Dt?Object.defineProperties:function(t,r){Nt(t);for(var e,n=C(r),o=yr(r),i=o.length,a=0;i>a;)qt.f(t,e=o[a++],n[e]);return t},Ar={f:xr},Tr=z("document","documentElement"),Er=ot("keys"),Fr=function(t){return Er[t]||(Er[t]=pt(t))},Mr="prototype",Ir="script",Lr=Fr("IE_PROTO"),Cr=function(){},kr=function(t){return"<"+Ir+">"+t+""},Rr=function(t){t.write(kr("")),t.close();var r=t.parentWindow.Object;return t=null,r},Dr=function(){try{gr=new ActiveXObject("htmlfile")}catch(t){}var t,r,e;Dr="undefined"!=typeof document?document.domain&&gr?Rr(gr):(r=St("iframe"),e="java"+Ir+":",r.style.display="none",Tr.appendChild(r),r.src=String(e),(t=r.contentWindow.document).open(),t.write(kr("document.F=Object")),t.close(),t.F):Rr(gr);for(var n=vr.length;n--;)delete Dr[Mr][vr[n]];return Dr()};fr[Lr]=!0;var zr=Object.create||function(t,r){var e;return null!==t?(Cr[Mr]=Nt(t),e=new Cr,Cr[Mr]=null,e[Lr]=t):e=Dr(),void 0===r?e:Ar.f(e,r)},Br=vr.concat("length","prototype"),Nr={f:Object.getOwnPropertyNames||function(t){return pr(t,Br)}},Gr=function(t,r,e){var n=Ot(r);n in t?qt.f(t,n,P(0,e)):t[n]=e},Ur=a.Array,Vr=Math.max,$r=Nr.f,Wr="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Hr=function(t){try{return $r(t)}catch(t){return function(t,r,e){for(var n=ar(t),o=or(r,n),i=or(void 0===e?n:e,n),a=Ur(Vr(i-o,0)),u=0;og;g++)if((u||g in d)&&(v=h(p=d[g],g,y),t))if(r)w[g]=v;else if(v)switch(t){case 3:return!0;case 5:return p;case 6:return g;case 2:Me(w,p)}else switch(t){case 4:return!1;case 7:Me(w,p)}return i?-1:n||o?o:w}},Le={forEach:Ie(0),map:Ie(1),filter:Ie(2),some:Ie(3),every:Ie(4),find:Ie(5),findIndex:Ie(6),filterReject:Ie(7)},Ce=Le.forEach,ke=Fr("hidden"),Re="Symbol",De="prototype",ze=be.set,Be=be.getterFor(Re),Ne=Object[De],Ge=a.Symbol,Ue=Ge&&Ge[De],Ve=a.TypeError,$e=a.QObject,We=At.f,He=qt.f,qe=qr.f,Ye=S.f,Je=b([].push),Xe=ot("symbols"),Ke=ot("op-symbols"),Qe=ot("wks"),Ze=!$e||!$e[De]||!$e[De].findChild,tn=m&&u((function(){return 7!=zr(He({},"a",{get:function(){return He(this,"a",{value:7}).a}})).a}))?function(t,r,e){var n=We(Ne,r);n&&delete Ne[r],He(t,r,e),n&&t!==Ne&&He(Ne,r,n)}:He,rn=function(t,r){var e=Xe[t]=zr(Ue);return ze(e,{type:Re,tag:t,description:r}),m||(e.description=r),e},en=function(t,r,e){t===Ne&&en(Ke,r,e),Nt(t);var n=Ot(r);return Nt(e),ct(Xe,n)?(e.enumerable?(ct(t,ke)&&t[ke][n]&&(t[ke][n]=!1),e=zr(e,{enumerable:P(0,!1)})):(ct(t,ke)||He(t,ke,P(1,{})),t[ke][n]=!0),tn(t,n,e)):He(t,n,e)},nn=function(t,r){Nt(t);var e=C(r),n=yr(e).concat(cn(e));return Ce(n,(function(r){m&&!O(on,e,r)||en(t,r,e[r])})),t},on=function(t){var r=Ot(t),e=O(Ye,this,r);return!(this===Ne&&ct(Xe,r)&&!ct(Ke,r))&&(!(e||!ct(this,r)||!ct(Xe,r)||ct(this,ke)&&this[ke][r])||e)},an=function(t,r){var e=C(t),n=Ot(r);if(e!==Ne||!ct(Xe,n)||ct(Ke,n)){var o=We(e,n);return!o||!ct(Xe,n)||ct(e,ke)&&e[ke][n]||(o.enumerable=!0),o}},un=function(t){var r=qe(C(t)),e=[];return Ce(r,(function(t){ct(Xe,t)||ct(fr,t)||Je(e,t)})),e},cn=function(t){var r=t===Ne,e=qe(r?Ke:C(t)),n=[];return Ce(e,(function(t){!ct(Xe,t)||r&&!ct(Ne,t)||Je(n,Xe[t])})),n};H||(Ge=function(){if(B(Ue,this))throw Ve("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?Pr(arguments[0]):void 0,r=pt(t),e=function(t){this===Ne&&O(e,Ke,t),ct(this,ke)&&ct(this[ke],r)&&(this[ke][r]=!1),tn(this,r,P(1,t))};return m&&Ze&&tn(Ne,r,{configurable:!0,set:e}),rn(r,t)},Ue=Ge[De],Jr(Ue,"toString",(function(){return Be(this).tag})),Jr(Ge,"withoutSetter",(function(t){return rn(pt(t),t)})),S.f=on,qt.f=en,Ar.f=nn,At.f=an,Nr.f=qr.f=un,Yr.f=cn,Xr.f=function(t){return rn(bt(t),t)},m&&He(Ue,"description",{configurable:!0,get:function(){return Be(this).description}})),Kt({global:!0,constructor:!0,wrap:!0,forced:!H,sham:!H},{Symbol:Ge}),Ce(yr(Qe),(function(t){!function(t){var r=R.Symbol||(R.Symbol={});ct(r,t)||Kr(r,t,{value:Xr.f(t)})}(t)})),Kt({target:Re,stat:!0,forced:!H},{useSetter:function(){Ze=!0},useSimple:function(){Ze=!1}}),Kt({target:"Object",stat:!0,forced:!H,sham:!m},{create:function(t,r){return void 0===r?zr(t):nn(zr(t),r)},defineProperty:en,defineProperties:nn,getOwnPropertyDescriptor:an}),Kt({target:"Object",stat:!0,forced:!H},{getOwnPropertyNames:un}),function(){var t=z("Symbol"),r=t&&t.prototype,e=r&&r.valueOf,n=bt("toPrimitive");r&&!r[n]&&Jr(r,n,(function(t){return O(e,this)}),{arity:1})}(),re(Ge,Re),fr[ke]=!0;var fn=H&&!!Symbol.for&&!!Symbol.keyFor,sn=ot("string-to-symbol-registry"),ln=ot("symbol-to-string-registry");Kt({target:"Symbol",stat:!0,forced:!fn},{for:function(t){var r=Pr(t);if(ct(sn,r))return sn[r];var e=z("Symbol")(r);return sn[r]=e,ln[e]=r,e}});var pn=ot("symbol-to-string-registry");Kt({target:"Symbol",stat:!0,forced:!fn},{keyFor:function(t){if(!J(t))throw TypeError(K(t)+" is not a symbol");if(ct(pn,t))return pn[t]}});var vn=b([].slice),yn=z("JSON","stringify"),dn=b(/./.exec),hn=b("".charAt),bn=b("".charCodeAt),gn=b("".replace),mn=b(1..toString),wn=/[\uD800-\uDFFF]/g,On=/^[\uD800-\uDBFF]$/,_n=/^[\uDC00-\uDFFF]$/,jn=!H||u((function(){var t=z("Symbol")();return"[null]"!=yn([t])||"{}"!=yn({a:t})||"{}"!=yn(Object(t))})),Sn=u((function(){return'"\\udf06\\ud834"'!==yn("\udf06\ud834")||'"\\udead"'!==yn("\udead")})),Pn=function(t,r){var e=vn(arguments),n=r;if((k(r)||void 0!==t)&&!J(t))return ge(r)||(r=function(t,r){if(g(n)&&(r=O(n,this,t,r)),!J(r))return r}),e[1]=r,p(yn,null,e)},xn=function(t,r,e){var n=hn(e,r-1),o=hn(e,r+1);return dn(On,t)&&!dn(_n,o)||dn(_n,t)&&!dn(On,n)?"\\u"+mn(bn(t,0),16):t};yn&&Kt({target:"JSON",stat:!0,arity:3,forced:jn||Sn},{stringify:function(t,r,e){var n=vn(arguments),o=p(jn?Pn:yn,null,n);return Sn&&"string"==typeof o?gn(o,wn,xn):o}});var An=!H||u((function(){Yr.f(1)}));Kt({target:"Object",stat:!0,forced:An},{getOwnPropertySymbols:function(t){var r=Yr.f;return r?r(at(t)):[]}});var Tn=R.Object.getOwnPropertySymbols,En=bt("species"),Fn=function(t){return W>=51||!u((function(){var r=[];return(r.constructor={})[En]=function(){return{foo:1}},1!==r[t](Boolean).foo}))},Mn=Le.filter,In=Fn("filter");Kt({target:"Array",proto:!0,forced:!In},{filter:function(t){return Mn(this,t,arguments.length>1?arguments[1]:void 0)}});var Ln=function(t){return R[t+"Prototype"]},Cn=Ln("Array").filter,kn=Array.prototype,Rn=function(t){var r=t.filter;return t===kn||B(kn,t)&&r===kn.filter?Cn:r},Dn=At.f,zn=u((function(){Dn(1)}));Kt({target:"Object",stat:!0,forced:!m||zn,sham:!m},{getOwnPropertyDescriptor:function(t,r){return Dn(C(t),r)}});var Bn,Nn,Gn,Un=e((function(t){var r=R.Object,e=t.exports=function(t,e){return r.getOwnPropertyDescriptor(t,e)};r.getOwnPropertyDescriptor.sham&&(e.sham=!0)})),Vn=Un,$n={},Wn=Function.prototype,Hn=m&&Object.getOwnPropertyDescriptor,qn=ct(Wn,"name"),Yn={EXISTS:qn,PROPER:qn&&"something"===function(){}.name,CONFIGURABLE:qn&&(!m||m&&Hn(Wn,"name").configurable)},Jn=!u((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Xn=Fr("IE_PROTO"),Kn=a.Object,Qn=Kn.prototype,Zn=Jn?Kn.getPrototypeOf:function(t){var r=at(t);if(ct(r,Xn))return r[Xn];var e=r.constructor;return g(e)&&r instanceof e?e.prototype:r instanceof Kn?Qn:null},to=bt("iterator"),ro=!1;[].keys&&("next"in(Gn=[].keys())?(Nn=Zn(Zn(Gn)))!==Object.prototype&&(Bn=Nn):ro=!0);var eo=null==Bn||u((function(){var t={};return Bn[to].call(t)!==t}));Bn=eo?{}:zr(Bn),g(Bn[to])||Jr(Bn,to,(function(){return this}));var no={IteratorPrototype:Bn,BUGGY_SAFARI_ITERATORS:ro},oo=no.IteratorPrototype,io=function(){return this},ao=a.String,uo=a.TypeError,co=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,e={};try{(t=b(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),r=e instanceof Array}catch(t){}return function(e,n){return Nt(e),function(t){if("object"==typeof t||g(t))return t;throw uo("Can't set "+ao(t)+" as a prototype")}(n),r?t(e,n):e.__proto__=n,e}}():void 0),fo=Yn.PROPER,so=no.BUGGY_SAFARI_ITERATORS,lo=bt("iterator"),po="keys",vo="values",yo="entries",ho=function(){return this};qt.f;var bo="Array Iterator",go=be.set,mo=be.getterFor(bo);!function(t,r,e,n,o,i,a){!function(t,r,e,n){var o=r+" Iterator";t.prototype=zr(oo,{next:P(+!n,e)}),re(t,o,!1,!0),$n[o]=io}(e,r,n);var u,c,f,s=function(t){if(t===o&&d)return d;if(!so&&t in v)return v[t];switch(t){case po:case vo:case yo:return function(){return new e(this,t)}}return function(){return new e(this)}},l=r+" Iterator",p=!1,v=t.prototype,y=v[lo]||v["@@iterator"]||o&&v[o],d=!so&&y||s(o),h="Array"==r&&v.entries||y;if(h&&(u=Zn(h.call(new t)))!==Object.prototype&&u.next&&(re(u,l,!0,!0),$n[l]=ho),fo&&o==vo&&y&&y.name!==vo&&(p=!0,d=function(){return O(y,this)}),o)if(c={values:s(vo),keys:i?d:s(po),entries:s(yo)},a)for(f in c)(so||p||!(f in v))&&Jr(v,f,c[f]);else Kt({target:r,proto:!0,forced:so||p},c);a&&v[lo]!==d&&Jr(v,lo,d,{name:o}),$n[r]=d}(Array,"Array",(function(t,r){go(this,{type:bo,target:C(t),index:0,kind:r})}),(function(){var t=mo(this),r=t.target,e=t.kind,n=t.index++;return!r||n>=r.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==e?{value:n,done:!1}:"values"==e?{value:r[n],done:!1}:{value:[n,r[n]],done:!1}}),"values"),$n.Arguments=$n.Array;var wo=bt("toStringTag");for(var Oo in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var _o=a[Oo],jo=_o&&_o.prototype;jo&&jr(jo)!==wo&&Yt(jo,wo,Oo),$n[Oo]=$n.Array}var So,Po,xo=Le.forEach,Ao=!!(Po=[]["forEach"])&&u((function(){Po.call(null,So||function(){return 1},1)}))?[].forEach:function(t){return xo(this,t,arguments.length>1?arguments[1]:void 0)};Kt({target:"Array",proto:!0,forced:[].forEach!=Ao},{forEach:Ao});var To=Ln("Array").forEach,Eo=Array.prototype,Fo={DOMTokenList:!0,NodeList:!0},Mo=function(t){var r=t.forEach;return t===Eo||B(Eo,t)&&r===Eo.forEach||ct(Fo,jr(t))?To:r},Io=b([].concat),Lo=z("Reflect","ownKeys")||function(t){var r=Nr.f(Nt(t)),e=Yr.f;return e?Io(r,e(t)):r};Kt({target:"Object",stat:!0,sham:!m},{getOwnPropertyDescriptors:function(t){for(var r,e,n=C(t),o=At.f,i=Lo(n),a={},u=0;i.length>u;)void 0!==(e=o(n,r=i[u++]))&&Gr(a,r,e);return a}});var Co=R.Object.getOwnPropertyDescriptors,ko=Ar.f;Kt({target:"Object",stat:!0,forced:Object.defineProperties!==ko,sham:!m},{defineProperties:ko});var Ro=e((function(t){var r=R.Object,e=t.exports=function(t,e){return r.defineProperties(t,e)};r.defineProperties.sham&&(e.sham=!0)})),Do=Ro,zo=qt.f;Kt({target:"Object",stat:!0,forced:Object.defineProperty!==zo,sham:!m},{defineProperty:zo});var Bo=e((function(t){var r=R.Object,e=t.exports=function(t,e,n){return r.defineProperty(t,e,n)};r.defineProperty.sham&&(e.sham=!0)})),No=Bo,Go=No,Uo=a.Function,Vo=b([].concat),$o=b([].join),Wo={},Ho=c?Uo.bind:function(t){var r=Z(this),e=r.prototype,n=vn(arguments,1),o=function(){var e=Vo(n,vn(arguments));return this instanceof o?function(t,r,e){if(!ct(Wo,r)){for(var n=[],o=0;o=51||!u((function(){var t=[];return t[yi]=!1,t.concat()[0]!==t})),mi=Fn("concat"),wi=function(t){if(!k(t))return!1;var r=t[yi];return void 0!==r?!!r:ge(t)};Kt({target:"Array",proto:!0,arity:1,forced:!gi||!mi},{concat:function(t){var r,e,n,o,i,a=at(this),u=Fe(a,0),c=0;for(r=-1,n=arguments.length;rdi)throw bi(hi);for(e=0;e=di)throw bi(hi);Gr(u,c++,i)}return u.length=c,u}});var Oi=Ln("Array").concat,_i=Array.prototype,ji=function(t){var r=t.concat;return t===_i||B(_i,t)&&r===_i.concat?Oi:r};var Si=function(){this.__data__=[],this.size=0};var Pi=function(t,r){return t===r||t!=t&&r!=r};var xi=function(t,r){for(var e=t.length;e--;)if(Pi(t[e][0],r))return e;return-1},Ai=Array.prototype.splice;var Ti=function(t){var r=this.__data__,e=xi(r,t);return!(e<0)&&(e==r.length-1?r.pop():Ai.call(r,e,1),--this.size,!0)};var Ei=function(t){var r=this.__data__,e=xi(r,t);return e<0?void 0:r[e][1]};var Fi=function(t){return xi(this.__data__,t)>-1};var Mi=function(t,r){var e=this.__data__,n=xi(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this};function Ii(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r-1&&t%1==0&&t<=9007199254740991};var au=function(t){return null!=t&&iu(t.length)&&!Qi(t)};var uu=function(t){return Ka(t)&&au(t)};var cu=function(){return!1},fu=e((function(t,r){var e=r&&!r.nodeType&&r,n=e&&t&&!t.nodeType&&t,o=n&&n.exports===e?Ni.Buffer:void 0,i=(o?o.isBuffer:void 0)||cu;t.exports=i})),su=Function.prototype,lu=Object.prototype,pu=su.toString,vu=lu.hasOwnProperty,yu=pu.call(Object);var du=function(t){if(!Ka(t)||"[object Object]"!=Xi(t))return!1;var r=qa(t);if(null===r)return!0;var e=vu.call(r,"constructor")&&r.constructor;return"function"==typeof e&&e instanceof e&&pu.call(e)==yu},hu={};hu["[object Float32Array]"]=hu["[object Float64Array]"]=hu["[object Int8Array]"]=hu["[object Int16Array]"]=hu["[object Int32Array]"]=hu["[object Uint8Array]"]=hu["[object Uint8ClampedArray]"]=hu["[object Uint16Array]"]=hu["[object Uint32Array]"]=!0,hu["[object Arguments]"]=hu["[object Array]"]=hu["[object ArrayBuffer]"]=hu["[object Boolean]"]=hu["[object DataView]"]=hu["[object Date]"]=hu["[object Error]"]=hu["[object Function]"]=hu["[object Map]"]=hu["[object Number]"]=hu["[object Object]"]=hu["[object RegExp]"]=hu["[object Set]"]=hu["[object String]"]=hu["[object WeakMap]"]=!1;var bu=function(t){return Ka(t)&&iu(t.length)&&!!hu[Xi(t)]};var gu=function(t){return function(r){return t(r)}},mu=e((function(t,r){var e=r&&!r.nodeType&&r,n=e&&t&&!t.nodeType&&t,o=n&&n.exports===e&&zi.process,i=function(){try{var t=n&&n.require&&n.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=i})),wu=mu&&mu.isTypedArray,Ou=wu?gu(wu):bu;var _u=function(t,r){if(("constructor"!==r||"function"!=typeof t[r])&&"__proto__"!=r)return t[r]},ju=Object.prototype.hasOwnProperty;var Su=function(t,r,e){var n=t[r];ju.call(t,r)&&Pi(n,e)&&(void 0!==e||r in t)||Da(t,r,e)};var Pu=function(t,r,e,n){var o=!e;e||(e={});for(var i=-1,a=r.length;++i-1&&t%1==0&&t0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}},Hu=Wu(Vu);var qu=function(t,r){return Hu(Gu(t,r,zu),t+"")};var Yu=function(t,r,e){if(!Ki(e))return!1;var n=typeof r;return!!("number"==n?au(e)&&Tu(r,e.length):"string"==n&&r in e)&&Pi(e[r],t)};var Ju=function(t){return qu((function(r,e){var n=-1,o=e.length,i=o>1?e[o-1]:void 0,a=o>2?e[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,a&&Yu(e[0],e[1],a)&&(i=o<3?void 0:i,o=1),r=Object(r);++n0&&void 0!==arguments[0]?arguments[0]:{};si(this,t),vi(this,"mermaidAPIRefs",null),vi(this,"options",Qu),vi(this,"dom",null),vi(this,"mermaidCanvas",null);var e=r.mermaid,n=r.mermaidAPI;if(!(n||window.mermaidAPI||e&&e.mermaidAPI||window.mermaid&&window.mermaid.mermaidAPI))throw new Error("code-block-mermaid-plugin[init]: Package mermaid or mermaidAPI not found.");this.options=Ku(Ku({},Qu),r||{}),this.mermaidAPIRefs=n||window.mermaidAPI||e.mermaidAPI||window.mermaid.mermaidAPI,delete this.options.mermaid,delete this.options.mermaidAPI,this.mermaidAPIRefs.initialize(this.options)}return pi(t,[{key:"mountMermaidCanvas",value:function(t){this.mermaidCanvas&&document.body.contains(this.mermaidCanvas)||(this.mermaidCanvas=document.createElement("div"),this.mermaidCanvas.style="width:1024px;opacity:0;position:fixed;top:100%;",(t.$cherry.wrapperDom||document.body).appendChild(this.mermaidCanvas))}},{key:"convertMermaidSvgToImg",value:function(t,r){var e,n=new DOMParser,o=function(t){return t.replace("')}}else e=o(t)}catch(r){e=o(t)}return e}},{key:"render",value:function(t,r,e){var n,o,i,a=this,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=r;c||(c=Math.round(1e8*Math.random())),this.mountMermaidCanvas(e);var f=ji(n="mermaid-".concat(c,"-")).call(n,(new Date).getTime());this.svg2img=null!==(o=null==u?void 0:u.svg2img)&&void 0!==o&&o;try{this.mermaidAPIRefs.render(f,t,(function(t){var r=t.replace(/\s*markerUnits="0"/g,"").replace(/\s*x="NaN"/g,"").replace(/
/g,"
");i=a.convertMermaidSvgToImg(r,f)}),this.mermaidCanvas)}catch(t){return null==t?void 0:t.str}return i}}],[{key:"install",value:function(r){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o0&&e[0]<4?1:+(e[0]+e[1])),!o&&G&&(!(e=G.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=G.match(/Chrome\/(\d+)/))&&(o=+e[1]);var W=o,q=!!Object.getOwnPropertySymbols&&!a((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&W&&W<41})),H=q&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Y=u.Object,J=H?function(t){return"symbol"==typeof t}:function(t){var r=R("Symbol");return g(r)&&N(r.prototype,Y(t))},X=u.String,K=function(t){try{return X(t)}catch(t){return"Object"}},Q=u.TypeError,Z=function(t){if(g(t))return t;throw Q(K(t)+" is not a function")},tt=u.TypeError,rt=Object.defineProperty,nt="__core-js_shared__",et=u[nt]||function(t,r){try{rt(u,t,{value:r,configurable:!0,writable:!0})}catch(n){u[t]=r}return r}(nt,{}),ot=n((function(t){(t.exports=function(t,r){return et[t]||(et[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.22.6",mode:"pure",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.6/LICENSE",source:"https://github.com/zloirock/core-js"})})),it=u.Object,ut=function(t){return it(k(t))},at=b({}.hasOwnProperty),ct=Object.hasOwn||function(t,r){return at(ut(t),r)},ft=0,lt=Math.random(),st=b(1..toString),pt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+st(++ft+lt,36)},vt=ot("wks"),yt=u.Symbol,ht=yt&&yt.for,dt=H?yt:yt&&yt.withoutSetter||pt,bt=function(t){if(!ct(vt,t)||!q&&"string"!=typeof vt[t]){var r="Symbol."+t;q&&ct(yt,t)?vt[t]=yt[t]:vt[t]=H&&ht?ht(r):dt(r)}return vt[t]},gt=u.TypeError,mt=bt("toPrimitive"),_t=function(t,r){if(!I(t)||J(t))return t;var n,e,o=null==(n=t[mt])?void 0:Z(n);if(o){if(void 0===r&&(r="default"),e=w(o,t,r),!I(e)||J(e))return e;throw gt("Can't convert object to primitive value")}return void 0===r&&(r="number"),function(t,r){var n,e;if("string"===r&&g(n=t.toString)&&!I(e=w(n,t)))return e;if(g(n=t.valueOf)&&!I(e=w(n,t)))return e;if("string"!==r&&g(n=t.toString)&&!I(e=w(n,t)))return e;throw tt("Can't convert object to primitive value")}(t,r)},wt=function(t){var r=_t(t,"string");return J(r)?r:r+""},Ot=u.document,jt=I(Ot)&&I(Ot.createElement),St=function(t){return jt?Ot.createElement(t):{}},At=!m&&!a((function(){return 7!=Object.defineProperty(St("div"),"a",{get:function(){return 7}}).a})),xt=Object.getOwnPropertyDescriptor,Pt={f:m?xt:function(t,r){if(t=M(t),r=wt(r),At)try{return xt(t,r)}catch(t){}if(ct(t,r))return A(!w(S.f,t,r),t[r])}},Tt=/#|\.prototype\./,Et=function(t,r){var n=Ft[Ct(t)];return n==kt||n!=Lt&&(g(r)?a(r):!!r)},Ct=Et.normalize=function(t){return String(t).replace(Tt,".").toLowerCase()},Ft=Et.data={},Lt=Et.NATIVE="N",kt=Et.POLYFILL="P",Mt=Et,It=b(b.bind),zt=function(t,r){return Z(t),void 0===r?t:c?It(t,r):function(){return t.apply(r,arguments)}},Dt=m&&a((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Rt=u.String,Nt=u.TypeError,Gt=function(t){if(I(t))return t;throw Nt(Rt(t)+" is not an object")},Ut=u.TypeError,Bt=Object.defineProperty,$t=Object.getOwnPropertyDescriptor,Vt="enumerable",Wt="configurable",qt="writable",Ht={f:m?Dt?function(t,r,n){if(Gt(t),r=wt(r),Gt(n),"function"==typeof t&&"prototype"===r&&"value"in n&&qt in n&&!n[qt]){var e=$t(t,r);e&&e[qt]&&(t[r]=n.value,n={configurable:Wt in n?n[Wt]:e[Wt],enumerable:Vt in n?n[Vt]:e[Vt],writable:!1})}return Bt(t,r,n)}:Bt:function(t,r,n){if(Gt(t),r=wt(r),Gt(n),At)try{return Bt(t,r,n)}catch(t){}if("get"in n||"set"in n)throw Ut("Accessors not supported");return"value"in n&&(t[r]=n.value),t}},Yt=m?function(t,r,n){return Ht.f(t,r,A(1,n))}:function(t,r,n){return t[r]=n,t},Jt=Pt.f,Xt=function(t){var r=function(n,e,o){if(this instanceof r){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,o)}return p(t,this,arguments)};return r.prototype=t.prototype,r},Kt=function(t,r){var n,e,o,i,a,c,f,l,s=t.target,p=t.global,v=t.stat,y=t.proto,h=p?u:v?u[s]:(u[s]||{}).prototype,d=p?z:z[s]||Yt(z,s,{})[s],m=d.prototype;for(o in r)n=!Mt(p?o:s+(v?".":"#")+o,t.forced)&&h&&ct(h,o),a=d[o],n&&(c=t.dontCallGetSet?(l=Jt(h,o))&&l.value:h[o]),i=n&&c?c:r[o],n&&typeof a==typeof i||(f=t.bind&&n?zt(i,u):t.wrap&&n?Xt(i):y&&g(i)?b(i):i,(t.sham||i&&i.sham||a&&a.sham)&&Yt(f,"sham",!0),Yt(d,o,f),y&&(ct(z,e=s+"Prototype")||Yt(z,e,{}),Yt(z[e],o,i),t.real&&m&&!m[o]&&Yt(m,o,i)))},Qt=Math.ceil,Zt=Math.floor,tr=Math.trunc||function(t){var r=+t;return(r>0?Zt:Qt)(r)},rr=function(t){var r=+t;return r!=r||0===r?0:tr(r)},nr=Math.max,er=Math.min,or=function(t,r){var n=rr(t);return n<0?nr(n+r,0):er(n,r)},ir=Math.min,ur=function(t){return(r=t.length)>0?ir(rr(r),9007199254740991):0;var r},ar=function(t){return function(r,n,e){var o,i=M(r),u=ur(i),a=or(e,u);if(t&&n!=n){for(;u>a;)if((o=i[a++])!=o)return!0}else for(;u>a;a++)if((t||a in i)&&i[a]===n)return t||a||0;return!t&&-1}},cr={includes:ar(!0),indexOf:ar(!1)},fr={},lr=cr.indexOf,sr=b([].push),pr=function(t,r){var n,e=M(t),o=0,i=[];for(n in e)!ct(fr,n)&&ct(e,n)&&sr(i,n);for(;r.length>o;)ct(e,n=r[o++])&&(~lr(i,n)||sr(i,n));return i},vr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],yr=Object.keys||function(t){return pr(t,vr)},hr=a((function(){yr(1)}));Kt({target:"Object",stat:!0,forced:hr},{keys:function(t){return yr(ut(t))}});var dr=z.Object.keys,br={};br[bt("toStringTag")]="z";var gr,mr="[object z]"===String(br),_r=bt("toStringTag"),wr=u.Object,Or="Arguments"==T(function(){return arguments}()),jr=mr?T:function(t){var r,n,e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,r){try{return t[r]}catch(t){}}(r=wr(t),_r))?n:Or?T(r):"Object"==(e=T(r))&&g(r.callee)?"Arguments":e},Sr=u.String,Ar=function(t){if("Symbol"===jr(t))throw TypeError("Cannot convert a Symbol value to a string");return Sr(t)},xr=m&&!Dt?Object.defineProperties:function(t,r){Gt(t);for(var n,e=M(r),o=yr(r),i=o.length,u=0;i>u;)Ht.f(t,n=o[u++],e[n]);return t},Pr={f:xr},Tr=R("document","documentElement"),Er=ot("keys"),Cr=function(t){return Er[t]||(Er[t]=pt(t))},Fr="prototype",Lr="script",kr=Cr("IE_PROTO"),Mr=function(){},Ir=function(t){return"<"+Lr+">"+t+""},zr=function(t){t.write(Ir("")),t.close();var r=t.parentWindow.Object;return t=null,r},Dr=function(){try{gr=new ActiveXObject("htmlfile")}catch(t){}var t,r,n;Dr="undefined"!=typeof document?document.domain&&gr?zr(gr):(r=St("iframe"),n="java"+Lr+":",r.style.display="none",Tr.appendChild(r),r.src=String(n),(t=r.contentWindow.document).open(),t.write(Ir("document.F=Object")),t.close(),t.F):zr(gr);for(var e=vr.length;e--;)delete Dr[Fr][vr[e]];return Dr()};fr[kr]=!0;var Rr=Object.create||function(t,r){var n;return null!==t?(Mr[Fr]=Gt(t),n=new Mr,Mr[Fr]=null,n[kr]=t):n=Dr(),void 0===r?n:Pr.f(n,r)},Nr=vr.concat("length","prototype"),Gr={f:Object.getOwnPropertyNames||function(t){return pr(t,Nr)}},Ur=function(t,r,n){var e=wt(r);e in t?Ht.f(t,e,A(0,n)):t[e]=n},Br=u.Array,$r=Math.max,Vr=Gr.f,Wr="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],qr=function(t){try{return Vr(t)}catch(t){return function(t,r,n){for(var e=ur(t),o=or(r,e),i=or(void 0===n?e:n,e),u=Br($r(i-o,0)),a=0;og;g++)if((a||g in h)&&(v=d(p=h[g],g,y),t))if(r)_[g]=v;else if(v)switch(t){case 3:return!0;case 5:return p;case 6:return g;case 2:Ln(_,p)}else switch(t){case 4:return!1;case 7:Ln(_,p)}return i?-1:e||o?o:_}},Mn={forEach:kn(0),map:kn(1),filter:kn(2),some:kn(3),every:kn(4),find:kn(5),findIndex:kn(6),filterReject:kn(7)},In=Mn.forEach,zn=Cr("hidden"),Dn="Symbol",Rn="prototype",Nn=gn.set,Gn=gn.getterFor(Dn),Un=Object[Rn],Bn=u.Symbol,$n=Bn&&Bn[Rn],Vn=u.TypeError,Wn=u.QObject,qn=Pt.f,Hn=Ht.f,Yn=Hr.f,Jn=S.f,Xn=b([].push),Kn=ot("symbols"),Qn=ot("op-symbols"),Zn=ot("wks"),te=!Wn||!Wn[Rn]||!Wn[Rn].findChild,re=m&&a((function(){return 7!=Rr(Hn({},"a",{get:function(){return Hn(this,"a",{value:7}).a}})).a}))?function(t,r,n){var e=qn(Un,r);e&&delete Un[r],Hn(t,r,n),e&&t!==Un&&Hn(Un,r,e)}:Hn,ne=function(t,r){var n=Kn[t]=Rr($n);return Nn(n,{type:Dn,tag:t,description:r}),m||(n.description=r),n},ee=function(t,r,n){t===Un&&ee(Qn,r,n),Gt(t);var e=wt(r);return Gt(n),ct(Kn,e)?(n.enumerable?(ct(t,zn)&&t[zn][e]&&(t[zn][e]=!1),n=Rr(n,{enumerable:A(0,!1)})):(ct(t,zn)||Hn(t,zn,A(1,{})),t[zn][e]=!0),re(t,e,n)):Hn(t,e,n)},oe=function(t,r){Gt(t);var n=M(r),e=yr(n).concat(ce(n));return In(e,(function(r){m&&!w(ie,n,r)||ee(t,r,n[r])})),t},ie=function(t){var r=wt(t),n=w(Jn,this,r);return!(this===Un&&ct(Kn,r)&&!ct(Qn,r))&&(!(n||!ct(this,r)||!ct(Kn,r)||ct(this,zn)&&this[zn][r])||n)},ue=function(t,r){var n=M(t),e=wt(r);if(n!==Un||!ct(Kn,e)||ct(Qn,e)){var o=qn(n,e);return!o||!ct(Kn,e)||ct(n,zn)&&n[zn][e]||(o.enumerable=!0),o}},ae=function(t){var r=Yn(M(t)),n=[];return In(r,(function(t){ct(Kn,t)||ct(fr,t)||Xn(n,t)})),n},ce=function(t){var r=t===Un,n=Yn(r?Qn:M(t)),e=[];return In(n,(function(t){!ct(Kn,t)||r&&!ct(Un,t)||Xn(e,Kn[t])})),e};q||(Bn=function(){if(N($n,this))throw Vn("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?Ar(arguments[0]):void 0,r=pt(t),n=function(t){this===Un&&w(n,Qn,t),ct(this,zn)&&ct(this[zn],r)&&(this[zn][r]=!1),re(this,r,A(1,t))};return m&&te&&re(Un,r,{configurable:!0,set:n}),ne(r,t)},$n=Bn[Rn],Jr($n,"toString",(function(){return Gn(this).tag})),Jr(Bn,"withoutSetter",(function(t){return ne(pt(t),t)})),S.f=ie,Ht.f=ee,Pr.f=oe,Pt.f=ue,Gr.f=Hr.f=ae,Yr.f=ce,Xr.f=function(t){return ne(bt(t),t)},m&&Hn($n,"description",{configurable:!0,get:function(){return Gn(this).description}})),Kt({global:!0,constructor:!0,wrap:!0,forced:!q,sham:!q},{Symbol:Bn}),In(yr(Zn),(function(t){!function(t){var r=z.Symbol||(z.Symbol={});ct(r,t)||Kr(r,t,{value:Xr.f(t)})}(t)})),Kt({target:Dn,stat:!0,forced:!q},{useSetter:function(){te=!0},useSimple:function(){te=!1}}),Kt({target:"Object",stat:!0,forced:!q,sham:!m},{create:function(t,r){return void 0===r?Rr(t):oe(Rr(t),r)},defineProperty:ee,defineProperties:oe,getOwnPropertyDescriptor:ue}),Kt({target:"Object",stat:!0,forced:!q},{getOwnPropertyNames:ae}),function(){var t=R("Symbol"),r=t&&t.prototype,n=r&&r.valueOf,e=bt("toPrimitive");r&&!r[e]&&Jr(r,e,(function(t){return w(n,this)}),{arity:1})}(),rn(Bn,Dn),fr[zn]=!0;var fe=q&&!!Symbol.for&&!!Symbol.keyFor,le=ot("string-to-symbol-registry"),se=ot("symbol-to-string-registry");Kt({target:"Symbol",stat:!0,forced:!fe},{for:function(t){var r=Ar(t);if(ct(le,r))return le[r];var n=R("Symbol")(r);return le[r]=n,se[n]=r,n}});var pe=ot("symbol-to-string-registry");Kt({target:"Symbol",stat:!0,forced:!fe},{keyFor:function(t){if(!J(t))throw TypeError(K(t)+" is not a symbol");if(ct(pe,t))return pe[t]}});var ve=b([].slice),ye=R("JSON","stringify"),he=b(/./.exec),de=b("".charAt),be=b("".charCodeAt),ge=b("".replace),me=b(1..toString),_e=/[\uD800-\uDFFF]/g,we=/^[\uD800-\uDBFF]$/,Oe=/^[\uDC00-\uDFFF]$/,je=!q||a((function(){var t=R("Symbol")();return"[null]"!=ye([t])||"{}"!=ye({a:t})||"{}"!=ye(Object(t))})),Se=a((function(){return'"\\udf06\\ud834"'!==ye("\udf06\ud834")||'"\\udead"'!==ye("\udead")})),Ae=function(t,r){var n=ve(arguments),e=r;if((I(r)||void 0!==t)&&!J(t))return mn(r)||(r=function(t,r){if(g(e)&&(r=w(e,this,t,r)),!J(r))return r}),n[1]=r,p(ye,null,n)},xe=function(t,r,n){var e=de(n,r-1),o=de(n,r+1);return he(we,t)&&!he(Oe,o)||he(Oe,t)&&!he(we,e)?"\\u"+me(be(t,0),16):t};ye&&Kt({target:"JSON",stat:!0,arity:3,forced:je||Se},{stringify:function(t,r,n){var e=ve(arguments),o=p(je?Ae:ye,null,e);return Se&&"string"==typeof o?ge(o,_e,xe):o}});var Pe=!q||a((function(){Yr.f(1)}));Kt({target:"Object",stat:!0,forced:Pe},{getOwnPropertySymbols:function(t){var r=Yr.f;return r?r(ut(t)):[]}});var Te=z.Object.getOwnPropertySymbols,Ee=bt("species"),Ce=function(t){return W>=51||!a((function(){var r=[];return(r.constructor={})[Ee]=function(){return{foo:1}},1!==r[t](Boolean).foo}))},Fe=Mn.filter,Le=Ce("filter");Kt({target:"Array",proto:!0,forced:!Le},{filter:function(t){return Fe(this,t,arguments.length>1?arguments[1]:void 0)}});var ke=function(t){return z[t+"Prototype"]},Me=ke("Array").filter,Ie=Array.prototype,ze=function(t){var r=t.filter;return t===Ie||N(Ie,t)&&r===Ie.filter?Me:r},De=Pt.f,Re=a((function(){De(1)}));Kt({target:"Object",stat:!0,forced:!m||Re,sham:!m},{getOwnPropertyDescriptor:function(t,r){return De(M(t),r)}});var Ne,Ge,Ue,Be=n((function(t){var r=z.Object,n=t.exports=function(t,n){return r.getOwnPropertyDescriptor(t,n)};r.getOwnPropertyDescriptor.sham&&(n.sham=!0)})),$e=Be,Ve={},We=Function.prototype,qe=m&&Object.getOwnPropertyDescriptor,He=ct(We,"name"),Ye={EXISTS:He,PROPER:He&&"something"===function(){}.name,CONFIGURABLE:He&&(!m||m&&qe(We,"name").configurable)},Je=!a((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Xe=Cr("IE_PROTO"),Ke=u.Object,Qe=Ke.prototype,Ze=Je?Ke.getPrototypeOf:function(t){var r=ut(t);if(ct(r,Xe))return r[Xe];var n=r.constructor;return g(n)&&r instanceof n?n.prototype:r instanceof Ke?Qe:null},to=bt("iterator"),ro=!1;[].keys&&("next"in(Ue=[].keys())?(Ge=Ze(Ze(Ue)))!==Object.prototype&&(Ne=Ge):ro=!0);var no=null==Ne||a((function(){var t={};return Ne[to].call(t)!==t}));Ne=no?{}:Rr(Ne),g(Ne[to])||Jr(Ne,to,(function(){return this}));var eo={IteratorPrototype:Ne,BUGGY_SAFARI_ITERATORS:ro},oo=eo.IteratorPrototype,io=function(){return this};u.String,u.TypeError;Object.setPrototypeOf||"__proto__"in{}&&function(){var t,r=!1,n={};try{(t=b(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),r=n instanceof Array}catch(t){}}();var uo=Ye.PROPER,ao=eo.BUGGY_SAFARI_ITERATORS,co=bt("iterator"),fo="keys",lo="values",so="entries",po=function(){return this};Ht.f;var vo="Array Iterator",yo=gn.set,ho=gn.getterFor(vo);!function(t,r,n,e,o,i,u){!function(t,r,n,e){var o=r+" Iterator";t.prototype=Rr(oo,{next:A(+!e,n)}),rn(t,o,!1,!0),Ve[o]=io}(n,r,e);var a,c,f,l=function(t){if(t===o&&h)return h;if(!ao&&t in v)return v[t];switch(t){case fo:case lo:case so:return function(){return new n(this,t)}}return function(){return new n(this)}},s=r+" Iterator",p=!1,v=t.prototype,y=v[co]||v["@@iterator"]||o&&v[o],h=!ao&&y||l(o),d="Array"==r&&v.entries||y;if(d&&(a=Ze(d.call(new t)))!==Object.prototype&&a.next&&(rn(a,s,!0,!0),Ve[s]=po),uo&&o==lo&&y&&y.name!==lo&&(p=!0,h=function(){return w(y,this)}),o)if(c={values:l(lo),keys:i?h:l(fo),entries:l(so)},u)for(f in c)(ao||p||!(f in v))&&Jr(v,f,c[f]);else Kt({target:r,proto:!0,forced:ao||p},c);u&&v[co]!==h&&Jr(v,co,h,{name:o}),Ve[r]=h}(Array,"Array",(function(t,r){yo(this,{type:vo,target:M(t),index:0,kind:r})}),(function(){var t=ho(this),r=t.target,n=t.kind,e=t.index++;return!r||e>=r.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:e,done:!1}:"values"==n?{value:r[e],done:!1}:{value:[e,r[e]],done:!1}}),"values"),Ve.Arguments=Ve.Array;var bo=bt("toStringTag");for(var go in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var mo=u[go],_o=mo&&mo.prototype;_o&&jr(_o)!==bo&&Yt(_o,bo,go),Ve[go]=Ve.Array}var wo,Oo,jo=Mn.forEach,So=!!(Oo=[]["forEach"])&&a((function(){Oo.call(null,wo||function(){return 1},1)}))?[].forEach:function(t){return jo(this,t,arguments.length>1?arguments[1]:void 0)};Kt({target:"Array",proto:!0,forced:[].forEach!=So},{forEach:So});var Ao=ke("Array").forEach,xo=Array.prototype,Po={DOMTokenList:!0,NodeList:!0},To=function(t){var r=t.forEach;return t===xo||N(xo,t)&&r===xo.forEach||ct(Po,jr(t))?Ao:r},Eo=b([].concat),Co=R("Reflect","ownKeys")||function(t){var r=Gr.f(Gt(t)),n=Yr.f;return n?Eo(r,n(t)):r};Kt({target:"Object",stat:!0,sham:!m},{getOwnPropertyDescriptors:function(t){for(var r,n,e=M(t),o=Pt.f,i=Co(e),u={},a=0;i.length>a;)void 0!==(n=o(e,r=i[a++]))&&Ur(u,r,n);return u}});var Fo=z.Object.getOwnPropertyDescriptors,Lo=Pr.f;Kt({target:"Object",stat:!0,forced:Object.defineProperties!==Lo,sham:!m},{defineProperties:Lo});var ko=n((function(t){var r=z.Object,n=t.exports=function(t,n){return r.defineProperties(t,n)};r.defineProperties.sham&&(n.sham=!0)})),Mo=ko,Io=Ht.f;Kt({target:"Object",stat:!0,forced:Object.defineProperty!==Io,sham:!m},{defineProperty:Io});var zo=n((function(t){var r=z.Object,n=t.exports=function(t,n,e){return r.defineProperty(t,n,e)};r.defineProperty.sham&&(n.sham=!0)})),Do=zo,Ro=zo,No=r(n((function(t){t.exports=function(t,r,n){return r in t?Ro(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports}))),Go=r(n((function(t){t.exports=function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports}))),Uo=r(n((function(t){function r(t,r){for(var n=0;n=51||!a((function(){var t=[];return t[Bo]=!1,t.concat()[0]!==t})),Ho=Ce("concat"),Yo=function(t){if(!I(t))return!1;var r=t[Bo];return void 0!==r?!!r:mn(t)};Kt({target:"Array",proto:!0,arity:1,forced:!qo||!Ho},{concat:function(t){var r,n,e,o,i,u=ut(this),a=Fn(u,0),c=0;for(r=-1,e=arguments.length;r$o)throw Wo(Vo);for(n=0;n=$o)throw Wo(Vo);Ur(a,c++,i)}return a.length=c,a}});var Jo=ke("Array").concat,Xo=Array.prototype,Ko=function(t){var r=t.concat;return t===Xo||N(Xo,t)&&r===Xo.concat?Jo:r};var Qo=function(){this.__data__=[],this.size=0};var Zo=function(t,r){return t===r||t!=t&&r!=r};var ti=function(t,r){for(var n=t.length;n--;)if(Zo(t[n][0],r))return n;return-1},ri=Array.prototype.splice;var ni=function(t){var r=this.__data__,n=ti(r,t);return!(n<0)&&(n==r.length-1?r.pop():ri.call(r,n,1),--this.size,!0)};var ei=function(t){var r=this.__data__,n=ti(r,t);return n<0?void 0:r[n][1]};var oi=function(t){return ti(this.__data__,t)>-1};var ii=function(t,r){var n=this.__data__,e=ti(n,t);return e<0?(++this.size,n.push([t,r])):n[e][1]=r,this};function ui(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r-1&&t%1==0&&t<=9007199254740991};var Mu=function(t){return null!=t&&ku(t.length)&&!xi(t)};var Iu=function(t){return Au(t)&&Mu(t)};var zu=function(){return!1},Du=n((function(t,r){var n=r&&!r.nodeType&&r,e=n&&t&&!t.nodeType&&t,o=e&&e.exports===n?yi.Buffer:void 0,i=(o?o.isBuffer:void 0)||zu;t.exports=i})),Ru=Function.prototype,Nu=Object.prototype,Gu=Ru.toString,Uu=Nu.hasOwnProperty,Bu=Gu.call(Object);var $u=function(t){if(!Au(t)||"[object Object]"!=Si(t))return!1;var r=wu(t);if(null===r)return!0;var n=Uu.call(r,"constructor")&&r.constructor;return"function"==typeof n&&n instanceof n&&Gu.call(n)==Bu},Vu={};Vu["[object Float32Array]"]=Vu["[object Float64Array]"]=Vu["[object Int8Array]"]=Vu["[object Int16Array]"]=Vu["[object Int32Array]"]=Vu["[object Uint8Array]"]=Vu["[object Uint8ClampedArray]"]=Vu["[object Uint16Array]"]=Vu["[object Uint32Array]"]=!0,Vu["[object Arguments]"]=Vu["[object Array]"]=Vu["[object ArrayBuffer]"]=Vu["[object Boolean]"]=Vu["[object DataView]"]=Vu["[object Date]"]=Vu["[object Error]"]=Vu["[object Function]"]=Vu["[object Map]"]=Vu["[object Number]"]=Vu["[object Object]"]=Vu["[object RegExp]"]=Vu["[object Set]"]=Vu["[object String]"]=Vu["[object WeakMap]"]=!1;var Wu=function(t){return Au(t)&&ku(t.length)&&!!Vu[Si(t)]};var qu=function(t){return function(r){return t(r)}},Hu=n((function(t,r){var n=r&&!r.nodeType&&r,e=n&&t&&!t.nodeType&&t,o=e&&e.exports===n&&pi.process,i=function(){try{var t=e&&e.require&&e.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=i})),Yu=Hu&&Hu.isTypedArray,Ju=Yu?qu(Yu):Wu;var Xu=function(t,r){if(("constructor"!==r||"function"!=typeof t[r])&&"__proto__"!=r)return t[r]},Ku=Object.prototype.hasOwnProperty;var Qu=function(t,r,n){var e=t[r];Ku.call(t,r)&&Zo(e,n)&&(void 0!==n||r in t)||su(t,r,n)};var Zu=function(t,r,n,e){var o=!n;n||(n={});for(var i=-1,u=r.length;++i-1&&t%1==0&&t0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}},_a=ma(ba);var wa=function(t,r){return _a(ha(t,r,pa),t+"")};var Oa=function(t,r,n){if(!Ai(n))return!1;var e=typeof r;return!!("number"==e?Mu(n)&&na(r,n.length):"string"==e&&r in n)&&Zo(n[r],t)};var ja=function(t){return wa((function(r,n){var e=-1,o=n.length,i=o>1?n[o-1]:void 0,u=o>2?n[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,u&&Oa(n[0],n[1],u)&&(i=o<3?void 0:i,o=1),r=Object(r);++e>>0||(Ia(Ma,n)?16:10))}:Fa;Kt({global:!0,forced:parseInt!=za},{parseInt:za});var Da=z.parseInt,Ra=function(){var t,r,n,e,o,i,u,a,c,f,l,s,p,v,y,h,d,b,g,m,_,w,O,j,S,A,x,P,T,E,C,F,L,k,M,I,z,D,R,N,G,U,B,$,V,W,q,H,Y,J,X,K,Q,Z,tt,rt=32768,nt=0,et=1,ot=2,it=8192,ut=2*rt,at=3,ct=258,ft=8192,lt=ft,st=8192,pt=st-1,vt=rt-1,yt=0,ht=4096,dt=ct+at+1,bt=rt-dt,gt=1,mt=15,_t=7,wt=29,Ot=256,jt=256,St=Ot+1+wt,At=30,xt=19,Pt=16,Tt=17,Et=18,Ct=2*St+1,Ft=Da((13+at-1)/at),Lt=null;function kt(){this.fc=0,this.dl=0}function Mt(){this.dyn_tree=null,this.static_tree=null,this.extra_bits=null,this.extra_base=0,this.elems=0,this.max_length=0,this.max_code=0}function It(t,r,n,e){this.good_length=t,this.max_lazy=r,this.nice_length=n,this.max_chain=e}function zt(){this.next=null,this.len=0,this.ptr=new Array(it),this.off=0}var Dt=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Rt=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Nt=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Gt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Ut=[new It(0,0,0,0),new It(4,4,8,4),new It(4,5,16,8),new It(4,6,32,32),new It(4,4,16,16),new It(8,16,32,32),new It(8,16,128,128),new It(8,32,128,256),new It(32,128,258,1024),new It(32,258,258,4096)];function Bt(r){r.next=t,t=r}function $t(t){return l[rt+t]}function Vt(t,r){return l[rt+t]=r}function Wt(e){Lt[i+o++]=e,i+o==it&&function(){if(0!=o){var e,u;for(null!=t?(a=t,t=t.next):a=new zt,a.next=null,a.len=a.off=0,e=a,null==r?r=n=e:n=n.next=e,e.len=o-i,u=0;u>>8):(Wt(255&t),Wt(t>>>8))}function Ht(){y=(y<>7)])}function Xt(t,r,n){return t[r].fcbt?_-bt:yt,c=_+ct,f=a[o+i-1],s=a[o+i];m>=P&&(e>>=2);do{if(a[(r=t)+i]==s&&a[r+i-1]==f&&a[r]==a[o]&&a[++r]==a[o+1]){o+=2,r++;do{}while(a[++o]==a[++r]&&a[++o]==a[++r]&&a[++o]==a[++r]&&a[++o]==a[++r]&&a[++o]==a[++r]&&a[++o]==a[++r]&&a[++o]==a[++r]&&a[++o]==a[++r]&&oi){if(w=t,i=n,n>=ct)break;f=a[o+i-1],s=a[o+i]}}}while((t=l[t&vt])>u&&0!=--e);return i}function Zt(){var t,r,n=ut-j-_;if(-1==n)n--;else if(_>=rt+bt){for(t=0;t=rt?r-rt:yt);for(t=0;t=rt?r-rt:yt;n+=rt}O||((t=Kt(a,_+j,n))<=0?O=!0:j+=t)}function tr(){O||(s=0,p=0,function(){var t,r,n,e,o;if(0!=F[0].dl)return;for(k.dyn_tree=T,k.static_tree=C,k.extra_bits=Dt,k.extra_base=Ot+1,k.elems=St,k.max_length=mt,k.max_code=0,M.dyn_tree=E,M.static_tree=F,M.extra_bits=Rt,M.extra_base=0,M.elems=At,M.max_length=mt,M.max_code=0,I.dyn_tree=L,I.static_tree=null,I.extra_bits=Nt,I.extra_base=0,I.elems=xt,I.max_length=_t,I.max_code=0,n=0,e=0;e>=7;ej&&(g=j),g>=at)if(t=lr(_-w,g-at),j-=g,g<=A){g--;do{_++,Ht()}while(0!=--g);_++}else _+=g,g=0,y=((y=255&a[_])<j&&(g=j),g==at&&_-w>ht&&g--),m>=at&&g<=m){var t;t=lr(_-1-d,m-at),j-=m-1,m-=2;do{_++,Ht()}while(0!=--m);b=0,g=at-1,_++,t&&(fr(0),v=_)}else 0!=b?(lr(0,255&a[_-1])&&(fr(0),v=_),_++,j--):(b=1,_++,j--);for(;jr.len&&(a=r.len),c=0;co-i&&(a=o-i),c=0;c>1;r>=1;r--)or(e,r);do{r=D[gt],D[gt]=D[R--],or(e,gt),n=D[gt],D[--N]=r,D[--N]=n,e[a].fc=e[r].fc+e[n].fc,G[r]>G[n]+1?G[a]=G[r]:G[a]=G[n]+1,e[r].dl=e[n].dl=a,D[gt]=a++,or(e,gt)}while(R>=2);D[--N]=D[gt],function(t){var r,n,e,o,i,u,a=t.dyn_tree,c=t.extra_bits,f=t.extra_base,l=t.max_code,s=t.max_length,p=t.static_tree,v=0;for(o=0;o<=mt;o++)z[o]=0;for(a[D[N]].dl=0,r=N+1;rs&&(o=s,v++),a[n].dl=o,n>l||(z[o]++,i=0,n>=f&&(i=c[n-f]),u=a[n].fc,K+=u*(o+i),null!=p&&(Q+=u*(p[n].dl+i)));if(0!=v){do{for(o=s-1;0==z[o];)o--;z[o]--,z[o+1]+=2,z[s]--,v-=2}while(v>0);for(o=s;0!=o;o--)for(n=z[o];0!=n;)(e=D[--r])>l||(a[e].dl!=o&&(K+=(o-a[e].dl)*a[e].fc,a[e].fc=o),n--)}}(t),ir(e,u)}function ar(t,r){var n,e,o=-1,i=t[0].dl,u=0,a=7,c=4;for(0==i&&(a=138,c=3),t[r+1].dl=65535,n=0;n<=r;n++)e=i,i=t[n+1].dl,++u=3&&0==L[Gt[t]].dl;t--);return K+=3*(t+1)+5+5+4,t}(),(n=Q+3+7>>3)<=(r=K+3+7>>3)&&(r=n),o+4<=r&&v>=0)for(vr((nt<<1)+t,3),hr(),qt(o),qt(~o),i=0;i2&&0==(4095&q)){var n,e=8*q,o=_-v;for(n=0;n>=3,H>=1}while(upr-r?(qt(s|=t<>pr-p,p+=r-pr):(s|=t<>=1,n<<=1}while(--r>0);return n>>1}function hr(){p>8?qt(s):p>0&&Wt(s),s=0,p=0}return function(o,i){var u,s;Z=o,tt=0,void 0===i&&(i=6),function(o){var i;if(o?o<1?o=1:o>9&&(o=9):o=6,x=o,e=!1,O=!1,null==Lt){for(t=r=n=null,Lt=new Array(it),a=new Array(ut),c=new Array(lt),f=new Array(32832),l=new Array(65536),T=new Array(Ct),i=0;i0;){var y=new Array(u);for(s=0;s>4,o=(15&r)<<2|n>>6,i=63&n,u="";return u+=Ba(63&t>>2),u+=Ba(63&e),u+=Ba(63&o),u+=Ba(63&i)}function Ba(t){var r=t;return r<10?String.fromCharCode(48+r):(r-=10)<26?String.fromCharCode(65+r):(r-=26)<26?String.fromCharCode(97+r):0===(r-=26)?"-":1===r?"_":"?"}function $a(t,r){var n,e=unescape(encodeURIComponent(t));return Ko(n="".concat(r,"/svg/")).call(n,function(t){for(var r="",n=0;n0&&void 0!==arguments[0]?arguments[0]:{};Go(this,t);this.baseUrl=null!==(r=n.baseUrl)&&void 0!==r?r:"http://www.plantuml.com/plantuml"}return Uo(t,[{key:"render",value:function(t,r){var n,e,o=r;o||(o=Math.round(1e8*Math.random()));var i=Ko(n="plantuml-".concat(o,"-")).call(n,(new Date).getTime());return Ko(e='')}}],[{key:"install",value:function(r,n){var e;ja(r,{engine:{syntax:{codeBlock:{customRenderer:{plantuml:new t(Ga(Ga({},n),null!==(e=r.engine.syntax.plantuml)&&void 0!==e?e:{}))}}}}})}}]),t}();return Va})); +version https://git-lfs.github.com/spec/v1 +oid sha256:79bc6ec5258530e94015480fa115cd275af0de0509bef515983fc128e0640347 +size 44248 diff --git a/dist/cherry-markdown.core.common.d.ts b/dist/cherry-markdown.core.common.d.ts index e0f4da5a4..d565ac2c6 100644 --- a/dist/cherry-markdown.core.common.d.ts +++ b/dist/cherry-markdown.core.common.d.ts @@ -1,3 +1,3 @@ -import Cherry, { MenuHookBase, SyntaxHookBase } from "./types/index.core"; -export { MenuHookBase, SyntaxHookBase }; -export default Cherry; \ No newline at end of file +version https://git-lfs.github.com/spec/v1 +oid sha256:94638491176c689c7e489fd6f73482a4e228ffaba22fcbd31992ec4d614be7a9 +size 138 diff --git a/dist/cherry-markdown.core.common.js b/dist/cherry-markdown.core.common.js index 789fbab61..dd88a0929 100644 --- a/dist/cherry-markdown.core.common.js +++ b/dist/cherry-markdown.core.common.js @@ -1 +1,3 @@ -"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("jsdom"),t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e,t){return e(t={exports:{}},t.exports),t.exports}var i,A,a=function(e){return e&&e.Math==Math&&e},o=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof t&&t)||function(){return this}()||Function("return this")(),s=function(e){try{return!!e()}catch(e){return!0}},l=!s((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),c=Function.prototype,u=c.apply,h=c.call,f="object"==typeof Reflect&&Reflect.apply||(l?h.bind(u):function(){return h.apply(u,arguments)}),d=Function.prototype,p=d.bind,g=d.call,m=l&&p.bind(g,g),v=l?function(e){return e&&m(e)}:function(e){return e&&function(){return g.apply(e,arguments)}},T=function(e){return"function"==typeof e},y=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),E=Function.prototype.call,b=l?E.bind(E):function(){return E.apply(E,arguments)},B={}.propertyIsEnumerable,C=Object.getOwnPropertyDescriptor,w={f:C&&!B.call({1:2},1)?function(e){var t=C(this,e);return!!t&&t.enumerable}:B},_=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},S=v({}.toString),k=v("".slice),Q=function(e){return k(S(e),8,-1)},I=o.Object,x=v("".split),L=s((function(){return!I("z").propertyIsEnumerable(0)}))?function(e){return"String"==Q(e)?x(e,""):I(e)}:I,F=o.TypeError,N=function(e){if(null==e)throw F("Can't call method on "+e);return e},D=function(e){return L(N(e))},U=function(e){return"object"==typeof e?null!==e:T(e)},M={},O=function(e){return T(e)?e:void 0},H=function(e,t){return arguments.length<2?O(M[e])||O(o[e]):M[e]&&M[e][t]||o[e]&&o[e][t]},R=v({}.isPrototypeOf),P=H("navigator","userAgent")||"",K=o.process,G=o.Deno,$=K&&K.versions||G&&G.version,X=$&&$.v8;X&&(A=(i=X.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!A&&P&&(!(i=P.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=P.match(/Chrome\/(\d+)/))&&(A=+i[1]);var V=A,W=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V&&V<41})),j=W&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Y=o.Object,J=j?function(e){return"symbol"==typeof e}:function(e){var t=H("Symbol");return T(t)&&R(t.prototype,Y(e))},z=o.String,q=function(e){try{return z(e)}catch(e){return"Object"}},Z=o.TypeError,ee=function(e){if(T(e))return e;throw Z(q(e)+" is not a function")},te=function(e,t){var n=e[t];return null==n?void 0:ee(n)},ne=o.TypeError,re=Object.defineProperty,ie="__core-js_shared__",Ae=o[ie]||function(e,t){try{re(o,e,{value:t,configurable:!0,writable:!0})}catch(n){o[e]=t}return t}(ie,{}),ae=r((function(e){(e.exports=function(e,t){return Ae[e]||(Ae[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.22.6",mode:"pure",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.6/LICENSE",source:"https://github.com/zloirock/core-js"})})),oe=o.Object,se=function(e){return oe(N(e))},le=v({}.hasOwnProperty),ce=Object.hasOwn||function(e,t){return le(se(e),t)},ue=0,he=Math.random(),fe=v(1..toString),de=function(e){return"Symbol("+(void 0===e?"":e)+")_"+fe(++ue+he,36)},pe=ae("wks"),ge=o.Symbol,me=ge&&ge.for,ve=j?ge:ge&&ge.withoutSetter||de,Te=function(e){if(!ce(pe,e)||!W&&"string"!=typeof pe[e]){var t="Symbol."+e;W&&ce(ge,e)?pe[e]=ge[e]:pe[e]=j&&me?me(t):ve(t)}return pe[e]},ye=o.TypeError,Ee=Te("toPrimitive"),be=function(e,t){if(!U(e)||J(e))return e;var n,r=te(e,Ee);if(r){if(void 0===t&&(t="default"),n=b(r,e,t),!U(n)||J(n))return n;throw ye("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&T(n=e.toString)&&!U(r=b(n,e)))return r;if(T(n=e.valueOf)&&!U(r=b(n,e)))return r;if("string"!==t&&T(n=e.toString)&&!U(r=b(n,e)))return r;throw ne("Can't convert object to primitive value")}(e,t)},Be=function(e){var t=be(e,"string");return J(t)?t:t+""},Ce=o.document,we=U(Ce)&&U(Ce.createElement),_e=function(e){return we?Ce.createElement(e):{}},Se=!y&&!s((function(){return 7!=Object.defineProperty(_e("div"),"a",{get:function(){return 7}}).a})),ke=Object.getOwnPropertyDescriptor,Qe={f:y?ke:function(e,t){if(e=D(e),t=Be(t),Se)try{return ke(e,t)}catch(e){}if(ce(e,t))return _(!b(w.f,e,t),e[t])}},Ie=/#|\.prototype\./,xe=function(e,t){var n=Fe[Le(e)];return n==De||n!=Ne&&(T(t)?s(t):!!t)},Le=xe.normalize=function(e){return String(e).replace(Ie,".").toLowerCase()},Fe=xe.data={},Ne=xe.NATIVE="N",De=xe.POLYFILL="P",Ue=xe,Me=v(v.bind),Oe=function(e,t){return ee(e),void 0===t?e:l?Me(e,t):function(){return e.apply(t,arguments)}},He=y&&s((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Re=o.String,Pe=o.TypeError,Ke=function(e){if(U(e))return e;throw Pe(Re(e)+" is not an object")},Ge=o.TypeError,$e=Object.defineProperty,Xe=Object.getOwnPropertyDescriptor,Ve="enumerable",We="configurable",je="writable",Ye=y?He?function(e,t,n){if(Ke(e),t=Be(t),Ke(n),"function"==typeof e&&"prototype"===t&&"value"in n&&je in n&&!n[je]){var r=Xe(e,t);r&&r[je]&&(e[t]=n.value,n={configurable:We in n?n[We]:r[We],enumerable:Ve in n?n[Ve]:r[Ve],writable:!1})}return $e(e,t,n)}:$e:function(e,t,n){if(Ke(e),t=Be(t),Ke(n),Se)try{return $e(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Ge("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Je={f:Ye},ze=y?function(e,t,n){return Je.f(e,t,_(1,n))}:function(e,t,n){return e[t]=n,e},qe=Qe.f,Ze=function(e){var t=function(n,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,i)}return f(e,this,arguments)};return t.prototype=e.prototype,t},et=function(e,t){var n,r,i,A,a,s,l,c,u=e.target,h=e.global,f=e.stat,d=e.proto,p=h?o:f?o[u]:(o[u]||{}).prototype,g=h?M:M[u]||ze(M,u,{})[u],m=g.prototype;for(i in t)n=!Ue(h?i:u+(f?".":"#")+i,e.forced)&&p&&ce(p,i),a=g[i],n&&(s=e.dontCallGetSet?(c=qe(p,i))&&c.value:p[i]),A=n&&s?s:t[i],n&&typeof a==typeof A||(l=e.bind&&n?Oe(A,o):e.wrap&&n?Ze(A):d&&T(A)?v(A):A,(e.sham||A&&A.sham||a&&a.sham)&&ze(l,"sham",!0),ze(g,i,l),d&&(ce(M,r=u+"Prototype")||ze(M,r,{}),ze(M[r],i,A),e.real&&m&&!m[i]&&ze(m,i,A)))},tt=v([].slice),nt=o.Function,rt=v([].concat),it=v([].join),At={},at=l?nt.bind:function(e){var t=ee(this),n=t.prototype,r=tt(arguments,1),i=function(){var n=rt(r,tt(arguments));return this instanceof i?function(e,t,n){if(!ce(At,t)){for(var r=[],i=0;i0?kt:St)(t)},It=function(e){var t=+e;return t!=t||0===t?0:Qt(t)},xt=Math.max,Lt=Math.min,Ft=function(e,t){var n=It(e);return n<0?xt(n+t,0):Lt(n,t)},Nt=Math.min,Dt=function(e){return e>0?Nt(It(e),9007199254740991):0},Ut=function(e){return Dt(e.length)},Mt=function(e){return function(t,n,r){var i,A=D(t),a=Ut(A),o=Ft(r,a);if(e&&n!=n){for(;a>o;)if((i=A[o++])!=i)return!0}else for(;a>o;o++)if((e||o in A)&&A[o]===n)return e||o||0;return!e&&-1}},Ot={includes:Mt(!0),indexOf:Mt(!1)},Ht={},Rt=Ot.indexOf,Pt=v([].push),Kt=function(e,t){var n,r=D(e),i=0,A=[];for(n in r)!ce(Ht,n)&&ce(r,n)&&Pt(A,n);for(;t.length>i;)ce(r,n=t[i++])&&(~Rt(A,n)||Pt(A,n));return A},Gt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],$t=Object.keys||function(e){return Kt(e,Gt)},Xt=y&&!He?Object.defineProperties:function(e,t){Ke(e);for(var n,r=D(t),i=$t(t),A=i.length,a=0;A>a;)Je.f(e,n=i[a++],r[n]);return e},Vt={f:Xt},Wt=H("document","documentElement"),jt=ae("keys"),Yt=function(e){return jt[e]||(jt[e]=de(e))},Jt="prototype",zt="script",qt=Yt("IE_PROTO"),Zt=function(){},en=function(e){return"<"+zt+">"+e+""},tn=function(e){e.write(en("")),e.close();var t=e.parentWindow.Object;return e=null,t},nn=function(){try{Bt=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;nn="undefined"!=typeof document?document.domain&&Bt?tn(Bt):(t=_e("iframe"),n="java"+zt+":",t.style.display="none",Wt.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(en("document.F=Object")),e.close(),e.F):tn(Bt);for(var r=Gt.length;r--;)delete nn[Jt][Gt[r]];return nn()};Ht[qt]=!0;var rn=Object.create||function(e,t){var n;return null!==e?(Zt[Jt]=Ke(e),n=new Zt,Zt[Jt]=null,n[qt]=e):n=nn(),void 0===t?n:Vt.f(n,t)},An=H("Reflect","construct"),an=Object.prototype,on=[].push,sn=s((function(){function e(){}return!(An((function(){}),[],e)instanceof e)})),ln=!s((function(){An((function(){}))})),cn=sn||ln;et({target:"Reflect",stat:!0,forced:cn,sham:cn},{construct:function(e,t){_t(e),Ke(t);var n=arguments.length<3?e:_t(arguments[2]);if(ln&&!sn)return An(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return f(on,r,t),new(f(at,e,r))}var i=n.prototype,A=rn(U(i)?i:an),a=f(e,A,t);return U(a)?a:A}});var un=M.Reflect.construct,hn=un,fn=s((function(){$t(1)}));et({target:"Object",stat:!0,forced:fn},{keys:function(e){return $t(se(e))}});var dn,pn,gn,mn=M.Object.keys,vn=mn,Tn=o.String,yn=function(e){if("Symbol"===ht(e))throw TypeError("Cannot convert a Symbol value to a string");return Tn(e)},En=Gt.concat("length","prototype"),bn={f:Object.getOwnPropertyNames||function(e){return Kt(e,En)}},Bn=function(e,t,n){var r=Be(t);r in e?Je.f(e,r,_(0,n)):e[r]=n},Cn=o.Array,wn=Math.max,_n=function(e,t,n){for(var r=Ut(e),i=Ft(t,r),A=Ft(void 0===n?r:n,r),a=Cn(wn(A-i,0)),o=0;iv;v++)if((o||v in p)&&(f=g(h=p[v],v,d),e))if(t)y[v]=f;else if(f)switch(e){case 3:return!0;case 5:return h;case 6:return v;case 2:tr(y,h)}else switch(e){case 4:return!1;case 7:tr(y,h)}return A?-1:r||i?i:y}},rr={forEach:nr(0),map:nr(1),filter:nr(2),some:nr(3),every:nr(4),find:nr(5),findIndex:nr(6),filterReject:nr(7)},ir=rr.forEach,Ar=Yt("hidden"),ar="Symbol",or="prototype",sr=Jn.set,lr=Jn.getterFor(ar),cr=Object[or],ur=o.Symbol,hr=ur&&ur[or],fr=o.TypeError,dr=o.QObject,pr=Qe.f,gr=Je.f,mr=Qn.f,vr=w.f,Tr=v([].push),yr=ae("symbols"),Er=ae("op-symbols"),br=ae("wks"),Br=!dr||!dr[or]||!dr[or].findChild,Cr=y&&s((function(){return 7!=rn(gr({},"a",{get:function(){return gr(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=pr(cr,t);r&&delete cr[t],gr(e,t,n),r&&e!==cr&&gr(cr,t,r)}:gr,wr=function(e,t){var n=yr[e]=rn(hr);return sr(n,{type:ar,tag:e,description:t}),y||(n.description=t),n},_r=function(e,t,n){e===cr&&_r(Er,t,n),Ke(e);var r=Be(t);return Ke(n),ce(yr,r)?(n.enumerable?(ce(e,Ar)&&e[Ar][r]&&(e[Ar][r]=!1),n=rn(n,{enumerable:_(0,!1)})):(ce(e,Ar)||gr(e,Ar,_(1,{})),e[Ar][r]=!0),Cr(e,r,n)):gr(e,r,n)},Sr=function(e,t){Ke(e);var n=D(t),r=$t(n).concat(xr(n));return ir(r,(function(t){y&&!b(kr,n,t)||_r(e,t,n[t])})),e},kr=function(e){var t=Be(e),n=b(vr,this,t);return!(this===cr&&ce(yr,t)&&!ce(Er,t))&&(!(n||!ce(this,t)||!ce(yr,t)||ce(this,Ar)&&this[Ar][t])||n)},Qr=function(e,t){var n=D(e),r=Be(t);if(n!==cr||!ce(yr,r)||ce(Er,r)){var i=pr(n,r);return!i||!ce(yr,r)||ce(n,Ar)&&n[Ar][r]||(i.enumerable=!0),i}},Ir=function(e){var t=mr(D(e)),n=[];return ir(t,(function(e){ce(yr,e)||ce(Ht,e)||Tr(n,e)})),n},xr=function(e){var t=e===cr,n=mr(t?Er:D(e)),r=[];return ir(n,(function(e){!ce(yr,e)||t&&!ce(cr,e)||Tr(r,yr[e])})),r};W||(hr=(ur=function(){if(R(hr,this))throw fr("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?yn(arguments[0]):void 0,t=de(e),n=function(e){this===cr&&b(n,Er,e),ce(this,Ar)&&ce(this[Ar],t)&&(this[Ar][t]=!1),Cr(this,t,_(1,e))};return y&&Br&&Cr(cr,t,{configurable:!0,set:n}),wr(t,e)})[or],xn(hr,"toString",(function(){return lr(this).tag})),xn(ur,"withoutSetter",(function(e){return wr(de(e),e)})),w.f=kr,Je.f=_r,Vt.f=Sr,Qe.f=Qr,bn.f=Qn.f=Ir,In.f=xr,Ln.f=function(e){return wr(Te(e),e)},y&&gr(hr,"description",{configurable:!0,get:function(){return lr(this).description}})),et({global:!0,constructor:!0,wrap:!0,forced:!W,sham:!W},{Symbol:ur}),ir($t(br),(function(e){Nn(e)})),et({target:ar,stat:!0,forced:!W},{useSetter:function(){Br=!0},useSimple:function(){Br=!1}}),et({target:"Object",stat:!0,forced:!W,sham:!y},{create:function(e,t){return void 0===t?rn(e):Sr(rn(e),t)},defineProperty:_r,defineProperties:Sr,getOwnPropertyDescriptor:Qr}),et({target:"Object",stat:!0,forced:!W},{getOwnPropertyNames:Ir}),Dn(),Hn(ur,ar),Ht[Ar]=!0;var Lr=W&&!!Symbol.for&&!!Symbol.keyFor,Fr=ae("string-to-symbol-registry"),Nr=ae("symbol-to-string-registry");et({target:"Symbol",stat:!0,forced:!Lr},{for:function(e){var t=yn(e);if(ce(Fr,t))return Fr[t];var n=H("Symbol")(t);return Fr[t]=n,Nr[n]=t,n}});var Dr=ae("symbol-to-string-registry");et({target:"Symbol",stat:!0,forced:!Lr},{keyFor:function(e){if(!J(e))throw TypeError(q(e)+" is not a symbol");if(ce(Dr,e))return Dr[e]}});var Ur=H("JSON","stringify"),Mr=v(/./.exec),Or=v("".charAt),Hr=v("".charCodeAt),Rr=v("".replace),Pr=v(1..toString),Kr=/[\uD800-\uDFFF]/g,Gr=/^[\uD800-\uDBFF]$/,$r=/^[\uDC00-\uDFFF]$/,Xr=!W||s((function(){var e=H("Symbol")();return"[null]"!=Ur([e])||"{}"!=Ur({a:e})||"{}"!=Ur(Object(e))})),Vr=s((function(){return'"\\udf06\\ud834"'!==Ur("\udf06\ud834")||'"\\udead"'!==Ur("\udead")})),Wr=function(e,t){var n=tt(arguments),r=t;if((U(t)||void 0!==e)&&!J(e))return zn(t)||(t=function(e,t){if(T(r)&&(t=b(r,this,e,t)),!J(t))return t}),n[1]=t,f(Ur,null,n)},jr=function(e,t,n){var r=Or(n,t-1),i=Or(n,t+1);return Mr(Gr,e)&&!Mr($r,i)||Mr($r,e)&&!Mr(Gr,r)?"\\u"+Pr(Hr(e,0),16):e};Ur&&et({target:"JSON",stat:!0,arity:3,forced:Xr||Vr},{stringify:function(e,t,n){var r=tt(arguments),i=f(Xr?Wr:Ur,null,r);return Vr&&"string"==typeof i?Rr(i,Kr,jr):i}});var Yr=!W||s((function(){In.f(1)}));et({target:"Object",stat:!0,forced:Yr},{getOwnPropertySymbols:function(e){var t=In.f;return t?t(se(e)):[]}});var Jr=M.Object.getOwnPropertySymbols,zr=Jr,qr=Te("species"),Zr=function(e){return V>=51||!s((function(){var t=[];return(t.constructor={})[qr]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},ei=rr.filter,ti=Zr("filter");et({target:"Array",proto:!0,forced:!ti},{filter:function(e){return ei(this,e,arguments.length>1?arguments[1]:void 0)}});var ni=function(e){return M[e+"Prototype"]},ri=ni("Array").filter,ii=Array.prototype,Ai=function(e){var t=e.filter;return e===ii||R(ii,e)&&t===ii.filter?ri:t},ai=Qe.f,oi=s((function(){ai(1)}));et({target:"Object",stat:!0,forced:!y||oi,sham:!y},{getOwnPropertyDescriptor:function(e,t){return ai(D(e),t)}});var si,li,ci,ui=r((function(e){var t=M.Object,n=e.exports=function(e,n){return t.getOwnPropertyDescriptor(e,n)};t.getOwnPropertyDescriptor.sham&&(n.sham=!0)})),hi=ui,fi=hi,di={},pi=Function.prototype,gi=y&&Object.getOwnPropertyDescriptor,mi=ce(pi,"name"),vi={EXISTS:mi,PROPER:mi&&"something"===function(){}.name,CONFIGURABLE:mi&&(!y||y&&gi(pi,"name").configurable)},Ti=!s((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),yi=Yt("IE_PROTO"),Ei=o.Object,bi=Ei.prototype,Bi=Ti?Ei.getPrototypeOf:function(e){var t=se(e);if(ce(t,yi))return t[yi];var n=t.constructor;return T(n)&&t instanceof n?n.prototype:t instanceof Ei?bi:null},Ci=Te("iterator"),wi=!1;[].keys&&("next"in(ci=[].keys())?(li=Bi(Bi(ci)))!==Object.prototype&&(si=li):wi=!0);var _i=null==si||s((function(){var e={};return si[Ci].call(e)!==e}));si=_i?{}:rn(si),T(si[Ci])||xn(si,Ci,(function(){return this}));var Si={IteratorPrototype:si,BUGGY_SAFARI_ITERATORS:wi},ki=Si.IteratorPrototype,Qi=function(){return this},Ii=function(e,t,n,r){var i=t+" Iterator";return e.prototype=rn(ki,{next:_(+!r,n)}),Hn(e,i,!1,!0),di[i]=Qi,e},xi=o.String,Li=o.TypeError,Fi=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=v(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Ke(n),function(e){if("object"==typeof e||T(e))return e;throw Li("Can't set "+xi(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Ni=vi.PROPER,Di=Si.BUGGY_SAFARI_ITERATORS,Ui=Te("iterator"),Mi="keys",Oi="values",Hi="entries",Ri=function(){return this},Pi=function(e,t,n,r,i,A,a){Ii(n,t,r);var o,s,l,c=function(e){if(e===i&&p)return p;if(!Di&&e in f)return f[e];switch(e){case Mi:case Oi:case Hi:return function(){return new n(this,e)}}return function(){return new n(this)}},u=t+" Iterator",h=!1,f=e.prototype,d=f[Ui]||f["@@iterator"]||i&&f[i],p=!Di&&d||c(i),g="Array"==t&&f.entries||d;if(g&&(o=Bi(g.call(new e)))!==Object.prototype&&o.next&&(Hn(o,u,!0,!0),di[u]=Ri),Ni&&i==Oi&&d&&d.name!==Oi&&(h=!0,p=function(){return b(d,this)}),i)if(s={values:c(Oi),keys:A?p:c(Mi),entries:c(Hi)},a)for(l in s)(Di||h||!(l in f))&&xn(f,l,s[l]);else et({target:t,proto:!0,forced:Di||h},s);return a&&f[Ui]!==p&&xn(f,Ui,p,{name:i}),di[t]=p,s};Je.f;var Ki="Array Iterator",Gi=Jn.set,$i=Jn.getterFor(Ki);Pi(Array,"Array",(function(e,t){Gi(this,{type:Ki,target:D(e),index:0,kind:t})}),(function(){var e=$i(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),di.Arguments=di.Array;var Xi=Te("toStringTag");for(var Vi in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Wi=o[Vi],ji=Wi&&Wi.prototype;ji&&ht(ji)!==Xi&&ze(ji,Xi,Vi),di[Vi]=di.Array}var Yi=function(e,t){var n=[][e];return!!n&&s((function(){n.call(null,t||function(){return 1},1)}))},Ji=rr.forEach,zi=Yi("forEach")?[].forEach:function(e){return Ji(this,e,arguments.length>1?arguments[1]:void 0)};et({target:"Array",proto:!0,forced:[].forEach!=zi},{forEach:zi});var qi=ni("Array").forEach,Zi=Array.prototype,eA={DOMTokenList:!0,NodeList:!0},tA=function(e){var t=e.forEach;return e===Zi||R(Zi,e)&&t===Zi.forEach||ce(eA,ht(e))?qi:t},nA=tA,rA=v([].concat),iA=H("Reflect","ownKeys")||function(e){var t=bn.f(Ke(e)),n=In.f;return n?rA(t,n(e)):t};et({target:"Object",stat:!0,sham:!y},{getOwnPropertyDescriptors:function(e){for(var t,n,r=D(e),i=Qe.f,A=iA(r),a={},o=0;A.length>o;)void 0!==(n=i(r,t=A[o++]))&&Bn(a,t,n);return a}});var AA=M.Object.getOwnPropertyDescriptors,aA=Vt.f;et({target:"Object",stat:!0,forced:Object.defineProperties!==aA,sham:!y},{defineProperties:aA});var oA=r((function(e){var t=M.Object,n=e.exports=function(e,n){return t.defineProperties(e,n)};t.defineProperties.sham&&(n.sham=!0)})),sA=oA,lA=Je.f;et({target:"Object",stat:!0,forced:Object.defineProperty!==lA,sham:!y},{defineProperty:lA});var cA=r((function(e){var t=M.Object,n=e.exports=function(e,n,r){return t.defineProperty(e,n,r)};t.defineProperty.sham&&(n.sham=!0)})),uA=cA;function hA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var fA=cA;function dA(e,t){for(var n=0;n=51||!s((function(){var e=[];return e[BA]=!1,e.concat()[0]!==e})),kA=Zr("concat"),QA=function(e){if(!U(e))return!1;var t=e[BA];return void 0!==t?!!t:zn(e)};et({target:"Array",proto:!0,arity:1,forced:!SA||!kA},{concat:function(e){var t,n,r,i,A,a=se(this),o=er(a,0),s=0;for(t=-1,r=arguments.length;tCA)throw _A(wA);for(n=0;n=CA)throw _A(wA);Bn(o,s++,A)}return o.length=s,o}}),Nn("asyncIterator"),Nn("hasInstance"),Nn("isConcatSpreadable"),Nn("iterator"),Nn("match"),Nn("matchAll"),Nn("replace"),Nn("search"),Nn("species"),Nn("split"),Nn("toPrimitive"),Dn(),Nn("toStringTag"),Hn(H("Symbol"),"Symbol"),Nn("unscopables"),Hn(o.JSON,"JSON",!0);var IA=M.Symbol,xA=IA;Nn("asyncDispose"),Nn("dispose"),Nn("matcher"),Nn("metadata"),Nn("observable"),Nn("patternMatch"),Nn("replaceAll");var LA=xA,FA=v("".charAt),NA=v("".charCodeAt),DA=v("".slice),UA=function(e){return function(t,n){var r,i,A=yn(N(t)),a=It(n),o=A.length;return a<0||a>=o?e?"":void 0:(r=NA(A,a))<55296||r>56319||a+1===o||(i=NA(A,a+1))<56320||i>57343?e?FA(A,a):r:e?DA(A,a,a+2):i-56320+(r-55296<<10)+65536}},MA={codeAt:UA(!1),charAt:UA(!0)},OA=MA.charAt,HA="String Iterator",RA=Jn.set,PA=Jn.getterFor(HA);Pi(String,"String",(function(e){RA(this,{type:HA,string:yn(e),index:0})}),(function(){var e,t=PA(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=OA(n,r),t.index+=e.length,{value:e,done:!1})}));var KA=Ln.f("iterator");function GA(e){return GA="function"==typeof LA&&"symbol"==typeof KA?function(e){return typeof e}:function(e){return e&&"function"==typeof LA&&e.constructor===LA&&e!==LA.prototype?"symbol":typeof e},GA(e)}function $A(e,t){if(t&&("object"===GA(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return gA(e)}var XA=s((function(){Bi(1)}));et({target:"Object",stat:!0,forced:XA,sham:!Ti},{getPrototypeOf:function(e){return Bi(se(e))}});var VA=M.Object.getPrototypeOf;function WA(e){return WA=yA?VA:function(e){return e.__proto__||VA(e)},WA(e)}function jA(e,t,n){return t in e?fA(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var YA=ni("Array").concat,JA=Array.prototype,zA=function(e){var t=e.concat;return e===JA||R(JA,e)&&t===JA.concat?YA:t};et({target:"Function",proto:!0,forced:Function.bind!==at},{bind:at});var qA=ni("Function").bind,ZA=Function.prototype,ea=function(e){var t=e.bind;return e===ZA||R(ZA,e)&&t===ZA.bind?qA:t},ta=ea,na=o.TypeError,ra=function(e,t){if(e2,i=T(t)?t:Aa(t),A=r?tt(arguments,2):void 0;return e(r?function(){f(i,this,A)}:i,n)}:e},oa={setTimeout:aa(o.setTimeout),setInterval:aa(o.setInterval)},sa=oa.setInterval;et({global:!0,bind:!0,forced:o.setInterval!==sa},{setInterval:sa});var la=oa.setTimeout;et({global:!0,bind:!0,forced:o.setTimeout!==la},{setTimeout:la});var ca=M.setTimeout;var ua=function(){this.__data__=[],this.size=0};var ha=function(e,t){return e===t||e!=e&&t!=t};var fa=function(e,t){for(var n=e.length;n--;)if(ha(e[n][0],t))return n;return-1},da=Array.prototype.splice;var pa=function(e){var t=this.__data__,n=fa(t,e);return!(n<0)&&(n==t.length-1?t.pop():da.call(t,n,1),--this.size,!0)};var ga=function(e){var t=this.__data__,n=fa(t,e);return n<0?void 0:t[n][1]};var ma=function(e){return fa(this.__data__,e)>-1};var va=function(e,t){var n=this.__data__,r=fa(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function Ta(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=9007199254740991};var Jo=function(e){return null!=e&&Yo(e.length)&&!Ha(e)};var zo=function(e){return Ko(e)&&Jo(e)};var qo=function(){return!1},Zo=r((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n?Sa.Buffer:void 0,A=(i?i.isBuffer:void 0)||qo;e.exports=A})),es=Function.prototype,ts=Object.prototype,ns=es.toString,rs=ts.hasOwnProperty,is=ns.call(Object);var As=function(e){if(!Ko(e)||"[object Object]"!=Ma(e))return!1;var t=Oo(e);if(null===t)return!0;var n=rs.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ns.call(n)==is},as={};as["[object Float32Array]"]=as["[object Float64Array]"]=as["[object Int8Array]"]=as["[object Int16Array]"]=as["[object Int32Array]"]=as["[object Uint8Array]"]=as["[object Uint8ClampedArray]"]=as["[object Uint16Array]"]=as["[object Uint32Array]"]=!0,as["[object Arguments]"]=as["[object Array]"]=as["[object ArrayBuffer]"]=as["[object Boolean]"]=as["[object DataView]"]=as["[object Date]"]=as["[object Error]"]=as["[object Function]"]=as["[object Map]"]=as["[object Number]"]=as["[object Object]"]=as["[object RegExp]"]=as["[object Set]"]=as["[object String]"]=as["[object WeakMap]"]=!1;var os=function(e){return Ko(e)&&Yo(e.length)&&!!as[Ma(e)]};var ss=function(e){return function(t){return e(t)}},ls=r((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n&&wa.process,A=function(){try{var e=r&&r.require&&r.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=A})),cs=ls&&ls.isTypedArray,us=cs?ss(cs):os;var hs=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},fs=Object.prototype.hasOwnProperty;var ds=function(e,t,n){var r=e[t];fs.call(e,t)&&ha(r,n)&&(void 0!==n||t in e)||_o(e,t,n)};var ps=function(e,t,n,r){var i=!n;n||(n={});for(var A=-1,a=t.length;++A-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},Ms=Us(Ns);var Os=function(e,t){return Ms(xs(e,t,ks),e+"")};var Hs=function(e,t,n){if(!Oa(n))return!1;var r=typeof t;return!!("number"==r?Jo(n)&&vs(t,n.length):"string"==r&&t in n)&&ha(n[t],e)};var Rs=function(e){return Os((function(t,n){var r=-1,i=n.length,A=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(A=e.length>3&&"function"==typeof A?(i--,A):void 0,a&&Hs(n[0],n[1],a)&&(A=i<3?void 0:A,i=1),t=Object(t);++r1?arguments[1]:void 0;return Vs?Xs(this,e,t)||0:$s(this,e,t)}});var js=ni("Array").indexOf,Ys=Array.prototype,Js=function(e){var t=e.indexOf;return e===Ys||R(Ys,e)&&t===Ys.indexOf?js:t},zs=Js,qs=mn;function Zs(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},A=qs(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Gs){var A=Gs(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var el=Object.assign,tl=Object.defineProperty,nl=v([].concat),rl=!el||s((function(){if(y&&1!==el({b:1},el(tl({},"a",{enumerable:!0,get:function(){tl(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=el({},e)[n]||$t(el({},t)).join("")!=r}))?function(e,t){for(var n=se(e),r=arguments.length,i=1,A=In.f,a=w.f;r>i;)for(var o,s=L(arguments[i++]),l=A?nl($t(s),A(s)):$t(s),c=l.length,u=0;c>u;)o=l[u++],y&&!b(a,s,o)||(n[o]=s[o]);return n}:el;et({target:"Object",stat:!0,arity:2,forced:Object.assign!==rl},{assign:rl});var il=M.Object.assign,Al=il;M.JSON||(M.JSON={stringify:JSON.stringify});var al=function(e,t,n){return f(M.JSON.stringify,null,arguments)},ol=rr.find,sl="find",ll=!0;sl in[]&&Array(1)[sl]((function(){ll=!1})),et({target:"Array",proto:!0,forced:ll},{find:function(e){return ol(this,e,arguments.length>1?arguments[1]:void 0)}});var cl,ul=ni("Array").find,hl=Array.prototype,fl=function(e){var t=e.find;return e===hl||R(hl,e)&&t===hl.find?ul:t},dl="\t\n\v\f\r                 \u2028\u2029\ufeff",pl=v("".replace),gl="["+dl+"]",ml=RegExp("^"+gl+gl+"*"),vl=RegExp(gl+gl+"*$"),Tl=function(e){return function(t){var n=yn(N(t));return 1&e&&(n=pl(n,ml,"")),2&e&&(n=pl(n,vl,"")),n}},yl={start:Tl(1),end:Tl(2),trim:Tl(3)},El=vi.PROPER,bl=yl.trim;et({target:"String",proto:!0,forced:(cl="trim",s((function(){return!!dl[cl]()||"​…᠎"!=="​…᠎"[cl]()||El&&dl[cl].name!==cl})))},{trim:function(){return bl(this)}});var Bl=ni("String").trim,Cl=String.prototype,wl=function(e){var t=e.trim;return"string"==typeof e||e===Cl||R(Cl,e)&&t===Cl.trim?Bl:t},_l=function(e,t,n){var r,i;Ke(e);try{if(!(r=te(e,"return"))){if("throw"===t)throw n;return n}r=b(r,e)}catch(e){i=!0,r=e}if("throw"===t)throw n;if(i)throw r;return Ke(r),n},Sl=function(e,t,n,r){try{return r?t(Ke(n)[0],n[1]):t(n)}catch(t){_l(e,"throw",t)}},kl=Te("iterator"),Ql=Array.prototype,Il=function(e){return void 0!==e&&(di.Array===e||Ql[kl]===e)},xl=Te("iterator"),Ll=function(e){if(null!=e)return te(e,xl)||te(e,"@@iterator")||di[ht(e)]},Fl=o.TypeError,Nl=function(e,t){var n=arguments.length<2?Ll(e):t;if(ee(n))return Ke(b(n,e));throw Fl(q(e)+" is not iterable")},Dl=o.Array,Ul=function(e){var t=se(e),n=Ct(this),r=arguments.length,i=r>1?arguments[1]:void 0,A=void 0!==i;A&&(i=Oe(i,r>2?arguments[2]:void 0));var a,o,s,l,c,u,h=Ll(t),f=0;if(!h||this==Dl&&Il(h))for(a=Ut(t),o=n?new this(a):Dl(a);a>f;f++)u=A?i(t[f],f):t[f],Bn(o,f,u);else for(c=(l=Nl(t,h)).next,o=n?new this:[];!(s=b(c,l)).done;f++)u=A?Sl(l,i,[s.value,f],!0):s.value,Bn(o,f,u);return o.length=f,o},Ml=Te("iterator"),Ol=!1;try{var Hl=0,Rl={next:function(){return{done:!!Hl++}},return:function(){Ol=!0}};Rl[Ml]=function(){return this},Array.from(Rl,(function(){throw 2}))}catch(e){}var Pl=function(e,t){if(!t&&!Ol)return!1;var n=!1;try{var r={};r[Ml]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Kl=!Pl((function(e){Array.from(e)}));et({target:"Array",stat:!0,forced:Kl},{from:Ul});var Gl=M.Array.from,$l=Gl,Xl=Te("match"),Vl=o.TypeError,Wl=function(e){if(function(e){var t;return U(e)&&(void 0!==(t=e[Xl])?!!t:"RegExp"==Q(e))}(e))throw Vl("The method doesn't accept regular expressions");return e},jl=Te("match"),Yl=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[jl]=!1,"/./"[e](t)}catch(e){}}return!1};Qe.f;var Jl=v("".startsWith),zl=v("".slice),ql=Math.min,Zl=Yl("startsWith");et({target:"String",proto:!0,forced:!Zl},{startsWith:function(e){var t=yn(N(this));Wl(e);var n=Dt(ql(arguments.length>1?arguments[1]:void 0,t.length)),r=yn(e);return Jl?Jl(t,r,n):zl(t,n,n+r.length)===r}});var ec=ni("String").startsWith,tc=String.prototype,nc=function(e){var t=e.startsWith;return"string"==typeof e||e===tc||R(tc,e)&&t===tc.startsWith?ec:t},rc=r((function(e,t){e.exports=function(){var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),A=/Edge\/(\d+)/.exec(e),a=r||i||A,o=a&&(r?document.documentMode||6:+(A||i)[1]),s=!A&&/WebKit\//.test(e),l=s&&/Qt\/\d+\.\d+/.test(e),c=!A&&/Chrome\//.test(e),u=/Opera\//.test(e),h=/Apple Computer/.test(navigator.vendor),f=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),d=/PhantomJS/.test(e),p=!A&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),g=/Android/.test(e),m=p||g||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),v=p||/Mac/.test(t),T=/\bCrOS\b/.test(e),y=/win/i.test(t),E=u&&e.match(/Version\/(\d*\.\d*)/);E&&(E=Number(E[1])),E&&E>=15&&(u=!1,s=!0);var b=v&&(l||u&&(null==E||E<12.11)),B=n||a&&o>=9;function C(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var w,_=function(e,t){var n=e.className,r=C(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function S(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function k(e,t){return S(e).appendChild(t)}function Q(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var A=0;A=t)return a+(t-A);a+=o-A,a+=n-a%n,A=o+1}}p?D=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(D=function(e){try{e.select()}catch(e){}});var H=function(){this.id=null,this.f=null,this.time=0,this.handler=U(this.onTimeout,this)};function R(e,t){for(var n=0;n=t)return r+Math.min(a,t-i);if(i+=A-r,r=A+1,(i+=n-i%n)>=t)return r}}var W=[""];function j(e){for(;W.length<=e;)W.push(Y(W)+" ");return W[e]}function Y(e){return e[e.length-1]}function J(e,t){for(var n=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||ee.test(e))}function ne(e,t){return t?!!(t.source.indexOf("\\w")>-1&&te(e))||t.test(e):te(e)}function re(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ie=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Ae(e){return e.charCodeAt(0)>=768&&ie.test(e)}function ae(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var i=(t+n)/2,A=r<0?Math.ceil(i):Math.floor(i);if(A==t)return e(A)?t:n;e(A)?n=A:t=A+r}}function se(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,A=0;At||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",A),i=!0)}i||r(t,n,"ltr")}var le=null;function ce(e,t,n){var r;le=null;for(var i=0;it)return i;A.to==t&&(A.from!=A.to&&"before"==n?r=i:le=i),A.from==t&&(A.from!=A.to&&"before"!=n?r=i:le=i)}return null!=r?r:le}var ue=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,A=/[LRr]/,a=/[Lb1n]/,o=/[1n]/;function s(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var l="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!r.test(e))return!1;for(var c=e.length,u=[],h=0;h-1&&(r[t]=i.slice(0,A).concat(i.slice(A+1)))}}}function me(e,t){var n=pe(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function Ee(e){e.prototype.on=function(e,t){de(this,e,t)},e.prototype.off=function(e,t){ge(this,e,t)}}function be(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Be(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ce(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function we(e){be(e),Be(e)}function _e(e){return e.target||e.srcElement}function Se(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),v&&e.ctrlKey&&1==t&&(t=3),t}var ke,Qe,Ie=function(){if(a&&o<9)return!1;var e=Q("div");return"draggable"in e||"dragDrop"in e}();function xe(e){if(null==ke){var t=Q("span","​");k(e,Q("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(ke=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&o<8))}var n=ke?Q("span","​"):Q("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Le(e){if(null!=Qe)return Qe;var t=k(e,document.createTextNode("AخA")),n=w(t,0,1).getBoundingClientRect(),r=w(t,1,2).getBoundingClientRect();return S(e),!(!n||n.left==n.right)&&(Qe=r.right-n.right<3)}var Fe,Ne=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var A=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=A.indexOf("\r");-1!=a?(n.push(A.slice(0,a)),t+=a+1):(n.push(A),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},De=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Ue="oncopy"in(Fe=Q("div"))||(Fe.setAttribute("oncopy","return;"),"function"==typeof Fe.oncopy),Me=null;function Oe(e){if(null!=Me)return Me;var t=k(e,Q("span","x")),n=t.getBoundingClientRect(),r=w(t,0,1).getBoundingClientRect();return Me=Math.abs(n.left-r.left)>1}var He={},Re={};function Pe(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),He[e]=t}function Ke(e,t){Re[e]=t}function Ge(e){if("string"==typeof e&&Re.hasOwnProperty(e))e=Re[e];else if(e&&"string"==typeof e.name&&Re.hasOwnProperty(e.name)){var t=Re[e.name];"string"==typeof t&&(t={name:t}),(e=Z(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ge("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ge("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function $e(e,t){t=Ge(t);var n=He[t.name];if(!n)return $e(e,"text/plain");var r=n(e,t);if(Xe.hasOwnProperty(t.name)){var i=Xe[t.name];for(var A in i)i.hasOwnProperty(A)&&(r.hasOwnProperty(A)&&(r["_"+A]=r[A]),r[A]=i[A])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var Xe={};function Ve(e,t){M(t,Xe.hasOwnProperty(e)?Xe[e]:Xe[e]={})}function We(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function je(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Ye(e,t,n){return!e.startState||e.startState(t,n)}var Je=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function ze(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],A=i.chunkSize();if(t=e.first&&tn?At(n,ze(e,n).text.length):ft(t,ze(e,t.line).text.length)}function ft(e,t){var n=e.ch;return null==n||n>t?At(e.line,t):n<0?At(e.line,0):e}function dt(e,t){for(var n=[],r=0;r=this.string.length},Je.prototype.sol=function(){return this.pos==this.lineStart},Je.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Je.prototype.next=function(){if(this.post},Je.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Je.prototype.skipToEnd=function(){this.pos=this.string.length},Je.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Je.prototype.backUp=function(e){this.pos-=e},Je.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Je.prototype.current=function(){return this.string.slice(this.start,this.pos)},Je.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Je.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Je.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var pt=function(e,t){this.state=e,this.lookAhead=t},gt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function mt(e,t,n,r){var i=[e.state.modeGen],A={};_t(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),A,r);for(var a=n.state,o=function(r){n.baseTokens=i;var o=e.state.overlays[r],s=1,l=0;n.state=!0,_t(e,t.text,o.mode,n,(function(e,t){for(var n=s;le&&i.splice(s,1,e,i[s+1],r),s+=2,l=Math.min(e,r)}if(t)if(o.opaque)i.splice(n,s-n,e,"overlay "+t),s=n+2;else for(;ne.options.maxHighlightLength&&We(e.doc.mode,r.state),A=mt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=A.styles,A.classes?t.styleClasses=A.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Tt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new gt(r,!0,t);var A=St(e,t,n),a=A>r.first&&ze(r,A-1).stateAfter,o=a?gt.fromSaved(r,a,A):new gt(r,Ye(r.mode),A);return r.iter(A,t,(function(n){yt(e,n.text,o);var r=o.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&rt.start)return A}throw new Error("Mode "+e.name+" failed to advance stream.")}gt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},gt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},gt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},gt.fromSaved=function(e,t,n){return t instanceof pt?new gt(e,We(e.mode,t.state),n,t.lookAhead):new gt(e,We(e.mode,t),n)},gt.prototype.save=function(e){var t=!1!==e?We(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new pt(t,this.maxLookAhead):t};var Bt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function Ct(e,t,n,r){var i,A,a=e.doc,o=a.mode,s=ze(a,(t=ht(a,t)).line),l=Tt(e,t.line,n),c=new Je(s.text,e.options.tabSize,l);for(r&&(A=[]);(r||c.pose.options.maxHighlightLength?(o=!1,a&&yt(e,t,r,u.pos),u.pos=t.length,s=null):s=wt(bt(n,u,r.state,h),A),h){var f=h[0].name;f&&(s="m-"+(s?f+" "+s:f))}if(!o||c!=s){for(;la;--o){if(o<=A.first)return A.first;var s=ze(A,o-1),l=s.stateAfter;if(l&&(!n||o+(l instanceof pt?l.lookAhead:0)<=A.modeFrontier))return o;var c=O(s.text,null,e.options.tabSize);(null==i||r>c)&&(i=o-1,r=c)}return i}function kt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var i=ze(e,r).stateAfter;if(i&&(!(i instanceof pt)||r+i.lookAhead=t:A.to>t);(r||(r=[])).push(new Ft(a,A.from,o?null:A.to))}}return r}function Ot(e,t,n){var r;if(e)for(var i=0;i=t:A.to>t)||A.from==t&&"bookmark"==a.type&&(!n||A.marker.insertLeft)){var o=null==A.from||(a.inclusiveLeft?A.from<=t:A.from0&&o)for(var T=0;T0)){var c=[s,1],u=at(l.from,o.from),h=at(l.to,o.to);(u<0||!a.inclusiveLeft&&!u)&&c.push({from:l.from,to:o.from}),(h>0||!a.inclusiveRight&&!h)&&c.push({from:o.to,to:l.to}),i.splice.apply(i,c),s+=c.length-3}}return i}function Kt(e){var t=e.markedSpans;if(t){for(var n=0;nt)&&(!n||Vt(n,A.marker)<0)&&(n=A.marker)}return n}function zt(e,t,n,r,i){var A=ze(e,t),a=It&&A.markedSpans;if(a)for(var o=0;o=0&&u<=0||c<=0&&u>=0)&&(c<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?at(l.to,n)>=0:at(l.to,n)>0)||c>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?at(l.from,r)<=0:at(l.from,r)<0)))return!0}}}function qt(e){for(var t;t=jt(e);)e=t.find(-1,!0).line;return e}function Zt(e){for(var t;t=Yt(e);)e=t.find(1,!0).line;return e}function en(e){for(var t,n;t=Yt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function tn(e,t){var n=ze(e,t),r=qt(n);return n==r?t:tt(r)}function nn(e,t){if(t>e.lastLine())return t;var n,r=ze(e,t);if(!rn(e,r))return t;for(;n=Yt(r);)r=n.find(1,!0).line;return tt(r)+1}function rn(e,t){var n=It&&t.markedSpans;if(n)for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var ln=function(e,t,n){this.text=e,Gt(this,t),this.height=n?n(this):1};function cn(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Kt(e),Gt(e,n);var i=r?r(e):1;i!=e.height&&et(e,i)}function un(e){e.parent=null,Kt(e)}ln.prototype.lineNo=function(){return tt(this)},Ee(ln);var hn={},fn={};function dn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?fn:hn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function pn(e,t){var n=I("span",null,null,s?"padding-right: .1px":null),r={pre:I("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var A=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=mn,Le(e.display.measure)&&(a=he(A,e.doc.direction))&&(r.addToken=Tn(r.addToken,a)),r.map=[],En(A,r,vt(e,A,t!=e.display.externalMeasured&&tt(A))),A.styleClasses&&(A.styleClasses.bgClass&&(r.bgClass=N(A.styleClasses.bgClass,r.bgClass||"")),A.styleClasses.textClass&&(r.textClass=N(A.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(xe(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(s){var o=r.content.lastChild;(/\bcm-tab\b/.test(o.className)||o.querySelector&&o.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return me(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=N(r.pre.className,r.textClass||"")),r}function gn(e){var t=Q("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function mn(e,t,n,r,i,A,s){if(t){var l,c=e.splitSpaces?vn(t,e.trailingSpace):t,u=e.cm.state.specialChars,h=!1;if(u.test(t)){l=document.createDocumentFragment();for(var f=0;;){u.lastIndex=f;var d=u.exec(t),p=d?d.index-f:t.length-f;if(p){var g=document.createTextNode(c.slice(f,f+p));a&&o<9?l.appendChild(Q("span",[g])):l.appendChild(g),e.map.push(e.pos,e.pos+p,g),e.col+=p,e.pos+=p}if(!d)break;f+=p+1;var m=void 0;if("\t"==d[0]){var v=e.cm.options.tabSize,T=v-e.col%v;(m=l.appendChild(Q("span",j(T),"cm-tab"))).setAttribute("role","presentation"),m.setAttribute("cm-text","\t"),e.col+=T}else"\r"==d[0]||"\n"==d[0]?((m=l.appendChild(Q("span","\r"==d[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",d[0]),e.col+=1):((m=e.cm.options.specialCharPlaceholder(d[0])).setAttribute("cm-text",d[0]),a&&o<9?l.appendChild(Q("span",[m])):l.appendChild(m),e.col+=1);e.map.push(e.pos,e.pos+1,m),e.pos++}}else e.col+=t.length,l=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,l),a&&o<9&&(h=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),n||r||i||h||A||s){var y=n||"";r&&(y+=r),i&&(y+=i);var E=Q("span",[l],y,A);if(s)for(var b in s)s.hasOwnProperty(b)&&"style"!=b&&"class"!=b&&E.setAttribute(b,s[b]);return e.content.appendChild(E)}e.content.appendChild(l)}}function vn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;il&&u.from<=l);h++);if(u.to>=c)return e(n,r,i,A,a,o,s);e(n,r.slice(0,u.to-l),i,A,null,o,s),A=null,r=r.slice(u.to-l),l=u.to}}}function yn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function En(e,t,n){var r=e.markedSpans,i=e.text,A=0;if(r)for(var a,o,s,l,c,u,h,f=i.length,d=0,p=1,g="",m=0;;){if(m==d){s=l=c=o="",h=null,u=null,m=1/0;for(var v=[],T=void 0,y=0;yd||b.collapsed&&E.to==d&&E.from==d)){if(null!=E.to&&E.to!=d&&m>E.to&&(m=E.to,l=""),b.className&&(s+=" "+b.className),b.css&&(o=(o?o+";":"")+b.css),b.startStyle&&E.from==d&&(c+=" "+b.startStyle),b.endStyle&&E.to==m&&(T||(T=[])).push(b.endStyle,E.to),b.title&&((h||(h={})).title=b.title),b.attributes)for(var B in b.attributes)(h||(h={}))[B]=b.attributes[B];b.collapsed&&(!u||Vt(u.marker,b)<0)&&(u=E)}else E.from>d&&m>E.from&&(m=E.from)}if(T)for(var C=0;C=f)break;for(var _=Math.min(f,m);;){if(g){var S=d+g.length;if(!u){var k=S>_?g.slice(0,_-d):g;t.addToken(t,k,a?a+s:s,c,d+k.length==m?l:"",o,h)}if(S>=_){g=g.slice(_-d),d=_;break}d=S,c=""}g=i.slice(A,A=n[p++]),a=dn(n[p++],t.cm.options)}}else for(var Q=1;Q2&&A.push((s.bottom+l.top)/2-n.top)}}A.push(n.bottom-n.top)}}function qn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;rn)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Zn(e,t){var n=tt(t=qt(t)),r=e.display.externalMeasured=new bn(e.doc,t,n);r.lineN=n;var i=r.built=pn(e,r);return r.text=i.pre,k(e.display.lineMeasure,i.pre),r}function er(e,t,n,r){return rr(e,nr(e,t),n,r)}function tr(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(i=(A=s-o)-1,t>=s&&(a="right")),null!=i){if(r=e[l+2],o==s&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;l&&e[l-2]==e[l-3]&&e[l-1].insertLeft;)r=e[2+(l-=3)],a="left";if("right"==n&&i==s-o)for(;l=0&&(n=e[i]).left==n.right;i--);return n}function sr(e,t,n,r){var i,A=ar(t.map,n,r),s=A.node,l=A.start,c=A.end,u=A.collapse;if(3==s.nodeType){for(var h=0;h<4;h++){for(;l&&Ae(t.line.text.charAt(A.coverStart+l));)--l;for(;A.coverStart+c0&&(u=r="right"),i=e.options.lineWrapping&&(f=s.getClientRects()).length>1?f["right"==r?f.length-1:0]:s.getBoundingClientRect()}if(a&&o<9&&!l&&(!i||!i.left&&!i.right)){var d=s.parentNode.getClientRects()[0];i=d?{left:d.left,right:d.left+Ir(e.display),top:d.top,bottom:d.bottom}:Ar}for(var p=i.top-t.rect.top,g=i.bottom-t.rect.top,m=(p+g)/2,v=t.view.measure.heights,T=0;T=r.text.length?(s=r.text.length,l="before"):s<=0&&(s=0,l="after"),!o)return a("before"==l?s-1:s,"before"==l);function c(e,t,n){return a(n?e-1:e,1==o[t].level!=n)}var u=ce(o,s,l),h=le,f=c(s,u,"before"==l);return null!=h&&(f.other=c(s,h,"before"!=l)),f}function yr(e,t){var n=0;t=ht(e.doc,t),e.options.lineWrapping||(n=Ir(e.display)*t.ch);var r=ze(e.doc,t.line),i=an(r)+Xn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Er(e,t,n,r,i){var A=At(e,t,n);return A.xRel=i,r&&(A.outside=r),A}function br(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Er(r.first,0,null,-1,-1);var i=nt(r,n),A=r.first+r.size-1;if(i>A)return Er(r.first+r.size-1,ze(r,A).text.length,null,1,1);t<0&&(t=0);for(var a=ze(r,i);;){var o=_r(e,a,i,t,n),s=Jt(a,o.ch+(o.xRel>0||o.outside>0?1:0));if(!s)return o;var l=s.find(1);if(l.line==i)return l;a=ze(r,i=l.line)}}function Br(e,t,n,r){r-=pr(t);var i=t.text.length,A=oe((function(t){return rr(e,n,t-1).bottom<=r}),i,0);return{begin:A,end:i=oe((function(t){return rr(e,n,t).top>r}),A,i)}}function Cr(e,t,n,r){return n||(n=nr(e,t)),Br(e,t,n,gr(e,t,rr(e,n,r),"line").top)}function wr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function _r(e,t,n,r,i){i-=an(t);var A=nr(e,t),a=pr(t),o=0,s=t.text.length,l=!0,c=he(t,e.doc.direction);if(c){var u=(e.options.lineWrapping?kr:Sr)(e,t,n,A,c,r,i);o=(l=1!=u.level)?u.from:u.to-1,s=l?u.to:u.from-1}var h,f,d=null,p=null,g=oe((function(t){var n=rr(e,A,t);return n.top+=a,n.bottom+=a,!!wr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(d=t,p=n),!0)}),o,s),m=!1;if(p){var v=r-p.left=y.bottom?1:0}return Er(n,g=ae(t.text,g,1),f,m,r-h)}function Sr(e,t,n,r,i,A,a){var o=oe((function(o){var s=i[o],l=1!=s.level;return wr(Tr(e,At(n,l?s.to:s.from,l?"before":"after"),"line",t,r),A,a,!0)}),0,i.length-1),s=i[o];if(o>0){var l=1!=s.level,c=Tr(e,At(n,l?s.from:s.to,l?"after":"before"),"line",t,r);wr(c,A,a,!0)&&c.top>a&&(s=i[o-1])}return s}function kr(e,t,n,r,i,A,a){var o=Br(e,t,r,a),s=o.begin,l=o.end;/\s/.test(t.text.charAt(l-1))&&l--;for(var c=null,u=null,h=0;h=l||f.to<=s)){var d=rr(e,r,1!=f.level?Math.min(l,f.to)-1:Math.max(s,f.from)).right,p=dp)&&(c=f,u=p)}}return c||(c=i[i.length-1]),c.froml&&(c={from:c.from,to:l,level:c.level}),c}function Qr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==ir){ir=Q("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)ir.appendChild(document.createTextNode("x")),ir.appendChild(Q("br"));ir.appendChild(document.createTextNode("x"))}k(e.measure,ir);var n=ir.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),S(e.measure),n||1}function Ir(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=Q("span","xxxxxxxxxx"),n=Q("pre",[t],"CodeMirror-line-like");k(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function xr(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,A=t.gutters.firstChild,a=0;A;A=A.nextSibling,++a){var o=e.display.gutterSpecs[a].className;n[o]=A.offsetLeft+A.clientLeft+i,r[o]=A.clientWidth}return{fixedPos:Lr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Lr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Fr(e){var t=Qr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Ir(e.display)-3);return function(i){if(rn(e.doc,i))return 0;var A=0;if(i.widgets)for(var a=0;a0&&(s=ze(e.doc,l.line).text).length==l.ch){var c=O(s,s.length,e.options.tabSize)-s.length;l=At(l.line,Math.max(0,Math.round((A-Wn(e.display).left)/Ir(e.display))-c))}return l}function Ur(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;rt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)It&&tn(e.doc,t)i.viewFrom?Hr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)Hr(e);else if(t<=i.viewFrom){var A=Rr(e,n,n+r,1);A?(i.view=i.view.slice(A.index),i.viewFrom=A.lineN,i.viewTo+=r):Hr(e)}else if(n>=i.viewTo){var a=Rr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):Hr(e)}else{var o=Rr(e,t,t,-1),s=Rr(e,n,n+r,1);o&&s?(i.view=i.view.slice(0,o.index).concat(Bn(e,o.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=r):Hr(e)}var l=i.externalMeasured;l&&(n=i.lineN&&t=r.viewTo)){var A=r.view[Ur(e,t)];if(null!=A.node){var a=A.changes||(A.changes=[]);-1==R(a,n)&&a.push(n)}}}function Hr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Rr(e,t,n,r){var i,A=Ur(e,t),a=e.display.view;if(!It||n==e.doc.first+e.doc.size)return{index:A,lineN:n};for(var o=e.display.viewFrom,s=0;s0){if(A==a.length-1)return null;i=o+a[A].size-t,A++}else i=o-t;t+=i,n+=i}for(;tn(e.doc,n)!=n;){if(A==(r<0?0:a.length-1))return null;n+=r*a[A-(r<0?1:0)].size,A+=r}return{index:A,lineN:n}}function Pr(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=Bn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=Bn(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,Ur(e,n)))),r.viewTo=n}function Kr(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||o.to().line0?t.blinker=setInterval((function(){e.hasFocus()||qr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Yr(e){e.state.focused||(e.display.input.focus(),zr(e))}function Jr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,qr(e))}),100)}function zr(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(me(e,"focus",e,t),e.state.focused=!0,F(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),s&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),jr(e))}function qr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(me(e,"blur",e,t),e.state.focused=!1,_(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Zr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r.005||h<-.005)&&(et(i.line,s),ei(i.line),i.rest))for(var f=0;fe.display.sizerWidth){var d=Math.ceil(l/Ir(e.display));d>e.display.maxLineLength&&(e.display.maxLineLength=d,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function ei(e){if(e.widgets)for(var t=0;t=a&&(A=nt(t,an(ze(t,s))-e.wrapper.clientHeight),a=s)}return{from:A,to:Math.max(a,A+1)}}function ni(e,t){if(!ve(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+r.top<0?i=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!d){var A=Q("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Xn(e.display))+"px;\n height: "+(t.bottom-t.top+jn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(A),A.scrollIntoView(i),e.display.lineSpace.removeChild(A)}}}function ri(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==(t=t.ch?At(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?At(t.line,t.ch+1,"before"):t);for(var A=0;A<5;A++){var a=!1,o=Tr(e,t),s=n&&n!=t?Tr(e,n):o,l=Ai(e,i={left:Math.min(o.left,s.left),top:Math.min(o.top,s.top)-r,right:Math.max(o.left,s.left),bottom:Math.max(o.bottom,s.bottom)+r}),c=e.doc.scrollTop,u=e.doc.scrollLeft;if(null!=l.scrollTop&&(hi(e,l.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=l.scrollLeft&&(di(e,l.scrollLeft),Math.abs(e.doc.scrollLeft-u)>1&&(a=!0)),!a)break}return i}function ii(e,t){var n=Ai(e,t);null!=n.scrollTop&&hi(e,n.scrollTop),null!=n.scrollLeft&&di(e,n.scrollLeft)}function Ai(e,t){var n=e.display,r=Qr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,A=Jn(e),a={};t.bottom-t.top>A&&(t.bottom=t.top+A);var o=e.doc.height+Vn(n),s=t.topo-r;if(t.topi+A){var c=Math.min(t.top,(l?o:t.bottom)-A);c!=i&&(a.scrollTop=c)}var u=e.options.fixedGutter?0:n.gutters.offsetWidth,h=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-u,f=Yn(e)-n.gutters.offsetWidth,d=t.right-t.left>f;return d&&(t.right=t.left+f),t.left<10?a.scrollLeft=0:t.leftf+h-3&&(a.scrollLeft=t.right+(d?0:10)-f),a}function ai(e,t){null!=t&&(ci(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function oi(e){ci(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function si(e,t,n){null==t&&null==n||ci(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function li(e,t){ci(e),e.curOp.scrollToPos=t}function ci(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,ui(e,yr(e,t.from),yr(e,t.to),t.margin))}function ui(e,t,n,r){var i=Ai(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});si(e,i.scrollLeft,i.scrollTop)}function hi(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||Gi(e,{top:t}),fi(e,t,!0),n&&Gi(e),Di(e,100))}function fi(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function di(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,Wi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function pi(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Vn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+jn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var gi=function(e,t,n){this.cm=n;var r=this.vert=Q("div",[Q("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=Q("div",[Q("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),de(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),de(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&o<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};gi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var A=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+A)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},gi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},gi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},gi.prototype.zeroWidthHack=function(){var e=v&&!f?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new H,this.disableVert=new H},gi.prototype.enableZeroWidthBar=function(e,t,n){function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}e.style.pointerEvents="auto",t.set(1e3,r)},gi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var mi=function(){};function vi(e,t){t||(t=pi(e));var n=e.display.barWidth,r=e.display.barHeight;Ti(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Zr(e),Ti(e,pi(e)),n=e.display.barWidth,r=e.display.barHeight}function Ti(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}mi.prototype.update=function(){return{bottom:0,right:0}},mi.prototype.setScrollLeft=function(){},mi.prototype.setScrollTop=function(){},mi.prototype.clear=function(){};var yi={native:gi,null:mi};function Ei(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&_(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new yi[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),de(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?di(e,t):hi(e,t)}),e),e.display.scrollbars.addClass&&F(e.display.wrapper,e.display.scrollbars.addClass)}var bi=0;function Bi(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++bi},wn(e.curOp)}function Ci(e){var t=e.curOp;t&&Sn(t,(function(e){for(var t=0;t=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Mi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Si(e){e.updatedDisplay=e.mustUpdate&&Pi(e.cm,e.update)}function ki(e){var t=e.cm,n=t.display;e.updatedDisplay&&Zr(t),e.barMeasure=pi(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=er(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+jn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Yn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Qi(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var n=+new Date+e.options.workTime,r=Tt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(A){if(r.line>=e.display.viewFrom){var a=A.styles,o=A.text.length>e.options.maxHighlightLength?We(t.mode,r.state):null,s=mt(e,A,r,!0);o&&(r.state=o),A.styles=s.styles;var l=A.styleClasses,c=s.classes;c?A.styleClasses=c:l&&(A.styleClasses=null);for(var u=!a||a.length!=A.styles.length||l!=c&&(!l||!c||l.bgClass!=c.bgClass||l.textClass!=c.textClass),h=0;!u&&hn)return Di(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&xi(e,(function(){for(var t=0;t=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Kr(e))return!1;ji(e)&&(Hr(e),t.dims=xr(e));var i=r.first+r.size,A=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),It&&(A=tn(e.doc,A),a=nn(e.doc,a));var o=A!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Pr(e,A,a),n.viewOffset=an(ze(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var s=Kr(e);if(!o&&0==s&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var l=Hi(e);return s>4&&(n.lineDiv.style.display="none"),$i(e,n.updateLineNumbers,t.dims),s>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Ri(l),S(n.cursorDiv),S(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,o&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Di(e,400)),n.updateLineNumbers=null,!0}function Ki(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Yn(e))r&&(t.visible=ti(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Vn(e.display)-Jn(e),n.top)}),t.visible=ti(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!Pi(e,t))break;Zr(e);var i=pi(e);Gr(e),vi(e,i),Vi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Gi(e,t){var n=new Mi(e,t);if(Pi(e,n)){Zr(e),Ki(e,n);var r=pi(e);Gr(e),vi(e,r),Vi(e,r),n.finish()}}function $i(e,t,n){var r=e.display,i=e.options.lineNumbers,A=r.lineDiv,a=A.firstChild;function o(t){var n=t.nextSibling;return s&&v&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var l=r.view,c=r.viewFrom,u=0;u-1&&(f=!1),xn(e,h,c,n)),f&&(S(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(it(e.options,c)))),a=h.node.nextSibling}else{var d=Hn(e,h,c,n);A.insertBefore(d,a)}c+=h.size}for(;a;)a=o(a)}function Xi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function Vi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+jn(e)+"px"}function Wi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Lr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,A=r+"px",a=0;ao.clientWidth,c=o.scrollHeight>o.clientHeight;if(i&&l||A&&c){if(A&&v&&s)e:for(var h=t.target,f=a.view;h!=o;h=h.parentNode)for(var d=0;d=0&&at(e,r.to())<=0)return n}return-1};var AA=function(e,t){this.anchor=e,this.head=t};function aA(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return at(e.from(),t.from())})),n=R(t,i);for(var A=1;A0:s>=0){var l=ct(o.from(),a.from()),c=lt(o.to(),a.to()),u=o.empty()?a.from()==a.head:o.from()==o.head;A<=n&&--n,t.splice(--A,2,new AA(u?c:l,u?l:c))}}return new iA(t,n)}function oA(e,t){return new iA([new AA(e,t||e)],0)}function sA(e){return e.text?At(e.from.line+e.text.length-1,Y(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function lA(e,t){if(at(e,t.from)<0)return e;if(at(e,t.to)<=0)return sA(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=sA(t).ch-t.to.ch),At(n,r)}function cA(e,t){for(var n=[],r=0;r1&&e.remove(o.line+1,d-1),e.insert(o.line+1,m)}Qn(e,"change",e,t)}function mA(e,t,n){function r(e,i,A){if(e.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Y(e.done)):void 0}function wA(e,t,n,r){var i=e.history;i.undone.length=0;var A,a,o=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>o-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(A=CA(i,i.lastOp==r)))a=Y(A.changes),0==at(t.from,t.to)&&0==at(t.from,a.to)?a.to=sA(t):A.changes.push(bA(e,t));else{var s=Y(i.done);for(s&&s.ranges||kA(e.sel,i.done),A={changes:[bA(e,t)],generation:i.generation},i.done.push(A);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=o,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||me(e,"historyAdded")}function _A(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function SA(e,t,n,r){var i=e.history,A=r&&r.origin;n==i.lastSelOp||A&&i.lastSelOrigin==A&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==A||_A(e,A,Y(i.done),t))?i.done[i.done.length-1]=t:kA(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=A,i.lastSelOp=n,r&&!1!==r.clearRedo&&BA(i.undone)}function kA(e,t){var n=Y(t);n&&n.ranges&&n.equals(e)||t.push(e)}function QA(e,t,n,r){var i=t["spans_"+e.id],A=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[A]=n.markedSpans),++A}))}function IA(e){if(!e)return null;for(var t,n=0;n-1&&(Y(o)[u]=l[u],delete l[u])}}}return r}function NA(e,t,n,r){if(r){var i=e.anchor;if(n){var A=at(t,i)<0;A!=at(n,i)<0?(i=t,t=n):A!=at(t,n)<0&&(t=n)}return new AA(i,t)}return new AA(n||t,t)}function DA(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),PA(e,new iA([NA(e.sel.primary(),t,n,i)],0),r)}function UA(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),A=0;A=t.ch:o.to>t.ch))){if(i&&(me(s,"beforeCursorEnter"),s.explicitlyCleared)){if(A.markedSpans){--a;continue}break}if(!s.atomic)continue;if(n){var u=s.find(r<0?1:-1),h=void 0;if((r<0?c:l)&&(u=jA(e,u,-r,u&&u.line==t.line?A:null)),u&&u.line==t.line&&(h=at(u,n))&&(r<0?h<0:h>0))return VA(e,u,t,r,i)}var f=s.find(r<0?-1:1);return(r<0?l:c)&&(f=jA(e,f,r,f.line==t.line?A:null)),f?VA(e,f,t,r,i):null}}return t}function WA(e,t,n,r,i){var A=r||1,a=VA(e,t,n,A,i)||!i&&VA(e,t,n,A,!0)||VA(e,t,n,-A,i)||!i&&VA(e,t,n,-A,!0);return a||(e.cantEdit=!0,At(e.first,0))}function jA(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?ht(e,At(t.line-1)):null:n>0&&t.ch==(r||ze(e,t.line)).text.length?t.line=0;--i)qA(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else qA(e,t)}}function qA(e,t){if(1!=t.text.length||""!=t.text[0]||0!=at(t.from,t.to)){var n=cA(e,t);wA(e,t,n,e.cm?e.cm.curOp.id:NaN),ta(e,t,n,Ht(e,t));var r=[];mA(e,(function(e,n){n||-1!=R(r,e.history)||(aa(e.history,t),r.push(e.history)),ta(e,t,null,Ht(e,t))}))}}function ZA(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,A=e.history,a=e.sel,o="undo"==t?A.done:A.undone,s="undo"==t?A.undone:A.done,l=0;l=0;--f){var d=h(f);if(d)return d.v}}}}function ea(e,t){if(0!=t&&(e.first+=t,e.sel=new iA(J(e.sel.ranges,(function(e){return new AA(At(e.anchor.line+t,e.anchor.ch),At(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Mr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.lineA&&(t={from:t.from,to:At(A,ze(e,A).text.length),text:[t.text[0]],origin:t.origin}),t.removed=qe(e,t.from,t.to),n||(n=cA(e,t)),e.cm?na(e.cm,t,r):gA(e,t,r),KA(e,n,G),e.cantEdit&&WA(e,At(e.firstLine(),0))&&(e.cantEdit=!1)}}function na(e,t,n){var r=e.doc,i=e.display,A=t.from,a=t.to,o=!1,s=A.line;e.options.lineWrapping||(s=tt(qt(ze(r,A.line))),r.iter(s,a.line+1,(function(e){if(e==i.maxLine)return o=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&Te(e),gA(r,t,n,Fr(e)),e.options.lineWrapping||(r.iter(s,A.line+t.text.length,(function(e){var t=on(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,o=!1)})),o&&(e.curOp.updateMaxLine=!0)),kt(r,A.line),Di(e,400);var l=t.text.length-(a.line-A.line)-1;t.full?Mr(e):A.line!=a.line||1!=t.text.length||pA(e.doc,t)?Mr(e,A.line,a.line+1,l):Or(e,A.line,"text");var c=ye(e,"changes"),u=ye(e,"change");if(u||c){var h={from:A,to:a,text:t.text,removed:t.removed,origin:t.origin};u&&Qn(e,"change",e,h),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(h)}e.display.selForContextMenu=null}function ra(e,t,n,r,i){var A;r||(r=n),at(r,n)<0&&(n=(A=[r,n])[0],r=A[1]),"string"==typeof t&&(t=e.splitLines(t)),zA(e,{from:n,to:r,text:t,origin:i})}function ia(e,t,n,r){n1||!(this.children[0]instanceof sa))){var o=[];this.collapse(o),this.children=[new sa(o)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=i.lines.length%25+25,o=a;o10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r0||0==a&&!1!==A.clearWhenEmpty)return A;if(A.replacedWith&&(A.collapsed=!0,A.widgetNode=I("span",[A.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||A.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(A.widgetNode.insertLeft=!0)),A.collapsed){if(zt(e,t.line,t,n,A)||t.line!=n.line&&zt(e,n.line,t,n,A))throw new Error("Inserting collapsed marker partially overlapping an existing one");Lt()}A.addToHistory&&wA(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var o,s=t.line,l=e.cm;if(e.iter(s,n.line+1,(function(e){l&&A.collapsed&&!l.options.lineWrapping&&qt(e)==l.display.maxLine&&(o=!0),A.collapsed&&s!=t.line&&et(e,0),Ut(e,new Ft(A,s==t.line?t.ch:null,s==n.line?n.ch:null)),++s})),A.collapsed&&e.iter(t.line,n.line+1,(function(t){rn(e,t)&&et(t,0)})),A.clearOnEnter&&de(A,"beforeCursorEnter",(function(){return A.clear()})),A.readOnly&&(xt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),A.collapsed&&(A.id=++fa,A.atomic=!0),l){if(o&&(l.curOp.updateMaxLine=!0),A.collapsed)Mr(l,t.line,n.line+1);else if(A.className||A.startStyle||A.endStyle||A.css||A.attributes||A.title)for(var c=t.line;c<=n.line;c++)Or(l,c,"text");A.atomic&&$A(l.doc),Qn(l,"markerAdded",l,A)}return A}da.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Bi(e),ye(this,"clear")){var n=this.find();n&&Qn(this,"clear",n.from,n.to)}for(var r=null,i=null,A=0;Ae.display.maxLineLength&&(e.display.maxLine=l,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Mr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&$A(e.doc)),e&&Qn(e,"markerCleared",e,this,r,i),t&&Ci(e),this.parent&&this.parent.clear()}},da.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i=0;s--)zA(this,r[s]);o?RA(this,o):this.cm&&oi(this.cm)})),undo:Ni((function(){ZA(this,"undo")})),redo:Ni((function(){ZA(this,"redo")})),undoSelection:Ni((function(){ZA(this,"undo",!0)})),redoSelection:Ni((function(){ZA(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=ht(this,e),t=ht(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(A){var a=A.markedSpans;if(a)for(var o=0;o=s.to||null==s.from&&i!=e.line||null!=s.from&&i==t.line&&s.from>=t.ch||n&&!n(s.marker)||r.push(s.marker.parent||s.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=A,++n})),ht(this,At(n,t))},indexFromPos:function(e){var t=(e=ht(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var u=e.dataTransfer.getData("Text");if(u){var h;if(t.state.draggingText&&!t.state.draggingText.copy&&(h=t.listSelections()),KA(t.doc,oA(n,n)),h)for(var f=0;f=0;t--)ra(e.doc,"",r[t].from,r[t].to,"+delete");oi(e)}))}function Va(e,t,n){var r=ae(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Wa(e,t,n){var r=Va(e,t.ch,n);return null==r?null:new At(t.line,r,n<0?"after":"before")}function ja(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var A=he(n,t.doc.direction);if(A){var a,o=i<0?Y(A):A[0],s=i<0==(1==o.level)?"after":"before";if(o.level>0||"rtl"==t.doc.direction){var l=nr(t,n);a=i<0?n.text.length-1:0;var c=rr(t,l,a).top;a=oe((function(e){return rr(t,l,e).top==c}),i<0==(1==o.level)?o.from:o.to-1,a),"before"==s&&(a=Va(n,a,1))}else a=i<0?o.to:o.from;return new At(r,a,s)}}return new At(r,i<0?n.text.length:0,i<0?"before":"after")}function Ya(e,t,n,r){var i=he(t,e.doc.direction);if(!i)return Wa(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var A=ce(i,n.ch,n.sticky),a=i[A];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from=a.from&&h>=c.begin)){var f=u?"before":"after";return new At(n.line,h,f)}}var d=function(e,t,r){for(var A=function(e,t){return t?new At(n.line,s(e,1),"before"):new At(n.line,e,"after")};e>=0&&e0==(1!=a.level),l=o?r.begin:s(r.end,-1);if(a.from<=l&&l0?c.end:s(c.begin,-1);return null==g||r>0&&g==t.text.length||!(p=d(r>0?0:i.length-1,r,l(g)))?null:p}Ma.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ma.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ma.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ma.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ma.default=v?Ma.macDefault:Ma.pcDefault;var Ja={selectAll:YA,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),G)},killLine:function(e){return Xa(e,(function(t){if(t.empty()){var n=ze(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)i=new At(i.line,i.ch+1),e.replaceRange(A.charAt(i.ch-1)+A.charAt(i.ch-2),At(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=ze(e.doc,i.line-1).text;a&&(i=new At(i.line,1),e.replaceRange(A.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),At(i.line-1,a.length-1),i,"+transpose"))}n.push(new AA(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return xi(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r-1&&(at((i=o.ranges[i]).from(),t)<0||t.xRel>0)&&(at(i.to(),t)>0||t.xRel<0)?bo(e,r,t,A):Co(e,r,t,A)}function bo(e,t,n,r){var i=e.display,A=!1,l=Li(e,(function(t){s&&(i.scroller.draggable=!1),e.state.draggingText=!1,ge(i.wrapper.ownerDocument,"mouseup",l),ge(i.wrapper.ownerDocument,"mousemove",c),ge(i.scroller,"dragstart",u),ge(i.scroller,"drop",l),A||(be(t),r.addNew||DA(e.doc,n,null,null,r.extend),s&&!h||a&&9==o?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),c=function(e){A=A||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},u=function(){return A=!0};s&&(i.scroller.draggable=!0),e.state.draggingText=l,l.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),de(i.wrapper.ownerDocument,"mouseup",l),de(i.wrapper.ownerDocument,"mousemove",c),de(i.scroller,"dragstart",u),de(i.scroller,"drop",l),Jr(e),setTimeout((function(){return i.input.focus()}),20)}function Bo(e,t,n){if("char"==n)return new AA(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new AA(At(t.line,0),ht(e.doc,At(t.line+1,0)));var r=n(e,t);return new AA(r.from,r.to)}function Co(e,t,n,r){var i=e.display,A=e.doc;be(t);var a,o,s=A.sel,l=s.ranges;if(r.addNew&&!r.extend?(o=A.sel.contains(n),a=o>-1?l[o]:new AA(n,n)):(a=A.sel.primary(),o=A.sel.primIndex),"rectangle"==r.unit)r.addNew||(a=new AA(n,n)),n=Dr(e,t,!0,!0),o=-1;else{var c=Bo(e,n,r.unit);a=r.extend?NA(a,c.anchor,c.head,r.extend):c}r.addNew?-1==o?(o=l.length,PA(A,aA(e,l.concat([a]),o),{scroll:!1,origin:"*mouse"})):l.length>1&&l[o].empty()&&"char"==r.unit&&!r.extend?(PA(A,aA(e,l.slice(0,o).concat(l.slice(o+1)),0),{scroll:!1,origin:"*mouse"}),s=A.sel):MA(A,o,a,$):(o=0,PA(A,new iA([a],0),$),s=A.sel);var u=n;function h(t){if(0!=at(u,t))if(u=t,"rectangle"==r.unit){for(var i=[],l=e.options.tabSize,c=O(ze(A,n.line).text,n.ch,l),h=O(ze(A,t.line).text,t.ch,l),f=Math.min(c,h),d=Math.max(c,h),p=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));p<=g;p++){var m=ze(A,p).text,v=V(m,f,l);f==d?i.push(new AA(At(p,v),At(p,v))):m.length>v&&i.push(new AA(At(p,v),At(p,V(m,d,l))))}i.length||i.push(new AA(n,n)),PA(A,aA(e,s.ranges.slice(0,o).concat(i),o),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var T,y=a,E=Bo(e,t,r.unit),b=y.anchor;at(E.anchor,b)>0?(T=E.head,b=ct(y.from(),E.anchor)):(T=E.anchor,b=lt(y.to(),E.head));var B=s.ranges.slice(0);B[o]=wo(e,new AA(ht(A,b),T)),PA(A,aA(e,B,o),$)}}var f=i.wrapper.getBoundingClientRect(),d=0;function p(t){var n=++d,a=Dr(e,t,!0,"rectangle"==r.unit);if(a)if(0!=at(a,u)){e.curOp.focus=L(),h(a);var o=ti(i,A);(a.line>=o.to||a.linef.bottom?20:0;s&&setTimeout(Li(e,(function(){d==n&&(i.scroller.scrollTop+=s,p(t))})),50)}}function g(t){e.state.selectingText=!1,d=1/0,t&&(be(t),i.input.focus()),ge(i.wrapper.ownerDocument,"mousemove",m),ge(i.wrapper.ownerDocument,"mouseup",v),A.history.lastSelOrigin=null}var m=Li(e,(function(e){0!==e.buttons&&Se(e)?p(e):g(e)})),v=Li(e,g);e.state.selectingText=v,de(i.wrapper.ownerDocument,"mousemove",m),de(i.wrapper.ownerDocument,"mouseup",v)}function wo(e,t){var n=t.anchor,r=t.head,i=ze(e.doc,n.line);if(0==at(n,r)&&n.sticky==r.sticky)return t;var A=he(i);if(!A)return t;var a=ce(A,n.ch,n.sticky),o=A[a];if(o.from!=n.ch&&o.to!=n.ch)return t;var s,l=a+(o.from==n.ch==(1!=o.level)?0:1);if(0==l||l==A.length)return t;if(r.line!=n.line)s=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=ce(A,r.ch,r.sticky),u=c-a||(r.ch-n.ch)*(1==o.level?-1:1);s=c==l-1||c==l?u<0:u>0}var h=A[l+(s?-1:0)],f=s==(1==h.level),d=f?h.from:h.to,p=f?"after":"before";return n.ch==d&&n.sticky==p?t:new AA(new At(n.line,d,p),r)}function _o(e,t,n,r){var i,A;if(t.touches)i=t.touches[0].clientX,A=t.touches[0].clientY;else try{i=t.clientX,A=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&be(t);var a=e.display,o=a.lineDiv.getBoundingClientRect();if(A>o.bottom||!ye(e,n))return Ce(t);A-=o.top-a.viewOffset;for(var s=0;s=i)return me(e,n,e,nt(e.doc,A),e.display.gutterSpecs[s].className,t),Ce(t)}}function So(e,t){return _o(e,t,"gutterClick",!0)}function ko(e,t){$n(e.display,t)||Qo(e,t)||ve(e,t,"contextmenu")||B||e.display.input.onContextMenu(t)}function Qo(e,t){return!!ye(e,"gutterContextMenu")&&_o(e,t,"gutterContextMenu",!1)}function Io(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),hr(e)}go.prototype.compare=function(e,t,n){return this.time+po>e&&0==at(t,this.pos)&&n==this.button};var xo={toString:function(){return"CodeMirror.Init"}},Lo={},Fo={};function No(e){var t=e.optionHandlers;function n(n,r,i,A){e.defaults[n]=r,i&&(t[n]=A?function(e,t,n){n!=xo&&i(e,t,n)}:i)}e.defineOption=n,e.Init=xo,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,fA(e)}),!0),n("indentUnit",2,fA,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){dA(e),hr(e),Mr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var A=e.text.indexOf(t,i);if(-1==A)break;i=A+t.length,n.push(At(r,A))}r++}));for(var i=n.length-1;i>=0;i--)ra(e.doc,t,n[i],At(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=xo&&e.refresh()})),n("specialCharPlaceholder",gn,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",m?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!y),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){Io(e),zi(e)}),!0),n("keyMap","default",(function(e,t,n){var r=$a(t),i=n!=xo&&$a(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Uo,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=Yi(t,e.options.lineNumbers),zi(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?Lr(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return vi(e)}),!0),n("scrollbarStyle","native",(function(e){Ei(e),vi(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=Yi(e.options.gutters,t),zi(e)}),!0),n("firstLineNumber",1,zi,!0),n("lineNumberFormatter",(function(e){return e}),zi,!0),n("showCursorWhenSelecting",!1,Gr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(qr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Do),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Gr,!0),n("singleCursorHeightPerLine",!0,Gr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,dA,!0),n("addModeClass",!1,dA,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,dA,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}function Do(e,t,n){if(!t!=!(n&&n!=xo)){var r=e.display.dragFunctions,i=t?de:ge;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Uo(e){e.options.lineWrapping?(F(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(_(e.display.wrapper,"CodeMirror-wrap"),sn(e)),Nr(e),Mr(e),hr(e),setTimeout((function(){return vi(e)}),100)}function Mo(e,t){var n=this;if(!(this instanceof Mo))return new Mo(e,t);this.options=t=t?M(t):{},M(Lo,t,!1);var r=t.value;"string"==typeof r?r=new ba(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Mo.inputStyles[t.inputStyle](this),A=this.display=new qi(e,r,i,t);for(var l in A.wrapper.CodeMirror=this,Io(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ei(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new H,keySeq:null,specialChars:null},t.autofocus&&!m&&A.input.focus(),a&&o<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),Oo(this),Ia(),Bi(this),this.curOp.forceUpdate=!0,vA(this,r),t.autofocus&&!m||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&zr(n)}),20):qr(this),Fo)Fo.hasOwnProperty(l)&&Fo[l](this,t[l],xo);ji(this),t.finishInit&&t.finishInit(this);for(var c=0;c400}de(t.scroller,"touchstart",(function(i){if(!ve(e,i)&&!A(i)&&!So(e,i)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),de(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),de(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!$n(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var A,a=e.coordsChar(t.activeTouch,"page");A=!r.prev||s(r,r.prev)?new AA(a,a):!r.prev.prev||s(r,r.prev.prev)?e.findWordAt(a):new AA(At(a.line,0),ht(e.doc,At(a.line+1,0))),e.setSelection(A.anchor,A.head),e.focus(),be(n)}i()})),de(t.scroller,"touchcancel",i),de(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(hi(e,t.scroller.scrollTop),di(e,t.scroller.scrollLeft,!0),me(e,"scroll",e))})),de(t.scroller,"mousewheel",(function(t){return rA(e,t)})),de(t.scroller,"DOMMouseScroll",(function(t){return rA(e,t)})),de(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){ve(e,t)||we(t)},over:function(t){ve(e,t)||(_a(e,t),we(t))},start:function(t){return wa(e,t)},drop:Li(e,Ca),leave:function(t){ve(e,t)||Sa(e)}};var l=t.input.getField();de(l,"keyup",(function(t){return co.call(e,t)})),de(l,"keydown",Li(e,so)),de(l,"keypress",Li(e,uo)),de(l,"focus",(function(t){return zr(e,t)})),de(l,"blur",(function(t){return qr(e,t)}))}Mo.defaults=Lo,Mo.optionHandlers=Fo;var Ho=[];function Ro(e,t,n,r){var i,A=e.doc;null==n&&(n="add"),"smart"==n&&(A.mode.indent?i=Tt(e,t).state:n="prev");var a=e.options.tabSize,o=ze(A,t),s=O(o.text,null,a);o.stateAfter&&(o.stateAfter=null);var l,c=o.text.match(/^\s*/)[0];if(r||/\S/.test(o.text)){if("smart"==n&&((l=A.mode.indent(i,o.text.slice(c.length),o.text))==K||l>150)){if(!r)return;n="prev"}}else l=0,n="not";"prev"==n?l=t>A.first?O(ze(A,t-1).text,null,a):0:"add"==n?l=s+e.options.indentUnit:"subtract"==n?l=s-e.options.indentUnit:"number"==typeof n&&(l=s+n),l=Math.max(0,l);var u="",h=0;if(e.options.indentWithTabs)for(var f=Math.floor(l/a);f;--f)h+=a,u+="\t";if(ha,s=Ne(t),l=null;if(o&&r.ranges.length>1)if(Po&&Po.text.join("\n")==t){if(r.ranges.length%Po.text.length==0){l=[];for(var c=0;c=0;h--){var f=r.ranges[h],d=f.from(),p=f.to();f.empty()&&(n&&n>0?d=At(d.line,d.ch-n):e.state.overwrite&&!o?p=At(p.line,Math.min(ze(A,p.line).text.length,p.ch+Y(s).length)):o&&Po&&Po.lineWise&&Po.text.join("\n")==s.join("\n")&&(d=p=At(d.line,0)));var g={from:d,to:p,text:l?l[h%l.length]:s,origin:i||(o?"paste":e.state.cutIncoming>a?"cut":"+input")};zA(e.doc,g),Qn(e,"inputRead",e,g)}t&&!o&&Xo(e,t),oi(e),e.curOp.updateInput<2&&(e.curOp.updateInput=u),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function $o(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||xi(t,(function(){return Go(t,n,0,null,"paste")})),!0}function Xo(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var A=e.getModeAt(i.head),a=!1;if(A.electricChars){for(var o=0;o-1){a=Ro(e,i.head.line,"smart");break}}else A.electricInput&&A.electricInput.test(ze(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Ro(e,i.head.line,"smart"));a&&Qn(e,"electricInput",e,i.head.line)}}}function Vo(e){for(var t=[],n=[],r=0;rn&&(Ro(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&oi(this));else{var A=i.from(),a=i.to(),o=Math.max(n,A.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var s=o;s0&&MA(this.doc,r,new AA(A,l[r].to()),G)}}})),getTokenAt:function(e,t){return Ct(this,e,t)},getLineTokens:function(e,t){return Ct(this,At(e),t,!0)},getTokenTypeAt:function(e){e=ht(this.doc,e);var t,n=vt(this,ze(this.doc,e.line)),r=0,i=(n.length-1)/2,A=e.ch;if(0==A)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=A)i=a;else{if(!(n[2*a+1]A&&(e=A,i=!0),r=ze(this.doc,e)}else r=e;return gr(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-an(r):0)},defaultTextHeight:function(){return Qr(this.display)},defaultCharWidth:function(){return Ir(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var A=this.display,a=(e=Tr(this,ht(this.doc,e))).bottom,o=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),A.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var s=Math.max(A.wrapper.clientHeight,this.doc.height),l=Math.max(A.sizer.clientWidth,A.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>s)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=s&&(a=e.bottom),o+t.offsetWidth>l&&(o=l-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(o=A.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?o=0:"middle"==i&&(o=(A.sizer.clientWidth-t.offsetWidth)/2),t.style.left=o+"px"),n&&ii(this,{left:o,top:a,right:o+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:Fi(so),triggerOnKeyPress:Fi(uo),triggerOnKeyUp:co,triggerOnMouseDown:Fi(vo),execCommand:function(e){if(Ja.hasOwnProperty(e))return Ja[e].call(null,this)},triggerElectric:Fi((function(e){Xo(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var A=ht(this.doc,e),a=0;a0&&a(t.charAt(n-1));)--n;for(;r.5||this.options.lineWrapping)&&Nr(this),me(this,"refresh",this)})),swapDoc:Fi((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),vA(this,e),hr(this),this.display.input.reset(),si(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Qn(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ee(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,A){e.registerHelper(t,r,A),n[t]._global.push({pred:i,val:A})}}function Jo(e,t,n,r,i){var A=t,a=n,o=ze(e,t.line),s=i&&"rtl"==e.direction?-n:n;function l(){var n=t.line+s;return!(n=e.first+e.size)&&(t=new At(n,t.ch,t.sticky),o=ze(e,n))}function c(A){var a;if("codepoint"==r){var c=o.text.charCodeAt(t.ch+(r>0?0:-1));a=isNaN(c)?null:new At(t.line,Math.max(0,Math.min(o.text.length,t.ch+n*(c>=55296&&c<56320?2:1))),-n)}else a=i?Ya(e.cm,o,t,n):Wa(o,t,n);if(null==a){if(A||!l())return!1;t=ja(i,e.cm,o,t.line,s)}else t=a;return!0}if("char"==r||"codepoint"==r)c();else if("column"==r)c(!0);else if("word"==r||"group"==r)for(var u=null,h="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),d=!0;!(n<0)||c(!d);d=!1){var p=o.text.charAt(t.ch)||"\n",g=ne(p,f)?"w":h&&"\n"==p?"n":!h||/\s/.test(p)?null:"p";if(!h||d||g||(g="s"),u&&u!=g){n<0&&(n=1,c(),t.sticky="after");break}if(g&&(u=g),n>0&&!c(!d))break}var m=WA(e,t,A,a,!0);return ot(A,m)&&(m.hitSide=!0),m}function zo(e,t,n,r){var i,A,a=e.doc,o=t.left;if("page"==r){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),l=Math.max(s-.5*Qr(e.display),3);i=(n>0?t.bottom:t.top)+n*l}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(A=br(e,o,i)).outside;){if(n<0?i<=0:i>=a.height){A.hitSide=!0;break}i+=5*n}return A}var qo=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new H,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Zo(e,t){var n=tr(e,t.line);if(!n||n.hidden)return null;var r=ze(e.doc,t.line),i=qn(n,r,t.line),A=he(r,e.doc.direction),a="left";A&&(a=ce(A,t.ch)%2?"right":"left");var o=ar(i.map,t.ch,a);return o.offset="right"==o.collapse?o.end:o.start,o}function es(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function ts(e,t){return t&&(e.bad=!0),e}function ns(e,t,n,r,i){var A="",a=!1,o=e.doc.lineSeparator(),s=!1;function l(e){return function(t){return t.id==e}}function c(){a&&(A+=o,s&&(A+=o),a=s=!1)}function u(e){e&&(c(),A+=e)}function h(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void u(n);var A,f=t.getAttribute("cm-marker");if(f){var d=e.findMarks(At(r,0),At(i+1,0),l(+f));return void(d.length&&(A=d[0].find(0))&&u(qe(e.doc,A.from,A.to).join(o)))}if("false"==t.getAttribute("contenteditable"))return;var p=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;p&&c();for(var g=0;g=t.display.viewTo||A.line=t.display.viewFrom&&Zo(t,i)||{node:s[0].measure.map[2],offset:0},c=A.liner.firstLine()&&(a=At(a.line-1,ze(r.doc,a.line-1).length)),o.ch==ze(r.doc,o.line).text.length&&o.linei.viewTo-1)return!1;a.line==i.viewFrom||0==(e=Ur(r,a.line))?(t=tt(i.view[0].line),n=i.view[0].node):(t=tt(i.view[e].line),n=i.view[e-1].node.nextSibling);var s,l,c=Ur(r,o.line);if(c==i.view.length-1?(s=i.viewTo-1,l=i.lineDiv.lastChild):(s=tt(i.view[c+1].line)-1,l=i.view[c+1].node.previousSibling),!n)return!1;for(var u=r.doc.splitLines(ns(r,n,l,t,s)),h=qe(r.doc,At(t,0),At(s,ze(r.doc,s).text.length));u.length>1&&h.length>1;)if(Y(u)==Y(h))u.pop(),h.pop(),s--;else{if(u[0]!=h[0])break;u.shift(),h.shift(),t++}for(var f=0,d=0,p=u[0],g=h[0],m=Math.min(p.length,g.length);fa.ch&&v.charCodeAt(v.length-d-1)==T.charCodeAt(T.length-d-1);)f--,d++;u[u.length-1]=v.slice(0,v.length-d).replace(/^\u200b+/,""),u[0]=u[0].slice(f).replace(/\u200b+$/,"");var E=At(t,f),b=At(s,h.length?Y(h).length-d:0);return u.length>1||u[0]||at(E,b)?(ra(r.doc,u,E,b,"+input"),!0):void 0},qo.prototype.ensurePolled=function(){this.forceCompositionEnd()},qo.prototype.reset=function(){this.forceCompositionEnd()},qo.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},qo.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},qo.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||xi(this.cm,(function(){return Mr(e.cm)}))},qo.prototype.setUneditable=function(e){e.contentEditable="false"},qo.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Li(this.cm,Go)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},qo.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},qo.prototype.onContextMenu=function(){},qo.prototype.resetPosition=function(){},qo.prototype.needsContentAttribute=!0;var As=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new H,this.hasSelection=!1,this.composing=null};function as(e,t){if((t=t?M(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=L();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=o.getValue()}var i;if(e.form&&(de(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var A=e.form;i=A.submit;try{var a=A.submit=function(){r(),A.submit=i,A.submit(),A.submit=a}}catch(e){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(ge(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var o=Mo((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return o}function os(e){e.off=ge,e.on=de,e.wheelEventPixels=nA,e.Doc=ba,e.splitLines=Ne,e.countColumn=O,e.findColumn=V,e.isWordChar=te,e.Pass=K,e.signal=me,e.Line=ln,e.changeEnd=sA,e.scrollbarModel=yi,e.Pos=At,e.cmpPos=at,e.modes=He,e.mimeModes=Re,e.resolveMode=Ge,e.getMode=$e,e.modeExtensions=Xe,e.extendMode=Ve,e.copyState=We,e.startState=Ye,e.innerMode=je,e.commands=Ja,e.keyMap=Ma,e.keyName=Ga,e.isModifierKey=Pa,e.lookupKey=Ra,e.normalizeKeyMap=Ha,e.StringStream=Je,e.SharedTextMarker=ga,e.TextMarker=da,e.LineWidget=ca,e.e_preventDefault=be,e.e_stopPropagation=Be,e.e_stop=we,e.addClass=F,e.contains=x,e.rmClass=_,e.keyNames=Fa}As.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function A(e){if(!ve(r,e)){if(r.somethingSelected())Ko({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Vo(r);Ko({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,G):(n.prevInput="",i.value=t.text.join("\n"),D(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),p&&(i.style.width="0px"),de(i,"input",(function(){a&&o>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),de(i,"paste",(function(e){ve(r,e)||$o(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),de(i,"cut",A),de(i,"copy",A),de(e.scroller,"paste",(function(t){if(!$n(e,t)&&!ve(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var A=new Event("paste");A.clipboardData=t.clipboardData,i.dispatchEvent(A)}})),de(e.lineSpace,"selectstart",(function(t){$n(e,t)||be(t)})),de(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),de(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},As.prototype.createField=function(e){this.wrapper=jo(),this.textarea=this.wrapper.firstChild},As.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},As.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=$r(e);if(e.options.moveInputWithCursor){var i=Tr(e,n.sel.primary().head,"div"),A=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-A.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-A.left))}return r},As.prototype.showSelection=function(e){var t=this.cm.display;k(t.cursorDiv,e.cursors),k(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},As.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&D(this.textarea),a&&o>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&o>=9&&(this.hasSelection=null))}},As.prototype.getField=function(){return this.textarea},As.prototype.supportsTouch=function(){return!1},As.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!m||L()!=this.textarea))try{this.textarea.focus()}catch(e){}},As.prototype.blur=function(){this.textarea.blur()},As.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},As.prototype.receivedFocus=function(){this.slowPoll()},As.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},As.prototype.fastPoll=function(){var e=!1,t=this;function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}t.pollingFast=!0,t.polling.set(20,n)},As.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||De(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&o>=9&&this.hasSelection===i||v&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var A=i.charCodeAt(0);if(8203!=A||r||(r="​"),8666==A)return this.reset(),this.cm.execCommand("undo")}for(var s=0,l=Math.min(r.length,i.length);s1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},As.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},As.prototype.onKeyPress=function(){a&&o>=9&&(this.hasSelection=null),this.fastPoll()},As.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var A=Dr(n,e),l=r.scroller.scrollTop;if(A&&!u){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(A)&&Li(n,PA)(n.doc,oA(A),G);var c,h=i.style.cssText,f=t.wrapper.style.cssText,d=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-d.top-5)+"px; left: "+(e.clientX-d.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",s&&(c=window.scrollY),r.input.focus(),s&&window.scrollTo(null,c),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=m,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&o>=9&&g(),B){we(e);var p=function(){ge(window,"mouseup",p),setTimeout(m,20)};de(window,"mouseup",p)}else setTimeout(m,50)}function g(){if(null!=i.selectionStart){var e=n.somethingSelected(),A="​"+(e?i.value:"");i.value="⇚",i.value=A,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=A.length,r.selForContextMenu=n.doc.sel}}function m(){if(t.contextMenuPending==m&&(t.contextMenuPending=!1,t.wrapper.style.cssText=f,i.style.cssText=h,a&&o<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=l),null!=i.selectionStart)){(!a||a&&o<9)&&g();var e=0,A=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?Li(n,YA)(n):e++<10?r.detectingSelectAll=setTimeout(A,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(A,200)}}},As.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},As.prototype.setUneditable=function(){},As.prototype.needsContentAttribute=!1,No(Mo),Yo(Mo);var ss="iter insert remove copy getEditor constructor".split(" ");for(var ls in ba.prototype)ba.prototype.hasOwnProperty(ls)&&R(ss,ls)<0&&(Mo.prototype[ls]=function(e){return function(){return e.apply(this.doc,arguments)}}(ba.prototype[ls]));return Ee(ba),Mo.inputStyles={textarea:As,contenteditable:qo},Mo.defineMode=function(e){Mo.defaults.mode||"null"==e||(Mo.defaults.mode=e),Pe.apply(this,arguments)},Mo.defineMIME=Ke,Mo.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Mo.defineMIME("text/plain","null"),Mo.defineExtension=function(e,t){Mo.prototype[e]=t},Mo.defineDocExtension=function(e,t){ba.prototype[e]=t},Mo.fromTextArea=as,os(Mo),Mo.version="5.58.2",Mo}()}));r((function(e,t){var n,r,i;r={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},i={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1},(n=rc).defineMode("xml",(function(e,t){var A,a,o=e.indentUnit,s={},l=t.htmlMode?r:i;for(var c in l)s[c]=l[c];for(var c in t)s[c]=t[c];function u(e,t){function n(n){return t.tokenize=n,n(e,t)}var r=e.next();return"<"==r?e.eat("!")?e.eat("[")?e.match("CDATA[")?n(d("atom","]]>")):null:e.match("--")?n(d("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(p(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=d("meta","?>"),"meta"):(A=e.eat("/")?"closeTag":"openTag",t.tokenize=h,"tag bracket"):"&"==r?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error":(e.eatWhile(/[^&<]/),null)}function h(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=u,A=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return A="equals",null;if("<"==n){t.tokenize=u,t.state=T,t.tagName=t.tagStart=null;var r=t.tokenize(e,t);return r?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=f(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function f(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=h;break}return"string"};return t.isInAttribute=!0,t}function d(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=u;break}n.next()}return e}}function p(e){return function(t,n){for(var r;null!=(r=t.next());){if("<"==r)return n.tokenize=p(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=u;break}return n.tokenize=p(e-1),n.tokenize(t,n)}}return"meta"}}function g(e,t,n){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=n,(s.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function m(e){e.context&&(e.context=e.context.prev)}function v(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!s.contextGrabbers.hasOwnProperty(n)||!s.contextGrabbers[n].hasOwnProperty(t))return;m(e)}}function T(e,t,n){return"openTag"==e?(n.tagStart=t.column(),y):"closeTag"==e?E:T}function y(e,t,n){return"word"==e?(n.tagName=t.current(),a="tag",C):s.allowMissingTagName&&"endTag"==e?(a="tag bracket",C(e,t,n)):(a="error",y)}function E(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&s.implicitlyClosed.hasOwnProperty(n.context.tagName)&&m(n),n.context&&n.context.tagName==r||!1===s.matchClosing?(a="tag",b):(a="tag error",B)}return s.allowMissingTagName&&"endTag"==e?(a="tag bracket",b(e,t,n)):(a="error",B)}function b(e,t,n){return"endTag"!=e?(a="error",b):(m(n),T)}function B(e,t,n){return a="error",b(e,t,n)}function C(e,t,n){if("word"==e)return a="attribute",w;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||s.autoSelfClosers.hasOwnProperty(r)?v(n,r):(v(n,r),n.context=new g(n,r,i==n.indented)),T}return a="error",C}function w(e,t,n){return"equals"==e?_:(s.allowMissing||(a="error"),C(e,t,n))}function _(e,t,n){return"string"==e?S:"word"==e&&s.allowUnquoted?(a="string",C):(a="error",C(e,t,n))}function S(e,t,n){return"string"==e?S:C(e,t,n)}return u.isInText=!0,{startState:function(e){var t={tokenize:u,state:T,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;A=null;var n=t.tokenize(e,t);return(n||A)&&"comment"!=n&&(a=null,t.state=t.state(A||n,e,t),a&&(n="error"==a?n+" error":a)),n},indent:function(e,t,r){var i=e.context;if(e.tokenize.isInAttribute)return e.tagStart==e.indented?e.stringStartCol+1:e.indented+o;if(i&&i.noIndent)return n.Pass;if(e.tokenize!=h&&e.tokenize!=u)return r?r.match(/^(\s*)/)[0].length:0;if(e.tagName)return!1!==s.multilineTagIndentPastTag?e.tagStart+e.tagName.length+2:e.tagStart+o*(s.multilineTagIndentFactor||1);if(s.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:s.htmlMode?"html":"xml",helperType:s.htmlMode?"html":"xml",skipAttribute:function(e){e.state==_&&(e.state=C)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],n=e.context;n;n=n.prev)n.tagName&&t.push(n.tagName);return t.reverse()}}})),n.defineMIME("text/xml","xml"),n.defineMIME("application/xml","xml"),n.mimeModes.hasOwnProperty("text/html")||n.defineMIME("text/html",{name:"xml",htmlMode:!0})})),r((function(e,t){!function(e){e.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var t=0;t-1&&t.substring(i+1,t.length);if(A)return e.findModeByExtension(A)},e.findModeByName=function(t){t=t.toLowerCase();for(var n=0;n` "'(~:]+/,d=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,p=/^\s*\[[^\]]+?\]:.*$/,g=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,m=" ";function v(e,t,n){return t.f=t.inline=n,n(e,t)}function T(e,t,n){return t.f=t.block=n,n(e,t)}function y(e){return!e||!/\S/.test(e.string)}function E(e){if(e.linkTitle=!1,e.linkHref=!1,e.linkText=!1,e.em=!1,e.strong=!1,e.strikethrough=!1,e.quote=0,e.indentedCode=!1,e.f==B){var t=i;if(!t){var A=n.innerMode(r,e.htmlState);t="xml"==A.mode.name&&null===A.state.tagStart&&!A.state.context&&A.state.tokenize.isInText}t&&(e.f=S,e.block=b,e.htmlState=null)}return e.trailingSpace=0,e.trailingSpaceNewLine=!1,e.prevLine=e.thisLine,e.thisLine={stream:null},null}function b(e,r){var i=e.column()===r.indentation,o=y(r.prevLine.stream),f=r.indentedCode,g=r.prevLine.hr,m=!1!==r.list,T=(r.listStack[r.listStack.length-1]||0)+3;r.indentedCode=!1;var E=r.indentation;if(null===r.indentationDiff&&(r.indentationDiff=r.indentation,m)){for(r.list=null;E=4&&(f||r.prevLine.fencedCodeEnd||r.prevLine.header||o))return e.skipToEnd(),r.indentedCode=!0,a.code;if(e.eatSpace())return null;if(i&&r.indentation<=T&&(_=e.match(u))&&_[1].length<=6)return r.quote=0,r.header=_[1].length,r.thisLine.header=!0,t.highlightFormatting&&(r.formatting="header"),r.f=r.inline,w(r);if(r.indentation<=T&&e.eat(">"))return r.quote=i?1:r.quote+1,t.highlightFormatting&&(r.formatting="quote"),e.eatSpace(),w(r);if(!B&&!r.setext&&i&&r.indentation<=T&&(_=e.match(l))){var S=_[1]?"ol":"ul";return r.indentation=E+e.current().length,r.list=!0,r.quote=0,r.listStack.push(r.indentation),r.em=!1,r.strong=!1,r.code=!1,r.strikethrough=!1,t.taskLists&&e.match(c,!1)&&(r.taskList=!0),r.f=r.inline,t.highlightFormatting&&(r.formatting=["list","list-"+S]),w(r)}return i&&r.indentation<=T&&(_=e.match(d,!0))?(r.quote=0,r.fencedEndRE=new RegExp(_[1]+"+ *$"),r.localMode=t.fencedCodeBlockHighlighting&&A(_[2]||t.fencedCodeBlockDefaultMode),r.localMode&&(r.localState=n.startState(r.localMode)),r.f=r.block=C,t.highlightFormatting&&(r.formatting="code-block"),r.code=-1,w(r)):r.setext||!(b&&m||r.quote||!1!==r.list||r.code||B||p.test(e.string))&&(_=e.lookAhead(1))&&(_=_.match(h))?(r.setext?(r.header=r.setext,r.setext=0,e.skipToEnd(),t.highlightFormatting&&(r.formatting="header")):(r.header="="==_[0].charAt(0)?1:2,r.setext=r.header),r.thisLine.header=!0,r.f=r.inline,w(r)):B?(e.skipToEnd(),r.hr=!0,r.thisLine.hr=!0,a.hr):"["===e.peek()?v(e,r,L):v(e,r,r.inline)}function B(e,t){var A=r.token(e,t.htmlState);if(!i){var a=n.innerMode(r,t.htmlState);("xml"==a.mode.name&&null===a.state.tagStart&&!a.state.context&&a.state.tokenize.isInText||t.md_inside&&e.current().indexOf(">")>-1)&&(t.f=S,t.block=b,t.htmlState=null)}return A}function C(e,n){var r,i=n.listStack[n.listStack.length-1]||0,A=n.indentation=e.quote?n.push(a.formatting+"-"+e.formatting[r]+"-"+e.quote):n.push("error"))}if(e.taskOpen)return n.push("meta"),n.length?n.join(" "):null;if(e.taskClosed)return n.push("property"),n.length?n.join(" "):null;if(e.linkHref?n.push(a.linkHref,"url"):(e.strong&&n.push(a.strong),e.em&&n.push(a.em),e.strikethrough&&n.push(a.strikethrough),e.emoji&&n.push(a.emoji),e.linkText&&n.push(a.linkText),e.code&&n.push(a.code),e.image&&n.push(a.image),e.imageAltText&&n.push(a.imageAltText,"link"),e.imageMarker&&n.push(a.imageMarker)),e.header&&n.push(a.header,a.header+"-"+e.header),e.quote&&(n.push(a.quote),!t.maxBlockquoteDepth||t.maxBlockquoteDepth>=e.quote?n.push(a.quote+"-"+e.quote):n.push(a.quote+"-"+t.maxBlockquoteDepth)),!1!==e.list){var i=(e.listStack.length-1)%3;i?1===i?n.push(a.list2):n.push(a.list3):n.push(a.list1)}return e.trailingSpaceNewLine?n.push("trailing-space-new-line"):e.trailingSpace&&n.push("trailing-space-"+(e.trailingSpace%2?"a":"b")),n.length?n.join(" "):null}function _(e,t){if(e.match(f,!0))return w(t)}function S(e,i){var A=i.text(e,i);if(void 0!==A)return A;if(i.list)return i.list=null,w(i);if(i.taskList)return" "===e.match(c,!0)[1]?i.taskOpen=!0:i.taskClosed=!0,t.highlightFormatting&&(i.formatting="task"),i.taskList=!1,w(i);if(i.taskOpen=!1,i.taskClosed=!1,i.header&&e.match(/^#+$/,!0))return t.highlightFormatting&&(i.formatting="header"),w(i);var o=e.next();if(i.linkTitle){i.linkTitle=!1;var s=o;"("===o&&(s=")");var l="^\\s*(?:[^"+(s=(s+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1"))+"\\\\]+|\\\\\\\\|\\\\.)"+s;if(e.match(new RegExp(l),!0))return a.linkHref}if("`"===o){var u=i.formatting;t.highlightFormatting&&(i.formatting="code"),e.eatWhile("`");var h=e.current().length;if(0!=i.code||i.quote&&1!=h){if(h==i.code){var f=w(i);return i.code=0,f}return i.formatting=u,w(i)}return i.code=h,w(i)}if(i.code)return w(i);if("\\"===o&&(e.next(),t.highlightFormatting)){var d=w(i),p=a.formatting+"-escape";return d?d+" "+p:p}if("!"===o&&e.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return i.imageMarker=!0,i.image=!0,t.highlightFormatting&&(i.formatting="image"),w(i);if("["===o&&i.imageMarker&&e.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return i.imageMarker=!1,i.imageAltText=!0,t.highlightFormatting&&(i.formatting="image"),w(i);if("]"===o&&i.imageAltText){t.highlightFormatting&&(i.formatting="image");var d=w(i);return i.imageAltText=!1,i.image=!1,i.inline=i.f=Q,d}if("["===o&&!i.image)return i.linkText&&e.match(/^.*?\]/)||(i.linkText=!0,t.highlightFormatting&&(i.formatting="link")),w(i);if("]"===o&&i.linkText){t.highlightFormatting&&(i.formatting="link");var d=w(i);return i.linkText=!1,i.inline=i.f=e.match(/\(.*?\)| ?\[.*?\]/,!1)?Q:S,d}if("<"===o&&e.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=k,t.highlightFormatting&&(i.formatting="link"),(d=w(i))?d+=" ":d="",d+a.linkInline;if("<"===o&&e.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=k,t.highlightFormatting&&(i.formatting="link"),(d=w(i))?d+=" ":d="",d+a.linkEmail;if(t.xml&&"<"===o&&e.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var m=e.string.indexOf(">",e.pos);if(-1!=m){var v=e.string.substring(e.start,m);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(v)&&(i.md_inside=!0)}return e.backUp(1),i.htmlState=n.startState(r),T(e,i,B)}if(t.xml&&"<"===o&&e.match(/^\/\w*?>/))return i.md_inside=!1,"tag";if("*"===o||"_"===o){for(var y=1,E=1==e.pos?" ":e.string.charAt(e.pos-2);y<3&&e.eat(o);)y++;var b=e.peek()||" ",C=!/\s/.test(b)&&(!g.test(b)||/\s/.test(E)||g.test(E)),_=!/\s/.test(E)&&(!g.test(E)||/\s/.test(b)||g.test(b)),I=null,x=null;if(y%2&&(i.em||!C||"*"!==o&&_&&!g.test(E)?i.em!=o||!_||"*"!==o&&C&&!g.test(b)||(I=!1):I=!0),y>1&&(i.strong||!C||"*"!==o&&_&&!g.test(E)?i.strong!=o||!_||"*"!==o&&C&&!g.test(b)||(x=!1):x=!0),null!=x||null!=I)return t.highlightFormatting&&(i.formatting=null==I?"strong":null==x?"em":"strong em"),!0===I&&(i.em=o),!0===x&&(i.strong=o),f=w(i),!1===I&&(i.em=!1),!1===x&&(i.strong=!1),f}else if(" "===o&&(e.eat("*")||e.eat("_"))){if(" "===e.peek())return w(i);e.backUp(1)}if(t.strikethrough)if("~"===o&&e.eatWhile(o)){if(i.strikethrough)return t.highlightFormatting&&(i.formatting="strikethrough"),f=w(i),i.strikethrough=!1,f;if(e.match(/^[^\s]/,!1))return i.strikethrough=!0,t.highlightFormatting&&(i.formatting="strikethrough"),w(i)}else if(" "===o&&e.match(/^~~/,!0)){if(" "===e.peek())return w(i);e.backUp(2)}if(t.emoji&&":"===o&&e.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){i.emoji=!0,t.highlightFormatting&&(i.formatting="emoji");var L=w(i);return i.emoji=!1,L}return" "===o&&(e.match(/^ +$/,!1)?i.trailingSpace++:i.trailingSpace&&(i.trailingSpaceNewLine=!0)),w(i)}function k(e,n){if(">"===e.next()){n.f=n.inline=S,t.highlightFormatting&&(n.formatting="link");var r=w(n);return r?r+=" ":r="",r+a.linkInline}return e.match(/^[^>]+/,!0),a.linkInline}function Q(e,n){if(e.eatSpace())return null;var r=e.next();return"("===r||"["===r?(n.f=n.inline=x("("===r?")":"]"),t.highlightFormatting&&(n.formatting="link-string"),n.linkHref=!0,w(n)):"error"}var I={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function x(e){return function(n,r){if(n.next()===e){r.f=r.inline=S,t.highlightFormatting&&(r.formatting="link-string");var i=w(r);return r.linkHref=!1,i}return n.match(I[e]),r.linkHref=!0,w(r)}}function L(e,n){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(n.f=F,e.next(),t.highlightFormatting&&(n.formatting="link"),n.linkText=!0,w(n)):v(e,n,S)}function F(e,n){if(e.match(/^\]:/,!0)){n.f=n.inline=N,t.highlightFormatting&&(n.formatting="link");var r=w(n);return n.linkText=!1,r}return e.match(/^([^\]\\]|\\.)+/,!0),a.linkText}function N(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),void 0===e.peek()?t.linkTitle=!0:e.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),t.f=t.inline=S,a.linkHref+" url")}var D={startState:function(){return{f:b,prevLine:{stream:null},thisLine:{stream:null},block:b,htmlState:null,indentation:0,inline:S,text:_,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(e){return{f:e.f,prevLine:e.prevLine,thisLine:e.thisLine,block:e.block,htmlState:e.htmlState&&n.copyState(r,e.htmlState),indentation:e.indentation,localMode:e.localMode,localState:e.localMode?n.copyState(e.localMode,e.localState):null,inline:e.inline,text:e.text,formatting:!1,linkText:e.linkText,linkTitle:e.linkTitle,linkHref:e.linkHref,code:e.code,em:e.em,strong:e.strong,strikethrough:e.strikethrough,emoji:e.emoji,header:e.header,setext:e.setext,hr:e.hr,taskList:e.taskList,list:e.list,listStack:e.listStack.slice(0),quote:e.quote,indentedCode:e.indentedCode,trailingSpace:e.trailingSpace,trailingSpaceNewLine:e.trailingSpaceNewLine,md_inside:e.md_inside,fencedEndRE:e.fencedEndRE}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine.stream){if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0))return E(t),null;if(t.prevLine=t.thisLine,t.thisLine={stream:e},t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,!t.localState&&(t.f=t.block,t.f!=B)){var n=e.match(/^\s*/,!0)[0].replace(/\t/g,m).length;if(t.indentation=n,t.indentationDiff=null,n>0)return null}}return t.f(e,t)},innerMode:function(e){return e.block==B?{state:e.htmlState,mode:r}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:D}},indent:function(e,t,i){return e.block==B&&r.indent?r.indent(e.htmlState,t,i):e.localState&&e.localMode.indent?e.localMode.indent(e.localState,t,i):n.Pass},blankLine:E,getType:w,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return D}),"xml"),n.defineMIME("text/markdown","markdown"),n.defineMIME("text/x-markdown","markdown")})),r((function(e,t){var n;(n=rc).overlayMode=function(e,t,r){return{startState:function(){return{base:n.startState(e),overlay:n.startState(t),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(r){return{base:n.copyState(e,r.base),overlay:n.copyState(t,r.overlay),basePos:r.basePos,baseCur:null,overlayPos:r.overlayPos,overlayCur:null}},token:function(n,i){return(n!=i.streamSeen||Math.min(i.basePos,i.overlayPos)]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i,(n=rc).defineMode("gfm",(function(e,t){var i=0;function A(e){return e.code=!1,null}var a={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(e){return{code:e.code,codeBlock:e.codeBlock,ateSpace:e.ateSpace}},token:function(e,n){if(n.combineTokens=null,n.codeBlock)return e.match(/^```+/)?(n.codeBlock=!1,null):(e.skipToEnd(),null);if(e.sol()&&(n.code=!1),e.sol()&&e.match(/^```+/))return e.skipToEnd(),n.codeBlock=!0,null;if("`"===e.peek()){e.next();var A=e.pos;e.eatWhile("`");var a=1+e.pos-A;return n.code?a===i&&(n.code=!1):(i=a,n.code=!0),null}if(n.code)return e.next(),null;if(e.eatSpace())return n.ateSpace=!0,null;if((e.sol()||n.ateSpace)&&(n.ateSpace=!1,!1!==t.gitHubSpice)){if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return n.combineTokens=!0,"link";if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return n.combineTokens=!0,"link"}return e.match(r)&&"]("!=e.string.slice(e.start-2,e.start)&&(0==e.start||/\W/.test(e.string.charAt(e.start-1)))?(n.combineTokens=!0,"link"):(e.next(),null)},blankLine:A},o={taskLists:!0,strikethrough:!0,emoji:!0};for(var s in t)o[s]=t[s];return o.name="markdown",n.overlayMode(n.getMode(e,o),a)}),"markdown"),n.defineMIME("text/x-gfm","gfm")})),r((function(e,t){!function(e){var t=/^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,n=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,r=/[*+-]\s/;function i(e,n){var r=n.line,i=0,A=0,a=t.exec(e.getLine(r)),o=a[1];do{var s=r+(i+=1),l=e.getLine(s),c=t.exec(l);if(c){var u=c[1],h=parseInt(a[3],10)+i-A,f=parseInt(c[3],10),d=f;if(o!==u||isNaN(f)){if(o.length>u.length)return;if(o.lengthf&&(d=h+1),e.replaceRange(l.replace(t,u+d+c[4]+c[5]),{line:s,ch:0},{line:s,ch:l.length})}}while(c)}e.commands.newlineAndIndentContinueMarkdownList=function(A){if(A.getOption("disableInput"))return e.Pass;for(var a=A.listSelections(),o=[],s=0;s\s*$/.test(d),v=!/>\s*$/.test(d);(m||v)&&A.replaceRange("",{line:l.line,ch:0},{line:l.line,ch:l.ch+1}),o[s]="\n"}else{var T=p[1],y=p[5],E=!(r.test(p[2])||p[2].indexOf(">")>=0),b=E?parseInt(p[3],10)+1+p[4]:p[2].replace("x"," ");o[s]="\n"+T+b+y,E&&i(A,l)}}A.replaceSelections(o)}}(rc)}));r((function(e,t){!function(e){var t=e.Pos;function n(e,t){return e.line-t.line||e.ch-t.ch}var r="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",i=new RegExp("<(/?)(["+r+"]["+r+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*)","g");function A(e,t,n,r){this.line=t,this.ch=n,this.cm=e,this.text=e.getLine(t),this.min=r?Math.max(r.from,e.firstLine()):e.firstLine(),this.max=r?Math.min(r.to-1,e.lastLine()):e.lastLine()}function a(e,n){var r=e.cm.getTokenTypeAt(t(e.line,n));return r&&/\btag\b/.test(r)}function o(e){if(!(e.line>=e.max))return e.ch=0,e.text=e.cm.getLine(++e.line),!0}function s(e){if(!(e.line<=e.min))return e.text=e.cm.getLine(--e.line),e.ch=e.text.length,!0}function l(e){for(;;){var t=e.text.indexOf(">",e.ch);if(-1==t){if(o(e))continue;return}if(a(e,t+1)){var n=e.text.lastIndexOf("/",t),r=n>-1&&!/\S/.test(e.text.slice(n+1,t));return e.ch=t+1,r?"selfClose":"regular"}e.ch=t+1}}function c(e){for(;;){var t=e.ch?e.text.lastIndexOf("<",e.ch-1):-1;if(-1==t){if(s(e))continue;return}if(a(e,t+1)){i.lastIndex=t,e.ch=t;var n=i.exec(e.text);if(n&&n.index==t)return n}else e.ch=t}}function u(e){for(;;){i.lastIndex=e.ch;var t=i.exec(e.text);if(!t){if(o(e))continue;return}if(a(e,t.index+1))return e.ch=t.index+t[0].length,t;e.ch=t.index+1}}function h(e){for(;;){var t=e.ch?e.text.lastIndexOf(">",e.ch-1):-1;if(-1==t){if(s(e))continue;return}if(a(e,t+1)){var n=e.text.lastIndexOf("/",t),r=n>-1&&!/\S/.test(e.text.slice(n+1,t));return e.ch=t+1,r?"selfClose":"regular"}e.ch=t}}function f(e,n){for(var r=[];;){var i,A=u(e),a=e.line,o=e.ch-(A?A[0].length:0);if(!A||!(i=l(e)))return;if("selfClose"!=i)if(A[1]){for(var s=r.length-1;s>=0;--s)if(r[s]==A[2]){r.length=s;break}if(s<0&&(!n||n==A[2]))return{tag:A[2],from:t(a,o),to:t(e.line,e.ch)}}else r.push(A[2])}}function d(e,n){for(var r=[];;){var i=h(e);if(!i)return;if("selfClose"!=i){var A=e.line,a=e.ch,o=c(e);if(!o)return;if(o[1])r.push(o[2]);else{for(var s=r.length-1;s>=0;--s)if(r[s]==o[2]){r.length=s;break}if(s<0&&(!n||n==o[2]))return{tag:o[2],from:t(e.line,e.ch),to:t(A,a)}}}else c(e)}}e.registerHelper("fold","xml",(function(e,r){for(var i=new A(e,r.line,0);;){var a=u(i);if(!a||i.line!=r.line)return;var o=l(i);if(!o)return;if(!a[1]&&"selfClose"!=o){var s=t(i.line,i.ch),c=f(i,a[2]);return c&&n(c.from,s)>0?{from:s,to:c.from}:null}}})),e.findMatchingTag=function(e,r,i){var a=new A(e,r.line,r.ch,i);if(-1!=a.text.indexOf(">")||-1!=a.text.indexOf("<")){var o=l(a),s=o&&t(a.line,a.ch),u=o&&c(a);if(o&&u&&!(n(a,r)>0)){var h={from:t(a.line,a.ch),to:s,tag:u[2]};return"selfClose"==o?{open:h,close:null,at:"open"}:u[1]?{open:d(a,u[2]),close:h,at:"close"}:{open:h,close:f(a=new A(e,s.line,s.ch,i),u[2]),at:"open"}}}},e.findEnclosingTag=function(e,t,n,r){for(var i=new A(e,t.line,t.ch,n);;){var a=d(i,r);if(!a)break;var o=f(new A(e,t.line,t.ch,n),a.tag);if(o)return{open:a,close:o}}},e.scanForClosingTag=function(e,t,n,r){return f(new A(e,t.line,t.ch,r?{from:0,to:r}:null),n)}}(rc)}));r((function(e,t){!function(e){e.defineOption("autoCloseTags",!1,(function(t,n,i){if(i!=e.Init&&i&&t.removeKeyMap("autoCloseTags"),n){var a={name:"autoCloseTags"};"object"==typeof n&&!1===n.whenClosing||(a["'/'"]=function(e){return A(e)}),"object"==typeof n&&!1===n.whenOpening||(a["'>'"]=function(e){return r(e)}),t.addKeyMap(a)}}));var t=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],n=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function r(r){if(r.getOption("disableInput"))return e.Pass;for(var i=r.listSelections(),A=[],s=r.getOption("autoCloseTags"),l=0;lc.ch&&(p=p.slice(0,p.length-u.end+c.ch));var T=p.toLowerCase();if(!p||"string"==u.type&&(u.end!=c.ch||!/[\"\']/.test(u.string.charAt(u.string.length-1))||1==u.string.length)||"tag"==u.type&&d.close||u.string.indexOf("/")==c.ch-u.start-1||m&&a(m,T)>-1||o(r,h.mode.xmlCurrentContext&&h.mode.xmlCurrentContext(f)||[],p,c,!0))return e.Pass;var y="object"==typeof s&&s.emptyTags;if(y&&a(y,p)>-1)A[l]={text:"/>",newPos:e.Pos(c.line,c.ch+2)};else{var E=v&&a(v,T)>-1;A[l]={indent:E,text:">"+(E?"\n\n":"")+"",newPos:E?e.Pos(c.line+1,0):e.Pos(c.line,c.ch+1)}}}var b="object"==typeof s&&s.dontIndentOnAutoClose;for(l=i.length-1;l>=0;l--){var B=A[l];r.replaceRange(B.text,i[l].head,i[l].anchor,"+insert");var C=r.listSelections().slice(0);C[l]={head:B.newPos,anchor:B.newPos},r.setSelections(C),!b&&B.indent&&(r.indentLine(B.newPos.line,null,!0),r.indentLine(B.newPos.line+1,null,!0))}}function i(t,n){for(var r=t.listSelections(),i=[],A=n?"/":""!=t.getLine(c.line).charAt(u.end)&&(d+=">"),i[l]=d}if(t.replaceSelections(i),r=t.listSelections(),!s)for(l=0;l=0&&n[l]==r;l--)++s;for(i=o.to,l=1;lc);u++){var h=e.getLine(l++);i=null==i?h:i+"\n"+h}s*=2,t.lastIndex=n.ch;var f=t.exec(i);if(f){var d=i.slice(0,f.index).split("\n"),p=f[0].split("\n"),g=n.line+d.length-1,m=d[d.length-1].length;return{from:r(g,m),to:r(g+p.length-1,1==p.length?m+p[0].length:p[p.length-1].length),match:f}}}}function l(e,t,n){for(var r,i=0;i<=e.length;){t.lastIndex=i;var A=t.exec(e);if(!A)break;var a=A.index+A[0].length;if(a>e.length-n)break;(!r||a>r.index+r[0].length)&&(r=A),i=A.index+1}return r}function c(e,t,n){t=A(t,"g");for(var i=n.line,a=n.ch,o=e.firstLine();i>=o;i--,a=-1){var s=e.getLine(i),c=l(s,t,a<0?0:s.length-a);if(c)return{from:r(i,c.index),to:r(i,c.index+c[0].length),match:c}}}function u(e,t,n){if(!a(t))return c(e,t,n);t=A(t,"gm");for(var i,o=1,s=e.getLine(n.line).length-n.ch,u=n.line,h=e.firstLine();u>=h;){for(var f=0;f=h;f++){var d=e.getLine(u--);i=null==i?d:d+"\n"+i}o*=2;var p=l(i,t,s);if(p){var g=i.slice(0,p.index).split("\n"),m=p[0].split("\n"),v=u+g.length,T=g[g.length-1].length;return{from:r(v,T),to:r(v+m.length-1,1==m.length?T+m[0].length:m[m.length-1].length),match:p}}}}function h(e,t,n,r){if(e.length==t.length)return n;for(var i=0,A=n+Math.max(0,e.length-t.length);;){if(i==A)return i;var a=i+A>>1,o=r(e.slice(0,a)).length;if(o==n)return a;o>n?A=a:i=a+1}}function f(e,i,A,a){if(!i.length)return null;var o=a?t:n,s=o(i).split(/\r|\n\r?/);e:for(var l=A.line,c=A.ch,u=e.lastLine()+1-s.length;l<=u;l++,c=0){var f=e.getLine(l).slice(c),d=o(f);if(1==s.length){var p=d.indexOf(s[0]);if(-1==p)continue e;return A=h(f,d,p,o)+c,{from:r(l,h(f,d,p,o)+c),to:r(l,h(f,d,p+s[0].length,o)+c)}}var g=d.length-s[0].length;if(d.slice(g)==s[0]){for(var m=1;m=u;l--,c=-1){var f=e.getLine(l);c>-1&&(f=f.slice(0,c));var d=o(f);if(1==s.length){var p=d.lastIndexOf(s[0]);if(-1==p)continue e;return{from:r(l,h(f,d,p,o)),to:r(l,h(f,d,p+s[0].length,o))}}var g=s[s.length-1];if(d.slice(0,g.length)==g){var m=1;for(A=l-s.length+1;m0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)}))}(rc)}));r((function(e,t){!function(e){function t(e){e.state.placeholder&&(e.state.placeholder.parentNode.removeChild(e.state.placeholder),e.state.placeholder=null)}function n(e){t(e);var n=e.state.placeholder=document.createElement("pre");n.style.cssText="height: 0; overflow: visible",n.style.direction=e.getOption("direction"),n.className="CodeMirror-placeholder CodeMirror-line-like";var r=e.getOption("placeholder");"string"==typeof r&&(r=document.createTextNode(r)),n.appendChild(r),e.display.lineSpace.insertBefore(n,e.display.lineSpace.firstChild)}function r(e){setTimeout((function(){var r=!1,i=e.getInputField();"TEXTAREA"==i.nodeName?r=!i.value:1==e.lineCount()&&(r=!/[^\u200b]/.test(i.querySelector(".CodeMirror-line").textContent)),r?n(e):t(e)}),20)}function i(e){a(e)&&n(e)}function A(e){var r=e.getWrapperElement(),i=a(e);r.className=r.className.replace(" CodeMirror-empty","")+(i?" CodeMirror-empty":""),i?n(e):t(e)}function a(e){return 1===e.lineCount()&&""===e.getLine(0)}e.defineOption("placeholder","",(function(n,a,o){var s=o&&o!=e.Init;if(a&&!s)n.on("blur",i),n.on("change",A),n.on("swapDoc",A),e.on(n.getInputField(),"compositionupdate",n.state.placeholderCompose=function(){r(n)}),A(n);else if(!a&&s){n.off("blur",i),n.off("change",A),n.off("swapDoc",A),e.off(n.getInputField(),"compositionupdate",n.state.placeholderCompose),t(n);var l=n.getWrapperElement();l.className=l.className.replace(" CodeMirror-empty","")}a&&!n.hasFocus()&&i(n)}))}(rc)}));r((function(e,t){!function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(e){return e&&e.bracketRegex||/[(){}[\]]/}function A(e,t,A){var o=e.getLineHandle(t.line),s=t.ch-1,l=A&&A.afterCursor;null==l&&(l=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var c=i(A),u=!l&&s>=0&&c.test(o.text.charAt(s))&&r[o.text.charAt(s)]||c.test(o.text.charAt(s+1))&&r[o.text.charAt(++s)];if(!u)return null;var h=">"==u.charAt(1)?1:-1;if(A&&A.strict&&h>0!=(s==t.ch))return null;var f=e.getTokenTypeAt(n(t.line,s+1)),d=a(e,n(t.line,s+(h>0?1:0)),h,f||null,A);return null==d?null:{from:n(t.line,s),to:d&&d.pos,match:d&&d.ch==u.charAt(0),forward:h>0}}function a(e,t,A,a,o){for(var s=o&&o.maxScanLineLength||1e4,l=o&&o.maxScanLines||1e3,c=[],u=i(o),h=A>0?Math.min(t.line+l,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-l),f=t.line;f!=h;f+=A){var d=e.getLine(f);if(d){var p=A>0?0:d.length-1,g=A>0?d.length:-1;if(!(d.length>s))for(f==t.line&&(p=t.ch-(A<0?1:0));p!=g;p+=A){var m=d.charAt(p);if(u.test(m)&&(void 0===a||e.getTokenTypeAt(n(f,p+1))==a)){var v=r[m];if(v&&">"==v.charAt(1)==A>0)c.push(m);else{if(!c.length)return{pos:n(f,p),ch:m};c.pop()}}}}}return f-A!=(A>0?e.lastLine():e.firstLine())&&null}function o(e,r,i){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,o=[],s=e.listSelections(),l=0;l0&&r.ch>=A.length)return t.clipPos(n(r.line+1,0));for(var a,o="start",s=r.ch,l=s,c=i<0?0:A.length,u=0;l!=c;l+=i,u++){var h=A.charAt(i<0?l-1:l),f="_"!=h&&e.isWordChar(h)?"w":"o";if("w"==f&&h.toUpperCase()==h&&(f="W"),"start"==o)"o"!=f?(o="in",a=f):s=l+i;else if("in"==o&&a!=f){if("w"==a&&"W"==f&&i<0&&l--,"W"==a&&"w"==f&&i>0){if(l==s+1){a="w";continue}l--}break}}return n(r.line,l)}function i(e,t){e.extendSelectionsBy((function(n){return e.display.shift||e.doc.extend||n.empty()?r(e.doc,n.head,t):t<0?n.from():n.to()}))}function A(t,r){if(t.isReadOnly())return e.Pass;t.operation((function(){for(var e=t.listSelections().length,i=[],A=-1,a=0;a=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},t.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},t.splitSelectionByLine=function(e){for(var t=e.listSelections(),r=[],i=0;iA.line&&o==a.line&&0==a.ch||r.push({anchor:o==A.line?A:n(o,0),head:o==a.line?a:n(o)});e.setSelections(r,0)},t.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},t.selectLine=function(e){for(var t=e.listSelections(),r=[],i=0;i=0;o--){var l=r[i[o]];if(!(s&&e.cmpPos(l.head,s)>0)){var c=a(t,l.head);s=c.from,t.replaceRange(n(c.word),c.from,c.to)}}}))}function d(t){var n=t.getCursor("from"),r=t.getCursor("to");if(0==e.cmpPos(n,r)){var i=a(t,n);if(!i.word)return;n=i.from,r=i.to}return{from:n,to:r,query:t.getRange(n,r),word:i}}function p(e,t){var r=d(e);if(r){var i=r.query,A=e.getSearchCursor(i,t?r.to:r.from);(t?A.findNext():A.findPrevious())?e.setSelection(A.from(),A.to()):(A=e.getSearchCursor(i,t?n(e.firstLine(),0):e.clipPos(n(e.lastLine()))),(t?A.findNext():A.findPrevious())?e.setSelection(A.from(),A.to()):r.word&&e.setSelection(r.from,r.to))}}t.selectScope=function(e){c(e)||e.execCommand("selectAll")},t.selectBetweenBrackets=function(t){if(!c(t))return e.Pass},t.goToBracket=function(t){t.extendSelectionsBy((function(r){var i=t.scanForBracket(r.head,1,u(t.getTokenTypeAt(r.head)));if(i&&0!=e.cmpPos(i.pos,r.head))return i.pos;var A=t.scanForBracket(r.head,-1,u(t.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return A&&n(A.pos.line,A.pos.ch+1)||r.head}))},t.swapLineUp=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],A=t.firstLine()-1,a=[],o=0;oA?i.push(l,c):i.length&&(i[i.length-1]=c),A=c}t.operation((function(){for(var e=0;et.lastLine()?t.replaceRange("\n"+o,n(t.lastLine()),null,"+swapLine"):t.replaceRange(o+"\n",n(A,0),null,"+swapLine")}t.setSelections(a),t.scrollIntoView()}))},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],A=t.lastLine()+1,a=r.length-1;a>=0;a--){var o=r[a],s=o.to().line+1,l=o.from().line;0!=o.to().ch||o.empty()||s--,s=0;e-=2){var r=i[e],A=i[e+1],a=t.getLine(r);r==t.lastLine()?t.replaceRange("",n(r-1),n(r),"+swapLine"):t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),t.replaceRange(a+"\n",n(A,0),null,"+swapLine")}t.scrollIntoView()}))},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),r=[],i=0;i=0;A--){var a=r[A].head,o=t.getRange({line:a.line,ch:0},a),s=e.countColumn(o,null,t.getOption("tabSize")),l=t.findPosH(a,-1,"char",!1);if(o&&!/\S/.test(o)&&s%i==0){var c=new n(a.line,e.findColumn(o,s-i,i));c.ch!=a.ch&&(l=c)}t.replaceRange("",l,a,"+delete")}}))},t.delLineRight=function(e){e.operation((function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange("",t[r].anchor,n(t[r].to().line),"+delete");e.scrollIntoView()}))},t.upcaseAtCursor=function(e){f(e,(function(e){return e.toUpperCase()}))},t.downcaseAtCursor=function(e){f(e,(function(e){return e.toLowerCase()}))},t.setSublimeMark=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},t.selectToSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},t.deleteToSublimeMark=function(t){var n=t.state.sublimeMark&&t.state.sublimeMark.find();if(n){var r=t.getCursor(),i=n;if(e.cmpPos(r,i)>0){var A=i;i=r,r=A}t.state.sublimeKilled=t.getRange(r,i),t.replaceRange("",r,i)}},t.swapWithSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},t.sublimeYank=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},t.showInCenter=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)},t.findUnder=function(e){p(e,!0)},t.findUnderPrevious=function(e){p(e,!1)},t.findAllUnder=function(e){var t=d(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],i=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&i++;e.setSelections(r,i)}};var g=e.keyMap;g.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Cmd-F5":"sortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},e.normalizeKeyMap(g.macSublime),g.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Ctrl-F9":"sortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},e.normalizeKeyMap(g.pcSublime);var m=g.default==g.macDefault;g.sublime=m?g.macSublime:g.pcSublime}(rc)})),r((function(e,t){!function(e){var t;function n(e){var n=this;function a(e){n.searchBox=e.querySelector(".ace_search_form"),n.replaceBox=e.querySelector(".ace_replace_form"),n.searchOptions=e.querySelector(".ace_search_options"),n.regExpOption=e.querySelector("[action=toggleRegexpMode]"),n.caseSensitiveOption=e.querySelector("[action=toggleCaseSensitive]"),n.wholeWordOption=e.querySelector("[action=toggleWholeWords]"),n.searchInput=n.searchBox.querySelector(".ace_search_field"),n.replaceInput=n.replaceBox.querySelector(".ace_search_field")}function o(){var e=n.element=E();y(),a(e),s(),e.addEventListener("mousedown",(function(e){setTimeout((function(){n.activeInput.focus()}),0),e.stopPropagation()})),e.addEventListener("click",(function(e){var t=(e.target||e.srcElement).getAttribute("action");t&&n[t]?n[t]():n.commands[t]&&n.commands[t](),e.stopPropagation()})),n.searchInput.addEventListener("input",(function(){n.$onChange.schedule(20)})),n.searchInput.addEventListener("focus",(function(){n.activeInput=n.searchInput})),n.replaceInput.addEventListener("focus",(function(){n.activeInput=n.replaceInput})),n.$onChange=i((function(){n.find(!1,!1)}))}function s(){var e=n,t={"Ctrl-F|Cmd-F|Ctrl-H|Command-Alt-F":function(){var t=e.isReplace=!e.isReplace;e.replaceBox.style.display=t?"":"none",e[t?"replaceInput":"searchInput"].focus()},"Ctrl-G|Cmd-G":function(){e.findNext()},"Ctrl-Shift-G|Cmd-Shift-G":function(){e.findPrev()},Esc:function(){setTimeout((function(){e.hide()}))},Enter:function(){e.activeInput===e.replaceInput&&e.replace(),e.findNext()},"Shift-Enter":function(){e.activeInput===e.replaceInput&&e.replace(),e.findPrev()},"Alt-Enter":function(){e.activeInput===e.replaceInput&&e.replaceAll(),e.findAll()},Tab:function(){n.activeInput===n.replaceInput?n.searchInput.focus():n.replaceInput.focus()}};n.element.addEventListener("keydown",(function(e){Object.keys(t).some((function(n){var r=A(n,e);return r&&(e.stopPropagation(),e.preventDefault(),t[n](e)),r}))}))}function l(t,i,A){if(!t)return v(e),void T();var a,o,s,u,h,f,d,p=t,g=i,m=!0,y=g.caseSensitive,E=g.regExp,b=g.wholeWord;E&&(p=p.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")),b&&(p=y?p=RegExp("\\b"+p+"\\b"):RegExp("\\b"+p+"\\b","i")),E&&(p=RegExp(p)),v(e),c(e,p,y),T(),d=g.backwards?g.skipCurrent?"from":"to":g.skipCurrent?"to":"from",f=e.getCursor(d),u=(s=e.getSearchCursor(p,f,!y)).findNext.bind(s),h=s.findPrevious.bind(s),s.matches.bind(s),g.backwards&&!h()?(m=u())&&(e.setCursor(e.doc.size-1,0),l(t,i,A),a=!0):g.backwards||u()||(m=h())&&(e.setCursor(0,0),l(t,i,A),a=!0),o=!m&&n.searchInput.value,r(n.searchBox,"ace_nomatch",o),!a&&m&&A(s)}function c(e,t,n){var r=m(e),i=t;i&&i!==r.queryText&&(f(e,r,i,n),r.posFrom=r.posTo=e.getCursor())}function u(e){return e.replace(/\\([nrt\\])/g,(function(e,t){return"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"==t?"\\":e}))}function h(e){var t=("object"==typeof e?e.toString():e).match(/^\/(.*)\/([a-z]*)$/);if(t)try{e=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch(e){}else e=u(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function f(e,t,n,r){t.queryText=n,t.query=h(n),e.removeOverlay(t.overlay,d(t.query,r)),t.overlay=p(t.query,d(t.query,r)),e.addOverlay(t.overlay),e.showMatchesOnScrollbar&&(t.annotate&&(t.annotate.clear(),t.annotate=null),t.annotate=e.showMatchesOnScrollbar(t.query,d(t.query,r)))}function d(e,t){return"string"==typeof e&&!t}function p(e,t){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var n=e.exec(t.string);if(n&&n.index==t.pos)return t.pos+=n[0].length||1,"searching";n?t.pos=n.index:t.skipToEnd()}}}function g(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function m(e){return e.state.search||(e.state.search=new g)}function v(e){e.operation((function(){var t=m(e);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))}))}function T(){var t,r=n.searchInput.value,i=[];r&&(r=r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t=n.caseSensitiveOption.checked?RegExp(r,"g"):RegExp(r,"gi"),n.wholeWordOption.checked&&(t=n.caseSensitiveOption.checked?RegExp("\\b"+r+"\\b","g"):RegExp("\\b"+r+"\\b","gi")),n.regExpOption.checked&&(t=RegExp(r,"gi")),i=e.getValue().match(t));var A=i?i.length:0,a=e.display.wrapper.parentElement.querySelector(".ace_search_counter");a&&(a.innerText=A+" matches found."),0===A&&e.setSelection({ch:0,line:0},{ch:0,line:0})}function y(){var e=document.createElement("style"),t=[".ace_search {","color: black;","background-color: #ddd;","border: 1px solid #cbcbcb;","border-top: 0 none;","max-width: 325px;","overflow: hidden;","margin: 0;","padding: 4px;","padding-right: 6px;","padding-bottom: 0;","position: absolute;","top: 0px;","z-index: 99;","white-space: normal;","font-size: 12px;","}",".ace_search.left {","border-left: 0 none;","border-radius: 0px 0px 5px 0px;","left: 0;","}",".ace_search.right {","border-radius: 0px 0px 0px 5px;","border-right: 0 none;","right: 0;","}",".ace_search_form, .ace_replace_form {","border-radius: 3px;","border: 1px solid #cbcbcb;","float: left;","margin-bottom: 4px;","overflow: hidden;","}",".ace_search_form.ace_nomatch {","outline: 1px solid red;","}",".ace_search_field {","background-color: white;","border-right: 1px solid #cbcbcb;","border: 0 none;","-webkit-box-sizing: border-box;","-moz-box-sizing: border-box;","box-sizing: border-box;","float: left;","height: 22px;","outline: 0;","padding: 0 7px;","width: 238px;","margin: 0;","}",".ace_searchbtn,",".ace_replacebtn {","background: #fff;","border: 0 none;","border-left: 1px solid #dcdcdc;","cursor: pointer;","float: left;","height: 22px;","padding: 0 5px;","margin: 0;","position: relative;","}",".ace_searchbtn:last-child,",".ace_replacebtn:last-child {","border-top-right-radius: 3px;","border-bottom-right-radius: 3px;","}",".ace_searchbtn:disabled {","background: none;","cursor: default;","}",".ace_searchbtn {","background-position: 50% 50%;","background-repeat: no-repeat;","width: 27px;","}",".ace_searchbtn.prev {","background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADFJREFUeNpiSU1NZUAC/6E0I0yACYskCpsJiySKIiY0SUZk40FyTEgCjGgKwTRAgAEAQJUIPCE+qfkAAAAASUVORK5CYII=); ","}",".ace_searchbtn.next {","background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADRJREFUeNpiTE1NZQCC/0DMyIAKwGJMUAYDEo3M/s+EpvM/mkKwCQxYjIeLMaELoLMBAgwAU7UJObTKsvAAAAAASUVORK5CYII=); ","}",".ace_searchbtn_close {","background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;","border-radius: 50%;","border: 0 none;","color: #656565;","cursor: pointer;","float: right;","font: 16px/16px Arial;","height: 14px;","margin: 5px 1px 9px 5px;","padding: 0;","text-align: center;","width: 14px;","}",".ace_searchbtn_close:hover {","background-color: #656565;","background-position: 50% 100%;","color: white;","}",".ace_replacebtn.prev {","width: 54px","}",".ace_replacebtn.next {","width: 27px","}",".ace_button {","margin-left: 2px;","cursor: pointer;","-webkit-user-select: none;","-moz-user-select: none;","-o-user-select: none;","-ms-user-select: none;","user-select: none;","overflow: hidden;","opacity: 0.7;","border: 1px solid rgba(100,100,100,0.23);","padding: 1px;","-moz-box-sizing: border-box;","box-sizing: border-box;","color: black;","}",".ace_button:hover {","background-color: #eee;","opacity:1;","}",".ace_button:active {","background-color: #ddd;","}",".ace_button.checked {","border-color: #3399ff;","opacity:1;","}",".ace_search_options{","clear: both;","margin: 4px 0;","text-align: right;","-webkit-user-select: none;","-moz-user-select: none;","-o-user-select: none;","-ms-user-select: none;","user-select: none;","}",".replace_toggle{","float: left;","margin-top: -2px;","padding: 0 5px;"," }",".ace_search_counter{","float: left;","font-family: arial;","padding: 0 8px;","}","button svg,path {","pointer-events: none;","}"].join("");e.setAttribute("data-name","js-searchbox"),e.textContent=t,document.head.appendChild(e)}function E(){var t,n=e.getWrapperElement(),r=document.createElement("div"),i=['"].join("");return r.innerHTML=i,t=r.firstChild,n.appendChild(t),t}o(),this.commands={toggleRegexpMode:function(){n.regExpOption.checked=!n.regExpOption.checked,n.$syncOptions()},toggleCaseSensitive:function(){n.caseSensitiveOption.checked=!n.caseSensitiveOption.checked,n.$syncOptions()},toggleWholeWords:function(){n.wholeWordOption.checked=!n.wholeWordOption.checked,n.$syncOptions()}},this.$syncOptions=function(){r(this.regExpOption,"checked",this.regExpOption.checked),r(this.wholeWordOption,"checked",this.wholeWordOption.checked),r(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked),this.find(!1,!1)},this.find=function(t,n){l(this.searchInput.value,{skipCurrent:t,backwards:n,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked},(function(t){var n=t.matches(!1,t.from());e.setSelection(n.from,n.to)}))},this.findNext=function(){this.find(!0,!1)},this.findPrev=function(){this.find(!0,!0)},this.findAll=function(){var t=this.searchInput.value,n=this.searchInput.value;r(this.searchBox,"ace_nomatch",n),e.showMatchesOnScrollbar&&e.showMatchesOnScrollbar(t),this.hide()},this.replace=function(){var t=e.getOption("readOnly"),n=!!e.getSelection();!t&&n&&e.replaceSelection(this.replaceInput.value,"start"),T()},this.replaceAndFindNext=function(){e.getOption("readOnly")||(this.replace(),this.findNext())},this.replaceAll=function(){var t,n,r=this.searchInput.value,i=this.replaceInput.value,A=RegExp(r,this.caseSensitiveOption.checked?"g":"gi");this.wholeWordOption.checked&&!this.regExpOption.checked&&(A=this.caseSensitiveOption.checked?RegExp("\\b"+r+"\\b","g"):RegExp("\\b"+r+"\\b","gi")),!e.getOption("readOnly")&&e.getSelection()&&(n=e.getCursor(),t=(t=e.getValue()).replace(A,i),e.setValue(t),e.setCursor(n)),T()},this.toggleReplace=function(){var t=e.display.wrapper;"+"===t.parentElement.querySelector("[action=toggleReplace]").innerText?(t.parentElement.querySelector("[action=toggleReplace]").innerText="-",this.replaceBox.style.display="",this.isReplace=!0):(t.parentElement.querySelector("[action=toggleReplace]").innerText="+",this.replaceBox.style.display="none",this.isReplace=!1)},this.hide=function(){v(e);var n=e.getWrapperElement();t=null,n.removeChild(this.element),e.focus()},this.isVisible=function(){return""===this.element.style.display},this.show=function(e,t){this.element.style.display="",t||(this.replaceBox.style.display=t?"":"none"),this.isReplace=t,e&&(this.searchInput.value=e,this.find(!1,!1)),this.searchInput.focus(),this.searchInput.select()},this.isFocused=function(){var e=document.activeElement;return e===this.searchInput||e===this.replaceInput}}function r(e,t,n){e.classList[n?"add":"remove"](t)}function i(e,t){var n,r=function(){n=null,e()},i=function(e){n||(n=setTimeout(r,e||t))};return i.delay=function(e){n&&clearTimeout(n),n=setTimeout(r,e||t)},i.schedule=i,i.call=function(){this.cancel(),e()},i.cancel=function(){n&&clearTimeout(n),n=null},i.isPending=function(){return n},i}function A(e,t){var n,r={BACKSPACE:8,TAB:9,ENTER:13,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,UP:38,DOWN:40,INSERT:45,DELETE:46,INSERT_MAC:96,ASTERISK:106,PLUS:107,MINUS:109,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,SLASH:191,TRA:192,BACKSLASH:220};return a(e,t),n=e.split("|").some((function(e){var n;return n=e.split("-").some((function(e){var n;switch(e){case"Ctrl":n=t.ctrlKey;break;case"Shift":n=t.shiftKey;break;case"Alt":n=t.altKey;break;case"Cmd":n=t.metaKey;break;default:1===e.length?n=t.keyCode===e.charCodeAt(0):Object.keys(r).some((function(i){e.toUpperCase()===i&&(n=t.keyCode===r[i])}))}return!n})),!n})),n}function a(e,t){if("string"!=typeof e)throw Error("str should be string!");if("object"!=typeof t)throw Error("event should be object!")}e.defineOption("searchbox",!1,(function(r){r.addKeyMap({"Ctrl-F":function(){var e=r.display.wrapper;t&&e.parentElement.contains(t.searchBox)||(t=new n(r));var i=!1;e.parentElement.querySelector("[action=toggleReplace]")&&(i="-"===e.parentElement.querySelector("[action=toggleReplace]").innerText),t.show(r.getSelection(),i)},Esc:function(){if(!t||!t.isVisible())return e.Pass;t.hide(),"undefined"!=typeof event&&event.stopPropagation()},"Cmd-F":function(){var e=r.display.wrapper;t&&e.parentElement.contains(t.searchBox)||(t=new n(r));var i=!1;e.parentElement.querySelector("[action=toggleReplace]")&&(i="-"===e.parentElement.querySelector("[action=toggleReplace]").innerText),t.show(r.getSelection(),i)}})}))}(rc)}));r((function(e,t){!function(e){function t(e,t){function n(e){clearTimeout(r.doRedraw),r.doRedraw=setTimeout((function(){r.redraw()}),e)}this.cm=e,this.options=t,this.buttonHeight=t.scrollButtonHeight||e.getOption("scrollButtonHeight"),this.annotations=[],this.doRedraw=this.doUpdate=null,this.div=e.getWrapperElement().appendChild(document.createElement("div")),this.div.style.cssText="position: absolute; right: 0; top: 0; z-index: 7; pointer-events: none",this.computeScale();var r=this;e.on("refresh",this.resizeHandler=function(){clearTimeout(r.doUpdate),r.doUpdate=setTimeout((function(){r.computeScale()&&n(20)}),100)}),e.on("markerAdded",this.resizeHandler),e.on("markerCleared",this.resizeHandler),!1!==t.listenForChanges&&e.on("changes",this.changeHandler=function(){n(250)})}e.defineExtension("annotateScrollbar",(function(e){return"string"==typeof e&&(e={className:e}),new t(this,e)})),e.defineOption("scrollButtonHeight",0),t.prototype.computeScale=function(){var e=this.cm,t=(e.getWrapperElement().clientHeight-e.display.barHeight-2*this.buttonHeight)/e.getScrollerElement().scrollHeight;if(t!=this.hScale)return this.hScale=t,!0},t.prototype.update=function(e){this.annotations=e,this.redraw()},t.prototype.redraw=function(e){!1!==e&&this.computeScale();var t=this.cm,n=this.hScale,r=document.createDocumentFragment(),i=this.annotations,A=t.getOption("lineWrapping"),a=A&&1.5*t.defaultTextHeight(),o=null,s=null;function l(e,n){if(o!=e.line){o=e.line,s=t.getLineHandle(e.line);var r=t.getLineHandleVisualStart(s);r!=s&&(o=t.getLineNumber(r),s=r)}return s.widgets&&s.widgets.length||A&&s.height>a?t.charCoords(e,"local")[n?"top":"bottom"]:t.heightAtLine(s,"local")+(n?0:s.height)}var c=t.lastLine();if(t.display.barWidth)for(var u,h=0;hc)){for(var d=u||l(f.from,!0)*n,p=l(f.to,!1)*n;hc)&&!((u=l(i[h+1].from,!0)*n)>p+.9);)p=l((f=i[++h]).to,!1)*n;if(p!=d){var g=Math.max(p-d,3),m=r.appendChild(document.createElement("div"));m.style.cssText="position: absolute; right: 0px; width: "+Math.max(t.display.barWidth-1,2)+"px; top: "+(d+this.buttonHeight)+"px; height: "+g+"px",m.className=this.options.className,f.id&&m.setAttribute("annotation-id",f.id)}}}this.div.textContent="",this.div.appendChild(r)},t.prototype.clear=function(){this.cm.off("refresh",this.resizeHandler),this.cm.off("markerAdded",this.resizeHandler),this.cm.off("markerCleared",this.resizeHandler),this.changeHandler&&this.cm.off("changes",this.changeHandler),this.div.parentNode.removeChild(this.div)}}(rc)}));r((function(e,t){!function(e){function t(e,t,n,r){this.cm=e,this.options=r;var i={listenForChanges:!1};for(var A in r)i[A]=r[A];i.className||(i.className="CodeMirror-search-match"),this.annotation=e.annotateScrollbar(i),this.query=t,this.caseFold=n,this.gap={from:e.firstLine(),to:e.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var a=this;e.on("change",this.changeHandler=function(e,t){a.onChange(t)})}e.defineExtension("showMatchesOnScrollbar",(function(e,n,r){return"string"==typeof r&&(r={className:r}),r||(r={}),new t(this,e,n,r)}));var n=1e3;function r(e,t,n){return e<=t?e:Math.max(t,e+n)}t.prototype.findMatches=function(){if(this.gap){for(var t=0;t=this.gap.to);t++)A.to.line>=this.gap.from&&this.matches.splice(t--,1);for(var r=this.cm.getSearchCursor(this.query,e.Pos(this.gap.from,0),{caseFold:this.caseFold,multiline:this.options.multiline}),i=this.options&&this.options.maxMatches||n;r.findNext();){var A;if((A={from:r.from(),to:r.to()}).from.line>=this.gap.to)break;if(this.matches.splice(t++,0,A),this.matches.length>i)break}this.gap=null}},t.prototype.onChange=function(t){var n=t.from.line,i=e.changeEnd(t).line,A=i-t.to.line;if(this.gap?(this.gap.from=Math.min(r(this.gap.from,n,A),t.from.line),this.gap.to=Math.max(r(this.gap.to,n,A),t.from.line)):this.gap={from:t.from.line,to:i+1},A)for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n>>0||(Qc(kc,n)?16:10))}:wc;et({global:!0,forced:parseInt!=Ic},{parseInt:Ic});var xc=M.parseInt,Lc={run:function(e){var t,n="
".concat(e,"
");this.tagParser.formatEngine=this.mdFormatEngine,n=n.replace(//g,"");var r=this.htmlParser.parseHtml(n);return r=this.paragraphStyleClear(r),wl(t=this.$dealHtml(r).replace(/\n{3,}/g,"\n\n\n").replace(/>/g,">").replace(/</g,"<").replace(/&/g,"&")).call(t,"\n")},$dealHtml:function(e){for(var t="",n=0;n0&&(t+=r.content.replace(/ /g," ").replace(/[\n]+/g,"\n").replace(/^[ \t\n]+\n\s*$/,"\n"))}return t},$handleTagObject:function(e,t){var n,r=t;e.attrs.class&&/(ch-icon-square|ch-icon-check)/.test(e.attrs.class)?Ec(n=e.attrs.class).call(n,"ch-icon-check")>=0?r+="[x]":r+="[ ]":e.attrs.class&&/cherry-code-preview-lang-select/.test(e.attrs.class)?r+="":r+=this.$dealTag(e);return r},$dealTag:function(e){var t=this,n="";return e.children&&(n=t.$dealHtml(e.children)),"style"===e.name?"":"code"===e.name||"pre"===e.name?t.tagParser.codeParser(e,t.$dealCodeTag(e),"pre"===e.name):"function"==typeof t.tagParser["".concat(e.name,"Parser")]?t.tagParser["".concat(e.name,"Parser")](e,n):n},$dealCodeTag:function(e){if(e.children.length<0)return"";for(var t="",n=0;n])+>/g,empty:bc?bc(null):{},parseTags:function(e){var t,n=this,r=0,i={type:"tag",name:"",voidElement:!1,attrs:{},children:[]};return e.replace(this.attrRE,(function(A){r%2?t=A:0===r?((n.lookup[A]||"/"===e.charAt(e.length-2))&&(i.voidElement=!0),i.name=A):i.attrs[t]=A.replace(/['"]/g,""),r+=1})),i},parseHtml:function(e,t){var n=this,r=t||{};r.components||(r.components=this.empty);var i,A=[],a=-1,o=[],s={},l=!1;return e.replace(this.tagRE,(function(t,c){if(l){if(t!==""))return;l=!1}var u,h="/"!==t.charAt(1),f=c+t.length,d=e.charAt(f);h&&(a+=1,"tag"===(i=n.parseTags(t)).type&&r.components[i.name]&&(i.type="component",l=!0),i.voidElement||l||!d||"<"===d||i.children.push({type:"text",content:Bc(e).call(e,f,Ec(e).call(e,"<",f))}),s[i.tagName]=i,0===a&&A.push(i),(u=o[a-1])&&u.children.push(i),o[a]=i),h&&!i.voidElement||(a-=1,!l&&"<"!==d&&d&&o[a]&&o[a].children.push({type:"text",content:Bc(e).call(e,f,Ec(e).call(e,"<",f))}))})),A}},tagParser:{formatEngine:{},pParser:function(e,t){var n=t;return/\n$/.test(n)?n:"".concat(n,"\n")},divParser:function(e,t){var n=t;return/\n$/.test(n)?n:"".concat(n,"\n")},spanParser:function(e,t){var n=t.replace(/\t/g,"").replace(/\n/g," ");return e.attrs&&e.attrs.style,n},codeParser:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.formatEngine.convertCode(t,n)},brParser:function(e,t){return this.formatEngine.convertBr(t,"\n")},imgParser:function(e,t){return e.attrs&&"tapd-graph"===e.attrs["data-control"]?this.formatEngine.convertGraph(e.attrs.title,e.attrs.src,e.attrs["data-origin-xml"],e):e.attrs&&e.attrs.src?this.formatEngine.convertImg(e.attrs.alt,e.attrs.src):void 0},videoParser:function(e,t){if(e.attrs&&e.attrs.src)return this.formatEngine.convertVideo(t,e.attrs.src,e.attrs.poster,e.attrs.title)},bParser:function(e,t){for(var n=t.split("\n"),r=[],i=0;i0?r:""}return""},bgColorAttrParser:function(e){var t=e.match(/background-color:\s*([^;]+?);/);if(t&&t[1]){var n="";if(/rgb\([ 0-9]+,[ 0-9]+,[ 0-9]+\)/.test(t[1])){var r,i,A,a,o,s=t[1].match(/rgb\(([ 0-9]+),([ 0-9]+),([ 0-9]+)\)/);if(s[1]&&s[2]&&s[3])s[1]=xc(wl(r=s[1]).call(r),10),s[2]=xc(wl(i=s[2]).call(i),10),s[3]=xc(wl(A=s[3]).call(A),10),n=zA(a=zA(o="#".concat(s[1].toString(16))).call(o,s[2].toString(16))).call(a,s[3].toString(16))}else{n=yc(t,2)[1]}return n}return""}}},mdFormatEngine:{convertColor:function(e,t){var n,r=wl(e).call(e);return!r||/\n/.test(r)?r:t?zA(n="!!".concat(t," ")).call(n,r,"!!"):r},convertSize:function(e,t){var n,r=wl(e).call(e);return!r||/\n/.test(r)?r:t?zA(n="!".concat(t," ")).call(n,r,"!"):r},convertBgColor:function(e,t){var n,r=wl(e).call(e);return!r||/\n/.test(r)?r:t?zA(n="!!!".concat(t," ")).call(n,r,"!!!"):r},convertBr:function(e,t){return e+t},convertCode:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return/\n/.test(e)||t?"```\n".concat(e.replace(/\n+$/,""),"\n```"):"`".concat(e.replace(/`/g,"\\`"),"`")},convertB:function(e){return/^\s*$/.test(e)?"":"**".concat(e,"**")},convertI:function(e){return/^\s*$/.test(e)?"":"*".concat(e,"*")},convertU:function(e){return/^\s*$/.test(e)?"":" /".concat(e,"/ ")},convertImg:function(e,t){var n,r=e&&e.length>0?e:"image";return zA(n="![".concat(r,"](")).call(n,t,")")},convertGraph:function(e,t,n,r){var i,A,a,o=e&&e.length>0?e:"graph",s="";if(r)try{var l,c=r.attrs;nA(l=vn(c)).call(l,(function(e){var t;Object.prototype.hasOwnProperty.call(c,e)&&(Ec(e).call(e,"data-graph-")>=0&&c[e]&&(s+=zA(t=" ".concat(e,"=")).call(t,c[e])))}))}catch(e){}return zA(i=zA(A=zA(a="![".concat(o,"](")).call(a,t,"){data-control=tapd-graph data-origin-xml=")).call(A,n)).call(i,s,"}")},convertVideo:function(e,t,n,r){var i,A,a=r&&r.length>0?r:"video";return zA(i=zA(A="!video[".concat(a,"](")).call(A,t,"){poster=")).call(i,n,"}")},convertA:function(e,t){var n;if(e===t)return"".concat(e," ");var r=wl(e).call(e);return r?zA(n="[".concat(r,"](")).call(n,t,")"):r},convertSup:function(e){return"^".concat(wl(e).call(e).replace(/\^/g,"\\^"),"^")},convertSub:function(e){return"^^".concat(wl(e).call(e).replace(/\^\^/g,"\\^\\^"),"^^")},convertTd:function(e){return"~|".concat(wl(e).call(e).replace(/\n{1,}/g,"
")," ~|")},convertTh:function(e){return"~|".concat(wl(e).call(e).replace(/\n{1,}/g,"
")," ~|")},convertTr:function(e){return"".concat(e.replace(/\n/g,""),"\n")},convertThead:function(e){return"".concat(e.replace(/~\|~\|/g,"~|").replace(/~\|/g,"|"),"|:--|\n")},convertTable:function(e){var t="\n".concat(e.replace(/~\|~\|/g,"~|").replace(/~\|/g,"|"),"\n").replace(/\n{2,}/g,"\n");return/\|:--\|/.test(t)?t:"\n| |\n|:--|".concat(t)},convertLi:function(e){return"- ".concat(e.replace(/^\n/,"").replace(/\n+$/,"").replace(/\n+/g,"\n\t"),"\n")},convertUl:function(e){return"".concat(e,"\n")},convertOl:function(e){for(var t=e.split("\n"),n=1,r=0;r".concat(wl(e).call(e),"\n\n")},convertAddress:function(e){return">".concat(wl(e).call(e),"\n\n")}},paragraphStyleClear:function(e){for(var t=0;t1)for(var a=0;a=0?n:n>=0?n+r:Math.min(n,r)}function $c(e){var t=e.previousElementSibling,n=e.nextElementSibling;if(!t){var r=getComputedStyle(e),i=e.getBoundingClientRect();if(!n)return{height:Math.max(Kc(r.marginTop)+i.height+Kc(r.marginBottom),0),offsetTop:e.offsetTop-Math.abs(Kc(r.marginTop))};var A=getComputedStyle(n),a=Gc(r.marginBottom,A.marginTop);return{height:Math.max(Kc(r.marginTop)+i.height+a,0),offsetTop:e.offsetTop-Math.abs(Kc(r.marginTop))}}var o,s,l,c,u=getComputedStyle(e),h=e.getBoundingClientRect(),f=getComputedStyle(t),d=(o=f.marginBottom,s=u.marginTop,l=Kc(o),(c=Kc(s))<0?0:l>=0?Math.max(c-l,0):c);if(!n)return{height:Math.max(d+h.height+Kc(u.marginBottom),0),offsetTop:e.offsetTop-Math.abs(Kc(u.marginTop))};var p=getComputedStyle(n),g=Gc(u.marginBottom,p.marginTop);return{height:Math.max(d+h.height+g,0),offsetTop:e.offsetTop-Math.abs(d)}}function Xc(e,t){if(!e||!e.tagName)return"";var n,r,i=document.createElement("div");return i.appendChild(e.cloneNode(!1)),n=i.innerHTML,t&&(r=Ec(n).call(n,">")+1,n=n.substring(0,r)+e.innerHTML+n.substring(r)),i=null,n}function Vc(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=document.createElement(e);(i.className=n,void 0!==r)&&nA(t=vn(r)).call(t,(function(e){var t=r[e];if(nc(e).call(e,"data-")){var n=e.replace(/^data-/,"");i.dataset[n]=t}else i.setAttribute(e,t)}));return i}var Wc={showSwitchBtnAfterPasteHtml:function(e,t,n,r,i){wl(r).call(r)!==wl(i).call(i)&&(this.init(e,t,n,r,i),this.setSelection(),this.bindListener(),this.initBubble(),this.showBubble(),"text"===this.getTypeFromLocalStorage()&&this.switchTextClick())},init:function(e,t,n,r,i){this.$cherry=e,this.html=r,this.md=i,this.codemirror=n,this.currentCursor=t,this.locale=e.locale},getTypeFromLocalStorage:function(){return"undefined"==typeof localStorage?"md":localStorage.getItem("cherry-paste-type")||"md"},setTypeToLocalStorage:function(e){"undefined"!=typeof localStorage&&localStorage.setItem("cherry-paste-type",e)},setSelection:function(){var e=Dc({},this.codemirror.getCursor()),t=this.currentCursor;this.codemirror.setSelection(t,e)},bindListener:function(){var e=this;if(this.hasBindListener)return!0;this.hasBindListener=!0,this.codemirror.on("beforeSelectionChange",(function(t,n){e.hideBubble()})),this.codemirror.on("beforeChange",(function(t,n){e.hideBubble()})),this.codemirror.on("scroll",(function(t){e.updatePositionWhenScroll()}))},isHidden:function(){return"none"===this.bubbleDom.style.display},toggleBubbleDisplay:function(){this.isHidden()?this.bubbleDom.style.display="":this.bubbleDom.style.display="none"},hideBubble:function(){if(this.noHide)return!0;this.isHidden()||this.toggleBubbleDisplay()},updatePositionWhenScroll:function(){if(!this.isHidden()){var e=this.bubbleDom.dataset.scrollTop-this.getScrollTop();this.bubbleDom.style.marginTop="".concat(e,"px")}},getScrollTop:function(){return this.codemirror.getScrollInfo().top},showBubble:function(){var e=this.getLastSelectedPosition().top;this.isHidden()&&(this.toggleBubbleDisplay(),this.bubbleDom.style.marginTop="0",this.bubbleDom.dataset.scrollTop=this.getScrollTop()),e>this.codemirror.getWrapperElement().clientHeight-this.bubbleDom.getBoundingClientRect().height-15?(this.bubbleDom.style.top="",this.bubbleDom.style.bottom="".concat(15,"px")):(this.bubbleDom.style.top="".concat(e,"px"),this.bubbleDom.style.bottom="")},initBubble:function(){var e,t;if(this.bubbleDom)return this.bubbleDom.setAttribute("data-type","md"),!0;var n=Vc("div","cherry-bubble cherry-bubble--centered cherry-switch-paste");n.style.display="none";var r=Vc("span","cherry-toolbar-button cherry-text-btn",{title:this.locale.pastePlain});r.innerText="TEXT";var i=Vc("span","cherry-toolbar-button cherry-md-btn",{title:this.locale.pasteMarkdown});i.innerText="Markdown";var A=Vc("span","switch-btn--bg");this.bubbleDom=n,this.switchText=r,this.switchMd=i,this.switchBG=A,this.bubbleDom.appendChild(r),this.bubbleDom.appendChild(i),this.bubbleDom.appendChild(A),this.bubbleDom.setAttribute("data-type","md"),this.codemirror.getWrapperElement().appendChild(this.bubbleDom),this.switchMd.addEventListener("click",ta(e=this.switchMDClick).call(e,this)),this.switchText.addEventListener("click",ta(t=this.switchTextClick).call(t,this))},switchMDClick:function(e){this.setTypeToLocalStorage("md"),"md"!==this.bubbleDom.getAttribute("data-type")&&(this.noHide=!0,this.bubbleDom.setAttribute("data-type","md"),this.codemirror.doc.replaceSelection(this.md),this.setSelection(),this.showBubble(),this.noHide=!1)},switchTextClick:function(e){this.setTypeToLocalStorage("text"),"text"!==this.bubbleDom.getAttribute("data-type")&&(this.noHide=!0,this.bubbleDom.setAttribute("data-type","text"),this.codemirror.doc.replaceSelection(this.html),this.setSelection(),this.showBubble(),this.noHide=!1)},getLastSelectedPosition:function(){var e=$l(this.codemirror.getWrapperElement().getElementsByClassName("CodeMirror-selected")),t=0,n=0;if(e.length<=0)return this.hideBubble(),{};for(var r=0;rn&&A>=t&&(n=a),A>t&&(t=A)}return{top:n}}},jc=Wc;function Yc(e,t,n,r){return e.addEventListener?(e.addEventListener(t,n,r),!0):e.attachEvent?e.attachEvent("on".concat(t),n):void(e["on".concat(t)]=n)}function Jc(e,t,n,r){if(e.removeEventListener)e.removeEventListener(t,n,r);else{if(e.detachEvent)return e.detachEvent("on".concat(t),n);e["on".concat(t)]=null}}var zc=new Proxy({},{get:function(e,t,n){return function(){}}});var qc=new(function(){function e(){var t;hA(this,e),jA(this,"Events",{previewerClose:"previewer:close",previewerOpen:"previewer:open",editorClose:"editor:close",editorOpen:"editor:open",toolbarHide:"toolbar:hide",toolbarShow:"toolbar:show",cleanAllSubMenus:"cleanAllSubMenus"}),jA(this,"emitter",{all:t=t||new Map,on:function(e,n){var r=t.get(e);r?r.push(n):t.set(e,[n])},off:function(e,n){var r=t.get(e);r&&(n?r.splice(r.indexOf(n)>>>0,1):t.set(e,[]))},emit:function(e,n){var r=t.get(e);r&&r.slice().map((function(e){e(n)})),(r=t.get("*"))&&r.slice().map((function(t){t(e,n)}))}})}return pA(e,[{key:"on",value:function(e,t,n){var r;this.emitter.on(zA(r="".concat(e,":")).call(r,t),n)}},{key:"emit",value:function(e,t){var n;this.emitter.emit(zA(n="".concat(e,":")).call(n,t))}}]),e}());function Zc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"image",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"*",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=document.createElement("input");i.type="file",i.id="fileUpload",i.value="",i.style.display="none",i.accept=n,i.addEventListener("change",(function(n){var i=yc(n.target.files,1)[0];e.options.fileUpload(i,(function(n){var A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof n&&n){if(r)return r(i.name,n,A);var a,o="";if("image"===t)o=zA(a="![".concat(i.name,"](")).call(a,n,")");else if("video"===t){var s;o=zA(s="!video[".concat(i.name,"](")).call(s,n,")")}else if("audio"===t){var l;o=zA(l="!audio[".concat(i.name,"](")).call(l,n,")")}else{var c;o=zA(c="[".concat(i.name,"](")).call(c,n,")")}e.editor.doc.replaceSelection(o)}}))})),i.click()}function eu(e){var t=[];return null!=e&&e.isBorder&&t.push("#B"),null!=e&&e.isShadow&&t.push("#S"),null!=e&&e.isRadius&&t.push("#R"),null!=e&&e.width&&t.push("#".concat(e.width)),null!=e&&e.height&&(e.width||t.push("#auto"),t.push("#".concat(e.height))),t.join(" ")}function tu(e,t,n){var r,i,A,a,o,s=null!==(r=null==t?void 0:t.name)&&void 0!==r?r:n.name,l="",c="";/video/i.test(n.type)&&(l="!video",c=null!=t&&t.poster?"{poster=".concat(t.poster,"}"):""),/audio/i.test(n.type)&&(l="!audio"),/image/i.test(n.type)&&(l="!");var u=l?eu(t):"";return zA(i=zA(A=zA(a=zA(o="".concat(l,"[")).call(o,s)).call(a,u,"](")).call(A,e,")")).call(i,c)}function nu(e,t){var n=vn(e);if(zr){var r=zr(e);t&&(r=Ai(r).call(r,(function(t){return fi(e,t).enumerable}))),n.push.apply(n,r)}return n}function ru(e){for(var t=1;t\\x00-\\x1f"\\(\\)]*)?'),fu=new RegExp("(?:\\/\\/)".concat(hu.source)),du=new RegExp("^".concat(hu.source,"$")),pu=new RegExp("^".concat(fu.source,"$")),gu=/^([ \t]*)([*+-][ ](\[[ x]\])?|[0-9一二三四五六七八九十零]+\.|[a-z]\.|\b(?:M{0,3}(?:CM|CD|D?C{0,3})(?:XC|XL|L?X{0,3})(?:IX|IV|V?I{0,3}))\b\.)([^\r\n]*)/;function mu(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n={begin:"(?:^|\\n)(\\n*)",content:["(\\h*\\|[^\\n]+\\|?\\h*)","\\n","(?:(?:\\h*\\|\\h*:?[-]{1,}:?\\h*)+\\|?\\h*)","((\\n\\h*\\|[^\\n]+\\|?\\h*)*)"].join(""),end:"(?=$|\\n)"};n.reg=iu(n,"g",!0);var r={begin:"(?:^|\\n)(\\n*)",content:["(\\|?[^\\n|]+(\\|[^\\n|]+)+\\|?)","\\n","(?:\\|?\\h*:?[-]{1,}:?[\\h]*(?:\\|[\\h]*:?[-]{1,}:?\\h*)+\\|?)","((\\n\\|?([^\\n|]+(\\|[^\\n|]*)+)\\|?)*)"].join(""),end:"(?=$|\\n)"};return r.reg=iu(r,"g",!0),!1===t?{strict:n,loose:r}:iu({begin:"",content:zA(e="(?:".concat(n.begin+n.content+n.end,"|")).call(e,r.begin+r.content+r.end,")"),end:""},"g",!0)}function vu(){var e={begin:/(?:^|\n)(\n*((?:>[\t ]*)*)(?:[^\S\n]*))(`{3,})([^`]*?)\n/,content:/([\w\W]*?)/,end:/[^\S\n]*\3[ \t]*(?=$|\n+)/,reg:new RegExp("")};return e.reg=new RegExp(e.begin.source+e.content.source+e.end.source,"g"),ru(ru({},e),{},{begin:e.begin.source,content:e.content.source,end:e.end.source})}function Tu(e,t){var n=e||"Item 1\n Item 1.1\nItem 2";n=n.replace(/^\n+/,"").replace(/\n+$/,"");var r="1.";switch(t){case"ol":r="1.";break;case"ul":r="-";break;case"checklist":r="- [x]"}if(n=n.replace(/^(\s*)([0-9a-zA-Z]+\.|- \[x\]|- \[ \]|-) /gm,"$1"),"1."===r){var i={};n=n.replace(/^(\s*)(\S[\s\S]*?)$/gm,(function(e,t,n){var r,A,a,o=(null===(r=t.match(/[ \t]/g))||void 0===r?void 0:r.length)||0;return i[o]=i[o]?i[o]+1:1,zA(A=zA(a="".concat(t)).call(a,i[o],". ")).call(A,n)}))}else n=n.replace(/^(\s*)(\S[\s\S]*?)$/gm,"$1".concat(r," $2"));return n}function yu(){var e={begin:/(?:^|\n)(\n*(?:[^\S\n]*)):::([^:][^\n]+?)\s*\n/,content:/([\w\W]*?)/,end:/\n[ \t]*:::[ \t]*(?=$|\n+)/};return e.reg=new RegExp(e.begin.source+e.content.source+e.end.source,"g"),e}function Eu(){var e={begin:/(?:^|\n)(\n*(?:[^\S\n]*))\+\+\+([-]{0,1})\s+([^\n]+)\n/,content:/([\w\W]+?)/,end:/\n[ \t]*\+\+\+[ \t]*(?=$|\n+)/};return e.reg=new RegExp(e.begin.source+e.content.source+e.end.source,"g"),e}var bu=/(\[[^\n]*?\]\(data:image\/[a-z]{1,10};base64,)([^)]+)\)/g,Bu=/(!\[[^\n]*?\]\([^)]+\)\{[^}]* data-xml=)([^}]+)\}/g,Cu=/(!\[[^\n]*?\]\(data:image\/[a-z]{1,10};base64,[^)]+\)\{data-type=drawio data-xml=[^}]+\})/g,wu=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(vu().reg,(function(e){return e.replace(/^.*$/gm,"/n")})).replace(/(`+)(.+?(?:\n.+?)*?)\1/g,(function(e){return e.replace(/[![\]()]/g,".")}))};function _u(e){(function(e){var t=/^(\s*)([I一二三四五六七八九十]+)\.(\s+)/,n=/^(\s*)([I一二三四五六七八九十]+)\.(\s+)$/;if(e.getOption("disableInput"))return!1;for(var r=e.listSelections(),i=[],A=0;A0)){var p=Vc("span","cm-string ".concat(t),{title:l});p.textContent=l,n.noChange=!0,r.markText(f,d,{replacedWith:p,atomic:!0})}}}})),jA(this,"onKeyup",(function(e,t){var r=t.getCursor().line;n.previewer.highlightLine(r+1)})),jA(this,"onScroll",(function(e){if(qc.emit(n.instanceId,qc.Events.cleanAllSubMenus),n.disableScrollListener)n.disableScrollListener=!1;else{var t=e.getScrollerElement();if(t.scrollTop<=0)n.previewer.scrollToLineNum(0);else if(t.scrollTop+t.clientHeight>=t.scrollHeight-20)n.previewer.scrollToLineNum(null);else{var r=e.getScrollInfo().top,i=e.lineAtHeight(r,"local"),A=e.charCoords({line:i,ch:0},"local"),a=e.getLineHandle(i).height,o=100*(r-(A.bottom-a))/a/100;n.previewer.scrollToLineNum(i+1,o)}}})),jA(this,"onMouseDown",(function(e,t){qc.emit(n.instanceId,qc.Events.cleanAllSubMenus);var r=e.getCursor().line,i=Math.abs(t.y-e.getWrapperElement().getBoundingClientRect().y);n.previewer.scrollToLineNumWithOffset(r+1,i),n.toHalfWidth(e,t)})),jA(this,"onCursorActivity",(function(){n.refreshWritingStatus()})),this.options={id:"code",name:"code",autoSave2Textarea:!1,editorDom:document.createElement("div"),wrapperDom:null,autoScrollByCursor:!0,convertWhenPaste:!0,codemirror:{lineNumbers:!1,cursorHeight:.85,indentUnit:4,tabSize:4,mode:"gfm",lineWrapping:!0,indentWithTabs:!0,autofocus:!0,theme:"default",autoCloseTags:!0,extraKeys:{Enter:_u},matchTags:{bothTags:!0},placeholder:"",keyMap:"sublime"},toolbars:{},onKeydown:function(){},onChange:function(){},onFocus:function(){},onBlur:function(){},onPaste:this.onPaste,onScroll:this.onScroll},this.animation={};var r=t.codemirror,i=Zs(t,Su);r&&Al(this.options.codemirror,r),Al(this.options,i),this.$cherry=this.options.$cherry,this.instanceId=this.$cherry.getInstanceId()}return pA(e,[{key:"formatFullWidthMark",value:function(){var e,t=this.editor,n=/[·¥、:“”【】()《》]/,r=t.getSearchCursor(n),i=r.findNext();for(nA(e=t.getAllMarks()).call(e,(function(e){if("cm-fullWidth"===e.className){var r=JSON.parse(al(fl(e).call(e))),i=t.getRange(r.from,r.to);n.test(i)||e.clear()}}));!1!==i;i=r.findNext()){var A,a=r.from();if(a){var o={line:a.line,ch:a.ch},s={line:a.line,ch:a.ch+1};0===Ai(A=t.findMarks(o,s)).call(A,(function(e){return"cm-fullWidth"===e.className})).length&&t.markText(o,s,{className:"cm-fullWidth",title:"按住Ctrl/Cmd点击切换成半角(Hold down Ctrl/Cmd and click to switch to half-width)"})}}}},{key:"toHalfWidth",value:function(e,t){var n=t.target;if(n instanceof HTMLElement&&n.classList.contains("cm-fullWidth")&&(t.ctrlKey||t.metaKey)&&1===t.buttons){var r=n.getBoundingClientRect(),i=e.coordsChar({left:r.left,top:r.top}),A={line:i.line,ch:i.ch+1};e.setSelection(i,A),e.replaceSelection(n.innerText.replace("·","`").replace("¥","$").replace("、","/").replace(":",":").replace("“",'"').replace("”",'"').replace("【","[").replace("】","]").replace("(","(").replace(")",")").replace("《","<").replace("》",">"))}}},{key:"onPaste",value:function(e,t){var n=e.clipboardData;n?this.handlePaste(e,n,t):(n=window.clipboardData,this.handlePaste(e,n,t))}},{key:"handlePaste",value:function(e,t,n){for(var r,i=this,A=t.items,a=t.types||[],o=n.getDoc(),s=0;s1&&void 0!==arguments[1]?arguments[1]:{},t);o.replaceSelection(n)}})),e.preventDefault()}()}var c=t.getData("text/plain"),u=t.getData("Text/Html");if(!u||!this.options.convertWhenPaste)return!0;var h=u.replace(/<(html|head|body|!)/g,"");if((null===(r=h.match(/<[a-zA-Z]/g))||void 0===r?void 0:r.length)<=1&&/0){var p=n.listSelections();if(n.getSelections().length<=1&&p[0]&&p[0].anchor){var g={};g.line=p[0].anchor.line,g.ch=p[0].anchor.ch,o.replaceSelection(d),jc.showSwitchBtnAfterPasteHtml(this.$cherry,g,n,c,d)}else o.replaceSelection(d);e.preventDefault()}f=null}},{key:"storeDocumentScroll",value:function(){this.options.keepDocumentScrollAfterInit&&(this.needRestoreDocumentScroll=!0,this.documentElementScrollTop=document.documentElement.scrollTop,this.documentElementScrollLeft=document.documentElement.scrollLeft)}},{key:"restoreDocumentScroll",value:function(){this.options.keepDocumentScrollAfterInit&&this.needRestoreDocumentScroll&&(this.needRestoreDocumentScroll=!1,window.scrollTo(this.documentElementScrollLeft,this.documentElementScrollTop))}},{key:"init",value:function(e){var t=this;this.storeDocumentScroll();var n=this.options.editorDom.querySelector("#".concat(this.options.id));if(!(n instanceof HTMLTextAreaElement))throw new Error("The specific element is not a textarea.");var r=rc.fromTextArea(n,this.options.codemirror);r.addOverlay({name:"invisibles",token:function(e){var t,n=0,r=" "===e.peek();if(r){for(;r&&n0&&ca((function(){for(var n=function(n){var i=r[n],A=i.type||"";if(""===A||/^text/i.test(A))return"continue";t.options.fileUpload(i,(function(r){var A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof r){e.setSelection(e.getCursor());var a=tu(r,A,i),o=n>0?"\n".concat(a," "):"".concat(a," ");e.replaceSelection(o),t.dealSpecialWords()}}))},i=0;i0){if(t>=r.animation.destinationTop)return void(r.animation.timer=0);r.disableScrollListener=!0,r.editor.scrollTo(null,t+i)}else{if(!(n<0))return void(r.animation.timer=0);if(t<=r.animation.destinationTop||t<=0)return void(r.animation.timer=0);r.disableScrollListener=!0,r.editor.scrollTo(null,t-i)}t===r.editor.getScrollInfo().top||i>=Math.abs(n)?r.animation.timer=0:r.animation.timer=requestAnimationFrame(e)}))}}},{key:"scrollToLineNum",value:function(e,t,n){if(null!==e){var r=Math.max(0,e);this.jumpToLine(r,t,n),zc.log("滚动预览区域,左侧应scroll to ",r)}else this.jumpToLine(null)}},{key:"getEditorDom",value:function(){return this.options.editorDom}},{key:"addListener",value:function(e,t){this.editor.on(e,t)}},{key:"initWritingStyle",value:function(){var e,t,n=this.options.writingStyle,r="cherry-editor-writing-style--".concat(n),i=this.getEditorDom();nA(e=Ai(t=$l(i.classList)).call(t,(function(e){return nc(e).call(e,"cherry-editor-writing-style--")}))).call(e,(function(e){return i.classList.remove(e)})),"normal"!==n&&(i.classList.add(r),this.refreshWritingStatus())}},{key:"refreshWritingStatus",value:function(){var e,t,n=this.options.writingStyle;if("focus"===n||"typewriter"===n){var r="cherry-editor-writing-style--".concat(n),i=document.querySelector("#cherry-editor-writing-style")||document.createElement("style");i.id="cherry-editor-writing-style",fl(e=$l(document.head.childNodes)).call(e,(function(e){return e===i}))||document.head.appendChild(i);var A=i.sheet;if(nA(t=$l(Array(A.cssRules.length))).call(t,(function(){return A.deleteRule(0)})),"focus"===n){var a,o,s=this.getEditorDom().getBoundingClientRect(),l=this.editor.charCoords(this.editor.getCursor()),c=l.top,u=l.bottom,h=c-s.top,f=s.height-(u-s.top);A.insertRule(zA(a=".".concat(r,"::before { height: ")).call(a,h>0?h:0,"px; }"),0),A.insertRule(zA(o=".".concat(r,"::after { height: ")).call(o,f>0?f:0,"px; }"),0)}if("typewriter"===n){var d,p,g=this.editor.getScrollInfo().clientHeight/2;A.insertRule(zA(d=".".concat(r," .CodeMirror-lines::before { height: ")).call(d,g,"px; }"),0),A.insertRule(zA(p=".".concat(r," .CodeMirror-lines::after { height: ")).call(p,g,"px; }"),0),this.editor.scrollTo(null,this.editor.cursorCoords(null,"local").top-g)}}}},{key:"setWritingStyle",value:function(e){this.options.writingStyle=e,this.initWritingStyle()}}]),e}(),Qu=rr.findIndex,Iu="findIndex",xu=!0;Iu in[]&&Array(1)[Iu]((function(){xu=!1})),et({target:"Array",proto:!0,forced:xu},{findIndex:function(e){return Qu(this,e,arguments.length>1?arguments[1]:void 0)}});var Lu=ni("Array").findIndex,Fu=Array.prototype,Nu=function(e){var t=e.findIndex;return e===Fu||R(Fu,e)&&t===Fu.findIndex?Lu:t},Du=Zr("splice"),Uu=o.TypeError,Mu=Math.max,Ou=Math.min;et({target:"Array",proto:!0,forced:!Du},{splice:function(e,t){var n,r,i,A,a,o,s=se(this),l=Ut(s),c=Ft(e,l),u=arguments.length;if(0===u?n=r=0:1===u?(n=0,r=l-c):(n=u-2,r=Ou(Mu(It(t),0),l-c)),l+n-r>9007199254740991)throw Uu("Maximum allowed length exceeded");for(i=er(s,r),A=0;Al-r+n;A--)delete s[A-1]}else if(n>r)for(A=l-r;A>c;A--)o=A+n-1,(a=A+r-1)in s?s[o]=s[a]:delete s[o];for(A=0;A1?arguments[1]:void 0)}});var Wu=ni("Array").map,ju=Array.prototype,Yu=function(e){var t=e.map;return e===ju||R(ju,e)&&t===ju.map?Wu:t};function Ju(e,t){var n,r,i,A=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return/^\n/.test(e)?A?(null!==(n=null===(r=e.match(/^\n+/g))||void 0===r||null===(i=r[0])||void 0===i?void 0:i.length)&&void 0!==n?n:0)>1?"\n\n".concat(t):"\n".concat(t):"\n\n".concat(t):t}function zu(e,t){var n=(e.match(/\n/g)||[]).length;return""!==e&&(n-=2),n+t}var qu=ic;function Zu(e,t){if(qu(t))return t}function eh(e){return"undefined"!=typeof localStorage&&null!==localStorage.getItem("cherry-".concat(e))}function th(){var e="false";return"undefined"!=typeof localStorage&&(e=localStorage.getItem("cherry-classicBr")),"true"===e}function nh(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t="default";if("undefined"!=typeof localStorage){var n=localStorage.getItem("cherry-theme");n&&(t=n)}return e?"theme__".concat(t):t}function rh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=(t||nh()).replace(/^.*theme__/,""),r=" theme__".concat(n);e.wrapperDom.className=e.wrapperDom.className.replace(/ theme__[^ $]+?( |$)/g," ")+r,e.previewer.getDomContainer().className=e.previewer.getDomContainer().className.replace(/ theme__[^ $]+?( |$)/g," ")+r,function(e){"undefined"!=typeof localStorage&&localStorage.setItem("cherry-theme",e)}(n)}var ih=o.RangeError,Ah=String.fromCharCode,ah=String.fromCodePoint,oh=v([].join),sh=!!ah&&1!=ah.length;et({target:"String",stat:!0,arity:1,forced:sh},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,i=0;r>i;){if(t=+arguments[i++],Ft(t,1114111)!==t)throw ih(t+" is not a valid code point");n[i]=t<65536?Ah(t):Ah(55296+((t-=65536)>>10),t%1024+56320)}return oh(n,"")}});var lh,ch,uh=M.String.fromCodePoint;function hh(e,t){var n=vn(e);if(zr){var r=zr(e);t&&(r=Ai(r).call(r,(function(t){return fi(e,t).enumerable}))),n.push.apply(n,r)}return n}function fh(e){for(var t=1;t":">","&":"&",'"':""","'":"'"},ph={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},gh=fh(fh(fh(fh(fh(fh({},{34:""",38:"&",39:"'",60:"<",62:">"}),{192:"À",193:"Á",194:"Â",195:"Ã",196:"Ä",197:"Å",198:"Æ",199:"Ç",200:"È",201:"É",202:"Ê",203:"Ë",204:"Ì",205:"Í",206:"Î",207:"Ï",208:"Ð",209:"Ñ",210:"Ò",211:"Ó",212:"Ô",213:"Õ",214:"Ö",216:"Ø",217:"Ù",218:"Ú",219:"Û",220:"Ü",221:"Ý",222:"Þ",223:"ß",224:"à",225:"á",226:"â",227:"ã",228:"ä",229:"å",230:"æ",231:"ç",232:"è",233:"é",234:"ê",235:"ë",236:"ì",237:"í",238:"î",239:"ï",240:"ð",241:"ñ",242:"ò",243:"ó",244:"ô",245:"õ",246:"ö",248:"ø",249:"ù",250:"ú",251:"û",252:"ü",253:"ý",254:"þ",255:"ÿ"}),{160:" ",161:"¡",162:"¢",163:"£",164:"¤",165:"¥",166:"¦",167:"§",168:"¨",169:"©",170:"ª",171:"«",172:"¬",173:"­",174:"®",175:"¯",176:"°",177:"±",178:"²",179:"³",180:"´",181:"µ",182:"¶",184:"¸",185:"¹",186:"º",187:"»",188:"¼",189:"½",190:"¾",191:"¿",215:"×",247:"÷"}),{8704:"∀",8706:"∂",8707:"∃",8709:"∅",8711:"∇",8712:"∈",8713:"∉",8715:"∋",8719:"∏",8721:"∑",8722:"−",8727:"∗",8730:"√",8733:"∝",8734:"∞",8736:"∠",8743:"∧",8744:"∨",8745:"∩",8746:"∪",8747:"∫",8756:"∴",8764:"∼",8773:"≅",8776:"≈",8800:"≠",8801:"≡",8804:"≤",8805:"≥",8834:"⊂",8835:"⊃",8836:"⊄",8838:"⊆",8839:"⊇",8853:"⊕",8855:"⊗",8869:"⊥",8901:"⋅"}),{913:"Α",914:"Β",915:"Γ",916:"Δ",917:"Ε",918:"Ζ",919:"Η",920:"Θ",921:"Ι",922:"Κ",923:"Λ",924:"Μ",925:"Ν",926:"Ξ",927:"Ο",928:"Π",929:"Ρ",931:"Σ",932:"Τ",933:"Υ",934:"Φ",935:"Χ",936:"Ψ",937:"Ω",945:"α",946:"β",947:"γ",948:"δ",949:"ε",950:"ζ",951:"η",952:"θ",953:"ι",954:"κ",955:"λ",956:"μ",957:"ν",958:"ξ",959:"ο",960:"π",961:"ρ",962:"ς",963:"σ",964:"τ",965:"υ",966:"φ",967:"χ",968:"ψ",969:"ω",977:"ϑ",978:"ϒ",982:"ϖ"}),{338:"Œ",339:"œ",352:"Š",353:"š",376:"Ÿ",402:"ƒ",710:"ˆ",732:"˜",8194:" ",8195:" ",8201:" ",8204:"‌",8205:"‍",8206:"‎",8207:"‏",8211:"–",8212:"—",8216:"‘",8217:"’",8218:"‚",8220:"“",8221:"”",8222:"„",8224:"†",8225:"‡",8226:"•",8230:"…",8240:"‰",8242:"′",8243:"″",8249:"‹",8250:"›",8254:"‾",8364:"€",8482:"™",8592:"←",8593:"↑",8594:"→",8595:"↓",8596:"↔",8629:"↵",8968:"⌈",8969:"⌉",8970:"⌊",8971:"⌋",9674:"◊",9824:"♠",9827:"♣",9829:"♥",9830:"♦"}),mh=vn(gh),vh=Yu(mh).call(mh,(function(e){return gh[e].replace(/^&(\w+);$/g,(function(e,t){return t.toLowerCase()}))})),Th=function(e){return"string"!=typeof e||e.length<=0},yh=function(e){try{var t=uh(e);return!Th(t)}catch(e){return!1}};var Eh=["h1|h2|h3|h4|h5|h6","ul|ol|li|dd|dl|dt","table|thead|tbody|tfoot|col|colgroup|th|td|tr","div|article|section|footer|aside|details|summary|code|audio|video|canvas|figure","address|center|cite|p|pre|blockquote|marquee|caption|figcaption|track|source|output|svg"].join("|"),bh=["span|a|link|b|s|i|del|u|em|strong|sup|sub|kbd","nav|font|bdi|samp|map|area|small|time|bdo|var|wbr|meter|dfn","ruby|rt|rp|mark|q|progress|input|textarea|select|ins"].join("|"),Bh=new RegExp(zA(lh=zA(ch="^(".concat(Eh,"|")).call(ch,bh,"|")).call(lh,"br|img|hr",")( |$|/)"),"i");function Ch(e,t){return"string"!=typeof e?"":t?e.replace(/[<>&]/g,(function(e){return dh[e]||e})):e.replace(/[<>&"']/g,(function(e){return dh[e]||e}))}function wh(e,t){if("string"!=typeof e)return"";var n=_h(e);return n=function(e){return"string"!=typeof e?"":e.replace(/&(\w+);?/g,(function(e,t){return ph[t]||e}))}(n),Ch(n,t)}function _h(e){return e.replace(/&#(\d+);?/g,(function(e,t){return gh[t]||e}))}function Sh(e){var t=function(e){return e.replace(/&#x([0-9a-f]+);?/gi,(function(e,t){var n=xc("0x".concat(t),16);try{return uh(n)}catch(t){return e}}))}(function(e){return e.replace(/&#(\d+);?/g,(function(e,t){try{return uh(t)}catch(t){return e}}))}(e)).match(/^\s*([\w\W]+?)(?=:)/i);if(!t)return!0;var n=["javascript","data"],r=t[1].replace(/[\s]/g,"");return-1===Ec(n).call(n,r.toLowerCase())}function kh(e){return encodeURI(e).replace(/%25/g,"%")}function Qh(e){var t=function(){if("undefined"==typeof Reflect||!hn)return!1;if(hn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(hn(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=WA(e);if(t){var i=WA(this).constructor;n=hn(r,arguments,i)}else n=r.apply(this,arguments);return $A(this,n)}}var Ih=0,xh=function(e){bA(n,$u);var t=Qh(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{needCache:!1},i=r.needCache,A=r.defaultCache,a=void 0===A?{}:A;return hA(this,n),(e=t.call(this,{})).needCache=!!i,e.sign="",i&&(e.cache=a||{},e.cacheKey="~~C".concat(Ih),Ih+=1),e}return pA(n,[{key:"initBrReg",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.classicBr=eh("classicBr")?th():e,this.removeBrAfterBlock=null,this.removeBrBeforeBlock=null,this.removeNewlinesBetweenTags=null}},{key:"$cleanParagraph",value:function(e){var t=e.replace(/^\n+/,"").replace(/\n+$/,"");return this.classicBr?t:this.joinRawHtml(t).replace(/\n/g,"
").replace(/\r/g,"\n")}},{key:"joinRawHtml",value:function(e){if(!this.removeBrAfterBlock){var t,n,r,i,A=null!==(t=null===(n=this.$engine.htmlWhiteListAppend)||void 0===n?void 0:n.split("|"))&&void 0!==t?t:[];A=Ai(r=Yu(A).call(A,(function(e){return/[a-z-]+/gi.test(e)?e:null}))).call(r,(function(e){return null!==e}));var a=zA(A).call(A,Eh).join("|");this.removeBrAfterBlock=new RegExp("<(".concat(a,")(>| [^>]*?>)[^\\S\\n]*?\\n"),"ig"),this.removeBrBeforeBlock=new RegExp("\\n[^\\S\\n]*?<\\/(".concat(a,")>[^\\S\\n]*?\\n"),"ig"),this.removeNewlinesBetweenTags=new RegExp(zA(i="<\\/(".concat(a,")>[^\\S\\n]*?\\n([^\\S\\n]*?)<(")).call(i,a,")(>| [^>]*?>)"),"ig")}return e.replace(this.removeBrAfterBlock,"<$1$2").replace(this.removeBrBeforeBlock,"").replace(this.removeNewlinesBetweenTags,"\r$2<$3$4")}},{key:"toHtml",value:function(e,t){return e}},{key:"makeHtml",value:function(e,t){return t(e).html}},{key:"afterMakeHtml",value:function(e){return this.restoreCache(e)}},{key:"isContainsCache",value:function(e,t){if(t){var r=/^(\s*~~C\d+I\w+\$\s*)+$/g.test(e),i=new RegExp("~~C\\d+I".concat(n.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,"\\w+\\$"),"g").test(e);return r&&!i}return new RegExp("~~C\\d+I(?!".concat(n.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")\\w+\\$"),"g").test(e)}},{key:"$splitHtmlByCache",value:function(e){var t=new RegExp("\\n*~~C\\d+I(?!".concat(n.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")\\w+\\$\\n?"),"g");return{caches:e.match(t),contents:e.split(t)}}},{key:"makeExcludingCached",value:function(e,t){for(var n=this.$splitHtmlByCache(e),r=n.caches,i=n.contents,A=Yu(i).call(i,t),a="",o=0;o2&&void 0!==arguments[2]&&arguments[2],l=null!==(n=null===(r=t.match(/^\n+/))||void 0===r?void 0:r[0])&&void 0!==n?n:"",c=null!==(i=null===(A=t.match(/\n+$/))||void 0===A?void 0:A[0])&&void 0!==i?i:"";return s?Ju(t,e):zA(a=zA(o="".concat(l)).call(o,e)).call(a,c)}},{key:"getLineCount",value:function(e){var t,r,i,A=e,a=null!==(t=null===(r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").match(/^\n+/g))||void 0===r||null===(i=r[0])||void 0===i?void 0:i.length)&&void 0!==t?t:0;a=1===a?1:0,A=A.replace(/^\n+/g,"");var o=new RegExp("\n*~~C\\d+I(?:".concat(n.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")?\\w+?_L(\\d+)\\$"),"g"),s=0;return A=A.replace(o,(function(e,t){return s+=xc(t,10),e.replace(/^\n+/g,"")})),a+s+(A.match(/\n/g)||[]).length+1}},{key:"pushCache",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this.needCache){var A=r||this.$engine.md5(e);return this.cache[A]={content:e,using:!0},zA(t=zA(n="".concat(this.cacheKey,"I")).call(n,A,"_L")).call(t,i,"$")}}},{key:"popCache",value:function(e){if(this.needCache)return this.cache[e].content||""}},{key:"resetCache",value:function(){if(this.needCache){for(var e=0,t=vn(this.cache);e2&&void 0!==arguments[2]?arguments[2]:0;return this.sign=this.$engine.md5(e),this.cache[this.sign]?(this.cache[this.sign].using=!0,zA(n=zA(r="".concat(this.cacheKey,"I")).call(r,this.sign,"_L")).call(n,i,"$")):this.toHtml(e,t)}},{key:"mounted",value:function(){}},{key:"signWithCache",value:function(e){return!1}}]),n}();jA(xh,"HOOK_TYPE",Gu.PAR),jA(xh,"IN_PARAGRAPH_CACHE_KEY_PREFIX","!"),jA(xh,"IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX","\\!");var Lh=s((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Fh=Object.isExtensible,Nh=s((function(){Fh(1)}))||Lh?function(e){return!!U(e)&&((!Lh||"ArrayBuffer"!=Q(e))&&(!Fh||Fh(e)))}:Fh,Dh=!s((function(){return Object.isExtensible(Object.preventExtensions({}))})),Uh=r((function(e){var t=Je.f,n=!1,r=de("meta"),i=0,A=function(e){t(e,r,{value:{objectID:"O"+i++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=bn.f,t=v([].splice),i={};i[r]=1,e(i).length&&(bn.f=function(n){for(var i=e(n),A=0,a=i.length;AA;A++)if((o=g(e[A]))&&R(Hh,o))return o;return new Oh(!1)}r=Nl(e,i)}for(s=r.next;!(l=b(s,r)).done;){try{o=g(l.value)}catch(e){_l(r,"throw",e)}if("object"==typeof o&&o&&R(Hh,o))return o}return new Oh(!1)},Ph=o.TypeError,Kh=function(e,t){if(R(t,e))return e;throw Ph("Incorrect invocation")},Gh=Je.f,$h=rr.forEach,Xh=Jn.set,Vh=Jn.getterFor,Wh=function(e,t,n){var r,i=-1!==e.indexOf("Map"),A=-1!==e.indexOf("Weak"),a=i?"set":"add",l=o[e],c=l&&l.prototype,u={};if(y&&T(l)&&(A||c.forEach&&!s((function(){(new l).entries().next()})))){var h=(r=t((function(t,n){Xh(Kh(t,h),{type:e,collection:new l}),null!=n&&Rh(n,t[a],{that:t,AS_ENTRIES:i})}))).prototype,f=Vh(e);$h(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in c)||A&&"clear"==e||ze(h,e,(function(n,r){var i=f(this).collection;if(!t&&A&&!U(n))return"get"==e&&void 0;var a=i[e](0===n?0:n,r);return t?this:a}))})),A||Gh(h,"size",{configurable:!0,get:function(){return f(this).collection.size}})}else r=n.getConstructor(t,e,i,a),Uh.enable();return Hn(r,e,!1,!0),u[e]=r,et({global:!0,forced:!0},u),A||n.setStrong(r,e,i),r},jh=function(e,t,n){for(var r in t)n&&n.unsafe&&e[r]?e[r]=t[r]:xn(e,r,t[r],n);return e},Yh=Te("species"),Jh=function(e){var t=H(e),n=Je.f;y&&t&&!t[Yh]&&n(t,Yh,{configurable:!0,get:function(){return this}})},zh=Je.f,qh=Uh.fastKey,Zh=Jn.set,ef=Jn.getterFor,tf={getConstructor:function(e,t,n,r){var i=e((function(e,i){Kh(e,A),Zh(e,{type:t,index:rn(null),first:void 0,last:void 0,size:0}),y||(e.size=0),null!=i&&Rh(i,e[r],{that:e,AS_ENTRIES:n})})),A=i.prototype,a=ef(t),o=function(e,t,n){var r,i,A=a(e),o=s(e,t);return o?o.value=n:(A.last=o={index:i=qh(t,!0),key:t,value:n,previous:r=A.last,next:void 0,removed:!1},A.first||(A.first=o),r&&(r.next=o),y?A.size++:e.size++,"F"!==i&&(A.index[i]=o)),e},s=function(e,t){var n,r=a(e),i=qh(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return jh(A,{clear:function(){for(var e=a(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,y?e.size=0:this.size=0},delete:function(e){var t=this,n=a(t),r=s(t,e);if(r){var i=r.next,A=r.previous;delete n.index[r.index],r.removed=!0,A&&(A.next=i),i&&(i.previous=A),n.first==r&&(n.first=i),n.last==r&&(n.last=A),y?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=Oe(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!s(this,e)}}),jh(A,n?{get:function(e){var t=s(this,e);return t&&t.value},set:function(e,t){return o(this,0===e?0:e,t)}}:{add:function(e){return o(this,e=0===e?0:e,e)}}),y&&zh(A,"size",{get:function(){return a(this).size}}),i},setStrong:function(e,t,n){var r=t+" Iterator",i=ef(t),A=ef(r);Pi(e,t,(function(e,t){Zh(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=A(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),Jh(t)}};Wh("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),tf);var nf=M.Map,rf=nf,Af=[].push;et({target:"Map",stat:!0,forced:!0},{from:function(e){var t,n,r,i,A=arguments.length,a=A>1?arguments[1]:void 0;return _t(this),(t=void 0!==a)&&ee(a),null==e?new this:(n=[],t?(r=0,i=Oe(a,A>2?arguments[2]:void 0),Rh(e,(function(e){b(Af,n,i(e,r++))}))):Rh(e,Af,{that:n}),new this(n))}});et({target:"Map",stat:!0,forced:!0},{of:function(){return new this(tt(arguments))}});et({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=Ke(this),n=ee(t.delete),r=!0,i=0,A=arguments.length;i1?arguments[1]:void 0);return!Rh(n,(function(e,n,i){if(!r(n,e,t))return i()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var of=Te("species"),sf=function(e,t){var n,r=Ke(e).constructor;return void 0===r||null==(n=Ke(r)[of])?t:_t(n)};et({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=Ke(this),n=af(t),r=Oe(e,arguments.length>1?arguments[1]:void 0),i=new(sf(t,H("Map"))),A=ee(i.set);return Rh(n,(function(e,n){r(n,e,t)&&b(A,i,e,n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),i}}),et({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=Ke(this),n=af(t),r=Oe(e,arguments.length>1?arguments[1]:void 0);return Rh(n,(function(e,n,i){if(r(n,e,t))return i(n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}}),et({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=Ke(this),n=af(t),r=Oe(e,arguments.length>1?arguments[1]:void 0);return Rh(n,(function(e,n,i){if(r(n,e,t))return i(e)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}});var lf=v([].push);et({target:"Map",stat:!0,forced:!0},{groupBy:function(e,t){ee(t);var n=Nl(e),r=new this,i=ee(r.has),A=ee(r.get),a=ee(r.set);return Rh(n,(function(e){var n=t(e);b(i,r,n)?lf(b(A,r,n),e):b(a,r,n,[e])}),{IS_ITERATOR:!0}),r}});et({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return Rh(af(Ke(this)),(function(t,n,r){if((i=n)===(A=e)||i!=i&&A!=A)return r();var i,A}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}}),et({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var n=new this;ee(t);var r=ee(n.set);return Rh(e,(function(e){b(r,n,t(e),e)})),n}}),et({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){return Rh(af(Ke(this)),(function(t,n,r){if(n===e)return r(t)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}}),et({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=Ke(this),n=af(t),r=Oe(e,arguments.length>1?arguments[1]:void 0),i=new(sf(t,H("Map"))),A=ee(i.set);return Rh(n,(function(e,n){b(A,i,r(n,e,t),n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),i}}),et({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=Ke(this),n=af(t),r=Oe(e,arguments.length>1?arguments[1]:void 0),i=new(sf(t,H("Map"))),A=ee(i.set);return Rh(n,(function(e,n){b(A,i,e,r(n,e,t))}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),i}}),et({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=Ke(this),n=ee(t.set),r=arguments.length,i=0;i1?arguments[1]:void 0);return Rh(n,(function(e,n,i){if(r(n,e,t))return i()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var uf=o.TypeError;et({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var n=Ke(this),r=ee(n.get),i=ee(n.has),A=ee(n.set),a=arguments.length;ee(t);var o=b(i,n,e);if(!o&&a<3)throw uf("Updating absent value");var s=o?b(r,n,e):ee(a>2?arguments[2]:void 0)(e,n);return b(A,n,e,t(s,e,n)),n}});var hf=o.TypeError,ff=function(e,t){var n,r=Ke(this),i=ee(r.get),A=ee(r.has),a=ee(r.set),o=arguments.length>2?arguments[2]:void 0;if(!T(t)&&!T(o))throw hf("At least one callback required");return b(A,r,e)?(n=b(i,r,e),T(t)&&(n=t(n),b(a,r,e,n))):T(o)&&(n=o(),b(a,r,e,n)),n};et({target:"Map",proto:!0,real:!0,forced:!0},{upsert:ff}),et({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:ff});var df=rf;var pf=un,gf=ea;function mf(e,t,n){return mf=function(){if("undefined"==typeof Reflect||!pf)return!1;if(pf.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(pf(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?pf:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(gf(Function).apply(e,r));return n&&EA(i,n.prototype),i},mf.apply(null,arguments)}function vf(e){var t="function"==typeof df?new df:void 0;return vf=function(e){if(null===e||!function(e){var t;return-1!==zs(t=Function.toString.call(e)).call(t,"[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return mf(e,arguments,WA(this).constructor)}return n.prototype=TA(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),EA(n,e)},vf(e)}function Tf(e){var t=function(){if("undefined"==typeof Reflect||!hn)return!1;if(hn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(hn(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=WA(e);if(t){var i=WA(this).constructor;n=hn(r,arguments,i)}else n=r.apply(this,arguments);return $A(this,n)}}var yf=function(e,t){if(!qu(e)&&GA(e)!==t.name.toLowerCase()||!qu(e)&&"array"===t.name.toLowerCase())throw new TypeError("parameter given must be ".concat(t.name));return!0},Ef=function(e,t){if(!(e instanceof t))throw new Error("the hook does not correctly inherit");return!0},bf=function(e){if("object"!==GA(e))throw new Error("the hook must be a instance, not a class");return!0},Bf=function(e){bA(n,vf(Error));var t=Tf(n);function n(e,r){var i;return hA(this,n),(i=t.call(this,e)).name="Error",i.stack=i.buildStackTrace(r),i}return pA(n,[{key:"buildStackTrace",value:function(e){var t,n=e&&e.stack?e.stack:"";return zA(t="".concat(this.stack,"\nCaused By: ")).call(t,n)}}]),n}();function Cf(e,t,n){var r,i;if(-1===e)zc.warn(zA(r=zA(i="Duplicate hook name [".concat(t.HOOK_NAME,"] found, hook [")).call(i,t.toString(),"] ")).call(r,isNaN(n)?"":"at index [".concat(n,"] "),"will not take effect."));else if(-2===e){var A;zc.warn(zA(A="Hook [".concat(t.toString(),"] ")).call(A,isNaN(n)?"":"at index [".concat(n,"] "),"is not a valid hook, and will not take effect."))}}function wf(e){return _f(e)||Sf(e)}function _f(e){return Object.prototype.isPrototypeOf.call($u,e)}function Sf(e){return Object.prototype.isPrototypeOf.call(xh,e)}function kf(e){return wf(e)&&!0===(null==e?void 0:e.Cherry$$CUSTOM)}var Qf=function(){function e(t,n,r){hA(this,e),this.$locale=r.locale,this.hookList={},this.hookNameList={},yf(t,Array),this.registerInternalHooks(t,n),this.registerCustomHooks(n.engine.customSyntax,n)}return pA(e,[{key:"registerInternalHooks",value:function(e,t){var n=this;nA(e).call(e,(function(e,r){Cf(n.register(e,t),e,r)}))}},{key:"registerCustomHooks",value:function(e,t){var n=this;if(e){var r=vn(e);nA(r).call(r,(function(r){var i,A,a,o,s={},l=e[r];if(_f(l))A=l;else{if(!_f(o=null==(a=l)?void 0:a.syntaxClass)&&!Sf(o))return;A=l.syntaxClass,s.force=Boolean(l.force),l.before?s.before=l.before:l.after&&(s.after=l.after)}wf(A)?(uA(A,"Cherry$$CUSTOM",{enumerable:!1,configurable:!1,writable:!1,value:!0}),i=n.register(A,t,s)):i=-2,Cf(i,A,void 0)}))}}},{key:"getHookList",value:function(){return this.hookList}},{key:"getHookNameList",value:function(){return this.hookNameList}},{key:"register",value:function(e,t,n){var r,i,A=this,a=t.externals,o=t.engine,s=o.syntax;if(wf(e)){i=e.HOOK_NAME;var l=(null==s?void 0:s[i])||{};(r=new e({externals:a,config:l,globalConfig:o.global})).afterInit((function(){r.setLocale(A.$locale)}))}else{if("function"!=typeof e)return-2;if(!(r=e(t))||!wf(r.constructor))return-2;i=r.getName()}if(!1!==s[i]||kf(e)){var c=r.getType();if(this.hookNameList[i]){var u;if(!kf(e))return-1;if(!n.force)return-1;var h=this.hookNameList[i].type;this.hookList[h]=Ai(u=this.hookList[h]).call(u,(function(e){return e.getName()!==i}))}if(this.hookNameList[i]={type:c},this.hookList[c]=this.hookList[c]||[],kf(e)){var f,d,p,g=-1;if(n.before){if(-1===(g=Nu(f=this.hookList[c]).call(f,(function(e){return e.getName()===n.before}))))zc.warn(zA(d="Cannot find hook named [".concat(n.before,"],\n custom hook [")).call(d,i,"] will append to the end of the hooks."))}else if(n.after){var m,v;-1===(g=Nu(m=this.hookList[c]).call(m,(function(e){return e.getName()===n.after})))?zc.warn(zA(v="Cannot find hook named [".concat(n.after,"],\n custom hook [")).call(v,i,"] will append to the end of the hooks.")):g+=1}if(g<0||g>=this.hookList[c].length)this.hookList[c].push(r);else Pu(p=this.hookList[c]).call(p,g,0,r)}else this.hookList[c].push(r)}}}]),e}();function If(e){if(void 0!==LA&&null!=oc(e)||null!=e["@@iterator"])return gc(e)}function xf(e){return function(e){if(Ac(e))return mc(e)}(e)||If(e)||vc(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lf(e){return ac(e)||If(e)||vc(e)||Tc()}function Ff(e,t){var n=vn(e);if(zr){var r=zr(e);t&&(r=Ai(r).call(r,(function(t){return fi(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nf(e){for(var t=1;t3&&void 0!==arguments[3]&&arguments[3],A=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;if(!t)return e;t.lastIndex=0;for(var a=0,o=[];null!==(r=t.exec(e));){var s={begin:r.index,length:r[0].length};if(i&&r.index===a-A){var l,c=Lf(r),u=c[0],h=Bc(c).call(c,2);o.push({begin:s.begin+A,length:s.length-A,replacedText:n.apply(void 0,zA(l=[Bc(u).call(u,A),""]).call(l,xf(h)))})}else o.push(Nf(Nf({},s),{},{replacedText:n.apply(void 0,xf(r))}));a=t.lastIndex,t.lastIndex-=A}return t.lastIndex=0,function(e,t){if(!t.length)return e;var n=[],r=0;return nA(t).call(t,(function(i,A){n.push(Bc(e).call(e,r,i.begin)),n.push(i.replacedText),r=i.begin+i.length,A===t.length-1&&n.push(Bc(e).call(e,r))})),n.join("")}(e,o)}function Uf(e){var t=function(){if("undefined"==typeof Reflect||!hn)return!1;if(hn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(hn(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=WA(e);if(t){var i=WA(this).constructor;n=hn(r,arguments,i)}else n=r.apply(this,arguments);return $A(this,n)}}var Mf=function(e){bA(n,$u);var t=Uf(n);function n(){return hA(this,n),t.apply(this,arguments)}return pA(n,[{key:"toHtml",value:function(e,t,n,r){var i,A;return zA(i=zA(A="".concat(t,'')).call(i,r,"")}},{key:"makeHtml",value:function(e){return Au()?e.replace(this.RULE.reg,this.toHtml):Df(e,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var e={begin:Au()?"((?')).call(i,r,"")}},{key:"makeHtml",value:function(e){return Au()?e.replace(this.RULE.reg,this.toHtml):Df(e,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var e={begin:Au()?"((?')).call(i,r,"")}},{key:"makeHtml",value:function(e){return this.test(e)?Au()?e.replace(this.RULE.reg,this.toHtml):Df(e,this.RULE.reg,this.toHtml,!0,1):e}},{key:"rule",value:function(){var e={begin:Au()?"((?0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config;return hA(this,n),e=t.call(this,{config:r}),r?(e.needWhitespace=!!r.needWhitespace,e):$A(e)}return pA(n,[{key:"makeHtml",value:function(e){return this.test(e)?e.replace(this.RULE.reg,"$1$2"):e}},{key:"rule",value:function(){var e={};return(e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config.needWhitespace?Gf(Gf({},e),{},{begin:"(^|[\\s])\\~T\\~T",end:"\\~T\\~T(?=\\s|$)",content:"([\\w\\W]+?)"}):Gf(Gf({},e),{},{begin:"(^|[^\\\\])\\~T\\~T",end:"\\~T\\~T",content:"([\\w\\W]+?)"})).reg=new RegExp(e.begin+e.content+e.end,"g"),e}}]),n}();function Vf(e){var t=function(){if("undefined"==typeof Reflect||!hn)return!1;if(hn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(hn(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=WA(e);if(t){var i=WA(this).constructor;n=hn(r,arguments,i)}else n=r.apply(this,arguments);return $A(this,n)}}jA(Xf,"HOOK_NAME","strikethrough");var Wf=function(e){bA(n,$u);var t=Vf(n);function n(){return hA(this,n),t.apply(this,arguments)}return pA(n,[{key:"toHtml",value:function(e,t,n){var r;return zA(r="".concat(t,"")).call(r,n,"")}},{key:"makeHtml",value:function(e){return Au()?e.replace(this.RULE.reg,this.toHtml):Df(e,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var e={begin:Au()?"((?")).call(r,n,"")}},{key:"makeHtml",value:function(e){return Au()?e.replace(this.RULE.reg,this.toHtml):Df(e,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var e={begin:Au()?"((?=u.reach);B+=b.value.length,b=b.next){var C=b.value;if(t.length>e.length)return;if(!(C instanceof A)){var w,_=1;if(v){if(!(w=a(E,B,e,m))||w.index>=e.length)break;var S=w.index,k=w.index+w[0].length,Q=B;for(Q+=b.value.length;S>=Q;)Q+=(b=b.next).value.length;if(B=Q-=b.value.length,b.value instanceof A)continue;for(var I=b;I!==t.tail&&(Qu.reach&&(u.reach=N);var D=b.prev;if(L&&(D=l(t,D,L),B+=L.length),c(t,D,_),b=l(t,D,new A(h,g?i.tokenize(x,g):x,T,x)),F&&l(t,b,F),_>1){var U={cause:h+","+d,reach:N};o(e,t,n,b.prev,B,U),u&&U.reach>u.reach&&(u.reach=U.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function c(e,t,n){for(var r=t.next,i=0;i"+A.content+""},!e.document)return e.addEventListener?(i.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,A=n.code,a=n.immediateClose;e.postMessage(i.highlight(A,i.languages[r],r)),a&&e.close()}),!1),i):i;var u=i.util.currentScript();function h(){i.manual||i.highlightAll()}if(u&&(i.filename=u.src,u.hasAttribute("data-manual")&&(i.manual=!0)),!i.manual){var f=document.readyState;"loading"===f||"interactive"===f&&u&&u.defer?document.addEventListener("DOMContentLoaded",h):window.requestAnimationFrame?window.requestAnimationFrame(h):window.setTimeout(h,16)}return i}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=n),void 0!==t&&(t.Prism=n)}));function zf(e,t){var n=vn(e);if(zr){var r=zr(e);t&&(r=Ai(r).call(r,(function(t){return fi(e,t).enumerable}))),n.push.apply(n,r)}return n}function qf(e){var t=function(){if("undefined"==typeof Reflect||!hn)return!1;if(hn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(hn(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=WA(e);if(t){var i=WA(this).constructor;n=hn(r,arguments,i)}else n=r.apply(this,arguments);return $A(this,n)}}Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean,function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),r||"")}function r(e,t){for(var n=0;n>/g,(function(){return"(?:"+e+")"}));return e.replace(/<>/g,"[^\\s\\S]")}var i="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",A="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",o="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function s(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var l=s(A),c=RegExp(s(i+" "+A+" "+a+" "+o)),u=s(A+" "+a+" "+o),h=s(i+" "+A+" "+o),f=r(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),d=r(/\((?:[^()]|<>)*\)/.source,2),p=/@?\b[A-Za-z_]\w*\b/.source,g=t(/<<0>>(?:\s*<<1>>)?/.source,[p,f]),m=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[u,g]),v=/\[\s*(?:,\s*)*\]/.source,T=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,v]),y=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[f,d,v]),E=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[y]),b=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[E,m,v]),B={keyword:c,punctuation:/[<>()?,.:[\]]/},C=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,w=/"(?:\\.|[^\\"\r\n])*"/.source,_=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[_]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[w]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:B},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[p,b]),lookbehind:!0,inside:B},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[p]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,g]),lookbehind:!0,inside:B},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:B},{pattern:n(/(\bwhere\s+)<<0>>/.source,[p]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[T]),lookbehind:!0,inside:B},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[b,h,p]),inside:B}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[p]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[p]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[d]),lookbehind:!0,alias:"class-name",inside:B},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[b,m]),inside:B,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[b]),lookbehind:!0,inside:B,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[p,f]),inside:{function:n(/^<<0>>/.source,[p]),generic:{pattern:RegExp(f),alias:"class-name",inside:B}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,g,p,b,c.source,d,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,d]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(b),greedy:!0,inside:B},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var S=w+"|"+C,k=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[S]),Q=r(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[k]),2),I=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,x=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,Q]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[I,x]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[I]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[Q]),inside:e.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var L=/:[^}\r\n]+/.source,F=r(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[k]),2),N=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[F,L]),D=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[S]),2),U=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[D,L]);function M(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,L]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[N]),lookbehind:!0,greedy:!0,inside:M(N,F)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[U]),lookbehind:!0,greedy:!0,inside:M(U,D)}],char:{pattern:RegExp(C),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(Prism),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),Prism.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^$/i;var r={"included-cdata":{pattern://i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism),function(e){var t=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};e.languages.dart=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),e.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.dart}}},string:/[\s\S]+/}},string:void 0}),e.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),e.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(Prism),function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(t).forEach((function(n){var r=t[n],i=[];/^\w+$/.test(n)||i.push(/\w+/.exec(n)[0]),"diff"===n&&i.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}})),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}(Prism),function(e){var t=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,n=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,(function(){return t})),r=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,i=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,(function(){return r})),A={pattern:RegExp(r),greedy:!0},a={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function o(e,t){return e=e.replace(//g,(function(){return i})).replace(//g,(function(){return n})),RegExp(e,t)}e.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:o(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[A,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:o(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:o(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:o(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:a,string:A,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:a},e.languages.dockerfile=e.languages.docker}(Prism),Prism.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m},Prism.languages.glsl=Prism.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/}),Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Prism.languages.go["class-name"],Prism.languages["go-mod"]=Prism.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/},function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",i=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),A=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function a(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,(function(){return r})).replace(/<>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,(function(){return r})).replace(/<>/g,(function(){return"(?:"+i+"|"+A+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:a(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:a(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:a(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:a(A),lookbehind:!0,greedy:!0},number:{pattern:a(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(//g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),A=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+A+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+A+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+A+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:Prism.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},Prism.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n0)){var o=h(/^\{$/,/^\}$/);if(-1===o)continue;for(var s=n;s=0&&f(l,"variable-input")}}}}function c(e){return t[n+e]}function u(e,t){t=t||0;for(var n=0;n|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var t={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete e.languages.ruby.function;var n="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",r=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+n+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+r),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+r+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+n),greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+n),greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby}(Prism),function(e){var t={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,r="(?:[^\\\\-]|"+n.source+")",i=RegExp(r+"-"+r),A={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:i,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":t,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":t,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":A}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]||&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript,function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,i,A){if(n.language===r){var a=n.tokenStack=[];n.code=n.code.replace(i,(function(e){if("function"==typeof A&&!A(e))return e;for(var i,o=a.length;-1!==n.code.indexOf(i=t(r,o));)++o;return a[o]=e,i})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var i=0,A=Object.keys(n.tokenStack);!function a(o){for(var s=0;s=A.length);s++){var l=o[s];if("string"==typeof l||l.content&&"string"==typeof l.content){var c=A[i],u=n.tokenStack[c],h="string"==typeof l?l:l.content,f=t(r,c),d=h.indexOf(f);if(d>-1){++i;var p=h.substring(0,d),g=new e.Token(r,e.tokenize(u,n.grammar),"language-"+r,u),m=h.substring(d+f.length),v=[];p&&v.push.apply(v,a([p])),v.push(g),m&&v.push.apply(v,a([m])),"string"==typeof l?o.splice.apply(o,[s,1].concat(v)):l.content=v}}else l.content&&a(l.content)}return o}(n.tokens)}}}})}(Prism),Prism.languages.less=Prism.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),Prism.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}}),Prism.languages.scss=Prism.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),Prism.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),Prism.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),Prism.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),Prism.languages.scss.atrule.inside.rest=Prism.languages.scss,function(e){e.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:e.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:e.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:e.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:e.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:e.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:e.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:e.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var t=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],n={},r=0,i=t.length;r=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json,function(e){var t=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;e.languages.json5=e.languages.extend("json",{property:[{pattern:RegExp(t.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:t,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/},function(e){var t=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],n="(?:"+(t=t.map((function(e){return e.replace("$","\\$")}))).join("|")+")\\b";e.languages.mongodb=e.languages.extend("javascript",{}),e.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp("^(['\"])?"+n+"(?:\\1)?$")}}}),e.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},e.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"].join("|")+")\\b"),alias:"keyword"}})}(Prism),function(e){var t=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;e.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:t}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:t}},punctuation:/[{};]/}}(Prism),Prism.languages.objectivec=Prism.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Prism.languages.objectivec["class-name"],Prism.languages.objc=Prism.languages.objectivec,Prism.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},Prism.languages.pascal.asm.inside=Prism.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),Prism.languages.objectpascal=Prism.languages.pascal,function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,A=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:i,punctuation:A};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},o=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:o,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:o,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:i,punctuation:A}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){if(/<\?/.test(t.code)){e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(Prism),function(e){var t=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;e.languages.protobuf=e.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),e.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:t}},builtin:t,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})}(Prism),Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,Prism.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/},function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,n=0;n<2;n++)t=t.replace(//g,(function(){return t}));t=t.replace(//g,(function(){return/[^\s\S]/.source})),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(Prism),Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function A(e,t){return e=e.replace(//g,(function(){return n})).replace(//g,(function(){return r})).replace(//g,(function(){return i})),RegExp(e,t)}i=A(i).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=A(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:A(//.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:A(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},o=function(t){for(var n=[],r=0;r0&&n[n.length-1].tagName===a(i.content[0].content[1])&&n.pop():"/>"===i.content[i.content.length-1].content||n.push({tagName:a(i.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===i.type&&"{"===i.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===i.type&&"}"===i.content?n[n.length-1].openedBraces--:A=!0),(A||"string"==typeof i)&&n.length>0&&0===n[n.length-1].openedBraces){var s=a(i);r0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(s=a(t[r-1])+s,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",s,null,s)}i.content&&"string"!=typeof i.content&&o(i.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||o(e.tokens)}))}(Prism),function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(Prism),function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(Prism),function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],A=r.variable[1].inside,a=0;a]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=Prism.languages.swift})),Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/},Jf.manual=!0;var Zf={figure:"figure"},ed=function(e){bA(n,xh);var t=qf(n);function n(e){var r;e.externals;var i,A=e.config;(hA(this,n),r=t.call(this,{needCache:!0}),n.inlineCodeCache={},r.codeCache={},r.customLang=[],r.customParser={},r.wrap=A.wrap,r.lineNumber=A.lineNumber,r.copyCode=A.copyCode,r.editCode=A.editCode,r.changeLang=A.changeLang,r.mermaid=A.mermaid,r.indentedCodeBlock=void 0===A.indentedCodeBlock||A.indentedCodeBlock,r.INLINE_CODE_REGEX=/(`+)(.+?(?:\n.+?)*?)\1/g,A&&A.customRenderer)&&(r.customLang=Yu(i=vn(A.customRenderer)).call(i,(function(e){return e.toLowerCase()})),r.customParser=function(e){for(var t=1;t40&&(this.codeCache.length=0),!1)}},{key:"parseCustomLanguage",value:function(e,t,n){var r,i,A,a,o,s=this.customParser[e];if(!s||"function"!=typeof s.render)return!1;var l=s.render(t,n.sign,this.$engine,this.mermaid);if(!l)return!1;var c=Zf[s.constructor.TYPE]||"div";return zA(r=zA(i=zA(A=zA(a=zA(o="<".concat(c,' data-sign="')).call(o,n.sign,'" data-type="')).call(a,e,'" data-lines="')).call(A,n.lines,'">')).call(i,l,"")}},{key:"fillTag",value:function(e){var t=[];return Yu(e).call(e,(function(e){if(!e)return"";for(var n=e;t.length;){var r,i=t.pop();n=zA(r="".concat(i)).call(r,n)}var A=n.match(/|<\/span>/g),a=0;if(!A)return n;for(;A.length;){var o=A.pop();/<\/span>/.test(o)?a+=1:a?a-=1:t.unshift(o.match(//)[0])}for(var s=0;s");return n}))}},{key:"renderLineNumber",value:function(e){if(!this.lineNumber)return e;var t=e.split("\n");return t.pop(),t=this.fillTag(t),''.concat(t.join('\n'),"")}},{key:"isInternalCustomLangCovered",value:function(e){var t;return-1!==Ec(t=this.customLang).call(t,e)}},{key:"computeLines",value:function(e,t,n){var r=t,i=this.getLineCount(e,r);return{sign:this.$engine.md5(e.replace(/^\n+/,"")+i),lines:i}}},{key:"appendMermaid",value:function(e,t){var n=e,r=t;if(/^flow([ ](TD|LR))?$/i.test(r)&&!this.isInternalCustomLangCovered(r)){var i,A=r.match(/^flow(?:[ ](TD|LR))?$/i)||[];n=zA(i="graph ".concat(A[1]||"TD","\n")).call(i,n),r="mermaid"}return/^seq$/i.test(r)&&!this.isInternalCustomLangCovered(r)&&(n="sequenceDiagram\n".concat(n),r="mermaid"),"mermaid"===r&&(n=n.replace(/(^[\s]*)stateDiagram-v2\n/,"$1stateDiagram\n")),[n,r]}},{key:"wrapCode",value:function(e,t){var n,r;return zA(n=zA(r='')).call(n,e,"")}},{key:"renderCodeBlock",value:function(e,t,n,r){var i,A,a,o,s,l,c,u=e,h=t;return this.customHighlighter?u=this.customHighlighter(u,h):(h&&Jf.languages[h]||(h="javascript"),u=Jf.highlight(u,Jf.languages[h],h),u=this.renderLineNumber(u)),u=zA(i=zA(A=zA(a=zA(o=zA(s=zA(l=zA(c='\n
')).call(i,this.wrapCode(u,h),"
\n ")}},{key:"$getIndentedCodeReg",value:function(){return new RegExp("(?:^|\\n\\s*\\n)(?: {4}|\\t)"+"([\\s\\S]+?)"+"(?=$|\\n( {0,3}[^ \\t\\n]|\\n[^ \\t\\n]))","g")}},{key:"$getIndentCodeBlock",value:function(e){var t=this;return this.indentedCodeBlock?this.$recoverCodeInIndent(e).replace(this.$getIndentedCodeReg(),(function(e,n){var r,i,A=(e.match(/\n/g)||[]).length,a=t.$engine.md5(e),o=zA(r=zA(i='
')).call(r,Ch(n.replace(/\n( {4}|\t)/g,"\n")),"
");return Ju(e,t.pushCache(o,a,A))})):e}},{key:"$replaceCodeInIndent",value:function(e){return this.indentedCodeBlock?e.replace(this.$getIndentedCodeReg(),(function(e){return e.replace(/`/g,"~~~IndentCode")})):e}},{key:"$recoverCodeInIndent",value:function(e){return this.indentedCodeBlock?e.replace(this.$getIndentedCodeReg(),(function(e){return e.replace(/~~~IndentCode/g,"`")})):e}},{key:"beforeMakeHtml",value:function(e,t,n){var r=this,i=e;return i=(i=this.$replaceCodeInIndent(i)).replace(this.RULE.reg,(function(e,t,n,i,A,a){var o,s,l;function c(e){if(n){var t=new RegExp("^\n*",""),r=e.match(t)[0];e=r+n+e.replace(t,(function(e){return""}))}return e}var u=a,h=r.computeLines(e,t,a),f=h.sign,d=h.lines,p=r.$codeCache(f);if(p&&""!==p)return c(r.getCacheWithSpace(r.pushCache(p,f,d),e));u=(u=(u=r.$recoverCodeInIndent(u)).replace(/~D/g,"$")).replace(/~T/g,"~");var g=null!==(o=null==t||null===(s=t.match(/[ ]/g))||void 0===s?void 0:s.length)&&void 0!==o?o:0;if(g>0){var m=new RegExp("(^|\\n)[ ]{1,".concat(g,"}"),"g");u=u.replace(m,"$1")}if(n){var v=new RegExp("(^|\\n)".concat(n),"g");u=u.replace(v,"$1")}var T=wl(A).call(A);if(/^(math|katex|latex)$/i.test(T)&&!r.isInternalCustomLangCovered(T)){var y,E=e.match(/^\s*/g);return zA(y="".concat(E,"~D~D\n")).call(y,u,"~D~D")}var b=yc(r.appendMermaid(u,T),2);return u=b[0],T=b[1],-1!==Ec(l=r.customLang).call(l,T.toLowerCase())&&(p=r.parseCustomLanguage(T,u,{lines:d,sign:f}))&&""!==p?(r.$codeCache(f,p),r.getCacheWithSpace(r.pushCache(p,f,d),e)):(u=u.replace(/~X/g,"\\`"),p=(p=r.renderCodeBlock(u,T,f,d)).replace(/\\/g,"\\\\"),p=r.$codeCache(f,p),c(r.getCacheWithSpace(r.pushCache(p,f,d),e)))})),i=i.replace(mu(!0),(function(e){var t;return Yu(t=e.split("|")).call(t,(function(e){return r.makeInlineCode(e)})).join("|").replace(/`/g,"\\`")})),i=this.makeInlineCode(i),i=this.$getIndentCodeBlock(i)}},{key:"makeInlineCode",value:function(e){var t=this,r=e;return this.INLINE_CODE_REGEX.test(r)&&(r=(r=r.replace(/\\`/g,"~~not~inlineCode")).replace(this.INLINE_CODE_REGEX,(function(e,r,i){if("`"===wl(i).call(i))return e;var A=i.replace(/~~not~inlineCode/g,"\\`");A=(A=t.$replaceSpecialChar(A)).replace(/\\/g,"\\\\");var a="".concat(Ch(A),""),o=t.$engine.md5(a);return n.inlineCodeCache[o]=a,"~~CODE".concat(o,"$")})),r=r.replace(/~~not~inlineCode/g,"\\`")),r}},{key:"makeHtml",value:function(e){return e}},{key:"$replaceSpecialChar",value:function(e){var t=e.replace(/~Q/g,"\\~");return t=(t=(t=(t=t.replace(/~Y/g,"\\!")).replace(/~Z/g,"\\#")).replace(/~&/g,"\\&")).replace(/~K/g,"\\/")}},{key:"rule",value:function(){return vu()}},{key:"mounted",value:function(e){}}]),n}();function td(e){var t=function(){if("undefined"==typeof Reflect||!hn)return!1;if(hn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(hn(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=WA(e);if(t){var i=WA(this).constructor;n=hn(r,arguments,i)}else n=r.apply(this,arguments);return $A(this,n)}}jA(ed,"HOOK_NAME","codeBlock"),jA(ed,"inlineCodeCache",{});var nd=function(e){bA(n,xh);var t=td(n);function n(){return hA(this,n),t.apply(this,arguments)}return pA(n,[{key:"makeHtml",value:function(e){return e}},{key:"afterMakeHtml",value:function(e){var t=e;return vn(ed.inlineCodeCache).length>0&&(t=t.replace(/~~CODE([0-9a-zA-Z]+)\$/g,(function(e,t){return ed.inlineCodeCache[t]})),ed.inlineCodeCache={}),t}},{key:"rule",value:function(){var e={begin:"(`+)[ ]*",end:"[ ]*\\1",content:"(.+?(?:\\n.+?)*?)"};return e.reg=iu(e,"g"),e}}]),n}();jA(nd,"HOOK_NAME","inlineCode");var rd=r((function(e){!function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n>>6*(3-A)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,i=0;r>>6-2*i);return n}};e.exports=n}()})),id={utf8:{stringToBytes:function(e){return id.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(id.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n>>24)|4278255360&(o[f]<<24|o[f]>>>8);o[s>>>5]|=128<>>9<<4)]=s;var d=A._ff,p=A._gg,g=A._hh,m=A._ii;for(f=0;f>>0,c=c+T>>>0,u=u+y>>>0,h=h+E>>>0}return t.endian([l,c,u,h])};A._ff=function(e,t,n,r,i,A,a){var o=e+(t&n|~t&r)+(i>>>0)+a;return(o<>>32-A)+t},A._gg=function(e,t,n,r,i,A,a){var o=e+(t&r|n&~r)+(i>>>0)+a;return(o<>>32-A)+t},A._hh=function(e,t,n,r,i,A,a){var o=e+(t^n^r)+(i>>>0)+a;return(o<>>32-A)+t},A._ii=function(e,t,n,r,i,A,a){var o=e+(n^(t|~r))+(i>>>0)+a;return(o<>>32-A)+t},A._blocksize=16,A._digestsize=16,e.exports=function(e,n){if(null==e)throw new Error("Illegal argument "+e);var r=t.wordsToBytes(A(e,n));return n&&n.asBytes?r:n&&n.asString?i.bytesToString(r):t.bytesToHex(r)}}()})),ld={},cd=/^cherry-inner:\/\/([0-9a-f]+)$/i;var ud=function(){function e(){hA(this,e)}return pA(e,null,[{key:"isInnerLink",value:function(e){return cd.test(e)}},{key:"set",value:function(e){var t=sd(e);return ld[t]=e,"cherry-inner://".concat(t)}},{key:"get",value:function(e){var t,n=yc(null!==(t=e.match(cd))&&void 0!==t?t:[],2)[1];if(n)return ld[n]}},{key:"replace",value:function(e,t){var n,r=yc(null!==(n=e.match(cd))&&void 0!==n?n:[],2)[1];if(r)return ld[r]=t,e}},{key:"restoreAll",value:function(t){var n=t.replace(/cherry-inner:\/\/([0-9a-f]+)/gi,(function(t){return e.get(t)||t}));return n}},{key:"clear",value:function(){ld={}}}]),e}();function hd(e){var t=function(){if("undefined"==typeof Reflect||!hn)return!1;if(hn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(hn(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=WA(e);if(t){var i=WA(this).constructor;n=hn(r,arguments,i)}else n=r.apply(this,arguments);return $A(this,n)}}var fd=function(e){bA(n,$u);var t=hd(n);function n(e){var r,i=e.config,A=e.globalConfig;return hA(this,n),(r=t.call(this,{config:i})).urlProcessor=A.urlProcessor,r.target=i.target?'target="'.concat(i.target,'"'):i.openNewPage?'target="_blank"':"",r.rel=i.rel?'rel="'.concat(i.rel,'"'):"",r}return pA(n,[{key:"checkBrackets",value:function(e){for(var t=[],n="[".concat(e,"]"),r=function(e){return 1&Bc(n).call(n,0,e).match(/\\*$/)[0].length},i=n.length-1;n[i]&&(i!==n.length-1||!r(i));i--)if("]"!==n[i]||r(i)||t.push("]"),"["===n[i]&&!r(i)&&(t.pop(),!t.length))return{isValid:!0,coreText:Bc(n).call(n,i+1,n.length-1),extraLeadingChar:Bc(n).call(n,0,i)};return{isValid:!1,coreText:e,extraLeadingChar:""}}},{key:"toHtml",value:function(e,t,n,r,i,A,a){var o=void 0===r?"ref":"url",s="";if("ref"===o)return e;if("url"===o){var l,c=this.checkBrackets(n),u=c.isValid,h=c.coreText,f=c.extraLeadingChar;if(!u)return e;s=i&&""!==wl(i).call(i)?' title="'.concat(Ch(i.replace(/["']/g,"")),'"'):"",a?s+=' target="'.concat(a.replace(/{target\s*=\s*(.*?)}/,"$1"),'"'):this.target&&(s+=" ".concat(this.target));var d,p,g,m,v=wl(r).call(r).replace(/~1D/g,"~D"),T=h.replace(/~1D/g,"~D");return Sh(v)?(v=kh(v=this.urlProcessor(v,"link")),zA(d=zA(p=zA(g=zA(m="".concat(t+f,'")).call(d,T,"")):zA(l="".concat(t+f,"")).call(l,n,"")}return e}},{key:"toStdMarkdown",value:function(e){return e}},{key:"makeHtml",value:function(e){var t,n,r=e.replace(this.RULE.reg,(function(e){return e.replace(/~D/g,"~1D")}));Au()?r=r.replace(this.RULE.reg,ta(t=this.toHtml).call(t,this)):r=Df(r,this.RULE.reg,ta(n=this.toHtml).call(n,this),!0,1);return r=r.replace(this.RULE.reg,(function(e){return e.replace(/~1D/g,"~D")})),r}},{key:"rule",value:function(){var e={begin:Au()?"((?0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}});var pd=ni("String").repeat,gd=String.prototype,md=function(e){var t=e.repeat;return"string"==typeof e||e===gd||R(gd,e)&&t===gd.repeat?pd:t};function vd(e){var t=function(){if("undefined"==typeof Reflect||!hn)return!1;if(hn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(hn(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=WA(e);if(t){var i=WA(this).constructor;n=hn(r,arguments,i)}else n=r.apply(this,arguments);return $A(this,n)}}var Td=function(e){bA(n,$u);var t=vd(n);function n(){var e,r=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config;return hA(this,n),e=t.call(this,{config:r}),r?(e.allowWhitespace=!!r.allowWhitespace,e):$A(e)}return pA(n,[{key:"makeHtml",value:function(e,t){var n=function(e,n,r,i){var A,a,o,s=r.length%2==1?"em":"strong",l=Math.floor(r.length/2),c=md("").call("",l),u=md("").call("",l);return"em"===s&&(c+="",u="".concat(u)),zA(A=zA(a=zA(o="".concat(n)).call(o,c)).call(a,t(i).html.replace(/_/g,"~U"))).call(A,u)},r=e;return r=(r=this.allowWhitespace?(r=(r=r.replace(/(^|\n[\s]*)(\*)([^\s*](?:.*?)(?:(?:\n.*?)*?))\*/g,n)).replace(/(^|\n[\s]*)(\*{2,})((?:.*?)(?:(?:\n.*?)*?))\2/g,n)).replace(/([^\n*\\\s][ ]*)(\*+)((?:.*?)(?:(?:\n.*?)*?))\2/g,n):r.replace(this.RULE.asterisk.reg,n)).replace(this.RULE.underscore.reg,(function(e,n,r,i,A,a){var o,s,l;if(""===wl(i).call(i))return e;var c=r.length%2==1?"em":"strong",u=Math.floor(r.length/2),h=md("").call("",u),f=md("").call("",u),d=t(i).html;return"em"===c&&(h+="",f="".concat(f)),zA(o=zA(s=zA(l="".concat(n)).call(l,h)).call(s,d)).call(o,f)})),r.replace(/~U/g,"_")}},{key:"test",value:function(e,t){return this.RULE[t].reg&&this.RULE[t].reg.test(e)}},{key:"rule",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config,t=!!e&&!!e.allowWhitespace,n=function(e,t){var n,r,i,A="[^".concat(t,"\\s]");return e?"(?:.*?)(?:(?:\\n.*?)*?)":zA(n=zA(r=zA(i="(".concat(A,"|")).call(i,A,"(.*?(\n")).call(r,A,".*)*)")).call(n,A,")")},r={begin:"(^|[^\\\\])([*]+)",content:"(".concat(n(t,"*"),")"),end:"\\2"},i={begin:"(^|".concat(lu,")(_+)"),content:"(".concat(n(t,"_"),")"),end:"\\2(?=".concat(lu,"|$)")};return r.reg=iu(r,"g"),i.reg=iu(i,"g"),{asterisk:r,underscore:i}}}]),n}();function yd(e){var t=function(){if("undefined"==typeof Reflect||!hn)return!1;if(hn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(hn(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=WA(e);if(t){var i=WA(this).constructor;n=hn(r,arguments,i)}else n=r.apply(this,arguments);return $A(this,n)}}jA(Td,"HOOK_NAME","fontEmphasis");var Ed=function(e){bA(n,xh);var t=yd(n);function n(e){var r;return hA(this,n),(r=t.call(this)).initBrReg(e.globalConfig.classicBr),r}return pA(n,[{key:"makeHtml",value:function(e,t){var n=this;return this.test(e)?e.replace(this.RULE.reg,(function(e,r,i){var A;if(n.isContainsCache(e,!0))return e;var a,o=function(e){var r,i,A,a,o,s;if(""===wl(e).call(e))return"";var l=t(e),c=l.sign,u=l.html,h="p";new RegExp("<(".concat(Eh,")[^>]*>"),"i").test(u)&&(h="div");var f=n.getLineCount(e,e);return zA(r=zA(i=zA(A=zA(a=zA(o=zA(s="<".concat(h,' data-sign="')).call(s,c)).call(o,f,'" data-type="')).call(a,h,'" data-lines="')).call(A,f,'">')).call(i,n.$cleanParagraph(u),"")};return n.isContainsCache(i)?n.makeExcludingCached(zA(a="".concat(r)).call(a,i),o):o(zA(A="".concat(r)).call(A,i))})):e}},{key:"rule",value:function(){var e={begin:"(?:^|\\n)(\\n*)",end:"(?=\\s*$|\\n\\n)",content:"([\\s\\S]+?)"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}]),n}();jA(Ed,"HOOK_NAME","normalParagraph");et({target:"Reflect",stat:!0},{get:function e(t,n){var r,i,A=arguments.length<3?t:arguments[2];return Ke(t)===A?t[n]:(r=Qe.f(t,n))?function(e){return void 0!==e&&(ce(e,"value")||ce(e,"writable"))}(r)?r.value:void 0===r.get?void 0:b(r.get,A):U(i=Bi(t))?e(i,n,A):void 0}});var bd=M.Reflect.get,Bd=hi;function Cd(){return Cd="undefined"!=typeof Reflect&&bd?bd:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=WA(e)););return e}(e,t);if(r){var i=Bd(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},Cd.apply(this,arguments)}function wd(e){var t=function(){if("undefined"==typeof Reflect||!hn)return!1;if(hn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(hn(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=WA(e);if(t){var i=WA(this).constructor;n=hn(r,arguments,i)}else n=r.apply(this,arguments);return $A(this,n)}}var _d="atx",Sd="setext",kd=/[\s\-_]/,Qd=/[A-Za-z]/,Id=/[0-9]/,xd=function(e){bA(n,xh);var t=wd(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0,externals:void 0};r.externals;var i=r.config;return hA(this,n),(e=t.call(this,{needCache:!0})).strict=!i||!!i.strict,e.RULE=e.rule(),e.headerIDCache=[],e.headerIDCounter={},e.config=i||{},e}return pA(n,[{key:"$parseTitleText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"string"!=typeof e?"":e.replace(/<.*?>/g,"").replace(/</g,"<").replace(/>/g,">")}},{key:"$generateId",value:function(e){for(var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.length,r="",i=0;i255)try{r+=encodeURIComponent(A)}catch(e){}}return r}},{key:"generateIDNoDup",value:function(e){var t,n=e.replace(/</g,"<").replace(/>/g,">"),r=this.$generateId(n,!0),i=Ec(t=this.headerIDCache).call(t,r);if(-1!==i)this.headerIDCounter[i]+=1,r+="-".concat(this.headerIDCounter[i]+1);else{var A=this.headerIDCache.push(r);this.headerIDCounter[A-1]=1}return r}},{key:"$wrapHeader",value:function(e,t,n,r){var i,A,a,o,s,l,c,u=r(wl(e).call(e)),h=u.html,f=h.match(/\s+\{#([A-Za-z0-9-]+)\}$/);null!==f&&(h=h.substring(0,f.index),c=yc(f,2)[1]);var d=this.$parseTitleText(h);if(!c){c=this.generateIDNoDup(d.replace(/~fn#([0-9]+)#/g,""))}var p="safe_".concat(c),g=this.$engine.md5(zA(i=zA(A=zA(a="".concat(t,"-")).call(a,u.sign,"-")).call(A,c,"-")).call(i,n));return{html:[zA(o=zA(s=zA(l="'),this.$getAnchor(c),"".concat(h),"")].join(""),sign:"".concat(g)}}},{key:"$getAnchor",value:function(e){return"none"===(this.config.anchorStyle||"default")?"":'')}},{key:"beforeMakeHtml",value:function(e){var t=this,n=e;return this.test(n,_d)&&(n=n.replace(this.RULE[_d].reg,(function(e,n,r,i){return""===wl(i).call(i)?e:t.getCacheWithSpace(t.pushCache(e),e,!0)}))),this.test(n,Sd)&&(n=n.replace(this.RULE[Sd].reg,(function(e,n,r){return""===wl(r).call(r)||t.isContainsCache(r)?e:t.getCacheWithSpace(t.pushCache(e),e,!0)}))),n}},{key:"makeHtml",value:function(e,t){var n=this,r=this.restoreCache(e);return this.test(r,_d)&&(r=r.replace(this.RULE[_d].reg,(function(e,r,i,A){var a=zu(r,n.getLineCount(e.replace(/^\n+/,""))),o=A.replace(/\s+#+\s*$/,""),s=n.$wrapHeader(o,i.length,a,t),l=s.html,c=s.sign;return n.getCacheWithSpace(n.pushCache(l,c,a),e,!0)}))),this.test(r,Sd)&&(r=r.replace(this.RULE[Sd].reg,(function(e,r,i,A){if(n.isContainsCache(i))return e;var a=zu(r,n.getLineCount(e.replace(/^\n+/,""))),o="-"===A[0]?2:1,s=n.$wrapHeader(i,o,a,t),l=s.html,c=s.sign;return n.getCacheWithSpace(n.pushCache(l,c,a),e,!0)}))),r}},{key:"afterMakeHtml",value:function(e){var t=Cd(WA(n.prototype),"afterMakeHtml",this).call(this,e);return this.headerIDCache=[],this.headerIDCounter={},t}},{key:"test",value:function(e,t){return this.RULE[t].reg&&this.RULE[t].reg.test(e)}},{key:"rule",value:function(){var e={begin:"(?:^|\\n)(\\n*)",content:["(?:\\h*","(.+)",")\\n","(?:\\h*","([=]+|[-]+)",")"].join(""),end:"(?=$|\\n)"};e.reg=iu(e,"g",!0);var t={begin:"(?:^|\\n)(\\n*)(?:\\h*(#{1,6}))",content:"(.+?)",end:"(?=$|\\n)"};return this.strict&&(t.begin+="(?=\\h+)"),t.reg=iu(t,"g",!0),{setext:e,atx:t}}}]),n}();function Ld(e){var t=function(){if("undefined"==typeof Reflect||!hn)return!1;if(hn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(hn(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=WA(e);if(t){var i=WA(this).constructor;n=hn(r,arguments,i)}else n=r.apply(this,arguments);return $A(this,n)}}jA(xd,"HOOK_NAME","header");var Fd=function(e){bA(n,$u);var t=Ld(n);function n(){return hA(this,n),t.apply(this,arguments)}return pA(n,[{key:"rule",value:function(){return{begin:"",content:"",end:"",reg:new RegExp("")}}},{key:"beforeMakeHtml",value:function(e){return e.replace(/\\\n/g,"\\ \n")}},{key:"afterMakeHtml",value:function(e){var t=e.replace(/~Q/g,"~");return t=(t=(t=(t=(t=t.replace(/~X/g,"`")).replace(/~Y/g,"!")).replace(/~Z/g,"#")).replace(/~&/g,"&")).replace(/~K/g,"/")}}]),n}();jA(Fd,"HOOK_NAME","transfer");var Nd=o.TypeError,Dd=function(e){return function(t,n,r,i){ee(n);var A=se(t),a=L(A),o=Ut(A),s=e?o-1:0,l=e?-1:1;if(r<2)for(;;){if(s in a){i=a[s],s+=l;break}if(s+=l,e?s<0:o<=s)throw Nd("Reduce of empty array with no initial value")}for(;e?s>=0:o>s;s+=l)s in a&&(i=n(i,a[s],s,A));return i}},Ud={left:Dd(!1),right:Dd(!0)},Md="process"==Q(o.process),Od=Ud.left,Hd=Yi("reduce");et({target:"Array",proto:!0,forced:!Hd||!Md&&V>79&&V<83},{reduce:function(e){var t=arguments.length;return Od(this,e,t,t>1?arguments[1]:void 0)}});var Rd=ni("Array").reduce,Pd=Array.prototype,Kd=function(e){var t=e.reduce;return e===Pd||R(Pd,e)&&t===Pd.reduce?Rd:t};function Gd(e,t){var n=vn(e);if(zr){var r=zr(e);t&&(r=Ai(r).call(r,(function(t){return fi(e,t).enumerable}))),n.push.apply(n,r)}return n}function $d(e){for(var t=1;t')).call(i,E,"");return{html:zA(s="".concat(b)).call(s,y.html),sign:m+y.sign}}},{key:"$testHeadEmpty",value:function(e){var t=e.replace(/ /g,"").replace(/\s/g,"").replace(/(~CTH\$|~CTHU|~CTHL|~CTHR|~CTHC)/g,"");return(null==t?void 0:t.length)>0}},{key:"$renderTable",value:function(e,t,n,r){var i,A,a,o,s=this.$testHeadEmpty(t)?zA(i="~CTHD".concat(t,"~CTHD$~CTBD")).call(i,n,"~CTBD$"):"~CTBD".concat(n,"~CTBD$"),l=this.$engine.md5(s),c=s.replace(/~CTHD\$/g,"").replace(/~CTHD/g,"").replace(/~CTBD\$/g,"").replace(/~CTBD/g,"").replace(/~CTR\$/g,"").replace(/~CTR/g,"").replace(/[ ]?~CTH\$/g,"").replace(/[ ]?~CTD\$/g,"").replace(/~CT(D|H)(L|R|C|U)[ ]?/g,(function(t,n,r){var i="":' align="'.concat(e[r],'">')})).replace(/\\\|/g,"|");return{html:zA(A=zA(a=zA(o='
\n ')).call(A,c,"
"),sign:l}}},{key:"makeHtml",value:function(e,t){var n=this,r=e;return this.test(r,Wd)&&(r=r.replace(this.RULE[Wd].reg,(function(e,r){var i,A=n.getLineCount(e,r),a=Yu(i=wl(e).call(e).split(/\n/)).call(i,(function(e){var t;return wl(t=String(e)).call(t)})),o=n.$parseTable(a,t,A),s=o.html,l=o.sign;return n.getCacheWithSpace(n.pushCache(s,l,A),e)}))),this.test(r,Vd)&&(r=r.replace(this.RULE[Vd].reg,(function(e,r){var i,A=n.getLineCount(e,r),a=Yu(i=wl(e).call(e).split(/\n/)).call(i,(function(e){var t;return wl(t=String(e)).call(t)})),o=n.$parseTable(a,t,A),s=o.html,l=o.sign;return n.getCacheWithSpace(n.pushCache(s,l,A),e)}))),r}},{key:"test",value:function(e,t){return this.RULE[t].reg&&this.RULE[t].reg.test(e)}},{key:"rule",value:function(){return mu()}}]),n}();function Yd(){return"object"===("undefined"==typeof window?"undefined":GA(window))}function Jd(e){var t=function(){if("undefined"==typeof Reflect||!hn)return!1;if(hn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(hn(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=WA(e);if(t){var i=WA(this).constructor;n=hn(r,arguments,i)}else n=r.apply(this,arguments);return $A(this,n)}}jA(jd,"HOOK_NAME","table");var zd=function(e){bA(n,xh);var t=Jd(n);function n(e){var r;return hA(this,n),(r=t.call(this,{needCache:!0})).classicBr=eh("classicBr")?th():e.globalConfig.classicBr,r}return pA(n,[{key:"beforeMakeHtml",value:function(e){var t=this;return this.test(e)?e.replace(this.RULE.reg,(function(e,n,r){var i,A;if(0===r)return e;var a,o,s=null!==(i=null===(A=n.match(/\n/g))||void 0===A?void 0:A.length)&&void 0!==i?i:0,l="br".concat(s),c="";Yd()?c=t.classicBr?zA(a=''):zA(o='

 

'):c=t.classicBr?"":"
";var u=t.pushCache(c,l,s);return"\n\n".concat(u,"\n")})):e}},{key:"makeHtml",value:function(e,t){return e}},{key:"rule",value:function(){var e={begin:"(?:\\n)",end:"",content:"((?:\\h*\\n){2,})"};return e.reg=iu(e,"g",!0),e}}]),n}();function qd(e){var t=function(){if("undefined"==typeof Reflect||!hn)return!1;if(hn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(hn(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=WA(e);if(t){var i=WA(this).constructor;n=hn(r,arguments,i)}else n=r.apply(this,arguments);return $A(this,n)}}jA(zd,"HOOK_NAME","br");var Zd=function(e){bA(n,xh);var t=qd(n);function n(){return hA(this,n),t.call(this,{needCache:!0})}return pA(n,[{key:"beforeMakeHtml",value:function(e){var t=this;return e.replace(this.RULE.reg,(function(e,n){var r,i=(n.match(/\n/g)||[]).length+1,A="hr".concat(i);return Ju(e,t.pushCache(zA(r='
'),A))}))}},{key:"makeHtml",value:function(e,t){return e}},{key:"rule",value:function(){var e={begin:"(?:^|\\n)(\\n*)[ ]*",end:"(?=$|\\n)",content:"((?:-[ \\t]*){3,}|(?:\\*[ \\t]*){3,}|(?:_[ \\t]*){3,})"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}]),n}();jA(Zd,"HOOK_NAME","hr");var ep={processExtendAttributesInAlt:function(e){var t=e.match(/#([0-9]+(px|em|pt|pc|in|mm|cm|ex|%)|auto)/g);if(!t)return"";var n="",r=yc(t,2),i=r[0],A=r[1];return i&&(n=' width="'.concat(i.replace(/[ #]*/g,""),'"')),A&&(n+=' height="'.concat(A.replace(/[ #]*/g,""),'"')),n},processExtendStyleInAlt:function(e){var t=this.$getAlignment(e),n="",r=e.match(/#(border|shadow|radius|B|S|R)/g);if(r)for(var i=0;i')).call(h,wh(r||""),"");return zA(v="".concat(n)).call(v,o.videoWrapper?o.videoWrapper(i):C)}return t},ip=function(e){bA(n,$u);var t=np(n);function n(e){var r,i=e.config,A=e.globalConfig;return hA(this,n),(r=t.call(this,null)).urlProcessor=A.urlProcessor,r.extendMedia={tag:["video","audio"],replacer:{video:function(e,t,n,r,a,o){return rp("video",e,t,n,r,a,o,i,A)},audio:function(e,t,n,r,a,o){return rp("audio",e,t,n,r,a,o,i,A)}}},r.RULE=r.rule(r.extendMedia),r}return pA(n,[{key:"toHtml",value:function(e,t,n,r,i,A,a){var o=void 0===r?"ref":"url",s="";if("ref"===o)return e;if("url"===o){var l,c,u,h,f,d,p,g,m=ep.processExtendAttributesInAlt(n),v=ep.processExtendStyleInAlt(n),T=v.extendStyles,y=v.extendClasses;T&&(T=' style="'.concat(T,'" ')),y&&(y=' class="'.concat(y,'" ')),s=i&&""!==wl(i).call(i)?' title="'.concat(wh(i.replace(/["']/g,"")),'"'):"";var E,b="src",B=this.$engine.$cherry.options;if(B.callback&&B.callback.beforeImageMounted){var C=B.callback.beforeImageMounted(b,r);b=C.srcProp||b,E=C.src||r}var w=a?a.replace(/[{}]/g,"").replace(/([^=\s]+)=([^\s]+)/g,'$1="$2"').replace(/&/g,"&"):"";return zA(l=zA(c=zA(u=zA(h=zA(f=zA(d=zA(p=zA(g="".concat(t,"')).call(u,wh(n||")}return e}},{key:"toMediaHtml",value:function(e,t,n,r,i,A,a,o,s){var l,c;if(!this.extendMedia.replacer[n])return e;for(var u=arguments.length,h=new Array(u>9?u-9:0),f=9;f-1?"ul":"ol",t.listStyle=function(e){return/^[a-z]/.test(e)?"lower-greek":/^[一二三四五六七八九十]/.test(e)?"cjk-ideographic":/^I/.test(e)?"upper-roman":/^\+/.test(e)?"circle":/^\*/.test(e)?"square":"default"}(r),t.start=Number(r.replace(".",""))?Number(r.replace(".","")):1,A})):(t.type="blank",e)}var up=pA((function e(){hA(this,e),this.index=0,this.space=0,this.type="",this.start=1,this.listStyle="",this.strs=[],this.children=[],this.lines=0})),hp=function(e){bA(n,xh);var t=op(n);function n(e){var r,i=e.config;return hA(this,n),(r=t.call(this,{needCache:!0})).config=i||{},r.tree=[],r.emptyLines=0,r.indentSpace=Math.max(r.config.indentSpace,2),r}return pA(n,[{key:"addNode",value:function(e,t,n,r){"blank"===e.type?this.tree[r].strs.push(e.strs[0]):(this.tree[n].children.push(t),this.tree[t]=ap(ap({},e),{},{parent:n}))}},{key:"buildTree",value:function(e,t){var n=e.split("\n");this.tree=[],n.unshift("");for(var r=e.match(/\n*$/g)[0].length,i=0;iA.space;)a-=1;var o=A.space,s=this.tree[a].space;o".concat(s.strs.join("
"),"

");s.lines+=a.getLineCount(s.strs.join("\n"));var u=s.children.length?a.renderTree(n):"";e.lines+=s.lines,o+=s.lines;return/<\/span>/.test(c)&&(l.class+=" check-list-item"),zA(r=zA(i=zA(A="".concat(t,"")).call(i,c)).call(r,u,"")}),"");return void 0===e.parent&&(s["data-lines"]=0===e.index?o+this.emptyLines:o,s["data-sign"]=this.sign),t[0]&&"ol"===n&&(s.start=this.tree[t[0]].start),s.class="cherry-list__".concat(this.tree[t[0]].listStyle),zA(r=zA(i=zA(A="<".concat(n)).call(A,sp(s),">")).call(i,l,"")}},{key:"renderTree",value:function(e){var t=this,n=0,r=this.tree[e],i=r.children,A=Kd(i).call(i,(function(e,A,a){if(0===a)return e;if(t.tree[i[a]].type===t.tree[i[a-1]].type)return e;var o=t.renderSubTree(r,Bc(i).call(i,n,a),t.tree[i[a-1]].type);return n=a,e+o}),"");return A+(i.length?this.renderSubTree(r,Bc(i).call(i,n,i.length),this.tree[i[i.length-1]].type):"")}},{key:"toHtml",value:function(e,t){var n,r;this.emptyLines=null!==(n=null===(r=e.match(/^\n\n/))||void 0===r?void 0:r.length)&&void 0!==n?n:0;var i=e.replace(/~0$/g,"").replace(/^\n+/,"");this.buildTree(function(e){return e.replace(/^((?:|[\t ]+)[*+-]\s+)\[(\s|x)\]/gm,(function(e,t,n){var r,i=/\s/.test(n)?'':'';return zA(r="".concat(t)).call(r,i)}))}(i),t);var A=this.renderTree(0);return this.pushCache(A,this.sign,this.$getLineNum(e))}},{key:"$getLineNum",value:function(e){var t,n,r,i,A=null!==(t=null===(n=e.match(/^\n\n/))||void 0===n?void 0:n.length)&&void 0!==t?t:0;return null!==(r=null===(i=e.replace(/^\n+/,"").replace(/\n+$/,"\n").match(/\n/g))||void 0===i?void 0:i.length)&&void 0!==r?r:0+A}},{key:"makeHtml",value:function(e,t){var n=this,r="".concat(e,"~0");return this.test(r)&&(r=r.replace(this.RULE.reg,(function(e){return n.getCacheWithSpace(n.checkCache(e,t,n.$getLineNum(e)),e)}))),r=r.replace(/~0$/g,"")}},{key:"rule",value:function(){var e={begin:"(?:^|\n)(\n*)(([ ]{0,3}([*+-]|\\d+[.]|[a-z]\\.|[I一二三四五六七八九十]+\\.)[ \\t]+)",content:"([^\\r]+?)",end:"(~0|\\n{2,}(?=\\S)(?![ \\t]*(?:[*+-]|\\d+[.]|[a-z]\\.|[I一二三四五六七八九十]+\\.)[ \\t]+)))"};return e.reg=new RegExp(e.begin+e.content+e.end,"gm"),e}}]),n}();function fp(e){var t=function(){if("undefined"==typeof Reflect||!hn)return!1;if(hn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(hn(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=WA(e);if(t){var i=WA(this).constructor;n=hn(r,arguments,i)}else n=r.apply(this,arguments);return $A(this,n)}}function dp(e){for(var t=/^(\t|[ ]{1,4})/,n=e,r=0;t.test(n);)n=n.replace(/^(\t|[ ]{1,4})/g,""),r+=1;return r}jA(hp,"HOOK_NAME","list");var pp=function(e){bA(n,xh);var t=fp(n);function n(){return hA(this,n),t.call(this,{needCache:!0})}return pA(n,[{key:"handleMatch",value:function(e,t){var n=this;return e.replace(this.RULE.reg,(function(e,r,i){for(var A,a,o=t(i),s=o.sign,l=o.html,c=n.signWithCache(l)||s,u=n.getLineCount(e,r),h=/^(([ \t]{0,3}([*+-]|\d+[.]|[a-z]\.|[I一二三四五六七八九十]+\.)[ \t]+)([^\r]+?)($|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.]|[a-z]\.|[I一二三四五六七八九十]+\.)[ \t]+)))/,f=dp(r),d=l.split("\n"),p=/^[>\s]+/,g=/>/g,m=1,v=0,T=zA(A=zA(a='
'),y=0;d[y];y++){if(0!==y){var E=dp(d[y]);if(E<=f&&h.test(d[y]))break;f=E}var b=d[y].replace(p,(function(e){var t=e.match(g);return v=t&&t.length>m?t.length:m,""}));if(m===v&&0!==y&&(T+="
"),m").call("
",v-m),m=v;T+=b}return T+=md("
").call("
",m),n.getCacheWithSpace(n.pushCache(T,c,u),e)}))}},{key:"makeHtml",value:function(e,t){return this.test(e)?this.handleMatch(e,t):e}},{key:"rule",value:function(){var e={begin:"(?:^|\\n)(\\s*)",content:["(",">(?:.+?\\n(?![*+-]|\\d+[.]|[a-z]\\.))(?:>*.+?\\n(?![*+-]|\\d+[.]|[a-z]\\.))*(?:>*.+?)","|",">(?:.+?)",")"].join(""),end:"(?=(\\n)|$)"};return e.reg=iu(e,"g"),e}}]),n}();function gp(e){var t=function(){if("undefined"==typeof Reflect||!hn)return!1;if(hn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(hn(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=WA(e);if(t){var i=WA(this).constructor;n=hn(r,arguments,i)}else n=r.apply(this,arguments);return $A(this,n)}}jA(pp,"HOOK_NAME","blockquote");var mp=function(e){bA(n,$u);var t=gp(n);function n(e){var r,i=e.config,A=e.globalConfig;return hA(this,n),(r=t.call(this,{config:i})).urlProcessor=A.urlProcessor,r.enableShortLink=!!i.enableShortLink,r.shortLinkLength=i.shortLinkLength,r.target=i.target?'target="'.concat(i.target,'"'):i.openNewPage?'target="_blank"':"",r.rel=i.rel?'rel="'.concat(i.rel,'"'):"",r}return pA(n,[{key:"isLinkInHtmlAttribute",value:function(e,t,n){for(var r,i=new RegExp(["<","([a-zA-Z][a-zA-Z0-9-]*)","(",["\\s+[a-zA-Z_:][a-zA-Z0-9_.:-]*","(",["\\s*=\\s*","(",["([^\\s\"'=<>`]+)","('[^']*')",'("[^"]*")'].join("|"),")"].join(""),")?"].join(""),")*","\\s*[/]?>"].join(""),"g");null!==(r=i.exec(e))&&!(r.index>t+n);)if(r.index=t+n)return!0;return!1}},{key:"isLinkInATag",value:function(e,t,n){for(var r,i=/[^<]*<\/a>/g;null!==(r=i.exec(e))&&!(r.index>t+n);)if(r.index=t+n)return!0;return!1}},{key:"makeHtml",value:function(e,t){var n=this;return this.test(e)&&(cu.test(e)||hu.test(e))?e.replace(this.RULE.reg,(function(e,t,r,i,A,a,o){var s,l,c;if(n.isLinkInHtmlAttribute(o,a,r.length+i.length)||n.isLinkInATag(o,a,r.length+i.length))return e;var u=r.toLowerCase(),h="",f="",d=!0;if(("<"!==t&&"<"!==t||">"!==A&&">"!==A)&&(h=t,f=A,d=!1),""===wl(i).call(i)||!d&&""===u&&!/www\./.test(i))return e;switch(u){case"javascript:":return e;case"mailto:":var p,g,m,v,T,y;return uu.test(i)?zA(p=zA(g=zA(m=zA(v=zA(T="".concat(h,'")).call(g,wh(i),"")).call(p,f):e;case"":var E,b,B,C,w,_,S,k,Q,I;if(h===f||!d)return uu.test(i)?zA(E=zA(b=zA(B=zA(C=zA(w="".concat(h,'")).call(b,wh(i),"")).call(E,f):du.test(i)?zA(_=zA(S="".concat(h)).call(S,n.renderLink("//".concat(i),i))).call(_,f):e;if(d)return uu.test(i)?zA(k=zA(Q=zA(I='")).call(k,wh(i),""):pu.test(i)||du.test(i)?n.renderLink(i):e;default:return pu.test(i)?zA(s=zA(l="".concat(h)).call(l,n.renderLink(zA(c="".concat(u)).call(c,i)))).call(s,f):e}return e})):e}},{key:"rule",value:function(){var e,t={begin:"(?)"};return t.reg=iu(t,"ig"),t}},{key:"renderLink",value:function(e,t){var n,r,i,A,a=t;if("string"!=typeof a)if(this.enableShortLink){var o,s=e.replace(/^https?:\/\//i,"");a=zA(o="".concat(s.substring(0,this.shortLinkLength))).call(o,s.length>this.shortLinkLength?"...":"")}else a=e;var l=this.urlProcessor(e,"autolink");return zA(n=zA(r=zA(i=zA(A="')).call(n,wh(a).replace(/_/g,"\\_"),"")}}]),n}();function vp(){var e,t,n,r;Yd()&&(this.katex=null!==(e=null===(t=this.externals)||void 0===t?void 0:t.katex)&&void 0!==e?e:window.katex,this.MathJax=null!==(n=null===(r=this.externals)||void 0===r?void 0:r.MathJax)&&void 0!==n?n:window.MathJax)}jA(mp,"HOOK_NAME","autoLink");var Tp=["&","<",">",'"',"'"],yp=function(e){var t=e.replace(new RegExp(su,"g"),(function(e){return-1!==Ec(Tp).call(Tp,e)?Ch(e):"\\".concat(e)}));return t};function Ep(e){var t=function(){if("undefined"==typeof Reflect||!hn)return!1;if(hn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(hn(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=WA(e);if(t){var i=WA(this).constructor;n=hn(r,arguments,i)}else n=r.apply(this,arguments);return $A(this,n)}}var bp=function(e){bA(n,xh);var t=Ep(n);function n(e){var r,i,A=e.config;return hA(this,n),jA(gA(i=t.call(this,{needCache:!0})),"engine","MathJax"),jA(gA(i),"katex",void 0),jA(gA(i),"MathJax",void 0),i.engine=Yd()?null!==(r=A.engine)&&void 0!==r?r:"MathJax":"node",i}return pA(n,[{key:"toHtml",value:function(e,t,n,r){var i,A,a;ta(vp).call(vp,this)("engine");var o=e.replace(/^[ \f\r\t\v]*/,"").replace(/\s*$/,""),s=t.replace(/^[ \f\r\t\v]*\n/,""),l=this.$engine.md5(e),c=this.getLineCount(o,s);if(/\n/.test(t)||(c-=1),/\n\s*$/.test(e)||(c-=1),c=c>0?c:0,"katex"===this.engine){var u,h,f=this.katex.renderToString(r,{throwOnError:!1,displayMode:!0}),d=zA(u=zA(h='
')).call(u,f,"
");return n+this.getCacheWithSpace(this.pushCache(d,l,c),e)}if(null!==(i=this.MathJax)&&void 0!==i&&i.tex2svg){var p,g,m=Xc(this.MathJax.tex2svg(r),!0),v=zA(p=zA(g='
')).call(p,m,"
");return n+this.getCacheWithSpace(this.pushCache(v,l,c),e)}var T=zA(A=zA(a='
$$')).call(A,yp(r),"$$
");return n+this.getCacheWithSpace(this.pushCache(T,l,c),e)}},{key:"beforeMakeHtml",value:function(e){var t,n;return Au()?e.replace(this.RULE.reg,ta(n=this.toHtml).call(n,this)):Df(e,this.RULE.reg,ta(t=this.toHtml).call(t,this),!0,1)}},{key:"makeHtml",value:function(e){return e}},{key:"rule",value:function(){var e={begin:Au()?"(\\s*)((?')).call(c,h,"
");return this.pushCache(f,xh.IN_PARAGRAPH_CACHE_KEY_PREFIX+l)}if(null!==(i=this.MathJax)&&void 0!==i&&i.tex2svg){var d,p,g=Xc(this.MathJax.tex2svg(n,{em:12,ex:6,display:!1}),!0),m=zA(d=zA(p="".concat(t,'')).call(d,g,"");return this.pushCache(m,xh.IN_PARAGRAPH_CACHE_KEY_PREFIX+l)}var v=zA(A=zA(a="".concat(t,'$')).call(A,yp(n),"$");return this.pushCache(v,xh.IN_PARAGRAPH_CACHE_KEY_PREFIX+l)}},{key:"beforeMakeHtml",value:function(e){var t=this,n=e;return n=n.replace(mu(!0),(function(e){var n;return Yu(n=e.split("|")).call(n,(function(e){return t.makeInlineMath(e)})).join("|").replace(/\\~D/g,"~D").replace(/~D/g,"\\~D")})),this.makeInlineMath(n)}},{key:"makeInlineMath",value:function(e){var t,n;return this.test(e)?Au()?e.replace(this.RULE.reg,ta(n=this.toHtml).call(n,this)):Df(e,this.RULE.reg,ta(t=this.toHtml).call(t,this),!0,1):e}},{key:"makeHtml",value:function(e){return e}},{key:"rule",value:function(){var e={begin:Au()?"((?1?arguments[1]:void 0,n),A=r>2?arguments[2]:void 0,a=void 0===A?n:Ft(A,n);a>i;)t[i++]=e;return t}});var wp=ni("Array").fill,_p=Array.prototype,Sp=function(e){var t=e.fill;return e===_p||R(_p,e)&&t===_p.fill?wp:t};function kp(e){var t=function(){if("undefined"==typeof Reflect||!hn)return!1;if(hn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(hn(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=WA(e);if(t){var i=WA(this).constructor;n=hn(r,arguments,i)}else n=r.apply(this,arguments);return $A(this,n)}}function Qp(e){return e}var Ip={tocStyle:"plain",tocNodeClass:"toc-li",tocContainerClass:"toc",tocTitleClass:"toc-title",linkProcessor:Qp},xp='

 

',Lp=function(e){bA(n,xh);var t=kp(n);function n(e){var r,i;e.externals;var A=e.config;return hA(this,n),jA(gA(i=t.call(this,{needCache:!0})),"tocStyle","nested"),jA(gA(i),"tocNodeClass","toc-li"),jA(gA(i),"tocContainerClass","toc"),jA(gA(i),"tocTitleClass","toc-title"),jA(gA(i),"linkProcessor",Qp),jA(gA(i),"baseLevel",1),jA(gA(i),"isFirstTocToken",!0),jA(gA(i),"allowMultiToc",!1),nA(r=vn(Ip)).call(r,(function(e){i[e]=A[e]||Ip[e]})),i}return pA(n,[{key:"beforeMakeHtml",value:function(e){var t=this,n=e;return this.test(n,"extend")&&(n=n.replace(this.RULE.extend.reg,(function(e,n,r){var i;if(!t.allowMultiToc&&!t.isFirstTocToken)return zA(i="\n".concat(n)).call(i,xp);var A=t.pushCache(e);return t.isFirstTocToken=!1,Ju(e,A)}))),this.test(n,"standard")&&(n=n.replace(this.RULE.standard.reg,(function(e,n,r){var i;return t.allowMultiToc||t.isFirstTocToken?(t.isFirstTocToken=!1,Ju(e,t.pushCache(e))):zA(i="\n".concat(n)).call(i,xp)}))),n}},{key:"makeHtml",value:function(e){return e}},{key:"$makeLevel",value:function(e){for(var t="",n=this.baseLevel;n2&&void 0!==arguments[2])||arguments[2],s="";t&&(s=this.$makeLevel(e.level));var l=this.linkProcessor("#".concat(e.id).replace(/safe_/g,""));return zA(n=zA(r=zA(i=zA(A=zA(a='
  • ')).call(a,s,'')).call(r,e.text,"")).call(n,o?"
  • ":"")}},{key:"$makePlainToc",value:function(e){var t=this,n=Yu(e).call(e,(function(e){return t.$makeTocItem(e,!0)}));return n.join("")}},{key:"$makeNestedToc",value:function(e){var t,n,r=this,i=0,A=Sp(t=new Array(7)).call(t,!1),a=Sp(n=new Array(7)).call(n,!1),o="";nA(e).call(e,(function(e){var t=e.level;if(0===i){for(var n=t;n>=r.baseLevel;n--)o+="
      ",a[n]=!0;return o+=r.$makeTocItem(e,!1,!1),A[t]=!0,void(i=t)}if(t=t;s--)A[s]&&(o+="",A[s]=!1),a[s]&&s>t&&(o+="
    ",a[s]=!1);A[t]=!0,o+=r.$makeTocItem(e,!1,!1),i=t}else if(t===i)A[i]&&(o+=""),o+=r.$makeTocItem(e,!1,!1),A[t]=!0,a[t]=!0;else{for(var l=i+1;l<=t;l++)o+="
      ",a[l]=!0;A[t]=!0,o+=r.$makeTocItem(e,!1,!1),i=t}}));for(var s=i;s>=this.baseLevel;s--)A[s]&&(o+="",A[s]=!1),a[s]&&(o+="
    ",a[s]=!1);return o}},{key:"$makeToc",value:function(e,t,n){var r,i,A,a=zu(n,1),o=zA(r=zA(i=zA(A='');return o+='

    目录

    '),e.length<=0?"":(this.baseLevel=Math.min.apply(Math,xf(Yu(e).call(e,(function(e){return e.level})))),"nested"===this.tocStyle?o+=this.$makeNestedToc(e):o+=this.$makePlainToc(e),o+="
    ")}},{key:"afterMakeHtml",value:function(e){var t=this,r=Cd(WA(n.prototype),"afterMakeHtml",this).call(this,e),i=[],A="";return r.replace(/]*? id="([^"]+?)"[^>]*?>(?:|)(.+?)<\/h\1>/g,(function(e,t,n,r){var a,o=r.replace(/~fn#[0-9]+#/g,"");i.push({level:+t,id:n,text:o}),A+=zA(a="".concat(t)).call(a,n)})),A=this.$engine.md5(A),r=r.replace(/(?:^|\n)(\[\[|\[|【【)(toc|TOC)(\]\]|\]|】】)([<~])/,(function(e){return e.replace(/(\]\]|\]|】】)([<~])/,"$1\n$2")})),r=(r=r.replace(this.RULE.extend.reg,(function(e,n){return t.$makeToc(i,A,n)}))).replace(this.RULE.standard.reg,(function(e,n){return t.$makeToc(i,A,n)})),this.isFirstTocToken=!0,r}},{key:"test",value:function(e,t){return!!this.RULE[t].reg&&this.RULE[t].reg.test(e)}},{key:"rule",value:function(){var e={begin:"(?:^|\\n)(\\n*)",end:"(?=$|\\n)",content:"[ ]*((?:【【|\\[\\[)(?:toc|TOC)(?:\\]\\]|】】))[ ]*"};e.reg=new RegExp(e.begin+e.content+e.end,"g");var t={begin:"(?:^|\\n)(\\n*)",end:"(?=$|\\n)",content:"[ ]*(\\[(?:toc|TOC)\\])[ ]*"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),{extend:e,standard:t}}}]),n}();function Fp(e){var t=function(){if("undefined"==typeof Reflect||!hn)return!1;if(hn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(hn(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=WA(e);if(t){var i=WA(this).constructor;n=hn(r,arguments,i)}else n=r.apply(this,arguments);return $A(this,n)}}jA(Lp,"HOOK_NAME","toc");var Np=function(e){bA(n,xh);var t=Fp(n);function n(e){var r;return e.externals,e.config,hA(this,n),(r=t.call(this)).footnoteCache={},r.footnoteMap={},r.footnote=[],r}return pA(n,[{key:"$cleanCache",value:function(){this.footnoteCache={},this.footnoteMap={},this.footnote=[]}},{key:"pushFootnoteCache",value:function(e,t){this.footnoteCache[e]=t}},{key:"getFootnoteCache",value:function(e){return this.footnoteCache[e]||null}},{key:"pushFootNote",value:function(e,t){var n,r,i,A,a,o;if(this.footnoteMap[e])return this.footnoteMap[e];var s=this.footnote.length+1,l={};l.fn=zA(n=zA(r=zA(i='[')).call(n,s,"]"),l.fnref=zA(A=zA(a=zA(o='[')).call(A,s,"]"),l.num=s,l.note=wl(t).call(t),this.footnote.push(l);var c="\0~fn#".concat(s-1,"#\0");return this.footnoteMap[e]=c,c}},{key:"getFootNote",value:function(){return this.footnote}},{key:"formatFootNote",value:function(){var e,t=this.getFootNote();if(t.length<=0)return"";var n=Yu(t).call(t,(function(e){var t;return zA(t='
    \n'.concat(e.fnref)).call(t,e.note,"\n
    ")})).join(""),r=this.$engine.md5(n);return n=zA(e='
    脚注
    ')).call(e,n,"
    ")}},{key:"beforeMakeHtml",value:function(e){var t=this,n=e;return this.test(n)&&(n=n.replace(this.RULE.reg,(function(e,n,r,i){return t.pushFootnoteCache(r,i),(e.match(/\n/g)||[]).join("")})),n=n.replace(/\[\^([^\]]+?)\](?!:)/g,(function(e,n){var r=t.getFootnoteCache(n);return r?t.pushFootNote(n,r):e})),n+=this.formatFootNote()),n}},{key:"makeHtml",value:function(e,t){return e}},{key:"afterMakeHtml",value:function(e){var t=this.getFootNote(),n=e.replace(/\0~fn#([0-9]+)#\0/g,(function(e,n){return t[n].fn}));return this.$cleanCache(),n}},{key:"rule",value:function(){var e={begin:"(^|\\n)[ \t]*",content:["\\[\\^([^\\]]+?)\\]:\\h*","([\\s\\S]+?)"].join(""),end:"(?=\\s*$|\\n\\n)"};return e.reg=iu(e,"g",!0),e}}]),n}();function Dp(e){var t=function(){if("undefined"==typeof Reflect||!hn)return!1;if(hn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(hn(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=WA(e);if(t){var i=WA(this).constructor;n=hn(r,arguments,i)}else n=r.apply(this,arguments);return $A(this,n)}}jA(Np,"HOOK_NAME","footnote");var Up=function(e){bA(n,xh);var t=Dp(n);function n(e){var r;return e.externals,e.config,hA(this,n),(r=t.call(this)).commentCache={},r}return pA(n,[{key:"$cleanCache",value:function(){this.commentCache={}}},{key:"pushCommentReferenceCache",value:function(e,t){var n,r=Lf(t.split(/[ ]+/g)),i=r[0],A=Bc(r).call(r,1),a=ud.set(i);this.commentCache["".concat(e).toLowerCase()]=zA(n=[a]).call(n,xf(A)).join(" ")}},{key:"getCommentReferenceCache",value:function(e){return this.commentCache["".concat(e).toLowerCase()]||null}},{key:"beforeMakeHtml",value:function(e){var t=this,n=e;if(this.test(n)){n=n.replace(this.RULE.reg,(function(e,n,r,i){var A;return t.pushCommentReferenceCache(r,i),(null!==(A=e.match(/\n/g))&&void 0!==A?A:[]).join("")}));n=n.replace(/(\[[^\]\n]+?\])?(?:\[([^\]\n]+?)\])/g,(function(e,n,r){var i,A,a=t.getCommentReferenceCache(r);return a?n?zA(A="".concat(n,"(")).call(A,a,")"):zA(i="[".concat(r,"](")).call(i,a,")"):e})),this.$cleanCache()}return n}},{key:"makeHtml",value:function(e,t){return e}},{key:"afterMakeHtml",value:function(e){return ud.restoreAll(e)}},{key:"rule",value:function(){var e={begin:"(^|\\n)[ \t]*",content:["\\[([^^][^\\]]*?)\\]:\\h*","([^\\n]+?)"].join(""),end:"(?=$|\\n)"};return e.reg=iu(e,"g",!0),e}}]),n}();jA(Up,"HOOK_NAME","commentReference");var Mp=rr.some,Op=Yi("some");et({target:"Array",proto:!0,forced:!Op},{some:function(e){return Mp(this,e,arguments.length>1?arguments[1]:void 0)}});var Hp=ni("Array").some,Rp=Array.prototype,Pp=function(e){var t=e.some;return e===Rp||R(Rp,e)&&t===Rp.some?Hp:t},Kp=r((function(e,t){e.exports=function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function r(e,i,A){return r=n()?Reflect.construct:function(e,n,r){var i=[null];i.push.apply(i,n);var A=new(Function.bind.apply(e,i));return r&&t(A,r.prototype),A},r.apply(null,arguments)}function i(e){return A(e)||a(e)||o(e)||l()}function A(e){if(Array.isArray(e))return s(e)}function a(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function o(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?n-1:0),i=1;i/gm),J=g(/\${[\w\W]*}/gm),z=g(/^data-[\-\w.\u00B7-\uFFFF]/),q=g(/^aria-[\-\w]+$/),Z=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ee=g(/^(?:\w+script|data):/i),te=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ne=g(/^html$/i),re=function(){return"undefined"==typeof window?null:window},ie=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,i="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(i)&&(r=n.currentScript.getAttribute(i));var A="dompurify"+(r?"#"+r:"");try{return t.createPolicy(A,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+A+" could not be created."),null}};function Ae(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:re(),n=function(e){return Ae(e)};if(n.version="2.4.3",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,A=t.document,a=t.DocumentFragment,o=t.HTMLTemplateElement,s=t.Node,l=t.Element,c=t.NodeFilter,u=t.NamedNodeMap,h=void 0===u?t.NamedNodeMap||t.MozNamedAttrMap:u,f=t.HTMLFormElement,d=t.DOMParser,g=t.trustedTypes,m=l.prototype,v=U(m,"cloneNode"),T=U(m,"nextSibling"),y=U(m,"childNodes"),L=U(m,"parentNode");if("function"==typeof o){var F=A.createElement("template");F.content&&F.content.ownerDocument&&(A=F.content.ownerDocument)}var ae=ie(g,r),oe=ae?ae.createHTML(""):"",se=A,le=se.implementation,ce=se.createNodeIterator,ue=se.createDocumentFragment,he=se.getElementsByTagName,fe=r.importNode,de={};try{de=D(A).documentMode?A.documentMode:{}}catch(e){}var pe={};n.isSupported="function"==typeof L&&le&&void 0!==le.createHTMLDocument&&9!==de;var ge,me,ve=j,Te=Y,ye=J,Ee=z,be=q,Be=ee,Ce=te,we=Z,_e=null,Se=N({},[].concat(i(M),i(O),i(H),i(P),i(G))),ke=null,Qe=N({},[].concat(i($),i(X),i(V),i(W))),Ie=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),xe=null,Le=null,Fe=!0,Ne=!0,De=!1,Ue=!1,Me=!1,Oe=!1,He=!1,Re=!1,Pe=!1,Ke=!1,Ge=!0,$e=!1,Xe="user-content-",Ve=!0,We=!1,je={},Ye=null,Je=N({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ze=null,qe=N({},["audio","video","img","source","image","track"]),Ze=null,et=N({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tt="http://www.w3.org/1998/Math/MathML",nt="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml",it=rt,At=!1,at=null,ot=N({},[tt,nt,rt],w),st=["application/xhtml+xml","text/html"],lt="text/html",ct=null,ut=A.createElement("form"),ht=function(e){return e instanceof RegExp||e instanceof Function},ft=function(t){ct&&ct===t||(t&&"object"===e(t)||(t={}),t=D(t),ge=ge=-1===st.indexOf(t.PARSER_MEDIA_TYPE)?lt:t.PARSER_MEDIA_TYPE,me="application/xhtml+xml"===ge?w:C,_e="ALLOWED_TAGS"in t?N({},t.ALLOWED_TAGS,me):Se,ke="ALLOWED_ATTR"in t?N({},t.ALLOWED_ATTR,me):Qe,at="ALLOWED_NAMESPACES"in t?N({},t.ALLOWED_NAMESPACES,w):ot,Ze="ADD_URI_SAFE_ATTR"in t?N(D(et),t.ADD_URI_SAFE_ATTR,me):et,ze="ADD_DATA_URI_TAGS"in t?N(D(qe),t.ADD_DATA_URI_TAGS,me):qe,Ye="FORBID_CONTENTS"in t?N({},t.FORBID_CONTENTS,me):Je,xe="FORBID_TAGS"in t?N({},t.FORBID_TAGS,me):{},Le="FORBID_ATTR"in t?N({},t.FORBID_ATTR,me):{},je="USE_PROFILES"in t&&t.USE_PROFILES,Fe=!1!==t.ALLOW_ARIA_ATTR,Ne=!1!==t.ALLOW_DATA_ATTR,De=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ue=t.SAFE_FOR_TEMPLATES||!1,Me=t.WHOLE_DOCUMENT||!1,Re=t.RETURN_DOM||!1,Pe=t.RETURN_DOM_FRAGMENT||!1,Ke=t.RETURN_TRUSTED_TYPE||!1,He=t.FORCE_BODY||!1,Ge=!1!==t.SANITIZE_DOM,$e=t.SANITIZE_NAMED_PROPS||!1,Ve=!1!==t.KEEP_CONTENT,We=t.IN_PLACE||!1,we=t.ALLOWED_URI_REGEXP||we,it=t.NAMESPACE||rt,t.CUSTOM_ELEMENT_HANDLING&&ht(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ie.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ht(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ie.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ie.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ue&&(Ne=!1),Pe&&(Re=!0),je&&(_e=N({},i(G)),ke=[],!0===je.html&&(N(_e,M),N(ke,$)),!0===je.svg&&(N(_e,O),N(ke,X),N(ke,W)),!0===je.svgFilters&&(N(_e,H),N(ke,X),N(ke,W)),!0===je.mathMl&&(N(_e,P),N(ke,V),N(ke,W))),t.ADD_TAGS&&(_e===Se&&(_e=D(_e)),N(_e,t.ADD_TAGS,me)),t.ADD_ATTR&&(ke===Qe&&(ke=D(ke)),N(ke,t.ADD_ATTR,me)),t.ADD_URI_SAFE_ATTR&&N(Ze,t.ADD_URI_SAFE_ATTR,me),t.FORBID_CONTENTS&&(Ye===Je&&(Ye=D(Ye)),N(Ye,t.FORBID_CONTENTS,me)),Ve&&(_e["#text"]=!0),Me&&N(_e,["html","head","body"]),_e.table&&(N(_e,["tbody"]),delete xe.tbody),p&&p(t),ct=t)},dt=N({},["mi","mo","mn","ms","mtext"]),pt=N({},["foreignobject","desc","title","annotation-xml"]),gt=N({},["title","style","font","a","script"]),mt=N({},O);N(mt,H),N(mt,R);var vt=N({},P);N(vt,K);var Tt=function(e){var t=L(e);t&&t.tagName||(t={namespaceURI:it,tagName:"template"});var n=C(e.tagName),r=C(t.tagName);return!!at[e.namespaceURI]&&(e.namespaceURI===nt?t.namespaceURI===rt?"svg"===n:t.namespaceURI===tt?"svg"===n&&("annotation-xml"===r||dt[r]):Boolean(mt[n]):e.namespaceURI===tt?t.namespaceURI===rt?"math"===n:t.namespaceURI===nt?"math"===n&&pt[r]:Boolean(vt[n]):e.namespaceURI===rt?!(t.namespaceURI===nt&&!pt[r])&&!(t.namespaceURI===tt&&!dt[r])&&!vt[n]&&(gt[n]||!mt[n]):!("application/xhtml+xml"!==ge||!at[e.namespaceURI]))},yt=function(e){B(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=oe}catch(t){e.remove()}}},Et=function(e,t){try{B(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){B(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!ke[e])if(Re||Pe)try{yt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},bt=function(e){var t,n;if(He)e=""+e;else{var r=_(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===ge&&it===rt&&(e=''+e+"");var i=ae?ae.createHTML(e):e;if(it===rt)try{t=(new d).parseFromString(i,ge)}catch(e){}if(!t||!t.documentElement){t=le.createDocument(it,"template",null);try{t.documentElement.innerHTML=At?oe:i}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(A.createTextNode(n),a.childNodes[0]||null),it===rt?he.call(t,Me?"html":"body")[0]:Me?t.documentElement:a},Bt=function(e){return ce.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},Ct=function(e){return e instanceof f&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof h)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},wt=function(t){return"object"===e(s)?t instanceof s:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},_t=function(e,t,r){pe[e]&&E(pe[e],(function(e){e.call(n,t,r,ct)}))},St=function(e){var t;if(_t("beforeSanitizeElements",e,null),Ct(e))return yt(e),!0;if(I(/[\u0080-\uFFFF]/,e.nodeName))return yt(e),!0;var r=me(e.nodeName);if(_t("uponSanitizeElement",e,{tagName:r,allowedTags:_e}),e.hasChildNodes()&&!wt(e.firstElementChild)&&(!wt(e.content)||!wt(e.content.firstElementChild))&&I(/<[/\w]/g,e.innerHTML)&&I(/<[/\w]/g,e.textContent))return yt(e),!0;if("select"===r&&I(/