From 52caf55236a571cd6633543723b05514e9f30399 Mon Sep 17 00:00:00 2001 From: jiawei686 <892001108@qq.com> Date: Fri, 12 Jan 2024 14:51:00 +0800 Subject: [PATCH] chore(release): v0.8.35 Co-authored-by: sunsonliu Co-authored-by: lyngai Co-authored-by: humyfred <513407656@qq.com> Co-authored-by: kiritocui --- CHANGELOG.md | 22 + .../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 | 5101 +- 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 | 174675 ++++++++++++++- 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 130 -> 20352 bytes dist/fonts/ch-icon.svg | 279 +- dist/fonts/ch-icon.ttf | Bin 130 -> 20188 bytes dist/fonts/ch-icon.woff | Bin 130 -> 11728 bytes dist/fonts/ch-icon.woff2 | Bin 129 -> 9996 bytes package.json | 2 +- 30 files changed, 180142 insertions(+), 73 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a93d402a..5cbef2e8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,28 @@ 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.35](https://github.com/Tencent/cherry-markdown/compare/v0.8.34...v0.8.35) (2024-01-12) + + +### Features + +* **kbd:** add styles to \ tag & update examples ([#679](https://github.com/Tencent/cherry-markdown/issues/679)) ([ac3650d](https://github.com/Tencent/cherry-markdown/commit/ac3650d65eddb9e9b77337a336cfeb4206b82ea9)) + + +### Bug Fixes + +* add dom purifier to math result for security ([f79dc95](https://github.com/Tencent/cherry-markdown/commit/f79dc95acb93af6a8f5109cf1fd3ee1c78059343)) +* **client:** redeclare the 'toc' state ([#678](https://github.com/Tencent/cherry-markdown/issues/678)) ([9216837](https://github.com/Tencent/cherry-markdown/commit/9216837c57c0a02a78b9fb3ae7cd0ebfb21004f3)), closes [#675](https://github.com/Tencent/cherry-markdown/issues/675) [#676](https://github.com/Tencent/cherry-markdown/issues/676) [#677](https://github.com/Tencent/cherry-markdown/issues/677) +* **xss:** fix potential xss in raw html ([596805c](https://github.com/Tencent/cherry-markdown/commit/596805cc6eaff2d0528bb75956abaf7ffdc3f9fe)) +* 修改示例中emoji表情的配置 ([66c3ecc](https://github.com/Tencent/cherry-markdown/commit/66c3ecca0e4e6cda7281f124f5063a116d772969)) + + +### Code Refactoring + +* **client:** use `cherry-markdown`'s TOC component ([#677](https://github.com/Tencent/cherry-markdown/issues/677)) ([b8899af](https://github.com/Tencent/cherry-markdown/commit/b8899af1052ec5b1f2ac1a2537b02a1000b0ea23)) + +### [0.8.33](https://github.com/Tencent/cherry-markdown/compare/v0.8.32...v0.8.33) (2023-12-25) + ### [0.8.34](https://github.com/Tencent/cherry-markdown/compare/v0.8.32...v0.8.34) (2023-12-26) diff --git a/dist/addons/cherry-code-block-mermaid-plugin.d.ts b/dist/addons/cherry-code-block-mermaid-plugin.d.ts index 81473856..7817883c 100644 --- a/dist/addons/cherry-code-block-mermaid-plugin.d.ts +++ b/dist/addons/cherry-code-block-mermaid-plugin.d.ts @@ -1,3 +1,32 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f7e94c0e0790e3a81858a2788b170845f35dbda7a081f4c5ad677482e7b27128 -size 930 +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; +} diff --git a/dist/addons/cherry-code-block-mermaid-plugin.js b/dist/addons/cherry-code-block-mermaid-plugin.js index a10559f1..cf8396a9 100644 --- a/dist/addons/cherry-code-block-mermaid-plugin.js +++ b/dist/addons/cherry-code-block-mermaid-plugin.js @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0b0ed61ec4ca29374c878e329f4a23f604635d8dd3211ec41ee5a1f1d209082a -size 39334 +!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})); diff --git a/dist/cherry-markdown.core.common.d.ts b/dist/cherry-markdown.core.common.d.ts index d565ac2c..e0f4da5a 100644 --- a/dist/cherry-markdown.core.common.d.ts +++ b/dist/cherry-markdown.core.common.d.ts @@ -1,3 +1,3 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:94638491176c689c7e489fd6f73482a4e228ffaba22fcbd31992ec4d614be7a9 -size 138 +import Cherry, { MenuHookBase, SyntaxHookBase } from "./types/index.core"; +export { MenuHookBase, SyntaxHookBase }; +export default Cherry; \ No newline at end of file diff --git a/dist/cherry-markdown.core.common.js b/dist/cherry-markdown.core.common.js index fd33115b..cc229a40 100644 --- a/dist/cherry-markdown.core.common.js +++ b/dist/cherry-markdown.core.common.js @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:822428dc9ea20b0a50950486a2b7ea0172136a0e77066e80f9c0c5af0cce0e3a -size 1177824 +"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 A,i,o=function(e){return e&&e.Math==Math&&e},a=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("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,f=c.call,h="object"==typeof Reflect&&Reflect.apply||(l?f.bind(u):function(){return f.apply(u,arguments)}),d=Function.prototype,g=d.bind,p=d.call,m=l&&g.bind(p,p),v=l?function(e){return e&&m(e)}:function(e){return e&&function(){return p.apply(e,arguments)}},y=function(e){return"function"==typeof e},w=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),B=Function.prototype.call,b=l?B.bind(B):function(){return B.apply(B,arguments)},C={}.propertyIsEnumerable,Q=Object.getOwnPropertyDescriptor,k={f:Q&&!C.call({1:2},1)?function(e){var t=Q(this,e);return!!t&&t.enumerable}:C},T=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},x=v({}.toString),E=v("".slice),F=function(e){return E(x(e),8,-1)},U=a.Object,S=v("".split),L=s((function(){return!U("z").propertyIsEnumerable(0)}))?function(e){return"String"==F(e)?S(e,""):U(e)}:U,H=a.TypeError,I=function(e){if(null==e)throw H("Can't call method on "+e);return e},M=function(e){return L(I(e))},_=function(e){return"object"==typeof e?null!==e:y(e)},D={},O=function(e){return y(e)?e:void 0},N=function(e,t){return arguments.length<2?O(D[e])||O(a[e]):D[e]&&D[e][t]||a[e]&&a[e][t]},R=v({}.isPrototypeOf),P=N("navigator","userAgent")||"",K=a.process,$=a.Deno,X=K&&K.versions||$&&$.version,V=X&&X.v8;V&&(i=(A=V.split("."))[0]>0&&A[0]<4?1:+(A[0]+A[1])),!i&&P&&(!(A=P.match(/Edge\/(\d+)/))||A[1]>=74)&&(A=P.match(/Chrome\/(\d+)/))&&(i=+A[1]);var j=i,G=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&j&&j<41})),W=G&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,J=a.Object,z=W?function(e){return"symbol"==typeof e}:function(e){var t=N("Symbol");return y(t)&&R(t.prototype,J(e))},Z=a.String,q=function(e){try{return Z(e)}catch(e){return"Object"}},Y=a.TypeError,ee=function(e){if(y(e))return e;throw Y(q(e)+" is not a function")},te=function(e,t){var n=e[t];return null==n?void 0:ee(n)},ne=a.TypeError,re=Object.defineProperty,Ae="__core-js_shared__",ie=a[Ae]||function(e,t){try{re(a,e,{value:t,configurable:!0,writable:!0})}catch(n){a[e]=t}return t}(Ae,{}),oe=r((function(e){(e.exports=function(e,t){return ie[e]||(ie[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"})})),ae=a.Object,se=function(e){return ae(I(e))},le=v({}.hasOwnProperty),ce=Object.hasOwn||function(e,t){return le(se(e),t)},ue=0,fe=Math.random(),he=v(1..toString),de=function(e){return"Symbol("+(void 0===e?"":e)+")_"+he(++ue+fe,36)},ge=oe("wks"),pe=a.Symbol,me=pe&&pe.for,ve=W?pe:pe&&pe.withoutSetter||de,ye=function(e){if(!ce(ge,e)||!G&&"string"!=typeof ge[e]){var t="Symbol."+e;G&&ce(pe,e)?ge[e]=pe[e]:ge[e]=W&&me?me(t):ve(t)}return ge[e]},we=a.TypeError,Be=ye("toPrimitive"),be=function(e,t){if(!_(e)||z(e))return e;var n,r=te(e,Be);if(r){if(void 0===t&&(t="default"),n=b(r,e,t),!_(n)||z(n))return n;throw we("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&y(n=e.toString)&&!_(r=b(n,e)))return r;if(y(n=e.valueOf)&&!_(r=b(n,e)))return r;if("string"!==t&&y(n=e.toString)&&!_(r=b(n,e)))return r;throw ne("Can't convert object to primitive value")}(e,t)},Ce=function(e){var t=be(e,"string");return z(t)?t:t+""},Qe=a.document,ke=_(Qe)&&_(Qe.createElement),Te=function(e){return ke?Qe.createElement(e):{}},xe=!w&&!s((function(){return 7!=Object.defineProperty(Te("div"),"a",{get:function(){return 7}}).a})),Ee=Object.getOwnPropertyDescriptor,Fe={f:w?Ee:function(e,t){if(e=M(e),t=Ce(t),xe)try{return Ee(e,t)}catch(e){}if(ce(e,t))return T(!b(k.f,e,t),e[t])}},Ue=/#|\.prototype\./,Se=function(e,t){var n=He[Le(e)];return n==Me||n!=Ie&&(y(t)?s(t):!!t)},Le=Se.normalize=function(e){return String(e).replace(Ue,".").toLowerCase()},He=Se.data={},Ie=Se.NATIVE="N",Me=Se.POLYFILL="P",_e=Se,De=v(v.bind),Oe=function(e,t){return ee(e),void 0===t?e:l?De(e,t):function(){return e.apply(t,arguments)}},Ne=w&&s((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Re=a.String,Pe=a.TypeError,Ke=function(e){if(_(e))return e;throw Pe(Re(e)+" is not an object")},$e=a.TypeError,Xe=Object.defineProperty,Ve=Object.getOwnPropertyDescriptor,je="enumerable",Ge="configurable",We="writable",Je={f:w?Ne?function(e,t,n){if(Ke(e),t=Ce(t),Ke(n),"function"==typeof e&&"prototype"===t&&"value"in n&&We in n&&!n[We]){var r=Ve(e,t);r&&r[We]&&(e[t]=n.value,n={configurable:Ge in n?n[Ge]:r[Ge],enumerable:je in n?n[je]:r[je],writable:!1})}return Xe(e,t,n)}:Xe:function(e,t,n){if(Ke(e),t=Ce(t),Ke(n),xe)try{return Xe(e,t,n)}catch(e){}if("get"in n||"set"in n)throw $e("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},ze=w?function(e,t,n){return Je.f(e,t,T(1,n))}:function(e,t,n){return e[t]=n,e},Ze=Fe.f,qe=function(e){var t=function(n,r,A){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,A)}return h(e,this,arguments)};return t.prototype=e.prototype,t},Ye=function(e,t){var n,r,A,i,o,s,l,c,u=e.target,f=e.global,h=e.stat,d=e.proto,g=f?a:h?a[u]:(a[u]||{}).prototype,p=f?D:D[u]||ze(D,u,{})[u],m=p.prototype;for(A in t)n=!_e(f?A:u+(h?".":"#")+A,e.forced)&&g&&ce(g,A),o=p[A],n&&(s=e.dontCallGetSet?(c=Ze(g,A))&&c.value:g[A]),i=n&&s?s:t[A],n&&typeof o==typeof i||(l=e.bind&&n?Oe(i,a):e.wrap&&n?qe(i):d&&y(i)?v(i):i,(e.sham||i&&i.sham||o&&o.sham)&&ze(l,"sham",!0),ze(p,A,l),d&&(ce(D,r=u+"Prototype")||ze(D,r,{}),ze(D[r],A,i),e.real&&m&&!m[A]&&ze(m,A,i)))},et=v([].slice),tt=a.Function,nt=v([].concat),rt=v([].join),At={},it=l?tt.bind:function(e){var t=ee(this),n=t.prototype,r=et(arguments,1),A=function(){var n=nt(r,et(arguments));return this instanceof A?function(e,t,n){if(!ce(At,t)){for(var r=[],A=0;A0?xt:Tt)(t)},Ft=function(e){var t=+e;return t!=t||0===t?0:Et(t)},Ut=Math.max,St=Math.min,Lt=function(e,t){var n=Ft(e);return n<0?Ut(n+t,0):St(n,t)},Ht=Math.min,It=function(e){return e>0?Ht(Ft(e),9007199254740991):0},Mt=function(e){return It(e.length)},_t=function(e){return function(t,n,r){var A,i=M(t),o=Mt(i),a=Lt(r,o);if(e&&n!=n){for(;o>a;)if((A=i[a++])!=A)return!0}else for(;o>a;a++)if((e||a in i)&&i[a]===n)return e||a||0;return!e&&-1}},Dt={includes:_t(!0),indexOf:_t(!1)},Ot={},Nt=Dt.indexOf,Rt=v([].push),Pt=function(e,t){var n,r=M(e),A=0,i=[];for(n in r)!ce(Ot,n)&&ce(r,n)&&Rt(i,n);for(;t.length>A;)ce(r,n=t[A++])&&(~Nt(i,n)||Rt(i,n));return i},Kt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],$t=Object.keys||function(e){return Pt(e,Kt)},Xt=w&&!Ne?Object.defineProperties:function(e,t){Ke(e);for(var n,r=M(t),A=$t(t),i=A.length,o=0;i>o;)Je.f(e,n=A[o++],r[n]);return e},Vt={f:Xt},jt=N("document","documentElement"),Gt=oe("keys"),Wt=function(e){return Gt[e]||(Gt[e]=de(e))},Jt="prototype",zt="script",Zt=Wt("IE_PROTO"),qt=function(){},Yt=function(e){return"<"+zt+">"+e+""},en=function(e){e.write(Yt("")),e.close();var t=e.parentWindow.Object;return e=null,t},tn=function(){try{bt=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;tn="undefined"!=typeof document?document.domain&&bt?en(bt):(t=Te("iframe"),n="java"+zt+":",t.style.display="none",jt.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(Yt("document.F=Object")),e.close(),e.F):en(bt);for(var r=Kt.length;r--;)delete tn[Jt][Kt[r]];return tn()};Ot[Zt]=!0;var nn=Object.create||function(e,t){var n;return null!==e?(qt[Jt]=Ke(e),n=new qt,qt[Jt]=null,n[Zt]=e):n=tn(),void 0===t?n:Vt.f(n,t)},rn=N("Reflect","construct"),An=Object.prototype,on=[].push,an=s((function(){function e(){}return!(rn((function(){}),[],e)instanceof e)})),sn=!s((function(){rn((function(){}))})),ln=an||sn;Ye({target:"Reflect",stat:!0,forced:ln,sham:ln},{construct:function(e,t){kt(e),Ke(t);var n=arguments.length<3?e:kt(arguments[2]);if(sn&&!an)return rn(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 h(on,r,t),new(h(it,e,r))}var A=n.prototype,i=nn(_(A)?A:An),o=h(e,i,t);return _(o)?o:i}});var cn=D.Reflect.construct,un=cn,fn=s((function(){$t(1)}));Ye({target:"Object",stat:!0,forced:fn},{keys:function(e){return $t(se(e))}});var hn,dn,gn,pn=D.Object.keys,mn=pn,vn=a.String,yn=function(e){if("Symbol"===ut(e))throw TypeError("Cannot convert a Symbol value to a string");return vn(e)},wn=Kt.concat("length","prototype"),Bn={f:Object.getOwnPropertyNames||function(e){return Pt(e,wn)}},bn=function(e,t,n){var r=Ce(t);r in e?Je.f(e,r,T(0,n)):e[r]=n},Cn=a.Array,Qn=Math.max,kn=function(e,t,n){for(var r=Mt(e),A=Lt(t,r),i=Lt(void 0===n?r:n,r),o=Cn(Qn(i-A,0)),a=0;Av;v++)if((a||v in g)&&(h=p(f=g[v],v,d),e))if(t)w[v]=h;else if(h)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:er(w,f)}else switch(e){case 4:return!1;case 7:er(w,f)}return i?-1:r||A?A:w}},nr={forEach:tr(0),map:tr(1),filter:tr(2),some:tr(3),every:tr(4),find:tr(5),findIndex:tr(6),filterReject:tr(7)},rr=nr.forEach,Ar=Wt("hidden"),ir="Symbol",or="prototype",ar=Jn.set,sr=Jn.getterFor(ir),lr=Object[or],cr=a.Symbol,ur=cr&&cr[or],fr=a.TypeError,hr=a.QObject,dr=Fe.f,gr=Je.f,pr=En.f,mr=k.f,vr=v([].push),yr=oe("symbols"),wr=oe("op-symbols"),Br=oe("wks"),br=!hr||!hr[or]||!hr[or].findChild,Cr=w&&s((function(){return 7!=nn(gr({},"a",{get:function(){return gr(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=dr(lr,t);r&&delete lr[t],gr(e,t,n),r&&e!==lr&&gr(lr,t,r)}:gr,Qr=function(e,t){var n=yr[e]=nn(ur);return ar(n,{type:ir,tag:e,description:t}),w||(n.description=t),n},kr=function(e,t,n){e===lr&&kr(wr,t,n),Ke(e);var r=Ce(t);return Ke(n),ce(yr,r)?(n.enumerable?(ce(e,Ar)&&e[Ar][r]&&(e[Ar][r]=!1),n=nn(n,{enumerable:T(0,!1)})):(ce(e,Ar)||gr(e,Ar,T(1,{})),e[Ar][r]=!0),Cr(e,r,n)):gr(e,r,n)},Tr=function(e,t){Ke(e);var n=M(t),r=$t(n).concat(Ur(n));return rr(r,(function(t){w&&!b(xr,n,t)||kr(e,t,n[t])})),e},xr=function(e){var t=Ce(e),n=b(mr,this,t);return!(this===lr&&ce(yr,t)&&!ce(wr,t))&&(!(n||!ce(this,t)||!ce(yr,t)||ce(this,Ar)&&this[Ar][t])||n)},Er=function(e,t){var n=M(e),r=Ce(t);if(n!==lr||!ce(yr,r)||ce(wr,r)){var A=dr(n,r);return!A||!ce(yr,r)||ce(n,Ar)&&n[Ar][r]||(A.enumerable=!0),A}},Fr=function(e){var t=pr(M(e)),n=[];return rr(t,(function(e){ce(yr,e)||ce(Ot,e)||vr(n,e)})),n},Ur=function(e){var t=e===lr,n=pr(t?wr:M(e)),r=[];return rr(n,(function(e){!ce(yr,e)||t&&!ce(lr,e)||vr(r,yr[e])})),r};G||(ur=(cr=function(){if(R(ur,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===lr&&b(n,wr,e),ce(this,Ar)&&ce(this[Ar],t)&&(this[Ar][t]=!1),Cr(this,t,T(1,e))};return w&&br&&Cr(lr,t,{configurable:!0,set:n}),Qr(t,e)})[or],Un(ur,"toString",(function(){return sr(this).tag})),Un(cr,"withoutSetter",(function(e){return Qr(de(e),e)})),k.f=xr,Je.f=kr,Vt.f=Tr,Fe.f=Er,Bn.f=En.f=Fr,Fn.f=Ur,Sn.f=function(e){return Qr(ye(e),e)},w&&gr(ur,"description",{configurable:!0,get:function(){return sr(this).description}})),Ye({global:!0,constructor:!0,wrap:!0,forced:!G,sham:!G},{Symbol:cr}),rr($t(Br),(function(e){Hn(e)})),Ye({target:ir,stat:!0,forced:!G},{useSetter:function(){br=!0},useSimple:function(){br=!1}}),Ye({target:"Object",stat:!0,forced:!G,sham:!w},{create:function(e,t){return void 0===t?nn(e):Tr(nn(e),t)},defineProperty:kr,defineProperties:Tr,getOwnPropertyDescriptor:Er}),Ye({target:"Object",stat:!0,forced:!G},{getOwnPropertyNames:Fr}),In(),On(cr,ir),Ot[Ar]=!0;var Sr=G&&!!Symbol.for&&!!Symbol.keyFor,Lr=oe("string-to-symbol-registry"),Hr=oe("symbol-to-string-registry");Ye({target:"Symbol",stat:!0,forced:!Sr},{for:function(e){var t=yn(e);if(ce(Lr,t))return Lr[t];var n=N("Symbol")(t);return Lr[t]=n,Hr[n]=t,n}});var Ir=oe("symbol-to-string-registry");Ye({target:"Symbol",stat:!0,forced:!Sr},{keyFor:function(e){if(!z(e))throw TypeError(q(e)+" is not a symbol");if(ce(Ir,e))return Ir[e]}});var Mr=N("JSON","stringify"),_r=v(/./.exec),Dr=v("".charAt),Or=v("".charCodeAt),Nr=v("".replace),Rr=v(1..toString),Pr=/[\uD800-\uDFFF]/g,Kr=/^[\uD800-\uDBFF]$/,$r=/^[\uDC00-\uDFFF]$/,Xr=!G||s((function(){var e=N("Symbol")();return"[null]"!=Mr([e])||"{}"!=Mr({a:e})||"{}"!=Mr(Object(e))})),Vr=s((function(){return'"\\udf06\\ud834"'!==Mr("\udf06\ud834")||'"\\udead"'!==Mr("\udead")})),jr=function(e,t){var n=et(arguments),r=t;if((_(t)||void 0!==e)&&!z(e))return zn(t)||(t=function(e,t){if(y(r)&&(t=b(r,this,e,t)),!z(t))return t}),n[1]=t,h(Mr,null,n)},Gr=function(e,t,n){var r=Dr(n,t-1),A=Dr(n,t+1);return _r(Kr,e)&&!_r($r,A)||_r($r,e)&&!_r(Kr,r)?"\\u"+Rr(Or(e,0),16):e};Mr&&Ye({target:"JSON",stat:!0,arity:3,forced:Xr||Vr},{stringify:function(e,t,n){var r=et(arguments),A=h(Xr?jr:Mr,null,r);return Vr&&"string"==typeof A?Nr(A,Pr,Gr):A}});var Wr=!G||s((function(){Fn.f(1)}));Ye({target:"Object",stat:!0,forced:Wr},{getOwnPropertySymbols:function(e){var t=Fn.f;return t?t(se(e)):[]}});var Jr=D.Object.getOwnPropertySymbols,zr=Jr,Zr=ye("species"),qr=function(e){return j>=51||!s((function(){var t=[];return(t.constructor={})[Zr]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Yr=nr.filter,eA=qr("filter");Ye({target:"Array",proto:!0,forced:!eA},{filter:function(e){return Yr(this,e,arguments.length>1?arguments[1]:void 0)}});var tA=function(e){return D[e+"Prototype"]},nA=tA("Array").filter,rA=Array.prototype,AA=function(e){var t=e.filter;return e===rA||R(rA,e)&&t===rA.filter?nA:t},iA=Fe.f,oA=s((function(){iA(1)}));Ye({target:"Object",stat:!0,forced:!w||oA,sham:!w},{getOwnPropertyDescriptor:function(e,t){return iA(M(e),t)}});var aA,sA,lA,cA=r((function(e){var t=D.Object,n=e.exports=function(e,n){return t.getOwnPropertyDescriptor(e,n)};t.getOwnPropertyDescriptor.sham&&(n.sham=!0)})),uA=cA,fA=uA,hA={},dA=Function.prototype,gA=w&&Object.getOwnPropertyDescriptor,pA=ce(dA,"name"),mA={EXISTS:pA,PROPER:pA&&"something"===function(){}.name,CONFIGURABLE:pA&&(!w||w&&gA(dA,"name").configurable)},vA=!s((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),yA=Wt("IE_PROTO"),wA=a.Object,BA=wA.prototype,bA=vA?wA.getPrototypeOf:function(e){var t=se(e);if(ce(t,yA))return t[yA];var n=t.constructor;return y(n)&&t instanceof n?n.prototype:t instanceof wA?BA:null},CA=ye("iterator"),QA=!1;[].keys&&("next"in(lA=[].keys())?(sA=bA(bA(lA)))!==Object.prototype&&(aA=sA):QA=!0);var kA=null==aA||s((function(){var e={};return aA[CA].call(e)!==e}));aA=kA?{}:nn(aA),y(aA[CA])||Un(aA,CA,(function(){return this}));var TA={IteratorPrototype:aA,BUGGY_SAFARI_ITERATORS:QA},xA=TA.IteratorPrototype,EA=function(){return this},FA=function(e,t,n,r){var A=t+" Iterator";return e.prototype=nn(xA,{next:T(+!r,n)}),On(e,A,!1,!0),hA[A]=EA,e},UA=a.String,SA=a.TypeError,LA=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||y(e))return e;throw SA("Can't set "+UA(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),HA=mA.PROPER,IA=TA.BUGGY_SAFARI_ITERATORS,MA=ye("iterator"),_A="keys",DA="values",OA="entries",NA=function(){return this},RA=function(e,t,n,r,A,i,o){FA(n,t,r);var a,s,l,c=function(e){if(e===A&&g)return g;if(!IA&&e in h)return h[e];switch(e){case _A:case DA:case OA:return function(){return new n(this,e)}}return function(){return new n(this)}},u=t+" Iterator",f=!1,h=e.prototype,d=h[MA]||h["@@iterator"]||A&&h[A],g=!IA&&d||c(A),p="Array"==t&&h.entries||d;if(p&&(a=bA(p.call(new e)))!==Object.prototype&&a.next&&(On(a,u,!0,!0),hA[u]=NA),HA&&A==DA&&d&&d.name!==DA&&(f=!0,g=function(){return b(d,this)}),A)if(s={values:c(DA),keys:i?g:c(_A),entries:c(OA)},o)for(l in s)(IA||f||!(l in h))&&Un(h,l,s[l]);else Ye({target:t,proto:!0,forced:IA||f},s);return o&&h[MA]!==g&&Un(h,MA,g,{name:A}),hA[t]=g,s};Je.f;var PA="Array Iterator",KA=Jn.set,$A=Jn.getterFor(PA);RA(Array,"Array",(function(e,t){KA(this,{type:PA,target:M(e),index:0,kind:t})}),(function(){var e=$A(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"),hA.Arguments=hA.Array;var XA=ye("toStringTag");for(var VA 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 jA=a[VA],GA=jA&&jA.prototype;GA&&ut(GA)!==XA&&ze(GA,XA,VA),hA[VA]=hA.Array}var WA=function(e,t){var n=[][e];return!!n&&s((function(){n.call(null,t||function(){return 1},1)}))},JA=nr.forEach,zA=WA("forEach")?[].forEach:function(e){return JA(this,e,arguments.length>1?arguments[1]:void 0)};Ye({target:"Array",proto:!0,forced:[].forEach!=zA},{forEach:zA});var ZA=tA("Array").forEach,qA=Array.prototype,YA={DOMTokenList:!0,NodeList:!0},ei=function(e){var t=e.forEach;return e===qA||R(qA,e)&&t===qA.forEach||ce(YA,ut(e))?ZA:t},ti=ei,ni=v([].concat),ri=N("Reflect","ownKeys")||function(e){var t=Bn.f(Ke(e)),n=Fn.f;return n?ni(t,n(e)):t};Ye({target:"Object",stat:!0,sham:!w},{getOwnPropertyDescriptors:function(e){for(var t,n,r=M(e),A=Fe.f,i=ri(r),o={},a=0;i.length>a;)void 0!==(n=A(r,t=i[a++]))&&bn(o,t,n);return o}});var Ai=D.Object.getOwnPropertyDescriptors,ii=Vt.f;Ye({target:"Object",stat:!0,forced:Object.defineProperties!==ii,sham:!w},{defineProperties:ii});var oi=r((function(e){var t=D.Object,n=e.exports=function(e,n){return t.defineProperties(e,n)};t.defineProperties.sham&&(n.sham=!0)})),ai=oi,si=Je.f;Ye({target:"Object",stat:!0,forced:Object.defineProperty!==si,sham:!w},{defineProperty:si});var li=r((function(e){var t=D.Object,n=e.exports=function(e,n,r){return t.defineProperty(e,n,r)};t.defineProperty.sham&&(n.sham=!0)})),ci=li;function ui(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var fi=li;function hi(e,t){for(var n=0;n=51||!s((function(){var e=[];return e[bi]=!1,e.concat()[0]!==e})),xi=qr("concat"),Ei=function(e){if(!_(e))return!1;var t=e[bi];return void 0!==t?!!t:zn(e)};Ye({target:"Array",proto:!0,arity:1,forced:!Ti||!xi},{concat:function(e){var t,n,r,A,i,o=se(this),a=Yn(o,0),s=0;for(t=-1,r=arguments.length;tCi)throw ki(Qi);for(n=0;n=Ci)throw ki(Qi);bn(a,s++,i)}return a.length=s,a}}),Hn("asyncIterator"),Hn("hasInstance"),Hn("isConcatSpreadable"),Hn("iterator"),Hn("match"),Hn("matchAll"),Hn("replace"),Hn("search"),Hn("species"),Hn("split"),Hn("toPrimitive"),In(),Hn("toStringTag"),On(N("Symbol"),"Symbol"),Hn("unscopables"),On(a.JSON,"JSON",!0);var Fi=D.Symbol,Ui=Fi;Hn("asyncDispose"),Hn("dispose"),Hn("matcher"),Hn("metadata"),Hn("observable"),Hn("patternMatch"),Hn("replaceAll");var Si=Ui,Li=v("".charAt),Hi=v("".charCodeAt),Ii=v("".slice),Mi=function(e){return function(t,n){var r,A,i=yn(I(t)),o=Ft(n),a=i.length;return o<0||o>=a?e?"":void 0:(r=Hi(i,o))<55296||r>56319||o+1===a||(A=Hi(i,o+1))<56320||A>57343?e?Li(i,o):r:e?Ii(i,o,o+2):A-56320+(r-55296<<10)+65536}},_i={codeAt:Mi(!1),charAt:Mi(!0)},Di=_i.charAt,Oi="String Iterator",Ni=Jn.set,Ri=Jn.getterFor(Oi);RA(String,"String",(function(e){Ni(this,{type:Oi,string:yn(e),index:0})}),(function(){var e,t=Ri(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Di(n,r),t.index+=e.length,{value:e,done:!1})}));var Pi=Sn.f("iterator");function Ki(e){return Ki="function"==typeof Si&&"symbol"==typeof Pi?function(e){return typeof e}:function(e){return e&&"function"==typeof Si&&e.constructor===Si&&e!==Si.prototype?"symbol":typeof e},Ki(e)}function $i(e,t){if(t&&("object"===Ki(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return gi(e)}var Xi=s((function(){bA(1)}));Ye({target:"Object",stat:!0,forced:Xi,sham:!vA},{getPrototypeOf:function(e){return bA(se(e))}});var Vi=D.Object.getPrototypeOf;function ji(e){return ji=yi?Vi:function(e){return e.__proto__||Vi(e)},ji(e)}function Gi(e,t,n){return t in e?fi(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wi=tA("Array").concat,Ji=Array.prototype,zi=function(e){var t=e.concat;return e===Ji||R(Ji,e)&&t===Ji.concat?Wi:t};Ye({target:"Function",proto:!0,forced:Function.bind!==it},{bind:it});var Zi=tA("Function").bind,qi=Function.prototype,Yi=function(e){var t=e.bind;return e===qi||R(qi,e)&&t===qi.bind?Zi:t},eo=Yi,to=a.TypeError,no=function(e,t){if(e2,A=y(t)?t:Ao(t),i=r?et(arguments,2):void 0;return e(r?function(){h(A,this,i)}:A,n)}:e},oo={setTimeout:io(a.setTimeout),setInterval:io(a.setInterval)},ao=oo.setInterval;Ye({global:!0,bind:!0,forced:a.setInterval!==ao},{setInterval:ao});var so=oo.setTimeout;Ye({global:!0,bind:!0,forced:a.setTimeout!==so},{setTimeout:so});var lo=D.setTimeout;var co=function(){this.__data__=[],this.size=0};var uo=function(e,t){return e===t||e!=e&&t!=t};var fo=function(e,t){for(var n=e.length;n--;)if(uo(e[n][0],t))return n;return-1},ho=Array.prototype.splice;var go=function(e){var t=this.__data__,n=fo(t,e);return!(n<0)&&(n==t.length-1?t.pop():ho.call(t,n,1),--this.size,!0)};var po=function(e){var t=this.__data__,n=fo(t,e);return n<0?void 0:t[n][1]};var mo=function(e){return fo(this.__data__,e)>-1};var vo=function(e,t){var n=this.__data__,r=fo(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function yo(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=9007199254740991};var Ga=function(e){return null!=e&&ja(e.length)&&!No(e)};var Wa=function(e){return Na(e)&&Ga(e)};var Ja=function(){return!1},za=r((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,A=r&&r.exports===n?xo.Buffer:void 0,i=(A?A.isBuffer:void 0)||Ja;e.exports=i})),Za=Function.prototype,qa=Object.prototype,Ya=Za.toString,es=qa.hasOwnProperty,ts=Ya.call(Object);var ns=function(e){if(!Na(e)||"[object Object]"!=Do(e))return!1;var t=Ma(e);if(null===t)return!0;var n=es.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ya.call(n)==ts},rs={};rs["[object Float32Array]"]=rs["[object Float64Array]"]=rs["[object Int8Array]"]=rs["[object Int16Array]"]=rs["[object Int32Array]"]=rs["[object Uint8Array]"]=rs["[object Uint8ClampedArray]"]=rs["[object Uint16Array]"]=rs["[object Uint32Array]"]=!0,rs["[object Arguments]"]=rs["[object Array]"]=rs["[object ArrayBuffer]"]=rs["[object Boolean]"]=rs["[object DataView]"]=rs["[object Date]"]=rs["[object Error]"]=rs["[object Function]"]=rs["[object Map]"]=rs["[object Number]"]=rs["[object Object]"]=rs["[object RegExp]"]=rs["[object Set]"]=rs["[object String]"]=rs["[object WeakMap]"]=!1;var As=function(e){return Na(e)&&ja(e.length)&&!!rs[Do(e)]};var is=function(e){return function(t){return e(t)}},os=r((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,A=r&&r.exports===n&&ko.process,i=function(){try{var e=r&&r.require&&r.require("util").types;return e||A&&A.binding&&A.binding("util")}catch(e){}}();e.exports=i})),as=os&&os.isTypedArray,ss=as?is(as):As;var ls=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},cs=Object.prototype.hasOwnProperty;var us=function(e,t,n){var r=e[t];cs.call(e,t)&&uo(r,n)&&(void 0!==n||t in e)||Qa(e,t,n)};var fs=function(e,t,n,r){var A=!n;n||(n={});for(var i=-1,o=t.length;++i-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Us);var Hs=function(e,t){return Ls(Es(e,t,ks),e+"")};var Is=function(e,t,n){if(!Oo(n))return!1;var r=typeof t;return!!("number"==r?Ga(n)&&gs(t,n.length):"string"==r&&t in n)&&uo(n[t],e)};var Ms=function(e){return Hs((function(t,n){var r=-1,A=n.length,i=A>1?n[A-1]:void 0,o=A>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(A--,i):void 0,o&&Is(n[0],n[1],o)&&(i=A<3?void 0:i,A=1),t=Object(t);++r1?arguments[1]:void 0;return Ps?Rs(this,e,t)||0:Ns(this,e,t)}});var $s=tA("Array").indexOf,Xs=Array.prototype,Vs=function(e){var t=e.indexOf;return e===Xs||R(Xs,e)&&t===Xs.indexOf?$s:t},js=Vs,Gs=pn;function Ws(e,t){if(null==e)return{};var n,r,A=function(e,t){if(null==e)return{};var n,r,A={},i=Gs(e);for(r=0;r=0||(A[n]=e[n]);return A}(e,t);if(Os){var i=Os(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(A[n]=e[n])}return A}var Js=Object.assign,zs=Object.defineProperty,Zs=v([].concat),qs=!Js||s((function(){if(w&&1!==Js({b:1},Js(zs({},"a",{enumerable:!0,get:function(){zs(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!=Js({},e)[n]||$t(Js({},t)).join("")!=r}))?function(e,t){for(var n=se(e),r=arguments.length,A=1,i=Fn.f,o=k.f;r>A;)for(var a,s=L(arguments[A++]),l=i?Zs($t(s),i(s)):$t(s),c=l.length,u=0;c>u;)a=l[u++],w&&!b(o,s,a)||(n[a]=s[a]);return n}:Js;Ye({target:"Object",stat:!0,arity:2,forced:Object.assign!==qs},{assign:qs});var Ys=D.Object.assign,el=Ys;D.JSON||(D.JSON={stringify:JSON.stringify});var tl=function(e,t,n){return h(D.JSON.stringify,null,arguments)},nl=nr.find,rl="find",Al=!0;rl in[]&&Array(1)[rl]((function(){Al=!1})),Ye({target:"Array",proto:!0,forced:Al},{find:function(e){return nl(this,e,arguments.length>1?arguments[1]:void 0)}});var il,ol=tA("Array").find,al=Array.prototype,sl=function(e){var t=e.find;return e===al||R(al,e)&&t===al.find?ol:t},ll="\t\n\v\f\r                 \u2028\u2029\ufeff",cl=v("".replace),ul="["+ll+"]",fl=RegExp("^"+ul+ul+"*"),hl=RegExp(ul+ul+"*$"),dl=function(e){return function(t){var n=yn(I(t));return 1&e&&(n=cl(n,fl,"")),2&e&&(n=cl(n,hl,"")),n}},gl={start:dl(1),end:dl(2),trim:dl(3)},pl=mA.PROPER,ml=gl.trim;Ye({target:"String",proto:!0,forced:(il="trim",s((function(){return!!ll[il]()||"​…᠎"!=="​…᠎"[il]()||pl&&ll[il].name!==il})))},{trim:function(){return ml(this)}});var vl=tA("String").trim,yl=String.prototype,wl=function(e){var t=e.trim;return"string"==typeof e||e===yl||R(yl,e)&&t===yl.trim?vl:t},Bl=function(e,t,n){var r,A;Ke(e);try{if(!(r=te(e,"return"))){if("throw"===t)throw n;return n}r=b(r,e)}catch(e){A=!0,r=e}if("throw"===t)throw n;if(A)throw r;return Ke(r),n},bl=function(e,t,n,r){try{return r?t(Ke(n)[0],n[1]):t(n)}catch(t){Bl(e,"throw",t)}},Cl=ye("iterator"),Ql=Array.prototype,kl=function(e){return void 0!==e&&(hA.Array===e||Ql[Cl]===e)},Tl=ye("iterator"),xl=function(e){if(null!=e)return te(e,Tl)||te(e,"@@iterator")||hA[ut(e)]},El=a.TypeError,Fl=function(e,t){var n=arguments.length<2?xl(e):t;if(ee(n))return Ke(b(n,e));throw El(q(e)+" is not iterable")},Ul=a.Array,Sl=function(e){var t=se(e),n=Ct(this),r=arguments.length,A=r>1?arguments[1]:void 0,i=void 0!==A;i&&(A=Oe(A,r>2?arguments[2]:void 0));var o,a,s,l,c,u,f=xl(t),h=0;if(!f||this==Ul&&kl(f))for(o=Mt(t),a=n?new this(o):Ul(o);o>h;h++)u=i?A(t[h],h):t[h],bn(a,h,u);else for(c=(l=Fl(t,f)).next,a=n?new this:[];!(s=b(c,l)).done;h++)u=i?bl(l,A,[s.value,h],!0):s.value,bn(a,h,u);return a.length=h,a},Ll=ye("iterator"),Hl=!1;try{var Il=0,Ml={next:function(){return{done:!!Il++}},return:function(){Hl=!0}};Ml[Ll]=function(){return this},Array.from(Ml,(function(){throw 2}))}catch(e){}var _l=function(e,t){if(!t&&!Hl)return!1;var n=!1;try{var r={};r[Ll]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Dl=!_l((function(e){Array.from(e)}));Ye({target:"Array",stat:!0,forced:Dl},{from:Sl});var Ol=D.Array.from,Nl=Ol,Rl=ye("match"),Pl=a.TypeError,Kl=function(e){if(function(e){var t;return _(e)&&(void 0!==(t=e[Rl])?!!t:"RegExp"==F(e))}(e))throw Pl("The method doesn't accept regular expressions");return e},$l=ye("match"),Xl=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[$l]=!1,"/./"[e](t)}catch(e){}}return!1};Fe.f;var Vl=v("".startsWith),jl=v("".slice),Gl=Math.min,Wl=Xl("startsWith");Ye({target:"String",proto:!0,forced:!Wl},{startsWith:function(e){var t=yn(I(this));Kl(e);var n=It(Gl(arguments.length>1?arguments[1]:void 0,t.length)),r=yn(e);return Vl?Vl(t,r,n):jl(t,n,n+r.length)===r}});var Jl=tA("String").startsWith,zl=String.prototype,Zl=function(e){var t=e.startsWith;return"string"==typeof e||e===zl||R(zl,e)&&t===zl.startsWith?Jl:t},ql=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),A=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),i=/Edge\/(\d+)/.exec(e),o=r||A||i,a=o&&(r?document.documentMode||6:+(i||A)[1]),s=!i&&/WebKit\//.test(e),l=s&&/Qt\/\d+\.\d+/.test(e),c=!i&&/Chrome\//.test(e),u=/Opera\//.test(e),f=/Apple Computer/.test(navigator.vendor),h=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),d=/PhantomJS/.test(e),g=!i&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),p=/Android/.test(e),m=g||p||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),v=g||/Mac/.test(t),y=/\bCrOS\b/.test(e),w=/win/i.test(t),B=u&&e.match(/Version\/(\d*\.\d*)/);B&&(B=Number(B[1])),B&&B>=15&&(u=!1,s=!0);var b=v&&(l||u&&(null==B||B<12.11)),C=n||o&&a>=9;function Q(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var k,T=function(e,t){var n=e.className,r=Q(t).exec(n);if(r){var A=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(A?r[1]+A:"")}};function x(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function E(e,t){return x(e).appendChild(t)}function F(e,t,n,r){var A=document.createElement(e);if(n&&(A.className=n),r&&(A.style.cssText=r),"string"==typeof t)A.appendChild(document.createTextNode(t));else if(t)for(var i=0;i=t)return o+(t-i);o+=a-i,o+=n-o%n,i=a+1}}g?M=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:o&&(M=function(e){try{e.select()}catch(e){}});var N=function(){this.id=null,this.f=null,this.time=0,this.handler=_(this.onTimeout,this)};function R(e,t){for(var n=0;n=t)return r+Math.min(o,t-A);if(A+=i-r,r=i+1,(A+=n-A%n)>=t)return r}}var G=[""];function W(e){for(;G.length<=e;)G.push(J(G)+" ");return G[e]}function J(e){return e[e.length-1]}function z(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 Ae=/[\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 ie(e){return e.charCodeAt(0)>=768&&Ae.test(e)}function oe(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var A=(t+n)/2,i=r<0?Math.ceil(A):Math.floor(A);if(i==t)return e(i)?t:n;e(i)?n=i:t=i+r}}function se(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var A=!1,i=0;it||t==n&&o.to==t)&&(r(Math.max(o.from,t),Math.min(o.to,n),1==o.level?"rtl":"ltr",i),A=!0)}A||r(t,n,"ltr")}var le=null;function ce(e,t,n){var r;le=null;for(var A=0;At)return A;i.to==t&&(i.from!=i.to&&"before"==n?r=A:le=A),i.from==t&&(i.from!=i.to&&"before"!=n?r=A:le=A)}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]/,A=/[stwN]/,i=/[LRr]/,o=/[Lb1n]/,a=/[1n]/;function s(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var l="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!r.test(e))return!1;for(var c=e.length,u=[],f=0;f-1&&(r[t]=A.slice(0,i).concat(A.slice(i+1)))}}}function me(e,t){var n=ge(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),A=0;A0}function Be(e){e.prototype.on=function(e,t){de(this,e,t)},e.prototype.off=function(e,t){pe(this,e,t)}}function be(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ce(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Qe(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function ke(e){be(e),Ce(e)}function Te(e){return e.target||e.srcElement}function xe(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 Ee,Fe,Ue=function(){if(o&&a<9)return!1;var e=F("div");return"draggable"in e||"dragDrop"in e}();function Se(e){if(null==Ee){var t=F("span","​");E(e,F("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Ee=t.offsetWidth<=1&&t.offsetHeight>2&&!(o&&a<8))}var n=Ee?F("span","​"):F("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Le(e){if(null!=Fe)return Fe;var t=E(e,document.createTextNode("AخA")),n=k(t,0,1).getBoundingClientRect(),r=k(t,1,2).getBoundingClientRect();return x(e),!(!n||n.left==n.right)&&(Fe=r.right-n.right<3)}var He,Ie=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var A=e.indexOf("\n",t);-1==A&&(A=e.length);var i=e.slice(t,"\r"==e.charAt(A-1)?A-1:A),o=i.indexOf("\r");-1!=o?(n.push(i.slice(0,o)),t+=o+1):(n.push(i),t=A+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Me=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},_e="oncopy"in(He=F("div"))||(He.setAttribute("oncopy","return;"),"function"==typeof He.oncopy),De=null;function Oe(e){if(null!=De)return De;var t=E(e,F("span","x")),n=t.getBoundingClientRect(),r=k(t,0,1).getBoundingClientRect();return De=Math.abs(n.left-r.left)>1}var Ne={},Re={};function Pe(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ne[e]=t}function Ke(e,t){Re[e]=t}function $e(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=Y(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return $e("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return $e("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Xe(e,t){t=$e(t);var n=Ne[t.name];if(!n)return Xe(e,"text/plain");var r=n(e,t);if(Ve.hasOwnProperty(t.name)){var A=Ve[t.name];for(var i in A)A.hasOwnProperty(i)&&(r.hasOwnProperty(i)&&(r["_"+i]=r[i]),r[i]=A[i])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var o in t.modeProps)r[o]=t.modeProps[o];return r}var Ve={};function je(e,t){D(t,Ve.hasOwnProperty(e)?Ve[e]:Ve[e]={})}function Ge(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var A=t[r];A instanceof Array&&(A=A.concat([])),n[r]=A}return n}function We(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Je(e,t,n){return!e.startState||e.startState(t,n)}var ze=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 A=n.children[r],i=A.chunkSize();if(t=e.first&&tn?it(n,Ze(e,n).text.length):ht(t,Ze(e,t.line).text.length)}function ht(e,t){var n=e.ch;return null==n||n>t?it(e.line,t):n<0?it(e.line,0):e}function dt(e,t){for(var n=[],r=0;r=this.string.length},ze.prototype.sol=function(){return this.pos==this.lineStart},ze.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ze.prototype.next=function(){if(this.post},ze.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},ze.prototype.skipToEnd=function(){this.pos=this.string.length},ze.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},ze.prototype.backUp=function(e){this.pos-=e},ze.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var A=function(e){return n?e.toLowerCase():e};if(A(this.string.substr(this.pos,e.length))==A(e))return!1!==t&&(this.pos+=e.length),!0},ze.prototype.current=function(){return this.string.slice(this.start,this.pos)},ze.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},ze.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},ze.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var gt=function(e,t){this.state=e,this.lookAhead=t},pt=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 A=[e.state.modeGen],i={};Tt(e,t.text,e.doc.mode,n,(function(e,t){return A.push(e,t)}),i,r);for(var o=n.state,a=function(r){n.baseTokens=A;var a=e.state.overlays[r],s=1,l=0;n.state=!0,Tt(e,t.text,a.mode,n,(function(e,t){for(var n=s;le&&A.splice(s,1,e,A[s+1],r),s+=2,l=Math.min(e,r)}if(t)if(a.opaque)A.splice(n,s-n,e,"overlay "+t),s=n+2;else for(;ne.options.maxHighlightLength&&Ge(e.doc.mode,r.state),i=mt(e,t,r);A&&(r.state=A),t.stateAfter=r.save(!A),t.styles=i.styles,i.classes?t.styleClasses=i.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function yt(e,t,n){var r=e.doc,A=e.display;if(!r.mode.startState)return new pt(r,!0,t);var i=xt(e,t,n),o=i>r.first&&Ze(r,i-1).stateAfter,a=o?pt.fromSaved(r,o,i):new pt(r,Je(r.mode),i);return r.iter(i,t,(function(n){wt(e,n.text,a);var r=a.line;n.stateAfter=r==t-1||r%5==0||r>=A.viewFrom&&rt.start)return i}throw new Error("Mode "+e.name+" failed to advance stream.")}pt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},pt.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}},pt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},pt.fromSaved=function(e,t,n){return t instanceof gt?new pt(e,Ge(e.mode,t.state),n,t.lookAhead):new pt(e,Ge(e.mode,t),n)},pt.prototype.save=function(e){var t=!1!==e?Ge(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new gt(t,this.maxLookAhead):t};var Ct=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function Qt(e,t,n,r){var A,i,o=e.doc,a=o.mode,s=Ze(o,(t=ft(o,t)).line),l=yt(e,t.line,n),c=new ze(s.text,e.options.tabSize,l);for(r&&(i=[]);(r||c.pose.options.maxHighlightLength?(a=!1,o&&wt(e,t,r,u.pos),u.pos=t.length,s=null):s=kt(bt(n,u,r.state,f),i),f){var h=f[0].name;h&&(s="m-"+(s?h+" "+s:h))}if(!a||c!=s){for(;lo;--a){if(a<=i.first)return i.first;var s=Ze(i,a-1),l=s.stateAfter;if(l&&(!n||a+(l instanceof gt?l.lookAhead:0)<=i.modeFrontier))return a;var c=O(s.text,null,e.options.tabSize);(null==A||r>c)&&(A=a-1,r=c)}return A}function Et(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var A=Ze(e,r).stateAfter;if(A&&(!(A instanceof gt)||r+A.lookAhead=t:i.to>t);(r||(r=[])).push(new Ht(o,i.from,a?null:i.to))}}return r}function Ot(e,t,n){var r;if(e)for(var A=0;A=t:i.to>t)||i.from==t&&"bookmark"==o.type&&(!n||i.marker.insertLeft)){var a=null==i.from||(o.inclusiveLeft?i.from<=t:i.from0&&a)for(var y=0;y0)){var c=[s,1],u=ot(l.from,a.from),f=ot(l.to,a.to);(u<0||!o.inclusiveLeft&&!u)&&c.push({from:l.from,to:a.from}),(f>0||!o.inclusiveRight&&!f)&&c.push({from:a.to,to:l.to}),A.splice.apply(A,c),s+=c.length-3}}return A}function Kt(e){var t=e.markedSpans;if(t){for(var n=0;nt)&&(!n||jt(n,i.marker)<0)&&(n=i.marker)}return n}function Zt(e,t,n,r,A){var i=Ze(e,t),o=Ut&&i.markedSpans;if(o)for(var a=0;a=0&&u<=0||c<=0&&u>=0)&&(c<=0&&(s.marker.inclusiveRight&&A.inclusiveLeft?ot(l.to,n)>=0:ot(l.to,n)>0)||c>=0&&(s.marker.inclusiveRight&&A.inclusiveLeft?ot(l.from,r)<=0:ot(l.from,r)<0)))return!0}}}function qt(e){for(var t;t=Wt(e);)e=t.find(-1,!0).line;return e}function Yt(e){for(var t;t=Jt(e);)e=t.find(1,!0).line;return e}function en(e){for(var t,n;t=Jt(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=Jt(r);)r=n.find(1,!0).line;return tt(r)+1}function rn(e,t){var n=Ut&&t.markedSpans;if(n)for(var r=void 0,A=0;At.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var ln=function(e,t,n){this.text=e,$t(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),$t(e,n);var A=r?r(e):1;A!=e.height&&et(e,A)}function un(e){e.parent=null,Kt(e)}ln.prototype.lineNo=function(){return tt(this)},Be(ln);var fn={},hn={};function dn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?hn:fn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function gn(e,t){var n=U("span",null,null,s?"padding-right: .1px":null),r={pre:U("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var A=0;A<=(t.rest?t.rest.length:0);A++){var i=A?t.rest[A-1]:t.line,o=void 0;r.pos=0,r.addToken=mn,Le(e.display.measure)&&(o=fe(i,e.doc.direction))&&(r.addToken=yn(r.addToken,o)),r.map=[],Bn(i,r,vt(e,i,t!=e.display.externalMeasured&&tt(i))),i.styleClasses&&(i.styleClasses.bgClass&&(r.bgClass=I(i.styleClasses.bgClass,r.bgClass||"")),i.styleClasses.textClass&&(r.textClass=I(i.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Se(e.display.measure))),0==A?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(s){var a=r.content.lastChild;(/\bcm-tab\b/.test(a.className)||a.querySelector&&a.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return me(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=I(r.pre.className,r.textClass||"")),r}function pn(e){var t=F("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,A,i,s){if(t){var l,c=e.splitSpaces?vn(t,e.trailingSpace):t,u=e.cm.state.specialChars,f=!1;if(u.test(t)){l=document.createDocumentFragment();for(var h=0;;){u.lastIndex=h;var d=u.exec(t),g=d?d.index-h:t.length-h;if(g){var p=document.createTextNode(c.slice(h,h+g));o&&a<9?l.appendChild(F("span",[p])):l.appendChild(p),e.map.push(e.pos,e.pos+g,p),e.col+=g,e.pos+=g}if(!d)break;h+=g+1;var m=void 0;if("\t"==d[0]){var v=e.cm.options.tabSize,y=v-e.col%v;(m=l.appendChild(F("span",W(y),"cm-tab"))).setAttribute("role","presentation"),m.setAttribute("cm-text","\t"),e.col+=y}else"\r"==d[0]||"\n"==d[0]?((m=l.appendChild(F("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]),o&&a<9?l.appendChild(F("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),o&&a<9&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),n||r||A||f||i||s){var w=n||"";r&&(w+=r),A&&(w+=A);var B=F("span",[l],w,i);if(s)for(var b in s)s.hasOwnProperty(b)&&"style"!=b&&"class"!=b&&B.setAttribute(b,s[b]);return e.content.appendChild(B)}e.content.appendChild(l)}}function vn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",A=0;Al&&u.from<=l);f++);if(u.to>=c)return e(n,r,A,i,o,a,s);e(n,r.slice(0,u.to-l),A,i,null,a,s),i=null,r=r.slice(u.to-l),l=u.to}}}function wn(e,t,n,r){var A=!r&&n.widgetNode;A&&e.map.push(e.pos,e.pos+t,A),!r&&e.cm.display.input.needsContentAttribute&&(A||(A=e.content.appendChild(document.createElement("span"))),A.setAttribute("cm-marker",n.id)),A&&(e.cm.display.input.setUneditable(A),e.content.appendChild(A)),e.pos+=t,e.trailingSpace=!1}function Bn(e,t,n){var r=e.markedSpans,A=e.text,i=0;if(r)for(var o,a,s,l,c,u,f,h=A.length,d=0,g=1,p="",m=0;;){if(m==d){s=l=c=a="",f=null,u=null,m=1/0;for(var v=[],y=void 0,w=0;wd||b.collapsed&&B.to==d&&B.from==d)){if(null!=B.to&&B.to!=d&&m>B.to&&(m=B.to,l=""),b.className&&(s+=" "+b.className),b.css&&(a=(a?a+";":"")+b.css),b.startStyle&&B.from==d&&(c+=" "+b.startStyle),b.endStyle&&B.to==m&&(y||(y=[])).push(b.endStyle,B.to),b.title&&((f||(f={})).title=b.title),b.attributes)for(var C in b.attributes)(f||(f={}))[C]=b.attributes[C];b.collapsed&&(!u||jt(u.marker,b)<0)&&(u=B)}else B.from>d&&m>B.from&&(m=B.from)}if(y)for(var Q=0;Q=h)break;for(var T=Math.min(h,m);;){if(p){var x=d+p.length;if(!u){var E=x>T?p.slice(0,T-d):p;t.addToken(t,E,o?o+s:s,c,d+E.length==m?l:"",a,f)}if(x>=T){p=p.slice(T-d),d=T;break}d=x,c=""}p=A.slice(i,i=n[g++]),o=dn(n[g++],t.cm.options)}}else for(var F=1;F2&&i.push((s.bottom+l.top)/2-n.top)}}i.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[A],cache:e.measure.caches[A],before:!0}}function Yn(e,t){var n=tt(t=qt(t)),r=e.display.externalMeasured=new bn(e.doc,t,n);r.lineN=n;var A=r.built=gn(e,r);return r.text=A.pre,E(e.display.lineMeasure,A.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)&&(A=(i=s-a)-1,t>=s&&(o="right")),null!=A){if(r=e[l+2],a==s&&n==(r.insertLeft?"left":"right")&&(o=n),"left"==n&&0==A)for(;l&&e[l-2]==e[l-3]&&e[l-1].insertLeft;)r=e[2+(l-=3)],o="left";if("right"==n&&A==s-a)for(;l=0&&(n=e[A]).left==n.right;A--);return n}function sr(e,t,n,r){var A,i=or(t.map,n,r),s=i.node,l=i.start,c=i.end,u=i.collapse;if(3==s.nodeType){for(var f=0;f<4;f++){for(;l&&ie(t.line.text.charAt(i.coverStart+l));)--l;for(;i.coverStart+c0&&(u=r="right"),A=e.options.lineWrapping&&(h=s.getClientRects()).length>1?h["right"==r?h.length-1:0]:s.getBoundingClientRect()}if(o&&a<9&&!l&&(!A||!A.left&&!A.right)){var d=s.parentNode.getClientRects()[0];A=d?{left:d.left,right:d.left+Ur(e.display),top:d.top,bottom:d.bottom}:ir}for(var g=A.top-t.rect.top,p=A.bottom-t.rect.top,m=(g+p)/2,v=t.view.measure.heights,y=0;y=r.text.length?(s=r.text.length,l="before"):s<=0&&(s=0,l="after"),!a)return o("before"==l?s-1:s,"before"==l);function c(e,t,n){return o(n?e-1:e,1==a[t].level!=n)}var u=ce(a,s,l),f=le,h=c(s,u,"before"==l);return null!=f&&(h.other=c(s,f,"before"!=l)),h}function wr(e,t){var n=0;t=ft(e.doc,t),e.options.lineWrapping||(n=Ur(e.display)*t.ch);var r=Ze(e.doc,t.line),A=on(r)+Vn(e.display);return{left:n,right:n,top:A,bottom:A+r.height}}function Br(e,t,n,r,A){var i=it(e,t,n);return i.xRel=A,r&&(i.outside=r),i}function br(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Br(r.first,0,null,-1,-1);var A=nt(r,n),i=r.first+r.size-1;if(A>i)return Br(r.first+r.size-1,Ze(r,i).text.length,null,1,1);t<0&&(t=0);for(var o=Ze(r,A);;){var a=Tr(e,o,A,t,n),s=zt(o,a.ch+(a.xRel>0||a.outside>0?1:0));if(!s)return a;var l=s.find(1);if(l.line==A)return l;o=Ze(r,A=l.line)}}function Cr(e,t,n,r){r-=gr(t);var A=t.text.length,i=ae((function(t){return rr(e,n,t-1).bottom<=r}),A,0);return{begin:i,end:A=ae((function(t){return rr(e,n,t).top>r}),i,A)}}function Qr(e,t,n,r){return n||(n=nr(e,t)),Cr(e,t,n,pr(e,t,rr(e,n,r),"line").top)}function kr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function Tr(e,t,n,r,A){A-=on(t);var i=nr(e,t),o=gr(t),a=0,s=t.text.length,l=!0,c=fe(t,e.doc.direction);if(c){var u=(e.options.lineWrapping?Er:xr)(e,t,n,i,c,r,A);a=(l=1!=u.level)?u.from:u.to-1,s=l?u.to:u.from-1}var f,h,d=null,g=null,p=ae((function(t){var n=rr(e,i,t);return n.top+=o,n.bottom+=o,!!kr(n,r,A,!1)&&(n.top<=A&&n.left<=r&&(d=t,g=n),!0)}),a,s),m=!1;if(g){var v=r-g.left=w.bottom?1:0}return Br(n,p=oe(t.text,p,1),h,m,r-f)}function xr(e,t,n,r,A,i,o){var a=ae((function(a){var s=A[a],l=1!=s.level;return kr(yr(e,it(n,l?s.to:s.from,l?"before":"after"),"line",t,r),i,o,!0)}),0,A.length-1),s=A[a];if(a>0){var l=1!=s.level,c=yr(e,it(n,l?s.from:s.to,l?"after":"before"),"line",t,r);kr(c,i,o,!0)&&c.top>o&&(s=A[a-1])}return s}function Er(e,t,n,r,A,i,o){var a=Cr(e,t,r,o),s=a.begin,l=a.end;/\s/.test(t.text.charAt(l-1))&&l--;for(var c=null,u=null,f=0;f=l||h.to<=s)){var d=rr(e,r,1!=h.level?Math.min(l,h.to)-1:Math.max(s,h.from)).right,g=dg)&&(c=h,u=g)}}return c||(c=A[A.length-1]),c.froml&&(c={from:c.from,to:l,level:c.level}),c}function Fr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Ar){Ar=F("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Ar.appendChild(document.createTextNode("x")),Ar.appendChild(F("br"));Ar.appendChild(document.createTextNode("x"))}E(e.measure,Ar);var n=Ar.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),x(e.measure),n||1}function Ur(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=F("span","xxxxxxxxxx"),n=F("pre",[t],"CodeMirror-line-like");E(e.measure,n);var r=t.getBoundingClientRect(),A=(r.right-r.left)/10;return A>2&&(e.cachedCharWidth=A),A||10}function Sr(e){for(var t=e.display,n={},r={},A=t.gutters.clientLeft,i=t.gutters.firstChild,o=0;i;i=i.nextSibling,++o){var a=e.display.gutterSpecs[o].className;n[a]=i.offsetLeft+i.clientLeft+A,r[a]=i.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 Hr(e){var t=Fr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Ur(e.display)-3);return function(A){if(rn(e.doc,A))return 0;var i=0;if(A.widgets)for(var o=0;o0&&(s=Ze(e.doc,l.line).text).length==l.ch){var c=O(s,s.length,e.options.tabSize)-s.length;l=it(l.line,Math.max(0,Math.round((i-Gn(e.display).left)/Ur(e.display))-c))}return l}function _r(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)&&(A.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=A.viewTo)Ut&&tn(e.doc,t)A.viewFrom?Nr(e):(A.viewFrom+=r,A.viewTo+=r);else if(t<=A.viewFrom&&n>=A.viewTo)Nr(e);else if(t<=A.viewFrom){var i=Rr(e,n,n+r,1);i?(A.view=A.view.slice(i.index),A.viewFrom=i.lineN,A.viewTo+=r):Nr(e)}else if(n>=A.viewTo){var o=Rr(e,t,t,-1);o?(A.view=A.view.slice(0,o.index),A.viewTo=o.lineN):Nr(e)}else{var a=Rr(e,t,t,-1),s=Rr(e,n,n+r,1);a&&s?(A.view=A.view.slice(0,a.index).concat(Cn(e,a.lineN,s.lineN)).concat(A.view.slice(s.index)),A.viewTo+=r):Nr(e)}var l=A.externalMeasured;l&&(n=A.lineN&&t=r.viewTo)){var i=r.view[_r(e,t)];if(null!=i.node){var o=i.changes||(i.changes=[]);-1==R(o,n)&&o.push(n)}}}function Nr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Rr(e,t,n,r){var A,i=_r(e,t),o=e.display.view;if(!Ut||n==e.doc.first+e.doc.size)return{index:i,lineN:n};for(var a=e.display.viewFrom,s=0;s0){if(i==o.length-1)return null;A=a+o[i].size-t,i++}else A=a-t;t+=A,n+=A}for(;tn(e.doc,n)!=n;){if(i==(r<0?0:o.length-1))return null;n+=r*o[i-(r<0?1:0)].size,i+=r}return{index:i,lineN:n}}function Pr(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=Cn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=Cn(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,_r(e,n)))),r.viewTo=n}function Kr(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||a.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 Jr(e){e.state.focused||(e.display.input.focus(),Zr(e))}function zr(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,H(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),s&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Wr(e))}function qr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(me(e,"blur",e,t),e.state.focused=!1,T(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Yr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r.005||f<-.005)&&(et(A.line,s),eA(A.line),A.rest))for(var h=0;he.display.sizerWidth){var d=Math.ceil(l/Ur(e.display));d>e.display.maxLineLength&&(e.display.maxLineLength=d,e.display.maxLine=A.line,e.display.maxLineChanged=!0)}}}}function eA(e){if(e.widgets)for(var t=0;t=o&&(i=nt(t,on(Ze(t,s))-e.wrapper.clientHeight),o=s)}return{from:i,to:Math.max(o,i+1)}}function nA(e,t){if(!ve(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),A=null;if(t.top+r.top<0?A=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(A=!1),null!=A&&!d){var i=F("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Vn(e.display))+"px;\n height: "+(t.bottom-t.top+Wn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(i),i.scrollIntoView(A),e.display.lineSpace.removeChild(i)}}}function rA(e,t,n,r){var A;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==(t=t.ch?it(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?it(t.line,t.ch+1,"before"):t);for(var i=0;i<5;i++){var o=!1,a=yr(e,t),s=n&&n!=t?yr(e,n):a,l=iA(e,A={left:Math.min(a.left,s.left),top:Math.min(a.top,s.top)-r,right:Math.max(a.left,s.left),bottom:Math.max(a.bottom,s.bottom)+r}),c=e.doc.scrollTop,u=e.doc.scrollLeft;if(null!=l.scrollTop&&(fA(e,l.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(o=!0)),null!=l.scrollLeft&&(dA(e,l.scrollLeft),Math.abs(e.doc.scrollLeft-u)>1&&(o=!0)),!o)break}return A}function AA(e,t){var n=iA(e,t);null!=n.scrollTop&&fA(e,n.scrollTop),null!=n.scrollLeft&&dA(e,n.scrollLeft)}function iA(e,t){var n=e.display,r=Fr(e.display);t.top<0&&(t.top=0);var A=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,i=zn(e),o={};t.bottom-t.top>i&&(t.bottom=t.top+i);var a=e.doc.height+jn(n),s=t.topa-r;if(t.topA+i){var c=Math.min(t.top,(l?a:t.bottom)-i);c!=A&&(o.scrollTop=c)}var u=e.options.fixedGutter?0:n.gutters.offsetWidth,f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-u,h=Jn(e)-n.gutters.offsetWidth,d=t.right-t.left>h;return d&&(t.right=t.left+h),t.left<10?o.scrollLeft=0:t.lefth+f-3&&(o.scrollLeft=t.right+(d?0:10)-h),o}function oA(e,t){null!=t&&(cA(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function aA(e){cA(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function sA(e,t,n){null==t&&null==n||cA(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function lA(e,t){cA(e),e.curOp.scrollToPos=t}function cA(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,uA(e,wr(e,t.from),wr(e,t.to),t.margin))}function uA(e,t,n,r){var A=iA(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});sA(e,A.scrollLeft,A.scrollTop)}function fA(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||$A(e,{top:t}),hA(e,t,!0),n&&$A(e),MA(e,100))}function hA(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 dA(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,GA(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function gA(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+jn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Wn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var pA=function(e,t,n){this.cm=n;var r=this.vert=F("div",[F("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),A=this.horiz=F("div",[F("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=A.tabIndex=-1,e(r),e(A),de(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),de(A,"scroll",(function(){A.clientWidth&&t(A.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,o&&a<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};pA.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 A=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+A)+"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 i=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+i)+"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}},pA.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},pA.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},pA.prototype.zeroWidthHack=function(){var e=v&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new N,this.disableVert=new N},pA.prototype.enableZeroWidthBar=function(e,t,n){function r(){var A=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(A.right-1,(A.top+A.bottom)/2):document.elementFromPoint((A.right+A.left)/2,A.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}e.style.pointerEvents="auto",t.set(1e3,r)},pA.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var mA=function(){};function vA(e,t){t||(t=gA(e));var n=e.display.barWidth,r=e.display.barHeight;yA(e,t);for(var A=0;A<4&&n!=e.display.barWidth||r!=e.display.barHeight;A++)n!=e.display.barWidth&&e.options.lineWrapping&&Yr(e),yA(e,gA(e)),n=e.display.barWidth,r=e.display.barHeight}function yA(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=""}mA.prototype.update=function(){return{bottom:0,right:0}},mA.prototype.setScrollLeft=function(){},mA.prototype.setScrollTop=function(){},mA.prototype.clear=function(){};var wA={native:pA,null:mA};function BA(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&T(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new wA[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?dA(e,t):fA(e,t)}),e),e.display.scrollbars.addClass&&H(e.display.wrapper,e.display.scrollbars.addClass)}var bA=0;function CA(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:++bA},kn(e.curOp)}function QA(e){var t=e.curOp;t&&xn(t,(function(e){for(var t=0;t=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new DA(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function xA(e){e.updatedDisplay=e.mustUpdate&&PA(e.cm,e.update)}function EA(e){var t=e.cm,n=t.display;e.updatedDisplay&&Yr(t),e.barMeasure=gA(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=er(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Wn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Jn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function FA(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var n=+new Date+e.options.workTime,r=yt(e,t.highlightFrontier),A=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(i){if(r.line>=e.display.viewFrom){var o=i.styles,a=i.text.length>e.options.maxHighlightLength?Ge(t.mode,r.state):null,s=mt(e,i,r,!0);a&&(r.state=a),i.styles=s.styles;var l=i.styleClasses,c=s.classes;c?i.styleClasses=c:l&&(i.styleClasses=null);for(var u=!o||o.length!=i.styles.length||l!=c&&(!l||!c||l.bgClass!=c.bgClass||l.textClass!=c.textClass),f=0;!u&&fn)return MA(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),A.length&&SA(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;WA(e)&&(Nr(e),t.dims=Sr(e));var A=r.first+r.size,i=Math.max(t.visible.from-e.options.viewportMargin,r.first),o=Math.min(A,t.visible.to+e.options.viewportMargin);n.viewFromo&&n.viewTo-o<20&&(o=Math.min(A,n.viewTo)),Ut&&(i=tn(e.doc,i),o=nn(e.doc,o));var a=i!=n.viewFrom||o!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Pr(e,i,o),n.viewOffset=on(Ze(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var s=Kr(e);if(!a&&0==s&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var l=NA(e);return s>4&&(n.lineDiv.style.display="none"),XA(e,n.updateLineNumbers,t.dims),s>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,RA(l),x(n.cursorDiv),x(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,a&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,MA(e,400)),n.updateLineNumbers=null,!0}function KA(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Jn(e))r&&(t.visible=tA(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+jn(e.display)-zn(e),n.top)}),t.visible=tA(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!PA(e,t))break;Yr(e);var A=gA(e);$r(e),vA(e,A),jA(e,A),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 $A(e,t){var n=new DA(e,t);if(PA(e,n)){Yr(e),KA(e,n);var r=gA(e);$r(e),vA(e,r),jA(e,r),n.finish()}}function XA(e,t,n){var r=e.display,A=e.options.lineNumbers,i=r.lineDiv,o=i.firstChild;function a(t){var n=t.nextSibling;return s&&v&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var l=r.view,c=r.viewFrom,u=0;u-1&&(h=!1),Sn(e,f,c,n)),h&&(x(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(At(e.options,c)))),o=f.node.nextSibling}else{var d=Nn(e,f,c,n);i.insertBefore(d,o)}c+=f.size}for(;o;)o=a(o)}function VA(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function jA(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Wn(e)+"px"}function GA(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,A=t.gutters.offsetWidth,i=r+"px",o=0;oa.clientWidth,c=a.scrollHeight>a.clientHeight;if(A&&l||i&&c){if(i&&v&&s)e:for(var f=t.target,h=o.view;f!=a;f=f.parentNode)for(var d=0;d=0&&ot(e,r.to())<=0)return n}return-1};var ii=function(e,t){this.anchor=e,this.head=t};function oi(e,t,n){var r=e&&e.options.selectionsMayTouch,A=t[n];t.sort((function(e,t){return ot(e.from(),t.from())})),n=R(t,A);for(var i=1;i0:s>=0){var l=ct(a.from(),o.from()),c=lt(a.to(),o.to()),u=a.empty()?o.from()==o.head:a.from()==a.head;i<=n&&--n,t.splice(--i,2,new ii(u?c:l,u?l:c))}}return new Ai(t,n)}function ai(e,t){return new Ai([new ii(e,t||e)],0)}function si(e){return e.text?it(e.from.line+e.text.length-1,J(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function li(e,t){if(ot(e,t.from)<0)return e;if(ot(e,t.to)<=0)return si(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+=si(t).ch-t.to.ch),it(n,r)}function ci(e,t){for(var n=[],r=0;r1&&e.remove(a.line+1,d-1),e.insert(a.line+1,m)}Fn(e,"change",e,t)}function mi(e,t,n){function r(e,A,i){if(e.linked)for(var o=0;o1&&!e.done[e.done.length-2].ranges?(e.done.pop(),J(e.done)):void 0}function ki(e,t,n,r){var A=e.history;A.undone.length=0;var i,o,a=+new Date;if((A.lastOp==r||A.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&A.lastModTime>a-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(i=Qi(A,A.lastOp==r)))o=J(i.changes),0==ot(t.from,t.to)&&0==ot(t.from,o.to)?o.to=si(t):i.changes.push(bi(e,t));else{var s=J(A.done);for(s&&s.ranges||Ei(e.sel,A.done),i={changes:[bi(e,t)],generation:A.generation},A.done.push(i);A.done.length>A.undoDepth;)A.done.shift(),A.done[0].ranges||A.done.shift()}A.done.push(n),A.generation=++A.maxGeneration,A.lastModTime=A.lastSelTime=a,A.lastOp=A.lastSelOp=r,A.lastOrigin=A.lastSelOrigin=t.origin,o||me(e,"historyAdded")}function Ti(e,t,n,r){var A=t.charAt(0);return"*"==A||"+"==A&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function xi(e,t,n,r){var A=e.history,i=r&&r.origin;n==A.lastSelOp||i&&A.lastSelOrigin==i&&(A.lastModTime==A.lastSelTime&&A.lastOrigin==i||Ti(e,i,J(A.done),t))?A.done[A.done.length-1]=t:Ei(t,A.done),A.lastSelTime=+new Date,A.lastSelOrigin=i,A.lastSelOp=n,r&&!1!==r.clearRedo&&Ci(A.undone)}function Ei(e,t){var n=J(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Fi(e,t,n,r){var A=t["spans_"+e.id],i=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((A||(A=t["spans_"+e.id]={}))[i]=n.markedSpans),++i}))}function Ui(e){if(!e)return null;for(var t,n=0;n-1&&(J(a)[u]=l[u],delete l[u])}}}return r}function Ii(e,t,n,r){if(r){var A=e.anchor;if(n){var i=ot(t,A)<0;i!=ot(n,A)<0?(A=t,t=n):i!=ot(t,n)<0&&(t=n)}return new ii(A,t)}return new ii(n||t,t)}function Mi(e,t,n,r,A){null==A&&(A=e.cm&&(e.cm.display.shift||e.extend)),Pi(e,new Ai([Ii(e.sel.primary(),t,n,A)],0),r)}function _i(e,t,n){for(var r=[],A=e.cm&&(e.cm.display.shift||e.extend),i=0;i=t.ch:a.to>t.ch))){if(A&&(me(s,"beforeCursorEnter"),s.explicitlyCleared)){if(i.markedSpans){--o;continue}break}if(!s.atomic)continue;if(n){var u=s.find(r<0?1:-1),f=void 0;if((r<0?c:l)&&(u=Wi(e,u,-r,u&&u.line==t.line?i:null)),u&&u.line==t.line&&(f=ot(u,n))&&(r<0?f<0:f>0))return ji(e,u,t,r,A)}var h=s.find(r<0?-1:1);return(r<0?l:c)&&(h=Wi(e,h,r,h.line==t.line?i:null)),h?ji(e,h,t,r,A):null}}return t}function Gi(e,t,n,r,A){var i=r||1,o=ji(e,t,n,i,A)||!A&&ji(e,t,n,i,!0)||ji(e,t,n,-i,A)||!A&&ji(e,t,n,-i,!0);return o||(e.cantEdit=!0,it(e.first,0))}function Wi(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?ft(e,it(t.line-1)):null:n>0&&t.ch==(r||Ze(e,t.line)).text.length?t.line=0;--A)qi(e,{from:r[A].from,to:r[A].to,text:A?[""]:t.text,origin:t.origin});else qi(e,t)}}function qi(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ot(t.from,t.to)){var n=ci(e,t);ki(e,t,n,e.cm?e.cm.curOp.id:NaN),to(e,t,n,Nt(e,t));var r=[];mi(e,(function(e,n){n||-1!=R(r,e.history)||(oo(e.history,t),r.push(e.history)),to(e,t,null,Nt(e,t))}))}}function Yi(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var A,i=e.history,o=e.sel,a="undo"==t?i.done:i.undone,s="undo"==t?i.undone:i.done,l=0;l=0;--h){var d=f(h);if(d)return d.v}}}}function eo(e,t){if(0!=t&&(e.first+=t,e.sel=new Ai(z(e.sel.ranges,(function(e){return new ii(it(e.anchor.line+t,e.anchor.ch),it(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Dr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.linei&&(t={from:t.from,to:it(i,Ze(e,i).text.length),text:[t.text[0]],origin:t.origin}),t.removed=qe(e,t.from,t.to),n||(n=ci(e,t)),e.cm?no(e.cm,t,r):pi(e,t,r),Ki(e,n,$),e.cantEdit&&Gi(e,it(e.firstLine(),0))&&(e.cantEdit=!1)}}function no(e,t,n){var r=e.doc,A=e.display,i=t.from,o=t.to,a=!1,s=i.line;e.options.lineWrapping||(s=tt(qt(Ze(r,i.line))),r.iter(s,o.line+1,(function(e){if(e==A.maxLine)return a=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&ye(e),pi(r,t,n,Hr(e)),e.options.lineWrapping||(r.iter(s,i.line+t.text.length,(function(e){var t=an(e);t>A.maxLineLength&&(A.maxLine=e,A.maxLineLength=t,A.maxLineChanged=!0,a=!1)})),a&&(e.curOp.updateMaxLine=!0)),Et(r,i.line),MA(e,400);var l=t.text.length-(o.line-i.line)-1;t.full?Dr(e):i.line!=o.line||1!=t.text.length||gi(e.doc,t)?Dr(e,i.line,o.line+1,l):Or(e,i.line,"text");var c=we(e,"changes"),u=we(e,"change");if(u||c){var f={from:i,to:o,text:t.text,removed:t.removed,origin:t.origin};u&&Fn(e,"change",e,f),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(f)}e.display.selForContextMenu=null}function ro(e,t,n,r,A){var i;r||(r=n),ot(r,n)<0&&(n=(i=[r,n])[0],r=i[1]),"string"==typeof t&&(t=e.splitLines(t)),Zi(e,{from:n,to:r,text:t,origin:A})}function Ao(e,t,n,r){n1||!(this.children[0]instanceof so))){var a=[];this.collapse(a),this.children=[new so(a)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var o=A.lines.length%25+25,a=o;a10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r0||0==o&&!1!==i.clearWhenEmpty)return i;if(i.replacedWith&&(i.collapsed=!0,i.widgetNode=U("span",[i.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||i.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(i.widgetNode.insertLeft=!0)),i.collapsed){if(Zt(e,t.line,t,n,i)||t.line!=n.line&&Zt(e,n.line,t,n,i))throw new Error("Inserting collapsed marker partially overlapping an existing one");Lt()}i.addToHistory&&ki(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var a,s=t.line,l=e.cm;if(e.iter(s,n.line+1,(function(e){l&&i.collapsed&&!l.options.lineWrapping&&qt(e)==l.display.maxLine&&(a=!0),i.collapsed&&s!=t.line&&et(e,0),_t(e,new Ht(i,s==t.line?t.ch:null,s==n.line?n.ch:null)),++s})),i.collapsed&&e.iter(t.line,n.line+1,(function(t){rn(e,t)&&et(t,0)})),i.clearOnEnter&&de(i,"beforeCursorEnter",(function(){return i.clear()})),i.readOnly&&(St(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),i.collapsed&&(i.id=++ho,i.atomic=!0),l){if(a&&(l.curOp.updateMaxLine=!0),i.collapsed)Dr(l,t.line,n.line+1);else if(i.className||i.startStyle||i.endStyle||i.css||i.attributes||i.title)for(var c=t.line;c<=n.line;c++)Or(l,c,"text");i.atomic&&Xi(l.doc),Fn(l,"markerAdded",l,i)}return i}go.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&CA(e),we(this,"clear")){var n=this.find();n&&Fn(this,"clear",n.from,n.to)}for(var r=null,A=null,i=0;ie.display.maxLineLength&&(e.display.maxLine=l,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Dr(e,r,A+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Xi(e.doc)),e&&Fn(e,"markerCleared",e,this,r,A),t&&QA(e),this.parent&&this.parent.clear()}},go.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var A=0;A=0;s--)Zi(this,r[s]);a?Ri(this,a):this.cm&&aA(this.cm)})),undo:IA((function(){Yi(this,"undo")})),redo:IA((function(){Yi(this,"redo")})),undoSelection:IA((function(){Yi(this,"undo",!0)})),redoSelection:IA((function(){Yi(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(A.marker.parent||A.marker)}return t},findMarks:function(e,t,n){e=ft(this,e),t=ft(this,t);var r=[],A=e.line;return this.iter(e.line,t.line+1,(function(i){var o=i.markedSpans;if(o)for(var a=0;a=s.to||null==s.from&&A!=e.line||null!=s.from&&A==t.line&&s.from>=t.ch||n&&!n(s.marker)||r.push(s.marker.parent||s.marker)}++A})),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-=i,++n})),ft(this,it(n,t))},indexFromPos:function(e){var t=(e=ft(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 f;if(t.state.draggingText&&!t.state.draggingText.copy&&(f=t.listSelections()),Ki(t.doc,ai(n,n)),f)for(var h=0;h=0;t--)ro(e.doc,"",r[t].from,r[t].to,"+delete");aA(e)}))}function Go(e,t,n){var r=oe(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Wo(e,t,n){var r=Go(e,t.ch,n);return null==r?null:new it(t.line,r,n<0?"after":"before")}function Jo(e,t,n,r,A){if(e){"rtl"==t.doc.direction&&(A=-A);var i=fe(n,t.doc.direction);if(i){var o,a=A<0?J(i):i[0],s=A<0==(1==a.level)?"after":"before";if(a.level>0||"rtl"==t.doc.direction){var l=nr(t,n);o=A<0?n.text.length-1:0;var c=rr(t,l,o).top;o=ae((function(e){return rr(t,l,e).top==c}),A<0==(1==a.level)?a.from:a.to-1,o),"before"==s&&(o=Go(n,o,1))}else o=A<0?a.to:a.from;return new it(r,o,s)}}return new it(r,A<0?n.text.length:0,A<0?"before":"after")}function zo(e,t,n,r){var A=fe(t,e.doc.direction);if(!A)return Wo(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 i=ce(A,n.ch,n.sticky),o=A[i];if("ltr"==e.doc.direction&&o.level%2==0&&(r>0?o.to>n.ch:o.from=o.from&&f>=c.begin)){var h=u?"before":"after";return new it(n.line,f,h)}}var d=function(e,t,r){for(var i=function(e,t){return t?new it(n.line,s(e,1),"before"):new it(n.line,e,"after")};e>=0&&e0==(1!=o.level),l=a?r.begin:s(r.end,-1);if(o.from<=l&&l0?c.end:s(c.begin,-1);return null==p||r>0&&p==t.text.length||!(g=d(r>0?0:A.length-1,r,l(p)))?null:g}Oo.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"},Oo.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"},Oo.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"},Oo.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"]},Oo.default=v?Oo.macDefault:Oo.pcDefault;var Zo={selectAll:Ji,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),$)},killLine:function(e){return jo(e,(function(t){if(t.empty()){var n=Ze(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)A=new it(A.line,A.ch+1),e.replaceRange(i.charAt(A.ch-1)+i.charAt(A.ch-2),it(A.line,A.ch-2),A,"+transpose");else if(A.line>e.doc.first){var o=Ze(e.doc,A.line-1).text;o&&(A=new it(A.line,1),e.replaceRange(i.charAt(0)+e.doc.lineSeparator()+o.charAt(o.length-1),it(A.line-1,o.length-1),A,"+transpose"))}n.push(new ii(A,A))}e.setSelections(n)}))},newlineAndIndent:function(e){return SA(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&&(ot((A=a.ranges[A]).from(),t)<0||t.xRel>0)&&(ot(A.to(),t)>0||t.xRel<0)?ba(e,r,t,i):Qa(e,r,t,i)}function ba(e,t,n,r){var A=e.display,i=!1,l=LA(e,(function(t){s&&(A.scroller.draggable=!1),e.state.draggingText=!1,pe(A.wrapper.ownerDocument,"mouseup",l),pe(A.wrapper.ownerDocument,"mousemove",c),pe(A.scroller,"dragstart",u),pe(A.scroller,"drop",l),i||(be(t),r.addNew||Mi(e.doc,n,null,null,r.extend),s&&!f||o&&9==a?setTimeout((function(){A.wrapper.ownerDocument.body.focus({preventScroll:!0}),A.input.focus()}),20):A.input.focus())})),c=function(e){i=i||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},u=function(){return i=!0};s&&(A.scroller.draggable=!0),e.state.draggingText=l,l.copy=!r.moveOnDrag,A.scroller.dragDrop&&A.scroller.dragDrop(),de(A.wrapper.ownerDocument,"mouseup",l),de(A.wrapper.ownerDocument,"mousemove",c),de(A.scroller,"dragstart",u),de(A.scroller,"drop",l),zr(e),setTimeout((function(){return A.input.focus()}),20)}function Ca(e,t,n){if("char"==n)return new ii(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new ii(it(t.line,0),ft(e.doc,it(t.line+1,0)));var r=n(e,t);return new ii(r.from,r.to)}function Qa(e,t,n,r){var A=e.display,i=e.doc;be(t);var o,a,s=i.sel,l=s.ranges;if(r.addNew&&!r.extend?(a=i.sel.contains(n),o=a>-1?l[a]:new ii(n,n)):(o=i.sel.primary(),a=i.sel.primIndex),"rectangle"==r.unit)r.addNew||(o=new ii(n,n)),n=Mr(e,t,!0,!0),a=-1;else{var c=Ca(e,n,r.unit);o=r.extend?Ii(o,c.anchor,c.head,r.extend):c}r.addNew?-1==a?(a=l.length,Pi(i,oi(e,l.concat([o]),a),{scroll:!1,origin:"*mouse"})):l.length>1&&l[a].empty()&&"char"==r.unit&&!r.extend?(Pi(i,oi(e,l.slice(0,a).concat(l.slice(a+1)),0),{scroll:!1,origin:"*mouse"}),s=i.sel):Di(i,a,o,X):(a=0,Pi(i,new Ai([o],0),X),s=i.sel);var u=n;function f(t){if(0!=ot(u,t))if(u=t,"rectangle"==r.unit){for(var A=[],l=e.options.tabSize,c=O(Ze(i,n.line).text,n.ch,l),f=O(Ze(i,t.line).text,t.ch,l),h=Math.min(c,f),d=Math.max(c,f),g=Math.min(n.line,t.line),p=Math.min(e.lastLine(),Math.max(n.line,t.line));g<=p;g++){var m=Ze(i,g).text,v=j(m,h,l);h==d?A.push(new ii(it(g,v),it(g,v))):m.length>v&&A.push(new ii(it(g,v),it(g,j(m,d,l))))}A.length||A.push(new ii(n,n)),Pi(i,oi(e,s.ranges.slice(0,a).concat(A),a),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var y,w=o,B=Ca(e,t,r.unit),b=w.anchor;ot(B.anchor,b)>0?(y=B.head,b=ct(w.from(),B.anchor)):(y=B.anchor,b=lt(w.to(),B.head));var C=s.ranges.slice(0);C[a]=ka(e,new ii(ft(i,b),y)),Pi(i,oi(e,C,a),X)}}var h=A.wrapper.getBoundingClientRect(),d=0;function g(t){var n=++d,o=Mr(e,t,!0,"rectangle"==r.unit);if(o)if(0!=ot(o,u)){e.curOp.focus=L(),f(o);var a=tA(A,i);(o.line>=a.to||o.lineh.bottom?20:0;s&&setTimeout(LA(e,(function(){d==n&&(A.scroller.scrollTop+=s,g(t))})),50)}}function p(t){e.state.selectingText=!1,d=1/0,t&&(be(t),A.input.focus()),pe(A.wrapper.ownerDocument,"mousemove",m),pe(A.wrapper.ownerDocument,"mouseup",v),i.history.lastSelOrigin=null}var m=LA(e,(function(e){0!==e.buttons&&xe(e)?g(e):p(e)})),v=LA(e,p);e.state.selectingText=v,de(A.wrapper.ownerDocument,"mousemove",m),de(A.wrapper.ownerDocument,"mouseup",v)}function ka(e,t){var n=t.anchor,r=t.head,A=Ze(e.doc,n.line);if(0==ot(n,r)&&n.sticky==r.sticky)return t;var i=fe(A);if(!i)return t;var o=ce(i,n.ch,n.sticky),a=i[o];if(a.from!=n.ch&&a.to!=n.ch)return t;var s,l=o+(a.from==n.ch==(1!=a.level)?0:1);if(0==l||l==i.length)return t;if(r.line!=n.line)s=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=ce(i,r.ch,r.sticky),u=c-o||(r.ch-n.ch)*(1==a.level?-1:1);s=c==l-1||c==l?u<0:u>0}var f=i[l+(s?-1:0)],h=s==(1==f.level),d=h?f.from:f.to,g=h?"after":"before";return n.ch==d&&n.sticky==g?t:new ii(new it(n.line,d,g),r)}function Ta(e,t,n,r){var A,i;if(t.touches)A=t.touches[0].clientX,i=t.touches[0].clientY;else try{A=t.clientX,i=t.clientY}catch(e){return!1}if(A>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&be(t);var o=e.display,a=o.lineDiv.getBoundingClientRect();if(i>a.bottom||!we(e,n))return Qe(t);i-=a.top-o.viewOffset;for(var s=0;s=A)return me(e,n,e,nt(e.doc,i),e.display.gutterSpecs[s].className,t),Qe(t)}}function xa(e,t){return Ta(e,t,"gutterClick",!0)}function Ea(e,t){Xn(e.display,t)||Fa(e,t)||ve(e,t,"contextmenu")||C||e.display.input.onContextMenu(t)}function Fa(e,t){return!!we(e,"gutterContextMenu")&&Ta(e,t,"gutterContextMenu",!1)}function Ua(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),fr(e)}pa.prototype.compare=function(e,t,n){return this.time+ga>e&&0==ot(t,this.pos)&&n==this.button};var Sa={toString:function(){return"CodeMirror.Init"}},La={},Ha={};function Ia(e){var t=e.optionHandlers;function n(n,r,A,i){e.defaults[n]=r,A&&(t[n]=i?function(e,t,n){n!=Sa&&A(e,t,n)}:A)}e.defineOption=n,e.Init=Sa,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,hi(e)}),!0),n("indentUnit",2,hi,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){di(e),fr(e),Dr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var A=0;;){var i=e.text.indexOf(t,A);if(-1==i)break;A=i+t.length,n.push(it(r,i))}r++}));for(var A=n.length-1;A>=0;A--)ro(e.doc,t,n[A],it(n[A].line,n[A].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!=Sa&&e.refresh()})),n("specialCharPlaceholder",pn,(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",!w),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){Ua(e),ZA(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Vo(t),A=n!=Sa&&Vo(n);A&&A.detach&&A.detach(e,r),r.attach&&r.attach(e,A||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,_a,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=JA(t,e.options.lineNumbers),ZA(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 vA(e)}),!0),n("scrollbarStyle","native",(function(e){BA(e),vA(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=JA(e.options.gutters,t),ZA(e)}),!0),n("firstLineNumber",1,ZA,!0),n("lineNumberFormatter",(function(e){return e}),ZA,!0),n("showCursorWhenSelecting",!1,$r,!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,Ma),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,$r,!0),n("singleCursorHeightPerLine",!0,$r,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,di,!0),n("addModeClass",!1,di,!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,di,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}function Ma(e,t,n){if(!t!=!(n&&n!=Sa)){var r=e.display.dragFunctions,A=t?de:pe;A(e.display.scroller,"dragstart",r.start),A(e.display.scroller,"dragenter",r.enter),A(e.display.scroller,"dragover",r.over),A(e.display.scroller,"dragleave",r.leave),A(e.display.scroller,"drop",r.drop)}}function _a(e){e.options.lineWrapping?(H(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(T(e.display.wrapper,"CodeMirror-wrap"),sn(e)),Ir(e),Dr(e),fr(e),setTimeout((function(){return vA(e)}),100)}function Da(e,t){var n=this;if(!(this instanceof Da))return new Da(e,t);this.options=t=t?D(t):{},D(La,t,!1);var r=t.value;"string"==typeof r?r=new Co(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var A=new Da.inputStyles[t.inputStyle](this),i=this.display=new qA(e,r,A,t);for(var l in i.wrapper.CodeMirror=this,Ua(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),BA(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new N,keySeq:null,specialChars:null},t.autofocus&&!m&&i.input.focus(),o&&a<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),Oa(this),So(),CA(this),this.curOp.forceUpdate=!0,vi(this,r),t.autofocus&&!m||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Zr(n)}),20):qr(this),Ha)Ha.hasOwnProperty(l)&&Ha[l](this,t[l],Sa);WA(this),t.finishInit&&t.finishInit(this);for(var c=0;c400}de(t.scroller,"touchstart",(function(A){if(!ve(e,A)&&!i(A)&&!xa(e,A)){t.input.ensurePolled(),clearTimeout(n);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==A.touches.length&&(t.activeTouch.left=A.touches[0].pageX,t.activeTouch.top=A.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&&!Xn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var i,o=e.coordsChar(t.activeTouch,"page");i=!r.prev||s(r,r.prev)?new ii(o,o):!r.prev.prev||s(r,r.prev.prev)?e.findWordAt(o):new ii(it(o.line,0),ft(e.doc,it(o.line+1,0))),e.setSelection(i.anchor,i.head),e.focus(),be(n)}A()})),de(t.scroller,"touchcancel",A),de(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(fA(e,t.scroller.scrollTop),dA(e,t.scroller.scrollLeft,!0),me(e,"scroll",e))})),de(t.scroller,"mousewheel",(function(t){return ri(e,t)})),de(t.scroller,"DOMMouseScroll",(function(t){return ri(e,t)})),de(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){ve(e,t)||ke(t)},over:function(t){ve(e,t)||(xo(e,t),ke(t))},start:function(t){return To(e,t)},drop:LA(e,ko),leave:function(t){ve(e,t)||Eo(e)}};var l=t.input.getField();de(l,"keyup",(function(t){return ua.call(e,t)})),de(l,"keydown",LA(e,la)),de(l,"keypress",LA(e,fa)),de(l,"focus",(function(t){return Zr(e,t)})),de(l,"blur",(function(t){return qr(e,t)}))}Da.defaults=La,Da.optionHandlers=Ha;var Na=[];function Ra(e,t,n,r){var A,i=e.doc;null==n&&(n="add"),"smart"==n&&(i.mode.indent?A=yt(e,t).state:n="prev");var o=e.options.tabSize,a=Ze(i,t),s=O(a.text,null,o);a.stateAfter&&(a.stateAfter=null);var l,c=a.text.match(/^\s*/)[0];if(r||/\S/.test(a.text)){if("smart"==n&&((l=i.mode.indent(A,a.text.slice(c.length),a.text))==K||l>150)){if(!r)return;n="prev"}}else l=0,n="not";"prev"==n?l=t>i.first?O(Ze(i,t-1).text,null,o):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="",f=0;if(e.options.indentWithTabs)for(var h=Math.floor(l/o);h;--h)f+=o,u+="\t";if(fo,s=Ie(t),l=null;if(a&&r.ranges.length>1)if(Pa&&Pa.text.join("\n")==t){if(r.ranges.length%Pa.text.length==0){l=[];for(var c=0;c=0;f--){var h=r.ranges[f],d=h.from(),g=h.to();h.empty()&&(n&&n>0?d=it(d.line,d.ch-n):e.state.overwrite&&!a?g=it(g.line,Math.min(Ze(i,g.line).text.length,g.ch+J(s).length)):a&&Pa&&Pa.lineWise&&Pa.text.join("\n")==s.join("\n")&&(d=g=it(d.line,0)));var p={from:d,to:g,text:l?l[f%l.length]:s,origin:A||(a?"paste":e.state.cutIncoming>o?"cut":"+input")};Zi(e.doc,p),Fn(e,"inputRead",e,p)}t&&!a&&Va(e,t),aA(e),e.curOp.updateInput<2&&(e.curOp.updateInput=u),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Xa(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||SA(t,(function(){return $a(t,n,0,null,"paste")})),!0}function Va(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var A=n.ranges[r];if(!(A.head.ch>100||r&&n.ranges[r-1].head.line==A.head.line)){var i=e.getModeAt(A.head),o=!1;if(i.electricChars){for(var a=0;a-1){o=Ra(e,A.head.line,"smart");break}}else i.electricInput&&i.electricInput.test(Ze(e.doc,A.head.line).text.slice(0,A.head.ch))&&(o=Ra(e,A.head.line,"smart"));o&&Fn(e,"electricInput",e,A.head.line)}}}function ja(e){for(var t=[],n=[],r=0;rn&&(Ra(this,A.head.line,e,!0),n=A.head.line,r==this.doc.sel.primIndex&&aA(this));else{var i=A.from(),o=A.to(),a=Math.max(n,i.line);n=Math.min(this.lastLine(),o.line-(o.ch?0:1))+1;for(var s=a;s0&&Di(this.doc,r,new ii(i,l[r].to()),$)}}})),getTokenAt:function(e,t){return Qt(this,e,t)},getLineTokens:function(e,t){return Qt(this,it(e),t,!0)},getTokenTypeAt:function(e){e=ft(this.doc,e);var t,n=vt(this,Ze(this.doc,e.line)),r=0,A=(n.length-1)/2,i=e.ch;if(0==i)t=n[2];else for(;;){var o=r+A>>1;if((o?n[2*o-1]:0)>=i)A=o;else{if(!(n[2*o+1]i&&(e=i,A=!0),r=Ze(this.doc,e)}else r=e;return pr(this,r,{top:0,left:0},t||"page",n||A).top+(A?this.doc.height-on(r):0)},defaultTextHeight:function(){return Fr(this.display)},defaultCharWidth:function(){return Ur(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,A){var i=this.display,o=(e=yr(this,ft(this.doc,e))).bottom,a=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),i.sizer.appendChild(t),"over"==r)o=e.top;else if("above"==r||"near"==r){var s=Math.max(i.wrapper.clientHeight,this.doc.height),l=Math.max(i.sizer.clientWidth,i.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>s)&&e.top>t.offsetHeight?o=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=s&&(o=e.bottom),a+t.offsetWidth>l&&(a=l-t.offsetWidth)}t.style.top=o+"px",t.style.left=t.style.right="","right"==A?(a=i.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==A?a=0:"middle"==A&&(a=(i.sizer.clientWidth-t.offsetWidth)/2),t.style.left=a+"px"),n&&AA(this,{left:a,top:o,right:a+t.offsetWidth,bottom:o+t.offsetHeight})},triggerOnKeyDown:HA(la),triggerOnKeyPress:HA(fa),triggerOnKeyUp:ua,triggerOnMouseDown:HA(va),execCommand:function(e){if(Zo.hasOwnProperty(e))return Zo[e].call(null,this)},triggerElectric:HA((function(e){Va(this,e)})),findPosH:function(e,t,n,r){var A=1;t<0&&(A=-1,t=-t);for(var i=ft(this.doc,e),o=0;o0&&o(t.charAt(n-1));)--n;for(;r.5||this.options.lineWrapping)&&Ir(this),me(this,"refresh",this)})),swapDoc:HA((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),vi(this,e),fr(this),this.display.input.reset(),sA(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Fn(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}},Be(e),e.registerHelper=function(t,r,A){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=A},e.registerGlobalHelper=function(t,r,A,i){e.registerHelper(t,r,i),n[t]._global.push({pred:A,val:i})}}function za(e,t,n,r,A){var i=t,o=n,a=Ze(e,t.line),s=A&&"rtl"==e.direction?-n:n;function l(){var n=t.line+s;return!(n=e.first+e.size)&&(t=new it(n,t.ch,t.sticky),a=Ze(e,n))}function c(i){var o;if("codepoint"==r){var c=a.text.charCodeAt(t.ch+(r>0?0:-1));o=isNaN(c)?null:new it(t.line,Math.max(0,Math.min(a.text.length,t.ch+n*(c>=55296&&c<56320?2:1))),-n)}else o=A?zo(e.cm,a,t,n):Wo(a,t,n);if(null==o){if(i||!l())return!1;t=Jo(A,e.cm,a,t.line,s)}else t=o;return!0}if("char"==r||"codepoint"==r)c();else if("column"==r)c(!0);else if("word"==r||"group"==r)for(var u=null,f="group"==r,h=e.cm&&e.cm.getHelper(t,"wordChars"),d=!0;!(n<0)||c(!d);d=!1){var g=a.text.charAt(t.ch)||"\n",p=ne(g,h)?"w":f&&"\n"==g?"n":!f||/\s/.test(g)?null:"p";if(!f||d||p||(p="s"),u&&u!=p){n<0&&(n=1,c(),t.sticky="after");break}if(p&&(u=p),n>0&&!c(!d))break}var m=Gi(e,t,i,o,!0);return at(i,m)&&(m.hitSide=!0),m}function Za(e,t,n,r){var A,i,o=e.doc,a=t.left;if("page"==r){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),l=Math.max(s-.5*Fr(e.display),3);A=(n>0?t.bottom:t.top)+n*l}else"line"==r&&(A=n>0?t.bottom+3:t.top-3);for(;(i=br(e,a,A)).outside;){if(n<0?A<=0:A>=o.height){i.hitSide=!0;break}A+=5*n}return i}var qa=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new N,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Ya(e,t){var n=tr(e,t.line);if(!n||n.hidden)return null;var r=Ze(e.doc,t.line),A=qn(n,r,t.line),i=fe(r,e.doc.direction),o="left";i&&(o=ce(i,t.ch)%2?"right":"left");var a=or(A.map,t.ch,o);return a.offset="right"==a.collapse?a.end:a.start,a}function es(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function ts(e,t){return t&&(e.bad=!0),e}function ns(e,t,n,r,A){var i="",o=!1,a=e.doc.lineSeparator(),s=!1;function l(e){return function(t){return t.id==e}}function c(){o&&(i+=a,s&&(i+=a),o=s=!1)}function u(e){e&&(c(),i+=e)}function f(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void u(n);var i,h=t.getAttribute("cm-marker");if(h){var d=e.findMarks(it(r,0),it(A+1,0),l(+h));return void(d.length&&(i=d[0].find(0))&&u(qe(e.doc,i.from,i.to).join(a)))}if("false"==t.getAttribute("contenteditable"))return;var g=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;g&&c();for(var p=0;p=t.display.viewTo||i.line=t.display.viewFrom&&Ya(t,A)||{node:s[0].measure.map[2],offset:0},c=i.liner.firstLine()&&(o=it(o.line-1,Ze(r.doc,o.line-1).length)),a.ch==Ze(r.doc,a.line).text.length&&a.lineA.viewTo-1)return!1;o.line==A.viewFrom||0==(e=_r(r,o.line))?(t=tt(A.view[0].line),n=A.view[0].node):(t=tt(A.view[e].line),n=A.view[e-1].node.nextSibling);var s,l,c=_r(r,a.line);if(c==A.view.length-1?(s=A.viewTo-1,l=A.lineDiv.lastChild):(s=tt(A.view[c+1].line)-1,l=A.view[c+1].node.previousSibling),!n)return!1;for(var u=r.doc.splitLines(ns(r,n,l,t,s)),f=qe(r.doc,it(t,0),it(s,Ze(r.doc,s).text.length));u.length>1&&f.length>1;)if(J(u)==J(f))u.pop(),f.pop(),s--;else{if(u[0]!=f[0])break;u.shift(),f.shift(),t++}for(var h=0,d=0,g=u[0],p=f[0],m=Math.min(g.length,p.length);ho.ch&&v.charCodeAt(v.length-d-1)==y.charCodeAt(y.length-d-1);)h--,d++;u[u.length-1]=v.slice(0,v.length-d).replace(/^\u200b+/,""),u[0]=u[0].slice(h).replace(/\u200b+$/,"");var B=it(t,h),b=it(s,f.length?J(f).length-d:0);return u.length>1||u[0]||ot(B,b)?(ro(r.doc,u,B,b,"+input"),!0):void 0},qa.prototype.ensurePolled=function(){this.forceCompositionEnd()},qa.prototype.reset=function(){this.forceCompositionEnd()},qa.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},qa.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))},qa.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||SA(this.cm,(function(){return Dr(e.cm)}))},qa.prototype.setUneditable=function(e){e.contentEditable="false"},qa.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||LA(this.cm,$a)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},qa.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},qa.prototype.onContextMenu=function(){},qa.prototype.resetPosition=function(){},qa.prototype.needsContentAttribute=!0;var is=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new N,this.hasSelection=!1,this.composing=null};function os(e,t){if((t=t?D(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=L();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=a.getValue()}var A;if(e.form&&(de(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var i=e.form;A=i.submit;try{var o=i.submit=function(){r(),i.submit=A,i.submit(),i.submit=o}}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&&(pe(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=A))}},e.style.display="none";var a=Da((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return a}function as(e){e.off=pe,e.on=de,e.wheelEventPixels=ni,e.Doc=Co,e.splitLines=Ie,e.countColumn=O,e.findColumn=j,e.isWordChar=te,e.Pass=K,e.signal=me,e.Line=ln,e.changeEnd=si,e.scrollbarModel=wA,e.Pos=it,e.cmpPos=ot,e.modes=Ne,e.mimeModes=Re,e.resolveMode=$e,e.getMode=Xe,e.modeExtensions=Ve,e.extendMode=je,e.copyState=Ge,e.startState=Je,e.innerMode=We,e.commands=Zo,e.keyMap=Oo,e.keyName=Xo,e.isModifierKey=Ko,e.lookupKey=Po,e.normalizeKeyMap=Ro,e.StringStream=ze,e.SharedTextMarker=mo,e.TextMarker=go,e.LineWidget=co,e.e_preventDefault=be,e.e_stopPropagation=Ce,e.e_stop=ke,e.addClass=H,e.contains=S,e.rmClass=T,e.keyNames=Io}is.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var A=this.textarea;function i(e){if(!ve(r,e)){if(r.somethingSelected())Ka({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=ja(r);Ka({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,$):(n.prevInput="",A.value=t.text.join("\n"),M(A))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(A.style.width="0px"),de(A,"input",(function(){o&&a>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),de(A,"paste",(function(e){ve(r,e)||Xa(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),de(A,"cut",i),de(A,"copy",i),de(e.scroller,"paste",(function(t){if(!Xn(e,t)&&!ve(r,t)){if(!A.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var i=new Event("paste");i.clipboardData=t.clipboardData,A.dispatchEvent(i)}})),de(e.lineSpace,"selectstart",(function(t){Xn(e,t)||be(t)})),de(A,"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(A,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},is.prototype.createField=function(e){this.wrapper=Wa(),this.textarea=this.wrapper.firstChild},is.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},is.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Xr(e);if(e.options.moveInputWithCursor){var A=yr(e,n.sel.primary().head,"div"),i=t.wrapper.getBoundingClientRect(),o=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,A.top+o.top-i.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,A.left+o.left-i.left))}return r},is.prototype.showSelection=function(e){var t=this.cm.display;E(t.cursorDiv,e.cursors),E(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},is.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&M(this.textarea),o&&a>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",o&&a>=9&&(this.hasSelection=null))}},is.prototype.getField=function(){return this.textarea},is.prototype.supportsTouch=function(){return!1},is.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!m||L()!=this.textarea))try{this.textarea.focus()}catch(e){}},is.prototype.blur=function(){this.textarea.blur()},is.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},is.prototype.receivedFocus=function(){this.slowPoll()},is.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},is.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)},is.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Me(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var A=n.value;if(A==r&&!t.somethingSelected())return!1;if(o&&a>=9&&this.hasSelection===A||v&&/[\uf700-\uf7ff]/.test(A))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var i=A.charCodeAt(0);if(8203!=i||r||(r="​"),8666==i)return this.reset(),this.cm.execCommand("undo")}for(var s=0,l=Math.min(r.length,A.length);s1e3||A.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=A,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},is.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},is.prototype.onKeyPress=function(){o&&a>=9&&(this.hasSelection=null),this.fastPoll()},is.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,A=t.textarea;t.contextMenuPending&&t.contextMenuPending();var i=Mr(n,e),l=r.scroller.scrollTop;if(i&&!u){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(i)&&LA(n,Pi)(n.doc,ai(i),$);var c,f=A.style.cssText,h=t.wrapper.style.cssText,d=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",A.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: "+(o?"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()||(A.value=t.prevInput=" "),t.contextMenuPending=m,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),o&&a>=9&&p(),C){ke(e);var g=function(){pe(window,"mouseup",g),setTimeout(m,20)};de(window,"mouseup",g)}else setTimeout(m,50)}function p(){if(null!=A.selectionStart){var e=n.somethingSelected(),i="​"+(e?A.value:"");A.value="⇚",A.value=i,t.prevInput=e?"":"​",A.selectionStart=1,A.selectionEnd=i.length,r.selForContextMenu=n.doc.sel}}function m(){if(t.contextMenuPending==m&&(t.contextMenuPending=!1,t.wrapper.style.cssText=h,A.style.cssText=f,o&&a<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=l),null!=A.selectionStart)){(!o||o&&a<9)&&p();var e=0,i=function(){r.selForContextMenu==n.doc.sel&&0==A.selectionStart&&A.selectionEnd>0&&"​"==t.prevInput?LA(n,Ji)(n):e++<10?r.detectingSelectAll=setTimeout(i,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(i,200)}}},is.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},is.prototype.setUneditable=function(){},is.prototype.needsContentAttribute=!1,Ia(Da),Ja(Da);var ss="iter insert remove copy getEditor constructor".split(" ");for(var ls in Co.prototype)Co.prototype.hasOwnProperty(ls)&&R(ss,ls)<0&&(Da.prototype[ls]=function(e){return function(){return e.apply(this.doc,arguments)}}(Co.prototype[ls]));return Be(Co),Da.inputStyles={textarea:is,contenteditable:qa},Da.defineMode=function(e){Da.defaults.mode||"null"==e||(Da.defaults.mode=e),Pe.apply(this,arguments)},Da.defineMIME=Ke,Da.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Da.defineMIME("text/plain","null"),Da.defineExtension=function(e,t){Da.prototype[e]=t},Da.defineDocExtension=function(e,t){Co.prototype[e]=t},Da.fromTextArea=os,as(Da),Da.version="5.58.2",Da}()}));r((function(e,t){var n,r,A;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},A={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1},(n=ql).defineMode("xml",(function(e,t){var i,o,a=e.indentUnit,s={},l=t.htmlMode?r:A;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(g(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=d("meta","?>"),"meta"):(i=e.eat("/")?"closeTag":"openTag",t.tokenize=f,"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 f(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=u,i=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return i="equals",null;if("<"==n){t.tokenize=u,t.state=y,t.tagName=t.tagStart=null;var r=t.tokenize(e,t);return r?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=h(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function h(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=f;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 g(e){return function(t,n){for(var r;null!=(r=t.next());){if("<"==r)return n.tokenize=g(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=u;break}return n.tokenize=g(e-1),n.tokenize(t,n)}}return"meta"}}function p(e,t,n){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=n,(s.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function m(e){e.context&&(e.context=e.context.prev)}function v(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!s.contextGrabbers.hasOwnProperty(n)||!s.contextGrabbers[n].hasOwnProperty(t))return;m(e)}}function y(e,t,n){return"openTag"==e?(n.tagStart=t.column(),w):"closeTag"==e?B:y}function w(e,t,n){return"word"==e?(n.tagName=t.current(),o="tag",Q):s.allowMissingTagName&&"endTag"==e?(o="tag bracket",Q(e,t,n)):(o="error",w)}function B(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?(o="tag",b):(o="tag error",C)}return s.allowMissingTagName&&"endTag"==e?(o="tag bracket",b(e,t,n)):(o="error",C)}function b(e,t,n){return"endTag"!=e?(o="error",b):(m(n),y)}function C(e,t,n){return o="error",b(e,t,n)}function Q(e,t,n){if("word"==e)return o="attribute",k;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,A=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||s.autoSelfClosers.hasOwnProperty(r)?v(n,r):(v(n,r),n.context=new p(n,r,A==n.indented)),y}return o="error",Q}function k(e,t,n){return"equals"==e?T:(s.allowMissing||(o="error"),Q(e,t,n))}function T(e,t,n){return"string"==e?x:"word"==e&&s.allowUnquoted?(o="string",Q):(o="error",Q(e,t,n))}function x(e,t,n){return"string"==e?x:Q(e,t,n)}return u.isInText=!0,{startState:function(e){var t={tokenize:u,state:y,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;i=null;var n=t.tokenize(e,t);return(n||i)&&"comment"!=n&&(o=null,t.state=t.state(i||n,e,t),o&&(n="error"==o?n+" error":o)),n},indent:function(e,t,r){var A=e.context;if(e.tokenize.isInAttribute)return e.tagStart==e.indented?e.stringStartCol+1:e.indented+a;if(A&&A.noIndent)return n.Pass;if(e.tokenize!=f&&e.tokenize!=u)return r?r.match(/^(\s*)/)[0].length:0;if(e.tagName)return!1!==s.multilineTagIndentPastTag?e.tagStart+e.tagName.length+2:e.tagStart+a*(s.multilineTagIndentFactor||1);if(s.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:s.htmlMode?"html":"xml",helperType:s.htmlMode?"html":"xml",skipAttribute:function(e){e.state==T&&(e.state=Q)},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(A+1,t.length);if(i)return e.findModeByExtension(i)},e.findModeByName=function(t){t=t.toLowerCase();for(var n=0;n` "'(~:]+/,d=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,g=/^\s*\[[^\]]+?\]:.*$/,p=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,m=" ";function v(e,t,n){return t.f=t.inline=n,n(e,t)}function y(e,t,n){return t.f=t.block=n,n(e,t)}function w(e){return!e||!/\S/.test(e.string)}function B(e){if(e.linkTitle=!1,e.linkHref=!1,e.linkText=!1,e.em=!1,e.strong=!1,e.strikethrough=!1,e.quote=0,e.indentedCode=!1,e.f==C){var t=A;if(!t){var i=n.innerMode(r,e.htmlState);t="xml"==i.mode.name&&null===i.state.tagStart&&!i.state.context&&i.state.tokenize.isInText}t&&(e.f=x,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 A=e.column()===r.indentation,a=w(r.prevLine.stream),h=r.indentedCode,p=r.prevLine.hr,m=!1!==r.list,y=(r.listStack[r.listStack.length-1]||0)+3;r.indentedCode=!1;var B=r.indentation;if(null===r.indentationDiff&&(r.indentationDiff=r.indentation,m)){for(r.list=null;B=4&&(h||r.prevLine.fencedCodeEnd||r.prevLine.header||a))return e.skipToEnd(),r.indentedCode=!0,o.code;if(e.eatSpace())return null;if(A&&r.indentation<=y&&(T=e.match(u))&&T[1].length<=6)return r.quote=0,r.header=T[1].length,r.thisLine.header=!0,t.highlightFormatting&&(r.formatting="header"),r.f=r.inline,k(r);if(r.indentation<=y&&e.eat(">"))return r.quote=A?1:r.quote+1,t.highlightFormatting&&(r.formatting="quote"),e.eatSpace(),k(r);if(!C&&!r.setext&&A&&r.indentation<=y&&(T=e.match(l))){var x=T[1]?"ol":"ul";return r.indentation=B+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-"+x]),k(r)}return A&&r.indentation<=y&&(T=e.match(d,!0))?(r.quote=0,r.fencedEndRE=new RegExp(T[1]+"+ *$"),r.localMode=t.fencedCodeBlockHighlighting&&i(T[2]||t.fencedCodeBlockDefaultMode),r.localMode&&(r.localState=n.startState(r.localMode)),r.f=r.block=Q,t.highlightFormatting&&(r.formatting="code-block"),r.code=-1,k(r)):r.setext||!(b&&m||r.quote||!1!==r.list||r.code||C||g.test(e.string))&&(T=e.lookAhead(1))&&(T=T.match(f))?(r.setext?(r.header=r.setext,r.setext=0,e.skipToEnd(),t.highlightFormatting&&(r.formatting="header")):(r.header="="==T[0].charAt(0)?1:2,r.setext=r.header),r.thisLine.header=!0,r.f=r.inline,k(r)):C?(e.skipToEnd(),r.hr=!0,r.thisLine.hr=!0,o.hr):"["===e.peek()?v(e,r,L):v(e,r,r.inline)}function C(e,t){var i=r.token(e,t.htmlState);if(!A){var o=n.innerMode(r,t.htmlState);("xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText||t.md_inside&&e.current().indexOf(">")>-1)&&(t.f=x,t.block=b,t.htmlState=null)}return i}function Q(e,n){var r,A=n.listStack[n.listStack.length-1]||0,i=n.indentation=e.quote?n.push(o.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(o.linkHref,"url"):(e.strong&&n.push(o.strong),e.em&&n.push(o.em),e.strikethrough&&n.push(o.strikethrough),e.emoji&&n.push(o.emoji),e.linkText&&n.push(o.linkText),e.code&&n.push(o.code),e.image&&n.push(o.image),e.imageAltText&&n.push(o.imageAltText,"link"),e.imageMarker&&n.push(o.imageMarker)),e.header&&n.push(o.header,o.header+"-"+e.header),e.quote&&(n.push(o.quote),!t.maxBlockquoteDepth||t.maxBlockquoteDepth>=e.quote?n.push(o.quote+"-"+e.quote):n.push(o.quote+"-"+t.maxBlockquoteDepth)),!1!==e.list){var A=(e.listStack.length-1)%3;A?1===A?n.push(o.list2):n.push(o.list3):n.push(o.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 T(e,t){if(e.match(h,!0))return k(t)}function x(e,A){var i=A.text(e,A);if(void 0!==i)return i;if(A.list)return A.list=null,k(A);if(A.taskList)return" "===e.match(c,!0)[1]?A.taskOpen=!0:A.taskClosed=!0,t.highlightFormatting&&(A.formatting="task"),A.taskList=!1,k(A);if(A.taskOpen=!1,A.taskClosed=!1,A.header&&e.match(/^#+$/,!0))return t.highlightFormatting&&(A.formatting="header"),k(A);var a=e.next();if(A.linkTitle){A.linkTitle=!1;var s=a;"("===a&&(s=")");var l="^\\s*(?:[^"+(s=(s+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1"))+"\\\\]+|\\\\\\\\|\\\\.)"+s;if(e.match(new RegExp(l),!0))return o.linkHref}if("`"===a){var u=A.formatting;t.highlightFormatting&&(A.formatting="code"),e.eatWhile("`");var f=e.current().length;if(0!=A.code||A.quote&&1!=f){if(f==A.code){var h=k(A);return A.code=0,h}return A.formatting=u,k(A)}return A.code=f,k(A)}if(A.code)return k(A);if("\\"===a&&(e.next(),t.highlightFormatting)){var d=k(A),g=o.formatting+"-escape";return d?d+" "+g:g}if("!"===a&&e.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return A.imageMarker=!0,A.image=!0,t.highlightFormatting&&(A.formatting="image"),k(A);if("["===a&&A.imageMarker&&e.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return A.imageMarker=!1,A.imageAltText=!0,t.highlightFormatting&&(A.formatting="image"),k(A);if("]"===a&&A.imageAltText){t.highlightFormatting&&(A.formatting="image");var d=k(A);return A.imageAltText=!1,A.image=!1,A.inline=A.f=F,d}if("["===a&&!A.image)return A.linkText&&e.match(/^.*?\]/)||(A.linkText=!0,t.highlightFormatting&&(A.formatting="link")),k(A);if("]"===a&&A.linkText){t.highlightFormatting&&(A.formatting="link");var d=k(A);return A.linkText=!1,A.inline=A.f=e.match(/\(.*?\)| ?\[.*?\]/,!1)?F:x,d}if("<"===a&&e.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return A.f=A.inline=E,t.highlightFormatting&&(A.formatting="link"),(d=k(A))?d+=" ":d="",d+o.linkInline;if("<"===a&&e.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return A.f=A.inline=E,t.highlightFormatting&&(A.formatting="link"),(d=k(A))?d+=" ":d="",d+o.linkEmail;if(t.xml&&"<"===a&&e.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var m=e.string.indexOf(">",e.pos);if(-1!=m){var v=e.string.substring(e.start,m);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(v)&&(A.md_inside=!0)}return e.backUp(1),A.htmlState=n.startState(r),y(e,A,C)}if(t.xml&&"<"===a&&e.match(/^\/\w*?>/))return A.md_inside=!1,"tag";if("*"===a||"_"===a){for(var w=1,B=1==e.pos?" ":e.string.charAt(e.pos-2);w<3&&e.eat(a);)w++;var b=e.peek()||" ",Q=!/\s/.test(b)&&(!p.test(b)||/\s/.test(B)||p.test(B)),T=!/\s/.test(B)&&(!p.test(B)||/\s/.test(b)||p.test(b)),U=null,S=null;if(w%2&&(A.em||!Q||"*"!==a&&T&&!p.test(B)?A.em!=a||!T||"*"!==a&&Q&&!p.test(b)||(U=!1):U=!0),w>1&&(A.strong||!Q||"*"!==a&&T&&!p.test(B)?A.strong!=a||!T||"*"!==a&&Q&&!p.test(b)||(S=!1):S=!0),null!=S||null!=U)return t.highlightFormatting&&(A.formatting=null==U?"strong":null==S?"em":"strong em"),!0===U&&(A.em=a),!0===S&&(A.strong=a),h=k(A),!1===U&&(A.em=!1),!1===S&&(A.strong=!1),h}else if(" "===a&&(e.eat("*")||e.eat("_"))){if(" "===e.peek())return k(A);e.backUp(1)}if(t.strikethrough)if("~"===a&&e.eatWhile(a)){if(A.strikethrough)return t.highlightFormatting&&(A.formatting="strikethrough"),h=k(A),A.strikethrough=!1,h;if(e.match(/^[^\s]/,!1))return A.strikethrough=!0,t.highlightFormatting&&(A.formatting="strikethrough"),k(A)}else if(" "===a&&e.match(/^~~/,!0)){if(" "===e.peek())return k(A);e.backUp(2)}if(t.emoji&&":"===a&&e.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){A.emoji=!0,t.highlightFormatting&&(A.formatting="emoji");var L=k(A);return A.emoji=!1,L}return" "===a&&(e.match(/^ +$/,!1)?A.trailingSpace++:A.trailingSpace&&(A.trailingSpaceNewLine=!0)),k(A)}function E(e,n){if(">"===e.next()){n.f=n.inline=x,t.highlightFormatting&&(n.formatting="link");var r=k(n);return r?r+=" ":r="",r+o.linkInline}return e.match(/^[^>]+/,!0),o.linkInline}function F(e,n){if(e.eatSpace())return null;var r=e.next();return"("===r||"["===r?(n.f=n.inline=S("("===r?")":"]"),t.highlightFormatting&&(n.formatting="link-string"),n.linkHref=!0,k(n)):"error"}var U={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function S(e){return function(n,r){if(n.next()===e){r.f=r.inline=x,t.highlightFormatting&&(r.formatting="link-string");var A=k(r);return r.linkHref=!1,A}return n.match(U[e]),r.linkHref=!0,k(r)}}function L(e,n){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(n.f=H,e.next(),t.highlightFormatting&&(n.formatting="link"),n.linkText=!0,k(n)):v(e,n,x)}function H(e,n){if(e.match(/^\]:/,!0)){n.f=n.inline=I,t.highlightFormatting&&(n.formatting="link");var r=k(n);return n.linkText=!1,r}return e.match(/^([^\]\\]|\\.)+/,!0),o.linkText}function I(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=x,o.linkHref+" url")}var M={startState:function(){return{f:b,prevLine:{stream:null},thisLine:{stream:null},block:b,htmlState:null,indentation:0,inline:x,text:T,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 B(t),null;if(t.prevLine=t.thisLine,t.thisLine={stream:e},t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,!t.localState&&(t.f=t.block,t.f!=C)){var n=e.match(/^\s*/,!0)[0].replace(/\t/g,m).length;if(t.indentation=n,t.indentationDiff=null,n>0)return null}}return t.f(e,t)},innerMode:function(e){return e.block==C?{state:e.htmlState,mode:r}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:M}},indent:function(e,t,A){return e.block==C&&r.indent?r.indent(e.htmlState,t,A):e.localState&&e.localMode.indent?e.localMode.indent(e.localState,t,A):n.Pass},blankLine:B,getType:k,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return M}),"xml"),n.defineMIME("text/markdown","markdown"),n.defineMIME("text/x-markdown","markdown")})),r((function(e,t){var n;(n=ql).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,A){return(n!=A.streamSeen||Math.min(A.basePos,A.overlayPos)]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i,(n=ql).defineMode("gfm",(function(e,t){var A=0;function i(e){return e.code=!1,null}var o={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 i=e.pos;e.eatWhile("`");var o=1+e.pos-i;return n.code?o===A&&(n.code=!1):(A=o,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:i},a={taskLists:!0,strikethrough:!0,emoji:!0};for(var s in t)a[s]=t[s];return a.name="markdown",n.overlayMode(n.getMode(e,a),o)}),"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 A(e,n){var r=n.line,A=0,i=0,o=t.exec(e.getLine(r)),a=o[1];do{var s=r+(A+=1),l=e.getLine(s),c=t.exec(l);if(c){var u=c[1],f=parseInt(o[3],10)+A-i,h=parseInt(c[3],10),d=h;if(a!==u||isNaN(h)){if(a.length>u.length)return;if(a.lengthh&&(d=f+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(i){if(i.getOption("disableInput"))return e.Pass;for(var o=i.listSelections(),a=[],s=0;s\s*$/.test(d),v=!/>\s*$/.test(d);(m||v)&&i.replaceRange("",{line:l.line,ch:0},{line:l.line,ch:l.ch+1}),a[s]="\n"}else{var y=g[1],w=g[5],B=!(r.test(g[2])||g[2].indexOf(">")>=0),b=B?parseInt(g[3],10)+1+g[4]:g[2].replace("x"," ");a[s]="\n"+y+b+w,B&&A(i,l)}}i.replaceSelections(a)}}(ql)}));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",A=new RegExp("<(/?)(["+r+"]["+r+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*)","g");function i(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 o(e,n){var r=e.cm.getTokenTypeAt(t(e.line,n));return r&&/\btag\b/.test(r)}function a(e){if(!(e.line>=e.max))return e.ch=0,e.text=e.cm.getLine(++e.line),!0}function s(e){if(!(e.line<=e.min))return e.text=e.cm.getLine(--e.line),e.ch=e.text.length,!0}function l(e){for(;;){var t=e.text.indexOf(">",e.ch);if(-1==t){if(a(e))continue;return}if(o(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(o(e,t+1)){A.lastIndex=t,e.ch=t;var n=A.exec(e.text);if(n&&n.index==t)return n}else e.ch=t}}function u(e){for(;;){A.lastIndex=e.ch;var t=A.exec(e.text);if(!t){if(a(e))continue;return}if(o(e,t.index+1))return e.ch=t.index+t[0].length,t;e.ch=t.index+1}}function f(e){for(;;){var t=e.ch?e.text.lastIndexOf(">",e.ch-1):-1;if(-1==t){if(s(e))continue;return}if(o(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 h(e,n){for(var r=[];;){var A,i=u(e),o=e.line,a=e.ch-(i?i[0].length:0);if(!i||!(A=l(e)))return;if("selfClose"!=A)if(i[1]){for(var s=r.length-1;s>=0;--s)if(r[s]==i[2]){r.length=s;break}if(s<0&&(!n||n==i[2]))return{tag:i[2],from:t(o,a),to:t(e.line,e.ch)}}else r.push(i[2])}}function d(e,n){for(var r=[];;){var A=f(e);if(!A)return;if("selfClose"!=A){var i=e.line,o=e.ch,a=c(e);if(!a)return;if(a[1])r.push(a[2]);else{for(var s=r.length-1;s>=0;--s)if(r[s]==a[2]){r.length=s;break}if(s<0&&(!n||n==a[2]))return{tag:a[2],from:t(e.line,e.ch),to:t(i,o)}}}else c(e)}}e.registerHelper("fold","xml",(function(e,r){for(var A=new i(e,r.line,0);;){var o=u(A);if(!o||A.line!=r.line)return;var a=l(A);if(!a)return;if(!o[1]&&"selfClose"!=a){var s=t(A.line,A.ch),c=h(A,o[2]);return c&&n(c.from,s)>0?{from:s,to:c.from}:null}}})),e.findMatchingTag=function(e,r,A){var o=new i(e,r.line,r.ch,A);if(-1!=o.text.indexOf(">")||-1!=o.text.indexOf("<")){var a=l(o),s=a&&t(o.line,o.ch),u=a&&c(o);if(a&&u&&!(n(o,r)>0)){var f={from:t(o.line,o.ch),to:s,tag:u[2]};return"selfClose"==a?{open:f,close:null,at:"open"}:u[1]?{open:d(o,u[2]),close:f,at:"close"}:{open:f,close:h(o=new i(e,s.line,s.ch,A),u[2]),at:"open"}}}},e.findEnclosingTag=function(e,t,n,r){for(var A=new i(e,t.line,t.ch,n);;){var o=d(A,r);if(!o)break;var a=h(new i(e,t.line,t.ch,n),o.tag);if(a)return{open:o,close:a}}},e.scanForClosingTag=function(e,t,n,r){return h(new i(e,t.line,t.ch,r?{from:0,to:r}:null),n)}}(ql)}));r((function(e,t){!function(e){e.defineOption("autoCloseTags",!1,(function(t,n,A){if(A!=e.Init&&A&&t.removeKeyMap("autoCloseTags"),n){var o={name:"autoCloseTags"};"object"==typeof n&&!1===n.whenClosing||(o["'/'"]=function(e){return i(e)}),"object"==typeof n&&!1===n.whenOpening||(o["'>'"]=function(e){return r(e)}),t.addKeyMap(o)}}));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 A=r.listSelections(),i=[],s=r.getOption("autoCloseTags"),l=0;lc.ch&&(g=g.slice(0,g.length-u.end+c.ch));var y=g.toLowerCase();if(!g||"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&&o(m,y)>-1||a(r,f.mode.xmlCurrentContext&&f.mode.xmlCurrentContext(h)||[],g,c,!0))return e.Pass;var w="object"==typeof s&&s.emptyTags;if(w&&o(w,g)>-1)i[l]={text:"/>",newPos:e.Pos(c.line,c.ch+2)};else{var B=v&&o(v,y)>-1;i[l]={indent:B,text:">"+(B?"\n\n":"")+"",newPos:B?e.Pos(c.line+1,0):e.Pos(c.line,c.ch+1)}}}var b="object"==typeof s&&s.dontIndentOnAutoClose;for(l=A.length-1;l>=0;l--){var C=i[l];r.replaceRange(C.text,A[l].head,A[l].anchor,"+insert");var Q=r.listSelections().slice(0);Q[l]={head:C.newPos,anchor:C.newPos},r.setSelections(Q),!b&&C.indent&&(r.indentLine(C.newPos.line,null,!0),r.indentLine(C.newPos.line+1,null,!0))}}function A(t,n){for(var r=t.listSelections(),A=[],i=n?"/":""!=t.getLine(c.line).charAt(u.end)&&(d+=">"),A[l]=d}if(t.replaceSelections(A),r=t.listSelections(),!s)for(l=0;l=0&&n[l]==r;l--)++s;for(A=a.to,l=1;lc);u++){var f=e.getLine(l++);A=null==A?f:A+"\n"+f}s*=2,t.lastIndex=n.ch;var h=t.exec(A);if(h){var d=A.slice(0,h.index).split("\n"),g=h[0].split("\n"),p=n.line+d.length-1,m=d[d.length-1].length;return{from:r(p,m),to:r(p+g.length-1,1==g.length?m+g[0].length:g[g.length-1].length),match:h}}}}function l(e,t,n){for(var r,A=0;A<=e.length;){t.lastIndex=A;var i=t.exec(e);if(!i)break;var o=i.index+i[0].length;if(o>e.length-n)break;(!r||o>r.index+r[0].length)&&(r=i),A=i.index+1}return r}function c(e,t,n){t=i(t,"g");for(var A=n.line,o=n.ch,a=e.firstLine();A>=a;A--,o=-1){var s=e.getLine(A),c=l(s,t,o<0?0:s.length-o);if(c)return{from:r(A,c.index),to:r(A,c.index+c[0].length),match:c}}}function u(e,t,n){if(!o(t))return c(e,t,n);t=i(t,"gm");for(var A,a=1,s=e.getLine(n.line).length-n.ch,u=n.line,f=e.firstLine();u>=f;){for(var h=0;h=f;h++){var d=e.getLine(u--);A=null==A?d:d+"\n"+A}a*=2;var g=l(A,t,s);if(g){var p=A.slice(0,g.index).split("\n"),m=g[0].split("\n"),v=u+p.length,y=p[p.length-1].length;return{from:r(v,y),to:r(v+m.length-1,1==m.length?y+m[0].length:m[m.length-1].length),match:g}}}}function f(e,t,n,r){if(e.length==t.length)return n;for(var A=0,i=n+Math.max(0,e.length-t.length);;){if(A==i)return A;var o=A+i>>1,a=r(e.slice(0,o)).length;if(a==n)return o;a>n?i=o:A=o+1}}function h(e,A,i,o){if(!A.length)return null;var a=o?t:n,s=a(A).split(/\r|\n\r?/);e:for(var l=i.line,c=i.ch,u=e.lastLine()+1-s.length;l<=u;l++,c=0){var h=e.getLine(l).slice(c),d=a(h);if(1==s.length){var g=d.indexOf(s[0]);if(-1==g)continue e;return i=f(h,d,g,a)+c,{from:r(l,f(h,d,g,a)+c),to:r(l,f(h,d,g+s[0].length,a)+c)}}var p=d.length-s[0].length;if(d.slice(p)==s[0]){for(var m=1;m=u;l--,c=-1){var h=e.getLine(l);c>-1&&(h=h.slice(0,c));var d=a(h);if(1==s.length){var g=d.lastIndexOf(s[0]);if(-1==g)continue e;return{from:r(l,f(h,d,g,a)),to:r(l,f(h,d,g+s[0].length,a))}}var p=s[s.length-1];if(d.slice(0,p.length)==p){var m=1;for(i=l-s.length+1;m0);)r.push({anchor:A.from(),head:A.to()});r.length&&this.setSelections(r,0)}))}(ql)}));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,A=e.getInputField();"TEXTAREA"==A.nodeName?r=!A.value:1==e.lineCount()&&(r=!/[^\u200b]/.test(A.querySelector(".CodeMirror-line").textContent)),r?n(e):t(e)}),20)}function A(e){o(e)&&n(e)}function i(e){var r=e.getWrapperElement(),A=o(e);r.className=r.className.replace(" CodeMirror-empty","")+(A?" CodeMirror-empty":""),A?n(e):t(e)}function o(e){return 1===e.lineCount()&&""===e.getLine(0)}e.defineOption("placeholder","",(function(n,o,a){var s=a&&a!=e.Init;if(o&&!s)n.on("blur",A),n.on("change",i),n.on("swapDoc",i),e.on(n.getInputField(),"compositionupdate",n.state.placeholderCompose=function(){r(n)}),i(n);else if(!o&&s){n.off("blur",A),n.off("change",i),n.off("swapDoc",i),e.off(n.getInputField(),"compositionupdate",n.state.placeholderCompose),t(n);var l=n.getWrapperElement();l.className=l.className.replace(" CodeMirror-empty","")}o&&!n.hasFocus()&&A(n)}))}(ql)}));r((function(e,t){!function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function A(e){return e&&e.bracketRegex||/[(){}[\]]/}function i(e,t,i){var a=e.getLineHandle(t.line),s=t.ch-1,l=i&&i.afterCursor;null==l&&(l=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var c=A(i),u=!l&&s>=0&&c.test(a.text.charAt(s))&&r[a.text.charAt(s)]||c.test(a.text.charAt(s+1))&&r[a.text.charAt(++s)];if(!u)return null;var f=">"==u.charAt(1)?1:-1;if(i&&i.strict&&f>0!=(s==t.ch))return null;var h=e.getTokenTypeAt(n(t.line,s+1)),d=o(e,n(t.line,s+(f>0?1:0)),f,h||null,i);return null==d?null:{from:n(t.line,s),to:d&&d.pos,match:d&&d.ch==u.charAt(0),forward:f>0}}function o(e,t,i,o,a){for(var s=a&&a.maxScanLineLength||1e4,l=a&&a.maxScanLines||1e3,c=[],u=A(a),f=i>0?Math.min(t.line+l,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-l),h=t.line;h!=f;h+=i){var d=e.getLine(h);if(d){var g=i>0?0:d.length-1,p=i>0?d.length:-1;if(!(d.length>s))for(h==t.line&&(g=t.ch-(i<0?1:0));g!=p;g+=i){var m=d.charAt(g);if(u.test(m)&&(void 0===o||e.getTokenTypeAt(n(h,g+1))==o)){var v=r[m];if(v&&">"==v.charAt(1)==i>0)c.push(m);else{if(!c.length)return{pos:n(h,g),ch:m};c.pop()}}}}}return h-i!=(i>0?e.lastLine():e.firstLine())&&null}function a(e,r,A){for(var o=e.state.matchBrackets.maxHighlightLineLength||1e3,a=[],s=e.listSelections(),l=0;l0&&r.ch>=i.length)return t.clipPos(n(r.line+1,0));for(var o,a="start",s=r.ch,l=s,c=A<0?0:i.length,u=0;l!=c;l+=A,u++){var f=i.charAt(A<0?l-1:l),h="_"!=f&&e.isWordChar(f)?"w":"o";if("w"==h&&f.toUpperCase()==f&&(h="W"),"start"==a)"o"!=h?(a="in",o=h):s=l+A;else if("in"==a&&o!=h){if("w"==o&&"W"==h&&A<0&&l--,"W"==o&&"w"==h&&A>0){if(l==s+1){o="w";continue}l--}break}}return n(r.line,l)}function A(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 i(t,r){if(t.isReadOnly())return e.Pass;t.operation((function(){for(var e=t.listSelections().length,A=[],i=-1,o=0;o=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=[],A=0;Ai.line&&a==o.line&&0==o.ch||r.push({anchor:a==i.line?i:n(a,0),head:a==o.line?o:n(a)});e.setSelections(r,0)},t.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},t.selectLine=function(e){for(var t=e.listSelections(),r=[],A=0;A=0;a--){var l=r[A[a]];if(!(s&&e.cmpPos(l.head,s)>0)){var c=o(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 A=o(t,n);if(!A.word)return;n=A.from,r=A.to}return{from:n,to:r,query:t.getRange(n,r),word:A}}function g(e,t){var r=d(e);if(r){var A=r.query,i=e.getSearchCursor(A,t?r.to:r.from);(t?i.findNext():i.findPrevious())?e.setSelection(i.from(),i.to()):(i=e.getSearchCursor(A,t?n(e.firstLine(),0):e.clipPos(n(e.lastLine()))),(t?i.findNext():i.findPrevious())?e.setSelection(i.from(),i.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 A=t.scanForBracket(r.head,1,u(t.getTokenTypeAt(r.head)));if(A&&0!=e.cmpPos(A.pos,r.head))return A.pos;var i=t.scanForBracket(r.head,-1,u(t.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return i&&n(i.pos.line,i.pos.ch+1)||r.head}))},t.swapLineUp=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),A=[],i=t.firstLine()-1,o=[],a=0;ai?A.push(l,c):A.length&&(A[A.length-1]=c),i=c}t.operation((function(){for(var e=0;et.lastLine()?t.replaceRange("\n"+a,n(t.lastLine()),null,"+swapLine"):t.replaceRange(a+"\n",n(i,0),null,"+swapLine")}t.setSelections(o),t.scrollIntoView()}))},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),A=[],i=t.lastLine()+1,o=r.length-1;o>=0;o--){var a=r[o],s=a.to().line+1,l=a.from().line;0!=a.to().ch||a.empty()||s--,s=0;e-=2){var r=A[e],i=A[e+1],o=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(o+"\n",n(i,0),null,"+swapLine")}t.scrollIntoView()}))},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),r=[],A=0;A=0;i--){var o=r[i].head,a=t.getRange({line:o.line,ch:0},o),s=e.countColumn(a,null,t.getOption("tabSize")),l=t.findPosH(o,-1,"char",!1);if(a&&!/\S/.test(a)&&s%A==0){var c=new n(o.line,e.findColumn(a,s-A,A));c.ch!=o.ch&&(l=c)}t.replaceRange("",l,o,"+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){h(e,(function(e){return e.toUpperCase()}))},t.downcaseAtCursor=function(e){h(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(),A=n;if(e.cmpPos(r,A)>0){var i=A;A=r,r=i}t.state.sublimeKilled=t.getRange(r,A),t.replaceRange("",r,A)}},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){g(e,!0)},t.findUnderPrevious=function(e){g(e,!1)},t.findAllUnder=function(e){var t=d(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],A=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&A++;e.setSelections(r,A)}};var p=e.keyMap;p.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(p.macSublime),p.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(p.pcSublime);var m=p.default==p.macDefault;p.sublime=m?p.macSublime:p.pcSublime}(ql)})),r((function(e,t){!function(e){var t;function n(e){var n=this;function o(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 a(){var e=n.element=B();w(),o(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=A((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=i(n,e);return r&&(e.stopPropagation(),e.preventDefault(),t[n](e)),r}))}))}function l(t,A,i){if(!t)return v(e),void y();var o,a,s,u,f,h,d,g=t,p=A,m=!0,w=p.caseSensitive,B=p.regExp,b=p.wholeWord;B&&(g=g.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")),b&&(g=w?g=RegExp("\\b"+g+"\\b"):RegExp("\\b"+g+"\\b","i")),B&&(g=RegExp(g)),v(e),c(e,g,w),y(),d=p.backwards?p.skipCurrent?"from":"to":p.skipCurrent?"to":"from",h=e.getCursor(d),u=(s=e.getSearchCursor(g,h,!w)).findNext.bind(s),f=s.findPrevious.bind(s),s.matches.bind(s),p.backwards&&!f()?(m=u())&&(e.setCursor(e.doc.size-1,0),l(t,A,i),o=!0):p.backwards||u()||(m=f())&&(e.setCursor(0,0),l(t,A,i),o=!0),a=!m&&n.searchInput.value,r(n.searchBox,"ace_nomatch",a),!o&&m&&i(s)}function c(e,t,n){var r=m(e),A=t;A&&A!==r.queryText&&(h(e,r,A,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 f(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 h(e,t,n,r){t.queryText=n,t.query=f(n),e.removeOverlay(t.overlay,d(t.query,r)),t.overlay=g(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 g(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 p(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function m(e){return e.state.search||(e.state.search=new p)}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 y(){var t,r=n.searchInput.value,A=[];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")),A=e.getValue().match(t));var i=A?A.length:0,o=e.display.wrapper.parentElement.querySelector(".ace_search_counter");o&&(o.innerText=i+" matches found."),0===i&&e.setSelection({ch:0,line:0},{ch:0,line:0})}function w(){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 B(){var t,n=e.getWrapperElement(),r=document.createElement("div"),A=['"].join("");return r.innerHTML=A,t=r.firstChild,n.appendChild(t),t}a(),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"),y()},this.replaceAndFindNext=function(){e.getOption("readOnly")||(this.replace(),this.findNext())},this.replaceAll=function(){var t,n,r=this.searchInput.value,A=this.replaceInput.value,i=RegExp(r,this.caseSensitiveOption.checked?"g":"gi");this.wholeWordOption.checked&&!this.regExpOption.checked&&(i=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(i,A),e.setValue(t),e.setCursor(n)),y()},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 A(e,t){var n,r=function(){n=null,e()},A=function(e){n||(n=setTimeout(r,e||t))};return A.delay=function(e){n&&clearTimeout(n),n=setTimeout(r,e||t)},A.schedule=A,A.call=function(){this.cancel(),e()},A.cancel=function(){n&&clearTimeout(n),n=null},A.isPending=function(){return n},A}function i(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 o(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(A){e.toUpperCase()===A&&(n=t.keyCode===r[A])}))}return!n})),!n})),n}function o(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 A=!1;e.parentElement.querySelector("[action=toggleReplace]")&&(A="-"===e.parentElement.querySelector("[action=toggleReplace]").innerText),t.show(r.getSelection(),A)},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 A=!1;e.parentElement.querySelector("[action=toggleReplace]")&&(A="-"===e.parentElement.querySelector("[action=toggleReplace]").innerText),t.show(r.getSelection(),A)}})}))}(ql)}));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(),A=this.annotations,i=t.getOption("lineWrapping"),o=i&&1.5*t.defaultTextHeight(),a=null,s=null;function l(e,n){if(a!=e.line){a=e.line,s=t.getLineHandle(e.line);var r=t.getLineHandleVisualStart(s);r!=s&&(a=t.getLineNumber(r),s=r)}return s.widgets&&s.widgets.length||i&&s.height>o?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,f=0;fc)){for(var d=u||l(h.from,!0)*n,g=l(h.to,!1)*n;fc)&&!((u=l(A[f+1].from,!0)*n)>g+.9);)g=l((h=A[++f]).to,!1)*n;if(g!=d){var p=Math.max(g-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: "+p+"px",m.className=this.options.className,h.id&&m.setAttribute("annotation-id",h.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)}}(ql)}));r((function(e,t){!function(e){function t(e,t,n,r){this.cm=e,this.options=r;var A={listenForChanges:!1};for(var i in r)A[i]=r[i];A.className||(A.className="CodeMirror-search-match"),this.annotation=e.annotateScrollbar(A),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 o=this;e.on("change",this.changeHandler=function(e,t){o.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++)i.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}),A=this.options&&this.options.maxMatches||n;r.findNext();){var i;if((i={from:r.from(),to:r.to()}).from.line>=this.gap.to)break;if(this.matches.splice(t++,0,i),this.matches.length>A)break}this.gap=null}},t.prototype.onChange=function(t){var n=t.from.line,A=e.changeEnd(t).line,i=A-t.to.line;if(this.gap?(this.gap.from=Math.min(r(this.gap.from,n,i),t.from.line),this.gap.to=Math.max(r(this.gap.to,n,i),t.from.line)):this.gap={from:t.from.line,to:A+1},i)for(var o=0;oe.length)&&(t=e.length);for(var n=0,r=new Array(t);n>>0||(Qc(Cc,n)?16:10))}:wc;Ye({global:!0,forced:parseInt!=kc},{parseInt:kc});var Tc=D.parseInt,xc=a.RangeError;Ye({target:"String",proto:!0},{repeat:function(e){var t=yn(I(this)),n="",r=Ft(e);if(r<0||r==1/0)throw xc("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}});var Ec=tA("String").repeat,Fc=String.prototype,Uc=function(e){var t=e.repeat;return"string"==typeof e||e===Fc||R(Fc,e)&&t===Fc.repeat?Ec:t},Sc={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)?pc(n=e.attrs.class).call(n,"ch-icon-check")>=0?r+="[x]":r+="[ ]":e.attrs.class&&/cherry-code-preview-lang-select/.test(e.attrs.class)?r+="":r+=this.$dealTag(e);return r},$dealTag:function(e){var t=this,n="";return e.children&&(n=t.$dealHtml(e.children)),/(style|meta|link|script)/.test(e.name)?"":"code"===e.name||"pre"===e.name?t.tagParser.codeParser(e,t.$dealCodeTag(e),"pre"===e.name):"function"==typeof t.tagParser["".concat(e.name,"Parser")]?t.tagParser["".concat(e.name,"Parser")](e,n):n},$dealCodeTag:function(e){if(e.children.length<0)return"";for(var t="",n=0;n])+>/g,empty:mc?mc(null):{},parseTags:function(e){var t,n=this,r=0,A={type:"tag",name:"",voidElement:!1,attrs:{},children:[]};return e.replace(this.attrRE,(function(i){r%2?t=i:0===r?((n.lookup[i]||"/"===e.charAt(e.length-2))&&(A.voidElement=!0),A.name=i):A.attrs[t]=i.replace(/['"]/g,""),r+=1})),A},parseHtml:function(e,t){var n=this,r=t||{};r.components||(r.components=this.empty);var A,i=[],o=-1,a=[],s={},l=!1;return e.replace(this.tagRE,(function(t,c){if(l){if(t!==""))return;l=!1}var u,f="/"!==t.charAt(1),h=c+t.length,d=e.charAt(h);f&&(o+=1,"tag"===(A=n.parseTags(t)).type&&r.components[A.name]&&(A.type="component",l=!0),A.voidElement||l||!d||"<"===d||A.children.push({type:"text",content:vc(e).call(e,h,pc(e).call(e,"<",h))}),s[A.tagName]=A,0===o&&i.push(A),(u=a[o-1])&&u.children.push(A),a[o]=A),f&&!A.voidElement||(o-=1,!l&&"<"!==d&&d&&a[o]&&a[o].children.push({type:"text",content:vc(e).call(e,h,pc(e).call(e,"<",h))}))})),i}},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=[],A=0;A0?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,A,i,o,a,s=t[1].match(/rgb\(([ 0-9]+),([ 0-9]+),([ 0-9]+)\)/);if(s[1]&&s[2]&&s[3])s[1]=Tc(wl(r=s[1]).call(r),10),s[2]=Tc(wl(A=s[2]).call(A),10),s[3]=Tc(wl(i=s[3]).call(i),10),n=zi(o=zi(a="#".concat(s[1].toString(16))).call(a,s[2].toString(16))).call(o,s[3].toString(16))}else{n=gc(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?zi(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?zi(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?zi(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 zi(n="![".concat(r,"](")).call(n,t,")")},convertGraph:function(e,t,n,r){var A,i,o,a=e&&e.length>0?e:"graph",s="";if(r)try{var l,c=r.attrs;ti(l=mn(c)).call(l,(function(e){var t;Object.prototype.hasOwnProperty.call(c,e)&&(pc(e).call(e,"data-graph-")>=0&&c[e]&&(s+=zi(t=" ".concat(e,"=")).call(t,c[e])))}))}catch(e){}return zi(A=zi(i=zi(o="![".concat(a,"](")).call(o,t,"){data-control=tapd-graph data-origin-xml=")).call(i,n)).call(A,s,"}")},convertVideo:function(e,t,n,r){var A,i,o=r&&r.length>0?r:"video";return zi(A=zi(i="!video[".concat(o,"](")).call(i,t,"){poster=")).call(A,n,"}")},convertA:function(e,t){var n;if(e===t)return"".concat(e," ");var r=wl(e).call(e);return r?zi(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,"
").replace(/ /g,"~s~")," ~|")},convertTh:function(e){return/^\s*$/.test(e)?"":"~|".concat(wl(e).call(e).replace(/\n{1,}/g,"
")," ~|")},convertTr:function(e){return/^\s*$/.test(e)?"":"".concat(wl(e).call(e).replace(/\n/g,""),"\n")},convertThead:function(e){var t,n="".concat(e.replace(/[ \t]+/g,"").replace(/~\|~\|/g,"~|").replace(/~\|/g,"|"),"\n"),r=n.match(/\|/g).length-1;return zi(t="".concat(n,"|")).call(t,Uc(":-:|").call(":-:|",r),"\n")},convertTable:function(e){var t="\n".concat(e.replace(/[ \t]+/g,"").replace(/~\|~\|/g,"~|").replace(/~\|/g,"|"),"\n").replace(/\n{2,}/g,"\n").replace(/\n[ \t]+\n/g,"\n").replace(/~s~/g," ");if(!/\|:-:\|/.test(t)){var n,r,A=t.match(/^\n[^\n]+\n/)[0].match(/\|/g).length-1;t=zi(n=zi(r="\n|".concat(Uc(" |").call(" |",A),"\n|")).call(r,Uc(":-:|").call(":-:|",A))).call(n,t)}return t},convertLi:function(e){return"- ".concat(e.replace(/^\n/,"").replace(/\n+$/,"").replace(/\n+/g,"\n\t"),"\n")},convertUl:function(e){return"".concat(e,"\n")},convertOl:function(e){for(var t=e.split("\n"),n=1,r=0;r".concat(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 o=0;o=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),A=e.getBoundingClientRect();if(!n)return{height:Math.max(Pc(r.marginTop)+A.height+Pc(r.marginBottom),0),offsetTop:e.offsetTop-Math.abs(Pc(r.marginTop))};var i=getComputedStyle(n),o=Kc(r.marginBottom,i.marginTop);return{height:Math.max(Pc(r.marginTop)+A.height+o,0),offsetTop:e.offsetTop-Math.abs(Pc(r.marginTop))}}var a,s,l,c,u=getComputedStyle(e),f=e.getBoundingClientRect(),h=getComputedStyle(t),d=(a=h.marginBottom,s=u.marginTop,l=Pc(a),(c=Pc(s))<0?0:l>=0?Math.max(c-l,0):c);if(!n)return{height:Math.max(d+f.height+Pc(u.marginBottom),0),offsetTop:e.offsetTop-Math.abs(Pc(u.marginTop))};var g=getComputedStyle(n),p=Kc(u.marginBottom,g.marginTop);return{height:Math.max(d+f.height+p,0),offsetTop:e.offsetTop-Math.abs(d)}}function Xc(e,t){if(!e||!e.tagName)return"";var n,r,A=document.createElement("div");return A.appendChild(e.cloneNode(!1)),n=A.innerHTML,t&&(r=pc(n).call(n,">")+1,n=n.substring(0,r)+e.innerHTML+n.substring(r)),A=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]:{},A=document.createElement(e);(A.className=n,void 0!==r)&&ti(t=mn(r)).call(t,(function(e){var t=r[e];if(Zl(e).call(e,"data-")){var n=e.replace(/^data-/,"");A.dataset[n]=t}else A.setAttribute(e,t)}));return A}var jc={showSwitchBtnAfterPasteHtml:function(e,t,n,r,A){wl(r).call(r)!==wl(A).call(A)&&(this.init(e,t,n,r,A),this.setSelection(),this.bindListener(),this.initBubble(),this.showBubble(),"text"===this.getTypeFromLocalStorage()&&this.switchTextClick())},init:function(e,t,n,r,A){this.$cherry=e,this.html=r,this.md=A,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=Ic({},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 A=Vc("span","cherry-toolbar-button cherry-md-btn",{title:this.locale.pasteMarkdown});A.innerText="Markdown";var i=Vc("span","switch-btn--bg");this.bubbleDom=n,this.switchText=r,this.switchMd=A,this.switchBG=i,this.bubbleDom.appendChild(r),this.bubbleDom.appendChild(A),this.bubbleDom.appendChild(i),this.bubbleDom.setAttribute("data-type","md"),this.codemirror.getWrapperElement().appendChild(this.bubbleDom),this.switchMd.addEventListener("click",eo(e=this.switchMDClick).call(e,this)),this.switchText.addEventListener("click",eo(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=Nl(this.codemirror.getWrapperElement().getElementsByClassName("CodeMirror-selected")),t=0,n=0;if(e.length<=0)return this.hideBubble(),{};for(var r=0;rn&&i>=t&&(n=o),i>t&&(t=i)}return{top:n}}},Gc=jc;function Wc(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 Zc=new(function(){function e(){var t;ui(this,e),Gi(this,"Events",{previewerClose:"previewer:close",previewerOpen:"previewer:open",editorClose:"editor:close",editorOpen:"editor:open",toolbarHide:"toolbar:hide",toolbarShow:"toolbar:show",cleanAllSubMenus:"cleanAllSubMenus"}),Gi(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 di(e,[{key:"on",value:function(e,t,n){var r;this.emitter.on(zi(r="".concat(e,":")).call(r,t),n)}},{key:"emit",value:function(e,t){var n;this.emitter.emit(zi(n="".concat(e,":")).call(n,t))}}]),e}());function qc(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,A=document.createElement("input");A.type="file",A.id="fileUpload",A.value="",A.style.display="none",A.accept=n,A.addEventListener("change",(function(n){var A=gc(n.target.files,1)[0];e.options.fileUpload(A,(function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof n&&n){if(r)return r(A.name,n,i);var o,a="";if("image"===t)a=zi(o="![".concat(A.name,"](")).call(o,n,")");else if("video"===t){var s;a=zi(s="!video[".concat(A.name,"](")).call(s,n,")")}else if("audio"===t){var l;a=zi(l="!audio[".concat(A.name,"](")).call(l,n,")")}else{var c;a=zi(c="[".concat(A.name,"](")).call(c,n,")")}e.editor.doc.replaceSelection(a)}}))})),A.click()}function Yc(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 eu(e,t,n){var r,A,i,o,a,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?Yc(t):"";return zi(A=zi(i=zi(o=zi(a="".concat(l,"[")).call(a,s)).call(o,u,"](")).call(i,e,")")).call(A,c)}function tu(e,t){var n=mn(e);if(zr){var r=zr(e);t&&(r=AA(r).call(r,(function(t){return fA(e,t).enumerable}))),n.push.apply(n,r)}return n}function nu(e){for(var t=1;t\\x00-\\x1f"\\(\\)]*)?'),fu=new RegExp("(?:\\/\\/)".concat(uu.source)),hu=new RegExp("^".concat(uu.source,"$")),du=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 pu(){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=ru(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=ru(r,"g",!0),!1===t?{strict:n,loose:r}:ru({begin:"",content:zi(e="(?:".concat(n.begin+n.content+n.end,"|")).call(e,r.begin+r.content+r.end,")"),end:""},"g",!0)}function mu(){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"),nu(nu({},e),{},{begin:e.begin.source,content:e.content.source,end:e.end.source})}function vu(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 A={};n=n.replace(/^(\s*)(\S[\s\S]*?)$/gm,(function(e,t,n){var r,i,o,a=(null===(r=t.match(/[ \t]/g))||void 0===r?void 0:r.length)||0;return A[a]=A[a]?A[a]+1:1,zi(i=zi(o="".concat(t)).call(o,A[a],". ")).call(i,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 wu(){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,Qu=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(mu().reg,(function(e){return e.replace(/^.*$/gm,"/n")})).replace(/(`+)(.+?(?:\n.+?)*?)\1/g,(function(e){return e.replace(/[![\]()]/g,".")}))};function ku(e){(function(e){var t=/^(\s*)([I一二三四五六七八九十]+)\.(\s+)/,n=/^(\s*)([I一二三四五六七八九十]+)\.(\s+)$/;if(e.getOption("disableInput"))return!1;for(var r=e.listSelections(),A=[],i=0;i0)){var g=Vc("span","cm-string ".concat(t),{title:l});g.textContent=l,n.noChange=!0,r.markText(h,d,{replacedWith:g,atomic:!0})}}}})),Gi(this,"onKeyup",(function(e,t){var r=t.getCursor().line;n.previewer.highlightLine(r+1)})),Gi(this,"onScroll",(function(e){if(Zc.emit(n.instanceId,Zc.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,A=e.lineAtHeight(r,"local"),i=e.charCoords({line:A,ch:0},"local"),o=e.getLineHandle(A).height,a=100*(r-(i.bottom-o))/o/100;n.previewer.scrollToLineNum(A+1,a)}}})),Gi(this,"onMouseDown",(function(e,t){Zc.emit(n.instanceId,Zc.Events.cleanAllSubMenus);var r=e.getCursor().line,A=Math.abs(t.y-e.getWrapperElement().getBoundingClientRect().y);n.previewer.scrollToLineNumWithOffset(r+1,A),n.toHalfWidth(e,t)})),Gi(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:ku},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,A=Ws(t,Tu);r&&el(this.options.codemirror,r),el(this.options,A),this.$cherry=this.options.$cherry,this.instanceId=this.$cherry.getInstanceId()}return di(e,[{key:"formatFullWidthMark",value:function(){var e,t=this.editor,n=/[·¥、:“”【】()《》]/,r=t.getSearchCursor(n),A=r.findNext();for(ti(e=t.getAllMarks()).call(e,(function(e){if("cm-fullWidth"===e.className){var r=JSON.parse(tl(sl(e).call(e))),A=t.getRange(r.from,r.to);n.test(A)||e.clear()}}));!1!==A;A=r.findNext()){var i,o=r.from();if(o){var a={line:o.line,ch:o.ch},s={line:o.line,ch:o.ch+1};0===AA(i=t.findMarks(a,s)).call(i,(function(e){return"cm-fullWidth"===e.className})).length&&t.markText(a,s,{className:"cm-fullWidth",title:"按住Ctrl/Cmd点击切换成半角(Hold down Ctrl/Cmd and click to switch to half-width)"})}}}},{key:"toHalfWidth",value:function(e,t){var n=t.target;if(n instanceof HTMLElement&&n.classList.contains("cm-fullWidth")&&(t.ctrlKey||t.metaKey)&&1===t.buttons){var r=n.getBoundingClientRect(),A=e.coordsChar({left:r.left,top:r.top}),i={line:A.line,ch:A.ch+1};e.setSelection(A,i),e.replaceSelection(n.innerText.replace("·","`").replace("¥","$").replace("、","/").replace(":",":").replace("“",'"').replace("”",'"').replace("【","[").replace("】","]").replace("(","(").replace(")",")").replace("《","<").replace("》",">"))}}},{key:"onPaste",value:function(e,t){var n=e.clipboardData;n?this.handlePaste(e,n,t):(n=window.clipboardData,this.handlePaste(e,n,t))}},{key:"handlePaste",value:function(e,t,n){var r=this;this.pasterHtml=!1;for(var A=t.items,i=t.types||[],o=n.getDoc(),a=0;a1&&void 0!==arguments[1]?arguments[1]:{},t);if(r.pasterHtml){var i=n.getCursor(),a=i.line,s=i.ch;n.setSelection({line:a,ch:s},{line:a,ch:s}),o.replaceSelection("\n".concat(A),"end")}else o.replaceSelection(A)}})),e.preventDefault()}()}var l=t.getData("text/plain"),c=t.getData("Text/Html");if(!c||!this.options.convertWhenPaste)return!0;var u=document.createElement("DIV");u.innerHTML=c,c=u.innerHTML;var f=Lc.run(c);if("string"==typeof f&&wl(f).call(f).length>0){this.pasterHtml=!0;var h=n.listSelections();if(n.getSelections().length<=1&&h[0]&&h[0].anchor){var d={};d.line=h[0].anchor.line,d.ch=h[0].anchor.ch,o.replaceSelection(f),Gc.showSwitchBtnAfterPasteHtml(this.$cherry,d,n,l,f)}else o.replaceSelection(f);e.preventDefault()}u=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=ql.fromTextArea(n,this.options.codemirror);r.addOverlay({name:"invisibles",token:function(e){var t,n=0,r=" "===e.peek();if(r){for(;r&&n0&&lo((function(){for(var n=function(n){var A=r[n],i=A.type||"";if(""===i||/^text/i.test(i))return"continue";t.options.fileUpload(A,(function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof r){e.setSelection(e.getCursor());var o=eu(r,i,A),a=n>0?"\n".concat(o," "):"".concat(o," ");e.replaceSelection(a),t.dealSpecialWords()}}))},A=0;A0){if(t>=r.animation.destinationTop)return void(r.animation.timer=0);r.disableScrollListener=!0,r.editor.scrollTo(null,t+A)}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-A)}t===r.editor.getScrollInfo().top||A>=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),A=this.getEditorDom();ti(e=AA(t=Nl(A.classList)).call(t,(function(e){return Zl(e).call(e,"cherry-editor-writing-style--")}))).call(e,(function(e){return A.classList.remove(e)})),"normal"!==n&&(A.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),A=document.querySelector("#cherry-editor-writing-style")||document.createElement("style");A.id="cherry-editor-writing-style",sl(e=Nl(document.head.childNodes)).call(e,(function(e){return e===A}))||document.head.appendChild(A);var i=A.sheet;if(ti(t=Nl(Array(i.cssRules.length))).call(t,(function(){return i.deleteRule(0)})),"focus"===n){var o,a,s=this.getEditorDom().getBoundingClientRect(),l=this.editor.charCoords(this.editor.getCursor()),c=l.top,u=l.bottom,f=c-s.top,h=s.height-(u-s.top);i.insertRule(zi(o=".".concat(r,"::before { height: ")).call(o,f>0?f:0,"px; }"),0),i.insertRule(zi(a=".".concat(r,"::after { height: ")).call(a,h>0?h:0,"px; }"),0)}if("typewriter"===n){var d,g,p=this.editor.getScrollInfo().clientHeight/2;i.insertRule(zi(d=".".concat(r," .CodeMirror-lines::before { height: ")).call(d,p,"px; }"),0),i.insertRule(zi(g=".".concat(r," .CodeMirror-lines::after { height: ")).call(g,p,"px; }"),0),this.editor.scrollTo(null,this.editor.cursorCoords(null,"local").top-p)}}}},{key:"setWritingStyle",value:function(e){this.options.writingStyle=e,this.initWritingStyle()}}]),e}(),Eu=nr.findIndex,Fu="findIndex",Uu=!0;Fu in[]&&Array(1)[Fu]((function(){Uu=!1})),Ye({target:"Array",proto:!0,forced:Uu},{findIndex:function(e){return Eu(this,e,arguments.length>1?arguments[1]:void 0)}});var Su=tA("Array").findIndex,Lu=Array.prototype,Hu=function(e){var t=e.findIndex;return e===Lu||R(Lu,e)&&t===Lu.findIndex?Su:t},Iu=qr("splice"),Mu=a.TypeError,_u=Math.max,Du=Math.min;Ye({target:"Array",proto:!0,forced:!Iu},{splice:function(e,t){var n,r,A,i,o,a,s=se(this),l=Mt(s),c=Lt(e,l),u=arguments.length;if(0===u?n=r=0:1===u?(n=0,r=l-c):(n=u-2,r=Du(_u(Ft(t),0),l-c)),l+n-r>9007199254740991)throw Mu("Maximum allowed length exceeded");for(A=Yn(s,r),i=0;il-r+n;i--)delete s[i-1]}else if(n>r)for(i=l-r;i>c;i--)a=i+n-1,(o=i+r-1)in s?s[a]=s[o]:delete s[a];for(i=0;i1?arguments[1]:void 0)}});var ju=tA("Array").map,Gu=Array.prototype,Wu=function(e){var t=e.map;return e===Gu||R(Gu,e)&&t===Gu.map?ju:t};function Ju(e,t){var n,r,A,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return/^\n/.test(e)?i?(null!==(n=null===(r=e.match(/^\n+/g))||void 0===r||null===(A=r[0])||void 0===A?void 0:A.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 Zu=Yl;function qu(e,t){if(Zu(t))return t}function Yu(e){return"undefined"!=typeof localStorage&&null!==localStorage.getItem("cherry-".concat(e))}function ef(){var e="false";return"undefined"!=typeof localStorage&&(e=localStorage.getItem("cherry-classicBr")),"true"===e}function tf(){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 nf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=(t||tf()).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 rf=a.RangeError,Af=String.fromCharCode,of=String.fromCodePoint,af=v([].join),sf=!!of&&1!=of.length;Ye({target:"String",stat:!0,arity:1,forced:sf},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,A=0;r>A;){if(t=+arguments[A++],Lt(t,1114111)!==t)throw rf(t+" is not a valid code point");n[A]=t<65536?Af(t):Af(55296+((t-=65536)>>10),t%1024+56320)}return af(n,"")}});var lf,cf,uf=D.String.fromCodePoint;function ff(e,t){var n=mn(e);if(zr){var r=zr(e);t&&(r=AA(r).call(r,(function(t){return fA(e,t).enumerable}))),n.push.apply(n,r)}return n}function hf(e){for(var t=1;t":">","&":"&",'"':""","'":"'"},gf={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},pf=hf(hf(hf(hf(hf(hf({},{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:"♦"}),mf=mn(pf),vf=Wu(mf).call(mf,(function(e){return pf[e].replace(/^&(\w+);$/g,(function(e,t){return t.toLowerCase()}))})),yf=function(e){return"string"!=typeof e||e.length<=0},wf=function(e){try{var t=uf(e);return!yf(t)}catch(e){return!1}};var Bf=["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("|"),bf=["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("|"),Cf=new RegExp(zi(lf=zi(cf="^(".concat(Bf,"|")).call(cf,bf,"|")).call(lf,"br|img|hr",")( |$|/)"),"i");function Qf(e,t){return"string"!=typeof e?"":t?e.replace(/[<>&]/g,(function(e){return df[e]||e})):e.replace(/[<>&"']/g,(function(e){return df[e]||e}))}function kf(e,t){if("string"!=typeof e)return"";var n=Tf(e);return n=function(e){return"string"!=typeof e?"":e.replace(/&(\w+);?/g,(function(e,t){return gf[t]||e}))}(n),Qf(n,t)}function Tf(e){return e.replace(/&#(\d+);?/g,(function(e,t){return pf[t]||e}))}function xf(e){var t=function(e){return e.replace(/&#x([0-9a-f]+);?/gi,(function(e,t){var n=Tc("0x".concat(t),16);try{return uf(n)}catch(t){return e}}))}(function(e){return e.replace(/&#(\d+);?/g,(function(e,t){try{return uf(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===pc(n).call(n,r.toLowerCase())}function Ef(e){return encodeURI(e).replace(/%25/g,"%")}function Ff(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var Uf=0,Sf=function(e){Bi(n,$u);var t=Ff(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{needCache:!1},A=r.needCache,i=r.defaultCache,o=void 0===i?{}:i;return ui(this,n),(e=t.call(this,{})).needCache=!!A,e.sign="",A&&(e.cache=o||{},e.cacheKey="~~C".concat(Uf),Uf+=1),e}return di(n,[{key:"initBrReg",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.classicBr=Yu("classicBr")?ef():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,A,i=null!==(t=null===(n=this.$engine.htmlWhiteListAppend)||void 0===n?void 0:n.split("|"))&&void 0!==t?t:[];i=AA(r=Wu(i).call(i,(function(e){return/[a-z-]+/gi.test(e)?e:null}))).call(r,(function(e){return null!==e}));var o=zi(i).call(i,Bf).join("|");this.removeBrAfterBlock=new RegExp("<(".concat(o,")(>| [^>]*?>)[^\\S\\n]*?\\n"),"ig"),this.removeBrBeforeBlock=new RegExp("\\n[^\\S\\n]*?<\\/(".concat(o,")>[^\\S\\n]*?\\n"),"ig"),this.removeNewlinesBetweenTags=new RegExp(zi(A="<\\/(".concat(o,")>[^\\S\\n]*?\\n([^\\S\\n]*?)<(")).call(A,o,")(>| [^>]*?>)"),"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),A=new RegExp("~~C\\d+I".concat(n.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,"\\w+\\$"),"g").test(e);return r&&!A}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,A=n.contents,i=Wu(A).call(A,t),o="",a=0;a2&&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!==(A=null===(i=t.match(/\n+$/))||void 0===i?void 0:i[0])&&void 0!==A?A:"";return s?Ju(t,e):zi(o=zi(a="".concat(l)).call(a,e)).call(o,c)}},{key:"getLineCount",value:function(e){var t,r,A,i=e,o=null!==(t=null===(r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").match(/^\n+/g))||void 0===r||null===(A=r[0])||void 0===A?void 0:A.length)&&void 0!==t?t:0;o=1===o?1:0,i=i.replace(/^\n+/g,"");var a=new RegExp("\n*~~C\\d+I(?:".concat(n.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")?\\w+?_L(\\d+)\\$"),"g"),s=0;return i=i.replace(a,(function(e,t){return s+=Tc(t,10),e.replace(/^\n+/g,"")})),o+s+(i.match(/\n/g)||[]).length+1}},{key:"pushCache",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",A=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this.needCache){var i=r||this.$engine.md5(e);return this.cache[i]={content:e,using:!0},zi(t=zi(n="".concat(this.cacheKey,"I")).call(n,i,"_L")).call(t,A,"$")}}},{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=mn(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,zi(n=zi(r="".concat(this.cacheKey,"I")).call(r,this.sign,"_L")).call(n,A,"$")):this.toHtml(e,t)}},{key:"mounted",value:function(){}},{key:"signWithCache",value:function(e){return!1}}]),n}();Gi(Sf,"HOOK_TYPE",Ku.PAR),Gi(Sf,"IN_PARAGRAPH_CACHE_KEY_PREFIX","!"),Gi(Sf,"IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX","\\!");var Lf=s((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Hf=Object.isExtensible,If=s((function(){Hf(1)}))||Lf?function(e){return!!_(e)&&((!Lf||"ArrayBuffer"!=F(e))&&(!Hf||Hf(e)))}:Hf,Mf=!s((function(){return Object.isExtensible(Object.preventExtensions({}))})),_f=r((function(e){var t=Je.f,n=!1,r=de("meta"),A=0,i=function(e){t(e,r,{value:{objectID:"O"+A++,weakData:{}}})},o=e.exports={enable:function(){o.enable=function(){},n=!0;var e=Bn.f,t=v([].splice),A={};A[r]=1,e(A).length&&(Bn.f=function(n){for(var A=e(n),i=0,o=A.length;ii;i++)if((a=p(e[i]))&&R(Nf,a))return a;return new Of(!1)}r=Fl(e,A)}for(s=r.next;!(l=b(s,r)).done;){try{a=p(l.value)}catch(e){Bl(r,"throw",e)}if("object"==typeof a&&a&&R(Nf,a))return a}return new Of(!1)},Pf=a.TypeError,Kf=function(e,t){if(R(t,e))return e;throw Pf("Incorrect invocation")},$f=Je.f,Xf=nr.forEach,Vf=Jn.set,jf=Jn.getterFor,Gf=function(e,t,n){for(var r in t)n&&n.unsafe&&e[r]?e[r]=t[r]:Un(e,r,t[r],n);return e},Wf=ye("species"),Jf=function(e){var t=N(e),n=Je.f;w&&t&&!t[Wf]&&n(t,Wf,{configurable:!0,get:function(){return this}})},zf=Je.f,Zf=_f.fastKey,qf=Jn.set,Yf=Jn.getterFor,eh={getConstructor:function(e,t,n,r){var A=e((function(e,A){Kf(e,i),qf(e,{type:t,index:nn(null),first:void 0,last:void 0,size:0}),w||(e.size=0),null!=A&&Rf(A,e[r],{that:e,AS_ENTRIES:n})})),i=A.prototype,o=Yf(t),a=function(e,t,n){var r,A,i=o(e),a=s(e,t);return a?a.value=n:(i.last=a={index:A=Zf(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),w?i.size++:e.size++,"F"!==A&&(i.index[A]=a)),e},s=function(e,t){var n,r=o(e),A=Zf(t);if("F"!==A)return r.index[A];for(n=r.first;n;n=n.next)if(n.key==t)return n};return Gf(i,{clear:function(){for(var e=o(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,w?e.size=0:this.size=0},delete:function(e){var t=this,n=o(t),r=s(t,e);if(r){var A=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=A),A&&(A.previous=i),n.first==r&&(n.first=A),n.last==r&&(n.last=i),w?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=o(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)}}),Gf(i,n?{get:function(e){var t=s(this,e);return t&&t.value},set:function(e,t){return a(this,0===e?0:e,t)}}:{add:function(e){return a(this,e=0===e?0:e,e)}}),w&&zf(i,"size",{get:function(){return o(this).size}}),A},setStrong:function(e,t,n){var r=t+" Iterator",A=Yf(t),i=Yf(r);RA(e,t,(function(e,t){qf(this,{type:r,target:e,state:A(e),kind:t,last:void 0})}),(function(){for(var e=i(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),Jf(t)}};!function(e,t,n){var r,A=-1!==e.indexOf("Map"),i=-1!==e.indexOf("Weak"),o=A?"set":"add",l=a[e],c=l&&l.prototype,u={};if(w&&y(l)&&(i||c.forEach&&!s((function(){(new l).entries().next()})))){var f=(r=t((function(t,n){Vf(Kf(t,f),{type:e,collection:new l}),null!=n&&Rf(n,t[o],{that:t,AS_ENTRIES:A})}))).prototype,h=jf(e);Xf(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in c)||i&&"clear"==e||ze(f,e,(function(n,r){var A=h(this).collection;if(!t&&i&&!_(n))return"get"==e&&void 0;var o=A[e](0===n?0:n,r);return t?this:o}))})),i||$f(f,"size",{configurable:!0,get:function(){return h(this).collection.size}})}else r=n.getConstructor(t,e,A,o),_f.enable();On(r,e,!1,!0),u[e]=r,Ye({global:!0,forced:!0},u),i||n.setStrong(r,e,A)}("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),eh);var th=D.Map,nh=[].push;Ye({target:"Map",stat:!0,forced:!0},{from:function(e){var t,n,r,A,i=arguments.length,o=i>1?arguments[1]:void 0;return kt(this),(t=void 0!==o)&&ee(o),null==e?new this:(n=[],t?(r=0,A=Oe(o,i>2?arguments[2]:void 0),Rf(e,(function(e){b(nh,n,A(e,r++))}))):Rf(e,nh,{that:n}),new this(n))}});Ye({target:"Map",stat:!0,forced:!0},{of:function(){return new this(et(arguments))}});Ye({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=Ke(this),n=ee(t.delete),r=!0,A=0,i=arguments.length;A1?arguments[1]:void 0);return!Rf(n,(function(e,n,A){if(!r(n,e,t))return A()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var Ah=ye("species"),ih=function(e,t){var n,r=Ke(e).constructor;return void 0===r||null==(n=Ke(r)[Ah])?t:kt(n)};Ye({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=Ke(this),n=rh(t),r=Oe(e,arguments.length>1?arguments[1]:void 0),A=new(ih(t,N("Map"))),i=ee(A.set);return Rf(n,(function(e,n){r(n,e,t)&&b(i,A,e,n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),A}}),Ye({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=Ke(this),n=rh(t),r=Oe(e,arguments.length>1?arguments[1]:void 0);return Rf(n,(function(e,n,A){if(r(n,e,t))return A(n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}}),Ye({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=Ke(this),n=rh(t),r=Oe(e,arguments.length>1?arguments[1]:void 0);return Rf(n,(function(e,n,A){if(r(n,e,t))return A(e)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}});var oh=v([].push);Ye({target:"Map",stat:!0,forced:!0},{groupBy:function(e,t){ee(t);var n=Fl(e),r=new this,A=ee(r.has),i=ee(r.get),o=ee(r.set);return Rf(n,(function(e){var n=t(e);b(A,r,n)?oh(b(i,r,n),e):b(o,r,n,[e])}),{IS_ITERATOR:!0}),r}});Ye({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return Rf(rh(Ke(this)),(function(t,n,r){if((A=n)===(i=e)||A!=A&&i!=i)return r();var A,i}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}}),Ye({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var n=new this;ee(t);var r=ee(n.set);return Rf(e,(function(e){b(r,n,t(e),e)})),n}}),Ye({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){return Rf(rh(Ke(this)),(function(t,n,r){if(n===e)return r(t)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}}),Ye({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=Ke(this),n=rh(t),r=Oe(e,arguments.length>1?arguments[1]:void 0),A=new(ih(t,N("Map"))),i=ee(A.set);return Rf(n,(function(e,n){b(i,A,r(n,e,t),n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),A}}),Ye({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=Ke(this),n=rh(t),r=Oe(e,arguments.length>1?arguments[1]:void 0),A=new(ih(t,N("Map"))),i=ee(A.set);return Rf(n,(function(e,n){b(i,A,e,r(n,e,t))}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),A}}),Ye({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,A=0;A1?arguments[1]:void 0);return Rf(n,(function(e,n,A){if(r(n,e,t))return A()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var sh=a.TypeError;Ye({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var n=Ke(this),r=ee(n.get),A=ee(n.has),i=ee(n.set),o=arguments.length;ee(t);var a=b(A,n,e);if(!a&&o<3)throw sh("Updating absent value");var s=a?b(r,n,e):ee(o>2?arguments[2]:void 0)(e,n);return b(i,n,e,t(s,e,n)),n}});var lh=a.TypeError,ch=function(e,t){var n,r=Ke(this),A=ee(r.get),i=ee(r.has),o=ee(r.set),a=arguments.length>2?arguments[2]:void 0;if(!y(t)&&!y(a))throw lh("At least one callback required");return b(i,r,e)?(n=b(A,r,e),y(t)&&(n=t(n),b(o,r,e,n))):y(a)&&(n=a(),b(o,r,e,n)),n};Ye({target:"Map",proto:!0,real:!0,forced:!0},{upsert:ch}),Ye({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:ch});var uh=th;var fh=cn,hh=Yi;function dh(e,t,n){return dh=function(){if("undefined"==typeof Reflect||!fh)return!1;if(fh.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fh(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?fh:function(e,t,n){var r=[null];r.push.apply(r,t);var A=new(hh(Function).apply(e,r));return n&&wi(A,n.prototype),A},dh.apply(null,arguments)}function gh(e){var t="function"==typeof uh?new uh:void 0;return gh=function(e){if(null===e||!function(e){var t;return-1!==js(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 dh(e,arguments,ji(this).constructor)}return n.prototype=vi(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),wi(n,e)},gh(e)}function ph(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var mh=function(e,t){if(!Zu(e)&&Ki(e)!==t.name.toLowerCase()||!Zu(e)&&"array"===t.name.toLowerCase())throw new TypeError("parameter given must be ".concat(t.name));return!0},vh=function(e,t){if(!(e instanceof t))throw new Error("the hook does not correctly inherit");return!0},yh=function(e){if("object"!==Ki(e))throw new Error("the hook must be a instance, not a class");return!0},wh=function(e){Bi(n,gh(Error));var t=ph(n);function n(e,r){var A;return ui(this,n),(A=t.call(this,e)).name="Error",A.stack=A.buildStackTrace(r),A}return di(n,[{key:"buildStackTrace",value:function(e){var t,n=e&&e.stack?e.stack:"";return zi(t="".concat(this.stack,"\nCaused By: ")).call(t,n)}}]),n}();function Bh(e,t,n){var r,A;if(-1===e)zc.warn(zi(r=zi(A="Duplicate hook name [".concat(t.HOOK_NAME,"] found, hook [")).call(A,t.toString(),"] ")).call(r,isNaN(n)?"":"at index [".concat(n,"] "),"will not take effect."));else if(-2===e){var i;zc.warn(zi(i="Hook [".concat(t.toString(),"] ")).call(i,isNaN(n)?"":"at index [".concat(n,"] "),"is not a valid hook, and will not take effect."))}}function bh(e){return Ch(e)||Qh(e)}function Ch(e){return Object.prototype.isPrototypeOf.call($u,e)}function Qh(e){return Object.prototype.isPrototypeOf.call(Sf,e)}function kh(e){return bh(e)&&!0===(null==e?void 0:e.Cherry$$CUSTOM)}var Th=function(){function e(t,n,r){ui(this,e),this.$locale=r.locale,this.hookList={},this.hookNameList={},mh(t,Array),this.registerInternalHooks(t,n),this.registerCustomHooks(n.engine.customSyntax,n)}return di(e,[{key:"registerInternalHooks",value:function(e,t){var n=this;ti(e).call(e,(function(e,r){Bh(n.register(e,t),e,r)}))}},{key:"registerCustomHooks",value:function(e,t){var n=this;if(e){var r=mn(e);ti(r).call(r,(function(r){var A,i,o,a,s={},l=e[r];if(Ch(l))i=l;else{if(!Ch(a=null==(o=l)?void 0:o.syntaxClass)&&!Qh(a))return;i=l.syntaxClass,s.force=Boolean(l.force),l.before?s.before=l.before:l.after&&(s.after=l.after)}bh(i)?(ci(i,"Cherry$$CUSTOM",{enumerable:!1,configurable:!1,writable:!1,value:!0}),A=n.register(i,t,s)):A=-2,Bh(A,i,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,A,i=this,o=t.externals,a=t.engine,s=a.syntax;if(bh(e)){A=e.HOOK_NAME;var l=(null==s?void 0:s[A])||{};(r=new e({externals:o,config:l,globalConfig:a.global})).afterInit((function(){r.setLocale(i.$locale)}))}else{if("function"!=typeof e)return-2;if(!(r=e(t))||!bh(r.constructor))return-2;A=r.getName()}if(!1!==s[A]||kh(e)){var c=r.getType();if(this.hookNameList[A]){var u;if(!kh(e))return-1;if(!n.force)return-1;var f=this.hookNameList[A].type;this.hookList[f]=AA(u=this.hookList[f]).call(u,(function(e){return e.getName()!==A}))}if(this.hookNameList[A]={type:c},this.hookList[c]=this.hookList[c]||[],kh(e)){var h,d,g,p=-1;if(n.before){if(-1===(p=Hu(h=this.hookList[c]).call(h,(function(e){return e.getName()===n.before}))))zc.warn(zi(d="Cannot find hook named [".concat(n.before,"],\n custom hook [")).call(d,A,"] will append to the end of the hooks."))}else if(n.after){var m,v;-1===(p=Hu(m=this.hookList[c]).call(m,(function(e){return e.getName()===n.after})))?zc.warn(zi(v="Cannot find hook named [".concat(n.after,"],\n custom hook [")).call(v,A,"] will append to the end of the hooks.")):p+=1}if(p<0||p>=this.hookList[c].length)this.hookList[c].push(r);else Ru(g=this.hookList[c]).call(g,p,0,r)}else this.hookList[c].push(r)}}}]),e}();function xh(e){if(void 0!==Si&&null!=nc(e)||null!=e["@@iterator"])return uc(e)}function Eh(e){return function(e){if(ec(e))return fc(e)}(e)||xh(e)||hc(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 Fh(e){return tc(e)||xh(e)||hc(e)||dc()}function Uh(e,t){var n=mn(e);if(zr){var r=zr(e);t&&(r=AA(r).call(r,(function(t){return fA(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sh(e){for(var t=1;t3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;if(!t)return e;t.lastIndex=0;for(var o=0,a=[];null!==(r=t.exec(e));){var s={begin:r.index,length:r[0].length};if(A&&r.index===o-i){var l,c=Fh(r),u=c[0],f=vc(c).call(c,2);a.push({begin:s.begin+i,length:s.length-i,replacedText:n.apply(void 0,zi(l=[vc(u).call(u,i),""]).call(l,Eh(f)))})}else a.push(Sh(Sh({},s),{},{replacedText:n.apply(void 0,Eh(r))}));o=t.lastIndex,t.lastIndex-=i}return t.lastIndex=0,function(e,t){if(!t.length)return e;var n=[],r=0;return ti(t).call(t,(function(A,i){n.push(vc(e).call(e,r,A.begin)),n.push(A.replacedText),r=A.begin+A.length,i===t.length-1&&n.push(vc(e).call(e,r))})),n.join("")}(e,a)}function Hh(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var Ih=function(e){Bi(n,$u);var t=Hh(n);function n(){return ui(this,n),t.apply(this,arguments)}return di(n,[{key:"toHtml",value:function(e,t,n,r){var A,i;return zi(A=zi(i="".concat(t,'')).call(A,r,"")}},{key:"makeHtml",value:function(e){return Au()?e.replace(this.RULE.reg,this.toHtml):Lh(e,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var e={begin:Au()?"((?')).call(A,r,"")}},{key:"makeHtml",value:function(e){return Au()?e.replace(this.RULE.reg,this.toHtml):Lh(e,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var e={begin:Au()?"((?')).call(A,r,"")}},{key:"makeHtml",value:function(e){return this.test(e)?Au()?e.replace(this.RULE.reg,this.toHtml):Lh(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 ui(this,n),e=t.call(this,{config:r}),r?(e.needWhitespace=!!r.needWhitespace,e):$i(e)}return di(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?Rh(Rh({},e),{},{begin:"(^|[\\s])\\~T\\~T",end:"\\~T\\~T(?=\\s|$)",content:"([\\w\\W]+?)"}):Rh(Rh({},e),{},{begin:"(^|[^\\\\])\\~T\\~T",end:"\\~T\\~T",content:"([\\w\\W]+?)"})).reg=new RegExp(e.begin+e.content+e.end,"g"),e}}]),n}();function $h(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}Gi(Kh,"HOOK_NAME","strikethrough");var Xh=function(e){Bi(n,$u);var t=$h(n);function n(){return ui(this,n),t.apply(this,arguments)}return di(n,[{key:"toHtml",value:function(e,t,n){var r;return zi(r="".concat(t,"")).call(r,n,"")}},{key:"makeHtml",value:function(e){return Au()?e.replace(this.RULE.reg,this.toHtml):Lh(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):Lh(e,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var e={begin:Au()?"((?=u.reach);C+=b.value.length,b=b.next){var Q=b.value;if(t.length>e.length)return;if(!(Q instanceof i)){var k,T=1;if(v){if(!(k=o(B,C,e,m))||k.index>=e.length)break;var x=k.index,E=k.index+k[0].length,F=C;for(F+=b.value.length;x>=F;)F+=(b=b.next).value.length;if(C=F-=b.value.length,b.value instanceof i)continue;for(var U=b;U!==t.tail&&(Fu.reach&&(u.reach=I);var M=b.prev;if(L&&(M=l(t,M,L),C+=L.length),c(t,M,T),b=l(t,M,new i(f,p?A.tokenize(S,p):S,y,S)),H&&l(t,b,H),T>1){var _={cause:f+","+d,reach:I};a(e,t,n,b.prev,C,_),u&&_.reach>u.reach&&(u.reach=_.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,A={value:n,prev:t,next:r};return t.next=A,r.prev=A,e.length++,A}function c(e,t,n){for(var r=t.next,A=0;A"+i.content+""},!e.document)return e.addEventListener?(A.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,o=n.immediateClose;e.postMessage(A.highlight(i,A.languages[r],r)),o&&e.close()}),!1),A):A;var u=A.util.currentScript();function f(){A.manual||A.highlightAll()}if(u&&(A.filename=u.src,u.hasAttribute("data-manual")&&(A.manual=!0)),!A.manual){var h=document.readyState;"loading"===h||"interactive"===h&&u&&u.defer?document.addEventListener("DOMContentLoaded",f):window.requestAnimationFrame?window.requestAnimationFrame(f):window.setTimeout(f,16)}return A}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=n),void 0!==t&&(t.Prism=n)}));function Wh(e,t){var n=mn(e);if(zr){var r=zr(e);t&&(r=AA(r).call(r,(function(t){return fA(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jh(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(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 A="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",o="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",a="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function s(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var l=s(i),c=RegExp(s(A+" "+i+" "+o+" "+a)),u=s(i+" "+o+" "+a),f=s(A+" "+i+" "+a),h=r(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),d=r(/\((?:[^()]|<>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,p=t(/<<0>>(?:\s*<<1>>)?/.source,[g,h]),m=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[u,p]),v=/\[\s*(?:,\s*)*\]/.source,y=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,v]),w=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[h,d,v]),B=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),b=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[B,m,v]),C={keyword:c,punctuation:/[<>()?,.:[\]]/},Q=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,k=/"(?:\\.|[^\\"\r\n])*"/.source,T=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[T]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[k]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,b]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,p]),lookbehind:!0,inside:C},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:C},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[y]),lookbehind:!0,inside:C},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[b,f,g]),inside:C}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),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:C},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[b,m]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[b]),lookbehind:!0,inside:C,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,h]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(h),alias:"class-name",inside:C}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,p,g,b,c.source,d,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[p,d]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(b),greedy:!0,inside:C},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var x=k+"|"+Q,E=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[x]),F=r(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[E]),2),U=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,S=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,F]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[U,S]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[U]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[F]),inside:e.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var L=/:[^}\r\n]+/.source,H=r(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[E]),2),I=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[H,L]),M=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[x]),2),_=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[M,L]);function D(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,[I]),lookbehind:!0,greedy:!0,inside:D(I,H)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[_]),lookbehind:!0,greedy:!0,inside:D(_,M)}],char:{pattern:RegExp(Q),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 A={};A[e]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",A)}}),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],A=[];/^\w+$/.test(n)||A.push(/\w+/.exec(n)[0]),"diff"===n&&A.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:A,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,A=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,(function(){return r})),i={pattern:RegExp(r),greedy:!0},o={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function a(e,t){return e=e.replace(//g,(function(){return A})).replace(//g,(function(){return n})),RegExp(e,t)}e.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:a(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[i,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:a(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:a(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:a(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:o,string:i,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:o},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+")?)",A=/(?:[^\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})),i=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(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"(?:"+A+"|"+i+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\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:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(i),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?: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,A=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \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("^"+A+i+"(?:"+A+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+A+i+")(?:"+A+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+A+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+A+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:Prism.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},Prism.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n0)){var a=f(/^\{$/,/^\}$/);if(-1===a)continue;for(var s=n;s=0&&h(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+")",A=RegExp(r+"-"+r),i={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:A,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":i}}],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,A,i){if(n.language===r){var o=n.tokenStack=[];n.code=n.code.replace(A,(function(e){if("function"==typeof i&&!i(e))return e;for(var A,a=o.length;-1!==n.code.indexOf(A=t(r,a));)++a;return o[a]=e,A})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var A=0,i=Object.keys(n.tokenStack);!function o(a){for(var s=0;s=i.length);s++){var l=a[s];if("string"==typeof l||l.content&&"string"==typeof l.content){var c=i[A],u=n.tokenStack[c],f="string"==typeof l?l:l.content,h=t(r,c),d=f.indexOf(h);if(d>-1){++A;var g=f.substring(0,d),p=new e.Token(r,e.tokenize(u,n.grammar),"language-"+r,u),m=f.substring(d+h.length),v=[];g&&v.push.apply(v,o([g])),v.push(p),m&&v.push.apply(v,o([m])),"string"==typeof l?a.splice.apply(a,[s,1].concat(v)):l.content=v}}else l.content&&o(l.content)}return a}(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,A=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,A=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;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:A,punctuation:i};var o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},a=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:o}},{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:o}}];e.languages.insertBefore("php","variable",{string:a,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:a,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:A,punctuation:i}},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,A=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function i(e,t){return e=e.replace(//g,(function(){return n})).replace(//g,(function(){return r})).replace(//g,(function(){return A})),RegExp(e,t)}A=i(A).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\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:i(//.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var o=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(o).join(""):""},a=function(t){for(var n=[],r=0;r0&&n[n.length-1].tagName===o(A.content[0].content[1])&&n.pop():"/>"===A.content[A.content.length-1].content||n.push({tagName:o(A.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===A.type&&"{"===A.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===A.type&&"}"===A.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof A)&&n.length>0&&0===n[n.length-1].openedBraces){var s=o(A);r0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(s=o(t[r-1])+s,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",s,null,s)}A.content&&"string"!=typeof A.content&&a(A.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||a(e.tokens)}))}(Prism),function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(Prism),function(e){e.languages.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 A=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,o=0;o]=?/,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:/[()]/},Gh.manual=!0;var zh={figure:"figure"},Zh=function(e){Bi(n,Sf);var t=Jh(n);function n(e){var r;e.externals;var A,i=e.config;(ui(this,n),r=t.call(this,{needCache:!0}),n.inlineCodeCache={},r.codeCache={},r.customLang=[],r.customParser={},r.wrap=i.wrap,r.lineNumber=i.lineNumber,r.copyCode=i.copyCode,r.editCode=i.editCode,r.changeLang=i.changeLang,r.mermaid=i.mermaid,r.indentedCodeBlock=void 0===i.indentedCodeBlock||i.indentedCodeBlock,r.INLINE_CODE_REGEX=/(`+)(.+?(?:\n.+?)*?)\1/g,i&&i.customRenderer)&&(r.customLang=Wu(A=mn(i.customRenderer)).call(A,(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,A,i,o,a,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=zh[s.constructor.TYPE]||"div";return zi(r=zi(A=zi(i=zi(o=zi(a="<".concat(c,' data-sign="')).call(a,n.sign,'" data-type="')).call(o,e,'" data-lines="')).call(i,n.lines,'">')).call(A,l,"")}},{key:"fillTag",value:function(e){var t=[];return Wu(e).call(e,(function(e){if(!e)return"";for(var n=e;t.length;){var r,A=t.pop();n=zi(r="".concat(A)).call(r,n)}var i=n.match(/|<\/span>/g),o=0;if(!i)return n;for(;i.length;){var a=i.pop();/<\/span>/.test(a)?o+=1:o?o-=1:t.unshift(a.match(//)[0])}for(var s=0;s");return n}))}},{key:"renderLineNumber",value:function(e){if(!this.lineNumber)return e;var t=e.split("\n");return t.pop(),t=this.fillTag(t),''.concat(t.join('\n'),"")}},{key:"isInternalCustomLangCovered",value:function(e){var t;return-1!==pc(t=this.customLang).call(t,e)}},{key:"computeLines",value:function(e,t,n){var r=t,A=this.getLineCount(e,r);return{sign:this.$engine.md5(e.replace(/^\n+/,"")+A),lines:A}}},{key:"appendMermaid",value:function(e,t){var n=e,r=t;if(/^flow([ ](TD|LR))?$/i.test(r)&&!this.isInternalCustomLangCovered(r)){var A,i=r.match(/^flow(?:[ ](TD|LR))?$/i)||[];n=zi(A="graph ".concat(i[1]||"TD","\n")).call(A,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 zi(n=zi(r='')).call(n,e,"")}},{key:"renderCodeBlock",value:function(e,t,n,r){var A,i,o,a,s,l,c,u=e,f=t;return this.customHighlighter?u=this.customHighlighter(u,f):(f&&Gh.languages[f]||(f="javascript"),u=Gh.highlight(u,Gh.languages[f],f),u=this.renderLineNumber(u)),u=zi(A=zi(i=zi(o=zi(a=zi(s=zi(l=zi(c='\n
')).call(A,this.wrapCode(u,f),"
\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,A,i=(e.match(/\n/g)||[]).length,o=t.$engine.md5(e),a=zi(r=zi(A='
')).call(r,Qf(n.replace(/\n( {4}|\t)/g,"\n")),"
");return Ju(e,t.pushCache(a,o,i))})):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,A=e;return A=(A=this.$replaceCodeInIndent(A)).replace(this.RULE.reg,(function(e,t,n,A,i,o){var a,s,l;function c(e){if(n){var t=new RegExp("^\n*",""),r=e.match(t)[0];e=r+n+e.replace(t,(function(e){return""}))}return e}var u=o,f=r.computeLines(e,t,o),h=f.sign,d=f.lines,g=r.$codeCache(h);if(g&&""!==g)return c(r.getCacheWithSpace(r.pushCache(g,h,d),e));u=(u=(u=r.$recoverCodeInIndent(u)).replace(/~D/g,"$")).replace(/~T/g,"~");var p=null!==(a=null==t||null===(s=t.match(/[ ]/g))||void 0===s?void 0:s.length)&&void 0!==a?a:0;if(p>0){var m=new RegExp("(^|\\n)[ ]{1,".concat(p,"}"),"g");u=u.replace(m,"$1")}if(n){var v=new RegExp("(^|\\n)".concat(n),"g");u=u.replace(v,"$1")}var y=wl(i).call(i);if(/^(math|katex|latex)$/i.test(y)&&!r.isInternalCustomLangCovered(y)){var w,B=e.match(/^\s*/g);return zi(w="".concat(B,"~D~D\n")).call(w,u,"~D~D")}var b=gc(r.appendMermaid(u,y),2);return u=b[0],y=b[1],-1!==pc(l=r.customLang).call(l,y.toLowerCase())&&(g=r.parseCustomLanguage(y,u,{lines:d,sign:h}))&&""!==g?(r.$codeCache(h,g),r.getCacheWithSpace(r.pushCache(g,h,d),e)):(u=u.replace(/~X/g,"\\`"),g=(g=r.renderCodeBlock(u,y,h,d)).replace(/\\/g,"\\\\"),g=r.$codeCache(h,g),c(r.getCacheWithSpace(r.pushCache(g,h,d),e)))})),A=A.replace(pu(!0),(function(e){var t;return Wu(t=e.split("|")).call(t,(function(e){return r.makeInlineCode(e)})).join("|").replace(/`/g,"\\`")})),A=this.makeInlineCode(A),A=this.$getIndentCodeBlock(A)}},{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,A){if("`"===wl(A).call(A))return e;var i=A.replace(/~~not~inlineCode/g,"\\`");i=(i=t.$replaceSpecialChar(i)).replace(/\\/g,"\\\\");var o="".concat(Qf(i),""),a=t.$engine.md5(o);return n.inlineCodeCache[a]=o,"~~CODE".concat(a,"$")})),r=r.replace(/~~not~inlineCode/g,"\\`")),r}},{key:"makeHtml",value:function(e){return e}},{key:"$replaceSpecialChar",value:function(e){var t=e.replace(/~Q/g,"\\~");return t=(t=(t=(t=t.replace(/~Y/g,"\\!")).replace(/~Z/g,"\\#")).replace(/~&/g,"\\&")).replace(/~K/g,"\\/")}},{key:"rule",value:function(){return mu()}},{key:"mounted",value:function(e){}}]),n}();function qh(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}Gi(Zh,"HOOK_NAME","codeBlock"),Gi(Zh,"inlineCodeCache",{});var Yh=function(e){Bi(n,Sf);var t=qh(n);function n(){return ui(this,n),t.apply(this,arguments)}return di(n,[{key:"makeHtml",value:function(e){return e}},{key:"afterMakeHtml",value:function(e){var t=e;return mn(Zh.inlineCodeCache).length>0&&(t=t.replace(/~~CODE([0-9a-zA-Z]+)\$/g,(function(e,t){return Zh.inlineCodeCache[t]})),Zh.inlineCodeCache={}),t}},{key:"rule",value:function(){var e={begin:"(`+)[ ]*",end:"[ ]*\\1",content:"(.+?(?:\\n.+?)*?)"};return e.reg=ru(e,"g"),e}}]),n}();Gi(Yh,"HOOK_NAME","inlineCode");var ed=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-i)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,A=0;r>>6-2*A);return n}};e.exports=n}()})),td={utf8:{stringToBytes:function(e){return td.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(td.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n>>24)|4278255360&(a[h]<<24|a[h]>>>8);a[s>>>5]|=128<>>9<<4)]=s;var d=i._ff,g=i._gg,p=i._hh,m=i._ii;for(h=0;h>>0,c=c+y>>>0,u=u+w>>>0,f=f+B>>>0}return t.endian([l,c,u,f])};i._ff=function(e,t,n,r,A,i,o){var a=e+(t&n|~t&r)+(A>>>0)+o;return(a<>>32-i)+t},i._gg=function(e,t,n,r,A,i,o){var a=e+(t&r|n&~r)+(A>>>0)+o;return(a<>>32-i)+t},i._hh=function(e,t,n,r,A,i,o){var a=e+(t^n^r)+(A>>>0)+o;return(a<>>32-i)+t},i._ii=function(e,t,n,r,A,i,o){var a=e+(n^(t|~r))+(A>>>0)+o;return(a<>>32-i)+t},i._blocksize=16,i._digestsize=16,e.exports=function(e,n){if(null==e)throw new Error("Illegal argument "+e);var r=t.wordsToBytes(i(e,n));return n&&n.asBytes?r:n&&n.asString?A.bytesToString(r):t.bytesToHex(r)}}()})),od={},ad=/^cherry-inner:\/\/([0-9a-f]+)$/i;var sd=function(){function e(){ui(this,e)}return di(e,null,[{key:"isInnerLink",value:function(e){return ad.test(e)}},{key:"set",value:function(e){var t=id(e);return od[t]=e,"cherry-inner://".concat(t)}},{key:"get",value:function(e){var t,n=gc(null!==(t=e.match(ad))&&void 0!==t?t:[],2)[1];if(n)return od[n]}},{key:"replace",value:function(e,t){var n,r=gc(null!==(n=e.match(ad))&&void 0!==n?n:[],2)[1];if(r)return od[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(){od={}}}]),e}();function ld(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var cd=function(e){Bi(n,$u);var t=ld(n);function n(e){var r,A=e.config,i=e.globalConfig;return ui(this,n),(r=t.call(this,{config:A})).urlProcessor=i.urlProcessor,r.target=A.target?'target="'.concat(A.target,'"'):A.openNewPage?'target="_blank"':"",r.rel=A.rel?'rel="'.concat(A.rel,'"'):"",r}return di(n,[{key:"checkBrackets",value:function(e){for(var t=[],n="[".concat(e,"]"),r=function(e){return 1&vc(n).call(n,0,e).match(/\\*$/)[0].length},A=n.length-1;n[A]&&(A!==n.length-1||!r(A));A--)if("]"!==n[A]||r(A)||t.push("]"),"["===n[A]&&!r(A)&&(t.pop(),!t.length))return{isValid:!0,coreText:vc(n).call(n,A+1,n.length-1),extraLeadingChar:vc(n).call(n,0,A)};return{isValid:!1,coreText:e,extraLeadingChar:""}}},{key:"toHtml",value:function(e,t,n,r,A,i,o){var a=void 0===r?"ref":"url",s="";if("ref"===a)return e;if("url"===a){var l,c=this.checkBrackets(n),u=c.isValid,f=c.coreText,h=c.extraLeadingChar;if(!u)return e;s=A&&""!==wl(A).call(A)?' title="'.concat(Qf(A.replace(/["']/g,"")),'"'):"",o?s+=' target="'.concat(o.replace(/{target\s*=\s*(.*?)}/,"$1"),'"'):this.target&&(s+=" ".concat(this.target));var d,g,p,m,v=wl(r).call(r).replace(/~1D/g,"~D"),y=f.replace(/~1D/g,"~D");return xf(v)?(v=Ef(v=this.urlProcessor(v,"link")),zi(d=zi(g=zi(p=zi(m="".concat(t+h,'")).call(d,y,"")):zi(l="".concat(t+h,"")).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,eo(t=this.toHtml).call(t,this)):r=Lh(r,this.RULE.reg,eo(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&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config;return ui(this,n),e=t.call(this,{config:r}),r?(e.allowWhitespace=!!r.allowWhitespace,e):$i(e)}return di(n,[{key:"makeHtml",value:function(e,t){var n=function(e,n,r,A){var i,o,a,s=r.length%2==1?"em":"strong",l=Math.floor(r.length/2),c=Uc("").call("",l),u=Uc("").call("",l);return"em"===s&&(c+="",u="".concat(u)),zi(i=zi(o=zi(a="".concat(n)).call(a,c)).call(o,t(A).html.replace(/_/g,"~U"))).call(i,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,A,i,o){var a,s,l;if(""===wl(A).call(A))return e;var c=r.length%2==1?"em":"strong",u=Math.floor(r.length/2),f=Uc("").call("",u),h=Uc("").call("",u),d=t(A).html;return"em"===c&&(f+="",h="".concat(h)),zi(a=zi(s=zi(l="".concat(n)).call(l,f)).call(s,d)).call(a,h)})),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,A,i="[^".concat(t,"\\s]");return e?"(?:.*?)(?:(?:\\n.*?)*?)":zi(n=zi(r=zi(A="(".concat(i,"|")).call(A,i,"(.*?(\n")).call(r,i,".*)*)")).call(n,i,")")},r={begin:"(^|[^\\\\])([*]+)",content:"(".concat(n(t,"*"),")"),end:"\\2"},A={begin:"(^|".concat(su,")(_+)"),content:"(".concat(n(t,"_"),")"),end:"\\2(?=".concat(su,"|$)")};return r.reg=ru(r,"g"),A.reg=ru(A,"g"),{asterisk:r,underscore:A}}}]),n}();function hd(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}Gi(fd,"HOOK_NAME","fontEmphasis");var dd=function(e){Bi(n,Sf);var t=hd(n);function n(e){var r;return ui(this,n),(r=t.call(this)).initBrReg(e.globalConfig.classicBr),r}return di(n,[{key:"makeHtml",value:function(e,t){var n=this;return this.test(e)?e.replace(this.RULE.reg,(function(e,r,A){var i;if(n.isContainsCache(e,!0))return e;var o,a=function(e){var r,A,i,o,a,s;if(""===wl(e).call(e))return"";var l=t(e),c=l.sign,u=l.html,f="p";new RegExp("<(".concat(Bf,")[^>]*>"),"i").test(u)&&(f="div");var h=n.getLineCount(e,e);return zi(r=zi(A=zi(i=zi(o=zi(a=zi(s="<".concat(f,' data-sign="')).call(s,c)).call(a,h,'" data-type="')).call(o,f,'" data-lines="')).call(i,h,'">')).call(A,n.$cleanParagraph(u),"")};return n.isContainsCache(A)?n.makeExcludingCached(zi(o="".concat(r)).call(o,A),a):a(zi(i="".concat(r)).call(i,A))})):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}();Gi(dd,"HOOK_NAME","normalParagraph");Ye({target:"Reflect",stat:!0},{get:function e(t,n){var r,A,i=arguments.length<3?t:arguments[2];return Ke(t)===i?t[n]:(r=Fe.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,i):_(A=bA(t))?e(A,n,i):void 0}});var gd=D.Reflect.get,pd=uA;function md(){return md="undefined"!=typeof Reflect&&gd?gd:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ji(e)););return e}(e,t);if(r){var A=pd(r,t);return A.get?A.get.call(arguments.length<3?e:n):A.value}},md.apply(this,arguments)}function vd(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var yd="atx",wd="setext",Bd=/[\s\-_]/,bd=/[A-Za-z]/,Cd=/[0-9]/,Qd=function(e){Bi(n,Sf);var t=vd(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0,externals:void 0};r.externals;var A=r.config;return ui(this,n),(e=t.call(this,{needCache:!0})).strict=!A||!!A.strict,e.RULE=e.rule(),e.headerIDCache=[],e.headerIDCounter={},e.config=A||{},e}return di(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="",A=0;A255)try{r+=encodeURIComponent(i)}catch(e){}}return r}},{key:"generateIDNoDup",value:function(e){var t,n=e.replace(/</g,"<").replace(/>/g,">"),r=this.$generateId(n,!0),A=pc(t=this.headerIDCache).call(t,r);if(-1!==A)this.headerIDCounter[A]+=1,r+="-".concat(this.headerIDCounter[A]+1);else{var i=this.headerIDCache.push(r);this.headerIDCounter[i-1]=1}return r}},{key:"$wrapHeader",value:function(e,t,n,r){var A,i,o,a,s,l,c,u=r(wl(e).call(e)),f=u.html,h=f.match(/\s+\{#([A-Za-z0-9-]+)\}$/);null!==h&&(f=f.substring(0,h.index),c=gc(h,2)[1]);var d=this.$parseTitleText(f);if(!c){c=this.generateIDNoDup(d.replace(/~fn#([0-9]+)#/g,""))}var g="safe_".concat(c),p=this.$engine.md5(zi(A=zi(i=zi(o="".concat(t,"-")).call(o,u.sign,"-")).call(i,c,"-")).call(A,n));return{html:[zi(a=zi(s=zi(l="'),this.$getAnchor(c),"".concat(f),"")].join(""),sign:"".concat(p)}}},{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,yd)&&(n=n.replace(this.RULE[yd].reg,(function(e,n,r,A){return""===wl(A).call(A)?e:t.getCacheWithSpace(t.pushCache(e),e,!0)}))),this.test(n,wd)&&(n=n.replace(this.RULE[wd].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,yd)&&(r=r.replace(this.RULE[yd].reg,(function(e,r,A,i){var o=zu(r,n.getLineCount(e.replace(/^\n+/,""))),a=i.replace(/\s+#+\s*$/,""),s=n.$wrapHeader(a,A.length,o,t),l=s.html,c=s.sign;return n.getCacheWithSpace(n.pushCache(l,c,o),e,!0)}))),this.test(r,wd)&&(r=r.replace(this.RULE[wd].reg,(function(e,r,A,i){if(n.isContainsCache(A))return e;var o=zu(r,n.getLineCount(e.replace(/^\n+/,""))),a="-"===i[0]?2:1,s=n.$wrapHeader(A,a,o,t),l=s.html,c=s.sign;return n.getCacheWithSpace(n.pushCache(l,c,o),e,!0)}))),r}},{key:"afterMakeHtml",value:function(e){var t=md(ji(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=ru(e,"g",!0);var t={begin:"(?:^|\\n)(\\n*)(?:\\h*(#{1,6}))",content:"(.+?)",end:"(?=$|\\n)"};return this.strict&&(t.begin+="(?=\\h+)"),t.reg=ru(t,"g",!0),{setext:e,atx:t}}}]),n}();function kd(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}Gi(Qd,"HOOK_NAME","header");var Td=function(e){Bi(n,$u);var t=kd(n);function n(){return ui(this,n),t.apply(this,arguments)}return di(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}();Gi(Td,"HOOK_NAME","transfer");var xd=a.TypeError,Ed=function(e){return function(t,n,r,A){ee(n);var i=se(t),o=L(i),a=Mt(i),s=e?a-1:0,l=e?-1:1;if(r<2)for(;;){if(s in o){A=o[s],s+=l;break}if(s+=l,e?s<0:a<=s)throw xd("Reduce of empty array with no initial value")}for(;e?s>=0:a>s;s+=l)s in o&&(A=n(A,o[s],s,i));return A}},Fd={left:Ed(!1),right:Ed(!0)},Ud="process"==F(a.process),Sd=Fd.left,Ld=WA("reduce");Ye({target:"Array",proto:!0,forced:!Ld||!Ud&&j>79&&j<83},{reduce:function(e){var t=arguments.length;return Sd(this,e,t,t>1?arguments[1]:void 0)}});var Hd=tA("Array").reduce,Id=Array.prototype,Md=function(e){var t=e.reduce;return e===Id||R(Id,e)&&t===Id.reduce?Hd:t};function _d(e,t){var n=mn(e);if(zr){var r=zr(e);t&&(r=AA(r).call(r,(function(t){return fA(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dd(e){for(var t=1;t')).call(A,B,"");return{html:zi(s="".concat(b)).call(s,w.html),sign:m+w.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 A,i,o,a,s=this.$testHeadEmpty(t)?zi(A="~CTHD".concat(t,"~CTHD$~CTBD")).call(A,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 A="":' align="'.concat(e[r],'">')})).replace(/\\\|/g,"|");return{html:zi(i=zi(o=zi(a='
\n ')).call(i,c,"
"),sign:l}}},{key:"makeHtml",value:function(e,t){var n=this,r=e;return this.test(r,Rd)&&(r=r.replace(this.RULE[Rd].reg,(function(e,r){var A,i=n.getLineCount(e,r),o=Wu(A=wl(e).call(e).split(/\n/)).call(A,(function(e){var t;return wl(t=String(e)).call(t)})),a=n.$parseTable(o,t,i),s=a.html,l=a.sign;return n.getCacheWithSpace(n.pushCache(s,l,i),e)}))),this.test(r,Nd)&&(r=r.replace(this.RULE[Nd].reg,(function(e,r){var A,i=n.getLineCount(e,r),o=Wu(A=wl(e).call(e).split(/\n/)).call(A,(function(e){var t;return wl(t=String(e)).call(t)})),a=n.$parseTable(o,t,i),s=a.html,l=a.sign;return n.getCacheWithSpace(n.pushCache(s,l,i),e)}))),r}},{key:"test",value:function(e,t){return this.RULE[t].reg&&this.RULE[t].reg.test(e)}},{key:"rule",value:function(){return pu()}}]),n}();function Kd(){return"object"===("undefined"==typeof window?"undefined":Ki(window))}function $d(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}Gi(Pd,"HOOK_NAME","table");var Xd=function(e){Bi(n,Sf);var t=$d(n);function n(e){var r;return ui(this,n),(r=t.call(this,{needCache:!0})).classicBr=Yu("classicBr")?ef():e.globalConfig.classicBr,r}return di(n,[{key:"beforeMakeHtml",value:function(e){var t=this;return this.test(e)?e.replace(this.RULE.reg,(function(e,n,r){var A,i;if(0===r)return e;var o,a,s=null!==(A=null===(i=n.match(/\n/g))||void 0===i?void 0:i.length)&&void 0!==A?A:0,l="br".concat(s),c="";Kd()?c=t.classicBr?zi(o=''):zi(a='

 

'):c=t.classicBr?"":"
";var u=t.pushCache(c,l,s);return"\n\n".concat(u,"\n")})):e}},{key:"makeHtml",value:function(e,t){return e}},{key:"rule",value:function(){var e={begin:"(?:\\n)",end:"",content:"((?:\\h*\\n){2,})"};return e.reg=ru(e,"g",!0),e}}]),n}();function Vd(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}Gi(Xd,"HOOK_NAME","br");var jd=function(e){Bi(n,Sf);var t=Vd(n);function n(){return ui(this,n),t.call(this,{needCache:!0})}return di(n,[{key:"beforeMakeHtml",value:function(e){var t=this;return e.replace(this.RULE.reg,(function(e,n){var r,A=(n.match(/\n/g)||[]).length+1,i="hr".concat(A);return Ju(e,t.pushCache(zi(r='
'),i))}))}},{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}();Gi(jd,"HOOK_NAME","hr");var Gd={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=gc(t,2),A=r[0],i=r[1];return A&&(n=' width="'.concat(A.replace(/[ #]*/g,""),'"')),i&&(n+=' height="'.concat(i.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 A=0;A')).call(f,kf(r||""),"");return zi(v="".concat(n)).call(v,a.videoWrapper?a.videoWrapper(A):Q)}return t},Zd=function(e){Bi(n,$u);var t=Jd(n);function n(e){var r,A=e.config,i=e.globalConfig;return ui(this,n),(r=t.call(this,null)).urlProcessor=i.urlProcessor,r.extendMedia={tag:["video","audio"],replacer:{video:function(e,t,n,r,o,a){return zd("video",e,t,n,r,o,a,A,i)},audio:function(e,t,n,r,o,a){return zd("audio",e,t,n,r,o,a,A,i)}}},r.RULE=r.rule(r.extendMedia),r}return di(n,[{key:"toHtml",value:function(e,t,n,r,A,i,o){var a=void 0===r?"ref":"url",s="";if("ref"===a)return e;if("url"===a){var l,c,u,f,h,d,g,p,m=Gd.processExtendAttributesInAlt(n),v=Gd.processExtendStyleInAlt(n),y=v.extendStyles,w=v.extendClasses;y&&(y=' style="'.concat(y,'" ')),w&&(w=' class="'.concat(w,'" ')),s=A&&""!==wl(A).call(A)?' title="'.concat(kf(A.replace(/["']/g,"")),'"'):"";var B,b="src",C=this.$engine.$cherry.options;if(C.callback&&C.callback.beforeImageMounted){var Q=C.callback.beforeImageMounted(b,r);b=Q.srcProp||b,B=Q.src||r}var k=o?o.replace(/[{}]/g,"").replace(/([^=\s]+)=([^\s]+)/g,'$1="$2"').replace(/&/g,"&"):"";return zi(l=zi(c=zi(u=zi(f=zi(h=zi(d=zi(g=zi(p="".concat(t,"')).call(u,kf(n||")}return e}},{key:"toMediaHtml",value:function(e,t,n,r,A,i,o,a,s){var l,c;if(!this.extendMedia.replacer[n])return e;for(var u=arguments.length,f=new Array(u>9?u-9:0),h=9;h-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,i})):(t.type="blank",e)}var Ag=di((function e(){ui(this,e),this.index=0,this.space=0,this.type="",this.start=1,this.listStyle="",this.strs=[],this.children=[],this.lines=0})),ig=function(e){Bi(n,Sf);var t=eg(n);function n(e){var r,A=e.config;return ui(this,n),(r=t.call(this,{needCache:!0})).config=A||{},r.tree=[],r.emptyLines=0,r.indentSpace=Math.max(r.config.indentSpace,2),r}return di(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]=Yd(Yd({},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,A=0;Ai.space;)o-=1;var a=i.space,s=this.tree[o].space;a".concat(s.strs.join("
"),"

");s.lines+=o.getLineCount(s.strs.join("\n"));var u=s.children.length?o.renderTree(n):"";e.lines+=s.lines,a+=s.lines;return/<\/span>/.test(c)&&(l.class+=" check-list-item"),zi(r=zi(A=zi(i="".concat(t,"")).call(A,c)).call(r,u,"")}),"");return void 0===e.parent&&(s["data-lines"]=0===e.index?a+this.emptyLines:a,s["data-sign"]=this.sign),t[0]&&"ol"===n&&(s.start=this.tree[t[0]].start),s.class="cherry-list__".concat(this.tree[t[0]].listStyle),zi(r=zi(A=zi(i="<".concat(n)).call(i,tg(s),">")).call(A,l,"")}},{key:"renderTree",value:function(e){var t=this,n=0,r=this.tree[e],A=r.children;return Md(A).call(A,(function(e,i,o){if(0===o)return e;if(t.tree[A[o]].type===t.tree[A[o-1]].type)return e;var a=t.renderSubTree(r,vc(A).call(A,n,o),t.tree[A[o-1]].type);return n=o,e+a}),"")+(A.length?this.renderSubTree(r,vc(A).call(A,n,A.length),this.tree[A[A.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 A=e.replace(/~0$/g,"").replace(/^\n+/,"");this.buildTree(function(e){return e.replace(/^((?:|[\t ]+)[*+-]\s+)\[(\s|x)\]/gm,(function(e,t,n){var r,A=/\s/.test(n)?'':'';return zi(r="".concat(t)).call(r,A)}))}(A),t);var i=this.renderTree(0);return this.pushCache(i,this.sign,this.$getLineNum(e))}},{key:"$getLineNum",value:function(e){var t,n,r,A,i=null!==(t=null===(n=e.match(/^\n\n/))||void 0===n?void 0:n.length)&&void 0!==t?t:0;return null!==(r=null===(A=e.replace(/^\n+/,"").replace(/\n+$/,"\n").match(/\n/g))||void 0===A?void 0:A.length)&&void 0!==r?r:0+i}},{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 og(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}function ag(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}Gi(ig,"HOOK_NAME","list");var sg=function(e){Bi(n,Sf);var t=og(n);function n(){return ui(this,n),t.call(this,{needCache:!0})}return di(n,[{key:"handleMatch",value:function(e,t){var n=this;return e.replace(this.RULE.reg,(function(e,r,A){for(var i,o,a=t(A),s=a.sign,l=a.html,c=n.signWithCache(l)||s,u=n.getLineCount(e,r),f=/^(([ \t]{0,3}([*+-]|\d+[.]|[a-z]\.|[I一二三四五六七八九十]+\.)[ \t]+)([^\r]+?)($|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.]|[a-z]\.|[I一二三四五六七八九十]+\.)[ \t]+)))/,h=ag(r),d=l.split("\n"),g=/^[>\s]+/,p=/>/g,m=1,v=0,y=zi(i=zi(o='
'),w=0;d[w];w++){if(0!==w){var B=ag(d[w]);if(B<=h&&f.test(d[w]))break;h=B}var b=d[w].replace(g,(function(e){var t=e.match(p);return v=t&&t.length>m?t.length:m,""}));if(m===v&&0!==w&&(y+="
"),m").call("
",v-m),m=v;y+=b}return y+=Uc("
").call("
",m),n.getCacheWithSpace(n.pushCache(y,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=ru(e,"g"),e}}]),n}();function lg(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}Gi(sg,"HOOK_NAME","blockquote");var cg=function(e){Bi(n,$u);var t=lg(n);function n(e){var r,A=e.config,i=e.globalConfig;return ui(this,n),(r=t.call(this,{config:A})).urlProcessor=i.urlProcessor,r.enableShortLink=!!A.enableShortLink,r.shortLinkLength=A.shortLinkLength,r.target=A.target?'target="'.concat(A.target,'"'):A.openNewPage?'target="_blank"':"",r.rel=A.rel?'rel="'.concat(A.rel,'"'):"",r}return di(n,[{key:"isLinkInHtmlAttribute",value:function(e,t,n){for(var r,A=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=A.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,A=/[^<]*<\/a>/g;null!==(r=A.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)&&(lu.test(e)||uu.test(e))?e.replace(this.RULE.reg,(function(e,t,r,A,i,o,a){var s,l,c;if(n.isLinkInHtmlAttribute(a,o,r.length+A.length)||n.isLinkInATag(a,o,r.length+A.length))return e;var u=r.toLowerCase(),f="",h="",d=!0;if(("<"!==t&&"<"!==t||">"!==i&&">"!==i)&&(f=t,h=i,d=!1),""===wl(A).call(A)||!d&&""===u&&!/www\./.test(A))return e;switch(u){case"javascript:":return e;case"mailto:":var g,p,m,v,y,w;return cu.test(A)?zi(g=zi(p=zi(m=zi(v=zi(y="".concat(f,'")).call(p,kf(A),"")).call(g,h):e;case"":var B,b,C,Q,k,T,x,E,F,U;if(f===h||!d)return cu.test(A)?zi(B=zi(b=zi(C=zi(Q=zi(k="".concat(f,'")).call(b,kf(A),"")).call(B,h):hu.test(A)?zi(T=zi(x="".concat(f)).call(x,n.renderLink("//".concat(A),A))).call(T,h):e;if(d)return cu.test(A)?zi(E=zi(F=zi(U='")).call(E,kf(A),""):du.test(A)||hu.test(A)?n.renderLink(A):e;default:return du.test(A)?zi(s=zi(l="".concat(f)).call(l,n.renderLink(zi(c="".concat(u)).call(c,A)))).call(s,h):e}return e})):e}},{key:"rule",value:function(){var e,t={begin:"(?)"};return t.reg=ru(t,"ig"),t}},{key:"renderLink",value:function(e,t){var n,r,A,i,o=t;if("string"!=typeof o)if(this.enableShortLink){var a,s=e.replace(/^https?:\/\//i,"");o=zi(a="".concat(s.substring(0,this.shortLinkLength))).call(a,s.length>this.shortLinkLength?"...":"")}else o=e;var l=this.urlProcessor(e,"autolink");return zi(n=zi(r=zi(A=zi(i="')).call(n,kf(o).replace(/_/g,"\\_"),"")}}]),n}();function ug(){var e,t,n,r;Kd()&&(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)}Gi(cg,"HOOK_NAME","autoLink");var fg=["&","<",">",'"',"'"],hg=function(e){var t=e.replace(new RegExp(au,"g"),(function(e){return-1!==pc(fg).call(fg,e)?Qf(e):"\\".concat(e)}));return t},dg=r((function(e,t){e.exports=function(){const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:A}=Object;let{freeze:i,seal:o,create:a}=Object,{apply:s,construct:l}="undefined"!=typeof Reflect&&Reflect;i||(i=function(e){return e}),o||(o=function(e){return e}),s||(s=function(e,t,n){return e.apply(t,n)}),l||(l=function(e,t){return new e(...t)});const c=B(Array.prototype.forEach),u=B(Array.prototype.pop),f=B(Array.prototype.push),h=B(String.prototype.toLowerCase),d=B(String.prototype.toString),g=B(String.prototype.match),p=B(String.prototype.replace),m=B(String.prototype.indexOf),v=B(String.prototype.trim),y=B(RegExp.prototype.test),w=b(TypeError);function B(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),A=1;A2&&void 0!==arguments[2]?arguments[2]:h;t&&t(e,null);let i=r.length;for(;i--;){let t=r[i];if("string"==typeof t){const e=A(t);e!==t&&(n(r)||(r[i]=e),t=e)}e[t]=!0}return e}function Q(e){for(let t=0;t/gm),R=o(/\${[\w\W]*}/gm),P=o(/^data-[\-\w.\u00B7-\uFFFF]/),K=o(/^aria-[\-\w]+$/),$=o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),X=o(/^(?:\w+script|data):/i),V=o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),j=o(/^html$/i);var G=Object.freeze({__proto__:null,MUSTACHE_EXPR:O,ERB_EXPR:N,TMPLIT_EXPR:R,DATA_ATTR:P,ARIA_ATTR:K,IS_ALLOWED_URI:$,IS_SCRIPT_OR_DATA:X,ATTR_WHITESPACE:V,DOCTYPE_NAME:j});const W=function(){return"undefined"==typeof window?null:window},J=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const A="dompurify"+(n?"#"+n:"");try{return e.createPolicy(A,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+A+" could not be created."),null}};function z(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:W();const n=e=>z(e);if(n.version="3.0.8",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;let{document:r}=t;const A=r,o=A.currentScript,{DocumentFragment:s,HTMLTemplateElement:l,Node:B,Element:b,NodeFilter:Q,NamedNodeMap:O=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:N,DOMParser:R,trustedTypes:P}=t,K=b.prototype,X=T(K,"cloneNode"),V=T(K,"nextSibling"),Z=T(K,"childNodes"),q=T(K,"parentNode");if("function"==typeof l){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let Y,ee="";const{implementation:te,createNodeIterator:ne,createDocumentFragment:re,getElementsByTagName:Ae}=r,{importNode:ie}=A;let oe={};n.isSupported="function"==typeof e&&"function"==typeof q&&te&&void 0!==te.createHTMLDocument;const{MUSTACHE_EXPR:ae,ERB_EXPR:se,TMPLIT_EXPR:le,DATA_ATTR:ce,ARIA_ATTR:ue,IS_SCRIPT_OR_DATA:fe,ATTR_WHITESPACE:he}=G;let{IS_ALLOWED_URI:de}=G,ge=null;const pe=C({},[...x,...E,...F,...S,...H]);let me=null;const ve=C({},[...I,...M,..._,...D]);let ye=Object.seal(a(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}})),we=null,Be=null,be=!0,Ce=!0,Qe=!1,ke=!0,Te=!1,xe=!1,Ee=!1,Fe=!1,Ue=!1,Se=!1,Le=!1,He=!0,Ie=!1;const Me="user-content-";let _e=!0,De=!1,Oe={},Ne=null;const Re=C({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Pe=null;const Ke=C({},["audio","video","img","source","image","track"]);let $e=null;const Xe=C({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ve="http://www.w3.org/1998/Math/MathML",je="http://www.w3.org/2000/svg",Ge="http://www.w3.org/1999/xhtml";let We=Ge,Je=!1,ze=null;const Ze=C({},[Ve,je,Ge],d);let qe=null;const Ye=["application/xhtml+xml","text/html"],et="text/html";let tt=null,nt=null;const rt=r.createElement("form"),At=function(e){return e instanceof RegExp||e instanceof Function},it=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!nt||nt!==e){if(e&&"object"==typeof e||(e={}),e=k(e),qe=-1===Ye.indexOf(e.PARSER_MEDIA_TYPE)?et:e.PARSER_MEDIA_TYPE,tt="application/xhtml+xml"===qe?d:h,ge="ALLOWED_TAGS"in e?C({},e.ALLOWED_TAGS,tt):pe,me="ALLOWED_ATTR"in e?C({},e.ALLOWED_ATTR,tt):ve,ze="ALLOWED_NAMESPACES"in e?C({},e.ALLOWED_NAMESPACES,d):Ze,$e="ADD_URI_SAFE_ATTR"in e?C(k(Xe),e.ADD_URI_SAFE_ATTR,tt):Xe,Pe="ADD_DATA_URI_TAGS"in e?C(k(Ke),e.ADD_DATA_URI_TAGS,tt):Ke,Ne="FORBID_CONTENTS"in e?C({},e.FORBID_CONTENTS,tt):Re,we="FORBID_TAGS"in e?C({},e.FORBID_TAGS,tt):{},Be="FORBID_ATTR"in e?C({},e.FORBID_ATTR,tt):{},Oe="USE_PROFILES"in e&&e.USE_PROFILES,be=!1!==e.ALLOW_ARIA_ATTR,Ce=!1!==e.ALLOW_DATA_ATTR,Qe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ke=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Te=e.SAFE_FOR_TEMPLATES||!1,xe=e.WHOLE_DOCUMENT||!1,Ue=e.RETURN_DOM||!1,Se=e.RETURN_DOM_FRAGMENT||!1,Le=e.RETURN_TRUSTED_TYPE||!1,Fe=e.FORCE_BODY||!1,He=!1!==e.SANITIZE_DOM,Ie=e.SANITIZE_NAMED_PROPS||!1,_e=!1!==e.KEEP_CONTENT,De=e.IN_PLACE||!1,de=e.ALLOWED_URI_REGEXP||$,We=e.NAMESPACE||Ge,ye=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&At(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ye.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&At(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ye.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ye.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Te&&(Ce=!1),Se&&(Ue=!0),Oe&&(ge=C({},H),me=[],!0===Oe.html&&(C(ge,x),C(me,I)),!0===Oe.svg&&(C(ge,E),C(me,M),C(me,D)),!0===Oe.svgFilters&&(C(ge,F),C(me,M),C(me,D)),!0===Oe.mathMl&&(C(ge,S),C(me,_),C(me,D))),e.ADD_TAGS&&(ge===pe&&(ge=k(ge)),C(ge,e.ADD_TAGS,tt)),e.ADD_ATTR&&(me===ve&&(me=k(me)),C(me,e.ADD_ATTR,tt)),e.ADD_URI_SAFE_ATTR&&C($e,e.ADD_URI_SAFE_ATTR,tt),e.FORBID_CONTENTS&&(Ne===Re&&(Ne=k(Ne)),C(Ne,e.FORBID_CONTENTS,tt)),_e&&(ge["#text"]=!0),xe&&C(ge,["html","head","body"]),ge.table&&(C(ge,["tbody"]),delete we.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Y=e.TRUSTED_TYPES_POLICY,ee=Y.createHTML("")}else void 0===Y&&(Y=J(P,o)),null!==Y&&"string"==typeof ee&&(ee=Y.createHTML(""));i&&i(e),nt=e}},ot=C({},["mi","mo","mn","ms","mtext"]),at=C({},["foreignobject","desc","title","annotation-xml"]),st=C({},["title","style","font","a","script"]),lt=C({},[...E,...F,...U]),ct=C({},[...S,...L]),ut=function(e){let t=q(e);t&&t.tagName||(t={namespaceURI:We,tagName:"template"});const n=h(e.tagName),r=h(t.tagName);return!!ze[e.namespaceURI]&&(e.namespaceURI===je?t.namespaceURI===Ge?"svg"===n:t.namespaceURI===Ve?"svg"===n&&("annotation-xml"===r||ot[r]):Boolean(lt[n]):e.namespaceURI===Ve?t.namespaceURI===Ge?"math"===n:t.namespaceURI===je?"math"===n&&at[r]:Boolean(ct[n]):e.namespaceURI===Ge?!(t.namespaceURI===je&&!at[r])&&!(t.namespaceURI===Ve&&!ot[r])&&!ct[n]&&(st[n]||!lt[n]):!("application/xhtml+xml"!==qe||!ze[e.namespaceURI]))},ft=function(e){f(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},ht=function(e,t){try{f(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){f(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!me[e])if(Ue||Se)try{ft(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},dt=function(e){let t=null,n=null;if(Fe)e=""+e;else{const t=g(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===qe&&We===Ge&&(e=''+e+"");const A=Y?Y.createHTML(e):e;if(We===Ge)try{t=(new R).parseFromString(A,qe)}catch(e){}if(!t||!t.documentElement){t=te.createDocument(We,"template",null);try{t.documentElement.innerHTML=Je?ee:A}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),We===Ge?Ae.call(t,xe?"html":"body")[0]:xe?t.documentElement:i},gt=function(e){return ne.call(e.ownerDocument||e,e,Q.SHOW_ELEMENT|Q.SHOW_COMMENT|Q.SHOW_TEXT,null)},pt=function(e){return e instanceof N&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof O)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},mt=function(e){return"function"==typeof B&&e instanceof B},vt=function(e,t,r){oe[e]&&c(oe[e],(e=>{e.call(n,t,r,nt)}))},yt=function(e){let t=null;if(vt("beforeSanitizeElements",e,null),pt(e))return ft(e),!0;const r=tt(e.nodeName);if(vt("uponSanitizeElement",e,{tagName:r,allowedTags:ge}),e.hasChildNodes()&&!mt(e.firstElementChild)&&y(/<[/\w]/g,e.innerHTML)&&y(/<[/\w]/g,e.textContent))return ft(e),!0;if(!ge[r]||we[r]){if(!we[r]&&Bt(r)){if(ye.tagNameCheck instanceof RegExp&&y(ye.tagNameCheck,r))return!1;if(ye.tagNameCheck instanceof Function&&ye.tagNameCheck(r))return!1}if(_e&&!Ne[r]){const t=q(e)||e.parentNode,n=Z(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r)t.insertBefore(X(n[r],!0),V(e))}return ft(e),!0}return e instanceof b&&!ut(e)?(ft(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!y(/<\/no(script|embed|frames)/i,e.innerHTML)?(Te&&3===e.nodeType&&(t=e.textContent,c([ae,se,le],(e=>{t=p(t,e," ")})),e.textContent!==t&&(f(n.removed,{element:e.cloneNode()}),e.textContent=t)),vt("afterSanitizeElements",e,null),!1):(ft(e),!0)},wt=function(e,t,n){if(He&&("id"===t||"name"===t)&&(n in r||n in rt))return!1;if(Ce&&!Be[t]&&y(ce,t));else if(be&&y(ue,t));else if(!me[t]||Be[t]){if(!(Bt(e)&&(ye.tagNameCheck instanceof RegExp&&y(ye.tagNameCheck,e)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(e))&&(ye.attributeNameCheck instanceof RegExp&&y(ye.attributeNameCheck,t)||ye.attributeNameCheck instanceof Function&&ye.attributeNameCheck(t))||"is"===t&&ye.allowCustomizedBuiltInElements&&(ye.tagNameCheck instanceof RegExp&&y(ye.tagNameCheck,n)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(n))))return!1}else if($e[t]);else if(y(de,p(n,he,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==m(n,"data:")||!Pe[e])if(Qe&&!y(fe,p(n,he,"")));else if(n)return!1;return!0},Bt=function(e){return e.indexOf("-")>0},bt=function(e){vt("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:me};let A=t.length;for(;A--;){const i=t[A],{name:o,namespaceURI:a,value:s}=i,l=tt(o);let f="value"===o?s:v(s);if(r.attrName=l,r.attrValue=f,r.keepAttr=!0,r.forceKeepAttr=void 0,vt("uponSanitizeAttribute",e,r),f=r.attrValue,r.forceKeepAttr)continue;if(ht(o,e),!r.keepAttr)continue;if(!ke&&y(/\/>/i,f)){ht(o,e);continue}Te&&c([ae,se,le],(e=>{f=p(f,e," ")}));const h=tt(e.nodeName);if(wt(h,l,f)){if(!Ie||"id"!==l&&"name"!==l||(ht(o,e),f=Me+f),Y&&"object"==typeof P&&"function"==typeof P.getAttributeType)if(a);else switch(P.getAttributeType(h,l)){case"TrustedHTML":f=Y.createHTML(f);break;case"TrustedScriptURL":f=Y.createScriptURL(f)}try{a?e.setAttributeNS(a,o,f):e.setAttribute(o,f),u(n.removed)}catch(e){}}}vt("afterSanitizeAttributes",e,null)},Ct=function e(t){let n=null;const r=gt(t);for(vt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)vt("uponSanitizeShadowNode",n,null),yt(n)||(n.content instanceof s&&e(n.content),bt(n));vt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,o=null,a=null;if(Je=!e,Je&&(e="\x3c!--\x3e"),"string"!=typeof e&&!mt(e)){if("function"!=typeof e.toString)throw w("toString is not a function");if("string"!=typeof(e=e.toString()))throw w("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Ee||it(t),n.removed=[],"string"==typeof e&&(De=!1),De){if(e.nodeName){const t=tt(e.nodeName);if(!ge[t]||we[t])throw w("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof B)r=dt("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),1===i.nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!Ue&&!Te&&!xe&&-1===e.indexOf("<"))return Y&&Le?Y.createHTML(e):e;if(r=dt(e),!r)return Ue?null:Le?ee:""}r&&Fe&&ft(r.firstChild);const l=gt(De?e:r);for(;o=l.nextNode();)yt(o)||(o.content instanceof s&&Ct(o.content),bt(o));if(De)return e;if(Ue){if(Se)for(a=re.call(r.ownerDocument);r.firstChild;)a.appendChild(r.firstChild);else a=r;return(me.shadowroot||me.shadowrootmode)&&(a=ie.call(A,a,!0)),a}let u=xe?r.outerHTML:r.innerHTML;return xe&&ge["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&y(j,r.ownerDocument.doctype.name)&&(u="\n"+u),Te&&c([ae,se,le],(e=>{u=p(u,e," ")})),Y&&Le?Y.createHTML(u):u},n.setConfig=function(){it(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Ee=!0},n.clearConfig=function(){nt=null,Ee=!1},n.isValidAttribute=function(e,t,n){nt||it({});const r=tt(e),A=tt(t);return wt(r,A,n)},n.addHook=function(e,t){"function"==typeof t&&(oe[e]=oe[e]||[],f(oe[e],t))},n.removeHook=function(e){if(oe[e])return u(oe[e])},n.removeHooks=function(e){oe[e]&&(oe[e]=[])},n.removeAllHooks=function(){oe={}},n}var Z=z();return Z}()})),gg=dg(new e.JSDOM("").window);function pg(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var mg=function(e){Bi(n,Sf);var t=pg(n);function n(e){var r,A,i=e.config;return ui(this,n),Gi(gi(A=t.call(this,{needCache:!0})),"engine","MathJax"),Gi(gi(A),"katex",void 0),Gi(gi(A),"MathJax",void 0),A.engine=Kd()?null!==(r=i.engine)&&void 0!==r?r:"MathJax":"node",A}return di(n,[{key:"toHtml",value:function(e,t,n,r){var A,i,o;eo(ug).call(ug,this)("engine");var a=e.replace(/^[ \f\r\t\v]*/,"").replace(/\s*$/,""),s=t.replace(/^[ \f\r\t\v]*\n/,""),l=this.$engine.md5(e),c=this.getLineCount(a,s);/\n/.test(t)||(c-=1),/\n\s*$/.test(e)||(c-=1),c=c>0?c:0;var u=zi(A=zi(i='
$$')).call(A,hg(r),"$$
");if("katex"===this.engine){var f,h,d=this.katex.renderToString(r,{throwOnError:!1,displayMode:!0});u=zi(f=zi(h='
')).call(f,d,"
")}if(null!==(o=this.MathJax)&&void 0!==o&&o.tex2svg){var g,p,m=Xc(this.MathJax.tex2svg(r),!0);u=zi(g=zi(p='
')).call(g,m,"
")}return u=gg.sanitize(u),n+this.getCacheWithSpace(this.pushCache(u,l,c),e)}},{key:"beforeMakeHtml",value:function(e){var t,n;return Au()?e.replace(this.RULE.reg,eo(n=this.toHtml).call(n,this)):Lh(e,this.RULE.reg,eo(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(r,hg(n),"$
");if("katex"===this.engine&&null!==(i=this.katex)&&void 0!==i&&i.renderToString){var u,f,h=this.katex.renderToString(n,{throwOnError:!1});c=zi(u=zi(f="".concat(t,'')).call(u,h,"")}if(null!==(o=this.MathJax)&&void 0!==o&&o.tex2svg){var d,g,p=Xc(this.MathJax.tex2svg(n,{em:12,ex:6,display:!1}),!0);c=zi(d=zi(g="".concat(t,'')).call(d,p,"")}return c=gg.sanitize(c),this.pushCache(c,Sf.IN_PARAGRAPH_CACHE_KEY_PREFIX+l)}},{key:"beforeMakeHtml",value:function(e){var t=this,n=e;return n=n.replace(pu(!0),(function(e){var n;return Wu(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,eo(n=this.toHtml).call(n,this)):Lh(e,this.RULE.reg,eo(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),i=r>2?arguments[2]:void 0,o=void 0===i?n:Lt(i,n);o>A;)t[A++]=e;return t}});var wg=tA("Array").fill,Bg=Array.prototype,bg=function(e){var t=e.fill;return e===Bg||R(Bg,e)&&t===Bg.fill?wg:t};function Cg(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}function Qg(e){return e}var kg={tocStyle:"plain",tocNodeClass:"toc-li",tocContainerClass:"toc",tocTitleClass:"toc-title",linkProcessor:Qg},Tg='

 

',xg=function(e){Bi(n,Sf);var t=Cg(n);function n(e){var r,A;e.externals;var i=e.config;return ui(this,n),Gi(gi(A=t.call(this,{needCache:!0})),"tocStyle","nested"),Gi(gi(A),"tocNodeClass","toc-li"),Gi(gi(A),"tocContainerClass","toc"),Gi(gi(A),"tocTitleClass","toc-title"),Gi(gi(A),"linkProcessor",Qg),Gi(gi(A),"baseLevel",1),Gi(gi(A),"isFirstTocToken",!0),Gi(gi(A),"allowMultiToc",!1),ti(r=mn(kg)).call(r,(function(e){A[e]=i[e]||kg[e]})),A}return di(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 A;if(!t.allowMultiToc&&!t.isFirstTocToken)return zi(A="\n".concat(n)).call(A,Tg);var i=t.pushCache(e);return t.isFirstTocToken=!1,Ju(e,i)}))),this.test(n,"standard")&&(n=n.replace(this.RULE.standard.reg,(function(e,n,r){var A;return t.allowMultiToc||t.isFirstTocToken?(t.isFirstTocToken=!1,Ju(e,t.pushCache(e))):zi(A="\n".concat(n)).call(A,Tg)}))),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 zi(n=zi(r=zi(A=zi(i=zi(o='
  • ')).call(o,s,'')).call(r,e.text,"")).call(n,a?"
  • ":"")}},{key:"$makePlainToc",value:function(e){var t=this,n=Wu(e).call(e,(function(e){return t.$makeTocItem(e,!0)}));return n.join("")}},{key:"$makeNestedToc",value:function(e){var t,n,r=this,A=0,i=bg(t=new Array(7)).call(t,!1),o=bg(n=new Array(7)).call(n,!1),a="";ti(e).call(e,(function(e){var t=e.level;if(0===A){for(var n=t;n>=r.baseLevel;n--)a+="
      ",o[n]=!0;return a+=r.$makeTocItem(e,!1,!1),i[t]=!0,void(A=t)}if(t=t;s--)i[s]&&(a+="",i[s]=!1),o[s]&&s>t&&(a+="
    ",o[s]=!1);i[t]=!0,a+=r.$makeTocItem(e,!1,!1),A=t}else if(t===A)i[A]&&(a+=""),a+=r.$makeTocItem(e,!1,!1),i[t]=!0,o[t]=!0;else{for(var l=A+1;l<=t;l++)a+="
      ",o[l]=!0;i[t]=!0,a+=r.$makeTocItem(e,!1,!1),A=t}}));for(var s=A;s>=this.baseLevel;s--)i[s]&&(a+="",i[s]=!1),o[s]&&(a+="
    ",o[s]=!1);return a}},{key:"$makeToc",value:function(e,t,n){var r,A,i,o=zu(n,1),a=zi(r=zi(A=zi(i='');return a+='

    目录

    '),e.length<=0?"":(this.baseLevel=Math.min.apply(Math,Eh(Wu(e).call(e,(function(e){return e.level})))),"nested"===this.tocStyle?a+=this.$makeNestedToc(e):a+=this.$makePlainToc(e),a+="
    ")}},{key:"afterMakeHtml",value:function(e){var t=this,r=md(ji(n.prototype),"afterMakeHtml",this).call(this,e),A=[],i="";return r.replace(/]*? id="([^"]+?)"[^>]*?>(?:|)(.+?)<\/h\1>/g,(function(e,t,n,r){var o,a=r.replace(/~fn#[0-9]+#/g,"");A.push({level:+t,id:n,text:a}),i+=zi(o="".concat(t)).call(o,n)})),i=this.$engine.md5(i),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(A,i,n)}))).replace(this.RULE.standard.reg,(function(e,n){return t.$makeToc(A,i,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 Eg(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}Gi(xg,"HOOK_NAME","toc");var Fg=function(e){Bi(n,Sf);var t=Eg(n);function n(e){var r;return e.externals,e.config,ui(this,n),(r=t.call(this)).footnoteCache={},r.footnoteMap={},r.footnote=[],r}return di(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,A,i,o,a;if(this.footnoteMap[e])return this.footnoteMap[e];var s=this.footnote.length+1,l={};l.fn=zi(n=zi(r=zi(A='[')).call(n,s,"]"),l.fnref=zi(i=zi(o=zi(a='[')).call(i,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=Wu(t).call(t,(function(e){var t;return zi(t='
    \n'.concat(e.fnref)).call(t,e.note,"\n
    ")})).join(""),r=this.$engine.md5(n);return n=zi(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,A){return t.pushFootnoteCache(r,A),(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=ru(e,"g",!0),e}}]),n}();function Ug(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}Gi(Fg,"HOOK_NAME","footnote");var Sg=function(e){Bi(n,Sf);var t=Ug(n);function n(e){var r;return e.externals,e.config,ui(this,n),(r=t.call(this)).commentCache={},r}return di(n,[{key:"$cleanCache",value:function(){this.commentCache={}}},{key:"pushCommentReferenceCache",value:function(e,t){var n,r=Fh(t.split(/[ ]+/g)),A=r[0],i=vc(r).call(r,1),o=sd.set(A);this.commentCache["".concat(e).toLowerCase()]=zi(n=[o]).call(n,Eh(i)).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,A){var i;return t.pushCommentReferenceCache(r,A),(null!==(i=e.match(/\n/g))&&void 0!==i?i:[]).join("")}));n=n.replace(/(\[[^\]\n]+?\])?(?:\[([^\]\n]+?)\])/g,(function(e,n,r){var A,i,o=t.getCommentReferenceCache(r);return o?n?zi(i="".concat(n,"(")).call(i,o,")"):zi(A="[".concat(r,"](")).call(A,o,")"):e})),this.$cleanCache()}return n}},{key:"makeHtml",value:function(e,t){return e}},{key:"afterMakeHtml",value:function(e){return sd.restoreAll(e)}},{key:"rule",value:function(){var e={begin:"(^|\\n)[ \t]*",content:["\\[([^^][^\\]]*?)\\]:\\h*","([^\\n]+?)"].join(""),end:"(?=$|\\n)"};return e.reg=ru(e,"g",!0),e}}]),n}();Gi(Sg,"HOOK_NAME","commentReference");var Lg=nr.some,Hg=WA("some");Ye({target:"Array",proto:!0,forced:!Hg},{some:function(e){return Lg(this,e,arguments.length>1?arguments[1]:void 0)}});var Ig=tA("Array").some,Mg=Array.prototype,_g=function(e){var t=e.some;return e===Mg||R(Mg,e)&&t===Mg.some?Ig:t};function Dg(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var Og=["href","src"];gg.addHook("afterSanitizeAttributes",(function(e){ti(Og).call(Og,(function(t){if(e.hasAttribute(t)){var n=e.getAttribute(t);e.setAttribute(t,n.replace(/\\/g,"%5c"))}}))}));var Ng=function(e){Bi(n,Sf);var t=Dg(n);function n(){return ui(this,n),t.call(this,{needCache:!0})}return di(n,[{key:"isAutoLinkTag",value:function(e){var t=[/^<([a-z][a-z0-9+.-]{1,31}:\/\/[^<> `]+)>$/i,/^<(mailto:[^<> `]+)>$/i,/^<([^()<>[\]:'@\\,"\s`]+@[^()<>[\]:'@\\,"\s`.]+\.[^()<>[\]:'@\\,"\s`]+)>$/i];return _g(t).call(t,(function(t){return t.test(e)}))}},{key:"isHtmlComment",value:function(e){return/^$/.test(e)}},{key:"beforeMakeHtml",value:function(e,t){var n=this;this.$engine.htmlWhiteListAppend?(this.htmlWhiteListAppend=new RegExp("^(".concat(this.$engine.htmlWhiteListAppend,")( |$|/)"),"i"),this.htmlWhiteList=this.$engine.htmlWhiteListAppend.split("|")):(this.htmlWhiteListAppend=!1,this.htmlWhiteList=[]);var r=e;return r=function(e){if("string"!=typeof e)return"";var t=e.replace(/&(\w+);?/g,(function(e,t){return-1===pc(e).call(e,";")||-1===pc(vf).call(vf,t.toLowerCase())?e.replace(/&/g,"&"):e}));return t=t.replace(/&#(?!x)(\d*);?/gi,(function(e,t){return yf(t)||-1===pc(e).call(e,";")||t.lenth>7||!wf(t)?e.replace(/&/g,"&"):e})),t=t.replace(/&#x([0-9a-f]*);?/gi,(function(e,t){if(yf(t))return e.replace(/&/g,"&");var n="0x".concat(t),r=Tc(n,16);return isNaN(r)||-1===pc(e).call(e,";")||t.lenth>6||!wf(n)?e.replace(/&/g,"&"):e})),t}(r=Tf(r)),r=(r=(r=r.replace(/<[/]?(.*?)>/g,(function(e,t){return Cf.test(t)||n.isAutoLinkTag(e)||n.isHtmlComment(e)||!1!==n.htmlWhiteListAppend&&n.htmlWhiteListAppend.test(t)?e.replace(//g,"$#62;"):e.replace(//g,">")}))).replace(/<(?=\/?(\w|\n|$))/g,"<")).replace(/\$#60;/g,"<").replace(/\$#62;/g,">")}},{key:"makeHtml",value:function(e,t){return e}},{key:"afterMakeHtml",value:function(e){var t=e,n={ALLOW_UNKNOWN_PROTOCOLS:!0,ADD_ATTR:["target"]};if(!1!==this.htmlWhiteListAppend){var r;if(n.ADD_TAGS=this.htmlWhiteList,(this.htmlWhiteListAppend.test("style")||this.htmlWhiteListAppend.test("ALL"))&&(t=t.replace(/| [^>]*>).*?<\/style>/gi,(function(e){return e.replace(/
    /gi,"")}))),this.htmlWhiteListAppend.test("iframe")||this.htmlWhiteListAppend.test("ALL"))n.ADD_ATTR=zi(r=n.ADD_ATTR).call(r,["align","frameborder","height","longdesc","marginheight","marginwidth","name","sandbox","scrolling","seamless","src","srcdoc","width"]),n.SANITIZE_DOM=!1,t=t.replace(/| [^>]*>).*?<\/iframe>/gi,(function(e){return e.replace(/
    /gi,"").replace(/\n/g,"")}));if(this.htmlWhiteListAppend.test("script")||this.htmlWhiteListAppend.test("ALL"))return t=t.replace(/| [^>]*>).*?<\/script>/gi,(function(e){return e.replace(/
    /gi,"")})),t}return Kd()||(n.FORBID_ATTR=["data-sign","data-lines"]),gg.sanitize(t,n)}}]),n}();Gi(Ng,"HOOK_NAME","htmlBlock");var Rg={"+1":"1f44d","-1":"1f44e",100:"1f4af",1234:"1f522","1st_place_medal":"1f947","2nd_place_medal":"1f948","3rd_place_medal":"1f949","8ball":"1f3b1",a:"1f170",ab:"1f18e",abacus:"1f9ee",abc:"1f524",abcd:"1f521",accept:"1f251",adhesive_bandage:"1fa79",adult:"1f9d1",aerial_tramway:"1f6a1",afghanistan:"1f1e6-1f1eb",airplane:"2708",aland_islands:"1f1e6-1f1fd",alarm_clock:"23f0",albania:"1f1e6-1f1f1",alembic:"2697",algeria:"1f1e9-1f1ff",alien:"1f47d",ambulance:"1f691",american_samoa:"1f1e6-1f1f8",amphora:"1f3fa",anchor:"2693",andorra:"1f1e6-1f1e9",angel:"1f47c",anger:"1f4a2",angola:"1f1e6-1f1f4",angry:"1f620",anguilla:"1f1e6-1f1ee",anguished:"1f627",ant:"1f41c",antarctica:"1f1e6-1f1f6",antigua_barbuda:"1f1e6-1f1ec",apple:"1f34e",aquarius:"2652",argentina:"1f1e6-1f1f7",aries:"2648",armenia:"1f1e6-1f1f2",arrow_backward:"25c0",arrow_double_down:"23ec",arrow_double_up:"23eb",arrow_down:"2b07",arrow_down_small:"1f53d",arrow_forward:"25b6",arrow_heading_down:"2935",arrow_heading_up:"2934",arrow_left:"2b05",arrow_lower_left:"2199",arrow_lower_right:"2198",arrow_right:"27a1",arrow_right_hook:"21aa",arrow_up:"2b06",arrow_up_down:"2195",arrow_up_small:"1f53c",arrow_upper_left:"2196",arrow_upper_right:"2197",arrows_clockwise:"1f503",arrows_counterclockwise:"1f504",art:"1f3a8",articulated_lorry:"1f69b",artificial_satellite:"1f6f0",artist:"1f9d1-1f3a8",aruba:"1f1e6-1f1fc",ascension_island:"1f1e6-1f1e8",asterisk:"002a-20e3",astonished:"1f632",astronaut:"1f9d1-1f680",athletic_shoe:"1f45f",atm:"1f3e7",atom_symbol:"269b",australia:"1f1e6-1f1fa",austria:"1f1e6-1f1f9",auto_rickshaw:"1f6fa",avocado:"1f951",axe:"1fa93",azerbaijan:"1f1e6-1f1ff",b:"1f171",baby:"1f476",baby_bottle:"1f37c",baby_chick:"1f424",baby_symbol:"1f6bc",back:"1f519",bacon:"1f953",badger:"1f9a1",badminton:"1f3f8",bagel:"1f96f",baggage_claim:"1f6c4",baguette_bread:"1f956",bahamas:"1f1e7-1f1f8",bahrain:"1f1e7-1f1ed",balance_scale:"2696",bald_man:"1f468-1f9b2",bald_woman:"1f469-1f9b2",ballet_shoes:"1fa70",balloon:"1f388",ballot_box:"1f5f3",ballot_box_with_check:"2611",bamboo:"1f38d",banana:"1f34c",bangbang:"203c",bangladesh:"1f1e7-1f1e9",banjo:"1fa95",bank:"1f3e6",bar_chart:"1f4ca",barbados:"1f1e7-1f1e7",barber:"1f488",baseball:"26be",basket:"1f9fa",basketball:"1f3c0",basketball_man:"26f9-2642",basketball_woman:"26f9-2640",bat:"1f987",bath:"1f6c0",bathtub:"1f6c1",battery:"1f50b",beach_umbrella:"1f3d6",bear:"1f43b",bearded_person:"1f9d4",bed:"1f6cf",bee:"1f41d",beer:"1f37a",beers:"1f37b",beetle:"1f41e",beginner:"1f530",belarus:"1f1e7-1f1fe",belgium:"1f1e7-1f1ea",belize:"1f1e7-1f1ff",bell:"1f514",bellhop_bell:"1f6ce",benin:"1f1e7-1f1ef",bento:"1f371",bermuda:"1f1e7-1f1f2",beverage_box:"1f9c3",bhutan:"1f1e7-1f1f9",bicyclist:"1f6b4",bike:"1f6b2",biking_man:"1f6b4-2642",biking_woman:"1f6b4-2640",bikini:"1f459",billed_cap:"1f9e2",biohazard:"2623",bird:"1f426",birthday:"1f382",black_circle:"26ab",black_flag:"1f3f4",black_heart:"1f5a4",black_joker:"1f0cf",black_large_square:"2b1b",black_medium_small_square:"25fe",black_medium_square:"25fc",black_nib:"2712",black_small_square:"25aa",black_square_button:"1f532",blond_haired_man:"1f471-2642",blond_haired_person:"1f471",blond_haired_woman:"1f471-2640",blonde_woman:"1f471-2640",blossom:"1f33c",blowfish:"1f421",blue_book:"1f4d8",blue_car:"1f699",blue_heart:"1f499",blue_square:"1f7e6",blush:"1f60a",boar:"1f417",boat:"26f5",bolivia:"1f1e7-1f1f4",bomb:"1f4a3",bone:"1f9b4",book:"1f4d6",bookmark:"1f516",bookmark_tabs:"1f4d1",books:"1f4da",boom:"1f4a5",boot:"1f462",bosnia_herzegovina:"1f1e7-1f1e6",botswana:"1f1e7-1f1fc",bouncing_ball_man:"26f9-2642",bouncing_ball_person:"26f9",bouncing_ball_woman:"26f9-2640",bouquet:"1f490",bouvet_island:"1f1e7-1f1fb",bow:"1f647",bow_and_arrow:"1f3f9",bowing_man:"1f647-2642",bowing_woman:"1f647-2640",bowl_with_spoon:"1f963",bowling:"1f3b3",boxing_glove:"1f94a",boy:"1f466",brain:"1f9e0",brazil:"1f1e7-1f1f7",bread:"1f35e",breast_feeding:"1f931",bricks:"1f9f1",bride_with_veil:"1f470",bridge_at_night:"1f309",briefcase:"1f4bc",british_indian_ocean_territory:"1f1ee-1f1f4",british_virgin_islands:"1f1fb-1f1ec",broccoli:"1f966",broken_heart:"1f494",broom:"1f9f9",brown_circle:"1f7e4",brown_heart:"1f90e",brown_square:"1f7eb",brunei:"1f1e7-1f1f3",bug:"1f41b",building_construction:"1f3d7",bulb:"1f4a1",bulgaria:"1f1e7-1f1ec",bullettrain_front:"1f685",bullettrain_side:"1f684",burkina_faso:"1f1e7-1f1eb",burrito:"1f32f",burundi:"1f1e7-1f1ee",bus:"1f68c",business_suit_levitating:"1f574",busstop:"1f68f",bust_in_silhouette:"1f464",busts_in_silhouette:"1f465",butter:"1f9c8",butterfly:"1f98b",cactus:"1f335",cake:"1f370",calendar:"1f4c6",call_me_hand:"1f919",calling:"1f4f2",cambodia:"1f1f0-1f1ed",camel:"1f42b",camera:"1f4f7",camera_flash:"1f4f8",cameroon:"1f1e8-1f1f2",camping:"1f3d5",canada:"1f1e8-1f1e6",canary_islands:"1f1ee-1f1e8",cancer:"264b",candle:"1f56f",candy:"1f36c",canned_food:"1f96b",canoe:"1f6f6",cape_verde:"1f1e8-1f1fb",capital_abcd:"1f520",capricorn:"2651",car:"1f697",card_file_box:"1f5c3",card_index:"1f4c7",card_index_dividers:"1f5c2",caribbean_netherlands:"1f1e7-1f1f6",carousel_horse:"1f3a0",carrot:"1f955",cartwheeling:"1f938",cat:"1f431",cat2:"1f408",cayman_islands:"1f1f0-1f1fe",cd:"1f4bf",central_african_republic:"1f1e8-1f1eb",ceuta_melilla:"1f1ea-1f1e6",chad:"1f1f9-1f1e9",chains:"26d3",chair:"1fa91",champagne:"1f37e",chart:"1f4b9",chart_with_downwards_trend:"1f4c9",chart_with_upwards_trend:"1f4c8",checkered_flag:"1f3c1",cheese:"1f9c0",cherries:"1f352",cherry_blossom:"1f338",chess_pawn:"265f",chestnut:"1f330",chicken:"1f414",child:"1f9d2",children_crossing:"1f6b8",chile:"1f1e8-1f1f1",chipmunk:"1f43f",chocolate_bar:"1f36b",chopsticks:"1f962",christmas_island:"1f1e8-1f1fd",christmas_tree:"1f384",church:"26ea",cinema:"1f3a6",circus_tent:"1f3aa",city_sunrise:"1f307",city_sunset:"1f306",cityscape:"1f3d9",cl:"1f191",clamp:"1f5dc",clap:"1f44f",clapper:"1f3ac",classical_building:"1f3db",climbing:"1f9d7",climbing_man:"1f9d7-2642",climbing_woman:"1f9d7-2640",clinking_glasses:"1f942",clipboard:"1f4cb",clipperton_island:"1f1e8-1f1f5",clock1:"1f550",clock10:"1f559",clock1030:"1f565",clock11:"1f55a",clock1130:"1f566",clock12:"1f55b",clock1230:"1f567",clock130:"1f55c",clock2:"1f551",clock230:"1f55d",clock3:"1f552",clock330:"1f55e",clock4:"1f553",clock430:"1f55f",clock5:"1f554",clock530:"1f560",clock6:"1f555",clock630:"1f561",clock7:"1f556",clock730:"1f562",clock8:"1f557",clock830:"1f563",clock9:"1f558",clock930:"1f564",closed_book:"1f4d5",closed_lock_with_key:"1f510",closed_umbrella:"1f302",cloud:"2601",cloud_with_lightning:"1f329",cloud_with_lightning_and_rain:"26c8",cloud_with_rain:"1f327",cloud_with_snow:"1f328",clown_face:"1f921",clubs:"2663",cn:"1f1e8-1f1f3",coat:"1f9e5",cocktail:"1f378",coconut:"1f965",cocos_islands:"1f1e8-1f1e8",coffee:"2615",coffin:"26b0",cold_face:"1f976",cold_sweat:"1f630",collision:"1f4a5",colombia:"1f1e8-1f1f4",comet:"2604",comoros:"1f1f0-1f1f2",compass:"1f9ed",computer:"1f4bb",computer_mouse:"1f5b1",confetti_ball:"1f38a",confounded:"1f616",confused:"1f615",congo_brazzaville:"1f1e8-1f1ec",congo_kinshasa:"1f1e8-1f1e9",congratulations:"3297",construction:"1f6a7",construction_worker:"1f477",construction_worker_man:"1f477-2642",construction_worker_woman:"1f477-2640",control_knobs:"1f39b",convenience_store:"1f3ea",cook:"1f9d1-1f373",cook_islands:"1f1e8-1f1f0",cookie:"1f36a",cool:"1f192",cop:"1f46e",copyright:"00a9",corn:"1f33d",costa_rica:"1f1e8-1f1f7",cote_divoire:"1f1e8-1f1ee",couch_and_lamp:"1f6cb",couple:"1f46b",couple_with_heart:"1f491",couple_with_heart_man_man:"1f468-2764-1f468",couple_with_heart_woman_man:"1f469-2764-1f468",couple_with_heart_woman_woman:"1f469-2764-1f469",couplekiss:"1f48f",couplekiss_man_man:"1f468-2764-1f48b-1f468",couplekiss_man_woman:"1f469-2764-1f48b-1f468",couplekiss_woman_woman:"1f469-2764-1f48b-1f469",cow:"1f42e",cow2:"1f404",cowboy_hat_face:"1f920",crab:"1f980",crayon:"1f58d",credit_card:"1f4b3",crescent_moon:"1f319",cricket:"1f997",cricket_game:"1f3cf",croatia:"1f1ed-1f1f7",crocodile:"1f40a",croissant:"1f950",crossed_fingers:"1f91e",crossed_flags:"1f38c",crossed_swords:"2694",crown:"1f451",cry:"1f622",crying_cat_face:"1f63f",crystal_ball:"1f52e",cuba:"1f1e8-1f1fa",cucumber:"1f952",cup_with_straw:"1f964",cupcake:"1f9c1",cupid:"1f498",curacao:"1f1e8-1f1fc",curling_stone:"1f94c",curly_haired_man:"1f468-1f9b1",curly_haired_woman:"1f469-1f9b1",curly_loop:"27b0",currency_exchange:"1f4b1",curry:"1f35b",cursing_face:"1f92c",custard:"1f36e",customs:"1f6c3",cut_of_meat:"1f969",cyclone:"1f300",cyprus:"1f1e8-1f1fe",czech_republic:"1f1e8-1f1ff",dagger:"1f5e1",dancer:"1f483",dancers:"1f46f",dancing_men:"1f46f-2642",dancing_women:"1f46f-2640",dango:"1f361",dark_sunglasses:"1f576",dart:"1f3af",dash:"1f4a8",date:"1f4c5",de:"1f1e9-1f1ea",deaf_man:"1f9cf-2642",deaf_person:"1f9cf",deaf_woman:"1f9cf-2640",deciduous_tree:"1f333",deer:"1f98c",denmark:"1f1e9-1f1f0",department_store:"1f3ec",derelict_house:"1f3da",desert:"1f3dc",desert_island:"1f3dd",desktop_computer:"1f5a5",detective:"1f575",diamond_shape_with_a_dot_inside:"1f4a0",diamonds:"2666",diego_garcia:"1f1e9-1f1ec",disappointed:"1f61e",disappointed_relieved:"1f625",diving_mask:"1f93f",diya_lamp:"1fa94",dizzy:"1f4ab",dizzy_face:"1f635",djibouti:"1f1e9-1f1ef",dna:"1f9ec",do_not_litter:"1f6af",dog:"1f436",dog2:"1f415",dollar:"1f4b5",dolls:"1f38e",dolphin:"1f42c",dominica:"1f1e9-1f1f2",dominican_republic:"1f1e9-1f1f4",door:"1f6aa",doughnut:"1f369",dove:"1f54a",dragon:"1f409",dragon_face:"1f432",dress:"1f457",dromedary_camel:"1f42a",drooling_face:"1f924",drop_of_blood:"1fa78",droplet:"1f4a7",drum:"1f941",duck:"1f986",dumpling:"1f95f",dvd:"1f4c0","e-mail":"1f4e7",eagle:"1f985",ear:"1f442",ear_of_rice:"1f33e",ear_with_hearing_aid:"1f9bb",earth_africa:"1f30d",earth_americas:"1f30e",earth_asia:"1f30f",ecuador:"1f1ea-1f1e8",egg:"1f95a",eggplant:"1f346",egypt:"1f1ea-1f1ec",eight:"0038-20e3",eight_pointed_black_star:"2734",eight_spoked_asterisk:"2733",eject_button:"23cf",el_salvador:"1f1f8-1f1fb",electric_plug:"1f50c",elephant:"1f418",elf:"1f9dd",elf_man:"1f9dd-2642",elf_woman:"1f9dd-2640",email:"2709",end:"1f51a",england:"1f3f4-e0067-e0062-e0065-e006e-e0067-e007f",envelope:"2709",envelope_with_arrow:"1f4e9",equatorial_guinea:"1f1ec-1f1f6",eritrea:"1f1ea-1f1f7",es:"1f1ea-1f1f8",estonia:"1f1ea-1f1ea",ethiopia:"1f1ea-1f1f9",eu:"1f1ea-1f1fa",euro:"1f4b6",european_castle:"1f3f0",european_post_office:"1f3e4",european_union:"1f1ea-1f1fa",evergreen_tree:"1f332",exclamation:"2757",exploding_head:"1f92f",expressionless:"1f611",eye:"1f441",eye_speech_bubble:"1f441-1f5e8",eyeglasses:"1f453",eyes:"1f440",face_with_head_bandage:"1f915",face_with_thermometer:"1f912",facepalm:"1f926",facepunch:"1f44a",factory:"1f3ed",factory_worker:"1f9d1-1f3ed",fairy:"1f9da",fairy_man:"1f9da-2642",fairy_woman:"1f9da-2640",falafel:"1f9c6",falkland_islands:"1f1eb-1f1f0",fallen_leaf:"1f342",family:"1f46a",family_man_boy:"1f468-1f466",family_man_boy_boy:"1f468-1f466-1f466",family_man_girl:"1f468-1f467",family_man_girl_boy:"1f468-1f467-1f466",family_man_girl_girl:"1f468-1f467-1f467",family_man_man_boy:"1f468-1f468-1f466",family_man_man_boy_boy:"1f468-1f468-1f466-1f466",family_man_man_girl:"1f468-1f468-1f467",family_man_man_girl_boy:"1f468-1f468-1f467-1f466",family_man_man_girl_girl:"1f468-1f468-1f467-1f467",family_man_woman_boy:"1f468-1f469-1f466",family_man_woman_boy_boy:"1f468-1f469-1f466-1f466",family_man_woman_girl:"1f468-1f469-1f467",family_man_woman_girl_boy:"1f468-1f469-1f467-1f466",family_man_woman_girl_girl:"1f468-1f469-1f467-1f467",family_woman_boy:"1f469-1f466",family_woman_boy_boy:"1f469-1f466-1f466",family_woman_girl:"1f469-1f467",family_woman_girl_boy:"1f469-1f467-1f466",family_woman_girl_girl:"1f469-1f467-1f467",family_woman_woman_boy:"1f469-1f469-1f466",family_woman_woman_boy_boy:"1f469-1f469-1f466-1f466",family_woman_woman_girl:"1f469-1f469-1f467",family_woman_woman_girl_boy:"1f469-1f469-1f467-1f466",family_woman_woman_girl_girl:"1f469-1f469-1f467-1f467",farmer:"1f9d1-1f33e",faroe_islands:"1f1eb-1f1f4",fast_forward:"23e9",fax:"1f4e0",fearful:"1f628",feet:"1f43e",female_detective:"1f575-2640",female_sign:"2640",ferris_wheel:"1f3a1",ferry:"26f4",field_hockey:"1f3d1",fiji:"1f1eb-1f1ef",file_cabinet:"1f5c4",file_folder:"1f4c1",film_projector:"1f4fd",film_strip:"1f39e",finland:"1f1eb-1f1ee",fire:"1f525",fire_engine:"1f692",fire_extinguisher:"1f9ef",firecracker:"1f9e8",firefighter:"1f9d1-1f692",fireworks:"1f386",first_quarter_moon:"1f313",first_quarter_moon_with_face:"1f31b",fish:"1f41f",fish_cake:"1f365",fishing_pole_and_fish:"1f3a3",fist:"270a",fist_left:"1f91b",fist_oncoming:"1f44a",fist_raised:"270a",fist_right:"1f91c",five:"0035-20e3",flags:"1f38f",flamingo:"1f9a9",flashlight:"1f526",flat_shoe:"1f97f",fleur_de_lis:"269c",flight_arrival:"1f6ec",flight_departure:"1f6eb",flipper:"1f42c",floppy_disk:"1f4be",flower_playing_cards:"1f3b4",flushed:"1f633",flying_disc:"1f94f",flying_saucer:"1f6f8",fog:"1f32b",foggy:"1f301",foot:"1f9b6",football:"1f3c8",footprints:"1f463",fork_and_knife:"1f374",fortune_cookie:"1f960",fountain:"26f2",fountain_pen:"1f58b",four:"0034-20e3",four_leaf_clover:"1f340",fox_face:"1f98a",fr:"1f1eb-1f1f7",framed_picture:"1f5bc",free:"1f193",french_guiana:"1f1ec-1f1eb",french_polynesia:"1f1f5-1f1eb",french_southern_territories:"1f1f9-1f1eb",fried_egg:"1f373",fried_shrimp:"1f364",fries:"1f35f",frog:"1f438",frowning:"1f626",frowning_face:"2639",frowning_man:"1f64d-2642",frowning_person:"1f64d",frowning_woman:"1f64d-2640",fu:"1f595",fuelpump:"26fd",full_moon:"1f315",full_moon_with_face:"1f31d",funeral_urn:"26b1",gabon:"1f1ec-1f1e6",gambia:"1f1ec-1f1f2",game_die:"1f3b2",garlic:"1f9c4",gb:"1f1ec-1f1e7",gear:"2699",gem:"1f48e",gemini:"264a",genie:"1f9de",genie_man:"1f9de-2642",genie_woman:"1f9de-2640",georgia:"1f1ec-1f1ea",ghana:"1f1ec-1f1ed",ghost:"1f47b",gibraltar:"1f1ec-1f1ee",gift:"1f381",gift_heart:"1f49d",giraffe:"1f992",girl:"1f467",globe_with_meridians:"1f310",gloves:"1f9e4",goal_net:"1f945",goat:"1f410",goggles:"1f97d",golf:"26f3",golfing:"1f3cc",golfing_man:"1f3cc-2642",golfing_woman:"1f3cc-2640",gorilla:"1f98d",grapes:"1f347",greece:"1f1ec-1f1f7",green_apple:"1f34f",green_book:"1f4d7",green_circle:"1f7e2",green_heart:"1f49a",green_salad:"1f957",green_square:"1f7e9",greenland:"1f1ec-1f1f1",grenada:"1f1ec-1f1e9",grey_exclamation:"2755",grey_question:"2754",grimacing:"1f62c",grin:"1f601",grinning:"1f600",guadeloupe:"1f1ec-1f1f5",guam:"1f1ec-1f1fa",guard:"1f482",guardsman:"1f482-2642",guardswoman:"1f482-2640",guatemala:"1f1ec-1f1f9",guernsey:"1f1ec-1f1ec",guide_dog:"1f9ae",guinea:"1f1ec-1f1f3",guinea_bissau:"1f1ec-1f1fc",guitar:"1f3b8",gun:"1f52b",guyana:"1f1ec-1f1fe",haircut:"1f487",haircut_man:"1f487-2642",haircut_woman:"1f487-2640",haiti:"1f1ed-1f1f9",hamburger:"1f354",hammer:"1f528",hammer_and_pick:"2692",hammer_and_wrench:"1f6e0",hamster:"1f439",hand:"270b",hand_over_mouth:"1f92d",handbag:"1f45c",handball_person:"1f93e",handshake:"1f91d",hankey:"1f4a9",hash:"0023-20e3",hatched_chick:"1f425",hatching_chick:"1f423",headphones:"1f3a7",health_worker:"1f9d1-2695",hear_no_evil:"1f649",heard_mcdonald_islands:"1f1ed-1f1f2",heart:"2764",heart_decoration:"1f49f",heart_eyes:"1f60d",heart_eyes_cat:"1f63b",heartbeat:"1f493",heartpulse:"1f497",hearts:"2665",heavy_check_mark:"2714",heavy_division_sign:"2797",heavy_dollar_sign:"1f4b2",heavy_exclamation_mark:"2757",heavy_heart_exclamation:"2763",heavy_minus_sign:"2796",heavy_multiplication_x:"2716",heavy_plus_sign:"2795",hedgehog:"1f994",helicopter:"1f681",herb:"1f33f",hibiscus:"1f33a",high_brightness:"1f506",high_heel:"1f460",hiking_boot:"1f97e",hindu_temple:"1f6d5",hippopotamus:"1f99b",hocho:"1f52a",hole:"1f573",honduras:"1f1ed-1f1f3",honey_pot:"1f36f",honeybee:"1f41d",hong_kong:"1f1ed-1f1f0",horse:"1f434",horse_racing:"1f3c7",hospital:"1f3e5",hot_face:"1f975",hot_pepper:"1f336",hotdog:"1f32d",hotel:"1f3e8",hotsprings:"2668",hourglass:"231b",hourglass_flowing_sand:"23f3",house:"1f3e0",house_with_garden:"1f3e1",houses:"1f3d8",hugs:"1f917",hungary:"1f1ed-1f1fa",hushed:"1f62f",ice_cream:"1f368",ice_cube:"1f9ca",ice_hockey:"1f3d2",ice_skate:"26f8",icecream:"1f366",iceland:"1f1ee-1f1f8",id:"1f194",ideograph_advantage:"1f250",imp:"1f47f",inbox_tray:"1f4e5",incoming_envelope:"1f4e8",india:"1f1ee-1f1f3",indonesia:"1f1ee-1f1e9",infinity:"267e",information_desk_person:"1f481",information_source:"2139",innocent:"1f607",interrobang:"2049",iphone:"1f4f1",iran:"1f1ee-1f1f7",iraq:"1f1ee-1f1f6",ireland:"1f1ee-1f1ea",isle_of_man:"1f1ee-1f1f2",israel:"1f1ee-1f1f1",it:"1f1ee-1f1f9",izakaya_lantern:"1f3ee",jack_o_lantern:"1f383",jamaica:"1f1ef-1f1f2",japan:"1f5fe",japanese_castle:"1f3ef",japanese_goblin:"1f47a",japanese_ogre:"1f479",jeans:"1f456",jersey:"1f1ef-1f1ea",jigsaw:"1f9e9",jordan:"1f1ef-1f1f4",joy:"1f602",joy_cat:"1f639",joystick:"1f579",jp:"1f1ef-1f1f5",judge:"1f9d1-2696",juggling_person:"1f939",kaaba:"1f54b",kangaroo:"1f998",kazakhstan:"1f1f0-1f1ff",kenya:"1f1f0-1f1ea",key:"1f511",keyboard:"2328",keycap_ten:"1f51f",kick_scooter:"1f6f4",kimono:"1f458",kiribati:"1f1f0-1f1ee",kiss:"1f48b",kissing:"1f617",kissing_cat:"1f63d",kissing_closed_eyes:"1f61a",kissing_heart:"1f618",kissing_smiling_eyes:"1f619",kite:"1fa81",kiwi_fruit:"1f95d",kneeling_man:"1f9ce-2642",kneeling_person:"1f9ce",kneeling_woman:"1f9ce-2640",knife:"1f52a",koala:"1f428",koko:"1f201",kosovo:"1f1fd-1f1f0",kr:"1f1f0-1f1f7",kuwait:"1f1f0-1f1fc",kyrgyzstan:"1f1f0-1f1ec",lab_coat:"1f97c",label:"1f3f7",lacrosse:"1f94d",lantern:"1f3ee",laos:"1f1f1-1f1e6",large_blue_circle:"1f535",large_blue_diamond:"1f537",large_orange_diamond:"1f536",last_quarter_moon:"1f317",last_quarter_moon_with_face:"1f31c",latin_cross:"271d",latvia:"1f1f1-1f1fb",laughing:"1f606",leafy_green:"1f96c",leaves:"1f343",lebanon:"1f1f1-1f1e7",ledger:"1f4d2",left_luggage:"1f6c5",left_right_arrow:"2194",left_speech_bubble:"1f5e8",leftwards_arrow_with_hook:"21a9",leg:"1f9b5",lemon:"1f34b",leo:"264c",leopard:"1f406",lesotho:"1f1f1-1f1f8",level_slider:"1f39a",liberia:"1f1f1-1f1f7",libra:"264e",libya:"1f1f1-1f1fe",liechtenstein:"1f1f1-1f1ee",light_rail:"1f688",link:"1f517",lion:"1f981",lips:"1f444",lipstick:"1f484",lithuania:"1f1f1-1f1f9",lizard:"1f98e",llama:"1f999",lobster:"1f99e",lock:"1f512",lock_with_ink_pen:"1f50f",lollipop:"1f36d",loop:"27bf",lotion_bottle:"1f9f4",lotus_position:"1f9d8",lotus_position_man:"1f9d8-2642",lotus_position_woman:"1f9d8-2640",loud_sound:"1f50a",loudspeaker:"1f4e2",love_hotel:"1f3e9",love_letter:"1f48c",love_you_gesture:"1f91f",low_brightness:"1f505",luggage:"1f9f3",luxembourg:"1f1f1-1f1fa",lying_face:"1f925",m:"24c2",macau:"1f1f2-1f1f4",macedonia:"1f1f2-1f1f0",madagascar:"1f1f2-1f1ec",mag:"1f50d",mag_right:"1f50e",mage:"1f9d9",mage_man:"1f9d9-2642",mage_woman:"1f9d9-2640",magnet:"1f9f2",mahjong:"1f004",mailbox:"1f4eb",mailbox_closed:"1f4ea",mailbox_with_mail:"1f4ec",mailbox_with_no_mail:"1f4ed",malawi:"1f1f2-1f1fc",malaysia:"1f1f2-1f1fe",maldives:"1f1f2-1f1fb",male_detective:"1f575-2642",male_sign:"2642",mali:"1f1f2-1f1f1",malta:"1f1f2-1f1f9",man:"1f468",man_artist:"1f468-1f3a8",man_astronaut:"1f468-1f680",man_cartwheeling:"1f938-2642",man_cook:"1f468-1f373",man_dancing:"1f57a",man_facepalming:"1f926-2642",man_factory_worker:"1f468-1f3ed",man_farmer:"1f468-1f33e",man_firefighter:"1f468-1f692",man_health_worker:"1f468-2695",man_in_manual_wheelchair:"1f468-1f9bd",man_in_motorized_wheelchair:"1f468-1f9bc",man_in_tuxedo:"1f935",man_judge:"1f468-2696",man_juggling:"1f939-2642",man_mechanic:"1f468-1f527",man_office_worker:"1f468-1f4bc",man_pilot:"1f468-2708",man_playing_handball:"1f93e-2642",man_playing_water_polo:"1f93d-2642",man_scientist:"1f468-1f52c",man_shrugging:"1f937-2642",man_singer:"1f468-1f3a4",man_student:"1f468-1f393",man_teacher:"1f468-1f3eb",man_technologist:"1f468-1f4bb",man_with_gua_pi_mao:"1f472",man_with_probing_cane:"1f468-1f9af",man_with_turban:"1f473-2642",mandarin:"1f34a",mango:"1f96d",mans_shoe:"1f45e",mantelpiece_clock:"1f570",manual_wheelchair:"1f9bd",maple_leaf:"1f341",marshall_islands:"1f1f2-1f1ed",martial_arts_uniform:"1f94b",martinique:"1f1f2-1f1f6",mask:"1f637",massage:"1f486",massage_man:"1f486-2642",massage_woman:"1f486-2640",mate:"1f9c9",mauritania:"1f1f2-1f1f7",mauritius:"1f1f2-1f1fa",mayotte:"1f1fe-1f1f9",meat_on_bone:"1f356",mechanic:"1f9d1-1f527",mechanical_arm:"1f9be",mechanical_leg:"1f9bf",medal_military:"1f396",medal_sports:"1f3c5",medical_symbol:"2695",mega:"1f4e3",melon:"1f348",memo:"1f4dd",men_wrestling:"1f93c-2642",menorah:"1f54e",mens:"1f6b9",mermaid:"1f9dc-2640",merman:"1f9dc-2642",merperson:"1f9dc",metal:"1f918",metro:"1f687",mexico:"1f1f2-1f1fd",microbe:"1f9a0",micronesia:"1f1eb-1f1f2",microphone:"1f3a4",microscope:"1f52c",middle_finger:"1f595",milk_glass:"1f95b",milky_way:"1f30c",minibus:"1f690",minidisc:"1f4bd",mobile_phone_off:"1f4f4",moldova:"1f1f2-1f1e9",monaco:"1f1f2-1f1e8",money_mouth_face:"1f911",money_with_wings:"1f4b8",moneybag:"1f4b0",mongolia:"1f1f2-1f1f3",monkey:"1f412",monkey_face:"1f435",monocle_face:"1f9d0",monorail:"1f69d",montenegro:"1f1f2-1f1ea",montserrat:"1f1f2-1f1f8",moon:"1f314",moon_cake:"1f96e",morocco:"1f1f2-1f1e6",mortar_board:"1f393",mosque:"1f54c",mosquito:"1f99f",motor_boat:"1f6e5",motor_scooter:"1f6f5",motorcycle:"1f3cd",motorized_wheelchair:"1f9bc",motorway:"1f6e3",mount_fuji:"1f5fb",mountain:"26f0",mountain_bicyclist:"1f6b5",mountain_biking_man:"1f6b5-2642",mountain_biking_woman:"1f6b5-2640",mountain_cableway:"1f6a0",mountain_railway:"1f69e",mountain_snow:"1f3d4",mouse:"1f42d",mouse2:"1f401",movie_camera:"1f3a5",moyai:"1f5ff",mozambique:"1f1f2-1f1ff",mrs_claus:"1f936",muscle:"1f4aa",mushroom:"1f344",musical_keyboard:"1f3b9",musical_note:"1f3b5",musical_score:"1f3bc",mute:"1f507",myanmar:"1f1f2-1f1f2",nail_care:"1f485",name_badge:"1f4db",namibia:"1f1f3-1f1e6",national_park:"1f3de",nauru:"1f1f3-1f1f7",nauseated_face:"1f922",nazar_amulet:"1f9ff",necktie:"1f454",negative_squared_cross_mark:"274e",nepal:"1f1f3-1f1f5",nerd_face:"1f913",netherlands:"1f1f3-1f1f1",neutral_face:"1f610",new:"1f195",new_caledonia:"1f1f3-1f1e8",new_moon:"1f311",new_moon_with_face:"1f31a",new_zealand:"1f1f3-1f1ff",newspaper:"1f4f0",newspaper_roll:"1f5de",next_track_button:"23ed",ng:"1f196",ng_man:"1f645-2642",ng_woman:"1f645-2640",nicaragua:"1f1f3-1f1ee",niger:"1f1f3-1f1ea",nigeria:"1f1f3-1f1ec",night_with_stars:"1f303",nine:"0039-20e3",niue:"1f1f3-1f1fa",no_bell:"1f515",no_bicycles:"1f6b3",no_entry:"26d4",no_entry_sign:"1f6ab",no_good:"1f645",no_good_man:"1f645-2642",no_good_woman:"1f645-2640",no_mobile_phones:"1f4f5",no_mouth:"1f636",no_pedestrians:"1f6b7",no_smoking:"1f6ad","non-potable_water":"1f6b1",norfolk_island:"1f1f3-1f1eb",north_korea:"1f1f0-1f1f5",northern_mariana_islands:"1f1f2-1f1f5",norway:"1f1f3-1f1f4",nose:"1f443",notebook:"1f4d3",notebook_with_decorative_cover:"1f4d4",notes:"1f3b6",nut_and_bolt:"1f529",o:"2b55",o2:"1f17e",ocean:"1f30a",octopus:"1f419",oden:"1f362",office:"1f3e2",office_worker:"1f9d1-1f4bc",oil_drum:"1f6e2",ok:"1f197",ok_hand:"1f44c",ok_man:"1f646-2642",ok_person:"1f646",ok_woman:"1f646-2640",old_key:"1f5dd",older_adult:"1f9d3",older_man:"1f474",older_woman:"1f475",om:"1f549",oman:"1f1f4-1f1f2",on:"1f51b",oncoming_automobile:"1f698",oncoming_bus:"1f68d",oncoming_police_car:"1f694",oncoming_taxi:"1f696",one:"0031-20e3",one_piece_swimsuit:"1fa71",onion:"1f9c5",open_book:"1f4d6",open_file_folder:"1f4c2",open_hands:"1f450",open_mouth:"1f62e",open_umbrella:"2602",ophiuchus:"26ce",orange:"1f34a",orange_book:"1f4d9",orange_circle:"1f7e0",orange_heart:"1f9e1",orange_square:"1f7e7",orangutan:"1f9a7",orthodox_cross:"2626",otter:"1f9a6",outbox_tray:"1f4e4",owl:"1f989",ox:"1f402",oyster:"1f9aa",package:"1f4e6",page_facing_up:"1f4c4",page_with_curl:"1f4c3",pager:"1f4df",paintbrush:"1f58c",pakistan:"1f1f5-1f1f0",palau:"1f1f5-1f1fc",palestinian_territories:"1f1f5-1f1f8",palm_tree:"1f334",palms_up_together:"1f932",panama:"1f1f5-1f1e6",pancakes:"1f95e",panda_face:"1f43c",paperclip:"1f4ce",paperclips:"1f587",papua_new_guinea:"1f1f5-1f1ec",parachute:"1fa82",paraguay:"1f1f5-1f1fe",parasol_on_ground:"26f1",parking:"1f17f",parrot:"1f99c",part_alternation_mark:"303d",partly_sunny:"26c5",partying_face:"1f973",passenger_ship:"1f6f3",passport_control:"1f6c2",pause_button:"23f8",paw_prints:"1f43e",peace_symbol:"262e",peach:"1f351",peacock:"1f99a",peanuts:"1f95c",pear:"1f350",pen:"1f58a",pencil:"1f4dd",pencil2:"270f",penguin:"1f427",pensive:"1f614",people_holding_hands:"1f9d1-1f91d-1f9d1",performing_arts:"1f3ad",persevere:"1f623",person_bald:"1f9d1-1f9b2",person_curly_hair:"1f9d1-1f9b1",person_fencing:"1f93a",person_in_manual_wheelchair:"1f9d1-1f9bd",person_in_motorized_wheelchair:"1f9d1-1f9bc",person_red_hair:"1f9d1-1f9b0",person_white_hair:"1f9d1-1f9b3",person_with_probing_cane:"1f9d1-1f9af",person_with_turban:"1f473",peru:"1f1f5-1f1ea",petri_dish:"1f9eb",philippines:"1f1f5-1f1ed",phone:"260e",pick:"26cf",pie:"1f967",pig:"1f437",pig2:"1f416",pig_nose:"1f43d",pill:"1f48a",pilot:"1f9d1-2708",pinching_hand:"1f90f",pineapple:"1f34d",ping_pong:"1f3d3",pirate_flag:"1f3f4-2620",pisces:"2653",pitcairn_islands:"1f1f5-1f1f3",pizza:"1f355",place_of_worship:"1f6d0",plate_with_cutlery:"1f37d",play_or_pause_button:"23ef",pleading_face:"1f97a",point_down:"1f447",point_left:"1f448",point_right:"1f449",point_up:"261d",point_up_2:"1f446",poland:"1f1f5-1f1f1",police_car:"1f693",police_officer:"1f46e",policeman:"1f46e-2642",policewoman:"1f46e-2640",poodle:"1f429",poop:"1f4a9",popcorn:"1f37f",portugal:"1f1f5-1f1f9",post_office:"1f3e3",postal_horn:"1f4ef",postbox:"1f4ee",potable_water:"1f6b0",potato:"1f954",pouch:"1f45d",poultry_leg:"1f357",pound:"1f4b7",pout:"1f621",pouting_cat:"1f63e",pouting_face:"1f64e",pouting_man:"1f64e-2642",pouting_woman:"1f64e-2640",pray:"1f64f",prayer_beads:"1f4ff",pregnant_woman:"1f930",pretzel:"1f968",previous_track_button:"23ee",prince:"1f934",princess:"1f478",printer:"1f5a8",probing_cane:"1f9af",puerto_rico:"1f1f5-1f1f7",punch:"1f44a",purple_circle:"1f7e3",purple_heart:"1f49c",purple_square:"1f7ea",purse:"1f45b",pushpin:"1f4cc",put_litter_in_its_place:"1f6ae",qatar:"1f1f6-1f1e6",question:"2753",rabbit:"1f430",rabbit2:"1f407",raccoon:"1f99d",racehorse:"1f40e",racing_car:"1f3ce",radio:"1f4fb",radio_button:"1f518",radioactive:"2622",rage:"1f621",railway_car:"1f683",railway_track:"1f6e4",rainbow:"1f308",rainbow_flag:"1f3f3-1f308",raised_back_of_hand:"1f91a",raised_eyebrow:"1f928",raised_hand:"270b",raised_hand_with_fingers_splayed:"1f590",raised_hands:"1f64c",raising_hand:"1f64b",raising_hand_man:"1f64b-2642",raising_hand_woman:"1f64b-2640",ram:"1f40f",ramen:"1f35c",rat:"1f400",razor:"1fa92",receipt:"1f9fe",record_button:"23fa",recycle:"267b",red_car:"1f697",red_circle:"1f534",red_envelope:"1f9e7",red_haired_man:"1f468-1f9b0",red_haired_woman:"1f469-1f9b0",red_square:"1f7e5",registered:"00ae",relaxed:"263a",relieved:"1f60c",reminder_ribbon:"1f397",repeat:"1f501",repeat_one:"1f502",rescue_worker_helmet:"26d1",restroom:"1f6bb",reunion:"1f1f7-1f1ea",revolving_hearts:"1f49e",rewind:"23ea",rhinoceros:"1f98f",ribbon:"1f380",rice:"1f35a",rice_ball:"1f359",rice_cracker:"1f358",rice_scene:"1f391",right_anger_bubble:"1f5ef",ring:"1f48d",ringed_planet:"1fa90",robot:"1f916",rocket:"1f680",rofl:"1f923",roll_eyes:"1f644",roll_of_paper:"1f9fb",roller_coaster:"1f3a2",romania:"1f1f7-1f1f4",rooster:"1f413",rose:"1f339",rosette:"1f3f5",rotating_light:"1f6a8",round_pushpin:"1f4cd",rowboat:"1f6a3",rowing_man:"1f6a3-2642",rowing_woman:"1f6a3-2640",ru:"1f1f7-1f1fa",rugby_football:"1f3c9",runner:"1f3c3",running:"1f3c3",running_man:"1f3c3-2642",running_shirt_with_sash:"1f3bd",running_woman:"1f3c3-2640",rwanda:"1f1f7-1f1fc",sa:"1f202",safety_pin:"1f9f7",safety_vest:"1f9ba",sagittarius:"2650",sailboat:"26f5",sake:"1f376",salt:"1f9c2",samoa:"1f1fc-1f1f8",san_marino:"1f1f8-1f1f2",sandal:"1f461",sandwich:"1f96a",santa:"1f385",sao_tome_principe:"1f1f8-1f1f9",sari:"1f97b",sassy_man:"1f481-2642",sassy_woman:"1f481-2640",satellite:"1f4e1",satisfied:"1f606",saudi_arabia:"1f1f8-1f1e6",sauna_man:"1f9d6-2642",sauna_person:"1f9d6",sauna_woman:"1f9d6-2640",sauropod:"1f995",saxophone:"1f3b7",scarf:"1f9e3",school:"1f3eb",school_satchel:"1f392",scientist:"1f9d1-1f52c",scissors:"2702",scorpion:"1f982",scorpius:"264f",scotland:"1f3f4-e0067-e0062-e0073-e0063-e0074-e007f",scream:"1f631",scream_cat:"1f640",scroll:"1f4dc",seat:"1f4ba",secret:"3299",see_no_evil:"1f648",seedling:"1f331",selfie:"1f933",senegal:"1f1f8-1f1f3",serbia:"1f1f7-1f1f8",service_dog:"1f415-1f9ba",seven:"0037-20e3",seychelles:"1f1f8-1f1e8",shallow_pan_of_food:"1f958",shamrock:"2618",shark:"1f988",shaved_ice:"1f367",sheep:"1f411",shell:"1f41a",shield:"1f6e1",shinto_shrine:"26e9",ship:"1f6a2",shirt:"1f455",poo:"1f4a9",shoe:"1f45e",shopping:"1f6cd",shopping_cart:"1f6d2",shorts:"1fa73",shower:"1f6bf",shrimp:"1f990",shrug:"1f937",shushing_face:"1f92b",sierra_leone:"1f1f8-1f1f1",signal_strength:"1f4f6",singapore:"1f1f8-1f1ec",singer:"1f9d1-1f3a4",sint_maarten:"1f1f8-1f1fd",six:"0036-20e3",six_pointed_star:"1f52f",skateboard:"1f6f9",ski:"1f3bf",skier:"26f7",skull:"1f480",skull_and_crossbones:"2620",skunk:"1f9a8",sled:"1f6f7",sleeping:"1f634",sleeping_bed:"1f6cc",sleepy:"1f62a",slightly_frowning_face:"1f641",slightly_smiling_face:"1f642",slot_machine:"1f3b0",sloth:"1f9a5",slovakia:"1f1f8-1f1f0",slovenia:"1f1f8-1f1ee",small_airplane:"1f6e9",small_blue_diamond:"1f539",small_orange_diamond:"1f538",small_red_triangle:"1f53a",small_red_triangle_down:"1f53b",smile:"1f604",smile_cat:"1f638",smiley:"1f603",smiley_cat:"1f63a",smiling_face_with_three_hearts:"1f970",smiling_imp:"1f608",smirk:"1f60f",smirk_cat:"1f63c",smoking:"1f6ac",snail:"1f40c",snake:"1f40d",sneezing_face:"1f927",snowboarder:"1f3c2",snowflake:"2744",snowman:"26c4",snowman_with_snow:"2603",soap:"1f9fc",sob:"1f62d",soccer:"26bd",socks:"1f9e6",softball:"1f94e",solomon_islands:"1f1f8-1f1e7",somalia:"1f1f8-1f1f4",soon:"1f51c",sos:"1f198",sound:"1f509",south_africa:"1f1ff-1f1e6",south_georgia_south_sandwich_islands:"1f1ec-1f1f8",south_sudan:"1f1f8-1f1f8",space_invader:"1f47e",spades:"2660",spaghetti:"1f35d",sparkle:"2747",sparkler:"1f387",sparkles:"2728",sparkling_heart:"1f496",speak_no_evil:"1f64a",speaker:"1f508",speaking_head:"1f5e3",speech_balloon:"1f4ac",speedboat:"1f6a4",spider:"1f577",spider_web:"1f578",spiral_calendar:"1f5d3",spiral_notepad:"1f5d2",sponge:"1f9fd",spoon:"1f944",squid:"1f991",sri_lanka:"1f1f1-1f1f0",st_barthelemy:"1f1e7-1f1f1",st_helena:"1f1f8-1f1ed",st_kitts_nevis:"1f1f0-1f1f3",st_lucia:"1f1f1-1f1e8",st_martin:"1f1f2-1f1eb",st_pierre_miquelon:"1f1f5-1f1f2",st_vincent_grenadines:"1f1fb-1f1e8",stadium:"1f3df",standing_man:"1f9cd-2642",standing_person:"1f9cd",standing_woman:"1f9cd-2640",star:"2b50",star2:"1f31f",star_and_crescent:"262a",star_of_david:"2721",star_struck:"1f929",stars:"1f320",station:"1f689",statue_of_liberty:"1f5fd",steam_locomotive:"1f682",stethoscope:"1fa7a",stew:"1f372",stop_button:"23f9",stop_sign:"1f6d1",stopwatch:"23f1",straight_ruler:"1f4cf",strawberry:"1f353",stuck_out_tongue:"1f61b",stuck_out_tongue_closed_eyes:"1f61d",stuck_out_tongue_winking_eye:"1f61c",student:"1f9d1-1f393",studio_microphone:"1f399",stuffed_flatbread:"1f959",sudan:"1f1f8-1f1e9",sun_behind_large_cloud:"1f325",sun_behind_rain_cloud:"1f326",sun_behind_small_cloud:"1f324",sun_with_face:"1f31e",sunflower:"1f33b",sunglasses:"1f60e",sunny:"2600",sunrise:"1f305",sunrise_over_mountains:"1f304",superhero:"1f9b8",superhero_man:"1f9b8-2642",superhero_woman:"1f9b8-2640",supervillain:"1f9b9",supervillain_man:"1f9b9-2642",supervillain_woman:"1f9b9-2640",surfer:"1f3c4",surfing_man:"1f3c4-2642",surfing_woman:"1f3c4-2640",suriname:"1f1f8-1f1f7",sushi:"1f363",suspension_railway:"1f69f",svalbard_jan_mayen:"1f1f8-1f1ef",swan:"1f9a2",swaziland:"1f1f8-1f1ff",sweat:"1f613",sweat_drops:"1f4a6",sweat_smile:"1f605",sweden:"1f1f8-1f1ea",sweet_potato:"1f360",swim_brief:"1fa72",swimmer:"1f3ca",swimming_man:"1f3ca-2642",swimming_woman:"1f3ca-2640",switzerland:"1f1e8-1f1ed",symbols:"1f523",synagogue:"1f54d",syria:"1f1f8-1f1fe",syringe:"1f489","t-rex":"1f996",taco:"1f32e",tada:"1f389",taiwan:"1f1f9-1f1fc",tajikistan:"1f1f9-1f1ef",takeout_box:"1f961",tanabata_tree:"1f38b",tangerine:"1f34a",tanzania:"1f1f9-1f1ff",taurus:"2649",taxi:"1f695",tea:"1f375",teacher:"1f9d1-1f3eb",technologist:"1f9d1-1f4bb",teddy_bear:"1f9f8",telephone:"260e",telephone_receiver:"1f4de",telescope:"1f52d",tennis:"1f3be",tent:"26fa",test_tube:"1f9ea",thailand:"1f1f9-1f1ed",thermometer:"1f321",thinking:"1f914",thought_balloon:"1f4ad",thread:"1f9f5",three:"0033-20e3",thumbsdown:"1f44e",thumbsup:"1f44d",ticket:"1f3ab",tickets:"1f39f",tiger:"1f42f",tiger2:"1f405",timer_clock:"23f2",timor_leste:"1f1f9-1f1f1",tipping_hand_man:"1f481-2642",tipping_hand_person:"1f481",tipping_hand_woman:"1f481-2640",tired_face:"1f62b",tm:"2122",togo:"1f1f9-1f1ec",toilet:"1f6bd",tokelau:"1f1f9-1f1f0",tokyo_tower:"1f5fc",tomato:"1f345",tonga:"1f1f9-1f1f4",tongue:"1f445",toolbox:"1f9f0",tooth:"1f9b7",top:"1f51d",tophat:"1f3a9",tornado:"1f32a",tr:"1f1f9-1f1f7",trackball:"1f5b2",tractor:"1f69c",traffic_light:"1f6a5",train:"1f68b",train2:"1f686",tram:"1f68a",triangular_flag_on_post:"1f6a9",triangular_ruler:"1f4d0",trident:"1f531",trinidad_tobago:"1f1f9-1f1f9",tristan_da_cunha:"1f1f9-1f1e6",triumph:"1f624",trolleybus:"1f68e",trophy:"1f3c6",tropical_drink:"1f379",tropical_fish:"1f420",truck:"1f69a",trumpet:"1f3ba",tshirt:"1f455",tulip:"1f337",tumbler_glass:"1f943",tunisia:"1f1f9-1f1f3",turkey:"1f983",turkmenistan:"1f1f9-1f1f2",turks_caicos_islands:"1f1f9-1f1e8",turtle:"1f422",tuvalu:"1f1f9-1f1fb",tv:"1f4fa",twisted_rightwards_arrows:"1f500",two:"0032-20e3",two_hearts:"1f495",two_men_holding_hands:"1f46c",two_women_holding_hands:"1f46d",u5272:"1f239",u5408:"1f234",u55b6:"1f23a",u6307:"1f22f",u6708:"1f237",u6709:"1f236",u6e80:"1f235",u7121:"1f21a",u7533:"1f238",u7981:"1f232",u7a7a:"1f233",uganda:"1f1fa-1f1ec",uk:"1f1ec-1f1e7",ukraine:"1f1fa-1f1e6",umbrella:"2614",unamused:"1f612",underage:"1f51e",unicorn:"1f984",united_arab_emirates:"1f1e6-1f1ea",united_nations:"1f1fa-1f1f3",unlock:"1f513",up:"1f199",upside_down_face:"1f643",uruguay:"1f1fa-1f1fe",us:"1f1fa-1f1f8",us_outlying_islands:"1f1fa-1f1f2",us_virgin_islands:"1f1fb-1f1ee",uzbekistan:"1f1fa-1f1ff",v:"270c",vampire:"1f9db",vampire_man:"1f9db-2642",vampire_woman:"1f9db-2640",vanuatu:"1f1fb-1f1fa",vatican_city:"1f1fb-1f1e6",venezuela:"1f1fb-1f1ea",vertical_traffic_light:"1f6a6",vhs:"1f4fc",vibration_mode:"1f4f3",video_camera:"1f4f9",video_game:"1f3ae",vietnam:"1f1fb-1f1f3",violin:"1f3bb",virgo:"264d",volcano:"1f30b",volleyball:"1f3d0",vomiting_face:"1f92e",vs:"1f19a",vulcan_salute:"1f596",waffle:"1f9c7",wales:"1f3f4-e0067-e0062-e0077-e006c-e0073-e007f",walking:"1f6b6",walking_man:"1f6b6-2642",walking_woman:"1f6b6-2640",wallis_futuna:"1f1fc-1f1eb",waning_crescent_moon:"1f318",waning_gibbous_moon:"1f316",warning:"26a0",wastebasket:"1f5d1",watch:"231a",water_buffalo:"1f403",water_polo:"1f93d",watermelon:"1f349",wave:"1f44b",wavy_dash:"3030",waxing_crescent_moon:"1f312",waxing_gibbous_moon:"1f314",wc:"1f6be",weary:"1f629",wedding:"1f492",weight_lifting:"1f3cb",weight_lifting_man:"1f3cb-2642",weight_lifting_woman:"1f3cb-2640",western_sahara:"1f1ea-1f1ed",whale:"1f433",whale2:"1f40b",wheel_of_dharma:"2638",wheelchair:"267f",white_check_mark:"2705",white_circle:"26aa",white_flag:"1f3f3",white_flower:"1f4ae",white_haired_man:"1f468-1f9b3",white_haired_woman:"1f469-1f9b3",white_heart:"1f90d",white_large_square:"2b1c",white_medium_small_square:"25fd",white_medium_square:"25fb",white_small_square:"25ab",white_square_button:"1f533",wilted_flower:"1f940",wind_chime:"1f390",wind_face:"1f32c",wine_glass:"1f377",wink:"1f609",wolf:"1f43a",woman:"1f469",woman_artist:"1f469-1f3a8",woman_astronaut:"1f469-1f680",woman_cartwheeling:"1f938-2640",woman_cook:"1f469-1f373",woman_dancing:"1f483",woman_facepalming:"1f926-2640",woman_factory_worker:"1f469-1f3ed",woman_farmer:"1f469-1f33e",woman_firefighter:"1f469-1f692",woman_health_worker:"1f469-2695",woman_in_manual_wheelchair:"1f469-1f9bd",woman_in_motorized_wheelchair:"1f469-1f9bc",woman_judge:"1f469-2696",woman_juggling:"1f939-2640",woman_mechanic:"1f469-1f527",woman_office_worker:"1f469-1f4bc",woman_pilot:"1f469-2708",woman_playing_handball:"1f93e-2640",woman_playing_water_polo:"1f93d-2640",woman_scientist:"1f469-1f52c",woman_shrugging:"1f937-2640",woman_singer:"1f469-1f3a4",woman_student:"1f469-1f393",woman_teacher:"1f469-1f3eb",woman_technologist:"1f469-1f4bb",woman_with_headscarf:"1f9d5",woman_with_probing_cane:"1f469-1f9af",woman_with_turban:"1f473-2640",womans_clothes:"1f45a",womans_hat:"1f452",women_wrestling:"1f93c-2640",womens:"1f6ba",woozy_face:"1f974",world_map:"1f5fa",worried:"1f61f",wrench:"1f527",wrestling:"1f93c",writing_hand:"270d",x:"274c",yarn:"1f9f6",yawning_face:"1f971",yellow_circle:"1f7e1",yellow_heart:"1f49b",yellow_square:"1f7e8",yemen:"1f1fe-1f1ea",yen:"1f4b4",yin_yang:"262f",yo_yo:"1fa80",yum:"1f60b",zambia:"1f1ff-1f1f2",zany_face:"1f92a",zap:"26a1",zebra:"1f993",zero:"0030-20e3",zimbabwe:"1f1ff-1f1fc",zipper_mouth_face:"1f910",zombie:"1f9df",zombie_man:"1f9df-2642",zombie_woman:"1f9df-2640",zzz:"1f4a4"};function Pg(e,t){var n=mn(e);if(zr){var r=zr(e);t&&(r=AA(r).call(r,(function(t){return fA(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kg(e){for(var t=1;t>>0===i))throw new RangeError("Invalid code point: ".concat(i));i<=65535?t=e.push(i):(i-=65536,t=e.push(55296+(i>>10),i%1024+56320)),t>=16383&&(n+=String.fromCharCode.apply(null,e),e.length=0)}return n+String.fromCharCode.apply(null,e)}var Vg=function(e){Bi(n,$u);var t=$g(n);function n(){var e,r=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config;if(ui(this,n),(e=t.call(this,{config:r})).options={useUnicode:!0,upperCase:!1,customHandled:!1,resourceURL:"https://github.githubassets.com/images/icons/emoji/unicode/${code}.png?v8",emojis:Kg({},Rg)},"object"!==Ki(r))return $i(e);var A=r.useUnicode,i=r.customResourceURL,o=r.customRenderer,a=r.upperCase;return e.options.useUnicode="boolean"==typeof A?A:e.options.useUnicode,e.options.upperCase="boolean"==typeof a?a:e.options.upperCase,!1===A&&"string"==typeof i&&(e.options.resourceURL=i),"function"==typeof o&&(e.options.customHandled=!0,e.options.customRenderer=o),e}return di(n,[{key:"makeHtml",value:function(e,t){var n=this;return this.test(e)?e.replace(this.RULE.reg,(function(e,t){var r;if(n.options.customHandled&&"function"==typeof n.options.customRenderer)return n.options.customRenderer(t);var A=n.options.emojis[t];if("string"!=typeof A)return e;if(n.options.useUnicode){var i,o=Wu(i=A.split("-")).call(i,(function(e){return"0x".concat(e)}));return Xg.apply(void 0,Eh(o))}n.options.upperCase&&(A=A.toUpperCase());var a=n.options.resourceURL.replace(/\$\{code\}/g,A);return zi(r='')).call(r,kf(t),'')})):e}},{key:"rule",value:function(){var e={begin:":",content:"([a-zA-Z0-9+_]+?)",end:":"};return e.reg=ru(e,"g"),e}}]),n}();function jg(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}Gi(Vg,"HOOK_NAME","emoji");var Gg=function(e){Bi(n,$u);var t=jg(n);function n(){return ui(this,n),t.apply(this,arguments)}return di(n,[{key:"makeHtml",value:function(e){return this.test(e)?e.replace(this.RULE.reg,'$1$2$3'):e}},{key:"rule",value:function(){var e={begin:"(^| )\\/",end:"\\/( |$)",content:"([^\\n]+?)"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}]),n}();function Wg(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}Gi(Gg,"HOOK_NAME","underline");var Jg=function(e){Bi(n,$u);var t=Wg(n);function n(){return ui(this,n),t.apply(this,arguments)}return di(n,[{key:"makeHtml",value:function(e){return this.test(e)?e.replace(this.RULE.reg,"$1$2$3"):e}},{key:"rule",value:function(){var e={begin:"(^| )==",end:"==( |$|\\n)",content:"([^\\n]+?)"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}]),n}();Gi(Jg,"HOOK_NAME","highLight");var zg=Fi,Zg=Dt.includes,qg=s((function(){return!Array(1).includes()}));Ye({target:"Array",proto:!0,forced:qg},{includes:function(e){return Zg(this,e,arguments.length>1?arguments[1]:void 0)}});var Yg=tA("Array").includes,ep=v("".indexOf);Ye({target:"String",proto:!0,forced:!Xl("includes")},{includes:function(e){return!!~ep(yn(I(this)),yn(Kl(e)),arguments.length>1?arguments[1]:void 0)}});var tp=tA("String").includes,np=Array.prototype,rp=String.prototype,Ap=function(e){var t=e.includes;return e===np||R(np,e)&&t===np.includes?Yg:"string"==typeof e||e===rp||R(rp,e)&&t===rp.includes?tp:t};var ip=function(e,t){for(var n=-1,r=null==e?0:e.length,A=Array(r);++n",keyword:"》",value:">"}],mp=[{icon:"FullWidth",label:"[]",keyword:"【】",value:"[]",goLeft:1},{icon:"FullWidth",label:"【】",keyword:"【",value:"【】",goLeft:1},{icon:"link",label:"Link",keyword:"【】",value:"[title](https://url)",selection:{from:19,to:14}},{icon:"FullWidth",label:"()",keyword:"(",value:"()",goLeft:1},{icon:"FullWidth",label:"()",keyword:"(",value:"()",goLeft:1},{icon:"FullWidth",label:"<>",keyword:"《》",value:"<>",goLeft:1},{icon:"FullWidth",label:"《》",keyword:"《》",value:"《》",goLeft:1},{icon:"FullWidth",label:'""',keyword:"“”",value:'""',goLeft:1},{icon:"FullWidth",label:"“”",keyword:"“”",value:"”“",goLeft:1}],vp=zi(pp).call(pp,mp);var yp=function(){return"CodeMirror.Pass"};function wp(e,t){var n=void 0!==zg&&nc(e)||e["@@iterator"];if(!n){if(Zu(e)||(n=function(e,t){var n;if(!e)return;if("string"==typeof e)return Bp(e,t);var r=vc(n=Object.prototype.toString.call(e)).call(n,8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Nl(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bp(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,A=function(){};return{s:A,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:A}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw i}}}}function Bp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n')).call(s,n)).call(a,r,"
    "):!1===(null===(A=this.suggester[n])||void 0===A?void 0:A.echo)?"".concat(t):this.suggester[n]?r?t+r:"".concat(t):t+r}},{key:"rule",value:function(){var e,t,n;if(!this.suggester||mn(this.suggester).length<=0)return{};var r=Wu(e=mn(this.suggester)).call(e,(function(e){return hp(e)})).join("|");return{reg:new RegExp(zi(t=zi(n="".concat(Au()?"((?'),this.searchCache=!1,this.searchKeyCache=[],this.optionList=[],this.cursorMove=!0,this.suggesterConfig={}}return di(e,[{key:"tryCreatePanel",value:function(){var e,t,n;!this.$suggesterPanel&&Kd()&&document&&(null===(e=document)||void 0===e||null===(t=e.body)||void 0===t||t.appendChild(this.createDom(this.panelWrap)),this.$suggesterPanel=null===(n=document)||void 0===n?void 0:n.querySelector(".cherry-suggester-panel"))}},{key:"hasEditor",value:function(){return!!this.editor&&!!this.editor.editor.display&&!!this.editor.editor.display.wrapper}},{key:"setEditor",value:function(e){this.editor=e}},{key:"setSuggester",value:function(e){this.suggesterConfig=e}},{key:"bindEvent",value:function(){var e=this,t=!1;this.editor.editor.on("change",(function(n,r){t=!0,e.onCodeMirrorChange(n,r)})),this.editor.editor.on("keydown",(function(n,r){t=!0,e.enableRelate()&&e.onKeyDown(n,r)})),this.editor.editor.on("cursorActivity",(function(){t||e.stopRelate(),t=!1}));var n=this.editor.editor.getOption("extraKeys"),r=["Up","Down","Enter"];ti(r).call(r,(function(t){if("function"==typeof n[t]){var r=n[t];n[t]=function(t){if(e.cursorMove){var n=r.call(t,t);if(n)return n}}}else if(n[t]){if("string"==typeof n[t]){var A=n[t];n[t]=function(t){e.cursorMove&&e.editor.editor.execCommand(A)}}}else n[t]=function(){if(e.cursorMove)return yp()}})),this.editor.editor.setOption("extraKeys",n),this.editor.editor.on("scroll",(function(t,n){e.searchCache&&e.relocatePanel(e.editor.editor)})),this.onClickPanelItem()}},{key:"onClickPanelItem",value:function(){var e=this;this.tryCreatePanel(),this.$suggesterPanel.addEventListener("click",(function(t){var n=function(e,t){var n,r=-1;return ti(n=e.childNodes).call(n,(function(e,n){return e===t?r=n:""})),r}(e.$suggesterPanel,t.target);n>-1&&e.pasteSelectResult(n),e.stopRelate()}),!1)}},{key:"showSuggesterPanel",value:function(e){var t=e.left,n=e.top,r=e.items;this.tryCreatePanel(),!this.$suggesterPanel&&Kd()&&(document.body.appendChild(this.createDom(this.panelWrap)),this.$suggesterPanel=document.querySelector(".cherry-suggester-panel")),this.updatePanel(r),this.$suggesterPanel.style.left="".concat(t,"px"),this.$suggesterPanel.style.top="".concat(n,"px"),this.$suggesterPanel.style.display="block",this.$suggesterPanel.style.position="absolute",this.$suggesterPanel.style.zIndex="100"}},{key:"hideSuggesterPanel",value:function(){this.tryCreatePanel(),this.$suggesterPanel&&(this.$suggesterPanel.style.display="none")}},{key:"updatePanel",value:function(e){var t=this;this.tryCreatePanel();var n=Wu(e).call(e,(function(e,n){if("object"===Ki(e)&&null!==e){var r,A=e.label;if(null!=e&&e.icon)A=zi(r='')).call(r,A);return t.renderPanelItem(A,0===n)}return t.renderPanelItem(e,0===n)})).join(""),r=this.suggesterConfig[this.keyword];r&&"function"==typeof r.suggestListRender&&(n=r.suggestListRender.call(this,e)||n),this.$suggesterPanel.innerHTML="","string"==typeof n?this.$suggesterPanel.innerHTML=n:Zu(n)&&n.length>0?ti(n).call(n,(function(e){t.$suggesterPanel.appendChild(e)})):"object"===Ki(n)&&1===n.nodeType&&this.$suggesterPanel.appendChild(n)}},{key:"renderPanelItem",value:function(e,t){return t?'
    '.concat(e,"
    "):'
    '.concat(e,"
    ")}},{key:"createDom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.template||(this.template=document.createElement("div")),this.template.innerHTML=wl(e).call(e);var t=document.createDocumentFragment();return Wu(Array.prototype).call(this.template.childNodes,(function(e,n){t.appendChild(e)})),t}},{key:"relocatePanel",value:function(e){var t=document.querySelector(".CodeMirror-cursors .CodeMirror-cursor");if(t||(t=document.querySelector(".CodeMirror-selected")),!t)return!1;var n=e.getCursor(),r=e.lineInfo(n.line).handle.height,A=t.getBoundingClientRect(),i=A.top+r,o=A.left;this.showSuggesterPanel({left:o,top:i,items:this.optionList})}},{key:"getCursorPos",value:function(e){var t=document.querySelector(".CodeMirror-cursors .CodeMirror-cursor");if(!t)return null;var n=e.getCursor(),r=e.lineInfo(n.line).handle.height,A=t.getBoundingClientRect(),i=A.top+r;return{left:A.left,top:i}}},{key:"startRelate",value:function(e,t,n){this.cursorFrom=n,this.keyword=t,this.searchCache=!0,this.relocatePanel(e)}},{key:"stopRelate",value:function(){this.hideSuggesterPanel(),this.cursorFrom=null,this.cursorTo=null,this.keyword="",this.searchKeyCache=[],this.searchCache=!1,this.cursorMove=!0,this.optionList=[]}},{key:"pasteSelectResult",value:function(e,t){if(this.cursorTo&&this.cursorTo!==this.cursorFrom||(this.cursorTo=JSON.parse(tl(this.cursorFrom))),this.cursorTo){this.cursorTo.ch+=1;var n=this.cursorFrom,r=this.cursorTo;if(this.optionList[e]){var A="";if("object"===Ki(this.optionList[e])&&null!==this.optionList[e]&&"string"==typeof this.optionList[e].value)A=this.optionList[e].value;else if("object"===Ki(this.optionList[e])&&null!==this.optionList[e]&&"function"==typeof this.optionList[e].value)A=this.optionList[e].value();else if("string"==typeof this.optionList[e])A="".concat(this.optionList[e]," ");else{var i;A=zi(i=" ".concat(this.keyword)).call(i,this.optionList[e]," ")}if(A&&this.editor.editor.replaceRange(A,n,r),this.optionList[e].goLeft){var o=this.editor.editor.getCursor();this.editor.editor.setCursor(o.line,o.ch-this.optionList[e].goLeft)}if(this.optionList[e].selection){var a=this.editor.editor.getCursor().line,s=this.editor.editor.getCursor().ch;this.editor.editor.setSelection({line:a,ch:s-this.optionList[e].selection.from},{line:a,ch:s-this.optionList[e].selection.to})}}}}},{key:"findSelectedItemIndex",value:function(){return Hu(Array.prototype).call(this.$suggesterPanel.childNodes,(function(e){return e.classList.contains("cherry-suggester-panel__item--selected")}))}},{key:"enableRelate",value:function(){return this.searchCache}},{key:"onCodeMirrorChange",value:function(e,t){var n=this,r=t.text,A=t.from,i=t.to,o=t.origin,a=1===r.length?r[0]:"";if(!this.enableRelate()&&this.suggesterConfig[a]&&this.startRelate(e,a,A),this.enableRelate()&&(a||"+delete"===o)){var s;if(this.cursorTo=i,a)this.searchKeyCache.push(a);else if("+delete"===o&&(this.searchKeyCache.pop(),0===this.searchKeyCache.length))return void this.stopRelate();"function"==typeof(null===(s=this.suggesterConfig[this.keyword])||void 0===s?void 0:s.suggestList)&&this.suggesterConfig[this.keyword].suggestList(this.searchKeyCache.join(""),(function(e){!1!==e?(n.optionList=e&&e.length?e:[],n.updatePanel(n.optionList)):n.stopRelate()}))}}},{key:"onKeyDown",value:function(e,t){var n,r=this;if(this.tryCreatePanel(),!this.$suggesterPanel)return!1;var A=t.keyCode;if(Ap(n=[38,40]).call(n,A)){if(0===this.optionList.length)return void lo((function(){r.stopRelate()}),0);this.cursorMove=!1;var i=this.$suggesterPanel.querySelector(".cherry-suggester-panel__item--selected"),o=null;38!==A||i.previousElementSibling?40!==A||i.nextElementSibling?38===A?o=i.previousElementSibling:40===A&&(o=i.nextElementSibling):o=this.$suggesterPanel.firstElementChild:o=this.$suggesterPanel.lastElementChild,i.classList.remove("cherry-suggester-panel__item--selected"),o.classList.add("cherry-suggester-panel__item--selected")}else 13===A?(t.stopPropagation(),this.cursorMove=!1,this.pasteSelectResult(this.findSelectedItemIndex(),t),e.focus(),lo((function(){r.stopRelate()}),0)):27!==A&&37!==A&&39!==A||(t.stopPropagation(),e.focus(),lo((function(){r.stopRelate()}),0))}}]),e}();function kp(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var Tp=function(e){Bi(n,$u);var t=kp(n);function n(){return ui(this,n),t.apply(this,arguments)}return di(n,[{key:"makeHtml",value:function(e){return this.test(e)?e.replace(this.RULE.reg,"$1$2$3$4"):e}},{key:"rule",value:function(){var e={begin:"(^| )\\{",end:"\\}( |$)",content:"([^\n]+?)\\|([^\n]+?)"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}]),n}();function xp(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}Gi(Tp,"HOOK_NAME","ruby");var Ep=function(e){Bi(n,Sf);var t=xp(n);function n(e){var r;return ui(this,n),(r=t.call(this,{needCache:!0})).initBrReg(e.globalConfig.classicBr),r}return di(n,[{key:"makeHtml",value:function(e,t){var n=this;return e.replace(this.RULE.reg,(function(e,r,A,i){var o,a,s,l,c,u=n.getLineCount(e,r),f=n.$engine.md5(e),h=n.$getPanelInfo(A,i,t),d=h.title,g=h.body,p=h.appendStyle,m=h.className;return Ju(e,n.pushCache(zi(o=zi(a=zi(s=zi(l=zi(c='
    ")).call(a,d)).call(o,g,"
    "),f,u))}))}},{key:"$getClassByType",value:function(e){return/(left|right|center)/i.test(e)?"cherry-text-align cherry-text-align__".concat(e):"cherry-panel cherry-panel__".concat(e)}},{key:"$getPanelInfo",value:function(e,t,n){var r,A=this,i={type:this.$getTargetType(e),title:n(this.$getTitle(e)).html,body:t,appendStyle:"",className:""};i.className=this.$getClassByType(i.type),/(left|right|center)/i.test(i.type)&&(i.appendStyle='style="text-align:'.concat(i.type,';"')),i.title=zi(r='
    ')).call(r,i.title,"
    ");var o=function(e){var t,r;if(""===wl(e).call(e))return"";var i=n(e).html,o="p";return new RegExp("<(".concat(Bf,")[^>]*>"),"i").test(i)&&(o="div"),zi(t=zi(r="<".concat(o,">")).call(r,A.$cleanParagraph(i),"")},a="";return a=this.isContainsCache(i.body)?this.makeExcludingCached(i.body,o):o(i.body),i.body='
    '.concat(a,"
    "),i}},{key:"$getTitle",value:function(e){var t=wl(e).call(e);return/\s/.test(t)?t.replace(/[^\s]+\s/,""):""}},{key:"$getTargetType",value:function(e){var t=/\s/.test(wl(e).call(e))?wl(e).call(e).replace(/\s.*$/,""):e;switch(wl(t).call(t).toLowerCase()){case"primary":case"p":default:return"primary";case"info":case"i":return"info";case"warning":case"w":return"warning";case"danger":case"d":return"danger";case"success":case"s":return"success";case"right":case"r":return"right";case"center":case"c":return"center";case"left":case"l":return"left"}}},{key:"rule",value:function(){return yu()}}]),n}();function Fp(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}Gi(Ep,"HOOK_NAME","panel");var Up=function(e){Bi(n,Sf);var t=Fp(n);function n(){return ui(this,n),t.call(this,{needCache:!0})}return di(n,[{key:"makeHtml",value:function(e,t){var n=this;return e.replace(this.RULE.reg,(function(e,r,A,i,o){var a,s,l,c=n.getLineCount(e,r),u=n.$engine.md5(e),f=n.$getDetailInfo(A,i,o,t),h=f.type,d=f.html;return Ju(e,n.pushCache(zi(a=zi(s=zi(l='
    ')).call(a,d,"
    "),u,c))}))}},{key:"$getDetailInfo",value:function(e,t,n,r){var A=this,i=/\n\s*(\+\+|\+\+-)\s*[^\n]+\n/.test(n)?"multiple":"single",o=n.split(/\n\s*(\+\+[-]{0,1}\s*[^\n]+)\n/),a="-"===e,s=t,l="";return"multiple"===i?ti(o).call(o,(function(e){if(/\+\+/.test(e))return a=/\+\+-/.test(e),s=e.replace(/\+\+[-]{0,1}\s*([^\n]+)$/,"$1"),!0;l+=A.$getDetailHtml(a,s,e,r)})):l=this.$getDetailHtml(a,s,n,r),{type:i,html:l}}},{key:"$getDetailHtml",value:function(e,t,n,r){var A=this,i="
    "),o=function(e){var t,n;if(""===wl(e).call(e))return"";var i=r(e).html,o="p";return new RegExp("<(".concat(Bf,")[^>]*>"),"i").test(i)&&(o="div"),zi(t=zi(n="<".concat(o,">")).call(n,A.$cleanParagraph(i),"")};i+="".concat(r(t).html,"");var a="";return a=this.isContainsCache(n)?this.makeExcludingCached(n,o):o(n),i+='
    '.concat(a,"
    "),i+="
    "}},{key:"rule",value:function(){return wu()}}]),n}();Gi(Up,"HOOK_NAME","detail");var Sp=[Zh,Yh,mg,yg,Ng,Fg,Sg,Td,Xd,Pd,sg,xg,Qd,jd,ig,Up,Ep,dd,Vg,Zd,cd,cg,fd,_h,Ih,Oh,jh,Xh,Tp,Kh,Gg,Jg,Cp],Lp=function(){function e(t,n){ui(this,e),this.$cherry=n,ci(this,"_cherry",{get:function(){return zc.warn("`_engine._cherry` is deprecated. Use `$engine.$cherry` instead."),this.$cherry}}),this.initMath(t),this.$configInit(t),this.hookCenter=new Th(Sp,t,n),this.hooks=this.hookCenter.getHookList(),this.md5Cache={},this.md5StrMap={},this.markdownParams=t,this.currentStrMd5=[],this.htmlWhiteListAppend=t.engine.global.htmlWhiteList}return di(e,[{key:"initMath",value:function(e){var t=e.externals,n=e.engine.syntax,r=n.mathBlock.plugins;if(Kd()&&(n.mathBlock.src||n.inlineMath.src)&&!t.MathJax&&!window.MathJax){!function(e){if(Kd()){var t=e?["input/asciimath","[tex]/noerrors","[tex]/cancel","[tex]/color","[tex]/boldsymbol"]:[];window.MathJax={startup:{elements:[".Cherry-Math",".Cherry-InlineMath"],typeset:!0},tex:{inlineMath:[["$","$"],["\\(","\\)"]],displayMath:[["$$","$$"],["\\[","\\]"]],tags:"ams",packages:{"[+]":["noerrors","cancel","color"]},macros:{bm:["{\\boldsymbol{#1}}",1]}},options:{skipHtmlTags:["script","noscript","style","textarea","pre","code","a"],ignoreHtmlClass:"tex2jax_ignore",processHtmlClass:"tex2jax_process",enableMenu:!1},loader:{load:t}}}}(r);var A=document.createElement("script");A.src=n.mathBlock.src?n.mathBlock.src:n.inlineMath.src,A.async=!0,A.src&&document.head.appendChild(A)}}},{key:"$configInit",value:function(e){if(e.hooksConfig&&mh(e.hooksConfig.hooksList,Array))for(var t=0;t>>0:i>>>0;(a=A.exec(t))&&!((s=a.index+a[0].length)>f&&(c.push(t.slice(f,a.index)),!r&&a.length>1&&a[0].replace(o,(function(){for(var t=1;t1&&a.index=i));)A.lastIndex===a.index&&A.lastIndex++;return f===t.length?!l&&A.test("")||c.push(""):c.push(t.slice(f)),c.length>i?c.slice(0,i):c},t}(),Jp=/([\.#]?[a-zA-Z0-9\u007F-\uFFFF_:-]+)/,zp=/^\.|#/,Zp=function(e,t){if(!e)return"DIV";var n,r,A,i,o=!t.hasOwnProperty("id"),a=Wp(e,Jp),s=null;zp.test(a[1])&&(s="DIV");for(i=0;i=A.length?t.length:A[s],g=0;g=d&&a.push(p)}for(var m,v=a.slice(),y=0,w=[],B=[],b=0;bl?s:l,u=0;u>0],i===o)return A>=t&&A<=n;if(An))return!0;o=r-1}}return!1}function Km(e,t){return e>t?1:-1}var $m=function(e,t){if(Op(e)&&Op(t))return"name"in e&&"name"in t?e.id===t.id:e.init===t.init;return!1};var Xm=function(e,t,n){var r=e.type,A=e.vNode,i=e.patch;switch(r){case um.REMOVE:return function(e,t){var n=e.parentNode;n&&n.removeChild(e);return Vm(e,t),null}(t,A);case um.INSERT:return function(e,t,n){var r=n.render(t,n);e&&e.appendChild(r);return e}(t,i,n);case um.VTEXT:return function(e,t,n,r){var A;if(3===e.nodeType)e.replaceData(0,e.length,n.text),A=e;else{var i=e.parentNode;A=r.render(n,r),i&&A!==e&&i.replaceChild(A,e)}return A}(t,0,i,n);case um.WIDGET:return function(e,t,n,r){var A,i=$m(t,n);A=i?n.update(t,e)||e:r.render(n,r);var o=e.parentNode;o&&A!==e&&o.replaceChild(A,e);i||Vm(e,t);return A}(t,A,i,n);case um.VNODE:return function(e,t,n,r){var A=e.parentNode,i=r.render(n,r);A&&i!==e&&A.replaceChild(i,e);return i}(t,0,i,n);case um.ORDER:return function(e,t){for(var n,r,A,i=e.childNodes,o={},a=0;a=s++?null:i[A.to])}(t,i),t;case um.PROPS:return Hm(t,i,A.properties),t;case um.THUNK:return function(e,t){e&&t&&e!==t&&e.parentNode&&e.parentNode.replaceChild(t,e);return t}(t,n.patch(t,i,n));default:return t}};function Vm(e,t){"function"==typeof t.destroy&&Op(t)&&t.destroy(e)}var jm=function e(t,n,r){return(r=r||{}).patch=r.patch&&r.patch!==e?r.patch:Gm,r.render=r.render||Dm,r.patch(t,n,r)};function Gm(e,t,n){var r=function(e){var t=[];for(var n in e)"a"!==n&&t.push(Number(n));return t}(t);if(0===r.length)return e;var A=Nm(e,t.a,r),i=e.ownerDocument;n.document||i===Lm||(n.document=i);for(var o=0;o=r&&d>=n)return o[a]=s,this.$backtraceSnakes(o,n,r,a)}o[a]=s}return[]}},{key:"$backtraceSnakes",value:function(e,t,n,r){for(var A=[],i={x:n,y:t},o=r;o>0;o--){var a=e[o],s=e[o-1],l=i.x-i.y,c=a[l],u=l===-o||l!==o&&s[l+1]>s[l-1],f=u?l+1:l-1,h=s[f],d=h-f,g=u?h:h+1;A.unshift({xStart:h,xMid:g,xEnd:c}),i.x=h,i.y=d}return A}},{key:"assembleResult",value:function(e,t,n){var r,A=this,i="color: gray",o="",a=[],s=0,l=[],c={},u={},f={};return ti(e).call(e,(function(e,r){var h=e.xStart;if(0===r&&0!==e.xStart)for(var d=0;d>1,e+=ov(e/t);e>455;)e=ov(e/35),r+=36;return ov(r+36*e/(e+38))},pv=function(e){var t=[];e=function(e){for(var t=[],n=0,r=e.length;n=55296&&A<=56319&&n=i&&rov((ev-o)/u))throw Av(rv);for(o+=(c-i)*u,i=c,n=0;nev)throw Av(rv);if(r==i){for(var f=o,h=36;;){var d=h<=a?1:h>=a+26?26:h-a;if(f0;)e[r]=e[--r];r!==i++&&(e[r]=n)}return e},wv=function(e,t,n,r){for(var A=t.length,i=n.length,o=0,a=0;o0?arguments[0]:void 0))},iy=Ay.prototype;if(Gf(iy,{append:function(e,t){no(arguments.length,2);var n=Tv(this);Pv(n.entries,{key:yn(e),value:yn(t)}),n.updateURL()},delete:function(e){no(arguments.length,1);for(var t=Tv(this),n=t.entries,r=yn(e),A=0;At.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=Tv(this).entries,r=Oe(e,arguments.length>1?arguments[1]:void 0),A=0;A1?sy(arguments[1]):{})}}),y(Sv)){var ly=function(e){return Kf(this,Hv),new Sv(e,arguments.length>1?sy(arguments[1]):{})};Hv.constructor=ly,ly.prototype=Hv,Ye({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ly})}}var cy,uy={URLSearchParams:Ay,getState:Tv},fy=_i.codeAt,hy=Jn.set,dy=Jn.getterFor("URL"),gy=uy.URLSearchParams,py=uy.getState,my=a.URL,vy=a.TypeError,yy=a.parseInt,wy=Math.floor,By=Math.pow,by=v("".charAt),Cy=v(/./.exec),Qy=v([].join),ky=v(1..toString),Ty=v([].pop),xy=v([].push),Ey=v("".replace),Fy=v([].shift),Uy=v("".split),Sy=v("".slice),Ly=v("".toLowerCase),Hy=v([].unshift),Iy="Invalid scheme",My="Invalid host",_y="Invalid port",Dy=/[a-z]/i,Oy=/[\d+-.a-z]/i,Ny=/\d/,Ry=/^0x/i,Py=/^[0-7]+$/,Ky=/^\d+$/,$y=/^[\da-f]+$/i,Xy=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Vy=/[\0\t\n\r #/:<>?@[\\\]^|]/,jy=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,Gy=/[\t\n\r]/g,Wy=function(e){var t,n,r,A;if("number"==typeof e){for(t=[],n=0;n<4;n++)Hy(t,e%256),e=wy(e/256);return Qy(t,".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,A=0,i=0;i<8;i++)0!==e[i]?(A>n&&(t=r,n=A),r=null,A=0):(null===r&&(r=i),++A);return A>n&&(t=r,n=A),t}(e),n=0;n<8;n++)A&&0===e[n]||(A&&(A=!1),r===n?(t+=n?":":"::",A=!0):(t+=ky(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},Jy={},zy=qs({},Jy,{" ":1,'"':1,"<":1,">":1,"`":1}),Zy=qs({},zy,{"#":1,"?":1,"{":1,"}":1}),qy=qs({},Zy,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Yy=function(e,t){var n=fy(e,0);return n>32&&n<127&&!ce(t,e)?e:encodeURIComponent(e)},ew={ftp:21,file:null,http:80,https:443,ws:80,wss:443},tw=function(e,t){var n;return 2==e.length&&Cy(Dy,by(e,0))&&(":"==(n=by(e,1))||!t&&"|"==n)},nw=function(e){var t;return e.length>1&&tw(Sy(e,0,2))&&(2==e.length||"/"===(t=by(e,2))||"\\"===t||"?"===t||"#"===t)},rw=function(e){return"."===e||"%2e"===Ly(e)},Aw={},iw={},ow={},aw={},sw={},lw={},cw={},uw={},fw={},hw={},dw={},gw={},pw={},mw={},vw={},yw={},ww={},Bw={},bw={},Cw={},Qw={},kw=function(e,t,n){var r,A,i,o=yn(e);if(t){if(A=this.parse(o))throw vy(A);this.searchParams=null}else{if(void 0!==n&&(r=new kw(n,!0)),A=this.parse(o,null,r))throw vy(A);(i=py(new gy)).bindURL(this),this.searchParams=i}};kw.prototype={type:"URL",parse:function(e,t,n){var r,A,i,o,a,s=this,l=t||Aw,c=0,u="",f=!1,h=!1,d=!1;for(e=yn(e),t||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,e=Ey(e,jy,"")),e=Ey(e,Gy,""),r=Sl(e);c<=r.length;){switch(A=r[c],l){case Aw:if(!A||!Cy(Dy,A)){if(t)return Iy;l=ow;continue}u+=Ly(A),l=iw;break;case iw:if(A&&(Cy(Oy,A)||"+"==A||"-"==A||"."==A))u+=Ly(A);else{if(":"!=A){if(t)return Iy;u="",l=ow,c=0;continue}if(t&&(s.isSpecial()!=ce(ew,u)||"file"==u&&(s.includesCredentials()||null!==s.port)||"file"==s.scheme&&!s.host))return;if(s.scheme=u,t)return void(s.isSpecial()&&ew[s.scheme]==s.port&&(s.port=null));u="","file"==s.scheme?l=mw:s.isSpecial()&&n&&n.scheme==s.scheme?l=aw:s.isSpecial()?l=uw:"/"==r[c+1]?(l=sw,c++):(s.cannotBeABaseURL=!0,xy(s.path,""),l=bw)}break;case ow:if(!n||n.cannotBeABaseURL&&"#"!=A)return Iy;if(n.cannotBeABaseURL&&"#"==A){s.scheme=n.scheme,s.path=kn(n.path),s.query=n.query,s.fragment="",s.cannotBeABaseURL=!0,l=Qw;break}l="file"==n.scheme?mw:lw;continue;case aw:if("/"!=A||"/"!=r[c+1]){l=lw;continue}l=fw,c++;break;case sw:if("/"==A){l=hw;break}l=Bw;continue;case lw:if(s.scheme=n.scheme,A==cy)s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=kn(n.path),s.query=n.query;else if("/"==A||"\\"==A&&s.isSpecial())l=cw;else if("?"==A)s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=kn(n.path),s.query="",l=Cw;else{if("#"!=A){s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=kn(n.path),s.path.length--,l=Bw;continue}s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=kn(n.path),s.query=n.query,s.fragment="",l=Qw}break;case cw:if(!s.isSpecial()||"/"!=A&&"\\"!=A){if("/"!=A){s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,l=Bw;continue}l=hw}else l=fw;break;case uw:if(l=fw,"/"!=A||"/"!=by(u,c+1))continue;c++;break;case fw:if("/"!=A&&"\\"!=A){l=hw;continue}break;case hw:if("@"==A){f&&(u="%40"+u),f=!0,i=Sl(u);for(var g=0;g65535)return _y;s.port=s.isSpecial()&&v===ew[s.scheme]?null:v,u=""}if(t)return;l=ww;continue}return _y}u+=A;break;case mw:if(s.scheme="file","/"==A||"\\"==A)l=vw;else{if(!n||"file"!=n.scheme){l=Bw;continue}if(A==cy)s.host=n.host,s.path=kn(n.path),s.query=n.query;else if("?"==A)s.host=n.host,s.path=kn(n.path),s.query="",l=Cw;else{if("#"!=A){nw(Qy(kn(r,c),""))||(s.host=n.host,s.path=kn(n.path),s.shortenPath()),l=Bw;continue}s.host=n.host,s.path=kn(n.path),s.query=n.query,s.fragment="",l=Qw}}break;case vw:if("/"==A||"\\"==A){l=yw;break}n&&"file"==n.scheme&&!nw(Qy(kn(r,c),""))&&(tw(n.path[0],!0)?xy(s.path,n.path[0]):s.host=n.host),l=Bw;continue;case yw:if(A==cy||"/"==A||"\\"==A||"?"==A||"#"==A){if(!t&&tw(u))l=Bw;else if(""==u){if(s.host="",t)return;l=ww}else{if(o=s.parseHost(u))return o;if("localhost"==s.host&&(s.host=""),t)return;u="",l=ww}continue}u+=A;break;case ww:if(s.isSpecial()){if(l=Bw,"/"!=A&&"\\"!=A)continue}else if(t||"?"!=A)if(t||"#"!=A){if(A!=cy&&(l=Bw,"/"!=A))continue}else s.fragment="",l=Qw;else s.query="",l=Cw;break;case Bw:if(A==cy||"/"==A||"\\"==A&&s.isSpecial()||!t&&("?"==A||"#"==A)){if(".."===(a=Ly(a=u))||"%2e."===a||".%2e"===a||"%2e%2e"===a?(s.shortenPath(),"/"==A||"\\"==A&&s.isSpecial()||xy(s.path,"")):rw(u)?"/"==A||"\\"==A&&s.isSpecial()||xy(s.path,""):("file"==s.scheme&&!s.path.length&&tw(u)&&(s.host&&(s.host=""),u=by(u,0)+":"),xy(s.path,u)),u="","file"==s.scheme&&(A==cy||"?"==A||"#"==A))for(;s.path.length>1&&""===s.path[0];)Fy(s.path);"?"==A?(s.query="",l=Cw):"#"==A&&(s.fragment="",l=Qw)}else u+=Yy(A,Zy);break;case bw:"?"==A?(s.query="",l=Cw):"#"==A?(s.fragment="",l=Qw):A!=cy&&(s.path[0]+=Yy(A,Jy));break;case Cw:t||"#"!=A?A!=cy&&("'"==A&&s.isSpecial()?s.query+="%27":s.query+="#"==A?"%23":Yy(A,Jy)):(s.fragment="",l=Qw);break;case Qw:A!=cy&&(s.fragment+=Yy(A,zy))}c++}},parseHost:function(e){var t,n,r;if("["==by(e,0)){if("]"!=by(e,e.length-1))return My;if(t=function(e){var t,n,r,A,i,o,a,s=[0,0,0,0,0,0,0,0],l=0,c=null,u=0,f=function(){return by(e,u)};if(":"==f()){if(":"!=by(e,1))return;u+=2,c=++l}for(;f();){if(8==l)return;if(":"!=f()){for(t=n=0;n<4&&Cy($y,f());)t=16*t+yy(f(),16),u++,n++;if("."==f()){if(0==n)return;if(u-=n,l>6)return;for(r=0;f();){if(A=null,r>0){if(!("."==f()&&r<4))return;u++}if(!Cy(Ny,f()))return;for(;Cy(Ny,f());){if(i=yy(f(),10),null===A)A=i;else{if(0==A)return;A=10*A+i}if(A>255)return;u++}s[l]=256*s[l]+A,2!=++r&&4!=r||l++}if(4!=r)return;break}if(":"==f()){if(u++,!f())return}else if(f())return;s[l++]=t}else{if(null!==c)return;u++,c=++l}}if(null!==c)for(o=l-c,l=7;0!=l&&o>0;)a=s[l],s[l--]=s[c+o-1],s[c+--o]=a;else if(8!=l)return;return s}(Sy(e,1,-1)),!t)return My;this.host=t}else if(this.isSpecial()){if(e=function(e){var t,n,r=[],A=fv(uv(hv(e),nv,"."),".");for(t=0;t4)return e;for(n=[],r=0;r1&&"0"==by(A,0)&&(i=Cy(Ry,A)?16:8,A=Sy(A,8==i?1:2)),""===A)o=0;else{if(!Cy(10==i?Ky:8==i?Py:$y,A))return e;o=yy(A,i)}xy(n,o)}for(r=0;r=By(256,5-t))return null}else if(o>255)return null;for(a=Ty(n),r=0;r1?arguments[1]:void 0,r=hy(t,new kw(e,!1,n));w||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},xw=Tw.prototype,Ew=function(e,t){return{get:function(){return dy(this)[e]()},set:t&&function(e){return dy(this)[t](e)},configurable:!0,enumerable:!0}};if(w&&(Ym(xw,"href",Ew("serialize","setHref")),Ym(xw,"origin",Ew("getOrigin")),Ym(xw,"protocol",Ew("getProtocol","setProtocol")),Ym(xw,"username",Ew("getUsername","setUsername")),Ym(xw,"password",Ew("getPassword","setPassword")),Ym(xw,"host",Ew("getHost","setHost")),Ym(xw,"hostname",Ew("getHostname","setHostname")),Ym(xw,"port",Ew("getPort","setPort")),Ym(xw,"pathname",Ew("getPathname","setPathname")),Ym(xw,"search",Ew("getSearch","setSearch")),Ym(xw,"searchParams",Ew("getSearchParams")),Ym(xw,"hash",Ew("getHash","setHash"))),Un(xw,"toJSON",(function(){return dy(this).serialize()}),{enumerable:!0}),Un(xw,"toString",(function(){return dy(this).serialize()}),{enumerable:!0}),my){var Fw=my.createObjectURL,Uw=my.revokeObjectURL;Fw&&Un(Tw,"createObjectURL",Oe(Fw,my)),Uw&&Un(Tw,"revokeObjectURL",Oe(Uw,my))}On(Tw,"URL"),Ye({global:!0,constructor:!0,forced:!qm,sham:!w},{URL:Tw});var Sw=D.URL,Lw=r((function(e,t){e.exports=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};function t(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var n=function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&A[A.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!A||i[1]>A[0]&&i[1]=55296&&A<=56319&&n>10),o%1024+56320)),(A+1===n||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f="undefined"==typeof Uint8Array?[]:new Uint8Array(256),h=0;h>4,c[s++]=(15&r)<<4|A>>2,c[s++]=(3&A)<<6|63&i;return l},v=function(e){for(var t=e.length,n=[],r=0;r>w,Q=(1<>w)+32,T=65536>>B,x=(1<=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>w])<>w)])<>B),t=this.index[t],t+=e>>w&x,t=((t=this.index[t])<M?(A.push(!0),o-=M):A.push(!1),-1!==["normal","auto","loose"].indexOf(t)&&-1!==[8208,8211,12316,12448].indexOf(e))return r.push(i),n.push(z);if(o===N||o===V){if(0===i)return r.push(i),n.push(ce);var a=n[i-1];return-1===He.indexOf(a)?(r.push(r[i-1]),n.push(a)):(r.push(i),n.push(ce))}return r.push(i),o===ue?n.push("strict"===t?te:me):o===be||o===le?n.push(ce):o===Ce?e>=131072&&e<=196605||e>=196608&&e<=262141?n.push(me):n.push(ce):void n.push(o)})),[r,n,A]},De=function(e,t,n,r){var A=r[n];if(Array.isArray(e)?-1!==e.indexOf(A):e===A)for(var i=n;i<=r.length;){if((s=r[++i])===t)return!0;if(s!==X)break}if(A===X)for(i=n;i>0;){var o=r[--i];if(Array.isArray(e)?-1!==e.indexOf(o):e===o)for(var a=n;a<=r.length;){var s;if((s=r[++a])===t)return!0;if(s!==X)break}if(o!==X)break}return!1},Oe=function(e,t){for(var n=e;n>=0;){var r=t[n];if(r!==X)return r;n--}return 0},Ne=function(e,t,n,r,A){if(0===n[r])return Te;var i=r-1;if(Array.isArray(A)&&!0===A[i])return Te;var o=i-1,a=i+1,s=t[i],l=o>=0?t[o]:0,c=t[a];if(s===D&&c===O)return Te;if(-1!==Ue.indexOf(s))return ke;if(-1!==Ue.indexOf(c))return Te;if(-1!==Se.indexOf(c))return Te;if(Oe(i,t)===K)return xe;if(Ee.get(e[i])===V)return Te;if((s===fe||s===he)&&Ee.get(e[a])===V)return Te;if(s===P||c===P)return Te;if(s===$)return Te;if(-1===[X,G,J].indexOf(s)&&c===$)return Te;if(-1!==[Z,q,Y,Ae,se].indexOf(c))return Te;if(Oe(i,t)===ne)return Te;if(De(re,ne,i,t))return Te;if(De([Z,q],te,i,t))return Te;if(De(j,j,i,t))return Te;if(s===X)return xe;if(s===re||c===re)return Te;if(c===z||s===z)return xe;if(-1!==[G,J,te].indexOf(c)||s===W)return Te;if(l===pe&&-1!==Me.indexOf(s))return Te;if(s===se&&c===pe)return Te;if(c===ee)return Te;if(-1!==Fe.indexOf(c)&&s===ie||-1!==Fe.indexOf(s)&&c===ie)return Te;if(s===ae&&-1!==[me,fe,he].indexOf(c)||-1!==[me,fe,he].indexOf(s)&&c===oe)return Te;if(-1!==Fe.indexOf(s)&&-1!==Le.indexOf(c)||-1!==Le.indexOf(s)&&-1!==Fe.indexOf(c))return Te;if(-1!==[ae,oe].indexOf(s)&&(c===ie||-1!==[ne,J].indexOf(c)&&t[a+1]===ie)||-1!==[ne,J].indexOf(s)&&c===ie||s===ie&&-1!==[ie,se,Ae].indexOf(c))return Te;if(-1!==[ie,se,Ae,Z,q].indexOf(c))for(var u=i;u>=0;){if((f=t[u])===ie)return Te;if(-1===[se,Ae].indexOf(f))break;u--}if(-1!==[ae,oe].indexOf(c))for(u=-1!==[Z,q].indexOf(s)?o:i;u>=0;){var f;if((f=t[u])===ie)return Te;if(-1===[se,Ae].indexOf(f))break;u--}if(ve===s&&-1!==[ve,ye,de,ge].indexOf(c)||-1!==[ye,de].indexOf(s)&&-1!==[ye,we].indexOf(c)||-1!==[we,ge].indexOf(s)&&c===we)return Te;if(-1!==Ie.indexOf(s)&&-1!==[ee,oe].indexOf(c)||-1!==Ie.indexOf(c)&&s===ae)return Te;if(-1!==Fe.indexOf(s)&&-1!==Fe.indexOf(c))return Te;if(s===Ae&&-1!==Fe.indexOf(c))return Te;if(-1!==Fe.concat(ie).indexOf(s)&&c===ne&&-1===Qe.indexOf(e[a])||-1!==Fe.concat(ie).indexOf(c)&&s===q)return Te;if(s===Be&&c===Be){for(var h=n[i],d=1;h>0&&t[--h]===Be;)d++;if(d%2!=0)return Te}return s===fe&&c===he?Te:xe},Re=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var n=_e(e,t.lineBreak),r=n[0],A=n[1],i=n[2];"break-all"!==t.wordBreak&&"break-word"!==t.wordBreak||(A=A.map((function(e){return-1!==[ie,ce,be].indexOf(e)?me:e})));var o="keep-all"===t.wordBreak?i.map((function(t,n){return t&&e[n]>=19968&&e[n]<=40959})):void 0;return[r,A,o]},Pe=function(){function e(e,t,n,r){this.codePoints=e,this.required=t===ke,this.start=n,this.end=r}return e.prototype.slice=function(){return c.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),Ke=function(e,t){var n=l(e),r=Re(n,t),A=r[0],i=r[1],o=r[2],a=n.length,s=0,c=0;return{next:function(){if(c>=a)return{done:!0,value:null};for(var e=Te;c=Mt&&e<=57},Gt=function(e){return e>=55296&&e<=57343},Wt=function(e){return jt(e)||e>=Pt&&e<=$t||e>=_t&&e<=Ot},Jt=function(e){return e>=_t&&e<=Rt},zt=function(e){return e>=Pt&&e<=Vt},Zt=function(e){return Jt(e)||zt(e)},qt=function(e){return e>=wt},Yt=function(e){return e===Ge||e===ze||e===Ze},en=function(e){return Zt(e)||qt(e)||e===ot},tn=function(e){return en(e)||jt(e)||e===at},nn=function(e){return e>=Et&&e<=Ft||e===Ut||e>=St&&e<=Lt||e===Ht},rn=function(e,t){return e===Je&&t!==Ge},An=function(e,t,n){return e===at?en(t)||rn(t,n):!!en(e)||!(e!==Je||!rn(e,t))},on=function(e,t,n){return e===Ct||e===at?!!jt(t)||t===xt&&jt(n):jt(e===xt?t:e)},an=function(e){var t=0,n=1;e[t]!==Ct&&e[t]!==at||(e[t]===at&&(n=-1),t++);for(var r=[];jt(e[t]);)r.push(e[t++]);var A=r.length?parseInt(c.apply(void 0,r),10):0;e[t]===xt&&t++;for(var i=[];jt(e[t]);)i.push(e[t++]);var o=i.length,a=o?parseInt(c.apply(void 0,i),10):0;e[t]!==Kt&&e[t]!==Dt||t++;var s=1;e[t]!==Ct&&e[t]!==at||(e[t]===at&&(s=-1),t++);for(var l=[];jt(e[t]);)l.push(e[t++]);var u=l.length?parseInt(c.apply(void 0,l),10):0;return n*(A+a*Math.pow(10,-o))*Math.pow(10,s*u)},sn={type:2},ln={type:3},cn={type:4},un={type:13},fn={type:8},hn={type:21},dn={type:9},gn={type:10},pn={type:11},mn={type:12},vn={type:14},yn={type:23},wn={type:1},Bn={type:25},bn={type:24},Cn={type:26},Qn={type:27},kn={type:28},Tn={type:29},xn={type:31},En={type:32},Fn=function(){function e(){this._value=[]}return e.prototype.write=function(e){this._value=this._value.concat(l(e))},e.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==En;)e.push(t),t=this.consumeToken();return e},e.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case qe:return this.consumeStringToken(qe);case et:var t=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(tn(t)||rn(n,r)){var A=An(t,n,r)?Xe:$e;return{type:5,value:this.consumeName(),flags:A}}break;case tt:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),un;break;case rt:return this.consumeStringToken(rt);case At:return sn;case it:return ln;case bt:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),vn;break;case Ct:if(on(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case Qt:return cn;case at:var i=e,o=this.peekCodePoint(0),a=this.peekCodePoint(1);if(on(i,o,a))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(An(i,o,a))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(o===at&&a===ct)return this.consumeCodePoint(),this.consumeCodePoint(),bn;break;case xt:if(on(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case We:if(this.peekCodePoint(0)===bt)for(this.consumeCodePoint();;){var s=this.consumeCodePoint();if(s===bt&&(s=this.consumeCodePoint())===We)return this.consumeToken();if(s===It)return this.consumeToken()}break;case kt:return Cn;case Tt:return Qn;case lt:if(this.peekCodePoint(0)===st&&this.peekCodePoint(1)===at&&this.peekCodePoint(2)===at)return this.consumeCodePoint(),this.consumeCodePoint(),Bn;break;case ut:var l=this.peekCodePoint(0),u=this.peekCodePoint(1),f=this.peekCodePoint(2);if(An(l,u,f))return{type:7,value:this.consumeName()};break;case ft:return kn;case Je:if(rn(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case ht:return Tn;case dt:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),fn;break;case gt:return pn;case mt:return mn;case Nt:case Xt:var h=this.peekCodePoint(0),d=this.peekCodePoint(1);return h!==Ct||!Wt(d)&&d!==pt||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case vt:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),dn;if(this.peekCodePoint(0)===vt)return this.consumeCodePoint(),hn;break;case yt:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),gn;break;case It:return En}return Yt(e)?(this.consumeWhiteSpace(),xn):jt(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):en(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:c(e)}},e.prototype.consumeCodePoint=function(){var e=this._value.shift();return void 0===e?-1:e},e.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},e.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},e.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();Wt(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var n=!1;t===pt&&e.length<6;)e.push(t),t=this.consumeCodePoint(),n=!0;if(n)return{type:30,start:parseInt(c.apply(void 0,e.map((function(e){return e===pt?Mt:e}))),16),end:parseInt(c.apply(void 0,e.map((function(e){return e===pt?$t:e}))),16)};var r=parseInt(c.apply(void 0,e),16);if(this.peekCodePoint(0)===at&&Wt(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var A=[];Wt(t)&&A.length<6;)A.push(t),t=this.consumeCodePoint();return{type:30,start:r,end:parseInt(c.apply(void 0,A),16)}}return{type:30,start:r,end:r}},e.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return"url"===e.toLowerCase()&&this.peekCodePoint(0)===At?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===At?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},e.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===It)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===rt||t===qe){var n=this.consumeStringToken(this.consumeCodePoint());return 0===n.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===It||this.peekCodePoint(0)===it)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),yn)}for(;;){var r=this.consumeCodePoint();if(r===It||r===it)return{type:22,value:c.apply(void 0,e)};if(Yt(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===It||this.peekCodePoint(0)===it?(this.consumeCodePoint(),{type:22,value:c.apply(void 0,e)}):(this.consumeBadUrlRemnants(),yn);if(r===qe||r===rt||r===At||nn(r))return this.consumeBadUrlRemnants(),yn;if(r===Je){if(!rn(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),yn;e.push(this.consumeEscapedCodePoint())}else e.push(r)}},e.prototype.consumeWhiteSpace=function(){for(;Yt(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===it||e===It)return;rn(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(e){for(var t=5e4,n="";e>0;){var r=Math.min(t,e);n+=c.apply(void 0,this._value.splice(0,r)),e-=r}return this._value.shift(),n},e.prototype.consumeStringToken=function(e){for(var t="",n=0;;){var r=this._value[n];if(r===It||void 0===r||r===e)return{type:0,value:t+=this.consumeStringSlice(n)};if(r===Ge)return this._value.splice(0,n),wn;if(r===Je){var A=this._value[n+1];A!==It&&void 0!==A&&(A===Ge?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):rn(r,A)&&(t+=this.consumeStringSlice(n),t+=c(this.consumeEscapedCodePoint()),n=-1))}n++}},e.prototype.consumeNumber=function(){var e=[],t=Ve,n=this.peekCodePoint(0);for(n!==Ct&&n!==at||e.push(this.consumeCodePoint());jt(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(n===xt&&jt(r))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=je;jt(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);var A=this.peekCodePoint(2);if((n===Kt||n===Dt)&&((r===Ct||r===at)&&jt(A)||jt(r)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=je;jt(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[an(e),t]},e.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],n=e[1],r=this.peekCodePoint(0),A=this.peekCodePoint(1),i=this.peekCodePoint(2);return An(r,A,i)?{type:15,number:t,flags:n,unit:this.consumeName()}:r===nt?(this.consumeCodePoint(),{type:16,number:t,flags:n}):{type:17,number:t,flags:n}},e.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(Wt(e)){for(var t=c(e);Wt(this.peekCodePoint(0))&&t.length<6;)t+=c(this.consumeCodePoint());Yt(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(t,16);return 0===n||Gt(n)||n>1114111?Bt:n}return e===It?Bt:e},e.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(tn(t))e+=c(t);else{if(!rn(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),e;e+=c(this.consumeEscapedCodePoint())}}},e}(),Un=function(){function e(e){this._tokens=e}return e.create=function(t){var n=new Fn;return n.write(t),new e(n.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var e=this.consumeToken();31===e.type;)e=this.consumeToken();if(32===e.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do{e=this.consumeToken()}while(31===e.type);if(32===e.type)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(32===t.type)return e;e.push(t),e.push()}},e.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},e.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},n=this.consumeToken();;){if(32===n.type||Nn(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}},e.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:18};;){var n=this.consumeToken();if(32===n.type||3===n.type)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var e=this._tokens.shift();return void 0===e?En:e},e.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},e}(),Sn=function(e){return 15===e.type},Ln=function(e){return 17===e.type},Hn=function(e){return 20===e.type},In=function(e){return 0===e.type},Mn=function(e,t){return Hn(e)&&e.value===t},_n=function(e){return 31!==e.type},Dn=function(e){return 31!==e.type&&4!==e.type},On=function(e){var t=[],n=[];return e.forEach((function(e){if(4===e.type){if(0===n.length)throw new Error("Error parsing function args, zero tokens for arg");return t.push(n),void(n=[])}31!==e.type&&n.push(e)})),n.length&&t.push(n),t},Nn=function(e,t){return 11===t&&12===e.type||28===t&&29===e.type||2===t&&3===e.type},Rn=function(e){return 17===e.type||15===e.type},Pn=function(e){return 16===e.type||Rn(e)},Kn=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},$n={type:17,number:0,flags:Ve},Xn={type:16,number:50,flags:Ve},Vn={type:16,number:100,flags:Ve},jn=function(e,t,n){var r=e[0],A=e[1];return[Gn(r,t),Gn(void 0!==A?A:r,n)]},Gn=function(e,t){if(16===e.type)return e.number/100*t;if(Sn(e))switch(e.unit){case"rem":case"em":return 16*e.number;default:return e.number}return e.number},Wn="deg",Jn="grad",zn="rad",Zn="turn",qn={name:"angle",parse:function(e,t){if(15===t.type)switch(t.unit){case Wn:return Math.PI*t.number/180;case Jn:return Math.PI/200*t.number;case zn:return t.number;case Zn:return 2*Math.PI*t.number}throw new Error("Unsupported angle type")}},Yn=function(e){return 15===e.type&&(e.unit===Wn||e.unit===Jn||e.unit===zn||e.unit===Zn)},er=function(e){switch(e.filter(Hn).map((function(e){return e.value})).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[$n,$n];case"to top":case"bottom":return tr(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[$n,Vn];case"to right":case"left":return tr(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Vn,Vn];case"to bottom":case"top":return tr(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Vn,$n];case"to left":case"right":return tr(270)}return 0},tr=function(e){return Math.PI*e/180},nr={name:"color",parse:function(e,t){if(18===t.type){var n=cr[t.name];if(void 0===n)throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return n(e,t.values)}if(5===t.type){if(3===t.value.length){var r=t.value.substring(0,1),A=t.value.substring(1,2),i=t.value.substring(2,3);return ir(parseInt(r+r,16),parseInt(A+A,16),parseInt(i+i,16),1)}if(4===t.value.length){r=t.value.substring(0,1),A=t.value.substring(1,2),i=t.value.substring(2,3);var o=t.value.substring(3,4);return ir(parseInt(r+r,16),parseInt(A+A,16),parseInt(i+i,16),parseInt(o+o,16)/255)}if(6===t.value.length)return r=t.value.substring(0,2),A=t.value.substring(2,4),i=t.value.substring(4,6),ir(parseInt(r,16),parseInt(A,16),parseInt(i,16),1);if(8===t.value.length)return r=t.value.substring(0,2),A=t.value.substring(2,4),i=t.value.substring(4,6),o=t.value.substring(6,8),ir(parseInt(r,16),parseInt(A,16),parseInt(i,16),parseInt(o,16)/255)}if(20===t.type){var a=fr[t.value.toUpperCase()];if(void 0!==a)return a}return fr.TRANSPARENT}},rr=function(e){return 0==(255&e)},Ar=function(e){var t=255&e,n=255&e>>8,r=255&e>>16,A=255&e>>24;return t<255?"rgba("+A+","+r+","+n+","+t/255+")":"rgb("+A+","+r+","+n+")"},ir=function(e,t,n,r){return(e<<24|t<<16|n<<8|Math.round(255*r)<<0)>>>0},or=function(e,t){if(17===e.type)return e.number;if(16===e.type){var n=3===t?1:255;return 3===t?e.number/100*n:Math.round(e.number/100*n)}return 0},ar=function(e,t){var n=t.filter(Dn);if(3===n.length){var r=n.map(or),A=r[0],i=r[1],o=r[2];return ir(A,i,o,1)}if(4===n.length){var a=n.map(or),s=(A=a[0],i=a[1],o=a[2],a[3]);return ir(A,i,o,s)}return 0};function sr(e,t,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(t-e)*n*6+e:n<.5?t:n<2/3?6*(t-e)*(2/3-n)+e:e}var lr=function(e,t){var n=t.filter(Dn),r=n[0],A=n[1],i=n[2],o=n[3],a=(17===r.type?tr(r.number):qn.parse(e,r))/(2*Math.PI),s=Pn(A)?A.number/100:0,l=Pn(i)?i.number/100:0,c=void 0!==o&&Pn(o)?Gn(o,1):1;if(0===s)return ir(255*l,255*l,255*l,1);var u=l<=.5?l*(s+1):l+s-l*s,f=2*l-u,h=sr(f,u,a+1/3),d=sr(f,u,a),g=sr(f,u,a-1/3);return ir(255*h,255*d,255*g,c)},cr={hsl:lr,hsla:lr,rgb:ar,rgba:ar},ur=function(e,t){return nr.parse(e,Un.create(t).parseComponentValue())},fr={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},hr={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map((function(e){if(Hn(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},dr={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},gr=function(e,t){var n=nr.parse(e,t[0]),r=t[1];return r&&Pn(r)?{color:n,stop:r}:{color:n,stop:null}},pr=function(e,t){var n=e[0],r=e[e.length-1];null===n.stop&&(n.stop=$n),null===r.stop&&(r.stop=Vn);for(var A=[],i=0,o=0;oi?A.push(s):A.push(i),i=s}else A.push(null)}var l=null;for(o=0;oe.optimumDistance)?{optimumCorner:t,optimumDistance:a}:e}),{optimumDistance:A?1/0:-1/0,optimumCorner:null}).optimumCorner},Br=function(e,t,n,r,A){var i=0,o=0;switch(e.size){case 0:0===e.shape?i=o=Math.min(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-A)):1===e.shape&&(i=Math.min(Math.abs(t),Math.abs(t-r)),o=Math.min(Math.abs(n),Math.abs(n-A)));break;case 2:if(0===e.shape)i=o=Math.min(yr(t,n),yr(t,n-A),yr(t-r,n),yr(t-r,n-A));else if(1===e.shape){var a=Math.min(Math.abs(n),Math.abs(n-A))/Math.min(Math.abs(t),Math.abs(t-r)),s=wr(r,A,t,n,!0),l=s[0],c=s[1];o=a*(i=yr(l-t,(c-n)/a))}break;case 1:0===e.shape?i=o=Math.max(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-A)):1===e.shape&&(i=Math.max(Math.abs(t),Math.abs(t-r)),o=Math.max(Math.abs(n),Math.abs(n-A)));break;case 3:if(0===e.shape)i=o=Math.max(yr(t,n),yr(t,n-A),yr(t-r,n),yr(t-r,n-A));else if(1===e.shape){a=Math.max(Math.abs(n),Math.abs(n-A))/Math.max(Math.abs(t),Math.abs(t-r));var u=wr(r,A,t,n,!1);l=u[0],c=u[1],o=a*(i=yr(l-t,(c-n)/a))}}return Array.isArray(e.size)&&(i=Gn(e.size[0],r),o=2===e.size.length?Gn(e.size[1],A):i),[i,o]},br=function(e,t){var n=tr(180),r=[];return On(t).forEach((function(t,A){if(0===A){var i=t[0];if(20===i.type&&-1!==["top","left","right","bottom"].indexOf(i.value))return void(n=er(t));if(Yn(i))return void(n=(qn.parse(e,i)+tr(270))%tr(360))}var o=gr(e,t);r.push(o)})),{angle:n,stops:r,type:1}},Cr=function(e,t){var n=tr(180),r=[],A=1,i=0,o=3,a=[];return On(t).forEach((function(t,n){var i=t[0];if(0===n){if(Hn(i)&&"linear"===i.value)return void(A=1);if(Hn(i)&&"radial"===i.value)return void(A=2)}if(18===i.type)if("from"===i.name){var o=nr.parse(e,i.values[0]);r.push({stop:$n,color:o})}else if("to"===i.name)o=nr.parse(e,i.values[0]),r.push({stop:Vn,color:o});else if("color-stop"===i.name){var a=i.values.filter(Dn);if(2===a.length){o=nr.parse(e,a[1]);var s=a[0];Ln(s)&&r.push({stop:{type:16,number:100*s.number,flags:s.flags},color:o})}}})),1===A?{angle:(n+tr(180))%tr(360),stops:r,type:A}:{size:o,shape:i,stops:r,position:a,type:A}},Qr="closest-side",kr="farthest-side",Tr="closest-corner",xr="farthest-corner",Er="circle",Fr="ellipse",Ur="cover",Sr="contain",Lr=function(e,t){var n=0,r=3,A=[],i=[];return On(t).forEach((function(t,o){var a=!0;if(0===o){var s=!1;a=t.reduce((function(e,t){if(s)if(Hn(t))switch(t.value){case"center":return i.push(Xn),e;case"top":case"left":return i.push($n),e;case"right":case"bottom":return i.push(Vn),e}else(Pn(t)||Rn(t))&&i.push(t);else if(Hn(t))switch(t.value){case Er:return n=0,!1;case Fr:return n=1,!1;case"at":return s=!0,!1;case Qr:return r=0,!1;case Ur:case kr:return r=1,!1;case Sr:case Tr:return r=2,!1;case xr:return r=3,!1}else if(Rn(t)||Pn(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e}),a)}if(a){var l=gr(e,t);A.push(l)}})),{size:r,shape:n,stops:A,position:i,type:2}},Hr=function(e,t){var n=0,r=3,A=[],i=[];return On(t).forEach((function(t,o){var a=!0;if(0===o?a=t.reduce((function(e,t){if(Hn(t))switch(t.value){case"center":return i.push(Xn),!1;case"top":case"left":return i.push($n),!1;case"right":case"bottom":return i.push(Vn),!1}else if(Pn(t)||Rn(t))return i.push(t),!1;return e}),a):1===o&&(a=t.reduce((function(e,t){if(Hn(t))switch(t.value){case Er:return n=0,!1;case Fr:return n=1,!1;case Sr:case Qr:return r=0,!1;case kr:return r=1,!1;case Tr:return r=2,!1;case Ur:case xr:return r=3,!1}else if(Rn(t)||Pn(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e}),a)),a){var s=gr(e,t);A.push(s)}})),{size:r,shape:n,stops:A,position:i,type:2}},Ir=function(e){return 1===e.type},Mr=function(e){return 2===e.type},_r={name:"image",parse:function(e,t){if(22===t.type){var n={url:t.value,type:0};return e.cache.addImage(t.value),n}if(18===t.type){var r=Nr[t.name];if(void 0===r)throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return r(e,t.values)}throw new Error("Unsupported image type "+t.type)}};function Dr(e){return!(20===e.type&&"none"===e.value||18===e.type&&!Nr[e.name])}var Or,Nr={"linear-gradient":function(e,t){var n=tr(180),r=[];return On(t).forEach((function(t,A){if(0===A){var i=t[0];if(20===i.type&&"to"===i.value)return void(n=er(t));if(Yn(i))return void(n=qn.parse(e,i))}var o=gr(e,t);r.push(o)})),{angle:n,stops:r,type:1}},"-moz-linear-gradient":br,"-ms-linear-gradient":br,"-o-linear-gradient":br,"-webkit-linear-gradient":br,"radial-gradient":Lr,"-moz-radial-gradient":Hr,"-ms-radial-gradient":Hr,"-o-radial-gradient":Hr,"-webkit-radial-gradient":Hr,"-webkit-gradient":Cr},Rr={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(0===t.length)return[];var n=t[0];return 20===n.type&&"none"===n.value?[]:t.filter((function(e){return Dn(e)&&Dr(e)})).map((function(t){return _r.parse(e,t)}))}},Pr={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map((function(e){if(Hn(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Kr={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return On(t).map((function(e){return e.filter(Pn)})).map(Kn)}},$r={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return On(t).map((function(e){return e.filter(Hn).map((function(e){return e.value})).join(" ")})).map(Xr)}},Xr=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}};!function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"}(Or||(Or={}));var Vr,jr={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return On(t).map((function(e){return e.filter(Gr)}))}},Gr=function(e){return Hn(e)||Pn(e)},Wr=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Jr=Wr("top"),zr=Wr("right"),Zr=Wr("bottom"),qr=Wr("left"),Yr=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return Kn(t.filter(Pn))}}},eA=Yr("top-left"),tA=Yr("top-right"),nA=Yr("bottom-right"),rA=Yr("bottom-left"),AA=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},iA=AA("top"),oA=AA("right"),aA=AA("bottom"),sA=AA("left"),lA=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Sn(t)?t.number:0}}},cA=lA("top"),uA=lA("right"),fA=lA("bottom"),hA=lA("left"),dA={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},gA={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){return"rtl"===t?1:0}},pA={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(Hn).reduce((function(e,t){return e|mA(t.value)}),0)}},mA=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},vA={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},yA={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,t){return 20===t.type&&"normal"===t.value?0:17===t.type||15===t.type?t.number:0}};!function(e){e.NORMAL="normal",e.STRICT="strict"}(Vr||(Vr={}));var wA,BA={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){return"strict"===t?Vr.STRICT:Vr.NORMAL}},bA={name:"line-height",initialValue:"normal",prefix:!1,type:4},CA=function(e,t){return Hn(e)&&"normal"===e.value?1.2*t:17===e.type?t*e.number:Pn(e)?Gn(e,t):t},QA={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return 20===t.type&&"none"===t.value?null:_r.parse(e,t)}},kA={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,t){return"inside"===t?0:1}},TA={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},xA=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},EA=xA("top"),FA=xA("right"),UA=xA("bottom"),SA=xA("left"),LA={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(Hn).map((function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}}))}},HA={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){return"break-word"===t?"break-word":"normal"}},IA=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},MA=IA("top"),_A=IA("right"),DA=IA("bottom"),OA=IA("left"),NA={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,t){switch(t){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},RA={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},PA={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&Mn(t[0],"none")?[]:On(t).map((function(t){for(var n={color:fr.TRANSPARENT,offsetX:$n,offsetY:$n,blur:$n},r=0,A=0;A1?1:0],this.overflowWrap=bi(e,HA,t.overflowWrap),this.paddingTop=bi(e,MA,t.paddingTop),this.paddingRight=bi(e,_A,t.paddingRight),this.paddingBottom=bi(e,DA,t.paddingBottom),this.paddingLeft=bi(e,OA,t.paddingLeft),this.paintOrder=bi(e,pi,t.paintOrder),this.position=bi(e,RA,t.position),this.textAlign=bi(e,NA,t.textAlign),this.textDecorationColor=bi(e,ti,null!==(n=t.textDecorationColor)&&void 0!==n?n:t.color),this.textDecorationLine=bi(e,ni,null!==(r=t.textDecorationLine)&&void 0!==r?r:t.textDecoration),this.textShadow=bi(e,PA,t.textShadow),this.textTransform=bi(e,KA,t.textTransform),this.transform=bi(e,$A,t.transform),this.transformOrigin=bi(e,JA,t.transformOrigin),this.visibility=bi(e,zA,t.visibility),this.webkitTextStrokeColor=bi(e,mi,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=bi(e,vi,t.webkitTextStrokeWidth),this.wordBreak=bi(e,ZA,t.wordBreak),this.zIndex=bi(e,qA,t.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},e.prototype.isTransparent=function(){return rr(this.backgroundColor)},e.prototype.isTransformed=function(){return null!==this.transform},e.prototype.isPositioned=function(){return 0!==this.position},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return 0!==this.float},e.prototype.isInlineLevel=function(){return si(this.display,4)||si(this.display,33554432)||si(this.display,268435456)||si(this.display,536870912)||si(this.display,67108864)||si(this.display,134217728)},e}(),wi=function(){function e(e,t){this.content=bi(e,li,t.content),this.quotes=bi(e,hi,t.quotes)}return e}(),Bi=function(){function e(e,t){this.counterIncrement=bi(e,ci,t.counterIncrement),this.counterReset=bi(e,ui,t.counterReset)}return e}(),bi=function(e,t,n){var r=new Fn,A=null!=n?n.toString():t.initialValue;r.write(A);var i=new Un(r.read());switch(t.type){case 2:var o=i.parseComponentValue();return t.parse(e,Hn(o)?o.value:t.initialValue);case 0:return t.parse(e,i.parseComponentValue());case 1:return t.parse(e,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(t.format){case"angle":return qn.parse(e,i.parseComponentValue());case"color":return nr.parse(e,i.parseComponentValue());case"image":return _r.parse(e,i.parseComponentValue());case"length":var a=i.parseComponentValue();return Rn(a)?a:$n;case"length-percentage":var s=i.parseComponentValue();return Pn(s)?s:$n;case"time":return YA.parse(e,i.parseComponentValue())}}},Ci="data-html2canvas-debug",Qi=function(e){switch(e.getAttribute(Ci)){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},ki=function(e,t){var n=Qi(e);return 1===n||t===n},Ti=function(){function e(e,t){this.context=e,this.textNodes=[],this.elements=[],this.flags=0,ki(t,3),this.styles=new yi(e,window.getComputedStyle(t,null)),da(t)&&(this.styles.animationDuration.some((function(e){return e>0}))&&(t.style.animationDuration="0s"),null!==this.styles.transform&&(t.style.transform="none")),this.bounds=a(this.context,t),ki(t,4)&&(this.flags|=16)}return e}(),xi="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Ei="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Fi="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Ui=0;Ui>4,c[s++]=(15&r)<<4|A>>2,c[s++]=(3&A)<<6|63&i;return l},Li=function(e){for(var t=e.length,n=[],r=0;r>Ii,Oi=(1<>Ii)+32,Ri=65536>>Mi,Pi=(1<=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>Ii])<<_i)+(e&Oi),this.data[t];if(e<=65535)return t=((t=this.index[Di+(e-55296>>Ii)])<<_i)+(e&Oi),this.data[t];if(e>Mi),t=this.index[t],t+=e>>Ii&Pi,t=((t=this.index[t])<<_i)+(e&Oi),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),ji="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Gi="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Wi=0;Wi=55296&&A<=56319&&n>10),o%1024+56320)),(A+1===n||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},fo=Xi(xi),ho="×",go="÷",po=function(e){return fo.get(e)},mo=function(e,t,n){var r=n-2,A=t[r],i=t[n-1],o=t[n];if(i===Zi&&o===qi)return ho;if(i===Zi||i===qi||i===Yi)return go;if(o===Zi||o===qi||o===Yi)return go;if(i===no&&-1!==[no,ro,io,oo].indexOf(o))return ho;if(!(i!==io&&i!==ro||o!==ro&&o!==Ao))return ho;if((i===oo||i===Ao)&&o===Ao)return ho;if(o===ao||o===eo)return ho;if(o===to)return ho;if(i===zi)return ho;if(i===ao&&o===so){for(;A===eo;)A=t[--r];if(A===so)return ho}if(i===lo&&o===lo){for(var a=0;A===lo;)a++,A=t[--r];if(a%2==0)return ho}return go},vo=function(e){var t=co(e),n=t.length,r=0,A=0,i=t.map(po);return{next:function(){if(r>=n)return{done:!0,value:null};for(var e=ho;ro.x||A.y>o.y;return o=A,0===t||a}));return e.body.removeChild(t),a},bo=function(){return void 0!==(new Image).crossOrigin},Co=function(){return"string"==typeof(new XMLHttpRequest).responseType},Qo=function(e){var t=new Image,n=e.createElement("canvas"),r=n.getContext("2d");if(!r)return!1;t.src="data:image/svg+xml,";try{r.drawImage(t,0,0),n.toDataURL()}catch(e){return!1}return!0},ko=function(e){return 0===e[0]&&255===e[1]&&0===e[2]&&255===e[3]},To=function(e){var t=e.createElement("canvas"),n=100;t.width=n,t.height=n;var r=t.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,n,n);var A=new Image,i=t.toDataURL();A.src=i;var o=xo(n,n,0,0,A);return r.fillStyle="red",r.fillRect(0,0,n,n),Eo(o).then((function(t){r.drawImage(t,0,0);var A=r.getImageData(0,0,n,n).data;r.fillStyle="red",r.fillRect(0,0,n,n);var o=e.createElement("div");return o.style.backgroundImage="url("+i+")",o.style.height=n+"px",ko(A)?Eo(xo(n,n,0,0,o)):Promise.reject(!1)})).then((function(e){return r.drawImage(e,0,0),ko(r.getImageData(0,0,n,n).data)})).catch((function(){return!1}))},xo=function(e,t,n,r,A){var i="http://www.w3.org/2000/svg",o=document.createElementNS(i,"svg"),a=document.createElementNS(i,"foreignObject");return o.setAttributeNS(null,"width",e.toString()),o.setAttributeNS(null,"height",t.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",n.toString()),a.setAttributeNS(null,"y",r.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(a),a.appendChild(A),o},Eo=function(e){return new Promise((function(t,n){var r=new Image;r.onload=function(){return t(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))}))},Fo={get SUPPORT_RANGE_BOUNDS(){var e=wo(document);return Object.defineProperty(Fo,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=Fo.SUPPORT_RANGE_BOUNDS&&Bo(document);return Object.defineProperty(Fo,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=Qo(document);return Object.defineProperty(Fo,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e="function"==typeof Array.from&&"function"==typeof window.fetch?To(document):Promise.resolve(!1);return Object.defineProperty(Fo,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=bo();return Object.defineProperty(Fo,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=Co();return Object.defineProperty(Fo,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Fo,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(Fo,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},Uo=function(){function e(e,t){this.text=e,this.bounds=t}return e}(),So=function(e,t,n,r){var A=_o(t,n),i=[],a=0;return A.forEach((function(t){if(n.textDecorationLine.length||t.trim().length>0)if(Fo.SUPPORT_RANGE_BOUNDS){var A=Ho(r,a,t.length).getClientRects();if(A.length>1){var s=Io(t),l=0;s.forEach((function(t){i.push(new Uo(t,o.fromDOMRectList(e,Ho(r,l+a,t.length).getClientRects()))),l+=t.length}))}else i.push(new Uo(t,o.fromDOMRectList(e,A)))}else{var c=r.splitText(t.length);i.push(new Uo(t,Lo(e,r))),r=c}else Fo.SUPPORT_RANGE_BOUNDS||(r=r.splitText(t.length));a+=t.length})),i},Lo=function(e,t){var n=t.ownerDocument;if(n){var r=n.createElement("html2canvaswrapper");r.appendChild(t.cloneNode(!0));var A=t.parentNode;if(A){A.replaceChild(r,t);var i=a(e,r);return r.firstChild&&A.replaceChild(r.firstChild,r),i}}return o.EMPTY},Ho=function(e,t,n){var r=e.ownerDocument;if(!r)throw new Error("Node has no owner document");var A=r.createRange();return A.setStart(e,t),A.setEnd(e,t+n),A},Io=function(e){if(Fo.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).map((function(e){return e.segment}))}return yo(e)},Mo=function(e,t){if(Fo.SUPPORT_NATIVE_TEXT_SEGMENTATION){var n=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(n.segment(e)).map((function(e){return e.segment}))}return Oo(e,t)},_o=function(e,t){return 0!==t.letterSpacing?Io(e):Mo(e,t)},Do=[32,160,4961,65792,65793,4153,4241],Oo=function(e,t){for(var n,r=Ke(e,{lineBreak:t.lineBreak,wordBreak:"break-word"===t.overflowWrap?"break-word":t.wordBreak}),A=[],i=function(){if(n.value){var e=n.value.slice(),t=l(e),r="";t.forEach((function(e){-1===Do.indexOf(e)?r+=c(e):(r.length&&A.push(r),A.push(c(e)),r="")})),r.length&&A.push(r)}};!(n=r.next()).done;)i();return A},No=function(){function e(e,t,n){this.text=Ro(t.data,n.textTransform),this.textBounds=So(e,this.text,n,t)}return e}(),Ro=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(Po,Ko);case 2:return e.toUpperCase();default:return e}},Po=/(^|\s|:|-|\(|\))([a-z])/g,Ko=function(e,t,n){return e.length>0?t+n.toUpperCase():e},$o=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.src=n.currentSrc||n.src,r.intrinsicWidth=n.naturalWidth,r.intrinsicHeight=n.naturalHeight,r.context.cache.addImage(r.src),r}return t(n,e),n}(Ti),Xo=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.canvas=n,r.intrinsicWidth=n.width,r.intrinsicHeight=n.height,r}return t(n,e),n}(Ti),Vo=function(e){function n(t,n){var r=e.call(this,t,n)||this,A=new XMLSerializer,i=a(t,n);return n.setAttribute("width",i.width+"px"),n.setAttribute("height",i.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(A.serializeToString(n)),r.intrinsicWidth=n.width.baseVal.value,r.intrinsicHeight=n.height.baseVal.value,r.context.cache.addImage(r.svg),r}return t(n,e),n}(Ti),jo=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.value=n.value,r}return t(n,e),n}(Ti),Go=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.start=n.start,r.reversed="boolean"==typeof n.reversed&&!0===n.reversed,r}return t(n,e),n}(Ti),Wo=[{type:15,flags:0,unit:"px",number:3}],Jo=[{type:16,flags:0,number:50}],zo=function(e){return e.width>e.height?new o(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width0)n.textNodes.push(new No(e,A,n.styles));else if(ha(A))if(Ua(A)&&A.assignedNodes)A.assignedNodes().forEach((function(t){return aa(e,t,n,r)}));else{var o=sa(e,A);o.styles.isVisible()&&(ca(A,o,r)?o.flags|=4:ua(o.styles)&&(o.flags|=2),-1!==oa.indexOf(A.tagName)&&(o.flags|=8),n.elements.push(o),A.slot,A.shadowRoot?aa(e,A.shadowRoot,o,r):Ea(A)||wa(A)||Fa(A)||aa(e,A,o,r))}},sa=function(e,t){return Qa(t)?new $o(e,t):ba(t)?new Xo(e,t):wa(t)?new Vo(e,t):pa(t)?new jo(e,t):ma(t)?new Go(e,t):va(t)?new na(e,t):Fa(t)?new ra(e,t):Ea(t)?new Aa(e,t):ka(t)?new ia(e,t):new Ti(e,t)},la=function(e,t){var n=sa(e,t);return n.flags|=4,aa(e,t,n,n),n},ca=function(e,t,n){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||Ba(e)&&n.styles.isTransparent()},ua=function(e){return e.isPositioned()||e.isFloating()},fa=function(e){return e.nodeType===Node.TEXT_NODE},ha=function(e){return e.nodeType===Node.ELEMENT_NODE},da=function(e){return ha(e)&&void 0!==e.style&&!ga(e)},ga=function(e){return"object"==typeof e.className},pa=function(e){return"LI"===e.tagName},ma=function(e){return"OL"===e.tagName},va=function(e){return"INPUT"===e.tagName},ya=function(e){return"HTML"===e.tagName},wa=function(e){return"svg"===e.tagName},Ba=function(e){return"BODY"===e.tagName},ba=function(e){return"CANVAS"===e.tagName},Ca=function(e){return"VIDEO"===e.tagName},Qa=function(e){return"IMG"===e.tagName},ka=function(e){return"IFRAME"===e.tagName},Ta=function(e){return"STYLE"===e.tagName},xa=function(e){return"SCRIPT"===e.tagName},Ea=function(e){return"TEXTAREA"===e.tagName},Fa=function(e){return"SELECT"===e.tagName},Ua=function(e){return"SLOT"===e.tagName},Sa=function(e){return e.tagName.indexOf("-")>0},La=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(e){var t=this.counters[e];return t||[]},e.prototype.pop=function(e){var t=this;e.forEach((function(e){return t.counters[e].pop()}))},e.prototype.parse=function(e){var t=this,n=e.counterIncrement,r=e.counterReset,A=!0;null!==n&&n.forEach((function(e){var n=t.counters[e.counter];n&&0!==e.increment&&(A=!1,n.length||n.push(1),n[Math.max(0,n.length-1)]+=e.increment)}));var i=[];return A&&r.forEach((function(e){var n=t.counters[e.counter];i.push(e.counter),n||(n=t.counters[e.counter]=[]),n.push(e.reset)})),i},e}(),Ha={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Ia={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Ma={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},_a={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Da=function(e,t,n,r,A,i){return en?za(e,A,i.length>0):r.integers.reduce((function(t,n,A){for(;e>=n;)e-=n,t+=r.values[A];return t}),"")+i},Oa=function(e,t,n,r){var A="";do{n||e--,A=r(e)+A,e/=t}while(e*t>=t);return A},Na=function(e,t,n,r,A){var i=n-t+1;return(e<0?"-":"")+(Oa(Math.abs(e),i,r,(function(e){return c(Math.floor(e%i)+t)}))+A)},Ra=function(e,t,n){void 0===n&&(n=". ");var r=t.length;return Oa(Math.abs(e),r,!1,(function(e){return t[Math.floor(e%r)]}))+n},Pa=1,Ka=2,$a=4,Xa=8,Va=function(e,t,n,r,A,i){if(e<-9999||e>9999)return za(e,4,A.length>0);var o=Math.abs(e),a=A;if(0===o)return t[0]+a;for(var s=0;o>0&&s<=4;s++){var l=o%10;0===l&&si(i,Pa)&&""!==a?a=t[l]+a:l>1||1===l&&0===s||1===l&&1===s&&si(i,Ka)||1===l&&1===s&&si(i,$a)&&e>100||1===l&&s>1&&si(i,Xa)?a=t[l]+(s>0?n[s-1]:"")+a:1===l&&s>0&&(a=n[s-1]+a),o=Math.floor(o/10)}return(e<0?r:"")+a},ja="十百千萬",Ga="拾佰仟萬",Wa="マイナス",Ja="마이너스",za=function(e,t,n){var r=n?". ":"",A=n?"、":"",i=n?", ":"",o=n?" ":"";switch(t){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:var a=Na(e,48,57,!0,r);return a.length<4?"0"+a:a;case 4:return Ra(e,"〇一二三四五六七八九",A);case 6:return Da(e,1,3999,Ha,3,r).toLowerCase();case 7:return Da(e,1,3999,Ha,3,r);case 8:return Na(e,945,969,!1,r);case 9:return Na(e,97,122,!1,r);case 10:return Na(e,65,90,!1,r);case 11:return Na(e,1632,1641,!0,r);case 12:case 49:return Da(e,1,9999,Ia,3,r);case 35:return Da(e,1,9999,Ia,3,r).toLowerCase();case 13:return Na(e,2534,2543,!0,r);case 14:case 30:return Na(e,6112,6121,!0,r);case 15:return Ra(e,"子丑寅卯辰巳午未申酉戌亥",A);case 16:return Ra(e,"甲乙丙丁戊己庚辛壬癸",A);case 17:case 48:return Va(e,"零一二三四五六七八九",ja,"負",A,Ka|$a|Xa);case 47:return Va(e,"零壹貳參肆伍陸柒捌玖",Ga,"負",A,Pa|Ka|$a|Xa);case 42:return Va(e,"零一二三四五六七八九",ja,"负",A,Ka|$a|Xa);case 41:return Va(e,"零壹贰叁肆伍陆柒捌玖",Ga,"负",A,Pa|Ka|$a|Xa);case 26:return Va(e,"〇一二三四五六七八九","十百千万",Wa,A,0);case 25:return Va(e,"零壱弐参四伍六七八九","拾百千万",Wa,A,Pa|Ka|$a);case 31:return Va(e,"영일이삼사오육칠팔구","십백천만",Ja,i,Pa|Ka|$a);case 33:return Va(e,"零一二三四五六七八九","十百千萬",Ja,i,0);case 32:return Va(e,"零壹貳參四五六七八九","拾百千",Ja,i,Pa|Ka|$a);case 18:return Na(e,2406,2415,!0,r);case 20:return Da(e,1,19999,_a,3,r);case 21:return Na(e,2790,2799,!0,r);case 22:return Na(e,2662,2671,!0,r);case 22:return Da(e,1,10999,Ma,3,r);case 23:return Ra(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Ra(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Na(e,3302,3311,!0,r);case 28:return Ra(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",A);case 29:return Ra(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",A);case 34:return Na(e,3792,3801,!0,r);case 37:return Na(e,6160,6169,!0,r);case 38:return Na(e,4160,4169,!0,r);case 39:return Na(e,2918,2927,!0,r);case 40:return Na(e,1776,1785,!0,r);case 43:return Na(e,3046,3055,!0,r);case 44:return Na(e,3174,3183,!0,r);case 45:return Na(e,3664,3673,!0,r);case 46:return Na(e,3872,3881,!0,r);default:return Na(e,48,57,!0,r)}},Za="data-html2canvas-ignore",qa=function(){function e(e,t,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=t,this.counters=new La,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(e,t){var n=this,i=es(e,t);if(!i.contentWindow)return Promise.reject("Unable to find iframe window");var o=e.defaultView.pageXOffset,a=e.defaultView.pageYOffset,s=i.contentWindow,l=s.document,c=rs(i).then((function(){return r(n,void 0,void 0,(function(){var e,n;return A(this,(function(r){switch(r.label){case 0:return this.scrolledElements.forEach(ss),s&&(s.scrollTo(t.left,t.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||s.scrollY===t.top&&s.scrollX===t.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-t.left,s.scrollY-t.top,0,0))),e=this.options.onclone,void 0===(n=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:r.sent(),r.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,ns(l)]:[3,4];case 3:r.sent(),r.label=4;case 4:return"function"==typeof e?[2,Promise.resolve().then((function(){return e(l,n)})).then((function(){return i}))]:[2,i]}}))}))}));return l.open(),l.write(os(document.doctype)+""),as(this.referenceElement.ownerDocument,o,a),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),c},e.prototype.createElementClone=function(e){if(ki(e,2),ba(e))return this.createCanvasClone(e);if(Ca(e))return this.createVideoClone(e);if(Ta(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return Qa(t)&&(Qa(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),"lazy"===t.loading&&(t.loading="eager")),Sa(t)?this.createCustomElementClone(t):t},e.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return is(e.style,t),t},e.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var n=[].slice.call(t.cssRules,0).reduce((function(e,t){return t&&"string"==typeof t.cssText?e+t.cssText:e}),""),r=e.cloneNode(!1);return r.textContent=n,r}}catch(e){if(this.context.logger.error("Unable to access cssRules property",e),"SecurityError"!==e.name)throw e}return e.cloneNode(!1)},e.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var n=e.ownerDocument.createElement("img");try{return n.src=e.toDataURL(),n}catch(t){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var r=e.cloneNode(!1);try{r.width=e.width,r.height=e.height;var A=e.getContext("2d"),i=r.getContext("2d");if(i)if(!this.options.allowTaint&&A)i.putImageData(A.getImageData(0,0,e.width,e.height),0,0);else{var o=null!==(t=e.getContext("webgl2"))&&void 0!==t?t:e.getContext("webgl");if(o){var a=o.getContextAttributes();!1===(null==a?void 0:a.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}i.drawImage(e,0,0)}return r}catch(t){this.context.logger.info("Unable to clone canvas as it is tainted",e)}return r},e.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var n=t.getContext("2d");try{return n&&(n.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||n.getImageData(0,0,t.width,t.height)),t}catch(t){this.context.logger.info("Unable to clone video as it is tainted",e)}var r=e.ownerDocument.createElement("canvas");return r.width=e.offsetWidth,r.height=e.offsetHeight,r},e.prototype.appendChildNode=function(e,t,n){ha(t)&&(xa(t)||t.hasAttribute(Za)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(t))||this.options.copyStyles&&ha(t)&&Ta(t)||e.appendChild(this.cloneNode(t,n))},e.prototype.cloneChildNodes=function(e,t,n){for(var r=this,A=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;A;A=A.nextSibling)if(ha(A)&&Ua(A)&&"function"==typeof A.assignedNodes){var i=A.assignedNodes();i.length&&i.forEach((function(e){return r.appendChildNode(t,e,n)}))}else this.appendChildNode(t,A,n)},e.prototype.cloneNode=function(e,t){if(fa(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&ha(e)&&(da(e)||ga(e))){var r=this.createElementClone(e);r.style.transitionProperty="none";var A=n.getComputedStyle(e),i=n.getComputedStyle(e,":before"),o=n.getComputedStyle(e,":after");this.referenceElement===e&&da(r)&&(this.clonedReferenceElement=r),Ba(r)&&ds(r);var a=this.counters.parse(new Bi(this.context,A)),s=this.resolvePseudoContent(e,r,i,Ji.BEFORE);Sa(e)&&(t=!0),Ca(e)||this.cloneChildNodes(e,r,t),s&&r.insertBefore(s,r.firstChild);var l=this.resolvePseudoContent(e,r,o,Ji.AFTER);return l&&r.appendChild(l),this.counters.pop(a),(A&&(this.options.copyStyles||ga(e))&&!ka(e)||t)&&is(A,r),0===e.scrollTop&&0===e.scrollLeft||this.scrolledElements.push([r,e.scrollLeft,e.scrollTop]),(Ea(e)||Fa(e))&&(Ea(r)||Fa(r))&&(r.value=e.value),r}return e.cloneNode(!1)},e.prototype.resolvePseudoContent=function(e,t,n,r){var A=this;if(n){var i=n.content,o=t.ownerDocument;if(o&&i&&"none"!==i&&"-moz-alt-content"!==i&&"none"!==n.display){this.counters.parse(new Bi(this.context,n));var a=new wi(this.context,n),s=o.createElement("html2canvaspseudoelement");is(n,s),a.content.forEach((function(t){if(0===t.type)s.appendChild(o.createTextNode(t.value));else if(22===t.type){var n=o.createElement("img");n.src=t.value,n.style.opacity="1",s.appendChild(n)}else if(18===t.type){if("attr"===t.name){var r=t.values.filter(Hn);r.length&&s.appendChild(o.createTextNode(e.getAttribute(r[0].value)||""))}else if("counter"===t.name){var i=t.values.filter(Dn),l=i[0],c=i[1];if(l&&Hn(l)){var u=A.counters.getCounterValue(l.value),f=c&&Hn(c)?TA.parse(A.context,c.value):3;s.appendChild(o.createTextNode(za(u,f,!1)))}}else if("counters"===t.name){var h=t.values.filter(Dn),d=(l=h[0],h[1]);if(c=h[2],l&&Hn(l)){var g=A.counters.getCounterValues(l.value),p=c&&Hn(c)?TA.parse(A.context,c.value):3,m=d&&0===d.type?d.value:"",v=g.map((function(e){return za(e,p,!1)})).join(m);s.appendChild(o.createTextNode(v))}}}else if(20===t.type)switch(t.value){case"open-quote":s.appendChild(o.createTextNode(di(a.quotes,A.quoteDepth++,!0)));break;case"close-quote":s.appendChild(o.createTextNode(di(a.quotes,--A.quoteDepth,!1)));break;default:s.appendChild(o.createTextNode(t.value))}})),s.className=us+" "+fs;var l=r===Ji.BEFORE?" "+us:" "+fs;return ga(t)?t.className.baseValue+=l:t.className+=l,s}}},e.destroy=function(e){return!!e.parentNode&&(e.parentNode.removeChild(e),!0)},e}();!function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"}(Ji||(Ji={}));var Ya,es=function(e,t){var n=e.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=t.width.toString(),n.height=t.height.toString(),n.scrolling="no",n.setAttribute(Za,"true"),e.body.appendChild(n),n},ts=function(e){return new Promise((function(t){e.complete?t():e.src?(e.onload=t,e.onerror=t):t()}))},ns=function(e){return Promise.all([].slice.call(e.images,0).map(ts))},rs=function(e){return new Promise((function(t,n){var r=e.contentWindow;if(!r)return n("No window assigned for iframe");var A=r.document;r.onload=e.onload=function(){r.onload=e.onload=null;var n=setInterval((function(){A.body.childNodes.length>0&&"complete"===A.readyState&&(clearInterval(n),t(e))}),50)}}))},As=["all","d","content"],is=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e.item(n);-1===As.indexOf(r)&&t.style.setProperty(r,e.getPropertyValue(r))}return t},os=function(e){var t="";return e&&(t+=""),t},as=function(e,t,n){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||n!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,n)},ss=function(e){var t=e[0],n=e[1],r=e[2];t.scrollLeft=n,t.scrollTop=r},ls=":before",cs=":after",us="___html2canvas___pseudoelement_before",fs="___html2canvas___pseudoelement_after",hs='{\n content: "" !important;\n display: none !important;\n}',ds=function(e){gs(e,"."+us+ls+hs+"\n ."+fs+cs+hs)},gs=function(e,t){var n=e.ownerDocument;if(n){var r=n.createElement("style");r.textContent=t,e.appendChild(r)}},ps=function(){function e(){}return e.getOrigin=function(t){var n=e._link;return n?(n.href=t,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e}(),ms=function(){function e(e,t){this.context=e,this._options=t,this._cache={}}return e.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)?t:Qs(e)||Bs(e)?((this._cache[e]=this.loadImage(e)).catch((function(){})),t):t},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return r(this,void 0,void 0,(function(){var t,n,r,i,o=this;return A(this,(function(A){switch(A.label){case 0:return t=ps.isSameOrigin(e),n=!bs(e)&&!0===this._options.useCORS&&Fo.SUPPORT_CORS_IMAGES&&!t,r=!bs(e)&&!t&&!Qs(e)&&"string"==typeof this._options.proxy&&Fo.SUPPORT_CORS_XHR&&!n,t||!1!==this._options.allowTaint||bs(e)||Qs(e)||r||n?(i=e,r?[4,this.proxy(i)]:[3,2]):[2];case 1:i=A.sent(),A.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise((function(e,t){var r=new Image;r.onload=function(){return e(r)},r.onerror=t,(Cs(i)||n)&&(r.crossOrigin="anonymous"),r.src=i,!0===r.complete&&setTimeout((function(){return e(r)}),500),o._options.imageTimeout>0&&setTimeout((function(){return t("Timed out ("+o._options.imageTimeout+"ms) loading image")}),o._options.imageTimeout)}))];case 3:return[2,A.sent()]}}))}))},e.prototype.has=function(e){return void 0!==this._cache[e]},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var t=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=e.substring(0,256);return new Promise((function(A,i){var o=Fo.SUPPORT_RESPONSE_TYPE?"blob":"text",a=new XMLHttpRequest;a.onload=function(){if(200===a.status)if("text"===o)A(a.response);else{var e=new FileReader;e.addEventListener("load",(function(){return A(e.result)}),!1),e.addEventListener("error",(function(e){return i(e)}),!1),e.readAsDataURL(a.response)}else i("Failed to proxy resource "+r+" with status code "+a.status)},a.onerror=i;var s=n.indexOf("?")>-1?"&":"?";if(a.open("GET",""+n+s+"url="+encodeURIComponent(e)+"&responseType="+o),"text"!==o&&a instanceof XMLHttpRequest&&(a.responseType=o),t._options.imageTimeout){var l=t._options.imageTimeout;a.timeout=l,a.ontimeout=function(){return i("Timed out ("+l+"ms) proxying "+r)}}a.send()}))},e}(),vs=/^data:image\/svg\+xml/i,ys=/^data:image\/.*;base64,/i,ws=/^data:image\/.*/i,Bs=function(e){return Fo.SUPPORT_SVG_DRAWING||!ks(e)},bs=function(e){return ws.test(e)},Cs=function(e){return ys.test(e)},Qs=function(e){return"blob"===e.substr(0,4)},ks=function(e){return"svg"===e.substr(-3).toLowerCase()||vs.test(e)},Ts=function(){function e(e,t){this.type=0,this.x=e,this.y=t}return e.prototype.add=function(t,n){return new e(this.x+t,this.y+n)},e}(),xs=function(e,t,n){return new Ts(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n)},Es=function(){function e(e,t,n,r){this.type=1,this.start=e,this.startControl=t,this.endControl=n,this.end=r}return e.prototype.subdivide=function(t,n){var r=xs(this.start,this.startControl,t),A=xs(this.startControl,this.endControl,t),i=xs(this.endControl,this.end,t),o=xs(r,A,t),a=xs(A,i,t),s=xs(o,a,t);return n?new e(this.start,r,o,s):new e(s,a,i,this.end)},e.prototype.add=function(t,n){return new e(this.start.add(t,n),this.startControl.add(t,n),this.endControl.add(t,n),this.end.add(t,n))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),Fs=function(e){return 1===e.type},Us=function(){function e(e){var t=e.styles,n=e.bounds,r=jn(t.borderTopLeftRadius,n.width,n.height),A=r[0],i=r[1],o=jn(t.borderTopRightRadius,n.width,n.height),a=o[0],s=o[1],l=jn(t.borderBottomRightRadius,n.width,n.height),c=l[0],u=l[1],f=jn(t.borderBottomLeftRadius,n.width,n.height),h=f[0],d=f[1],g=[];g.push((A+a)/n.width),g.push((h+c)/n.width),g.push((i+d)/n.height),g.push((s+u)/n.height);var p=Math.max.apply(Math,g);p>1&&(A/=p,i/=p,a/=p,s/=p,c/=p,u/=p,h/=p,d/=p);var m=n.width-a,v=n.height-u,y=n.width-c,w=n.height-d,B=t.borderTopWidth,b=t.borderRightWidth,C=t.borderBottomWidth,Q=t.borderLeftWidth,k=Gn(t.paddingTop,e.bounds.width),T=Gn(t.paddingRight,e.bounds.width),x=Gn(t.paddingBottom,e.bounds.width),E=Gn(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=A>0||i>0?Ss(n.left+Q/3,n.top+B/3,A-Q/3,i-B/3,Ya.TOP_LEFT):new Ts(n.left+Q/3,n.top+B/3),this.topRightBorderDoubleOuterBox=A>0||i>0?Ss(n.left+m,n.top+B/3,a-b/3,s-B/3,Ya.TOP_RIGHT):new Ts(n.left+n.width-b/3,n.top+B/3),this.bottomRightBorderDoubleOuterBox=c>0||u>0?Ss(n.left+y,n.top+v,c-b/3,u-C/3,Ya.BOTTOM_RIGHT):new Ts(n.left+n.width-b/3,n.top+n.height-C/3),this.bottomLeftBorderDoubleOuterBox=h>0||d>0?Ss(n.left+Q/3,n.top+w,h-Q/3,d-C/3,Ya.BOTTOM_LEFT):new Ts(n.left+Q/3,n.top+n.height-C/3),this.topLeftBorderDoubleInnerBox=A>0||i>0?Ss(n.left+2*Q/3,n.top+2*B/3,A-2*Q/3,i-2*B/3,Ya.TOP_LEFT):new Ts(n.left+2*Q/3,n.top+2*B/3),this.topRightBorderDoubleInnerBox=A>0||i>0?Ss(n.left+m,n.top+2*B/3,a-2*b/3,s-2*B/3,Ya.TOP_RIGHT):new Ts(n.left+n.width-2*b/3,n.top+2*B/3),this.bottomRightBorderDoubleInnerBox=c>0||u>0?Ss(n.left+y,n.top+v,c-2*b/3,u-2*C/3,Ya.BOTTOM_RIGHT):new Ts(n.left+n.width-2*b/3,n.top+n.height-2*C/3),this.bottomLeftBorderDoubleInnerBox=h>0||d>0?Ss(n.left+2*Q/3,n.top+w,h-2*Q/3,d-2*C/3,Ya.BOTTOM_LEFT):new Ts(n.left+2*Q/3,n.top+n.height-2*C/3),this.topLeftBorderStroke=A>0||i>0?Ss(n.left+Q/2,n.top+B/2,A-Q/2,i-B/2,Ya.TOP_LEFT):new Ts(n.left+Q/2,n.top+B/2),this.topRightBorderStroke=A>0||i>0?Ss(n.left+m,n.top+B/2,a-b/2,s-B/2,Ya.TOP_RIGHT):new Ts(n.left+n.width-b/2,n.top+B/2),this.bottomRightBorderStroke=c>0||u>0?Ss(n.left+y,n.top+v,c-b/2,u-C/2,Ya.BOTTOM_RIGHT):new Ts(n.left+n.width-b/2,n.top+n.height-C/2),this.bottomLeftBorderStroke=h>0||d>0?Ss(n.left+Q/2,n.top+w,h-Q/2,d-C/2,Ya.BOTTOM_LEFT):new Ts(n.left+Q/2,n.top+n.height-C/2),this.topLeftBorderBox=A>0||i>0?Ss(n.left,n.top,A,i,Ya.TOP_LEFT):new Ts(n.left,n.top),this.topRightBorderBox=a>0||s>0?Ss(n.left+m,n.top,a,s,Ya.TOP_RIGHT):new Ts(n.left+n.width,n.top),this.bottomRightBorderBox=c>0||u>0?Ss(n.left+y,n.top+v,c,u,Ya.BOTTOM_RIGHT):new Ts(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=h>0||d>0?Ss(n.left,n.top+w,h,d,Ya.BOTTOM_LEFT):new Ts(n.left,n.top+n.height),this.topLeftPaddingBox=A>0||i>0?Ss(n.left+Q,n.top+B,Math.max(0,A-Q),Math.max(0,i-B),Ya.TOP_LEFT):new Ts(n.left+Q,n.top+B),this.topRightPaddingBox=a>0||s>0?Ss(n.left+Math.min(m,n.width-b),n.top+B,m>n.width+b?0:Math.max(0,a-b),Math.max(0,s-B),Ya.TOP_RIGHT):new Ts(n.left+n.width-b,n.top+B),this.bottomRightPaddingBox=c>0||u>0?Ss(n.left+Math.min(y,n.width-Q),n.top+Math.min(v,n.height-C),Math.max(0,c-b),Math.max(0,u-C),Ya.BOTTOM_RIGHT):new Ts(n.left+n.width-b,n.top+n.height-C),this.bottomLeftPaddingBox=h>0||d>0?Ss(n.left+Q,n.top+Math.min(w,n.height-C),Math.max(0,h-Q),Math.max(0,d-C),Ya.BOTTOM_LEFT):new Ts(n.left+Q,n.top+n.height-C),this.topLeftContentBox=A>0||i>0?Ss(n.left+Q+E,n.top+B+k,Math.max(0,A-(Q+E)),Math.max(0,i-(B+k)),Ya.TOP_LEFT):new Ts(n.left+Q+E,n.top+B+k),this.topRightContentBox=a>0||s>0?Ss(n.left+Math.min(m,n.width+Q+E),n.top+B+k,m>n.width+Q+E?0:a-Q+E,s-(B+k),Ya.TOP_RIGHT):new Ts(n.left+n.width-(b+T),n.top+B+k),this.bottomRightContentBox=c>0||u>0?Ss(n.left+Math.min(y,n.width-(Q+E)),n.top+Math.min(v,n.height+B+k),Math.max(0,c-(b+T)),u-(C+x),Ya.BOTTOM_RIGHT):new Ts(n.left+n.width-(b+T),n.top+n.height-(C+x)),this.bottomLeftContentBox=h>0||d>0?Ss(n.left+Q+E,n.top+w,Math.max(0,h-(Q+E)),d-(C+x),Ya.BOTTOM_LEFT):new Ts(n.left+Q+E,n.top+n.height-(C+x))}return e}();!function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(Ya||(Ya={}));var Ss=function(e,t,n,r,A){var i=(Math.sqrt(2)-1)/3*4,o=n*i,a=r*i,s=e+n,l=t+r;switch(A){case Ya.TOP_LEFT:return new Es(new Ts(e,l),new Ts(e,l-a),new Ts(s-o,t),new Ts(s,t));case Ya.TOP_RIGHT:return new Es(new Ts(e,t),new Ts(e+o,t),new Ts(s,l-a),new Ts(s,l));case Ya.BOTTOM_RIGHT:return new Es(new Ts(s,t),new Ts(s,t+a),new Ts(e+o,l),new Ts(e,l));case Ya.BOTTOM_LEFT:default:return new Es(new Ts(s,l),new Ts(s-o,l),new Ts(e,t+a),new Ts(e,t))}},Ls=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},Hs=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},Is=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Ms=function(){function e(e,t,n){this.offsetX=e,this.offsetY=t,this.matrix=n,this.type=0,this.target=6}return e}(),_s=function(){function e(e,t){this.path=e,this.target=t,this.type=1}return e}(),Ds=function(){function e(e){this.opacity=e,this.type=2,this.target=6}return e}(),Os=function(e){return 0===e.type},Ns=function(e){return 1===e.type},Rs=function(e){return 2===e.type},Ps=function(e,t){return e.length===t.length&&e.some((function(e,n){return e===t[n]}))},Ks=function(e,t,n,r,A){return e.map((function(e,i){switch(i){case 0:return e.add(t,n);case 1:return e.add(t+r,n);case 2:return e.add(t+r,n+A);case 3:return e.add(t,n+A)}return e}))},$s=function(){function e(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),Xs=function(){function e(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new Us(this.container),this.container.styles.opacity<1&&this.effects.push(new Ds(this.container.styles.opacity)),null!==this.container.styles.transform){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,A=this.container.styles.transform;this.effects.push(new Ms(n,r,A))}if(0!==this.container.styles.overflowX){var i=Ls(this.curves),o=Is(this.curves);Ps(i,o)?this.effects.push(new _s(i,6)):(this.effects.push(new _s(i,2)),this.effects.push(new _s(o,4)))}}return e.prototype.getEffects=function(e){for(var t=-1===[2,3].indexOf(this.container.styles.position),n=this.parent,r=this.effects.slice(0);n;){var A=n.effects.filter((function(e){return!Ns(e)}));if(t||0!==n.container.styles.position||!n.parent){if(r.unshift.apply(r,A),t=-1===[2,3].indexOf(n.container.styles.position),0!==n.container.styles.overflowX){var i=Ls(n.curves),o=Is(n.curves);Ps(i,o)||r.unshift(new _s(o,6))}}else r.unshift.apply(r,A);n=n.parent}return r.filter((function(t){return si(t.target,e)}))},e}(),Vs=function(e,t,n,r){e.container.elements.forEach((function(A){var i=si(A.flags,4),o=si(A.flags,2),a=new Xs(A,e);si(A.styles.display,2048)&&r.push(a);var s=si(A.flags,8)?[]:r;if(i||o){var l=i||A.styles.isPositioned()?n:t,c=new $s(a);if(A.styles.isPositioned()||A.styles.opacity<1||A.styles.isTransformed()){var u=A.styles.zIndex.order;if(u<0){var f=0;l.negativeZIndex.some((function(e,t){return u>e.element.container.styles.zIndex.order?(f=t,!1):f>0})),l.negativeZIndex.splice(f,0,c)}else if(u>0){var h=0;l.positiveZIndex.some((function(e,t){return u>=e.element.container.styles.zIndex.order?(h=t+1,!1):h>0})),l.positiveZIndex.splice(h,0,c)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else A.styles.isFloating()?l.nonPositionedFloats.push(c):l.nonPositionedInlineLevel.push(c);Vs(a,c,i?c:n,s)}else A.styles.isInlineLevel()?t.inlineLevel.push(a):t.nonInlineLevel.push(a),Vs(a,t,n,s);si(A.flags,8)&&js(A,s)}))},js=function(e,t){for(var n=e instanceof Go?e.start:1,r=e instanceof Go&&e.reversed,A=0;A0&&e.intrinsicHeight>0){var r=tl(e),A=Is(t);this.path(A),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,e.intrinsicWidth,e.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},n.prototype.renderNodeContent=function(e){return r(this,void 0,void 0,(function(){var t,r,i,a,s,l,c,u,f,h,d,g,p,m,v,y,w,B;return A(this,(function(A){switch(A.label){case 0:this.applyEffects(e.getEffects(4)),t=e.container,r=e.curves,i=t.styles,a=0,s=t.textNodes,A.label=1;case 1:return a0&&Q>0&&(v=r.ctx.createPattern(g,"repeat"),r.renderRepeat(w,v,T,x))):Mr(n)&&(y=Al(e,t,[null,null,null]),w=y[0],B=y[1],b=y[2],C=y[3],Q=y[4],k=0===n.position.length?[Xn]:n.position,T=Gn(k[0],C),x=Gn(k[k.length-1],Q),E=Br(n,T,x,C,Q),F=E[0],U=E[1],F>0&&U>0&&(S=r.ctx.createRadialGradient(B+T,b+x,0,B+T,b+x,F),pr(n.stops,2*F).forEach((function(e){return S.addColorStop(e.stop,Ar(e.color))})),r.path(w),r.ctx.fillStyle=S,F!==U?(L=e.bounds.left+.5*e.bounds.width,H=e.bounds.top+.5*e.bounds.height,M=1/(I=U/F),r.ctx.save(),r.ctx.translate(L,H),r.ctx.transform(1,0,0,I,0,0),r.ctx.translate(-L,-H),r.ctx.fillRect(B,M*(b-H)+H,C,Q*M),r.ctx.restore()):r.ctx.fill())),A.label=6;case 6:return t--,[2]}}))},r=this,i=0,o=e.styles.backgroundImage.slice(0).reverse(),s.label=1;case 1:return i0?2!==l.style?[3,5]:[4,this.renderDashedDottedBorder(l.color,l.width,o,e.curves,2)]:[3,11]:[3,13];case 4:return A.sent(),[3,11];case 5:return 3!==l.style?[3,7]:[4,this.renderDashedDottedBorder(l.color,l.width,o,e.curves,3)];case 6:return A.sent(),[3,11];case 7:return 4!==l.style?[3,9]:[4,this.renderDoubleBorder(l.color,l.width,o,e.curves)];case 8:return A.sent(),[3,11];case 9:return[4,this.renderSolidBorder(l.color,o,e.curves)];case 10:A.sent(),A.label=11;case 11:o++,A.label=12;case 12:return a++,[3,3];case 13:return[2]}}))}))},n.prototype.renderDashedDottedBorder=function(e,t,n,i,o){return r(this,void 0,void 0,(function(){var r,a,s,l,c,u,f,h,d,g,p,m,v,y,w,B;return A(this,(function(A){return this.ctx.save(),r=Zs(i,n),a=Ws(i,n),2===o&&(this.path(a),this.ctx.clip()),Fs(a[0])?(s=a[0].start.x,l=a[0].start.y):(s=a[0].x,l=a[0].y),Fs(a[1])?(c=a[1].end.x,u=a[1].end.y):(c=a[1].x,u=a[1].y),f=0===n||2===n?Math.abs(s-c):Math.abs(l-u),this.ctx.beginPath(),3===o?this.formatPath(r):this.formatPath(a.slice(0,2)),h=t<3?3*t:2*t,d=t<3?2*t:t,3===o&&(h=t,d=t),g=!0,f<=2*h?g=!1:f<=2*h+d?(h*=p=f/(2*h+d),d*=p):(m=Math.floor((f+d)/(h+d)),v=(f-m*h)/(m-1),d=(y=(f-(m+1)*h)/m)<=0||Math.abs(d-v)0&&void 0!==arguments[0]?arguments[0]:[];ti(e=Nl(document.body.children)).call(e,(function(e,n){void 0!==t[n]&&(e.style.display=t[n])}))}(i),document.body.style.overflow=o}))};function Iw(e,t){Hw(e,(function(e,n){window.scrollTo(0,0),Lw(e,{allowTaint:!0,height:e.clientHeight,width:e.clientWidth,scrollY:0,scrollX:0}).then((function(e){!function(e,t){var n=document.createElement("a");n.style.display="none",n.href=e,n.download="".concat(t,".png"),document.body.appendChild(n),n.click(),document.body.removeChild(n)}(e.toDataURL("image/jpeg"),t),n()}))}))}var Mw=k.f,_w=v(Mw),Dw=v([].push),Ow=function(e){return function(t){for(var n,r=M(t),A=$t(r),i=A.length,o=0,a=[];i>o;)n=A[o++],w&&!_w(r,n)||Dw(a,e?[n,r[n]]:r[n]);return a}},Nw={entries:Ow(!0),values:Ow(!1)},Rw=Nw.values;Ye({target:"Object",stat:!0},{values:function(e){return Rw(e)}});var Pw=D.Object.values,Kw=Nw.entries;Ye({target:"Object",stat:!0},{entries:function(e){return Kw(e)}});var $w=D.Object.entries,Xw={mouseResize:{},getImgPosition:function(){var e=this.img.getBoundingClientRect(),t=this.previewerDom.parentNode.getBoundingClientRect(),n=Pc(this.img.style.padding)||0;return{bottom:e.bottom-t.bottom,top:e.top-t.top+1.5*n,height:e.height,width:e.width,right:e.right-t.right,left:e.left-t.left+1.5*n,x:e.x-t.x,y:e.y-t.y}},initBubbleButtons:function(){var e=this.getImgPosition();return{points:{arr:["leftTop","leftBottom","rightTop","rightBottom","leftMiddle","middleBottom","middleTop","rightMiddle"],arrInfo:{leftTop:{name:"20",left:0,top:0},leftBottom:{name:"00",left:0,top:0},rightTop:{name:"22",left:0,top:0},rightBottom:{name:"02",left:0,top:0},leftMiddle:{name:"10",left:0,top:0},middleBottom:{name:"01",left:0,top:0},middleTop:{name:"21",left:0,top:0},rightMiddle:{name:"12",left:0,top:0}}},imgSrc:this.img.src,style:{width:this.img.width,height:this.img.height,left:e.left-1,top:e.top-1,marginTop:0,marginLeft:0},scrollTop:this.previewerDom.scrollTop,position:e}},showBubble:function(e,t,n){this.$isResizing()||(this.img=e,this.previewerDom=n,this.container=t,this.buts=this.initBubbleButtons(),this.drawBubbleButs())},emit:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(e){case"mousedown":return this.resizeBegin(t);case"mouseup":return this.resizeStop(t);case"mousemove":return this.resizeWorking(t);case"scroll":return this.dealScroll(t);case"remove":return this.remove();case"previewUpdate":return this.previewUpdate(t)}},previewUpdate:function(e){this.$isResizing()||(this.remove(),e())},drawBubbleButs:function(){var e,t=this;return this.butsLayout||(this.butsLayout=this.container,this.butsImg=document.createElement("div"),this.butsImg.className="cherry-previewer-img-size-handler__background",this.butsImg.style.backgroundImage="url(".concat(this.buts.imgSrc,")"),this.butsLayout.appendChild(this.butsImg),this.butsPoints={},ti(e=mn(this.buts.points.arr)).call(e,(function(e){var n=t.buts.points.arr[e],r=document.createElement("div");r.className=["cherry-previewer-img-size-handler__points","cherry-previewer-img-size-handler__points-".concat(n)].join(" "),r.dataset.name=n,t.butsLayout.appendChild(r),t.butsPoints["pints-".concat(n)]=r}))),this.updateBubbleButs()},remove:function(){this.butsLayout=!1},updateBubbleButs:function(){var e,t,n=this;this.$updatePointsInfo(),ti(e=mn(this.buts.style)).call(e,(function(e){n.butsLayout.style[e]="".concat(n.buts.style[e],"px")})),ti(t=mn(this.buts.points.arr)).call(t,(function(e){var t=n.buts.points.arr[e];n.butsPoints["pints-".concat(t)].style.top="".concat(n.buts.points.arrInfo[t].top,"px"),n.butsPoints["pints-".concat(t)].style.left="".concat(n.buts.points.arrInfo[t].left,"px")}))},$updatePointsInfo:function(){var e,t=this,n=this.buts.style.width,r=this.buts.style.height,A=this.$getPointsInfo(n,r);ti(e=mn(this.buts.points.arr)).call(e,(function(e){var n=t.buts.points.arr[e];t.buts.points.arrInfo[n].left!==A[n].left&&(t.buts.points.arrInfo[n].left=A[n].left),t.buts.points.arrInfo[n].top!==A[n].top&&(t.buts.points.arrInfo[n].top=A[n].top)}))},$getPointsInfo:function(e,t){return{leftTop:{left:0,top:0},leftBottom:{left:0,top:t},rightTop:{left:e,top:0},rightBottom:{left:e,top:t},leftMiddle:{left:0,top:t/2},middleBottom:{left:e/2,top:t},middleTop:{left:e/2,top:0},rightMiddle:{left:e,top:t/2}}},$isResizing:function(){return this.mouseResize.resize},dealScroll:function(e){var t=this.getImgPosition();this.butsLayout.style.marginTop!==t.top-this.buts.position.top&&(this.butsLayout.style.marginTop="".concat(t.top-this.buts.position.top,"px"),this.buts.style.marginTop="".concat(t.top-this.buts.position.top,"px")),this.butsLayout.style.marginLeft!==t.left-this.buts.position.left&&(this.butsLayout.style.marginLeft="".concat(t.left-this.buts.position.left,"px"),this.buts.style.marginLeft="".concat(t.left-this.buts.position.left,"px"))},initMouse:function(){return{left:0,top:0,resize:!1,name:""}},resizeBegin:function(e){var t=e.target;if(!t.classList.contains("cherry-previewer-img-size-handler__points"))return!1;this.mouseResize.left=e.clientX,this.mouseResize.top=e.clientY,this.mouseResize.resize=!0,this.mouseResize.name=t.getAttribute("data-name"),this.previewerDom.classList.add("doing-resize-img")},resizeStop:function(e,t,n,r){if(!this.$isResizing())return!1;this.img.style.width="".concat(this.buts.style.width,"px"),this.img.style.height="".concat(this.buts.style.height,"px"),this.buts.style.marginTop=0,this.buts.style.marginLeft=0,this.updateBubbleButs(),this.mouseResize.resize=!1,this.previewerDom.classList.remove("doing-resize-img"),this.change()},resizeWorking:function(e,t){if(this.$isResizing()){var n=e.clientX-this.mouseResize.left,r=e.clientY-this.mouseResize.top,A={};switch(this.mouseResize.name){case"leftTop":case"leftBottom":case"leftMiddle":A=this.$getChange(n,r,"x"),this.buts.style.width=this.buts.position.width-A.changeX,"leftMiddle"!==this.mouseResize.name&&(this.buts.style.height=this.buts.position.height-A.changeY);break;case"rightTop":case"rightBottom":case"rightMiddle":A=this.$getChange(n,r,"x"),this.buts.style.width=this.buts.position.width+A.changeX,"rightMiddle"!==this.mouseResize.name&&(this.buts.style.height=this.buts.position.height+A.changeY);break;case"middleTop":A=this.$getChange(n,r,"y"),this.buts.style.height=this.buts.position.height-A.changeY;break;case"middleBottom":A=this.$getChange(n,r,"y"),this.buts.style.height=this.buts.position.height+A.changeY}this.updateBubbleButs(),this.change()}},change:function(){this.emitChange(this.img,{width:this.buts.style.width,height:this.buts.style.height})},bindChange:function(e){this.emitChange=e},$getChange:function(e,t,n){var r={changeX:0,changeY:0};if("y"===n)r.changeY=t,r.changeX=t*this.buts.position.width/this.buts.position.height;else r.changeX=e,r.changeY=e*this.buts.position.height/this.buts.position.width;return r}},Vw=Xw,jw=nr.every,Gw=WA("every");Ye({target:"Array",proto:!0,forced:!Gw},{every:function(e){return jw(this,e,arguments.length>1?arguments[1]:void 0)}});var Ww=tA("Array").every,Jw=Array.prototype,zw=function(e){var t=e.every;return e===Jw||R(Jw,e)&&t===Jw.every?Ww:t},Zw=a.TypeError,qw=function(e,t,n,r,A,i,o,a){for(var s,l,c=A,u=0,f=!!o&&Oe(o,a);u0&&zn(s))l=Mt(s),c=qw(e,t,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw Zw("Exceed the acceptable array length");e[c]=s}c++}u++}return c},Yw=qw;Ye({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=se(this),n=Mt(t),r=Yn(t,0);return r.length=Yw(r,t,t,n,0,void 0===e?1:Ft(e)),r}});var eB=tA("Array").flat,tB=Array.prototype,nB=function(e){var t=e.flat;return e===tB||R(tB,e)&&t===tB.flat?eB:t},rB=function(){function e(t,n,r,A,i,o){ui(this,e),Gi(this,"tableEditor",{info:{},tableCodes:[],editorDom:{}}),this.trigger=t,this.target=n,this.previewerDom=A,this.container=r,this.codeMirror=i,this.$initReg(),this.$findTableInEditor(),this.tableElement=o}return di(e,[{key:"emit",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};switch(e){case"keyup":return"click"===this.trigger&&this.$onInputChange(t);case"remove":return this.$remove();case"scroll":case"previewUpdate":return this.$refreshPosition();case"mousedown":return;case"mouseup":return"click"===this.trigger&&this.$tryRemoveMe(t,n)}}},{key:"$tryRemoveMe",value:function(e,t){/textarea/i.test(e.target.tagName)||(this.$remove(),t())}},{key:"$getPosition",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.tableEditor.info.tdNode).getBoundingClientRect(),t=this.previewerDom.parentNode.getBoundingClientRect();return{top:e.top-t.top,height:e.height,width:e.width,left:e.left-t.left,maxHeight:t.height}}},{key:"setStyle",value:function(e,t,n){e.getBoundingClientRect()[t]!==n&&(e.style[t]=n)}},{key:"$setInputOffset",value:function(){var e=this.$getPosition(),t=this.tableEditor.editorDom.inputDiv;this.setStyle(t,"width","".concat(e.width,"px")),this.setStyle(t,"height","".concat(e.height,"px")),this.setStyle(t,"top","".concat(e.top,"px")),this.setStyle(t,"left","".concat(e.left,"px"));var n=e.top>=0&&e.top+e.height<=e.maxHeight;this.setStyle(t,"display",n?"":"none")}},{key:"$setSymbolOffset",value:function(){var e,t=this,n=this.tableEditor.editorDom.symbolContainer,r=this.tableEditor.info,A=r.tableNode,i=r.trNode,o=r.isTHead,a=this.$getPosition(A),s=this.$getPosition(i),l=this.$getPosition(),c=this.previewerDom.getBoundingClientRect();this.setStyle(this.container,"width","".concat(a.width,"px")),this.setStyle(this.container,"height","".concat(a.height,"px")),this.setStyle(this.container,"top","".concat(a.top,"px")),this.setStyle(this.container,"left","".concat(a.left,"px"));ti(e=n.childNodes).call(e,(function(e){var n,r=e.dataset,A=r.index,i=r.type,u=r.dir,f=20,h=7;t.setStyle(e,{Row:["left","right"],Col:["top","bottom"]}[u][A],"-".concat(f,"px")),t.setStyle(e,"display","");var d={LastRow:function(){return t.setStyle(e,"top","".concat(s.top-a.top-h,"px"))},NextRow:function(){return t.setStyle(e,"top","".concat(s.top-a.top+s.height-h,"px"))},LastCol:function(){return t.setStyle(e,"left","".concat(l.left-a.left-h,"px"))},NextCol:function(){return t.setStyle(e,"left","".concat(l.left-a.left+l.width-h,"px"))}},g=zi(n="".concat(i)).call(n,u);d[g](),t.setStyle(e,"display",function(e){var t,n=e.getBoundingClientRect(),r={top:[c.top,c.top+c.height-n.height],left:[c.left,c.left+c.width-n.width]};return zw(t=$w(r)).call(t,(function(e){var t=gc(e,2),r=t[0],A=gc(t[1],2),i=A[0],o=A[1];return n[r]>=i&&n[r]<=o}))}(e)?"":"none"),o&&"LastRow"===g&&t.setStyle(e,"display","none")}))}},{key:"$refreshPosition",value:function(){"click"!==this.trigger?this.$setSymbolOffset():this.$setInputOffset()}},{key:"$remove",value:function(){this.tableEditor={info:{},tableCodes:[],editorDom:{}}}},{key:"$collectTableCode",value:function(){var e=[];this.codeMirror.getValue().replace(this.codeBlockReg,(function(e){return e.replace(/\|/g,".")})).replace(this.tableReg,(function(t){var n,r=t.replace(/^\n*/,""),A=((n=(arguments.length<=1?0:arguments.length-1)-2+1)<1||arguments.length<=n?void 0:arguments[n])+t.match(/^\n*/)[0].length;e.push({code:r,offset:A})})),this.tableEditor.tableCodes=e}},{key:"$collectTableDom",value:function(){var e,t,n,r=Nl(this.previewerDom.querySelectorAll("table.cherry-table")),A=this.$getClosestNode(this.target,"TABLE");if(!1===A)return!1;var i=AA(e=Nl(this.target.parentElement.childNodes)).call(e,(function(e){return"td"===e.tagName.toLowerCase()})).length;this.tableEditor.info={tableNode:A,tdNode:this.target,trNode:this.target.parentElement,tdIndex:pc(t=Nl(this.target.parentElement.childNodes)).call(t,this.target),trIndex:pc(n=Nl(this.target.parentElement.parentElement.childNodes)).call(n,this.target.parentElement),isTHead:"TBODY"!==this.target.parentElement.parentElement.tagName,totalTables:r.length,tableIndex:pc(r).call(r,A),tableText:A.textContent.replace(/[\s]/g,""),columns:i}}},{key:"$setSelection",value:function(e){var t,n,r,A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"table",i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=this.tableEditor.tableCodes[e],a=this.codeMirror.getValue(),s=this.tableEditor.info,l=null!==(t=null===(n=vc(a).call(a,0,o.offset).match(/\n/g))||void 0===n?void 0:n.length)&&void 0!==t?t:0,c=this.$getTdOffset(o.code,s.isTHead,s.trIndex,s.tdIndex),u=c.preLine,f=c.preCh,h=c.plusCh,d=c.currentTd;if("table"===A){var g=l+o.code.match(/\n/g).length,p=o.code.match(/[^\n]+\n*$/)[0].length;this.tableEditor.info.selection=[{line:l,ch:0},{line:g,ch:p}]}else this.tableEditor.info.selection=[{line:l+u,ch:f},{line:l+u,ch:f+h}];i&&(r=this.codeMirror).setSelection.apply(r,Eh(this.tableEditor.info.selection)),this.tableEditor.info.code=d}},{key:"$getTdOffset",value:function(e,t,n,r){for(var A=t?0:n+2,i=e.split(/\n/)[A].split(/\|/),o=/^\s*$/.test(i[0]),a=o?r+1:r,s=i[a],l=[],c=0;c/g,"\n"),this.tableEditor.editorDom.inputDom.focus()}},{key:"$onInputChange",value:function(e){"TEXTAREA"===e.target.tagName&&this.codeMirror.replaceSelection(e.target.value.replace(/\n/g,"
    "),"around")}},{key:"$updateEditorPosition",value:function(){this.$setInputOffset();var e=getComputedStyle(this.tableEditor.info.tdNode);this.tableEditor.editorDom.inputDom.style.textAlign=e.textAlign||"left",this.tableEditor.editorDom.inputDom.style.fontSize=e.fontSize||"16px",this.tableEditor.editorDom.inputDom.style.fontFamily=e.fontFamily,this.tableEditor.editorDom.inputDom.style.lineHeight=e.lineHeight,this.tableEditor.editorDom.inputDom.style.padding=e.padding,/left/.test(e.textAlign)&&(this.tableEditor.editorDom.inputDom.style.paddingRight="0px"),/right/.test(e.textAlign)&&(this.tableEditor.editorDom.inputDom.style.paddingLeft="0px"),/center/.test(e.textAlign)&&(this.tableEditor.editorDom.inputDom.style.paddingLeft="0px",this.tableEditor.editorDom.inputDom.style.paddingRight="0px"),this.tableEditor.editorDom.inputDom.style.paddingBottom="0px"}},{key:"$getClosestNode",value:function(e,t){return e.tagName===t?e:"BODY"!==e.parentNode.tagName&&this.$getClosestNode(e.parentNode,t)}},{key:"$drawSymbol",value:function(){var e,t=this,n=["Last","Next"],r=["Row","Col"],A={Row:"行",Col:"列"},i=nB(e=Wu(r).call(r,(function(e,t){return Wu(n).call(n,(function(e){return Wu(r).call(r,(function(n){return["".concat(t),e,n]}))}))}))).call(e,2),o=document.createElement("ul");o.className="cherry-previewer-table-hover-handler-container",ti(i).call(i,(function(e){var n=gc(e,3),r=n[0],i=n[1],a=n[2],s=document.createElement("li");s.setAttribute("data-index",r),s.setAttribute("data-type",i),s.setAttribute("data-dir",a),s.className="cherry-previewer-table-hover-handler__symbol",s.title="添加".concat(A[a]),s.innerHTML="+",s.addEventListener("click",(function(e){var n,r=e.target;if(r instanceof HTMLElement){var A=r.dataset,i=A.type,o=A.dir;t[zi(n="$add".concat(i)).call(n,o)]()}})),o.appendChild(s)}),!0),this.tableEditor.editorDom.symbolContainer=o,this.container.appendChild(this.tableEditor.editorDom.symbolContainer),this.$setSymbolOffset()}},{key:"$addLastRow",value:function(){var e=gc(this.tableEditor.info.selection,1)[0].line,t="".concat(Uc("|").call("|",this.tableEditor.info.columns),"\n");this.codeMirror.replaceRange(t,{line:e,ch:0}),this.$findTableInEditor(),this.$setSelection(this.tableEditor.info.tableIndex,"td")}},{key:"$addNextRow",value:function(){var e=gc(this.tableEditor.info.selection,2)[1].line,t="".concat(Uc("|").call("|",this.tableEditor.info.columns),"\n");this.codeMirror.replaceRange(t,{line:e+1,ch:0}),this.$findTableInEditor(),this.$setSelection(this.tableEditor.info.tableIndex,"td")}},{key:"$addLastCol",value:function(){var e=this;this.$setSelection(this.tableEditor.info.tableIndex,"table");var t=this.codeMirror.getSelection().split("\n"),n=Wu(t).call(t,(function(t,n){var r=t.split("|"),A=1===n?":-:":"";return Ru(r).call(r,e.tableEditor.info.tdIndex+1,0,A),r.join("|")})).join("\n");this.codeMirror.replaceSelection(n),this.$findTableInEditor(),this.$setSelection(this.tableEditor.info.tableIndex,"table")}},{key:"$addNextCol",value:function(){var e=this;this.$setSelection(this.tableEditor.info.tableIndex,"table");var t=this.codeMirror.getSelection().split("\n"),n=Wu(t).call(t,(function(t,n){var r=t.split("|"),A=1===n?":-:":"";return Ru(r).call(r,e.tableEditor.info.tdIndex+2,0,A),r.join("|")})).join("\n");this.codeMirror.replaceSelection(n),this.$findTableInEditor(),this.$setSelection(this.tableEditor.info.tableIndex,"table")}},{key:"$drawDrag",value:function(){var e=this.tableEditor.info.isTHead;this.$setSelection(this.tableEditor.info.tableIndex,"table"),e?this.$dragCol():this.$dragLine()}},{key:"$dragCol",value:function(){var e=this.tableEditor.info.tdIndex,t=this.target.parentElement,n=this.codeMirror.getSelection().split(/\n/),r=this.tableEditor.info.tdNode,A=this;r.setAttribute("draggable",!0),t.addEventListener("dragleave",(function(e){A.setStyle(e.target,"border","1px solid #dfe6ee")})),t.addEventListener("dragover",(function(t){var n;t.preventDefault();var r=pc(n=Nl(t.target.parentElement.childNodes)).call(n,t.target);A.$dragSymbol(t.target,e,r)})),t.addEventListener("drop",(function(t){var r;t.preventDefault();var i=pc(r=Nl(t.target.parentElement.childNodes)).call(r,t.target),o=Wu(n).call(n,(function(t,n){var r,o=AA(r=t.split("|")).call(r,(function(e,t){return""!==e}));return"|".concat(A.$operateLines(e,i,o).join("|"),"|")})).join("\n");A.codeMirror.replaceSelection(o),A.setStyle(t.target,"border","1px solid #dfe6ee"),A.$findTableInEditor(),A.$setSelection(A.tableEditor.info.tableIndex,"table")}))}},{key:"$dragLine",value:function(){var e=this.tableEditor.info.trNode;e.setAttribute("draggable",!0),this.$setSelection(this.tableEditor.info.tableIndex,"table");var t=this.tableEditor.info.trIndex+2,n=e.parentElement,r=this.codeMirror.getSelection().split(/\n/),A=this;n.addEventListener("dragleave",(function(e){A.setStyle(e.target.parentElement,"border","1px solid #dfe6ee")})),n.addEventListener("dragover",(function(e){var n;e.preventDefault();var r=pc(n=Nl(e.target.parentElement.parentElement.childNodes)).call(n,e.target.parentElement)+2;A.$dragSymbol(e.target,t,r)})),n.addEventListener("drop",(function(e){var n;e.preventDefault();var i=pc(n=Nl(e.target.parentElement.parentElement.childNodes)).call(n,e.target.parentElement)+2,o=A.$operateLines(t,i,r).join("\n");A.codeMirror.replaceSelection(o),A.$findTableInEditor(),A.$setSelection(A.tableEditor.info.tableIndex,"table"),A.setStyle(e.target.parentElement,"border","1px solid #dfe6ee")}))}},{key:"$dragSymbol",value:function(e,t,n){var r=this.target;r!==e&&t!==n&&("TH"===r.tagName?tn&&(this.setStyle(e,"border","1px solid #dfe6ee"),this.setStyle(e,"border-left","2px solid #6897bb")):"TD"===r.tagName&&(tn&&(this.setStyle(e.parentElement,"border","1px solid #dfe6ee"),this.setStyle(e.parentElement,"border-top","2px solid #6897bb"))))}},{key:"$operateLines",value:function(e,t,n){if(et){var r=n[e];Ru(n).call(n,e,1),Ru(n).call(n,t,0,r)}return n}}]),e}(),AB=["javascript","typescript","html","css","shell","python","golang","java","c","c++","c#","php","ruby","swift","kotlin","scala","rust","dart","elixir","haskell","lua","perl","r","sql"],iB=Error,oB=v("".replace),aB=String(iB("zxcasd").stack),sB=/\n\s*at [^:]*:[^\n]*/,lB=sB.test(aB),cB=!s((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",T(1,7)),7!==e.stack)})),uB=ye("toStringTag"),fB=a.Error,hB=[].push,dB=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,A=R(gB,this);LA?n=LA(new fB,A?bA(this):gB):(n=A?this:nn(gB),ze(n,uB,"Error")),void 0!==t&&ze(n,"message",function(e,t){return void 0===e?arguments.length<2?"":t:yn(e)}(t)),cB&&ze(n,"stack",function(e,t){if(lB&&"string"==typeof e&&!iB.prepareStackTrace)for(;t--;)e=oB(e,sB,"");return e}(n.stack,1)),function(e,t){_(t)&&"cause"in t&&ze(e,"cause",t.cause)}(n,r);var i=[];return Rf(e,hB,{that:i}),ze(n,"errors",i),n};LA?LA(dB,fB):function(e,t,n){for(var r=ri(t),A=Je.f,i=Fe.f,o=0;o=51&&/native code/.test(e))return!1;var n=new ob((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[lb]=r,!(cb=n.then((function(){}))instanceof r)||!t&&ab&&!ub})),hb={CONSTRUCTOR:fb,REJECTION_EVENT:ub,SUBCLASSING:cb},db=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=ee(t),this.reject=ee(n)},gb={f:function(e){return new db(e)}},pb=$B.set,mb="Promise",vb=hb.CONSTRUCTOR,yb=hb.REJECTION_EVENT,wb=Jn.getterFor(mb),Bb=Jn.set,bb=ob&&ob.prototype,Cb=ob,Qb=bb,kb=a.TypeError,Tb=a.document,xb=a.process,Eb=gb.f,Fb=Eb,Ub=!!(Tb&&Tb.createEvent&&a.dispatchEvent),Sb="unhandledrejection",Lb=function(e){var t;return!(!_(e)||!y(t=e.then))&&t},Hb=function(e,t){var n,r,A,i=t.value,o=1==t.state,a=o?e.ok:e.fail,s=e.resolve,l=e.reject,c=e.domain;try{a?(o||(2===t.rejection&&Ob(t),t.rejection=1),!0===a?n=i:(c&&c.enter(),n=a(i),c&&(c.exit(),A=!0)),n===e.promise?l(kb("Promise-chain cycle")):(r=Lb(n))?b(r,n,s,l):s(n)):l(i)}catch(e){c&&!A&&c.exit(),l(e)}},Ib=function(e,t){e.notified||(e.notified=!0,eb((function(){for(var n,r=e.reactions;n=r.get();)Hb(n,e);e.notified=!1,t&&!e.rejection&&_b(e)})))},Mb=function(e,t,n){var r,A;Ub?((r=Tb.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),a.dispatchEvent(r)):r={promise:t,reason:n},!yb&&(A=a["on"+e])?A(r):e===Sb&&function(e,t){var n=a.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},_b=function(e){b(pb,a,(function(){var t,n=e.facade,r=e.value;if(Db(e)&&(t=tb((function(){Ud?xb.emit("unhandledRejection",r,n):Mb(Sb,n,r)})),e.rejection=Ud||Db(e)?2:1,t.error))throw t.value}))},Db=function(e){return 1!==e.rejection&&!e.parent},Ob=function(e){b(pb,a,(function(){var t=e.facade;Ud?xb.emit("rejectionHandled",t):Mb("rejectionhandled",t,e.value)}))},Nb=function(e,t,n){return function(r){e(t,r,n)}},Rb=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Ib(e,!0))},Pb=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw kb("Promise can't be resolved itself");var r=Lb(t);r?eb((function(){var n={done:!1};try{b(r,t,Nb(Pb,n,e),Nb(Rb,n,e))}catch(t){Rb(n,t,e)}})):(e.value=t,e.state=1,Ib(e,!1))}catch(t){Rb({done:!1},t,e)}}};vb&&(Qb=(Cb=function(e){Kf(this,Qb),ee(e),b(rb,this);var t=wb(this);try{e(Nb(Pb,t),Nb(Rb,t))}catch(e){Rb(t,e)}}).prototype,(rb=function(e){Bb(this,{type:mb,done:!1,notified:!1,parent:!1,reactions:new ib,rejection:!1,state:0,value:void 0})}).prototype=Un(Qb,"then",(function(e,t){var n=wb(this),r=Eb(ih(this,Cb));return n.parent=!0,r.ok=!y(e)||e,r.fail=y(t)&&t,r.domain=Ud?xb.domain:void 0,0==n.state?n.reactions.add(r):eb((function(){Hb(r,n)})),r.promise})),Ab=function(){var e=new rb,t=wb(e);this.promise=e,this.resolve=Nb(Pb,t),this.reject=Nb(Rb,t)},gb.f=Eb=function(e){return e===Cb||undefined===e?new Ab(e):Fb(e)}),Ye({global:!0,constructor:!0,wrap:!0,forced:vb},{Promise:Cb}),On(Cb,mb,!1,!0),Jf(mb);var Kb=hb.CONSTRUCTOR||!_l((function(e){ob.all(e).then(void 0,(function(){}))}));Ye({target:"Promise",stat:!0,forced:Kb},{all:function(e){var t=this,n=gb.f(t),r=n.resolve,A=n.reject,i=tb((function(){var n=ee(t.resolve),i=[],o=0,a=1;Rf(e,(function(e){var s=o++,l=!1;a++,b(n,t,e).then((function(e){l||(l=!0,i[s]=e,--a||r(i))}),A)})),--a||r(i)}));return i.error&&A(i.value),n.promise}});var $b=hb.CONSTRUCTOR;ob&&ob.prototype,Ye({target:"Promise",proto:!0,forced:$b,real:!0},{catch:function(e){return this.then(void 0,e)}}),Ye({target:"Promise",stat:!0,forced:Kb},{race:function(e){var t=this,n=gb.f(t),r=n.reject,A=tb((function(){var A=ee(t.resolve);Rf(e,(function(e){b(A,t,e).then(n.resolve,r)}))}));return A.error&&r(A.value),n.promise}}),Ye({target:"Promise",stat:!0,forced:hb.CONSTRUCTOR},{reject:function(e){var t=gb.f(this);return b(t.reject,void 0,e),t.promise}});var Xb=function(e,t){if(Ke(e),_(t)&&t.constructor===e)return t;var n=gb.f(e);return(0,n.resolve)(t),n.promise},Vb=hb.CONSTRUCTOR,jb=N("Promise"),Gb=!Vb;Ye({target:"Promise",stat:!0,forced:true},{resolve:function(e){return Xb(Gb&&this===jb?ob:this,e)}}),Ye({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=gb.f(t),r=n.resolve,A=n.reject,i=tb((function(){var n=ee(t.resolve),A=[],i=0,o=1;Rf(e,(function(e){var a=i++,s=!1;o++,b(n,t,e).then((function(e){s||(s=!0,A[a]={status:"fulfilled",value:e},--o||r(A))}),(function(e){s||(s=!0,A[a]={status:"rejected",reason:e},--o||r(A))}))})),--o||r(A)}));return i.error&&A(i.value),n.promise}});var Wb="No one promise resolved";Ye({target:"Promise",stat:!0},{any:function(e){var t=this,n=N("AggregateError"),r=gb.f(t),A=r.resolve,i=r.reject,o=tb((function(){var r=ee(t.resolve),o=[],a=0,s=1,l=!1;Rf(e,(function(e){var c=a++,u=!1;s++,b(r,t,e).then((function(e){u||l||(l=!0,A(e))}),(function(e){u||l||(u=!0,o[c]=e,--s||i(new n(o,Wb)))}))})),--s||i(new n(o,Wb))}));return o.error&&i(o.value),r.promise}});var Jb=ob&&ob.prototype,zb=!!ob&&s((function(){Jb.finally.call({then:function(){}},(function(){}))}));Ye({target:"Promise",proto:!0,real:!0,forced:zb},{finally:function(e){var t=ih(this,N("Promise")),n=y(e);return this.then(n?function(n){return Xb(t,e()).then((function(){return n}))}:e,n?function(n){return Xb(t,e()).then((function(){throw n}))}:e)}});var Zb=D.Promise,qb=Zb;Ye({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=gb.f(this),n=tb(e);return(n.error?t.reject:t.resolve)(n.value),t.promise}});var Yb=qb;function eC(e,t,n,r,A,i,o){try{var a=e[i](o),s=a.value}catch(e){return void n(e)}a.done?t(s):Yb.resolve(s).then(r,A)}function tC(e){return function(){var t=this,n=arguments;return new Yb((function(r,A){var i=e.apply(t,n);function o(e){eC(i,r,A,o,a,"next",e)}function a(e){eC(i,r,A,o,a,"throw",e)}o(void 0)}))}}var nC=r((function(e){function t(n){return e.exports=t="function"==typeof Si&&"symbol"==typeof Pi?function(e){return typeof e}:function(e){return e&&"function"==typeof Si&&e.constructor===Si&&e!==Si.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}));n(nC);var rC=ei,AC=v([].reverse),iC=[1,2];Ye({target:"Array",proto:!0,forced:String(iC)===String(iC.reverse())},{reverse:function(){return zn(this)&&(this.length=this.length),AC(this)}});var oC=tA("Array").reverse,aC=Array.prototype,sC=function(e){var t=e.reverse;return e===aC||R(aC,e)&&t===aC.reverse?oC:t},lC=r((function(e){var t=nC.default;function n(){e.exports=n=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var r={},A=Object.prototype,i=A.hasOwnProperty,o="function"==typeof Si?Si:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,n){return fi(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var A=t&&t.prototype instanceof d?t:d,i=vi(A.prototype),o=new k(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(A,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===A)throw i;return x()}for(n.method=A,n.arg=i;;){var o=n.delegate;if(o){var a=b(o,n);if(a){if(a===h)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=f(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===h)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}(e,n,o),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}r.wrap=u;var h={};function d(){}function g(){}function p(){}var m={};c(m,a,(function(){return this}));var v=Vi&&Vi(Vi(T([])));v&&v!==A&&i.call(v,a)&&(m=v);var y=p.prototype=d.prototype=vi(m);function w(e){var t;rC(t=["next","throw","return"]).call(t,(function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function B(e,n){function r(A,o,a,s){var l=f(e[A],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==t(u)&&i.call(u,"__await")?n.resolve(u.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):n.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var A;this._invoke=function(e,t){function i(){return new n((function(n,A){r(e,t,n,A)}))}return A=A?A.then(i,i):i()}}function b(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,b(e,t),"throw"===t.method))return h;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=f(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,h;var A=r.arg;return A?A.done?(t[e.resultName]=A.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):A:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function Q(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],rC(e).call(e,C,this),this.reset(!0)}function T(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n=0;--r){var A=this.tryEntries[r],o=A.completion;if("root"===A.tryLoc)return n("end");if(A.tryLoc<=this.prev){var a=i.call(A,"catchLoc"),s=i.call(A,"finallyLoc");if(a&&s){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),Q(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var A=r.arg;Q(n)}return A}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}));n(lC);var cC=lC();function uC(e){function t(t){t.clipboardData.setData("text/html",e),t.clipboardData.setData("text/plain",e),t.preventDefault()}document.addEventListener("copy",t),document.execCommand("copy"),document.removeEventListener("copy",t)}function fC(e){var t=document.createElement("input");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}function hC(e){return dC.apply(this,arguments)}function dC(){return dC=tC(cC.mark((function e(t){return cC.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(navigator.clipboard){e.next=3;break}return fC(t),e.abrupt("return");case 3:return e.next=5,navigator.clipboard.writeText(t);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)}))),dC.apply(this,arguments)}var gC=function(){function e(t,n,r,A,i,o){ui(this,e),Gi(this,"codeBlockEditor",{info:{},editorDom:{}}),this.trigger=t,this.target=n,this.previewerDom=A,this.container=r,this.codeMirror=i,this.$cherry=o.previewer.$cherry,this.parent=o,this.$initReg()}return di(e,[{key:"$initReg",value:function(){this.codeBlockReg=this.codeBlockReg?this.codeBlockReg:mu().reg}},{key:"emit",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};switch(e){case"remove":return this.$remove();case"scroll":return this.$updateContainerPosition();case"previewUpdate":return this.$updateContainerPosition(),void(this.editing&&this.$setInputOffset());case"mouseup":return this.$tryRemoveMe(t,n)}}},{key:"$remove",value:function(){this.codeBlockEditor={info:{},codeBlockCodes:[],editorDom:{}}}},{key:"$tryRemoveMe",value:function(e,t){var n=this.codeBlockEditor.editorDom.inputDiv;this.editing&&n&&!n.contains(e.target)&&(this.editing=!1,this.$remove(),t())}},{key:"$findCodeInEditor",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$collectCodeBlockDom(),this.$collectCodeBlockCode(),e?this.$setLangSelection(this.codeBlockEditor.info.codeBlockIndex):this.$setBlockSelection(this.codeBlockEditor.info.codeBlockIndex)}},{key:"$collectCodeBlockDom",value:function(){var e=Nl(this.previewerDom.querySelectorAll('[data-type="codeBlock"]'));this.codeBlockEditor.info={codeBlockNode:this.target,codeBlockIndex:pc(e).call(e,this.target)}}},{key:"$collectCodeBlockCode",value:function(){var e=[];this.codeMirror.getValue().replace(this.codeBlockReg,(function(t){var n,r=t.replace(/^\n*/,""),A=((n=(arguments.length<=1?0:arguments.length-1)-2+1)<1||arguments.length<=n?void 0:arguments[n])+t.match(/^\n*/)[0].length;Zl(r).call(r,"```mermaid")||e.push({code:r,offset:A})})),this.codeBlockEditor.codeBlockCodes=e}},{key:"$setBlockSelection",value:function(e){var t,n,r,A,i=this.codeBlockEditor.codeBlockCodes[e],o=this.codeMirror.getValue(),a=null!==(t=null===(n=vc(o).call(o,0,i.offset).match(/\n/g))||void 0===n?void 0:n.length)&&void 0!==t?t:0,s=a+i.code.match(/\n/g).length,l=vc(r=i.code).call(r,0,-3).match(/[^\n]+\n*$/)[0].length;this.codeBlockEditor.info.selection=[{line:s-1,ch:l},{line:a+1,ch:0}],(A=this.codeMirror).setSelection.apply(A,Eh(this.codeBlockEditor.info.selection))}},{key:"$setLangSelection",value:function(e){var t,n,r,A,i=this.codeBlockEditor.codeBlockCodes[e],o=this.codeMirror.getValue(),a=null!==(t=null===(n=vc(o).call(o,0,i.offset).match(/\n/g))||void 0===n?void 0:n.length)&&void 0!==t?t:0,s=(null!==(r=i.code.match(/```\s*[^\n]+/)[0])&&void 0!==r?r:"```").length;this.codeBlockEditor.info.selection=[{line:a,ch:3},{line:a,ch:s}],(A=this.codeMirror).setSelection.apply(A,Eh(this.codeBlockEditor.info.selection))}},{key:"showBubble",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.$updateContainerPosition(),"hover"===this.trigger&&this.$showBtn(t),"click"===this.trigger&&this.$showContentEditor(),this.container.addEventListener("wheel",(function(t){t.stopPropagation(),t.preventDefault(),e.previewerDom.scrollTop+=t.deltaY/3}))}},{key:"$showContentEditor",value:function(){this.editing=!0,this.$findCodeInEditor(),this.$drawEditor()}},{key:"$showBtn",value:function(e){var t=this,n=this.target.dataset,r=n.changeLang,A=n.editCode,i=n.copyCode,o=n.lang;if(this.container.innerHTML="","true"===r&&e){this.container.innerHTML=function(e){var t=Wu(AB).call(AB,(function(t){var n,r;return e===t?zi(r='"):zi(n='")}));return'")}(o);var a=this.container.querySelector("#code-preview-lang-select");this.changeLangDom=a,this.changeLangDom.addEventListener("change",(function(e){e.preventDefault(),e.stopPropagation(),t.parent.$removeAllPreviewerBubbles("click"),t.$changeLang(e.target.value||"")}))}if("true"===A&&e){var s=document.createElement("div");s.className="cherry-edit-code-block",s.innerHTML='',this.container.appendChild(s),s.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation(),t.$hideAllBtn(),t.parent.$removeAllPreviewerBubbles("click"),t.parent.showCodeBlockPreviewerBubbles("click",t.target)})),this.editDom=s}if("true"===i){var l=document.createElement("div");l.className="cherry-copy-code-block",l.innerHTML='',this.container.appendChild(l),l.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation(),t.parent.$removeAllPreviewerBubbles("click"),t.$copyCodeBlock()})),this.copyDom=l}}},{key:"$hideAllBtn",value:function(){var e,t,n,r,A,i;null!==(e=this.changeLangDom)&&void 0!==e&&null!==(t=e.style)&&void 0!==t&&t.display&&(this.changeLangDom.style.display="none"),null!==(n=this.editDom)&&void 0!==n&&null!==(r=n.style)&&void 0!==r&&r.display&&(this.editDom.style.display="none"),null!==(A=this.copyDom)&&void 0!==A&&null!==(i=A.style)&&void 0!==i&&i.display&&(this.copyDom.style.display="none")}},{key:"$changeLang",value:function(e){this.$findCodeInEditor(!0),this.codeMirror.replaceSelection(e,"around")}},{key:"$drawEditor",value:function(){var e=document.createElement("div");e.className="cherry-previewer-codeBlock-content-handler__input";var t=document.createElement("textarea");t.id="codeMirrorEditor",e.appendChild(t);var n=ql.fromTextArea(t,{mode:"",theme:"default",scrollbarStyle:"null",lineNumbers:!0,autofocus:!0,lineWrapping:!0,cursorHeight:.85,indentUnit:4,tabSize:4,keyMap:"sublime"}),r=this.codeMirror;n.on("change",(function(){r.replaceSelection(n.getValue(),"around")})),this.codeBlockEditor.editorDom.inputDiv=e,this.codeBlockEditor.editorDom.inputDom=n,this.$updateEditorPosition(),this.container.appendChild(this.codeBlockEditor.editorDom.inputDiv),this.codeBlockEditor.editorDom.inputDom.focus(),this.codeBlockEditor.editorDom.inputDom.refresh(),n.setValue(this.codeMirror.getSelection())}},{key:"$copyCodeBlock",value:function(){var e=this.target.lastElementChild.innerText,t=this.$cherry.options.callback.onCopyCode({target:this.target},e);if(!1===t)return!1;var n=this.copyDom.querySelector("i.ch-icon-copy");n&&(n.className=n.className.replace("copy","ok"),lo((function(){n.className=n.className.replace("ok","copy")}),1e3)),uC(t)}},{key:"$updateContainerPosition",value:function(){this.codeBlockEditor.info.codeBlockNode=this.target;var e=this.$getPosition();this.setStyle(this.container,"width","".concat(e.width,"px")),this.setStyle(this.container,"top","".concat(e.top,"px")),this.setStyle(this.container,"left","".concat(e.left,"px"))}},{key:"$updateEditorPosition",value:function(){this.$setInputOffset();var e=getComputedStyle(this.codeBlockEditor.info.codeBlockNode),t=this.codeBlockEditor.editorDom.inputDom.getWrapperElement();this.setStyle(t,"fontSize",e.fontSize||"16px"),this.setStyle(t,"fontFamily",e.fontFamily),this.setStyle(t,"lineHeight","1.8em"),this.setStyle(t,"zIndex","1")}},{key:"$setInputOffset",value:function(){var e=this.$getPosition(),t=this.codeBlockEditor.editorDom.inputDiv;this.setStyle(t,"width","".concat(e.width,"px")),this.setStyle(t,"height","".concat(e.height+10,"px"))}},{key:"setStyle",value:function(e,t,n){e.getBoundingClientRect()[t]!==n&&(e.style[t]=n)}},{key:"$getPosition",value:function(){var e=this.codeBlockEditor.info.codeBlockNode.getBoundingClientRect(),t=this.previewerDom.parentNode.getBoundingClientRect();return{top:e.top-t.top,height:e.height,width:e.width,left:e.left-t.left,maxHeight:t.height}}}]),e}(),pC=function(e,t,n){return Math.min(Math.max(e,t),n)},mC={open:function(){this.resetStyle(),this.dom.style.display="block",this.postMessage("ready?")},close:function(){this.dom.style.display="none"},postMessage:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";null===(t=this.iframeDom)||void 0===t||null===(n=t.contentWindow)||void 0===n||n.postMessage({eventName:e,value:r},"*")},resetStyle:function(){var e=this.dom;e.style.left="10%",e.style.top="10%"},bindEvents:function(){this.bindClickEvents(),this.bindDNDEvents()},bindClickEvents:function(){var e=this;this.headCloseButton.addEventListener("click",(function(){e.close()})),this.footSureButton.addEventListener("click",(function(){e.postMessage("getData")}))},bindDNDEvents:function(){var e,t,n=this.dom,r=this.head,A=this.body,i=function(r){r.preventDefault();var A=pC(r.clientX-e,0,window.innerWidth-16),i=pC(r.clientY-t,0,window.innerHeight-16);n.style.left="".concat(A,"px"),n.style.top="".concat(i,"px")},o=function e(t){r.style.cursor="grab",A.style.pointerEvents=null,document.removeEventListener("mousemove",i),document.removeEventListener("mousemove",e)};r.addEventListener("mousedown",(function(a){a.target.classList.contains("cherry-dialog--close")||(e=a.clientX-n.offsetLeft,t=a.clientY-n.offsetTop,r.style.cursor="grabbing",A.style.pointerEvents="none",document.addEventListener("mousemove",i),document.addEventListener("mouseup",o))}))},draw:function(e,t,n){var r=this,A=e.iframeSrc,i=e.title;if(this.onSubmit=n,this.onReady=t,this.dom)return new RegExp("".concat(A,"$"),"i").test(this.iframeDom.src)||(this.iframeDom.src=A),void this.open();window.addEventListener("message",(function(e){if(e.data&&e.data.eventName)switch(e.data.eventName){case"getData:success":r.onSubmit(e.data.value),r.close();case"ready":r.onReady()}})),this.iframeDom=Vc("iframe","cherry-dialog-iframe",{src:A,style:"border: none;"}),this.dom=Vc("div","cherry-dialog",{style:["z-index:9999","display: block","position: absolute","top: 10%;left: 10%;width: 80%;height: 80%;","background-color: #FFF","box-shadow: 0px 50px 100px -12px rgba(0,0,0,.05),0px 30px 60px -30px rgba(0,0,0,.1)","border-radius: 6px","border: 1px solid #ddd;"].join(";")}),this.head=Vc("div","cherry-dialog--head",{style:["height: 30px","line-height: 30px","padding-left: 10px","padding-right: 10px","cursor: grab;"].join(";")}),this.body=Vc("div","cherry-dialog--body",{style:["position: absolute","bottom: 30px","top: 30px","left: 0","right: 0","overflow: hidden"].join(";")}),this.foot=Vc("div","cherry-dialog--foot",{style:["height: 30px","line-height: 30px","padding-left: 10px","padding-right: 10px","position: absolute","bottom: 0","left: 0","right: 0"].join(";")}),this.headTitle=Vc("span","cherry-dialog--title",{style:"user-select:none;"}),this.headCloseButton=Vc("i","cherry-dialog--close ch-icon ch-icon-close",{style:"float: right;font-size: 12px;cursor: pointer;"}),this.footSureButton=Vc("button","cherry-dialog--sure",{style:["float: right","cursor: pointer","margin: 3px","background-color: #4d90fe","color: #FFF","border: 1px solid #4d90fe","border-radius: 2px","padding: 2px 15px","user-select:none"].join(";")}),this.headCloseButton.title="关闭",this.footSureButton.textContent="确定",this.headTitle.textContent=i,this.head.appendChild(this.headTitle),this.head.appendChild(this.headCloseButton),this.foot.appendChild(this.footSureButton),this.body.appendChild(this.iframeDom),this.dom.appendChild(this.head),this.dom.appendChild(this.body),this.dom.appendChild(this.foot),this.bindEvents(),document.body.appendChild(this.dom)}};function vC(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n={iframeSrc:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",title:"draw.io"};mC.draw(n,(function(){mC.postMessage("setData",e)}),(function(e){t(e)}))}var yC=function(){return xo.Date.now()},wC=/\s/;var BC=function(e){for(var t=e.length;t--&&wC.test(e.charAt(t)););return t},bC=/^\s+/;var CC=function(e){return e?e.slice(0,BC(e)+1).replace(bC,""):e},QC=/^[-+]0x[0-9a-f]+$/i,kC=/^0b[01]+$/i,TC=/^0o[0-7]+$/i,xC=parseInt;var EC=function(e){if("number"==typeof e)return e;if(op(e))return NaN;if(Oo(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Oo(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=CC(e);var n=kC.test(e);return n||TC.test(e)?xC(e.slice(2),n?2:8):QC.test(e)?NaN:+e},FC=Math.max,UC=Math.min;var SC=function(e,t,n){var r,A,i,o,a,s,l=0,c=!1,u=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var n=r,i=A;return r=A=void 0,l=t,o=e.apply(i,n)}function d(e){var n=e-s;return void 0===s||n>=t||n<0||u&&e-l>=i}function g(){var e=yC();if(d(e))return p(e);a=setTimeout(g,function(e){var n=t-(e-s);return u?UC(n,i-(e-l)):n}(e))}function p(e){return a=void 0,f&&r?h(e):(r=A=void 0,o)}function m(){var e=yC(),n=d(e);if(r=arguments,A=this,s=e,n){if(void 0===a)return function(e){return l=e,a=setTimeout(g,t),c?h(e):o}(s);if(u)return clearTimeout(a),a=setTimeout(g,t),h(s)}return void 0===a&&(a=setTimeout(g,t)),o}return t=EC(t)||0,Oo(n)&&(c=!!n.leading,i=(u="maxWait"in n)?FC(EC(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),m.cancel=function(){void 0!==a&&clearTimeout(a),l=0,r=s=A=a=void 0},m.flush=function(){return void 0===a?o:p(yC())},m};function LC(e,t){var n=document.createElement("a");n.href=e,n.download=t,n.click(),n.remove()}function HC(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("svg"!==t.format){var n=t.width,r=void 0===n?e.width.baseVal.value:n,A=t.height,i=void 0===A?e.height.baseVal.value:A,o=t.scale,a=void 0===o?5:o,s=t.quality,l=void 0===s?1:s,c=t.backgroundColor,u=void 0===c?"white":c,f=t.filename,h=void 0===f?"formula":f,d=t.format,g=void 0===d?"png":d,p=t.mimeType,m=void 0===p?"image/png":p,v=IC(e),y=document.createElement("canvas"),w=y.getContext("2d"),B=new Image;B.src="data:image/svg+xml;base64,".concat(btoa(unescape(encodeURIComponent(v)))),B.onload=function(){y.width=r*a,y.height=i*a,w.fillStyle=u,w.fillRect(0,0,y.width,y.height),w.drawImage(B,0,0,y.width,y.height),y.toBlob((function(e){var t,n=Sw.createObjectURL(e);LC(n,zi(t="".concat(h,".")).call(t,g)),Sw.revokeObjectURL(n)}),m,l)}}else{var b;!function(e,t){var n=IC(e),r=new Blob([n],{type:"image/svg+xml;charset=utf-8"}),A=Sw.createObjectURL(r);LC(A,t),Sw.revokeObjectURL(A)}(e,null!==(b=t.filename)&&void 0!==b?b:"formula.svg")}}function IC(e){return(new XMLSerializer).serializeToString(e)}var MC=function(){function e(t,n,r,A,i){ui(this,e),Gi(this,"bubbleContainer",null),this.trigger=t,this.target=n,this.container=r,this.previewerDom=A,this.editor=i}return di(e,[{key:"emit",value:function(e,t){switch(e){case"remove":case"scroll":return this.remove()}}},{key:"drawBubble",value:function(){var e,t,n,r=document.createElement("div");r.innerHTML='
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n
    ',r.id="formula-utils-bubble-container",r.className=["formula-utils-bubble-container"].join(" "),this.bubbleContainer=r,null==this||null===(e=this.editor)||void 0===e||null===(t=e.$cherry)||void 0===t||null===(n=t.wrapperDom)||void 0===n||n.appendChild(r)}},{key:"showBubble",value:function(e,t){var n,r,A,i,o,a=null==this||null===(n=this.editor)||void 0===n||null===(r=n.$cherry)||void 0===r||null===(A=r.wrapperDom)||void 0===A||null===(i=A.children)||void 0===i?void 0:i.namedItem("formula-utils-bubble-container"),s=this.target.getBoundingClientRect();a instanceof HTMLElement?this.bubbleContainer=a:this.drawBubble(),this.bubbleContainer.style.display="flex",this.bubbleContainer.style.top="".concat(t||s.top,"px"),this.bubbleContainer.style.left="".concat(e||s.left,"px"),this.bubbleContainer.addEventListener("click",eo(o=this.bubbleClickHandler).call(o,this),{once:!0}),this.collectFormulaCode()}},{key:"collectFormulaCode",value:function(){var e=[];this.editor.editor.getValue().replace(/(\$+)\s*([\w\W]*?)\s*(\1)/g,(function(t,n,r,A,i){e.push({code:r,offset:i})})),this.formulaCode=e}},{key:"remove",value:function(){this.bubbleContainer&&(this.bubbleContainer.style.display="none")}},{key:"bubbleClickHandler",value:function(e){var t=this;e.preventDefault(),e.stopPropagation();var n=e.target;if(n instanceof HTMLButtonElement){var r=n.dataset.name,A=void 0===r?"":r;switch(A){case"svg":case"png":case"jpg":this.target instanceof SVGSVGElement&&HC(this.target,{format:A});break;case"html":case"svgcode":if(this.target instanceof SVGSVGElement)if("svgcode"===A)hC(IC(this.target));else{var i=this.target.parentElement.querySelector("math");i.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),hC(i.outerHTML)}break;case"\\":case"$":case"$$":case"latex":case"mathml":case"docx":var o=this.previewerDom.querySelectorAll("mjx-container"),a=-1;if(ti(o).call(o,(function(e,n){e===t.target.parentElement&&(a=n)})),a>=0&&this.formulaCode[a]){var s=this.formulaCode[a].code;if("mathml"===A||"docx"===A){var l,c,u,f,h=sl(l=this.editor.$cherry.engine.hooks.paragraph).call(l,(function(e){return e instanceof mg}));if(h&&"MathJax"===h.engine)null===(c=window.MathJax)||void 0===c||c.texReset(),null===(u=window.MathJax)||void 0===u||null===(f=u.tex2mmlPromise)||void 0===f||f.call(u,s,{display:!0}).then((function(e){"mathml"===A&&hC(e)}))}else if("latex"===A)hC(s);else if("$"===A){var d,g;hC(zi(d=zi(g="".concat(A)).call(g,s)).call(d,A))}else if("$$"===A){var p,m;hC(zi(p=zi(m="".concat(A,"\n")).call(m,s,"\n")).call(p,A))}else"\\"===A&&hC("\\".concat(s))}}}this.remove()}}]),e}();Fe.f;var _C=v("".endsWith),DC=v("".slice),OC=Math.min,NC=Xl("endsWith");Ye({target:"String",proto:!0,forced:!NC},{endsWith:function(e){var t=yn(I(this));Kl(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,A=void 0===n?r:OC(It(n),r),i=yn(e);return _C?_C(t,i,A):DC(t,A-i.length,A)===i}});var RC=tA("String").endsWith,PC=String.prototype,KC=function(e){var t=e.endsWith;return"string"==typeof e||e===PC||R(PC,e)&&t===PC.endsWith?RC:t},$C=function(){function e(t,n,r,A,i){var o,a;ui(this,e),Gi(this,"bubbleContainer",null),Gi(this,"regList",gu),Gi(this,"range",[]),Gi(this,"position",{line:0,ch:0}),Gi(this,"input",!1),Gi(this,"isCheckbox",!1),this.trigger=t,this.target=n,this.container=r,this.previewerDom=A,this.editor=i,this.handleEditablesInputBinded=eo(o=this.handleEditablesInput).call(o,this),this.handleEditablesUnfocusBinded=eo(a=this.handleEditablesUnfocus).call(a,this),this.target.addEventListener("input",this.handleEditablesInputBinded,!1),this.target.addEventListener("focusout",this.handleEditablesUnfocusBinded,!1),this.setSelection()}return di(e,[{key:"emit",value:function(e,t){if("remove"===e)return this.remove()}},{key:"remove",value:function(){this.bubbleContainer&&(this.bubbleContainer.style.display="none",this.bubbleContainer.children[0]instanceof HTMLTextAreaElement&&(this.bubbleContainer.children[0].value="")),this.target.removeAttribute("contenteditable"),this.target.removeEventListener("input",this.handleEditablesInputBinded,!1),this.target.removeEventListener("focusout",this.handleEditablesUnfocusBinded,!1);var e=this.editor.editor.getCursor();this.editor.editor.setSelection(e,e)}},{key:"setSelection",value:function(){var e,t,n=this,r=Nl(this.previewerDom.querySelectorAll("li.cherry-list-item")),A=Hu(r).call(r,(function(e){return e===n.target.parentElement}));if(-1!==A){var i=null!==(e=null===(t=Qu(null==this?void 0:this.editor.editor.getValue()))||void 0===t?void 0:t.split("\n"))&&void 0!==e?e:[],o=0,a=-1,s=-1,l="";ti(i).call(i,(function(e,t){if(e&&"/n"!==e){var r=n.regList.exec(e);if(null!==r){var i=gc(r,5),c=i[1],u=i[2],f=i[3],h=i[4];o===A&&void 0!==c&&(a=t,l=h,s=pc(e).call(e,l),null!=u&&KC(u).call(u,".")&&(s+=1),f&&(n.isCheckbox=!0)),o+=1}}}));var c={line:a,ch:s},u={line:a,ch:s+l.length};this.editor.editor.setSelection(c,u),this.range=[c,u],this.position=this.editor.editor.getCursor()}}},{key:"handleEditablesInput",value:function(e){this.input=!0,e.stopPropagation(),e.preventDefault(),e.target instanceof HTMLParagraphElement&&("insertParagraph"!==e.inputType&&"insertLineBreak"!==e.inputType||this.handleInsertLineBreak())}},{key:"handleEditablesUnfocus",value:function(e){if(e.stopPropagation(),e.preventDefault(),e.target instanceof HTMLParagraphElement){if(this.input){var t=this.isCheckbox?e.target.innerHTML.replace(/<\/span>/,""):e.target.innerHTML,n=this.editor.$cherry.engine.makeMarkdown(t),r=gc(this.range,2),A=r[0],i=r[1];this.editor.editor.replaceRange(n,A,i),this.isCheckbox=!1,this.input=!1}this.remove()}}},{key:"handleInsertLineBreak",value:function(){var e,t,n=this.editor.editor.getCursor(),r=this.editor.editor.getLine(n.line),A=this.regList.exec(r),i="\n- ";null!==A&&(i=zi(e="\n".concat(A[1])).call(e,null===(t=A[2])||void 0===t?void 0:t.replace("[x]","[ ] ")));this.editor.editor.replaceRange(i,{line:n.line,ch:this.editor.editor.getLine(n.line).length}),this.editor.editor.setCursor({line:n.line+1,ch:i.length+1}),this.editor.editor.focus(),this.remove()}}]),e}(),XC=function(){function e(t){ui(this,e),this.previewer=t,this.editor=t.editor,this.previewerDom=this.previewer.getDom(),this.enablePreviewerBubble=this.previewer.options.enablePreviewerBubble,this.bubble={},this.bubbleHandler={},this.init()}return di(e,[{key:"init",value:function(){var e,t,n,r=this;this.oldWrapperDomOverflow=this.previewer.$cherry.wrapperDom.style.overflow,this.previewerDom.addEventListener("click",eo(e=this.$onClick).call(e,this)),this.previewerDom.addEventListener("mouseover",eo(t=this.$onMouseOver).call(t,this)),document.addEventListener("mousedown",(function(e){var t;ti(t=Pw(r.bubbleHandler)).call(t,(function(t){return t.emit("mousedown",e)}))})),document.addEventListener("mouseup",(function(e){var t;ti(t=Pw(r.bubbleHandler)).call(t,(function(t){return t.emit("mouseup",e,(function(){return r.$removeAllPreviewerBubbles("click")}))}))})),document.addEventListener("mousemove",(function(e){var t;ti(t=Pw(r.bubbleHandler)).call(t,(function(t){return t.emit("mousemove",e)}))})),document.addEventListener("keyup",(function(e){var t;ti(t=Pw(r.bubbleHandler)).call(t,(function(t){return t.emit("keyup",e)}))})),this.previewerDom.addEventListener("scroll",(function(e){var t;ti(t=Pw(r.bubbleHandler)).call(t,(function(t){return t.emit("scroll",e)}))}),!0),Zc.on(this.previewer.instanceId,Zc.Events.previewerClose,(function(){return r.$removeAllPreviewerBubbles()})),this.previewer.options.afterUpdateCallBack.push((function(){var e;ti(e=Pw(r.bubbleHandler)).call(e,(function(e){return e.emit("previewUpdate",(function(){return r.$removeAllPreviewerBubbles()}))}))})),this.previewerDom.addEventListener("change",eo(n=this.$onChange).call(n,this)),this.removeHoverBubble=SC((function(){return r.$removeAllPreviewerBubbles("hover")}),400)}},{key:"isCherryCodeBlock",value:function(e){if("DIV"===e.nodeName&&"codeBlock"===e.dataset.type)return e;var t=this.$getClosestNode(e,"DIV");return!1!==t&&("codeBlock"===t.dataset.type&&t)}},{key:"isCherryTable",value:function(e){var t=this.$getClosestNode(e,"DIV");return!1!==t&&(!(/simple-table/.test(t.className)||!/cherry-table-container/.test(t.className))&&t)}},{key:"$isEnableBubbleAndEditorShow",value:function(){return!!this.enablePreviewerBubble&&"hide"!==this.previewer.$cherry.getStatus().editor}},{key:"$onMouseOver",value:function(e){var t=e.target;if(t instanceof Element&&void 0!==t.tagName){switch(t.tagName){case"TD":case"TH":if(!this.$isEnableBubbleAndEditorShow())return;var n=this.isCherryTable(e.target);if(!1===n)return;return this.removeHoverBubble.cancel(),this.$removeAllPreviewerBubbles("hover"),void this.$showTablePreviewerBubbles("hover",e.target,n);case"PRE":case"CODE":case"SPAN":case"DIV":var r=this.isCherryCodeBlock(e.target);if(!1===r)return;return void this.showCodeBlockPreviewerBubbles("hover",r)}this.removeHoverBubble()}}},{key:"$onMouseOut",value:function(){this.enablePreviewerBubble&&this.previewer.$cherry.getStatus().editor}},{key:"$dealCheckboxClick",value:function(e){var t=this,n=e.target,r=Nl(this.previewerDom.querySelectorAll(".ch-icon-square, .ch-icon-check"));this.checkboxIdx=pc(r).call(r,n);var A=Qu(this.editor.editor.getValue()).split("\n"),i=0,o=-1,a=-1;ti(A).call(A,(function(e,n){var r=wl(e).call(e);(Zl(r).call(r,"- [ ]")||Zl(r).call(r,"- [x]"))&&(i===t.checkboxIdx&&(o=n,a=pc(e).call(e,"- [")+3),i+=1)})),-1!==o&&(this.editor.editor.setSelection({line:o,ch:a},{line:o,ch:a+1}),this.editor.editor.replaceSelection(" "===this.editor.editor.getSelection()?"x":" ","around"))}},{key:"$onClick",value:function(e){var t,n=this,r=e.target,A=this.previewer.$cherry.getStatus();if("hide"!==A.editor&&r instanceof Element){if(r instanceof HTMLImageElement&&"IMG"===r.tagName&&"drawio"===r.getAttribute("data-type")){if(!this.beginChangeDrawioImg(r))return;var i=decodeURI(r.getAttribute("data-xml"));vC(this.previewer.$cherry.options.drawioIframeUrl,i,(function(e){var t,r=e.xmlData,A=e.base64;n.editor.editor.replaceSelection(zi(t="(".concat(A,"){data-type=drawio data-xml=")).call(t,encodeURI(r),"}"),"around")}))}else if(this.enablePreviewerBubble&&("ch-icon ch-icon-square"!==r.className&&"ch-icon ch-icon-check"!==r.className||this.$dealCheckboxClick(e),this.$removeAllPreviewerBubbles("click"),void 0!==r.tagName))switch(r.tagName){case"IMG":r instanceof HTMLImageElement&&this.$showImgPreviewerBubbles(r);break;case"TD":case"TH":if(r instanceof HTMLElement){var o=this.isCherryTable(r);if(!1===o)return;this.$showTablePreviewerBubbles("click",r,o)}break;case"svg":"MJX-CONTAINER"===(null==r||null===(t=r.parentElement)||void 0===t?void 0:t.tagName)&&this.$showFormulaPreviewerBubbles("click",r,{x:e.pageX,y:e.pageY});break;case"A":e.stopPropagation();break;case"P":r instanceof HTMLParagraphElement&&r.parentElement instanceof HTMLLIElement&&(0!==r.children.length&&(e.preventDefault(),e.stopPropagation()),r.setAttribute("contenteditable","true"),r.focus(),this.$showListPreviewerBubbles("click",r))}}else"show"===A.previewer&&this.previewer.$cherry.options.callback.onClickPreview&&this.previewer.$cherry.options.callback.onClickPreview(e)}},{key:"$onChange",value:function(e){}},{key:"$getClosestNode",value:function(e,t){return e.tagName===t?e:"BODY"!==e.parentNode.tagName&&this.$getClosestNode(e.parentNode,t)}},{key:"$removeAllPreviewerBubbles",value:function(){var e,t,n,r,A=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";ti(e=AA(t=$w(this.bubble)).call(t,(function(e){var t=gc(e,1)[0];return!i||i===t}))).call(e,(function(e){var t=gc(e,2),n=t[0];t[1].remove(),delete A.bubble[n]})),ti(n=AA(r=$w(this.bubbleHandler)).call(r,(function(e){var t=gc(e,1)[0];return!i||i===t}))).call(n,(function(e){var t=gc(e,2),n=t[0];t[1].emit("remove"),delete A.bubbleHandler[n]})),mn(this.bubbleHandler).length<=0&&(this.previewer.$cherry.wrapperDom.style.overflow=this.oldWrapperDomOverflow||"")}},{key:"$showTablePreviewerBubbles",value:function(e,t,n){if(this.bubbleHandler[e]&&this.bubbleHandler[e].tableElement===n)this.bubbleHandler[e].showBubble();else{this.$createPreviewerBubbles(e,"click"===e?"table-content-handler":"table-hover-handler");var r=new rB(e,t,this.bubble[e],this.previewerDom,this.editor.editor,n);r.showBubble(),this.bubbleHandler[e]=r}}},{key:"showCodeBlockPreviewerBubbles",value:function(e,t){if(this.bubbleHandler[e]&&this.bubbleHandler[e].target===t)this.removeHoverBubble.cancel();else{this.$removeAllPreviewerBubbles("hover"),this.$createPreviewerBubbles(e,"codeBlock-".concat(e,"-handler"));var n=new gC(e,t,this.bubble[e],this.previewerDom,this.editor.editor,this);n.showBubble(this.$isEnableBubbleAndEditorShow()),this.bubbleHandler[e]=n}}},{key:"$showImgPreviewerBubbles",value:function(e){var t;this.$createPreviewerBubbles();var n=Nl(this.previewerDom.querySelectorAll("img"));if(this.totalImgs=n.length,this.imgIndex=pc(n).call(n,e),!this.beginChangeImgValue(e))return{emit:function(){}};Vw.showBubble(e,this.bubble.click,this.previewerDom),Vw.bindChange(eo(t=this.changeImgValue).call(t,this)),this.bubbleHandler.click=Vw}},{key:"$showFormulaPreviewerBubbles",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.$createPreviewerBubbles(e,"formula-hover-handler");var r=new MC(e,t,this.bubble[e],this.previewerDom,this.editor);r.showBubble((null==n?void 0:n.x)||0,(null==n?void 0:n.y)||0),this.bubbleHandler[e]=r}},{key:"$showListPreviewerBubbles",value:function(e,t){this.$createPreviewerBubbles(e,"list-hover-handler");var n=new $C(e,t,this.bubble[e],this.previewerDom,this.editor);this.bubbleHandler[e]=n}},{key:"beginChangeDrawioImg",value:function(e){var t,n=Nl(this.previewerDom.querySelectorAll('img[data-type="drawio"]')),r=n.length,A=pc(n).call(n,e),i=Qu(this.editor.editor.getValue()),o=i.match(Cu),a=o[A]?wl(t=o[A].replace(/^!\[.*?\]\((.*?)\)/,"$1")).call(t):"";if(o.length===r||e.getAttribute("src")===a)for(var s=i.split(Cu),l=0,c=0,u=0,f=0,h=0;h0&&void 0!==arguments[0]?arguments[0]:"click",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"img-size-handler";this.bubble[e]||(this.bubble[e]=document.createElement("div"),this.bubble[e].className="cherry-previewer-".concat(t),this.previewerDom.after(this.bubble[e]),"hover"===e&&(this.bubble[e].addEventListener("mouseover",this.removeHoverBubble.cancel),this.bubble[e].addEventListener("mouseout",this.removeHoverBubble)),this.previewer.$cherry.wrapperDom.style.overflow="hidden")}},{key:"$showBorderBubbles",value:function(){}},{key:"$showBtnBubbles",value:function(){}}]),e}(),VC=D.setInterval,jC=function(){function e(t,n){ui(this,e),Gi(this,"options",{loadingImgPath:"",maxNumPerTime:2,noLoadImgNum:5,autoLoadImgNum:5,maxTryTimesPerSrc:2,beforeLoadOneImgCallback:function(e){},failLoadOneImgCallback:function(e){},afterLoadOneImgCallback:function(e){},afterLoadAllImgCallback:function(){}}),el(this.options,t),this.previewer=n,this.srcLoadedList=[],this.srcFailLoadedList={},this.srcLoadingList=[],this.srcList=[],this.loadingImgNum=0,this.lastLoadAllNum=0,this.previewerDom=this.previewer.getDomContainer()}return di(e,[{key:"isLoaded",value:function(e){var t;return Ap(t=this.srcLoadedList).call(t,e)}},{key:"isLoading",value:function(e){var t;return Ap(t=this.srcLoadingList).call(t,e)}},{key:"loadFailed",value:function(e){this.srcFailLoadedList[e]=this.srcFailLoadedList[e]?this.srcFailLoadedList[e]+1:1}},{key:"isFailLoadedMax",value:function(e){return this.srcFailLoadedList[e]&&this.srcFailLoadedList[e]>this.options.maxTryTimesPerSrc}},{key:"isLoadedAllDone",value:function(){var e=this.previewerDom.querySelectorAll("img[data-src]"),t=this.srcLoadedList.length;return e.length<=0&&this.lastLoadAllNum=c&&A.top<=l,o=n.srcList.length=n.options.maxNumPerTime)return{v:!1};var s,f=n.options.beforeLoadOneImgCallback(t);if(void 0!==f&&!f)return n.loadFailed(a),"continue";a=null!==(s=t.getAttribute("data-src"))&&void 0!==s?s:a,n.loadingImgNum+=1,n.srcList.push(a),n.srcLoadingList.push(a),n.tryLoadOneImg(a,(function(){var e,r;t.setAttribute("src",a),t.removeAttribute("data-src"),n.srcLoadedList.push(a),n.loadingImgNum-=1,Ru(e=n.srcLoadingList).call(e,pc(r=n.srcLoadingList).call(r,a),1),n.options.afterLoadOneImgCallback(t),n.loadOneImg()}),(function(){var e,r;n.loadFailed(a),n.loadingImgNum-=1,Ru(e=n.srcLoadingList).call(e,pc(r=n.srcLoadingList).call(r,a),1),n.options.failLoadOneImgCallback(t),n.loadOneImg()}))},h=0;h]*?)data-src="([^"]+)"([^>]*?)>/g,(function(e,n,r,A){var i,o;return zi(i=zi(o="").replace(/ {2,}/g," ")}))}},{key:"changeLoadedDataSrc2Src",value:function(e){var t=this;return e.replace(/]*?)data-src="([^"]+)"([^>]*?)>/g,(function(e,n,r,A){var i,o;return t.isLoaded(r)?zi(i=zi(o="").replace(/ {2,}/g," "):e}))}},{key:"$removeSrc",value:function(e){return" ".concat(e).replace(/^(.*?) src=".*?"(.*?$)/,"$1$2")}},{key:"changeSrc2DataSrc",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.options.loadingImgPath,A=this.options.noLoadImgNum,i=0;return e.replace(/]*?)src="([^"]+)"([^>]*?)>/g,(function(e,o,a,s){var l,c,u,f,h;if(/data-src="/.test(e)||!/ src="/.test(e)||A<0)return e;if(!1===n){if(i"):zi(l=zi(c="")}))}}]),e}(),GC=function(){},WC=function(){function e(t){ui(this,e),Gi(this,"applyingDomChanges",!1),Gi(this,"syncScrollLockTimer",0),Gi(this,"isMobilePreview",!1),this.options={previewerDom:document.createElement("div"),virtualDragLineDom:document.createElement("div"),editorMaskDom:document.createElement("div"),previewerMaskDom:document.createElement("div"),minBlockPercentage:.2,value:"",enablePreviewerBubble:!0,afterUpdateCallBack:[],isPreviewOnly:!1,previewerCache:{html:"",htmlChanged:!1,layout:{}},lazyLoadImg:{loadingImgPath:"",maxNumPerTime:2,noLoadImgNum:5,autoLoadImgNum:5,maxTryTimesPerSrc:2,beforeLoadOneImgCallback:function(e){},failLoadOneImgCallback:function(e){},afterLoadOneImgCallback:function(e){},afterLoadAllImgCallback:function(){}}},el(this.options,t),this.$cherry=this.options.$cherry,this.instanceId=this.$cherry.getInstanceId(),this.animation={}}return di(e,[{key:"init",value:function(e){this.disableScrollListener=!1,this.bindScroll(),this.editor=e,this.bindDrag(),this.$initPreviewerBubble(),this.lazyLoadImg=new jC(this.options.lazyLoadImg,this),this.lazyLoadImg.doLazyLoad(),this.onMouseDown()}},{key:"$initPreviewerBubble",value:function(){this.previewerBubble=new XC(this)}},{key:"getDomContainer",value:function(){return this.isMobilePreview?this.options.previewerDom.querySelector(".cherry-mobile-previewer-content"):this.options.previewerDom}},{key:"getDom",value:function(){return this.options.previewerDom}},{key:"getValue",value:function(){var e,t,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],r="";if(r=this.isPreviewerHidden()?this.options.previewerCache.html:this.getDomContainer().innerHTML,r=this.lazyLoadImg.changeDataSrc2Src(r),!n||!this.$cherry.wrapperDom)return r;var A=this.$cherry.wrapperDom.getAttribute("data-inline-code-theme"),i=this.$cherry.wrapperDom.getAttribute("data-code-block-theme");return zi(e=zi(t='
    ')).call(e,r,"
    ")}},{key:"isPreviewerHidden",value:function(){return this.options.previewerDom.classList.contains("cherry-previewer--hidden")}},{key:"calculateRealLayout",value:function(e){var t=+(e/(this.editor.options.editorDom.getBoundingClientRect().width+this.options.previewerDom.getBoundingClientRect().width)).toFixed(3);t1-this.options.minBlockPercentage&&(t=+(1-this.options.minBlockPercentage).toFixed(3));var n=+(1-t).toFixed(3);return{editorPercentage:"".concat(100*t,"%"),previewerPercentage:"".concat(100*n,"%")}}},{key:"setRealLayout",value:function(e,t){var n=e,r=t;n&&r||(n="50%",r="50%"),this.editor.options.editorDom.style.width=n,this.options.previewerDom.style.width=r,this.syncVirtualLayoutFromReal()}},{key:"syncVirtualLayoutFromReal",value:function(){var e=this.editor.options.editorDom.getBoundingClientRect(),t=this.options.previewerDom.getBoundingClientRect(),n=e.height,r=this.editor.options.editorDom.offsetTop,A=e.left,i=e.width,o=t.left?t.left-A:0,a=t.width||0,s=this.options,l=s.editorMaskDom,c=s.previewerMaskDom,u=s.virtualDragLineDom;u.style.top="".concat(r,"px"),u.style.left="".concat(o,"px"),u.style.bottom="0px",l.style.height="".concat(n,"px"),l.style.top="".concat(r,"px"),l.style.left="0px",l.style.width="".concat(i,"px"),c.style.height="".concat(n,"px"),c.style.top="".concat(r,"px"),c.style.left="".concat(o,"px"),c.style.width="".concat(a,"px")}},{key:"calculateVirtualLayout",value:function(e,t){var n=this.editor.options.editorDom.getBoundingClientRect().width+this.options.previewerDom.getBoundingClientRect().width,r=e.toFixed(0),A=t-e;An*(1-this.options.minBlockPercentage)&&(A=+(n*(1-this.options.minBlockPercentage)).toFixed(0));var i=n-A;return{startWidth:Tc(r,10),leftWidth:A,rightWidth:i}}},{key:"setVirtualLayout",value:function(e,t,n){var r=this.options,A=r.editorMaskDom,i=r.previewerMaskDom,o=r.virtualDragLineDom;A.style.left="".concat(0,"px"),A.style.width="".concat(t,"px"),o.style.left="".concat(0+t,"px"),i.style.left="".concat(0+t,"px"),i.style.width="".concat(n,"px")}},{key:"bindDrag",value:function(){var e,t=this,n=function(e){e&&e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():window.event.returnValue=!1;var n=t.editor.options.editorDom.getBoundingClientRect().left,r=e.clientX,A=t.calculateVirtualLayout(n,r);return t.setVirtualLayout(A.startWidth,A.leftWidth,A.rightWidth),!1},r=function e(r){r&&r.stopPropagation?r.stopPropagation():r.cancelBubble=!0,r.preventDefault?r.preventDefault():window.event.returnValue=!1;var A=t.editor.options.editorDom.getBoundingClientRect().left,i=r.clientX,o=t.calculateRealLayout(i-A);return t.setRealLayout(o.editorPercentage,o.previewerPercentage),t.editor.options.editorDom.classList.remove("no-select"),t.options.previewerDom.classList.remove("no-select"),t.options.editorMaskDom.classList.remove("cherry-editor-mask--show"),t.options.previewerMaskDom.classList.remove("cherry-previewer-mask--show"),t.options.virtualDragLineDom.classList.remove("cherry-drag--show"),t.editor.editor.refresh(),Jc(document,"mousemove",n,!1),Jc(document,"mouseup",e,!1),!1};Wc(this.options.virtualDragLineDom,"mousedown",(function(e){e&&e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():window.event.returnValue=!1,t.syncVirtualLayoutFromReal();var A=t.editor.options.editorDom.getBoundingClientRect().left,i=e.clientX,o=t.calculateVirtualLayout(A,i);return t.setVirtualLayout(o.startWidth,o.leftWidth,o.rightWidth),t.options.virtualDragLineDom.classList.contains("cherry-drag--show")||(t.options.virtualDragLineDom.classList.add("cherry-drag--show"),t.options.editorMaskDom.classList.add("cherry-editor-mask--show"),t.options.previewerMaskDom.classList.add("cherry-previewer-mask--show"),t.options.previewerDom.classList.add("no-select"),t.editor.options.editorDom.classList.add("no-select"),Wc(document,"mousemove",n,!1),Wc(document,"mouseup",r,!1)),!1}),!1),Wc(window,"resize",eo(e=this.syncVirtualLayoutFromReal).call(e,this),!1),this.setRealLayout()}},{key:"bindScroll",value:function(){var e=this,t=this.getDomContainer();GC=function(){if(e.applyingDomChanges)zc.log(new Date,"sync scroll locked");else if(e.disableScrollListener)e.disableScrollListener=!1;else if(t.scrollTop<=0)e.editor.scrollToLineNum(0,0,1);else if(t.scrollTop+t.offsetHeight+10>t.scrollHeight)e.editor.scrollToLineNum(null);else{for(var n,r=t.getBoundingClientRect(),A={x:r.left+r.width/2,y:r.top+1},i=function(e,t){if("function"==typeof document.elementsFromPoint)return document.elementsFromPoint(e,t);if("function"==typeof document.msElementsFromPoint){var n=document.msElementsFromPoint(e,t);return null!==n?Nl(n):n}var r,A=[],i=[];do{var o=document.elementFromPoint(e,t);r!==o?(r=o,A.push(r),i.push(r.style.pointerEvents),r.style.pointerEvents="none"):r=null}while(r);return ti(A).call(A,(function(e,t){e.style.pointerEvents=i[t]})),A}(A.x,A.y),o=0;o0)for(var i=0;i0&&(ti(e).call(e,(function(e,A){var i;vc(i=e.sign).call(i,0,12)===vc(t).call(t,0,12)&&A>n&&(r={index:A>n?A:n,sign:t})})),r)}},{key:"$dealWithMyersDiffResult",value:function(e,t,n,r){var A=this;ti(e).call(e,(function(e){switch(n[e.newIndex].dom&&(n[e.newIndex].dom.innerHTML=A.lazyLoadImg.changeLoadedDataSrc2Src(n[e.newIndex].dom.innerHTML)),e.type){case"delete":r.removeChild(t[e.oldIndex].dom);break;case"insert":t[e.oldIndex]?r.insertBefore(n[e.newIndex].dom,t[e.oldIndex].dom):r.appendChild(n[e.newIndex].dom);break;case"update":try{if(n[e.newIndex].dom.querySelector("svg"))throw new Error;A.$updateDom(n[e.newIndex].dom,t[e.oldIndex].dom)}catch(A){r.insertBefore(n[e.newIndex].dom,t[e.oldIndex].dom),r.removeChild(t[e.oldIndex].dom)}}}))}},{key:"$dealUpdate",value:function(e,t,n){if(n.list!==t.list)if(n.list.length&&t.list.length){var r=new zm(n.list,t.list,(function(e,t){return e[t].sign})).doDiff();zc.log(r),this.$dealWithMyersDiffResult(r,t.list,n.list,e)}else if(n.list.length&&!t.list.length){var A;zc.log("add all"),ti(A=n.list).call(A,(function(t){e.appendChild(t.dom)}))}else if(!n.list.length&&t.list.length){var i;zc.log("delete all"),ti(i=t.list).call(i,(function(t){e.removeChild(t.dom)}))}}},{key:"refresh",value:function(e){this.getDomContainer().innerHTML=e}},{key:"update",value:function(e){var t=this,n=this.lazyLoadImg.changeSrc2DataSrc(e);if(this.isPreviewerHidden())this.doHtmlCache(n);else{window.clearTimeout(this.syncScrollLockTimer),this.applyingDomChanges=!0;var r=document.createElement("div"),A=this.getDomContainer();r.innerHTML=n;var i=this.$getSignData(r),o=this.$getSignData(A);try{this.$dealUpdate(A,o,i),this.afterUpdate()}finally{this.syncScrollLockTimer=lo((function(){t.applyingDomChanges=!1}),50)}}}},{key:"$dealEditAndPreviewOnly",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n={editorPercentage:"0%",previewerPercentage:"100%"};t&&(n={editorPercentage:"100%",previewerPercentage:"0%"});var r=this.editor.options.editorDom.getBoundingClientRect().width,A=this.calculateRealLayout(r);this.options.previewerCache.layout=A,this.setRealLayout(n.editorPercentage,n.previewerPercentage),this.options.virtualDragLineDom.classList.add("cherry-drag--hidden");var i=this.options.previewerDom,o=this.editor.options.editorDom;t?(i.classList.add("cherry-previewer--hidden"),o.classList.add("cherry-editor--full"),i.classList.remove("cherry-preview--full"),o.classList.remove("cherry-editor--hidden")):(i.classList.add("cherry-preview--full"),o.classList.add("cherry-editor--hidden"),i.classList.remove("cherry-previewer--hidden"),o.classList.remove("cherry-editor--full")),lo((function(){return e.editor.editor.refresh()}),0)}},{key:"previewOnly",value:function(){this.$dealEditAndPreviewOnly(!1),this.options.previewerCache.htmlChanged&&this.update(this.options.previewerCache.html),this.cleanHtmlCache(),Zc.emit(this.instanceId,Zc.Events.previewerOpen),Zc.emit(this.instanceId,Zc.Events.editorClose)}},{key:"editOnly",value:function(){this.$dealEditAndPreviewOnly(!0),this.cleanHtmlCache(),Zc.emit(this.instanceId,Zc.Events.previewerClose),Zc.emit(this.instanceId,Zc.Events.editorOpen)}},{key:"recoverPreviewer",value:function(){var e=this;this.options.previewerDom.classList.remove("cherry-previewer--hidden"),this.options.virtualDragLineDom.classList.remove("cherry-drag--hidden"),this.editor.options.editorDom.classList.remove("cherry-editor--full");var t=this.options.previewerCache.layout;this.setRealLayout(t.editorPercentage,t.previewerPercentage),this.options.previewerCache.htmlChanged&&this.update(this.options.previewerCache.html),this.cleanHtmlCache(),Zc.emit(this.instanceId,Zc.Events.previewerOpen),Zc.emit(this.instanceId,Zc.Events.editorOpen),lo((function(){return e.editor.editor.refresh()}),0)}},{key:"doHtmlCache",value:function(e){this.options.previewerCache.html=e,this.options.previewerCache.htmlChanged=!0}},{key:"cleanHtmlCache",value:function(){this.options.previewerCache.html="",this.options.previewerCache.htmlChanged=!1,this.options.previewerCache.layout={}}},{key:"afterUpdate",value:function(){var e;Wu(e=this.options.afterUpdateCallBack).call(e,(function(e){return e()})),void 0===this.highlightLineNum&&(this.highlightLineNum=0),this.highlightLine(this.highlightLineNum)}},{key:"registerAfterUpdate",value:function(e){if(Zu(e)){var t;this.options.afterUpdateCallBack=zi(t=this.options.afterUpdateCallBack).call(t,e)}else{if(!e)throw new Error("[markdown error]: Previewer registerAfterUpdate params are undefined");this.options.afterUpdateCallBack.push(e)}}},{key:"$getTopByLineNum",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.getDomContainer();if(null===e)return n.scrollHeight;for(var r="number"==typeof e?e:Tc(e,10),A=n.querySelectorAll("[data-sign]"),i=0,o=n.offsetTop,a=0;a1&&(f=u+(s-Math.abs(r-(i+s))-1)/s*c+c/s*t),f}i+=s}return n.scrollHeight}},{key:"highlightLine",value:function(e){var t,n,r,A,i,o=this.getDomContainer();if(ti(t=o.querySelectorAll(".cherry-highlight-line")).call(t,(function(e){e.classList.remove("cherry-highlight-line")})),"show"===(null===(n=this.$cherry)||void 0===n||null===(r=n.status)||void 0===r?void 0:r.previewer)&&"show"===(null===(A=this.$cherry)||void 0===A||null===(i=A.status)||void 0===i?void 0:i.editor))for(var a=o.querySelectorAll("[data-sign]"),s=0,l=0;l=n.scrollHeight||i>Math.abs(A))return cancelAnimationFrame(t.animation.timer),void(t.animation.timer=0);t.disableScrollListener=!0,t.getDomContainer().scrollTo(null,r+A/Math.abs(A)*i),t.animation.timer=requestAnimationFrame(e)}))}}},{key:"scrollToLineNum",value:function(e,t){var n=this.$getTopByLineNum(e,t);this.$scrollAnimation(n)}},{key:"onMouseDown",value:function(){var e=this;Wc(this.getDomContainer(),"mousedown",(function(){lo((function(){Zc.emit(e.instanceId,Zc.Events.cleanAllSubMenus)}))}))}},{key:"export",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pdf",t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"")||this.getDomContainer().innerText.match(/^\s*([^\s][^\n]*)\n/)[1]||"cherry-export";"pdf"===e?function(e,t){var n=document.title;document.title=t,Hw(e,(function(e,t){window.print(),t(),document.title=n}))}(this.getDomContainer(),t):"screenShot"===e||"img"===e?Iw(this.getDomContainer(),t):"markdown"===e?function(e,t){var n=new Blob([e],{type:"text/markdown;charset=utf-8"}),r=document.createElement("a");r.style.display="none",r.href=Sw.createObjectURL(n),r.download="".concat(t,".md"),document.body.appendChild(r),r.click(),document.body.removeChild(r)}(this.$cherry.getMarkdown(),t):"html"===e&&function(e,t){var n=new Blob([e],{type:"text/markdown;charset=utf-8"}),r=document.createElement("a");r.style.display="none",r.href=Sw.createObjectURL(n),r.download="".concat(t,".html"),document.body.appendChild(r),r.click(),document.body.removeChild(r)}(this.getValue(),t)}}]),e}(),JC=navigator.userAgent,zC=navigator.platform;/gecko\/\d/i.test(JC);var ZC=/MSIE \d/.test(JC),qC=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(JC),YC=/Edge\/(\d+)/.exec(JC);(ZC||qC||YC)&&(ZC?document.documentMode:(YC||qC)[1]);var eQ=!YC&&/WebKit\//.test(JC);eQ&&/Qt\/\d+\.\d+/.test(JC),!YC&&/Chrome\//.test(JC);var tQ=/Opera\//.test(JC);/Apple Computer/.test(navigator.vendor),/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(JC),/PhantomJS/.test(JC);var nQ=!YC&&/AppleWebKit/.test(JC)&&/Mobile\/\w+/.test(JC),rQ=/Android/.test(JC);nQ||rQ||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(JC);var AQ=nQ||/Mac/.test(zC);/\bCrOS\b/.test(JC),/win/i.test(zC);var iQ=tQ&&JC.match(/Version\/(\d*\.\d*)/);function oQ(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"absolute",n=e.getBoundingClientRect();return"fixed"===t?n:"sidebar"===t?{left:aQ.getTargetParentByButton(e).offsetLeft-130+n.width,top:e.offsetTop+n.height/2,width:n.width,height:n.height}:{left:e.offsetLeft,top:e.offsetTop,width:n.width,height:n.height}}iQ&&(iQ=Number(iQ[1])),iQ&&iQ>=15&&(tQ=!1,eQ=!0);var aQ=function(){function e(t){ui(this,e),Gi(this,"_onClick",void 0),this.$cherry=t,this.bubbleMenu=!1,this.subMenu=null,this.name="",this.editor=t.editor,this.locale=t.locale,this.dom=null,this.updateMarkdown=!0,this.subMenuConfig=[],this.noIcon=!1,this.cacheOnce=!1,this.positionModel="absolute","function"==typeof this._onClick&&(zc.warn("`MenuBase._onClick` is deprecated. Override `fire` instead"),this.fire=this._onClick)}return di(e,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"setName",value:function(e,t){this.name=e,this.iconName=t}},{key:"setCacheOnce",value:function(e){this.cacheOnce=e}},{key:"getAndCleanCacheOnce",value:function(){this.updateMarkdown=!0;var e=this.cacheOnce;return this.cacheOnce=!1,e}},{key:"hasCacheOnce",value:function(){return!1!==this.cacheOnce}},{key:"createBtn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=Vc("span",e?"cherry-dropdown-item":"cherry-toolbar-button cherry-toolbar-".concat(this.iconName?this.iconName:this.name),{title:this.locale[this.name]||kf(this.name)});if(this.iconName&&!this.noIcon){var n=Vc("i","ch-icon ch-icon-".concat(this.iconName));t.appendChild(n)}return(e||this.noIcon)&&(t.innerHTML+=this.locale[this.name]||kf(this.name)),e||this.dom||(this.dom=t),t}},{key:"createSubBtnByConfig",value:function(e){var t=e.name,n=e.iconName,r=e.onclick,A=Vc("span","cherry-dropdown-item",{title:this.locale[t]||kf(t)});if(n){var i=Vc("i","ch-icon ch-icon-".concat(n));A.appendChild(i)}return A.innerHTML+=this.locale[t]||kf(t),A.addEventListener("click",r,!1),A}},{key:"fire",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(null==e||e.stopPropagation(),"function"==typeof this.onClick){var r=this.editor.editor.getSelections();this.isSelections=r.length>1;var A=Wu(r).call(r,(function(r,A,i){return t.onClick(r,n,e)||i[A]}));!this.bubbleMenu&&this.updateMarkdown&&(this.editor.editor.replaceSelections(A,"around"),this.editor.editor.focus(),this.$afterClick())}}},{key:"$getSelectionRange",value:function(){var e=this.editor.editor.listSelections()[0],t=e.anchor,n=e.head;return t.line===n.line&&t.ch>n.ch||t.line>n.line?{begin:n,end:t}:{begin:t,end:n}}},{key:"registerAfterClickCb",value:function(e){this.afterClickCb=e}},{key:"$afterClick",value:function(){"function"!=typeof this.afterClickCb||this.isSelections||(this.afterClickCb(),this.afterClickCb=null)}},{key:"setLessSelection",value:function(e,t){var n,r,A,i,o=this.editor.editor,a=this.$getSelectionRange(),s=a.begin,l=a.end,c={line:(null===(n=e.match(/\n/g))||void 0===n?void 0:n.length)>0?s.line+e.match(/\n/g).length:s.line,ch:(null===(r=e.match(/\n/g))||void 0===r?void 0:r.length)>0?e.replace(/^[\s\S]*?\n([^\n]*)$/,"$1").length:s.ch+e.length},u=(null===(A=t.match(/\n/g))||void 0===A?void 0:A.length)>0?l.line-t.match(/\n/g).length:l.line,f={line:u,ch:(null===(i=t.match(/\n/g))||void 0===i?void 0:i.length)>0?o.getLine(u).length:l.ch-t.length};o.setSelection(c,f)}},{key:"getMoreSelection",value:function(e,t,n){var r=this.editor.editor,A=this.$getSelectionRange(),i=A.begin,o=A.end,a=/\n/.test(e)?0:i.ch-e.length;a=a<0?0:a;var s,l=/\n/.test(e)?i.line-e.match(/\n/g).length:i.line,c={line:l=l<0?0:l,ch:a},u=o.line,f=o.ch;/\n/.test(t)?(u=o.line+t.match(/\n/g).length,f=null===(s=r.getLine(u))||void 0===s?void 0:s.length):f=r.getLine(o.line).length1&&void 0!==arguments[1]?arguments[1]:"word",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.editor.editor;if(this.isSelections)return e;if(e&&!n)return e;if("line"===t){var A=this.$getSelectionRange(),i=A.begin,o=A.end;return r.setSelection({line:i.line,ch:0},{line:o.line,ch:r.getLine(o.line).length}),r.getSelection()}if("word"===t){var a=r.findWordAt(r.getCursor()),s=a.anchor,l=a.head;return r.setSelection(s,l),r.getSelection()}}},{key:"bindSubClick",value:function(e,t){return this.fire(null,e)}},{key:"onClick",value:function(e,t,n){return e}},{key:"shortcutKeys",get:function(){return[]}},{key:"getMenuPosition",value:function(){var t=e.getTargetParentByButton(this.dom),n=/cherry-sidebar/.test(t.className);return/cherry-bubble/.test(t.className)||/cherry-floatmenu/.test(t.className)?this.positionModel="fixed":this.positionModel=n?"sidebar":"absolute",oQ(this.dom,this.positionModel)}}],[{key:"getTargetParentByButton",value:function(e){var t=e.parentElement;return/toolbar-(left|right)/.test(t.className)&&(t=t.parentElement),t}}]),e}();function sQ(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var lQ=function(e){Bi(n,aQ);var t=sQ(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("bold","bold"),r}return di(n,[{key:"$testIsBold",value:function(e){return/^\s*(\*\*|__)[\s\S]+(\1)/.test(e)}},{key:"onClick",value:function(e){var t=this,n=this.getSelection(e)||this.locale.bold;return this.isSelections||this.$testIsBold(n)||this.getMoreSelection("**","**",(function(){var e=t.editor.editor.getSelection(),r=t.$testIsBold(e);return r&&(n=e),r})),this.$testIsBold(n)?n.replace(/(^)(\s*)(\*\*|__)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb((function(){t.setLessSelection("**","**")})),n.replace(/(^)([^\n]+)($)/gm,"$1**$2**$3"))}},{key:"shortcutKeys",get:function(){return["Ctrl-b"]}}]),n}();function cQ(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var uQ=function(e){Bi(n,aQ);var t=cQ(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("italic","italic"),r}return di(n,[{key:"$testIsItalic",value:function(e){return/^\s*(\*|_)[\s\S]+(\1)/.test(e)}},{key:"onClick",value:function(e){var t=this,n=this.getSelection(e)||this.locale.italic;return this.isSelections||this.$testIsItalic(n)||this.getMoreSelection("*","*",(function(){var e=t.editor.editor.getSelection(),r=t.$testIsItalic(e);return r&&(n=e),r})),this.$testIsItalic(n)?n.replace(/(^)(\s*)(\*|_)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb((function(){t.setLessSelection("*","*")})),n.replace(/(^)([^\n]+)($)/gm,"$1*$2*$3"))}},{key:"shortcutKeys",get:function(){return["Ctrl-i"]}}]),n}();function fQ(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var hQ=function(e){Bi(n,aQ);var t=fQ(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("split","|"),r}return di(n,[{key:"createBtn",value:function(){var e=document.createElement("i");return e.className="cherry-toolbar-button cherry-toolbar-split",e}}]),n}();function dQ(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"word",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(e.getSelections().length>1)return t;if(t&&!r)return t;if("line"===n){var A=e.listSelections()[0],i=A.anchor,o=A.head;return i.line===o.line&&i.ch>o.ch||i.line>o.line?e.setSelection({line:o.line,ch:0},{line:i.line,ch:e.getLine(i.line).length}):e.setSelection({line:i.line,ch:0},{line:o.line,ch:e.getLine(o.line).length}),e.getSelection()}if("word"===n){var a=e.findWordAt(e.getCursor()),s=a.anchor,l=a.head;return e.setSelection(s,l),e.getSelection()}}function gQ(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var pQ=function(e){Bi(n,aQ);var t=gQ(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("strikethrough","strike"),r}return di(n,[{key:"$testIsStrike",value:function(e){return/(~~)[\s\S]+(\1)/.test(e)}},{key:"onClick",value:function(e){var t,n,r,A,i,o,a=this,s=dQ(this.editor.editor,e)||this.locale.strikethrough,l=(null===(t=this.$cherry)||void 0===t||null===(n=t.options)||void 0===n||null===(r=n.engine)||void 0===r||null===(A=r.syntax)||void 0===A||null===(i=A.strikethrough)||void 0===i?void 0:i.needWhitespace)?" ":"";return this.isSelections||this.$testIsStrike(s)||this.getMoreSelection("".concat(l,"~~"),"~~".concat(l),(function(){var e=a.editor.editor.getSelection(),t=a.$testIsStrike(e);return t&&(s=e),t})),this.$testIsStrike(s)?e.replace(/[\s]*(~~)([\s\S]+)(\1)[\s]*/g,"$2"):(this.registerAfterClickCb((function(){a.setLessSelection("".concat(l,"~~"),"~~".concat(l))})),s.replace(/(^)[\s]*([\s\S]+?)[\s]*($)/g,zi(o="$1".concat(l,"~~$2~~")).call(o,l,"$3")))}},{key:"shortcutKeys",get:function(){return["Ctrl-d"]}}]),n}();function mQ(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var vQ=function(e){Bi(n,aQ);var t=mQ(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("sub","sub"),r}return di(n,[{key:"$testIsSub",value:function(e){return/^\s*(\^\^)[\s\S]+(\1)/.test(e)}},{key:"onClick",value:function(e){var t=this,n=dQ(this.editor.editor,e)||this.locale.sub;return this.isSelections||this.$testIsSub(n)||this.getMoreSelection("^^","^^",(function(){var e=t.editor.editor.getSelection(),r=t.$testIsSub(e);return r&&(n=e),r})),this.$testIsSub(n)?n.replace(/(^)(\s*)(\^\^)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb((function(){t.setLessSelection("^^","^^")})),n.replace(/(^)([^\n]+)($)/gm,"$1^^$2^^$3"))}}]),n}();function yQ(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var wQ=function(e){Bi(n,aQ);var t=yQ(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("sup","sup"),r}return di(n,[{key:"$testIsSup",value:function(e){return/^\s*(\^)[\s\S]+(\1)/.test(e)}},{key:"onClick",value:function(e){var t=this,n=dQ(this.editor.editor,e)||this.locale.sup;return this.isSelections||this.$testIsSup(n)||this.getMoreSelection("^","^",(function(){var e=t.editor.editor.getSelection(),r=t.$testIsSup(e);return r&&(n=e),r})),this.$testIsSup(n)?e.replace(/(^)(\s*)(\^)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb((function(){t.setLessSelection("^","^")})),n.replace(/(^)([^\n]+)($)/gm,"$1^$2^$3"))}}]),n}();function BQ(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var bQ=function(e){Bi(n,aQ);var t=BQ(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("color","color"),r.bubbleColor=new CQ(e),r}return di(n,[{key:"$testIsColor",value:function(e,t){var n=/^\s*!!![^\s]+ [\s\S]+!!!\s*$/;return"text"===e?/^\s*!![^\s]+ [\s\S]+!!\s*$/.test(t)&&!n.test(t):n.test(t)}},{key:"onClick",value:function(e){var t=this,n=arguments.length>2?arguments[2]:void 0,r=dQ(this.editor.editor,e)||this.locale.color;if(this.hasCacheOnce()){var A,i,o=this.getAndCleanCacheOnce(),a=o.type,s=o.color,l="text"===a?"!!".concat(s," "):"!!!".concat(s," "),c="text"===a?"!!":"!!!";if(this.isSelections||this.$testIsColor(a,r)||this.getMoreSelection(l,c,(function(){var e=t.editor.editor.getSelection();return!!t.$testIsColor(a,e)&&(r=e,!0)})),this.$testIsColor(a,r)){var u,f=new RegExp(zi(u="(^\\s*".concat(c,")([^\\s]+) ([\\s\\S]+")).call(u,c,"\\s*$)"),"gm"),h=!0,d=r.replace(f,(function(e,t,n,r){var A,i;return h=!!h&&n===s,zi(A=zi(i="".concat(t)).call(i,s," ")).call(A,r)}));return h?r.replace(f,"$3").replace(/!+\s*$/gm,""):(this.registerAfterClickCb((function(){t.setLessSelection(l,c)})),d)}return this.registerAfterClickCb((function(){t.setLessSelection(l,c)})),zi(A=zi(i="".concat(l)).call(i,r)).call(A,c)}var g=0,p=0;if(n.target.closest(".cherry-bubble")){var m=n.target.closest(".cherry-bubble"),v=m.getBoundingClientRect();g=v.top+m.offsetHeight,p=n.target.closest(".cherry-toolbar-color").offsetLeft+v.left}else{var y=n.target.closest(".cherry-toolbar-color"),w=y.getBoundingClientRect();g=w.top+y.offsetHeight,p=w.left}this.updateMarkdown=!1,this.bubbleColor.show({left:p,top:g,$color:this})}}]),n}(),CQ=function(){function e(t){ui(this,e),Gi(this,"colorStack",["#000000","#444444","#666666","#999999","#cccccc","#eeeeee","#f3f3f3","#ffffff","#ff0000","#ff9900","#ffff00","#00ff00","#00ffff","#0000ff","#9900ff","#ff00ff","#f4cccc","#fce5cd","#fff2cc","#d9ead3","#d0e0e3","#cfe2f3","#d9d2e9","#ead1dc","#ea9999","#f9cb9c","#ffe599","#b6d7a8","#a2c4c9","#9fc5e8","#b4a7d6","#d5a6bd","#e06666","#f6b26b","#ffd966","#93c47d","#76a5af","#6fa8dc","#8e7cc3","#c27ba0","#cc0000","#e69138","#f1c232","#6aa84f","#45818e","#3d85c6","#674ea7","#a64d79","#990000","#b45f06","#bf9000","#38761d","#134f5c","#0b5394","#351c75","#741b47","#660000","#783f04","#7f6000","#274e13","#0c343d","#073763","#20124d","#4c1130"]),this.editor=t.editor,this.init(),this.initAction()}return di(e,[{key:"setSelection",value:function(e){this.selection=e}},{key:"getFontColorDom",value:function(e){var t,n,r=Wu(t=this.colorStack).call(t,(function(e){var t,n;return zi(t=zi(n='')})).join("");return zi(n="

    ".concat(e,"

    ")).call(n,r)}},{key:"getDom",value:function(){var e=document.createElement("div");e.classList.add("cherry-color-wrap"),e.classList.add("cherry-dropdown");var t=document.createElement("div");t.classList.add("cherry-color-text"),t.innerHTML=this.getFontColorDom("文本颜色"),e.appendChild(t);var n=document.createElement("div");return n.classList.add("cherry-color-bg"),n.innerHTML=this.getFontColorDom("背景颜色"),e.appendChild(n),e}},{key:"init",value:function(){this.dom=this.getDom(),this.editor.options.wrapperDom.appendChild(this.dom)}},{key:"onClick",value:function(){var e,t;return"text"===this.type?/^!!#\S+ [\s\S]+?!!/.test(this.selection)?this.selection.replace(/^!!#\S+ ([\s\S]+?)!!/,"!!".concat(this.colorValue," $1!!")):zi(t="!!".concat(this.colorValue," ")).call(t,this.selection,"!!"):/^!!!#\S+ [\s\S]+?!!!/.test(this.selection)?this.selection.replace(/^!!!#\S+ ([\s\S]+?)!!!/,"!!!".concat(this.colorValue," $1!!!")):zi(e="!!!".concat(this.colorValue," ")).call(e,this.selection,"!!!")}},{key:"initAction",value:function(){var e=this;this.dom.addEventListener("click",(function(t){var n=t.target;if(e.colorValue=n.getAttribute("data-val"),!e.colorValue)return!1;e.type=n.closest(".cherry-color-text")?"text":"bg",e.$color.setCacheOnce({type:e.type,color:e.colorValue}),e.$color.fire(null)}),!1),this.dom.addEventListener("EditorHideToolbarSubMenu",(function(){"none"!==e.dom.style.display&&(e.dom.style.display="none")}))}},{key:"show",value:function(e){var t=e.left,n=e.top,r=e.$color;this.dom.style.left="".concat(t,"px"),this.dom.style.top="".concat(n,"px"),this.dom.style.display="block",this.$color=r}}]),e}();function QQ(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var kQ=function(e){Bi(n,aQ);var t=QQ(n);function n(e){var r,A,i,o,a,s;return ui(this,n),(s=t.call(this,e)).setName("header","header"),s.subMenuConfig=[{iconName:"h1",name:"h1",onclick:eo(r=s.bindSubClick).call(r,gi(s),"1")},{iconName:"h2",name:"h2",onclick:eo(A=s.bindSubClick).call(A,gi(s),"2")},{iconName:"h3",name:"h3",onclick:eo(i=s.bindSubClick).call(i,gi(s),"3")},{iconName:"h4",name:"h4",onclick:eo(o=s.bindSubClick).call(o,gi(s),"4")},{iconName:"h5",name:"h5",onclick:eo(a=s.bindSubClick).call(a,gi(s),"5")}],s}return di(n,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"$getFlagStr",value:function(e){var t=+("string"==typeof e?e.replace(/[^0-9]+([0-9])/g,"$1"):e);return Uc("#").call("#",t||1)}},{key:"$testIsHead",value:function(e){return/^\s*(#+)\s*.+/.test(e)}},{key:"onClick",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=dQ(this.editor.editor,e,"line",!0)||this.locale.header,A=this.$getFlagStr(n);if(this.isSelections||this.$testIsHead(r)||this.getMoreSelection("\n","",(function(){var e=t.editor.editor.getSelection(),n=t.$testIsHead(e);return n&&(r=e),n})),this.$testIsHead(r)){var i=!0,o=r.replace(/(^\s*)(#+)(\s*)(.+$)/gm,(function(e,t,n,r,o){var a,s,l;return i=!!i&&n.length===A.length,zi(a=zi(s=zi(l="".concat(t)).call(l,A)).call(s,r)).call(a,o)}));return i?r.replace(/(^\s*)(#+)(\s*)(.+$)/gm,"$1$4"):(this.registerAfterClickCb((function(){t.setLessSelection("".concat(A," "),"")})),o)}return this.registerAfterClickCb((function(){t.setLessSelection("".concat(A," "),"")})),r.replace(/(^)([\s]*)([^\n]+)($)/gm,"$1".concat(A," $3$4"))}},{key:"shortcutKeys",get:function(){return["Ctrl-1","Ctrl-2","Ctrl-3","Ctrl-4","Ctrl-5","Ctrl-6"]}}]),n}(),TQ=function(e,t){var n,r=document.createElement("td");return r.className=t||"table-item",ti(n=mn(e)).call(n,(function(t){r.dataset[t]=e[t]})),r},xQ=function(){function e(t,n){var r=t.row,A=t.col;ui(this,e),this.init(r,A,n),this.initEventListeners(),this.afterClick=function(){}}return di(e,[{key:"init",value:function(e,t,n){var r=this,A=document.createElement("table"),i=[];A.className=["cherry-insert-table-menu","cherry-dropdown"].join(" ");for(var o=1;o<=e;o++){var a=document.createElement("tr");a.className="cherry-insert-table-menu-row",i[o-1]=[];for(var s=1;s<=t;s++){var l=TQ({row:o,col:s},"cherry-insert-table-menu-item");a.appendChild(l),i[o-1][s-1]=l}A.appendChild(a)}return A.style.display="none",A.addEventListener("EditorHideToolbarSubMenu",(function(){r.hide()})),this.dom=A,this.cell=i,this.maxRow=e,this.maxCol=t,this.activeRow=0,this.activeCol=0,this.dom}},{key:"initEventListeners",value:function(){var e,t;this.dom.addEventListener("mousemove",eo(e=this.handleMouseMove).call(e,this),!1),this.dom.addEventListener("mouseup",eo(t=this.handleMouseUp).call(t,this))}},{key:"setActiveCell",value:function(e,t){if(this.activeRow!==e||this.activeCol!==t){var n=Math.min(this.activeRow,e),r=Math.max(this.activeRow,e);if(n!==r)for(var A=r;A>n;A--)for(var i=1;i<=this.activeCol;i++)this.cell[A-1][i-1].classList.toggle("active");var o=Math.min(this.activeCol,t),a=Math.max(this.activeCol,t);if(o!==a)for(var s=a;s>o;s--)for(var l=1;l<=e;l++)this.cell[l-1][s-1].classList.toggle("active");this.activeRow=e,this.activeCol=t}}},{key:"handleMouseMove",value:function(e){var t=e.target;t!==this.dom&&(t.classList.contains("cherry-insert-table-menu-item")||(t=t.querySelector(".cherry-insert-table-menu-item")),t&&this.setActiveCell(t.dataset.row,t.dataset.col))}},{key:"handleMouseUp",value:function(e){var t=e.target;return t===this.dom||t.classList.contains("cherry-insert-table-menu-item")||(t=t.querySelector(".cherry-insert-table-menu-item")),this.afterClick(this.activeRow,this.activeCol),void this.hide()}},{key:"show",value:function(e){this.dom.style.display="block",this.afterClick=e}},{key:"hide",value:function(){this.dom.style.display="none";for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:"image",n=document.createElement("input");n.type="file",n.id="fileUpload",n.value="",n.style.display="none",n.addEventListener("change",(function(n){var r=gc(n.target.files,1)[0];e.$cherry.options.fileUpload(r,(function(n){if("string"==typeof n&&n){var A,i="";if("image"===t)i=zi(A="![".concat(r.name,"](")).call(A,n,")");else if("video"===t){var o;i=zi(o="!video[".concat(r.name,"](")).call(o,n,")")}else if("audio"===t){var a;i=zi(a="!audio[".concat(r.name,"](")).call(a,n,")")}else{var s;i=zi(s="[".concat(r.name,"](")).call(s,n,")")}e.$cherry.$cherry.doc.replaceSelection(i)}}))})),n.click()}},{key:"onClick",value:function(e){var t,n,r,A,i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0;if(/normal-table/.test(o)){var s,l,c,u=o.match(/([0-9]+)[^0-9]([0-9]+)/),f=u?+u[1]:3,h=u?+u[2]:5,d=Uc(" Header |").call(" Header |",h),g=Uc(" ------ |").call(" ------ |",h),p="\n|".concat(Uc(" Sample |").call(" Sample |",h));return zi(s=zi(l=zi(c="".concat(e,"\n\n|")).call(c,d,"\n|")).call(l,g)).call(s,Uc(p).call(p,f),"\n\n")}var m=dQ(this.editor.editor,e);switch(o){case"hr":return"".concat(e,"\n\n---\n");case"br":return"".concat(e,"
    ");case"code":return"\n``` \n".concat(e||"code...","\n```\n");case"formula":return"".concat(e,"\n\n$ e=mc^2 $\n\n");case"checklist":return"".concat(e,"\n\n- [x] Item 1\n- [ ] Item 2\n- [ ] Item 3\n");case"toc":return"".concat(e,"\n\n[[toc]]\n");case"link":return zi(t="".concat(e,"[")).call(t,this.locale.link,"](http://url.com) ");case"image":return this.handleUpload("image"),e;case"video":return this.handleUpload("video"),e;case"audio":return this.handleUpload("audio"),e;case"table":return this.subBubbleTableMenu.dom.style.left=this.subMenu.dom.style.left,this.subBubbleTableMenu.dom.style.top=this.subMenu.dom.style.top,void this.subBubbleTableMenu.show((function(t,n){var r,A,i,o=Uc(" Header |").call(" Header |",n),s=Uc(" ------ |").call(" ------ |",n),l="\n|".concat(Uc(" Sample |").call(" Sample |",n)),c=zi(r=zi(A=zi(i="".concat(e,"\n\n|")).call(i,o,"\n|")).call(A,s)).call(r,Uc(l).call(l,t),"\n\n");a(c)}));case"line-table":return zi(n="".concat(e,"\n\n")).call(n,["| :line: {x,y} | a | b | c |","| :-: | :-: | :-: | :-: |","| x | 1 | 2 | 3 |","| y | 2 | 4 | 6 |","| z | 7 | 5 | 3 |"].join("\n"),"\n\n");case"bar-table":return zi(r="".concat(e,"\n\n")).call(r,["| :bar: {x,y} | a | b | c |","| :-: | :-: | :-: | :-: |","| x | 1 | 2 | 3 |","| y | 2 | 4 | 6 |","| z | 7 | 5 | 3 |"].join("\n"),"\n\n");case"headlessTable":return this.subBubbleTableMenu.dom.style.left=this.subMenu.dom.style.left,this.subBubbleTableMenu.dom.style.top=this.subMenu.dom.style.top,void this.subBubbleTableMenu.show((function(t,n){var r,A,i,o=zi(r=zi(A="".concat(e,"\n\n||")).call(A,Uc(" ~Header ||").call(" ~Header ||",n))).call(r,Uc(i="\n||".concat(Uc(" SampleT ||").call(" SampleT ||",n))).call(i,t-1),"\n\n");a(o)}));case"pdf":return this.handleUpload("pdf"),e;case"word":return this.handleUpload("word"),e;case"ruby":return/^\s*\{[\s\S]+\|[\s\S]+\}/.test(m)?m.replace(/^\s*\{\s*([\s\S]+?)\s*\|[\s\S]+\}\s*/gm,"$1"):zi(A=" { ".concat(m," | ")).call(A,wl(i=this.editor.$cherry.options.callback.changeString2Pinyin(m)).call(i)," } ")}}}]),n}();function UQ(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var SQ=function(e){Bi(n,aQ);var t=UQ(n);function n(e){var r,A,i,o;return ui(this,n),(o=t.call(this,e)).setName("list","list"),o.subMenuConfig=[{iconName:"ol",name:"ol",onclick:eo(r=o.bindSubClick).call(r,gi(o),"1")},{iconName:"ul",name:"ul",onclick:eo(A=o.bindSubClick).call(A,gi(o),"2")},{iconName:"checklist",name:"checklist",onclick:eo(i=o.bindSubClick).call(i,gi(o),"3")}],o}return di(n,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"onClick",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",A=[null,"ol","ul","checklist"],i=dQ(this.editor.editor,e,"line",!0),o=gc(i.match(/^\n*/),1)[0],a=gc(i.match(/\n*$/),1)[0],s=A[r]?A[r]:r;return s&&/^(ol|ul|checklist)$/.test(s)?zi(t=zi(n="".concat(o)).call(n,vu(i,s))).call(t,a):i}}]),n}();function LQ(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var HQ=function(e){Bi(n,aQ);var t=LQ(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("ol","ol"),r}return di(n,[{key:"onClick",value:function(e){var t,n,r=dQ(this.editor.editor,e,"line",!0)||"Item 1\n Item 1.1\nItem 2",A=gc(r.match(/^\n*/),1)[0],i=gc(r.match(/\n*$/),1)[0];return zi(t=zi(n="".concat(A)).call(n,vu(r,"ol"))).call(t,i)}}]),n}();function IQ(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var MQ=function(e){Bi(n,aQ);var t=IQ(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("ul","ul"),r}return di(n,[{key:"onClick",value:function(e){var t,n,r=dQ(this.editor.editor,e,"line",!0)||"Item 1\n Item 1.1\nItem 2",A=gc(r.match(/^\n*/),1)[0],i=gc(r.match(/\n*$/),1)[0];return zi(t=zi(n="".concat(A)).call(n,vu(r,"ul"))).call(t,i)}}]),n}();function _Q(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var DQ=function(e){Bi(n,aQ);var t=_Q(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("checklist","checklist"),r}return di(n,[{key:"onClick",value:function(e){var t,n,r=dQ(this.editor.editor,e,"line",!0)||"Item 1\n Item 1.1\nItem 2",A=gc(r.match(/^\n*/),1)[0],i=gc(r.match(/\n*$/),1)[0];return zi(t=zi(n="".concat(A)).call(n,vu(r,"checklist"))).call(t,i)}}]),n}();function OQ(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}function NQ(e,t){return[e,"```mermaid",t,"```"].join("\n")}var RQ=["\tA[公司] --\x3e| 下 班 | B(菜市场)","\tB --\x3e C{看见
    卖西瓜的}","\tC --\x3e|Yes| D[买一个包子]","\tC --\x3e|No| E[买一斤包子]"].join("\n"),PQ=["\tA[Company] --\x3e| Finish work | B(Grocery Store)","\tB --\x3e C{See
    Watermelon Seller}","\tC --\x3e|Yes| D[Buy a bun]","\tC --\x3e|No| E[Buy a kilogram of buns]"].join("\n"),KQ={flow:["FlowChart",NQ("左右结构","graph LR\n".concat(RQ)),NQ("上下结构","graph TD\n".concat(RQ))].join("\n"),sequence:NQ("SequenceDiagram",["sequenceDiagram","autonumber","A--\x3eA: 文本1","A->>B: 文本2","loop 循环1","loop 循环2","A->B: 文本3","end","loop 循环3","B --\x3e>A: 文本4","end","B --\x3e> B: 文本5","end"].join("\n")),state:NQ("StateDiagram",["stateDiagram-v2","[*] --\x3e A","A --\x3e B","A --\x3e C","state A {"," \t[*] --\x3e D"," \tD --\x3e [*]","}","B --\x3e [*]","C --\x3e [*]"].join("\n")),class:NQ("ClassDiagram",["classDiagram","Base <|-- One","Base <|-- Two","Base : +String name","Base: +getName()","Base: +setName(String name)","class One{"," \t+String newName"," \t+getNewName()","}","class Two{"," \t-int id"," \t-getId()","}"].join("\n")),pie:NQ("PieChart",["pie","title 饼图",'"A" : 100','"B" : 80','"C" : 40','"D" : 30'].join("\n")),gantt:NQ("GanttChart",["gantt","\ttitle 敏捷研发流程","\tsection 迭代前","\t\t交互设计 :a1, 2020-03-01, 4d","\t\tUI设计 :after a1, 5d","\t\t需求评审 : 1d","\tsection 迭代中","\t\t详细设计 :a2, 2020-03-11, 2d","\t\t开发 :2020-03-15, 7d","\t\t测试 :2020-03-22, 5d","\tsection 迭代后","\t\t发布: 1d","\t\t验收: 2d","\t\t回顾: 1d"].join("\n"))},$Q={flow:["FlowChart",NQ("Left-right structure","graph LR\n".concat(PQ)),NQ("Top-bottom structure","graph TD\n".concat(PQ))].join("\n"),sequence:NQ("SequenceDiagram",["sequenceDiagram","autonumber","A--\x3eA: text1","A->>B: text2","loop loop1","loop loop2","A->B: text3","end","loop loop3","B --\x3e>A: text4","end","B --\x3e> B: text5","end"].join("\n")),state:NQ("StateDiagram",["stateDiagram-v2","[*] --\x3e A","A --\x3e B","A --\x3e C","state A {"," \t[*] --\x3e D"," \tD --\x3e [*]","}","B --\x3e [*]","C --\x3e [*]"].join("\n")),class:NQ("ClassDiagram",["classDiagram","Base <|-- One","Base <|-- Two","Base : +String name","Base: +getName()","Base: +setName(String name)","class One{"," \t+String newName"," \t+getNewName()","}","class Two{"," \t-int id"," \t-getId()","}"].join("\n")),pie:NQ("PieChart",["pie","title pie",'"A" : 100','"B" : 80','"C" : 40','"D" : 30'].join("\n")),gantt:NQ("GanttChart",["gantt","\ttitle work","\tsection session 1","\t\twork1 :a1, 2020-03-01, 4d","\t\twork2 :after a1, 5d","\t\twork3 : 1d","\tsection session 2","\t\twork4 :a2, 2020-03-11, 2d","\t\twork5 :2020-03-15, 7d","\t\twork6 :2020-03-22, 5d","\tsection session 3","\t\twork7: 1d","\t\twork8: 2d","\t\twork9: 1d"].join("\n"))},XQ=function(e){Bi(n,aQ);var t=OQ(n);function n(e){var r,A,i,o,a,s,l;return ui(this,n),(l=t.call(this,e)).setName("graph","insertChart"),l.noIcon=!0,l.localeName=e.options.locale,l.subMenuConfig=[{iconName:"insertFlow",name:"insertFlow",onclick:eo(r=l.bindSubClick).call(r,gi(l),"1")},{iconName:"insertSeq",name:"insertSeq",onclick:eo(A=l.bindSubClick).call(A,gi(l),"2")},{iconName:"insertState",name:"insertState",onclick:eo(i=l.bindSubClick).call(i,gi(l),"3")},{iconName:"insertClass",name:"insertClass",onclick:eo(o=l.bindSubClick).call(o,gi(l),"4")},{iconName:"insertPie",name:"insertPie",onclick:eo(a=l.bindSubClick).call(a,gi(l),"5")},{iconName:"insertGantt",name:"insertGantt",onclick:eo(s=l.bindSubClick).call(s,gi(l),"6")}],l}return di(n,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"onClick",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=[null,"flow","sequence","state","class","pie","gantt"],A=r[n]?r[n]:n;if(A&&/^(flow|sequence|state|class|pie|gantt)$/.test(A))return this.registerAfterClickCb((function(){t.setLessSelection("\n\n\n\n\n","\n\n")})),"\n\n".concat(this.$getSampleCode(A),"\n")}},{key:"$getSampleCode",value:function(e){var t,n;return"zh-CN"!==this.localeName&&"zh_CN"!==this.localeName?null===(n=$Q[e])||void 0===n?void 0:n.replace(/\t/g," "):null===(t=KQ[e])||void 0===t?void 0:t.replace(/\t/g," ")}}]),n}();function VQ(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var jQ=function(e){Bi(n,aQ);var t=VQ(n);function n(e){var r,A,i,o,a;return ui(this,n),(a=t.call(this,e)).setName("size","size"),a.subMenuConfig=[{name:"小",noIcon:!0,onclick:eo(r=a.bindSubClick).call(r,gi(a),"12")},{name:"中",noIcon:!0,onclick:eo(A=a.bindSubClick).call(A,gi(a),"17")},{name:"大",noIcon:!0,onclick:eo(i=a.bindSubClick).call(i,gi(a),"24")},{name:"特大",noIcon:!0,onclick:eo(o=a.bindSubClick).call(o,gi(a),"32")}],a.shortKeyMap={"Alt-1":"12","Alt-2":"17","Alt-3":"24","Alt-4":"32"},a}return di(n,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"_getFlagStr",value:function(e){for(var t=e.replace(/[^0-9]+([0-9])/g,"$1"),n="#",r=1;r1&&void 0!==arguments[1]?arguments[1]:"17",r=this.$getSizeByShortKey(n),A=dQ(this.editor.editor,e)||"字号";if(this.isSelections||this.$testIsSize(A)||this.getMoreSelection("!32 ","!",(function(){var e=t.editor.editor.getSelection();return!!t.$testIsSize(e)&&(A=e,!0)})),this.$testIsSize(A)){var i=!0,o=A.replace(/(^)(\s*)(![0-9]+)([^\n]+)(!)(\s*)($)/gm,(function(e,t,n,A,o,a,s,l){var c,u,f,h,d,g;return i=!!i&&A==="!".concat(r),zi(c=zi(u=zi(f=zi(h=zi(d=zi(g="".concat(t)).call(g,n,"!")).call(d,r)).call(h,o)).call(f,a)).call(u,s)).call(c,l)}));return i?A.replace(/(^)(\s*)(![0-9]+\s*)([^\n]+)(!)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb((function(){t.setLessSelection("!".concat(r," "),"!")})),o)}return this.registerAfterClickCb((function(){t.setLessSelection("!".concat(r," "),"!")})),A.replace(/(^)([^\n]+)($)/gm,"$1!".concat(r," $2!$3"))}},{key:"shortcutKeys",get:function(){return["Alt-1","Alt-2","Alt-3","Alt-4"]}}]),n}();function GQ(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var WQ=function(e){Bi(n,aQ);var t=GQ(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("h1","h1"),r}return di(n,[{key:"$testIsHead",value:function(e){return/^\s*(#+)\s*.+/.test(e)}},{key:"onClick",value:function(e){var t=this,n=dQ(this.editor.editor,e,"line",!0)||this.locale.h1,r="#";if(this.isSelections||this.$testIsHead(n)||this.getMoreSelection("\n","",(function(){var e=t.editor.editor.getSelection(),r=t.$testIsHead(e);return r&&(n=e),r})),this.$testIsHead(n)){var A=!0,i=n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,(function(e,t,n,i,o){var a,s,l;return A=!!A&&1===n.length,zi(a=zi(s=zi(l="".concat(t)).call(l,r)).call(s,i)).call(a,o)}));return A?n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,"$1$4"):(this.registerAfterClickCb((function(){t.setLessSelection("".concat(r," "),"")})),i)}return this.registerAfterClickCb((function(){t.setLessSelection("".concat(r," "),"")})),n.replace(/(^)([\s]*)([^\n]+)($)/gm,"$1".concat(r," $3$4"))}}]),n}();function JQ(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var zQ=function(e){Bi(n,aQ);var t=JQ(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("h2","h2"),r}return di(n,[{key:"$testIsHead",value:function(e){return/^\s*(#+)\s*.+/.test(e)}},{key:"onClick",value:function(e){var t=this,n=dQ(this.editor.editor,e,"line",!0)||this.locale.h2,r="##";if(this.isSelections||this.$testIsHead(n)||this.getMoreSelection("\n","",(function(){var e=t.editor.editor.getSelection(),r=t.$testIsHead(e);return r&&(n=e),r})),this.$testIsHead(n)){var A=!0,i=n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,(function(e,t,n,i,o){var a,s,l;return A=!!A&&2===n.length,zi(a=zi(s=zi(l="".concat(t)).call(l,r)).call(s,i)).call(a,o)}));return A?n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,"$1$4"):(this.registerAfterClickCb((function(){t.setLessSelection("".concat(r," "),"")})),i)}return this.registerAfterClickCb((function(){t.setLessSelection("".concat(r," "),"")})),n.replace(/(^)([\s]*)([^\n]+)($)/gm,"$1".concat(r," $3$4"))}}]),n}();function ZQ(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var qQ=function(e){Bi(n,aQ);var t=ZQ(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("h3","h3"),r}return di(n,[{key:"$testIsHead",value:function(e){return/^\s*(#+)\s*.+/.test(e)}},{key:"onClick",value:function(e){var t=this,n=dQ(this.editor.editor,e,"line",!0)||this.locale.h3,r="###";if(this.isSelections||this.$testIsHead(n)||this.getMoreSelection("\n","",(function(){var e=t.editor.editor.getSelection(),r=t.$testIsHead(e);return r&&(n=e),r})),this.$testIsHead(n)){var A=!0,i=n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,(function(e,t,n,i,o){var a,s,l;return A=!!A&&3===n.length,zi(a=zi(s=zi(l="".concat(t)).call(l,r)).call(s,i)).call(a,o)}));return A?n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,"$1$4"):(this.registerAfterClickCb((function(){t.setLessSelection("".concat(r," "),"")})),i)}return this.registerAfterClickCb((function(){t.setLessSelection("".concat(r," "),"")})),n.replace(/(^)([\s]*)([^\n]+)($)/gm,"$1".concat(r," $3$4"))}}]),n}();function YQ(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var ek=function(e){Bi(n,aQ);var t=YQ(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("quote","blockquote"),r}return di(n,[{key:"onClick",value:function(e){var t,n=this,r=dQ(this.editor.editor,e,"line",!0)||this.locale.quote;return zw(t=r.split("\n")).call(t,(function(e){return/^\s*>[^\n]+$/.exec(e)}))?r.replace(/(^\s*)>\s*([^\n]+)($)/gm,"$1$2$3").replace(/\n+$/,"\n\n"):(this.registerAfterClickCb((function(){n.setLessSelection("> ","")})),r.replace(/(^)([^\n]+)($)/gm,"$1> $2$3").replace(/\n+$/,"\n\n"))}}]),n}();function tk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var nk=function(e){Bi(n,aQ);var t=tk(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("quickTable","table"),r}return di(n,[{key:"onClick",value:function(e){return"".concat(e,"| LeftAlignedCol | CenterAlignedCol | RightAlignedCol |\n")+"| :--- | :---: | ---: |\n| sampleText | sampleText | sampleText |\n| **left**Text | centered Text | *right*Text |\n"}}]),n}();function rk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var Ak=function(e){Bi(n,aQ);var t=rk(n);function n(e){var r;return ui(this,n),Gi(gi(r=t.call(this,e)),"$previewerHidden",!1),r.setName("previewClose","previewClose"),r.instanceId=e.instanceId,r.updateMarkdown=!1,r.attachEventListeners(),r}return di(n,[{key:"attachEventListeners",value:function(){var e=this;Zc.on(this.instanceId,Zc.Events.previewerClose,(function(){e.isHidden=!0})),Zc.on(this.instanceId,Zc.Events.previewerOpen,(function(){e.isHidden=!1}))}},{key:"isHidden",get:function(){return this.$previewerHidden},set:function(e){if(e!==this.$previewerHidden){var t=this.dom.querySelector("i");e?(t.classList.toggle("ch-icon-previewClose",!1),t.classList.toggle("ch-icon-preview",!0),t.title=this.locale.togglePreview):(t.classList.toggle("ch-icon-previewClose",!0),t.classList.toggle("ch-icon-preview",!1),t.title=this.locale.previewClose),this.$previewerHidden=e}}},{key:"onClick",value:function(){this.editor.previewer.isPreviewerHidden()?(this.editor.previewer.recoverPreviewer(!0),this.isHidden=!1):(this.editor.previewer.editOnly(!0),this.isHidden=!0)}}]),n}();function ik(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var ok=function(e){Bi(n,aQ);var t=ik(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).updateMarkdown=!1,r.setName("fullScreen","fullscreen"),r}return di(n,[{key:"onClick",value:function(){for(var e=this.editor.options.editorDom.parentElement.classList,t=document.querySelector(".cherry-toolbar-fullscreen");t.firstChild;)t.removeChild(t.firstChild);if(e.contains("fullscreen")){var n=Vc("i","ch-icon ch-icon-fullscreen");t.appendChild(n),e.remove("fullscreen")}else{var r=Vc("i","ch-icon ch-icon-minscreen");t.appendChild(r),e.add("fullscreen")}this.editor.editor.refresh()}}]),n}();function ak(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var sk=function(e){Bi(n,aQ);var t=ak(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("undo","undo"),r}return di(n,[{key:"onClick",value:function(){this.editor.editor.undo()}}]),n}();function lk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var ck=function(e){Bi(n,aQ);var t=lk(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("redo","redo"),r}return di(n,[{key:"onClick",value:function(){this.editor.editor.redo()}}]),n}();function uk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var fk=function(e){Bi(n,aQ);var t=uk(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("code","code"),r}return di(n,[{key:"onClick",value:function(e){var t=this,n=e||"code...";return this.registerAfterClickCb((function(){t.setLessSelection("\n``` \n","\n```\n")})),"\n``` \n".concat(n,"\n```\n")}},{key:"shortcutKeys",get:function(){return["Ctrl-k"]}}]),n}();function hk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var dk=function(e){Bi(n,aQ);var t=hk(n);function n(e){var r,A,i,o,a,s,l,c,u;return ui(this,n),(u=t.call(this,e)).setName("codeTheme"),u.updateMarkdown=!1,u.noIcon=!0,u.subMenuConfig=[{noIcon:!0,name:"default",onclick:eo(r=u.bindSubClick).call(r,gi(u),"default")},{noIcon:!0,name:"dark",onclick:eo(A=u.bindSubClick).call(A,gi(u),"dark")},{noIcon:!0,name:"funky",onclick:eo(i=u.bindSubClick).call(i,gi(u),"funky")},{noIcon:!0,name:"okaidia",onclick:eo(o=u.bindSubClick).call(o,gi(u),"okaidia")},{noIcon:!0,name:"twilight",onclick:eo(a=u.bindSubClick).call(a,gi(u),"twilight")},{noIcon:!0,name:"coy",onclick:eo(s=u.bindSubClick).call(s,gi(u),"coy")},{noIcon:!0,name:"solarized light",onclick:eo(l=u.bindSubClick).call(l,gi(u),"solarized-light")},{noIcon:!0,name:"tomorrow night",onclick:eo(c=u.bindSubClick).call(c,gi(u),"tomorrow-night")}],u}return di(n,[{key:"onClick",value:function(){var e=arguments.length>1?arguments[1]:void 0;document.querySelector(".cherry").setAttribute("data-code-block-theme",e)}}]),n}();function gk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var pk=function(e){Bi(n,aQ);var t=gk(n);function n(e){var r,A,i,o,a;return ui(this,n),(a=t.call(this,e)).setName("export"),a.noIcon=!0,a.updateMarkdown=!1,a.subMenuConfig=[{noIcon:!0,name:"exportToPdf",onclick:eo(r=a.bindSubClick).call(r,gi(a),"pdf")},{noIcon:!0,name:"exportScreenshot",onclick:eo(A=a.bindSubClick).call(A,gi(a),"screenShot")},{noIcon:!0,name:"exportMarkdownFile",onclick:eo(i=a.bindSubClick).call(i,gi(a),"markdown")},{noIcon:!0,name:"exportHTMLFile",onclick:eo(o=a.bindSubClick).call(o,gi(a),"html")}],a}return di(n,[{key:"onClick",value:function(){var e=arguments.length>1?arguments[1]:void 0;document.querySelector(".cherry-dropdown[name=export]")&&(document.querySelector(".cherry-dropdown[name=export]").style.display="none");var t=this.$cherry.previewer,n="";n=t.isPreviewerHidden()?t.options.previewerCache.html:t.getDomContainer().innerHTML,n=t.lazyLoadImg.changeDataSrc2Src(n),t.refresh(n),t.export(e)}}]),n}();function mk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var vk=function(e){Bi(n,aQ);var t=mk(n);function n(e){var r,A,i,o,a;ui(this,n),(a=t.call(this,e)).setName("settings","settings"),a.updateMarkdown=!1,a.engine=e.engine;var s=Yu("classicBr")?ef():null===(r=a.engine.$cherry.options.engine.global)||void 0===r?void 0:r.classicBr,l=e.editor.options.defaultModel,c=s?"br":"normal",u=s?"classicBr":"normalBr",f="editOnly"===l?"preview":"previewClose",h="editOnly"===l?"togglePreview":"previewClose";return a.instanceId=e.instanceId,a.subMenuConfig=[{iconName:c,name:u,onclick:eo(A=a.bindSubClick).call(A,gi(a),"classicBr")},{iconName:f,name:h,onclick:eo(i=a.bindSubClick).call(i,gi(a),"previewClose")},{iconName:"",name:"hide",onclick:eo(o=a.bindSubClick).call(o,gi(a),"toggleToolbar")}],a.attachEventListeners(),a.shortcutKeyMaps=[{shortKey:"toggleToolbar",shortcutKey:"Ctrl-0"}],a}return di(n,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"bindSubClick",value:function(e,t,n,r){return n?this.onClick(t,e,r):this.onClick(t,e)}},{key:"togglePreviewBtn",value:function(e){var t=this,n=e?"previewClose":"preview",r=e?"previewClose":"togglePreview";if(this.subMenu){var A=document.querySelector('.cherry-dropdown[name="settings"]');if(A){var i=A.querySelector(".ch-icon-previewClose,.ch-icon-preview");i.classList.toggle("ch-icon-previewClose"),i.classList.toggle("ch-icon-preview"),i.title=this.locale[r],i.parentElement.innerHTML=i.parentElement.innerHTML.replace(/<\/i>.+$/,"".concat(this.locale[r]))}}else{var o;this.subMenuConfig=Wu(o=this.subMenuConfig).call(o,(function(e){var A;return"previewClose"===e.iconName||"preview"===e.iconName?{iconName:n,name:r,onclick:eo(A=t.bindSubClick).call(A,t,"previewClose")}:e}))}}},{key:"attachEventListeners",value:function(){var e=this;Zc.on(this.instanceId,Zc.Events.previewerClose,(function(){e.togglePreviewBtn(!1)})),Zc.on(this.instanceId,Zc.Events.previewerOpen,(function(){e.togglePreviewBtn(!0)}))}},{key:"onClick",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if("classicBr"===(n=this.matchShortcutKey(n))){var r,A=!ef();t=A,"undefined"!=typeof localStorage&&localStorage.setItem("cherry-classicBr",t?"true":"false"),this.engine.$cherry.options.engine.global.classicBr=A,ti(r=this.engine.hookCenter.hookList.paragraph).call(r,(function(e){e.classicBr=A}));var i=this.$cherry.wrapperDom.querySelector(".cherry-dropdown .ch-icon-normal");i=i||this.$cherry.wrapperDom.querySelector(".cherry-dropdown .ch-icon-br"),A?(i.classList.replace("ch-icon-normal","ch-icon-br"),i.parentElement.childNodes[1].textContent=this.locale.classicBr):(i.classList.replace("ch-icon-br","ch-icon-normal"),i.parentElement.childNodes[1].textContent=this.locale.normalBr),this.engine.$cherry.previewer.update(""),this.engine.$cherry.initText(this.engine.$cherry.editor.editor)}else"previewClose"===n?this.editor.previewer.isPreviewerHidden()?this.editor.previewer.recoverPreviewer(!0):this.editor.previewer.editOnly(!0):"toggleToolbar"===n&&this.toggleToolbar();return e}},{key:"matchShortcutKey",value:function(e){var t,n=sl(t=this.shortcutKeyMaps).call(t,(function(t){return t.shortcutKey===e}));return void 0!==n?n.shortKey:e}},{key:"toggleToolbar",value:function(){var e=this.engine.$cherry.wrapperDom;if(e instanceof HTMLDivElement){var t,n=this.engine.$cherry.toolbar.instanceId;pc(t=e.className).call(t,"cherry--no-toolbar")>-1?(e.classList.remove("cherry--no-toolbar"),Zc.emit(n,Zc.Events.toolbarShow)):(e.classList.add("cherry--no-toolbar"),Zc.emit(n,Zc.Events.toolbarHide))}}},{key:"shortcutKeys",get:function(){var e;return Wu(e=this.shortcutKeyMaps).call(e,(function(e){return e.shortcutKey}))}}]),n}();function yk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var wk=function(e){Bi(n,aQ);var t=yk(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("underline","underline"),r}return di(n,[{key:"$testIsUnderline",value:function(e){return/^\s*(\/)[\s\S]+(\1)/.test(e)}},{key:"onClick",value:function(e){var t=this,n=e||this.locale.underline;return this.isSelections||this.$testIsUnderline(n)||this.getMoreSelection(" /","/ ",(function(){var e=t.editor.editor.getSelection(),r=t.$testIsUnderline(e);return r&&(n=e),r})),this.$testIsUnderline(n)?n.replace(/(^)(\s*)(\/)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb((function(){t.setLessSelection(" /","/ ")})),n.replace(/(^)([^\n]+)($)/gm,"$1 /$2/ $3"))}},{key:"shortcutKeys",get:function(){return["Ctrl-u"]}}]),n}();function Bk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var bk=function(e){Bi(n,aQ);var t=Bk(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("switchPreview"),r.instanceId=e.instanceId,r.attachEventListeners(),r}return di(n,[{key:"attachEventListeners",value:function(){var e=this;Zc.on(this.instanceId,Zc.Events.toolbarHide,(function(){e.dom.textContent=e.locale.switchEdit})),Zc.on(this.instanceId,Zc.Events.toolbarShow,(function(){e.dom.textContent=e.locale.switchPreview}))}},{key:"onClick",value:function(){this.editor.previewer.isPreviewerHidden()?(this.editor.previewer.previewOnly(),this.dom.parentElement.parentElement.classList.add("preview-only"),this.dom.textContent=this.locale.switchEdit):(this.editor.previewer.editOnly(!0),this.dom.parentElement.parentElement.classList.remove("preview-only"),this.dom.textContent=this.locale.switchPreview)}}]),n}();function Ck(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var Qk=function(e){Bi(n,aQ);var t=Ck(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("image","image"),r}return di(n,[{key:"onClick",value:function(e){var t,n,r,A=this;if(this.hasCacheOnce()){var i,o,a=this.getAndCleanCacheOnce(),s=a.name,l=a.url,c=a.params,u="](".concat(l,")");this.registerAfterClickCb((function(){A.setLessSelection("![",u)}));var f=c.name?c.name:s;return zi(i=zi(o="".concat("![").concat(f)).call(o,Yc(c))).call(i,u)}var h=null!==(t=null===(n=this.$cherry.options)||void 0===n||null===(r=n.fileTypeLimitMap)||void 0===r?void 0:r.image)&&void 0!==t?t:"*";return qc(this.editor,"image",h,(function(e,t,n){A.setCacheOnce({name:e,url:t,params:n}),A.fire(null)})),this.updateMarkdown=!1,e}},{key:"shortcutKeys",get:function(){return["Ctrl-g"]}}]),n}();function kk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var Tk=function(e){Bi(n,aQ);var t=kk(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("audio","video"),r}return di(n,[{key:"onClick",value:function(e){var t,n,r,A=this;if(this.hasCacheOnce()){var i,o,a=this.getAndCleanCacheOnce(),s=a.name,l=a.url,c=a.params,u="!audio[",f="](".concat(l,")");this.registerAfterClickCb((function(){A.setLessSelection(u,f)}));var h=c.name?c.name:s;return zi(i=zi(o="".concat(u).concat(h)).call(o,Yc(c))).call(i,f)}var d=null!==(t=null===(n=this.$cherry.options)||void 0===n||null===(r=n.fileTypeLimitMap)||void 0===r?void 0:r.audio)&&void 0!==t?t:"*";return qc(this.editor,"audio",d,(function(e,t,n){A.setCacheOnce({name:e,url:t,params:n}),A.fire(null)})),this.updateMarkdown=!1,e}}]),n}();function xk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var Ek=function(e){Bi(n,aQ);var t=xk(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("video","video"),r}return di(n,[{key:"onClick",value:function(e){var t,n,r,A=this;if(this.hasCacheOnce()){var i,o,a,s=this.getAndCleanCacheOnce(),l=s.name,c=s.url,u=s.params,f="!video[",h=u.poster?zi(i="](".concat(c,"){poster=")).call(i,u.poster,"}"):"](".concat(c,")");this.registerAfterClickCb((function(){A.setLessSelection(f,h)}));var d=u.name?u.name:l;return zi(o=zi(a="".concat(f).concat(d)).call(a,Yc(u))).call(o,h)}var g=null!==(t=null===(n=this.$cherry.options)||void 0===n||null===(r=n.fileTypeLimitMap)||void 0===r?void 0:r.video)&&void 0!==t?t:"*";return qc(this.editor,"video",g,(function(e,t,n){A.setCacheOnce({name:e,url:t,params:n}),A.fire(null)})),this.updateMarkdown=!1,e}}]),n}();function Fk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var Uk=function(e){Bi(n,aQ);var t=Fk(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("br","br"),r}return di(n,[{key:"onClick",value:function(e){return"".concat(e,"
    ")}}]),n}();function Sk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var Lk=function(e){Bi(n,aQ);var t=Sk(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("hr","line"),r}return di(n,[{key:"onClick",value:function(e){return"".concat(e,"\n\n---\n")}}]),n}(),Hk=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ui(this,e),Gi(this,"formulaConfig",{toolbar:{title:"快捷工具",subCategory:{sqrt:{title:"根式角标",formulas:[{name:"根式 Radicals",img:"",latex:""},{name:"",img:'',latex:"\\sqrt[n]{x^{a}}"},{name:"上下标 Sub&Super",img:"",latex:""},{name:"",img:'',latex:"\\sideset{_1^2}{_3^4}X_a^b"}]},limit:{title:"极限对数",formulas:[{name:"极限 Limits",img:"",latex:""},{name:"",img:'',latex:"\n\\lim_{x \\to \\infty} a"},{name:"",img:'',latex:"\\log_{a}{b}"}]}}},template:{title:"公式模板",subCategory:{algebra:{title:"代数",formulas:[{name:"",img:'',latex:"\\sqrt{a^2+b^2}"},{name:"",img:'',latex:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{name:"",img:'',latex:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{name:"",img:'',latex:"\n\\left\\{\\begin{matrix}\n x=a + r\\text{cos}\\theta \\\\\n y=b + r\\text{sin}\\theta \n\\end{matrix}\\right."}]},array:{title:"矩阵",formulas:[{name:"",img:'',latex:"\n\\begin{pmatrix}\n 1 & 0 \\\\\n 0 & 1\n\\end{pmatrix}"},{name:"",img:'',latex:"\n\\begin{pmatrix}\n a_{11} & \\cdots & a_{1n} \\\\\n \\vdots & \\ddots & \\vdots \\\\\n a_{m1} & \\cdots & a_{mn}\n\\end{pmatrix}"},{name:"",img:'',latex:"\nA_{m\\times n}=\n\\begin{bmatrix}\n a_{11}& a_{12}& \\cdots & a_{1n} \\\\\n a_{21}& a_{22}& \\cdots & a_{2n} \\\\\n \\vdots & \\vdots & \\ddots & \\vdots \\\\\n a_{m1}& a_{m2}& \\cdots & a_{mn}\n\\end{bmatrix}\n=\\left [ a_{ij}\\right ]"},{name:"",img:'',latex:"\n\\mathbf{V}_1 \\times \\mathbf{V}_2 =\n\\begin{vmatrix}\n \\mathbf{i}& \\mathbf{j}& \\mathbf{k} \\\\\n \\frac{\\partial X}{\\partial u}& \\frac{\\partial Y}{\\partial u}& 0 \\\\\n \\frac{\\partial X}{\\partial v}& \\frac{\\partial Y}{\\partial v}& 0 \\\\\n\\end{vmatrix}"}]}}}}),Gi(this,"showLatexLive",!0),mn(t).length&&(this.formulaConfig=t.templateConfig||this.formulaConfig,this.showLatexLive=t.showLatexLive),this.init(),this.initEventListeners()}return di(e,[{key:"afterClick",value:function(e){}},{key:"generateBubbleFormulaHtmlStr",value:function(){var e,t,n=$w(this.formulaConfig||{}),r=Wu(n).call(n,(function(e,t){var n,r,A=gc(e,2),i=A[0],o=A[1].title;return zi(n=zi(r='
  • ')).call(n,o,"
  • ")})).join(""),A='
      '.concat(r,"
    "),i=Wu(n).call(n,(function(e,t){var n,r,A,i,o=gc(e,2),a=o[0],s=o[1],l=null===(n=$w((null==s?void 0:s.subCategory)||{}))||void 0===n?void 0:Wu(n).call(n,(function(e){var t,n,r,A,i,o,a=gc(e,2),s=a[0],l=a[1],c=null==l||null===(t=l.formulas)||void 0===t?void 0:Wu(t).call(t,(function(e){var t,n;if(""===e.latex)return'
    '.concat(e.name,"
    ");var r=e.img||"";return zi(t=zi(n='
    ')).call(t,r||e.name,"
    ")})).join(""),u=zi(n='
    ')).call(n,c,"
    "),f=zi(r='");return zi(A=zi(i=zi(o='
    ')).call(i,f)).call(A,u,"
    ")})).join("");return zi(r=zi(A=zi(i='
    ')).call(r,l,"
    ")})).join(""),o=this.showLatexLive?'
    查看更多:www.latexlive.com
    ':"";return zi(e=zi(t="".concat(A)).call(t,i)).call(e,o)}},{key:"init",value:function(){mn(this.formulaConfig).length&&(this.dom=document.createElement("div"),this.dom.className=["cherry-dropdown","cherry-insert-formula","cherry-insert-formula-wrappler"].join(" "),this.dom.innerHTML=this.generateBubbleFormulaHtmlStr(),this.dom.style.display="none")}},{key:"show",value:function(e){this.dom.style.removeProperty("display"),this.afterClick=e}},{key:"hide",value:function(){this.dom.style.display="none"}},{key:"isShow",value:function(){return"block"===this.dom.style.display}},{key:"isHide",value:function(){return"none"===this.dom.style.display}},{key:"initEventListeners",value:function(){var e,t,n,r=this;null===(e=this.dom.querySelector(".cherry-insert-formula-tabs"))||void 0===e||e.addEventListener("click",eo(t=this.handleClickFormulaTabs).call(t,this)),null===(n=this.dom.querySelectorAll(".cherry-insert-formula-categary__func-item"))||void 0===n||ti(n).call(n,(function(e){var t;return null==e?void 0:e.addEventListener("click",eo(t=r.handleClickFormulaSelect).call(t,r))}))}},{key:"handleClickFormulaTabs",value:function(e){e.preventDefault(),e.stopPropagation();var t=e.target;if(t instanceof HTMLLIElement||t instanceof HTMLSpanElement){var n=t instanceof HTMLSpanElement?t.parentElement:t,r=n.dataset.name,A=document.querySelector(".cherry-insert-formula-select[data-name=".concat(r,"]")),i=document.querySelector(".cherry-insert-formula-tab.active"),o=document.querySelector(".cherry-insert-formula-select.active");null==i||i.classList.remove("active"),null==o||o.classList.remove("active"),n.classList.add("active"),A.classList.add("active")}}},{key:"handleClickFormulaSelect",value:function(e){e.preventDefault(),e.stopPropagation();var t=e.target;if(t instanceof HTMLElement){var n=t.dataset.formulaCode,r=void 0===n?"":n;this.afterClick(r),this.hide()}}}]),e}();function Ik(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var Mk=function(e){Bi(n,aQ);var t=Ik(n);function n(e){var r,A,i,o;return ui(this,n),(o=t.call(this,e)).setName("formula","insertFormula"),o.subBubbleFormulaMenu=new Hk(null==e||null===(r=e.options)||void 0===r||null===(A=r.toolbars)||void 0===A||null===(i=A.config)||void 0===i?void 0:i.formula),e.editor.options.wrapperDom.appendChild(o.subBubbleFormulaMenu.dom),o.catchOnce="",o}return di(n,[{key:"onClick",value:function(e){var t=this;if(this.subBubbleFormulaMenu.isHide()||!this.hasCacheOnce()){var n=this.dom.getBoundingClientRect();return this.subBubbleFormulaMenu.dom.style.left="".concat(n.left+n.width,"px"),this.subBubbleFormulaMenu.dom.style.top="".concat(n.top+n.height,"px"),this.subBubbleFormulaMenu.show((function(n){var r,A,i=/\n/.test(n)?"".concat(/\n$/.test(e)?e:"".concat(e,"\n"),"$$"):"".concat(e," $ "),o=/\n/.test(n)?"\n$$ ":" $ ";t.registerAfterClickCb((function(){t.setLessSelection(i,o)}));var a=zi(r=zi(A="".concat(i)).call(A,n)).call(r,o);t.setCacheOnce(a),t.fire(null)})),this.updateMarkdown=!1,!1}return this.getAndCleanCacheOnce()}},{key:"shortcutKeys",get:function(){return["Ctrl-m"]}}]),n}();function _k(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var Dk=function(e){Bi(n,aQ);var t=_k(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("link","link"),r}return di(n,[{key:"onClick",value:function(e){var t;if(/^http/.test(e))return zi(t="[".concat(this.locale.link,"](")).call(t,e,")");var n=e||this.locale.link;return"[".concat(n,"](http://url.com) ")}},{key:"shortcutKeys",get:function(){return["Ctrl-l"]}}]),n}();function Ok(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var Nk=function(e){Bi(n,aQ);var t=Ok(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("table","table"),r.subBubbleTableMenu=new xQ({row:9,col:9}),e.editor.options.wrapperDom.appendChild(r.subBubbleTableMenu.dom),r.catchOnce="",r}return di(n,[{key:"onClick",value:function(e){var t=this;if("none"===this.subBubbleTableMenu.dom.style.display||!this.hasCacheOnce()){var n=this.dom.getBoundingClientRect();return this.subBubbleTableMenu.dom.style.left="".concat(n.left+n.width,"px"),this.subBubbleTableMenu.dom.style.top="".concat(n.top+n.height,"px"),this.subBubbleTableMenu.show((function(n,r){var A,i,o,a=Uc(" Header |").call(" Header |",r),s=Uc(" ------ |").call(" ------ |",r),l="\n|".concat(Uc(" Sample |").call(" Sample |",r)),c=zi(A=zi(i=zi(o="".concat(e,"\n\n|")).call(o,a,"\n|")).call(i,s)).call(A,Uc(l).call(l,n),"\n\n");t.setCacheOnce(c),t.fire(null)})),this.updateMarkdown=!1,!1}return this.getAndCleanCacheOnce()}}]),n}();function Rk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var Pk=function(e){Bi(n,aQ);var t=Rk(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("toc","toc"),r}return di(n,[{key:"onClick",value:function(e){return"".concat(e,"\n\n[[toc]]\n")}}]),n}();function Kk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var $k=function(e){Bi(n,aQ);var t=Kk(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("lineTable","table"),r}return di(n,[{key:"onClick",value:function(e){var t;return zi(t="".concat(e,"\n\n")).call(t,["| :line: {x,y} | a | b | c |","| :-: | :-: | :-: | :-: |","| x | 1 | 2 | 3 |","| y | 2 | 4 | 6 |","| z | 7 | 5 | 3 |"].join("\n"),"\n\n")}}]),n}();function Xk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var Vk=function(e){Bi(n,aQ);var t=Xk(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("brTable","table"),r}return di(n,[{key:"onClick",value:function(e){var t;return zi(t="".concat(e,"\n\n")).call(t,["| :bar: {x,y} | a | b | c |","| :-: | :-: | :-: | :-: |","| x | 1 | 2 | 3 |","| y | 2 | 4 | 6 |","| z | 7 | 5 | 3 |"].join("\n"),"\n\n")}}]),n}();function jk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var Gk=function(e){Bi(n,aQ);var t=jk(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("pdf","pdf"),r}return di(n,[{key:"onClick",value:function(e){var t,n,r,A=this;if(this.hasCacheOnce()){var i,o=this.getAndCleanCacheOnce(),a=o.name,s=o.url,l=o.params,c="](".concat(s,")");this.registerAfterClickCb((function(){A.setLessSelection("[",c)}));var u=l.name?l.name:a;return zi(i="".concat("[").concat(u)).call(i,c)}var f=null!==(t=null===(n=this.$cherry.options)||void 0===n||null===(r=n.fileTypeLimitMap)||void 0===r?void 0:r.pdf)&&void 0!==t?t:"*";return qc(this.editor,"pdf",f,(function(e,t,n){A.setCacheOnce({name:e,url:t,params:n}),A.fire(null)})),this.updateMarkdown=!1,e}}]),n}();function Wk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var Jk=function(e){Bi(n,aQ);var t=Wk(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("file","phone"),r}return di(n,[{key:"onClick",value:function(e){var t,n,r,A=this;if(this.hasCacheOnce()){var i,o=this.getAndCleanCacheOnce(),a=o.name,s=o.url,l=o.params,c="](".concat(s,")");this.registerAfterClickCb((function(){A.setLessSelection("[",c)}));var u=l.name?l.name:a;return zi(i="".concat("[").concat(u)).call(i,c)}var f=null!==(t=null===(n=this.$cherry.options)||void 0===n||null===(r=n.fileTypeLimitMap)||void 0===r?void 0:r.file)&&void 0!==t?t:"*";return qc(this.editor,"file",f,(function(e,t,n){A.setCacheOnce({name:e,url:t,params:n}),A.fire(null)})),this.updateMarkdown=!1,e}}]),n}();function zk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var Zk=function(e){Bi(n,aQ);var t=zk(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("word","word"),r}return di(n,[{key:"onClick",value:function(e){var t,n,r,A=this;if(this.hasCacheOnce()){var i,o=this.getAndCleanCacheOnce(),a=o.name,s=o.url,l=o.params,c="](".concat(s,")");this.registerAfterClickCb((function(){A.setLessSelection("[",c)}));var u=l.name?l.name:a;return zi(i="".concat("[").concat(u)).call(i,c)}var f=null!==(t=null===(n=this.$cherry.options)||void 0===n||null===(r=n.fileTypeLimitMap)||void 0===r?void 0:r.word)&&void 0!==t?t:"*";return qc(this.editor,"word",f,(function(e,t,n){A.setCacheOnce({name:e,url:t,params:n}),A.fire(null)})),this.updateMarkdown=!1,e}}]),n}();function qk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var Yk=function(e){Bi(n,aQ);var t=qk(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("pinyin","pinyin"),r}return di(n,[{key:"$testIsRuby",value:function(e){return/^\s*\{[\s\S]+\|[\s\S]+\}/.test(e)}},{key:"onClick",value:function(e){var t,n,r=this,A=dQ(this.editor.editor,e)||"拼音";if(this.isSelections||this.$testIsRuby(A)||this.getMoreSelection(" { "," } ",(function(){var e=r.editor.editor.getSelection(),t=r.$testIsRuby(e);return t&&(A=e),t})),this.$testIsRuby(A))return A.replace(/^\s*\{\s*([\s\S]+?)\s*\|[\s\S]+\}\s*/gm,"$1");var i=wl(t=this.editor.$cherry.options.callback.changeString2Pinyin(A)||"pin yin").call(t);return this.registerAfterClickCb((function(){r.setLessSelection(" { "," } ")})),zi(n=" { ".concat(A," | ")).call(n,i," } ")}}]),n}();function eT(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var tT=function(e){Bi(n,aQ);var t=eT(n);function n(e){var r,A;ui(this,n),(A=t.call(this,e)).setName("theme","insertChart"),A.subMenuConfig=[];var i=gi(A);return ti(r=e.options.theme).call(r,(function(e){var t;i.subMenuConfig.push({iconName:e.className,name:e.label,onclick:eo(t=i.bindSubClick).call(t,i,e.className)})})),A}return di(n,[{key:"onClick",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return nf(this.$cherry,t),this.updateMarkdown=!1,""}}]),n}();function nT(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var rT=function(e){Bi(n,aQ);var t=nT(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("wordCount","wordCount"),r.noIcon=!0,r.countState=0,r.countEvent=new Event("count"),r}return di(n,[{key:"onClick",value:function(e){var t=this,n=document.querySelector(".cherry-toolbar-button.cherry-toolbar-wordCount");if(0===this.countState){n.addEventListener("count",(function(){var e=t.$cherry.getMarkdown(),r=t.wordCount(e),A=r.characters,i=r.words,o=r.paragraphs;1===t.countState?n.innerHTML="P ".concat(o):2===t.countState?n.innerHTML="W ".concat(i):n.innerHTML="C ".concat(A)}));var r=null;this.editor.editor.on("change",(function(){r&&clearTimeout(r),r=lo((function(){n.dispatchEvent(t.countEvent),r=null}),500)}))}return this.countState=(this.countState+1)%3+1,n.dispatchEvent(this.countEvent),e}},{key:"wordCount",value:function(e){var t,n,r=/[\u4e00-\u9fa5]|[\u3001\u3002\uff01\uff0c\uff1b\uff1a\u201c\u201d\u2018\u2019\u300a\u300b\u3008\u3009\u3010\u3011\u300e\u300f\u300c\u300d\uff08\uff09\u2014\u2026\u2013\uff0e]/g;return{characters:e.replace(/\n|\s/g,"").length,words:(e.match(r)||[]).length+AA(t=e.replace(r," ").split(/[\s\n]+/)).call(t,Boolean).length,paragraphs:AA(n=e.split(/\n{2,}/)).call(n,(function(e){return""!==wl(e).call(e)})).length}}}]),n}();function AT(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var iT=function(e){Bi(n,aQ);var t=AT(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).previewer=e.previewer,r.updateMarkdown=!1,r.setName("mobilePreview","phone"),r}return di(n,[{key:"onClick",value:function(){this.previewer.removeScroll();var e=this.previewer.getDomContainer();this.previewer.isMobilePreview?e.parentNode.innerHTML=e.innerHTML:e.innerHTML="
    ".concat(e.innerHTML,"
    "),this.previewer.isMobilePreview=!this.previewer.isMobilePreview,this.previewer.bindScroll()}}]),n}(),oT=Zb;function aT(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var sT=function(e){Bi(r,aQ);var t,n=aT(r);function r(e){var t;return ui(this,r),(t=n.call(this,e)).previewer=e.previewer,t.isLoading=!1,t.updateMarkdown=!1,t.setName("copy","copy"),t}return di(r,[{key:"adaptWechat",value:(t=tC(cC.mark((function e(t){var n,r,A,i,o;return cC.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=/(
    .*?<\/figure>)/g,r=t.replace(n,(function(e,t,n,r){var A,i;return zi(A=zi(i="".concat(t,"p")).call(i,n,"p")).call(A,r)})),A=/()/g,i=[],r.replace(A,(function(e,t,n){i.push(lT(n))})),e.next=7,oT.all(i);case 7:return o=e.sent,e.abrupt("return",r.replace(A,(function(e,t,n,r){return t+o.shift()+r})));case 9:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})},{key:"getStyleFromSheets",value:function(e){var t,n=AA(t=Nl(document.styleSheets)).call(t,(function(t){var n;return t.cssRules[0]&&pc(n=t.cssRules[0].cssText).call(n,e)>-1}));return"")}},{key:"computeStyle",value:function(){return{mathStyle:this.getStyleFromSheets("mjx-container"),echartStyle:"",cherryStyle:this.getStyleFromSheets("cherry")}}},{key:"toggleLoading",value:function(){this.isLoading?document.querySelector(".icon-loading").outerHTML=''):document.querySelector(".ch-icon-copy").outerHTML='
    ';this.isLoading=!this.isLoading}},{key:"onClick",value:function(e){var t=this;this.toggleLoading();var n=document.querySelector(".cherry").getAttribute("data-inline-code-theme"),r=document.querySelector(".cherry").getAttribute("data-code-block-theme"),A=this.computeStyle(),i=A.mathStyle,o=A.echartStyle,a=A.cherryStyle,s=this.previewer.isPreviewerHidden()?this.previewer.options.previewerCache.html:this.previewer.getValue();this.adaptWechat(s).then((function(e){var A,s,l;uC(zi(A=zi(s=zi(l="".concat(i+o+a,'\n
    \n
    ')).call(A,e,"
    \n
    ")),t.toggleLoading()}))}}]),r}();function lT(e,t,n){return new oT((function(t){var r=document.createElement("CANVAS"),A=r.getContext("2d"),i=new Image;i.crossOrigin="Anonymous",i.onload=function(){r.height=i.height,r.width=i.width,A.drawImage(i,0,0);var e=r.toDataURL(n||"image/png");t(e),r=null},i.src=e}))}function cT(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var uT=function(e){Bi(n,aQ);var t=cT(n);function n(e){var r,A,i,o,a,s;return ui(this,n),(s=t.call(this,e)).setName("panel","tips"),s.panelRule=yu().reg,s.subMenuConfig=[{iconName:"tips",name:"tips",onclick:eo(r=s.bindSubClick).call(r,gi(s),"primary")},{iconName:"info",name:"info",onclick:eo(A=s.bindSubClick).call(A,gi(s),"info")},{iconName:"warning",name:"warning",onclick:eo(i=s.bindSubClick).call(i,gi(s),"warning")},{iconName:"danger",name:"danger",onclick:eo(o=s.bindSubClick).call(o,gi(s),"danger")},{iconName:"success",name:"success",onclick:eo(a=s.bindSubClick).call(a,gi(s),"success")}],s}return di(n,[{key:"$getNameFromStr",value:function(e){var t=!1;return this.panelRule.lastIndex=0,e.replace(this.panelRule,(function(e,n,r,A){var i=/\s/.test(wl(r).call(r))?wl(r).call(r).replace(/\s.*$/,""):r;return t=i?wl(i).call(i).toLowerCase():"",e})),t}},{key:"$getTitle",value:function(e){return this.panelRule.lastIndex=0,e.replace(this.panelRule,(function(e,t,n,r){var A=wl(n).call(n);return/\s/.test(A)?A.replace(/[^\s]+\s/,""):""})),""}},{key:"onClick",value:function(e){var t,n,r=this,A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=dQ(this.editor.editor,e,"line",!0)||"内容",o=this.$getNameFromStr(i),a=this.$getTitle(i);return!1===o&&this.getMoreSelection("::: ","\n",(function(){var e=r.editor.editor.getSelection(),t=r.$getNameFromStr(e);return!1!==t&&(i=e,o=t,a=r.$getTitle(e)),!1!==t})),!1!==o?o===A?(this.panelRule.lastIndex=0,i.replace(this.panelRule,(function(e,t,n,r){var A,i=wl(n).call(n),o=/\s/.test(i)?i.replace(/[^\s]+\s/,""):"";return zi(A="".concat(o,"\n")).call(A,r)}))):(this.registerAfterClickCb((function(){r.setLessSelection("::: ","\n")})),this.panelRule.lastIndex=0,i.replace(this.panelRule,(function(e,t,n,r){var i,o,a=wl(n).call(n),s=/\s/.test(a)?a.replace(/[^\s]+\s/,""):"";return zi(i=zi(o="::: ".concat(A," ")).call(o,s,"\n")).call(i,r.replace(/\n+$/,""),"\n:::")}))):(this.registerAfterClickCb((function(){r.setLessSelection("::: ","\n")})),i=i.replace(/^\n+/,""),/\n/.test(i)?a||(a=i.replace(/\n[\w\W]+$/,""),i=i.replace(/^[^\n]+\n/,"")):a=a||"标题",zi(t=zi(n="::: ".concat(A," ")).call(n,a,"\n")).call(t,i,"\n:::").replace(/\n{2,}:::/g,"\n:::"))}}]),n}();function fT(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var hT=function(e){Bi(n,uT);var t=fT(n);function n(e){var r,A,i,o,a,s,l;ui(this,n),(l=t.call(this,e)).setName("justify","justify"),l.panelRule=yu().reg;var c=l.$cherry.locale;return l.subMenuConfig=[{iconName:"justifyLeft",name:null!==(r=null==c?void 0:c.justifyLeft)&&void 0!==r?r:"左对齐",onclick:eo(A=l.bindSubClick).call(A,gi(l),"left")},{iconName:"justifyCenter",name:null!==(i=null==c?void 0:c.justifyCenter)&&void 0!==i?i:"居中",onclick:eo(o=l.bindSubClick).call(o,gi(l),"center")},{iconName:"justifyRight",name:null!==(a=null==c?void 0:c.justifyRight)&&void 0!==a?a:"右对齐",onclick:eo(s=l.bindSubClick).call(s,gi(l),"right")}],l}return di(n,[{key:"$getTitle",value:function(){return" "}}]),n}();function dT(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var gT=function(e){Bi(n,aQ);var t=dT(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("detail","insertFlow"),r.detailRule=wu().reg,r}return di(n,[{key:"onClick",value:function(e){var t,n=this,r=dQ(this.editor.editor,e,"line",!0)||"点击展开更多\n内容\n++- 默认展开\n内容\n++ 默认收起\n内容";if(this.detailRule.lastIndex=0,this.detailRule.test(r)||this.getMoreSelection("+++ ","\n",(function(){var e=n.editor.editor.getSelection();n.detailRule.lastIndex=0;var t=n.detailRule.test(e);return!1!==t&&(r=e),!1!==t})),this.detailRule.lastIndex=0,this.detailRule.test(r))return this.detailRule.lastIndex=0,r.replace(this.detailRule,(function(e,t,n,r,A){var i;return zi(i="".concat(r,"\n")).call(i,A)}));(r=r.replace(/^\s+/,""),/\n/.test(r))||(r=zi(t="".concat(r,"\n")).call(t,r));return this.registerAfterClickCb((function(){n.setLessSelection("+++ ","\n")})),"+++ ".concat(r,"\n+++").replace(/\n{2,}\+\+\+/g,"\n+++")}}]),n}();function pT(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var mT=function(e){Bi(n,aQ);var t=pT(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("draw.io","draw.io"),r.noIcon=!0,r.drawioIframeUrl=e.options.drawioIframeUrl,r}return di(n,[{key:"onClick",value:function(e){var t=this;if(!this.drawioIframeUrl)return e;if(this.hasCacheOnce()){var n,r=this.getAndCleanCacheOnce(),A=r.xmlData,i=r.base64,o=zi(n="](".concat(i,"){data-type=drawio data-xml=")).call(n,encodeURI(A),"}");return this.registerAfterClickCb((function(){t.setLessSelection("![",o)})),"".concat("![","在预览区点击图片重新编辑draw.io").concat(o)}return vC(this.drawioIframeUrl,"",(function(e){t.setCacheOnce(e),t.fire(null)})),this.updateMarkdown=!1,e}}]),n}(),vT={bold:lQ,italic:uQ,"|":hQ,strikethrough:pQ,sub:vQ,sup:wQ,header:kQ,insert:FQ,list:SQ,ol:HQ,ul:MQ,checklist:DQ,graph:XQ,size:jQ,h1:WQ,h2:zQ,h3:qQ,color:bQ,quote:ek,quickTable:nk,togglePreview:Ak,code:fk,codeTheme:dk,export:pk,settings:vk,fullScreen:ok,mobilePreview:iT,copy:sT,undo:sk,redo:ck,underline:wk,switchModel:bk,image:Qk,audio:Tk,video:Ek,br:Uk,hr:Lk,formula:Mk,link:Dk,table:Nk,toc:Pk,lineTable:$k,barTable:Vk,pdf:Gk,word:Zk,ruby:Yk,theme:tT,file:Jk,panel:uT,justify:hT,detail:gT,drawIo:mT,wordCount:rT},yT=function(){function e(t){ui(this,e),this.toolbar=t,this.hooks={},this.allMenusName=[],this.level1MenusName=[],this.level2MenusName={},this.init()}return di(e,[{key:"$newMenu",value:function(e){if(!this.hooks[e]){var t=this.toolbar.options,n=t.$cherry,r=t.customMenu;vT[e]?(this.allMenusName.push(e),this.hooks[e]=new vT[e](n)):null!=r&&r[e]&&(this.allMenusName.push(e),this.hooks[e]=new r[e](n))}}},{key:"init",value:function(){var e=this,t=this.toolbar.options.buttonConfig;ti(t).call(t,(function(t){if("string"==typeof t)e.level1MenusName.push(t),e.$newMenu(t);else if("object"===Ki(t)){var n=mn(t);if(1===n.length){var r,A=gc(n,1)[0];e.level1MenusName.push(A),e.$newMenu(A),e.level2MenusName[A]=t[A],ti(r=t[A]).call(r,(function(t){e.$newMenu(t)}))}}}))}}]),e}(),wT=function(){function e(t){ui(this,e),Gi(this,"toolbarHandlers",{}),this.menus={},this.shortcutKeyMap={},this.subMenus={},this.options={dom:document.createElement("div"),buttonConfig:["bold"],customMenu:[]},el(this.options,t),this.$cherry=this.options.$cherry,this.instanceId=this.$cherry.instanceId,this.menus=new yT(this),this.drawMenus(),this.collectShortcutKey(),this.collectToolbarHandler(),this.init()}return di(e,[{key:"init",value:function(){var e=this;Zc.on(this.instanceId,Zc.Events.cleanAllSubMenus,(function(){return e.hideAllSubMenu()}))}},{key:"previewOnly",value:function(){this.options.dom.classList.add("preview-only"),this.$cherry.wrapperDom.classList.add("cherry--no-toolbar"),Zc.emit(this.instanceId,Zc.Events.toolbarHide)}},{key:"showToolbar",value:function(){this.options.dom.classList.remove("preview-only"),this.$cherry.wrapperDom.classList.remove("cherry--no-toolbar"),Zc.emit(this.instanceId,Zc.Events.toolbarShow)}},{key:"isHasLevel2Menu",value:function(e){return this.menus.level2MenusName[e]}},{key:"isHasConfigMenu",value:function(e){return this.menus.hooks[e].subMenuConfig||[]}},{key:"isHasSubMenu",value:function(e){return Boolean(this.isHasLevel2Menu(e)||this.isHasConfigMenu(e).length>0)}},{key:"drawMenus",value:function(){var e,t=this,n=document.createDocumentFragment();ti(e=this.menus.level1MenusName).call(e,(function(e){var r=t.menus.hooks[e].createBtn();"object"===("undefined"==typeof window?"undefined":Ki(window))&&"onpointerup"in window?(r.addEventListener("pointerdown",(function(){t.isPointerDown=!0}),!1),r.addEventListener("pointerup",(function(n){t.isPointerDown&&t.onClick(n,e),t.isPointerDown=!1}),!1)):r.addEventListener("click",(function(n){t.onClick(n,e)}),!1),t.isHasSubMenu(e)&&r.classList.add("cherry-toolbar-dropdown"),n.appendChild(r)})),this.appendMenusToDom(n)}},{key:"appendMenusToDom",value:function(e){var t=Vc("div","toolbar-left");t.appendChild(e),this.options.dom.appendChild(t)}},{key:"setSubMenuPosition",value:function(e,t){var n=e.getMenuPosition();t.style.left="".concat(n.left+n.width/2,"px"),t.style.top="".concat(n.top+n.height,"px"),t.style.position=e.positionModel}},{key:"drawSubMenus",value:function(e){var t=this;this.subMenus[e]=Vc("div","cherry-dropdown",{name:e}),this.setSubMenuPosition(this.menus.hooks[e],this.subMenus[e]);var n=this.isHasLevel2Menu(e);n&&ti(n).call(n,(function(n){var r=t.menus.hooks[n];if(void 0!==r&&"function"==typeof r.createBtn){var A=r.createBtn(!0);r.dom=r.dom?r.dom:t.menus.hooks[e].dom,A.addEventListener("click",(function(e){return t.onClick(e,n,!0)}),!1),t.subMenus[e].appendChild(A)}}));var r=this.isHasConfigMenu(e);r.length>0&&ti(r).call(r,(function(n){var r=t.menus.hooks[e].createSubBtnByConfig(n);r.addEventListener("click",(function(){return t.hideAllSubMenu()}),!1),t.subMenus[e].appendChild(r)})),this.$cherry.wrapperDom.appendChild(this.subMenus[e])}},{key:"onClick",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.menus.hooks[t];r&&(this.isHasSubMenu(t)&&!n?this.toggleSubMenu(t):(this.hideAllSubMenu(),r.fire(e,t)))}},{key:"toggleSubMenu",value:function(e){if(!this.subMenus[e])return this.hideAllSubMenu(),this.drawSubMenus(e),void(this.subMenus[e].style.display="block");"none"===this.subMenus[e].style.display?(this.hideAllSubMenu(),this.subMenus[e].style.display="block",this.setSubMenuPosition(this.menus.hooks[e],this.subMenus[e])):this.subMenus[e].style.display="none"}},{key:"hideAllSubMenu",value:function(){var e;ti(e=this.$cherry.wrapperDom.querySelectorAll(".cherry-dropdown")).call(e,(function(e){e.style.display="none"}))}},{key:"collectMenuInfo",value:function(e){this.toolbarHandlers=el({},this.toolbarHandlers,e.toolbarHandlers),this.menus.hooks=el({},e.menus.hooks,this.menus.hooks),(!this.options.shortcutKey||mn(this.options.shortcutKey).length<=0)&&(this.shortcutKeyMap=el({},this.shortcutKeyMap,e.shortcutKeyMap))}},{key:"collectShortcutKey",value:function(){var e,t=this;this.options.shortcutKey&&mn(this.options.shortcutKey).length>0?this.shortcutKeyMap=this.options.shortcutKey:ti(e=this.menus.allMenusName).call(e,(function(e){var n;null===(n=t.menus.hooks[e].shortcutKeys)||void 0===n||ti(n).call(n,(function(n){t.shortcutKeyMap[n]=e}))}))}},{key:"collectToolbarHandler",value:function(){var e,t=this;this.toolbarHandlers=Md(e=this.menus.allMenusName).call(e,(function(e,n){var r=t.menus.hooks[n];return r?(e[n]=function(e,t){"function"==typeof t&&zc.warn("MenuBase#onClick param callback is no longer supported. Please register the callback via MenuBase#registerAfterClickCb instead."),r.fire.call(r,void 0,e)},e):e}),{})}},{key:"matchShortcutKey",value:function(e){return!!this.shortcutKeyMap[this.getCurrentKey(e)]}},{key:"fireShortcutKey",value:function(e){var t,n=this.getCurrentKey(e);null===(t=this.menus.hooks[this.shortcutKeyMap[n]])||void 0===t||t.fire(e,n)}},{key:"getCurrentKey",value:function(e){var t="";return e.ctrlKey&&(t+="Ctrl-"),e.altKey&&(t+="Alt-"),e.metaKey&&AQ&&(t+="Ctrl-"),e.shiftKey&&(t+="Shift-"),e.key&&"shift"!==e.key.toLowerCase()&&(t+=e.key.toLowerCase()),t}}]),e}();function BT(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var bT=function(e){Bi(n,wT);var t=BT(n);function n(){return ui(this,n),t.apply(this,arguments)}return di(n,[{key:"visible",get:function(){var e=window.getComputedStyle(this.bubbleDom);return"none"!==e.display&&"hidden"!==e.visibility},set:function(e){var t=window.getComputedStyle(this.bubbleDom);e?"none"===t.display&&(this.bubbleDom.style.display=n.displayType):"none"!==t.display&&(this.bubbleDom.style.display="none")}},{key:"init",value:function(){this.options.editor=this.$cherry.editor,this.addSelectionChangeListener(),this.bubbleDom=this.options.dom,this.editorDom=this.options.editor.getEditorDom(),this.initBubbleDom(),this.editorDom.querySelector(".CodeMirror").appendChild(this.bubbleDom)}},{key:"appendMenusToDom",value:function(e){this.options.dom.appendChild(e)}},{key:"getScrollTop",value:function(){return this.options.editor.editor.getScrollInfo().top}},{key:"updatePositionWhenScroll",value:function(){this.bubbleDom.style.display===n.displayType&&(this.bubbleDom.style.marginTop="".concat(Pc(this.bubbleDom.dataset.scrollTop)-this.getScrollTop(),"px"))}},{key:"showBubble",value:function(e,t){this.visible||(this.visible=!0,this.bubbleDom.style.marginTop="0",this.bubbleDom.dataset.scrollTop=String(this.getScrollTop()));var n=this.editorDom.querySelector(".CodeMirror-lines").firstChild.getBoundingClientRect(),r=this.editorDom.getBoundingClientRect(),A=n.left-r.left,i=n.width+A,o=e;o<2*this.bubbleDom.offsetHeight?(o+=this.bubbleDom.offsetHeight-this.bubbleTop.getBoundingClientRect().height,this.bubbleTop.style.display="block",this.bubbleBottom.style.display="none"):(o-=this.bubbleDom.offsetHeight+2*this.bubbleBottom.getBoundingClientRect().height,this.bubbleTop.style.display="none",this.bubbleBottom.style.display="block"),this.bubbleDom.style.top="".concat(o,"px");var a=t-this.bubbleDom.offsetWidth/2;ai?(a=i-this.bubbleDom.offsetWidth,this.$setBubbleCursorPosition("".concat(t-a,"px"))):this.$setBubbleCursorPosition("50%"),this.bubbleDom.style.left="".concat(Math.max(20,a),"px")}},{key:"hideBubble",value:function(){this.visible=!1}},{key:"$setBubbleCursorPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"50%";if("50%"===e)this.bubbleTop.style.left="50%",this.bubbleBottom.style.left="50%";else{var t=Pc(e)<10?"10px":e;this.bubbleTop.style.left=t,this.bubbleBottom.style.left=t}}},{key:"initBubbleDom",value:function(){var e=document.createElement("div");e.className="cherry-bubble-top";var t=document.createElement("div");t.className="cherry-bubble-bottom",this.bubbleTop=e,this.bubbleBottom=t,this.bubbleDom.appendChild(e),this.bubbleDom.appendChild(t),this.visible=!1}},{key:"getBubbleDom",value:function(){return this.bubbleDom}},{key:"addSelectionChangeListener",value:function(){var e=this;this.options.editor.addListener("change",(function(t){e.hideBubble()})),this.options.editor.addListener("refresh",(function(t){e.hideBubble()})),this.options.editor.addListener("scroll",(function(t){e.updatePositionWhenScroll()})),this.options.editor.addListener("beforeSelectionChange",(function(t,n){if("*mouse"!==n.origin&&(null!==n.origin||void 0===n.origin))return!0;if(!n.ranges[0])return!0;var r=1e6*n.ranges[0].anchor.line+n.ranges[0].anchor.ch,A=1e6*n.ranges[0].head.line+n.ranges[0].head.ch,i="asc";r>A&&(i="desc"),lo((function(){if(t.getSelections().join("").length<=0)e.hideBubble();else{var n=t.getWrapperElement().getElementsByClassName("CodeMirror-selected"),r=e.editorDom.getBoundingClientRect(),A=0,o=0;if("object"!==Ki(n)||n.length<=0)e.hideBubble();else{for(var a=0;a=o&&(o=l,A=s.left-r.left+s.width/2):(l<=o||o<=0)&&(o=l,A=s.left-r.left+s.width/2)}e.showBubble(o,A)}}}),10)}))}}]),n}();function CT(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}Gi(bT,"displayType","flex");var QT=function(e){Bi(n,wT);var t=CT(n);function n(){return ui(this,n),t.apply(this,arguments)}return di(n,[{key:"init",value:function(){this.editor=this.$cherry.editor,this.editorDom=this.editor.getEditorDom(),this.editorDom.querySelector(".CodeMirror-scroll").appendChild(this.options.dom),this.initAction()}},{key:"appendMenusToDom",value:function(e){this.options.dom.appendChild(e)}},{key:"initAction",value:function(){var e=this;this.editor.addListener("cursorActivity",(function(t,n){e.cursorActivity(n,t)})),this.editor.addListener("update",(function(t,n){e.cursorActivity(n,t)})),this.editor.addListener("refresh",(function(t,n){lo((function(){e.cursorActivity(n,t)}),0)}))}},{key:"update",value:function(e,t){var n=t.getCursor();if(this.isHidden(n.line,t))return this.options.dom.style.display="none",!1;this.options.dom.style.display="inline-block"}},{key:"cursorActivity",value:function(e,t){var n=t.getCursor(),r=document.querySelector(".cherry-editor .CodeMirror-lines");if(!r)return!1;var A=getComputedStyle(r),i=Pc(A.paddingLeft),o=Pc(A.paddingTop);if(this.isHidden(n.line,t))return this.options.dom.style.display="none",!1;this.options.dom.style.display="inline-block",this.options.dom.style.left="".concat(i,"px"),this.options.dom.style.top="".concat(this.getLineHeight(n.line,t)+o,"px")}},{key:"isHidden",value:function(e,t){return t.getSelections().length>1||(t.getSelection().length>0||!!t.getLine(e))}},{key:"getLineHeight",value:function(e,t){var n=0;return t.getDoc().eachLine(0,e,(function(e){n+=e.height})),n}}]),n}();function kT(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var TT=function(e){Bi(n,wT);var t=kT(n);function n(){return ui(this,n),t.apply(this,arguments)}return di(n,[{key:"appendMenusToDom",value:function(e){var t=Vc("div","toolbar-right");t.appendChild(e),this.options.dom.appendChild(t)}}]),n}(),xT=function(){function e(t){var n,r;ui(this,e),this.$cherry=t.$cherry,this.editor=t.$cherry.editor.editor,this.tocStr="",this.updateLocationHash=null===(n=t.updateLocationHash)||void 0===n||n,this.defaultModel=null!==(r=t.defaultModel)&&void 0!==r?r:"full",this.init()}return di(e,[{key:"init",value:function(){var e=this;this.drawDom(),this.timer=lo((function(){e.updateTocList()}),300),this.editor.on("change",(function(t,n){clearTimeout(e.timer),e.timer=lo((function(){e.updateTocList(),e.$switchModel(e.model)}),300)})),this.$switchModel(this.getModelFromLocalStorage())}},{key:"getModelFromLocalStorage",value:function(){return"undefined"==typeof localStorage?this.defaultModel:localStorage.getItem("cherry-toc-model")||this.defaultModel}},{key:"setModelToLocalStorage",value:function(e){"undefined"!=typeof localStorage&&localStorage.setItem("cherry-toc-model",e)}},{key:"drawDom",value:function(){var e=Vc("div","cherry-flex-toc cherry-flex-toc__pure"),t=Vc("div","cherry-toc-head"),n=Vc("span","cherry-toc-title");n.append(this.$cherry.locale.toc);var r=Vc("i","ch-icon ch-icon-chevronsRight"),A=Vc("i","ch-icon ch-icon-chevronsLeft");this.tocClose=r,this.tocOpen=A,t.appendChild(n),t.appendChild(r),t.appendChild(A),e.appendChild(t);var i=Vc("div","cherry-toc-list");this.tocListDom=i,e.appendChild(i),this.tocDom=e,this.$cherry.wrapperDom.appendChild(e),this.bindClickEvent()}},{key:"bindClickEvent",value:function(){var e=this;this.tocDom.addEventListener("click",(function(t){var n=e.$getClosestNode(t.target,"A");if(!1!==n&&/cherry-toc-one-a/.test(n.className)){var r=n.dataset,A=r.id,i=r.index;if("hide"===e.$cherry.status.previewer){for(var o=e.$cherry.editor.editor.getSearchCursor(/(?:^|\n)\n*((?:[ \t\u00a0]*#{1,6}).+?|(?:[ \t\u00a0]*.+)\n(?:[ \t\u00a0]*[=]+|[-]+))(?=$|\n)/g),a=0;a<=i;a++)o.findNext();var s=o.from();e.$cherry.editor.scrollToLineNum(s.line,s.line+1,0)}else{var l,c=e.$cherry.previewer.getDomContainer(),u=null!==(l=c.querySelectorAll("h1,h2,h3,h4,h5,h6,h7,h8")[i])&&void 0!==l&&l;if(!1!==u){var f=c.scrollTop+u.getBoundingClientRect().y-c.getBoundingClientRect().y-20;c.scrollTo({top:f,left:0,behavior:"smooth"})}}e.updateLocationHash&&(location.href=A)}})),this.tocClose.addEventListener("click",(function(t){e.$switchModel("pure"),e.setModelToLocalStorage("pure")})),this.tocOpen.addEventListener("click",(function(t){e.$switchModel("full"),e.setModelToLocalStorage("full")})),window&&window.addEventListener("resize",(function(){e.$switchModel(e.model)})),this.editor.on("scroll",(function(t,n){e.updateTocList(!0)})),this.$cherry.previewer.getDomContainer().addEventListener("scroll",(function(){e.updateTocList(!0)}))}},{key:"$switchModel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pure";this.model=e;var t="cherry-flex-toc__".concat(e);this.tocDom.classList.contains(t)||(this.tocDom.classList.remove("cherry-flex-toc__pure"),this.tocDom.classList.remove("cherry-flex-toc__full"),this.tocDom.classList.add(t));var n=this.tocListDom.querySelectorAll(".cherry-toc-one-a");if(n.length>0){var r=28;if("pure"===e){var A=this.tocListDom.getBoundingClientRect().height,i=Math.floor((A-3*n.length)/n.length);r=i<3?3:i>10?10:i}for(var o=0;o0&&void 0!==arguments[0]&&arguments[0]));else{var e=this.$cherry.getToc(),t="";if(Wu(e).call(e,(function(e){return t+=e.text,e})),t=id(t),this.tocStr!==t){this.tocStr=t;var n="",r=0;Wu(e).call(e,(function(e){var t,A,i,o,a=e.text.replace(//g,""),s=a.replace(/<[^>]+?>/g,"");return n+=zi(t=zi(A=zi(i=zi(o='')).call(t,a,""),r+=1,e})),this.tocListDom.innerHTML=n}}if("hide"===this.$cherry.status.previewer);else{for(var A,i=this.$cherry.previewer.getDomContainer().getBoundingClientRect().y,o=this.$cherry.previewer.getDomContainer().querySelectorAll("h1,h2,h3,h4,h5,h6,h7,h8"),a=0;ai+20)break}a=a>0?a-1:a,ti(A=this.tocListDom.querySelectorAll(".cherry-toc-one-a")).call(A,(function(e,t){t===a?e.classList.add("current"):e.classList.remove("current")}))}}}]),e}();function ET(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var FT=function(e){Bi(n,wT);var t=ET(n);function n(){return ui(this,n),t.apply(this,arguments)}return di(n,[{key:"appendMenusToDom",value:function(e){this.options.dom.appendChild(e)}}]),n}(),UT=-1,ST=1,LT=0;function HT(e,t,n,r){if(e===t)return e?[[LT,e]]:[];if(null!=n){var A=function(e,t,n){var r="number"==typeof n?{index:n,length:0}:n.oldRange,A="number"==typeof n?null:n.newRange,i=e.length,o=t.length;if(0===r.length&&(null===A||0===A.length)){var a=r.index,s=e.slice(0,a),l=e.slice(a),c=A?A.index:null,u=a+o-i;if((null===c||c===u)&&!(u<0||u>o)){var f=t.slice(0,u);if((g=t.slice(u))===l){var h=Math.min(a,u);if((m=s.slice(0,h))===(y=f.slice(0,h)))return KT(m,s.slice(h),f.slice(h),l)}}if(null===c||c===a){var d=a,g=(f=t.slice(0,d),t.slice(d));if(f===s){var p=Math.min(i-d,o-d);if((v=l.slice(l.length-p))===(w=g.slice(g.length-p)))return KT(s,l.slice(0,l.length-p),g.slice(0,g.length-p),v)}}}if(r.length>0&&A&&0===A.length){var m=e.slice(0,r.index),v=e.slice(r.index+r.length);if(!(o<(h=m.length)+(p=v.length))){var y=t.slice(0,h),w=t.slice(o-p);if(m===y&&v===w)return KT(m,e.slice(h,i-p),t.slice(h,o-p),v)}}return null}(e,t,n);if(A)return A}var i=MT(e,t),o=e.substring(0,i);i=_T(e=e.substring(i),t=t.substring(i));var a=e.substring(e.length-i),s=function(e,t){var n;if(!e)return[[ST,t]];if(!t)return[[UT,e]];var r=e.length>t.length?e:t,A=e.length>t.length?t:e,i=r.indexOf(A);if(-1!==i)return n=[[ST,r.substring(0,i)],[LT,A],[ST,r.substring(i+A.length)]],e.length>t.length&&(n[0][0]=n[2][0]=UT),n;if(1===A.length)return[[UT,e],[ST,t]];var o=function(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length=e.length?[r,A,i,o,l]:null}var i,o,a,s,l,c=A(n,r,Math.ceil(n.length/4)),u=A(n,r,Math.ceil(n.length/2));if(!c&&!u)return null;i=u?c&&c[4].length>u[4].length?c:u:c;e.length>t.length?(o=i[0],a=i[1],s=i[2],l=i[3]):(s=i[0],l=i[1],o=i[2],a=i[3]);var f=i[4];return[o,a,s,l,f]}(e,t);if(o){var a=o[0],s=o[1],l=o[2],c=o[3],u=o[4],f=HT(a,l),h=HT(s,c);return f.concat([[LT,u]],h)}return function(e,t){for(var n=e.length,r=t.length,A=Math.ceil((n+r)/2),i=A,o=2*A,a=new Array(o),s=new Array(o),l=0;ln)h+=2;else if(y>r)f+=2;else if(u){if((b=i+c-m)>=0&&b=(B=n-s[b]))return IT(e,t,Q,y)}}for(var w=-p+d;w<=p-g;w+=2){for(var B,b=i+w,C=(B=w===-p||w!==p&&s[b-1]n)g+=2;else if(C>r)d+=2;else if(!u){if((v=i+c-w)>=0&&v=(B=n-B))return IT(e,t,Q,y)}}}}return[[UT,e],[ST,t]]}(e,t)}(e=e.substring(0,e.length-i),t=t.substring(0,t.length-i));return o&&s.unshift([LT,o]),a&&s.push([LT,a]),DT(s,r),s}function IT(e,t,n,r){var A=e.substring(0,n),i=t.substring(0,r),o=e.substring(n),a=t.substring(r),s=HT(A,i),l=HT(o,a);return s.concat(l)}function MT(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),A=r,i=0;n=0&&PT(e[s][1])){var l=e[s][1].slice(-1);if(e[s][1]=e[s][1].slice(0,-1),o=l+o,a=l+a,!e[s][1]){e.splice(s,1),r--;var c=s-1;e[c]&&e[c][0]===ST&&(i++,a=e[c][1]+a,c--),e[c]&&e[c][0]===UT&&(A++,o=e[c][1]+o,c--),s=c}}if(RT(e[r][1])){l=e[r][1].charAt(0);e[r][1]=e[r][1].slice(1),o+=l,a+=l}}if(r0||a.length>0){o.length>0&&a.length>0&&(0!==(n=MT(a,o))&&(s>=0?e[s][1]+=a.substring(0,n):(e.splice(0,0,[LT,a.substring(0,n)]),r++),a=a.substring(n),o=o.substring(n)),0!==(n=_T(a,o))&&(e[r][1]=a.substring(a.length-n)+e[r][1],a=a.substring(0,a.length-n),o=o.substring(0,o.length-n)));var u=i+A;0===o.length&&0===a.length?(e.splice(r-u,u),r-=u):0===o.length?(e.splice(r-u,u,[ST,a]),r=r-u+1):0===a.length?(e.splice(r-u,u,[UT,o]),r=r-u+1):(e.splice(r-u,u,[UT,o],[ST,a]),r=r-u+2)}0!==r&&e[r-1][0]===LT?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,i=0,A=0,o="",a=""}""===e[e.length-1][1]&&e.pop();var f=!1;for(r=1;r=55296&&e<=56319}function NT(e){return e>=56320&&e<=57343}function RT(e){return NT(e.charCodeAt(0))}function PT(e){return OT(e.charCodeAt(e.length-1))}function KT(e,t,n,r){return PT(e)||RT(r)?null:function(e){for(var t=[],n=0;n0&&t.push(e[n]);return t}([[LT,e],[UT,t],[ST,n],[LT,r]])}function $T(e,t,n){return HT(e,t,n,!0)}$T.INSERT=ST,$T.DELETE=UT,$T.EQUAL=LT;var XT=$T;var VT=function(e,t){for(var n=-1,r=null==e?0:e.length;++n1?r-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:{};return ui(this,r),(e=t===Ku.PAR?n.call(this,{needCache:!!o.needCache,defaultCache:o.defaultCache}):n.call(this)).config=A.config,$i(e)}return di(r,[{key:"beforeMakeHtml",value:function(){for(var e,t,n=arguments.length,A=new Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:"edit&preview"){case"edit&preview":this.previewer&&(this.previewer.editOnly(!0),this.previewer.recoverPreviewer()),this.toolbar&&this.toolbar.showToolbar(),this.wrapperDom.classList.remove("cherry--no-toolbar");break;case"editOnly":this.previewer.isPreviewerHidden()||this.previewer.editOnly(!0),this.toolbar&&this.toolbar.showToolbar(),this.wrapperDom.classList.remove("cherry--no-toolbar");break;case"previewOnly":this.previewer.previewOnly(),this.toolbar&&this.toolbar.previewOnly(),this.wrapperDom.classList.add("cherry--no-toolbar")}}},{key:"getInstanceId",value:function(){return this.instanceId}},{key:"getStatus",value:function(){return this.status}},{key:"getValue",value:function(){return this.editor.editor.getValue()}},{key:"getMarkdown",value:function(){return this.getValue()}},{key:"getCodeMirror",value:function(){return this.editor.editor}},{key:"getHtml",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.previewer.getValue(e)}},{key:"getPreviewer",value:function(){return this.previewer}},{key:"getToc",value:function(){var e=this.getHtml(),t=[];return e.replace(/(.+?)<\/h[0-6]>/g,(function(e,n,r,A){return t.push({level:+n,id:r,text:A.replace(//,"")}),e})),t}},{key:"setValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.editor.storeDocumentScroll(),!1===t)return this.editor.editor.setValue(e);var n=this.editor.editor,r=this.getValue(),A=function(e,t,n){for(var r=XT(t,n),A=e,i=e,o=0;o1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];n&&this.editor.editor.setSelection({line:n[0],ch:n[1]},{line:n[0],ch:n[1]}),this.editor.editor.replaceSelection(e,t?"around":"end"),r&&this.editor.editor.focus()}},{key:"insertValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return this.insert(e,t,n,r)}},{key:"refreshPreviewer",value:function(){try{var e=this.getValue(),t=this.engine.makeHtml(e);this.previewer.refresh(t)}catch(e){throw new wh(e)}}},{key:"setMarkdown",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.setValue(e,t)}},{key:"createWrapper",value:function(){var e="dark"===this.options.toolbars.theme?"dark":"",t=this.options.engine.syntax.inlineCode.theme,n=this.options.engine.syntax.codeBlock.theme;"dark"===n?n="tomorrow-night":"light"===n&&(n="solarized-light");var r=Vc("div",["cherry","clearfix",tf(!0)].join(" "),{"data-toolbarTheme":e,"data-inlineCodeTheme":t,"data-codeBlockTheme":n});return this.wrapperDom=r,r}},{key:"createToolbar",value:function(){var e=Vc("div","cherry-toolbar");return this.toolbarContainer=e,this.toolbar=new wT({dom:e,$cherry:this,buttonConfig:this.options.toolbars.toolbar,customMenu:this.options.toolbars.customMenu,shortcutKey:this.options.toolbars.shortcutKey}),this.toolbar}},{key:"createToolbarRight",value:function(){return this.toolbarRight=new TT({dom:this.toolbarContainer,$cherry:this,buttonConfig:this.options.toolbars.toolbarRight,customMenu:this.options.toolbars.customMenu}),this.toolbar.collectMenuInfo(this.toolbarRight),this.toolbarRight}},{key:"createSidebar",value:function(e){if(this.options.toolbars.sidebar){mh(this.options.toolbars.sidebar,Array);var t="dark"===this.options.toolbars.theme?"dark":"",n=Vc("div","cherry-sidebar ".concat(t));this.sidebar=new FT({dom:n,$cherry:this,buttonConfig:this.options.toolbars.sidebar,customMenu:this.options.toolbars.customMenu}),this.toolbar.collectMenuInfo(this.sidebar),e.appendChild(this.sidebar.options.dom)}}},{key:"createFloatMenu",value:function(){if(this.options.toolbars.float){var e=Vc("div","cherry-floatmenu");mh(this.options.toolbars.float,Array),this.floatMenu=new QT({dom:e,$cherry:this,buttonConfig:this.options.toolbars.float,customMenu:this.options.toolbars.customMenu}),this.toolbar.collectMenuInfo(this.floatMenu)}}},{key:"createBubble",value:function(){if(this.options.toolbars.bubble){var e=Vc("div","cherry-bubble");mh(this.options.toolbars.bubble,Array),this.bubble=new bT({dom:e,$cherry:this,buttonConfig:this.options.toolbars.bubble,customMenu:this.options.toolbars.customMenu,engine:this.engine}),this.toolbar.collectMenuInfo(this.bubble)}}},{key:"createEditor",value:function(){var e,t,n,r,A=Vc("textarea","",{id:null!==(e=this.options.editor.id)&&void 0!==e?e:"code",name:null!==(t=this.options.editor.name)&&void 0!==t?t:"code"});A.textContent=this.options.value;var i=Vc("div","cherry-editor");return i.appendChild(A),this.editor=new xu(function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"pdf",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.previewer.export(e,t)}},{key:"setTheme",value:function(){nf(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default")}},{key:"setWritingStyle",value:function(e){this.editor.setWritingStyle(e)}}]),n}();Gi(AE,"initialized",!1),Gi(AE,"config",{defaults:Jx}),window&&(window.Cherry=AE);var iE=AE;exports.MenuHookBase=aQ,exports.SyntaxHookBase=$u,exports.default=iE; \ No newline at end of file diff --git a/dist/cherry-markdown.core.d.ts b/dist/cherry-markdown.core.d.ts index d565ac2c..e0f4da5a 100644 --- a/dist/cherry-markdown.core.d.ts +++ b/dist/cherry-markdown.core.d.ts @@ -1,3 +1,3 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:94638491176c689c7e489fd6f73482a4e228ffaba22fcbd31992ec4d614be7a9 -size 138 +import Cherry, { MenuHookBase, SyntaxHookBase } from "./types/index.core"; +export { MenuHookBase, SyntaxHookBase }; +export default Cherry; \ No newline at end of file diff --git a/dist/cherry-markdown.core.js b/dist/cherry-markdown.core.js index 88f7ca42..c8e50f0e 100644 --- a/dist/cherry-markdown.core.js +++ b/dist/cherry-markdown.core.js @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:299c1a7e053de6266925db88d62ec50c03683567f60019b4288ee79afa8d8dc6 -size 1178106 +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Cherry={})}(this,(function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e,t){return e(t={exports:{}},t.exports),t.exports}var A,i,o=function(e){return e&&e.Math==Math&&e},a=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("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,f=c.call,h="object"==typeof Reflect&&Reflect.apply||(l?f.bind(u):function(){return f.apply(u,arguments)}),d=Function.prototype,g=d.bind,p=d.call,m=l&&g.bind(p,p),v=l?function(e){return e&&m(e)}:function(e){return e&&function(){return p.apply(e,arguments)}},y=function(e){return"function"==typeof e},w=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),B=Function.prototype.call,b=l?B.bind(B):function(){return B.apply(B,arguments)},C={}.propertyIsEnumerable,Q=Object.getOwnPropertyDescriptor,k={f:Q&&!C.call({1:2},1)?function(e){var t=Q(this,e);return!!t&&t.enumerable}:C},T=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},x=v({}.toString),E=v("".slice),F=function(e){return E(x(e),8,-1)},U=a.Object,S=v("".split),L=s((function(){return!U("z").propertyIsEnumerable(0)}))?function(e){return"String"==F(e)?S(e,""):U(e)}:U,H=a.TypeError,I=function(e){if(null==e)throw H("Can't call method on "+e);return e},M=function(e){return L(I(e))},_=function(e){return"object"==typeof e?null!==e:y(e)},D={},O=function(e){return y(e)?e:void 0},N=function(e,t){return arguments.length<2?O(D[e])||O(a[e]):D[e]&&D[e][t]||a[e]&&a[e][t]},R=v({}.isPrototypeOf),P=N("navigator","userAgent")||"",K=a.process,$=a.Deno,X=K&&K.versions||$&&$.version,V=X&&X.v8;V&&(i=(A=V.split("."))[0]>0&&A[0]<4?1:+(A[0]+A[1])),!i&&P&&(!(A=P.match(/Edge\/(\d+)/))||A[1]>=74)&&(A=P.match(/Chrome\/(\d+)/))&&(i=+A[1]);var j=i,G=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&j&&j<41})),W=G&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,J=a.Object,z=W?function(e){return"symbol"==typeof e}:function(e){var t=N("Symbol");return y(t)&&R(t.prototype,J(e))},Z=a.String,q=function(e){try{return Z(e)}catch(e){return"Object"}},Y=a.TypeError,ee=function(e){if(y(e))return e;throw Y(q(e)+" is not a function")},te=function(e,t){var n=e[t];return null==n?void 0:ee(n)},ne=a.TypeError,re=Object.defineProperty,Ae="__core-js_shared__",ie=a[Ae]||function(e,t){try{re(a,e,{value:t,configurable:!0,writable:!0})}catch(n){a[e]=t}return t}(Ae,{}),oe=r((function(e){(e.exports=function(e,t){return ie[e]||(ie[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"})})),ae=a.Object,se=function(e){return ae(I(e))},le=v({}.hasOwnProperty),ce=Object.hasOwn||function(e,t){return le(se(e),t)},ue=0,fe=Math.random(),he=v(1..toString),de=function(e){return"Symbol("+(void 0===e?"":e)+")_"+he(++ue+fe,36)},ge=oe("wks"),pe=a.Symbol,me=pe&&pe.for,ve=W?pe:pe&&pe.withoutSetter||de,ye=function(e){if(!ce(ge,e)||!G&&"string"!=typeof ge[e]){var t="Symbol."+e;G&&ce(pe,e)?ge[e]=pe[e]:ge[e]=W&&me?me(t):ve(t)}return ge[e]},we=a.TypeError,Be=ye("toPrimitive"),be=function(e,t){if(!_(e)||z(e))return e;var n,r=te(e,Be);if(r){if(void 0===t&&(t="default"),n=b(r,e,t),!_(n)||z(n))return n;throw we("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&y(n=e.toString)&&!_(r=b(n,e)))return r;if(y(n=e.valueOf)&&!_(r=b(n,e)))return r;if("string"!==t&&y(n=e.toString)&&!_(r=b(n,e)))return r;throw ne("Can't convert object to primitive value")}(e,t)},Ce=function(e){var t=be(e,"string");return z(t)?t:t+""},Qe=a.document,ke=_(Qe)&&_(Qe.createElement),Te=function(e){return ke?Qe.createElement(e):{}},xe=!w&&!s((function(){return 7!=Object.defineProperty(Te("div"),"a",{get:function(){return 7}}).a})),Ee=Object.getOwnPropertyDescriptor,Fe={f:w?Ee:function(e,t){if(e=M(e),t=Ce(t),xe)try{return Ee(e,t)}catch(e){}if(ce(e,t))return T(!b(k.f,e,t),e[t])}},Ue=/#|\.prototype\./,Se=function(e,t){var n=He[Le(e)];return n==Me||n!=Ie&&(y(t)?s(t):!!t)},Le=Se.normalize=function(e){return String(e).replace(Ue,".").toLowerCase()},He=Se.data={},Ie=Se.NATIVE="N",Me=Se.POLYFILL="P",_e=Se,De=v(v.bind),Oe=function(e,t){return ee(e),void 0===t?e:l?De(e,t):function(){return e.apply(t,arguments)}},Ne=w&&s((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Re=a.String,Pe=a.TypeError,Ke=function(e){if(_(e))return e;throw Pe(Re(e)+" is not an object")},$e=a.TypeError,Xe=Object.defineProperty,Ve=Object.getOwnPropertyDescriptor,je="enumerable",Ge="configurable",We="writable",Je={f:w?Ne?function(e,t,n){if(Ke(e),t=Ce(t),Ke(n),"function"==typeof e&&"prototype"===t&&"value"in n&&We in n&&!n[We]){var r=Ve(e,t);r&&r[We]&&(e[t]=n.value,n={configurable:Ge in n?n[Ge]:r[Ge],enumerable:je in n?n[je]:r[je],writable:!1})}return Xe(e,t,n)}:Xe:function(e,t,n){if(Ke(e),t=Ce(t),Ke(n),xe)try{return Xe(e,t,n)}catch(e){}if("get"in n||"set"in n)throw $e("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},ze=w?function(e,t,n){return Je.f(e,t,T(1,n))}:function(e,t,n){return e[t]=n,e},Ze=Fe.f,qe=function(e){var t=function(n,r,A){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,A)}return h(e,this,arguments)};return t.prototype=e.prototype,t},Ye=function(e,t){var n,r,A,i,o,s,l,c,u=e.target,f=e.global,h=e.stat,d=e.proto,g=f?a:h?a[u]:(a[u]||{}).prototype,p=f?D:D[u]||ze(D,u,{})[u],m=p.prototype;for(A in t)n=!_e(f?A:u+(h?".":"#")+A,e.forced)&&g&&ce(g,A),o=p[A],n&&(s=e.dontCallGetSet?(c=Ze(g,A))&&c.value:g[A]),i=n&&s?s:t[A],n&&typeof o==typeof i||(l=e.bind&&n?Oe(i,a):e.wrap&&n?qe(i):d&&y(i)?v(i):i,(e.sham||i&&i.sham||o&&o.sham)&&ze(l,"sham",!0),ze(p,A,l),d&&(ce(D,r=u+"Prototype")||ze(D,r,{}),ze(D[r],A,i),e.real&&m&&!m[A]&&ze(m,A,i)))},et=v([].slice),tt=a.Function,nt=v([].concat),rt=v([].join),At={},it=l?tt.bind:function(e){var t=ee(this),n=t.prototype,r=et(arguments,1),A=function(){var n=nt(r,et(arguments));return this instanceof A?function(e,t,n){if(!ce(At,t)){for(var r=[],A=0;A0?xt:Tt)(t)},Ft=function(e){var t=+e;return t!=t||0===t?0:Et(t)},Ut=Math.max,St=Math.min,Lt=function(e,t){var n=Ft(e);return n<0?Ut(n+t,0):St(n,t)},Ht=Math.min,It=function(e){return e>0?Ht(Ft(e),9007199254740991):0},Mt=function(e){return It(e.length)},_t=function(e){return function(t,n,r){var A,i=M(t),o=Mt(i),a=Lt(r,o);if(e&&n!=n){for(;o>a;)if((A=i[a++])!=A)return!0}else for(;o>a;a++)if((e||a in i)&&i[a]===n)return e||a||0;return!e&&-1}},Dt={includes:_t(!0),indexOf:_t(!1)},Ot={},Nt=Dt.indexOf,Rt=v([].push),Pt=function(e,t){var n,r=M(e),A=0,i=[];for(n in r)!ce(Ot,n)&&ce(r,n)&&Rt(i,n);for(;t.length>A;)ce(r,n=t[A++])&&(~Nt(i,n)||Rt(i,n));return i},Kt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],$t=Object.keys||function(e){return Pt(e,Kt)},Xt=w&&!Ne?Object.defineProperties:function(e,t){Ke(e);for(var n,r=M(t),A=$t(t),i=A.length,o=0;i>o;)Je.f(e,n=A[o++],r[n]);return e},Vt={f:Xt},jt=N("document","documentElement"),Gt=oe("keys"),Wt=function(e){return Gt[e]||(Gt[e]=de(e))},Jt="prototype",zt="script",Zt=Wt("IE_PROTO"),qt=function(){},Yt=function(e){return"<"+zt+">"+e+""},en=function(e){e.write(Yt("")),e.close();var t=e.parentWindow.Object;return e=null,t},tn=function(){try{bt=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;tn="undefined"!=typeof document?document.domain&&bt?en(bt):(t=Te("iframe"),n="java"+zt+":",t.style.display="none",jt.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(Yt("document.F=Object")),e.close(),e.F):en(bt);for(var r=Kt.length;r--;)delete tn[Jt][Kt[r]];return tn()};Ot[Zt]=!0;var nn=Object.create||function(e,t){var n;return null!==e?(qt[Jt]=Ke(e),n=new qt,qt[Jt]=null,n[Zt]=e):n=tn(),void 0===t?n:Vt.f(n,t)},rn=N("Reflect","construct"),An=Object.prototype,on=[].push,an=s((function(){function e(){}return!(rn((function(){}),[],e)instanceof e)})),sn=!s((function(){rn((function(){}))})),ln=an||sn;Ye({target:"Reflect",stat:!0,forced:ln,sham:ln},{construct:function(e,t){kt(e),Ke(t);var n=arguments.length<3?e:kt(arguments[2]);if(sn&&!an)return rn(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 h(on,r,t),new(h(it,e,r))}var A=n.prototype,i=nn(_(A)?A:An),o=h(e,i,t);return _(o)?o:i}});var cn=D.Reflect.construct,un=cn,fn=s((function(){$t(1)}));Ye({target:"Object",stat:!0,forced:fn},{keys:function(e){return $t(se(e))}});var hn,dn,gn,pn=D.Object.keys,mn=pn,vn=a.String,yn=function(e){if("Symbol"===ut(e))throw TypeError("Cannot convert a Symbol value to a string");return vn(e)},wn=Kt.concat("length","prototype"),Bn={f:Object.getOwnPropertyNames||function(e){return Pt(e,wn)}},bn=function(e,t,n){var r=Ce(t);r in e?Je.f(e,r,T(0,n)):e[r]=n},Cn=a.Array,Qn=Math.max,kn=function(e,t,n){for(var r=Mt(e),A=Lt(t,r),i=Lt(void 0===n?r:n,r),o=Cn(Qn(i-A,0)),a=0;Av;v++)if((a||v in g)&&(h=p(f=g[v],v,d),e))if(t)w[v]=h;else if(h)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:er(w,f)}else switch(e){case 4:return!1;case 7:er(w,f)}return i?-1:r||A?A:w}},nr={forEach:tr(0),map:tr(1),filter:tr(2),some:tr(3),every:tr(4),find:tr(5),findIndex:tr(6),filterReject:tr(7)},rr=nr.forEach,Ar=Wt("hidden"),ir="Symbol",or="prototype",ar=Jn.set,sr=Jn.getterFor(ir),lr=Object[or],cr=a.Symbol,ur=cr&&cr[or],fr=a.TypeError,hr=a.QObject,dr=Fe.f,gr=Je.f,pr=En.f,mr=k.f,vr=v([].push),yr=oe("symbols"),wr=oe("op-symbols"),Br=oe("wks"),br=!hr||!hr[or]||!hr[or].findChild,Cr=w&&s((function(){return 7!=nn(gr({},"a",{get:function(){return gr(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=dr(lr,t);r&&delete lr[t],gr(e,t,n),r&&e!==lr&&gr(lr,t,r)}:gr,Qr=function(e,t){var n=yr[e]=nn(ur);return ar(n,{type:ir,tag:e,description:t}),w||(n.description=t),n},kr=function(e,t,n){e===lr&&kr(wr,t,n),Ke(e);var r=Ce(t);return Ke(n),ce(yr,r)?(n.enumerable?(ce(e,Ar)&&e[Ar][r]&&(e[Ar][r]=!1),n=nn(n,{enumerable:T(0,!1)})):(ce(e,Ar)||gr(e,Ar,T(1,{})),e[Ar][r]=!0),Cr(e,r,n)):gr(e,r,n)},Tr=function(e,t){Ke(e);var n=M(t),r=$t(n).concat(Ur(n));return rr(r,(function(t){w&&!b(xr,n,t)||kr(e,t,n[t])})),e},xr=function(e){var t=Ce(e),n=b(mr,this,t);return!(this===lr&&ce(yr,t)&&!ce(wr,t))&&(!(n||!ce(this,t)||!ce(yr,t)||ce(this,Ar)&&this[Ar][t])||n)},Er=function(e,t){var n=M(e),r=Ce(t);if(n!==lr||!ce(yr,r)||ce(wr,r)){var A=dr(n,r);return!A||!ce(yr,r)||ce(n,Ar)&&n[Ar][r]||(A.enumerable=!0),A}},Fr=function(e){var t=pr(M(e)),n=[];return rr(t,(function(e){ce(yr,e)||ce(Ot,e)||vr(n,e)})),n},Ur=function(e){var t=e===lr,n=pr(t?wr:M(e)),r=[];return rr(n,(function(e){!ce(yr,e)||t&&!ce(lr,e)||vr(r,yr[e])})),r};G||(cr=function(){if(R(ur,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===lr&&b(n,wr,e),ce(this,Ar)&&ce(this[Ar],t)&&(this[Ar][t]=!1),Cr(this,t,T(1,e))};return w&&br&&Cr(lr,t,{configurable:!0,set:n}),Qr(t,e)},ur=cr[or],Un(ur,"toString",(function(){return sr(this).tag})),Un(cr,"withoutSetter",(function(e){return Qr(de(e),e)})),k.f=xr,Je.f=kr,Vt.f=Tr,Fe.f=Er,Bn.f=En.f=Fr,Fn.f=Ur,Sn.f=function(e){return Qr(ye(e),e)},w&&gr(ur,"description",{configurable:!0,get:function(){return sr(this).description}})),Ye({global:!0,constructor:!0,wrap:!0,forced:!G,sham:!G},{Symbol:cr}),rr($t(Br),(function(e){Hn(e)})),Ye({target:ir,stat:!0,forced:!G},{useSetter:function(){br=!0},useSimple:function(){br=!1}}),Ye({target:"Object",stat:!0,forced:!G,sham:!w},{create:function(e,t){return void 0===t?nn(e):Tr(nn(e),t)},defineProperty:kr,defineProperties:Tr,getOwnPropertyDescriptor:Er}),Ye({target:"Object",stat:!0,forced:!G},{getOwnPropertyNames:Fr}),In(),On(cr,ir),Ot[Ar]=!0;var Sr=G&&!!Symbol.for&&!!Symbol.keyFor,Lr=oe("string-to-symbol-registry"),Hr=oe("symbol-to-string-registry");Ye({target:"Symbol",stat:!0,forced:!Sr},{for:function(e){var t=yn(e);if(ce(Lr,t))return Lr[t];var n=N("Symbol")(t);return Lr[t]=n,Hr[n]=t,n}});var Ir=oe("symbol-to-string-registry");Ye({target:"Symbol",stat:!0,forced:!Sr},{keyFor:function(e){if(!z(e))throw TypeError(q(e)+" is not a symbol");if(ce(Ir,e))return Ir[e]}});var Mr=N("JSON","stringify"),_r=v(/./.exec),Dr=v("".charAt),Or=v("".charCodeAt),Nr=v("".replace),Rr=v(1..toString),Pr=/[\uD800-\uDFFF]/g,Kr=/^[\uD800-\uDBFF]$/,$r=/^[\uDC00-\uDFFF]$/,Xr=!G||s((function(){var e=N("Symbol")();return"[null]"!=Mr([e])||"{}"!=Mr({a:e})||"{}"!=Mr(Object(e))})),Vr=s((function(){return'"\\udf06\\ud834"'!==Mr("\udf06\ud834")||'"\\udead"'!==Mr("\udead")})),jr=function(e,t){var n=et(arguments),r=t;if((_(t)||void 0!==e)&&!z(e))return zn(t)||(t=function(e,t){if(y(r)&&(t=b(r,this,e,t)),!z(t))return t}),n[1]=t,h(Mr,null,n)},Gr=function(e,t,n){var r=Dr(n,t-1),A=Dr(n,t+1);return _r(Kr,e)&&!_r($r,A)||_r($r,e)&&!_r(Kr,r)?"\\u"+Rr(Or(e,0),16):e};Mr&&Ye({target:"JSON",stat:!0,arity:3,forced:Xr||Vr},{stringify:function(e,t,n){var r=et(arguments),A=h(Xr?jr:Mr,null,r);return Vr&&"string"==typeof A?Nr(A,Pr,Gr):A}});var Wr=!G||s((function(){Fn.f(1)}));Ye({target:"Object",stat:!0,forced:Wr},{getOwnPropertySymbols:function(e){var t=Fn.f;return t?t(se(e)):[]}});var Jr=D.Object.getOwnPropertySymbols,zr=Jr,Zr=ye("species"),qr=function(e){return j>=51||!s((function(){var t=[];return(t.constructor={})[Zr]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Yr=nr.filter,eA=qr("filter");Ye({target:"Array",proto:!0,forced:!eA},{filter:function(e){return Yr(this,e,arguments.length>1?arguments[1]:void 0)}});var tA=function(e){return D[e+"Prototype"]},nA=tA("Array").filter,rA=Array.prototype,AA=function(e){var t=e.filter;return e===rA||R(rA,e)&&t===rA.filter?nA:t},iA=Fe.f,oA=s((function(){iA(1)}));Ye({target:"Object",stat:!0,forced:!w||oA,sham:!w},{getOwnPropertyDescriptor:function(e,t){return iA(M(e),t)}});var aA,sA,lA,cA=r((function(e){var t=D.Object,n=e.exports=function(e,n){return t.getOwnPropertyDescriptor(e,n)};t.getOwnPropertyDescriptor.sham&&(n.sham=!0)})),uA=cA,fA=uA,hA={},dA=Function.prototype,gA=w&&Object.getOwnPropertyDescriptor,pA=ce(dA,"name"),mA={EXISTS:pA,PROPER:pA&&"something"===function(){}.name,CONFIGURABLE:pA&&(!w||w&&gA(dA,"name").configurable)},vA=!s((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),yA=Wt("IE_PROTO"),wA=a.Object,BA=wA.prototype,bA=vA?wA.getPrototypeOf:function(e){var t=se(e);if(ce(t,yA))return t[yA];var n=t.constructor;return y(n)&&t instanceof n?n.prototype:t instanceof wA?BA:null},CA=ye("iterator"),QA=!1;[].keys&&("next"in(lA=[].keys())?(sA=bA(bA(lA)))!==Object.prototype&&(aA=sA):QA=!0);var kA=null==aA||s((function(){var e={};return aA[CA].call(e)!==e}));aA=kA?{}:nn(aA),y(aA[CA])||Un(aA,CA,(function(){return this}));var TA={IteratorPrototype:aA,BUGGY_SAFARI_ITERATORS:QA},xA=TA.IteratorPrototype,EA=function(){return this},FA=function(e,t,n,r){var A=t+" Iterator";return e.prototype=nn(xA,{next:T(+!r,n)}),On(e,A,!1,!0),hA[A]=EA,e},UA=a.String,SA=a.TypeError,LA=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||y(e))return e;throw SA("Can't set "+UA(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),HA=mA.PROPER,IA=TA.BUGGY_SAFARI_ITERATORS,MA=ye("iterator"),_A="keys",DA="values",OA="entries",NA=function(){return this},RA=function(e,t,n,r,A,i,o){FA(n,t,r);var a,s,l,c=function(e){if(e===A&&g)return g;if(!IA&&e in h)return h[e];switch(e){case _A:case DA:case OA:return function(){return new n(this,e)}}return function(){return new n(this)}},u=t+" Iterator",f=!1,h=e.prototype,d=h[MA]||h["@@iterator"]||A&&h[A],g=!IA&&d||c(A),p="Array"==t&&h.entries||d;if(p&&(a=bA(p.call(new e)))!==Object.prototype&&a.next&&(On(a,u,!0,!0),hA[u]=NA),HA&&A==DA&&d&&d.name!==DA&&(f=!0,g=function(){return b(d,this)}),A)if(s={values:c(DA),keys:i?g:c(_A),entries:c(OA)},o)for(l in s)(IA||f||!(l in h))&&Un(h,l,s[l]);else Ye({target:t,proto:!0,forced:IA||f},s);return o&&h[MA]!==g&&Un(h,MA,g,{name:A}),hA[t]=g,s};Je.f;var PA="Array Iterator",KA=Jn.set,$A=Jn.getterFor(PA);RA(Array,"Array",(function(e,t){KA(this,{type:PA,target:M(e),index:0,kind:t})}),(function(){var e=$A(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"),hA.Arguments=hA.Array;var XA=ye("toStringTag");for(var VA 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 jA=a[VA],GA=jA&&jA.prototype;GA&&ut(GA)!==XA&&ze(GA,XA,VA),hA[VA]=hA.Array}var WA=function(e,t){var n=[][e];return!!n&&s((function(){n.call(null,t||function(){return 1},1)}))},JA=nr.forEach,zA=WA("forEach")?[].forEach:function(e){return JA(this,e,arguments.length>1?arguments[1]:void 0)};Ye({target:"Array",proto:!0,forced:[].forEach!=zA},{forEach:zA});var ZA=tA("Array").forEach,qA=Array.prototype,YA={DOMTokenList:!0,NodeList:!0},ei=function(e){var t=e.forEach;return e===qA||R(qA,e)&&t===qA.forEach||ce(YA,ut(e))?ZA:t},ti=ei,ni=v([].concat),ri=N("Reflect","ownKeys")||function(e){var t=Bn.f(Ke(e)),n=Fn.f;return n?ni(t,n(e)):t};Ye({target:"Object",stat:!0,sham:!w},{getOwnPropertyDescriptors:function(e){for(var t,n,r=M(e),A=Fe.f,i=ri(r),o={},a=0;i.length>a;)void 0!==(n=A(r,t=i[a++]))&&bn(o,t,n);return o}});var Ai=D.Object.getOwnPropertyDescriptors,ii=Vt.f;Ye({target:"Object",stat:!0,forced:Object.defineProperties!==ii,sham:!w},{defineProperties:ii});var oi=r((function(e){var t=D.Object,n=e.exports=function(e,n){return t.defineProperties(e,n)};t.defineProperties.sham&&(n.sham=!0)})),ai=oi,si=Je.f;Ye({target:"Object",stat:!0,forced:Object.defineProperty!==si,sham:!w},{defineProperty:si});var li=r((function(e){var t=D.Object,n=e.exports=function(e,n,r){return t.defineProperty(e,n,r)};t.defineProperty.sham&&(n.sham=!0)})),ci=li;function ui(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var fi=li;function hi(e,t){for(var n=0;n=51||!s((function(){var e=[];return e[bi]=!1,e.concat()[0]!==e})),xi=qr("concat"),Ei=function(e){if(!_(e))return!1;var t=e[bi];return void 0!==t?!!t:zn(e)};Ye({target:"Array",proto:!0,arity:1,forced:!Ti||!xi},{concat:function(e){var t,n,r,A,i,o=se(this),a=Yn(o,0),s=0;for(t=-1,r=arguments.length;tCi)throw ki(Qi);for(n=0;n=Ci)throw ki(Qi);bn(a,s++,i)}return a.length=s,a}}),Hn("asyncIterator"),Hn("hasInstance"),Hn("isConcatSpreadable"),Hn("iterator"),Hn("match"),Hn("matchAll"),Hn("replace"),Hn("search"),Hn("species"),Hn("split"),Hn("toPrimitive"),In(),Hn("toStringTag"),On(N("Symbol"),"Symbol"),Hn("unscopables"),On(a.JSON,"JSON",!0);var Fi=D.Symbol,Ui=Fi;Hn("asyncDispose"),Hn("dispose"),Hn("matcher"),Hn("metadata"),Hn("observable"),Hn("patternMatch"),Hn("replaceAll");var Si=Ui,Li=v("".charAt),Hi=v("".charCodeAt),Ii=v("".slice),Mi=function(e){return function(t,n){var r,A,i=yn(I(t)),o=Ft(n),a=i.length;return o<0||o>=a?e?"":void 0:(r=Hi(i,o))<55296||r>56319||o+1===a||(A=Hi(i,o+1))<56320||A>57343?e?Li(i,o):r:e?Ii(i,o,o+2):A-56320+(r-55296<<10)+65536}},_i={codeAt:Mi(!1),charAt:Mi(!0)},Di=_i.charAt,Oi="String Iterator",Ni=Jn.set,Ri=Jn.getterFor(Oi);RA(String,"String",(function(e){Ni(this,{type:Oi,string:yn(e),index:0})}),(function(){var e,t=Ri(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Di(n,r),t.index+=e.length,{value:e,done:!1})}));var Pi=Sn.f("iterator");function Ki(e){return Ki="function"==typeof Si&&"symbol"==typeof Pi?function(e){return typeof e}:function(e){return e&&"function"==typeof Si&&e.constructor===Si&&e!==Si.prototype?"symbol":typeof e},Ki(e)}function $i(e,t){if(t&&("object"===Ki(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return gi(e)}var Xi=s((function(){bA(1)}));Ye({target:"Object",stat:!0,forced:Xi,sham:!vA},{getPrototypeOf:function(e){return bA(se(e))}});var Vi=D.Object.getPrototypeOf;function ji(e){return ji=yi?Vi:function(e){return e.__proto__||Vi(e)},ji(e)}function Gi(e,t,n){return t in e?fi(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wi=tA("Array").concat,Ji=Array.prototype,zi=function(e){var t=e.concat;return e===Ji||R(Ji,e)&&t===Ji.concat?Wi:t};Ye({target:"Function",proto:!0,forced:Function.bind!==it},{bind:it});var Zi=tA("Function").bind,qi=Function.prototype,Yi=function(e){var t=e.bind;return e===qi||R(qi,e)&&t===qi.bind?Zi:t},eo=Yi,to=a.TypeError,no=function(e,t){if(e2,A=y(t)?t:Ao(t),i=r?et(arguments,2):void 0;return e(r?function(){h(A,this,i)}:A,n)}:e},oo={setTimeout:io(a.setTimeout),setInterval:io(a.setInterval)},ao=oo.setInterval;Ye({global:!0,bind:!0,forced:a.setInterval!==ao},{setInterval:ao});var so=oo.setTimeout;Ye({global:!0,bind:!0,forced:a.setTimeout!==so},{setTimeout:so});var lo=D.setTimeout;var co=function(){this.__data__=[],this.size=0};var uo=function(e,t){return e===t||e!=e&&t!=t};var fo=function(e,t){for(var n=e.length;n--;)if(uo(e[n][0],t))return n;return-1},ho=Array.prototype.splice;var go=function(e){var t=this.__data__,n=fo(t,e);return!(n<0)&&(n==t.length-1?t.pop():ho.call(t,n,1),--this.size,!0)};var po=function(e){var t=this.__data__,n=fo(t,e);return n<0?void 0:t[n][1]};var mo=function(e){return fo(this.__data__,e)>-1};var vo=function(e,t){var n=this.__data__,r=fo(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function yo(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=9007199254740991};var Wa=function(e){return null!=e&&Ga(e.length)&&!No(e)};var Ja=function(e){return Na(e)&&Wa(e)};var za=function(){return!1},Za=r((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,A=r&&r.exports===n?xo.Buffer:void 0,i=(A?A.isBuffer:void 0)||za;e.exports=i})),qa=Function.prototype,Ya=Object.prototype,es=qa.toString,ts=Ya.hasOwnProperty,ns=es.call(Object);var rs=function(e){if(!Na(e)||"[object Object]"!=Do(e))return!1;var t=Ma(e);if(null===t)return!0;var n=ts.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&es.call(n)==ns},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 is=function(e){return Na(e)&&Ga(e.length)&&!!As[Do(e)]};var os=function(e){return function(t){return e(t)}},as=r((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,A=r&&r.exports===n&&ko.process,i=function(){try{var e=r&&r.require&&r.require("util").types;return e||A&&A.binding&&A.binding("util")}catch(e){}}();e.exports=i})),ss=as&&as.isTypedArray,ls=ss?os(ss):is;var cs=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},us=Object.prototype.hasOwnProperty;var fs=function(e,t,n){var r=e[t];us.call(e,t)&&uo(r,n)&&(void 0!==n||t in e)||Qa(e,t,n)};var hs=function(e,t,n,r){var A=!n;n||(n={});for(var i=-1,o=t.length;++i-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},Is=Hs(Ss);var Ms=function(e,t){return Is(Fs(e,t,Ts),e+"")};var _s=function(e,t,n){if(!Oo(n))return!1;var r=typeof t;return!!("number"==r?Wa(n)&&ps(t,n.length):"string"==r&&t in n)&&uo(n[t],e)};var Ds=function(e){return Ms((function(t,n){var r=-1,A=n.length,i=A>1?n[A-1]:void 0,o=A>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(A--,i):void 0,o&&_s(n[0],n[1],o)&&(i=A<3?void 0:i,A=1),t=Object(t);++r1?arguments[1]:void 0;return $s?Ks(this,e,t)||0:Ps(this,e,t)}});var Vs=tA("Array").indexOf,js=Array.prototype,Gs=function(e){var t=e.indexOf;return e===js||R(js,e)&&t===js.indexOf?Vs:t},Ws=Gs,Js=pn;function zs(e,t){if(null==e)return{};var n,r,A=function(e,t){if(null==e)return{};var n,r,A={},i=Js(e);for(r=0;r=0||(A[n]=e[n]);return A}(e,t);if(Rs){var i=Rs(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(A[n]=e[n])}return A}var Zs=Object.assign,qs=Object.defineProperty,Ys=v([].concat),el=!Zs||s((function(){if(w&&1!==Zs({b:1},Zs(qs({},"a",{enumerable:!0,get:function(){qs(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!=Zs({},e)[n]||$t(Zs({},t)).join("")!=r}))?function(e,t){for(var n=se(e),r=arguments.length,A=1,i=Fn.f,o=k.f;r>A;)for(var a,s=L(arguments[A++]),l=i?Ys($t(s),i(s)):$t(s),c=l.length,u=0;c>u;)a=l[u++],w&&!b(o,s,a)||(n[a]=s[a]);return n}:Zs;Ye({target:"Object",stat:!0,arity:2,forced:Object.assign!==el},{assign:el});var tl=D.Object.assign,nl=tl;D.JSON||(D.JSON={stringify:JSON.stringify});var rl=function(e,t,n){return h(D.JSON.stringify,null,arguments)},Al=rl,il=nr.find,ol="find",al=!0;ol in[]&&Array(1)[ol]((function(){al=!1})),Ye({target:"Array",proto:!0,forced:al},{find:function(e){return il(this,e,arguments.length>1?arguments[1]:void 0)}});var sl,ll=tA("Array").find,cl=Array.prototype,ul=function(e){var t=e.find;return e===cl||R(cl,e)&&t===cl.find?ll:t},fl="\t\n\v\f\r                 \u2028\u2029\ufeff",hl=v("".replace),dl="["+fl+"]",gl=RegExp("^"+dl+dl+"*"),pl=RegExp(dl+dl+"*$"),ml=function(e){return function(t){var n=yn(I(t));return 1&e&&(n=hl(n,gl,"")),2&e&&(n=hl(n,pl,"")),n}},vl={start:ml(1),end:ml(2),trim:ml(3)},yl=mA.PROPER,wl=vl.trim;Ye({target:"String",proto:!0,forced:(sl="trim",s((function(){return!!fl[sl]()||"​…᠎"!=="​…᠎"[sl]()||yl&&fl[sl].name!==sl})))},{trim:function(){return wl(this)}});var Bl=tA("String").trim,bl=String.prototype,Cl=function(e){var t=e.trim;return"string"==typeof e||e===bl||R(bl,e)&&t===bl.trim?Bl:t},Ql=function(e,t,n){var r,A;Ke(e);try{if(!(r=te(e,"return"))){if("throw"===t)throw n;return n}r=b(r,e)}catch(e){A=!0,r=e}if("throw"===t)throw n;if(A)throw r;return Ke(r),n},kl=function(e,t,n,r){try{return r?t(Ke(n)[0],n[1]):t(n)}catch(t){Ql(e,"throw",t)}},Tl=ye("iterator"),xl=Array.prototype,El=function(e){return void 0!==e&&(hA.Array===e||xl[Tl]===e)},Fl=ye("iterator"),Ul=function(e){if(null!=e)return te(e,Fl)||te(e,"@@iterator")||hA[ut(e)]},Sl=a.TypeError,Ll=function(e,t){var n=arguments.length<2?Ul(e):t;if(ee(n))return Ke(b(n,e));throw Sl(q(e)+" is not iterable")},Hl=a.Array,Il=function(e){var t=se(e),n=Ct(this),r=arguments.length,A=r>1?arguments[1]:void 0,i=void 0!==A;i&&(A=Oe(A,r>2?arguments[2]:void 0));var o,a,s,l,c,u,f=Ul(t),h=0;if(!f||this==Hl&&El(f))for(o=Mt(t),a=n?new this(o):Hl(o);o>h;h++)u=i?A(t[h],h):t[h],bn(a,h,u);else for(c=(l=Ll(t,f)).next,a=n?new this:[];!(s=b(c,l)).done;h++)u=i?kl(l,A,[s.value,h],!0):s.value,bn(a,h,u);return a.length=h,a},Ml=ye("iterator"),_l=!1;try{var Dl=0,Ol={next:function(){return{done:!!Dl++}},return:function(){_l=!0}};Ol[Ml]=function(){return this},Array.from(Ol,(function(){throw 2}))}catch(e){}var Nl=function(e,t){if(!t&&!_l)return!1;var n=!1;try{var r={};r[Ml]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Rl=!Nl((function(e){Array.from(e)}));Ye({target:"Array",stat:!0,forced:Rl},{from:Il});var Pl=D.Array.from,Kl=Pl,$l=ye("match"),Xl=a.TypeError,Vl=function(e){if(function(e){var t;return _(e)&&(void 0!==(t=e[$l])?!!t:"RegExp"==F(e))}(e))throw Xl("The method doesn't accept regular expressions");return e},jl=ye("match"),Gl=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[jl]=!1,"/./"[e](t)}catch(e){}}return!1};Fe.f;var Wl=v("".startsWith),Jl=v("".slice),zl=Math.min,Zl=Gl("startsWith");Ye({target:"String",proto:!0,forced:!Zl},{startsWith:function(e){var t=yn(I(this));Vl(e);var n=It(zl(arguments.length>1?arguments[1]:void 0,t.length)),r=yn(e);return Wl?Wl(t,r,n):Jl(t,n,n+r.length)===r}});var ql=tA("String").startsWith,Yl=String.prototype,ec=function(e){var t=e.startsWith;return"string"==typeof e||e===Yl||R(Yl,e)&&t===Yl.startsWith?ql:t},tc=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),A=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),i=/Edge\/(\d+)/.exec(e),o=r||A||i,a=o&&(r?document.documentMode||6:+(i||A)[1]),s=!i&&/WebKit\//.test(e),l=s&&/Qt\/\d+\.\d+/.test(e),c=!i&&/Chrome\//.test(e),u=/Opera\//.test(e),f=/Apple Computer/.test(navigator.vendor),h=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),d=/PhantomJS/.test(e),g=!i&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),p=/Android/.test(e),m=g||p||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),v=g||/Mac/.test(t),y=/\bCrOS\b/.test(e),w=/win/i.test(t),B=u&&e.match(/Version\/(\d*\.\d*)/);B&&(B=Number(B[1])),B&&B>=15&&(u=!1,s=!0);var b=v&&(l||u&&(null==B||B<12.11)),C=n||o&&a>=9;function Q(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var k,T=function(e,t){var n=e.className,r=Q(t).exec(n);if(r){var A=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(A?r[1]+A:"")}};function x(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function E(e,t){return x(e).appendChild(t)}function F(e,t,n,r){var A=document.createElement(e);if(n&&(A.className=n),r&&(A.style.cssText=r),"string"==typeof t)A.appendChild(document.createTextNode(t));else if(t)for(var i=0;i=t)return o+(t-i);o+=a-i,o+=n-o%n,i=a+1}}g?M=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:o&&(M=function(e){try{e.select()}catch(e){}});var N=function(){this.id=null,this.f=null,this.time=0,this.handler=_(this.onTimeout,this)};function R(e,t){for(var n=0;n=t)return r+Math.min(o,t-A);if(A+=i-r,r=i+1,(A+=n-A%n)>=t)return r}}var G=[""];function W(e){for(;G.length<=e;)G.push(J(G)+" ");return G[e]}function J(e){return e[e.length-1]}function z(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 Ae=/[\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 ie(e){return e.charCodeAt(0)>=768&&Ae.test(e)}function oe(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var A=(t+n)/2,i=r<0?Math.ceil(A):Math.floor(A);if(i==t)return e(i)?t:n;e(i)?n=i:t=i+r}}function se(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var A=!1,i=0;it||t==n&&o.to==t)&&(r(Math.max(o.from,t),Math.min(o.to,n),1==o.level?"rtl":"ltr",i),A=!0)}A||r(t,n,"ltr")}var le=null;function ce(e,t,n){var r;le=null;for(var A=0;At)return A;i.to==t&&(i.from!=i.to&&"before"==n?r=A:le=A),i.from==t&&(i.from!=i.to&&"before"!=n?r=A:le=A)}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]/,A=/[stwN]/,i=/[LRr]/,o=/[Lb1n]/,a=/[1n]/;function s(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var l="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!r.test(e))return!1;for(var c=e.length,u=[],f=0;f-1&&(r[t]=A.slice(0,i).concat(A.slice(i+1)))}}}function me(e,t){var n=ge(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),A=0;A0}function Be(e){e.prototype.on=function(e,t){de(this,e,t)},e.prototype.off=function(e,t){pe(this,e,t)}}function be(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ce(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Qe(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function ke(e){be(e),Ce(e)}function Te(e){return e.target||e.srcElement}function xe(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 Ee,Fe,Ue=function(){if(o&&a<9)return!1;var e=F("div");return"draggable"in e||"dragDrop"in e}();function Se(e){if(null==Ee){var t=F("span","​");E(e,F("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Ee=t.offsetWidth<=1&&t.offsetHeight>2&&!(o&&a<8))}var n=Ee?F("span","​"):F("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Le(e){if(null!=Fe)return Fe;var t=E(e,document.createTextNode("AخA")),n=k(t,0,1).getBoundingClientRect(),r=k(t,1,2).getBoundingClientRect();return x(e),!(!n||n.left==n.right)&&(Fe=r.right-n.right<3)}var He,Ie=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var A=e.indexOf("\n",t);-1==A&&(A=e.length);var i=e.slice(t,"\r"==e.charAt(A-1)?A-1:A),o=i.indexOf("\r");-1!=o?(n.push(i.slice(0,o)),t+=o+1):(n.push(i),t=A+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Me=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},_e="oncopy"in(He=F("div"))||(He.setAttribute("oncopy","return;"),"function"==typeof He.oncopy),De=null;function Oe(e){if(null!=De)return De;var t=E(e,F("span","x")),n=t.getBoundingClientRect(),r=k(t,0,1).getBoundingClientRect();return De=Math.abs(n.left-r.left)>1}var Ne={},Re={};function Pe(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ne[e]=t}function Ke(e,t){Re[e]=t}function $e(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=Y(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return $e("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return $e("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Xe(e,t){t=$e(t);var n=Ne[t.name];if(!n)return Xe(e,"text/plain");var r=n(e,t);if(Ve.hasOwnProperty(t.name)){var A=Ve[t.name];for(var i in A)A.hasOwnProperty(i)&&(r.hasOwnProperty(i)&&(r["_"+i]=r[i]),r[i]=A[i])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var o in t.modeProps)r[o]=t.modeProps[o];return r}var Ve={};function je(e,t){D(t,Ve.hasOwnProperty(e)?Ve[e]:Ve[e]={})}function Ge(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var A=t[r];A instanceof Array&&(A=A.concat([])),n[r]=A}return n}function We(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Je(e,t,n){return!e.startState||e.startState(t,n)}var ze=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 A=n.children[r],i=A.chunkSize();if(t=e.first&&tn?it(n,Ze(e,n).text.length):ht(t,Ze(e,t.line).text.length)}function ht(e,t){var n=e.ch;return null==n||n>t?it(e.line,t):n<0?it(e.line,0):e}function dt(e,t){for(var n=[],r=0;r=this.string.length},ze.prototype.sol=function(){return this.pos==this.lineStart},ze.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ze.prototype.next=function(){if(this.post},ze.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},ze.prototype.skipToEnd=function(){this.pos=this.string.length},ze.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},ze.prototype.backUp=function(e){this.pos-=e},ze.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var A=function(e){return n?e.toLowerCase():e};if(A(this.string.substr(this.pos,e.length))==A(e))return!1!==t&&(this.pos+=e.length),!0},ze.prototype.current=function(){return this.string.slice(this.start,this.pos)},ze.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},ze.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},ze.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var gt=function(e,t){this.state=e,this.lookAhead=t},pt=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 A=[e.state.modeGen],i={};Tt(e,t.text,e.doc.mode,n,(function(e,t){return A.push(e,t)}),i,r);for(var o=n.state,a=function(r){n.baseTokens=A;var a=e.state.overlays[r],s=1,l=0;n.state=!0,Tt(e,t.text,a.mode,n,(function(e,t){for(var n=s;le&&A.splice(s,1,e,A[s+1],r),s+=2,l=Math.min(e,r)}if(t)if(a.opaque)A.splice(n,s-n,e,"overlay "+t),s=n+2;else for(;ne.options.maxHighlightLength&&Ge(e.doc.mode,r.state),i=mt(e,t,r);A&&(r.state=A),t.stateAfter=r.save(!A),t.styles=i.styles,i.classes?t.styleClasses=i.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function yt(e,t,n){var r=e.doc,A=e.display;if(!r.mode.startState)return new pt(r,!0,t);var i=xt(e,t,n),o=i>r.first&&Ze(r,i-1).stateAfter,a=o?pt.fromSaved(r,o,i):new pt(r,Je(r.mode),i);return r.iter(i,t,(function(n){wt(e,n.text,a);var r=a.line;n.stateAfter=r==t-1||r%5==0||r>=A.viewFrom&&rt.start)return i}throw new Error("Mode "+e.name+" failed to advance stream.")}pt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},pt.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}},pt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},pt.fromSaved=function(e,t,n){return t instanceof gt?new pt(e,Ge(e.mode,t.state),n,t.lookAhead):new pt(e,Ge(e.mode,t),n)},pt.prototype.save=function(e){var t=!1!==e?Ge(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new gt(t,this.maxLookAhead):t};var Ct=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function Qt(e,t,n,r){var A,i,o=e.doc,a=o.mode,s=Ze(o,(t=ft(o,t)).line),l=yt(e,t.line,n),c=new ze(s.text,e.options.tabSize,l);for(r&&(i=[]);(r||c.pose.options.maxHighlightLength?(a=!1,o&&wt(e,t,r,u.pos),u.pos=t.length,s=null):s=kt(bt(n,u,r.state,f),i),f){var h=f[0].name;h&&(s="m-"+(s?h+" "+s:h))}if(!a||c!=s){for(;lo;--a){if(a<=i.first)return i.first;var s=Ze(i,a-1),l=s.stateAfter;if(l&&(!n||a+(l instanceof gt?l.lookAhead:0)<=i.modeFrontier))return a;var c=O(s.text,null,e.options.tabSize);(null==A||r>c)&&(A=a-1,r=c)}return A}function Et(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var A=Ze(e,r).stateAfter;if(A&&(!(A instanceof gt)||r+A.lookAhead=t:i.to>t);(r||(r=[])).push(new Ht(o,i.from,a?null:i.to))}}return r}function Ot(e,t,n){var r;if(e)for(var A=0;A=t:i.to>t)||i.from==t&&"bookmark"==o.type&&(!n||i.marker.insertLeft)){var a=null==i.from||(o.inclusiveLeft?i.from<=t:i.from0&&a)for(var y=0;y0)){var c=[s,1],u=ot(l.from,a.from),f=ot(l.to,a.to);(u<0||!o.inclusiveLeft&&!u)&&c.push({from:l.from,to:a.from}),(f>0||!o.inclusiveRight&&!f)&&c.push({from:a.to,to:l.to}),A.splice.apply(A,c),s+=c.length-3}}return A}function Kt(e){var t=e.markedSpans;if(t){for(var n=0;nt)&&(!n||jt(n,i.marker)<0)&&(n=i.marker)}return n}function Zt(e,t,n,r,A){var i=Ze(e,t),o=Ut&&i.markedSpans;if(o)for(var a=0;a=0&&u<=0||c<=0&&u>=0)&&(c<=0&&(s.marker.inclusiveRight&&A.inclusiveLeft?ot(l.to,n)>=0:ot(l.to,n)>0)||c>=0&&(s.marker.inclusiveRight&&A.inclusiveLeft?ot(l.from,r)<=0:ot(l.from,r)<0)))return!0}}}function qt(e){for(var t;t=Wt(e);)e=t.find(-1,!0).line;return e}function Yt(e){for(var t;t=Jt(e);)e=t.find(1,!0).line;return e}function en(e){for(var t,n;t=Jt(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=Jt(r);)r=n.find(1,!0).line;return tt(r)+1}function rn(e,t){var n=Ut&&t.markedSpans;if(n)for(var r=void 0,A=0;At.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var ln=function(e,t,n){this.text=e,$t(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),$t(e,n);var A=r?r(e):1;A!=e.height&&et(e,A)}function un(e){e.parent=null,Kt(e)}ln.prototype.lineNo=function(){return tt(this)},Be(ln);var fn={},hn={};function dn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?hn:fn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function gn(e,t){var n=U("span",null,null,s?"padding-right: .1px":null),r={pre:U("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var A=0;A<=(t.rest?t.rest.length:0);A++){var i=A?t.rest[A-1]:t.line,o=void 0;r.pos=0,r.addToken=mn,Le(e.display.measure)&&(o=fe(i,e.doc.direction))&&(r.addToken=yn(r.addToken,o)),r.map=[],Bn(i,r,vt(e,i,t!=e.display.externalMeasured&&tt(i))),i.styleClasses&&(i.styleClasses.bgClass&&(r.bgClass=I(i.styleClasses.bgClass,r.bgClass||"")),i.styleClasses.textClass&&(r.textClass=I(i.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Se(e.display.measure))),0==A?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(s){var a=r.content.lastChild;(/\bcm-tab\b/.test(a.className)||a.querySelector&&a.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return me(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=I(r.pre.className,r.textClass||"")),r}function pn(e){var t=F("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,A,i,s){if(t){var l,c=e.splitSpaces?vn(t,e.trailingSpace):t,u=e.cm.state.specialChars,f=!1;if(u.test(t)){l=document.createDocumentFragment();for(var h=0;;){u.lastIndex=h;var d=u.exec(t),g=d?d.index-h:t.length-h;if(g){var p=document.createTextNode(c.slice(h,h+g));o&&a<9?l.appendChild(F("span",[p])):l.appendChild(p),e.map.push(e.pos,e.pos+g,p),e.col+=g,e.pos+=g}if(!d)break;h+=g+1;var m=void 0;if("\t"==d[0]){var v=e.cm.options.tabSize,y=v-e.col%v;(m=l.appendChild(F("span",W(y),"cm-tab"))).setAttribute("role","presentation"),m.setAttribute("cm-text","\t"),e.col+=y}else"\r"==d[0]||"\n"==d[0]?((m=l.appendChild(F("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]),o&&a<9?l.appendChild(F("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),o&&a<9&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),n||r||A||f||i||s){var w=n||"";r&&(w+=r),A&&(w+=A);var B=F("span",[l],w,i);if(s)for(var b in s)s.hasOwnProperty(b)&&"style"!=b&&"class"!=b&&B.setAttribute(b,s[b]);return e.content.appendChild(B)}e.content.appendChild(l)}}function vn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",A=0;Al&&u.from<=l);f++);if(u.to>=c)return e(n,r,A,i,o,a,s);e(n,r.slice(0,u.to-l),A,i,null,a,s),i=null,r=r.slice(u.to-l),l=u.to}}}function wn(e,t,n,r){var A=!r&&n.widgetNode;A&&e.map.push(e.pos,e.pos+t,A),!r&&e.cm.display.input.needsContentAttribute&&(A||(A=e.content.appendChild(document.createElement("span"))),A.setAttribute("cm-marker",n.id)),A&&(e.cm.display.input.setUneditable(A),e.content.appendChild(A)),e.pos+=t,e.trailingSpace=!1}function Bn(e,t,n){var r=e.markedSpans,A=e.text,i=0;if(r)for(var o,a,s,l,c,u,f,h=A.length,d=0,g=1,p="",m=0;;){if(m==d){s=l=c=a="",f=null,u=null,m=1/0;for(var v=[],y=void 0,w=0;wd||b.collapsed&&B.to==d&&B.from==d)){if(null!=B.to&&B.to!=d&&m>B.to&&(m=B.to,l=""),b.className&&(s+=" "+b.className),b.css&&(a=(a?a+";":"")+b.css),b.startStyle&&B.from==d&&(c+=" "+b.startStyle),b.endStyle&&B.to==m&&(y||(y=[])).push(b.endStyle,B.to),b.title&&((f||(f={})).title=b.title),b.attributes)for(var C in b.attributes)(f||(f={}))[C]=b.attributes[C];b.collapsed&&(!u||jt(u.marker,b)<0)&&(u=B)}else B.from>d&&m>B.from&&(m=B.from)}if(y)for(var Q=0;Q=h)break;for(var T=Math.min(h,m);;){if(p){var x=d+p.length;if(!u){var E=x>T?p.slice(0,T-d):p;t.addToken(t,E,o?o+s:s,c,d+E.length==m?l:"",a,f)}if(x>=T){p=p.slice(T-d),d=T;break}d=x,c=""}p=A.slice(i,i=n[g++]),o=dn(n[g++],t.cm.options)}}else for(var F=1;F2&&i.push((s.bottom+l.top)/2-n.top)}}i.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[A],cache:e.measure.caches[A],before:!0}}function Yn(e,t){var n=tt(t=qt(t)),r=e.display.externalMeasured=new bn(e.doc,t,n);r.lineN=n;var A=r.built=gn(e,r);return r.text=A.pre,E(e.display.lineMeasure,A.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)&&(A=(i=s-a)-1,t>=s&&(o="right")),null!=A){if(r=e[l+2],a==s&&n==(r.insertLeft?"left":"right")&&(o=n),"left"==n&&0==A)for(;l&&e[l-2]==e[l-3]&&e[l-1].insertLeft;)r=e[2+(l-=3)],o="left";if("right"==n&&A==s-a)for(;l=0&&(n=e[A]).left==n.right;A--);return n}function sr(e,t,n,r){var A,i=or(t.map,n,r),s=i.node,l=i.start,c=i.end,u=i.collapse;if(3==s.nodeType){for(var f=0;f<4;f++){for(;l&&ie(t.line.text.charAt(i.coverStart+l));)--l;for(;i.coverStart+c0&&(u=r="right"),A=e.options.lineWrapping&&(h=s.getClientRects()).length>1?h["right"==r?h.length-1:0]:s.getBoundingClientRect()}if(o&&a<9&&!l&&(!A||!A.left&&!A.right)){var d=s.parentNode.getClientRects()[0];A=d?{left:d.left,right:d.left+Ur(e.display),top:d.top,bottom:d.bottom}:ir}for(var g=A.top-t.rect.top,p=A.bottom-t.rect.top,m=(g+p)/2,v=t.view.measure.heights,y=0;y=r.text.length?(s=r.text.length,l="before"):s<=0&&(s=0,l="after"),!a)return o("before"==l?s-1:s,"before"==l);function c(e,t,n){return o(n?e-1:e,1==a[t].level!=n)}var u=ce(a,s,l),f=le,h=c(s,u,"before"==l);return null!=f&&(h.other=c(s,f,"before"!=l)),h}function wr(e,t){var n=0;t=ft(e.doc,t),e.options.lineWrapping||(n=Ur(e.display)*t.ch);var r=Ze(e.doc,t.line),A=on(r)+Vn(e.display);return{left:n,right:n,top:A,bottom:A+r.height}}function Br(e,t,n,r,A){var i=it(e,t,n);return i.xRel=A,r&&(i.outside=r),i}function br(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Br(r.first,0,null,-1,-1);var A=nt(r,n),i=r.first+r.size-1;if(A>i)return Br(r.first+r.size-1,Ze(r,i).text.length,null,1,1);t<0&&(t=0);for(var o=Ze(r,A);;){var a=Tr(e,o,A,t,n),s=zt(o,a.ch+(a.xRel>0||a.outside>0?1:0));if(!s)return a;var l=s.find(1);if(l.line==A)return l;o=Ze(r,A=l.line)}}function Cr(e,t,n,r){r-=gr(t);var A=t.text.length,i=ae((function(t){return rr(e,n,t-1).bottom<=r}),A,0);return{begin:i,end:A=ae((function(t){return rr(e,n,t).top>r}),i,A)}}function Qr(e,t,n,r){return n||(n=nr(e,t)),Cr(e,t,n,pr(e,t,rr(e,n,r),"line").top)}function kr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function Tr(e,t,n,r,A){A-=on(t);var i=nr(e,t),o=gr(t),a=0,s=t.text.length,l=!0,c=fe(t,e.doc.direction);if(c){var u=(e.options.lineWrapping?Er:xr)(e,t,n,i,c,r,A);a=(l=1!=u.level)?u.from:u.to-1,s=l?u.to:u.from-1}var f,h,d=null,g=null,p=ae((function(t){var n=rr(e,i,t);return n.top+=o,n.bottom+=o,!!kr(n,r,A,!1)&&(n.top<=A&&n.left<=r&&(d=t,g=n),!0)}),a,s),m=!1;if(g){var v=r-g.left=w.bottom?1:0}return Br(n,p=oe(t.text,p,1),h,m,r-f)}function xr(e,t,n,r,A,i,o){var a=ae((function(a){var s=A[a],l=1!=s.level;return kr(yr(e,it(n,l?s.to:s.from,l?"before":"after"),"line",t,r),i,o,!0)}),0,A.length-1),s=A[a];if(a>0){var l=1!=s.level,c=yr(e,it(n,l?s.from:s.to,l?"after":"before"),"line",t,r);kr(c,i,o,!0)&&c.top>o&&(s=A[a-1])}return s}function Er(e,t,n,r,A,i,o){var a=Cr(e,t,r,o),s=a.begin,l=a.end;/\s/.test(t.text.charAt(l-1))&&l--;for(var c=null,u=null,f=0;f=l||h.to<=s)){var d=rr(e,r,1!=h.level?Math.min(l,h.to)-1:Math.max(s,h.from)).right,g=dg)&&(c=h,u=g)}}return c||(c=A[A.length-1]),c.froml&&(c={from:c.from,to:l,level:c.level}),c}function Fr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Ar){Ar=F("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Ar.appendChild(document.createTextNode("x")),Ar.appendChild(F("br"));Ar.appendChild(document.createTextNode("x"))}E(e.measure,Ar);var n=Ar.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),x(e.measure),n||1}function Ur(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=F("span","xxxxxxxxxx"),n=F("pre",[t],"CodeMirror-line-like");E(e.measure,n);var r=t.getBoundingClientRect(),A=(r.right-r.left)/10;return A>2&&(e.cachedCharWidth=A),A||10}function Sr(e){for(var t=e.display,n={},r={},A=t.gutters.clientLeft,i=t.gutters.firstChild,o=0;i;i=i.nextSibling,++o){var a=e.display.gutterSpecs[o].className;n[a]=i.offsetLeft+i.clientLeft+A,r[a]=i.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 Hr(e){var t=Fr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Ur(e.display)-3);return function(A){if(rn(e.doc,A))return 0;var i=0;if(A.widgets)for(var o=0;o0&&(s=Ze(e.doc,l.line).text).length==l.ch){var c=O(s,s.length,e.options.tabSize)-s.length;l=it(l.line,Math.max(0,Math.round((i-Gn(e.display).left)/Ur(e.display))-c))}return l}function _r(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)&&(A.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=A.viewTo)Ut&&tn(e.doc,t)A.viewFrom?Nr(e):(A.viewFrom+=r,A.viewTo+=r);else if(t<=A.viewFrom&&n>=A.viewTo)Nr(e);else if(t<=A.viewFrom){var i=Rr(e,n,n+r,1);i?(A.view=A.view.slice(i.index),A.viewFrom=i.lineN,A.viewTo+=r):Nr(e)}else if(n>=A.viewTo){var o=Rr(e,t,t,-1);o?(A.view=A.view.slice(0,o.index),A.viewTo=o.lineN):Nr(e)}else{var a=Rr(e,t,t,-1),s=Rr(e,n,n+r,1);a&&s?(A.view=A.view.slice(0,a.index).concat(Cn(e,a.lineN,s.lineN)).concat(A.view.slice(s.index)),A.viewTo+=r):Nr(e)}var l=A.externalMeasured;l&&(n=A.lineN&&t=r.viewTo)){var i=r.view[_r(e,t)];if(null!=i.node){var o=i.changes||(i.changes=[]);-1==R(o,n)&&o.push(n)}}}function Nr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Rr(e,t,n,r){var A,i=_r(e,t),o=e.display.view;if(!Ut||n==e.doc.first+e.doc.size)return{index:i,lineN:n};for(var a=e.display.viewFrom,s=0;s0){if(i==o.length-1)return null;A=a+o[i].size-t,i++}else A=a-t;t+=A,n+=A}for(;tn(e.doc,n)!=n;){if(i==(r<0?0:o.length-1))return null;n+=r*o[i-(r<0?1:0)].size,i+=r}return{index:i,lineN:n}}function Pr(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=Cn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=Cn(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,_r(e,n)))),r.viewTo=n}function Kr(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||a.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 Jr(e){e.state.focused||(e.display.input.focus(),Zr(e))}function zr(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,H(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),s&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Wr(e))}function qr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(me(e,"blur",e,t),e.state.focused=!1,T(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Yr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r.005||f<-.005)&&(et(A.line,s),eA(A.line),A.rest))for(var h=0;he.display.sizerWidth){var d=Math.ceil(l/Ur(e.display));d>e.display.maxLineLength&&(e.display.maxLineLength=d,e.display.maxLine=A.line,e.display.maxLineChanged=!0)}}}}function eA(e){if(e.widgets)for(var t=0;t=o&&(i=nt(t,on(Ze(t,s))-e.wrapper.clientHeight),o=s)}return{from:i,to:Math.max(o,i+1)}}function nA(e,t){if(!ve(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),A=null;if(t.top+r.top<0?A=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(A=!1),null!=A&&!d){var i=F("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Vn(e.display))+"px;\n height: "+(t.bottom-t.top+Wn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(i),i.scrollIntoView(A),e.display.lineSpace.removeChild(i)}}}function rA(e,t,n,r){var A;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==(t=t.ch?it(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?it(t.line,t.ch+1,"before"):t);for(var i=0;i<5;i++){var o=!1,a=yr(e,t),s=n&&n!=t?yr(e,n):a,l=iA(e,A={left:Math.min(a.left,s.left),top:Math.min(a.top,s.top)-r,right:Math.max(a.left,s.left),bottom:Math.max(a.bottom,s.bottom)+r}),c=e.doc.scrollTop,u=e.doc.scrollLeft;if(null!=l.scrollTop&&(fA(e,l.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(o=!0)),null!=l.scrollLeft&&(dA(e,l.scrollLeft),Math.abs(e.doc.scrollLeft-u)>1&&(o=!0)),!o)break}return A}function AA(e,t){var n=iA(e,t);null!=n.scrollTop&&fA(e,n.scrollTop),null!=n.scrollLeft&&dA(e,n.scrollLeft)}function iA(e,t){var n=e.display,r=Fr(e.display);t.top<0&&(t.top=0);var A=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,i=zn(e),o={};t.bottom-t.top>i&&(t.bottom=t.top+i);var a=e.doc.height+jn(n),s=t.topa-r;if(t.topA+i){var c=Math.min(t.top,(l?a:t.bottom)-i);c!=A&&(o.scrollTop=c)}var u=e.options.fixedGutter?0:n.gutters.offsetWidth,f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-u,h=Jn(e)-n.gutters.offsetWidth,d=t.right-t.left>h;return d&&(t.right=t.left+h),t.left<10?o.scrollLeft=0:t.lefth+f-3&&(o.scrollLeft=t.right+(d?0:10)-h),o}function oA(e,t){null!=t&&(cA(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function aA(e){cA(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function sA(e,t,n){null==t&&null==n||cA(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function lA(e,t){cA(e),e.curOp.scrollToPos=t}function cA(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,uA(e,wr(e,t.from),wr(e,t.to),t.margin))}function uA(e,t,n,r){var A=iA(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});sA(e,A.scrollLeft,A.scrollTop)}function fA(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||$A(e,{top:t}),hA(e,t,!0),n&&$A(e),MA(e,100))}function hA(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 dA(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,GA(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function gA(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+jn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Wn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var pA=function(e,t,n){this.cm=n;var r=this.vert=F("div",[F("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),A=this.horiz=F("div",[F("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=A.tabIndex=-1,e(r),e(A),de(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),de(A,"scroll",(function(){A.clientWidth&&t(A.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,o&&a<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};pA.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 A=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+A)+"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 i=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+i)+"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}},pA.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},pA.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},pA.prototype.zeroWidthHack=function(){var e=v&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new N,this.disableVert=new N},pA.prototype.enableZeroWidthBar=function(e,t,n){function r(){var A=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(A.right-1,(A.top+A.bottom)/2):document.elementFromPoint((A.right+A.left)/2,A.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}e.style.pointerEvents="auto",t.set(1e3,r)},pA.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var mA=function(){};function vA(e,t){t||(t=gA(e));var n=e.display.barWidth,r=e.display.barHeight;yA(e,t);for(var A=0;A<4&&n!=e.display.barWidth||r!=e.display.barHeight;A++)n!=e.display.barWidth&&e.options.lineWrapping&&Yr(e),yA(e,gA(e)),n=e.display.barWidth,r=e.display.barHeight}function yA(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=""}mA.prototype.update=function(){return{bottom:0,right:0}},mA.prototype.setScrollLeft=function(){},mA.prototype.setScrollTop=function(){},mA.prototype.clear=function(){};var wA={native:pA,null:mA};function BA(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&T(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new wA[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?dA(e,t):fA(e,t)}),e),e.display.scrollbars.addClass&&H(e.display.wrapper,e.display.scrollbars.addClass)}var bA=0;function CA(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:++bA},kn(e.curOp)}function QA(e){var t=e.curOp;t&&xn(t,(function(e){for(var t=0;t=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new DA(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function xA(e){e.updatedDisplay=e.mustUpdate&&PA(e.cm,e.update)}function EA(e){var t=e.cm,n=t.display;e.updatedDisplay&&Yr(t),e.barMeasure=gA(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=er(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Wn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Jn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function FA(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var n=+new Date+e.options.workTime,r=yt(e,t.highlightFrontier),A=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(i){if(r.line>=e.display.viewFrom){var o=i.styles,a=i.text.length>e.options.maxHighlightLength?Ge(t.mode,r.state):null,s=mt(e,i,r,!0);a&&(r.state=a),i.styles=s.styles;var l=i.styleClasses,c=s.classes;c?i.styleClasses=c:l&&(i.styleClasses=null);for(var u=!o||o.length!=i.styles.length||l!=c&&(!l||!c||l.bgClass!=c.bgClass||l.textClass!=c.textClass),f=0;!u&&fn)return MA(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),A.length&&SA(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;WA(e)&&(Nr(e),t.dims=Sr(e));var A=r.first+r.size,i=Math.max(t.visible.from-e.options.viewportMargin,r.first),o=Math.min(A,t.visible.to+e.options.viewportMargin);n.viewFromo&&n.viewTo-o<20&&(o=Math.min(A,n.viewTo)),Ut&&(i=tn(e.doc,i),o=nn(e.doc,o));var a=i!=n.viewFrom||o!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Pr(e,i,o),n.viewOffset=on(Ze(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var s=Kr(e);if(!a&&0==s&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var l=NA(e);return s>4&&(n.lineDiv.style.display="none"),XA(e,n.updateLineNumbers,t.dims),s>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,RA(l),x(n.cursorDiv),x(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,a&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,MA(e,400)),n.updateLineNumbers=null,!0}function KA(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Jn(e))r&&(t.visible=tA(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+jn(e.display)-zn(e),n.top)}),t.visible=tA(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!PA(e,t))break;Yr(e);var A=gA(e);$r(e),vA(e,A),jA(e,A),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 $A(e,t){var n=new DA(e,t);if(PA(e,n)){Yr(e),KA(e,n);var r=gA(e);$r(e),vA(e,r),jA(e,r),n.finish()}}function XA(e,t,n){var r=e.display,A=e.options.lineNumbers,i=r.lineDiv,o=i.firstChild;function a(t){var n=t.nextSibling;return s&&v&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var l=r.view,c=r.viewFrom,u=0;u-1&&(h=!1),Sn(e,f,c,n)),h&&(x(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(At(e.options,c)))),o=f.node.nextSibling}else{var d=Nn(e,f,c,n);i.insertBefore(d,o)}c+=f.size}for(;o;)o=a(o)}function VA(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function jA(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Wn(e)+"px"}function GA(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,A=t.gutters.offsetWidth,i=r+"px",o=0;oa.clientWidth,c=a.scrollHeight>a.clientHeight;if(A&&l||i&&c){if(i&&v&&s)e:for(var f=t.target,h=o.view;f!=a;f=f.parentNode)for(var d=0;d=0&&ot(e,r.to())<=0)return n}return-1};var ii=function(e,t){this.anchor=e,this.head=t};function oi(e,t,n){var r=e&&e.options.selectionsMayTouch,A=t[n];t.sort((function(e,t){return ot(e.from(),t.from())})),n=R(t,A);for(var i=1;i0:s>=0){var l=ct(a.from(),o.from()),c=lt(a.to(),o.to()),u=a.empty()?o.from()==o.head:a.from()==a.head;i<=n&&--n,t.splice(--i,2,new ii(u?c:l,u?l:c))}}return new Ai(t,n)}function ai(e,t){return new Ai([new ii(e,t||e)],0)}function si(e){return e.text?it(e.from.line+e.text.length-1,J(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function li(e,t){if(ot(e,t.from)<0)return e;if(ot(e,t.to)<=0)return si(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+=si(t).ch-t.to.ch),it(n,r)}function ci(e,t){for(var n=[],r=0;r1&&e.remove(a.line+1,d-1),e.insert(a.line+1,m)}Fn(e,"change",e,t)}function mi(e,t,n){function r(e,A,i){if(e.linked)for(var o=0;o1&&!e.done[e.done.length-2].ranges?(e.done.pop(),J(e.done)):void 0}function ki(e,t,n,r){var A=e.history;A.undone.length=0;var i,o,a=+new Date;if((A.lastOp==r||A.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&A.lastModTime>a-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(i=Qi(A,A.lastOp==r)))o=J(i.changes),0==ot(t.from,t.to)&&0==ot(t.from,o.to)?o.to=si(t):i.changes.push(bi(e,t));else{var s=J(A.done);for(s&&s.ranges||Ei(e.sel,A.done),i={changes:[bi(e,t)],generation:A.generation},A.done.push(i);A.done.length>A.undoDepth;)A.done.shift(),A.done[0].ranges||A.done.shift()}A.done.push(n),A.generation=++A.maxGeneration,A.lastModTime=A.lastSelTime=a,A.lastOp=A.lastSelOp=r,A.lastOrigin=A.lastSelOrigin=t.origin,o||me(e,"historyAdded")}function Ti(e,t,n,r){var A=t.charAt(0);return"*"==A||"+"==A&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function xi(e,t,n,r){var A=e.history,i=r&&r.origin;n==A.lastSelOp||i&&A.lastSelOrigin==i&&(A.lastModTime==A.lastSelTime&&A.lastOrigin==i||Ti(e,i,J(A.done),t))?A.done[A.done.length-1]=t:Ei(t,A.done),A.lastSelTime=+new Date,A.lastSelOrigin=i,A.lastSelOp=n,r&&!1!==r.clearRedo&&Ci(A.undone)}function Ei(e,t){var n=J(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Fi(e,t,n,r){var A=t["spans_"+e.id],i=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((A||(A=t["spans_"+e.id]={}))[i]=n.markedSpans),++i}))}function Ui(e){if(!e)return null;for(var t,n=0;n-1&&(J(a)[u]=l[u],delete l[u])}}}return r}function Ii(e,t,n,r){if(r){var A=e.anchor;if(n){var i=ot(t,A)<0;i!=ot(n,A)<0?(A=t,t=n):i!=ot(t,n)<0&&(t=n)}return new ii(A,t)}return new ii(n||t,t)}function Mi(e,t,n,r,A){null==A&&(A=e.cm&&(e.cm.display.shift||e.extend)),Pi(e,new Ai([Ii(e.sel.primary(),t,n,A)],0),r)}function _i(e,t,n){for(var r=[],A=e.cm&&(e.cm.display.shift||e.extend),i=0;i=t.ch:a.to>t.ch))){if(A&&(me(s,"beforeCursorEnter"),s.explicitlyCleared)){if(i.markedSpans){--o;continue}break}if(!s.atomic)continue;if(n){var u=s.find(r<0?1:-1),f=void 0;if((r<0?c:l)&&(u=Wi(e,u,-r,u&&u.line==t.line?i:null)),u&&u.line==t.line&&(f=ot(u,n))&&(r<0?f<0:f>0))return ji(e,u,t,r,A)}var h=s.find(r<0?-1:1);return(r<0?l:c)&&(h=Wi(e,h,r,h.line==t.line?i:null)),h?ji(e,h,t,r,A):null}}return t}function Gi(e,t,n,r,A){var i=r||1,o=ji(e,t,n,i,A)||!A&&ji(e,t,n,i,!0)||ji(e,t,n,-i,A)||!A&&ji(e,t,n,-i,!0);return o||(e.cantEdit=!0,it(e.first,0))}function Wi(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?ft(e,it(t.line-1)):null:n>0&&t.ch==(r||Ze(e,t.line)).text.length?t.line=0;--A)qi(e,{from:r[A].from,to:r[A].to,text:A?[""]:t.text,origin:t.origin});else qi(e,t)}}function qi(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ot(t.from,t.to)){var n=ci(e,t);ki(e,t,n,e.cm?e.cm.curOp.id:NaN),to(e,t,n,Nt(e,t));var r=[];mi(e,(function(e,n){n||-1!=R(r,e.history)||(oo(e.history,t),r.push(e.history)),to(e,t,null,Nt(e,t))}))}}function Yi(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var A,i=e.history,o=e.sel,a="undo"==t?i.done:i.undone,s="undo"==t?i.undone:i.done,l=0;l=0;--h){var d=f(h);if(d)return d.v}}}}function eo(e,t){if(0!=t&&(e.first+=t,e.sel=new Ai(z(e.sel.ranges,(function(e){return new ii(it(e.anchor.line+t,e.anchor.ch),it(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Dr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.linei&&(t={from:t.from,to:it(i,Ze(e,i).text.length),text:[t.text[0]],origin:t.origin}),t.removed=qe(e,t.from,t.to),n||(n=ci(e,t)),e.cm?no(e.cm,t,r):pi(e,t,r),Ki(e,n,$),e.cantEdit&&Gi(e,it(e.firstLine(),0))&&(e.cantEdit=!1)}}function no(e,t,n){var r=e.doc,A=e.display,i=t.from,o=t.to,a=!1,s=i.line;e.options.lineWrapping||(s=tt(qt(Ze(r,i.line))),r.iter(s,o.line+1,(function(e){if(e==A.maxLine)return a=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&ye(e),pi(r,t,n,Hr(e)),e.options.lineWrapping||(r.iter(s,i.line+t.text.length,(function(e){var t=an(e);t>A.maxLineLength&&(A.maxLine=e,A.maxLineLength=t,A.maxLineChanged=!0,a=!1)})),a&&(e.curOp.updateMaxLine=!0)),Et(r,i.line),MA(e,400);var l=t.text.length-(o.line-i.line)-1;t.full?Dr(e):i.line!=o.line||1!=t.text.length||gi(e.doc,t)?Dr(e,i.line,o.line+1,l):Or(e,i.line,"text");var c=we(e,"changes"),u=we(e,"change");if(u||c){var f={from:i,to:o,text:t.text,removed:t.removed,origin:t.origin};u&&Fn(e,"change",e,f),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(f)}e.display.selForContextMenu=null}function ro(e,t,n,r,A){var i;r||(r=n),ot(r,n)<0&&(n=(i=[r,n])[0],r=i[1]),"string"==typeof t&&(t=e.splitLines(t)),Zi(e,{from:n,to:r,text:t,origin:A})}function Ao(e,t,n,r){n1||!(this.children[0]instanceof so))){var a=[];this.collapse(a),this.children=[new so(a)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var o=A.lines.length%25+25,a=o;a10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r0||0==o&&!1!==i.clearWhenEmpty)return i;if(i.replacedWith&&(i.collapsed=!0,i.widgetNode=U("span",[i.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||i.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(i.widgetNode.insertLeft=!0)),i.collapsed){if(Zt(e,t.line,t,n,i)||t.line!=n.line&&Zt(e,n.line,t,n,i))throw new Error("Inserting collapsed marker partially overlapping an existing one");Lt()}i.addToHistory&&ki(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var a,s=t.line,l=e.cm;if(e.iter(s,n.line+1,(function(e){l&&i.collapsed&&!l.options.lineWrapping&&qt(e)==l.display.maxLine&&(a=!0),i.collapsed&&s!=t.line&&et(e,0),_t(e,new Ht(i,s==t.line?t.ch:null,s==n.line?n.ch:null)),++s})),i.collapsed&&e.iter(t.line,n.line+1,(function(t){rn(e,t)&&et(t,0)})),i.clearOnEnter&&de(i,"beforeCursorEnter",(function(){return i.clear()})),i.readOnly&&(St(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),i.collapsed&&(i.id=++ho,i.atomic=!0),l){if(a&&(l.curOp.updateMaxLine=!0),i.collapsed)Dr(l,t.line,n.line+1);else if(i.className||i.startStyle||i.endStyle||i.css||i.attributes||i.title)for(var c=t.line;c<=n.line;c++)Or(l,c,"text");i.atomic&&Xi(l.doc),Fn(l,"markerAdded",l,i)}return i}go.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&CA(e),we(this,"clear")){var n=this.find();n&&Fn(this,"clear",n.from,n.to)}for(var r=null,A=null,i=0;ie.display.maxLineLength&&(e.display.maxLine=l,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Dr(e,r,A+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Xi(e.doc)),e&&Fn(e,"markerCleared",e,this,r,A),t&&QA(e),this.parent&&this.parent.clear()}},go.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var A=0;A=0;s--)Zi(this,r[s]);a?Ri(this,a):this.cm&&aA(this.cm)})),undo:IA((function(){Yi(this,"undo")})),redo:IA((function(){Yi(this,"redo")})),undoSelection:IA((function(){Yi(this,"undo",!0)})),redoSelection:IA((function(){Yi(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(A.marker.parent||A.marker)}return t},findMarks:function(e,t,n){e=ft(this,e),t=ft(this,t);var r=[],A=e.line;return this.iter(e.line,t.line+1,(function(i){var o=i.markedSpans;if(o)for(var a=0;a=s.to||null==s.from&&A!=e.line||null!=s.from&&A==t.line&&s.from>=t.ch||n&&!n(s.marker)||r.push(s.marker.parent||s.marker)}++A})),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-=i,++n})),ft(this,it(n,t))},indexFromPos:function(e){var t=(e=ft(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 f;if(t.state.draggingText&&!t.state.draggingText.copy&&(f=t.listSelections()),Ki(t.doc,ai(n,n)),f)for(var h=0;h=0;t--)ro(e.doc,"",r[t].from,r[t].to,"+delete");aA(e)}))}function Go(e,t,n){var r=oe(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Wo(e,t,n){var r=Go(e,t.ch,n);return null==r?null:new it(t.line,r,n<0?"after":"before")}function Jo(e,t,n,r,A){if(e){"rtl"==t.doc.direction&&(A=-A);var i=fe(n,t.doc.direction);if(i){var o,a=A<0?J(i):i[0],s=A<0==(1==a.level)?"after":"before";if(a.level>0||"rtl"==t.doc.direction){var l=nr(t,n);o=A<0?n.text.length-1:0;var c=rr(t,l,o).top;o=ae((function(e){return rr(t,l,e).top==c}),A<0==(1==a.level)?a.from:a.to-1,o),"before"==s&&(o=Go(n,o,1))}else o=A<0?a.to:a.from;return new it(r,o,s)}}return new it(r,A<0?n.text.length:0,A<0?"before":"after")}function zo(e,t,n,r){var A=fe(t,e.doc.direction);if(!A)return Wo(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 i=ce(A,n.ch,n.sticky),o=A[i];if("ltr"==e.doc.direction&&o.level%2==0&&(r>0?o.to>n.ch:o.from=o.from&&f>=c.begin)){var h=u?"before":"after";return new it(n.line,f,h)}}var d=function(e,t,r){for(var i=function(e,t){return t?new it(n.line,s(e,1),"before"):new it(n.line,e,"after")};e>=0&&e0==(1!=o.level),l=a?r.begin:s(r.end,-1);if(o.from<=l&&l0?c.end:s(c.begin,-1);return null==p||r>0&&p==t.text.length||!(g=d(r>0?0:A.length-1,r,l(p)))?null:g}Oo.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"},Oo.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"},Oo.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"},Oo.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"]},Oo.default=v?Oo.macDefault:Oo.pcDefault;var Zo={selectAll:Ji,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),$)},killLine:function(e){return jo(e,(function(t){if(t.empty()){var n=Ze(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)A=new it(A.line,A.ch+1),e.replaceRange(i.charAt(A.ch-1)+i.charAt(A.ch-2),it(A.line,A.ch-2),A,"+transpose");else if(A.line>e.doc.first){var o=Ze(e.doc,A.line-1).text;o&&(A=new it(A.line,1),e.replaceRange(i.charAt(0)+e.doc.lineSeparator()+o.charAt(o.length-1),it(A.line-1,o.length-1),A,"+transpose"))}n.push(new ii(A,A))}e.setSelections(n)}))},newlineAndIndent:function(e){return SA(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&&(ot((A=a.ranges[A]).from(),t)<0||t.xRel>0)&&(ot(A.to(),t)>0||t.xRel<0)?ba(e,r,t,i):Qa(e,r,t,i)}function ba(e,t,n,r){var A=e.display,i=!1,l=LA(e,(function(t){s&&(A.scroller.draggable=!1),e.state.draggingText=!1,pe(A.wrapper.ownerDocument,"mouseup",l),pe(A.wrapper.ownerDocument,"mousemove",c),pe(A.scroller,"dragstart",u),pe(A.scroller,"drop",l),i||(be(t),r.addNew||Mi(e.doc,n,null,null,r.extend),s&&!f||o&&9==a?setTimeout((function(){A.wrapper.ownerDocument.body.focus({preventScroll:!0}),A.input.focus()}),20):A.input.focus())})),c=function(e){i=i||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},u=function(){return i=!0};s&&(A.scroller.draggable=!0),e.state.draggingText=l,l.copy=!r.moveOnDrag,A.scroller.dragDrop&&A.scroller.dragDrop(),de(A.wrapper.ownerDocument,"mouseup",l),de(A.wrapper.ownerDocument,"mousemove",c),de(A.scroller,"dragstart",u),de(A.scroller,"drop",l),zr(e),setTimeout((function(){return A.input.focus()}),20)}function Ca(e,t,n){if("char"==n)return new ii(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new ii(it(t.line,0),ft(e.doc,it(t.line+1,0)));var r=n(e,t);return new ii(r.from,r.to)}function Qa(e,t,n,r){var A=e.display,i=e.doc;be(t);var o,a,s=i.sel,l=s.ranges;if(r.addNew&&!r.extend?(a=i.sel.contains(n),o=a>-1?l[a]:new ii(n,n)):(o=i.sel.primary(),a=i.sel.primIndex),"rectangle"==r.unit)r.addNew||(o=new ii(n,n)),n=Mr(e,t,!0,!0),a=-1;else{var c=Ca(e,n,r.unit);o=r.extend?Ii(o,c.anchor,c.head,r.extend):c}r.addNew?-1==a?(a=l.length,Pi(i,oi(e,l.concat([o]),a),{scroll:!1,origin:"*mouse"})):l.length>1&&l[a].empty()&&"char"==r.unit&&!r.extend?(Pi(i,oi(e,l.slice(0,a).concat(l.slice(a+1)),0),{scroll:!1,origin:"*mouse"}),s=i.sel):Di(i,a,o,X):(a=0,Pi(i,new Ai([o],0),X),s=i.sel);var u=n;function f(t){if(0!=ot(u,t))if(u=t,"rectangle"==r.unit){for(var A=[],l=e.options.tabSize,c=O(Ze(i,n.line).text,n.ch,l),f=O(Ze(i,t.line).text,t.ch,l),h=Math.min(c,f),d=Math.max(c,f),g=Math.min(n.line,t.line),p=Math.min(e.lastLine(),Math.max(n.line,t.line));g<=p;g++){var m=Ze(i,g).text,v=j(m,h,l);h==d?A.push(new ii(it(g,v),it(g,v))):m.length>v&&A.push(new ii(it(g,v),it(g,j(m,d,l))))}A.length||A.push(new ii(n,n)),Pi(i,oi(e,s.ranges.slice(0,a).concat(A),a),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var y,w=o,B=Ca(e,t,r.unit),b=w.anchor;ot(B.anchor,b)>0?(y=B.head,b=ct(w.from(),B.anchor)):(y=B.anchor,b=lt(w.to(),B.head));var C=s.ranges.slice(0);C[a]=ka(e,new ii(ft(i,b),y)),Pi(i,oi(e,C,a),X)}}var h=A.wrapper.getBoundingClientRect(),d=0;function g(t){var n=++d,o=Mr(e,t,!0,"rectangle"==r.unit);if(o)if(0!=ot(o,u)){e.curOp.focus=L(),f(o);var a=tA(A,i);(o.line>=a.to||o.lineh.bottom?20:0;s&&setTimeout(LA(e,(function(){d==n&&(A.scroller.scrollTop+=s,g(t))})),50)}}function p(t){e.state.selectingText=!1,d=1/0,t&&(be(t),A.input.focus()),pe(A.wrapper.ownerDocument,"mousemove",m),pe(A.wrapper.ownerDocument,"mouseup",v),i.history.lastSelOrigin=null}var m=LA(e,(function(e){0!==e.buttons&&xe(e)?g(e):p(e)})),v=LA(e,p);e.state.selectingText=v,de(A.wrapper.ownerDocument,"mousemove",m),de(A.wrapper.ownerDocument,"mouseup",v)}function ka(e,t){var n=t.anchor,r=t.head,A=Ze(e.doc,n.line);if(0==ot(n,r)&&n.sticky==r.sticky)return t;var i=fe(A);if(!i)return t;var o=ce(i,n.ch,n.sticky),a=i[o];if(a.from!=n.ch&&a.to!=n.ch)return t;var s,l=o+(a.from==n.ch==(1!=a.level)?0:1);if(0==l||l==i.length)return t;if(r.line!=n.line)s=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=ce(i,r.ch,r.sticky),u=c-o||(r.ch-n.ch)*(1==a.level?-1:1);s=c==l-1||c==l?u<0:u>0}var f=i[l+(s?-1:0)],h=s==(1==f.level),d=h?f.from:f.to,g=h?"after":"before";return n.ch==d&&n.sticky==g?t:new ii(new it(n.line,d,g),r)}function Ta(e,t,n,r){var A,i;if(t.touches)A=t.touches[0].clientX,i=t.touches[0].clientY;else try{A=t.clientX,i=t.clientY}catch(e){return!1}if(A>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&be(t);var o=e.display,a=o.lineDiv.getBoundingClientRect();if(i>a.bottom||!we(e,n))return Qe(t);i-=a.top-o.viewOffset;for(var s=0;s=A)return me(e,n,e,nt(e.doc,i),e.display.gutterSpecs[s].className,t),Qe(t)}}function xa(e,t){return Ta(e,t,"gutterClick",!0)}function Ea(e,t){Xn(e.display,t)||Fa(e,t)||ve(e,t,"contextmenu")||C||e.display.input.onContextMenu(t)}function Fa(e,t){return!!we(e,"gutterContextMenu")&&Ta(e,t,"gutterContextMenu",!1)}function Ua(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),fr(e)}pa.prototype.compare=function(e,t,n){return this.time+ga>e&&0==ot(t,this.pos)&&n==this.button};var Sa={toString:function(){return"CodeMirror.Init"}},La={},Ha={};function Ia(e){var t=e.optionHandlers;function n(n,r,A,i){e.defaults[n]=r,A&&(t[n]=i?function(e,t,n){n!=Sa&&A(e,t,n)}:A)}e.defineOption=n,e.Init=Sa,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,hi(e)}),!0),n("indentUnit",2,hi,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){di(e),fr(e),Dr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var A=0;;){var i=e.text.indexOf(t,A);if(-1==i)break;A=i+t.length,n.push(it(r,i))}r++}));for(var A=n.length-1;A>=0;A--)ro(e.doc,t,n[A],it(n[A].line,n[A].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!=Sa&&e.refresh()})),n("specialCharPlaceholder",pn,(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",!w),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){Ua(e),ZA(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Vo(t),A=n!=Sa&&Vo(n);A&&A.detach&&A.detach(e,r),r.attach&&r.attach(e,A||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,_a,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=JA(t,e.options.lineNumbers),ZA(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 vA(e)}),!0),n("scrollbarStyle","native",(function(e){BA(e),vA(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=JA(e.options.gutters,t),ZA(e)}),!0),n("firstLineNumber",1,ZA,!0),n("lineNumberFormatter",(function(e){return e}),ZA,!0),n("showCursorWhenSelecting",!1,$r,!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,Ma),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,$r,!0),n("singleCursorHeightPerLine",!0,$r,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,di,!0),n("addModeClass",!1,di,!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,di,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}function Ma(e,t,n){if(!t!=!(n&&n!=Sa)){var r=e.display.dragFunctions,A=t?de:pe;A(e.display.scroller,"dragstart",r.start),A(e.display.scroller,"dragenter",r.enter),A(e.display.scroller,"dragover",r.over),A(e.display.scroller,"dragleave",r.leave),A(e.display.scroller,"drop",r.drop)}}function _a(e){e.options.lineWrapping?(H(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(T(e.display.wrapper,"CodeMirror-wrap"),sn(e)),Ir(e),Dr(e),fr(e),setTimeout((function(){return vA(e)}),100)}function Da(e,t){var n=this;if(!(this instanceof Da))return new Da(e,t);this.options=t=t?D(t):{},D(La,t,!1);var r=t.value;"string"==typeof r?r=new Co(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var A=new Da.inputStyles[t.inputStyle](this),i=this.display=new qA(e,r,A,t);for(var l in i.wrapper.CodeMirror=this,Ua(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),BA(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new N,keySeq:null,specialChars:null},t.autofocus&&!m&&i.input.focus(),o&&a<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),Oa(this),So(),CA(this),this.curOp.forceUpdate=!0,vi(this,r),t.autofocus&&!m||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Zr(n)}),20):qr(this),Ha)Ha.hasOwnProperty(l)&&Ha[l](this,t[l],Sa);WA(this),t.finishInit&&t.finishInit(this);for(var c=0;c400}de(t.scroller,"touchstart",(function(A){if(!ve(e,A)&&!i(A)&&!xa(e,A)){t.input.ensurePolled(),clearTimeout(n);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==A.touches.length&&(t.activeTouch.left=A.touches[0].pageX,t.activeTouch.top=A.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&&!Xn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var i,o=e.coordsChar(t.activeTouch,"page");i=!r.prev||s(r,r.prev)?new ii(o,o):!r.prev.prev||s(r,r.prev.prev)?e.findWordAt(o):new ii(it(o.line,0),ft(e.doc,it(o.line+1,0))),e.setSelection(i.anchor,i.head),e.focus(),be(n)}A()})),de(t.scroller,"touchcancel",A),de(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(fA(e,t.scroller.scrollTop),dA(e,t.scroller.scrollLeft,!0),me(e,"scroll",e))})),de(t.scroller,"mousewheel",(function(t){return ri(e,t)})),de(t.scroller,"DOMMouseScroll",(function(t){return ri(e,t)})),de(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){ve(e,t)||ke(t)},over:function(t){ve(e,t)||(xo(e,t),ke(t))},start:function(t){return To(e,t)},drop:LA(e,ko),leave:function(t){ve(e,t)||Eo(e)}};var l=t.input.getField();de(l,"keyup",(function(t){return ua.call(e,t)})),de(l,"keydown",LA(e,la)),de(l,"keypress",LA(e,fa)),de(l,"focus",(function(t){return Zr(e,t)})),de(l,"blur",(function(t){return qr(e,t)}))}Da.defaults=La,Da.optionHandlers=Ha;var Na=[];function Ra(e,t,n,r){var A,i=e.doc;null==n&&(n="add"),"smart"==n&&(i.mode.indent?A=yt(e,t).state:n="prev");var o=e.options.tabSize,a=Ze(i,t),s=O(a.text,null,o);a.stateAfter&&(a.stateAfter=null);var l,c=a.text.match(/^\s*/)[0];if(r||/\S/.test(a.text)){if("smart"==n&&((l=i.mode.indent(A,a.text.slice(c.length),a.text))==K||l>150)){if(!r)return;n="prev"}}else l=0,n="not";"prev"==n?l=t>i.first?O(Ze(i,t-1).text,null,o):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="",f=0;if(e.options.indentWithTabs)for(var h=Math.floor(l/o);h;--h)f+=o,u+="\t";if(fo,s=Ie(t),l=null;if(a&&r.ranges.length>1)if(Pa&&Pa.text.join("\n")==t){if(r.ranges.length%Pa.text.length==0){l=[];for(var c=0;c=0;f--){var h=r.ranges[f],d=h.from(),g=h.to();h.empty()&&(n&&n>0?d=it(d.line,d.ch-n):e.state.overwrite&&!a?g=it(g.line,Math.min(Ze(i,g.line).text.length,g.ch+J(s).length)):a&&Pa&&Pa.lineWise&&Pa.text.join("\n")==s.join("\n")&&(d=g=it(d.line,0)));var p={from:d,to:g,text:l?l[f%l.length]:s,origin:A||(a?"paste":e.state.cutIncoming>o?"cut":"+input")};Zi(e.doc,p),Fn(e,"inputRead",e,p)}t&&!a&&Va(e,t),aA(e),e.curOp.updateInput<2&&(e.curOp.updateInput=u),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Xa(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||SA(t,(function(){return $a(t,n,0,null,"paste")})),!0}function Va(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var A=n.ranges[r];if(!(A.head.ch>100||r&&n.ranges[r-1].head.line==A.head.line)){var i=e.getModeAt(A.head),o=!1;if(i.electricChars){for(var a=0;a-1){o=Ra(e,A.head.line,"smart");break}}else i.electricInput&&i.electricInput.test(Ze(e.doc,A.head.line).text.slice(0,A.head.ch))&&(o=Ra(e,A.head.line,"smart"));o&&Fn(e,"electricInput",e,A.head.line)}}}function ja(e){for(var t=[],n=[],r=0;rn&&(Ra(this,A.head.line,e,!0),n=A.head.line,r==this.doc.sel.primIndex&&aA(this));else{var i=A.from(),o=A.to(),a=Math.max(n,i.line);n=Math.min(this.lastLine(),o.line-(o.ch?0:1))+1;for(var s=a;s0&&Di(this.doc,r,new ii(i,l[r].to()),$)}}})),getTokenAt:function(e,t){return Qt(this,e,t)},getLineTokens:function(e,t){return Qt(this,it(e),t,!0)},getTokenTypeAt:function(e){e=ft(this.doc,e);var t,n=vt(this,Ze(this.doc,e.line)),r=0,A=(n.length-1)/2,i=e.ch;if(0==i)t=n[2];else for(;;){var o=r+A>>1;if((o?n[2*o-1]:0)>=i)A=o;else{if(!(n[2*o+1]i&&(e=i,A=!0),r=Ze(this.doc,e)}else r=e;return pr(this,r,{top:0,left:0},t||"page",n||A).top+(A?this.doc.height-on(r):0)},defaultTextHeight:function(){return Fr(this.display)},defaultCharWidth:function(){return Ur(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,A){var i=this.display,o=(e=yr(this,ft(this.doc,e))).bottom,a=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),i.sizer.appendChild(t),"over"==r)o=e.top;else if("above"==r||"near"==r){var s=Math.max(i.wrapper.clientHeight,this.doc.height),l=Math.max(i.sizer.clientWidth,i.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>s)&&e.top>t.offsetHeight?o=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=s&&(o=e.bottom),a+t.offsetWidth>l&&(a=l-t.offsetWidth)}t.style.top=o+"px",t.style.left=t.style.right="","right"==A?(a=i.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==A?a=0:"middle"==A&&(a=(i.sizer.clientWidth-t.offsetWidth)/2),t.style.left=a+"px"),n&&AA(this,{left:a,top:o,right:a+t.offsetWidth,bottom:o+t.offsetHeight})},triggerOnKeyDown:HA(la),triggerOnKeyPress:HA(fa),triggerOnKeyUp:ua,triggerOnMouseDown:HA(va),execCommand:function(e){if(Zo.hasOwnProperty(e))return Zo[e].call(null,this)},triggerElectric:HA((function(e){Va(this,e)})),findPosH:function(e,t,n,r){var A=1;t<0&&(A=-1,t=-t);for(var i=ft(this.doc,e),o=0;o0&&o(t.charAt(n-1));)--n;for(;r.5||this.options.lineWrapping)&&Ir(this),me(this,"refresh",this)})),swapDoc:HA((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),vi(this,e),fr(this),this.display.input.reset(),sA(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Fn(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}},Be(e),e.registerHelper=function(t,r,A){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=A},e.registerGlobalHelper=function(t,r,A,i){e.registerHelper(t,r,i),n[t]._global.push({pred:A,val:i})}}function za(e,t,n,r,A){var i=t,o=n,a=Ze(e,t.line),s=A&&"rtl"==e.direction?-n:n;function l(){var n=t.line+s;return!(n=e.first+e.size)&&(t=new it(n,t.ch,t.sticky),a=Ze(e,n))}function c(i){var o;if("codepoint"==r){var c=a.text.charCodeAt(t.ch+(r>0?0:-1));o=isNaN(c)?null:new it(t.line,Math.max(0,Math.min(a.text.length,t.ch+n*(c>=55296&&c<56320?2:1))),-n)}else o=A?zo(e.cm,a,t,n):Wo(a,t,n);if(null==o){if(i||!l())return!1;t=Jo(A,e.cm,a,t.line,s)}else t=o;return!0}if("char"==r||"codepoint"==r)c();else if("column"==r)c(!0);else if("word"==r||"group"==r)for(var u=null,f="group"==r,h=e.cm&&e.cm.getHelper(t,"wordChars"),d=!0;!(n<0)||c(!d);d=!1){var g=a.text.charAt(t.ch)||"\n",p=ne(g,h)?"w":f&&"\n"==g?"n":!f||/\s/.test(g)?null:"p";if(!f||d||p||(p="s"),u&&u!=p){n<0&&(n=1,c(),t.sticky="after");break}if(p&&(u=p),n>0&&!c(!d))break}var m=Gi(e,t,i,o,!0);return at(i,m)&&(m.hitSide=!0),m}function Za(e,t,n,r){var A,i,o=e.doc,a=t.left;if("page"==r){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),l=Math.max(s-.5*Fr(e.display),3);A=(n>0?t.bottom:t.top)+n*l}else"line"==r&&(A=n>0?t.bottom+3:t.top-3);for(;(i=br(e,a,A)).outside;){if(n<0?A<=0:A>=o.height){i.hitSide=!0;break}A+=5*n}return i}var qa=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new N,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Ya(e,t){var n=tr(e,t.line);if(!n||n.hidden)return null;var r=Ze(e.doc,t.line),A=qn(n,r,t.line),i=fe(r,e.doc.direction),o="left";i&&(o=ce(i,t.ch)%2?"right":"left");var a=or(A.map,t.ch,o);return a.offset="right"==a.collapse?a.end:a.start,a}function es(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function ts(e,t){return t&&(e.bad=!0),e}function ns(e,t,n,r,A){var i="",o=!1,a=e.doc.lineSeparator(),s=!1;function l(e){return function(t){return t.id==e}}function c(){o&&(i+=a,s&&(i+=a),o=s=!1)}function u(e){e&&(c(),i+=e)}function f(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void u(n);var i,h=t.getAttribute("cm-marker");if(h){var d=e.findMarks(it(r,0),it(A+1,0),l(+h));return void(d.length&&(i=d[0].find(0))&&u(qe(e.doc,i.from,i.to).join(a)))}if("false"==t.getAttribute("contenteditable"))return;var g=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;g&&c();for(var p=0;p=t.display.viewTo||i.line=t.display.viewFrom&&Ya(t,A)||{node:s[0].measure.map[2],offset:0},c=i.liner.firstLine()&&(o=it(o.line-1,Ze(r.doc,o.line-1).length)),a.ch==Ze(r.doc,a.line).text.length&&a.lineA.viewTo-1)return!1;o.line==A.viewFrom||0==(e=_r(r,o.line))?(t=tt(A.view[0].line),n=A.view[0].node):(t=tt(A.view[e].line),n=A.view[e-1].node.nextSibling);var s,l,c=_r(r,a.line);if(c==A.view.length-1?(s=A.viewTo-1,l=A.lineDiv.lastChild):(s=tt(A.view[c+1].line)-1,l=A.view[c+1].node.previousSibling),!n)return!1;for(var u=r.doc.splitLines(ns(r,n,l,t,s)),f=qe(r.doc,it(t,0),it(s,Ze(r.doc,s).text.length));u.length>1&&f.length>1;)if(J(u)==J(f))u.pop(),f.pop(),s--;else{if(u[0]!=f[0])break;u.shift(),f.shift(),t++}for(var h=0,d=0,g=u[0],p=f[0],m=Math.min(g.length,p.length);ho.ch&&v.charCodeAt(v.length-d-1)==y.charCodeAt(y.length-d-1);)h--,d++;u[u.length-1]=v.slice(0,v.length-d).replace(/^\u200b+/,""),u[0]=u[0].slice(h).replace(/\u200b+$/,"");var B=it(t,h),b=it(s,f.length?J(f).length-d:0);return u.length>1||u[0]||ot(B,b)?(ro(r.doc,u,B,b,"+input"),!0):void 0},qa.prototype.ensurePolled=function(){this.forceCompositionEnd()},qa.prototype.reset=function(){this.forceCompositionEnd()},qa.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},qa.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))},qa.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||SA(this.cm,(function(){return Dr(e.cm)}))},qa.prototype.setUneditable=function(e){e.contentEditable="false"},qa.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||LA(this.cm,$a)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},qa.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},qa.prototype.onContextMenu=function(){},qa.prototype.resetPosition=function(){},qa.prototype.needsContentAttribute=!0;var is=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new N,this.hasSelection=!1,this.composing=null};function os(e,t){if((t=t?D(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=L();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=a.getValue()}var A;if(e.form&&(de(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var i=e.form;A=i.submit;try{var o=i.submit=function(){r(),i.submit=A,i.submit(),i.submit=o}}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&&(pe(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=A))}},e.style.display="none";var a=Da((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return a}function as(e){e.off=pe,e.on=de,e.wheelEventPixels=ni,e.Doc=Co,e.splitLines=Ie,e.countColumn=O,e.findColumn=j,e.isWordChar=te,e.Pass=K,e.signal=me,e.Line=ln,e.changeEnd=si,e.scrollbarModel=wA,e.Pos=it,e.cmpPos=ot,e.modes=Ne,e.mimeModes=Re,e.resolveMode=$e,e.getMode=Xe,e.modeExtensions=Ve,e.extendMode=je,e.copyState=Ge,e.startState=Je,e.innerMode=We,e.commands=Zo,e.keyMap=Oo,e.keyName=Xo,e.isModifierKey=Ko,e.lookupKey=Po,e.normalizeKeyMap=Ro,e.StringStream=ze,e.SharedTextMarker=mo,e.TextMarker=go,e.LineWidget=co,e.e_preventDefault=be,e.e_stopPropagation=Ce,e.e_stop=ke,e.addClass=H,e.contains=S,e.rmClass=T,e.keyNames=Io}is.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var A=this.textarea;function i(e){if(!ve(r,e)){if(r.somethingSelected())Ka({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=ja(r);Ka({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,$):(n.prevInput="",A.value=t.text.join("\n"),M(A))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(A.style.width="0px"),de(A,"input",(function(){o&&a>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),de(A,"paste",(function(e){ve(r,e)||Xa(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),de(A,"cut",i),de(A,"copy",i),de(e.scroller,"paste",(function(t){if(!Xn(e,t)&&!ve(r,t)){if(!A.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var i=new Event("paste");i.clipboardData=t.clipboardData,A.dispatchEvent(i)}})),de(e.lineSpace,"selectstart",(function(t){Xn(e,t)||be(t)})),de(A,"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(A,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},is.prototype.createField=function(e){this.wrapper=Wa(),this.textarea=this.wrapper.firstChild},is.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},is.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Xr(e);if(e.options.moveInputWithCursor){var A=yr(e,n.sel.primary().head,"div"),i=t.wrapper.getBoundingClientRect(),o=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,A.top+o.top-i.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,A.left+o.left-i.left))}return r},is.prototype.showSelection=function(e){var t=this.cm.display;E(t.cursorDiv,e.cursors),E(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},is.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&M(this.textarea),o&&a>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",o&&a>=9&&(this.hasSelection=null))}},is.prototype.getField=function(){return this.textarea},is.prototype.supportsTouch=function(){return!1},is.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!m||L()!=this.textarea))try{this.textarea.focus()}catch(e){}},is.prototype.blur=function(){this.textarea.blur()},is.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},is.prototype.receivedFocus=function(){this.slowPoll()},is.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},is.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)},is.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Me(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var A=n.value;if(A==r&&!t.somethingSelected())return!1;if(o&&a>=9&&this.hasSelection===A||v&&/[\uf700-\uf7ff]/.test(A))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var i=A.charCodeAt(0);if(8203!=i||r||(r="​"),8666==i)return this.reset(),this.cm.execCommand("undo")}for(var s=0,l=Math.min(r.length,A.length);s1e3||A.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=A,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},is.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},is.prototype.onKeyPress=function(){o&&a>=9&&(this.hasSelection=null),this.fastPoll()},is.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,A=t.textarea;t.contextMenuPending&&t.contextMenuPending();var i=Mr(n,e),l=r.scroller.scrollTop;if(i&&!u){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(i)&&LA(n,Pi)(n.doc,ai(i),$);var c,f=A.style.cssText,h=t.wrapper.style.cssText,d=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",A.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: "+(o?"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()||(A.value=t.prevInput=" "),t.contextMenuPending=m,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),o&&a>=9&&p(),C){ke(e);var g=function(){pe(window,"mouseup",g),setTimeout(m,20)};de(window,"mouseup",g)}else setTimeout(m,50)}function p(){if(null!=A.selectionStart){var e=n.somethingSelected(),i="​"+(e?A.value:"");A.value="⇚",A.value=i,t.prevInput=e?"":"​",A.selectionStart=1,A.selectionEnd=i.length,r.selForContextMenu=n.doc.sel}}function m(){if(t.contextMenuPending==m&&(t.contextMenuPending=!1,t.wrapper.style.cssText=h,A.style.cssText=f,o&&a<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=l),null!=A.selectionStart)){(!o||o&&a<9)&&p();var e=0,i=function(){r.selForContextMenu==n.doc.sel&&0==A.selectionStart&&A.selectionEnd>0&&"​"==t.prevInput?LA(n,Ji)(n):e++<10?r.detectingSelectAll=setTimeout(i,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(i,200)}}},is.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},is.prototype.setUneditable=function(){},is.prototype.needsContentAttribute=!1,Ia(Da),Ja(Da);var ss="iter insert remove copy getEditor constructor".split(" ");for(var ls in Co.prototype)Co.prototype.hasOwnProperty(ls)&&R(ss,ls)<0&&(Da.prototype[ls]=function(e){return function(){return e.apply(this.doc,arguments)}}(Co.prototype[ls]));return Be(Co),Da.inputStyles={textarea:is,contenteditable:qa},Da.defineMode=function(e){Da.defaults.mode||"null"==e||(Da.defaults.mode=e),Pe.apply(this,arguments)},Da.defineMIME=Ke,Da.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Da.defineMIME("text/plain","null"),Da.defineExtension=function(e,t){Da.prototype[e]=t},Da.defineDocExtension=function(e,t){Co.prototype[e]=t},Da.fromTextArea=os,as(Da),Da.version="5.58.2",Da}()}));r((function(e,t){var n,r,A;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},A={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1},(n=tc).defineMode("xml",(function(e,t){var i,o,a=e.indentUnit,s={},l=t.htmlMode?r:A;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(g(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=d("meta","?>"),"meta"):(i=e.eat("/")?"closeTag":"openTag",t.tokenize=f,"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 f(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=u,i=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return i="equals",null;if("<"==n){t.tokenize=u,t.state=y,t.tagName=t.tagStart=null;var r=t.tokenize(e,t);return r?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=h(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function h(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=f;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 g(e){return function(t,n){for(var r;null!=(r=t.next());){if("<"==r)return n.tokenize=g(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=u;break}return n.tokenize=g(e-1),n.tokenize(t,n)}}return"meta"}}function p(e,t,n){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=n,(s.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function m(e){e.context&&(e.context=e.context.prev)}function v(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!s.contextGrabbers.hasOwnProperty(n)||!s.contextGrabbers[n].hasOwnProperty(t))return;m(e)}}function y(e,t,n){return"openTag"==e?(n.tagStart=t.column(),w):"closeTag"==e?B:y}function w(e,t,n){return"word"==e?(n.tagName=t.current(),o="tag",Q):s.allowMissingTagName&&"endTag"==e?(o="tag bracket",Q(e,t,n)):(o="error",w)}function B(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?(o="tag",b):(o="tag error",C)}return s.allowMissingTagName&&"endTag"==e?(o="tag bracket",b(e,t,n)):(o="error",C)}function b(e,t,n){return"endTag"!=e?(o="error",b):(m(n),y)}function C(e,t,n){return o="error",b(e,t,n)}function Q(e,t,n){if("word"==e)return o="attribute",k;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,A=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||s.autoSelfClosers.hasOwnProperty(r)?v(n,r):(v(n,r),n.context=new p(n,r,A==n.indented)),y}return o="error",Q}function k(e,t,n){return"equals"==e?T:(s.allowMissing||(o="error"),Q(e,t,n))}function T(e,t,n){return"string"==e?x:"word"==e&&s.allowUnquoted?(o="string",Q):(o="error",Q(e,t,n))}function x(e,t,n){return"string"==e?x:Q(e,t,n)}return u.isInText=!0,{startState:function(e){var t={tokenize:u,state:y,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;i=null;var n=t.tokenize(e,t);return(n||i)&&"comment"!=n&&(o=null,t.state=t.state(i||n,e,t),o&&(n="error"==o?n+" error":o)),n},indent:function(e,t,r){var A=e.context;if(e.tokenize.isInAttribute)return e.tagStart==e.indented?e.stringStartCol+1:e.indented+a;if(A&&A.noIndent)return n.Pass;if(e.tokenize!=f&&e.tokenize!=u)return r?r.match(/^(\s*)/)[0].length:0;if(e.tagName)return!1!==s.multilineTagIndentPastTag?e.tagStart+e.tagName.length+2:e.tagStart+a*(s.multilineTagIndentFactor||1);if(s.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:s.htmlMode?"html":"xml",helperType:s.htmlMode?"html":"xml",skipAttribute:function(e){e.state==T&&(e.state=Q)},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(A+1,t.length);if(i)return e.findModeByExtension(i)},e.findModeByName=function(t){t=t.toLowerCase();for(var n=0;n` "'(~:]+/,d=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,g=/^\s*\[[^\]]+?\]:.*$/,p=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,m=" ";function v(e,t,n){return t.f=t.inline=n,n(e,t)}function y(e,t,n){return t.f=t.block=n,n(e,t)}function w(e){return!e||!/\S/.test(e.string)}function B(e){if(e.linkTitle=!1,e.linkHref=!1,e.linkText=!1,e.em=!1,e.strong=!1,e.strikethrough=!1,e.quote=0,e.indentedCode=!1,e.f==C){var t=A;if(!t){var i=n.innerMode(r,e.htmlState);t="xml"==i.mode.name&&null===i.state.tagStart&&!i.state.context&&i.state.tokenize.isInText}t&&(e.f=x,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 A=e.column()===r.indentation,a=w(r.prevLine.stream),h=r.indentedCode,p=r.prevLine.hr,m=!1!==r.list,y=(r.listStack[r.listStack.length-1]||0)+3;r.indentedCode=!1;var B=r.indentation;if(null===r.indentationDiff&&(r.indentationDiff=r.indentation,m)){for(r.list=null;B=4&&(h||r.prevLine.fencedCodeEnd||r.prevLine.header||a))return e.skipToEnd(),r.indentedCode=!0,o.code;if(e.eatSpace())return null;if(A&&r.indentation<=y&&(T=e.match(u))&&T[1].length<=6)return r.quote=0,r.header=T[1].length,r.thisLine.header=!0,t.highlightFormatting&&(r.formatting="header"),r.f=r.inline,k(r);if(r.indentation<=y&&e.eat(">"))return r.quote=A?1:r.quote+1,t.highlightFormatting&&(r.formatting="quote"),e.eatSpace(),k(r);if(!C&&!r.setext&&A&&r.indentation<=y&&(T=e.match(l))){var x=T[1]?"ol":"ul";return r.indentation=B+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-"+x]),k(r)}return A&&r.indentation<=y&&(T=e.match(d,!0))?(r.quote=0,r.fencedEndRE=new RegExp(T[1]+"+ *$"),r.localMode=t.fencedCodeBlockHighlighting&&i(T[2]||t.fencedCodeBlockDefaultMode),r.localMode&&(r.localState=n.startState(r.localMode)),r.f=r.block=Q,t.highlightFormatting&&(r.formatting="code-block"),r.code=-1,k(r)):r.setext||!(b&&m||r.quote||!1!==r.list||r.code||C||g.test(e.string))&&(T=e.lookAhead(1))&&(T=T.match(f))?(r.setext?(r.header=r.setext,r.setext=0,e.skipToEnd(),t.highlightFormatting&&(r.formatting="header")):(r.header="="==T[0].charAt(0)?1:2,r.setext=r.header),r.thisLine.header=!0,r.f=r.inline,k(r)):C?(e.skipToEnd(),r.hr=!0,r.thisLine.hr=!0,o.hr):"["===e.peek()?v(e,r,L):v(e,r,r.inline)}function C(e,t){var i=r.token(e,t.htmlState);if(!A){var o=n.innerMode(r,t.htmlState);("xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText||t.md_inside&&e.current().indexOf(">")>-1)&&(t.f=x,t.block=b,t.htmlState=null)}return i}function Q(e,n){var r,A=n.listStack[n.listStack.length-1]||0,i=n.indentation=e.quote?n.push(o.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(o.linkHref,"url"):(e.strong&&n.push(o.strong),e.em&&n.push(o.em),e.strikethrough&&n.push(o.strikethrough),e.emoji&&n.push(o.emoji),e.linkText&&n.push(o.linkText),e.code&&n.push(o.code),e.image&&n.push(o.image),e.imageAltText&&n.push(o.imageAltText,"link"),e.imageMarker&&n.push(o.imageMarker)),e.header&&n.push(o.header,o.header+"-"+e.header),e.quote&&(n.push(o.quote),!t.maxBlockquoteDepth||t.maxBlockquoteDepth>=e.quote?n.push(o.quote+"-"+e.quote):n.push(o.quote+"-"+t.maxBlockquoteDepth)),!1!==e.list){var A=(e.listStack.length-1)%3;A?1===A?n.push(o.list2):n.push(o.list3):n.push(o.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 T(e,t){if(e.match(h,!0))return k(t)}function x(e,A){var i=A.text(e,A);if(void 0!==i)return i;if(A.list)return A.list=null,k(A);if(A.taskList)return" "===e.match(c,!0)[1]?A.taskOpen=!0:A.taskClosed=!0,t.highlightFormatting&&(A.formatting="task"),A.taskList=!1,k(A);if(A.taskOpen=!1,A.taskClosed=!1,A.header&&e.match(/^#+$/,!0))return t.highlightFormatting&&(A.formatting="header"),k(A);var a=e.next();if(A.linkTitle){A.linkTitle=!1;var s=a;"("===a&&(s=")");var l="^\\s*(?:[^"+(s=(s+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1"))+"\\\\]+|\\\\\\\\|\\\\.)"+s;if(e.match(new RegExp(l),!0))return o.linkHref}if("`"===a){var u=A.formatting;t.highlightFormatting&&(A.formatting="code"),e.eatWhile("`");var f=e.current().length;if(0!=A.code||A.quote&&1!=f){if(f==A.code){var h=k(A);return A.code=0,h}return A.formatting=u,k(A)}return A.code=f,k(A)}if(A.code)return k(A);if("\\"===a&&(e.next(),t.highlightFormatting)){var d=k(A),g=o.formatting+"-escape";return d?d+" "+g:g}if("!"===a&&e.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return A.imageMarker=!0,A.image=!0,t.highlightFormatting&&(A.formatting="image"),k(A);if("["===a&&A.imageMarker&&e.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return A.imageMarker=!1,A.imageAltText=!0,t.highlightFormatting&&(A.formatting="image"),k(A);if("]"===a&&A.imageAltText){t.highlightFormatting&&(A.formatting="image");var d=k(A);return A.imageAltText=!1,A.image=!1,A.inline=A.f=F,d}if("["===a&&!A.image)return A.linkText&&e.match(/^.*?\]/)||(A.linkText=!0,t.highlightFormatting&&(A.formatting="link")),k(A);if("]"===a&&A.linkText){t.highlightFormatting&&(A.formatting="link");var d=k(A);return A.linkText=!1,A.inline=A.f=e.match(/\(.*?\)| ?\[.*?\]/,!1)?F:x,d}if("<"===a&&e.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return A.f=A.inline=E,t.highlightFormatting&&(A.formatting="link"),(d=k(A))?d+=" ":d="",d+o.linkInline;if("<"===a&&e.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return A.f=A.inline=E,t.highlightFormatting&&(A.formatting="link"),(d=k(A))?d+=" ":d="",d+o.linkEmail;if(t.xml&&"<"===a&&e.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var m=e.string.indexOf(">",e.pos);if(-1!=m){var v=e.string.substring(e.start,m);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(v)&&(A.md_inside=!0)}return e.backUp(1),A.htmlState=n.startState(r),y(e,A,C)}if(t.xml&&"<"===a&&e.match(/^\/\w*?>/))return A.md_inside=!1,"tag";if("*"===a||"_"===a){for(var w=1,B=1==e.pos?" ":e.string.charAt(e.pos-2);w<3&&e.eat(a);)w++;var b=e.peek()||" ",Q=!/\s/.test(b)&&(!p.test(b)||/\s/.test(B)||p.test(B)),T=!/\s/.test(B)&&(!p.test(B)||/\s/.test(b)||p.test(b)),U=null,S=null;if(w%2&&(A.em||!Q||"*"!==a&&T&&!p.test(B)?A.em!=a||!T||"*"!==a&&Q&&!p.test(b)||(U=!1):U=!0),w>1&&(A.strong||!Q||"*"!==a&&T&&!p.test(B)?A.strong!=a||!T||"*"!==a&&Q&&!p.test(b)||(S=!1):S=!0),null!=S||null!=U)return t.highlightFormatting&&(A.formatting=null==U?"strong":null==S?"em":"strong em"),!0===U&&(A.em=a),!0===S&&(A.strong=a),h=k(A),!1===U&&(A.em=!1),!1===S&&(A.strong=!1),h}else if(" "===a&&(e.eat("*")||e.eat("_"))){if(" "===e.peek())return k(A);e.backUp(1)}if(t.strikethrough)if("~"===a&&e.eatWhile(a)){if(A.strikethrough)return t.highlightFormatting&&(A.formatting="strikethrough"),h=k(A),A.strikethrough=!1,h;if(e.match(/^[^\s]/,!1))return A.strikethrough=!0,t.highlightFormatting&&(A.formatting="strikethrough"),k(A)}else if(" "===a&&e.match(/^~~/,!0)){if(" "===e.peek())return k(A);e.backUp(2)}if(t.emoji&&":"===a&&e.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){A.emoji=!0,t.highlightFormatting&&(A.formatting="emoji");var L=k(A);return A.emoji=!1,L}return" "===a&&(e.match(/^ +$/,!1)?A.trailingSpace++:A.trailingSpace&&(A.trailingSpaceNewLine=!0)),k(A)}function E(e,n){if(">"===e.next()){n.f=n.inline=x,t.highlightFormatting&&(n.formatting="link");var r=k(n);return r?r+=" ":r="",r+o.linkInline}return e.match(/^[^>]+/,!0),o.linkInline}function F(e,n){if(e.eatSpace())return null;var r=e.next();return"("===r||"["===r?(n.f=n.inline=S("("===r?")":"]"),t.highlightFormatting&&(n.formatting="link-string"),n.linkHref=!0,k(n)):"error"}var U={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function S(e){return function(n,r){if(n.next()===e){r.f=r.inline=x,t.highlightFormatting&&(r.formatting="link-string");var A=k(r);return r.linkHref=!1,A}return n.match(U[e]),r.linkHref=!0,k(r)}}function L(e,n){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(n.f=H,e.next(),t.highlightFormatting&&(n.formatting="link"),n.linkText=!0,k(n)):v(e,n,x)}function H(e,n){if(e.match(/^\]:/,!0)){n.f=n.inline=I,t.highlightFormatting&&(n.formatting="link");var r=k(n);return n.linkText=!1,r}return e.match(/^([^\]\\]|\\.)+/,!0),o.linkText}function I(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=x,o.linkHref+" url")}var M={startState:function(){return{f:b,prevLine:{stream:null},thisLine:{stream:null},block:b,htmlState:null,indentation:0,inline:x,text:T,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 B(t),null;if(t.prevLine=t.thisLine,t.thisLine={stream:e},t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,!t.localState&&(t.f=t.block,t.f!=C)){var n=e.match(/^\s*/,!0)[0].replace(/\t/g,m).length;if(t.indentation=n,t.indentationDiff=null,n>0)return null}}return t.f(e,t)},innerMode:function(e){return e.block==C?{state:e.htmlState,mode:r}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:M}},indent:function(e,t,A){return e.block==C&&r.indent?r.indent(e.htmlState,t,A):e.localState&&e.localMode.indent?e.localMode.indent(e.localState,t,A):n.Pass},blankLine:B,getType:k,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return M}),"xml"),n.defineMIME("text/markdown","markdown"),n.defineMIME("text/x-markdown","markdown")})),r((function(e,t){var n;(n=tc).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,A){return(n!=A.streamSeen||Math.min(A.basePos,A.overlayPos)]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i,(n=tc).defineMode("gfm",(function(e,t){var A=0;function i(e){return e.code=!1,null}var o={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 i=e.pos;e.eatWhile("`");var o=1+e.pos-i;return n.code?o===A&&(n.code=!1):(A=o,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:i},a={taskLists:!0,strikethrough:!0,emoji:!0};for(var s in t)a[s]=t[s];return a.name="markdown",n.overlayMode(n.getMode(e,a),o)}),"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 A(e,n){var r=n.line,A=0,i=0,o=t.exec(e.getLine(r)),a=o[1];do{var s=r+(A+=1),l=e.getLine(s),c=t.exec(l);if(c){var u=c[1],f=parseInt(o[3],10)+A-i,h=parseInt(c[3],10),d=h;if(a!==u||isNaN(h)){if(a.length>u.length)return;if(a.lengthh&&(d=f+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(i){if(i.getOption("disableInput"))return e.Pass;for(var o=i.listSelections(),a=[],s=0;s\s*$/.test(d),v=!/>\s*$/.test(d);(m||v)&&i.replaceRange("",{line:l.line,ch:0},{line:l.line,ch:l.ch+1}),a[s]="\n"}else{var y=g[1],w=g[5],B=!(r.test(g[2])||g[2].indexOf(">")>=0),b=B?parseInt(g[3],10)+1+g[4]:g[2].replace("x"," ");a[s]="\n"+y+b+w,B&&A(i,l)}}i.replaceSelections(a)}}(tc)}));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",A=new RegExp("<(/?)(["+r+"]["+r+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*)","g");function i(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 o(e,n){var r=e.cm.getTokenTypeAt(t(e.line,n));return r&&/\btag\b/.test(r)}function a(e){if(!(e.line>=e.max))return e.ch=0,e.text=e.cm.getLine(++e.line),!0}function s(e){if(!(e.line<=e.min))return e.text=e.cm.getLine(--e.line),e.ch=e.text.length,!0}function l(e){for(;;){var t=e.text.indexOf(">",e.ch);if(-1==t){if(a(e))continue;return}if(o(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(o(e,t+1)){A.lastIndex=t,e.ch=t;var n=A.exec(e.text);if(n&&n.index==t)return n}else e.ch=t}}function u(e){for(;;){A.lastIndex=e.ch;var t=A.exec(e.text);if(!t){if(a(e))continue;return}if(o(e,t.index+1))return e.ch=t.index+t[0].length,t;e.ch=t.index+1}}function f(e){for(;;){var t=e.ch?e.text.lastIndexOf(">",e.ch-1):-1;if(-1==t){if(s(e))continue;return}if(o(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 h(e,n){for(var r=[];;){var A,i=u(e),o=e.line,a=e.ch-(i?i[0].length:0);if(!i||!(A=l(e)))return;if("selfClose"!=A)if(i[1]){for(var s=r.length-1;s>=0;--s)if(r[s]==i[2]){r.length=s;break}if(s<0&&(!n||n==i[2]))return{tag:i[2],from:t(o,a),to:t(e.line,e.ch)}}else r.push(i[2])}}function d(e,n){for(var r=[];;){var A=f(e);if(!A)return;if("selfClose"!=A){var i=e.line,o=e.ch,a=c(e);if(!a)return;if(a[1])r.push(a[2]);else{for(var s=r.length-1;s>=0;--s)if(r[s]==a[2]){r.length=s;break}if(s<0&&(!n||n==a[2]))return{tag:a[2],from:t(e.line,e.ch),to:t(i,o)}}}else c(e)}}e.registerHelper("fold","xml",(function(e,r){for(var A=new i(e,r.line,0);;){var o=u(A);if(!o||A.line!=r.line)return;var a=l(A);if(!a)return;if(!o[1]&&"selfClose"!=a){var s=t(A.line,A.ch),c=h(A,o[2]);return c&&n(c.from,s)>0?{from:s,to:c.from}:null}}})),e.findMatchingTag=function(e,r,A){var o=new i(e,r.line,r.ch,A);if(-1!=o.text.indexOf(">")||-1!=o.text.indexOf("<")){var a=l(o),s=a&&t(o.line,o.ch),u=a&&c(o);if(a&&u&&!(n(o,r)>0)){var f={from:t(o.line,o.ch),to:s,tag:u[2]};return"selfClose"==a?{open:f,close:null,at:"open"}:u[1]?{open:d(o,u[2]),close:f,at:"close"}:{open:f,close:h(o=new i(e,s.line,s.ch,A),u[2]),at:"open"}}}},e.findEnclosingTag=function(e,t,n,r){for(var A=new i(e,t.line,t.ch,n);;){var o=d(A,r);if(!o)break;var a=h(new i(e,t.line,t.ch,n),o.tag);if(a)return{open:o,close:a}}},e.scanForClosingTag=function(e,t,n,r){return h(new i(e,t.line,t.ch,r?{from:0,to:r}:null),n)}}(tc)}));r((function(e,t){!function(e){e.defineOption("autoCloseTags",!1,(function(t,n,A){if(A!=e.Init&&A&&t.removeKeyMap("autoCloseTags"),n){var o={name:"autoCloseTags"};"object"==typeof n&&!1===n.whenClosing||(o["'/'"]=function(e){return i(e)}),"object"==typeof n&&!1===n.whenOpening||(o["'>'"]=function(e){return r(e)}),t.addKeyMap(o)}}));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 A=r.listSelections(),i=[],s=r.getOption("autoCloseTags"),l=0;lc.ch&&(g=g.slice(0,g.length-u.end+c.ch));var y=g.toLowerCase();if(!g||"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&&o(m,y)>-1||a(r,f.mode.xmlCurrentContext&&f.mode.xmlCurrentContext(h)||[],g,c,!0))return e.Pass;var w="object"==typeof s&&s.emptyTags;if(w&&o(w,g)>-1)i[l]={text:"/>",newPos:e.Pos(c.line,c.ch+2)};else{var B=v&&o(v,y)>-1;i[l]={indent:B,text:">"+(B?"\n\n":"")+"",newPos:B?e.Pos(c.line+1,0):e.Pos(c.line,c.ch+1)}}}var b="object"==typeof s&&s.dontIndentOnAutoClose;for(l=A.length-1;l>=0;l--){var C=i[l];r.replaceRange(C.text,A[l].head,A[l].anchor,"+insert");var Q=r.listSelections().slice(0);Q[l]={head:C.newPos,anchor:C.newPos},r.setSelections(Q),!b&&C.indent&&(r.indentLine(C.newPos.line,null,!0),r.indentLine(C.newPos.line+1,null,!0))}}function A(t,n){for(var r=t.listSelections(),A=[],i=n?"/":""!=t.getLine(c.line).charAt(u.end)&&(d+=">"),A[l]=d}if(t.replaceSelections(A),r=t.listSelections(),!s)for(l=0;l=0&&n[l]==r;l--)++s;for(A=a.to,l=1;lc);u++){var f=e.getLine(l++);A=null==A?f:A+"\n"+f}s*=2,t.lastIndex=n.ch;var h=t.exec(A);if(h){var d=A.slice(0,h.index).split("\n"),g=h[0].split("\n"),p=n.line+d.length-1,m=d[d.length-1].length;return{from:r(p,m),to:r(p+g.length-1,1==g.length?m+g[0].length:g[g.length-1].length),match:h}}}}function l(e,t,n){for(var r,A=0;A<=e.length;){t.lastIndex=A;var i=t.exec(e);if(!i)break;var o=i.index+i[0].length;if(o>e.length-n)break;(!r||o>r.index+r[0].length)&&(r=i),A=i.index+1}return r}function c(e,t,n){t=i(t,"g");for(var A=n.line,o=n.ch,a=e.firstLine();A>=a;A--,o=-1){var s=e.getLine(A),c=l(s,t,o<0?0:s.length-o);if(c)return{from:r(A,c.index),to:r(A,c.index+c[0].length),match:c}}}function u(e,t,n){if(!o(t))return c(e,t,n);t=i(t,"gm");for(var A,a=1,s=e.getLine(n.line).length-n.ch,u=n.line,f=e.firstLine();u>=f;){for(var h=0;h=f;h++){var d=e.getLine(u--);A=null==A?d:d+"\n"+A}a*=2;var g=l(A,t,s);if(g){var p=A.slice(0,g.index).split("\n"),m=g[0].split("\n"),v=u+p.length,y=p[p.length-1].length;return{from:r(v,y),to:r(v+m.length-1,1==m.length?y+m[0].length:m[m.length-1].length),match:g}}}}function f(e,t,n,r){if(e.length==t.length)return n;for(var A=0,i=n+Math.max(0,e.length-t.length);;){if(A==i)return A;var o=A+i>>1,a=r(e.slice(0,o)).length;if(a==n)return o;a>n?i=o:A=o+1}}function h(e,A,i,o){if(!A.length)return null;var a=o?t:n,s=a(A).split(/\r|\n\r?/);e:for(var l=i.line,c=i.ch,u=e.lastLine()+1-s.length;l<=u;l++,c=0){var h=e.getLine(l).slice(c),d=a(h);if(1==s.length){var g=d.indexOf(s[0]);if(-1==g)continue e;return i=f(h,d,g,a)+c,{from:r(l,f(h,d,g,a)+c),to:r(l,f(h,d,g+s[0].length,a)+c)}}var p=d.length-s[0].length;if(d.slice(p)==s[0]){for(var m=1;m=u;l--,c=-1){var h=e.getLine(l);c>-1&&(h=h.slice(0,c));var d=a(h);if(1==s.length){var g=d.lastIndexOf(s[0]);if(-1==g)continue e;return{from:r(l,f(h,d,g,a)),to:r(l,f(h,d,g+s[0].length,a))}}var p=s[s.length-1];if(d.slice(0,p.length)==p){var m=1;for(i=l-s.length+1;m0);)r.push({anchor:A.from(),head:A.to()});r.length&&this.setSelections(r,0)}))}(tc)}));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,A=e.getInputField();"TEXTAREA"==A.nodeName?r=!A.value:1==e.lineCount()&&(r=!/[^\u200b]/.test(A.querySelector(".CodeMirror-line").textContent)),r?n(e):t(e)}),20)}function A(e){o(e)&&n(e)}function i(e){var r=e.getWrapperElement(),A=o(e);r.className=r.className.replace(" CodeMirror-empty","")+(A?" CodeMirror-empty":""),A?n(e):t(e)}function o(e){return 1===e.lineCount()&&""===e.getLine(0)}e.defineOption("placeholder","",(function(n,o,a){var s=a&&a!=e.Init;if(o&&!s)n.on("blur",A),n.on("change",i),n.on("swapDoc",i),e.on(n.getInputField(),"compositionupdate",n.state.placeholderCompose=function(){r(n)}),i(n);else if(!o&&s){n.off("blur",A),n.off("change",i),n.off("swapDoc",i),e.off(n.getInputField(),"compositionupdate",n.state.placeholderCompose),t(n);var l=n.getWrapperElement();l.className=l.className.replace(" CodeMirror-empty","")}o&&!n.hasFocus()&&A(n)}))}(tc)}));r((function(e,t){!function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function A(e){return e&&e.bracketRegex||/[(){}[\]]/}function i(e,t,i){var a=e.getLineHandle(t.line),s=t.ch-1,l=i&&i.afterCursor;null==l&&(l=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var c=A(i),u=!l&&s>=0&&c.test(a.text.charAt(s))&&r[a.text.charAt(s)]||c.test(a.text.charAt(s+1))&&r[a.text.charAt(++s)];if(!u)return null;var f=">"==u.charAt(1)?1:-1;if(i&&i.strict&&f>0!=(s==t.ch))return null;var h=e.getTokenTypeAt(n(t.line,s+1)),d=o(e,n(t.line,s+(f>0?1:0)),f,h||null,i);return null==d?null:{from:n(t.line,s),to:d&&d.pos,match:d&&d.ch==u.charAt(0),forward:f>0}}function o(e,t,i,o,a){for(var s=a&&a.maxScanLineLength||1e4,l=a&&a.maxScanLines||1e3,c=[],u=A(a),f=i>0?Math.min(t.line+l,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-l),h=t.line;h!=f;h+=i){var d=e.getLine(h);if(d){var g=i>0?0:d.length-1,p=i>0?d.length:-1;if(!(d.length>s))for(h==t.line&&(g=t.ch-(i<0?1:0));g!=p;g+=i){var m=d.charAt(g);if(u.test(m)&&(void 0===o||e.getTokenTypeAt(n(h,g+1))==o)){var v=r[m];if(v&&">"==v.charAt(1)==i>0)c.push(m);else{if(!c.length)return{pos:n(h,g),ch:m};c.pop()}}}}}return h-i!=(i>0?e.lastLine():e.firstLine())&&null}function a(e,r,A){for(var o=e.state.matchBrackets.maxHighlightLineLength||1e3,a=[],s=e.listSelections(),l=0;l0&&r.ch>=i.length)return t.clipPos(n(r.line+1,0));for(var o,a="start",s=r.ch,l=s,c=A<0?0:i.length,u=0;l!=c;l+=A,u++){var f=i.charAt(A<0?l-1:l),h="_"!=f&&e.isWordChar(f)?"w":"o";if("w"==h&&f.toUpperCase()==f&&(h="W"),"start"==a)"o"!=h?(a="in",o=h):s=l+A;else if("in"==a&&o!=h){if("w"==o&&"W"==h&&A<0&&l--,"W"==o&&"w"==h&&A>0){if(l==s+1){o="w";continue}l--}break}}return n(r.line,l)}function A(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 i(t,r){if(t.isReadOnly())return e.Pass;t.operation((function(){for(var e=t.listSelections().length,A=[],i=-1,o=0;o=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=[],A=0;Ai.line&&a==o.line&&0==o.ch||r.push({anchor:a==i.line?i:n(a,0),head:a==o.line?o:n(a)});e.setSelections(r,0)},t.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},t.selectLine=function(e){for(var t=e.listSelections(),r=[],A=0;A=0;a--){var l=r[A[a]];if(!(s&&e.cmpPos(l.head,s)>0)){var c=o(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 A=o(t,n);if(!A.word)return;n=A.from,r=A.to}return{from:n,to:r,query:t.getRange(n,r),word:A}}function g(e,t){var r=d(e);if(r){var A=r.query,i=e.getSearchCursor(A,t?r.to:r.from);(t?i.findNext():i.findPrevious())?e.setSelection(i.from(),i.to()):(i=e.getSearchCursor(A,t?n(e.firstLine(),0):e.clipPos(n(e.lastLine()))),(t?i.findNext():i.findPrevious())?e.setSelection(i.from(),i.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 A=t.scanForBracket(r.head,1,u(t.getTokenTypeAt(r.head)));if(A&&0!=e.cmpPos(A.pos,r.head))return A.pos;var i=t.scanForBracket(r.head,-1,u(t.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return i&&n(i.pos.line,i.pos.ch+1)||r.head}))},t.swapLineUp=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),A=[],i=t.firstLine()-1,o=[],a=0;ai?A.push(l,c):A.length&&(A[A.length-1]=c),i=c}t.operation((function(){for(var e=0;et.lastLine()?t.replaceRange("\n"+a,n(t.lastLine()),null,"+swapLine"):t.replaceRange(a+"\n",n(i,0),null,"+swapLine")}t.setSelections(o),t.scrollIntoView()}))},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),A=[],i=t.lastLine()+1,o=r.length-1;o>=0;o--){var a=r[o],s=a.to().line+1,l=a.from().line;0!=a.to().ch||a.empty()||s--,s=0;e-=2){var r=A[e],i=A[e+1],o=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(o+"\n",n(i,0),null,"+swapLine")}t.scrollIntoView()}))},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),r=[],A=0;A=0;i--){var o=r[i].head,a=t.getRange({line:o.line,ch:0},o),s=e.countColumn(a,null,t.getOption("tabSize")),l=t.findPosH(o,-1,"char",!1);if(a&&!/\S/.test(a)&&s%A==0){var c=new n(o.line,e.findColumn(a,s-A,A));c.ch!=o.ch&&(l=c)}t.replaceRange("",l,o,"+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){h(e,(function(e){return e.toUpperCase()}))},t.downcaseAtCursor=function(e){h(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(),A=n;if(e.cmpPos(r,A)>0){var i=A;A=r,r=i}t.state.sublimeKilled=t.getRange(r,A),t.replaceRange("",r,A)}},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){g(e,!0)},t.findUnderPrevious=function(e){g(e,!1)},t.findAllUnder=function(e){var t=d(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],A=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&A++;e.setSelections(r,A)}};var p=e.keyMap;p.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(p.macSublime),p.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(p.pcSublime);var m=p.default==p.macDefault;p.sublime=m?p.macSublime:p.pcSublime}(tc)})),r((function(e,t){!function(e){var t;function n(e){var n=this;function o(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 a(){var e=n.element=B();w(),o(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=A((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=i(n,e);return r&&(e.stopPropagation(),e.preventDefault(),t[n](e)),r}))}))}function l(t,A,i){if(!t)return v(e),void y();var o,a,s,u,f,h,d,g=t,p=A,m=!0,w=p.caseSensitive,B=p.regExp,b=p.wholeWord;B&&(g=g.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")),b&&(g=w?g=RegExp("\\b"+g+"\\b"):RegExp("\\b"+g+"\\b","i")),B&&(g=RegExp(g)),v(e),c(e,g,w),y(),d=p.backwards?p.skipCurrent?"from":"to":p.skipCurrent?"to":"from",h=e.getCursor(d),u=(s=e.getSearchCursor(g,h,!w)).findNext.bind(s),f=s.findPrevious.bind(s),s.matches.bind(s),p.backwards&&!f()?(m=u())&&(e.setCursor(e.doc.size-1,0),l(t,A,i),o=!0):p.backwards||u()||(m=f())&&(e.setCursor(0,0),l(t,A,i),o=!0),a=!m&&n.searchInput.value,r(n.searchBox,"ace_nomatch",a),!o&&m&&i(s)}function c(e,t,n){var r=m(e),A=t;A&&A!==r.queryText&&(h(e,r,A,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 f(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 h(e,t,n,r){t.queryText=n,t.query=f(n),e.removeOverlay(t.overlay,d(t.query,r)),t.overlay=g(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 g(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 p(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function m(e){return e.state.search||(e.state.search=new p)}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 y(){var t,r=n.searchInput.value,A=[];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")),A=e.getValue().match(t));var i=A?A.length:0,o=e.display.wrapper.parentElement.querySelector(".ace_search_counter");o&&(o.innerText=i+" matches found."),0===i&&e.setSelection({ch:0,line:0},{ch:0,line:0})}function w(){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 B(){var t,n=e.getWrapperElement(),r=document.createElement("div"),A=['"].join("");return r.innerHTML=A,t=r.firstChild,n.appendChild(t),t}a(),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"),y()},this.replaceAndFindNext=function(){e.getOption("readOnly")||(this.replace(),this.findNext())},this.replaceAll=function(){var t,n,r=this.searchInput.value,A=this.replaceInput.value,i=RegExp(r,this.caseSensitiveOption.checked?"g":"gi");this.wholeWordOption.checked&&!this.regExpOption.checked&&(i=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(i,A),e.setValue(t),e.setCursor(n)),y()},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 A(e,t){var n,r=function(){n=null,e()},A=function(e){n||(n=setTimeout(r,e||t))};return A.delay=function(e){n&&clearTimeout(n),n=setTimeout(r,e||t)},A.schedule=A,A.call=function(){this.cancel(),e()},A.cancel=function(){n&&clearTimeout(n),n=null},A.isPending=function(){return n},A}function i(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 o(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(A){e.toUpperCase()===A&&(n=t.keyCode===r[A])}))}return!n})),!n})),n}function o(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 A=!1;e.parentElement.querySelector("[action=toggleReplace]")&&(A="-"===e.parentElement.querySelector("[action=toggleReplace]").innerText),t.show(r.getSelection(),A)},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 A=!1;e.parentElement.querySelector("[action=toggleReplace]")&&(A="-"===e.parentElement.querySelector("[action=toggleReplace]").innerText),t.show(r.getSelection(),A)}})}))}(tc)}));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(),A=this.annotations,i=t.getOption("lineWrapping"),o=i&&1.5*t.defaultTextHeight(),a=null,s=null;function l(e,n){if(a!=e.line){a=e.line,s=t.getLineHandle(e.line);var r=t.getLineHandleVisualStart(s);r!=s&&(a=t.getLineNumber(r),s=r)}return s.widgets&&s.widgets.length||i&&s.height>o?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,f=0;fc)){for(var d=u||l(h.from,!0)*n,g=l(h.to,!1)*n;fc)&&!((u=l(A[f+1].from,!0)*n)>g+.9);)g=l((h=A[++f]).to,!1)*n;if(g!=d){var p=Math.max(g-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: "+p+"px",m.className=this.options.className,h.id&&m.setAttribute("annotation-id",h.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)}}(tc)}));r((function(e,t){!function(e){function t(e,t,n,r){this.cm=e,this.options=r;var A={listenForChanges:!1};for(var i in r)A[i]=r[i];A.className||(A.className="CodeMirror-search-match"),this.annotation=e.annotateScrollbar(A),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 o=this;e.on("change",this.changeHandler=function(e,t){o.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++)i.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}),A=this.options&&this.options.maxMatches||n;r.findNext();){var i;if((i={from:r.from(),to:r.to()}).from.line>=this.gap.to)break;if(this.matches.splice(t++,0,i),this.matches.length>A)break}this.gap=null}},t.prototype.onChange=function(t){var n=t.from.line,A=e.changeEnd(t).line,i=A-t.to.line;if(this.gap?(this.gap.from=Math.min(r(this.gap.from,n,i),t.from.line),this.gap.to=Math.max(r(this.gap.to,n,i),t.from.line)):this.gap={from:t.from.line,to:A+1},i)for(var o=0;oe.length)&&(t=e.length);for(var n=0,r=new Array(t);n>>0||(xc(Tc,n)?16:10))}:Cc;Ye({global:!0,forced:parseInt!=Ec},{parseInt:Ec});var Fc=D.parseInt,Uc=a.RangeError;Ye({target:"String",proto:!0},{repeat:function(e){var t=yn(I(this)),n="",r=Ft(e);if(r<0||r==1/0)throw Uc("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}});var Sc=tA("String").repeat,Lc=String.prototype,Hc=function(e){var t=e.repeat;return"string"==typeof e||e===Lc||R(Lc,e)&&t===Lc.repeat?Sc:t},Ic={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),Cl(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)?yc(n=e.attrs.class).call(n,"ch-icon-check")>=0?r+="[x]":r+="[ ]":e.attrs.class&&/cherry-code-preview-lang-select/.test(e.attrs.class)?r+="":r+=this.$dealTag(e);return r},$dealTag:function(e){var t=this,n="";return e.children&&(n=t.$dealHtml(e.children)),/(style|meta|link|script)/.test(e.name)?"":"code"===e.name||"pre"===e.name?t.tagParser.codeParser(e,t.$dealCodeTag(e),"pre"===e.name):"function"==typeof t.tagParser["".concat(e.name,"Parser")]?t.tagParser["".concat(e.name,"Parser")](e,n):n},$dealCodeTag:function(e){if(e.children.length<0)return"";for(var t="",n=0;n])+>/g,empty:wc?wc(null):{},parseTags:function(e){var t,n=this,r=0,A={type:"tag",name:"",voidElement:!1,attrs:{},children:[]};return e.replace(this.attrRE,(function(i){r%2?t=i:0===r?((n.lookup[i]||"/"===e.charAt(e.length-2))&&(A.voidElement=!0),A.name=i):A.attrs[t]=i.replace(/['"]/g,""),r+=1})),A},parseHtml:function(e,t){var n=this,r=t||{};r.components||(r.components=this.empty);var A,i=[],o=-1,a=[],s={},l=!1;return e.replace(this.tagRE,(function(t,c){if(l){if(t!==""))return;l=!1}var u,f="/"!==t.charAt(1),h=c+t.length,d=e.charAt(h);f&&(o+=1,"tag"===(A=n.parseTags(t)).type&&r.components[A.name]&&(A.type="component",l=!0),A.voidElement||l||!d||"<"===d||A.children.push({type:"text",content:Bc(e).call(e,h,yc(e).call(e,"<",h))}),s[A.tagName]=A,0===o&&i.push(A),(u=a[o-1])&&u.children.push(A),a[o]=A),f&&!A.voidElement||(o-=1,!l&&"<"!==d&&d&&a[o]&&a[o].children.push({type:"text",content:Bc(e).call(e,h,yc(e).call(e,"<",h))}))})),i}},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=[],A=0;A0?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,A,i,o,a,s=t[1].match(/rgb\(([ 0-9]+),([ 0-9]+),([ 0-9]+)\)/);if(s[1]&&s[2]&&s[3])s[1]=Fc(Cl(r=s[1]).call(r),10),s[2]=Fc(Cl(A=s[2]).call(A),10),s[3]=Fc(Cl(i=s[3]).call(i),10),n=zi(o=zi(a="#".concat(s[1].toString(16))).call(a,s[2].toString(16))).call(o,s[3].toString(16))}else{n=vc(t,2)[1]}return n}return""}}},mdFormatEngine:{convertColor:function(e,t){var n,r=Cl(e).call(e);return!r||/\n/.test(r)?r:t?zi(n="!!".concat(t," ")).call(n,r,"!!"):r},convertSize:function(e,t){var n,r=Cl(e).call(e);return!r||/\n/.test(r)?r:t?zi(n="!".concat(t," ")).call(n,r,"!"):r},convertBgColor:function(e,t){var n,r=Cl(e).call(e);return!r||/\n/.test(r)?r:t?zi(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 zi(n="![".concat(r,"](")).call(n,t,")")},convertGraph:function(e,t,n,r){var A,i,o,a=e&&e.length>0?e:"graph",s="";if(r)try{var l,c=r.attrs;ti(l=mn(c)).call(l,(function(e){var t;Object.prototype.hasOwnProperty.call(c,e)&&(yc(e).call(e,"data-graph-")>=0&&c[e]&&(s+=zi(t=" ".concat(e,"=")).call(t,c[e])))}))}catch(e){}return zi(A=zi(i=zi(o="![".concat(a,"](")).call(o,t,"){data-control=tapd-graph data-origin-xml=")).call(i,n)).call(A,s,"}")},convertVideo:function(e,t,n,r){var A,i,o=r&&r.length>0?r:"video";return zi(A=zi(i="!video[".concat(o,"](")).call(i,t,"){poster=")).call(A,n,"}")},convertA:function(e,t){var n;if(e===t)return"".concat(e," ");var r=Cl(e).call(e);return r?zi(n="[".concat(r,"](")).call(n,t,")"):r},convertSup:function(e){return"^".concat(Cl(e).call(e).replace(/\^/g,"\\^"),"^")},convertSub:function(e){return"^^".concat(Cl(e).call(e).replace(/\^\^/g,"\\^\\^"),"^^")},convertTd:function(e){return"~|".concat(Cl(e).call(e).replace(/\n{1,}/g,"
    ").replace(/ /g,"~s~")," ~|")},convertTh:function(e){return/^\s*$/.test(e)?"":"~|".concat(Cl(e).call(e).replace(/\n{1,}/g,"
    ")," ~|")},convertTr:function(e){return/^\s*$/.test(e)?"":"".concat(Cl(e).call(e).replace(/\n/g,""),"\n")},convertThead:function(e){var t,n="".concat(e.replace(/[ \t]+/g,"").replace(/~\|~\|/g,"~|").replace(/~\|/g,"|"),"\n"),r=n.match(/\|/g).length-1;return zi(t="".concat(n,"|")).call(t,Hc(":-:|").call(":-:|",r),"\n")},convertTable:function(e){var t="\n".concat(e.replace(/[ \t]+/g,"").replace(/~\|~\|/g,"~|").replace(/~\|/g,"|"),"\n").replace(/\n{2,}/g,"\n").replace(/\n[ \t]+\n/g,"\n").replace(/~s~/g," ");if(!/\|:-:\|/.test(t)){var n,r,A=t.match(/^\n[^\n]+\n/)[0].match(/\|/g).length-1;t=zi(n=zi(r="\n|".concat(Hc(" |").call(" |",A),"\n|")).call(r,Hc(":-:|").call(":-:|",A))).call(n,t)}return t},convertLi:function(e){return"- ".concat(e.replace(/^\n/,"").replace(/\n+$/,"").replace(/\n+/g,"\n\t"),"\n")},convertUl:function(e){return"".concat(e,"\n")},convertOl:function(e){for(var t=e.split("\n"),n=1,r=0;r".concat(Cl(e).call(e),"\n\n")},convertAddress:function(e){return">".concat(Cl(e).call(e),"\n\n")}},paragraphStyleClear:function(e){for(var t=0;t1)for(var o=0;o=0?n:n>=0?n+r:Math.min(n,r)}function jc(e){var t=e.previousElementSibling,n=e.nextElementSibling;if(!t){var r=getComputedStyle(e),A=e.getBoundingClientRect();if(!n)return{height:Math.max(Xc(r.marginTop)+A.height+Xc(r.marginBottom),0),offsetTop:e.offsetTop-Math.abs(Xc(r.marginTop))};var i=getComputedStyle(n),o=Vc(r.marginBottom,i.marginTop);return{height:Math.max(Xc(r.marginTop)+A.height+o,0),offsetTop:e.offsetTop-Math.abs(Xc(r.marginTop))}}var a,s,l,c,u=getComputedStyle(e),f=e.getBoundingClientRect(),h=getComputedStyle(t),d=(a=h.marginBottom,s=u.marginTop,l=Xc(a),(c=Xc(s))<0?0:l>=0?Math.max(c-l,0):c);if(!n)return{height:Math.max(d+f.height+Xc(u.marginBottom),0),offsetTop:e.offsetTop-Math.abs(Xc(u.marginTop))};var g=getComputedStyle(n),p=Vc(u.marginBottom,g.marginTop);return{height:Math.max(d+f.height+p,0),offsetTop:e.offsetTop-Math.abs(d)}}function Gc(e,t){if(!e||!e.tagName)return"";var n,r,A=document.createElement("div");return A.appendChild(e.cloneNode(!1)),n=A.innerHTML,t&&(r=yc(n).call(n,">")+1,n=n.substring(0,r)+e.innerHTML+n.substring(r)),A=null,n}function Wc(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},A=document.createElement(e);(A.className=n,void 0!==r)&&ti(t=mn(r)).call(t,(function(e){var t=r[e];if(ec(e).call(e,"data-")){var n=e.replace(/^data-/,"");A.dataset[n]=t}else A.setAttribute(e,t)}));return A}var Jc={showSwitchBtnAfterPasteHtml:function(e,t,n,r,A){Cl(r).call(r)!==Cl(A).call(A)&&(this.init(e,t,n,r,A),this.setSelection(),this.bindListener(),this.initBubble(),this.showBubble(),"text"===this.getTypeFromLocalStorage()&&this.switchTextClick())},init:function(e,t,n,r,A){this.$cherry=e,this.html=r,this.md=A,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=Wc("div","cherry-bubble cherry-bubble--centered cherry-switch-paste");n.style.display="none";var r=Wc("span","cherry-toolbar-button cherry-text-btn",{title:this.locale.pastePlain});r.innerText="TEXT";var A=Wc("span","cherry-toolbar-button cherry-md-btn",{title:this.locale.pasteMarkdown});A.innerText="Markdown";var i=Wc("span","switch-btn--bg");this.bubbleDom=n,this.switchText=r,this.switchMd=A,this.switchBG=i,this.bubbleDom.appendChild(r),this.bubbleDom.appendChild(A),this.bubbleDom.appendChild(i),this.bubbleDom.setAttribute("data-type","md"),this.codemirror.getWrapperElement().appendChild(this.bubbleDom),this.switchMd.addEventListener("click",eo(e=this.switchMDClick).call(e,this)),this.switchText.addEventListener("click",eo(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=Kl(this.codemirror.getWrapperElement().getElementsByClassName("CodeMirror-selected")),t=0,n=0;if(e.length<=0)return this.hideBubble(),{};for(var r=0;rn&&i>=t&&(n=o),i>t&&(t=i)}return{top:n}}},zc=Jc;function Zc(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 qc(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 Yc=new Proxy({},{get:function(e,t,n){return function(){}}});var eu=new(function(){function e(){var t;ui(this,e),Gi(this,"Events",{previewerClose:"previewer:close",previewerOpen:"previewer:open",editorClose:"editor:close",editorOpen:"editor:open",toolbarHide:"toolbar:hide",toolbarShow:"toolbar:show",cleanAllSubMenus:"cleanAllSubMenus"}),Gi(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 di(e,[{key:"on",value:function(e,t,n){var r;this.emitter.on(zi(r="".concat(e,":")).call(r,t),n)}},{key:"emit",value:function(e,t){var n;this.emitter.emit(zi(n="".concat(e,":")).call(n,t))}}]),e}());function tu(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,A=document.createElement("input");A.type="file",A.id="fileUpload",A.value="",A.style.display="none",A.accept=n,A.addEventListener("change",(function(n){var A=vc(n.target.files,1)[0];e.options.fileUpload(A,(function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof n&&n){if(r)return r(A.name,n,i);var o,a="";if("image"===t)a=zi(o="![".concat(A.name,"](")).call(o,n,")");else if("video"===t){var s;a=zi(s="!video[".concat(A.name,"](")).call(s,n,")")}else if("audio"===t){var l;a=zi(l="!audio[".concat(A.name,"](")).call(l,n,")")}else{var c;a=zi(c="[".concat(A.name,"](")).call(c,n,")")}e.editor.doc.replaceSelection(a)}}))})),A.click()}function nu(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 ru(e,t,n){var r,A,i,o,a,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?nu(t):"";return zi(A=zi(i=zi(o=zi(a="".concat(l,"[")).call(a,s)).call(o,u,"](")).call(i,e,")")).call(A,c)}function Au(e,t){var n=mn(e);if(zr){var r=zr(e);t&&(r=AA(r).call(r,(function(t){return fA(e,t).enumerable}))),n.push.apply(n,r)}return n}function iu(e){for(var t=1;t\\x00-\\x1f"\\(\\)]*)?'),gu=new RegExp("(?:\\/\\/)".concat(du.source)),pu=new RegExp("^".concat(du.source,"$")),mu=new RegExp("^".concat(gu.source,"$")),vu=/^([ \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 yu(){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=ou(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=ou(r,"g",!0),!1===t?{strict:n,loose:r}:ou({begin:"",content:zi(e="(?:".concat(n.begin+n.content+n.end,"|")).call(e,r.begin+r.content+r.end,")"),end:""},"g",!0)}function wu(){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"),iu(iu({},e),{},{begin:e.begin.source,content:e.content.source,end:e.end.source})}function Bu(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 A={};n=n.replace(/^(\s*)(\S[\s\S]*?)$/gm,(function(e,t,n){var r,i,o,a=(null===(r=t.match(/[ \t]/g))||void 0===r?void 0:r.length)||0;return A[a]=A[a]?A[a]+1:1,zi(i=zi(o="".concat(t)).call(o,A[a],". ")).call(i,n)}))}else n=n.replace(/^(\s*)(\S[\s\S]*?)$/gm,"$1".concat(r," $2"));return n}function bu(){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 Cu(){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 Qu=/(\[[^\n]*?\]\(data:image\/[a-z]{1,10};base64,)([^)]+)\)/g,ku=/(!\[[^\n]*?\]\([^)]+\)\{[^}]* data-xml=)([^}]+)\}/g,Tu=/(!\[[^\n]*?\]\(data:image\/[a-z]{1,10};base64,[^)]+\)\{data-type=drawio data-xml=[^}]+\})/g,xu=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(wu().reg,(function(e){return e.replace(/^.*$/gm,"/n")})).replace(/(`+)(.+?(?:\n.+?)*?)\1/g,(function(e){return e.replace(/[![\]()]/g,".")}))};function Eu(e){(function(e){var t=/^(\s*)([I一二三四五六七八九十]+)\.(\s+)/,n=/^(\s*)([I一二三四五六七八九十]+)\.(\s+)$/;if(e.getOption("disableInput"))return!1;for(var r=e.listSelections(),A=[],i=0;i0)){var g=Wc("span","cm-string ".concat(t),{title:l});g.textContent=l,n.noChange=!0,r.markText(h,d,{replacedWith:g,atomic:!0})}}}})),Gi(this,"onKeyup",(function(e,t){var r=t.getCursor().line;n.previewer.highlightLine(r+1)})),Gi(this,"onScroll",(function(e){if(eu.emit(n.instanceId,eu.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,A=e.lineAtHeight(r,"local"),i=e.charCoords({line:A,ch:0},"local"),o=e.getLineHandle(A).height,a=100*(r-(i.bottom-o))/o/100;n.previewer.scrollToLineNum(A+1,a)}}})),Gi(this,"onMouseDown",(function(e,t){eu.emit(n.instanceId,eu.Events.cleanAllSubMenus);var r=e.getCursor().line,A=Math.abs(t.y-e.getWrapperElement().getBoundingClientRect().y);n.previewer.scrollToLineNumWithOffset(r+1,A),n.toHalfWidth(e,t)})),Gi(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:Eu},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,A=zs(t,Fu);r&&nl(this.options.codemirror,r),nl(this.options,A),this.$cherry=this.options.$cherry,this.instanceId=this.$cherry.getInstanceId()}return di(e,[{key:"formatFullWidthMark",value:function(){var e,t=this.editor,n=/[·¥、:“”【】()《》]/,r=t.getSearchCursor(n),A=r.findNext();for(ti(e=t.getAllMarks()).call(e,(function(e){if("cm-fullWidth"===e.className){var r=JSON.parse(Al(ul(e).call(e))),A=t.getRange(r.from,r.to);n.test(A)||e.clear()}}));!1!==A;A=r.findNext()){var i,o=r.from();if(o){var a={line:o.line,ch:o.ch},s={line:o.line,ch:o.ch+1};0===AA(i=t.findMarks(a,s)).call(i,(function(e){return"cm-fullWidth"===e.className})).length&&t.markText(a,s,{className:"cm-fullWidth",title:"按住Ctrl/Cmd点击切换成半角(Hold down Ctrl/Cmd and click to switch to half-width)"})}}}},{key:"toHalfWidth",value:function(e,t){var n=t.target;if(n instanceof HTMLElement&&n.classList.contains("cm-fullWidth")&&(t.ctrlKey||t.metaKey)&&1===t.buttons){var r=n.getBoundingClientRect(),A=e.coordsChar({left:r.left,top:r.top}),i={line:A.line,ch:A.ch+1};e.setSelection(A,i),e.replaceSelection(n.innerText.replace("·","`").replace("¥","$").replace("、","/").replace(":",":").replace("“",'"').replace("”",'"').replace("【","[").replace("】","]").replace("(","(").replace(")",")").replace("《","<").replace("》",">"))}}},{key:"onPaste",value:function(e,t){var n=e.clipboardData;n?this.handlePaste(e,n,t):(n=window.clipboardData,this.handlePaste(e,n,t))}},{key:"handlePaste",value:function(e,t,n){var r=this;this.pasterHtml=!1;for(var A=t.items,i=t.types||[],o=n.getDoc(),a=0;a1&&void 0!==arguments[1]?arguments[1]:{},t);if(r.pasterHtml){var i=n.getCursor(),a=i.line,s=i.ch;n.setSelection({line:a,ch:s},{line:a,ch:s}),o.replaceSelection("\n".concat(A),"end")}else o.replaceSelection(A)}})),e.preventDefault()}()}var l=t.getData("text/plain"),c=t.getData("Text/Html");if(!c||!this.options.convertWhenPaste)return!0;var u=document.createElement("DIV");u.innerHTML=c,c=u.innerHTML;var f=Mc.run(c);if("string"==typeof f&&Cl(f).call(f).length>0){this.pasterHtml=!0;var h=n.listSelections();if(n.getSelections().length<=1&&h[0]&&h[0].anchor){var d={};d.line=h[0].anchor.line,d.ch=h[0].anchor.ch,o.replaceSelection(f),zc.showSwitchBtnAfterPasteHtml(this.$cherry,d,n,l,f)}else o.replaceSelection(f);e.preventDefault()}u=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=tc.fromTextArea(n,this.options.codemirror);r.addOverlay({name:"invisibles",token:function(e){var t,n=0,r=" "===e.peek();if(r){for(;r&&n0&&lo((function(){for(var n=function(n){var A=r[n],i=A.type||"";if(""===i||/^text/i.test(i))return"continue";t.options.fileUpload(A,(function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof r){e.setSelection(e.getCursor());var o=ru(r,i,A),a=n>0?"\n".concat(o," "):"".concat(o," ");e.replaceSelection(a),t.dealSpecialWords()}}))},A=0;A0){if(t>=r.animation.destinationTop)return void(r.animation.timer=0);r.disableScrollListener=!0,r.editor.scrollTo(null,t+A)}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-A)}t===r.editor.getScrollInfo().top||A>=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),Yc.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),A=this.getEditorDom();ti(e=AA(t=Kl(A.classList)).call(t,(function(e){return ec(e).call(e,"cherry-editor-writing-style--")}))).call(e,(function(e){return A.classList.remove(e)})),"normal"!==n&&(A.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),A=document.querySelector("#cherry-editor-writing-style")||document.createElement("style");A.id="cherry-editor-writing-style",ul(e=Kl(document.head.childNodes)).call(e,(function(e){return e===A}))||document.head.appendChild(A);var i=A.sheet;if(ti(t=Kl(Array(i.cssRules.length))).call(t,(function(){return i.deleteRule(0)})),"focus"===n){var o,a,s=this.getEditorDom().getBoundingClientRect(),l=this.editor.charCoords(this.editor.getCursor()),c=l.top,u=l.bottom,f=c-s.top,h=s.height-(u-s.top);i.insertRule(zi(o=".".concat(r,"::before { height: ")).call(o,f>0?f:0,"px; }"),0),i.insertRule(zi(a=".".concat(r,"::after { height: ")).call(a,h>0?h:0,"px; }"),0)}if("typewriter"===n){var d,g,p=this.editor.getScrollInfo().clientHeight/2;i.insertRule(zi(d=".".concat(r," .CodeMirror-lines::before { height: ")).call(d,p,"px; }"),0),i.insertRule(zi(g=".".concat(r," .CodeMirror-lines::after { height: ")).call(g,p,"px; }"),0),this.editor.scrollTo(null,this.editor.cursorCoords(null,"local").top-p)}}}},{key:"setWritingStyle",value:function(e){this.options.writingStyle=e,this.initWritingStyle()}}]),e}(),Su=nr.findIndex,Lu="findIndex",Hu=!0;Lu in[]&&Array(1)[Lu]((function(){Hu=!1})),Ye({target:"Array",proto:!0,forced:Hu},{findIndex:function(e){return Su(this,e,arguments.length>1?arguments[1]:void 0)}});var Iu=tA("Array").findIndex,Mu=Array.prototype,_u=function(e){var t=e.findIndex;return e===Mu||R(Mu,e)&&t===Mu.findIndex?Iu:t},Du=qr("splice"),Ou=a.TypeError,Nu=Math.max,Ru=Math.min;Ye({target:"Array",proto:!0,forced:!Du},{splice:function(e,t){var n,r,A,i,o,a,s=se(this),l=Mt(s),c=Lt(e,l),u=arguments.length;if(0===u?n=r=0:1===u?(n=0,r=l-c):(n=u-2,r=Ru(Nu(Ft(t),0),l-c)),l+n-r>9007199254740991)throw Ou("Maximum allowed length exceeded");for(A=Yn(s,r),i=0;il-r+n;i--)delete s[i-1]}else if(n>r)for(i=l-r;i>c;i--)a=i+n-1,(o=i+r-1)in s?s[a]=s[o]:delete s[a];for(i=0;i1?arguments[1]:void 0)}});var Ju=tA("Array").map,zu=Array.prototype,Zu=function(e){var t=e.map;return e===zu||R(zu,e)&&t===zu.map?Ju:t};function qu(e,t){var n,r,A,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return/^\n/.test(e)?i?(null!==(n=null===(r=e.match(/^\n+/g))||void 0===r||null===(A=r[0])||void 0===A?void 0:A.length)&&void 0!==n?n:0)>1?"\n\n".concat(t):"\n".concat(t):"\n\n".concat(t):t}function Yu(e,t){var n=(e.match(/\n/g)||[]).length;return""!==e&&(n-=2),n+t}var ef=nc;function tf(e,t){if(ef(t))return t}function nf(e){return"undefined"!=typeof localStorage&&null!==localStorage.getItem("cherry-".concat(e))}function rf(){var e="false";return"undefined"!=typeof localStorage&&(e=localStorage.getItem("cherry-classicBr")),"true"===e}function Af(){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 of(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=(t||Af()).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 af=a.RangeError,sf=String.fromCharCode,lf=String.fromCodePoint,cf=v([].join),uf=!!lf&&1!=lf.length;Ye({target:"String",stat:!0,arity:1,forced:uf},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,A=0;r>A;){if(t=+arguments[A++],Lt(t,1114111)!==t)throw af(t+" is not a valid code point");n[A]=t<65536?sf(t):sf(55296+((t-=65536)>>10),t%1024+56320)}return cf(n,"")}});var ff,hf,df=D.String.fromCodePoint;function gf(e,t){var n=mn(e);if(zr){var r=zr(e);t&&(r=AA(r).call(r,(function(t){return fA(e,t).enumerable}))),n.push.apply(n,r)}return n}function pf(e){for(var t=1;t":">","&":"&",'"':""","'":"'"},vf={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},yf=pf(pf(pf(pf(pf(pf({},{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:"♦"}),wf=mn(yf),Bf=Zu(wf).call(wf,(function(e){return yf[e].replace(/^&(\w+);$/g,(function(e,t){return t.toLowerCase()}))})),bf=function(e){return"string"!=typeof e||e.length<=0},Cf=function(e){try{var t=df(e);return!bf(t)}catch(e){return!1}};var Qf=["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("|"),kf=["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("|"),Tf=new RegExp(zi(ff=zi(hf="^(".concat(Qf,"|")).call(hf,kf,"|")).call(ff,"br|img|hr",")( |$|/)"),"i");function xf(e,t){return"string"!=typeof e?"":t?e.replace(/[<>&]/g,(function(e){return mf[e]||e})):e.replace(/[<>&"']/g,(function(e){return mf[e]||e}))}function Ef(e,t){if("string"!=typeof e)return"";var n=Ff(e);return n=function(e){return"string"!=typeof e?"":e.replace(/&(\w+);?/g,(function(e,t){return vf[t]||e}))}(n),xf(n,t)}function Ff(e){return e.replace(/&#(\d+);?/g,(function(e,t){return yf[t]||e}))}function Uf(e){var t=function(e){return e.replace(/&#x([0-9a-f]+);?/gi,(function(e,t){var n=Fc("0x".concat(t),16);try{return df(n)}catch(t){return e}}))}(function(e){return e.replace(/&#(\d+);?/g,(function(e,t){try{return df(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===yc(n).call(n,r.toLowerCase())}function Sf(e){return encodeURI(e).replace(/%25/g,"%")}function Lf(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var Hf=0,If=function(e){Bi(n,e);var t=Lf(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{needCache:!1},A=r.needCache,i=r.defaultCache,o=void 0===i?{}:i;return ui(this,n),(e=t.call(this,{})).needCache=!!A,e.sign="",A&&(e.cache=o||{},e.cacheKey="~~C".concat(Hf),Hf+=1),e}return di(n,[{key:"initBrReg",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.classicBr=nf("classicBr")?rf():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,A,i=null!==(t=null===(n=this.$engine.htmlWhiteListAppend)||void 0===n?void 0:n.split("|"))&&void 0!==t?t:[];i=AA(r=Zu(i).call(i,(function(e){return/[a-z-]+/gi.test(e)?e:null}))).call(r,(function(e){return null!==e}));var o=zi(i).call(i,Qf).join("|");this.removeBrAfterBlock=new RegExp("<(".concat(o,")(>| [^>]*?>)[^\\S\\n]*?\\n"),"ig"),this.removeBrBeforeBlock=new RegExp("\\n[^\\S\\n]*?<\\/(".concat(o,")>[^\\S\\n]*?\\n"),"ig"),this.removeNewlinesBetweenTags=new RegExp(zi(A="<\\/(".concat(o,")>[^\\S\\n]*?\\n([^\\S\\n]*?)<(")).call(A,o,")(>| [^>]*?>)"),"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),A=new RegExp("~~C\\d+I".concat(n.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,"\\w+\\$"),"g").test(e);return r&&!A}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,A=n.contents,i=Zu(A).call(A,t),o="",a=0;a2&&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!==(A=null===(i=t.match(/\n+$/))||void 0===i?void 0:i[0])&&void 0!==A?A:"";return s?qu(t,e):zi(o=zi(a="".concat(l)).call(a,e)).call(o,c)}},{key:"getLineCount",value:function(e){var t,r,A,i=e,o=null!==(t=null===(r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").match(/^\n+/g))||void 0===r||null===(A=r[0])||void 0===A?void 0:A.length)&&void 0!==t?t:0;o=1===o?1:0,i=i.replace(/^\n+/g,"");var a=new RegExp("\n*~~C\\d+I(?:".concat(n.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")?\\w+?_L(\\d+)\\$"),"g"),s=0;return i=i.replace(a,(function(e,t){return s+=Fc(t,10),e.replace(/^\n+/g,"")})),o+s+(i.match(/\n/g)||[]).length+1}},{key:"pushCache",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",A=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this.needCache){var i=r||this.$engine.md5(e);return this.cache[i]={content:e,using:!0},zi(t=zi(n="".concat(this.cacheKey,"I")).call(n,i,"_L")).call(t,A,"$")}}},{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=mn(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,zi(n=zi(r="".concat(this.cacheKey,"I")).call(r,this.sign,"_L")).call(n,A,"$")):this.toHtml(e,t)}},{key:"mounted",value:function(){}},{key:"signWithCache",value:function(e){return!1}}]),n}(ju);Gi(If,"HOOK_TYPE",Vu.PAR),Gi(If,"IN_PARAGRAPH_CACHE_KEY_PREFIX","!"),Gi(If,"IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX","\\!");var Mf=s((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),_f=Object.isExtensible,Df=s((function(){_f(1)}))||Mf?function(e){return!!_(e)&&((!Mf||"ArrayBuffer"!=F(e))&&(!_f||_f(e)))}:_f,Of=!s((function(){return Object.isExtensible(Object.preventExtensions({}))})),Nf=r((function(e){var t=Je.f,n=!1,r=de("meta"),A=0,i=function(e){t(e,r,{value:{objectID:"O"+A++,weakData:{}}})},o=e.exports={enable:function(){o.enable=function(){},n=!0;var e=Bn.f,t=v([].splice),A={};A[r]=1,e(A).length&&(Bn.f=function(n){for(var A=e(n),i=0,o=A.length;ii;i++)if((a=p(e[i]))&&R(Kf,a))return a;return new Pf(!1)}r=Ll(e,A)}for(s=r.next;!(l=b(s,r)).done;){try{a=p(l.value)}catch(e){Ql(r,"throw",e)}if("object"==typeof a&&a&&R(Kf,a))return a}return new Pf(!1)},Xf=a.TypeError,Vf=function(e,t){if(R(t,e))return e;throw Xf("Incorrect invocation")},jf=Je.f,Gf=nr.forEach,Wf=Jn.set,Jf=Jn.getterFor,zf=function(e,t,n){for(var r in t)n&&n.unsafe&&e[r]?e[r]=t[r]:Un(e,r,t[r],n);return e},Zf=ye("species"),qf=function(e){var t=N(e),n=Je.f;w&&t&&!t[Zf]&&n(t,Zf,{configurable:!0,get:function(){return this}})},Yf=Je.f,eh=Nf.fastKey,th=Jn.set,nh=Jn.getterFor,rh={getConstructor:function(e,t,n,r){var A=e((function(e,A){Vf(e,i),th(e,{type:t,index:nn(null),first:void 0,last:void 0,size:0}),w||(e.size=0),null!=A&&$f(A,e[r],{that:e,AS_ENTRIES:n})})),i=A.prototype,o=nh(t),a=function(e,t,n){var r,A,i=o(e),a=s(e,t);return a?a.value=n:(i.last=a={index:A=eh(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),w?i.size++:e.size++,"F"!==A&&(i.index[A]=a)),e},s=function(e,t){var n,r=o(e),A=eh(t);if("F"!==A)return r.index[A];for(n=r.first;n;n=n.next)if(n.key==t)return n};return zf(i,{clear:function(){for(var e=o(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,w?e.size=0:this.size=0},delete:function(e){var t=this,n=o(t),r=s(t,e);if(r){var A=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=A),A&&(A.previous=i),n.first==r&&(n.first=A),n.last==r&&(n.last=i),w?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=o(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)}}),zf(i,n?{get:function(e){var t=s(this,e);return t&&t.value},set:function(e,t){return a(this,0===e?0:e,t)}}:{add:function(e){return a(this,e=0===e?0:e,e)}}),w&&Yf(i,"size",{get:function(){return o(this).size}}),A},setStrong:function(e,t,n){var r=t+" Iterator",A=nh(t),i=nh(r);RA(e,t,(function(e,t){th(this,{type:r,target:e,state:A(e),kind:t,last:void 0})}),(function(){for(var e=i(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),qf(t)}};!function(e,t,n){var r,A=-1!==e.indexOf("Map"),i=-1!==e.indexOf("Weak"),o=A?"set":"add",l=a[e],c=l&&l.prototype,u={};if(w&&y(l)&&(i||c.forEach&&!s((function(){(new l).entries().next()})))){var f=(r=t((function(t,n){Wf(Vf(t,f),{type:e,collection:new l}),null!=n&&$f(n,t[o],{that:t,AS_ENTRIES:A})}))).prototype,h=Jf(e);Gf(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in c)||i&&"clear"==e||ze(f,e,(function(n,r){var A=h(this).collection;if(!t&&i&&!_(n))return"get"==e&&void 0;var o=A[e](0===n?0:n,r);return t?this:o}))})),i||jf(f,"size",{configurable:!0,get:function(){return h(this).collection.size}})}else r=n.getConstructor(t,e,A,o),Nf.enable();On(r,e,!1,!0),u[e]=r,Ye({global:!0,forced:!0},u),i||n.setStrong(r,e,A)}("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),rh);var Ah=D.Map,ih=[].push;Ye({target:"Map",stat:!0,forced:!0},{from:function(e){var t,n,r,A,i=arguments.length,o=i>1?arguments[1]:void 0;return kt(this),(t=void 0!==o)&&ee(o),null==e?new this:(n=[],t?(r=0,A=Oe(o,i>2?arguments[2]:void 0),$f(e,(function(e){b(ih,n,A(e,r++))}))):$f(e,ih,{that:n}),new this(n))}});Ye({target:"Map",stat:!0,forced:!0},{of:function(){return new this(et(arguments))}});Ye({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=Ke(this),n=ee(t.delete),r=!0,A=0,i=arguments.length;A1?arguments[1]:void 0);return!$f(n,(function(e,n,A){if(!r(n,e,t))return A()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var ah=ye("species"),sh=function(e,t){var n,r=Ke(e).constructor;return void 0===r||null==(n=Ke(r)[ah])?t:kt(n)};Ye({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=Ke(this),n=oh(t),r=Oe(e,arguments.length>1?arguments[1]:void 0),A=new(sh(t,N("Map"))),i=ee(A.set);return $f(n,(function(e,n){r(n,e,t)&&b(i,A,e,n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),A}}),Ye({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=Ke(this),n=oh(t),r=Oe(e,arguments.length>1?arguments[1]:void 0);return $f(n,(function(e,n,A){if(r(n,e,t))return A(n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}}),Ye({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=Ke(this),n=oh(t),r=Oe(e,arguments.length>1?arguments[1]:void 0);return $f(n,(function(e,n,A){if(r(n,e,t))return A(e)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}});var lh=v([].push);Ye({target:"Map",stat:!0,forced:!0},{groupBy:function(e,t){ee(t);var n=Ll(e),r=new this,A=ee(r.has),i=ee(r.get),o=ee(r.set);return $f(n,(function(e){var n=t(e);b(A,r,n)?lh(b(i,r,n),e):b(o,r,n,[e])}),{IS_ITERATOR:!0}),r}});Ye({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return $f(oh(Ke(this)),(function(t,n,r){if((A=n)===(i=e)||A!=A&&i!=i)return r();var A,i}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}}),Ye({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var n=new this;ee(t);var r=ee(n.set);return $f(e,(function(e){b(r,n,t(e),e)})),n}}),Ye({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){return $f(oh(Ke(this)),(function(t,n,r){if(n===e)return r(t)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}}),Ye({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=Ke(this),n=oh(t),r=Oe(e,arguments.length>1?arguments[1]:void 0),A=new(sh(t,N("Map"))),i=ee(A.set);return $f(n,(function(e,n){b(i,A,r(n,e,t),n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),A}}),Ye({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=Ke(this),n=oh(t),r=Oe(e,arguments.length>1?arguments[1]:void 0),A=new(sh(t,N("Map"))),i=ee(A.set);return $f(n,(function(e,n){b(i,A,e,r(n,e,t))}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),A}}),Ye({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,A=0;A1?arguments[1]:void 0);return $f(n,(function(e,n,A){if(r(n,e,t))return A()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var uh=a.TypeError;Ye({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var n=Ke(this),r=ee(n.get),A=ee(n.has),i=ee(n.set),o=arguments.length;ee(t);var a=b(A,n,e);if(!a&&o<3)throw uh("Updating absent value");var s=a?b(r,n,e):ee(o>2?arguments[2]:void 0)(e,n);return b(i,n,e,t(s,e,n)),n}});var fh=a.TypeError,hh=function(e,t){var n,r=Ke(this),A=ee(r.get),i=ee(r.has),o=ee(r.set),a=arguments.length>2?arguments[2]:void 0;if(!y(t)&&!y(a))throw fh("At least one callback required");return b(i,r,e)?(n=b(A,r,e),y(t)&&(n=t(n),b(o,r,e,n))):y(a)&&(n=a(),b(o,r,e,n)),n};Ye({target:"Map",proto:!0,real:!0,forced:!0},{upsert:hh}),Ye({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:hh});var dh=Ah;var gh=cn,ph=Yi;function mh(e,t,n){return mh=function(){if("undefined"==typeof Reflect||!gh)return!1;if(gh.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(gh(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?gh:function(e,t,n){var r=[null];r.push.apply(r,t);var A=new(ph(Function).apply(e,r));return n&&wi(A,n.prototype),A},mh.apply(null,arguments)}function vh(e){var t="function"==typeof dh?new dh:void 0;return vh=function(e){if(null===e||!function(e){var t;return-1!==Ws(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 mh(e,arguments,ji(this).constructor)}return n.prototype=vi(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),wi(n,e)},vh(e)}function yh(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var wh=function(e,t){if(!ef(e)&&Ki(e)!==t.name.toLowerCase()||!ef(e)&&"array"===t.name.toLowerCase())throw new TypeError("parameter given must be ".concat(t.name));return!0},Bh=function(e,t){if(!(e instanceof t))throw new Error("the hook does not correctly inherit");return!0},bh=function(e){if("object"!==Ki(e))throw new Error("the hook must be a instance, not a class");return!0},Ch=function(e){Bi(n,e);var t=yh(n);function n(e,r){var A;return ui(this,n),(A=t.call(this,e)).name="Error",A.stack=A.buildStackTrace(r),A}return di(n,[{key:"buildStackTrace",value:function(e){var t,n=e&&e.stack?e.stack:"";return zi(t="".concat(this.stack,"\nCaused By: ")).call(t,n)}}]),n}(vh(Error));function Qh(e,t,n){var r,A;if(-1===e)Yc.warn(zi(r=zi(A="Duplicate hook name [".concat(t.HOOK_NAME,"] found, hook [")).call(A,t.toString(),"] ")).call(r,isNaN(n)?"":"at index [".concat(n,"] "),"will not take effect."));else if(-2===e){var i;Yc.warn(zi(i="Hook [".concat(t.toString(),"] ")).call(i,isNaN(n)?"":"at index [".concat(n,"] "),"is not a valid hook, and will not take effect."))}}function kh(e){return Th(e)||xh(e)}function Th(e){return Object.prototype.isPrototypeOf.call(ju,e)}function xh(e){return Object.prototype.isPrototypeOf.call(If,e)}function Eh(e){return kh(e)&&!0===(null==e?void 0:e.Cherry$$CUSTOM)}var Fh=function(){function e(t,n,r){ui(this,e),this.$locale=r.locale,this.hookList={},this.hookNameList={},wh(t,Array),this.registerInternalHooks(t,n),this.registerCustomHooks(n.engine.customSyntax,n)}return di(e,[{key:"registerInternalHooks",value:function(e,t){var n=this;ti(e).call(e,(function(e,r){Qh(n.register(e,t),e,r)}))}},{key:"registerCustomHooks",value:function(e,t){var n=this;if(e){var r=mn(e);ti(r).call(r,(function(r){var A,i,o,a,s={},l=e[r];if(Th(l))i=l;else{if(!Th(a=null==(o=l)?void 0:o.syntaxClass)&&!xh(a))return;i=l.syntaxClass,s.force=Boolean(l.force),l.before?s.before=l.before:l.after&&(s.after=l.after)}kh(i)?(ci(i,"Cherry$$CUSTOM",{enumerable:!1,configurable:!1,writable:!1,value:!0}),A=n.register(i,t,s)):A=-2,Qh(A,i,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,A,i=this,o=t.externals,a=t.engine,s=a.syntax;if(kh(e)){A=e.HOOK_NAME;var l=(null==s?void 0:s[A])||{};(r=new e({externals:o,config:l,globalConfig:a.global})).afterInit((function(){r.setLocale(i.$locale)}))}else{if("function"!=typeof e)return-2;if(!(r=e(t))||!kh(r.constructor))return-2;A=r.getName()}if(!1!==s[A]||Eh(e)){var c=r.getType();if(this.hookNameList[A]){var u;if(!Eh(e))return-1;if(!n.force)return-1;var f=this.hookNameList[A].type;this.hookList[f]=AA(u=this.hookList[f]).call(u,(function(e){return e.getName()!==A}))}if(this.hookNameList[A]={type:c},this.hookList[c]=this.hookList[c]||[],Eh(e)){var h,d,g,p=-1;if(n.before){if(-1===(p=_u(h=this.hookList[c]).call(h,(function(e){return e.getName()===n.before}))))Yc.warn(zi(d="Cannot find hook named [".concat(n.before,"],\n custom hook [")).call(d,A,"] will append to the end of the hooks."))}else if(n.after){var m,v;-1===(p=_u(m=this.hookList[c]).call(m,(function(e){return e.getName()===n.after})))?Yc.warn(zi(v="Cannot find hook named [".concat(n.after,"],\n custom hook [")).call(v,A,"] will append to the end of the hooks.")):p+=1}if(p<0||p>=this.hookList[c].length)this.hookList[c].push(r);else $u(g=this.hookList[c]).call(g,p,0,r)}else this.hookList[c].push(r)}}}]),e}();function Uh(e){if(void 0!==Si&&null!=ic(e)||null!=e["@@iterator"])return dc(e)}function Sh(e){return function(e){if(rc(e))return gc(e)}(e)||Uh(e)||pc(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 Lh(e){return Ac(e)||Uh(e)||pc(e)||mc()}function Hh(e,t){var n=mn(e);if(zr){var r=zr(e);t&&(r=AA(r).call(r,(function(t){return fA(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ih(e){for(var t=1;t3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;if(!t)return e;t.lastIndex=0;for(var o=0,a=[];null!==(r=t.exec(e));){var s={begin:r.index,length:r[0].length};if(A&&r.index===o-i){var l,c=Lh(r),u=c[0],f=Bc(c).call(c,2);a.push({begin:s.begin+i,length:s.length-i,replacedText:n.apply(void 0,zi(l=[Bc(u).call(u,i),""]).call(l,Sh(f)))})}else a.push(Ih(Ih({},s),{},{replacedText:n.apply(void 0,Sh(r))}));o=t.lastIndex,t.lastIndex-=i}return t.lastIndex=0,function(e,t){if(!t.length)return e;var n=[],r=0;return ti(t).call(t,(function(A,i){n.push(Bc(e).call(e,r,A.begin)),n.push(A.replacedText),r=A.begin+A.length,i===t.length-1&&n.push(Bc(e).call(e,r))})),n.join("")}(e,a)}function _h(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var Dh=function(e){Bi(n,e);var t=_h(n);function n(){return ui(this,n),t.apply(this,arguments)}return di(n,[{key:"toHtml",value:function(e,t,n,r){var A,i;return zi(A=zi(i="".concat(t,'')).call(A,r,"")}},{key:"makeHtml",value:function(e){return au()?e.replace(this.RULE.reg,this.toHtml):Mh(e,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var e={begin:au()?"((?')).call(A,r,"")}},{key:"makeHtml",value:function(e){return au()?e.replace(this.RULE.reg,this.toHtml):Mh(e,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var e={begin:au()?"((?')).call(A,r,"")}},{key:"makeHtml",value:function(e){return this.test(e)?au()?e.replace(this.RULE.reg,this.toHtml):Mh(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 ui(this,n),e=t.call(this,{config:r}),r?(e.needWhitespace=!!r.needWhitespace,e):$i(e)}return di(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?$h($h({},e),{},{begin:"(^|[\\s])\\~T\\~T",end:"\\~T\\~T(?=\\s|$)",content:"([\\w\\W]+?)"}):$h($h({},e),{},{begin:"(^|[^\\\\])\\~T\\~T",end:"\\~T\\~T",content:"([\\w\\W]+?)"})).reg=new RegExp(e.begin+e.content+e.end,"g"),e}}]),n}(ju);function jh(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}Gi(Vh,"HOOK_NAME","strikethrough");var Gh=function(e){Bi(n,e);var t=jh(n);function n(){return ui(this,n),t.apply(this,arguments)}return di(n,[{key:"toHtml",value:function(e,t,n){var r;return zi(r="".concat(t,"")).call(r,n,"")}},{key:"makeHtml",value:function(e){return au()?e.replace(this.RULE.reg,this.toHtml):Mh(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):Mh(e,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var e={begin:au()?"((?=u.reach);C+=b.value.length,b=b.next){var Q=b.value;if(t.length>e.length)return;if(!(Q instanceof i)){var k,T=1;if(v){if(!(k=o(B,C,e,m))||k.index>=e.length)break;var x=k.index,E=k.index+k[0].length,F=C;for(F+=b.value.length;x>=F;)F+=(b=b.next).value.length;if(C=F-=b.value.length,b.value instanceof i)continue;for(var U=b;U!==t.tail&&(Fu.reach&&(u.reach=I);var M=b.prev;if(L&&(M=l(t,M,L),C+=L.length),c(t,M,T),b=l(t,M,new i(f,p?A.tokenize(S,p):S,y,S)),H&&l(t,b,H),T>1){var _={cause:f+","+d,reach:I};a(e,t,n,b.prev,C,_),u&&_.reach>u.reach&&(u.reach=_.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,A={value:n,prev:t,next:r};return t.next=A,r.prev=A,e.length++,A}function c(e,t,n){for(var r=t.next,A=0;A"+i.content+""},!e.document)return e.addEventListener?(A.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,o=n.immediateClose;e.postMessage(A.highlight(i,A.languages[r],r)),o&&e.close()}),!1),A):A;var u=A.util.currentScript();function f(){A.manual||A.highlightAll()}if(u&&(A.filename=u.src,u.hasAttribute("data-manual")&&(A.manual=!0)),!A.manual){var h=document.readyState;"loading"===h||"interactive"===h&&u&&u.defer?document.addEventListener("DOMContentLoaded",f):window.requestAnimationFrame?window.requestAnimationFrame(f):window.setTimeout(f,16)}return A}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=n),void 0!==t&&(t.Prism=n)}));function Zh(e,t){var n=mn(e);if(zr){var r=zr(e);t&&(r=AA(r).call(r,(function(t){return fA(e,t).enumerable}))),n.push.apply(n,r)}return n}function qh(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(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 A="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",o="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",a="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function s(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var l=s(i),c=RegExp(s(A+" "+i+" "+o+" "+a)),u=s(i+" "+o+" "+a),f=s(A+" "+i+" "+a),h=r(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),d=r(/\((?:[^()]|<>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,p=t(/<<0>>(?:\s*<<1>>)?/.source,[g,h]),m=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[u,p]),v=/\[\s*(?:,\s*)*\]/.source,y=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,v]),w=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[h,d,v]),B=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),b=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[B,m,v]),C={keyword:c,punctuation:/[<>()?,.:[\]]/},Q=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,k=/"(?:\\.|[^\\"\r\n])*"/.source,T=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[T]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[k]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,b]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,p]),lookbehind:!0,inside:C},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:C},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[y]),lookbehind:!0,inside:C},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[b,f,g]),inside:C}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),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:C},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[b,m]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[b]),lookbehind:!0,inside:C,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,h]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(h),alias:"class-name",inside:C}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,p,g,b,c.source,d,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[p,d]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(b),greedy:!0,inside:C},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var x=k+"|"+Q,E=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[x]),F=r(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[E]),2),U=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,S=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,F]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[U,S]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[U]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[F]),inside:e.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var L=/:[^}\r\n]+/.source,H=r(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[E]),2),I=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[H,L]),M=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[x]),2),_=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[M,L]);function D(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,[I]),lookbehind:!0,greedy:!0,inside:D(I,H)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[_]),lookbehind:!0,greedy:!0,inside:D(_,M)}],char:{pattern:RegExp(Q),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 A={};A[e]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",A)}}),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],A=[];/^\w+$/.test(n)||A.push(/\w+/.exec(n)[0]),"diff"===n&&A.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:A,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,A=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,(function(){return r})),i={pattern:RegExp(r),greedy:!0},o={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function a(e,t){return e=e.replace(//g,(function(){return A})).replace(//g,(function(){return n})),RegExp(e,t)}e.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:a(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[i,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:a(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:a(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:a(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:o,string:i,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:o},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+")?)",A=/(?:[^\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})),i=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(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"(?:"+A+"|"+i+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\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:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(i),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?: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,A=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \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("^"+A+i+"(?:"+A+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+A+i+")(?:"+A+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+A+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+A+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:Prism.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},Prism.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n0)){var a=f(/^\{$/,/^\}$/);if(-1===a)continue;for(var s=n;s=0&&h(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+")",A=RegExp(r+"-"+r),i={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:A,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":i}}],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,A,i){if(n.language===r){var o=n.tokenStack=[];n.code=n.code.replace(A,(function(e){if("function"==typeof i&&!i(e))return e;for(var A,a=o.length;-1!==n.code.indexOf(A=t(r,a));)++a;return o[a]=e,A})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var A=0,i=Object.keys(n.tokenStack);!function o(a){for(var s=0;s=i.length);s++){var l=a[s];if("string"==typeof l||l.content&&"string"==typeof l.content){var c=i[A],u=n.tokenStack[c],f="string"==typeof l?l:l.content,h=t(r,c),d=f.indexOf(h);if(d>-1){++A;var g=f.substring(0,d),p=new e.Token(r,e.tokenize(u,n.grammar),"language-"+r,u),m=f.substring(d+h.length),v=[];g&&v.push.apply(v,o([g])),v.push(p),m&&v.push.apply(v,o([m])),"string"==typeof l?a.splice.apply(a,[s,1].concat(v)):l.content=v}}else l.content&&o(l.content)}return a}(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,A=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,A=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;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:A,punctuation:i};var o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},a=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:o}},{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:o}}];e.languages.insertBefore("php","variable",{string:a,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:a,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:A,punctuation:i}},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,A=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function i(e,t){return e=e.replace(//g,(function(){return n})).replace(//g,(function(){return r})).replace(//g,(function(){return A})),RegExp(e,t)}A=i(A).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\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:i(//.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var o=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(o).join(""):""},a=function(t){for(var n=[],r=0;r0&&n[n.length-1].tagName===o(A.content[0].content[1])&&n.pop():"/>"===A.content[A.content.length-1].content||n.push({tagName:o(A.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===A.type&&"{"===A.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===A.type&&"}"===A.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof A)&&n.length>0&&0===n[n.length-1].openedBraces){var s=o(A);r0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(s=o(t[r-1])+s,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",s,null,s)}A.content&&"string"!=typeof A.content&&a(A.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||a(e.tokens)}))}(Prism),function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(Prism),function(e){e.languages.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 A=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,o=0;o]=?/,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:/[()]/},zh.manual=!0;var Yh={figure:"figure"},ed=function(e){Bi(n,e);var t=qh(n);function n(e){var r;e.externals;var A,i=e.config;(ui(this,n),r=t.call(this,{needCache:!0}),n.inlineCodeCache={},r.codeCache={},r.customLang=[],r.customParser={},r.wrap=i.wrap,r.lineNumber=i.lineNumber,r.copyCode=i.copyCode,r.editCode=i.editCode,r.changeLang=i.changeLang,r.mermaid=i.mermaid,r.indentedCodeBlock=void 0===i.indentedCodeBlock||i.indentedCodeBlock,r.INLINE_CODE_REGEX=/(`+)(.+?(?:\n.+?)*?)\1/g,i&&i.customRenderer)&&(r.customLang=Zu(A=mn(i.customRenderer)).call(A,(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,A,i,o,a,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=Yh[s.constructor.TYPE]||"div";return zi(r=zi(A=zi(i=zi(o=zi(a="<".concat(c,' data-sign="')).call(a,n.sign,'" data-type="')).call(o,e,'" data-lines="')).call(i,n.lines,'">')).call(A,l,"")}},{key:"fillTag",value:function(e){var t=[];return Zu(e).call(e,(function(e){if(!e)return"";for(var n=e;t.length;){var r,A=t.pop();n=zi(r="".concat(A)).call(r,n)}var i=n.match(/|<\/span>/g),o=0;if(!i)return n;for(;i.length;){var a=i.pop();/<\/span>/.test(a)?o+=1:o?o-=1:t.unshift(a.match(//)[0])}for(var s=0;s");return n}))}},{key:"renderLineNumber",value:function(e){if(!this.lineNumber)return e;var t=e.split("\n");return t.pop(),t=this.fillTag(t),''.concat(t.join('\n'),"")}},{key:"isInternalCustomLangCovered",value:function(e){var t;return-1!==yc(t=this.customLang).call(t,e)}},{key:"computeLines",value:function(e,t,n){var r=t,A=this.getLineCount(e,r);return{sign:this.$engine.md5(e.replace(/^\n+/,"")+A),lines:A}}},{key:"appendMermaid",value:function(e,t){var n=e,r=t;if(/^flow([ ](TD|LR))?$/i.test(r)&&!this.isInternalCustomLangCovered(r)){var A,i=r.match(/^flow(?:[ ](TD|LR))?$/i)||[];n=zi(A="graph ".concat(i[1]||"TD","\n")).call(A,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 zi(n=zi(r='')).call(n,e,"")}},{key:"renderCodeBlock",value:function(e,t,n,r){var A,i,o,a,s,l,c,u=e,f=t;return this.customHighlighter?u=this.customHighlighter(u,f):(f&&zh.languages[f]||(f="javascript"),u=zh.highlight(u,zh.languages[f],f),u=this.renderLineNumber(u)),u=zi(A=zi(i=zi(o=zi(a=zi(s=zi(l=zi(c='\n
    ')).call(A,this.wrapCode(u,f),"
    \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,A,i=(e.match(/\n/g)||[]).length,o=t.$engine.md5(e),a=zi(r=zi(A='
    ')).call(r,xf(n.replace(/\n( {4}|\t)/g,"\n")),"
    ");return qu(e,t.pushCache(a,o,i))})):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,A=e;return A=(A=this.$replaceCodeInIndent(A)).replace(this.RULE.reg,(function(e,t,n,A,i,o){var a,s,l;function c(e){if(n){var t=new RegExp("^\n*",""),r=e.match(t)[0];e=r+n+e.replace(t,(function(e){return""}))}return e}var u=o,f=r.computeLines(e,t,o),h=f.sign,d=f.lines,g=r.$codeCache(h);if(g&&""!==g)return c(r.getCacheWithSpace(r.pushCache(g,h,d),e));u=(u=(u=r.$recoverCodeInIndent(u)).replace(/~D/g,"$")).replace(/~T/g,"~");var p=null!==(a=null==t||null===(s=t.match(/[ ]/g))||void 0===s?void 0:s.length)&&void 0!==a?a:0;if(p>0){var m=new RegExp("(^|\\n)[ ]{1,".concat(p,"}"),"g");u=u.replace(m,"$1")}if(n){var v=new RegExp("(^|\\n)".concat(n),"g");u=u.replace(v,"$1")}var y=Cl(i).call(i);if(/^(math|katex|latex)$/i.test(y)&&!r.isInternalCustomLangCovered(y)){var w,B=e.match(/^\s*/g);return zi(w="".concat(B,"~D~D\n")).call(w,u,"~D~D")}var b=vc(r.appendMermaid(u,y),2);return u=b[0],y=b[1],-1!==yc(l=r.customLang).call(l,y.toLowerCase())&&(g=r.parseCustomLanguage(y,u,{lines:d,sign:h}))&&""!==g?(r.$codeCache(h,g),r.getCacheWithSpace(r.pushCache(g,h,d),e)):(u=u.replace(/~X/g,"\\`"),g=(g=r.renderCodeBlock(u,y,h,d)).replace(/\\/g,"\\\\"),g=r.$codeCache(h,g),c(r.getCacheWithSpace(r.pushCache(g,h,d),e)))})),A=A.replace(yu(!0),(function(e){var t;return Zu(t=e.split("|")).call(t,(function(e){return r.makeInlineCode(e)})).join("|").replace(/`/g,"\\`")})),A=this.makeInlineCode(A),A=this.$getIndentCodeBlock(A)}},{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,A){if("`"===Cl(A).call(A))return e;var i=A.replace(/~~not~inlineCode/g,"\\`");i=(i=t.$replaceSpecialChar(i)).replace(/\\/g,"\\\\");var o="".concat(xf(i),""),a=t.$engine.md5(o);return n.inlineCodeCache[a]=o,"~~CODE".concat(a,"$")})),r=r.replace(/~~not~inlineCode/g,"\\`")),r}},{key:"makeHtml",value:function(e){return e}},{key:"$replaceSpecialChar",value:function(e){var t=e.replace(/~Q/g,"\\~");return t=(t=(t=(t=t.replace(/~Y/g,"\\!")).replace(/~Z/g,"\\#")).replace(/~&/g,"\\&")).replace(/~K/g,"\\/")}},{key:"rule",value:function(){return wu()}},{key:"mounted",value:function(e){}}]),n}(If);function td(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}Gi(ed,"HOOK_NAME","codeBlock"),Gi(ed,"inlineCodeCache",{});var nd=function(e){Bi(n,e);var t=td(n);function n(){return ui(this,n),t.apply(this,arguments)}return di(n,[{key:"makeHtml",value:function(e){return e}},{key:"afterMakeHtml",value:function(e){var t=e;return mn(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=ou(e,"g"),e}}]),n}(If);Gi(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-i)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,A=0;r>>6-2*A);return n}};e.exports=n}()})),Ad={utf8:{stringToBytes:function(e){return Ad.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(Ad.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n>>24)|4278255360&(a[h]<<24|a[h]>>>8);a[s>>>5]|=128<>>9<<4)]=s;var d=i._ff,g=i._gg,p=i._hh,m=i._ii;for(h=0;h>>0,c=c+y>>>0,u=u+w>>>0,f=f+B>>>0}return t.endian([l,c,u,f])};i._ff=function(e,t,n,r,A,i,o){var a=e+(t&n|~t&r)+(A>>>0)+o;return(a<>>32-i)+t},i._gg=function(e,t,n,r,A,i,o){var a=e+(t&r|n&~r)+(A>>>0)+o;return(a<>>32-i)+t},i._hh=function(e,t,n,r,A,i,o){var a=e+(t^n^r)+(A>>>0)+o;return(a<>>32-i)+t},i._ii=function(e,t,n,r,A,i,o){var a=e+(n^(t|~r))+(A>>>0)+o;return(a<>>32-i)+t},i._blocksize=16,i._digestsize=16,e.exports=function(e,n){if(null==e)throw new Error("Illegal argument "+e);var r=t.wordsToBytes(i(e,n));return n&&n.asBytes?r:n&&n.asString?A.bytesToString(r):t.bytesToHex(r)}}()})),ld={},cd=/^cherry-inner:\/\/([0-9a-f]+)$/i;var ud=function(){function e(){ui(this,e)}return di(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=vc(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=vc(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 fd(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var hd=function(e){Bi(n,e);var t=fd(n);function n(e){var r,A=e.config,i=e.globalConfig;return ui(this,n),(r=t.call(this,{config:A})).urlProcessor=i.urlProcessor,r.target=A.target?'target="'.concat(A.target,'"'):A.openNewPage?'target="_blank"':"",r.rel=A.rel?'rel="'.concat(A.rel,'"'):"",r}return di(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},A=n.length-1;n[A]&&(A!==n.length-1||!r(A));A--)if("]"!==n[A]||r(A)||t.push("]"),"["===n[A]&&!r(A)&&(t.pop(),!t.length))return{isValid:!0,coreText:Bc(n).call(n,A+1,n.length-1),extraLeadingChar:Bc(n).call(n,0,A)};return{isValid:!1,coreText:e,extraLeadingChar:""}}},{key:"toHtml",value:function(e,t,n,r,A,i,o){var a=void 0===r?"ref":"url",s="";if("ref"===a)return e;if("url"===a){var l,c=this.checkBrackets(n),u=c.isValid,f=c.coreText,h=c.extraLeadingChar;if(!u)return e;s=A&&""!==Cl(A).call(A)?' title="'.concat(xf(A.replace(/["']/g,"")),'"'):"",o?s+=' target="'.concat(o.replace(/{target\s*=\s*(.*?)}/,"$1"),'"'):this.target&&(s+=" ".concat(this.target));var d,g,p,m,v=Cl(r).call(r).replace(/~1D/g,"~D"),y=f.replace(/~1D/g,"~D");return Uf(v)?(v=Sf(v=this.urlProcessor(v,"link")),zi(d=zi(g=zi(p=zi(m="".concat(t+h,'
    ")).call(d,y,"")):zi(l="".concat(t+h,"")).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,eo(t=this.toHtml).call(t,this)):r=Mh(r,this.RULE.reg,eo(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&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config;return ui(this,n),e=t.call(this,{config:r}),r?(e.allowWhitespace=!!r.allowWhitespace,e):$i(e)}return di(n,[{key:"makeHtml",value:function(e,t){var n=function(e,n,r,A){var i,o,a,s=r.length%2==1?"em":"strong",l=Math.floor(r.length/2),c=Hc("").call("",l),u=Hc("").call("",l);return"em"===s&&(c+="",u="".concat(u)),zi(i=zi(o=zi(a="".concat(n)).call(a,c)).call(o,t(A).html.replace(/_/g,"~U"))).call(i,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,A,i,o){var a,s,l;if(""===Cl(A).call(A))return e;var c=r.length%2==1?"em":"strong",u=Math.floor(r.length/2),f=Hc("").call("",u),h=Hc("").call("",u),d=t(A).html;return"em"===c&&(f+="",h="".concat(h)),zi(a=zi(s=zi(l="".concat(n)).call(l,f)).call(s,d)).call(a,h)})),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,A,i="[^".concat(t,"\\s]");return e?"(?:.*?)(?:(?:\\n.*?)*?)":zi(n=zi(r=zi(A="(".concat(i,"|")).call(A,i,"(.*?(\n")).call(r,i,".*)*)")).call(n,i,")")},r={begin:"(^|[^\\\\])([*]+)",content:"(".concat(n(t,"*"),")"),end:"\\2"},A={begin:"(^|".concat(uu,")(_+)"),content:"(".concat(n(t,"_"),")"),end:"\\2(?=".concat(uu,"|$)")};return r.reg=ou(r,"g"),A.reg=ou(A,"g"),{asterisk:r,underscore:A}}}]),n}(ju);function pd(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}Gi(gd,"HOOK_NAME","fontEmphasis");var md=function(e){Bi(n,e);var t=pd(n);function n(e){var r;return ui(this,n),(r=t.call(this)).initBrReg(e.globalConfig.classicBr),r}return di(n,[{key:"makeHtml",value:function(e,t){var n=this;return this.test(e)?e.replace(this.RULE.reg,(function(e,r,A){var i;if(n.isContainsCache(e,!0))return e;var o,a=function(e){var r,A,i,o,a,s;if(""===Cl(e).call(e))return"";var l=t(e),c=l.sign,u=l.html,f="p";new RegExp("<(".concat(Qf,")[^>]*>"),"i").test(u)&&(f="div");var h=n.getLineCount(e,e);return zi(r=zi(A=zi(i=zi(o=zi(a=zi(s="<".concat(f,' data-sign="')).call(s,c)).call(a,h,'" data-type="')).call(o,f,'" data-lines="')).call(i,h,'">')).call(A,n.$cleanParagraph(u),"")};return n.isContainsCache(A)?n.makeExcludingCached(zi(o="".concat(r)).call(o,A),a):a(zi(i="".concat(r)).call(i,A))})):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}(If);Gi(md,"HOOK_NAME","normalParagraph");Ye({target:"Reflect",stat:!0},{get:function e(t,n){var r,A,i=arguments.length<3?t:arguments[2];return Ke(t)===i?t[n]:(r=Fe.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,i):_(A=bA(t))?e(A,n,i):void 0}});var vd=D.Reflect.get,yd=uA;function wd(){return wd="undefined"!=typeof Reflect&&vd?vd:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ji(e)););return e}(e,t);if(r){var A=yd(r,t);return A.get?A.get.call(arguments.length<3?e:n):A.value}},wd.apply(this,arguments)}function Bd(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var bd="atx",Cd="setext",Qd=/[\s\-_]/,kd=/[A-Za-z]/,Td=/[0-9]/,xd=function(e){Bi(n,e);var t=Bd(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0,externals:void 0};r.externals;var A=r.config;return ui(this,n),(e=t.call(this,{needCache:!0})).strict=!A||!!A.strict,e.RULE=e.rule(),e.headerIDCache=[],e.headerIDCounter={},e.config=A||{},e}return di(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="",A=0;A255)try{r+=encodeURIComponent(i)}catch(e){}}return r}},{key:"generateIDNoDup",value:function(e){var t,n=e.replace(/</g,"<").replace(/>/g,">"),r=this.$generateId(n,!0),A=yc(t=this.headerIDCache).call(t,r);if(-1!==A)this.headerIDCounter[A]+=1,r+="-".concat(this.headerIDCounter[A]+1);else{var i=this.headerIDCache.push(r);this.headerIDCounter[i-1]=1}return r}},{key:"$wrapHeader",value:function(e,t,n,r){var A,i,o,a,s,l,c,u=r(Cl(e).call(e)),f=u.html,h=f.match(/\s+\{#([A-Za-z0-9-]+)\}$/);null!==h&&(f=f.substring(0,h.index),c=vc(h,2)[1]);var d=this.$parseTitleText(f);if(!c){c=this.generateIDNoDup(d.replace(/~fn#([0-9]+)#/g,""))}var g="safe_".concat(c),p=this.$engine.md5(zi(A=zi(i=zi(o="".concat(t,"-")).call(o,u.sign,"-")).call(i,c,"-")).call(A,n));return{html:[zi(a=zi(s=zi(l="'),this.$getAnchor(c),"".concat(f),"")].join(""),sign:"".concat(p)}}},{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,bd)&&(n=n.replace(this.RULE[bd].reg,(function(e,n,r,A){return""===Cl(A).call(A)?e:t.getCacheWithSpace(t.pushCache(e),e,!0)}))),this.test(n,Cd)&&(n=n.replace(this.RULE[Cd].reg,(function(e,n,r){return""===Cl(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,bd)&&(r=r.replace(this.RULE[bd].reg,(function(e,r,A,i){var o=Yu(r,n.getLineCount(e.replace(/^\n+/,""))),a=i.replace(/\s+#+\s*$/,""),s=n.$wrapHeader(a,A.length,o,t),l=s.html,c=s.sign;return n.getCacheWithSpace(n.pushCache(l,c,o),e,!0)}))),this.test(r,Cd)&&(r=r.replace(this.RULE[Cd].reg,(function(e,r,A,i){if(n.isContainsCache(A))return e;var o=Yu(r,n.getLineCount(e.replace(/^\n+/,""))),a="-"===i[0]?2:1,s=n.$wrapHeader(A,a,o,t),l=s.html,c=s.sign;return n.getCacheWithSpace(n.pushCache(l,c,o),e,!0)}))),r}},{key:"afterMakeHtml",value:function(e){var t=wd(ji(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=ou(e,"g",!0);var t={begin:"(?:^|\\n)(\\n*)(?:\\h*(#{1,6}))",content:"(.+?)",end:"(?=$|\\n)"};return this.strict&&(t.begin+="(?=\\h+)"),t.reg=ou(t,"g",!0),{setext:e,atx:t}}}]),n}(If);function Ed(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}Gi(xd,"HOOK_NAME","header");var Fd=function(e){Bi(n,e);var t=Ed(n);function n(){return ui(this,n),t.apply(this,arguments)}return di(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}(ju);Gi(Fd,"HOOK_NAME","transfer");var Ud=a.TypeError,Sd=function(e){return function(t,n,r,A){ee(n);var i=se(t),o=L(i),a=Mt(i),s=e?a-1:0,l=e?-1:1;if(r<2)for(;;){if(s in o){A=o[s],s+=l;break}if(s+=l,e?s<0:a<=s)throw Ud("Reduce of empty array with no initial value")}for(;e?s>=0:a>s;s+=l)s in o&&(A=n(A,o[s],s,i));return A}},Ld={left:Sd(!1),right:Sd(!0)},Hd="process"==F(a.process),Id=Ld.left,Md=WA("reduce");Ye({target:"Array",proto:!0,forced:!Md||!Hd&&j>79&&j<83},{reduce:function(e){var t=arguments.length;return Id(this,e,t,t>1?arguments[1]:void 0)}});var _d=tA("Array").reduce,Dd=Array.prototype,Od=function(e){var t=e.reduce;return e===Dd||R(Dd,e)&&t===Dd.reduce?_d:t};function Nd(e,t){var n=mn(e);if(zr){var r=zr(e);t&&(r=AA(r).call(r,(function(t){return fA(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rd(e){for(var t=1;t')).call(A,B,"
    ");return{html:zi(s="".concat(b)).call(s,w.html),sign:m+w.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 A,i,o,a,s=this.$testHeadEmpty(t)?zi(A="~CTHD".concat(t,"~CTHD$~CTBD")).call(A,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 A="":' align="'.concat(e[r],'">')})).replace(/\\\|/g,"|");return{html:zi(i=zi(o=zi(a='
    \n ')).call(i,c,"
    "),sign:l}}},{key:"makeHtml",value:function(e,t){var n=this,r=e;return this.test(r,$d)&&(r=r.replace(this.RULE[$d].reg,(function(e,r){var A,i=n.getLineCount(e,r),o=Zu(A=Cl(e).call(e).split(/\n/)).call(A,(function(e){var t;return Cl(t=String(e)).call(t)})),a=n.$parseTable(o,t,i),s=a.html,l=a.sign;return n.getCacheWithSpace(n.pushCache(s,l,i),e)}))),this.test(r,Kd)&&(r=r.replace(this.RULE[Kd].reg,(function(e,r){var A,i=n.getLineCount(e,r),o=Zu(A=Cl(e).call(e).split(/\n/)).call(A,(function(e){var t;return Cl(t=String(e)).call(t)})),a=n.$parseTable(o,t,i),s=a.html,l=a.sign;return n.getCacheWithSpace(n.pushCache(s,l,i),e)}))),r}},{key:"test",value:function(e,t){return this.RULE[t].reg&&this.RULE[t].reg.test(e)}},{key:"rule",value:function(){return yu()}}]),n}(If);function Vd(){return"object"===("undefined"==typeof window?"undefined":Ki(window))}function jd(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}Gi(Xd,"HOOK_NAME","table");var Gd=function(e){Bi(n,e);var t=jd(n);function n(e){var r;return ui(this,n),(r=t.call(this,{needCache:!0})).classicBr=nf("classicBr")?rf():e.globalConfig.classicBr,r}return di(n,[{key:"beforeMakeHtml",value:function(e){var t=this;return this.test(e)?e.replace(this.RULE.reg,(function(e,n,r){var A,i;if(0===r)return e;var o,a,s=null!==(A=null===(i=n.match(/\n/g))||void 0===i?void 0:i.length)&&void 0!==A?A:0,l="br".concat(s),c="";Vd()?c=t.classicBr?zi(o=''):zi(a='

     

    '):c=t.classicBr?"":"
    ";var u=t.pushCache(c,l,s);return"\n\n".concat(u,"\n")})):e}},{key:"makeHtml",value:function(e,t){return e}},{key:"rule",value:function(){var e={begin:"(?:\\n)",end:"",content:"((?:\\h*\\n){2,})"};return e.reg=ou(e,"g",!0),e}}]),n}(If);function Wd(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}Gi(Gd,"HOOK_NAME","br");var Jd=function(e){Bi(n,e);var t=Wd(n);function n(){return ui(this,n),t.call(this,{needCache:!0})}return di(n,[{key:"beforeMakeHtml",value:function(e){var t=this;return e.replace(this.RULE.reg,(function(e,n){var r,A=(n.match(/\n/g)||[]).length+1,i="hr".concat(A);return qu(e,t.pushCache(zi(r='
    '),i))}))}},{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}(If);Gi(Jd,"HOOK_NAME","hr");var zd={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=vc(t,2),A=r[0],i=r[1];return A&&(n=' width="'.concat(A.replace(/[ #]*/g,""),'"')),i&&(n+=' height="'.concat(i.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 A=0;A')).call(f,Ef(r||""),"");return zi(v="".concat(n)).call(v,a.videoWrapper?a.videoWrapper(A):Q)}return t},eg=function(e){Bi(n,e);var t=qd(n);function n(e){var r,A=e.config,i=e.globalConfig;return ui(this,n),(r=t.call(this,null)).urlProcessor=i.urlProcessor,r.extendMedia={tag:["video","audio"],replacer:{video:function(e,t,n,r,o,a){return Yd("video",e,t,n,r,o,a,A,i)},audio:function(e,t,n,r,o,a){return Yd("audio",e,t,n,r,o,a,A,i)}}},r.RULE=r.rule(r.extendMedia),r}return di(n,[{key:"toHtml",value:function(e,t,n,r,A,i,o){var a=void 0===r?"ref":"url",s="";if("ref"===a)return e;if("url"===a){var l,c,u,f,h,d,g,p,m=zd.processExtendAttributesInAlt(n),v=zd.processExtendStyleInAlt(n),y=v.extendStyles,w=v.extendClasses;y&&(y=' style="'.concat(y,'" ')),w&&(w=' class="'.concat(w,'" ')),s=A&&""!==Cl(A).call(A)?' title="'.concat(Ef(A.replace(/["']/g,"")),'"'):"";var B,b="src",C=this.$engine.$cherry.options;if(C.callback&&C.callback.beforeImageMounted){var Q=C.callback.beforeImageMounted(b,r);b=Q.srcProp||b,B=Q.src||r}var k=o?o.replace(/[{}]/g,"").replace(/([^=\s]+)=([^\s]+)/g,'$1="$2"').replace(/&/g,"&"):"";return zi(l=zi(c=zi(u=zi(f=zi(h=zi(d=zi(g=zi(p="".concat(t,"')).call(u,Ef(n||")}return e}},{key:"toMediaHtml",value:function(e,t,n,r,A,i,o,a,s){var l,c;if(!this.extendMedia.replacer[n])return e;for(var u=arguments.length,f=new Array(u>9?u-9:0),h=9;h-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,i})):(t.type="blank",e)}var ag=di((function e(){ui(this,e),this.index=0,this.space=0,this.type="",this.start=1,this.listStyle="",this.strs=[],this.children=[],this.lines=0})),sg=function(e){Bi(n,e);var t=rg(n);function n(e){var r,A=e.config;return ui(this,n),(r=t.call(this,{needCache:!0})).config=A||{},r.tree=[],r.emptyLines=0,r.indentSpace=Math.max(r.config.indentSpace,2),r}return di(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]=ng(ng({},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,A=0;Ai.space;)o-=1;var a=i.space,s=this.tree[o].space;a".concat(s.strs.join("
    "),"

    ");s.lines+=o.getLineCount(s.strs.join("\n"));var u=s.children.length?o.renderTree(n):"";e.lines+=s.lines,a+=s.lines;return/<\/span>/.test(c)&&(l.class+=" check-list-item"),zi(r=zi(A=zi(i="".concat(t,"")).call(A,c)).call(r,u,"")}),"");return void 0===e.parent&&(s["data-lines"]=0===e.index?a+this.emptyLines:a,s["data-sign"]=this.sign),t[0]&&"ol"===n&&(s.start=this.tree[t[0]].start),s.class="cherry-list__".concat(this.tree[t[0]].listStyle),zi(r=zi(A=zi(i="<".concat(n)).call(i,Ag(s),">")).call(A,l,"")}},{key:"renderTree",value:function(e){var t=this,n=0,r=this.tree[e],A=r.children;return Od(A).call(A,(function(e,i,o){if(0===o)return e;if(t.tree[A[o]].type===t.tree[A[o-1]].type)return e;var a=t.renderSubTree(r,Bc(A).call(A,n,o),t.tree[A[o-1]].type);return n=o,e+a}),"")+(A.length?this.renderSubTree(r,Bc(A).call(A,n,A.length),this.tree[A[A.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 A=e.replace(/~0$/g,"").replace(/^\n+/,"");this.buildTree(function(e){return e.replace(/^((?:|[\t ]+)[*+-]\s+)\[(\s|x)\]/gm,(function(e,t,n){var r,A=/\s/.test(n)?'':'';return zi(r="".concat(t)).call(r,A)}))}(A),t);var i=this.renderTree(0);return this.pushCache(i,this.sign,this.$getLineNum(e))}},{key:"$getLineNum",value:function(e){var t,n,r,A,i=null!==(t=null===(n=e.match(/^\n\n/))||void 0===n?void 0:n.length)&&void 0!==t?t:0;return null!==(r=null===(A=e.replace(/^\n+/,"").replace(/\n+$/,"\n").match(/\n/g))||void 0===A?void 0:A.length)&&void 0!==r?r:0+i}},{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}(If);function lg(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}function cg(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}Gi(sg,"HOOK_NAME","list");var ug=function(e){Bi(n,e);var t=lg(n);function n(){return ui(this,n),t.call(this,{needCache:!0})}return di(n,[{key:"handleMatch",value:function(e,t){var n=this;return e.replace(this.RULE.reg,(function(e,r,A){for(var i,o,a=t(A),s=a.sign,l=a.html,c=n.signWithCache(l)||s,u=n.getLineCount(e,r),f=/^(([ \t]{0,3}([*+-]|\d+[.]|[a-z]\.|[I一二三四五六七八九十]+\.)[ \t]+)([^\r]+?)($|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.]|[a-z]\.|[I一二三四五六七八九十]+\.)[ \t]+)))/,h=cg(r),d=l.split("\n"),g=/^[>\s]+/,p=/>/g,m=1,v=0,y=zi(i=zi(o='
    '),w=0;d[w];w++){if(0!==w){var B=cg(d[w]);if(B<=h&&f.test(d[w]))break;h=B}var b=d[w].replace(g,(function(e){var t=e.match(p);return v=t&&t.length>m?t.length:m,""}));if(m===v&&0!==w&&(y+="
    "),m").call("
    ",v-m),m=v;y+=b}return y+=Hc("
    ").call("
    ",m),n.getCacheWithSpace(n.pushCache(y,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=ou(e,"g"),e}}]),n}(If);function fg(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}Gi(ug,"HOOK_NAME","blockquote");var hg=function(e){Bi(n,e);var t=fg(n);function n(e){var r,A=e.config,i=e.globalConfig;return ui(this,n),(r=t.call(this,{config:A})).urlProcessor=i.urlProcessor,r.enableShortLink=!!A.enableShortLink,r.shortLinkLength=A.shortLinkLength,r.target=A.target?'target="'.concat(A.target,'"'):A.openNewPage?'target="_blank"':"",r.rel=A.rel?'rel="'.concat(A.rel,'"'):"",r}return di(n,[{key:"isLinkInHtmlAttribute",value:function(e,t,n){for(var r,A=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=A.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,A=/[^<]*<\/a>/g;null!==(r=A.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)&&(fu.test(e)||du.test(e))?e.replace(this.RULE.reg,(function(e,t,r,A,i,o,a){var s,l,c;if(n.isLinkInHtmlAttribute(a,o,r.length+A.length)||n.isLinkInATag(a,o,r.length+A.length))return e;var u=r.toLowerCase(),f="",h="",d=!0;if(("<"!==t&&"<"!==t||">"!==i&&">"!==i)&&(f=t,h=i,d=!1),""===Cl(A).call(A)||!d&&""===u&&!/www\./.test(A))return e;switch(u){case"javascript:":return e;case"mailto:":var g,p,m,v,y,w;return hu.test(A)?zi(g=zi(p=zi(m=zi(v=zi(y="".concat(f,'")).call(p,Ef(A),"")).call(g,h):e;case"":var B,b,C,Q,k,T,x,E,F,U;if(f===h||!d)return hu.test(A)?zi(B=zi(b=zi(C=zi(Q=zi(k="".concat(f,'")).call(b,Ef(A),"")).call(B,h):pu.test(A)?zi(T=zi(x="".concat(f)).call(x,n.renderLink("//".concat(A),A))).call(T,h):e;if(d)return hu.test(A)?zi(E=zi(F=zi(U='")).call(E,Ef(A),""):mu.test(A)||pu.test(A)?n.renderLink(A):e;default:return mu.test(A)?zi(s=zi(l="".concat(f)).call(l,n.renderLink(zi(c="".concat(u)).call(c,A)))).call(s,h):e}return e})):e}},{key:"rule",value:function(){var e,t={begin:"(?)"};return t.reg=ou(t,"ig"),t}},{key:"renderLink",value:function(e,t){var n,r,A,i,o=t;if("string"!=typeof o)if(this.enableShortLink){var a,s=e.replace(/^https?:\/\//i,"");o=zi(a="".concat(s.substring(0,this.shortLinkLength))).call(a,s.length>this.shortLinkLength?"...":"")}else o=e;var l=this.urlProcessor(e,"autolink");return zi(n=zi(r=zi(A=zi(i="')).call(n,Ef(o).replace(/_/g,"\\_"),"")}}]),n}(ju);function dg(){var e,t,n,r;Vd()&&(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)}Gi(hg,"HOOK_NAME","autoLink");var gg=["&","<",">",'"',"'"],pg=function(e){var t=e.replace(new RegExp(cu,"g"),(function(e){return-1!==yc(gg).call(gg,e)?xf(e):"\\".concat(e)}));return t},mg=r((function(e,t){e.exports=function(){const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:A}=Object;let{freeze:i,seal:o,create:a}=Object,{apply:s,construct:l}="undefined"!=typeof Reflect&&Reflect;i||(i=function(e){return e}),o||(o=function(e){return e}),s||(s=function(e,t,n){return e.apply(t,n)}),l||(l=function(e,t){return new e(...t)});const c=B(Array.prototype.forEach),u=B(Array.prototype.pop),f=B(Array.prototype.push),h=B(String.prototype.toLowerCase),d=B(String.prototype.toString),g=B(String.prototype.match),p=B(String.prototype.replace),m=B(String.prototype.indexOf),v=B(String.prototype.trim),y=B(RegExp.prototype.test),w=b(TypeError);function B(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),A=1;A2&&void 0!==arguments[2]?arguments[2]:h;t&&t(e,null);let i=r.length;for(;i--;){let t=r[i];if("string"==typeof t){const e=A(t);e!==t&&(n(r)||(r[i]=e),t=e)}e[t]=!0}return e}function Q(e){for(let t=0;t/gm),R=o(/\${[\w\W]*}/gm),P=o(/^data-[\-\w.\u00B7-\uFFFF]/),K=o(/^aria-[\-\w]+$/),$=o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),X=o(/^(?:\w+script|data):/i),V=o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),j=o(/^html$/i);var G=Object.freeze({__proto__:null,MUSTACHE_EXPR:O,ERB_EXPR:N,TMPLIT_EXPR:R,DATA_ATTR:P,ARIA_ATTR:K,IS_ALLOWED_URI:$,IS_SCRIPT_OR_DATA:X,ATTR_WHITESPACE:V,DOCTYPE_NAME:j});const W=function(){return"undefined"==typeof window?null:window},J=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const A="dompurify"+(n?"#"+n:"");try{return e.createPolicy(A,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+A+" could not be created."),null}};function z(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:W();const n=e=>z(e);if(n.version="3.0.8",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;let{document:r}=t;const A=r,o=A.currentScript,{DocumentFragment:s,HTMLTemplateElement:l,Node:B,Element:b,NodeFilter:Q,NamedNodeMap:O=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:N,DOMParser:R,trustedTypes:P}=t,K=b.prototype,X=T(K,"cloneNode"),V=T(K,"nextSibling"),Z=T(K,"childNodes"),q=T(K,"parentNode");if("function"==typeof l){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let Y,ee="";const{implementation:te,createNodeIterator:ne,createDocumentFragment:re,getElementsByTagName:Ae}=r,{importNode:ie}=A;let oe={};n.isSupported="function"==typeof e&&"function"==typeof q&&te&&void 0!==te.createHTMLDocument;const{MUSTACHE_EXPR:ae,ERB_EXPR:se,TMPLIT_EXPR:le,DATA_ATTR:ce,ARIA_ATTR:ue,IS_SCRIPT_OR_DATA:fe,ATTR_WHITESPACE:he}=G;let{IS_ALLOWED_URI:de}=G,ge=null;const pe=C({},[...x,...E,...F,...S,...H]);let me=null;const ve=C({},[...I,...M,..._,...D]);let ye=Object.seal(a(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}})),we=null,Be=null,be=!0,Ce=!0,Qe=!1,ke=!0,Te=!1,xe=!1,Ee=!1,Fe=!1,Ue=!1,Se=!1,Le=!1,He=!0,Ie=!1;const Me="user-content-";let _e=!0,De=!1,Oe={},Ne=null;const Re=C({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Pe=null;const Ke=C({},["audio","video","img","source","image","track"]);let $e=null;const Xe=C({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ve="http://www.w3.org/1998/Math/MathML",je="http://www.w3.org/2000/svg",Ge="http://www.w3.org/1999/xhtml";let We=Ge,Je=!1,ze=null;const Ze=C({},[Ve,je,Ge],d);let qe=null;const Ye=["application/xhtml+xml","text/html"],et="text/html";let tt=null,nt=null;const rt=r.createElement("form"),At=function(e){return e instanceof RegExp||e instanceof Function},it=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!nt||nt!==e){if(e&&"object"==typeof e||(e={}),e=k(e),qe=-1===Ye.indexOf(e.PARSER_MEDIA_TYPE)?et:e.PARSER_MEDIA_TYPE,tt="application/xhtml+xml"===qe?d:h,ge="ALLOWED_TAGS"in e?C({},e.ALLOWED_TAGS,tt):pe,me="ALLOWED_ATTR"in e?C({},e.ALLOWED_ATTR,tt):ve,ze="ALLOWED_NAMESPACES"in e?C({},e.ALLOWED_NAMESPACES,d):Ze,$e="ADD_URI_SAFE_ATTR"in e?C(k(Xe),e.ADD_URI_SAFE_ATTR,tt):Xe,Pe="ADD_DATA_URI_TAGS"in e?C(k(Ke),e.ADD_DATA_URI_TAGS,tt):Ke,Ne="FORBID_CONTENTS"in e?C({},e.FORBID_CONTENTS,tt):Re,we="FORBID_TAGS"in e?C({},e.FORBID_TAGS,tt):{},Be="FORBID_ATTR"in e?C({},e.FORBID_ATTR,tt):{},Oe="USE_PROFILES"in e&&e.USE_PROFILES,be=!1!==e.ALLOW_ARIA_ATTR,Ce=!1!==e.ALLOW_DATA_ATTR,Qe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ke=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Te=e.SAFE_FOR_TEMPLATES||!1,xe=e.WHOLE_DOCUMENT||!1,Ue=e.RETURN_DOM||!1,Se=e.RETURN_DOM_FRAGMENT||!1,Le=e.RETURN_TRUSTED_TYPE||!1,Fe=e.FORCE_BODY||!1,He=!1!==e.SANITIZE_DOM,Ie=e.SANITIZE_NAMED_PROPS||!1,_e=!1!==e.KEEP_CONTENT,De=e.IN_PLACE||!1,de=e.ALLOWED_URI_REGEXP||$,We=e.NAMESPACE||Ge,ye=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&At(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ye.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&At(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ye.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ye.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Te&&(Ce=!1),Se&&(Ue=!0),Oe&&(ge=C({},H),me=[],!0===Oe.html&&(C(ge,x),C(me,I)),!0===Oe.svg&&(C(ge,E),C(me,M),C(me,D)),!0===Oe.svgFilters&&(C(ge,F),C(me,M),C(me,D)),!0===Oe.mathMl&&(C(ge,S),C(me,_),C(me,D))),e.ADD_TAGS&&(ge===pe&&(ge=k(ge)),C(ge,e.ADD_TAGS,tt)),e.ADD_ATTR&&(me===ve&&(me=k(me)),C(me,e.ADD_ATTR,tt)),e.ADD_URI_SAFE_ATTR&&C($e,e.ADD_URI_SAFE_ATTR,tt),e.FORBID_CONTENTS&&(Ne===Re&&(Ne=k(Ne)),C(Ne,e.FORBID_CONTENTS,tt)),_e&&(ge["#text"]=!0),xe&&C(ge,["html","head","body"]),ge.table&&(C(ge,["tbody"]),delete we.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Y=e.TRUSTED_TYPES_POLICY,ee=Y.createHTML("")}else void 0===Y&&(Y=J(P,o)),null!==Y&&"string"==typeof ee&&(ee=Y.createHTML(""));i&&i(e),nt=e}},ot=C({},["mi","mo","mn","ms","mtext"]),at=C({},["foreignobject","desc","title","annotation-xml"]),st=C({},["title","style","font","a","script"]),lt=C({},[...E,...F,...U]),ct=C({},[...S,...L]),ut=function(e){let t=q(e);t&&t.tagName||(t={namespaceURI:We,tagName:"template"});const n=h(e.tagName),r=h(t.tagName);return!!ze[e.namespaceURI]&&(e.namespaceURI===je?t.namespaceURI===Ge?"svg"===n:t.namespaceURI===Ve?"svg"===n&&("annotation-xml"===r||ot[r]):Boolean(lt[n]):e.namespaceURI===Ve?t.namespaceURI===Ge?"math"===n:t.namespaceURI===je?"math"===n&&at[r]:Boolean(ct[n]):e.namespaceURI===Ge?!(t.namespaceURI===je&&!at[r])&&!(t.namespaceURI===Ve&&!ot[r])&&!ct[n]&&(st[n]||!lt[n]):!("application/xhtml+xml"!==qe||!ze[e.namespaceURI]))},ft=function(e){f(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},ht=function(e,t){try{f(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){f(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!me[e])if(Ue||Se)try{ft(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},dt=function(e){let t=null,n=null;if(Fe)e=""+e;else{const t=g(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===qe&&We===Ge&&(e=''+e+"");const A=Y?Y.createHTML(e):e;if(We===Ge)try{t=(new R).parseFromString(A,qe)}catch(e){}if(!t||!t.documentElement){t=te.createDocument(We,"template",null);try{t.documentElement.innerHTML=Je?ee:A}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),We===Ge?Ae.call(t,xe?"html":"body")[0]:xe?t.documentElement:i},gt=function(e){return ne.call(e.ownerDocument||e,e,Q.SHOW_ELEMENT|Q.SHOW_COMMENT|Q.SHOW_TEXT,null)},pt=function(e){return e instanceof N&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof O)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},mt=function(e){return"function"==typeof B&&e instanceof B},vt=function(e,t,r){oe[e]&&c(oe[e],(e=>{e.call(n,t,r,nt)}))},yt=function(e){let t=null;if(vt("beforeSanitizeElements",e,null),pt(e))return ft(e),!0;const r=tt(e.nodeName);if(vt("uponSanitizeElement",e,{tagName:r,allowedTags:ge}),e.hasChildNodes()&&!mt(e.firstElementChild)&&y(/<[/\w]/g,e.innerHTML)&&y(/<[/\w]/g,e.textContent))return ft(e),!0;if(!ge[r]||we[r]){if(!we[r]&&Bt(r)){if(ye.tagNameCheck instanceof RegExp&&y(ye.tagNameCheck,r))return!1;if(ye.tagNameCheck instanceof Function&&ye.tagNameCheck(r))return!1}if(_e&&!Ne[r]){const t=q(e)||e.parentNode,n=Z(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r)t.insertBefore(X(n[r],!0),V(e))}return ft(e),!0}return e instanceof b&&!ut(e)?(ft(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!y(/<\/no(script|embed|frames)/i,e.innerHTML)?(Te&&3===e.nodeType&&(t=e.textContent,c([ae,se,le],(e=>{t=p(t,e," ")})),e.textContent!==t&&(f(n.removed,{element:e.cloneNode()}),e.textContent=t)),vt("afterSanitizeElements",e,null),!1):(ft(e),!0)},wt=function(e,t,n){if(He&&("id"===t||"name"===t)&&(n in r||n in rt))return!1;if(Ce&&!Be[t]&&y(ce,t));else if(be&&y(ue,t));else if(!me[t]||Be[t]){if(!(Bt(e)&&(ye.tagNameCheck instanceof RegExp&&y(ye.tagNameCheck,e)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(e))&&(ye.attributeNameCheck instanceof RegExp&&y(ye.attributeNameCheck,t)||ye.attributeNameCheck instanceof Function&&ye.attributeNameCheck(t))||"is"===t&&ye.allowCustomizedBuiltInElements&&(ye.tagNameCheck instanceof RegExp&&y(ye.tagNameCheck,n)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(n))))return!1}else if($e[t]);else if(y(de,p(n,he,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==m(n,"data:")||!Pe[e])if(Qe&&!y(fe,p(n,he,"")));else if(n)return!1;return!0},Bt=function(e){return e.indexOf("-")>0},bt=function(e){vt("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:me};let A=t.length;for(;A--;){const i=t[A],{name:o,namespaceURI:a,value:s}=i,l=tt(o);let f="value"===o?s:v(s);if(r.attrName=l,r.attrValue=f,r.keepAttr=!0,r.forceKeepAttr=void 0,vt("uponSanitizeAttribute",e,r),f=r.attrValue,r.forceKeepAttr)continue;if(ht(o,e),!r.keepAttr)continue;if(!ke&&y(/\/>/i,f)){ht(o,e);continue}Te&&c([ae,se,le],(e=>{f=p(f,e," ")}));const h=tt(e.nodeName);if(wt(h,l,f)){if(!Ie||"id"!==l&&"name"!==l||(ht(o,e),f=Me+f),Y&&"object"==typeof P&&"function"==typeof P.getAttributeType)if(a);else switch(P.getAttributeType(h,l)){case"TrustedHTML":f=Y.createHTML(f);break;case"TrustedScriptURL":f=Y.createScriptURL(f)}try{a?e.setAttributeNS(a,o,f):e.setAttribute(o,f),u(n.removed)}catch(e){}}}vt("afterSanitizeAttributes",e,null)},Ct=function e(t){let n=null;const r=gt(t);for(vt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)vt("uponSanitizeShadowNode",n,null),yt(n)||(n.content instanceof s&&e(n.content),bt(n));vt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,o=null,a=null;if(Je=!e,Je&&(e="\x3c!--\x3e"),"string"!=typeof e&&!mt(e)){if("function"!=typeof e.toString)throw w("toString is not a function");if("string"!=typeof(e=e.toString()))throw w("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Ee||it(t),n.removed=[],"string"==typeof e&&(De=!1),De){if(e.nodeName){const t=tt(e.nodeName);if(!ge[t]||we[t])throw w("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof B)r=dt("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),1===i.nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!Ue&&!Te&&!xe&&-1===e.indexOf("<"))return Y&&Le?Y.createHTML(e):e;if(r=dt(e),!r)return Ue?null:Le?ee:""}r&&Fe&&ft(r.firstChild);const l=gt(De?e:r);for(;o=l.nextNode();)yt(o)||(o.content instanceof s&&Ct(o.content),bt(o));if(De)return e;if(Ue){if(Se)for(a=re.call(r.ownerDocument);r.firstChild;)a.appendChild(r.firstChild);else a=r;return(me.shadowroot||me.shadowrootmode)&&(a=ie.call(A,a,!0)),a}let u=xe?r.outerHTML:r.innerHTML;return xe&&ge["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&y(j,r.ownerDocument.doctype.name)&&(u="\n"+u),Te&&c([ae,se,le],(e=>{u=p(u,e," ")})),Y&&Le?Y.createHTML(u):u},n.setConfig=function(){it(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Ee=!0},n.clearConfig=function(){nt=null,Ee=!1},n.isValidAttribute=function(e,t,n){nt||it({});const r=tt(e),A=tt(t);return wt(r,A,n)},n.addHook=function(e,t){"function"==typeof t&&(oe[e]=oe[e]||[],f(oe[e],t))},n.removeHook=function(e){if(oe[e])return u(oe[e])},n.removeHooks=function(e){oe[e]&&(oe[e]=[])},n.removeAllHooks=function(){oe={}},n}var Z=z();return Z}()})),vg=mg(window);function yg(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var wg=function(e){Bi(n,e);var t=yg(n);function n(e){var r,A,i=e.config;return ui(this,n),Gi(gi(A=t.call(this,{needCache:!0})),"engine","MathJax"),Gi(gi(A),"katex",void 0),Gi(gi(A),"MathJax",void 0),A.engine=Vd()?null!==(r=i.engine)&&void 0!==r?r:"MathJax":"node",A}return di(n,[{key:"toHtml",value:function(e,t,n,r){var A,i,o;eo(dg).call(dg,this)("engine");var a=e.replace(/^[ \f\r\t\v]*/,"").replace(/\s*$/,""),s=t.replace(/^[ \f\r\t\v]*\n/,""),l=this.$engine.md5(e),c=this.getLineCount(a,s);/\n/.test(t)||(c-=1),/\n\s*$/.test(e)||(c-=1),c=c>0?c:0;var u=zi(A=zi(i='
    $$')).call(A,pg(r),"$$
    ");if("katex"===this.engine){var f,h,d=this.katex.renderToString(r,{throwOnError:!1,displayMode:!0});u=zi(f=zi(h='
    ')).call(f,d,"
    ")}if(null!==(o=this.MathJax)&&void 0!==o&&o.tex2svg){var g,p,m=Gc(this.MathJax.tex2svg(r),!0);u=zi(g=zi(p='
    ')).call(g,m,"
    ")}return u=vg.sanitize(u),n+this.getCacheWithSpace(this.pushCache(u,l,c),e)}},{key:"beforeMakeHtml",value:function(e){var t,n;return au()?e.replace(this.RULE.reg,eo(n=this.toHtml).call(n,this)):Mh(e,this.RULE.reg,eo(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(r,pg(n),"$
    ");if("katex"===this.engine&&null!==(i=this.katex)&&void 0!==i&&i.renderToString){var u,f,h=this.katex.renderToString(n,{throwOnError:!1});c=zi(u=zi(f="".concat(t,'')).call(u,h,"")}if(null!==(o=this.MathJax)&&void 0!==o&&o.tex2svg){var d,g,p=Gc(this.MathJax.tex2svg(n,{em:12,ex:6,display:!1}),!0);c=zi(d=zi(g="".concat(t,'')).call(d,p,"")}return c=vg.sanitize(c),this.pushCache(c,If.IN_PARAGRAPH_CACHE_KEY_PREFIX+l)}},{key:"beforeMakeHtml",value:function(e){var t=this,n=e;return n=n.replace(yu(!0),(function(e){var n;return Zu(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,eo(n=this.toHtml).call(n,this)):Mh(e,this.RULE.reg,eo(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),i=r>2?arguments[2]:void 0,o=void 0===i?n:Lt(i,n);o>A;)t[A++]=e;return t}});var Cg=tA("Array").fill,Qg=Array.prototype,kg=function(e){var t=e.fill;return e===Qg||R(Qg,e)&&t===Qg.fill?Cg:t};function Tg(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}function xg(e){return e}var Eg={tocStyle:"plain",tocNodeClass:"toc-li",tocContainerClass:"toc",tocTitleClass:"toc-title",linkProcessor:xg},Fg='

     

    ',Ug=function(e){Bi(n,e);var t=Tg(n);function n(e){var r,A;e.externals;var i=e.config;return ui(this,n),Gi(gi(A=t.call(this,{needCache:!0})),"tocStyle","nested"),Gi(gi(A),"tocNodeClass","toc-li"),Gi(gi(A),"tocContainerClass","toc"),Gi(gi(A),"tocTitleClass","toc-title"),Gi(gi(A),"linkProcessor",xg),Gi(gi(A),"baseLevel",1),Gi(gi(A),"isFirstTocToken",!0),Gi(gi(A),"allowMultiToc",!1),ti(r=mn(Eg)).call(r,(function(e){A[e]=i[e]||Eg[e]})),A}return di(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 A;if(!t.allowMultiToc&&!t.isFirstTocToken)return zi(A="\n".concat(n)).call(A,Fg);var i=t.pushCache(e);return t.isFirstTocToken=!1,qu(e,i)}))),this.test(n,"standard")&&(n=n.replace(this.RULE.standard.reg,(function(e,n,r){var A;return t.allowMultiToc||t.isFirstTocToken?(t.isFirstTocToken=!1,qu(e,t.pushCache(e))):zi(A="\n".concat(n)).call(A,Fg)}))),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 zi(n=zi(r=zi(A=zi(i=zi(o='
  • ')).call(o,s,'')).call(r,e.text,"")).call(n,a?"
  • ":"")}},{key:"$makePlainToc",value:function(e){var t=this,n=Zu(e).call(e,(function(e){return t.$makeTocItem(e,!0)}));return n.join("")}},{key:"$makeNestedToc",value:function(e){var t,n,r=this,A=0,i=kg(t=new Array(7)).call(t,!1),o=kg(n=new Array(7)).call(n,!1),a="";ti(e).call(e,(function(e){var t=e.level;if(0===A){for(var n=t;n>=r.baseLevel;n--)a+="
      ",o[n]=!0;return a+=r.$makeTocItem(e,!1,!1),i[t]=!0,void(A=t)}if(t=t;s--)i[s]&&(a+="",i[s]=!1),o[s]&&s>t&&(a+="
    ",o[s]=!1);i[t]=!0,a+=r.$makeTocItem(e,!1,!1),A=t}else if(t===A)i[A]&&(a+=""),a+=r.$makeTocItem(e,!1,!1),i[t]=!0,o[t]=!0;else{for(var l=A+1;l<=t;l++)a+="
      ",o[l]=!0;i[t]=!0,a+=r.$makeTocItem(e,!1,!1),A=t}}));for(var s=A;s>=this.baseLevel;s--)i[s]&&(a+="",i[s]=!1),o[s]&&(a+="
    ",o[s]=!1);return a}},{key:"$makeToc",value:function(e,t,n){var r,A,i,o=Yu(n,1),a=zi(r=zi(A=zi(i='');return a+='

    目录

    '),e.length<=0?"":(this.baseLevel=Math.min.apply(Math,Sh(Zu(e).call(e,(function(e){return e.level})))),"nested"===this.tocStyle?a+=this.$makeNestedToc(e):a+=this.$makePlainToc(e),a+="
    ")}},{key:"afterMakeHtml",value:function(e){var t=this,r=wd(ji(n.prototype),"afterMakeHtml",this).call(this,e),A=[],i="";return r.replace(/]*? id="([^"]+?)"[^>]*?>(?:|)(.+?)<\/h\1>/g,(function(e,t,n,r){var o,a=r.replace(/~fn#[0-9]+#/g,"");A.push({level:+t,id:n,text:a}),i+=zi(o="".concat(t)).call(o,n)})),i=this.$engine.md5(i),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(A,i,n)}))).replace(this.RULE.standard.reg,(function(e,n){return t.$makeToc(A,i,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}(If);function Sg(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}Gi(Ug,"HOOK_NAME","toc");var Lg=function(e){Bi(n,e);var t=Sg(n);function n(e){var r;return e.externals,e.config,ui(this,n),(r=t.call(this)).footnoteCache={},r.footnoteMap={},r.footnote=[],r}return di(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,A,i,o,a;if(this.footnoteMap[e])return this.footnoteMap[e];var s=this.footnote.length+1,l={};l.fn=zi(n=zi(r=zi(A='[')).call(n,s,"]"),l.fnref=zi(i=zi(o=zi(a='[')).call(i,s,"]"),l.num=s,l.note=Cl(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=Zu(t).call(t,(function(e){var t;return zi(t='
    \n'.concat(e.fnref)).call(t,e.note,"\n
    ")})).join(""),r=this.$engine.md5(n);return n=zi(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,A){return t.pushFootnoteCache(r,A),(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=ou(e,"g",!0),e}}]),n}(If);function Hg(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}Gi(Lg,"HOOK_NAME","footnote");var Ig=function(e){Bi(n,e);var t=Hg(n);function n(e){var r;return e.externals,e.config,ui(this,n),(r=t.call(this)).commentCache={},r}return di(n,[{key:"$cleanCache",value:function(){this.commentCache={}}},{key:"pushCommentReferenceCache",value:function(e,t){var n,r=Lh(t.split(/[ ]+/g)),A=r[0],i=Bc(r).call(r,1),o=ud.set(A);this.commentCache["".concat(e).toLowerCase()]=zi(n=[o]).call(n,Sh(i)).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,A){var i;return t.pushCommentReferenceCache(r,A),(null!==(i=e.match(/\n/g))&&void 0!==i?i:[]).join("")}));n=n.replace(/(\[[^\]\n]+?\])?(?:\[([^\]\n]+?)\])/g,(function(e,n,r){var A,i,o=t.getCommentReferenceCache(r);return o?n?zi(i="".concat(n,"(")).call(i,o,")"):zi(A="[".concat(r,"](")).call(A,o,")"):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=ou(e,"g",!0),e}}]),n}(If);Gi(Ig,"HOOK_NAME","commentReference");var Mg=nr.some,_g=WA("some");Ye({target:"Array",proto:!0,forced:!_g},{some:function(e){return Mg(this,e,arguments.length>1?arguments[1]:void 0)}});var Dg=tA("Array").some,Og=Array.prototype,Ng=function(e){var t=e.some;return e===Og||R(Og,e)&&t===Og.some?Dg:t};function Rg(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var Pg=["href","src"];vg.addHook("afterSanitizeAttributes",(function(e){ti(Pg).call(Pg,(function(t){if(e.hasAttribute(t)){var n=e.getAttribute(t);e.setAttribute(t,n.replace(/\\/g,"%5c"))}}))}));var Kg=function(e){Bi(n,e);var t=Rg(n);function n(){return ui(this,n),t.call(this,{needCache:!0})}return di(n,[{key:"isAutoLinkTag",value:function(e){var t=[/^<([a-z][a-z0-9+.-]{1,31}:\/\/[^<> `]+)>$/i,/^<(mailto:[^<> `]+)>$/i,/^<([^()<>[\]:'@\\,"\s`]+@[^()<>[\]:'@\\,"\s`.]+\.[^()<>[\]:'@\\,"\s`]+)>$/i];return Ng(t).call(t,(function(t){return t.test(e)}))}},{key:"isHtmlComment",value:function(e){return/^$/.test(e)}},{key:"beforeMakeHtml",value:function(e,t){var n=this;this.$engine.htmlWhiteListAppend?(this.htmlWhiteListAppend=new RegExp("^(".concat(this.$engine.htmlWhiteListAppend,")( |$|/)"),"i"),this.htmlWhiteList=this.$engine.htmlWhiteListAppend.split("|")):(this.htmlWhiteListAppend=!1,this.htmlWhiteList=[]);var r=e;return r=function(e){if("string"!=typeof e)return"";var t=e.replace(/&(\w+);?/g,(function(e,t){return-1===yc(e).call(e,";")||-1===yc(Bf).call(Bf,t.toLowerCase())?e.replace(/&/g,"&"):e}));return t=t.replace(/&#(?!x)(\d*);?/gi,(function(e,t){return bf(t)||-1===yc(e).call(e,";")||t.lenth>7||!Cf(t)?e.replace(/&/g,"&"):e})),t=t.replace(/&#x([0-9a-f]*);?/gi,(function(e,t){if(bf(t))return e.replace(/&/g,"&");var n="0x".concat(t),r=Fc(n,16);return isNaN(r)||-1===yc(e).call(e,";")||t.lenth>6||!Cf(n)?e.replace(/&/g,"&"):e})),t}(r=Ff(r)),r=(r=(r=r.replace(/<[/]?(.*?)>/g,(function(e,t){return Tf.test(t)||n.isAutoLinkTag(e)||n.isHtmlComment(e)||!1!==n.htmlWhiteListAppend&&n.htmlWhiteListAppend.test(t)?e.replace(//g,"$#62;"):e.replace(//g,">")}))).replace(/<(?=\/?(\w|\n|$))/g,"<")).replace(/\$#60;/g,"<").replace(/\$#62;/g,">")}},{key:"makeHtml",value:function(e,t){return e}},{key:"afterMakeHtml",value:function(e){var t=e,n={ALLOW_UNKNOWN_PROTOCOLS:!0,ADD_ATTR:["target"]};if(!1!==this.htmlWhiteListAppend){var r;if(n.ADD_TAGS=this.htmlWhiteList,(this.htmlWhiteListAppend.test("style")||this.htmlWhiteListAppend.test("ALL"))&&(t=t.replace(/| [^>]*>).*?<\/style>/gi,(function(e){return e.replace(/
    /gi,"")}))),this.htmlWhiteListAppend.test("iframe")||this.htmlWhiteListAppend.test("ALL"))n.ADD_ATTR=zi(r=n.ADD_ATTR).call(r,["align","frameborder","height","longdesc","marginheight","marginwidth","name","sandbox","scrolling","seamless","src","srcdoc","width"]),n.SANITIZE_DOM=!1,t=t.replace(/| [^>]*>).*?<\/iframe>/gi,(function(e){return e.replace(/
    /gi,"").replace(/\n/g,"")}));if(this.htmlWhiteListAppend.test("script")||this.htmlWhiteListAppend.test("ALL"))return t=t.replace(/| [^>]*>).*?<\/script>/gi,(function(e){return e.replace(/
    /gi,"")})),t}return Vd()||(n.FORBID_ATTR=["data-sign","data-lines"]),vg.sanitize(t,n)}}]),n}(If);Gi(Kg,"HOOK_NAME","htmlBlock");var $g={"+1":"1f44d","-1":"1f44e",100:"1f4af",1234:"1f522","1st_place_medal":"1f947","2nd_place_medal":"1f948","3rd_place_medal":"1f949","8ball":"1f3b1",a:"1f170",ab:"1f18e",abacus:"1f9ee",abc:"1f524",abcd:"1f521",accept:"1f251",adhesive_bandage:"1fa79",adult:"1f9d1",aerial_tramway:"1f6a1",afghanistan:"1f1e6-1f1eb",airplane:"2708",aland_islands:"1f1e6-1f1fd",alarm_clock:"23f0",albania:"1f1e6-1f1f1",alembic:"2697",algeria:"1f1e9-1f1ff",alien:"1f47d",ambulance:"1f691",american_samoa:"1f1e6-1f1f8",amphora:"1f3fa",anchor:"2693",andorra:"1f1e6-1f1e9",angel:"1f47c",anger:"1f4a2",angola:"1f1e6-1f1f4",angry:"1f620",anguilla:"1f1e6-1f1ee",anguished:"1f627",ant:"1f41c",antarctica:"1f1e6-1f1f6",antigua_barbuda:"1f1e6-1f1ec",apple:"1f34e",aquarius:"2652",argentina:"1f1e6-1f1f7",aries:"2648",armenia:"1f1e6-1f1f2",arrow_backward:"25c0",arrow_double_down:"23ec",arrow_double_up:"23eb",arrow_down:"2b07",arrow_down_small:"1f53d",arrow_forward:"25b6",arrow_heading_down:"2935",arrow_heading_up:"2934",arrow_left:"2b05",arrow_lower_left:"2199",arrow_lower_right:"2198",arrow_right:"27a1",arrow_right_hook:"21aa",arrow_up:"2b06",arrow_up_down:"2195",arrow_up_small:"1f53c",arrow_upper_left:"2196",arrow_upper_right:"2197",arrows_clockwise:"1f503",arrows_counterclockwise:"1f504",art:"1f3a8",articulated_lorry:"1f69b",artificial_satellite:"1f6f0",artist:"1f9d1-1f3a8",aruba:"1f1e6-1f1fc",ascension_island:"1f1e6-1f1e8",asterisk:"002a-20e3",astonished:"1f632",astronaut:"1f9d1-1f680",athletic_shoe:"1f45f",atm:"1f3e7",atom_symbol:"269b",australia:"1f1e6-1f1fa",austria:"1f1e6-1f1f9",auto_rickshaw:"1f6fa",avocado:"1f951",axe:"1fa93",azerbaijan:"1f1e6-1f1ff",b:"1f171",baby:"1f476",baby_bottle:"1f37c",baby_chick:"1f424",baby_symbol:"1f6bc",back:"1f519",bacon:"1f953",badger:"1f9a1",badminton:"1f3f8",bagel:"1f96f",baggage_claim:"1f6c4",baguette_bread:"1f956",bahamas:"1f1e7-1f1f8",bahrain:"1f1e7-1f1ed",balance_scale:"2696",bald_man:"1f468-1f9b2",bald_woman:"1f469-1f9b2",ballet_shoes:"1fa70",balloon:"1f388",ballot_box:"1f5f3",ballot_box_with_check:"2611",bamboo:"1f38d",banana:"1f34c",bangbang:"203c",bangladesh:"1f1e7-1f1e9",banjo:"1fa95",bank:"1f3e6",bar_chart:"1f4ca",barbados:"1f1e7-1f1e7",barber:"1f488",baseball:"26be",basket:"1f9fa",basketball:"1f3c0",basketball_man:"26f9-2642",basketball_woman:"26f9-2640",bat:"1f987",bath:"1f6c0",bathtub:"1f6c1",battery:"1f50b",beach_umbrella:"1f3d6",bear:"1f43b",bearded_person:"1f9d4",bed:"1f6cf",bee:"1f41d",beer:"1f37a",beers:"1f37b",beetle:"1f41e",beginner:"1f530",belarus:"1f1e7-1f1fe",belgium:"1f1e7-1f1ea",belize:"1f1e7-1f1ff",bell:"1f514",bellhop_bell:"1f6ce",benin:"1f1e7-1f1ef",bento:"1f371",bermuda:"1f1e7-1f1f2",beverage_box:"1f9c3",bhutan:"1f1e7-1f1f9",bicyclist:"1f6b4",bike:"1f6b2",biking_man:"1f6b4-2642",biking_woman:"1f6b4-2640",bikini:"1f459",billed_cap:"1f9e2",biohazard:"2623",bird:"1f426",birthday:"1f382",black_circle:"26ab",black_flag:"1f3f4",black_heart:"1f5a4",black_joker:"1f0cf",black_large_square:"2b1b",black_medium_small_square:"25fe",black_medium_square:"25fc",black_nib:"2712",black_small_square:"25aa",black_square_button:"1f532",blond_haired_man:"1f471-2642",blond_haired_person:"1f471",blond_haired_woman:"1f471-2640",blonde_woman:"1f471-2640",blossom:"1f33c",blowfish:"1f421",blue_book:"1f4d8",blue_car:"1f699",blue_heart:"1f499",blue_square:"1f7e6",blush:"1f60a",boar:"1f417",boat:"26f5",bolivia:"1f1e7-1f1f4",bomb:"1f4a3",bone:"1f9b4",book:"1f4d6",bookmark:"1f516",bookmark_tabs:"1f4d1",books:"1f4da",boom:"1f4a5",boot:"1f462",bosnia_herzegovina:"1f1e7-1f1e6",botswana:"1f1e7-1f1fc",bouncing_ball_man:"26f9-2642",bouncing_ball_person:"26f9",bouncing_ball_woman:"26f9-2640",bouquet:"1f490",bouvet_island:"1f1e7-1f1fb",bow:"1f647",bow_and_arrow:"1f3f9",bowing_man:"1f647-2642",bowing_woman:"1f647-2640",bowl_with_spoon:"1f963",bowling:"1f3b3",boxing_glove:"1f94a",boy:"1f466",brain:"1f9e0",brazil:"1f1e7-1f1f7",bread:"1f35e",breast_feeding:"1f931",bricks:"1f9f1",bride_with_veil:"1f470",bridge_at_night:"1f309",briefcase:"1f4bc",british_indian_ocean_territory:"1f1ee-1f1f4",british_virgin_islands:"1f1fb-1f1ec",broccoli:"1f966",broken_heart:"1f494",broom:"1f9f9",brown_circle:"1f7e4",brown_heart:"1f90e",brown_square:"1f7eb",brunei:"1f1e7-1f1f3",bug:"1f41b",building_construction:"1f3d7",bulb:"1f4a1",bulgaria:"1f1e7-1f1ec",bullettrain_front:"1f685",bullettrain_side:"1f684",burkina_faso:"1f1e7-1f1eb",burrito:"1f32f",burundi:"1f1e7-1f1ee",bus:"1f68c",business_suit_levitating:"1f574",busstop:"1f68f",bust_in_silhouette:"1f464",busts_in_silhouette:"1f465",butter:"1f9c8",butterfly:"1f98b",cactus:"1f335",cake:"1f370",calendar:"1f4c6",call_me_hand:"1f919",calling:"1f4f2",cambodia:"1f1f0-1f1ed",camel:"1f42b",camera:"1f4f7",camera_flash:"1f4f8",cameroon:"1f1e8-1f1f2",camping:"1f3d5",canada:"1f1e8-1f1e6",canary_islands:"1f1ee-1f1e8",cancer:"264b",candle:"1f56f",candy:"1f36c",canned_food:"1f96b",canoe:"1f6f6",cape_verde:"1f1e8-1f1fb",capital_abcd:"1f520",capricorn:"2651",car:"1f697",card_file_box:"1f5c3",card_index:"1f4c7",card_index_dividers:"1f5c2",caribbean_netherlands:"1f1e7-1f1f6",carousel_horse:"1f3a0",carrot:"1f955",cartwheeling:"1f938",cat:"1f431",cat2:"1f408",cayman_islands:"1f1f0-1f1fe",cd:"1f4bf",central_african_republic:"1f1e8-1f1eb",ceuta_melilla:"1f1ea-1f1e6",chad:"1f1f9-1f1e9",chains:"26d3",chair:"1fa91",champagne:"1f37e",chart:"1f4b9",chart_with_downwards_trend:"1f4c9",chart_with_upwards_trend:"1f4c8",checkered_flag:"1f3c1",cheese:"1f9c0",cherries:"1f352",cherry_blossom:"1f338",chess_pawn:"265f",chestnut:"1f330",chicken:"1f414",child:"1f9d2",children_crossing:"1f6b8",chile:"1f1e8-1f1f1",chipmunk:"1f43f",chocolate_bar:"1f36b",chopsticks:"1f962",christmas_island:"1f1e8-1f1fd",christmas_tree:"1f384",church:"26ea",cinema:"1f3a6",circus_tent:"1f3aa",city_sunrise:"1f307",city_sunset:"1f306",cityscape:"1f3d9",cl:"1f191",clamp:"1f5dc",clap:"1f44f",clapper:"1f3ac",classical_building:"1f3db",climbing:"1f9d7",climbing_man:"1f9d7-2642",climbing_woman:"1f9d7-2640",clinking_glasses:"1f942",clipboard:"1f4cb",clipperton_island:"1f1e8-1f1f5",clock1:"1f550",clock10:"1f559",clock1030:"1f565",clock11:"1f55a",clock1130:"1f566",clock12:"1f55b",clock1230:"1f567",clock130:"1f55c",clock2:"1f551",clock230:"1f55d",clock3:"1f552",clock330:"1f55e",clock4:"1f553",clock430:"1f55f",clock5:"1f554",clock530:"1f560",clock6:"1f555",clock630:"1f561",clock7:"1f556",clock730:"1f562",clock8:"1f557",clock830:"1f563",clock9:"1f558",clock930:"1f564",closed_book:"1f4d5",closed_lock_with_key:"1f510",closed_umbrella:"1f302",cloud:"2601",cloud_with_lightning:"1f329",cloud_with_lightning_and_rain:"26c8",cloud_with_rain:"1f327",cloud_with_snow:"1f328",clown_face:"1f921",clubs:"2663",cn:"1f1e8-1f1f3",coat:"1f9e5",cocktail:"1f378",coconut:"1f965",cocos_islands:"1f1e8-1f1e8",coffee:"2615",coffin:"26b0",cold_face:"1f976",cold_sweat:"1f630",collision:"1f4a5",colombia:"1f1e8-1f1f4",comet:"2604",comoros:"1f1f0-1f1f2",compass:"1f9ed",computer:"1f4bb",computer_mouse:"1f5b1",confetti_ball:"1f38a",confounded:"1f616",confused:"1f615",congo_brazzaville:"1f1e8-1f1ec",congo_kinshasa:"1f1e8-1f1e9",congratulations:"3297",construction:"1f6a7",construction_worker:"1f477",construction_worker_man:"1f477-2642",construction_worker_woman:"1f477-2640",control_knobs:"1f39b",convenience_store:"1f3ea",cook:"1f9d1-1f373",cook_islands:"1f1e8-1f1f0",cookie:"1f36a",cool:"1f192",cop:"1f46e",copyright:"00a9",corn:"1f33d",costa_rica:"1f1e8-1f1f7",cote_divoire:"1f1e8-1f1ee",couch_and_lamp:"1f6cb",couple:"1f46b",couple_with_heart:"1f491",couple_with_heart_man_man:"1f468-2764-1f468",couple_with_heart_woman_man:"1f469-2764-1f468",couple_with_heart_woman_woman:"1f469-2764-1f469",couplekiss:"1f48f",couplekiss_man_man:"1f468-2764-1f48b-1f468",couplekiss_man_woman:"1f469-2764-1f48b-1f468",couplekiss_woman_woman:"1f469-2764-1f48b-1f469",cow:"1f42e",cow2:"1f404",cowboy_hat_face:"1f920",crab:"1f980",crayon:"1f58d",credit_card:"1f4b3",crescent_moon:"1f319",cricket:"1f997",cricket_game:"1f3cf",croatia:"1f1ed-1f1f7",crocodile:"1f40a",croissant:"1f950",crossed_fingers:"1f91e",crossed_flags:"1f38c",crossed_swords:"2694",crown:"1f451",cry:"1f622",crying_cat_face:"1f63f",crystal_ball:"1f52e",cuba:"1f1e8-1f1fa",cucumber:"1f952",cup_with_straw:"1f964",cupcake:"1f9c1",cupid:"1f498",curacao:"1f1e8-1f1fc",curling_stone:"1f94c",curly_haired_man:"1f468-1f9b1",curly_haired_woman:"1f469-1f9b1",curly_loop:"27b0",currency_exchange:"1f4b1",curry:"1f35b",cursing_face:"1f92c",custard:"1f36e",customs:"1f6c3",cut_of_meat:"1f969",cyclone:"1f300",cyprus:"1f1e8-1f1fe",czech_republic:"1f1e8-1f1ff",dagger:"1f5e1",dancer:"1f483",dancers:"1f46f",dancing_men:"1f46f-2642",dancing_women:"1f46f-2640",dango:"1f361",dark_sunglasses:"1f576",dart:"1f3af",dash:"1f4a8",date:"1f4c5",de:"1f1e9-1f1ea",deaf_man:"1f9cf-2642",deaf_person:"1f9cf",deaf_woman:"1f9cf-2640",deciduous_tree:"1f333",deer:"1f98c",denmark:"1f1e9-1f1f0",department_store:"1f3ec",derelict_house:"1f3da",desert:"1f3dc",desert_island:"1f3dd",desktop_computer:"1f5a5",detective:"1f575",diamond_shape_with_a_dot_inside:"1f4a0",diamonds:"2666",diego_garcia:"1f1e9-1f1ec",disappointed:"1f61e",disappointed_relieved:"1f625",diving_mask:"1f93f",diya_lamp:"1fa94",dizzy:"1f4ab",dizzy_face:"1f635",djibouti:"1f1e9-1f1ef",dna:"1f9ec",do_not_litter:"1f6af",dog:"1f436",dog2:"1f415",dollar:"1f4b5",dolls:"1f38e",dolphin:"1f42c",dominica:"1f1e9-1f1f2",dominican_republic:"1f1e9-1f1f4",door:"1f6aa",doughnut:"1f369",dove:"1f54a",dragon:"1f409",dragon_face:"1f432",dress:"1f457",dromedary_camel:"1f42a",drooling_face:"1f924",drop_of_blood:"1fa78",droplet:"1f4a7",drum:"1f941",duck:"1f986",dumpling:"1f95f",dvd:"1f4c0","e-mail":"1f4e7",eagle:"1f985",ear:"1f442",ear_of_rice:"1f33e",ear_with_hearing_aid:"1f9bb",earth_africa:"1f30d",earth_americas:"1f30e",earth_asia:"1f30f",ecuador:"1f1ea-1f1e8",egg:"1f95a",eggplant:"1f346",egypt:"1f1ea-1f1ec",eight:"0038-20e3",eight_pointed_black_star:"2734",eight_spoked_asterisk:"2733",eject_button:"23cf",el_salvador:"1f1f8-1f1fb",electric_plug:"1f50c",elephant:"1f418",elf:"1f9dd",elf_man:"1f9dd-2642",elf_woman:"1f9dd-2640",email:"2709",end:"1f51a",england:"1f3f4-e0067-e0062-e0065-e006e-e0067-e007f",envelope:"2709",envelope_with_arrow:"1f4e9",equatorial_guinea:"1f1ec-1f1f6",eritrea:"1f1ea-1f1f7",es:"1f1ea-1f1f8",estonia:"1f1ea-1f1ea",ethiopia:"1f1ea-1f1f9",eu:"1f1ea-1f1fa",euro:"1f4b6",european_castle:"1f3f0",european_post_office:"1f3e4",european_union:"1f1ea-1f1fa",evergreen_tree:"1f332",exclamation:"2757",exploding_head:"1f92f",expressionless:"1f611",eye:"1f441",eye_speech_bubble:"1f441-1f5e8",eyeglasses:"1f453",eyes:"1f440",face_with_head_bandage:"1f915",face_with_thermometer:"1f912",facepalm:"1f926",facepunch:"1f44a",factory:"1f3ed",factory_worker:"1f9d1-1f3ed",fairy:"1f9da",fairy_man:"1f9da-2642",fairy_woman:"1f9da-2640",falafel:"1f9c6",falkland_islands:"1f1eb-1f1f0",fallen_leaf:"1f342",family:"1f46a",family_man_boy:"1f468-1f466",family_man_boy_boy:"1f468-1f466-1f466",family_man_girl:"1f468-1f467",family_man_girl_boy:"1f468-1f467-1f466",family_man_girl_girl:"1f468-1f467-1f467",family_man_man_boy:"1f468-1f468-1f466",family_man_man_boy_boy:"1f468-1f468-1f466-1f466",family_man_man_girl:"1f468-1f468-1f467",family_man_man_girl_boy:"1f468-1f468-1f467-1f466",family_man_man_girl_girl:"1f468-1f468-1f467-1f467",family_man_woman_boy:"1f468-1f469-1f466",family_man_woman_boy_boy:"1f468-1f469-1f466-1f466",family_man_woman_girl:"1f468-1f469-1f467",family_man_woman_girl_boy:"1f468-1f469-1f467-1f466",family_man_woman_girl_girl:"1f468-1f469-1f467-1f467",family_woman_boy:"1f469-1f466",family_woman_boy_boy:"1f469-1f466-1f466",family_woman_girl:"1f469-1f467",family_woman_girl_boy:"1f469-1f467-1f466",family_woman_girl_girl:"1f469-1f467-1f467",family_woman_woman_boy:"1f469-1f469-1f466",family_woman_woman_boy_boy:"1f469-1f469-1f466-1f466",family_woman_woman_girl:"1f469-1f469-1f467",family_woman_woman_girl_boy:"1f469-1f469-1f467-1f466",family_woman_woman_girl_girl:"1f469-1f469-1f467-1f467",farmer:"1f9d1-1f33e",faroe_islands:"1f1eb-1f1f4",fast_forward:"23e9",fax:"1f4e0",fearful:"1f628",feet:"1f43e",female_detective:"1f575-2640",female_sign:"2640",ferris_wheel:"1f3a1",ferry:"26f4",field_hockey:"1f3d1",fiji:"1f1eb-1f1ef",file_cabinet:"1f5c4",file_folder:"1f4c1",film_projector:"1f4fd",film_strip:"1f39e",finland:"1f1eb-1f1ee",fire:"1f525",fire_engine:"1f692",fire_extinguisher:"1f9ef",firecracker:"1f9e8",firefighter:"1f9d1-1f692",fireworks:"1f386",first_quarter_moon:"1f313",first_quarter_moon_with_face:"1f31b",fish:"1f41f",fish_cake:"1f365",fishing_pole_and_fish:"1f3a3",fist:"270a",fist_left:"1f91b",fist_oncoming:"1f44a",fist_raised:"270a",fist_right:"1f91c",five:"0035-20e3",flags:"1f38f",flamingo:"1f9a9",flashlight:"1f526",flat_shoe:"1f97f",fleur_de_lis:"269c",flight_arrival:"1f6ec",flight_departure:"1f6eb",flipper:"1f42c",floppy_disk:"1f4be",flower_playing_cards:"1f3b4",flushed:"1f633",flying_disc:"1f94f",flying_saucer:"1f6f8",fog:"1f32b",foggy:"1f301",foot:"1f9b6",football:"1f3c8",footprints:"1f463",fork_and_knife:"1f374",fortune_cookie:"1f960",fountain:"26f2",fountain_pen:"1f58b",four:"0034-20e3",four_leaf_clover:"1f340",fox_face:"1f98a",fr:"1f1eb-1f1f7",framed_picture:"1f5bc",free:"1f193",french_guiana:"1f1ec-1f1eb",french_polynesia:"1f1f5-1f1eb",french_southern_territories:"1f1f9-1f1eb",fried_egg:"1f373",fried_shrimp:"1f364",fries:"1f35f",frog:"1f438",frowning:"1f626",frowning_face:"2639",frowning_man:"1f64d-2642",frowning_person:"1f64d",frowning_woman:"1f64d-2640",fu:"1f595",fuelpump:"26fd",full_moon:"1f315",full_moon_with_face:"1f31d",funeral_urn:"26b1",gabon:"1f1ec-1f1e6",gambia:"1f1ec-1f1f2",game_die:"1f3b2",garlic:"1f9c4",gb:"1f1ec-1f1e7",gear:"2699",gem:"1f48e",gemini:"264a",genie:"1f9de",genie_man:"1f9de-2642",genie_woman:"1f9de-2640",georgia:"1f1ec-1f1ea",ghana:"1f1ec-1f1ed",ghost:"1f47b",gibraltar:"1f1ec-1f1ee",gift:"1f381",gift_heart:"1f49d",giraffe:"1f992",girl:"1f467",globe_with_meridians:"1f310",gloves:"1f9e4",goal_net:"1f945",goat:"1f410",goggles:"1f97d",golf:"26f3",golfing:"1f3cc",golfing_man:"1f3cc-2642",golfing_woman:"1f3cc-2640",gorilla:"1f98d",grapes:"1f347",greece:"1f1ec-1f1f7",green_apple:"1f34f",green_book:"1f4d7",green_circle:"1f7e2",green_heart:"1f49a",green_salad:"1f957",green_square:"1f7e9",greenland:"1f1ec-1f1f1",grenada:"1f1ec-1f1e9",grey_exclamation:"2755",grey_question:"2754",grimacing:"1f62c",grin:"1f601",grinning:"1f600",guadeloupe:"1f1ec-1f1f5",guam:"1f1ec-1f1fa",guard:"1f482",guardsman:"1f482-2642",guardswoman:"1f482-2640",guatemala:"1f1ec-1f1f9",guernsey:"1f1ec-1f1ec",guide_dog:"1f9ae",guinea:"1f1ec-1f1f3",guinea_bissau:"1f1ec-1f1fc",guitar:"1f3b8",gun:"1f52b",guyana:"1f1ec-1f1fe",haircut:"1f487",haircut_man:"1f487-2642",haircut_woman:"1f487-2640",haiti:"1f1ed-1f1f9",hamburger:"1f354",hammer:"1f528",hammer_and_pick:"2692",hammer_and_wrench:"1f6e0",hamster:"1f439",hand:"270b",hand_over_mouth:"1f92d",handbag:"1f45c",handball_person:"1f93e",handshake:"1f91d",hankey:"1f4a9",hash:"0023-20e3",hatched_chick:"1f425",hatching_chick:"1f423",headphones:"1f3a7",health_worker:"1f9d1-2695",hear_no_evil:"1f649",heard_mcdonald_islands:"1f1ed-1f1f2",heart:"2764",heart_decoration:"1f49f",heart_eyes:"1f60d",heart_eyes_cat:"1f63b",heartbeat:"1f493",heartpulse:"1f497",hearts:"2665",heavy_check_mark:"2714",heavy_division_sign:"2797",heavy_dollar_sign:"1f4b2",heavy_exclamation_mark:"2757",heavy_heart_exclamation:"2763",heavy_minus_sign:"2796",heavy_multiplication_x:"2716",heavy_plus_sign:"2795",hedgehog:"1f994",helicopter:"1f681",herb:"1f33f",hibiscus:"1f33a",high_brightness:"1f506",high_heel:"1f460",hiking_boot:"1f97e",hindu_temple:"1f6d5",hippopotamus:"1f99b",hocho:"1f52a",hole:"1f573",honduras:"1f1ed-1f1f3",honey_pot:"1f36f",honeybee:"1f41d",hong_kong:"1f1ed-1f1f0",horse:"1f434",horse_racing:"1f3c7",hospital:"1f3e5",hot_face:"1f975",hot_pepper:"1f336",hotdog:"1f32d",hotel:"1f3e8",hotsprings:"2668",hourglass:"231b",hourglass_flowing_sand:"23f3",house:"1f3e0",house_with_garden:"1f3e1",houses:"1f3d8",hugs:"1f917",hungary:"1f1ed-1f1fa",hushed:"1f62f",ice_cream:"1f368",ice_cube:"1f9ca",ice_hockey:"1f3d2",ice_skate:"26f8",icecream:"1f366",iceland:"1f1ee-1f1f8",id:"1f194",ideograph_advantage:"1f250",imp:"1f47f",inbox_tray:"1f4e5",incoming_envelope:"1f4e8",india:"1f1ee-1f1f3",indonesia:"1f1ee-1f1e9",infinity:"267e",information_desk_person:"1f481",information_source:"2139",innocent:"1f607",interrobang:"2049",iphone:"1f4f1",iran:"1f1ee-1f1f7",iraq:"1f1ee-1f1f6",ireland:"1f1ee-1f1ea",isle_of_man:"1f1ee-1f1f2",israel:"1f1ee-1f1f1",it:"1f1ee-1f1f9",izakaya_lantern:"1f3ee",jack_o_lantern:"1f383",jamaica:"1f1ef-1f1f2",japan:"1f5fe",japanese_castle:"1f3ef",japanese_goblin:"1f47a",japanese_ogre:"1f479",jeans:"1f456",jersey:"1f1ef-1f1ea",jigsaw:"1f9e9",jordan:"1f1ef-1f1f4",joy:"1f602",joy_cat:"1f639",joystick:"1f579",jp:"1f1ef-1f1f5",judge:"1f9d1-2696",juggling_person:"1f939",kaaba:"1f54b",kangaroo:"1f998",kazakhstan:"1f1f0-1f1ff",kenya:"1f1f0-1f1ea",key:"1f511",keyboard:"2328",keycap_ten:"1f51f",kick_scooter:"1f6f4",kimono:"1f458",kiribati:"1f1f0-1f1ee",kiss:"1f48b",kissing:"1f617",kissing_cat:"1f63d",kissing_closed_eyes:"1f61a",kissing_heart:"1f618",kissing_smiling_eyes:"1f619",kite:"1fa81",kiwi_fruit:"1f95d",kneeling_man:"1f9ce-2642",kneeling_person:"1f9ce",kneeling_woman:"1f9ce-2640",knife:"1f52a",koala:"1f428",koko:"1f201",kosovo:"1f1fd-1f1f0",kr:"1f1f0-1f1f7",kuwait:"1f1f0-1f1fc",kyrgyzstan:"1f1f0-1f1ec",lab_coat:"1f97c",label:"1f3f7",lacrosse:"1f94d",lantern:"1f3ee",laos:"1f1f1-1f1e6",large_blue_circle:"1f535",large_blue_diamond:"1f537",large_orange_diamond:"1f536",last_quarter_moon:"1f317",last_quarter_moon_with_face:"1f31c",latin_cross:"271d",latvia:"1f1f1-1f1fb",laughing:"1f606",leafy_green:"1f96c",leaves:"1f343",lebanon:"1f1f1-1f1e7",ledger:"1f4d2",left_luggage:"1f6c5",left_right_arrow:"2194",left_speech_bubble:"1f5e8",leftwards_arrow_with_hook:"21a9",leg:"1f9b5",lemon:"1f34b",leo:"264c",leopard:"1f406",lesotho:"1f1f1-1f1f8",level_slider:"1f39a",liberia:"1f1f1-1f1f7",libra:"264e",libya:"1f1f1-1f1fe",liechtenstein:"1f1f1-1f1ee",light_rail:"1f688",link:"1f517",lion:"1f981",lips:"1f444",lipstick:"1f484",lithuania:"1f1f1-1f1f9",lizard:"1f98e",llama:"1f999",lobster:"1f99e",lock:"1f512",lock_with_ink_pen:"1f50f",lollipop:"1f36d",loop:"27bf",lotion_bottle:"1f9f4",lotus_position:"1f9d8",lotus_position_man:"1f9d8-2642",lotus_position_woman:"1f9d8-2640",loud_sound:"1f50a",loudspeaker:"1f4e2",love_hotel:"1f3e9",love_letter:"1f48c",love_you_gesture:"1f91f",low_brightness:"1f505",luggage:"1f9f3",luxembourg:"1f1f1-1f1fa",lying_face:"1f925",m:"24c2",macau:"1f1f2-1f1f4",macedonia:"1f1f2-1f1f0",madagascar:"1f1f2-1f1ec",mag:"1f50d",mag_right:"1f50e",mage:"1f9d9",mage_man:"1f9d9-2642",mage_woman:"1f9d9-2640",magnet:"1f9f2",mahjong:"1f004",mailbox:"1f4eb",mailbox_closed:"1f4ea",mailbox_with_mail:"1f4ec",mailbox_with_no_mail:"1f4ed",malawi:"1f1f2-1f1fc",malaysia:"1f1f2-1f1fe",maldives:"1f1f2-1f1fb",male_detective:"1f575-2642",male_sign:"2642",mali:"1f1f2-1f1f1",malta:"1f1f2-1f1f9",man:"1f468",man_artist:"1f468-1f3a8",man_astronaut:"1f468-1f680",man_cartwheeling:"1f938-2642",man_cook:"1f468-1f373",man_dancing:"1f57a",man_facepalming:"1f926-2642",man_factory_worker:"1f468-1f3ed",man_farmer:"1f468-1f33e",man_firefighter:"1f468-1f692",man_health_worker:"1f468-2695",man_in_manual_wheelchair:"1f468-1f9bd",man_in_motorized_wheelchair:"1f468-1f9bc",man_in_tuxedo:"1f935",man_judge:"1f468-2696",man_juggling:"1f939-2642",man_mechanic:"1f468-1f527",man_office_worker:"1f468-1f4bc",man_pilot:"1f468-2708",man_playing_handball:"1f93e-2642",man_playing_water_polo:"1f93d-2642",man_scientist:"1f468-1f52c",man_shrugging:"1f937-2642",man_singer:"1f468-1f3a4",man_student:"1f468-1f393",man_teacher:"1f468-1f3eb",man_technologist:"1f468-1f4bb",man_with_gua_pi_mao:"1f472",man_with_probing_cane:"1f468-1f9af",man_with_turban:"1f473-2642",mandarin:"1f34a",mango:"1f96d",mans_shoe:"1f45e",mantelpiece_clock:"1f570",manual_wheelchair:"1f9bd",maple_leaf:"1f341",marshall_islands:"1f1f2-1f1ed",martial_arts_uniform:"1f94b",martinique:"1f1f2-1f1f6",mask:"1f637",massage:"1f486",massage_man:"1f486-2642",massage_woman:"1f486-2640",mate:"1f9c9",mauritania:"1f1f2-1f1f7",mauritius:"1f1f2-1f1fa",mayotte:"1f1fe-1f1f9",meat_on_bone:"1f356",mechanic:"1f9d1-1f527",mechanical_arm:"1f9be",mechanical_leg:"1f9bf",medal_military:"1f396",medal_sports:"1f3c5",medical_symbol:"2695",mega:"1f4e3",melon:"1f348",memo:"1f4dd",men_wrestling:"1f93c-2642",menorah:"1f54e",mens:"1f6b9",mermaid:"1f9dc-2640",merman:"1f9dc-2642",merperson:"1f9dc",metal:"1f918",metro:"1f687",mexico:"1f1f2-1f1fd",microbe:"1f9a0",micronesia:"1f1eb-1f1f2",microphone:"1f3a4",microscope:"1f52c",middle_finger:"1f595",milk_glass:"1f95b",milky_way:"1f30c",minibus:"1f690",minidisc:"1f4bd",mobile_phone_off:"1f4f4",moldova:"1f1f2-1f1e9",monaco:"1f1f2-1f1e8",money_mouth_face:"1f911",money_with_wings:"1f4b8",moneybag:"1f4b0",mongolia:"1f1f2-1f1f3",monkey:"1f412",monkey_face:"1f435",monocle_face:"1f9d0",monorail:"1f69d",montenegro:"1f1f2-1f1ea",montserrat:"1f1f2-1f1f8",moon:"1f314",moon_cake:"1f96e",morocco:"1f1f2-1f1e6",mortar_board:"1f393",mosque:"1f54c",mosquito:"1f99f",motor_boat:"1f6e5",motor_scooter:"1f6f5",motorcycle:"1f3cd",motorized_wheelchair:"1f9bc",motorway:"1f6e3",mount_fuji:"1f5fb",mountain:"26f0",mountain_bicyclist:"1f6b5",mountain_biking_man:"1f6b5-2642",mountain_biking_woman:"1f6b5-2640",mountain_cableway:"1f6a0",mountain_railway:"1f69e",mountain_snow:"1f3d4",mouse:"1f42d",mouse2:"1f401",movie_camera:"1f3a5",moyai:"1f5ff",mozambique:"1f1f2-1f1ff",mrs_claus:"1f936",muscle:"1f4aa",mushroom:"1f344",musical_keyboard:"1f3b9",musical_note:"1f3b5",musical_score:"1f3bc",mute:"1f507",myanmar:"1f1f2-1f1f2",nail_care:"1f485",name_badge:"1f4db",namibia:"1f1f3-1f1e6",national_park:"1f3de",nauru:"1f1f3-1f1f7",nauseated_face:"1f922",nazar_amulet:"1f9ff",necktie:"1f454",negative_squared_cross_mark:"274e",nepal:"1f1f3-1f1f5",nerd_face:"1f913",netherlands:"1f1f3-1f1f1",neutral_face:"1f610",new:"1f195",new_caledonia:"1f1f3-1f1e8",new_moon:"1f311",new_moon_with_face:"1f31a",new_zealand:"1f1f3-1f1ff",newspaper:"1f4f0",newspaper_roll:"1f5de",next_track_button:"23ed",ng:"1f196",ng_man:"1f645-2642",ng_woman:"1f645-2640",nicaragua:"1f1f3-1f1ee",niger:"1f1f3-1f1ea",nigeria:"1f1f3-1f1ec",night_with_stars:"1f303",nine:"0039-20e3",niue:"1f1f3-1f1fa",no_bell:"1f515",no_bicycles:"1f6b3",no_entry:"26d4",no_entry_sign:"1f6ab",no_good:"1f645",no_good_man:"1f645-2642",no_good_woman:"1f645-2640",no_mobile_phones:"1f4f5",no_mouth:"1f636",no_pedestrians:"1f6b7",no_smoking:"1f6ad","non-potable_water":"1f6b1",norfolk_island:"1f1f3-1f1eb",north_korea:"1f1f0-1f1f5",northern_mariana_islands:"1f1f2-1f1f5",norway:"1f1f3-1f1f4",nose:"1f443",notebook:"1f4d3",notebook_with_decorative_cover:"1f4d4",notes:"1f3b6",nut_and_bolt:"1f529",o:"2b55",o2:"1f17e",ocean:"1f30a",octopus:"1f419",oden:"1f362",office:"1f3e2",office_worker:"1f9d1-1f4bc",oil_drum:"1f6e2",ok:"1f197",ok_hand:"1f44c",ok_man:"1f646-2642",ok_person:"1f646",ok_woman:"1f646-2640",old_key:"1f5dd",older_adult:"1f9d3",older_man:"1f474",older_woman:"1f475",om:"1f549",oman:"1f1f4-1f1f2",on:"1f51b",oncoming_automobile:"1f698",oncoming_bus:"1f68d",oncoming_police_car:"1f694",oncoming_taxi:"1f696",one:"0031-20e3",one_piece_swimsuit:"1fa71",onion:"1f9c5",open_book:"1f4d6",open_file_folder:"1f4c2",open_hands:"1f450",open_mouth:"1f62e",open_umbrella:"2602",ophiuchus:"26ce",orange:"1f34a",orange_book:"1f4d9",orange_circle:"1f7e0",orange_heart:"1f9e1",orange_square:"1f7e7",orangutan:"1f9a7",orthodox_cross:"2626",otter:"1f9a6",outbox_tray:"1f4e4",owl:"1f989",ox:"1f402",oyster:"1f9aa",package:"1f4e6",page_facing_up:"1f4c4",page_with_curl:"1f4c3",pager:"1f4df",paintbrush:"1f58c",pakistan:"1f1f5-1f1f0",palau:"1f1f5-1f1fc",palestinian_territories:"1f1f5-1f1f8",palm_tree:"1f334",palms_up_together:"1f932",panama:"1f1f5-1f1e6",pancakes:"1f95e",panda_face:"1f43c",paperclip:"1f4ce",paperclips:"1f587",papua_new_guinea:"1f1f5-1f1ec",parachute:"1fa82",paraguay:"1f1f5-1f1fe",parasol_on_ground:"26f1",parking:"1f17f",parrot:"1f99c",part_alternation_mark:"303d",partly_sunny:"26c5",partying_face:"1f973",passenger_ship:"1f6f3",passport_control:"1f6c2",pause_button:"23f8",paw_prints:"1f43e",peace_symbol:"262e",peach:"1f351",peacock:"1f99a",peanuts:"1f95c",pear:"1f350",pen:"1f58a",pencil:"1f4dd",pencil2:"270f",penguin:"1f427",pensive:"1f614",people_holding_hands:"1f9d1-1f91d-1f9d1",performing_arts:"1f3ad",persevere:"1f623",person_bald:"1f9d1-1f9b2",person_curly_hair:"1f9d1-1f9b1",person_fencing:"1f93a",person_in_manual_wheelchair:"1f9d1-1f9bd",person_in_motorized_wheelchair:"1f9d1-1f9bc",person_red_hair:"1f9d1-1f9b0",person_white_hair:"1f9d1-1f9b3",person_with_probing_cane:"1f9d1-1f9af",person_with_turban:"1f473",peru:"1f1f5-1f1ea",petri_dish:"1f9eb",philippines:"1f1f5-1f1ed",phone:"260e",pick:"26cf",pie:"1f967",pig:"1f437",pig2:"1f416",pig_nose:"1f43d",pill:"1f48a",pilot:"1f9d1-2708",pinching_hand:"1f90f",pineapple:"1f34d",ping_pong:"1f3d3",pirate_flag:"1f3f4-2620",pisces:"2653",pitcairn_islands:"1f1f5-1f1f3",pizza:"1f355",place_of_worship:"1f6d0",plate_with_cutlery:"1f37d",play_or_pause_button:"23ef",pleading_face:"1f97a",point_down:"1f447",point_left:"1f448",point_right:"1f449",point_up:"261d",point_up_2:"1f446",poland:"1f1f5-1f1f1",police_car:"1f693",police_officer:"1f46e",policeman:"1f46e-2642",policewoman:"1f46e-2640",poodle:"1f429",poop:"1f4a9",popcorn:"1f37f",portugal:"1f1f5-1f1f9",post_office:"1f3e3",postal_horn:"1f4ef",postbox:"1f4ee",potable_water:"1f6b0",potato:"1f954",pouch:"1f45d",poultry_leg:"1f357",pound:"1f4b7",pout:"1f621",pouting_cat:"1f63e",pouting_face:"1f64e",pouting_man:"1f64e-2642",pouting_woman:"1f64e-2640",pray:"1f64f",prayer_beads:"1f4ff",pregnant_woman:"1f930",pretzel:"1f968",previous_track_button:"23ee",prince:"1f934",princess:"1f478",printer:"1f5a8",probing_cane:"1f9af",puerto_rico:"1f1f5-1f1f7",punch:"1f44a",purple_circle:"1f7e3",purple_heart:"1f49c",purple_square:"1f7ea",purse:"1f45b",pushpin:"1f4cc",put_litter_in_its_place:"1f6ae",qatar:"1f1f6-1f1e6",question:"2753",rabbit:"1f430",rabbit2:"1f407",raccoon:"1f99d",racehorse:"1f40e",racing_car:"1f3ce",radio:"1f4fb",radio_button:"1f518",radioactive:"2622",rage:"1f621",railway_car:"1f683",railway_track:"1f6e4",rainbow:"1f308",rainbow_flag:"1f3f3-1f308",raised_back_of_hand:"1f91a",raised_eyebrow:"1f928",raised_hand:"270b",raised_hand_with_fingers_splayed:"1f590",raised_hands:"1f64c",raising_hand:"1f64b",raising_hand_man:"1f64b-2642",raising_hand_woman:"1f64b-2640",ram:"1f40f",ramen:"1f35c",rat:"1f400",razor:"1fa92",receipt:"1f9fe",record_button:"23fa",recycle:"267b",red_car:"1f697",red_circle:"1f534",red_envelope:"1f9e7",red_haired_man:"1f468-1f9b0",red_haired_woman:"1f469-1f9b0",red_square:"1f7e5",registered:"00ae",relaxed:"263a",relieved:"1f60c",reminder_ribbon:"1f397",repeat:"1f501",repeat_one:"1f502",rescue_worker_helmet:"26d1",restroom:"1f6bb",reunion:"1f1f7-1f1ea",revolving_hearts:"1f49e",rewind:"23ea",rhinoceros:"1f98f",ribbon:"1f380",rice:"1f35a",rice_ball:"1f359",rice_cracker:"1f358",rice_scene:"1f391",right_anger_bubble:"1f5ef",ring:"1f48d",ringed_planet:"1fa90",robot:"1f916",rocket:"1f680",rofl:"1f923",roll_eyes:"1f644",roll_of_paper:"1f9fb",roller_coaster:"1f3a2",romania:"1f1f7-1f1f4",rooster:"1f413",rose:"1f339",rosette:"1f3f5",rotating_light:"1f6a8",round_pushpin:"1f4cd",rowboat:"1f6a3",rowing_man:"1f6a3-2642",rowing_woman:"1f6a3-2640",ru:"1f1f7-1f1fa",rugby_football:"1f3c9",runner:"1f3c3",running:"1f3c3",running_man:"1f3c3-2642",running_shirt_with_sash:"1f3bd",running_woman:"1f3c3-2640",rwanda:"1f1f7-1f1fc",sa:"1f202",safety_pin:"1f9f7",safety_vest:"1f9ba",sagittarius:"2650",sailboat:"26f5",sake:"1f376",salt:"1f9c2",samoa:"1f1fc-1f1f8",san_marino:"1f1f8-1f1f2",sandal:"1f461",sandwich:"1f96a",santa:"1f385",sao_tome_principe:"1f1f8-1f1f9",sari:"1f97b",sassy_man:"1f481-2642",sassy_woman:"1f481-2640",satellite:"1f4e1",satisfied:"1f606",saudi_arabia:"1f1f8-1f1e6",sauna_man:"1f9d6-2642",sauna_person:"1f9d6",sauna_woman:"1f9d6-2640",sauropod:"1f995",saxophone:"1f3b7",scarf:"1f9e3",school:"1f3eb",school_satchel:"1f392",scientist:"1f9d1-1f52c",scissors:"2702",scorpion:"1f982",scorpius:"264f",scotland:"1f3f4-e0067-e0062-e0073-e0063-e0074-e007f",scream:"1f631",scream_cat:"1f640",scroll:"1f4dc",seat:"1f4ba",secret:"3299",see_no_evil:"1f648",seedling:"1f331",selfie:"1f933",senegal:"1f1f8-1f1f3",serbia:"1f1f7-1f1f8",service_dog:"1f415-1f9ba",seven:"0037-20e3",seychelles:"1f1f8-1f1e8",shallow_pan_of_food:"1f958",shamrock:"2618",shark:"1f988",shaved_ice:"1f367",sheep:"1f411",shell:"1f41a",shield:"1f6e1",shinto_shrine:"26e9",ship:"1f6a2",shirt:"1f455",poo:"1f4a9",shoe:"1f45e",shopping:"1f6cd",shopping_cart:"1f6d2",shorts:"1fa73",shower:"1f6bf",shrimp:"1f990",shrug:"1f937",shushing_face:"1f92b",sierra_leone:"1f1f8-1f1f1",signal_strength:"1f4f6",singapore:"1f1f8-1f1ec",singer:"1f9d1-1f3a4",sint_maarten:"1f1f8-1f1fd",six:"0036-20e3",six_pointed_star:"1f52f",skateboard:"1f6f9",ski:"1f3bf",skier:"26f7",skull:"1f480",skull_and_crossbones:"2620",skunk:"1f9a8",sled:"1f6f7",sleeping:"1f634",sleeping_bed:"1f6cc",sleepy:"1f62a",slightly_frowning_face:"1f641",slightly_smiling_face:"1f642",slot_machine:"1f3b0",sloth:"1f9a5",slovakia:"1f1f8-1f1f0",slovenia:"1f1f8-1f1ee",small_airplane:"1f6e9",small_blue_diamond:"1f539",small_orange_diamond:"1f538",small_red_triangle:"1f53a",small_red_triangle_down:"1f53b",smile:"1f604",smile_cat:"1f638",smiley:"1f603",smiley_cat:"1f63a",smiling_face_with_three_hearts:"1f970",smiling_imp:"1f608",smirk:"1f60f",smirk_cat:"1f63c",smoking:"1f6ac",snail:"1f40c",snake:"1f40d",sneezing_face:"1f927",snowboarder:"1f3c2",snowflake:"2744",snowman:"26c4",snowman_with_snow:"2603",soap:"1f9fc",sob:"1f62d",soccer:"26bd",socks:"1f9e6",softball:"1f94e",solomon_islands:"1f1f8-1f1e7",somalia:"1f1f8-1f1f4",soon:"1f51c",sos:"1f198",sound:"1f509",south_africa:"1f1ff-1f1e6",south_georgia_south_sandwich_islands:"1f1ec-1f1f8",south_sudan:"1f1f8-1f1f8",space_invader:"1f47e",spades:"2660",spaghetti:"1f35d",sparkle:"2747",sparkler:"1f387",sparkles:"2728",sparkling_heart:"1f496",speak_no_evil:"1f64a",speaker:"1f508",speaking_head:"1f5e3",speech_balloon:"1f4ac",speedboat:"1f6a4",spider:"1f577",spider_web:"1f578",spiral_calendar:"1f5d3",spiral_notepad:"1f5d2",sponge:"1f9fd",spoon:"1f944",squid:"1f991",sri_lanka:"1f1f1-1f1f0",st_barthelemy:"1f1e7-1f1f1",st_helena:"1f1f8-1f1ed",st_kitts_nevis:"1f1f0-1f1f3",st_lucia:"1f1f1-1f1e8",st_martin:"1f1f2-1f1eb",st_pierre_miquelon:"1f1f5-1f1f2",st_vincent_grenadines:"1f1fb-1f1e8",stadium:"1f3df",standing_man:"1f9cd-2642",standing_person:"1f9cd",standing_woman:"1f9cd-2640",star:"2b50",star2:"1f31f",star_and_crescent:"262a",star_of_david:"2721",star_struck:"1f929",stars:"1f320",station:"1f689",statue_of_liberty:"1f5fd",steam_locomotive:"1f682",stethoscope:"1fa7a",stew:"1f372",stop_button:"23f9",stop_sign:"1f6d1",stopwatch:"23f1",straight_ruler:"1f4cf",strawberry:"1f353",stuck_out_tongue:"1f61b",stuck_out_tongue_closed_eyes:"1f61d",stuck_out_tongue_winking_eye:"1f61c",student:"1f9d1-1f393",studio_microphone:"1f399",stuffed_flatbread:"1f959",sudan:"1f1f8-1f1e9",sun_behind_large_cloud:"1f325",sun_behind_rain_cloud:"1f326",sun_behind_small_cloud:"1f324",sun_with_face:"1f31e",sunflower:"1f33b",sunglasses:"1f60e",sunny:"2600",sunrise:"1f305",sunrise_over_mountains:"1f304",superhero:"1f9b8",superhero_man:"1f9b8-2642",superhero_woman:"1f9b8-2640",supervillain:"1f9b9",supervillain_man:"1f9b9-2642",supervillain_woman:"1f9b9-2640",surfer:"1f3c4",surfing_man:"1f3c4-2642",surfing_woman:"1f3c4-2640",suriname:"1f1f8-1f1f7",sushi:"1f363",suspension_railway:"1f69f",svalbard_jan_mayen:"1f1f8-1f1ef",swan:"1f9a2",swaziland:"1f1f8-1f1ff",sweat:"1f613",sweat_drops:"1f4a6",sweat_smile:"1f605",sweden:"1f1f8-1f1ea",sweet_potato:"1f360",swim_brief:"1fa72",swimmer:"1f3ca",swimming_man:"1f3ca-2642",swimming_woman:"1f3ca-2640",switzerland:"1f1e8-1f1ed",symbols:"1f523",synagogue:"1f54d",syria:"1f1f8-1f1fe",syringe:"1f489","t-rex":"1f996",taco:"1f32e",tada:"1f389",taiwan:"1f1f9-1f1fc",tajikistan:"1f1f9-1f1ef",takeout_box:"1f961",tanabata_tree:"1f38b",tangerine:"1f34a",tanzania:"1f1f9-1f1ff",taurus:"2649",taxi:"1f695",tea:"1f375",teacher:"1f9d1-1f3eb",technologist:"1f9d1-1f4bb",teddy_bear:"1f9f8",telephone:"260e",telephone_receiver:"1f4de",telescope:"1f52d",tennis:"1f3be",tent:"26fa",test_tube:"1f9ea",thailand:"1f1f9-1f1ed",thermometer:"1f321",thinking:"1f914",thought_balloon:"1f4ad",thread:"1f9f5",three:"0033-20e3",thumbsdown:"1f44e",thumbsup:"1f44d",ticket:"1f3ab",tickets:"1f39f",tiger:"1f42f",tiger2:"1f405",timer_clock:"23f2",timor_leste:"1f1f9-1f1f1",tipping_hand_man:"1f481-2642",tipping_hand_person:"1f481",tipping_hand_woman:"1f481-2640",tired_face:"1f62b",tm:"2122",togo:"1f1f9-1f1ec",toilet:"1f6bd",tokelau:"1f1f9-1f1f0",tokyo_tower:"1f5fc",tomato:"1f345",tonga:"1f1f9-1f1f4",tongue:"1f445",toolbox:"1f9f0",tooth:"1f9b7",top:"1f51d",tophat:"1f3a9",tornado:"1f32a",tr:"1f1f9-1f1f7",trackball:"1f5b2",tractor:"1f69c",traffic_light:"1f6a5",train:"1f68b",train2:"1f686",tram:"1f68a",triangular_flag_on_post:"1f6a9",triangular_ruler:"1f4d0",trident:"1f531",trinidad_tobago:"1f1f9-1f1f9",tristan_da_cunha:"1f1f9-1f1e6",triumph:"1f624",trolleybus:"1f68e",trophy:"1f3c6",tropical_drink:"1f379",tropical_fish:"1f420",truck:"1f69a",trumpet:"1f3ba",tshirt:"1f455",tulip:"1f337",tumbler_glass:"1f943",tunisia:"1f1f9-1f1f3",turkey:"1f983",turkmenistan:"1f1f9-1f1f2",turks_caicos_islands:"1f1f9-1f1e8",turtle:"1f422",tuvalu:"1f1f9-1f1fb",tv:"1f4fa",twisted_rightwards_arrows:"1f500",two:"0032-20e3",two_hearts:"1f495",two_men_holding_hands:"1f46c",two_women_holding_hands:"1f46d",u5272:"1f239",u5408:"1f234",u55b6:"1f23a",u6307:"1f22f",u6708:"1f237",u6709:"1f236",u6e80:"1f235",u7121:"1f21a",u7533:"1f238",u7981:"1f232",u7a7a:"1f233",uganda:"1f1fa-1f1ec",uk:"1f1ec-1f1e7",ukraine:"1f1fa-1f1e6",umbrella:"2614",unamused:"1f612",underage:"1f51e",unicorn:"1f984",united_arab_emirates:"1f1e6-1f1ea",united_nations:"1f1fa-1f1f3",unlock:"1f513",up:"1f199",upside_down_face:"1f643",uruguay:"1f1fa-1f1fe",us:"1f1fa-1f1f8",us_outlying_islands:"1f1fa-1f1f2",us_virgin_islands:"1f1fb-1f1ee",uzbekistan:"1f1fa-1f1ff",v:"270c",vampire:"1f9db",vampire_man:"1f9db-2642",vampire_woman:"1f9db-2640",vanuatu:"1f1fb-1f1fa",vatican_city:"1f1fb-1f1e6",venezuela:"1f1fb-1f1ea",vertical_traffic_light:"1f6a6",vhs:"1f4fc",vibration_mode:"1f4f3",video_camera:"1f4f9",video_game:"1f3ae",vietnam:"1f1fb-1f1f3",violin:"1f3bb",virgo:"264d",volcano:"1f30b",volleyball:"1f3d0",vomiting_face:"1f92e",vs:"1f19a",vulcan_salute:"1f596",waffle:"1f9c7",wales:"1f3f4-e0067-e0062-e0077-e006c-e0073-e007f",walking:"1f6b6",walking_man:"1f6b6-2642",walking_woman:"1f6b6-2640",wallis_futuna:"1f1fc-1f1eb",waning_crescent_moon:"1f318",waning_gibbous_moon:"1f316",warning:"26a0",wastebasket:"1f5d1",watch:"231a",water_buffalo:"1f403",water_polo:"1f93d",watermelon:"1f349",wave:"1f44b",wavy_dash:"3030",waxing_crescent_moon:"1f312",waxing_gibbous_moon:"1f314",wc:"1f6be",weary:"1f629",wedding:"1f492",weight_lifting:"1f3cb",weight_lifting_man:"1f3cb-2642",weight_lifting_woman:"1f3cb-2640",western_sahara:"1f1ea-1f1ed",whale:"1f433",whale2:"1f40b",wheel_of_dharma:"2638",wheelchair:"267f",white_check_mark:"2705",white_circle:"26aa",white_flag:"1f3f3",white_flower:"1f4ae",white_haired_man:"1f468-1f9b3",white_haired_woman:"1f469-1f9b3",white_heart:"1f90d",white_large_square:"2b1c",white_medium_small_square:"25fd",white_medium_square:"25fb",white_small_square:"25ab",white_square_button:"1f533",wilted_flower:"1f940",wind_chime:"1f390",wind_face:"1f32c",wine_glass:"1f377",wink:"1f609",wolf:"1f43a",woman:"1f469",woman_artist:"1f469-1f3a8",woman_astronaut:"1f469-1f680",woman_cartwheeling:"1f938-2640",woman_cook:"1f469-1f373",woman_dancing:"1f483",woman_facepalming:"1f926-2640",woman_factory_worker:"1f469-1f3ed",woman_farmer:"1f469-1f33e",woman_firefighter:"1f469-1f692",woman_health_worker:"1f469-2695",woman_in_manual_wheelchair:"1f469-1f9bd",woman_in_motorized_wheelchair:"1f469-1f9bc",woman_judge:"1f469-2696",woman_juggling:"1f939-2640",woman_mechanic:"1f469-1f527",woman_office_worker:"1f469-1f4bc",woman_pilot:"1f469-2708",woman_playing_handball:"1f93e-2640",woman_playing_water_polo:"1f93d-2640",woman_scientist:"1f469-1f52c",woman_shrugging:"1f937-2640",woman_singer:"1f469-1f3a4",woman_student:"1f469-1f393",woman_teacher:"1f469-1f3eb",woman_technologist:"1f469-1f4bb",woman_with_headscarf:"1f9d5",woman_with_probing_cane:"1f469-1f9af",woman_with_turban:"1f473-2640",womans_clothes:"1f45a",womans_hat:"1f452",women_wrestling:"1f93c-2640",womens:"1f6ba",woozy_face:"1f974",world_map:"1f5fa",worried:"1f61f",wrench:"1f527",wrestling:"1f93c",writing_hand:"270d",x:"274c",yarn:"1f9f6",yawning_face:"1f971",yellow_circle:"1f7e1",yellow_heart:"1f49b",yellow_square:"1f7e8",yemen:"1f1fe-1f1ea",yen:"1f4b4",yin_yang:"262f",yo_yo:"1fa80",yum:"1f60b",zambia:"1f1ff-1f1f2",zany_face:"1f92a",zap:"26a1",zebra:"1f993",zero:"0030-20e3",zimbabwe:"1f1ff-1f1fc",zipper_mouth_face:"1f910",zombie:"1f9df",zombie_man:"1f9df-2642",zombie_woman:"1f9df-2640",zzz:"1f4a4"};function Xg(e,t){var n=mn(e);if(zr){var r=zr(e);t&&(r=AA(r).call(r,(function(t){return fA(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vg(e){for(var t=1;t>>0===i))throw new RangeError("Invalid code point: ".concat(i));i<=65535?t=e.push(i):(i-=65536,t=e.push(55296+(i>>10),i%1024+56320)),t>=16383&&(n+=String.fromCharCode.apply(null,e),e.length=0)}return n+String.fromCharCode.apply(null,e)}var Wg=function(e){Bi(n,e);var t=jg(n);function n(){var e,r=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config;if(ui(this,n),(e=t.call(this,{config:r})).options={useUnicode:!0,upperCase:!1,customHandled:!1,resourceURL:"https://github.githubassets.com/images/icons/emoji/unicode/${code}.png?v8",emojis:Vg({},$g)},"object"!==Ki(r))return $i(e);var A=r.useUnicode,i=r.customResourceURL,o=r.customRenderer,a=r.upperCase;return e.options.useUnicode="boolean"==typeof A?A:e.options.useUnicode,e.options.upperCase="boolean"==typeof a?a:e.options.upperCase,!1===A&&"string"==typeof i&&(e.options.resourceURL=i),"function"==typeof o&&(e.options.customHandled=!0,e.options.customRenderer=o),e}return di(n,[{key:"makeHtml",value:function(e,t){var n=this;return this.test(e)?e.replace(this.RULE.reg,(function(e,t){var r;if(n.options.customHandled&&"function"==typeof n.options.customRenderer)return n.options.customRenderer(t);var A=n.options.emojis[t];if("string"!=typeof A)return e;if(n.options.useUnicode){var i,o=Zu(i=A.split("-")).call(i,(function(e){return"0x".concat(e)}));return Gg.apply(void 0,Sh(o))}n.options.upperCase&&(A=A.toUpperCase());var a=n.options.resourceURL.replace(/\$\{code\}/g,A);return zi(r='')).call(r,Ef(t),'')})):e}},{key:"rule",value:function(){var e={begin:":",content:"([a-zA-Z0-9+_]+?)",end:":"};return e.reg=ou(e,"g"),e}}]),n}(ju);function Jg(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}Gi(Wg,"HOOK_NAME","emoji");var zg=function(e){Bi(n,e);var t=Jg(n);function n(){return ui(this,n),t.apply(this,arguments)}return di(n,[{key:"makeHtml",value:function(e){return this.test(e)?e.replace(this.RULE.reg,'$1$2$3'):e}},{key:"rule",value:function(){var e={begin:"(^| )\\/",end:"\\/( |$)",content:"([^\\n]+?)"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}]),n}(ju);function Zg(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}Gi(zg,"HOOK_NAME","underline");var qg=function(e){Bi(n,e);var t=Zg(n);function n(){return ui(this,n),t.apply(this,arguments)}return di(n,[{key:"makeHtml",value:function(e){return this.test(e)?e.replace(this.RULE.reg,"$1$2$3"):e}},{key:"rule",value:function(){var e={begin:"(^| )==",end:"==( |$|\\n)",content:"([^\\n]+?)"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}]),n}(ju);Gi(qg,"HOOK_NAME","highLight");var Yg=Fi,ep=Dt.includes,tp=s((function(){return!Array(1).includes()}));Ye({target:"Array",proto:!0,forced:tp},{includes:function(e){return ep(this,e,arguments.length>1?arguments[1]:void 0)}});var np=tA("Array").includes,rp=v("".indexOf);Ye({target:"String",proto:!0,forced:!Gl("includes")},{includes:function(e){return!!~rp(yn(I(this)),yn(Vl(e)),arguments.length>1?arguments[1]:void 0)}});var Ap=tA("String").includes,ip=Array.prototype,op=String.prototype,ap=function(e){var t=e.includes;return e===ip||R(ip,e)&&t===ip.includes?np:"string"==typeof e||e===op||R(op,e)&&t===op.includes?Ap:t};var sp=function(e,t){for(var n=-1,r=null==e?0:e.length,A=Array(r);++n",keyword:"》",value:">"}],wp=[{icon:"FullWidth",label:"[]",keyword:"【】",value:"[]",goLeft:1},{icon:"FullWidth",label:"【】",keyword:"【",value:"【】",goLeft:1},{icon:"link",label:"Link",keyword:"【】",value:"[title](https://url)",selection:{from:19,to:14}},{icon:"FullWidth",label:"()",keyword:"(",value:"()",goLeft:1},{icon:"FullWidth",label:"()",keyword:"(",value:"()",goLeft:1},{icon:"FullWidth",label:"<>",keyword:"《》",value:"<>",goLeft:1},{icon:"FullWidth",label:"《》",keyword:"《》",value:"《》",goLeft:1},{icon:"FullWidth",label:'""',keyword:"“”",value:'""',goLeft:1},{icon:"FullWidth",label:"“”",keyword:"“”",value:"”“",goLeft:1}],Bp=zi(yp).call(yp,wp);var bp=function(){return"CodeMirror.Pass"};function Cp(e,t){var n=void 0!==Yg&&ic(e)||e["@@iterator"];if(!n){if(ef(e)||(n=function(e,t){var n;if(!e)return;if("string"==typeof e)return Qp(e,t);var r=Bc(n=Object.prototype.toString.call(e)).call(n,8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Kl(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qp(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,A=function(){};return{s:A,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:A}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw i}}}}function Qp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n')).call(s,n)).call(a,r,"
    "):!1===(null===(A=this.suggester[n])||void 0===A?void 0:A.echo)?"".concat(t):this.suggester[n]?r?t+r:"".concat(t):t+r}},{key:"rule",value:function(){var e,t,n;if(!this.suggester||mn(this.suggester).length<=0)return{};var r=Zu(e=mn(this.suggester)).call(e,(function(e){return pp(e)})).join("|");return{reg:new RegExp(zi(t=zi(n="".concat(au()?"((?'),this.searchCache=!1,this.searchKeyCache=[],this.optionList=[],this.cursorMove=!0,this.suggesterConfig={}}return di(e,[{key:"tryCreatePanel",value:function(){var e,t,n;!this.$suggesterPanel&&Vd()&&document&&(null===(e=document)||void 0===e||null===(t=e.body)||void 0===t||t.appendChild(this.createDom(this.panelWrap)),this.$suggesterPanel=null===(n=document)||void 0===n?void 0:n.querySelector(".cherry-suggester-panel"))}},{key:"hasEditor",value:function(){return!!this.editor&&!!this.editor.editor.display&&!!this.editor.editor.display.wrapper}},{key:"setEditor",value:function(e){this.editor=e}},{key:"setSuggester",value:function(e){this.suggesterConfig=e}},{key:"bindEvent",value:function(){var e=this,t=!1;this.editor.editor.on("change",(function(n,r){t=!0,e.onCodeMirrorChange(n,r)})),this.editor.editor.on("keydown",(function(n,r){t=!0,e.enableRelate()&&e.onKeyDown(n,r)})),this.editor.editor.on("cursorActivity",(function(){t||e.stopRelate(),t=!1}));var n=this.editor.editor.getOption("extraKeys"),r=["Up","Down","Enter"];ti(r).call(r,(function(t){if("function"==typeof n[t]){var r=n[t];n[t]=function(t){if(e.cursorMove){var n=r.call(t,t);if(n)return n}}}else if(n[t]){if("string"==typeof n[t]){var A=n[t];n[t]=function(t){e.cursorMove&&e.editor.editor.execCommand(A)}}}else n[t]=function(){if(e.cursorMove)return bp()}})),this.editor.editor.setOption("extraKeys",n),this.editor.editor.on("scroll",(function(t,n){e.searchCache&&e.relocatePanel(e.editor.editor)})),this.onClickPanelItem()}},{key:"onClickPanelItem",value:function(){var e=this;this.tryCreatePanel(),this.$suggesterPanel.addEventListener("click",(function(t){var n=function(e,t){var n,r=-1;return ti(n=e.childNodes).call(n,(function(e,n){return e===t?r=n:""})),r}(e.$suggesterPanel,t.target);n>-1&&e.pasteSelectResult(n),e.stopRelate()}),!1)}},{key:"showSuggesterPanel",value:function(e){var t=e.left,n=e.top,r=e.items;this.tryCreatePanel(),!this.$suggesterPanel&&Vd()&&(document.body.appendChild(this.createDom(this.panelWrap)),this.$suggesterPanel=document.querySelector(".cherry-suggester-panel")),this.updatePanel(r),this.$suggesterPanel.style.left="".concat(t,"px"),this.$suggesterPanel.style.top="".concat(n,"px"),this.$suggesterPanel.style.display="block",this.$suggesterPanel.style.position="absolute",this.$suggesterPanel.style.zIndex="100"}},{key:"hideSuggesterPanel",value:function(){this.tryCreatePanel(),this.$suggesterPanel&&(this.$suggesterPanel.style.display="none")}},{key:"updatePanel",value:function(e){var t=this;this.tryCreatePanel();var n=Zu(e).call(e,(function(e,n){if("object"===Ki(e)&&null!==e){var r,A=e.label;if(null!=e&&e.icon)A=zi(r='')).call(r,A);return t.renderPanelItem(A,0===n)}return t.renderPanelItem(e,0===n)})).join(""),r=this.suggesterConfig[this.keyword];r&&"function"==typeof r.suggestListRender&&(n=r.suggestListRender.call(this,e)||n),this.$suggesterPanel.innerHTML="","string"==typeof n?this.$suggesterPanel.innerHTML=n:ef(n)&&n.length>0?ti(n).call(n,(function(e){t.$suggesterPanel.appendChild(e)})):"object"===Ki(n)&&1===n.nodeType&&this.$suggesterPanel.appendChild(n)}},{key:"renderPanelItem",value:function(e,t){return t?'
    '.concat(e,"
    "):'
    '.concat(e,"
    ")}},{key:"createDom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.template||(this.template=document.createElement("div")),this.template.innerHTML=Cl(e).call(e);var t=document.createDocumentFragment();return Zu(Array.prototype).call(this.template.childNodes,(function(e,n){t.appendChild(e)})),t}},{key:"relocatePanel",value:function(e){var t=document.querySelector(".CodeMirror-cursors .CodeMirror-cursor");if(t||(t=document.querySelector(".CodeMirror-selected")),!t)return!1;var n=e.getCursor(),r=e.lineInfo(n.line).handle.height,A=t.getBoundingClientRect(),i=A.top+r,o=A.left;this.showSuggesterPanel({left:o,top:i,items:this.optionList})}},{key:"getCursorPos",value:function(e){var t=document.querySelector(".CodeMirror-cursors .CodeMirror-cursor");if(!t)return null;var n=e.getCursor(),r=e.lineInfo(n.line).handle.height,A=t.getBoundingClientRect(),i=A.top+r;return{left:A.left,top:i}}},{key:"startRelate",value:function(e,t,n){this.cursorFrom=n,this.keyword=t,this.searchCache=!0,this.relocatePanel(e)}},{key:"stopRelate",value:function(){this.hideSuggesterPanel(),this.cursorFrom=null,this.cursorTo=null,this.keyword="",this.searchKeyCache=[],this.searchCache=!1,this.cursorMove=!0,this.optionList=[]}},{key:"pasteSelectResult",value:function(e,t){if(this.cursorTo&&this.cursorTo!==this.cursorFrom||(this.cursorTo=JSON.parse(Al(this.cursorFrom))),this.cursorTo){this.cursorTo.ch+=1;var n=this.cursorFrom,r=this.cursorTo;if(this.optionList[e]){var A="";if("object"===Ki(this.optionList[e])&&null!==this.optionList[e]&&"string"==typeof this.optionList[e].value)A=this.optionList[e].value;else if("object"===Ki(this.optionList[e])&&null!==this.optionList[e]&&"function"==typeof this.optionList[e].value)A=this.optionList[e].value();else if("string"==typeof this.optionList[e])A="".concat(this.optionList[e]," ");else{var i;A=zi(i=" ".concat(this.keyword)).call(i,this.optionList[e]," ")}if(A&&this.editor.editor.replaceRange(A,n,r),this.optionList[e].goLeft){var o=this.editor.editor.getCursor();this.editor.editor.setCursor(o.line,o.ch-this.optionList[e].goLeft)}if(this.optionList[e].selection){var a=this.editor.editor.getCursor().line,s=this.editor.editor.getCursor().ch;this.editor.editor.setSelection({line:a,ch:s-this.optionList[e].selection.from},{line:a,ch:s-this.optionList[e].selection.to})}}}}},{key:"findSelectedItemIndex",value:function(){return _u(Array.prototype).call(this.$suggesterPanel.childNodes,(function(e){return e.classList.contains("cherry-suggester-panel__item--selected")}))}},{key:"enableRelate",value:function(){return this.searchCache}},{key:"onCodeMirrorChange",value:function(e,t){var n=this,r=t.text,A=t.from,i=t.to,o=t.origin,a=1===r.length?r[0]:"";if(!this.enableRelate()&&this.suggesterConfig[a]&&this.startRelate(e,a,A),this.enableRelate()&&(a||"+delete"===o)){var s;if(this.cursorTo=i,a)this.searchKeyCache.push(a);else if("+delete"===o&&(this.searchKeyCache.pop(),0===this.searchKeyCache.length))return void this.stopRelate();"function"==typeof(null===(s=this.suggesterConfig[this.keyword])||void 0===s?void 0:s.suggestList)&&this.suggesterConfig[this.keyword].suggestList(this.searchKeyCache.join(""),(function(e){!1!==e?(n.optionList=e&&e.length?e:[],n.updatePanel(n.optionList)):n.stopRelate()}))}}},{key:"onKeyDown",value:function(e,t){var n,r=this;if(this.tryCreatePanel(),!this.$suggesterPanel)return!1;var A=t.keyCode;if(ap(n=[38,40]).call(n,A)){if(0===this.optionList.length)return void lo((function(){r.stopRelate()}),0);this.cursorMove=!1;var i=this.$suggesterPanel.querySelector(".cherry-suggester-panel__item--selected"),o=null;38!==A||i.previousElementSibling?40!==A||i.nextElementSibling?38===A?o=i.previousElementSibling:40===A&&(o=i.nextElementSibling):o=this.$suggesterPanel.firstElementChild:o=this.$suggesterPanel.lastElementChild,i.classList.remove("cherry-suggester-panel__item--selected"),o.classList.add("cherry-suggester-panel__item--selected")}else 13===A?(t.stopPropagation(),this.cursorMove=!1,this.pasteSelectResult(this.findSelectedItemIndex(),t),e.focus(),lo((function(){r.stopRelate()}),0)):27!==A&&37!==A&&39!==A||(t.stopPropagation(),e.focus(),lo((function(){r.stopRelate()}),0))}}]),e}();function Ep(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var Fp=function(e){Bi(n,e);var t=Ep(n);function n(){return ui(this,n),t.apply(this,arguments)}return di(n,[{key:"makeHtml",value:function(e){return this.test(e)?e.replace(this.RULE.reg,"$1$2$3$4"):e}},{key:"rule",value:function(){var e={begin:"(^| )\\{",end:"\\}( |$)",content:"([^\n]+?)\\|([^\n]+?)"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}]),n}(ju);function Up(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}Gi(Fp,"HOOK_NAME","ruby");var Sp=function(e){Bi(n,e);var t=Up(n);function n(e){var r;return ui(this,n),(r=t.call(this,{needCache:!0})).initBrReg(e.globalConfig.classicBr),r}return di(n,[{key:"makeHtml",value:function(e,t){var n=this;return e.replace(this.RULE.reg,(function(e,r,A,i){var o,a,s,l,c,u=n.getLineCount(e,r),f=n.$engine.md5(e),h=n.$getPanelInfo(A,i,t),d=h.title,g=h.body,p=h.appendStyle,m=h.className;return qu(e,n.pushCache(zi(o=zi(a=zi(s=zi(l=zi(c='
    ")).call(a,d)).call(o,g,"
    "),f,u))}))}},{key:"$getClassByType",value:function(e){return/(left|right|center)/i.test(e)?"cherry-text-align cherry-text-align__".concat(e):"cherry-panel cherry-panel__".concat(e)}},{key:"$getPanelInfo",value:function(e,t,n){var r,A=this,i={type:this.$getTargetType(e),title:n(this.$getTitle(e)).html,body:t,appendStyle:"",className:""};i.className=this.$getClassByType(i.type),/(left|right|center)/i.test(i.type)&&(i.appendStyle='style="text-align:'.concat(i.type,';"')),i.title=zi(r='
    ')).call(r,i.title,"
    ");var o=function(e){var t,r;if(""===Cl(e).call(e))return"";var i=n(e).html,o="p";return new RegExp("<(".concat(Qf,")[^>]*>"),"i").test(i)&&(o="div"),zi(t=zi(r="<".concat(o,">")).call(r,A.$cleanParagraph(i),"")},a="";return a=this.isContainsCache(i.body)?this.makeExcludingCached(i.body,o):o(i.body),i.body='
    '.concat(a,"
    "),i}},{key:"$getTitle",value:function(e){var t=Cl(e).call(e);return/\s/.test(t)?t.replace(/[^\s]+\s/,""):""}},{key:"$getTargetType",value:function(e){var t=/\s/.test(Cl(e).call(e))?Cl(e).call(e).replace(/\s.*$/,""):e;switch(Cl(t).call(t).toLowerCase()){case"primary":case"p":default:return"primary";case"info":case"i":return"info";case"warning":case"w":return"warning";case"danger":case"d":return"danger";case"success":case"s":return"success";case"right":case"r":return"right";case"center":case"c":return"center";case"left":case"l":return"left"}}},{key:"rule",value:function(){return bu()}}]),n}(If);function Lp(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}Gi(Sp,"HOOK_NAME","panel");var Hp=function(e){Bi(n,e);var t=Lp(n);function n(){return ui(this,n),t.call(this,{needCache:!0})}return di(n,[{key:"makeHtml",value:function(e,t){var n=this;return e.replace(this.RULE.reg,(function(e,r,A,i,o){var a,s,l,c=n.getLineCount(e,r),u=n.$engine.md5(e),f=n.$getDetailInfo(A,i,o,t),h=f.type,d=f.html;return qu(e,n.pushCache(zi(a=zi(s=zi(l='
    ')).call(a,d,"
    "),u,c))}))}},{key:"$getDetailInfo",value:function(e,t,n,r){var A=this,i=/\n\s*(\+\+|\+\+-)\s*[^\n]+\n/.test(n)?"multiple":"single",o=n.split(/\n\s*(\+\+[-]{0,1}\s*[^\n]+)\n/),a="-"===e,s=t,l="";return"multiple"===i?ti(o).call(o,(function(e){if(/\+\+/.test(e))return a=/\+\+-/.test(e),s=e.replace(/\+\+[-]{0,1}\s*([^\n]+)$/,"$1"),!0;l+=A.$getDetailHtml(a,s,e,r)})):l=this.$getDetailHtml(a,s,n,r),{type:i,html:l}}},{key:"$getDetailHtml",value:function(e,t,n,r){var A=this,i="
    "),o=function(e){var t,n;if(""===Cl(e).call(e))return"";var i=r(e).html,o="p";return new RegExp("<(".concat(Qf,")[^>]*>"),"i").test(i)&&(o="div"),zi(t=zi(n="<".concat(o,">")).call(n,A.$cleanParagraph(i),"")};i+="".concat(r(t).html,"");var a="";return a=this.isContainsCache(n)?this.makeExcludingCached(n,o):o(n),i+='
    '.concat(a,"
    "),i+="
    "}},{key:"rule",value:function(){return Cu()}}]),n}(If);Gi(Hp,"HOOK_NAME","detail");var Ip=[ed,nd,wg,bg,Kg,Lg,Ig,Fd,Gd,Xd,ug,Ug,xd,Jd,sg,Hp,Sp,md,Wg,eg,hd,hg,gd,Nh,Dh,Ph,Jh,Gh,Fp,Vh,zg,qg,Tp],Mp=function(){function e(t,n){ui(this,e),this.$cherry=n,ci(this,"_cherry",{get:function(){return Yc.warn("`_engine._cherry` is deprecated. Use `$engine.$cherry` instead."),this.$cherry}}),this.initMath(t),this.$configInit(t),this.hookCenter=new Fh(Ip,t,n),this.hooks=this.hookCenter.getHookList(),this.md5Cache={},this.md5StrMap={},this.markdownParams=t,this.currentStrMd5=[],this.htmlWhiteListAppend=t.engine.global.htmlWhiteList}return di(e,[{key:"initMath",value:function(e){var t=e.externals,n=e.engine.syntax,r=n.mathBlock.plugins;if(Vd()&&(n.mathBlock.src||n.inlineMath.src)&&!t.MathJax&&!window.MathJax){!function(e){if(Vd()){var t=e?["input/asciimath","[tex]/noerrors","[tex]/cancel","[tex]/color","[tex]/boldsymbol"]:[];window.MathJax={startup:{elements:[".Cherry-Math",".Cherry-InlineMath"],typeset:!0},tex:{inlineMath:[["$","$"],["\\(","\\)"]],displayMath:[["$$","$$"],["\\[","\\]"]],tags:"ams",packages:{"[+]":["noerrors","cancel","color"]},macros:{bm:["{\\boldsymbol{#1}}",1]}},options:{skipHtmlTags:["script","noscript","style","textarea","pre","code","a"],ignoreHtmlClass:"tex2jax_ignore",processHtmlClass:"tex2jax_process",enableMenu:!1},loader:{load:t}}}}(r);var A=document.createElement("script");A.src=n.mathBlock.src?n.mathBlock.src:n.inlineMath.src,A.async=!0,A.src&&document.head.appendChild(A)}}},{key:"$configInit",value:function(e){if(e.hooksConfig&&wh(e.hooksConfig.hooksList,Array))for(var t=0;t>>0:i>>>0;(a=A.exec(t))&&!((s=a.index+a[0].length)>f&&(c.push(t.slice(f,a.index)),!r&&a.length>1&&a[0].replace(o,(function(){for(var t=1;t1&&a.index=i));)A.lastIndex===a.index&&A.lastIndex++;return f===t.length?!l&&A.test("")||c.push(""):c.push(t.slice(f)),c.length>i?c.slice(0,i):c},t}(),qp=/([\.#]?[a-zA-Z0-9\u007F-\uFFFF_:-]+)/,Yp=/^\.|#/,em=function(e,t){if(!e)return"DIV";var n,r,A,i,o=!t.hasOwnProperty("id"),a=Zp(e,qp),s=null;Yp.test(a[1])&&(s="DIV");for(i=0;i=A.length?t.length:A[s],g=0;g=d&&a.push(p)}for(var m,v=a.slice(),y=0,w=[],B=[],b=0;bl?s:l,u=0;u>0],i===o)return A>=t&&A<=n;if(An))return!0;o=r-1}}return!1}function Vm(e,t){return e>t?1:-1}var jm=function(e,t){if(Pp(e)&&Pp(t))return"name"in e&&"name"in t?e.id===t.id:e.init===t.init;return!1};var Gm=function(e,t,n){var r=e.type,A=e.vNode,i=e.patch;switch(r){case dm.REMOVE:return function(e,t){var n=e.parentNode;n&&n.removeChild(e);return Wm(e,t),null}(t,A);case dm.INSERT:return function(e,t,n){var r=n.render(t,n);e&&e.appendChild(r);return e}(t,i,n);case dm.VTEXT:return function(e,t,n,r){var A;if(3===e.nodeType)e.replaceData(0,e.length,n.text),A=e;else{var i=e.parentNode;A=r.render(n,r),i&&A!==e&&i.replaceChild(A,e)}return A}(t,0,i,n);case dm.WIDGET:return function(e,t,n,r){var A,i=jm(t,n);A=i?n.update(t,e)||e:r.render(n,r);var o=e.parentNode;o&&A!==e&&o.replaceChild(A,e);i||Wm(e,t);return A}(t,A,i,n);case dm.VNODE:return function(e,t,n,r){var A=e.parentNode,i=r.render(n,r);A&&i!==e&&A.replaceChild(i,e);return i}(t,0,i,n);case dm.ORDER:return function(e,t){for(var n,r,A,i=e.childNodes,o={},a=0;a=s++?null:i[A.to])}(t,i),t;case dm.PROPS:return _m(t,i,A.properties),t;case dm.THUNK:return function(e,t){e&&t&&e!==t&&e.parentNode&&e.parentNode.replaceChild(t,e);return t}(t,n.patch(t,i,n));default:return t}};function Wm(e,t){"function"==typeof t.destroy&&Pp(t)&&t.destroy(e)}var Jm=function e(t,n,r){return(r=r||{}).patch=r.patch&&r.patch!==e?r.patch:zm,r.render=r.render||Rm,r.patch(t,n,r)};function zm(e,t,n){var r=function(e){var t=[];for(var n in e)"a"!==n&&t.push(Number(n));return t}(t);if(0===r.length)return e;var A=Km(e,t.a,r),i=e.ownerDocument;n.document||i===Mm||(n.document=i);for(var o=0;o=r&&d>=n)return o[a]=s,this.$backtraceSnakes(o,n,r,a)}o[a]=s}return[]}},{key:"$backtraceSnakes",value:function(e,t,n,r){for(var A=[],i={x:n,y:t},o=r;o>0;o--){var a=e[o],s=e[o-1],l=i.x-i.y,c=a[l],u=l===-o||l!==o&&s[l+1]>s[l-1],f=u?l+1:l-1,h=s[f],d=h-f,g=u?h:h+1;A.unshift({xStart:h,xMid:g,xEnd:c}),i.x=h,i.y=d}return A}},{key:"assembleResult",value:function(e,t,n){var r,A=this,i="color: gray",o="",a=[],s=0,l=[],c={},u={},f={};return ti(e).call(e,(function(e,r){var h=e.xStart;if(0===r&&0!==e.xStart)for(var d=0;d>1,e+=lv(e/t);e>455;)e=lv(e/35),r+=36;return lv(r+36*e/(e+38))},yv=function(e){var t=[];e=function(e){for(var t=[],n=0,r=e.length;n=55296&&A<=56319&&n=i&&rlv((rv-o)/u))throw av(ov);for(o+=(c-i)*u,i=c,n=0;nrv)throw av(ov);if(r==i){for(var f=o,h=36;;){var d=h<=a?1:h>=a+26?26:h-a;if(f0;)e[r]=e[--r];r!==i++&&(e[r]=n)}return e},Cv=function(e,t,n,r){for(var A=t.length,i=n.length,o=0,a=0;o0?arguments[0]:void 0))},sy=ay.prototype;if(zf(sy,{append:function(e,t){no(arguments.length,2);var n=Fv(this);Xv(n.entries,{key:yn(e),value:yn(t)}),n.updateURL()},delete:function(e){no(arguments.length,1);for(var t=Fv(this),n=t.entries,r=yn(e),A=0;At.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=Fv(this).entries,r=Oe(e,arguments.length>1?arguments[1]:void 0),A=0;A1?uy(arguments[1]):{})}}),y(Iv)){var fy=function(e){return Vf(this,_v),new Iv(e,arguments.length>1?uy(arguments[1]):{})};_v.constructor=fy,fy.prototype=_v,Ye({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:fy})}}var hy,dy={URLSearchParams:ay,getState:Fv},gy=_i.codeAt,py=Jn.set,my=Jn.getterFor("URL"),vy=dy.URLSearchParams,yy=dy.getState,wy=a.URL,By=a.TypeError,by=a.parseInt,Cy=Math.floor,Qy=Math.pow,ky=v("".charAt),Ty=v(/./.exec),xy=v([].join),Ey=v(1..toString),Fy=v([].pop),Uy=v([].push),Sy=v("".replace),Ly=v([].shift),Hy=v("".split),Iy=v("".slice),My=v("".toLowerCase),_y=v([].unshift),Dy="Invalid scheme",Oy="Invalid host",Ny="Invalid port",Ry=/[a-z]/i,Py=/[\d+-.a-z]/i,Ky=/\d/,$y=/^0x/i,Xy=/^[0-7]+$/,Vy=/^\d+$/,jy=/^[\da-f]+$/i,Gy=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Wy=/[\0\t\n\r #/:<>?@[\\\]^|]/,Jy=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,zy=/[\t\n\r]/g,Zy=function(e){var t,n,r,A;if("number"==typeof e){for(t=[],n=0;n<4;n++)_y(t,e%256),e=Cy(e/256);return xy(t,".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,A=0,i=0;i<8;i++)0!==e[i]?(A>n&&(t=r,n=A),r=null,A=0):(null===r&&(r=i),++A);return A>n&&(t=r,n=A),t}(e),n=0;n<8;n++)A&&0===e[n]||(A&&(A=!1),r===n?(t+=n?":":"::",A=!0):(t+=Ey(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},qy={},Yy=el({},qy,{" ":1,'"':1,"<":1,">":1,"`":1}),ew=el({},Yy,{"#":1,"?":1,"{":1,"}":1}),tw=el({},ew,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),nw=function(e,t){var n=gy(e,0);return n>32&&n<127&&!ce(t,e)?e:encodeURIComponent(e)},rw={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Aw=function(e,t){var n;return 2==e.length&&Ty(Ry,ky(e,0))&&(":"==(n=ky(e,1))||!t&&"|"==n)},iw=function(e){var t;return e.length>1&&Aw(Iy(e,0,2))&&(2==e.length||"/"===(t=ky(e,2))||"\\"===t||"?"===t||"#"===t)},ow=function(e){return"."===e||"%2e"===My(e)},aw={},sw={},lw={},cw={},uw={},fw={},hw={},dw={},gw={},pw={},mw={},vw={},yw={},ww={},Bw={},bw={},Cw={},Qw={},kw={},Tw={},xw={},Ew=function(e,t,n){var r,A,i,o=yn(e);if(t){if(A=this.parse(o))throw By(A);this.searchParams=null}else{if(void 0!==n&&(r=new Ew(n,!0)),A=this.parse(o,null,r))throw By(A);(i=yy(new vy)).bindURL(this),this.searchParams=i}};Ew.prototype={type:"URL",parse:function(e,t,n){var r,A,i,o,a,s=this,l=t||aw,c=0,u="",f=!1,h=!1,d=!1;for(e=yn(e),t||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,e=Sy(e,Jy,"")),e=Sy(e,zy,""),r=Il(e);c<=r.length;){switch(A=r[c],l){case aw:if(!A||!Ty(Ry,A)){if(t)return Dy;l=lw;continue}u+=My(A),l=sw;break;case sw:if(A&&(Ty(Py,A)||"+"==A||"-"==A||"."==A))u+=My(A);else{if(":"!=A){if(t)return Dy;u="",l=lw,c=0;continue}if(t&&(s.isSpecial()!=ce(rw,u)||"file"==u&&(s.includesCredentials()||null!==s.port)||"file"==s.scheme&&!s.host))return;if(s.scheme=u,t)return void(s.isSpecial()&&rw[s.scheme]==s.port&&(s.port=null));u="","file"==s.scheme?l=ww:s.isSpecial()&&n&&n.scheme==s.scheme?l=cw:s.isSpecial()?l=dw:"/"==r[c+1]?(l=uw,c++):(s.cannotBeABaseURL=!0,Uy(s.path,""),l=kw)}break;case lw:if(!n||n.cannotBeABaseURL&&"#"!=A)return Dy;if(n.cannotBeABaseURL&&"#"==A){s.scheme=n.scheme,s.path=kn(n.path),s.query=n.query,s.fragment="",s.cannotBeABaseURL=!0,l=xw;break}l="file"==n.scheme?ww:fw;continue;case cw:if("/"!=A||"/"!=r[c+1]){l=fw;continue}l=gw,c++;break;case uw:if("/"==A){l=pw;break}l=Qw;continue;case fw:if(s.scheme=n.scheme,A==hy)s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=kn(n.path),s.query=n.query;else if("/"==A||"\\"==A&&s.isSpecial())l=hw;else if("?"==A)s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=kn(n.path),s.query="",l=Tw;else{if("#"!=A){s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=kn(n.path),s.path.length--,l=Qw;continue}s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=kn(n.path),s.query=n.query,s.fragment="",l=xw}break;case hw:if(!s.isSpecial()||"/"!=A&&"\\"!=A){if("/"!=A){s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,l=Qw;continue}l=pw}else l=gw;break;case dw:if(l=gw,"/"!=A||"/"!=ky(u,c+1))continue;c++;break;case gw:if("/"!=A&&"\\"!=A){l=pw;continue}break;case pw:if("@"==A){f&&(u="%40"+u),f=!0,i=Il(u);for(var g=0;g65535)return Ny;s.port=s.isSpecial()&&v===rw[s.scheme]?null:v,u=""}if(t)return;l=Cw;continue}return Ny}u+=A;break;case ww:if(s.scheme="file","/"==A||"\\"==A)l=Bw;else{if(!n||"file"!=n.scheme){l=Qw;continue}if(A==hy)s.host=n.host,s.path=kn(n.path),s.query=n.query;else if("?"==A)s.host=n.host,s.path=kn(n.path),s.query="",l=Tw;else{if("#"!=A){iw(xy(kn(r,c),""))||(s.host=n.host,s.path=kn(n.path),s.shortenPath()),l=Qw;continue}s.host=n.host,s.path=kn(n.path),s.query=n.query,s.fragment="",l=xw}}break;case Bw:if("/"==A||"\\"==A){l=bw;break}n&&"file"==n.scheme&&!iw(xy(kn(r,c),""))&&(Aw(n.path[0],!0)?Uy(s.path,n.path[0]):s.host=n.host),l=Qw;continue;case bw:if(A==hy||"/"==A||"\\"==A||"?"==A||"#"==A){if(!t&&Aw(u))l=Qw;else if(""==u){if(s.host="",t)return;l=Cw}else{if(o=s.parseHost(u))return o;if("localhost"==s.host&&(s.host=""),t)return;u="",l=Cw}continue}u+=A;break;case Cw:if(s.isSpecial()){if(l=Qw,"/"!=A&&"\\"!=A)continue}else if(t||"?"!=A)if(t||"#"!=A){if(A!=hy&&(l=Qw,"/"!=A))continue}else s.fragment="",l=xw;else s.query="",l=Tw;break;case Qw:if(A==hy||"/"==A||"\\"==A&&s.isSpecial()||!t&&("?"==A||"#"==A)){if(".."===(a=My(a=u))||"%2e."===a||".%2e"===a||"%2e%2e"===a?(s.shortenPath(),"/"==A||"\\"==A&&s.isSpecial()||Uy(s.path,"")):ow(u)?"/"==A||"\\"==A&&s.isSpecial()||Uy(s.path,""):("file"==s.scheme&&!s.path.length&&Aw(u)&&(s.host&&(s.host=""),u=ky(u,0)+":"),Uy(s.path,u)),u="","file"==s.scheme&&(A==hy||"?"==A||"#"==A))for(;s.path.length>1&&""===s.path[0];)Ly(s.path);"?"==A?(s.query="",l=Tw):"#"==A&&(s.fragment="",l=xw)}else u+=nw(A,ew);break;case kw:"?"==A?(s.query="",l=Tw):"#"==A?(s.fragment="",l=xw):A!=hy&&(s.path[0]+=nw(A,qy));break;case Tw:t||"#"!=A?A!=hy&&("'"==A&&s.isSpecial()?s.query+="%27":s.query+="#"==A?"%23":nw(A,qy)):(s.fragment="",l=xw);break;case xw:A!=hy&&(s.fragment+=nw(A,Yy))}c++}},parseHost:function(e){var t,n,r;if("["==ky(e,0)){if("]"!=ky(e,e.length-1))return Oy;if(t=function(e){var t,n,r,A,i,o,a,s=[0,0,0,0,0,0,0,0],l=0,c=null,u=0,f=function(){return ky(e,u)};if(":"==f()){if(":"!=ky(e,1))return;u+=2,c=++l}for(;f();){if(8==l)return;if(":"!=f()){for(t=n=0;n<4&&Ty(jy,f());)t=16*t+by(f(),16),u++,n++;if("."==f()){if(0==n)return;if(u-=n,l>6)return;for(r=0;f();){if(A=null,r>0){if(!("."==f()&&r<4))return;u++}if(!Ty(Ky,f()))return;for(;Ty(Ky,f());){if(i=by(f(),10),null===A)A=i;else{if(0==A)return;A=10*A+i}if(A>255)return;u++}s[l]=256*s[l]+A,2!=++r&&4!=r||l++}if(4!=r)return;break}if(":"==f()){if(u++,!f())return}else if(f())return;s[l++]=t}else{if(null!==c)return;u++,c=++l}}if(null!==c)for(o=l-c,l=7;0!=l&&o>0;)a=s[l],s[l--]=s[c+o-1],s[c+--o]=a;else if(8!=l)return;return s}(Iy(e,1,-1)),!t)return Oy;this.host=t}else if(this.isSpecial()){if(e=function(e){var t,n,r=[],A=gv(dv(pv(e),iv,"."),".");for(t=0;t4)return e;for(n=[],r=0;r1&&"0"==ky(A,0)&&(i=Ty($y,A)?16:8,A=Iy(A,8==i?1:2)),""===A)o=0;else{if(!Ty(10==i?Vy:8==i?Xy:jy,A))return e;o=by(A,i)}Uy(n,o)}for(r=0;r=Qy(256,5-t))return null}else if(o>255)return null;for(a=Fy(n),r=0;r1?arguments[1]:void 0,r=py(t,new Ew(e,!1,n));w||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},Uw=Fw.prototype,Sw=function(e,t){return{get:function(){return my(this)[e]()},set:t&&function(e){return my(this)[t](e)},configurable:!0,enumerable:!0}};if(w&&(nv(Uw,"href",Sw("serialize","setHref")),nv(Uw,"origin",Sw("getOrigin")),nv(Uw,"protocol",Sw("getProtocol","setProtocol")),nv(Uw,"username",Sw("getUsername","setUsername")),nv(Uw,"password",Sw("getPassword","setPassword")),nv(Uw,"host",Sw("getHost","setHost")),nv(Uw,"hostname",Sw("getHostname","setHostname")),nv(Uw,"port",Sw("getPort","setPort")),nv(Uw,"pathname",Sw("getPathname","setPathname")),nv(Uw,"search",Sw("getSearch","setSearch")),nv(Uw,"searchParams",Sw("getSearchParams")),nv(Uw,"hash",Sw("getHash","setHash"))),Un(Uw,"toJSON",(function(){return my(this).serialize()}),{enumerable:!0}),Un(Uw,"toString",(function(){return my(this).serialize()}),{enumerable:!0}),wy){var Lw=wy.createObjectURL,Hw=wy.revokeObjectURL;Lw&&Un(Fw,"createObjectURL",Oe(Lw,wy)),Hw&&Un(Fw,"revokeObjectURL",Oe(Hw,wy))}On(Fw,"URL"),Ye({global:!0,constructor:!0,forced:!tv,sham:!w},{URL:Fw});var Iw=D.URL,Mw=r((function(e,t){e.exports=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};function t(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var n=function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&A[A.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!A||i[1]>A[0]&&i[1]=55296&&A<=56319&&n>10),o%1024+56320)),(A+1===n||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f="undefined"==typeof Uint8Array?[]:new Uint8Array(256),h=0;h>4,c[s++]=(15&r)<<4|A>>2,c[s++]=(3&A)<<6|63&i;return l},v=function(e){for(var t=e.length,n=[],r=0;r>w,Q=(1<>w)+32,T=65536>>B,x=(1<=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>w])<>w)])<>B),t=this.index[t],t+=e>>w&x,t=((t=this.index[t])<M?(A.push(!0),o-=M):A.push(!1),-1!==["normal","auto","loose"].indexOf(t)&&-1!==[8208,8211,12316,12448].indexOf(e))return r.push(i),n.push(z);if(o===N||o===V){if(0===i)return r.push(i),n.push(ce);var a=n[i-1];return-1===He.indexOf(a)?(r.push(r[i-1]),n.push(a)):(r.push(i),n.push(ce))}return r.push(i),o===ue?n.push("strict"===t?te:me):o===be||o===le?n.push(ce):o===Ce?e>=131072&&e<=196605||e>=196608&&e<=262141?n.push(me):n.push(ce):void n.push(o)})),[r,n,A]},De=function(e,t,n,r){var A=r[n];if(Array.isArray(e)?-1!==e.indexOf(A):e===A)for(var i=n;i<=r.length;){if((s=r[++i])===t)return!0;if(s!==X)break}if(A===X)for(i=n;i>0;){var o=r[--i];if(Array.isArray(e)?-1!==e.indexOf(o):e===o)for(var a=n;a<=r.length;){var s;if((s=r[++a])===t)return!0;if(s!==X)break}if(o!==X)break}return!1},Oe=function(e,t){for(var n=e;n>=0;){var r=t[n];if(r!==X)return r;n--}return 0},Ne=function(e,t,n,r,A){if(0===n[r])return Te;var i=r-1;if(Array.isArray(A)&&!0===A[i])return Te;var o=i-1,a=i+1,s=t[i],l=o>=0?t[o]:0,c=t[a];if(s===D&&c===O)return Te;if(-1!==Ue.indexOf(s))return ke;if(-1!==Ue.indexOf(c))return Te;if(-1!==Se.indexOf(c))return Te;if(Oe(i,t)===K)return xe;if(Ee.get(e[i])===V)return Te;if((s===fe||s===he)&&Ee.get(e[a])===V)return Te;if(s===P||c===P)return Te;if(s===$)return Te;if(-1===[X,G,J].indexOf(s)&&c===$)return Te;if(-1!==[Z,q,Y,Ae,se].indexOf(c))return Te;if(Oe(i,t)===ne)return Te;if(De(re,ne,i,t))return Te;if(De([Z,q],te,i,t))return Te;if(De(j,j,i,t))return Te;if(s===X)return xe;if(s===re||c===re)return Te;if(c===z||s===z)return xe;if(-1!==[G,J,te].indexOf(c)||s===W)return Te;if(l===pe&&-1!==Me.indexOf(s))return Te;if(s===se&&c===pe)return Te;if(c===ee)return Te;if(-1!==Fe.indexOf(c)&&s===ie||-1!==Fe.indexOf(s)&&c===ie)return Te;if(s===ae&&-1!==[me,fe,he].indexOf(c)||-1!==[me,fe,he].indexOf(s)&&c===oe)return Te;if(-1!==Fe.indexOf(s)&&-1!==Le.indexOf(c)||-1!==Le.indexOf(s)&&-1!==Fe.indexOf(c))return Te;if(-1!==[ae,oe].indexOf(s)&&(c===ie||-1!==[ne,J].indexOf(c)&&t[a+1]===ie)||-1!==[ne,J].indexOf(s)&&c===ie||s===ie&&-1!==[ie,se,Ae].indexOf(c))return Te;if(-1!==[ie,se,Ae,Z,q].indexOf(c))for(var u=i;u>=0;){if((f=t[u])===ie)return Te;if(-1===[se,Ae].indexOf(f))break;u--}if(-1!==[ae,oe].indexOf(c))for(u=-1!==[Z,q].indexOf(s)?o:i;u>=0;){var f;if((f=t[u])===ie)return Te;if(-1===[se,Ae].indexOf(f))break;u--}if(ve===s&&-1!==[ve,ye,de,ge].indexOf(c)||-1!==[ye,de].indexOf(s)&&-1!==[ye,we].indexOf(c)||-1!==[we,ge].indexOf(s)&&c===we)return Te;if(-1!==Ie.indexOf(s)&&-1!==[ee,oe].indexOf(c)||-1!==Ie.indexOf(c)&&s===ae)return Te;if(-1!==Fe.indexOf(s)&&-1!==Fe.indexOf(c))return Te;if(s===Ae&&-1!==Fe.indexOf(c))return Te;if(-1!==Fe.concat(ie).indexOf(s)&&c===ne&&-1===Qe.indexOf(e[a])||-1!==Fe.concat(ie).indexOf(c)&&s===q)return Te;if(s===Be&&c===Be){for(var h=n[i],d=1;h>0&&t[--h]===Be;)d++;if(d%2!=0)return Te}return s===fe&&c===he?Te:xe},Re=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var n=_e(e,t.lineBreak),r=n[0],A=n[1],i=n[2];"break-all"!==t.wordBreak&&"break-word"!==t.wordBreak||(A=A.map((function(e){return-1!==[ie,ce,be].indexOf(e)?me:e})));var o="keep-all"===t.wordBreak?i.map((function(t,n){return t&&e[n]>=19968&&e[n]<=40959})):void 0;return[r,A,o]},Pe=function(){function e(e,t,n,r){this.codePoints=e,this.required=t===ke,this.start=n,this.end=r}return e.prototype.slice=function(){return c.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),Ke=function(e,t){var n=l(e),r=Re(n,t),A=r[0],i=r[1],o=r[2],a=n.length,s=0,c=0;return{next:function(){if(c>=a)return{done:!0,value:null};for(var e=Te;c=Mt&&e<=57},Gt=function(e){return e>=55296&&e<=57343},Wt=function(e){return jt(e)||e>=Pt&&e<=$t||e>=_t&&e<=Ot},Jt=function(e){return e>=_t&&e<=Rt},zt=function(e){return e>=Pt&&e<=Vt},Zt=function(e){return Jt(e)||zt(e)},qt=function(e){return e>=wt},Yt=function(e){return e===Ge||e===ze||e===Ze},en=function(e){return Zt(e)||qt(e)||e===ot},tn=function(e){return en(e)||jt(e)||e===at},nn=function(e){return e>=Et&&e<=Ft||e===Ut||e>=St&&e<=Lt||e===Ht},rn=function(e,t){return e===Je&&t!==Ge},An=function(e,t,n){return e===at?en(t)||rn(t,n):!!en(e)||!(e!==Je||!rn(e,t))},on=function(e,t,n){return e===Ct||e===at?!!jt(t)||t===xt&&jt(n):jt(e===xt?t:e)},an=function(e){var t=0,n=1;e[t]!==Ct&&e[t]!==at||(e[t]===at&&(n=-1),t++);for(var r=[];jt(e[t]);)r.push(e[t++]);var A=r.length?parseInt(c.apply(void 0,r),10):0;e[t]===xt&&t++;for(var i=[];jt(e[t]);)i.push(e[t++]);var o=i.length,a=o?parseInt(c.apply(void 0,i),10):0;e[t]!==Kt&&e[t]!==Dt||t++;var s=1;e[t]!==Ct&&e[t]!==at||(e[t]===at&&(s=-1),t++);for(var l=[];jt(e[t]);)l.push(e[t++]);var u=l.length?parseInt(c.apply(void 0,l),10):0;return n*(A+a*Math.pow(10,-o))*Math.pow(10,s*u)},sn={type:2},ln={type:3},cn={type:4},un={type:13},fn={type:8},hn={type:21},dn={type:9},gn={type:10},pn={type:11},mn={type:12},vn={type:14},yn={type:23},wn={type:1},Bn={type:25},bn={type:24},Cn={type:26},Qn={type:27},kn={type:28},Tn={type:29},xn={type:31},En={type:32},Fn=function(){function e(){this._value=[]}return e.prototype.write=function(e){this._value=this._value.concat(l(e))},e.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==En;)e.push(t),t=this.consumeToken();return e},e.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case qe:return this.consumeStringToken(qe);case et:var t=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(tn(t)||rn(n,r)){var A=An(t,n,r)?Xe:$e;return{type:5,value:this.consumeName(),flags:A}}break;case tt:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),un;break;case rt:return this.consumeStringToken(rt);case At:return sn;case it:return ln;case bt:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),vn;break;case Ct:if(on(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case Qt:return cn;case at:var i=e,o=this.peekCodePoint(0),a=this.peekCodePoint(1);if(on(i,o,a))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(An(i,o,a))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(o===at&&a===ct)return this.consumeCodePoint(),this.consumeCodePoint(),bn;break;case xt:if(on(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case We:if(this.peekCodePoint(0)===bt)for(this.consumeCodePoint();;){var s=this.consumeCodePoint();if(s===bt&&(s=this.consumeCodePoint())===We)return this.consumeToken();if(s===It)return this.consumeToken()}break;case kt:return Cn;case Tt:return Qn;case lt:if(this.peekCodePoint(0)===st&&this.peekCodePoint(1)===at&&this.peekCodePoint(2)===at)return this.consumeCodePoint(),this.consumeCodePoint(),Bn;break;case ut:var l=this.peekCodePoint(0),u=this.peekCodePoint(1),f=this.peekCodePoint(2);if(An(l,u,f))return{type:7,value:this.consumeName()};break;case ft:return kn;case Je:if(rn(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case ht:return Tn;case dt:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),fn;break;case gt:return pn;case mt:return mn;case Nt:case Xt:var h=this.peekCodePoint(0),d=this.peekCodePoint(1);return h!==Ct||!Wt(d)&&d!==pt||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case vt:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),dn;if(this.peekCodePoint(0)===vt)return this.consumeCodePoint(),hn;break;case yt:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),gn;break;case It:return En}return Yt(e)?(this.consumeWhiteSpace(),xn):jt(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):en(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:c(e)}},e.prototype.consumeCodePoint=function(){var e=this._value.shift();return void 0===e?-1:e},e.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},e.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},e.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();Wt(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var n=!1;t===pt&&e.length<6;)e.push(t),t=this.consumeCodePoint(),n=!0;if(n)return{type:30,start:parseInt(c.apply(void 0,e.map((function(e){return e===pt?Mt:e}))),16),end:parseInt(c.apply(void 0,e.map((function(e){return e===pt?$t:e}))),16)};var r=parseInt(c.apply(void 0,e),16);if(this.peekCodePoint(0)===at&&Wt(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var A=[];Wt(t)&&A.length<6;)A.push(t),t=this.consumeCodePoint();return{type:30,start:r,end:parseInt(c.apply(void 0,A),16)}}return{type:30,start:r,end:r}},e.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return"url"===e.toLowerCase()&&this.peekCodePoint(0)===At?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===At?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},e.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===It)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===rt||t===qe){var n=this.consumeStringToken(this.consumeCodePoint());return 0===n.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===It||this.peekCodePoint(0)===it)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),yn)}for(;;){var r=this.consumeCodePoint();if(r===It||r===it)return{type:22,value:c.apply(void 0,e)};if(Yt(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===It||this.peekCodePoint(0)===it?(this.consumeCodePoint(),{type:22,value:c.apply(void 0,e)}):(this.consumeBadUrlRemnants(),yn);if(r===qe||r===rt||r===At||nn(r))return this.consumeBadUrlRemnants(),yn;if(r===Je){if(!rn(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),yn;e.push(this.consumeEscapedCodePoint())}else e.push(r)}},e.prototype.consumeWhiteSpace=function(){for(;Yt(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===it||e===It)return;rn(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(e){for(var t=5e4,n="";e>0;){var r=Math.min(t,e);n+=c.apply(void 0,this._value.splice(0,r)),e-=r}return this._value.shift(),n},e.prototype.consumeStringToken=function(e){for(var t="",n=0;;){var r=this._value[n];if(r===It||void 0===r||r===e)return{type:0,value:t+=this.consumeStringSlice(n)};if(r===Ge)return this._value.splice(0,n),wn;if(r===Je){var A=this._value[n+1];A!==It&&void 0!==A&&(A===Ge?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):rn(r,A)&&(t+=this.consumeStringSlice(n),t+=c(this.consumeEscapedCodePoint()),n=-1))}n++}},e.prototype.consumeNumber=function(){var e=[],t=Ve,n=this.peekCodePoint(0);for(n!==Ct&&n!==at||e.push(this.consumeCodePoint());jt(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(n===xt&&jt(r))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=je;jt(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);var A=this.peekCodePoint(2);if((n===Kt||n===Dt)&&((r===Ct||r===at)&&jt(A)||jt(r)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=je;jt(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[an(e),t]},e.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],n=e[1],r=this.peekCodePoint(0),A=this.peekCodePoint(1),i=this.peekCodePoint(2);return An(r,A,i)?{type:15,number:t,flags:n,unit:this.consumeName()}:r===nt?(this.consumeCodePoint(),{type:16,number:t,flags:n}):{type:17,number:t,flags:n}},e.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(Wt(e)){for(var t=c(e);Wt(this.peekCodePoint(0))&&t.length<6;)t+=c(this.consumeCodePoint());Yt(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(t,16);return 0===n||Gt(n)||n>1114111?Bt:n}return e===It?Bt:e},e.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(tn(t))e+=c(t);else{if(!rn(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),e;e+=c(this.consumeEscapedCodePoint())}}},e}(),Un=function(){function e(e){this._tokens=e}return e.create=function(t){var n=new Fn;return n.write(t),new e(n.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var e=this.consumeToken();31===e.type;)e=this.consumeToken();if(32===e.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do{e=this.consumeToken()}while(31===e.type);if(32===e.type)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(32===t.type)return e;e.push(t),e.push()}},e.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},e.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},n=this.consumeToken();;){if(32===n.type||Nn(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}},e.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:18};;){var n=this.consumeToken();if(32===n.type||3===n.type)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var e=this._tokens.shift();return void 0===e?En:e},e.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},e}(),Sn=function(e){return 15===e.type},Ln=function(e){return 17===e.type},Hn=function(e){return 20===e.type},In=function(e){return 0===e.type},Mn=function(e,t){return Hn(e)&&e.value===t},_n=function(e){return 31!==e.type},Dn=function(e){return 31!==e.type&&4!==e.type},On=function(e){var t=[],n=[];return e.forEach((function(e){if(4===e.type){if(0===n.length)throw new Error("Error parsing function args, zero tokens for arg");return t.push(n),void(n=[])}31!==e.type&&n.push(e)})),n.length&&t.push(n),t},Nn=function(e,t){return 11===t&&12===e.type||28===t&&29===e.type||2===t&&3===e.type},Rn=function(e){return 17===e.type||15===e.type},Pn=function(e){return 16===e.type||Rn(e)},Kn=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},$n={type:17,number:0,flags:Ve},Xn={type:16,number:50,flags:Ve},Vn={type:16,number:100,flags:Ve},jn=function(e,t,n){var r=e[0],A=e[1];return[Gn(r,t),Gn(void 0!==A?A:r,n)]},Gn=function(e,t){if(16===e.type)return e.number/100*t;if(Sn(e))switch(e.unit){case"rem":case"em":return 16*e.number;default:return e.number}return e.number},Wn="deg",Jn="grad",zn="rad",Zn="turn",qn={name:"angle",parse:function(e,t){if(15===t.type)switch(t.unit){case Wn:return Math.PI*t.number/180;case Jn:return Math.PI/200*t.number;case zn:return t.number;case Zn:return 2*Math.PI*t.number}throw new Error("Unsupported angle type")}},Yn=function(e){return 15===e.type&&(e.unit===Wn||e.unit===Jn||e.unit===zn||e.unit===Zn)},er=function(e){switch(e.filter(Hn).map((function(e){return e.value})).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[$n,$n];case"to top":case"bottom":return tr(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[$n,Vn];case"to right":case"left":return tr(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Vn,Vn];case"to bottom":case"top":return tr(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Vn,$n];case"to left":case"right":return tr(270)}return 0},tr=function(e){return Math.PI*e/180},nr={name:"color",parse:function(e,t){if(18===t.type){var n=cr[t.name];if(void 0===n)throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return n(e,t.values)}if(5===t.type){if(3===t.value.length){var r=t.value.substring(0,1),A=t.value.substring(1,2),i=t.value.substring(2,3);return ir(parseInt(r+r,16),parseInt(A+A,16),parseInt(i+i,16),1)}if(4===t.value.length){r=t.value.substring(0,1),A=t.value.substring(1,2),i=t.value.substring(2,3);var o=t.value.substring(3,4);return ir(parseInt(r+r,16),parseInt(A+A,16),parseInt(i+i,16),parseInt(o+o,16)/255)}if(6===t.value.length)return r=t.value.substring(0,2),A=t.value.substring(2,4),i=t.value.substring(4,6),ir(parseInt(r,16),parseInt(A,16),parseInt(i,16),1);if(8===t.value.length)return r=t.value.substring(0,2),A=t.value.substring(2,4),i=t.value.substring(4,6),o=t.value.substring(6,8),ir(parseInt(r,16),parseInt(A,16),parseInt(i,16),parseInt(o,16)/255)}if(20===t.type){var a=fr[t.value.toUpperCase()];if(void 0!==a)return a}return fr.TRANSPARENT}},rr=function(e){return 0==(255&e)},Ar=function(e){var t=255&e,n=255&e>>8,r=255&e>>16,A=255&e>>24;return t<255?"rgba("+A+","+r+","+n+","+t/255+")":"rgb("+A+","+r+","+n+")"},ir=function(e,t,n,r){return(e<<24|t<<16|n<<8|Math.round(255*r)<<0)>>>0},or=function(e,t){if(17===e.type)return e.number;if(16===e.type){var n=3===t?1:255;return 3===t?e.number/100*n:Math.round(e.number/100*n)}return 0},ar=function(e,t){var n=t.filter(Dn);if(3===n.length){var r=n.map(or),A=r[0],i=r[1],o=r[2];return ir(A,i,o,1)}if(4===n.length){var a=n.map(or),s=(A=a[0],i=a[1],o=a[2],a[3]);return ir(A,i,o,s)}return 0};function sr(e,t,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(t-e)*n*6+e:n<.5?t:n<2/3?6*(t-e)*(2/3-n)+e:e}var lr=function(e,t){var n=t.filter(Dn),r=n[0],A=n[1],i=n[2],o=n[3],a=(17===r.type?tr(r.number):qn.parse(e,r))/(2*Math.PI),s=Pn(A)?A.number/100:0,l=Pn(i)?i.number/100:0,c=void 0!==o&&Pn(o)?Gn(o,1):1;if(0===s)return ir(255*l,255*l,255*l,1);var u=l<=.5?l*(s+1):l+s-l*s,f=2*l-u,h=sr(f,u,a+1/3),d=sr(f,u,a),g=sr(f,u,a-1/3);return ir(255*h,255*d,255*g,c)},cr={hsl:lr,hsla:lr,rgb:ar,rgba:ar},ur=function(e,t){return nr.parse(e,Un.create(t).parseComponentValue())},fr={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},hr={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map((function(e){if(Hn(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},dr={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},gr=function(e,t){var n=nr.parse(e,t[0]),r=t[1];return r&&Pn(r)?{color:n,stop:r}:{color:n,stop:null}},pr=function(e,t){var n=e[0],r=e[e.length-1];null===n.stop&&(n.stop=$n),null===r.stop&&(r.stop=Vn);for(var A=[],i=0,o=0;oi?A.push(s):A.push(i),i=s}else A.push(null)}var l=null;for(o=0;oe.optimumDistance)?{optimumCorner:t,optimumDistance:a}:e}),{optimumDistance:A?1/0:-1/0,optimumCorner:null}).optimumCorner},Br=function(e,t,n,r,A){var i=0,o=0;switch(e.size){case 0:0===e.shape?i=o=Math.min(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-A)):1===e.shape&&(i=Math.min(Math.abs(t),Math.abs(t-r)),o=Math.min(Math.abs(n),Math.abs(n-A)));break;case 2:if(0===e.shape)i=o=Math.min(yr(t,n),yr(t,n-A),yr(t-r,n),yr(t-r,n-A));else if(1===e.shape){var a=Math.min(Math.abs(n),Math.abs(n-A))/Math.min(Math.abs(t),Math.abs(t-r)),s=wr(r,A,t,n,!0),l=s[0],c=s[1];o=a*(i=yr(l-t,(c-n)/a))}break;case 1:0===e.shape?i=o=Math.max(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-A)):1===e.shape&&(i=Math.max(Math.abs(t),Math.abs(t-r)),o=Math.max(Math.abs(n),Math.abs(n-A)));break;case 3:if(0===e.shape)i=o=Math.max(yr(t,n),yr(t,n-A),yr(t-r,n),yr(t-r,n-A));else if(1===e.shape){a=Math.max(Math.abs(n),Math.abs(n-A))/Math.max(Math.abs(t),Math.abs(t-r));var u=wr(r,A,t,n,!1);l=u[0],c=u[1],o=a*(i=yr(l-t,(c-n)/a))}}return Array.isArray(e.size)&&(i=Gn(e.size[0],r),o=2===e.size.length?Gn(e.size[1],A):i),[i,o]},br=function(e,t){var n=tr(180),r=[];return On(t).forEach((function(t,A){if(0===A){var i=t[0];if(20===i.type&&-1!==["top","left","right","bottom"].indexOf(i.value))return void(n=er(t));if(Yn(i))return void(n=(qn.parse(e,i)+tr(270))%tr(360))}var o=gr(e,t);r.push(o)})),{angle:n,stops:r,type:1}},Cr=function(e,t){var n=tr(180),r=[],A=1,i=0,o=3,a=[];return On(t).forEach((function(t,n){var i=t[0];if(0===n){if(Hn(i)&&"linear"===i.value)return void(A=1);if(Hn(i)&&"radial"===i.value)return void(A=2)}if(18===i.type)if("from"===i.name){var o=nr.parse(e,i.values[0]);r.push({stop:$n,color:o})}else if("to"===i.name)o=nr.parse(e,i.values[0]),r.push({stop:Vn,color:o});else if("color-stop"===i.name){var a=i.values.filter(Dn);if(2===a.length){o=nr.parse(e,a[1]);var s=a[0];Ln(s)&&r.push({stop:{type:16,number:100*s.number,flags:s.flags},color:o})}}})),1===A?{angle:(n+tr(180))%tr(360),stops:r,type:A}:{size:o,shape:i,stops:r,position:a,type:A}},Qr="closest-side",kr="farthest-side",Tr="closest-corner",xr="farthest-corner",Er="circle",Fr="ellipse",Ur="cover",Sr="contain",Lr=function(e,t){var n=0,r=3,A=[],i=[];return On(t).forEach((function(t,o){var a=!0;if(0===o){var s=!1;a=t.reduce((function(e,t){if(s)if(Hn(t))switch(t.value){case"center":return i.push(Xn),e;case"top":case"left":return i.push($n),e;case"right":case"bottom":return i.push(Vn),e}else(Pn(t)||Rn(t))&&i.push(t);else if(Hn(t))switch(t.value){case Er:return n=0,!1;case Fr:return n=1,!1;case"at":return s=!0,!1;case Qr:return r=0,!1;case Ur:case kr:return r=1,!1;case Sr:case Tr:return r=2,!1;case xr:return r=3,!1}else if(Rn(t)||Pn(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e}),a)}if(a){var l=gr(e,t);A.push(l)}})),{size:r,shape:n,stops:A,position:i,type:2}},Hr=function(e,t){var n=0,r=3,A=[],i=[];return On(t).forEach((function(t,o){var a=!0;if(0===o?a=t.reduce((function(e,t){if(Hn(t))switch(t.value){case"center":return i.push(Xn),!1;case"top":case"left":return i.push($n),!1;case"right":case"bottom":return i.push(Vn),!1}else if(Pn(t)||Rn(t))return i.push(t),!1;return e}),a):1===o&&(a=t.reduce((function(e,t){if(Hn(t))switch(t.value){case Er:return n=0,!1;case Fr:return n=1,!1;case Sr:case Qr:return r=0,!1;case kr:return r=1,!1;case Tr:return r=2,!1;case Ur:case xr:return r=3,!1}else if(Rn(t)||Pn(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e}),a)),a){var s=gr(e,t);A.push(s)}})),{size:r,shape:n,stops:A,position:i,type:2}},Ir=function(e){return 1===e.type},Mr=function(e){return 2===e.type},_r={name:"image",parse:function(e,t){if(22===t.type){var n={url:t.value,type:0};return e.cache.addImage(t.value),n}if(18===t.type){var r=Nr[t.name];if(void 0===r)throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return r(e,t.values)}throw new Error("Unsupported image type "+t.type)}};function Dr(e){return!(20===e.type&&"none"===e.value||18===e.type&&!Nr[e.name])}var Or,Nr={"linear-gradient":function(e,t){var n=tr(180),r=[];return On(t).forEach((function(t,A){if(0===A){var i=t[0];if(20===i.type&&"to"===i.value)return void(n=er(t));if(Yn(i))return void(n=qn.parse(e,i))}var o=gr(e,t);r.push(o)})),{angle:n,stops:r,type:1}},"-moz-linear-gradient":br,"-ms-linear-gradient":br,"-o-linear-gradient":br,"-webkit-linear-gradient":br,"radial-gradient":Lr,"-moz-radial-gradient":Hr,"-ms-radial-gradient":Hr,"-o-radial-gradient":Hr,"-webkit-radial-gradient":Hr,"-webkit-gradient":Cr},Rr={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(0===t.length)return[];var n=t[0];return 20===n.type&&"none"===n.value?[]:t.filter((function(e){return Dn(e)&&Dr(e)})).map((function(t){return _r.parse(e,t)}))}},Pr={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map((function(e){if(Hn(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Kr={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return On(t).map((function(e){return e.filter(Pn)})).map(Kn)}},$r={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return On(t).map((function(e){return e.filter(Hn).map((function(e){return e.value})).join(" ")})).map(Xr)}},Xr=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}};!function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"}(Or||(Or={}));var Vr,jr={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return On(t).map((function(e){return e.filter(Gr)}))}},Gr=function(e){return Hn(e)||Pn(e)},Wr=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Jr=Wr("top"),zr=Wr("right"),Zr=Wr("bottom"),qr=Wr("left"),Yr=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return Kn(t.filter(Pn))}}},eA=Yr("top-left"),tA=Yr("top-right"),nA=Yr("bottom-right"),rA=Yr("bottom-left"),AA=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},iA=AA("top"),oA=AA("right"),aA=AA("bottom"),sA=AA("left"),lA=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Sn(t)?t.number:0}}},cA=lA("top"),uA=lA("right"),fA=lA("bottom"),hA=lA("left"),dA={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},gA={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){return"rtl"===t?1:0}},pA={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(Hn).reduce((function(e,t){return e|mA(t.value)}),0)}},mA=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},vA={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},yA={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,t){return 20===t.type&&"normal"===t.value?0:17===t.type||15===t.type?t.number:0}};!function(e){e.NORMAL="normal",e.STRICT="strict"}(Vr||(Vr={}));var wA,BA={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){return"strict"===t?Vr.STRICT:Vr.NORMAL}},bA={name:"line-height",initialValue:"normal",prefix:!1,type:4},CA=function(e,t){return Hn(e)&&"normal"===e.value?1.2*t:17===e.type?t*e.number:Pn(e)?Gn(e,t):t},QA={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return 20===t.type&&"none"===t.value?null:_r.parse(e,t)}},kA={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,t){return"inside"===t?0:1}},TA={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},xA=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},EA=xA("top"),FA=xA("right"),UA=xA("bottom"),SA=xA("left"),LA={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(Hn).map((function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}}))}},HA={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){return"break-word"===t?"break-word":"normal"}},IA=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},MA=IA("top"),_A=IA("right"),DA=IA("bottom"),OA=IA("left"),NA={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,t){switch(t){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},RA={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},PA={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&Mn(t[0],"none")?[]:On(t).map((function(t){for(var n={color:fr.TRANSPARENT,offsetX:$n,offsetY:$n,blur:$n},r=0,A=0;A1?1:0],this.overflowWrap=bi(e,HA,t.overflowWrap),this.paddingTop=bi(e,MA,t.paddingTop),this.paddingRight=bi(e,_A,t.paddingRight),this.paddingBottom=bi(e,DA,t.paddingBottom),this.paddingLeft=bi(e,OA,t.paddingLeft),this.paintOrder=bi(e,pi,t.paintOrder),this.position=bi(e,RA,t.position),this.textAlign=bi(e,NA,t.textAlign),this.textDecorationColor=bi(e,ti,null!==(n=t.textDecorationColor)&&void 0!==n?n:t.color),this.textDecorationLine=bi(e,ni,null!==(r=t.textDecorationLine)&&void 0!==r?r:t.textDecoration),this.textShadow=bi(e,PA,t.textShadow),this.textTransform=bi(e,KA,t.textTransform),this.transform=bi(e,$A,t.transform),this.transformOrigin=bi(e,JA,t.transformOrigin),this.visibility=bi(e,zA,t.visibility),this.webkitTextStrokeColor=bi(e,mi,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=bi(e,vi,t.webkitTextStrokeWidth),this.wordBreak=bi(e,ZA,t.wordBreak),this.zIndex=bi(e,qA,t.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},e.prototype.isTransparent=function(){return rr(this.backgroundColor)},e.prototype.isTransformed=function(){return null!==this.transform},e.prototype.isPositioned=function(){return 0!==this.position},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return 0!==this.float},e.prototype.isInlineLevel=function(){return si(this.display,4)||si(this.display,33554432)||si(this.display,268435456)||si(this.display,536870912)||si(this.display,67108864)||si(this.display,134217728)},e}(),wi=function(){function e(e,t){this.content=bi(e,li,t.content),this.quotes=bi(e,hi,t.quotes)}return e}(),Bi=function(){function e(e,t){this.counterIncrement=bi(e,ci,t.counterIncrement),this.counterReset=bi(e,ui,t.counterReset)}return e}(),bi=function(e,t,n){var r=new Fn,A=null!=n?n.toString():t.initialValue;r.write(A);var i=new Un(r.read());switch(t.type){case 2:var o=i.parseComponentValue();return t.parse(e,Hn(o)?o.value:t.initialValue);case 0:return t.parse(e,i.parseComponentValue());case 1:return t.parse(e,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(t.format){case"angle":return qn.parse(e,i.parseComponentValue());case"color":return nr.parse(e,i.parseComponentValue());case"image":return _r.parse(e,i.parseComponentValue());case"length":var a=i.parseComponentValue();return Rn(a)?a:$n;case"length-percentage":var s=i.parseComponentValue();return Pn(s)?s:$n;case"time":return YA.parse(e,i.parseComponentValue())}}},Ci="data-html2canvas-debug",Qi=function(e){switch(e.getAttribute(Ci)){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},ki=function(e,t){var n=Qi(e);return 1===n||t===n},Ti=function(){function e(e,t){this.context=e,this.textNodes=[],this.elements=[],this.flags=0,ki(t,3),this.styles=new yi(e,window.getComputedStyle(t,null)),da(t)&&(this.styles.animationDuration.some((function(e){return e>0}))&&(t.style.animationDuration="0s"),null!==this.styles.transform&&(t.style.transform="none")),this.bounds=a(this.context,t),ki(t,4)&&(this.flags|=16)}return e}(),xi="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Ei="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Fi="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Ui=0;Ui>4,c[s++]=(15&r)<<4|A>>2,c[s++]=(3&A)<<6|63&i;return l},Li=function(e){for(var t=e.length,n=[],r=0;r>Ii,Oi=(1<>Ii)+32,Ri=65536>>Mi,Pi=(1<=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>Ii])<<_i)+(e&Oi),this.data[t];if(e<=65535)return t=((t=this.index[Di+(e-55296>>Ii)])<<_i)+(e&Oi),this.data[t];if(e>Mi),t=this.index[t],t+=e>>Ii&Pi,t=((t=this.index[t])<<_i)+(e&Oi),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),ji="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Gi="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Wi=0;Wi=55296&&A<=56319&&n>10),o%1024+56320)),(A+1===n||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},fo=Xi(xi),ho="×",go="÷",po=function(e){return fo.get(e)},mo=function(e,t,n){var r=n-2,A=t[r],i=t[n-1],o=t[n];if(i===Zi&&o===qi)return ho;if(i===Zi||i===qi||i===Yi)return go;if(o===Zi||o===qi||o===Yi)return go;if(i===no&&-1!==[no,ro,io,oo].indexOf(o))return ho;if(!(i!==io&&i!==ro||o!==ro&&o!==Ao))return ho;if((i===oo||i===Ao)&&o===Ao)return ho;if(o===ao||o===eo)return ho;if(o===to)return ho;if(i===zi)return ho;if(i===ao&&o===so){for(;A===eo;)A=t[--r];if(A===so)return ho}if(i===lo&&o===lo){for(var a=0;A===lo;)a++,A=t[--r];if(a%2==0)return ho}return go},vo=function(e){var t=co(e),n=t.length,r=0,A=0,i=t.map(po);return{next:function(){if(r>=n)return{done:!0,value:null};for(var e=ho;ro.x||A.y>o.y;return o=A,0===t||a}));return e.body.removeChild(t),a},bo=function(){return void 0!==(new Image).crossOrigin},Co=function(){return"string"==typeof(new XMLHttpRequest).responseType},Qo=function(e){var t=new Image,n=e.createElement("canvas"),r=n.getContext("2d");if(!r)return!1;t.src="data:image/svg+xml,";try{r.drawImage(t,0,0),n.toDataURL()}catch(e){return!1}return!0},ko=function(e){return 0===e[0]&&255===e[1]&&0===e[2]&&255===e[3]},To=function(e){var t=e.createElement("canvas"),n=100;t.width=n,t.height=n;var r=t.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,n,n);var A=new Image,i=t.toDataURL();A.src=i;var o=xo(n,n,0,0,A);return r.fillStyle="red",r.fillRect(0,0,n,n),Eo(o).then((function(t){r.drawImage(t,0,0);var A=r.getImageData(0,0,n,n).data;r.fillStyle="red",r.fillRect(0,0,n,n);var o=e.createElement("div");return o.style.backgroundImage="url("+i+")",o.style.height=n+"px",ko(A)?Eo(xo(n,n,0,0,o)):Promise.reject(!1)})).then((function(e){return r.drawImage(e,0,0),ko(r.getImageData(0,0,n,n).data)})).catch((function(){return!1}))},xo=function(e,t,n,r,A){var i="http://www.w3.org/2000/svg",o=document.createElementNS(i,"svg"),a=document.createElementNS(i,"foreignObject");return o.setAttributeNS(null,"width",e.toString()),o.setAttributeNS(null,"height",t.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",n.toString()),a.setAttributeNS(null,"y",r.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(a),a.appendChild(A),o},Eo=function(e){return new Promise((function(t,n){var r=new Image;r.onload=function(){return t(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))}))},Fo={get SUPPORT_RANGE_BOUNDS(){var e=wo(document);return Object.defineProperty(Fo,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=Fo.SUPPORT_RANGE_BOUNDS&&Bo(document);return Object.defineProperty(Fo,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=Qo(document);return Object.defineProperty(Fo,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e="function"==typeof Array.from&&"function"==typeof window.fetch?To(document):Promise.resolve(!1);return Object.defineProperty(Fo,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=bo();return Object.defineProperty(Fo,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=Co();return Object.defineProperty(Fo,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Fo,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(Fo,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},Uo=function(){function e(e,t){this.text=e,this.bounds=t}return e}(),So=function(e,t,n,r){var A=_o(t,n),i=[],a=0;return A.forEach((function(t){if(n.textDecorationLine.length||t.trim().length>0)if(Fo.SUPPORT_RANGE_BOUNDS){var A=Ho(r,a,t.length).getClientRects();if(A.length>1){var s=Io(t),l=0;s.forEach((function(t){i.push(new Uo(t,o.fromDOMRectList(e,Ho(r,l+a,t.length).getClientRects()))),l+=t.length}))}else i.push(new Uo(t,o.fromDOMRectList(e,A)))}else{var c=r.splitText(t.length);i.push(new Uo(t,Lo(e,r))),r=c}else Fo.SUPPORT_RANGE_BOUNDS||(r=r.splitText(t.length));a+=t.length})),i},Lo=function(e,t){var n=t.ownerDocument;if(n){var r=n.createElement("html2canvaswrapper");r.appendChild(t.cloneNode(!0));var A=t.parentNode;if(A){A.replaceChild(r,t);var i=a(e,r);return r.firstChild&&A.replaceChild(r.firstChild,r),i}}return o.EMPTY},Ho=function(e,t,n){var r=e.ownerDocument;if(!r)throw new Error("Node has no owner document");var A=r.createRange();return A.setStart(e,t),A.setEnd(e,t+n),A},Io=function(e){if(Fo.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).map((function(e){return e.segment}))}return yo(e)},Mo=function(e,t){if(Fo.SUPPORT_NATIVE_TEXT_SEGMENTATION){var n=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(n.segment(e)).map((function(e){return e.segment}))}return Oo(e,t)},_o=function(e,t){return 0!==t.letterSpacing?Io(e):Mo(e,t)},Do=[32,160,4961,65792,65793,4153,4241],Oo=function(e,t){for(var n,r=Ke(e,{lineBreak:t.lineBreak,wordBreak:"break-word"===t.overflowWrap?"break-word":t.wordBreak}),A=[],i=function(){if(n.value){var e=n.value.slice(),t=l(e),r="";t.forEach((function(e){-1===Do.indexOf(e)?r+=c(e):(r.length&&A.push(r),A.push(c(e)),r="")})),r.length&&A.push(r)}};!(n=r.next()).done;)i();return A},No=function(){function e(e,t,n){this.text=Ro(t.data,n.textTransform),this.textBounds=So(e,this.text,n,t)}return e}(),Ro=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(Po,Ko);case 2:return e.toUpperCase();default:return e}},Po=/(^|\s|:|-|\(|\))([a-z])/g,Ko=function(e,t,n){return e.length>0?t+n.toUpperCase():e},$o=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.src=n.currentSrc||n.src,r.intrinsicWidth=n.naturalWidth,r.intrinsicHeight=n.naturalHeight,r.context.cache.addImage(r.src),r}return t(n,e),n}(Ti),Xo=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.canvas=n,r.intrinsicWidth=n.width,r.intrinsicHeight=n.height,r}return t(n,e),n}(Ti),Vo=function(e){function n(t,n){var r=e.call(this,t,n)||this,A=new XMLSerializer,i=a(t,n);return n.setAttribute("width",i.width+"px"),n.setAttribute("height",i.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(A.serializeToString(n)),r.intrinsicWidth=n.width.baseVal.value,r.intrinsicHeight=n.height.baseVal.value,r.context.cache.addImage(r.svg),r}return t(n,e),n}(Ti),jo=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.value=n.value,r}return t(n,e),n}(Ti),Go=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.start=n.start,r.reversed="boolean"==typeof n.reversed&&!0===n.reversed,r}return t(n,e),n}(Ti),Wo=[{type:15,flags:0,unit:"px",number:3}],Jo=[{type:16,flags:0,number:50}],zo=function(e){return e.width>e.height?new o(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width0)n.textNodes.push(new No(e,A,n.styles));else if(ha(A))if(Ua(A)&&A.assignedNodes)A.assignedNodes().forEach((function(t){return aa(e,t,n,r)}));else{var o=sa(e,A);o.styles.isVisible()&&(ca(A,o,r)?o.flags|=4:ua(o.styles)&&(o.flags|=2),-1!==oa.indexOf(A.tagName)&&(o.flags|=8),n.elements.push(o),A.slot,A.shadowRoot?aa(e,A.shadowRoot,o,r):Ea(A)||wa(A)||Fa(A)||aa(e,A,o,r))}},sa=function(e,t){return Qa(t)?new $o(e,t):ba(t)?new Xo(e,t):wa(t)?new Vo(e,t):pa(t)?new jo(e,t):ma(t)?new Go(e,t):va(t)?new na(e,t):Fa(t)?new ra(e,t):Ea(t)?new Aa(e,t):ka(t)?new ia(e,t):new Ti(e,t)},la=function(e,t){var n=sa(e,t);return n.flags|=4,aa(e,t,n,n),n},ca=function(e,t,n){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||Ba(e)&&n.styles.isTransparent()},ua=function(e){return e.isPositioned()||e.isFloating()},fa=function(e){return e.nodeType===Node.TEXT_NODE},ha=function(e){return e.nodeType===Node.ELEMENT_NODE},da=function(e){return ha(e)&&void 0!==e.style&&!ga(e)},ga=function(e){return"object"==typeof e.className},pa=function(e){return"LI"===e.tagName},ma=function(e){return"OL"===e.tagName},va=function(e){return"INPUT"===e.tagName},ya=function(e){return"HTML"===e.tagName},wa=function(e){return"svg"===e.tagName},Ba=function(e){return"BODY"===e.tagName},ba=function(e){return"CANVAS"===e.tagName},Ca=function(e){return"VIDEO"===e.tagName},Qa=function(e){return"IMG"===e.tagName},ka=function(e){return"IFRAME"===e.tagName},Ta=function(e){return"STYLE"===e.tagName},xa=function(e){return"SCRIPT"===e.tagName},Ea=function(e){return"TEXTAREA"===e.tagName},Fa=function(e){return"SELECT"===e.tagName},Ua=function(e){return"SLOT"===e.tagName},Sa=function(e){return e.tagName.indexOf("-")>0},La=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(e){var t=this.counters[e];return t||[]},e.prototype.pop=function(e){var t=this;e.forEach((function(e){return t.counters[e].pop()}))},e.prototype.parse=function(e){var t=this,n=e.counterIncrement,r=e.counterReset,A=!0;null!==n&&n.forEach((function(e){var n=t.counters[e.counter];n&&0!==e.increment&&(A=!1,n.length||n.push(1),n[Math.max(0,n.length-1)]+=e.increment)}));var i=[];return A&&r.forEach((function(e){var n=t.counters[e.counter];i.push(e.counter),n||(n=t.counters[e.counter]=[]),n.push(e.reset)})),i},e}(),Ha={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Ia={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Ma={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},_a={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Da=function(e,t,n,r,A,i){return en?za(e,A,i.length>0):r.integers.reduce((function(t,n,A){for(;e>=n;)e-=n,t+=r.values[A];return t}),"")+i},Oa=function(e,t,n,r){var A="";do{n||e--,A=r(e)+A,e/=t}while(e*t>=t);return A},Na=function(e,t,n,r,A){var i=n-t+1;return(e<0?"-":"")+(Oa(Math.abs(e),i,r,(function(e){return c(Math.floor(e%i)+t)}))+A)},Ra=function(e,t,n){void 0===n&&(n=". ");var r=t.length;return Oa(Math.abs(e),r,!1,(function(e){return t[Math.floor(e%r)]}))+n},Pa=1,Ka=2,$a=4,Xa=8,Va=function(e,t,n,r,A,i){if(e<-9999||e>9999)return za(e,4,A.length>0);var o=Math.abs(e),a=A;if(0===o)return t[0]+a;for(var s=0;o>0&&s<=4;s++){var l=o%10;0===l&&si(i,Pa)&&""!==a?a=t[l]+a:l>1||1===l&&0===s||1===l&&1===s&&si(i,Ka)||1===l&&1===s&&si(i,$a)&&e>100||1===l&&s>1&&si(i,Xa)?a=t[l]+(s>0?n[s-1]:"")+a:1===l&&s>0&&(a=n[s-1]+a),o=Math.floor(o/10)}return(e<0?r:"")+a},ja="十百千萬",Ga="拾佰仟萬",Wa="マイナス",Ja="마이너스",za=function(e,t,n){var r=n?". ":"",A=n?"、":"",i=n?", ":"",o=n?" ":"";switch(t){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:var a=Na(e,48,57,!0,r);return a.length<4?"0"+a:a;case 4:return Ra(e,"〇一二三四五六七八九",A);case 6:return Da(e,1,3999,Ha,3,r).toLowerCase();case 7:return Da(e,1,3999,Ha,3,r);case 8:return Na(e,945,969,!1,r);case 9:return Na(e,97,122,!1,r);case 10:return Na(e,65,90,!1,r);case 11:return Na(e,1632,1641,!0,r);case 12:case 49:return Da(e,1,9999,Ia,3,r);case 35:return Da(e,1,9999,Ia,3,r).toLowerCase();case 13:return Na(e,2534,2543,!0,r);case 14:case 30:return Na(e,6112,6121,!0,r);case 15:return Ra(e,"子丑寅卯辰巳午未申酉戌亥",A);case 16:return Ra(e,"甲乙丙丁戊己庚辛壬癸",A);case 17:case 48:return Va(e,"零一二三四五六七八九",ja,"負",A,Ka|$a|Xa);case 47:return Va(e,"零壹貳參肆伍陸柒捌玖",Ga,"負",A,Pa|Ka|$a|Xa);case 42:return Va(e,"零一二三四五六七八九",ja,"负",A,Ka|$a|Xa);case 41:return Va(e,"零壹贰叁肆伍陆柒捌玖",Ga,"负",A,Pa|Ka|$a|Xa);case 26:return Va(e,"〇一二三四五六七八九","十百千万",Wa,A,0);case 25:return Va(e,"零壱弐参四伍六七八九","拾百千万",Wa,A,Pa|Ka|$a);case 31:return Va(e,"영일이삼사오육칠팔구","십백천만",Ja,i,Pa|Ka|$a);case 33:return Va(e,"零一二三四五六七八九","十百千萬",Ja,i,0);case 32:return Va(e,"零壹貳參四五六七八九","拾百千",Ja,i,Pa|Ka|$a);case 18:return Na(e,2406,2415,!0,r);case 20:return Da(e,1,19999,_a,3,r);case 21:return Na(e,2790,2799,!0,r);case 22:return Na(e,2662,2671,!0,r);case 22:return Da(e,1,10999,Ma,3,r);case 23:return Ra(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Ra(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Na(e,3302,3311,!0,r);case 28:return Ra(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",A);case 29:return Ra(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",A);case 34:return Na(e,3792,3801,!0,r);case 37:return Na(e,6160,6169,!0,r);case 38:return Na(e,4160,4169,!0,r);case 39:return Na(e,2918,2927,!0,r);case 40:return Na(e,1776,1785,!0,r);case 43:return Na(e,3046,3055,!0,r);case 44:return Na(e,3174,3183,!0,r);case 45:return Na(e,3664,3673,!0,r);case 46:return Na(e,3872,3881,!0,r);default:return Na(e,48,57,!0,r)}},Za="data-html2canvas-ignore",qa=function(){function e(e,t,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=t,this.counters=new La,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(e,t){var n=this,i=es(e,t);if(!i.contentWindow)return Promise.reject("Unable to find iframe window");var o=e.defaultView.pageXOffset,a=e.defaultView.pageYOffset,s=i.contentWindow,l=s.document,c=rs(i).then((function(){return r(n,void 0,void 0,(function(){var e,n;return A(this,(function(r){switch(r.label){case 0:return this.scrolledElements.forEach(ss),s&&(s.scrollTo(t.left,t.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||s.scrollY===t.top&&s.scrollX===t.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-t.left,s.scrollY-t.top,0,0))),e=this.options.onclone,void 0===(n=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:r.sent(),r.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,ns(l)]:[3,4];case 3:r.sent(),r.label=4;case 4:return"function"==typeof e?[2,Promise.resolve().then((function(){return e(l,n)})).then((function(){return i}))]:[2,i]}}))}))}));return l.open(),l.write(os(document.doctype)+""),as(this.referenceElement.ownerDocument,o,a),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),c},e.prototype.createElementClone=function(e){if(ki(e,2),ba(e))return this.createCanvasClone(e);if(Ca(e))return this.createVideoClone(e);if(Ta(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return Qa(t)&&(Qa(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),"lazy"===t.loading&&(t.loading="eager")),Sa(t)?this.createCustomElementClone(t):t},e.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return is(e.style,t),t},e.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var n=[].slice.call(t.cssRules,0).reduce((function(e,t){return t&&"string"==typeof t.cssText?e+t.cssText:e}),""),r=e.cloneNode(!1);return r.textContent=n,r}}catch(e){if(this.context.logger.error("Unable to access cssRules property",e),"SecurityError"!==e.name)throw e}return e.cloneNode(!1)},e.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var n=e.ownerDocument.createElement("img");try{return n.src=e.toDataURL(),n}catch(t){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var r=e.cloneNode(!1);try{r.width=e.width,r.height=e.height;var A=e.getContext("2d"),i=r.getContext("2d");if(i)if(!this.options.allowTaint&&A)i.putImageData(A.getImageData(0,0,e.width,e.height),0,0);else{var o=null!==(t=e.getContext("webgl2"))&&void 0!==t?t:e.getContext("webgl");if(o){var a=o.getContextAttributes();!1===(null==a?void 0:a.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}i.drawImage(e,0,0)}return r}catch(t){this.context.logger.info("Unable to clone canvas as it is tainted",e)}return r},e.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var n=t.getContext("2d");try{return n&&(n.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||n.getImageData(0,0,t.width,t.height)),t}catch(t){this.context.logger.info("Unable to clone video as it is tainted",e)}var r=e.ownerDocument.createElement("canvas");return r.width=e.offsetWidth,r.height=e.offsetHeight,r},e.prototype.appendChildNode=function(e,t,n){ha(t)&&(xa(t)||t.hasAttribute(Za)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(t))||this.options.copyStyles&&ha(t)&&Ta(t)||e.appendChild(this.cloneNode(t,n))},e.prototype.cloneChildNodes=function(e,t,n){for(var r=this,A=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;A;A=A.nextSibling)if(ha(A)&&Ua(A)&&"function"==typeof A.assignedNodes){var i=A.assignedNodes();i.length&&i.forEach((function(e){return r.appendChildNode(t,e,n)}))}else this.appendChildNode(t,A,n)},e.prototype.cloneNode=function(e,t){if(fa(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&ha(e)&&(da(e)||ga(e))){var r=this.createElementClone(e);r.style.transitionProperty="none";var A=n.getComputedStyle(e),i=n.getComputedStyle(e,":before"),o=n.getComputedStyle(e,":after");this.referenceElement===e&&da(r)&&(this.clonedReferenceElement=r),Ba(r)&&ds(r);var a=this.counters.parse(new Bi(this.context,A)),s=this.resolvePseudoContent(e,r,i,Ji.BEFORE);Sa(e)&&(t=!0),Ca(e)||this.cloneChildNodes(e,r,t),s&&r.insertBefore(s,r.firstChild);var l=this.resolvePseudoContent(e,r,o,Ji.AFTER);return l&&r.appendChild(l),this.counters.pop(a),(A&&(this.options.copyStyles||ga(e))&&!ka(e)||t)&&is(A,r),0===e.scrollTop&&0===e.scrollLeft||this.scrolledElements.push([r,e.scrollLeft,e.scrollTop]),(Ea(e)||Fa(e))&&(Ea(r)||Fa(r))&&(r.value=e.value),r}return e.cloneNode(!1)},e.prototype.resolvePseudoContent=function(e,t,n,r){var A=this;if(n){var i=n.content,o=t.ownerDocument;if(o&&i&&"none"!==i&&"-moz-alt-content"!==i&&"none"!==n.display){this.counters.parse(new Bi(this.context,n));var a=new wi(this.context,n),s=o.createElement("html2canvaspseudoelement");is(n,s),a.content.forEach((function(t){if(0===t.type)s.appendChild(o.createTextNode(t.value));else if(22===t.type){var n=o.createElement("img");n.src=t.value,n.style.opacity="1",s.appendChild(n)}else if(18===t.type){if("attr"===t.name){var r=t.values.filter(Hn);r.length&&s.appendChild(o.createTextNode(e.getAttribute(r[0].value)||""))}else if("counter"===t.name){var i=t.values.filter(Dn),l=i[0],c=i[1];if(l&&Hn(l)){var u=A.counters.getCounterValue(l.value),f=c&&Hn(c)?TA.parse(A.context,c.value):3;s.appendChild(o.createTextNode(za(u,f,!1)))}}else if("counters"===t.name){var h=t.values.filter(Dn),d=(l=h[0],h[1]);if(c=h[2],l&&Hn(l)){var g=A.counters.getCounterValues(l.value),p=c&&Hn(c)?TA.parse(A.context,c.value):3,m=d&&0===d.type?d.value:"",v=g.map((function(e){return za(e,p,!1)})).join(m);s.appendChild(o.createTextNode(v))}}}else if(20===t.type)switch(t.value){case"open-quote":s.appendChild(o.createTextNode(di(a.quotes,A.quoteDepth++,!0)));break;case"close-quote":s.appendChild(o.createTextNode(di(a.quotes,--A.quoteDepth,!1)));break;default:s.appendChild(o.createTextNode(t.value))}})),s.className=us+" "+fs;var l=r===Ji.BEFORE?" "+us:" "+fs;return ga(t)?t.className.baseValue+=l:t.className+=l,s}}},e.destroy=function(e){return!!e.parentNode&&(e.parentNode.removeChild(e),!0)},e}();!function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"}(Ji||(Ji={}));var Ya,es=function(e,t){var n=e.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=t.width.toString(),n.height=t.height.toString(),n.scrolling="no",n.setAttribute(Za,"true"),e.body.appendChild(n),n},ts=function(e){return new Promise((function(t){e.complete?t():e.src?(e.onload=t,e.onerror=t):t()}))},ns=function(e){return Promise.all([].slice.call(e.images,0).map(ts))},rs=function(e){return new Promise((function(t,n){var r=e.contentWindow;if(!r)return n("No window assigned for iframe");var A=r.document;r.onload=e.onload=function(){r.onload=e.onload=null;var n=setInterval((function(){A.body.childNodes.length>0&&"complete"===A.readyState&&(clearInterval(n),t(e))}),50)}}))},As=["all","d","content"],is=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e.item(n);-1===As.indexOf(r)&&t.style.setProperty(r,e.getPropertyValue(r))}return t},os=function(e){var t="";return e&&(t+=""),t},as=function(e,t,n){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||n!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,n)},ss=function(e){var t=e[0],n=e[1],r=e[2];t.scrollLeft=n,t.scrollTop=r},ls=":before",cs=":after",us="___html2canvas___pseudoelement_before",fs="___html2canvas___pseudoelement_after",hs='{\n content: "" !important;\n display: none !important;\n}',ds=function(e){gs(e,"."+us+ls+hs+"\n ."+fs+cs+hs)},gs=function(e,t){var n=e.ownerDocument;if(n){var r=n.createElement("style");r.textContent=t,e.appendChild(r)}},ps=function(){function e(){}return e.getOrigin=function(t){var n=e._link;return n?(n.href=t,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e}(),ms=function(){function e(e,t){this.context=e,this._options=t,this._cache={}}return e.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)?t:Qs(e)||Bs(e)?((this._cache[e]=this.loadImage(e)).catch((function(){})),t):t},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return r(this,void 0,void 0,(function(){var t,n,r,i,o=this;return A(this,(function(A){switch(A.label){case 0:return t=ps.isSameOrigin(e),n=!bs(e)&&!0===this._options.useCORS&&Fo.SUPPORT_CORS_IMAGES&&!t,r=!bs(e)&&!t&&!Qs(e)&&"string"==typeof this._options.proxy&&Fo.SUPPORT_CORS_XHR&&!n,t||!1!==this._options.allowTaint||bs(e)||Qs(e)||r||n?(i=e,r?[4,this.proxy(i)]:[3,2]):[2];case 1:i=A.sent(),A.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise((function(e,t){var r=new Image;r.onload=function(){return e(r)},r.onerror=t,(Cs(i)||n)&&(r.crossOrigin="anonymous"),r.src=i,!0===r.complete&&setTimeout((function(){return e(r)}),500),o._options.imageTimeout>0&&setTimeout((function(){return t("Timed out ("+o._options.imageTimeout+"ms) loading image")}),o._options.imageTimeout)}))];case 3:return[2,A.sent()]}}))}))},e.prototype.has=function(e){return void 0!==this._cache[e]},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var t=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=e.substring(0,256);return new Promise((function(A,i){var o=Fo.SUPPORT_RESPONSE_TYPE?"blob":"text",a=new XMLHttpRequest;a.onload=function(){if(200===a.status)if("text"===o)A(a.response);else{var e=new FileReader;e.addEventListener("load",(function(){return A(e.result)}),!1),e.addEventListener("error",(function(e){return i(e)}),!1),e.readAsDataURL(a.response)}else i("Failed to proxy resource "+r+" with status code "+a.status)},a.onerror=i;var s=n.indexOf("?")>-1?"&":"?";if(a.open("GET",""+n+s+"url="+encodeURIComponent(e)+"&responseType="+o),"text"!==o&&a instanceof XMLHttpRequest&&(a.responseType=o),t._options.imageTimeout){var l=t._options.imageTimeout;a.timeout=l,a.ontimeout=function(){return i("Timed out ("+l+"ms) proxying "+r)}}a.send()}))},e}(),vs=/^data:image\/svg\+xml/i,ys=/^data:image\/.*;base64,/i,ws=/^data:image\/.*/i,Bs=function(e){return Fo.SUPPORT_SVG_DRAWING||!ks(e)},bs=function(e){return ws.test(e)},Cs=function(e){return ys.test(e)},Qs=function(e){return"blob"===e.substr(0,4)},ks=function(e){return"svg"===e.substr(-3).toLowerCase()||vs.test(e)},Ts=function(){function e(e,t){this.type=0,this.x=e,this.y=t}return e.prototype.add=function(t,n){return new e(this.x+t,this.y+n)},e}(),xs=function(e,t,n){return new Ts(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n)},Es=function(){function e(e,t,n,r){this.type=1,this.start=e,this.startControl=t,this.endControl=n,this.end=r}return e.prototype.subdivide=function(t,n){var r=xs(this.start,this.startControl,t),A=xs(this.startControl,this.endControl,t),i=xs(this.endControl,this.end,t),o=xs(r,A,t),a=xs(A,i,t),s=xs(o,a,t);return n?new e(this.start,r,o,s):new e(s,a,i,this.end)},e.prototype.add=function(t,n){return new e(this.start.add(t,n),this.startControl.add(t,n),this.endControl.add(t,n),this.end.add(t,n))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),Fs=function(e){return 1===e.type},Us=function(){function e(e){var t=e.styles,n=e.bounds,r=jn(t.borderTopLeftRadius,n.width,n.height),A=r[0],i=r[1],o=jn(t.borderTopRightRadius,n.width,n.height),a=o[0],s=o[1],l=jn(t.borderBottomRightRadius,n.width,n.height),c=l[0],u=l[1],f=jn(t.borderBottomLeftRadius,n.width,n.height),h=f[0],d=f[1],g=[];g.push((A+a)/n.width),g.push((h+c)/n.width),g.push((i+d)/n.height),g.push((s+u)/n.height);var p=Math.max.apply(Math,g);p>1&&(A/=p,i/=p,a/=p,s/=p,c/=p,u/=p,h/=p,d/=p);var m=n.width-a,v=n.height-u,y=n.width-c,w=n.height-d,B=t.borderTopWidth,b=t.borderRightWidth,C=t.borderBottomWidth,Q=t.borderLeftWidth,k=Gn(t.paddingTop,e.bounds.width),T=Gn(t.paddingRight,e.bounds.width),x=Gn(t.paddingBottom,e.bounds.width),E=Gn(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=A>0||i>0?Ss(n.left+Q/3,n.top+B/3,A-Q/3,i-B/3,Ya.TOP_LEFT):new Ts(n.left+Q/3,n.top+B/3),this.topRightBorderDoubleOuterBox=A>0||i>0?Ss(n.left+m,n.top+B/3,a-b/3,s-B/3,Ya.TOP_RIGHT):new Ts(n.left+n.width-b/3,n.top+B/3),this.bottomRightBorderDoubleOuterBox=c>0||u>0?Ss(n.left+y,n.top+v,c-b/3,u-C/3,Ya.BOTTOM_RIGHT):new Ts(n.left+n.width-b/3,n.top+n.height-C/3),this.bottomLeftBorderDoubleOuterBox=h>0||d>0?Ss(n.left+Q/3,n.top+w,h-Q/3,d-C/3,Ya.BOTTOM_LEFT):new Ts(n.left+Q/3,n.top+n.height-C/3),this.topLeftBorderDoubleInnerBox=A>0||i>0?Ss(n.left+2*Q/3,n.top+2*B/3,A-2*Q/3,i-2*B/3,Ya.TOP_LEFT):new Ts(n.left+2*Q/3,n.top+2*B/3),this.topRightBorderDoubleInnerBox=A>0||i>0?Ss(n.left+m,n.top+2*B/3,a-2*b/3,s-2*B/3,Ya.TOP_RIGHT):new Ts(n.left+n.width-2*b/3,n.top+2*B/3),this.bottomRightBorderDoubleInnerBox=c>0||u>0?Ss(n.left+y,n.top+v,c-2*b/3,u-2*C/3,Ya.BOTTOM_RIGHT):new Ts(n.left+n.width-2*b/3,n.top+n.height-2*C/3),this.bottomLeftBorderDoubleInnerBox=h>0||d>0?Ss(n.left+2*Q/3,n.top+w,h-2*Q/3,d-2*C/3,Ya.BOTTOM_LEFT):new Ts(n.left+2*Q/3,n.top+n.height-2*C/3),this.topLeftBorderStroke=A>0||i>0?Ss(n.left+Q/2,n.top+B/2,A-Q/2,i-B/2,Ya.TOP_LEFT):new Ts(n.left+Q/2,n.top+B/2),this.topRightBorderStroke=A>0||i>0?Ss(n.left+m,n.top+B/2,a-b/2,s-B/2,Ya.TOP_RIGHT):new Ts(n.left+n.width-b/2,n.top+B/2),this.bottomRightBorderStroke=c>0||u>0?Ss(n.left+y,n.top+v,c-b/2,u-C/2,Ya.BOTTOM_RIGHT):new Ts(n.left+n.width-b/2,n.top+n.height-C/2),this.bottomLeftBorderStroke=h>0||d>0?Ss(n.left+Q/2,n.top+w,h-Q/2,d-C/2,Ya.BOTTOM_LEFT):new Ts(n.left+Q/2,n.top+n.height-C/2),this.topLeftBorderBox=A>0||i>0?Ss(n.left,n.top,A,i,Ya.TOP_LEFT):new Ts(n.left,n.top),this.topRightBorderBox=a>0||s>0?Ss(n.left+m,n.top,a,s,Ya.TOP_RIGHT):new Ts(n.left+n.width,n.top),this.bottomRightBorderBox=c>0||u>0?Ss(n.left+y,n.top+v,c,u,Ya.BOTTOM_RIGHT):new Ts(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=h>0||d>0?Ss(n.left,n.top+w,h,d,Ya.BOTTOM_LEFT):new Ts(n.left,n.top+n.height),this.topLeftPaddingBox=A>0||i>0?Ss(n.left+Q,n.top+B,Math.max(0,A-Q),Math.max(0,i-B),Ya.TOP_LEFT):new Ts(n.left+Q,n.top+B),this.topRightPaddingBox=a>0||s>0?Ss(n.left+Math.min(m,n.width-b),n.top+B,m>n.width+b?0:Math.max(0,a-b),Math.max(0,s-B),Ya.TOP_RIGHT):new Ts(n.left+n.width-b,n.top+B),this.bottomRightPaddingBox=c>0||u>0?Ss(n.left+Math.min(y,n.width-Q),n.top+Math.min(v,n.height-C),Math.max(0,c-b),Math.max(0,u-C),Ya.BOTTOM_RIGHT):new Ts(n.left+n.width-b,n.top+n.height-C),this.bottomLeftPaddingBox=h>0||d>0?Ss(n.left+Q,n.top+Math.min(w,n.height-C),Math.max(0,h-Q),Math.max(0,d-C),Ya.BOTTOM_LEFT):new Ts(n.left+Q,n.top+n.height-C),this.topLeftContentBox=A>0||i>0?Ss(n.left+Q+E,n.top+B+k,Math.max(0,A-(Q+E)),Math.max(0,i-(B+k)),Ya.TOP_LEFT):new Ts(n.left+Q+E,n.top+B+k),this.topRightContentBox=a>0||s>0?Ss(n.left+Math.min(m,n.width+Q+E),n.top+B+k,m>n.width+Q+E?0:a-Q+E,s-(B+k),Ya.TOP_RIGHT):new Ts(n.left+n.width-(b+T),n.top+B+k),this.bottomRightContentBox=c>0||u>0?Ss(n.left+Math.min(y,n.width-(Q+E)),n.top+Math.min(v,n.height+B+k),Math.max(0,c-(b+T)),u-(C+x),Ya.BOTTOM_RIGHT):new Ts(n.left+n.width-(b+T),n.top+n.height-(C+x)),this.bottomLeftContentBox=h>0||d>0?Ss(n.left+Q+E,n.top+w,Math.max(0,h-(Q+E)),d-(C+x),Ya.BOTTOM_LEFT):new Ts(n.left+Q+E,n.top+n.height-(C+x))}return e}();!function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(Ya||(Ya={}));var Ss=function(e,t,n,r,A){var i=(Math.sqrt(2)-1)/3*4,o=n*i,a=r*i,s=e+n,l=t+r;switch(A){case Ya.TOP_LEFT:return new Es(new Ts(e,l),new Ts(e,l-a),new Ts(s-o,t),new Ts(s,t));case Ya.TOP_RIGHT:return new Es(new Ts(e,t),new Ts(e+o,t),new Ts(s,l-a),new Ts(s,l));case Ya.BOTTOM_RIGHT:return new Es(new Ts(s,t),new Ts(s,t+a),new Ts(e+o,l),new Ts(e,l));case Ya.BOTTOM_LEFT:default:return new Es(new Ts(s,l),new Ts(s-o,l),new Ts(e,t+a),new Ts(e,t))}},Ls=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},Hs=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},Is=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Ms=function(){function e(e,t,n){this.offsetX=e,this.offsetY=t,this.matrix=n,this.type=0,this.target=6}return e}(),_s=function(){function e(e,t){this.path=e,this.target=t,this.type=1}return e}(),Ds=function(){function e(e){this.opacity=e,this.type=2,this.target=6}return e}(),Os=function(e){return 0===e.type},Ns=function(e){return 1===e.type},Rs=function(e){return 2===e.type},Ps=function(e,t){return e.length===t.length&&e.some((function(e,n){return e===t[n]}))},Ks=function(e,t,n,r,A){return e.map((function(e,i){switch(i){case 0:return e.add(t,n);case 1:return e.add(t+r,n);case 2:return e.add(t+r,n+A);case 3:return e.add(t,n+A)}return e}))},$s=function(){function e(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),Xs=function(){function e(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new Us(this.container),this.container.styles.opacity<1&&this.effects.push(new Ds(this.container.styles.opacity)),null!==this.container.styles.transform){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,A=this.container.styles.transform;this.effects.push(new Ms(n,r,A))}if(0!==this.container.styles.overflowX){var i=Ls(this.curves),o=Is(this.curves);Ps(i,o)?this.effects.push(new _s(i,6)):(this.effects.push(new _s(i,2)),this.effects.push(new _s(o,4)))}}return e.prototype.getEffects=function(e){for(var t=-1===[2,3].indexOf(this.container.styles.position),n=this.parent,r=this.effects.slice(0);n;){var A=n.effects.filter((function(e){return!Ns(e)}));if(t||0!==n.container.styles.position||!n.parent){if(r.unshift.apply(r,A),t=-1===[2,3].indexOf(n.container.styles.position),0!==n.container.styles.overflowX){var i=Ls(n.curves),o=Is(n.curves);Ps(i,o)||r.unshift(new _s(o,6))}}else r.unshift.apply(r,A);n=n.parent}return r.filter((function(t){return si(t.target,e)}))},e}(),Vs=function(e,t,n,r){e.container.elements.forEach((function(A){var i=si(A.flags,4),o=si(A.flags,2),a=new Xs(A,e);si(A.styles.display,2048)&&r.push(a);var s=si(A.flags,8)?[]:r;if(i||o){var l=i||A.styles.isPositioned()?n:t,c=new $s(a);if(A.styles.isPositioned()||A.styles.opacity<1||A.styles.isTransformed()){var u=A.styles.zIndex.order;if(u<0){var f=0;l.negativeZIndex.some((function(e,t){return u>e.element.container.styles.zIndex.order?(f=t,!1):f>0})),l.negativeZIndex.splice(f,0,c)}else if(u>0){var h=0;l.positiveZIndex.some((function(e,t){return u>=e.element.container.styles.zIndex.order?(h=t+1,!1):h>0})),l.positiveZIndex.splice(h,0,c)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else A.styles.isFloating()?l.nonPositionedFloats.push(c):l.nonPositionedInlineLevel.push(c);Vs(a,c,i?c:n,s)}else A.styles.isInlineLevel()?t.inlineLevel.push(a):t.nonInlineLevel.push(a),Vs(a,t,n,s);si(A.flags,8)&&js(A,s)}))},js=function(e,t){for(var n=e instanceof Go?e.start:1,r=e instanceof Go&&e.reversed,A=0;A0&&e.intrinsicHeight>0){var r=tl(e),A=Is(t);this.path(A),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,e.intrinsicWidth,e.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},n.prototype.renderNodeContent=function(e){return r(this,void 0,void 0,(function(){var t,r,i,a,s,l,c,u,f,h,d,g,p,m,v,y,w,B;return A(this,(function(A){switch(A.label){case 0:this.applyEffects(e.getEffects(4)),t=e.container,r=e.curves,i=t.styles,a=0,s=t.textNodes,A.label=1;case 1:return a0&&Q>0&&(v=r.ctx.createPattern(g,"repeat"),r.renderRepeat(w,v,T,x))):Mr(n)&&(y=Al(e,t,[null,null,null]),w=y[0],B=y[1],b=y[2],C=y[3],Q=y[4],k=0===n.position.length?[Xn]:n.position,T=Gn(k[0],C),x=Gn(k[k.length-1],Q),E=Br(n,T,x,C,Q),F=E[0],U=E[1],F>0&&U>0&&(S=r.ctx.createRadialGradient(B+T,b+x,0,B+T,b+x,F),pr(n.stops,2*F).forEach((function(e){return S.addColorStop(e.stop,Ar(e.color))})),r.path(w),r.ctx.fillStyle=S,F!==U?(L=e.bounds.left+.5*e.bounds.width,H=e.bounds.top+.5*e.bounds.height,M=1/(I=U/F),r.ctx.save(),r.ctx.translate(L,H),r.ctx.transform(1,0,0,I,0,0),r.ctx.translate(-L,-H),r.ctx.fillRect(B,M*(b-H)+H,C,Q*M),r.ctx.restore()):r.ctx.fill())),A.label=6;case 6:return t--,[2]}}))},r=this,i=0,o=e.styles.backgroundImage.slice(0).reverse(),s.label=1;case 1:return i0?2!==l.style?[3,5]:[4,this.renderDashedDottedBorder(l.color,l.width,o,e.curves,2)]:[3,11]:[3,13];case 4:return A.sent(),[3,11];case 5:return 3!==l.style?[3,7]:[4,this.renderDashedDottedBorder(l.color,l.width,o,e.curves,3)];case 6:return A.sent(),[3,11];case 7:return 4!==l.style?[3,9]:[4,this.renderDoubleBorder(l.color,l.width,o,e.curves)];case 8:return A.sent(),[3,11];case 9:return[4,this.renderSolidBorder(l.color,o,e.curves)];case 10:A.sent(),A.label=11;case 11:o++,A.label=12;case 12:return a++,[3,3];case 13:return[2]}}))}))},n.prototype.renderDashedDottedBorder=function(e,t,n,i,o){return r(this,void 0,void 0,(function(){var r,a,s,l,c,u,f,h,d,g,p,m,v,y,w,B;return A(this,(function(A){return this.ctx.save(),r=Zs(i,n),a=Ws(i,n),2===o&&(this.path(a),this.ctx.clip()),Fs(a[0])?(s=a[0].start.x,l=a[0].start.y):(s=a[0].x,l=a[0].y),Fs(a[1])?(c=a[1].end.x,u=a[1].end.y):(c=a[1].x,u=a[1].y),f=0===n||2===n?Math.abs(s-c):Math.abs(l-u),this.ctx.beginPath(),3===o?this.formatPath(r):this.formatPath(a.slice(0,2)),h=t<3?3*t:2*t,d=t<3?2*t:t,3===o&&(h=t,d=t),g=!0,f<=2*h?g=!1:f<=2*h+d?(h*=p=f/(2*h+d),d*=p):(m=Math.floor((f+d)/(h+d)),v=(f-m*h)/(m-1),d=(y=(f-(m+1)*h)/m)<=0||Math.abs(d-v)0&&void 0!==arguments[0]?arguments[0]:[];ti(e=Kl(document.body.children)).call(e,(function(e,n){void 0!==t[n]&&(e.style.display=t[n])}))}(i),document.body.style.overflow=o}))};function Dw(e,t){_w(e,(function(e,n){window.scrollTo(0,0),Mw(e,{allowTaint:!0,height:e.clientHeight,width:e.clientWidth,scrollY:0,scrollX:0}).then((function(e){!function(e,t){var n=document.createElement("a");n.style.display="none",n.href=e,n.download="".concat(t,".png"),document.body.appendChild(n),n.click(),document.body.removeChild(n)}(e.toDataURL("image/jpeg"),t),n()}))}))}var Ow=k.f,Nw=v(Ow),Rw=v([].push),Pw=function(e){return function(t){for(var n,r=M(t),A=$t(r),i=A.length,o=0,a=[];i>o;)n=A[o++],w&&!Nw(r,n)||Rw(a,e?[n,r[n]]:r[n]);return a}},Kw={entries:Pw(!0),values:Pw(!1)},$w=Kw.values;Ye({target:"Object",stat:!0},{values:function(e){return $w(e)}});var Xw=D.Object.values,Vw=Kw.entries;Ye({target:"Object",stat:!0},{entries:function(e){return Vw(e)}});var jw=D.Object.entries,Gw={mouseResize:{},getImgPosition:function(){var e=this.img.getBoundingClientRect(),t=this.previewerDom.parentNode.getBoundingClientRect(),n=Xc(this.img.style.padding)||0;return{bottom:e.bottom-t.bottom,top:e.top-t.top+1.5*n,height:e.height,width:e.width,right:e.right-t.right,left:e.left-t.left+1.5*n,x:e.x-t.x,y:e.y-t.y}},initBubbleButtons:function(){var e=this.getImgPosition();return{points:{arr:["leftTop","leftBottom","rightTop","rightBottom","leftMiddle","middleBottom","middleTop","rightMiddle"],arrInfo:{leftTop:{name:"20",left:0,top:0},leftBottom:{name:"00",left:0,top:0},rightTop:{name:"22",left:0,top:0},rightBottom:{name:"02",left:0,top:0},leftMiddle:{name:"10",left:0,top:0},middleBottom:{name:"01",left:0,top:0},middleTop:{name:"21",left:0,top:0},rightMiddle:{name:"12",left:0,top:0}}},imgSrc:this.img.src,style:{width:this.img.width,height:this.img.height,left:e.left-1,top:e.top-1,marginTop:0,marginLeft:0},scrollTop:this.previewerDom.scrollTop,position:e}},showBubble:function(e,t,n){this.$isResizing()||(this.img=e,this.previewerDom=n,this.container=t,this.buts=this.initBubbleButtons(),this.drawBubbleButs())},emit:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(e){case"mousedown":return this.resizeBegin(t);case"mouseup":return this.resizeStop(t);case"mousemove":return this.resizeWorking(t);case"scroll":return this.dealScroll(t);case"remove":return this.remove();case"previewUpdate":return this.previewUpdate(t)}},previewUpdate:function(e){this.$isResizing()||(this.remove(),e())},drawBubbleButs:function(){var e,t=this;return this.butsLayout||(this.butsLayout=this.container,this.butsImg=document.createElement("div"),this.butsImg.className="cherry-previewer-img-size-handler__background",this.butsImg.style.backgroundImage="url(".concat(this.buts.imgSrc,")"),this.butsLayout.appendChild(this.butsImg),this.butsPoints={},ti(e=mn(this.buts.points.arr)).call(e,(function(e){var n=t.buts.points.arr[e],r=document.createElement("div");r.className=["cherry-previewer-img-size-handler__points","cherry-previewer-img-size-handler__points-".concat(n)].join(" "),r.dataset.name=n,t.butsLayout.appendChild(r),t.butsPoints["pints-".concat(n)]=r}))),this.updateBubbleButs()},remove:function(){this.butsLayout=!1},updateBubbleButs:function(){var e,t,n=this;this.$updatePointsInfo(),ti(e=mn(this.buts.style)).call(e,(function(e){n.butsLayout.style[e]="".concat(n.buts.style[e],"px")})),ti(t=mn(this.buts.points.arr)).call(t,(function(e){var t=n.buts.points.arr[e];n.butsPoints["pints-".concat(t)].style.top="".concat(n.buts.points.arrInfo[t].top,"px"),n.butsPoints["pints-".concat(t)].style.left="".concat(n.buts.points.arrInfo[t].left,"px")}))},$updatePointsInfo:function(){var e,t=this,n=this.buts.style.width,r=this.buts.style.height,A=this.$getPointsInfo(n,r);ti(e=mn(this.buts.points.arr)).call(e,(function(e){var n=t.buts.points.arr[e];t.buts.points.arrInfo[n].left!==A[n].left&&(t.buts.points.arrInfo[n].left=A[n].left),t.buts.points.arrInfo[n].top!==A[n].top&&(t.buts.points.arrInfo[n].top=A[n].top)}))},$getPointsInfo:function(e,t){return{leftTop:{left:0,top:0},leftBottom:{left:0,top:t},rightTop:{left:e,top:0},rightBottom:{left:e,top:t},leftMiddle:{left:0,top:t/2},middleBottom:{left:e/2,top:t},middleTop:{left:e/2,top:0},rightMiddle:{left:e,top:t/2}}},$isResizing:function(){return this.mouseResize.resize},dealScroll:function(e){var t=this.getImgPosition();this.butsLayout.style.marginTop!==t.top-this.buts.position.top&&(this.butsLayout.style.marginTop="".concat(t.top-this.buts.position.top,"px"),this.buts.style.marginTop="".concat(t.top-this.buts.position.top,"px")),this.butsLayout.style.marginLeft!==t.left-this.buts.position.left&&(this.butsLayout.style.marginLeft="".concat(t.left-this.buts.position.left,"px"),this.buts.style.marginLeft="".concat(t.left-this.buts.position.left,"px"))},initMouse:function(){return{left:0,top:0,resize:!1,name:""}},resizeBegin:function(e){var t=e.target;if(!t.classList.contains("cherry-previewer-img-size-handler__points"))return!1;this.mouseResize.left=e.clientX,this.mouseResize.top=e.clientY,this.mouseResize.resize=!0,this.mouseResize.name=t.getAttribute("data-name"),this.previewerDom.classList.add("doing-resize-img")},resizeStop:function(e,t,n,r){if(!this.$isResizing())return!1;this.img.style.width="".concat(this.buts.style.width,"px"),this.img.style.height="".concat(this.buts.style.height,"px"),this.buts.style.marginTop=0,this.buts.style.marginLeft=0,this.updateBubbleButs(),this.mouseResize.resize=!1,this.previewerDom.classList.remove("doing-resize-img"),this.change()},resizeWorking:function(e,t){if(this.$isResizing()){var n=e.clientX-this.mouseResize.left,r=e.clientY-this.mouseResize.top,A={};switch(this.mouseResize.name){case"leftTop":case"leftBottom":case"leftMiddle":A=this.$getChange(n,r,"x"),this.buts.style.width=this.buts.position.width-A.changeX,"leftMiddle"!==this.mouseResize.name&&(this.buts.style.height=this.buts.position.height-A.changeY);break;case"rightTop":case"rightBottom":case"rightMiddle":A=this.$getChange(n,r,"x"),this.buts.style.width=this.buts.position.width+A.changeX,"rightMiddle"!==this.mouseResize.name&&(this.buts.style.height=this.buts.position.height+A.changeY);break;case"middleTop":A=this.$getChange(n,r,"y"),this.buts.style.height=this.buts.position.height-A.changeY;break;case"middleBottom":A=this.$getChange(n,r,"y"),this.buts.style.height=this.buts.position.height+A.changeY}this.updateBubbleButs(),this.change()}},change:function(){this.emitChange(this.img,{width:this.buts.style.width,height:this.buts.style.height})},bindChange:function(e){this.emitChange=e},$getChange:function(e,t,n){var r={changeX:0,changeY:0};if("y"===n)r.changeY=t,r.changeX=t*this.buts.position.width/this.buts.position.height;else r.changeX=e,r.changeY=e*this.buts.position.height/this.buts.position.width;return r}},Ww=Gw,Jw=nr.every,zw=WA("every");Ye({target:"Array",proto:!0,forced:!zw},{every:function(e){return Jw(this,e,arguments.length>1?arguments[1]:void 0)}});var Zw=tA("Array").every,qw=Array.prototype,Yw=function(e){var t=e.every;return e===qw||R(qw,e)&&t===qw.every?Zw:t},eB=a.TypeError,tB=function(e,t,n,r,A,i,o,a){for(var s,l,c=A,u=0,f=!!o&&Oe(o,a);u0&&zn(s))l=Mt(s),c=tB(e,t,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw eB("Exceed the acceptable array length");e[c]=s}c++}u++}return c},nB=tB;Ye({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=se(this),n=Mt(t),r=Yn(t,0);return r.length=nB(r,t,t,n,0,void 0===e?1:Ft(e)),r}});var rB=tA("Array").flat,AB=Array.prototype,iB=function(e){var t=e.flat;return e===AB||R(AB,e)&&t===AB.flat?rB:t},oB=function(){function e(t,n,r,A,i,o){ui(this,e),Gi(this,"tableEditor",{info:{},tableCodes:[],editorDom:{}}),this.trigger=t,this.target=n,this.previewerDom=A,this.container=r,this.codeMirror=i,this.$initReg(),this.$findTableInEditor(),this.tableElement=o}return di(e,[{key:"emit",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};switch(e){case"keyup":return"click"===this.trigger&&this.$onInputChange(t);case"remove":return this.$remove();case"scroll":case"previewUpdate":return this.$refreshPosition();case"mousedown":return;case"mouseup":return"click"===this.trigger&&this.$tryRemoveMe(t,n)}}},{key:"$tryRemoveMe",value:function(e,t){/textarea/i.test(e.target.tagName)||(this.$remove(),t())}},{key:"$getPosition",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.tableEditor.info.tdNode).getBoundingClientRect(),t=this.previewerDom.parentNode.getBoundingClientRect();return{top:e.top-t.top,height:e.height,width:e.width,left:e.left-t.left,maxHeight:t.height}}},{key:"setStyle",value:function(e,t,n){e.getBoundingClientRect()[t]!==n&&(e.style[t]=n)}},{key:"$setInputOffset",value:function(){var e=this.$getPosition(),t=this.tableEditor.editorDom.inputDiv;this.setStyle(t,"width","".concat(e.width,"px")),this.setStyle(t,"height","".concat(e.height,"px")),this.setStyle(t,"top","".concat(e.top,"px")),this.setStyle(t,"left","".concat(e.left,"px"));var n=e.top>=0&&e.top+e.height<=e.maxHeight;this.setStyle(t,"display",n?"":"none")}},{key:"$setSymbolOffset",value:function(){var e,t=this,n=this.tableEditor.editorDom.symbolContainer,r=this.tableEditor.info,A=r.tableNode,i=r.trNode,o=r.isTHead,a=this.$getPosition(A),s=this.$getPosition(i),l=this.$getPosition(),c=this.previewerDom.getBoundingClientRect();this.setStyle(this.container,"width","".concat(a.width,"px")),this.setStyle(this.container,"height","".concat(a.height,"px")),this.setStyle(this.container,"top","".concat(a.top,"px")),this.setStyle(this.container,"left","".concat(a.left,"px"));ti(e=n.childNodes).call(e,(function(e){var n,r=e.dataset,A=r.index,i=r.type,u=r.dir,f=20,h=7;t.setStyle(e,{Row:["left","right"],Col:["top","bottom"]}[u][A],"-".concat(f,"px")),t.setStyle(e,"display","");var d={LastRow:function(){return t.setStyle(e,"top","".concat(s.top-a.top-h,"px"))},NextRow:function(){return t.setStyle(e,"top","".concat(s.top-a.top+s.height-h,"px"))},LastCol:function(){return t.setStyle(e,"left","".concat(l.left-a.left-h,"px"))},NextCol:function(){return t.setStyle(e,"left","".concat(l.left-a.left+l.width-h,"px"))}},g=zi(n="".concat(i)).call(n,u);d[g](),t.setStyle(e,"display",function(e){var t,n=e.getBoundingClientRect(),r={top:[c.top,c.top+c.height-n.height],left:[c.left,c.left+c.width-n.width]};return Yw(t=jw(r)).call(t,(function(e){var t=vc(e,2),r=t[0],A=vc(t[1],2),i=A[0],o=A[1];return n[r]>=i&&n[r]<=o}))}(e)?"":"none"),o&&"LastRow"===g&&t.setStyle(e,"display","none")}))}},{key:"$refreshPosition",value:function(){"click"!==this.trigger?this.$setSymbolOffset():this.$setInputOffset()}},{key:"$remove",value:function(){this.tableEditor={info:{},tableCodes:[],editorDom:{}}}},{key:"$collectTableCode",value:function(){var e=[];this.codeMirror.getValue().replace(this.codeBlockReg,(function(e){return e.replace(/\|/g,".")})).replace(this.tableReg,(function(t){var n,r=t.replace(/^\n*/,""),A=((n=(arguments.length<=1?0:arguments.length-1)-2+1)<1||arguments.length<=n?void 0:arguments[n])+t.match(/^\n*/)[0].length;e.push({code:r,offset:A})})),this.tableEditor.tableCodes=e}},{key:"$collectTableDom",value:function(){var e,t,n,r=Kl(this.previewerDom.querySelectorAll("table.cherry-table")),A=this.$getClosestNode(this.target,"TABLE");if(!1===A)return!1;var i=AA(e=Kl(this.target.parentElement.childNodes)).call(e,(function(e){return"td"===e.tagName.toLowerCase()})).length;this.tableEditor.info={tableNode:A,tdNode:this.target,trNode:this.target.parentElement,tdIndex:yc(t=Kl(this.target.parentElement.childNodes)).call(t,this.target),trIndex:yc(n=Kl(this.target.parentElement.parentElement.childNodes)).call(n,this.target.parentElement),isTHead:"TBODY"!==this.target.parentElement.parentElement.tagName,totalTables:r.length,tableIndex:yc(r).call(r,A),tableText:A.textContent.replace(/[\s]/g,""),columns:i}}},{key:"$setSelection",value:function(e){var t,n,r,A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"table",i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=this.tableEditor.tableCodes[e],a=this.codeMirror.getValue(),s=this.tableEditor.info,l=null!==(t=null===(n=Bc(a).call(a,0,o.offset).match(/\n/g))||void 0===n?void 0:n.length)&&void 0!==t?t:0,c=this.$getTdOffset(o.code,s.isTHead,s.trIndex,s.tdIndex),u=c.preLine,f=c.preCh,h=c.plusCh,d=c.currentTd;if("table"===A){var g=l+o.code.match(/\n/g).length,p=o.code.match(/[^\n]+\n*$/)[0].length;this.tableEditor.info.selection=[{line:l,ch:0},{line:g,ch:p}]}else this.tableEditor.info.selection=[{line:l+u,ch:f},{line:l+u,ch:f+h}];i&&(r=this.codeMirror).setSelection.apply(r,Sh(this.tableEditor.info.selection)),this.tableEditor.info.code=d}},{key:"$getTdOffset",value:function(e,t,n,r){for(var A=t?0:n+2,i=e.split(/\n/)[A].split(/\|/),o=/^\s*$/.test(i[0]),a=o?r+1:r,s=i[a],l=[],c=0;c/g,"\n"),this.tableEditor.editorDom.inputDom.focus()}},{key:"$onInputChange",value:function(e){"TEXTAREA"===e.target.tagName&&this.codeMirror.replaceSelection(e.target.value.replace(/\n/g,"
    "),"around")}},{key:"$updateEditorPosition",value:function(){this.$setInputOffset();var e=getComputedStyle(this.tableEditor.info.tdNode);this.tableEditor.editorDom.inputDom.style.textAlign=e.textAlign||"left",this.tableEditor.editorDom.inputDom.style.fontSize=e.fontSize||"16px",this.tableEditor.editorDom.inputDom.style.fontFamily=e.fontFamily,this.tableEditor.editorDom.inputDom.style.lineHeight=e.lineHeight,this.tableEditor.editorDom.inputDom.style.padding=e.padding,/left/.test(e.textAlign)&&(this.tableEditor.editorDom.inputDom.style.paddingRight="0px"),/right/.test(e.textAlign)&&(this.tableEditor.editorDom.inputDom.style.paddingLeft="0px"),/center/.test(e.textAlign)&&(this.tableEditor.editorDom.inputDom.style.paddingLeft="0px",this.tableEditor.editorDom.inputDom.style.paddingRight="0px"),this.tableEditor.editorDom.inputDom.style.paddingBottom="0px"}},{key:"$getClosestNode",value:function(e,t){return e.tagName===t?e:"BODY"!==e.parentNode.tagName&&this.$getClosestNode(e.parentNode,t)}},{key:"$drawSymbol",value:function(){var e,t=this,n=["Last","Next"],r=["Row","Col"],A={Row:"行",Col:"列"},i=iB(e=Zu(r).call(r,(function(e,t){return Zu(n).call(n,(function(e){return Zu(r).call(r,(function(n){return["".concat(t),e,n]}))}))}))).call(e,2),o=document.createElement("ul");o.className="cherry-previewer-table-hover-handler-container",ti(i).call(i,(function(e){var n=vc(e,3),r=n[0],i=n[1],a=n[2],s=document.createElement("li");s.setAttribute("data-index",r),s.setAttribute("data-type",i),s.setAttribute("data-dir",a),s.className="cherry-previewer-table-hover-handler__symbol",s.title="添加".concat(A[a]),s.innerHTML="+",s.addEventListener("click",(function(e){var n,r=e.target;if(r instanceof HTMLElement){var A=r.dataset,i=A.type,o=A.dir;t[zi(n="$add".concat(i)).call(n,o)]()}})),o.appendChild(s)}),!0),this.tableEditor.editorDom.symbolContainer=o,this.container.appendChild(this.tableEditor.editorDom.symbolContainer),this.$setSymbolOffset()}},{key:"$addLastRow",value:function(){var e=vc(this.tableEditor.info.selection,1)[0].line,t="".concat(Hc("|").call("|",this.tableEditor.info.columns),"\n");this.codeMirror.replaceRange(t,{line:e,ch:0}),this.$findTableInEditor(),this.$setSelection(this.tableEditor.info.tableIndex,"td")}},{key:"$addNextRow",value:function(){var e=vc(this.tableEditor.info.selection,2)[1].line,t="".concat(Hc("|").call("|",this.tableEditor.info.columns),"\n");this.codeMirror.replaceRange(t,{line:e+1,ch:0}),this.$findTableInEditor(),this.$setSelection(this.tableEditor.info.tableIndex,"td")}},{key:"$addLastCol",value:function(){var e=this;this.$setSelection(this.tableEditor.info.tableIndex,"table");var t=this.codeMirror.getSelection().split("\n"),n=Zu(t).call(t,(function(t,n){var r=t.split("|"),A=1===n?":-:":"";return $u(r).call(r,e.tableEditor.info.tdIndex+1,0,A),r.join("|")})).join("\n");this.codeMirror.replaceSelection(n),this.$findTableInEditor(),this.$setSelection(this.tableEditor.info.tableIndex,"table")}},{key:"$addNextCol",value:function(){var e=this;this.$setSelection(this.tableEditor.info.tableIndex,"table");var t=this.codeMirror.getSelection().split("\n"),n=Zu(t).call(t,(function(t,n){var r=t.split("|"),A=1===n?":-:":"";return $u(r).call(r,e.tableEditor.info.tdIndex+2,0,A),r.join("|")})).join("\n");this.codeMirror.replaceSelection(n),this.$findTableInEditor(),this.$setSelection(this.tableEditor.info.tableIndex,"table")}},{key:"$drawDrag",value:function(){var e=this.tableEditor.info.isTHead;this.$setSelection(this.tableEditor.info.tableIndex,"table"),e?this.$dragCol():this.$dragLine()}},{key:"$dragCol",value:function(){var e=this.tableEditor.info.tdIndex,t=this.target.parentElement,n=this.codeMirror.getSelection().split(/\n/),r=this.tableEditor.info.tdNode,A=this;r.setAttribute("draggable",!0),t.addEventListener("dragleave",(function(e){A.setStyle(e.target,"border","1px solid #dfe6ee")})),t.addEventListener("dragover",(function(t){var n;t.preventDefault();var r=yc(n=Kl(t.target.parentElement.childNodes)).call(n,t.target);A.$dragSymbol(t.target,e,r)})),t.addEventListener("drop",(function(t){var r;t.preventDefault();var i=yc(r=Kl(t.target.parentElement.childNodes)).call(r,t.target),o=Zu(n).call(n,(function(t,n){var r,o=AA(r=t.split("|")).call(r,(function(e,t){return""!==e}));return"|".concat(A.$operateLines(e,i,o).join("|"),"|")})).join("\n");A.codeMirror.replaceSelection(o),A.setStyle(t.target,"border","1px solid #dfe6ee"),A.$findTableInEditor(),A.$setSelection(A.tableEditor.info.tableIndex,"table")}))}},{key:"$dragLine",value:function(){var e=this.tableEditor.info.trNode;e.setAttribute("draggable",!0),this.$setSelection(this.tableEditor.info.tableIndex,"table");var t=this.tableEditor.info.trIndex+2,n=e.parentElement,r=this.codeMirror.getSelection().split(/\n/),A=this;n.addEventListener("dragleave",(function(e){A.setStyle(e.target.parentElement,"border","1px solid #dfe6ee")})),n.addEventListener("dragover",(function(e){var n;e.preventDefault();var r=yc(n=Kl(e.target.parentElement.parentElement.childNodes)).call(n,e.target.parentElement)+2;A.$dragSymbol(e.target,t,r)})),n.addEventListener("drop",(function(e){var n;e.preventDefault();var i=yc(n=Kl(e.target.parentElement.parentElement.childNodes)).call(n,e.target.parentElement)+2,o=A.$operateLines(t,i,r).join("\n");A.codeMirror.replaceSelection(o),A.$findTableInEditor(),A.$setSelection(A.tableEditor.info.tableIndex,"table"),A.setStyle(e.target.parentElement,"border","1px solid #dfe6ee")}))}},{key:"$dragSymbol",value:function(e,t,n){var r=this.target;r!==e&&t!==n&&("TH"===r.tagName?tn&&(this.setStyle(e,"border","1px solid #dfe6ee"),this.setStyle(e,"border-left","2px solid #6897bb")):"TD"===r.tagName&&(tn&&(this.setStyle(e.parentElement,"border","1px solid #dfe6ee"),this.setStyle(e.parentElement,"border-top","2px solid #6897bb"))))}},{key:"$operateLines",value:function(e,t,n){if(et){var r=n[e];$u(n).call(n,e,1),$u(n).call(n,t,0,r)}return n}}]),e}(),aB=["javascript","typescript","html","css","shell","python","golang","java","c","c++","c#","php","ruby","swift","kotlin","scala","rust","dart","elixir","haskell","lua","perl","r","sql"],sB=Error,lB=v("".replace),cB=String(sB("zxcasd").stack),uB=/\n\s*at [^:]*:[^\n]*/,fB=uB.test(cB),hB=!s((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",T(1,7)),7!==e.stack)})),dB=ye("toStringTag"),gB=a.Error,pB=[].push,mB=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,A=R(vB,this);LA?n=LA(new gB,A?bA(this):vB):(n=A?this:nn(vB),ze(n,dB,"Error")),void 0!==t&&ze(n,"message",function(e,t){return void 0===e?arguments.length<2?"":t:yn(e)}(t)),hB&&ze(n,"stack",function(e,t){if(fB&&"string"==typeof e&&!sB.prepareStackTrace)for(;t--;)e=lB(e,uB,"");return e}(n.stack,1)),function(e,t){_(t)&&"cause"in t&&ze(e,"cause",t.cause)}(n,r);var i=[];return $f(e,pB,{that:i}),ze(n,"errors",i),n};LA?LA(mB,gB):function(e,t,n){for(var r=ri(t),A=Je.f,i=Fe.f,o=0;o=51&&/native code/.test(e))return!1;var n=new lb((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[fb]=r,!(hb=n.then((function(){}))instanceof r)||!t&&cb&&!db})),pb={CONSTRUCTOR:gb,REJECTION_EVENT:db,SUBCLASSING:hb},mb=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=ee(t),this.reject=ee(n)},vb={f:function(e){return new mb(e)}},yb=jB.set,wb="Promise",Bb=pb.CONSTRUCTOR,bb=pb.REJECTION_EVENT,Cb=Jn.getterFor(wb),Qb=Jn.set,kb=lb&&lb.prototype,Tb=lb,xb=kb,Eb=a.TypeError,Fb=a.document,Ub=a.process,Sb=vb.f,Lb=Sb,Hb=!!(Fb&&Fb.createEvent&&a.dispatchEvent),Ib="unhandledrejection",Mb=function(e){var t;return!(!_(e)||!y(t=e.then))&&t},_b=function(e,t){var n,r,A,i=t.value,o=1==t.state,a=o?e.ok:e.fail,s=e.resolve,l=e.reject,c=e.domain;try{a?(o||(2===t.rejection&&Pb(t),t.rejection=1),!0===a?n=i:(c&&c.enter(),n=a(i),c&&(c.exit(),A=!0)),n===e.promise?l(Eb("Promise-chain cycle")):(r=Mb(n))?b(r,n,s,l):s(n)):l(i)}catch(e){c&&!A&&c.exit(),l(e)}},Db=function(e,t){e.notified||(e.notified=!0,rb((function(){for(var n,r=e.reactions;n=r.get();)_b(n,e);e.notified=!1,t&&!e.rejection&&Nb(e)})))},Ob=function(e,t,n){var r,A;Hb?((r=Fb.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),a.dispatchEvent(r)):r={promise:t,reason:n},!bb&&(A=a["on"+e])?A(r):e===Ib&&function(e,t){var n=a.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Nb=function(e){b(yb,a,(function(){var t,n=e.facade,r=e.value;if(Rb(e)&&(t=Ab((function(){Hd?Ub.emit("unhandledRejection",r,n):Ob(Ib,n,r)})),e.rejection=Hd||Rb(e)?2:1,t.error))throw t.value}))},Rb=function(e){return 1!==e.rejection&&!e.parent},Pb=function(e){b(yb,a,(function(){var t=e.facade;Hd?Ub.emit("rejectionHandled",t):Ob("rejectionhandled",t,e.value)}))},Kb=function(e,t,n){return function(r){e(t,r,n)}},$b=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Db(e,!0))},Xb=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Eb("Promise can't be resolved itself");var r=Mb(t);r?rb((function(){var n={done:!1};try{b(r,t,Kb(Xb,n,e),Kb($b,n,e))}catch(t){$b(n,t,e)}})):(e.value=t,e.state=1,Db(e,!1))}catch(t){$b({done:!1},t,e)}}};Bb&&(xb=(Tb=function(e){Vf(this,xb),ee(e),b(ob,this);var t=Cb(this);try{e(Kb(Xb,t),Kb($b,t))}catch(e){$b(t,e)}}).prototype,(ob=function(e){Qb(this,{type:wb,done:!1,notified:!1,parent:!1,reactions:new sb,rejection:!1,state:0,value:void 0})}).prototype=Un(xb,"then",(function(e,t){var n=Cb(this),r=Sb(sh(this,Tb));return n.parent=!0,r.ok=!y(e)||e,r.fail=y(t)&&t,r.domain=Hd?Ub.domain:void 0,0==n.state?n.reactions.add(r):rb((function(){_b(r,n)})),r.promise})),ab=function(){var e=new ob,t=Cb(e);this.promise=e,this.resolve=Kb(Xb,t),this.reject=Kb($b,t)},vb.f=Sb=function(e){return e===Tb||undefined===e?new ab(e):Lb(e)}),Ye({global:!0,constructor:!0,wrap:!0,forced:Bb},{Promise:Tb}),On(Tb,wb,!1,!0),qf(wb);var Vb=pb.CONSTRUCTOR||!Nl((function(e){lb.all(e).then(void 0,(function(){}))}));Ye({target:"Promise",stat:!0,forced:Vb},{all:function(e){var t=this,n=vb.f(t),r=n.resolve,A=n.reject,i=Ab((function(){var n=ee(t.resolve),i=[],o=0,a=1;$f(e,(function(e){var s=o++,l=!1;a++,b(n,t,e).then((function(e){l||(l=!0,i[s]=e,--a||r(i))}),A)})),--a||r(i)}));return i.error&&A(i.value),n.promise}});var jb=pb.CONSTRUCTOR;lb&&lb.prototype,Ye({target:"Promise",proto:!0,forced:jb,real:!0},{catch:function(e){return this.then(void 0,e)}}),Ye({target:"Promise",stat:!0,forced:Vb},{race:function(e){var t=this,n=vb.f(t),r=n.reject,A=Ab((function(){var A=ee(t.resolve);$f(e,(function(e){b(A,t,e).then(n.resolve,r)}))}));return A.error&&r(A.value),n.promise}}),Ye({target:"Promise",stat:!0,forced:pb.CONSTRUCTOR},{reject:function(e){var t=vb.f(this);return b(t.reject,void 0,e),t.promise}});var Gb=function(e,t){if(Ke(e),_(t)&&t.constructor===e)return t;var n=vb.f(e);return(0,n.resolve)(t),n.promise},Wb=pb.CONSTRUCTOR,Jb=N("Promise"),zb=!Wb;Ye({target:"Promise",stat:!0,forced:true},{resolve:function(e){return Gb(zb&&this===Jb?lb:this,e)}}),Ye({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=vb.f(t),r=n.resolve,A=n.reject,i=Ab((function(){var n=ee(t.resolve),A=[],i=0,o=1;$f(e,(function(e){var a=i++,s=!1;o++,b(n,t,e).then((function(e){s||(s=!0,A[a]={status:"fulfilled",value:e},--o||r(A))}),(function(e){s||(s=!0,A[a]={status:"rejected",reason:e},--o||r(A))}))})),--o||r(A)}));return i.error&&A(i.value),n.promise}});var Zb="No one promise resolved";Ye({target:"Promise",stat:!0},{any:function(e){var t=this,n=N("AggregateError"),r=vb.f(t),A=r.resolve,i=r.reject,o=Ab((function(){var r=ee(t.resolve),o=[],a=0,s=1,l=!1;$f(e,(function(e){var c=a++,u=!1;s++,b(r,t,e).then((function(e){u||l||(l=!0,A(e))}),(function(e){u||l||(u=!0,o[c]=e,--s||i(new n(o,Zb)))}))})),--s||i(new n(o,Zb))}));return o.error&&i(o.value),r.promise}});var qb=lb&&lb.prototype,Yb=!!lb&&s((function(){qb.finally.call({then:function(){}},(function(){}))}));Ye({target:"Promise",proto:!0,real:!0,forced:Yb},{finally:function(e){var t=sh(this,N("Promise")),n=y(e);return this.then(n?function(n){return Gb(t,e()).then((function(){return n}))}:e,n?function(n){return Gb(t,e()).then((function(){throw n}))}:e)}});var eC=D.Promise,tC=eC;Ye({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=vb.f(this),n=Ab(e);return(n.error?t.reject:t.resolve)(n.value),t.promise}});var nC=tC;function rC(e,t,n,r,A,i,o){try{var a=e[i](o),s=a.value}catch(e){return void n(e)}a.done?t(s):nC.resolve(s).then(r,A)}function AC(e){return function(){var t=this,n=arguments;return new nC((function(r,A){var i=e.apply(t,n);function o(e){rC(i,r,A,o,a,"next",e)}function a(e){rC(i,r,A,o,a,"throw",e)}o(void 0)}))}}var iC=r((function(e){function t(n){return e.exports=t="function"==typeof Si&&"symbol"==typeof Pi?function(e){return typeof e}:function(e){return e&&"function"==typeof Si&&e.constructor===Si&&e!==Si.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}));n(iC);var oC=ei,aC=v([].reverse),sC=[1,2];Ye({target:"Array",proto:!0,forced:String(sC)===String(sC.reverse())},{reverse:function(){return zn(this)&&(this.length=this.length),aC(this)}});var lC=tA("Array").reverse,cC=Array.prototype,uC=function(e){var t=e.reverse;return e===cC||R(cC,e)&&t===cC.reverse?lC:t},fC=r((function(e){var t=iC.default;function n(){e.exports=n=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var r={},A=Object.prototype,i=A.hasOwnProperty,o="function"==typeof Si?Si:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,n){return fi(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var A=t&&t.prototype instanceof d?t:d,i=vi(A.prototype),o=new k(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(A,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===A)throw i;return x()}for(n.method=A,n.arg=i;;){var o=n.delegate;if(o){var a=b(o,n);if(a){if(a===h)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=f(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===h)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}(e,n,o),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}r.wrap=u;var h={};function d(){}function g(){}function p(){}var m={};c(m,a,(function(){return this}));var v=Vi&&Vi(Vi(T([])));v&&v!==A&&i.call(v,a)&&(m=v);var y=p.prototype=d.prototype=vi(m);function w(e){var t;oC(t=["next","throw","return"]).call(t,(function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function B(e,n){function r(A,o,a,s){var l=f(e[A],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==t(u)&&i.call(u,"__await")?n.resolve(u.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):n.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var A;this._invoke=function(e,t){function i(){return new n((function(n,A){r(e,t,n,A)}))}return A=A?A.then(i,i):i()}}function b(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,b(e,t),"throw"===t.method))return h;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=f(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,h;var A=r.arg;return A?A.done?(t[e.resultName]=A.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):A:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function Q(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],oC(e).call(e,C,this),this.reset(!0)}function T(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n=0;--r){var A=this.tryEntries[r],o=A.completion;if("root"===A.tryLoc)return n("end");if(A.tryLoc<=this.prev){var a=i.call(A,"catchLoc"),s=i.call(A,"finallyLoc");if(a&&s){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),Q(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var A=r.arg;Q(n)}return A}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}));n(fC);var hC=fC();function dC(e){function t(t){t.clipboardData.setData("text/html",e),t.clipboardData.setData("text/plain",e),t.preventDefault()}document.addEventListener("copy",t),document.execCommand("copy"),document.removeEventListener("copy",t)}function gC(e){var t=document.createElement("input");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}function pC(e){return mC.apply(this,arguments)}function mC(){return mC=AC(hC.mark((function e(t){return hC.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(navigator.clipboard){e.next=3;break}return gC(t),e.abrupt("return");case 3:return e.next=5,navigator.clipboard.writeText(t);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)}))),mC.apply(this,arguments)}var vC=function(){function e(t,n,r,A,i,o){ui(this,e),Gi(this,"codeBlockEditor",{info:{},editorDom:{}}),this.trigger=t,this.target=n,this.previewerDom=A,this.container=r,this.codeMirror=i,this.$cherry=o.previewer.$cherry,this.parent=o,this.$initReg()}return di(e,[{key:"$initReg",value:function(){this.codeBlockReg=this.codeBlockReg?this.codeBlockReg:wu().reg}},{key:"emit",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};switch(e){case"remove":return this.$remove();case"scroll":return this.$updateContainerPosition();case"previewUpdate":return this.$updateContainerPosition(),void(this.editing&&this.$setInputOffset());case"mouseup":return this.$tryRemoveMe(t,n)}}},{key:"$remove",value:function(){this.codeBlockEditor={info:{},codeBlockCodes:[],editorDom:{}}}},{key:"$tryRemoveMe",value:function(e,t){var n=this.codeBlockEditor.editorDom.inputDiv;this.editing&&n&&!n.contains(e.target)&&(this.editing=!1,this.$remove(),t())}},{key:"$findCodeInEditor",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$collectCodeBlockDom(),this.$collectCodeBlockCode(),e?this.$setLangSelection(this.codeBlockEditor.info.codeBlockIndex):this.$setBlockSelection(this.codeBlockEditor.info.codeBlockIndex)}},{key:"$collectCodeBlockDom",value:function(){var e=Kl(this.previewerDom.querySelectorAll('[data-type="codeBlock"]'));this.codeBlockEditor.info={codeBlockNode:this.target,codeBlockIndex:yc(e).call(e,this.target)}}},{key:"$collectCodeBlockCode",value:function(){var e=[];this.codeMirror.getValue().replace(this.codeBlockReg,(function(t){var n,r=t.replace(/^\n*/,""),A=((n=(arguments.length<=1?0:arguments.length-1)-2+1)<1||arguments.length<=n?void 0:arguments[n])+t.match(/^\n*/)[0].length;ec(r).call(r,"```mermaid")||e.push({code:r,offset:A})})),this.codeBlockEditor.codeBlockCodes=e}},{key:"$setBlockSelection",value:function(e){var t,n,r,A,i=this.codeBlockEditor.codeBlockCodes[e],o=this.codeMirror.getValue(),a=null!==(t=null===(n=Bc(o).call(o,0,i.offset).match(/\n/g))||void 0===n?void 0:n.length)&&void 0!==t?t:0,s=a+i.code.match(/\n/g).length,l=Bc(r=i.code).call(r,0,-3).match(/[^\n]+\n*$/)[0].length;this.codeBlockEditor.info.selection=[{line:s-1,ch:l},{line:a+1,ch:0}],(A=this.codeMirror).setSelection.apply(A,Sh(this.codeBlockEditor.info.selection))}},{key:"$setLangSelection",value:function(e){var t,n,r,A,i=this.codeBlockEditor.codeBlockCodes[e],o=this.codeMirror.getValue(),a=null!==(t=null===(n=Bc(o).call(o,0,i.offset).match(/\n/g))||void 0===n?void 0:n.length)&&void 0!==t?t:0,s=(null!==(r=i.code.match(/```\s*[^\n]+/)[0])&&void 0!==r?r:"```").length;this.codeBlockEditor.info.selection=[{line:a,ch:3},{line:a,ch:s}],(A=this.codeMirror).setSelection.apply(A,Sh(this.codeBlockEditor.info.selection))}},{key:"showBubble",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.$updateContainerPosition(),"hover"===this.trigger&&this.$showBtn(t),"click"===this.trigger&&this.$showContentEditor(),this.container.addEventListener("wheel",(function(t){t.stopPropagation(),t.preventDefault(),e.previewerDom.scrollTop+=t.deltaY/3}))}},{key:"$showContentEditor",value:function(){this.editing=!0,this.$findCodeInEditor(),this.$drawEditor()}},{key:"$showBtn",value:function(e){var t=this,n=this.target.dataset,r=n.changeLang,A=n.editCode,i=n.copyCode,o=n.lang;if(this.container.innerHTML="","true"===r&&e){this.container.innerHTML=function(e){var t=Zu(aB).call(aB,(function(t){var n,r;return e===t?zi(r='"):zi(n='")}));return'")}(o);var a=this.container.querySelector("#code-preview-lang-select");this.changeLangDom=a,this.changeLangDom.addEventListener("change",(function(e){e.preventDefault(),e.stopPropagation(),t.parent.$removeAllPreviewerBubbles("click"),t.$changeLang(e.target.value||"")}))}if("true"===A&&e){var s=document.createElement("div");s.className="cherry-edit-code-block",s.innerHTML='',this.container.appendChild(s),s.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation(),t.$hideAllBtn(),t.parent.$removeAllPreviewerBubbles("click"),t.parent.showCodeBlockPreviewerBubbles("click",t.target)})),this.editDom=s}if("true"===i){var l=document.createElement("div");l.className="cherry-copy-code-block",l.innerHTML='',this.container.appendChild(l),l.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation(),t.parent.$removeAllPreviewerBubbles("click"),t.$copyCodeBlock()})),this.copyDom=l}}},{key:"$hideAllBtn",value:function(){var e,t,n,r,A,i;null!==(e=this.changeLangDom)&&void 0!==e&&null!==(t=e.style)&&void 0!==t&&t.display&&(this.changeLangDom.style.display="none"),null!==(n=this.editDom)&&void 0!==n&&null!==(r=n.style)&&void 0!==r&&r.display&&(this.editDom.style.display="none"),null!==(A=this.copyDom)&&void 0!==A&&null!==(i=A.style)&&void 0!==i&&i.display&&(this.copyDom.style.display="none")}},{key:"$changeLang",value:function(e){this.$findCodeInEditor(!0),this.codeMirror.replaceSelection(e,"around")}},{key:"$drawEditor",value:function(){var e=document.createElement("div");e.className="cherry-previewer-codeBlock-content-handler__input";var t=document.createElement("textarea");t.id="codeMirrorEditor",e.appendChild(t);var n=tc.fromTextArea(t,{mode:"",theme:"default",scrollbarStyle:"null",lineNumbers:!0,autofocus:!0,lineWrapping:!0,cursorHeight:.85,indentUnit:4,tabSize:4,keyMap:"sublime"}),r=this.codeMirror;n.on("change",(function(){r.replaceSelection(n.getValue(),"around")})),this.codeBlockEditor.editorDom.inputDiv=e,this.codeBlockEditor.editorDom.inputDom=n,this.$updateEditorPosition(),this.container.appendChild(this.codeBlockEditor.editorDom.inputDiv),this.codeBlockEditor.editorDom.inputDom.focus(),this.codeBlockEditor.editorDom.inputDom.refresh(),n.setValue(this.codeMirror.getSelection())}},{key:"$copyCodeBlock",value:function(){var e=this.target.lastElementChild.innerText,t=this.$cherry.options.callback.onCopyCode({target:this.target},e);if(!1===t)return!1;var n=this.copyDom.querySelector("i.ch-icon-copy");n&&(n.className=n.className.replace("copy","ok"),lo((function(){n.className=n.className.replace("ok","copy")}),1e3)),dC(t)}},{key:"$updateContainerPosition",value:function(){this.codeBlockEditor.info.codeBlockNode=this.target;var e=this.$getPosition();this.setStyle(this.container,"width","".concat(e.width,"px")),this.setStyle(this.container,"top","".concat(e.top,"px")),this.setStyle(this.container,"left","".concat(e.left,"px"))}},{key:"$updateEditorPosition",value:function(){this.$setInputOffset();var e=getComputedStyle(this.codeBlockEditor.info.codeBlockNode),t=this.codeBlockEditor.editorDom.inputDom.getWrapperElement();this.setStyle(t,"fontSize",e.fontSize||"16px"),this.setStyle(t,"fontFamily",e.fontFamily),this.setStyle(t,"lineHeight","1.8em"),this.setStyle(t,"zIndex","1")}},{key:"$setInputOffset",value:function(){var e=this.$getPosition(),t=this.codeBlockEditor.editorDom.inputDiv;this.setStyle(t,"width","".concat(e.width,"px")),this.setStyle(t,"height","".concat(e.height+10,"px"))}},{key:"setStyle",value:function(e,t,n){e.getBoundingClientRect()[t]!==n&&(e.style[t]=n)}},{key:"$getPosition",value:function(){var e=this.codeBlockEditor.info.codeBlockNode.getBoundingClientRect(),t=this.previewerDom.parentNode.getBoundingClientRect();return{top:e.top-t.top,height:e.height,width:e.width,left:e.left-t.left,maxHeight:t.height}}}]),e}(),yC=function(e,t,n){return Math.min(Math.max(e,t),n)},wC={open:function(){this.resetStyle(),this.dom.style.display="block",this.postMessage("ready?")},close:function(){this.dom.style.display="none"},postMessage:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";null===(t=this.iframeDom)||void 0===t||null===(n=t.contentWindow)||void 0===n||n.postMessage({eventName:e,value:r},"*")},resetStyle:function(){var e=this.dom;e.style.left="10%",e.style.top="10%"},bindEvents:function(){this.bindClickEvents(),this.bindDNDEvents()},bindClickEvents:function(){var e=this;this.headCloseButton.addEventListener("click",(function(){e.close()})),this.footSureButton.addEventListener("click",(function(){e.postMessage("getData")}))},bindDNDEvents:function(){var e,t,n=this.dom,r=this.head,A=this.body,i=function(r){r.preventDefault();var A=yC(r.clientX-e,0,window.innerWidth-16),i=yC(r.clientY-t,0,window.innerHeight-16);n.style.left="".concat(A,"px"),n.style.top="".concat(i,"px")},o=function e(t){r.style.cursor="grab",A.style.pointerEvents=null,document.removeEventListener("mousemove",i),document.removeEventListener("mousemove",e)};r.addEventListener("mousedown",(function(a){a.target.classList.contains("cherry-dialog--close")||(e=a.clientX-n.offsetLeft,t=a.clientY-n.offsetTop,r.style.cursor="grabbing",A.style.pointerEvents="none",document.addEventListener("mousemove",i),document.addEventListener("mouseup",o))}))},draw:function(e,t,n){var r=this,A=e.iframeSrc,i=e.title;if(this.onSubmit=n,this.onReady=t,this.dom)return new RegExp("".concat(A,"$"),"i").test(this.iframeDom.src)||(this.iframeDom.src=A),void this.open();window.addEventListener("message",(function(e){if(e.data&&e.data.eventName)switch(e.data.eventName){case"getData:success":r.onSubmit(e.data.value),r.close();case"ready":r.onReady()}})),this.iframeDom=Wc("iframe","cherry-dialog-iframe",{src:A,style:"border: none;"}),this.dom=Wc("div","cherry-dialog",{style:["z-index:9999","display: block","position: absolute","top: 10%;left: 10%;width: 80%;height: 80%;","background-color: #FFF","box-shadow: 0px 50px 100px -12px rgba(0,0,0,.05),0px 30px 60px -30px rgba(0,0,0,.1)","border-radius: 6px","border: 1px solid #ddd;"].join(";")}),this.head=Wc("div","cherry-dialog--head",{style:["height: 30px","line-height: 30px","padding-left: 10px","padding-right: 10px","cursor: grab;"].join(";")}),this.body=Wc("div","cherry-dialog--body",{style:["position: absolute","bottom: 30px","top: 30px","left: 0","right: 0","overflow: hidden"].join(";")}),this.foot=Wc("div","cherry-dialog--foot",{style:["height: 30px","line-height: 30px","padding-left: 10px","padding-right: 10px","position: absolute","bottom: 0","left: 0","right: 0"].join(";")}),this.headTitle=Wc("span","cherry-dialog--title",{style:"user-select:none;"}),this.headCloseButton=Wc("i","cherry-dialog--close ch-icon ch-icon-close",{style:"float: right;font-size: 12px;cursor: pointer;"}),this.footSureButton=Wc("button","cherry-dialog--sure",{style:["float: right","cursor: pointer","margin: 3px","background-color: #4d90fe","color: #FFF","border: 1px solid #4d90fe","border-radius: 2px","padding: 2px 15px","user-select:none"].join(";")}),this.headCloseButton.title="关闭",this.footSureButton.textContent="确定",this.headTitle.textContent=i,this.head.appendChild(this.headTitle),this.head.appendChild(this.headCloseButton),this.foot.appendChild(this.footSureButton),this.body.appendChild(this.iframeDom),this.dom.appendChild(this.head),this.dom.appendChild(this.body),this.dom.appendChild(this.foot),this.bindEvents(),document.body.appendChild(this.dom)}};function BC(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n={iframeSrc:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",title:"draw.io"};wC.draw(n,(function(){wC.postMessage("setData",e)}),(function(e){t(e)}))}var bC=function(){return xo.Date.now()},CC=/\s/;var QC=function(e){for(var t=e.length;t--&&CC.test(e.charAt(t)););return t},kC=/^\s+/;var TC=function(e){return e?e.slice(0,QC(e)+1).replace(kC,""):e},xC=/^[-+]0x[0-9a-f]+$/i,EC=/^0b[01]+$/i,FC=/^0o[0-7]+$/i,UC=parseInt;var SC=function(e){if("number"==typeof e)return e;if(lp(e))return NaN;if(Oo(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Oo(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=TC(e);var n=EC.test(e);return n||FC.test(e)?UC(e.slice(2),n?2:8):xC.test(e)?NaN:+e},LC=Math.max,HC=Math.min;var IC=function(e,t,n){var r,A,i,o,a,s,l=0,c=!1,u=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var n=r,i=A;return r=A=void 0,l=t,o=e.apply(i,n)}function d(e){var n=e-s;return void 0===s||n>=t||n<0||u&&e-l>=i}function g(){var e=bC();if(d(e))return p(e);a=setTimeout(g,function(e){var n=t-(e-s);return u?HC(n,i-(e-l)):n}(e))}function p(e){return a=void 0,f&&r?h(e):(r=A=void 0,o)}function m(){var e=bC(),n=d(e);if(r=arguments,A=this,s=e,n){if(void 0===a)return function(e){return l=e,a=setTimeout(g,t),c?h(e):o}(s);if(u)return clearTimeout(a),a=setTimeout(g,t),h(s)}return void 0===a&&(a=setTimeout(g,t)),o}return t=SC(t)||0,Oo(n)&&(c=!!n.leading,i=(u="maxWait"in n)?LC(SC(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),m.cancel=function(){void 0!==a&&clearTimeout(a),l=0,r=s=A=a=void 0},m.flush=function(){return void 0===a?o:p(bC())},m};function MC(e,t){var n=document.createElement("a");n.href=e,n.download=t,n.click(),n.remove()}function _C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("svg"!==t.format){var n=t.width,r=void 0===n?e.width.baseVal.value:n,A=t.height,i=void 0===A?e.height.baseVal.value:A,o=t.scale,a=void 0===o?5:o,s=t.quality,l=void 0===s?1:s,c=t.backgroundColor,u=void 0===c?"white":c,f=t.filename,h=void 0===f?"formula":f,d=t.format,g=void 0===d?"png":d,p=t.mimeType,m=void 0===p?"image/png":p,v=DC(e),y=document.createElement("canvas"),w=y.getContext("2d"),B=new Image;B.src="data:image/svg+xml;base64,".concat(btoa(unescape(encodeURIComponent(v)))),B.onload=function(){y.width=r*a,y.height=i*a,w.fillStyle=u,w.fillRect(0,0,y.width,y.height),w.drawImage(B,0,0,y.width,y.height),y.toBlob((function(e){var t,n=Iw.createObjectURL(e);MC(n,zi(t="".concat(h,".")).call(t,g)),Iw.revokeObjectURL(n)}),m,l)}}else{var b;!function(e,t){var n=DC(e),r=new Blob([n],{type:"image/svg+xml;charset=utf-8"}),A=Iw.createObjectURL(r);MC(A,t),Iw.revokeObjectURL(A)}(e,null!==(b=t.filename)&&void 0!==b?b:"formula.svg")}}function DC(e){return(new XMLSerializer).serializeToString(e)}var OC=function(){function e(t,n,r,A,i){ui(this,e),Gi(this,"bubbleContainer",null),this.trigger=t,this.target=n,this.container=r,this.previewerDom=A,this.editor=i}return di(e,[{key:"emit",value:function(e,t){switch(e){case"remove":case"scroll":return this.remove()}}},{key:"drawBubble",value:function(){var e,t,n,r=document.createElement("div");r.innerHTML='
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n
    ',r.id="formula-utils-bubble-container",r.className=["formula-utils-bubble-container"].join(" "),this.bubbleContainer=r,null==this||null===(e=this.editor)||void 0===e||null===(t=e.$cherry)||void 0===t||null===(n=t.wrapperDom)||void 0===n||n.appendChild(r)}},{key:"showBubble",value:function(e,t){var n,r,A,i,o,a=null==this||null===(n=this.editor)||void 0===n||null===(r=n.$cherry)||void 0===r||null===(A=r.wrapperDom)||void 0===A||null===(i=A.children)||void 0===i?void 0:i.namedItem("formula-utils-bubble-container"),s=this.target.getBoundingClientRect();a instanceof HTMLElement?this.bubbleContainer=a:this.drawBubble(),this.bubbleContainer.style.display="flex",this.bubbleContainer.style.top="".concat(t||s.top,"px"),this.bubbleContainer.style.left="".concat(e||s.left,"px"),this.bubbleContainer.addEventListener("click",eo(o=this.bubbleClickHandler).call(o,this),{once:!0}),this.collectFormulaCode()}},{key:"collectFormulaCode",value:function(){var e=[];this.editor.editor.getValue().replace(/(\$+)\s*([\w\W]*?)\s*(\1)/g,(function(t,n,r,A,i){e.push({code:r,offset:i})})),this.formulaCode=e}},{key:"remove",value:function(){this.bubbleContainer&&(this.bubbleContainer.style.display="none")}},{key:"bubbleClickHandler",value:function(e){var t=this;e.preventDefault(),e.stopPropagation();var n=e.target;if(n instanceof HTMLButtonElement){var r=n.dataset.name,A=void 0===r?"":r;switch(A){case"svg":case"png":case"jpg":this.target instanceof SVGSVGElement&&_C(this.target,{format:A});break;case"html":case"svgcode":if(this.target instanceof SVGSVGElement)if("svgcode"===A)pC(DC(this.target));else{var i=this.target.parentElement.querySelector("math");i.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),pC(i.outerHTML)}break;case"\\":case"$":case"$$":case"latex":case"mathml":case"docx":var o=this.previewerDom.querySelectorAll("mjx-container"),a=-1;if(ti(o).call(o,(function(e,n){e===t.target.parentElement&&(a=n)})),a>=0&&this.formulaCode[a]){var s=this.formulaCode[a].code;if("mathml"===A||"docx"===A){var l,c,u,f,h=ul(l=this.editor.$cherry.engine.hooks.paragraph).call(l,(function(e){return e instanceof wg}));if(h&&"MathJax"===h.engine)null===(c=window.MathJax)||void 0===c||c.texReset(),null===(u=window.MathJax)||void 0===u||null===(f=u.tex2mmlPromise)||void 0===f||f.call(u,s,{display:!0}).then((function(e){"mathml"===A&&pC(e)}))}else if("latex"===A)pC(s);else if("$"===A){var d,g;pC(zi(d=zi(g="".concat(A)).call(g,s)).call(d,A))}else if("$$"===A){var p,m;pC(zi(p=zi(m="".concat(A,"\n")).call(m,s,"\n")).call(p,A))}else"\\"===A&&pC("\\".concat(s))}}}this.remove()}}]),e}();Fe.f;var NC=v("".endsWith),RC=v("".slice),PC=Math.min,KC=Gl("endsWith");Ye({target:"String",proto:!0,forced:!KC},{endsWith:function(e){var t=yn(I(this));Vl(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,A=void 0===n?r:PC(It(n),r),i=yn(e);return NC?NC(t,i,A):RC(t,A-i.length,A)===i}});var $C=tA("String").endsWith,XC=String.prototype,VC=function(e){var t=e.endsWith;return"string"==typeof e||e===XC||R(XC,e)&&t===XC.endsWith?$C:t},jC=function(){function e(t,n,r,A,i){var o,a;ui(this,e),Gi(this,"bubbleContainer",null),Gi(this,"regList",vu),Gi(this,"range",[]),Gi(this,"position",{line:0,ch:0}),Gi(this,"input",!1),Gi(this,"isCheckbox",!1),this.trigger=t,this.target=n,this.container=r,this.previewerDom=A,this.editor=i,this.handleEditablesInputBinded=eo(o=this.handleEditablesInput).call(o,this),this.handleEditablesUnfocusBinded=eo(a=this.handleEditablesUnfocus).call(a,this),this.target.addEventListener("input",this.handleEditablesInputBinded,!1),this.target.addEventListener("focusout",this.handleEditablesUnfocusBinded,!1),this.setSelection()}return di(e,[{key:"emit",value:function(e,t){if("remove"===e)return this.remove()}},{key:"remove",value:function(){this.bubbleContainer&&(this.bubbleContainer.style.display="none",this.bubbleContainer.children[0]instanceof HTMLTextAreaElement&&(this.bubbleContainer.children[0].value="")),this.target.removeAttribute("contenteditable"),this.target.removeEventListener("input",this.handleEditablesInputBinded,!1),this.target.removeEventListener("focusout",this.handleEditablesUnfocusBinded,!1);var e=this.editor.editor.getCursor();this.editor.editor.setSelection(e,e)}},{key:"setSelection",value:function(){var e,t,n=this,r=Kl(this.previewerDom.querySelectorAll("li.cherry-list-item")),A=_u(r).call(r,(function(e){return e===n.target.parentElement}));if(-1!==A){var i=null!==(e=null===(t=xu(null==this?void 0:this.editor.editor.getValue()))||void 0===t?void 0:t.split("\n"))&&void 0!==e?e:[],o=0,a=-1,s=-1,l="";ti(i).call(i,(function(e,t){if(e&&"/n"!==e){var r=n.regList.exec(e);if(null!==r){var i=vc(r,5),c=i[1],u=i[2],f=i[3],h=i[4];o===A&&void 0!==c&&(a=t,l=h,s=yc(e).call(e,l),null!=u&&VC(u).call(u,".")&&(s+=1),f&&(n.isCheckbox=!0)),o+=1}}}));var c={line:a,ch:s},u={line:a,ch:s+l.length};this.editor.editor.setSelection(c,u),this.range=[c,u],this.position=this.editor.editor.getCursor()}}},{key:"handleEditablesInput",value:function(e){this.input=!0,e.stopPropagation(),e.preventDefault(),e.target instanceof HTMLParagraphElement&&("insertParagraph"!==e.inputType&&"insertLineBreak"!==e.inputType||this.handleInsertLineBreak())}},{key:"handleEditablesUnfocus",value:function(e){if(e.stopPropagation(),e.preventDefault(),e.target instanceof HTMLParagraphElement){if(this.input){var t=this.isCheckbox?e.target.innerHTML.replace(/<\/span>/,""):e.target.innerHTML,n=this.editor.$cherry.engine.makeMarkdown(t),r=vc(this.range,2),A=r[0],i=r[1];this.editor.editor.replaceRange(n,A,i),this.isCheckbox=!1,this.input=!1}this.remove()}}},{key:"handleInsertLineBreak",value:function(){var e,t,n=this.editor.editor.getCursor(),r=this.editor.editor.getLine(n.line),A=this.regList.exec(r),i="\n- ";null!==A&&(i=zi(e="\n".concat(A[1])).call(e,null===(t=A[2])||void 0===t?void 0:t.replace("[x]","[ ] ")));this.editor.editor.replaceRange(i,{line:n.line,ch:this.editor.editor.getLine(n.line).length}),this.editor.editor.setCursor({line:n.line+1,ch:i.length+1}),this.editor.editor.focus(),this.remove()}}]),e}(),GC=function(){function e(t){ui(this,e),this.previewer=t,this.editor=t.editor,this.previewerDom=this.previewer.getDom(),this.enablePreviewerBubble=this.previewer.options.enablePreviewerBubble,this.bubble={},this.bubbleHandler={},this.init()}return di(e,[{key:"init",value:function(){var e,t,n,r=this;this.oldWrapperDomOverflow=this.previewer.$cherry.wrapperDom.style.overflow,this.previewerDom.addEventListener("click",eo(e=this.$onClick).call(e,this)),this.previewerDom.addEventListener("mouseover",eo(t=this.$onMouseOver).call(t,this)),document.addEventListener("mousedown",(function(e){var t;ti(t=Xw(r.bubbleHandler)).call(t,(function(t){return t.emit("mousedown",e)}))})),document.addEventListener("mouseup",(function(e){var t;ti(t=Xw(r.bubbleHandler)).call(t,(function(t){return t.emit("mouseup",e,(function(){return r.$removeAllPreviewerBubbles("click")}))}))})),document.addEventListener("mousemove",(function(e){var t;ti(t=Xw(r.bubbleHandler)).call(t,(function(t){return t.emit("mousemove",e)}))})),document.addEventListener("keyup",(function(e){var t;ti(t=Xw(r.bubbleHandler)).call(t,(function(t){return t.emit("keyup",e)}))})),this.previewerDom.addEventListener("scroll",(function(e){var t;ti(t=Xw(r.bubbleHandler)).call(t,(function(t){return t.emit("scroll",e)}))}),!0),eu.on(this.previewer.instanceId,eu.Events.previewerClose,(function(){return r.$removeAllPreviewerBubbles()})),this.previewer.options.afterUpdateCallBack.push((function(){var e;ti(e=Xw(r.bubbleHandler)).call(e,(function(e){return e.emit("previewUpdate",(function(){return r.$removeAllPreviewerBubbles()}))}))})),this.previewerDom.addEventListener("change",eo(n=this.$onChange).call(n,this)),this.removeHoverBubble=IC((function(){return r.$removeAllPreviewerBubbles("hover")}),400)}},{key:"isCherryCodeBlock",value:function(e){if("DIV"===e.nodeName&&"codeBlock"===e.dataset.type)return e;var t=this.$getClosestNode(e,"DIV");return!1!==t&&("codeBlock"===t.dataset.type&&t)}},{key:"isCherryTable",value:function(e){var t=this.$getClosestNode(e,"DIV");return!1!==t&&(!(/simple-table/.test(t.className)||!/cherry-table-container/.test(t.className))&&t)}},{key:"$isEnableBubbleAndEditorShow",value:function(){return!!this.enablePreviewerBubble&&"hide"!==this.previewer.$cherry.getStatus().editor}},{key:"$onMouseOver",value:function(e){var t=e.target;if(t instanceof Element&&void 0!==t.tagName){switch(t.tagName){case"TD":case"TH":if(!this.$isEnableBubbleAndEditorShow())return;var n=this.isCherryTable(e.target);if(!1===n)return;return this.removeHoverBubble.cancel(),this.$removeAllPreviewerBubbles("hover"),void this.$showTablePreviewerBubbles("hover",e.target,n);case"PRE":case"CODE":case"SPAN":case"DIV":var r=this.isCherryCodeBlock(e.target);if(!1===r)return;return void this.showCodeBlockPreviewerBubbles("hover",r)}this.removeHoverBubble()}}},{key:"$onMouseOut",value:function(){this.enablePreviewerBubble&&this.previewer.$cherry.getStatus().editor}},{key:"$dealCheckboxClick",value:function(e){var t=this,n=e.target,r=Kl(this.previewerDom.querySelectorAll(".ch-icon-square, .ch-icon-check"));this.checkboxIdx=yc(r).call(r,n);var A=xu(this.editor.editor.getValue()).split("\n"),i=0,o=-1,a=-1;ti(A).call(A,(function(e,n){var r=Cl(e).call(e);(ec(r).call(r,"- [ ]")||ec(r).call(r,"- [x]"))&&(i===t.checkboxIdx&&(o=n,a=yc(e).call(e,"- [")+3),i+=1)})),-1!==o&&(this.editor.editor.setSelection({line:o,ch:a},{line:o,ch:a+1}),this.editor.editor.replaceSelection(" "===this.editor.editor.getSelection()?"x":" ","around"))}},{key:"$onClick",value:function(e){var t,n=this,r=e.target,A=this.previewer.$cherry.getStatus();if("hide"!==A.editor&&r instanceof Element){if(r instanceof HTMLImageElement&&"IMG"===r.tagName&&"drawio"===r.getAttribute("data-type")){if(!this.beginChangeDrawioImg(r))return;var i=decodeURI(r.getAttribute("data-xml"));BC(this.previewer.$cherry.options.drawioIframeUrl,i,(function(e){var t,r=e.xmlData,A=e.base64;n.editor.editor.replaceSelection(zi(t="(".concat(A,"){data-type=drawio data-xml=")).call(t,encodeURI(r),"}"),"around")}))}else if(this.enablePreviewerBubble&&("ch-icon ch-icon-square"!==r.className&&"ch-icon ch-icon-check"!==r.className||this.$dealCheckboxClick(e),this.$removeAllPreviewerBubbles("click"),void 0!==r.tagName))switch(r.tagName){case"IMG":r instanceof HTMLImageElement&&this.$showImgPreviewerBubbles(r);break;case"TD":case"TH":if(r instanceof HTMLElement){var o=this.isCherryTable(r);if(!1===o)return;this.$showTablePreviewerBubbles("click",r,o)}break;case"svg":"MJX-CONTAINER"===(null==r||null===(t=r.parentElement)||void 0===t?void 0:t.tagName)&&this.$showFormulaPreviewerBubbles("click",r,{x:e.pageX,y:e.pageY});break;case"A":e.stopPropagation();break;case"P":r instanceof HTMLParagraphElement&&r.parentElement instanceof HTMLLIElement&&(0!==r.children.length&&(e.preventDefault(),e.stopPropagation()),r.setAttribute("contenteditable","true"),r.focus(),this.$showListPreviewerBubbles("click",r))}}else"show"===A.previewer&&this.previewer.$cherry.options.callback.onClickPreview&&this.previewer.$cherry.options.callback.onClickPreview(e)}},{key:"$onChange",value:function(e){}},{key:"$getClosestNode",value:function(e,t){return e.tagName===t?e:"BODY"!==e.parentNode.tagName&&this.$getClosestNode(e.parentNode,t)}},{key:"$removeAllPreviewerBubbles",value:function(){var e,t,n,r,A=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";ti(e=AA(t=jw(this.bubble)).call(t,(function(e){var t=vc(e,1)[0];return!i||i===t}))).call(e,(function(e){var t=vc(e,2),n=t[0];t[1].remove(),delete A.bubble[n]})),ti(n=AA(r=jw(this.bubbleHandler)).call(r,(function(e){var t=vc(e,1)[0];return!i||i===t}))).call(n,(function(e){var t=vc(e,2),n=t[0];t[1].emit("remove"),delete A.bubbleHandler[n]})),mn(this.bubbleHandler).length<=0&&(this.previewer.$cherry.wrapperDom.style.overflow=this.oldWrapperDomOverflow||"")}},{key:"$showTablePreviewerBubbles",value:function(e,t,n){if(this.bubbleHandler[e]&&this.bubbleHandler[e].tableElement===n)this.bubbleHandler[e].showBubble();else{this.$createPreviewerBubbles(e,"click"===e?"table-content-handler":"table-hover-handler");var r=new oB(e,t,this.bubble[e],this.previewerDom,this.editor.editor,n);r.showBubble(),this.bubbleHandler[e]=r}}},{key:"showCodeBlockPreviewerBubbles",value:function(e,t){if(this.bubbleHandler[e]&&this.bubbleHandler[e].target===t)this.removeHoverBubble.cancel();else{this.$removeAllPreviewerBubbles("hover"),this.$createPreviewerBubbles(e,"codeBlock-".concat(e,"-handler"));var n=new vC(e,t,this.bubble[e],this.previewerDom,this.editor.editor,this);n.showBubble(this.$isEnableBubbleAndEditorShow()),this.bubbleHandler[e]=n}}},{key:"$showImgPreviewerBubbles",value:function(e){var t;this.$createPreviewerBubbles();var n=Kl(this.previewerDom.querySelectorAll("img"));if(this.totalImgs=n.length,this.imgIndex=yc(n).call(n,e),!this.beginChangeImgValue(e))return{emit:function(){}};Ww.showBubble(e,this.bubble.click,this.previewerDom),Ww.bindChange(eo(t=this.changeImgValue).call(t,this)),this.bubbleHandler.click=Ww}},{key:"$showFormulaPreviewerBubbles",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.$createPreviewerBubbles(e,"formula-hover-handler");var r=new OC(e,t,this.bubble[e],this.previewerDom,this.editor);r.showBubble((null==n?void 0:n.x)||0,(null==n?void 0:n.y)||0),this.bubbleHandler[e]=r}},{key:"$showListPreviewerBubbles",value:function(e,t){this.$createPreviewerBubbles(e,"list-hover-handler");var n=new jC(e,t,this.bubble[e],this.previewerDom,this.editor);this.bubbleHandler[e]=n}},{key:"beginChangeDrawioImg",value:function(e){var t,n=Kl(this.previewerDom.querySelectorAll('img[data-type="drawio"]')),r=n.length,A=yc(n).call(n,e),i=xu(this.editor.editor.getValue()),o=i.match(Tu),a=o[A]?Cl(t=o[A].replace(/^!\[.*?\]\((.*?)\)/,"$1")).call(t):"";if(o.length===r||e.getAttribute("src")===a)for(var s=i.split(Tu),l=0,c=0,u=0,f=0,h=0;h0&&void 0!==arguments[0]?arguments[0]:"click",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"img-size-handler";this.bubble[e]||(this.bubble[e]=document.createElement("div"),this.bubble[e].className="cherry-previewer-".concat(t),this.previewerDom.after(this.bubble[e]),"hover"===e&&(this.bubble[e].addEventListener("mouseover",this.removeHoverBubble.cancel),this.bubble[e].addEventListener("mouseout",this.removeHoverBubble)),this.previewer.$cherry.wrapperDom.style.overflow="hidden")}},{key:"$showBorderBubbles",value:function(){}},{key:"$showBtnBubbles",value:function(){}}]),e}(),WC=D.setInterval,JC=function(){function e(t,n){ui(this,e),Gi(this,"options",{loadingImgPath:"",maxNumPerTime:2,noLoadImgNum:5,autoLoadImgNum:5,maxTryTimesPerSrc:2,beforeLoadOneImgCallback:function(e){},failLoadOneImgCallback:function(e){},afterLoadOneImgCallback:function(e){},afterLoadAllImgCallback:function(){}}),nl(this.options,t),this.previewer=n,this.srcLoadedList=[],this.srcFailLoadedList={},this.srcLoadingList=[],this.srcList=[],this.loadingImgNum=0,this.lastLoadAllNum=0,this.previewerDom=this.previewer.getDomContainer()}return di(e,[{key:"isLoaded",value:function(e){var t;return ap(t=this.srcLoadedList).call(t,e)}},{key:"isLoading",value:function(e){var t;return ap(t=this.srcLoadingList).call(t,e)}},{key:"loadFailed",value:function(e){this.srcFailLoadedList[e]=this.srcFailLoadedList[e]?this.srcFailLoadedList[e]+1:1}},{key:"isFailLoadedMax",value:function(e){return this.srcFailLoadedList[e]&&this.srcFailLoadedList[e]>this.options.maxTryTimesPerSrc}},{key:"isLoadedAllDone",value:function(){var e=this.previewerDom.querySelectorAll("img[data-src]"),t=this.srcLoadedList.length;return e.length<=0&&this.lastLoadAllNum=c&&A.top<=l,o=n.srcList.length=n.options.maxNumPerTime)return{v:!1};var s,f=n.options.beforeLoadOneImgCallback(t);if(void 0!==f&&!f)return n.loadFailed(a),"continue";a=null!==(s=t.getAttribute("data-src"))&&void 0!==s?s:a,n.loadingImgNum+=1,n.srcList.push(a),n.srcLoadingList.push(a),n.tryLoadOneImg(a,(function(){var e,r;t.setAttribute("src",a),t.removeAttribute("data-src"),n.srcLoadedList.push(a),n.loadingImgNum-=1,$u(e=n.srcLoadingList).call(e,yc(r=n.srcLoadingList).call(r,a),1),n.options.afterLoadOneImgCallback(t),n.loadOneImg()}),(function(){var e,r;n.loadFailed(a),n.loadingImgNum-=1,$u(e=n.srcLoadingList).call(e,yc(r=n.srcLoadingList).call(r,a),1),n.options.failLoadOneImgCallback(t),n.loadOneImg()}))},h=0;h]*?)data-src="([^"]+)"([^>]*?)>/g,(function(e,n,r,A){var i,o;return zi(i=zi(o="").replace(/ {2,}/g," ")}))}},{key:"changeLoadedDataSrc2Src",value:function(e){var t=this;return e.replace(/]*?)data-src="([^"]+)"([^>]*?)>/g,(function(e,n,r,A){var i,o;return t.isLoaded(r)?zi(i=zi(o="").replace(/ {2,}/g," "):e}))}},{key:"$removeSrc",value:function(e){return" ".concat(e).replace(/^(.*?) src=".*?"(.*?$)/,"$1$2")}},{key:"changeSrc2DataSrc",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.options.loadingImgPath,A=this.options.noLoadImgNum,i=0;return e.replace(/]*?)src="([^"]+)"([^>]*?)>/g,(function(e,o,a,s){var l,c,u,f,h;if(/data-src="/.test(e)||!/ src="/.test(e)||A<0)return e;if(!1===n){if(i"):zi(l=zi(c="")}))}}]),e}(),zC=function(){},ZC=function(){function e(t){ui(this,e),Gi(this,"applyingDomChanges",!1),Gi(this,"syncScrollLockTimer",0),Gi(this,"isMobilePreview",!1),this.options={previewerDom:document.createElement("div"),virtualDragLineDom:document.createElement("div"),editorMaskDom:document.createElement("div"),previewerMaskDom:document.createElement("div"),minBlockPercentage:.2,value:"",enablePreviewerBubble:!0,afterUpdateCallBack:[],isPreviewOnly:!1,previewerCache:{html:"",htmlChanged:!1,layout:{}},lazyLoadImg:{loadingImgPath:"",maxNumPerTime:2,noLoadImgNum:5,autoLoadImgNum:5,maxTryTimesPerSrc:2,beforeLoadOneImgCallback:function(e){},failLoadOneImgCallback:function(e){},afterLoadOneImgCallback:function(e){},afterLoadAllImgCallback:function(){}}},nl(this.options,t),this.$cherry=this.options.$cherry,this.instanceId=this.$cherry.getInstanceId(),this.animation={}}return di(e,[{key:"init",value:function(e){this.disableScrollListener=!1,this.bindScroll(),this.editor=e,this.bindDrag(),this.$initPreviewerBubble(),this.lazyLoadImg=new JC(this.options.lazyLoadImg,this),this.lazyLoadImg.doLazyLoad(),this.onMouseDown()}},{key:"$initPreviewerBubble",value:function(){this.previewerBubble=new GC(this)}},{key:"getDomContainer",value:function(){return this.isMobilePreview?this.options.previewerDom.querySelector(".cherry-mobile-previewer-content"):this.options.previewerDom}},{key:"getDom",value:function(){return this.options.previewerDom}},{key:"getValue",value:function(){var e,t,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],r="";if(r=this.isPreviewerHidden()?this.options.previewerCache.html:this.getDomContainer().innerHTML,r=this.lazyLoadImg.changeDataSrc2Src(r),!n||!this.$cherry.wrapperDom)return r;var A=this.$cherry.wrapperDom.getAttribute("data-inline-code-theme"),i=this.$cherry.wrapperDom.getAttribute("data-code-block-theme");return zi(e=zi(t='
    ')).call(e,r,"
    ")}},{key:"isPreviewerHidden",value:function(){return this.options.previewerDom.classList.contains("cherry-previewer--hidden")}},{key:"calculateRealLayout",value:function(e){var t=+(e/(this.editor.options.editorDom.getBoundingClientRect().width+this.options.previewerDom.getBoundingClientRect().width)).toFixed(3);t1-this.options.minBlockPercentage&&(t=+(1-this.options.minBlockPercentage).toFixed(3));var n=+(1-t).toFixed(3);return{editorPercentage:"".concat(100*t,"%"),previewerPercentage:"".concat(100*n,"%")}}},{key:"setRealLayout",value:function(e,t){var n=e,r=t;n&&r||(n="50%",r="50%"),this.editor.options.editorDom.style.width=n,this.options.previewerDom.style.width=r,this.syncVirtualLayoutFromReal()}},{key:"syncVirtualLayoutFromReal",value:function(){var e=this.editor.options.editorDom.getBoundingClientRect(),t=this.options.previewerDom.getBoundingClientRect(),n=e.height,r=this.editor.options.editorDom.offsetTop,A=e.left,i=e.width,o=t.left?t.left-A:0,a=t.width||0,s=this.options,l=s.editorMaskDom,c=s.previewerMaskDom,u=s.virtualDragLineDom;u.style.top="".concat(r,"px"),u.style.left="".concat(o,"px"),u.style.bottom="0px",l.style.height="".concat(n,"px"),l.style.top="".concat(r,"px"),l.style.left="0px",l.style.width="".concat(i,"px"),c.style.height="".concat(n,"px"),c.style.top="".concat(r,"px"),c.style.left="".concat(o,"px"),c.style.width="".concat(a,"px")}},{key:"calculateVirtualLayout",value:function(e,t){var n=this.editor.options.editorDom.getBoundingClientRect().width+this.options.previewerDom.getBoundingClientRect().width,r=e.toFixed(0),A=t-e;An*(1-this.options.minBlockPercentage)&&(A=+(n*(1-this.options.minBlockPercentage)).toFixed(0));var i=n-A;return{startWidth:Fc(r,10),leftWidth:A,rightWidth:i}}},{key:"setVirtualLayout",value:function(e,t,n){var r=this.options,A=r.editorMaskDom,i=r.previewerMaskDom,o=r.virtualDragLineDom;A.style.left="".concat(0,"px"),A.style.width="".concat(t,"px"),o.style.left="".concat(0+t,"px"),i.style.left="".concat(0+t,"px"),i.style.width="".concat(n,"px")}},{key:"bindDrag",value:function(){var e,t=this,n=function(e){e&&e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():window.event.returnValue=!1;var n=t.editor.options.editorDom.getBoundingClientRect().left,r=e.clientX,A=t.calculateVirtualLayout(n,r);return t.setVirtualLayout(A.startWidth,A.leftWidth,A.rightWidth),!1},r=function e(r){r&&r.stopPropagation?r.stopPropagation():r.cancelBubble=!0,r.preventDefault?r.preventDefault():window.event.returnValue=!1;var A=t.editor.options.editorDom.getBoundingClientRect().left,i=r.clientX,o=t.calculateRealLayout(i-A);return t.setRealLayout(o.editorPercentage,o.previewerPercentage),t.editor.options.editorDom.classList.remove("no-select"),t.options.previewerDom.classList.remove("no-select"),t.options.editorMaskDom.classList.remove("cherry-editor-mask--show"),t.options.previewerMaskDom.classList.remove("cherry-previewer-mask--show"),t.options.virtualDragLineDom.classList.remove("cherry-drag--show"),t.editor.editor.refresh(),qc(document,"mousemove",n,!1),qc(document,"mouseup",e,!1),!1};Zc(this.options.virtualDragLineDom,"mousedown",(function(e){e&&e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():window.event.returnValue=!1,t.syncVirtualLayoutFromReal();var A=t.editor.options.editorDom.getBoundingClientRect().left,i=e.clientX,o=t.calculateVirtualLayout(A,i);return t.setVirtualLayout(o.startWidth,o.leftWidth,o.rightWidth),t.options.virtualDragLineDom.classList.contains("cherry-drag--show")||(t.options.virtualDragLineDom.classList.add("cherry-drag--show"),t.options.editorMaskDom.classList.add("cherry-editor-mask--show"),t.options.previewerMaskDom.classList.add("cherry-previewer-mask--show"),t.options.previewerDom.classList.add("no-select"),t.editor.options.editorDom.classList.add("no-select"),Zc(document,"mousemove",n,!1),Zc(document,"mouseup",r,!1)),!1}),!1),Zc(window,"resize",eo(e=this.syncVirtualLayoutFromReal).call(e,this),!1),this.setRealLayout()}},{key:"bindScroll",value:function(){var e=this,t=this.getDomContainer();zC=function(){if(e.applyingDomChanges)Yc.log(new Date,"sync scroll locked");else if(e.disableScrollListener)e.disableScrollListener=!1;else if(t.scrollTop<=0)e.editor.scrollToLineNum(0,0,1);else if(t.scrollTop+t.offsetHeight+10>t.scrollHeight)e.editor.scrollToLineNum(null);else{for(var n,r=t.getBoundingClientRect(),A={x:r.left+r.width/2,y:r.top+1},i=function(e,t){if("function"==typeof document.elementsFromPoint)return document.elementsFromPoint(e,t);if("function"==typeof document.msElementsFromPoint){var n=document.msElementsFromPoint(e,t);return null!==n?Kl(n):n}var r,A=[],i=[];do{var o=document.elementFromPoint(e,t);r!==o?(r=o,A.push(r),i.push(r.style.pointerEvents),r.style.pointerEvents="none"):r=null}while(r);return ti(A).call(A,(function(e,t){e.style.pointerEvents=i[t]})),A}(A.x,A.y),o=0;o0)for(var i=0;i0&&(ti(e).call(e,(function(e,A){var i;Bc(i=e.sign).call(i,0,12)===Bc(t).call(t,0,12)&&A>n&&(r={index:A>n?A:n,sign:t})})),r)}},{key:"$dealWithMyersDiffResult",value:function(e,t,n,r){var A=this;ti(e).call(e,(function(e){switch(n[e.newIndex].dom&&(n[e.newIndex].dom.innerHTML=A.lazyLoadImg.changeLoadedDataSrc2Src(n[e.newIndex].dom.innerHTML)),e.type){case"delete":r.removeChild(t[e.oldIndex].dom);break;case"insert":t[e.oldIndex]?r.insertBefore(n[e.newIndex].dom,t[e.oldIndex].dom):r.appendChild(n[e.newIndex].dom);break;case"update":try{if(n[e.newIndex].dom.querySelector("svg"))throw new Error;A.$updateDom(n[e.newIndex].dom,t[e.oldIndex].dom)}catch(A){r.insertBefore(n[e.newIndex].dom,t[e.oldIndex].dom),r.removeChild(t[e.oldIndex].dom)}}}))}},{key:"$dealUpdate",value:function(e,t,n){if(n.list!==t.list)if(n.list.length&&t.list.length){var r=new Ym(n.list,t.list,(function(e,t){return e[t].sign})).doDiff();Yc.log(r),this.$dealWithMyersDiffResult(r,t.list,n.list,e)}else if(n.list.length&&!t.list.length){var A;Yc.log("add all"),ti(A=n.list).call(A,(function(t){e.appendChild(t.dom)}))}else if(!n.list.length&&t.list.length){var i;Yc.log("delete all"),ti(i=t.list).call(i,(function(t){e.removeChild(t.dom)}))}}},{key:"refresh",value:function(e){this.getDomContainer().innerHTML=e}},{key:"update",value:function(e){var t=this,n=this.lazyLoadImg.changeSrc2DataSrc(e);if(this.isPreviewerHidden())this.doHtmlCache(n);else{window.clearTimeout(this.syncScrollLockTimer),this.applyingDomChanges=!0;var r=document.createElement("div"),A=this.getDomContainer();r.innerHTML=n;var i=this.$getSignData(r),o=this.$getSignData(A);try{this.$dealUpdate(A,o,i),this.afterUpdate()}finally{this.syncScrollLockTimer=lo((function(){t.applyingDomChanges=!1}),50)}}}},{key:"$dealEditAndPreviewOnly",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n={editorPercentage:"0%",previewerPercentage:"100%"};t&&(n={editorPercentage:"100%",previewerPercentage:"0%"});var r=this.editor.options.editorDom.getBoundingClientRect().width,A=this.calculateRealLayout(r);this.options.previewerCache.layout=A,this.setRealLayout(n.editorPercentage,n.previewerPercentage),this.options.virtualDragLineDom.classList.add("cherry-drag--hidden");var i=this.options.previewerDom,o=this.editor.options.editorDom;t?(i.classList.add("cherry-previewer--hidden"),o.classList.add("cherry-editor--full"),i.classList.remove("cherry-preview--full"),o.classList.remove("cherry-editor--hidden")):(i.classList.add("cherry-preview--full"),o.classList.add("cherry-editor--hidden"),i.classList.remove("cherry-previewer--hidden"),o.classList.remove("cherry-editor--full")),lo((function(){return e.editor.editor.refresh()}),0)}},{key:"previewOnly",value:function(){this.$dealEditAndPreviewOnly(!1),this.options.previewerCache.htmlChanged&&this.update(this.options.previewerCache.html),this.cleanHtmlCache(),eu.emit(this.instanceId,eu.Events.previewerOpen),eu.emit(this.instanceId,eu.Events.editorClose)}},{key:"editOnly",value:function(){this.$dealEditAndPreviewOnly(!0),this.cleanHtmlCache(),eu.emit(this.instanceId,eu.Events.previewerClose),eu.emit(this.instanceId,eu.Events.editorOpen)}},{key:"recoverPreviewer",value:function(){var e=this;this.options.previewerDom.classList.remove("cherry-previewer--hidden"),this.options.virtualDragLineDom.classList.remove("cherry-drag--hidden"),this.editor.options.editorDom.classList.remove("cherry-editor--full");var t=this.options.previewerCache.layout;this.setRealLayout(t.editorPercentage,t.previewerPercentage),this.options.previewerCache.htmlChanged&&this.update(this.options.previewerCache.html),this.cleanHtmlCache(),eu.emit(this.instanceId,eu.Events.previewerOpen),eu.emit(this.instanceId,eu.Events.editorOpen),lo((function(){return e.editor.editor.refresh()}),0)}},{key:"doHtmlCache",value:function(e){this.options.previewerCache.html=e,this.options.previewerCache.htmlChanged=!0}},{key:"cleanHtmlCache",value:function(){this.options.previewerCache.html="",this.options.previewerCache.htmlChanged=!1,this.options.previewerCache.layout={}}},{key:"afterUpdate",value:function(){var e;Zu(e=this.options.afterUpdateCallBack).call(e,(function(e){return e()})),void 0===this.highlightLineNum&&(this.highlightLineNum=0),this.highlightLine(this.highlightLineNum)}},{key:"registerAfterUpdate",value:function(e){if(ef(e)){var t;this.options.afterUpdateCallBack=zi(t=this.options.afterUpdateCallBack).call(t,e)}else{if(!e)throw new Error("[markdown error]: Previewer registerAfterUpdate params are undefined");this.options.afterUpdateCallBack.push(e)}}},{key:"$getTopByLineNum",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.getDomContainer();if(null===e)return n.scrollHeight;for(var r="number"==typeof e?e:Fc(e,10),A=n.querySelectorAll("[data-sign]"),i=0,o=n.offsetTop,a=0;a1&&(f=u+(s-Math.abs(r-(i+s))-1)/s*c+c/s*t),f}i+=s}return n.scrollHeight}},{key:"highlightLine",value:function(e){var t,n,r,A,i,o=this.getDomContainer();if(ti(t=o.querySelectorAll(".cherry-highlight-line")).call(t,(function(e){e.classList.remove("cherry-highlight-line")})),"show"===(null===(n=this.$cherry)||void 0===n||null===(r=n.status)||void 0===r?void 0:r.previewer)&&"show"===(null===(A=this.$cherry)||void 0===A||null===(i=A.status)||void 0===i?void 0:i.editor))for(var a=o.querySelectorAll("[data-sign]"),s=0,l=0;l=n.scrollHeight||i>Math.abs(A))return cancelAnimationFrame(t.animation.timer),void(t.animation.timer=0);t.disableScrollListener=!0,t.getDomContainer().scrollTo(null,r+A/Math.abs(A)*i),t.animation.timer=requestAnimationFrame(e)}))}}},{key:"scrollToLineNum",value:function(e,t){var n=this.$getTopByLineNum(e,t);this.$scrollAnimation(n)}},{key:"onMouseDown",value:function(){var e=this;Zc(this.getDomContainer(),"mousedown",(function(){lo((function(){eu.emit(e.instanceId,eu.Events.cleanAllSubMenus)}))}))}},{key:"export",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pdf",t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"")||this.getDomContainer().innerText.match(/^\s*([^\s][^\n]*)\n/)[1]||"cherry-export";"pdf"===e?function(e,t){var n=document.title;document.title=t,_w(e,(function(e,t){window.print(),t(),document.title=n}))}(this.getDomContainer(),t):"screenShot"===e||"img"===e?Dw(this.getDomContainer(),t):"markdown"===e?function(e,t){var n=new Blob([e],{type:"text/markdown;charset=utf-8"}),r=document.createElement("a");r.style.display="none",r.href=Iw.createObjectURL(n),r.download="".concat(t,".md"),document.body.appendChild(r),r.click(),document.body.removeChild(r)}(this.$cherry.getMarkdown(),t):"html"===e&&function(e,t){var n=new Blob([e],{type:"text/markdown;charset=utf-8"}),r=document.createElement("a");r.style.display="none",r.href=Iw.createObjectURL(n),r.download="".concat(t,".html"),document.body.appendChild(r),r.click(),document.body.removeChild(r)}(this.getValue(),t)}}]),e}(),qC=navigator.userAgent,YC=navigator.platform;/gecko\/\d/i.test(qC);var eQ=/MSIE \d/.test(qC),tQ=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(qC),nQ=/Edge\/(\d+)/.exec(qC);(eQ||tQ||nQ)&&(eQ?document.documentMode:(nQ||tQ)[1]);var rQ=!nQ&&/WebKit\//.test(qC);rQ&&/Qt\/\d+\.\d+/.test(qC),!nQ&&/Chrome\//.test(qC);var AQ=/Opera\//.test(qC);/Apple Computer/.test(navigator.vendor),/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(qC),/PhantomJS/.test(qC);var iQ=!nQ&&/AppleWebKit/.test(qC)&&/Mobile\/\w+/.test(qC),oQ=/Android/.test(qC);iQ||oQ||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(qC);var aQ=iQ||/Mac/.test(YC);/\bCrOS\b/.test(qC),/win/i.test(YC);var sQ=AQ&&qC.match(/Version\/(\d*\.\d*)/);function lQ(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"absolute",n=e.getBoundingClientRect();return"fixed"===t?n:"sidebar"===t?{left:cQ.getTargetParentByButton(e).offsetLeft-130+n.width,top:e.offsetTop+n.height/2,width:n.width,height:n.height}:{left:e.offsetLeft,top:e.offsetTop,width:n.width,height:n.height}}sQ&&(sQ=Number(sQ[1])),sQ&&sQ>=15&&(AQ=!1,rQ=!0);var cQ=function(){function e(t){ui(this,e),Gi(this,"_onClick",void 0),this.$cherry=t,this.bubbleMenu=!1,this.subMenu=null,this.name="",this.editor=t.editor,this.locale=t.locale,this.dom=null,this.updateMarkdown=!0,this.subMenuConfig=[],this.noIcon=!1,this.cacheOnce=!1,this.positionModel="absolute","function"==typeof this._onClick&&(Yc.warn("`MenuBase._onClick` is deprecated. Override `fire` instead"),this.fire=this._onClick)}return di(e,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"setName",value:function(e,t){this.name=e,this.iconName=t}},{key:"setCacheOnce",value:function(e){this.cacheOnce=e}},{key:"getAndCleanCacheOnce",value:function(){this.updateMarkdown=!0;var e=this.cacheOnce;return this.cacheOnce=!1,e}},{key:"hasCacheOnce",value:function(){return!1!==this.cacheOnce}},{key:"createBtn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=Wc("span",e?"cherry-dropdown-item":"cherry-toolbar-button cherry-toolbar-".concat(this.iconName?this.iconName:this.name),{title:this.locale[this.name]||Ef(this.name)});if(this.iconName&&!this.noIcon){var n=Wc("i","ch-icon ch-icon-".concat(this.iconName));t.appendChild(n)}return(e||this.noIcon)&&(t.innerHTML+=this.locale[this.name]||Ef(this.name)),e||this.dom||(this.dom=t),t}},{key:"createSubBtnByConfig",value:function(e){var t=e.name,n=e.iconName,r=e.onclick,A=Wc("span","cherry-dropdown-item",{title:this.locale[t]||Ef(t)});if(n){var i=Wc("i","ch-icon ch-icon-".concat(n));A.appendChild(i)}return A.innerHTML+=this.locale[t]||Ef(t),A.addEventListener("click",r,!1),A}},{key:"fire",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(null==e||e.stopPropagation(),"function"==typeof this.onClick){var r=this.editor.editor.getSelections();this.isSelections=r.length>1;var A=Zu(r).call(r,(function(r,A,i){return t.onClick(r,n,e)||i[A]}));!this.bubbleMenu&&this.updateMarkdown&&(this.editor.editor.replaceSelections(A,"around"),this.editor.editor.focus(),this.$afterClick())}}},{key:"$getSelectionRange",value:function(){var e=this.editor.editor.listSelections()[0],t=e.anchor,n=e.head;return t.line===n.line&&t.ch>n.ch||t.line>n.line?{begin:n,end:t}:{begin:t,end:n}}},{key:"registerAfterClickCb",value:function(e){this.afterClickCb=e}},{key:"$afterClick",value:function(){"function"!=typeof this.afterClickCb||this.isSelections||(this.afterClickCb(),this.afterClickCb=null)}},{key:"setLessSelection",value:function(e,t){var n,r,A,i,o=this.editor.editor,a=this.$getSelectionRange(),s=a.begin,l=a.end,c={line:(null===(n=e.match(/\n/g))||void 0===n?void 0:n.length)>0?s.line+e.match(/\n/g).length:s.line,ch:(null===(r=e.match(/\n/g))||void 0===r?void 0:r.length)>0?e.replace(/^[\s\S]*?\n([^\n]*)$/,"$1").length:s.ch+e.length},u=(null===(A=t.match(/\n/g))||void 0===A?void 0:A.length)>0?l.line-t.match(/\n/g).length:l.line,f={line:u,ch:(null===(i=t.match(/\n/g))||void 0===i?void 0:i.length)>0?o.getLine(u).length:l.ch-t.length};o.setSelection(c,f)}},{key:"getMoreSelection",value:function(e,t,n){var r=this.editor.editor,A=this.$getSelectionRange(),i=A.begin,o=A.end,a=/\n/.test(e)?0:i.ch-e.length;a=a<0?0:a;var s,l=/\n/.test(e)?i.line-e.match(/\n/g).length:i.line,c={line:l=l<0?0:l,ch:a},u=o.line,f=o.ch;/\n/.test(t)?(u=o.line+t.match(/\n/g).length,f=null===(s=r.getLine(u))||void 0===s?void 0:s.length):f=r.getLine(o.line).length1&&void 0!==arguments[1]?arguments[1]:"word",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.editor.editor;if(this.isSelections)return e;if(e&&!n)return e;if("line"===t){var A=this.$getSelectionRange(),i=A.begin,o=A.end;return r.setSelection({line:i.line,ch:0},{line:o.line,ch:r.getLine(o.line).length}),r.getSelection()}if("word"===t){var a=r.findWordAt(r.getCursor()),s=a.anchor,l=a.head;return r.setSelection(s,l),r.getSelection()}}},{key:"bindSubClick",value:function(e,t){return this.fire(null,e)}},{key:"onClick",value:function(e,t,n){return e}},{key:"shortcutKeys",get:function(){return[]}},{key:"getMenuPosition",value:function(){var t=e.getTargetParentByButton(this.dom),n=/cherry-sidebar/.test(t.className);return/cherry-bubble/.test(t.className)||/cherry-floatmenu/.test(t.className)?this.positionModel="fixed":this.positionModel=n?"sidebar":"absolute",lQ(this.dom,this.positionModel)}}],[{key:"getTargetParentByButton",value:function(e){var t=e.parentElement;return/toolbar-(left|right)/.test(t.className)&&(t=t.parentElement),t}}]),e}();function uQ(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var fQ=function(e){Bi(n,e);var t=uQ(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("bold","bold"),r}return di(n,[{key:"$testIsBold",value:function(e){return/^\s*(\*\*|__)[\s\S]+(\1)/.test(e)}},{key:"onClick",value:function(e){var t=this,n=this.getSelection(e)||this.locale.bold;return this.isSelections||this.$testIsBold(n)||this.getMoreSelection("**","**",(function(){var e=t.editor.editor.getSelection(),r=t.$testIsBold(e);return r&&(n=e),r})),this.$testIsBold(n)?n.replace(/(^)(\s*)(\*\*|__)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb((function(){t.setLessSelection("**","**")})),n.replace(/(^)([^\n]+)($)/gm,"$1**$2**$3"))}},{key:"shortcutKeys",get:function(){return["Ctrl-b"]}}]),n}(cQ);function hQ(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var dQ=function(e){Bi(n,e);var t=hQ(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("italic","italic"),r}return di(n,[{key:"$testIsItalic",value:function(e){return/^\s*(\*|_)[\s\S]+(\1)/.test(e)}},{key:"onClick",value:function(e){var t=this,n=this.getSelection(e)||this.locale.italic;return this.isSelections||this.$testIsItalic(n)||this.getMoreSelection("*","*",(function(){var e=t.editor.editor.getSelection(),r=t.$testIsItalic(e);return r&&(n=e),r})),this.$testIsItalic(n)?n.replace(/(^)(\s*)(\*|_)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb((function(){t.setLessSelection("*","*")})),n.replace(/(^)([^\n]+)($)/gm,"$1*$2*$3"))}},{key:"shortcutKeys",get:function(){return["Ctrl-i"]}}]),n}(cQ);function gQ(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var pQ=function(e){Bi(n,e);var t=gQ(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("split","|"),r}return di(n,[{key:"createBtn",value:function(){var e=document.createElement("i");return e.className="cherry-toolbar-button cherry-toolbar-split",e}}]),n}(cQ);function mQ(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"word",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(e.getSelections().length>1)return t;if(t&&!r)return t;if("line"===n){var A=e.listSelections()[0],i=A.anchor,o=A.head;return i.line===o.line&&i.ch>o.ch||i.line>o.line?e.setSelection({line:o.line,ch:0},{line:i.line,ch:e.getLine(i.line).length}):e.setSelection({line:i.line,ch:0},{line:o.line,ch:e.getLine(o.line).length}),e.getSelection()}if("word"===n){var a=e.findWordAt(e.getCursor()),s=a.anchor,l=a.head;return e.setSelection(s,l),e.getSelection()}}function vQ(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var yQ=function(e){Bi(n,e);var t=vQ(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("strikethrough","strike"),r}return di(n,[{key:"$testIsStrike",value:function(e){return/(~~)[\s\S]+(\1)/.test(e)}},{key:"onClick",value:function(e){var t,n,r,A,i,o,a=this,s=mQ(this.editor.editor,e)||this.locale.strikethrough,l=(null===(t=this.$cherry)||void 0===t||null===(n=t.options)||void 0===n||null===(r=n.engine)||void 0===r||null===(A=r.syntax)||void 0===A||null===(i=A.strikethrough)||void 0===i?void 0:i.needWhitespace)?" ":"";return this.isSelections||this.$testIsStrike(s)||this.getMoreSelection("".concat(l,"~~"),"~~".concat(l),(function(){var e=a.editor.editor.getSelection(),t=a.$testIsStrike(e);return t&&(s=e),t})),this.$testIsStrike(s)?e.replace(/[\s]*(~~)([\s\S]+)(\1)[\s]*/g,"$2"):(this.registerAfterClickCb((function(){a.setLessSelection("".concat(l,"~~"),"~~".concat(l))})),s.replace(/(^)[\s]*([\s\S]+?)[\s]*($)/g,zi(o="$1".concat(l,"~~$2~~")).call(o,l,"$3")))}},{key:"shortcutKeys",get:function(){return["Ctrl-d"]}}]),n}(cQ);function wQ(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var BQ=function(e){Bi(n,e);var t=wQ(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("sub","sub"),r}return di(n,[{key:"$testIsSub",value:function(e){return/^\s*(\^\^)[\s\S]+(\1)/.test(e)}},{key:"onClick",value:function(e){var t=this,n=mQ(this.editor.editor,e)||this.locale.sub;return this.isSelections||this.$testIsSub(n)||this.getMoreSelection("^^","^^",(function(){var e=t.editor.editor.getSelection(),r=t.$testIsSub(e);return r&&(n=e),r})),this.$testIsSub(n)?n.replace(/(^)(\s*)(\^\^)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb((function(){t.setLessSelection("^^","^^")})),n.replace(/(^)([^\n]+)($)/gm,"$1^^$2^^$3"))}}]),n}(cQ);function bQ(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var CQ=function(e){Bi(n,e);var t=bQ(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("sup","sup"),r}return di(n,[{key:"$testIsSup",value:function(e){return/^\s*(\^)[\s\S]+(\1)/.test(e)}},{key:"onClick",value:function(e){var t=this,n=mQ(this.editor.editor,e)||this.locale.sup;return this.isSelections||this.$testIsSup(n)||this.getMoreSelection("^","^",(function(){var e=t.editor.editor.getSelection(),r=t.$testIsSup(e);return r&&(n=e),r})),this.$testIsSup(n)?e.replace(/(^)(\s*)(\^)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb((function(){t.setLessSelection("^","^")})),n.replace(/(^)([^\n]+)($)/gm,"$1^$2^$3"))}}]),n}(cQ);function QQ(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var kQ=function(e){Bi(n,e);var t=QQ(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("color","color"),r.bubbleColor=new TQ(e),r}return di(n,[{key:"$testIsColor",value:function(e,t){var n=/^\s*!!![^\s]+ [\s\S]+!!!\s*$/;return"text"===e?/^\s*!![^\s]+ [\s\S]+!!\s*$/.test(t)&&!n.test(t):n.test(t)}},{key:"onClick",value:function(e){var t=this,n=arguments.length>2?arguments[2]:void 0,r=mQ(this.editor.editor,e)||this.locale.color;if(this.hasCacheOnce()){var A,i,o=this.getAndCleanCacheOnce(),a=o.type,s=o.color,l="text"===a?"!!".concat(s," "):"!!!".concat(s," "),c="text"===a?"!!":"!!!";if(this.isSelections||this.$testIsColor(a,r)||this.getMoreSelection(l,c,(function(){var e=t.editor.editor.getSelection();return!!t.$testIsColor(a,e)&&(r=e,!0)})),this.$testIsColor(a,r)){var u,f=new RegExp(zi(u="(^\\s*".concat(c,")([^\\s]+) ([\\s\\S]+")).call(u,c,"\\s*$)"),"gm"),h=!0,d=r.replace(f,(function(e,t,n,r){var A,i;return h=!!h&&n===s,zi(A=zi(i="".concat(t)).call(i,s," ")).call(A,r)}));return h?r.replace(f,"$3").replace(/!+\s*$/gm,""):(this.registerAfterClickCb((function(){t.setLessSelection(l,c)})),d)}return this.registerAfterClickCb((function(){t.setLessSelection(l,c)})),zi(A=zi(i="".concat(l)).call(i,r)).call(A,c)}var g=0,p=0;if(n.target.closest(".cherry-bubble")){var m=n.target.closest(".cherry-bubble"),v=m.getBoundingClientRect();g=v.top+m.offsetHeight,p=n.target.closest(".cherry-toolbar-color").offsetLeft+v.left}else{var y=n.target.closest(".cherry-toolbar-color"),w=y.getBoundingClientRect();g=w.top+y.offsetHeight,p=w.left}this.updateMarkdown=!1,this.bubbleColor.show({left:p,top:g,$color:this})}}]),n}(cQ),TQ=function(){function e(t){ui(this,e),Gi(this,"colorStack",["#000000","#444444","#666666","#999999","#cccccc","#eeeeee","#f3f3f3","#ffffff","#ff0000","#ff9900","#ffff00","#00ff00","#00ffff","#0000ff","#9900ff","#ff00ff","#f4cccc","#fce5cd","#fff2cc","#d9ead3","#d0e0e3","#cfe2f3","#d9d2e9","#ead1dc","#ea9999","#f9cb9c","#ffe599","#b6d7a8","#a2c4c9","#9fc5e8","#b4a7d6","#d5a6bd","#e06666","#f6b26b","#ffd966","#93c47d","#76a5af","#6fa8dc","#8e7cc3","#c27ba0","#cc0000","#e69138","#f1c232","#6aa84f","#45818e","#3d85c6","#674ea7","#a64d79","#990000","#b45f06","#bf9000","#38761d","#134f5c","#0b5394","#351c75","#741b47","#660000","#783f04","#7f6000","#274e13","#0c343d","#073763","#20124d","#4c1130"]),this.editor=t.editor,this.init(),this.initAction()}return di(e,[{key:"setSelection",value:function(e){this.selection=e}},{key:"getFontColorDom",value:function(e){var t,n,r=Zu(t=this.colorStack).call(t,(function(e){var t,n;return zi(t=zi(n='')})).join("");return zi(n="

    ".concat(e,"

    ")).call(n,r)}},{key:"getDom",value:function(){var e=document.createElement("div");e.classList.add("cherry-color-wrap"),e.classList.add("cherry-dropdown");var t=document.createElement("div");t.classList.add("cherry-color-text"),t.innerHTML=this.getFontColorDom("文本颜色"),e.appendChild(t);var n=document.createElement("div");return n.classList.add("cherry-color-bg"),n.innerHTML=this.getFontColorDom("背景颜色"),e.appendChild(n),e}},{key:"init",value:function(){this.dom=this.getDom(),this.editor.options.wrapperDom.appendChild(this.dom)}},{key:"onClick",value:function(){var e,t;return"text"===this.type?/^!!#\S+ [\s\S]+?!!/.test(this.selection)?this.selection.replace(/^!!#\S+ ([\s\S]+?)!!/,"!!".concat(this.colorValue," $1!!")):zi(t="!!".concat(this.colorValue," ")).call(t,this.selection,"!!"):/^!!!#\S+ [\s\S]+?!!!/.test(this.selection)?this.selection.replace(/^!!!#\S+ ([\s\S]+?)!!!/,"!!!".concat(this.colorValue," $1!!!")):zi(e="!!!".concat(this.colorValue," ")).call(e,this.selection,"!!!")}},{key:"initAction",value:function(){var e=this;this.dom.addEventListener("click",(function(t){var n=t.target;if(e.colorValue=n.getAttribute("data-val"),!e.colorValue)return!1;e.type=n.closest(".cherry-color-text")?"text":"bg",e.$color.setCacheOnce({type:e.type,color:e.colorValue}),e.$color.fire(null)}),!1),this.dom.addEventListener("EditorHideToolbarSubMenu",(function(){"none"!==e.dom.style.display&&(e.dom.style.display="none")}))}},{key:"show",value:function(e){var t=e.left,n=e.top,r=e.$color;this.dom.style.left="".concat(t,"px"),this.dom.style.top="".concat(n,"px"),this.dom.style.display="block",this.$color=r}}]),e}();function xQ(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var EQ=function(e){Bi(n,e);var t=xQ(n);function n(e){var r,A,i,o,a,s;return ui(this,n),(s=t.call(this,e)).setName("header","header"),s.subMenuConfig=[{iconName:"h1",name:"h1",onclick:eo(r=s.bindSubClick).call(r,gi(s),"1")},{iconName:"h2",name:"h2",onclick:eo(A=s.bindSubClick).call(A,gi(s),"2")},{iconName:"h3",name:"h3",onclick:eo(i=s.bindSubClick).call(i,gi(s),"3")},{iconName:"h4",name:"h4",onclick:eo(o=s.bindSubClick).call(o,gi(s),"4")},{iconName:"h5",name:"h5",onclick:eo(a=s.bindSubClick).call(a,gi(s),"5")}],s}return di(n,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"$getFlagStr",value:function(e){var t=+("string"==typeof e?e.replace(/[^0-9]+([0-9])/g,"$1"):e);return Hc("#").call("#",t||1)}},{key:"$testIsHead",value:function(e){return/^\s*(#+)\s*.+/.test(e)}},{key:"onClick",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=mQ(this.editor.editor,e,"line",!0)||this.locale.header,A=this.$getFlagStr(n);if(this.isSelections||this.$testIsHead(r)||this.getMoreSelection("\n","",(function(){var e=t.editor.editor.getSelection(),n=t.$testIsHead(e);return n&&(r=e),n})),this.$testIsHead(r)){var i=!0,o=r.replace(/(^\s*)(#+)(\s*)(.+$)/gm,(function(e,t,n,r,o){var a,s,l;return i=!!i&&n.length===A.length,zi(a=zi(s=zi(l="".concat(t)).call(l,A)).call(s,r)).call(a,o)}));return i?r.replace(/(^\s*)(#+)(\s*)(.+$)/gm,"$1$4"):(this.registerAfterClickCb((function(){t.setLessSelection("".concat(A," "),"")})),o)}return this.registerAfterClickCb((function(){t.setLessSelection("".concat(A," "),"")})),r.replace(/(^)([\s]*)([^\n]+)($)/gm,"$1".concat(A," $3$4"))}},{key:"shortcutKeys",get:function(){return["Ctrl-1","Ctrl-2","Ctrl-3","Ctrl-4","Ctrl-5","Ctrl-6"]}}]),n}(cQ),FQ=function(e,t){var n,r=document.createElement("td");return r.className=t||"table-item",ti(n=mn(e)).call(n,(function(t){r.dataset[t]=e[t]})),r},UQ=function(){function e(t,n){var r=t.row,A=t.col;ui(this,e),this.init(r,A,n),this.initEventListeners(),this.afterClick=function(){}}return di(e,[{key:"init",value:function(e,t,n){var r=this,A=document.createElement("table"),i=[];A.className=["cherry-insert-table-menu","cherry-dropdown"].join(" ");for(var o=1;o<=e;o++){var a=document.createElement("tr");a.className="cherry-insert-table-menu-row",i[o-1]=[];for(var s=1;s<=t;s++){var l=FQ({row:o,col:s},"cherry-insert-table-menu-item");a.appendChild(l),i[o-1][s-1]=l}A.appendChild(a)}return A.style.display="none",A.addEventListener("EditorHideToolbarSubMenu",(function(){r.hide()})),this.dom=A,this.cell=i,this.maxRow=e,this.maxCol=t,this.activeRow=0,this.activeCol=0,this.dom}},{key:"initEventListeners",value:function(){var e,t;this.dom.addEventListener("mousemove",eo(e=this.handleMouseMove).call(e,this),!1),this.dom.addEventListener("mouseup",eo(t=this.handleMouseUp).call(t,this))}},{key:"setActiveCell",value:function(e,t){if(this.activeRow!==e||this.activeCol!==t){var n=Math.min(this.activeRow,e),r=Math.max(this.activeRow,e);if(n!==r)for(var A=r;A>n;A--)for(var i=1;i<=this.activeCol;i++)this.cell[A-1][i-1].classList.toggle("active");var o=Math.min(this.activeCol,t),a=Math.max(this.activeCol,t);if(o!==a)for(var s=a;s>o;s--)for(var l=1;l<=e;l++)this.cell[l-1][s-1].classList.toggle("active");this.activeRow=e,this.activeCol=t}}},{key:"handleMouseMove",value:function(e){var t=e.target;t!==this.dom&&(t.classList.contains("cherry-insert-table-menu-item")||(t=t.querySelector(".cherry-insert-table-menu-item")),t&&this.setActiveCell(t.dataset.row,t.dataset.col))}},{key:"handleMouseUp",value:function(e){var t=e.target;return t===this.dom||t.classList.contains("cherry-insert-table-menu-item")||(t=t.querySelector(".cherry-insert-table-menu-item")),this.afterClick(this.activeRow,this.activeCol),void this.hide()}},{key:"show",value:function(e){this.dom.style.display="block",this.afterClick=e}},{key:"hide",value:function(){this.dom.style.display="none";for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:"image",n=document.createElement("input");n.type="file",n.id="fileUpload",n.value="",n.style.display="none",n.addEventListener("change",(function(n){var r=vc(n.target.files,1)[0];e.$cherry.options.fileUpload(r,(function(n){if("string"==typeof n&&n){var A,i="";if("image"===t)i=zi(A="![".concat(r.name,"](")).call(A,n,")");else if("video"===t){var o;i=zi(o="!video[".concat(r.name,"](")).call(o,n,")")}else if("audio"===t){var a;i=zi(a="!audio[".concat(r.name,"](")).call(a,n,")")}else{var s;i=zi(s="[".concat(r.name,"](")).call(s,n,")")}e.$cherry.$cherry.doc.replaceSelection(i)}}))})),n.click()}},{key:"onClick",value:function(e){var t,n,r,A,i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0;if(/normal-table/.test(o)){var s,l,c,u=o.match(/([0-9]+)[^0-9]([0-9]+)/),f=u?+u[1]:3,h=u?+u[2]:5,d=Hc(" Header |").call(" Header |",h),g=Hc(" ------ |").call(" ------ |",h),p="\n|".concat(Hc(" Sample |").call(" Sample |",h));return zi(s=zi(l=zi(c="".concat(e,"\n\n|")).call(c,d,"\n|")).call(l,g)).call(s,Hc(p).call(p,f),"\n\n")}var m=mQ(this.editor.editor,e);switch(o){case"hr":return"".concat(e,"\n\n---\n");case"br":return"".concat(e,"
    ");case"code":return"\n``` \n".concat(e||"code...","\n```\n");case"formula":return"".concat(e,"\n\n$ e=mc^2 $\n\n");case"checklist":return"".concat(e,"\n\n- [x] Item 1\n- [ ] Item 2\n- [ ] Item 3\n");case"toc":return"".concat(e,"\n\n[[toc]]\n");case"link":return zi(t="".concat(e,"[")).call(t,this.locale.link,"](http://url.com) ");case"image":return this.handleUpload("image"),e;case"video":return this.handleUpload("video"),e;case"audio":return this.handleUpload("audio"),e;case"table":return this.subBubbleTableMenu.dom.style.left=this.subMenu.dom.style.left,this.subBubbleTableMenu.dom.style.top=this.subMenu.dom.style.top,void this.subBubbleTableMenu.show((function(t,n){var r,A,i,o=Hc(" Header |").call(" Header |",n),s=Hc(" ------ |").call(" ------ |",n),l="\n|".concat(Hc(" Sample |").call(" Sample |",n)),c=zi(r=zi(A=zi(i="".concat(e,"\n\n|")).call(i,o,"\n|")).call(A,s)).call(r,Hc(l).call(l,t),"\n\n");a(c)}));case"line-table":return zi(n="".concat(e,"\n\n")).call(n,["| :line: {x,y} | a | b | c |","| :-: | :-: | :-: | :-: |","| x | 1 | 2 | 3 |","| y | 2 | 4 | 6 |","| z | 7 | 5 | 3 |"].join("\n"),"\n\n");case"bar-table":return zi(r="".concat(e,"\n\n")).call(r,["| :bar: {x,y} | a | b | c |","| :-: | :-: | :-: | :-: |","| x | 1 | 2 | 3 |","| y | 2 | 4 | 6 |","| z | 7 | 5 | 3 |"].join("\n"),"\n\n");case"headlessTable":return this.subBubbleTableMenu.dom.style.left=this.subMenu.dom.style.left,this.subBubbleTableMenu.dom.style.top=this.subMenu.dom.style.top,void this.subBubbleTableMenu.show((function(t,n){var r,A,i,o=zi(r=zi(A="".concat(e,"\n\n||")).call(A,Hc(" ~Header ||").call(" ~Header ||",n))).call(r,Hc(i="\n||".concat(Hc(" SampleT ||").call(" SampleT ||",n))).call(i,t-1),"\n\n");a(o)}));case"pdf":return this.handleUpload("pdf"),e;case"word":return this.handleUpload("word"),e;case"ruby":return/^\s*\{[\s\S]+\|[\s\S]+\}/.test(m)?m.replace(/^\s*\{\s*([\s\S]+?)\s*\|[\s\S]+\}\s*/gm,"$1"):zi(A=" { ".concat(m," | ")).call(A,Cl(i=this.editor.$cherry.options.callback.changeString2Pinyin(m)).call(i)," } ")}}}]),n}(cQ);function HQ(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var IQ=function(e){Bi(n,e);var t=HQ(n);function n(e){var r,A,i,o;return ui(this,n),(o=t.call(this,e)).setName("list","list"),o.subMenuConfig=[{iconName:"ol",name:"ol",onclick:eo(r=o.bindSubClick).call(r,gi(o),"1")},{iconName:"ul",name:"ul",onclick:eo(A=o.bindSubClick).call(A,gi(o),"2")},{iconName:"checklist",name:"checklist",onclick:eo(i=o.bindSubClick).call(i,gi(o),"3")}],o}return di(n,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"onClick",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",A=[null,"ol","ul","checklist"],i=mQ(this.editor.editor,e,"line",!0),o=vc(i.match(/^\n*/),1)[0],a=vc(i.match(/\n*$/),1)[0],s=A[r]?A[r]:r;return s&&/^(ol|ul|checklist)$/.test(s)?zi(t=zi(n="".concat(o)).call(n,Bu(i,s))).call(t,a):i}}]),n}(cQ);function MQ(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var _Q=function(e){Bi(n,e);var t=MQ(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("ol","ol"),r}return di(n,[{key:"onClick",value:function(e){var t,n,r=mQ(this.editor.editor,e,"line",!0)||"Item 1\n Item 1.1\nItem 2",A=vc(r.match(/^\n*/),1)[0],i=vc(r.match(/\n*$/),1)[0];return zi(t=zi(n="".concat(A)).call(n,Bu(r,"ol"))).call(t,i)}}]),n}(cQ);function DQ(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var OQ=function(e){Bi(n,e);var t=DQ(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("ul","ul"),r}return di(n,[{key:"onClick",value:function(e){var t,n,r=mQ(this.editor.editor,e,"line",!0)||"Item 1\n Item 1.1\nItem 2",A=vc(r.match(/^\n*/),1)[0],i=vc(r.match(/\n*$/),1)[0];return zi(t=zi(n="".concat(A)).call(n,Bu(r,"ul"))).call(t,i)}}]),n}(cQ);function NQ(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var RQ=function(e){Bi(n,e);var t=NQ(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("checklist","checklist"),r}return di(n,[{key:"onClick",value:function(e){var t,n,r=mQ(this.editor.editor,e,"line",!0)||"Item 1\n Item 1.1\nItem 2",A=vc(r.match(/^\n*/),1)[0],i=vc(r.match(/\n*$/),1)[0];return zi(t=zi(n="".concat(A)).call(n,Bu(r,"checklist"))).call(t,i)}}]),n}(cQ);function PQ(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}function KQ(e,t){return[e,"```mermaid",t,"```"].join("\n")}var $Q=["\tA[公司] --\x3e| 下 班 | B(菜市场)","\tB --\x3e C{看见
    卖西瓜的}","\tC --\x3e|Yes| D[买一个包子]","\tC --\x3e|No| E[买一斤包子]"].join("\n"),XQ=["\tA[Company] --\x3e| Finish work | B(Grocery Store)","\tB --\x3e C{See
    Watermelon Seller}","\tC --\x3e|Yes| D[Buy a bun]","\tC --\x3e|No| E[Buy a kilogram of buns]"].join("\n"),VQ={flow:["FlowChart",KQ("左右结构","graph LR\n".concat($Q)),KQ("上下结构","graph TD\n".concat($Q))].join("\n"),sequence:KQ("SequenceDiagram",["sequenceDiagram","autonumber","A--\x3eA: 文本1","A->>B: 文本2","loop 循环1","loop 循环2","A->B: 文本3","end","loop 循环3","B --\x3e>A: 文本4","end","B --\x3e> B: 文本5","end"].join("\n")),state:KQ("StateDiagram",["stateDiagram-v2","[*] --\x3e A","A --\x3e B","A --\x3e C","state A {"," \t[*] --\x3e D"," \tD --\x3e [*]","}","B --\x3e [*]","C --\x3e [*]"].join("\n")),class:KQ("ClassDiagram",["classDiagram","Base <|-- One","Base <|-- Two","Base : +String name","Base: +getName()","Base: +setName(String name)","class One{"," \t+String newName"," \t+getNewName()","}","class Two{"," \t-int id"," \t-getId()","}"].join("\n")),pie:KQ("PieChart",["pie","title 饼图",'"A" : 100','"B" : 80','"C" : 40','"D" : 30'].join("\n")),gantt:KQ("GanttChart",["gantt","\ttitle 敏捷研发流程","\tsection 迭代前","\t\t交互设计 :a1, 2020-03-01, 4d","\t\tUI设计 :after a1, 5d","\t\t需求评审 : 1d","\tsection 迭代中","\t\t详细设计 :a2, 2020-03-11, 2d","\t\t开发 :2020-03-15, 7d","\t\t测试 :2020-03-22, 5d","\tsection 迭代后","\t\t发布: 1d","\t\t验收: 2d","\t\t回顾: 1d"].join("\n"))},jQ={flow:["FlowChart",KQ("Left-right structure","graph LR\n".concat(XQ)),KQ("Top-bottom structure","graph TD\n".concat(XQ))].join("\n"),sequence:KQ("SequenceDiagram",["sequenceDiagram","autonumber","A--\x3eA: text1","A->>B: text2","loop loop1","loop loop2","A->B: text3","end","loop loop3","B --\x3e>A: text4","end","B --\x3e> B: text5","end"].join("\n")),state:KQ("StateDiagram",["stateDiagram-v2","[*] --\x3e A","A --\x3e B","A --\x3e C","state A {"," \t[*] --\x3e D"," \tD --\x3e [*]","}","B --\x3e [*]","C --\x3e [*]"].join("\n")),class:KQ("ClassDiagram",["classDiagram","Base <|-- One","Base <|-- Two","Base : +String name","Base: +getName()","Base: +setName(String name)","class One{"," \t+String newName"," \t+getNewName()","}","class Two{"," \t-int id"," \t-getId()","}"].join("\n")),pie:KQ("PieChart",["pie","title pie",'"A" : 100','"B" : 80','"C" : 40','"D" : 30'].join("\n")),gantt:KQ("GanttChart",["gantt","\ttitle work","\tsection session 1","\t\twork1 :a1, 2020-03-01, 4d","\t\twork2 :after a1, 5d","\t\twork3 : 1d","\tsection session 2","\t\twork4 :a2, 2020-03-11, 2d","\t\twork5 :2020-03-15, 7d","\t\twork6 :2020-03-22, 5d","\tsection session 3","\t\twork7: 1d","\t\twork8: 2d","\t\twork9: 1d"].join("\n"))},GQ=function(e){Bi(n,e);var t=PQ(n);function n(e){var r,A,i,o,a,s,l;return ui(this,n),(l=t.call(this,e)).setName("graph","insertChart"),l.noIcon=!0,l.localeName=e.options.locale,l.subMenuConfig=[{iconName:"insertFlow",name:"insertFlow",onclick:eo(r=l.bindSubClick).call(r,gi(l),"1")},{iconName:"insertSeq",name:"insertSeq",onclick:eo(A=l.bindSubClick).call(A,gi(l),"2")},{iconName:"insertState",name:"insertState",onclick:eo(i=l.bindSubClick).call(i,gi(l),"3")},{iconName:"insertClass",name:"insertClass",onclick:eo(o=l.bindSubClick).call(o,gi(l),"4")},{iconName:"insertPie",name:"insertPie",onclick:eo(a=l.bindSubClick).call(a,gi(l),"5")},{iconName:"insertGantt",name:"insertGantt",onclick:eo(s=l.bindSubClick).call(s,gi(l),"6")}],l}return di(n,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"onClick",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=[null,"flow","sequence","state","class","pie","gantt"],A=r[n]?r[n]:n;if(A&&/^(flow|sequence|state|class|pie|gantt)$/.test(A))return this.registerAfterClickCb((function(){t.setLessSelection("\n\n\n\n\n","\n\n")})),"\n\n".concat(this.$getSampleCode(A),"\n")}},{key:"$getSampleCode",value:function(e){var t,n;return"zh-CN"!==this.localeName&&"zh_CN"!==this.localeName?null===(n=jQ[e])||void 0===n?void 0:n.replace(/\t/g," "):null===(t=VQ[e])||void 0===t?void 0:t.replace(/\t/g," ")}}]),n}(cQ);function WQ(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var JQ=function(e){Bi(n,e);var t=WQ(n);function n(e){var r,A,i,o,a;return ui(this,n),(a=t.call(this,e)).setName("size","size"),a.subMenuConfig=[{name:"小",noIcon:!0,onclick:eo(r=a.bindSubClick).call(r,gi(a),"12")},{name:"中",noIcon:!0,onclick:eo(A=a.bindSubClick).call(A,gi(a),"17")},{name:"大",noIcon:!0,onclick:eo(i=a.bindSubClick).call(i,gi(a),"24")},{name:"特大",noIcon:!0,onclick:eo(o=a.bindSubClick).call(o,gi(a),"32")}],a.shortKeyMap={"Alt-1":"12","Alt-2":"17","Alt-3":"24","Alt-4":"32"},a}return di(n,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"_getFlagStr",value:function(e){for(var t=e.replace(/[^0-9]+([0-9])/g,"$1"),n="#",r=1;r1&&void 0!==arguments[1]?arguments[1]:"17",r=this.$getSizeByShortKey(n),A=mQ(this.editor.editor,e)||"字号";if(this.isSelections||this.$testIsSize(A)||this.getMoreSelection("!32 ","!",(function(){var e=t.editor.editor.getSelection();return!!t.$testIsSize(e)&&(A=e,!0)})),this.$testIsSize(A)){var i=!0,o=A.replace(/(^)(\s*)(![0-9]+)([^\n]+)(!)(\s*)($)/gm,(function(e,t,n,A,o,a,s,l){var c,u,f,h,d,g;return i=!!i&&A==="!".concat(r),zi(c=zi(u=zi(f=zi(h=zi(d=zi(g="".concat(t)).call(g,n,"!")).call(d,r)).call(h,o)).call(f,a)).call(u,s)).call(c,l)}));return i?A.replace(/(^)(\s*)(![0-9]+\s*)([^\n]+)(!)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb((function(){t.setLessSelection("!".concat(r," "),"!")})),o)}return this.registerAfterClickCb((function(){t.setLessSelection("!".concat(r," "),"!")})),A.replace(/(^)([^\n]+)($)/gm,"$1!".concat(r," $2!$3"))}},{key:"shortcutKeys",get:function(){return["Alt-1","Alt-2","Alt-3","Alt-4"]}}]),n}(cQ);function zQ(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var ZQ=function(e){Bi(n,e);var t=zQ(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("h1","h1"),r}return di(n,[{key:"$testIsHead",value:function(e){return/^\s*(#+)\s*.+/.test(e)}},{key:"onClick",value:function(e){var t=this,n=mQ(this.editor.editor,e,"line",!0)||this.locale.h1,r="#";if(this.isSelections||this.$testIsHead(n)||this.getMoreSelection("\n","",(function(){var e=t.editor.editor.getSelection(),r=t.$testIsHead(e);return r&&(n=e),r})),this.$testIsHead(n)){var A=!0,i=n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,(function(e,t,n,i,o){var a,s,l;return A=!!A&&1===n.length,zi(a=zi(s=zi(l="".concat(t)).call(l,r)).call(s,i)).call(a,o)}));return A?n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,"$1$4"):(this.registerAfterClickCb((function(){t.setLessSelection("".concat(r," "),"")})),i)}return this.registerAfterClickCb((function(){t.setLessSelection("".concat(r," "),"")})),n.replace(/(^)([\s]*)([^\n]+)($)/gm,"$1".concat(r," $3$4"))}}]),n}(cQ);function qQ(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var YQ=function(e){Bi(n,e);var t=qQ(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("h2","h2"),r}return di(n,[{key:"$testIsHead",value:function(e){return/^\s*(#+)\s*.+/.test(e)}},{key:"onClick",value:function(e){var t=this,n=mQ(this.editor.editor,e,"line",!0)||this.locale.h2,r="##";if(this.isSelections||this.$testIsHead(n)||this.getMoreSelection("\n","",(function(){var e=t.editor.editor.getSelection(),r=t.$testIsHead(e);return r&&(n=e),r})),this.$testIsHead(n)){var A=!0,i=n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,(function(e,t,n,i,o){var a,s,l;return A=!!A&&2===n.length,zi(a=zi(s=zi(l="".concat(t)).call(l,r)).call(s,i)).call(a,o)}));return A?n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,"$1$4"):(this.registerAfterClickCb((function(){t.setLessSelection("".concat(r," "),"")})),i)}return this.registerAfterClickCb((function(){t.setLessSelection("".concat(r," "),"")})),n.replace(/(^)([\s]*)([^\n]+)($)/gm,"$1".concat(r," $3$4"))}}]),n}(cQ);function ek(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var tk=function(e){Bi(n,e);var t=ek(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("h3","h3"),r}return di(n,[{key:"$testIsHead",value:function(e){return/^\s*(#+)\s*.+/.test(e)}},{key:"onClick",value:function(e){var t=this,n=mQ(this.editor.editor,e,"line",!0)||this.locale.h3,r="###";if(this.isSelections||this.$testIsHead(n)||this.getMoreSelection("\n","",(function(){var e=t.editor.editor.getSelection(),r=t.$testIsHead(e);return r&&(n=e),r})),this.$testIsHead(n)){var A=!0,i=n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,(function(e,t,n,i,o){var a,s,l;return A=!!A&&3===n.length,zi(a=zi(s=zi(l="".concat(t)).call(l,r)).call(s,i)).call(a,o)}));return A?n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,"$1$4"):(this.registerAfterClickCb((function(){t.setLessSelection("".concat(r," "),"")})),i)}return this.registerAfterClickCb((function(){t.setLessSelection("".concat(r," "),"")})),n.replace(/(^)([\s]*)([^\n]+)($)/gm,"$1".concat(r," $3$4"))}}]),n}(cQ);function nk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var rk=function(e){Bi(n,e);var t=nk(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("quote","blockquote"),r}return di(n,[{key:"onClick",value:function(e){var t,n=this,r=mQ(this.editor.editor,e,"line",!0)||this.locale.quote;return Yw(t=r.split("\n")).call(t,(function(e){return/^\s*>[^\n]+$/.exec(e)}))?r.replace(/(^\s*)>\s*([^\n]+)($)/gm,"$1$2$3").replace(/\n+$/,"\n\n"):(this.registerAfterClickCb((function(){n.setLessSelection("> ","")})),r.replace(/(^)([^\n]+)($)/gm,"$1> $2$3").replace(/\n+$/,"\n\n"))}}]),n}(cQ);function Ak(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var ik=function(e){Bi(n,e);var t=Ak(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("quickTable","table"),r}return di(n,[{key:"onClick",value:function(e){return"".concat(e,"| LeftAlignedCol | CenterAlignedCol | RightAlignedCol |\n")+"| :--- | :---: | ---: |\n| sampleText | sampleText | sampleText |\n| **left**Text | centered Text | *right*Text |\n"}}]),n}(cQ);function ok(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var ak=function(e){Bi(n,e);var t=ok(n);function n(e){var r;return ui(this,n),Gi(gi(r=t.call(this,e)),"$previewerHidden",!1),r.setName("previewClose","previewClose"),r.instanceId=e.instanceId,r.updateMarkdown=!1,r.attachEventListeners(),r}return di(n,[{key:"attachEventListeners",value:function(){var e=this;eu.on(this.instanceId,eu.Events.previewerClose,(function(){e.isHidden=!0})),eu.on(this.instanceId,eu.Events.previewerOpen,(function(){e.isHidden=!1}))}},{key:"isHidden",get:function(){return this.$previewerHidden},set:function(e){if(e!==this.$previewerHidden){var t=this.dom.querySelector("i");e?(t.classList.toggle("ch-icon-previewClose",!1),t.classList.toggle("ch-icon-preview",!0),t.title=this.locale.togglePreview):(t.classList.toggle("ch-icon-previewClose",!0),t.classList.toggle("ch-icon-preview",!1),t.title=this.locale.previewClose),this.$previewerHidden=e}}},{key:"onClick",value:function(){this.editor.previewer.isPreviewerHidden()?(this.editor.previewer.recoverPreviewer(!0),this.isHidden=!1):(this.editor.previewer.editOnly(!0),this.isHidden=!0)}}]),n}(cQ);function sk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var lk=function(e){Bi(n,e);var t=sk(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).updateMarkdown=!1,r.setName("fullScreen","fullscreen"),r}return di(n,[{key:"onClick",value:function(){for(var e=this.editor.options.editorDom.parentElement.classList,t=document.querySelector(".cherry-toolbar-fullscreen");t.firstChild;)t.removeChild(t.firstChild);if(e.contains("fullscreen")){var n=Wc("i","ch-icon ch-icon-fullscreen");t.appendChild(n),e.remove("fullscreen")}else{var r=Wc("i","ch-icon ch-icon-minscreen");t.appendChild(r),e.add("fullscreen")}this.editor.editor.refresh()}}]),n}(cQ);function ck(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var uk=function(e){Bi(n,e);var t=ck(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("undo","undo"),r}return di(n,[{key:"onClick",value:function(){this.editor.editor.undo()}}]),n}(cQ);function fk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var hk=function(e){Bi(n,e);var t=fk(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("redo","redo"),r}return di(n,[{key:"onClick",value:function(){this.editor.editor.redo()}}]),n}(cQ);function dk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var gk=function(e){Bi(n,e);var t=dk(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("code","code"),r}return di(n,[{key:"onClick",value:function(e){var t=this,n=e||"code...";return this.registerAfterClickCb((function(){t.setLessSelection("\n``` \n","\n```\n")})),"\n``` \n".concat(n,"\n```\n")}},{key:"shortcutKeys",get:function(){return["Ctrl-k"]}}]),n}(cQ);function pk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var mk=function(e){Bi(n,e);var t=pk(n);function n(e){var r,A,i,o,a,s,l,c,u;return ui(this,n),(u=t.call(this,e)).setName("codeTheme"),u.updateMarkdown=!1,u.noIcon=!0,u.subMenuConfig=[{noIcon:!0,name:"default",onclick:eo(r=u.bindSubClick).call(r,gi(u),"default")},{noIcon:!0,name:"dark",onclick:eo(A=u.bindSubClick).call(A,gi(u),"dark")},{noIcon:!0,name:"funky",onclick:eo(i=u.bindSubClick).call(i,gi(u),"funky")},{noIcon:!0,name:"okaidia",onclick:eo(o=u.bindSubClick).call(o,gi(u),"okaidia")},{noIcon:!0,name:"twilight",onclick:eo(a=u.bindSubClick).call(a,gi(u),"twilight")},{noIcon:!0,name:"coy",onclick:eo(s=u.bindSubClick).call(s,gi(u),"coy")},{noIcon:!0,name:"solarized light",onclick:eo(l=u.bindSubClick).call(l,gi(u),"solarized-light")},{noIcon:!0,name:"tomorrow night",onclick:eo(c=u.bindSubClick).call(c,gi(u),"tomorrow-night")}],u}return di(n,[{key:"onClick",value:function(){var e=arguments.length>1?arguments[1]:void 0;document.querySelector(".cherry").setAttribute("data-code-block-theme",e)}}]),n}(cQ);function vk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var yk=function(e){Bi(n,e);var t=vk(n);function n(e){var r,A,i,o,a;return ui(this,n),(a=t.call(this,e)).setName("export"),a.noIcon=!0,a.updateMarkdown=!1,a.subMenuConfig=[{noIcon:!0,name:"exportToPdf",onclick:eo(r=a.bindSubClick).call(r,gi(a),"pdf")},{noIcon:!0,name:"exportScreenshot",onclick:eo(A=a.bindSubClick).call(A,gi(a),"screenShot")},{noIcon:!0,name:"exportMarkdownFile",onclick:eo(i=a.bindSubClick).call(i,gi(a),"markdown")},{noIcon:!0,name:"exportHTMLFile",onclick:eo(o=a.bindSubClick).call(o,gi(a),"html")}],a}return di(n,[{key:"onClick",value:function(){var e=arguments.length>1?arguments[1]:void 0;document.querySelector(".cherry-dropdown[name=export]")&&(document.querySelector(".cherry-dropdown[name=export]").style.display="none");var t=this.$cherry.previewer,n="";n=t.isPreviewerHidden()?t.options.previewerCache.html:t.getDomContainer().innerHTML,n=t.lazyLoadImg.changeDataSrc2Src(n),t.refresh(n),t.export(e)}}]),n}(cQ);function wk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var Bk=function(e){Bi(n,e);var t=wk(n);function n(e){var r,A,i,o,a;ui(this,n),(a=t.call(this,e)).setName("settings","settings"),a.updateMarkdown=!1,a.engine=e.engine;var s=nf("classicBr")?rf():null===(r=a.engine.$cherry.options.engine.global)||void 0===r?void 0:r.classicBr,l=e.editor.options.defaultModel,c=s?"br":"normal",u=s?"classicBr":"normalBr",f="editOnly"===l?"preview":"previewClose",h="editOnly"===l?"togglePreview":"previewClose";return a.instanceId=e.instanceId,a.subMenuConfig=[{iconName:c,name:u,onclick:eo(A=a.bindSubClick).call(A,gi(a),"classicBr")},{iconName:f,name:h,onclick:eo(i=a.bindSubClick).call(i,gi(a),"previewClose")},{iconName:"",name:"hide",onclick:eo(o=a.bindSubClick).call(o,gi(a),"toggleToolbar")}],a.attachEventListeners(),a.shortcutKeyMaps=[{shortKey:"toggleToolbar",shortcutKey:"Ctrl-0"}],a}return di(n,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"bindSubClick",value:function(e,t,n,r){return n?this.onClick(t,e,r):this.onClick(t,e)}},{key:"togglePreviewBtn",value:function(e){var t=this,n=e?"previewClose":"preview",r=e?"previewClose":"togglePreview";if(this.subMenu){var A=document.querySelector('.cherry-dropdown[name="settings"]');if(A){var i=A.querySelector(".ch-icon-previewClose,.ch-icon-preview");i.classList.toggle("ch-icon-previewClose"),i.classList.toggle("ch-icon-preview"),i.title=this.locale[r],i.parentElement.innerHTML=i.parentElement.innerHTML.replace(/<\/i>.+$/,"".concat(this.locale[r]))}}else{var o;this.subMenuConfig=Zu(o=this.subMenuConfig).call(o,(function(e){var A;return"previewClose"===e.iconName||"preview"===e.iconName?{iconName:n,name:r,onclick:eo(A=t.bindSubClick).call(A,t,"previewClose")}:e}))}}},{key:"attachEventListeners",value:function(){var e=this;eu.on(this.instanceId,eu.Events.previewerClose,(function(){e.togglePreviewBtn(!1)})),eu.on(this.instanceId,eu.Events.previewerOpen,(function(){e.togglePreviewBtn(!0)}))}},{key:"onClick",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if("classicBr"===(n=this.matchShortcutKey(n))){var r,A=!rf();t=A,"undefined"!=typeof localStorage&&localStorage.setItem("cherry-classicBr",t?"true":"false"),this.engine.$cherry.options.engine.global.classicBr=A,ti(r=this.engine.hookCenter.hookList.paragraph).call(r,(function(e){e.classicBr=A}));var i=this.$cherry.wrapperDom.querySelector(".cherry-dropdown .ch-icon-normal");i=i||this.$cherry.wrapperDom.querySelector(".cherry-dropdown .ch-icon-br"),A?(i.classList.replace("ch-icon-normal","ch-icon-br"),i.parentElement.childNodes[1].textContent=this.locale.classicBr):(i.classList.replace("ch-icon-br","ch-icon-normal"),i.parentElement.childNodes[1].textContent=this.locale.normalBr),this.engine.$cherry.previewer.update(""),this.engine.$cherry.initText(this.engine.$cherry.editor.editor)}else"previewClose"===n?this.editor.previewer.isPreviewerHidden()?this.editor.previewer.recoverPreviewer(!0):this.editor.previewer.editOnly(!0):"toggleToolbar"===n&&this.toggleToolbar();return e}},{key:"matchShortcutKey",value:function(e){var t,n=ul(t=this.shortcutKeyMaps).call(t,(function(t){return t.shortcutKey===e}));return void 0!==n?n.shortKey:e}},{key:"toggleToolbar",value:function(){var e=this.engine.$cherry.wrapperDom;if(e instanceof HTMLDivElement){var t,n=this.engine.$cherry.toolbar.instanceId;yc(t=e.className).call(t,"cherry--no-toolbar")>-1?(e.classList.remove("cherry--no-toolbar"),eu.emit(n,eu.Events.toolbarShow)):(e.classList.add("cherry--no-toolbar"),eu.emit(n,eu.Events.toolbarHide))}}},{key:"shortcutKeys",get:function(){var e;return Zu(e=this.shortcutKeyMaps).call(e,(function(e){return e.shortcutKey}))}}]),n}(cQ);function bk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var Ck=function(e){Bi(n,e);var t=bk(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("underline","underline"),r}return di(n,[{key:"$testIsUnderline",value:function(e){return/^\s*(\/)[\s\S]+(\1)/.test(e)}},{key:"onClick",value:function(e){var t=this,n=e||this.locale.underline;return this.isSelections||this.$testIsUnderline(n)||this.getMoreSelection(" /","/ ",(function(){var e=t.editor.editor.getSelection(),r=t.$testIsUnderline(e);return r&&(n=e),r})),this.$testIsUnderline(n)?n.replace(/(^)(\s*)(\/)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb((function(){t.setLessSelection(" /","/ ")})),n.replace(/(^)([^\n]+)($)/gm,"$1 /$2/ $3"))}},{key:"shortcutKeys",get:function(){return["Ctrl-u"]}}]),n}(cQ);function Qk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var kk=function(e){Bi(n,e);var t=Qk(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("switchPreview"),r.instanceId=e.instanceId,r.attachEventListeners(),r}return di(n,[{key:"attachEventListeners",value:function(){var e=this;eu.on(this.instanceId,eu.Events.toolbarHide,(function(){e.dom.textContent=e.locale.switchEdit})),eu.on(this.instanceId,eu.Events.toolbarShow,(function(){e.dom.textContent=e.locale.switchPreview}))}},{key:"onClick",value:function(){this.editor.previewer.isPreviewerHidden()?(this.editor.previewer.previewOnly(),this.dom.parentElement.parentElement.classList.add("preview-only"),this.dom.textContent=this.locale.switchEdit):(this.editor.previewer.editOnly(!0),this.dom.parentElement.parentElement.classList.remove("preview-only"),this.dom.textContent=this.locale.switchPreview)}}]),n}(cQ);function Tk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var xk=function(e){Bi(n,e);var t=Tk(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("image","image"),r}return di(n,[{key:"onClick",value:function(e){var t,n,r,A=this;if(this.hasCacheOnce()){var i,o,a=this.getAndCleanCacheOnce(),s=a.name,l=a.url,c=a.params,u="](".concat(l,")");this.registerAfterClickCb((function(){A.setLessSelection("![",u)}));var f=c.name?c.name:s;return zi(i=zi(o="".concat("![").concat(f)).call(o,nu(c))).call(i,u)}var h=null!==(t=null===(n=this.$cherry.options)||void 0===n||null===(r=n.fileTypeLimitMap)||void 0===r?void 0:r.image)&&void 0!==t?t:"*";return tu(this.editor,"image",h,(function(e,t,n){A.setCacheOnce({name:e,url:t,params:n}),A.fire(null)})),this.updateMarkdown=!1,e}},{key:"shortcutKeys",get:function(){return["Ctrl-g"]}}]),n}(cQ);function Ek(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var Fk=function(e){Bi(n,e);var t=Ek(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("audio","video"),r}return di(n,[{key:"onClick",value:function(e){var t,n,r,A=this;if(this.hasCacheOnce()){var i,o,a=this.getAndCleanCacheOnce(),s=a.name,l=a.url,c=a.params,u="!audio[",f="](".concat(l,")");this.registerAfterClickCb((function(){A.setLessSelection(u,f)}));var h=c.name?c.name:s;return zi(i=zi(o="".concat(u).concat(h)).call(o,nu(c))).call(i,f)}var d=null!==(t=null===(n=this.$cherry.options)||void 0===n||null===(r=n.fileTypeLimitMap)||void 0===r?void 0:r.audio)&&void 0!==t?t:"*";return tu(this.editor,"audio",d,(function(e,t,n){A.setCacheOnce({name:e,url:t,params:n}),A.fire(null)})),this.updateMarkdown=!1,e}}]),n}(cQ);function Uk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var Sk=function(e){Bi(n,e);var t=Uk(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("video","video"),r}return di(n,[{key:"onClick",value:function(e){var t,n,r,A=this;if(this.hasCacheOnce()){var i,o,a,s=this.getAndCleanCacheOnce(),l=s.name,c=s.url,u=s.params,f="!video[",h=u.poster?zi(i="](".concat(c,"){poster=")).call(i,u.poster,"}"):"](".concat(c,")");this.registerAfterClickCb((function(){A.setLessSelection(f,h)}));var d=u.name?u.name:l;return zi(o=zi(a="".concat(f).concat(d)).call(a,nu(u))).call(o,h)}var g=null!==(t=null===(n=this.$cherry.options)||void 0===n||null===(r=n.fileTypeLimitMap)||void 0===r?void 0:r.video)&&void 0!==t?t:"*";return tu(this.editor,"video",g,(function(e,t,n){A.setCacheOnce({name:e,url:t,params:n}),A.fire(null)})),this.updateMarkdown=!1,e}}]),n}(cQ);function Lk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var Hk=function(e){Bi(n,e);var t=Lk(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("br","br"),r}return di(n,[{key:"onClick",value:function(e){return"".concat(e,"
    ")}}]),n}(cQ);function Ik(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var Mk=function(e){Bi(n,e);var t=Ik(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("hr","line"),r}return di(n,[{key:"onClick",value:function(e){return"".concat(e,"\n\n---\n")}}]),n}(cQ),_k=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ui(this,e),Gi(this,"formulaConfig",{toolbar:{title:"快捷工具",subCategory:{sqrt:{title:"根式角标",formulas:[{name:"根式 Radicals",img:"",latex:""},{name:"",img:'',latex:"\\sqrt[n]{x^{a}}"},{name:"上下标 Sub&Super",img:"",latex:""},{name:"",img:'',latex:"\\sideset{_1^2}{_3^4}X_a^b"}]},limit:{title:"极限对数",formulas:[{name:"极限 Limits",img:"",latex:""},{name:"",img:'',latex:"\n\\lim_{x \\to \\infty} a"},{name:"",img:'',latex:"\\log_{a}{b}"}]}}},template:{title:"公式模板",subCategory:{algebra:{title:"代数",formulas:[{name:"",img:'',latex:"\\sqrt{a^2+b^2}"},{name:"",img:'',latex:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{name:"",img:'',latex:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{name:"",img:'',latex:"\n\\left\\{\\begin{matrix}\n x=a + r\\text{cos}\\theta \\\\\n y=b + r\\text{sin}\\theta \n\\end{matrix}\\right."}]},array:{title:"矩阵",formulas:[{name:"",img:'',latex:"\n\\begin{pmatrix}\n 1 & 0 \\\\\n 0 & 1\n\\end{pmatrix}"},{name:"",img:'',latex:"\n\\begin{pmatrix}\n a_{11} & \\cdots & a_{1n} \\\\\n \\vdots & \\ddots & \\vdots \\\\\n a_{m1} & \\cdots & a_{mn}\n\\end{pmatrix}"},{name:"",img:'',latex:"\nA_{m\\times n}=\n\\begin{bmatrix}\n a_{11}& a_{12}& \\cdots & a_{1n} \\\\\n a_{21}& a_{22}& \\cdots & a_{2n} \\\\\n \\vdots & \\vdots & \\ddots & \\vdots \\\\\n a_{m1}& a_{m2}& \\cdots & a_{mn}\n\\end{bmatrix}\n=\\left [ a_{ij}\\right ]"},{name:"",img:'',latex:"\n\\mathbf{V}_1 \\times \\mathbf{V}_2 =\n\\begin{vmatrix}\n \\mathbf{i}& \\mathbf{j}& \\mathbf{k} \\\\\n \\frac{\\partial X}{\\partial u}& \\frac{\\partial Y}{\\partial u}& 0 \\\\\n \\frac{\\partial X}{\\partial v}& \\frac{\\partial Y}{\\partial v}& 0 \\\\\n\\end{vmatrix}"}]}}}}),Gi(this,"showLatexLive",!0),mn(t).length&&(this.formulaConfig=t.templateConfig||this.formulaConfig,this.showLatexLive=t.showLatexLive),this.init(),this.initEventListeners()}return di(e,[{key:"afterClick",value:function(e){}},{key:"generateBubbleFormulaHtmlStr",value:function(){var e,t,n=jw(this.formulaConfig||{}),r=Zu(n).call(n,(function(e,t){var n,r,A=vc(e,2),i=A[0],o=A[1].title;return zi(n=zi(r='
  • ')).call(n,o,"
  • ")})).join(""),A='
      '.concat(r,"
    "),i=Zu(n).call(n,(function(e,t){var n,r,A,i,o=vc(e,2),a=o[0],s=o[1],l=null===(n=jw((null==s?void 0:s.subCategory)||{}))||void 0===n?void 0:Zu(n).call(n,(function(e){var t,n,r,A,i,o,a=vc(e,2),s=a[0],l=a[1],c=null==l||null===(t=l.formulas)||void 0===t?void 0:Zu(t).call(t,(function(e){var t,n;if(""===e.latex)return'
    '.concat(e.name,"
    ");var r=e.img||"";return zi(t=zi(n='
    ')).call(t,r||e.name,"
    ")})).join(""),u=zi(n='
    ')).call(n,c,"
    "),f=zi(r='");return zi(A=zi(i=zi(o='
    ')).call(i,f)).call(A,u,"
    ")})).join("");return zi(r=zi(A=zi(i='
    ')).call(r,l,"
    ")})).join(""),o=this.showLatexLive?'
    查看更多:www.latexlive.com
    ':"";return zi(e=zi(t="".concat(A)).call(t,i)).call(e,o)}},{key:"init",value:function(){mn(this.formulaConfig).length&&(this.dom=document.createElement("div"),this.dom.className=["cherry-dropdown","cherry-insert-formula","cherry-insert-formula-wrappler"].join(" "),this.dom.innerHTML=this.generateBubbleFormulaHtmlStr(),this.dom.style.display="none")}},{key:"show",value:function(e){this.dom.style.removeProperty("display"),this.afterClick=e}},{key:"hide",value:function(){this.dom.style.display="none"}},{key:"isShow",value:function(){return"block"===this.dom.style.display}},{key:"isHide",value:function(){return"none"===this.dom.style.display}},{key:"initEventListeners",value:function(){var e,t,n,r=this;null===(e=this.dom.querySelector(".cherry-insert-formula-tabs"))||void 0===e||e.addEventListener("click",eo(t=this.handleClickFormulaTabs).call(t,this)),null===(n=this.dom.querySelectorAll(".cherry-insert-formula-categary__func-item"))||void 0===n||ti(n).call(n,(function(e){var t;return null==e?void 0:e.addEventListener("click",eo(t=r.handleClickFormulaSelect).call(t,r))}))}},{key:"handleClickFormulaTabs",value:function(e){e.preventDefault(),e.stopPropagation();var t=e.target;if(t instanceof HTMLLIElement||t instanceof HTMLSpanElement){var n=t instanceof HTMLSpanElement?t.parentElement:t,r=n.dataset.name,A=document.querySelector(".cherry-insert-formula-select[data-name=".concat(r,"]")),i=document.querySelector(".cherry-insert-formula-tab.active"),o=document.querySelector(".cherry-insert-formula-select.active");null==i||i.classList.remove("active"),null==o||o.classList.remove("active"),n.classList.add("active"),A.classList.add("active")}}},{key:"handleClickFormulaSelect",value:function(e){e.preventDefault(),e.stopPropagation();var t=e.target;if(t instanceof HTMLElement){var n=t.dataset.formulaCode,r=void 0===n?"":n;this.afterClick(r),this.hide()}}}]),e}();function Dk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var Ok=function(e){Bi(n,e);var t=Dk(n);function n(e){var r,A,i,o;return ui(this,n),(o=t.call(this,e)).setName("formula","insertFormula"),o.subBubbleFormulaMenu=new _k(null==e||null===(r=e.options)||void 0===r||null===(A=r.toolbars)||void 0===A||null===(i=A.config)||void 0===i?void 0:i.formula),e.editor.options.wrapperDom.appendChild(o.subBubbleFormulaMenu.dom),o.catchOnce="",o}return di(n,[{key:"onClick",value:function(e){var t=this;if(this.subBubbleFormulaMenu.isHide()||!this.hasCacheOnce()){var n=this.dom.getBoundingClientRect();return this.subBubbleFormulaMenu.dom.style.left="".concat(n.left+n.width,"px"),this.subBubbleFormulaMenu.dom.style.top="".concat(n.top+n.height,"px"),this.subBubbleFormulaMenu.show((function(n){var r,A,i=/\n/.test(n)?"".concat(/\n$/.test(e)?e:"".concat(e,"\n"),"$$"):"".concat(e," $ "),o=/\n/.test(n)?"\n$$ ":" $ ";t.registerAfterClickCb((function(){t.setLessSelection(i,o)}));var a=zi(r=zi(A="".concat(i)).call(A,n)).call(r,o);t.setCacheOnce(a),t.fire(null)})),this.updateMarkdown=!1,!1}return this.getAndCleanCacheOnce()}},{key:"shortcutKeys",get:function(){return["Ctrl-m"]}}]),n}(cQ);function Nk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var Rk=function(e){Bi(n,e);var t=Nk(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("link","link"),r}return di(n,[{key:"onClick",value:function(e){var t;if(/^http/.test(e))return zi(t="[".concat(this.locale.link,"](")).call(t,e,")");var n=e||this.locale.link;return"[".concat(n,"](http://url.com) ")}},{key:"shortcutKeys",get:function(){return["Ctrl-l"]}}]),n}(cQ);function Pk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var Kk=function(e){Bi(n,e);var t=Pk(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("table","table"),r.subBubbleTableMenu=new UQ({row:9,col:9}),e.editor.options.wrapperDom.appendChild(r.subBubbleTableMenu.dom),r.catchOnce="",r}return di(n,[{key:"onClick",value:function(e){var t=this;if("none"===this.subBubbleTableMenu.dom.style.display||!this.hasCacheOnce()){var n=this.dom.getBoundingClientRect();return this.subBubbleTableMenu.dom.style.left="".concat(n.left+n.width,"px"),this.subBubbleTableMenu.dom.style.top="".concat(n.top+n.height,"px"),this.subBubbleTableMenu.show((function(n,r){var A,i,o,a=Hc(" Header |").call(" Header |",r),s=Hc(" ------ |").call(" ------ |",r),l="\n|".concat(Hc(" Sample |").call(" Sample |",r)),c=zi(A=zi(i=zi(o="".concat(e,"\n\n|")).call(o,a,"\n|")).call(i,s)).call(A,Hc(l).call(l,n),"\n\n");t.setCacheOnce(c),t.fire(null)})),this.updateMarkdown=!1,!1}return this.getAndCleanCacheOnce()}}]),n}(cQ);function $k(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var Xk=function(e){Bi(n,e);var t=$k(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("toc","toc"),r}return di(n,[{key:"onClick",value:function(e){return"".concat(e,"\n\n[[toc]]\n")}}]),n}(cQ);function Vk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var jk=function(e){Bi(n,e);var t=Vk(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("lineTable","table"),r}return di(n,[{key:"onClick",value:function(e){var t;return zi(t="".concat(e,"\n\n")).call(t,["| :line: {x,y} | a | b | c |","| :-: | :-: | :-: | :-: |","| x | 1 | 2 | 3 |","| y | 2 | 4 | 6 |","| z | 7 | 5 | 3 |"].join("\n"),"\n\n")}}]),n}(cQ);function Gk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var Wk=function(e){Bi(n,e);var t=Gk(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("brTable","table"),r}return di(n,[{key:"onClick",value:function(e){var t;return zi(t="".concat(e,"\n\n")).call(t,["| :bar: {x,y} | a | b | c |","| :-: | :-: | :-: | :-: |","| x | 1 | 2 | 3 |","| y | 2 | 4 | 6 |","| z | 7 | 5 | 3 |"].join("\n"),"\n\n")}}]),n}(cQ);function Jk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var zk=function(e){Bi(n,e);var t=Jk(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("pdf","pdf"),r}return di(n,[{key:"onClick",value:function(e){var t,n,r,A=this;if(this.hasCacheOnce()){var i,o=this.getAndCleanCacheOnce(),a=o.name,s=o.url,l=o.params,c="](".concat(s,")");this.registerAfterClickCb((function(){A.setLessSelection("[",c)}));var u=l.name?l.name:a;return zi(i="".concat("[").concat(u)).call(i,c)}var f=null!==(t=null===(n=this.$cherry.options)||void 0===n||null===(r=n.fileTypeLimitMap)||void 0===r?void 0:r.pdf)&&void 0!==t?t:"*";return tu(this.editor,"pdf",f,(function(e,t,n){A.setCacheOnce({name:e,url:t,params:n}),A.fire(null)})),this.updateMarkdown=!1,e}}]),n}(cQ);function Zk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var qk=function(e){Bi(n,e);var t=Zk(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("file","phone"),r}return di(n,[{key:"onClick",value:function(e){var t,n,r,A=this;if(this.hasCacheOnce()){var i,o=this.getAndCleanCacheOnce(),a=o.name,s=o.url,l=o.params,c="](".concat(s,")");this.registerAfterClickCb((function(){A.setLessSelection("[",c)}));var u=l.name?l.name:a;return zi(i="".concat("[").concat(u)).call(i,c)}var f=null!==(t=null===(n=this.$cherry.options)||void 0===n||null===(r=n.fileTypeLimitMap)||void 0===r?void 0:r.file)&&void 0!==t?t:"*";return tu(this.editor,"file",f,(function(e,t,n){A.setCacheOnce({name:e,url:t,params:n}),A.fire(null)})),this.updateMarkdown=!1,e}}]),n}(cQ);function Yk(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var eT=function(e){Bi(n,e);var t=Yk(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("word","word"),r}return di(n,[{key:"onClick",value:function(e){var t,n,r,A=this;if(this.hasCacheOnce()){var i,o=this.getAndCleanCacheOnce(),a=o.name,s=o.url,l=o.params,c="](".concat(s,")");this.registerAfterClickCb((function(){A.setLessSelection("[",c)}));var u=l.name?l.name:a;return zi(i="".concat("[").concat(u)).call(i,c)}var f=null!==(t=null===(n=this.$cherry.options)||void 0===n||null===(r=n.fileTypeLimitMap)||void 0===r?void 0:r.word)&&void 0!==t?t:"*";return tu(this.editor,"word",f,(function(e,t,n){A.setCacheOnce({name:e,url:t,params:n}),A.fire(null)})),this.updateMarkdown=!1,e}}]),n}(cQ);function tT(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var nT=function(e){Bi(n,e);var t=tT(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("pinyin","pinyin"),r}return di(n,[{key:"$testIsRuby",value:function(e){return/^\s*\{[\s\S]+\|[\s\S]+\}/.test(e)}},{key:"onClick",value:function(e){var t,n,r=this,A=mQ(this.editor.editor,e)||"拼音";if(this.isSelections||this.$testIsRuby(A)||this.getMoreSelection(" { "," } ",(function(){var e=r.editor.editor.getSelection(),t=r.$testIsRuby(e);return t&&(A=e),t})),this.$testIsRuby(A))return A.replace(/^\s*\{\s*([\s\S]+?)\s*\|[\s\S]+\}\s*/gm,"$1");var i=Cl(t=this.editor.$cherry.options.callback.changeString2Pinyin(A)||"pin yin").call(t);return this.registerAfterClickCb((function(){r.setLessSelection(" { "," } ")})),zi(n=" { ".concat(A," | ")).call(n,i," } ")}}]),n}(cQ);function rT(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var AT=function(e){Bi(n,e);var t=rT(n);function n(e){var r,A;ui(this,n),(A=t.call(this,e)).setName("theme","insertChart"),A.subMenuConfig=[];var i=gi(A);return ti(r=e.options.theme).call(r,(function(e){var t;i.subMenuConfig.push({iconName:e.className,name:e.label,onclick:eo(t=i.bindSubClick).call(t,i,e.className)})})),A}return di(n,[{key:"onClick",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return of(this.$cherry,t),this.updateMarkdown=!1,""}}]),n}(cQ);function iT(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var oT=function(e){Bi(n,e);var t=iT(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("wordCount","wordCount"),r.noIcon=!0,r.countState=0,r.countEvent=new Event("count"),r}return di(n,[{key:"onClick",value:function(e){var t=this,n=document.querySelector(".cherry-toolbar-button.cherry-toolbar-wordCount");if(0===this.countState){n.addEventListener("count",(function(){var e=t.$cherry.getMarkdown(),r=t.wordCount(e),A=r.characters,i=r.words,o=r.paragraphs;1===t.countState?n.innerHTML="P ".concat(o):2===t.countState?n.innerHTML="W ".concat(i):n.innerHTML="C ".concat(A)}));var r=null;this.editor.editor.on("change",(function(){r&&clearTimeout(r),r=lo((function(){n.dispatchEvent(t.countEvent),r=null}),500)}))}return this.countState=(this.countState+1)%3+1,n.dispatchEvent(this.countEvent),e}},{key:"wordCount",value:function(e){var t,n,r=/[\u4e00-\u9fa5]|[\u3001\u3002\uff01\uff0c\uff1b\uff1a\u201c\u201d\u2018\u2019\u300a\u300b\u3008\u3009\u3010\u3011\u300e\u300f\u300c\u300d\uff08\uff09\u2014\u2026\u2013\uff0e]/g;return{characters:e.replace(/\n|\s/g,"").length,words:(e.match(r)||[]).length+AA(t=e.replace(r," ").split(/[\s\n]+/)).call(t,Boolean).length,paragraphs:AA(n=e.split(/\n{2,}/)).call(n,(function(e){return""!==Cl(e).call(e)})).length}}}]),n}(cQ);function aT(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var sT=function(e){Bi(n,e);var t=aT(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).previewer=e.previewer,r.updateMarkdown=!1,r.setName("mobilePreview","phone"),r}return di(n,[{key:"onClick",value:function(){this.previewer.removeScroll();var e=this.previewer.getDomContainer();this.previewer.isMobilePreview?e.parentNode.innerHTML=e.innerHTML:e.innerHTML="
    ".concat(e.innerHTML,"
    "),this.previewer.isMobilePreview=!this.previewer.isMobilePreview,this.previewer.bindScroll()}}]),n}(cQ),lT=eC;function cT(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var uT=function(e){Bi(r,e);var t,n=cT(r);function r(e){var t;return ui(this,r),(t=n.call(this,e)).previewer=e.previewer,t.isLoading=!1,t.updateMarkdown=!1,t.setName("copy","copy"),t}return di(r,[{key:"adaptWechat",value:(t=AC(hC.mark((function e(t){var n,r,A,i,o;return hC.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=/(
    .*?<\/figure>)/g,r=t.replace(n,(function(e,t,n,r){var A,i;return zi(A=zi(i="".concat(t,"p")).call(i,n,"p")).call(A,r)})),A=/()/g,i=[],r.replace(A,(function(e,t,n){i.push(fT(n))})),e.next=7,lT.all(i);case 7:return o=e.sent,e.abrupt("return",r.replace(A,(function(e,t,n,r){return t+o.shift()+r})));case 9:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})},{key:"getStyleFromSheets",value:function(e){var t,n=AA(t=Kl(document.styleSheets)).call(t,(function(t){var n;return t.cssRules[0]&&yc(n=t.cssRules[0].cssText).call(n,e)>-1}));return"")}},{key:"computeStyle",value:function(){return{mathStyle:this.getStyleFromSheets("mjx-container"),echartStyle:"",cherryStyle:this.getStyleFromSheets("cherry")}}},{key:"toggleLoading",value:function(){this.isLoading?document.querySelector(".icon-loading").outerHTML=''):document.querySelector(".ch-icon-copy").outerHTML='
    ';this.isLoading=!this.isLoading}},{key:"onClick",value:function(e){var t=this;this.toggleLoading();var n=document.querySelector(".cherry").getAttribute("data-inline-code-theme"),r=document.querySelector(".cherry").getAttribute("data-code-block-theme"),A=this.computeStyle(),i=A.mathStyle,o=A.echartStyle,a=A.cherryStyle,s=this.previewer.isPreviewerHidden()?this.previewer.options.previewerCache.html:this.previewer.getValue();this.adaptWechat(s).then((function(e){var A,s,l;dC(zi(A=zi(s=zi(l="".concat(i+o+a,'\n
    \n
    ')).call(A,e,"
    \n
    ")),t.toggleLoading()}))}}]),r}(cQ);function fT(e,t,n){return new lT((function(t){var r=document.createElement("CANVAS"),A=r.getContext("2d"),i=new Image;i.crossOrigin="Anonymous",i.onload=function(){r.height=i.height,r.width=i.width,A.drawImage(i,0,0);var e=r.toDataURL(n||"image/png");t(e),r=null},i.src=e}))}function hT(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var dT=function(e){Bi(n,e);var t=hT(n);function n(e){var r,A,i,o,a,s;return ui(this,n),(s=t.call(this,e)).setName("panel","tips"),s.panelRule=bu().reg,s.subMenuConfig=[{iconName:"tips",name:"tips",onclick:eo(r=s.bindSubClick).call(r,gi(s),"primary")},{iconName:"info",name:"info",onclick:eo(A=s.bindSubClick).call(A,gi(s),"info")},{iconName:"warning",name:"warning",onclick:eo(i=s.bindSubClick).call(i,gi(s),"warning")},{iconName:"danger",name:"danger",onclick:eo(o=s.bindSubClick).call(o,gi(s),"danger")},{iconName:"success",name:"success",onclick:eo(a=s.bindSubClick).call(a,gi(s),"success")}],s}return di(n,[{key:"$getNameFromStr",value:function(e){var t=!1;return this.panelRule.lastIndex=0,e.replace(this.panelRule,(function(e,n,r,A){var i=/\s/.test(Cl(r).call(r))?Cl(r).call(r).replace(/\s.*$/,""):r;return t=i?Cl(i).call(i).toLowerCase():"",e})),t}},{key:"$getTitle",value:function(e){return this.panelRule.lastIndex=0,e.replace(this.panelRule,(function(e,t,n,r){var A=Cl(n).call(n);return/\s/.test(A)?A.replace(/[^\s]+\s/,""):""})),""}},{key:"onClick",value:function(e){var t,n,r=this,A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=mQ(this.editor.editor,e,"line",!0)||"内容",o=this.$getNameFromStr(i),a=this.$getTitle(i);return!1===o&&this.getMoreSelection("::: ","\n",(function(){var e=r.editor.editor.getSelection(),t=r.$getNameFromStr(e);return!1!==t&&(i=e,o=t,a=r.$getTitle(e)),!1!==t})),!1!==o?o===A?(this.panelRule.lastIndex=0,i.replace(this.panelRule,(function(e,t,n,r){var A,i=Cl(n).call(n),o=/\s/.test(i)?i.replace(/[^\s]+\s/,""):"";return zi(A="".concat(o,"\n")).call(A,r)}))):(this.registerAfterClickCb((function(){r.setLessSelection("::: ","\n")})),this.panelRule.lastIndex=0,i.replace(this.panelRule,(function(e,t,n,r){var i,o,a=Cl(n).call(n),s=/\s/.test(a)?a.replace(/[^\s]+\s/,""):"";return zi(i=zi(o="::: ".concat(A," ")).call(o,s,"\n")).call(i,r.replace(/\n+$/,""),"\n:::")}))):(this.registerAfterClickCb((function(){r.setLessSelection("::: ","\n")})),i=i.replace(/^\n+/,""),/\n/.test(i)?a||(a=i.replace(/\n[\w\W]+$/,""),i=i.replace(/^[^\n]+\n/,"")):a=a||"标题",zi(t=zi(n="::: ".concat(A," ")).call(n,a,"\n")).call(t,i,"\n:::").replace(/\n{2,}:::/g,"\n:::"))}}]),n}(cQ);function gT(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var pT=function(e){Bi(n,e);var t=gT(n);function n(e){var r,A,i,o,a,s,l;ui(this,n),(l=t.call(this,e)).setName("justify","justify"),l.panelRule=bu().reg;var c=l.$cherry.locale;return l.subMenuConfig=[{iconName:"justifyLeft",name:null!==(r=null==c?void 0:c.justifyLeft)&&void 0!==r?r:"左对齐",onclick:eo(A=l.bindSubClick).call(A,gi(l),"left")},{iconName:"justifyCenter",name:null!==(i=null==c?void 0:c.justifyCenter)&&void 0!==i?i:"居中",onclick:eo(o=l.bindSubClick).call(o,gi(l),"center")},{iconName:"justifyRight",name:null!==(a=null==c?void 0:c.justifyRight)&&void 0!==a?a:"右对齐",onclick:eo(s=l.bindSubClick).call(s,gi(l),"right")}],l}return di(n,[{key:"$getTitle",value:function(){return" "}}]),n}(dT);function mT(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var vT=function(e){Bi(n,e);var t=mT(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("detail","insertFlow"),r.detailRule=Cu().reg,r}return di(n,[{key:"onClick",value:function(e){var t,n=this,r=mQ(this.editor.editor,e,"line",!0)||"点击展开更多\n内容\n++- 默认展开\n内容\n++ 默认收起\n内容";if(this.detailRule.lastIndex=0,this.detailRule.test(r)||this.getMoreSelection("+++ ","\n",(function(){var e=n.editor.editor.getSelection();n.detailRule.lastIndex=0;var t=n.detailRule.test(e);return!1!==t&&(r=e),!1!==t})),this.detailRule.lastIndex=0,this.detailRule.test(r))return this.detailRule.lastIndex=0,r.replace(this.detailRule,(function(e,t,n,r,A){var i;return zi(i="".concat(r,"\n")).call(i,A)}));(r=r.replace(/^\s+/,""),/\n/.test(r))||(r=zi(t="".concat(r,"\n")).call(t,r));return this.registerAfterClickCb((function(){n.setLessSelection("+++ ","\n")})),"+++ ".concat(r,"\n+++").replace(/\n{2,}\+\+\+/g,"\n+++")}}]),n}(cQ);function yT(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var wT=function(e){Bi(n,e);var t=yT(n);function n(e){var r;return ui(this,n),(r=t.call(this,e)).setName("draw.io","draw.io"),r.noIcon=!0,r.drawioIframeUrl=e.options.drawioIframeUrl,r}return di(n,[{key:"onClick",value:function(e){var t=this;if(!this.drawioIframeUrl)return e;if(this.hasCacheOnce()){var n,r=this.getAndCleanCacheOnce(),A=r.xmlData,i=r.base64,o=zi(n="](".concat(i,"){data-type=drawio data-xml=")).call(n,encodeURI(A),"}");return this.registerAfterClickCb((function(){t.setLessSelection("![",o)})),"".concat("![","在预览区点击图片重新编辑draw.io").concat(o)}return BC(this.drawioIframeUrl,"",(function(e){t.setCacheOnce(e),t.fire(null)})),this.updateMarkdown=!1,e}}]),n}(cQ),BT={bold:fQ,italic:dQ,"|":pQ,strikethrough:yQ,sub:BQ,sup:CQ,header:EQ,insert:LQ,list:IQ,ol:_Q,ul:OQ,checklist:RQ,graph:GQ,size:JQ,h1:ZQ,h2:YQ,h3:tk,color:kQ,quote:rk,quickTable:ik,togglePreview:ak,code:gk,codeTheme:mk,export:yk,settings:Bk,fullScreen:lk,mobilePreview:sT,copy:uT,undo:uk,redo:hk,underline:Ck,switchModel:kk,image:xk,audio:Fk,video:Sk,br:Hk,hr:Mk,formula:Ok,link:Rk,table:Kk,toc:Xk,lineTable:jk,barTable:Wk,pdf:zk,word:eT,ruby:nT,theme:AT,file:qk,panel:dT,justify:pT,detail:vT,drawIo:wT,wordCount:oT},bT=function(){function e(t){ui(this,e),this.toolbar=t,this.hooks={},this.allMenusName=[],this.level1MenusName=[],this.level2MenusName={},this.init()}return di(e,[{key:"$newMenu",value:function(e){if(!this.hooks[e]){var t=this.toolbar.options,n=t.$cherry,r=t.customMenu;BT[e]?(this.allMenusName.push(e),this.hooks[e]=new BT[e](n)):null!=r&&r[e]&&(this.allMenusName.push(e),this.hooks[e]=new r[e](n))}}},{key:"init",value:function(){var e=this,t=this.toolbar.options.buttonConfig;ti(t).call(t,(function(t){if("string"==typeof t)e.level1MenusName.push(t),e.$newMenu(t);else if("object"===Ki(t)){var n=mn(t);if(1===n.length){var r,A=vc(n,1)[0];e.level1MenusName.push(A),e.$newMenu(A),e.level2MenusName[A]=t[A],ti(r=t[A]).call(r,(function(t){e.$newMenu(t)}))}}}))}}]),e}(),CT=function(){function e(t){ui(this,e),Gi(this,"toolbarHandlers",{}),this.menus={},this.shortcutKeyMap={},this.subMenus={},this.options={dom:document.createElement("div"),buttonConfig:["bold"],customMenu:[]},nl(this.options,t),this.$cherry=this.options.$cherry,this.instanceId=this.$cherry.instanceId,this.menus=new bT(this),this.drawMenus(),this.collectShortcutKey(),this.collectToolbarHandler(),this.init()}return di(e,[{key:"init",value:function(){var e=this;eu.on(this.instanceId,eu.Events.cleanAllSubMenus,(function(){return e.hideAllSubMenu()}))}},{key:"previewOnly",value:function(){this.options.dom.classList.add("preview-only"),this.$cherry.wrapperDom.classList.add("cherry--no-toolbar"),eu.emit(this.instanceId,eu.Events.toolbarHide)}},{key:"showToolbar",value:function(){this.options.dom.classList.remove("preview-only"),this.$cherry.wrapperDom.classList.remove("cherry--no-toolbar"),eu.emit(this.instanceId,eu.Events.toolbarShow)}},{key:"isHasLevel2Menu",value:function(e){return this.menus.level2MenusName[e]}},{key:"isHasConfigMenu",value:function(e){return this.menus.hooks[e].subMenuConfig||[]}},{key:"isHasSubMenu",value:function(e){return Boolean(this.isHasLevel2Menu(e)||this.isHasConfigMenu(e).length>0)}},{key:"drawMenus",value:function(){var e,t=this,n=document.createDocumentFragment();ti(e=this.menus.level1MenusName).call(e,(function(e){var r=t.menus.hooks[e].createBtn();"object"===("undefined"==typeof window?"undefined":Ki(window))&&"onpointerup"in window?(r.addEventListener("pointerdown",(function(){t.isPointerDown=!0}),!1),r.addEventListener("pointerup",(function(n){t.isPointerDown&&t.onClick(n,e),t.isPointerDown=!1}),!1)):r.addEventListener("click",(function(n){t.onClick(n,e)}),!1),t.isHasSubMenu(e)&&r.classList.add("cherry-toolbar-dropdown"),n.appendChild(r)})),this.appendMenusToDom(n)}},{key:"appendMenusToDom",value:function(e){var t=Wc("div","toolbar-left");t.appendChild(e),this.options.dom.appendChild(t)}},{key:"setSubMenuPosition",value:function(e,t){var n=e.getMenuPosition();t.style.left="".concat(n.left+n.width/2,"px"),t.style.top="".concat(n.top+n.height,"px"),t.style.position=e.positionModel}},{key:"drawSubMenus",value:function(e){var t=this;this.subMenus[e]=Wc("div","cherry-dropdown",{name:e}),this.setSubMenuPosition(this.menus.hooks[e],this.subMenus[e]);var n=this.isHasLevel2Menu(e);n&&ti(n).call(n,(function(n){var r=t.menus.hooks[n];if(void 0!==r&&"function"==typeof r.createBtn){var A=r.createBtn(!0);r.dom=r.dom?r.dom:t.menus.hooks[e].dom,A.addEventListener("click",(function(e){return t.onClick(e,n,!0)}),!1),t.subMenus[e].appendChild(A)}}));var r=this.isHasConfigMenu(e);r.length>0&&ti(r).call(r,(function(n){var r=t.menus.hooks[e].createSubBtnByConfig(n);r.addEventListener("click",(function(){return t.hideAllSubMenu()}),!1),t.subMenus[e].appendChild(r)})),this.$cherry.wrapperDom.appendChild(this.subMenus[e])}},{key:"onClick",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.menus.hooks[t];r&&(this.isHasSubMenu(t)&&!n?this.toggleSubMenu(t):(this.hideAllSubMenu(),r.fire(e,t)))}},{key:"toggleSubMenu",value:function(e){if(!this.subMenus[e])return this.hideAllSubMenu(),this.drawSubMenus(e),void(this.subMenus[e].style.display="block");"none"===this.subMenus[e].style.display?(this.hideAllSubMenu(),this.subMenus[e].style.display="block",this.setSubMenuPosition(this.menus.hooks[e],this.subMenus[e])):this.subMenus[e].style.display="none"}},{key:"hideAllSubMenu",value:function(){var e;ti(e=this.$cherry.wrapperDom.querySelectorAll(".cherry-dropdown")).call(e,(function(e){e.style.display="none"}))}},{key:"collectMenuInfo",value:function(e){this.toolbarHandlers=nl({},this.toolbarHandlers,e.toolbarHandlers),this.menus.hooks=nl({},e.menus.hooks,this.menus.hooks),(!this.options.shortcutKey||mn(this.options.shortcutKey).length<=0)&&(this.shortcutKeyMap=nl({},this.shortcutKeyMap,e.shortcutKeyMap))}},{key:"collectShortcutKey",value:function(){var e,t=this;this.options.shortcutKey&&mn(this.options.shortcutKey).length>0?this.shortcutKeyMap=this.options.shortcutKey:ti(e=this.menus.allMenusName).call(e,(function(e){var n;null===(n=t.menus.hooks[e].shortcutKeys)||void 0===n||ti(n).call(n,(function(n){t.shortcutKeyMap[n]=e}))}))}},{key:"collectToolbarHandler",value:function(){var e,t=this;this.toolbarHandlers=Od(e=this.menus.allMenusName).call(e,(function(e,n){var r=t.menus.hooks[n];return r?(e[n]=function(e,t){"function"==typeof t&&Yc.warn("MenuBase#onClick param callback is no longer supported. Please register the callback via MenuBase#registerAfterClickCb instead."),r.fire.call(r,void 0,e)},e):e}),{})}},{key:"matchShortcutKey",value:function(e){return!!this.shortcutKeyMap[this.getCurrentKey(e)]}},{key:"fireShortcutKey",value:function(e){var t,n=this.getCurrentKey(e);null===(t=this.menus.hooks[this.shortcutKeyMap[n]])||void 0===t||t.fire(e,n)}},{key:"getCurrentKey",value:function(e){var t="";return e.ctrlKey&&(t+="Ctrl-"),e.altKey&&(t+="Alt-"),e.metaKey&&aQ&&(t+="Ctrl-"),e.shiftKey&&(t+="Shift-"),e.key&&"shift"!==e.key.toLowerCase()&&(t+=e.key.toLowerCase()),t}}]),e}();function QT(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var kT=function(e){Bi(n,e);var t=QT(n);function n(){return ui(this,n),t.apply(this,arguments)}return di(n,[{key:"visible",get:function(){var e=window.getComputedStyle(this.bubbleDom);return"none"!==e.display&&"hidden"!==e.visibility},set:function(e){var t=window.getComputedStyle(this.bubbleDom);e?"none"===t.display&&(this.bubbleDom.style.display=n.displayType):"none"!==t.display&&(this.bubbleDom.style.display="none")}},{key:"init",value:function(){this.options.editor=this.$cherry.editor,this.addSelectionChangeListener(),this.bubbleDom=this.options.dom,this.editorDom=this.options.editor.getEditorDom(),this.initBubbleDom(),this.editorDom.querySelector(".CodeMirror").appendChild(this.bubbleDom)}},{key:"appendMenusToDom",value:function(e){this.options.dom.appendChild(e)}},{key:"getScrollTop",value:function(){return this.options.editor.editor.getScrollInfo().top}},{key:"updatePositionWhenScroll",value:function(){this.bubbleDom.style.display===n.displayType&&(this.bubbleDom.style.marginTop="".concat(Xc(this.bubbleDom.dataset.scrollTop)-this.getScrollTop(),"px"))}},{key:"showBubble",value:function(e,t){this.visible||(this.visible=!0,this.bubbleDom.style.marginTop="0",this.bubbleDom.dataset.scrollTop=String(this.getScrollTop()));var n=this.editorDom.querySelector(".CodeMirror-lines").firstChild.getBoundingClientRect(),r=this.editorDom.getBoundingClientRect(),A=n.left-r.left,i=n.width+A,o=e;o<2*this.bubbleDom.offsetHeight?(o+=this.bubbleDom.offsetHeight-this.bubbleTop.getBoundingClientRect().height,this.bubbleTop.style.display="block",this.bubbleBottom.style.display="none"):(o-=this.bubbleDom.offsetHeight+2*this.bubbleBottom.getBoundingClientRect().height,this.bubbleTop.style.display="none",this.bubbleBottom.style.display="block"),this.bubbleDom.style.top="".concat(o,"px");var a=t-this.bubbleDom.offsetWidth/2;ai?(a=i-this.bubbleDom.offsetWidth,this.$setBubbleCursorPosition("".concat(t-a,"px"))):this.$setBubbleCursorPosition("50%"),this.bubbleDom.style.left="".concat(Math.max(20,a),"px")}},{key:"hideBubble",value:function(){this.visible=!1}},{key:"$setBubbleCursorPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"50%";if("50%"===e)this.bubbleTop.style.left="50%",this.bubbleBottom.style.left="50%";else{var t=Xc(e)<10?"10px":e;this.bubbleTop.style.left=t,this.bubbleBottom.style.left=t}}},{key:"initBubbleDom",value:function(){var e=document.createElement("div");e.className="cherry-bubble-top";var t=document.createElement("div");t.className="cherry-bubble-bottom",this.bubbleTop=e,this.bubbleBottom=t,this.bubbleDom.appendChild(e),this.bubbleDom.appendChild(t),this.visible=!1}},{key:"getBubbleDom",value:function(){return this.bubbleDom}},{key:"addSelectionChangeListener",value:function(){var e=this;this.options.editor.addListener("change",(function(t){e.hideBubble()})),this.options.editor.addListener("refresh",(function(t){e.hideBubble()})),this.options.editor.addListener("scroll",(function(t){e.updatePositionWhenScroll()})),this.options.editor.addListener("beforeSelectionChange",(function(t,n){if("*mouse"!==n.origin&&(null!==n.origin||void 0===n.origin))return!0;if(!n.ranges[0])return!0;var r=1e6*n.ranges[0].anchor.line+n.ranges[0].anchor.ch,A=1e6*n.ranges[0].head.line+n.ranges[0].head.ch,i="asc";r>A&&(i="desc"),lo((function(){if(t.getSelections().join("").length<=0)e.hideBubble();else{var n=t.getWrapperElement().getElementsByClassName("CodeMirror-selected"),r=e.editorDom.getBoundingClientRect(),A=0,o=0;if("object"!==Ki(n)||n.length<=0)e.hideBubble();else{for(var a=0;a=o&&(o=l,A=s.left-r.left+s.width/2):(l<=o||o<=0)&&(o=l,A=s.left-r.left+s.width/2)}e.showBubble(o,A)}}}),10)}))}}]),n}(CT);function TT(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}Gi(kT,"displayType","flex");var xT=function(e){Bi(n,e);var t=TT(n);function n(){return ui(this,n),t.apply(this,arguments)}return di(n,[{key:"init",value:function(){this.editor=this.$cherry.editor,this.editorDom=this.editor.getEditorDom(),this.editorDom.querySelector(".CodeMirror-scroll").appendChild(this.options.dom),this.initAction()}},{key:"appendMenusToDom",value:function(e){this.options.dom.appendChild(e)}},{key:"initAction",value:function(){var e=this;this.editor.addListener("cursorActivity",(function(t,n){e.cursorActivity(n,t)})),this.editor.addListener("update",(function(t,n){e.cursorActivity(n,t)})),this.editor.addListener("refresh",(function(t,n){lo((function(){e.cursorActivity(n,t)}),0)}))}},{key:"update",value:function(e,t){var n=t.getCursor();if(this.isHidden(n.line,t))return this.options.dom.style.display="none",!1;this.options.dom.style.display="inline-block"}},{key:"cursorActivity",value:function(e,t){var n=t.getCursor(),r=document.querySelector(".cherry-editor .CodeMirror-lines");if(!r)return!1;var A=getComputedStyle(r),i=Xc(A.paddingLeft),o=Xc(A.paddingTop);if(this.isHidden(n.line,t))return this.options.dom.style.display="none",!1;this.options.dom.style.display="inline-block",this.options.dom.style.left="".concat(i,"px"),this.options.dom.style.top="".concat(this.getLineHeight(n.line,t)+o,"px")}},{key:"isHidden",value:function(e,t){return t.getSelections().length>1||(t.getSelection().length>0||!!t.getLine(e))}},{key:"getLineHeight",value:function(e,t){var n=0;return t.getDoc().eachLine(0,e,(function(e){n+=e.height})),n}}]),n}(CT);function ET(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var FT=function(e){Bi(n,e);var t=ET(n);function n(){return ui(this,n),t.apply(this,arguments)}return di(n,[{key:"appendMenusToDom",value:function(e){var t=Wc("div","toolbar-right");t.appendChild(e),this.options.dom.appendChild(t)}}]),n}(CT),UT=function(){function e(t){var n,r;ui(this,e),this.$cherry=t.$cherry,this.editor=t.$cherry.editor.editor,this.tocStr="",this.updateLocationHash=null===(n=t.updateLocationHash)||void 0===n||n,this.defaultModel=null!==(r=t.defaultModel)&&void 0!==r?r:"full",this.init()}return di(e,[{key:"init",value:function(){var e=this;this.drawDom(),this.timer=lo((function(){e.updateTocList()}),300),this.editor.on("change",(function(t,n){clearTimeout(e.timer),e.timer=lo((function(){e.updateTocList(),e.$switchModel(e.model)}),300)})),this.$switchModel(this.getModelFromLocalStorage())}},{key:"getModelFromLocalStorage",value:function(){return"undefined"==typeof localStorage?this.defaultModel:localStorage.getItem("cherry-toc-model")||this.defaultModel}},{key:"setModelToLocalStorage",value:function(e){"undefined"!=typeof localStorage&&localStorage.setItem("cherry-toc-model",e)}},{key:"drawDom",value:function(){var e=Wc("div","cherry-flex-toc cherry-flex-toc__pure"),t=Wc("div","cherry-toc-head"),n=Wc("span","cherry-toc-title");n.append(this.$cherry.locale.toc);var r=Wc("i","ch-icon ch-icon-chevronsRight"),A=Wc("i","ch-icon ch-icon-chevronsLeft");this.tocClose=r,this.tocOpen=A,t.appendChild(n),t.appendChild(r),t.appendChild(A),e.appendChild(t);var i=Wc("div","cherry-toc-list");this.tocListDom=i,e.appendChild(i),this.tocDom=e,this.$cherry.wrapperDom.appendChild(e),this.bindClickEvent()}},{key:"bindClickEvent",value:function(){var e=this;this.tocDom.addEventListener("click",(function(t){var n=e.$getClosestNode(t.target,"A");if(!1!==n&&/cherry-toc-one-a/.test(n.className)){var r=n.dataset,A=r.id,i=r.index;if("hide"===e.$cherry.status.previewer){for(var o=e.$cherry.editor.editor.getSearchCursor(/(?:^|\n)\n*((?:[ \t\u00a0]*#{1,6}).+?|(?:[ \t\u00a0]*.+)\n(?:[ \t\u00a0]*[=]+|[-]+))(?=$|\n)/g),a=0;a<=i;a++)o.findNext();var s=o.from();e.$cherry.editor.scrollToLineNum(s.line,s.line+1,0)}else{var l,c=e.$cherry.previewer.getDomContainer(),u=null!==(l=c.querySelectorAll("h1,h2,h3,h4,h5,h6,h7,h8")[i])&&void 0!==l&&l;if(!1!==u){var f=c.scrollTop+u.getBoundingClientRect().y-c.getBoundingClientRect().y-20;c.scrollTo({top:f,left:0,behavior:"smooth"})}}e.updateLocationHash&&(location.href=A)}})),this.tocClose.addEventListener("click",(function(t){e.$switchModel("pure"),e.setModelToLocalStorage("pure")})),this.tocOpen.addEventListener("click",(function(t){e.$switchModel("full"),e.setModelToLocalStorage("full")})),window&&window.addEventListener("resize",(function(){e.$switchModel(e.model)})),this.editor.on("scroll",(function(t,n){e.updateTocList(!0)})),this.$cherry.previewer.getDomContainer().addEventListener("scroll",(function(){e.updateTocList(!0)}))}},{key:"$switchModel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pure";this.model=e;var t="cherry-flex-toc__".concat(e);this.tocDom.classList.contains(t)||(this.tocDom.classList.remove("cherry-flex-toc__pure"),this.tocDom.classList.remove("cherry-flex-toc__full"),this.tocDom.classList.add(t));var n=this.tocListDom.querySelectorAll(".cherry-toc-one-a");if(n.length>0){var r=28;if("pure"===e){var A=this.tocListDom.getBoundingClientRect().height,i=Math.floor((A-3*n.length)/n.length);r=i<3?3:i>10?10:i}for(var o=0;o0&&void 0!==arguments[0]&&arguments[0]));else{var e=this.$cherry.getToc(),t="";if(Zu(e).call(e,(function(e){return t+=e.text,e})),t=sd(t),this.tocStr!==t){this.tocStr=t;var n="",r=0;Zu(e).call(e,(function(e){var t,A,i,o,a=e.text.replace(//g,""),s=a.replace(/<[^>]+?>/g,"");return n+=zi(t=zi(A=zi(i=zi(o='')).call(t,a,""),r+=1,e})),this.tocListDom.innerHTML=n}}if("hide"===this.$cherry.status.previewer);else{for(var A,i=this.$cherry.previewer.getDomContainer().getBoundingClientRect().y,o=this.$cherry.previewer.getDomContainer().querySelectorAll("h1,h2,h3,h4,h5,h6,h7,h8"),a=0;ai+20)break}a=a>0?a-1:a,ti(A=this.tocListDom.querySelectorAll(".cherry-toc-one-a")).call(A,(function(e,t){t===a?e.classList.add("current"):e.classList.remove("current")}))}}}]),e}();function ST(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ji(e);if(t){var A=ji(this).constructor;n=un(r,arguments,A)}else n=r.apply(this,arguments);return $i(this,n)}}var LT=function(e){Bi(n,e);var t=ST(n);function n(){return ui(this,n),t.apply(this,arguments)}return di(n,[{key:"appendMenusToDom",value:function(e){this.options.dom.appendChild(e)}}]),n}(CT),HT=-1,IT=1,MT=0;function _T(e,t,n,r){if(e===t)return e?[[MT,e]]:[];if(null!=n){var A=function(e,t,n){var r="number"==typeof n?{index:n,length:0}:n.oldRange,A="number"==typeof n?null:n.newRange,i=e.length,o=t.length;if(0===r.length&&(null===A||0===A.length)){var a=r.index,s=e.slice(0,a),l=e.slice(a),c=A?A.index:null,u=a+o-i;if((null===c||c===u)&&!(u<0||u>o)){var f=t.slice(0,u);if((g=t.slice(u))===l){var h=Math.min(a,u);if((m=s.slice(0,h))===(y=f.slice(0,h)))return VT(m,s.slice(h),f.slice(h),l)}}if(null===c||c===a){var d=a,g=(f=t.slice(0,d),t.slice(d));if(f===s){var p=Math.min(i-d,o-d);if((v=l.slice(l.length-p))===(w=g.slice(g.length-p)))return VT(s,l.slice(0,l.length-p),g.slice(0,g.length-p),v)}}}if(r.length>0&&A&&0===A.length){var m=e.slice(0,r.index),v=e.slice(r.index+r.length);if(!(o<(h=m.length)+(p=v.length))){var y=t.slice(0,h),w=t.slice(o-p);if(m===y&&v===w)return VT(m,e.slice(h,i-p),t.slice(h,o-p),v)}}return null}(e,t,n);if(A)return A}var i=OT(e,t),o=e.substring(0,i);i=NT(e=e.substring(i),t=t.substring(i));var a=e.substring(e.length-i),s=function(e,t){var n;if(!e)return[[IT,t]];if(!t)return[[HT,e]];var r=e.length>t.length?e:t,A=e.length>t.length?t:e,i=r.indexOf(A);if(-1!==i)return n=[[IT,r.substring(0,i)],[MT,A],[IT,r.substring(i+A.length)]],e.length>t.length&&(n[0][0]=n[2][0]=HT),n;if(1===A.length)return[[HT,e],[IT,t]];var o=function(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length=e.length?[r,A,i,o,l]:null}var i,o,a,s,l,c=A(n,r,Math.ceil(n.length/4)),u=A(n,r,Math.ceil(n.length/2));if(!c&&!u)return null;i=u?c&&c[4].length>u[4].length?c:u:c;e.length>t.length?(o=i[0],a=i[1],s=i[2],l=i[3]):(s=i[0],l=i[1],o=i[2],a=i[3]);var f=i[4];return[o,a,s,l,f]}(e,t);if(o){var a=o[0],s=o[1],l=o[2],c=o[3],u=o[4],f=_T(a,l),h=_T(s,c);return f.concat([[MT,u]],h)}return function(e,t){for(var n=e.length,r=t.length,A=Math.ceil((n+r)/2),i=A,o=2*A,a=new Array(o),s=new Array(o),l=0;ln)h+=2;else if(y>r)f+=2;else if(u){if((b=i+c-m)>=0&&b=(B=n-s[b]))return DT(e,t,Q,y)}}for(var w=-p+d;w<=p-g;w+=2){for(var B,b=i+w,C=(B=w===-p||w!==p&&s[b-1]n)g+=2;else if(C>r)d+=2;else if(!u){if((v=i+c-w)>=0&&v=(B=n-B))return DT(e,t,Q,y)}}}}return[[HT,e],[IT,t]]}(e,t)}(e=e.substring(0,e.length-i),t=t.substring(0,t.length-i));return o&&s.unshift([MT,o]),a&&s.push([MT,a]),RT(s,r),s}function DT(e,t,n,r){var A=e.substring(0,n),i=t.substring(0,r),o=e.substring(n),a=t.substring(r),s=_T(A,i),l=_T(o,a);return s.concat(l)}function OT(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),A=r,i=0;n=0&&XT(e[s][1])){var l=e[s][1].slice(-1);if(e[s][1]=e[s][1].slice(0,-1),o=l+o,a=l+a,!e[s][1]){e.splice(s,1),r--;var c=s-1;e[c]&&e[c][0]===IT&&(i++,a=e[c][1]+a,c--),e[c]&&e[c][0]===HT&&(A++,o=e[c][1]+o,c--),s=c}}if($T(e[r][1])){l=e[r][1].charAt(0);e[r][1]=e[r][1].slice(1),o+=l,a+=l}}if(r0||a.length>0){o.length>0&&a.length>0&&(0!==(n=OT(a,o))&&(s>=0?e[s][1]+=a.substring(0,n):(e.splice(0,0,[MT,a.substring(0,n)]),r++),a=a.substring(n),o=o.substring(n)),0!==(n=NT(a,o))&&(e[r][1]=a.substring(a.length-n)+e[r][1],a=a.substring(0,a.length-n),o=o.substring(0,o.length-n)));var u=i+A;0===o.length&&0===a.length?(e.splice(r-u,u),r-=u):0===o.length?(e.splice(r-u,u,[IT,a]),r=r-u+1):0===a.length?(e.splice(r-u,u,[HT,o]),r=r-u+1):(e.splice(r-u,u,[HT,o],[IT,a]),r=r-u+2)}0!==r&&e[r-1][0]===MT?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,i=0,A=0,o="",a=""}""===e[e.length-1][1]&&e.pop();var f=!1;for(r=1;r=55296&&e<=56319}function KT(e){return e>=56320&&e<=57343}function $T(e){return KT(e.charCodeAt(0))}function XT(e){return PT(e.charCodeAt(e.length-1))}function VT(e,t,n,r){return XT(e)||$T(r)?null:function(e){for(var t=[],n=0;n0&&t.push(e[n]);return t}([[MT,e],[HT,t],[IT,n],[MT,r]])}function jT(e,t,n){return _T(e,t,n,!0)}jT.INSERT=IT,jT.DELETE=HT,jT.EQUAL=MT;var GT=jT;var WT=function(e,t){for(var n=-1,r=null==e?0:e.length;++n1?r-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:{};return ui(this,r),(e=t===Vu.PAR?n.call(this,{needCache:!!o.needCache,defaultCache:o.defaultCache}):n.call(this)).config=A.config,$i(e)}return di(r,[{key:"beforeMakeHtml",value:function(){for(var e,t,n=arguments.length,A=new Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:"edit&preview"){case"edit&preview":this.previewer&&(this.previewer.editOnly(!0),this.previewer.recoverPreviewer()),this.toolbar&&this.toolbar.showToolbar(),this.wrapperDom.classList.remove("cherry--no-toolbar");break;case"editOnly":this.previewer.isPreviewerHidden()||this.previewer.editOnly(!0),this.toolbar&&this.toolbar.showToolbar(),this.wrapperDom.classList.remove("cherry--no-toolbar");break;case"previewOnly":this.previewer.previewOnly(),this.toolbar&&this.toolbar.previewOnly(),this.wrapperDom.classList.add("cherry--no-toolbar")}}},{key:"getInstanceId",value:function(){return this.instanceId}},{key:"getStatus",value:function(){return this.status}},{key:"getValue",value:function(){return this.editor.editor.getValue()}},{key:"getMarkdown",value:function(){return this.getValue()}},{key:"getCodeMirror",value:function(){return this.editor.editor}},{key:"getHtml",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.previewer.getValue(e)}},{key:"getPreviewer",value:function(){return this.previewer}},{key:"getToc",value:function(){var e=this.getHtml(),t=[];return e.replace(/(.+?)<\/h[0-6]>/g,(function(e,n,r,A){return t.push({level:+n,id:r,text:A.replace(//,"")}),e})),t}},{key:"setValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.editor.storeDocumentScroll(),!1===t)return this.editor.editor.setValue(e);var n=this.editor.editor,r=this.getValue(),A=function(e,t,n){for(var r=GT(t,n),A=e,i=e,o=0;o1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];n&&this.editor.editor.setSelection({line:n[0],ch:n[1]},{line:n[0],ch:n[1]}),this.editor.editor.replaceSelection(e,t?"around":"end"),r&&this.editor.editor.focus()}},{key:"insertValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return this.insert(e,t,n,r)}},{key:"refreshPreviewer",value:function(){try{var e=this.getValue(),t=this.engine.makeHtml(e);this.previewer.refresh(t)}catch(e){throw new Ch(e)}}},{key:"setMarkdown",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.setValue(e,t)}},{key:"createWrapper",value:function(){var e="dark"===this.options.toolbars.theme?"dark":"",t=this.options.engine.syntax.inlineCode.theme,n=this.options.engine.syntax.codeBlock.theme;"dark"===n?n="tomorrow-night":"light"===n&&(n="solarized-light");var r=Wc("div",["cherry","clearfix",Af(!0)].join(" "),{"data-toolbarTheme":e,"data-inlineCodeTheme":t,"data-codeBlockTheme":n});return this.wrapperDom=r,r}},{key:"createToolbar",value:function(){var e=Wc("div","cherry-toolbar");return this.toolbarContainer=e,this.toolbar=new CT({dom:e,$cherry:this,buttonConfig:this.options.toolbars.toolbar,customMenu:this.options.toolbars.customMenu,shortcutKey:this.options.toolbars.shortcutKey}),this.toolbar}},{key:"createToolbarRight",value:function(){return this.toolbarRight=new FT({dom:this.toolbarContainer,$cherry:this,buttonConfig:this.options.toolbars.toolbarRight,customMenu:this.options.toolbars.customMenu}),this.toolbar.collectMenuInfo(this.toolbarRight),this.toolbarRight}},{key:"createSidebar",value:function(e){if(this.options.toolbars.sidebar){wh(this.options.toolbars.sidebar,Array);var t="dark"===this.options.toolbars.theme?"dark":"",n=Wc("div","cherry-sidebar ".concat(t));this.sidebar=new LT({dom:n,$cherry:this,buttonConfig:this.options.toolbars.sidebar,customMenu:this.options.toolbars.customMenu}),this.toolbar.collectMenuInfo(this.sidebar),e.appendChild(this.sidebar.options.dom)}}},{key:"createFloatMenu",value:function(){if(this.options.toolbars.float){var e=Wc("div","cherry-floatmenu");wh(this.options.toolbars.float,Array),this.floatMenu=new xT({dom:e,$cherry:this,buttonConfig:this.options.toolbars.float,customMenu:this.options.toolbars.customMenu}),this.toolbar.collectMenuInfo(this.floatMenu)}}},{key:"createBubble",value:function(){if(this.options.toolbars.bubble){var e=Wc("div","cherry-bubble");wh(this.options.toolbars.bubble,Array),this.bubble=new kT({dom:e,$cherry:this,buttonConfig:this.options.toolbars.bubble,customMenu:this.options.toolbars.customMenu,engine:this.engine}),this.toolbar.collectMenuInfo(this.bubble)}}},{key:"createEditor",value:function(){var e,t,n,r,A=Wc("textarea","",{id:null!==(e=this.options.editor.id)&&void 0!==e?e:"code",name:null!==(t=this.options.editor.name)&&void 0!==t?t:"code"});A.textContent=this.options.value;var i=Wc("div","cherry-editor");return i.appendChild(A),this.editor=new Uu(function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"pdf",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.previewer.export(e,t)}},{key:"setTheme",value:function(){of(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default")}},{key:"setWritingStyle",value:function(e){this.editor.setWritingStyle(e)}}]),n}(AE);Gi(aE,"initialized",!1),Gi(aE,"config",{defaults:qx}),window&&(window.Cherry=aE);var sE=aE;e.MenuHookBase=cQ,e.SyntaxHookBase=ju,e.default=sE,Object.defineProperty(e,"__esModule",{value:!0})})); \ No newline at end of file diff --git a/dist/cherry-markdown.css b/dist/cherry-markdown.css index 9a53c6a0..e30921e5 100644 --- a/dist/cherry-markdown.css +++ b/dist/cherry-markdown.css @@ -1,3 +1,5098 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:55b5c2646147a9536e5a428a45a4f03615f0fe48e2b95cc40dfb6b6ed39a4527 -size 161549 +@charset "UTF-8"; +/* BASICS */ +.CodeMirror { + /* Set height, width, borders, and global font properties here */ + font-family: monospace; + height: 300px; + color: black; + direction: ltr; +} + +/* PADDING */ +.CodeMirror-lines { + padding: 4px 0; /* Vertical padding around content */ +} + +.CodeMirror pre.CodeMirror-line, +.CodeMirror pre.CodeMirror-line-like { + padding: 0 4px; /* Horizontal padding of content */ +} + +.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler { + background-color: white; /* The little square between H and V scrollbars */ +} + +/* GUTTER */ +.CodeMirror-gutters { + border-right: 1px solid #ddd; + background-color: #f7f7f7; + white-space: nowrap; +} + +.CodeMirror-linenumber { + padding: 0 3px 0 5px; + min-width: 20px; + text-align: right; + color: #999; + white-space: nowrap; +} + +.CodeMirror-guttermarker { + color: black; +} + +.CodeMirror-guttermarker-subtle { + color: #999; +} + +/* CURSOR */ +.CodeMirror-cursor { + border-left: 1px solid black; + border-right: none; + width: 0; +} + +/* Shown when moving in bi-directional text */ +.CodeMirror div.CodeMirror-secondarycursor { + border-left: 1px solid silver; +} + +.cm-fat-cursor .CodeMirror-cursor { + width: auto; + border: 0 !important; + background: #7e7; +} + +.cm-fat-cursor div.CodeMirror-cursors { + z-index: 1; +} + +.cm-fat-cursor-mark { + background-color: rgba(20, 255, 20, 0.5); + -webkit-animation: blink 1.06s steps(1) infinite; + -moz-animation: blink 1.06s steps(1) infinite; + animation: blink 1.06s steps(1) infinite; +} + +.cm-animate-fat-cursor { + width: auto; + border: 0; + -webkit-animation: blink 1.06s steps(1) infinite; + -moz-animation: blink 1.06s steps(1) infinite; + animation: blink 1.06s steps(1) infinite; + background-color: #7e7; +} + +@-moz-keyframes blink { + 50% { + background-color: transparent; + } +} +@-webkit-keyframes blink { + 50% { + background-color: transparent; + } +} +@keyframes blink { + 50% { + background-color: transparent; + } +} +/* Can style cursor different in overwrite (non-insert) mode */ +.cm-tab { + display: inline-block; + text-decoration: inherit; +} + +.CodeMirror-rulers { + position: absolute; + left: 0; + right: 0; + top: -50px; + bottom: 0; + overflow: hidden; +} + +.CodeMirror-ruler { + border-left: 1px solid #ccc; + top: 0; + bottom: 0; + position: absolute; +} + +/* DEFAULT THEME */ +.cm-s-default .cm-header { + color: blue; +} + +.cm-s-default .cm-quote { + color: #090; +} + +.cm-negative { + color: #d44; +} + +.cm-positive { + color: #292; +} + +.cm-header, .cm-strong { + font-weight: bold; +} + +.cm-em { + font-style: italic; +} + +.cm-link { + text-decoration: underline; +} + +.cm-strikethrough { + text-decoration: line-through; +} + +.cm-s-default .cm-keyword { + color: #708; +} + +.cm-s-default .cm-atom { + color: #219; +} + +.cm-s-default .cm-number { + color: #164; +} + +.cm-s-default .cm-def { + color: #00f; +} + +.cm-s-default .cm-variable-2 { + color: #05a; +} + +.cm-s-default .cm-variable-3, .cm-s-default .cm-type { + color: #085; +} + +.cm-s-default .cm-comment { + color: #a50; +} + +.cm-s-default .cm-string { + color: #a11; +} + +.cm-s-default .cm-string-2 { + color: #f50; +} + +.cm-s-default .cm-meta { + color: #555; +} + +.cm-s-default .cm-qualifier { + color: #555; +} + +.cm-s-default .cm-builtin { + color: #30a; +} + +.cm-s-default .cm-bracket { + color: #997; +} + +.cm-s-default .cm-tag { + color: #170; +} + +.cm-s-default .cm-attribute { + color: #00c; +} + +.cm-s-default .cm-hr { + color: #999; +} + +.cm-s-default .cm-link { + color: #00c; +} + +.cm-s-default .cm-error { + color: #f00; +} + +.cm-invalidchar { + color: #f00; +} + +.CodeMirror-composing { + border-bottom: 2px solid; +} + +/* Default styles for common addons */ +div.CodeMirror span.CodeMirror-matchingbracket { + color: #0b0; +} + +div.CodeMirror span.CodeMirror-nonmatchingbracket { + color: #a22; +} + +.CodeMirror-matchingtag { + background: rgba(255, 150, 0, 0.3); +} + +.CodeMirror-activeline-background { + background: #e8f2ff; +} + +/* STOP */ +/* The rest of this file contains styles related to the mechanics of + the editor. You probably shouldn't touch them. */ +.CodeMirror { + position: relative; + overflow: hidden; + background: white; +} + +.CodeMirror-scroll { + overflow: scroll !important; /* Things will break if this is overridden */ + /* 50px is the magic margin used to hide the element's real scrollbars */ + /* See overflow: hidden in .CodeMirror */ + margin-bottom: -50px; + margin-right: -50px; + padding-bottom: 50px; + height: 100%; + outline: none; /* Prevent dragging from highlighting the element */ + position: relative; +} + +.CodeMirror-sizer { + position: relative; + border-right: 50px solid transparent; +} + +/* The fake, visible scrollbars. Used to force redraw during scrolling + before actual scrolling happens, thus preventing shaking and + flickering artifacts. */ +.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler { + position: absolute; + z-index: 6; + display: none; + outline: none; +} + +.CodeMirror-vscrollbar { + right: 0; + top: 0; + overflow-x: hidden; + overflow-y: scroll; +} + +.CodeMirror-hscrollbar { + bottom: 0; + left: 0; + overflow-y: hidden; + overflow-x: scroll; +} + +.CodeMirror-scrollbar-filler { + right: 0; + bottom: 0; +} + +.CodeMirror-gutter-filler { + left: 0; + bottom: 0; +} + +.CodeMirror-gutters { + position: absolute; + left: 0; + top: 0; + min-height: 100%; + z-index: 3; +} + +.CodeMirror-gutter { + white-space: normal; + height: 100%; + display: inline-block; + vertical-align: top; + margin-bottom: -50px; +} + +.CodeMirror-gutter-wrapper { + position: absolute; + z-index: 4; + background: none !important; + border: none !important; +} + +.CodeMirror-gutter-background { + position: absolute; + top: 0; + bottom: 0; + z-index: 4; +} + +.CodeMirror-gutter-elt { + position: absolute; + cursor: default; + z-index: 4; +} + +.CodeMirror-gutter-wrapper ::selection { + background-color: transparent; +} + +.CodeMirror-gutter-wrapper ::-moz-selection { + background-color: transparent; +} + +.CodeMirror-lines { + cursor: text; + min-height: 1px; /* prevents collapsing before first draw */ +} + +.CodeMirror pre.CodeMirror-line, +.CodeMirror pre.CodeMirror-line-like { + /* Reset some styles that the rest of the page might have set */ + -moz-border-radius: 0; + -webkit-border-radius: 0; + border-radius: 0; + border-width: 0; + background: transparent; + font-family: inherit; + font-size: inherit; + margin: 0; + white-space: pre; + word-wrap: normal; + line-height: inherit; + color: inherit; + z-index: 2; + position: relative; + overflow: visible; + -webkit-tap-highlight-color: transparent; + -webkit-font-variant-ligatures: contextual; + font-variant-ligatures: contextual; +} + +.CodeMirror-wrap pre.CodeMirror-line, +.CodeMirror-wrap pre.CodeMirror-line-like { + word-wrap: break-word; + white-space: pre-wrap; + word-break: normal; +} + +.CodeMirror-linebackground { + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + z-index: 0; +} + +.CodeMirror-linewidget { + position: relative; + z-index: 2; + padding: 0.1px; /* Force widget margins to stay inside of the container */ +} + +.CodeMirror-rtl pre { + direction: rtl; +} + +.CodeMirror-code { + outline: none; +} + +/* Force content-box sizing for the elements where we expect it */ +.CodeMirror-scroll, +.CodeMirror-sizer, +.CodeMirror-gutter, +.CodeMirror-gutters, +.CodeMirror-linenumber { + -moz-box-sizing: content-box; + box-sizing: content-box; +} + +.CodeMirror-measure { + position: absolute; + width: 100%; + height: 0; + overflow: hidden; + visibility: hidden; +} + +.CodeMirror-cursor { + position: absolute; + pointer-events: none; +} + +.CodeMirror-measure pre { + position: static; +} + +div.CodeMirror-cursors { + visibility: hidden; + position: relative; + z-index: 3; +} + +div.CodeMirror-dragcursors { + visibility: visible; +} + +.CodeMirror-focused div.CodeMirror-cursors { + visibility: visible; +} + +.CodeMirror-selected { + background: #d9d9d9; +} + +.CodeMirror-focused .CodeMirror-selected { + background: #d7d4f0; +} + +.CodeMirror-crosshair { + cursor: crosshair; +} + +.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { + background: #d7d4f0; +} + +.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { + background: #d7d4f0; +} + +.cm-searching { + background-color: #ffa; + background-color: rgba(255, 255, 0, 0.4); +} + +/* Used to force a border model for a node */ +.cm-force-border { + padding-right: 0.1px; +} + +@media print { + /* Hide the cursor when printing */ + .CodeMirror div.CodeMirror-cursors { + visibility: hidden; + } +} +/* See issue #2901 */ +.cm-tab-wrap-hack:after { + content: ""; +} + +/* Help users use markselection to safely style text background */ +span.CodeMirror-selectedtext { + background: none; +} + +.cherry *::-webkit-scrollbar { + height: 7px; + width: 7px; + background: transparent; +} +.cherry *::-webkit-scrollbar:hover { + background: rgba(128, 128, 128, 0.1); +} +.cherry *::-webkit-scrollbar-thumb { + background: #d3d7da; + -webkit-border-radius: 6px; +} +.cherry *::-webkit-scrollbar-thumb:hover { + background: rgba(0, 0, 0, 0.6); +} +.cherry *::-webkit-scrollbar-corner { + background: transparent; +} + +@font-face { + font-family: "ch-icon"; + src: url("./fonts/ch-icon.eot"); + src: url("./fonts/ch-icon.eot?#iefix") format("eot"), url("./fonts/ch-icon.woff2") format("woff2"), url("./fonts/ch-icon.woff") format("woff"), url("./fonts/ch-icon.ttf") format("truetype"), url("./fonts/ch-icon.svg#ch-icon") format("svg"); + font-weight: normal; + font-style: normal; +} +.ch-icon:before { + display: inline-block; + font-family: "ch-icon"; + font-style: normal; + font-weight: normal; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.ch-icon-list:before { + content: "\ea03"; +} + +.ch-icon-check:before { + content: "\ea04"; +} + +.ch-icon-square:before { + content: "\ea09"; +} + +.ch-icon-bold:before { + content: "\ea0a"; +} + +.ch-icon-code:before { + content: "\ea0b"; +} + +.ch-icon-color:before { + content: "\ea0c"; +} + +.ch-icon-header:before { + content: "\ea0d"; +} + +.ch-icon-image:before { + content: "\ea0e"; +} + +.ch-icon-italic:before { + content: "\ea0f"; +} + +.ch-icon-link:before { + content: "\ea10"; +} + +.ch-icon-ol:before { + content: "\ea11"; +} + +.ch-icon-size:before { + content: "\ea12"; +} + +.ch-icon-strike:before { + content: "\ea13"; +} + +.ch-icon-table:before { + content: "\ea14"; +} + +.ch-icon-ul:before { + content: "\ea15"; +} + +.ch-icon-underline:before { + content: "\ea16"; +} + +.ch-icon-word:before { + content: "\ea17"; +} + +.ch-icon-blockquote:before { + content: "\ea18"; +} + +.ch-icon-font:before { + content: "\ea19"; +} + +.ch-icon-insertClass:before { + content: "\ea1f"; +} + +.ch-icon-insertFlow:before { + content: "\ea20"; +} + +.ch-icon-insertFormula:before { + content: "\ea21"; +} + +.ch-icon-insertGantt:before { + content: "\ea22"; +} + +.ch-icon-insertGraph:before { + content: "\ea23"; +} + +.ch-icon-insertPie:before { + content: "\ea24"; +} + +.ch-icon-insertSeq:before { + content: "\ea25"; +} + +.ch-icon-insertState:before { + content: "\ea26"; +} + +.ch-icon-line:before { + content: "\ea27"; +} + +.ch-icon-preview:before { + content: "\ea28"; +} + +.ch-icon-previewClose:before { + content: "\ea29"; +} + +.ch-icon-toc:before { + content: "\ea2a"; +} + +.ch-icon-sub:before { + content: "\ea2d"; +} + +.ch-icon-sup:before { + content: "\ea2e"; +} + +.ch-icon-h1:before { + content: "\ea2f"; +} + +.ch-icon-h2:before { + content: "\ea30"; +} + +.ch-icon-h3:before { + content: "\ea31"; +} + +.ch-icon-h4:before { + content: "\ea32"; +} + +.ch-icon-h5:before { + content: "\ea33"; +} + +.ch-icon-h6:before { + content: "\ea34"; +} + +.ch-icon-video:before { + content: "\ea35"; +} + +.ch-icon-insert:before { + content: "\ea36"; +} + +.ch-icon-little_table:before { + content: "\ea37"; +} + +.ch-icon-pdf:before { + content: "\ea38"; +} + +.ch-icon-checklist:before { + content: "\ea39"; +} + +.ch-icon-close:before { + content: "\ea40"; +} + +.ch-icon-fullscreen:before { + content: "\ea41"; +} + +.ch-icon-minscreen:before { + content: "\ea42"; +} + +.ch-icon-insertChart:before { + content: "\ea43"; +} + +.ch-icon-question:before { + content: "\ea44"; +} + +.ch-icon-settings:before { + content: "\ea45"; +} + +.ch-icon-ok:before { + content: "\ea46"; +} + +.ch-icon-br:before { + content: "\ea47"; +} + +.ch-icon-normal:before { + content: "\ea48"; +} + +.ch-icon-undo:before { + content: "\ea49"; +} + +.ch-icon-redo:before { + content: "\ea50"; +} + +.ch-icon-copy:before { + content: "\ea51"; +} + +.ch-icon-phone:before { + content: "\ea52"; +} + +.ch-icon-cherry-table-delete:before { + content: "\ea53"; +} + +.ch-icon-cherry-table-insert-bottom:before { + content: "\ea54"; +} + +.ch-icon-cherry-table-insert-left:before { + content: "\ea55"; +} + +.ch-icon-cherry-table-insert-right:before { + content: "\ea56"; +} + +.ch-icon-cherry-table-insert-top:before { + content: "\ea57"; +} + +.ch-icon-sort-s:before { + content: "\ea58"; +} + +.ch-icon-pinyin:before { + content: "\ea59"; +} + +.ch-icon-create:before { + content: "\ea5a"; +} + +.ch-icon-download:before { + content: "\ea5b"; +} + +.ch-icon-edit:before { + content: "\ea5c"; +} + +.ch-icon-export:before { + content: "\ea5d"; +} + +.ch-icon-folder-open:before { + content: "\ea5e"; +} + +.ch-icon-folder:before { + content: "\ea5f"; +} + +.ch-icon-help:before { + content: "\ea60"; +} + +.ch-icon-pen-fill:before { + content: "\ea61"; +} + +.ch-icon-pen:before { + content: "\ea62"; +} + +.ch-icon-search:before { + content: "\ea63"; +} + +.ch-icon-tips:before { + content: "\ea64"; +} + +.ch-icon-warn:before { + content: "\ea65"; +} + +.ch-icon-mistake:before { + content: "\ea66"; +} + +.ch-icon-success:before { + content: "\ea67"; +} + +.ch-icon-danger:before { + content: "\ea68"; +} + +.ch-icon-info:before { + content: "\ea69"; +} + +.ch-icon-primary:before { + content: "\ea6a"; +} + +.ch-icon-warning:before { + content: "\ea6b"; +} + +.ch-icon-justify:before { + content: "\ea6c"; +} + +.ch-icon-justifyCenter:before { + content: "\ea6d"; +} + +.ch-icon-justifyLeft:before { + content: "\ea6e"; +} + +.ch-icon-justifyRight:before { + content: "\ea6f"; +} + +.ch-icon-chevronsLeft:before { + content: "\ea70"; +} + +.ch-icon-chevronsRight:before { + content: "\ea71"; +} + +.cherry-markdown { + word-break: break-all; + /* Specify class=linenums on a pre to get line numbering */ + /* Inline code */ + /* 数学表达式展示 */ +} +.cherry-markdown h1, +.cherry-markdown h2, +.cherry-markdown h3, +.cherry-markdown h4, +.cherry-markdown h5, +.cherry-markdown h6, +.cherry-markdown .h1, +.cherry-markdown .h2, +.cherry-markdown .h3, +.cherry-markdown .h4, +.cherry-markdown .h5, +.cherry-markdown .h6 { + font-family: inherit; + font-weight: 700; + line-height: 1.1; + color: inherit; +} +.cherry-markdown h1 small, +.cherry-markdown h2 small, +.cherry-markdown h3 small, +.cherry-markdown h4 small, +.cherry-markdown h5 small, +.cherry-markdown h6 small, +.cherry-markdown .h1 small, +.cherry-markdown .h2 small, +.cherry-markdown .h3 small, +.cherry-markdown .h4 small, +.cherry-markdown .h5 small, +.cherry-markdown .h6 small, +.cherry-markdown h1 .small, +.cherry-markdown h2 .small, +.cherry-markdown h3 .small, +.cherry-markdown h4 .small, +.cherry-markdown h5 .small, +.cherry-markdown h6 .small, +.cherry-markdown .h1 .small, +.cherry-markdown .h2 .small, +.cherry-markdown .h3 .small, +.cherry-markdown .h4 .small, +.cherry-markdown .h5 .small, +.cherry-markdown .h6 .small { + font-weight: normal; + line-height: 1; + color: #999; +} +.cherry-markdown h1, +.cherry-markdown h2, +.cherry-markdown h3 { + margin-top: 30px; + margin-bottom: 16px; +} +.cherry-markdown h1 small, +.cherry-markdown h2 small, +.cherry-markdown h3 small, +.cherry-markdown h1 .small, +.cherry-markdown h2 .small, +.cherry-markdown h3 .small { + font-size: 65%; +} +.cherry-markdown h4, +.cherry-markdown h5, +.cherry-markdown h6 { + margin-top: 12px; + margin-bottom: 12px; +} +.cherry-markdown h4 small, +.cherry-markdown h5 small, +.cherry-markdown h6 small, +.cherry-markdown h4 .small, +.cherry-markdown h5 .small, +.cherry-markdown h6 .small { + font-size: 75%; +} +.cherry-markdown h1, +.cherry-markdown .h1 { + font-size: 2em; +} +.cherry-markdown h2, +.cherry-markdown .h2 { + font-size: 1.5em; +} +.cherry-markdown h3, +.cherry-markdown .h3 { + font-size: 1.25em; +} +.cherry-markdown h4, +.cherry-markdown .h4 { + font-size: 1em; +} +.cherry-markdown h5, +.cherry-markdown .h5 { + font-size: 0.875em; +} +.cherry-markdown h6, +.cherry-markdown .h6 { + font-size: 0.85em; +} +.cherry-markdown b, +.cherry-markdown strong { + font-weight: bold; +} +.cherry-markdown ul, +.cherry-markdown ol { + padding-left: 24px; + margin-bottom: 16px; +} +.cherry-markdown ul ul, +.cherry-markdown ul ol, +.cherry-markdown ol ul, +.cherry-markdown ol ol { + margin-bottom: 0; +} +.cherry-markdown ul li, +.cherry-markdown ol li { + list-style: inherit; +} +.cherry-markdown ul li p, +.cherry-markdown ol li p { + margin: 0; +} +.cherry-markdown div ul, +.cherry-markdown div ol { + margin-bottom: 0; +} +.cherry-markdown hr { + height: 0; + border: 0; + border-top: 1px solid #dfe6ee; + margin: 16px 0; + box-sizing: content-box; + overflow: visible; +} +.cherry-markdown kbd { + border: 1px solid #dfe6ee; + border-radius: 4px; + padding: 1px 2px; + box-sizing: border-box; + box-shadow: inset 0px -1px #dfe6ee; + font-size: 0.85rem; +} +.cherry-markdown table { + border-collapse: collapse; +} +.cherry-markdown table th, +.cherry-markdown table td { + border: 1px solid #dfe6ee; + padding: 0.2em 0.4em; + min-width: 100px; +} +.cherry-markdown table th { + background-color: #eee; +} +.cherry-markdown .link-quote { + color: #3582fb; +} +.cherry-markdown a { + color: #3582fb; + position: relative; + text-decoration: none; +} +.cherry-markdown a[target=_blank] { + padding: 0 2px; +} +.cherry-markdown a[target=_blank]::after { + content: "\ea10"; + font-size: 12px; + font-family: "ch-icon"; + margin: 0 2px; +} +.cherry-markdown a:hover { + color: #056bad; +} +.cherry-markdown em { + font-style: italic; +} +.cherry-markdown sup { + vertical-align: super; +} +.cherry-markdown sub { + vertical-align: sub; +} +.cherry-markdown figure { + overflow-x: auto; +} +.cherry-markdown blockquote { + color: #6d6e6f; + padding: 10px 15px; + border-left: 10px solid #D6DBDF; + background: rgba(102, 128, 153, 0.05); +} +.cherry-markdown p, +.cherry-markdown pre, +.cherry-markdown blockquote, +.cherry-markdown table { + margin: 0 0 16px; +} +.cherry-markdown pre { + padding: 16px; + overflow: auto; + font-size: 85%; + line-height: 1.45; + background-color: #f6f8fa; + border-radius: 6px; +} +.cherry-markdown .prettyprint { + min-width: 500px; + display: inline-block; + background: #00212b; + font-family: Menlo, "Bitstream Vera Sans Mono", "DejaVu Sans Mono", Monaco, Consolas, monospace; + border: 0 !important; +} +.cherry-markdown .pln { + color: #dfe6ee; +} +.cherry-markdown .str { + color: #ffaf21; +} +.cherry-markdown .kwd { + color: #f85353; +} +.cherry-markdown ol.linenums { + margin-top: 0; + margin-bottom: 0; + color: #969896; +} +.cherry-markdown li.L0, +.cherry-markdown li.L1, +.cherry-markdown li.L2, +.cherry-markdown li.L3, +.cherry-markdown li.L4, +.cherry-markdown li.L5, +.cherry-markdown li.L6, +.cherry-markdown li.L7, +.cherry-markdown li.L8, +.cherry-markdown li.L9 { + padding-left: 1em; + background-color: #00212b; + list-style-type: decimal; +} +@media screen { + .cherry-markdown .cherry-markdown { + /* comment */ + /* type name */ + /* literal value */ + /* punctuation */ + /* lisp open bracket */ + /* lisp close bracket */ + /* markup tag name */ + /* markup attribute name */ + /* markup attribute value */ + /* declaration */ + /* variable name */ + /* function name */ + } + .cherry-markdown .cherry-markdown .com { + color: #969896; + } + .cherry-markdown .cherry-markdown .typ { + color: #81a2be; + } + .cherry-markdown .cherry-markdown .lit { + color: #de935f; + } + .cherry-markdown .cherry-markdown .pun { + color: #c5c8c6; + } + .cherry-markdown .cherry-markdown .opn { + color: #c5c8c6; + } + .cherry-markdown .cherry-markdown .clo { + color: #c5c8c6; + } + .cherry-markdown .cherry-markdown .tag { + color: #cc6666; + } + .cherry-markdown .cherry-markdown .atn { + color: #de935f; + } + .cherry-markdown .cherry-markdown .atv { + color: #8abeb7; + } + .cherry-markdown .cherry-markdown .dec { + color: #de935f; + } + .cherry-markdown .cherry-markdown .var { + color: #cc6666; + } + .cherry-markdown .cherry-markdown .fun { + color: #81a2be; + } +} +.cherry-markdown div[data-type=codeBlock] { + display: inline-block; + width: 100%; + box-sizing: border-box; + border-radius: 2px; + margin-bottom: 16px; + font-size: 14px; + overflow-x: auto; +} +.cherry-markdown div[data-type=codeBlock] > pre { + margin: 0; +} +.cherry-markdown div[data-type=codeBlock] > pre code[class*=language-] { + counter-reset: line; +} +.cherry-markdown div[data-type=codeBlock] > pre code[class*=language-].wrap { + white-space: pre-wrap; +} +.cherry-markdown div[data-type=codeBlock] > pre code[class*=language-] .code-line { + display: inline-block; + position: relative; + padding-left: 3em; + height: 1.3em; + line-height: 2em; +} +.cherry-markdown div[data-type=codeBlock] > pre code[class*=language-] .code-line:before { + counter-increment: line; + content: counter(line); + margin-right: 1em; + position: absolute; + left: 0; +} +.cherry-markdown div[data-type=codeBlock] > pre code[class*=language-] .code-line:last-child { + margin-bottom: 0; +} +.cherry-markdown :not(pre) > code { + padding: 0.1em; + border-radius: 0.3em; + white-space: normal; + color: #f85353; + background-color: #e5e5e5; +} +[data-inline-code-theme=black] .cherry-markdown :not(pre) > code { + color: #3f4a56; + background-color: #e5e5e5; +} +.cherry-markdown a.anchor:before { + content: "§"; + text-decoration: none; + width: 15px; + font-size: 0.5em; + vertical-align: middle; + display: inline-block; + text-align: center; + margin-left: -15px; +} +.cherry-markdown .toc { + margin-bottom: 16px; + padding-left: 0; +} +.cherry-markdown .toc .toc-title { + font-size: 24px; + margin-bottom: 5px; +} +.cherry-markdown .toc .toc-li { + border-bottom: 1px ridge #dfe6ee; + list-style: none; +} +.cherry-markdown .toc .toc-li a { + text-decoration: none; + color: #3f4a56; +} +.cherry-markdown .toc .toc-li a:hover { + color: #056bad; +} +.cherry-markdown .check-list-item { + list-style: none; +} +.cherry-markdown .check-list-item .ch-icon { + margin: 0 6px 0 -20px; +} +.cherry-markdown .footnote:not(a) { + padding-top: 20px; + border-top: 1px solid #dfe6ee; + margin-top: 50px; +} +.cherry-markdown .footnote:not(a) .footnote-title { + font-size: 20px; + margin-top: -38px; + background-color: #f8fafb; + width: 60px; + margin-bottom: 16px; +} +.cherry-markdown .footnote:not(a) .one-footnote { + color: #6d6e6f; + margin-bottom: 16px; + border-bottom: 1px dotted #dfe6ee; +} +.cherry-markdown .cherry-table-container { + max-width: 100%; + overflow-x: auto; +} +.cherry-markdown .cherry-table-container .cherry-table th, +.cherry-markdown .cherry-table-container .cherry-table td { + border: 1px solid #dfe6ee; + padding: 0.2em 0.4em; + min-width: 100px; +} +.cherry-markdown .cherry-table-container .cherry-table th { + white-space: nowrap; +} +.cherry-markdown mjx-assistive-mml { + position: absolute; + top: 0; + left: 0; + clip: rect(1px, 1px, 1px, 1px); + padding: 1px 0 0 0; + border: 0; +} +.cherry-markdown.head-num { + counter-reset: level1; +} +.cherry-markdown.head-num h1 .anchor:before, +.cherry-markdown.head-num h2 .anchor:before, +.cherry-markdown.head-num h3 .anchor:before, +.cherry-markdown.head-num h4 .anchor:before, +.cherry-markdown.head-num h5 .anchor:before, +.cherry-markdown.head-num h6 .anchor:before { + width: auto; + font-size: inherit; + vertical-align: inherit; + padding-right: 10px; +} +.cherry-markdown.head-num h1 { + counter-reset: level2; +} +.cherry-markdown.head-num h2 { + counter-reset: level3; +} +.cherry-markdown.head-num h3 { + counter-reset: level4; +} +.cherry-markdown.head-num h4 { + counter-reset: level5; +} +.cherry-markdown.head-num h5 { + counter-reset: level6; +} +.cherry-markdown.head-num h1 .anchor:before { + counter-increment: level1; + content: counter(level1) ". "; +} +.cherry-markdown.head-num h2 .anchor:before { + counter-increment: level2; + content: counter(level1) "." counter(level2) " "; +} +.cherry-markdown.head-num h3 .anchor:before { + counter-increment: level3; + content: counter(level1) "." counter(level2) "." counter(level3) " "; +} +.cherry-markdown.head-num h4 .anchor:before { + counter-increment: level4; + content: counter(level1) "." counter(level2) "." counter(level3) "." counter(level4) " "; +} +.cherry-markdown.head-num h5 .anchor:before { + counter-increment: level5; + content: counter(level1) "." counter(level2) "." counter(level3) "." counter(level4) "." counter(level5) " "; +} +.cherry-markdown.head-num h6 .anchor:before { + counter-increment: level6; + content: counter(level1) "." counter(level2) "." counter(level3) "." counter(level4) "." counter(level5) "." counter(level6) " "; +} + +div[data-type=codeBlock] { + /* PrismJS 1.23.0 + https://prismjs.com/download.html#themes=prism-tomorrow&languages=markup+css+clike+javascript */ + /** + * prism.js tomorrow night eighties for JavaScript, CoffeeScript, CSS and HTML + * Based on https://github.com/chriskempson/tomorrow-theme + * @author Rose Pritchard + */ + /* Code blocks */ + /* Inline code */ +} +div[data-type=codeBlock] code[class*=language-], +div[data-type=codeBlock] pre[class*=language-] { + color: #ccc; + background: none; + font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace; + font-size: 1em; + text-align: left; + white-space: pre; + word-spacing: normal; + word-break: normal; + word-wrap: normal; + line-height: 1.5; + -moz-tab-size: 4; + -o-tab-size: 4; + tab-size: 4; + -webkit-hyphens: none; + -moz-hyphens: none; + -ms-hyphens: none; + hyphens: none; +} +div[data-type=codeBlock] pre[class*=language-] { + padding: 1em; + margin: 0.5em 0; + overflow: auto; +} +div[data-type=codeBlock] :not(pre) > code[class*=language-], +div[data-type=codeBlock] pre[class*=language-] { + background: #2d2d2d; +} +div[data-type=codeBlock] :not(pre) > code[class*=language-] { + padding: 0.1em; + border-radius: 0.3em; + white-space: normal; +} +div[data-type=codeBlock] .token.comment, +div[data-type=codeBlock] .token.block-comment, +div[data-type=codeBlock] .token.prolog, +div[data-type=codeBlock] .token.doctype, +div[data-type=codeBlock] .token.cdata { + color: #999; +} +div[data-type=codeBlock] .token.punctuation { + color: #ccc; +} +div[data-type=codeBlock] .token.tag, +div[data-type=codeBlock] .token.attr-name, +div[data-type=codeBlock] .token.namespace, +div[data-type=codeBlock] .token.deleted { + color: #e2777a; +} +div[data-type=codeBlock] .token.function-name { + color: #6196cc; +} +div[data-type=codeBlock] .token.boolean, +div[data-type=codeBlock] .token.number, +div[data-type=codeBlock] .token.function { + color: #f08d49; +} +div[data-type=codeBlock] .token.property, +div[data-type=codeBlock] .token.class-name, +div[data-type=codeBlock] .token.constant, +div[data-type=codeBlock] .token.symbol { + color: #f8c555; +} +div[data-type=codeBlock] .token.selector, +div[data-type=codeBlock] .token.important, +div[data-type=codeBlock] .token.atrule, +div[data-type=codeBlock] .token.keyword, +div[data-type=codeBlock] .token.builtin { + color: #cc99cd; +} +div[data-type=codeBlock] .token.string, +div[data-type=codeBlock] .token.char, +div[data-type=codeBlock] .token.attr-value, +div[data-type=codeBlock] .token.regex, +div[data-type=codeBlock] .token.variable { + color: #7ec699; +} +div[data-type=codeBlock] .token.operator, +div[data-type=codeBlock] .token.entity, +div[data-type=codeBlock] .token.url { + color: #67cdcc; +} +div[data-type=codeBlock] .token.important, +div[data-type=codeBlock] .token.bold { + font-weight: bold; +} +div[data-type=codeBlock] .token.italic { + font-style: italic; +} +div[data-type=codeBlock] .token.entity { + cursor: help; +} +div[data-type=codeBlock] .token.inserted { + color: green; +} +[data-code-block-theme=default] div[data-type=codeBlock] { + /* PrismJS 1.23.0 + https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript+abap+abnf+actionscript+ada+agda+al+antlr4+apacheconf+apex+apl+applescript+aql+arduino+arff+asciidoc+aspnet+asm6502+autohotkey+autoit+bash+basic+batch+bbcode+birb+bison+bnf+brainfuck+brightscript+bro+bsl+c+csharp+cpp+cfscript+chaiscript+cil+clojure+cmake+cobol+coffeescript+concurnas+csp+coq+crystal+css-extras+csv+cypher+d+dart+dataweave+dax+dhall+diff+django+dns-zone-file+docker+dot+ebnf+editorconfig+eiffel+ejs+elixir+elm+etlua+erb+erlang+excel-formula+fsharp+factor+false+firestore-security-rules+flow+fortran+ftl+gml+gcode+gdscript+gedcom+gherkin+git+glsl+go+graphql+groovy+haml+handlebars+haskell+haxe+hcl+hlsl+http+hpkp+hsts+ichigojam+icon+icu-message-format+idris+ignore+inform7+ini+io+j+java+javadoc+javadoclike+javastacktrace+jexl+jolie+jq+jsdoc+js-extras+json+json5+jsonp+jsstacktrace+js-templates+julia+keyman+kotlin+kumir+latex+latte+less+lilypond+liquid+lisp+livescript+llvm+log+lolcode+lua+makefile+markdown+markup-templating+matlab+mel+mizar+mongodb+monkey+moonscript+n1ql+n4js+nand2tetris-hdl+naniscript+nasm+neon+nevod+nginx+nim+nix+nsis+objectivec+ocaml+opencl+openqasm+oz+parigp+parser+pascal+pascaligo+psl+pcaxis+peoplecode+perl+php+phpdoc+php-extras+plsql+powerquery+powershell+processing+prolog+promql+properties+protobuf+pug+puppet+pure+purebasic+purescript+python+qsharp+q+qml+qore+r+racket+jsx+tsx+reason+regex+rego+renpy+rest+rip+roboconf+robotframework+ruby+rust+sas+sass+scss+scala+scheme+shell-session+smali+smalltalk+smarty+sml+solidity+solution-file+soy+sparql+splunk-spl+sqf+sql+squirrel+stan+iecst+stylus+swift+t4-templating+t4-cs+t4-vb+tap+tcl+tt2+textile+toml+turtle+twig+typescript+typoscript+unrealscript+uri+v+vala+vbnet+velocity+verilog+vhdl+vim+visual-basic+warpscript+wasm+wiki+wolfram+xeora+xml-doc+xojo+xquery+yaml+yang+zig */ + /** + * prism.js default theme for JavaScript, CSS and HTML + * Based on dabblet (http://dabblet.com) + * @author Lea Verou + */ + /* Code blocks */ + /* Inline code */ +} +[data-code-block-theme=default] div[data-type=codeBlock] code[class*=language-], +[data-code-block-theme=default] div[data-type=codeBlock] pre[class*=language-] { + color: black; + background: none; + text-shadow: 0 1px white; + font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace; + font-size: 1em; + text-align: left; + white-space: pre; + word-spacing: normal; + word-break: normal; + word-wrap: normal; + line-height: 1.5; + -moz-tab-size: 4; + -o-tab-size: 4; + tab-size: 4; + -webkit-hyphens: none; + -moz-hyphens: none; + -ms-hyphens: none; + hyphens: none; +} +[data-code-block-theme=default] div[data-type=codeBlock] pre[class*=language-]::-moz-selection, [data-code-block-theme=default] div[data-type=codeBlock] pre[class*=language-] ::-moz-selection, +[data-code-block-theme=default] div[data-type=codeBlock] code[class*=language-]::-moz-selection, [data-code-block-theme=default] div[data-type=codeBlock] code[class*=language-] ::-moz-selection { + text-shadow: none; + background: #b3d4fc; +} +[data-code-block-theme=default] div[data-type=codeBlock] pre[class*=language-]::selection, [data-code-block-theme=default] div[data-type=codeBlock] pre[class*=language-] ::selection, +[data-code-block-theme=default] div[data-type=codeBlock] code[class*=language-]::selection, [data-code-block-theme=default] div[data-type=codeBlock] code[class*=language-] ::selection { + text-shadow: none; + background: #b3d4fc; +} +@media print { + [data-code-block-theme=default] div[data-type=codeBlock] code[class*=language-], +[data-code-block-theme=default] div[data-type=codeBlock] pre[class*=language-] { + text-shadow: none; + } +} +[data-code-block-theme=default] div[data-type=codeBlock] pre[class*=language-] { + padding: 1em; + margin: 0.5em 0; + overflow: auto; +} +[data-code-block-theme=default] div[data-type=codeBlock] :not(pre) > code[class*=language-], +[data-code-block-theme=default] div[data-type=codeBlock] pre[class*=language-] { + background: #f5f2f0; +} +[data-code-block-theme=default] div[data-type=codeBlock] :not(pre) > code[class*=language-] { + padding: 0.1em; + border-radius: 0.3em; + white-space: normal; +} +[data-code-block-theme=default] div[data-type=codeBlock] .token.comment, +[data-code-block-theme=default] div[data-type=codeBlock] .token.prolog, +[data-code-block-theme=default] div[data-type=codeBlock] .token.doctype, +[data-code-block-theme=default] div[data-type=codeBlock] .token.cdata { + color: slategray; +} +[data-code-block-theme=default] div[data-type=codeBlock] .token.punctuation { + color: #999; +} +[data-code-block-theme=default] div[data-type=codeBlock] .token.namespace { + opacity: 0.7; +} +[data-code-block-theme=default] div[data-type=codeBlock] .token.property, +[data-code-block-theme=default] div[data-type=codeBlock] .token.tag, +[data-code-block-theme=default] div[data-type=codeBlock] .token.boolean, +[data-code-block-theme=default] div[data-type=codeBlock] .token.number, +[data-code-block-theme=default] div[data-type=codeBlock] .token.constant, +[data-code-block-theme=default] div[data-type=codeBlock] .token.symbol, +[data-code-block-theme=default] div[data-type=codeBlock] .token.deleted { + color: #905; +} +[data-code-block-theme=default] div[data-type=codeBlock] .token.selector, +[data-code-block-theme=default] div[data-type=codeBlock] .token.attr-name, +[data-code-block-theme=default] div[data-type=codeBlock] .token.string, +[data-code-block-theme=default] div[data-type=codeBlock] .token.char, +[data-code-block-theme=default] div[data-type=codeBlock] .token.builtin, +[data-code-block-theme=default] div[data-type=codeBlock] .token.inserted { + color: #690; +} +[data-code-block-theme=default] div[data-type=codeBlock] .token.operator, +[data-code-block-theme=default] div[data-type=codeBlock] .token.entity, +[data-code-block-theme=default] div[data-type=codeBlock] .token.url, +[data-code-block-theme=default] div[data-type=codeBlock] .language-css .token.string, +[data-code-block-theme=default] div[data-type=codeBlock] .style .token.string { + color: #9a6e3a; + /* This background color was intended by the author of this theme. */ + background: hsla(0deg, 0%, 100%, 0.5); +} +[data-code-block-theme=default] div[data-type=codeBlock] .token.atrule, +[data-code-block-theme=default] div[data-type=codeBlock] .token.attr-value, +[data-code-block-theme=default] div[data-type=codeBlock] .token.keyword { + color: #07a; +} +[data-code-block-theme=default] div[data-type=codeBlock] .token.function, +[data-code-block-theme=default] div[data-type=codeBlock] .token.class-name { + color: #DD4A68; +} +[data-code-block-theme=default] div[data-type=codeBlock] .token.regex, +[data-code-block-theme=default] div[data-type=codeBlock] .token.important, +[data-code-block-theme=default] div[data-type=codeBlock] .token.variable { + color: #e90; +} +[data-code-block-theme=default] div[data-type=codeBlock] .token.important, +[data-code-block-theme=default] div[data-type=codeBlock] .token.bold { + font-weight: bold; +} +[data-code-block-theme=default] div[data-type=codeBlock] .token.italic { + font-style: italic; +} +[data-code-block-theme=default] div[data-type=codeBlock] .token.entity { + cursor: help; +} +[data-code-block-theme=dark] div[data-type=codeBlock] { + /* PrismJS 1.23.0 + https://prismjs.com/download.html#themes=prism-dark&languages=markup+css+clike+javascript+abap+abnf+actionscript+ada+agda+al+antlr4+apacheconf+apex+apl+applescript+aql+arduino+arff+asciidoc+aspnet+asm6502+autohotkey+autoit+bash+basic+batch+bbcode+birb+bison+bnf+brainfuck+brightscript+bro+bsl+c+csharp+cpp+cfscript+chaiscript+cil+clojure+cmake+cobol+coffeescript+concurnas+csp+coq+crystal+css-extras+csv+cypher+d+dart+dataweave+dax+dhall+diff+django+dns-zone-file+docker+dot+ebnf+editorconfig+eiffel+ejs+elixir+elm+etlua+erb+erlang+excel-formula+fsharp+factor+false+firestore-security-rules+flow+fortran+ftl+gml+gcode+gdscript+gedcom+gherkin+git+glsl+go+graphql+groovy+haml+handlebars+haskell+haxe+hcl+hlsl+http+hpkp+hsts+ichigojam+icon+icu-message-format+ignore+inform7+ini+io+j+java+javadoc+javadoclike+javastacktrace+jexl+jolie+jq+jsdoc+js-extras+json+json5+jsonp+jsstacktrace+js-templates+julia+keyman+kotlin+kumir+latte+less+lilypond+liquid+lisp+livescript+llvm+log+lolcode+lua+makefile+markdown+markup-templating+matlab+mel+mizar+mongodb+monkey+moonscript+n1ql+n4js+nand2tetris-hdl+naniscript+nasm+neon+nevod+nginx+nim+nix+nsis+objectivec+ocaml+opencl+openqasm+oz+parigp+parser+pascal+pascaligo+psl+pcaxis+peoplecode+perl+php+phpdoc+php-extras+plsql+powerquery+powershell+processing+prolog+promql+properties+protobuf+pug+puppet+pure+purebasic+purescript+python+qsharp+q+qml+qore+r+racket+jsx+tsx+reason+regex+rego+renpy+rest+rip+roboconf+robotframework+ruby+rust+sas+sass+scss+scala+scheme+shell-session+smali+smalltalk+smarty+sml+solidity+solution-file+soy+sparql+splunk-spl+sqf+sql+squirrel+stan+iecst+stylus+swift+t4-templating+t4-cs+t4-vb+tap+tcl+tt2+textile+toml+turtle+twig+typescript+typoscript+unrealscript+uri+v+vala+vbnet+velocity+verilog+vhdl+vim+visual-basic+warpscript+wasm+wiki+wolfram+xeora+xml-doc+xojo+xquery+yaml+yang+zig */ + /** + * prism.js Dark theme for JavaScript, CSS and HTML + * Based on the slides of the talk “/Reg(exp){2}lained/” + * @author Lea Verou + */ + /* Code blocks */ + /* Inline code */ +} +[data-code-block-theme=dark] div[data-type=codeBlock] code[class*=language-], +[data-code-block-theme=dark] div[data-type=codeBlock] pre[class*=language-] { + color: white; + background: none; + text-shadow: 0 -0.1em 0.2em black; + font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace; + font-size: 1em; + text-align: left; + white-space: pre; + word-spacing: normal; + word-break: normal; + word-wrap: normal; + line-height: 1.5; + -moz-tab-size: 4; + -o-tab-size: 4; + tab-size: 4; + -webkit-hyphens: none; + -moz-hyphens: none; + -ms-hyphens: none; + hyphens: none; +} +@media print { + [data-code-block-theme=dark] div[data-type=codeBlock] code[class*=language-], +[data-code-block-theme=dark] div[data-type=codeBlock] pre[class*=language-] { + text-shadow: none; + } +} +[data-code-block-theme=dark] div[data-type=codeBlock] pre[class*=language-], +[data-code-block-theme=dark] div[data-type=codeBlock] :not(pre) > code[class*=language-] { + background: hsl(30deg, 20%, 25%); +} +[data-code-block-theme=dark] div[data-type=codeBlock] pre[class*=language-] { + padding: 1em; + margin: 0.5em 0; + overflow: auto; + border: 0.3em solid hsl(30deg, 20%, 40%); + border-radius: 0.5em; + box-shadow: 1px 1px 0.5em black inset; +} +[data-code-block-theme=dark] div[data-type=codeBlock] :not(pre) > code[class*=language-] { + padding: 0.15em 0.2em 0.05em; + border-radius: 0.3em; + border: 0.13em solid hsl(30deg, 20%, 40%); + box-shadow: 1px 1px 0.3em -0.1em black inset; + white-space: normal; +} +[data-code-block-theme=dark] div[data-type=codeBlock] .token.comment, +[data-code-block-theme=dark] div[data-type=codeBlock] .token.prolog, +[data-code-block-theme=dark] div[data-type=codeBlock] .token.doctype, +[data-code-block-theme=dark] div[data-type=codeBlock] .token.cdata { + color: hsl(30deg, 20%, 50%); +} +[data-code-block-theme=dark] div[data-type=codeBlock] .token.punctuation { + opacity: 0.7; +} +[data-code-block-theme=dark] div[data-type=codeBlock] .token.namespace { + opacity: 0.7; +} +[data-code-block-theme=dark] div[data-type=codeBlock] .token.property, +[data-code-block-theme=dark] div[data-type=codeBlock] .token.tag, +[data-code-block-theme=dark] div[data-type=codeBlock] .token.boolean, +[data-code-block-theme=dark] div[data-type=codeBlock] .token.number, +[data-code-block-theme=dark] div[data-type=codeBlock] .token.constant, +[data-code-block-theme=dark] div[data-type=codeBlock] .token.symbol { + color: hsl(350deg, 40%, 70%); +} +[data-code-block-theme=dark] div[data-type=codeBlock] .token.selector, +[data-code-block-theme=dark] div[data-type=codeBlock] .token.attr-name, +[data-code-block-theme=dark] div[data-type=codeBlock] .token.string, +[data-code-block-theme=dark] div[data-type=codeBlock] .token.char, +[data-code-block-theme=dark] div[data-type=codeBlock] .token.builtin, +[data-code-block-theme=dark] div[data-type=codeBlock] .token.inserted { + color: hsl(75deg, 70%, 60%); +} +[data-code-block-theme=dark] div[data-type=codeBlock] .token.operator, +[data-code-block-theme=dark] div[data-type=codeBlock] .token.entity, +[data-code-block-theme=dark] div[data-type=codeBlock] .token.url, +[data-code-block-theme=dark] div[data-type=codeBlock] .language-css .token.string, +[data-code-block-theme=dark] div[data-type=codeBlock] .style .token.string, +[data-code-block-theme=dark] div[data-type=codeBlock] .token.variable { + color: hsl(40deg, 90%, 60%); +} +[data-code-block-theme=dark] div[data-type=codeBlock] .token.atrule, +[data-code-block-theme=dark] div[data-type=codeBlock] .token.attr-value, +[data-code-block-theme=dark] div[data-type=codeBlock] .token.keyword { + color: hsl(350deg, 40%, 70%); +} +[data-code-block-theme=dark] div[data-type=codeBlock] .token.regex, +[data-code-block-theme=dark] div[data-type=codeBlock] .token.important { + color: #e90; +} +[data-code-block-theme=dark] div[data-type=codeBlock] .token.important, +[data-code-block-theme=dark] div[data-type=codeBlock] .token.bold { + font-weight: bold; +} +[data-code-block-theme=dark] div[data-type=codeBlock] .token.italic { + font-style: italic; +} +[data-code-block-theme=dark] div[data-type=codeBlock] .token.entity { + cursor: help; +} +[data-code-block-theme=dark] div[data-type=codeBlock] .token.deleted { + color: red; +} +[data-code-block-theme=funky] div[data-type=codeBlock] { + /* PrismJS 1.23.0 + https://prismjs.com/download.html#themes=prism-funky&languages=markup+css+clike+javascript+abap+abnf+actionscript+ada+agda+al+antlr4+apacheconf+apex+apl+applescript+aql+arduino+arff+asciidoc+aspnet+asm6502+autohotkey+autoit+bash+basic+batch+bbcode+birb+bison+bnf+brainfuck+brightscript+bro+bsl+c+csharp+cpp+cfscript+chaiscript+cil+clojure+cmake+cobol+coffeescript+concurnas+csp+coq+crystal+css-extras+csv+cypher+d+dart+dataweave+dax+dhall+diff+django+dns-zone-file+docker+dot+ebnf+editorconfig+eiffel+ejs+elixir+elm+etlua+erb+erlang+excel-formula+fsharp+factor+false+firestore-security-rules+flow+fortran+ftl+gml+gcode+gdscript+gedcom+gherkin+git+glsl+go+graphql+groovy+haml+handlebars+haskell+haxe+hcl+hlsl+http+hpkp+hsts+ichigojam+icon+icu-message-format+ignore+inform7+ini+io+j+java+javadoc+javadoclike+javastacktrace+jexl+jolie+jq+jsdoc+js-extras+json+json5+jsonp+jsstacktrace+js-templates+julia+keyman+kotlin+kumir+latte+less+lilypond+liquid+lisp+livescript+llvm+log+lolcode+lua+makefile+markdown+markup-templating+matlab+mel+mizar+mongodb+monkey+moonscript+n1ql+n4js+nand2tetris-hdl+naniscript+nasm+neon+nevod+nginx+nim+nix+nsis+objectivec+ocaml+opencl+openqasm+oz+parigp+parser+pascal+pascaligo+psl+pcaxis+peoplecode+perl+php+phpdoc+php-extras+plsql+powerquery+powershell+processing+prolog+promql+properties+protobuf+pug+puppet+pure+purebasic+purescript+python+qsharp+q+qml+qore+r+racket+jsx+tsx+reason+regex+rego+renpy+rest+rip+roboconf+robotframework+ruby+rust+sas+sass+scss+scala+scheme+shell-session+smali+smalltalk+smarty+sml+solidity+solution-file+soy+sparql+splunk-spl+sqf+sql+squirrel+stan+iecst+stylus+swift+t4-templating+t4-cs+t4-vb+tap+tcl+tt2+textile+toml+turtle+twig+typescript+typoscript+unrealscript+uri+v+vala+vbnet+velocity+verilog+vhdl+vim+visual-basic+warpscript+wasm+wiki+wolfram+xeora+xml-doc+xojo+xquery+yaml+yang+zig */ + /** + * prism.js Funky theme + * Based on “Polyfilling the gaps” talk slides http://lea.verou.me/polyfilling-the-gaps/ + * @author Lea Verou + */ + /* Code blocks */ + /* Inline code */ + /* Plugin styles: Diff Highlight */ +} +[data-code-block-theme=funky] div[data-type=codeBlock] code[class*=language-], +[data-code-block-theme=funky] div[data-type=codeBlock] pre[class*=language-] { + font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace; + font-size: 1em; + text-align: left; + white-space: pre; + word-spacing: normal; + word-break: normal; + word-wrap: normal; + line-height: 1.5; + -moz-tab-size: 4; + -o-tab-size: 4; + tab-size: 4; + -webkit-hyphens: none; + -moz-hyphens: none; + -ms-hyphens: none; + hyphens: none; +} +[data-code-block-theme=funky] div[data-type=codeBlock] pre[class*=language-] { + padding: 0.4em 0.8em; + margin: 0.5em 0; + overflow: auto; + background: url('data:image/svg+xml;charset=utf-8,%0D%0A%0D%0A%0D%0A<%2Fsvg>'); + background-size: 1em 1em; +} +[data-code-block-theme=funky] div[data-type=codeBlock] code[class*=language-] { + background: black; + color: white; + box-shadow: -0.3em 0 0 0.3em black, 0.3em 0 0 0.3em black; +} +[data-code-block-theme=funky] div[data-type=codeBlock] :not(pre) > code[class*=language-] { + padding: 0.2em; + border-radius: 0.3em; + box-shadow: none; + white-space: normal; +} +[data-code-block-theme=funky] div[data-type=codeBlock] .token.comment, +[data-code-block-theme=funky] div[data-type=codeBlock] .token.prolog, +[data-code-block-theme=funky] div[data-type=codeBlock] .token.doctype, +[data-code-block-theme=funky] div[data-type=codeBlock] .token.cdata { + color: #aaa; +} +[data-code-block-theme=funky] div[data-type=codeBlock] .token.punctuation { + color: #999; +} +[data-code-block-theme=funky] div[data-type=codeBlock] .token.namespace { + opacity: 0.7; +} +[data-code-block-theme=funky] div[data-type=codeBlock] .token.property, +[data-code-block-theme=funky] div[data-type=codeBlock] .token.tag, +[data-code-block-theme=funky] div[data-type=codeBlock] .token.boolean, +[data-code-block-theme=funky] div[data-type=codeBlock] .token.number, +[data-code-block-theme=funky] div[data-type=codeBlock] .token.constant, +[data-code-block-theme=funky] div[data-type=codeBlock] .token.symbol { + color: #0cf; +} +[data-code-block-theme=funky] div[data-type=codeBlock] .token.selector, +[data-code-block-theme=funky] div[data-type=codeBlock] .token.attr-name, +[data-code-block-theme=funky] div[data-type=codeBlock] .token.string, +[data-code-block-theme=funky] div[data-type=codeBlock] .token.char, +[data-code-block-theme=funky] div[data-type=codeBlock] .token.builtin { + color: yellow; +} +[data-code-block-theme=funky] div[data-type=codeBlock] .token.operator, +[data-code-block-theme=funky] div[data-type=codeBlock] .token.entity, +[data-code-block-theme=funky] div[data-type=codeBlock] .token.url, +[data-code-block-theme=funky] div[data-type=codeBlock] .language-css .token.string, +[data-code-block-theme=funky] div[data-type=codeBlock] .token.variable, +[data-code-block-theme=funky] div[data-type=codeBlock] .token.inserted { + color: yellowgreen; +} +[data-code-block-theme=funky] div[data-type=codeBlock] .token.atrule, +[data-code-block-theme=funky] div[data-type=codeBlock] .token.attr-value, +[data-code-block-theme=funky] div[data-type=codeBlock] .token.keyword { + color: deeppink; +} +[data-code-block-theme=funky] div[data-type=codeBlock] .token.regex, +[data-code-block-theme=funky] div[data-type=codeBlock] .token.important { + color: orange; +} +[data-code-block-theme=funky] div[data-type=codeBlock] .token.important, +[data-code-block-theme=funky] div[data-type=codeBlock] .token.bold { + font-weight: bold; +} +[data-code-block-theme=funky] div[data-type=codeBlock] .token.italic { + font-style: italic; +} +[data-code-block-theme=funky] div[data-type=codeBlock] .token.entity { + cursor: help; +} +[data-code-block-theme=funky] div[data-type=codeBlock] .token.deleted { + color: red; +} +[data-code-block-theme=funky] div[data-type=codeBlock] pre.diff-highlight.diff-highlight > code .token.deleted:not(.prefix), +[data-code-block-theme=funky] div[data-type=codeBlock] pre > code.diff-highlight.diff-highlight .token.deleted:not(.prefix) { + background-color: rgba(255, 0, 0, 0.3); + display: inline; +} +[data-code-block-theme=funky] div[data-type=codeBlock] pre.diff-highlight.diff-highlight > code .token.inserted:not(.prefix), +[data-code-block-theme=funky] div[data-type=codeBlock] pre > code.diff-highlight.diff-highlight .token.inserted:not(.prefix) { + background-color: rgba(0, 255, 128, 0.3); + display: inline; +} +[data-code-block-theme=okaidia] div[data-type=codeBlock] { + /* PrismJS 1.23.0 + https://prismjs.com/download.html#themes=prism-okaidia&languages=markup+css+clike+javascript+abap+abnf+actionscript+ada+agda+al+antlr4+apacheconf+apex+apl+applescript+aql+arduino+arff+asciidoc+aspnet+asm6502+autohotkey+autoit+bash+basic+batch+bbcode+birb+bison+bnf+brainfuck+brightscript+bro+bsl+c+csharp+cpp+cfscript+chaiscript+cil+clojure+cmake+cobol+coffeescript+concurnas+csp+coq+crystal+css-extras+csv+cypher+d+dart+dataweave+dax+dhall+diff+django+dns-zone-file+docker+dot+ebnf+editorconfig+eiffel+ejs+elixir+elm+etlua+erb+erlang+excel-formula+fsharp+factor+false+firestore-security-rules+flow+fortran+ftl+gml+gcode+gdscript+gedcom+gherkin+git+glsl+go+graphql+groovy+haml+handlebars+haskell+haxe+hcl+hlsl+http+hpkp+hsts+ichigojam+icon+icu-message-format+ignore+inform7+ini+io+j+java+javadoc+javadoclike+javastacktrace+jexl+jolie+jq+jsdoc+js-extras+json+json5+jsonp+jsstacktrace+js-templates+julia+keyman+kotlin+kumir+latte+less+lilypond+liquid+lisp+livescript+llvm+log+lolcode+lua+makefile+markdown+markup-templating+matlab+mel+mizar+mongodb+monkey+moonscript+n1ql+n4js+nand2tetris-hdl+naniscript+nasm+neon+nevod+nginx+nim+nix+nsis+objectivec+ocaml+opencl+openqasm+oz+parigp+parser+pascal+pascaligo+psl+pcaxis+peoplecode+perl+php+phpdoc+php-extras+plsql+powerquery+powershell+processing+prolog+promql+properties+protobuf+pug+puppet+pure+purebasic+purescript+python+qsharp+q+qml+qore+r+racket+jsx+tsx+reason+regex+rego+renpy+rest+rip+roboconf+robotframework+ruby+rust+sas+sass+scss+scala+scheme+shell-session+smali+smalltalk+smarty+sml+solidity+solution-file+soy+sparql+splunk-spl+sqf+sql+squirrel+stan+iecst+stylus+swift+t4-templating+t4-cs+t4-vb+tap+tcl+tt2+textile+toml+turtle+twig+typescript+typoscript+unrealscript+uri+v+vala+vbnet+velocity+verilog+vhdl+vim+visual-basic+warpscript+wasm+wiki+wolfram+xeora+xml-doc+xojo+xquery+yaml+yang+zig */ + /** + * okaidia theme for JavaScript, CSS and HTML + * Loosely based on Monokai textmate theme by http://www.monokai.nl/ + * @author ocodia + */ + /* Code blocks */ + /* Inline code */ +} +[data-code-block-theme=okaidia] div[data-type=codeBlock] code[class*=language-], +[data-code-block-theme=okaidia] div[data-type=codeBlock] pre[class*=language-] { + color: #f8f8f2; + background: none; + text-shadow: 0 1px rgba(0, 0, 0, 0.3); + font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace; + font-size: 1em; + text-align: left; + white-space: pre; + word-spacing: normal; + word-break: normal; + word-wrap: normal; + line-height: 1.5; + -moz-tab-size: 4; + -o-tab-size: 4; + tab-size: 4; + -webkit-hyphens: none; + -moz-hyphens: none; + -ms-hyphens: none; + hyphens: none; +} +[data-code-block-theme=okaidia] div[data-type=codeBlock] pre[class*=language-] { + padding: 1em; + margin: 0.5em 0; + overflow: auto; + border-radius: 0.3em; +} +[data-code-block-theme=okaidia] div[data-type=codeBlock] :not(pre) > code[class*=language-], +[data-code-block-theme=okaidia] div[data-type=codeBlock] pre[class*=language-] { + background: #272822; +} +[data-code-block-theme=okaidia] div[data-type=codeBlock] :not(pre) > code[class*=language-] { + padding: 0.1em; + border-radius: 0.3em; + white-space: normal; +} +[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.comment, +[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.prolog, +[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.doctype, +[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.cdata { + color: #8292a2; +} +[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.punctuation { + color: #f8f8f2; +} +[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.namespace { + opacity: 0.7; +} +[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.property, +[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.tag, +[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.constant, +[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.symbol, +[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.deleted { + color: #f92672; +} +[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.boolean, +[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.number { + color: #ae81ff; +} +[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.selector, +[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.attr-name, +[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.string, +[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.char, +[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.builtin, +[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.inserted { + color: #a6e22e; +} +[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.operator, +[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.entity, +[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.url, +[data-code-block-theme=okaidia] div[data-type=codeBlock] .language-css .token.string, +[data-code-block-theme=okaidia] div[data-type=codeBlock] .style .token.string, +[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.variable { + color: #f8f8f2; +} +[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.atrule, +[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.attr-value, +[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.function, +[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.class-name { + color: #e6db74; +} +[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.keyword { + color: #66d9ef; +} +[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.regex, +[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.important { + color: #fd971f; +} +[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.important, +[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.bold { + font-weight: bold; +} +[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.italic { + font-style: italic; +} +[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.entity { + cursor: help; +} +[data-code-block-theme=twilight] div[data-type=codeBlock] { + /* PrismJS 1.23.0 + https://prismjs.com/download.html#themes=prism-twilight&languages=markup+css+clike+javascript+abap+abnf+actionscript+ada+agda+al+antlr4+apacheconf+apex+apl+applescript+aql+arduino+arff+asciidoc+aspnet+asm6502+autohotkey+autoit+bash+basic+batch+bbcode+birb+bison+bnf+brainfuck+brightscript+bro+bsl+c+csharp+cpp+cfscript+chaiscript+cil+clojure+cmake+cobol+coffeescript+concurnas+csp+coq+crystal+css-extras+csv+cypher+d+dart+dataweave+dax+dhall+diff+django+dns-zone-file+docker+dot+ebnf+editorconfig+eiffel+ejs+elixir+elm+etlua+erb+erlang+excel-formula+fsharp+factor+false+firestore-security-rules+flow+fortran+ftl+gml+gcode+gdscript+gedcom+gherkin+git+glsl+go+graphql+groovy+haml+handlebars+haskell+haxe+hcl+hlsl+http+hpkp+hsts+ichigojam+icon+icu-message-format+idris+ignore+inform7+ini+io+j+java+javadoc+javadoclike+javastacktrace+jexl+jolie+jq+jsdoc+js-extras+json+json5+jsonp+jsstacktrace+js-templates+julia+keyman+kotlin+kumir+latex+latte+less+lilypond+liquid+lisp+livescript+llvm+log+lolcode+lua+makefile+markdown+markup-templating+matlab+mel+mizar+mongodb+monkey+moonscript+n1ql+n4js+nand2tetris-hdl+naniscript+nasm+neon+nevod+nginx+nim+nix+nsis+objectivec+ocaml+opencl+openqasm+oz+parigp+parser+pascal+pascaligo+psl+pcaxis+peoplecode+perl+php+phpdoc+php-extras+plsql+powerquery+powershell+processing+prolog+promql+properties+protobuf+pug+puppet+pure+purebasic+purescript+python+qsharp+q+qml+qore+r+racket+jsx+tsx+reason+regex+rego+renpy+rest+rip+roboconf+robotframework+ruby+rust+sas+sass+scss+scala+scheme+shell-session+smali+smalltalk+smarty+sml+solidity+solution-file+soy+sparql+splunk-spl+sqf+sql+squirrel+stan+iecst+stylus+swift+t4-templating+t4-cs+t4-vb+tap+tcl+tt2+textile+toml+turtle+twig+typescript+typoscript+unrealscript+uri+v+vala+vbnet+velocity+verilog+vhdl+vim+visual-basic+warpscript+wasm+wiki+wolfram+xeora+xml-doc+xojo+xquery+yaml+yang+zig */ + /** + * prism.js Twilight theme + * Based (more or less) on the Twilight theme originally of Textmate fame. + * @author Remy Bach + */ + /* Code blocks */ + /* Text Selection colour */ + /* Inline code */ + /* Markup */ + /* Make the tokens sit above the line highlight so the colours don't look faded. */ +} +[data-code-block-theme=twilight] div[data-type=codeBlock] code[class*=language-], +[data-code-block-theme=twilight] div[data-type=codeBlock] pre[class*=language-] { + color: white; + background: none; + font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace; + font-size: 1em; + text-align: left; + text-shadow: 0 -0.1em 0.2em black; + white-space: pre; + word-spacing: normal; + word-break: normal; + word-wrap: normal; + line-height: 1.5; + -moz-tab-size: 4; + -o-tab-size: 4; + tab-size: 4; + -webkit-hyphens: none; + -moz-hyphens: none; + -ms-hyphens: none; + hyphens: none; +} +[data-code-block-theme=twilight] div[data-type=codeBlock] pre[class*=language-], +[data-code-block-theme=twilight] div[data-type=codeBlock] :not(pre) > code[class*=language-] { + background: hsl(0deg, 0%, 8%); /* #141414 */ +} +[data-code-block-theme=twilight] div[data-type=codeBlock] pre[class*=language-] { + border-radius: 0.5em; + border: 0.3em solid hsl(0deg, 0%, 33%); /* #282A2B */ + box-shadow: 1px 1px 0.5em black inset; + margin: 0.5em 0; + overflow: auto; + padding: 1em; +} +[data-code-block-theme=twilight] div[data-type=codeBlock] pre[class*=language-]::-moz-selection { + /* Firefox */ + background: hsl(200deg, 4%, 16%); /* #282A2B */ +} +[data-code-block-theme=twilight] div[data-type=codeBlock] pre[class*=language-]::selection { + /* Safari */ + background: hsl(200deg, 4%, 16%); /* #282A2B */ +} +[data-code-block-theme=twilight] div[data-type=codeBlock] pre[class*=language-]::-moz-selection, [data-code-block-theme=twilight] div[data-type=codeBlock] pre[class*=language-] ::-moz-selection, +[data-code-block-theme=twilight] div[data-type=codeBlock] code[class*=language-]::-moz-selection, [data-code-block-theme=twilight] div[data-type=codeBlock] code[class*=language-] ::-moz-selection { + text-shadow: none; + background: hsla(0deg, 0%, 93%, 0.15); /* #EDEDED */ +} +[data-code-block-theme=twilight] div[data-type=codeBlock] pre[class*=language-]::selection, [data-code-block-theme=twilight] div[data-type=codeBlock] pre[class*=language-] ::selection, +[data-code-block-theme=twilight] div[data-type=codeBlock] code[class*=language-]::selection, [data-code-block-theme=twilight] div[data-type=codeBlock] code[class*=language-] ::selection { + text-shadow: none; + background: hsla(0deg, 0%, 93%, 0.15); /* #EDEDED */ +} +[data-code-block-theme=twilight] div[data-type=codeBlock] :not(pre) > code[class*=language-] { + border-radius: 0.3em; + border: 0.13em solid hsl(0deg, 0%, 33%); /* #545454 */ + box-shadow: 1px 1px 0.3em -0.1em black inset; + padding: 0.15em 0.2em 0.05em; + white-space: normal; +} +[data-code-block-theme=twilight] div[data-type=codeBlock] .token.comment, +[data-code-block-theme=twilight] div[data-type=codeBlock] .token.prolog, +[data-code-block-theme=twilight] div[data-type=codeBlock] .token.doctype, +[data-code-block-theme=twilight] div[data-type=codeBlock] .token.cdata { + color: hsl(0deg, 0%, 47%); /* #777777 */ +} +[data-code-block-theme=twilight] div[data-type=codeBlock] .token.punctuation { + opacity: 0.7; +} +[data-code-block-theme=twilight] div[data-type=codeBlock] .token.namespace { + opacity: 0.7; +} +[data-code-block-theme=twilight] div[data-type=codeBlock] .token.tag, +[data-code-block-theme=twilight] div[data-type=codeBlock] .token.boolean, +[data-code-block-theme=twilight] div[data-type=codeBlock] .token.number, +[data-code-block-theme=twilight] div[data-type=codeBlock] .token.deleted { + color: hsl(14deg, 58%, 55%); /* #CF6A4C */ +} +[data-code-block-theme=twilight] div[data-type=codeBlock] .token.keyword, +[data-code-block-theme=twilight] div[data-type=codeBlock] .token.property, +[data-code-block-theme=twilight] div[data-type=codeBlock] .token.selector, +[data-code-block-theme=twilight] div[data-type=codeBlock] .token.constant, +[data-code-block-theme=twilight] div[data-type=codeBlock] .token.symbol, +[data-code-block-theme=twilight] div[data-type=codeBlock] .token.builtin { + color: hsl(53deg, 89%, 79%); /* #F9EE98 */ +} +[data-code-block-theme=twilight] div[data-type=codeBlock] .token.attr-name, +[data-code-block-theme=twilight] div[data-type=codeBlock] .token.attr-value, +[data-code-block-theme=twilight] div[data-type=codeBlock] .token.string, +[data-code-block-theme=twilight] div[data-type=codeBlock] .token.char, +[data-code-block-theme=twilight] div[data-type=codeBlock] .token.operator, +[data-code-block-theme=twilight] div[data-type=codeBlock] .token.entity, +[data-code-block-theme=twilight] div[data-type=codeBlock] .token.url, +[data-code-block-theme=twilight] div[data-type=codeBlock] .language-css .token.string, +[data-code-block-theme=twilight] div[data-type=codeBlock] .style .token.string, +[data-code-block-theme=twilight] div[data-type=codeBlock] .token.variable, +[data-code-block-theme=twilight] div[data-type=codeBlock] .token.inserted { + color: hsl(76deg, 21%, 52%); /* #8F9D6A */ +} +[data-code-block-theme=twilight] div[data-type=codeBlock] .token.atrule { + color: hsl(218deg, 22%, 55%); /* #7587A6 */ +} +[data-code-block-theme=twilight] div[data-type=codeBlock] .token.regex, +[data-code-block-theme=twilight] div[data-type=codeBlock] .token.important { + color: hsl(42deg, 75%, 65%); /* #E9C062 */ +} +[data-code-block-theme=twilight] div[data-type=codeBlock] .token.important, +[data-code-block-theme=twilight] div[data-type=codeBlock] .token.bold { + font-weight: bold; +} +[data-code-block-theme=twilight] div[data-type=codeBlock] .token.italic { + font-style: italic; +} +[data-code-block-theme=twilight] div[data-type=codeBlock] .token.entity { + cursor: help; +} +[data-code-block-theme=twilight] div[data-type=codeBlock] pre[data-line] { + padding: 1em 0 1em 3em; + position: relative; +} +[data-code-block-theme=twilight] div[data-type=codeBlock] .language-markup .token.tag, +[data-code-block-theme=twilight] div[data-type=codeBlock] .language-markup .token.attr-name, +[data-code-block-theme=twilight] div[data-type=codeBlock] .language-markup .token.punctuation { + color: hsl(33deg, 33%, 52%); /* #AC885B */ +} +[data-code-block-theme=twilight] div[data-type=codeBlock] .token { + position: relative; + z-index: 1; +} +[data-code-block-theme=twilight] div[data-type=codeBlock] .line-highlight { + background: hsla(0deg, 0%, 33%, 0.25); /* #545454 */ + background: linear-gradient(to right, hsla(0deg, 0%, 33%, 0.1) 70%, hsla(0deg, 0%, 33%, 0)); /* #545454 */ + border-bottom: 1px dashed hsl(0deg, 0%, 33%); /* #545454 */ + border-top: 1px dashed hsl(0deg, 0%, 33%); /* #545454 */ + left: 0; + line-height: inherit; + margin-top: 0.75em; /* Same as .prism’s padding-top */ + padding: inherit 0; + pointer-events: none; + position: absolute; + right: 0; + white-space: pre; + z-index: 0; +} +[data-code-block-theme=twilight] div[data-type=codeBlock] .line-highlight:before, +[data-code-block-theme=twilight] div[data-type=codeBlock] .line-highlight[data-end]:after { + background-color: hsl(215deg, 15%, 59%); /* #8794A6 */ + border-radius: 999px; + box-shadow: 0 1px white; + color: hsl(24deg, 20%, 95%); /* #F5F2F0 */ + content: attr(data-start); + font: bold 65%/1.5 sans-serif; + left: 0.6em; + min-width: 1em; + padding: 0 0.5em; + position: absolute; + text-align: center; + text-shadow: none; + top: 0.4em; + vertical-align: 0.3em; +} +[data-code-block-theme=twilight] div[data-type=codeBlock] .line-highlight[data-end]:after { + bottom: 0.4em; + content: attr(data-end); + top: auto; +} +[data-code-block-theme=coy] div[data-type=codeBlock] { + /* PrismJS 1.23.0 + https://prismjs.com/download.html#themes=prism-coy&languages=markup+css+clike+javascript+abap+abnf+actionscript+ada+agda+al+antlr4+apacheconf+apex+apl+applescript+aql+arduino+arff+asciidoc+aspnet+asm6502+autohotkey+autoit+bash+basic+batch+bbcode+birb+bison+bnf+brainfuck+brightscript+bro+bsl+c+csharp+cpp+cfscript+chaiscript+cil+clojure+cmake+cobol+coffeescript+concurnas+csp+coq+crystal+css-extras+csv+cypher+d+dart+dataweave+dax+dhall+diff+django+dns-zone-file+docker+dot+ebnf+editorconfig+eiffel+ejs+elixir+elm+etlua+erb+erlang+excel-formula+fsharp+factor+false+firestore-security-rules+flow+fortran+ftl+gml+gcode+gdscript+gedcom+gherkin+git+glsl+go+graphql+groovy+haml+handlebars+haskell+haxe+hcl+hlsl+http+hpkp+hsts+ichigojam+icon+icu-message-format+idris+ignore+inform7+ini+io+j+java+javadoc+javadoclike+javastacktrace+jexl+jolie+jq+jsdoc+js-extras+json+json5+jsonp+jsstacktrace+js-templates+julia+keyman+kotlin+kumir+latex+latte+less+lilypond+liquid+lisp+livescript+llvm+log+lolcode+lua+makefile+markdown+markup-templating+matlab+mel+mizar+mongodb+monkey+moonscript+n1ql+n4js+nand2tetris-hdl+naniscript+nasm+neon+nevod+nginx+nim+nix+nsis+objectivec+ocaml+opencl+openqasm+oz+parigp+parser+pascal+pascaligo+psl+pcaxis+peoplecode+perl+php+phpdoc+php-extras+plsql+powerquery+powershell+processing+prolog+promql+properties+protobuf+pug+puppet+pure+purebasic+purescript+python+qsharp+q+qml+qore+r+racket+jsx+tsx+reason+regex+rego+renpy+rest+rip+roboconf+robotframework+ruby+rust+sas+sass+scss+scala+scheme+shell-session+smali+smalltalk+smarty+sml+solidity+solution-file+soy+sparql+splunk-spl+sqf+sql+squirrel+stan+iecst+stylus+swift+t4-templating+t4-cs+t4-vb+tap+tcl+tt2+textile+toml+turtle+twig+typescript+typoscript+unrealscript+uri+v+vala+vbnet+velocity+verilog+vhdl+vim+visual-basic+warpscript+wasm+wiki+wolfram+xeora+xml-doc+xojo+xquery+yaml+yang+zig */ + /** + * prism.js Coy theme for JavaScript, CoffeeScript, CSS and HTML + * Based on https://github.com/tshedor/workshop-wp-theme (Example: http://workshop.kansan.com/category/sessions/basics or http://workshop.timshedor.com/category/sessions/basics); + * @author Tim Shedor + */ + /* Code blocks */ + /* Margin bottom to accommodate shadow */ + /* Inline code */ + /* Plugin styles: Line Numbers */ + /* Plugin styles: Line Highlight */ +} +[data-code-block-theme=coy] div[data-type=codeBlock] code[class*=language-], +[data-code-block-theme=coy] div[data-type=codeBlock] pre[class*=language-] { + color: black; + background: none; + font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace; + font-size: 1em; + text-align: left; + white-space: pre; + word-spacing: normal; + word-break: normal; + word-wrap: normal; + line-height: 1.5; + -moz-tab-size: 4; + -o-tab-size: 4; + tab-size: 4; + -webkit-hyphens: none; + -moz-hyphens: none; + -ms-hyphens: none; + hyphens: none; +} +[data-code-block-theme=coy] div[data-type=codeBlock] pre[class*=language-] { + position: relative; + margin: 0.5em 0; + overflow-y: hidden; + padding: 0; +} +[data-code-block-theme=coy] div[data-type=codeBlock] pre[class*=language-] > code { + position: relative; + border-left: 10px solid #358ccb; + box-shadow: -1px 0px 0px 0px #358ccb, 0px 0px 0px 1px #dfdfdf; + background-color: #fdfdfd; + background-image: linear-gradient(transparent 50%, rgba(69, 142, 209, 0.04) 50%); + background-size: 3em 3em; + background-origin: content-box; + background-attachment: local; +} +[data-code-block-theme=coy] div[data-type=codeBlock] code[class*=language-] { + max-height: inherit; + height: inherit; + padding: 0 1em; + display: block; +} +[data-code-block-theme=coy] div[data-type=codeBlock] :not(pre) > code[class*=language-], +[data-code-block-theme=coy] div[data-type=codeBlock] pre[class*=language-] { + background-color: #fdfdfd; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + margin-bottom: 1em; +} +[data-code-block-theme=coy] div[data-type=codeBlock] :not(pre) > code[class*=language-] { + position: relative; + padding: 0.2em; + border-radius: 0.3em; + color: #c92c2c; + border: 1px solid rgba(0, 0, 0, 0.1); + display: inline; + white-space: normal; +} +[data-code-block-theme=coy] div[data-type=codeBlock] pre[class*=language-]:before, +[data-code-block-theme=coy] div[data-type=codeBlock] pre[class*=language-]:after { + content: ""; + z-index: -2; + display: block; + position: absolute; + bottom: 0.75em; + left: 0.18em; + width: 40%; + height: 20%; + max-height: 13em; + box-shadow: 0px 13px 8px #979797; + -webkit-transform: rotate(-2deg); + -moz-transform: rotate(-2deg); + -ms-transform: rotate(-2deg); + -o-transform: rotate(-2deg); + transform: rotate(-2deg); +} +[data-code-block-theme=coy] div[data-type=codeBlock] pre[class*=language-]:after { + right: 0.75em; + left: auto; + -webkit-transform: rotate(2deg); + -moz-transform: rotate(2deg); + -ms-transform: rotate(2deg); + -o-transform: rotate(2deg); + transform: rotate(2deg); +} +[data-code-block-theme=coy] div[data-type=codeBlock] .token.comment, +[data-code-block-theme=coy] div[data-type=codeBlock] .token.block-comment, +[data-code-block-theme=coy] div[data-type=codeBlock] .token.prolog, +[data-code-block-theme=coy] div[data-type=codeBlock] .token.doctype, +[data-code-block-theme=coy] div[data-type=codeBlock] .token.cdata { + color: #7D8B99; +} +[data-code-block-theme=coy] div[data-type=codeBlock] .token.punctuation { + color: #5F6364; +} +[data-code-block-theme=coy] div[data-type=codeBlock] .token.property, +[data-code-block-theme=coy] div[data-type=codeBlock] .token.tag, +[data-code-block-theme=coy] div[data-type=codeBlock] .token.boolean, +[data-code-block-theme=coy] div[data-type=codeBlock] .token.number, +[data-code-block-theme=coy] div[data-type=codeBlock] .token.function-name, +[data-code-block-theme=coy] div[data-type=codeBlock] .token.constant, +[data-code-block-theme=coy] div[data-type=codeBlock] .token.symbol, +[data-code-block-theme=coy] div[data-type=codeBlock] .token.deleted { + color: #c92c2c; +} +[data-code-block-theme=coy] div[data-type=codeBlock] .token.selector, +[data-code-block-theme=coy] div[data-type=codeBlock] .token.attr-name, +[data-code-block-theme=coy] div[data-type=codeBlock] .token.string, +[data-code-block-theme=coy] div[data-type=codeBlock] .token.char, +[data-code-block-theme=coy] div[data-type=codeBlock] .token.function, +[data-code-block-theme=coy] div[data-type=codeBlock] .token.builtin, +[data-code-block-theme=coy] div[data-type=codeBlock] .token.inserted { + color: #2f9c0a; +} +[data-code-block-theme=coy] div[data-type=codeBlock] .token.operator, +[data-code-block-theme=coy] div[data-type=codeBlock] .token.entity, +[data-code-block-theme=coy] div[data-type=codeBlock] .token.url, +[data-code-block-theme=coy] div[data-type=codeBlock] .token.variable { + color: #a67f59; + background: rgba(255, 255, 255, 0.5); +} +[data-code-block-theme=coy] div[data-type=codeBlock] .token.atrule, +[data-code-block-theme=coy] div[data-type=codeBlock] .token.attr-value, +[data-code-block-theme=coy] div[data-type=codeBlock] .token.keyword, +[data-code-block-theme=coy] div[data-type=codeBlock] .token.class-name { + color: #1990b8; +} +[data-code-block-theme=coy] div[data-type=codeBlock] .token.regex, +[data-code-block-theme=coy] div[data-type=codeBlock] .token.important { + color: #e90; +} +[data-code-block-theme=coy] div[data-type=codeBlock] .language-css .token.string, +[data-code-block-theme=coy] div[data-type=codeBlock] .style .token.string { + color: #a67f59; + background: rgba(255, 255, 255, 0.5); +} +[data-code-block-theme=coy] div[data-type=codeBlock] .token.important { + font-weight: normal; +} +[data-code-block-theme=coy] div[data-type=codeBlock] .token.bold { + font-weight: bold; +} +[data-code-block-theme=coy] div[data-type=codeBlock] .token.italic { + font-style: italic; +} +[data-code-block-theme=coy] div[data-type=codeBlock] .token.entity { + cursor: help; +} +[data-code-block-theme=coy] div[data-type=codeBlock] .token.namespace { + opacity: 0.7; +} +@media screen and (max-width: 767px) { + [data-code-block-theme=coy] div[data-type=codeBlock] pre[class*=language-]:before, +[data-code-block-theme=coy] div[data-type=codeBlock] pre[class*=language-]:after { + bottom: 14px; + box-shadow: none; + } +} +[data-code-block-theme=coy] div[data-type=codeBlock] pre[class*=language-].line-numbers.line-numbers { + padding-left: 0; +} +[data-code-block-theme=coy] div[data-type=codeBlock] pre[class*=language-].line-numbers.line-numbers code { + padding-left: 3.8em; +} +[data-code-block-theme=coy] div[data-type=codeBlock] pre[class*=language-].line-numbers.line-numbers .line-numbers-rows { + left: 0; +} +[data-code-block-theme=coy] div[data-type=codeBlock] pre[class*=language-][data-line] { + padding-top: 0; + padding-bottom: 0; + padding-left: 0; +} +[data-code-block-theme=coy] div[data-type=codeBlock] pre[data-line] code { + position: relative; + padding-left: 4em; +} +[data-code-block-theme=coy] div[data-type=codeBlock] pre .line-highlight { + margin-top: 0; +} +[data-code-block-theme=solarized-light] div[data-type=codeBlock] { + /* PrismJS 1.23.0 + https://prismjs.com/download.html#themes=prism-solarizedlight&languages=markup+css+clike+javascript */ + /* + Solarized Color Schemes originally by Ethan Schoonover + http://ethanschoonover.com/solarized + + Ported for PrismJS by Hector Matos + Website: https://krakendev.io + Twitter Handle: https://twitter.com/allonsykraken) + */ + /* + SOLARIZED HEX + --------- ------- + base03 #002b36 + base02 #073642 + base01 #586e75 + base00 #657b83 + base0 #839496 + base1 #93a1a1 + base2 #eee8d5 + base3 #fdf6e3 + yellow #b58900 + orange #cb4b16 + red #dc322f + magenta #d33682 + violet #6c71c4 + blue #268bd2 + cyan #2aa198 + green #859900 + */ + /* Code blocks */ + /* Inline code */ +} +[data-code-block-theme=solarized-light] div[data-type=codeBlock] code[class*=language-], +[data-code-block-theme=solarized-light] div[data-type=codeBlock] pre[class*=language-] { + color: #657b83; /* base00 */ + font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace; + font-size: 1em; + text-align: left; + white-space: pre; + word-spacing: normal; + word-break: normal; + word-wrap: normal; + line-height: 1.5; + -moz-tab-size: 4; + -o-tab-size: 4; + tab-size: 4; + -webkit-hyphens: none; + -moz-hyphens: none; + -ms-hyphens: none; + hyphens: none; +} +[data-code-block-theme=solarized-light] div[data-type=codeBlock] pre[class*=language-]::-moz-selection, [data-code-block-theme=solarized-light] div[data-type=codeBlock] pre[class*=language-] ::-moz-selection, +[data-code-block-theme=solarized-light] div[data-type=codeBlock] code[class*=language-]::-moz-selection, [data-code-block-theme=solarized-light] div[data-type=codeBlock] code[class*=language-] ::-moz-selection { + background: #073642; /* base02 */ +} +[data-code-block-theme=solarized-light] div[data-type=codeBlock] pre[class*=language-]::selection, [data-code-block-theme=solarized-light] div[data-type=codeBlock] pre[class*=language-] ::selection, +[data-code-block-theme=solarized-light] div[data-type=codeBlock] code[class*=language-]::selection, [data-code-block-theme=solarized-light] div[data-type=codeBlock] code[class*=language-] ::selection { + background: #073642; /* base02 */ +} +[data-code-block-theme=solarized-light] div[data-type=codeBlock] pre[class*=language-] { + padding: 1em; + margin: 0.5em 0; + overflow: auto; + border-radius: 0.3em; +} +[data-code-block-theme=solarized-light] div[data-type=codeBlock] :not(pre) > code[class*=language-], +[data-code-block-theme=solarized-light] div[data-type=codeBlock] pre[class*=language-] { + background-color: #fdf6e3; /* base3 */ +} +[data-code-block-theme=solarized-light] div[data-type=codeBlock] :not(pre) > code[class*=language-] { + padding: 0.1em; + border-radius: 0.3em; +} +[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.comment, +[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.prolog, +[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.doctype, +[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.cdata { + color: #93a1a1; /* base1 */ +} +[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.punctuation { + color: #586e75; /* base01 */ +} +[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.namespace { + opacity: 0.7; +} +[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.property, +[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.tag, +[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.boolean, +[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.number, +[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.constant, +[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.symbol, +[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.deleted { + color: #268bd2; /* blue */ +} +[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.selector, +[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.attr-name, +[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.string, +[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.char, +[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.builtin, +[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.url, +[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.inserted { + color: #2aa198; /* cyan */ +} +[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.entity { + color: #657b83; /* base00 */ + background: #eee8d5; /* base2 */ +} +[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.atrule, +[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.attr-value, +[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.keyword { + color: #859900; /* green */ +} +[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.function, +[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.class-name { + color: #b58900; /* yellow */ +} +[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.regex, +[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.important, +[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.variable { + color: #cb4b16; /* orange */ +} +[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.important, +[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.bold { + font-weight: bold; +} +[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.italic { + font-style: italic; +} +[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.entity { + cursor: help; +} + +.cherry-detail details { + background: rgba(248, 249, 250, 0.6666666667); + border-radius: 8px; + overflow: hidden; + margin-bottom: 10px; +} +.cherry-detail details summary { + user-select: none; + padding: 5px 10px; + background-color: #6c757d; + color: #fff; + border-radius: 8px; +} +.cherry-detail details .cherry-detail-body { + padding: 15px 25px 0 25px; +} + +.cherry-detail__multiple { + border-radius: 8px; + overflow: hidden; +} +.cherry-detail__multiple details { + margin-bottom: 1px; + border-radius: 0; + border: none; +} +.cherry-detail__multiple details summary { + border-radius: 0; +} + +.cherry-text-align__center table { + margin-left: auto; + margin-right: auto; +} + +.cherry-text-align__right table { + margin-left: auto; +} + +.cherry-panel { + margin: 10px 0; + overflow: hidden; + border-radius: 8px; + box-sizing: border-box; + border: 0.5px solid; +} +.cherry-panel .cherry-panel--title { + color: #fff; + padding: 5px 20px; +} +.cherry-panel .cherry-panel--title.cherry-panel--title__not-empty::before { + font-family: "ch-icon"; + margin: 0 12px 0 -6px; + vertical-align: bottom; +} +.cherry-panel .cherry-panel--body { + padding: 5px 20px; +} + +.cherry-panel__primary { + background-color: #cfe2ff; + color: #0a58ca; +} +.cherry-panel__primary .cherry-panel--title { + background-color: #0d6dfe; +} +.cherry-panel__primary .cherry-panel--title.cherry-panel--title__not-empty::before { + content: "\ea6a"; +} + +.cherry-panel__info { + background-color: #cff4fc; + color: #087990; +} +.cherry-panel__info .cherry-panel--title { + background-color: #099cba; +} +.cherry-panel__info .cherry-panel--title.cherry-panel--title__not-empty::before { + content: "\ea69"; +} + +.cherry-panel__warning { + background-color: #fff3cd; + color: #997404; +} +.cherry-panel__warning .cherry-panel--title { + background-color: #b38806; +} +.cherry-panel__warning .cherry-panel--title.cherry-panel--title__not-empty::before { + content: "\ea6b"; +} + +.cherry-panel__danger { + background-color: #f8d7da; + color: #b02a37; +} +.cherry-panel__danger .cherry-panel--title { + background-color: #dc3545; +} +.cherry-panel__danger .cherry-panel--title.cherry-panel--title__not-empty::before { + content: "\ea68"; +} + +.cherry-panel__success { + background-color: #d1e7dd; + color: #146c43; +} +.cherry-panel__success .cherry-panel--title { + background-color: #198754; +} +.cherry-panel__success .cherry-panel--title.cherry-panel--title__not-empty::before { + content: "\ea67"; +} + +.cherry .doing-resize-img { + -moz-user-select: none; + -webkit-user-select: none; + user-select: none; +} +.cherry .cherry-previewer img { + transition: all 0.1s; +} +.cherry .cherry-previewer-img-size-handler { + position: absolute; + box-shadow: 0 1px 4px 0 rgba(20, 81, 154, 0.5); + border: 1px solid #3582fb; + box-sizing: content-box; + pointer-events: none; +} +.cherry .cherry-previewer-img-size-handler .cherry-previewer-img-size-handler__points { + position: absolute; + height: 10px; + width: 10px; + margin-top: -7px; + margin-left: -7px; + border-radius: 9px; + background: #3582fb; + border: 2px solid #fff; + box-sizing: content-box; + box-shadow: 0px 2px 2px 0px rgba(20, 81, 154, 0.5); + pointer-events: all; +} +.cherry .cherry-previewer-img-size-handler .cherry-previewer-img-size-handler__background { + background-repeat: no-repeat; + background-size: 100% 100%; + opacity: 0.5; + width: 100%; + height: 100%; +} +.cherry .cherry-previewer-img-size-handler .cherry-previewer-img-size-handler__points-leftTop { + cursor: nw-resize; +} +.cherry .cherry-previewer-img-size-handler .cherry-previewer-img-size-handler__points-rightTop { + cursor: sw-resize; +} +.cherry .cherry-previewer-img-size-handler .cherry-previewer-img-size-handler__points-leftBottom { + cursor: sw-resize; +} +.cherry .cherry-previewer-img-size-handler .cherry-previewer-img-size-handler__points-rightBottom { + cursor: nw-resize; +} +.cherry .cherry-previewer-img-size-handler .cherry-previewer-img-size-handler__points-middleTop { + cursor: n-resize; +} +.cherry .cherry-previewer-img-size-handler .cherry-previewer-img-size-handler__points-middleBottom { + cursor: n-resize; +} +.cherry .cherry-previewer-img-size-handler .cherry-previewer-img-size-handler__points-leftMiddle { + cursor: e-resize; +} +.cherry .cherry-previewer-img-size-handler .cherry-previewer-img-size-handler__points-rightMiddle { + cursor: e-resize; +} +.cherry .cherry-previewer-table-content-handler .cherry-previewer-table-content-handler__input { + position: absolute; +} +.cherry .cherry-previewer-table-content-handler .cherry-previewer-table-content-handler__input textarea { + width: 100%; + height: 100%; + border: 0; + box-sizing: border-box; + resize: none; + outline: 1px solid #3582fb; + word-break: break-all; +} +.cherry .cherry-previewer-codeBlock-content-handler .cherry-previewer-codeBlock-content-handler__input { + position: absolute; +} +.cherry .cherry-previewer-table-hover-handler { + position: absolute; + pointer-events: none; + z-index: 999; +} +.cherry .cherry-previewer-table-hover-handler-container { + position: relative; + height: 100%; + padding: 0; + margin: 0; + list-style-type: none; +} +.cherry .cherry-previewer-table-hover-handler__symbol { + pointer-events: auto; + display: flex; + justify-content: center; + position: absolute; + color: #3582fb; + width: 12px; + height: 12px; + line-height: 12px; + border: 1px solid rgba(53, 130, 251, 0); + background-color: rgba(255, 255, 255, 0); + cursor: pointer; + transition: all 0.3s; +} +.cherry .cherry-previewer-table-hover-handler__symbol:hover { + background-color: rgba(53, 130, 251, 0.5333333333); + color: #FFF; +} +.cherry .cherry-highlight-line { + background-color: rgba(255, 255, 204, 0.5333333333); +} + +@media print { + img, figure, pre, table { + page-break-inside: avoid; + } + .cherry-previewer { + width: 100% !important; + max-height: none; + border-left: none !important; + } + .cherry-toolbar, .cherry-sidebar, .cherry-editor, .cherry-drag { + display: none !important; + } +} +.cherry-insert-formula-wrappler { + width: 610px !important; + height: 300px !important; + padding: 15px; + display: flex; + position: fixed !important; + z-index: 9999999; + box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15); + box-sizing: border-box; + border-radius: 10px; + background-color: #FFF !important; + overflow: hidden; +} +.cherry-insert-formula-wrappler .cherry-insert-formula-more { + position: absolute; + bottom: 0; + font-size: 12px; +} +.cherry-insert-formula-wrappler .cherry-insert-formula-tabs { + width: 100px; + height: 100%; + list-style: none; + padding: 0; + margin: 0; + margin-right: 10px; +} +.cherry-insert-formula-wrappler .cherry-insert-formula-tabs .cherry-insert-formula-tab { + width: 100%; + height: 30px; + text-align: center; + border: 1px solid #fff; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + cursor: pointer; +} +.cherry-insert-formula-wrappler .cherry-insert-formula-tabs .cherry-insert-formula-tab > a { + display: block; + text-decoration: none; + user-select: none; + user-select: none; +} +.cherry-insert-formula-wrappler .cherry-insert-formula-tabs .cherry-insert-formula-tab:not(:first-child) { + margin-top: 10px; +} +.cherry-insert-formula-wrappler .cherry-insert-formula-tabs .cherry-insert-formula-tab.active { + color: black; + border: 1px solid #000; + border-radius: 5px; +} +.cherry-insert-formula-wrappler .cherry-insert-formula-select { + height: 100%; + flex: 1; + display: none; + overflow-y: scroll; +} +.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary { + width: 130px; +} +.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary:not(:first-child) { + margin-top: 10px; +} +.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary .cherry-insert-formula-categary__func { + min-width: 200px; + height: 260px; + position: absolute; + left: 255px; + top: 0; + z-index: 100; + padding: 20px 10px; + background-color: #fff; + border-left: 1px solid rgba(0, 0, 0, 0.15); + display: none; + overflow-y: scroll; +} +.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary .cherry-insert-formula-categary__func .cherry-insert-formula-categary__func-categary { + border-top: 1px solid rgb(233, 236, 239); + border-bottom: 1px solid rgb(233, 236, 239); + margin-bottom: 10px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} +.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary .cherry-insert-formula-categary__func .cherry-insert-formula-categary__func-item { + cursor: pointer; + border: 1px solid #fff; + display: inline-block; + text-align: center; + background-color: #f8f9fa; + margin: 2px; + padding: 2px; + vertical-align: middle; + line-height: 30px; + border-color: #f8f9fa; + border-radius: 5px; +} +.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary .cherry-insert-formula-categary__func .cherry-insert-formula-categary__func-item:hover { + border-color: #dae0e5; + background-color: #e2e6ea; +} +.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary .cherry-insert-formula-categary__func .cherry-insert-formula-categary__func-item svg { + pointer-events: none; +} +.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary .cherry-insert-formula-categary__func:hover { + display: block; +} +.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary .cherry-insert-formula-categary__btn { + cursor: pointer; + display: inline-block; + font-weight: 400; + text-align: center; + vertical-align: middle; + user-select: none; + background-color: transparent; + border: 1px solid transparent; + padding: 0.375rem 0.75rem; + font-size: 1rem; + line-height: 1.5; + border-radius: 0.25rem; + width: 100%; +} +.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary .cherry-insert-formula-categary__btn > img { + width: 100%; + height: 60%; +} +.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary .cherry-insert-formula-categary__btn:hover { + color: #3582fb; +} +.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary .cherry-insert-formula-categary__btn:hover + .cherry-insert-formula-categary__func { + float: left; + display: block; +} +.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary .btn-light { + color: #212529; + background-color: #ebecf2; + border-color: #f8f9fa; +} +.cherry-insert-formula-wrappler .cherry-insert-formula-select.active { + display: block; +} + +.no-scrollbar { + -ms-overflow-style: none; + scrollbar-width: none; +} + +.no-scrollbar::-webkit-scrollbar { + display: none; +} + +.formula-utils-bubble-container { + width: 350px; + height: 40px; + background-color: #fff; + position: fixed; + left: 0; + top: 0; + display: none; + z-index: 1000; + box-sizing: border-box; +} +.formula-utils-bubble-container .formula-utils-btn { + flex: 1; + position: relative; +} +.formula-utils-bubble-container .formula-utils-btn > button { + width: 100%; + height: 100%; + border: 1px solid #fff; + background-color: #ebecf2; + cursor: pointer; + border-radius: 5px; +} +.formula-utils-bubble-container .formula-utils-btn > button:hover { + background-color: #eee; +} +.formula-utils-bubble-container .formula-utils-btn > button:focus { + outline: none; +} +.formula-utils-bubble-container .formula-utils-btn > button:active { + background-color: #ddd; +} +.formula-utils-bubble-container .formula-utils-btn > button:hover + .formula-utils-submenu { + display: block; +} +.formula-utils-bubble-container .formula-utils-btn .formula-utils-submenu { + position: absolute; + display: none; + width: 100%; + background-color: #fff; + border: 1px solid #f8f9fa; + left: 0; + top: 100%; + box-shadow: 0 0 5px #f8f9fa; +} +.formula-utils-bubble-container .formula-utils-btn .formula-utils-submenu:hover { + display: block; +} +.formula-utils-bubble-container .formula-utils-btn .formula-utils-submenu div { + width: 100%; + height: 40px; +} +.formula-utils-bubble-container .formula-utils-btn .formula-utils-submenu div button { + width: 100%; + height: 100%; + border: 1px solid #fff; + background-color: #fff; + cursor: pointer; +} +.formula-utils-bubble-container .formula-utils-btn .formula-utils-submenu div button:hover { + background-color: #eee; +} +.formula-utils-bubble-container .formula-utils-btn .formula-utils-submenu div button:focus { + outline: none; +} +.formula-utils-bubble-container .formula-utils-btn .formula-utils-submenu div button:active { + background-color: #ddd; +} + +.cherry { + display: flex; + flex-flow: row wrap; + align-items: stretch; + align-content: flex-start; + height: 100%; + min-height: 100px; + position: relative; +} +.cherry .cherry-editor, +.cherry .cherry-previewer { + max-height: calc(100% - 48px); + min-height: calc(100% - 48px); +} +.cherry .CodeMirror { + height: 100%; +} +.cherry.cherry--no-toolbar .cherry-toolbar, +.cherry.cherry--no-toolbar .cherry-sidebar { + height: 0; + display: none; +} +.cherry.cherry--no-toolbar .cherry-editor, +.cherry.cherry--no-toolbar .cherry-previewer { + max-height: 100%; + min-height: 100%; +} + +.cherry { + font-family: "Helvetica Neue", Arial, "Hiragino Sans GB", "STHeiti", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif; + font-size: 16px; + line-height: 27px; + color: #3f4a56; + background: #f8fafb; + box-shadow: 0 0 10px rgba(128, 145, 165, 0.2); +} +.cherry .ch-icon { + vertical-align: middle; +} +.cherry .clearfix { + zoom: 1; +} +.cherry .clearfix:after { + content: "."; + display: block; + height: 0; + clear: both; + visibility: hidden; + overflow: hidden; + font-size: 0; +} +.cherry.fullscreen { + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + z-index: 99; +} +.cherry .no-select { + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} +.cherry .cherry-insert-table-menu { + display: block; + position: fixed; + top: 40px; + left: 40px; + border-collapse: separate; + box-shadow: 0 0 10px rgba(128, 145, 165, 0.2); + padding: 4px; + border-radius: 3px; + width: auto; + height: auto; +} +.cherry .cherry-insert-table-menu-item { + padding: 7px; + border: 1px solid #dfe6ee; +} +.cherry .cherry-insert-table-menu-item.active { + background-color: #ebf3ff; +} +.cherry[data-toolbar-theme=dark] .cherry-insert-table-menu-item { + border-color: rgba(255, 255, 255, 0.2); +} +.cherry[data-toolbar-theme=dark] .cherry-insert-table-menu-item.active { + background-color: #d7e6fe; +} + +.cherry-dropdown { + position: absolute; + width: 130px; + min-height: 40px; + background: #fff; + box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.5); + margin-left: -60px; + z-index: 11; +} +.cherry-dropdown-item { + width: 100%; + padding: 0 15px; + text-align: left; + display: inline-block; + height: 36px; + line-height: 36px; + font-size: 14px; + font-style: normal; + cursor: pointer; + box-sizing: border-box; +} +.cherry-dropdown-item:hover { + background: #ebf3ff; + color: #5d9bfc; +} +.cherry-dropdown-item .ch-icon { + margin-right: 10px; +} +[data-toolbar-theme=dark] .cherry-dropdown { + background: #20304b; +} +[data-toolbar-theme=dark] .cherry-dropdown .cherry-dropdown-item { + background: transparent; + color: #d7e6fe; +} +[data-toolbar-theme=dark] .cherry-dropdown .cherry-dropdown-item:hover { + background: rgba(255, 255, 255, 0.1); + color: #fff; +} + +.cherry-toolbar { + position: relative; + display: flex; + justify-content: space-between; + padding: 0 20px; + height: 48px; + font-size: 14px; + line-height: 2.8; + flex-basis: 100%; + box-sizing: border-box; + z-index: 2; + user-select: none; + box-shadow: 0 0 10px rgba(128, 145, 165, 0.2); + background: white; + overflow: hidden; +} +.cherry-toolbar .icon-loading.loading { + display: inline-block; + width: 8px; + height: 8px; +} +.cherry-toolbar .icon-loading.loading:after { + content: " "; + display: block; + width: 8px; + height: 8px; + margin-left: 2px; + margin-top: -2px; + border-radius: 50%; + border: 2px solid #000; + border-color: #000 transparent #000 transparent; + animation: loading 1.2s linear infinite; +} +[data-toolbar-theme=dark] .cherry-toolbar { + background: #20304b; + box-shadow: 0 0 10px rgba(128, 145, 165, 0.2); +} +[data-toolbar-theme=dark] .cherry-toolbar .cherry-toolbar-button { + color: #d7e6fe; + background: transparent; +} +[data-toolbar-theme=dark] .cherry-toolbar .cherry-toolbar-button:hover { + color: #fff; + background: rgba(255, 255, 255, 0.1); +} +.cherry-toolbar .toolbar-left, +.cherry-toolbar .toolbar-right { + display: flex; + align-items: center; + height: 48px; + overflow: hidden; +} +.cherry-toolbar .toolbar-left { + flex: 0 0 auto; + margin-right: 20px; +} +.cherry-toolbar .toolbar-right { + flex: 0 1 auto; + flex-direction: row-reverse; + margin-left: 10px; + box-sizing: border-box; +} +.cherry-toolbar.preview-only .cherry-toolbar-button { + display: none; +} +.cherry-toolbar.preview-only .cherry-toolbar-switchPreview { + display: inline; +} +.cherry-toolbar-button { + float: left; + padding: 0 12px; + height: 38px; + color: #3f4a56; + background: transparent; + border: 1px solid transparent; + -webkit-transition: background-color ease-in-out 0.15s, color ease-in-out 0.15s, border-color ease-in-out 0.15s; + transition: background-color ease-in-out 0.15s, color ease-in-out 0.15s, border-color ease-in-out 0.15s; + cursor: pointer; + font-style: normal; +} +.cherry-toolbar-button:hover { + color: #5d9bfc; + background: #ebf3ff; +} +.cherry-toolbar-button.cherry-toolbar-split { + font-size: 0; + height: 19px; + padding: 0; + margin: 9.5px 4px; + border: 1px solid transparent; + border-left: 1px solid #dfe6ee; + pointer-events: none; + overflow: hidden; + opacity: 0.5; +} +.cherry-toolbar-button.disabled { + color: #ccc; +} + +.cherry .ace_search { + background: #fff; +} + +.cherry-sidebar { + width: 30px; + position: absolute; + top: 48px; + right: 7px; + z-index: 11; + bottom: 0; + overflow: hidden; +} +.cherry-sidebar .cherry-toolbar-button { + height: 30px; + padding: 3px 12px 0 6px; +} +.cherry-sidebar .cherry-toolbar-button:hover { + background: transparent; +} +.cherry-sidebar .cherry-toolbar-button .icon-loading.loading { + display: inline-block; + width: 8px; + height: 8px; +} +.cherry-sidebar .cherry-toolbar-button .icon-loading.loading:after { + content: " "; + display: block; + width: 8px; + height: 8px; + margin-left: 2px; + margin-top: -2px; + border-radius: 50%; + border: 2px solid #000; + border-color: #000 transparent #000 transparent; + animation: loading 1.2s linear infinite; +} +@keyframes loading { + 0% { + transform: rotate(0deg); + } + 100% { + transform: rotate(360deg); + } +} + +.cherry-bubble { + position: absolute; + display: flex; + align-items: center; + justify-content: flex-start; + flex-wrap: wrap; + font-size: 14px; + min-height: 35px; + min-width: 50px; + border: 1px solid #dfe6ee; + background-color: #fff; + box-shadow: 0 2px 15px -5px rgba(0, 0, 0, 0.5); + border-radius: 3px; + z-index: 8; +} +.cherry-bubble.cherry-bubble--centered { + left: 50%; + transform: translateX(-50%); +} +.cherry-bubble .cherry-bubble-top, +.cherry-bubble .cherry-bubble-bottom { + position: absolute; + left: 50%; + width: 0; + height: 0; + margin-left: -8px; + border-left: 8px solid rgba(0, 0, 0, 0); + border-right: 8px solid rgba(0, 0, 0, 0); +} +.cherry-bubble .cherry-bubble-top { + top: 0; + transform: translateY(-100%); + border-bottom: 8px solid #fff; +} +.cherry-bubble .cherry-bubble-bottom { + bottom: 0; + transform: translateY(100%); + border-top: 8px solid #fff; +} +.cherry-bubble .cherry-toolbar-button { + display: inline-flex; + align-items: center; + justify-content: center; + height: 35px; + cursor: pointer; + user-select: none; +} +.cherry-bubble .cherry-toolbar-button:hover { + border-color: #dfe6ee; + background-color: rgba(89, 128, 166, 0.05); +} +.cherry-bubble .cherry-toolbar-button.cherry-toolbar-split { + height: 65%; + min-height: 22.75px; +} +[data-toolbar-theme=dark] .cherry-bubble { + border-color: #20304b; + background: #20304b; +} +[data-toolbar-theme=dark] .cherry-bubble .cherry-toolbar-button { + color: #d7e6fe; + background: transparent; +} +[data-toolbar-theme=dark] .cherry-bubble .cherry-toolbar-button:hover { + color: #fff; + background: rgba(255, 255, 255, 0.1); +} +[data-toolbar-theme=dark] .cherry-bubble .cherry-bubble-top { + border-bottom-color: #20304b; +} +[data-toolbar-theme=dark] .cherry-bubble .cherry-bubble-bottom { + border-top-color: #20304b; +} +[data-toolbar-theme=dark] .cherry-bubble .cherry-toolbar-button:hover { + border-color: #20304b; +} + +.cherry-switch-paste .switch-btn--bg { + position: absolute; + width: 50%; + height: 100%; + box-sizing: border-box; + z-index: -1; + left: 0; + top: 0; + opacity: 0.3; + background-color: #5d9bfc; + border-radius: 2px; + transition: all 0.3s; +} +.cherry-switch-paste .cherry-toolbar-button { + display: inline-flex; + align-items: center; + justify-content: center; + width: 80px; + text-align: center; +} +.cherry-switch-paste .cherry-toolbar-button:hover { + border-color: transparent; +} +.cherry-switch-paste[data-type=text] .cherry-text-btn { + color: #3f4a56; +} +.cherry-switch-paste[data-type=text] .cherry-md-btn { + color: #5d9bfc; +} +.cherry-switch-paste[data-type=md] .cherry-md-btn { + color: #3f4a56; +} +.cherry-switch-paste[data-type=md] .cherry-text-btn { + color: #5d9bfc; +} +.cherry-switch-paste[data-type=md] .switch-btn--bg { + left: 50%; +} +[data-toolbar-theme=dark] .cherry-switch-paste .switch-btn--bg { + background-color: #fff; +} +[data-toolbar-theme=dark] .cherry-switch-paste[data-type=text] .cherry-text-btn { + color: #d7e6fe; +} +[data-toolbar-theme=dark] .cherry-switch-paste[data-type=text] .cherry-md-btn { + color: #fff; +} +[data-toolbar-theme=dark] .cherry-switch-paste[data-type=md] .cherry-md-btn { + color: #d7e6fe; +} +[data-toolbar-theme=dark] .cherry-switch-paste[data-type=md] .cherry-text-btn { + color: #fff; +} +[data-toolbar-theme=dark] .cherry-switch-paste[data-type=md] .switch-btn--bg { + left: 50%; +} + +.cherry-floatmenu { + z-index: 4; + display: none; + position: absolute; + left: 30px; + margin-left: 60px; + height: 27px; + line-height: 27px; + border-radius: 3px; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} +.cherry-floatmenu .cherry-toolbar-button { + float: left; + padding: 0 9px; + margin: 0; + height: 27px; + line-height: 27px; + font-size: 14px; + color: #3f4a56; + overflow: hidden; + vertical-align: middle; + text-align: center; + border: 0; + cursor: pointer; + font-style: normal; +} +.cherry-floatmenu .cherry-toolbar-button.cherry-toolbar-split { + border-left: 1px solid #dfe6ee; + width: 0; + padding: 0; + overflow: hidden; + height: 25px; +} +.cherry-floatmenu .cherry-toolbar-button .ch-icon { + color: #aaa; + font-size: 12px; +} +.cherry-floatmenu .cherry-toolbar-button:hover { + background: rgba(0, 0, 0, 0.05); +} +.cherry-floatmenu .cherry-toolbar-button:hover .ch-icon { + color: #3f4a56; +} + +.cherry-editor { + position: relative; + padding-top: 5px; + padding-right: 5px; + width: 50%; + box-sizing: border-box; + overflow: hidden; +} +.cherry-editor.cherry-editor--full { + width: 100%; + padding-right: 0; +} +.cherry-editor.cherry-editor--hidden { + display: none; +} +.cherry-editor-writing-style--focus::before { + content: ""; + display: block; + width: 100%; + position: absolute; + top: 0; + background: linear-gradient(to bottom, rgba(0, 0, 0, 0.0235294118), rgba(0, 0, 0, 0.2)); + pointer-events: none; + z-index: 11; +} +.cherry-editor-writing-style--focus::after { + content: ""; + display: block; + width: 100%; + position: absolute; + bottom: 0; + background: linear-gradient(to top, rgba(0, 0, 0, 0.0235294118), rgba(0, 0, 0, 0.2)); + pointer-events: none; + z-index: 11; +} +.cherry-editor-writing-style--typewriter .CodeMirror-lines { + position: relative; +} +.cherry-editor-writing-style--typewriter .CodeMirror-lines::before { + content: ""; + display: block; +} +.cherry-editor-writing-style--typewriter .CodeMirror-lines::after { + content: ""; + display: block; +} +.cherry-editor .CodeMirror { + font-family: "Helvetica Neue", Arial, "Hiragino Sans GB", "STHeiti", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif; + background: #f8fafb; + color: #3f4a56; +} +.cherry-editor .CodeMirror textarea { + font-size: 27px; +} +.cherry-editor .CodeMirror-lines { + padding: 15px 34px; +} +.cherry-editor .CodeMirror-lines .drawio, +.cherry-editor .CodeMirror-lines .base64 { + display: inline-block; + overflow: hidden; + text-overflow: ellipsis; + max-width: 80px; + white-space: nowrap; + vertical-align: bottom; + color: darkmagenta !important; + font-size: 12px !important; +} +.cherry-editor .cm-s-default .cm-header { + color: #3f4a56; +} +.cherry-editor .cm-s-default .cm-string { + color: #3f4a56; +} +.cherry-editor .cm-s-default .cm-comment { + color: #3582fb; + font-family: "Menlo", "Liberation Mono", "Consolas", "DejaVu Sans Mono", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; + font-size: 0.9em; +} +.cherry-editor .cm-s-default .cm-whitespace, +.cherry-editor .cm-tab { + font-family: "Menlo", "Liberation Mono", "Consolas", "DejaVu Sans Mono", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; + font-size: 0.9em; +} +.cherry-editor .cm-s-default .cm-quote { + color: #3582fb; +} +.cherry-editor .cm-s-default .cm-link { + color: #3582fb; +} +.cherry-editor .cm-s-default .cm-url { + background: #d7e6fe; + font-family: "Menlo", "Liberation Mono", "Consolas", "DejaVu Sans Mono", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; + font-size: 0.9em; +} +.cherry-editor .cm-s-default .cm-variable-2 { + color: #3f4a56; +} +.cherry-editor .cm-s-default .cm-variable-3 { + color: #3f4a56; +} +.cherry-editor .cm-s-default .cm-keyword { + color: #3f4a56; +} +.cherry-editor .cm-s-default .cm-fullWidth { + color: #d71616; + z-index: 3; + cursor: pointer; +} + +.cherry-drag { + width: 15px; + cursor: ew-resize; + position: absolute; + z-index: 12; + background: transparent; +} +.cherry-drag.cherry-drag--show { + width: 5px; + display: block; + background: #dfe6ee; +} +.cherry-drag.cherry-drag--hidden { + display: none; +} + +.cherry-editor-mask { + z-index: 10; + position: absolute; + display: none; + background: rgba(0, 0, 0, 0.2); +} +.cherry-editor-mask.cherry-editor-mask--show { + display: block; +} + +.cherry-previewer-mask { + z-index: 10; + position: absolute; + display: none; + background: rgba(0, 0, 0, 0.4); +} +.cherry-previewer-mask.cherry-previewer-mask--show { + display: block; +} + +.cherry-previewer-codeBlock-click-handler { + position: absolute; + z-index: 1; +} + +.cherry-previewer-codeBlock-hover-handler { + z-index: 0; + position: absolute; +} +.cherry-previewer-codeBlock-hover-handler .cherry-copy-code-block, +.cherry-previewer-codeBlock-hover-handler .cherry-edit-code-block { + position: relative; + width: 25px; + text-align: center; + height: 25px; + border: 1px solid #3582fb; + cursor: pointer; + float: right; + top: 15px; + border-radius: 5px; + margin-left: -27px; + transition: all 0.3s; + z-index: 2; + color: #3582fb; + background-color: #eee; + border-color: #3582fb; +} +.cherry-previewer-codeBlock-hover-handler .cherry-copy-code-block { + right: 10px; +} +.cherry-previewer-codeBlock-hover-handler .cherry-edit-code-block { + right: 45px; +} +.cherry-previewer-codeBlock-hover-handler .cherry-copy-code-block:hover, +.cherry-previewer-codeBlock-hover-handler .cherry-edit-code-block:hover { + color: #eee; + background-color: #3582fb; + border-color: #eee; +} +.cherry-previewer-codeBlock-hover-handler .cherry-code-preview-lang-select { + position: absolute; + transform: translate(2px, -50%); +} + +.cherry-previewer { + padding: 20px 45px 20px 20px; + border-left: 2px solid #ebedee; + width: 50%; + box-sizing: border-box; + background-color: #f8fafb; + min-height: auto; + overflow-y: auto; + -webkit-print-color-adjust: exact; +} +.cherry-previewer .cherry-mobile-previewer-content { + width: 375px; + height: 100%; + margin: 0 auto; + padding: 25px 30px; + overflow-y: scroll; + box-shadow: 0 0 60px rgba(0, 0, 0, 0.1); + box-sizing: border-box; +} +.cherry-previewer.cherry-previewer--hidden { + width: 0; + display: none; +} +.cherry-previewer.cherry-previewer--full { + width: 100%; +} +.cherry-previewer .cherry-list__upper-roman { + list-style: upper-roman; +} +.cherry-previewer .cherry-list__lower-greek { + list-style: lower-greek; +} +.cherry-previewer .cherry-list__cjk-ideographic { + list-style: cjk-ideographic; +} +.cherry-previewer .cherry-list__circle { + list-style: circle; +} +.cherry-previewer .cherry-list__square { + list-style: square; +} +[data-code-block-theme=default] .cherry-previewer .cherry-copy-code-block, +[data-code-block-theme=default] .cherry-previewer .cherry-edit-code-block, [data-code-block-theme=funky] .cherry-previewer .cherry-copy-code-block, +[data-code-block-theme=funky] .cherry-previewer .cherry-edit-code-block, [data-code-block-theme=solarized-light] .cherry-previewer .cherry-copy-code-block, +[data-code-block-theme=solarized-light] .cherry-previewer .cherry-edit-code-block, [data-code-block-theme=coy] .cherry-previewer .cherry-copy-code-block, +[data-code-block-theme=coy] .cherry-previewer .cherry-edit-code-block { + background-color: #3582fb; +} + +.cherry-color-wrap { + display: none; + position: fixed; + width: auto; + padding: 5px 10px; + z-index: 6; + background: #fff; + box-shadow: 0 0 10px rgba(128, 145, 165, 0.2); +} +.cherry-color-wrap h3 { + font-size: 12px; + margin: 0px; + font-weight: 400; +} +[data-toolbar-theme=dark] .cherry-color-wrap h3 { + color: #d7e6fe; +} +.cherry-color-wrap .cherry-color-text { + float: left; + width: 128px; + margin: 0 8px 0 5px; +} +.cherry-color-wrap .cherry-color-bg { + float: left; + width: 128px; + margin-right: 5px; +} +.cherry-color-wrap .cherry-color-item { + float: left; + width: 14px; + height: 14px; + border: 1px solid #fff; + cursor: pointer; +} +.cherry-color-wrap .cherry-color-item:hover { + border: 1px solid #000; +} + +.Cherry-Math svg { + max-width: 100%; +} + +.cherry-suggester-panel { + display: none; + position: absolute; + left: 0; + top: 0; + background: #fff; + border-radius: 2px; + max-height: 500px; + box-shadow: 0 2px 8px 1px rgba(0, 0, 0, 0.2); +} +.cherry-suggester-panel .cherry-suggester-panel__item { + border: none; + white-space: nowrap; + min-width: 50px; + padding: 5px 13px; + color: #333; + display: block; + cursor: pointer; +} +.cherry-suggester-panel .cherry-suggester-panel__item.cherry-suggester-panel__item--selected { + background-color: #f2f2f5; + text-decoration: none; + color: #eb7350; +} +.cherry-suggester-panel .cherry-suggester-panel__item > i { + display: inline-block; + transform: translateY(2px); + margin-right: 8px; +} + +.cherry-suggestion { + background-color: #ebf3ff; + color: #3582fb; + padding: 1px 4px; + border-radius: 3px; + cursor: pointer; +} + +.cherry-flex-toc { + z-index: 11; + position: absolute; + width: 160px; + height: calc(100% - 220px); + max-height: 600px; + right: 0; + top: 200px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + background: rgba(255, 255, 255, 0.2); + margin-right: 8px; + box-sizing: border-box; + user-select: none; + box-shadow: 0px 5px 11px rgba(51, 51, 51, 0.2); + border-radius: 10px; + transition: all 0.3s; +} +.cherry-flex-toc:hover { + background-color: #FFF; + width: 260px; +} +.cherry-flex-toc .cherry-toc-head { + border-bottom: 1px dashed rgba(51, 51, 51, 0.2); + padding: 5px; +} +.cherry-flex-toc .cherry-toc-head .cherry-toc-title { + font-size: 16px; + font-weight: bold; + padding-left: 5px; +} +.cherry-flex-toc .cherry-toc-head .ch-icon-chevronsLeft { + display: none; +} +.cherry-flex-toc .cherry-toc-head .ch-icon-chevronsRight, .cherry-flex-toc .cherry-toc-head .ch-icon-chevronsLeft { + padding: 5px; + position: absolute; + right: 0; + top: 0; +} +.cherry-flex-toc .cherry-toc-head i { + cursor: pointer; + padding: 5px 5px 0; +} +.cherry-flex-toc .cherry-toc-head i:hover { + color: #3582fb; +} +.cherry-flex-toc .cherry-toc-list { + overflow-y: auto; + height: calc(100% - 40px); + overflow-x: hidden; + width: 100%; + padding-bottom: 10px; +} +.cherry-flex-toc .cherry-toc-list .cherry-toc-one-a { + display: block; + text-decoration: none; + color: #000; + border-left: 5px solid rgba(51, 51, 51, 0.2); + height: 28px; + line-height: 28px; + transition: all 0.3s; + padding-left: 10px; + overflow: hidden; + word-break: break-all; + text-overflow: ellipsis; + cursor: pointer; +} +.cherry-flex-toc .cherry-toc-list .cherry-toc-one-a.current { + border-left-color: #3582fb; + color: #3582fb; +} +.cherry-flex-toc .cherry-toc-list .cherry-toc-one-a:hover { + border-left-color: rgba(53, 130, 251, 0.6666666667); + color: rgba(53, 130, 251, 0.6666666667); +} +.cherry-flex-toc .cherry-toc-list .cherry-toc-one-a__1 { + font-weight: bold; +} +.cherry-flex-toc .cherry-toc-list .cherry-toc-one-a__2 { + padding-left: 20px; +} +.cherry-flex-toc .cherry-toc-list .cherry-toc-one-a__3 { + padding-left: 40px; +} +.cherry-flex-toc .cherry-toc-list .cherry-toc-one-a__4 { + padding-left: 60px; +} +.cherry-flex-toc .cherry-toc-list .cherry-toc-one-a__5 { + padding-left: 80px; +} +.cherry-flex-toc.cherry-flex-toc__pure { + width: 30px; + height: calc(100% - 200px); + max-height: 600px; + background: rgba(255, 255, 255, 0); + box-shadow: none; + border-radius: 0; +} +.cherry-flex-toc.cherry-flex-toc__pure .cherry-toc-head { + height: 25px; + border-bottom: 1px dashed rgba(51, 51, 51, 0); +} +.cherry-flex-toc.cherry-flex-toc__pure .cherry-toc-head .cherry-toc-title { + display: none; +} +.cherry-flex-toc.cherry-flex-toc__pure .cherry-toc-head .ch-icon-chevronsRight { + display: none; +} +.cherry-flex-toc.cherry-flex-toc__pure .cherry-toc-head .ch-icon-chevronsLeft { + display: inline; +} +.cherry-flex-toc.cherry-flex-toc__pure .cherry-toc-list { + padding-left: 7px; +} +.cherry-flex-toc.cherry-flex-toc__pure .cherry-toc-list .cherry-toc-one-a { + overflow: hidden; + width: 0; + margin-bottom: 3px; + height: 5px; + border-left-width: 18px; +} + +/** 引入自带的主题 */ +/** 编辑器样式 */ +.cherry.theme__default { + /** 二级菜单 */ + /** 选中文字时弹出的按钮 */ + /** 光标focus到空行时联想出的按钮 */ +} +.cherry.theme__default .cherry-dropdown { + /** 选择颜色的按钮 */ +} +.cherry.theme__default .cherry-dropdown .cherry-dropdown-item { + /** 图标 */ +} +.cherry.theme__default .cherry-dropdown.cherry-color-wrap .cherry-color-text { + /** 色盘的标题 */ + /** 色盘里的每一个色块 */ +} +.cherry.theme__default .cherry-bubble { + /** 粘贴HTML内容时弹出的选择按钮 */ +} +/** 预览区域样式 */ +.cherry-markdown.theme__default { + /** 行内代码 */ + /** + * 代码块 + */ + /** + * 表格 + */ + /** 可以理解为上下结构的音标,下部是文字,上部是对应的拼音 */ + /** 脚注 */ + /** 行间公式 */ + /** 段落公式 */ + /** 目录 */ +} +.cherry-markdown.theme__default h1, .cherry-markdown.theme__default h2, .cherry-markdown.theme__default h3, .cherry-markdown.theme__default h4, .cherry-markdown.theme__default h5, .cherry-markdown.theme__default h6 { + /** 标题前面的锚点或序号 */ +} +.cherry-markdown.theme__default ul { + /** checklist 模式,未勾选时 */ + /** checklist 模式,勾选时 */ +} +.cherry-markdown.theme__default ul.cherry-list__upper-roman { + list-style: upper-roman; +} +.cherry-markdown.theme__default ul.cherry-list__lower-greek { + list-style: lower-greek; +} +.cherry-markdown.theme__default ul.cherry-list__cjk-ideographic { + list-style: cjk-ideographic; +} +.cherry-markdown.theme__default ul.cherry-list__circle { + list-style: circle; +} +.cherry-markdown.theme__default ul.cherry-list__square { + list-style: square; +} +.cherry-markdown.theme__default ruby { + /** 上部的拼音 */ +} +/** 色值可以参考:https://yeun.github.io/open-color/ */ +/** 工具栏样式 */ +/** 编辑区域样式 */ +/** 预览区域样式 */ +/** markdown样式 */ +/** 编辑器样式 */ +.cherry.theme__dark { + /** 顶部按钮, 选中文字时弹出的按钮, 光标focus到空行时联想出的按钮, 侧边栏按钮 */ + /** 二级菜单 */ + /** 选中文字时弹出的按钮 */ +} +.cherry.theme__dark .cherry-toolbar, .cherry.theme__dark .cherry-floatmenu, .cherry.theme__dark .cherry-bubble, .cherry.theme__dark .cherry-sidebar { + background: rgb(60, 60, 60); + border-color: rgb(60, 60, 60); +} +.cherry.theme__dark .cherry-toolbar .cherry-toolbar-button, .cherry.theme__dark .cherry-floatmenu .cherry-toolbar-button, .cherry.theme__dark .cherry-bubble .cherry-toolbar-button, .cherry.theme__dark .cherry-sidebar .cherry-toolbar-button { + color: #d7e6fe; +} +.cherry.theme__dark .cherry-toolbar .cherry-toolbar-button:hover, .cherry.theme__dark .cherry-floatmenu .cherry-toolbar-button:hover, .cherry.theme__dark .cherry-bubble .cherry-toolbar-button:hover, .cherry.theme__dark .cherry-sidebar .cherry-toolbar-button:hover { + background-color: rgb(69, 70, 70); + color: rgb(255, 255, 255) !important; + border-color: rgb(60, 60, 60); +} +.cherry.theme__dark .cherry-toolbar .cherry-toolbar-button:hover i, .cherry.theme__dark .cherry-floatmenu .cherry-toolbar-button:hover i, .cherry.theme__dark .cherry-bubble .cherry-toolbar-button:hover i, .cherry.theme__dark .cherry-sidebar .cherry-toolbar-button:hover i { + color: rgb(255, 255, 255) !important; +} +.cherry.theme__dark .cherry-dropdown { + background: rgb(60, 60, 60); + /** 选择颜色的按钮 */ +} +.cherry.theme__dark .cherry-dropdown .cherry-dropdown-item { + color: #d7e6fe; +} +.cherry.theme__dark .cherry-dropdown .cherry-dropdown-item:hover { + background-color: rgb(69, 70, 70); + color: rgb(255, 255, 255); +} +.cherry.theme__dark .cherry-dropdown.cherry-color-wrap { + /** 色盘的标题 */ + /** 色盘里的每一个色块 */ +} +.cherry.theme__dark .cherry-dropdown.cherry-color-wrap h3 { + color: #d7e6fe; +} +.cherry.theme__dark .cherry-dropdown.cherry-color-wrap .cherry-color-item { + border-color: rgb(69, 70, 70); +} +.cherry.theme__dark .cherry-dropdown.cherry-color-wrap .cherry-color-item:hover { + border-color: rgb(247, 133, 83); +} +.cherry.theme__dark .cherry-bubble { + /** 粘贴HTML内容时弹出的选择按钮 */ +} +.cherry.theme__dark .cherry-bubble .cherry-bubble-bottom { + border-top-color: rgb(60, 60, 60); +} +.cherry.theme__dark .cherry-editor { + background-color: rgb(37, 37, 38); +} +.cherry.theme__dark .cherry-editor .CodeMirror { + background-color: rgb(37, 37, 38); +} +.cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-cursor { + border-left: 1px solid rgb(255, 255, 255); +} +.cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-scroll span, .cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-scroll .cm-variable-2, .cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-scroll .cm-string, .cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-scroll .cm-strong, .cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-scroll .cm-em, .cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-scroll .cm-meta { + color: rgb(200, 200, 200); +} +.cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-scroll .cm-image-marker, .cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-scroll .cm-quote, .cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-scroll .cm-header { + color: rgb(247, 133, 83); +} +.cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-scroll .cm-url { + background-color: rgb(0, 0, 0); +} +.cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-scroll .cm-comment, .cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-scroll .cm-url { + color: rgb(255, 203, 107); +} +.cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-selected { + background-color: rgb(69, 70, 70); +} +.cherry.theme__dark .cherry-sidebar { + box-shadow: 0 0 10px rgba(128, 145, 165, 0.2); +} +.cherry.theme__dark .cherry-previewer { + background-color: rgb(51, 51, 51); +} +.cherry.theme__dark .cherry-previewer .cherry-mobile-previewer-content { + background-color: rgb(37, 37, 38); +} +.cherry.theme__dark .cherry-previewer-table-content-handler .cherry-previewer-table-content-handler__input textarea { + background-color: rgb(37, 37, 38); + color: rgb(200, 200, 200); + outline-color: rgb(247, 133, 83); +} + +/** 预览区域样式 */ +.cherry-markdown.theme__dark { + color: rgb(200, 200, 200); + background-color: rgb(51, 51, 51); + /** 行内代码 */ + /** + * 代码块 + */ + /** + * 表格 + */ + /** 可以理解为上下结构的音标,下部是文字,上部是对应的拼音 */ + /** 脚注 */ + /** 行间公式 */ + /** 段落公式 */ + /** 目录 */ +} +.cherry-markdown.theme__dark h1, .cherry-markdown.theme__dark h2, .cherry-markdown.theme__dark h3, .cherry-markdown.theme__dark h4, .cherry-markdown.theme__dark h5 { + color: rgb(247, 133, 83); +} +.cherry-markdown.theme__dark h1, .cherry-markdown.theme__dark h2, .cherry-markdown.theme__dark h3, .cherry-markdown.theme__dark h4, .cherry-markdown.theme__dark h5, .cherry-markdown.theme__dark h6 { + /** 标题前面的锚点或序号 */ +} +.cherry-markdown.theme__dark ul { + /** checklist 模式,未勾选时 */ + /** checklist 模式,勾选时 */ +} +.cherry-markdown.theme__dark ul.cherry-list__upper-roman { + list-style: upper-roman; +} +.cherry-markdown.theme__dark ul.cherry-list__lower-greek { + list-style: lower-greek; +} +.cherry-markdown.theme__dark ul.cherry-list__cjk-ideographic { + list-style: cjk-ideographic; +} +.cherry-markdown.theme__dark ul.cherry-list__circle { + list-style: circle; +} +.cherry-markdown.theme__dark ul.cherry-list__square { + list-style: square; +} +.cherry-markdown.theme__dark blockquote { + color: rgb(200, 200, 200); +} +.cherry-markdown.theme__dark a { + text-decoration: none; + color: rgb(255, 203, 107); +} +.cherry-markdown.theme__dark a:hover { + color: rgb(247, 133, 83); +} +.cherry-markdown.theme__dark hr { + border-color: rgb(105, 105, 105); +} +.cherry-markdown.theme__dark p code, .cherry-markdown.theme__dark li code { + background-color: rgb(0, 0, 0); + color: rgb(255, 203, 107); + border: 1px solid rgb(105, 105, 105); +} +.cherry-markdown.theme__dark table, .cherry-markdown.theme__dark .cherry-table { + color: rgb(200, 200, 200); +} +.cherry-markdown.theme__dark table th, .cherry-markdown.theme__dark .cherry-table th { + background-color: rgb(0, 0, 0); +} +.cherry-markdown.theme__dark table tr, .cherry-markdown.theme__dark table th, .cherry-markdown.theme__dark table td, .cherry-markdown.theme__dark .cherry-table tr, .cherry-markdown.theme__dark .cherry-table th, .cherry-markdown.theme__dark .cherry-table td { + border-color: rgb(105, 105, 105); +} +.cherry-markdown.theme__dark ruby { + /** 上部的拼音 */ +} +.cherry-markdown.theme__dark .footnote { + border-color: rgb(105, 105, 105); +} +.cherry-markdown.theme__dark .footnote .footnote-title { + background-color: rgb(0, 0, 0); +} +.cherry-markdown.theme__dark .footnote .one-footnote { + color: rgb(200, 200, 200); + border-color: rgb(105, 105, 105); +} +.cherry-markdown.theme__dark .footnote .one-footnote a.footnote-ref { + padding: 5px; +} +.cherry-markdown.theme__dark .toc { + border: 1px solid rgb(105, 105, 105); + margin-top: 15px; + margin-bottom: 15px; + margin-right: 15px; +} +.cherry-markdown.theme__dark .toc .toc-title { + padding: 15px; + margin-bottom: 15px; + border-bottom: 1px solid rgb(105, 105, 105); +} +.cherry-markdown.theme__dark .toc .toc-li { + border: none; + padding: 0 20px; +} +.cherry-markdown.theme__dark .toc .toc-li a { + color: rgb(200, 200, 200); +} +.cherry-markdown.theme__dark .toc .toc-li a:hover { + color: rgb(247, 133, 83); +} +.cherry-markdown.theme__dark figure svg path, .cherry-markdown.theme__dark figure svg rect, .cherry-markdown.theme__dark figure svg line { + stroke: rgb(255, 203, 107) !important; +} +.cherry-markdown.theme__dark figure svg text { + fill: rgb(250, 160, 0) !important; + stroke: none !important; +} +.cherry-markdown.theme__dark figure svg tspan { + fill: rgb(250, 160, 0) !important; +} +.cherry-markdown.theme__dark figure svg circle { + fill: rgb(236, 236, 255) !important; +} +.cherry-markdown.theme__dark figure svg circle.state-start { + fill: rgb(250, 160, 0) !important; +} +.cherry-markdown.theme__dark .cherry-highlight-line { + background-color: #151422; +} + +/** 色值可以参考:https://yeun.github.io/open-color/ */ +/** 工具栏样式 */ +/** 编辑区域样式 */ +/** 预览区域样式 */ +/** markdown样式 */ +/** 编辑器样式 */ +.cherry.theme__light { + /** 顶部按钮, 选中文字时弹出的按钮, 光标focus到空行时联想出的按钮, 侧边栏按钮 */ + /** 二级菜单 */ + /** 选中文字时弹出的按钮 */ +} +.cherry.theme__light .cherry-toolbar, .cherry.theme__light .cherry-floatmenu, .cherry.theme__light .cherry-bubble, .cherry.theme__light .cherry-sidebar { + background: white; + border-color: white; +} +.cherry.theme__light .cherry-toolbar .cherry-toolbar-button, .cherry.theme__light .cherry-floatmenu .cherry-toolbar-button, .cherry.theme__light .cherry-bubble .cherry-toolbar-button, .cherry.theme__light .cherry-sidebar .cherry-toolbar-button { + color: #3f4a56; +} +.cherry.theme__light .cherry-toolbar .cherry-toolbar-button:hover, .cherry.theme__light .cherry-floatmenu .cherry-toolbar-button:hover, .cherry.theme__light .cherry-bubble .cherry-toolbar-button:hover, .cherry.theme__light .cherry-sidebar .cherry-toolbar-button:hover { + background-color: #ebf3ff; + color: #5d9bfc !important; + border-color: white; +} +.cherry.theme__light .cherry-toolbar .cherry-toolbar-button:hover i, .cherry.theme__light .cherry-floatmenu .cherry-toolbar-button:hover i, .cherry.theme__light .cherry-bubble .cherry-toolbar-button:hover i, .cherry.theme__light .cherry-sidebar .cherry-toolbar-button:hover i { + color: #5d9bfc !important; +} +.cherry.theme__light .cherry-dropdown { + background: white; + /** 选择颜色的按钮 */ +} +.cherry.theme__light .cherry-dropdown .cherry-dropdown-item { + color: #3f4a56; +} +.cherry.theme__light .cherry-dropdown .cherry-dropdown-item:hover { + background-color: #ebf3ff; + color: #5d9bfc; +} +.cherry.theme__light .cherry-dropdown.cherry-color-wrap { + /** 色盘的标题 */ + /** 色盘里的每一个色块 */ +} +.cherry.theme__light .cherry-dropdown.cherry-color-wrap h3 { + color: #3f4a56; +} +.cherry.theme__light .cherry-dropdown.cherry-color-wrap .cherry-color-item { + border-color: #ebf3ff; +} +.cherry.theme__light .cherry-dropdown.cherry-color-wrap .cherry-color-item:hover { + border-color: rgb(247, 133, 83); +} +.cherry.theme__light .cherry-bubble { + /** 粘贴HTML内容时弹出的选择按钮 */ +} +.cherry.theme__light .cherry-bubble .cherry-bubble-bottom { + border-top-color: white; +} +.cherry.theme__light .cherry-editor { + background-color: rgb(255, 255, 255); +} +.cherry.theme__light .cherry-editor .CodeMirror { + background-color: rgb(255, 255, 255); +} +.cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-cursor { + border-left: 1px solid rgb(0, 0, 0); +} +.cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-scroll span, .cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-scroll .cm-variable-2, .cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-scroll .cm-string, .cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-scroll .cm-strong, .cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-scroll .cm-em, .cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-scroll .cm-meta { + color: rgb(63, 74, 86); +} +.cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-scroll .cm-image-marker, .cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-scroll .cm-quote, .cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-scroll .cm-header { + color: rgb(34, 139, 230); +} +.cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-scroll .cm-url { + background-color: rgb(215, 230, 254); +} +.cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-scroll .cm-comment, .cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-scroll .cm-url { + color: rgb(77, 171, 247); +} +.cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-selected { + background-color: #ebf3ff; +} +.cherry.theme__light .cherry-sidebar { + box-shadow: 0 0 10px rgba(128, 145, 165, 0.2); +} +.cherry.theme__light .cherry-previewer { + background-color: rgb(255, 255, 255); +} +.cherry.theme__light .cherry-previewer .cherry-mobile-previewer-content { + background-color: rgb(255, 255, 255); +} +.cherry.theme__light .cherry-previewer-table-content-handler .cherry-previewer-table-content-handler__input textarea { + background-color: rgb(255, 255, 255); + color: rgb(63, 74, 86); + outline-color: rgb(34, 139, 230); +} + +/** 预览区域样式 */ +.cherry-markdown.theme__light { + color: rgb(63, 74, 86); + background-color: rgb(255, 255, 255); + /** 行内代码 */ + /** + * 代码块 + */ + /** + * 表格 + */ + /** 可以理解为上下结构的音标,下部是文字,上部是对应的拼音 */ + /** 脚注 */ + /** 行间公式 */ + /** 段落公式 */ + /** 目录 */ +} +.cherry-markdown.theme__light h1, .cherry-markdown.theme__light h2, .cherry-markdown.theme__light h3, .cherry-markdown.theme__light h4, .cherry-markdown.theme__light h5 { + color: rgb(34, 139, 230); +} +.cherry-markdown.theme__light h1, .cherry-markdown.theme__light h2, .cherry-markdown.theme__light h3, .cherry-markdown.theme__light h4, .cherry-markdown.theme__light h5, .cherry-markdown.theme__light h6 { + /** 标题前面的锚点或序号 */ +} +.cherry-markdown.theme__light ul { + /** checklist 模式,未勾选时 */ + /** checklist 模式,勾选时 */ +} +.cherry-markdown.theme__light ul.cherry-list__upper-roman { + list-style: upper-roman; +} +.cherry-markdown.theme__light ul.cherry-list__lower-greek { + list-style: lower-greek; +} +.cherry-markdown.theme__light ul.cherry-list__cjk-ideographic { + list-style: cjk-ideographic; +} +.cherry-markdown.theme__light ul.cherry-list__circle { + list-style: circle; +} +.cherry-markdown.theme__light ul.cherry-list__square { + list-style: square; +} +.cherry-markdown.theme__light blockquote { + color: rgb(63, 74, 86); + background-color: rgb(231, 245, 255); + border-color: rgb(25, 113, 194); +} +.cherry-markdown.theme__light a { + text-decoration: none; + color: rgb(77, 171, 247); +} +.cherry-markdown.theme__light a:hover { + text-decoration: underline; + color: rgb(34, 139, 230); +} +.cherry-markdown.theme__light hr { + border-color: rgb(25, 113, 194); +} +.cherry-markdown.theme__light p code, .cherry-markdown.theme__light li code { + background-color: rgb(215, 230, 254); + color: rgb(77, 171, 247); + border: 1px solid rgb(25, 113, 194); +} +.cherry-markdown.theme__light table, .cherry-markdown.theme__light .cherry-table { + color: rgb(63, 74, 86); +} +.cherry-markdown.theme__light table th, .cherry-markdown.theme__light .cherry-table th { + background-color: rgb(215, 230, 254); +} +.cherry-markdown.theme__light table tr, .cherry-markdown.theme__light table th, .cherry-markdown.theme__light table td, .cherry-markdown.theme__light .cherry-table tr, .cherry-markdown.theme__light .cherry-table th, .cherry-markdown.theme__light .cherry-table td { + border-color: rgb(25, 113, 194); +} +.cherry-markdown.theme__light ruby { + /** 上部的拼音 */ +} +.cherry-markdown.theme__light .footnote { + border-color: rgb(25, 113, 194); +} +.cherry-markdown.theme__light .footnote .footnote-title { + background-color: rgb(215, 230, 254); +} +.cherry-markdown.theme__light .footnote .one-footnote { + color: rgb(63, 74, 86); + border-color: rgb(25, 113, 194); +} +.cherry-markdown.theme__light .footnote .one-footnote a.footnote-ref { + padding: 5px; +} +/** 色值可以参考:https://yeun.github.io/open-color/ */ +/** 工具栏样式 */ +/** 编辑区域样式 */ +/** 预览区域样式 */ +/** markdown样式 */ +/** 编辑器样式 */ +.cherry.theme__green { + /** 顶部按钮, 选中文字时弹出的按钮, 光标focus到空行时联想出的按钮, 侧边栏按钮 */ + /** 二级菜单 */ + /** 选中文字时弹出的按钮 */ +} +.cherry.theme__green .cherry-toolbar, .cherry.theme__green .cherry-floatmenu, .cherry.theme__green .cherry-bubble, .cherry.theme__green .cherry-sidebar { + background: #FFF; + border-color: #FFF; +} +.cherry.theme__green .cherry-toolbar .cherry-toolbar-button, .cherry.theme__green .cherry-floatmenu .cherry-toolbar-button, .cherry.theme__green .cherry-bubble .cherry-toolbar-button, .cherry.theme__green .cherry-sidebar .cherry-toolbar-button { + color: #2b8a3e; +} +.cherry.theme__green .cherry-toolbar .cherry-toolbar-button i, .cherry.theme__green .cherry-floatmenu .cherry-toolbar-button i, .cherry.theme__green .cherry-bubble .cherry-toolbar-button i, .cherry.theme__green .cherry-sidebar .cherry-toolbar-button i { + color: #2b8a3e; +} +.cherry.theme__green .cherry-toolbar .cherry-toolbar-button:hover, .cherry.theme__green .cherry-floatmenu .cherry-toolbar-button:hover, .cherry.theme__green .cherry-bubble .cherry-toolbar-button:hover, .cherry.theme__green .cherry-sidebar .cherry-toolbar-button:hover { + background-color: #51cf66; + color: #ebfbee !important; + border-color: #FFF; +} +.cherry.theme__green .cherry-toolbar .cherry-toolbar-button:hover i, .cherry.theme__green .cherry-floatmenu .cherry-toolbar-button:hover i, .cherry.theme__green .cherry-bubble .cherry-toolbar-button:hover i, .cherry.theme__green .cherry-sidebar .cherry-toolbar-button:hover i { + color: #ebfbee !important; +} +.cherry.theme__green .cherry-dropdown { + background: #FFF; + /** 选择颜色的按钮 */ +} +.cherry.theme__green .cherry-dropdown .cherry-dropdown-item { + color: #2b8a3e; +} +.cherry.theme__green .cherry-dropdown .cherry-dropdown-item:hover { + background-color: #51cf66; + color: #ebfbee; +} +.cherry.theme__green .cherry-dropdown.cherry-color-wrap { + /** 色盘的标题 */ + /** 色盘里的每一个色块 */ +} +.cherry.theme__green .cherry-dropdown.cherry-color-wrap h3 { + color: #2b8a3e; +} +.cherry.theme__green .cherry-dropdown.cherry-color-wrap .cherry-color-item { + border-color: #51cf66; +} +.cherry.theme__green .cherry-dropdown.cherry-color-wrap .cherry-color-item:hover { + border-color: #2b8a3e; +} +.cherry.theme__green .cherry-bubble { + /** 粘贴HTML内容时弹出的选择按钮 */ +} +.cherry.theme__green .cherry-bubble .cherry-bubble-bottom { + border-top-color: #FFF; +} +.cherry.theme__green .cherry-editor { + background-color: #FFF; +} +.cherry.theme__green .cherry-editor .CodeMirror { + background-color: #FFF; +} +.cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-cursor { + border-left: 1px solid #2b8a3e; +} +.cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-scroll span, .cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-scroll .cm-variable-2, .cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-scroll .cm-string, .cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-scroll .cm-strong, .cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-scroll .cm-em, .cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-scroll .cm-meta { + color: #2b8a3e; +} +.cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-scroll .cm-image-marker, .cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-scroll .cm-quote, .cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-scroll .cm-header { + color: #37b24d; +} +.cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-scroll .cm-url { + background-color: #ebfbee; +} +.cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-scroll .cm-comment, .cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-scroll .cm-url { + color: #40c057; +} +.cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-selected { + background-color: #b2f2bb; +} +.cherry.theme__green .cherry-sidebar { + box-shadow: 0 0 10px rgba(128, 145, 165, 0.2); +} +.cherry.theme__green .cherry-previewer { + background-color: #ebfbee; +} +.cherry.theme__green .cherry-previewer .cherry-mobile-previewer-content { + background-color: #FFF; +} +.cherry.theme__green .cherry-previewer-table-content-handler .cherry-previewer-table-content-handler__input textarea { + background-color: #FFF; + color: #2b8a3e; + outline-color: #37b24d; +} + +/** 预览区域样式 */ +.cherry-markdown.theme__green { + color: #2b8a3e; + background-color: #ebfbee; + /** 行内代码 */ + /** + * 代码块 + */ + /** + * 表格 + */ + /** 可以理解为上下结构的音标,下部是文字,上部是对应的拼音 */ + /** 脚注 */ + /** 行间公式 */ + /** 段落公式 */ + /** 目录 */ +} +.cherry-markdown.theme__green h1, .cherry-markdown.theme__green h2, .cherry-markdown.theme__green h3, .cherry-markdown.theme__green h4, .cherry-markdown.theme__green h5 { + color: #37b24d; + text-align: center; + margin-bottom: 35px; +} +.cherry-markdown.theme__green h1, .cherry-markdown.theme__green h2, .cherry-markdown.theme__green h3, .cherry-markdown.theme__green h4, .cherry-markdown.theme__green h5, .cherry-markdown.theme__green h6 { + /** 标题前面的锚点或序号 */ +} +.cherry-markdown.theme__green ul { + /** checklist 模式,未勾选时 */ + /** checklist 模式,勾选时 */ +} +.cherry-markdown.theme__green ul.cherry-list__upper-roman { + list-style: upper-roman; +} +.cherry-markdown.theme__green ul.cherry-list__lower-greek { + list-style: lower-greek; +} +.cherry-markdown.theme__green ul.cherry-list__cjk-ideographic { + list-style: cjk-ideographic; +} +.cherry-markdown.theme__green ul.cherry-list__circle { + list-style: circle; +} +.cherry-markdown.theme__green ul.cherry-list__square { + list-style: square; +} +.cherry-markdown.theme__green blockquote { + color: #2b8a3e; + background-color: #d3f9d8; + border-color: #2f9e44; +} +.cherry-markdown.theme__green a { + text-decoration: none; + color: #40c057; +} +.cherry-markdown.theme__green a:hover { + text-decoration: underline; + color: #37b24d; +} +.cherry-markdown.theme__green hr { + border-color: #2f9e44; +} +.cherry-markdown.theme__green p code, .cherry-markdown.theme__green li code { + background-color: #d3f9d8; + color: #40c057; + border: 1px solid #2f9e44; +} +.cherry-markdown.theme__green table, .cherry-markdown.theme__green .cherry-table { + color: #2b8a3e; +} +.cherry-markdown.theme__green table th, .cherry-markdown.theme__green .cherry-table th { + background-color: #d3f9d8; +} +.cherry-markdown.theme__green table tr, .cherry-markdown.theme__green table th, .cherry-markdown.theme__green table td, .cherry-markdown.theme__green .cherry-table tr, .cherry-markdown.theme__green .cherry-table th, .cherry-markdown.theme__green .cherry-table td { + border-color: #2f9e44; +} +.cherry-markdown.theme__green ruby { + /** 上部的拼音 */ +} +.cherry-markdown.theme__green .footnote { + border-color: #2f9e44; +} +.cherry-markdown.theme__green .footnote .footnote-title { + background-color: #d3f9d8; +} +.cherry-markdown.theme__green .footnote .one-footnote { + color: #2b8a3e; + border-color: #2f9e44; +} +.cherry-markdown.theme__green .footnote .one-footnote a.footnote-ref { + padding: 5px; +} +.cherry-markdown.theme__green .toc { + border-bottom: 1px solid #2f9e44; + padding-bottom: 15px; + margin-bottom: 30px; +} +.cherry-markdown.theme__green .toc .toc-title { + text-align: center; + padding-bottom: 15px; + margin-top: 30px; + margin-bottom: 15px; + border-bottom: 1px solid #2f9e44; +} +.cherry-markdown.theme__green .toc .toc-li { + border: none; +} +.cherry-markdown.theme__green .toc .toc-li a { + color: #2b8a3e; +} +.cherry-markdown.theme__green .toc .toc-li a:hover { + color: #37b24d; +} + +/** 色值可以参考:https://yeun.github.io/open-color/ */ +/** 工具栏样式 */ +/** 编辑区域样式 */ +/** 预览区域样式 */ +/** markdown样式 */ +/** 编辑器样式 */ +.cherry.theme__red { + /** 顶部按钮, 选中文字时弹出的按钮, 光标focus到空行时联想出的按钮, 侧边栏按钮 */ + /** 二级菜单 */ + /** 选中文字时弹出的按钮 */ +} +.cherry.theme__red .cherry-toolbar, .cherry.theme__red .cherry-floatmenu, .cherry.theme__red .cherry-bubble, .cherry.theme__red .cherry-sidebar { + background: #ffdeeb; + border-color: #ffdeeb; +} +.cherry.theme__red .cherry-toolbar .cherry-toolbar-button, .cherry.theme__red .cherry-floatmenu .cherry-toolbar-button, .cherry.theme__red .cherry-bubble .cherry-toolbar-button, .cherry.theme__red .cherry-sidebar .cherry-toolbar-button { + color: #c2255c; +} +.cherry.theme__red .cherry-toolbar .cherry-toolbar-button i, .cherry.theme__red .cherry-floatmenu .cherry-toolbar-button i, .cherry.theme__red .cherry-bubble .cherry-toolbar-button i, .cherry.theme__red .cherry-sidebar .cherry-toolbar-button i { + color: #c2255c; +} +.cherry.theme__red .cherry-toolbar .cherry-toolbar-button:hover, .cherry.theme__red .cherry-floatmenu .cherry-toolbar-button:hover, .cherry.theme__red .cherry-bubble .cherry-toolbar-button:hover, .cherry.theme__red .cherry-sidebar .cherry-toolbar-button:hover { + background-color: #f06595; + color: #fff0f6 !important; + border-color: #ffdeeb; +} +.cherry.theme__red .cherry-toolbar .cherry-toolbar-button:hover i, .cherry.theme__red .cherry-floatmenu .cherry-toolbar-button:hover i, .cherry.theme__red .cherry-bubble .cherry-toolbar-button:hover i, .cherry.theme__red .cherry-sidebar .cherry-toolbar-button:hover i { + color: #fff0f6 !important; +} +.cherry.theme__red .cherry-dropdown { + background: #ffdeeb; + /** 选择颜色的按钮 */ +} +.cherry.theme__red .cherry-dropdown .cherry-dropdown-item { + color: #c2255c; +} +.cherry.theme__red .cherry-dropdown .cherry-dropdown-item:hover { + background-color: #f06595; + color: #fff0f6; +} +.cherry.theme__red .cherry-dropdown.cherry-color-wrap { + /** 色盘的标题 */ + /** 色盘里的每一个色块 */ +} +.cherry.theme__red .cherry-dropdown.cherry-color-wrap h3 { + color: #c2255c; +} +.cherry.theme__red .cherry-dropdown.cherry-color-wrap .cherry-color-item { + border-color: #f06595; +} +.cherry.theme__red .cherry-dropdown.cherry-color-wrap .cherry-color-item:hover { + border-color: #a61e4d; +} +.cherry.theme__red .cherry-bubble { + /** 粘贴HTML内容时弹出的选择按钮 */ +} +.cherry.theme__red .cherry-bubble .cherry-bubble-bottom { + border-top-color: #ffdeeb; +} +.cherry.theme__red .cherry-editor { + background-color: #fff0f6; +} +.cherry.theme__red .cherry-editor .CodeMirror { + background-color: #fff0f6; +} +.cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-cursor { + border-left: 1px solid #a61e4d; +} +.cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-scroll span, .cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-scroll .cm-variable-2, .cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-scroll .cm-string, .cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-scroll .cm-strong, .cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-scroll .cm-em, .cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-scroll .cm-meta { + color: #a61e4d; +} +.cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-scroll .cm-image-marker, .cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-scroll .cm-quote, .cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-scroll .cm-header { + color: #d6336c; +} +.cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-scroll .cm-url { + background-color: #ffdeeb; +} +.cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-scroll .cm-comment, .cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-scroll .cm-url { + color: #f06595; +} +.cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-selected { + background-color: #fcc2d7; +} +.cherry.theme__red .cherry-sidebar { + box-shadow: 0 0 10px #fcc2d7; +} +.cherry.theme__red .cherry-previewer { + background-color: #fff0f6; +} +.cherry.theme__red .cherry-previewer .cherry-mobile-previewer-content { + background-color: #fff0f6; +} +.cherry.theme__red .cherry-previewer-table-content-handler .cherry-previewer-table-content-handler__input textarea { + background-color: #fff0f6; + color: #a61e4d; + outline-color: #d6336c; +} + +/** 预览区域样式 */ +.cherry-markdown.theme__red { + color: #a61e4d; + background-color: #fff0f6; + /** 行内代码 */ + /** + * 代码块 + */ + /** + * 表格 + */ + /** 可以理解为上下结构的音标,下部是文字,上部是对应的拼音 */ + /** 脚注 */ + /** 行间公式 */ + /** 段落公式 */ + /** 目录 */ +} +.cherry-markdown.theme__red h1, .cherry-markdown.theme__red h2, .cherry-markdown.theme__red h3, .cherry-markdown.theme__red h4, .cherry-markdown.theme__red h5 { + color: #d6336c; + text-align: center; + border-bottom: 1px dashed #c2255c; + padding-bottom: 15px; + margin-bottom: 25px; +} +.cherry-markdown.theme__red h1, .cherry-markdown.theme__red h2, .cherry-markdown.theme__red h3, .cherry-markdown.theme__red h4, .cherry-markdown.theme__red h5, .cherry-markdown.theme__red h6 { + /** 标题前面的锚点或序号 */ +} +.cherry-markdown.theme__red ul { + /** checklist 模式,未勾选时 */ + /** checklist 模式,勾选时 */ +} +.cherry-markdown.theme__red ul.cherry-list__upper-roman { + list-style: upper-roman; +} +.cherry-markdown.theme__red ul.cherry-list__lower-greek { + list-style: lower-greek; +} +.cherry-markdown.theme__red ul.cherry-list__cjk-ideographic { + list-style: cjk-ideographic; +} +.cherry-markdown.theme__red ul.cherry-list__circle { + list-style: circle; +} +.cherry-markdown.theme__red ul.cherry-list__square { + list-style: square; +} +.cherry-markdown.theme__red blockquote { + color: #a61e4d; + background-color: #ffdeeb; + border-color: #c2255c; +} +.cherry-markdown.theme__red a { + text-decoration: none; + color: #f06595; +} +.cherry-markdown.theme__red a:hover { + text-decoration: underline; + color: #d6336c; +} +.cherry-markdown.theme__red hr { + border-color: #c2255c; +} +.cherry-markdown.theme__red p code, .cherry-markdown.theme__red li code { + background-color: #ffdeeb; + color: #f06595; + border: 1px solid #c2255c; +} +.cherry-markdown.theme__red table, .cherry-markdown.theme__red .cherry-table { + color: #a61e4d; +} +.cherry-markdown.theme__red table th, .cherry-markdown.theme__red .cherry-table th { + background-color: #ffdeeb; +} +.cherry-markdown.theme__red table tr, .cherry-markdown.theme__red table th, .cherry-markdown.theme__red table td, .cherry-markdown.theme__red .cherry-table tr, .cherry-markdown.theme__red .cherry-table th, .cherry-markdown.theme__red .cherry-table td { + border-color: #c2255c; +} +.cherry-markdown.theme__red ruby { + /** 上部的拼音 */ +} +.cherry-markdown.theme__red .footnote { + border-color: #c2255c; +} +.cherry-markdown.theme__red .footnote .footnote-title { + background-color: #ffdeeb; +} +.cherry-markdown.theme__red .footnote .one-footnote { + color: #a61e4d; + border-color: #c2255c; +} +.cherry-markdown.theme__red .footnote .one-footnote a.footnote-ref { + padding: 5px; +} +.cherry-markdown.theme__red .toc { + border-bottom: 1px solid #c2255c; + padding-bottom: 15px; + margin-bottom: 30px; +} +.cherry-markdown.theme__red .toc .toc-title { + text-align: center; + padding-bottom: 15px; + margin-top: 30px; + margin-bottom: 15px; + border-bottom: 1px solid #c2255c; +} +.cherry-markdown.theme__red .toc .toc-li { + border: none; +} +.cherry-markdown.theme__red .toc .toc-li a { + color: #a61e4d; +} +.cherry-markdown.theme__red .toc .toc-li a:hover { + color: #d6336c; +} + +/** 工具栏样式 */ +/** 编辑区域样式 */ +/** 预览区域样式 */ +/** markdown样式 */ +/** 编辑器样式 */ +.cherry.theme__violet { + /** 顶部按钮, 选中文字时弹出的按钮, 光标focus到空行时联想出的按钮, 侧边栏按钮 */ + /** 二级菜单 */ + /** 选中文字时弹出的按钮 */ + /** 光标focus到空行时联想出的按钮 */ +} +.cherry.theme__violet .cherry-toolbar, .cherry.theme__violet .cherry-floatmenu, .cherry.theme__violet .cherry-bubble, .cherry.theme__violet .cherry-sidebar { + background: #FFF; + border-color: #FFF; +} +.cherry.theme__violet .cherry-toolbar .cherry-toolbar-button, .cherry.theme__violet .cherry-floatmenu .cherry-toolbar-button, .cherry.theme__violet .cherry-bubble .cherry-toolbar-button, .cherry.theme__violet .cherry-sidebar .cherry-toolbar-button { + color: #5f3dc4; +} +.cherry.theme__violet .cherry-toolbar .cherry-toolbar-button i, .cherry.theme__violet .cherry-floatmenu .cherry-toolbar-button i, .cherry.theme__violet .cherry-bubble .cherry-toolbar-button i, .cherry.theme__violet .cherry-sidebar .cherry-toolbar-button i { + color: #5f3dc4; +} +.cherry.theme__violet .cherry-toolbar .cherry-toolbar-button:hover, .cherry.theme__violet .cherry-floatmenu .cherry-toolbar-button:hover, .cherry.theme__violet .cherry-bubble .cherry-toolbar-button:hover, .cherry.theme__violet .cherry-sidebar .cherry-toolbar-button:hover { + background-color: #845ef7; + color: #f3f0ff !important; + border-color: #FFF; +} +.cherry.theme__violet .cherry-toolbar .cherry-toolbar-button:hover i, .cherry.theme__violet .cherry-floatmenu .cherry-toolbar-button:hover i, .cherry.theme__violet .cherry-bubble .cherry-toolbar-button:hover i, .cherry.theme__violet .cherry-sidebar .cherry-toolbar-button:hover i { + color: #f3f0ff !important; +} +.cherry.theme__violet .cherry-dropdown { + background: #FFF; + /** 选择颜色的按钮 */ +} +.cherry.theme__violet .cherry-dropdown .cherry-dropdown-item { + color: #5f3dc4; +} +.cherry.theme__violet .cherry-dropdown .cherry-dropdown-item:hover { + background-color: #845ef7; + color: #f3f0ff; +} +.cherry.theme__violet .cherry-dropdown.cherry-color-wrap { + /** 色盘的标题 */ + /** 色盘里的每一个色块 */ +} +.cherry.theme__violet .cherry-dropdown.cherry-color-wrap h3 { + color: #5f3dc4; +} +.cherry.theme__violet .cherry-dropdown.cherry-color-wrap .cherry-color-item { + border-color: #845ef7; +} +.cherry.theme__violet .cherry-dropdown.cherry-color-wrap .cherry-color-item:hover { + border-color: #5f3dc4; +} +.cherry.theme__violet .cherry-bubble { + /** 粘贴HTML内容时弹出的选择按钮 */ +} +.cherry.theme__violet .cherry-bubble .cherry-bubble-bottom { + border-top-color: #FFF; +} +.cherry.theme__violet .cherry-editor { + background-color: #FFF; +} +.cherry.theme__violet .cherry-editor .CodeMirror { + background-color: #FFF; +} +.cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-cursor { + border-left: 1px solid #5f3dc4; +} +.cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-scroll span, .cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-scroll .cm-variable-2, .cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-scroll .cm-string, .cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-scroll .cm-strong, .cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-scroll .cm-em, .cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-scroll .cm-meta { + color: #5f3dc4; +} +.cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-scroll .cm-image-marker, .cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-scroll .cm-quote, .cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-scroll .cm-header { + color: #7048e8; +} +.cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-scroll .cm-url { + background-color: #f3f0ff; +} +.cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-scroll .cm-comment, .cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-scroll .cm-url { + color: #7950f2; +} +.cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-selected { + background-color: #d0bfff; +} +.cherry.theme__violet .cherry-sidebar { + box-shadow: 0 0 10px rgba(128, 145, 165, 0.2); +} +.cherry.theme__violet .cherry-previewer { + background-color: #FFF; +} +.cherry.theme__violet .cherry-previewer .cherry-mobile-previewer-content { + background-color: #FFF; +} +.cherry.theme__violet .cherry-previewer-table-content-handler .cherry-previewer-table-content-handler__input textarea { + background-color: #FFF; + color: #5f3dc4; + outline-color: #7048e8; +} + +/** 预览区域样式 */ +.cherry-markdown.theme__violet { + color: #5f3dc4; + background-color: #FFF; + /** 行内代码 */ + /** + * 代码块 + */ + /** + * 表格 + */ + /** 可以理解为上下结构的音标,下部是文字,上部是对应的拼音 */ + /** 脚注 */ + /** 行间公式 */ + /** 段落公式 */ + /** 目录 */ +} +.cherry-markdown.theme__violet h1, .cherry-markdown.theme__violet h2, .cherry-markdown.theme__violet h3, .cherry-markdown.theme__violet h4, .cherry-markdown.theme__violet h5 { + color: #7048e8; + text-align: center; + margin-bottom: 35px; +} +.cherry-markdown.theme__violet h1, .cherry-markdown.theme__violet h2, .cherry-markdown.theme__violet h3, .cherry-markdown.theme__violet h4, .cherry-markdown.theme__violet h5, .cherry-markdown.theme__violet h6 { + /** 标题前面的锚点或序号 */ +} +.cherry-markdown.theme__violet ul { + /** checklist 模式,未勾选时 */ + /** checklist 模式,勾选时 */ +} +.cherry-markdown.theme__violet ul.cherry-list__upper-roman { + list-style: upper-roman; +} +.cherry-markdown.theme__violet ul.cherry-list__lower-greek { + list-style: lower-greek; +} +.cherry-markdown.theme__violet ul.cherry-list__cjk-ideographic { + list-style: cjk-ideographic; +} +.cherry-markdown.theme__violet ul.cherry-list__circle { + list-style: circle; +} +.cherry-markdown.theme__violet ul.cherry-list__square { + list-style: square; +} +.cherry-markdown.theme__violet blockquote { + color: #5f3dc4; + background-color: #e5dbff; + border-color: #6741d9; +} +.cherry-markdown.theme__violet a { + text-decoration: none; + color: #7950f2; +} +.cherry-markdown.theme__violet a:hover { + text-decoration: underline; + color: #7048e8; +} +.cherry-markdown.theme__violet hr { + border-color: #6741d9; +} +.cherry-markdown.theme__violet p code, .cherry-markdown.theme__violet li code { + background-color: #e5dbff; + color: #7950f2; + border: 1px solid #6741d9; +} +.cherry-markdown.theme__violet table, .cherry-markdown.theme__violet .cherry-table { + color: #5f3dc4; +} +.cherry-markdown.theme__violet table th, .cherry-markdown.theme__violet .cherry-table th { + background-color: #e5dbff; +} +.cherry-markdown.theme__violet table tr, .cherry-markdown.theme__violet table th, .cherry-markdown.theme__violet table td, .cherry-markdown.theme__violet .cherry-table tr, .cherry-markdown.theme__violet .cherry-table th, .cherry-markdown.theme__violet .cherry-table td { + border-color: #6741d9; +} +.cherry-markdown.theme__violet ruby { + /** 上部的拼音 */ +} +.cherry-markdown.theme__violet .footnote { + border-color: #6741d9; +} +.cherry-markdown.theme__violet .footnote .footnote-title { + background-color: #e5dbff; +} +.cherry-markdown.theme__violet .footnote .one-footnote { + color: #5f3dc4; + border-color: #6741d9; +} +.cherry-markdown.theme__violet .footnote .one-footnote a.footnote-ref { + padding: 5px; +} +.cherry-markdown.theme__violet .toc { + border-bottom: 1px solid #6741d9; + padding-bottom: 15px; + margin-bottom: 30px; +} +.cherry-markdown.theme__violet .toc .toc-title { + text-align: center; + padding-bottom: 15px; + margin-top: 30px; + margin-bottom: 15px; + border-bottom: 1px solid #6741d9; +} +.cherry-markdown.theme__violet .toc .toc-li { + border: none; +} +.cherry-markdown.theme__violet .toc .toc-li a { + color: #5f3dc4; +} +.cherry-markdown.theme__violet .toc .toc-li a:hover { + color: #7048e8; +} + +/** 色值可以参考:https://yeun.github.io/open-color/ */ +/** 工具栏样式 */ +/** 编辑区域样式 */ +/** 预览区域样式 */ +/** markdown样式 */ +/** 编辑器样式 */ +.cherry.theme__blue { + /** 顶部按钮, 选中文字时弹出的按钮, 光标focus到空行时联想出的按钮, 侧边栏按钮 */ + /** 二级菜单 */ + /** 选中文字时弹出的按钮 */ +} +.cherry.theme__blue .cherry-toolbar, .cherry.theme__blue .cherry-floatmenu, .cherry.theme__blue .cherry-bubble, .cherry.theme__blue .cherry-sidebar { + background: #e5dbff; + border-color: #e5dbff; +} +.cherry.theme__blue .cherry-toolbar .cherry-toolbar-button, .cherry.theme__blue .cherry-floatmenu .cherry-toolbar-button, .cherry.theme__blue .cherry-bubble .cherry-toolbar-button, .cherry.theme__blue .cherry-sidebar .cherry-toolbar-button { + color: #3b5bdb; +} +.cherry.theme__blue .cherry-toolbar .cherry-toolbar-button i, .cherry.theme__blue .cherry-floatmenu .cherry-toolbar-button i, .cherry.theme__blue .cherry-bubble .cherry-toolbar-button i, .cherry.theme__blue .cherry-sidebar .cherry-toolbar-button i { + color: #3b5bdb; +} +.cherry.theme__blue .cherry-toolbar .cherry-toolbar-button:hover, .cherry.theme__blue .cherry-floatmenu .cherry-toolbar-button:hover, .cherry.theme__blue .cherry-bubble .cherry-toolbar-button:hover, .cherry.theme__blue .cherry-sidebar .cherry-toolbar-button:hover { + background-color: #845ef7; + color: #edf2ff !important; + border-color: #e5dbff; +} +.cherry.theme__blue .cherry-toolbar .cherry-toolbar-button:hover i, .cherry.theme__blue .cherry-floatmenu .cherry-toolbar-button:hover i, .cherry.theme__blue .cherry-bubble .cherry-toolbar-button:hover i, .cherry.theme__blue .cherry-sidebar .cherry-toolbar-button:hover i { + color: #edf2ff !important; +} +.cherry.theme__blue .cherry-dropdown { + background: #e5dbff; + /** 选择颜色的按钮 */ +} +.cherry.theme__blue .cherry-dropdown .cherry-dropdown-item { + color: #3b5bdb; +} +.cherry.theme__blue .cherry-dropdown .cherry-dropdown-item:hover { + background-color: #845ef7; + color: #edf2ff; +} +.cherry.theme__blue .cherry-dropdown.cherry-color-wrap { + /** 色盘的标题 */ + /** 色盘里的每一个色块 */ +} +.cherry.theme__blue .cherry-dropdown.cherry-color-wrap h3 { + color: #3b5bdb; +} +.cherry.theme__blue .cherry-dropdown.cherry-color-wrap .cherry-color-item { + border-color: #845ef7; +} +.cherry.theme__blue .cherry-dropdown.cherry-color-wrap .cherry-color-item:hover { + border-color: #364fc7; +} +.cherry.theme__blue .cherry-bubble { + /** 粘贴HTML内容时弹出的选择按钮 */ +} +.cherry.theme__blue .cherry-bubble .cherry-bubble-bottom { + border-top-color: #e5dbff; +} +.cherry.theme__blue .cherry-editor { + background-color: #f3f0ff; +} +.cherry.theme__blue .cherry-editor .CodeMirror { + background-color: #f3f0ff; +} +.cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-cursor { + border-left: 1px solid #364fc7; +} +.cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-scroll span, .cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-scroll .cm-variable-2, .cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-scroll .cm-string, .cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-scroll .cm-strong, .cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-scroll .cm-em, .cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-scroll .cm-meta { + color: #364fc7; +} +.cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-scroll .cm-image-marker, .cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-scroll .cm-quote, .cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-scroll .cm-header { + color: #4263eb; +} +.cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-scroll .cm-url { + background-color: #e5dbff; +} +.cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-scroll .cm-comment, .cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-scroll .cm-url { + color: #5c7cfa; +} +.cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-selected { + background-color: #d0bfff; +} +.cherry.theme__blue .cherry-sidebar { + box-shadow: 0 0 10px #bac8ff; +} +.cherry.theme__blue .cherry-previewer { + background-color: #f3f0ff; +} +.cherry.theme__blue .cherry-previewer .cherry-mobile-previewer-content { + background-color: #f3f0ff; +} +.cherry.theme__blue .cherry-previewer-table-content-handler .cherry-previewer-table-content-handler__input textarea { + background-color: #f3f0ff; + color: #364fc7; + outline-color: #4263eb; +} + +/** 预览区域样式 */ +.cherry-markdown.theme__blue { + color: #364fc7; + background-color: #f3f0ff; + /** 行内代码 */ + /** + * 代码块 + */ + /** + * 表格 + */ + /** 可以理解为上下结构的音标,下部是文字,上部是对应的拼音 */ + /** 脚注 */ + /** 行间公式 */ + /** 段落公式 */ + /** 目录 */ +} +.cherry-markdown.theme__blue h1, .cherry-markdown.theme__blue h2, .cherry-markdown.theme__blue h3, .cherry-markdown.theme__blue h4, .cherry-markdown.theme__blue h5 { + color: #4263eb; + text-align: center; + border-bottom: 1px dashed #3b5bdb; + padding-bottom: 15px; + margin-bottom: 25px; +} +.cherry-markdown.theme__blue h1, .cherry-markdown.theme__blue h2, .cherry-markdown.theme__blue h3, .cherry-markdown.theme__blue h4, .cherry-markdown.theme__blue h5, .cherry-markdown.theme__blue h6 { + /** 标题前面的锚点或序号 */ +} +.cherry-markdown.theme__blue ul { + /** checklist 模式,未勾选时 */ + /** checklist 模式,勾选时 */ +} +.cherry-markdown.theme__blue ul.cherry-list__upper-roman { + list-style: upper-roman; +} +.cherry-markdown.theme__blue ul.cherry-list__lower-greek { + list-style: lower-greek; +} +.cherry-markdown.theme__blue ul.cherry-list__cjk-ideographic { + list-style: cjk-ideographic; +} +.cherry-markdown.theme__blue ul.cherry-list__circle { + list-style: circle; +} +.cherry-markdown.theme__blue ul.cherry-list__square { + list-style: square; +} +.cherry-markdown.theme__blue blockquote { + color: #364fc7; + background-color: #e5dbff; + border-color: #3b5bdb; +} +.cherry-markdown.theme__blue a { + text-decoration: none; + color: #5c7cfa; +} +.cherry-markdown.theme__blue a:hover { + text-decoration: underline; + color: #4263eb; +} +.cherry-markdown.theme__blue hr { + border-color: #3b5bdb; +} +.cherry-markdown.theme__blue p code, .cherry-markdown.theme__blue li code { + background-color: #e5dbff; + color: #5c7cfa; + border: 1px solid #3b5bdb; +} +.cherry-markdown.theme__blue table, .cherry-markdown.theme__blue .cherry-table { + color: #364fc7; +} +.cherry-markdown.theme__blue table th, .cherry-markdown.theme__blue .cherry-table th { + background-color: #e5dbff; +} +.cherry-markdown.theme__blue table tr, .cherry-markdown.theme__blue table th, .cherry-markdown.theme__blue table td, .cherry-markdown.theme__blue .cherry-table tr, .cherry-markdown.theme__blue .cherry-table th, .cherry-markdown.theme__blue .cherry-table td { + border-color: #3b5bdb; +} +.cherry-markdown.theme__blue ruby { + /** 上部的拼音 */ +} +.cherry-markdown.theme__blue .footnote { + border-color: #3b5bdb; +} +.cherry-markdown.theme__blue .footnote .footnote-title { + background-color: #e5dbff; +} +.cherry-markdown.theme__blue .footnote .one-footnote { + color: #364fc7; + border-color: #3b5bdb; +} +.cherry-markdown.theme__blue .footnote .one-footnote a.footnote-ref { + padding: 5px; +} +.cherry-markdown.theme__blue .toc { + border-bottom: 1px solid #3b5bdb; + padding-bottom: 15px; + margin-bottom: 30px; +} +.cherry-markdown.theme__blue .toc .toc-title { + text-align: center; + padding-bottom: 15px; + margin-top: 30px; + margin-bottom: 15px; + border-bottom: 1px solid #3b5bdb; +} +.cherry-markdown.theme__blue .toc .toc-li { + border: none; +} +.cherry-markdown.theme__blue .toc .toc-li a { + color: #364fc7; +} +.cherry-markdown.theme__blue .toc .toc-li a:hover { + color: #4263eb; +} \ No newline at end of file diff --git a/dist/cherry-markdown.d.ts b/dist/cherry-markdown.d.ts index 1ea1b82b..e5a14563 100644 --- a/dist/cherry-markdown.d.ts +++ b/dist/cherry-markdown.d.ts @@ -1,3 +1,3 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a5ed6ef572ce788c67ba71f62aca8ed761f61f8c6f500a17d83ae30466f30243 -size 133 +import Cherry, { MenuHookBase, SyntaxHookBase } from "./types/index"; +export { MenuHookBase, SyntaxHookBase }; +export default Cherry; \ No newline at end of file diff --git a/dist/cherry-markdown.engine.core.common.d.ts b/dist/cherry-markdown.engine.core.common.d.ts index 3d0a4a36..466d2a05 100644 --- a/dist/cherry-markdown.engine.core.common.d.ts +++ b/dist/cherry-markdown.engine.core.common.d.ts @@ -1,3 +1,3 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a8d8c68f52c6d728229fa6d2c0b846a7441821d7146598e47344a1abcdde6b95 -size 157 +import CherryEngine, { MenuHookBase, SyntaxHookBase } from "./types/index.engine.core"; +export { MenuHookBase, SyntaxHookBase }; +export default CherryEngine; \ No newline at end of file diff --git a/dist/cherry-markdown.engine.core.common.js b/dist/cherry-markdown.engine.core.common.js index 6ff375ca..9fc529b7 100644 --- a/dist/cherry-markdown.engine.core.common.js +++ b/dist/cherry-markdown.engine.core.common.js @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:223c179c4125a1cc1cdb398cf2222d83cfd4f9335711fcefd0856d42738fda9e -size 364264 +"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,t){return e(t={exports:{}},t.exports),t.exports}var r,a,i=function(e){return e&&e.Math==Math&&e},o=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")(),s=function(e){try{return!!e()}catch(e){return!0}},c=!s((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),l=Function.prototype,u=l.apply,f=l.call,d="object"==typeof Reflect&&Reflect.apply||(c?f.bind(u):function(){return f.apply(u,arguments)}),p=Function.prototype,h=p.bind,g=p.call,m=c&&h.bind(g,g),b=c?function(e){return e&&m(e)}:function(e){return e&&function(){return g.apply(e,arguments)}},v=function(e){return"function"==typeof e},y=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),_=Function.prototype.call,k=c?_.bind(_):function(){return _.apply(_,arguments)},w={}.propertyIsEnumerable,E=Object.getOwnPropertyDescriptor,S={f:E&&!w.call({1:2},1)?function(e){var t=E(this,e);return!!t&&t.enumerable}:w},A=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},x=b({}.toString),C=b("".slice),T=function(e){return C(x(e),8,-1)},$=o.Object,R=b("".split),O=s((function(){return!$("z").propertyIsEnumerable(0)}))?function(e){return"String"==T(e)?R(e,""):$(e)}:$,P=o.TypeError,L=function(e){if(null==e)throw P("Can't call method on "+e);return e},I=function(e){return O(L(e))},N=function(e){return"object"==typeof e?null!==e:v(e)},M={},j=function(e){return v(e)?e:void 0},D=function(e,t){return arguments.length<2?j(M[e])||j(o[e]):M[e]&&M[e][t]||o[e]&&o[e][t]},F=b({}.isPrototypeOf),B=D("navigator","userAgent")||"",H=o.process,z=o.Deno,U=H&&H.versions||z&&z.version,W=U&&U.v8;W&&(a=(r=W.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!a&&B&&(!(r=B.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=B.match(/Chrome\/(\d+)/))&&(a=+r[1]);var q=a,G=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&q&&q<41})),K=G&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Z=o.Object,Y=K?function(e){return"symbol"==typeof e}:function(e){var t=D("Symbol");return v(t)&&F(t.prototype,Z(e))},X=o.String,V=function(e){try{return X(e)}catch(e){return"Object"}},J=o.TypeError,Q=function(e){if(v(e))return e;throw J(V(e)+" is not a function")},ee=function(e,t){var n=e[t];return null==n?void 0:Q(n)},te=o.TypeError,ne=Object.defineProperty,re="__core-js_shared__",ae=o[re]||function(e,t){try{ne(o,e,{value:t,configurable:!0,writable:!0})}catch(n){o[e]=t}return t}(re,{}),ie=n((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(L(e))},ce=b({}.hasOwnProperty),le=Object.hasOwn||function(e,t){return ce(se(e),t)},ue=0,fe=Math.random(),de=b(1..toString),pe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+de(++ue+fe,36)},he=ie("wks"),ge=o.Symbol,me=ge&&ge.for,be=K?ge:ge&&ge.withoutSetter||pe,ve=function(e){if(!le(he,e)||!G&&"string"!=typeof he[e]){var t="Symbol."+e;G&&le(ge,e)?he[e]=ge[e]:he[e]=K&&me?me(t):be(t)}return he[e]},ye=o.TypeError,_e=ve("toPrimitive"),ke=function(e,t){if(!N(e)||Y(e))return e;var n,r=ee(e,_e);if(r){if(void 0===t&&(t="default"),n=k(r,e,t),!N(n)||Y(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&&v(n=e.toString)&&!N(r=k(n,e)))return r;if(v(n=e.valueOf)&&!N(r=k(n,e)))return r;if("string"!==t&&v(n=e.toString)&&!N(r=k(n,e)))return r;throw te("Can't convert object to primitive value")}(e,t)},we=function(e){var t=ke(e,"string");return Y(t)?t:t+""},Ee=o.document,Se=N(Ee)&&N(Ee.createElement),Ae=function(e){return Se?Ee.createElement(e):{}},xe=!y&&!s((function(){return 7!=Object.defineProperty(Ae("div"),"a",{get:function(){return 7}}).a})),Ce=Object.getOwnPropertyDescriptor,Te={f:y?Ce:function(e,t){if(e=I(e),t=we(t),xe)try{return Ce(e,t)}catch(e){}if(le(e,t))return A(!k(S.f,e,t),e[t])}},$e=/#|\.prototype\./,Re=function(e,t){var n=Pe[Oe(e)];return n==Ie||n!=Le&&(v(t)?s(t):!!t)},Oe=Re.normalize=function(e){return String(e).replace($e,".").toLowerCase()},Pe=Re.data={},Le=Re.NATIVE="N",Ie=Re.POLYFILL="P",Ne=Re,Me=b(b.bind),je=function(e,t){return Q(e),void 0===t?e:c?Me(e,t):function(){return e.apply(t,arguments)}},De=y&&s((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Fe=o.String,Be=o.TypeError,He=function(e){if(N(e))return e;throw Be(Fe(e)+" is not an object")},ze=o.TypeError,Ue=Object.defineProperty,We=Object.getOwnPropertyDescriptor,qe="enumerable",Ge="configurable",Ke="writable",Ze={f:y?De?function(e,t,n){if(He(e),t=we(t),He(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Ke in n&&!n[Ke]){var r=We(e,t);r&&r[Ke]&&(e[t]=n.value,n={configurable:Ge in n?n[Ge]:r[Ge],enumerable:qe in n?n[qe]:r[qe],writable:!1})}return Ue(e,t,n)}:Ue:function(e,t,n){if(He(e),t=we(t),He(n),xe)try{return Ue(e,t,n)}catch(e){}if("get"in n||"set"in n)throw ze("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Ye=y?function(e,t,n){return Ze.f(e,t,A(1,n))}:function(e,t,n){return e[t]=n,e},Xe=Te.f,Ve=function(e){var t=function(n,r,a){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,a)}return d(e,this,arguments)};return t.prototype=e.prototype,t},Je=function(e,t){var n,r,a,i,s,c,l,u,f=e.target,d=e.global,p=e.stat,h=e.proto,g=d?o:p?o[f]:(o[f]||{}).prototype,m=d?M:M[f]||Ye(M,f,{})[f],y=m.prototype;for(a in t)n=!Ne(d?a:f+(p?".":"#")+a,e.forced)&&g&&le(g,a),s=m[a],n&&(c=e.dontCallGetSet?(u=Xe(g,a))&&u.value:g[a]),i=n&&c?c:t[a],n&&typeof s==typeof i||(l=e.bind&&n?je(i,o):e.wrap&&n?Ve(i):h&&v(i)?b(i):i,(e.sham||i&&i.sham||s&&s.sham)&&Ye(l,"sham",!0),Ye(m,a,l),h&&(le(M,r=f+"Prototype")||Ye(M,r,{}),Ye(M[r],a,i),e.real&&y&&!y[a]&&Ye(y,a,i)))},Qe=b([].slice),et=o.Function,tt=b([].concat),nt=b([].join),rt={},at=c?et.bind:function(e){var t=Q(this),n=t.prototype,r=Qe(arguments,1),a=function(){var n=tt(r,Qe(arguments));return this instanceof a?function(e,t,n){if(!le(rt,t)){for(var r=[],a=0;a0?xt:At)(t)},Tt=function(e){var t=+e;return t!=t||0===t?0:Ct(t)},$t=Math.max,Rt=Math.min,Ot=function(e,t){var n=Tt(e);return n<0?$t(n+t,0):Rt(n,t)},Pt=Math.min,Lt=function(e){return e>0?Pt(Tt(e),9007199254740991):0},It=function(e){return Lt(e.length)},Nt=function(e){return function(t,n,r){var a,i=I(t),o=It(i),s=Ot(r,o);if(e&&n!=n){for(;o>s;)if((a=i[s++])!=a)return!0}else for(;o>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},Mt={includes:Nt(!0),indexOf:Nt(!1)},jt={},Dt=Mt.indexOf,Ft=b([].push),Bt=function(e,t){var n,r=I(e),a=0,i=[];for(n in r)!le(jt,n)&&le(r,n)&&Ft(i,n);for(;t.length>a;)le(r,n=t[a++])&&(~Dt(i,n)||Ft(i,n));return i},Ht=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],zt=Object.keys||function(e){return Bt(e,Ht)},Ut=y&&!De?Object.defineProperties:function(e,t){He(e);for(var n,r=I(t),a=zt(t),i=a.length,o=0;i>o;)Ze.f(e,n=a[o++],r[n]);return e},Wt={f:Ut},qt=D("document","documentElement"),Gt=ie("keys"),Kt=function(e){return Gt[e]||(Gt[e]=pe(e))},Zt="prototype",Yt="script",Xt=Kt("IE_PROTO"),Vt=function(){},Jt=function(e){return"<"+Yt+">"+e+""},Qt=function(e){e.write(Jt("")),e.close();var t=e.parentWindow.Object;return e=null,t},en=function(){try{kt=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;en="undefined"!=typeof document?document.domain&&kt?Qt(kt):(t=Ae("iframe"),n="java"+Yt+":",t.style.display="none",qt.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(Jt("document.F=Object")),e.close(),e.F):Qt(kt);for(var r=Ht.length;r--;)delete en[Zt][Ht[r]];return en()};jt[Xt]=!0;var tn=Object.create||function(e,t){var n;return null!==e?(Vt[Zt]=He(e),n=new Vt,Vt[Zt]=null,n[Xt]=e):n=en(),void 0===t?n:Wt.f(n,t)},nn=D("Reflect","construct"),rn=Object.prototype,an=[].push,on=s((function(){function e(){}return!(nn((function(){}),[],e)instanceof e)})),sn=!s((function(){nn((function(){}))})),cn=on||sn;Je({target:"Reflect",stat:!0,forced:cn,sham:cn},{construct:function(e,t){St(e),He(t);var n=arguments.length<3?e:St(arguments[2]);if(sn&&!on)return nn(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 d(an,r,t),new(d(at,e,r))}var a=n.prototype,i=tn(N(a)?a:rn),o=d(e,i,t);return N(o)?o:i}});var ln=M.Reflect.construct,un=ln,fn=Ze.f;Je({target:"Object",stat:!0,forced:Object.defineProperty!==fn,sham:!y},{defineProperty:fn});var dn=n((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)})),pn=dn,hn=pn;function gn(e,t){for(var n=0;n=51||!s((function(){var t=[];return(t.constructor={})[Pn]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},In=ve("isConcatSpreadable"),Nn=9007199254740991,Mn="Maximum allowed index exceeded",jn=o.TypeError,Dn=q>=51||!s((function(){var e=[];return e[In]=!1,e.concat()[0]!==e})),Fn=Ln("concat"),Bn=function(e){if(!N(e))return!1;var t=e[In];return void 0!==t?!!t:Cn(e)};Je({target:"Array",proto:!0,arity:1,forced:!Dn||!Fn},{concat:function(e){var t,n,r,a,i,o=se(this),s=On(o,0),c=0;for(t=-1,r=arguments.length;tNn)throw jn(Mn);for(n=0;n=Nn)throw jn(Mn);Tn(s,c++,i)}return s.length=c,s}});var Hn,zn,Un,Wn=o.String,qn=function(e){if("Symbol"===ut(e))throw TypeError("Cannot convert a Symbol value to a string");return Wn(e)},Gn=Ht.concat("length","prototype"),Kn={f:Object.getOwnPropertyNames||function(e){return Bt(e,Gn)}},Zn=o.Array,Yn=Math.max,Xn=Kn.f,Vn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Jn=function(e){try{return Xn(e)}catch(e){return function(e,t,n){for(var r=It(e),a=Ot(t,r),i=Ot(void 0===n?r:n,r),o=Zn(Yn(i-a,0)),s=0;av;v++)if((s||v in g)&&(p=m(d=g[v],v,h),e))if(t)_[v]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return v;case 2:kr(_,d)}else switch(e){case 4:return!1;case 7:kr(_,d)}return i?-1:r||a?a:_}},Er={forEach:wr(0),map:wr(1),filter:wr(2),some:wr(3),every:wr(4),find:wr(5),findIndex:wr(6),filterReject:wr(7)},Sr=Er.forEach,Ar=Kt("hidden"),xr="Symbol",Cr="prototype",Tr=_r.set,$r=_r.getterFor(xr),Rr=Object[Cr],Or=o.Symbol,Pr=Or&&Or[Cr],Lr=o.TypeError,Ir=o.QObject,Nr=Te.f,Mr=Ze.f,jr=Qn.f,Dr=S.f,Fr=b([].push),Br=ie("symbols"),Hr=ie("op-symbols"),zr=ie("wks"),Ur=!Ir||!Ir[Cr]||!Ir[Cr].findChild,Wr=y&&s((function(){return 7!=tn(Mr({},"a",{get:function(){return Mr(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=Nr(Rr,t);r&&delete Rr[t],Mr(e,t,n),r&&e!==Rr&&Mr(Rr,t,r)}:Mr,qr=function(e,t){var n=Br[e]=tn(Pr);return Tr(n,{type:xr,tag:e,description:t}),y||(n.description=t),n},Gr=function(e,t,n){e===Rr&&Gr(Hr,t,n),He(e);var r=we(t);return He(n),le(Br,r)?(n.enumerable?(le(e,Ar)&&e[Ar][r]&&(e[Ar][r]=!1),n=tn(n,{enumerable:A(0,!1)})):(le(e,Ar)||Mr(e,Ar,A(1,{})),e[Ar][r]=!0),Wr(e,r,n)):Mr(e,r,n)},Kr=function(e,t){He(e);var n=I(t),r=zt(n).concat(Vr(n));return Sr(r,(function(t){y&&!k(Zr,n,t)||Gr(e,t,n[t])})),e},Zr=function(e){var t=we(e),n=k(Dr,this,t);return!(this===Rr&&le(Br,t)&&!le(Hr,t))&&(!(n||!le(this,t)||!le(Br,t)||le(this,Ar)&&this[Ar][t])||n)},Yr=function(e,t){var n=I(e),r=we(t);if(n!==Rr||!le(Br,r)||le(Hr,r)){var a=Nr(n,r);return!a||!le(Br,r)||le(n,Ar)&&n[Ar][r]||(a.enumerable=!0),a}},Xr=function(e){var t=jr(I(e)),n=[];return Sr(t,(function(e){le(Br,e)||le(jt,e)||Fr(n,e)})),n},Vr=function(e){var t=e===Rr,n=jr(t?Hr:I(e)),r=[];return Sr(n,(function(e){!le(Br,e)||t&&!le(Rr,e)||Fr(r,Br[e])})),r};G||(Pr=(Or=function(){if(F(Pr,this))throw Lr("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?qn(arguments[0]):void 0,t=pe(e),n=function(e){this===Rr&&k(n,Hr,e),le(this,Ar)&&le(this[Ar],t)&&(this[Ar][t]=!1),Wr(this,t,A(1,e))};return y&&Ur&&Wr(Rr,t,{configurable:!0,set:n}),qr(t,e)})[Cr],tr(Pr,"toString",(function(){return $r(this).tag})),tr(Or,"withoutSetter",(function(e){return qr(pe(e),e)})),S.f=Zr,Ze.f=Gr,Wt.f=Kr,Te.f=Yr,Kn.f=Qn.f=Xr,er.f=Vr,nr.f=function(e){return qr(ve(e),e)},y&&Mr(Pr,"description",{configurable:!0,get:function(){return $r(this).description}})),Je({global:!0,constructor:!0,wrap:!0,forced:!G,sham:!G},{Symbol:Or}),Sr(zt(zr),(function(e){ar(e)})),Je({target:xr,stat:!0,forced:!G},{useSetter:function(){Ur=!0},useSimple:function(){Ur=!1}}),Je({target:"Object",stat:!0,forced:!G,sham:!y},{create:function(e,t){return void 0===t?tn(e):Kr(tn(e),t)},defineProperty:Gr,defineProperties:Kr,getOwnPropertyDescriptor:Yr}),Je({target:"Object",stat:!0,forced:!G},{getOwnPropertyNames:Xr}),ir(),lr(Or,xr),jt[Ar]=!0;var Jr=G&&!!Symbol.for&&!!Symbol.keyFor,Qr=ie("string-to-symbol-registry"),ea=ie("symbol-to-string-registry");Je({target:"Symbol",stat:!0,forced:!Jr},{for:function(e){var t=qn(e);if(le(Qr,t))return Qr[t];var n=D("Symbol")(t);return Qr[t]=n,ea[n]=t,n}});var ta=ie("symbol-to-string-registry");Je({target:"Symbol",stat:!0,forced:!Jr},{keyFor:function(e){if(!Y(e))throw TypeError(V(e)+" is not a symbol");if(le(ta,e))return ta[e]}});var na=D("JSON","stringify"),ra=b(/./.exec),aa=b("".charAt),ia=b("".charCodeAt),oa=b("".replace),sa=b(1..toString),ca=/[\uD800-\uDFFF]/g,la=/^[\uD800-\uDBFF]$/,ua=/^[\uDC00-\uDFFF]$/,fa=!G||s((function(){var e=D("Symbol")();return"[null]"!=na([e])||"{}"!=na({a:e})||"{}"!=na(Object(e))})),da=s((function(){return'"\\udf06\\ud834"'!==na("\udf06\ud834")||'"\\udead"'!==na("\udead")})),pa=function(e,t){var n=Qe(arguments),r=t;if((N(t)||void 0!==e)&&!Y(e))return Cn(t)||(t=function(e,t){if(v(r)&&(t=k(r,this,e,t)),!Y(t))return t}),n[1]=t,d(na,null,n)},ha=function(e,t,n){var r=aa(n,t-1),a=aa(n,t+1);return ra(la,e)&&!ra(ua,a)||ra(ua,e)&&!ra(la,r)?"\\u"+sa(ia(e,0),16):e};na&&Je({target:"JSON",stat:!0,arity:3,forced:fa||da},{stringify:function(e,t,n){var r=Qe(arguments),a=d(fa?pa:na,null,r);return da&&"string"==typeof a?oa(a,ca,ha):a}});var ga=!G||s((function(){er.f(1)}));Je({target:"Object",stat:!0,forced:ga},{getOwnPropertySymbols:function(e){var t=er.f;return t?t(se(e)):[]}}),ar("asyncIterator"),ar("hasInstance"),ar("isConcatSpreadable"),ar("iterator"),ar("match"),ar("matchAll"),ar("replace"),ar("search"),ar("species"),ar("split"),ar("toPrimitive"),ir(),ar("toStringTag"),lr(D("Symbol"),"Symbol"),ar("unscopables"),lr(o.JSON,"JSON",!0);var ma,ba,va,ya=M.Symbol,_a={},ka=Function.prototype,wa=y&&Object.getOwnPropertyDescriptor,Ea=le(ka,"name"),Sa={EXISTS:Ea,PROPER:Ea&&"something"===function(){}.name,CONFIGURABLE:Ea&&(!y||y&&wa(ka,"name").configurable)},Aa=!s((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),xa=Kt("IE_PROTO"),Ca=o.Object,Ta=Ca.prototype,$a=Aa?Ca.getPrototypeOf:function(e){var t=se(e);if(le(t,xa))return t[xa];var n=t.constructor;return v(n)&&t instanceof n?n.prototype:t instanceof Ca?Ta:null},Ra=ve("iterator"),Oa=!1;[].keys&&("next"in(va=[].keys())?(ba=$a($a(va)))!==Object.prototype&&(ma=ba):Oa=!0);var Pa=null==ma||s((function(){var e={};return ma[Ra].call(e)!==e}));ma=Pa?{}:tn(ma),v(ma[Ra])||tr(ma,Ra,(function(){return this}));var La={IteratorPrototype:ma,BUGGY_SAFARI_ITERATORS:Oa},Ia=La.IteratorPrototype,Na=function(){return this},Ma=Sa.PROPER,ja=La.BUGGY_SAFARI_ITERATORS,Da=ve("iterator"),Fa="keys",Ba="values",Ha="entries",za=function(){return this},Ua=function(e,t,n,r,a,i,o){!function(e,t,n,r){var a=t+" Iterator";e.prototype=tn(Ia,{next:A(+!r,n)}),lr(e,a,!1,!0),_a[a]=Na}(n,t,r);var s,c,l,u=function(e){if(e===a&&g)return g;if(!ja&&e in p)return p[e];switch(e){case Fa:case Ba:case Ha:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[Da]||p["@@iterator"]||a&&p[a],g=!ja&&h||u(a),m="Array"==t&&p.entries||h;if(m&&(s=$a(m.call(new e)))!==Object.prototype&&s.next&&(lr(s,f,!0,!0),_a[f]=za),Ma&&a==Ba&&h&&h.name!==Ba&&(d=!0,g=function(){return k(h,this)}),a)if(c={values:u(Ba),keys:i?g:u(Fa),entries:u(Ha)},o)for(l in c)(ja||d||!(l in p))&&tr(p,l,c[l]);else Je({target:t,proto:!0,forced:ja||d},c);return o&&p[Da]!==g&&tr(p,Da,g,{name:a}),_a[t]=g,c};Ze.f;var Wa="Array Iterator",qa=_r.set,Ga=_r.getterFor(Wa);Ua(Array,"Array",(function(e,t){qa(this,{type:Wa,target:I(e),index:0,kind:t})}),(function(){var e=Ga(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"),_a.Arguments=_a.Array;var Ka=ve("toStringTag");for(var Za 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 Ya=o[Za],Xa=Ya&&Ya.prototype;Xa&&ut(Xa)!==Ka&&Ye(Xa,Ka,Za),_a[Za]=_a.Array}var Va=ya,Ja=Va;ar("asyncDispose"),ar("dispose"),ar("matcher"),ar("metadata"),ar("observable"),ar("patternMatch"),ar("replaceAll");var Qa=Ja,ei=b("".charAt),ti=b("".charCodeAt),ni=b("".slice),ri=function(e){return function(t,n){var r,a,i=qn(L(t)),o=Tt(n),s=i.length;return o<0||o>=s?e?"":void 0:(r=ti(i,o))<55296||r>56319||o+1===s||(a=ti(i,o+1))<56320||a>57343?e?ei(i,o):r:e?ni(i,o,o+2):a-56320+(r-55296<<10)+65536}},ai={codeAt:ri(!1),charAt:ri(!0)}.charAt,ii="String Iterator",oi=_r.set,si=_r.getterFor(ii);Ua(String,"String",(function(e){oi(this,{type:ii,string:qn(e),index:0})}),(function(){var e,t=si(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=ai(n,r),t.index+=e.length,{value:e,done:!1})}));var ci=nr.f("iterator");function li(e){return li="function"==typeof Qa&&"symbol"==typeof ci?function(e){return typeof e}:function(e){return e&&"function"==typeof Qa&&e.constructor===Qa&&e!==Qa.prototype?"symbol":typeof e},li(e)}function ui(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fi(e,t){if(t&&("object"===li(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ui(e)}var di=s((function(){$a(1)}));Je({target:"Object",stat:!0,forced:di,sham:!Aa},{getPrototypeOf:function(e){return $a(se(e))}});var pi=M.Object.getPrototypeOf;function hi(e){return hi=Sn?pi:function(e){return e.__proto__||pi(e)},hi(e)}function gi(e,t,n){return t in e?hn(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mi=function(){this.__data__=[],this.size=0};var bi=function(e,t){return e===t||e!=e&&t!=t};var vi=function(e,t){for(var n=e.length;n--;)if(bi(e[n][0],t))return n;return-1},yi=Array.prototype.splice;var _i=function(e){var t=this.__data__,n=vi(t,e);return!(n<0)&&(n==t.length-1?t.pop():yi.call(t,n,1),--this.size,!0)};var ki=function(e){var t=this.__data__,n=vi(t,e);return n<0?void 0:t[n][1]};var wi=function(e){return vi(this.__data__,e)>-1};var Ei=function(e,t){var n=this.__data__,r=vi(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function Si(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=9007199254740991};var Qo=function(e){return null!=e&&Jo(e.length)&&!Wi(e)};var es=function(e){return qo(e)&&Qo(e)};var ts=function(){return!1},ns=n((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,a=r&&r.exports===n?Pi.Buffer:void 0,i=(a?a.isBuffer:void 0)||ts;e.exports=i})),rs=Function.prototype,as=Object.prototype,is=rs.toString,os=as.hasOwnProperty,ss=is.call(Object);var cs=function(e){if(!qo(e)||"[object Object]"!=zi(e))return!1;var t=Ho(e);if(null===t)return!0;var n=os.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&is.call(n)==ss},ls={};ls["[object Float32Array]"]=ls["[object Float64Array]"]=ls["[object Int8Array]"]=ls["[object Int16Array]"]=ls["[object Int32Array]"]=ls["[object Uint8Array]"]=ls["[object Uint8ClampedArray]"]=ls["[object Uint16Array]"]=ls["[object Uint32Array]"]=!0,ls["[object Arguments]"]=ls["[object Array]"]=ls["[object ArrayBuffer]"]=ls["[object Boolean]"]=ls["[object DataView]"]=ls["[object Date]"]=ls["[object Error]"]=ls["[object Function]"]=ls["[object Map]"]=ls["[object Number]"]=ls["[object Object]"]=ls["[object RegExp]"]=ls["[object Set]"]=ls["[object String]"]=ls["[object WeakMap]"]=!1;var us=function(e){return qo(e)&&Jo(e.length)&&!!ls[zi(e)]};var fs=function(e){return function(t){return e(t)}},ds=n((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,a=r&&r.exports===n&&Ri.process,i=function(){try{var e=r&&r.require&&r.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=i})),ps=ds&&ds.isTypedArray,hs=ps?fs(ps):us;var gs=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},ms=Object.prototype.hasOwnProperty;var bs=function(e,t,n){var r=e[t];ms.call(e,t)&&bi(r,n)&&(void 0!==n||t in e)||Ro(e,t,n)};var vs=function(e,t,n,r){var a=!n;n||(n={});for(var i=-1,o=t.length;++i-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Ms);var Fs=function(e,t){return Ds(Is(e,t,Os),e+"")};var Bs=function(e,t,n){if(!Ui(n))return!1;var r=typeof t;return!!("number"==r?Qo(n)&&ks(t,n.length):"string"==r&&t in n)&&bi(n[t],e)};var Hs=function(e){return Fs((function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(a--,i):void 0,o&&Bs(n[0],n[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++r1?arguments[1]:void 0)};Je({target:"Array",proto:!0,forced:[].forEach!=tc},{forEach:tc});var nc=qs("Array").forEach,rc=Array.prototype,ac={DOMTokenList:!0,NodeList:!0},ic=function(e){var t=e.forEach;return e===rc||F(rc,e)&&t===rc.forEach||le(ac,ut(e))?nc:t},oc=s((function(){zt(1)}));Je({target:"Object",stat:!0,forced:oc},{keys:function(e){return zt(se(e))}});var sc=M.Object.keys,cc=Er.filter,lc=Ln("filter");Je({target:"Array",proto:!0,forced:!lc},{filter:function(e){return cc(this,e,arguments.length>1?arguments[1]:void 0)}});var uc=qs("Array").filter,fc=Array.prototype,dc=function(e){var t=e.filter;return e===fc||F(fc,e)&&t===fc.filter?uc:t},pc=Er.findIndex,hc="findIndex",gc=!0;hc in[]&&Array(1)[hc]((function(){gc=!1})),Je({target:"Array",proto:!0,forced:gc},{findIndex:function(e){return pc(this,e,arguments.length>1?arguments[1]:void 0)}});var mc=qs("Array").findIndex,bc=Array.prototype,vc=function(e){var t=e.findIndex;return e===bc||F(bc,e)&&t===bc.findIndex?mc:t},yc=Ln("splice"),_c=o.TypeError,kc=Math.max,wc=Math.min;Je({target:"Array",proto:!0,forced:!yc},{splice:function(e,t){var n,r,a,i,o,s,c=se(this),l=It(c),u=Ot(e,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-u):(n=f-2,r=wc(kc(Tt(t),0),l-u)),l+n-r>9007199254740991)throw _c("Maximum allowed length exceeded");for(a=On(c,r),i=0;il-r+n;i--)delete c[i-1]}else if(n>r)for(i=l-r;i>u;i--)s=i+n-1,(o=i+r-1)in c?c[s]=c[o]:delete c[s];for(i=0;i1?arguments[1]:void 0)}});var Oc,Pc=qs("Array").map,Lc=Array.prototype,Ic=function(e){var t=e.map;return e===Lc||F(Lc,e)&&t===Lc.map?Pc:t},Nc="\t\n\v\f\r                 \u2028\u2029\ufeff",Mc=b("".replace),jc="["+Nc+"]",Dc=RegExp("^"+jc+jc+"*"),Fc=RegExp(jc+jc+"*$"),Bc=function(e){return function(t){var n=qn(L(t));return 1&e&&(n=Mc(n,Dc,"")),2&e&&(n=Mc(n,Fc,"")),n}},Hc={start:Bc(1),end:Bc(2),trim:Bc(3)},zc=Sa.PROPER,Uc=Hc.trim;Je({target:"String",proto:!0,forced:(Oc="trim",s((function(){return!!Nc[Oc]()||"​…᠎"!=="​…᠎"[Oc]()||zc&&Nc[Oc].name!==Oc})))},{trim:function(){return Uc(this)}});var Wc=qs("String").trim,qc=String.prototype,Gc=function(e){var t=e.trim;return"string"==typeof e||e===qc||F(qc,e)&&t===qc.trim?Wc:t},Kc=Hc.trim,Zc=o.parseInt,Yc=o.Symbol,Xc=Yc&&Yc.iterator,Vc=/^[+-]?0x/i,Jc=b(Vc.exec),Qc=8!==Zc(Nc+"08")||22!==Zc(Nc+"0x16")||Xc&&!s((function(){Zc(Object(Xc))}))?function(e,t){var n=Kc(qn(e));return Zc(n,t>>>0||(Jc(Vc,n)?16:10))}:Zc;Je({global:!0,forced:parseInt!=Qc},{parseInt:Qc});var el=M.parseInt;function tl(e,t){var n,r,a,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return/^\n/.test(e)?i?(null!==(n=null===(r=e.match(/^\n+/g))||void 0===r||null===(a=r[0])||void 0===a?void 0:a.length)&&void 0!==n?n:0)>1?"\n\n".concat(t):"\n".concat(t):"\n\n".concat(t):t}function nl(e,t){var n=(e.match(/\n/g)||[]).length;return""!==e&&(n-=2),n+t}Je({target:"Array",stat:!0},{isArray:Cn});var rl=M.Array.isArray,al=rl;function il(e,t){if(al(t))return t}function ol(e){return"undefined"!=typeof localStorage&&null!==localStorage.getItem("cherry-".concat(e))}function sl(){var e="false";return"undefined"!=typeof localStorage&&(e=localStorage.getItem("cherry-classicBr")),"true"===e}var cl=M.Object.getOwnPropertySymbols,ll=Te.f,ul=s((function(){ll(1)}));Je({target:"Object",stat:!0,forced:!y||ul,sham:!y},{getOwnPropertyDescriptor:function(e,t){return ll(I(e),t)}});var fl=n((function(e){var t=M.Object,n=e.exports=function(e,n){return t.getOwnPropertyDescriptor(e,n)};t.getOwnPropertyDescriptor.sham&&(n.sham=!0)})),dl=fl,pl=dl,hl=b([].concat),gl=D("Reflect","ownKeys")||function(e){var t=Kn.f(He(e)),n=er.f;return n?hl(t,n(e)):t};Je({target:"Object",stat:!0,sham:!y},{getOwnPropertyDescriptors:function(e){for(var t,n,r=I(e),a=Te.f,i=gl(r),o={},s=0;i.length>s;)void 0!==(n=a(r,t=i[s++]))&&Tn(o,t,n);return o}});var ml=M.Object.getOwnPropertyDescriptors,bl=Wt.f;Je({target:"Object",stat:!0,forced:Object.defineProperties!==bl,sham:!y},{defineProperties:bl});var vl=n((function(e){var t=M.Object,n=e.exports=function(e,n){return t.defineProperties(e,n)};t.defineProperties.sham&&(n.sham=!0)})),yl=vl,_l=o.RangeError,kl=String.fromCharCode,wl=String.fromCodePoint,El=b([].join),Sl=!!wl&&1!=wl.length;Je({target:"String",stat:!0,arity:1,forced:Sl},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,a=0;r>a;){if(t=+arguments[a++],Ot(t,1114111)!==t)throw _l(t+" is not a valid code point");n[a]=t<65536?kl(t):kl(55296+((t-=65536)>>10),t%1024+56320)}return El(n,"")}});var Al=M.String.fromCodePoint,xl=Mt.indexOf,Cl=b([].indexOf),Tl=!!Cl&&1/Cl([1],1,-0)<0,$l=Qs("indexOf");Je({target:"Array",proto:!0,forced:Tl||!$l},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return Tl?Cl(this,e,t)||0:xl(this,e,t)}});var Rl,Ol,Pl=qs("Array").indexOf,Ll=Array.prototype,Il=function(e){var t=e.indexOf;return e===Ll||F(Ll,e)&&t===Ll.indexOf?Pl:t},Nl=Il;function Ml(e,t){var n=sc(e);if(cl){var r=cl(e);t&&(r=dc(r).call(r,(function(t){return pl(e,t).enumerable}))),n.push.apply(n,r)}return n}function jl(e){for(var t=1;t":">","&":"&",'"':""","'":"'"},Fl={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},Bl=jl(jl(jl(jl(jl(jl({},{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:"♦"}),Hl=sc(Bl),zl=Ic(Hl).call(Hl,(function(e){return Bl[e].replace(/^&(\w+);$/g,(function(e,t){return t.toLowerCase()}))})),Ul=function(e){return"string"!=typeof e||e.length<=0},Wl=function(e){try{var t=Al(e);return!Ul(t)}catch(e){return!1}};var ql=["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("|"),Gl=["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("|"),Kl=new RegExp(Js(Rl=Js(Ol="^(".concat(ql,"|")).call(Ol,Gl,"|")).call(Rl,"br|img|hr",")( |$|/)"),"i");function Zl(e,t){return"string"!=typeof e?"":t?e.replace(/[<>&]/g,(function(e){return Dl[e]||e})):e.replace(/[<>&"']/g,(function(e){return Dl[e]||e}))}function Yl(e,t){if("string"!=typeof e)return"";var n=Xl(e);return n=function(e){return"string"!=typeof e?"":e.replace(/&(\w+);?/g,(function(e,t){return Fl[t]||e}))}(n),Zl(n,t)}function Xl(e){return e.replace(/&#(\d+);?/g,(function(e,t){return Bl[t]||e}))}function Vl(e){var t=function(e){return e.replace(/&#x([0-9a-f]+);?/gi,(function(e,t){var n=el("0x".concat(t),16);try{return Al(n)}catch(t){return e}}))}(function(e){return e.replace(/&#(\d+);?/g,(function(e,t){try{return Al(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===Nl(n).call(n,r.toLowerCase())}function Jl(e){return encodeURI(e).replace(/%25/g,"%")}function Ql(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}var eu=0,tu=function(e){xn(n,Tc);var t=Ql(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{needCache:!1},a=r.needCache,i=r.defaultCache,o=void 0===i?{}:i;return bn(this,n),(e=t.call(this,{})).needCache=!!a,e.sign="",a&&(e.cache=o||{},e.cacheKey="~~C".concat(eu),eu+=1),e}return mn(n,[{key:"initBrReg",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.classicBr=ol("classicBr")?sl():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,a,i=null!==(t=null===(n=this.$engine.htmlWhiteListAppend)||void 0===n?void 0:n.split("|"))&&void 0!==t?t:[];i=dc(r=Ic(i).call(i,(function(e){return/[a-z-]+/gi.test(e)?e:null}))).call(r,(function(e){return null!==e}));var o=Js(i).call(i,ql).join("|");this.removeBrAfterBlock=new RegExp("<(".concat(o,")(>| [^>]*?>)[^\\S\\n]*?\\n"),"ig"),this.removeBrBeforeBlock=new RegExp("\\n[^\\S\\n]*?<\\/(".concat(o,")>[^\\S\\n]*?\\n"),"ig"),this.removeNewlinesBetweenTags=new RegExp(Js(a="<\\/(".concat(o,")>[^\\S\\n]*?\\n([^\\S\\n]*?)<(")).call(a,o,")(>| [^>]*?>)"),"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),a=new RegExp("~~C\\d+I".concat(n.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,"\\w+\\$"),"g").test(e);return r&&!a}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,a=n.contents,i=Ic(a).call(a,t),o="",s=0;s2&&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:"",u=null!==(a=null===(i=t.match(/\n+$/))||void 0===i?void 0:i[0])&&void 0!==a?a:"";return c?tl(t,e):Js(o=Js(s="".concat(l)).call(s,e)).call(o,u)}},{key:"getLineCount",value:function(e){var t,r,a,i=e,o=null!==(t=null===(r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").match(/^\n+/g))||void 0===r||null===(a=r[0])||void 0===a?void 0:a.length)&&void 0!==t?t:0;o=1===o?1:0,i=i.replace(/^\n+/g,"");var s=new RegExp("\n*~~C\\d+I(?:".concat(n.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")?\\w+?_L(\\d+)\\$"),"g"),c=0;return i=i.replace(s,(function(e,t){return c+=el(t,10),e.replace(/^\n+/g,"")})),o+c+(i.match(/\n/g)||[]).length+1}},{key:"pushCache",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this.needCache){var i=r||this.$engine.md5(e);return this.cache[i]={content:e,using:!0},Js(t=Js(n="".concat(this.cacheKey,"I")).call(n,i,"_L")).call(t,a,"$")}}},{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=sc(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,Js(n=Js(r="".concat(this.cacheKey,"I")).call(r,this.sign,"_L")).call(n,a,"$")):this.toHtml(e,t)}},{key:"mounted",value:function(){}},{key:"signWithCache",value:function(e){return!1}}]),n}();gi(tu,"HOOK_TYPE",Cc.PAR),gi(tu,"IN_PARAGRAPH_CACHE_KEY_PREFIX","!"),gi(tu,"IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX","\\!");var nu=s((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),ru=Object.isExtensible,au=s((function(){ru(1)}))||nu?function(e){return!!N(e)&&((!nu||"ArrayBuffer"!=T(e))&&(!ru||ru(e)))}:ru,iu=!s((function(){return Object.isExtensible(Object.preventExtensions({}))})),ou=n((function(e){var t=Ze.f,n=!1,r=pe("meta"),a=0,i=function(e){t(e,r,{value:{objectID:"O"+a++,weakData:{}}})},o=e.exports={enable:function(){o.enable=function(){},n=!0;var e=Kn.f,t=b([].splice),a={};a[r]=1,e(a).length&&(Kn.f=function(n){for(var a=e(n),i=0,o=a.length;ii;i++)if((s=m(e[i]))&&F(bu,s))return s;return new mu(!1)}r=pu(e,a)}for(c=r.next;!(l=k(c,r)).done;){try{s=m(l.value)}catch(e){hu(r,"throw",e)}if("object"==typeof s&&s&&F(bu,s))return s}return new mu(!1)},yu=o.TypeError,_u=function(e,t){if(F(t,e))return e;throw yu("Incorrect invocation")},ku=Ze.f,wu=Er.forEach,Eu=_r.set,Su=_r.getterFor,Au=function(e,t,n){for(var r in t)n&&n.unsafe&&e[r]?e[r]=t[r]:tr(e,r,t[r],n);return e},xu=ve("species"),Cu=Ze.f,Tu=ou.fastKey,$u=_r.set,Ru=_r.getterFor,Ou={getConstructor:function(e,t,n,r){var a=e((function(e,a){_u(e,i),$u(e,{type:t,index:tn(null),first:void 0,last:void 0,size:0}),y||(e.size=0),null!=a&&vu(a,e[r],{that:e,AS_ENTRIES:n})})),i=a.prototype,o=Ru(t),s=function(e,t,n){var r,a,i=o(e),s=c(e,t);return s?s.value=n:(i.last=s={index:a=Tu(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=s),r&&(r.next=s),y?i.size++:e.size++,"F"!==a&&(i.index[a]=s)),e},c=function(e,t){var n,r=o(e),a=Tu(t);if("F"!==a)return r.index[a];for(n=r.first;n;n=n.next)if(n.key==t)return n};return Au(i,{clear:function(){for(var e=o(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=o(t),r=c(t,e);if(r){var a=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=a),a&&(a.previous=i),n.first==r&&(n.first=a),n.last==r&&(n.last=i),y?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=o(this),r=je(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!!c(this,e)}}),Au(i,n?{get:function(e){var t=c(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),y&&Cu(i,"size",{get:function(){return o(this).size}}),a},setStrong:function(e,t,n){var r=t+" Iterator",a=Ru(t),i=Ru(r);Ua(e,t,(function(e,t){$u(this,{type:r,target:e,state:a(e),kind:t,last:void 0})}),(function(){for(var e=i(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),function(e){var t=D(e),n=Ze.f;y&&t&&!t[xu]&&n(t,xu,{configurable:!0,get:function(){return this}})}(t)}};!function(e,t,n){var r,a=-1!==e.indexOf("Map"),i=-1!==e.indexOf("Weak"),c=a?"set":"add",l=o[e],u=l&&l.prototype,f={};if(y&&v(l)&&(i||u.forEach&&!s((function(){(new l).entries().next()})))){var d=(r=t((function(t,n){Eu(_u(t,d),{type:e,collection:new l}),null!=n&&vu(n,t[c],{that:t,AS_ENTRIES:a})}))).prototype,p=Su(e);wu(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in u)||i&&"clear"==e||Ye(d,e,(function(n,r){var a=p(this).collection;if(!t&&i&&!N(n))return"get"==e&&void 0;var o=a[e](0===n?0:n,r);return t?this:o}))})),i||ku(d,"size",{configurable:!0,get:function(){return p(this).collection.size}})}else r=n.getConstructor(t,e,a,c),ou.enable();lr(r,e,!1,!0),f[e]=r,Je({global:!0,forced:!0},f),i||n.setStrong(r,e,a)}("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),Ou);var Pu=M.Map,Lu=[].push;Je({target:"Map",stat:!0,forced:!0},{from:function(e){var t,n,r,a,i=arguments.length,o=i>1?arguments[1]:void 0;return St(this),(t=void 0!==o)&&Q(o),null==e?new this:(n=[],t?(r=0,a=je(o,i>2?arguments[2]:void 0),vu(e,(function(e){k(Lu,n,a(e,r++))}))):vu(e,Lu,{that:n}),new this(n))}});Je({target:"Map",stat:!0,forced:!0},{of:function(){return new this(Qe(arguments))}});Je({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=He(this),n=Q(t.delete),r=!0,a=0,i=arguments.length;a1?arguments[1]:void 0);return!vu(n,(function(e,n,a){if(!r(n,e,t))return a()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var Nu=ve("species"),Mu=function(e,t){var n,r=He(e).constructor;return void 0===r||null==(n=He(r)[Nu])?t:St(n)};Je({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=He(this),n=Iu(t),r=je(e,arguments.length>1?arguments[1]:void 0),a=new(Mu(t,D("Map"))),i=Q(a.set);return vu(n,(function(e,n){r(n,e,t)&&k(i,a,e,n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),a}}),Je({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=He(this),n=Iu(t),r=je(e,arguments.length>1?arguments[1]:void 0);return vu(n,(function(e,n,a){if(r(n,e,t))return a(n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}}),Je({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=He(this),n=Iu(t),r=je(e,arguments.length>1?arguments[1]:void 0);return vu(n,(function(e,n,a){if(r(n,e,t))return a(e)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}});var ju=b([].push);Je({target:"Map",stat:!0,forced:!0},{groupBy:function(e,t){Q(t);var n=pu(e),r=new this,a=Q(r.has),i=Q(r.get),o=Q(r.set);return vu(n,(function(e){var n=t(e);k(a,r,n)?ju(k(i,r,n),e):k(o,r,n,[e])}),{IS_ITERATOR:!0}),r}});Je({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return vu(Iu(He(this)),(function(t,n,r){if((a=n)===(i=e)||a!=a&&i!=i)return r();var a,i}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}}),Je({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var n=new this;Q(t);var r=Q(n.set);return vu(e,(function(e){k(r,n,t(e),e)})),n}}),Je({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){return vu(Iu(He(this)),(function(t,n,r){if(n===e)return r(t)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}}),Je({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=He(this),n=Iu(t),r=je(e,arguments.length>1?arguments[1]:void 0),a=new(Mu(t,D("Map"))),i=Q(a.set);return vu(n,(function(e,n){k(i,a,r(n,e,t),n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),a}}),Je({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=He(this),n=Iu(t),r=je(e,arguments.length>1?arguments[1]:void 0),a=new(Mu(t,D("Map"))),i=Q(a.set);return vu(n,(function(e,n){k(i,a,e,r(n,e,t))}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),a}}),Je({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=He(this),n=Q(t.set),r=arguments.length,a=0;a1?arguments[1]:void 0);return vu(n,(function(e,n,a){if(r(n,e,t))return a()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var Fu=o.TypeError;Je({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var n=He(this),r=Q(n.get),a=Q(n.has),i=Q(n.set),o=arguments.length;Q(t);var s=k(a,n,e);if(!s&&o<3)throw Fu("Updating absent value");var c=s?k(r,n,e):Q(o>2?arguments[2]:void 0)(e,n);return k(i,n,e,t(c,e,n)),n}});var Bu=o.TypeError,Hu=function(e,t){var n,r=He(this),a=Q(r.get),i=Q(r.has),o=Q(r.set),s=arguments.length>2?arguments[2]:void 0;if(!v(t)&&!v(s))throw Bu("At least one callback required");return k(i,r,e)?(n=k(a,r,e),v(t)&&(n=t(n),k(o,r,e,n))):v(s)&&(n=s(),k(o,r,e,n)),n};Je({target:"Map",proto:!0,real:!0,forced:!0},{upsert:Hu}),Je({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:Hu});var zu=Pu,Uu=Il;var Wu=ln,qu=Zs;function Gu(e,t,n){return Gu=function(){if("undefined"==typeof Reflect||!Wu)return!1;if(Wu.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Wu(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Wu:function(e,t,n){var r=[null];r.push.apply(r,t);var a=new(qu(Function).apply(e,r));return n&&An(a,n.prototype),a},Gu.apply(null,arguments)}function Ku(e){var t="function"==typeof zu?new zu:void 0;return Ku=function(e){if(null===e||!function(e){var t;return-1!==Uu(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 Gu(e,arguments,hi(this).constructor)}return n.prototype=_n(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),An(n,e)},Ku(e)}function Zu(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}var Yu=function(e,t){if(!al(e)&&li(e)!==t.name.toLowerCase()||!al(e)&&"array"===t.name.toLowerCase())throw new TypeError("parameter given must be ".concat(t.name));return!0},Xu=function(e,t){if(!(e instanceof t))throw new Error("the hook does not correctly inherit");return!0},Vu=function(e){if("object"!==li(e))throw new Error("the hook must be a instance, not a class");return!0},Ju=function(e){xn(n,Ku(Error));var t=Zu(n);function n(e,r){var a;return bn(this,n),(a=t.call(this,e)).name="Error",a.stack=a.buildStackTrace(r),a}return mn(n,[{key:"buildStackTrace",value:function(e){var t,n=e&&e.stack?e.stack:"";return Js(t="".concat(this.stack,"\nCaused By: ")).call(t,n)}}]),n}(),Qu=new Proxy({},{get:function(e,t,n){return function(){}}});function ef(e,t,n){var r,a;if(-1===e)Qu.warn(Js(r=Js(a="Duplicate hook name [".concat(t.HOOK_NAME,"] found, hook [")).call(a,t.toString(),"] ")).call(r,isNaN(n)?"":"at index [".concat(n,"] "),"will not take effect."));else if(-2===e){var i;Qu.warn(Js(i="Hook [".concat(t.toString(),"] ")).call(i,isNaN(n)?"":"at index [".concat(n,"] "),"is not a valid hook, and will not take effect."))}}function tf(e){return nf(e)||rf(e)}function nf(e){return Object.prototype.isPrototypeOf.call(Tc,e)}function rf(e){return Object.prototype.isPrototypeOf.call(tu,e)}function af(e){return tf(e)&&!0===(null==e?void 0:e.Cherry$$CUSTOM)}var of=function(){function e(t,n,r){bn(this,e),this.$locale=r.locale,this.hookList={},this.hookNameList={},Yu(t,Array),this.registerInternalHooks(t,n),this.registerCustomHooks(n.engine.customSyntax,n)}return mn(e,[{key:"registerInternalHooks",value:function(e,t){var n=this;ic(e).call(e,(function(e,r){ef(n.register(e,t),e,r)}))}},{key:"registerCustomHooks",value:function(e,t){var n=this;if(e){var r=sc(e);ic(r).call(r,(function(r){var a,i,o,s,c={},l=e[r];if(nf(l))i=l;else{if(!nf(s=null==(o=l)?void 0:o.syntaxClass)&&!rf(s))return;i=l.syntaxClass,c.force=Boolean(l.force),l.before?c.before=l.before:l.after&&(c.after=l.after)}tf(i)?(Ws(i,"Cherry$$CUSTOM",{enumerable:!1,configurable:!1,writable:!1,value:!0}),a=n.register(i,t,c)):a=-2,ef(a,i,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,a,i=this,o=t.externals,s=t.engine,c=s.syntax;if(tf(e)){a=e.HOOK_NAME;var l=(null==c?void 0:c[a])||{};(r=new e({externals:o,config:l,globalConfig:s.global})).afterInit((function(){r.setLocale(i.$locale)}))}else{if("function"!=typeof e)return-2;if(!(r=e(t))||!tf(r.constructor))return-2;a=r.getName()}if(!1!==c[a]||af(e)){var u=r.getType();if(this.hookNameList[a]){var f;if(!af(e))return-1;if(!n.force)return-1;var d=this.hookNameList[a].type;this.hookList[d]=dc(f=this.hookList[d]).call(f,(function(e){return e.getName()!==a}))}if(this.hookNameList[a]={type:u},this.hookList[u]=this.hookList[u]||[],af(e)){var p,h,g,m=-1;if(n.before){if(-1===(m=vc(p=this.hookList[u]).call(p,(function(e){return e.getName()===n.before}))))Qu.warn(Js(h="Cannot find hook named [".concat(n.before,"],\n custom hook [")).call(h,a,"] will append to the end of the hooks."))}else if(n.after){var b,v;-1===(m=vc(b=this.hookList[u]).call(b,(function(e){return e.getName()===n.after})))?Qu.warn(Js(v="Cannot find hook named [".concat(n.after,"],\n custom hook [")).call(v,a,"] will append to the end of the hooks.")):m+=1}if(m<0||m>=this.hookList[u].length)this.hookList[u].push(r);else Ac(g=this.hookList[u]).call(g,m,0,r)}else this.hookList[u].push(r)}}}]),e}();function sf(e,t){var n=sc(e);if(cl){var r=cl(e);t&&(r=dc(r).call(r,(function(t){return pl(e,t).enumerable}))),n.push.apply(n,r)}return n}function cf(e){for(var t=1;t\\x00-\\x1f"\\(\\)]*)?'),vf=new RegExp("(?:\\/\\/)".concat(bf.source)),yf=new RegExp("^".concat(bf.source,"$")),_f=new RegExp("^".concat(vf.source,"$"));function kf(){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=lf(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=lf(r,"g",!0),!1===t?{strict:n,loose:r}:lf({begin:"",content:Js(e="(?:".concat(n.begin+n.content+n.end,"|")).call(e,r.begin+r.content+r.end,")"),end:""},"g",!0)}var wf=rl;function Ef(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?arguments[1]:void 0,i=void 0!==a;i&&(a=je(a,r>2?arguments[2]:void 0));var o,s,c,l,u,f,d=fu(t),p=0;if(!d||this==xf&&lu(d))for(o=It(t),s=n?new this(o):xf(o);o>p;p++)f=i?a(t[p],p):t[p],Tn(s,p,f);else for(u=(l=pu(t,d)).next,s=n?new this:[];!(c=k(u,l)).done;p++)f=i?Af(l,a,[c.value,p],!0):c.value,Tn(s,p,f);return s.length=p,s}});var Pf=M.Array.from,Lf=Pf;function If(e){if(void 0!==Qa&&null!=Sf(e)||null!=e["@@iterator"])return Lf(e)}var Nf=Ln("slice"),Mf=ve("species"),jf=o.Array,Df=Math.max;Je({target:"Array",proto:!0,forced:!Nf},{slice:function(e,t){var n,r,a,i=I(this),o=It(i),s=Ot(e,o),c=Ot(void 0===t?o:t,o);if(Cn(i)&&(n=i.constructor,(wt(n)&&(n===jf||Cn(n.prototype))||N(n)&&null===(n=n[Mf]))&&(n=void 0),n===jf||void 0===n))return Qe(i,s,c);for(r=new(void 0===n?jf:n)(Df(c-s,0)),a=0;s3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;if(!t)return e;t.lastIndex=0;for(var o=0,s=[];null!==(r=t.exec(e));){var c={begin:r.index,length:r[0].length};if(a&&r.index===o-i){var l,u=Kf(r),f=u[0],d=Zf(u).call(u,2);s.push({begin:c.begin+i,length:c.length-i,replacedText:n.apply(void 0,Js(l=[Zf(f).call(f,i),""]).call(l,Wf(d)))})}else s.push(Xf(Xf({},c),{},{replacedText:n.apply(void 0,Wf(r))}));o=t.lastIndex,t.lastIndex-=i}return t.lastIndex=0,function(e,t){if(!t.length)return e;var n=[],r=0;return ic(t).call(t,(function(a,i){n.push(Zf(e).call(e,r,a.begin)),n.push(a.replacedText),r=a.begin+a.length,i===t.length-1&&n.push(Zf(e).call(e,r))})),n.join("")}(e,s)}function Jf(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}var Qf=function(e){xn(n,Tc);var t=Jf(n);function n(){return bn(this,n),t.apply(this,arguments)}return mn(n,[{key:"toHtml",value:function(e,t,n,r){var a,i;return Js(a=Js(i="".concat(t,'')).call(a,r,"")}},{key:"makeHtml",value:function(e){return uf()?e.replace(this.RULE.reg,this.toHtml):Vf(e,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var e={begin:uf()?"((?')).call(a,r,"")}},{key:"makeHtml",value:function(e){return uf()?e.replace(this.RULE.reg,this.toHtml):Vf(e,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var e={begin:uf()?"((?')).call(a,r,"")}},{key:"makeHtml",value:function(e){return this.test(e)?uf()?e.replace(this.RULE.reg,this.toHtml):Vf(e,this.RULE.reg,this.toHtml,!0,1):e}},{key:"rule",value:function(){var e={begin:uf()?"((?0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config;return bn(this,n),e=t.call(this,{config:r}),r?(e.needWhitespace=!!r.needWhitespace,e):fi(e)}return mn(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?id(id({},e),{},{begin:"(^|[\\s])\\~T\\~T",end:"\\~T\\~T(?=\\s|$)",content:"([\\w\\W]+?)"}):id(id({},e),{},{begin:"(^|[^\\\\])\\~T\\~T",end:"\\~T\\~T",content:"([\\w\\W]+?)"})).reg=new RegExp(e.begin+e.content+e.end,"g"),e}}]),n}();function cd(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}gi(sd,"HOOK_NAME","strikethrough");var ld=function(e){xn(n,Tc);var t=cd(n);function n(){return bn(this,n),t.apply(this,arguments)}return mn(n,[{key:"toHtml",value:function(e,t,n){var r;return Js(r="".concat(t,"")).call(r,n,"")}},{key:"makeHtml",value:function(e){return uf()?e.replace(this.RULE.reg,this.toHtml):Vf(e,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var e={begin:uf()?"((?")).call(r,n,"")}},{key:"makeHtml",value:function(e){return uf()?e.replace(this.RULE.reg,this.toHtml):Vf(e,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var e={begin:uf()?"((?=f.reach);E+=w.value.length,w=w.next){var S=w.value;if(t.length>e.length)return;if(!(S instanceof i)){var A,x=1;if(v){if(!(A=o(k,E,e,b))||A.index>=e.length)break;var C=A.index,T=A.index+A[0].length,$=E;for($+=w.value.length;C>=$;)$+=(w=w.next).value.length;if(E=$-=w.value.length,w.value instanceof i)continue;for(var R=w;R!==t.tail&&($f.reach&&(f.reach=I);var N=w.prev;if(P&&(N=l(t,N,P),E+=P.length),u(t,N,x),w=l(t,N,new i(d,m?a.tokenize(O,m):O,y,O)),L&&l(t,w,L),x>1){var M={cause:d+","+h,reach:I};s(e,t,n,w.prev,E,M),f&&M.reach>f.reach&&(f.reach=M.reach)}}}}}}function c(){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,a={value:n,prev:t,next:r};return t.next=a,r.prev=a,e.length++,a}function u(e,t,n){for(var r=t.next,a=0;a"+i.content+""},!e.document)return e.addEventListener?(a.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,o=n.immediateClose;e.postMessage(a.highlight(i,a.languages[r],r)),o&&e.close()}),!1),a):a;var f=a.util.currentScript();function d(){a.manual||a.highlightAll()}if(f&&(a.filename=f.src,f.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var p=document.readyState;"loading"===p||"interactive"===p&&f&&f.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return a}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=n),void 0!==t&&(t.Prism=n)}));function hd(e,t){var n=sc(e);if(cl){var r=cl(e);t&&(r=dc(r).call(r,(function(t){return pl(e,t).enumerable}))),n.push.apply(n,r)}return n}function gd(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(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 a="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",o="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*{)",s="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 c(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var l=c(i),u=RegExp(c(a+" "+i+" "+o+" "+s)),f=c(i+" "+o+" "+s),d=c(a+" "+i+" "+s),p=r(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),h=r(/\((?:[^()]|<>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,m=t(/<<0>>(?:\s*<<1>>)?/.source,[g,p]),b=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,m]),v=/\[\s*(?:,\s*)*\]/.source,y=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[b,v]),_=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,h,v]),k=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[_]),w=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[k,b,v]),E={keyword:u,punctuation:/[<>()?,.:[\]]/},S=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,A=/"(?:\\.|[^\\"\r\n])*"/.source,x=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[x]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[b]),lookbehind:!0,inside:E},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,w]),lookbehind:!0,inside:E},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,m]),lookbehind:!0,inside:E},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[b]),lookbehind:!0,inside:E},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[y]),lookbehind:!0,inside:E},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[w,d,g]),inside:E}],keyword:u,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,[g]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:E},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[w,b]),inside:E,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[w]),lookbehind:!0,inside:E,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,p]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(p),alias:"class-name",inside:E}}},"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,m,g,w,u.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[m,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:u,"class-name":{pattern:RegExp(w),greedy:!0,inside:E},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 C=A+"|"+S,T=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[C]),$=r(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[T]),2),R=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,O=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[b,$]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[R,O]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[R]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[$]),inside:e.languages.csharp},"class-name":{pattern:RegExp(b),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var P=/:[^}\r\n]+/.source,L=r(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[T]),2),I=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[L,P]),N=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[C]),2),M=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[N,P]);function j(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,P]),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,[I]),lookbehind:!0,greedy:!0,inside:j(I,L)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[M]),lookbehind:!0,greedy:!0,inside:j(M,N)}],char:{pattern:RegExp(S),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 a={};a[e]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",a)}}),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],a=[];/^\w+$/.test(n)||a.push(/\w+/.exec(n)[0]),"diff"===n&&a.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:a,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,a=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,(function(){return r})),i={pattern:RegExp(r),greedy:!0},o={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function s(e,t){return e=e.replace(//g,(function(){return a})).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:s(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[i,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:s(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:s(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:s(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:o,string:i,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:o},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+")?)",a=/(?:[^\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})),i=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(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"(?:"+a+"|"+i+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\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:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(i),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?: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,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \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("^"+a+i+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+i+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),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:'"'},c=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 s=d(/^\{$/,/^\}$/);if(-1===s)continue;for(var c=n;c=0&&p(l,"variable-input")}}}}function u(e){return t[n+e]}function f(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+")",a=RegExp(r+"-"+r),i={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:a,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":i}}],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,a,i){if(n.language===r){var o=n.tokenStack=[];n.code=n.code.replace(a,(function(e){if("function"==typeof i&&!i(e))return e;for(var a,s=o.length;-1!==n.code.indexOf(a=t(r,s));)++s;return o[s]=e,a})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var a=0,i=Object.keys(n.tokenStack);!function o(s){for(var c=0;c=i.length);c++){var l=s[c];if("string"==typeof l||l.content&&"string"==typeof l.content){var u=i[a],f=n.tokenStack[u],d="string"==typeof l?l:l.content,p=t(r,u),h=d.indexOf(p);if(h>-1){++a;var g=d.substring(0,h),m=new e.Token(r,e.tokenize(f,n.grammar),"language-"+r,f),b=d.substring(h+p.length),v=[];g&&v.push.apply(v,o([g])),v.push(m),b&&v.push.apply(v,o([b])),"string"==typeof l?s.splice.apply(s,[c,1].concat(v)):l.content=v}}else l.content&&o(l.content)}return s}(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,a=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,a=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;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:a,punctuation:i};var o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{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:o}},{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:o}}];e.languages.insertBefore("php","variable",{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"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:a,punctuation:i}},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,a=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function i(e,t){return e=e.replace(//g,(function(){return n})).replace(//g,(function(){return r})).replace(//g,(function(){return a})),RegExp(e,t)}a=i(a).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\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:i(//.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var o=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(o).join(""):""},s=function(t){for(var n=[],r=0;r0&&n[n.length-1].tagName===o(a.content[0].content[1])&&n.pop():"/>"===a.content[a.content.length-1].content||n.push({tagName:o(a.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===a.type&&"{"===a.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===a.type&&"}"===a.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof a)&&n.length>0&&0===n[n.length-1].openedBraces){var c=o(a);r0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(c=o(t[r-1])+c,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",c,null,c)}a.content&&"string"!=typeof a.content&&s(a.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||s(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 a=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,o=0;o]=?/,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:/[()]/},pd.manual=!0;var md={figure:"figure"},bd=function(e){xn(n,tu);var t=gd(n);function n(e){var r;e.externals;var a,i=e.config;(bn(this,n),r=t.call(this,{needCache:!0}),n.inlineCodeCache={},r.codeCache={},r.customLang=[],r.customParser={},r.wrap=i.wrap,r.lineNumber=i.lineNumber,r.copyCode=i.copyCode,r.editCode=i.editCode,r.changeLang=i.changeLang,r.mermaid=i.mermaid,r.indentedCodeBlock=void 0===i.indentedCodeBlock||i.indentedCodeBlock,r.INLINE_CODE_REGEX=/(`+)(.+?(?:\n.+?)*?)\1/g,i&&i.customRenderer)&&(r.customLang=Ic(a=sc(i.customRenderer)).call(a,(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,a,i,o,s,c=this.customParser[e];if(!c||"function"!=typeof c.render)return!1;var l=c.render(t,n.sign,this.$engine,this.mermaid);if(!l)return!1;var u=md[c.constructor.TYPE]||"div";return Js(r=Js(a=Js(i=Js(o=Js(s="<".concat(u,' data-sign="')).call(s,n.sign,'" data-type="')).call(o,e,'" data-lines="')).call(i,n.lines,'">')).call(a,l,"")}},{key:"fillTag",value:function(e){var t=[];return Ic(e).call(e,(function(e){if(!e)return"";for(var n=e;t.length;){var r,a=t.pop();n=Js(r="".concat(a)).call(r,n)}var i=n.match(/|<\/span>/g),o=0;if(!i)return n;for(;i.length;){var s=i.pop();/<\/span>/.test(s)?o+=1:o?o-=1:t.unshift(s.match(//)[0])}for(var c=0;c");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!==Nl(t=this.customLang).call(t,e)}},{key:"computeLines",value:function(e,t,n){var r=t,a=this.getLineCount(e,r);return{sign:this.$engine.md5(e.replace(/^\n+/,"")+a),lines:a}}},{key:"appendMermaid",value:function(e,t){var n=e,r=t;if(/^flow([ ](TD|LR))?$/i.test(r)&&!this.isInternalCustomLangCovered(r)){var a,i=r.match(/^flow(?:[ ](TD|LR))?$/i)||[];n=Js(a="graph ".concat(i[1]||"TD","\n")).call(a,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 Js(n=Js(r='')).call(n,e,"")}},{key:"renderCodeBlock",value:function(e,t,n,r){var a,i,o,s,c,l,u,f=e,d=t;return this.customHighlighter?f=this.customHighlighter(f,d):(d&&pd.languages[d]||(d="javascript"),f=pd.highlight(f,pd.languages[d],d),f=this.renderLineNumber(f)),f=Js(a=Js(i=Js(o=Js(s=Js(c=Js(l=Js(u='\n
    ')).call(a,this.wrapCode(f,d),"
    \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,a,i=(e.match(/\n/g)||[]).length,o=t.$engine.md5(e),s=Js(r=Js(a='
    ')).call(r,Zl(n.replace(/\n( {4}|\t)/g,"\n")),"
    ");return tl(e,t.pushCache(s,o,i))})):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,a=e;return a=(a=this.$replaceCodeInIndent(a)).replace(this.RULE.reg,(function(e,t,n,a,i,o){var s,c,l;function u(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 f=o,d=r.computeLines(e,t,o),p=d.sign,h=d.lines,g=r.$codeCache(p);if(g&&""!==g)return u(r.getCacheWithSpace(r.pushCache(g,p,h),e));f=(f=(f=r.$recoverCodeInIndent(f)).replace(/~D/g,"$")).replace(/~T/g,"~");var m=null!==(s=null==t||null===(c=t.match(/[ ]/g))||void 0===c?void 0:c.length)&&void 0!==s?s:0;if(m>0){var b=new RegExp("(^|\\n)[ ]{1,".concat(m,"}"),"g");f=f.replace(b,"$1")}if(n){var v=new RegExp("(^|\\n)".concat(n),"g");f=f.replace(v,"$1")}var y=Gc(i).call(i);if(/^(math|katex|latex)$/i.test(y)&&!r.isInternalCustomLangCovered(y)){var _,k=e.match(/^\s*/g);return Js(_="".concat(k,"~D~D\n")).call(_,f,"~D~D")}var w=dd(r.appendMermaid(f,y),2);return f=w[0],y=w[1],-1!==Nl(l=r.customLang).call(l,y.toLowerCase())&&(g=r.parseCustomLanguage(y,f,{lines:h,sign:p}))&&""!==g?(r.$codeCache(p,g),r.getCacheWithSpace(r.pushCache(g,p,h),e)):(f=f.replace(/~X/g,"\\`"),g=(g=r.renderCodeBlock(f,y,p,h)).replace(/\\/g,"\\\\"),g=r.$codeCache(p,g),u(r.getCacheWithSpace(r.pushCache(g,p,h),e)))})),a=a.replace(kf(!0),(function(e){var t;return Ic(t=e.split("|")).call(t,(function(e){return r.makeInlineCode(e)})).join("|").replace(/`/g,"\\`")})),a=this.makeInlineCode(a),a=this.$getIndentCodeBlock(a)}},{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,a){if("`"===Gc(a).call(a))return e;var i=a.replace(/~~not~inlineCode/g,"\\`");i=(i=t.$replaceSpecialChar(i)).replace(/\\/g,"\\\\");var o="".concat(Zl(i),""),s=t.$engine.md5(o);return n.inlineCodeCache[s]=o,"~~CODE".concat(s,"$")})),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(e={begin:/(?:^|\n)(\n*((?:>[\t ]*)*)(?:[^\S\n]*))(`{3,})([^`]*?)\n/,content:/([\w\W]*?)/,end:/[^\S\n]*\3[ \t]*(?=$|\n+)/,reg:new RegExp("")}).reg=new RegExp(e.begin.source+e.content.source+e.end.source,"g"),cf(cf({},e),{},{begin:e.begin.source,content:e.content.source,end:e.end.source});var e}},{key:"mounted",value:function(e){}}]),n}();function vd(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}gi(bd,"HOOK_NAME","codeBlock"),gi(bd,"inlineCodeCache",{});var yd=function(e){xn(n,tu);var t=vd(n);function n(){return bn(this,n),t.apply(this,arguments)}return mn(n,[{key:"makeHtml",value:function(e){return e}},{key:"afterMakeHtml",value:function(e){var t=e;return sc(bd.inlineCodeCache).length>0&&(t=t.replace(/~~CODE([0-9a-zA-Z]+)\$/g,(function(e,t){return bd.inlineCodeCache[t]})),bd.inlineCodeCache={}),t}},{key:"rule",value:function(){var e={begin:"(`+)[ ]*",end:"[ ]*\\1",content:"(.+?(?:\\n.+?)*?)"};return e.reg=lf(e,"g"),e}}]),n}();gi(yd,"HOOK_NAME","inlineCode");var _d=n((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-i)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,a=0;r>>6-2*a);return n}};e.exports=n}()})),kd={utf8:{stringToBytes:function(e){return kd.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(kd.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n>>24)|4278255360&(s[p]<<24|s[p]>>>8);s[c>>>5]|=128<>>9<<4)]=c;var h=i._ff,g=i._gg,m=i._hh,b=i._ii;for(p=0;p>>0,u=u+y>>>0,f=f+_>>>0,d=d+k>>>0}return t.endian([l,u,f,d])};i._ff=function(e,t,n,r,a,i,o){var s=e+(t&n|~t&r)+(a>>>0)+o;return(s<>>32-i)+t},i._gg=function(e,t,n,r,a,i,o){var s=e+(t&r|n&~r)+(a>>>0)+o;return(s<>>32-i)+t},i._hh=function(e,t,n,r,a,i,o){var s=e+(t^n^r)+(a>>>0)+o;return(s<>>32-i)+t},i._ii=function(e,t,n,r,a,i,o){var s=e+(n^(t|~r))+(a>>>0)+o;return(s<>>32-i)+t},i._blocksize=16,i._digestsize=16,e.exports=function(e,n){if(null==e)throw new Error("Illegal argument "+e);var r=t.wordsToBytes(i(e,n));return n&&n.asBytes?r:n&&n.asString?a.bytesToString(r):t.bytesToHex(r)}}()})),xd={},Cd=/^cherry-inner:\/\/([0-9a-f]+)$/i;var Td=function(){function e(){bn(this,e)}return mn(e,null,[{key:"isInnerLink",value:function(e){return Cd.test(e)}},{key:"set",value:function(e){var t=Ad(e);return xd[t]=e,"cherry-inner://".concat(t)}},{key:"get",value:function(e){var t,n=dd(null!==(t=e.match(Cd))&&void 0!==t?t:[],2)[1];if(n)return xd[n]}},{key:"replace",value:function(e,t){var n,r=dd(null!==(n=e.match(Cd))&&void 0!==n?n:[],2)[1];if(r)return xd[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(){xd={}}}]),e}();function $d(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}var Rd=function(e){xn(n,Tc);var t=$d(n);function n(e){var r,a=e.config,i=e.globalConfig;return bn(this,n),(r=t.call(this,{config:a})).urlProcessor=i.urlProcessor,r.target=a.target?'target="'.concat(a.target,'"'):a.openNewPage?'target="_blank"':"",r.rel=a.rel?'rel="'.concat(a.rel,'"'):"",r}return mn(n,[{key:"checkBrackets",value:function(e){for(var t=[],n="[".concat(e,"]"),r=function(e){return 1&Zf(n).call(n,0,e).match(/\\*$/)[0].length},a=n.length-1;n[a]&&(a!==n.length-1||!r(a));a--)if("]"!==n[a]||r(a)||t.push("]"),"["===n[a]&&!r(a)&&(t.pop(),!t.length))return{isValid:!0,coreText:Zf(n).call(n,a+1,n.length-1),extraLeadingChar:Zf(n).call(n,0,a)};return{isValid:!1,coreText:e,extraLeadingChar:""}}},{key:"toHtml",value:function(e,t,n,r,a,i,o){var s=void 0===r?"ref":"url",c="";if("ref"===s)return e;if("url"===s){var l,u=this.checkBrackets(n),f=u.isValid,d=u.coreText,p=u.extraLeadingChar;if(!f)return e;c=a&&""!==Gc(a).call(a)?' title="'.concat(Zl(a.replace(/["']/g,"")),'"'):"",o?c+=' target="'.concat(o.replace(/{target\s*=\s*(.*?)}/,"$1"),'"'):this.target&&(c+=" ".concat(this.target));var h,g,m,b,v=Gc(r).call(r).replace(/~1D/g,"~D"),y=d.replace(/~1D/g,"~D");return Vl(v)?(v=Jl(v=this.urlProcessor(v,"link")),Js(h=Js(g=Js(m=Js(b="".concat(t+p,'
    ")).call(h,y,"")):Js(l="".concat(t+p,"")).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")}));uf()?r=r.replace(this.RULE.reg,Ys(t=this.toHtml).call(t,this)):r=Vf(r,this.RULE.reg,Ys(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:uf()?"((?0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}});var Pd=qs("String").repeat,Ld=String.prototype,Id=function(e){var t=e.repeat;return"string"==typeof e||e===Ld||F(Ld,e)&&t===Ld.repeat?Pd:t};function Nd(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}var Md=function(e){xn(n,Tc);var t=Nd(n);function n(){var e,r=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config;return bn(this,n),e=t.call(this,{config:r}),r?(e.allowWhitespace=!!r.allowWhitespace,e):fi(e)}return mn(n,[{key:"makeHtml",value:function(e,t){var n=function(e,n,r,a){var i,o,s,c=r.length%2==1?"em":"strong",l=Math.floor(r.length/2),u=Id("").call("",l),f=Id("").call("",l);return"em"===c&&(u+="",f="".concat(f)),Js(i=Js(o=Js(s="".concat(n)).call(s,u)).call(o,t(a).html.replace(/_/g,"~U"))).call(i,f)},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,a,i,o){var s,c,l;if(""===Gc(a).call(a))return e;var u=r.length%2==1?"em":"strong",f=Math.floor(r.length/2),d=Id("").call("",f),p=Id("").call("",f),h=t(a).html;return"em"===u&&(d+="",p="".concat(p)),Js(s=Js(c=Js(l="".concat(n)).call(l,d)).call(c,h)).call(s,p)})),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,a,i="[^".concat(t,"\\s]");return e?"(?:.*?)(?:(?:\\n.*?)*?)":Js(n=Js(r=Js(a="(".concat(i,"|")).call(a,i,"(.*?(\n")).call(r,i,".*)*)")).call(n,i,")")},r={begin:"(^|[^\\\\])([*]+)",content:"(".concat(n(t,"*"),")"),end:"\\2"},a={begin:"(^|".concat(hf,")(_+)"),content:"(".concat(n(t,"_"),")"),end:"\\2(?=".concat(hf,"|$)")};return r.reg=lf(r,"g"),a.reg=lf(a,"g"),{asterisk:r,underscore:a}}}]),n}();function jd(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}gi(Md,"HOOK_NAME","fontEmphasis");var Dd=function(e){xn(n,tu);var t=jd(n);function n(e){var r;return bn(this,n),(r=t.call(this)).initBrReg(e.globalConfig.classicBr),r}return mn(n,[{key:"makeHtml",value:function(e,t){var n=this;return this.test(e)?e.replace(this.RULE.reg,(function(e,r,a){var i;if(n.isContainsCache(e,!0))return e;var o,s=function(e){var r,a,i,o,s,c;if(""===Gc(e).call(e))return"";var l=t(e),u=l.sign,f=l.html,d="p";new RegExp("<(".concat(ql,")[^>]*>"),"i").test(f)&&(d="div");var p=n.getLineCount(e,e);return Js(r=Js(a=Js(i=Js(o=Js(s=Js(c="<".concat(d,' data-sign="')).call(c,u)).call(s,p,'" data-type="')).call(o,d,'" data-lines="')).call(i,p,'">')).call(a,n.$cleanParagraph(f),"")};return n.isContainsCache(a)?n.makeExcludingCached(Js(o="".concat(r)).call(o,a),s):s(Js(i="".concat(r)).call(i,a))})):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}();gi(Dd,"HOOK_NAME","normalParagraph");Je({target:"Reflect",stat:!0},{get:function e(t,n){var r,a,i=arguments.length<3?t:arguments[2];return He(t)===i?t[n]:(r=Te.f(t,n))?function(e){return void 0!==e&&(le(e,"value")||le(e,"writable"))}(r)?r.value:void 0===r.get?void 0:k(r.get,i):N(a=$a(t))?e(a,n,i):void 0}});var Fd=M.Reflect.get,Bd=dl;function Hd(){return Hd="undefined"!=typeof Reflect&&Fd?Fd:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=hi(e)););return e}(e,t);if(r){var a=Bd(r,t);return a.get?a.get.call(arguments.length<3?e:n):a.value}},Hd.apply(this,arguments)}function zd(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}var Ud="atx",Wd="setext",qd=/[\s\-_]/,Gd=/[A-Za-z]/,Kd=/[0-9]/,Zd=function(e){xn(n,tu);var t=zd(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0,externals:void 0};r.externals;var a=r.config;return bn(this,n),(e=t.call(this,{needCache:!0})).strict=!a||!!a.strict,e.RULE=e.rule(),e.headerIDCache=[],e.headerIDCounter={},e.config=a||{},e}return mn(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="",a=0;a255)try{r+=encodeURIComponent(i)}catch(e){}}return r}},{key:"generateIDNoDup",value:function(e){var t,n=e.replace(/</g,"<").replace(/>/g,">"),r=this.$generateId(n,!0),a=Nl(t=this.headerIDCache).call(t,r);if(-1!==a)this.headerIDCounter[a]+=1,r+="-".concat(this.headerIDCounter[a]+1);else{var i=this.headerIDCache.push(r);this.headerIDCounter[i-1]=1}return r}},{key:"$wrapHeader",value:function(e,t,n,r){var a,i,o,s,c,l,u,f=r(Gc(e).call(e)),d=f.html,p=d.match(/\s+\{#([A-Za-z0-9-]+)\}$/);null!==p&&(d=d.substring(0,p.index),u=dd(p,2)[1]);var h=this.$parseTitleText(d);if(!u){u=this.generateIDNoDup(h.replace(/~fn#([0-9]+)#/g,""))}var g="safe_".concat(u),m=this.$engine.md5(Js(a=Js(i=Js(o="".concat(t,"-")).call(o,f.sign,"-")).call(i,u,"-")).call(a,n));return{html:[Js(s=Js(c=Js(l="'),this.$getAnchor(u),"".concat(d),"")].join(""),sign:"".concat(m)}}},{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,Ud)&&(n=n.replace(this.RULE[Ud].reg,(function(e,n,r,a){return""===Gc(a).call(a)?e:t.getCacheWithSpace(t.pushCache(e),e,!0)}))),this.test(n,Wd)&&(n=n.replace(this.RULE[Wd].reg,(function(e,n,r){return""===Gc(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,Ud)&&(r=r.replace(this.RULE[Ud].reg,(function(e,r,a,i){var o=nl(r,n.getLineCount(e.replace(/^\n+/,""))),s=i.replace(/\s+#+\s*$/,""),c=n.$wrapHeader(s,a.length,o,t),l=c.html,u=c.sign;return n.getCacheWithSpace(n.pushCache(l,u,o),e,!0)}))),this.test(r,Wd)&&(r=r.replace(this.RULE[Wd].reg,(function(e,r,a,i){if(n.isContainsCache(a))return e;var o=nl(r,n.getLineCount(e.replace(/^\n+/,""))),s="-"===i[0]?2:1,c=n.$wrapHeader(a,s,o,t),l=c.html,u=c.sign;return n.getCacheWithSpace(n.pushCache(l,u,o),e,!0)}))),r}},{key:"afterMakeHtml",value:function(e){var t=Hd(hi(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=lf(e,"g",!0);var t={begin:"(?:^|\\n)(\\n*)(?:\\h*(#{1,6}))",content:"(.+?)",end:"(?=$|\\n)"};return this.strict&&(t.begin+="(?=\\h+)"),t.reg=lf(t,"g",!0),{setext:e,atx:t}}}]),n}();function Yd(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}gi(Zd,"HOOK_NAME","header");var Xd=function(e){xn(n,Tc);var t=Yd(n);function n(){return bn(this,n),t.apply(this,arguments)}return mn(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}();gi(Xd,"HOOK_NAME","transfer");var Vd=o.TypeError,Jd=function(e){return function(t,n,r,a){Q(n);var i=se(t),o=O(i),s=It(i),c=e?s-1:0,l=e?-1:1;if(r<2)for(;;){if(c in o){a=o[c],c+=l;break}if(c+=l,e?c<0:s<=c)throw Vd("Reduce of empty array with no initial value")}for(;e?c>=0:s>c;c+=l)c in o&&(a=n(a,o[c],c,i));return a}},Qd={left:Jd(!1),right:Jd(!0)},ep="process"==T(o.process),tp=Qd.left,np=Qs("reduce");Je({target:"Array",proto:!0,forced:!np||!ep&&q>79&&q<83},{reduce:function(e){var t=arguments.length;return tp(this,e,t,t>1?arguments[1]:void 0)}});var rp=qs("Array").reduce,ap=Array.prototype,ip=function(e){var t=e.reduce;return e===ap||F(ap,e)&&t===ap.reduce?rp:t};function op(e,t){var n=sc(e);if(cl){var r=cl(e);t&&(r=dc(r).call(r,(function(t){return pl(e,t).enumerable}))),n.push.apply(n,r)}return n}function sp(e){for(var t=1;t')).call(a,k,"
    ");return{html:Js(c="".concat(w)).call(c,_.html),sign:b+_.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 a,i,o,s,c=this.$testHeadEmpty(t)?Js(a="~CTHD".concat(t,"~CTHD$~CTBD")).call(a,n,"~CTBD$"):"~CTBD".concat(n,"~CTBD$"),l=this.$engine.md5(c),u=c.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 a="":' align="'.concat(e[r],'">')})).replace(/\\\|/g,"|");return{html:Js(i=Js(o=Js(s='
    \n ')).call(i,u,"
    "),sign:l}}},{key:"makeHtml",value:function(e,t){var n=this,r=e;return this.test(r,up)&&(r=r.replace(this.RULE[up].reg,(function(e,r){var a,i=n.getLineCount(e,r),o=Ic(a=Gc(e).call(e).split(/\n/)).call(a,(function(e){var t;return Gc(t=String(e)).call(t)})),s=n.$parseTable(o,t,i),c=s.html,l=s.sign;return n.getCacheWithSpace(n.pushCache(c,l,i),e)}))),this.test(r,lp)&&(r=r.replace(this.RULE[lp].reg,(function(e,r){var a,i=n.getLineCount(e,r),o=Ic(a=Gc(e).call(e).split(/\n/)).call(a,(function(e){var t;return Gc(t=String(e)).call(t)})),s=n.$parseTable(o,t,i),c=s.html,l=s.sign;return n.getCacheWithSpace(n.pushCache(c,l,i),e)}))),r}},{key:"test",value:function(e,t){return this.RULE[t].reg&&this.RULE[t].reg.test(e)}},{key:"rule",value:function(){return kf()}}]),n}();function dp(){return"object"===("undefined"==typeof window?"undefined":li(window))}function pp(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}gi(fp,"HOOK_NAME","table");var hp=function(e){xn(n,tu);var t=pp(n);function n(e){var r;return bn(this,n),(r=t.call(this,{needCache:!0})).classicBr=ol("classicBr")?sl():e.globalConfig.classicBr,r}return mn(n,[{key:"beforeMakeHtml",value:function(e){var t=this;return this.test(e)?e.replace(this.RULE.reg,(function(e,n,r){var a,i;if(0===r)return e;var o,s,c=null!==(a=null===(i=n.match(/\n/g))||void 0===i?void 0:i.length)&&void 0!==a?a:0,l="br".concat(c),u="";dp()?u=t.classicBr?Js(o=''):Js(s='

     

    '):u=t.classicBr?"":"
    ";var f=t.pushCache(u,l,c);return"\n\n".concat(f,"\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=lf(e,"g",!0),e}}]),n}();function gp(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}gi(hp,"HOOK_NAME","br");var mp=function(e){xn(n,tu);var t=gp(n);function n(){return bn(this,n),t.call(this,{needCache:!0})}return mn(n,[{key:"beforeMakeHtml",value:function(e){var t=this;return e.replace(this.RULE.reg,(function(e,n){var r,a=(n.match(/\n/g)||[]).length+1,i="hr".concat(a);return tl(e,t.pushCache(Js(r='
    '),i))}))}},{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}();gi(mp,"HOOK_NAME","hr");var bp={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=dd(t,2),a=r[0],i=r[1];return a&&(n=' width="'.concat(a.replace(/[ #]*/g,""),'"')),i&&(n+=' height="'.concat(i.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 a=0;a')).call(d,Yl(r||""),"");return Js(v="".concat(n)).call(v,s.videoWrapper?s.videoWrapper(a):S)}return t},kp=function(e){xn(n,Tc);var t=yp(n);function n(e){var r,a=e.config,i=e.globalConfig;return bn(this,n),(r=t.call(this,null)).urlProcessor=i.urlProcessor,r.extendMedia={tag:["video","audio"],replacer:{video:function(e,t,n,r,o,s){return _p("video",e,t,n,r,o,s,a,i)},audio:function(e,t,n,r,o,s){return _p("audio",e,t,n,r,o,s,a,i)}}},r.RULE=r.rule(r.extendMedia),r}return mn(n,[{key:"toHtml",value:function(e,t,n,r,a,i,o){var s=void 0===r?"ref":"url",c="";if("ref"===s)return e;if("url"===s){var l,u,f,d,p,h,g,m,b=bp.processExtendAttributesInAlt(n),v=bp.processExtendStyleInAlt(n),y=v.extendStyles,_=v.extendClasses;y&&(y=' style="'.concat(y,'" ')),_&&(_=' class="'.concat(_,'" ')),c=a&&""!==Gc(a).call(a)?' title="'.concat(Yl(a.replace(/["']/g,"")),'"'):"";var k,w="src",E=this.$engine.$cherry.options;if(E.callback&&E.callback.beforeImageMounted){var S=E.callback.beforeImageMounted(w,r);w=S.srcProp||w,k=S.src||r}var A=o?o.replace(/[{}]/g,"").replace(/([^=\s]+)=([^\s]+)/g,'$1="$2"').replace(/&/g,"&"):"";return Js(l=Js(u=Js(f=Js(d=Js(p=Js(h=Js(g=Js(m="".concat(t,"')).call(f,Yl(n||")}return e}},{key:"toMediaHtml",value:function(e,t,n,r,a,i,o,s,c){var l,u;if(!this.extendMedia.replacer[n])return e;for(var f=arguments.length,d=new Array(f>9?f-9:0),p=9;p-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,i})):(t.type="blank",e)}var Tp=mn((function e(){bn(this,e),this.index=0,this.space=0,this.type="",this.start=1,this.listStyle="",this.strs=[],this.children=[],this.lines=0})),$p=function(e){xn(n,tu);var t=Sp(n);function n(e){var r,a=e.config;return bn(this,n),(r=t.call(this,{needCache:!0})).config=a||{},r.tree=[],r.emptyLines=0,r.indentSpace=Math.max(r.config.indentSpace,2),r}return mn(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]=Ep(Ep({},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,a=0;ai.space;)o-=1;var s=i.space,c=this.tree[o].space;s".concat(c.strs.join("
    "),"

    ");c.lines+=o.getLineCount(c.strs.join("\n"));var f=c.children.length?o.renderTree(n):"";e.lines+=c.lines,s+=c.lines;return/<\/span>/.test(u)&&(l.class+=" check-list-item"),Js(r=Js(a=Js(i="".concat(t,"")).call(a,u)).call(r,f,"")}),"");return void 0===e.parent&&(c["data-lines"]=0===e.index?s+this.emptyLines:s,c["data-sign"]=this.sign),t[0]&&"ol"===n&&(c.start=this.tree[t[0]].start),c.class="cherry-list__".concat(this.tree[t[0]].listStyle),Js(r=Js(a=Js(i="<".concat(n)).call(i,Ap(c),">")).call(a,l,"")}},{key:"renderTree",value:function(e){var t=this,n=0,r=this.tree[e],a=r.children;return ip(a).call(a,(function(e,i,o){if(0===o)return e;if(t.tree[a[o]].type===t.tree[a[o-1]].type)return e;var s=t.renderSubTree(r,Zf(a).call(a,n,o),t.tree[a[o-1]].type);return n=o,e+s}),"")+(a.length?this.renderSubTree(r,Zf(a).call(a,n,a.length),this.tree[a[a.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 a=e.replace(/~0$/g,"").replace(/^\n+/,"");this.buildTree(function(e){return e.replace(/^((?:|[\t ]+)[*+-]\s+)\[(\s|x)\]/gm,(function(e,t,n){var r,a=/\s/.test(n)?'':'';return Js(r="".concat(t)).call(r,a)}))}(a),t);var i=this.renderTree(0);return this.pushCache(i,this.sign,this.$getLineNum(e))}},{key:"$getLineNum",value:function(e){var t,n,r,a,i=null!==(t=null===(n=e.match(/^\n\n/))||void 0===n?void 0:n.length)&&void 0!==t?t:0;return null!==(r=null===(a=e.replace(/^\n+/,"").replace(/\n+$/,"\n").match(/\n/g))||void 0===a?void 0:a.length)&&void 0!==r?r:0+i}},{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 Rp(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}function Op(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}gi($p,"HOOK_NAME","list");var Pp=function(e){xn(n,tu);var t=Rp(n);function n(){return bn(this,n),t.call(this,{needCache:!0})}return mn(n,[{key:"handleMatch",value:function(e,t){var n=this;return e.replace(this.RULE.reg,(function(e,r,a){for(var i,o,s=t(a),c=s.sign,l=s.html,u=n.signWithCache(l)||c,f=n.getLineCount(e,r),d=/^(([ \t]{0,3}([*+-]|\d+[.]|[a-z]\.|[I一二三四五六七八九十]+\.)[ \t]+)([^\r]+?)($|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.]|[a-z]\.|[I一二三四五六七八九十]+\.)[ \t]+)))/,p=Op(r),h=l.split("\n"),g=/^[>\s]+/,m=/>/g,b=1,v=0,y=Js(i=Js(o='
    '),_=0;h[_];_++){if(0!==_){var k=Op(h[_]);if(k<=p&&d.test(h[_]))break;p=k}var w=h[_].replace(g,(function(e){var t=e.match(m);return v=t&&t.length>b?t.length:b,""}));if(b===v&&0!==_&&(y+="
    "),b").call("
    ",v-b),b=v;y+=w}return y+=Id("
    ").call("
    ",b),n.getCacheWithSpace(n.pushCache(y,u,f),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=lf(e,"g"),e}}]),n}();function Lp(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}gi(Pp,"HOOK_NAME","blockquote");var Ip=function(e){xn(n,Tc);var t=Lp(n);function n(e){var r,a=e.config,i=e.globalConfig;return bn(this,n),(r=t.call(this,{config:a})).urlProcessor=i.urlProcessor,r.enableShortLink=!!a.enableShortLink,r.shortLinkLength=a.shortLinkLength,r.target=a.target?'target="'.concat(a.target,'"'):a.openNewPage?'target="_blank"':"",r.rel=a.rel?'rel="'.concat(a.rel,'"'):"",r}return mn(n,[{key:"isLinkInHtmlAttribute",value:function(e,t,n){for(var r,a=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=a.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,a=/[^<]*<\/a>/g;null!==(r=a.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)&&(gf.test(e)||bf.test(e))?e.replace(this.RULE.reg,(function(e,t,r,a,i,o,s){var c,l,u;if(n.isLinkInHtmlAttribute(s,o,r.length+a.length)||n.isLinkInATag(s,o,r.length+a.length))return e;var f=r.toLowerCase(),d="",p="",h=!0;if(("<"!==t&&"<"!==t||">"!==i&&">"!==i)&&(d=t,p=i,h=!1),""===Gc(a).call(a)||!h&&""===f&&!/www\./.test(a))return e;switch(f){case"javascript:":return e;case"mailto:":var g,m,b,v,y,_;return mf.test(a)?Js(g=Js(m=Js(b=Js(v=Js(y="".concat(d,'")).call(m,Yl(a),"")).call(g,p):e;case"":var k,w,E,S,A,x,C,T,$,R;if(d===p||!h)return mf.test(a)?Js(k=Js(w=Js(E=Js(S=Js(A="".concat(d,'")).call(w,Yl(a),"")).call(k,p):yf.test(a)?Js(x=Js(C="".concat(d)).call(C,n.renderLink("//".concat(a),a))).call(x,p):e;if(h)return mf.test(a)?Js(T=Js($=Js(R='")).call(T,Yl(a),""):_f.test(a)||yf.test(a)?n.renderLink(a):e;default:return _f.test(a)?Js(c=Js(l="".concat(d)).call(l,n.renderLink(Js(u="".concat(f)).call(u,a)))).call(c,p):e}return e})):e}},{key:"rule",value:function(){var e,t={begin:"(?)"};return t.reg=lf(t,"ig"),t}},{key:"renderLink",value:function(e,t){var n,r,a,i,o=t;if("string"!=typeof o)if(this.enableShortLink){var s,c=e.replace(/^https?:\/\//i,"");o=Js(s="".concat(c.substring(0,this.shortLinkLength))).call(s,c.length>this.shortLinkLength?"...":"")}else o=e;var l=this.urlProcessor(e,"autolink");return Js(n=Js(r=Js(a=Js(i="')).call(n,Yl(o).replace(/_/g,"\\_"),"")}}]),n}();function Np(){var e,t,n,r;dp()&&(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)}gi(Ip,"HOOK_NAME","autoLink");var Mp=["&","<",">",'"',"'"],jp=function(e){var t=e.replace(new RegExp(pf,"g"),(function(e){return-1!==Nl(Mp).call(Mp,e)?Zl(e):"\\".concat(e)}));return t},Dp=Hc.trim,Fp=b("".charAt),Bp=o.parseFloat,Hp=o.Symbol,zp=Hp&&Hp.iterator,Up=1/Bp(Nc+"-0")!=-1/0||zp&&!s((function(){Bp(Object(zp))}))?function(e){var t=Dp(qn(e)),n=Bp(t);return 0===n&&"-"==Fp(t,0)?-0:n}:Bp;Je({global:!0,forced:parseFloat!=Up},{parseFloat:Up}),M.parseFloat;var Wp=Pf,qp=ve("match"),Gp=o.TypeError,Kp=function(e){if(function(e){var t;return N(e)&&(void 0!==(t=e[qp])?!!t:"RegExp"==T(e))}(e))throw Gp("The method doesn't accept regular expressions");return e},Zp=ve("match"),Yp=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[Zp]=!1,"/./"[e](t)}catch(e){}}return!1};Te.f;var Xp=b("".startsWith),Vp=b("".slice),Jp=Math.min,Qp=Yp("startsWith");Je({target:"String",proto:!0,forced:!Qp},{startsWith:function(e){var t=qn(L(this));Kp(e);var n=Lt(Jp(arguments.length>1?arguments[1]:void 0,t.length)),r=qn(e);return Xp?Xp(t,r,n):Vp(t,n,n+r.length)===r}});var eh=qs("String").startsWith,th=String.prototype,nh=function(e){var t=e.startsWith;return"string"==typeof e||e===th||F(th,e)&&t===th.startsWith?eh:t};function rh(e,t){if(!e||!e.tagName)return"";var n,r,a=document.createElement("div");return a.appendChild(e.cloneNode(!1)),n=a.innerHTML,t&&(r=Nl(n).call(n,">")+1,n=n.substring(0,r)+e.innerHTML+n.substring(r)),a=null,n}function ah(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=document.createElement(e);(a.className=n,void 0!==r)&&ic(t=sc(r)).call(t,(function(e){var t=r[e];if(nh(e).call(e,"data-")){var n=e.replace(/^data-/,"");a.dataset[n]=t}else a.setAttribute(e,t)}));return a}var ih=n((function(e,t){e.exports=function(){const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:a}=Object;let{freeze:i,seal:o,create:s}=Object,{apply:c,construct:l}="undefined"!=typeof Reflect&&Reflect;i||(i=function(e){return e}),o||(o=function(e){return e}),c||(c=function(e,t,n){return e.apply(t,n)}),l||(l=function(e,t){return new e(...t)});const u=k(Array.prototype.forEach),f=k(Array.prototype.pop),d=k(Array.prototype.push),p=k(String.prototype.toLowerCase),h=k(String.prototype.toString),g=k(String.prototype.match),m=k(String.prototype.replace),b=k(String.prototype.indexOf),v=k(String.prototype.trim),y=k(RegExp.prototype.test),_=w(TypeError);function k(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a2&&void 0!==arguments[2]?arguments[2]:p;t&&t(e,null);let i=r.length;for(;i--;){let t=r[i];if("string"==typeof t){const e=a(t);e!==t&&(n(r)||(r[i]=e),t=e)}e[t]=!0}return e}function S(e){for(let t=0;t/gm),B=o(/\${[\w\W]*}/gm),H=o(/^data-[\-\w.\u00B7-\uFFFF]/),z=o(/^aria-[\-\w]+$/),U=o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),W=o(/^(?:\w+script|data):/i),q=o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G=o(/^html$/i);var K=Object.freeze({__proto__:null,MUSTACHE_EXPR:D,ERB_EXPR:F,TMPLIT_EXPR:B,DATA_ATTR:H,ARIA_ATTR:z,IS_ALLOWED_URI:U,IS_SCRIPT_OR_DATA:W,ATTR_WHITESPACE:q,DOCTYPE_NAME:G});const Z=function(){return"undefined"==typeof window?null:window},Y=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function X(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z();const n=e=>X(e);if(n.version="3.0.8",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;let{document:r}=t;const a=r,o=a.currentScript,{DocumentFragment:c,HTMLTemplateElement:l,Node:k,Element:w,NodeFilter:S,NamedNodeMap:D=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:F,DOMParser:B,trustedTypes:H}=t,z=w.prototype,W=x(z,"cloneNode"),q=x(z,"nextSibling"),V=x(z,"childNodes"),J=x(z,"parentNode");if("function"==typeof l){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let Q,ee="";const{implementation:te,createNodeIterator:ne,createDocumentFragment:re,getElementsByTagName:ae}=r,{importNode:ie}=a;let oe={};n.isSupported="function"==typeof e&&"function"==typeof J&&te&&void 0!==te.createHTMLDocument;const{MUSTACHE_EXPR:se,ERB_EXPR:ce,TMPLIT_EXPR:le,DATA_ATTR:ue,ARIA_ATTR:fe,IS_SCRIPT_OR_DATA:de,ATTR_WHITESPACE:pe}=K;let{IS_ALLOWED_URI:he}=K,ge=null;const me=E({},[...C,...T,...$,...O,...L]);let be=null;const ve=E({},[...I,...N,...M,...j]);let ye=Object.seal(s(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}})),_e=null,ke=null,we=!0,Ee=!0,Se=!1,Ae=!0,xe=!1,Ce=!1,Te=!1,$e=!1,Re=!1,Oe=!1,Pe=!1,Le=!0,Ie=!1;const Ne="user-content-";let Me=!0,je=!1,De={},Fe=null;const Be=E({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let He=null;const ze=E({},["audio","video","img","source","image","track"]);let Ue=null;const We=E({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qe="http://www.w3.org/1998/Math/MathML",Ge="http://www.w3.org/2000/svg",Ke="http://www.w3.org/1999/xhtml";let Ze=Ke,Ye=!1,Xe=null;const Ve=E({},[qe,Ge,Ke],h);let Je=null;const Qe=["application/xhtml+xml","text/html"],et="text/html";let tt=null,nt=null;const rt=r.createElement("form"),at=function(e){return e instanceof RegExp||e instanceof Function},it=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!nt||nt!==e){if(e&&"object"==typeof e||(e={}),e=A(e),Je=-1===Qe.indexOf(e.PARSER_MEDIA_TYPE)?et:e.PARSER_MEDIA_TYPE,tt="application/xhtml+xml"===Je?h:p,ge="ALLOWED_TAGS"in e?E({},e.ALLOWED_TAGS,tt):me,be="ALLOWED_ATTR"in e?E({},e.ALLOWED_ATTR,tt):ve,Xe="ALLOWED_NAMESPACES"in e?E({},e.ALLOWED_NAMESPACES,h):Ve,Ue="ADD_URI_SAFE_ATTR"in e?E(A(We),e.ADD_URI_SAFE_ATTR,tt):We,He="ADD_DATA_URI_TAGS"in e?E(A(ze),e.ADD_DATA_URI_TAGS,tt):ze,Fe="FORBID_CONTENTS"in e?E({},e.FORBID_CONTENTS,tt):Be,_e="FORBID_TAGS"in e?E({},e.FORBID_TAGS,tt):{},ke="FORBID_ATTR"in e?E({},e.FORBID_ATTR,tt):{},De="USE_PROFILES"in e&&e.USE_PROFILES,we=!1!==e.ALLOW_ARIA_ATTR,Ee=!1!==e.ALLOW_DATA_ATTR,Se=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ae=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,xe=e.SAFE_FOR_TEMPLATES||!1,Ce=e.WHOLE_DOCUMENT||!1,Re=e.RETURN_DOM||!1,Oe=e.RETURN_DOM_FRAGMENT||!1,Pe=e.RETURN_TRUSTED_TYPE||!1,$e=e.FORCE_BODY||!1,Le=!1!==e.SANITIZE_DOM,Ie=e.SANITIZE_NAMED_PROPS||!1,Me=!1!==e.KEEP_CONTENT,je=e.IN_PLACE||!1,he=e.ALLOWED_URI_REGEXP||U,Ze=e.NAMESPACE||Ke,ye=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&at(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ye.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&at(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ye.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ye.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),xe&&(Ee=!1),Oe&&(Re=!0),De&&(ge=E({},L),be=[],!0===De.html&&(E(ge,C),E(be,I)),!0===De.svg&&(E(ge,T),E(be,N),E(be,j)),!0===De.svgFilters&&(E(ge,$),E(be,N),E(be,j)),!0===De.mathMl&&(E(ge,O),E(be,M),E(be,j))),e.ADD_TAGS&&(ge===me&&(ge=A(ge)),E(ge,e.ADD_TAGS,tt)),e.ADD_ATTR&&(be===ve&&(be=A(be)),E(be,e.ADD_ATTR,tt)),e.ADD_URI_SAFE_ATTR&&E(Ue,e.ADD_URI_SAFE_ATTR,tt),e.FORBID_CONTENTS&&(Fe===Be&&(Fe=A(Fe)),E(Fe,e.FORBID_CONTENTS,tt)),Me&&(ge["#text"]=!0),Ce&&E(ge,["html","head","body"]),ge.table&&(E(ge,["tbody"]),delete _e.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw _('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw _('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Q=e.TRUSTED_TYPES_POLICY,ee=Q.createHTML("")}else void 0===Q&&(Q=Y(H,o)),null!==Q&&"string"==typeof ee&&(ee=Q.createHTML(""));i&&i(e),nt=e}},ot=E({},["mi","mo","mn","ms","mtext"]),st=E({},["foreignobject","desc","title","annotation-xml"]),ct=E({},["title","style","font","a","script"]),lt=E({},[...T,...$,...R]),ut=E({},[...O,...P]),ft=function(e){let t=J(e);t&&t.tagName||(t={namespaceURI:Ze,tagName:"template"});const n=p(e.tagName),r=p(t.tagName);return!!Xe[e.namespaceURI]&&(e.namespaceURI===Ge?t.namespaceURI===Ke?"svg"===n:t.namespaceURI===qe?"svg"===n&&("annotation-xml"===r||ot[r]):Boolean(lt[n]):e.namespaceURI===qe?t.namespaceURI===Ke?"math"===n:t.namespaceURI===Ge?"math"===n&&st[r]:Boolean(ut[n]):e.namespaceURI===Ke?!(t.namespaceURI===Ge&&!st[r])&&!(t.namespaceURI===qe&&!ot[r])&&!ut[n]&&(ct[n]||!lt[n]):!("application/xhtml+xml"!==Je||!Xe[e.namespaceURI]))},dt=function(e){d(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},pt=function(e,t){try{d(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){d(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!be[e])if(Re||Oe)try{dt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ht=function(e){let t=null,n=null;if($e)e=""+e;else{const t=g(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Je&&Ze===Ke&&(e=''+e+"");const a=Q?Q.createHTML(e):e;if(Ze===Ke)try{t=(new B).parseFromString(a,Je)}catch(e){}if(!t||!t.documentElement){t=te.createDocument(Ze,"template",null);try{t.documentElement.innerHTML=Ye?ee:a}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),Ze===Ke?ae.call(t,Ce?"html":"body")[0]:Ce?t.documentElement:i},gt=function(e){return ne.call(e.ownerDocument||e,e,S.SHOW_ELEMENT|S.SHOW_COMMENT|S.SHOW_TEXT,null)},mt=function(e){return e instanceof F&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof D)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},bt=function(e){return"function"==typeof k&&e instanceof k},vt=function(e,t,r){oe[e]&&u(oe[e],(e=>{e.call(n,t,r,nt)}))},yt=function(e){let t=null;if(vt("beforeSanitizeElements",e,null),mt(e))return dt(e),!0;const r=tt(e.nodeName);if(vt("uponSanitizeElement",e,{tagName:r,allowedTags:ge}),e.hasChildNodes()&&!bt(e.firstElementChild)&&y(/<[/\w]/g,e.innerHTML)&&y(/<[/\w]/g,e.textContent))return dt(e),!0;if(!ge[r]||_e[r]){if(!_e[r]&&kt(r)){if(ye.tagNameCheck instanceof RegExp&&y(ye.tagNameCheck,r))return!1;if(ye.tagNameCheck instanceof Function&&ye.tagNameCheck(r))return!1}if(Me&&!Fe[r]){const t=J(e)||e.parentNode,n=V(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r)t.insertBefore(W(n[r],!0),q(e))}return dt(e),!0}return e instanceof w&&!ft(e)?(dt(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!y(/<\/no(script|embed|frames)/i,e.innerHTML)?(xe&&3===e.nodeType&&(t=e.textContent,u([se,ce,le],(e=>{t=m(t,e," ")})),e.textContent!==t&&(d(n.removed,{element:e.cloneNode()}),e.textContent=t)),vt("afterSanitizeElements",e,null),!1):(dt(e),!0)},_t=function(e,t,n){if(Le&&("id"===t||"name"===t)&&(n in r||n in rt))return!1;if(Ee&&!ke[t]&&y(ue,t));else if(we&&y(fe,t));else if(!be[t]||ke[t]){if(!(kt(e)&&(ye.tagNameCheck instanceof RegExp&&y(ye.tagNameCheck,e)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(e))&&(ye.attributeNameCheck instanceof RegExp&&y(ye.attributeNameCheck,t)||ye.attributeNameCheck instanceof Function&&ye.attributeNameCheck(t))||"is"===t&&ye.allowCustomizedBuiltInElements&&(ye.tagNameCheck instanceof RegExp&&y(ye.tagNameCheck,n)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(n))))return!1}else if(Ue[t]);else if(y(he,m(n,pe,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==b(n,"data:")||!He[e])if(Se&&!y(de,m(n,pe,"")));else if(n)return!1;return!0},kt=function(e){return e.indexOf("-")>0},wt=function(e){vt("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:be};let a=t.length;for(;a--;){const i=t[a],{name:o,namespaceURI:s,value:c}=i,l=tt(o);let d="value"===o?c:v(c);if(r.attrName=l,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,vt("uponSanitizeAttribute",e,r),d=r.attrValue,r.forceKeepAttr)continue;if(pt(o,e),!r.keepAttr)continue;if(!Ae&&y(/\/>/i,d)){pt(o,e);continue}xe&&u([se,ce,le],(e=>{d=m(d,e," ")}));const p=tt(e.nodeName);if(_t(p,l,d)){if(!Ie||"id"!==l&&"name"!==l||(pt(o,e),d=Ne+d),Q&&"object"==typeof H&&"function"==typeof H.getAttributeType)if(s);else switch(H.getAttributeType(p,l)){case"TrustedHTML":d=Q.createHTML(d);break;case"TrustedScriptURL":d=Q.createScriptURL(d)}try{s?e.setAttributeNS(s,o,d):e.setAttribute(o,d),f(n.removed)}catch(e){}}}vt("afterSanitizeAttributes",e,null)},Et=function e(t){let n=null;const r=gt(t);for(vt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)vt("uponSanitizeShadowNode",n,null),yt(n)||(n.content instanceof c&&e(n.content),wt(n));vt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,o=null,s=null;if(Ye=!e,Ye&&(e="\x3c!--\x3e"),"string"!=typeof e&&!bt(e)){if("function"!=typeof e.toString)throw _("toString is not a function");if("string"!=typeof(e=e.toString()))throw _("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Te||it(t),n.removed=[],"string"==typeof e&&(je=!1),je){if(e.nodeName){const t=tt(e.nodeName);if(!ge[t]||_e[t])throw _("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof k)r=ht("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),1===i.nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!Re&&!xe&&!Ce&&-1===e.indexOf("<"))return Q&&Pe?Q.createHTML(e):e;if(r=ht(e),!r)return Re?null:Pe?ee:""}r&&$e&&dt(r.firstChild);const l=gt(je?e:r);for(;o=l.nextNode();)yt(o)||(o.content instanceof c&&Et(o.content),wt(o));if(je)return e;if(Re){if(Oe)for(s=re.call(r.ownerDocument);r.firstChild;)s.appendChild(r.firstChild);else s=r;return(be.shadowroot||be.shadowrootmode)&&(s=ie.call(a,s,!0)),s}let f=Ce?r.outerHTML:r.innerHTML;return Ce&&ge["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&y(G,r.ownerDocument.doctype.name)&&(f="\n"+f),xe&&u([se,ce,le],(e=>{f=m(f,e," ")})),Q&&Pe?Q.createHTML(f):f},n.setConfig=function(){it(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Te=!0},n.clearConfig=function(){nt=null,Te=!1},n.isValidAttribute=function(e,t,n){nt||it({});const r=tt(e),a=tt(t);return _t(r,a,n)},n.addHook=function(e,t){"function"==typeof t&&(oe[e]=oe[e]||[],d(oe[e],t))},n.removeHook=function(e){if(oe[e])return f(oe[e])},n.removeHooks=function(e){oe[e]&&(oe[e]=[])},n.removeAllHooks=function(){oe={}},n}var V=X();return V}()})),oh=ih(new e.JSDOM("").window);function sh(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}var ch=function(e){xn(n,tu);var t=sh(n);function n(e){var r,a,i=e.config;return bn(this,n),gi(ui(a=t.call(this,{needCache:!0})),"engine","MathJax"),gi(ui(a),"katex",void 0),gi(ui(a),"MathJax",void 0),a.engine=dp()?null!==(r=i.engine)&&void 0!==r?r:"MathJax":"node",a}return mn(n,[{key:"toHtml",value:function(e,t,n,r){var a,i,o;Ys(Np).call(Np,this)("engine");var s=e.replace(/^[ \f\r\t\v]*/,"").replace(/\s*$/,""),c=t.replace(/^[ \f\r\t\v]*\n/,""),l=this.$engine.md5(e),u=this.getLineCount(s,c);/\n/.test(t)||(u-=1),/\n\s*$/.test(e)||(u-=1),u=u>0?u:0;var f=Js(a=Js(i='
    $$')).call(a,jp(r),"$$
    ");if("katex"===this.engine){var d,p,h=this.katex.renderToString(r,{throwOnError:!1,displayMode:!0});f=Js(d=Js(p='
    ')).call(d,h,"
    ")}if(null!==(o=this.MathJax)&&void 0!==o&&o.tex2svg){var g,m,b=rh(this.MathJax.tex2svg(r),!0);f=Js(g=Js(m='
    ')).call(g,b,"
    ")}return f=oh.sanitize(f),n+this.getCacheWithSpace(this.pushCache(f,l,u),e)}},{key:"beforeMakeHtml",value:function(e){var t,n;return uf()?e.replace(this.RULE.reg,Ys(n=this.toHtml).call(n,this)):Vf(e,this.RULE.reg,Ys(t=this.toHtml).call(t,this),!0,1)}},{key:"makeHtml",value:function(e){return e}},{key:"rule",value:function(){var e={begin:uf()?"(\\s*)((?$')).call(r,jp(n),"$
    ");if("katex"===this.engine&&null!==(i=this.katex)&&void 0!==i&&i.renderToString){var f,d,p=this.katex.renderToString(n,{throwOnError:!1});u=Js(f=Js(d="".concat(t,'')).call(f,p,"")}if(null!==(o=this.MathJax)&&void 0!==o&&o.tex2svg){var h,g,m=rh(this.MathJax.tex2svg(n,{em:12,ex:6,display:!1}),!0);u=Js(h=Js(g="".concat(t,'')).call(h,m,"")}return u=oh.sanitize(u),this.pushCache(u,tu.IN_PARAGRAPH_CACHE_KEY_PREFIX+l)}},{key:"beforeMakeHtml",value:function(e){var t=this,n=e;return n=n.replace(kf(!0),(function(e){var n;return Ic(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)?uf()?e.replace(this.RULE.reg,Ys(n=this.toHtml).call(n,this)):Vf(e,this.RULE.reg,Ys(t=this.toHtml).call(t,this),!0,1):e}},{key:"makeHtml",value:function(e){return e}},{key:"rule",value:function(){var e={begin:uf()?"((?1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,o=void 0===i?n:Ot(i,n);o>a;)t[a++]=e;return t}});var fh=qs("Array").fill,dh=Array.prototype,ph=function(e){var t=e.fill;return e===dh||F(dh,e)&&t===dh.fill?fh:t};function hh(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}function gh(e){return e}var mh={tocStyle:"plain",tocNodeClass:"toc-li",tocContainerClass:"toc",tocTitleClass:"toc-title",linkProcessor:gh},bh='

     

    ',vh=function(e){xn(n,tu);var t=hh(n);function n(e){var r,a;e.externals;var i=e.config;return bn(this,n),gi(ui(a=t.call(this,{needCache:!0})),"tocStyle","nested"),gi(ui(a),"tocNodeClass","toc-li"),gi(ui(a),"tocContainerClass","toc"),gi(ui(a),"tocTitleClass","toc-title"),gi(ui(a),"linkProcessor",gh),gi(ui(a),"baseLevel",1),gi(ui(a),"isFirstTocToken",!0),gi(ui(a),"allowMultiToc",!1),ic(r=sc(mh)).call(r,(function(e){a[e]=i[e]||mh[e]})),a}return mn(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 a;if(!t.allowMultiToc&&!t.isFirstTocToken)return Js(a="\n".concat(n)).call(a,bh);var i=t.pushCache(e);return t.isFirstTocToken=!1,tl(e,i)}))),this.test(n,"standard")&&(n=n.replace(this.RULE.standard.reg,(function(e,n,r){var a;return t.allowMultiToc||t.isFirstTocToken?(t.isFirstTocToken=!1,tl(e,t.pushCache(e))):Js(a="\n".concat(n)).call(a,bh)}))),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],c="";t&&(c=this.$makeLevel(e.level));var l=this.linkProcessor("#".concat(e.id).replace(/safe_/g,""));return Js(n=Js(r=Js(a=Js(i=Js(o='
  • ')).call(o,c,'')).call(r,e.text,"")).call(n,s?"
  • ":"")}},{key:"$makePlainToc",value:function(e){var t=this;return Ic(e).call(e,(function(e){return t.$makeTocItem(e,!0)})).join("")}},{key:"$makeNestedToc",value:function(e){var t,n,r=this,a=0,i=ph(t=new Array(7)).call(t,!1),o=ph(n=new Array(7)).call(n,!1),s="";ic(e).call(e,(function(e){var t=e.level;if(0===a){for(var n=t;n>=r.baseLevel;n--)s+="
      ",o[n]=!0;return s+=r.$makeTocItem(e,!1,!1),i[t]=!0,void(a=t)}if(t=t;c--)i[c]&&(s+="",i[c]=!1),o[c]&&c>t&&(s+="
    ",o[c]=!1);i[t]=!0,s+=r.$makeTocItem(e,!1,!1),a=t}else if(t===a)i[a]&&(s+=""),s+=r.$makeTocItem(e,!1,!1),i[t]=!0,o[t]=!0;else{for(var l=a+1;l<=t;l++)s+="
      ",o[l]=!0;i[t]=!0,s+=r.$makeTocItem(e,!1,!1),a=t}}));for(var c=a;c>=this.baseLevel;c--)i[c]&&(s+="",i[c]=!1),o[c]&&(s+="
    ",o[c]=!1);return s}},{key:"$makeToc",value:function(e,t,n){var r,a,i,o=nl(n,1),s=Js(r=Js(a=Js(i='');return s+='

    目录

    '),e.length<=0?"":(this.baseLevel=Math.min.apply(Math,Wf(Ic(e).call(e,(function(e){return e.level})))),"nested"===this.tocStyle?s+=this.$makeNestedToc(e):s+=this.$makePlainToc(e),s+="
    ")}},{key:"afterMakeHtml",value:function(e){var t=this,r=Hd(hi(n.prototype),"afterMakeHtml",this).call(this,e),a=[],i="";return r.replace(/]*? id="([^"]+?)"[^>]*?>(?:|)(.+?)<\/h\1>/g,(function(e,t,n,r){var o,s=r.replace(/~fn#[0-9]+#/g,"");a.push({level:+t,id:n,text:s}),i+=Js(o="".concat(t)).call(o,n)})),i=this.$engine.md5(i),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(a,i,n)}))).replace(this.RULE.standard.reg,(function(e,n){return t.$makeToc(a,i,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 yh(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}gi(vh,"HOOK_NAME","toc");var _h=function(e){xn(n,tu);var t=yh(n);function n(e){var r;return e.externals,e.config,bn(this,n),(r=t.call(this)).footnoteCache={},r.footnoteMap={},r.footnote=[],r}return mn(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,a,i,o,s;if(this.footnoteMap[e])return this.footnoteMap[e];var c=this.footnote.length+1,l={};l.fn=Js(n=Js(r=Js(a='[')).call(n,c,"]"),l.fnref=Js(i=Js(o=Js(s='[')).call(i,c,"]"),l.num=c,l.note=Gc(t).call(t),this.footnote.push(l);var u="\0~fn#".concat(c-1,"#\0");return this.footnoteMap[e]=u,u}},{key:"getFootNote",value:function(){return this.footnote}},{key:"formatFootNote",value:function(){var e,t=this.getFootNote();if(t.length<=0)return"";var n=Ic(t).call(t,(function(e){var t;return Js(t='
    \n'.concat(e.fnref)).call(t,e.note,"\n
    ")})).join(""),r=this.$engine.md5(n);return n=Js(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,a){return t.pushFootnoteCache(r,a),(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=lf(e,"g",!0),e}}]),n}();function kh(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}gi(_h,"HOOK_NAME","footnote");var wh=function(e){xn(n,tu);var t=kh(n);function n(e){var r;return e.externals,e.config,bn(this,n),(r=t.call(this)).commentCache={},r}return mn(n,[{key:"$cleanCache",value:function(){this.commentCache={}}},{key:"pushCommentReferenceCache",value:function(e,t){var n,r=Kf(t.split(/[ ]+/g)),a=r[0],i=Zf(r).call(r,1),o=Td.set(a);this.commentCache["".concat(e).toLowerCase()]=Js(n=[o]).call(n,Wf(i)).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,a){var i;return t.pushCommentReferenceCache(r,a),(null!==(i=e.match(/\n/g))&&void 0!==i?i:[]).join("")}));n=n.replace(/(\[[^\]\n]+?\])?(?:\[([^\]\n]+?)\])/g,(function(e,n,r){var a,i,o=t.getCommentReferenceCache(r);return o?n?Js(i="".concat(n,"(")).call(i,o,")"):Js(a="[".concat(r,"](")).call(a,o,")"):e})),this.$cleanCache()}return n}},{key:"makeHtml",value:function(e,t){return e}},{key:"afterMakeHtml",value:function(e){return Td.restoreAll(e)}},{key:"rule",value:function(){var e={begin:"(^|\\n)[ \t]*",content:["\\[([^^][^\\]]*?)\\]:\\h*","([^\\n]+?)"].join(""),end:"(?=$|\\n)"};return e.reg=lf(e,"g",!0),e}}]),n}();gi(wh,"HOOK_NAME","commentReference");var Eh=Er.some,Sh=Qs("some");Je({target:"Array",proto:!0,forced:!Sh},{some:function(e){return Eh(this,e,arguments.length>1?arguments[1]:void 0)}});var Ah=qs("Array").some,xh=Array.prototype,Ch=function(e){var t=e.some;return e===xh||F(xh,e)&&t===xh.some?Ah:t};function Th(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}var $h=["href","src"];oh.addHook("afterSanitizeAttributes",(function(e){ic($h).call($h,(function(t){if(e.hasAttribute(t)){var n=e.getAttribute(t);e.setAttribute(t,n.replace(/\\/g,"%5c"))}}))}));var Rh=function(e){xn(n,tu);var t=Th(n);function n(){return bn(this,n),t.call(this,{needCache:!0})}return mn(n,[{key:"isAutoLinkTag",value:function(e){var t=[/^<([a-z][a-z0-9+.-]{1,31}:\/\/[^<> `]+)>$/i,/^<(mailto:[^<> `]+)>$/i,/^<([^()<>[\]:'@\\,"\s`]+@[^()<>[\]:'@\\,"\s`.]+\.[^()<>[\]:'@\\,"\s`]+)>$/i];return Ch(t).call(t,(function(t){return t.test(e)}))}},{key:"isHtmlComment",value:function(e){return/^$/.test(e)}},{key:"beforeMakeHtml",value:function(e,t){var n=this;this.$engine.htmlWhiteListAppend?(this.htmlWhiteListAppend=new RegExp("^(".concat(this.$engine.htmlWhiteListAppend,")( |$|/)"),"i"),this.htmlWhiteList=this.$engine.htmlWhiteListAppend.split("|")):(this.htmlWhiteListAppend=!1,this.htmlWhiteList=[]);var r=e;return r=function(e){if("string"!=typeof e)return"";var t=e.replace(/&(\w+);?/g,(function(e,t){return-1===Nl(e).call(e,";")||-1===Nl(zl).call(zl,t.toLowerCase())?e.replace(/&/g,"&"):e}));return t=t.replace(/&#(?!x)(\d*);?/gi,(function(e,t){return Ul(t)||-1===Nl(e).call(e,";")||t.lenth>7||!Wl(t)?e.replace(/&/g,"&"):e})),t=t.replace(/&#x([0-9a-f]*);?/gi,(function(e,t){if(Ul(t))return e.replace(/&/g,"&");var n="0x".concat(t),r=el(n,16);return isNaN(r)||-1===Nl(e).call(e,";")||t.lenth>6||!Wl(n)?e.replace(/&/g,"&"):e})),t}(r=Xl(r)),r=(r=(r=r.replace(/<[/]?(.*?)>/g,(function(e,t){return Kl.test(t)||n.isAutoLinkTag(e)||n.isHtmlComment(e)||!1!==n.htmlWhiteListAppend&&n.htmlWhiteListAppend.test(t)?e.replace(//g,"$#62;"):e.replace(//g,">")}))).replace(/<(?=\/?(\w|\n|$))/g,"<")).replace(/\$#60;/g,"<").replace(/\$#62;/g,">")}},{key:"makeHtml",value:function(e,t){return e}},{key:"afterMakeHtml",value:function(e){var t=e,n={ALLOW_UNKNOWN_PROTOCOLS:!0,ADD_ATTR:["target"]};if(!1!==this.htmlWhiteListAppend){var r;if(n.ADD_TAGS=this.htmlWhiteList,(this.htmlWhiteListAppend.test("style")||this.htmlWhiteListAppend.test("ALL"))&&(t=t.replace(/| [^>]*>).*?<\/style>/gi,(function(e){return e.replace(/
    /gi,"")}))),this.htmlWhiteListAppend.test("iframe")||this.htmlWhiteListAppend.test("ALL"))n.ADD_ATTR=Js(r=n.ADD_ATTR).call(r,["align","frameborder","height","longdesc","marginheight","marginwidth","name","sandbox","scrolling","seamless","src","srcdoc","width"]),n.SANITIZE_DOM=!1,t=t.replace(/| [^>]*>).*?<\/iframe>/gi,(function(e){return e.replace(/
    /gi,"").replace(/\n/g,"")}));if(this.htmlWhiteListAppend.test("script")||this.htmlWhiteListAppend.test("ALL"))return t=t.replace(/| [^>]*>).*?<\/script>/gi,(function(e){return e.replace(/
    /gi,"")})),t}return dp()||(n.FORBID_ATTR=["data-sign","data-lines"]),oh.sanitize(t,n)}}]),n}();gi(Rh,"HOOK_NAME","htmlBlock");var Oh={"+1":"1f44d","-1":"1f44e",100:"1f4af",1234:"1f522","1st_place_medal":"1f947","2nd_place_medal":"1f948","3rd_place_medal":"1f949","8ball":"1f3b1",a:"1f170",ab:"1f18e",abacus:"1f9ee",abc:"1f524",abcd:"1f521",accept:"1f251",adhesive_bandage:"1fa79",adult:"1f9d1",aerial_tramway:"1f6a1",afghanistan:"1f1e6-1f1eb",airplane:"2708",aland_islands:"1f1e6-1f1fd",alarm_clock:"23f0",albania:"1f1e6-1f1f1",alembic:"2697",algeria:"1f1e9-1f1ff",alien:"1f47d",ambulance:"1f691",american_samoa:"1f1e6-1f1f8",amphora:"1f3fa",anchor:"2693",andorra:"1f1e6-1f1e9",angel:"1f47c",anger:"1f4a2",angola:"1f1e6-1f1f4",angry:"1f620",anguilla:"1f1e6-1f1ee",anguished:"1f627",ant:"1f41c",antarctica:"1f1e6-1f1f6",antigua_barbuda:"1f1e6-1f1ec",apple:"1f34e",aquarius:"2652",argentina:"1f1e6-1f1f7",aries:"2648",armenia:"1f1e6-1f1f2",arrow_backward:"25c0",arrow_double_down:"23ec",arrow_double_up:"23eb",arrow_down:"2b07",arrow_down_small:"1f53d",arrow_forward:"25b6",arrow_heading_down:"2935",arrow_heading_up:"2934",arrow_left:"2b05",arrow_lower_left:"2199",arrow_lower_right:"2198",arrow_right:"27a1",arrow_right_hook:"21aa",arrow_up:"2b06",arrow_up_down:"2195",arrow_up_small:"1f53c",arrow_upper_left:"2196",arrow_upper_right:"2197",arrows_clockwise:"1f503",arrows_counterclockwise:"1f504",art:"1f3a8",articulated_lorry:"1f69b",artificial_satellite:"1f6f0",artist:"1f9d1-1f3a8",aruba:"1f1e6-1f1fc",ascension_island:"1f1e6-1f1e8",asterisk:"002a-20e3",astonished:"1f632",astronaut:"1f9d1-1f680",athletic_shoe:"1f45f",atm:"1f3e7",atom_symbol:"269b",australia:"1f1e6-1f1fa",austria:"1f1e6-1f1f9",auto_rickshaw:"1f6fa",avocado:"1f951",axe:"1fa93",azerbaijan:"1f1e6-1f1ff",b:"1f171",baby:"1f476",baby_bottle:"1f37c",baby_chick:"1f424",baby_symbol:"1f6bc",back:"1f519",bacon:"1f953",badger:"1f9a1",badminton:"1f3f8",bagel:"1f96f",baggage_claim:"1f6c4",baguette_bread:"1f956",bahamas:"1f1e7-1f1f8",bahrain:"1f1e7-1f1ed",balance_scale:"2696",bald_man:"1f468-1f9b2",bald_woman:"1f469-1f9b2",ballet_shoes:"1fa70",balloon:"1f388",ballot_box:"1f5f3",ballot_box_with_check:"2611",bamboo:"1f38d",banana:"1f34c",bangbang:"203c",bangladesh:"1f1e7-1f1e9",banjo:"1fa95",bank:"1f3e6",bar_chart:"1f4ca",barbados:"1f1e7-1f1e7",barber:"1f488",baseball:"26be",basket:"1f9fa",basketball:"1f3c0",basketball_man:"26f9-2642",basketball_woman:"26f9-2640",bat:"1f987",bath:"1f6c0",bathtub:"1f6c1",battery:"1f50b",beach_umbrella:"1f3d6",bear:"1f43b",bearded_person:"1f9d4",bed:"1f6cf",bee:"1f41d",beer:"1f37a",beers:"1f37b",beetle:"1f41e",beginner:"1f530",belarus:"1f1e7-1f1fe",belgium:"1f1e7-1f1ea",belize:"1f1e7-1f1ff",bell:"1f514",bellhop_bell:"1f6ce",benin:"1f1e7-1f1ef",bento:"1f371",bermuda:"1f1e7-1f1f2",beverage_box:"1f9c3",bhutan:"1f1e7-1f1f9",bicyclist:"1f6b4",bike:"1f6b2",biking_man:"1f6b4-2642",biking_woman:"1f6b4-2640",bikini:"1f459",billed_cap:"1f9e2",biohazard:"2623",bird:"1f426",birthday:"1f382",black_circle:"26ab",black_flag:"1f3f4",black_heart:"1f5a4",black_joker:"1f0cf",black_large_square:"2b1b",black_medium_small_square:"25fe",black_medium_square:"25fc",black_nib:"2712",black_small_square:"25aa",black_square_button:"1f532",blond_haired_man:"1f471-2642",blond_haired_person:"1f471",blond_haired_woman:"1f471-2640",blonde_woman:"1f471-2640",blossom:"1f33c",blowfish:"1f421",blue_book:"1f4d8",blue_car:"1f699",blue_heart:"1f499",blue_square:"1f7e6",blush:"1f60a",boar:"1f417",boat:"26f5",bolivia:"1f1e7-1f1f4",bomb:"1f4a3",bone:"1f9b4",book:"1f4d6",bookmark:"1f516",bookmark_tabs:"1f4d1",books:"1f4da",boom:"1f4a5",boot:"1f462",bosnia_herzegovina:"1f1e7-1f1e6",botswana:"1f1e7-1f1fc",bouncing_ball_man:"26f9-2642",bouncing_ball_person:"26f9",bouncing_ball_woman:"26f9-2640",bouquet:"1f490",bouvet_island:"1f1e7-1f1fb",bow:"1f647",bow_and_arrow:"1f3f9",bowing_man:"1f647-2642",bowing_woman:"1f647-2640",bowl_with_spoon:"1f963",bowling:"1f3b3",boxing_glove:"1f94a",boy:"1f466",brain:"1f9e0",brazil:"1f1e7-1f1f7",bread:"1f35e",breast_feeding:"1f931",bricks:"1f9f1",bride_with_veil:"1f470",bridge_at_night:"1f309",briefcase:"1f4bc",british_indian_ocean_territory:"1f1ee-1f1f4",british_virgin_islands:"1f1fb-1f1ec",broccoli:"1f966",broken_heart:"1f494",broom:"1f9f9",brown_circle:"1f7e4",brown_heart:"1f90e",brown_square:"1f7eb",brunei:"1f1e7-1f1f3",bug:"1f41b",building_construction:"1f3d7",bulb:"1f4a1",bulgaria:"1f1e7-1f1ec",bullettrain_front:"1f685",bullettrain_side:"1f684",burkina_faso:"1f1e7-1f1eb",burrito:"1f32f",burundi:"1f1e7-1f1ee",bus:"1f68c",business_suit_levitating:"1f574",busstop:"1f68f",bust_in_silhouette:"1f464",busts_in_silhouette:"1f465",butter:"1f9c8",butterfly:"1f98b",cactus:"1f335",cake:"1f370",calendar:"1f4c6",call_me_hand:"1f919",calling:"1f4f2",cambodia:"1f1f0-1f1ed",camel:"1f42b",camera:"1f4f7",camera_flash:"1f4f8",cameroon:"1f1e8-1f1f2",camping:"1f3d5",canada:"1f1e8-1f1e6",canary_islands:"1f1ee-1f1e8",cancer:"264b",candle:"1f56f",candy:"1f36c",canned_food:"1f96b",canoe:"1f6f6",cape_verde:"1f1e8-1f1fb",capital_abcd:"1f520",capricorn:"2651",car:"1f697",card_file_box:"1f5c3",card_index:"1f4c7",card_index_dividers:"1f5c2",caribbean_netherlands:"1f1e7-1f1f6",carousel_horse:"1f3a0",carrot:"1f955",cartwheeling:"1f938",cat:"1f431",cat2:"1f408",cayman_islands:"1f1f0-1f1fe",cd:"1f4bf",central_african_republic:"1f1e8-1f1eb",ceuta_melilla:"1f1ea-1f1e6",chad:"1f1f9-1f1e9",chains:"26d3",chair:"1fa91",champagne:"1f37e",chart:"1f4b9",chart_with_downwards_trend:"1f4c9",chart_with_upwards_trend:"1f4c8",checkered_flag:"1f3c1",cheese:"1f9c0",cherries:"1f352",cherry_blossom:"1f338",chess_pawn:"265f",chestnut:"1f330",chicken:"1f414",child:"1f9d2",children_crossing:"1f6b8",chile:"1f1e8-1f1f1",chipmunk:"1f43f",chocolate_bar:"1f36b",chopsticks:"1f962",christmas_island:"1f1e8-1f1fd",christmas_tree:"1f384",church:"26ea",cinema:"1f3a6",circus_tent:"1f3aa",city_sunrise:"1f307",city_sunset:"1f306",cityscape:"1f3d9",cl:"1f191",clamp:"1f5dc",clap:"1f44f",clapper:"1f3ac",classical_building:"1f3db",climbing:"1f9d7",climbing_man:"1f9d7-2642",climbing_woman:"1f9d7-2640",clinking_glasses:"1f942",clipboard:"1f4cb",clipperton_island:"1f1e8-1f1f5",clock1:"1f550",clock10:"1f559",clock1030:"1f565",clock11:"1f55a",clock1130:"1f566",clock12:"1f55b",clock1230:"1f567",clock130:"1f55c",clock2:"1f551",clock230:"1f55d",clock3:"1f552",clock330:"1f55e",clock4:"1f553",clock430:"1f55f",clock5:"1f554",clock530:"1f560",clock6:"1f555",clock630:"1f561",clock7:"1f556",clock730:"1f562",clock8:"1f557",clock830:"1f563",clock9:"1f558",clock930:"1f564",closed_book:"1f4d5",closed_lock_with_key:"1f510",closed_umbrella:"1f302",cloud:"2601",cloud_with_lightning:"1f329",cloud_with_lightning_and_rain:"26c8",cloud_with_rain:"1f327",cloud_with_snow:"1f328",clown_face:"1f921",clubs:"2663",cn:"1f1e8-1f1f3",coat:"1f9e5",cocktail:"1f378",coconut:"1f965",cocos_islands:"1f1e8-1f1e8",coffee:"2615",coffin:"26b0",cold_face:"1f976",cold_sweat:"1f630",collision:"1f4a5",colombia:"1f1e8-1f1f4",comet:"2604",comoros:"1f1f0-1f1f2",compass:"1f9ed",computer:"1f4bb",computer_mouse:"1f5b1",confetti_ball:"1f38a",confounded:"1f616",confused:"1f615",congo_brazzaville:"1f1e8-1f1ec",congo_kinshasa:"1f1e8-1f1e9",congratulations:"3297",construction:"1f6a7",construction_worker:"1f477",construction_worker_man:"1f477-2642",construction_worker_woman:"1f477-2640",control_knobs:"1f39b",convenience_store:"1f3ea",cook:"1f9d1-1f373",cook_islands:"1f1e8-1f1f0",cookie:"1f36a",cool:"1f192",cop:"1f46e",copyright:"00a9",corn:"1f33d",costa_rica:"1f1e8-1f1f7",cote_divoire:"1f1e8-1f1ee",couch_and_lamp:"1f6cb",couple:"1f46b",couple_with_heart:"1f491",couple_with_heart_man_man:"1f468-2764-1f468",couple_with_heart_woman_man:"1f469-2764-1f468",couple_with_heart_woman_woman:"1f469-2764-1f469",couplekiss:"1f48f",couplekiss_man_man:"1f468-2764-1f48b-1f468",couplekiss_man_woman:"1f469-2764-1f48b-1f468",couplekiss_woman_woman:"1f469-2764-1f48b-1f469",cow:"1f42e",cow2:"1f404",cowboy_hat_face:"1f920",crab:"1f980",crayon:"1f58d",credit_card:"1f4b3",crescent_moon:"1f319",cricket:"1f997",cricket_game:"1f3cf",croatia:"1f1ed-1f1f7",crocodile:"1f40a",croissant:"1f950",crossed_fingers:"1f91e",crossed_flags:"1f38c",crossed_swords:"2694",crown:"1f451",cry:"1f622",crying_cat_face:"1f63f",crystal_ball:"1f52e",cuba:"1f1e8-1f1fa",cucumber:"1f952",cup_with_straw:"1f964",cupcake:"1f9c1",cupid:"1f498",curacao:"1f1e8-1f1fc",curling_stone:"1f94c",curly_haired_man:"1f468-1f9b1",curly_haired_woman:"1f469-1f9b1",curly_loop:"27b0",currency_exchange:"1f4b1",curry:"1f35b",cursing_face:"1f92c",custard:"1f36e",customs:"1f6c3",cut_of_meat:"1f969",cyclone:"1f300",cyprus:"1f1e8-1f1fe",czech_republic:"1f1e8-1f1ff",dagger:"1f5e1",dancer:"1f483",dancers:"1f46f",dancing_men:"1f46f-2642",dancing_women:"1f46f-2640",dango:"1f361",dark_sunglasses:"1f576",dart:"1f3af",dash:"1f4a8",date:"1f4c5",de:"1f1e9-1f1ea",deaf_man:"1f9cf-2642",deaf_person:"1f9cf",deaf_woman:"1f9cf-2640",deciduous_tree:"1f333",deer:"1f98c",denmark:"1f1e9-1f1f0",department_store:"1f3ec",derelict_house:"1f3da",desert:"1f3dc",desert_island:"1f3dd",desktop_computer:"1f5a5",detective:"1f575",diamond_shape_with_a_dot_inside:"1f4a0",diamonds:"2666",diego_garcia:"1f1e9-1f1ec",disappointed:"1f61e",disappointed_relieved:"1f625",diving_mask:"1f93f",diya_lamp:"1fa94",dizzy:"1f4ab",dizzy_face:"1f635",djibouti:"1f1e9-1f1ef",dna:"1f9ec",do_not_litter:"1f6af",dog:"1f436",dog2:"1f415",dollar:"1f4b5",dolls:"1f38e",dolphin:"1f42c",dominica:"1f1e9-1f1f2",dominican_republic:"1f1e9-1f1f4",door:"1f6aa",doughnut:"1f369",dove:"1f54a",dragon:"1f409",dragon_face:"1f432",dress:"1f457",dromedary_camel:"1f42a",drooling_face:"1f924",drop_of_blood:"1fa78",droplet:"1f4a7",drum:"1f941",duck:"1f986",dumpling:"1f95f",dvd:"1f4c0","e-mail":"1f4e7",eagle:"1f985",ear:"1f442",ear_of_rice:"1f33e",ear_with_hearing_aid:"1f9bb",earth_africa:"1f30d",earth_americas:"1f30e",earth_asia:"1f30f",ecuador:"1f1ea-1f1e8",egg:"1f95a",eggplant:"1f346",egypt:"1f1ea-1f1ec",eight:"0038-20e3",eight_pointed_black_star:"2734",eight_spoked_asterisk:"2733",eject_button:"23cf",el_salvador:"1f1f8-1f1fb",electric_plug:"1f50c",elephant:"1f418",elf:"1f9dd",elf_man:"1f9dd-2642",elf_woman:"1f9dd-2640",email:"2709",end:"1f51a",england:"1f3f4-e0067-e0062-e0065-e006e-e0067-e007f",envelope:"2709",envelope_with_arrow:"1f4e9",equatorial_guinea:"1f1ec-1f1f6",eritrea:"1f1ea-1f1f7",es:"1f1ea-1f1f8",estonia:"1f1ea-1f1ea",ethiopia:"1f1ea-1f1f9",eu:"1f1ea-1f1fa",euro:"1f4b6",european_castle:"1f3f0",european_post_office:"1f3e4",european_union:"1f1ea-1f1fa",evergreen_tree:"1f332",exclamation:"2757",exploding_head:"1f92f",expressionless:"1f611",eye:"1f441",eye_speech_bubble:"1f441-1f5e8",eyeglasses:"1f453",eyes:"1f440",face_with_head_bandage:"1f915",face_with_thermometer:"1f912",facepalm:"1f926",facepunch:"1f44a",factory:"1f3ed",factory_worker:"1f9d1-1f3ed",fairy:"1f9da",fairy_man:"1f9da-2642",fairy_woman:"1f9da-2640",falafel:"1f9c6",falkland_islands:"1f1eb-1f1f0",fallen_leaf:"1f342",family:"1f46a",family_man_boy:"1f468-1f466",family_man_boy_boy:"1f468-1f466-1f466",family_man_girl:"1f468-1f467",family_man_girl_boy:"1f468-1f467-1f466",family_man_girl_girl:"1f468-1f467-1f467",family_man_man_boy:"1f468-1f468-1f466",family_man_man_boy_boy:"1f468-1f468-1f466-1f466",family_man_man_girl:"1f468-1f468-1f467",family_man_man_girl_boy:"1f468-1f468-1f467-1f466",family_man_man_girl_girl:"1f468-1f468-1f467-1f467",family_man_woman_boy:"1f468-1f469-1f466",family_man_woman_boy_boy:"1f468-1f469-1f466-1f466",family_man_woman_girl:"1f468-1f469-1f467",family_man_woman_girl_boy:"1f468-1f469-1f467-1f466",family_man_woman_girl_girl:"1f468-1f469-1f467-1f467",family_woman_boy:"1f469-1f466",family_woman_boy_boy:"1f469-1f466-1f466",family_woman_girl:"1f469-1f467",family_woman_girl_boy:"1f469-1f467-1f466",family_woman_girl_girl:"1f469-1f467-1f467",family_woman_woman_boy:"1f469-1f469-1f466",family_woman_woman_boy_boy:"1f469-1f469-1f466-1f466",family_woman_woman_girl:"1f469-1f469-1f467",family_woman_woman_girl_boy:"1f469-1f469-1f467-1f466",family_woman_woman_girl_girl:"1f469-1f469-1f467-1f467",farmer:"1f9d1-1f33e",faroe_islands:"1f1eb-1f1f4",fast_forward:"23e9",fax:"1f4e0",fearful:"1f628",feet:"1f43e",female_detective:"1f575-2640",female_sign:"2640",ferris_wheel:"1f3a1",ferry:"26f4",field_hockey:"1f3d1",fiji:"1f1eb-1f1ef",file_cabinet:"1f5c4",file_folder:"1f4c1",film_projector:"1f4fd",film_strip:"1f39e",finland:"1f1eb-1f1ee",fire:"1f525",fire_engine:"1f692",fire_extinguisher:"1f9ef",firecracker:"1f9e8",firefighter:"1f9d1-1f692",fireworks:"1f386",first_quarter_moon:"1f313",first_quarter_moon_with_face:"1f31b",fish:"1f41f",fish_cake:"1f365",fishing_pole_and_fish:"1f3a3",fist:"270a",fist_left:"1f91b",fist_oncoming:"1f44a",fist_raised:"270a",fist_right:"1f91c",five:"0035-20e3",flags:"1f38f",flamingo:"1f9a9",flashlight:"1f526",flat_shoe:"1f97f",fleur_de_lis:"269c",flight_arrival:"1f6ec",flight_departure:"1f6eb",flipper:"1f42c",floppy_disk:"1f4be",flower_playing_cards:"1f3b4",flushed:"1f633",flying_disc:"1f94f",flying_saucer:"1f6f8",fog:"1f32b",foggy:"1f301",foot:"1f9b6",football:"1f3c8",footprints:"1f463",fork_and_knife:"1f374",fortune_cookie:"1f960",fountain:"26f2",fountain_pen:"1f58b",four:"0034-20e3",four_leaf_clover:"1f340",fox_face:"1f98a",fr:"1f1eb-1f1f7",framed_picture:"1f5bc",free:"1f193",french_guiana:"1f1ec-1f1eb",french_polynesia:"1f1f5-1f1eb",french_southern_territories:"1f1f9-1f1eb",fried_egg:"1f373",fried_shrimp:"1f364",fries:"1f35f",frog:"1f438",frowning:"1f626",frowning_face:"2639",frowning_man:"1f64d-2642",frowning_person:"1f64d",frowning_woman:"1f64d-2640",fu:"1f595",fuelpump:"26fd",full_moon:"1f315",full_moon_with_face:"1f31d",funeral_urn:"26b1",gabon:"1f1ec-1f1e6",gambia:"1f1ec-1f1f2",game_die:"1f3b2",garlic:"1f9c4",gb:"1f1ec-1f1e7",gear:"2699",gem:"1f48e",gemini:"264a",genie:"1f9de",genie_man:"1f9de-2642",genie_woman:"1f9de-2640",georgia:"1f1ec-1f1ea",ghana:"1f1ec-1f1ed",ghost:"1f47b",gibraltar:"1f1ec-1f1ee",gift:"1f381",gift_heart:"1f49d",giraffe:"1f992",girl:"1f467",globe_with_meridians:"1f310",gloves:"1f9e4",goal_net:"1f945",goat:"1f410",goggles:"1f97d",golf:"26f3",golfing:"1f3cc",golfing_man:"1f3cc-2642",golfing_woman:"1f3cc-2640",gorilla:"1f98d",grapes:"1f347",greece:"1f1ec-1f1f7",green_apple:"1f34f",green_book:"1f4d7",green_circle:"1f7e2",green_heart:"1f49a",green_salad:"1f957",green_square:"1f7e9",greenland:"1f1ec-1f1f1",grenada:"1f1ec-1f1e9",grey_exclamation:"2755",grey_question:"2754",grimacing:"1f62c",grin:"1f601",grinning:"1f600",guadeloupe:"1f1ec-1f1f5",guam:"1f1ec-1f1fa",guard:"1f482",guardsman:"1f482-2642",guardswoman:"1f482-2640",guatemala:"1f1ec-1f1f9",guernsey:"1f1ec-1f1ec",guide_dog:"1f9ae",guinea:"1f1ec-1f1f3",guinea_bissau:"1f1ec-1f1fc",guitar:"1f3b8",gun:"1f52b",guyana:"1f1ec-1f1fe",haircut:"1f487",haircut_man:"1f487-2642",haircut_woman:"1f487-2640",haiti:"1f1ed-1f1f9",hamburger:"1f354",hammer:"1f528",hammer_and_pick:"2692",hammer_and_wrench:"1f6e0",hamster:"1f439",hand:"270b",hand_over_mouth:"1f92d",handbag:"1f45c",handball_person:"1f93e",handshake:"1f91d",hankey:"1f4a9",hash:"0023-20e3",hatched_chick:"1f425",hatching_chick:"1f423",headphones:"1f3a7",health_worker:"1f9d1-2695",hear_no_evil:"1f649",heard_mcdonald_islands:"1f1ed-1f1f2",heart:"2764",heart_decoration:"1f49f",heart_eyes:"1f60d",heart_eyes_cat:"1f63b",heartbeat:"1f493",heartpulse:"1f497",hearts:"2665",heavy_check_mark:"2714",heavy_division_sign:"2797",heavy_dollar_sign:"1f4b2",heavy_exclamation_mark:"2757",heavy_heart_exclamation:"2763",heavy_minus_sign:"2796",heavy_multiplication_x:"2716",heavy_plus_sign:"2795",hedgehog:"1f994",helicopter:"1f681",herb:"1f33f",hibiscus:"1f33a",high_brightness:"1f506",high_heel:"1f460",hiking_boot:"1f97e",hindu_temple:"1f6d5",hippopotamus:"1f99b",hocho:"1f52a",hole:"1f573",honduras:"1f1ed-1f1f3",honey_pot:"1f36f",honeybee:"1f41d",hong_kong:"1f1ed-1f1f0",horse:"1f434",horse_racing:"1f3c7",hospital:"1f3e5",hot_face:"1f975",hot_pepper:"1f336",hotdog:"1f32d",hotel:"1f3e8",hotsprings:"2668",hourglass:"231b",hourglass_flowing_sand:"23f3",house:"1f3e0",house_with_garden:"1f3e1",houses:"1f3d8",hugs:"1f917",hungary:"1f1ed-1f1fa",hushed:"1f62f",ice_cream:"1f368",ice_cube:"1f9ca",ice_hockey:"1f3d2",ice_skate:"26f8",icecream:"1f366",iceland:"1f1ee-1f1f8",id:"1f194",ideograph_advantage:"1f250",imp:"1f47f",inbox_tray:"1f4e5",incoming_envelope:"1f4e8",india:"1f1ee-1f1f3",indonesia:"1f1ee-1f1e9",infinity:"267e",information_desk_person:"1f481",information_source:"2139",innocent:"1f607",interrobang:"2049",iphone:"1f4f1",iran:"1f1ee-1f1f7",iraq:"1f1ee-1f1f6",ireland:"1f1ee-1f1ea",isle_of_man:"1f1ee-1f1f2",israel:"1f1ee-1f1f1",it:"1f1ee-1f1f9",izakaya_lantern:"1f3ee",jack_o_lantern:"1f383",jamaica:"1f1ef-1f1f2",japan:"1f5fe",japanese_castle:"1f3ef",japanese_goblin:"1f47a",japanese_ogre:"1f479",jeans:"1f456",jersey:"1f1ef-1f1ea",jigsaw:"1f9e9",jordan:"1f1ef-1f1f4",joy:"1f602",joy_cat:"1f639",joystick:"1f579",jp:"1f1ef-1f1f5",judge:"1f9d1-2696",juggling_person:"1f939",kaaba:"1f54b",kangaroo:"1f998",kazakhstan:"1f1f0-1f1ff",kenya:"1f1f0-1f1ea",key:"1f511",keyboard:"2328",keycap_ten:"1f51f",kick_scooter:"1f6f4",kimono:"1f458",kiribati:"1f1f0-1f1ee",kiss:"1f48b",kissing:"1f617",kissing_cat:"1f63d",kissing_closed_eyes:"1f61a",kissing_heart:"1f618",kissing_smiling_eyes:"1f619",kite:"1fa81",kiwi_fruit:"1f95d",kneeling_man:"1f9ce-2642",kneeling_person:"1f9ce",kneeling_woman:"1f9ce-2640",knife:"1f52a",koala:"1f428",koko:"1f201",kosovo:"1f1fd-1f1f0",kr:"1f1f0-1f1f7",kuwait:"1f1f0-1f1fc",kyrgyzstan:"1f1f0-1f1ec",lab_coat:"1f97c",label:"1f3f7",lacrosse:"1f94d",lantern:"1f3ee",laos:"1f1f1-1f1e6",large_blue_circle:"1f535",large_blue_diamond:"1f537",large_orange_diamond:"1f536",last_quarter_moon:"1f317",last_quarter_moon_with_face:"1f31c",latin_cross:"271d",latvia:"1f1f1-1f1fb",laughing:"1f606",leafy_green:"1f96c",leaves:"1f343",lebanon:"1f1f1-1f1e7",ledger:"1f4d2",left_luggage:"1f6c5",left_right_arrow:"2194",left_speech_bubble:"1f5e8",leftwards_arrow_with_hook:"21a9",leg:"1f9b5",lemon:"1f34b",leo:"264c",leopard:"1f406",lesotho:"1f1f1-1f1f8",level_slider:"1f39a",liberia:"1f1f1-1f1f7",libra:"264e",libya:"1f1f1-1f1fe",liechtenstein:"1f1f1-1f1ee",light_rail:"1f688",link:"1f517",lion:"1f981",lips:"1f444",lipstick:"1f484",lithuania:"1f1f1-1f1f9",lizard:"1f98e",llama:"1f999",lobster:"1f99e",lock:"1f512",lock_with_ink_pen:"1f50f",lollipop:"1f36d",loop:"27bf",lotion_bottle:"1f9f4",lotus_position:"1f9d8",lotus_position_man:"1f9d8-2642",lotus_position_woman:"1f9d8-2640",loud_sound:"1f50a",loudspeaker:"1f4e2",love_hotel:"1f3e9",love_letter:"1f48c",love_you_gesture:"1f91f",low_brightness:"1f505",luggage:"1f9f3",luxembourg:"1f1f1-1f1fa",lying_face:"1f925",m:"24c2",macau:"1f1f2-1f1f4",macedonia:"1f1f2-1f1f0",madagascar:"1f1f2-1f1ec",mag:"1f50d",mag_right:"1f50e",mage:"1f9d9",mage_man:"1f9d9-2642",mage_woman:"1f9d9-2640",magnet:"1f9f2",mahjong:"1f004",mailbox:"1f4eb",mailbox_closed:"1f4ea",mailbox_with_mail:"1f4ec",mailbox_with_no_mail:"1f4ed",malawi:"1f1f2-1f1fc",malaysia:"1f1f2-1f1fe",maldives:"1f1f2-1f1fb",male_detective:"1f575-2642",male_sign:"2642",mali:"1f1f2-1f1f1",malta:"1f1f2-1f1f9",man:"1f468",man_artist:"1f468-1f3a8",man_astronaut:"1f468-1f680",man_cartwheeling:"1f938-2642",man_cook:"1f468-1f373",man_dancing:"1f57a",man_facepalming:"1f926-2642",man_factory_worker:"1f468-1f3ed",man_farmer:"1f468-1f33e",man_firefighter:"1f468-1f692",man_health_worker:"1f468-2695",man_in_manual_wheelchair:"1f468-1f9bd",man_in_motorized_wheelchair:"1f468-1f9bc",man_in_tuxedo:"1f935",man_judge:"1f468-2696",man_juggling:"1f939-2642",man_mechanic:"1f468-1f527",man_office_worker:"1f468-1f4bc",man_pilot:"1f468-2708",man_playing_handball:"1f93e-2642",man_playing_water_polo:"1f93d-2642",man_scientist:"1f468-1f52c",man_shrugging:"1f937-2642",man_singer:"1f468-1f3a4",man_student:"1f468-1f393",man_teacher:"1f468-1f3eb",man_technologist:"1f468-1f4bb",man_with_gua_pi_mao:"1f472",man_with_probing_cane:"1f468-1f9af",man_with_turban:"1f473-2642",mandarin:"1f34a",mango:"1f96d",mans_shoe:"1f45e",mantelpiece_clock:"1f570",manual_wheelchair:"1f9bd",maple_leaf:"1f341",marshall_islands:"1f1f2-1f1ed",martial_arts_uniform:"1f94b",martinique:"1f1f2-1f1f6",mask:"1f637",massage:"1f486",massage_man:"1f486-2642",massage_woman:"1f486-2640",mate:"1f9c9",mauritania:"1f1f2-1f1f7",mauritius:"1f1f2-1f1fa",mayotte:"1f1fe-1f1f9",meat_on_bone:"1f356",mechanic:"1f9d1-1f527",mechanical_arm:"1f9be",mechanical_leg:"1f9bf",medal_military:"1f396",medal_sports:"1f3c5",medical_symbol:"2695",mega:"1f4e3",melon:"1f348",memo:"1f4dd",men_wrestling:"1f93c-2642",menorah:"1f54e",mens:"1f6b9",mermaid:"1f9dc-2640",merman:"1f9dc-2642",merperson:"1f9dc",metal:"1f918",metro:"1f687",mexico:"1f1f2-1f1fd",microbe:"1f9a0",micronesia:"1f1eb-1f1f2",microphone:"1f3a4",microscope:"1f52c",middle_finger:"1f595",milk_glass:"1f95b",milky_way:"1f30c",minibus:"1f690",minidisc:"1f4bd",mobile_phone_off:"1f4f4",moldova:"1f1f2-1f1e9",monaco:"1f1f2-1f1e8",money_mouth_face:"1f911",money_with_wings:"1f4b8",moneybag:"1f4b0",mongolia:"1f1f2-1f1f3",monkey:"1f412",monkey_face:"1f435",monocle_face:"1f9d0",monorail:"1f69d",montenegro:"1f1f2-1f1ea",montserrat:"1f1f2-1f1f8",moon:"1f314",moon_cake:"1f96e",morocco:"1f1f2-1f1e6",mortar_board:"1f393",mosque:"1f54c",mosquito:"1f99f",motor_boat:"1f6e5",motor_scooter:"1f6f5",motorcycle:"1f3cd",motorized_wheelchair:"1f9bc",motorway:"1f6e3",mount_fuji:"1f5fb",mountain:"26f0",mountain_bicyclist:"1f6b5",mountain_biking_man:"1f6b5-2642",mountain_biking_woman:"1f6b5-2640",mountain_cableway:"1f6a0",mountain_railway:"1f69e",mountain_snow:"1f3d4",mouse:"1f42d",mouse2:"1f401",movie_camera:"1f3a5",moyai:"1f5ff",mozambique:"1f1f2-1f1ff",mrs_claus:"1f936",muscle:"1f4aa",mushroom:"1f344",musical_keyboard:"1f3b9",musical_note:"1f3b5",musical_score:"1f3bc",mute:"1f507",myanmar:"1f1f2-1f1f2",nail_care:"1f485",name_badge:"1f4db",namibia:"1f1f3-1f1e6",national_park:"1f3de",nauru:"1f1f3-1f1f7",nauseated_face:"1f922",nazar_amulet:"1f9ff",necktie:"1f454",negative_squared_cross_mark:"274e",nepal:"1f1f3-1f1f5",nerd_face:"1f913",netherlands:"1f1f3-1f1f1",neutral_face:"1f610",new:"1f195",new_caledonia:"1f1f3-1f1e8",new_moon:"1f311",new_moon_with_face:"1f31a",new_zealand:"1f1f3-1f1ff",newspaper:"1f4f0",newspaper_roll:"1f5de",next_track_button:"23ed",ng:"1f196",ng_man:"1f645-2642",ng_woman:"1f645-2640",nicaragua:"1f1f3-1f1ee",niger:"1f1f3-1f1ea",nigeria:"1f1f3-1f1ec",night_with_stars:"1f303",nine:"0039-20e3",niue:"1f1f3-1f1fa",no_bell:"1f515",no_bicycles:"1f6b3",no_entry:"26d4",no_entry_sign:"1f6ab",no_good:"1f645",no_good_man:"1f645-2642",no_good_woman:"1f645-2640",no_mobile_phones:"1f4f5",no_mouth:"1f636",no_pedestrians:"1f6b7",no_smoking:"1f6ad","non-potable_water":"1f6b1",norfolk_island:"1f1f3-1f1eb",north_korea:"1f1f0-1f1f5",northern_mariana_islands:"1f1f2-1f1f5",norway:"1f1f3-1f1f4",nose:"1f443",notebook:"1f4d3",notebook_with_decorative_cover:"1f4d4",notes:"1f3b6",nut_and_bolt:"1f529",o:"2b55",o2:"1f17e",ocean:"1f30a",octopus:"1f419",oden:"1f362",office:"1f3e2",office_worker:"1f9d1-1f4bc",oil_drum:"1f6e2",ok:"1f197",ok_hand:"1f44c",ok_man:"1f646-2642",ok_person:"1f646",ok_woman:"1f646-2640",old_key:"1f5dd",older_adult:"1f9d3",older_man:"1f474",older_woman:"1f475",om:"1f549",oman:"1f1f4-1f1f2",on:"1f51b",oncoming_automobile:"1f698",oncoming_bus:"1f68d",oncoming_police_car:"1f694",oncoming_taxi:"1f696",one:"0031-20e3",one_piece_swimsuit:"1fa71",onion:"1f9c5",open_book:"1f4d6",open_file_folder:"1f4c2",open_hands:"1f450",open_mouth:"1f62e",open_umbrella:"2602",ophiuchus:"26ce",orange:"1f34a",orange_book:"1f4d9",orange_circle:"1f7e0",orange_heart:"1f9e1",orange_square:"1f7e7",orangutan:"1f9a7",orthodox_cross:"2626",otter:"1f9a6",outbox_tray:"1f4e4",owl:"1f989",ox:"1f402",oyster:"1f9aa",package:"1f4e6",page_facing_up:"1f4c4",page_with_curl:"1f4c3",pager:"1f4df",paintbrush:"1f58c",pakistan:"1f1f5-1f1f0",palau:"1f1f5-1f1fc",palestinian_territories:"1f1f5-1f1f8",palm_tree:"1f334",palms_up_together:"1f932",panama:"1f1f5-1f1e6",pancakes:"1f95e",panda_face:"1f43c",paperclip:"1f4ce",paperclips:"1f587",papua_new_guinea:"1f1f5-1f1ec",parachute:"1fa82",paraguay:"1f1f5-1f1fe",parasol_on_ground:"26f1",parking:"1f17f",parrot:"1f99c",part_alternation_mark:"303d",partly_sunny:"26c5",partying_face:"1f973",passenger_ship:"1f6f3",passport_control:"1f6c2",pause_button:"23f8",paw_prints:"1f43e",peace_symbol:"262e",peach:"1f351",peacock:"1f99a",peanuts:"1f95c",pear:"1f350",pen:"1f58a",pencil:"1f4dd",pencil2:"270f",penguin:"1f427",pensive:"1f614",people_holding_hands:"1f9d1-1f91d-1f9d1",performing_arts:"1f3ad",persevere:"1f623",person_bald:"1f9d1-1f9b2",person_curly_hair:"1f9d1-1f9b1",person_fencing:"1f93a",person_in_manual_wheelchair:"1f9d1-1f9bd",person_in_motorized_wheelchair:"1f9d1-1f9bc",person_red_hair:"1f9d1-1f9b0",person_white_hair:"1f9d1-1f9b3",person_with_probing_cane:"1f9d1-1f9af",person_with_turban:"1f473",peru:"1f1f5-1f1ea",petri_dish:"1f9eb",philippines:"1f1f5-1f1ed",phone:"260e",pick:"26cf",pie:"1f967",pig:"1f437",pig2:"1f416",pig_nose:"1f43d",pill:"1f48a",pilot:"1f9d1-2708",pinching_hand:"1f90f",pineapple:"1f34d",ping_pong:"1f3d3",pirate_flag:"1f3f4-2620",pisces:"2653",pitcairn_islands:"1f1f5-1f1f3",pizza:"1f355",place_of_worship:"1f6d0",plate_with_cutlery:"1f37d",play_or_pause_button:"23ef",pleading_face:"1f97a",point_down:"1f447",point_left:"1f448",point_right:"1f449",point_up:"261d",point_up_2:"1f446",poland:"1f1f5-1f1f1",police_car:"1f693",police_officer:"1f46e",policeman:"1f46e-2642",policewoman:"1f46e-2640",poodle:"1f429",poop:"1f4a9",popcorn:"1f37f",portugal:"1f1f5-1f1f9",post_office:"1f3e3",postal_horn:"1f4ef",postbox:"1f4ee",potable_water:"1f6b0",potato:"1f954",pouch:"1f45d",poultry_leg:"1f357",pound:"1f4b7",pout:"1f621",pouting_cat:"1f63e",pouting_face:"1f64e",pouting_man:"1f64e-2642",pouting_woman:"1f64e-2640",pray:"1f64f",prayer_beads:"1f4ff",pregnant_woman:"1f930",pretzel:"1f968",previous_track_button:"23ee",prince:"1f934",princess:"1f478",printer:"1f5a8",probing_cane:"1f9af",puerto_rico:"1f1f5-1f1f7",punch:"1f44a",purple_circle:"1f7e3",purple_heart:"1f49c",purple_square:"1f7ea",purse:"1f45b",pushpin:"1f4cc",put_litter_in_its_place:"1f6ae",qatar:"1f1f6-1f1e6",question:"2753",rabbit:"1f430",rabbit2:"1f407",raccoon:"1f99d",racehorse:"1f40e",racing_car:"1f3ce",radio:"1f4fb",radio_button:"1f518",radioactive:"2622",rage:"1f621",railway_car:"1f683",railway_track:"1f6e4",rainbow:"1f308",rainbow_flag:"1f3f3-1f308",raised_back_of_hand:"1f91a",raised_eyebrow:"1f928",raised_hand:"270b",raised_hand_with_fingers_splayed:"1f590",raised_hands:"1f64c",raising_hand:"1f64b",raising_hand_man:"1f64b-2642",raising_hand_woman:"1f64b-2640",ram:"1f40f",ramen:"1f35c",rat:"1f400",razor:"1fa92",receipt:"1f9fe",record_button:"23fa",recycle:"267b",red_car:"1f697",red_circle:"1f534",red_envelope:"1f9e7",red_haired_man:"1f468-1f9b0",red_haired_woman:"1f469-1f9b0",red_square:"1f7e5",registered:"00ae",relaxed:"263a",relieved:"1f60c",reminder_ribbon:"1f397",repeat:"1f501",repeat_one:"1f502",rescue_worker_helmet:"26d1",restroom:"1f6bb",reunion:"1f1f7-1f1ea",revolving_hearts:"1f49e",rewind:"23ea",rhinoceros:"1f98f",ribbon:"1f380",rice:"1f35a",rice_ball:"1f359",rice_cracker:"1f358",rice_scene:"1f391",right_anger_bubble:"1f5ef",ring:"1f48d",ringed_planet:"1fa90",robot:"1f916",rocket:"1f680",rofl:"1f923",roll_eyes:"1f644",roll_of_paper:"1f9fb",roller_coaster:"1f3a2",romania:"1f1f7-1f1f4",rooster:"1f413",rose:"1f339",rosette:"1f3f5",rotating_light:"1f6a8",round_pushpin:"1f4cd",rowboat:"1f6a3",rowing_man:"1f6a3-2642",rowing_woman:"1f6a3-2640",ru:"1f1f7-1f1fa",rugby_football:"1f3c9",runner:"1f3c3",running:"1f3c3",running_man:"1f3c3-2642",running_shirt_with_sash:"1f3bd",running_woman:"1f3c3-2640",rwanda:"1f1f7-1f1fc",sa:"1f202",safety_pin:"1f9f7",safety_vest:"1f9ba",sagittarius:"2650",sailboat:"26f5",sake:"1f376",salt:"1f9c2",samoa:"1f1fc-1f1f8",san_marino:"1f1f8-1f1f2",sandal:"1f461",sandwich:"1f96a",santa:"1f385",sao_tome_principe:"1f1f8-1f1f9",sari:"1f97b",sassy_man:"1f481-2642",sassy_woman:"1f481-2640",satellite:"1f4e1",satisfied:"1f606",saudi_arabia:"1f1f8-1f1e6",sauna_man:"1f9d6-2642",sauna_person:"1f9d6",sauna_woman:"1f9d6-2640",sauropod:"1f995",saxophone:"1f3b7",scarf:"1f9e3",school:"1f3eb",school_satchel:"1f392",scientist:"1f9d1-1f52c",scissors:"2702",scorpion:"1f982",scorpius:"264f",scotland:"1f3f4-e0067-e0062-e0073-e0063-e0074-e007f",scream:"1f631",scream_cat:"1f640",scroll:"1f4dc",seat:"1f4ba",secret:"3299",see_no_evil:"1f648",seedling:"1f331",selfie:"1f933",senegal:"1f1f8-1f1f3",serbia:"1f1f7-1f1f8",service_dog:"1f415-1f9ba",seven:"0037-20e3",seychelles:"1f1f8-1f1e8",shallow_pan_of_food:"1f958",shamrock:"2618",shark:"1f988",shaved_ice:"1f367",sheep:"1f411",shell:"1f41a",shield:"1f6e1",shinto_shrine:"26e9",ship:"1f6a2",shirt:"1f455",poo:"1f4a9",shoe:"1f45e",shopping:"1f6cd",shopping_cart:"1f6d2",shorts:"1fa73",shower:"1f6bf",shrimp:"1f990",shrug:"1f937",shushing_face:"1f92b",sierra_leone:"1f1f8-1f1f1",signal_strength:"1f4f6",singapore:"1f1f8-1f1ec",singer:"1f9d1-1f3a4",sint_maarten:"1f1f8-1f1fd",six:"0036-20e3",six_pointed_star:"1f52f",skateboard:"1f6f9",ski:"1f3bf",skier:"26f7",skull:"1f480",skull_and_crossbones:"2620",skunk:"1f9a8",sled:"1f6f7",sleeping:"1f634",sleeping_bed:"1f6cc",sleepy:"1f62a",slightly_frowning_face:"1f641",slightly_smiling_face:"1f642",slot_machine:"1f3b0",sloth:"1f9a5",slovakia:"1f1f8-1f1f0",slovenia:"1f1f8-1f1ee",small_airplane:"1f6e9",small_blue_diamond:"1f539",small_orange_diamond:"1f538",small_red_triangle:"1f53a",small_red_triangle_down:"1f53b",smile:"1f604",smile_cat:"1f638",smiley:"1f603",smiley_cat:"1f63a",smiling_face_with_three_hearts:"1f970",smiling_imp:"1f608",smirk:"1f60f",smirk_cat:"1f63c",smoking:"1f6ac",snail:"1f40c",snake:"1f40d",sneezing_face:"1f927",snowboarder:"1f3c2",snowflake:"2744",snowman:"26c4",snowman_with_snow:"2603",soap:"1f9fc",sob:"1f62d",soccer:"26bd",socks:"1f9e6",softball:"1f94e",solomon_islands:"1f1f8-1f1e7",somalia:"1f1f8-1f1f4",soon:"1f51c",sos:"1f198",sound:"1f509",south_africa:"1f1ff-1f1e6",south_georgia_south_sandwich_islands:"1f1ec-1f1f8",south_sudan:"1f1f8-1f1f8",space_invader:"1f47e",spades:"2660",spaghetti:"1f35d",sparkle:"2747",sparkler:"1f387",sparkles:"2728",sparkling_heart:"1f496",speak_no_evil:"1f64a",speaker:"1f508",speaking_head:"1f5e3",speech_balloon:"1f4ac",speedboat:"1f6a4",spider:"1f577",spider_web:"1f578",spiral_calendar:"1f5d3",spiral_notepad:"1f5d2",sponge:"1f9fd",spoon:"1f944",squid:"1f991",sri_lanka:"1f1f1-1f1f0",st_barthelemy:"1f1e7-1f1f1",st_helena:"1f1f8-1f1ed",st_kitts_nevis:"1f1f0-1f1f3",st_lucia:"1f1f1-1f1e8",st_martin:"1f1f2-1f1eb",st_pierre_miquelon:"1f1f5-1f1f2",st_vincent_grenadines:"1f1fb-1f1e8",stadium:"1f3df",standing_man:"1f9cd-2642",standing_person:"1f9cd",standing_woman:"1f9cd-2640",star:"2b50",star2:"1f31f",star_and_crescent:"262a",star_of_david:"2721",star_struck:"1f929",stars:"1f320",station:"1f689",statue_of_liberty:"1f5fd",steam_locomotive:"1f682",stethoscope:"1fa7a",stew:"1f372",stop_button:"23f9",stop_sign:"1f6d1",stopwatch:"23f1",straight_ruler:"1f4cf",strawberry:"1f353",stuck_out_tongue:"1f61b",stuck_out_tongue_closed_eyes:"1f61d",stuck_out_tongue_winking_eye:"1f61c",student:"1f9d1-1f393",studio_microphone:"1f399",stuffed_flatbread:"1f959",sudan:"1f1f8-1f1e9",sun_behind_large_cloud:"1f325",sun_behind_rain_cloud:"1f326",sun_behind_small_cloud:"1f324",sun_with_face:"1f31e",sunflower:"1f33b",sunglasses:"1f60e",sunny:"2600",sunrise:"1f305",sunrise_over_mountains:"1f304",superhero:"1f9b8",superhero_man:"1f9b8-2642",superhero_woman:"1f9b8-2640",supervillain:"1f9b9",supervillain_man:"1f9b9-2642",supervillain_woman:"1f9b9-2640",surfer:"1f3c4",surfing_man:"1f3c4-2642",surfing_woman:"1f3c4-2640",suriname:"1f1f8-1f1f7",sushi:"1f363",suspension_railway:"1f69f",svalbard_jan_mayen:"1f1f8-1f1ef",swan:"1f9a2",swaziland:"1f1f8-1f1ff",sweat:"1f613",sweat_drops:"1f4a6",sweat_smile:"1f605",sweden:"1f1f8-1f1ea",sweet_potato:"1f360",swim_brief:"1fa72",swimmer:"1f3ca",swimming_man:"1f3ca-2642",swimming_woman:"1f3ca-2640",switzerland:"1f1e8-1f1ed",symbols:"1f523",synagogue:"1f54d",syria:"1f1f8-1f1fe",syringe:"1f489","t-rex":"1f996",taco:"1f32e",tada:"1f389",taiwan:"1f1f9-1f1fc",tajikistan:"1f1f9-1f1ef",takeout_box:"1f961",tanabata_tree:"1f38b",tangerine:"1f34a",tanzania:"1f1f9-1f1ff",taurus:"2649",taxi:"1f695",tea:"1f375",teacher:"1f9d1-1f3eb",technologist:"1f9d1-1f4bb",teddy_bear:"1f9f8",telephone:"260e",telephone_receiver:"1f4de",telescope:"1f52d",tennis:"1f3be",tent:"26fa",test_tube:"1f9ea",thailand:"1f1f9-1f1ed",thermometer:"1f321",thinking:"1f914",thought_balloon:"1f4ad",thread:"1f9f5",three:"0033-20e3",thumbsdown:"1f44e",thumbsup:"1f44d",ticket:"1f3ab",tickets:"1f39f",tiger:"1f42f",tiger2:"1f405",timer_clock:"23f2",timor_leste:"1f1f9-1f1f1",tipping_hand_man:"1f481-2642",tipping_hand_person:"1f481",tipping_hand_woman:"1f481-2640",tired_face:"1f62b",tm:"2122",togo:"1f1f9-1f1ec",toilet:"1f6bd",tokelau:"1f1f9-1f1f0",tokyo_tower:"1f5fc",tomato:"1f345",tonga:"1f1f9-1f1f4",tongue:"1f445",toolbox:"1f9f0",tooth:"1f9b7",top:"1f51d",tophat:"1f3a9",tornado:"1f32a",tr:"1f1f9-1f1f7",trackball:"1f5b2",tractor:"1f69c",traffic_light:"1f6a5",train:"1f68b",train2:"1f686",tram:"1f68a",triangular_flag_on_post:"1f6a9",triangular_ruler:"1f4d0",trident:"1f531",trinidad_tobago:"1f1f9-1f1f9",tristan_da_cunha:"1f1f9-1f1e6",triumph:"1f624",trolleybus:"1f68e",trophy:"1f3c6",tropical_drink:"1f379",tropical_fish:"1f420",truck:"1f69a",trumpet:"1f3ba",tshirt:"1f455",tulip:"1f337",tumbler_glass:"1f943",tunisia:"1f1f9-1f1f3",turkey:"1f983",turkmenistan:"1f1f9-1f1f2",turks_caicos_islands:"1f1f9-1f1e8",turtle:"1f422",tuvalu:"1f1f9-1f1fb",tv:"1f4fa",twisted_rightwards_arrows:"1f500",two:"0032-20e3",two_hearts:"1f495",two_men_holding_hands:"1f46c",two_women_holding_hands:"1f46d",u5272:"1f239",u5408:"1f234",u55b6:"1f23a",u6307:"1f22f",u6708:"1f237",u6709:"1f236",u6e80:"1f235",u7121:"1f21a",u7533:"1f238",u7981:"1f232",u7a7a:"1f233",uganda:"1f1fa-1f1ec",uk:"1f1ec-1f1e7",ukraine:"1f1fa-1f1e6",umbrella:"2614",unamused:"1f612",underage:"1f51e",unicorn:"1f984",united_arab_emirates:"1f1e6-1f1ea",united_nations:"1f1fa-1f1f3",unlock:"1f513",up:"1f199",upside_down_face:"1f643",uruguay:"1f1fa-1f1fe",us:"1f1fa-1f1f8",us_outlying_islands:"1f1fa-1f1f2",us_virgin_islands:"1f1fb-1f1ee",uzbekistan:"1f1fa-1f1ff",v:"270c",vampire:"1f9db",vampire_man:"1f9db-2642",vampire_woman:"1f9db-2640",vanuatu:"1f1fb-1f1fa",vatican_city:"1f1fb-1f1e6",venezuela:"1f1fb-1f1ea",vertical_traffic_light:"1f6a6",vhs:"1f4fc",vibration_mode:"1f4f3",video_camera:"1f4f9",video_game:"1f3ae",vietnam:"1f1fb-1f1f3",violin:"1f3bb",virgo:"264d",volcano:"1f30b",volleyball:"1f3d0",vomiting_face:"1f92e",vs:"1f19a",vulcan_salute:"1f596",waffle:"1f9c7",wales:"1f3f4-e0067-e0062-e0077-e006c-e0073-e007f",walking:"1f6b6",walking_man:"1f6b6-2642",walking_woman:"1f6b6-2640",wallis_futuna:"1f1fc-1f1eb",waning_crescent_moon:"1f318",waning_gibbous_moon:"1f316",warning:"26a0",wastebasket:"1f5d1",watch:"231a",water_buffalo:"1f403",water_polo:"1f93d",watermelon:"1f349",wave:"1f44b",wavy_dash:"3030",waxing_crescent_moon:"1f312",waxing_gibbous_moon:"1f314",wc:"1f6be",weary:"1f629",wedding:"1f492",weight_lifting:"1f3cb",weight_lifting_man:"1f3cb-2642",weight_lifting_woman:"1f3cb-2640",western_sahara:"1f1ea-1f1ed",whale:"1f433",whale2:"1f40b",wheel_of_dharma:"2638",wheelchair:"267f",white_check_mark:"2705",white_circle:"26aa",white_flag:"1f3f3",white_flower:"1f4ae",white_haired_man:"1f468-1f9b3",white_haired_woman:"1f469-1f9b3",white_heart:"1f90d",white_large_square:"2b1c",white_medium_small_square:"25fd",white_medium_square:"25fb",white_small_square:"25ab",white_square_button:"1f533",wilted_flower:"1f940",wind_chime:"1f390",wind_face:"1f32c",wine_glass:"1f377",wink:"1f609",wolf:"1f43a",woman:"1f469",woman_artist:"1f469-1f3a8",woman_astronaut:"1f469-1f680",woman_cartwheeling:"1f938-2640",woman_cook:"1f469-1f373",woman_dancing:"1f483",woman_facepalming:"1f926-2640",woman_factory_worker:"1f469-1f3ed",woman_farmer:"1f469-1f33e",woman_firefighter:"1f469-1f692",woman_health_worker:"1f469-2695",woman_in_manual_wheelchair:"1f469-1f9bd",woman_in_motorized_wheelchair:"1f469-1f9bc",woman_judge:"1f469-2696",woman_juggling:"1f939-2640",woman_mechanic:"1f469-1f527",woman_office_worker:"1f469-1f4bc",woman_pilot:"1f469-2708",woman_playing_handball:"1f93e-2640",woman_playing_water_polo:"1f93d-2640",woman_scientist:"1f469-1f52c",woman_shrugging:"1f937-2640",woman_singer:"1f469-1f3a4",woman_student:"1f469-1f393",woman_teacher:"1f469-1f3eb",woman_technologist:"1f469-1f4bb",woman_with_headscarf:"1f9d5",woman_with_probing_cane:"1f469-1f9af",woman_with_turban:"1f473-2640",womans_clothes:"1f45a",womans_hat:"1f452",women_wrestling:"1f93c-2640",womens:"1f6ba",woozy_face:"1f974",world_map:"1f5fa",worried:"1f61f",wrench:"1f527",wrestling:"1f93c",writing_hand:"270d",x:"274c",yarn:"1f9f6",yawning_face:"1f971",yellow_circle:"1f7e1",yellow_heart:"1f49b",yellow_square:"1f7e8",yemen:"1f1fe-1f1ea",yen:"1f4b4",yin_yang:"262f",yo_yo:"1fa80",yum:"1f60b",zambia:"1f1ff-1f1f2",zany_face:"1f92a",zap:"26a1",zebra:"1f993",zero:"0030-20e3",zimbabwe:"1f1ff-1f1fc",zipper_mouth_face:"1f910",zombie:"1f9df",zombie_man:"1f9df-2642",zombie_woman:"1f9df-2640",zzz:"1f4a4"};function Ph(e,t){var n=sc(e);if(cl){var r=cl(e);t&&(r=dc(r).call(r,(function(t){return pl(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lh(e){for(var t=1;t>>0===i))throw new RangeError("Invalid code point: ".concat(i));i<=65535?t=e.push(i):(i-=65536,t=e.push(55296+(i>>10),i%1024+56320)),t>=16383&&(n+=String.fromCharCode.apply(null,e),e.length=0)}return n+String.fromCharCode.apply(null,e)}var Mh=function(e){xn(n,Tc);var t=Ih(n);function n(){var e,r=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config;if(bn(this,n),(e=t.call(this,{config:r})).options={useUnicode:!0,upperCase:!1,customHandled:!1,resourceURL:"https://github.githubassets.com/images/icons/emoji/unicode/${code}.png?v8",emojis:Lh({},Oh)},"object"!==li(r))return fi(e);var a=r.useUnicode,i=r.customResourceURL,o=r.customRenderer,s=r.upperCase;return e.options.useUnicode="boolean"==typeof a?a:e.options.useUnicode,e.options.upperCase="boolean"==typeof s?s:e.options.upperCase,!1===a&&"string"==typeof i&&(e.options.resourceURL=i),"function"==typeof o&&(e.options.customHandled=!0,e.options.customRenderer=o),e}return mn(n,[{key:"makeHtml",value:function(e,t){var n=this;return this.test(e)?e.replace(this.RULE.reg,(function(e,t){var r;if(n.options.customHandled&&"function"==typeof n.options.customRenderer)return n.options.customRenderer(t);var a=n.options.emojis[t];if("string"!=typeof a)return e;if(n.options.useUnicode){var i,o=Ic(i=a.split("-")).call(i,(function(e){return"0x".concat(e)}));return Nh.apply(void 0,Wf(o))}n.options.upperCase&&(a=a.toUpperCase());var s=n.options.resourceURL.replace(/\$\{code\}/g,a);return Js(r='')).call(r,Yl(t),'')})):e}},{key:"rule",value:function(){var e={begin:":",content:"([a-zA-Z0-9+_]+?)",end:":"};return e.reg=lf(e,"g"),e}}]),n}();function jh(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}gi(Mh,"HOOK_NAME","emoji");var Dh=function(e){xn(n,Tc);var t=jh(n);function n(){return bn(this,n),t.apply(this,arguments)}return mn(n,[{key:"makeHtml",value:function(e){return this.test(e)?e.replace(this.RULE.reg,'$1$2$3'):e}},{key:"rule",value:function(){var e={begin:"(^| )\\/",end:"\\/( |$)",content:"([^\\n]+?)"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}]),n}();function Fh(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}gi(Dh,"HOOK_NAME","underline");var Bh=function(e){xn(n,Tc);var t=Fh(n);function n(){return bn(this,n),t.apply(this,arguments)}return mn(n,[{key:"makeHtml",value:function(e){return this.test(e)?e.replace(this.RULE.reg,"$1$2$3"):e}},{key:"rule",value:function(){var e={begin:"(^| )==",end:"==( |$|\\n)",content:"([^\\n]+?)"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}]),n}();gi(Bh,"HOOK_NAME","highLight");var Hh=Va;M.JSON||(M.JSON={stringify:JSON.stringify});var zh=function(e,t,n){return d(M.JSON.stringify,null,arguments)},Uh=Mt.includes,Wh=s((function(){return!Array(1).includes()}));Je({target:"Array",proto:!0,forced:Wh},{includes:function(e){return Uh(this,e,arguments.length>1?arguments[1]:void 0)}});var qh=qs("Array").includes,Gh=b("".indexOf);Je({target:"String",proto:!0,forced:!Yp("includes")},{includes:function(e){return!!~Gh(qn(L(this)),qn(Kp(e)),arguments.length>1?arguments[1]:void 0)}});var Kh=qs("String").includes,Zh=Array.prototype,Yh=String.prototype,Xh=function(e){var t=e.includes;return e===Zh||F(Zh,e)&&t===Zh.includes?qh:"string"==typeof e||e===Yh||F(Yh,e)&&t===Yh.includes?Kh:t},Vh=o.TypeError,Jh=/MSIE .\./.test(B),Qh=o.Function,eg=function(e){return Jh?function(t,n){var r=function(e,t){if(e2,a=v(t)?t:Qh(t),i=r?Qe(arguments,2):void 0;return e(r?function(){d(a,this,i)}:a,n)}:e},tg={setTimeout:eg(o.setTimeout),setInterval:eg(o.setInterval)},ng=tg.setInterval;Je({global:!0,bind:!0,forced:o.setInterval!==ng},{setInterval:ng});var rg=tg.setTimeout;Je({global:!0,bind:!0,forced:o.setTimeout!==rg},{setTimeout:rg});var ag=M.setTimeout;var ig=function(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n",keyword:"》",value:">"}],bg=[{icon:"FullWidth",label:"[]",keyword:"【】",value:"[]",goLeft:1},{icon:"FullWidth",label:"【】",keyword:"【",value:"【】",goLeft:1},{icon:"link",label:"Link",keyword:"【】",value:"[title](https://url)",selection:{from:19,to:14}},{icon:"FullWidth",label:"()",keyword:"(",value:"()",goLeft:1},{icon:"FullWidth",label:"()",keyword:"(",value:"()",goLeft:1},{icon:"FullWidth",label:"<>",keyword:"《》",value:"<>",goLeft:1},{icon:"FullWidth",label:"《》",keyword:"《》",value:"《》",goLeft:1},{icon:"FullWidth",label:'""',keyword:"“”",value:'""',goLeft:1},{icon:"FullWidth",label:"“”",keyword:"“”",value:"”“",goLeft:1}],vg=Js(mg).call(mg,bg);var yg=yn,_g=function(){return"CodeMirror.Pass"};function kg(e,t){var n=void 0!==Hh&&Sf(e)||e["@@iterator"];if(!n){if(al(e)||(n=function(e,t){var n;if(!e)return;if("string"==typeof e)return wg(e,t);var r=Zf(n=Object.prototype.toString.call(e)).call(n,8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Wp(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wg(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function wg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n')).call(c,n)).call(s,r,"
    "):!1===(null===(a=this.suggester[n])||void 0===a?void 0:a.echo)?"".concat(t):this.suggester[n]?r?t+r:"".concat(t):t+r}},{key:"rule",value:function(){var e,t,n;if(!this.suggester||sc(this.suggester).length<=0)return{};var r=Ic(e=sc(this.suggester)).call(e,(function(e){return pg(e)})).join("|");return{reg:new RegExp(Js(t=Js(n="".concat(uf()?"((?'),this.searchCache=!1,this.searchKeyCache=[],this.optionList=[],this.cursorMove=!0,this.suggesterConfig={}}return mn(e,[{key:"tryCreatePanel",value:function(){var e,t,n;!this.$suggesterPanel&&dp()&&document&&(null===(e=document)||void 0===e||null===(t=e.body)||void 0===t||t.appendChild(this.createDom(this.panelWrap)),this.$suggesterPanel=null===(n=document)||void 0===n?void 0:n.querySelector(".cherry-suggester-panel"))}},{key:"hasEditor",value:function(){return!!this.editor&&!!this.editor.editor.display&&!!this.editor.editor.display.wrapper}},{key:"setEditor",value:function(e){this.editor=e}},{key:"setSuggester",value:function(e){this.suggesterConfig=e}},{key:"bindEvent",value:function(){var e=this,t=!1;this.editor.editor.on("change",(function(n,r){t=!0,e.onCodeMirrorChange(n,r)})),this.editor.editor.on("keydown",(function(n,r){t=!0,e.enableRelate()&&e.onKeyDown(n,r)})),this.editor.editor.on("cursorActivity",(function(){t||e.stopRelate(),t=!1}));var n=this.editor.editor.getOption("extraKeys"),r=["Up","Down","Enter"];ic(r).call(r,(function(t){if("function"==typeof n[t]){var r=n[t];n[t]=function(t){if(e.cursorMove){var n=r.call(t,t);if(n)return n}}}else if(n[t]){if("string"==typeof n[t]){var a=n[t];n[t]=function(t){e.cursorMove&&e.editor.editor.execCommand(a)}}}else n[t]=function(){if(e.cursorMove)return _g()}})),this.editor.editor.setOption("extraKeys",n),this.editor.editor.on("scroll",(function(t,n){e.searchCache&&e.relocatePanel(e.editor.editor)})),this.onClickPanelItem()}},{key:"onClickPanelItem",value:function(){var e=this;this.tryCreatePanel(),this.$suggesterPanel.addEventListener("click",(function(t){var n,r,a,i,o=(n=e.$suggesterPanel,r=t.target,i=-1,ic(a=n.childNodes).call(a,(function(e,t){return e===r?i=t:""})),i);o>-1&&e.pasteSelectResult(o),e.stopRelate()}),!1)}},{key:"showSuggesterPanel",value:function(e){var t=e.left,n=e.top,r=e.items;this.tryCreatePanel(),!this.$suggesterPanel&&dp()&&(document.body.appendChild(this.createDom(this.panelWrap)),this.$suggesterPanel=document.querySelector(".cherry-suggester-panel")),this.updatePanel(r),this.$suggesterPanel.style.left="".concat(t,"px"),this.$suggesterPanel.style.top="".concat(n,"px"),this.$suggesterPanel.style.display="block",this.$suggesterPanel.style.position="absolute",this.$suggesterPanel.style.zIndex="100"}},{key:"hideSuggesterPanel",value:function(){this.tryCreatePanel(),this.$suggesterPanel&&(this.$suggesterPanel.style.display="none")}},{key:"updatePanel",value:function(e){var t=this;this.tryCreatePanel();var n=Ic(e).call(e,(function(e,n){if("object"===li(e)&&null!==e){var r,a=e.label;if(null!=e&&e.icon)a=Js(r='')).call(r,a);return t.renderPanelItem(a,0===n)}return t.renderPanelItem(e,0===n)})).join(""),r=this.suggesterConfig[this.keyword];r&&"function"==typeof r.suggestListRender&&(n=r.suggestListRender.call(this,e)||n),this.$suggesterPanel.innerHTML="","string"==typeof n?this.$suggesterPanel.innerHTML=n:al(n)&&n.length>0?ic(n).call(n,(function(e){t.$suggesterPanel.appendChild(e)})):"object"===li(n)&&1===n.nodeType&&this.$suggesterPanel.appendChild(n)}},{key:"renderPanelItem",value:function(e,t){return t?'
    '.concat(e,"
    "):'
    '.concat(e,"
    ")}},{key:"createDom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.template||(this.template=document.createElement("div")),this.template.innerHTML=Gc(e).call(e);var t=document.createDocumentFragment();return Ic(Array.prototype).call(this.template.childNodes,(function(e,n){t.appendChild(e)})),t}},{key:"relocatePanel",value:function(e){var t=document.querySelector(".CodeMirror-cursors .CodeMirror-cursor");if(t||(t=document.querySelector(".CodeMirror-selected")),!t)return!1;var n=e.getCursor(),r=e.lineInfo(n.line).handle.height,a=t.getBoundingClientRect(),i=a.top+r,o=a.left;this.showSuggesterPanel({left:o,top:i,items:this.optionList})}},{key:"getCursorPos",value:function(e){var t=document.querySelector(".CodeMirror-cursors .CodeMirror-cursor");if(!t)return null;var n=e.getCursor(),r=e.lineInfo(n.line).handle.height,a=t.getBoundingClientRect(),i=a.top+r;return{left:a.left,top:i}}},{key:"startRelate",value:function(e,t,n){this.cursorFrom=n,this.keyword=t,this.searchCache=!0,this.relocatePanel(e)}},{key:"stopRelate",value:function(){this.hideSuggesterPanel(),this.cursorFrom=null,this.cursorTo=null,this.keyword="",this.searchKeyCache=[],this.searchCache=!1,this.cursorMove=!0,this.optionList=[]}},{key:"pasteSelectResult",value:function(e,t){if(this.cursorTo&&this.cursorTo!==this.cursorFrom||(this.cursorTo=JSON.parse(zh(this.cursorFrom))),this.cursorTo){this.cursorTo.ch+=1;var n=this.cursorFrom,r=this.cursorTo;if(this.optionList[e]){var a="";if("object"===li(this.optionList[e])&&null!==this.optionList[e]&&"string"==typeof this.optionList[e].value)a=this.optionList[e].value;else if("object"===li(this.optionList[e])&&null!==this.optionList[e]&&"function"==typeof this.optionList[e].value)a=this.optionList[e].value();else if("string"==typeof this.optionList[e])a="".concat(this.optionList[e]," ");else{var i;a=Js(i=" ".concat(this.keyword)).call(i,this.optionList[e]," ")}if(a&&this.editor.editor.replaceRange(a,n,r),this.optionList[e].goLeft){var o=this.editor.editor.getCursor();this.editor.editor.setCursor(o.line,o.ch-this.optionList[e].goLeft)}if(this.optionList[e].selection){var s=this.editor.editor.getCursor().line,c=this.editor.editor.getCursor().ch;this.editor.editor.setSelection({line:s,ch:c-this.optionList[e].selection.from},{line:s,ch:c-this.optionList[e].selection.to})}}}}},{key:"findSelectedItemIndex",value:function(){return vc(Array.prototype).call(this.$suggesterPanel.childNodes,(function(e){return e.classList.contains("cherry-suggester-panel__item--selected")}))}},{key:"enableRelate",value:function(){return this.searchCache}},{key:"onCodeMirrorChange",value:function(e,t){var n=this,r=t.text,a=t.from,i=t.to,o=t.origin,s=1===r.length?r[0]:"";if(!this.enableRelate()&&this.suggesterConfig[s]&&this.startRelate(e,s,a),this.enableRelate()&&(s||"+delete"===o)){var c;if(this.cursorTo=i,s)this.searchKeyCache.push(s);else if("+delete"===o&&(this.searchKeyCache.pop(),0===this.searchKeyCache.length))return void this.stopRelate();"function"==typeof(null===(c=this.suggesterConfig[this.keyword])||void 0===c?void 0:c.suggestList)&&this.suggesterConfig[this.keyword].suggestList(this.searchKeyCache.join(""),(function(e){!1!==e?(n.optionList=e&&e.length?e:[],n.updatePanel(n.optionList)):n.stopRelate()}))}}},{key:"onKeyDown",value:function(e,t){var n,r=this;if(this.tryCreatePanel(),!this.$suggesterPanel)return!1;var a=t.keyCode;if(Xh(n=[38,40]).call(n,a)){if(0===this.optionList.length)return void ag((function(){r.stopRelate()}),0);this.cursorMove=!1;var i=this.$suggesterPanel.querySelector(".cherry-suggester-panel__item--selected"),o=null;38!==a||i.previousElementSibling?40!==a||i.nextElementSibling?38===a?o=i.previousElementSibling:40===a&&(o=i.nextElementSibling):o=this.$suggesterPanel.firstElementChild:o=this.$suggesterPanel.lastElementChild,i.classList.remove("cherry-suggester-panel__item--selected"),o.classList.add("cherry-suggester-panel__item--selected")}else 13===a?(t.stopPropagation(),this.cursorMove=!1,this.pasteSelectResult(this.findSelectedItemIndex(),t),e.focus(),ag((function(){r.stopRelate()}),0)):27!==a&&37!==a&&39!==a||(t.stopPropagation(),e.focus(),ag((function(){r.stopRelate()}),0))}}]),e}();function xg(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}var Cg=function(e){xn(n,Tc);var t=xg(n);function n(){return bn(this,n),t.apply(this,arguments)}return mn(n,[{key:"makeHtml",value:function(e){return this.test(e)?e.replace(this.RULE.reg,"$1$2$3$4"):e}},{key:"rule",value:function(){var e={begin:"(^| )\\{",end:"\\}( |$)",content:"([^\n]+?)\\|([^\n]+?)"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}]),n}();function Tg(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}gi(Cg,"HOOK_NAME","ruby");var $g=function(e){xn(n,tu);var t=Tg(n);function n(e){var r;return bn(this,n),(r=t.call(this,{needCache:!0})).initBrReg(e.globalConfig.classicBr),r}return mn(n,[{key:"makeHtml",value:function(e,t){var n=this;return e.replace(this.RULE.reg,(function(e,r,a,i){var o,s,c,l,u,f=n.getLineCount(e,r),d=n.$engine.md5(e),p=n.$getPanelInfo(a,i,t),h=p.title,g=p.body,m=p.appendStyle,b=p.className;return tl(e,n.pushCache(Js(o=Js(s=Js(c=Js(l=Js(u='
    ")).call(s,h)).call(o,g,"
    "),d,f))}))}},{key:"$getClassByType",value:function(e){return/(left|right|center)/i.test(e)?"cherry-text-align cherry-text-align__".concat(e):"cherry-panel cherry-panel__".concat(e)}},{key:"$getPanelInfo",value:function(e,t,n){var r,a=this,i={type:this.$getTargetType(e),title:n(this.$getTitle(e)).html,body:t,appendStyle:"",className:""};i.className=this.$getClassByType(i.type),/(left|right|center)/i.test(i.type)&&(i.appendStyle='style="text-align:'.concat(i.type,';"')),i.title=Js(r='
    ')).call(r,i.title,"
    ");var o=function(e){var t,r;if(""===Gc(e).call(e))return"";var i=n(e).html,o="p";return new RegExp("<(".concat(ql,")[^>]*>"),"i").test(i)&&(o="div"),Js(t=Js(r="<".concat(o,">")).call(r,a.$cleanParagraph(i),"")},s="";return s=this.isContainsCache(i.body)?this.makeExcludingCached(i.body,o):o(i.body),i.body='
    '.concat(s,"
    "),i}},{key:"$getTitle",value:function(e){var t=Gc(e).call(e);return/\s/.test(t)?t.replace(/[^\s]+\s/,""):""}},{key:"$getTargetType",value:function(e){var t=/\s/.test(Gc(e).call(e))?Gc(e).call(e).replace(/\s.*$/,""):e;switch(Gc(t).call(t).toLowerCase()){case"primary":case"p":default:return"primary";case"info":case"i":return"info";case"warning":case"w":return"warning";case"danger":case"d":return"danger";case"success":case"s":return"success";case"right":case"r":return"right";case"center":case"c":return"center";case"left":case"l":return"left"}}},{key:"rule",value:function(){return(e={begin:/(?:^|\n)(\n*(?:[^\S\n]*)):::([^:][^\n]+?)\s*\n/,content:/([\w\W]*?)/,end:/\n[ \t]*:::[ \t]*(?=$|\n+)/}).reg=new RegExp(e.begin.source+e.content.source+e.end.source,"g"),e;var e}}]),n}();function Rg(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}gi($g,"HOOK_NAME","panel");var Og=function(e){xn(n,tu);var t=Rg(n);function n(){return bn(this,n),t.call(this,{needCache:!0})}return mn(n,[{key:"makeHtml",value:function(e,t){var n=this;return e.replace(this.RULE.reg,(function(e,r,a,i,o){var s,c,l,u=n.getLineCount(e,r),f=n.$engine.md5(e),d=n.$getDetailInfo(a,i,o,t),p=d.type,h=d.html;return tl(e,n.pushCache(Js(s=Js(c=Js(l='
    ')).call(s,h,"
    "),f,u))}))}},{key:"$getDetailInfo",value:function(e,t,n,r){var a=this,i=/\n\s*(\+\+|\+\+-)\s*[^\n]+\n/.test(n)?"multiple":"single",o=n.split(/\n\s*(\+\+[-]{0,1}\s*[^\n]+)\n/),s="-"===e,c=t,l="";return"multiple"===i?ic(o).call(o,(function(e){if(/\+\+/.test(e))return s=/\+\+-/.test(e),c=e.replace(/\+\+[-]{0,1}\s*([^\n]+)$/,"$1"),!0;l+=a.$getDetailHtml(s,c,e,r)})):l=this.$getDetailHtml(s,c,n,r),{type:i,html:l}}},{key:"$getDetailHtml",value:function(e,t,n,r){var a=this,i="
    "),o=function(e){var t,n;if(""===Gc(e).call(e))return"";var i=r(e).html,o="p";return new RegExp("<(".concat(ql,")[^>]*>"),"i").test(i)&&(o="div"),Js(t=Js(n="<".concat(o,">")).call(n,a.$cleanParagraph(i),"")};i+="".concat(r(t).html,"");var s="";return s=this.isContainsCache(n)?this.makeExcludingCached(n,o):o(n),i+='
    '.concat(s,"
    "),i+="
    "}},{key:"rule",value:function(){return(e={begin:/(?:^|\n)(\n*(?:[^\S\n]*))\+\+\+([-]{0,1})\s+([^\n]+)\n/,content:/([\w\W]+?)/,end:/\n[ \t]*\+\+\+[ \t]*(?=$|\n+)/}).reg=new RegExp(e.begin.source+e.content.source+e.end.source,"g"),e;var e}}]),n}();gi(Og,"HOOK_NAME","detail");var Pg=[bd,yd,ch,uh,Rh,_h,wh,Xd,hp,fp,Pp,vh,Zd,mp,$p,Og,$g,Dd,Mh,kp,Rd,Ip,Md,td,Qf,rd,fd,ld,Cg,sd,Dh,Bh,Sg],Lg={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),Gc(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)?Nl(n=e.attrs.class).call(n,"ch-icon-check")>=0?r+="[x]":r+="[ ]":e.attrs.class&&/cherry-code-preview-lang-select/.test(e.attrs.class)?r+="":r+=this.$dealTag(e);return r},$dealTag:function(e){var t=this,n="";return e.children&&(n=t.$dealHtml(e.children)),/(style|meta|link|script)/.test(e.name)?"":"code"===e.name||"pre"===e.name?t.tagParser.codeParser(e,t.$dealCodeTag(e),"pre"===e.name):"function"==typeof t.tagParser["".concat(e.name,"Parser")]?t.tagParser["".concat(e.name,"Parser")](e,n):n},$dealCodeTag:function(e){if(e.children.length<0)return"";for(var t="",n=0;n])+>/g,empty:yg?yg(null):{},parseTags:function(e){var t,n=this,r=0,a={type:"tag",name:"",voidElement:!1,attrs:{},children:[]};return e.replace(this.attrRE,(function(i){r%2?t=i:0===r?((n.lookup[i]||"/"===e.charAt(e.length-2))&&(a.voidElement=!0),a.name=i):a.attrs[t]=i.replace(/['"]/g,""),r+=1})),a},parseHtml:function(e,t){var n=this,r=t||{};r.components||(r.components=this.empty);var a,i=[],o=-1,s=[],c={},l=!1;return e.replace(this.tagRE,(function(t,u){if(l){if(t!==""))return;l=!1}var f,d="/"!==t.charAt(1),p=u+t.length,h=e.charAt(p);d&&(o+=1,"tag"===(a=n.parseTags(t)).type&&r.components[a.name]&&(a.type="component",l=!0),a.voidElement||l||!h||"<"===h||a.children.push({type:"text",content:Zf(e).call(e,p,Nl(e).call(e,"<",p))}),c[a.tagName]=a,0===o&&i.push(a),(f=s[o-1])&&f.children.push(a),s[o]=a),d&&!a.voidElement||(o-=1,!l&&"<"!==h&&h&&s[o]&&s[o].children.push({type:"text",content:Zf(e).call(e,p,Nl(e).call(e,"<",p))}))})),i}},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=[],a=0;a0?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,a,i,o,s,c=t[1].match(/rgb\(([ 0-9]+),([ 0-9]+),([ 0-9]+)\)/);if(c[1]&&c[2]&&c[3])c[1]=el(Gc(r=c[1]).call(r),10),c[2]=el(Gc(a=c[2]).call(a),10),c[3]=el(Gc(i=c[3]).call(i),10),n=Js(o=Js(s="#".concat(c[1].toString(16))).call(s,c[2].toString(16))).call(o,c[3].toString(16))}else{n=dd(t,2)[1]}return n}return""}}},mdFormatEngine:{convertColor:function(e,t){var n,r=Gc(e).call(e);return!r||/\n/.test(r)?r:t?Js(n="!!".concat(t," ")).call(n,r,"!!"):r},convertSize:function(e,t){var n,r=Gc(e).call(e);return!r||/\n/.test(r)?r:t?Js(n="!".concat(t," ")).call(n,r,"!"):r},convertBgColor:function(e,t){var n,r=Gc(e).call(e);return!r||/\n/.test(r)?r:t?Js(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 Js(n="![".concat(r,"](")).call(n,t,")")},convertGraph:function(e,t,n,r){var a,i,o,s=e&&e.length>0?e:"graph",c="";if(r)try{var l,u=r.attrs;ic(l=sc(u)).call(l,(function(e){var t;Object.prototype.hasOwnProperty.call(u,e)&&(Nl(e).call(e,"data-graph-")>=0&&u[e]&&(c+=Js(t=" ".concat(e,"=")).call(t,u[e])))}))}catch(e){}return Js(a=Js(i=Js(o="![".concat(s,"](")).call(o,t,"){data-control=tapd-graph data-origin-xml=")).call(i,n)).call(a,c,"}")},convertVideo:function(e,t,n,r){var a,i,o=r&&r.length>0?r:"video";return Js(a=Js(i="!video[".concat(o,"](")).call(i,t,"){poster=")).call(a,n,"}")},convertA:function(e,t){var n;if(e===t)return"".concat(e," ");var r=Gc(e).call(e);return r?Js(n="[".concat(r,"](")).call(n,t,")"):r},convertSup:function(e){return"^".concat(Gc(e).call(e).replace(/\^/g,"\\^"),"^")},convertSub:function(e){return"^^".concat(Gc(e).call(e).replace(/\^\^/g,"\\^\\^"),"^^")},convertTd:function(e){return"~|".concat(Gc(e).call(e).replace(/\n{1,}/g,"
    ").replace(/ /g,"~s~")," ~|")},convertTh:function(e){return/^\s*$/.test(e)?"":"~|".concat(Gc(e).call(e).replace(/\n{1,}/g,"
    ")," ~|")},convertTr:function(e){return/^\s*$/.test(e)?"":"".concat(Gc(e).call(e).replace(/\n/g,""),"\n")},convertThead:function(e){var t,n="".concat(e.replace(/[ \t]+/g,"").replace(/~\|~\|/g,"~|").replace(/~\|/g,"|"),"\n"),r=n.match(/\|/g).length-1;return Js(t="".concat(n,"|")).call(t,Id(":-:|").call(":-:|",r),"\n")},convertTable:function(e){var t="\n".concat(e.replace(/[ \t]+/g,"").replace(/~\|~\|/g,"~|").replace(/~\|/g,"|"),"\n").replace(/\n{2,}/g,"\n").replace(/\n[ \t]+\n/g,"\n").replace(/~s~/g," ");if(!/\|:-:\|/.test(t)){var n,r,a=t.match(/^\n[^\n]+\n/)[0].match(/\|/g).length-1;t=Js(n=Js(r="\n|".concat(Id(" |").call(" |",a),"\n|")).call(r,Id(":-:|").call(":-:|",a))).call(n,t)}return t},convertLi:function(e){return"- ".concat(e.replace(/^\n/,"").replace(/\n+$/,"").replace(/\n+/g,"\n\t"),"\n")},convertUl:function(e){return"".concat(e,"\n")},convertOl:function(e){for(var t=e.split("\n"),n=1,r=0;r".concat(Gc(e).call(e),"\n\n")},convertAddress:function(e){return">".concat(Gc(e).call(e),"\n\n")}},paragraphStyleClear:function(e){for(var t=0;t1)for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:"absolute",n=e.getBoundingClientRect();return"fixed"===t?n:"sidebar"===t?{left:jg.getTargetParentByButton(e).offsetLeft-130+n.width,top:e.offsetTop+n.height/2,width:n.width,height:n.height}:{left:e.offsetLeft,top:e.offsetTop,width:n.width,height:n.height}}var jg=function(){function e(t){bn(this,e),gi(this,"_onClick",void 0),this.$cherry=t,this.bubbleMenu=!1,this.subMenu=null,this.name="",this.editor=t.editor,this.locale=t.locale,this.dom=null,this.updateMarkdown=!0,this.subMenuConfig=[],this.noIcon=!1,this.cacheOnce=!1,this.positionModel="absolute","function"==typeof this._onClick&&(Qu.warn("`MenuBase._onClick` is deprecated. Override `fire` instead"),this.fire=this._onClick)}return mn(e,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"setName",value:function(e,t){this.name=e,this.iconName=t}},{key:"setCacheOnce",value:function(e){this.cacheOnce=e}},{key:"getAndCleanCacheOnce",value:function(){this.updateMarkdown=!0;var e=this.cacheOnce;return this.cacheOnce=!1,e}},{key:"hasCacheOnce",value:function(){return!1!==this.cacheOnce}},{key:"createBtn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=ah("span",e?"cherry-dropdown-item":"cherry-toolbar-button cherry-toolbar-".concat(this.iconName?this.iconName:this.name),{title:this.locale[this.name]||Yl(this.name)});if(this.iconName&&!this.noIcon){var n=ah("i","ch-icon ch-icon-".concat(this.iconName));t.appendChild(n)}return(e||this.noIcon)&&(t.innerHTML+=this.locale[this.name]||Yl(this.name)),e||this.dom||(this.dom=t),t}},{key:"createSubBtnByConfig",value:function(e){var t=e.name,n=e.iconName,r=e.onclick,a=ah("span","cherry-dropdown-item",{title:this.locale[t]||Yl(t)});if(n){var i=ah("i","ch-icon ch-icon-".concat(n));a.appendChild(i)}return a.innerHTML+=this.locale[t]||Yl(t),a.addEventListener("click",r,!1),a}},{key:"fire",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(null==e||e.stopPropagation(),"function"==typeof this.onClick){var r=this.editor.editor.getSelections();this.isSelections=r.length>1;var a=Ic(r).call(r,(function(r,a,i){return t.onClick(r,n,e)||i[a]}));!this.bubbleMenu&&this.updateMarkdown&&(this.editor.editor.replaceSelections(a,"around"),this.editor.editor.focus(),this.$afterClick())}}},{key:"$getSelectionRange",value:function(){var e=this.editor.editor.listSelections()[0],t=e.anchor,n=e.head;return t.line===n.line&&t.ch>n.ch||t.line>n.line?{begin:n,end:t}:{begin:t,end:n}}},{key:"registerAfterClickCb",value:function(e){this.afterClickCb=e}},{key:"$afterClick",value:function(){"function"!=typeof this.afterClickCb||this.isSelections||(this.afterClickCb(),this.afterClickCb=null)}},{key:"setLessSelection",value:function(e,t){var n,r,a,i,o=this.editor.editor,s=this.$getSelectionRange(),c=s.begin,l=s.end,u={line:(null===(n=e.match(/\n/g))||void 0===n?void 0:n.length)>0?c.line+e.match(/\n/g).length:c.line,ch:(null===(r=e.match(/\n/g))||void 0===r?void 0:r.length)>0?e.replace(/^[\s\S]*?\n([^\n]*)$/,"$1").length:c.ch+e.length},f=(null===(a=t.match(/\n/g))||void 0===a?void 0:a.length)>0?l.line-t.match(/\n/g).length:l.line,d={line:f,ch:(null===(i=t.match(/\n/g))||void 0===i?void 0:i.length)>0?o.getLine(f).length:l.ch-t.length};o.setSelection(u,d)}},{key:"getMoreSelection",value:function(e,t,n){var r=this.editor.editor,a=this.$getSelectionRange(),i=a.begin,o=a.end,s=/\n/.test(e)?0:i.ch-e.length;s=s<0?0:s;var c,l=/\n/.test(e)?i.line-e.match(/\n/g).length:i.line,u={line:l=l<0?0:l,ch:s},f=o.line,d=o.ch;/\n/.test(t)?(f=o.line+t.match(/\n/g).length,d=null===(c=r.getLine(f))||void 0===c?void 0:c.length):d=r.getLine(o.line).length1&&void 0!==arguments[1]?arguments[1]:"word",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.editor.editor;if(this.isSelections)return e;if(e&&!n)return e;if("line"===t){var a=this.$getSelectionRange(),i=a.begin,o=a.end;return r.setSelection({line:i.line,ch:0},{line:o.line,ch:r.getLine(o.line).length}),r.getSelection()}if("word"===t){var s=r.findWordAt(r.getCursor()),c=s.anchor,l=s.head;return r.setSelection(c,l),r.getSelection()}}},{key:"bindSubClick",value:function(e,t){return this.fire(null,e)}},{key:"onClick",value:function(e,t,n){return e}},{key:"shortcutKeys",get:function(){return[]}},{key:"getMenuPosition",value:function(){var t=e.getTargetParentByButton(this.dom),n=/cherry-sidebar/.test(t.className);return/cherry-bubble/.test(t.className)||/cherry-floatmenu/.test(t.className)?this.positionModel="fixed":this.positionModel=n?"sidebar":"absolute",Mg(this.dom,this.positionModel)}}],[{key:"getTargetParentByButton",value:function(e){var t=e.parentElement;return/toolbar-(left|right)/.test(t.className)&&(t=t.parentElement),t}}]),e}();function Dg(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}function Fg(e,t,n){var r,a={};return ic(r=sc(e)).call(r,(function(r){-1!==Nl(t).call(t,r)&&("object"===li(n)?"string"==typeof n[r]?li(e[r])===n[r]&&(a[r]=e[r]):e[r]instanceof n[r]&&(a[r]=e[r]):"string"==typeof n&&li(e[r])===n&&(a[r]=e[r]))})),a}var Bg={HOOKS_TYPE_LIST:Cc},Hg=[];dp()||ic(Hg).call(Hg,(function(e){}));var zg=function(){function e(){bn(this,e)}return mn(e,null,[{key:"usePlugin",value:function(t){var n;if(this===e)throw new Error("`usePlugin` is not allowed to called through CherryStatic class.");if(this.initialized)throw new Error("The function `usePlugin` should be called before Cherry is instantiated.");if(!0!==t.$cherry$mounted){for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:{};return bn(this,r),(e=t===Cc.PAR?n.call(this,{needCache:!!o.needCache,defaultCache:o.defaultCache}):n.call(this)).config=a.config,fi(e)}return mn(r,[{key:"beforeMakeHtml",value:function(){for(var e,t,n=arguments.length,a=new Array(n),o=0;o0&&n[0]<4?1:+(n[0]+n[1])),!r&&F&&(!(n=F.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=F.match(/Chrome\/(\d+)/))&&(r=+n[1]);var W=r,q=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&W&&W<41})),G=q&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,K=i.Object,Z=G?function(e){return"symbol"==typeof e}:function(e){var t=j("Symbol");return b(t)&&D(t.prototype,K(e))},Y=i.String,X=function(e){try{return Y(e)}catch(e){return"Object"}},V=i.TypeError,J=function(e){if(b(e))return e;throw V(X(e)+" is not a function")},Q=function(e,t){var n=e[t];return null==n?void 0:J(n)},ee=i.TypeError,te=Object.defineProperty,ne="__core-js_shared__",re=i[ne]||function(e,t){try{te(i,e,{value:t,configurable:!0,writable:!0})}catch(n){i[e]=t}return t}(ne,{}),ae=t((function(e){(e.exports=function(e,t){return re[e]||(re[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"})})),ie=i.Object,oe=function(e){return ie(P(e))},se=m({}.hasOwnProperty),ce=Object.hasOwn||function(e,t){return se(oe(e),t)},le=0,ue=Math.random(),fe=m(1..toString),de=function(e){return"Symbol("+(void 0===e?"":e)+")_"+fe(++le+ue,36)},pe=ae("wks"),he=i.Symbol,ge=he&&he.for,me=G?he:he&&he.withoutSetter||de,be=function(e){if(!ce(pe,e)||!q&&"string"!=typeof pe[e]){var t="Symbol."+e;q&&ce(he,e)?pe[e]=he[e]:pe[e]=G&&ge?ge(t):me(t)}return pe[e]},ve=i.TypeError,ye=be("toPrimitive"),_e=function(e,t){if(!I(e)||Z(e))return e;var n,r=Q(e,ye);if(r){if(void 0===t&&(t="default"),n=_(r,e,t),!I(n)||Z(n))return n;throw ve("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&b(n=e.toString)&&!I(r=_(n,e)))return r;if(b(n=e.valueOf)&&!I(r=_(n,e)))return r;if("string"!==t&&b(n=e.toString)&&!I(r=_(n,e)))return r;throw ee("Can't convert object to primitive value")}(e,t)},ke=function(e){var t=_e(e,"string");return Z(t)?t:t+""},we=i.document,Ee=I(we)&&I(we.createElement),Se=function(e){return Ee?we.createElement(e):{}},Ae=!v&&!o((function(){return 7!=Object.defineProperty(Se("div"),"a",{get:function(){return 7}}).a})),xe=Object.getOwnPropertyDescriptor,Ce={f:v?xe:function(e,t){if(e=L(e),t=ke(t),Ae)try{return xe(e,t)}catch(e){}if(ce(e,t))return S(!_(E.f,e,t),e[t])}},Te=/#|\.prototype\./,$e=function(e,t){var n=Oe[Re(e)];return n==Le||n!=Pe&&(b(t)?o(t):!!t)},Re=$e.normalize=function(e){return String(e).replace(Te,".").toLowerCase()},Oe=$e.data={},Pe=$e.NATIVE="N",Le=$e.POLYFILL="P",Ie=$e,Ne=m(m.bind),Me=function(e,t){return J(e),void 0===t?e:s?Ne(e,t):function(){return e.apply(t,arguments)}},je=v&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),De=i.String,Fe=i.TypeError,Be=function(e){if(I(e))return e;throw Fe(De(e)+" is not an object")},He=i.TypeError,ze=Object.defineProperty,Ue=Object.getOwnPropertyDescriptor,We="enumerable",qe="configurable",Ge="writable",Ke={f:v?je?function(e,t,n){if(Be(e),t=ke(t),Be(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Ge in n&&!n[Ge]){var r=Ue(e,t);r&&r[Ge]&&(e[t]=n.value,n={configurable:qe in n?n[qe]:r[qe],enumerable:We in n?n[We]:r[We],writable:!1})}return ze(e,t,n)}:ze:function(e,t,n){if(Be(e),t=ke(t),Be(n),Ae)try{return ze(e,t,n)}catch(e){}if("get"in n||"set"in n)throw He("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Ze=v?function(e,t,n){return Ke.f(e,t,S(1,n))}:function(e,t,n){return e[t]=n,e},Ye=Ce.f,Xe=function(e){var t=function(n,r,a){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,a)}return f(e,this,arguments)};return t.prototype=e.prototype,t},Ve=function(e,t){var n,r,a,o,s,c,l,u,f=e.target,d=e.global,p=e.stat,h=e.proto,g=d?i:p?i[f]:(i[f]||{}).prototype,v=d?N:N[f]||Ze(N,f,{})[f],y=v.prototype;for(a in t)n=!Ie(d?a:f+(p?".":"#")+a,e.forced)&&g&&ce(g,a),s=v[a],n&&(c=e.dontCallGetSet?(u=Ye(g,a))&&u.value:g[a]),o=n&&c?c:t[a],n&&typeof s==typeof o||(l=e.bind&&n?Me(o,i):e.wrap&&n?Xe(o):h&&b(o)?m(o):o,(e.sham||o&&o.sham||s&&s.sham)&&Ze(l,"sham",!0),Ze(v,a,l),h&&(ce(N,r=f+"Prototype")||Ze(N,r,{}),Ze(N[r],a,o),e.real&&y&&!y[a]&&Ze(y,a,o)))},Je=m([].slice),Qe=i.Function,et=m([].concat),tt=m([].join),nt={},rt=s?Qe.bind:function(e){var t=J(this),n=t.prototype,r=Je(arguments,1),a=function(){var n=et(r,Je(arguments));return this instanceof a?function(e,t,n){if(!ce(nt,t)){for(var r=[],a=0;a0?At:St)(t)},Ct=function(e){var t=+e;return t!=t||0===t?0:xt(t)},Tt=Math.max,$t=Math.min,Rt=function(e,t){var n=Ct(e);return n<0?Tt(n+t,0):$t(n,t)},Ot=Math.min,Pt=function(e){return e>0?Ot(Ct(e),9007199254740991):0},Lt=function(e){return Pt(e.length)},It=function(e){return function(t,n,r){var a,i=L(t),o=Lt(i),s=Rt(r,o);if(e&&n!=n){for(;o>s;)if((a=i[s++])!=a)return!0}else for(;o>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},Nt={includes:It(!0),indexOf:It(!1)},Mt={},jt=Nt.indexOf,Dt=m([].push),Ft=function(e,t){var n,r=L(e),a=0,i=[];for(n in r)!ce(Mt,n)&&ce(r,n)&&Dt(i,n);for(;t.length>a;)ce(r,n=t[a++])&&(~jt(i,n)||Dt(i,n));return i},Bt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ht=Object.keys||function(e){return Ft(e,Bt)},zt=v&&!je?Object.defineProperties:function(e,t){Be(e);for(var n,r=L(t),a=Ht(t),i=a.length,o=0;i>o;)Ke.f(e,n=a[o++],r[n]);return e},Ut={f:zt},Wt=j("document","documentElement"),qt=ae("keys"),Gt=function(e){return qt[e]||(qt[e]=de(e))},Kt="prototype",Zt="script",Yt=Gt("IE_PROTO"),Xt=function(){},Vt=function(e){return"<"+Zt+">"+e+""},Jt=function(e){e.write(Vt("")),e.close();var t=e.parentWindow.Object;return e=null,t},Qt=function(){try{_t=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;Qt="undefined"!=typeof document?document.domain&&_t?Jt(_t):(t=Se("iframe"),n="java"+Zt+":",t.style.display="none",Wt.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(Vt("document.F=Object")),e.close(),e.F):Jt(_t);for(var r=Bt.length;r--;)delete Qt[Kt][Bt[r]];return Qt()};Mt[Yt]=!0;var en=Object.create||function(e,t){var n;return null!==e?(Xt[Kt]=Be(e),n=new Xt,Xt[Kt]=null,n[Yt]=e):n=Qt(),void 0===t?n:Ut.f(n,t)},tn=j("Reflect","construct"),nn=Object.prototype,rn=[].push,an=o((function(){function e(){}return!(tn((function(){}),[],e)instanceof e)})),on=!o((function(){tn((function(){}))})),sn=an||on;Ve({target:"Reflect",stat:!0,forced:sn,sham:sn},{construct:function(e,t){Et(e),Be(t);var n=arguments.length<3?e:Et(arguments[2]);if(on&&!an)return tn(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(rn,r,t),new(f(rt,e,r))}var a=n.prototype,i=en(I(a)?a:nn),o=f(e,i,t);return I(o)?o:i}});var cn=N.Reflect.construct,ln=cn,un=Ke.f;Ve({target:"Object",stat:!0,forced:Object.defineProperty!==un,sham:!v},{defineProperty:un});var fn=t((function(e){var t=N.Object,n=e.exports=function(e,n,r){return t.defineProperty(e,n,r)};t.defineProperty.sham&&(n.sham=!0)})),dn=fn,pn=dn;function hn(e,t){for(var n=0;n=51||!o((function(){var t=[];return(t.constructor={})[On]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Ln=be("isConcatSpreadable"),In=9007199254740991,Nn="Maximum allowed index exceeded",Mn=i.TypeError,jn=W>=51||!o((function(){var e=[];return e[Ln]=!1,e.concat()[0]!==e})),Dn=Pn("concat"),Fn=function(e){if(!I(e))return!1;var t=e[Ln];return void 0!==t?!!t:xn(e)};Ve({target:"Array",proto:!0,arity:1,forced:!jn||!Dn},{concat:function(e){var t,n,r,a,i,o=oe(this),s=Rn(o,0),c=0;for(t=-1,r=arguments.length;tIn)throw Mn(Nn);for(n=0;n=In)throw Mn(Nn);Cn(s,c++,i)}return s.length=c,s}});var Bn,Hn,zn,Un=i.String,Wn=function(e){if("Symbol"===lt(e))throw TypeError("Cannot convert a Symbol value to a string");return Un(e)},qn=Bt.concat("length","prototype"),Gn={f:Object.getOwnPropertyNames||function(e){return Ft(e,qn)}},Kn=i.Array,Zn=Math.max,Yn=Gn.f,Xn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Vn=function(e){try{return Yn(e)}catch(e){return function(e,t,n){for(var r=Lt(e),a=Rt(t,r),i=Rt(void 0===n?r:n,r),o=Kn(Zn(i-a,0)),s=0;av;v++)if((s||v in g)&&(p=m(d=g[v],v,h),e))if(t)_[v]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return v;case 2:_r(_,d)}else switch(e){case 4:return!1;case 7:_r(_,d)}return i?-1:r||a?a:_}},wr={forEach:kr(0),map:kr(1),filter:kr(2),some:kr(3),every:kr(4),find:kr(5),findIndex:kr(6),filterReject:kr(7)},Er=wr.forEach,Sr=Gt("hidden"),Ar="Symbol",xr="prototype",Cr=yr.set,Tr=yr.getterFor(Ar),$r=Object[xr],Rr=i.Symbol,Or=Rr&&Rr[xr],Pr=i.TypeError,Lr=i.QObject,Ir=Ce.f,Nr=Ke.f,Mr=Jn.f,jr=E.f,Dr=m([].push),Fr=ae("symbols"),Br=ae("op-symbols"),Hr=ae("wks"),zr=!Lr||!Lr[xr]||!Lr[xr].findChild,Ur=v&&o((function(){return 7!=en(Nr({},"a",{get:function(){return Nr(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=Ir($r,t);r&&delete $r[t],Nr(e,t,n),r&&e!==$r&&Nr($r,t,r)}:Nr,Wr=function(e,t){var n=Fr[e]=en(Or);return Cr(n,{type:Ar,tag:e,description:t}),v||(n.description=t),n},qr=function(e,t,n){e===$r&&qr(Br,t,n),Be(e);var r=ke(t);return Be(n),ce(Fr,r)?(n.enumerable?(ce(e,Sr)&&e[Sr][r]&&(e[Sr][r]=!1),n=en(n,{enumerable:S(0,!1)})):(ce(e,Sr)||Nr(e,Sr,S(1,{})),e[Sr][r]=!0),Ur(e,r,n)):Nr(e,r,n)},Gr=function(e,t){Be(e);var n=L(t),r=Ht(n).concat(Xr(n));return Er(r,(function(t){v&&!_(Kr,n,t)||qr(e,t,n[t])})),e},Kr=function(e){var t=ke(e),n=_(jr,this,t);return!(this===$r&&ce(Fr,t)&&!ce(Br,t))&&(!(n||!ce(this,t)||!ce(Fr,t)||ce(this,Sr)&&this[Sr][t])||n)},Zr=function(e,t){var n=L(e),r=ke(t);if(n!==$r||!ce(Fr,r)||ce(Br,r)){var a=Ir(n,r);return!a||!ce(Fr,r)||ce(n,Sr)&&n[Sr][r]||(a.enumerable=!0),a}},Yr=function(e){var t=Mr(L(e)),n=[];return Er(t,(function(e){ce(Fr,e)||ce(Mt,e)||Dr(n,e)})),n},Xr=function(e){var t=e===$r,n=Mr(t?Br:L(e)),r=[];return Er(n,(function(e){!ce(Fr,e)||t&&!ce($r,e)||Dr(r,Fr[e])})),r};q||(Or=(Rr=function(){if(D(Or,this))throw Pr("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?Wn(arguments[0]):void 0,t=de(e),n=function(e){this===$r&&_(n,Br,e),ce(this,Sr)&&ce(this[Sr],t)&&(this[Sr][t]=!1),Ur(this,t,S(1,e))};return v&&zr&&Ur($r,t,{configurable:!0,set:n}),Wr(t,e)})[xr],er(Or,"toString",(function(){return Tr(this).tag})),er(Rr,"withoutSetter",(function(e){return Wr(de(e),e)})),E.f=Kr,Ke.f=qr,Ut.f=Gr,Ce.f=Zr,Gn.f=Jn.f=Yr,Qn.f=Xr,tr.f=function(e){return Wr(be(e),e)},v&&Nr(Or,"description",{configurable:!0,get:function(){return Tr(this).description}})),Ve({global:!0,constructor:!0,wrap:!0,forced:!q,sham:!q},{Symbol:Rr}),Er(Ht(Hr),(function(e){rr(e)})),Ve({target:Ar,stat:!0,forced:!q},{useSetter:function(){zr=!0},useSimple:function(){zr=!1}}),Ve({target:"Object",stat:!0,forced:!q,sham:!v},{create:function(e,t){return void 0===t?en(e):Gr(en(e),t)},defineProperty:qr,defineProperties:Gr,getOwnPropertyDescriptor:Zr}),Ve({target:"Object",stat:!0,forced:!q},{getOwnPropertyNames:Yr}),ar(),cr(Rr,Ar),Mt[Sr]=!0;var Vr=q&&!!Symbol.for&&!!Symbol.keyFor,Jr=ae("string-to-symbol-registry"),Qr=ae("symbol-to-string-registry");Ve({target:"Symbol",stat:!0,forced:!Vr},{for:function(e){var t=Wn(e);if(ce(Jr,t))return Jr[t];var n=j("Symbol")(t);return Jr[t]=n,Qr[n]=t,n}});var ea=ae("symbol-to-string-registry");Ve({target:"Symbol",stat:!0,forced:!Vr},{keyFor:function(e){if(!Z(e))throw TypeError(X(e)+" is not a symbol");if(ce(ea,e))return ea[e]}});var ta=j("JSON","stringify"),na=m(/./.exec),ra=m("".charAt),aa=m("".charCodeAt),ia=m("".replace),oa=m(1..toString),sa=/[\uD800-\uDFFF]/g,ca=/^[\uD800-\uDBFF]$/,la=/^[\uDC00-\uDFFF]$/,ua=!q||o((function(){var e=j("Symbol")();return"[null]"!=ta([e])||"{}"!=ta({a:e})||"{}"!=ta(Object(e))})),fa=o((function(){return'"\\udf06\\ud834"'!==ta("\udf06\ud834")||'"\\udead"'!==ta("\udead")})),da=function(e,t){var n=Je(arguments),r=t;if((I(t)||void 0!==e)&&!Z(e))return xn(t)||(t=function(e,t){if(b(r)&&(t=_(r,this,e,t)),!Z(t))return t}),n[1]=t,f(ta,null,n)},pa=function(e,t,n){var r=ra(n,t-1),a=ra(n,t+1);return na(ca,e)&&!na(la,a)||na(la,e)&&!na(ca,r)?"\\u"+oa(aa(e,0),16):e};ta&&Ve({target:"JSON",stat:!0,arity:3,forced:ua||fa},{stringify:function(e,t,n){var r=Je(arguments),a=f(ua?da:ta,null,r);return fa&&"string"==typeof a?ia(a,sa,pa):a}});var ha=!q||o((function(){Qn.f(1)}));Ve({target:"Object",stat:!0,forced:ha},{getOwnPropertySymbols:function(e){var t=Qn.f;return t?t(oe(e)):[]}}),rr("asyncIterator"),rr("hasInstance"),rr("isConcatSpreadable"),rr("iterator"),rr("match"),rr("matchAll"),rr("replace"),rr("search"),rr("species"),rr("split"),rr("toPrimitive"),ar(),rr("toStringTag"),cr(j("Symbol"),"Symbol"),rr("unscopables"),cr(i.JSON,"JSON",!0);var ga,ma,ba,va=N.Symbol,ya={},_a=Function.prototype,ka=v&&Object.getOwnPropertyDescriptor,wa=ce(_a,"name"),Ea={EXISTS:wa,PROPER:wa&&"something"===function(){}.name,CONFIGURABLE:wa&&(!v||v&&ka(_a,"name").configurable)},Sa=!o((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Aa=Gt("IE_PROTO"),xa=i.Object,Ca=xa.prototype,Ta=Sa?xa.getPrototypeOf:function(e){var t=oe(e);if(ce(t,Aa))return t[Aa];var n=t.constructor;return b(n)&&t instanceof n?n.prototype:t instanceof xa?Ca:null},$a=be("iterator"),Ra=!1;[].keys&&("next"in(ba=[].keys())?(ma=Ta(Ta(ba)))!==Object.prototype&&(ga=ma):Ra=!0);var Oa=null==ga||o((function(){var e={};return ga[$a].call(e)!==e}));ga=Oa?{}:en(ga),b(ga[$a])||er(ga,$a,(function(){return this}));var Pa={IteratorPrototype:ga,BUGGY_SAFARI_ITERATORS:Ra},La=Pa.IteratorPrototype,Ia=function(){return this},Na=Ea.PROPER,Ma=Pa.BUGGY_SAFARI_ITERATORS,ja=be("iterator"),Da="keys",Fa="values",Ba="entries",Ha=function(){return this},za=function(e,t,n,r,a,i,o){!function(e,t,n,r){var a=t+" Iterator";e.prototype=en(La,{next:S(+!r,n)}),cr(e,a,!1,!0),ya[a]=Ia}(n,t,r);var s,c,l,u=function(e){if(e===a&&g)return g;if(!Ma&&e in p)return p[e];switch(e){case Da:case Fa:case Ba:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[ja]||p["@@iterator"]||a&&p[a],g=!Ma&&h||u(a),m="Array"==t&&p.entries||h;if(m&&(s=Ta(m.call(new e)))!==Object.prototype&&s.next&&(cr(s,f,!0,!0),ya[f]=Ha),Na&&a==Fa&&h&&h.name!==Fa&&(d=!0,g=function(){return _(h,this)}),a)if(c={values:u(Fa),keys:i?g:u(Da),entries:u(Ba)},o)for(l in c)(Ma||d||!(l in p))&&er(p,l,c[l]);else Ve({target:t,proto:!0,forced:Ma||d},c);return o&&p[ja]!==g&&er(p,ja,g,{name:a}),ya[t]=g,c};Ke.f;var Ua="Array Iterator",Wa=yr.set,qa=yr.getterFor(Ua);za(Array,"Array",(function(e,t){Wa(this,{type:Ua,target:L(e),index:0,kind:t})}),(function(){var e=qa(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"),ya.Arguments=ya.Array;var Ga=be("toStringTag");for(var Ka 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 Za=i[Ka],Ya=Za&&Za.prototype;Ya&<(Ya)!==Ga&&Ze(Ya,Ga,Ka),ya[Ka]=ya.Array}var Xa=va,Va=Xa;rr("asyncDispose"),rr("dispose"),rr("matcher"),rr("metadata"),rr("observable"),rr("patternMatch"),rr("replaceAll");var Ja=Va,Qa=m("".charAt),ei=m("".charCodeAt),ti=m("".slice),ni=function(e){return function(t,n){var r,a,i=Wn(P(t)),o=Ct(n),s=i.length;return o<0||o>=s?e?"":void 0:(r=ei(i,o))<55296||r>56319||o+1===s||(a=ei(i,o+1))<56320||a>57343?e?Qa(i,o):r:e?ti(i,o,o+2):a-56320+(r-55296<<10)+65536}},ri={codeAt:ni(!1),charAt:ni(!0)}.charAt,ai="String Iterator",ii=yr.set,oi=yr.getterFor(ai);za(String,"String",(function(e){ii(this,{type:ai,string:Wn(e),index:0})}),(function(){var e,t=oi(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=ri(n,r),t.index+=e.length,{value:e,done:!1})}));var si=tr.f("iterator");function ci(e){return ci="function"==typeof Ja&&"symbol"==typeof si?function(e){return typeof e}:function(e){return e&&"function"==typeof Ja&&e.constructor===Ja&&e!==Ja.prototype?"symbol":typeof e},ci(e)}function li(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ui(e,t){if(t&&("object"===ci(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return li(e)}var fi=o((function(){Ta(1)}));Ve({target:"Object",stat:!0,forced:fi,sham:!Sa},{getPrototypeOf:function(e){return Ta(oe(e))}});var di=N.Object.getPrototypeOf;function pi(e){return pi=En?di:function(e){return e.__proto__||di(e)},pi(e)}function hi(e,t,n){return t in e?pn(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gi=function(){this.__data__=[],this.size=0};var mi=function(e,t){return e===t||e!=e&&t!=t};var bi=function(e,t){for(var n=e.length;n--;)if(mi(e[n][0],t))return n;return-1},vi=Array.prototype.splice;var yi=function(e){var t=this.__data__,n=bi(t,e);return!(n<0)&&(n==t.length-1?t.pop():vi.call(t,n,1),--this.size,!0)};var _i=function(e){var t=this.__data__,n=bi(t,e);return n<0?void 0:t[n][1]};var ki=function(e){return bi(this.__data__,e)>-1};var wi=function(e,t){var n=this.__data__,r=bi(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function Ei(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&&Vo(e.length)&&!Ui(e)};var Qo=function(e){return Wo(e)&&Jo(e)};var es=function(){return!1},ts=t((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,a=r&&r.exports===n?Oi.Buffer:void 0,i=(a?a.isBuffer:void 0)||es;e.exports=i})),ns=Function.prototype,rs=Object.prototype,as=ns.toString,is=rs.hasOwnProperty,os=as.call(Object);var ss=function(e){if(!Wo(e)||"[object Object]"!=Hi(e))return!1;var t=Bo(e);if(null===t)return!0;var n=is.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&as.call(n)==os},cs={};cs["[object Float32Array]"]=cs["[object Float64Array]"]=cs["[object Int8Array]"]=cs["[object Int16Array]"]=cs["[object Int32Array]"]=cs["[object Uint8Array]"]=cs["[object Uint8ClampedArray]"]=cs["[object Uint16Array]"]=cs["[object Uint32Array]"]=!0,cs["[object Arguments]"]=cs["[object Array]"]=cs["[object ArrayBuffer]"]=cs["[object Boolean]"]=cs["[object DataView]"]=cs["[object Date]"]=cs["[object Error]"]=cs["[object Function]"]=cs["[object Map]"]=cs["[object Number]"]=cs["[object Object]"]=cs["[object RegExp]"]=cs["[object Set]"]=cs["[object String]"]=cs["[object WeakMap]"]=!1;var ls=function(e){return Wo(e)&&Vo(e.length)&&!!cs[Hi(e)]};var us=function(e){return function(t){return e(t)}},fs=t((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,a=r&&r.exports===n&&$i.process,i=function(){try{var e=r&&r.require&&r.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=i})),ds=fs&&fs.isTypedArray,ps=ds?us(ds):ls;var hs=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},gs=Object.prototype.hasOwnProperty;var ms=function(e,t,n){var r=e[t];gs.call(e,t)&&mi(r,n)&&(void 0!==n||t in e)||$o(e,t,n)};var bs=function(e,t,n,r){var a=!n;n||(n={});for(var i=-1,o=t.length;++i-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Ns);var Ds=function(e,t){return js(Ls(e,t,Rs),e+"")};var Fs=function(e,t,n){if(!zi(n))return!1;var r=typeof t;return!!("number"==r?Jo(n)&&_s(t,n.length):"string"==r&&t in n)&&mi(n[t],e)};var Bs=function(e){return Ds((function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(a--,i):void 0,o&&Fs(n[0],n[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++r1?arguments[1]:void 0)};Ve({target:"Array",proto:!0,forced:[].forEach!=ec},{forEach:ec});var tc=Ws("Array").forEach,nc=Array.prototype,rc={DOMTokenList:!0,NodeList:!0},ac=function(e){var t=e.forEach;return e===nc||D(nc,e)&&t===nc.forEach||ce(rc,lt(e))?tc:t},ic=o((function(){Ht(1)}));Ve({target:"Object",stat:!0,forced:ic},{keys:function(e){return Ht(oe(e))}});var oc=N.Object.keys,sc=wr.filter,cc=Pn("filter");Ve({target:"Array",proto:!0,forced:!cc},{filter:function(e){return sc(this,e,arguments.length>1?arguments[1]:void 0)}});var lc=Ws("Array").filter,uc=Array.prototype,fc=function(e){var t=e.filter;return e===uc||D(uc,e)&&t===uc.filter?lc:t},dc=wr.findIndex,pc="findIndex",hc=!0;pc in[]&&Array(1)[pc]((function(){hc=!1})),Ve({target:"Array",proto:!0,forced:hc},{findIndex:function(e){return dc(this,e,arguments.length>1?arguments[1]:void 0)}});var gc=Ws("Array").findIndex,mc=Array.prototype,bc=function(e){var t=e.findIndex;return e===mc||D(mc,e)&&t===mc.findIndex?gc:t},vc=Pn("splice"),yc=i.TypeError,_c=Math.max,kc=Math.min;Ve({target:"Array",proto:!0,forced:!vc},{splice:function(e,t){var n,r,a,i,o,s,c=oe(this),l=Lt(c),u=Rt(e,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-u):(n=f-2,r=kc(_c(Ct(t),0),l-u)),l+n-r>9007199254740991)throw yc("Maximum allowed length exceeded");for(a=Rn(c,r),i=0;il-r+n;i--)delete c[i-1]}else if(n>r)for(i=l-r;i>u;i--)s=i+n-1,(o=i+r-1)in c?c[s]=c[o]:delete c[s];for(i=0;i1?arguments[1]:void 0)}});var Rc,Oc=Ws("Array").map,Pc=Array.prototype,Lc=function(e){var t=e.map;return e===Pc||D(Pc,e)&&t===Pc.map?Oc:t},Ic="\t\n\v\f\r                 \u2028\u2029\ufeff",Nc=m("".replace),Mc="["+Ic+"]",jc=RegExp("^"+Mc+Mc+"*"),Dc=RegExp(Mc+Mc+"*$"),Fc=function(e){return function(t){var n=Wn(P(t));return 1&e&&(n=Nc(n,jc,"")),2&e&&(n=Nc(n,Dc,"")),n}},Bc={start:Fc(1),end:Fc(2),trim:Fc(3)},Hc=Ea.PROPER,zc=Bc.trim;Ve({target:"String",proto:!0,forced:(Rc="trim",o((function(){return!!Ic[Rc]()||"​…᠎"!=="​…᠎"[Rc]()||Hc&&Ic[Rc].name!==Rc})))},{trim:function(){return zc(this)}});var Uc=Ws("String").trim,Wc=String.prototype,qc=function(e){var t=e.trim;return"string"==typeof e||e===Wc||D(Wc,e)&&t===Wc.trim?Uc:t},Gc=Bc.trim,Kc=i.parseInt,Zc=i.Symbol,Yc=Zc&&Zc.iterator,Xc=/^[+-]?0x/i,Vc=m(Xc.exec),Jc=8!==Kc(Ic+"08")||22!==Kc(Ic+"0x16")||Yc&&!o((function(){Kc(Object(Yc))}))?function(e,t){var n=Gc(Wn(e));return Kc(n,t>>>0||(Vc(Xc,n)?16:10))}:Kc;Ve({global:!0,forced:parseInt!=Jc},{parseInt:Jc});var Qc=N.parseInt;function el(e,t){var n,r,a,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return/^\n/.test(e)?i?(null!==(n=null===(r=e.match(/^\n+/g))||void 0===r||null===(a=r[0])||void 0===a?void 0:a.length)&&void 0!==n?n:0)>1?"\n\n".concat(t):"\n".concat(t):"\n\n".concat(t):t}function tl(e,t){var n=(e.match(/\n/g)||[]).length;return""!==e&&(n-=2),n+t}Ve({target:"Array",stat:!0},{isArray:xn});var nl=N.Array.isArray,rl=nl;function al(e,t){if(rl(t))return t}function il(e){return"undefined"!=typeof localStorage&&null!==localStorage.getItem("cherry-".concat(e))}function ol(){var e="false";return"undefined"!=typeof localStorage&&(e=localStorage.getItem("cherry-classicBr")),"true"===e}var sl=N.Object.getOwnPropertySymbols,cl=Ce.f,ll=o((function(){cl(1)}));Ve({target:"Object",stat:!0,forced:!v||ll,sham:!v},{getOwnPropertyDescriptor:function(e,t){return cl(L(e),t)}});var ul=t((function(e){var t=N.Object,n=e.exports=function(e,n){return t.getOwnPropertyDescriptor(e,n)};t.getOwnPropertyDescriptor.sham&&(n.sham=!0)})),fl=ul,dl=fl,pl=m([].concat),hl=j("Reflect","ownKeys")||function(e){var t=Gn.f(Be(e)),n=Qn.f;return n?pl(t,n(e)):t};Ve({target:"Object",stat:!0,sham:!v},{getOwnPropertyDescriptors:function(e){for(var t,n,r=L(e),a=Ce.f,i=hl(r),o={},s=0;i.length>s;)void 0!==(n=a(r,t=i[s++]))&&Cn(o,t,n);return o}});var gl=N.Object.getOwnPropertyDescriptors,ml=Ut.f;Ve({target:"Object",stat:!0,forced:Object.defineProperties!==ml,sham:!v},{defineProperties:ml});var bl=t((function(e){var t=N.Object,n=e.exports=function(e,n){return t.defineProperties(e,n)};t.defineProperties.sham&&(n.sham=!0)})),vl=bl,yl=i.RangeError,_l=String.fromCharCode,kl=String.fromCodePoint,wl=m([].join),El=!!kl&&1!=kl.length;Ve({target:"String",stat:!0,arity:1,forced:El},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,a=0;r>a;){if(t=+arguments[a++],Rt(t,1114111)!==t)throw yl(t+" is not a valid code point");n[a]=t<65536?_l(t):_l(55296+((t-=65536)>>10),t%1024+56320)}return wl(n,"")}});var Sl=N.String.fromCodePoint,Al=Nt.indexOf,xl=m([].indexOf),Cl=!!xl&&1/xl([1],1,-0)<0,Tl=Js("indexOf");Ve({target:"Array",proto:!0,forced:Cl||!Tl},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return Cl?xl(this,e,t)||0:Al(this,e,t)}});var $l,Rl,Ol=Ws("Array").indexOf,Pl=Array.prototype,Ll=function(e){var t=e.indexOf;return e===Pl||D(Pl,e)&&t===Pl.indexOf?Ol:t},Il=Ll;function Nl(e,t){var n=oc(e);if(sl){var r=sl(e);t&&(r=fc(r).call(r,(function(t){return dl(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ml(e){for(var t=1;t":">","&":"&",'"':""","'":"'"},Dl={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},Fl=Ml(Ml(Ml(Ml(Ml(Ml({},{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:"♦"}),Bl=oc(Fl),Hl=Lc(Bl).call(Bl,(function(e){return Fl[e].replace(/^&(\w+);$/g,(function(e,t){return t.toLowerCase()}))})),zl=function(e){return"string"!=typeof e||e.length<=0},Ul=function(e){try{var t=Sl(e);return!zl(t)}catch(e){return!1}};var Wl=["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("|"),ql=["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("|"),Gl=new RegExp(Vs($l=Vs(Rl="^(".concat(Wl,"|")).call(Rl,ql,"|")).call($l,"br|img|hr",")( |$|/)"),"i");function Kl(e,t){return"string"!=typeof e?"":t?e.replace(/[<>&]/g,(function(e){return jl[e]||e})):e.replace(/[<>&"']/g,(function(e){return jl[e]||e}))}function Zl(e,t){if("string"!=typeof e)return"";var n=Yl(e);return n=function(e){return"string"!=typeof e?"":e.replace(/&(\w+);?/g,(function(e,t){return Dl[t]||e}))}(n),Kl(n,t)}function Yl(e){return e.replace(/&#(\d+);?/g,(function(e,t){return Fl[t]||e}))}function Xl(e){var t=function(e){return e.replace(/&#x([0-9a-f]+);?/gi,(function(e,t){var n=Qc("0x".concat(t),16);try{return Sl(n)}catch(t){return e}}))}(function(e){return e.replace(/&#(\d+);?/g,(function(e,t){try{return Sl(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===Il(n).call(n,r.toLowerCase())}function Vl(e){return encodeURI(e).replace(/%25/g,"%")}function Jl(e){var t=function(){if("undefined"==typeof Reflect||!ln)return!1;if(ln.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ln(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pi(e);if(t){var a=pi(this).constructor;n=ln(r,arguments,a)}else n=r.apply(this,arguments);return ui(this,n)}}var Ql=0,eu=function(e){An(n,Cc);var t=Jl(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{needCache:!1},a=r.needCache,i=r.defaultCache,o=void 0===i?{}:i;return mn(this,n),(e=t.call(this,{})).needCache=!!a,e.sign="",a&&(e.cache=o||{},e.cacheKey="~~C".concat(Ql),Ql+=1),e}return gn(n,[{key:"initBrReg",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.classicBr=il("classicBr")?ol():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,a,i=null!==(t=null===(n=this.$engine.htmlWhiteListAppend)||void 0===n?void 0:n.split("|"))&&void 0!==t?t:[];i=fc(r=Lc(i).call(i,(function(e){return/[a-z-]+/gi.test(e)?e:null}))).call(r,(function(e){return null!==e}));var o=Vs(i).call(i,Wl).join("|");this.removeBrAfterBlock=new RegExp("<(".concat(o,")(>| [^>]*?>)[^\\S\\n]*?\\n"),"ig"),this.removeBrBeforeBlock=new RegExp("\\n[^\\S\\n]*?<\\/(".concat(o,")>[^\\S\\n]*?\\n"),"ig"),this.removeNewlinesBetweenTags=new RegExp(Vs(a="<\\/(".concat(o,")>[^\\S\\n]*?\\n([^\\S\\n]*?)<(")).call(a,o,")(>| [^>]*?>)"),"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),a=new RegExp("~~C\\d+I".concat(n.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,"\\w+\\$"),"g").test(e);return r&&!a}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,a=n.contents,i=Lc(a).call(a,t),o="",s=0;s2&&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:"",u=null!==(a=null===(i=t.match(/\n+$/))||void 0===i?void 0:i[0])&&void 0!==a?a:"";return c?el(t,e):Vs(o=Vs(s="".concat(l)).call(s,e)).call(o,u)}},{key:"getLineCount",value:function(e){var t,r,a,i=e,o=null!==(t=null===(r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").match(/^\n+/g))||void 0===r||null===(a=r[0])||void 0===a?void 0:a.length)&&void 0!==t?t:0;o=1===o?1:0,i=i.replace(/^\n+/g,"");var s=new RegExp("\n*~~C\\d+I(?:".concat(n.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")?\\w+?_L(\\d+)\\$"),"g"),c=0;return i=i.replace(s,(function(e,t){return c+=Qc(t,10),e.replace(/^\n+/g,"")})),o+c+(i.match(/\n/g)||[]).length+1}},{key:"pushCache",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this.needCache){var i=r||this.$engine.md5(e);return this.cache[i]={content:e,using:!0},Vs(t=Vs(n="".concat(this.cacheKey,"I")).call(n,i,"_L")).call(t,a,"$")}}},{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=oc(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,Vs(n=Vs(r="".concat(this.cacheKey,"I")).call(r,this.sign,"_L")).call(n,a,"$")):this.toHtml(e,t)}},{key:"mounted",value:function(){}},{key:"signWithCache",value:function(e){return!1}}]),n}();hi(eu,"HOOK_TYPE",xc.PAR),hi(eu,"IN_PARAGRAPH_CACHE_KEY_PREFIX","!"),hi(eu,"IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX","\\!");var tu=o((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),nu=Object.isExtensible,ru=o((function(){nu(1)}))||tu?function(e){return!!I(e)&&((!tu||"ArrayBuffer"!=C(e))&&(!nu||nu(e)))}:nu,au=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),iu=t((function(e){var t=Ke.f,n=!1,r=de("meta"),a=0,i=function(e){t(e,r,{value:{objectID:"O"+a++,weakData:{}}})},o=e.exports={enable:function(){o.enable=function(){},n=!0;var e=Gn.f,t=m([].splice),a={};a[r]=1,e(a).length&&(Gn.f=function(n){for(var a=e(n),i=0,o=a.length;ii;i++)if((s=m(e[i]))&&D(mu,s))return s;return new gu(!1)}r=du(e,a)}for(c=r.next;!(l=_(c,r)).done;){try{s=m(l.value)}catch(e){pu(r,"throw",e)}if("object"==typeof s&&s&&D(mu,s))return s}return new gu(!1)},vu=i.TypeError,yu=function(e,t){if(D(t,e))return e;throw vu("Incorrect invocation")},_u=Ke.f,ku=wr.forEach,wu=yr.set,Eu=yr.getterFor,Su=function(e,t,n){for(var r in t)n&&n.unsafe&&e[r]?e[r]=t[r]:er(e,r,t[r],n);return e},Au=be("species"),xu=Ke.f,Cu=iu.fastKey,Tu=yr.set,$u=yr.getterFor,Ru={getConstructor:function(e,t,n,r){var a=e((function(e,a){yu(e,i),Tu(e,{type:t,index:en(null),first:void 0,last:void 0,size:0}),v||(e.size=0),null!=a&&bu(a,e[r],{that:e,AS_ENTRIES:n})})),i=a.prototype,o=$u(t),s=function(e,t,n){var r,a,i=o(e),s=c(e,t);return s?s.value=n:(i.last=s={index:a=Cu(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=s),r&&(r.next=s),v?i.size++:e.size++,"F"!==a&&(i.index[a]=s)),e},c=function(e,t){var n,r=o(e),a=Cu(t);if("F"!==a)return r.index[a];for(n=r.first;n;n=n.next)if(n.key==t)return n};return Su(i,{clear:function(){for(var e=o(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,v?e.size=0:this.size=0},delete:function(e){var t=this,n=o(t),r=c(t,e);if(r){var a=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=a),a&&(a.previous=i),n.first==r&&(n.first=a),n.last==r&&(n.last=i),v?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=o(this),r=Me(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!!c(this,e)}}),Su(i,n?{get:function(e){var t=c(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),v&&xu(i,"size",{get:function(){return o(this).size}}),a},setStrong:function(e,t,n){var r=t+" Iterator",a=$u(t),i=$u(r);za(e,t,(function(e,t){Tu(this,{type:r,target:e,state:a(e),kind:t,last:void 0})}),(function(){for(var e=i(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),function(e){var t=j(e),n=Ke.f;v&&t&&!t[Au]&&n(t,Au,{configurable:!0,get:function(){return this}})}(t)}};!function(e,t,n){var r,a=-1!==e.indexOf("Map"),s=-1!==e.indexOf("Weak"),c=a?"set":"add",l=i[e],u=l&&l.prototype,f={};if(v&&b(l)&&(s||u.forEach&&!o((function(){(new l).entries().next()})))){var d=(r=t((function(t,n){wu(yu(t,d),{type:e,collection:new l}),null!=n&&bu(n,t[c],{that:t,AS_ENTRIES:a})}))).prototype,p=Eu(e);ku(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in u)||s&&"clear"==e||Ze(d,e,(function(n,r){var a=p(this).collection;if(!t&&s&&!I(n))return"get"==e&&void 0;var i=a[e](0===n?0:n,r);return t?this:i}))})),s||_u(d,"size",{configurable:!0,get:function(){return p(this).collection.size}})}else r=n.getConstructor(t,e,a,c),iu.enable();cr(r,e,!1,!0),f[e]=r,Ve({global:!0,forced:!0},f),s||n.setStrong(r,e,a)}("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),Ru);var Ou=N.Map,Pu=[].push;Ve({target:"Map",stat:!0,forced:!0},{from:function(e){var t,n,r,a,i=arguments.length,o=i>1?arguments[1]:void 0;return Et(this),(t=void 0!==o)&&J(o),null==e?new this:(n=[],t?(r=0,a=Me(o,i>2?arguments[2]:void 0),bu(e,(function(e){_(Pu,n,a(e,r++))}))):bu(e,Pu,{that:n}),new this(n))}});Ve({target:"Map",stat:!0,forced:!0},{of:function(){return new this(Je(arguments))}});Ve({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=Be(this),n=J(t.delete),r=!0,a=0,i=arguments.length;a1?arguments[1]:void 0);return!bu(n,(function(e,n,a){if(!r(n,e,t))return a()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var Iu=be("species"),Nu=function(e,t){var n,r=Be(e).constructor;return void 0===r||null==(n=Be(r)[Iu])?t:Et(n)};Ve({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=Be(this),n=Lu(t),r=Me(e,arguments.length>1?arguments[1]:void 0),a=new(Nu(t,j("Map"))),i=J(a.set);return bu(n,(function(e,n){r(n,e,t)&&_(i,a,e,n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),a}}),Ve({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=Be(this),n=Lu(t),r=Me(e,arguments.length>1?arguments[1]:void 0);return bu(n,(function(e,n,a){if(r(n,e,t))return a(n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}}),Ve({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=Be(this),n=Lu(t),r=Me(e,arguments.length>1?arguments[1]:void 0);return bu(n,(function(e,n,a){if(r(n,e,t))return a(e)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}});var Mu=m([].push);Ve({target:"Map",stat:!0,forced:!0},{groupBy:function(e,t){J(t);var n=du(e),r=new this,a=J(r.has),i=J(r.get),o=J(r.set);return bu(n,(function(e){var n=t(e);_(a,r,n)?Mu(_(i,r,n),e):_(o,r,n,[e])}),{IS_ITERATOR:!0}),r}});Ve({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return bu(Lu(Be(this)),(function(t,n,r){if((a=n)===(i=e)||a!=a&&i!=i)return r();var a,i}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}}),Ve({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var n=new this;J(t);var r=J(n.set);return bu(e,(function(e){_(r,n,t(e),e)})),n}}),Ve({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){return bu(Lu(Be(this)),(function(t,n,r){if(n===e)return r(t)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}}),Ve({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=Be(this),n=Lu(t),r=Me(e,arguments.length>1?arguments[1]:void 0),a=new(Nu(t,j("Map"))),i=J(a.set);return bu(n,(function(e,n){_(i,a,r(n,e,t),n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),a}}),Ve({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=Be(this),n=Lu(t),r=Me(e,arguments.length>1?arguments[1]:void 0),a=new(Nu(t,j("Map"))),i=J(a.set);return bu(n,(function(e,n){_(i,a,e,r(n,e,t))}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),a}}),Ve({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=Be(this),n=J(t.set),r=arguments.length,a=0;a1?arguments[1]:void 0);return bu(n,(function(e,n,a){if(r(n,e,t))return a()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var Du=i.TypeError;Ve({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var n=Be(this),r=J(n.get),a=J(n.has),i=J(n.set),o=arguments.length;J(t);var s=_(a,n,e);if(!s&&o<3)throw Du("Updating absent value");var c=s?_(r,n,e):J(o>2?arguments[2]:void 0)(e,n);return _(i,n,e,t(c,e,n)),n}});var Fu=i.TypeError,Bu=function(e,t){var n,r=Be(this),a=J(r.get),i=J(r.has),o=J(r.set),s=arguments.length>2?arguments[2]:void 0;if(!b(t)&&!b(s))throw Fu("At least one callback required");return _(i,r,e)?(n=_(a,r,e),b(t)&&(n=t(n),_(o,r,e,n))):b(s)&&(n=s(),_(o,r,e,n)),n};Ve({target:"Map",proto:!0,real:!0,forced:!0},{upsert:Bu}),Ve({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:Bu});var Hu=Ou,zu=Ll;var Uu=cn,Wu=Ks;function qu(e,t,n){return qu=function(){if("undefined"==typeof Reflect||!Uu)return!1;if(Uu.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Uu(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Uu:function(e,t,n){var r=[null];r.push.apply(r,t);var a=new(Wu(Function).apply(e,r));return n&&Sn(a,n.prototype),a},qu.apply(null,arguments)}function Gu(e){var t="function"==typeof Hu?new Hu:void 0;return Gu=function(e){if(null===e||!function(e){var t;return-1!==zu(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 qu(e,arguments,pi(this).constructor)}return n.prototype=yn(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Sn(n,e)},Gu(e)}function Ku(e){var t=function(){if("undefined"==typeof Reflect||!ln)return!1;if(ln.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ln(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pi(e);if(t){var a=pi(this).constructor;n=ln(r,arguments,a)}else n=r.apply(this,arguments);return ui(this,n)}}var Zu=function(e,t){if(!rl(e)&&ci(e)!==t.name.toLowerCase()||!rl(e)&&"array"===t.name.toLowerCase())throw new TypeError("parameter given must be ".concat(t.name));return!0},Yu=function(e,t){if(!(e instanceof t))throw new Error("the hook does not correctly inherit");return!0},Xu=function(e){if("object"!==ci(e))throw new Error("the hook must be a instance, not a class");return!0},Vu=function(e){An(n,Gu(Error));var t=Ku(n);function n(e,r){var a;return mn(this,n),(a=t.call(this,e)).name="Error",a.stack=a.buildStackTrace(r),a}return gn(n,[{key:"buildStackTrace",value:function(e){var t,n=e&&e.stack?e.stack:"";return Vs(t="".concat(this.stack,"\nCaused By: ")).call(t,n)}}]),n}(),Ju=new Proxy({},{get:function(e,t,n){return function(){}}});function Qu(e,t,n){var r,a;if(-1===e)Ju.warn(Vs(r=Vs(a="Duplicate hook name [".concat(t.HOOK_NAME,"] found, hook [")).call(a,t.toString(),"] ")).call(r,isNaN(n)?"":"at index [".concat(n,"] "),"will not take effect."));else if(-2===e){var i;Ju.warn(Vs(i="Hook [".concat(t.toString(),"] ")).call(i,isNaN(n)?"":"at index [".concat(n,"] "),"is not a valid hook, and will not take effect."))}}function ef(e){return tf(e)||nf(e)}function tf(e){return Object.prototype.isPrototypeOf.call(Cc,e)}function nf(e){return Object.prototype.isPrototypeOf.call(eu,e)}function rf(e){return ef(e)&&!0===(null==e?void 0:e.Cherry$$CUSTOM)}var af=function(){function e(t,n,r){mn(this,e),this.$locale=r.locale,this.hookList={},this.hookNameList={},Zu(t,Array),this.registerInternalHooks(t,n),this.registerCustomHooks(n.engine.customSyntax,n)}return gn(e,[{key:"registerInternalHooks",value:function(e,t){var n=this;ac(e).call(e,(function(e,r){Qu(n.register(e,t),e,r)}))}},{key:"registerCustomHooks",value:function(e,t){var n=this;if(e){var r=oc(e);ac(r).call(r,(function(r){var a,i,o,s,c={},l=e[r];if(tf(l))i=l;else{if(!tf(s=null==(o=l)?void 0:o.syntaxClass)&&!nf(s))return;i=l.syntaxClass,c.force=Boolean(l.force),l.before?c.before=l.before:l.after&&(c.after=l.after)}ef(i)?(Us(i,"Cherry$$CUSTOM",{enumerable:!1,configurable:!1,writable:!1,value:!0}),a=n.register(i,t,c)):a=-2,Qu(a,i,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,a,i=this,o=t.externals,s=t.engine,c=s.syntax;if(ef(e)){a=e.HOOK_NAME;var l=(null==c?void 0:c[a])||{};(r=new e({externals:o,config:l,globalConfig:s.global})).afterInit((function(){r.setLocale(i.$locale)}))}else{if("function"!=typeof e)return-2;if(!(r=e(t))||!ef(r.constructor))return-2;a=r.getName()}if(!1!==c[a]||rf(e)){var u=r.getType();if(this.hookNameList[a]){var f;if(!rf(e))return-1;if(!n.force)return-1;var d=this.hookNameList[a].type;this.hookList[d]=fc(f=this.hookList[d]).call(f,(function(e){return e.getName()!==a}))}if(this.hookNameList[a]={type:u},this.hookList[u]=this.hookList[u]||[],rf(e)){var p,h,g,m=-1;if(n.before){if(-1===(m=bc(p=this.hookList[u]).call(p,(function(e){return e.getName()===n.before}))))Ju.warn(Vs(h="Cannot find hook named [".concat(n.before,"],\n custom hook [")).call(h,a,"] will append to the end of the hooks."))}else if(n.after){var b,v;-1===(m=bc(b=this.hookList[u]).call(b,(function(e){return e.getName()===n.after})))?Ju.warn(Vs(v="Cannot find hook named [".concat(n.after,"],\n custom hook [")).call(v,a,"] will append to the end of the hooks.")):m+=1}if(m<0||m>=this.hookList[u].length)this.hookList[u].push(r);else Sc(g=this.hookList[u]).call(g,m,0,r)}else this.hookList[u].push(r)}}}]),e}();function of(e,t){var n=oc(e);if(sl){var r=sl(e);t&&(r=fc(r).call(r,(function(t){return dl(e,t).enumerable}))),n.push.apply(n,r)}return n}function sf(e){for(var t=1;t\\x00-\\x1f"\\(\\)]*)?'),bf=new RegExp("(?:\\/\\/)".concat(mf.source)),vf=new RegExp("^".concat(mf.source,"$")),yf=new RegExp("^".concat(bf.source,"$"));function _f(){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=cf(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=cf(r,"g",!0),!1===t?{strict:n,loose:r}:cf({begin:"",content:Vs(e="(?:".concat(n.begin+n.content+n.end,"|")).call(e,r.begin+r.content+r.end,")"),end:""},"g",!0)}var kf=nl;function wf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?arguments[1]:void 0,i=void 0!==a;i&&(a=Me(a,r>2?arguments[2]:void 0));var o,s,c,l,u,f,d=uu(t),p=0;if(!d||this==Af&&cu(d))for(o=Lt(t),s=n?new this(o):Af(o);o>p;p++)f=i?a(t[p],p):t[p],Cn(s,p,f);else for(u=(l=du(t,d)).next,s=n?new this:[];!(c=_(u,l)).done;p++)f=i?Sf(l,a,[c.value,p],!0):c.value,Cn(s,p,f);return s.length=p,s}});var Of=N.Array.from,Pf=Of;function Lf(e){if(void 0!==Ja&&null!=Ef(e)||null!=e["@@iterator"])return Pf(e)}var If=Pn("slice"),Nf=be("species"),Mf=i.Array,jf=Math.max;Ve({target:"Array",proto:!0,forced:!If},{slice:function(e,t){var n,r,a,i=L(this),o=Lt(i),s=Rt(e,o),c=Rt(void 0===t?o:t,o);if(xn(i)&&(n=i.constructor,(kt(n)&&(n===Mf||xn(n.prototype))||I(n)&&null===(n=n[Nf]))&&(n=void 0),n===Mf||void 0===n))return Je(i,s,c);for(r=new(void 0===n?Mf:n)(jf(c-s,0)),a=0;s3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;if(!t)return e;t.lastIndex=0;for(var o=0,s=[];null!==(r=t.exec(e));){var c={begin:r.index,length:r[0].length};if(a&&r.index===o-i){var l,u=Gf(r),f=u[0],d=Kf(u).call(u,2);s.push({begin:c.begin+i,length:c.length-i,replacedText:n.apply(void 0,Vs(l=[Kf(f).call(f,i),""]).call(l,Uf(d)))})}else s.push(Yf(Yf({},c),{},{replacedText:n.apply(void 0,Uf(r))}));o=t.lastIndex,t.lastIndex-=i}return t.lastIndex=0,function(e,t){if(!t.length)return e;var n=[],r=0;return ac(t).call(t,(function(a,i){n.push(Kf(e).call(e,r,a.begin)),n.push(a.replacedText),r=a.begin+a.length,i===t.length-1&&n.push(Kf(e).call(e,r))})),n.join("")}(e,s)}function Vf(e){var t=function(){if("undefined"==typeof Reflect||!ln)return!1;if(ln.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ln(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pi(e);if(t){var a=pi(this).constructor;n=ln(r,arguments,a)}else n=r.apply(this,arguments);return ui(this,n)}}var Jf=function(e){An(n,Cc);var t=Vf(n);function n(){return mn(this,n),t.apply(this,arguments)}return gn(n,[{key:"toHtml",value:function(e,t,n,r){var a,i;return Vs(a=Vs(i="".concat(t,'')).call(a,r,"")}},{key:"makeHtml",value:function(e){return lf()?e.replace(this.RULE.reg,this.toHtml):Xf(e,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var e={begin:lf()?"((?')).call(a,r,"
    ")}},{key:"makeHtml",value:function(e){return lf()?e.replace(this.RULE.reg,this.toHtml):Xf(e,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var e={begin:lf()?"((?')).call(a,r,"")}},{key:"makeHtml",value:function(e){return this.test(e)?lf()?e.replace(this.RULE.reg,this.toHtml):Xf(e,this.RULE.reg,this.toHtml,!0,1):e}},{key:"rule",value:function(){var e={begin:lf()?"((?0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config;return mn(this,n),e=t.call(this,{config:r}),r?(e.needWhitespace=!!r.needWhitespace,e):ui(e)}return gn(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?ad(ad({},e),{},{begin:"(^|[\\s])\\~T\\~T",end:"\\~T\\~T(?=\\s|$)",content:"([\\w\\W]+?)"}):ad(ad({},e),{},{begin:"(^|[^\\\\])\\~T\\~T",end:"\\~T\\~T",content:"([\\w\\W]+?)"})).reg=new RegExp(e.begin+e.content+e.end,"g"),e}}]),n}();function sd(e){var t=function(){if("undefined"==typeof Reflect||!ln)return!1;if(ln.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ln(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pi(e);if(t){var a=pi(this).constructor;n=ln(r,arguments,a)}else n=r.apply(this,arguments);return ui(this,n)}}hi(od,"HOOK_NAME","strikethrough");var cd=function(e){An(n,Cc);var t=sd(n);function n(){return mn(this,n),t.apply(this,arguments)}return gn(n,[{key:"toHtml",value:function(e,t,n){var r;return Vs(r="".concat(t,"")).call(r,n,"")}},{key:"makeHtml",value:function(e){return lf()?e.replace(this.RULE.reg,this.toHtml):Xf(e,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var e={begin:lf()?"((?")).call(r,n,"")}},{key:"makeHtml",value:function(e){return lf()?e.replace(this.RULE.reg,this.toHtml):Xf(e,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var e={begin:lf()?"((?=f.reach);E+=w.value.length,w=w.next){var S=w.value;if(t.length>e.length)return;if(!(S instanceof i)){var A,x=1;if(v){if(!(A=o(k,E,e,b))||A.index>=e.length)break;var C=A.index,T=A.index+A[0].length,$=E;for($+=w.value.length;C>=$;)$+=(w=w.next).value.length;if(E=$-=w.value.length,w.value instanceof i)continue;for(var R=w;R!==t.tail&&($f.reach&&(f.reach=I);var N=w.prev;if(P&&(N=l(t,N,P),E+=P.length),u(t,N,x),w=l(t,N,new i(d,m?a.tokenize(O,m):O,y,O)),L&&l(t,w,L),x>1){var M={cause:d+","+h,reach:I};s(e,t,n,w.prev,E,M),f&&M.reach>f.reach&&(f.reach=M.reach)}}}}}}function c(){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,a={value:n,prev:t,next:r};return t.next=a,r.prev=a,e.length++,a}function u(e,t,n){for(var r=t.next,a=0;a"+i.content+""},!e.document)return e.addEventListener?(a.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,o=n.immediateClose;e.postMessage(a.highlight(i,a.languages[r],r)),o&&e.close()}),!1),a):a;var f=a.util.currentScript();function d(){a.manual||a.highlightAll()}if(f&&(a.filename=f.src,f.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var p=document.readyState;"loading"===p||"interactive"===p&&f&&f.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return a}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});t.exports&&(t.exports=n),void 0!==e&&(e.Prism=n)}));function pd(e,t){var n=oc(e);if(sl){var r=sl(e);t&&(r=fc(r).call(r,(function(t){return dl(e,t).enumerable}))),n.push.apply(n,r)}return n}function hd(e){var t=function(){if("undefined"==typeof Reflect||!ln)return!1;if(ln.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ln(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pi(e);if(t){var a=pi(this).constructor;n=ln(r,arguments,a)}else n=r.apply(this,arguments);return ui(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 a="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",o="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*{)",s="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 c(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var l=c(i),u=RegExp(c(a+" "+i+" "+o+" "+s)),f=c(i+" "+o+" "+s),d=c(a+" "+i+" "+s),p=r(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),h=r(/\((?:[^()]|<>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,m=t(/<<0>>(?:\s*<<1>>)?/.source,[g,p]),b=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,m]),v=/\[\s*(?:,\s*)*\]/.source,y=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[b,v]),_=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,h,v]),k=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[_]),w=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[k,b,v]),E={keyword:u,punctuation:/[<>()?,.:[\]]/},S=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,A=/"(?:\\.|[^\\"\r\n])*"/.source,x=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[x]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[b]),lookbehind:!0,inside:E},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,w]),lookbehind:!0,inside:E},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,m]),lookbehind:!0,inside:E},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[b]),lookbehind:!0,inside:E},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[y]),lookbehind:!0,inside:E},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[w,d,g]),inside:E}],keyword:u,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,[g]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:E},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[w,b]),inside:E,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[w]),lookbehind:!0,inside:E,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,p]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(p),alias:"class-name",inside:E}}},"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,m,g,w,u.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[m,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:u,"class-name":{pattern:RegExp(w),greedy:!0,inside:E},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 C=A+"|"+S,T=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[C]),$=r(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[T]),2),R=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,O=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[b,$]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[R,O]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[R]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[$]),inside:e.languages.csharp},"class-name":{pattern:RegExp(b),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var P=/:[^}\r\n]+/.source,L=r(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[T]),2),I=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[L,P]),N=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[C]),2),M=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[N,P]);function j(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,P]),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,[I]),lookbehind:!0,greedy:!0,inside:j(I,L)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[M]),lookbehind:!0,greedy:!0,inside:j(M,N)}],char:{pattern:RegExp(S),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 a={};a[e]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",a)}}),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],a=[];/^\w+$/.test(n)||a.push(/\w+/.exec(n)[0]),"diff"===n&&a.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:a,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,a=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,(function(){return r})),i={pattern:RegExp(r),greedy:!0},o={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function s(e,t){return e=e.replace(//g,(function(){return a})).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:s(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[i,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:s(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:s(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:s(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:o,string:i,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:o},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+")?)",a=/(?:[^\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})),i=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(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"(?:"+a+"|"+i+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\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:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(i),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?: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,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \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("^"+a+i+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+i+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),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:'"'},c=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 s=d(/^\{$/,/^\}$/);if(-1===s)continue;for(var c=n;c=0&&p(l,"variable-input")}}}}function u(e){return t[n+e]}function f(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+")",a=RegExp(r+"-"+r),i={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:a,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":i}}],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,a,i){if(n.language===r){var o=n.tokenStack=[];n.code=n.code.replace(a,(function(e){if("function"==typeof i&&!i(e))return e;for(var a,s=o.length;-1!==n.code.indexOf(a=t(r,s));)++s;return o[s]=e,a})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var a=0,i=Object.keys(n.tokenStack);!function o(s){for(var c=0;c=i.length);c++){var l=s[c];if("string"==typeof l||l.content&&"string"==typeof l.content){var u=i[a],f=n.tokenStack[u],d="string"==typeof l?l:l.content,p=t(r,u),h=d.indexOf(p);if(h>-1){++a;var g=d.substring(0,h),m=new e.Token(r,e.tokenize(f,n.grammar),"language-"+r,f),b=d.substring(h+p.length),v=[];g&&v.push.apply(v,o([g])),v.push(m),b&&v.push.apply(v,o([b])),"string"==typeof l?s.splice.apply(s,[c,1].concat(v)):l.content=v}}else l.content&&o(l.content)}return s}(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,a=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,a=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;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:a,punctuation:i};var o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{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:o}},{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:o}}];e.languages.insertBefore("php","variable",{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"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:a,punctuation:i}},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,a=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function i(e,t){return e=e.replace(//g,(function(){return n})).replace(//g,(function(){return r})).replace(//g,(function(){return a})),RegExp(e,t)}a=i(a).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\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:i(//.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var o=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(o).join(""):""},s=function(t){for(var n=[],r=0;r0&&n[n.length-1].tagName===o(a.content[0].content[1])&&n.pop():"/>"===a.content[a.content.length-1].content||n.push({tagName:o(a.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===a.type&&"{"===a.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===a.type&&"}"===a.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof a)&&n.length>0&&0===n[n.length-1].openedBraces){var c=o(a);r0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(c=o(t[r-1])+c,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",c,null,c)}a.content&&"string"!=typeof a.content&&s(a.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||s(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 a=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,o=0;o]=?/,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:/[()]/},dd.manual=!0;var gd={figure:"figure"},md=function(e){An(n,eu);var t=hd(n);function n(e){var r;e.externals;var a,i=e.config;(mn(this,n),r=t.call(this,{needCache:!0}),n.inlineCodeCache={},r.codeCache={},r.customLang=[],r.customParser={},r.wrap=i.wrap,r.lineNumber=i.lineNumber,r.copyCode=i.copyCode,r.editCode=i.editCode,r.changeLang=i.changeLang,r.mermaid=i.mermaid,r.indentedCodeBlock=void 0===i.indentedCodeBlock||i.indentedCodeBlock,r.INLINE_CODE_REGEX=/(`+)(.+?(?:\n.+?)*?)\1/g,i&&i.customRenderer)&&(r.customLang=Lc(a=oc(i.customRenderer)).call(a,(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,a,i,o,s,c=this.customParser[e];if(!c||"function"!=typeof c.render)return!1;var l=c.render(t,n.sign,this.$engine,this.mermaid);if(!l)return!1;var u=gd[c.constructor.TYPE]||"div";return Vs(r=Vs(a=Vs(i=Vs(o=Vs(s="<".concat(u,' data-sign="')).call(s,n.sign,'" data-type="')).call(o,e,'" data-lines="')).call(i,n.lines,'">')).call(a,l,"")}},{key:"fillTag",value:function(e){var t=[];return Lc(e).call(e,(function(e){if(!e)return"";for(var n=e;t.length;){var r,a=t.pop();n=Vs(r="".concat(a)).call(r,n)}var i=n.match(/|<\/span>/g),o=0;if(!i)return n;for(;i.length;){var s=i.pop();/<\/span>/.test(s)?o+=1:o?o-=1:t.unshift(s.match(//)[0])}for(var c=0;c");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!==Il(t=this.customLang).call(t,e)}},{key:"computeLines",value:function(e,t,n){var r=t,a=this.getLineCount(e,r);return{sign:this.$engine.md5(e.replace(/^\n+/,"")+a),lines:a}}},{key:"appendMermaid",value:function(e,t){var n=e,r=t;if(/^flow([ ](TD|LR))?$/i.test(r)&&!this.isInternalCustomLangCovered(r)){var a,i=r.match(/^flow(?:[ ](TD|LR))?$/i)||[];n=Vs(a="graph ".concat(i[1]||"TD","\n")).call(a,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 Vs(n=Vs(r='')).call(n,e,"")}},{key:"renderCodeBlock",value:function(e,t,n,r){var a,i,o,s,c,l,u,f=e,d=t;return this.customHighlighter?f=this.customHighlighter(f,d):(d&&dd.languages[d]||(d="javascript"),f=dd.highlight(f,dd.languages[d],d),f=this.renderLineNumber(f)),f=Vs(a=Vs(i=Vs(o=Vs(s=Vs(c=Vs(l=Vs(u='\n
    ')).call(a,this.wrapCode(f,d),"
    \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,a,i=(e.match(/\n/g)||[]).length,o=t.$engine.md5(e),s=Vs(r=Vs(a='
    ')).call(r,Kl(n.replace(/\n( {4}|\t)/g,"\n")),"
    ");return el(e,t.pushCache(s,o,i))})):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,a=e;return a=(a=this.$replaceCodeInIndent(a)).replace(this.RULE.reg,(function(e,t,n,a,i,o){var s,c,l;function u(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 f=o,d=r.computeLines(e,t,o),p=d.sign,h=d.lines,g=r.$codeCache(p);if(g&&""!==g)return u(r.getCacheWithSpace(r.pushCache(g,p,h),e));f=(f=(f=r.$recoverCodeInIndent(f)).replace(/~D/g,"$")).replace(/~T/g,"~");var m=null!==(s=null==t||null===(c=t.match(/[ ]/g))||void 0===c?void 0:c.length)&&void 0!==s?s:0;if(m>0){var b=new RegExp("(^|\\n)[ ]{1,".concat(m,"}"),"g");f=f.replace(b,"$1")}if(n){var v=new RegExp("(^|\\n)".concat(n),"g");f=f.replace(v,"$1")}var y=qc(i).call(i);if(/^(math|katex|latex)$/i.test(y)&&!r.isInternalCustomLangCovered(y)){var _,k=e.match(/^\s*/g);return Vs(_="".concat(k,"~D~D\n")).call(_,f,"~D~D")}var w=fd(r.appendMermaid(f,y),2);return f=w[0],y=w[1],-1!==Il(l=r.customLang).call(l,y.toLowerCase())&&(g=r.parseCustomLanguage(y,f,{lines:h,sign:p}))&&""!==g?(r.$codeCache(p,g),r.getCacheWithSpace(r.pushCache(g,p,h),e)):(f=f.replace(/~X/g,"\\`"),g=(g=r.renderCodeBlock(f,y,p,h)).replace(/\\/g,"\\\\"),g=r.$codeCache(p,g),u(r.getCacheWithSpace(r.pushCache(g,p,h),e)))})),a=a.replace(_f(!0),(function(e){var t;return Lc(t=e.split("|")).call(t,(function(e){return r.makeInlineCode(e)})).join("|").replace(/`/g,"\\`")})),a=this.makeInlineCode(a),a=this.$getIndentCodeBlock(a)}},{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,a){if("`"===qc(a).call(a))return e;var i=a.replace(/~~not~inlineCode/g,"\\`");i=(i=t.$replaceSpecialChar(i)).replace(/\\/g,"\\\\");var o="".concat(Kl(i),""),s=t.$engine.md5(o);return n.inlineCodeCache[s]=o,"~~CODE".concat(s,"$")})),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(e={begin:/(?:^|\n)(\n*((?:>[\t ]*)*)(?:[^\S\n]*))(`{3,})([^`]*?)\n/,content:/([\w\W]*?)/,end:/[^\S\n]*\3[ \t]*(?=$|\n+)/,reg:new RegExp("")}).reg=new RegExp(e.begin.source+e.content.source+e.end.source,"g"),sf(sf({},e),{},{begin:e.begin.source,content:e.content.source,end:e.end.source});var e}},{key:"mounted",value:function(e){}}]),n}();function bd(e){var t=function(){if("undefined"==typeof Reflect||!ln)return!1;if(ln.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ln(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pi(e);if(t){var a=pi(this).constructor;n=ln(r,arguments,a)}else n=r.apply(this,arguments);return ui(this,n)}}hi(md,"HOOK_NAME","codeBlock"),hi(md,"inlineCodeCache",{});var vd=function(e){An(n,eu);var t=bd(n);function n(){return mn(this,n),t.apply(this,arguments)}return gn(n,[{key:"makeHtml",value:function(e){return e}},{key:"afterMakeHtml",value:function(e){var t=e;return oc(md.inlineCodeCache).length>0&&(t=t.replace(/~~CODE([0-9a-zA-Z]+)\$/g,(function(e,t){return md.inlineCodeCache[t]})),md.inlineCodeCache={}),t}},{key:"rule",value:function(){var e={begin:"(`+)[ ]*",end:"[ ]*\\1",content:"(.+?(?:\\n.+?)*?)"};return e.reg=cf(e,"g"),e}}]),n}();hi(vd,"HOOK_NAME","inlineCode");var yd=t((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-i)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,a=0;r>>6-2*a);return n}};e.exports=n}()})),_d={utf8:{stringToBytes:function(e){return _d.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(_d.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n>>24)|4278255360&(s[p]<<24|s[p]>>>8);s[c>>>5]|=128<>>9<<4)]=c;var h=i._ff,g=i._gg,m=i._hh,b=i._ii;for(p=0;p>>0,u=u+y>>>0,f=f+_>>>0,d=d+k>>>0}return t.endian([l,u,f,d])};i._ff=function(e,t,n,r,a,i,o){var s=e+(t&n|~t&r)+(a>>>0)+o;return(s<>>32-i)+t},i._gg=function(e,t,n,r,a,i,o){var s=e+(t&r|n&~r)+(a>>>0)+o;return(s<>>32-i)+t},i._hh=function(e,t,n,r,a,i,o){var s=e+(t^n^r)+(a>>>0)+o;return(s<>>32-i)+t},i._ii=function(e,t,n,r,a,i,o){var s=e+(n^(t|~r))+(a>>>0)+o;return(s<>>32-i)+t},i._blocksize=16,i._digestsize=16,e.exports=function(e,n){if(null==e)throw new Error("Illegal argument "+e);var r=t.wordsToBytes(i(e,n));return n&&n.asBytes?r:n&&n.asString?a.bytesToString(r):t.bytesToHex(r)}}()})),Ad={},xd=/^cherry-inner:\/\/([0-9a-f]+)$/i;var Cd=function(){function e(){mn(this,e)}return gn(e,null,[{key:"isInnerLink",value:function(e){return xd.test(e)}},{key:"set",value:function(e){var t=Sd(e);return Ad[t]=e,"cherry-inner://".concat(t)}},{key:"get",value:function(e){var t,n=fd(null!==(t=e.match(xd))&&void 0!==t?t:[],2)[1];if(n)return Ad[n]}},{key:"replace",value:function(e,t){var n,r=fd(null!==(n=e.match(xd))&&void 0!==n?n:[],2)[1];if(r)return Ad[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(){Ad={}}}]),e}();function Td(e){var t=function(){if("undefined"==typeof Reflect||!ln)return!1;if(ln.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ln(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pi(e);if(t){var a=pi(this).constructor;n=ln(r,arguments,a)}else n=r.apply(this,arguments);return ui(this,n)}}var $d=function(e){An(n,Cc);var t=Td(n);function n(e){var r,a=e.config,i=e.globalConfig;return mn(this,n),(r=t.call(this,{config:a})).urlProcessor=i.urlProcessor,r.target=a.target?'target="'.concat(a.target,'"'):a.openNewPage?'target="_blank"':"",r.rel=a.rel?'rel="'.concat(a.rel,'"'):"",r}return gn(n,[{key:"checkBrackets",value:function(e){for(var t=[],n="[".concat(e,"]"),r=function(e){return 1&Kf(n).call(n,0,e).match(/\\*$/)[0].length},a=n.length-1;n[a]&&(a!==n.length-1||!r(a));a--)if("]"!==n[a]||r(a)||t.push("]"),"["===n[a]&&!r(a)&&(t.pop(),!t.length))return{isValid:!0,coreText:Kf(n).call(n,a+1,n.length-1),extraLeadingChar:Kf(n).call(n,0,a)};return{isValid:!1,coreText:e,extraLeadingChar:""}}},{key:"toHtml",value:function(e,t,n,r,a,i,o){var s=void 0===r?"ref":"url",c="";if("ref"===s)return e;if("url"===s){var l,u=this.checkBrackets(n),f=u.isValid,d=u.coreText,p=u.extraLeadingChar;if(!f)return e;c=a&&""!==qc(a).call(a)?' title="'.concat(Kl(a.replace(/["']/g,"")),'"'):"",o?c+=' target="'.concat(o.replace(/{target\s*=\s*(.*?)}/,"$1"),'"'):this.target&&(c+=" ".concat(this.target));var h,g,m,b,v=qc(r).call(r).replace(/~1D/g,"~D"),y=d.replace(/~1D/g,"~D");return Xl(v)?(v=Vl(v=this.urlProcessor(v,"link")),Vs(h=Vs(g=Vs(m=Vs(b="".concat(t+p,'")).call(h,y,"")):Vs(l="".concat(t+p,"")).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")}));lf()?r=r.replace(this.RULE.reg,Zs(t=this.toHtml).call(t,this)):r=Xf(r,this.RULE.reg,Zs(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:lf()?"((?0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}});var Od=Ws("String").repeat,Pd=String.prototype,Ld=function(e){var t=e.repeat;return"string"==typeof e||e===Pd||D(Pd,e)&&t===Pd.repeat?Od:t};function Id(e){var t=function(){if("undefined"==typeof Reflect||!ln)return!1;if(ln.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ln(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pi(e);if(t){var a=pi(this).constructor;n=ln(r,arguments,a)}else n=r.apply(this,arguments);return ui(this,n)}}var Nd=function(e){An(n,Cc);var t=Id(n);function n(){var e,r=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config;return mn(this,n),e=t.call(this,{config:r}),r?(e.allowWhitespace=!!r.allowWhitespace,e):ui(e)}return gn(n,[{key:"makeHtml",value:function(e,t){var n=function(e,n,r,a){var i,o,s,c=r.length%2==1?"em":"strong",l=Math.floor(r.length/2),u=Ld("").call("",l),f=Ld("").call("",l);return"em"===c&&(u+="",f="".concat(f)),Vs(i=Vs(o=Vs(s="".concat(n)).call(s,u)).call(o,t(a).html.replace(/_/g,"~U"))).call(i,f)},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,a,i,o){var s,c,l;if(""===qc(a).call(a))return e;var u=r.length%2==1?"em":"strong",f=Math.floor(r.length/2),d=Ld("").call("",f),p=Ld("").call("",f),h=t(a).html;return"em"===u&&(d+="",p="".concat(p)),Vs(s=Vs(c=Vs(l="".concat(n)).call(l,d)).call(c,h)).call(s,p)})),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,a,i="[^".concat(t,"\\s]");return e?"(?:.*?)(?:(?:\\n.*?)*?)":Vs(n=Vs(r=Vs(a="(".concat(i,"|")).call(a,i,"(.*?(\n")).call(r,i,".*)*)")).call(n,i,")")},r={begin:"(^|[^\\\\])([*]+)",content:"(".concat(n(t,"*"),")"),end:"\\2"},a={begin:"(^|".concat(pf,")(_+)"),content:"(".concat(n(t,"_"),")"),end:"\\2(?=".concat(pf,"|$)")};return r.reg=cf(r,"g"),a.reg=cf(a,"g"),{asterisk:r,underscore:a}}}]),n}();function Md(e){var t=function(){if("undefined"==typeof Reflect||!ln)return!1;if(ln.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ln(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pi(e);if(t){var a=pi(this).constructor;n=ln(r,arguments,a)}else n=r.apply(this,arguments);return ui(this,n)}}hi(Nd,"HOOK_NAME","fontEmphasis");var jd=function(e){An(n,eu);var t=Md(n);function n(e){var r;return mn(this,n),(r=t.call(this)).initBrReg(e.globalConfig.classicBr),r}return gn(n,[{key:"makeHtml",value:function(e,t){var n=this;return this.test(e)?e.replace(this.RULE.reg,(function(e,r,a){var i;if(n.isContainsCache(e,!0))return e;var o,s=function(e){var r,a,i,o,s,c;if(""===qc(e).call(e))return"";var l=t(e),u=l.sign,f=l.html,d="p";new RegExp("<(".concat(Wl,")[^>]*>"),"i").test(f)&&(d="div");var p=n.getLineCount(e,e);return Vs(r=Vs(a=Vs(i=Vs(o=Vs(s=Vs(c="<".concat(d,' data-sign="')).call(c,u)).call(s,p,'" data-type="')).call(o,d,'" data-lines="')).call(i,p,'">')).call(a,n.$cleanParagraph(f),"")};return n.isContainsCache(a)?n.makeExcludingCached(Vs(o="".concat(r)).call(o,a),s):s(Vs(i="".concat(r)).call(i,a))})):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}();hi(jd,"HOOK_NAME","normalParagraph");Ve({target:"Reflect",stat:!0},{get:function e(t,n){var r,a,i=arguments.length<3?t:arguments[2];return Be(t)===i?t[n]:(r=Ce.f(t,n))?function(e){return void 0!==e&&(ce(e,"value")||ce(e,"writable"))}(r)?r.value:void 0===r.get?void 0:_(r.get,i):I(a=Ta(t))?e(a,n,i):void 0}});var Dd=N.Reflect.get,Fd=fl;function Bd(){return Bd="undefined"!=typeof Reflect&&Dd?Dd:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=pi(e)););return e}(e,t);if(r){var a=Fd(r,t);return a.get?a.get.call(arguments.length<3?e:n):a.value}},Bd.apply(this,arguments)}function Hd(e){var t=function(){if("undefined"==typeof Reflect||!ln)return!1;if(ln.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ln(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pi(e);if(t){var a=pi(this).constructor;n=ln(r,arguments,a)}else n=r.apply(this,arguments);return ui(this,n)}}var zd="atx",Ud="setext",Wd=/[\s\-_]/,qd=/[A-Za-z]/,Gd=/[0-9]/,Kd=function(e){An(n,eu);var t=Hd(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0,externals:void 0};r.externals;var a=r.config;return mn(this,n),(e=t.call(this,{needCache:!0})).strict=!a||!!a.strict,e.RULE=e.rule(),e.headerIDCache=[],e.headerIDCounter={},e.config=a||{},e}return gn(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="",a=0;a255)try{r+=encodeURIComponent(i)}catch(e){}}return r}},{key:"generateIDNoDup",value:function(e){var t,n=e.replace(/</g,"<").replace(/>/g,">"),r=this.$generateId(n,!0),a=Il(t=this.headerIDCache).call(t,r);if(-1!==a)this.headerIDCounter[a]+=1,r+="-".concat(this.headerIDCounter[a]+1);else{var i=this.headerIDCache.push(r);this.headerIDCounter[i-1]=1}return r}},{key:"$wrapHeader",value:function(e,t,n,r){var a,i,o,s,c,l,u,f=r(qc(e).call(e)),d=f.html,p=d.match(/\s+\{#([A-Za-z0-9-]+)\}$/);null!==p&&(d=d.substring(0,p.index),u=fd(p,2)[1]);var h=this.$parseTitleText(d);if(!u){u=this.generateIDNoDup(h.replace(/~fn#([0-9]+)#/g,""))}var g="safe_".concat(u),m=this.$engine.md5(Vs(a=Vs(i=Vs(o="".concat(t,"-")).call(o,f.sign,"-")).call(i,u,"-")).call(a,n));return{html:[Vs(s=Vs(c=Vs(l="'),this.$getAnchor(u),"".concat(d),"")].join(""),sign:"".concat(m)}}},{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,zd)&&(n=n.replace(this.RULE[zd].reg,(function(e,n,r,a){return""===qc(a).call(a)?e:t.getCacheWithSpace(t.pushCache(e),e,!0)}))),this.test(n,Ud)&&(n=n.replace(this.RULE[Ud].reg,(function(e,n,r){return""===qc(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,zd)&&(r=r.replace(this.RULE[zd].reg,(function(e,r,a,i){var o=tl(r,n.getLineCount(e.replace(/^\n+/,""))),s=i.replace(/\s+#+\s*$/,""),c=n.$wrapHeader(s,a.length,o,t),l=c.html,u=c.sign;return n.getCacheWithSpace(n.pushCache(l,u,o),e,!0)}))),this.test(r,Ud)&&(r=r.replace(this.RULE[Ud].reg,(function(e,r,a,i){if(n.isContainsCache(a))return e;var o=tl(r,n.getLineCount(e.replace(/^\n+/,""))),s="-"===i[0]?2:1,c=n.$wrapHeader(a,s,o,t),l=c.html,u=c.sign;return n.getCacheWithSpace(n.pushCache(l,u,o),e,!0)}))),r}},{key:"afterMakeHtml",value:function(e){var t=Bd(pi(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=cf(e,"g",!0);var t={begin:"(?:^|\\n)(\\n*)(?:\\h*(#{1,6}))",content:"(.+?)",end:"(?=$|\\n)"};return this.strict&&(t.begin+="(?=\\h+)"),t.reg=cf(t,"g",!0),{setext:e,atx:t}}}]),n}();function Zd(e){var t=function(){if("undefined"==typeof Reflect||!ln)return!1;if(ln.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ln(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pi(e);if(t){var a=pi(this).constructor;n=ln(r,arguments,a)}else n=r.apply(this,arguments);return ui(this,n)}}hi(Kd,"HOOK_NAME","header");var Yd=function(e){An(n,Cc);var t=Zd(n);function n(){return mn(this,n),t.apply(this,arguments)}return gn(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}();hi(Yd,"HOOK_NAME","transfer");var Xd=i.TypeError,Vd=function(e){return function(t,n,r,a){J(n);var i=oe(t),o=R(i),s=Lt(i),c=e?s-1:0,l=e?-1:1;if(r<2)for(;;){if(c in o){a=o[c],c+=l;break}if(c+=l,e?c<0:s<=c)throw Xd("Reduce of empty array with no initial value")}for(;e?c>=0:s>c;c+=l)c in o&&(a=n(a,o[c],c,i));return a}},Jd={left:Vd(!1),right:Vd(!0)},Qd="process"==C(i.process),ep=Jd.left,tp=Js("reduce");Ve({target:"Array",proto:!0,forced:!tp||!Qd&&W>79&&W<83},{reduce:function(e){var t=arguments.length;return ep(this,e,t,t>1?arguments[1]:void 0)}});var np=Ws("Array").reduce,rp=Array.prototype,ap=function(e){var t=e.reduce;return e===rp||D(rp,e)&&t===rp.reduce?np:t};function ip(e,t){var n=oc(e);if(sl){var r=sl(e);t&&(r=fc(r).call(r,(function(t){return dl(e,t).enumerable}))),n.push.apply(n,r)}return n}function op(e){for(var t=1;t')).call(a,k,"");return{html:Vs(c="".concat(w)).call(c,_.html),sign:b+_.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 a,i,o,s,c=this.$testHeadEmpty(t)?Vs(a="~CTHD".concat(t,"~CTHD$~CTBD")).call(a,n,"~CTBD$"):"~CTBD".concat(n,"~CTBD$"),l=this.$engine.md5(c),u=c.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 a="":' align="'.concat(e[r],'">')})).replace(/\\\|/g,"|");return{html:Vs(i=Vs(o=Vs(s='
    \n ')).call(i,u,"
    "),sign:l}}},{key:"makeHtml",value:function(e,t){var n=this,r=e;return this.test(r,lp)&&(r=r.replace(this.RULE[lp].reg,(function(e,r){var a,i=n.getLineCount(e,r),o=Lc(a=qc(e).call(e).split(/\n/)).call(a,(function(e){var t;return qc(t=String(e)).call(t)})),s=n.$parseTable(o,t,i),c=s.html,l=s.sign;return n.getCacheWithSpace(n.pushCache(c,l,i),e)}))),this.test(r,cp)&&(r=r.replace(this.RULE[cp].reg,(function(e,r){var a,i=n.getLineCount(e,r),o=Lc(a=qc(e).call(e).split(/\n/)).call(a,(function(e){var t;return qc(t=String(e)).call(t)})),s=n.$parseTable(o,t,i),c=s.html,l=s.sign;return n.getCacheWithSpace(n.pushCache(c,l,i),e)}))),r}},{key:"test",value:function(e,t){return this.RULE[t].reg&&this.RULE[t].reg.test(e)}},{key:"rule",value:function(){return _f()}}]),n}();function fp(){return"object"===("undefined"==typeof window?"undefined":ci(window))}function dp(e){var t=function(){if("undefined"==typeof Reflect||!ln)return!1;if(ln.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ln(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pi(e);if(t){var a=pi(this).constructor;n=ln(r,arguments,a)}else n=r.apply(this,arguments);return ui(this,n)}}hi(up,"HOOK_NAME","table");var pp=function(e){An(n,eu);var t=dp(n);function n(e){var r;return mn(this,n),(r=t.call(this,{needCache:!0})).classicBr=il("classicBr")?ol():e.globalConfig.classicBr,r}return gn(n,[{key:"beforeMakeHtml",value:function(e){var t=this;return this.test(e)?e.replace(this.RULE.reg,(function(e,n,r){var a,i;if(0===r)return e;var o,s,c=null!==(a=null===(i=n.match(/\n/g))||void 0===i?void 0:i.length)&&void 0!==a?a:0,l="br".concat(c),u="";fp()?u=t.classicBr?Vs(o=''):Vs(s='

     

    '):u=t.classicBr?"":"
    ";var f=t.pushCache(u,l,c);return"\n\n".concat(f,"\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=cf(e,"g",!0),e}}]),n}();function hp(e){var t=function(){if("undefined"==typeof Reflect||!ln)return!1;if(ln.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ln(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pi(e);if(t){var a=pi(this).constructor;n=ln(r,arguments,a)}else n=r.apply(this,arguments);return ui(this,n)}}hi(pp,"HOOK_NAME","br");var gp=function(e){An(n,eu);var t=hp(n);function n(){return mn(this,n),t.call(this,{needCache:!0})}return gn(n,[{key:"beforeMakeHtml",value:function(e){var t=this;return e.replace(this.RULE.reg,(function(e,n){var r,a=(n.match(/\n/g)||[]).length+1,i="hr".concat(a);return el(e,t.pushCache(Vs(r='
    '),i))}))}},{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}();hi(gp,"HOOK_NAME","hr");var mp={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=fd(t,2),a=r[0],i=r[1];return a&&(n=' width="'.concat(a.replace(/[ #]*/g,""),'"')),i&&(n+=' height="'.concat(i.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 a=0;a')).call(d,Zl(r||""),"");return Vs(v="".concat(n)).call(v,s.videoWrapper?s.videoWrapper(a):S)}return t},_p=function(e){An(n,Cc);var t=vp(n);function n(e){var r,a=e.config,i=e.globalConfig;return mn(this,n),(r=t.call(this,null)).urlProcessor=i.urlProcessor,r.extendMedia={tag:["video","audio"],replacer:{video:function(e,t,n,r,o,s){return yp("video",e,t,n,r,o,s,a,i)},audio:function(e,t,n,r,o,s){return yp("audio",e,t,n,r,o,s,a,i)}}},r.RULE=r.rule(r.extendMedia),r}return gn(n,[{key:"toHtml",value:function(e,t,n,r,a,i,o){var s=void 0===r?"ref":"url",c="";if("ref"===s)return e;if("url"===s){var l,u,f,d,p,h,g,m,b=mp.processExtendAttributesInAlt(n),v=mp.processExtendStyleInAlt(n),y=v.extendStyles,_=v.extendClasses;y&&(y=' style="'.concat(y,'" ')),_&&(_=' class="'.concat(_,'" ')),c=a&&""!==qc(a).call(a)?' title="'.concat(Zl(a.replace(/["']/g,"")),'"'):"";var k,w="src",E=this.$engine.$cherry.options;if(E.callback&&E.callback.beforeImageMounted){var S=E.callback.beforeImageMounted(w,r);w=S.srcProp||w,k=S.src||r}var A=o?o.replace(/[{}]/g,"").replace(/([^=\s]+)=([^\s]+)/g,'$1="$2"').replace(/&/g,"&"):"";return Vs(l=Vs(u=Vs(f=Vs(d=Vs(p=Vs(h=Vs(g=Vs(m="".concat(t,"')).call(f,Zl(n||")}return e}},{key:"toMediaHtml",value:function(e,t,n,r,a,i,o,s,c){var l,u;if(!this.extendMedia.replacer[n])return e;for(var f=arguments.length,d=new Array(f>9?f-9:0),p=9;p-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,i})):(t.type="blank",e)}var Cp=gn((function e(){mn(this,e),this.index=0,this.space=0,this.type="",this.start=1,this.listStyle="",this.strs=[],this.children=[],this.lines=0})),Tp=function(e){An(n,eu);var t=Ep(n);function n(e){var r,a=e.config;return mn(this,n),(r=t.call(this,{needCache:!0})).config=a||{},r.tree=[],r.emptyLines=0,r.indentSpace=Math.max(r.config.indentSpace,2),r}return gn(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]=wp(wp({},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,a=0;ai.space;)o-=1;var s=i.space,c=this.tree[o].space;s".concat(c.strs.join("
    "),"

    ");c.lines+=o.getLineCount(c.strs.join("\n"));var f=c.children.length?o.renderTree(n):"";e.lines+=c.lines,s+=c.lines;return/<\/span>/.test(u)&&(l.class+=" check-list-item"),Vs(r=Vs(a=Vs(i="".concat(t,"")).call(a,u)).call(r,f,"")}),"");return void 0===e.parent&&(c["data-lines"]=0===e.index?s+this.emptyLines:s,c["data-sign"]=this.sign),t[0]&&"ol"===n&&(c.start=this.tree[t[0]].start),c.class="cherry-list__".concat(this.tree[t[0]].listStyle),Vs(r=Vs(a=Vs(i="<".concat(n)).call(i,Sp(c),">")).call(a,l,"")}},{key:"renderTree",value:function(e){var t=this,n=0,r=this.tree[e],a=r.children;return ap(a).call(a,(function(e,i,o){if(0===o)return e;if(t.tree[a[o]].type===t.tree[a[o-1]].type)return e;var s=t.renderSubTree(r,Kf(a).call(a,n,o),t.tree[a[o-1]].type);return n=o,e+s}),"")+(a.length?this.renderSubTree(r,Kf(a).call(a,n,a.length),this.tree[a[a.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 a=e.replace(/~0$/g,"").replace(/^\n+/,"");this.buildTree(function(e){return e.replace(/^((?:|[\t ]+)[*+-]\s+)\[(\s|x)\]/gm,(function(e,t,n){var r,a=/\s/.test(n)?'':'';return Vs(r="".concat(t)).call(r,a)}))}(a),t);var i=this.renderTree(0);return this.pushCache(i,this.sign,this.$getLineNum(e))}},{key:"$getLineNum",value:function(e){var t,n,r,a,i=null!==(t=null===(n=e.match(/^\n\n/))||void 0===n?void 0:n.length)&&void 0!==t?t:0;return null!==(r=null===(a=e.replace(/^\n+/,"").replace(/\n+$/,"\n").match(/\n/g))||void 0===a?void 0:a.length)&&void 0!==r?r:0+i}},{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 $p(e){var t=function(){if("undefined"==typeof Reflect||!ln)return!1;if(ln.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ln(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pi(e);if(t){var a=pi(this).constructor;n=ln(r,arguments,a)}else n=r.apply(this,arguments);return ui(this,n)}}function Rp(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}hi(Tp,"HOOK_NAME","list");var Op=function(e){An(n,eu);var t=$p(n);function n(){return mn(this,n),t.call(this,{needCache:!0})}return gn(n,[{key:"handleMatch",value:function(e,t){var n=this;return e.replace(this.RULE.reg,(function(e,r,a){for(var i,o,s=t(a),c=s.sign,l=s.html,u=n.signWithCache(l)||c,f=n.getLineCount(e,r),d=/^(([ \t]{0,3}([*+-]|\d+[.]|[a-z]\.|[I一二三四五六七八九十]+\.)[ \t]+)([^\r]+?)($|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.]|[a-z]\.|[I一二三四五六七八九十]+\.)[ \t]+)))/,p=Rp(r),h=l.split("\n"),g=/^[>\s]+/,m=/>/g,b=1,v=0,y=Vs(i=Vs(o='
    '),_=0;h[_];_++){if(0!==_){var k=Rp(h[_]);if(k<=p&&d.test(h[_]))break;p=k}var w=h[_].replace(g,(function(e){var t=e.match(m);return v=t&&t.length>b?t.length:b,""}));if(b===v&&0!==_&&(y+="
    "),b").call("
    ",v-b),b=v;y+=w}return y+=Ld("
    ").call("
    ",b),n.getCacheWithSpace(n.pushCache(y,u,f),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=cf(e,"g"),e}}]),n}();function Pp(e){var t=function(){if("undefined"==typeof Reflect||!ln)return!1;if(ln.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ln(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pi(e);if(t){var a=pi(this).constructor;n=ln(r,arguments,a)}else n=r.apply(this,arguments);return ui(this,n)}}hi(Op,"HOOK_NAME","blockquote");var Lp=function(e){An(n,Cc);var t=Pp(n);function n(e){var r,a=e.config,i=e.globalConfig;return mn(this,n),(r=t.call(this,{config:a})).urlProcessor=i.urlProcessor,r.enableShortLink=!!a.enableShortLink,r.shortLinkLength=a.shortLinkLength,r.target=a.target?'target="'.concat(a.target,'"'):a.openNewPage?'target="_blank"':"",r.rel=a.rel?'rel="'.concat(a.rel,'"'):"",r}return gn(n,[{key:"isLinkInHtmlAttribute",value:function(e,t,n){for(var r,a=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=a.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,a=/[^<]*<\/a>/g;null!==(r=a.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)&&(hf.test(e)||mf.test(e))?e.replace(this.RULE.reg,(function(e,t,r,a,i,o,s){var c,l,u;if(n.isLinkInHtmlAttribute(s,o,r.length+a.length)||n.isLinkInATag(s,o,r.length+a.length))return e;var f=r.toLowerCase(),d="",p="",h=!0;if(("<"!==t&&"<"!==t||">"!==i&&">"!==i)&&(d=t,p=i,h=!1),""===qc(a).call(a)||!h&&""===f&&!/www\./.test(a))return e;switch(f){case"javascript:":return e;case"mailto:":var g,m,b,v,y,_;return gf.test(a)?Vs(g=Vs(m=Vs(b=Vs(v=Vs(y="".concat(d,'")).call(m,Zl(a),"")).call(g,p):e;case"":var k,w,E,S,A,x,C,T,$,R;if(d===p||!h)return gf.test(a)?Vs(k=Vs(w=Vs(E=Vs(S=Vs(A="".concat(d,'")).call(w,Zl(a),"")).call(k,p):vf.test(a)?Vs(x=Vs(C="".concat(d)).call(C,n.renderLink("//".concat(a),a))).call(x,p):e;if(h)return gf.test(a)?Vs(T=Vs($=Vs(R='")).call(T,Zl(a),""):yf.test(a)||vf.test(a)?n.renderLink(a):e;default:return yf.test(a)?Vs(c=Vs(l="".concat(d)).call(l,n.renderLink(Vs(u="".concat(f)).call(u,a)))).call(c,p):e}return e})):e}},{key:"rule",value:function(){var e,t={begin:"(?)"};return t.reg=cf(t,"ig"),t}},{key:"renderLink",value:function(e,t){var n,r,a,i,o=t;if("string"!=typeof o)if(this.enableShortLink){var s,c=e.replace(/^https?:\/\//i,"");o=Vs(s="".concat(c.substring(0,this.shortLinkLength))).call(s,c.length>this.shortLinkLength?"...":"")}else o=e;var l=this.urlProcessor(e,"autolink");return Vs(n=Vs(r=Vs(a=Vs(i="')).call(n,Zl(o).replace(/_/g,"\\_"),"")}}]),n}();function Ip(){var e,t,n,r;fp()&&(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)}hi(Lp,"HOOK_NAME","autoLink");var Np=["&","<",">",'"',"'"],Mp=function(e){var t=e.replace(new RegExp(df,"g"),(function(e){return-1!==Il(Np).call(Np,e)?Kl(e):"\\".concat(e)}));return t},jp=Bc.trim,Dp=m("".charAt),Fp=i.parseFloat,Bp=i.Symbol,Hp=Bp&&Bp.iterator,zp=1/Fp(Ic+"-0")!=-1/0||Hp&&!o((function(){Fp(Object(Hp))}))?function(e){var t=jp(Wn(e)),n=Fp(t);return 0===n&&"-"==Dp(t,0)?-0:n}:Fp;Ve({global:!0,forced:parseFloat!=zp},{parseFloat:zp}),N.parseFloat;var Up=Of,Wp=be("match"),qp=i.TypeError,Gp=function(e){if(function(e){var t;return I(e)&&(void 0!==(t=e[Wp])?!!t:"RegExp"==C(e))}(e))throw qp("The method doesn't accept regular expressions");return e},Kp=be("match"),Zp=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[Kp]=!1,"/./"[e](t)}catch(e){}}return!1};Ce.f;var Yp=m("".startsWith),Xp=m("".slice),Vp=Math.min,Jp=Zp("startsWith");Ve({target:"String",proto:!0,forced:!Jp},{startsWith:function(e){var t=Wn(P(this));Gp(e);var n=Pt(Vp(arguments.length>1?arguments[1]:void 0,t.length)),r=Wn(e);return Yp?Yp(t,r,n):Xp(t,n,n+r.length)===r}});var Qp=Ws("String").startsWith,eh=String.prototype,th=function(e){var t=e.startsWith;return"string"==typeof e||e===eh||D(eh,e)&&t===eh.startsWith?Qp:t};function nh(e,t){if(!e||!e.tagName)return"";var n,r,a=document.createElement("div");return a.appendChild(e.cloneNode(!1)),n=a.innerHTML,t&&(r=Il(n).call(n,">")+1,n=n.substring(0,r)+e.innerHTML+n.substring(r)),a=null,n}function rh(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=document.createElement(e);(a.className=n,void 0!==r)&&ac(t=oc(r)).call(t,(function(e){var t=r[e];if(th(e).call(e,"data-")){var n=e.replace(/^data-/,"");a.dataset[n]=t}else a.setAttribute(e,t)}));return a}var ah=t((function(e,t){e.exports=function(){const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:a}=Object;let{freeze:i,seal:o,create:s}=Object,{apply:c,construct:l}="undefined"!=typeof Reflect&&Reflect;i||(i=function(e){return e}),o||(o=function(e){return e}),c||(c=function(e,t,n){return e.apply(t,n)}),l||(l=function(e,t){return new e(...t)});const u=k(Array.prototype.forEach),f=k(Array.prototype.pop),d=k(Array.prototype.push),p=k(String.prototype.toLowerCase),h=k(String.prototype.toString),g=k(String.prototype.match),m=k(String.prototype.replace),b=k(String.prototype.indexOf),v=k(String.prototype.trim),y=k(RegExp.prototype.test),_=w(TypeError);function k(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a2&&void 0!==arguments[2]?arguments[2]:p;t&&t(e,null);let i=r.length;for(;i--;){let t=r[i];if("string"==typeof t){const e=a(t);e!==t&&(n(r)||(r[i]=e),t=e)}e[t]=!0}return e}function S(e){for(let t=0;t/gm),B=o(/\${[\w\W]*}/gm),H=o(/^data-[\-\w.\u00B7-\uFFFF]/),z=o(/^aria-[\-\w]+$/),U=o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),W=o(/^(?:\w+script|data):/i),q=o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G=o(/^html$/i);var K=Object.freeze({__proto__:null,MUSTACHE_EXPR:D,ERB_EXPR:F,TMPLIT_EXPR:B,DATA_ATTR:H,ARIA_ATTR:z,IS_ALLOWED_URI:U,IS_SCRIPT_OR_DATA:W,ATTR_WHITESPACE:q,DOCTYPE_NAME:G});const Z=function(){return"undefined"==typeof window?null:window},Y=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function X(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z();const n=e=>X(e);if(n.version="3.0.8",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;let{document:r}=t;const a=r,o=a.currentScript,{DocumentFragment:c,HTMLTemplateElement:l,Node:k,Element:w,NodeFilter:S,NamedNodeMap:D=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:F,DOMParser:B,trustedTypes:H}=t,z=w.prototype,W=x(z,"cloneNode"),q=x(z,"nextSibling"),V=x(z,"childNodes"),J=x(z,"parentNode");if("function"==typeof l){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let Q,ee="";const{implementation:te,createNodeIterator:ne,createDocumentFragment:re,getElementsByTagName:ae}=r,{importNode:ie}=a;let oe={};n.isSupported="function"==typeof e&&"function"==typeof J&&te&&void 0!==te.createHTMLDocument;const{MUSTACHE_EXPR:se,ERB_EXPR:ce,TMPLIT_EXPR:le,DATA_ATTR:ue,ARIA_ATTR:fe,IS_SCRIPT_OR_DATA:de,ATTR_WHITESPACE:pe}=K;let{IS_ALLOWED_URI:he}=K,ge=null;const me=E({},[...C,...T,...$,...O,...L]);let be=null;const ve=E({},[...I,...N,...M,...j]);let ye=Object.seal(s(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}})),_e=null,ke=null,we=!0,Ee=!0,Se=!1,Ae=!0,xe=!1,Ce=!1,Te=!1,$e=!1,Re=!1,Oe=!1,Pe=!1,Le=!0,Ie=!1;const Ne="user-content-";let Me=!0,je=!1,De={},Fe=null;const Be=E({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let He=null;const ze=E({},["audio","video","img","source","image","track"]);let Ue=null;const We=E({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qe="http://www.w3.org/1998/Math/MathML",Ge="http://www.w3.org/2000/svg",Ke="http://www.w3.org/1999/xhtml";let Ze=Ke,Ye=!1,Xe=null;const Ve=E({},[qe,Ge,Ke],h);let Je=null;const Qe=["application/xhtml+xml","text/html"],et="text/html";let tt=null,nt=null;const rt=r.createElement("form"),at=function(e){return e instanceof RegExp||e instanceof Function},it=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!nt||nt!==e){if(e&&"object"==typeof e||(e={}),e=A(e),Je=-1===Qe.indexOf(e.PARSER_MEDIA_TYPE)?et:e.PARSER_MEDIA_TYPE,tt="application/xhtml+xml"===Je?h:p,ge="ALLOWED_TAGS"in e?E({},e.ALLOWED_TAGS,tt):me,be="ALLOWED_ATTR"in e?E({},e.ALLOWED_ATTR,tt):ve,Xe="ALLOWED_NAMESPACES"in e?E({},e.ALLOWED_NAMESPACES,h):Ve,Ue="ADD_URI_SAFE_ATTR"in e?E(A(We),e.ADD_URI_SAFE_ATTR,tt):We,He="ADD_DATA_URI_TAGS"in e?E(A(ze),e.ADD_DATA_URI_TAGS,tt):ze,Fe="FORBID_CONTENTS"in e?E({},e.FORBID_CONTENTS,tt):Be,_e="FORBID_TAGS"in e?E({},e.FORBID_TAGS,tt):{},ke="FORBID_ATTR"in e?E({},e.FORBID_ATTR,tt):{},De="USE_PROFILES"in e&&e.USE_PROFILES,we=!1!==e.ALLOW_ARIA_ATTR,Ee=!1!==e.ALLOW_DATA_ATTR,Se=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ae=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,xe=e.SAFE_FOR_TEMPLATES||!1,Ce=e.WHOLE_DOCUMENT||!1,Re=e.RETURN_DOM||!1,Oe=e.RETURN_DOM_FRAGMENT||!1,Pe=e.RETURN_TRUSTED_TYPE||!1,$e=e.FORCE_BODY||!1,Le=!1!==e.SANITIZE_DOM,Ie=e.SANITIZE_NAMED_PROPS||!1,Me=!1!==e.KEEP_CONTENT,je=e.IN_PLACE||!1,he=e.ALLOWED_URI_REGEXP||U,Ze=e.NAMESPACE||Ke,ye=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&at(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ye.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&at(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ye.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ye.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),xe&&(Ee=!1),Oe&&(Re=!0),De&&(ge=E({},L),be=[],!0===De.html&&(E(ge,C),E(be,I)),!0===De.svg&&(E(ge,T),E(be,N),E(be,j)),!0===De.svgFilters&&(E(ge,$),E(be,N),E(be,j)),!0===De.mathMl&&(E(ge,O),E(be,M),E(be,j))),e.ADD_TAGS&&(ge===me&&(ge=A(ge)),E(ge,e.ADD_TAGS,tt)),e.ADD_ATTR&&(be===ve&&(be=A(be)),E(be,e.ADD_ATTR,tt)),e.ADD_URI_SAFE_ATTR&&E(Ue,e.ADD_URI_SAFE_ATTR,tt),e.FORBID_CONTENTS&&(Fe===Be&&(Fe=A(Fe)),E(Fe,e.FORBID_CONTENTS,tt)),Me&&(ge["#text"]=!0),Ce&&E(ge,["html","head","body"]),ge.table&&(E(ge,["tbody"]),delete _e.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw _('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw _('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Q=e.TRUSTED_TYPES_POLICY,ee=Q.createHTML("")}else void 0===Q&&(Q=Y(H,o)),null!==Q&&"string"==typeof ee&&(ee=Q.createHTML(""));i&&i(e),nt=e}},ot=E({},["mi","mo","mn","ms","mtext"]),st=E({},["foreignobject","desc","title","annotation-xml"]),ct=E({},["title","style","font","a","script"]),lt=E({},[...T,...$,...R]),ut=E({},[...O,...P]),ft=function(e){let t=J(e);t&&t.tagName||(t={namespaceURI:Ze,tagName:"template"});const n=p(e.tagName),r=p(t.tagName);return!!Xe[e.namespaceURI]&&(e.namespaceURI===Ge?t.namespaceURI===Ke?"svg"===n:t.namespaceURI===qe?"svg"===n&&("annotation-xml"===r||ot[r]):Boolean(lt[n]):e.namespaceURI===qe?t.namespaceURI===Ke?"math"===n:t.namespaceURI===Ge?"math"===n&&st[r]:Boolean(ut[n]):e.namespaceURI===Ke?!(t.namespaceURI===Ge&&!st[r])&&!(t.namespaceURI===qe&&!ot[r])&&!ut[n]&&(ct[n]||!lt[n]):!("application/xhtml+xml"!==Je||!Xe[e.namespaceURI]))},dt=function(e){d(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},pt=function(e,t){try{d(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){d(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!be[e])if(Re||Oe)try{dt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ht=function(e){let t=null,n=null;if($e)e=""+e;else{const t=g(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Je&&Ze===Ke&&(e=''+e+"");const a=Q?Q.createHTML(e):e;if(Ze===Ke)try{t=(new B).parseFromString(a,Je)}catch(e){}if(!t||!t.documentElement){t=te.createDocument(Ze,"template",null);try{t.documentElement.innerHTML=Ye?ee:a}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),Ze===Ke?ae.call(t,Ce?"html":"body")[0]:Ce?t.documentElement:i},gt=function(e){return ne.call(e.ownerDocument||e,e,S.SHOW_ELEMENT|S.SHOW_COMMENT|S.SHOW_TEXT,null)},mt=function(e){return e instanceof F&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof D)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},bt=function(e){return"function"==typeof k&&e instanceof k},vt=function(e,t,r){oe[e]&&u(oe[e],(e=>{e.call(n,t,r,nt)}))},yt=function(e){let t=null;if(vt("beforeSanitizeElements",e,null),mt(e))return dt(e),!0;const r=tt(e.nodeName);if(vt("uponSanitizeElement",e,{tagName:r,allowedTags:ge}),e.hasChildNodes()&&!bt(e.firstElementChild)&&y(/<[/\w]/g,e.innerHTML)&&y(/<[/\w]/g,e.textContent))return dt(e),!0;if(!ge[r]||_e[r]){if(!_e[r]&&kt(r)){if(ye.tagNameCheck instanceof RegExp&&y(ye.tagNameCheck,r))return!1;if(ye.tagNameCheck instanceof Function&&ye.tagNameCheck(r))return!1}if(Me&&!Fe[r]){const t=J(e)||e.parentNode,n=V(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r)t.insertBefore(W(n[r],!0),q(e))}return dt(e),!0}return e instanceof w&&!ft(e)?(dt(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!y(/<\/no(script|embed|frames)/i,e.innerHTML)?(xe&&3===e.nodeType&&(t=e.textContent,u([se,ce,le],(e=>{t=m(t,e," ")})),e.textContent!==t&&(d(n.removed,{element:e.cloneNode()}),e.textContent=t)),vt("afterSanitizeElements",e,null),!1):(dt(e),!0)},_t=function(e,t,n){if(Le&&("id"===t||"name"===t)&&(n in r||n in rt))return!1;if(Ee&&!ke[t]&&y(ue,t));else if(we&&y(fe,t));else if(!be[t]||ke[t]){if(!(kt(e)&&(ye.tagNameCheck instanceof RegExp&&y(ye.tagNameCheck,e)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(e))&&(ye.attributeNameCheck instanceof RegExp&&y(ye.attributeNameCheck,t)||ye.attributeNameCheck instanceof Function&&ye.attributeNameCheck(t))||"is"===t&&ye.allowCustomizedBuiltInElements&&(ye.tagNameCheck instanceof RegExp&&y(ye.tagNameCheck,n)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(n))))return!1}else if(Ue[t]);else if(y(he,m(n,pe,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==b(n,"data:")||!He[e])if(Se&&!y(de,m(n,pe,"")));else if(n)return!1;return!0},kt=function(e){return e.indexOf("-")>0},wt=function(e){vt("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:be};let a=t.length;for(;a--;){const i=t[a],{name:o,namespaceURI:s,value:c}=i,l=tt(o);let d="value"===o?c:v(c);if(r.attrName=l,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,vt("uponSanitizeAttribute",e,r),d=r.attrValue,r.forceKeepAttr)continue;if(pt(o,e),!r.keepAttr)continue;if(!Ae&&y(/\/>/i,d)){pt(o,e);continue}xe&&u([se,ce,le],(e=>{d=m(d,e," ")}));const p=tt(e.nodeName);if(_t(p,l,d)){if(!Ie||"id"!==l&&"name"!==l||(pt(o,e),d=Ne+d),Q&&"object"==typeof H&&"function"==typeof H.getAttributeType)if(s);else switch(H.getAttributeType(p,l)){case"TrustedHTML":d=Q.createHTML(d);break;case"TrustedScriptURL":d=Q.createScriptURL(d)}try{s?e.setAttributeNS(s,o,d):e.setAttribute(o,d),f(n.removed)}catch(e){}}}vt("afterSanitizeAttributes",e,null)},Et=function e(t){let n=null;const r=gt(t);for(vt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)vt("uponSanitizeShadowNode",n,null),yt(n)||(n.content instanceof c&&e(n.content),wt(n));vt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,o=null,s=null;if(Ye=!e,Ye&&(e="\x3c!--\x3e"),"string"!=typeof e&&!bt(e)){if("function"!=typeof e.toString)throw _("toString is not a function");if("string"!=typeof(e=e.toString()))throw _("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Te||it(t),n.removed=[],"string"==typeof e&&(je=!1),je){if(e.nodeName){const t=tt(e.nodeName);if(!ge[t]||_e[t])throw _("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof k)r=ht("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),1===i.nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!Re&&!xe&&!Ce&&-1===e.indexOf("<"))return Q&&Pe?Q.createHTML(e):e;if(r=ht(e),!r)return Re?null:Pe?ee:""}r&&$e&&dt(r.firstChild);const l=gt(je?e:r);for(;o=l.nextNode();)yt(o)||(o.content instanceof c&&Et(o.content),wt(o));if(je)return e;if(Re){if(Oe)for(s=re.call(r.ownerDocument);r.firstChild;)s.appendChild(r.firstChild);else s=r;return(be.shadowroot||be.shadowrootmode)&&(s=ie.call(a,s,!0)),s}let f=Ce?r.outerHTML:r.innerHTML;return Ce&&ge["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&y(G,r.ownerDocument.doctype.name)&&(f="\n"+f),xe&&u([se,ce,le],(e=>{f=m(f,e," ")})),Q&&Pe?Q.createHTML(f):f},n.setConfig=function(){it(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Te=!0},n.clearConfig=function(){nt=null,Te=!1},n.isValidAttribute=function(e,t,n){nt||it({});const r=tt(e),a=tt(t);return _t(r,a,n)},n.addHook=function(e,t){"function"==typeof t&&(oe[e]=oe[e]||[],d(oe[e],t))},n.removeHook=function(e){if(oe[e])return f(oe[e])},n.removeHooks=function(e){oe[e]&&(oe[e]=[])},n.removeAllHooks=function(){oe={}},n}var V=X();return V}()})),ih=ah(window);function oh(e){var t=function(){if("undefined"==typeof Reflect||!ln)return!1;if(ln.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ln(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pi(e);if(t){var a=pi(this).constructor;n=ln(r,arguments,a)}else n=r.apply(this,arguments);return ui(this,n)}}var sh=function(e){An(n,eu);var t=oh(n);function n(e){var r,a,i=e.config;return mn(this,n),hi(li(a=t.call(this,{needCache:!0})),"engine","MathJax"),hi(li(a),"katex",void 0),hi(li(a),"MathJax",void 0),a.engine=fp()?null!==(r=i.engine)&&void 0!==r?r:"MathJax":"node",a}return gn(n,[{key:"toHtml",value:function(e,t,n,r){var a,i,o;Zs(Ip).call(Ip,this)("engine");var s=e.replace(/^[ \f\r\t\v]*/,"").replace(/\s*$/,""),c=t.replace(/^[ \f\r\t\v]*\n/,""),l=this.$engine.md5(e),u=this.getLineCount(s,c);/\n/.test(t)||(u-=1),/\n\s*$/.test(e)||(u-=1),u=u>0?u:0;var f=Vs(a=Vs(i='
    $$')).call(a,Mp(r),"$$
    ");if("katex"===this.engine){var d,p,h=this.katex.renderToString(r,{throwOnError:!1,displayMode:!0});f=Vs(d=Vs(p='
    ')).call(d,h,"
    ")}if(null!==(o=this.MathJax)&&void 0!==o&&o.tex2svg){var g,m,b=nh(this.MathJax.tex2svg(r),!0);f=Vs(g=Vs(m='
    ')).call(g,b,"
    ")}return f=ih.sanitize(f),n+this.getCacheWithSpace(this.pushCache(f,l,u),e)}},{key:"beforeMakeHtml",value:function(e){var t,n;return lf()?e.replace(this.RULE.reg,Zs(n=this.toHtml).call(n,this)):Xf(e,this.RULE.reg,Zs(t=this.toHtml).call(t,this),!0,1)}},{key:"makeHtml",value:function(e){return e}},{key:"rule",value:function(){var e={begin:lf()?"(\\s*)((?$')).call(r,Mp(n),"$
    ");if("katex"===this.engine&&null!==(i=this.katex)&&void 0!==i&&i.renderToString){var f,d,p=this.katex.renderToString(n,{throwOnError:!1});u=Vs(f=Vs(d="".concat(t,'')).call(f,p,"")}if(null!==(o=this.MathJax)&&void 0!==o&&o.tex2svg){var h,g,m=nh(this.MathJax.tex2svg(n,{em:12,ex:6,display:!1}),!0);u=Vs(h=Vs(g="".concat(t,'')).call(h,m,"")}return u=ih.sanitize(u),this.pushCache(u,eu.IN_PARAGRAPH_CACHE_KEY_PREFIX+l)}},{key:"beforeMakeHtml",value:function(e){var t=this,n=e;return n=n.replace(_f(!0),(function(e){var n;return Lc(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)?lf()?e.replace(this.RULE.reg,Zs(n=this.toHtml).call(n,this)):Xf(e,this.RULE.reg,Zs(t=this.toHtml).call(t,this),!0,1):e}},{key:"makeHtml",value:function(e){return e}},{key:"rule",value:function(){var e={begin:lf()?"((?1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,o=void 0===i?n:Rt(i,n);o>a;)t[a++]=e;return t}});var uh=Ws("Array").fill,fh=Array.prototype,dh=function(e){var t=e.fill;return e===fh||D(fh,e)&&t===fh.fill?uh:t};function ph(e){var t=function(){if("undefined"==typeof Reflect||!ln)return!1;if(ln.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ln(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pi(e);if(t){var a=pi(this).constructor;n=ln(r,arguments,a)}else n=r.apply(this,arguments);return ui(this,n)}}function hh(e){return e}var gh={tocStyle:"plain",tocNodeClass:"toc-li",tocContainerClass:"toc",tocTitleClass:"toc-title",linkProcessor:hh},mh='

     

    ',bh=function(e){An(n,eu);var t=ph(n);function n(e){var r,a;e.externals;var i=e.config;return mn(this,n),hi(li(a=t.call(this,{needCache:!0})),"tocStyle","nested"),hi(li(a),"tocNodeClass","toc-li"),hi(li(a),"tocContainerClass","toc"),hi(li(a),"tocTitleClass","toc-title"),hi(li(a),"linkProcessor",hh),hi(li(a),"baseLevel",1),hi(li(a),"isFirstTocToken",!0),hi(li(a),"allowMultiToc",!1),ac(r=oc(gh)).call(r,(function(e){a[e]=i[e]||gh[e]})),a}return gn(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 a;if(!t.allowMultiToc&&!t.isFirstTocToken)return Vs(a="\n".concat(n)).call(a,mh);var i=t.pushCache(e);return t.isFirstTocToken=!1,el(e,i)}))),this.test(n,"standard")&&(n=n.replace(this.RULE.standard.reg,(function(e,n,r){var a;return t.allowMultiToc||t.isFirstTocToken?(t.isFirstTocToken=!1,el(e,t.pushCache(e))):Vs(a="\n".concat(n)).call(a,mh)}))),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],c="";t&&(c=this.$makeLevel(e.level));var l=this.linkProcessor("#".concat(e.id).replace(/safe_/g,""));return Vs(n=Vs(r=Vs(a=Vs(i=Vs(o='
  • ')).call(o,c,'')).call(r,e.text,"")).call(n,s?"
  • ":"")}},{key:"$makePlainToc",value:function(e){var t=this;return Lc(e).call(e,(function(e){return t.$makeTocItem(e,!0)})).join("")}},{key:"$makeNestedToc",value:function(e){var t,n,r=this,a=0,i=dh(t=new Array(7)).call(t,!1),o=dh(n=new Array(7)).call(n,!1),s="";ac(e).call(e,(function(e){var t=e.level;if(0===a){for(var n=t;n>=r.baseLevel;n--)s+="
      ",o[n]=!0;return s+=r.$makeTocItem(e,!1,!1),i[t]=!0,void(a=t)}if(t=t;c--)i[c]&&(s+="",i[c]=!1),o[c]&&c>t&&(s+="
    ",o[c]=!1);i[t]=!0,s+=r.$makeTocItem(e,!1,!1),a=t}else if(t===a)i[a]&&(s+=""),s+=r.$makeTocItem(e,!1,!1),i[t]=!0,o[t]=!0;else{for(var l=a+1;l<=t;l++)s+="
      ",o[l]=!0;i[t]=!0,s+=r.$makeTocItem(e,!1,!1),a=t}}));for(var c=a;c>=this.baseLevel;c--)i[c]&&(s+="",i[c]=!1),o[c]&&(s+="
    ",o[c]=!1);return s}},{key:"$makeToc",value:function(e,t,n){var r,a,i,o=tl(n,1),s=Vs(r=Vs(a=Vs(i='');return s+='

    目录

    '),e.length<=0?"":(this.baseLevel=Math.min.apply(Math,Uf(Lc(e).call(e,(function(e){return e.level})))),"nested"===this.tocStyle?s+=this.$makeNestedToc(e):s+=this.$makePlainToc(e),s+="
    ")}},{key:"afterMakeHtml",value:function(e){var t=this,r=Bd(pi(n.prototype),"afterMakeHtml",this).call(this,e),a=[],i="";return r.replace(/]*? id="([^"]+?)"[^>]*?>(?:|)(.+?)<\/h\1>/g,(function(e,t,n,r){var o,s=r.replace(/~fn#[0-9]+#/g,"");a.push({level:+t,id:n,text:s}),i+=Vs(o="".concat(t)).call(o,n)})),i=this.$engine.md5(i),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(a,i,n)}))).replace(this.RULE.standard.reg,(function(e,n){return t.$makeToc(a,i,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 vh(e){var t=function(){if("undefined"==typeof Reflect||!ln)return!1;if(ln.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ln(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pi(e);if(t){var a=pi(this).constructor;n=ln(r,arguments,a)}else n=r.apply(this,arguments);return ui(this,n)}}hi(bh,"HOOK_NAME","toc");var yh=function(e){An(n,eu);var t=vh(n);function n(e){var r;return e.externals,e.config,mn(this,n),(r=t.call(this)).footnoteCache={},r.footnoteMap={},r.footnote=[],r}return gn(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,a,i,o,s;if(this.footnoteMap[e])return this.footnoteMap[e];var c=this.footnote.length+1,l={};l.fn=Vs(n=Vs(r=Vs(a='[')).call(n,c,"]"),l.fnref=Vs(i=Vs(o=Vs(s='[')).call(i,c,"]"),l.num=c,l.note=qc(t).call(t),this.footnote.push(l);var u="\0~fn#".concat(c-1,"#\0");return this.footnoteMap[e]=u,u}},{key:"getFootNote",value:function(){return this.footnote}},{key:"formatFootNote",value:function(){var e,t=this.getFootNote();if(t.length<=0)return"";var n=Lc(t).call(t,(function(e){var t;return Vs(t='
    \n'.concat(e.fnref)).call(t,e.note,"\n
    ")})).join(""),r=this.$engine.md5(n);return n=Vs(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,a){return t.pushFootnoteCache(r,a),(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=cf(e,"g",!0),e}}]),n}();function _h(e){var t=function(){if("undefined"==typeof Reflect||!ln)return!1;if(ln.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ln(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pi(e);if(t){var a=pi(this).constructor;n=ln(r,arguments,a)}else n=r.apply(this,arguments);return ui(this,n)}}hi(yh,"HOOK_NAME","footnote");var kh=function(e){An(n,eu);var t=_h(n);function n(e){var r;return e.externals,e.config,mn(this,n),(r=t.call(this)).commentCache={},r}return gn(n,[{key:"$cleanCache",value:function(){this.commentCache={}}},{key:"pushCommentReferenceCache",value:function(e,t){var n,r=Gf(t.split(/[ ]+/g)),a=r[0],i=Kf(r).call(r,1),o=Cd.set(a);this.commentCache["".concat(e).toLowerCase()]=Vs(n=[o]).call(n,Uf(i)).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,a){var i;return t.pushCommentReferenceCache(r,a),(null!==(i=e.match(/\n/g))&&void 0!==i?i:[]).join("")}));n=n.replace(/(\[[^\]\n]+?\])?(?:\[([^\]\n]+?)\])/g,(function(e,n,r){var a,i,o=t.getCommentReferenceCache(r);return o?n?Vs(i="".concat(n,"(")).call(i,o,")"):Vs(a="[".concat(r,"](")).call(a,o,")"):e})),this.$cleanCache()}return n}},{key:"makeHtml",value:function(e,t){return e}},{key:"afterMakeHtml",value:function(e){return Cd.restoreAll(e)}},{key:"rule",value:function(){var e={begin:"(^|\\n)[ \t]*",content:["\\[([^^][^\\]]*?)\\]:\\h*","([^\\n]+?)"].join(""),end:"(?=$|\\n)"};return e.reg=cf(e,"g",!0),e}}]),n}();hi(kh,"HOOK_NAME","commentReference");var wh=wr.some,Eh=Js("some");Ve({target:"Array",proto:!0,forced:!Eh},{some:function(e){return wh(this,e,arguments.length>1?arguments[1]:void 0)}});var Sh=Ws("Array").some,Ah=Array.prototype,xh=function(e){var t=e.some;return e===Ah||D(Ah,e)&&t===Ah.some?Sh:t};function Ch(e){var t=function(){if("undefined"==typeof Reflect||!ln)return!1;if(ln.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ln(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pi(e);if(t){var a=pi(this).constructor;n=ln(r,arguments,a)}else n=r.apply(this,arguments);return ui(this,n)}}var Th=["href","src"];ih.addHook("afterSanitizeAttributes",(function(e){ac(Th).call(Th,(function(t){if(e.hasAttribute(t)){var n=e.getAttribute(t);e.setAttribute(t,n.replace(/\\/g,"%5c"))}}))}));var $h=function(e){An(n,eu);var t=Ch(n);function n(){return mn(this,n),t.call(this,{needCache:!0})}return gn(n,[{key:"isAutoLinkTag",value:function(e){var t=[/^<([a-z][a-z0-9+.-]{1,31}:\/\/[^<> `]+)>$/i,/^<(mailto:[^<> `]+)>$/i,/^<([^()<>[\]:'@\\,"\s`]+@[^()<>[\]:'@\\,"\s`.]+\.[^()<>[\]:'@\\,"\s`]+)>$/i];return xh(t).call(t,(function(t){return t.test(e)}))}},{key:"isHtmlComment",value:function(e){return/^$/.test(e)}},{key:"beforeMakeHtml",value:function(e,t){var n=this;this.$engine.htmlWhiteListAppend?(this.htmlWhiteListAppend=new RegExp("^(".concat(this.$engine.htmlWhiteListAppend,")( |$|/)"),"i"),this.htmlWhiteList=this.$engine.htmlWhiteListAppend.split("|")):(this.htmlWhiteListAppend=!1,this.htmlWhiteList=[]);var r=e;return r=function(e){if("string"!=typeof e)return"";var t=e.replace(/&(\w+);?/g,(function(e,t){return-1===Il(e).call(e,";")||-1===Il(Hl).call(Hl,t.toLowerCase())?e.replace(/&/g,"&"):e}));return t=t.replace(/&#(?!x)(\d*);?/gi,(function(e,t){return zl(t)||-1===Il(e).call(e,";")||t.lenth>7||!Ul(t)?e.replace(/&/g,"&"):e})),t=t.replace(/&#x([0-9a-f]*);?/gi,(function(e,t){if(zl(t))return e.replace(/&/g,"&");var n="0x".concat(t),r=Qc(n,16);return isNaN(r)||-1===Il(e).call(e,";")||t.lenth>6||!Ul(n)?e.replace(/&/g,"&"):e})),t}(r=Yl(r)),r=(r=(r=r.replace(/<[/]?(.*?)>/g,(function(e,t){return Gl.test(t)||n.isAutoLinkTag(e)||n.isHtmlComment(e)||!1!==n.htmlWhiteListAppend&&n.htmlWhiteListAppend.test(t)?e.replace(//g,"$#62;"):e.replace(//g,">")}))).replace(/<(?=\/?(\w|\n|$))/g,"<")).replace(/\$#60;/g,"<").replace(/\$#62;/g,">")}},{key:"makeHtml",value:function(e,t){return e}},{key:"afterMakeHtml",value:function(e){var t=e,n={ALLOW_UNKNOWN_PROTOCOLS:!0,ADD_ATTR:["target"]};if(!1!==this.htmlWhiteListAppend){var r;if(n.ADD_TAGS=this.htmlWhiteList,(this.htmlWhiteListAppend.test("style")||this.htmlWhiteListAppend.test("ALL"))&&(t=t.replace(/| [^>]*>).*?<\/style>/gi,(function(e){return e.replace(/
    /gi,"")}))),this.htmlWhiteListAppend.test("iframe")||this.htmlWhiteListAppend.test("ALL"))n.ADD_ATTR=Vs(r=n.ADD_ATTR).call(r,["align","frameborder","height","longdesc","marginheight","marginwidth","name","sandbox","scrolling","seamless","src","srcdoc","width"]),n.SANITIZE_DOM=!1,t=t.replace(/| [^>]*>).*?<\/iframe>/gi,(function(e){return e.replace(/
    /gi,"").replace(/\n/g,"")}));if(this.htmlWhiteListAppend.test("script")||this.htmlWhiteListAppend.test("ALL"))return t=t.replace(/| [^>]*>).*?<\/script>/gi,(function(e){return e.replace(/
    /gi,"")})),t}return fp()||(n.FORBID_ATTR=["data-sign","data-lines"]),ih.sanitize(t,n)}}]),n}();hi($h,"HOOK_NAME","htmlBlock");var Rh={"+1":"1f44d","-1":"1f44e",100:"1f4af",1234:"1f522","1st_place_medal":"1f947","2nd_place_medal":"1f948","3rd_place_medal":"1f949","8ball":"1f3b1",a:"1f170",ab:"1f18e",abacus:"1f9ee",abc:"1f524",abcd:"1f521",accept:"1f251",adhesive_bandage:"1fa79",adult:"1f9d1",aerial_tramway:"1f6a1",afghanistan:"1f1e6-1f1eb",airplane:"2708",aland_islands:"1f1e6-1f1fd",alarm_clock:"23f0",albania:"1f1e6-1f1f1",alembic:"2697",algeria:"1f1e9-1f1ff",alien:"1f47d",ambulance:"1f691",american_samoa:"1f1e6-1f1f8",amphora:"1f3fa",anchor:"2693",andorra:"1f1e6-1f1e9",angel:"1f47c",anger:"1f4a2",angola:"1f1e6-1f1f4",angry:"1f620",anguilla:"1f1e6-1f1ee",anguished:"1f627",ant:"1f41c",antarctica:"1f1e6-1f1f6",antigua_barbuda:"1f1e6-1f1ec",apple:"1f34e",aquarius:"2652",argentina:"1f1e6-1f1f7",aries:"2648",armenia:"1f1e6-1f1f2",arrow_backward:"25c0",arrow_double_down:"23ec",arrow_double_up:"23eb",arrow_down:"2b07",arrow_down_small:"1f53d",arrow_forward:"25b6",arrow_heading_down:"2935",arrow_heading_up:"2934",arrow_left:"2b05",arrow_lower_left:"2199",arrow_lower_right:"2198",arrow_right:"27a1",arrow_right_hook:"21aa",arrow_up:"2b06",arrow_up_down:"2195",arrow_up_small:"1f53c",arrow_upper_left:"2196",arrow_upper_right:"2197",arrows_clockwise:"1f503",arrows_counterclockwise:"1f504",art:"1f3a8",articulated_lorry:"1f69b",artificial_satellite:"1f6f0",artist:"1f9d1-1f3a8",aruba:"1f1e6-1f1fc",ascension_island:"1f1e6-1f1e8",asterisk:"002a-20e3",astonished:"1f632",astronaut:"1f9d1-1f680",athletic_shoe:"1f45f",atm:"1f3e7",atom_symbol:"269b",australia:"1f1e6-1f1fa",austria:"1f1e6-1f1f9",auto_rickshaw:"1f6fa",avocado:"1f951",axe:"1fa93",azerbaijan:"1f1e6-1f1ff",b:"1f171",baby:"1f476",baby_bottle:"1f37c",baby_chick:"1f424",baby_symbol:"1f6bc",back:"1f519",bacon:"1f953",badger:"1f9a1",badminton:"1f3f8",bagel:"1f96f",baggage_claim:"1f6c4",baguette_bread:"1f956",bahamas:"1f1e7-1f1f8",bahrain:"1f1e7-1f1ed",balance_scale:"2696",bald_man:"1f468-1f9b2",bald_woman:"1f469-1f9b2",ballet_shoes:"1fa70",balloon:"1f388",ballot_box:"1f5f3",ballot_box_with_check:"2611",bamboo:"1f38d",banana:"1f34c",bangbang:"203c",bangladesh:"1f1e7-1f1e9",banjo:"1fa95",bank:"1f3e6",bar_chart:"1f4ca",barbados:"1f1e7-1f1e7",barber:"1f488",baseball:"26be",basket:"1f9fa",basketball:"1f3c0",basketball_man:"26f9-2642",basketball_woman:"26f9-2640",bat:"1f987",bath:"1f6c0",bathtub:"1f6c1",battery:"1f50b",beach_umbrella:"1f3d6",bear:"1f43b",bearded_person:"1f9d4",bed:"1f6cf",bee:"1f41d",beer:"1f37a",beers:"1f37b",beetle:"1f41e",beginner:"1f530",belarus:"1f1e7-1f1fe",belgium:"1f1e7-1f1ea",belize:"1f1e7-1f1ff",bell:"1f514",bellhop_bell:"1f6ce",benin:"1f1e7-1f1ef",bento:"1f371",bermuda:"1f1e7-1f1f2",beverage_box:"1f9c3",bhutan:"1f1e7-1f1f9",bicyclist:"1f6b4",bike:"1f6b2",biking_man:"1f6b4-2642",biking_woman:"1f6b4-2640",bikini:"1f459",billed_cap:"1f9e2",biohazard:"2623",bird:"1f426",birthday:"1f382",black_circle:"26ab",black_flag:"1f3f4",black_heart:"1f5a4",black_joker:"1f0cf",black_large_square:"2b1b",black_medium_small_square:"25fe",black_medium_square:"25fc",black_nib:"2712",black_small_square:"25aa",black_square_button:"1f532",blond_haired_man:"1f471-2642",blond_haired_person:"1f471",blond_haired_woman:"1f471-2640",blonde_woman:"1f471-2640",blossom:"1f33c",blowfish:"1f421",blue_book:"1f4d8",blue_car:"1f699",blue_heart:"1f499",blue_square:"1f7e6",blush:"1f60a",boar:"1f417",boat:"26f5",bolivia:"1f1e7-1f1f4",bomb:"1f4a3",bone:"1f9b4",book:"1f4d6",bookmark:"1f516",bookmark_tabs:"1f4d1",books:"1f4da",boom:"1f4a5",boot:"1f462",bosnia_herzegovina:"1f1e7-1f1e6",botswana:"1f1e7-1f1fc",bouncing_ball_man:"26f9-2642",bouncing_ball_person:"26f9",bouncing_ball_woman:"26f9-2640",bouquet:"1f490",bouvet_island:"1f1e7-1f1fb",bow:"1f647",bow_and_arrow:"1f3f9",bowing_man:"1f647-2642",bowing_woman:"1f647-2640",bowl_with_spoon:"1f963",bowling:"1f3b3",boxing_glove:"1f94a",boy:"1f466",brain:"1f9e0",brazil:"1f1e7-1f1f7",bread:"1f35e",breast_feeding:"1f931",bricks:"1f9f1",bride_with_veil:"1f470",bridge_at_night:"1f309",briefcase:"1f4bc",british_indian_ocean_territory:"1f1ee-1f1f4",british_virgin_islands:"1f1fb-1f1ec",broccoli:"1f966",broken_heart:"1f494",broom:"1f9f9",brown_circle:"1f7e4",brown_heart:"1f90e",brown_square:"1f7eb",brunei:"1f1e7-1f1f3",bug:"1f41b",building_construction:"1f3d7",bulb:"1f4a1",bulgaria:"1f1e7-1f1ec",bullettrain_front:"1f685",bullettrain_side:"1f684",burkina_faso:"1f1e7-1f1eb",burrito:"1f32f",burundi:"1f1e7-1f1ee",bus:"1f68c",business_suit_levitating:"1f574",busstop:"1f68f",bust_in_silhouette:"1f464",busts_in_silhouette:"1f465",butter:"1f9c8",butterfly:"1f98b",cactus:"1f335",cake:"1f370",calendar:"1f4c6",call_me_hand:"1f919",calling:"1f4f2",cambodia:"1f1f0-1f1ed",camel:"1f42b",camera:"1f4f7",camera_flash:"1f4f8",cameroon:"1f1e8-1f1f2",camping:"1f3d5",canada:"1f1e8-1f1e6",canary_islands:"1f1ee-1f1e8",cancer:"264b",candle:"1f56f",candy:"1f36c",canned_food:"1f96b",canoe:"1f6f6",cape_verde:"1f1e8-1f1fb",capital_abcd:"1f520",capricorn:"2651",car:"1f697",card_file_box:"1f5c3",card_index:"1f4c7",card_index_dividers:"1f5c2",caribbean_netherlands:"1f1e7-1f1f6",carousel_horse:"1f3a0",carrot:"1f955",cartwheeling:"1f938",cat:"1f431",cat2:"1f408",cayman_islands:"1f1f0-1f1fe",cd:"1f4bf",central_african_republic:"1f1e8-1f1eb",ceuta_melilla:"1f1ea-1f1e6",chad:"1f1f9-1f1e9",chains:"26d3",chair:"1fa91",champagne:"1f37e",chart:"1f4b9",chart_with_downwards_trend:"1f4c9",chart_with_upwards_trend:"1f4c8",checkered_flag:"1f3c1",cheese:"1f9c0",cherries:"1f352",cherry_blossom:"1f338",chess_pawn:"265f",chestnut:"1f330",chicken:"1f414",child:"1f9d2",children_crossing:"1f6b8",chile:"1f1e8-1f1f1",chipmunk:"1f43f",chocolate_bar:"1f36b",chopsticks:"1f962",christmas_island:"1f1e8-1f1fd",christmas_tree:"1f384",church:"26ea",cinema:"1f3a6",circus_tent:"1f3aa",city_sunrise:"1f307",city_sunset:"1f306",cityscape:"1f3d9",cl:"1f191",clamp:"1f5dc",clap:"1f44f",clapper:"1f3ac",classical_building:"1f3db",climbing:"1f9d7",climbing_man:"1f9d7-2642",climbing_woman:"1f9d7-2640",clinking_glasses:"1f942",clipboard:"1f4cb",clipperton_island:"1f1e8-1f1f5",clock1:"1f550",clock10:"1f559",clock1030:"1f565",clock11:"1f55a",clock1130:"1f566",clock12:"1f55b",clock1230:"1f567",clock130:"1f55c",clock2:"1f551",clock230:"1f55d",clock3:"1f552",clock330:"1f55e",clock4:"1f553",clock430:"1f55f",clock5:"1f554",clock530:"1f560",clock6:"1f555",clock630:"1f561",clock7:"1f556",clock730:"1f562",clock8:"1f557",clock830:"1f563",clock9:"1f558",clock930:"1f564",closed_book:"1f4d5",closed_lock_with_key:"1f510",closed_umbrella:"1f302",cloud:"2601",cloud_with_lightning:"1f329",cloud_with_lightning_and_rain:"26c8",cloud_with_rain:"1f327",cloud_with_snow:"1f328",clown_face:"1f921",clubs:"2663",cn:"1f1e8-1f1f3",coat:"1f9e5",cocktail:"1f378",coconut:"1f965",cocos_islands:"1f1e8-1f1e8",coffee:"2615",coffin:"26b0",cold_face:"1f976",cold_sweat:"1f630",collision:"1f4a5",colombia:"1f1e8-1f1f4",comet:"2604",comoros:"1f1f0-1f1f2",compass:"1f9ed",computer:"1f4bb",computer_mouse:"1f5b1",confetti_ball:"1f38a",confounded:"1f616",confused:"1f615",congo_brazzaville:"1f1e8-1f1ec",congo_kinshasa:"1f1e8-1f1e9",congratulations:"3297",construction:"1f6a7",construction_worker:"1f477",construction_worker_man:"1f477-2642",construction_worker_woman:"1f477-2640",control_knobs:"1f39b",convenience_store:"1f3ea",cook:"1f9d1-1f373",cook_islands:"1f1e8-1f1f0",cookie:"1f36a",cool:"1f192",cop:"1f46e",copyright:"00a9",corn:"1f33d",costa_rica:"1f1e8-1f1f7",cote_divoire:"1f1e8-1f1ee",couch_and_lamp:"1f6cb",couple:"1f46b",couple_with_heart:"1f491",couple_with_heart_man_man:"1f468-2764-1f468",couple_with_heart_woman_man:"1f469-2764-1f468",couple_with_heart_woman_woman:"1f469-2764-1f469",couplekiss:"1f48f",couplekiss_man_man:"1f468-2764-1f48b-1f468",couplekiss_man_woman:"1f469-2764-1f48b-1f468",couplekiss_woman_woman:"1f469-2764-1f48b-1f469",cow:"1f42e",cow2:"1f404",cowboy_hat_face:"1f920",crab:"1f980",crayon:"1f58d",credit_card:"1f4b3",crescent_moon:"1f319",cricket:"1f997",cricket_game:"1f3cf",croatia:"1f1ed-1f1f7",crocodile:"1f40a",croissant:"1f950",crossed_fingers:"1f91e",crossed_flags:"1f38c",crossed_swords:"2694",crown:"1f451",cry:"1f622",crying_cat_face:"1f63f",crystal_ball:"1f52e",cuba:"1f1e8-1f1fa",cucumber:"1f952",cup_with_straw:"1f964",cupcake:"1f9c1",cupid:"1f498",curacao:"1f1e8-1f1fc",curling_stone:"1f94c",curly_haired_man:"1f468-1f9b1",curly_haired_woman:"1f469-1f9b1",curly_loop:"27b0",currency_exchange:"1f4b1",curry:"1f35b",cursing_face:"1f92c",custard:"1f36e",customs:"1f6c3",cut_of_meat:"1f969",cyclone:"1f300",cyprus:"1f1e8-1f1fe",czech_republic:"1f1e8-1f1ff",dagger:"1f5e1",dancer:"1f483",dancers:"1f46f",dancing_men:"1f46f-2642",dancing_women:"1f46f-2640",dango:"1f361",dark_sunglasses:"1f576",dart:"1f3af",dash:"1f4a8",date:"1f4c5",de:"1f1e9-1f1ea",deaf_man:"1f9cf-2642",deaf_person:"1f9cf",deaf_woman:"1f9cf-2640",deciduous_tree:"1f333",deer:"1f98c",denmark:"1f1e9-1f1f0",department_store:"1f3ec",derelict_house:"1f3da",desert:"1f3dc",desert_island:"1f3dd",desktop_computer:"1f5a5",detective:"1f575",diamond_shape_with_a_dot_inside:"1f4a0",diamonds:"2666",diego_garcia:"1f1e9-1f1ec",disappointed:"1f61e",disappointed_relieved:"1f625",diving_mask:"1f93f",diya_lamp:"1fa94",dizzy:"1f4ab",dizzy_face:"1f635",djibouti:"1f1e9-1f1ef",dna:"1f9ec",do_not_litter:"1f6af",dog:"1f436",dog2:"1f415",dollar:"1f4b5",dolls:"1f38e",dolphin:"1f42c",dominica:"1f1e9-1f1f2",dominican_republic:"1f1e9-1f1f4",door:"1f6aa",doughnut:"1f369",dove:"1f54a",dragon:"1f409",dragon_face:"1f432",dress:"1f457",dromedary_camel:"1f42a",drooling_face:"1f924",drop_of_blood:"1fa78",droplet:"1f4a7",drum:"1f941",duck:"1f986",dumpling:"1f95f",dvd:"1f4c0","e-mail":"1f4e7",eagle:"1f985",ear:"1f442",ear_of_rice:"1f33e",ear_with_hearing_aid:"1f9bb",earth_africa:"1f30d",earth_americas:"1f30e",earth_asia:"1f30f",ecuador:"1f1ea-1f1e8",egg:"1f95a",eggplant:"1f346",egypt:"1f1ea-1f1ec",eight:"0038-20e3",eight_pointed_black_star:"2734",eight_spoked_asterisk:"2733",eject_button:"23cf",el_salvador:"1f1f8-1f1fb",electric_plug:"1f50c",elephant:"1f418",elf:"1f9dd",elf_man:"1f9dd-2642",elf_woman:"1f9dd-2640",email:"2709",end:"1f51a",england:"1f3f4-e0067-e0062-e0065-e006e-e0067-e007f",envelope:"2709",envelope_with_arrow:"1f4e9",equatorial_guinea:"1f1ec-1f1f6",eritrea:"1f1ea-1f1f7",es:"1f1ea-1f1f8",estonia:"1f1ea-1f1ea",ethiopia:"1f1ea-1f1f9",eu:"1f1ea-1f1fa",euro:"1f4b6",european_castle:"1f3f0",european_post_office:"1f3e4",european_union:"1f1ea-1f1fa",evergreen_tree:"1f332",exclamation:"2757",exploding_head:"1f92f",expressionless:"1f611",eye:"1f441",eye_speech_bubble:"1f441-1f5e8",eyeglasses:"1f453",eyes:"1f440",face_with_head_bandage:"1f915",face_with_thermometer:"1f912",facepalm:"1f926",facepunch:"1f44a",factory:"1f3ed",factory_worker:"1f9d1-1f3ed",fairy:"1f9da",fairy_man:"1f9da-2642",fairy_woman:"1f9da-2640",falafel:"1f9c6",falkland_islands:"1f1eb-1f1f0",fallen_leaf:"1f342",family:"1f46a",family_man_boy:"1f468-1f466",family_man_boy_boy:"1f468-1f466-1f466",family_man_girl:"1f468-1f467",family_man_girl_boy:"1f468-1f467-1f466",family_man_girl_girl:"1f468-1f467-1f467",family_man_man_boy:"1f468-1f468-1f466",family_man_man_boy_boy:"1f468-1f468-1f466-1f466",family_man_man_girl:"1f468-1f468-1f467",family_man_man_girl_boy:"1f468-1f468-1f467-1f466",family_man_man_girl_girl:"1f468-1f468-1f467-1f467",family_man_woman_boy:"1f468-1f469-1f466",family_man_woman_boy_boy:"1f468-1f469-1f466-1f466",family_man_woman_girl:"1f468-1f469-1f467",family_man_woman_girl_boy:"1f468-1f469-1f467-1f466",family_man_woman_girl_girl:"1f468-1f469-1f467-1f467",family_woman_boy:"1f469-1f466",family_woman_boy_boy:"1f469-1f466-1f466",family_woman_girl:"1f469-1f467",family_woman_girl_boy:"1f469-1f467-1f466",family_woman_girl_girl:"1f469-1f467-1f467",family_woman_woman_boy:"1f469-1f469-1f466",family_woman_woman_boy_boy:"1f469-1f469-1f466-1f466",family_woman_woman_girl:"1f469-1f469-1f467",family_woman_woman_girl_boy:"1f469-1f469-1f467-1f466",family_woman_woman_girl_girl:"1f469-1f469-1f467-1f467",farmer:"1f9d1-1f33e",faroe_islands:"1f1eb-1f1f4",fast_forward:"23e9",fax:"1f4e0",fearful:"1f628",feet:"1f43e",female_detective:"1f575-2640",female_sign:"2640",ferris_wheel:"1f3a1",ferry:"26f4",field_hockey:"1f3d1",fiji:"1f1eb-1f1ef",file_cabinet:"1f5c4",file_folder:"1f4c1",film_projector:"1f4fd",film_strip:"1f39e",finland:"1f1eb-1f1ee",fire:"1f525",fire_engine:"1f692",fire_extinguisher:"1f9ef",firecracker:"1f9e8",firefighter:"1f9d1-1f692",fireworks:"1f386",first_quarter_moon:"1f313",first_quarter_moon_with_face:"1f31b",fish:"1f41f",fish_cake:"1f365",fishing_pole_and_fish:"1f3a3",fist:"270a",fist_left:"1f91b",fist_oncoming:"1f44a",fist_raised:"270a",fist_right:"1f91c",five:"0035-20e3",flags:"1f38f",flamingo:"1f9a9",flashlight:"1f526",flat_shoe:"1f97f",fleur_de_lis:"269c",flight_arrival:"1f6ec",flight_departure:"1f6eb",flipper:"1f42c",floppy_disk:"1f4be",flower_playing_cards:"1f3b4",flushed:"1f633",flying_disc:"1f94f",flying_saucer:"1f6f8",fog:"1f32b",foggy:"1f301",foot:"1f9b6",football:"1f3c8",footprints:"1f463",fork_and_knife:"1f374",fortune_cookie:"1f960",fountain:"26f2",fountain_pen:"1f58b",four:"0034-20e3",four_leaf_clover:"1f340",fox_face:"1f98a",fr:"1f1eb-1f1f7",framed_picture:"1f5bc",free:"1f193",french_guiana:"1f1ec-1f1eb",french_polynesia:"1f1f5-1f1eb",french_southern_territories:"1f1f9-1f1eb",fried_egg:"1f373",fried_shrimp:"1f364",fries:"1f35f",frog:"1f438",frowning:"1f626",frowning_face:"2639",frowning_man:"1f64d-2642",frowning_person:"1f64d",frowning_woman:"1f64d-2640",fu:"1f595",fuelpump:"26fd",full_moon:"1f315",full_moon_with_face:"1f31d",funeral_urn:"26b1",gabon:"1f1ec-1f1e6",gambia:"1f1ec-1f1f2",game_die:"1f3b2",garlic:"1f9c4",gb:"1f1ec-1f1e7",gear:"2699",gem:"1f48e",gemini:"264a",genie:"1f9de",genie_man:"1f9de-2642",genie_woman:"1f9de-2640",georgia:"1f1ec-1f1ea",ghana:"1f1ec-1f1ed",ghost:"1f47b",gibraltar:"1f1ec-1f1ee",gift:"1f381",gift_heart:"1f49d",giraffe:"1f992",girl:"1f467",globe_with_meridians:"1f310",gloves:"1f9e4",goal_net:"1f945",goat:"1f410",goggles:"1f97d",golf:"26f3",golfing:"1f3cc",golfing_man:"1f3cc-2642",golfing_woman:"1f3cc-2640",gorilla:"1f98d",grapes:"1f347",greece:"1f1ec-1f1f7",green_apple:"1f34f",green_book:"1f4d7",green_circle:"1f7e2",green_heart:"1f49a",green_salad:"1f957",green_square:"1f7e9",greenland:"1f1ec-1f1f1",grenada:"1f1ec-1f1e9",grey_exclamation:"2755",grey_question:"2754",grimacing:"1f62c",grin:"1f601",grinning:"1f600",guadeloupe:"1f1ec-1f1f5",guam:"1f1ec-1f1fa",guard:"1f482",guardsman:"1f482-2642",guardswoman:"1f482-2640",guatemala:"1f1ec-1f1f9",guernsey:"1f1ec-1f1ec",guide_dog:"1f9ae",guinea:"1f1ec-1f1f3",guinea_bissau:"1f1ec-1f1fc",guitar:"1f3b8",gun:"1f52b",guyana:"1f1ec-1f1fe",haircut:"1f487",haircut_man:"1f487-2642",haircut_woman:"1f487-2640",haiti:"1f1ed-1f1f9",hamburger:"1f354",hammer:"1f528",hammer_and_pick:"2692",hammer_and_wrench:"1f6e0",hamster:"1f439",hand:"270b",hand_over_mouth:"1f92d",handbag:"1f45c",handball_person:"1f93e",handshake:"1f91d",hankey:"1f4a9",hash:"0023-20e3",hatched_chick:"1f425",hatching_chick:"1f423",headphones:"1f3a7",health_worker:"1f9d1-2695",hear_no_evil:"1f649",heard_mcdonald_islands:"1f1ed-1f1f2",heart:"2764",heart_decoration:"1f49f",heart_eyes:"1f60d",heart_eyes_cat:"1f63b",heartbeat:"1f493",heartpulse:"1f497",hearts:"2665",heavy_check_mark:"2714",heavy_division_sign:"2797",heavy_dollar_sign:"1f4b2",heavy_exclamation_mark:"2757",heavy_heart_exclamation:"2763",heavy_minus_sign:"2796",heavy_multiplication_x:"2716",heavy_plus_sign:"2795",hedgehog:"1f994",helicopter:"1f681",herb:"1f33f",hibiscus:"1f33a",high_brightness:"1f506",high_heel:"1f460",hiking_boot:"1f97e",hindu_temple:"1f6d5",hippopotamus:"1f99b",hocho:"1f52a",hole:"1f573",honduras:"1f1ed-1f1f3",honey_pot:"1f36f",honeybee:"1f41d",hong_kong:"1f1ed-1f1f0",horse:"1f434",horse_racing:"1f3c7",hospital:"1f3e5",hot_face:"1f975",hot_pepper:"1f336",hotdog:"1f32d",hotel:"1f3e8",hotsprings:"2668",hourglass:"231b",hourglass_flowing_sand:"23f3",house:"1f3e0",house_with_garden:"1f3e1",houses:"1f3d8",hugs:"1f917",hungary:"1f1ed-1f1fa",hushed:"1f62f",ice_cream:"1f368",ice_cube:"1f9ca",ice_hockey:"1f3d2",ice_skate:"26f8",icecream:"1f366",iceland:"1f1ee-1f1f8",id:"1f194",ideograph_advantage:"1f250",imp:"1f47f",inbox_tray:"1f4e5",incoming_envelope:"1f4e8",india:"1f1ee-1f1f3",indonesia:"1f1ee-1f1e9",infinity:"267e",information_desk_person:"1f481",information_source:"2139",innocent:"1f607",interrobang:"2049",iphone:"1f4f1",iran:"1f1ee-1f1f7",iraq:"1f1ee-1f1f6",ireland:"1f1ee-1f1ea",isle_of_man:"1f1ee-1f1f2",israel:"1f1ee-1f1f1",it:"1f1ee-1f1f9",izakaya_lantern:"1f3ee",jack_o_lantern:"1f383",jamaica:"1f1ef-1f1f2",japan:"1f5fe",japanese_castle:"1f3ef",japanese_goblin:"1f47a",japanese_ogre:"1f479",jeans:"1f456",jersey:"1f1ef-1f1ea",jigsaw:"1f9e9",jordan:"1f1ef-1f1f4",joy:"1f602",joy_cat:"1f639",joystick:"1f579",jp:"1f1ef-1f1f5",judge:"1f9d1-2696",juggling_person:"1f939",kaaba:"1f54b",kangaroo:"1f998",kazakhstan:"1f1f0-1f1ff",kenya:"1f1f0-1f1ea",key:"1f511",keyboard:"2328",keycap_ten:"1f51f",kick_scooter:"1f6f4",kimono:"1f458",kiribati:"1f1f0-1f1ee",kiss:"1f48b",kissing:"1f617",kissing_cat:"1f63d",kissing_closed_eyes:"1f61a",kissing_heart:"1f618",kissing_smiling_eyes:"1f619",kite:"1fa81",kiwi_fruit:"1f95d",kneeling_man:"1f9ce-2642",kneeling_person:"1f9ce",kneeling_woman:"1f9ce-2640",knife:"1f52a",koala:"1f428",koko:"1f201",kosovo:"1f1fd-1f1f0",kr:"1f1f0-1f1f7",kuwait:"1f1f0-1f1fc",kyrgyzstan:"1f1f0-1f1ec",lab_coat:"1f97c",label:"1f3f7",lacrosse:"1f94d",lantern:"1f3ee",laos:"1f1f1-1f1e6",large_blue_circle:"1f535",large_blue_diamond:"1f537",large_orange_diamond:"1f536",last_quarter_moon:"1f317",last_quarter_moon_with_face:"1f31c",latin_cross:"271d",latvia:"1f1f1-1f1fb",laughing:"1f606",leafy_green:"1f96c",leaves:"1f343",lebanon:"1f1f1-1f1e7",ledger:"1f4d2",left_luggage:"1f6c5",left_right_arrow:"2194",left_speech_bubble:"1f5e8",leftwards_arrow_with_hook:"21a9",leg:"1f9b5",lemon:"1f34b",leo:"264c",leopard:"1f406",lesotho:"1f1f1-1f1f8",level_slider:"1f39a",liberia:"1f1f1-1f1f7",libra:"264e",libya:"1f1f1-1f1fe",liechtenstein:"1f1f1-1f1ee",light_rail:"1f688",link:"1f517",lion:"1f981",lips:"1f444",lipstick:"1f484",lithuania:"1f1f1-1f1f9",lizard:"1f98e",llama:"1f999",lobster:"1f99e",lock:"1f512",lock_with_ink_pen:"1f50f",lollipop:"1f36d",loop:"27bf",lotion_bottle:"1f9f4",lotus_position:"1f9d8",lotus_position_man:"1f9d8-2642",lotus_position_woman:"1f9d8-2640",loud_sound:"1f50a",loudspeaker:"1f4e2",love_hotel:"1f3e9",love_letter:"1f48c",love_you_gesture:"1f91f",low_brightness:"1f505",luggage:"1f9f3",luxembourg:"1f1f1-1f1fa",lying_face:"1f925",m:"24c2",macau:"1f1f2-1f1f4",macedonia:"1f1f2-1f1f0",madagascar:"1f1f2-1f1ec",mag:"1f50d",mag_right:"1f50e",mage:"1f9d9",mage_man:"1f9d9-2642",mage_woman:"1f9d9-2640",magnet:"1f9f2",mahjong:"1f004",mailbox:"1f4eb",mailbox_closed:"1f4ea",mailbox_with_mail:"1f4ec",mailbox_with_no_mail:"1f4ed",malawi:"1f1f2-1f1fc",malaysia:"1f1f2-1f1fe",maldives:"1f1f2-1f1fb",male_detective:"1f575-2642",male_sign:"2642",mali:"1f1f2-1f1f1",malta:"1f1f2-1f1f9",man:"1f468",man_artist:"1f468-1f3a8",man_astronaut:"1f468-1f680",man_cartwheeling:"1f938-2642",man_cook:"1f468-1f373",man_dancing:"1f57a",man_facepalming:"1f926-2642",man_factory_worker:"1f468-1f3ed",man_farmer:"1f468-1f33e",man_firefighter:"1f468-1f692",man_health_worker:"1f468-2695",man_in_manual_wheelchair:"1f468-1f9bd",man_in_motorized_wheelchair:"1f468-1f9bc",man_in_tuxedo:"1f935",man_judge:"1f468-2696",man_juggling:"1f939-2642",man_mechanic:"1f468-1f527",man_office_worker:"1f468-1f4bc",man_pilot:"1f468-2708",man_playing_handball:"1f93e-2642",man_playing_water_polo:"1f93d-2642",man_scientist:"1f468-1f52c",man_shrugging:"1f937-2642",man_singer:"1f468-1f3a4",man_student:"1f468-1f393",man_teacher:"1f468-1f3eb",man_technologist:"1f468-1f4bb",man_with_gua_pi_mao:"1f472",man_with_probing_cane:"1f468-1f9af",man_with_turban:"1f473-2642",mandarin:"1f34a",mango:"1f96d",mans_shoe:"1f45e",mantelpiece_clock:"1f570",manual_wheelchair:"1f9bd",maple_leaf:"1f341",marshall_islands:"1f1f2-1f1ed",martial_arts_uniform:"1f94b",martinique:"1f1f2-1f1f6",mask:"1f637",massage:"1f486",massage_man:"1f486-2642",massage_woman:"1f486-2640",mate:"1f9c9",mauritania:"1f1f2-1f1f7",mauritius:"1f1f2-1f1fa",mayotte:"1f1fe-1f1f9",meat_on_bone:"1f356",mechanic:"1f9d1-1f527",mechanical_arm:"1f9be",mechanical_leg:"1f9bf",medal_military:"1f396",medal_sports:"1f3c5",medical_symbol:"2695",mega:"1f4e3",melon:"1f348",memo:"1f4dd",men_wrestling:"1f93c-2642",menorah:"1f54e",mens:"1f6b9",mermaid:"1f9dc-2640",merman:"1f9dc-2642",merperson:"1f9dc",metal:"1f918",metro:"1f687",mexico:"1f1f2-1f1fd",microbe:"1f9a0",micronesia:"1f1eb-1f1f2",microphone:"1f3a4",microscope:"1f52c",middle_finger:"1f595",milk_glass:"1f95b",milky_way:"1f30c",minibus:"1f690",minidisc:"1f4bd",mobile_phone_off:"1f4f4",moldova:"1f1f2-1f1e9",monaco:"1f1f2-1f1e8",money_mouth_face:"1f911",money_with_wings:"1f4b8",moneybag:"1f4b0",mongolia:"1f1f2-1f1f3",monkey:"1f412",monkey_face:"1f435",monocle_face:"1f9d0",monorail:"1f69d",montenegro:"1f1f2-1f1ea",montserrat:"1f1f2-1f1f8",moon:"1f314",moon_cake:"1f96e",morocco:"1f1f2-1f1e6",mortar_board:"1f393",mosque:"1f54c",mosquito:"1f99f",motor_boat:"1f6e5",motor_scooter:"1f6f5",motorcycle:"1f3cd",motorized_wheelchair:"1f9bc",motorway:"1f6e3",mount_fuji:"1f5fb",mountain:"26f0",mountain_bicyclist:"1f6b5",mountain_biking_man:"1f6b5-2642",mountain_biking_woman:"1f6b5-2640",mountain_cableway:"1f6a0",mountain_railway:"1f69e",mountain_snow:"1f3d4",mouse:"1f42d",mouse2:"1f401",movie_camera:"1f3a5",moyai:"1f5ff",mozambique:"1f1f2-1f1ff",mrs_claus:"1f936",muscle:"1f4aa",mushroom:"1f344",musical_keyboard:"1f3b9",musical_note:"1f3b5",musical_score:"1f3bc",mute:"1f507",myanmar:"1f1f2-1f1f2",nail_care:"1f485",name_badge:"1f4db",namibia:"1f1f3-1f1e6",national_park:"1f3de",nauru:"1f1f3-1f1f7",nauseated_face:"1f922",nazar_amulet:"1f9ff",necktie:"1f454",negative_squared_cross_mark:"274e",nepal:"1f1f3-1f1f5",nerd_face:"1f913",netherlands:"1f1f3-1f1f1",neutral_face:"1f610",new:"1f195",new_caledonia:"1f1f3-1f1e8",new_moon:"1f311",new_moon_with_face:"1f31a",new_zealand:"1f1f3-1f1ff",newspaper:"1f4f0",newspaper_roll:"1f5de",next_track_button:"23ed",ng:"1f196",ng_man:"1f645-2642",ng_woman:"1f645-2640",nicaragua:"1f1f3-1f1ee",niger:"1f1f3-1f1ea",nigeria:"1f1f3-1f1ec",night_with_stars:"1f303",nine:"0039-20e3",niue:"1f1f3-1f1fa",no_bell:"1f515",no_bicycles:"1f6b3",no_entry:"26d4",no_entry_sign:"1f6ab",no_good:"1f645",no_good_man:"1f645-2642",no_good_woman:"1f645-2640",no_mobile_phones:"1f4f5",no_mouth:"1f636",no_pedestrians:"1f6b7",no_smoking:"1f6ad","non-potable_water":"1f6b1",norfolk_island:"1f1f3-1f1eb",north_korea:"1f1f0-1f1f5",northern_mariana_islands:"1f1f2-1f1f5",norway:"1f1f3-1f1f4",nose:"1f443",notebook:"1f4d3",notebook_with_decorative_cover:"1f4d4",notes:"1f3b6",nut_and_bolt:"1f529",o:"2b55",o2:"1f17e",ocean:"1f30a",octopus:"1f419",oden:"1f362",office:"1f3e2",office_worker:"1f9d1-1f4bc",oil_drum:"1f6e2",ok:"1f197",ok_hand:"1f44c",ok_man:"1f646-2642",ok_person:"1f646",ok_woman:"1f646-2640",old_key:"1f5dd",older_adult:"1f9d3",older_man:"1f474",older_woman:"1f475",om:"1f549",oman:"1f1f4-1f1f2",on:"1f51b",oncoming_automobile:"1f698",oncoming_bus:"1f68d",oncoming_police_car:"1f694",oncoming_taxi:"1f696",one:"0031-20e3",one_piece_swimsuit:"1fa71",onion:"1f9c5",open_book:"1f4d6",open_file_folder:"1f4c2",open_hands:"1f450",open_mouth:"1f62e",open_umbrella:"2602",ophiuchus:"26ce",orange:"1f34a",orange_book:"1f4d9",orange_circle:"1f7e0",orange_heart:"1f9e1",orange_square:"1f7e7",orangutan:"1f9a7",orthodox_cross:"2626",otter:"1f9a6",outbox_tray:"1f4e4",owl:"1f989",ox:"1f402",oyster:"1f9aa",package:"1f4e6",page_facing_up:"1f4c4",page_with_curl:"1f4c3",pager:"1f4df",paintbrush:"1f58c",pakistan:"1f1f5-1f1f0",palau:"1f1f5-1f1fc",palestinian_territories:"1f1f5-1f1f8",palm_tree:"1f334",palms_up_together:"1f932",panama:"1f1f5-1f1e6",pancakes:"1f95e",panda_face:"1f43c",paperclip:"1f4ce",paperclips:"1f587",papua_new_guinea:"1f1f5-1f1ec",parachute:"1fa82",paraguay:"1f1f5-1f1fe",parasol_on_ground:"26f1",parking:"1f17f",parrot:"1f99c",part_alternation_mark:"303d",partly_sunny:"26c5",partying_face:"1f973",passenger_ship:"1f6f3",passport_control:"1f6c2",pause_button:"23f8",paw_prints:"1f43e",peace_symbol:"262e",peach:"1f351",peacock:"1f99a",peanuts:"1f95c",pear:"1f350",pen:"1f58a",pencil:"1f4dd",pencil2:"270f",penguin:"1f427",pensive:"1f614",people_holding_hands:"1f9d1-1f91d-1f9d1",performing_arts:"1f3ad",persevere:"1f623",person_bald:"1f9d1-1f9b2",person_curly_hair:"1f9d1-1f9b1",person_fencing:"1f93a",person_in_manual_wheelchair:"1f9d1-1f9bd",person_in_motorized_wheelchair:"1f9d1-1f9bc",person_red_hair:"1f9d1-1f9b0",person_white_hair:"1f9d1-1f9b3",person_with_probing_cane:"1f9d1-1f9af",person_with_turban:"1f473",peru:"1f1f5-1f1ea",petri_dish:"1f9eb",philippines:"1f1f5-1f1ed",phone:"260e",pick:"26cf",pie:"1f967",pig:"1f437",pig2:"1f416",pig_nose:"1f43d",pill:"1f48a",pilot:"1f9d1-2708",pinching_hand:"1f90f",pineapple:"1f34d",ping_pong:"1f3d3",pirate_flag:"1f3f4-2620",pisces:"2653",pitcairn_islands:"1f1f5-1f1f3",pizza:"1f355",place_of_worship:"1f6d0",plate_with_cutlery:"1f37d",play_or_pause_button:"23ef",pleading_face:"1f97a",point_down:"1f447",point_left:"1f448",point_right:"1f449",point_up:"261d",point_up_2:"1f446",poland:"1f1f5-1f1f1",police_car:"1f693",police_officer:"1f46e",policeman:"1f46e-2642",policewoman:"1f46e-2640",poodle:"1f429",poop:"1f4a9",popcorn:"1f37f",portugal:"1f1f5-1f1f9",post_office:"1f3e3",postal_horn:"1f4ef",postbox:"1f4ee",potable_water:"1f6b0",potato:"1f954",pouch:"1f45d",poultry_leg:"1f357",pound:"1f4b7",pout:"1f621",pouting_cat:"1f63e",pouting_face:"1f64e",pouting_man:"1f64e-2642",pouting_woman:"1f64e-2640",pray:"1f64f",prayer_beads:"1f4ff",pregnant_woman:"1f930",pretzel:"1f968",previous_track_button:"23ee",prince:"1f934",princess:"1f478",printer:"1f5a8",probing_cane:"1f9af",puerto_rico:"1f1f5-1f1f7",punch:"1f44a",purple_circle:"1f7e3",purple_heart:"1f49c",purple_square:"1f7ea",purse:"1f45b",pushpin:"1f4cc",put_litter_in_its_place:"1f6ae",qatar:"1f1f6-1f1e6",question:"2753",rabbit:"1f430",rabbit2:"1f407",raccoon:"1f99d",racehorse:"1f40e",racing_car:"1f3ce",radio:"1f4fb",radio_button:"1f518",radioactive:"2622",rage:"1f621",railway_car:"1f683",railway_track:"1f6e4",rainbow:"1f308",rainbow_flag:"1f3f3-1f308",raised_back_of_hand:"1f91a",raised_eyebrow:"1f928",raised_hand:"270b",raised_hand_with_fingers_splayed:"1f590",raised_hands:"1f64c",raising_hand:"1f64b",raising_hand_man:"1f64b-2642",raising_hand_woman:"1f64b-2640",ram:"1f40f",ramen:"1f35c",rat:"1f400",razor:"1fa92",receipt:"1f9fe",record_button:"23fa",recycle:"267b",red_car:"1f697",red_circle:"1f534",red_envelope:"1f9e7",red_haired_man:"1f468-1f9b0",red_haired_woman:"1f469-1f9b0",red_square:"1f7e5",registered:"00ae",relaxed:"263a",relieved:"1f60c",reminder_ribbon:"1f397",repeat:"1f501",repeat_one:"1f502",rescue_worker_helmet:"26d1",restroom:"1f6bb",reunion:"1f1f7-1f1ea",revolving_hearts:"1f49e",rewind:"23ea",rhinoceros:"1f98f",ribbon:"1f380",rice:"1f35a",rice_ball:"1f359",rice_cracker:"1f358",rice_scene:"1f391",right_anger_bubble:"1f5ef",ring:"1f48d",ringed_planet:"1fa90",robot:"1f916",rocket:"1f680",rofl:"1f923",roll_eyes:"1f644",roll_of_paper:"1f9fb",roller_coaster:"1f3a2",romania:"1f1f7-1f1f4",rooster:"1f413",rose:"1f339",rosette:"1f3f5",rotating_light:"1f6a8",round_pushpin:"1f4cd",rowboat:"1f6a3",rowing_man:"1f6a3-2642",rowing_woman:"1f6a3-2640",ru:"1f1f7-1f1fa",rugby_football:"1f3c9",runner:"1f3c3",running:"1f3c3",running_man:"1f3c3-2642",running_shirt_with_sash:"1f3bd",running_woman:"1f3c3-2640",rwanda:"1f1f7-1f1fc",sa:"1f202",safety_pin:"1f9f7",safety_vest:"1f9ba",sagittarius:"2650",sailboat:"26f5",sake:"1f376",salt:"1f9c2",samoa:"1f1fc-1f1f8",san_marino:"1f1f8-1f1f2",sandal:"1f461",sandwich:"1f96a",santa:"1f385",sao_tome_principe:"1f1f8-1f1f9",sari:"1f97b",sassy_man:"1f481-2642",sassy_woman:"1f481-2640",satellite:"1f4e1",satisfied:"1f606",saudi_arabia:"1f1f8-1f1e6",sauna_man:"1f9d6-2642",sauna_person:"1f9d6",sauna_woman:"1f9d6-2640",sauropod:"1f995",saxophone:"1f3b7",scarf:"1f9e3",school:"1f3eb",school_satchel:"1f392",scientist:"1f9d1-1f52c",scissors:"2702",scorpion:"1f982",scorpius:"264f",scotland:"1f3f4-e0067-e0062-e0073-e0063-e0074-e007f",scream:"1f631",scream_cat:"1f640",scroll:"1f4dc",seat:"1f4ba",secret:"3299",see_no_evil:"1f648",seedling:"1f331",selfie:"1f933",senegal:"1f1f8-1f1f3",serbia:"1f1f7-1f1f8",service_dog:"1f415-1f9ba",seven:"0037-20e3",seychelles:"1f1f8-1f1e8",shallow_pan_of_food:"1f958",shamrock:"2618",shark:"1f988",shaved_ice:"1f367",sheep:"1f411",shell:"1f41a",shield:"1f6e1",shinto_shrine:"26e9",ship:"1f6a2",shirt:"1f455",poo:"1f4a9",shoe:"1f45e",shopping:"1f6cd",shopping_cart:"1f6d2",shorts:"1fa73",shower:"1f6bf",shrimp:"1f990",shrug:"1f937",shushing_face:"1f92b",sierra_leone:"1f1f8-1f1f1",signal_strength:"1f4f6",singapore:"1f1f8-1f1ec",singer:"1f9d1-1f3a4",sint_maarten:"1f1f8-1f1fd",six:"0036-20e3",six_pointed_star:"1f52f",skateboard:"1f6f9",ski:"1f3bf",skier:"26f7",skull:"1f480",skull_and_crossbones:"2620",skunk:"1f9a8",sled:"1f6f7",sleeping:"1f634",sleeping_bed:"1f6cc",sleepy:"1f62a",slightly_frowning_face:"1f641",slightly_smiling_face:"1f642",slot_machine:"1f3b0",sloth:"1f9a5",slovakia:"1f1f8-1f1f0",slovenia:"1f1f8-1f1ee",small_airplane:"1f6e9",small_blue_diamond:"1f539",small_orange_diamond:"1f538",small_red_triangle:"1f53a",small_red_triangle_down:"1f53b",smile:"1f604",smile_cat:"1f638",smiley:"1f603",smiley_cat:"1f63a",smiling_face_with_three_hearts:"1f970",smiling_imp:"1f608",smirk:"1f60f",smirk_cat:"1f63c",smoking:"1f6ac",snail:"1f40c",snake:"1f40d",sneezing_face:"1f927",snowboarder:"1f3c2",snowflake:"2744",snowman:"26c4",snowman_with_snow:"2603",soap:"1f9fc",sob:"1f62d",soccer:"26bd",socks:"1f9e6",softball:"1f94e",solomon_islands:"1f1f8-1f1e7",somalia:"1f1f8-1f1f4",soon:"1f51c",sos:"1f198",sound:"1f509",south_africa:"1f1ff-1f1e6",south_georgia_south_sandwich_islands:"1f1ec-1f1f8",south_sudan:"1f1f8-1f1f8",space_invader:"1f47e",spades:"2660",spaghetti:"1f35d",sparkle:"2747",sparkler:"1f387",sparkles:"2728",sparkling_heart:"1f496",speak_no_evil:"1f64a",speaker:"1f508",speaking_head:"1f5e3",speech_balloon:"1f4ac",speedboat:"1f6a4",spider:"1f577",spider_web:"1f578",spiral_calendar:"1f5d3",spiral_notepad:"1f5d2",sponge:"1f9fd",spoon:"1f944",squid:"1f991",sri_lanka:"1f1f1-1f1f0",st_barthelemy:"1f1e7-1f1f1",st_helena:"1f1f8-1f1ed",st_kitts_nevis:"1f1f0-1f1f3",st_lucia:"1f1f1-1f1e8",st_martin:"1f1f2-1f1eb",st_pierre_miquelon:"1f1f5-1f1f2",st_vincent_grenadines:"1f1fb-1f1e8",stadium:"1f3df",standing_man:"1f9cd-2642",standing_person:"1f9cd",standing_woman:"1f9cd-2640",star:"2b50",star2:"1f31f",star_and_crescent:"262a",star_of_david:"2721",star_struck:"1f929",stars:"1f320",station:"1f689",statue_of_liberty:"1f5fd",steam_locomotive:"1f682",stethoscope:"1fa7a",stew:"1f372",stop_button:"23f9",stop_sign:"1f6d1",stopwatch:"23f1",straight_ruler:"1f4cf",strawberry:"1f353",stuck_out_tongue:"1f61b",stuck_out_tongue_closed_eyes:"1f61d",stuck_out_tongue_winking_eye:"1f61c",student:"1f9d1-1f393",studio_microphone:"1f399",stuffed_flatbread:"1f959",sudan:"1f1f8-1f1e9",sun_behind_large_cloud:"1f325",sun_behind_rain_cloud:"1f326",sun_behind_small_cloud:"1f324",sun_with_face:"1f31e",sunflower:"1f33b",sunglasses:"1f60e",sunny:"2600",sunrise:"1f305",sunrise_over_mountains:"1f304",superhero:"1f9b8",superhero_man:"1f9b8-2642",superhero_woman:"1f9b8-2640",supervillain:"1f9b9",supervillain_man:"1f9b9-2642",supervillain_woman:"1f9b9-2640",surfer:"1f3c4",surfing_man:"1f3c4-2642",surfing_woman:"1f3c4-2640",suriname:"1f1f8-1f1f7",sushi:"1f363",suspension_railway:"1f69f",svalbard_jan_mayen:"1f1f8-1f1ef",swan:"1f9a2",swaziland:"1f1f8-1f1ff",sweat:"1f613",sweat_drops:"1f4a6",sweat_smile:"1f605",sweden:"1f1f8-1f1ea",sweet_potato:"1f360",swim_brief:"1fa72",swimmer:"1f3ca",swimming_man:"1f3ca-2642",swimming_woman:"1f3ca-2640",switzerland:"1f1e8-1f1ed",symbols:"1f523",synagogue:"1f54d",syria:"1f1f8-1f1fe",syringe:"1f489","t-rex":"1f996",taco:"1f32e",tada:"1f389",taiwan:"1f1f9-1f1fc",tajikistan:"1f1f9-1f1ef",takeout_box:"1f961",tanabata_tree:"1f38b",tangerine:"1f34a",tanzania:"1f1f9-1f1ff",taurus:"2649",taxi:"1f695",tea:"1f375",teacher:"1f9d1-1f3eb",technologist:"1f9d1-1f4bb",teddy_bear:"1f9f8",telephone:"260e",telephone_receiver:"1f4de",telescope:"1f52d",tennis:"1f3be",tent:"26fa",test_tube:"1f9ea",thailand:"1f1f9-1f1ed",thermometer:"1f321",thinking:"1f914",thought_balloon:"1f4ad",thread:"1f9f5",three:"0033-20e3",thumbsdown:"1f44e",thumbsup:"1f44d",ticket:"1f3ab",tickets:"1f39f",tiger:"1f42f",tiger2:"1f405",timer_clock:"23f2",timor_leste:"1f1f9-1f1f1",tipping_hand_man:"1f481-2642",tipping_hand_person:"1f481",tipping_hand_woman:"1f481-2640",tired_face:"1f62b",tm:"2122",togo:"1f1f9-1f1ec",toilet:"1f6bd",tokelau:"1f1f9-1f1f0",tokyo_tower:"1f5fc",tomato:"1f345",tonga:"1f1f9-1f1f4",tongue:"1f445",toolbox:"1f9f0",tooth:"1f9b7",top:"1f51d",tophat:"1f3a9",tornado:"1f32a",tr:"1f1f9-1f1f7",trackball:"1f5b2",tractor:"1f69c",traffic_light:"1f6a5",train:"1f68b",train2:"1f686",tram:"1f68a",triangular_flag_on_post:"1f6a9",triangular_ruler:"1f4d0",trident:"1f531",trinidad_tobago:"1f1f9-1f1f9",tristan_da_cunha:"1f1f9-1f1e6",triumph:"1f624",trolleybus:"1f68e",trophy:"1f3c6",tropical_drink:"1f379",tropical_fish:"1f420",truck:"1f69a",trumpet:"1f3ba",tshirt:"1f455",tulip:"1f337",tumbler_glass:"1f943",tunisia:"1f1f9-1f1f3",turkey:"1f983",turkmenistan:"1f1f9-1f1f2",turks_caicos_islands:"1f1f9-1f1e8",turtle:"1f422",tuvalu:"1f1f9-1f1fb",tv:"1f4fa",twisted_rightwards_arrows:"1f500",two:"0032-20e3",two_hearts:"1f495",two_men_holding_hands:"1f46c",two_women_holding_hands:"1f46d",u5272:"1f239",u5408:"1f234",u55b6:"1f23a",u6307:"1f22f",u6708:"1f237",u6709:"1f236",u6e80:"1f235",u7121:"1f21a",u7533:"1f238",u7981:"1f232",u7a7a:"1f233",uganda:"1f1fa-1f1ec",uk:"1f1ec-1f1e7",ukraine:"1f1fa-1f1e6",umbrella:"2614",unamused:"1f612",underage:"1f51e",unicorn:"1f984",united_arab_emirates:"1f1e6-1f1ea",united_nations:"1f1fa-1f1f3",unlock:"1f513",up:"1f199",upside_down_face:"1f643",uruguay:"1f1fa-1f1fe",us:"1f1fa-1f1f8",us_outlying_islands:"1f1fa-1f1f2",us_virgin_islands:"1f1fb-1f1ee",uzbekistan:"1f1fa-1f1ff",v:"270c",vampire:"1f9db",vampire_man:"1f9db-2642",vampire_woman:"1f9db-2640",vanuatu:"1f1fb-1f1fa",vatican_city:"1f1fb-1f1e6",venezuela:"1f1fb-1f1ea",vertical_traffic_light:"1f6a6",vhs:"1f4fc",vibration_mode:"1f4f3",video_camera:"1f4f9",video_game:"1f3ae",vietnam:"1f1fb-1f1f3",violin:"1f3bb",virgo:"264d",volcano:"1f30b",volleyball:"1f3d0",vomiting_face:"1f92e",vs:"1f19a",vulcan_salute:"1f596",waffle:"1f9c7",wales:"1f3f4-e0067-e0062-e0077-e006c-e0073-e007f",walking:"1f6b6",walking_man:"1f6b6-2642",walking_woman:"1f6b6-2640",wallis_futuna:"1f1fc-1f1eb",waning_crescent_moon:"1f318",waning_gibbous_moon:"1f316",warning:"26a0",wastebasket:"1f5d1",watch:"231a",water_buffalo:"1f403",water_polo:"1f93d",watermelon:"1f349",wave:"1f44b",wavy_dash:"3030",waxing_crescent_moon:"1f312",waxing_gibbous_moon:"1f314",wc:"1f6be",weary:"1f629",wedding:"1f492",weight_lifting:"1f3cb",weight_lifting_man:"1f3cb-2642",weight_lifting_woman:"1f3cb-2640",western_sahara:"1f1ea-1f1ed",whale:"1f433",whale2:"1f40b",wheel_of_dharma:"2638",wheelchair:"267f",white_check_mark:"2705",white_circle:"26aa",white_flag:"1f3f3",white_flower:"1f4ae",white_haired_man:"1f468-1f9b3",white_haired_woman:"1f469-1f9b3",white_heart:"1f90d",white_large_square:"2b1c",white_medium_small_square:"25fd",white_medium_square:"25fb",white_small_square:"25ab",white_square_button:"1f533",wilted_flower:"1f940",wind_chime:"1f390",wind_face:"1f32c",wine_glass:"1f377",wink:"1f609",wolf:"1f43a",woman:"1f469",woman_artist:"1f469-1f3a8",woman_astronaut:"1f469-1f680",woman_cartwheeling:"1f938-2640",woman_cook:"1f469-1f373",woman_dancing:"1f483",woman_facepalming:"1f926-2640",woman_factory_worker:"1f469-1f3ed",woman_farmer:"1f469-1f33e",woman_firefighter:"1f469-1f692",woman_health_worker:"1f469-2695",woman_in_manual_wheelchair:"1f469-1f9bd",woman_in_motorized_wheelchair:"1f469-1f9bc",woman_judge:"1f469-2696",woman_juggling:"1f939-2640",woman_mechanic:"1f469-1f527",woman_office_worker:"1f469-1f4bc",woman_pilot:"1f469-2708",woman_playing_handball:"1f93e-2640",woman_playing_water_polo:"1f93d-2640",woman_scientist:"1f469-1f52c",woman_shrugging:"1f937-2640",woman_singer:"1f469-1f3a4",woman_student:"1f469-1f393",woman_teacher:"1f469-1f3eb",woman_technologist:"1f469-1f4bb",woman_with_headscarf:"1f9d5",woman_with_probing_cane:"1f469-1f9af",woman_with_turban:"1f473-2640",womans_clothes:"1f45a",womans_hat:"1f452",women_wrestling:"1f93c-2640",womens:"1f6ba",woozy_face:"1f974",world_map:"1f5fa",worried:"1f61f",wrench:"1f527",wrestling:"1f93c",writing_hand:"270d",x:"274c",yarn:"1f9f6",yawning_face:"1f971",yellow_circle:"1f7e1",yellow_heart:"1f49b",yellow_square:"1f7e8",yemen:"1f1fe-1f1ea",yen:"1f4b4",yin_yang:"262f",yo_yo:"1fa80",yum:"1f60b",zambia:"1f1ff-1f1f2",zany_face:"1f92a",zap:"26a1",zebra:"1f993",zero:"0030-20e3",zimbabwe:"1f1ff-1f1fc",zipper_mouth_face:"1f910",zombie:"1f9df",zombie_man:"1f9df-2642",zombie_woman:"1f9df-2640",zzz:"1f4a4"};function Oh(e,t){var n=oc(e);if(sl){var r=sl(e);t&&(r=fc(r).call(r,(function(t){return dl(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ph(e){for(var t=1;t>>0===i))throw new RangeError("Invalid code point: ".concat(i));i<=65535?t=e.push(i):(i-=65536,t=e.push(55296+(i>>10),i%1024+56320)),t>=16383&&(n+=String.fromCharCode.apply(null,e),e.length=0)}return n+String.fromCharCode.apply(null,e)}var Nh=function(e){An(n,Cc);var t=Lh(n);function n(){var e,r=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config;if(mn(this,n),(e=t.call(this,{config:r})).options={useUnicode:!0,upperCase:!1,customHandled:!1,resourceURL:"https://github.githubassets.com/images/icons/emoji/unicode/${code}.png?v8",emojis:Ph({},Rh)},"object"!==ci(r))return ui(e);var a=r.useUnicode,i=r.customResourceURL,o=r.customRenderer,s=r.upperCase;return e.options.useUnicode="boolean"==typeof a?a:e.options.useUnicode,e.options.upperCase="boolean"==typeof s?s:e.options.upperCase,!1===a&&"string"==typeof i&&(e.options.resourceURL=i),"function"==typeof o&&(e.options.customHandled=!0,e.options.customRenderer=o),e}return gn(n,[{key:"makeHtml",value:function(e,t){var n=this;return this.test(e)?e.replace(this.RULE.reg,(function(e,t){var r;if(n.options.customHandled&&"function"==typeof n.options.customRenderer)return n.options.customRenderer(t);var a=n.options.emojis[t];if("string"!=typeof a)return e;if(n.options.useUnicode){var i,o=Lc(i=a.split("-")).call(i,(function(e){return"0x".concat(e)}));return Ih.apply(void 0,Uf(o))}n.options.upperCase&&(a=a.toUpperCase());var s=n.options.resourceURL.replace(/\$\{code\}/g,a);return Vs(r='')).call(r,Zl(t),'')})):e}},{key:"rule",value:function(){var e={begin:":",content:"([a-zA-Z0-9+_]+?)",end:":"};return e.reg=cf(e,"g"),e}}]),n}();function Mh(e){var t=function(){if("undefined"==typeof Reflect||!ln)return!1;if(ln.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ln(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pi(e);if(t){var a=pi(this).constructor;n=ln(r,arguments,a)}else n=r.apply(this,arguments);return ui(this,n)}}hi(Nh,"HOOK_NAME","emoji");var jh=function(e){An(n,Cc);var t=Mh(n);function n(){return mn(this,n),t.apply(this,arguments)}return gn(n,[{key:"makeHtml",value:function(e){return this.test(e)?e.replace(this.RULE.reg,'$1$2$3'):e}},{key:"rule",value:function(){var e={begin:"(^| )\\/",end:"\\/( |$)",content:"([^\\n]+?)"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}]),n}();function Dh(e){var t=function(){if("undefined"==typeof Reflect||!ln)return!1;if(ln.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ln(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pi(e);if(t){var a=pi(this).constructor;n=ln(r,arguments,a)}else n=r.apply(this,arguments);return ui(this,n)}}hi(jh,"HOOK_NAME","underline");var Fh=function(e){An(n,Cc);var t=Dh(n);function n(){return mn(this,n),t.apply(this,arguments)}return gn(n,[{key:"makeHtml",value:function(e){return this.test(e)?e.replace(this.RULE.reg,"$1$2$3"):e}},{key:"rule",value:function(){var e={begin:"(^| )==",end:"==( |$|\\n)",content:"([^\\n]+?)"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}]),n}();hi(Fh,"HOOK_NAME","highLight");var Bh=Xa;N.JSON||(N.JSON={stringify:JSON.stringify});var Hh=function(e,t,n){return f(N.JSON.stringify,null,arguments)},zh=Nt.includes,Uh=o((function(){return!Array(1).includes()}));Ve({target:"Array",proto:!0,forced:Uh},{includes:function(e){return zh(this,e,arguments.length>1?arguments[1]:void 0)}});var Wh=Ws("Array").includes,qh=m("".indexOf);Ve({target:"String",proto:!0,forced:!Zp("includes")},{includes:function(e){return!!~qh(Wn(P(this)),Wn(Gp(e)),arguments.length>1?arguments[1]:void 0)}});var Gh=Ws("String").includes,Kh=Array.prototype,Zh=String.prototype,Yh=function(e){var t=e.includes;return e===Kh||D(Kh,e)&&t===Kh.includes?Wh:"string"==typeof e||e===Zh||D(Zh,e)&&t===Zh.includes?Gh:t},Xh=i.TypeError,Vh=/MSIE .\./.test(F),Jh=i.Function,Qh=function(e){return Vh?function(t,n){var r=function(e,t){if(e2,a=b(t)?t:Jh(t),i=r?Je(arguments,2):void 0;return e(r?function(){f(a,this,i)}:a,n)}:e},eg={setTimeout:Qh(i.setTimeout),setInterval:Qh(i.setInterval)},tg=eg.setInterval;Ve({global:!0,bind:!0,forced:i.setInterval!==tg},{setInterval:tg});var ng=eg.setTimeout;Ve({global:!0,bind:!0,forced:i.setTimeout!==ng},{setTimeout:ng});var rg=N.setTimeout;var ag=function(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n",keyword:"》",value:">"}],mg=[{icon:"FullWidth",label:"[]",keyword:"【】",value:"[]",goLeft:1},{icon:"FullWidth",label:"【】",keyword:"【",value:"【】",goLeft:1},{icon:"link",label:"Link",keyword:"【】",value:"[title](https://url)",selection:{from:19,to:14}},{icon:"FullWidth",label:"()",keyword:"(",value:"()",goLeft:1},{icon:"FullWidth",label:"()",keyword:"(",value:"()",goLeft:1},{icon:"FullWidth",label:"<>",keyword:"《》",value:"<>",goLeft:1},{icon:"FullWidth",label:"《》",keyword:"《》",value:"《》",goLeft:1},{icon:"FullWidth",label:'""',keyword:"“”",value:'""',goLeft:1},{icon:"FullWidth",label:"“”",keyword:"“”",value:"”“",goLeft:1}],bg=Vs(gg).call(gg,mg);var vg=vn,yg=function(){return"CodeMirror.Pass"};function _g(e,t){var n=void 0!==Bh&&Ef(e)||e["@@iterator"];if(!n){if(rl(e)||(n=function(e,t){var n;if(!e)return;if("string"==typeof e)return kg(e,t);var r=Kf(n=Object.prototype.toString.call(e)).call(n,8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Up(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return kg(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function kg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n')).call(c,n)).call(s,r,"
    "):!1===(null===(a=this.suggester[n])||void 0===a?void 0:a.echo)?"".concat(t):this.suggester[n]?r?t+r:"".concat(t):t+r}},{key:"rule",value:function(){var e,t,n;if(!this.suggester||oc(this.suggester).length<=0)return{};var r=Lc(e=oc(this.suggester)).call(e,(function(e){return dg(e)})).join("|");return{reg:new RegExp(Vs(t=Vs(n="".concat(lf()?"((?'),this.searchCache=!1,this.searchKeyCache=[],this.optionList=[],this.cursorMove=!0,this.suggesterConfig={}}return gn(e,[{key:"tryCreatePanel",value:function(){var e,t,n;!this.$suggesterPanel&&fp()&&document&&(null===(e=document)||void 0===e||null===(t=e.body)||void 0===t||t.appendChild(this.createDom(this.panelWrap)),this.$suggesterPanel=null===(n=document)||void 0===n?void 0:n.querySelector(".cherry-suggester-panel"))}},{key:"hasEditor",value:function(){return!!this.editor&&!!this.editor.editor.display&&!!this.editor.editor.display.wrapper}},{key:"setEditor",value:function(e){this.editor=e}},{key:"setSuggester",value:function(e){this.suggesterConfig=e}},{key:"bindEvent",value:function(){var e=this,t=!1;this.editor.editor.on("change",(function(n,r){t=!0,e.onCodeMirrorChange(n,r)})),this.editor.editor.on("keydown",(function(n,r){t=!0,e.enableRelate()&&e.onKeyDown(n,r)})),this.editor.editor.on("cursorActivity",(function(){t||e.stopRelate(),t=!1}));var n=this.editor.editor.getOption("extraKeys"),r=["Up","Down","Enter"];ac(r).call(r,(function(t){if("function"==typeof n[t]){var r=n[t];n[t]=function(t){if(e.cursorMove){var n=r.call(t,t);if(n)return n}}}else if(n[t]){if("string"==typeof n[t]){var a=n[t];n[t]=function(t){e.cursorMove&&e.editor.editor.execCommand(a)}}}else n[t]=function(){if(e.cursorMove)return yg()}})),this.editor.editor.setOption("extraKeys",n),this.editor.editor.on("scroll",(function(t,n){e.searchCache&&e.relocatePanel(e.editor.editor)})),this.onClickPanelItem()}},{key:"onClickPanelItem",value:function(){var e=this;this.tryCreatePanel(),this.$suggesterPanel.addEventListener("click",(function(t){var n,r,a,i,o=(n=e.$suggesterPanel,r=t.target,i=-1,ac(a=n.childNodes).call(a,(function(e,t){return e===r?i=t:""})),i);o>-1&&e.pasteSelectResult(o),e.stopRelate()}),!1)}},{key:"showSuggesterPanel",value:function(e){var t=e.left,n=e.top,r=e.items;this.tryCreatePanel(),!this.$suggesterPanel&&fp()&&(document.body.appendChild(this.createDom(this.panelWrap)),this.$suggesterPanel=document.querySelector(".cherry-suggester-panel")),this.updatePanel(r),this.$suggesterPanel.style.left="".concat(t,"px"),this.$suggesterPanel.style.top="".concat(n,"px"),this.$suggesterPanel.style.display="block",this.$suggesterPanel.style.position="absolute",this.$suggesterPanel.style.zIndex="100"}},{key:"hideSuggesterPanel",value:function(){this.tryCreatePanel(),this.$suggesterPanel&&(this.$suggesterPanel.style.display="none")}},{key:"updatePanel",value:function(e){var t=this;this.tryCreatePanel();var n=Lc(e).call(e,(function(e,n){if("object"===ci(e)&&null!==e){var r,a=e.label;if(null!=e&&e.icon)a=Vs(r='')).call(r,a);return t.renderPanelItem(a,0===n)}return t.renderPanelItem(e,0===n)})).join(""),r=this.suggesterConfig[this.keyword];r&&"function"==typeof r.suggestListRender&&(n=r.suggestListRender.call(this,e)||n),this.$suggesterPanel.innerHTML="","string"==typeof n?this.$suggesterPanel.innerHTML=n:rl(n)&&n.length>0?ac(n).call(n,(function(e){t.$suggesterPanel.appendChild(e)})):"object"===ci(n)&&1===n.nodeType&&this.$suggesterPanel.appendChild(n)}},{key:"renderPanelItem",value:function(e,t){return t?'
    '.concat(e,"
    "):'
    '.concat(e,"
    ")}},{key:"createDom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.template||(this.template=document.createElement("div")),this.template.innerHTML=qc(e).call(e);var t=document.createDocumentFragment();return Lc(Array.prototype).call(this.template.childNodes,(function(e,n){t.appendChild(e)})),t}},{key:"relocatePanel",value:function(e){var t=document.querySelector(".CodeMirror-cursors .CodeMirror-cursor");if(t||(t=document.querySelector(".CodeMirror-selected")),!t)return!1;var n=e.getCursor(),r=e.lineInfo(n.line).handle.height,a=t.getBoundingClientRect(),i=a.top+r,o=a.left;this.showSuggesterPanel({left:o,top:i,items:this.optionList})}},{key:"getCursorPos",value:function(e){var t=document.querySelector(".CodeMirror-cursors .CodeMirror-cursor");if(!t)return null;var n=e.getCursor(),r=e.lineInfo(n.line).handle.height,a=t.getBoundingClientRect(),i=a.top+r;return{left:a.left,top:i}}},{key:"startRelate",value:function(e,t,n){this.cursorFrom=n,this.keyword=t,this.searchCache=!0,this.relocatePanel(e)}},{key:"stopRelate",value:function(){this.hideSuggesterPanel(),this.cursorFrom=null,this.cursorTo=null,this.keyword="",this.searchKeyCache=[],this.searchCache=!1,this.cursorMove=!0,this.optionList=[]}},{key:"pasteSelectResult",value:function(e,t){if(this.cursorTo&&this.cursorTo!==this.cursorFrom||(this.cursorTo=JSON.parse(Hh(this.cursorFrom))),this.cursorTo){this.cursorTo.ch+=1;var n=this.cursorFrom,r=this.cursorTo;if(this.optionList[e]){var a="";if("object"===ci(this.optionList[e])&&null!==this.optionList[e]&&"string"==typeof this.optionList[e].value)a=this.optionList[e].value;else if("object"===ci(this.optionList[e])&&null!==this.optionList[e]&&"function"==typeof this.optionList[e].value)a=this.optionList[e].value();else if("string"==typeof this.optionList[e])a="".concat(this.optionList[e]," ");else{var i;a=Vs(i=" ".concat(this.keyword)).call(i,this.optionList[e]," ")}if(a&&this.editor.editor.replaceRange(a,n,r),this.optionList[e].goLeft){var o=this.editor.editor.getCursor();this.editor.editor.setCursor(o.line,o.ch-this.optionList[e].goLeft)}if(this.optionList[e].selection){var s=this.editor.editor.getCursor().line,c=this.editor.editor.getCursor().ch;this.editor.editor.setSelection({line:s,ch:c-this.optionList[e].selection.from},{line:s,ch:c-this.optionList[e].selection.to})}}}}},{key:"findSelectedItemIndex",value:function(){return bc(Array.prototype).call(this.$suggesterPanel.childNodes,(function(e){return e.classList.contains("cherry-suggester-panel__item--selected")}))}},{key:"enableRelate",value:function(){return this.searchCache}},{key:"onCodeMirrorChange",value:function(e,t){var n=this,r=t.text,a=t.from,i=t.to,o=t.origin,s=1===r.length?r[0]:"";if(!this.enableRelate()&&this.suggesterConfig[s]&&this.startRelate(e,s,a),this.enableRelate()&&(s||"+delete"===o)){var c;if(this.cursorTo=i,s)this.searchKeyCache.push(s);else if("+delete"===o&&(this.searchKeyCache.pop(),0===this.searchKeyCache.length))return void this.stopRelate();"function"==typeof(null===(c=this.suggesterConfig[this.keyword])||void 0===c?void 0:c.suggestList)&&this.suggesterConfig[this.keyword].suggestList(this.searchKeyCache.join(""),(function(e){!1!==e?(n.optionList=e&&e.length?e:[],n.updatePanel(n.optionList)):n.stopRelate()}))}}},{key:"onKeyDown",value:function(e,t){var n,r=this;if(this.tryCreatePanel(),!this.$suggesterPanel)return!1;var a=t.keyCode;if(Yh(n=[38,40]).call(n,a)){if(0===this.optionList.length)return void rg((function(){r.stopRelate()}),0);this.cursorMove=!1;var i=this.$suggesterPanel.querySelector(".cherry-suggester-panel__item--selected"),o=null;38!==a||i.previousElementSibling?40!==a||i.nextElementSibling?38===a?o=i.previousElementSibling:40===a&&(o=i.nextElementSibling):o=this.$suggesterPanel.firstElementChild:o=this.$suggesterPanel.lastElementChild,i.classList.remove("cherry-suggester-panel__item--selected"),o.classList.add("cherry-suggester-panel__item--selected")}else 13===a?(t.stopPropagation(),this.cursorMove=!1,this.pasteSelectResult(this.findSelectedItemIndex(),t),e.focus(),rg((function(){r.stopRelate()}),0)):27!==a&&37!==a&&39!==a||(t.stopPropagation(),e.focus(),rg((function(){r.stopRelate()}),0))}}]),e}();function Ag(e){var t=function(){if("undefined"==typeof Reflect||!ln)return!1;if(ln.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ln(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pi(e);if(t){var a=pi(this).constructor;n=ln(r,arguments,a)}else n=r.apply(this,arguments);return ui(this,n)}}var xg=function(e){An(n,Cc);var t=Ag(n);function n(){return mn(this,n),t.apply(this,arguments)}return gn(n,[{key:"makeHtml",value:function(e){return this.test(e)?e.replace(this.RULE.reg,"$1$2$3$4"):e}},{key:"rule",value:function(){var e={begin:"(^| )\\{",end:"\\}( |$)",content:"([^\n]+?)\\|([^\n]+?)"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}]),n}();function Cg(e){var t=function(){if("undefined"==typeof Reflect||!ln)return!1;if(ln.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ln(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pi(e);if(t){var a=pi(this).constructor;n=ln(r,arguments,a)}else n=r.apply(this,arguments);return ui(this,n)}}hi(xg,"HOOK_NAME","ruby");var Tg=function(e){An(n,eu);var t=Cg(n);function n(e){var r;return mn(this,n),(r=t.call(this,{needCache:!0})).initBrReg(e.globalConfig.classicBr),r}return gn(n,[{key:"makeHtml",value:function(e,t){var n=this;return e.replace(this.RULE.reg,(function(e,r,a,i){var o,s,c,l,u,f=n.getLineCount(e,r),d=n.$engine.md5(e),p=n.$getPanelInfo(a,i,t),h=p.title,g=p.body,m=p.appendStyle,b=p.className;return el(e,n.pushCache(Vs(o=Vs(s=Vs(c=Vs(l=Vs(u='
    ")).call(s,h)).call(o,g,"
    "),d,f))}))}},{key:"$getClassByType",value:function(e){return/(left|right|center)/i.test(e)?"cherry-text-align cherry-text-align__".concat(e):"cherry-panel cherry-panel__".concat(e)}},{key:"$getPanelInfo",value:function(e,t,n){var r,a=this,i={type:this.$getTargetType(e),title:n(this.$getTitle(e)).html,body:t,appendStyle:"",className:""};i.className=this.$getClassByType(i.type),/(left|right|center)/i.test(i.type)&&(i.appendStyle='style="text-align:'.concat(i.type,';"')),i.title=Vs(r='
    ')).call(r,i.title,"
    ");var o=function(e){var t,r;if(""===qc(e).call(e))return"";var i=n(e).html,o="p";return new RegExp("<(".concat(Wl,")[^>]*>"),"i").test(i)&&(o="div"),Vs(t=Vs(r="<".concat(o,">")).call(r,a.$cleanParagraph(i),"")},s="";return s=this.isContainsCache(i.body)?this.makeExcludingCached(i.body,o):o(i.body),i.body='
    '.concat(s,"
    "),i}},{key:"$getTitle",value:function(e){var t=qc(e).call(e);return/\s/.test(t)?t.replace(/[^\s]+\s/,""):""}},{key:"$getTargetType",value:function(e){var t=/\s/.test(qc(e).call(e))?qc(e).call(e).replace(/\s.*$/,""):e;switch(qc(t).call(t).toLowerCase()){case"primary":case"p":default:return"primary";case"info":case"i":return"info";case"warning":case"w":return"warning";case"danger":case"d":return"danger";case"success":case"s":return"success";case"right":case"r":return"right";case"center":case"c":return"center";case"left":case"l":return"left"}}},{key:"rule",value:function(){return(e={begin:/(?:^|\n)(\n*(?:[^\S\n]*)):::([^:][^\n]+?)\s*\n/,content:/([\w\W]*?)/,end:/\n[ \t]*:::[ \t]*(?=$|\n+)/}).reg=new RegExp(e.begin.source+e.content.source+e.end.source,"g"),e;var e}}]),n}();function $g(e){var t=function(){if("undefined"==typeof Reflect||!ln)return!1;if(ln.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ln(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pi(e);if(t){var a=pi(this).constructor;n=ln(r,arguments,a)}else n=r.apply(this,arguments);return ui(this,n)}}hi(Tg,"HOOK_NAME","panel");var Rg=function(e){An(n,eu);var t=$g(n);function n(){return mn(this,n),t.call(this,{needCache:!0})}return gn(n,[{key:"makeHtml",value:function(e,t){var n=this;return e.replace(this.RULE.reg,(function(e,r,a,i,o){var s,c,l,u=n.getLineCount(e,r),f=n.$engine.md5(e),d=n.$getDetailInfo(a,i,o,t),p=d.type,h=d.html;return el(e,n.pushCache(Vs(s=Vs(c=Vs(l='
    ')).call(s,h,"
    "),f,u))}))}},{key:"$getDetailInfo",value:function(e,t,n,r){var a=this,i=/\n\s*(\+\+|\+\+-)\s*[^\n]+\n/.test(n)?"multiple":"single",o=n.split(/\n\s*(\+\+[-]{0,1}\s*[^\n]+)\n/),s="-"===e,c=t,l="";return"multiple"===i?ac(o).call(o,(function(e){if(/\+\+/.test(e))return s=/\+\+-/.test(e),c=e.replace(/\+\+[-]{0,1}\s*([^\n]+)$/,"$1"),!0;l+=a.$getDetailHtml(s,c,e,r)})):l=this.$getDetailHtml(s,c,n,r),{type:i,html:l}}},{key:"$getDetailHtml",value:function(e,t,n,r){var a=this,i="
    "),o=function(e){var t,n;if(""===qc(e).call(e))return"";var i=r(e).html,o="p";return new RegExp("<(".concat(Wl,")[^>]*>"),"i").test(i)&&(o="div"),Vs(t=Vs(n="<".concat(o,">")).call(n,a.$cleanParagraph(i),"")};i+="".concat(r(t).html,"");var s="";return s=this.isContainsCache(n)?this.makeExcludingCached(n,o):o(n),i+='
    '.concat(s,"
    "),i+="
    "}},{key:"rule",value:function(){return(e={begin:/(?:^|\n)(\n*(?:[^\S\n]*))\+\+\+([-]{0,1})\s+([^\n]+)\n/,content:/([\w\W]+?)/,end:/\n[ \t]*\+\+\+[ \t]*(?=$|\n+)/}).reg=new RegExp(e.begin.source+e.content.source+e.end.source,"g"),e;var e}}]),n}();hi(Rg,"HOOK_NAME","detail");var Og=[md,vd,sh,lh,$h,yh,kh,Yd,pp,up,Op,bh,Kd,gp,Tp,Rg,Tg,jd,Nh,_p,$d,Lp,Nd,ed,Jf,nd,ud,cd,xg,od,jh,Fh,Eg],Pg={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),qc(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)?Il(n=e.attrs.class).call(n,"ch-icon-check")>=0?r+="[x]":r+="[ ]":e.attrs.class&&/cherry-code-preview-lang-select/.test(e.attrs.class)?r+="":r+=this.$dealTag(e);return r},$dealTag:function(e){var t=this,n="";return e.children&&(n=t.$dealHtml(e.children)),/(style|meta|link|script)/.test(e.name)?"":"code"===e.name||"pre"===e.name?t.tagParser.codeParser(e,t.$dealCodeTag(e),"pre"===e.name):"function"==typeof t.tagParser["".concat(e.name,"Parser")]?t.tagParser["".concat(e.name,"Parser")](e,n):n},$dealCodeTag:function(e){if(e.children.length<0)return"";for(var t="",n=0;n])+>/g,empty:vg?vg(null):{},parseTags:function(e){var t,n=this,r=0,a={type:"tag",name:"",voidElement:!1,attrs:{},children:[]};return e.replace(this.attrRE,(function(i){r%2?t=i:0===r?((n.lookup[i]||"/"===e.charAt(e.length-2))&&(a.voidElement=!0),a.name=i):a.attrs[t]=i.replace(/['"]/g,""),r+=1})),a},parseHtml:function(e,t){var n=this,r=t||{};r.components||(r.components=this.empty);var a,i=[],o=-1,s=[],c={},l=!1;return e.replace(this.tagRE,(function(t,u){if(l){if(t!==""))return;l=!1}var f,d="/"!==t.charAt(1),p=u+t.length,h=e.charAt(p);d&&(o+=1,"tag"===(a=n.parseTags(t)).type&&r.components[a.name]&&(a.type="component",l=!0),a.voidElement||l||!h||"<"===h||a.children.push({type:"text",content:Kf(e).call(e,p,Il(e).call(e,"<",p))}),c[a.tagName]=a,0===o&&i.push(a),(f=s[o-1])&&f.children.push(a),s[o]=a),d&&!a.voidElement||(o-=1,!l&&"<"!==h&&h&&s[o]&&s[o].children.push({type:"text",content:Kf(e).call(e,p,Il(e).call(e,"<",p))}))})),i}},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=[],a=0;a0?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,a,i,o,s,c=t[1].match(/rgb\(([ 0-9]+),([ 0-9]+),([ 0-9]+)\)/);if(c[1]&&c[2]&&c[3])c[1]=Qc(qc(r=c[1]).call(r),10),c[2]=Qc(qc(a=c[2]).call(a),10),c[3]=Qc(qc(i=c[3]).call(i),10),n=Vs(o=Vs(s="#".concat(c[1].toString(16))).call(s,c[2].toString(16))).call(o,c[3].toString(16))}else{n=fd(t,2)[1]}return n}return""}}},mdFormatEngine:{convertColor:function(e,t){var n,r=qc(e).call(e);return!r||/\n/.test(r)?r:t?Vs(n="!!".concat(t," ")).call(n,r,"!!"):r},convertSize:function(e,t){var n,r=qc(e).call(e);return!r||/\n/.test(r)?r:t?Vs(n="!".concat(t," ")).call(n,r,"!"):r},convertBgColor:function(e,t){var n,r=qc(e).call(e);return!r||/\n/.test(r)?r:t?Vs(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 Vs(n="![".concat(r,"](")).call(n,t,")")},convertGraph:function(e,t,n,r){var a,i,o,s=e&&e.length>0?e:"graph",c="";if(r)try{var l,u=r.attrs;ac(l=oc(u)).call(l,(function(e){var t;Object.prototype.hasOwnProperty.call(u,e)&&(Il(e).call(e,"data-graph-")>=0&&u[e]&&(c+=Vs(t=" ".concat(e,"=")).call(t,u[e])))}))}catch(e){}return Vs(a=Vs(i=Vs(o="![".concat(s,"](")).call(o,t,"){data-control=tapd-graph data-origin-xml=")).call(i,n)).call(a,c,"}")},convertVideo:function(e,t,n,r){var a,i,o=r&&r.length>0?r:"video";return Vs(a=Vs(i="!video[".concat(o,"](")).call(i,t,"){poster=")).call(a,n,"}")},convertA:function(e,t){var n;if(e===t)return"".concat(e," ");var r=qc(e).call(e);return r?Vs(n="[".concat(r,"](")).call(n,t,")"):r},convertSup:function(e){return"^".concat(qc(e).call(e).replace(/\^/g,"\\^"),"^")},convertSub:function(e){return"^^".concat(qc(e).call(e).replace(/\^\^/g,"\\^\\^"),"^^")},convertTd:function(e){return"~|".concat(qc(e).call(e).replace(/\n{1,}/g,"
    ").replace(/ /g,"~s~")," ~|")},convertTh:function(e){return/^\s*$/.test(e)?"":"~|".concat(qc(e).call(e).replace(/\n{1,}/g,"
    ")," ~|")},convertTr:function(e){return/^\s*$/.test(e)?"":"".concat(qc(e).call(e).replace(/\n/g,""),"\n")},convertThead:function(e){var t,n="".concat(e.replace(/[ \t]+/g,"").replace(/~\|~\|/g,"~|").replace(/~\|/g,"|"),"\n"),r=n.match(/\|/g).length-1;return Vs(t="".concat(n,"|")).call(t,Ld(":-:|").call(":-:|",r),"\n")},convertTable:function(e){var t="\n".concat(e.replace(/[ \t]+/g,"").replace(/~\|~\|/g,"~|").replace(/~\|/g,"|"),"\n").replace(/\n{2,}/g,"\n").replace(/\n[ \t]+\n/g,"\n").replace(/~s~/g," ");if(!/\|:-:\|/.test(t)){var n,r,a=t.match(/^\n[^\n]+\n/)[0].match(/\|/g).length-1;t=Vs(n=Vs(r="\n|".concat(Ld(" |").call(" |",a),"\n|")).call(r,Ld(":-:|").call(":-:|",a))).call(n,t)}return t},convertLi:function(e){return"- ".concat(e.replace(/^\n/,"").replace(/\n+$/,"").replace(/\n+/g,"\n\t"),"\n")},convertUl:function(e){return"".concat(e,"\n")},convertOl:function(e){for(var t=e.split("\n"),n=1,r=0;r".concat(qc(e).call(e),"\n\n")},convertAddress:function(e){return">".concat(qc(e).call(e),"\n\n")}},paragraphStyleClear:function(e){for(var t=0;t1)for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:"absolute",n=e.getBoundingClientRect();return"fixed"===t?n:"sidebar"===t?{left:Mg.getTargetParentByButton(e).offsetLeft-130+n.width,top:e.offsetTop+n.height/2,width:n.width,height:n.height}:{left:e.offsetLeft,top:e.offsetTop,width:n.width,height:n.height}}var Mg=function(){function e(t){mn(this,e),hi(this,"_onClick",void 0),this.$cherry=t,this.bubbleMenu=!1,this.subMenu=null,this.name="",this.editor=t.editor,this.locale=t.locale,this.dom=null,this.updateMarkdown=!0,this.subMenuConfig=[],this.noIcon=!1,this.cacheOnce=!1,this.positionModel="absolute","function"==typeof this._onClick&&(Ju.warn("`MenuBase._onClick` is deprecated. Override `fire` instead"),this.fire=this._onClick)}return gn(e,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"setName",value:function(e,t){this.name=e,this.iconName=t}},{key:"setCacheOnce",value:function(e){this.cacheOnce=e}},{key:"getAndCleanCacheOnce",value:function(){this.updateMarkdown=!0;var e=this.cacheOnce;return this.cacheOnce=!1,e}},{key:"hasCacheOnce",value:function(){return!1!==this.cacheOnce}},{key:"createBtn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=rh("span",e?"cherry-dropdown-item":"cherry-toolbar-button cherry-toolbar-".concat(this.iconName?this.iconName:this.name),{title:this.locale[this.name]||Zl(this.name)});if(this.iconName&&!this.noIcon){var n=rh("i","ch-icon ch-icon-".concat(this.iconName));t.appendChild(n)}return(e||this.noIcon)&&(t.innerHTML+=this.locale[this.name]||Zl(this.name)),e||this.dom||(this.dom=t),t}},{key:"createSubBtnByConfig",value:function(e){var t=e.name,n=e.iconName,r=e.onclick,a=rh("span","cherry-dropdown-item",{title:this.locale[t]||Zl(t)});if(n){var i=rh("i","ch-icon ch-icon-".concat(n));a.appendChild(i)}return a.innerHTML+=this.locale[t]||Zl(t),a.addEventListener("click",r,!1),a}},{key:"fire",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(null==e||e.stopPropagation(),"function"==typeof this.onClick){var r=this.editor.editor.getSelections();this.isSelections=r.length>1;var a=Lc(r).call(r,(function(r,a,i){return t.onClick(r,n,e)||i[a]}));!this.bubbleMenu&&this.updateMarkdown&&(this.editor.editor.replaceSelections(a,"around"),this.editor.editor.focus(),this.$afterClick())}}},{key:"$getSelectionRange",value:function(){var e=this.editor.editor.listSelections()[0],t=e.anchor,n=e.head;return t.line===n.line&&t.ch>n.ch||t.line>n.line?{begin:n,end:t}:{begin:t,end:n}}},{key:"registerAfterClickCb",value:function(e){this.afterClickCb=e}},{key:"$afterClick",value:function(){"function"!=typeof this.afterClickCb||this.isSelections||(this.afterClickCb(),this.afterClickCb=null)}},{key:"setLessSelection",value:function(e,t){var n,r,a,i,o=this.editor.editor,s=this.$getSelectionRange(),c=s.begin,l=s.end,u={line:(null===(n=e.match(/\n/g))||void 0===n?void 0:n.length)>0?c.line+e.match(/\n/g).length:c.line,ch:(null===(r=e.match(/\n/g))||void 0===r?void 0:r.length)>0?e.replace(/^[\s\S]*?\n([^\n]*)$/,"$1").length:c.ch+e.length},f=(null===(a=t.match(/\n/g))||void 0===a?void 0:a.length)>0?l.line-t.match(/\n/g).length:l.line,d={line:f,ch:(null===(i=t.match(/\n/g))||void 0===i?void 0:i.length)>0?o.getLine(f).length:l.ch-t.length};o.setSelection(u,d)}},{key:"getMoreSelection",value:function(e,t,n){var r=this.editor.editor,a=this.$getSelectionRange(),i=a.begin,o=a.end,s=/\n/.test(e)?0:i.ch-e.length;s=s<0?0:s;var c,l=/\n/.test(e)?i.line-e.match(/\n/g).length:i.line,u={line:l=l<0?0:l,ch:s},f=o.line,d=o.ch;/\n/.test(t)?(f=o.line+t.match(/\n/g).length,d=null===(c=r.getLine(f))||void 0===c?void 0:c.length):d=r.getLine(o.line).length1&&void 0!==arguments[1]?arguments[1]:"word",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.editor.editor;if(this.isSelections)return e;if(e&&!n)return e;if("line"===t){var a=this.$getSelectionRange(),i=a.begin,o=a.end;return r.setSelection({line:i.line,ch:0},{line:o.line,ch:r.getLine(o.line).length}),r.getSelection()}if("word"===t){var s=r.findWordAt(r.getCursor()),c=s.anchor,l=s.head;return r.setSelection(c,l),r.getSelection()}}},{key:"bindSubClick",value:function(e,t){return this.fire(null,e)}},{key:"onClick",value:function(e,t,n){return e}},{key:"shortcutKeys",get:function(){return[]}},{key:"getMenuPosition",value:function(){var t=e.getTargetParentByButton(this.dom),n=/cherry-sidebar/.test(t.className);return/cherry-bubble/.test(t.className)||/cherry-floatmenu/.test(t.className)?this.positionModel="fixed":this.positionModel=n?"sidebar":"absolute",Ng(this.dom,this.positionModel)}}],[{key:"getTargetParentByButton",value:function(e){var t=e.parentElement;return/toolbar-(left|right)/.test(t.className)&&(t=t.parentElement),t}}]),e}();function jg(e){var t=function(){if("undefined"==typeof Reflect||!ln)return!1;if(ln.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ln(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pi(e);if(t){var a=pi(this).constructor;n=ln(r,arguments,a)}else n=r.apply(this,arguments);return ui(this,n)}}function Dg(e,t,n){var r,a={};return ac(r=oc(e)).call(r,(function(r){-1!==Il(t).call(t,r)&&("object"===ci(n)?"string"==typeof n[r]?ci(e[r])===n[r]&&(a[r]=e[r]):e[r]instanceof n[r]&&(a[r]=e[r]):"string"==typeof n&&ci(e[r])===n&&(a[r]=e[r]))})),a}var Fg={HOOKS_TYPE_LIST:xc},Bg=[];fp()||ac(Bg).call(Bg,(function(e){}));var Hg=function(){function e(){mn(this,e)}return gn(e,null,[{key:"usePlugin",value:function(t){var n;if(this===e)throw new Error("`usePlugin` is not allowed to called through CherryStatic class.");if(this.initialized)throw new Error("The function `usePlugin` should be called before Cherry is instantiated.");if(!0!==t.$cherry$mounted){for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:{};return mn(this,r),(e=t===xc.PAR?n.call(this,{needCache:!!o.needCache,defaultCache:o.defaultCache}):n.call(this)).config=a.config,ui(e)}return gn(r,[{key:"beforeMakeHtml",value:function(){for(var e,t,n=arguments.length,a=new Array(n),o=0;o0&&r[0]<4?1:+(r[0]+r[1])),!a&&B&&(!(r=B.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=B.match(/Chrome\/(\d+)/))&&(a=+r[1]);var q=a,G=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&q&&q<41})),K=G&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Z=o.Object,Y=K?function(e){return"symbol"==typeof e}:function(e){var t=D("Symbol");return v(t)&&F(t.prototype,Z(e))},X=o.String,V=function(e){try{return X(e)}catch(e){return"Object"}},J=o.TypeError,Q=function(e){if(v(e))return e;throw J(V(e)+" is not a function")},ee=function(e,t){var n=e[t];return null==n?void 0:Q(n)},te=o.TypeError,ne=Object.defineProperty,re="__core-js_shared__",ae=o[re]||function(e,t){try{ne(o,e,{value:t,configurable:!0,writable:!0})}catch(n){o[e]=t}return t}(re,{}),ie=n((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(L(e))},ce=b({}.hasOwnProperty),le=Object.hasOwn||function(e,t){return ce(se(e),t)},ue=0,fe=Math.random(),de=b(1..toString),pe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+de(++ue+fe,36)},he=ie("wks"),ge=o.Symbol,me=ge&&ge.for,be=K?ge:ge&&ge.withoutSetter||pe,ve=function(e){if(!le(he,e)||!G&&"string"!=typeof he[e]){var t="Symbol."+e;G&&le(ge,e)?he[e]=ge[e]:he[e]=K&&me?me(t):be(t)}return he[e]},ye=o.TypeError,_e=ve("toPrimitive"),ke=function(e,t){if(!N(e)||Y(e))return e;var n,r=ee(e,_e);if(r){if(void 0===t&&(t="default"),n=k(r,e,t),!N(n)||Y(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&&v(n=e.toString)&&!N(r=k(n,e)))return r;if(v(n=e.valueOf)&&!N(r=k(n,e)))return r;if("string"!==t&&v(n=e.toString)&&!N(r=k(n,e)))return r;throw te("Can't convert object to primitive value")}(e,t)},we=function(e){var t=ke(e,"string");return Y(t)?t:t+""},Ee=o.document,Se=N(Ee)&&N(Ee.createElement),Ae=function(e){return Se?Ee.createElement(e):{}},xe=!y&&!s((function(){return 7!=Object.defineProperty(Ae("div"),"a",{get:function(){return 7}}).a})),Ce=Object.getOwnPropertyDescriptor,Te={f:y?Ce:function(e,t){if(e=I(e),t=we(t),xe)try{return Ce(e,t)}catch(e){}if(le(e,t))return A(!k(S.f,e,t),e[t])}},$e=/#|\.prototype\./,Re=function(e,t){var n=Pe[Oe(e)];return n==Ie||n!=Le&&(v(t)?s(t):!!t)},Oe=Re.normalize=function(e){return String(e).replace($e,".").toLowerCase()},Pe=Re.data={},Le=Re.NATIVE="N",Ie=Re.POLYFILL="P",Ne=Re,Me=b(b.bind),je=function(e,t){return Q(e),void 0===t?e:c?Me(e,t):function(){return e.apply(t,arguments)}},De=y&&s((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Fe=o.String,Be=o.TypeError,He=function(e){if(N(e))return e;throw Be(Fe(e)+" is not an object")},ze=o.TypeError,Ue=Object.defineProperty,We=Object.getOwnPropertyDescriptor,qe="enumerable",Ge="configurable",Ke="writable",Ze={f:y?De?function(e,t,n){if(He(e),t=we(t),He(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Ke in n&&!n[Ke]){var r=We(e,t);r&&r[Ke]&&(e[t]=n.value,n={configurable:Ge in n?n[Ge]:r[Ge],enumerable:qe in n?n[qe]:r[qe],writable:!1})}return Ue(e,t,n)}:Ue:function(e,t,n){if(He(e),t=we(t),He(n),xe)try{return Ue(e,t,n)}catch(e){}if("get"in n||"set"in n)throw ze("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Ye=y?function(e,t,n){return Ze.f(e,t,A(1,n))}:function(e,t,n){return e[t]=n,e},Xe=Te.f,Ve=function(e){var t=function(n,r,a){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,a)}return d(e,this,arguments)};return t.prototype=e.prototype,t},Je=function(e,t){var n,r,a,i,s,c,l,u,f=e.target,d=e.global,p=e.stat,h=e.proto,g=d?o:p?o[f]:(o[f]||{}).prototype,m=d?M:M[f]||Ye(M,f,{})[f],y=m.prototype;for(a in t)n=!Ne(d?a:f+(p?".":"#")+a,e.forced)&&g&&le(g,a),s=m[a],n&&(c=e.dontCallGetSet?(u=Xe(g,a))&&u.value:g[a]),i=n&&c?c:t[a],n&&typeof s==typeof i||(l=e.bind&&n?je(i,o):e.wrap&&n?Ve(i):h&&v(i)?b(i):i,(e.sham||i&&i.sham||s&&s.sham)&&Ye(l,"sham",!0),Ye(m,a,l),h&&(le(M,r=f+"Prototype")||Ye(M,r,{}),Ye(M[r],a,i),e.real&&y&&!y[a]&&Ye(y,a,i)))},Qe=b([].slice),et=o.Function,tt=b([].concat),nt=b([].join),rt={},at=c?et.bind:function(e){var t=Q(this),n=t.prototype,r=Qe(arguments,1),a=function(){var n=tt(r,Qe(arguments));return this instanceof a?function(e,t,n){if(!le(rt,t)){for(var r=[],a=0;a0?xt:At)(t)},Tt=function(e){var t=+e;return t!=t||0===t?0:Ct(t)},$t=Math.max,Rt=Math.min,Ot=function(e,t){var n=Tt(e);return n<0?$t(n+t,0):Rt(n,t)},Pt=Math.min,Lt=function(e){return e>0?Pt(Tt(e),9007199254740991):0},It=function(e){return Lt(e.length)},Nt=function(e){return function(t,n,r){var a,i=I(t),o=It(i),s=Ot(r,o);if(e&&n!=n){for(;o>s;)if((a=i[s++])!=a)return!0}else for(;o>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},Mt={includes:Nt(!0),indexOf:Nt(!1)},jt={},Dt=Mt.indexOf,Ft=b([].push),Bt=function(e,t){var n,r=I(e),a=0,i=[];for(n in r)!le(jt,n)&&le(r,n)&&Ft(i,n);for(;t.length>a;)le(r,n=t[a++])&&(~Dt(i,n)||Ft(i,n));return i},Ht=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],zt=Object.keys||function(e){return Bt(e,Ht)},Ut=y&&!De?Object.defineProperties:function(e,t){He(e);for(var n,r=I(t),a=zt(t),i=a.length,o=0;i>o;)Ze.f(e,n=a[o++],r[n]);return e},Wt={f:Ut},qt=D("document","documentElement"),Gt=ie("keys"),Kt=function(e){return Gt[e]||(Gt[e]=pe(e))},Zt="prototype",Yt="script",Xt=Kt("IE_PROTO"),Vt=function(){},Jt=function(e){return"<"+Yt+">"+e+""},Qt=function(e){e.write(Jt("")),e.close();var t=e.parentWindow.Object;return e=null,t},en=function(){try{kt=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;en="undefined"!=typeof document?document.domain&&kt?Qt(kt):(t=Ae("iframe"),n="java"+Yt+":",t.style.display="none",qt.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(Jt("document.F=Object")),e.close(),e.F):Qt(kt);for(var r=Ht.length;r--;)delete en[Zt][Ht[r]];return en()};jt[Xt]=!0;var tn=Object.create||function(e,t){var n;return null!==e?(Vt[Zt]=He(e),n=new Vt,Vt[Zt]=null,n[Xt]=e):n=en(),void 0===t?n:Wt.f(n,t)},nn=D("Reflect","construct"),rn=Object.prototype,an=[].push,on=s((function(){function e(){}return!(nn((function(){}),[],e)instanceof e)})),sn=!s((function(){nn((function(){}))})),cn=on||sn;Je({target:"Reflect",stat:!0,forced:cn,sham:cn},{construct:function(e,t){St(e),He(t);var n=arguments.length<3?e:St(arguments[2]);if(sn&&!on)return nn(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 d(an,r,t),new(d(at,e,r))}var a=n.prototype,i=tn(N(a)?a:rn),o=d(e,i,t);return N(o)?o:i}});var ln=M.Reflect.construct,un=ln,fn=Ze.f;Je({target:"Object",stat:!0,forced:Object.defineProperty!==fn,sham:!y},{defineProperty:fn});var dn=n((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)})),pn=dn,hn=pn;function gn(e,t){for(var n=0;n=51||!s((function(){var t=[];return(t.constructor={})[Pn]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},In=ve("isConcatSpreadable"),Nn=9007199254740991,Mn="Maximum allowed index exceeded",jn=o.TypeError,Dn=q>=51||!s((function(){var e=[];return e[In]=!1,e.concat()[0]!==e})),Fn=Ln("concat"),Bn=function(e){if(!N(e))return!1;var t=e[In];return void 0!==t?!!t:Cn(e)};Je({target:"Array",proto:!0,arity:1,forced:!Dn||!Fn},{concat:function(e){var t,n,r,a,i,o=se(this),s=On(o,0),c=0;for(t=-1,r=arguments.length;tNn)throw jn(Mn);for(n=0;n=Nn)throw jn(Mn);Tn(s,c++,i)}return s.length=c,s}});var Hn,zn,Un,Wn=o.String,qn=function(e){if("Symbol"===ut(e))throw TypeError("Cannot convert a Symbol value to a string");return Wn(e)},Gn=Ht.concat("length","prototype"),Kn={f:Object.getOwnPropertyNames||function(e){return Bt(e,Gn)}},Zn=o.Array,Yn=Math.max,Xn=Kn.f,Vn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Jn=function(e){try{return Xn(e)}catch(e){return function(e,t,n){for(var r=It(e),a=Ot(t,r),i=Ot(void 0===n?r:n,r),o=Zn(Yn(i-a,0)),s=0;av;v++)if((s||v in g)&&(p=m(d=g[v],v,h),e))if(t)_[v]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return v;case 2:kr(_,d)}else switch(e){case 4:return!1;case 7:kr(_,d)}return i?-1:r||a?a:_}},Er={forEach:wr(0),map:wr(1),filter:wr(2),some:wr(3),every:wr(4),find:wr(5),findIndex:wr(6),filterReject:wr(7)},Sr=Er.forEach,Ar=Kt("hidden"),xr="Symbol",Cr="prototype",Tr=_r.set,$r=_r.getterFor(xr),Rr=Object[Cr],Or=o.Symbol,Pr=Or&&Or[Cr],Lr=o.TypeError,Ir=o.QObject,Nr=Te.f,Mr=Ze.f,jr=Qn.f,Dr=S.f,Fr=b([].push),Br=ie("symbols"),Hr=ie("op-symbols"),zr=ie("wks"),Ur=!Ir||!Ir[Cr]||!Ir[Cr].findChild,Wr=y&&s((function(){return 7!=tn(Mr({},"a",{get:function(){return Mr(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=Nr(Rr,t);r&&delete Rr[t],Mr(e,t,n),r&&e!==Rr&&Mr(Rr,t,r)}:Mr,qr=function(e,t){var n=Br[e]=tn(Pr);return Tr(n,{type:xr,tag:e,description:t}),y||(n.description=t),n},Gr=function(e,t,n){e===Rr&&Gr(Hr,t,n),He(e);var r=we(t);return He(n),le(Br,r)?(n.enumerable?(le(e,Ar)&&e[Ar][r]&&(e[Ar][r]=!1),n=tn(n,{enumerable:A(0,!1)})):(le(e,Ar)||Mr(e,Ar,A(1,{})),e[Ar][r]=!0),Wr(e,r,n)):Mr(e,r,n)},Kr=function(e,t){He(e);var n=I(t),r=zt(n).concat(Vr(n));return Sr(r,(function(t){y&&!k(Zr,n,t)||Gr(e,t,n[t])})),e},Zr=function(e){var t=we(e),n=k(Dr,this,t);return!(this===Rr&&le(Br,t)&&!le(Hr,t))&&(!(n||!le(this,t)||!le(Br,t)||le(this,Ar)&&this[Ar][t])||n)},Yr=function(e,t){var n=I(e),r=we(t);if(n!==Rr||!le(Br,r)||le(Hr,r)){var a=Nr(n,r);return!a||!le(Br,r)||le(n,Ar)&&n[Ar][r]||(a.enumerable=!0),a}},Xr=function(e){var t=jr(I(e)),n=[];return Sr(t,(function(e){le(Br,e)||le(jt,e)||Fr(n,e)})),n},Vr=function(e){var t=e===Rr,n=jr(t?Hr:I(e)),r=[];return Sr(n,(function(e){!le(Br,e)||t&&!le(Rr,e)||Fr(r,Br[e])})),r};G||(Or=function(){if(F(Pr,this))throw Lr("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?qn(arguments[0]):void 0,t=pe(e),n=function(e){this===Rr&&k(n,Hr,e),le(this,Ar)&&le(this[Ar],t)&&(this[Ar][t]=!1),Wr(this,t,A(1,e))};return y&&Ur&&Wr(Rr,t,{configurable:!0,set:n}),qr(t,e)},Pr=Or[Cr],tr(Pr,"toString",(function(){return $r(this).tag})),tr(Or,"withoutSetter",(function(e){return qr(pe(e),e)})),S.f=Zr,Ze.f=Gr,Wt.f=Kr,Te.f=Yr,Kn.f=Qn.f=Xr,er.f=Vr,nr.f=function(e){return qr(ve(e),e)},y&&Mr(Pr,"description",{configurable:!0,get:function(){return $r(this).description}})),Je({global:!0,constructor:!0,wrap:!0,forced:!G,sham:!G},{Symbol:Or}),Sr(zt(zr),(function(e){ar(e)})),Je({target:xr,stat:!0,forced:!G},{useSetter:function(){Ur=!0},useSimple:function(){Ur=!1}}),Je({target:"Object",stat:!0,forced:!G,sham:!y},{create:function(e,t){return void 0===t?tn(e):Kr(tn(e),t)},defineProperty:Gr,defineProperties:Kr,getOwnPropertyDescriptor:Yr}),Je({target:"Object",stat:!0,forced:!G},{getOwnPropertyNames:Xr}),ir(),lr(Or,xr),jt[Ar]=!0;var Jr=G&&!!Symbol.for&&!!Symbol.keyFor,Qr=ie("string-to-symbol-registry"),ea=ie("symbol-to-string-registry");Je({target:"Symbol",stat:!0,forced:!Jr},{for:function(e){var t=qn(e);if(le(Qr,t))return Qr[t];var n=D("Symbol")(t);return Qr[t]=n,ea[n]=t,n}});var ta=ie("symbol-to-string-registry");Je({target:"Symbol",stat:!0,forced:!Jr},{keyFor:function(e){if(!Y(e))throw TypeError(V(e)+" is not a symbol");if(le(ta,e))return ta[e]}});var na=D("JSON","stringify"),ra=b(/./.exec),aa=b("".charAt),ia=b("".charCodeAt),oa=b("".replace),sa=b(1..toString),ca=/[\uD800-\uDFFF]/g,la=/^[\uD800-\uDBFF]$/,ua=/^[\uDC00-\uDFFF]$/,fa=!G||s((function(){var e=D("Symbol")();return"[null]"!=na([e])||"{}"!=na({a:e})||"{}"!=na(Object(e))})),da=s((function(){return'"\\udf06\\ud834"'!==na("\udf06\ud834")||'"\\udead"'!==na("\udead")})),pa=function(e,t){var n=Qe(arguments),r=t;if((N(t)||void 0!==e)&&!Y(e))return Cn(t)||(t=function(e,t){if(v(r)&&(t=k(r,this,e,t)),!Y(t))return t}),n[1]=t,d(na,null,n)},ha=function(e,t,n){var r=aa(n,t-1),a=aa(n,t+1);return ra(la,e)&&!ra(ua,a)||ra(ua,e)&&!ra(la,r)?"\\u"+sa(ia(e,0),16):e};na&&Je({target:"JSON",stat:!0,arity:3,forced:fa||da},{stringify:function(e,t,n){var r=Qe(arguments),a=d(fa?pa:na,null,r);return da&&"string"==typeof a?oa(a,ca,ha):a}});var ga=!G||s((function(){er.f(1)}));Je({target:"Object",stat:!0,forced:ga},{getOwnPropertySymbols:function(e){var t=er.f;return t?t(se(e)):[]}}),ar("asyncIterator"),ar("hasInstance"),ar("isConcatSpreadable"),ar("iterator"),ar("match"),ar("matchAll"),ar("replace"),ar("search"),ar("species"),ar("split"),ar("toPrimitive"),ir(),ar("toStringTag"),lr(D("Symbol"),"Symbol"),ar("unscopables"),lr(o.JSON,"JSON",!0);var ma,ba,va,ya=M.Symbol,_a={},ka=Function.prototype,wa=y&&Object.getOwnPropertyDescriptor,Ea=le(ka,"name"),Sa={EXISTS:Ea,PROPER:Ea&&"something"===function(){}.name,CONFIGURABLE:Ea&&(!y||y&&wa(ka,"name").configurable)},Aa=!s((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),xa=Kt("IE_PROTO"),Ca=o.Object,Ta=Ca.prototype,$a=Aa?Ca.getPrototypeOf:function(e){var t=se(e);if(le(t,xa))return t[xa];var n=t.constructor;return v(n)&&t instanceof n?n.prototype:t instanceof Ca?Ta:null},Ra=ve("iterator"),Oa=!1;[].keys&&("next"in(va=[].keys())?(ba=$a($a(va)))!==Object.prototype&&(ma=ba):Oa=!0);var Pa=null==ma||s((function(){var e={};return ma[Ra].call(e)!==e}));ma=Pa?{}:tn(ma),v(ma[Ra])||tr(ma,Ra,(function(){return this}));var La={IteratorPrototype:ma,BUGGY_SAFARI_ITERATORS:Oa},Ia=La.IteratorPrototype,Na=function(){return this},Ma=Sa.PROPER,ja=La.BUGGY_SAFARI_ITERATORS,Da=ve("iterator"),Fa="keys",Ba="values",Ha="entries",za=function(){return this},Ua=function(e,t,n,r,a,i,o){!function(e,t,n,r){var a=t+" Iterator";e.prototype=tn(Ia,{next:A(+!r,n)}),lr(e,a,!1,!0),_a[a]=Na}(n,t,r);var s,c,l,u=function(e){if(e===a&&g)return g;if(!ja&&e in p)return p[e];switch(e){case Fa:case Ba:case Ha:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[Da]||p["@@iterator"]||a&&p[a],g=!ja&&h||u(a),m="Array"==t&&p.entries||h;if(m&&(s=$a(m.call(new e)))!==Object.prototype&&s.next&&(lr(s,f,!0,!0),_a[f]=za),Ma&&a==Ba&&h&&h.name!==Ba&&(d=!0,g=function(){return k(h,this)}),a)if(c={values:u(Ba),keys:i?g:u(Fa),entries:u(Ha)},o)for(l in c)(ja||d||!(l in p))&&tr(p,l,c[l]);else Je({target:t,proto:!0,forced:ja||d},c);return o&&p[Da]!==g&&tr(p,Da,g,{name:a}),_a[t]=g,c};Ze.f;var Wa="Array Iterator",qa=_r.set,Ga=_r.getterFor(Wa);Ua(Array,"Array",(function(e,t){qa(this,{type:Wa,target:I(e),index:0,kind:t})}),(function(){var e=Ga(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"),_a.Arguments=_a.Array;var Ka=ve("toStringTag");for(var Za 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 Ya=o[Za],Xa=Ya&&Ya.prototype;Xa&&ut(Xa)!==Ka&&Ye(Xa,Ka,Za),_a[Za]=_a.Array}var Va=ya,Ja=Va;ar("asyncDispose"),ar("dispose"),ar("matcher"),ar("metadata"),ar("observable"),ar("patternMatch"),ar("replaceAll");var Qa=Ja,ei=b("".charAt),ti=b("".charCodeAt),ni=b("".slice),ri=function(e){return function(t,n){var r,a,i=qn(L(t)),o=Tt(n),s=i.length;return o<0||o>=s?e?"":void 0:(r=ti(i,o))<55296||r>56319||o+1===s||(a=ti(i,o+1))<56320||a>57343?e?ei(i,o):r:e?ni(i,o,o+2):a-56320+(r-55296<<10)+65536}},ai={codeAt:ri(!1),charAt:ri(!0)}.charAt,ii="String Iterator",oi=_r.set,si=_r.getterFor(ii);Ua(String,"String",(function(e){oi(this,{type:ii,string:qn(e),index:0})}),(function(){var e,t=si(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=ai(n,r),t.index+=e.length,{value:e,done:!1})}));var ci=nr.f("iterator");function li(e){return li="function"==typeof Qa&&"symbol"==typeof ci?function(e){return typeof e}:function(e){return e&&"function"==typeof Qa&&e.constructor===Qa&&e!==Qa.prototype?"symbol":typeof e},li(e)}function ui(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fi(e,t){if(t&&("object"===li(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ui(e)}var di=s((function(){$a(1)}));Je({target:"Object",stat:!0,forced:di,sham:!Aa},{getPrototypeOf:function(e){return $a(se(e))}});var pi=M.Object.getPrototypeOf;function hi(e){return hi=Sn?pi:function(e){return e.__proto__||pi(e)},hi(e)}function gi(e,t,n){return t in e?hn(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mi=function(){this.__data__=[],this.size=0};var bi=function(e,t){return e===t||e!=e&&t!=t};var vi=function(e,t){for(var n=e.length;n--;)if(bi(e[n][0],t))return n;return-1},yi=Array.prototype.splice;var _i=function(e){var t=this.__data__,n=vi(t,e);return!(n<0)&&(n==t.length-1?t.pop():yi.call(t,n,1),--this.size,!0)};var ki=function(e){var t=this.__data__,n=vi(t,e);return n<0?void 0:t[n][1]};var wi=function(e){return vi(this.__data__,e)>-1};var Ei=function(e,t){var n=this.__data__,r=vi(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function Si(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=9007199254740991};var es=function(e){return null!=e&&Qo(e.length)&&!Wi(e)};var ts=function(e){return qo(e)&&es(e)};var ns=function(){return!1},rs=n((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,a=r&&r.exports===n?Pi.Buffer:void 0,i=(a?a.isBuffer:void 0)||ns;e.exports=i})),as=Function.prototype,is=Object.prototype,os=as.toString,ss=is.hasOwnProperty,cs=os.call(Object);var ls=function(e){if(!qo(e)||"[object Object]"!=zi(e))return!1;var t=Ho(e);if(null===t)return!0;var n=ss.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&os.call(n)==cs},us={};us["[object Float32Array]"]=us["[object Float64Array]"]=us["[object Int8Array]"]=us["[object Int16Array]"]=us["[object Int32Array]"]=us["[object Uint8Array]"]=us["[object Uint8ClampedArray]"]=us["[object Uint16Array]"]=us["[object Uint32Array]"]=!0,us["[object Arguments]"]=us["[object Array]"]=us["[object ArrayBuffer]"]=us["[object Boolean]"]=us["[object DataView]"]=us["[object Date]"]=us["[object Error]"]=us["[object Function]"]=us["[object Map]"]=us["[object Number]"]=us["[object Object]"]=us["[object RegExp]"]=us["[object Set]"]=us["[object String]"]=us["[object WeakMap]"]=!1;var fs=function(e){return qo(e)&&Qo(e.length)&&!!us[zi(e)]};var ds=function(e){return function(t){return e(t)}},ps=n((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,a=r&&r.exports===n&&Ri.process,i=function(){try{var e=r&&r.require&&r.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=i})),hs=ps&&ps.isTypedArray,gs=hs?ds(hs):fs;var ms=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},bs=Object.prototype.hasOwnProperty;var vs=function(e,t,n){var r=e[t];bs.call(e,t)&&bi(r,n)&&(void 0!==n||t in e)||Ro(e,t,n)};var ys=function(e,t,n,r){var a=!n;n||(n={});for(var i=-1,o=t.length;++i-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},Bs=Fs(js);var Hs=function(e,t){return Bs(Ns(e,t,Ps),e+"")};var zs=function(e,t,n){if(!Ui(n))return!1;var r=typeof t;return!!("number"==r?es(n)&&ws(t,n.length):"string"==r&&t in n)&&bi(n[t],e)};var Us=function(e){return Hs((function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(a--,i):void 0,o&&zs(n[0],n[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++r1?arguments[1]:void 0)};Je({target:"Array",proto:!0,forced:[].forEach!=rc},{forEach:rc});var ac=Ks("Array").forEach,ic=Array.prototype,oc={DOMTokenList:!0,NodeList:!0},sc=function(e){var t=e.forEach;return e===ic||F(ic,e)&&t===ic.forEach||le(oc,ut(e))?ac:t},cc=s((function(){zt(1)}));Je({target:"Object",stat:!0,forced:cc},{keys:function(e){return zt(se(e))}});var lc=M.Object.keys,uc=Er.filter,fc=Ln("filter");Je({target:"Array",proto:!0,forced:!fc},{filter:function(e){return uc(this,e,arguments.length>1?arguments[1]:void 0)}});var dc=Ks("Array").filter,pc=Array.prototype,hc=function(e){var t=e.filter;return e===pc||F(pc,e)&&t===pc.filter?dc:t},gc=Er.findIndex,mc="findIndex",bc=!0;mc in[]&&Array(1)[mc]((function(){bc=!1})),Je({target:"Array",proto:!0,forced:bc},{findIndex:function(e){return gc(this,e,arguments.length>1?arguments[1]:void 0)}});var vc=Ks("Array").findIndex,yc=Array.prototype,_c=function(e){var t=e.findIndex;return e===yc||F(yc,e)&&t===yc.findIndex?vc:t},kc=Ln("splice"),wc=o.TypeError,Ec=Math.max,Sc=Math.min;Je({target:"Array",proto:!0,forced:!kc},{splice:function(e,t){var n,r,a,i,o,s,c=se(this),l=It(c),u=Ot(e,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-u):(n=f-2,r=Sc(Ec(Tt(t),0),l-u)),l+n-r>9007199254740991)throw wc("Maximum allowed length exceeded");for(a=On(c,r),i=0;il-r+n;i--)delete c[i-1]}else if(n>r)for(i=l-r;i>u;i--)s=i+n-1,(o=i+r-1)in c?c[s]=c[o]:delete c[s];for(i=0;i1?arguments[1]:void 0)}});var Lc,Ic=Ks("Array").map,Nc=Array.prototype,Mc=function(e){var t=e.map;return e===Nc||F(Nc,e)&&t===Nc.map?Ic:t},jc="\t\n\v\f\r                 \u2028\u2029\ufeff",Dc=b("".replace),Fc="["+jc+"]",Bc=RegExp("^"+Fc+Fc+"*"),Hc=RegExp(Fc+Fc+"*$"),zc=function(e){return function(t){var n=qn(L(t));return 1&e&&(n=Dc(n,Bc,"")),2&e&&(n=Dc(n,Hc,"")),n}},Uc={start:zc(1),end:zc(2),trim:zc(3)},Wc=Sa.PROPER,qc=Uc.trim;Je({target:"String",proto:!0,forced:(Lc="trim",s((function(){return!!jc[Lc]()||"​…᠎"!=="​…᠎"[Lc]()||Wc&&jc[Lc].name!==Lc})))},{trim:function(){return qc(this)}});var Gc=Ks("String").trim,Kc=String.prototype,Zc=function(e){var t=e.trim;return"string"==typeof e||e===Kc||F(Kc,e)&&t===Kc.trim?Gc:t},Yc=Uc.trim,Xc=o.parseInt,Vc=o.Symbol,Jc=Vc&&Vc.iterator,Qc=/^[+-]?0x/i,el=b(Qc.exec),tl=8!==Xc(jc+"08")||22!==Xc(jc+"0x16")||Jc&&!s((function(){Xc(Object(Jc))}))?function(e,t){var n=Yc(qn(e));return Xc(n,t>>>0||(el(Qc,n)?16:10))}:Xc;Je({global:!0,forced:parseInt!=tl},{parseInt:tl});var nl=M.parseInt;function rl(e,t){var n,r,a,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return/^\n/.test(e)?i?(null!==(n=null===(r=e.match(/^\n+/g))||void 0===r||null===(a=r[0])||void 0===a?void 0:a.length)&&void 0!==n?n:0)>1?"\n\n".concat(t):"\n".concat(t):"\n\n".concat(t):t}function al(e,t){var n=(e.match(/\n/g)||[]).length;return""!==e&&(n-=2),n+t}Je({target:"Array",stat:!0},{isArray:Cn});var il=M.Array.isArray,ol=il;function sl(e,t){if(ol(t))return t}function cl(e){return"undefined"!=typeof localStorage&&null!==localStorage.getItem("cherry-".concat(e))}function ll(){var e="false";return"undefined"!=typeof localStorage&&(e=localStorage.getItem("cherry-classicBr")),"true"===e}var ul=M.Object.getOwnPropertySymbols,fl=Te.f,dl=s((function(){fl(1)}));Je({target:"Object",stat:!0,forced:!y||dl,sham:!y},{getOwnPropertyDescriptor:function(e,t){return fl(I(e),t)}});var pl=n((function(e){var t=M.Object,n=e.exports=function(e,n){return t.getOwnPropertyDescriptor(e,n)};t.getOwnPropertyDescriptor.sham&&(n.sham=!0)})),hl=pl,gl=hl,ml=b([].concat),bl=D("Reflect","ownKeys")||function(e){var t=Kn.f(He(e)),n=er.f;return n?ml(t,n(e)):t};Je({target:"Object",stat:!0,sham:!y},{getOwnPropertyDescriptors:function(e){for(var t,n,r=I(e),a=Te.f,i=bl(r),o={},s=0;i.length>s;)void 0!==(n=a(r,t=i[s++]))&&Tn(o,t,n);return o}});var vl=M.Object.getOwnPropertyDescriptors,yl=Wt.f;Je({target:"Object",stat:!0,forced:Object.defineProperties!==yl,sham:!y},{defineProperties:yl});var _l=n((function(e){var t=M.Object,n=e.exports=function(e,n){return t.defineProperties(e,n)};t.defineProperties.sham&&(n.sham=!0)})),kl=_l,wl=o.RangeError,El=String.fromCharCode,Sl=String.fromCodePoint,Al=b([].join),xl=!!Sl&&1!=Sl.length;Je({target:"String",stat:!0,arity:1,forced:xl},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,a=0;r>a;){if(t=+arguments[a++],Ot(t,1114111)!==t)throw wl(t+" is not a valid code point");n[a]=t<65536?El(t):El(55296+((t-=65536)>>10),t%1024+56320)}return Al(n,"")}});var Cl=M.String.fromCodePoint,Tl=Mt.indexOf,$l=b([].indexOf),Rl=!!$l&&1/$l([1],1,-0)<0,Ol=tc("indexOf");Je({target:"Array",proto:!0,forced:Rl||!Ol},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return Rl?$l(this,e,t)||0:Tl(this,e,t)}});var Pl,Ll,Il=Ks("Array").indexOf,Nl=Array.prototype,Ml=function(e){var t=e.indexOf;return e===Nl||F(Nl,e)&&t===Nl.indexOf?Il:t},jl=Ml;function Dl(e,t){var n=lc(e);if(ul){var r=ul(e);t&&(r=hc(r).call(r,(function(t){return gl(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fl(e){for(var t=1;t":">","&":"&",'"':""","'":"'"},Hl={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},zl=Fl(Fl(Fl(Fl(Fl(Fl({},{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:"♦"}),Ul=lc(zl),Wl=Mc(Ul).call(Ul,(function(e){return zl[e].replace(/^&(\w+);$/g,(function(e,t){return t.toLowerCase()}))})),ql=function(e){return"string"!=typeof e||e.length<=0},Gl=function(e){try{var t=Cl(e);return!ql(t)}catch(e){return!1}};var Kl=["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("|"),Zl=["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("|"),Yl=new RegExp(ec(Pl=ec(Ll="^(".concat(Kl,"|")).call(Ll,Zl,"|")).call(Pl,"br|img|hr",")( |$|/)"),"i");function Xl(e,t){return"string"!=typeof e?"":t?e.replace(/[<>&]/g,(function(e){return Bl[e]||e})):e.replace(/[<>&"']/g,(function(e){return Bl[e]||e}))}function Vl(e,t){if("string"!=typeof e)return"";var n=Jl(e);return n=function(e){return"string"!=typeof e?"":e.replace(/&(\w+);?/g,(function(e,t){return Hl[t]||e}))}(n),Xl(n,t)}function Jl(e){return e.replace(/&#(\d+);?/g,(function(e,t){return zl[t]||e}))}function Ql(e){var t=function(e){return e.replace(/&#x([0-9a-f]+);?/gi,(function(e,t){var n=nl("0x".concat(t),16);try{return Cl(n)}catch(t){return e}}))}(function(e){return e.replace(/&#(\d+);?/g,(function(e,t){try{return Cl(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===jl(n).call(n,r.toLowerCase())}function eu(e){return encodeURI(e).replace(/%25/g,"%")}function tu(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}var nu=0,ru=function(e){xn(n,e);var t=tu(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{needCache:!1},a=r.needCache,i=r.defaultCache,o=void 0===i?{}:i;return bn(this,n),(e=t.call(this,{})).needCache=!!a,e.sign="",a&&(e.cache=o||{},e.cacheKey="~~C".concat(nu),nu+=1),e}return mn(n,[{key:"initBrReg",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.classicBr=cl("classicBr")?ll():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,a,i=null!==(t=null===(n=this.$engine.htmlWhiteListAppend)||void 0===n?void 0:n.split("|"))&&void 0!==t?t:[];i=hc(r=Mc(i).call(i,(function(e){return/[a-z-]+/gi.test(e)?e:null}))).call(r,(function(e){return null!==e}));var o=ec(i).call(i,Kl).join("|");this.removeBrAfterBlock=new RegExp("<(".concat(o,")(>| [^>]*?>)[^\\S\\n]*?\\n"),"ig"),this.removeBrBeforeBlock=new RegExp("\\n[^\\S\\n]*?<\\/(".concat(o,")>[^\\S\\n]*?\\n"),"ig"),this.removeNewlinesBetweenTags=new RegExp(ec(a="<\\/(".concat(o,")>[^\\S\\n]*?\\n([^\\S\\n]*?)<(")).call(a,o,")(>| [^>]*?>)"),"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),a=new RegExp("~~C\\d+I".concat(n.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,"\\w+\\$"),"g").test(e);return r&&!a}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,a=n.contents,i=Mc(a).call(a,t),o="",s=0;s2&&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:"",u=null!==(a=null===(i=t.match(/\n+$/))||void 0===i?void 0:i[0])&&void 0!==a?a:"";return c?rl(t,e):ec(o=ec(s="".concat(l)).call(s,e)).call(o,u)}},{key:"getLineCount",value:function(e){var t,r,a,i=e,o=null!==(t=null===(r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").match(/^\n+/g))||void 0===r||null===(a=r[0])||void 0===a?void 0:a.length)&&void 0!==t?t:0;o=1===o?1:0,i=i.replace(/^\n+/g,"");var s=new RegExp("\n*~~C\\d+I(?:".concat(n.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")?\\w+?_L(\\d+)\\$"),"g"),c=0;return i=i.replace(s,(function(e,t){return c+=nl(t,10),e.replace(/^\n+/g,"")})),o+c+(i.match(/\n/g)||[]).length+1}},{key:"pushCache",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this.needCache){var i=r||this.$engine.md5(e);return this.cache[i]={content:e,using:!0},ec(t=ec(n="".concat(this.cacheKey,"I")).call(n,i,"_L")).call(t,a,"$")}}},{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=lc(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,ec(n=ec(r="".concat(this.cacheKey,"I")).call(r,this.sign,"_L")).call(n,a,"$")):this.toHtml(e,t)}},{key:"mounted",value:function(){}},{key:"signWithCache",value:function(e){return!1}}]),n}(Rc);gi(ru,"HOOK_TYPE",$c.PAR),gi(ru,"IN_PARAGRAPH_CACHE_KEY_PREFIX","!"),gi(ru,"IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX","\\!");var au=s((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),iu=Object.isExtensible,ou=s((function(){iu(1)}))||au?function(e){return!!N(e)&&((!au||"ArrayBuffer"!=T(e))&&(!iu||iu(e)))}:iu,su=!s((function(){return Object.isExtensible(Object.preventExtensions({}))})),cu=n((function(e){var t=Ze.f,n=!1,r=pe("meta"),a=0,i=function(e){t(e,r,{value:{objectID:"O"+a++,weakData:{}}})},o=e.exports={enable:function(){o.enable=function(){},n=!0;var e=Kn.f,t=b([].splice),a={};a[r]=1,e(a).length&&(Kn.f=function(n){for(var a=e(n),i=0,o=a.length;ii;i++)if((s=m(e[i]))&&F(yu,s))return s;return new vu(!1)}r=gu(e,a)}for(c=r.next;!(l=k(c,r)).done;){try{s=m(l.value)}catch(e){mu(r,"throw",e)}if("object"==typeof s&&s&&F(yu,s))return s}return new vu(!1)},ku=o.TypeError,wu=function(e,t){if(F(t,e))return e;throw ku("Incorrect invocation")},Eu=Ze.f,Su=Er.forEach,Au=_r.set,xu=_r.getterFor,Cu=function(e,t,n){for(var r in t)n&&n.unsafe&&e[r]?e[r]=t[r]:tr(e,r,t[r],n);return e},Tu=ve("species"),$u=Ze.f,Ru=cu.fastKey,Ou=_r.set,Pu=_r.getterFor,Lu={getConstructor:function(e,t,n,r){var a=e((function(e,a){wu(e,i),Ou(e,{type:t,index:tn(null),first:void 0,last:void 0,size:0}),y||(e.size=0),null!=a&&_u(a,e[r],{that:e,AS_ENTRIES:n})})),i=a.prototype,o=Pu(t),s=function(e,t,n){var r,a,i=o(e),s=c(e,t);return s?s.value=n:(i.last=s={index:a=Ru(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=s),r&&(r.next=s),y?i.size++:e.size++,"F"!==a&&(i.index[a]=s)),e},c=function(e,t){var n,r=o(e),a=Ru(t);if("F"!==a)return r.index[a];for(n=r.first;n;n=n.next)if(n.key==t)return n};return Cu(i,{clear:function(){for(var e=o(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=o(t),r=c(t,e);if(r){var a=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=a),a&&(a.previous=i),n.first==r&&(n.first=a),n.last==r&&(n.last=i),y?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=o(this),r=je(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!!c(this,e)}}),Cu(i,n?{get:function(e){var t=c(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),y&&$u(i,"size",{get:function(){return o(this).size}}),a},setStrong:function(e,t,n){var r=t+" Iterator",a=Pu(t),i=Pu(r);Ua(e,t,(function(e,t){Ou(this,{type:r,target:e,state:a(e),kind:t,last:void 0})}),(function(){for(var e=i(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),function(e){var t=D(e),n=Ze.f;y&&t&&!t[Tu]&&n(t,Tu,{configurable:!0,get:function(){return this}})}(t)}};!function(e,t,n){var r,a=-1!==e.indexOf("Map"),i=-1!==e.indexOf("Weak"),c=a?"set":"add",l=o[e],u=l&&l.prototype,f={};if(y&&v(l)&&(i||u.forEach&&!s((function(){(new l).entries().next()})))){var d=(r=t((function(t,n){Au(wu(t,d),{type:e,collection:new l}),null!=n&&_u(n,t[c],{that:t,AS_ENTRIES:a})}))).prototype,p=xu(e);Su(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in u)||i&&"clear"==e||Ye(d,e,(function(n,r){var a=p(this).collection;if(!t&&i&&!N(n))return"get"==e&&void 0;var o=a[e](0===n?0:n,r);return t?this:o}))})),i||Eu(d,"size",{configurable:!0,get:function(){return p(this).collection.size}})}else r=n.getConstructor(t,e,a,c),cu.enable();lr(r,e,!1,!0),f[e]=r,Je({global:!0,forced:!0},f),i||n.setStrong(r,e,a)}("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),Lu);var Iu=M.Map,Nu=[].push;Je({target:"Map",stat:!0,forced:!0},{from:function(e){var t,n,r,a,i=arguments.length,o=i>1?arguments[1]:void 0;return St(this),(t=void 0!==o)&&Q(o),null==e?new this:(n=[],t?(r=0,a=je(o,i>2?arguments[2]:void 0),_u(e,(function(e){k(Nu,n,a(e,r++))}))):_u(e,Nu,{that:n}),new this(n))}});Je({target:"Map",stat:!0,forced:!0},{of:function(){return new this(Qe(arguments))}});Je({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=He(this),n=Q(t.delete),r=!0,a=0,i=arguments.length;a1?arguments[1]:void 0);return!_u(n,(function(e,n,a){if(!r(n,e,t))return a()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var ju=ve("species"),Du=function(e,t){var n,r=He(e).constructor;return void 0===r||null==(n=He(r)[ju])?t:St(n)};Je({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=He(this),n=Mu(t),r=je(e,arguments.length>1?arguments[1]:void 0),a=new(Du(t,D("Map"))),i=Q(a.set);return _u(n,(function(e,n){r(n,e,t)&&k(i,a,e,n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),a}}),Je({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=He(this),n=Mu(t),r=je(e,arguments.length>1?arguments[1]:void 0);return _u(n,(function(e,n,a){if(r(n,e,t))return a(n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}}),Je({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=He(this),n=Mu(t),r=je(e,arguments.length>1?arguments[1]:void 0);return _u(n,(function(e,n,a){if(r(n,e,t))return a(e)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}});var Fu=b([].push);Je({target:"Map",stat:!0,forced:!0},{groupBy:function(e,t){Q(t);var n=gu(e),r=new this,a=Q(r.has),i=Q(r.get),o=Q(r.set);return _u(n,(function(e){var n=t(e);k(a,r,n)?Fu(k(i,r,n),e):k(o,r,n,[e])}),{IS_ITERATOR:!0}),r}});Je({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return _u(Mu(He(this)),(function(t,n,r){if((a=n)===(i=e)||a!=a&&i!=i)return r();var a,i}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}}),Je({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var n=new this;Q(t);var r=Q(n.set);return _u(e,(function(e){k(r,n,t(e),e)})),n}}),Je({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){return _u(Mu(He(this)),(function(t,n,r){if(n===e)return r(t)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}}),Je({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=He(this),n=Mu(t),r=je(e,arguments.length>1?arguments[1]:void 0),a=new(Du(t,D("Map"))),i=Q(a.set);return _u(n,(function(e,n){k(i,a,r(n,e,t),n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),a}}),Je({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=He(this),n=Mu(t),r=je(e,arguments.length>1?arguments[1]:void 0),a=new(Du(t,D("Map"))),i=Q(a.set);return _u(n,(function(e,n){k(i,a,e,r(n,e,t))}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),a}}),Je({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=He(this),n=Q(t.set),r=arguments.length,a=0;a1?arguments[1]:void 0);return _u(n,(function(e,n,a){if(r(n,e,t))return a()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var Hu=o.TypeError;Je({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var n=He(this),r=Q(n.get),a=Q(n.has),i=Q(n.set),o=arguments.length;Q(t);var s=k(a,n,e);if(!s&&o<3)throw Hu("Updating absent value");var c=s?k(r,n,e):Q(o>2?arguments[2]:void 0)(e,n);return k(i,n,e,t(c,e,n)),n}});var zu=o.TypeError,Uu=function(e,t){var n,r=He(this),a=Q(r.get),i=Q(r.has),o=Q(r.set),s=arguments.length>2?arguments[2]:void 0;if(!v(t)&&!v(s))throw zu("At least one callback required");return k(i,r,e)?(n=k(a,r,e),v(t)&&(n=t(n),k(o,r,e,n))):v(s)&&(n=s(),k(o,r,e,n)),n};Je({target:"Map",proto:!0,real:!0,forced:!0},{upsert:Uu}),Je({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:Uu});var Wu=Iu,qu=Ml;var Gu=ln,Ku=Xs;function Zu(e,t,n){return Zu=function(){if("undefined"==typeof Reflect||!Gu)return!1;if(Gu.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Gu(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Gu:function(e,t,n){var r=[null];r.push.apply(r,t);var a=new(Ku(Function).apply(e,r));return n&&An(a,n.prototype),a},Zu.apply(null,arguments)}function Yu(e){var t="function"==typeof Wu?new Wu:void 0;return Yu=function(e){if(null===e||!function(e){var t;return-1!==qu(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 Zu(e,arguments,hi(this).constructor)}return n.prototype=_n(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),An(n,e)},Yu(e)}function Xu(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}var Vu=function(e,t){if(!ol(e)&&li(e)!==t.name.toLowerCase()||!ol(e)&&"array"===t.name.toLowerCase())throw new TypeError("parameter given must be ".concat(t.name));return!0},Ju=function(e,t){if(!(e instanceof t))throw new Error("the hook does not correctly inherit");return!0},Qu=function(e){if("object"!==li(e))throw new Error("the hook must be a instance, not a class");return!0},ef=function(e){xn(n,e);var t=Xu(n);function n(e,r){var a;return bn(this,n),(a=t.call(this,e)).name="Error",a.stack=a.buildStackTrace(r),a}return mn(n,[{key:"buildStackTrace",value:function(e){var t,n=e&&e.stack?e.stack:"";return ec(t="".concat(this.stack,"\nCaused By: ")).call(t,n)}}]),n}(Yu(Error)),tf=new Proxy({},{get:function(e,t,n){return function(){}}});function nf(e,t,n){var r,a;if(-1===e)tf.warn(ec(r=ec(a="Duplicate hook name [".concat(t.HOOK_NAME,"] found, hook [")).call(a,t.toString(),"] ")).call(r,isNaN(n)?"":"at index [".concat(n,"] "),"will not take effect."));else if(-2===e){var i;tf.warn(ec(i="Hook [".concat(t.toString(),"] ")).call(i,isNaN(n)?"":"at index [".concat(n,"] "),"is not a valid hook, and will not take effect."))}}function rf(e){return af(e)||of(e)}function af(e){return Object.prototype.isPrototypeOf.call(Rc,e)}function of(e){return Object.prototype.isPrototypeOf.call(ru,e)}function sf(e){return rf(e)&&!0===(null==e?void 0:e.Cherry$$CUSTOM)}var cf=function(){function e(t,n,r){bn(this,e),this.$locale=r.locale,this.hookList={},this.hookNameList={},Vu(t,Array),this.registerInternalHooks(t,n),this.registerCustomHooks(n.engine.customSyntax,n)}return mn(e,[{key:"registerInternalHooks",value:function(e,t){var n=this;sc(e).call(e,(function(e,r){nf(n.register(e,t),e,r)}))}},{key:"registerCustomHooks",value:function(e,t){var n=this;if(e){var r=lc(e);sc(r).call(r,(function(r){var a,i,o,s,c={},l=e[r];if(af(l))i=l;else{if(!af(s=null==(o=l)?void 0:o.syntaxClass)&&!of(s))return;i=l.syntaxClass,c.force=Boolean(l.force),l.before?c.before=l.before:l.after&&(c.after=l.after)}rf(i)?(Gs(i,"Cherry$$CUSTOM",{enumerable:!1,configurable:!1,writable:!1,value:!0}),a=n.register(i,t,c)):a=-2,nf(a,i,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,a,i=this,o=t.externals,s=t.engine,c=s.syntax;if(rf(e)){a=e.HOOK_NAME;var l=(null==c?void 0:c[a])||{};(r=new e({externals:o,config:l,globalConfig:s.global})).afterInit((function(){r.setLocale(i.$locale)}))}else{if("function"!=typeof e)return-2;if(!(r=e(t))||!rf(r.constructor))return-2;a=r.getName()}if(!1!==c[a]||sf(e)){var u=r.getType();if(this.hookNameList[a]){var f;if(!sf(e))return-1;if(!n.force)return-1;var d=this.hookNameList[a].type;this.hookList[d]=hc(f=this.hookList[d]).call(f,(function(e){return e.getName()!==a}))}if(this.hookNameList[a]={type:u},this.hookList[u]=this.hookList[u]||[],sf(e)){var p,h,g,m=-1;if(n.before){if(-1===(m=_c(p=this.hookList[u]).call(p,(function(e){return e.getName()===n.before}))))tf.warn(ec(h="Cannot find hook named [".concat(n.before,"],\n custom hook [")).call(h,a,"] will append to the end of the hooks."))}else if(n.after){var b,v;-1===(m=_c(b=this.hookList[u]).call(b,(function(e){return e.getName()===n.after})))?tf.warn(ec(v="Cannot find hook named [".concat(n.after,"],\n custom hook [")).call(v,a,"] will append to the end of the hooks.")):m+=1}if(m<0||m>=this.hookList[u].length)this.hookList[u].push(r);else Cc(g=this.hookList[u]).call(g,m,0,r)}else this.hookList[u].push(r)}}}]),e}();function lf(e,t){var n=lc(e);if(ul){var r=ul(e);t&&(r=hc(r).call(r,(function(t){return gl(e,t).enumerable}))),n.push.apply(n,r)}return n}function uf(e){for(var t=1;t\\x00-\\x1f"\\(\\)]*)?'),_f=new RegExp("(?:\\/\\/)".concat(yf.source)),kf=new RegExp("^".concat(yf.source,"$")),wf=new RegExp("^".concat(_f.source,"$"));function Ef(){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=ff(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=ff(r,"g",!0),!1===t?{strict:n,loose:r}:ff({begin:"",content:ec(e="(?:".concat(n.begin+n.content+n.end,"|")).call(e,r.begin+r.content+r.end,")"),end:""},"g",!0)}var Sf=il;function Af(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?arguments[1]:void 0,i=void 0!==a;i&&(a=je(a,r>2?arguments[2]:void 0));var o,s,c,l,u,f,d=pu(t),p=0;if(!d||this==Tf&&fu(d))for(o=It(t),s=n?new this(o):Tf(o);o>p;p++)f=i?a(t[p],p):t[p],Tn(s,p,f);else for(u=(l=gu(t,d)).next,s=n?new this:[];!(c=k(u,l)).done;p++)f=i?Cf(l,a,[c.value,p],!0):c.value,Tn(s,p,f);return s.length=p,s}});var If=M.Array.from,Nf=If;function Mf(e){if(void 0!==Qa&&null!=xf(e)||null!=e["@@iterator"])return Nf(e)}var jf=Ln("slice"),Df=ve("species"),Ff=o.Array,Bf=Math.max;Je({target:"Array",proto:!0,forced:!jf},{slice:function(e,t){var n,r,a,i=I(this),o=It(i),s=Ot(e,o),c=Ot(void 0===t?o:t,o);if(Cn(i)&&(n=i.constructor,(wt(n)&&(n===Ff||Cn(n.prototype))||N(n)&&null===(n=n[Df]))&&(n=void 0),n===Ff||void 0===n))return Qe(i,s,c);for(r=new(void 0===n?Ff:n)(Bf(c-s,0)),a=0;s3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;if(!t)return e;t.lastIndex=0;for(var o=0,s=[];null!==(r=t.exec(e));){var c={begin:r.index,length:r[0].length};if(a&&r.index===o-i){var l,u=Yf(r),f=u[0],d=Xf(u).call(u,2);s.push({begin:c.begin+i,length:c.length-i,replacedText:n.apply(void 0,ec(l=[Xf(f).call(f,i),""]).call(l,Gf(d)))})}else s.push(Jf(Jf({},c),{},{replacedText:n.apply(void 0,Gf(r))}));o=t.lastIndex,t.lastIndex-=i}return t.lastIndex=0,function(e,t){if(!t.length)return e;var n=[],r=0;return sc(t).call(t,(function(a,i){n.push(Xf(e).call(e,r,a.begin)),n.push(a.replacedText),r=a.begin+a.length,i===t.length-1&&n.push(Xf(e).call(e,r))})),n.join("")}(e,s)}function ed(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}var td=function(e){xn(n,e);var t=ed(n);function n(){return bn(this,n),t.apply(this,arguments)}return mn(n,[{key:"toHtml",value:function(e,t,n,r){var a,i;return ec(a=ec(i="".concat(t,'')).call(a,r,"")}},{key:"makeHtml",value:function(e){return df()?e.replace(this.RULE.reg,this.toHtml):Qf(e,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var e={begin:df()?"((?')).call(a,r,"
    ")}},{key:"makeHtml",value:function(e){return df()?e.replace(this.RULE.reg,this.toHtml):Qf(e,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var e={begin:df()?"((?')).call(a,r,"")}},{key:"makeHtml",value:function(e){return this.test(e)?df()?e.replace(this.RULE.reg,this.toHtml):Qf(e,this.RULE.reg,this.toHtml,!0,1):e}},{key:"rule",value:function(){var e={begin:df()?"((?0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config;return bn(this,n),e=t.call(this,{config:r}),r?(e.needWhitespace=!!r.needWhitespace,e):fi(e)}return mn(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?sd(sd({},e),{},{begin:"(^|[\\s])\\~T\\~T",end:"\\~T\\~T(?=\\s|$)",content:"([\\w\\W]+?)"}):sd(sd({},e),{},{begin:"(^|[^\\\\])\\~T\\~T",end:"\\~T\\~T",content:"([\\w\\W]+?)"})).reg=new RegExp(e.begin+e.content+e.end,"g"),e}}]),n}(Rc);function ud(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}gi(ld,"HOOK_NAME","strikethrough");var fd=function(e){xn(n,e);var t=ud(n);function n(){return bn(this,n),t.apply(this,arguments)}return mn(n,[{key:"toHtml",value:function(e,t,n){var r;return ec(r="".concat(t,"")).call(r,n,"")}},{key:"makeHtml",value:function(e){return df()?e.replace(this.RULE.reg,this.toHtml):Qf(e,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var e={begin:df()?"((?")).call(r,n,"")}},{key:"makeHtml",value:function(e){return df()?e.replace(this.RULE.reg,this.toHtml):Qf(e,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var e={begin:df()?"((?=f.reach);E+=w.value.length,w=w.next){var S=w.value;if(t.length>e.length)return;if(!(S instanceof i)){var A,x=1;if(v){if(!(A=o(k,E,e,b))||A.index>=e.length)break;var C=A.index,T=A.index+A[0].length,$=E;for($+=w.value.length;C>=$;)$+=(w=w.next).value.length;if(E=$-=w.value.length,w.value instanceof i)continue;for(var R=w;R!==t.tail&&($f.reach&&(f.reach=I);var N=w.prev;if(P&&(N=l(t,N,P),E+=P.length),u(t,N,x),w=l(t,N,new i(d,m?a.tokenize(O,m):O,y,O)),L&&l(t,w,L),x>1){var M={cause:d+","+h,reach:I};s(e,t,n,w.prev,E,M),f&&M.reach>f.reach&&(f.reach=M.reach)}}}}}}function c(){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,a={value:n,prev:t,next:r};return t.next=a,r.prev=a,e.length++,a}function u(e,t,n){for(var r=t.next,a=0;a"+i.content+""},!e.document)return e.addEventListener?(a.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,o=n.immediateClose;e.postMessage(a.highlight(i,a.languages[r],r)),o&&e.close()}),!1),a):a;var f=a.util.currentScript();function d(){a.manual||a.highlightAll()}if(f&&(a.filename=f.src,f.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var p=document.readyState;"loading"===p||"interactive"===p&&f&&f.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return a}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=n),void 0!==t&&(t.Prism=n)}));function md(e,t){var n=lc(e);if(ul){var r=ul(e);t&&(r=hc(r).call(r,(function(t){return gl(e,t).enumerable}))),n.push.apply(n,r)}return n}function bd(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(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 a="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",o="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*{)",s="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 c(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var l=c(i),u=RegExp(c(a+" "+i+" "+o+" "+s)),f=c(i+" "+o+" "+s),d=c(a+" "+i+" "+s),p=r(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),h=r(/\((?:[^()]|<>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,m=t(/<<0>>(?:\s*<<1>>)?/.source,[g,p]),b=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,m]),v=/\[\s*(?:,\s*)*\]/.source,y=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[b,v]),_=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,h,v]),k=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[_]),w=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[k,b,v]),E={keyword:u,punctuation:/[<>()?,.:[\]]/},S=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,A=/"(?:\\.|[^\\"\r\n])*"/.source,x=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[x]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[b]),lookbehind:!0,inside:E},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,w]),lookbehind:!0,inside:E},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,m]),lookbehind:!0,inside:E},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[b]),lookbehind:!0,inside:E},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[y]),lookbehind:!0,inside:E},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[w,d,g]),inside:E}],keyword:u,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,[g]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:E},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[w,b]),inside:E,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[w]),lookbehind:!0,inside:E,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,p]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(p),alias:"class-name",inside:E}}},"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,m,g,w,u.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[m,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:u,"class-name":{pattern:RegExp(w),greedy:!0,inside:E},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 C=A+"|"+S,T=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[C]),$=r(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[T]),2),R=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,O=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[b,$]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[R,O]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[R]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[$]),inside:e.languages.csharp},"class-name":{pattern:RegExp(b),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var P=/:[^}\r\n]+/.source,L=r(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[T]),2),I=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[L,P]),N=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[C]),2),M=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[N,P]);function j(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,P]),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,[I]),lookbehind:!0,greedy:!0,inside:j(I,L)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[M]),lookbehind:!0,greedy:!0,inside:j(M,N)}],char:{pattern:RegExp(S),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 a={};a[e]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",a)}}),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],a=[];/^\w+$/.test(n)||a.push(/\w+/.exec(n)[0]),"diff"===n&&a.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:a,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,a=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,(function(){return r})),i={pattern:RegExp(r),greedy:!0},o={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function s(e,t){return e=e.replace(//g,(function(){return a})).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:s(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[i,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:s(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:s(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:s(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:o,string:i,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:o},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+")?)",a=/(?:[^\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})),i=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(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"(?:"+a+"|"+i+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\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:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(i),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?: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,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \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("^"+a+i+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+i+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),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:'"'},c=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 s=d(/^\{$/,/^\}$/);if(-1===s)continue;for(var c=n;c=0&&p(l,"variable-input")}}}}function u(e){return t[n+e]}function f(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+")",a=RegExp(r+"-"+r),i={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:a,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":i}}],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,a,i){if(n.language===r){var o=n.tokenStack=[];n.code=n.code.replace(a,(function(e){if("function"==typeof i&&!i(e))return e;for(var a,s=o.length;-1!==n.code.indexOf(a=t(r,s));)++s;return o[s]=e,a})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var a=0,i=Object.keys(n.tokenStack);!function o(s){for(var c=0;c=i.length);c++){var l=s[c];if("string"==typeof l||l.content&&"string"==typeof l.content){var u=i[a],f=n.tokenStack[u],d="string"==typeof l?l:l.content,p=t(r,u),h=d.indexOf(p);if(h>-1){++a;var g=d.substring(0,h),m=new e.Token(r,e.tokenize(f,n.grammar),"language-"+r,f),b=d.substring(h+p.length),v=[];g&&v.push.apply(v,o([g])),v.push(m),b&&v.push.apply(v,o([b])),"string"==typeof l?s.splice.apply(s,[c,1].concat(v)):l.content=v}}else l.content&&o(l.content)}return s}(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,a=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,a=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;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:a,punctuation:i};var o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{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:o}},{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:o}}];e.languages.insertBefore("php","variable",{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"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:a,punctuation:i}},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,a=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function i(e,t){return e=e.replace(//g,(function(){return n})).replace(//g,(function(){return r})).replace(//g,(function(){return a})),RegExp(e,t)}a=i(a).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\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:i(//.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var o=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(o).join(""):""},s=function(t){for(var n=[],r=0;r0&&n[n.length-1].tagName===o(a.content[0].content[1])&&n.pop():"/>"===a.content[a.content.length-1].content||n.push({tagName:o(a.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===a.type&&"{"===a.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===a.type&&"}"===a.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof a)&&n.length>0&&0===n[n.length-1].openedBraces){var c=o(a);r0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(c=o(t[r-1])+c,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",c,null,c)}a.content&&"string"!=typeof a.content&&s(a.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||s(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 a=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,o=0;o]=?/,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:/[()]/},gd.manual=!0;var vd={figure:"figure"},yd=function(e){xn(n,e);var t=bd(n);function n(e){var r;e.externals;var a,i=e.config;(bn(this,n),r=t.call(this,{needCache:!0}),n.inlineCodeCache={},r.codeCache={},r.customLang=[],r.customParser={},r.wrap=i.wrap,r.lineNumber=i.lineNumber,r.copyCode=i.copyCode,r.editCode=i.editCode,r.changeLang=i.changeLang,r.mermaid=i.mermaid,r.indentedCodeBlock=void 0===i.indentedCodeBlock||i.indentedCodeBlock,r.INLINE_CODE_REGEX=/(`+)(.+?(?:\n.+?)*?)\1/g,i&&i.customRenderer)&&(r.customLang=Mc(a=lc(i.customRenderer)).call(a,(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,a,i,o,s,c=this.customParser[e];if(!c||"function"!=typeof c.render)return!1;var l=c.render(t,n.sign,this.$engine,this.mermaid);if(!l)return!1;var u=vd[c.constructor.TYPE]||"div";return ec(r=ec(a=ec(i=ec(o=ec(s="<".concat(u,' data-sign="')).call(s,n.sign,'" data-type="')).call(o,e,'" data-lines="')).call(i,n.lines,'">')).call(a,l,"")}},{key:"fillTag",value:function(e){var t=[];return Mc(e).call(e,(function(e){if(!e)return"";for(var n=e;t.length;){var r,a=t.pop();n=ec(r="".concat(a)).call(r,n)}var i=n.match(/|<\/span>/g),o=0;if(!i)return n;for(;i.length;){var s=i.pop();/<\/span>/.test(s)?o+=1:o?o-=1:t.unshift(s.match(//)[0])}for(var c=0;c");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!==jl(t=this.customLang).call(t,e)}},{key:"computeLines",value:function(e,t,n){var r=t,a=this.getLineCount(e,r);return{sign:this.$engine.md5(e.replace(/^\n+/,"")+a),lines:a}}},{key:"appendMermaid",value:function(e,t){var n=e,r=t;if(/^flow([ ](TD|LR))?$/i.test(r)&&!this.isInternalCustomLangCovered(r)){var a,i=r.match(/^flow(?:[ ](TD|LR))?$/i)||[];n=ec(a="graph ".concat(i[1]||"TD","\n")).call(a,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 ec(n=ec(r='')).call(n,e,"")}},{key:"renderCodeBlock",value:function(e,t,n,r){var a,i,o,s,c,l,u,f=e,d=t;return this.customHighlighter?f=this.customHighlighter(f,d):(d&&gd.languages[d]||(d="javascript"),f=gd.highlight(f,gd.languages[d],d),f=this.renderLineNumber(f)),f=ec(a=ec(i=ec(o=ec(s=ec(c=ec(l=ec(u='\n
    ')).call(a,this.wrapCode(f,d),"
    \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,a,i=(e.match(/\n/g)||[]).length,o=t.$engine.md5(e),s=ec(r=ec(a='
    ')).call(r,Xl(n.replace(/\n( {4}|\t)/g,"\n")),"
    ");return rl(e,t.pushCache(s,o,i))})):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,a=e;return a=(a=this.$replaceCodeInIndent(a)).replace(this.RULE.reg,(function(e,t,n,a,i,o){var s,c,l;function u(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 f=o,d=r.computeLines(e,t,o),p=d.sign,h=d.lines,g=r.$codeCache(p);if(g&&""!==g)return u(r.getCacheWithSpace(r.pushCache(g,p,h),e));f=(f=(f=r.$recoverCodeInIndent(f)).replace(/~D/g,"$")).replace(/~T/g,"~");var m=null!==(s=null==t||null===(c=t.match(/[ ]/g))||void 0===c?void 0:c.length)&&void 0!==s?s:0;if(m>0){var b=new RegExp("(^|\\n)[ ]{1,".concat(m,"}"),"g");f=f.replace(b,"$1")}if(n){var v=new RegExp("(^|\\n)".concat(n),"g");f=f.replace(v,"$1")}var y=Zc(i).call(i);if(/^(math|katex|latex)$/i.test(y)&&!r.isInternalCustomLangCovered(y)){var _,k=e.match(/^\s*/g);return ec(_="".concat(k,"~D~D\n")).call(_,f,"~D~D")}var w=hd(r.appendMermaid(f,y),2);return f=w[0],y=w[1],-1!==jl(l=r.customLang).call(l,y.toLowerCase())&&(g=r.parseCustomLanguage(y,f,{lines:h,sign:p}))&&""!==g?(r.$codeCache(p,g),r.getCacheWithSpace(r.pushCache(g,p,h),e)):(f=f.replace(/~X/g,"\\`"),g=(g=r.renderCodeBlock(f,y,p,h)).replace(/\\/g,"\\\\"),g=r.$codeCache(p,g),u(r.getCacheWithSpace(r.pushCache(g,p,h),e)))})),a=a.replace(Ef(!0),(function(e){var t;return Mc(t=e.split("|")).call(t,(function(e){return r.makeInlineCode(e)})).join("|").replace(/`/g,"\\`")})),a=this.makeInlineCode(a),a=this.$getIndentCodeBlock(a)}},{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,a){if("`"===Zc(a).call(a))return e;var i=a.replace(/~~not~inlineCode/g,"\\`");i=(i=t.$replaceSpecialChar(i)).replace(/\\/g,"\\\\");var o="".concat(Xl(i),""),s=t.$engine.md5(o);return n.inlineCodeCache[s]=o,"~~CODE".concat(s,"$")})),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(e={begin:/(?:^|\n)(\n*((?:>[\t ]*)*)(?:[^\S\n]*))(`{3,})([^`]*?)\n/,content:/([\w\W]*?)/,end:/[^\S\n]*\3[ \t]*(?=$|\n+)/,reg:new RegExp("")}).reg=new RegExp(e.begin.source+e.content.source+e.end.source,"g"),uf(uf({},e),{},{begin:e.begin.source,content:e.content.source,end:e.end.source});var e}},{key:"mounted",value:function(e){}}]),n}(ru);function _d(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}gi(yd,"HOOK_NAME","codeBlock"),gi(yd,"inlineCodeCache",{});var kd=function(e){xn(n,e);var t=_d(n);function n(){return bn(this,n),t.apply(this,arguments)}return mn(n,[{key:"makeHtml",value:function(e){return e}},{key:"afterMakeHtml",value:function(e){var t=e;return lc(yd.inlineCodeCache).length>0&&(t=t.replace(/~~CODE([0-9a-zA-Z]+)\$/g,(function(e,t){return yd.inlineCodeCache[t]})),yd.inlineCodeCache={}),t}},{key:"rule",value:function(){var e={begin:"(`+)[ ]*",end:"[ ]*\\1",content:"(.+?(?:\\n.+?)*?)"};return e.reg=ff(e,"g"),e}}]),n}(ru);gi(kd,"HOOK_NAME","inlineCode");var wd=n((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-i)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,a=0;r>>6-2*a);return n}};e.exports=n}()})),Ed={utf8:{stringToBytes:function(e){return Ed.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(Ed.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n>>24)|4278255360&(s[p]<<24|s[p]>>>8);s[c>>>5]|=128<>>9<<4)]=c;var h=i._ff,g=i._gg,m=i._hh,b=i._ii;for(p=0;p>>0,u=u+y>>>0,f=f+_>>>0,d=d+k>>>0}return t.endian([l,u,f,d])};i._ff=function(e,t,n,r,a,i,o){var s=e+(t&n|~t&r)+(a>>>0)+o;return(s<>>32-i)+t},i._gg=function(e,t,n,r,a,i,o){var s=e+(t&r|n&~r)+(a>>>0)+o;return(s<>>32-i)+t},i._hh=function(e,t,n,r,a,i,o){var s=e+(t^n^r)+(a>>>0)+o;return(s<>>32-i)+t},i._ii=function(e,t,n,r,a,i,o){var s=e+(n^(t|~r))+(a>>>0)+o;return(s<>>32-i)+t},i._blocksize=16,i._digestsize=16,e.exports=function(e,n){if(null==e)throw new Error("Illegal argument "+e);var r=t.wordsToBytes(i(e,n));return n&&n.asBytes?r:n&&n.asString?a.bytesToString(r):t.bytesToHex(r)}}()})),Td={},$d=/^cherry-inner:\/\/([0-9a-f]+)$/i;var Rd=function(){function e(){bn(this,e)}return mn(e,null,[{key:"isInnerLink",value:function(e){return $d.test(e)}},{key:"set",value:function(e){var t=Cd(e);return Td[t]=e,"cherry-inner://".concat(t)}},{key:"get",value:function(e){var t,n=hd(null!==(t=e.match($d))&&void 0!==t?t:[],2)[1];if(n)return Td[n]}},{key:"replace",value:function(e,t){var n,r=hd(null!==(n=e.match($d))&&void 0!==n?n:[],2)[1];if(r)return Td[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(){Td={}}}]),e}();function Od(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}var Pd=function(e){xn(n,e);var t=Od(n);function n(e){var r,a=e.config,i=e.globalConfig;return bn(this,n),(r=t.call(this,{config:a})).urlProcessor=i.urlProcessor,r.target=a.target?'target="'.concat(a.target,'"'):a.openNewPage?'target="_blank"':"",r.rel=a.rel?'rel="'.concat(a.rel,'"'):"",r}return mn(n,[{key:"checkBrackets",value:function(e){for(var t=[],n="[".concat(e,"]"),r=function(e){return 1&Xf(n).call(n,0,e).match(/\\*$/)[0].length},a=n.length-1;n[a]&&(a!==n.length-1||!r(a));a--)if("]"!==n[a]||r(a)||t.push("]"),"["===n[a]&&!r(a)&&(t.pop(),!t.length))return{isValid:!0,coreText:Xf(n).call(n,a+1,n.length-1),extraLeadingChar:Xf(n).call(n,0,a)};return{isValid:!1,coreText:e,extraLeadingChar:""}}},{key:"toHtml",value:function(e,t,n,r,a,i,o){var s=void 0===r?"ref":"url",c="";if("ref"===s)return e;if("url"===s){var l,u=this.checkBrackets(n),f=u.isValid,d=u.coreText,p=u.extraLeadingChar;if(!f)return e;c=a&&""!==Zc(a).call(a)?' title="'.concat(Xl(a.replace(/["']/g,"")),'"'):"",o?c+=' target="'.concat(o.replace(/{target\s*=\s*(.*?)}/,"$1"),'"'):this.target&&(c+=" ".concat(this.target));var h,g,m,b,v=Zc(r).call(r).replace(/~1D/g,"~D"),y=d.replace(/~1D/g,"~D");return Ql(v)?(v=eu(v=this.urlProcessor(v,"link")),ec(h=ec(g=ec(m=ec(b="".concat(t+p,'")).call(h,y,"")):ec(l="".concat(t+p,"")).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")}));df()?r=r.replace(this.RULE.reg,Vs(t=this.toHtml).call(t,this)):r=Qf(r,this.RULE.reg,Vs(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:df()?"((?0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}});var Id=Ks("String").repeat,Nd=String.prototype,Md=function(e){var t=e.repeat;return"string"==typeof e||e===Nd||F(Nd,e)&&t===Nd.repeat?Id:t};function jd(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}var Dd=function(e){xn(n,e);var t=jd(n);function n(){var e,r=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config;return bn(this,n),e=t.call(this,{config:r}),r?(e.allowWhitespace=!!r.allowWhitespace,e):fi(e)}return mn(n,[{key:"makeHtml",value:function(e,t){var n=function(e,n,r,a){var i,o,s,c=r.length%2==1?"em":"strong",l=Math.floor(r.length/2),u=Md("").call("",l),f=Md("").call("",l);return"em"===c&&(u+="",f="".concat(f)),ec(i=ec(o=ec(s="".concat(n)).call(s,u)).call(o,t(a).html.replace(/_/g,"~U"))).call(i,f)},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,a,i,o){var s,c,l;if(""===Zc(a).call(a))return e;var u=r.length%2==1?"em":"strong",f=Math.floor(r.length/2),d=Md("").call("",f),p=Md("").call("",f),h=t(a).html;return"em"===u&&(d+="",p="".concat(p)),ec(s=ec(c=ec(l="".concat(n)).call(l,d)).call(c,h)).call(s,p)})),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,a,i="[^".concat(t,"\\s]");return e?"(?:.*?)(?:(?:\\n.*?)*?)":ec(n=ec(r=ec(a="(".concat(i,"|")).call(a,i,"(.*?(\n")).call(r,i,".*)*)")).call(n,i,")")},r={begin:"(^|[^\\\\])([*]+)",content:"(".concat(n(t,"*"),")"),end:"\\2"},a={begin:"(^|".concat(mf,")(_+)"),content:"(".concat(n(t,"_"),")"),end:"\\2(?=".concat(mf,"|$)")};return r.reg=ff(r,"g"),a.reg=ff(a,"g"),{asterisk:r,underscore:a}}}]),n}(Rc);function Fd(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}gi(Dd,"HOOK_NAME","fontEmphasis");var Bd=function(e){xn(n,e);var t=Fd(n);function n(e){var r;return bn(this,n),(r=t.call(this)).initBrReg(e.globalConfig.classicBr),r}return mn(n,[{key:"makeHtml",value:function(e,t){var n=this;return this.test(e)?e.replace(this.RULE.reg,(function(e,r,a){var i;if(n.isContainsCache(e,!0))return e;var o,s=function(e){var r,a,i,o,s,c;if(""===Zc(e).call(e))return"";var l=t(e),u=l.sign,f=l.html,d="p";new RegExp("<(".concat(Kl,")[^>]*>"),"i").test(f)&&(d="div");var p=n.getLineCount(e,e);return ec(r=ec(a=ec(i=ec(o=ec(s=ec(c="<".concat(d,' data-sign="')).call(c,u)).call(s,p,'" data-type="')).call(o,d,'" data-lines="')).call(i,p,'">')).call(a,n.$cleanParagraph(f),"")};return n.isContainsCache(a)?n.makeExcludingCached(ec(o="".concat(r)).call(o,a),s):s(ec(i="".concat(r)).call(i,a))})):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}(ru);gi(Bd,"HOOK_NAME","normalParagraph");Je({target:"Reflect",stat:!0},{get:function e(t,n){var r,a,i=arguments.length<3?t:arguments[2];return He(t)===i?t[n]:(r=Te.f(t,n))?function(e){return void 0!==e&&(le(e,"value")||le(e,"writable"))}(r)?r.value:void 0===r.get?void 0:k(r.get,i):N(a=$a(t))?e(a,n,i):void 0}});var Hd=M.Reflect.get,zd=hl;function Ud(){return Ud="undefined"!=typeof Reflect&&Hd?Hd:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=hi(e)););return e}(e,t);if(r){var a=zd(r,t);return a.get?a.get.call(arguments.length<3?e:n):a.value}},Ud.apply(this,arguments)}function Wd(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}var qd="atx",Gd="setext",Kd=/[\s\-_]/,Zd=/[A-Za-z]/,Yd=/[0-9]/,Xd=function(e){xn(n,e);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 a=r.config;return bn(this,n),(e=t.call(this,{needCache:!0})).strict=!a||!!a.strict,e.RULE=e.rule(),e.headerIDCache=[],e.headerIDCounter={},e.config=a||{},e}return mn(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="",a=0;a255)try{r+=encodeURIComponent(i)}catch(e){}}return r}},{key:"generateIDNoDup",value:function(e){var t,n=e.replace(/</g,"<").replace(/>/g,">"),r=this.$generateId(n,!0),a=jl(t=this.headerIDCache).call(t,r);if(-1!==a)this.headerIDCounter[a]+=1,r+="-".concat(this.headerIDCounter[a]+1);else{var i=this.headerIDCache.push(r);this.headerIDCounter[i-1]=1}return r}},{key:"$wrapHeader",value:function(e,t,n,r){var a,i,o,s,c,l,u,f=r(Zc(e).call(e)),d=f.html,p=d.match(/\s+\{#([A-Za-z0-9-]+)\}$/);null!==p&&(d=d.substring(0,p.index),u=hd(p,2)[1]);var h=this.$parseTitleText(d);if(!u){u=this.generateIDNoDup(h.replace(/~fn#([0-9]+)#/g,""))}var g="safe_".concat(u),m=this.$engine.md5(ec(a=ec(i=ec(o="".concat(t,"-")).call(o,f.sign,"-")).call(i,u,"-")).call(a,n));return{html:[ec(s=ec(c=ec(l="'),this.$getAnchor(u),"".concat(d),"")].join(""),sign:"".concat(m)}}},{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,qd)&&(n=n.replace(this.RULE[qd].reg,(function(e,n,r,a){return""===Zc(a).call(a)?e:t.getCacheWithSpace(t.pushCache(e),e,!0)}))),this.test(n,Gd)&&(n=n.replace(this.RULE[Gd].reg,(function(e,n,r){return""===Zc(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,qd)&&(r=r.replace(this.RULE[qd].reg,(function(e,r,a,i){var o=al(r,n.getLineCount(e.replace(/^\n+/,""))),s=i.replace(/\s+#+\s*$/,""),c=n.$wrapHeader(s,a.length,o,t),l=c.html,u=c.sign;return n.getCacheWithSpace(n.pushCache(l,u,o),e,!0)}))),this.test(r,Gd)&&(r=r.replace(this.RULE[Gd].reg,(function(e,r,a,i){if(n.isContainsCache(a))return e;var o=al(r,n.getLineCount(e.replace(/^\n+/,""))),s="-"===i[0]?2:1,c=n.$wrapHeader(a,s,o,t),l=c.html,u=c.sign;return n.getCacheWithSpace(n.pushCache(l,u,o),e,!0)}))),r}},{key:"afterMakeHtml",value:function(e){var t=Ud(hi(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=ff(e,"g",!0);var t={begin:"(?:^|\\n)(\\n*)(?:\\h*(#{1,6}))",content:"(.+?)",end:"(?=$|\\n)"};return this.strict&&(t.begin+="(?=\\h+)"),t.reg=ff(t,"g",!0),{setext:e,atx:t}}}]),n}(ru);function Vd(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}gi(Xd,"HOOK_NAME","header");var Jd=function(e){xn(n,e);var t=Vd(n);function n(){return bn(this,n),t.apply(this,arguments)}return mn(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}(Rc);gi(Jd,"HOOK_NAME","transfer");var Qd=o.TypeError,ep=function(e){return function(t,n,r,a){Q(n);var i=se(t),o=O(i),s=It(i),c=e?s-1:0,l=e?-1:1;if(r<2)for(;;){if(c in o){a=o[c],c+=l;break}if(c+=l,e?c<0:s<=c)throw Qd("Reduce of empty array with no initial value")}for(;e?c>=0:s>c;c+=l)c in o&&(a=n(a,o[c],c,i));return a}},tp={left:ep(!1),right:ep(!0)},np="process"==T(o.process),rp=tp.left,ap=tc("reduce");Je({target:"Array",proto:!0,forced:!ap||!np&&q>79&&q<83},{reduce:function(e){var t=arguments.length;return rp(this,e,t,t>1?arguments[1]:void 0)}});var ip=Ks("Array").reduce,op=Array.prototype,sp=function(e){var t=e.reduce;return e===op||F(op,e)&&t===op.reduce?ip:t};function cp(e,t){var n=lc(e);if(ul){var r=ul(e);t&&(r=hc(r).call(r,(function(t){return gl(e,t).enumerable}))),n.push.apply(n,r)}return n}function lp(e){for(var t=1;t')).call(a,k,"");return{html:ec(c="".concat(w)).call(c,_.html),sign:b+_.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 a,i,o,s,c=this.$testHeadEmpty(t)?ec(a="~CTHD".concat(t,"~CTHD$~CTBD")).call(a,n,"~CTBD$"):"~CTBD".concat(n,"~CTBD$"),l=this.$engine.md5(c),u=c.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 a="":' align="'.concat(e[r],'">')})).replace(/\\\|/g,"|");return{html:ec(i=ec(o=ec(s='
    \n ')).call(i,u,"
    "),sign:l}}},{key:"makeHtml",value:function(e,t){var n=this,r=e;return this.test(r,dp)&&(r=r.replace(this.RULE[dp].reg,(function(e,r){var a,i=n.getLineCount(e,r),o=Mc(a=Zc(e).call(e).split(/\n/)).call(a,(function(e){var t;return Zc(t=String(e)).call(t)})),s=n.$parseTable(o,t,i),c=s.html,l=s.sign;return n.getCacheWithSpace(n.pushCache(c,l,i),e)}))),this.test(r,fp)&&(r=r.replace(this.RULE[fp].reg,(function(e,r){var a,i=n.getLineCount(e,r),o=Mc(a=Zc(e).call(e).split(/\n/)).call(a,(function(e){var t;return Zc(t=String(e)).call(t)})),s=n.$parseTable(o,t,i),c=s.html,l=s.sign;return n.getCacheWithSpace(n.pushCache(c,l,i),e)}))),r}},{key:"test",value:function(e,t){return this.RULE[t].reg&&this.RULE[t].reg.test(e)}},{key:"rule",value:function(){return Ef()}}]),n}(ru);function hp(){return"object"===("undefined"==typeof window?"undefined":li(window))}function gp(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}gi(pp,"HOOK_NAME","table");var mp=function(e){xn(n,e);var t=gp(n);function n(e){var r;return bn(this,n),(r=t.call(this,{needCache:!0})).classicBr=cl("classicBr")?ll():e.globalConfig.classicBr,r}return mn(n,[{key:"beforeMakeHtml",value:function(e){var t=this;return this.test(e)?e.replace(this.RULE.reg,(function(e,n,r){var a,i;if(0===r)return e;var o,s,c=null!==(a=null===(i=n.match(/\n/g))||void 0===i?void 0:i.length)&&void 0!==a?a:0,l="br".concat(c),u="";hp()?u=t.classicBr?ec(o=''):ec(s='

     

    '):u=t.classicBr?"":"
    ";var f=t.pushCache(u,l,c);return"\n\n".concat(f,"\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=ff(e,"g",!0),e}}]),n}(ru);function bp(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}gi(mp,"HOOK_NAME","br");var vp=function(e){xn(n,e);var t=bp(n);function n(){return bn(this,n),t.call(this,{needCache:!0})}return mn(n,[{key:"beforeMakeHtml",value:function(e){var t=this;return e.replace(this.RULE.reg,(function(e,n){var r,a=(n.match(/\n/g)||[]).length+1,i="hr".concat(a);return rl(e,t.pushCache(ec(r='
    '),i))}))}},{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}(ru);gi(vp,"HOOK_NAME","hr");var yp={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=hd(t,2),a=r[0],i=r[1];return a&&(n=' width="'.concat(a.replace(/[ #]*/g,""),'"')),i&&(n+=' height="'.concat(i.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 a=0;a')).call(d,Vl(r||""),"");return ec(v="".concat(n)).call(v,s.videoWrapper?s.videoWrapper(a):S)}return t},Ep=function(e){xn(n,e);var t=kp(n);function n(e){var r,a=e.config,i=e.globalConfig;return bn(this,n),(r=t.call(this,null)).urlProcessor=i.urlProcessor,r.extendMedia={tag:["video","audio"],replacer:{video:function(e,t,n,r,o,s){return wp("video",e,t,n,r,o,s,a,i)},audio:function(e,t,n,r,o,s){return wp("audio",e,t,n,r,o,s,a,i)}}},r.RULE=r.rule(r.extendMedia),r}return mn(n,[{key:"toHtml",value:function(e,t,n,r,a,i,o){var s=void 0===r?"ref":"url",c="";if("ref"===s)return e;if("url"===s){var l,u,f,d,p,h,g,m,b=yp.processExtendAttributesInAlt(n),v=yp.processExtendStyleInAlt(n),y=v.extendStyles,_=v.extendClasses;y&&(y=' style="'.concat(y,'" ')),_&&(_=' class="'.concat(_,'" ')),c=a&&""!==Zc(a).call(a)?' title="'.concat(Vl(a.replace(/["']/g,"")),'"'):"";var k,w="src",E=this.$engine.$cherry.options;if(E.callback&&E.callback.beforeImageMounted){var S=E.callback.beforeImageMounted(w,r);w=S.srcProp||w,k=S.src||r}var A=o?o.replace(/[{}]/g,"").replace(/([^=\s]+)=([^\s]+)/g,'$1="$2"').replace(/&/g,"&"):"";return ec(l=ec(u=ec(f=ec(d=ec(p=ec(h=ec(g=ec(m="".concat(t,"')).call(f,Vl(n||")}return e}},{key:"toMediaHtml",value:function(e,t,n,r,a,i,o,s,c){var l,u;if(!this.extendMedia.replacer[n])return e;for(var f=arguments.length,d=new Array(f>9?f-9:0),p=9;p-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,i})):(t.type="blank",e)}var Rp=mn((function e(){bn(this,e),this.index=0,this.space=0,this.type="",this.start=1,this.listStyle="",this.strs=[],this.children=[],this.lines=0})),Op=function(e){xn(n,e);var t=xp(n);function n(e){var r,a=e.config;return bn(this,n),(r=t.call(this,{needCache:!0})).config=a||{},r.tree=[],r.emptyLines=0,r.indentSpace=Math.max(r.config.indentSpace,2),r}return mn(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,a=0;ai.space;)o-=1;var s=i.space,c=this.tree[o].space;s".concat(c.strs.join("
    "),"

    ");c.lines+=o.getLineCount(c.strs.join("\n"));var f=c.children.length?o.renderTree(n):"";e.lines+=c.lines,s+=c.lines;return/<\/span>/.test(u)&&(l.class+=" check-list-item"),ec(r=ec(a=ec(i="".concat(t,"")).call(a,u)).call(r,f,"")}),"");return void 0===e.parent&&(c["data-lines"]=0===e.index?s+this.emptyLines:s,c["data-sign"]=this.sign),t[0]&&"ol"===n&&(c.start=this.tree[t[0]].start),c.class="cherry-list__".concat(this.tree[t[0]].listStyle),ec(r=ec(a=ec(i="<".concat(n)).call(i,Cp(c),">")).call(a,l,"")}},{key:"renderTree",value:function(e){var t=this,n=0,r=this.tree[e],a=r.children;return sp(a).call(a,(function(e,i,o){if(0===o)return e;if(t.tree[a[o]].type===t.tree[a[o-1]].type)return e;var s=t.renderSubTree(r,Xf(a).call(a,n,o),t.tree[a[o-1]].type);return n=o,e+s}),"")+(a.length?this.renderSubTree(r,Xf(a).call(a,n,a.length),this.tree[a[a.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 a=e.replace(/~0$/g,"").replace(/^\n+/,"");this.buildTree(function(e){return e.replace(/^((?:|[\t ]+)[*+-]\s+)\[(\s|x)\]/gm,(function(e,t,n){var r,a=/\s/.test(n)?'':'';return ec(r="".concat(t)).call(r,a)}))}(a),t);var i=this.renderTree(0);return this.pushCache(i,this.sign,this.$getLineNum(e))}},{key:"$getLineNum",value:function(e){var t,n,r,a,i=null!==(t=null===(n=e.match(/^\n\n/))||void 0===n?void 0:n.length)&&void 0!==t?t:0;return null!==(r=null===(a=e.replace(/^\n+/,"").replace(/\n+$/,"\n").match(/\n/g))||void 0===a?void 0:a.length)&&void 0!==r?r:0+i}},{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}(ru);function Pp(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}function Lp(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}gi(Op,"HOOK_NAME","list");var Ip=function(e){xn(n,e);var t=Pp(n);function n(){return bn(this,n),t.call(this,{needCache:!0})}return mn(n,[{key:"handleMatch",value:function(e,t){var n=this;return e.replace(this.RULE.reg,(function(e,r,a){for(var i,o,s=t(a),c=s.sign,l=s.html,u=n.signWithCache(l)||c,f=n.getLineCount(e,r),d=/^(([ \t]{0,3}([*+-]|\d+[.]|[a-z]\.|[I一二三四五六七八九十]+\.)[ \t]+)([^\r]+?)($|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.]|[a-z]\.|[I一二三四五六七八九十]+\.)[ \t]+)))/,p=Lp(r),h=l.split("\n"),g=/^[>\s]+/,m=/>/g,b=1,v=0,y=ec(i=ec(o='
    '),_=0;h[_];_++){if(0!==_){var k=Lp(h[_]);if(k<=p&&d.test(h[_]))break;p=k}var w=h[_].replace(g,(function(e){var t=e.match(m);return v=t&&t.length>b?t.length:b,""}));if(b===v&&0!==_&&(y+="
    "),b").call("
    ",v-b),b=v;y+=w}return y+=Md("
    ").call("
    ",b),n.getCacheWithSpace(n.pushCache(y,u,f),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=ff(e,"g"),e}}]),n}(ru);function Np(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}gi(Ip,"HOOK_NAME","blockquote");var Mp=function(e){xn(n,e);var t=Np(n);function n(e){var r,a=e.config,i=e.globalConfig;return bn(this,n),(r=t.call(this,{config:a})).urlProcessor=i.urlProcessor,r.enableShortLink=!!a.enableShortLink,r.shortLinkLength=a.shortLinkLength,r.target=a.target?'target="'.concat(a.target,'"'):a.openNewPage?'target="_blank"':"",r.rel=a.rel?'rel="'.concat(a.rel,'"'):"",r}return mn(n,[{key:"isLinkInHtmlAttribute",value:function(e,t,n){for(var r,a=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=a.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,a=/[^<]*<\/a>/g;null!==(r=a.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)&&(bf.test(e)||yf.test(e))?e.replace(this.RULE.reg,(function(e,t,r,a,i,o,s){var c,l,u;if(n.isLinkInHtmlAttribute(s,o,r.length+a.length)||n.isLinkInATag(s,o,r.length+a.length))return e;var f=r.toLowerCase(),d="",p="",h=!0;if(("<"!==t&&"<"!==t||">"!==i&&">"!==i)&&(d=t,p=i,h=!1),""===Zc(a).call(a)||!h&&""===f&&!/www\./.test(a))return e;switch(f){case"javascript:":return e;case"mailto:":var g,m,b,v,y,_;return vf.test(a)?ec(g=ec(m=ec(b=ec(v=ec(y="".concat(d,'")).call(m,Vl(a),"")).call(g,p):e;case"":var k,w,E,S,A,x,C,T,$,R;if(d===p||!h)return vf.test(a)?ec(k=ec(w=ec(E=ec(S=ec(A="".concat(d,'")).call(w,Vl(a),"")).call(k,p):kf.test(a)?ec(x=ec(C="".concat(d)).call(C,n.renderLink("//".concat(a),a))).call(x,p):e;if(h)return vf.test(a)?ec(T=ec($=ec(R='")).call(T,Vl(a),""):wf.test(a)||kf.test(a)?n.renderLink(a):e;default:return wf.test(a)?ec(c=ec(l="".concat(d)).call(l,n.renderLink(ec(u="".concat(f)).call(u,a)))).call(c,p):e}return e})):e}},{key:"rule",value:function(){var e,t={begin:"(?)"};return t.reg=ff(t,"ig"),t}},{key:"renderLink",value:function(e,t){var n,r,a,i,o=t;if("string"!=typeof o)if(this.enableShortLink){var s,c=e.replace(/^https?:\/\//i,"");o=ec(s="".concat(c.substring(0,this.shortLinkLength))).call(s,c.length>this.shortLinkLength?"...":"")}else o=e;var l=this.urlProcessor(e,"autolink");return ec(n=ec(r=ec(a=ec(i="')).call(n,Vl(o).replace(/_/g,"\\_"),"")}}]),n}(Rc);function jp(){var e,t,n,r;hp()&&(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)}gi(Mp,"HOOK_NAME","autoLink");var Dp=["&","<",">",'"',"'"],Fp=function(e){var t=e.replace(new RegExp(gf,"g"),(function(e){return-1!==jl(Dp).call(Dp,e)?Xl(e):"\\".concat(e)}));return t},Bp=Uc.trim,Hp=b("".charAt),zp=o.parseFloat,Up=o.Symbol,Wp=Up&&Up.iterator,qp=1/zp(jc+"-0")!=-1/0||Wp&&!s((function(){zp(Object(Wp))}))?function(e){var t=Bp(qn(e)),n=zp(t);return 0===n&&"-"==Hp(t,0)?-0:n}:zp;Je({global:!0,forced:parseFloat!=qp},{parseFloat:qp}),M.parseFloat;var Gp=If,Kp=ve("match"),Zp=o.TypeError,Yp=function(e){if(function(e){var t;return N(e)&&(void 0!==(t=e[Kp])?!!t:"RegExp"==T(e))}(e))throw Zp("The method doesn't accept regular expressions");return e},Xp=ve("match"),Vp=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[Xp]=!1,"/./"[e](t)}catch(e){}}return!1};Te.f;var Jp=b("".startsWith),Qp=b("".slice),eh=Math.min,th=Vp("startsWith");Je({target:"String",proto:!0,forced:!th},{startsWith:function(e){var t=qn(L(this));Yp(e);var n=Lt(eh(arguments.length>1?arguments[1]:void 0,t.length)),r=qn(e);return Jp?Jp(t,r,n):Qp(t,n,n+r.length)===r}});var nh=Ks("String").startsWith,rh=String.prototype,ah=function(e){var t=e.startsWith;return"string"==typeof e||e===rh||F(rh,e)&&t===rh.startsWith?nh:t};function ih(e,t){if(!e||!e.tagName)return"";var n,r,a=document.createElement("div");return a.appendChild(e.cloneNode(!1)),n=a.innerHTML,t&&(r=jl(n).call(n,">")+1,n=n.substring(0,r)+e.innerHTML+n.substring(r)),a=null,n}function oh(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=document.createElement(e);(a.className=n,void 0!==r)&&sc(t=lc(r)).call(t,(function(e){var t=r[e];if(ah(e).call(e,"data-")){var n=e.replace(/^data-/,"");a.dataset[n]=t}else a.setAttribute(e,t)}));return a}var sh=n((function(e,t){e.exports=function(){const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:a}=Object;let{freeze:i,seal:o,create:s}=Object,{apply:c,construct:l}="undefined"!=typeof Reflect&&Reflect;i||(i=function(e){return e}),o||(o=function(e){return e}),c||(c=function(e,t,n){return e.apply(t,n)}),l||(l=function(e,t){return new e(...t)});const u=k(Array.prototype.forEach),f=k(Array.prototype.pop),d=k(Array.prototype.push),p=k(String.prototype.toLowerCase),h=k(String.prototype.toString),g=k(String.prototype.match),m=k(String.prototype.replace),b=k(String.prototype.indexOf),v=k(String.prototype.trim),y=k(RegExp.prototype.test),_=w(TypeError);function k(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a2&&void 0!==arguments[2]?arguments[2]:p;t&&t(e,null);let i=r.length;for(;i--;){let t=r[i];if("string"==typeof t){const e=a(t);e!==t&&(n(r)||(r[i]=e),t=e)}e[t]=!0}return e}function S(e){for(let t=0;t/gm),B=o(/\${[\w\W]*}/gm),H=o(/^data-[\-\w.\u00B7-\uFFFF]/),z=o(/^aria-[\-\w]+$/),U=o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),W=o(/^(?:\w+script|data):/i),q=o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G=o(/^html$/i);var K=Object.freeze({__proto__:null,MUSTACHE_EXPR:D,ERB_EXPR:F,TMPLIT_EXPR:B,DATA_ATTR:H,ARIA_ATTR:z,IS_ALLOWED_URI:U,IS_SCRIPT_OR_DATA:W,ATTR_WHITESPACE:q,DOCTYPE_NAME:G});const Z=function(){return"undefined"==typeof window?null:window},Y=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function X(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z();const n=e=>X(e);if(n.version="3.0.8",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;let{document:r}=t;const a=r,o=a.currentScript,{DocumentFragment:c,HTMLTemplateElement:l,Node:k,Element:w,NodeFilter:S,NamedNodeMap:D=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:F,DOMParser:B,trustedTypes:H}=t,z=w.prototype,W=x(z,"cloneNode"),q=x(z,"nextSibling"),V=x(z,"childNodes"),J=x(z,"parentNode");if("function"==typeof l){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let Q,ee="";const{implementation:te,createNodeIterator:ne,createDocumentFragment:re,getElementsByTagName:ae}=r,{importNode:ie}=a;let oe={};n.isSupported="function"==typeof e&&"function"==typeof J&&te&&void 0!==te.createHTMLDocument;const{MUSTACHE_EXPR:se,ERB_EXPR:ce,TMPLIT_EXPR:le,DATA_ATTR:ue,ARIA_ATTR:fe,IS_SCRIPT_OR_DATA:de,ATTR_WHITESPACE:pe}=K;let{IS_ALLOWED_URI:he}=K,ge=null;const me=E({},[...C,...T,...$,...O,...L]);let be=null;const ve=E({},[...I,...N,...M,...j]);let ye=Object.seal(s(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}})),_e=null,ke=null,we=!0,Ee=!0,Se=!1,Ae=!0,xe=!1,Ce=!1,Te=!1,$e=!1,Re=!1,Oe=!1,Pe=!1,Le=!0,Ie=!1;const Ne="user-content-";let Me=!0,je=!1,De={},Fe=null;const Be=E({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let He=null;const ze=E({},["audio","video","img","source","image","track"]);let Ue=null;const We=E({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qe="http://www.w3.org/1998/Math/MathML",Ge="http://www.w3.org/2000/svg",Ke="http://www.w3.org/1999/xhtml";let Ze=Ke,Ye=!1,Xe=null;const Ve=E({},[qe,Ge,Ke],h);let Je=null;const Qe=["application/xhtml+xml","text/html"],et="text/html";let tt=null,nt=null;const rt=r.createElement("form"),at=function(e){return e instanceof RegExp||e instanceof Function},it=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!nt||nt!==e){if(e&&"object"==typeof e||(e={}),e=A(e),Je=-1===Qe.indexOf(e.PARSER_MEDIA_TYPE)?et:e.PARSER_MEDIA_TYPE,tt="application/xhtml+xml"===Je?h:p,ge="ALLOWED_TAGS"in e?E({},e.ALLOWED_TAGS,tt):me,be="ALLOWED_ATTR"in e?E({},e.ALLOWED_ATTR,tt):ve,Xe="ALLOWED_NAMESPACES"in e?E({},e.ALLOWED_NAMESPACES,h):Ve,Ue="ADD_URI_SAFE_ATTR"in e?E(A(We),e.ADD_URI_SAFE_ATTR,tt):We,He="ADD_DATA_URI_TAGS"in e?E(A(ze),e.ADD_DATA_URI_TAGS,tt):ze,Fe="FORBID_CONTENTS"in e?E({},e.FORBID_CONTENTS,tt):Be,_e="FORBID_TAGS"in e?E({},e.FORBID_TAGS,tt):{},ke="FORBID_ATTR"in e?E({},e.FORBID_ATTR,tt):{},De="USE_PROFILES"in e&&e.USE_PROFILES,we=!1!==e.ALLOW_ARIA_ATTR,Ee=!1!==e.ALLOW_DATA_ATTR,Se=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ae=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,xe=e.SAFE_FOR_TEMPLATES||!1,Ce=e.WHOLE_DOCUMENT||!1,Re=e.RETURN_DOM||!1,Oe=e.RETURN_DOM_FRAGMENT||!1,Pe=e.RETURN_TRUSTED_TYPE||!1,$e=e.FORCE_BODY||!1,Le=!1!==e.SANITIZE_DOM,Ie=e.SANITIZE_NAMED_PROPS||!1,Me=!1!==e.KEEP_CONTENT,je=e.IN_PLACE||!1,he=e.ALLOWED_URI_REGEXP||U,Ze=e.NAMESPACE||Ke,ye=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&at(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ye.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&at(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ye.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ye.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),xe&&(Ee=!1),Oe&&(Re=!0),De&&(ge=E({},L),be=[],!0===De.html&&(E(ge,C),E(be,I)),!0===De.svg&&(E(ge,T),E(be,N),E(be,j)),!0===De.svgFilters&&(E(ge,$),E(be,N),E(be,j)),!0===De.mathMl&&(E(ge,O),E(be,M),E(be,j))),e.ADD_TAGS&&(ge===me&&(ge=A(ge)),E(ge,e.ADD_TAGS,tt)),e.ADD_ATTR&&(be===ve&&(be=A(be)),E(be,e.ADD_ATTR,tt)),e.ADD_URI_SAFE_ATTR&&E(Ue,e.ADD_URI_SAFE_ATTR,tt),e.FORBID_CONTENTS&&(Fe===Be&&(Fe=A(Fe)),E(Fe,e.FORBID_CONTENTS,tt)),Me&&(ge["#text"]=!0),Ce&&E(ge,["html","head","body"]),ge.table&&(E(ge,["tbody"]),delete _e.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw _('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw _('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Q=e.TRUSTED_TYPES_POLICY,ee=Q.createHTML("")}else void 0===Q&&(Q=Y(H,o)),null!==Q&&"string"==typeof ee&&(ee=Q.createHTML(""));i&&i(e),nt=e}},ot=E({},["mi","mo","mn","ms","mtext"]),st=E({},["foreignobject","desc","title","annotation-xml"]),ct=E({},["title","style","font","a","script"]),lt=E({},[...T,...$,...R]),ut=E({},[...O,...P]),ft=function(e){let t=J(e);t&&t.tagName||(t={namespaceURI:Ze,tagName:"template"});const n=p(e.tagName),r=p(t.tagName);return!!Xe[e.namespaceURI]&&(e.namespaceURI===Ge?t.namespaceURI===Ke?"svg"===n:t.namespaceURI===qe?"svg"===n&&("annotation-xml"===r||ot[r]):Boolean(lt[n]):e.namespaceURI===qe?t.namespaceURI===Ke?"math"===n:t.namespaceURI===Ge?"math"===n&&st[r]:Boolean(ut[n]):e.namespaceURI===Ke?!(t.namespaceURI===Ge&&!st[r])&&!(t.namespaceURI===qe&&!ot[r])&&!ut[n]&&(ct[n]||!lt[n]):!("application/xhtml+xml"!==Je||!Xe[e.namespaceURI]))},dt=function(e){d(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},pt=function(e,t){try{d(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){d(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!be[e])if(Re||Oe)try{dt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ht=function(e){let t=null,n=null;if($e)e=""+e;else{const t=g(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Je&&Ze===Ke&&(e=''+e+"");const a=Q?Q.createHTML(e):e;if(Ze===Ke)try{t=(new B).parseFromString(a,Je)}catch(e){}if(!t||!t.documentElement){t=te.createDocument(Ze,"template",null);try{t.documentElement.innerHTML=Ye?ee:a}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),Ze===Ke?ae.call(t,Ce?"html":"body")[0]:Ce?t.documentElement:i},gt=function(e){return ne.call(e.ownerDocument||e,e,S.SHOW_ELEMENT|S.SHOW_COMMENT|S.SHOW_TEXT,null)},mt=function(e){return e instanceof F&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof D)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},bt=function(e){return"function"==typeof k&&e instanceof k},vt=function(e,t,r){oe[e]&&u(oe[e],(e=>{e.call(n,t,r,nt)}))},yt=function(e){let t=null;if(vt("beforeSanitizeElements",e,null),mt(e))return dt(e),!0;const r=tt(e.nodeName);if(vt("uponSanitizeElement",e,{tagName:r,allowedTags:ge}),e.hasChildNodes()&&!bt(e.firstElementChild)&&y(/<[/\w]/g,e.innerHTML)&&y(/<[/\w]/g,e.textContent))return dt(e),!0;if(!ge[r]||_e[r]){if(!_e[r]&&kt(r)){if(ye.tagNameCheck instanceof RegExp&&y(ye.tagNameCheck,r))return!1;if(ye.tagNameCheck instanceof Function&&ye.tagNameCheck(r))return!1}if(Me&&!Fe[r]){const t=J(e)||e.parentNode,n=V(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r)t.insertBefore(W(n[r],!0),q(e))}return dt(e),!0}return e instanceof w&&!ft(e)?(dt(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!y(/<\/no(script|embed|frames)/i,e.innerHTML)?(xe&&3===e.nodeType&&(t=e.textContent,u([se,ce,le],(e=>{t=m(t,e," ")})),e.textContent!==t&&(d(n.removed,{element:e.cloneNode()}),e.textContent=t)),vt("afterSanitizeElements",e,null),!1):(dt(e),!0)},_t=function(e,t,n){if(Le&&("id"===t||"name"===t)&&(n in r||n in rt))return!1;if(Ee&&!ke[t]&&y(ue,t));else if(we&&y(fe,t));else if(!be[t]||ke[t]){if(!(kt(e)&&(ye.tagNameCheck instanceof RegExp&&y(ye.tagNameCheck,e)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(e))&&(ye.attributeNameCheck instanceof RegExp&&y(ye.attributeNameCheck,t)||ye.attributeNameCheck instanceof Function&&ye.attributeNameCheck(t))||"is"===t&&ye.allowCustomizedBuiltInElements&&(ye.tagNameCheck instanceof RegExp&&y(ye.tagNameCheck,n)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(n))))return!1}else if(Ue[t]);else if(y(he,m(n,pe,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==b(n,"data:")||!He[e])if(Se&&!y(de,m(n,pe,"")));else if(n)return!1;return!0},kt=function(e){return e.indexOf("-")>0},wt=function(e){vt("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:be};let a=t.length;for(;a--;){const i=t[a],{name:o,namespaceURI:s,value:c}=i,l=tt(o);let d="value"===o?c:v(c);if(r.attrName=l,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,vt("uponSanitizeAttribute",e,r),d=r.attrValue,r.forceKeepAttr)continue;if(pt(o,e),!r.keepAttr)continue;if(!Ae&&y(/\/>/i,d)){pt(o,e);continue}xe&&u([se,ce,le],(e=>{d=m(d,e," ")}));const p=tt(e.nodeName);if(_t(p,l,d)){if(!Ie||"id"!==l&&"name"!==l||(pt(o,e),d=Ne+d),Q&&"object"==typeof H&&"function"==typeof H.getAttributeType)if(s);else switch(H.getAttributeType(p,l)){case"TrustedHTML":d=Q.createHTML(d);break;case"TrustedScriptURL":d=Q.createScriptURL(d)}try{s?e.setAttributeNS(s,o,d):e.setAttribute(o,d),f(n.removed)}catch(e){}}}vt("afterSanitizeAttributes",e,null)},Et=function e(t){let n=null;const r=gt(t);for(vt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)vt("uponSanitizeShadowNode",n,null),yt(n)||(n.content instanceof c&&e(n.content),wt(n));vt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,o=null,s=null;if(Ye=!e,Ye&&(e="\x3c!--\x3e"),"string"!=typeof e&&!bt(e)){if("function"!=typeof e.toString)throw _("toString is not a function");if("string"!=typeof(e=e.toString()))throw _("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Te||it(t),n.removed=[],"string"==typeof e&&(je=!1),je){if(e.nodeName){const t=tt(e.nodeName);if(!ge[t]||_e[t])throw _("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof k)r=ht("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),1===i.nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!Re&&!xe&&!Ce&&-1===e.indexOf("<"))return Q&&Pe?Q.createHTML(e):e;if(r=ht(e),!r)return Re?null:Pe?ee:""}r&&$e&&dt(r.firstChild);const l=gt(je?e:r);for(;o=l.nextNode();)yt(o)||(o.content instanceof c&&Et(o.content),wt(o));if(je)return e;if(Re){if(Oe)for(s=re.call(r.ownerDocument);r.firstChild;)s.appendChild(r.firstChild);else s=r;return(be.shadowroot||be.shadowrootmode)&&(s=ie.call(a,s,!0)),s}let f=Ce?r.outerHTML:r.innerHTML;return Ce&&ge["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&y(G,r.ownerDocument.doctype.name)&&(f="\n"+f),xe&&u([se,ce,le],(e=>{f=m(f,e," ")})),Q&&Pe?Q.createHTML(f):f},n.setConfig=function(){it(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Te=!0},n.clearConfig=function(){nt=null,Te=!1},n.isValidAttribute=function(e,t,n){nt||it({});const r=tt(e),a=tt(t);return _t(r,a,n)},n.addHook=function(e,t){"function"==typeof t&&(oe[e]=oe[e]||[],d(oe[e],t))},n.removeHook=function(e){if(oe[e])return f(oe[e])},n.removeHooks=function(e){oe[e]&&(oe[e]=[])},n.removeAllHooks=function(){oe={}},n}var V=X();return V}()})),ch=sh(window);function lh(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}var uh=function(e){xn(n,e);var t=lh(n);function n(e){var r,a,i=e.config;return bn(this,n),gi(ui(a=t.call(this,{needCache:!0})),"engine","MathJax"),gi(ui(a),"katex",void 0),gi(ui(a),"MathJax",void 0),a.engine=hp()?null!==(r=i.engine)&&void 0!==r?r:"MathJax":"node",a}return mn(n,[{key:"toHtml",value:function(e,t,n,r){var a,i,o;Vs(jp).call(jp,this)("engine");var s=e.replace(/^[ \f\r\t\v]*/,"").replace(/\s*$/,""),c=t.replace(/^[ \f\r\t\v]*\n/,""),l=this.$engine.md5(e),u=this.getLineCount(s,c);/\n/.test(t)||(u-=1),/\n\s*$/.test(e)||(u-=1),u=u>0?u:0;var f=ec(a=ec(i='
    $$')).call(a,Fp(r),"$$
    ");if("katex"===this.engine){var d,p,h=this.katex.renderToString(r,{throwOnError:!1,displayMode:!0});f=ec(d=ec(p='
    ')).call(d,h,"
    ")}if(null!==(o=this.MathJax)&&void 0!==o&&o.tex2svg){var g,m,b=ih(this.MathJax.tex2svg(r),!0);f=ec(g=ec(m='
    ')).call(g,b,"
    ")}return f=ch.sanitize(f),n+this.getCacheWithSpace(this.pushCache(f,l,u),e)}},{key:"beforeMakeHtml",value:function(e){var t,n;return df()?e.replace(this.RULE.reg,Vs(n=this.toHtml).call(n,this)):Qf(e,this.RULE.reg,Vs(t=this.toHtml).call(t,this),!0,1)}},{key:"makeHtml",value:function(e){return e}},{key:"rule",value:function(){var e={begin:df()?"(\\s*)((?$')).call(r,Fp(n),"$
    ");if("katex"===this.engine&&null!==(i=this.katex)&&void 0!==i&&i.renderToString){var f,d,p=this.katex.renderToString(n,{throwOnError:!1});u=ec(f=ec(d="".concat(t,'')).call(f,p,"")}if(null!==(o=this.MathJax)&&void 0!==o&&o.tex2svg){var h,g,m=ih(this.MathJax.tex2svg(n,{em:12,ex:6,display:!1}),!0);u=ec(h=ec(g="".concat(t,'')).call(h,m,"")}return u=ch.sanitize(u),this.pushCache(u,ru.IN_PARAGRAPH_CACHE_KEY_PREFIX+l)}},{key:"beforeMakeHtml",value:function(e){var t=this,n=e;return n=n.replace(Ef(!0),(function(e){var n;return Mc(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)?df()?e.replace(this.RULE.reg,Vs(n=this.toHtml).call(n,this)):Qf(e,this.RULE.reg,Vs(t=this.toHtml).call(t,this),!0,1):e}},{key:"makeHtml",value:function(e){return e}},{key:"rule",value:function(){var e={begin:df()?"((?1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,o=void 0===i?n:Ot(i,n);o>a;)t[a++]=e;return t}});var ph=Ks("Array").fill,hh=Array.prototype,gh=function(e){var t=e.fill;return e===hh||F(hh,e)&&t===hh.fill?ph:t};function mh(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}function bh(e){return e}var vh={tocStyle:"plain",tocNodeClass:"toc-li",tocContainerClass:"toc",tocTitleClass:"toc-title",linkProcessor:bh},yh='

     

    ',_h=function(e){xn(n,e);var t=mh(n);function n(e){var r,a;e.externals;var i=e.config;return bn(this,n),gi(ui(a=t.call(this,{needCache:!0})),"tocStyle","nested"),gi(ui(a),"tocNodeClass","toc-li"),gi(ui(a),"tocContainerClass","toc"),gi(ui(a),"tocTitleClass","toc-title"),gi(ui(a),"linkProcessor",bh),gi(ui(a),"baseLevel",1),gi(ui(a),"isFirstTocToken",!0),gi(ui(a),"allowMultiToc",!1),sc(r=lc(vh)).call(r,(function(e){a[e]=i[e]||vh[e]})),a}return mn(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 a;if(!t.allowMultiToc&&!t.isFirstTocToken)return ec(a="\n".concat(n)).call(a,yh);var i=t.pushCache(e);return t.isFirstTocToken=!1,rl(e,i)}))),this.test(n,"standard")&&(n=n.replace(this.RULE.standard.reg,(function(e,n,r){var a;return t.allowMultiToc||t.isFirstTocToken?(t.isFirstTocToken=!1,rl(e,t.pushCache(e))):ec(a="\n".concat(n)).call(a,yh)}))),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],c="";t&&(c=this.$makeLevel(e.level));var l=this.linkProcessor("#".concat(e.id).replace(/safe_/g,""));return ec(n=ec(r=ec(a=ec(i=ec(o='
  • ')).call(o,c,'')).call(r,e.text,"")).call(n,s?"
  • ":"")}},{key:"$makePlainToc",value:function(e){var t=this;return Mc(e).call(e,(function(e){return t.$makeTocItem(e,!0)})).join("")}},{key:"$makeNestedToc",value:function(e){var t,n,r=this,a=0,i=gh(t=new Array(7)).call(t,!1),o=gh(n=new Array(7)).call(n,!1),s="";sc(e).call(e,(function(e){var t=e.level;if(0===a){for(var n=t;n>=r.baseLevel;n--)s+="
      ",o[n]=!0;return s+=r.$makeTocItem(e,!1,!1),i[t]=!0,void(a=t)}if(t=t;c--)i[c]&&(s+="",i[c]=!1),o[c]&&c>t&&(s+="
    ",o[c]=!1);i[t]=!0,s+=r.$makeTocItem(e,!1,!1),a=t}else if(t===a)i[a]&&(s+=""),s+=r.$makeTocItem(e,!1,!1),i[t]=!0,o[t]=!0;else{for(var l=a+1;l<=t;l++)s+="
      ",o[l]=!0;i[t]=!0,s+=r.$makeTocItem(e,!1,!1),a=t}}));for(var c=a;c>=this.baseLevel;c--)i[c]&&(s+="",i[c]=!1),o[c]&&(s+="
    ",o[c]=!1);return s}},{key:"$makeToc",value:function(e,t,n){var r,a,i,o=al(n,1),s=ec(r=ec(a=ec(i='');return s+='

    目录

    '),e.length<=0?"":(this.baseLevel=Math.min.apply(Math,Gf(Mc(e).call(e,(function(e){return e.level})))),"nested"===this.tocStyle?s+=this.$makeNestedToc(e):s+=this.$makePlainToc(e),s+="
    ")}},{key:"afterMakeHtml",value:function(e){var t=this,r=Ud(hi(n.prototype),"afterMakeHtml",this).call(this,e),a=[],i="";return r.replace(/]*? id="([^"]+?)"[^>]*?>(?:|)(.+?)<\/h\1>/g,(function(e,t,n,r){var o,s=r.replace(/~fn#[0-9]+#/g,"");a.push({level:+t,id:n,text:s}),i+=ec(o="".concat(t)).call(o,n)})),i=this.$engine.md5(i),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(a,i,n)}))).replace(this.RULE.standard.reg,(function(e,n){return t.$makeToc(a,i,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}(ru);function kh(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}gi(_h,"HOOK_NAME","toc");var wh=function(e){xn(n,e);var t=kh(n);function n(e){var r;return e.externals,e.config,bn(this,n),(r=t.call(this)).footnoteCache={},r.footnoteMap={},r.footnote=[],r}return mn(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,a,i,o,s;if(this.footnoteMap[e])return this.footnoteMap[e];var c=this.footnote.length+1,l={};l.fn=ec(n=ec(r=ec(a='[')).call(n,c,"]"),l.fnref=ec(i=ec(o=ec(s='[')).call(i,c,"]"),l.num=c,l.note=Zc(t).call(t),this.footnote.push(l);var u="\0~fn#".concat(c-1,"#\0");return this.footnoteMap[e]=u,u}},{key:"getFootNote",value:function(){return this.footnote}},{key:"formatFootNote",value:function(){var e,t=this.getFootNote();if(t.length<=0)return"";var n=Mc(t).call(t,(function(e){var t;return ec(t='
    \n'.concat(e.fnref)).call(t,e.note,"\n
    ")})).join(""),r=this.$engine.md5(n);return n=ec(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,a){return t.pushFootnoteCache(r,a),(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=ff(e,"g",!0),e}}]),n}(ru);function Eh(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}gi(wh,"HOOK_NAME","footnote");var Sh=function(e){xn(n,e);var t=Eh(n);function n(e){var r;return e.externals,e.config,bn(this,n),(r=t.call(this)).commentCache={},r}return mn(n,[{key:"$cleanCache",value:function(){this.commentCache={}}},{key:"pushCommentReferenceCache",value:function(e,t){var n,r=Yf(t.split(/[ ]+/g)),a=r[0],i=Xf(r).call(r,1),o=Rd.set(a);this.commentCache["".concat(e).toLowerCase()]=ec(n=[o]).call(n,Gf(i)).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,a){var i;return t.pushCommentReferenceCache(r,a),(null!==(i=e.match(/\n/g))&&void 0!==i?i:[]).join("")}));n=n.replace(/(\[[^\]\n]+?\])?(?:\[([^\]\n]+?)\])/g,(function(e,n,r){var a,i,o=t.getCommentReferenceCache(r);return o?n?ec(i="".concat(n,"(")).call(i,o,")"):ec(a="[".concat(r,"](")).call(a,o,")"):e})),this.$cleanCache()}return n}},{key:"makeHtml",value:function(e,t){return e}},{key:"afterMakeHtml",value:function(e){return Rd.restoreAll(e)}},{key:"rule",value:function(){var e={begin:"(^|\\n)[ \t]*",content:["\\[([^^][^\\]]*?)\\]:\\h*","([^\\n]+?)"].join(""),end:"(?=$|\\n)"};return e.reg=ff(e,"g",!0),e}}]),n}(ru);gi(Sh,"HOOK_NAME","commentReference");var Ah=Er.some,xh=tc("some");Je({target:"Array",proto:!0,forced:!xh},{some:function(e){return Ah(this,e,arguments.length>1?arguments[1]:void 0)}});var Ch=Ks("Array").some,Th=Array.prototype,$h=function(e){var t=e.some;return e===Th||F(Th,e)&&t===Th.some?Ch:t};function Rh(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}var Oh=["href","src"];ch.addHook("afterSanitizeAttributes",(function(e){sc(Oh).call(Oh,(function(t){if(e.hasAttribute(t)){var n=e.getAttribute(t);e.setAttribute(t,n.replace(/\\/g,"%5c"))}}))}));var Ph=function(e){xn(n,e);var t=Rh(n);function n(){return bn(this,n),t.call(this,{needCache:!0})}return mn(n,[{key:"isAutoLinkTag",value:function(e){var t=[/^<([a-z][a-z0-9+.-]{1,31}:\/\/[^<> `]+)>$/i,/^<(mailto:[^<> `]+)>$/i,/^<([^()<>[\]:'@\\,"\s`]+@[^()<>[\]:'@\\,"\s`.]+\.[^()<>[\]:'@\\,"\s`]+)>$/i];return $h(t).call(t,(function(t){return t.test(e)}))}},{key:"isHtmlComment",value:function(e){return/^$/.test(e)}},{key:"beforeMakeHtml",value:function(e,t){var n=this;this.$engine.htmlWhiteListAppend?(this.htmlWhiteListAppend=new RegExp("^(".concat(this.$engine.htmlWhiteListAppend,")( |$|/)"),"i"),this.htmlWhiteList=this.$engine.htmlWhiteListAppend.split("|")):(this.htmlWhiteListAppend=!1,this.htmlWhiteList=[]);var r=e;return r=function(e){if("string"!=typeof e)return"";var t=e.replace(/&(\w+);?/g,(function(e,t){return-1===jl(e).call(e,";")||-1===jl(Wl).call(Wl,t.toLowerCase())?e.replace(/&/g,"&"):e}));return t=t.replace(/&#(?!x)(\d*);?/gi,(function(e,t){return ql(t)||-1===jl(e).call(e,";")||t.lenth>7||!Gl(t)?e.replace(/&/g,"&"):e})),t=t.replace(/&#x([0-9a-f]*);?/gi,(function(e,t){if(ql(t))return e.replace(/&/g,"&");var n="0x".concat(t),r=nl(n,16);return isNaN(r)||-1===jl(e).call(e,";")||t.lenth>6||!Gl(n)?e.replace(/&/g,"&"):e})),t}(r=Jl(r)),r=(r=(r=r.replace(/<[/]?(.*?)>/g,(function(e,t){return Yl.test(t)||n.isAutoLinkTag(e)||n.isHtmlComment(e)||!1!==n.htmlWhiteListAppend&&n.htmlWhiteListAppend.test(t)?e.replace(//g,"$#62;"):e.replace(//g,">")}))).replace(/<(?=\/?(\w|\n|$))/g,"<")).replace(/\$#60;/g,"<").replace(/\$#62;/g,">")}},{key:"makeHtml",value:function(e,t){return e}},{key:"afterMakeHtml",value:function(e){var t=e,n={ALLOW_UNKNOWN_PROTOCOLS:!0,ADD_ATTR:["target"]};if(!1!==this.htmlWhiteListAppend){var r;if(n.ADD_TAGS=this.htmlWhiteList,(this.htmlWhiteListAppend.test("style")||this.htmlWhiteListAppend.test("ALL"))&&(t=t.replace(/| [^>]*>).*?<\/style>/gi,(function(e){return e.replace(/
    /gi,"")}))),this.htmlWhiteListAppend.test("iframe")||this.htmlWhiteListAppend.test("ALL"))n.ADD_ATTR=ec(r=n.ADD_ATTR).call(r,["align","frameborder","height","longdesc","marginheight","marginwidth","name","sandbox","scrolling","seamless","src","srcdoc","width"]),n.SANITIZE_DOM=!1,t=t.replace(/| [^>]*>).*?<\/iframe>/gi,(function(e){return e.replace(/
    /gi,"").replace(/\n/g,"")}));if(this.htmlWhiteListAppend.test("script")||this.htmlWhiteListAppend.test("ALL"))return t=t.replace(/| [^>]*>).*?<\/script>/gi,(function(e){return e.replace(/
    /gi,"")})),t}return hp()||(n.FORBID_ATTR=["data-sign","data-lines"]),ch.sanitize(t,n)}}]),n}(ru);gi(Ph,"HOOK_NAME","htmlBlock");var Lh={"+1":"1f44d","-1":"1f44e",100:"1f4af",1234:"1f522","1st_place_medal":"1f947","2nd_place_medal":"1f948","3rd_place_medal":"1f949","8ball":"1f3b1",a:"1f170",ab:"1f18e",abacus:"1f9ee",abc:"1f524",abcd:"1f521",accept:"1f251",adhesive_bandage:"1fa79",adult:"1f9d1",aerial_tramway:"1f6a1",afghanistan:"1f1e6-1f1eb",airplane:"2708",aland_islands:"1f1e6-1f1fd",alarm_clock:"23f0",albania:"1f1e6-1f1f1",alembic:"2697",algeria:"1f1e9-1f1ff",alien:"1f47d",ambulance:"1f691",american_samoa:"1f1e6-1f1f8",amphora:"1f3fa",anchor:"2693",andorra:"1f1e6-1f1e9",angel:"1f47c",anger:"1f4a2",angola:"1f1e6-1f1f4",angry:"1f620",anguilla:"1f1e6-1f1ee",anguished:"1f627",ant:"1f41c",antarctica:"1f1e6-1f1f6",antigua_barbuda:"1f1e6-1f1ec",apple:"1f34e",aquarius:"2652",argentina:"1f1e6-1f1f7",aries:"2648",armenia:"1f1e6-1f1f2",arrow_backward:"25c0",arrow_double_down:"23ec",arrow_double_up:"23eb",arrow_down:"2b07",arrow_down_small:"1f53d",arrow_forward:"25b6",arrow_heading_down:"2935",arrow_heading_up:"2934",arrow_left:"2b05",arrow_lower_left:"2199",arrow_lower_right:"2198",arrow_right:"27a1",arrow_right_hook:"21aa",arrow_up:"2b06",arrow_up_down:"2195",arrow_up_small:"1f53c",arrow_upper_left:"2196",arrow_upper_right:"2197",arrows_clockwise:"1f503",arrows_counterclockwise:"1f504",art:"1f3a8",articulated_lorry:"1f69b",artificial_satellite:"1f6f0",artist:"1f9d1-1f3a8",aruba:"1f1e6-1f1fc",ascension_island:"1f1e6-1f1e8",asterisk:"002a-20e3",astonished:"1f632",astronaut:"1f9d1-1f680",athletic_shoe:"1f45f",atm:"1f3e7",atom_symbol:"269b",australia:"1f1e6-1f1fa",austria:"1f1e6-1f1f9",auto_rickshaw:"1f6fa",avocado:"1f951",axe:"1fa93",azerbaijan:"1f1e6-1f1ff",b:"1f171",baby:"1f476",baby_bottle:"1f37c",baby_chick:"1f424",baby_symbol:"1f6bc",back:"1f519",bacon:"1f953",badger:"1f9a1",badminton:"1f3f8",bagel:"1f96f",baggage_claim:"1f6c4",baguette_bread:"1f956",bahamas:"1f1e7-1f1f8",bahrain:"1f1e7-1f1ed",balance_scale:"2696",bald_man:"1f468-1f9b2",bald_woman:"1f469-1f9b2",ballet_shoes:"1fa70",balloon:"1f388",ballot_box:"1f5f3",ballot_box_with_check:"2611",bamboo:"1f38d",banana:"1f34c",bangbang:"203c",bangladesh:"1f1e7-1f1e9",banjo:"1fa95",bank:"1f3e6",bar_chart:"1f4ca",barbados:"1f1e7-1f1e7",barber:"1f488",baseball:"26be",basket:"1f9fa",basketball:"1f3c0",basketball_man:"26f9-2642",basketball_woman:"26f9-2640",bat:"1f987",bath:"1f6c0",bathtub:"1f6c1",battery:"1f50b",beach_umbrella:"1f3d6",bear:"1f43b",bearded_person:"1f9d4",bed:"1f6cf",bee:"1f41d",beer:"1f37a",beers:"1f37b",beetle:"1f41e",beginner:"1f530",belarus:"1f1e7-1f1fe",belgium:"1f1e7-1f1ea",belize:"1f1e7-1f1ff",bell:"1f514",bellhop_bell:"1f6ce",benin:"1f1e7-1f1ef",bento:"1f371",bermuda:"1f1e7-1f1f2",beverage_box:"1f9c3",bhutan:"1f1e7-1f1f9",bicyclist:"1f6b4",bike:"1f6b2",biking_man:"1f6b4-2642",biking_woman:"1f6b4-2640",bikini:"1f459",billed_cap:"1f9e2",biohazard:"2623",bird:"1f426",birthday:"1f382",black_circle:"26ab",black_flag:"1f3f4",black_heart:"1f5a4",black_joker:"1f0cf",black_large_square:"2b1b",black_medium_small_square:"25fe",black_medium_square:"25fc",black_nib:"2712",black_small_square:"25aa",black_square_button:"1f532",blond_haired_man:"1f471-2642",blond_haired_person:"1f471",blond_haired_woman:"1f471-2640",blonde_woman:"1f471-2640",blossom:"1f33c",blowfish:"1f421",blue_book:"1f4d8",blue_car:"1f699",blue_heart:"1f499",blue_square:"1f7e6",blush:"1f60a",boar:"1f417",boat:"26f5",bolivia:"1f1e7-1f1f4",bomb:"1f4a3",bone:"1f9b4",book:"1f4d6",bookmark:"1f516",bookmark_tabs:"1f4d1",books:"1f4da",boom:"1f4a5",boot:"1f462",bosnia_herzegovina:"1f1e7-1f1e6",botswana:"1f1e7-1f1fc",bouncing_ball_man:"26f9-2642",bouncing_ball_person:"26f9",bouncing_ball_woman:"26f9-2640",bouquet:"1f490",bouvet_island:"1f1e7-1f1fb",bow:"1f647",bow_and_arrow:"1f3f9",bowing_man:"1f647-2642",bowing_woman:"1f647-2640",bowl_with_spoon:"1f963",bowling:"1f3b3",boxing_glove:"1f94a",boy:"1f466",brain:"1f9e0",brazil:"1f1e7-1f1f7",bread:"1f35e",breast_feeding:"1f931",bricks:"1f9f1",bride_with_veil:"1f470",bridge_at_night:"1f309",briefcase:"1f4bc",british_indian_ocean_territory:"1f1ee-1f1f4",british_virgin_islands:"1f1fb-1f1ec",broccoli:"1f966",broken_heart:"1f494",broom:"1f9f9",brown_circle:"1f7e4",brown_heart:"1f90e",brown_square:"1f7eb",brunei:"1f1e7-1f1f3",bug:"1f41b",building_construction:"1f3d7",bulb:"1f4a1",bulgaria:"1f1e7-1f1ec",bullettrain_front:"1f685",bullettrain_side:"1f684",burkina_faso:"1f1e7-1f1eb",burrito:"1f32f",burundi:"1f1e7-1f1ee",bus:"1f68c",business_suit_levitating:"1f574",busstop:"1f68f",bust_in_silhouette:"1f464",busts_in_silhouette:"1f465",butter:"1f9c8",butterfly:"1f98b",cactus:"1f335",cake:"1f370",calendar:"1f4c6",call_me_hand:"1f919",calling:"1f4f2",cambodia:"1f1f0-1f1ed",camel:"1f42b",camera:"1f4f7",camera_flash:"1f4f8",cameroon:"1f1e8-1f1f2",camping:"1f3d5",canada:"1f1e8-1f1e6",canary_islands:"1f1ee-1f1e8",cancer:"264b",candle:"1f56f",candy:"1f36c",canned_food:"1f96b",canoe:"1f6f6",cape_verde:"1f1e8-1f1fb",capital_abcd:"1f520",capricorn:"2651",car:"1f697",card_file_box:"1f5c3",card_index:"1f4c7",card_index_dividers:"1f5c2",caribbean_netherlands:"1f1e7-1f1f6",carousel_horse:"1f3a0",carrot:"1f955",cartwheeling:"1f938",cat:"1f431",cat2:"1f408",cayman_islands:"1f1f0-1f1fe",cd:"1f4bf",central_african_republic:"1f1e8-1f1eb",ceuta_melilla:"1f1ea-1f1e6",chad:"1f1f9-1f1e9",chains:"26d3",chair:"1fa91",champagne:"1f37e",chart:"1f4b9",chart_with_downwards_trend:"1f4c9",chart_with_upwards_trend:"1f4c8",checkered_flag:"1f3c1",cheese:"1f9c0",cherries:"1f352",cherry_blossom:"1f338",chess_pawn:"265f",chestnut:"1f330",chicken:"1f414",child:"1f9d2",children_crossing:"1f6b8",chile:"1f1e8-1f1f1",chipmunk:"1f43f",chocolate_bar:"1f36b",chopsticks:"1f962",christmas_island:"1f1e8-1f1fd",christmas_tree:"1f384",church:"26ea",cinema:"1f3a6",circus_tent:"1f3aa",city_sunrise:"1f307",city_sunset:"1f306",cityscape:"1f3d9",cl:"1f191",clamp:"1f5dc",clap:"1f44f",clapper:"1f3ac",classical_building:"1f3db",climbing:"1f9d7",climbing_man:"1f9d7-2642",climbing_woman:"1f9d7-2640",clinking_glasses:"1f942",clipboard:"1f4cb",clipperton_island:"1f1e8-1f1f5",clock1:"1f550",clock10:"1f559",clock1030:"1f565",clock11:"1f55a",clock1130:"1f566",clock12:"1f55b",clock1230:"1f567",clock130:"1f55c",clock2:"1f551",clock230:"1f55d",clock3:"1f552",clock330:"1f55e",clock4:"1f553",clock430:"1f55f",clock5:"1f554",clock530:"1f560",clock6:"1f555",clock630:"1f561",clock7:"1f556",clock730:"1f562",clock8:"1f557",clock830:"1f563",clock9:"1f558",clock930:"1f564",closed_book:"1f4d5",closed_lock_with_key:"1f510",closed_umbrella:"1f302",cloud:"2601",cloud_with_lightning:"1f329",cloud_with_lightning_and_rain:"26c8",cloud_with_rain:"1f327",cloud_with_snow:"1f328",clown_face:"1f921",clubs:"2663",cn:"1f1e8-1f1f3",coat:"1f9e5",cocktail:"1f378",coconut:"1f965",cocos_islands:"1f1e8-1f1e8",coffee:"2615",coffin:"26b0",cold_face:"1f976",cold_sweat:"1f630",collision:"1f4a5",colombia:"1f1e8-1f1f4",comet:"2604",comoros:"1f1f0-1f1f2",compass:"1f9ed",computer:"1f4bb",computer_mouse:"1f5b1",confetti_ball:"1f38a",confounded:"1f616",confused:"1f615",congo_brazzaville:"1f1e8-1f1ec",congo_kinshasa:"1f1e8-1f1e9",congratulations:"3297",construction:"1f6a7",construction_worker:"1f477",construction_worker_man:"1f477-2642",construction_worker_woman:"1f477-2640",control_knobs:"1f39b",convenience_store:"1f3ea",cook:"1f9d1-1f373",cook_islands:"1f1e8-1f1f0",cookie:"1f36a",cool:"1f192",cop:"1f46e",copyright:"00a9",corn:"1f33d",costa_rica:"1f1e8-1f1f7",cote_divoire:"1f1e8-1f1ee",couch_and_lamp:"1f6cb",couple:"1f46b",couple_with_heart:"1f491",couple_with_heart_man_man:"1f468-2764-1f468",couple_with_heart_woman_man:"1f469-2764-1f468",couple_with_heart_woman_woman:"1f469-2764-1f469",couplekiss:"1f48f",couplekiss_man_man:"1f468-2764-1f48b-1f468",couplekiss_man_woman:"1f469-2764-1f48b-1f468",couplekiss_woman_woman:"1f469-2764-1f48b-1f469",cow:"1f42e",cow2:"1f404",cowboy_hat_face:"1f920",crab:"1f980",crayon:"1f58d",credit_card:"1f4b3",crescent_moon:"1f319",cricket:"1f997",cricket_game:"1f3cf",croatia:"1f1ed-1f1f7",crocodile:"1f40a",croissant:"1f950",crossed_fingers:"1f91e",crossed_flags:"1f38c",crossed_swords:"2694",crown:"1f451",cry:"1f622",crying_cat_face:"1f63f",crystal_ball:"1f52e",cuba:"1f1e8-1f1fa",cucumber:"1f952",cup_with_straw:"1f964",cupcake:"1f9c1",cupid:"1f498",curacao:"1f1e8-1f1fc",curling_stone:"1f94c",curly_haired_man:"1f468-1f9b1",curly_haired_woman:"1f469-1f9b1",curly_loop:"27b0",currency_exchange:"1f4b1",curry:"1f35b",cursing_face:"1f92c",custard:"1f36e",customs:"1f6c3",cut_of_meat:"1f969",cyclone:"1f300",cyprus:"1f1e8-1f1fe",czech_republic:"1f1e8-1f1ff",dagger:"1f5e1",dancer:"1f483",dancers:"1f46f",dancing_men:"1f46f-2642",dancing_women:"1f46f-2640",dango:"1f361",dark_sunglasses:"1f576",dart:"1f3af",dash:"1f4a8",date:"1f4c5",de:"1f1e9-1f1ea",deaf_man:"1f9cf-2642",deaf_person:"1f9cf",deaf_woman:"1f9cf-2640",deciduous_tree:"1f333",deer:"1f98c",denmark:"1f1e9-1f1f0",department_store:"1f3ec",derelict_house:"1f3da",desert:"1f3dc",desert_island:"1f3dd",desktop_computer:"1f5a5",detective:"1f575",diamond_shape_with_a_dot_inside:"1f4a0",diamonds:"2666",diego_garcia:"1f1e9-1f1ec",disappointed:"1f61e",disappointed_relieved:"1f625",diving_mask:"1f93f",diya_lamp:"1fa94",dizzy:"1f4ab",dizzy_face:"1f635",djibouti:"1f1e9-1f1ef",dna:"1f9ec",do_not_litter:"1f6af",dog:"1f436",dog2:"1f415",dollar:"1f4b5",dolls:"1f38e",dolphin:"1f42c",dominica:"1f1e9-1f1f2",dominican_republic:"1f1e9-1f1f4",door:"1f6aa",doughnut:"1f369",dove:"1f54a",dragon:"1f409",dragon_face:"1f432",dress:"1f457",dromedary_camel:"1f42a",drooling_face:"1f924",drop_of_blood:"1fa78",droplet:"1f4a7",drum:"1f941",duck:"1f986",dumpling:"1f95f",dvd:"1f4c0","e-mail":"1f4e7",eagle:"1f985",ear:"1f442",ear_of_rice:"1f33e",ear_with_hearing_aid:"1f9bb",earth_africa:"1f30d",earth_americas:"1f30e",earth_asia:"1f30f",ecuador:"1f1ea-1f1e8",egg:"1f95a",eggplant:"1f346",egypt:"1f1ea-1f1ec",eight:"0038-20e3",eight_pointed_black_star:"2734",eight_spoked_asterisk:"2733",eject_button:"23cf",el_salvador:"1f1f8-1f1fb",electric_plug:"1f50c",elephant:"1f418",elf:"1f9dd",elf_man:"1f9dd-2642",elf_woman:"1f9dd-2640",email:"2709",end:"1f51a",england:"1f3f4-e0067-e0062-e0065-e006e-e0067-e007f",envelope:"2709",envelope_with_arrow:"1f4e9",equatorial_guinea:"1f1ec-1f1f6",eritrea:"1f1ea-1f1f7",es:"1f1ea-1f1f8",estonia:"1f1ea-1f1ea",ethiopia:"1f1ea-1f1f9",eu:"1f1ea-1f1fa",euro:"1f4b6",european_castle:"1f3f0",european_post_office:"1f3e4",european_union:"1f1ea-1f1fa",evergreen_tree:"1f332",exclamation:"2757",exploding_head:"1f92f",expressionless:"1f611",eye:"1f441",eye_speech_bubble:"1f441-1f5e8",eyeglasses:"1f453",eyes:"1f440",face_with_head_bandage:"1f915",face_with_thermometer:"1f912",facepalm:"1f926",facepunch:"1f44a",factory:"1f3ed",factory_worker:"1f9d1-1f3ed",fairy:"1f9da",fairy_man:"1f9da-2642",fairy_woman:"1f9da-2640",falafel:"1f9c6",falkland_islands:"1f1eb-1f1f0",fallen_leaf:"1f342",family:"1f46a",family_man_boy:"1f468-1f466",family_man_boy_boy:"1f468-1f466-1f466",family_man_girl:"1f468-1f467",family_man_girl_boy:"1f468-1f467-1f466",family_man_girl_girl:"1f468-1f467-1f467",family_man_man_boy:"1f468-1f468-1f466",family_man_man_boy_boy:"1f468-1f468-1f466-1f466",family_man_man_girl:"1f468-1f468-1f467",family_man_man_girl_boy:"1f468-1f468-1f467-1f466",family_man_man_girl_girl:"1f468-1f468-1f467-1f467",family_man_woman_boy:"1f468-1f469-1f466",family_man_woman_boy_boy:"1f468-1f469-1f466-1f466",family_man_woman_girl:"1f468-1f469-1f467",family_man_woman_girl_boy:"1f468-1f469-1f467-1f466",family_man_woman_girl_girl:"1f468-1f469-1f467-1f467",family_woman_boy:"1f469-1f466",family_woman_boy_boy:"1f469-1f466-1f466",family_woman_girl:"1f469-1f467",family_woman_girl_boy:"1f469-1f467-1f466",family_woman_girl_girl:"1f469-1f467-1f467",family_woman_woman_boy:"1f469-1f469-1f466",family_woman_woman_boy_boy:"1f469-1f469-1f466-1f466",family_woman_woman_girl:"1f469-1f469-1f467",family_woman_woman_girl_boy:"1f469-1f469-1f467-1f466",family_woman_woman_girl_girl:"1f469-1f469-1f467-1f467",farmer:"1f9d1-1f33e",faroe_islands:"1f1eb-1f1f4",fast_forward:"23e9",fax:"1f4e0",fearful:"1f628",feet:"1f43e",female_detective:"1f575-2640",female_sign:"2640",ferris_wheel:"1f3a1",ferry:"26f4",field_hockey:"1f3d1",fiji:"1f1eb-1f1ef",file_cabinet:"1f5c4",file_folder:"1f4c1",film_projector:"1f4fd",film_strip:"1f39e",finland:"1f1eb-1f1ee",fire:"1f525",fire_engine:"1f692",fire_extinguisher:"1f9ef",firecracker:"1f9e8",firefighter:"1f9d1-1f692",fireworks:"1f386",first_quarter_moon:"1f313",first_quarter_moon_with_face:"1f31b",fish:"1f41f",fish_cake:"1f365",fishing_pole_and_fish:"1f3a3",fist:"270a",fist_left:"1f91b",fist_oncoming:"1f44a",fist_raised:"270a",fist_right:"1f91c",five:"0035-20e3",flags:"1f38f",flamingo:"1f9a9",flashlight:"1f526",flat_shoe:"1f97f",fleur_de_lis:"269c",flight_arrival:"1f6ec",flight_departure:"1f6eb",flipper:"1f42c",floppy_disk:"1f4be",flower_playing_cards:"1f3b4",flushed:"1f633",flying_disc:"1f94f",flying_saucer:"1f6f8",fog:"1f32b",foggy:"1f301",foot:"1f9b6",football:"1f3c8",footprints:"1f463",fork_and_knife:"1f374",fortune_cookie:"1f960",fountain:"26f2",fountain_pen:"1f58b",four:"0034-20e3",four_leaf_clover:"1f340",fox_face:"1f98a",fr:"1f1eb-1f1f7",framed_picture:"1f5bc",free:"1f193",french_guiana:"1f1ec-1f1eb",french_polynesia:"1f1f5-1f1eb",french_southern_territories:"1f1f9-1f1eb",fried_egg:"1f373",fried_shrimp:"1f364",fries:"1f35f",frog:"1f438",frowning:"1f626",frowning_face:"2639",frowning_man:"1f64d-2642",frowning_person:"1f64d",frowning_woman:"1f64d-2640",fu:"1f595",fuelpump:"26fd",full_moon:"1f315",full_moon_with_face:"1f31d",funeral_urn:"26b1",gabon:"1f1ec-1f1e6",gambia:"1f1ec-1f1f2",game_die:"1f3b2",garlic:"1f9c4",gb:"1f1ec-1f1e7",gear:"2699",gem:"1f48e",gemini:"264a",genie:"1f9de",genie_man:"1f9de-2642",genie_woman:"1f9de-2640",georgia:"1f1ec-1f1ea",ghana:"1f1ec-1f1ed",ghost:"1f47b",gibraltar:"1f1ec-1f1ee",gift:"1f381",gift_heart:"1f49d",giraffe:"1f992",girl:"1f467",globe_with_meridians:"1f310",gloves:"1f9e4",goal_net:"1f945",goat:"1f410",goggles:"1f97d",golf:"26f3",golfing:"1f3cc",golfing_man:"1f3cc-2642",golfing_woman:"1f3cc-2640",gorilla:"1f98d",grapes:"1f347",greece:"1f1ec-1f1f7",green_apple:"1f34f",green_book:"1f4d7",green_circle:"1f7e2",green_heart:"1f49a",green_salad:"1f957",green_square:"1f7e9",greenland:"1f1ec-1f1f1",grenada:"1f1ec-1f1e9",grey_exclamation:"2755",grey_question:"2754",grimacing:"1f62c",grin:"1f601",grinning:"1f600",guadeloupe:"1f1ec-1f1f5",guam:"1f1ec-1f1fa",guard:"1f482",guardsman:"1f482-2642",guardswoman:"1f482-2640",guatemala:"1f1ec-1f1f9",guernsey:"1f1ec-1f1ec",guide_dog:"1f9ae",guinea:"1f1ec-1f1f3",guinea_bissau:"1f1ec-1f1fc",guitar:"1f3b8",gun:"1f52b",guyana:"1f1ec-1f1fe",haircut:"1f487",haircut_man:"1f487-2642",haircut_woman:"1f487-2640",haiti:"1f1ed-1f1f9",hamburger:"1f354",hammer:"1f528",hammer_and_pick:"2692",hammer_and_wrench:"1f6e0",hamster:"1f439",hand:"270b",hand_over_mouth:"1f92d",handbag:"1f45c",handball_person:"1f93e",handshake:"1f91d",hankey:"1f4a9",hash:"0023-20e3",hatched_chick:"1f425",hatching_chick:"1f423",headphones:"1f3a7",health_worker:"1f9d1-2695",hear_no_evil:"1f649",heard_mcdonald_islands:"1f1ed-1f1f2",heart:"2764",heart_decoration:"1f49f",heart_eyes:"1f60d",heart_eyes_cat:"1f63b",heartbeat:"1f493",heartpulse:"1f497",hearts:"2665",heavy_check_mark:"2714",heavy_division_sign:"2797",heavy_dollar_sign:"1f4b2",heavy_exclamation_mark:"2757",heavy_heart_exclamation:"2763",heavy_minus_sign:"2796",heavy_multiplication_x:"2716",heavy_plus_sign:"2795",hedgehog:"1f994",helicopter:"1f681",herb:"1f33f",hibiscus:"1f33a",high_brightness:"1f506",high_heel:"1f460",hiking_boot:"1f97e",hindu_temple:"1f6d5",hippopotamus:"1f99b",hocho:"1f52a",hole:"1f573",honduras:"1f1ed-1f1f3",honey_pot:"1f36f",honeybee:"1f41d",hong_kong:"1f1ed-1f1f0",horse:"1f434",horse_racing:"1f3c7",hospital:"1f3e5",hot_face:"1f975",hot_pepper:"1f336",hotdog:"1f32d",hotel:"1f3e8",hotsprings:"2668",hourglass:"231b",hourglass_flowing_sand:"23f3",house:"1f3e0",house_with_garden:"1f3e1",houses:"1f3d8",hugs:"1f917",hungary:"1f1ed-1f1fa",hushed:"1f62f",ice_cream:"1f368",ice_cube:"1f9ca",ice_hockey:"1f3d2",ice_skate:"26f8",icecream:"1f366",iceland:"1f1ee-1f1f8",id:"1f194",ideograph_advantage:"1f250",imp:"1f47f",inbox_tray:"1f4e5",incoming_envelope:"1f4e8",india:"1f1ee-1f1f3",indonesia:"1f1ee-1f1e9",infinity:"267e",information_desk_person:"1f481",information_source:"2139",innocent:"1f607",interrobang:"2049",iphone:"1f4f1",iran:"1f1ee-1f1f7",iraq:"1f1ee-1f1f6",ireland:"1f1ee-1f1ea",isle_of_man:"1f1ee-1f1f2",israel:"1f1ee-1f1f1",it:"1f1ee-1f1f9",izakaya_lantern:"1f3ee",jack_o_lantern:"1f383",jamaica:"1f1ef-1f1f2",japan:"1f5fe",japanese_castle:"1f3ef",japanese_goblin:"1f47a",japanese_ogre:"1f479",jeans:"1f456",jersey:"1f1ef-1f1ea",jigsaw:"1f9e9",jordan:"1f1ef-1f1f4",joy:"1f602",joy_cat:"1f639",joystick:"1f579",jp:"1f1ef-1f1f5",judge:"1f9d1-2696",juggling_person:"1f939",kaaba:"1f54b",kangaroo:"1f998",kazakhstan:"1f1f0-1f1ff",kenya:"1f1f0-1f1ea",key:"1f511",keyboard:"2328",keycap_ten:"1f51f",kick_scooter:"1f6f4",kimono:"1f458",kiribati:"1f1f0-1f1ee",kiss:"1f48b",kissing:"1f617",kissing_cat:"1f63d",kissing_closed_eyes:"1f61a",kissing_heart:"1f618",kissing_smiling_eyes:"1f619",kite:"1fa81",kiwi_fruit:"1f95d",kneeling_man:"1f9ce-2642",kneeling_person:"1f9ce",kneeling_woman:"1f9ce-2640",knife:"1f52a",koala:"1f428",koko:"1f201",kosovo:"1f1fd-1f1f0",kr:"1f1f0-1f1f7",kuwait:"1f1f0-1f1fc",kyrgyzstan:"1f1f0-1f1ec",lab_coat:"1f97c",label:"1f3f7",lacrosse:"1f94d",lantern:"1f3ee",laos:"1f1f1-1f1e6",large_blue_circle:"1f535",large_blue_diamond:"1f537",large_orange_diamond:"1f536",last_quarter_moon:"1f317",last_quarter_moon_with_face:"1f31c",latin_cross:"271d",latvia:"1f1f1-1f1fb",laughing:"1f606",leafy_green:"1f96c",leaves:"1f343",lebanon:"1f1f1-1f1e7",ledger:"1f4d2",left_luggage:"1f6c5",left_right_arrow:"2194",left_speech_bubble:"1f5e8",leftwards_arrow_with_hook:"21a9",leg:"1f9b5",lemon:"1f34b",leo:"264c",leopard:"1f406",lesotho:"1f1f1-1f1f8",level_slider:"1f39a",liberia:"1f1f1-1f1f7",libra:"264e",libya:"1f1f1-1f1fe",liechtenstein:"1f1f1-1f1ee",light_rail:"1f688",link:"1f517",lion:"1f981",lips:"1f444",lipstick:"1f484",lithuania:"1f1f1-1f1f9",lizard:"1f98e",llama:"1f999",lobster:"1f99e",lock:"1f512",lock_with_ink_pen:"1f50f",lollipop:"1f36d",loop:"27bf",lotion_bottle:"1f9f4",lotus_position:"1f9d8",lotus_position_man:"1f9d8-2642",lotus_position_woman:"1f9d8-2640",loud_sound:"1f50a",loudspeaker:"1f4e2",love_hotel:"1f3e9",love_letter:"1f48c",love_you_gesture:"1f91f",low_brightness:"1f505",luggage:"1f9f3",luxembourg:"1f1f1-1f1fa",lying_face:"1f925",m:"24c2",macau:"1f1f2-1f1f4",macedonia:"1f1f2-1f1f0",madagascar:"1f1f2-1f1ec",mag:"1f50d",mag_right:"1f50e",mage:"1f9d9",mage_man:"1f9d9-2642",mage_woman:"1f9d9-2640",magnet:"1f9f2",mahjong:"1f004",mailbox:"1f4eb",mailbox_closed:"1f4ea",mailbox_with_mail:"1f4ec",mailbox_with_no_mail:"1f4ed",malawi:"1f1f2-1f1fc",malaysia:"1f1f2-1f1fe",maldives:"1f1f2-1f1fb",male_detective:"1f575-2642",male_sign:"2642",mali:"1f1f2-1f1f1",malta:"1f1f2-1f1f9",man:"1f468",man_artist:"1f468-1f3a8",man_astronaut:"1f468-1f680",man_cartwheeling:"1f938-2642",man_cook:"1f468-1f373",man_dancing:"1f57a",man_facepalming:"1f926-2642",man_factory_worker:"1f468-1f3ed",man_farmer:"1f468-1f33e",man_firefighter:"1f468-1f692",man_health_worker:"1f468-2695",man_in_manual_wheelchair:"1f468-1f9bd",man_in_motorized_wheelchair:"1f468-1f9bc",man_in_tuxedo:"1f935",man_judge:"1f468-2696",man_juggling:"1f939-2642",man_mechanic:"1f468-1f527",man_office_worker:"1f468-1f4bc",man_pilot:"1f468-2708",man_playing_handball:"1f93e-2642",man_playing_water_polo:"1f93d-2642",man_scientist:"1f468-1f52c",man_shrugging:"1f937-2642",man_singer:"1f468-1f3a4",man_student:"1f468-1f393",man_teacher:"1f468-1f3eb",man_technologist:"1f468-1f4bb",man_with_gua_pi_mao:"1f472",man_with_probing_cane:"1f468-1f9af",man_with_turban:"1f473-2642",mandarin:"1f34a",mango:"1f96d",mans_shoe:"1f45e",mantelpiece_clock:"1f570",manual_wheelchair:"1f9bd",maple_leaf:"1f341",marshall_islands:"1f1f2-1f1ed",martial_arts_uniform:"1f94b",martinique:"1f1f2-1f1f6",mask:"1f637",massage:"1f486",massage_man:"1f486-2642",massage_woman:"1f486-2640",mate:"1f9c9",mauritania:"1f1f2-1f1f7",mauritius:"1f1f2-1f1fa",mayotte:"1f1fe-1f1f9",meat_on_bone:"1f356",mechanic:"1f9d1-1f527",mechanical_arm:"1f9be",mechanical_leg:"1f9bf",medal_military:"1f396",medal_sports:"1f3c5",medical_symbol:"2695",mega:"1f4e3",melon:"1f348",memo:"1f4dd",men_wrestling:"1f93c-2642",menorah:"1f54e",mens:"1f6b9",mermaid:"1f9dc-2640",merman:"1f9dc-2642",merperson:"1f9dc",metal:"1f918",metro:"1f687",mexico:"1f1f2-1f1fd",microbe:"1f9a0",micronesia:"1f1eb-1f1f2",microphone:"1f3a4",microscope:"1f52c",middle_finger:"1f595",milk_glass:"1f95b",milky_way:"1f30c",minibus:"1f690",minidisc:"1f4bd",mobile_phone_off:"1f4f4",moldova:"1f1f2-1f1e9",monaco:"1f1f2-1f1e8",money_mouth_face:"1f911",money_with_wings:"1f4b8",moneybag:"1f4b0",mongolia:"1f1f2-1f1f3",monkey:"1f412",monkey_face:"1f435",monocle_face:"1f9d0",monorail:"1f69d",montenegro:"1f1f2-1f1ea",montserrat:"1f1f2-1f1f8",moon:"1f314",moon_cake:"1f96e",morocco:"1f1f2-1f1e6",mortar_board:"1f393",mosque:"1f54c",mosquito:"1f99f",motor_boat:"1f6e5",motor_scooter:"1f6f5",motorcycle:"1f3cd",motorized_wheelchair:"1f9bc",motorway:"1f6e3",mount_fuji:"1f5fb",mountain:"26f0",mountain_bicyclist:"1f6b5",mountain_biking_man:"1f6b5-2642",mountain_biking_woman:"1f6b5-2640",mountain_cableway:"1f6a0",mountain_railway:"1f69e",mountain_snow:"1f3d4",mouse:"1f42d",mouse2:"1f401",movie_camera:"1f3a5",moyai:"1f5ff",mozambique:"1f1f2-1f1ff",mrs_claus:"1f936",muscle:"1f4aa",mushroom:"1f344",musical_keyboard:"1f3b9",musical_note:"1f3b5",musical_score:"1f3bc",mute:"1f507",myanmar:"1f1f2-1f1f2",nail_care:"1f485",name_badge:"1f4db",namibia:"1f1f3-1f1e6",national_park:"1f3de",nauru:"1f1f3-1f1f7",nauseated_face:"1f922",nazar_amulet:"1f9ff",necktie:"1f454",negative_squared_cross_mark:"274e",nepal:"1f1f3-1f1f5",nerd_face:"1f913",netherlands:"1f1f3-1f1f1",neutral_face:"1f610",new:"1f195",new_caledonia:"1f1f3-1f1e8",new_moon:"1f311",new_moon_with_face:"1f31a",new_zealand:"1f1f3-1f1ff",newspaper:"1f4f0",newspaper_roll:"1f5de",next_track_button:"23ed",ng:"1f196",ng_man:"1f645-2642",ng_woman:"1f645-2640",nicaragua:"1f1f3-1f1ee",niger:"1f1f3-1f1ea",nigeria:"1f1f3-1f1ec",night_with_stars:"1f303",nine:"0039-20e3",niue:"1f1f3-1f1fa",no_bell:"1f515",no_bicycles:"1f6b3",no_entry:"26d4",no_entry_sign:"1f6ab",no_good:"1f645",no_good_man:"1f645-2642",no_good_woman:"1f645-2640",no_mobile_phones:"1f4f5",no_mouth:"1f636",no_pedestrians:"1f6b7",no_smoking:"1f6ad","non-potable_water":"1f6b1",norfolk_island:"1f1f3-1f1eb",north_korea:"1f1f0-1f1f5",northern_mariana_islands:"1f1f2-1f1f5",norway:"1f1f3-1f1f4",nose:"1f443",notebook:"1f4d3",notebook_with_decorative_cover:"1f4d4",notes:"1f3b6",nut_and_bolt:"1f529",o:"2b55",o2:"1f17e",ocean:"1f30a",octopus:"1f419",oden:"1f362",office:"1f3e2",office_worker:"1f9d1-1f4bc",oil_drum:"1f6e2",ok:"1f197",ok_hand:"1f44c",ok_man:"1f646-2642",ok_person:"1f646",ok_woman:"1f646-2640",old_key:"1f5dd",older_adult:"1f9d3",older_man:"1f474",older_woman:"1f475",om:"1f549",oman:"1f1f4-1f1f2",on:"1f51b",oncoming_automobile:"1f698",oncoming_bus:"1f68d",oncoming_police_car:"1f694",oncoming_taxi:"1f696",one:"0031-20e3",one_piece_swimsuit:"1fa71",onion:"1f9c5",open_book:"1f4d6",open_file_folder:"1f4c2",open_hands:"1f450",open_mouth:"1f62e",open_umbrella:"2602",ophiuchus:"26ce",orange:"1f34a",orange_book:"1f4d9",orange_circle:"1f7e0",orange_heart:"1f9e1",orange_square:"1f7e7",orangutan:"1f9a7",orthodox_cross:"2626",otter:"1f9a6",outbox_tray:"1f4e4",owl:"1f989",ox:"1f402",oyster:"1f9aa",package:"1f4e6",page_facing_up:"1f4c4",page_with_curl:"1f4c3",pager:"1f4df",paintbrush:"1f58c",pakistan:"1f1f5-1f1f0",palau:"1f1f5-1f1fc",palestinian_territories:"1f1f5-1f1f8",palm_tree:"1f334",palms_up_together:"1f932",panama:"1f1f5-1f1e6",pancakes:"1f95e",panda_face:"1f43c",paperclip:"1f4ce",paperclips:"1f587",papua_new_guinea:"1f1f5-1f1ec",parachute:"1fa82",paraguay:"1f1f5-1f1fe",parasol_on_ground:"26f1",parking:"1f17f",parrot:"1f99c",part_alternation_mark:"303d",partly_sunny:"26c5",partying_face:"1f973",passenger_ship:"1f6f3",passport_control:"1f6c2",pause_button:"23f8",paw_prints:"1f43e",peace_symbol:"262e",peach:"1f351",peacock:"1f99a",peanuts:"1f95c",pear:"1f350",pen:"1f58a",pencil:"1f4dd",pencil2:"270f",penguin:"1f427",pensive:"1f614",people_holding_hands:"1f9d1-1f91d-1f9d1",performing_arts:"1f3ad",persevere:"1f623",person_bald:"1f9d1-1f9b2",person_curly_hair:"1f9d1-1f9b1",person_fencing:"1f93a",person_in_manual_wheelchair:"1f9d1-1f9bd",person_in_motorized_wheelchair:"1f9d1-1f9bc",person_red_hair:"1f9d1-1f9b0",person_white_hair:"1f9d1-1f9b3",person_with_probing_cane:"1f9d1-1f9af",person_with_turban:"1f473",peru:"1f1f5-1f1ea",petri_dish:"1f9eb",philippines:"1f1f5-1f1ed",phone:"260e",pick:"26cf",pie:"1f967",pig:"1f437",pig2:"1f416",pig_nose:"1f43d",pill:"1f48a",pilot:"1f9d1-2708",pinching_hand:"1f90f",pineapple:"1f34d",ping_pong:"1f3d3",pirate_flag:"1f3f4-2620",pisces:"2653",pitcairn_islands:"1f1f5-1f1f3",pizza:"1f355",place_of_worship:"1f6d0",plate_with_cutlery:"1f37d",play_or_pause_button:"23ef",pleading_face:"1f97a",point_down:"1f447",point_left:"1f448",point_right:"1f449",point_up:"261d",point_up_2:"1f446",poland:"1f1f5-1f1f1",police_car:"1f693",police_officer:"1f46e",policeman:"1f46e-2642",policewoman:"1f46e-2640",poodle:"1f429",poop:"1f4a9",popcorn:"1f37f",portugal:"1f1f5-1f1f9",post_office:"1f3e3",postal_horn:"1f4ef",postbox:"1f4ee",potable_water:"1f6b0",potato:"1f954",pouch:"1f45d",poultry_leg:"1f357",pound:"1f4b7",pout:"1f621",pouting_cat:"1f63e",pouting_face:"1f64e",pouting_man:"1f64e-2642",pouting_woman:"1f64e-2640",pray:"1f64f",prayer_beads:"1f4ff",pregnant_woman:"1f930",pretzel:"1f968",previous_track_button:"23ee",prince:"1f934",princess:"1f478",printer:"1f5a8",probing_cane:"1f9af",puerto_rico:"1f1f5-1f1f7",punch:"1f44a",purple_circle:"1f7e3",purple_heart:"1f49c",purple_square:"1f7ea",purse:"1f45b",pushpin:"1f4cc",put_litter_in_its_place:"1f6ae",qatar:"1f1f6-1f1e6",question:"2753",rabbit:"1f430",rabbit2:"1f407",raccoon:"1f99d",racehorse:"1f40e",racing_car:"1f3ce",radio:"1f4fb",radio_button:"1f518",radioactive:"2622",rage:"1f621",railway_car:"1f683",railway_track:"1f6e4",rainbow:"1f308",rainbow_flag:"1f3f3-1f308",raised_back_of_hand:"1f91a",raised_eyebrow:"1f928",raised_hand:"270b",raised_hand_with_fingers_splayed:"1f590",raised_hands:"1f64c",raising_hand:"1f64b",raising_hand_man:"1f64b-2642",raising_hand_woman:"1f64b-2640",ram:"1f40f",ramen:"1f35c",rat:"1f400",razor:"1fa92",receipt:"1f9fe",record_button:"23fa",recycle:"267b",red_car:"1f697",red_circle:"1f534",red_envelope:"1f9e7",red_haired_man:"1f468-1f9b0",red_haired_woman:"1f469-1f9b0",red_square:"1f7e5",registered:"00ae",relaxed:"263a",relieved:"1f60c",reminder_ribbon:"1f397",repeat:"1f501",repeat_one:"1f502",rescue_worker_helmet:"26d1",restroom:"1f6bb",reunion:"1f1f7-1f1ea",revolving_hearts:"1f49e",rewind:"23ea",rhinoceros:"1f98f",ribbon:"1f380",rice:"1f35a",rice_ball:"1f359",rice_cracker:"1f358",rice_scene:"1f391",right_anger_bubble:"1f5ef",ring:"1f48d",ringed_planet:"1fa90",robot:"1f916",rocket:"1f680",rofl:"1f923",roll_eyes:"1f644",roll_of_paper:"1f9fb",roller_coaster:"1f3a2",romania:"1f1f7-1f1f4",rooster:"1f413",rose:"1f339",rosette:"1f3f5",rotating_light:"1f6a8",round_pushpin:"1f4cd",rowboat:"1f6a3",rowing_man:"1f6a3-2642",rowing_woman:"1f6a3-2640",ru:"1f1f7-1f1fa",rugby_football:"1f3c9",runner:"1f3c3",running:"1f3c3",running_man:"1f3c3-2642",running_shirt_with_sash:"1f3bd",running_woman:"1f3c3-2640",rwanda:"1f1f7-1f1fc",sa:"1f202",safety_pin:"1f9f7",safety_vest:"1f9ba",sagittarius:"2650",sailboat:"26f5",sake:"1f376",salt:"1f9c2",samoa:"1f1fc-1f1f8",san_marino:"1f1f8-1f1f2",sandal:"1f461",sandwich:"1f96a",santa:"1f385",sao_tome_principe:"1f1f8-1f1f9",sari:"1f97b",sassy_man:"1f481-2642",sassy_woman:"1f481-2640",satellite:"1f4e1",satisfied:"1f606",saudi_arabia:"1f1f8-1f1e6",sauna_man:"1f9d6-2642",sauna_person:"1f9d6",sauna_woman:"1f9d6-2640",sauropod:"1f995",saxophone:"1f3b7",scarf:"1f9e3",school:"1f3eb",school_satchel:"1f392",scientist:"1f9d1-1f52c",scissors:"2702",scorpion:"1f982",scorpius:"264f",scotland:"1f3f4-e0067-e0062-e0073-e0063-e0074-e007f",scream:"1f631",scream_cat:"1f640",scroll:"1f4dc",seat:"1f4ba",secret:"3299",see_no_evil:"1f648",seedling:"1f331",selfie:"1f933",senegal:"1f1f8-1f1f3",serbia:"1f1f7-1f1f8",service_dog:"1f415-1f9ba",seven:"0037-20e3",seychelles:"1f1f8-1f1e8",shallow_pan_of_food:"1f958",shamrock:"2618",shark:"1f988",shaved_ice:"1f367",sheep:"1f411",shell:"1f41a",shield:"1f6e1",shinto_shrine:"26e9",ship:"1f6a2",shirt:"1f455",poo:"1f4a9",shoe:"1f45e",shopping:"1f6cd",shopping_cart:"1f6d2",shorts:"1fa73",shower:"1f6bf",shrimp:"1f990",shrug:"1f937",shushing_face:"1f92b",sierra_leone:"1f1f8-1f1f1",signal_strength:"1f4f6",singapore:"1f1f8-1f1ec",singer:"1f9d1-1f3a4",sint_maarten:"1f1f8-1f1fd",six:"0036-20e3",six_pointed_star:"1f52f",skateboard:"1f6f9",ski:"1f3bf",skier:"26f7",skull:"1f480",skull_and_crossbones:"2620",skunk:"1f9a8",sled:"1f6f7",sleeping:"1f634",sleeping_bed:"1f6cc",sleepy:"1f62a",slightly_frowning_face:"1f641",slightly_smiling_face:"1f642",slot_machine:"1f3b0",sloth:"1f9a5",slovakia:"1f1f8-1f1f0",slovenia:"1f1f8-1f1ee",small_airplane:"1f6e9",small_blue_diamond:"1f539",small_orange_diamond:"1f538",small_red_triangle:"1f53a",small_red_triangle_down:"1f53b",smile:"1f604",smile_cat:"1f638",smiley:"1f603",smiley_cat:"1f63a",smiling_face_with_three_hearts:"1f970",smiling_imp:"1f608",smirk:"1f60f",smirk_cat:"1f63c",smoking:"1f6ac",snail:"1f40c",snake:"1f40d",sneezing_face:"1f927",snowboarder:"1f3c2",snowflake:"2744",snowman:"26c4",snowman_with_snow:"2603",soap:"1f9fc",sob:"1f62d",soccer:"26bd",socks:"1f9e6",softball:"1f94e",solomon_islands:"1f1f8-1f1e7",somalia:"1f1f8-1f1f4",soon:"1f51c",sos:"1f198",sound:"1f509",south_africa:"1f1ff-1f1e6",south_georgia_south_sandwich_islands:"1f1ec-1f1f8",south_sudan:"1f1f8-1f1f8",space_invader:"1f47e",spades:"2660",spaghetti:"1f35d",sparkle:"2747",sparkler:"1f387",sparkles:"2728",sparkling_heart:"1f496",speak_no_evil:"1f64a",speaker:"1f508",speaking_head:"1f5e3",speech_balloon:"1f4ac",speedboat:"1f6a4",spider:"1f577",spider_web:"1f578",spiral_calendar:"1f5d3",spiral_notepad:"1f5d2",sponge:"1f9fd",spoon:"1f944",squid:"1f991",sri_lanka:"1f1f1-1f1f0",st_barthelemy:"1f1e7-1f1f1",st_helena:"1f1f8-1f1ed",st_kitts_nevis:"1f1f0-1f1f3",st_lucia:"1f1f1-1f1e8",st_martin:"1f1f2-1f1eb",st_pierre_miquelon:"1f1f5-1f1f2",st_vincent_grenadines:"1f1fb-1f1e8",stadium:"1f3df",standing_man:"1f9cd-2642",standing_person:"1f9cd",standing_woman:"1f9cd-2640",star:"2b50",star2:"1f31f",star_and_crescent:"262a",star_of_david:"2721",star_struck:"1f929",stars:"1f320",station:"1f689",statue_of_liberty:"1f5fd",steam_locomotive:"1f682",stethoscope:"1fa7a",stew:"1f372",stop_button:"23f9",stop_sign:"1f6d1",stopwatch:"23f1",straight_ruler:"1f4cf",strawberry:"1f353",stuck_out_tongue:"1f61b",stuck_out_tongue_closed_eyes:"1f61d",stuck_out_tongue_winking_eye:"1f61c",student:"1f9d1-1f393",studio_microphone:"1f399",stuffed_flatbread:"1f959",sudan:"1f1f8-1f1e9",sun_behind_large_cloud:"1f325",sun_behind_rain_cloud:"1f326",sun_behind_small_cloud:"1f324",sun_with_face:"1f31e",sunflower:"1f33b",sunglasses:"1f60e",sunny:"2600",sunrise:"1f305",sunrise_over_mountains:"1f304",superhero:"1f9b8",superhero_man:"1f9b8-2642",superhero_woman:"1f9b8-2640",supervillain:"1f9b9",supervillain_man:"1f9b9-2642",supervillain_woman:"1f9b9-2640",surfer:"1f3c4",surfing_man:"1f3c4-2642",surfing_woman:"1f3c4-2640",suriname:"1f1f8-1f1f7",sushi:"1f363",suspension_railway:"1f69f",svalbard_jan_mayen:"1f1f8-1f1ef",swan:"1f9a2",swaziland:"1f1f8-1f1ff",sweat:"1f613",sweat_drops:"1f4a6",sweat_smile:"1f605",sweden:"1f1f8-1f1ea",sweet_potato:"1f360",swim_brief:"1fa72",swimmer:"1f3ca",swimming_man:"1f3ca-2642",swimming_woman:"1f3ca-2640",switzerland:"1f1e8-1f1ed",symbols:"1f523",synagogue:"1f54d",syria:"1f1f8-1f1fe",syringe:"1f489","t-rex":"1f996",taco:"1f32e",tada:"1f389",taiwan:"1f1f9-1f1fc",tajikistan:"1f1f9-1f1ef",takeout_box:"1f961",tanabata_tree:"1f38b",tangerine:"1f34a",tanzania:"1f1f9-1f1ff",taurus:"2649",taxi:"1f695",tea:"1f375",teacher:"1f9d1-1f3eb",technologist:"1f9d1-1f4bb",teddy_bear:"1f9f8",telephone:"260e",telephone_receiver:"1f4de",telescope:"1f52d",tennis:"1f3be",tent:"26fa",test_tube:"1f9ea",thailand:"1f1f9-1f1ed",thermometer:"1f321",thinking:"1f914",thought_balloon:"1f4ad",thread:"1f9f5",three:"0033-20e3",thumbsdown:"1f44e",thumbsup:"1f44d",ticket:"1f3ab",tickets:"1f39f",tiger:"1f42f",tiger2:"1f405",timer_clock:"23f2",timor_leste:"1f1f9-1f1f1",tipping_hand_man:"1f481-2642",tipping_hand_person:"1f481",tipping_hand_woman:"1f481-2640",tired_face:"1f62b",tm:"2122",togo:"1f1f9-1f1ec",toilet:"1f6bd",tokelau:"1f1f9-1f1f0",tokyo_tower:"1f5fc",tomato:"1f345",tonga:"1f1f9-1f1f4",tongue:"1f445",toolbox:"1f9f0",tooth:"1f9b7",top:"1f51d",tophat:"1f3a9",tornado:"1f32a",tr:"1f1f9-1f1f7",trackball:"1f5b2",tractor:"1f69c",traffic_light:"1f6a5",train:"1f68b",train2:"1f686",tram:"1f68a",triangular_flag_on_post:"1f6a9",triangular_ruler:"1f4d0",trident:"1f531",trinidad_tobago:"1f1f9-1f1f9",tristan_da_cunha:"1f1f9-1f1e6",triumph:"1f624",trolleybus:"1f68e",trophy:"1f3c6",tropical_drink:"1f379",tropical_fish:"1f420",truck:"1f69a",trumpet:"1f3ba",tshirt:"1f455",tulip:"1f337",tumbler_glass:"1f943",tunisia:"1f1f9-1f1f3",turkey:"1f983",turkmenistan:"1f1f9-1f1f2",turks_caicos_islands:"1f1f9-1f1e8",turtle:"1f422",tuvalu:"1f1f9-1f1fb",tv:"1f4fa",twisted_rightwards_arrows:"1f500",two:"0032-20e3",two_hearts:"1f495",two_men_holding_hands:"1f46c",two_women_holding_hands:"1f46d",u5272:"1f239",u5408:"1f234",u55b6:"1f23a",u6307:"1f22f",u6708:"1f237",u6709:"1f236",u6e80:"1f235",u7121:"1f21a",u7533:"1f238",u7981:"1f232",u7a7a:"1f233",uganda:"1f1fa-1f1ec",uk:"1f1ec-1f1e7",ukraine:"1f1fa-1f1e6",umbrella:"2614",unamused:"1f612",underage:"1f51e",unicorn:"1f984",united_arab_emirates:"1f1e6-1f1ea",united_nations:"1f1fa-1f1f3",unlock:"1f513",up:"1f199",upside_down_face:"1f643",uruguay:"1f1fa-1f1fe",us:"1f1fa-1f1f8",us_outlying_islands:"1f1fa-1f1f2",us_virgin_islands:"1f1fb-1f1ee",uzbekistan:"1f1fa-1f1ff",v:"270c",vampire:"1f9db",vampire_man:"1f9db-2642",vampire_woman:"1f9db-2640",vanuatu:"1f1fb-1f1fa",vatican_city:"1f1fb-1f1e6",venezuela:"1f1fb-1f1ea",vertical_traffic_light:"1f6a6",vhs:"1f4fc",vibration_mode:"1f4f3",video_camera:"1f4f9",video_game:"1f3ae",vietnam:"1f1fb-1f1f3",violin:"1f3bb",virgo:"264d",volcano:"1f30b",volleyball:"1f3d0",vomiting_face:"1f92e",vs:"1f19a",vulcan_salute:"1f596",waffle:"1f9c7",wales:"1f3f4-e0067-e0062-e0077-e006c-e0073-e007f",walking:"1f6b6",walking_man:"1f6b6-2642",walking_woman:"1f6b6-2640",wallis_futuna:"1f1fc-1f1eb",waning_crescent_moon:"1f318",waning_gibbous_moon:"1f316",warning:"26a0",wastebasket:"1f5d1",watch:"231a",water_buffalo:"1f403",water_polo:"1f93d",watermelon:"1f349",wave:"1f44b",wavy_dash:"3030",waxing_crescent_moon:"1f312",waxing_gibbous_moon:"1f314",wc:"1f6be",weary:"1f629",wedding:"1f492",weight_lifting:"1f3cb",weight_lifting_man:"1f3cb-2642",weight_lifting_woman:"1f3cb-2640",western_sahara:"1f1ea-1f1ed",whale:"1f433",whale2:"1f40b",wheel_of_dharma:"2638",wheelchair:"267f",white_check_mark:"2705",white_circle:"26aa",white_flag:"1f3f3",white_flower:"1f4ae",white_haired_man:"1f468-1f9b3",white_haired_woman:"1f469-1f9b3",white_heart:"1f90d",white_large_square:"2b1c",white_medium_small_square:"25fd",white_medium_square:"25fb",white_small_square:"25ab",white_square_button:"1f533",wilted_flower:"1f940",wind_chime:"1f390",wind_face:"1f32c",wine_glass:"1f377",wink:"1f609",wolf:"1f43a",woman:"1f469",woman_artist:"1f469-1f3a8",woman_astronaut:"1f469-1f680",woman_cartwheeling:"1f938-2640",woman_cook:"1f469-1f373",woman_dancing:"1f483",woman_facepalming:"1f926-2640",woman_factory_worker:"1f469-1f3ed",woman_farmer:"1f469-1f33e",woman_firefighter:"1f469-1f692",woman_health_worker:"1f469-2695",woman_in_manual_wheelchair:"1f469-1f9bd",woman_in_motorized_wheelchair:"1f469-1f9bc",woman_judge:"1f469-2696",woman_juggling:"1f939-2640",woman_mechanic:"1f469-1f527",woman_office_worker:"1f469-1f4bc",woman_pilot:"1f469-2708",woman_playing_handball:"1f93e-2640",woman_playing_water_polo:"1f93d-2640",woman_scientist:"1f469-1f52c",woman_shrugging:"1f937-2640",woman_singer:"1f469-1f3a4",woman_student:"1f469-1f393",woman_teacher:"1f469-1f3eb",woman_technologist:"1f469-1f4bb",woman_with_headscarf:"1f9d5",woman_with_probing_cane:"1f469-1f9af",woman_with_turban:"1f473-2640",womans_clothes:"1f45a",womans_hat:"1f452",women_wrestling:"1f93c-2640",womens:"1f6ba",woozy_face:"1f974",world_map:"1f5fa",worried:"1f61f",wrench:"1f527",wrestling:"1f93c",writing_hand:"270d",x:"274c",yarn:"1f9f6",yawning_face:"1f971",yellow_circle:"1f7e1",yellow_heart:"1f49b",yellow_square:"1f7e8",yemen:"1f1fe-1f1ea",yen:"1f4b4",yin_yang:"262f",yo_yo:"1fa80",yum:"1f60b",zambia:"1f1ff-1f1f2",zany_face:"1f92a",zap:"26a1",zebra:"1f993",zero:"0030-20e3",zimbabwe:"1f1ff-1f1fc",zipper_mouth_face:"1f910",zombie:"1f9df",zombie_man:"1f9df-2642",zombie_woman:"1f9df-2640",zzz:"1f4a4"};function Ih(e,t){var n=lc(e);if(ul){var r=ul(e);t&&(r=hc(r).call(r,(function(t){return gl(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nh(e){for(var t=1;t>>0===i))throw new RangeError("Invalid code point: ".concat(i));i<=65535?t=e.push(i):(i-=65536,t=e.push(55296+(i>>10),i%1024+56320)),t>=16383&&(n+=String.fromCharCode.apply(null,e),e.length=0)}return n+String.fromCharCode.apply(null,e)}var Dh=function(e){xn(n,e);var t=Mh(n);function n(){var e,r=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config;if(bn(this,n),(e=t.call(this,{config:r})).options={useUnicode:!0,upperCase:!1,customHandled:!1,resourceURL:"https://github.githubassets.com/images/icons/emoji/unicode/${code}.png?v8",emojis:Nh({},Lh)},"object"!==li(r))return fi(e);var a=r.useUnicode,i=r.customResourceURL,o=r.customRenderer,s=r.upperCase;return e.options.useUnicode="boolean"==typeof a?a:e.options.useUnicode,e.options.upperCase="boolean"==typeof s?s:e.options.upperCase,!1===a&&"string"==typeof i&&(e.options.resourceURL=i),"function"==typeof o&&(e.options.customHandled=!0,e.options.customRenderer=o),e}return mn(n,[{key:"makeHtml",value:function(e,t){var n=this;return this.test(e)?e.replace(this.RULE.reg,(function(e,t){var r;if(n.options.customHandled&&"function"==typeof n.options.customRenderer)return n.options.customRenderer(t);var a=n.options.emojis[t];if("string"!=typeof a)return e;if(n.options.useUnicode){var i,o=Mc(i=a.split("-")).call(i,(function(e){return"0x".concat(e)}));return jh.apply(void 0,Gf(o))}n.options.upperCase&&(a=a.toUpperCase());var s=n.options.resourceURL.replace(/\$\{code\}/g,a);return ec(r='')).call(r,Vl(t),'')})):e}},{key:"rule",value:function(){var e={begin:":",content:"([a-zA-Z0-9+_]+?)",end:":"};return e.reg=ff(e,"g"),e}}]),n}(Rc);function Fh(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}gi(Dh,"HOOK_NAME","emoji");var Bh=function(e){xn(n,e);var t=Fh(n);function n(){return bn(this,n),t.apply(this,arguments)}return mn(n,[{key:"makeHtml",value:function(e){return this.test(e)?e.replace(this.RULE.reg,'$1$2$3'):e}},{key:"rule",value:function(){var e={begin:"(^| )\\/",end:"\\/( |$)",content:"([^\\n]+?)"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}]),n}(Rc);function Hh(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}gi(Bh,"HOOK_NAME","underline");var zh=function(e){xn(n,e);var t=Hh(n);function n(){return bn(this,n),t.apply(this,arguments)}return mn(n,[{key:"makeHtml",value:function(e){return this.test(e)?e.replace(this.RULE.reg,"$1$2$3"):e}},{key:"rule",value:function(){var e={begin:"(^| )==",end:"==( |$|\\n)",content:"([^\\n]+?)"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}]),n}(Rc);gi(zh,"HOOK_NAME","highLight");var Uh=Va;M.JSON||(M.JSON={stringify:JSON.stringify});var Wh=function(e,t,n){return d(M.JSON.stringify,null,arguments)},qh=Wh,Gh=Mt.includes,Kh=s((function(){return!Array(1).includes()}));Je({target:"Array",proto:!0,forced:Kh},{includes:function(e){return Gh(this,e,arguments.length>1?arguments[1]:void 0)}});var Zh=Ks("Array").includes,Yh=b("".indexOf);Je({target:"String",proto:!0,forced:!Vp("includes")},{includes:function(e){return!!~Yh(qn(L(this)),qn(Yp(e)),arguments.length>1?arguments[1]:void 0)}});var Xh=Ks("String").includes,Vh=Array.prototype,Jh=String.prototype,Qh=function(e){var t=e.includes;return e===Vh||F(Vh,e)&&t===Vh.includes?Zh:"string"==typeof e||e===Jh||F(Jh,e)&&t===Jh.includes?Xh:t},eg=o.TypeError,tg=/MSIE .\./.test(B),ng=o.Function,rg=function(e){return tg?function(t,n){var r=function(e,t){if(e2,a=v(t)?t:ng(t),i=r?Qe(arguments,2):void 0;return e(r?function(){d(a,this,i)}:a,n)}:e},ag={setTimeout:rg(o.setTimeout),setInterval:rg(o.setInterval)},ig=ag.setInterval;Je({global:!0,bind:!0,forced:o.setInterval!==ig},{setInterval:ig});var og=ag.setTimeout;Je({global:!0,bind:!0,forced:o.setTimeout!==og},{setTimeout:og});var sg=M.setTimeout;var cg=function(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n",keyword:"》",value:">"}],_g=[{icon:"FullWidth",label:"[]",keyword:"【】",value:"[]",goLeft:1},{icon:"FullWidth",label:"【】",keyword:"【",value:"【】",goLeft:1},{icon:"link",label:"Link",keyword:"【】",value:"[title](https://url)",selection:{from:19,to:14}},{icon:"FullWidth",label:"()",keyword:"(",value:"()",goLeft:1},{icon:"FullWidth",label:"()",keyword:"(",value:"()",goLeft:1},{icon:"FullWidth",label:"<>",keyword:"《》",value:"<>",goLeft:1},{icon:"FullWidth",label:"《》",keyword:"《》",value:"《》",goLeft:1},{icon:"FullWidth",label:'""',keyword:"“”",value:'""',goLeft:1},{icon:"FullWidth",label:"“”",keyword:"“”",value:"”“",goLeft:1}],kg=ec(yg).call(yg,_g);var wg=yn,Eg=function(){return"CodeMirror.Pass"};function Sg(e,t){var n=void 0!==Uh&&xf(e)||e["@@iterator"];if(!n){if(ol(e)||(n=function(e,t){var n;if(!e)return;if("string"==typeof e)return Ag(e,t);var r=Xf(n=Object.prototype.toString.call(e)).call(n,8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Gp(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ag(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function Ag(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n')).call(c,n)).call(s,r,"
    "):!1===(null===(a=this.suggester[n])||void 0===a?void 0:a.echo)?"".concat(t):this.suggester[n]?r?t+r:"".concat(t):t+r}},{key:"rule",value:function(){var e,t,n;if(!this.suggester||lc(this.suggester).length<=0)return{};var r=Mc(e=lc(this.suggester)).call(e,(function(e){return mg(e)})).join("|");return{reg:new RegExp(ec(t=ec(n="".concat(df()?"((?'),this.searchCache=!1,this.searchKeyCache=[],this.optionList=[],this.cursorMove=!0,this.suggesterConfig={}}return mn(e,[{key:"tryCreatePanel",value:function(){var e,t,n;!this.$suggesterPanel&&hp()&&document&&(null===(e=document)||void 0===e||null===(t=e.body)||void 0===t||t.appendChild(this.createDom(this.panelWrap)),this.$suggesterPanel=null===(n=document)||void 0===n?void 0:n.querySelector(".cherry-suggester-panel"))}},{key:"hasEditor",value:function(){return!!this.editor&&!!this.editor.editor.display&&!!this.editor.editor.display.wrapper}},{key:"setEditor",value:function(e){this.editor=e}},{key:"setSuggester",value:function(e){this.suggesterConfig=e}},{key:"bindEvent",value:function(){var e=this,t=!1;this.editor.editor.on("change",(function(n,r){t=!0,e.onCodeMirrorChange(n,r)})),this.editor.editor.on("keydown",(function(n,r){t=!0,e.enableRelate()&&e.onKeyDown(n,r)})),this.editor.editor.on("cursorActivity",(function(){t||e.stopRelate(),t=!1}));var n=this.editor.editor.getOption("extraKeys"),r=["Up","Down","Enter"];sc(r).call(r,(function(t){if("function"==typeof n[t]){var r=n[t];n[t]=function(t){if(e.cursorMove){var n=r.call(t,t);if(n)return n}}}else if(n[t]){if("string"==typeof n[t]){var a=n[t];n[t]=function(t){e.cursorMove&&e.editor.editor.execCommand(a)}}}else n[t]=function(){if(e.cursorMove)return Eg()}})),this.editor.editor.setOption("extraKeys",n),this.editor.editor.on("scroll",(function(t,n){e.searchCache&&e.relocatePanel(e.editor.editor)})),this.onClickPanelItem()}},{key:"onClickPanelItem",value:function(){var e=this;this.tryCreatePanel(),this.$suggesterPanel.addEventListener("click",(function(t){var n,r,a,i,o=(n=e.$suggesterPanel,r=t.target,i=-1,sc(a=n.childNodes).call(a,(function(e,t){return e===r?i=t:""})),i);o>-1&&e.pasteSelectResult(o),e.stopRelate()}),!1)}},{key:"showSuggesterPanel",value:function(e){var t=e.left,n=e.top,r=e.items;this.tryCreatePanel(),!this.$suggesterPanel&&hp()&&(document.body.appendChild(this.createDom(this.panelWrap)),this.$suggesterPanel=document.querySelector(".cherry-suggester-panel")),this.updatePanel(r),this.$suggesterPanel.style.left="".concat(t,"px"),this.$suggesterPanel.style.top="".concat(n,"px"),this.$suggesterPanel.style.display="block",this.$suggesterPanel.style.position="absolute",this.$suggesterPanel.style.zIndex="100"}},{key:"hideSuggesterPanel",value:function(){this.tryCreatePanel(),this.$suggesterPanel&&(this.$suggesterPanel.style.display="none")}},{key:"updatePanel",value:function(e){var t=this;this.tryCreatePanel();var n=Mc(e).call(e,(function(e,n){if("object"===li(e)&&null!==e){var r,a=e.label;if(null!=e&&e.icon)a=ec(r='')).call(r,a);return t.renderPanelItem(a,0===n)}return t.renderPanelItem(e,0===n)})).join(""),r=this.suggesterConfig[this.keyword];r&&"function"==typeof r.suggestListRender&&(n=r.suggestListRender.call(this,e)||n),this.$suggesterPanel.innerHTML="","string"==typeof n?this.$suggesterPanel.innerHTML=n:ol(n)&&n.length>0?sc(n).call(n,(function(e){t.$suggesterPanel.appendChild(e)})):"object"===li(n)&&1===n.nodeType&&this.$suggesterPanel.appendChild(n)}},{key:"renderPanelItem",value:function(e,t){return t?'
    '.concat(e,"
    "):'
    '.concat(e,"
    ")}},{key:"createDom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.template||(this.template=document.createElement("div")),this.template.innerHTML=Zc(e).call(e);var t=document.createDocumentFragment();return Mc(Array.prototype).call(this.template.childNodes,(function(e,n){t.appendChild(e)})),t}},{key:"relocatePanel",value:function(e){var t=document.querySelector(".CodeMirror-cursors .CodeMirror-cursor");if(t||(t=document.querySelector(".CodeMirror-selected")),!t)return!1;var n=e.getCursor(),r=e.lineInfo(n.line).handle.height,a=t.getBoundingClientRect(),i=a.top+r,o=a.left;this.showSuggesterPanel({left:o,top:i,items:this.optionList})}},{key:"getCursorPos",value:function(e){var t=document.querySelector(".CodeMirror-cursors .CodeMirror-cursor");if(!t)return null;var n=e.getCursor(),r=e.lineInfo(n.line).handle.height,a=t.getBoundingClientRect(),i=a.top+r;return{left:a.left,top:i}}},{key:"startRelate",value:function(e,t,n){this.cursorFrom=n,this.keyword=t,this.searchCache=!0,this.relocatePanel(e)}},{key:"stopRelate",value:function(){this.hideSuggesterPanel(),this.cursorFrom=null,this.cursorTo=null,this.keyword="",this.searchKeyCache=[],this.searchCache=!1,this.cursorMove=!0,this.optionList=[]}},{key:"pasteSelectResult",value:function(e,t){if(this.cursorTo&&this.cursorTo!==this.cursorFrom||(this.cursorTo=JSON.parse(qh(this.cursorFrom))),this.cursorTo){this.cursorTo.ch+=1;var n=this.cursorFrom,r=this.cursorTo;if(this.optionList[e]){var a="";if("object"===li(this.optionList[e])&&null!==this.optionList[e]&&"string"==typeof this.optionList[e].value)a=this.optionList[e].value;else if("object"===li(this.optionList[e])&&null!==this.optionList[e]&&"function"==typeof this.optionList[e].value)a=this.optionList[e].value();else if("string"==typeof this.optionList[e])a="".concat(this.optionList[e]," ");else{var i;a=ec(i=" ".concat(this.keyword)).call(i,this.optionList[e]," ")}if(a&&this.editor.editor.replaceRange(a,n,r),this.optionList[e].goLeft){var o=this.editor.editor.getCursor();this.editor.editor.setCursor(o.line,o.ch-this.optionList[e].goLeft)}if(this.optionList[e].selection){var s=this.editor.editor.getCursor().line,c=this.editor.editor.getCursor().ch;this.editor.editor.setSelection({line:s,ch:c-this.optionList[e].selection.from},{line:s,ch:c-this.optionList[e].selection.to})}}}}},{key:"findSelectedItemIndex",value:function(){return _c(Array.prototype).call(this.$suggesterPanel.childNodes,(function(e){return e.classList.contains("cherry-suggester-panel__item--selected")}))}},{key:"enableRelate",value:function(){return this.searchCache}},{key:"onCodeMirrorChange",value:function(e,t){var n=this,r=t.text,a=t.from,i=t.to,o=t.origin,s=1===r.length?r[0]:"";if(!this.enableRelate()&&this.suggesterConfig[s]&&this.startRelate(e,s,a),this.enableRelate()&&(s||"+delete"===o)){var c;if(this.cursorTo=i,s)this.searchKeyCache.push(s);else if("+delete"===o&&(this.searchKeyCache.pop(),0===this.searchKeyCache.length))return void this.stopRelate();"function"==typeof(null===(c=this.suggesterConfig[this.keyword])||void 0===c?void 0:c.suggestList)&&this.suggesterConfig[this.keyword].suggestList(this.searchKeyCache.join(""),(function(e){!1!==e?(n.optionList=e&&e.length?e:[],n.updatePanel(n.optionList)):n.stopRelate()}))}}},{key:"onKeyDown",value:function(e,t){var n,r=this;if(this.tryCreatePanel(),!this.$suggesterPanel)return!1;var a=t.keyCode;if(Qh(n=[38,40]).call(n,a)){if(0===this.optionList.length)return void sg((function(){r.stopRelate()}),0);this.cursorMove=!1;var i=this.$suggesterPanel.querySelector(".cherry-suggester-panel__item--selected"),o=null;38!==a||i.previousElementSibling?40!==a||i.nextElementSibling?38===a?o=i.previousElementSibling:40===a&&(o=i.nextElementSibling):o=this.$suggesterPanel.firstElementChild:o=this.$suggesterPanel.lastElementChild,i.classList.remove("cherry-suggester-panel__item--selected"),o.classList.add("cherry-suggester-panel__item--selected")}else 13===a?(t.stopPropagation(),this.cursorMove=!1,this.pasteSelectResult(this.findSelectedItemIndex(),t),e.focus(),sg((function(){r.stopRelate()}),0)):27!==a&&37!==a&&39!==a||(t.stopPropagation(),e.focus(),sg((function(){r.stopRelate()}),0))}}]),e}();function $g(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}var Rg=function(e){xn(n,e);var t=$g(n);function n(){return bn(this,n),t.apply(this,arguments)}return mn(n,[{key:"makeHtml",value:function(e){return this.test(e)?e.replace(this.RULE.reg,"$1$2$3$4"):e}},{key:"rule",value:function(){var e={begin:"(^| )\\{",end:"\\}( |$)",content:"([^\n]+?)\\|([^\n]+?)"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}]),n}(Rc);function Og(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}gi(Rg,"HOOK_NAME","ruby");var Pg=function(e){xn(n,e);var t=Og(n);function n(e){var r;return bn(this,n),(r=t.call(this,{needCache:!0})).initBrReg(e.globalConfig.classicBr),r}return mn(n,[{key:"makeHtml",value:function(e,t){var n=this;return e.replace(this.RULE.reg,(function(e,r,a,i){var o,s,c,l,u,f=n.getLineCount(e,r),d=n.$engine.md5(e),p=n.$getPanelInfo(a,i,t),h=p.title,g=p.body,m=p.appendStyle,b=p.className;return rl(e,n.pushCache(ec(o=ec(s=ec(c=ec(l=ec(u='
    ")).call(s,h)).call(o,g,"
    "),d,f))}))}},{key:"$getClassByType",value:function(e){return/(left|right|center)/i.test(e)?"cherry-text-align cherry-text-align__".concat(e):"cherry-panel cherry-panel__".concat(e)}},{key:"$getPanelInfo",value:function(e,t,n){var r,a=this,i={type:this.$getTargetType(e),title:n(this.$getTitle(e)).html,body:t,appendStyle:"",className:""};i.className=this.$getClassByType(i.type),/(left|right|center)/i.test(i.type)&&(i.appendStyle='style="text-align:'.concat(i.type,';"')),i.title=ec(r='
    ')).call(r,i.title,"
    ");var o=function(e){var t,r;if(""===Zc(e).call(e))return"";var i=n(e).html,o="p";return new RegExp("<(".concat(Kl,")[^>]*>"),"i").test(i)&&(o="div"),ec(t=ec(r="<".concat(o,">")).call(r,a.$cleanParagraph(i),"")},s="";return s=this.isContainsCache(i.body)?this.makeExcludingCached(i.body,o):o(i.body),i.body='
    '.concat(s,"
    "),i}},{key:"$getTitle",value:function(e){var t=Zc(e).call(e);return/\s/.test(t)?t.replace(/[^\s]+\s/,""):""}},{key:"$getTargetType",value:function(e){var t=/\s/.test(Zc(e).call(e))?Zc(e).call(e).replace(/\s.*$/,""):e;switch(Zc(t).call(t).toLowerCase()){case"primary":case"p":default:return"primary";case"info":case"i":return"info";case"warning":case"w":return"warning";case"danger":case"d":return"danger";case"success":case"s":return"success";case"right":case"r":return"right";case"center":case"c":return"center";case"left":case"l":return"left"}}},{key:"rule",value:function(){return(e={begin:/(?:^|\n)(\n*(?:[^\S\n]*)):::([^:][^\n]+?)\s*\n/,content:/([\w\W]*?)/,end:/\n[ \t]*:::[ \t]*(?=$|\n+)/}).reg=new RegExp(e.begin.source+e.content.source+e.end.source,"g"),e;var e}}]),n}(ru);function Lg(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}gi(Pg,"HOOK_NAME","panel");var Ig=function(e){xn(n,e);var t=Lg(n);function n(){return bn(this,n),t.call(this,{needCache:!0})}return mn(n,[{key:"makeHtml",value:function(e,t){var n=this;return e.replace(this.RULE.reg,(function(e,r,a,i,o){var s,c,l,u=n.getLineCount(e,r),f=n.$engine.md5(e),d=n.$getDetailInfo(a,i,o,t),p=d.type,h=d.html;return rl(e,n.pushCache(ec(s=ec(c=ec(l='
    ')).call(s,h,"
    "),f,u))}))}},{key:"$getDetailInfo",value:function(e,t,n,r){var a=this,i=/\n\s*(\+\+|\+\+-)\s*[^\n]+\n/.test(n)?"multiple":"single",o=n.split(/\n\s*(\+\+[-]{0,1}\s*[^\n]+)\n/),s="-"===e,c=t,l="";return"multiple"===i?sc(o).call(o,(function(e){if(/\+\+/.test(e))return s=/\+\+-/.test(e),c=e.replace(/\+\+[-]{0,1}\s*([^\n]+)$/,"$1"),!0;l+=a.$getDetailHtml(s,c,e,r)})):l=this.$getDetailHtml(s,c,n,r),{type:i,html:l}}},{key:"$getDetailHtml",value:function(e,t,n,r){var a=this,i="
    "),o=function(e){var t,n;if(""===Zc(e).call(e))return"";var i=r(e).html,o="p";return new RegExp("<(".concat(Kl,")[^>]*>"),"i").test(i)&&(o="div"),ec(t=ec(n="<".concat(o,">")).call(n,a.$cleanParagraph(i),"")};i+="".concat(r(t).html,"");var s="";return s=this.isContainsCache(n)?this.makeExcludingCached(n,o):o(n),i+='
    '.concat(s,"
    "),i+="
    "}},{key:"rule",value:function(){return(e={begin:/(?:^|\n)(\n*(?:[^\S\n]*))\+\+\+([-]{0,1})\s+([^\n]+)\n/,content:/([\w\W]+?)/,end:/\n[ \t]*\+\+\+[ \t]*(?=$|\n+)/}).reg=new RegExp(e.begin.source+e.content.source+e.end.source,"g"),e;var e}}]),n}(ru);gi(Ig,"HOOK_NAME","detail");var Ng=[yd,kd,uh,dh,Ph,wh,Sh,Jd,mp,pp,Ip,_h,Xd,vp,Op,Ig,Pg,Bd,Dh,Ep,Pd,Mp,Dd,rd,td,id,pd,fd,Rg,ld,Bh,zh,Cg],Mg={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),Zc(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)?jl(n=e.attrs.class).call(n,"ch-icon-check")>=0?r+="[x]":r+="[ ]":e.attrs.class&&/cherry-code-preview-lang-select/.test(e.attrs.class)?r+="":r+=this.$dealTag(e);return r},$dealTag:function(e){var t=this,n="";return e.children&&(n=t.$dealHtml(e.children)),/(style|meta|link|script)/.test(e.name)?"":"code"===e.name||"pre"===e.name?t.tagParser.codeParser(e,t.$dealCodeTag(e),"pre"===e.name):"function"==typeof t.tagParser["".concat(e.name,"Parser")]?t.tagParser["".concat(e.name,"Parser")](e,n):n},$dealCodeTag:function(e){if(e.children.length<0)return"";for(var t="",n=0;n])+>/g,empty:wg?wg(null):{},parseTags:function(e){var t,n=this,r=0,a={type:"tag",name:"",voidElement:!1,attrs:{},children:[]};return e.replace(this.attrRE,(function(i){r%2?t=i:0===r?((n.lookup[i]||"/"===e.charAt(e.length-2))&&(a.voidElement=!0),a.name=i):a.attrs[t]=i.replace(/['"]/g,""),r+=1})),a},parseHtml:function(e,t){var n=this,r=t||{};r.components||(r.components=this.empty);var a,i=[],o=-1,s=[],c={},l=!1;return e.replace(this.tagRE,(function(t,u){if(l){if(t!==""))return;l=!1}var f,d="/"!==t.charAt(1),p=u+t.length,h=e.charAt(p);d&&(o+=1,"tag"===(a=n.parseTags(t)).type&&r.components[a.name]&&(a.type="component",l=!0),a.voidElement||l||!h||"<"===h||a.children.push({type:"text",content:Xf(e).call(e,p,jl(e).call(e,"<",p))}),c[a.tagName]=a,0===o&&i.push(a),(f=s[o-1])&&f.children.push(a),s[o]=a),d&&!a.voidElement||(o-=1,!l&&"<"!==h&&h&&s[o]&&s[o].children.push({type:"text",content:Xf(e).call(e,p,jl(e).call(e,"<",p))}))})),i}},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=[],a=0;a0?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,a,i,o,s,c=t[1].match(/rgb\(([ 0-9]+),([ 0-9]+),([ 0-9]+)\)/);if(c[1]&&c[2]&&c[3])c[1]=nl(Zc(r=c[1]).call(r),10),c[2]=nl(Zc(a=c[2]).call(a),10),c[3]=nl(Zc(i=c[3]).call(i),10),n=ec(o=ec(s="#".concat(c[1].toString(16))).call(s,c[2].toString(16))).call(o,c[3].toString(16))}else{n=hd(t,2)[1]}return n}return""}}},mdFormatEngine:{convertColor:function(e,t){var n,r=Zc(e).call(e);return!r||/\n/.test(r)?r:t?ec(n="!!".concat(t," ")).call(n,r,"!!"):r},convertSize:function(e,t){var n,r=Zc(e).call(e);return!r||/\n/.test(r)?r:t?ec(n="!".concat(t," ")).call(n,r,"!"):r},convertBgColor:function(e,t){var n,r=Zc(e).call(e);return!r||/\n/.test(r)?r:t?ec(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 ec(n="![".concat(r,"](")).call(n,t,")")},convertGraph:function(e,t,n,r){var a,i,o,s=e&&e.length>0?e:"graph",c="";if(r)try{var l,u=r.attrs;sc(l=lc(u)).call(l,(function(e){var t;Object.prototype.hasOwnProperty.call(u,e)&&(jl(e).call(e,"data-graph-")>=0&&u[e]&&(c+=ec(t=" ".concat(e,"=")).call(t,u[e])))}))}catch(e){}return ec(a=ec(i=ec(o="![".concat(s,"](")).call(o,t,"){data-control=tapd-graph data-origin-xml=")).call(i,n)).call(a,c,"}")},convertVideo:function(e,t,n,r){var a,i,o=r&&r.length>0?r:"video";return ec(a=ec(i="!video[".concat(o,"](")).call(i,t,"){poster=")).call(a,n,"}")},convertA:function(e,t){var n;if(e===t)return"".concat(e," ");var r=Zc(e).call(e);return r?ec(n="[".concat(r,"](")).call(n,t,")"):r},convertSup:function(e){return"^".concat(Zc(e).call(e).replace(/\^/g,"\\^"),"^")},convertSub:function(e){return"^^".concat(Zc(e).call(e).replace(/\^\^/g,"\\^\\^"),"^^")},convertTd:function(e){return"~|".concat(Zc(e).call(e).replace(/\n{1,}/g,"
    ").replace(/ /g,"~s~")," ~|")},convertTh:function(e){return/^\s*$/.test(e)?"":"~|".concat(Zc(e).call(e).replace(/\n{1,}/g,"
    ")," ~|")},convertTr:function(e){return/^\s*$/.test(e)?"":"".concat(Zc(e).call(e).replace(/\n/g,""),"\n")},convertThead:function(e){var t,n="".concat(e.replace(/[ \t]+/g,"").replace(/~\|~\|/g,"~|").replace(/~\|/g,"|"),"\n"),r=n.match(/\|/g).length-1;return ec(t="".concat(n,"|")).call(t,Md(":-:|").call(":-:|",r),"\n")},convertTable:function(e){var t="\n".concat(e.replace(/[ \t]+/g,"").replace(/~\|~\|/g,"~|").replace(/~\|/g,"|"),"\n").replace(/\n{2,}/g,"\n").replace(/\n[ \t]+\n/g,"\n").replace(/~s~/g," ");if(!/\|:-:\|/.test(t)){var n,r,a=t.match(/^\n[^\n]+\n/)[0].match(/\|/g).length-1;t=ec(n=ec(r="\n|".concat(Md(" |").call(" |",a),"\n|")).call(r,Md(":-:|").call(":-:|",a))).call(n,t)}return t},convertLi:function(e){return"- ".concat(e.replace(/^\n/,"").replace(/\n+$/,"").replace(/\n+/g,"\n\t"),"\n")},convertUl:function(e){return"".concat(e,"\n")},convertOl:function(e){for(var t=e.split("\n"),n=1,r=0;r".concat(Zc(e).call(e),"\n\n")},convertAddress:function(e){return">".concat(Zc(e).call(e),"\n\n")}},paragraphStyleClear:function(e){for(var t=0;t1)for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:"absolute",n=e.getBoundingClientRect();return"fixed"===t?n:"sidebar"===t?{left:Bg.getTargetParentByButton(e).offsetLeft-130+n.width,top:e.offsetTop+n.height/2,width:n.width,height:n.height}:{left:e.offsetLeft,top:e.offsetTop,width:n.width,height:n.height}}var Bg=function(){function e(t){bn(this,e),gi(this,"_onClick",void 0),this.$cherry=t,this.bubbleMenu=!1,this.subMenu=null,this.name="",this.editor=t.editor,this.locale=t.locale,this.dom=null,this.updateMarkdown=!0,this.subMenuConfig=[],this.noIcon=!1,this.cacheOnce=!1,this.positionModel="absolute","function"==typeof this._onClick&&(tf.warn("`MenuBase._onClick` is deprecated. Override `fire` instead"),this.fire=this._onClick)}return mn(e,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"setName",value:function(e,t){this.name=e,this.iconName=t}},{key:"setCacheOnce",value:function(e){this.cacheOnce=e}},{key:"getAndCleanCacheOnce",value:function(){this.updateMarkdown=!0;var e=this.cacheOnce;return this.cacheOnce=!1,e}},{key:"hasCacheOnce",value:function(){return!1!==this.cacheOnce}},{key:"createBtn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=oh("span",e?"cherry-dropdown-item":"cherry-toolbar-button cherry-toolbar-".concat(this.iconName?this.iconName:this.name),{title:this.locale[this.name]||Vl(this.name)});if(this.iconName&&!this.noIcon){var n=oh("i","ch-icon ch-icon-".concat(this.iconName));t.appendChild(n)}return(e||this.noIcon)&&(t.innerHTML+=this.locale[this.name]||Vl(this.name)),e||this.dom||(this.dom=t),t}},{key:"createSubBtnByConfig",value:function(e){var t=e.name,n=e.iconName,r=e.onclick,a=oh("span","cherry-dropdown-item",{title:this.locale[t]||Vl(t)});if(n){var i=oh("i","ch-icon ch-icon-".concat(n));a.appendChild(i)}return a.innerHTML+=this.locale[t]||Vl(t),a.addEventListener("click",r,!1),a}},{key:"fire",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(null==e||e.stopPropagation(),"function"==typeof this.onClick){var r=this.editor.editor.getSelections();this.isSelections=r.length>1;var a=Mc(r).call(r,(function(r,a,i){return t.onClick(r,n,e)||i[a]}));!this.bubbleMenu&&this.updateMarkdown&&(this.editor.editor.replaceSelections(a,"around"),this.editor.editor.focus(),this.$afterClick())}}},{key:"$getSelectionRange",value:function(){var e=this.editor.editor.listSelections()[0],t=e.anchor,n=e.head;return t.line===n.line&&t.ch>n.ch||t.line>n.line?{begin:n,end:t}:{begin:t,end:n}}},{key:"registerAfterClickCb",value:function(e){this.afterClickCb=e}},{key:"$afterClick",value:function(){"function"!=typeof this.afterClickCb||this.isSelections||(this.afterClickCb(),this.afterClickCb=null)}},{key:"setLessSelection",value:function(e,t){var n,r,a,i,o=this.editor.editor,s=this.$getSelectionRange(),c=s.begin,l=s.end,u={line:(null===(n=e.match(/\n/g))||void 0===n?void 0:n.length)>0?c.line+e.match(/\n/g).length:c.line,ch:(null===(r=e.match(/\n/g))||void 0===r?void 0:r.length)>0?e.replace(/^[\s\S]*?\n([^\n]*)$/,"$1").length:c.ch+e.length},f=(null===(a=t.match(/\n/g))||void 0===a?void 0:a.length)>0?l.line-t.match(/\n/g).length:l.line,d={line:f,ch:(null===(i=t.match(/\n/g))||void 0===i?void 0:i.length)>0?o.getLine(f).length:l.ch-t.length};o.setSelection(u,d)}},{key:"getMoreSelection",value:function(e,t,n){var r=this.editor.editor,a=this.$getSelectionRange(),i=a.begin,o=a.end,s=/\n/.test(e)?0:i.ch-e.length;s=s<0?0:s;var c,l=/\n/.test(e)?i.line-e.match(/\n/g).length:i.line,u={line:l=l<0?0:l,ch:s},f=o.line,d=o.ch;/\n/.test(t)?(f=o.line+t.match(/\n/g).length,d=null===(c=r.getLine(f))||void 0===c?void 0:c.length):d=r.getLine(o.line).length1&&void 0!==arguments[1]?arguments[1]:"word",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.editor.editor;if(this.isSelections)return e;if(e&&!n)return e;if("line"===t){var a=this.$getSelectionRange(),i=a.begin,o=a.end;return r.setSelection({line:i.line,ch:0},{line:o.line,ch:r.getLine(o.line).length}),r.getSelection()}if("word"===t){var s=r.findWordAt(r.getCursor()),c=s.anchor,l=s.head;return r.setSelection(c,l),r.getSelection()}}},{key:"bindSubClick",value:function(e,t){return this.fire(null,e)}},{key:"onClick",value:function(e,t,n){return e}},{key:"shortcutKeys",get:function(){return[]}},{key:"getMenuPosition",value:function(){var t=e.getTargetParentByButton(this.dom),n=/cherry-sidebar/.test(t.className);return/cherry-bubble/.test(t.className)||/cherry-floatmenu/.test(t.className)?this.positionModel="fixed":this.positionModel=n?"sidebar":"absolute",Fg(this.dom,this.positionModel)}}],[{key:"getTargetParentByButton",value:function(e){var t=e.parentElement;return/toolbar-(left|right)/.test(t.className)&&(t=t.parentElement),t}}]),e}();function Hg(e){var t=function(){if("undefined"==typeof Reflect||!un)return!1;if(un.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(un(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hi(e);if(t){var a=hi(this).constructor;n=un(r,arguments,a)}else n=r.apply(this,arguments);return fi(this,n)}}function zg(e,t,n){var r,a={};return sc(r=lc(e)).call(r,(function(r){-1!==jl(t).call(t,r)&&("object"===li(n)?"string"==typeof n[r]?li(e[r])===n[r]&&(a[r]=e[r]):e[r]instanceof n[r]&&(a[r]=e[r]):"string"==typeof n&&li(e[r])===n&&(a[r]=e[r]))})),a}var Ug={HOOKS_TYPE_LIST:$c},Wg=[];hp()||sc(Wg).call(Wg,(function(e){}));var qg=function(){function e(){bn(this,e)}return mn(e,null,[{key:"usePlugin",value:function(t){var n;if(this===e)throw new Error("`usePlugin` is not allowed to called through CherryStatic class.");if(this.initialized)throw new Error("The function `usePlugin` should be called before Cherry is instantiated.");if(!0!==t.$cherry$mounted){for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:{};return bn(this,r),(e=t===$c.PAR?n.call(this,{needCache:!!o.needCache,defaultCache:o.defaultCache}):n.call(this)).config=a.config,fi(e)}return mn(r,[{key:"beforeMakeHtml",value:function(){for(var e,t,n=arguments.length,a=new Array(n),o=0;o0&&i[0]<4?1:+(i[0]+i[1])),!a&&$&&(!(i=$.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=$.match(/Chrome\/(\d+)/))&&(a=+i[1]);var G=a,V=!!Object.getOwnPropertySymbols&&!l((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&G&&G<41})),W=V&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,q=s.Object,Y=W?function(t){return"symbol"==typeof t}:function(t){var e=U("Symbol");return w(e)&&H(e.prototype,q(t))},J=s.String,Z=function(t){try{return J(t)}catch(t){return"Object"}},tt=s.TypeError,et=function(t){if(w(t))return t;throw tt(Z(t)+" is not a function")},nt=function(t,e){var n=t[e];return null==n?void 0:et(n)},rt=s.TypeError,it=Object.defineProperty,at="__core-js_shared__",ot=s[at]||function(t,e){try{it(s,t,{value:e,configurable:!0,writable:!0})}catch(n){s[t]=e}return e}(at,{}),st=n((function(t){(t.exports=function(t,e){return ot[t]||(ot[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.22.6",mode:"pure",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.6/LICENSE",source:"https://github.com/zloirock/core-js"})})),ct=s.Object,lt=function(t){return ct(O(t))},ut=v({}.hasOwnProperty),ht=Object.hasOwn||function(t,e){return ut(lt(t),e)},ft=0,At=Math.random(),dt=v(1..toString),gt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+dt(++ft+At,36)},pt=st("wks"),bt=s.Symbol,mt=bt&&bt.for,vt=W?bt:bt&&bt.withoutSetter||gt,wt=function(t){if(!ht(pt,t)||!V&&"string"!=typeof pt[t]){var e="Symbol."+t;V&&ht(bt,t)?pt[t]=bt[t]:pt[t]=W&&mt?mt(e):vt(e)}return pt[t]},yt=s.TypeError,xt=wt("toPrimitive"),kt=function(t,e){if(!N(t)||Y(t))return t;var n,r=nt(t,xt);if(r){if(void 0===e&&(e="default"),n=k(r,t,e),!N(n)||Y(n))return n;throw yt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&w(n=t.toString)&&!N(r=k(n,t)))return r;if(w(n=t.valueOf)&&!N(r=k(n,t)))return r;if("string"!==e&&w(n=t.toString)&&!N(r=k(n,t)))return r;throw rt("Can't convert object to primitive value")}(t,e)},Ct=function(t){var e=kt(t,"string");return Y(e)?e:e+""},Bt=s.document,Tt=N(Bt)&&N(Bt.createElement),Et=function(t){return Tt?Bt.createElement(t):{}},_t=!y&&!l((function(){return 7!=Object.defineProperty(Et("div"),"a",{get:function(){return 7}}).a})),St=Object.getOwnPropertyDescriptor,Lt={f:y?St:function(t,e){if(t=Q(t),e=Ct(e),_t)try{return St(t,e)}catch(t){}if(ht(t,e))return E(!k(T.f,t,e),t[e])}},It=/#|\.prototype\./,Mt=function(t,e){var n=Dt[Ft(t)];return n==Qt||n!=Ot&&(w(e)?l(e):!!e)},Ft=Mt.normalize=function(t){return String(t).replace(It,".").toLowerCase()},Dt=Mt.data={},Ot=Mt.NATIVE="N",Qt=Mt.POLYFILL="P",Nt=Mt,Pt=v(v.bind),Rt=function(t,e){return et(t),void 0===e?t:u?Pt(t,e):function(){return t.apply(e,arguments)}},Ut=y&&l((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ht=s.String,$t=s.TypeError,jt=function(t){if(N(t))return t;throw $t(Ht(t)+" is not an object")},Kt=s.TypeError,zt=Object.defineProperty,Xt=Object.getOwnPropertyDescriptor,Gt="enumerable",Vt="configurable",Wt="writable",qt={f:y?Ut?function(t,e,n){if(jt(t),e=Ct(e),jt(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Wt in n&&!n[Wt]){var r=Xt(t,e);r&&r[Wt]&&(t[e]=n.value,n={configurable:Vt in n?n[Vt]:r[Vt],enumerable:Gt in n?n[Gt]:r[Gt],writable:!1})}return zt(t,e,n)}:zt:function(t,e,n){if(jt(t),e=Ct(e),jt(n),_t)try{return zt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Kt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Yt=y?function(t,e,n){return qt.f(t,e,E(1,n))}:function(t,e,n){return t[e]=n,t},Jt=Lt.f,Zt=function(t){var e=function(n,r,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,i)}return d(t,this,arguments)};return e.prototype=t.prototype,e},te=function(t,e){var n,r,i,a,o,c,l,u,h=t.target,f=t.global,A=t.stat,d=t.proto,g=f?s:A?s[h]:(s[h]||{}).prototype,p=f?P:P[h]||Yt(P,h,{})[h],b=p.prototype;for(i in e)n=!Nt(f?i:h+(A?".":"#")+i,t.forced)&&g&&ht(g,i),o=p[i],n&&(c=t.dontCallGetSet?(u=Jt(g,i))&&u.value:g[i]),a=n&&c?c:e[i],n&&typeof o==typeof a||(l=t.bind&&n?Rt(a,s):t.wrap&&n?Zt(a):d&&w(a)?v(a):a,(t.sham||a&&a.sham||o&&o.sham)&&Yt(l,"sham",!0),Yt(p,i,l),d&&(ht(P,r=h+"Prototype")||Yt(P,r,{}),Yt(P[r],i,a),t.real&&b&&!b[i]&&Yt(b,i,a)))},ee=v([].slice),ne=s.Function,re=v([].concat),ie=v([].join),ae={},oe=u?ne.bind:function(t){var e=et(this),n=e.prototype,r=ee(arguments,1),i=function(){var n=re(r,ee(arguments));return this instanceof i?function(t,e,n){if(!ht(ae,e)){for(var r=[],i=0;i0?_e:Ee)(e)},Le=function(t){var e=+t;return e!=e||0===e?0:Se(e)},Ie=Math.max,Me=Math.min,Fe=function(t,e){var n=Le(t);return n<0?Ie(n+e,0):Me(n,e)},De=Math.min,Oe=function(t){return t>0?De(Le(t),9007199254740991):0},Qe=function(t){return Oe(t.length)},Ne=function(t){return function(e,n,r){var i,a=Q(e),o=Qe(a),s=Fe(r,o);if(t&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((t||s in a)&&a[s]===n)return t||s||0;return!t&&-1}},Pe={includes:Ne(!0),indexOf:Ne(!1)},Re={},Ue=Pe.indexOf,He=v([].push),$e=function(t,e){var n,r=Q(t),i=0,a=[];for(n in r)!ht(Re,n)&&ht(r,n)&&He(a,n);for(;e.length>i;)ht(r,n=e[i++])&&(~Ue(a,n)||He(a,n));return a},je=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ke=Object.keys||function(t){return $e(t,je)},ze=y&&!Ut?Object.defineProperties:function(t,e){jt(t);for(var n,r=Q(e),i=Ke(e),a=i.length,o=0;a>o;)qt.f(t,n=i[o++],r[n]);return t},Xe={f:ze},Ge=U("document","documentElement"),Ve=st("keys"),We=function(t){return Ve[t]||(Ve[t]=gt(t))},qe="prototype",Ye="script",Je=We("IE_PROTO"),Ze=function(){},tn=function(t){return"<"+Ye+">"+t+""},en=function(t){t.write(tn("")),t.close();var e=t.parentWindow.Object;return t=null,e},nn=function(){try{ke=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;nn="undefined"!=typeof document?document.domain&&ke?en(ke):(e=Et("iframe"),n="java"+Ye+":",e.style.display="none",Ge.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(tn("document.F=Object")),t.close(),t.F):en(ke);for(var r=je.length;r--;)delete nn[qe][je[r]];return nn()};Re[Je]=!0;var rn=Object.create||function(t,e){var n;return null!==t?(Ze[qe]=jt(t),n=new Ze,Ze[qe]=null,n[Je]=t):n=nn(),void 0===e?n:Xe.f(n,e)},an=U("Reflect","construct"),on=Object.prototype,sn=[].push,cn=l((function(){function t(){}return!(an((function(){}),[],t)instanceof t)})),ln=!l((function(){an((function(){}))})),un=cn||ln;te({target:"Reflect",stat:!0,forced:un,sham:un},{construct:function(t,e){Te(t),jt(e);var n=arguments.length<3?t:Te(arguments[2]);if(ln&&!cn)return an(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return d(sn,r,e),new(d(oe,t,r))}var i=n.prototype,a=rn(N(i)?i:on),o=d(t,a,e);return N(o)?o:a}});var hn=P.Reflect.construct,fn=hn,An=l((function(){Ke(1)}));te({target:"Object",stat:!0,forced:An},{keys:function(t){return Ke(lt(t))}});var dn,gn,pn,bn=P.Object.keys,mn=bn,vn=s.String,wn=function(t){if("Symbol"===fe(t))throw TypeError("Cannot convert a Symbol value to a string");return vn(t)},yn=je.concat("length","prototype"),xn={f:Object.getOwnPropertyNames||function(t){return $e(t,yn)}},kn=function(t,e,n){var r=Ct(e);r in t?qt.f(t,r,E(0,n)):t[r]=n},Cn=s.Array,Bn=Math.max,Tn=function(t,e,n){for(var r=Qe(t),i=Fe(e,r),a=Fe(void 0===n?r:n,r),o=Cn(Bn(a-i,0)),s=0;im;m++)if((s||m in g)&&(A=p(f=g[m],m,d),t))if(e)w[m]=A;else if(A)switch(t){case 3:return!0;case 5:return f;case 6:return m;case 2:er(w,f)}else switch(t){case 4:return!1;case 7:er(w,f)}return a?-1:r||i?i:w}},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=We("hidden"),or="Symbol",sr="prototype",cr=qn.set,lr=qn.getterFor(or),ur=Object[sr],hr=s.Symbol,fr=hr&&hr[sr],Ar=s.TypeError,dr=s.QObject,gr=Lt.f,pr=qt.f,br=Sn.f,mr=T.f,vr=v([].push),wr=st("symbols"),yr=st("op-symbols"),xr=st("wks"),kr=!dr||!dr[sr]||!dr[sr].findChild,Cr=y&&l((function(){return 7!=rn(pr({},"a",{get:function(){return pr(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=gr(ur,e);r&&delete ur[e],pr(t,e,n),r&&t!==ur&&pr(ur,e,r)}:pr,Br=function(t,e){var n=wr[t]=rn(fr);return cr(n,{type:or,tag:t,description:e}),y||(n.description=e),n},Tr=function(t,e,n){t===ur&&Tr(yr,e,n),jt(t);var r=Ct(e);return jt(n),ht(wr,r)?(n.enumerable?(ht(t,ar)&&t[ar][r]&&(t[ar][r]=!1),n=rn(n,{enumerable:E(0,!1)})):(ht(t,ar)||pr(t,ar,E(1,{})),t[ar][r]=!0),Cr(t,r,n)):pr(t,r,n)},Er=function(t,e){jt(t);var n=Q(e),r=Ke(n).concat(Ir(n));return ir(r,(function(e){y&&!k(_r,n,e)||Tr(t,e,n[e])})),t},_r=function(t){var e=Ct(t),n=k(mr,this,e);return!(this===ur&&ht(wr,e)&&!ht(yr,e))&&(!(n||!ht(this,e)||!ht(wr,e)||ht(this,ar)&&this[ar][e])||n)},Sr=function(t,e){var n=Q(t),r=Ct(e);if(n!==ur||!ht(wr,r)||ht(yr,r)){var i=gr(n,r);return!i||!ht(wr,r)||ht(n,ar)&&n[ar][r]||(i.enumerable=!0),i}},Lr=function(t){var e=br(Q(t)),n=[];return ir(e,(function(t){ht(wr,t)||ht(Re,t)||vr(n,t)})),n},Ir=function(t){var e=t===ur,n=br(e?yr:Q(t)),r=[];return ir(n,(function(t){!ht(wr,t)||e&&!ht(ur,t)||vr(r,wr[t])})),r};V||(hr=function(){if(H(fr,this))throw Ar("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?wn(arguments[0]):void 0,e=gt(t),n=function(t){this===ur&&k(n,yr,t),ht(this,ar)&&ht(this[ar],e)&&(this[ar][e]=!1),Cr(this,e,E(1,t))};return y&&kr&&Cr(ur,e,{configurable:!0,set:n}),Br(e,t)},fr=hr[sr],In(fr,"toString",(function(){return lr(this).tag})),In(hr,"withoutSetter",(function(t){return Br(gt(t),t)})),T.f=_r,qt.f=Tr,Xe.f=Er,Lt.f=Sr,xn.f=Sn.f=Lr,Ln.f=Ir,Mn.f=function(t){return Br(wt(t),t)},y&&pr(fr,"description",{configurable:!0,get:function(){return lr(this).description}})),te({global:!0,constructor:!0,wrap:!0,forced:!V,sham:!V},{Symbol:hr}),ir(Ke(xr),(function(t){Dn(t)})),te({target:or,stat:!0,forced:!V},{useSetter:function(){kr=!0},useSimple:function(){kr=!1}}),te({target:"Object",stat:!0,forced:!V,sham:!y},{create:function(t,e){return void 0===e?rn(t):Er(rn(t),e)},defineProperty:Tr,defineProperties:Er,getOwnPropertyDescriptor:Sr}),te({target:"Object",stat:!0,forced:!V},{getOwnPropertyNames:Lr}),On(),Rn(hr,or),Re[ar]=!0;var Mr=V&&!!Symbol.for&&!!Symbol.keyFor,Fr=st("string-to-symbol-registry"),Dr=st("symbol-to-string-registry");te({target:"Symbol",stat:!0,forced:!Mr},{for:function(t){var e=wn(t);if(ht(Fr,e))return Fr[e];var n=U("Symbol")(e);return Fr[e]=n,Dr[n]=e,n}});var Or=st("symbol-to-string-registry");te({target:"Symbol",stat:!0,forced:!Mr},{keyFor:function(t){if(!Y(t))throw TypeError(Z(t)+" is not a symbol");if(ht(Or,t))return Or[t]}});var Qr=U("JSON","stringify"),Nr=v(/./.exec),Pr=v("".charAt),Rr=v("".charCodeAt),Ur=v("".replace),Hr=v(1..toString),$r=/[\uD800-\uDFFF]/g,jr=/^[\uD800-\uDBFF]$/,Kr=/^[\uDC00-\uDFFF]$/,zr=!V||l((function(){var t=U("Symbol")();return"[null]"!=Qr([t])||"{}"!=Qr({a:t})||"{}"!=Qr(Object(t))})),Xr=l((function(){return'"\\udf06\\ud834"'!==Qr("\udf06\ud834")||'"\\udead"'!==Qr("\udead")})),Gr=function(t,e){var n=ee(arguments),r=e;if((N(e)||void 0!==t)&&!Y(t))return Yn(e)||(e=function(t,e){if(w(r)&&(e=k(r,this,t,e)),!Y(e))return e}),n[1]=e,d(Qr,null,n)},Vr=function(t,e,n){var r=Pr(n,e-1),i=Pr(n,e+1);return Nr(jr,t)&&!Nr(Kr,i)||Nr(Kr,t)&&!Nr(jr,r)?"\\u"+Hr(Rr(t,0),16):t};Qr&&te({target:"JSON",stat:!0,arity:3,forced:zr||Xr},{stringify:function(t,e,n){var r=ee(arguments),i=d(zr?Gr:Qr,null,r);return Xr&&"string"==typeof i?Ur(i,$r,Vr):i}});var Wr=!V||l((function(){Ln.f(1)}));te({target:"Object",stat:!0,forced:Wr},{getOwnPropertySymbols:function(t){var e=Ln.f;return e?e(lt(t)):[]}});var qr=P.Object.getOwnPropertySymbols,Yr=qr,Jr=wt("species"),Zr=function(t){return G>=51||!l((function(){var e=[];return(e.constructor={})[Jr]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},ti=rr.filter,ei=Zr("filter");te({target:"Array",proto:!0,forced:!ei},{filter:function(t){return ti(this,t,arguments.length>1?arguments[1]:void 0)}});var ni=function(t){return P[t+"Prototype"]},ri=ni("Array").filter,ii=Array.prototype,ai=function(t){var e=t.filter;return t===ii||H(ii,t)&&e===ii.filter?ri:e},oi=Lt.f,si=l((function(){oi(1)}));te({target:"Object",stat:!0,forced:!y||si,sham:!y},{getOwnPropertyDescriptor:function(t,e){return oi(Q(t),e)}});var ci,li,ui,hi=n((function(t){var e=P.Object,n=t.exports=function(t,n){return e.getOwnPropertyDescriptor(t,n)};e.getOwnPropertyDescriptor.sham&&(n.sham=!0)})),fi=hi,Ai=fi,di={},gi=Function.prototype,pi=y&&Object.getOwnPropertyDescriptor,bi=ht(gi,"name"),mi={EXISTS:bi,PROPER:bi&&"something"===function(){}.name,CONFIGURABLE:bi&&(!y||y&&pi(gi,"name").configurable)},vi=!l((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),wi=We("IE_PROTO"),yi=s.Object,xi=yi.prototype,ki=vi?yi.getPrototypeOf:function(t){var e=lt(t);if(ht(e,wi))return e[wi];var n=e.constructor;return w(n)&&e instanceof n?n.prototype:e instanceof yi?xi:null},Ci=wt("iterator"),Bi=!1;[].keys&&("next"in(ui=[].keys())?(li=ki(ki(ui)))!==Object.prototype&&(ci=li):Bi=!0);var Ti=null==ci||l((function(){var t={};return ci[Ci].call(t)!==t}));ci=Ti?{}:rn(ci),w(ci[Ci])||In(ci,Ci,(function(){return this}));var Ei={IteratorPrototype:ci,BUGGY_SAFARI_ITERATORS:Bi},_i=Ei.IteratorPrototype,Si=function(){return this},Li=function(t,e,n,r){var i=e+" Iterator";return t.prototype=rn(_i,{next:E(+!r,n)}),Rn(t,i,!1,!0),di[i]=Si,t},Ii=s.String,Mi=s.TypeError,Fi=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=v(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return jt(n),function(t){if("object"==typeof t||w(t))return t;throw Mi("Can't set "+Ii(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),Di=mi.PROPER,Oi=Ei.BUGGY_SAFARI_ITERATORS,Qi=wt("iterator"),Ni="keys",Pi="values",Ri="entries",Ui=function(){return this},Hi=function(t,e,n,r,i,a,o){Li(n,e,r);var s,c,l,u=function(t){if(t===i&&g)return g;if(!Oi&&t in A)return A[t];switch(t){case Ni:case Pi:case Ri:return function(){return new n(this,t)}}return function(){return new n(this)}},h=e+" Iterator",f=!1,A=t.prototype,d=A[Qi]||A["@@iterator"]||i&&A[i],g=!Oi&&d||u(i),p="Array"==e&&A.entries||d;if(p&&(s=ki(p.call(new t)))!==Object.prototype&&s.next&&(Rn(s,h,!0,!0),di[h]=Ui),Di&&i==Pi&&d&&d.name!==Pi&&(f=!0,g=function(){return k(d,this)}),i)if(c={values:u(Pi),keys:a?g:u(Ni),entries:u(Ri)},o)for(l in c)(Oi||f||!(l in A))&&In(A,l,c[l]);else te({target:e,proto:!0,forced:Oi||f},c);return o&&A[Qi]!==g&&In(A,Qi,g,{name:i}),di[e]=g,c};qt.f;var $i="Array Iterator",ji=qn.set,Ki=qn.getterFor($i);Hi(Array,"Array",(function(t,e){ji(this,{type:$i,target:Q(t),index:0,kind:e})}),(function(){var t=Ki(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),di.Arguments=di.Array;var zi=wt("toStringTag");for(var Xi 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 Gi=s[Xi],Vi=Gi&&Gi.prototype;Vi&&fe(Vi)!==zi&&Yt(Vi,zi,Xi),di[Xi]=di.Array}var Wi=function(t,e){var n=[][t];return!!n&&l((function(){n.call(null,e||function(){return 1},1)}))},qi=rr.forEach,Yi=Wi("forEach")?[].forEach:function(t){return qi(this,t,arguments.length>1?arguments[1]:void 0)};te({target:"Array",proto:!0,forced:[].forEach!=Yi},{forEach:Yi});var Ji=ni("Array").forEach,Zi=Array.prototype,ta={DOMTokenList:!0,NodeList:!0},ea=function(t){var e=t.forEach;return t===Zi||H(Zi,t)&&e===Zi.forEach||ht(ta,fe(t))?Ji:e},na=ea,ra=v([].concat),ia=U("Reflect","ownKeys")||function(t){var e=xn.f(jt(t)),n=Ln.f;return n?ra(e,n(t)):e};te({target:"Object",stat:!0,sham:!y},{getOwnPropertyDescriptors:function(t){for(var e,n,r=Q(t),i=Lt.f,a=ia(r),o={},s=0;a.length>s;)void 0!==(n=i(r,e=a[s++]))&&kn(o,e,n);return o}});var aa=P.Object.getOwnPropertyDescriptors,oa=Xe.f;te({target:"Object",stat:!0,forced:Object.defineProperties!==oa,sham:!y},{defineProperties:oa});var sa=n((function(t){var e=P.Object,n=t.exports=function(t,n){return e.defineProperties(t,n)};e.defineProperties.sham&&(n.sham=!0)})),ca=sa,la=qt.f;te({target:"Object",stat:!0,forced:Object.defineProperty!==la,sham:!y},{defineProperty:la});var ua=n((function(t){var e=P.Object,n=t.exports=function(t,n,r){return e.defineProperty(t,n,r)};e.defineProperty.sham&&(n.sham=!0)})),ha=ua;function fa(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Aa=ua;function da(t,e){for(var n=0;n=51||!l((function(){var t=[];return t[ka]=!1,t.concat()[0]!==t})),_a=Zr("concat"),Sa=function(t){if(!N(t))return!1;var e=t[ka];return void 0!==e?!!e:Yn(t)};te({target:"Array",proto:!0,arity:1,forced:!Ea||!_a},{concat:function(t){var e,n,r,i,a,o=lt(this),s=tr(o,0),c=0;for(e=-1,r=arguments.length;eCa)throw Ta(Ba);for(n=0;n=Ca)throw Ta(Ba);kn(s,c++,a)}return s.length=c,s}}),Dn("asyncIterator"),Dn("hasInstance"),Dn("isConcatSpreadable"),Dn("iterator"),Dn("match"),Dn("matchAll"),Dn("replace"),Dn("search"),Dn("species"),Dn("split"),Dn("toPrimitive"),On(),Dn("toStringTag"),Rn(U("Symbol"),"Symbol"),Dn("unscopables"),Rn(s.JSON,"JSON",!0);var La=P.Symbol,Ia=La;Dn("asyncDispose"),Dn("dispose"),Dn("matcher"),Dn("metadata"),Dn("observable"),Dn("patternMatch"),Dn("replaceAll");var Ma=Ia,Fa=v("".charAt),Da=v("".charCodeAt),Oa=v("".slice),Qa=function(t){return function(e,n){var r,i,a=wn(O(e)),o=Le(n),s=a.length;return o<0||o>=s?t?"":void 0:(r=Da(a,o))<55296||r>56319||o+1===s||(i=Da(a,o+1))<56320||i>57343?t?Fa(a,o):r:t?Oa(a,o,o+2):i-56320+(r-55296<<10)+65536}},Na={codeAt:Qa(!1),charAt:Qa(!0)},Pa=Na.charAt,Ra="String Iterator",Ua=qn.set,Ha=qn.getterFor(Ra);Hi(String,"String",(function(t){Ua(this,{type:Ra,string:wn(t),index:0})}),(function(){var t,e=Ha(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Pa(n,r),e.index+=t.length,{value:t,done:!1})}));var $a=Mn.f("iterator"),ja=$a;function Ka(t){return Ka="function"==typeof Ma&&"symbol"==typeof ja?function(t){return typeof t}:function(t){return t&&"function"==typeof Ma&&t.constructor===Ma&&t!==Ma.prototype?"symbol":typeof t},Ka(t)}function za(t,e){if(e&&("object"===Ka(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return pa(t)}var Xa=l((function(){ki(1)}));te({target:"Object",stat:!0,forced:Xa,sham:!vi},{getPrototypeOf:function(t){return ki(lt(t))}});var Ga=P.Object.getPrototypeOf,Va=Ga;function Wa(t){return Wa=wa?Va:function(t){return t.__proto__||Va(t)},Wa(t)}function qa(t,e,n){return e in t?Aa(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ya=ni("Array").concat,Ja=Array.prototype,Za=function(t){var e=t.concat;return t===Ja||H(Ja,t)&&e===Ja.concat?Ya:e};te({target:"Function",proto:!0,forced:Function.bind!==oe},{bind:oe});var to=ni("Function").bind,eo=Function.prototype,no=function(t){var e=t.bind;return t===eo||H(eo,t)&&e===eo.bind?to:e},ro=no,io=s.TypeError,ao=function(t,e){if(t2,i=w(e)?e:so(e),a=r?ee(arguments,2):void 0;return t(r?function(){d(i,this,a)}:i,n)}:t},lo={setTimeout:co(s.setTimeout),setInterval:co(s.setInterval)},uo=lo.setInterval;te({global:!0,bind:!0,forced:s.setInterval!==uo},{setInterval:uo});var ho=lo.setTimeout;te({global:!0,bind:!0,forced:s.setTimeout!==ho},{setTimeout:ho});var fo=P.setTimeout;var Ao=function(){this.__data__=[],this.size=0};var go=function(t,e){return t===e||t!=t&&e!=e};var po=function(t,e){for(var n=t.length;n--;)if(go(t[n][0],e))return n;return-1},bo=Array.prototype.splice;var mo=function(t){var e=this.__data__,n=po(e,t);return!(n<0)&&(n==e.length-1?e.pop():bo.call(e,n,1),--this.size,!0)};var vo=function(t){var e=this.__data__,n=po(e,t);return n<0?void 0:e[n][1]};var wo=function(t){return po(this.__data__,t)>-1};var yo=function(t,e){var n=this.__data__,r=po(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function xo(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=9007199254740991};var Zs=function(t){return null!=t&&Js(t.length)&&!$o(t)};var tc=function(t){return zs(t)&&Zs(t)};var ec=function(){return!1},nc=n((function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,i=r&&r.exports===n?Lo.Buffer:void 0,a=(i?i.isBuffer:void 0)||ec;t.exports=a})),rc=Function.prototype,ic=Object.prototype,ac=rc.toString,oc=ic.hasOwnProperty,sc=ac.call(Object);var cc=function(t){if(!zs(t)||"[object Object]"!=Uo(t))return!1;var e=Hs(t);if(null===e)return!0;var n=oc.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&ac.call(n)==sc},lc={};lc["[object Float32Array]"]=lc["[object Float64Array]"]=lc["[object Int8Array]"]=lc["[object Int16Array]"]=lc["[object Int32Array]"]=lc["[object Uint8Array]"]=lc["[object Uint8ClampedArray]"]=lc["[object Uint16Array]"]=lc["[object Uint32Array]"]=!0,lc["[object Arguments]"]=lc["[object Array]"]=lc["[object ArrayBuffer]"]=lc["[object Boolean]"]=lc["[object DataView]"]=lc["[object Date]"]=lc["[object Error]"]=lc["[object Function]"]=lc["[object Map]"]=lc["[object Number]"]=lc["[object Object]"]=lc["[object RegExp]"]=lc["[object Set]"]=lc["[object String]"]=lc["[object WeakMap]"]=!1;var uc=function(t){return zs(t)&&Js(t.length)&&!!lc[Uo(t)]};var hc=function(t){return function(e){return t(e)}},fc=n((function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,i=r&&r.exports===n&&_o.process,a=function(){try{var t=r&&r.require&&r.require("util").types;return t||i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=a})),Ac=fc&&fc.isTypedArray,dc=Ac?hc(Ac):uc;var gc=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]},pc=Object.prototype.hasOwnProperty;var bc=function(t,e,n){var r=t[e];pc.call(t,e)&&go(r,n)&&(void 0!==n||e in t)||_s(t,e,n)};var mc=function(t,e,n,r){var i=!n;n||(n={});for(var a=-1,o=e.length;++a-1&&t%1==0&&t0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}},Uc=Rc(Nc);var Hc=function(t,e){return Uc(Dc(t,e,Ic),t+"")};var $c=function(t,e,n){if(!Ho(n))return!1;var r=typeof e;return!!("number"==r?Zs(n)&&yc(e,n.length):"string"==r&&e in n)&&go(n[e],t)};var jc=function(t){return Hc((function(e,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,o&&$c(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),e=Object(e);++r1?arguments[1]:void 0;return Wc?Vc(this,t,e)||0:Gc(this,t,e)}});var Yc=ni("Array").indexOf,Jc=Array.prototype,Zc=function(t){var e=t.indexOf;return t===Jc||H(Jc,t)&&e===Jc.indexOf?Yc:e},tl=Zc,el=bn;function nl(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},a=el(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Xc){var a=Xc(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var rl=Object.assign,il=Object.defineProperty,al=v([].concat),ol=!rl||l((function(){if(y&&1!==rl({b:1},rl(il({},"a",{enumerable:!0,get:function(){il(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=rl({},t)[n]||Ke(rl({},e)).join("")!=r}))?function(t,e){for(var n=lt(t),r=arguments.length,i=1,a=Ln.f,o=T.f;r>i;)for(var s,c=F(arguments[i++]),l=a?al(Ke(c),a(c)):Ke(c),u=l.length,h=0;u>h;)s=l[h++],y&&!k(o,c,s)||(n[s]=c[s]);return n}:rl;te({target:"Object",stat:!0,arity:2,forced:Object.assign!==ol},{assign:ol});var sl=P.Object.assign,cl=sl;P.JSON||(P.JSON={stringify:JSON.stringify});var ll=function(t,e,n){return d(P.JSON.stringify,null,arguments)},ul=rr.find,hl="find",fl=!0;hl in[]&&Array(1)[hl]((function(){fl=!1})),te({target:"Array",proto:!0,forced:fl},{find:function(t){return ul(this,t,arguments.length>1?arguments[1]:void 0)}});var Al,dl=ni("Array").find,gl=Array.prototype,pl=function(t){var e=t.find;return t===gl||H(gl,t)&&e===gl.find?dl:e},bl="\t\n\v\f\r                 \u2028\u2029\ufeff",ml=v("".replace),vl="["+bl+"]",wl=RegExp("^"+vl+vl+"*"),yl=RegExp(vl+vl+"*$"),xl=function(t){return function(e){var n=wn(O(e));return 1&t&&(n=ml(n,wl,"")),2&t&&(n=ml(n,yl,"")),n}},kl={start:xl(1),end:xl(2),trim:xl(3)},Cl=mi.PROPER,Bl=kl.trim;te({target:"String",proto:!0,forced:(Al="trim",l((function(){return!!bl[Al]()||"​…᠎"!=="​…᠎"[Al]()||Cl&&bl[Al].name!==Al})))},{trim:function(){return Bl(this)}});var Tl=ni("String").trim,El=String.prototype,_l=function(t){var e=t.trim;return"string"==typeof t||t===El||H(El,t)&&e===El.trim?Tl:e},Sl=function(t,e,n){var r,i;jt(t);try{if(!(r=nt(t,"return"))){if("throw"===e)throw n;return n}r=k(r,t)}catch(t){i=!0,r=t}if("throw"===e)throw n;if(i)throw r;return jt(r),n},Ll=function(t,e,n,r){try{return r?e(jt(n)[0],n[1]):e(n)}catch(e){Sl(t,"throw",e)}},Il=wt("iterator"),Ml=Array.prototype,Fl=function(t){return void 0!==t&&(di.Array===t||Ml[Il]===t)},Dl=wt("iterator"),Ol=function(t){if(null!=t)return nt(t,Dl)||nt(t,"@@iterator")||di[fe(t)]},Ql=s.TypeError,Nl=function(t,e){var n=arguments.length<2?Ol(t):e;if(et(n))return jt(k(n,t));throw Ql(Z(t)+" is not iterable")},Pl=s.Array,Rl=function(t){var e=lt(t),n=Ce(this),r=arguments.length,i=r>1?arguments[1]:void 0,a=void 0!==i;a&&(i=Rt(i,r>2?arguments[2]:void 0));var o,s,c,l,u,h,f=Ol(e),A=0;if(!f||this==Pl&&Fl(f))for(o=Qe(e),s=n?new this(o):Pl(o);o>A;A++)h=a?i(e[A],A):e[A],kn(s,A,h);else for(u=(l=Nl(e,f)).next,s=n?new this:[];!(c=k(u,l)).done;A++)h=a?Ll(l,i,[c.value,A],!0):c.value,kn(s,A,h);return s.length=A,s},Ul=wt("iterator"),Hl=!1;try{var $l=0,jl={next:function(){return{done:!!$l++}},return:function(){Hl=!0}};jl[Ul]=function(){return this},Array.from(jl,(function(){throw 2}))}catch(t){}var Kl=function(t,e){if(!e&&!Hl)return!1;var n=!1;try{var r={};r[Ul]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},zl=!Kl((function(t){Array.from(t)}));te({target:"Array",stat:!0,forced:zl},{from:Rl});var Xl=P.Array.from,Gl=Xl,Vl=wt("match"),Wl=s.TypeError,ql=function(t){if(function(t){var e;return N(t)&&(void 0!==(e=t[Vl])?!!e:"RegExp"==L(t))}(t))throw Wl("The method doesn't accept regular expressions");return t},Yl=wt("match"),Jl=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[Yl]=!1,"/./"[t](e)}catch(t){}}return!1};Lt.f;var Zl=v("".startsWith),tu=v("".slice),eu=Math.min,nu=Jl("startsWith");te({target:"String",proto:!0,forced:!nu},{startsWith:function(t){var e=wn(O(this));ql(t);var n=Oe(eu(arguments.length>1?arguments[1]:void 0,e.length)),r=wn(t);return Zl?Zl(e,r,n):tu(e,n,n+r.length)===r}});var ru=ni("String").startsWith,iu=String.prototype,au=function(t){var e=t.startsWith;return"string"==typeof t||t===iu||H(iu,t)&&e===iu.startsWith?ru:e},ou=n((function(t,e){t.exports=function(){var t=navigator.userAgent,e=navigator.platform,n=/gecko\/\d/i.test(t),r=/MSIE \d/.test(t),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),a=/Edge\/(\d+)/.exec(t),o=r||i||a,s=o&&(r?document.documentMode||6:+(a||i)[1]),c=!a&&/WebKit\//.test(t),l=c&&/Qt\/\d+\.\d+/.test(t),u=!a&&/Chrome\//.test(t),h=/Opera\//.test(t),f=/Apple Computer/.test(navigator.vendor),A=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),d=/PhantomJS/.test(t),g=!a&&/AppleWebKit/.test(t)&&/Mobile\/\w+/.test(t),p=/Android/.test(t),b=g||p||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),m=g||/Mac/.test(e),v=/\bCrOS\b/.test(t),w=/win/i.test(e),y=h&&t.match(/Version\/(\d*\.\d*)/);y&&(y=Number(y[1])),y&&y>=15&&(h=!1,c=!0);var x=m&&(l||h&&(null==y||y<12.11)),k=n||o&&s>=9;function C(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var B,T=function(t,e){var n=t.className,r=C(e).exec(n);if(r){var i=n.slice(r.index+r[0].length);t.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function E(t){for(var e=t.childNodes.length;e>0;--e)t.removeChild(t.firstChild);return t}function _(t,e){return E(t).appendChild(e)}function S(t,e,n,r){var i=document.createElement(t);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof e)i.appendChild(document.createTextNode(e));else if(e)for(var a=0;a=e)return o+(e-a);o+=s-a,o+=n-o%n,a=s+1}}g?O=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:o&&(O=function(t){try{t.select()}catch(t){}});var R=function(){this.id=null,this.f=null,this.time=0,this.handler=Q(this.onTimeout,this)};function U(t,e){for(var n=0;n=e)return r+Math.min(o,e-i);if(i+=a-r,r=a+1,(i+=n-i%n)>=e)return r}}var G=[""];function V(t){for(;G.length<=t;)G.push(W(G)+" ");return G[t]}function W(t){return t[t.length-1]}function q(t,e){for(var n=[],r=0;r"€"&&(t.toUpperCase()!=t.toLowerCase()||tt.test(t))}function nt(t,e){return e?!!(e.source.indexOf("\\w")>-1&&et(t))||e.test(t):et(t)}function rt(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e])return!1;return!0}var it=/[\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 at(t){return t.charCodeAt(0)>=768&&it.test(t)}function ot(t,e,n){for(;(n<0?e>0:en?-1:1;;){if(e==n)return e;var i=(e+n)/2,a=r<0?Math.ceil(i):Math.floor(i);if(a==e)return t(a)?e:n;t(a)?n=a:e=a+r}}function ct(t,e,n,r){if(!t)return r(e,n,"ltr",0);for(var i=!1,a=0;ae||e==n&&o.to==e)&&(r(Math.max(o.from,e),Math.min(o.to,n),1==o.level?"rtl":"ltr",a),i=!0)}i||r(e,n,"ltr")}var lt=null;function ut(t,e,n){var r;lt=null;for(var i=0;ie)return i;a.to==e&&(a.from!=a.to&&"before"==n?r=i:lt=i),a.from==e&&(a.from!=a.to&&"before"!=n?r=i:lt=i)}return null!=r?r:lt}var ht=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",e="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?t.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?e.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]/,o=/[Lb1n]/,s=/[1n]/;function c(t,e,n){this.level=t,this.from=e,this.to=n}return function(t,e){var l="ltr"==e?"L":"R";if(0==t.length||"ltr"==e&&!r.test(t))return!1;for(var u=t.length,h=[],f=0;f-1&&(r[e]=i.slice(0,a).concat(i.slice(a+1)))}}}function bt(t,e){var n=gt(t,e);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function yt(t){t.prototype.on=function(t,e){dt(this,t,e)},t.prototype.off=function(t,e){pt(this,t,e)}}function xt(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function kt(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function Ct(t){return null!=t.defaultPrevented?t.defaultPrevented:0==t.returnValue}function Bt(t){xt(t),kt(t)}function Tt(t){return t.target||t.srcElement}function Et(t){var e=t.which;return null==e&&(1&t.button?e=1:2&t.button?e=3:4&t.button&&(e=2)),m&&t.ctrlKey&&1==e&&(e=3),e}var _t,St,Lt=function(){if(o&&s<9)return!1;var t=S("div");return"draggable"in t||"dragDrop"in t}();function It(t){if(null==_t){var e=S("span","​");_(t,S("span",[e,document.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(_t=e.offsetWidth<=1&&e.offsetHeight>2&&!(o&&s<8))}var n=_t?S("span","​"):S("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Mt(t){if(null!=St)return St;var e=_(t,document.createTextNode("AخA")),n=B(e,0,1).getBoundingClientRect(),r=B(e,1,2).getBoundingClientRect();return E(t),!(!n||n.left==n.right)&&(St=r.right-n.right<3)}var Ft,Dt=3!="\n\nb".split(/\n/).length?function(t){for(var e=0,n=[],r=t.length;e<=r;){var i=t.indexOf("\n",e);-1==i&&(i=t.length);var a=t.slice(e,"\r"==t.charAt(i-1)?i-1:i),o=a.indexOf("\r");-1!=o?(n.push(a.slice(0,o)),e+=o+1):(n.push(a),e=i+1)}return n}:function(t){return t.split(/\r\n?|\n/)},Ot=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(t){return!1}}:function(t){var e;try{e=t.ownerDocument.selection.createRange()}catch(t){}return!(!e||e.parentElement()!=t)&&0!=e.compareEndPoints("StartToEnd",e)},Qt="oncopy"in(Ft=S("div"))||(Ft.setAttribute("oncopy","return;"),"function"==typeof Ft.oncopy),Nt=null;function Pt(t){if(null!=Nt)return Nt;var e=_(t,S("span","x")),n=e.getBoundingClientRect(),r=B(e,0,1).getBoundingClientRect();return Nt=Math.abs(n.left-r.left)>1}var Rt={},Ut={};function Ht(t,e){arguments.length>2&&(e.dependencies=Array.prototype.slice.call(arguments,2)),Rt[t]=e}function $t(t,e){Ut[t]=e}function jt(t){if("string"==typeof t&&Ut.hasOwnProperty(t))t=Ut[t];else if(t&&"string"==typeof t.name&&Ut.hasOwnProperty(t.name)){var e=Ut[t.name];"string"==typeof e&&(e={name:e}),(t=Z(e,t)).name=e.name}else{if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return jt("application/xml");if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return jt("application/json")}return"string"==typeof t?{name:t}:t||{name:"null"}}function Kt(t,e){e=jt(e);var n=Rt[e.name];if(!n)return Kt(t,"text/plain");var r=n(t,e);if(zt.hasOwnProperty(e.name)){var i=zt[e.name];for(var a in i)i.hasOwnProperty(a)&&(r.hasOwnProperty(a)&&(r["_"+a]=r[a]),r[a]=i[a])}if(r.name=e.name,e.helperType&&(r.helperType=e.helperType),e.modeProps)for(var o in e.modeProps)r[o]=e.modeProps[o];return r}var zt={};function Xt(t,e){N(e,zt.hasOwnProperty(t)?zt[t]:zt[t]={})}function Gt(t,e){if(!0===e)return e;if(t.copyState)return t.copyState(e);var n={};for(var r in e){var i=e[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Vt(t,e){for(var n;t.innerMode&&(n=t.innerMode(e))&&n.mode!=t;)e=n.state,t=n.mode;return n||{mode:t,state:e}}function Wt(t,e,n){return!t.startState||t.startState(e,n)}var qt=function(t,e,n){this.pos=this.start=0,this.string=t,this.tabSize=e||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Yt(t,e){if((e-=t.first)<0||e>=t.size)throw new Error("There is no line "+(e+t.first)+" in the document.");for(var n=t;!n.lines;)for(var r=0;;++r){var i=n.children[r],a=i.chunkSize();if(e=t.first&&en?ae(n,Yt(t,n).text.length):Ae(e,Yt(t,e.line).text.length)}function Ae(t,e){var n=t.ch;return null==n||n>e?ae(t.line,e):n<0?ae(t.line,0):t}function de(t,e){for(var n=[],r=0;r=this.string.length},qt.prototype.sol=function(){return this.pos==this.lineStart},qt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},qt.prototype.next=function(){if(this.pose},qt.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},qt.prototype.skipToEnd=function(){this.pos=this.string.length},qt.prototype.skipTo=function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0},qt.prototype.backUp=function(t){this.pos-=t},qt.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==e&&(this.pos+=r[0].length),r)}var i=function(t){return n?t.toLowerCase():t};if(i(this.string.substr(this.pos,t.length))==i(t))return!1!==e&&(this.pos+=t.length),!0},qt.prototype.current=function(){return this.string.slice(this.start,this.pos)},qt.prototype.hideFirstChars=function(t,e){this.lineStart+=t;try{return e()}finally{this.lineStart-=t}},qt.prototype.lookAhead=function(t){var e=this.lineOracle;return e&&e.lookAhead(t)},qt.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};var ge=function(t,e){this.state=t,this.lookAhead=e},pe=function(t,e,n,r){this.state=e,this.doc=t,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function be(t,e,n,r){var i=[t.state.modeGen],a={};Te(t,e.text,t.doc.mode,n,(function(t,e){return i.push(t,e)}),a,r);for(var o=n.state,s=function(r){n.baseTokens=i;var s=t.state.overlays[r],c=1,l=0;n.state=!0,Te(t,e.text,s.mode,n,(function(t,e){for(var n=c;lt&&i.splice(c,1,t,i[c+1],r),c+=2,l=Math.min(t,r)}if(e)if(s.opaque)i.splice(n,c-n,t,"overlay "+e),c=n+2;else for(;nt.options.maxHighlightLength&&Gt(t.doc.mode,r.state),a=be(t,e,r);i&&(r.state=i),e.stateAfter=r.save(!i),e.styles=a.styles,a.classes?e.styleClasses=a.classes:e.styleClasses&&(e.styleClasses=null),n===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return e.styles}function ve(t,e,n){var r=t.doc,i=t.display;if(!r.mode.startState)return new pe(r,!0,e);var a=Ee(t,e,n),o=a>r.first&&Yt(r,a-1).stateAfter,s=o?pe.fromSaved(r,o,a):new pe(r,Wt(r.mode),a);return r.iter(a,e,(function(n){we(t,n.text,s);var r=s.line;n.stateAfter=r==e-1||r%5==0||r>=i.viewFrom&&re.start)return a}throw new Error("Mode "+t.name+" failed to advance stream.")}pe.prototype.lookAhead=function(t){var e=this.doc.getLine(this.line+t);return null!=e&&t>this.maxLookAhead&&(this.maxLookAhead=t),e},pe.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var e=this.baseTokens[this.baseTokenPos+1];return{type:e&&e.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},pe.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},pe.fromSaved=function(t,e,n){return e instanceof ge?new pe(t,Gt(t.mode,e.state),n,e.lookAhead):new pe(t,Gt(t.mode,e),n)},pe.prototype.save=function(t){var e=!1!==t?Gt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ge(e,this.maxLookAhead):e};var ke=function(t,e,n){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=e||null,this.state=n};function Ce(t,e,n,r){var i,a,o=t.doc,s=o.mode,c=Yt(o,(e=fe(o,e)).line),l=ve(t,e.line,n),u=new qt(c.text,t.options.tabSize,l);for(r&&(a=[]);(r||u.post.options.maxHighlightLength?(s=!1,o&&we(t,e,r,h.pos),h.pos=e.length,c=null):c=Be(xe(n,h,r.state,f),a),f){var A=f[0].name;A&&(c="m-"+(c?A+" "+c:A))}if(!s||u!=c){for(;lo;--s){if(s<=a.first)return a.first;var c=Yt(a,s-1),l=c.stateAfter;if(l&&(!n||s+(l instanceof ge?l.lookAhead:0)<=a.modeFrontier))return s;var u=P(c.text,null,t.options.tabSize);(null==i||r>u)&&(i=s-1,r=u)}return i}function _e(t,e){if(t.modeFrontier=Math.min(t.modeFrontier,e),!(t.highlightFrontiern;r--){var i=Yt(t,r).stateAfter;if(i&&(!(i instanceof ge)||r+i.lookAhead=e:a.to>e);(r||(r=[])).push(new Fe(o,a.from,s?null:a.to))}}return r}function Pe(t,e,n){var r;if(t)for(var i=0;i=e:a.to>e)||a.from==e&&"bookmark"==o.type&&(!n||a.marker.insertLeft)){var s=null==a.from||(o.inclusiveLeft?a.from<=e:a.from0&&s)for(var v=0;v0)){var u=[c,1],h=oe(l.from,s.from),f=oe(l.to,s.to);(h<0||!o.inclusiveLeft&&!h)&&u.push({from:l.from,to:s.from}),(f>0||!o.inclusiveRight&&!f)&&u.push({from:s.to,to:l.to}),i.splice.apply(i,u),c+=u.length-3}}return i}function $e(t){var e=t.markedSpans;if(e){for(var n=0;ne)&&(!n||Xe(n,a.marker)<0)&&(n=a.marker)}return n}function Ye(t,e,n,r,i){var a=Yt(t,e),o=Le&&a.markedSpans;if(o)for(var s=0;s=0&&h<=0||u<=0&&h>=0)&&(u<=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?oe(l.to,n)>=0:oe(l.to,n)>0)||u>=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?oe(l.from,r)<=0:oe(l.from,r)<0)))return!0}}}function Je(t){for(var e;e=Ve(t);)t=e.find(-1,!0).line;return t}function Ze(t){for(var e;e=We(t);)t=e.find(1,!0).line;return t}function tn(t){for(var e,n;e=We(t);)t=e.find(1,!0).line,(n||(n=[])).push(t);return n}function en(t,e){var n=Yt(t,e),r=Je(n);return n==r?e:ee(r)}function nn(t,e){if(e>t.lastLine())return e;var n,r=Yt(t,e);if(!rn(t,r))return e;for(;n=We(r);)r=n.find(1,!0).line;return ee(r)+1}function rn(t,e){var n=Le&&e.markedSpans;if(n)for(var r=void 0,i=0;ie.maxLineLength&&(e.maxLineLength=n,e.maxLine=t)}))}var ln=function(t,e,n){this.text=t,je(this,e),this.height=n?n(this):1};function un(t,e,n,r){t.text=e,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),null!=t.order&&(t.order=null),$e(t),je(t,n);var i=r?r(t):1;i!=t.height&&te(t,i)}function hn(t){t.parent=null,$e(t)}ln.prototype.lineNo=function(){return ee(this)},yt(ln);var fn={},An={};function dn(t,e){if(!t||/^\s*$/.test(t))return null;var n=e.addModeClass?An:fn;return n[t]||(n[t]=t.replace(/\S+/g,"cm-$&"))}function gn(t,e){var n=L("span",null,null,c?"padding-right: .1px":null),r={pre:L("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};e.measure={};for(var i=0;i<=(e.rest?e.rest.length:0);i++){var a=i?e.rest[i-1]:e.line,o=void 0;r.pos=0,r.addToken=bn,Mt(t.display.measure)&&(o=ft(a,t.doc.direction))&&(r.addToken=vn(r.addToken,o)),r.map=[],yn(a,r,me(t,a,e!=t.display.externalMeasured&&ee(a))),a.styleClasses&&(a.styleClasses.bgClass&&(r.bgClass=D(a.styleClasses.bgClass,r.bgClass||"")),a.styleClasses.textClass&&(r.textClass=D(a.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(It(t.display.measure))),0==i?(e.measure.map=r.map,e.measure.cache={}):((e.measure.maps||(e.measure.maps=[])).push(r.map),(e.measure.caches||(e.measure.caches=[])).push({}))}if(c){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return bt(t,"renderLine",t,e.line,r.pre),r.pre.className&&(r.textClass=D(r.pre.className,r.textClass||"")),r}function pn(t){var e=S("span","•","cm-invalidchar");return e.title="\\u"+t.charCodeAt(0).toString(16),e.setAttribute("aria-label",e.title),e}function bn(t,e,n,r,i,a,c){if(e){var l,u=t.splitSpaces?mn(e,t.trailingSpace):e,h=t.cm.state.specialChars,f=!1;if(h.test(e)){l=document.createDocumentFragment();for(var A=0;;){h.lastIndex=A;var d=h.exec(e),g=d?d.index-A:e.length-A;if(g){var p=document.createTextNode(u.slice(A,A+g));o&&s<9?l.appendChild(S("span",[p])):l.appendChild(p),t.map.push(t.pos,t.pos+g,p),t.col+=g,t.pos+=g}if(!d)break;A+=g+1;var b=void 0;if("\t"==d[0]){var m=t.cm.options.tabSize,v=m-t.col%m;(b=l.appendChild(S("span",V(v),"cm-tab"))).setAttribute("role","presentation"),b.setAttribute("cm-text","\t"),t.col+=v}else"\r"==d[0]||"\n"==d[0]?((b=l.appendChild(S("span","\r"==d[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",d[0]),t.col+=1):((b=t.cm.options.specialCharPlaceholder(d[0])).setAttribute("cm-text",d[0]),o&&s<9?l.appendChild(S("span",[b])):l.appendChild(b),t.col+=1);t.map.push(t.pos,t.pos+1,b),t.pos++}}else t.col+=e.length,l=document.createTextNode(u),t.map.push(t.pos,t.pos+e.length,l),o&&s<9&&(f=!0),t.pos+=e.length;if(t.trailingSpace=32==u.charCodeAt(e.length-1),n||r||i||f||a||c){var w=n||"";r&&(w+=r),i&&(w+=i);var y=S("span",[l],w,a);if(c)for(var x in c)c.hasOwnProperty(x)&&"style"!=x&&"class"!=x&&y.setAttribute(x,c[x]);return t.content.appendChild(y)}t.content.appendChild(l)}}function mn(t,e){if(t.length>1&&!/ /.test(t))return t;for(var n=e,r="",i=0;il&&h.from<=l);f++);if(h.to>=u)return t(n,r,i,a,o,s,c);t(n,r.slice(0,h.to-l),i,a,null,s,c),a=null,r=r.slice(h.to-l),l=h.to}}}function wn(t,e,n,r){var i=!r&&n.widgetNode;i&&t.map.push(t.pos,t.pos+e,i),!r&&t.cm.display.input.needsContentAttribute&&(i||(i=t.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(t.cm.display.input.setUneditable(i),t.content.appendChild(i)),t.pos+=e,t.trailingSpace=!1}function yn(t,e,n){var r=t.markedSpans,i=t.text,a=0;if(r)for(var o,s,c,l,u,h,f,A=i.length,d=0,g=1,p="",b=0;;){if(b==d){c=l=u=s="",f=null,h=null,b=1/0;for(var m=[],v=void 0,w=0;wd||x.collapsed&&y.to==d&&y.from==d)){if(null!=y.to&&y.to!=d&&b>y.to&&(b=y.to,l=""),x.className&&(c+=" "+x.className),x.css&&(s=(s?s+";":"")+x.css),x.startStyle&&y.from==d&&(u+=" "+x.startStyle),x.endStyle&&y.to==b&&(v||(v=[])).push(x.endStyle,y.to),x.title&&((f||(f={})).title=x.title),x.attributes)for(var k in x.attributes)(f||(f={}))[k]=x.attributes[k];x.collapsed&&(!h||Xe(h.marker,x)<0)&&(h=y)}else y.from>d&&b>y.from&&(b=y.from)}if(v)for(var C=0;C=A)break;for(var T=Math.min(A,b);;){if(p){var E=d+p.length;if(!h){var _=E>T?p.slice(0,T-d):p;e.addToken(e,_,o?o+c:c,u,d+_.length==b?l:"",s,f)}if(E>=T){p=p.slice(T-d),d=T;break}d=E,u=""}p=i.slice(a,a=n[g++]),o=dn(n[g++],e.cm.options)}}else for(var S=1;S2&&a.push((c.bottom+l.top)/2-n.top)}}a.push(n.bottom-n.top)}}function Jn(t,e,n){if(t.line==e)return{map:t.measure.map,cache:t.measure.cache};for(var r=0;rn)return{map:t.measure.maps[i],cache:t.measure.caches[i],before:!0}}function Zn(t,e){var n=ee(e=Je(e)),r=t.display.externalMeasured=new xn(t.doc,e,n);r.lineN=n;var i=r.built=gn(t,r);return r.text=i.pre,_(t.display.lineMeasure,i.pre),r}function tr(t,e,n,r){return rr(t,nr(t,e),n,r)}function er(t,e){if(e>=t.display.viewFrom&&e=n.lineN&&ee)&&(i=(a=c-s)-1,e>=c&&(o="right")),null!=i){if(r=t[l+2],s==c&&n==(r.insertLeft?"left":"right")&&(o=n),"left"==n&&0==i)for(;l&&t[l-2]==t[l-3]&&t[l-1].insertLeft;)r=t[2+(l-=3)],o="left";if("right"==n&&i==c-s)for(;l=0&&(n=t[i]).left==n.right;i--);return n}function cr(t,e,n,r){var i,a=or(e.map,n,r),c=a.node,l=a.start,u=a.end,h=a.collapse;if(3==c.nodeType){for(var f=0;f<4;f++){for(;l&&at(e.line.text.charAt(a.coverStart+l));)--l;for(;a.coverStart+u0&&(h=r="right"),i=t.options.lineWrapping&&(A=c.getClientRects()).length>1?A["right"==r?A.length-1:0]:c.getBoundingClientRect()}if(o&&s<9&&!l&&(!i||!i.left&&!i.right)){var d=c.parentNode.getClientRects()[0];i=d?{left:d.left,right:d.left+Lr(t.display),top:d.top,bottom:d.bottom}:ar}for(var g=i.top-e.rect.top,p=i.bottom-e.rect.top,b=(g+p)/2,m=e.view.measure.heights,v=0;v=r.text.length?(c=r.text.length,l="before"):c<=0&&(c=0,l="after"),!s)return o("before"==l?c-1:c,"before"==l);function u(t,e,n){return o(n?t-1:t,1==s[e].level!=n)}var h=ut(s,c,l),f=lt,A=u(c,h,"before"==l);return null!=f&&(A.other=u(c,f,"before"!=l)),A}function wr(t,e){var n=0;e=fe(t.doc,e),t.options.lineWrapping||(n=Lr(t.display)*e.ch);var r=Yt(t.doc,e.line),i=on(r)+zn(t.display);return{left:n,right:n,top:i,bottom:i+r.height}}function yr(t,e,n,r,i){var a=ae(t,e,n);return a.xRel=i,r&&(a.outside=r),a}function xr(t,e,n){var r=t.doc;if((n+=t.display.viewOffset)<0)return yr(r.first,0,null,-1,-1);var i=ne(r,n),a=r.first+r.size-1;if(i>a)return yr(r.first+r.size-1,Yt(r,a).text.length,null,1,1);e<0&&(e=0);for(var o=Yt(r,i);;){var s=Tr(t,o,i,e,n),c=qe(o,s.ch+(s.xRel>0||s.outside>0?1:0));if(!c)return s;var l=c.find(1);if(l.line==i)return l;o=Yt(r,i=l.line)}}function kr(t,e,n,r){r-=gr(e);var i=e.text.length,a=st((function(e){return rr(t,n,e-1).bottom<=r}),i,0);return{begin:a,end:i=st((function(e){return rr(t,n,e).top>r}),a,i)}}function Cr(t,e,n,r){return n||(n=nr(t,e)),kr(t,e,n,pr(t,e,rr(t,n,r),"line").top)}function Br(t,e,n,r){return!(t.bottom<=n)&&(t.top>n||(r?t.left:t.right)>e)}function Tr(t,e,n,r,i){i-=on(e);var a=nr(t,e),o=gr(e),s=0,c=e.text.length,l=!0,u=ft(e,t.doc.direction);if(u){var h=(t.options.lineWrapping?_r:Er)(t,e,n,a,u,r,i);s=(l=1!=h.level)?h.from:h.to-1,c=l?h.to:h.from-1}var f,A,d=null,g=null,p=st((function(e){var n=rr(t,a,e);return n.top+=o,n.bottom+=o,!!Br(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(d=e,g=n),!0)}),s,c),b=!1;if(g){var m=r-g.left=w.bottom?1:0}return yr(n,p=ot(e.text,p,1),A,b,r-f)}function Er(t,e,n,r,i,a,o){var s=st((function(s){var c=i[s],l=1!=c.level;return Br(vr(t,ae(n,l?c.to:c.from,l?"before":"after"),"line",e,r),a,o,!0)}),0,i.length-1),c=i[s];if(s>0){var l=1!=c.level,u=vr(t,ae(n,l?c.from:c.to,l?"after":"before"),"line",e,r);Br(u,a,o,!0)&&u.top>o&&(c=i[s-1])}return c}function _r(t,e,n,r,i,a,o){var s=kr(t,e,r,o),c=s.begin,l=s.end;/\s/.test(e.text.charAt(l-1))&&l--;for(var u=null,h=null,f=0;f=l||A.to<=c)){var d=rr(t,r,1!=A.level?Math.min(l,A.to)-1:Math.max(c,A.from)).right,g=dg)&&(u=A,h=g)}}return u||(u=i[i.length-1]),u.froml&&(u={from:u.from,to:l,level:u.level}),u}function Sr(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==ir){ir=S("pre",null,"CodeMirror-line-like");for(var e=0;e<49;++e)ir.appendChild(document.createTextNode("x")),ir.appendChild(S("br"));ir.appendChild(document.createTextNode("x"))}_(t.measure,ir);var n=ir.offsetHeight/50;return n>3&&(t.cachedTextHeight=n),E(t.measure),n||1}function Lr(t){if(null!=t.cachedCharWidth)return t.cachedCharWidth;var e=S("span","xxxxxxxxxx"),n=S("pre",[e],"CodeMirror-line-like");_(t.measure,n);var r=e.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(t.cachedCharWidth=i),i||10}function Ir(t){for(var e=t.display,n={},r={},i=e.gutters.clientLeft,a=e.gutters.firstChild,o=0;a;a=a.nextSibling,++o){var s=t.display.gutterSpecs[o].className;n[s]=a.offsetLeft+a.clientLeft+i,r[s]=a.clientWidth}return{fixedPos:Mr(e),gutterTotalWidth:e.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:e.wrapper.clientWidth}}function Mr(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function Fr(t){var e=Sr(t.display),n=t.options.lineWrapping,r=n&&Math.max(5,t.display.scroller.clientWidth/Lr(t.display)-3);return function(i){if(rn(t.doc,i))return 0;var a=0;if(i.widgets)for(var o=0;o0&&(c=Yt(t.doc,l.line).text).length==l.ch){var u=P(c,c.length,t.options.tabSize)-c.length;l=ae(l.line,Math.max(0,Math.round((a-Gn(t.display).left)/Lr(t.display))-u))}return l}function Qr(t,e){if(e>=t.display.viewTo)return null;if((e-=t.display.viewFrom)<0)return null;for(var n=t.display.view,r=0;re)&&(i.updateLineNumbers=e),t.curOp.viewChanged=!0,e>=i.viewTo)Le&&en(t.doc,e)i.viewFrom?Rr(t):(i.viewFrom+=r,i.viewTo+=r);else if(e<=i.viewFrom&&n>=i.viewTo)Rr(t);else if(e<=i.viewFrom){var a=Ur(t,n,n+r,1);a?(i.view=i.view.slice(a.index),i.viewFrom=a.lineN,i.viewTo+=r):Rr(t)}else if(n>=i.viewTo){var o=Ur(t,e,e,-1);o?(i.view=i.view.slice(0,o.index),i.viewTo=o.lineN):Rr(t)}else{var s=Ur(t,e,e,-1),c=Ur(t,n,n+r,1);s&&c?(i.view=i.view.slice(0,s.index).concat(kn(t,s.lineN,c.lineN)).concat(i.view.slice(c.index)),i.viewTo+=r):Rr(t)}var l=i.externalMeasured;l&&(n=i.lineN&&e=r.viewTo)){var a=r.view[Qr(t,e)];if(null!=a.node){var o=a.changes||(a.changes=[]);-1==U(o,n)&&o.push(n)}}}function Rr(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function Ur(t,e,n,r){var i,a=Qr(t,e),o=t.display.view;if(!Le||n==t.doc.first+t.doc.size)return{index:a,lineN:n};for(var s=t.display.viewFrom,c=0;c0){if(a==o.length-1)return null;i=s+o[a].size-e,a++}else i=s-e;e+=i,n+=i}for(;en(t.doc,n)!=n;){if(a==(r<0?0:o.length-1))return null;n+=r*o[a-(r<0?1:0)].size,a+=r}return{index:a,lineN:n}}function Hr(t,e,n){var r=t.display;0==r.view.length||e>=r.viewTo||n<=r.viewFrom?(r.view=kn(t,e,n),r.viewFrom=e):(r.viewFrom>e?r.view=kn(t,e,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,Qr(t,n)))),r.viewTo=n}function $r(t){for(var e=t.display.view,n=0,r=0;r=t.display.viewTo||s.to().line0?e.blinker=setInterval((function(){t.hasFocus()||Jr(t),e.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(e.cursorDiv.style.visibility="hidden")}}function Wr(t){t.state.focused||(t.display.input.focus(),Yr(t))}function qr(t){t.state.delayingBlurEvent=!0,setTimeout((function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,Jr(t))}),100)}function Yr(t,e){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1),"nocursor"!=t.options.readOnly&&(t.state.focused||(bt(t,"focus",t,e),t.state.focused=!0,F(t.display.wrapper,"CodeMirror-focused"),t.curOp||t.display.selForContextMenu==t.doc.sel||(t.display.input.reset(),c&&setTimeout((function(){return t.display.input.reset(!0)}),20)),t.display.input.receivedFocus()),Vr(t))}function Jr(t,e){t.state.delayingBlurEvent||(t.state.focused&&(bt(t,"blur",t,e),t.state.focused=!1,T(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout((function(){t.state.focused||(t.display.shift=!1)}),150))}function Zr(t){for(var e=t.display,n=e.lineDiv.offsetTop,r=0;r.005||f<-.005)&&(te(i.line,c),ti(i.line),i.rest))for(var A=0;At.display.sizerWidth){var d=Math.ceil(l/Lr(t.display));d>t.display.maxLineLength&&(t.display.maxLineLength=d,t.display.maxLine=i.line,t.display.maxLineChanged=!0)}}}}function ti(t){if(t.widgets)for(var e=0;e=o&&(a=ne(e,on(Yt(e,c))-t.wrapper.clientHeight),o=c)}return{from:a,to:Math.max(o,a+1)}}function ni(t,e){if(!mt(t,"scrollCursorIntoView")){var n=t.display,r=n.sizer.getBoundingClientRect(),i=null;if(e.top+r.top<0?i=!0:e.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!d){var a=S("div","​",null,"position: absolute;\n top: "+(e.top-n.viewOffset-zn(t.display))+"px;\n height: "+(e.bottom-e.top+Vn(t)+n.barHeight)+"px;\n left: "+e.left+"px; width: "+Math.max(2,e.right-e.left)+"px;");t.display.lineSpace.appendChild(a),a.scrollIntoView(i),t.display.lineSpace.removeChild(a)}}}function ri(t,e,n,r){var i;null==r&&(r=0),t.options.lineWrapping||e!=n||(n="before"==(e=e.ch?ae(e.line,"before"==e.sticky?e.ch-1:e.ch,"after"):e).sticky?ae(e.line,e.ch+1,"before"):e);for(var a=0;a<5;a++){var o=!1,s=vr(t,e),c=n&&n!=e?vr(t,n):s,l=ai(t,i={left:Math.min(s.left,c.left),top:Math.min(s.top,c.top)-r,right:Math.max(s.left,c.left),bottom:Math.max(s.bottom,c.bottom)+r}),u=t.doc.scrollTop,h=t.doc.scrollLeft;if(null!=l.scrollTop&&(fi(t,l.scrollTop),Math.abs(t.doc.scrollTop-u)>1&&(o=!0)),null!=l.scrollLeft&&(di(t,l.scrollLeft),Math.abs(t.doc.scrollLeft-h)>1&&(o=!0)),!o)break}return i}function ii(t,e){var n=ai(t,e);null!=n.scrollTop&&fi(t,n.scrollTop),null!=n.scrollLeft&&di(t,n.scrollLeft)}function ai(t,e){var n=t.display,r=Sr(t.display);e.top<0&&(e.top=0);var i=t.curOp&&null!=t.curOp.scrollTop?t.curOp.scrollTop:n.scroller.scrollTop,a=qn(t),o={};e.bottom-e.top>a&&(e.bottom=e.top+a);var s=t.doc.height+Xn(n),c=e.tops-r;if(e.topi+a){var u=Math.min(e.top,(l?s:e.bottom)-a);u!=i&&(o.scrollTop=u)}var h=t.options.fixedGutter?0:n.gutters.offsetWidth,f=t.curOp&&null!=t.curOp.scrollLeft?t.curOp.scrollLeft:n.scroller.scrollLeft-h,A=Wn(t)-n.gutters.offsetWidth,d=e.right-e.left>A;return d&&(e.right=e.left+A),e.left<10?o.scrollLeft=0:e.leftA+f-3&&(o.scrollLeft=e.right+(d?0:10)-A),o}function oi(t,e){null!=e&&(ui(t),t.curOp.scrollTop=(null==t.curOp.scrollTop?t.doc.scrollTop:t.curOp.scrollTop)+e)}function si(t){ui(t);var e=t.getCursor();t.curOp.scrollToPos={from:e,to:e,margin:t.options.cursorScrollMargin}}function ci(t,e,n){null==e&&null==n||ui(t),null!=e&&(t.curOp.scrollLeft=e),null!=n&&(t.curOp.scrollTop=n)}function li(t,e){ui(t),t.curOp.scrollToPos=e}function ui(t){var e=t.curOp.scrollToPos;e&&(t.curOp.scrollToPos=null,hi(t,wr(t,e.from),wr(t,e.to),e.margin))}function hi(t,e,n,r){var i=ai(t,{left:Math.min(e.left,n.left),top:Math.min(e.top,n.top)-r,right:Math.max(e.right,n.right),bottom:Math.max(e.bottom,n.bottom)+r});ci(t,i.scrollLeft,i.scrollTop)}function fi(t,e){Math.abs(t.doc.scrollTop-e)<2||(n||ji(t,{top:e}),Ai(t,e,!0),n&&ji(t),Oi(t,100))}function Ai(t,e,n){e=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,e)),(t.display.scroller.scrollTop!=e||n)&&(t.doc.scrollTop=e,t.display.scrollbars.setScrollTop(e),t.display.scroller.scrollTop!=e&&(t.display.scroller.scrollTop=e))}function di(t,e,n,r){e=Math.max(0,Math.min(e,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),(n?e==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-e)<2)&&!r||(t.doc.scrollLeft=e,Gi(t),t.display.scroller.scrollLeft!=e&&(t.display.scroller.scrollLeft=e),t.display.scrollbars.setScrollLeft(e))}function gi(t){var e=t.display,n=e.gutters.offsetWidth,r=Math.round(t.doc.height+Xn(t.display));return{clientHeight:e.scroller.clientHeight,viewHeight:e.wrapper.clientHeight,scrollWidth:e.scroller.scrollWidth,clientWidth:e.scroller.clientWidth,viewWidth:e.wrapper.clientWidth,barLeft:t.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Vn(t)+e.barHeight,nativeBarWidth:e.nativeBarWidth,gutterWidth:n}}var pi=function(t,e,n){this.cm=n;var r=this.vert=S("div",[S("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=S("div",[S("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,t(r),t(i),dt(r,"scroll",(function(){r.clientHeight&&e(r.scrollTop,"vertical")})),dt(i,"scroll",(function(){i.clientWidth&&e(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,o&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};pi.prototype.update=function(t){var e=t.scrollWidth>t.clientWidth+1,n=t.scrollHeight>t.clientHeight+1,r=t.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=e?r+"px":"0";var i=t.viewHeight-(e?r:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(e){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=t.barLeft+"px";var a=t.viewWidth-t.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+a)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:e?r:0}},pi.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},pi.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},pi.prototype.zeroWidthHack=function(){var t=m&&!A?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new R,this.disableVert=new R},pi.prototype.enableZeroWidthBar=function(t,e,n){function r(){var i=t.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=t?t.style.pointerEvents="none":e.set(1e3,r)}t.style.pointerEvents="auto",e.set(1e3,r)},pi.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var bi=function(){};function mi(t,e){e||(e=gi(t));var n=t.display.barWidth,r=t.display.barHeight;vi(t,e);for(var i=0;i<4&&n!=t.display.barWidth||r!=t.display.barHeight;i++)n!=t.display.barWidth&&t.options.lineWrapping&&Zr(t),vi(t,gi(t)),n=t.display.barWidth,r=t.display.barHeight}function vi(t,e){var n=t.display,r=n.scrollbars.update(e);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&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=e.gutterWidth+"px"):n.gutterFiller.style.display=""}bi.prototype.update=function(){return{bottom:0,right:0}},bi.prototype.setScrollLeft=function(){},bi.prototype.setScrollTop=function(){},bi.prototype.clear=function(){};var wi={native:pi,null:bi};function yi(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&T(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new wi[t.options.scrollbarStyle]((function(e){t.display.wrapper.insertBefore(e,t.display.scrollbarFiller),dt(e,"mousedown",(function(){t.state.focused&&setTimeout((function(){return t.display.input.focus()}),0)})),e.setAttribute("cm-not-content","true")}),(function(e,n){"horizontal"==n?di(t,e):fi(t,e)}),t),t.display.scrollbars.addClass&&F(t.display.wrapper,t.display.scrollbars.addClass)}var xi=0;function ki(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.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:++xi},Bn(t.curOp)}function Ci(t){var e=t.curOp;e&&En(e,(function(t){for(var e=0;e=n.viewTo)||n.maxLineChanged&&e.options.lineWrapping,t.update=t.mustUpdate&&new Ni(e,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Ei(t){t.updatedDisplay=t.mustUpdate&&Hi(t.cm,t.update)}function _i(t){var e=t.cm,n=e.display;t.updatedDisplay&&Zr(e),t.barMeasure=gi(e),n.maxLineChanged&&!e.options.lineWrapping&&(t.adjustWidthTo=tr(e,n.maxLine,n.maxLine.text.length).left+3,e.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+t.adjustWidthTo+Vn(e)+e.display.barWidth),t.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+t.adjustWidthTo-Wn(e))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=n.input.prepareSelection())}function Si(t){var e=t.cm;null!=t.adjustWidthTo&&(e.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft=t.display.viewTo)){var n=+new Date+t.options.workTime,r=ve(t,e.highlightFrontier),i=[];e.iter(r.line,Math.min(e.first+e.size,t.display.viewTo+500),(function(a){if(r.line>=t.display.viewFrom){var o=a.styles,s=a.text.length>t.options.maxHighlightLength?Gt(e.mode,r.state):null,c=be(t,a,r,!0);s&&(r.state=s),a.styles=c.styles;var l=a.styleClasses,u=c.classes;u?a.styleClasses=u:l&&(a.styleClasses=null);for(var h=!o||o.length!=a.styles.length||l!=u&&(!l||!u||l.bgClass!=u.bgClass||l.textClass!=u.textClass),f=0;!h&&fn)return Oi(t,t.options.workDelay),!0})),e.highlightFrontier=r.line,e.modeFrontier=Math.max(e.modeFrontier,r.line),i.length&&Ii(t,(function(){for(var e=0;e=n.viewFrom&&e.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==$r(t))return!1;Vi(t)&&(Rr(t),e.dims=Ir(t));var i=r.first+r.size,a=Math.max(e.visible.from-t.options.viewportMargin,r.first),o=Math.min(i,e.visible.to+t.options.viewportMargin);n.viewFromo&&n.viewTo-o<20&&(o=Math.min(i,n.viewTo)),Le&&(a=en(t.doc,a),o=nn(t.doc,o));var s=a!=n.viewFrom||o!=n.viewTo||n.lastWrapHeight!=e.wrapperHeight||n.lastWrapWidth!=e.wrapperWidth;Hr(t,a,o),n.viewOffset=on(Yt(t.doc,n.viewFrom)),t.display.mover.style.top=n.viewOffset+"px";var c=$r(t);if(!s&&0==c&&!e.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var l=Ri(t);return c>4&&(n.lineDiv.style.display="none"),Ki(t,n.updateLineNumbers,e.dims),c>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Ui(l),E(n.cursorDiv),E(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=e.wrapperHeight,n.lastWrapWidth=e.wrapperWidth,Oi(t,400)),n.updateLineNumbers=null,!0}function $i(t,e){for(var n=e.viewport,r=!0;;r=!1){if(r&&t.options.lineWrapping&&e.oldDisplayWidth!=Wn(t))r&&(e.visible=ei(t.display,t.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(t.doc.height+Xn(t.display)-qn(t),n.top)}),e.visible=ei(t.display,t.doc,n),e.visible.from>=t.display.viewFrom&&e.visible.to<=t.display.viewTo)break;if(!Hi(t,e))break;Zr(t);var i=gi(t);jr(t),mi(t,i),Xi(t,i),e.force=!1}e.signal(t,"update",t),t.display.viewFrom==t.display.reportedViewFrom&&t.display.viewTo==t.display.reportedViewTo||(e.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function ji(t,e){var n=new Ni(t,e);if(Hi(t,n)){Zr(t),$i(t,n);var r=gi(t);jr(t),mi(t,r),Xi(t,r),n.finish()}}function Ki(t,e,n){var r=t.display,i=t.options.lineNumbers,a=r.lineDiv,o=a.firstChild;function s(e){var n=e.nextSibling;return c&&m&&t.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),n}for(var l=r.view,u=r.viewFrom,h=0;h-1&&(A=!1),In(t,f,u,n)),A&&(E(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(ie(t.options,u)))),o=f.node.nextSibling}else{var d=Rn(t,f,u,n);a.insertBefore(d,o)}u+=f.size}for(;o;)o=s(o)}function zi(t){var e=t.gutters.offsetWidth;t.sizer.style.marginLeft=e+"px"}function Xi(t,e){t.display.sizer.style.minHeight=e.docHeight+"px",t.display.heightForcer.style.top=e.docHeight+"px",t.display.gutters.style.height=e.docHeight+t.display.barHeight+Vn(t)+"px"}function Gi(t){var e=t.display,n=e.view;if(e.alignWidgets||e.gutters.firstChild&&t.options.fixedGutter){for(var r=Mr(e)-e.scroller.scrollLeft+t.doc.scrollLeft,i=e.gutters.offsetWidth,a=r+"px",o=0;os.clientWidth,u=s.scrollHeight>s.clientHeight;if(i&&l||a&&u){if(a&&m&&c)t:for(var f=e.target,A=o.view;f!=s;f=f.parentNode)for(var d=0;d=0&&oe(t,r.to())<=0)return n}return-1};var aa=function(t,e){this.anchor=t,this.head=e};function oa(t,e,n){var r=t&&t.options.selectionsMayTouch,i=e[n];e.sort((function(t,e){return oe(t.from(),e.from())})),n=U(e,i);for(var a=1;a0:c>=0){var l=ue(s.from(),o.from()),u=le(s.to(),o.to()),h=s.empty()?o.from()==o.head:s.from()==s.head;a<=n&&--n,e.splice(--a,2,new aa(h?u:l,h?l:u))}}return new ia(e,n)}function sa(t,e){return new ia([new aa(t,e||t)],0)}function ca(t){return t.text?ae(t.from.line+t.text.length-1,W(t.text).length+(1==t.text.length?t.from.ch:0)):t.to}function la(t,e){if(oe(t,e.from)<0)return t;if(oe(t,e.to)<=0)return ca(e);var n=t.line+e.text.length-(e.to.line-e.from.line)-1,r=t.ch;return t.line==e.to.line&&(r+=ca(e).ch-e.to.ch),ae(n,r)}function ua(t,e){for(var n=[],r=0;r1&&t.remove(s.line+1,d-1),t.insert(s.line+1,b)}Sn(t,"change",t,e)}function ba(t,e,n){function r(t,i,a){if(t.linked)for(var o=0;o1&&!t.done[t.done.length-2].ranges?(t.done.pop(),W(t.done)):void 0}function Ba(t,e,n,r){var i=t.history;i.undone.length=0;var a,o,s=+new Date;if((i.lastOp==r||i.lastOrigin==e.origin&&e.origin&&("+"==e.origin.charAt(0)&&i.lastModTime>s-(t.cm?t.cm.options.historyEventDelay:500)||"*"==e.origin.charAt(0)))&&(a=Ca(i,i.lastOp==r)))o=W(a.changes),0==oe(e.from,e.to)&&0==oe(e.from,o.to)?o.to=ca(e):a.changes.push(xa(t,e));else{var c=W(i.done);for(c&&c.ranges||_a(t.sel,i.done),a={changes:[xa(t,e)],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=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=e.origin,o||bt(t,"historyAdded")}function Ta(t,e,n,r){var i=e.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function Ea(t,e,n,r){var i=t.history,a=r&&r.origin;n==i.lastSelOp||a&&i.lastSelOrigin==a&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==a||Ta(t,a,W(i.done),e))?i.done[i.done.length-1]=e:_a(e,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=a,i.lastSelOp=n,r&&!1!==r.clearRedo&&ka(i.undone)}function _a(t,e){var n=W(e);n&&n.ranges&&n.equals(t)||e.push(t)}function Sa(t,e,n,r){var i=e["spans_"+t.id],a=0;t.iter(Math.max(t.first,n),Math.min(t.first+t.size,r),(function(n){n.markedSpans&&((i||(i=e["spans_"+t.id]={}))[a]=n.markedSpans),++a}))}function La(t){if(!t)return null;for(var e,n=0;n-1&&(W(s)[h]=l[h],delete l[h])}}}return r}function Da(t,e,n,r){if(r){var i=t.anchor;if(n){var a=oe(e,i)<0;a!=oe(n,i)<0?(i=e,e=n):a!=oe(e,n)<0&&(e=n)}return new aa(i,e)}return new aa(n||e,e)}function Oa(t,e,n,r,i){null==i&&(i=t.cm&&(t.cm.display.shift||t.extend)),Ha(t,new ia([Da(t.sel.primary(),e,n,i)],0),r)}function Qa(t,e,n){for(var r=[],i=t.cm&&(t.cm.display.shift||t.extend),a=0;a=e.ch:s.to>e.ch))){if(i&&(bt(c,"beforeCursorEnter"),c.explicitlyCleared)){if(a.markedSpans){--o;continue}break}if(!c.atomic)continue;if(n){var h=c.find(r<0?1:-1),f=void 0;if((r<0?u:l)&&(h=Va(t,h,-r,h&&h.line==e.line?a:null)),h&&h.line==e.line&&(f=oe(h,n))&&(r<0?f<0:f>0))return Xa(t,h,e,r,i)}var A=c.find(r<0?-1:1);return(r<0?l:u)&&(A=Va(t,A,r,A.line==e.line?a:null)),A?Xa(t,A,e,r,i):null}}return e}function Ga(t,e,n,r,i){var a=r||1,o=Xa(t,e,n,a,i)||!i&&Xa(t,e,n,a,!0)||Xa(t,e,n,-a,i)||!i&&Xa(t,e,n,-a,!0);return o||(t.cantEdit=!0,ae(t.first,0))}function Va(t,e,n,r){return n<0&&0==e.ch?e.line>t.first?fe(t,ae(e.line-1)):null:n>0&&e.ch==(r||Yt(t,e.line)).text.length?e.line=0;--i)Ja(t,{from:r[i].from,to:r[i].to,text:i?[""]:e.text,origin:e.origin});else Ja(t,e)}}function Ja(t,e){if(1!=e.text.length||""!=e.text[0]||0!=oe(e.from,e.to)){var n=ua(t,e);Ba(t,e,n,t.cm?t.cm.curOp.id:NaN),eo(t,e,n,Re(t,e));var r=[];ba(t,(function(t,n){n||-1!=U(r,t.history)||(oo(t.history,e),r.push(t.history)),eo(t,e,null,Re(t,e))}))}}function Za(t,e,n){var r=t.cm&&t.cm.state.suppressEdits;if(!r||n){for(var i,a=t.history,o=t.sel,s="undo"==e?a.done:a.undone,c="undo"==e?a.undone:a.done,l=0;l=0;--A){var d=f(A);if(d)return d.v}}}}function to(t,e){if(0!=e&&(t.first+=e,t.sel=new ia(q(t.sel.ranges,(function(t){return new aa(ae(t.anchor.line+e,t.anchor.ch),ae(t.head.line+e,t.head.ch))})),t.sel.primIndex),t.cm)){Nr(t.cm,t.first,t.first-e,e);for(var n=t.cm.display,r=n.viewFrom;rt.lastLine())){if(e.from.linea&&(e={from:e.from,to:ae(a,Yt(t,a).text.length),text:[e.text[0]],origin:e.origin}),e.removed=Jt(t,e.from,e.to),n||(n=ua(t,e)),t.cm?no(t.cm,e,r):pa(t,e,r),$a(t,n,j),t.cantEdit&&Ga(t,ae(t.firstLine(),0))&&(t.cantEdit=!1)}}function no(t,e,n){var r=t.doc,i=t.display,a=e.from,o=e.to,s=!1,c=a.line;t.options.lineWrapping||(c=ee(Je(Yt(r,a.line))),r.iter(c,o.line+1,(function(t){if(t==i.maxLine)return s=!0,!0}))),r.sel.contains(e.from,e.to)>-1&&vt(t),pa(r,e,n,Fr(t)),t.options.lineWrapping||(r.iter(c,a.line+e.text.length,(function(t){var e=sn(t);e>i.maxLineLength&&(i.maxLine=t,i.maxLineLength=e,i.maxLineChanged=!0,s=!1)})),s&&(t.curOp.updateMaxLine=!0)),_e(r,a.line),Oi(t,400);var l=e.text.length-(o.line-a.line)-1;e.full?Nr(t):a.line!=o.line||1!=e.text.length||ga(t.doc,e)?Nr(t,a.line,o.line+1,l):Pr(t,a.line,"text");var u=wt(t,"changes"),h=wt(t,"change");if(h||u){var f={from:a,to:o,text:e.text,removed:e.removed,origin:e.origin};h&&Sn(t,"change",t,f),u&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(f)}t.display.selForContextMenu=null}function ro(t,e,n,r,i){var a;r||(r=n),oe(r,n)<0&&(n=(a=[r,n])[0],r=a[1]),"string"==typeof e&&(e=t.splitLines(e)),Ya(t,{from:n,to:r,text:e,origin:i})}function io(t,e,n,r){n1||!(this.children[0]instanceof co))){var s=[];this.collapse(s),this.children=[new co(s)],this.children[0].parent=this}},collapse:function(t){for(var e=0;e50){for(var o=i.lines.length%25+25,s=o;s10);t.parent.maybeSpill()}},iterN:function(t,e,n){for(var r=0;r0||0==o&&!1!==a.clearWhenEmpty)return a;if(a.replacedWith&&(a.collapsed=!0,a.widgetNode=L("span",[a.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||a.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(a.widgetNode.insertLeft=!0)),a.collapsed){if(Ye(t,e.line,e,n,a)||e.line!=n.line&&Ye(t,n.line,e,n,a))throw new Error("Inserting collapsed marker partially overlapping an existing one");Me()}a.addToHistory&&Ba(t,{from:e,to:n,origin:"markText"},t.sel,NaN);var s,c=e.line,l=t.cm;if(t.iter(c,n.line+1,(function(t){l&&a.collapsed&&!l.options.lineWrapping&&Je(t)==l.display.maxLine&&(s=!0),a.collapsed&&c!=e.line&&te(t,0),Qe(t,new Fe(a,c==e.line?e.ch:null,c==n.line?n.ch:null)),++c})),a.collapsed&&t.iter(e.line,n.line+1,(function(e){rn(t,e)&&te(e,0)})),a.clearOnEnter&&dt(a,"beforeCursorEnter",(function(){return a.clear()})),a.readOnly&&(Ie(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),a.collapsed&&(a.id=++Ao,a.atomic=!0),l){if(s&&(l.curOp.updateMaxLine=!0),a.collapsed)Nr(l,e.line,n.line+1);else if(a.className||a.startStyle||a.endStyle||a.css||a.attributes||a.title)for(var u=e.line;u<=n.line;u++)Pr(l,u,"text");a.atomic&&Ka(l.doc),Sn(l,"markerAdded",l,a)}return a}go.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,e=t&&!t.curOp;if(e&&ki(t),wt(this,"clear")){var n=this.find();n&&Sn(this,"clear",n.from,n.to)}for(var r=null,i=null,a=0;at.display.maxLineLength&&(t.display.maxLine=l,t.display.maxLineLength=u,t.display.maxLineChanged=!0)}null!=r&&t&&this.collapsed&&Nr(t,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Ka(t.doc)),t&&Sn(t,"markerCleared",t,this,r,i),e&&Ci(t),this.parent&&this.parent.clear()}},go.prototype.find=function(t,e){var n,r;null==t&&"bookmark"==this.type&&(t=1);for(var i=0;i=0;c--)Ya(this,r[c]);s?Ua(this,s):this.cm&&si(this.cm)})),undo:Di((function(){Za(this,"undo")})),redo:Di((function(){Za(this,"redo")})),undoSelection:Di((function(){Za(this,"undo",!0)})),redoSelection:Di((function(){Za(this,"redo",!0)})),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,e=0,n=0,r=0;r=t.ch)&&e.push(i.marker.parent||i.marker)}return e},findMarks:function(t,e,n){t=fe(this,t),e=fe(this,e);var r=[],i=t.line;return this.iter(t.line,e.line+1,(function(a){var o=a.markedSpans;if(o)for(var s=0;s=c.to||null==c.from&&i!=t.line||null!=c.from&&i==e.line&&c.from>=e.ch||n&&!n(c.marker)||r.push(c.marker.parent||c.marker)}++i})),r},getAllMarks:function(){var t=[];return this.iter((function(e){var n=e.markedSpans;if(n)for(var r=0;rt)return e=t,!0;t-=a,++n})),fe(this,ae(n,e))},indexFromPos:function(t){var e=(t=fe(this,t)).ch;if(t.linee&&(e=t.from),null!=t.to&&t.to-1)return e.state.draggingText(t),void setTimeout((function(){return e.display.input.focus()}),20);try{var h=t.dataTransfer.getData("Text");if(h){var f;if(e.state.draggingText&&!e.state.draggingText.copy&&(f=e.listSelections()),$a(e.doc,sa(n,n)),f)for(var A=0;A=0;e--)ro(t.doc,"",r[e].from,r[e].to,"+delete");si(t)}))}function Go(t,e,n){var r=ot(t.text,e+n,n);return r<0||r>t.text.length?null:r}function Vo(t,e,n){var r=Go(t,e.ch,n);return null==r?null:new ae(e.line,r,n<0?"after":"before")}function Wo(t,e,n,r,i){if(t){"rtl"==e.doc.direction&&(i=-i);var a=ft(n,e.doc.direction);if(a){var o,s=i<0?W(a):a[0],c=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==e.doc.direction){var l=nr(e,n);o=i<0?n.text.length-1:0;var u=rr(e,l,o).top;o=st((function(t){return rr(e,l,t).top==u}),i<0==(1==s.level)?s.from:s.to-1,o),"before"==c&&(o=Go(n,o,1))}else o=i<0?s.to:s.from;return new ae(r,o,c)}}return new ae(r,i<0?n.text.length:0,i<0?"before":"after")}function qo(t,e,n,r){var i=ft(e,t.doc.direction);if(!i)return Vo(e,n,r);n.ch>=e.text.length?(n.ch=e.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var a=ut(i,n.ch,n.sticky),o=i[a];if("ltr"==t.doc.direction&&o.level%2==0&&(r>0?o.to>n.ch:o.from=o.from&&f>=u.begin)){var A=h?"before":"after";return new ae(n.line,f,A)}}var d=function(t,e,r){for(var a=function(t,e){return e?new ae(n.line,c(t,1),"before"):new ae(n.line,t,"after")};t>=0&&t0==(1!=o.level),l=s?r.begin:c(r.end,-1);if(o.from<=l&&l0?u.end:c(u.begin,-1);return null==p||r>0&&p==e.text.length||!(g=d(r>0?0:i.length-1,r,l(p)))?null:g}Po.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"},Po.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"},Po.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"},Po.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"]},Po.default=m?Po.macDefault:Po.pcDefault;var Yo={selectAll:Wa,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),j)},killLine:function(t){return Xo(t,(function(e){if(e.empty()){var n=Yt(t.doc,e.head.line).text.length;return e.head.ch==n&&e.head.line0)i=new ae(i.line,i.ch+1),t.replaceRange(a.charAt(i.ch-1)+a.charAt(i.ch-2),ae(i.line,i.ch-2),i,"+transpose");else if(i.line>t.doc.first){var o=Yt(t.doc,i.line-1).text;o&&(i=new ae(i.line,1),t.replaceRange(a.charAt(0)+t.doc.lineSeparator()+o.charAt(o.length-1),ae(i.line-1,o.length-1),i,"+transpose"))}n.push(new aa(i,i))}t.setSelections(n)}))},newlineAndIndent:function(t){return Ii(t,(function(){for(var e=t.listSelections(),n=e.length-1;n>=0;n--)t.replaceRange(t.doc.lineSeparator(),e[n].anchor,e[n].head,"+input");e=t.listSelections();for(var r=0;r-1&&(oe((i=s.ranges[i]).from(),e)<0||e.xRel>0)&&(oe(i.to(),e)>0||e.xRel<0)?xs(t,r,e,a):Cs(t,r,e,a)}function xs(t,e,n,r){var i=t.display,a=!1,l=Mi(t,(function(e){c&&(i.scroller.draggable=!1),t.state.draggingText=!1,pt(i.wrapper.ownerDocument,"mouseup",l),pt(i.wrapper.ownerDocument,"mousemove",u),pt(i.scroller,"dragstart",h),pt(i.scroller,"drop",l),a||(xt(e),r.addNew||Oa(t.doc,n,null,null,r.extend),c&&!f||o&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),u=function(t){a=a||Math.abs(e.clientX-t.clientX)+Math.abs(e.clientY-t.clientY)>=10},h=function(){return a=!0};c&&(i.scroller.draggable=!0),t.state.draggingText=l,l.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),dt(i.wrapper.ownerDocument,"mouseup",l),dt(i.wrapper.ownerDocument,"mousemove",u),dt(i.scroller,"dragstart",h),dt(i.scroller,"drop",l),qr(t),setTimeout((function(){return i.input.focus()}),20)}function ks(t,e,n){if("char"==n)return new aa(e,e);if("word"==n)return t.findWordAt(e);if("line"==n)return new aa(ae(e.line,0),fe(t.doc,ae(e.line+1,0)));var r=n(t,e);return new aa(r.from,r.to)}function Cs(t,e,n,r){var i=t.display,a=t.doc;xt(e);var o,s,c=a.sel,l=c.ranges;if(r.addNew&&!r.extend?(s=a.sel.contains(n),o=s>-1?l[s]:new aa(n,n)):(o=a.sel.primary(),s=a.sel.primIndex),"rectangle"==r.unit)r.addNew||(o=new aa(n,n)),n=Or(t,e,!0,!0),s=-1;else{var u=ks(t,n,r.unit);o=r.extend?Da(o,u.anchor,u.head,r.extend):u}r.addNew?-1==s?(s=l.length,Ha(a,oa(t,l.concat([o]),s),{scroll:!1,origin:"*mouse"})):l.length>1&&l[s].empty()&&"char"==r.unit&&!r.extend?(Ha(a,oa(t,l.slice(0,s).concat(l.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),c=a.sel):Na(a,s,o,K):(s=0,Ha(a,new ia([o],0),K),c=a.sel);var h=n;function f(e){if(0!=oe(h,e))if(h=e,"rectangle"==r.unit){for(var i=[],l=t.options.tabSize,u=P(Yt(a,n.line).text,n.ch,l),f=P(Yt(a,e.line).text,e.ch,l),A=Math.min(u,f),d=Math.max(u,f),g=Math.min(n.line,e.line),p=Math.min(t.lastLine(),Math.max(n.line,e.line));g<=p;g++){var b=Yt(a,g).text,m=X(b,A,l);A==d?i.push(new aa(ae(g,m),ae(g,m))):b.length>m&&i.push(new aa(ae(g,m),ae(g,X(b,d,l))))}i.length||i.push(new aa(n,n)),Ha(a,oa(t,c.ranges.slice(0,s).concat(i),s),{origin:"*mouse",scroll:!1}),t.scrollIntoView(e)}else{var v,w=o,y=ks(t,e,r.unit),x=w.anchor;oe(y.anchor,x)>0?(v=y.head,x=ue(w.from(),y.anchor)):(v=y.anchor,x=le(w.to(),y.head));var k=c.ranges.slice(0);k[s]=Bs(t,new aa(fe(a,x),v)),Ha(a,oa(t,k,s),K)}}var A=i.wrapper.getBoundingClientRect(),d=0;function g(e){var n=++d,o=Or(t,e,!0,"rectangle"==r.unit);if(o)if(0!=oe(o,h)){t.curOp.focus=M(),f(o);var s=ei(i,a);(o.line>=s.to||o.lineA.bottom?20:0;c&&setTimeout(Mi(t,(function(){d==n&&(i.scroller.scrollTop+=c,g(e))})),50)}}function p(e){t.state.selectingText=!1,d=1/0,e&&(xt(e),i.input.focus()),pt(i.wrapper.ownerDocument,"mousemove",b),pt(i.wrapper.ownerDocument,"mouseup",m),a.history.lastSelOrigin=null}var b=Mi(t,(function(t){0!==t.buttons&&Et(t)?g(t):p(t)})),m=Mi(t,p);t.state.selectingText=m,dt(i.wrapper.ownerDocument,"mousemove",b),dt(i.wrapper.ownerDocument,"mouseup",m)}function Bs(t,e){var n=e.anchor,r=e.head,i=Yt(t.doc,n.line);if(0==oe(n,r)&&n.sticky==r.sticky)return e;var a=ft(i);if(!a)return e;var o=ut(a,n.ch,n.sticky),s=a[o];if(s.from!=n.ch&&s.to!=n.ch)return e;var c,l=o+(s.from==n.ch==(1!=s.level)?0:1);if(0==l||l==a.length)return e;if(r.line!=n.line)c=(r.line-n.line)*("ltr"==t.doc.direction?1:-1)>0;else{var u=ut(a,r.ch,r.sticky),h=u-o||(r.ch-n.ch)*(1==s.level?-1:1);c=u==l-1||u==l?h<0:h>0}var f=a[l+(c?-1:0)],A=c==(1==f.level),d=A?f.from:f.to,g=A?"after":"before";return n.ch==d&&n.sticky==g?e:new aa(new ae(n.line,d,g),r)}function Ts(t,e,n,r){var i,a;if(e.touches)i=e.touches[0].clientX,a=e.touches[0].clientY;else try{i=e.clientX,a=e.clientY}catch(t){return!1}if(i>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;r&&xt(e);var o=t.display,s=o.lineDiv.getBoundingClientRect();if(a>s.bottom||!wt(t,n))return Ct(e);a-=s.top-o.viewOffset;for(var c=0;c=i)return bt(t,n,t,ne(t.doc,a),t.display.gutterSpecs[c].className,e),Ct(e)}}function Es(t,e){return Ts(t,e,"gutterClick",!0)}function _s(t,e){Kn(t.display,e)||Ss(t,e)||mt(t,e,"contextmenu")||k||t.display.input.onContextMenu(e)}function Ss(t,e){return!!wt(t,"gutterContextMenu")&&Ts(t,e,"gutterContextMenu",!1)}function Ls(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),fr(t)}ps.prototype.compare=function(t,e,n){return this.time+gs>t&&0==oe(e,this.pos)&&n==this.button};var Is={toString:function(){return"CodeMirror.Init"}},Ms={},Fs={};function Ds(t){var e=t.optionHandlers;function n(n,r,i,a){t.defaults[n]=r,i&&(e[n]=a?function(t,e,n){n!=Is&&i(t,e,n)}:i)}t.defineOption=n,t.Init=Is,n("value","",(function(t,e){return t.setValue(e)}),!0),n("mode",null,(function(t,e){t.doc.modeOption=e,Aa(t)}),!0),n("indentUnit",2,Aa,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(t){da(t),fr(t),Nr(t)}),!0),n("lineSeparator",null,(function(t,e){if(t.doc.lineSep=e,e){var n=[],r=t.doc.first;t.doc.iter((function(t){for(var i=0;;){var a=t.text.indexOf(e,i);if(-1==a)break;i=a+e.length,n.push(ae(r,a))}r++}));for(var i=n.length-1;i>=0;i--)ro(t.doc,e,n[i],ae(n[i].line,n[i].ch+e.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(t,e,n){t.state.specialChars=new RegExp(e.source+(e.test("\t")?"":"|\t"),"g"),n!=Is&&t.refresh()})),n("specialCharPlaceholder",pn,(function(t){return t.refresh()}),!0),n("electricChars",!0),n("inputStyle",b?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(t,e){return t.getInputField().spellcheck=e}),!0),n("autocorrect",!1,(function(t,e){return t.getInputField().autocorrect=e}),!0),n("autocapitalize",!1,(function(t,e){return t.getInputField().autocapitalize=e}),!0),n("rtlMoveVisually",!w),n("wholeLineUpdateBefore",!0),n("theme","default",(function(t){Ls(t),Yi(t)}),!0),n("keyMap","default",(function(t,e,n){var r=zo(e),i=n!=Is&&zo(n);i&&i.detach&&i.detach(t,r),r.attach&&r.attach(t,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Qs,!0),n("gutters",[],(function(t,e){t.display.gutterSpecs=Wi(e,t.options.lineNumbers),Yi(t)}),!0),n("fixedGutter",!0,(function(t,e){t.display.gutters.style.left=e?Mr(t.display)+"px":"0",t.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(t){return mi(t)}),!0),n("scrollbarStyle","native",(function(t){yi(t),mi(t),t.display.scrollbars.setScrollTop(t.doc.scrollTop),t.display.scrollbars.setScrollLeft(t.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(t,e){t.display.gutterSpecs=Wi(t.options.gutters,e),Yi(t)}),!0),n("firstLineNumber",1,Yi,!0),n("lineNumberFormatter",(function(t){return t}),Yi,!0),n("showCursorWhenSelecting",!1,jr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(t,e){"nocursor"==e&&(Jr(t),t.display.input.blur()),t.display.input.readOnlyChanged(e)})),n("screenReaderLabel",null,(function(t,e){e=""===e?null:e,t.display.input.screenReaderLabelChanged(e)})),n("disableInput",!1,(function(t,e){e||t.display.input.reset()}),!0),n("dragDrop",!0,Os),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,jr,!0),n("singleCursorHeightPerLine",!0,jr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,da,!0),n("addModeClass",!1,da,!0),n("pollInterval",100),n("undoDepth",200,(function(t,e){return t.doc.history.undoDepth=e})),n("historyEventDelay",1250),n("viewportMargin",10,(function(t){return t.refresh()}),!0),n("maxHighlightLength",1e4,da,!0),n("moveInputWithCursor",!0,(function(t,e){e||t.display.input.resetPosition()})),n("tabindex",null,(function(t,e){return t.display.input.getField().tabIndex=e||""})),n("autofocus",null),n("direction","ltr",(function(t,e){return t.doc.setDirection(e)}),!0),n("phrases",null)}function Os(t,e,n){if(!e!=!(n&&n!=Is)){var r=t.display.dragFunctions,i=e?dt:pt;i(t.display.scroller,"dragstart",r.start),i(t.display.scroller,"dragenter",r.enter),i(t.display.scroller,"dragover",r.over),i(t.display.scroller,"dragleave",r.leave),i(t.display.scroller,"drop",r.drop)}}function Qs(t){t.options.lineWrapping?(F(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(T(t.display.wrapper,"CodeMirror-wrap"),cn(t)),Dr(t),Nr(t),fr(t),setTimeout((function(){return mi(t)}),100)}function Ns(t,e){var n=this;if(!(this instanceof Ns))return new Ns(t,e);this.options=e=e?N(e):{},N(Ms,e,!1);var r=e.value;"string"==typeof r?r=new ko(r,e.mode,null,e.lineSeparator,e.direction):e.mode&&(r.modeOption=e.mode),this.doc=r;var i=new Ns.inputStyles[e.inputStyle](this),a=this.display=new Ji(t,r,i,e);for(var l in a.wrapper.CodeMirror=this,Ls(this),e.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),yi(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 R,keySeq:null,specialChars:null},e.autofocus&&!b&&a.input.focus(),o&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),Ps(this),Io(),ki(this),this.curOp.forceUpdate=!0,ma(this,r),e.autofocus&&!b||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Yr(n)}),20):Jr(this),Fs)Fs.hasOwnProperty(l)&&Fs[l](this,e[l],Is);Vi(this),e.finishInit&&e.finishInit(this);for(var u=0;u400}dt(e.scroller,"touchstart",(function(i){if(!mt(t,i)&&!a(i)&&!Es(t,i)){e.input.ensurePolled(),clearTimeout(n);var o=+new Date;e.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==i.touches.length&&(e.activeTouch.left=i.touches[0].pageX,e.activeTouch.top=i.touches[0].pageY)}})),dt(e.scroller,"touchmove",(function(){e.activeTouch&&(e.activeTouch.moved=!0)})),dt(e.scroller,"touchend",(function(n){var r=e.activeTouch;if(r&&!Kn(e,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var a,o=t.coordsChar(e.activeTouch,"page");a=!r.prev||c(r,r.prev)?new aa(o,o):!r.prev.prev||c(r,r.prev.prev)?t.findWordAt(o):new aa(ae(o.line,0),fe(t.doc,ae(o.line+1,0))),t.setSelection(a.anchor,a.head),t.focus(),xt(n)}i()})),dt(e.scroller,"touchcancel",i),dt(e.scroller,"scroll",(function(){e.scroller.clientHeight&&(fi(t,e.scroller.scrollTop),di(t,e.scroller.scrollLeft,!0),bt(t,"scroll",t))})),dt(e.scroller,"mousewheel",(function(e){return ra(t,e)})),dt(e.scroller,"DOMMouseScroll",(function(e){return ra(t,e)})),dt(e.wrapper,"scroll",(function(){return e.wrapper.scrollTop=e.wrapper.scrollLeft=0})),e.dragFunctions={enter:function(e){mt(t,e)||Bt(e)},over:function(e){mt(t,e)||(Eo(t,e),Bt(e))},start:function(e){return To(t,e)},drop:Mi(t,Bo),leave:function(e){mt(t,e)||_o(t)}};var l=e.input.getField();dt(l,"keyup",(function(e){return hs.call(t,e)})),dt(l,"keydown",Mi(t,ls)),dt(l,"keypress",Mi(t,fs)),dt(l,"focus",(function(e){return Yr(t,e)})),dt(l,"blur",(function(e){return Jr(t,e)}))}Ns.defaults=Ms,Ns.optionHandlers=Fs;var Rs=[];function Us(t,e,n,r){var i,a=t.doc;null==n&&(n="add"),"smart"==n&&(a.mode.indent?i=ve(t,e).state:n="prev");var o=t.options.tabSize,s=Yt(a,e),c=P(s.text,null,o);s.stateAfter&&(s.stateAfter=null);var l,u=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((l=a.mode.indent(i,s.text.slice(u.length),s.text))==$||l>150)){if(!r)return;n="prev"}}else l=0,n="not";"prev"==n?l=e>a.first?P(Yt(a,e-1).text,null,o):0:"add"==n?l=c+t.options.indentUnit:"subtract"==n?l=c-t.options.indentUnit:"number"==typeof n&&(l=c+n),l=Math.max(0,l);var h="",f=0;if(t.options.indentWithTabs)for(var A=Math.floor(l/o);A;--A)f+=o,h+="\t";if(fo,c=Dt(e),l=null;if(s&&r.ranges.length>1)if(Hs&&Hs.text.join("\n")==e){if(r.ranges.length%Hs.text.length==0){l=[];for(var u=0;u=0;f--){var A=r.ranges[f],d=A.from(),g=A.to();A.empty()&&(n&&n>0?d=ae(d.line,d.ch-n):t.state.overwrite&&!s?g=ae(g.line,Math.min(Yt(a,g.line).text.length,g.ch+W(c).length)):s&&Hs&&Hs.lineWise&&Hs.text.join("\n")==c.join("\n")&&(d=g=ae(d.line,0)));var p={from:d,to:g,text:l?l[f%l.length]:c,origin:i||(s?"paste":t.state.cutIncoming>o?"cut":"+input")};Ya(t.doc,p),Sn(t,"inputRead",t,p)}e&&!s&&zs(t,e),si(t),t.curOp.updateInput<2&&(t.curOp.updateInput=h),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Ks(t,e){var n=t.clipboardData&&t.clipboardData.getData("Text");if(n)return t.preventDefault(),e.isReadOnly()||e.options.disableInput||Ii(e,(function(){return js(e,n,0,null,"paste")})),!0}function zs(t,e){if(t.options.electricChars&&t.options.smartIndent)for(var n=t.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=t.getModeAt(i.head),o=!1;if(a.electricChars){for(var s=0;s-1){o=Us(t,i.head.line,"smart");break}}else a.electricInput&&a.electricInput.test(Yt(t.doc,i.head.line).text.slice(0,i.head.ch))&&(o=Us(t,i.head.line,"smart"));o&&Sn(t,"electricInput",t,i.head.line)}}}function Xs(t){for(var e=[],n=[],r=0;rn&&(Us(this,i.head.line,t,!0),n=i.head.line,r==this.doc.sel.primIndex&&si(this));else{var a=i.from(),o=i.to(),s=Math.max(n,a.line);n=Math.min(this.lastLine(),o.line-(o.ch?0:1))+1;for(var c=s;c0&&Na(this.doc,r,new aa(a,l[r].to()),j)}}})),getTokenAt:function(t,e){return Ce(this,t,e)},getLineTokens:function(t,e){return Ce(this,ae(t),e,!0)},getTokenTypeAt:function(t){t=fe(this.doc,t);var e,n=me(this,Yt(this.doc,t.line)),r=0,i=(n.length-1)/2,a=t.ch;if(0==a)e=n[2];else for(;;){var o=r+i>>1;if((o?n[2*o-1]:0)>=a)i=o;else{if(!(n[2*o+1]a&&(t=a,i=!0),r=Yt(this.doc,t)}else r=t;return pr(this,r,{top:0,left:0},e||"page",n||i).top+(i?this.doc.height-on(r):0)},defaultTextHeight:function(){return Sr(this.display)},defaultCharWidth:function(){return Lr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(t,e,n,r,i){var a=this.display,o=(t=vr(this,fe(this.doc,t))).bottom,s=t.left;if(e.style.position="absolute",e.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(e),a.sizer.appendChild(e),"over"==r)o=t.top;else if("above"==r||"near"==r){var c=Math.max(a.wrapper.clientHeight,this.doc.height),l=Math.max(a.sizer.clientWidth,a.lineSpace.clientWidth);("above"==r||t.bottom+e.offsetHeight>c)&&t.top>e.offsetHeight?o=t.top-e.offsetHeight:t.bottom+e.offsetHeight<=c&&(o=t.bottom),s+e.offsetWidth>l&&(s=l-e.offsetWidth)}e.style.top=o+"px",e.style.left=e.style.right="","right"==i?(s=a.sizer.clientWidth-e.offsetWidth,e.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(a.sizer.clientWidth-e.offsetWidth)/2),e.style.left=s+"px"),n&&ii(this,{left:s,top:o,right:s+e.offsetWidth,bottom:o+e.offsetHeight})},triggerOnKeyDown:Fi(ls),triggerOnKeyPress:Fi(fs),triggerOnKeyUp:hs,triggerOnMouseDown:Fi(ms),execCommand:function(t){if(Yo.hasOwnProperty(t))return Yo[t].call(null,this)},triggerElectric:Fi((function(t){zs(this,t)})),findPosH:function(t,e,n,r){var i=1;e<0&&(i=-1,e=-e);for(var a=fe(this.doc,t),o=0;o0&&o(e.charAt(n-1));)--n;for(;r.5||this.options.lineWrapping)&&Dr(this),bt(this,"refresh",this)})),swapDoc:Fi((function(t){var e=this.doc;return e.cm=null,this.state.selectingText&&this.state.selectingText(),ma(this,t),fr(this),this.display.input.reset(),ci(this,t.scrollLeft,t.scrollTop),this.curOp.forceScroll=!0,Sn(this,"swapDoc",this,e),e})),phrase:function(t){var e=this.options.phrases;return e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:t},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}},yt(t),t.registerHelper=function(e,r,i){n.hasOwnProperty(e)||(n[e]=t[e]={_global:[]}),n[e][r]=i},t.registerGlobalHelper=function(e,r,i,a){t.registerHelper(e,r,a),n[e]._global.push({pred:i,val:a})}}function qs(t,e,n,r,i){var a=e,o=n,s=Yt(t,e.line),c=i&&"rtl"==t.direction?-n:n;function l(){var n=e.line+c;return!(n=t.first+t.size)&&(e=new ae(n,e.ch,e.sticky),s=Yt(t,n))}function u(a){var o;if("codepoint"==r){var u=s.text.charCodeAt(e.ch+(r>0?0:-1));o=isNaN(u)?null:new ae(e.line,Math.max(0,Math.min(s.text.length,e.ch+n*(u>=55296&&u<56320?2:1))),-n)}else o=i?qo(t.cm,s,e,n):Vo(s,e,n);if(null==o){if(a||!l())return!1;e=Wo(i,t.cm,s,e.line,c)}else e=o;return!0}if("char"==r||"codepoint"==r)u();else if("column"==r)u(!0);else if("word"==r||"group"==r)for(var h=null,f="group"==r,A=t.cm&&t.cm.getHelper(e,"wordChars"),d=!0;!(n<0)||u(!d);d=!1){var g=s.text.charAt(e.ch)||"\n",p=nt(g,A)?"w":f&&"\n"==g?"n":!f||/\s/.test(g)?null:"p";if(!f||d||p||(p="s"),h&&h!=p){n<0&&(n=1,u(),e.sticky="after");break}if(p&&(h=p),n>0&&!u(!d))break}var b=Ga(t,e,a,o,!0);return se(a,b)&&(b.hitSide=!0),b}function Ys(t,e,n,r){var i,a,o=t.doc,s=e.left;if("page"==r){var c=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),l=Math.max(c-.5*Sr(t.display),3);i=(n>0?e.bottom:e.top)+n*l}else"line"==r&&(i=n>0?e.bottom+3:e.top-3);for(;(a=xr(t,s,i)).outside;){if(n<0?i<=0:i>=o.height){a.hitSide=!0;break}i+=5*n}return a}var Js=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new R,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Zs(t,e){var n=er(t,e.line);if(!n||n.hidden)return null;var r=Yt(t.doc,e.line),i=Jn(n,r,e.line),a=ft(r,t.doc.direction),o="left";a&&(o=ut(a,e.ch)%2?"right":"left");var s=or(i.map,e.ch,o);return s.offset="right"==s.collapse?s.end:s.start,s}function tc(t){for(var e=t;e;e=e.parentNode)if(/CodeMirror-gutter-wrapper/.test(e.className))return!0;return!1}function ec(t,e){return e&&(t.bad=!0),t}function nc(t,e,n,r,i){var a="",o=!1,s=t.doc.lineSeparator(),c=!1;function l(t){return function(e){return e.id==t}}function u(){o&&(a+=s,c&&(a+=s),o=c=!1)}function h(t){t&&(u(),a+=t)}function f(e){if(1==e.nodeType){var n=e.getAttribute("cm-text");if(n)return void h(n);var a,A=e.getAttribute("cm-marker");if(A){var d=t.findMarks(ae(r,0),ae(i+1,0),l(+A));return void(d.length&&(a=d[0].find(0))&&h(Jt(t.doc,a.from,a.to).join(s)))}if("false"==e.getAttribute("contenteditable"))return;var g=/^(pre|div|p|li|table|br)$/i.test(e.nodeName);if(!/^br$/i.test(e.nodeName)&&0==e.textContent.length)return;g&&u();for(var p=0;p=e.display.viewTo||a.line=e.display.viewFrom&&Zs(e,i)||{node:c[0].measure.map[2],offset:0},u=a.liner.firstLine()&&(o=ae(o.line-1,Yt(r.doc,o.line-1).length)),s.ch==Yt(r.doc,s.line).text.length&&s.linei.viewTo-1)return!1;o.line==i.viewFrom||0==(t=Qr(r,o.line))?(e=ee(i.view[0].line),n=i.view[0].node):(e=ee(i.view[t].line),n=i.view[t-1].node.nextSibling);var c,l,u=Qr(r,s.line);if(u==i.view.length-1?(c=i.viewTo-1,l=i.lineDiv.lastChild):(c=ee(i.view[u+1].line)-1,l=i.view[u+1].node.previousSibling),!n)return!1;for(var h=r.doc.splitLines(nc(r,n,l,e,c)),f=Jt(r.doc,ae(e,0),ae(c,Yt(r.doc,c).text.length));h.length>1&&f.length>1;)if(W(h)==W(f))h.pop(),f.pop(),c--;else{if(h[0]!=f[0])break;h.shift(),f.shift(),e++}for(var A=0,d=0,g=h[0],p=f[0],b=Math.min(g.length,p.length);Ao.ch&&m.charCodeAt(m.length-d-1)==v.charCodeAt(v.length-d-1);)A--,d++;h[h.length-1]=m.slice(0,m.length-d).replace(/^\u200b+/,""),h[0]=h[0].slice(A).replace(/\u200b+$/,"");var y=ae(e,A),x=ae(c,f.length?W(f).length-d:0);return h.length>1||h[0]||oe(y,x)?(ro(r.doc,h,y,x,"+input"),!0):void 0},Js.prototype.ensurePolled=function(){this.forceCompositionEnd()},Js.prototype.reset=function(){this.forceCompositionEnd()},Js.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Js.prototype.readFromDOMSoon=function(){var t=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(t.readDOMTimeout=null,t.composing){if(!t.composing.done)return;t.composing=null}t.updateFromDOM()}),80))},Js.prototype.updateFromDOM=function(){var t=this;!this.cm.isReadOnly()&&this.pollContent()||Ii(this.cm,(function(){return Nr(t.cm)}))},Js.prototype.setUneditable=function(t){t.contentEditable="false"},Js.prototype.onKeyPress=function(t){0==t.charCode||this.composing||(t.preventDefault(),this.cm.isReadOnly()||Mi(this.cm,js)(this.cm,String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),0))},Js.prototype.readOnlyChanged=function(t){this.div.contentEditable=String("nocursor"!=t)},Js.prototype.onContextMenu=function(){},Js.prototype.resetPosition=function(){},Js.prototype.needsContentAttribute=!0;var ac=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new R,this.hasSelection=!1,this.composing=null};function oc(t,e){if((e=e?N(e):{}).value=t.value,!e.tabindex&&t.tabIndex&&(e.tabindex=t.tabIndex),!e.placeholder&&t.placeholder&&(e.placeholder=t.placeholder),null==e.autofocus){var n=M();e.autofocus=n==t||null!=t.getAttribute("autofocus")&&n==document.body}function r(){t.value=s.getValue()}var i;if(t.form&&(dt(t.form,"submit",r),!e.leaveSubmitMethodAlone)){var a=t.form;i=a.submit;try{var o=a.submit=function(){r(),a.submit=i,a.submit(),a.submit=o}}catch(t){}}e.finishInit=function(n){n.save=r,n.getTextArea=function(){return t},n.toTextArea=function(){n.toTextArea=isNaN,r(),t.parentNode.removeChild(n.getWrapperElement()),t.style.display="",t.form&&(pt(t.form,"submit",r),e.leaveSubmitMethodAlone||"function"!=typeof t.form.submit||(t.form.submit=i))}},t.style.display="none";var s=Ns((function(e){return t.parentNode.insertBefore(e,t.nextSibling)}),e);return s}function sc(t){t.off=pt,t.on=dt,t.wheelEventPixels=na,t.Doc=ko,t.splitLines=Dt,t.countColumn=P,t.findColumn=X,t.isWordChar=et,t.Pass=$,t.signal=bt,t.Line=ln,t.changeEnd=ca,t.scrollbarModel=wi,t.Pos=ae,t.cmpPos=oe,t.modes=Rt,t.mimeModes=Ut,t.resolveMode=jt,t.getMode=Kt,t.modeExtensions=zt,t.extendMode=Xt,t.copyState=Gt,t.startState=Wt,t.innerMode=Vt,t.commands=Yo,t.keyMap=Po,t.keyName=Ko,t.isModifierKey=$o,t.lookupKey=Ho,t.normalizeKeyMap=Uo,t.StringStream=qt,t.SharedTextMarker=bo,t.TextMarker=go,t.LineWidget=uo,t.e_preventDefault=xt,t.e_stopPropagation=kt,t.e_stop=Bt,t.addClass=F,t.contains=I,t.rmClass=T,t.keyNames=Do}ac.prototype.init=function(t){var e=this,n=this,r=this.cm;this.createField(t);var i=this.textarea;function a(t){if(!mt(r,t)){if(r.somethingSelected())$s({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var e=Xs(r);$s({lineWise:!0,text:e.text}),"cut"==t.type?r.setSelections(e.ranges,null,j):(n.prevInput="",i.value=e.text.join("\n"),O(i))}"cut"==t.type&&(r.state.cutIncoming=+new Date)}}t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),g&&(i.style.width="0px"),dt(i,"input",(function(){o&&s>=9&&e.hasSelection&&(e.hasSelection=null),n.poll()})),dt(i,"paste",(function(t){mt(r,t)||Ks(t,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),dt(i,"cut",a),dt(i,"copy",a),dt(t.scroller,"paste",(function(e){if(!Kn(t,e)&&!mt(r,e)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var a=new Event("paste");a.clipboardData=e.clipboardData,i.dispatchEvent(a)}})),dt(t.lineSpace,"selectstart",(function(e){Kn(t,e)||xt(e)})),dt(i,"compositionstart",(function(){var t=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:t,range:r.markText(t,r.getCursor("to"),{className:"CodeMirror-composing"})}})),dt(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},ac.prototype.createField=function(t){this.wrapper=Vs(),this.textarea=this.wrapper.firstChild},ac.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},ac.prototype.prepareSelection=function(){var t=this.cm,e=t.display,n=t.doc,r=Kr(t);if(t.options.moveInputWithCursor){var i=vr(t,n.sel.primary().head,"div"),a=e.wrapper.getBoundingClientRect(),o=e.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(e.wrapper.clientHeight-10,i.top+o.top-a.top)),r.teLeft=Math.max(0,Math.min(e.wrapper.clientWidth-10,i.left+o.left-a.left))}return r},ac.prototype.showSelection=function(t){var e=this.cm.display;_(e.cursorDiv,t.cursors),_(e.selectionDiv,t.selection),null!=t.teTop&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},ac.prototype.reset=function(t){if(!this.contextMenuPending&&!this.composing){var e=this.cm;if(e.somethingSelected()){this.prevInput="";var n=e.getSelection();this.textarea.value=n,e.state.focused&&O(this.textarea),o&&s>=9&&(this.hasSelection=n)}else t||(this.prevInput=this.textarea.value="",o&&s>=9&&(this.hasSelection=null))}},ac.prototype.getField=function(){return this.textarea},ac.prototype.supportsTouch=function(){return!1},ac.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!b||M()!=this.textarea))try{this.textarea.focus()}catch(t){}},ac.prototype.blur=function(){this.textarea.blur()},ac.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ac.prototype.receivedFocus=function(){this.slowPoll()},ac.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){t.poll(),t.cm.state.focused&&t.slowPoll()}))},ac.prototype.fastPoll=function(){var t=!1,e=this;function n(){e.poll()||t?(e.pollingFast=!1,e.slowPoll()):(t=!0,e.polling.set(60,n))}e.pollingFast=!0,e.polling.set(20,n)},ac.prototype.poll=function(){var t=this,e=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!e.state.focused||Ot(n)&&!r&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var i=n.value;if(i==r&&!e.somethingSelected())return!1;if(o&&s>=9&&this.hasSelection===i||m&&/[\uf700-\uf7ff]/.test(i))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var a=i.charCodeAt(0);if(8203!=a||r||(r="​"),8666==a)return this.reset(),this.cm.execCommand("undo")}for(var c=0,l=Math.min(r.length,i.length);c1e3||i.indexOf("\n")>-1?n.value=t.prevInput="":t.prevInput=i,t.composing&&(t.composing.range.clear(),t.composing.range=e.markText(t.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},ac.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ac.prototype.onKeyPress=function(){o&&s>=9&&(this.hasSelection=null),this.fastPoll()},ac.prototype.onContextMenu=function(t){var e=this,n=e.cm,r=n.display,i=e.textarea;e.contextMenuPending&&e.contextMenuPending();var a=Or(n,t),l=r.scroller.scrollTop;if(a&&!h){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(a)&&Mi(n,Ha)(n.doc,sa(a),j);var u,f=i.style.cssText,A=e.wrapper.style.cssText,d=e.wrapper.offsetParent.getBoundingClientRect();if(e.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(t.clientY-d.top-5)+"px; left: "+(t.clientX-d.left-5)+"px;\n z-index: 1000; background: "+(o?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",c&&(u=window.scrollY),r.input.focus(),c&&window.scrollTo(null,u),r.input.reset(),n.somethingSelected()||(i.value=e.prevInput=" "),e.contextMenuPending=b,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),o&&s>=9&&p(),k){Bt(t);var g=function(){pt(window,"mouseup",g),setTimeout(b,20)};dt(window,"mouseup",g)}else setTimeout(b,50)}function p(){if(null!=i.selectionStart){var t=n.somethingSelected(),a="​"+(t?i.value:"");i.value="⇚",i.value=a,e.prevInput=t?"":"​",i.selectionStart=1,i.selectionEnd=a.length,r.selForContextMenu=n.doc.sel}}function b(){if(e.contextMenuPending==b&&(e.contextMenuPending=!1,e.wrapper.style.cssText=A,i.style.cssText=f,o&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=l),null!=i.selectionStart)){(!o||o&&s<9)&&p();var t=0,a=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==e.prevInput?Mi(n,Wa)(n):t++<10?r.detectingSelectAll=setTimeout(a,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(a,200)}}},ac.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled="nocursor"==t,this.textarea.readOnly=!!t},ac.prototype.setUneditable=function(){},ac.prototype.needsContentAttribute=!1,Ds(Ns),Ws(Ns);var cc="iter insert remove copy getEditor constructor".split(" ");for(var lc in ko.prototype)ko.prototype.hasOwnProperty(lc)&&U(cc,lc)<0&&(Ns.prototype[lc]=function(t){return function(){return t.apply(this.doc,arguments)}}(ko.prototype[lc]));return yt(ko),Ns.inputStyles={textarea:ac,contenteditable:Js},Ns.defineMode=function(t){Ns.defaults.mode||"null"==t||(Ns.defaults.mode=t),Ht.apply(this,arguments)},Ns.defineMIME=$t,Ns.defineMode("null",(function(){return{token:function(t){return t.skipToEnd()}}})),Ns.defineMIME("text/plain","null"),Ns.defineExtension=function(t,e){Ns.prototype[t]=e},Ns.defineDocExtension=function(t,e){ko.prototype[t]=e},Ns.fromTextArea=oc,sc(Ns),Ns.version="5.58.2",Ns}()}));n((function(t,e){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=ou).defineMode("xml",(function(t,e){var a,o,s=t.indentUnit,c={},l=e.htmlMode?r:i;for(var u in l)c[u]=l[u];for(var u in e)c[u]=e[u];function h(t,e){function n(n){return e.tokenize=n,n(t,e)}var r=t.next();return"<"==r?t.eat("!")?t.eat("[")?t.match("CDATA[")?n(d("atom","]]>")):null:t.match("--")?n(d("comment","--\x3e")):t.match("DOCTYPE",!0,!0)?(t.eatWhile(/[\w\._\-]/),n(g(1))):null:t.eat("?")?(t.eatWhile(/[\w\._\-]/),e.tokenize=d("meta","?>"),"meta"):(a=t.eat("/")?"closeTag":"openTag",e.tokenize=f,"tag bracket"):"&"==r?(t.eat("#")?t.eat("x")?t.eatWhile(/[a-fA-F\d]/)&&t.eat(";"):t.eatWhile(/[\d]/)&&t.eat(";"):t.eatWhile(/[\w\.\-:]/)&&t.eat(";"))?"atom":"error":(t.eatWhile(/[^&<]/),null)}function f(t,e){var n=t.next();if(">"==n||"/"==n&&t.eat(">"))return e.tokenize=h,a=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return a="equals",null;if("<"==n){e.tokenize=h,e.state=v,e.tagName=e.tagStart=null;var r=e.tokenize(t,e);return r?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(e.tokenize=A(n),e.stringStartCol=t.column(),e.tokenize(t,e)):(t.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function A(t){var e=function(e,n){for(;!e.eol();)if(e.next()==t){n.tokenize=f;break}return"string"};return e.isInAttribute=!0,e}function d(t,e){return function(n,r){for(;!n.eol();){if(n.match(e)){r.tokenize=h;break}n.next()}return t}}function g(t){return function(e,n){for(var r;null!=(r=e.next());){if("<"==r)return n.tokenize=g(t+1),n.tokenize(e,n);if(">"==r){if(1==t){n.tokenize=h;break}return n.tokenize=g(t-1),n.tokenize(e,n)}}return"meta"}}function p(t,e,n){this.prev=t.context,this.tagName=e,this.indent=t.indented,this.startOfLine=n,(c.doNotIndent.hasOwnProperty(e)||t.context&&t.context.noIndent)&&(this.noIndent=!0)}function b(t){t.context&&(t.context=t.context.prev)}function m(t,e){for(var n;;){if(!t.context)return;if(n=t.context.tagName,!c.contextGrabbers.hasOwnProperty(n)||!c.contextGrabbers[n].hasOwnProperty(e))return;b(t)}}function v(t,e,n){return"openTag"==t?(n.tagStart=e.column(),w):"closeTag"==t?y:v}function w(t,e,n){return"word"==t?(n.tagName=e.current(),o="tag",C):c.allowMissingTagName&&"endTag"==t?(o="tag bracket",C(t,e,n)):(o="error",w)}function y(t,e,n){if("word"==t){var r=e.current();return n.context&&n.context.tagName!=r&&c.implicitlyClosed.hasOwnProperty(n.context.tagName)&&b(n),n.context&&n.context.tagName==r||!1===c.matchClosing?(o="tag",x):(o="tag error",k)}return c.allowMissingTagName&&"endTag"==t?(o="tag bracket",x(t,e,n)):(o="error",k)}function x(t,e,n){return"endTag"!=t?(o="error",x):(b(n),v)}function k(t,e,n){return o="error",x(t,e,n)}function C(t,e,n){if("word"==t)return o="attribute",B;if("endTag"==t||"selfcloseTag"==t){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==t||c.autoSelfClosers.hasOwnProperty(r)?m(n,r):(m(n,r),n.context=new p(n,r,i==n.indented)),v}return o="error",C}function B(t,e,n){return"equals"==t?T:(c.allowMissing||(o="error"),C(t,e,n))}function T(t,e,n){return"string"==t?E:"word"==t&&c.allowUnquoted?(o="string",C):(o="error",C(t,e,n))}function E(t,e,n){return"string"==t?E:C(t,e,n)}return h.isInText=!0,{startState:function(t){var e={tokenize:h,state:v,indented:t||0,tagName:null,tagStart:null,context:null};return null!=t&&(e.baseIndent=t),e},token:function(t,e){if(!e.tagName&&t.sol()&&(e.indented=t.indentation()),t.eatSpace())return null;a=null;var n=e.tokenize(t,e);return(n||a)&&"comment"!=n&&(o=null,e.state=e.state(a||n,t,e),o&&(n="error"==o?n+" error":o)),n},indent:function(t,e,r){var i=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+s;if(i&&i.noIndent)return n.Pass;if(t.tokenize!=f&&t.tokenize!=h)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==c.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(c.multilineTagIndentFactor||1);if(c.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:c.htmlMode?"html":"xml",helperType:c.htmlMode?"html":"xml",skipAttribute:function(t){t.state==T&&(t.state=C)},xmlCurrentTag:function(t){return t.tagName?{name:t.tagName,close:"closeTag"==t.type}:null},xmlCurrentContext:function(t){for(var e=[],n=t.context;n;n=n.prev)n.tagName&&e.push(n.tagName);return e.reverse()}}})),n.defineMIME("text/xml","xml"),n.defineMIME("application/xml","xml"),n.mimeModes.hasOwnProperty("text/html")||n.defineMIME("text/html",{name:"xml",htmlMode:!0})})),n((function(t,e){!function(t){t.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 e=0;e-1&&e.substring(i+1,e.length);if(a)return t.findModeByExtension(a)},t.findModeByName=function(e){e=e.toLowerCase();for(var n=0;n` "'(~:]+/,d=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,g=/^\s*\[[^\]]+?\]:.*$/,p=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,b=" ";function m(t,e,n){return e.f=e.inline=n,n(t,e)}function v(t,e,n){return e.f=e.block=n,n(t,e)}function w(t){return!t||!/\S/.test(t.string)}function y(t){if(t.linkTitle=!1,t.linkHref=!1,t.linkText=!1,t.em=!1,t.strong=!1,t.strikethrough=!1,t.quote=0,t.indentedCode=!1,t.f==k){var e=i;if(!e){var a=n.innerMode(r,t.htmlState);e="xml"==a.mode.name&&null===a.state.tagStart&&!a.state.context&&a.state.tokenize.isInText}e&&(t.f=E,t.block=x,t.htmlState=null)}return t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.prevLine=t.thisLine,t.thisLine={stream:null},null}function x(t,r){var i=t.column()===r.indentation,s=w(r.prevLine.stream),A=r.indentedCode,p=r.prevLine.hr,b=!1!==r.list,v=(r.listStack[r.listStack.length-1]||0)+3;r.indentedCode=!1;var y=r.indentation;if(null===r.indentationDiff&&(r.indentationDiff=r.indentation,b)){for(r.list=null;y=4&&(A||r.prevLine.fencedCodeEnd||r.prevLine.header||s))return t.skipToEnd(),r.indentedCode=!0,o.code;if(t.eatSpace())return null;if(i&&r.indentation<=v&&(T=t.match(h))&&T[1].length<=6)return r.quote=0,r.header=T[1].length,r.thisLine.header=!0,e.highlightFormatting&&(r.formatting="header"),r.f=r.inline,B(r);if(r.indentation<=v&&t.eat(">"))return r.quote=i?1:r.quote+1,e.highlightFormatting&&(r.formatting="quote"),t.eatSpace(),B(r);if(!k&&!r.setext&&i&&r.indentation<=v&&(T=t.match(l))){var E=T[1]?"ol":"ul";return r.indentation=y+t.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,e.taskLists&&t.match(u,!1)&&(r.taskList=!0),r.f=r.inline,e.highlightFormatting&&(r.formatting=["list","list-"+E]),B(r)}return i&&r.indentation<=v&&(T=t.match(d,!0))?(r.quote=0,r.fencedEndRE=new RegExp(T[1]+"+ *$"),r.localMode=e.fencedCodeBlockHighlighting&&a(T[2]||e.fencedCodeBlockDefaultMode),r.localMode&&(r.localState=n.startState(r.localMode)),r.f=r.block=C,e.highlightFormatting&&(r.formatting="code-block"),r.code=-1,B(r)):r.setext||!(x&&b||r.quote||!1!==r.list||r.code||k||g.test(t.string))&&(T=t.lookAhead(1))&&(T=T.match(f))?(r.setext?(r.header=r.setext,r.setext=0,t.skipToEnd(),e.highlightFormatting&&(r.formatting="header")):(r.header="="==T[0].charAt(0)?1:2,r.setext=r.header),r.thisLine.header=!0,r.f=r.inline,B(r)):k?(t.skipToEnd(),r.hr=!0,r.thisLine.hr=!0,o.hr):"["===t.peek()?m(t,r,M):m(t,r,r.inline)}function k(t,e){var a=r.token(t,e.htmlState);if(!i){var o=n.innerMode(r,e.htmlState);("xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText||e.md_inside&&t.current().indexOf(">")>-1)&&(e.f=E,e.block=x,e.htmlState=null)}return a}function C(t,n){var r,i=n.listStack[n.listStack.length-1]||0,a=n.indentation=t.quote?n.push(o.formatting+"-"+t.formatting[r]+"-"+t.quote):n.push("error"))}if(t.taskOpen)return n.push("meta"),n.length?n.join(" "):null;if(t.taskClosed)return n.push("property"),n.length?n.join(" "):null;if(t.linkHref?n.push(o.linkHref,"url"):(t.strong&&n.push(o.strong),t.em&&n.push(o.em),t.strikethrough&&n.push(o.strikethrough),t.emoji&&n.push(o.emoji),t.linkText&&n.push(o.linkText),t.code&&n.push(o.code),t.image&&n.push(o.image),t.imageAltText&&n.push(o.imageAltText,"link"),t.imageMarker&&n.push(o.imageMarker)),t.header&&n.push(o.header,o.header+"-"+t.header),t.quote&&(n.push(o.quote),!e.maxBlockquoteDepth||e.maxBlockquoteDepth>=t.quote?n.push(o.quote+"-"+t.quote):n.push(o.quote+"-"+e.maxBlockquoteDepth)),!1!==t.list){var i=(t.listStack.length-1)%3;i?1===i?n.push(o.list2):n.push(o.list3):n.push(o.list1)}return t.trailingSpaceNewLine?n.push("trailing-space-new-line"):t.trailingSpace&&n.push("trailing-space-"+(t.trailingSpace%2?"a":"b")),n.length?n.join(" "):null}function T(t,e){if(t.match(A,!0))return B(e)}function E(t,i){var a=i.text(t,i);if(void 0!==a)return a;if(i.list)return i.list=null,B(i);if(i.taskList)return" "===t.match(u,!0)[1]?i.taskOpen=!0:i.taskClosed=!0,e.highlightFormatting&&(i.formatting="task"),i.taskList=!1,B(i);if(i.taskOpen=!1,i.taskClosed=!1,i.header&&t.match(/^#+$/,!0))return e.highlightFormatting&&(i.formatting="header"),B(i);var s=t.next();if(i.linkTitle){i.linkTitle=!1;var c=s;"("===s&&(c=")");var l="^\\s*(?:[^"+(c=(c+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1"))+"\\\\]+|\\\\\\\\|\\\\.)"+c;if(t.match(new RegExp(l),!0))return o.linkHref}if("`"===s){var h=i.formatting;e.highlightFormatting&&(i.formatting="code"),t.eatWhile("`");var f=t.current().length;if(0!=i.code||i.quote&&1!=f){if(f==i.code){var A=B(i);return i.code=0,A}return i.formatting=h,B(i)}return i.code=f,B(i)}if(i.code)return B(i);if("\\"===s&&(t.next(),e.highlightFormatting)){var d=B(i),g=o.formatting+"-escape";return d?d+" "+g:g}if("!"===s&&t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return i.imageMarker=!0,i.image=!0,e.highlightFormatting&&(i.formatting="image"),B(i);if("["===s&&i.imageMarker&&t.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return i.imageMarker=!1,i.imageAltText=!0,e.highlightFormatting&&(i.formatting="image"),B(i);if("]"===s&&i.imageAltText){e.highlightFormatting&&(i.formatting="image");var d=B(i);return i.imageAltText=!1,i.image=!1,i.inline=i.f=S,d}if("["===s&&!i.image)return i.linkText&&t.match(/^.*?\]/)||(i.linkText=!0,e.highlightFormatting&&(i.formatting="link")),B(i);if("]"===s&&i.linkText){e.highlightFormatting&&(i.formatting="link");var d=B(i);return i.linkText=!1,i.inline=i.f=t.match(/\(.*?\)| ?\[.*?\]/,!1)?S:E,d}if("<"===s&&t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=_,e.highlightFormatting&&(i.formatting="link"),(d=B(i))?d+=" ":d="",d+o.linkInline;if("<"===s&&t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=_,e.highlightFormatting&&(i.formatting="link"),(d=B(i))?d+=" ":d="",d+o.linkEmail;if(e.xml&&"<"===s&&t.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var b=t.string.indexOf(">",t.pos);if(-1!=b){var m=t.string.substring(t.start,b);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(m)&&(i.md_inside=!0)}return t.backUp(1),i.htmlState=n.startState(r),v(t,i,k)}if(e.xml&&"<"===s&&t.match(/^\/\w*?>/))return i.md_inside=!1,"tag";if("*"===s||"_"===s){for(var w=1,y=1==t.pos?" ":t.string.charAt(t.pos-2);w<3&&t.eat(s);)w++;var x=t.peek()||" ",C=!/\s/.test(x)&&(!p.test(x)||/\s/.test(y)||p.test(y)),T=!/\s/.test(y)&&(!p.test(y)||/\s/.test(x)||p.test(x)),L=null,I=null;if(w%2&&(i.em||!C||"*"!==s&&T&&!p.test(y)?i.em!=s||!T||"*"!==s&&C&&!p.test(x)||(L=!1):L=!0),w>1&&(i.strong||!C||"*"!==s&&T&&!p.test(y)?i.strong!=s||!T||"*"!==s&&C&&!p.test(x)||(I=!1):I=!0),null!=I||null!=L)return e.highlightFormatting&&(i.formatting=null==L?"strong":null==I?"em":"strong em"),!0===L&&(i.em=s),!0===I&&(i.strong=s),A=B(i),!1===L&&(i.em=!1),!1===I&&(i.strong=!1),A}else if(" "===s&&(t.eat("*")||t.eat("_"))){if(" "===t.peek())return B(i);t.backUp(1)}if(e.strikethrough)if("~"===s&&t.eatWhile(s)){if(i.strikethrough)return e.highlightFormatting&&(i.formatting="strikethrough"),A=B(i),i.strikethrough=!1,A;if(t.match(/^[^\s]/,!1))return i.strikethrough=!0,e.highlightFormatting&&(i.formatting="strikethrough"),B(i)}else if(" "===s&&t.match(/^~~/,!0)){if(" "===t.peek())return B(i);t.backUp(2)}if(e.emoji&&":"===s&&t.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){i.emoji=!0,e.highlightFormatting&&(i.formatting="emoji");var M=B(i);return i.emoji=!1,M}return" "===s&&(t.match(/^ +$/,!1)?i.trailingSpace++:i.trailingSpace&&(i.trailingSpaceNewLine=!0)),B(i)}function _(t,n){if(">"===t.next()){n.f=n.inline=E,e.highlightFormatting&&(n.formatting="link");var r=B(n);return r?r+=" ":r="",r+o.linkInline}return t.match(/^[^>]+/,!0),o.linkInline}function S(t,n){if(t.eatSpace())return null;var r=t.next();return"("===r||"["===r?(n.f=n.inline=I("("===r?")":"]"),e.highlightFormatting&&(n.formatting="link-string"),n.linkHref=!0,B(n)):"error"}var L={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function I(t){return function(n,r){if(n.next()===t){r.f=r.inline=E,e.highlightFormatting&&(r.formatting="link-string");var i=B(r);return r.linkHref=!1,i}return n.match(L[t]),r.linkHref=!0,B(r)}}function M(t,n){return t.match(/^([^\]\\]|\\.)*\]:/,!1)?(n.f=F,t.next(),e.highlightFormatting&&(n.formatting="link"),n.linkText=!0,B(n)):m(t,n,E)}function F(t,n){if(t.match(/^\]:/,!0)){n.f=n.inline=D,e.highlightFormatting&&(n.formatting="link");var r=B(n);return n.linkText=!1,r}return t.match(/^([^\]\\]|\\.)+/,!0),o.linkText}function D(t,e){return t.eatSpace()?null:(t.match(/^[^\s]+/,!0),void 0===t.peek()?e.linkTitle=!0:t.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),e.f=e.inline=E,o.linkHref+" url")}var O={startState:function(){return{f:x,prevLine:{stream:null},thisLine:{stream:null},block:x,htmlState:null,indentation:0,inline:E,text:T,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(t){return{f:t.f,prevLine:t.prevLine,thisLine:t.thisLine,block:t.block,htmlState:t.htmlState&&n.copyState(r,t.htmlState),indentation:t.indentation,localMode:t.localMode,localState:t.localMode?n.copyState(t.localMode,t.localState):null,inline:t.inline,text:t.text,formatting:!1,linkText:t.linkText,linkTitle:t.linkTitle,linkHref:t.linkHref,code:t.code,em:t.em,strong:t.strong,strikethrough:t.strikethrough,emoji:t.emoji,header:t.header,setext:t.setext,hr:t.hr,taskList:t.taskList,list:t.list,listStack:t.listStack.slice(0),quote:t.quote,indentedCode:t.indentedCode,trailingSpace:t.trailingSpace,trailingSpaceNewLine:t.trailingSpaceNewLine,md_inside:t.md_inside,fencedEndRE:t.fencedEndRE}},token:function(t,e){if(e.formatting=!1,t!=e.thisLine.stream){if(e.header=0,e.hr=!1,t.match(/^\s*$/,!0))return y(e),null;if(e.prevLine=e.thisLine,e.thisLine={stream:t},e.taskList=!1,e.trailingSpace=0,e.trailingSpaceNewLine=!1,!e.localState&&(e.f=e.block,e.f!=k)){var n=t.match(/^\s*/,!0)[0].replace(/\t/g,b).length;if(e.indentation=n,e.indentationDiff=null,n>0)return null}}return e.f(t,e)},innerMode:function(t){return t.block==k?{state:t.htmlState,mode:r}:t.localState?{state:t.localState,mode:t.localMode}:{state:t,mode:O}},indent:function(t,e,i){return t.block==k&&r.indent?r.indent(t.htmlState,e,i):t.localState&&t.localMode.indent?t.localMode.indent(t.localState,e,i):n.Pass},blankLine:y,getType:B,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return O}),"xml"),n.defineMIME("text/markdown","markdown"),n.defineMIME("text/x-markdown","markdown")})),n((function(t,e){var n;(n=ou).overlayMode=function(t,e,r){return{startState:function(){return{base:n.startState(t),overlay:n.startState(e),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(r){return{base:n.copyState(t,r.base),overlay:n.copyState(e,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=ou).defineMode("gfm",(function(t,e){var i=0;function a(t){return t.code=!1,null}var o={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(t){return{code:t.code,codeBlock:t.codeBlock,ateSpace:t.ateSpace}},token:function(t,n){if(n.combineTokens=null,n.codeBlock)return t.match(/^```+/)?(n.codeBlock=!1,null):(t.skipToEnd(),null);if(t.sol()&&(n.code=!1),t.sol()&&t.match(/^```+/))return t.skipToEnd(),n.codeBlock=!0,null;if("`"===t.peek()){t.next();var a=t.pos;t.eatWhile("`");var o=1+t.pos-a;return n.code?o===i&&(n.code=!1):(i=o,n.code=!0),null}if(n.code)return t.next(),null;if(t.eatSpace())return n.ateSpace=!0,null;if((t.sol()||n.ateSpace)&&(n.ateSpace=!1,!1!==e.gitHubSpice)){if(t.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return n.combineTokens=!0,"link";if(t.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return n.combineTokens=!0,"link"}return t.match(r)&&"]("!=t.string.slice(t.start-2,t.start)&&(0==t.start||/\W/.test(t.string.charAt(t.start-1)))?(n.combineTokens=!0,"link"):(t.next(),null)},blankLine:a},s={taskLists:!0,strikethrough:!0,emoji:!0};for(var c in e)s[c]=e[c];return s.name="markdown",n.overlayMode(n.getMode(t,s),o)}),"markdown"),n.defineMIME("text/x-gfm","gfm")})),n((function(t,e){!function(t){var e=/^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,n=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,r=/[*+-]\s/;function i(t,n){var r=n.line,i=0,a=0,o=e.exec(t.getLine(r)),s=o[1];do{var c=r+(i+=1),l=t.getLine(c),u=e.exec(l);if(u){var h=u[1],f=parseInt(o[3],10)+i-a,A=parseInt(u[3],10),d=A;if(s!==h||isNaN(A)){if(s.length>h.length)return;if(s.lengthA&&(d=f+1),t.replaceRange(l.replace(e,h+d+u[4]+u[5]),{line:c,ch:0},{line:c,ch:l.length})}}while(u)}t.commands.newlineAndIndentContinueMarkdownList=function(a){if(a.getOption("disableInput"))return t.Pass;for(var o=a.listSelections(),s=[],c=0;c\s*$/.test(d),m=!/>\s*$/.test(d);(b||m)&&a.replaceRange("",{line:l.line,ch:0},{line:l.line,ch:l.ch+1}),s[c]="\n"}else{var v=g[1],w=g[5],y=!(r.test(g[2])||g[2].indexOf(">")>=0),x=y?parseInt(g[3],10)+1+g[4]:g[2].replace("x"," ");s[c]="\n"+v+x+w,y&&i(a,l)}}a.replaceSelections(s)}}(ou)}));n((function(t,e){!function(t){var e=t.Pos;function n(t,e){return t.line-e.line||t.ch-e.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(t,e,n,r){this.line=e,this.ch=n,this.cm=t,this.text=t.getLine(e),this.min=r?Math.max(r.from,t.firstLine()):t.firstLine(),this.max=r?Math.min(r.to-1,t.lastLine()):t.lastLine()}function o(t,n){var r=t.cm.getTokenTypeAt(e(t.line,n));return r&&/\btag\b/.test(r)}function s(t){if(!(t.line>=t.max))return t.ch=0,t.text=t.cm.getLine(++t.line),!0}function c(t){if(!(t.line<=t.min))return t.text=t.cm.getLine(--t.line),t.ch=t.text.length,!0}function l(t){for(;;){var e=t.text.indexOf(">",t.ch);if(-1==e){if(s(t))continue;return}if(o(t,e+1)){var n=t.text.lastIndexOf("/",e),r=n>-1&&!/\S/.test(t.text.slice(n+1,e));return t.ch=e+1,r?"selfClose":"regular"}t.ch=e+1}}function u(t){for(;;){var e=t.ch?t.text.lastIndexOf("<",t.ch-1):-1;if(-1==e){if(c(t))continue;return}if(o(t,e+1)){i.lastIndex=e,t.ch=e;var n=i.exec(t.text);if(n&&n.index==e)return n}else t.ch=e}}function h(t){for(;;){i.lastIndex=t.ch;var e=i.exec(t.text);if(!e){if(s(t))continue;return}if(o(t,e.index+1))return t.ch=e.index+e[0].length,e;t.ch=e.index+1}}function f(t){for(;;){var e=t.ch?t.text.lastIndexOf(">",t.ch-1):-1;if(-1==e){if(c(t))continue;return}if(o(t,e+1)){var n=t.text.lastIndexOf("/",e),r=n>-1&&!/\S/.test(t.text.slice(n+1,e));return t.ch=e+1,r?"selfClose":"regular"}t.ch=e}}function A(t,n){for(var r=[];;){var i,a=h(t),o=t.line,s=t.ch-(a?a[0].length:0);if(!a||!(i=l(t)))return;if("selfClose"!=i)if(a[1]){for(var c=r.length-1;c>=0;--c)if(r[c]==a[2]){r.length=c;break}if(c<0&&(!n||n==a[2]))return{tag:a[2],from:e(o,s),to:e(t.line,t.ch)}}else r.push(a[2])}}function d(t,n){for(var r=[];;){var i=f(t);if(!i)return;if("selfClose"!=i){var a=t.line,o=t.ch,s=u(t);if(!s)return;if(s[1])r.push(s[2]);else{for(var c=r.length-1;c>=0;--c)if(r[c]==s[2]){r.length=c;break}if(c<0&&(!n||n==s[2]))return{tag:s[2],from:e(t.line,t.ch),to:e(a,o)}}}else u(t)}}t.registerHelper("fold","xml",(function(t,r){for(var i=new a(t,r.line,0);;){var o=h(i);if(!o||i.line!=r.line)return;var s=l(i);if(!s)return;if(!o[1]&&"selfClose"!=s){var c=e(i.line,i.ch),u=A(i,o[2]);return u&&n(u.from,c)>0?{from:c,to:u.from}:null}}})),t.findMatchingTag=function(t,r,i){var o=new a(t,r.line,r.ch,i);if(-1!=o.text.indexOf(">")||-1!=o.text.indexOf("<")){var s=l(o),c=s&&e(o.line,o.ch),h=s&&u(o);if(s&&h&&!(n(o,r)>0)){var f={from:e(o.line,o.ch),to:c,tag:h[2]};return"selfClose"==s?{open:f,close:null,at:"open"}:h[1]?{open:d(o,h[2]),close:f,at:"close"}:{open:f,close:A(o=new a(t,c.line,c.ch,i),h[2]),at:"open"}}}},t.findEnclosingTag=function(t,e,n,r){for(var i=new a(t,e.line,e.ch,n);;){var o=d(i,r);if(!o)break;var s=A(new a(t,e.line,e.ch,n),o.tag);if(s)return{open:o,close:s}}},t.scanForClosingTag=function(t,e,n,r){return A(new a(t,e.line,e.ch,r?{from:0,to:r}:null),n)}}(ou)}));n((function(t,e){!function(t){t.defineOption("autoCloseTags",!1,(function(e,n,i){if(i!=t.Init&&i&&e.removeKeyMap("autoCloseTags"),n){var o={name:"autoCloseTags"};"object"==typeof n&&!1===n.whenClosing||(o["'/'"]=function(t){return a(t)}),"object"==typeof n&&!1===n.whenOpening||(o["'>'"]=function(t){return r(t)}),e.addKeyMap(o)}}));var e=["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 t.Pass;for(var i=r.listSelections(),a=[],c=r.getOption("autoCloseTags"),l=0;lu.ch&&(g=g.slice(0,g.length-h.end+u.ch));var v=g.toLowerCase();if(!g||"string"==h.type&&(h.end!=u.ch||!/[\"\']/.test(h.string.charAt(h.string.length-1))||1==h.string.length)||"tag"==h.type&&d.close||h.string.indexOf("/")==u.ch-h.start-1||b&&o(b,v)>-1||s(r,f.mode.xmlCurrentContext&&f.mode.xmlCurrentContext(A)||[],g,u,!0))return t.Pass;var w="object"==typeof c&&c.emptyTags;if(w&&o(w,g)>-1)a[l]={text:"/>",newPos:t.Pos(u.line,u.ch+2)};else{var y=m&&o(m,v)>-1;a[l]={indent:y,text:">"+(y?"\n\n":"")+"",newPos:y?t.Pos(u.line+1,0):t.Pos(u.line,u.ch+1)}}}var x="object"==typeof c&&c.dontIndentOnAutoClose;for(l=i.length-1;l>=0;l--){var k=a[l];r.replaceRange(k.text,i[l].head,i[l].anchor,"+insert");var C=r.listSelections().slice(0);C[l]={head:k.newPos,anchor:k.newPos},r.setSelections(C),!x&&k.indent&&(r.indentLine(k.newPos.line,null,!0),r.indentLine(k.newPos.line+1,null,!0))}}function i(e,n){for(var r=e.listSelections(),i=[],a=n?"/":""!=e.getLine(u.line).charAt(h.end)&&(d+=">"),i[l]=d}if(e.replaceSelections(i),r=e.listSelections(),!c)for(l=0;l=0&&n[l]==r;l--)++c;for(i=s.to,l=1;lu);h++){var f=t.getLine(l++);i=null==i?f:i+"\n"+f}c*=2,e.lastIndex=n.ch;var A=e.exec(i);if(A){var d=i.slice(0,A.index).split("\n"),g=A[0].split("\n"),p=n.line+d.length-1,b=d[d.length-1].length;return{from:r(p,b),to:r(p+g.length-1,1==g.length?b+g[0].length:g[g.length-1].length),match:A}}}}function l(t,e,n){for(var r,i=0;i<=t.length;){e.lastIndex=i;var a=e.exec(t);if(!a)break;var o=a.index+a[0].length;if(o>t.length-n)break;(!r||o>r.index+r[0].length)&&(r=a),i=a.index+1}return r}function u(t,e,n){e=a(e,"g");for(var i=n.line,o=n.ch,s=t.firstLine();i>=s;i--,o=-1){var c=t.getLine(i),u=l(c,e,o<0?0:c.length-o);if(u)return{from:r(i,u.index),to:r(i,u.index+u[0].length),match:u}}}function h(t,e,n){if(!o(e))return u(t,e,n);e=a(e,"gm");for(var i,s=1,c=t.getLine(n.line).length-n.ch,h=n.line,f=t.firstLine();h>=f;){for(var A=0;A=f;A++){var d=t.getLine(h--);i=null==i?d:d+"\n"+i}s*=2;var g=l(i,e,c);if(g){var p=i.slice(0,g.index).split("\n"),b=g[0].split("\n"),m=h+p.length,v=p[p.length-1].length;return{from:r(m,v),to:r(m+b.length-1,1==b.length?v+b[0].length:b[b.length-1].length),match:g}}}}function f(t,e,n,r){if(t.length==e.length)return n;for(var i=0,a=n+Math.max(0,t.length-e.length);;){if(i==a)return i;var o=i+a>>1,s=r(t.slice(0,o)).length;if(s==n)return o;s>n?a=o:i=o+1}}function A(t,i,a,o){if(!i.length)return null;var s=o?e:n,c=s(i).split(/\r|\n\r?/);t:for(var l=a.line,u=a.ch,h=t.lastLine()+1-c.length;l<=h;l++,u=0){var A=t.getLine(l).slice(u),d=s(A);if(1==c.length){var g=d.indexOf(c[0]);if(-1==g)continue t;return a=f(A,d,g,s)+u,{from:r(l,f(A,d,g,s)+u),to:r(l,f(A,d,g+c[0].length,s)+u)}}var p=d.length-c[0].length;if(d.slice(p)==c[0]){for(var b=1;b=h;l--,u=-1){var A=t.getLine(l);u>-1&&(A=A.slice(0,u));var d=s(A);if(1==c.length){var g=d.lastIndexOf(c[0]);if(-1==g)continue t;return{from:r(l,f(A,d,g,s)),to:r(l,f(A,d,g+c[0].length,s))}}var p=c[c.length-1];if(d.slice(0,p.length)==p){var b=1;for(a=l-c.length+1;b0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)}))}(ou)}));n((function(t,e){!function(t){function e(t){t.state.placeholder&&(t.state.placeholder.parentNode.removeChild(t.state.placeholder),t.state.placeholder=null)}function n(t){e(t);var n=t.state.placeholder=document.createElement("pre");n.style.cssText="height: 0; overflow: visible",n.style.direction=t.getOption("direction"),n.className="CodeMirror-placeholder CodeMirror-line-like";var r=t.getOption("placeholder");"string"==typeof r&&(r=document.createTextNode(r)),n.appendChild(r),t.display.lineSpace.insertBefore(n,t.display.lineSpace.firstChild)}function r(t){setTimeout((function(){var r=!1,i=t.getInputField();"TEXTAREA"==i.nodeName?r=!i.value:1==t.lineCount()&&(r=!/[^\u200b]/.test(i.querySelector(".CodeMirror-line").textContent)),r?n(t):e(t)}),20)}function i(t){o(t)&&n(t)}function a(t){var r=t.getWrapperElement(),i=o(t);r.className=r.className.replace(" CodeMirror-empty","")+(i?" CodeMirror-empty":""),i?n(t):e(t)}function o(t){return 1===t.lineCount()&&""===t.getLine(0)}t.defineOption("placeholder","",(function(n,o,s){var c=s&&s!=t.Init;if(o&&!c)n.on("blur",i),n.on("change",a),n.on("swapDoc",a),t.on(n.getInputField(),"compositionupdate",n.state.placeholderCompose=function(){r(n)}),a(n);else if(!o&&c){n.off("blur",i),n.off("change",a),n.off("swapDoc",a),t.off(n.getInputField(),"compositionupdate",n.state.placeholderCompose),e(n);var l=n.getWrapperElement();l.className=l.className.replace(" CodeMirror-empty","")}o&&!n.hasFocus()&&i(n)}))}(ou)}));n((function(t,e){!function(t){var e=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=t.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(t){return t&&t.bracketRegex||/[(){}[\]]/}function a(t,e,a){var s=t.getLineHandle(e.line),c=e.ch-1,l=a&&a.afterCursor;null==l&&(l=/(^| )cm-fat-cursor($| )/.test(t.getWrapperElement().className));var u=i(a),h=!l&&c>=0&&u.test(s.text.charAt(c))&&r[s.text.charAt(c)]||u.test(s.text.charAt(c+1))&&r[s.text.charAt(++c)];if(!h)return null;var f=">"==h.charAt(1)?1:-1;if(a&&a.strict&&f>0!=(c==e.ch))return null;var A=t.getTokenTypeAt(n(e.line,c+1)),d=o(t,n(e.line,c+(f>0?1:0)),f,A||null,a);return null==d?null:{from:n(e.line,c),to:d&&d.pos,match:d&&d.ch==h.charAt(0),forward:f>0}}function o(t,e,a,o,s){for(var c=s&&s.maxScanLineLength||1e4,l=s&&s.maxScanLines||1e3,u=[],h=i(s),f=a>0?Math.min(e.line+l,t.lastLine()+1):Math.max(t.firstLine()-1,e.line-l),A=e.line;A!=f;A+=a){var d=t.getLine(A);if(d){var g=a>0?0:d.length-1,p=a>0?d.length:-1;if(!(d.length>c))for(A==e.line&&(g=e.ch-(a<0?1:0));g!=p;g+=a){var b=d.charAt(g);if(h.test(b)&&(void 0===o||t.getTokenTypeAt(n(A,g+1))==o)){var m=r[b];if(m&&">"==m.charAt(1)==a>0)u.push(b);else{if(!u.length)return{pos:n(A,g),ch:b};u.pop()}}}}}return A-a!=(a>0?t.lastLine():t.firstLine())&&null}function s(t,r,i){for(var o=t.state.matchBrackets.maxHighlightLineLength||1e3,s=[],c=t.listSelections(),l=0;l0&&r.ch>=a.length)return e.clipPos(n(r.line+1,0));for(var o,s="start",c=r.ch,l=c,u=i<0?0:a.length,h=0;l!=u;l+=i,h++){var f=a.charAt(i<0?l-1:l),A="_"!=f&&t.isWordChar(f)?"w":"o";if("w"==A&&f.toUpperCase()==f&&(A="W"),"start"==s)"o"!=A?(s="in",o=A):c=l+i;else if("in"==s&&o!=A){if("w"==o&&"W"==A&&i<0&&l--,"W"==o&&"w"==A&&i>0){if(l==c+1){o="w";continue}l--}break}}return n(r.line,l)}function i(t,e){t.extendSelectionsBy((function(n){return t.display.shift||t.doc.extend||n.empty()?r(t.doc,n.head,e):e<0?n.from():n.to()}))}function a(e,r){if(e.isReadOnly())return t.Pass;e.operation((function(){for(var t=e.listSelections().length,i=[],a=-1,o=0;o=n&&t.execCommand("goLineUp")}t.scrollTo(null,e.top-t.defaultTextHeight())},e.scrollLineDown=function(t){var e=t.getScrollInfo();if(!t.somethingSelected()){var n=t.lineAtHeight(e.top,"local")+1;t.getCursor().line<=n&&t.execCommand("goLineDown")}t.scrollTo(null,e.top+t.defaultTextHeight())},e.splitSelectionByLine=function(t){for(var e=t.listSelections(),r=[],i=0;ia.line&&s==o.line&&0==o.ch||r.push({anchor:s==a.line?a:n(s,0),head:s==o.line?o:n(s)});t.setSelections(r,0)},e.singleSelectionTop=function(t){var e=t.listSelections()[0];t.setSelection(e.anchor,e.head,{scroll:!1})},e.selectLine=function(t){for(var e=t.listSelections(),r=[],i=0;i=0;s--){var l=r[i[s]];if(!(c&&t.cmpPos(l.head,c)>0)){var u=o(e,l.head);c=u.from,e.replaceRange(n(u.word),u.from,u.to)}}}))}function d(e){var n=e.getCursor("from"),r=e.getCursor("to");if(0==t.cmpPos(n,r)){var i=o(e,n);if(!i.word)return;n=i.from,r=i.to}return{from:n,to:r,query:e.getRange(n,r),word:i}}function g(t,e){var r=d(t);if(r){var i=r.query,a=t.getSearchCursor(i,e?r.to:r.from);(e?a.findNext():a.findPrevious())?t.setSelection(a.from(),a.to()):(a=t.getSearchCursor(i,e?n(t.firstLine(),0):t.clipPos(n(t.lastLine()))),(e?a.findNext():a.findPrevious())?t.setSelection(a.from(),a.to()):r.word&&t.setSelection(r.from,r.to))}}e.selectScope=function(t){u(t)||t.execCommand("selectAll")},e.selectBetweenBrackets=function(e){if(!u(e))return t.Pass},e.goToBracket=function(e){e.extendSelectionsBy((function(r){var i=e.scanForBracket(r.head,1,h(e.getTokenTypeAt(r.head)));if(i&&0!=t.cmpPos(i.pos,r.head))return i.pos;var a=e.scanForBracket(r.head,-1,h(e.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return a&&n(a.pos.line,a.pos.ch+1)||r.head}))},e.swapLineUp=function(e){if(e.isReadOnly())return t.Pass;for(var r=e.listSelections(),i=[],a=e.firstLine()-1,o=[],s=0;sa?i.push(l,u):i.length&&(i[i.length-1]=u),a=u}e.operation((function(){for(var t=0;te.lastLine()?e.replaceRange("\n"+s,n(e.lastLine()),null,"+swapLine"):e.replaceRange(s+"\n",n(a,0),null,"+swapLine")}e.setSelections(o),e.scrollIntoView()}))},e.swapLineDown=function(e){if(e.isReadOnly())return t.Pass;for(var r=e.listSelections(),i=[],a=e.lastLine()+1,o=r.length-1;o>=0;o--){var s=r[o],c=s.to().line+1,l=s.from().line;0!=s.to().ch||s.empty()||c--,c=0;t-=2){var r=i[t],a=i[t+1],o=e.getLine(r);r==e.lastLine()?e.replaceRange("",n(r-1),n(r),"+swapLine"):e.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),e.replaceRange(o+"\n",n(a,0),null,"+swapLine")}e.scrollIntoView()}))},e.toggleCommentIndented=function(t){t.toggleComment({indent:!0})},e.joinLines=function(t){for(var e=t.listSelections(),r=[],i=0;i=0;a--){var o=r[a].head,s=e.getRange({line:o.line,ch:0},o),c=t.countColumn(s,null,e.getOption("tabSize")),l=e.findPosH(o,-1,"char",!1);if(s&&!/\S/.test(s)&&c%i==0){var u=new n(o.line,t.findColumn(s,c-i,i));u.ch!=o.ch&&(l=u)}e.replaceRange("",l,o,"+delete")}}))},e.delLineRight=function(t){t.operation((function(){for(var e=t.listSelections(),r=e.length-1;r>=0;r--)t.replaceRange("",e[r].anchor,n(e[r].to().line),"+delete");t.scrollIntoView()}))},e.upcaseAtCursor=function(t){A(t,(function(t){return t.toUpperCase()}))},e.downcaseAtCursor=function(t){A(t,(function(t){return t.toLowerCase()}))},e.setSublimeMark=function(t){t.state.sublimeMark&&t.state.sublimeMark.clear(),t.state.sublimeMark=t.setBookmark(t.getCursor())},e.selectToSublimeMark=function(t){var e=t.state.sublimeMark&&t.state.sublimeMark.find();e&&t.setSelection(t.getCursor(),e)},e.deleteToSublimeMark=function(e){var n=e.state.sublimeMark&&e.state.sublimeMark.find();if(n){var r=e.getCursor(),i=n;if(t.cmpPos(r,i)>0){var a=i;i=r,r=a}e.state.sublimeKilled=e.getRange(r,i),e.replaceRange("",r,i)}},e.swapWithSublimeMark=function(t){var e=t.state.sublimeMark&&t.state.sublimeMark.find();e&&(t.state.sublimeMark.clear(),t.state.sublimeMark=t.setBookmark(t.getCursor()),t.setCursor(e))},e.sublimeYank=function(t){null!=t.state.sublimeKilled&&t.replaceSelection(t.state.sublimeKilled,null,"paste")},e.showInCenter=function(t){var e=t.cursorCoords(null,"local");t.scrollTo(null,(e.top+e.bottom)/2-t.getScrollInfo().clientHeight/2)},e.findUnder=function(t){g(t,!0)},e.findUnderPrevious=function(t){g(t,!1)},e.findAllUnder=function(t){var e=d(t);if(e){for(var n=t.getSearchCursor(e.query),r=[],i=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=e.from.line&&n.from().ch<=e.from.ch&&i++;t.setSelections(r,i)}};var p=t.keyMap;p.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"},t.normalizeKeyMap(p.macSublime),p.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"},t.normalizeKeyMap(p.pcSublime);var b=p.default==p.macDefault;p.sublime=b?p.macSublime:p.pcSublime}(ou)})),n((function(t,e){!function(t){var e;function n(t){var n=this;function o(t){n.searchBox=t.querySelector(".ace_search_form"),n.replaceBox=t.querySelector(".ace_replace_form"),n.searchOptions=t.querySelector(".ace_search_options"),n.regExpOption=t.querySelector("[action=toggleRegexpMode]"),n.caseSensitiveOption=t.querySelector("[action=toggleCaseSensitive]"),n.wholeWordOption=t.querySelector("[action=toggleWholeWords]"),n.searchInput=n.searchBox.querySelector(".ace_search_field"),n.replaceInput=n.replaceBox.querySelector(".ace_search_field")}function s(){var t=n.element=y();w(),o(t),c(),t.addEventListener("mousedown",(function(t){setTimeout((function(){n.activeInput.focus()}),0),t.stopPropagation()})),t.addEventListener("click",(function(t){var e=(t.target||t.srcElement).getAttribute("action");e&&n[e]?n[e]():n.commands[e]&&n.commands[e](),t.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 c(){var t=n,e={"Ctrl-F|Cmd-F|Ctrl-H|Command-Alt-F":function(){var e=t.isReplace=!t.isReplace;t.replaceBox.style.display=e?"":"none",t[e?"replaceInput":"searchInput"].focus()},"Ctrl-G|Cmd-G":function(){t.findNext()},"Ctrl-Shift-G|Cmd-Shift-G":function(){t.findPrev()},Esc:function(){setTimeout((function(){t.hide()}))},Enter:function(){t.activeInput===t.replaceInput&&t.replace(),t.findNext()},"Shift-Enter":function(){t.activeInput===t.replaceInput&&t.replace(),t.findPrev()},"Alt-Enter":function(){t.activeInput===t.replaceInput&&t.replaceAll(),t.findAll()},Tab:function(){n.activeInput===n.replaceInput?n.searchInput.focus():n.replaceInput.focus()}};n.element.addEventListener("keydown",(function(t){Object.keys(e).some((function(n){var r=a(n,t);return r&&(t.stopPropagation(),t.preventDefault(),e[n](t)),r}))}))}function l(e,i,a){if(!e)return m(t),void v();var o,s,c,h,f,A,d,g=e,p=i,b=!0,w=p.caseSensitive,y=p.regExp,x=p.wholeWord;y&&(g=g.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")),x&&(g=w?g=RegExp("\\b"+g+"\\b"):RegExp("\\b"+g+"\\b","i")),y&&(g=RegExp(g)),m(t),u(t,g,w),v(),d=p.backwards?p.skipCurrent?"from":"to":p.skipCurrent?"to":"from",A=t.getCursor(d),h=(c=t.getSearchCursor(g,A,!w)).findNext.bind(c),f=c.findPrevious.bind(c),c.matches.bind(c),p.backwards&&!f()?(b=h())&&(t.setCursor(t.doc.size-1,0),l(e,i,a),o=!0):p.backwards||h()||(b=f())&&(t.setCursor(0,0),l(e,i,a),o=!0),s=!b&&n.searchInput.value,r(n.searchBox,"ace_nomatch",s),!o&&b&&a(c)}function u(t,e,n){var r=b(t),i=e;i&&i!==r.queryText&&(A(t,r,i,n),r.posFrom=r.posTo=t.getCursor())}function h(t){return t.replace(/\\([nrt\\])/g,(function(t,e){return"n"==e?"\n":"r"==e?"\r":"t"==e?"\t":"\\"==e?"\\":t}))}function f(t){var e=("object"==typeof t?t.toString():t).match(/^\/(.*)\/([a-z]*)$/);if(e)try{t=new RegExp(e[1],-1==e[2].indexOf("i")?"":"i")}catch(t){}else t=h(t);return("string"==typeof t?""==t:t.test(""))&&(t=/x^/),t}function A(t,e,n,r){e.queryText=n,e.query=f(n),t.removeOverlay(e.overlay,d(e.query,r)),e.overlay=g(e.query,d(e.query,r)),t.addOverlay(e.overlay),t.showMatchesOnScrollbar&&(e.annotate&&(e.annotate.clear(),e.annotate=null),e.annotate=t.showMatchesOnScrollbar(e.query,d(e.query,r)))}function d(t,e){return"string"==typeof t&&!e}function g(t,e){return"string"==typeof t?t=new RegExp(t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),e?"gi":"g"):t.global||(t=new RegExp(t.source,t.ignoreCase?"gi":"g")),{token:function(e){t.lastIndex=e.pos;var n=t.exec(e.string);if(n&&n.index==e.pos)return e.pos+=n[0].length||1,"searching";n?e.pos=n.index:e.skipToEnd()}}}function p(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function b(t){return t.state.search||(t.state.search=new p)}function m(t){t.operation((function(){var e=b(t);e.lastQuery=e.query,e.query&&(e.query=e.queryText=null,t.removeOverlay(e.overlay),e.annotate&&(e.annotate.clear(),e.annotate=null))}))}function v(){var e,r=n.searchInput.value,i=[];r&&(r=r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),e=n.caseSensitiveOption.checked?RegExp(r,"g"):RegExp(r,"gi"),n.wholeWordOption.checked&&(e=n.caseSensitiveOption.checked?RegExp("\\b"+r+"\\b","g"):RegExp("\\b"+r+"\\b","gi")),n.regExpOption.checked&&(e=RegExp(r,"gi")),i=t.getValue().match(e));var a=i?i.length:0,o=t.display.wrapper.parentElement.querySelector(".ace_search_counter");o&&(o.innerText=a+" matches found."),0===a&&t.setSelection({ch:0,line:0},{ch:0,line:0})}function w(){var t=document.createElement("style"),e=[".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("");t.setAttribute("data-name","js-searchbox"),t.textContent=e,document.head.appendChild(t)}function y(){var e,n=t.getWrapperElement(),r=document.createElement("div"),i=['"].join("");return r.innerHTML=i,e=r.firstChild,n.appendChild(e),e}s(),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(e,n){l(this.searchInput.value,{skipCurrent:e,backwards:n,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked},(function(e){var n=e.matches(!1,e.from());t.setSelection(n.from,n.to)}))},this.findNext=function(){this.find(!0,!1)},this.findPrev=function(){this.find(!0,!0)},this.findAll=function(){var e=this.searchInput.value,n=this.searchInput.value;r(this.searchBox,"ace_nomatch",n),t.showMatchesOnScrollbar&&t.showMatchesOnScrollbar(e),this.hide()},this.replace=function(){var e=t.getOption("readOnly"),n=!!t.getSelection();!e&&n&&t.replaceSelection(this.replaceInput.value,"start"),v()},this.replaceAndFindNext=function(){t.getOption("readOnly")||(this.replace(),this.findNext())},this.replaceAll=function(){var e,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")),!t.getOption("readOnly")&&t.getSelection()&&(n=t.getCursor(),e=(e=t.getValue()).replace(a,i),t.setValue(e),t.setCursor(n)),v()},this.toggleReplace=function(){var e=t.display.wrapper;"+"===e.parentElement.querySelector("[action=toggleReplace]").innerText?(e.parentElement.querySelector("[action=toggleReplace]").innerText="-",this.replaceBox.style.display="",this.isReplace=!0):(e.parentElement.querySelector("[action=toggleReplace]").innerText="+",this.replaceBox.style.display="none",this.isReplace=!1)},this.hide=function(){m(t);var n=t.getWrapperElement();e=null,n.removeChild(this.element),t.focus()},this.isVisible=function(){return""===this.element.style.display},this.show=function(t,e){this.element.style.display="",e||(this.replaceBox.style.display=e?"":"none"),this.isReplace=e,t&&(this.searchInput.value=t,this.find(!1,!1)),this.searchInput.focus(),this.searchInput.select()},this.isFocused=function(){var t=document.activeElement;return t===this.searchInput||t===this.replaceInput}}function r(t,e,n){t.classList[n?"add":"remove"](e)}function i(t,e){var n,r=function(){n=null,t()},i=function(t){n||(n=setTimeout(r,t||e))};return i.delay=function(t){n&&clearTimeout(n),n=setTimeout(r,t||e)},i.schedule=i,i.call=function(){this.cancel(),t()},i.cancel=function(){n&&clearTimeout(n),n=null},i.isPending=function(){return n},i}function a(t,e){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 o(t,e),n=t.split("|").some((function(t){var n;return n=t.split("-").some((function(t){var n;switch(t){case"Ctrl":n=e.ctrlKey;break;case"Shift":n=e.shiftKey;break;case"Alt":n=e.altKey;break;case"Cmd":n=e.metaKey;break;default:1===t.length?n=e.keyCode===t.charCodeAt(0):Object.keys(r).some((function(i){t.toUpperCase()===i&&(n=e.keyCode===r[i])}))}return!n})),!n})),n}function o(t,e){if("string"!=typeof t)throw Error("str should be string!");if("object"!=typeof e)throw Error("event should be object!")}t.defineOption("searchbox",!1,(function(r){r.addKeyMap({"Ctrl-F":function(){var t=r.display.wrapper;e&&t.parentElement.contains(e.searchBox)||(e=new n(r));var i=!1;t.parentElement.querySelector("[action=toggleReplace]")&&(i="-"===t.parentElement.querySelector("[action=toggleReplace]").innerText),e.show(r.getSelection(),i)},Esc:function(){if(!e||!e.isVisible())return t.Pass;e.hide(),"undefined"!=typeof event&&event.stopPropagation()},"Cmd-F":function(){var t=r.display.wrapper;e&&t.parentElement.contains(e.searchBox)||(e=new n(r));var i=!1;t.parentElement.querySelector("[action=toggleReplace]")&&(i="-"===t.parentElement.querySelector("[action=toggleReplace]").innerText),e.show(r.getSelection(),i)}})}))}(ou)}));n((function(t,e){!function(t){function e(t,e){function n(t){clearTimeout(r.doRedraw),r.doRedraw=setTimeout((function(){r.redraw()}),t)}this.cm=t,this.options=e,this.buttonHeight=e.scrollButtonHeight||t.getOption("scrollButtonHeight"),this.annotations=[],this.doRedraw=this.doUpdate=null,this.div=t.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;t.on("refresh",this.resizeHandler=function(){clearTimeout(r.doUpdate),r.doUpdate=setTimeout((function(){r.computeScale()&&n(20)}),100)}),t.on("markerAdded",this.resizeHandler),t.on("markerCleared",this.resizeHandler),!1!==e.listenForChanges&&t.on("changes",this.changeHandler=function(){n(250)})}t.defineExtension("annotateScrollbar",(function(t){return"string"==typeof t&&(t={className:t}),new e(this,t)})),t.defineOption("scrollButtonHeight",0),e.prototype.computeScale=function(){var t=this.cm,e=(t.getWrapperElement().clientHeight-t.display.barHeight-2*this.buttonHeight)/t.getScrollerElement().scrollHeight;if(e!=this.hScale)return this.hScale=e,!0},e.prototype.update=function(t){this.annotations=t,this.redraw()},e.prototype.redraw=function(t){!1!==t&&this.computeScale();var e=this.cm,n=this.hScale,r=document.createDocumentFragment(),i=this.annotations,a=e.getOption("lineWrapping"),o=a&&1.5*e.defaultTextHeight(),s=null,c=null;function l(t,n){if(s!=t.line){s=t.line,c=e.getLineHandle(t.line);var r=e.getLineHandleVisualStart(c);r!=c&&(s=e.getLineNumber(r),c=r)}return c.widgets&&c.widgets.length||a&&c.height>o?e.charCoords(t,"local")[n?"top":"bottom"]:e.heightAtLine(c,"local")+(n?0:c.height)}var u=e.lastLine();if(e.display.barWidth)for(var h,f=0;fu)){for(var d=h||l(A.from,!0)*n,g=l(A.to,!1)*n;fu)&&!((h=l(i[f+1].from,!0)*n)>g+.9);)g=l((A=i[++f]).to,!1)*n;if(g!=d){var p=Math.max(g-d,3),b=r.appendChild(document.createElement("div"));b.style.cssText="position: absolute; right: 0px; width: "+Math.max(e.display.barWidth-1,2)+"px; top: "+(d+this.buttonHeight)+"px; height: "+p+"px",b.className=this.options.className,A.id&&b.setAttribute("annotation-id",A.id)}}}this.div.textContent="",this.div.appendChild(r)},e.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)}}(ou)}));n((function(t,e){!function(t){function e(t,e,n,r){this.cm=t,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=t.annotateScrollbar(i),this.query=e,this.caseFold=n,this.gap={from:t.firstLine(),to:t.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var o=this;t.on("change",this.changeHandler=function(t,e){o.onChange(e)})}t.defineExtension("showMatchesOnScrollbar",(function(t,n,r){return"string"==typeof r&&(r={className:r}),r||(r={}),new e(this,t,n,r)}));var n=1e3;function r(t,e,n){return t<=e?t:Math.max(e,t+n)}e.prototype.findMatches=function(){if(this.gap){for(var e=0;e=this.gap.to);e++)a.to.line>=this.gap.from&&this.matches.splice(e--,1);for(var r=this.cm.getSearchCursor(this.query,t.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(e++,0,a),this.matches.length>i)break}this.gap=null}},e.prototype.onChange=function(e){var n=e.from.line,i=t.changeEnd(e).line,a=i-e.to.line;if(this.gap?(this.gap.from=Math.min(r(this.gap.from,n,a),e.from.line),this.gap.to=Math.max(r(this.gap.to,n,a),e.from.line)):this.gap={from:e.from.line,to:i+1},a)for(var o=0;ot.length)&&(e=t.length);for(var n=0,r=new Array(e);n>>0||(Mu(Iu,n)?16:10))}:_u;te({global:!0,forced:parseInt!=Fu},{parseInt:Fu});var Du=P.parseInt,Ou=s.RangeError;te({target:"String",proto:!0},{repeat:function(t){var e=wn(O(this)),n="",r=Le(t);if(r<0||r==1/0)throw Ou("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n}});var Qu=ni("String").repeat,Nu=String.prototype,Pu=function(t){var e=t.repeat;return"string"==typeof t||t===Nu||H(Nu,t)&&e===Nu.repeat?Qu:e},Ru={run:function(t){var e,n="
    ".concat(t,"
    ");this.tagParser.formatEngine=this.mdFormatEngine,n=n.replace(//g,"");var r=this.htmlParser.parseHtml(n);return r=this.paragraphStyleClear(r),_l(e=this.$dealHtml(r).replace(/\n{3,}/g,"\n\n\n").replace(/>/g,">").replace(/</g,"<").replace(/&/g,"&")).call(e,"\n")},$dealHtml:function(t){for(var e="",n=0;n0&&(e+=r.content.replace(/ /g," ").replace(/[\n]+/g,"\n").replace(/^[ \t\n]+\n\s*$/,"\n"))}return e},$handleTagObject:function(t,e){var n,r=e;t.attrs.class&&/(ch-icon-square|ch-icon-check)/.test(t.attrs.class)?Cu(n=t.attrs.class).call(n,"ch-icon-check")>=0?r+="[x]":r+="[ ]":t.attrs.class&&/cherry-code-preview-lang-select/.test(t.attrs.class)?r+="":r+=this.$dealTag(t);return r},$dealTag:function(t){var e=this,n="";return t.children&&(n=e.$dealHtml(t.children)),/(style|meta|link|script)/.test(t.name)?"":"code"===t.name||"pre"===t.name?e.tagParser.codeParser(t,e.$dealCodeTag(t),"pre"===t.name):"function"==typeof e.tagParser["".concat(t.name,"Parser")]?e.tagParser["".concat(t.name,"Parser")](t,n):n},$dealCodeTag:function(t){if(t.children.length<0)return"";for(var e="",n=0;n])+>/g,empty:Bu?Bu(null):{},parseTags:function(t){var e,n=this,r=0,i={type:"tag",name:"",voidElement:!1,attrs:{},children:[]};return t.replace(this.attrRE,(function(a){r%2?e=a:0===r?((n.lookup[a]||"/"===t.charAt(t.length-2))&&(i.voidElement=!0),i.name=a):i.attrs[e]=a.replace(/['"]/g,""),r+=1})),i},parseHtml:function(t,e){var n=this,r=e||{};r.components||(r.components=this.empty);var i,a=[],o=-1,s=[],c={},l=!1;return t.replace(this.tagRE,(function(e,u){if(l){if(e!==""))return;l=!1}var h,f="/"!==e.charAt(1),A=u+e.length,d=t.charAt(A);f&&(o+=1,"tag"===(i=n.parseTags(e)).type&&r.components[i.name]&&(i.type="component",l=!0),i.voidElement||l||!d||"<"===d||i.children.push({type:"text",content:Tu(t).call(t,A,Cu(t).call(t,"<",A))}),c[i.tagName]=i,0===o&&a.push(i),(h=s[o-1])&&h.children.push(i),s[o]=i),f&&!i.voidElement||(o-=1,!l&&"<"!==d&&d&&s[o]&&s[o].children.push({type:"text",content:Tu(t).call(t,A,Cu(t).call(t,"<",A))}))})),a}},tagParser:{formatEngine:{},pParser:function(t,e){var n=e;return/\n$/.test(n)?n:"".concat(n,"\n")},divParser:function(t,e){var n=e;return/\n$/.test(n)?n:"".concat(n,"\n")},spanParser:function(t,e){var n=e.replace(/\t/g,"").replace(/\n/g," ");return t.attrs&&t.attrs.style,n},codeParser:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.formatEngine.convertCode(e,n)},brParser:function(t,e){return this.formatEngine.convertBr(e,"\n")},imgParser:function(t,e){return t.attrs&&"tapd-graph"===t.attrs["data-control"]?this.formatEngine.convertGraph(t.attrs.title,t.attrs.src,t.attrs["data-origin-xml"],t):t.attrs&&t.attrs.src?this.formatEngine.convertImg(t.attrs.alt,t.attrs.src):void 0},videoParser:function(t,e){if(t.attrs&&t.attrs.src)return this.formatEngine.convertVideo(e,t.attrs.src,t.attrs.poster,t.attrs.title)},bParser:function(t,e){for(var n=e.split("\n"),r=[],i=0;i0?r:""}return""},bgColorAttrParser:function(t){var e=t.match(/background-color:\s*([^;]+?);/);if(e&&e[1]){var n="";if(/rgb\([ 0-9]+,[ 0-9]+,[ 0-9]+\)/.test(e[1])){var r,i,a,o,s,c=e[1].match(/rgb\(([ 0-9]+),([ 0-9]+),([ 0-9]+)\)/);if(c[1]&&c[2]&&c[3])c[1]=Du(_l(r=c[1]).call(r),10),c[2]=Du(_l(i=c[2]).call(i),10),c[3]=Du(_l(a=c[3]).call(a),10),n=Za(o=Za(s="#".concat(c[1].toString(16))).call(s,c[2].toString(16))).call(o,c[3].toString(16))}else{n=ku(e,2)[1]}return n}return""}}},mdFormatEngine:{convertColor:function(t,e){var n,r=_l(t).call(t);return!r||/\n/.test(r)?r:e?Za(n="!!".concat(e," ")).call(n,r,"!!"):r},convertSize:function(t,e){var n,r=_l(t).call(t);return!r||/\n/.test(r)?r:e?Za(n="!".concat(e," ")).call(n,r,"!"):r},convertBgColor:function(t,e){var n,r=_l(t).call(t);return!r||/\n/.test(r)?r:e?Za(n="!!!".concat(e," ")).call(n,r,"!!!"):r},convertBr:function(t,e){return t+e},convertCode:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return/\n/.test(t)||e?"```\n".concat(t.replace(/\n+$/,""),"\n```"):"`".concat(t.replace(/`/g,"\\`"),"`")},convertB:function(t){return/^\s*$/.test(t)?"":"**".concat(t,"**")},convertI:function(t){return/^\s*$/.test(t)?"":"*".concat(t,"*")},convertU:function(t){return/^\s*$/.test(t)?"":" /".concat(t,"/ ")},convertImg:function(t,e){var n,r=t&&t.length>0?t:"image";return Za(n="![".concat(r,"](")).call(n,e,")")},convertGraph:function(t,e,n,r){var i,a,o,s=t&&t.length>0?t:"graph",c="";if(r)try{var l,u=r.attrs;na(l=mn(u)).call(l,(function(t){var e;Object.prototype.hasOwnProperty.call(u,t)&&(Cu(t).call(t,"data-graph-")>=0&&u[t]&&(c+=Za(e=" ".concat(t,"=")).call(e,u[t])))}))}catch(t){}return Za(i=Za(a=Za(o="![".concat(s,"](")).call(o,e,"){data-control=tapd-graph data-origin-xml=")).call(a,n)).call(i,c,"}")},convertVideo:function(t,e,n,r){var i,a,o=r&&r.length>0?r:"video";return Za(i=Za(a="!video[".concat(o,"](")).call(a,e,"){poster=")).call(i,n,"}")},convertA:function(t,e){var n;if(t===e)return"".concat(t," ");var r=_l(t).call(t);return r?Za(n="[".concat(r,"](")).call(n,e,")"):r},convertSup:function(t){return"^".concat(_l(t).call(t).replace(/\^/g,"\\^"),"^")},convertSub:function(t){return"^^".concat(_l(t).call(t).replace(/\^\^/g,"\\^\\^"),"^^")},convertTd:function(t){return"~|".concat(_l(t).call(t).replace(/\n{1,}/g,"
    ").replace(/ /g,"~s~")," ~|")},convertTh:function(t){return/^\s*$/.test(t)?"":"~|".concat(_l(t).call(t).replace(/\n{1,}/g,"
    ")," ~|")},convertTr:function(t){return/^\s*$/.test(t)?"":"".concat(_l(t).call(t).replace(/\n/g,""),"\n")},convertThead:function(t){var e,n="".concat(t.replace(/[ \t]+/g,"").replace(/~\|~\|/g,"~|").replace(/~\|/g,"|"),"\n"),r=n.match(/\|/g).length-1;return Za(e="".concat(n,"|")).call(e,Pu(":-:|").call(":-:|",r),"\n")},convertTable:function(t){var e="\n".concat(t.replace(/[ \t]+/g,"").replace(/~\|~\|/g,"~|").replace(/~\|/g,"|"),"\n").replace(/\n{2,}/g,"\n").replace(/\n[ \t]+\n/g,"\n").replace(/~s~/g," ");if(!/\|:-:\|/.test(e)){var n,r,i=e.match(/^\n[^\n]+\n/)[0].match(/\|/g).length-1;e=Za(n=Za(r="\n|".concat(Pu(" |").call(" |",i),"\n|")).call(r,Pu(":-:|").call(":-:|",i))).call(n,e)}return e},convertLi:function(t){return"- ".concat(t.replace(/^\n/,"").replace(/\n+$/,"").replace(/\n+/g,"\n\t"),"\n")},convertUl:function(t){return"".concat(t,"\n")},convertOl:function(t){for(var e=t.split("\n"),n=1,r=0;r".concat(_l(t).call(t),"\n\n")},convertAddress:function(t){return">".concat(_l(t).call(t),"\n\n")}},paragraphStyleClear:function(t){for(var e=0;e1)for(var o=0;o=0?n:n>=0?n+r:Math.min(n,r)}function Yu(t){var e=t.previousElementSibling,n=t.nextElementSibling;if(!e){var r=getComputedStyle(t),i=t.getBoundingClientRect();if(!n)return{height:Math.max(Wu(r.marginTop)+i.height+Wu(r.marginBottom),0),offsetTop:t.offsetTop-Math.abs(Wu(r.marginTop))};var a=getComputedStyle(n),o=qu(r.marginBottom,a.marginTop);return{height:Math.max(Wu(r.marginTop)+i.height+o,0),offsetTop:t.offsetTop-Math.abs(Wu(r.marginTop))}}var s=getComputedStyle(t),c=t.getBoundingClientRect(),l=function(t,e){var n=Wu(t),r=Wu(e);return r<0?0:n>=0?Math.max(r-n,0):r}(getComputedStyle(e).marginBottom,s.marginTop);if(!n)return{height:Math.max(l+c.height+Wu(s.marginBottom),0),offsetTop:t.offsetTop-Math.abs(Wu(s.marginTop))};var u=getComputedStyle(n),h=qu(s.marginBottom,u.marginTop);return{height:Math.max(l+c.height+h,0),offsetTop:t.offsetTop-Math.abs(l)}}function Ju(t,e){if(!t||!t.tagName)return"";var n,r,i=document.createElement("div");return i.appendChild(t.cloneNode(!1)),n=i.innerHTML,e&&(r=Cu(n).call(n,">")+1,n=n.substring(0,r)+t.innerHTML+n.substring(r)),i=null,n}function Zu(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=document.createElement(t);(i.className=n,void 0!==r)&&na(e=mn(r)).call(e,(function(t){var e=r[t];if(au(t).call(t,"data-")){var n=t.replace(/^data-/,"");i.dataset[n]=e}else i.setAttribute(t,e)}));return i}var th={showSwitchBtnAfterPasteHtml:function(t,e,n,r,i){_l(r).call(r)!==_l(i).call(i)&&(this.init(t,e,n,r,i),this.setSelection(),this.bindListener(),this.initBubble(),this.showBubble(),"text"===this.getTypeFromLocalStorage()&&this.switchTextClick())},init:function(t,e,n,r,i){this.$cherry=t,this.html=r,this.md=i,this.codemirror=n,this.currentCursor=e,this.locale=t.locale},getTypeFromLocalStorage:function(){return"undefined"==typeof localStorage?"md":localStorage.getItem("cherry-paste-type")||"md"},setTypeToLocalStorage:function(t){"undefined"!=typeof localStorage&&localStorage.setItem("cherry-paste-type",t)},setSelection:function(){var t=$u({},this.codemirror.getCursor()),e=this.currentCursor;this.codemirror.setSelection(e,t)},bindListener:function(){var t=this;if(this.hasBindListener)return!0;this.hasBindListener=!0,this.codemirror.on("beforeSelectionChange",(function(e,n){t.hideBubble()})),this.codemirror.on("beforeChange",(function(e,n){t.hideBubble()})),this.codemirror.on("scroll",(function(e){t.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 t=this.bubbleDom.dataset.scrollTop-this.getScrollTop();this.bubbleDom.style.marginTop="".concat(t,"px")}},getScrollTop:function(){return this.codemirror.getScrollInfo().top},showBubble:function(){var t=this.getLastSelectedPosition().top;this.isHidden()&&(this.toggleBubbleDisplay(),this.bubbleDom.style.marginTop="0",this.bubbleDom.dataset.scrollTop=this.getScrollTop()),t>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(t,"px"),this.bubbleDom.style.bottom="")},initBubble:function(){var t,e;if(this.bubbleDom)return this.bubbleDom.setAttribute("data-type","md"),!0;var n=Zu("div","cherry-bubble cherry-bubble--centered cherry-switch-paste");n.style.display="none";var r=Zu("span","cherry-toolbar-button cherry-text-btn",{title:this.locale.pastePlain});r.innerText="TEXT";var i=Zu("span","cherry-toolbar-button cherry-md-btn",{title:this.locale.pasteMarkdown});i.innerText="Markdown";var a=Zu("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",ro(t=this.switchMDClick).call(t,this)),this.switchText.addEventListener("click",ro(e=this.switchTextClick).call(e,this))},switchMDClick:function(t){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(t){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 t=Gl(this.codemirror.getWrapperElement().getElementsByClassName("CodeMirror-selected")),e=0,n=0;if(t.length<=0)return this.hideBubble(),{};for(var r=0;rn&&a>=e&&(n=o),a>e&&(e=a)}return{top:n}}},eh=th;function nh(t,e,n,r){return t.addEventListener?(t.addEventListener(e,n,r),!0):t.attachEvent?t.attachEvent("on".concat(e),n):void(t["on".concat(e)]=n)}function rh(t,e,n,r){if(t.removeEventListener)t.removeEventListener(e,n,r);else{if(t.detachEvent)return t.detachEvent("on".concat(e),n);t["on".concat(e)]=null}}var ih=new Proxy({},{get:function(t,e,n){return function(){}}});var ah=new(function(){function t(){var e;fa(this,t),qa(this,"Events",{previewerClose:"previewer:close",previewerOpen:"previewer:open",editorClose:"editor:close",editorOpen:"editor:open",toolbarHide:"toolbar:hide",toolbarShow:"toolbar:show",cleanAllSubMenus:"cleanAllSubMenus"}),qa(this,"emitter",{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map((function(t){t(n)})),(r=e.get("*"))&&r.slice().map((function(e){e(t,n)}))}})}return ga(t,[{key:"on",value:function(t,e,n){var r;this.emitter.on(Za(r="".concat(t,":")).call(r,e),n)}},{key:"emit",value:function(t,e){var n;this.emitter.emit(Za(n="".concat(t,":")).call(n,e))}}]),t}());function oh(t){var e=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=ku(n.target.files,1)[0];t.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 o,s="";if("image"===e)s=Za(o="![".concat(i.name,"](")).call(o,n,")");else if("video"===e){var c;s=Za(c="!video[".concat(i.name,"](")).call(c,n,")")}else if("audio"===e){var l;s=Za(l="!audio[".concat(i.name,"](")).call(l,n,")")}else{var u;s=Za(u="[".concat(i.name,"](")).call(u,n,")")}t.editor.doc.replaceSelection(s)}}))})),i.click()}function sh(t){var e=[];return null!=t&&t.isBorder&&e.push("#B"),null!=t&&t.isShadow&&e.push("#S"),null!=t&&t.isRadius&&e.push("#R"),null!=t&&t.width&&e.push("#".concat(t.width)),null!=t&&t.height&&(t.width||e.push("#auto"),e.push("#".concat(t.height))),e.join(" ")}function ch(t,e,n){var r,i,a,o,s,c=null!==(r=null==e?void 0:e.name)&&void 0!==r?r:n.name,l="",u="";/video/i.test(n.type)&&(l="!video",u=null!=e&&e.poster?"{poster=".concat(e.poster,"}"):""),/audio/i.test(n.type)&&(l="!audio"),/image/i.test(n.type)&&(l="!");var h=l?sh(e):"";return Za(i=Za(a=Za(o=Za(s="".concat(l,"[")).call(s,c)).call(o,h,"](")).call(a,t,")")).call(i,u)}function lh(t,e){var n=mn(t);if(Yr){var r=Yr(t);e&&(r=ai(r).call(r,(function(e){return Ai(t,e).enumerable}))),n.push.apply(n,r)}return n}function uh(t){for(var e=1;e\\x00-\\x1f"\\(\\)]*)?'),wh=new RegExp("(?:\\/\\/)".concat(vh.source)),yh=new RegExp("^".concat(vh.source,"$")),xh=new RegExp("^".concat(wh.source,"$")),kh=/^([ \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 Ch(){var t,e=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=hh(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=hh(r,"g",!0),!1===e?{strict:n,loose:r}:hh({begin:"",content:Za(t="(?:".concat(n.begin+n.content+n.end,"|")).call(t,r.begin+r.content+r.end,")"),end:""},"g",!0)}function Bh(){var t={begin:/(?:^|\n)(\n*((?:>[\t ]*)*)(?:[^\S\n]*))(`{3,})([^`]*?)\n/,content:/([\w\W]*?)/,end:/[^\S\n]*\3[ \t]*(?=$|\n+)/,reg:new RegExp("")};return t.reg=new RegExp(t.begin.source+t.content.source+t.end.source,"g"),uh(uh({},t),{},{begin:t.begin.source,content:t.content.source,end:t.end.source})}function Th(t,e){var n=t||"Item 1\n Item 1.1\nItem 2";n=n.replace(/^\n+/,"").replace(/\n+$/,"");var r="1.";switch(e){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(t,e,n){var r,a,o,s=(null===(r=e.match(/[ \t]/g))||void 0===r?void 0:r.length)||0;return i[s]=i[s]?i[s]+1:1,Za(a=Za(o="".concat(e)).call(o,i[s],". ")).call(a,n)}))}else n=n.replace(/^(\s*)(\S[\s\S]*?)$/gm,"$1".concat(r," $2"));return n}function Eh(){var t={begin:/(?:^|\n)(\n*(?:[^\S\n]*)):::([^:][^\n]+?)\s*\n/,content:/([\w\W]*?)/,end:/\n[ \t]*:::[ \t]*(?=$|\n+)/};return t.reg=new RegExp(t.begin.source+t.content.source+t.end.source,"g"),t}function _h(){var t={begin:/(?:^|\n)(\n*(?:[^\S\n]*))\+\+\+([-]{0,1})\s+([^\n]+)\n/,content:/([\w\W]+?)/,end:/\n[ \t]*\+\+\+[ \t]*(?=$|\n+)/};return t.reg=new RegExp(t.begin.source+t.content.source+t.end.source,"g"),t}var Sh=/(\[[^\n]*?\]\(data:image\/[a-z]{1,10};base64,)([^)]+)\)/g,Lh=/(!\[[^\n]*?\]\([^)]+\)\{[^}]* data-xml=)([^}]+)\}/g,Ih=/(!\[[^\n]*?\]\(data:image\/[a-z]{1,10};base64,[^)]+\)\{data-type=drawio data-xml=[^}]+\})/g,Mh=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(Bh().reg,(function(t){return t.replace(/^.*$/gm,"/n")})).replace(/(`+)(.+?(?:\n.+?)*?)\1/g,(function(t){return t.replace(/[![\]()]/g,".")}))};function Fh(t){(function(t){var e=/^(\s*)([I一二三四五六七八九十]+)\.(\s+)/,n=/^(\s*)([I一二三四五六七八九十]+)\.(\s+)$/;if(t.getOption("disableInput"))return!1;for(var r=t.listSelections(),i=[],a=0;a0)){var g=Zu("span","cm-string ".concat(e),{title:l});g.textContent=l,n.noChange=!0,r.markText(A,d,{replacedWith:g,atomic:!0})}}}})),qa(this,"onKeyup",(function(t,e){var r=e.getCursor().line;n.previewer.highlightLine(r+1)})),qa(this,"onScroll",(function(t){if(ah.emit(n.instanceId,ah.Events.cleanAllSubMenus),n.disableScrollListener)n.disableScrollListener=!1;else{var e=t.getScrollerElement();if(e.scrollTop<=0)n.previewer.scrollToLineNum(0);else if(e.scrollTop+e.clientHeight>=e.scrollHeight-20)n.previewer.scrollToLineNum(null);else{var r=t.getScrollInfo().top,i=t.lineAtHeight(r,"local"),a=t.charCoords({line:i,ch:0},"local"),o=t.getLineHandle(i).height,s=100*(r-(a.bottom-o))/o/100;n.previewer.scrollToLineNum(i+1,s)}}})),qa(this,"onMouseDown",(function(t,e){ah.emit(n.instanceId,ah.Events.cleanAllSubMenus);var r=t.getCursor().line,i=Math.abs(e.y-t.getWrapperElement().getBoundingClientRect().y);n.previewer.scrollToLineNumWithOffset(r+1,i),n.toHalfWidth(t,e)})),qa(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:Fh},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=e.codemirror,i=nl(e,Dh);r&&cl(this.options.codemirror,r),cl(this.options,i),this.$cherry=this.options.$cherry,this.instanceId=this.$cherry.getInstanceId()}return ga(t,[{key:"formatFullWidthMark",value:function(){var t,e=this.editor,n=/[·¥、:“”【】()《》]/,r=e.getSearchCursor(n),i=r.findNext();for(na(t=e.getAllMarks()).call(t,(function(t){if("cm-fullWidth"===t.className){var r=JSON.parse(ll(pl(t).call(t))),i=e.getRange(r.from,r.to);n.test(i)||t.clear()}}));!1!==i;i=r.findNext()){var a,o=r.from();if(o){var s={line:o.line,ch:o.ch},c={line:o.line,ch:o.ch+1};0===ai(a=e.findMarks(s,c)).call(a,(function(t){return"cm-fullWidth"===t.className})).length&&e.markText(s,c,{className:"cm-fullWidth",title:"按住Ctrl/Cmd点击切换成半角(Hold down Ctrl/Cmd and click to switch to half-width)"})}}}},{key:"toHalfWidth",value:function(t,e){var n=e.target;if(n instanceof HTMLElement&&n.classList.contains("cm-fullWidth")&&(e.ctrlKey||e.metaKey)&&1===e.buttons){var r=n.getBoundingClientRect(),i=t.coordsChar({left:r.left,top:r.top}),a={line:i.line,ch:i.ch+1};t.setSelection(i,a),t.replaceSelection(n.innerText.replace("·","`").replace("¥","$").replace("、","/").replace(":",":").replace("“",'"').replace("”",'"').replace("【","[").replace("】","]").replace("(","(").replace(")",")").replace("《","<").replace("》",">"))}}},{key:"onPaste",value:function(t,e){var n=t.clipboardData;n?this.handlePaste(t,n,e):(n=window.clipboardData,this.handlePaste(t,n,e))}},{key:"handlePaste",value:function(t,e,n){var r=this;this.pasterHtml=!1;for(var i=e.items,a=e.types||[],o=n.getDoc(),s=0;s1&&void 0!==arguments[1]?arguments[1]:{},e);if(r.pasterHtml){var a=n.getCursor(),s=a.line,c=a.ch;n.setSelection({line:s,ch:c},{line:s,ch:c}),o.replaceSelection("\n".concat(i),"end")}else o.replaceSelection(i)}})),t.preventDefault()}()}var l=e.getData("text/plain"),u=e.getData("Text/Html");if(!u||!this.options.convertWhenPaste)return!0;var h=document.createElement("DIV");h.innerHTML=u,u=h.innerHTML;var f=Uu.run(u);if("string"==typeof f&&_l(f).call(f).length>0){this.pasterHtml=!0;var A=n.listSelections();if(n.getSelections().length<=1&&A[0]&&A[0].anchor){var d={};d.line=A[0].anchor.line,d.ch=A[0].anchor.ch,o.replaceSelection(f),eh.showSwitchBtnAfterPasteHtml(this.$cherry,d,n,l,f)}else o.replaceSelection(f);t.preventDefault()}h=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(t){var e=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=ou.fromTextArea(n,this.options.codemirror);r.addOverlay({name:"invisibles",token:function(t){var e,n=0,r=" "===t.peek();if(r){for(;r&&n0&&fo((function(){for(var n=function(n){var i=r[n],a=i.type||"";if(""===a||/^text/i.test(a))return"continue";e.options.fileUpload(i,(function(r){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof r){t.setSelection(t.getCursor());var o=ch(r,a,i),s=n>0?"\n".concat(o," "):"".concat(o," ");t.replaceSelection(s),e.dealSpecialWords()}}))},i=0;i0){if(e>=r.animation.destinationTop)return void(r.animation.timer=0);r.disableScrollListener=!0,r.editor.scrollTo(null,e+i)}else{if(!(n<0))return void(r.animation.timer=0);if(e<=r.animation.destinationTop||e<=0)return void(r.animation.timer=0);r.disableScrollListener=!0,r.editor.scrollTo(null,e-i)}e===r.editor.getScrollInfo().top||i>=Math.abs(n)?r.animation.timer=0:r.animation.timer=requestAnimationFrame(t)}))}}},{key:"scrollToLineNum",value:function(t,e,n){if(null!==t){var r=Math.max(0,t);this.jumpToLine(r,e,n),ih.log("滚动预览区域,左侧应scroll to ",r)}else this.jumpToLine(null)}},{key:"getEditorDom",value:function(){return this.options.editorDom}},{key:"addListener",value:function(t,e){this.editor.on(t,e)}},{key:"initWritingStyle",value:function(){var t,e,n=this.options.writingStyle,r="cherry-editor-writing-style--".concat(n),i=this.getEditorDom();na(t=ai(e=Gl(i.classList)).call(e,(function(t){return au(t).call(t,"cherry-editor-writing-style--")}))).call(t,(function(t){return i.classList.remove(t)})),"normal"!==n&&(i.classList.add(r),this.refreshWritingStatus())}},{key:"refreshWritingStatus",value:function(){var t,e,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",pl(t=Gl(document.head.childNodes)).call(t,(function(t){return t===i}))||document.head.appendChild(i);var a=i.sheet;if(na(e=Gl(Array(a.cssRules.length))).call(e,(function(){return a.deleteRule(0)})),"focus"===n){var o,s,c=this.getEditorDom().getBoundingClientRect(),l=this.editor.charCoords(this.editor.getCursor()),u=l.top,h=l.bottom,f=u-c.top,A=c.height-(h-c.top);a.insertRule(Za(o=".".concat(r,"::before { height: ")).call(o,f>0?f:0,"px; }"),0),a.insertRule(Za(s=".".concat(r,"::after { height: ")).call(s,A>0?A:0,"px; }"),0)}if("typewriter"===n){var d,g,p=this.editor.getScrollInfo().clientHeight/2;a.insertRule(Za(d=".".concat(r," .CodeMirror-lines::before { height: ")).call(d,p,"px; }"),0),a.insertRule(Za(g=".".concat(r," .CodeMirror-lines::after { height: ")).call(g,p,"px; }"),0),this.editor.scrollTo(null,this.editor.cursorCoords(null,"local").top-p)}}}},{key:"setWritingStyle",value:function(t){this.options.writingStyle=t,this.initWritingStyle()}}]),t}(),Qh=rr.findIndex,Nh="findIndex",Ph=!0;Nh in[]&&Array(1)[Nh]((function(){Ph=!1})),te({target:"Array",proto:!0,forced:Ph},{findIndex:function(t){return Qh(this,t,arguments.length>1?arguments[1]:void 0)}});var Rh=ni("Array").findIndex,Uh=Array.prototype,Hh=function(t){var e=t.findIndex;return t===Uh||H(Uh,t)&&e===Uh.findIndex?Rh:e},$h=Zr("splice"),jh=s.TypeError,Kh=Math.max,zh=Math.min;te({target:"Array",proto:!0,forced:!$h},{splice:function(t,e){var n,r,i,a,o,s,c=lt(this),l=Qe(c),u=Fe(t,l),h=arguments.length;if(0===h?n=r=0:1===h?(n=0,r=l-u):(n=h-2,r=zh(Kh(Le(e),0),l-u)),l+n-r>9007199254740991)throw jh("Maximum allowed length exceeded");for(i=tr(c,r),a=0;al-r+n;a--)delete c[a-1]}else if(n>r)for(a=l-r;a>u;a--)s=a+n-1,(o=a+r-1)in c?c[s]=c[o]:delete c[s];for(a=0;a1?arguments[1]:void 0)}});var tf=ni("Array").map,ef=Array.prototype,nf=function(t){var e=t.map;return t===ef||H(ef,t)&&e===ef.map?tf:e};function rf(t,e){var n,r,i,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return/^\n/.test(t)?a?(null!==(n=null===(r=t.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(e):"\n".concat(e):"\n\n".concat(e):e}function af(t,e){var n=(t.match(/\n/g)||[]).length;return""!==t&&(n-=2),n+e}var of=su;function sf(t,e){if(of(e))return e}function cf(t){return"undefined"!=typeof localStorage&&null!==localStorage.getItem("cherry-".concat(t))}function lf(){var t="false";return"undefined"!=typeof localStorage&&(t=localStorage.getItem("cherry-classicBr")),"true"===t}function uf(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e="default";if("undefined"!=typeof localStorage){var n=localStorage.getItem("cherry-theme");n&&(e=n)}return t?"theme__".concat(e):e}function hf(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=(e||uf()).replace(/^.*theme__/,""),r=" theme__".concat(n);t.wrapperDom.className=t.wrapperDom.className.replace(/ theme__[^ $]+?( |$)/g," ")+r,t.previewer.getDomContainer().className=t.previewer.getDomContainer().className.replace(/ theme__[^ $]+?( |$)/g," ")+r,function(t){"undefined"!=typeof localStorage&&localStorage.setItem("cherry-theme",t)}(n)}var ff=s.RangeError,Af=String.fromCharCode,df=String.fromCodePoint,gf=v([].join),pf=!!df&&1!=df.length;te({target:"String",stat:!0,arity:1,forced:pf},{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,i=0;r>i;){if(e=+arguments[i++],Fe(e,1114111)!==e)throw ff(e+" is not a valid code point");n[i]=e<65536?Af(e):Af(55296+((e-=65536)>>10),e%1024+56320)}return gf(n,"")}});var bf,mf,vf=P.String.fromCodePoint;function wf(t,e){var n=mn(t);if(Yr){var r=Yr(t);e&&(r=ai(r).call(r,(function(e){return Ai(t,e).enumerable}))),n.push.apply(n,r)}return n}function yf(t){for(var e=1;e":">","&":"&",'"':""","'":"'"},kf={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},Cf=yf(yf(yf(yf(yf(yf({},{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:"♦"}),Bf=mn(Cf),Tf=nf(Bf).call(Bf,(function(t){return Cf[t].replace(/^&(\w+);$/g,(function(t,e){return e.toLowerCase()}))})),Ef=function(t){return"string"!=typeof t||t.length<=0},_f=function(t){try{var e=vf(t);return!Ef(e)}catch(t){return!1}};var Sf=["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("|"),Lf=["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("|"),If=new RegExp(Za(bf=Za(mf="^(".concat(Sf,"|")).call(mf,Lf,"|")).call(bf,"br|img|hr",")( |$|/)"),"i");function Mf(t,e){return"string"!=typeof t?"":e?t.replace(/[<>&]/g,(function(t){return xf[t]||t})):t.replace(/[<>&"']/g,(function(t){return xf[t]||t}))}function Ff(t,e){if("string"!=typeof t)return"";var n=Df(t);return n=function(t){return"string"!=typeof t?"":t.replace(/&(\w+);?/g,(function(t,e){return kf[e]||t}))}(n),Mf(n,e)}function Df(t){return t.replace(/&#(\d+);?/g,(function(t,e){return Cf[e]||t}))}function Of(t){var e=function(t){return t.replace(/&#x([0-9a-f]+);?/gi,(function(t,e){var n=Du("0x".concat(e),16);try{return vf(n)}catch(e){return t}}))}(function(t){return t.replace(/&#(\d+);?/g,(function(t,e){try{return vf(e)}catch(e){return t}}))}(t)).match(/^\s*([\w\W]+?)(?=:)/i);if(!e)return!0;var n=["javascript","data"],r=e[1].replace(/[\s]/g,"");return-1===Cu(n).call(n,r.toLowerCase())}function Qf(t){return encodeURI(t).replace(/%25/g,"%")}function Nf(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var Pf=0,Rf=function(t){xa(n,Yh);var e=Nf(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{needCache:!1},i=r.needCache,a=r.defaultCache,o=void 0===a?{}:a;return fa(this,n),(t=e.call(this,{})).needCache=!!i,t.sign="",i&&(t.cache=o||{},t.cacheKey="~~C".concat(Pf),Pf+=1),t}return ga(n,[{key:"initBrReg",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.classicBr=cf("classicBr")?lf():t,this.removeBrAfterBlock=null,this.removeBrBeforeBlock=null,this.removeNewlinesBetweenTags=null}},{key:"$cleanParagraph",value:function(t){var e=t.replace(/^\n+/,"").replace(/\n+$/,"");return this.classicBr?e:this.joinRawHtml(e).replace(/\n/g,"
    ").replace(/\r/g,"\n")}},{key:"joinRawHtml",value:function(t){if(!this.removeBrAfterBlock){var e,n,r,i,a=null!==(e=null===(n=this.$engine.htmlWhiteListAppend)||void 0===n?void 0:n.split("|"))&&void 0!==e?e:[];a=ai(r=nf(a).call(a,(function(t){return/[a-z-]+/gi.test(t)?t:null}))).call(r,(function(t){return null!==t}));var o=Za(a).call(a,Sf).join("|");this.removeBrAfterBlock=new RegExp("<(".concat(o,")(>| [^>]*?>)[^\\S\\n]*?\\n"),"ig"),this.removeBrBeforeBlock=new RegExp("\\n[^\\S\\n]*?<\\/(".concat(o,")>[^\\S\\n]*?\\n"),"ig"),this.removeNewlinesBetweenTags=new RegExp(Za(i="<\\/(".concat(o,")>[^\\S\\n]*?\\n([^\\S\\n]*?)<(")).call(i,o,")(>| [^>]*?>)"),"ig")}return t.replace(this.removeBrAfterBlock,"<$1$2").replace(this.removeBrBeforeBlock,"").replace(this.removeNewlinesBetweenTags,"\r$2<$3$4")}},{key:"toHtml",value:function(t,e){return t}},{key:"makeHtml",value:function(t,e){return e(t).html}},{key:"afterMakeHtml",value:function(t){return this.restoreCache(t)}},{key:"isContainsCache",value:function(t,e){if(e){var r=/^(\s*~~C\d+I\w+\$\s*)+$/g.test(t),i=new RegExp("~~C\\d+I".concat(n.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,"\\w+\\$"),"g").test(t);return r&&!i}return new RegExp("~~C\\d+I(?!".concat(n.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")\\w+\\$"),"g").test(t)}},{key:"$splitHtmlByCache",value:function(t){var e=new RegExp("\\n*~~C\\d+I(?!".concat(n.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")\\w+\\$\\n?"),"g");return{caches:t.match(e),contents:t.split(e)}}},{key:"makeExcludingCached",value:function(t,e){for(var n=this.$splitHtmlByCache(t),r=n.caches,i=n.contents,a=nf(i).call(i,e),o="",s=0;s2&&void 0!==arguments[2]&&arguments[2],l=null!==(n=null===(r=e.match(/^\n+/))||void 0===r?void 0:r[0])&&void 0!==n?n:"",u=null!==(i=null===(a=e.match(/\n+$/))||void 0===a?void 0:a[0])&&void 0!==i?i:"";return c?rf(e,t):Za(o=Za(s="".concat(l)).call(s,t)).call(o,u)}},{key:"getLineCount",value:function(t){var e,r,i,a=t,o=null!==(e=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!==e?e:0;o=1===o?1:0,a=a.replace(/^\n+/g,"");var s=new RegExp("\n*~~C\\d+I(?:".concat(n.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")?\\w+?_L(\\d+)\\$"),"g"),c=0;return a=a.replace(s,(function(t,e){return c+=Du(e,10),t.replace(/^\n+/g,"")})),o+c+(a.match(/\n/g)||[]).length+1}},{key:"pushCache",value:function(t){var e,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(t);return this.cache[a]={content:t,using:!0},Za(e=Za(n="".concat(this.cacheKey,"I")).call(n,a,"_L")).call(e,i,"$")}}},{key:"popCache",value:function(t){if(this.needCache)return this.cache[t].content||""}},{key:"resetCache",value:function(){if(this.needCache){for(var t=0,e=mn(this.cache);t2&&void 0!==arguments[2]?arguments[2]:0;return this.sign=this.$engine.md5(t),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(t,e)}},{key:"mounted",value:function(){}},{key:"signWithCache",value:function(t){return!1}}]),n}();qa(Rf,"HOOK_TYPE",qh.PAR),qa(Rf,"IN_PARAGRAPH_CACHE_KEY_PREFIX","!"),qa(Rf,"IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX","\\!");var Uf=l((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Hf=Object.isExtensible,$f=l((function(){Hf(1)}))||Uf?function(t){return!!N(t)&&((!Uf||"ArrayBuffer"!=L(t))&&(!Hf||Hf(t)))}:Hf,jf=!l((function(){return Object.isExtensible(Object.preventExtensions({}))})),Kf=n((function(t){var e=qt.f,n=!1,r=gt("meta"),i=0,a=function(t){e(t,r,{value:{objectID:"O"+i++,weakData:{}}})},o=t.exports={enable:function(){o.enable=function(){},n=!0;var t=xn.f,e=v([].splice),i={};i[r]=1,t(i).length&&(xn.f=function(n){for(var i=t(n),a=0,o=i.length;aa;a++)if((s=p(t[a]))&&H(Gf,s))return s;return new Xf(!1)}r=Nl(t,i)}for(c=r.next;!(l=k(c,r)).done;){try{s=p(l.value)}catch(t){Sl(r,"throw",t)}if("object"==typeof s&&s&&H(Gf,s))return s}return new Xf(!1)},Wf=s.TypeError,qf=function(t,e){if(H(e,t))return t;throw Wf("Incorrect invocation")},Yf=qt.f,Jf=rr.forEach,Zf=qn.set,tA=qn.getterFor,eA=function(t,e,n){for(var r in e)n&&n.unsafe&&t[r]?t[r]=e[r]:In(t,r,e[r],n);return t},nA=wt("species"),rA=function(t){var e=U(t),n=qt.f;y&&e&&!e[nA]&&n(e,nA,{configurable:!0,get:function(){return this}})},iA=qt.f,aA=Kf.fastKey,oA=qn.set,sA=qn.getterFor,cA={getConstructor:function(t,e,n,r){var i=t((function(t,i){qf(t,a),oA(t,{type:e,index:rn(null),first:void 0,last:void 0,size:0}),y||(t.size=0),null!=i&&Vf(i,t[r],{that:t,AS_ENTRIES:n})})),a=i.prototype,o=sA(e),s=function(t,e,n){var r,i,a=o(t),s=c(t,e);return s?s.value=n:(a.last=s={index:i=aA(e,!0),key:e,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=s),r&&(r.next=s),y?a.size++:t.size++,"F"!==i&&(a.index[i]=s)),t},c=function(t,e){var n,r=o(t),i=aA(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==e)return n};return eA(a,{clear:function(){for(var t=o(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,y?t.size=0:this.size=0},delete:function(t){var e=this,n=o(e),r=c(e,t);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--:e.size--}return!!r},forEach:function(t){for(var e,n=o(this),r=Rt(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!c(this,t)}}),eA(a,n?{get:function(t){var e=c(this,t);return e&&e.value},set:function(t,e){return s(this,0===t?0:t,e)}}:{add:function(t){return s(this,t=0===t?0:t,t)}}),y&&iA(a,"size",{get:function(){return o(this).size}}),i},setStrong:function(t,e,n){var r=e+" Iterator",i=sA(e),a=sA(r);Hi(t,e,(function(t,e){oA(this,{type:r,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=a(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),rA(e)}};!function(t,e,n){var r,i=-1!==t.indexOf("Map"),a=-1!==t.indexOf("Weak"),o=i?"set":"add",c=s[t],u=c&&c.prototype,h={};if(y&&w(c)&&(a||u.forEach&&!l((function(){(new c).entries().next()})))){var f=(r=e((function(e,n){Zf(qf(e,f),{type:t,collection:new c}),null!=n&&Vf(n,e[o],{that:e,AS_ENTRIES:i})}))).prototype,A=tA(t);Jf(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"==t||"set"==t;!(t in u)||a&&"clear"==t||Yt(f,t,(function(n,r){var i=A(this).collection;if(!e&&a&&!N(n))return"get"==t&&void 0;var o=i[t](0===n?0:n,r);return e?this:o}))})),a||Yf(f,"size",{configurable:!0,get:function(){return A(this).collection.size}})}else r=n.getConstructor(e,t,i,o),Kf.enable();Rn(r,t,!1,!0),h[t]=r,te({global:!0,forced:!0},h),a||n.setStrong(r,t,i)}("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),cA);var lA=P.Map,uA=lA,hA=[].push;te({target:"Map",stat:!0,forced:!0},{from:function(t){var e,n,r,i,a=arguments.length,o=a>1?arguments[1]:void 0;return Te(this),(e=void 0!==o)&&et(o),null==t?new this:(n=[],e?(r=0,i=Rt(o,a>2?arguments[2]:void 0),Vf(t,(function(t){k(hA,n,i(t,r++))}))):Vf(t,hA,{that:n}),new this(n))}});te({target:"Map",stat:!0,forced:!0},{of:function(){return new this(ee(arguments))}});te({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var t,e=jt(this),n=et(e.delete),r=!0,i=0,a=arguments.length;i1?arguments[1]:void 0);return!Vf(n,(function(t,n,i){if(!r(n,t,e))return i()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var AA=wt("species"),dA=function(t,e){var n,r=jt(t).constructor;return void 0===r||null==(n=jt(r)[AA])?e:Te(n)};te({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(t){var e=jt(this),n=fA(e),r=Rt(t,arguments.length>1?arguments[1]:void 0),i=new(dA(e,U("Map"))),a=et(i.set);return Vf(n,(function(t,n){r(n,t,e)&&k(a,i,t,n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),i}}),te({target:"Map",proto:!0,real:!0,forced:!0},{find:function(t){var e=jt(this),n=fA(e),r=Rt(t,arguments.length>1?arguments[1]:void 0);return Vf(n,(function(t,n,i){if(r(n,t,e))return i(n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}}),te({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(t){var e=jt(this),n=fA(e),r=Rt(t,arguments.length>1?arguments[1]:void 0);return Vf(n,(function(t,n,i){if(r(n,t,e))return i(t)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}});var gA=v([].push);te({target:"Map",stat:!0,forced:!0},{groupBy:function(t,e){et(e);var n=Nl(t),r=new this,i=et(r.has),a=et(r.get),o=et(r.set);return Vf(n,(function(t){var n=e(t);k(i,r,n)?gA(k(a,r,n),t):k(o,r,n,[t])}),{IS_ITERATOR:!0}),r}});te({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(t){return Vf(fA(jt(this)),(function(e,n,r){if(function(t,e){return t===e||t!=t&&e!=e}(n,t))return r()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}}),te({target:"Map",stat:!0,forced:!0},{keyBy:function(t,e){var n=new this;et(e);var r=et(n.set);return Vf(t,(function(t){k(r,n,e(t),t)})),n}}),te({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(t){return Vf(fA(jt(this)),(function(e,n,r){if(n===t)return r(e)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}}),te({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(t){var e=jt(this),n=fA(e),r=Rt(t,arguments.length>1?arguments[1]:void 0),i=new(dA(e,U("Map"))),a=et(i.set);return Vf(n,(function(t,n){k(a,i,r(n,t,e),n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),i}}),te({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(t){var e=jt(this),n=fA(e),r=Rt(t,arguments.length>1?arguments[1]:void 0),i=new(dA(e,U("Map"))),a=et(i.set);return Vf(n,(function(t,n){k(a,i,t,r(n,t,e))}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),i}}),te({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(t){for(var e=jt(this),n=et(e.set),r=arguments.length,i=0;i1?arguments[1]:void 0);return Vf(n,(function(t,n,i){if(r(n,t,e))return i()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var bA=s.TypeError;te({target:"Map",proto:!0,real:!0,forced:!0},{update:function(t,e){var n=jt(this),r=et(n.get),i=et(n.has),a=et(n.set),o=arguments.length;et(e);var s=k(i,n,t);if(!s&&o<3)throw bA("Updating absent value");var c=s?k(r,n,t):et(o>2?arguments[2]:void 0)(t,n);return k(a,n,t,e(c,t,n)),n}});var mA=s.TypeError,vA=function(t,e){var n,r=jt(this),i=et(r.get),a=et(r.has),o=et(r.set),s=arguments.length>2?arguments[2]:void 0;if(!w(e)&&!w(s))throw mA("At least one callback required");return k(a,r,t)?(n=k(i,r,t),w(e)&&(n=e(n),k(o,r,t,n))):w(s)&&(n=s(),k(o,r,t,n)),n};te({target:"Map",proto:!0,real:!0,forced:!0},{upsert:vA}),te({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:vA});var wA=uA;var yA=hn,xA=no;function kA(t,e,n){return kA=function(){if("undefined"==typeof Reflect||!yA)return!1;if(yA.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(yA(Boolean,[],(function(){}))),!0}catch(t){return!1}}()?yA:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(xA(Function).apply(t,r));return n&&ya(i,n.prototype),i},kA.apply(null,arguments)}function CA(t){var e="function"==typeof wA?new wA:void 0;return CA=function(t){if(null===t||!function(t){var e;return-1!==tl(e=Function.toString.call(t)).call(e,"[native code]")}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return kA(t,arguments,Wa(this).constructor)}return n.prototype=va(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ya(n,t)},CA(t)}function BA(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var TA=function(t,e){if(!of(t)&&Ka(t)!==e.name.toLowerCase()||!of(t)&&"array"===e.name.toLowerCase())throw new TypeError("parameter given must be ".concat(e.name));return!0},EA=function(t,e){if(!(t instanceof e))throw new Error("the hook does not correctly inherit");return!0},_A=function(t){if("object"!==Ka(t))throw new Error("the hook must be a instance, not a class");return!0},SA=function(t){xa(n,CA(Error));var e=BA(n);function n(t,r){var i;return fa(this,n),(i=e.call(this,t)).name="Error",i.stack=i.buildStackTrace(r),i}return ga(n,[{key:"buildStackTrace",value:function(t){var e,n=t&&t.stack?t.stack:"";return Za(e="".concat(this.stack,"\nCaused By: ")).call(e,n)}}]),n}();function LA(t,e,n){var r,i;if(-1===t)ih.warn(Za(r=Za(i="Duplicate hook name [".concat(e.HOOK_NAME,"] found, hook [")).call(i,e.toString(),"] ")).call(r,isNaN(n)?"":"at index [".concat(n,"] "),"will not take effect."));else if(-2===t){var a;ih.warn(Za(a="Hook [".concat(e.toString(),"] ")).call(a,isNaN(n)?"":"at index [".concat(n,"] "),"is not a valid hook, and will not take effect."))}}function IA(t){return MA(t)||FA(t)}function MA(t){return Object.prototype.isPrototypeOf.call(Yh,t)}function FA(t){return Object.prototype.isPrototypeOf.call(Rf,t)}function DA(t){return IA(t)&&!0===(null==t?void 0:t.Cherry$$CUSTOM)}var OA=function(){function t(e,n,r){fa(this,t),this.$locale=r.locale,this.hookList={},this.hookNameList={},TA(e,Array),this.registerInternalHooks(e,n),this.registerCustomHooks(n.engine.customSyntax,n)}return ga(t,[{key:"registerInternalHooks",value:function(t,e){var n=this;na(t).call(t,(function(t,r){LA(n.register(t,e),t,r)}))}},{key:"registerCustomHooks",value:function(t,e){var n=this;if(t){var r=mn(t);na(r).call(r,(function(r){var i,a,o,s,c={},l=t[r];if(MA(l))a=l;else{if(!MA(s=null==(o=l)?void 0:o.syntaxClass)&&!FA(s))return;a=l.syntaxClass,c.force=Boolean(l.force),l.before?c.before=l.before:l.after&&(c.after=l.after)}IA(a)?(ha(a,"Cherry$$CUSTOM",{enumerable:!1,configurable:!1,writable:!1,value:!0}),i=n.register(a,e,c)):i=-2,LA(i,a,void 0)}))}}},{key:"getHookList",value:function(){return this.hookList}},{key:"getHookNameList",value:function(){return this.hookNameList}},{key:"register",value:function(t,e,n){var r,i,a=this,o=e.externals,s=e.engine,c=s.syntax;if(IA(t)){i=t.HOOK_NAME;var l=(null==c?void 0:c[i])||{};(r=new t({externals:o,config:l,globalConfig:s.global})).afterInit((function(){r.setLocale(a.$locale)}))}else{if("function"!=typeof t)return-2;if(!(r=t(e))||!IA(r.constructor))return-2;i=r.getName()}if(!1!==c[i]||DA(t)){var u=r.getType();if(this.hookNameList[i]){var h;if(!DA(t))return-1;if(!n.force)return-1;var f=this.hookNameList[i].type;this.hookList[f]=ai(h=this.hookList[f]).call(h,(function(t){return t.getName()!==i}))}if(this.hookNameList[i]={type:u},this.hookList[u]=this.hookList[u]||[],DA(t)){var A,d,g,p=-1;if(n.before){if(-1===(p=Hh(A=this.hookList[u]).call(A,(function(t){return t.getName()===n.before}))))ih.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 b,m;-1===(p=Hh(b=this.hookList[u]).call(b,(function(t){return t.getName()===n.after})))?ih.warn(Za(m="Cannot find hook named [".concat(n.after,"],\n custom hook [")).call(m,i,"] will append to the end of the hooks.")):p+=1}if(p<0||p>=this.hookList[u].length)this.hookList[u].push(r);else Vh(g=this.hookList[u]).call(g,p,0,r)}else this.hookList[u].push(r)}}}]),t}();function QA(t){if(void 0!==Ma&&null!=uu(t)||null!=t["@@iterator"])return vu(t)}function NA(t){return function(t){if(cu(t))return wu(t)}(t)||QA(t)||yu(t)||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 PA(t){return lu(t)||QA(t)||yu(t)||xu()}function RA(t,e){var n=mn(t);if(Yr){var r=Yr(t);e&&(r=ai(r).call(r,(function(e){return Ai(t,e).enumerable}))),n.push.apply(n,r)}return n}function UA(t){for(var e=1;e3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;if(!e)return t;e.lastIndex=0;for(var o=0,s=[];null!==(r=e.exec(t));){var c={begin:r.index,length:r[0].length};if(i&&r.index===o-a){var l,u=PA(r),h=u[0],f=Tu(u).call(u,2);s.push({begin:c.begin+a,length:c.length-a,replacedText:n.apply(void 0,Za(l=[Tu(h).call(h,a),""]).call(l,NA(f)))})}else s.push(UA(UA({},c),{},{replacedText:n.apply(void 0,NA(r))}));o=e.lastIndex,e.lastIndex-=a}return e.lastIndex=0,function(t,e){if(!e.length)return t;var n=[],r=0;return na(e).call(e,(function(i,a){n.push(Tu(t).call(t,r,i.begin)),n.push(i.replacedText),r=i.begin+i.length,a===e.length-1&&n.push(Tu(t).call(t,r))})),n.join("")}(t,s)}function $A(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var jA=function(t){xa(n,Yh);var e=$A(n);function n(){return fa(this,n),e.apply(this,arguments)}return ga(n,[{key:"toHtml",value:function(t,e,n,r){var i,a;return Za(i=Za(a="".concat(e,'')).call(i,r,"")}},{key:"makeHtml",value:function(t){return fh()?t.replace(this.RULE.reg,this.toHtml):HA(t,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var t={begin:fh()?"((?')).call(i,r,"
    ")}},{key:"makeHtml",value:function(t){return fh()?t.replace(this.RULE.reg,this.toHtml):HA(t,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var t={begin:fh()?"((?')).call(i,r,"")}},{key:"makeHtml",value:function(t){return this.test(t)?fh()?t.replace(this.RULE.reg,this.toHtml):HA(t,this.RULE.reg,this.toHtml,!0,1):t}},{key:"rule",value:function(){var t={begin:fh()?"((?0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config;return fa(this,n),t=e.call(this,{config:r}),r?(t.needWhitespace=!!r.needWhitespace,t):za(t)}return ga(n,[{key:"makeHtml",value:function(t){return this.test(t)?t.replace(this.RULE.reg,"$1$2"):t}},{key:"rule",value:function(){var t={};return(t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config.needWhitespace?WA(WA({},t),{},{begin:"(^|[\\s])\\~T\\~T",end:"\\~T\\~T(?=\\s|$)",content:"([\\w\\W]+?)"}):WA(WA({},t),{},{begin:"(^|[^\\\\])\\~T\\~T",end:"\\~T\\~T",content:"([\\w\\W]+?)"})).reg=new RegExp(t.begin+t.content+t.end,"g"),t}}]),n}();function JA(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}qa(YA,"HOOK_NAME","strikethrough");var ZA=function(t){xa(n,Yh);var e=JA(n);function n(){return fa(this,n),e.apply(this,arguments)}return ga(n,[{key:"toHtml",value:function(t,e,n){var r;return Za(r="".concat(e,"")).call(r,n,"")}},{key:"makeHtml",value:function(t){return fh()?t.replace(this.RULE.reg,this.toHtml):HA(t,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var t={begin:fh()?"((?")).call(r,n,"")}},{key:"makeHtml",value:function(t){return fh()?t.replace(this.RULE.reg,this.toHtml):HA(t,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var t={begin:fh()?"((?=h.reach);k+=x.value.length,x=x.next){var C=x.value;if(e.length>t.length)return;if(!(C instanceof a)){var B,T=1;if(m){if(!(B=o(y,k,t,b))||B.index>=t.length)break;var E=B.index,_=B.index+B[0].length,S=k;for(S+=x.value.length;E>=S;)S+=(x=x.next).value.length;if(k=S-=x.value.length,x.value instanceof a)continue;for(var L=x;L!==e.tail&&(S<_||"string"==typeof L.value);L=L.next)T++,S+=L.value.length;T--,C=t.slice(k,S),B.index-=k}else if(!(B=o(y,0,C,b)))continue;E=B.index;var I=B[0],M=C.slice(0,E),F=C.slice(E+I.length),D=k+C.length;h&&D>h.reach&&(h.reach=D);var O=x.prev;if(M&&(O=l(e,O,M),k+=M.length),u(e,O,T),x=l(e,O,new a(f,p?i.tokenize(I,p):I,v,I)),F&&l(e,x,F),T>1){var Q={cause:f+","+d,reach:D};s(t,e,n,x.prev,k,Q),h&&Q.reach>h.reach&&(h.reach=Q.reach)}}}}}}function c(){var t={value:null,prev:null,next:null},e={value:null,prev:t,next:null};t.next=e,this.head=t,this.tail=e,this.length=0}function l(t,e,n){var r=e.next,i={value:n,prev:e,next:r};return e.next=i,r.prev=i,t.length++,i}function u(t,e,n){for(var r=e.next,i=0;i"+a.content+""},!t.document)return t.addEventListener?(i.disableWorkerMessageHandler||t.addEventListener("message",(function(e){var n=JSON.parse(e.data),r=n.language,a=n.code,o=n.immediateClose;t.postMessage(i.highlight(a,i.languages[r],r)),o&&t.close()}),!1),i):i;var h=i.util.currentScript();function f(){i.manual||i.highlightAll()}if(h&&(i.filename=h.src,h.hasAttribute("data-manual")&&(i.manual=!0)),!i.manual){var A=document.readyState;"loading"===A||"interactive"===A&&h&&h.defer?document.addEventListener("DOMContentLoaded",f):window.requestAnimationFrame?window.requestAnimationFrame(f):window.setTimeout(f,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 rd(t,e){var n=mn(t);if(Yr){var r=Yr(t);e&&(r=ai(r).call(r,(function(e){return Ai(t,e).enumerable}))),n.push.apply(n,r)}return n}function id(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(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(t){function e(t,e){return t.replace(/<<(\d+)>>/g,(function(t,n){return"(?:"+e[+n]+")"}))}function n(t,n,r){return RegExp(e(t,n),r||"")}function r(t,e){for(var n=0;n>/g,(function(){return"(?:"+t+")"}));return t.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",o="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*{)",s="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 c(t){return"\\b(?:"+t.trim().replace(/ /g,"|")+")\\b"}var l=c(a),u=RegExp(c(i+" "+a+" "+o+" "+s)),h=c(a+" "+o+" "+s),f=c(i+" "+a+" "+s),A=r(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),d=r(/\((?:[^()]|<>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,p=e(/<<0>>(?:\s*<<1>>)?/.source,[g,A]),b=e(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[h,p]),m=/\[\s*(?:,\s*)*\]/.source,v=e(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[b,m]),w=e(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[A,d,m]),y=e(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),x=e(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[y,b,m]),k={keyword:u,punctuation:/[<>()?,.:[\]]/},C=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,B=/"(?:\\.|[^\\"\r\n])*"/.source,T=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[T]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[B]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[b]),lookbehind:!0,inside:k},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,x]),lookbehind:!0,inside:k},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,p]),lookbehind:!0,inside:k},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[b]),lookbehind:!0,inside:k},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[v]),lookbehind:!0,inside:k},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[x,f,g]),inside:k}],keyword:u,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:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),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:k},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[x,b]),inside:k,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[x]),lookbehind:!0,inside:k,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,A]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(A),alias:"class-name",inside:k}}},"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,p,g,x,u.source,d,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[p,d]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:u,"class-name":{pattern:RegExp(x),greedy:!0,inside:k},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 E=B+"|"+C,_=e(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[E]),S=r(e(/[^"'/()]|<<0>>|\(<>*\)/.source,[_]),2),L=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,I=e(/<<0>>(?:\s*\(<<1>>*\))?/.source,[b,S]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[L,I]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[L]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[S]),inside:t.languages.csharp},"class-name":{pattern:RegExp(b),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var M=/:[^}\r\n]+/.source,F=r(e(/[^"'/()]|<<0>>|\(<>*\)/.source,[_]),2),D=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[F,M]),O=r(e(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[E]),2),Q=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[O,M]);function N(e,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[e]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,M]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[D]),lookbehind:!0,greedy:!0,inside:N(D,F)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[Q]),lookbehind:!0,greedy:!0,inside:N(Q,O)}],char:{pattern:RegExp(C),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(Prism),function(t){var e=/\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 e.source}));t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,(function(){return e.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:e,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/}),t.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}}),t.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:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.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(t){"entity"===t.type&&(t.attributes.title=t.content.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(t,e){var n={};n["language-"+e]={pattern:/(^$)/i,lookbehind:!0,inside:Prism.languages[e]},n.cdata=/^$/i;var r={"included-cdata":{pattern://i,inside:n}};r["language-"+e]={pattern:/[\s\S]+/,inside:Prism.languages[e]};var i={};i[t]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return t})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(t,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\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:[e,"language-"+e],inside:Prism.languages[e]},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(t){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.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\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,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:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism),function(t){var e=[/\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:/\./}}}};t.languages.dart=t.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:e,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),t.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:t.languages.dart}}},string:/[\s\S]+/}},string:void 0}),t.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),t.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":r,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(Prism),function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var e={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(e).forEach((function(n){var r=e[n],i=[];/^\w+$/.test(n)||i.push(/\w+/.exec(n)[0]),"diff"===n&&i.push("bold"),t.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(t.languages.diff,"PREFIXES",{value:e})}(Prism),function(t){var e=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,n=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,(function(){return e})),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},o={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function s(t,e){return t=t.replace(//g,(function(){return i})).replace(//g,(function(){return n})),RegExp(t,e)}t.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:s(/(^(?: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:s(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:s(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:s(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:o,string:a,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:o},t.languages.dockerfile=t.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(t){var e=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+e.source+")?|"+e.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 o(t,e){e=(e||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,(function(){return r})).replace(/<>/g,(function(){return t}));return RegExp(n,e)}t.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:o(/\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:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(a),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:e,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml}(Prism),function(t){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(t){return t=t.replace(//g,(function(){return e})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+t+")")}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;t.languages.markdown=t.languages.extend("markup",{}),t.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:t.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:t.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:t.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(e){["url","bold","italic","strike","code-snippet"].forEach((function(n){e!==n&&(t.languages.markdown[e].inside.content.inside[n]=t.languages.markdown[n])}))})),t.hooks.add("after-tokenize",(function(t){"markdown"!==t.language&&"md"!==t.language||function t(e){if(e&&"string"!=typeof e)for(var n=0,r=e.length;n",quot:'"'},c=String.fromCodePoint||String.fromCharCode;t.languages.md=t.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(t){if("graphql"===t.language)for(var e=t.tokens.filter((function(t){return"string"!=typeof t&&"comment"!==t.type&&"scalar"!==t.type})),n=0;n0)){var s=f(/^\{$/,/^\}$/);if(-1===s)continue;for(var c=n;c=0&&A(l,"variable-input")}}}}function u(t){return e[n+t]}function h(t,e){e=e||0;for(var n=0;n|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),t.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var e={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:t.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete t.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;t.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+n+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:e,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:e,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:/\./}}}),t.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+n),greedy:!0,inside:{interpolation:e,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:e,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:e,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:e,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:e,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete t.languages.ruby.string,t.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)/}),t.languages.rb=t.languages.ruby}(Prism),function(t){var e={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"};t.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":e,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":e,"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(t){function e(t,e){return"___"+t.toUpperCase()+e+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,i,a){if(n.language===r){var o=n.tokenStack=[];n.code=n.code.replace(i,(function(t){if("function"==typeof a&&!a(t))return t;for(var i,s=o.length;-1!==n.code.indexOf(i=e(r,s));)++s;return o[s]=t,i})),n.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=t.languages[r];var i=0,a=Object.keys(n.tokenStack);!function o(s){for(var c=0;c=a.length);c++){var l=s[c];if("string"==typeof l||l.content&&"string"==typeof l.content){var u=a[i],h=n.tokenStack[u],f="string"==typeof l?l:l.content,A=e(r,u),d=f.indexOf(A);if(d>-1){++i;var g=f.substring(0,d),p=new t.Token(r,t.tokenize(h,n.grammar),"language-"+r,h),b=f.substring(d+A.length),m=[];g&&m.push.apply(m,o([g])),m.push(p),b&&m.push.apply(m,o([b])),"string"==typeof l?s.splice.apply(s,[c,1].concat(m)):l.content=m}}else l.content&&o(l.content)}return s}(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(t){t.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:t.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:t.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:t.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:t.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:t.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:t.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:t.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var e=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],n={},r=0,i=e.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:/\./}};t.languages.java=t.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:e,function:[t.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}}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.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:e,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 e.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(t){var e=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;t.languages.json5=t.languages.extend("json",{property:[{pattern:RegExp(e.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:e,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(t){var e=["$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="(?:"+(e=e.map((function(t){return t.replace("$","\\$")}))).join("|")+")\\b";t.languages.mongodb=t.languages.extend("javascript",{}),t.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)?$")}}}),t.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}},t.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(t){var e=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;t.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:e}},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:e}},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(t){var e=/\/\*[\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=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:e,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 o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},s=[{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:o}},{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:o}}];t.languages.insertBefore("php","variable",{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:e,string:s,"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"}}}}),t.hooks.add("before-tokenize",(function(e){if(/<\?/.test(e.code)){t.languages["markup-templating"].buildPlaceholders(e,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}})),t.hooks.add("after-tokenize",(function(e){t.languages["markup-templating"].tokenizePlaceholders(e,"php")}))}(Prism),function(t){var e=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;t.languages.protobuf=t.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}),t.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:e}},builtin:e,"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(t){for(var e=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,n=0;n<2;n++)e=e.replace(//g,(function(){return e}));e=e.replace(//g,(function(){return/[^\s\S]/.source})),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+e),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:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.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(t){t.languages.typescript=t.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/}),t.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 t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var e=t.languages.extend("typescript",{});delete e["class-name"],t.languages.typescript["class-name"].inside=e,t.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:e}}}}),t.languages.ts=t.languages.typescript}(Prism),function(t){var e=t.util.clone(t.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function a(t,e){return t=t.replace(//g,(function(){return n})).replace(//g,(function(){return r})).replace(//g,(function(){return i})),RegExp(t,e)}i=a(i).source,t.languages.jsx=t.languages.extend("markup",e),t.languages.jsx.tag.pattern=a(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=e.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:a(//.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:a(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var o=function(t){return t?"string"==typeof t?t:"string"==typeof t.content?t.content:t.content.map(o).join(""):""},s=function(e){for(var n=[],r=0;r0&&n[n.length-1].tagName===o(i.content[0].content[1])&&n.pop():"/>"===i.content[i.content.length-1].content||n.push({tagName:o(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 c=o(i);r0&&("string"==typeof e[r-1]||"plain-text"===e[r-1].type)&&(c=o(e[r-1])+c,e.splice(r-1,1),r--),e[r]=new t.Token("plain-text",c,null,c)}i.content&&"string"!=typeof i.content&&s(i.content)}};t.hooks.add("after-tokenize",(function(t){"jsx"!==t.language&&"tsx"!==t.language||s(t.tokens)}))}(Prism),function(t){var e=t.util.clone(t.languages.typescript);t.languages.tsx=t.languages.extend("jsx",e),delete t.languages.tsx.parameter,delete t.languages.tsx["literal-property"];var n=t.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(Prism),function(t){t.languages.sass=t.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete t.languages.sass.atrule;var e=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];t.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:e,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:e,operator:n,important:t.languages.sass.important}}}),delete t.languages.sass.property,delete t.languages.sass.important,t.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(t){var e="\\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("\\$"+e),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("(\\{)"+e),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})/};t.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;|&]|[<>]\\()"+e),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("\\$?"+e),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=t.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,o=0;o]=?/,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(t){t.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:/[()]/},nd.manual=!0;var ad={figure:"figure"},od=function(t){xa(n,Rf);var e=id(n);function n(t){var r;t.externals;var i,a=t.config;(fa(this,n),r=e.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=nf(i=mn(a.customRenderer)).call(i,(function(t){return t.toLowerCase()})),r.customParser=function(t){for(var e=1;e40&&(this.codeCache.length=0),!1)}},{key:"parseCustomLanguage",value:function(t,e,n){var r,i,a,o,s,c=this.customParser[t];if(!c||"function"!=typeof c.render)return!1;var l=c.render(e,n.sign,this.$engine,this.mermaid);if(!l)return!1;var u=ad[c.constructor.TYPE]||"div";return Za(r=Za(i=Za(a=Za(o=Za(s="<".concat(u,' data-sign="')).call(s,n.sign,'" data-type="')).call(o,t,'" data-lines="')).call(a,n.lines,'">')).call(i,l,"")}},{key:"fillTag",value:function(t){var e=[];return nf(t).call(t,(function(t){if(!t)return"";for(var n=t;e.length;){var r,i=e.pop();n=Za(r="".concat(i)).call(r,n)}var a=n.match(/|<\/span>/g),o=0;if(!a)return n;for(;a.length;){var s=a.pop();/<\/span>/.test(s)?o+=1:o?o-=1:e.unshift(s.match(//)[0])}for(var c=0;c");return n}))}},{key:"renderLineNumber",value:function(t){if(!this.lineNumber)return t;var e=t.split("\n");return e.pop(),e=this.fillTag(e),''.concat(e.join('\n'),"")}},{key:"isInternalCustomLangCovered",value:function(t){var e;return-1!==Cu(e=this.customLang).call(e,t)}},{key:"computeLines",value:function(t,e,n){var r=e,i=this.getLineCount(t,r);return{sign:this.$engine.md5(t.replace(/^\n+/,"")+i),lines:i}}},{key:"appendMermaid",value:function(t,e){var n=t,r=e;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(t,e){var n,r;return Za(n=Za(r='')).call(n,t,"")}},{key:"renderCodeBlock",value:function(t,e,n,r){var i,a,o,s,c,l,u,h=t,f=e;return this.customHighlighter?h=this.customHighlighter(h,f):(f&&nd.languages[f]||(f="javascript"),h=nd.highlight(h,nd.languages[f],f),h=this.renderLineNumber(h)),h=Za(i=Za(a=Za(o=Za(s=Za(c=Za(l=Za(u='\n
    ')).call(i,this.wrapCode(h,f),"
    \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(t){var e=this;return this.indentedCodeBlock?this.$recoverCodeInIndent(t).replace(this.$getIndentedCodeReg(),(function(t,n){var r,i,a=(t.match(/\n/g)||[]).length,o=e.$engine.md5(t),s=Za(r=Za(i='
    ')).call(r,Mf(n.replace(/\n( {4}|\t)/g,"\n")),"
    ");return rf(t,e.pushCache(s,o,a))})):t}},{key:"$replaceCodeInIndent",value:function(t){return this.indentedCodeBlock?t.replace(this.$getIndentedCodeReg(),(function(t){return t.replace(/`/g,"~~~IndentCode")})):t}},{key:"$recoverCodeInIndent",value:function(t){return this.indentedCodeBlock?t.replace(this.$getIndentedCodeReg(),(function(t){return t.replace(/~~~IndentCode/g,"`")})):t}},{key:"beforeMakeHtml",value:function(t,e,n){var r=this,i=t;return i=(i=this.$replaceCodeInIndent(i)).replace(this.RULE.reg,(function(t,e,n,i,a,o){var s,c,l;function u(t){if(n){var e=new RegExp("^\n*",""),r=t.match(e)[0];t=r+n+t.replace(e,(function(t){return""}))}return t}var h=o,f=r.computeLines(t,e,o),A=f.sign,d=f.lines,g=r.$codeCache(A);if(g&&""!==g)return u(r.getCacheWithSpace(r.pushCache(g,A,d),t));h=(h=(h=r.$recoverCodeInIndent(h)).replace(/~D/g,"$")).replace(/~T/g,"~");var p=null!==(s=null==e||null===(c=e.match(/[ ]/g))||void 0===c?void 0:c.length)&&void 0!==s?s:0;if(p>0){var b=new RegExp("(^|\\n)[ ]{1,".concat(p,"}"),"g");h=h.replace(b,"$1")}if(n){var m=new RegExp("(^|\\n)".concat(n),"g");h=h.replace(m,"$1")}var v=_l(a).call(a);if(/^(math|katex|latex)$/i.test(v)&&!r.isInternalCustomLangCovered(v)){var w,y=t.match(/^\s*/g);return Za(w="".concat(y,"~D~D\n")).call(w,h,"~D~D")}var x=ku(r.appendMermaid(h,v),2);return h=x[0],v=x[1],-1!==Cu(l=r.customLang).call(l,v.toLowerCase())&&(g=r.parseCustomLanguage(v,h,{lines:d,sign:A}))&&""!==g?(r.$codeCache(A,g),r.getCacheWithSpace(r.pushCache(g,A,d),t)):(h=h.replace(/~X/g,"\\`"),g=(g=r.renderCodeBlock(h,v,A,d)).replace(/\\/g,"\\\\"),g=r.$codeCache(A,g),u(r.getCacheWithSpace(r.pushCache(g,A,d),t)))})),i=i.replace(Ch(!0),(function(t){var e;return nf(e=t.split("|")).call(e,(function(t){return r.makeInlineCode(t)})).join("|").replace(/`/g,"\\`")})),i=this.makeInlineCode(i),i=this.$getIndentCodeBlock(i)}},{key:"makeInlineCode",value:function(t){var e=this,r=t;return this.INLINE_CODE_REGEX.test(r)&&(r=(r=r.replace(/\\`/g,"~~not~inlineCode")).replace(this.INLINE_CODE_REGEX,(function(t,r,i){if("`"===_l(i).call(i))return t;var a=i.replace(/~~not~inlineCode/g,"\\`");a=(a=e.$replaceSpecialChar(a)).replace(/\\/g,"\\\\");var o="".concat(Mf(a),""),s=e.$engine.md5(o);return n.inlineCodeCache[s]=o,"~~CODE".concat(s,"$")})),r=r.replace(/~~not~inlineCode/g,"\\`")),r}},{key:"makeHtml",value:function(t){return t}},{key:"$replaceSpecialChar",value:function(t){var e=t.replace(/~Q/g,"\\~");return e=(e=(e=(e=e.replace(/~Y/g,"\\!")).replace(/~Z/g,"\\#")).replace(/~&/g,"\\&")).replace(/~K/g,"\\/")}},{key:"rule",value:function(){return Bh()}},{key:"mounted",value:function(t){}}]),n}();function sd(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}qa(od,"HOOK_NAME","codeBlock"),qa(od,"inlineCodeCache",{});var cd=function(t){xa(n,Rf);var e=sd(n);function n(){return fa(this,n),e.apply(this,arguments)}return ga(n,[{key:"makeHtml",value:function(t){return t}},{key:"afterMakeHtml",value:function(t){var e=t;return mn(od.inlineCodeCache).length>0&&(e=e.replace(/~~CODE([0-9a-zA-Z]+)\$/g,(function(t,e){return od.inlineCodeCache[e]})),od.inlineCodeCache={}),e}},{key:"rule",value:function(){var t={begin:"(`+)[ ]*",end:"[ ]*\\1",content:"(.+?(?:\\n.+?)*?)"};return t.reg=hh(t,"g"),t}}]),n}();qa(cd,"HOOK_NAME","inlineCode");var ld=n((function(t){!function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(t,e){return t<>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&n.rotl(t,8)|4278255360&n.rotl(t,24);for(var e=0;e0;t--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(t){for(var e=[],n=0,r=0;n>>5]|=t[n]<<24-r%32;return e},wordsToBytes:function(t){for(var e=[],n=0;n<32*t.length;n+=8)e.push(t[n>>>5]>>>24-n%32&255);return e},bytesToHex:function(t){for(var e=[],n=0;n>>4).toString(16)),e.push((15&t[n]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],n=0;n>>6*(3-a)&63)):n.push("=");return n.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,i=0;r>>6-2*i);return n}};t.exports=n}()})),ud={utf8:{stringToBytes:function(t){return ud.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(ud.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],n=0;n>>24)|4278255360&(s[A]<<24|s[A]>>>8);s[c>>>5]|=128<>>9<<4)]=c;var d=a._ff,g=a._gg,p=a._hh,b=a._ii;for(A=0;A>>0,u=u+v>>>0,h=h+w>>>0,f=f+y>>>0}return e.endian([l,u,h,f])};a._ff=function(t,e,n,r,i,a,o){var s=t+(e&n|~e&r)+(i>>>0)+o;return(s<>>32-a)+e},a._gg=function(t,e,n,r,i,a,o){var s=t+(e&r|n&~r)+(i>>>0)+o;return(s<>>32-a)+e},a._hh=function(t,e,n,r,i,a,o){var s=t+(e^n^r)+(i>>>0)+o;return(s<>>32-a)+e},a._ii=function(t,e,n,r,i,a,o){var s=t+(n^(e|~r))+(i>>>0)+o;return(s<>>32-a)+e},a._blocksize=16,a._digestsize=16,t.exports=function(t,n){if(null==t)throw new Error("Illegal argument "+t);var r=e.wordsToBytes(a(t,n));return n&&n.asBytes?r:n&&n.asString?i.bytesToString(r):e.bytesToHex(r)}}()})),gd={},pd=/^cherry-inner:\/\/([0-9a-f]+)$/i;var bd=function(){function t(){fa(this,t)}return ga(t,null,[{key:"isInnerLink",value:function(t){return pd.test(t)}},{key:"set",value:function(t){var e=dd(t);return gd[e]=t,"cherry-inner://".concat(e)}},{key:"get",value:function(t){var e,n=ku(null!==(e=t.match(pd))&&void 0!==e?e:[],2)[1];if(n)return gd[n]}},{key:"replace",value:function(t,e){var n,r=ku(null!==(n=t.match(pd))&&void 0!==n?n:[],2)[1];if(r)return gd[r]=e,t}},{key:"restoreAll",value:function(e){var n=e.replace(/cherry-inner:\/\/([0-9a-f]+)/gi,(function(e){return t.get(e)||e}));return n}},{key:"clear",value:function(){gd={}}}]),t}();function md(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var vd=function(t){xa(n,Yh);var e=md(n);function n(t){var r,i=t.config,a=t.globalConfig;return fa(this,n),(r=e.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 ga(n,[{key:"checkBrackets",value:function(t){for(var e=[],n="[".concat(t,"]"),r=function(t){return 1&Tu(n).call(n,0,t).match(/\\*$/)[0].length},i=n.length-1;n[i]&&(i!==n.length-1||!r(i));i--)if("]"!==n[i]||r(i)||e.push("]"),"["===n[i]&&!r(i)&&(e.pop(),!e.length))return{isValid:!0,coreText:Tu(n).call(n,i+1,n.length-1),extraLeadingChar:Tu(n).call(n,0,i)};return{isValid:!1,coreText:t,extraLeadingChar:""}}},{key:"toHtml",value:function(t,e,n,r,i,a,o){var s=void 0===r?"ref":"url",c="";if("ref"===s)return t;if("url"===s){var l,u=this.checkBrackets(n),h=u.isValid,f=u.coreText,A=u.extraLeadingChar;if(!h)return t;c=i&&""!==_l(i).call(i)?' title="'.concat(Mf(i.replace(/["']/g,"")),'"'):"",o?c+=' target="'.concat(o.replace(/{target\s*=\s*(.*?)}/,"$1"),'"'):this.target&&(c+=" ".concat(this.target));var d,g,p,b,m=_l(r).call(r).replace(/~1D/g,"~D"),v=f.replace(/~1D/g,"~D");return Of(m)?(m=Qf(m=this.urlProcessor(m,"link")),Za(d=Za(g=Za(p=Za(b="".concat(e+A,'")).call(d,v,"")):Za(l="".concat(e+A,"")).call(l,n,"")}return t}},{key:"toStdMarkdown",value:function(t){return t}},{key:"makeHtml",value:function(t){var e,n,r=t.replace(this.RULE.reg,(function(t){return t.replace(/~D/g,"~1D")}));fh()?r=r.replace(this.RULE.reg,ro(e=this.toHtml).call(e,this)):r=HA(r,this.RULE.reg,ro(n=this.toHtml).call(n,this),!0,1);return r=r.replace(this.RULE.reg,(function(t){return t.replace(/~1D/g,"~D")})),r}},{key:"rule",value:function(){var t={begin:fh()?"((?0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config;return fa(this,n),t=e.call(this,{config:r}),r?(t.allowWhitespace=!!r.allowWhitespace,t):za(t)}return ga(n,[{key:"makeHtml",value:function(t,e){var n=function(t,n,r,i){var a,o,s,c=r.length%2==1?"em":"strong",l=Math.floor(r.length/2),u=Pu("").call("",l),h=Pu("").call("",l);return"em"===c&&(u+="",h="".concat(h)),Za(a=Za(o=Za(s="".concat(n)).call(s,u)).call(o,e(i).html.replace(/_/g,"~U"))).call(a,h)},r=t;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(t,n,r,i,a,o){var s,c,l;if(""===_l(i).call(i))return t;var u=r.length%2==1?"em":"strong",h=Math.floor(r.length/2),f=Pu("").call("",h),A=Pu("").call("",h),d=e(i).html;return"em"===u&&(f+="",A="".concat(A)),Za(s=Za(c=Za(l="".concat(n)).call(l,f)).call(c,d)).call(s,A)})),r.replace(/~U/g,"_")}},{key:"test",value:function(t,e){return this.RULE[e].reg&&this.RULE[e].reg.test(t)}},{key:"rule",value:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config,e=!!t&&!!t.allowWhitespace,n=function(t,e){var n,r,i,a="[^".concat(e,"\\s]");return t?"(?:.*?)(?:(?:\\n.*?)*?)":Za(n=Za(r=Za(i="(".concat(a,"|")).call(i,a,"(.*?(\n")).call(r,a,".*)*)")).call(n,a,")")},r={begin:"(^|[^\\\\])([*]+)",content:"(".concat(n(e,"*"),")"),end:"\\2"},i={begin:"(^|".concat(ph,")(_+)"),content:"(".concat(n(e,"_"),")"),end:"\\2(?=".concat(ph,"|$)")};return r.reg=hh(r,"g"),i.reg=hh(i,"g"),{asterisk:r,underscore:i}}}]),n}();function xd(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}qa(yd,"HOOK_NAME","fontEmphasis");var kd=function(t){xa(n,Rf);var e=xd(n);function n(t){var r;return fa(this,n),(r=e.call(this)).initBrReg(t.globalConfig.classicBr),r}return ga(n,[{key:"makeHtml",value:function(t,e){var n=this;return this.test(t)?t.replace(this.RULE.reg,(function(t,r,i){var a;if(n.isContainsCache(t,!0))return t;var o,s=function(t){var r,i,a,o,s,c;if(""===_l(t).call(t))return"";var l=e(t),u=l.sign,h=l.html,f="p";new RegExp("<(".concat(Sf,")[^>]*>"),"i").test(h)&&(f="div");var A=n.getLineCount(t,t);return Za(r=Za(i=Za(a=Za(o=Za(s=Za(c="<".concat(f,' data-sign="')).call(c,u)).call(s,A,'" data-type="')).call(o,f,'" data-lines="')).call(a,A,'">')).call(i,n.$cleanParagraph(h),"")};return n.isContainsCache(i)?n.makeExcludingCached(Za(o="".concat(r)).call(o,i),s):s(Za(a="".concat(r)).call(a,i))})):t}},{key:"rule",value:function(){var t={begin:"(?:^|\\n)(\\n*)",end:"(?=\\s*$|\\n\\n)",content:"([\\s\\S]+?)"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}]),n}();qa(kd,"HOOK_NAME","normalParagraph");te({target:"Reflect",stat:!0},{get:function t(e,n){var r,i,a=arguments.length<3?e:arguments[2];return jt(e)===a?e[n]:(r=Lt.f(e,n))?function(t){return void 0!==t&&(ht(t,"value")||ht(t,"writable"))}(r)?r.value:void 0===r.get?void 0:k(r.get,a):N(i=ki(e))?t(i,n,a):void 0}});var Cd=P.Reflect.get,Bd=fi;function Td(){return Td="undefined"!=typeof Reflect&&Cd?Cd:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Wa(t)););return t}(t,e);if(r){var i=Bd(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},Td.apply(this,arguments)}function Ed(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var _d="atx",Sd="setext",Ld=/[\s\-_]/,Id=/[A-Za-z]/,Md=/[0-9]/,Fd=function(t){xa(n,Rf);var e=Ed(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0,externals:void 0};r.externals;var i=r.config;return fa(this,n),(t=e.call(this,{needCache:!0})).strict=!i||!!i.strict,t.RULE=t.rule(),t.headerIDCache=[],t.headerIDCounter={},t.config=i||{},t}return ga(n,[{key:"$parseTitleText",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"string"!=typeof t?"":t.replace(/<.*?>/g,"").replace(/</g,"<").replace(/>/g,">")}},{key:"$generateId",value:function(t){for(var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t.length,r="",i=0;i255)try{r+=encodeURIComponent(a)}catch(t){}}return r}},{key:"generateIDNoDup",value:function(t){var e,n=t.replace(/</g,"<").replace(/>/g,">"),r=this.$generateId(n,!0),i=Cu(e=this.headerIDCache).call(e,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(t,e,n,r){var i,a,o,s,c,l,u,h=r(_l(t).call(t)),f=h.html,A=f.match(/\s+\{#([A-Za-z0-9-]+)\}$/);null!==A&&(f=f.substring(0,A.index),u=ku(A,2)[1]);var d=this.$parseTitleText(f);if(!u){u=this.generateIDNoDup(d.replace(/~fn#([0-9]+)#/g,""))}var g="safe_".concat(u),p=this.$engine.md5(Za(i=Za(a=Za(o="".concat(e,"-")).call(o,h.sign,"-")).call(a,u,"-")).call(i,n));return{html:[Za(s=Za(c=Za(l="'),this.$getAnchor(u),"".concat(f),"")].join(""),sign:"".concat(p)}}},{key:"$getAnchor",value:function(t){return"none"===(this.config.anchorStyle||"default")?"":'')}},{key:"beforeMakeHtml",value:function(t){var e=this,n=t;return this.test(n,_d)&&(n=n.replace(this.RULE[_d].reg,(function(t,n,r,i){return""===_l(i).call(i)?t:e.getCacheWithSpace(e.pushCache(t),t,!0)}))),this.test(n,Sd)&&(n=n.replace(this.RULE[Sd].reg,(function(t,n,r){return""===_l(r).call(r)||e.isContainsCache(r)?t:e.getCacheWithSpace(e.pushCache(t),t,!0)}))),n}},{key:"makeHtml",value:function(t,e){var n=this,r=this.restoreCache(t);return this.test(r,_d)&&(r=r.replace(this.RULE[_d].reg,(function(t,r,i,a){var o=af(r,n.getLineCount(t.replace(/^\n+/,""))),s=a.replace(/\s+#+\s*$/,""),c=n.$wrapHeader(s,i.length,o,e),l=c.html,u=c.sign;return n.getCacheWithSpace(n.pushCache(l,u,o),t,!0)}))),this.test(r,Sd)&&(r=r.replace(this.RULE[Sd].reg,(function(t,r,i,a){if(n.isContainsCache(i))return t;var o=af(r,n.getLineCount(t.replace(/^\n+/,""))),s="-"===a[0]?2:1,c=n.$wrapHeader(i,s,o,e),l=c.html,u=c.sign;return n.getCacheWithSpace(n.pushCache(l,u,o),t,!0)}))),r}},{key:"afterMakeHtml",value:function(t){var e=Td(Wa(n.prototype),"afterMakeHtml",this).call(this,t);return this.headerIDCache=[],this.headerIDCounter={},e}},{key:"test",value:function(t,e){return this.RULE[e].reg&&this.RULE[e].reg.test(t)}},{key:"rule",value:function(){var t={begin:"(?:^|\\n)(\\n*)",content:["(?:\\h*","(.+)",")\\n","(?:\\h*","([=]+|[-]+)",")"].join(""),end:"(?=$|\\n)"};t.reg=hh(t,"g",!0);var e={begin:"(?:^|\\n)(\\n*)(?:\\h*(#{1,6}))",content:"(.+?)",end:"(?=$|\\n)"};return this.strict&&(e.begin+="(?=\\h+)"),e.reg=hh(e,"g",!0),{setext:t,atx:e}}}]),n}();function Dd(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}qa(Fd,"HOOK_NAME","header");var Od=function(t){xa(n,Yh);var e=Dd(n);function n(){return fa(this,n),e.apply(this,arguments)}return ga(n,[{key:"rule",value:function(){return{begin:"",content:"",end:"",reg:new RegExp("")}}},{key:"beforeMakeHtml",value:function(t){return t.replace(/\\\n/g,"\\ \n")}},{key:"afterMakeHtml",value:function(t){var e=t.replace(/~Q/g,"~");return e=(e=(e=(e=(e=e.replace(/~X/g,"`")).replace(/~Y/g,"!")).replace(/~Z/g,"#")).replace(/~&/g,"&")).replace(/~K/g,"/")}}]),n}();qa(Od,"HOOK_NAME","transfer");var Qd=s.TypeError,Nd=function(t){return function(e,n,r,i){et(n);var a=lt(e),o=F(a),s=Qe(a),c=t?s-1:0,l=t?-1:1;if(r<2)for(;;){if(c in o){i=o[c],c+=l;break}if(c+=l,t?c<0:s<=c)throw Qd("Reduce of empty array with no initial value")}for(;t?c>=0:s>c;c+=l)c in o&&(i=n(i,o[c],c,a));return i}},Pd={left:Nd(!1),right:Nd(!0)},Rd="process"==L(s.process),Ud=Pd.left,Hd=Wi("reduce");te({target:"Array",proto:!0,forced:!Hd||!Rd&&G>79&&G<83},{reduce:function(t){var e=arguments.length;return Ud(this,t,e,e>1?arguments[1]:void 0)}});var $d=ni("Array").reduce,jd=Array.prototype,Kd=function(t){var e=t.reduce;return t===jd||H(jd,t)&&e===jd.reduce?$d:e};function zd(t,e){var n=mn(t);if(Yr){var r=Yr(t);e&&(r=ai(r).call(r,(function(e){return Ai(t,e).enumerable}))),n.push.apply(n,r)}return n}function Xd(t){for(var e=1;e')).call(i,y,"");return{html:Za(c="".concat(x)).call(c,w.html),sign:b+w.sign}}},{key:"$testHeadEmpty",value:function(t){var e=t.replace(/ /g,"").replace(/\s/g,"").replace(/(~CTH\$|~CTHU|~CTHL|~CTHR|~CTHC)/g,"");return(null==e?void 0:e.length)>0}},{key:"$renderTable",value:function(t,e,n,r){var i,a,o,s,c=this.$testHeadEmpty(e)?Za(i="~CTHD".concat(e,"~CTHD$~CTBD")).call(i,n,"~CTBD$"):"~CTBD".concat(n,"~CTBD$"),l=this.$engine.md5(c),u=c.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(e,n,r){var i="":' align="'.concat(t[r],'">')})).replace(/\\\|/g,"|");return{html:Za(a=Za(o=Za(s='
    \n ')).call(a,u,"
    "),sign:l}}},{key:"makeHtml",value:function(t,e){var n=this,r=t;return this.test(r,Wd)&&(r=r.replace(this.RULE[Wd].reg,(function(t,r){var i,a=n.getLineCount(t,r),o=nf(i=_l(t).call(t).split(/\n/)).call(i,(function(t){var e;return _l(e=String(t)).call(e)})),s=n.$parseTable(o,e,a),c=s.html,l=s.sign;return n.getCacheWithSpace(n.pushCache(c,l,a),t)}))),this.test(r,Vd)&&(r=r.replace(this.RULE[Vd].reg,(function(t,r){var i,a=n.getLineCount(t,r),o=nf(i=_l(t).call(t).split(/\n/)).call(i,(function(t){var e;return _l(e=String(t)).call(e)})),s=n.$parseTable(o,e,a),c=s.html,l=s.sign;return n.getCacheWithSpace(n.pushCache(c,l,a),t)}))),r}},{key:"test",value:function(t,e){return this.RULE[e].reg&&this.RULE[e].reg.test(t)}},{key:"rule",value:function(){return Ch()}}]),n}();function Yd(){return"object"===("undefined"==typeof window?"undefined":Ka(window))}function Jd(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}qa(qd,"HOOK_NAME","table");var Zd=function(t){xa(n,Rf);var e=Jd(n);function n(t){var r;return fa(this,n),(r=e.call(this,{needCache:!0})).classicBr=cf("classicBr")?lf():t.globalConfig.classicBr,r}return ga(n,[{key:"beforeMakeHtml",value:function(t){var e=this;return this.test(t)?t.replace(this.RULE.reg,(function(t,n,r){var i,a;if(0===r)return t;var o,s,c=null!==(i=null===(a=n.match(/\n/g))||void 0===a?void 0:a.length)&&void 0!==i?i:0,l="br".concat(c),u="";Yd()?u=e.classicBr?Za(o=''):Za(s='

     

    '):u=e.classicBr?"":"
    ";var h=e.pushCache(u,l,c);return"\n\n".concat(h,"\n")})):t}},{key:"makeHtml",value:function(t,e){return t}},{key:"rule",value:function(){var t={begin:"(?:\\n)",end:"",content:"((?:\\h*\\n){2,})"};return t.reg=hh(t,"g",!0),t}}]),n}();function tg(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}qa(Zd,"HOOK_NAME","br");var eg=function(t){xa(n,Rf);var e=tg(n);function n(){return fa(this,n),e.call(this,{needCache:!0})}return ga(n,[{key:"beforeMakeHtml",value:function(t){var e=this;return t.replace(this.RULE.reg,(function(t,n){var r,i=(n.match(/\n/g)||[]).length+1,a="hr".concat(i);return rf(t,e.pushCache(Za(r='
    '),a))}))}},{key:"makeHtml",value:function(t,e){return t}},{key:"rule",value:function(){var t={begin:"(?:^|\\n)(\\n*)[ ]*",end:"(?=$|\\n)",content:"((?:-[ \\t]*){3,}|(?:\\*[ \\t]*){3,}|(?:_[ \\t]*){3,})"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}]),n}();qa(eg,"HOOK_NAME","hr");var ng={processExtendAttributesInAlt:function(t){var e=t.match(/#([0-9]+(px|em|pt|pc|in|mm|cm|ex|%)|auto)/g);if(!e)return"";var n="",r=ku(e,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(t){var e=this.$getAlignment(t),n="",r=t.match(/#(border|shadow|radius|B|S|R)/g);if(r)for(var i=0;i')).call(f,Ff(r||""),"");return Za(m="".concat(n)).call(m,s.videoWrapper?s.videoWrapper(i):C)}return e},sg=function(t){xa(n,Yh);var e=ag(n);function n(t){var r,i=t.config,a=t.globalConfig;return fa(this,n),(r=e.call(this,null)).urlProcessor=a.urlProcessor,r.extendMedia={tag:["video","audio"],replacer:{video:function(t,e,n,r,o,s){return og("video",t,e,n,r,o,s,i,a)},audio:function(t,e,n,r,o,s){return og("audio",t,e,n,r,o,s,i,a)}}},r.RULE=r.rule(r.extendMedia),r}return ga(n,[{key:"toHtml",value:function(t,e,n,r,i,a,o){var s=void 0===r?"ref":"url",c="";if("ref"===s)return t;if("url"===s){var l,u,h,f,A,d,g,p,b=rg.processExtendAttributesInAlt(n),m=rg.processExtendStyleInAlt(n),v=m.extendStyles,w=m.extendClasses;v&&(v=' style="'.concat(v,'" ')),w&&(w=' class="'.concat(w,'" ')),c=i&&""!==_l(i).call(i)?' title="'.concat(Ff(i.replace(/["']/g,"")),'"'):"";var y,x="src",k=this.$engine.$cherry.options;if(k.callback&&k.callback.beforeImageMounted){var C=k.callback.beforeImageMounted(x,r);x=C.srcProp||x,y=C.src||r}var B=o?o.replace(/[{}]/g,"").replace(/([^=\s]+)=([^\s]+)/g,'$1="$2"').replace(/&/g,"&"):"";return Za(l=Za(u=Za(h=Za(f=Za(A=Za(d=Za(g=Za(p="".concat(e,"')).call(h,Ff(n||")}return t}},{key:"toMediaHtml",value:function(t,e,n,r,i,a,o,s,c){var l,u;if(!this.extendMedia.replacer[n])return t;for(var h=arguments.length,f=new Array(h>9?h-9:0),A=9;A-1?"ul":"ol",e.listStyle=function(t){return/^[a-z]/.test(t)?"lower-greek":/^[一二三四五六七八九十]/.test(t)?"cjk-ideographic":/^I/.test(t)?"upper-roman":/^\+/.test(t)?"circle":/^\*/.test(t)?"square":"default"}(r),e.start=Number(r.replace(".",""))?Number(r.replace(".","")):1,a})):(e.type="blank",t)}var dg=ga((function t(){fa(this,t),this.index=0,this.space=0,this.type="",this.start=1,this.listStyle="",this.strs=[],this.children=[],this.lines=0})),gg=function(t){xa(n,Rf);var e=ug(n);function n(t){var r,i=t.config;return fa(this,n),(r=e.call(this,{needCache:!0})).config=i||{},r.tree=[],r.emptyLines=0,r.indentSpace=Math.max(r.config.indentSpace,2),r}return ga(n,[{key:"addNode",value:function(t,e,n,r){"blank"===t.type?this.tree[r].strs.push(t.strs[0]):(this.tree[n].children.push(e),this.tree[e]=lg(lg({},t),{},{parent:n}))}},{key:"buildTree",value:function(t,e){var n=t.split("\n");this.tree=[],n.unshift("");for(var r=t.match(/\n*$/g)[0].length,i=0;ia.space;)o-=1;var s=a.space,c=this.tree[o].space;s".concat(c.strs.join("
    "),"

    ");c.lines+=o.getLineCount(c.strs.join("\n"));var h=c.children.length?o.renderTree(n):"";t.lines+=c.lines,s+=c.lines;return/<\/span>/.test(u)&&(l.class+=" check-list-item"),Za(r=Za(i=Za(a="".concat(e,"")).call(i,u)).call(r,h,"")}),"");return void 0===t.parent&&(c["data-lines"]=0===t.index?s+this.emptyLines:s,c["data-sign"]=this.sign),e[0]&&"ol"===n&&(c.start=this.tree[e[0]].start),c.class="cherry-list__".concat(this.tree[e[0]].listStyle),Za(r=Za(i=Za(a="<".concat(n)).call(a,hg(c),">")).call(i,l,"")}},{key:"renderTree",value:function(t){var e=this,n=0,r=this.tree[t],i=r.children;return Kd(i).call(i,(function(t,a,o){if(0===o)return t;if(e.tree[i[o]].type===e.tree[i[o-1]].type)return t;var s=e.renderSubTree(r,Tu(i).call(i,n,o),e.tree[i[o-1]].type);return n=o,t+s}),"")+(i.length?this.renderSubTree(r,Tu(i).call(i,n,i.length),this.tree[i[i.length-1]].type):"")}},{key:"toHtml",value:function(t,e){var n,r;this.emptyLines=null!==(n=null===(r=t.match(/^\n\n/))||void 0===r?void 0:r.length)&&void 0!==n?n:0;var i=t.replace(/~0$/g,"").replace(/^\n+/,"");this.buildTree(function(t){return t.replace(/^((?:|[\t ]+)[*+-]\s+)\[(\s|x)\]/gm,(function(t,e,n){var r,i=/\s/.test(n)?'':'';return Za(r="".concat(e)).call(r,i)}))}(i),e);var a=this.renderTree(0);return this.pushCache(a,this.sign,this.$getLineNum(t))}},{key:"$getLineNum",value:function(t){var e,n,r,i,a=null!==(e=null===(n=t.match(/^\n\n/))||void 0===n?void 0:n.length)&&void 0!==e?e:0;return null!==(r=null===(i=t.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(t,e){var n=this,r="".concat(t,"~0");return this.test(r)&&(r=r.replace(this.RULE.reg,(function(t){return n.getCacheWithSpace(n.checkCache(t,e,n.$getLineNum(t)),t)}))),r=r.replace(/~0$/g,"")}},{key:"rule",value:function(){var t={begin:"(?:^|\n)(\n*)(([ ]{0,3}([*+-]|\\d+[.]|[a-z]\\.|[I一二三四五六七八九十]+\\.)[ \\t]+)",content:"([^\\r]+?)",end:"(~0|\\n{2,}(?=\\S)(?![ \\t]*(?:[*+-]|\\d+[.]|[a-z]\\.|[I一二三四五六七八九十]+\\.)[ \\t]+)))"};return t.reg=new RegExp(t.begin+t.content+t.end,"gm"),t}}]),n}();function pg(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}function bg(t){for(var e=/^(\t|[ ]{1,4})/,n=t,r=0;e.test(n);)n=n.replace(/^(\t|[ ]{1,4})/g,""),r+=1;return r}qa(gg,"HOOK_NAME","list");var mg=function(t){xa(n,Rf);var e=pg(n);function n(){return fa(this,n),e.call(this,{needCache:!0})}return ga(n,[{key:"handleMatch",value:function(t,e){var n=this;return t.replace(this.RULE.reg,(function(t,r,i){for(var a,o,s=e(i),c=s.sign,l=s.html,u=n.signWithCache(l)||c,h=n.getLineCount(t,r),f=/^(([ \t]{0,3}([*+-]|\d+[.]|[a-z]\.|[I一二三四五六七八九十]+\.)[ \t]+)([^\r]+?)($|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.]|[a-z]\.|[I一二三四五六七八九十]+\.)[ \t]+)))/,A=bg(r),d=l.split("\n"),g=/^[>\s]+/,p=/>/g,b=1,m=0,v=Za(a=Za(o='
    '),w=0;d[w];w++){if(0!==w){var y=bg(d[w]);if(y<=A&&f.test(d[w]))break;A=y}var x=d[w].replace(g,(function(t){var e=t.match(p);return m=e&&e.length>b?e.length:b,""}));if(b===m&&0!==w&&(v+="
    "),b").call("
    ",m-b),b=m;v+=x}return v+=Pu("
    ").call("
    ",b),n.getCacheWithSpace(n.pushCache(v,u,h),t)}))}},{key:"makeHtml",value:function(t,e){return this.test(t)?this.handleMatch(t,e):t}},{key:"rule",value:function(){var t={begin:"(?:^|\\n)(\\s*)",content:["(",">(?:.+?\\n(?![*+-]|\\d+[.]|[a-z]\\.))(?:>*.+?\\n(?![*+-]|\\d+[.]|[a-z]\\.))*(?:>*.+?)","|",">(?:.+?)",")"].join(""),end:"(?=(\\n)|$)"};return t.reg=hh(t,"g"),t}}]),n}();function vg(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}qa(mg,"HOOK_NAME","blockquote");var wg=function(t){xa(n,Yh);var e=vg(n);function n(t){var r,i=t.config,a=t.globalConfig;return fa(this,n),(r=e.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 ga(n,[{key:"isLinkInHtmlAttribute",value:function(t,e,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(t))&&!(r.index>e+n);)if(r.index=e+n)return!0;return!1}},{key:"isLinkInATag",value:function(t,e,n){for(var r,i=/[^<]*<\/a>/g;null!==(r=i.exec(t))&&!(r.index>e+n);)if(r.index=e+n)return!0;return!1}},{key:"makeHtml",value:function(t,e){var n=this;return this.test(t)&&(bh.test(t)||vh.test(t))?t.replace(this.RULE.reg,(function(t,e,r,i,a,o,s){var c,l,u;if(n.isLinkInHtmlAttribute(s,o,r.length+i.length)||n.isLinkInATag(s,o,r.length+i.length))return t;var h=r.toLowerCase(),f="",A="",d=!0;if(("<"!==e&&"<"!==e||">"!==a&&">"!==a)&&(f=e,A=a,d=!1),""===_l(i).call(i)||!d&&""===h&&!/www\./.test(i))return t;switch(h){case"javascript:":return t;case"mailto:":var g,p,b,m,v,w;return mh.test(i)?Za(g=Za(p=Za(b=Za(m=Za(v="".concat(f,'")).call(p,Ff(i),"")).call(g,A):t;case"":var y,x,k,C,B,T,E,_,S,L;if(f===A||!d)return mh.test(i)?Za(y=Za(x=Za(k=Za(C=Za(B="".concat(f,'")).call(x,Ff(i),"")).call(y,A):yh.test(i)?Za(T=Za(E="".concat(f)).call(E,n.renderLink("//".concat(i),i))).call(T,A):t;if(d)return mh.test(i)?Za(_=Za(S=Za(L='")).call(_,Ff(i),""):xh.test(i)||yh.test(i)?n.renderLink(i):t;default:return xh.test(i)?Za(c=Za(l="".concat(f)).call(l,n.renderLink(Za(u="".concat(h)).call(u,i)))).call(c,A):t}return t})):t}},{key:"rule",value:function(){var t,e={begin:"(?)"};return e.reg=hh(e,"ig"),e}},{key:"renderLink",value:function(t,e){var n,r,i,a,o=e;if("string"!=typeof o)if(this.enableShortLink){var s,c=t.replace(/^https?:\/\//i,"");o=Za(s="".concat(c.substring(0,this.shortLinkLength))).call(s,c.length>this.shortLinkLength?"...":"")}else o=t;var l=this.urlProcessor(t,"autolink");return Za(n=Za(r=Za(i=Za(a="')).call(n,Ff(o).replace(/_/g,"\\_"),"")}}]),n}();function yg(){var t,e,n,r;Yd()&&(this.katex=null!==(t=null===(e=this.externals)||void 0===e?void 0:e.katex)&&void 0!==t?t:window.katex,this.MathJax=null!==(n=null===(r=this.externals)||void 0===r?void 0:r.MathJax)&&void 0!==n?n:window.MathJax)}qa(wg,"HOOK_NAME","autoLink");var xg=["&","<",">",'"',"'"],kg=function(t){var e=t.replace(new RegExp(gh,"g"),(function(t){return-1!==Cu(xg).call(xg,t)?Mf(t):"\\".concat(t)}));return e},Cg=n((function(t,e){t.exports=function(){const{entries:t,setPrototypeOf:e,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:i}=Object;let{freeze:a,seal:o,create:s}=Object,{apply:c,construct:l}="undefined"!=typeof Reflect&&Reflect;a||(a=function(t){return t}),o||(o=function(t){return t}),c||(c=function(t,e,n){return t.apply(e,n)}),l||(l=function(t,e){return new t(...e)});const u=y(Array.prototype.forEach),h=y(Array.prototype.pop),f=y(Array.prototype.push),A=y(String.prototype.toLowerCase),d=y(String.prototype.toString),g=y(String.prototype.match),p=y(String.prototype.replace),b=y(String.prototype.indexOf),m=y(String.prototype.trim),v=y(RegExp.prototype.test),w=x(TypeError);function y(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i2&&void 0!==arguments[2]?arguments[2]:A;e&&e(t,null);let a=r.length;for(;a--;){let e=r[a];if("string"==typeof e){const t=i(e);t!==e&&(n(r)||(r[a]=t),e=t)}t[e]=!0}return t}function C(t){for(let e=0;e/gm),U=o(/\${[\w\W]*}/gm),H=o(/^data-[\-\w.\u00B7-\uFFFF]/),$=o(/^aria-[\-\w]+$/),j=o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),K=o(/^(?:\w+script|data):/i),z=o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),X=o(/^html$/i);var G=Object.freeze({__proto__:null,MUSTACHE_EXPR:P,ERB_EXPR:R,TMPLIT_EXPR:U,DATA_ATTR:H,ARIA_ATTR:$,IS_ALLOWED_URI:j,IS_SCRIPT_OR_DATA:K,ATTR_WHITESPACE:z,DOCTYPE_NAME:X});const V=function(){return"undefined"==typeof window?null:window},W=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";e&&e.hasAttribute(r)&&(n=e.getAttribute(r));const i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function q(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:V();const n=t=>q(t);if(n.version="3.0.8",n.removed=[],!e||!e.document||9!==e.document.nodeType)return n.isSupported=!1,n;let{document:r}=e;const i=r,o=i.currentScript,{DocumentFragment:c,HTMLTemplateElement:l,Node:y,Element:x,NodeFilter:C,NamedNodeMap:P=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:R,DOMParser:U,trustedTypes:H}=e,$=x.prototype,K=T($,"cloneNode"),z=T($,"nextSibling"),Y=T($,"childNodes"),J=T($,"parentNode");if("function"==typeof l){const t=r.createElement("template");t.content&&t.content.ownerDocument&&(r=t.content.ownerDocument)}let Z,tt="";const{implementation:et,createNodeIterator:nt,createDocumentFragment:rt,getElementsByTagName:it}=r,{importNode:at}=i;let ot={};n.isSupported="function"==typeof t&&"function"==typeof J&&et&&void 0!==et.createHTMLDocument;const{MUSTACHE_EXPR:st,ERB_EXPR:ct,TMPLIT_EXPR:lt,DATA_ATTR:ut,ARIA_ATTR:ht,IS_SCRIPT_OR_DATA:ft,ATTR_WHITESPACE:At}=G;let{IS_ALLOWED_URI:dt}=G,gt=null;const pt=k({},[...E,..._,...S,...I,...F]);let bt=null;const mt=k({},[...D,...O,...Q,...N]);let vt=Object.seal(s(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}})),wt=null,yt=null,xt=!0,kt=!0,Ct=!1,Bt=!0,Tt=!1,Et=!1,_t=!1,St=!1,Lt=!1,It=!1,Mt=!1,Ft=!0,Dt=!1;const Ot="user-content-";let Qt=!0,Nt=!1,Pt={},Rt=null;const Ut=k({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ht=null;const $t=k({},["audio","video","img","source","image","track"]);let jt=null;const Kt=k({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),zt="http://www.w3.org/1998/Math/MathML",Xt="http://www.w3.org/2000/svg",Gt="http://www.w3.org/1999/xhtml";let Vt=Gt,Wt=!1,qt=null;const Yt=k({},[zt,Xt,Gt],d);let Jt=null;const Zt=["application/xhtml+xml","text/html"],te="text/html";let ee=null,ne=null;const re=r.createElement("form"),ie=function(t){return t instanceof RegExp||t instanceof Function},ae=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ne||ne!==t){if(t&&"object"==typeof t||(t={}),t=B(t),Jt=-1===Zt.indexOf(t.PARSER_MEDIA_TYPE)?te:t.PARSER_MEDIA_TYPE,ee="application/xhtml+xml"===Jt?d:A,gt="ALLOWED_TAGS"in t?k({},t.ALLOWED_TAGS,ee):pt,bt="ALLOWED_ATTR"in t?k({},t.ALLOWED_ATTR,ee):mt,qt="ALLOWED_NAMESPACES"in t?k({},t.ALLOWED_NAMESPACES,d):Yt,jt="ADD_URI_SAFE_ATTR"in t?k(B(Kt),t.ADD_URI_SAFE_ATTR,ee):Kt,Ht="ADD_DATA_URI_TAGS"in t?k(B($t),t.ADD_DATA_URI_TAGS,ee):$t,Rt="FORBID_CONTENTS"in t?k({},t.FORBID_CONTENTS,ee):Ut,wt="FORBID_TAGS"in t?k({},t.FORBID_TAGS,ee):{},yt="FORBID_ATTR"in t?k({},t.FORBID_ATTR,ee):{},Pt="USE_PROFILES"in t&&t.USE_PROFILES,xt=!1!==t.ALLOW_ARIA_ATTR,kt=!1!==t.ALLOW_DATA_ATTR,Ct=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Bt=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Tt=t.SAFE_FOR_TEMPLATES||!1,Et=t.WHOLE_DOCUMENT||!1,Lt=t.RETURN_DOM||!1,It=t.RETURN_DOM_FRAGMENT||!1,Mt=t.RETURN_TRUSTED_TYPE||!1,St=t.FORCE_BODY||!1,Ft=!1!==t.SANITIZE_DOM,Dt=t.SANITIZE_NAMED_PROPS||!1,Qt=!1!==t.KEEP_CONTENT,Nt=t.IN_PLACE||!1,dt=t.ALLOWED_URI_REGEXP||j,Vt=t.NAMESPACE||Gt,vt=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ie(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(vt.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ie(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(vt.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(vt.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Tt&&(kt=!1),It&&(Lt=!0),Pt&&(gt=k({},F),bt=[],!0===Pt.html&&(k(gt,E),k(bt,D)),!0===Pt.svg&&(k(gt,_),k(bt,O),k(bt,N)),!0===Pt.svgFilters&&(k(gt,S),k(bt,O),k(bt,N)),!0===Pt.mathMl&&(k(gt,I),k(bt,Q),k(bt,N))),t.ADD_TAGS&&(gt===pt&&(gt=B(gt)),k(gt,t.ADD_TAGS,ee)),t.ADD_ATTR&&(bt===mt&&(bt=B(bt)),k(bt,t.ADD_ATTR,ee)),t.ADD_URI_SAFE_ATTR&&k(jt,t.ADD_URI_SAFE_ATTR,ee),t.FORBID_CONTENTS&&(Rt===Ut&&(Rt=B(Rt)),k(Rt,t.FORBID_CONTENTS,ee)),Qt&&(gt["#text"]=!0),Et&&k(gt,["html","head","body"]),gt.table&&(k(gt,["tbody"]),delete wt.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Z=t.TRUSTED_TYPES_POLICY,tt=Z.createHTML("")}else void 0===Z&&(Z=W(H,o)),null!==Z&&"string"==typeof tt&&(tt=Z.createHTML(""));a&&a(t),ne=t}},oe=k({},["mi","mo","mn","ms","mtext"]),se=k({},["foreignobject","desc","title","annotation-xml"]),ce=k({},["title","style","font","a","script"]),le=k({},[..._,...S,...L]),ue=k({},[...I,...M]),he=function(t){let e=J(t);e&&e.tagName||(e={namespaceURI:Vt,tagName:"template"});const n=A(t.tagName),r=A(e.tagName);return!!qt[t.namespaceURI]&&(t.namespaceURI===Xt?e.namespaceURI===Gt?"svg"===n:e.namespaceURI===zt?"svg"===n&&("annotation-xml"===r||oe[r]):Boolean(le[n]):t.namespaceURI===zt?e.namespaceURI===Gt?"math"===n:e.namespaceURI===Xt?"math"===n&&se[r]:Boolean(ue[n]):t.namespaceURI===Gt?!(e.namespaceURI===Xt&&!se[r])&&!(e.namespaceURI===zt&&!oe[r])&&!ue[n]&&(ce[n]||!le[n]):!("application/xhtml+xml"!==Jt||!qt[t.namespaceURI]))},fe=function(t){f(n.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){t.remove()}},Ae=function(t,e){try{f(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){f(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!bt[t])if(Lt||It)try{fe(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},de=function(t){let e=null,n=null;if(St)t=""+t;else{const e=g(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===Jt&&Vt===Gt&&(t=''+t+"");const i=Z?Z.createHTML(t):t;if(Vt===Gt)try{e=(new U).parseFromString(i,Jt)}catch(t){}if(!e||!e.documentElement){e=et.createDocument(Vt,"template",null);try{e.documentElement.innerHTML=Wt?tt:i}catch(t){}}const a=e.body||e.documentElement;return t&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),Vt===Gt?it.call(e,Et?"html":"body")[0]:Et?e.documentElement:a},ge=function(t){return nt.call(t.ownerDocument||t,t,C.SHOW_ELEMENT|C.SHOW_COMMENT|C.SHOW_TEXT,null)},pe=function(t){return t instanceof R&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof P)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},be=function(t){return"function"==typeof y&&t instanceof y},me=function(t,e,r){ot[t]&&u(ot[t],(t=>{t.call(n,e,r,ne)}))},ve=function(t){let e=null;if(me("beforeSanitizeElements",t,null),pe(t))return fe(t),!0;const r=ee(t.nodeName);if(me("uponSanitizeElement",t,{tagName:r,allowedTags:gt}),t.hasChildNodes()&&!be(t.firstElementChild)&&v(/<[/\w]/g,t.innerHTML)&&v(/<[/\w]/g,t.textContent))return fe(t),!0;if(!gt[r]||wt[r]){if(!wt[r]&&ye(r)){if(vt.tagNameCheck instanceof RegExp&&v(vt.tagNameCheck,r))return!1;if(vt.tagNameCheck instanceof Function&&vt.tagNameCheck(r))return!1}if(Qt&&!Rt[r]){const e=J(t)||t.parentNode,n=Y(t)||t.childNodes;if(n&&e)for(let r=n.length-1;r>=0;--r)e.insertBefore(K(n[r],!0),z(t))}return fe(t),!0}return t instanceof x&&!he(t)?(fe(t),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!v(/<\/no(script|embed|frames)/i,t.innerHTML)?(Tt&&3===t.nodeType&&(e=t.textContent,u([st,ct,lt],(t=>{e=p(e,t," ")})),t.textContent!==e&&(f(n.removed,{element:t.cloneNode()}),t.textContent=e)),me("afterSanitizeElements",t,null),!1):(fe(t),!0)},we=function(t,e,n){if(Ft&&("id"===e||"name"===e)&&(n in r||n in re))return!1;if(kt&&!yt[e]&&v(ut,e));else if(xt&&v(ht,e));else if(!bt[e]||yt[e]){if(!(ye(t)&&(vt.tagNameCheck instanceof RegExp&&v(vt.tagNameCheck,t)||vt.tagNameCheck instanceof Function&&vt.tagNameCheck(t))&&(vt.attributeNameCheck instanceof RegExp&&v(vt.attributeNameCheck,e)||vt.attributeNameCheck instanceof Function&&vt.attributeNameCheck(e))||"is"===e&&vt.allowCustomizedBuiltInElements&&(vt.tagNameCheck instanceof RegExp&&v(vt.tagNameCheck,n)||vt.tagNameCheck instanceof Function&&vt.tagNameCheck(n))))return!1}else if(jt[e]);else if(v(dt,p(n,At,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==b(n,"data:")||!Ht[t])if(Ct&&!v(ft,p(n,At,"")));else if(n)return!1;return!0},ye=function(t){return t.indexOf("-")>0},xe=function(t){me("beforeSanitizeAttributes",t,null);const{attributes:e}=t;if(!e)return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:bt};let i=e.length;for(;i--;){const a=e[i],{name:o,namespaceURI:s,value:c}=a,l=ee(o);let f="value"===o?c:m(c);if(r.attrName=l,r.attrValue=f,r.keepAttr=!0,r.forceKeepAttr=void 0,me("uponSanitizeAttribute",t,r),f=r.attrValue,r.forceKeepAttr)continue;if(Ae(o,t),!r.keepAttr)continue;if(!Bt&&v(/\/>/i,f)){Ae(o,t);continue}Tt&&u([st,ct,lt],(t=>{f=p(f,t," ")}));const A=ee(t.nodeName);if(we(A,l,f)){if(!Dt||"id"!==l&&"name"!==l||(Ae(o,t),f=Ot+f),Z&&"object"==typeof H&&"function"==typeof H.getAttributeType)if(s);else switch(H.getAttributeType(A,l)){case"TrustedHTML":f=Z.createHTML(f);break;case"TrustedScriptURL":f=Z.createScriptURL(f)}try{s?t.setAttributeNS(s,o,f):t.setAttribute(o,f),h(n.removed)}catch(t){}}}me("afterSanitizeAttributes",t,null)},ke=function t(e){let n=null;const r=ge(e);for(me("beforeSanitizeShadowDOM",e,null);n=r.nextNode();)me("uponSanitizeShadowNode",n,null),ve(n)||(n.content instanceof c&&t(n.content),xe(n));me("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,o=null,s=null;if(Wt=!t,Wt&&(t="\x3c!--\x3e"),"string"!=typeof t&&!be(t)){if("function"!=typeof t.toString)throw w("toString is not a function");if("string"!=typeof(t=t.toString()))throw w("dirty is not a string, aborting")}if(!n.isSupported)return t;if(_t||ae(e),n.removed=[],"string"==typeof t&&(Nt=!1),Nt){if(t.nodeName){const e=ee(t.nodeName);if(!gt[e]||wt[e])throw w("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof y)r=de("\x3c!----\x3e"),a=r.ownerDocument.importNode(t,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a);else{if(!Lt&&!Tt&&!Et&&-1===t.indexOf("<"))return Z&&Mt?Z.createHTML(t):t;if(r=de(t),!r)return Lt?null:Mt?tt:""}r&&St&&fe(r.firstChild);const l=ge(Nt?t:r);for(;o=l.nextNode();)ve(o)||(o.content instanceof c&&ke(o.content),xe(o));if(Nt)return t;if(Lt){if(It)for(s=rt.call(r.ownerDocument);r.firstChild;)s.appendChild(r.firstChild);else s=r;return(bt.shadowroot||bt.shadowrootmode)&&(s=at.call(i,s,!0)),s}let h=Et?r.outerHTML:r.innerHTML;return Et&>["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&v(X,r.ownerDocument.doctype.name)&&(h="\n"+h),Tt&&u([st,ct,lt],(t=>{h=p(h,t," ")})),Z&&Mt?Z.createHTML(h):h},n.setConfig=function(){ae(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),_t=!0},n.clearConfig=function(){ne=null,_t=!1},n.isValidAttribute=function(t,e,n){ne||ae({});const r=ee(t),i=ee(e);return we(r,i,n)},n.addHook=function(t,e){"function"==typeof e&&(ot[t]=ot[t]||[],f(ot[t],e))},n.removeHook=function(t){if(ot[t])return h(ot[t])},n.removeHooks=function(t){ot[t]&&(ot[t]=[])},n.removeAllHooks=function(){ot={}},n}var Y=q();return Y}()})),Bg=Cg(window);function Tg(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var Eg=function(t){xa(n,Rf);var e=Tg(n);function n(t){var r,i,a=t.config;return fa(this,n),qa(pa(i=e.call(this,{needCache:!0})),"engine","MathJax"),qa(pa(i),"katex",void 0),qa(pa(i),"MathJax",void 0),i.engine=Yd()?null!==(r=a.engine)&&void 0!==r?r:"MathJax":"node",i}return ga(n,[{key:"toHtml",value:function(t,e,n,r){var i,a,o;ro(yg).call(yg,this)("engine");var s=t.replace(/^[ \f\r\t\v]*/,"").replace(/\s*$/,""),c=e.replace(/^[ \f\r\t\v]*\n/,""),l=this.$engine.md5(t),u=this.getLineCount(s,c);/\n/.test(e)||(u-=1),/\n\s*$/.test(t)||(u-=1),u=u>0?u:0;var h=Za(i=Za(a='
    $$')).call(i,kg(r),"$$
    ");if("katex"===this.engine){var f,A,d=this.katex.renderToString(r,{throwOnError:!1,displayMode:!0});h=Za(f=Za(A='
    ')).call(f,d,"
    ")}if(null!==(o=this.MathJax)&&void 0!==o&&o.tex2svg){var g,p,b=Ju(this.MathJax.tex2svg(r),!0);h=Za(g=Za(p='
    ')).call(g,b,"
    ")}return h=Bg.sanitize(h),n+this.getCacheWithSpace(this.pushCache(h,l,u),t)}},{key:"beforeMakeHtml",value:function(t){var e,n;return fh()?t.replace(this.RULE.reg,ro(n=this.toHtml).call(n,this)):HA(t,this.RULE.reg,ro(e=this.toHtml).call(e,this),!0,1)}},{key:"makeHtml",value:function(t){return t}},{key:"rule",value:function(){var t={begin:fh()?"(\\s*)((?$')).call(r,kg(n),"$
    ");if("katex"===this.engine&&null!==(a=this.katex)&&void 0!==a&&a.renderToString){var h,f,A=this.katex.renderToString(n,{throwOnError:!1});u=Za(h=Za(f="".concat(e,'')).call(h,A,"")}if(null!==(o=this.MathJax)&&void 0!==o&&o.tex2svg){var d,g,p=Ju(this.MathJax.tex2svg(n,{em:12,ex:6,display:!1}),!0);u=Za(d=Za(g="".concat(e,'')).call(d,p,"")}return u=Bg.sanitize(u),this.pushCache(u,Rf.IN_PARAGRAPH_CACHE_KEY_PREFIX+l)}},{key:"beforeMakeHtml",value:function(t){var e=this,n=t;return n=n.replace(Ch(!0),(function(t){var n;return nf(n=t.split("|")).call(n,(function(t){return e.makeInlineMath(t)})).join("|").replace(/\\~D/g,"~D").replace(/~D/g,"\\~D")})),this.makeInlineMath(n)}},{key:"makeInlineMath",value:function(t){var e,n;return this.test(t)?fh()?t.replace(this.RULE.reg,ro(n=this.toHtml).call(n,this)):HA(t,this.RULE.reg,ro(e=this.toHtml).call(e,this),!0,1):t}},{key:"makeHtml",value:function(t){return t}},{key:"rule",value:function(){var t={begin:fh()?"((?1?arguments[1]:void 0,n),a=r>2?arguments[2]:void 0,o=void 0===a?n:Fe(a,n);o>i;)e[i++]=t;return e}});var Lg=ni("Array").fill,Ig=Array.prototype,Mg=function(t){var e=t.fill;return t===Ig||H(Ig,t)&&e===Ig.fill?Lg:e};function Fg(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}function Dg(t){return t}var Og={tocStyle:"plain",tocNodeClass:"toc-li",tocContainerClass:"toc",tocTitleClass:"toc-title",linkProcessor:Dg},Qg='

     

    ',Ng=function(t){xa(n,Rf);var e=Fg(n);function n(t){var r,i;t.externals;var a=t.config;return fa(this,n),qa(pa(i=e.call(this,{needCache:!0})),"tocStyle","nested"),qa(pa(i),"tocNodeClass","toc-li"),qa(pa(i),"tocContainerClass","toc"),qa(pa(i),"tocTitleClass","toc-title"),qa(pa(i),"linkProcessor",Dg),qa(pa(i),"baseLevel",1),qa(pa(i),"isFirstTocToken",!0),qa(pa(i),"allowMultiToc",!1),na(r=mn(Og)).call(r,(function(t){i[t]=a[t]||Og[t]})),i}return ga(n,[{key:"beforeMakeHtml",value:function(t){var e=this,n=t;return this.test(n,"extend")&&(n=n.replace(this.RULE.extend.reg,(function(t,n,r){var i;if(!e.allowMultiToc&&!e.isFirstTocToken)return Za(i="\n".concat(n)).call(i,Qg);var a=e.pushCache(t);return e.isFirstTocToken=!1,rf(t,a)}))),this.test(n,"standard")&&(n=n.replace(this.RULE.standard.reg,(function(t,n,r){var i;return e.allowMultiToc||e.isFirstTocToken?(e.isFirstTocToken=!1,rf(t,e.pushCache(t))):Za(i="\n".concat(n)).call(i,Qg)}))),n}},{key:"makeHtml",value:function(t){return t}},{key:"$makeLevel",value:function(t){for(var e="",n=this.baseLevel;n2&&void 0!==arguments[2])||arguments[2],c="";e&&(c=this.$makeLevel(t.level));var l=this.linkProcessor("#".concat(t.id).replace(/safe_/g,""));return Za(n=Za(r=Za(i=Za(a=Za(o='
  • ')).call(o,c,'')).call(r,t.text,"")).call(n,s?"
  • ":"")}},{key:"$makePlainToc",value:function(t){var e=this,n=nf(t).call(t,(function(t){return e.$makeTocItem(t,!0)}));return n.join("")}},{key:"$makeNestedToc",value:function(t){var e,n,r=this,i=0,a=Mg(e=new Array(7)).call(e,!1),o=Mg(n=new Array(7)).call(n,!1),s="";na(t).call(t,(function(t){var e=t.level;if(0===i){for(var n=e;n>=r.baseLevel;n--)s+="
      ",o[n]=!0;return s+=r.$makeTocItem(t,!1,!1),a[e]=!0,void(i=e)}if(e=e;c--)a[c]&&(s+="",a[c]=!1),o[c]&&c>e&&(s+="
    ",o[c]=!1);a[e]=!0,s+=r.$makeTocItem(t,!1,!1),i=e}else if(e===i)a[i]&&(s+=""),s+=r.$makeTocItem(t,!1,!1),a[e]=!0,o[e]=!0;else{for(var l=i+1;l<=e;l++)s+="
      ",o[l]=!0;a[e]=!0,s+=r.$makeTocItem(t,!1,!1),i=e}}));for(var c=i;c>=this.baseLevel;c--)a[c]&&(s+="",a[c]=!1),o[c]&&(s+="
    ",o[c]=!1);return s}},{key:"$makeToc",value:function(t,e,n){var r,i,a,o=af(n,1),s=Za(r=Za(i=Za(a='');return s+='

    目录

    '),t.length<=0?"":(this.baseLevel=Math.min.apply(Math,NA(nf(t).call(t,(function(t){return t.level})))),"nested"===this.tocStyle?s+=this.$makeNestedToc(t):s+=this.$makePlainToc(t),s+="
    ")}},{key:"afterMakeHtml",value:function(t){var e=this,r=Td(Wa(n.prototype),"afterMakeHtml",this).call(this,t),i=[],a="";return r.replace(/]*? id="([^"]+?)"[^>]*?>(?:|)(.+?)<\/h\1>/g,(function(t,e,n,r){var o,s=r.replace(/~fn#[0-9]+#/g,"");i.push({level:+e,id:n,text:s}),a+=Za(o="".concat(e)).call(o,n)})),a=this.$engine.md5(a),r=r.replace(/(?:^|\n)(\[\[|\[|【【)(toc|TOC)(\]\]|\]|】】)([<~])/,(function(t){return t.replace(/(\]\]|\]|】】)([<~])/,"$1\n$2")})),r=(r=r.replace(this.RULE.extend.reg,(function(t,n){return e.$makeToc(i,a,n)}))).replace(this.RULE.standard.reg,(function(t,n){return e.$makeToc(i,a,n)})),this.isFirstTocToken=!0,r}},{key:"test",value:function(t,e){return!!this.RULE[e].reg&&this.RULE[e].reg.test(t)}},{key:"rule",value:function(){var t={begin:"(?:^|\\n)(\\n*)",end:"(?=$|\\n)",content:"[ ]*((?:【【|\\[\\[)(?:toc|TOC)(?:\\]\\]|】】))[ ]*"};t.reg=new RegExp(t.begin+t.content+t.end,"g");var e={begin:"(?:^|\\n)(\\n*)",end:"(?=$|\\n)",content:"[ ]*(\\[(?:toc|TOC)\\])[ ]*"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),{extend:t,standard:e}}}]),n}();function Pg(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}qa(Ng,"HOOK_NAME","toc");var Rg=function(t){xa(n,Rf);var e=Pg(n);function n(t){var r;return t.externals,t.config,fa(this,n),(r=e.call(this)).footnoteCache={},r.footnoteMap={},r.footnote=[],r}return ga(n,[{key:"$cleanCache",value:function(){this.footnoteCache={},this.footnoteMap={},this.footnote=[]}},{key:"pushFootnoteCache",value:function(t,e){this.footnoteCache[t]=e}},{key:"getFootnoteCache",value:function(t){return this.footnoteCache[t]||null}},{key:"pushFootNote",value:function(t,e){var n,r,i,a,o,s;if(this.footnoteMap[t])return this.footnoteMap[t];var c=this.footnote.length+1,l={};l.fn=Za(n=Za(r=Za(i='[')).call(n,c,"]"),l.fnref=Za(a=Za(o=Za(s='[')).call(a,c,"]"),l.num=c,l.note=_l(e).call(e),this.footnote.push(l);var u="\0~fn#".concat(c-1,"#\0");return this.footnoteMap[t]=u,u}},{key:"getFootNote",value:function(){return this.footnote}},{key:"formatFootNote",value:function(){var t,e=this.getFootNote();if(e.length<=0)return"";var n=nf(e).call(e,(function(t){var e;return Za(e='
    \n'.concat(t.fnref)).call(e,t.note,"\n
    ")})).join(""),r=this.$engine.md5(n);return n=Za(t='
    脚注
    ')).call(t,n,"
    ")}},{key:"beforeMakeHtml",value:function(t){var e=this,n=t;return this.test(n)&&(n=n.replace(this.RULE.reg,(function(t,n,r,i){return e.pushFootnoteCache(r,i),(t.match(/\n/g)||[]).join("")})),n=n.replace(/\[\^([^\]]+?)\](?!:)/g,(function(t,n){var r=e.getFootnoteCache(n);return r?e.pushFootNote(n,r):t})),n+=this.formatFootNote()),n}},{key:"makeHtml",value:function(t,e){return t}},{key:"afterMakeHtml",value:function(t){var e=this.getFootNote(),n=t.replace(/\0~fn#([0-9]+)#\0/g,(function(t,n){return e[n].fn}));return this.$cleanCache(),n}},{key:"rule",value:function(){var t={begin:"(^|\\n)[ \t]*",content:["\\[\\^([^\\]]+?)\\]:\\h*","([\\s\\S]+?)"].join(""),end:"(?=\\s*$|\\n\\n)"};return t.reg=hh(t,"g",!0),t}}]),n}();function Ug(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}qa(Rg,"HOOK_NAME","footnote");var Hg=function(t){xa(n,Rf);var e=Ug(n);function n(t){var r;return t.externals,t.config,fa(this,n),(r=e.call(this)).commentCache={},r}return ga(n,[{key:"$cleanCache",value:function(){this.commentCache={}}},{key:"pushCommentReferenceCache",value:function(t,e){var n,r=PA(e.split(/[ ]+/g)),i=r[0],a=Tu(r).call(r,1),o=bd.set(i);this.commentCache["".concat(t).toLowerCase()]=Za(n=[o]).call(n,NA(a)).join(" ")}},{key:"getCommentReferenceCache",value:function(t){return this.commentCache["".concat(t).toLowerCase()]||null}},{key:"beforeMakeHtml",value:function(t){var e=this,n=t;if(this.test(n)){n=n.replace(this.RULE.reg,(function(t,n,r,i){var a;return e.pushCommentReferenceCache(r,i),(null!==(a=t.match(/\n/g))&&void 0!==a?a:[]).join("")}));n=n.replace(/(\[[^\]\n]+?\])?(?:\[([^\]\n]+?)\])/g,(function(t,n,r){var i,a,o=e.getCommentReferenceCache(r);return o?n?Za(a="".concat(n,"(")).call(a,o,")"):Za(i="[".concat(r,"](")).call(i,o,")"):t})),this.$cleanCache()}return n}},{key:"makeHtml",value:function(t,e){return t}},{key:"afterMakeHtml",value:function(t){return bd.restoreAll(t)}},{key:"rule",value:function(){var t={begin:"(^|\\n)[ \t]*",content:["\\[([^^][^\\]]*?)\\]:\\h*","([^\\n]+?)"].join(""),end:"(?=$|\\n)"};return t.reg=hh(t,"g",!0),t}}]),n}();qa(Hg,"HOOK_NAME","commentReference");var $g=rr.some,jg=Wi("some");te({target:"Array",proto:!0,forced:!jg},{some:function(t){return $g(this,t,arguments.length>1?arguments[1]:void 0)}});var Kg=ni("Array").some,zg=Array.prototype,Xg=function(t){var e=t.some;return t===zg||H(zg,t)&&e===zg.some?Kg:e};function Gg(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var Vg=["href","src"];Bg.addHook("afterSanitizeAttributes",(function(t){na(Vg).call(Vg,(function(e){if(t.hasAttribute(e)){var n=t.getAttribute(e);t.setAttribute(e,n.replace(/\\/g,"%5c"))}}))}));var Wg=function(t){xa(n,Rf);var e=Gg(n);function n(){return fa(this,n),e.call(this,{needCache:!0})}return ga(n,[{key:"isAutoLinkTag",value:function(t){var e=[/^<([a-z][a-z0-9+.-]{1,31}:\/\/[^<> `]+)>$/i,/^<(mailto:[^<> `]+)>$/i,/^<([^()<>[\]:'@\\,"\s`]+@[^()<>[\]:'@\\,"\s`.]+\.[^()<>[\]:'@\\,"\s`]+)>$/i];return Xg(e).call(e,(function(e){return e.test(t)}))}},{key:"isHtmlComment",value:function(t){return/^$/.test(t)}},{key:"beforeMakeHtml",value:function(t,e){var n=this;this.$engine.htmlWhiteListAppend?(this.htmlWhiteListAppend=new RegExp("^(".concat(this.$engine.htmlWhiteListAppend,")( |$|/)"),"i"),this.htmlWhiteList=this.$engine.htmlWhiteListAppend.split("|")):(this.htmlWhiteListAppend=!1,this.htmlWhiteList=[]);var r=t;return r=function(t){if("string"!=typeof t)return"";var e=t.replace(/&(\w+);?/g,(function(t,e){return-1===Cu(t).call(t,";")||-1===Cu(Tf).call(Tf,e.toLowerCase())?t.replace(/&/g,"&"):t}));return e=e.replace(/&#(?!x)(\d*);?/gi,(function(t,e){return Ef(e)||-1===Cu(t).call(t,";")||e.lenth>7||!_f(e)?t.replace(/&/g,"&"):t})),e=e.replace(/&#x([0-9a-f]*);?/gi,(function(t,e){if(Ef(e))return t.replace(/&/g,"&");var n="0x".concat(e),r=Du(n,16);return isNaN(r)||-1===Cu(t).call(t,";")||e.lenth>6||!_f(n)?t.replace(/&/g,"&"):t})),e}(r=Df(r)),r=(r=(r=r.replace(/<[/]?(.*?)>/g,(function(t,e){return If.test(e)||n.isAutoLinkTag(t)||n.isHtmlComment(t)||!1!==n.htmlWhiteListAppend&&n.htmlWhiteListAppend.test(e)?t.replace(//g,"$#62;"):t.replace(//g,">")}))).replace(/<(?=\/?(\w|\n|$))/g,"<")).replace(/\$#60;/g,"<").replace(/\$#62;/g,">")}},{key:"makeHtml",value:function(t,e){return t}},{key:"afterMakeHtml",value:function(t){var e=t,n={ALLOW_UNKNOWN_PROTOCOLS:!0,ADD_ATTR:["target"]};if(!1!==this.htmlWhiteListAppend){var r;if(n.ADD_TAGS=this.htmlWhiteList,(this.htmlWhiteListAppend.test("style")||this.htmlWhiteListAppend.test("ALL"))&&(e=e.replace(/| [^>]*>).*?<\/style>/gi,(function(t){return t.replace(/
    /gi,"")}))),this.htmlWhiteListAppend.test("iframe")||this.htmlWhiteListAppend.test("ALL"))n.ADD_ATTR=Za(r=n.ADD_ATTR).call(r,["align","frameborder","height","longdesc","marginheight","marginwidth","name","sandbox","scrolling","seamless","src","srcdoc","width"]),n.SANITIZE_DOM=!1,e=e.replace(/| [^>]*>).*?<\/iframe>/gi,(function(t){return t.replace(/
    /gi,"").replace(/\n/g,"")}));if(this.htmlWhiteListAppend.test("script")||this.htmlWhiteListAppend.test("ALL"))return e=e.replace(/| [^>]*>).*?<\/script>/gi,(function(t){return t.replace(/
    /gi,"")})),e}return Yd()||(n.FORBID_ATTR=["data-sign","data-lines"]),Bg.sanitize(e,n)}}]),n}();qa(Wg,"HOOK_NAME","htmlBlock");var qg={"+1":"1f44d","-1":"1f44e",100:"1f4af",1234:"1f522","1st_place_medal":"1f947","2nd_place_medal":"1f948","3rd_place_medal":"1f949","8ball":"1f3b1",a:"1f170",ab:"1f18e",abacus:"1f9ee",abc:"1f524",abcd:"1f521",accept:"1f251",adhesive_bandage:"1fa79",adult:"1f9d1",aerial_tramway:"1f6a1",afghanistan:"1f1e6-1f1eb",airplane:"2708",aland_islands:"1f1e6-1f1fd",alarm_clock:"23f0",albania:"1f1e6-1f1f1",alembic:"2697",algeria:"1f1e9-1f1ff",alien:"1f47d",ambulance:"1f691",american_samoa:"1f1e6-1f1f8",amphora:"1f3fa",anchor:"2693",andorra:"1f1e6-1f1e9",angel:"1f47c",anger:"1f4a2",angola:"1f1e6-1f1f4",angry:"1f620",anguilla:"1f1e6-1f1ee",anguished:"1f627",ant:"1f41c",antarctica:"1f1e6-1f1f6",antigua_barbuda:"1f1e6-1f1ec",apple:"1f34e",aquarius:"2652",argentina:"1f1e6-1f1f7",aries:"2648",armenia:"1f1e6-1f1f2",arrow_backward:"25c0",arrow_double_down:"23ec",arrow_double_up:"23eb",arrow_down:"2b07",arrow_down_small:"1f53d",arrow_forward:"25b6",arrow_heading_down:"2935",arrow_heading_up:"2934",arrow_left:"2b05",arrow_lower_left:"2199",arrow_lower_right:"2198",arrow_right:"27a1",arrow_right_hook:"21aa",arrow_up:"2b06",arrow_up_down:"2195",arrow_up_small:"1f53c",arrow_upper_left:"2196",arrow_upper_right:"2197",arrows_clockwise:"1f503",arrows_counterclockwise:"1f504",art:"1f3a8",articulated_lorry:"1f69b",artificial_satellite:"1f6f0",artist:"1f9d1-1f3a8",aruba:"1f1e6-1f1fc",ascension_island:"1f1e6-1f1e8",asterisk:"002a-20e3",astonished:"1f632",astronaut:"1f9d1-1f680",athletic_shoe:"1f45f",atm:"1f3e7",atom_symbol:"269b",australia:"1f1e6-1f1fa",austria:"1f1e6-1f1f9",auto_rickshaw:"1f6fa",avocado:"1f951",axe:"1fa93",azerbaijan:"1f1e6-1f1ff",b:"1f171",baby:"1f476",baby_bottle:"1f37c",baby_chick:"1f424",baby_symbol:"1f6bc",back:"1f519",bacon:"1f953",badger:"1f9a1",badminton:"1f3f8",bagel:"1f96f",baggage_claim:"1f6c4",baguette_bread:"1f956",bahamas:"1f1e7-1f1f8",bahrain:"1f1e7-1f1ed",balance_scale:"2696",bald_man:"1f468-1f9b2",bald_woman:"1f469-1f9b2",ballet_shoes:"1fa70",balloon:"1f388",ballot_box:"1f5f3",ballot_box_with_check:"2611",bamboo:"1f38d",banana:"1f34c",bangbang:"203c",bangladesh:"1f1e7-1f1e9",banjo:"1fa95",bank:"1f3e6",bar_chart:"1f4ca",barbados:"1f1e7-1f1e7",barber:"1f488",baseball:"26be",basket:"1f9fa",basketball:"1f3c0",basketball_man:"26f9-2642",basketball_woman:"26f9-2640",bat:"1f987",bath:"1f6c0",bathtub:"1f6c1",battery:"1f50b",beach_umbrella:"1f3d6",bear:"1f43b",bearded_person:"1f9d4",bed:"1f6cf",bee:"1f41d",beer:"1f37a",beers:"1f37b",beetle:"1f41e",beginner:"1f530",belarus:"1f1e7-1f1fe",belgium:"1f1e7-1f1ea",belize:"1f1e7-1f1ff",bell:"1f514",bellhop_bell:"1f6ce",benin:"1f1e7-1f1ef",bento:"1f371",bermuda:"1f1e7-1f1f2",beverage_box:"1f9c3",bhutan:"1f1e7-1f1f9",bicyclist:"1f6b4",bike:"1f6b2",biking_man:"1f6b4-2642",biking_woman:"1f6b4-2640",bikini:"1f459",billed_cap:"1f9e2",biohazard:"2623",bird:"1f426",birthday:"1f382",black_circle:"26ab",black_flag:"1f3f4",black_heart:"1f5a4",black_joker:"1f0cf",black_large_square:"2b1b",black_medium_small_square:"25fe",black_medium_square:"25fc",black_nib:"2712",black_small_square:"25aa",black_square_button:"1f532",blond_haired_man:"1f471-2642",blond_haired_person:"1f471",blond_haired_woman:"1f471-2640",blonde_woman:"1f471-2640",blossom:"1f33c",blowfish:"1f421",blue_book:"1f4d8",blue_car:"1f699",blue_heart:"1f499",blue_square:"1f7e6",blush:"1f60a",boar:"1f417",boat:"26f5",bolivia:"1f1e7-1f1f4",bomb:"1f4a3",bone:"1f9b4",book:"1f4d6",bookmark:"1f516",bookmark_tabs:"1f4d1",books:"1f4da",boom:"1f4a5",boot:"1f462",bosnia_herzegovina:"1f1e7-1f1e6",botswana:"1f1e7-1f1fc",bouncing_ball_man:"26f9-2642",bouncing_ball_person:"26f9",bouncing_ball_woman:"26f9-2640",bouquet:"1f490",bouvet_island:"1f1e7-1f1fb",bow:"1f647",bow_and_arrow:"1f3f9",bowing_man:"1f647-2642",bowing_woman:"1f647-2640",bowl_with_spoon:"1f963",bowling:"1f3b3",boxing_glove:"1f94a",boy:"1f466",brain:"1f9e0",brazil:"1f1e7-1f1f7",bread:"1f35e",breast_feeding:"1f931",bricks:"1f9f1",bride_with_veil:"1f470",bridge_at_night:"1f309",briefcase:"1f4bc",british_indian_ocean_territory:"1f1ee-1f1f4",british_virgin_islands:"1f1fb-1f1ec",broccoli:"1f966",broken_heart:"1f494",broom:"1f9f9",brown_circle:"1f7e4",brown_heart:"1f90e",brown_square:"1f7eb",brunei:"1f1e7-1f1f3",bug:"1f41b",building_construction:"1f3d7",bulb:"1f4a1",bulgaria:"1f1e7-1f1ec",bullettrain_front:"1f685",bullettrain_side:"1f684",burkina_faso:"1f1e7-1f1eb",burrito:"1f32f",burundi:"1f1e7-1f1ee",bus:"1f68c",business_suit_levitating:"1f574",busstop:"1f68f",bust_in_silhouette:"1f464",busts_in_silhouette:"1f465",butter:"1f9c8",butterfly:"1f98b",cactus:"1f335",cake:"1f370",calendar:"1f4c6",call_me_hand:"1f919",calling:"1f4f2",cambodia:"1f1f0-1f1ed",camel:"1f42b",camera:"1f4f7",camera_flash:"1f4f8",cameroon:"1f1e8-1f1f2",camping:"1f3d5",canada:"1f1e8-1f1e6",canary_islands:"1f1ee-1f1e8",cancer:"264b",candle:"1f56f",candy:"1f36c",canned_food:"1f96b",canoe:"1f6f6",cape_verde:"1f1e8-1f1fb",capital_abcd:"1f520",capricorn:"2651",car:"1f697",card_file_box:"1f5c3",card_index:"1f4c7",card_index_dividers:"1f5c2",caribbean_netherlands:"1f1e7-1f1f6",carousel_horse:"1f3a0",carrot:"1f955",cartwheeling:"1f938",cat:"1f431",cat2:"1f408",cayman_islands:"1f1f0-1f1fe",cd:"1f4bf",central_african_republic:"1f1e8-1f1eb",ceuta_melilla:"1f1ea-1f1e6",chad:"1f1f9-1f1e9",chains:"26d3",chair:"1fa91",champagne:"1f37e",chart:"1f4b9",chart_with_downwards_trend:"1f4c9",chart_with_upwards_trend:"1f4c8",checkered_flag:"1f3c1",cheese:"1f9c0",cherries:"1f352",cherry_blossom:"1f338",chess_pawn:"265f",chestnut:"1f330",chicken:"1f414",child:"1f9d2",children_crossing:"1f6b8",chile:"1f1e8-1f1f1",chipmunk:"1f43f",chocolate_bar:"1f36b",chopsticks:"1f962",christmas_island:"1f1e8-1f1fd",christmas_tree:"1f384",church:"26ea",cinema:"1f3a6",circus_tent:"1f3aa",city_sunrise:"1f307",city_sunset:"1f306",cityscape:"1f3d9",cl:"1f191",clamp:"1f5dc",clap:"1f44f",clapper:"1f3ac",classical_building:"1f3db",climbing:"1f9d7",climbing_man:"1f9d7-2642",climbing_woman:"1f9d7-2640",clinking_glasses:"1f942",clipboard:"1f4cb",clipperton_island:"1f1e8-1f1f5",clock1:"1f550",clock10:"1f559",clock1030:"1f565",clock11:"1f55a",clock1130:"1f566",clock12:"1f55b",clock1230:"1f567",clock130:"1f55c",clock2:"1f551",clock230:"1f55d",clock3:"1f552",clock330:"1f55e",clock4:"1f553",clock430:"1f55f",clock5:"1f554",clock530:"1f560",clock6:"1f555",clock630:"1f561",clock7:"1f556",clock730:"1f562",clock8:"1f557",clock830:"1f563",clock9:"1f558",clock930:"1f564",closed_book:"1f4d5",closed_lock_with_key:"1f510",closed_umbrella:"1f302",cloud:"2601",cloud_with_lightning:"1f329",cloud_with_lightning_and_rain:"26c8",cloud_with_rain:"1f327",cloud_with_snow:"1f328",clown_face:"1f921",clubs:"2663",cn:"1f1e8-1f1f3",coat:"1f9e5",cocktail:"1f378",coconut:"1f965",cocos_islands:"1f1e8-1f1e8",coffee:"2615",coffin:"26b0",cold_face:"1f976",cold_sweat:"1f630",collision:"1f4a5",colombia:"1f1e8-1f1f4",comet:"2604",comoros:"1f1f0-1f1f2",compass:"1f9ed",computer:"1f4bb",computer_mouse:"1f5b1",confetti_ball:"1f38a",confounded:"1f616",confused:"1f615",congo_brazzaville:"1f1e8-1f1ec",congo_kinshasa:"1f1e8-1f1e9",congratulations:"3297",construction:"1f6a7",construction_worker:"1f477",construction_worker_man:"1f477-2642",construction_worker_woman:"1f477-2640",control_knobs:"1f39b",convenience_store:"1f3ea",cook:"1f9d1-1f373",cook_islands:"1f1e8-1f1f0",cookie:"1f36a",cool:"1f192",cop:"1f46e",copyright:"00a9",corn:"1f33d",costa_rica:"1f1e8-1f1f7",cote_divoire:"1f1e8-1f1ee",couch_and_lamp:"1f6cb",couple:"1f46b",couple_with_heart:"1f491",couple_with_heart_man_man:"1f468-2764-1f468",couple_with_heart_woman_man:"1f469-2764-1f468",couple_with_heart_woman_woman:"1f469-2764-1f469",couplekiss:"1f48f",couplekiss_man_man:"1f468-2764-1f48b-1f468",couplekiss_man_woman:"1f469-2764-1f48b-1f468",couplekiss_woman_woman:"1f469-2764-1f48b-1f469",cow:"1f42e",cow2:"1f404",cowboy_hat_face:"1f920",crab:"1f980",crayon:"1f58d",credit_card:"1f4b3",crescent_moon:"1f319",cricket:"1f997",cricket_game:"1f3cf",croatia:"1f1ed-1f1f7",crocodile:"1f40a",croissant:"1f950",crossed_fingers:"1f91e",crossed_flags:"1f38c",crossed_swords:"2694",crown:"1f451",cry:"1f622",crying_cat_face:"1f63f",crystal_ball:"1f52e",cuba:"1f1e8-1f1fa",cucumber:"1f952",cup_with_straw:"1f964",cupcake:"1f9c1",cupid:"1f498",curacao:"1f1e8-1f1fc",curling_stone:"1f94c",curly_haired_man:"1f468-1f9b1",curly_haired_woman:"1f469-1f9b1",curly_loop:"27b0",currency_exchange:"1f4b1",curry:"1f35b",cursing_face:"1f92c",custard:"1f36e",customs:"1f6c3",cut_of_meat:"1f969",cyclone:"1f300",cyprus:"1f1e8-1f1fe",czech_republic:"1f1e8-1f1ff",dagger:"1f5e1",dancer:"1f483",dancers:"1f46f",dancing_men:"1f46f-2642",dancing_women:"1f46f-2640",dango:"1f361",dark_sunglasses:"1f576",dart:"1f3af",dash:"1f4a8",date:"1f4c5",de:"1f1e9-1f1ea",deaf_man:"1f9cf-2642",deaf_person:"1f9cf",deaf_woman:"1f9cf-2640",deciduous_tree:"1f333",deer:"1f98c",denmark:"1f1e9-1f1f0",department_store:"1f3ec",derelict_house:"1f3da",desert:"1f3dc",desert_island:"1f3dd",desktop_computer:"1f5a5",detective:"1f575",diamond_shape_with_a_dot_inside:"1f4a0",diamonds:"2666",diego_garcia:"1f1e9-1f1ec",disappointed:"1f61e",disappointed_relieved:"1f625",diving_mask:"1f93f",diya_lamp:"1fa94",dizzy:"1f4ab",dizzy_face:"1f635",djibouti:"1f1e9-1f1ef",dna:"1f9ec",do_not_litter:"1f6af",dog:"1f436",dog2:"1f415",dollar:"1f4b5",dolls:"1f38e",dolphin:"1f42c",dominica:"1f1e9-1f1f2",dominican_republic:"1f1e9-1f1f4",door:"1f6aa",doughnut:"1f369",dove:"1f54a",dragon:"1f409",dragon_face:"1f432",dress:"1f457",dromedary_camel:"1f42a",drooling_face:"1f924",drop_of_blood:"1fa78",droplet:"1f4a7",drum:"1f941",duck:"1f986",dumpling:"1f95f",dvd:"1f4c0","e-mail":"1f4e7",eagle:"1f985",ear:"1f442",ear_of_rice:"1f33e",ear_with_hearing_aid:"1f9bb",earth_africa:"1f30d",earth_americas:"1f30e",earth_asia:"1f30f",ecuador:"1f1ea-1f1e8",egg:"1f95a",eggplant:"1f346",egypt:"1f1ea-1f1ec",eight:"0038-20e3",eight_pointed_black_star:"2734",eight_spoked_asterisk:"2733",eject_button:"23cf",el_salvador:"1f1f8-1f1fb",electric_plug:"1f50c",elephant:"1f418",elf:"1f9dd",elf_man:"1f9dd-2642",elf_woman:"1f9dd-2640",email:"2709",end:"1f51a",england:"1f3f4-e0067-e0062-e0065-e006e-e0067-e007f",envelope:"2709",envelope_with_arrow:"1f4e9",equatorial_guinea:"1f1ec-1f1f6",eritrea:"1f1ea-1f1f7",es:"1f1ea-1f1f8",estonia:"1f1ea-1f1ea",ethiopia:"1f1ea-1f1f9",eu:"1f1ea-1f1fa",euro:"1f4b6",european_castle:"1f3f0",european_post_office:"1f3e4",european_union:"1f1ea-1f1fa",evergreen_tree:"1f332",exclamation:"2757",exploding_head:"1f92f",expressionless:"1f611",eye:"1f441",eye_speech_bubble:"1f441-1f5e8",eyeglasses:"1f453",eyes:"1f440",face_with_head_bandage:"1f915",face_with_thermometer:"1f912",facepalm:"1f926",facepunch:"1f44a",factory:"1f3ed",factory_worker:"1f9d1-1f3ed",fairy:"1f9da",fairy_man:"1f9da-2642",fairy_woman:"1f9da-2640",falafel:"1f9c6",falkland_islands:"1f1eb-1f1f0",fallen_leaf:"1f342",family:"1f46a",family_man_boy:"1f468-1f466",family_man_boy_boy:"1f468-1f466-1f466",family_man_girl:"1f468-1f467",family_man_girl_boy:"1f468-1f467-1f466",family_man_girl_girl:"1f468-1f467-1f467",family_man_man_boy:"1f468-1f468-1f466",family_man_man_boy_boy:"1f468-1f468-1f466-1f466",family_man_man_girl:"1f468-1f468-1f467",family_man_man_girl_boy:"1f468-1f468-1f467-1f466",family_man_man_girl_girl:"1f468-1f468-1f467-1f467",family_man_woman_boy:"1f468-1f469-1f466",family_man_woman_boy_boy:"1f468-1f469-1f466-1f466",family_man_woman_girl:"1f468-1f469-1f467",family_man_woman_girl_boy:"1f468-1f469-1f467-1f466",family_man_woman_girl_girl:"1f468-1f469-1f467-1f467",family_woman_boy:"1f469-1f466",family_woman_boy_boy:"1f469-1f466-1f466",family_woman_girl:"1f469-1f467",family_woman_girl_boy:"1f469-1f467-1f466",family_woman_girl_girl:"1f469-1f467-1f467",family_woman_woman_boy:"1f469-1f469-1f466",family_woman_woman_boy_boy:"1f469-1f469-1f466-1f466",family_woman_woman_girl:"1f469-1f469-1f467",family_woman_woman_girl_boy:"1f469-1f469-1f467-1f466",family_woman_woman_girl_girl:"1f469-1f469-1f467-1f467",farmer:"1f9d1-1f33e",faroe_islands:"1f1eb-1f1f4",fast_forward:"23e9",fax:"1f4e0",fearful:"1f628",feet:"1f43e",female_detective:"1f575-2640",female_sign:"2640",ferris_wheel:"1f3a1",ferry:"26f4",field_hockey:"1f3d1",fiji:"1f1eb-1f1ef",file_cabinet:"1f5c4",file_folder:"1f4c1",film_projector:"1f4fd",film_strip:"1f39e",finland:"1f1eb-1f1ee",fire:"1f525",fire_engine:"1f692",fire_extinguisher:"1f9ef",firecracker:"1f9e8",firefighter:"1f9d1-1f692",fireworks:"1f386",first_quarter_moon:"1f313",first_quarter_moon_with_face:"1f31b",fish:"1f41f",fish_cake:"1f365",fishing_pole_and_fish:"1f3a3",fist:"270a",fist_left:"1f91b",fist_oncoming:"1f44a",fist_raised:"270a",fist_right:"1f91c",five:"0035-20e3",flags:"1f38f",flamingo:"1f9a9",flashlight:"1f526",flat_shoe:"1f97f",fleur_de_lis:"269c",flight_arrival:"1f6ec",flight_departure:"1f6eb",flipper:"1f42c",floppy_disk:"1f4be",flower_playing_cards:"1f3b4",flushed:"1f633",flying_disc:"1f94f",flying_saucer:"1f6f8",fog:"1f32b",foggy:"1f301",foot:"1f9b6",football:"1f3c8",footprints:"1f463",fork_and_knife:"1f374",fortune_cookie:"1f960",fountain:"26f2",fountain_pen:"1f58b",four:"0034-20e3",four_leaf_clover:"1f340",fox_face:"1f98a",fr:"1f1eb-1f1f7",framed_picture:"1f5bc",free:"1f193",french_guiana:"1f1ec-1f1eb",french_polynesia:"1f1f5-1f1eb",french_southern_territories:"1f1f9-1f1eb",fried_egg:"1f373",fried_shrimp:"1f364",fries:"1f35f",frog:"1f438",frowning:"1f626",frowning_face:"2639",frowning_man:"1f64d-2642",frowning_person:"1f64d",frowning_woman:"1f64d-2640",fu:"1f595",fuelpump:"26fd",full_moon:"1f315",full_moon_with_face:"1f31d",funeral_urn:"26b1",gabon:"1f1ec-1f1e6",gambia:"1f1ec-1f1f2",game_die:"1f3b2",garlic:"1f9c4",gb:"1f1ec-1f1e7",gear:"2699",gem:"1f48e",gemini:"264a",genie:"1f9de",genie_man:"1f9de-2642",genie_woman:"1f9de-2640",georgia:"1f1ec-1f1ea",ghana:"1f1ec-1f1ed",ghost:"1f47b",gibraltar:"1f1ec-1f1ee",gift:"1f381",gift_heart:"1f49d",giraffe:"1f992",girl:"1f467",globe_with_meridians:"1f310",gloves:"1f9e4",goal_net:"1f945",goat:"1f410",goggles:"1f97d",golf:"26f3",golfing:"1f3cc",golfing_man:"1f3cc-2642",golfing_woman:"1f3cc-2640",gorilla:"1f98d",grapes:"1f347",greece:"1f1ec-1f1f7",green_apple:"1f34f",green_book:"1f4d7",green_circle:"1f7e2",green_heart:"1f49a",green_salad:"1f957",green_square:"1f7e9",greenland:"1f1ec-1f1f1",grenada:"1f1ec-1f1e9",grey_exclamation:"2755",grey_question:"2754",grimacing:"1f62c",grin:"1f601",grinning:"1f600",guadeloupe:"1f1ec-1f1f5",guam:"1f1ec-1f1fa",guard:"1f482",guardsman:"1f482-2642",guardswoman:"1f482-2640",guatemala:"1f1ec-1f1f9",guernsey:"1f1ec-1f1ec",guide_dog:"1f9ae",guinea:"1f1ec-1f1f3",guinea_bissau:"1f1ec-1f1fc",guitar:"1f3b8",gun:"1f52b",guyana:"1f1ec-1f1fe",haircut:"1f487",haircut_man:"1f487-2642",haircut_woman:"1f487-2640",haiti:"1f1ed-1f1f9",hamburger:"1f354",hammer:"1f528",hammer_and_pick:"2692",hammer_and_wrench:"1f6e0",hamster:"1f439",hand:"270b",hand_over_mouth:"1f92d",handbag:"1f45c",handball_person:"1f93e",handshake:"1f91d",hankey:"1f4a9",hash:"0023-20e3",hatched_chick:"1f425",hatching_chick:"1f423",headphones:"1f3a7",health_worker:"1f9d1-2695",hear_no_evil:"1f649",heard_mcdonald_islands:"1f1ed-1f1f2",heart:"2764",heart_decoration:"1f49f",heart_eyes:"1f60d",heart_eyes_cat:"1f63b",heartbeat:"1f493",heartpulse:"1f497",hearts:"2665",heavy_check_mark:"2714",heavy_division_sign:"2797",heavy_dollar_sign:"1f4b2",heavy_exclamation_mark:"2757",heavy_heart_exclamation:"2763",heavy_minus_sign:"2796",heavy_multiplication_x:"2716",heavy_plus_sign:"2795",hedgehog:"1f994",helicopter:"1f681",herb:"1f33f",hibiscus:"1f33a",high_brightness:"1f506",high_heel:"1f460",hiking_boot:"1f97e",hindu_temple:"1f6d5",hippopotamus:"1f99b",hocho:"1f52a",hole:"1f573",honduras:"1f1ed-1f1f3",honey_pot:"1f36f",honeybee:"1f41d",hong_kong:"1f1ed-1f1f0",horse:"1f434",horse_racing:"1f3c7",hospital:"1f3e5",hot_face:"1f975",hot_pepper:"1f336",hotdog:"1f32d",hotel:"1f3e8",hotsprings:"2668",hourglass:"231b",hourglass_flowing_sand:"23f3",house:"1f3e0",house_with_garden:"1f3e1",houses:"1f3d8",hugs:"1f917",hungary:"1f1ed-1f1fa",hushed:"1f62f",ice_cream:"1f368",ice_cube:"1f9ca",ice_hockey:"1f3d2",ice_skate:"26f8",icecream:"1f366",iceland:"1f1ee-1f1f8",id:"1f194",ideograph_advantage:"1f250",imp:"1f47f",inbox_tray:"1f4e5",incoming_envelope:"1f4e8",india:"1f1ee-1f1f3",indonesia:"1f1ee-1f1e9",infinity:"267e",information_desk_person:"1f481",information_source:"2139",innocent:"1f607",interrobang:"2049",iphone:"1f4f1",iran:"1f1ee-1f1f7",iraq:"1f1ee-1f1f6",ireland:"1f1ee-1f1ea",isle_of_man:"1f1ee-1f1f2",israel:"1f1ee-1f1f1",it:"1f1ee-1f1f9",izakaya_lantern:"1f3ee",jack_o_lantern:"1f383",jamaica:"1f1ef-1f1f2",japan:"1f5fe",japanese_castle:"1f3ef",japanese_goblin:"1f47a",japanese_ogre:"1f479",jeans:"1f456",jersey:"1f1ef-1f1ea",jigsaw:"1f9e9",jordan:"1f1ef-1f1f4",joy:"1f602",joy_cat:"1f639",joystick:"1f579",jp:"1f1ef-1f1f5",judge:"1f9d1-2696",juggling_person:"1f939",kaaba:"1f54b",kangaroo:"1f998",kazakhstan:"1f1f0-1f1ff",kenya:"1f1f0-1f1ea",key:"1f511",keyboard:"2328",keycap_ten:"1f51f",kick_scooter:"1f6f4",kimono:"1f458",kiribati:"1f1f0-1f1ee",kiss:"1f48b",kissing:"1f617",kissing_cat:"1f63d",kissing_closed_eyes:"1f61a",kissing_heart:"1f618",kissing_smiling_eyes:"1f619",kite:"1fa81",kiwi_fruit:"1f95d",kneeling_man:"1f9ce-2642",kneeling_person:"1f9ce",kneeling_woman:"1f9ce-2640",knife:"1f52a",koala:"1f428",koko:"1f201",kosovo:"1f1fd-1f1f0",kr:"1f1f0-1f1f7",kuwait:"1f1f0-1f1fc",kyrgyzstan:"1f1f0-1f1ec",lab_coat:"1f97c",label:"1f3f7",lacrosse:"1f94d",lantern:"1f3ee",laos:"1f1f1-1f1e6",large_blue_circle:"1f535",large_blue_diamond:"1f537",large_orange_diamond:"1f536",last_quarter_moon:"1f317",last_quarter_moon_with_face:"1f31c",latin_cross:"271d",latvia:"1f1f1-1f1fb",laughing:"1f606",leafy_green:"1f96c",leaves:"1f343",lebanon:"1f1f1-1f1e7",ledger:"1f4d2",left_luggage:"1f6c5",left_right_arrow:"2194",left_speech_bubble:"1f5e8",leftwards_arrow_with_hook:"21a9",leg:"1f9b5",lemon:"1f34b",leo:"264c",leopard:"1f406",lesotho:"1f1f1-1f1f8",level_slider:"1f39a",liberia:"1f1f1-1f1f7",libra:"264e",libya:"1f1f1-1f1fe",liechtenstein:"1f1f1-1f1ee",light_rail:"1f688",link:"1f517",lion:"1f981",lips:"1f444",lipstick:"1f484",lithuania:"1f1f1-1f1f9",lizard:"1f98e",llama:"1f999",lobster:"1f99e",lock:"1f512",lock_with_ink_pen:"1f50f",lollipop:"1f36d",loop:"27bf",lotion_bottle:"1f9f4",lotus_position:"1f9d8",lotus_position_man:"1f9d8-2642",lotus_position_woman:"1f9d8-2640",loud_sound:"1f50a",loudspeaker:"1f4e2",love_hotel:"1f3e9",love_letter:"1f48c",love_you_gesture:"1f91f",low_brightness:"1f505",luggage:"1f9f3",luxembourg:"1f1f1-1f1fa",lying_face:"1f925",m:"24c2",macau:"1f1f2-1f1f4",macedonia:"1f1f2-1f1f0",madagascar:"1f1f2-1f1ec",mag:"1f50d",mag_right:"1f50e",mage:"1f9d9",mage_man:"1f9d9-2642",mage_woman:"1f9d9-2640",magnet:"1f9f2",mahjong:"1f004",mailbox:"1f4eb",mailbox_closed:"1f4ea",mailbox_with_mail:"1f4ec",mailbox_with_no_mail:"1f4ed",malawi:"1f1f2-1f1fc",malaysia:"1f1f2-1f1fe",maldives:"1f1f2-1f1fb",male_detective:"1f575-2642",male_sign:"2642",mali:"1f1f2-1f1f1",malta:"1f1f2-1f1f9",man:"1f468",man_artist:"1f468-1f3a8",man_astronaut:"1f468-1f680",man_cartwheeling:"1f938-2642",man_cook:"1f468-1f373",man_dancing:"1f57a",man_facepalming:"1f926-2642",man_factory_worker:"1f468-1f3ed",man_farmer:"1f468-1f33e",man_firefighter:"1f468-1f692",man_health_worker:"1f468-2695",man_in_manual_wheelchair:"1f468-1f9bd",man_in_motorized_wheelchair:"1f468-1f9bc",man_in_tuxedo:"1f935",man_judge:"1f468-2696",man_juggling:"1f939-2642",man_mechanic:"1f468-1f527",man_office_worker:"1f468-1f4bc",man_pilot:"1f468-2708",man_playing_handball:"1f93e-2642",man_playing_water_polo:"1f93d-2642",man_scientist:"1f468-1f52c",man_shrugging:"1f937-2642",man_singer:"1f468-1f3a4",man_student:"1f468-1f393",man_teacher:"1f468-1f3eb",man_technologist:"1f468-1f4bb",man_with_gua_pi_mao:"1f472",man_with_probing_cane:"1f468-1f9af",man_with_turban:"1f473-2642",mandarin:"1f34a",mango:"1f96d",mans_shoe:"1f45e",mantelpiece_clock:"1f570",manual_wheelchair:"1f9bd",maple_leaf:"1f341",marshall_islands:"1f1f2-1f1ed",martial_arts_uniform:"1f94b",martinique:"1f1f2-1f1f6",mask:"1f637",massage:"1f486",massage_man:"1f486-2642",massage_woman:"1f486-2640",mate:"1f9c9",mauritania:"1f1f2-1f1f7",mauritius:"1f1f2-1f1fa",mayotte:"1f1fe-1f1f9",meat_on_bone:"1f356",mechanic:"1f9d1-1f527",mechanical_arm:"1f9be",mechanical_leg:"1f9bf",medal_military:"1f396",medal_sports:"1f3c5",medical_symbol:"2695",mega:"1f4e3",melon:"1f348",memo:"1f4dd",men_wrestling:"1f93c-2642",menorah:"1f54e",mens:"1f6b9",mermaid:"1f9dc-2640",merman:"1f9dc-2642",merperson:"1f9dc",metal:"1f918",metro:"1f687",mexico:"1f1f2-1f1fd",microbe:"1f9a0",micronesia:"1f1eb-1f1f2",microphone:"1f3a4",microscope:"1f52c",middle_finger:"1f595",milk_glass:"1f95b",milky_way:"1f30c",minibus:"1f690",minidisc:"1f4bd",mobile_phone_off:"1f4f4",moldova:"1f1f2-1f1e9",monaco:"1f1f2-1f1e8",money_mouth_face:"1f911",money_with_wings:"1f4b8",moneybag:"1f4b0",mongolia:"1f1f2-1f1f3",monkey:"1f412",monkey_face:"1f435",monocle_face:"1f9d0",monorail:"1f69d",montenegro:"1f1f2-1f1ea",montserrat:"1f1f2-1f1f8",moon:"1f314",moon_cake:"1f96e",morocco:"1f1f2-1f1e6",mortar_board:"1f393",mosque:"1f54c",mosquito:"1f99f",motor_boat:"1f6e5",motor_scooter:"1f6f5",motorcycle:"1f3cd",motorized_wheelchair:"1f9bc",motorway:"1f6e3",mount_fuji:"1f5fb",mountain:"26f0",mountain_bicyclist:"1f6b5",mountain_biking_man:"1f6b5-2642",mountain_biking_woman:"1f6b5-2640",mountain_cableway:"1f6a0",mountain_railway:"1f69e",mountain_snow:"1f3d4",mouse:"1f42d",mouse2:"1f401",movie_camera:"1f3a5",moyai:"1f5ff",mozambique:"1f1f2-1f1ff",mrs_claus:"1f936",muscle:"1f4aa",mushroom:"1f344",musical_keyboard:"1f3b9",musical_note:"1f3b5",musical_score:"1f3bc",mute:"1f507",myanmar:"1f1f2-1f1f2",nail_care:"1f485",name_badge:"1f4db",namibia:"1f1f3-1f1e6",national_park:"1f3de",nauru:"1f1f3-1f1f7",nauseated_face:"1f922",nazar_amulet:"1f9ff",necktie:"1f454",negative_squared_cross_mark:"274e",nepal:"1f1f3-1f1f5",nerd_face:"1f913",netherlands:"1f1f3-1f1f1",neutral_face:"1f610",new:"1f195",new_caledonia:"1f1f3-1f1e8",new_moon:"1f311",new_moon_with_face:"1f31a",new_zealand:"1f1f3-1f1ff",newspaper:"1f4f0",newspaper_roll:"1f5de",next_track_button:"23ed",ng:"1f196",ng_man:"1f645-2642",ng_woman:"1f645-2640",nicaragua:"1f1f3-1f1ee",niger:"1f1f3-1f1ea",nigeria:"1f1f3-1f1ec",night_with_stars:"1f303",nine:"0039-20e3",niue:"1f1f3-1f1fa",no_bell:"1f515",no_bicycles:"1f6b3",no_entry:"26d4",no_entry_sign:"1f6ab",no_good:"1f645",no_good_man:"1f645-2642",no_good_woman:"1f645-2640",no_mobile_phones:"1f4f5",no_mouth:"1f636",no_pedestrians:"1f6b7",no_smoking:"1f6ad","non-potable_water":"1f6b1",norfolk_island:"1f1f3-1f1eb",north_korea:"1f1f0-1f1f5",northern_mariana_islands:"1f1f2-1f1f5",norway:"1f1f3-1f1f4",nose:"1f443",notebook:"1f4d3",notebook_with_decorative_cover:"1f4d4",notes:"1f3b6",nut_and_bolt:"1f529",o:"2b55",o2:"1f17e",ocean:"1f30a",octopus:"1f419",oden:"1f362",office:"1f3e2",office_worker:"1f9d1-1f4bc",oil_drum:"1f6e2",ok:"1f197",ok_hand:"1f44c",ok_man:"1f646-2642",ok_person:"1f646",ok_woman:"1f646-2640",old_key:"1f5dd",older_adult:"1f9d3",older_man:"1f474",older_woman:"1f475",om:"1f549",oman:"1f1f4-1f1f2",on:"1f51b",oncoming_automobile:"1f698",oncoming_bus:"1f68d",oncoming_police_car:"1f694",oncoming_taxi:"1f696",one:"0031-20e3",one_piece_swimsuit:"1fa71",onion:"1f9c5",open_book:"1f4d6",open_file_folder:"1f4c2",open_hands:"1f450",open_mouth:"1f62e",open_umbrella:"2602",ophiuchus:"26ce",orange:"1f34a",orange_book:"1f4d9",orange_circle:"1f7e0",orange_heart:"1f9e1",orange_square:"1f7e7",orangutan:"1f9a7",orthodox_cross:"2626",otter:"1f9a6",outbox_tray:"1f4e4",owl:"1f989",ox:"1f402",oyster:"1f9aa",package:"1f4e6",page_facing_up:"1f4c4",page_with_curl:"1f4c3",pager:"1f4df",paintbrush:"1f58c",pakistan:"1f1f5-1f1f0",palau:"1f1f5-1f1fc",palestinian_territories:"1f1f5-1f1f8",palm_tree:"1f334",palms_up_together:"1f932",panama:"1f1f5-1f1e6",pancakes:"1f95e",panda_face:"1f43c",paperclip:"1f4ce",paperclips:"1f587",papua_new_guinea:"1f1f5-1f1ec",parachute:"1fa82",paraguay:"1f1f5-1f1fe",parasol_on_ground:"26f1",parking:"1f17f",parrot:"1f99c",part_alternation_mark:"303d",partly_sunny:"26c5",partying_face:"1f973",passenger_ship:"1f6f3",passport_control:"1f6c2",pause_button:"23f8",paw_prints:"1f43e",peace_symbol:"262e",peach:"1f351",peacock:"1f99a",peanuts:"1f95c",pear:"1f350",pen:"1f58a",pencil:"1f4dd",pencil2:"270f",penguin:"1f427",pensive:"1f614",people_holding_hands:"1f9d1-1f91d-1f9d1",performing_arts:"1f3ad",persevere:"1f623",person_bald:"1f9d1-1f9b2",person_curly_hair:"1f9d1-1f9b1",person_fencing:"1f93a",person_in_manual_wheelchair:"1f9d1-1f9bd",person_in_motorized_wheelchair:"1f9d1-1f9bc",person_red_hair:"1f9d1-1f9b0",person_white_hair:"1f9d1-1f9b3",person_with_probing_cane:"1f9d1-1f9af",person_with_turban:"1f473",peru:"1f1f5-1f1ea",petri_dish:"1f9eb",philippines:"1f1f5-1f1ed",phone:"260e",pick:"26cf",pie:"1f967",pig:"1f437",pig2:"1f416",pig_nose:"1f43d",pill:"1f48a",pilot:"1f9d1-2708",pinching_hand:"1f90f",pineapple:"1f34d",ping_pong:"1f3d3",pirate_flag:"1f3f4-2620",pisces:"2653",pitcairn_islands:"1f1f5-1f1f3",pizza:"1f355",place_of_worship:"1f6d0",plate_with_cutlery:"1f37d",play_or_pause_button:"23ef",pleading_face:"1f97a",point_down:"1f447",point_left:"1f448",point_right:"1f449",point_up:"261d",point_up_2:"1f446",poland:"1f1f5-1f1f1",police_car:"1f693",police_officer:"1f46e",policeman:"1f46e-2642",policewoman:"1f46e-2640",poodle:"1f429",poop:"1f4a9",popcorn:"1f37f",portugal:"1f1f5-1f1f9",post_office:"1f3e3",postal_horn:"1f4ef",postbox:"1f4ee",potable_water:"1f6b0",potato:"1f954",pouch:"1f45d",poultry_leg:"1f357",pound:"1f4b7",pout:"1f621",pouting_cat:"1f63e",pouting_face:"1f64e",pouting_man:"1f64e-2642",pouting_woman:"1f64e-2640",pray:"1f64f",prayer_beads:"1f4ff",pregnant_woman:"1f930",pretzel:"1f968",previous_track_button:"23ee",prince:"1f934",princess:"1f478",printer:"1f5a8",probing_cane:"1f9af",puerto_rico:"1f1f5-1f1f7",punch:"1f44a",purple_circle:"1f7e3",purple_heart:"1f49c",purple_square:"1f7ea",purse:"1f45b",pushpin:"1f4cc",put_litter_in_its_place:"1f6ae",qatar:"1f1f6-1f1e6",question:"2753",rabbit:"1f430",rabbit2:"1f407",raccoon:"1f99d",racehorse:"1f40e",racing_car:"1f3ce",radio:"1f4fb",radio_button:"1f518",radioactive:"2622",rage:"1f621",railway_car:"1f683",railway_track:"1f6e4",rainbow:"1f308",rainbow_flag:"1f3f3-1f308",raised_back_of_hand:"1f91a",raised_eyebrow:"1f928",raised_hand:"270b",raised_hand_with_fingers_splayed:"1f590",raised_hands:"1f64c",raising_hand:"1f64b",raising_hand_man:"1f64b-2642",raising_hand_woman:"1f64b-2640",ram:"1f40f",ramen:"1f35c",rat:"1f400",razor:"1fa92",receipt:"1f9fe",record_button:"23fa",recycle:"267b",red_car:"1f697",red_circle:"1f534",red_envelope:"1f9e7",red_haired_man:"1f468-1f9b0",red_haired_woman:"1f469-1f9b0",red_square:"1f7e5",registered:"00ae",relaxed:"263a",relieved:"1f60c",reminder_ribbon:"1f397",repeat:"1f501",repeat_one:"1f502",rescue_worker_helmet:"26d1",restroom:"1f6bb",reunion:"1f1f7-1f1ea",revolving_hearts:"1f49e",rewind:"23ea",rhinoceros:"1f98f",ribbon:"1f380",rice:"1f35a",rice_ball:"1f359",rice_cracker:"1f358",rice_scene:"1f391",right_anger_bubble:"1f5ef",ring:"1f48d",ringed_planet:"1fa90",robot:"1f916",rocket:"1f680",rofl:"1f923",roll_eyes:"1f644",roll_of_paper:"1f9fb",roller_coaster:"1f3a2",romania:"1f1f7-1f1f4",rooster:"1f413",rose:"1f339",rosette:"1f3f5",rotating_light:"1f6a8",round_pushpin:"1f4cd",rowboat:"1f6a3",rowing_man:"1f6a3-2642",rowing_woman:"1f6a3-2640",ru:"1f1f7-1f1fa",rugby_football:"1f3c9",runner:"1f3c3",running:"1f3c3",running_man:"1f3c3-2642",running_shirt_with_sash:"1f3bd",running_woman:"1f3c3-2640",rwanda:"1f1f7-1f1fc",sa:"1f202",safety_pin:"1f9f7",safety_vest:"1f9ba",sagittarius:"2650",sailboat:"26f5",sake:"1f376",salt:"1f9c2",samoa:"1f1fc-1f1f8",san_marino:"1f1f8-1f1f2",sandal:"1f461",sandwich:"1f96a",santa:"1f385",sao_tome_principe:"1f1f8-1f1f9",sari:"1f97b",sassy_man:"1f481-2642",sassy_woman:"1f481-2640",satellite:"1f4e1",satisfied:"1f606",saudi_arabia:"1f1f8-1f1e6",sauna_man:"1f9d6-2642",sauna_person:"1f9d6",sauna_woman:"1f9d6-2640",sauropod:"1f995",saxophone:"1f3b7",scarf:"1f9e3",school:"1f3eb",school_satchel:"1f392",scientist:"1f9d1-1f52c",scissors:"2702",scorpion:"1f982",scorpius:"264f",scotland:"1f3f4-e0067-e0062-e0073-e0063-e0074-e007f",scream:"1f631",scream_cat:"1f640",scroll:"1f4dc",seat:"1f4ba",secret:"3299",see_no_evil:"1f648",seedling:"1f331",selfie:"1f933",senegal:"1f1f8-1f1f3",serbia:"1f1f7-1f1f8",service_dog:"1f415-1f9ba",seven:"0037-20e3",seychelles:"1f1f8-1f1e8",shallow_pan_of_food:"1f958",shamrock:"2618",shark:"1f988",shaved_ice:"1f367",sheep:"1f411",shell:"1f41a",shield:"1f6e1",shinto_shrine:"26e9",ship:"1f6a2",shirt:"1f455",poo:"1f4a9",shoe:"1f45e",shopping:"1f6cd",shopping_cart:"1f6d2",shorts:"1fa73",shower:"1f6bf",shrimp:"1f990",shrug:"1f937",shushing_face:"1f92b",sierra_leone:"1f1f8-1f1f1",signal_strength:"1f4f6",singapore:"1f1f8-1f1ec",singer:"1f9d1-1f3a4",sint_maarten:"1f1f8-1f1fd",six:"0036-20e3",six_pointed_star:"1f52f",skateboard:"1f6f9",ski:"1f3bf",skier:"26f7",skull:"1f480",skull_and_crossbones:"2620",skunk:"1f9a8",sled:"1f6f7",sleeping:"1f634",sleeping_bed:"1f6cc",sleepy:"1f62a",slightly_frowning_face:"1f641",slightly_smiling_face:"1f642",slot_machine:"1f3b0",sloth:"1f9a5",slovakia:"1f1f8-1f1f0",slovenia:"1f1f8-1f1ee",small_airplane:"1f6e9",small_blue_diamond:"1f539",small_orange_diamond:"1f538",small_red_triangle:"1f53a",small_red_triangle_down:"1f53b",smile:"1f604",smile_cat:"1f638",smiley:"1f603",smiley_cat:"1f63a",smiling_face_with_three_hearts:"1f970",smiling_imp:"1f608",smirk:"1f60f",smirk_cat:"1f63c",smoking:"1f6ac",snail:"1f40c",snake:"1f40d",sneezing_face:"1f927",snowboarder:"1f3c2",snowflake:"2744",snowman:"26c4",snowman_with_snow:"2603",soap:"1f9fc",sob:"1f62d",soccer:"26bd",socks:"1f9e6",softball:"1f94e",solomon_islands:"1f1f8-1f1e7",somalia:"1f1f8-1f1f4",soon:"1f51c",sos:"1f198",sound:"1f509",south_africa:"1f1ff-1f1e6",south_georgia_south_sandwich_islands:"1f1ec-1f1f8",south_sudan:"1f1f8-1f1f8",space_invader:"1f47e",spades:"2660",spaghetti:"1f35d",sparkle:"2747",sparkler:"1f387",sparkles:"2728",sparkling_heart:"1f496",speak_no_evil:"1f64a",speaker:"1f508",speaking_head:"1f5e3",speech_balloon:"1f4ac",speedboat:"1f6a4",spider:"1f577",spider_web:"1f578",spiral_calendar:"1f5d3",spiral_notepad:"1f5d2",sponge:"1f9fd",spoon:"1f944",squid:"1f991",sri_lanka:"1f1f1-1f1f0",st_barthelemy:"1f1e7-1f1f1",st_helena:"1f1f8-1f1ed",st_kitts_nevis:"1f1f0-1f1f3",st_lucia:"1f1f1-1f1e8",st_martin:"1f1f2-1f1eb",st_pierre_miquelon:"1f1f5-1f1f2",st_vincent_grenadines:"1f1fb-1f1e8",stadium:"1f3df",standing_man:"1f9cd-2642",standing_person:"1f9cd",standing_woman:"1f9cd-2640",star:"2b50",star2:"1f31f",star_and_crescent:"262a",star_of_david:"2721",star_struck:"1f929",stars:"1f320",station:"1f689",statue_of_liberty:"1f5fd",steam_locomotive:"1f682",stethoscope:"1fa7a",stew:"1f372",stop_button:"23f9",stop_sign:"1f6d1",stopwatch:"23f1",straight_ruler:"1f4cf",strawberry:"1f353",stuck_out_tongue:"1f61b",stuck_out_tongue_closed_eyes:"1f61d",stuck_out_tongue_winking_eye:"1f61c",student:"1f9d1-1f393",studio_microphone:"1f399",stuffed_flatbread:"1f959",sudan:"1f1f8-1f1e9",sun_behind_large_cloud:"1f325",sun_behind_rain_cloud:"1f326",sun_behind_small_cloud:"1f324",sun_with_face:"1f31e",sunflower:"1f33b",sunglasses:"1f60e",sunny:"2600",sunrise:"1f305",sunrise_over_mountains:"1f304",superhero:"1f9b8",superhero_man:"1f9b8-2642",superhero_woman:"1f9b8-2640",supervillain:"1f9b9",supervillain_man:"1f9b9-2642",supervillain_woman:"1f9b9-2640",surfer:"1f3c4",surfing_man:"1f3c4-2642",surfing_woman:"1f3c4-2640",suriname:"1f1f8-1f1f7",sushi:"1f363",suspension_railway:"1f69f",svalbard_jan_mayen:"1f1f8-1f1ef",swan:"1f9a2",swaziland:"1f1f8-1f1ff",sweat:"1f613",sweat_drops:"1f4a6",sweat_smile:"1f605",sweden:"1f1f8-1f1ea",sweet_potato:"1f360",swim_brief:"1fa72",swimmer:"1f3ca",swimming_man:"1f3ca-2642",swimming_woman:"1f3ca-2640",switzerland:"1f1e8-1f1ed",symbols:"1f523",synagogue:"1f54d",syria:"1f1f8-1f1fe",syringe:"1f489","t-rex":"1f996",taco:"1f32e",tada:"1f389",taiwan:"1f1f9-1f1fc",tajikistan:"1f1f9-1f1ef",takeout_box:"1f961",tanabata_tree:"1f38b",tangerine:"1f34a",tanzania:"1f1f9-1f1ff",taurus:"2649",taxi:"1f695",tea:"1f375",teacher:"1f9d1-1f3eb",technologist:"1f9d1-1f4bb",teddy_bear:"1f9f8",telephone:"260e",telephone_receiver:"1f4de",telescope:"1f52d",tennis:"1f3be",tent:"26fa",test_tube:"1f9ea",thailand:"1f1f9-1f1ed",thermometer:"1f321",thinking:"1f914",thought_balloon:"1f4ad",thread:"1f9f5",three:"0033-20e3",thumbsdown:"1f44e",thumbsup:"1f44d",ticket:"1f3ab",tickets:"1f39f",tiger:"1f42f",tiger2:"1f405",timer_clock:"23f2",timor_leste:"1f1f9-1f1f1",tipping_hand_man:"1f481-2642",tipping_hand_person:"1f481",tipping_hand_woman:"1f481-2640",tired_face:"1f62b",tm:"2122",togo:"1f1f9-1f1ec",toilet:"1f6bd",tokelau:"1f1f9-1f1f0",tokyo_tower:"1f5fc",tomato:"1f345",tonga:"1f1f9-1f1f4",tongue:"1f445",toolbox:"1f9f0",tooth:"1f9b7",top:"1f51d",tophat:"1f3a9",tornado:"1f32a",tr:"1f1f9-1f1f7",trackball:"1f5b2",tractor:"1f69c",traffic_light:"1f6a5",train:"1f68b",train2:"1f686",tram:"1f68a",triangular_flag_on_post:"1f6a9",triangular_ruler:"1f4d0",trident:"1f531",trinidad_tobago:"1f1f9-1f1f9",tristan_da_cunha:"1f1f9-1f1e6",triumph:"1f624",trolleybus:"1f68e",trophy:"1f3c6",tropical_drink:"1f379",tropical_fish:"1f420",truck:"1f69a",trumpet:"1f3ba",tshirt:"1f455",tulip:"1f337",tumbler_glass:"1f943",tunisia:"1f1f9-1f1f3",turkey:"1f983",turkmenistan:"1f1f9-1f1f2",turks_caicos_islands:"1f1f9-1f1e8",turtle:"1f422",tuvalu:"1f1f9-1f1fb",tv:"1f4fa",twisted_rightwards_arrows:"1f500",two:"0032-20e3",two_hearts:"1f495",two_men_holding_hands:"1f46c",two_women_holding_hands:"1f46d",u5272:"1f239",u5408:"1f234",u55b6:"1f23a",u6307:"1f22f",u6708:"1f237",u6709:"1f236",u6e80:"1f235",u7121:"1f21a",u7533:"1f238",u7981:"1f232",u7a7a:"1f233",uganda:"1f1fa-1f1ec",uk:"1f1ec-1f1e7",ukraine:"1f1fa-1f1e6",umbrella:"2614",unamused:"1f612",underage:"1f51e",unicorn:"1f984",united_arab_emirates:"1f1e6-1f1ea",united_nations:"1f1fa-1f1f3",unlock:"1f513",up:"1f199",upside_down_face:"1f643",uruguay:"1f1fa-1f1fe",us:"1f1fa-1f1f8",us_outlying_islands:"1f1fa-1f1f2",us_virgin_islands:"1f1fb-1f1ee",uzbekistan:"1f1fa-1f1ff",v:"270c",vampire:"1f9db",vampire_man:"1f9db-2642",vampire_woman:"1f9db-2640",vanuatu:"1f1fb-1f1fa",vatican_city:"1f1fb-1f1e6",venezuela:"1f1fb-1f1ea",vertical_traffic_light:"1f6a6",vhs:"1f4fc",vibration_mode:"1f4f3",video_camera:"1f4f9",video_game:"1f3ae",vietnam:"1f1fb-1f1f3",violin:"1f3bb",virgo:"264d",volcano:"1f30b",volleyball:"1f3d0",vomiting_face:"1f92e",vs:"1f19a",vulcan_salute:"1f596",waffle:"1f9c7",wales:"1f3f4-e0067-e0062-e0077-e006c-e0073-e007f",walking:"1f6b6",walking_man:"1f6b6-2642",walking_woman:"1f6b6-2640",wallis_futuna:"1f1fc-1f1eb",waning_crescent_moon:"1f318",waning_gibbous_moon:"1f316",warning:"26a0",wastebasket:"1f5d1",watch:"231a",water_buffalo:"1f403",water_polo:"1f93d",watermelon:"1f349",wave:"1f44b",wavy_dash:"3030",waxing_crescent_moon:"1f312",waxing_gibbous_moon:"1f314",wc:"1f6be",weary:"1f629",wedding:"1f492",weight_lifting:"1f3cb",weight_lifting_man:"1f3cb-2642",weight_lifting_woman:"1f3cb-2640",western_sahara:"1f1ea-1f1ed",whale:"1f433",whale2:"1f40b",wheel_of_dharma:"2638",wheelchair:"267f",white_check_mark:"2705",white_circle:"26aa",white_flag:"1f3f3",white_flower:"1f4ae",white_haired_man:"1f468-1f9b3",white_haired_woman:"1f469-1f9b3",white_heart:"1f90d",white_large_square:"2b1c",white_medium_small_square:"25fd",white_medium_square:"25fb",white_small_square:"25ab",white_square_button:"1f533",wilted_flower:"1f940",wind_chime:"1f390",wind_face:"1f32c",wine_glass:"1f377",wink:"1f609",wolf:"1f43a",woman:"1f469",woman_artist:"1f469-1f3a8",woman_astronaut:"1f469-1f680",woman_cartwheeling:"1f938-2640",woman_cook:"1f469-1f373",woman_dancing:"1f483",woman_facepalming:"1f926-2640",woman_factory_worker:"1f469-1f3ed",woman_farmer:"1f469-1f33e",woman_firefighter:"1f469-1f692",woman_health_worker:"1f469-2695",woman_in_manual_wheelchair:"1f469-1f9bd",woman_in_motorized_wheelchair:"1f469-1f9bc",woman_judge:"1f469-2696",woman_juggling:"1f939-2640",woman_mechanic:"1f469-1f527",woman_office_worker:"1f469-1f4bc",woman_pilot:"1f469-2708",woman_playing_handball:"1f93e-2640",woman_playing_water_polo:"1f93d-2640",woman_scientist:"1f469-1f52c",woman_shrugging:"1f937-2640",woman_singer:"1f469-1f3a4",woman_student:"1f469-1f393",woman_teacher:"1f469-1f3eb",woman_technologist:"1f469-1f4bb",woman_with_headscarf:"1f9d5",woman_with_probing_cane:"1f469-1f9af",woman_with_turban:"1f473-2640",womans_clothes:"1f45a",womans_hat:"1f452",women_wrestling:"1f93c-2640",womens:"1f6ba",woozy_face:"1f974",world_map:"1f5fa",worried:"1f61f",wrench:"1f527",wrestling:"1f93c",writing_hand:"270d",x:"274c",yarn:"1f9f6",yawning_face:"1f971",yellow_circle:"1f7e1",yellow_heart:"1f49b",yellow_square:"1f7e8",yemen:"1f1fe-1f1ea",yen:"1f4b4",yin_yang:"262f",yo_yo:"1fa80",yum:"1f60b",zambia:"1f1ff-1f1f2",zany_face:"1f92a",zap:"26a1",zebra:"1f993",zero:"0030-20e3",zimbabwe:"1f1ff-1f1fc",zipper_mouth_face:"1f910",zombie:"1f9df",zombie_man:"1f9df-2642",zombie_woman:"1f9df-2640",zzz:"1f4a4"};function Yg(t,e){var n=mn(t);if(Yr){var r=Yr(t);e&&(r=ai(r).call(r,(function(e){return Ai(t,e).enumerable}))),n.push.apply(n,r)}return n}function Jg(t){for(var e=1;e>>0===a))throw new RangeError("Invalid code point: ".concat(a));a<=65535?e=t.push(a):(a-=65536,e=t.push(55296+(a>>10),a%1024+56320)),e>=16383&&(n+=String.fromCharCode.apply(null,t),t.length=0)}return n+String.fromCharCode.apply(null,t)}var ep=function(t){xa(n,Yh);var e=Zg(n);function n(){var t,r=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config;if(fa(this,n),(t=e.call(this,{config:r})).options={useUnicode:!0,upperCase:!1,customHandled:!1,resourceURL:"https://github.githubassets.com/images/icons/emoji/unicode/${code}.png?v8",emojis:Jg({},qg)},"object"!==Ka(r))return za(t);var i=r.useUnicode,a=r.customResourceURL,o=r.customRenderer,s=r.upperCase;return t.options.useUnicode="boolean"==typeof i?i:t.options.useUnicode,t.options.upperCase="boolean"==typeof s?s:t.options.upperCase,!1===i&&"string"==typeof a&&(t.options.resourceURL=a),"function"==typeof o&&(t.options.customHandled=!0,t.options.customRenderer=o),t}return ga(n,[{key:"makeHtml",value:function(t,e){var n=this;return this.test(t)?t.replace(this.RULE.reg,(function(t,e){var r;if(n.options.customHandled&&"function"==typeof n.options.customRenderer)return n.options.customRenderer(e);var i=n.options.emojis[e];if("string"!=typeof i)return t;if(n.options.useUnicode){var a,o=nf(a=i.split("-")).call(a,(function(t){return"0x".concat(t)}));return tp.apply(void 0,NA(o))}n.options.upperCase&&(i=i.toUpperCase());var s=n.options.resourceURL.replace(/\$\{code\}/g,i);return Za(r='')).call(r,Ff(e),'')})):t}},{key:"rule",value:function(){var t={begin:":",content:"([a-zA-Z0-9+_]+?)",end:":"};return t.reg=hh(t,"g"),t}}]),n}();function np(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}qa(ep,"HOOK_NAME","emoji");var rp=function(t){xa(n,Yh);var e=np(n);function n(){return fa(this,n),e.apply(this,arguments)}return ga(n,[{key:"makeHtml",value:function(t){return this.test(t)?t.replace(this.RULE.reg,'$1$2$3'):t}},{key:"rule",value:function(){var t={begin:"(^| )\\/",end:"\\/( |$)",content:"([^\\n]+?)"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}]),n}();function ip(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}qa(rp,"HOOK_NAME","underline");var ap=function(t){xa(n,Yh);var e=ip(n);function n(){return fa(this,n),e.apply(this,arguments)}return ga(n,[{key:"makeHtml",value:function(t){return this.test(t)?t.replace(this.RULE.reg,"$1$2$3"):t}},{key:"rule",value:function(){var t={begin:"(^| )==",end:"==( |$|\\n)",content:"([^\\n]+?)"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}]),n}();qa(ap,"HOOK_NAME","highLight");var op=La,sp=Pe.includes,cp=l((function(){return!Array(1).includes()}));te({target:"Array",proto:!0,forced:cp},{includes:function(t){return sp(this,t,arguments.length>1?arguments[1]:void 0)}});var lp=ni("Array").includes,up=v("".indexOf);te({target:"String",proto:!0,forced:!Jl("includes")},{includes:function(t){return!!~up(wn(O(this)),wn(ql(t)),arguments.length>1?arguments[1]:void 0)}});var hp=ni("String").includes,fp=Array.prototype,Ap=String.prototype,dp=function(t){var e=t.includes;return t===fp||H(fp,t)&&e===fp.includes?lp:"string"==typeof t||t===Ap||H(Ap,t)&&e===Ap.includes?hp:e};var gp=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n",keyword:"》",value:">"}],Ep=[{icon:"FullWidth",label:"[]",keyword:"【】",value:"[]",goLeft:1},{icon:"FullWidth",label:"【】",keyword:"【",value:"【】",goLeft:1},{icon:"link",label:"Link",keyword:"【】",value:"[title](https://url)",selection:{from:19,to:14}},{icon:"FullWidth",label:"()",keyword:"(",value:"()",goLeft:1},{icon:"FullWidth",label:"()",keyword:"(",value:"()",goLeft:1},{icon:"FullWidth",label:"<>",keyword:"《》",value:"<>",goLeft:1},{icon:"FullWidth",label:"《》",keyword:"《》",value:"《》",goLeft:1},{icon:"FullWidth",label:'""',keyword:"“”",value:'""',goLeft:1},{icon:"FullWidth",label:"“”",keyword:"“”",value:"”“",goLeft:1}],_p=Za(Tp).call(Tp,Ep);var Sp=function(){return"CodeMirror.Pass"};function Lp(t,e){var n=void 0!==op&&uu(t)||t["@@iterator"];if(!n){if(of(t)||(n=function(t,e){var n;if(!t)return;if("string"==typeof t)return Ip(t,e);var r=Tu(n=Object.prototype.toString.call(t)).call(n,8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Gl(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ip(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function Ip(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n')).call(c,n)).call(s,r,"
    "):!1===(null===(i=this.suggester[n])||void 0===i?void 0:i.echo)?"".concat(e):this.suggester[n]?r?e+r:"".concat(e):e+r}},{key:"rule",value:function(){var t,e,n;if(!this.suggester||mn(this.suggester).length<=0)return{};var r=nf(t=mn(this.suggester)).call(t,(function(t){return kp(t)})).join("|");return{reg:new RegExp(Za(e=Za(n="".concat(fh()?"((?'),this.searchCache=!1,this.searchKeyCache=[],this.optionList=[],this.cursorMove=!0,this.suggesterConfig={}}return ga(t,[{key:"tryCreatePanel",value:function(){var t,e,n;!this.$suggesterPanel&&Yd()&&document&&(null===(t=document)||void 0===t||null===(e=t.body)||void 0===e||e.appendChild(this.createDom(this.panelWrap)),this.$suggesterPanel=null===(n=document)||void 0===n?void 0:n.querySelector(".cherry-suggester-panel"))}},{key:"hasEditor",value:function(){return!!this.editor&&!!this.editor.editor.display&&!!this.editor.editor.display.wrapper}},{key:"setEditor",value:function(t){this.editor=t}},{key:"setSuggester",value:function(t){this.suggesterConfig=t}},{key:"bindEvent",value:function(){var t=this,e=!1;this.editor.editor.on("change",(function(n,r){e=!0,t.onCodeMirrorChange(n,r)})),this.editor.editor.on("keydown",(function(n,r){e=!0,t.enableRelate()&&t.onKeyDown(n,r)})),this.editor.editor.on("cursorActivity",(function(){e||t.stopRelate(),e=!1}));var n=this.editor.editor.getOption("extraKeys"),r=["Up","Down","Enter"];na(r).call(r,(function(e){if("function"==typeof n[e]){var r=n[e];n[e]=function(e){if(t.cursorMove){var n=r.call(e,e);if(n)return n}}}else if(n[e]){if("string"==typeof n[e]){var i=n[e];n[e]=function(e){t.cursorMove&&t.editor.editor.execCommand(i)}}}else n[e]=function(){if(t.cursorMove)return Sp()}})),this.editor.editor.setOption("extraKeys",n),this.editor.editor.on("scroll",(function(e,n){t.searchCache&&t.relocatePanel(t.editor.editor)})),this.onClickPanelItem()}},{key:"onClickPanelItem",value:function(){var t=this;this.tryCreatePanel(),this.$suggesterPanel.addEventListener("click",(function(e){var n=function(t,e){var n,r=-1;return na(n=t.childNodes).call(n,(function(t,n){return t===e?r=n:""})),r}(t.$suggesterPanel,e.target);n>-1&&t.pasteSelectResult(n),t.stopRelate()}),!1)}},{key:"showSuggesterPanel",value:function(t){var e=t.left,n=t.top,r=t.items;this.tryCreatePanel(),!this.$suggesterPanel&&Yd()&&(document.body.appendChild(this.createDom(this.panelWrap)),this.$suggesterPanel=document.querySelector(".cherry-suggester-panel")),this.updatePanel(r),this.$suggesterPanel.style.left="".concat(e,"px"),this.$suggesterPanel.style.top="".concat(n,"px"),this.$suggesterPanel.style.display="block",this.$suggesterPanel.style.position="absolute",this.$suggesterPanel.style.zIndex="100"}},{key:"hideSuggesterPanel",value:function(){this.tryCreatePanel(),this.$suggesterPanel&&(this.$suggesterPanel.style.display="none")}},{key:"updatePanel",value:function(t){var e=this;this.tryCreatePanel();var n=nf(t).call(t,(function(t,n){if("object"===Ka(t)&&null!==t){var r,i=t.label;if(null!=t&&t.icon)i=Za(r='')).call(r,i);return e.renderPanelItem(i,0===n)}return e.renderPanelItem(t,0===n)})).join(""),r=this.suggesterConfig[this.keyword];r&&"function"==typeof r.suggestListRender&&(n=r.suggestListRender.call(this,t)||n),this.$suggesterPanel.innerHTML="","string"==typeof n?this.$suggesterPanel.innerHTML=n:of(n)&&n.length>0?na(n).call(n,(function(t){e.$suggesterPanel.appendChild(t)})):"object"===Ka(n)&&1===n.nodeType&&this.$suggesterPanel.appendChild(n)}},{key:"renderPanelItem",value:function(t,e){return e?'
    '.concat(t,"
    "):'
    '.concat(t,"
    ")}},{key:"createDom",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.template||(this.template=document.createElement("div")),this.template.innerHTML=_l(t).call(t);var e=document.createDocumentFragment();return nf(Array.prototype).call(this.template.childNodes,(function(t,n){e.appendChild(t)})),e}},{key:"relocatePanel",value:function(t){var e=document.querySelector(".CodeMirror-cursors .CodeMirror-cursor");if(e||(e=document.querySelector(".CodeMirror-selected")),!e)return!1;var n=t.getCursor(),r=t.lineInfo(n.line).handle.height,i=e.getBoundingClientRect(),a=i.top+r,o=i.left;this.showSuggesterPanel({left:o,top:a,items:this.optionList})}},{key:"getCursorPos",value:function(t){var e=document.querySelector(".CodeMirror-cursors .CodeMirror-cursor");if(!e)return null;var n=t.getCursor(),r=t.lineInfo(n.line).handle.height,i=e.getBoundingClientRect(),a=i.top+r;return{left:i.left,top:a}}},{key:"startRelate",value:function(t,e,n){this.cursorFrom=n,this.keyword=e,this.searchCache=!0,this.relocatePanel(t)}},{key:"stopRelate",value:function(){this.hideSuggesterPanel(),this.cursorFrom=null,this.cursorTo=null,this.keyword="",this.searchKeyCache=[],this.searchCache=!1,this.cursorMove=!0,this.optionList=[]}},{key:"pasteSelectResult",value:function(t,e){if(this.cursorTo&&this.cursorTo!==this.cursorFrom||(this.cursorTo=JSON.parse(ll(this.cursorFrom))),this.cursorTo){this.cursorTo.ch+=1;var n=this.cursorFrom,r=this.cursorTo;if(this.optionList[t]){var i="";if("object"===Ka(this.optionList[t])&&null!==this.optionList[t]&&"string"==typeof this.optionList[t].value)i=this.optionList[t].value;else if("object"===Ka(this.optionList[t])&&null!==this.optionList[t]&&"function"==typeof this.optionList[t].value)i=this.optionList[t].value();else if("string"==typeof this.optionList[t])i="".concat(this.optionList[t]," ");else{var a;i=Za(a=" ".concat(this.keyword)).call(a,this.optionList[t]," ")}if(i&&this.editor.editor.replaceRange(i,n,r),this.optionList[t].goLeft){var o=this.editor.editor.getCursor();this.editor.editor.setCursor(o.line,o.ch-this.optionList[t].goLeft)}if(this.optionList[t].selection){var s=this.editor.editor.getCursor().line,c=this.editor.editor.getCursor().ch;this.editor.editor.setSelection({line:s,ch:c-this.optionList[t].selection.from},{line:s,ch:c-this.optionList[t].selection.to})}}}}},{key:"findSelectedItemIndex",value:function(){return Hh(Array.prototype).call(this.$suggesterPanel.childNodes,(function(t){return t.classList.contains("cherry-suggester-panel__item--selected")}))}},{key:"enableRelate",value:function(){return this.searchCache}},{key:"onCodeMirrorChange",value:function(t,e){var n=this,r=e.text,i=e.from,a=e.to,o=e.origin,s=1===r.length?r[0]:"";if(!this.enableRelate()&&this.suggesterConfig[s]&&this.startRelate(t,s,i),this.enableRelate()&&(s||"+delete"===o)){var c;if(this.cursorTo=a,s)this.searchKeyCache.push(s);else if("+delete"===o&&(this.searchKeyCache.pop(),0===this.searchKeyCache.length))return void this.stopRelate();"function"==typeof(null===(c=this.suggesterConfig[this.keyword])||void 0===c?void 0:c.suggestList)&&this.suggesterConfig[this.keyword].suggestList(this.searchKeyCache.join(""),(function(t){!1!==t?(n.optionList=t&&t.length?t:[],n.updatePanel(n.optionList)):n.stopRelate()}))}}},{key:"onKeyDown",value:function(t,e){var n,r=this;if(this.tryCreatePanel(),!this.$suggesterPanel)return!1;var i=e.keyCode;if(dp(n=[38,40]).call(n,i)){if(0===this.optionList.length)return void fo((function(){r.stopRelate()}),0);this.cursorMove=!1;var a=this.$suggesterPanel.querySelector(".cherry-suggester-panel__item--selected"),o=null;38!==i||a.previousElementSibling?40!==i||a.nextElementSibling?38===i?o=a.previousElementSibling:40===i&&(o=a.nextElementSibling):o=this.$suggesterPanel.firstElementChild:o=this.$suggesterPanel.lastElementChild,a.classList.remove("cherry-suggester-panel__item--selected"),o.classList.add("cherry-suggester-panel__item--selected")}else 13===i?(e.stopPropagation(),this.cursorMove=!1,this.pasteSelectResult(this.findSelectedItemIndex(),e),t.focus(),fo((function(){r.stopRelate()}),0)):27!==i&&37!==i&&39!==i||(e.stopPropagation(),t.focus(),fo((function(){r.stopRelate()}),0))}}]),t}();function Op(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var Qp=function(t){xa(n,Yh);var e=Op(n);function n(){return fa(this,n),e.apply(this,arguments)}return ga(n,[{key:"makeHtml",value:function(t){return this.test(t)?t.replace(this.RULE.reg,"$1$2$3$4"):t}},{key:"rule",value:function(){var t={begin:"(^| )\\{",end:"\\}( |$)",content:"([^\n]+?)\\|([^\n]+?)"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}]),n}();function Np(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}qa(Qp,"HOOK_NAME","ruby");var Pp=function(t){xa(n,Rf);var e=Np(n);function n(t){var r;return fa(this,n),(r=e.call(this,{needCache:!0})).initBrReg(t.globalConfig.classicBr),r}return ga(n,[{key:"makeHtml",value:function(t,e){var n=this;return t.replace(this.RULE.reg,(function(t,r,i,a){var o,s,c,l,u,h=n.getLineCount(t,r),f=n.$engine.md5(t),A=n.$getPanelInfo(i,a,e),d=A.title,g=A.body,p=A.appendStyle,b=A.className;return rf(t,n.pushCache(Za(o=Za(s=Za(c=Za(l=Za(u='
    ")).call(s,d)).call(o,g,"
    "),f,h))}))}},{key:"$getClassByType",value:function(t){return/(left|right|center)/i.test(t)?"cherry-text-align cherry-text-align__".concat(t):"cherry-panel cherry-panel__".concat(t)}},{key:"$getPanelInfo",value:function(t,e,n){var r,i=this,a={type:this.$getTargetType(t),title:n(this.$getTitle(t)).html,body:e,appendStyle:"",className:""};a.className=this.$getClassByType(a.type),/(left|right|center)/i.test(a.type)&&(a.appendStyle='style="text-align:'.concat(a.type,';"')),a.title=Za(r='
    ')).call(r,a.title,"
    ");var o=function(t){var e,r;if(""===_l(t).call(t))return"";var a=n(t).html,o="p";return new RegExp("<(".concat(Sf,")[^>]*>"),"i").test(a)&&(o="div"),Za(e=Za(r="<".concat(o,">")).call(r,i.$cleanParagraph(a),"")},s="";return s=this.isContainsCache(a.body)?this.makeExcludingCached(a.body,o):o(a.body),a.body='
    '.concat(s,"
    "),a}},{key:"$getTitle",value:function(t){var e=_l(t).call(t);return/\s/.test(e)?e.replace(/[^\s]+\s/,""):""}},{key:"$getTargetType",value:function(t){var e=/\s/.test(_l(t).call(t))?_l(t).call(t).replace(/\s.*$/,""):t;switch(_l(e).call(e).toLowerCase()){case"primary":case"p":default:return"primary";case"info":case"i":return"info";case"warning":case"w":return"warning";case"danger":case"d":return"danger";case"success":case"s":return"success";case"right":case"r":return"right";case"center":case"c":return"center";case"left":case"l":return"left"}}},{key:"rule",value:function(){return Eh()}}]),n}();function Rp(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}qa(Pp,"HOOK_NAME","panel");var Up=function(t){xa(n,Rf);var e=Rp(n);function n(){return fa(this,n),e.call(this,{needCache:!0})}return ga(n,[{key:"makeHtml",value:function(t,e){var n=this;return t.replace(this.RULE.reg,(function(t,r,i,a,o){var s,c,l,u=n.getLineCount(t,r),h=n.$engine.md5(t),f=n.$getDetailInfo(i,a,o,e),A=f.type,d=f.html;return rf(t,n.pushCache(Za(s=Za(c=Za(l='
    ')).call(s,d,"
    "),h,u))}))}},{key:"$getDetailInfo",value:function(t,e,n,r){var i=this,a=/\n\s*(\+\+|\+\+-)\s*[^\n]+\n/.test(n)?"multiple":"single",o=n.split(/\n\s*(\+\+[-]{0,1}\s*[^\n]+)\n/),s="-"===t,c=e,l="";return"multiple"===a?na(o).call(o,(function(t){if(/\+\+/.test(t))return s=/\+\+-/.test(t),c=t.replace(/\+\+[-]{0,1}\s*([^\n]+)$/,"$1"),!0;l+=i.$getDetailHtml(s,c,t,r)})):l=this.$getDetailHtml(s,c,n,r),{type:a,html:l}}},{key:"$getDetailHtml",value:function(t,e,n,r){var i=this,a="
    "),o=function(t){var e,n;if(""===_l(t).call(t))return"";var a=r(t).html,o="p";return new RegExp("<(".concat(Sf,")[^>]*>"),"i").test(a)&&(o="div"),Za(e=Za(n="<".concat(o,">")).call(n,i.$cleanParagraph(a),"")};a+="".concat(r(e).html,"");var s="";return s=this.isContainsCache(n)?this.makeExcludingCached(n,o):o(n),a+='
    '.concat(s,"
    "),a+="
    "}},{key:"rule",value:function(){return _h()}}]),n}();qa(Up,"HOOK_NAME","detail");var Hp=[od,cd,Eg,Sg,Wg,Rg,Hg,Od,Zd,qd,mg,Ng,Fd,eg,gg,Up,Pp,kd,ep,sg,vd,wg,yd,zA,jA,GA,ed,ZA,Qp,YA,rp,ap,Fp],$p=function(){function t(e,n){fa(this,t),this.$cherry=n,ha(this,"_cherry",{get:function(){return ih.warn("`_engine._cherry` is deprecated. Use `$engine.$cherry` instead."),this.$cherry}}),this.initMath(e),this.$configInit(e),this.hookCenter=new OA(Hp,e,n),this.hooks=this.hookCenter.getHookList(),this.md5Cache={},this.md5StrMap={},this.markdownParams=e,this.currentStrMd5=[],this.htmlWhiteListAppend=e.engine.global.htmlWhiteList}return ga(t,[{key:"initMath",value:function(t){var e=t.externals,n=t.engine.syntax,r=n.mathBlock.plugins;if(Yd()&&(n.mathBlock.src||n.inlineMath.src)&&!e.MathJax&&!window.MathJax){!function(t){if(Yd()){var e=t?["input/asciimath","[tex]/noerrors","[tex]/cancel","[tex]/color","[tex]/boldsymbol"]:[];window.MathJax={startup:{elements:[".Cherry-Math",".Cherry-InlineMath"],typeset:!0},tex:{inlineMath:[["$","$"],["\\(","\\)"]],displayMath:[["$$","$$"],["\\[","\\]"]],tags:"ams",packages:{"[+]":["noerrors","cancel","color"]},macros:{bm:["{\\boldsymbol{#1}}",1]}},options:{skipHtmlTags:["script","noscript","style","textarea","pre","code","a"],ignoreHtmlClass:"tex2jax_ignore",processHtmlClass:"tex2jax_process",enableMenu:!1},loader:{load:e}}}}(r);var i=document.createElement("script");i.src=n.mathBlock.src?n.mathBlock.src:n.inlineMath.src,i.async=!0,i.src&&document.head.appendChild(i)}}},{key:"$configInit",value:function(t){if(t.hooksConfig&&TA(t.hooksConfig.hooksList,Array))for(var e=0;e>>0:a>>>0;(s=i.exec(e))&&!((c=s.index+s[0].length)>f&&(u.push(e.slice(f,s.index)),!r&&s.length>1&&s[0].replace(o,(function(){for(var e=1;e1&&s.index=a));)i.lastIndex===s.index&&i.lastIndex++;return f===e.length?!l&&i.test("")||u.push(""):u.push(e.slice(f)),u.length>a?u.slice(0,a):u},e}(),ab=/([\.#]?[a-zA-Z0-9\u007F-\uFFFF_:-]+)/,ob=/^\.|#/,sb=function(t,e){if(!t)return"DIV";var n,r,i,a,o=!e.hasOwnProperty("id"),s=ib(t,ab),c=null;ob.test(s[1])&&(c="DIV");for(a=0;a=i.length?e.length:i[c],g=0;g=d&&s.push(p)}for(var b,m=s.slice(),v=0,w=[],y=[],x=0;xl?c:l,h=0;h>0],a===o)return i>=e&&i<=n;if(in))return!0;o=r-1}}return!1}function Zb(t,e){return t>e?1:-1}var tm=function(t,e){if(Vp(t)&&Vp(e))return"name"in t&&"name"in e?t.id===e.id:t.init===e.init;return!1};var em=function(t,e,n){var r=t.type,i=t.vNode,a=t.patch;switch(r){case xb.REMOVE:return function(t,e){var n=t.parentNode;n&&n.removeChild(t);return nm(t,e),null}(e,i);case xb.INSERT:return function(t,e,n){var r=n.render(e,n);t&&t.appendChild(r);return t}(e,a,n);case xb.VTEXT:return function(t,e,n,r){var i;if(3===t.nodeType)t.replaceData(0,t.length,n.text),i=t;else{var a=t.parentNode;i=r.render(n,r),a&&i!==t&&a.replaceChild(i,t)}return i}(e,0,a,n);case xb.WIDGET:return function(t,e,n,r){var i,a=tm(e,n);i=a?n.update(e,t)||t:r.render(n,r);var o=t.parentNode;o&&i!==t&&o.replaceChild(i,t);a||nm(t,e);return i}(e,i,a,n);case xb.VNODE:return function(t,e,n,r){var i=t.parentNode,a=r.render(n,r);i&&a!==t&&i.replaceChild(a,t);return a}(e,0,a,n);case xb.ORDER:return function(t,e){for(var n,r,i,a=t.childNodes,o={},s=0;s=c++?null:a[i.to])}(e,a),e;case xb.PROPS:return Kb(e,a,i.properties),e;case xb.THUNK:return function(t,e){t&&e&&t!==e&&t.parentNode&&t.parentNode.replaceChild(e,t);return e}(e,n.patch(e,a,n));default:return e}};function nm(t,e){"function"==typeof e.destroy&&Vp(e)&&e.destroy(t)}var rm=function t(e,n,r){return(r=r||{}).patch=r.patch&&r.patch!==t?r.patch:im,r.render=r.render||Vb,r.patch(e,n,r)};function im(t,e,n){var r=function(t){var e=[];for(var n in t)"a"!==n&&e.push(Number(n));return e}(e);if(0===r.length)return t;var i=qb(t,e.a,r),a=t.ownerDocument;n.document||a===jb||(n.document=a);for(var o=0;o=r&&d>=n)return o[s]=c,this.$backtraceSnakes(o,n,r,s)}o[s]=c}return[]}},{key:"$backtraceSnakes",value:function(t,e,n,r){for(var i=[],a={x:n,y:e},o=r;o>0;o--){var s=t[o],c=t[o-1],l=a.x-a.y,u=s[l],h=l===-o||l!==o&&c[l+1]>c[l-1],f=h?l+1:l-1,A=c[f],d=A-f,g=h?A:A+1;i.unshift({xStart:A,xMid:g,xEnd:u}),a.x=A,a.y=d}return i}},{key:"assembleResult",value:function(t,e,n){var r,i=this,a="color: gray",o="",s=[],c=0,l=[],u={},h={},f={};return na(t).call(t,(function(t,r){var A=t.xStart;if(0===r&&0!==t.xStart)for(var d=0;d>1,t+=bm(t/e);t>455;)t=bm(t/35),r+=36;return bm(r+36*t/(t+38))},Em=function(t){var e=[];t=function(t){for(var e=[],n=0,r=t.length;n=55296&&i<=56319&&n=a&&rbm((hm-o)/h))throw gm(dm);for(o+=(u-a)*h,a=u,n=0;nhm)throw gm(dm);if(r==a){for(var f=o,A=36;;){var d=A<=s?1:A>=s+26?26:A-s;if(f0;)t[r]=t[--r];r!==a++&&(t[r]=n)}return t},Im=function(t,e,n,r){for(var i=e.length,a=n.length,o=0,s=0;o0?arguments[0]:void 0))},pv=gv.prototype;if(eA(pv,{append:function(t,e){ao(arguments.length,2);var n=Nm(this);Jm(n.entries,{key:wn(t),value:wn(e)}),n.updateURL()},delete:function(t){ao(arguments.length,1);for(var e=Nm(this),n=e.entries,r=wn(t),i=0;ie.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,n=Nm(this).entries,r=Rt(t,arguments.length>1?arguments[1]:void 0),i=0;i1?vv(arguments[1]):{})}}),w($m)){var wv=function(t){return qf(this,Km),new $m(t,arguments.length>1?vv(arguments[1]):{})};Km.constructor=wv,wv.prototype=Km,te({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:wv})}}var yv,xv={URLSearchParams:gv,getState:Nm},kv=Na.codeAt,Cv=qn.set,Bv=qn.getterFor("URL"),Tv=xv.URLSearchParams,Ev=xv.getState,_v=s.URL,Sv=s.TypeError,Lv=s.parseInt,Iv=Math.floor,Mv=Math.pow,Fv=v("".charAt),Dv=v(/./.exec),Ov=v([].join),Qv=v(1..toString),Nv=v([].pop),Pv=v([].push),Rv=v("".replace),Uv=v([].shift),Hv=v("".split),$v=v("".slice),jv=v("".toLowerCase),Kv=v([].unshift),zv="Invalid scheme",Xv="Invalid host",Gv="Invalid port",Vv=/[a-z]/i,Wv=/[\d+-.a-z]/i,qv=/\d/,Yv=/^0x/i,Jv=/^[0-7]+$/,Zv=/^\d+$/,tw=/^[\da-f]+$/i,ew=/[\0\t\n\r #%/:<>?@[\\\]^|]/,nw=/[\0\t\n\r #/:<>?@[\\\]^|]/,rw=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,iw=/[\t\n\r]/g,aw=function(t){var e,n,r,i;if("number"==typeof t){for(e=[],n=0;n<4;n++)Kv(e,t%256),t=Iv(t/256);return Ov(e,".")}if("object"==typeof t){for(e="",r=function(t){for(var e=null,n=1,r=null,i=0,a=0;a<8;a++)0!==t[a]?(i>n&&(e=r,n=i),r=null,i=0):(null===r&&(r=a),++i);return i>n&&(e=r,n=i),e}(t),n=0;n<8;n++)i&&0===t[n]||(i&&(i=!1),r===n?(e+=n?":":"::",i=!0):(e+=Qv(t[n],16),n<7&&(e+=":")));return"["+e+"]"}return t},ow={},sw=ol({},ow,{" ":1,'"':1,"<":1,">":1,"`":1}),cw=ol({},sw,{"#":1,"?":1,"{":1,"}":1}),lw=ol({},cw,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),uw=function(t,e){var n=kv(t,0);return n>32&&n<127&&!ht(e,t)?t:encodeURIComponent(t)},hw={ftp:21,file:null,http:80,https:443,ws:80,wss:443},fw=function(t,e){var n;return 2==t.length&&Dv(Vv,Fv(t,0))&&(":"==(n=Fv(t,1))||!e&&"|"==n)},Aw=function(t){var e;return t.length>1&&fw($v(t,0,2))&&(2==t.length||"/"===(e=Fv(t,2))||"\\"===e||"?"===e||"#"===e)},dw=function(t){return"."===t||"%2e"===jv(t)},gw={},pw={},bw={},mw={},vw={},ww={},yw={},xw={},kw={},Cw={},Bw={},Tw={},Ew={},_w={},Sw={},Lw={},Iw={},Mw={},Fw={},Dw={},Ow={},Qw=function(t,e,n){var r,i,a,o=wn(t);if(e){if(i=this.parse(o))throw Sv(i);this.searchParams=null}else{if(void 0!==n&&(r=new Qw(n,!0)),i=this.parse(o,null,r))throw Sv(i);(a=Ev(new Tv)).bindURL(this),this.searchParams=a}};Qw.prototype={type:"URL",parse:function(t,e,n){var r,i,a,o,s,c=this,l=e||gw,u=0,h="",f=!1,A=!1,d=!1;for(t=wn(t),e||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,t=Rv(t,rw,"")),t=Rv(t,iw,""),r=Rl(t);u<=r.length;){switch(i=r[u],l){case gw:if(!i||!Dv(Vv,i)){if(e)return zv;l=bw;continue}h+=jv(i),l=pw;break;case pw:if(i&&(Dv(Wv,i)||"+"==i||"-"==i||"."==i))h+=jv(i);else{if(":"!=i){if(e)return zv;h="",l=bw,u=0;continue}if(e&&(c.isSpecial()!=ht(hw,h)||"file"==h&&(c.includesCredentials()||null!==c.port)||"file"==c.scheme&&!c.host))return;if(c.scheme=h,e)return void(c.isSpecial()&&hw[c.scheme]==c.port&&(c.port=null));h="","file"==c.scheme?l=_w:c.isSpecial()&&n&&n.scheme==c.scheme?l=mw:c.isSpecial()?l=xw:"/"==r[u+1]?(l=vw,u++):(c.cannotBeABaseURL=!0,Pv(c.path,""),l=Fw)}break;case bw:if(!n||n.cannotBeABaseURL&&"#"!=i)return zv;if(n.cannotBeABaseURL&&"#"==i){c.scheme=n.scheme,c.path=Tn(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,l=Ow;break}l="file"==n.scheme?_w:ww;continue;case mw:if("/"!=i||"/"!=r[u+1]){l=ww;continue}l=kw,u++;break;case vw:if("/"==i){l=Cw;break}l=Mw;continue;case ww:if(c.scheme=n.scheme,i==yv)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=Tn(n.path),c.query=n.query;else if("/"==i||"\\"==i&&c.isSpecial())l=yw;else if("?"==i)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=Tn(n.path),c.query="",l=Dw;else{if("#"!=i){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=Tn(n.path),c.path.length--,l=Mw;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=Tn(n.path),c.query=n.query,c.fragment="",l=Ow}break;case yw:if(!c.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,l=Mw;continue}l=Cw}else l=kw;break;case xw:if(l=kw,"/"!=i||"/"!=Fv(h,u+1))continue;u++;break;case kw:if("/"!=i&&"\\"!=i){l=Cw;continue}break;case Cw:if("@"==i){f&&(h="%40"+h),f=!0,a=Rl(h);for(var g=0;g65535)return Gv;c.port=c.isSpecial()&&m===hw[c.scheme]?null:m,h=""}if(e)return;l=Iw;continue}return Gv}h+=i;break;case _w:if(c.scheme="file","/"==i||"\\"==i)l=Sw;else{if(!n||"file"!=n.scheme){l=Mw;continue}if(i==yv)c.host=n.host,c.path=Tn(n.path),c.query=n.query;else if("?"==i)c.host=n.host,c.path=Tn(n.path),c.query="",l=Dw;else{if("#"!=i){Aw(Ov(Tn(r,u),""))||(c.host=n.host,c.path=Tn(n.path),c.shortenPath()),l=Mw;continue}c.host=n.host,c.path=Tn(n.path),c.query=n.query,c.fragment="",l=Ow}}break;case Sw:if("/"==i||"\\"==i){l=Lw;break}n&&"file"==n.scheme&&!Aw(Ov(Tn(r,u),""))&&(fw(n.path[0],!0)?Pv(c.path,n.path[0]):c.host=n.host),l=Mw;continue;case Lw:if(i==yv||"/"==i||"\\"==i||"?"==i||"#"==i){if(!e&&fw(h))l=Mw;else if(""==h){if(c.host="",e)return;l=Iw}else{if(o=c.parseHost(h))return o;if("localhost"==c.host&&(c.host=""),e)return;h="",l=Iw}continue}h+=i;break;case Iw:if(c.isSpecial()){if(l=Mw,"/"!=i&&"\\"!=i)continue}else if(e||"?"!=i)if(e||"#"!=i){if(i!=yv&&(l=Mw,"/"!=i))continue}else c.fragment="",l=Ow;else c.query="",l=Dw;break;case Mw:if(i==yv||"/"==i||"\\"==i&&c.isSpecial()||!e&&("?"==i||"#"==i)){if(".."===(s=jv(s=h))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(c.shortenPath(),"/"==i||"\\"==i&&c.isSpecial()||Pv(c.path,"")):dw(h)?"/"==i||"\\"==i&&c.isSpecial()||Pv(c.path,""):("file"==c.scheme&&!c.path.length&&fw(h)&&(c.host&&(c.host=""),h=Fv(h,0)+":"),Pv(c.path,h)),h="","file"==c.scheme&&(i==yv||"?"==i||"#"==i))for(;c.path.length>1&&""===c.path[0];)Uv(c.path);"?"==i?(c.query="",l=Dw):"#"==i&&(c.fragment="",l=Ow)}else h+=uw(i,cw);break;case Fw:"?"==i?(c.query="",l=Dw):"#"==i?(c.fragment="",l=Ow):i!=yv&&(c.path[0]+=uw(i,ow));break;case Dw:e||"#"!=i?i!=yv&&("'"==i&&c.isSpecial()?c.query+="%27":c.query+="#"==i?"%23":uw(i,ow)):(c.fragment="",l=Ow);break;case Ow:i!=yv&&(c.fragment+=uw(i,sw))}u++}},parseHost:function(t){var e,n,r;if("["==Fv(t,0)){if("]"!=Fv(t,t.length-1))return Xv;if(e=function(t){var e,n,r,i,a,o,s,c=[0,0,0,0,0,0,0,0],l=0,u=null,h=0,f=function(){return Fv(t,h)};if(":"==f()){if(":"!=Fv(t,1))return;h+=2,u=++l}for(;f();){if(8==l)return;if(":"!=f()){for(e=n=0;n<4&&Dv(tw,f());)e=16*e+Lv(f(),16),h++,n++;if("."==f()){if(0==n)return;if(h-=n,l>6)return;for(r=0;f();){if(i=null,r>0){if(!("."==f()&&r<4))return;h++}if(!Dv(qv,f()))return;for(;Dv(qv,f());){if(a=Lv(f(),10),null===i)i=a;else{if(0==i)return;i=10*i+a}if(i>255)return;h++}c[l]=256*c[l]+i,2!=++r&&4!=r||l++}if(4!=r)return;break}if(":"==f()){if(h++,!f())return}else if(f())return;c[l++]=e}else{if(null!==u)return;h++,u=++l}}if(null!==u)for(o=l-u,l=7;0!=l&&o>0;)s=c[l],c[l--]=c[u+o-1],c[u+--o]=s;else if(8!=l)return;return c}($v(t,1,-1)),!e)return Xv;this.host=e}else if(this.isSpecial()){if(t=function(t){var e,n,r=[],i=km(xm(Cm(t),Am,"."),".");for(e=0;e4)return t;for(n=[],r=0;r1&&"0"==Fv(i,0)&&(a=Dv(Yv,i)?16:8,i=$v(i,8==a?1:2)),""===i)o=0;else{if(!Dv(10==a?Zv:8==a?Jv:tw,i))return t;o=Lv(i,a)}Pv(n,o)}for(r=0;r=Mv(256,5-e))return null}else if(o>255)return null;for(s=Nv(n),r=0;r1?arguments[1]:void 0,r=Cv(e,new Qw(t,!1,n));y||(e.href=r.serialize(),e.origin=r.getOrigin(),e.protocol=r.getProtocol(),e.username=r.getUsername(),e.password=r.getPassword(),e.host=r.getHost(),e.hostname=r.getHostname(),e.port=r.getPort(),e.pathname=r.getPathname(),e.search=r.getSearch(),e.searchParams=r.getSearchParams(),e.hash=r.getHash())},Pw=Nw.prototype,Rw=function(t,e){return{get:function(){return Bv(this)[t]()},set:e&&function(t){return Bv(this)[e](t)},configurable:!0,enumerable:!0}};if(y&&(um(Pw,"href",Rw("serialize","setHref")),um(Pw,"origin",Rw("getOrigin")),um(Pw,"protocol",Rw("getProtocol","setProtocol")),um(Pw,"username",Rw("getUsername","setUsername")),um(Pw,"password",Rw("getPassword","setPassword")),um(Pw,"host",Rw("getHost","setHost")),um(Pw,"hostname",Rw("getHostname","setHostname")),um(Pw,"port",Rw("getPort","setPort")),um(Pw,"pathname",Rw("getPathname","setPathname")),um(Pw,"search",Rw("getSearch","setSearch")),um(Pw,"searchParams",Rw("getSearchParams")),um(Pw,"hash",Rw("getHash","setHash"))),In(Pw,"toJSON",(function(){return Bv(this).serialize()}),{enumerable:!0}),In(Pw,"toString",(function(){return Bv(this).serialize()}),{enumerable:!0}),_v){var Uw=_v.createObjectURL,Hw=_v.revokeObjectURL;Uw&&In(Nw,"createObjectURL",Rt(Uw,_v)),Hw&&In(Nw,"revokeObjectURL",Rt(Hw,_v))}Rn(Nw,"URL"),te({global:!0,constructor:!0,forced:!lm,sham:!y},{URL:Nw});var $w=P.URL,jw=n((function(t,e){t.exports=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};function e(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var n=function(){return n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=55296&&i<=56319&&n>10),o%1024+56320)),(i+1===n||r.length>16384)&&(a+=String.fromCharCode.apply(String,r),r.length=0)}return a},h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f="undefined"==typeof Uint8Array?[]:new Uint8Array(256),A=0;A>4,u[c++]=(15&r)<<4|i>>2,u[c++]=(3&i)<<6|63&a;return l},m=function(t){for(var e=t.length,n=[],r=0;r>w,C=(1<>w)+32,T=65536>>y,E=(1<=0){if(t<55296||t>56319&&t<=65535)return e=((e=this.index[t>>w])<>w)])<>y),e=this.index[e],e+=t>>w&E,e=((e=this.index[e])<O?(i.push(!0),o-=O):i.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(t))return r.push(a),n.push(q);if(o===R||o===z){if(0===a)return r.push(a),n.push(ut);var s=n[a-1];return-1===Ft.indexOf(s)?(r.push(r[a-1]),n.push(s)):(r.push(a),n.push(ut))}return r.push(a),o===ht?n.push("strict"===e?et:bt):o===xt||o===lt?n.push(ut):o===kt?t>=131072&&t<=196605||t>=196608&&t<=262141?n.push(bt):n.push(ut):void n.push(o)})),[r,n,i]},Nt=function(t,e,n,r){var i=r[n];if(Array.isArray(t)?-1!==t.indexOf(i):t===i)for(var a=n;a<=r.length;){if((c=r[++a])===e)return!0;if(c!==K)break}if(i===K)for(a=n;a>0;){var o=r[--a];if(Array.isArray(t)?-1!==t.indexOf(o):t===o)for(var s=n;s<=r.length;){var c;if((c=r[++s])===e)return!0;if(c!==K)break}if(o!==K)break}return!1},Pt=function(t,e){for(var n=t;n>=0;){var r=e[n];if(r!==K)return r;n--}return 0},Rt=function(t,e,n,r,i){if(0===n[r])return Tt;var a=r-1;if(Array.isArray(i)&&!0===i[a])return Tt;var o=a-1,s=a+1,c=e[a],l=o>=0?e[o]:0,u=e[s];if(c===N&&u===P)return Tt;if(-1!==Lt.indexOf(c))return Bt;if(-1!==Lt.indexOf(u))return Tt;if(-1!==It.indexOf(u))return Tt;if(Pt(a,e)===$)return Et;if(_t.get(t[a])===z)return Tt;if((c===ft||c===At)&&_t.get(t[s])===z)return Tt;if(c===H||u===H)return Tt;if(c===j)return Tt;if(-1===[K,G,W].indexOf(c)&&u===j)return Tt;if(-1!==[Y,J,Z,it,ct].indexOf(u))return Tt;if(Pt(a,e)===nt)return Tt;if(Nt(rt,nt,a,e))return Tt;if(Nt([Y,J],et,a,e))return Tt;if(Nt(X,X,a,e))return Tt;if(c===K)return Et;if(c===rt||u===rt)return Tt;if(u===q||c===q)return Et;if(-1!==[G,W,et].indexOf(u)||c===V)return Tt;if(l===pt&&-1!==Ot.indexOf(c))return Tt;if(c===ct&&u===pt)return Tt;if(u===tt)return Tt;if(-1!==St.indexOf(u)&&c===at||-1!==St.indexOf(c)&&u===at)return Tt;if(c===st&&-1!==[bt,ft,At].indexOf(u)||-1!==[bt,ft,At].indexOf(c)&&u===ot)return Tt;if(-1!==St.indexOf(c)&&-1!==Mt.indexOf(u)||-1!==Mt.indexOf(c)&&-1!==St.indexOf(u))return Tt;if(-1!==[st,ot].indexOf(c)&&(u===at||-1!==[nt,W].indexOf(u)&&e[s+1]===at)||-1!==[nt,W].indexOf(c)&&u===at||c===at&&-1!==[at,ct,it].indexOf(u))return Tt;if(-1!==[at,ct,it,Y,J].indexOf(u))for(var h=a;h>=0;){if((f=e[h])===at)return Tt;if(-1===[ct,it].indexOf(f))break;h--}if(-1!==[st,ot].indexOf(u))for(h=-1!==[Y,J].indexOf(c)?o:a;h>=0;){var f;if((f=e[h])===at)return Tt;if(-1===[ct,it].indexOf(f))break;h--}if(mt===c&&-1!==[mt,vt,dt,gt].indexOf(u)||-1!==[vt,dt].indexOf(c)&&-1!==[vt,wt].indexOf(u)||-1!==[wt,gt].indexOf(c)&&u===wt)return Tt;if(-1!==Dt.indexOf(c)&&-1!==[tt,ot].indexOf(u)||-1!==Dt.indexOf(u)&&c===st)return Tt;if(-1!==St.indexOf(c)&&-1!==St.indexOf(u))return Tt;if(c===it&&-1!==St.indexOf(u))return Tt;if(-1!==St.concat(at).indexOf(c)&&u===nt&&-1===Ct.indexOf(t[s])||-1!==St.concat(at).indexOf(u)&&c===J)return Tt;if(c===yt&&u===yt){for(var A=n[a],d=1;A>0&&e[--A]===yt;)d++;if(d%2!=0)return Tt}return c===ft&&u===At?Tt:Et},Ut=function(t,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var n=Qt(t,e.lineBreak),r=n[0],i=n[1],a=n[2];"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(i=i.map((function(t){return-1!==[at,ut,xt].indexOf(t)?bt:t})));var o="keep-all"===e.wordBreak?a.map((function(e,n){return e&&t[n]>=19968&&t[n]<=40959})):void 0;return[r,i,o]},Ht=function(){function t(t,e,n,r){this.codePoints=t,this.required=e===Bt,this.start=n,this.end=r}return t.prototype.slice=function(){return u.apply(void 0,this.codePoints.slice(this.start,this.end))},t}(),$t=function(t,e){var n=l(t),r=Ut(n,e),i=r[0],a=r[1],o=r[2],s=n.length,c=0,u=0;return{next:function(){if(u>=s)return{done:!0,value:null};for(var t=Tt;u=Oe&&t<=57},Ge=function(t){return t>=55296&&t<=57343},Ve=function(t){return Xe(t)||t>=He&&t<=je||t>=Qe&&t<=Pe},We=function(t){return t>=Qe&&t<=Ue},qe=function(t){return t>=He&&t<=ze},Ye=function(t){return We(t)||qe(t)},Je=function(t){return t>=we},Ze=function(t){return t===Gt||t===qt||t===Yt},tn=function(t){return Ye(t)||Je(t)||t===oe},en=function(t){return tn(t)||Xe(t)||t===se},nn=function(t){return t>=_e&&t<=Se||t===Le||t>=Ie&&t<=Me||t===Fe},rn=function(t,e){return t===Wt&&e!==Gt},an=function(t,e,n){return t===se?tn(e)||rn(e,n):!!tn(t)||!(t!==Wt||!rn(t,e))},on=function(t,e,n){return t===ke||t===se?!!Xe(e)||e===Ee&&Xe(n):Xe(t===Ee?e:t)},sn=function(t){var e=0,n=1;t[e]!==ke&&t[e]!==se||(t[e]===se&&(n=-1),e++);for(var r=[];Xe(t[e]);)r.push(t[e++]);var i=r.length?parseInt(u.apply(void 0,r),10):0;t[e]===Ee&&e++;for(var a=[];Xe(t[e]);)a.push(t[e++]);var o=a.length,s=o?parseInt(u.apply(void 0,a),10):0;t[e]!==$e&&t[e]!==Ne||e++;var c=1;t[e]!==ke&&t[e]!==se||(t[e]===se&&(c=-1),e++);for(var l=[];Xe(t[e]);)l.push(t[e++]);var h=l.length?parseInt(u.apply(void 0,l),10):0;return n*(i+s*Math.pow(10,-o))*Math.pow(10,c*h)},cn={type:2},ln={type:3},un={type:4},hn={type:13},fn={type:8},An={type:21},dn={type:9},gn={type:10},pn={type:11},bn={type:12},mn={type:14},vn={type:23},wn={type:1},yn={type:25},xn={type:24},kn={type:26},Cn={type:27},Bn={type:28},Tn={type:29},En={type:31},_n={type:32},Sn=function(){function t(){this._value=[]}return t.prototype.write=function(t){this._value=this._value.concat(l(t))},t.prototype.read=function(){for(var t=[],e=this.consumeToken();e!==_n;)t.push(e),e=this.consumeToken();return t},t.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case Jt:return this.consumeStringToken(Jt);case te:var e=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(en(e)||rn(n,r)){var i=an(e,n,r)?Kt:jt;return{type:5,value:this.consumeName(),flags:i}}break;case ee:if(this.peekCodePoint(0)===Zt)return this.consumeCodePoint(),hn;break;case re:return this.consumeStringToken(re);case ie:return cn;case ae:return ln;case xe:if(this.peekCodePoint(0)===Zt)return this.consumeCodePoint(),mn;break;case ke:if(on(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case Ce:return un;case se:var a=t,o=this.peekCodePoint(0),s=this.peekCodePoint(1);if(on(a,o,s))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(an(a,o,s))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(o===se&&s===ue)return this.consumeCodePoint(),this.consumeCodePoint(),xn;break;case Ee:if(on(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case Vt:if(this.peekCodePoint(0)===xe)for(this.consumeCodePoint();;){var c=this.consumeCodePoint();if(c===xe&&(c=this.consumeCodePoint())===Vt)return this.consumeToken();if(c===De)return this.consumeToken()}break;case Be:return kn;case Te:return Cn;case le:if(this.peekCodePoint(0)===ce&&this.peekCodePoint(1)===se&&this.peekCodePoint(2)===se)return this.consumeCodePoint(),this.consumeCodePoint(),yn;break;case he:var l=this.peekCodePoint(0),h=this.peekCodePoint(1),f=this.peekCodePoint(2);if(an(l,h,f))return{type:7,value:this.consumeName()};break;case fe:return Bn;case Wt:if(rn(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case Ae:return Tn;case de:if(this.peekCodePoint(0)===Zt)return this.consumeCodePoint(),fn;break;case ge:return pn;case be:return bn;case Re:case Ke:var A=this.peekCodePoint(0),d=this.peekCodePoint(1);return A!==ke||!Ve(d)&&d!==pe||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case me:if(this.peekCodePoint(0)===Zt)return this.consumeCodePoint(),dn;if(this.peekCodePoint(0)===me)return this.consumeCodePoint(),An;break;case ve:if(this.peekCodePoint(0)===Zt)return this.consumeCodePoint(),gn;break;case De:return _n}return Ze(t)?(this.consumeWhiteSpace(),En):Xe(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):tn(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:u(t)}},t.prototype.consumeCodePoint=function(){var t=this._value.shift();return void 0===t?-1:t},t.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},t.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},t.prototype.consumeUnicodeRangeToken=function(){for(var t=[],e=this.consumeCodePoint();Ve(e)&&t.length<6;)t.push(e),e=this.consumeCodePoint();for(var n=!1;e===pe&&t.length<6;)t.push(e),e=this.consumeCodePoint(),n=!0;if(n)return{type:30,start:parseInt(u.apply(void 0,t.map((function(t){return t===pe?Oe:t}))),16),end:parseInt(u.apply(void 0,t.map((function(t){return t===pe?je:t}))),16)};var r=parseInt(u.apply(void 0,t),16);if(this.peekCodePoint(0)===se&&Ve(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var i=[];Ve(e)&&i.length<6;)i.push(e),e=this.consumeCodePoint();return{type:30,start:r,end:parseInt(u.apply(void 0,i),16)}}return{type:30,start:r,end:r}},t.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return"url"===t.toLowerCase()&&this.peekCodePoint(0)===ie?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===ie?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},t.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===De)return{type:22,value:""};var e=this.peekCodePoint(0);if(e===re||e===Jt){var n=this.consumeStringToken(this.consumeCodePoint());return 0===n.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===De||this.peekCodePoint(0)===ae)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),vn)}for(;;){var r=this.consumeCodePoint();if(r===De||r===ae)return{type:22,value:u.apply(void 0,t)};if(Ze(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===De||this.peekCodePoint(0)===ae?(this.consumeCodePoint(),{type:22,value:u.apply(void 0,t)}):(this.consumeBadUrlRemnants(),vn);if(r===Jt||r===re||r===ie||nn(r))return this.consumeBadUrlRemnants(),vn;if(r===Wt){if(!rn(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),vn;t.push(this.consumeEscapedCodePoint())}else t.push(r)}},t.prototype.consumeWhiteSpace=function(){for(;Ze(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(t===ae||t===De)return;rn(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(t){for(var e=5e4,n="";t>0;){var r=Math.min(e,t);n+=u.apply(void 0,this._value.splice(0,r)),t-=r}return this._value.shift(),n},t.prototype.consumeStringToken=function(t){for(var e="",n=0;;){var r=this._value[n];if(r===De||void 0===r||r===t)return{type:0,value:e+=this.consumeStringSlice(n)};if(r===Gt)return this._value.splice(0,n),wn;if(r===Wt){var i=this._value[n+1];i!==De&&void 0!==i&&(i===Gt?(e+=this.consumeStringSlice(n),n=-1,this._value.shift()):rn(r,i)&&(e+=this.consumeStringSlice(n),e+=u(this.consumeEscapedCodePoint()),n=-1))}n++}},t.prototype.consumeNumber=function(){var t=[],e=zt,n=this.peekCodePoint(0);for(n!==ke&&n!==se||t.push(this.consumeCodePoint());Xe(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(n===Ee&&Xe(r))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=Xt;Xe(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((n===$e||n===Ne)&&((r===ke||r===se)&&Xe(i)||Xe(r)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=Xt;Xe(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[sn(t),e]},t.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),e=t[0],n=t[1],r=this.peekCodePoint(0),i=this.peekCodePoint(1),a=this.peekCodePoint(2);return an(r,i,a)?{type:15,number:e,flags:n,unit:this.consumeName()}:r===ne?(this.consumeCodePoint(),{type:16,number:e,flags:n}):{type:17,number:e,flags:n}},t.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(Ve(t)){for(var e=u(t);Ve(this.peekCodePoint(0))&&e.length<6;)e+=u(this.consumeCodePoint());Ze(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(e,16);return 0===n||Ge(n)||n>1114111?ye:n}return t===De?ye:t},t.prototype.consumeName=function(){for(var t="";;){var e=this.consumeCodePoint();if(en(e))t+=u(e);else{if(!rn(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),t;t+=u(this.consumeEscapedCodePoint())}}},t}(),Ln=function(){function t(t){this._tokens=t}return t.create=function(e){var n=new Sn;return n.write(e),new t(n.read())},t.parseValue=function(e){return t.create(e).parseComponentValue()},t.parseValues=function(e){return t.create(e).parseComponentValues()},t.prototype.parseComponentValue=function(){for(var t=this.consumeToken();31===t.type;)t=this.consumeToken();if(32===t.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var e=this.consumeComponentValue();do{t=this.consumeToken()}while(31===t.type);if(32===t.type)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){for(var t=[];;){var e=this.consumeComponentValue();if(32===e.type)return t;t.push(e),t.push()}},t.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t},t.prototype.consumeSimpleBlock=function(t){for(var e={type:t,values:[]},n=this.consumeToken();;){if(32===n.type||Rn(n,t))return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue()),n=this.consumeToken()}},t.prototype.consumeFunction=function(t){for(var e={name:t.value,values:[],type:18};;){var n=this.consumeToken();if(32===n.type||3===n.type)return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var t=this._tokens.shift();return void 0===t?_n:t},t.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},t}(),In=function(t){return 15===t.type},Mn=function(t){return 17===t.type},Fn=function(t){return 20===t.type},Dn=function(t){return 0===t.type},On=function(t,e){return Fn(t)&&t.value===e},Qn=function(t){return 31!==t.type},Nn=function(t){return 31!==t.type&&4!==t.type},Pn=function(t){var e=[],n=[];return t.forEach((function(t){if(4===t.type){if(0===n.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(n),void(n=[])}31!==t.type&&n.push(t)})),n.length&&e.push(n),e},Rn=function(t,e){return 11===e&&12===t.type||28===e&&29===t.type||2===e&&3===t.type},Un=function(t){return 17===t.type||15===t.type},Hn=function(t){return 16===t.type||Un(t)},$n=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},jn={type:17,number:0,flags:zt},Kn={type:16,number:50,flags:zt},zn={type:16,number:100,flags:zt},Xn=function(t,e,n){var r=t[0],i=t[1];return[Gn(r,e),Gn(void 0!==i?i:r,n)]},Gn=function(t,e){if(16===t.type)return t.number/100*e;if(In(t))switch(t.unit){case"rem":case"em":return 16*t.number;default:return t.number}return t.number},Vn="deg",Wn="grad",qn="rad",Yn="turn",Jn={name:"angle",parse:function(t,e){if(15===e.type)switch(e.unit){case Vn:return Math.PI*e.number/180;case Wn:return Math.PI/200*e.number;case qn:return e.number;case Yn:return 2*Math.PI*e.number}throw new Error("Unsupported angle type")}},Zn=function(t){return 15===t.type&&(t.unit===Vn||t.unit===Wn||t.unit===qn||t.unit===Yn)},tr=function(t){switch(t.filter(Fn).map((function(t){return t.value})).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[jn,jn];case"to top":case"bottom":return er(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[jn,zn];case"to right":case"left":return er(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[zn,zn];case"to bottom":case"top":return er(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[zn,jn];case"to left":case"right":return er(270)}return 0},er=function(t){return Math.PI*t/180},nr={name:"color",parse:function(t,e){if(18===e.type){var n=ur[e.name];if(void 0===n)throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return n(t,e.values)}if(5===e.type){if(3===e.value.length){var r=e.value.substring(0,1),i=e.value.substring(1,2),a=e.value.substring(2,3);return ar(parseInt(r+r,16),parseInt(i+i,16),parseInt(a+a,16),1)}if(4===e.value.length){r=e.value.substring(0,1),i=e.value.substring(1,2),a=e.value.substring(2,3);var o=e.value.substring(3,4);return ar(parseInt(r+r,16),parseInt(i+i,16),parseInt(a+a,16),parseInt(o+o,16)/255)}if(6===e.value.length)return r=e.value.substring(0,2),i=e.value.substring(2,4),a=e.value.substring(4,6),ar(parseInt(r,16),parseInt(i,16),parseInt(a,16),1);if(8===e.value.length)return r=e.value.substring(0,2),i=e.value.substring(2,4),a=e.value.substring(4,6),o=e.value.substring(6,8),ar(parseInt(r,16),parseInt(i,16),parseInt(a,16),parseInt(o,16)/255)}if(20===e.type){var s=fr[e.value.toUpperCase()];if(void 0!==s)return s}return fr.TRANSPARENT}},rr=function(t){return 0==(255&t)},ir=function(t){var e=255&t,n=255&t>>8,r=255&t>>16,i=255&t>>24;return e<255?"rgba("+i+","+r+","+n+","+e/255+")":"rgb("+i+","+r+","+n+")"},ar=function(t,e,n,r){return(t<<24|e<<16|n<<8|Math.round(255*r)<<0)>>>0},or=function(t,e){if(17===t.type)return t.number;if(16===t.type){var n=3===e?1:255;return 3===e?t.number/100*n:Math.round(t.number/100*n)}return 0},sr=function(t,e){var n=e.filter(Nn);if(3===n.length){var r=n.map(or),i=r[0],a=r[1],o=r[2];return ar(i,a,o,1)}if(4===n.length){var s=n.map(or),c=(i=s[0],a=s[1],o=s[2],s[3]);return ar(i,a,o,c)}return 0};function cr(t,e,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(e-t)*n*6+t:n<.5?e:n<2/3?6*(e-t)*(2/3-n)+t:t}var lr=function(t,e){var n=e.filter(Nn),r=n[0],i=n[1],a=n[2],o=n[3],s=(17===r.type?er(r.number):Jn.parse(t,r))/(2*Math.PI),c=Hn(i)?i.number/100:0,l=Hn(a)?a.number/100:0,u=void 0!==o&&Hn(o)?Gn(o,1):1;if(0===c)return ar(255*l,255*l,255*l,1);var h=l<=.5?l*(c+1):l+c-l*c,f=2*l-h,A=cr(f,h,s+1/3),d=cr(f,h,s),g=cr(f,h,s-1/3);return ar(255*A,255*d,255*g,u)},ur={hsl:lr,hsla:lr,rgb:sr,rgba:sr},hr=function(t,e){return nr.parse(t,Ln.create(e).parseComponentValue())},fr={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Ar={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map((function(t){if(Fn(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},dr={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},gr=function(t,e){var n=nr.parse(t,e[0]),r=e[1];return r&&Hn(r)?{color:n,stop:r}:{color:n,stop:null}},pr=function(t,e){var n=t[0],r=t[t.length-1];null===n.stop&&(n.stop=jn),null===r.stop&&(r.stop=zn);for(var i=[],a=0,o=0;oa?i.push(c):i.push(a),a=c}else i.push(null)}var l=null;for(o=0;ot.optimumDistance)?{optimumCorner:e,optimumDistance:s}:t}),{optimumDistance:i?1/0:-1/0,optimumCorner:null}).optimumCorner},yr=function(t,e,n,r,i){var a=0,o=0;switch(t.size){case 0:0===t.shape?a=o=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(n),Math.abs(n-i)):1===t.shape&&(a=Math.min(Math.abs(e),Math.abs(e-r)),o=Math.min(Math.abs(n),Math.abs(n-i)));break;case 2:if(0===t.shape)a=o=Math.min(vr(e,n),vr(e,n-i),vr(e-r,n),vr(e-r,n-i));else if(1===t.shape){var s=Math.min(Math.abs(n),Math.abs(n-i))/Math.min(Math.abs(e),Math.abs(e-r)),c=wr(r,i,e,n,!0),l=c[0],u=c[1];o=s*(a=vr(l-e,(u-n)/s))}break;case 1:0===t.shape?a=o=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(n),Math.abs(n-i)):1===t.shape&&(a=Math.max(Math.abs(e),Math.abs(e-r)),o=Math.max(Math.abs(n),Math.abs(n-i)));break;case 3:if(0===t.shape)a=o=Math.max(vr(e,n),vr(e,n-i),vr(e-r,n),vr(e-r,n-i));else if(1===t.shape){s=Math.max(Math.abs(n),Math.abs(n-i))/Math.max(Math.abs(e),Math.abs(e-r));var h=wr(r,i,e,n,!1);l=h[0],u=h[1],o=s*(a=vr(l-e,(u-n)/s))}}return Array.isArray(t.size)&&(a=Gn(t.size[0],r),o=2===t.size.length?Gn(t.size[1],i):a),[a,o]},xr=function(t,e){var n=er(180),r=[];return Pn(e).forEach((function(e,i){if(0===i){var a=e[0];if(20===a.type&&"to"===a.value)return void(n=tr(e));if(Zn(a))return void(n=Jn.parse(t,a))}var o=gr(t,e);r.push(o)})),{angle:n,stops:r,type:1}},kr=function(t,e){var n=er(180),r=[];return Pn(e).forEach((function(e,i){if(0===i){var a=e[0];if(20===a.type&&-1!==["top","left","right","bottom"].indexOf(a.value))return void(n=tr(e));if(Zn(a))return void(n=(Jn.parse(t,a)+er(270))%er(360))}var o=gr(t,e);r.push(o)})),{angle:n,stops:r,type:1}},Cr=function(t,e){var n=er(180),r=[],i=1,a=0,o=3,s=[];return Pn(e).forEach((function(e,n){var a=e[0];if(0===n){if(Fn(a)&&"linear"===a.value)return void(i=1);if(Fn(a)&&"radial"===a.value)return void(i=2)}if(18===a.type)if("from"===a.name){var o=nr.parse(t,a.values[0]);r.push({stop:jn,color:o})}else if("to"===a.name)o=nr.parse(t,a.values[0]),r.push({stop:zn,color:o});else if("color-stop"===a.name){var s=a.values.filter(Nn);if(2===s.length){o=nr.parse(t,s[1]);var c=s[0];Mn(c)&&r.push({stop:{type:16,number:100*c.number,flags:c.flags},color:o})}}})),1===i?{angle:(n+er(180))%er(360),stops:r,type:i}:{size:o,shape:a,stops:r,position:s,type:i}},Br="closest-side",Tr="farthest-side",Er="closest-corner",_r="farthest-corner",Sr="circle",Lr="ellipse",Ir="cover",Mr="contain",Fr=function(t,e){var n=0,r=3,i=[],a=[];return Pn(e).forEach((function(e,o){var s=!0;if(0===o){var c=!1;s=e.reduce((function(t,e){if(c)if(Fn(e))switch(e.value){case"center":return a.push(Kn),t;case"top":case"left":return a.push(jn),t;case"right":case"bottom":return a.push(zn),t}else(Hn(e)||Un(e))&&a.push(e);else if(Fn(e))switch(e.value){case Sr:return n=0,!1;case Lr:return n=1,!1;case"at":return c=!0,!1;case Br:return r=0,!1;case Ir:case Tr:return r=1,!1;case Mr:case Er:return r=2,!1;case _r:return r=3,!1}else if(Un(e)||Hn(e))return Array.isArray(r)||(r=[]),r.push(e),!1;return t}),s)}if(s){var l=gr(t,e);i.push(l)}})),{size:r,shape:n,stops:i,position:a,type:2}},Dr=function(t,e){var n=0,r=3,i=[],a=[];return Pn(e).forEach((function(e,o){var s=!0;if(0===o?s=e.reduce((function(t,e){if(Fn(e))switch(e.value){case"center":return a.push(Kn),!1;case"top":case"left":return a.push(jn),!1;case"right":case"bottom":return a.push(zn),!1}else if(Hn(e)||Un(e))return a.push(e),!1;return t}),s):1===o&&(s=e.reduce((function(t,e){if(Fn(e))switch(e.value){case Sr:return n=0,!1;case Lr:return n=1,!1;case Mr:case Br:return r=0,!1;case Tr:return r=1,!1;case Er:return r=2,!1;case Ir:case _r:return r=3,!1}else if(Un(e)||Hn(e))return Array.isArray(r)||(r=[]),r.push(e),!1;return t}),s)),s){var c=gr(t,e);i.push(c)}})),{size:r,shape:n,stops:i,position:a,type:2}},Or=function(t){return 1===t.type},Qr=function(t){return 2===t.type},Nr={name:"image",parse:function(t,e){if(22===e.type){var n={url:e.value,type:0};return t.cache.addImage(e.value),n}if(18===e.type){var r=Ur[e.name];if(void 0===r)throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return r(t,e.values)}throw new Error("Unsupported image type "+e.type)}};function Pr(t){return!(20===t.type&&"none"===t.value||18===t.type&&!Ur[t.name])}var Rr,Ur={"linear-gradient":xr,"-moz-linear-gradient":kr,"-ms-linear-gradient":kr,"-o-linear-gradient":kr,"-webkit-linear-gradient":kr,"radial-gradient":Fr,"-moz-radial-gradient":Dr,"-ms-radial-gradient":Dr,"-o-radial-gradient":Dr,"-webkit-radial-gradient":Dr,"-webkit-gradient":Cr},Hr={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(0===e.length)return[];var n=e[0];return 20===n.type&&"none"===n.value?[]:e.filter((function(t){return Nn(t)&&Pr(t)})).map((function(e){return Nr.parse(t,e)}))}},$r={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map((function(t){if(Fn(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},jr={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,e){return Pn(e).map((function(t){return t.filter(Hn)})).map($n)}},Kr={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,e){return Pn(e).map((function(t){return t.filter(Fn).map((function(t){return t.value})).join(" ")})).map(zr)}},zr=function(t){switch(t){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}};!function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"}(Rr||(Rr={}));var Xr,Gr={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,e){return Pn(e).map((function(t){return t.filter(Vr)}))}},Vr=function(t){return Fn(t)||Hn(t)},Wr=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},qr=Wr("top"),Yr=Wr("right"),Jr=Wr("bottom"),Zr=Wr("left"),ti=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(t,e){return $n(e.filter(Hn))}}},ei=ti("top-left"),ni=ti("top-right"),ri=ti("bottom-right"),ii=ti("bottom-left"),ai=function(t){return{name:"border-"+t+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(t,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},oi=ai("top"),si=ai("right"),ci=ai("bottom"),li=ai("left"),ui=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return In(e)?e.number:0}}},hi=ui("top"),fi=ui("right"),Ai=ui("bottom"),di=ui("left"),gi={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},pi={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,e){return"rtl"===e?1:0}},bi={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,e){return e.filter(Fn).reduce((function(t,e){return t|mi(e.value)}),0)}},mi=function(t){switch(t){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},vi={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},wi={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(t,e){return 20===e.type&&"normal"===e.value?0:17===e.type||15===e.type?e.number:0}};!function(t){t.NORMAL="normal",t.STRICT="strict"}(Xr||(Xr={}));var yi,xi={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){return"strict"===e?Xr.STRICT:Xr.NORMAL}},ki={name:"line-height",initialValue:"normal",prefix:!1,type:4},Ci=function(t,e){return Fn(t)&&"normal"===t.value?1.2*e:17===t.type?e*t.number:Hn(t)?Gn(t,e):e},Bi={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,e){return 20===e.type&&"none"===e.value?null:Nr.parse(t,e)}},Ti={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(t,e){return"inside"===e?0:1}},Ei={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},_i=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:4}},Si=_i("top"),Li=_i("right"),Ii=_i("bottom"),Mi=_i("left"),Fi={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,e){return e.filter(Fn).map((function(t){switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}}))}},Di={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){return"break-word"===e?"break-word":"normal"}},Oi=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Qi=Oi("top"),Ni=Oi("right"),Pi=Oi("bottom"),Ri=Oi("left"),Ui={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(t,e){switch(e){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},Hi={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(t,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},$i={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return 1===e.length&&On(e[0],"none")?[]:Pn(e).map((function(e){for(var n={color:fr.TRANSPARENT,offsetX:jn,offsetY:jn,blur:jn},r=0,i=0;i1?1:0],this.overflowWrap=ka(t,Di,e.overflowWrap),this.paddingTop=ka(t,Qi,e.paddingTop),this.paddingRight=ka(t,Ni,e.paddingRight),this.paddingBottom=ka(t,Pi,e.paddingBottom),this.paddingLeft=ka(t,Ri,e.paddingLeft),this.paintOrder=ka(t,ba,e.paintOrder),this.position=ka(t,Hi,e.position),this.textAlign=ka(t,Ui,e.textAlign),this.textDecorationColor=ka(t,na,null!==(n=e.textDecorationColor)&&void 0!==n?n:e.color),this.textDecorationLine=ka(t,ra,null!==(r=e.textDecorationLine)&&void 0!==r?r:e.textDecoration),this.textShadow=ka(t,$i,e.textShadow),this.textTransform=ka(t,ji,e.textTransform),this.transform=ka(t,Ki,e.transform),this.transformOrigin=ka(t,qi,e.transformOrigin),this.visibility=ka(t,Yi,e.visibility),this.webkitTextStrokeColor=ka(t,ma,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=ka(t,va,e.webkitTextStrokeWidth),this.wordBreak=ka(t,Ji,e.wordBreak),this.zIndex=ka(t,Zi,e.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},t.prototype.isTransparent=function(){return rr(this.backgroundColor)},t.prototype.isTransformed=function(){return null!==this.transform},t.prototype.isPositioned=function(){return 0!==this.position},t.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},t.prototype.isFloating=function(){return 0!==this.float},t.prototype.isInlineLevel=function(){return la(this.display,4)||la(this.display,33554432)||la(this.display,268435456)||la(this.display,536870912)||la(this.display,67108864)||la(this.display,134217728)},t}(),ya=function(){function t(t,e){this.content=ka(t,ua,e.content),this.quotes=ka(t,da,e.quotes)}return t}(),xa=function(){function t(t,e){this.counterIncrement=ka(t,ha,e.counterIncrement),this.counterReset=ka(t,fa,e.counterReset)}return t}(),ka=function(t,e,n){var r=new Sn,i=null!=n?n.toString():e.initialValue;r.write(i);var a=new Ln(r.read());switch(e.type){case 2:var o=a.parseComponentValue();return e.parse(t,Fn(o)?o.value:e.initialValue);case 0:return e.parse(t,a.parseComponentValue());case 1:return e.parse(t,a.parseComponentValues());case 4:return a.parseComponentValue();case 3:switch(e.format){case"angle":return Jn.parse(t,a.parseComponentValue());case"color":return nr.parse(t,a.parseComponentValue());case"image":return Nr.parse(t,a.parseComponentValue());case"length":var s=a.parseComponentValue();return Un(s)?s:jn;case"length-percentage":var c=a.parseComponentValue();return Hn(c)?c:jn;case"time":return ta.parse(t,a.parseComponentValue())}}},Ca="data-html2canvas-debug",Ba=function(t){switch(t.getAttribute(Ca)){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Ta=function(t,e){var n=Ba(t);return 1===n||e===n},Ea=function(){function t(t,e){this.context=t,this.textNodes=[],this.elements=[],this.flags=0,Ta(e,3),this.styles=new wa(t,window.getComputedStyle(e,null)),gs(e)&&(this.styles.animationDuration.some((function(t){return t>0}))&&(e.style.animationDuration="0s"),null!==this.styles.transform&&(e.style.transform="none")),this.bounds=s(this.context,e),Ta(e,4)&&(this.flags|=16)}return t}(),_a="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Sa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",La="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Ia=0;Ia>4,u[c++]=(15&r)<<4|i>>2,u[c++]=(3&i)<<6|63&a;return l},Fa=function(t){for(var e=t.length,n=[],r=0;r>Oa,Ra=(1<>Oa)+32,Ha=65536>>Qa,$a=(1<=0){if(t<55296||t>56319&&t<=65535)return e=((e=this.index[t>>Oa])<>Oa)])<>Qa),e=this.index[e],e+=t>>Oa&$a,e=((e=this.index[e])<=55296&&i<=56319&&n>10),o%1024+56320)),(i+1===n||r.length>16384)&&(a+=String.fromCharCode.apply(String,r),r.length=0)}return a},Ao=za(_a),go="×",po="÷",bo=function(t){return Ao.get(t)},mo=function(t,e,n){var r=n-2,i=e[r],a=e[n-1],o=e[n];if(a===Ja&&o===Za)return go;if(a===Ja||a===Za||a===to)return po;if(o===Ja||o===Za||o===to)return po;if(a===ro&&-1!==[ro,io,oo,so].indexOf(o))return go;if(!(a!==oo&&a!==io||o!==io&&o!==ao))return go;if((a===so||a===ao)&&o===ao)return go;if(o===co||o===eo)return go;if(o===no)return go;if(a===Ya)return go;if(a===co&&o===lo){for(;i===eo;)i=e[--r];if(i===lo)return go}if(a===uo&&o===uo){for(var s=0;i===uo;)s++,i=e[--r];if(s%2==0)return go}return po},vo=function(t){var e=ho(t),n=e.length,r=0,i=0,a=e.map(bo);return{next:function(){if(r>=n)return{done:!0,value:null};for(var t=go;ro.x||i.y>o.y;return o=i,0===e||s}));return t.body.removeChild(e),s},ko=function(){return void 0!==(new Image).crossOrigin},Co=function(){return"string"==typeof(new XMLHttpRequest).responseType},Bo=function(t){var e=new Image,n=t.createElement("canvas"),r=n.getContext("2d");if(!r)return!1;e.src="data:image/svg+xml,";try{r.drawImage(e,0,0),n.toDataURL()}catch(t){return!1}return!0},To=function(t){return 0===t[0]&&255===t[1]&&0===t[2]&&255===t[3]},Eo=function(t){var e=t.createElement("canvas"),n=100;e.width=n,e.height=n;var r=e.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,n,n);var i=new Image,a=e.toDataURL();i.src=a;var o=_o(n,n,0,0,i);return r.fillStyle="red",r.fillRect(0,0,n,n),So(o).then((function(e){r.drawImage(e,0,0);var i=r.getImageData(0,0,n,n).data;r.fillStyle="red",r.fillRect(0,0,n,n);var o=t.createElement("div");return o.style.backgroundImage="url("+a+")",o.style.height=n+"px",To(i)?So(_o(n,n,0,0,o)):Promise.reject(!1)})).then((function(t){return r.drawImage(t,0,0),To(r.getImageData(0,0,n,n).data)})).catch((function(){return!1}))},_o=function(t,e,n,r,i){var a="http://www.w3.org/2000/svg",o=document.createElementNS(a,"svg"),s=document.createElementNS(a,"foreignObject");return o.setAttributeNS(null,"width",t.toString()),o.setAttributeNS(null,"height",e.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",n.toString()),s.setAttributeNS(null,"y",r.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(s),s.appendChild(i),o},So=function(t){return new Promise((function(e,n){var r=new Image;r.onload=function(){return e(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(t))}))},Lo={get SUPPORT_RANGE_BOUNDS(){var t=yo(document);return Object.defineProperty(Lo,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=Lo.SUPPORT_RANGE_BOUNDS&&xo(document);return Object.defineProperty(Lo,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=Bo(document);return Object.defineProperty(Lo,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t="function"==typeof Array.from&&"function"==typeof window.fetch?Eo(document):Promise.resolve(!1);return Object.defineProperty(Lo,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=ko();return Object.defineProperty(Lo,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t=Co();return Object.defineProperty(Lo,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Lo,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var t=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(Lo,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}},Io=function(){function t(t,e){this.text=t,this.bounds=e}return t}(),Mo=function(t,e,n,r){var i=No(e,n),a=[],s=0;return i.forEach((function(e){if(n.textDecorationLine.length||e.trim().length>0)if(Lo.SUPPORT_RANGE_BOUNDS){var i=Do(r,s,e.length).getClientRects();if(i.length>1){var c=Oo(e),l=0;c.forEach((function(e){a.push(new Io(e,o.fromDOMRectList(t,Do(r,l+s,e.length).getClientRects()))),l+=e.length}))}else a.push(new Io(e,o.fromDOMRectList(t,i)))}else{var u=r.splitText(e.length);a.push(new Io(e,Fo(t,r))),r=u}else Lo.SUPPORT_RANGE_BOUNDS||(r=r.splitText(e.length));s+=e.length})),a},Fo=function(t,e){var n=e.ownerDocument;if(n){var r=n.createElement("html2canvaswrapper");r.appendChild(e.cloneNode(!0));var i=e.parentNode;if(i){i.replaceChild(r,e);var a=s(t,r);return r.firstChild&&i.replaceChild(r.firstChild,r),a}}return o.EMPTY},Do=function(t,e,n){var r=t.ownerDocument;if(!r)throw new Error("Node has no owner document");var i=r.createRange();return i.setStart(t,e),i.setEnd(t,e+n),i},Oo=function(t){if(Lo.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(t)).map((function(t){return t.segment}))}return wo(t)},Qo=function(t,e){if(Lo.SUPPORT_NATIVE_TEXT_SEGMENTATION){var n=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(n.segment(t)).map((function(t){return t.segment}))}return Ro(t,e)},No=function(t,e){return 0!==e.letterSpacing?Oo(t):Qo(t,e)},Po=[32,160,4961,65792,65793,4153,4241],Ro=function(t,e){for(var n,r=$t(t,{lineBreak:e.lineBreak,wordBreak:"break-word"===e.overflowWrap?"break-word":e.wordBreak}),i=[],a=function(){if(n.value){var t=n.value.slice(),e=l(t),r="";e.forEach((function(t){-1===Po.indexOf(t)?r+=u(t):(r.length&&i.push(r),i.push(u(t)),r="")})),r.length&&i.push(r)}};!(n=r.next()).done;)a();return i},Uo=function(){function t(t,e,n){this.text=Ho(e.data,n.textTransform),this.textBounds=Mo(t,this.text,n,e)}return t}(),Ho=function(t,e){switch(e){case 1:return t.toLowerCase();case 3:return t.replace($o,jo);case 2:return t.toUpperCase();default:return t}},$o=/(^|\s|:|-|\(|\))([a-z])/g,jo=function(t,e,n){return t.length>0?e+n.toUpperCase():t},Ko=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r.src=n.currentSrc||n.src,r.intrinsicWidth=n.naturalWidth,r.intrinsicHeight=n.naturalHeight,r.context.cache.addImage(r.src),r}return e(n,t),n}(Ea),zo=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r.canvas=n,r.intrinsicWidth=n.width,r.intrinsicHeight=n.height,r}return e(n,t),n}(Ea),Xo=function(t){function n(e,n){var r=t.call(this,e,n)||this,i=new XMLSerializer,a=s(e,n);return n.setAttribute("width",a.width+"px"),n.setAttribute("height",a.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(n)),r.intrinsicWidth=n.width.baseVal.value,r.intrinsicHeight=n.height.baseVal.value,r.context.cache.addImage(r.svg),r}return e(n,t),n}(Ea),Go=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r.value=n.value,r}return e(n,t),n}(Ea),Vo=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r.start=n.start,r.reversed="boolean"==typeof n.reversed&&!0===n.reversed,r}return e(n,t),n}(Ea),Wo=[{type:15,flags:0,unit:"px",number:3}],qo=[{type:16,flags:0,number:50}],Yo=function(t){return t.width>t.height?new o(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width0)n.textNodes.push(new Uo(t,i,n.styles));else if(ds(i))if(Is(i)&&i.assignedNodes)i.assignedNodes().forEach((function(e){return cs(t,e,n,r)}));else{var o=ls(t,i);o.styles.isVisible()&&(hs(i,o,r)?o.flags|=4:fs(o.styles)&&(o.flags|=2),-1!==ss.indexOf(i.tagName)&&(o.flags|=8),n.elements.push(o),i.slot,i.shadowRoot?cs(t,i.shadowRoot,o,r):Ss(i)||ys(i)||Ls(i)||cs(t,i,o,r))}},ls=function(t,e){return Bs(e)?new Ko(t,e):ks(e)?new zo(t,e):ys(e)?new Xo(t,e):bs(e)?new Go(t,e):ms(e)?new Vo(t,e):vs(e)?new rs(t,e):Ls(e)?new is(t,e):Ss(e)?new as(t,e):Ts(e)?new os(t,e):new Ea(t,e)},us=function(t,e){var n=ls(t,e);return n.flags|=4,cs(t,e,n,n),n},hs=function(t,e,n){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||xs(t)&&n.styles.isTransparent()},fs=function(t){return t.isPositioned()||t.isFloating()},As=function(t){return t.nodeType===Node.TEXT_NODE},ds=function(t){return t.nodeType===Node.ELEMENT_NODE},gs=function(t){return ds(t)&&void 0!==t.style&&!ps(t)},ps=function(t){return"object"==typeof t.className},bs=function(t){return"LI"===t.tagName},ms=function(t){return"OL"===t.tagName},vs=function(t){return"INPUT"===t.tagName},ws=function(t){return"HTML"===t.tagName},ys=function(t){return"svg"===t.tagName},xs=function(t){return"BODY"===t.tagName},ks=function(t){return"CANVAS"===t.tagName},Cs=function(t){return"VIDEO"===t.tagName},Bs=function(t){return"IMG"===t.tagName},Ts=function(t){return"IFRAME"===t.tagName},Es=function(t){return"STYLE"===t.tagName},_s=function(t){return"SCRIPT"===t.tagName},Ss=function(t){return"TEXTAREA"===t.tagName},Ls=function(t){return"SELECT"===t.tagName},Is=function(t){return"SLOT"===t.tagName},Ms=function(t){return t.tagName.indexOf("-")>0},Fs=function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(t){var e=this.counters[t];return e&&e.length?e[e.length-1]:1},t.prototype.getCounterValues=function(t){var e=this.counters[t];return e||[]},t.prototype.pop=function(t){var e=this;t.forEach((function(t){return e.counters[t].pop()}))},t.prototype.parse=function(t){var e=this,n=t.counterIncrement,r=t.counterReset,i=!0;null!==n&&n.forEach((function(t){var n=e.counters[t.counter];n&&0!==t.increment&&(i=!1,n.length||n.push(1),n[Math.max(0,n.length-1)]+=t.increment)}));var a=[];return i&&r.forEach((function(t){var n=e.counters[t.counter];a.push(t.counter),n||(n=e.counters[t.counter]=[]),n.push(t.reset)})),a},t}(),Ds={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Os={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Qs={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Ns={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Ps=function(t,e,n,r,i,a){return tn?Ys(t,i,a.length>0):r.integers.reduce((function(e,n,i){for(;t>=n;)t-=n,e+=r.values[i];return e}),"")+a},Rs=function(t,e,n,r){var i="";do{n||t--,i=r(t)+i,t/=e}while(t*e>=e);return i},Us=function(t,e,n,r,i){var a=n-e+1;return(t<0?"-":"")+(Rs(Math.abs(t),a,r,(function(t){return u(Math.floor(t%a)+e)}))+i)},Hs=function(t,e,n){void 0===n&&(n=". ");var r=e.length;return Rs(Math.abs(t),r,!1,(function(t){return e[Math.floor(t%r)]}))+n},$s=1,js=2,Ks=4,zs=8,Xs=function(t,e,n,r,i,a){if(t<-9999||t>9999)return Ys(t,4,i.length>0);var o=Math.abs(t),s=i;if(0===o)return e[0]+s;for(var c=0;o>0&&c<=4;c++){var l=o%10;0===l&&la(a,$s)&&""!==s?s=e[l]+s:l>1||1===l&&0===c||1===l&&1===c&&la(a,js)||1===l&&1===c&&la(a,Ks)&&t>100||1===l&&c>1&&la(a,zs)?s=e[l]+(c>0?n[c-1]:"")+s:1===l&&c>0&&(s=n[c-1]+s),o=Math.floor(o/10)}return(t<0?r:"")+s},Gs="十百千萬",Vs="拾佰仟萬",Ws="マイナス",qs="마이너스",Ys=function(t,e,n){var r=n?". ":"",i=n?"、":"",a=n?", ":"",o=n?" ":"";switch(e){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:var s=Us(t,48,57,!0,r);return s.length<4?"0"+s:s;case 4:return Hs(t,"〇一二三四五六七八九",i);case 6:return Ps(t,1,3999,Ds,3,r).toLowerCase();case 7:return Ps(t,1,3999,Ds,3,r);case 8:return Us(t,945,969,!1,r);case 9:return Us(t,97,122,!1,r);case 10:return Us(t,65,90,!1,r);case 11:return Us(t,1632,1641,!0,r);case 12:case 49:return Ps(t,1,9999,Os,3,r);case 35:return Ps(t,1,9999,Os,3,r).toLowerCase();case 13:return Us(t,2534,2543,!0,r);case 14:case 30:return Us(t,6112,6121,!0,r);case 15:return Hs(t,"子丑寅卯辰巳午未申酉戌亥",i);case 16:return Hs(t,"甲乙丙丁戊己庚辛壬癸",i);case 17:case 48:return Xs(t,"零一二三四五六七八九",Gs,"負",i,js|Ks|zs);case 47:return Xs(t,"零壹貳參肆伍陸柒捌玖",Vs,"負",i,$s|js|Ks|zs);case 42:return Xs(t,"零一二三四五六七八九",Gs,"负",i,js|Ks|zs);case 41:return Xs(t,"零壹贰叁肆伍陆柒捌玖",Vs,"负",i,$s|js|Ks|zs);case 26:return Xs(t,"〇一二三四五六七八九","十百千万",Ws,i,0);case 25:return Xs(t,"零壱弐参四伍六七八九","拾百千万",Ws,i,$s|js|Ks);case 31:return Xs(t,"영일이삼사오육칠팔구","십백천만",qs,a,$s|js|Ks);case 33:return Xs(t,"零一二三四五六七八九","十百千萬",qs,a,0);case 32:return Xs(t,"零壹貳參四五六七八九","拾百千",qs,a,$s|js|Ks);case 18:return Us(t,2406,2415,!0,r);case 20:return Ps(t,1,19999,Ns,3,r);case 21:return Us(t,2790,2799,!0,r);case 22:return Us(t,2662,2671,!0,r);case 22:return Ps(t,1,10999,Qs,3,r);case 23:return Hs(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Hs(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Us(t,3302,3311,!0,r);case 28:return Hs(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",i);case 29:return Hs(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",i);case 34:return Us(t,3792,3801,!0,r);case 37:return Us(t,6160,6169,!0,r);case 38:return Us(t,4160,4169,!0,r);case 39:return Us(t,2918,2927,!0,r);case 40:return Us(t,1776,1785,!0,r);case 43:return Us(t,3046,3055,!0,r);case 44:return Us(t,3174,3183,!0,r);case 45:return Us(t,3664,3673,!0,r);case 46:return Us(t,3872,3881,!0,r);default:return Us(t,48,57,!0,r)}},Js="data-html2canvas-ignore",Zs=function(){function t(t,e,n){if(this.context=t,this.options=n,this.scrolledElements=[],this.referenceElement=e,this.counters=new Fs,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return t.prototype.toIFrame=function(t,e){var n=this,a=ec(t,e);if(!a.contentWindow)return Promise.reject("Unable to find iframe window");var o=t.defaultView.pageXOffset,s=t.defaultView.pageYOffset,c=a.contentWindow,l=c.document,u=ic(a).then((function(){return r(n,void 0,void 0,(function(){var t,n;return i(this,(function(r){switch(r.label){case 0:return this.scrolledElements.forEach(lc),c&&(c.scrollTo(e.left,e.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||c.scrollY===e.top&&c.scrollX===e.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(c.scrollX-e.left,c.scrollY-e.top,0,0))),t=this.options.onclone,void 0===(n=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:r.sent(),r.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,rc(l)]:[3,4];case 3:r.sent(),r.label=4;case 4:return"function"==typeof t?[2,Promise.resolve().then((function(){return t(l,n)})).then((function(){return a}))]:[2,a]}}))}))}));return l.open(),l.write(sc(document.doctype)+""),cc(this.referenceElement.ownerDocument,o,s),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),u},t.prototype.createElementClone=function(t){if(Ta(t,2),ks(t))return this.createCanvasClone(t);if(Cs(t))return this.createVideoClone(t);if(Es(t))return this.createStyleClone(t);var e=t.cloneNode(!1);return Bs(e)&&(Bs(t)&&t.currentSrc&&t.currentSrc!==t.src&&(e.src=t.currentSrc,e.srcset=""),"lazy"===e.loading&&(e.loading="eager")),Ms(e)?this.createCustomElementClone(e):e},t.prototype.createCustomElementClone=function(t){var e=document.createElement("html2canvascustomelement");return oc(t.style,e),e},t.prototype.createStyleClone=function(t){try{var e=t.sheet;if(e&&e.cssRules){var n=[].slice.call(e.cssRules,0).reduce((function(t,e){return e&&"string"==typeof e.cssText?t+e.cssText:t}),""),r=t.cloneNode(!1);return r.textContent=n,r}}catch(t){if(this.context.logger.error("Unable to access cssRules property",t),"SecurityError"!==t.name)throw t}return t.cloneNode(!1)},t.prototype.createCanvasClone=function(t){var e;if(this.options.inlineImages&&t.ownerDocument){var n=t.ownerDocument.createElement("img");try{return n.src=t.toDataURL(),n}catch(e){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}var r=t.cloneNode(!1);try{r.width=t.width,r.height=t.height;var i=t.getContext("2d"),a=r.getContext("2d");if(a)if(!this.options.allowTaint&&i)a.putImageData(i.getImageData(0,0,t.width,t.height),0,0);else{var o=null!==(e=t.getContext("webgl2"))&&void 0!==e?e:t.getContext("webgl");if(o){var s=o.getContextAttributes();!1===(null==s?void 0:s.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}a.drawImage(t,0,0)}return r}catch(e){this.context.logger.info("Unable to clone canvas as it is tainted",t)}return r},t.prototype.createVideoClone=function(t){var e=t.ownerDocument.createElement("canvas");e.width=t.offsetWidth,e.height=t.offsetHeight;var n=e.getContext("2d");try{return n&&(n.drawImage(t,0,0,e.width,e.height),this.options.allowTaint||n.getImageData(0,0,e.width,e.height)),e}catch(e){this.context.logger.info("Unable to clone video as it is tainted",t)}var r=t.ownerDocument.createElement("canvas");return r.width=t.offsetWidth,r.height=t.offsetHeight,r},t.prototype.appendChildNode=function(t,e,n){ds(e)&&(_s(e)||e.hasAttribute(Js)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(e))||this.options.copyStyles&&ds(e)&&Es(e)||t.appendChild(this.cloneNode(e,n))},t.prototype.cloneChildNodes=function(t,e,n){for(var r=this,i=t.shadowRoot?t.shadowRoot.firstChild:t.firstChild;i;i=i.nextSibling)if(ds(i)&&Is(i)&&"function"==typeof i.assignedNodes){var a=i.assignedNodes();a.length&&a.forEach((function(t){return r.appendChildNode(e,t,n)}))}else this.appendChildNode(e,i,n)},t.prototype.cloneNode=function(t,e){if(As(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var n=t.ownerDocument.defaultView;if(n&&ds(t)&&(gs(t)||ps(t))){var r=this.createElementClone(t);r.style.transitionProperty="none";var i=n.getComputedStyle(t),a=n.getComputedStyle(t,":before"),o=n.getComputedStyle(t,":after");this.referenceElement===t&&gs(r)&&(this.clonedReferenceElement=r),xs(r)&&gc(r);var s=this.counters.parse(new xa(this.context,i)),c=this.resolvePseudoContent(t,r,a,qa.BEFORE);Ms(t)&&(e=!0),Cs(t)||this.cloneChildNodes(t,r,e),c&&r.insertBefore(c,r.firstChild);var l=this.resolvePseudoContent(t,r,o,qa.AFTER);return l&&r.appendChild(l),this.counters.pop(s),(i&&(this.options.copyStyles||ps(t))&&!Ts(t)||e)&&oc(i,r),0===t.scrollTop&&0===t.scrollLeft||this.scrolledElements.push([r,t.scrollLeft,t.scrollTop]),(Ss(t)||Ls(t))&&(Ss(r)||Ls(r))&&(r.value=t.value),r}return t.cloneNode(!1)},t.prototype.resolvePseudoContent=function(t,e,n,r){var i=this;if(n){var a=n.content,o=e.ownerDocument;if(o&&a&&"none"!==a&&"-moz-alt-content"!==a&&"none"!==n.display){this.counters.parse(new xa(this.context,n));var s=new ya(this.context,n),c=o.createElement("html2canvaspseudoelement");oc(n,c),s.content.forEach((function(e){if(0===e.type)c.appendChild(o.createTextNode(e.value));else if(22===e.type){var n=o.createElement("img");n.src=e.value,n.style.opacity="1",c.appendChild(n)}else if(18===e.type){if("attr"===e.name){var r=e.values.filter(Fn);r.length&&c.appendChild(o.createTextNode(t.getAttribute(r[0].value)||""))}else if("counter"===e.name){var a=e.values.filter(Nn),l=a[0],u=a[1];if(l&&Fn(l)){var h=i.counters.getCounterValue(l.value),f=u&&Fn(u)?Ei.parse(i.context,u.value):3;c.appendChild(o.createTextNode(Ys(h,f,!1)))}}else if("counters"===e.name){var A=e.values.filter(Nn),d=(l=A[0],A[1]);if(u=A[2],l&&Fn(l)){var g=i.counters.getCounterValues(l.value),p=u&&Fn(u)?Ei.parse(i.context,u.value):3,b=d&&0===d.type?d.value:"",m=g.map((function(t){return Ys(t,p,!1)})).join(b);c.appendChild(o.createTextNode(m))}}}else if(20===e.type)switch(e.value){case"open-quote":c.appendChild(o.createTextNode(ga(s.quotes,i.quoteDepth++,!0)));break;case"close-quote":c.appendChild(o.createTextNode(ga(s.quotes,--i.quoteDepth,!1)));break;default:c.appendChild(o.createTextNode(e.value))}})),c.className=fc+" "+Ac;var l=r===qa.BEFORE?" "+fc:" "+Ac;return ps(e)?e.className.baseValue+=l:e.className+=l,c}}},t.destroy=function(t){return!!t.parentNode&&(t.parentNode.removeChild(t),!0)},t}();!function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"}(qa||(qa={}));var tc,ec=function(t,e){var n=t.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=e.width.toString(),n.height=e.height.toString(),n.scrolling="no",n.setAttribute(Js,"true"),t.body.appendChild(n),n},nc=function(t){return new Promise((function(e){t.complete?e():t.src?(t.onload=e,t.onerror=e):e()}))},rc=function(t){return Promise.all([].slice.call(t.images,0).map(nc))},ic=function(t){return new Promise((function(e,n){var r=t.contentWindow;if(!r)return n("No window assigned for iframe");var i=r.document;r.onload=t.onload=function(){r.onload=t.onload=null;var n=setInterval((function(){i.body.childNodes.length>0&&"complete"===i.readyState&&(clearInterval(n),e(t))}),50)}}))},ac=["all","d","content"],oc=function(t,e){for(var n=t.length-1;n>=0;n--){var r=t.item(n);-1===ac.indexOf(r)&&e.style.setProperty(r,t.getPropertyValue(r))}return e},sc=function(t){var e="";return t&&(e+=""),e},cc=function(t,e,n){t&&t.defaultView&&(e!==t.defaultView.pageXOffset||n!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,n)},lc=function(t){var e=t[0],n=t[1],r=t[2];e.scrollLeft=n,e.scrollTop=r},uc=":before",hc=":after",fc="___html2canvas___pseudoelement_before",Ac="___html2canvas___pseudoelement_after",dc='{\n content: "" !important;\n display: none !important;\n}',gc=function(t){pc(t,"."+fc+uc+dc+"\n ."+Ac+hc+dc)},pc=function(t,e){var n=t.ownerDocument;if(n){var r=n.createElement("style");r.textContent=e,t.appendChild(r)}},bc=function(){function t(){}return t.getOrigin=function(e){var n=t._link;return n?(n.href=e,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},t.isSameOrigin=function(e){return t.getOrigin(e)===t._origin},t.setContext=function(e){t._link=e.document.createElement("a"),t._origin=t.getOrigin(e.location.href)},t._origin="about:blank",t}(),mc=function(){function t(t,e){this.context=t,this._options=e,this._cache={}}return t.prototype.addImage=function(t){var e=Promise.resolve();return this.has(t)?e:Bc(t)||xc(t)?((this._cache[t]=this.loadImage(t)).catch((function(){})),e):e},t.prototype.match=function(t){return this._cache[t]},t.prototype.loadImage=function(t){return r(this,void 0,void 0,(function(){var e,n,r,a,o=this;return i(this,(function(i){switch(i.label){case 0:return e=bc.isSameOrigin(t),n=!kc(t)&&!0===this._options.useCORS&&Lo.SUPPORT_CORS_IMAGES&&!e,r=!kc(t)&&!e&&!Bc(t)&&"string"==typeof this._options.proxy&&Lo.SUPPORT_CORS_XHR&&!n,e||!1!==this._options.allowTaint||kc(t)||Bc(t)||r||n?(a=t,r?[4,this.proxy(a)]:[3,2]):[2];case 1:a=i.sent(),i.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise((function(t,e){var r=new Image;r.onload=function(){return t(r)},r.onerror=e,(Cc(a)||n)&&(r.crossOrigin="anonymous"),r.src=a,!0===r.complete&&setTimeout((function(){return t(r)}),500),o._options.imageTimeout>0&&setTimeout((function(){return e("Timed out ("+o._options.imageTimeout+"ms) loading image")}),o._options.imageTimeout)}))];case 3:return[2,i.sent()]}}))}))},t.prototype.has=function(t){return void 0!==this._cache[t]},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(t){var e=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=t.substring(0,256);return new Promise((function(i,a){var o=Lo.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;s.onload=function(){if(200===s.status)if("text"===o)i(s.response);else{var t=new FileReader;t.addEventListener("load",(function(){return i(t.result)}),!1),t.addEventListener("error",(function(t){return a(t)}),!1),t.readAsDataURL(s.response)}else a("Failed to proxy resource "+r+" with status code "+s.status)},s.onerror=a;var c=n.indexOf("?")>-1?"&":"?";if(s.open("GET",""+n+c+"url="+encodeURIComponent(t)+"&responseType="+o),"text"!==o&&s instanceof XMLHttpRequest&&(s.responseType=o),e._options.imageTimeout){var l=e._options.imageTimeout;s.timeout=l,s.ontimeout=function(){return a("Timed out ("+l+"ms) proxying "+r)}}s.send()}))},t}(),vc=/^data:image\/svg\+xml/i,wc=/^data:image\/.*;base64,/i,yc=/^data:image\/.*/i,xc=function(t){return Lo.SUPPORT_SVG_DRAWING||!Tc(t)},kc=function(t){return yc.test(t)},Cc=function(t){return wc.test(t)},Bc=function(t){return"blob"===t.substr(0,4)},Tc=function(t){return"svg"===t.substr(-3).toLowerCase()||vc.test(t)},Ec=function(){function t(t,e){this.type=0,this.x=t,this.y=e}return t.prototype.add=function(e,n){return new t(this.x+e,this.y+n)},t}(),_c=function(t,e,n){return new Ec(t.x+(e.x-t.x)*n,t.y+(e.y-t.y)*n)},Sc=function(){function t(t,e,n,r){this.type=1,this.start=t,this.startControl=e,this.endControl=n,this.end=r}return t.prototype.subdivide=function(e,n){var r=_c(this.start,this.startControl,e),i=_c(this.startControl,this.endControl,e),a=_c(this.endControl,this.end,e),o=_c(r,i,e),s=_c(i,a,e),c=_c(o,s,e);return n?new t(this.start,r,o,c):new t(c,s,a,this.end)},t.prototype.add=function(e,n){return new t(this.start.add(e,n),this.startControl.add(e,n),this.endControl.add(e,n),this.end.add(e,n))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),Lc=function(t){return 1===t.type},Ic=function(){function t(t){var e=t.styles,n=t.bounds,r=Xn(e.borderTopLeftRadius,n.width,n.height),i=r[0],a=r[1],o=Xn(e.borderTopRightRadius,n.width,n.height),s=o[0],c=o[1],l=Xn(e.borderBottomRightRadius,n.width,n.height),u=l[0],h=l[1],f=Xn(e.borderBottomLeftRadius,n.width,n.height),A=f[0],d=f[1],g=[];g.push((i+s)/n.width),g.push((A+u)/n.width),g.push((a+d)/n.height),g.push((c+h)/n.height);var p=Math.max.apply(Math,g);p>1&&(i/=p,a/=p,s/=p,c/=p,u/=p,h/=p,A/=p,d/=p);var b=n.width-s,m=n.height-h,v=n.width-u,w=n.height-d,y=e.borderTopWidth,x=e.borderRightWidth,k=e.borderBottomWidth,C=e.borderLeftWidth,B=Gn(e.paddingTop,t.bounds.width),T=Gn(e.paddingRight,t.bounds.width),E=Gn(e.paddingBottom,t.bounds.width),_=Gn(e.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||a>0?Mc(n.left+C/3,n.top+y/3,i-C/3,a-y/3,tc.TOP_LEFT):new Ec(n.left+C/3,n.top+y/3),this.topRightBorderDoubleOuterBox=i>0||a>0?Mc(n.left+b,n.top+y/3,s-x/3,c-y/3,tc.TOP_RIGHT):new Ec(n.left+n.width-x/3,n.top+y/3),this.bottomRightBorderDoubleOuterBox=u>0||h>0?Mc(n.left+v,n.top+m,u-x/3,h-k/3,tc.BOTTOM_RIGHT):new Ec(n.left+n.width-x/3,n.top+n.height-k/3),this.bottomLeftBorderDoubleOuterBox=A>0||d>0?Mc(n.left+C/3,n.top+w,A-C/3,d-k/3,tc.BOTTOM_LEFT):new Ec(n.left+C/3,n.top+n.height-k/3),this.topLeftBorderDoubleInnerBox=i>0||a>0?Mc(n.left+2*C/3,n.top+2*y/3,i-2*C/3,a-2*y/3,tc.TOP_LEFT):new Ec(n.left+2*C/3,n.top+2*y/3),this.topRightBorderDoubleInnerBox=i>0||a>0?Mc(n.left+b,n.top+2*y/3,s-2*x/3,c-2*y/3,tc.TOP_RIGHT):new Ec(n.left+n.width-2*x/3,n.top+2*y/3),this.bottomRightBorderDoubleInnerBox=u>0||h>0?Mc(n.left+v,n.top+m,u-2*x/3,h-2*k/3,tc.BOTTOM_RIGHT):new Ec(n.left+n.width-2*x/3,n.top+n.height-2*k/3),this.bottomLeftBorderDoubleInnerBox=A>0||d>0?Mc(n.left+2*C/3,n.top+w,A-2*C/3,d-2*k/3,tc.BOTTOM_LEFT):new Ec(n.left+2*C/3,n.top+n.height-2*k/3),this.topLeftBorderStroke=i>0||a>0?Mc(n.left+C/2,n.top+y/2,i-C/2,a-y/2,tc.TOP_LEFT):new Ec(n.left+C/2,n.top+y/2),this.topRightBorderStroke=i>0||a>0?Mc(n.left+b,n.top+y/2,s-x/2,c-y/2,tc.TOP_RIGHT):new Ec(n.left+n.width-x/2,n.top+y/2),this.bottomRightBorderStroke=u>0||h>0?Mc(n.left+v,n.top+m,u-x/2,h-k/2,tc.BOTTOM_RIGHT):new Ec(n.left+n.width-x/2,n.top+n.height-k/2),this.bottomLeftBorderStroke=A>0||d>0?Mc(n.left+C/2,n.top+w,A-C/2,d-k/2,tc.BOTTOM_LEFT):new Ec(n.left+C/2,n.top+n.height-k/2),this.topLeftBorderBox=i>0||a>0?Mc(n.left,n.top,i,a,tc.TOP_LEFT):new Ec(n.left,n.top),this.topRightBorderBox=s>0||c>0?Mc(n.left+b,n.top,s,c,tc.TOP_RIGHT):new Ec(n.left+n.width,n.top),this.bottomRightBorderBox=u>0||h>0?Mc(n.left+v,n.top+m,u,h,tc.BOTTOM_RIGHT):new Ec(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=A>0||d>0?Mc(n.left,n.top+w,A,d,tc.BOTTOM_LEFT):new Ec(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||a>0?Mc(n.left+C,n.top+y,Math.max(0,i-C),Math.max(0,a-y),tc.TOP_LEFT):new Ec(n.left+C,n.top+y),this.topRightPaddingBox=s>0||c>0?Mc(n.left+Math.min(b,n.width-x),n.top+y,b>n.width+x?0:Math.max(0,s-x),Math.max(0,c-y),tc.TOP_RIGHT):new Ec(n.left+n.width-x,n.top+y),this.bottomRightPaddingBox=u>0||h>0?Mc(n.left+Math.min(v,n.width-C),n.top+Math.min(m,n.height-k),Math.max(0,u-x),Math.max(0,h-k),tc.BOTTOM_RIGHT):new Ec(n.left+n.width-x,n.top+n.height-k),this.bottomLeftPaddingBox=A>0||d>0?Mc(n.left+C,n.top+Math.min(w,n.height-k),Math.max(0,A-C),Math.max(0,d-k),tc.BOTTOM_LEFT):new Ec(n.left+C,n.top+n.height-k),this.topLeftContentBox=i>0||a>0?Mc(n.left+C+_,n.top+y+B,Math.max(0,i-(C+_)),Math.max(0,a-(y+B)),tc.TOP_LEFT):new Ec(n.left+C+_,n.top+y+B),this.topRightContentBox=s>0||c>0?Mc(n.left+Math.min(b,n.width+C+_),n.top+y+B,b>n.width+C+_?0:s-C+_,c-(y+B),tc.TOP_RIGHT):new Ec(n.left+n.width-(x+T),n.top+y+B),this.bottomRightContentBox=u>0||h>0?Mc(n.left+Math.min(v,n.width-(C+_)),n.top+Math.min(m,n.height+y+B),Math.max(0,u-(x+T)),h-(k+E),tc.BOTTOM_RIGHT):new Ec(n.left+n.width-(x+T),n.top+n.height-(k+E)),this.bottomLeftContentBox=A>0||d>0?Mc(n.left+C+_,n.top+w,Math.max(0,A-(C+_)),d-(k+E),tc.BOTTOM_LEFT):new Ec(n.left+C+_,n.top+n.height-(k+E))}return t}();!function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(tc||(tc={}));var Mc=function(t,e,n,r,i){var a=(Math.sqrt(2)-1)/3*4,o=n*a,s=r*a,c=t+n,l=e+r;switch(i){case tc.TOP_LEFT:return new Sc(new Ec(t,l),new Ec(t,l-s),new Ec(c-o,e),new Ec(c,e));case tc.TOP_RIGHT:return new Sc(new Ec(t,e),new Ec(t+o,e),new Ec(c,l-s),new Ec(c,l));case tc.BOTTOM_RIGHT:return new Sc(new Ec(c,e),new Ec(c,e+s),new Ec(t+o,l),new Ec(t,l));case tc.BOTTOM_LEFT:default:return new Sc(new Ec(c,l),new Ec(c-o,l),new Ec(t,e+s),new Ec(t,e))}},Fc=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},Dc=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},Oc=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},Qc=function(){function t(t,e,n){this.offsetX=t,this.offsetY=e,this.matrix=n,this.type=0,this.target=6}return t}(),Nc=function(){function t(t,e){this.path=t,this.target=e,this.type=1}return t}(),Pc=function(){function t(t){this.opacity=t,this.type=2,this.target=6}return t}(),Rc=function(t){return 0===t.type},Uc=function(t){return 1===t.type},Hc=function(t){return 2===t.type},$c=function(t,e){return t.length===e.length&&t.some((function(t,n){return t===e[n]}))},jc=function(t,e,n,r,i){return t.map((function(t,a){switch(a){case 0:return t.add(e,n);case 1:return t.add(e+r,n);case 2:return t.add(e+r,n+i);case 3:return t.add(e,n+i)}return t}))},Kc=function(){function t(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),zc=function(){function t(t,e){if(this.container=t,this.parent=e,this.effects=[],this.curves=new Ic(this.container),this.container.styles.opacity<1&&this.effects.push(new Pc(this.container.styles.opacity)),null!==this.container.styles.transform){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new Qc(n,r,i))}if(0!==this.container.styles.overflowX){var a=Fc(this.curves),o=Oc(this.curves);$c(a,o)?this.effects.push(new Nc(a,6)):(this.effects.push(new Nc(a,2)),this.effects.push(new Nc(o,4)))}}return t.prototype.getEffects=function(t){for(var e=-1===[2,3].indexOf(this.container.styles.position),n=this.parent,r=this.effects.slice(0);n;){var i=n.effects.filter((function(t){return!Uc(t)}));if(e||0!==n.container.styles.position||!n.parent){if(r.unshift.apply(r,i),e=-1===[2,3].indexOf(n.container.styles.position),0!==n.container.styles.overflowX){var a=Fc(n.curves),o=Oc(n.curves);$c(a,o)||r.unshift(new Nc(o,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter((function(e){return la(e.target,t)}))},t}(),Xc=function(t,e,n,r){t.container.elements.forEach((function(i){var a=la(i.flags,4),o=la(i.flags,2),s=new zc(i,t);la(i.styles.display,2048)&&r.push(s);var c=la(i.flags,8)?[]:r;if(a||o){var l=a||i.styles.isPositioned()?n:e,u=new Kc(s);if(i.styles.isPositioned()||i.styles.opacity<1||i.styles.isTransformed()){var h=i.styles.zIndex.order;if(h<0){var f=0;l.negativeZIndex.some((function(t,e){return h>t.element.container.styles.zIndex.order?(f=e,!1):f>0})),l.negativeZIndex.splice(f,0,u)}else if(h>0){var A=0;l.positiveZIndex.some((function(t,e){return h>=t.element.container.styles.zIndex.order?(A=e+1,!1):A>0})),l.positiveZIndex.splice(A,0,u)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else i.styles.isFloating()?l.nonPositionedFloats.push(u):l.nonPositionedInlineLevel.push(u);Xc(s,u,a?u:n,c)}else i.styles.isInlineLevel()?e.inlineLevel.push(s):e.nonInlineLevel.push(s),Xc(s,e,n,c);la(i.flags,8)&&Gc(i,c)}))},Gc=function(t,e){for(var n=t instanceof Vo?t.start:1,r=t instanceof Vo&&t.reversed,i=0;i0&&t.intrinsicHeight>0){var r=nl(t),i=Oc(e);this.path(i),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,t.intrinsicWidth,t.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},n.prototype.renderNodeContent=function(t){return r(this,void 0,void 0,(function(){var e,r,a,s,c,l,u,h,f,A,d,g,p,b,m,v,w,y;return i(this,(function(i){switch(i.label){case 0:this.applyEffects(t.getEffects(4)),e=t.container,r=t.curves,a=e.styles,s=0,c=e.textNodes,i.label=1;case 1:return s0&&C>0&&(m=r.ctx.createPattern(g,"repeat"),r.renderRepeat(w,m,T,E))):Qr(n)&&(v=al(t,e,[null,null,null]),w=v[0],y=v[1],x=v[2],k=v[3],C=v[4],B=0===n.position.length?[Kn]:n.position,T=Gn(B[0],k),E=Gn(B[B.length-1],C),_=yr(n,T,E,k,C),S=_[0],L=_[1],S>0&&L>0&&(I=r.ctx.createRadialGradient(y+T,x+E,0,y+T,x+E,S),pr(n.stops,2*S).forEach((function(t){return I.addColorStop(t.stop,ir(t.color))})),r.path(w),r.ctx.fillStyle=I,S!==L?(M=t.bounds.left+.5*t.bounds.width,F=t.bounds.top+.5*t.bounds.height,O=1/(D=L/S),r.ctx.save(),r.ctx.translate(M,F),r.ctx.transform(1,0,0,D,0,0),r.ctx.translate(-M,-F),r.ctx.fillRect(y,O*(x-F)+F,k,C*O),r.ctx.restore()):r.ctx.fill())),i.label=6;case 6:return e--,[2]}}))},r=this,a=0,o=t.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return a0?2!==l.style?[3,5]:[4,this.renderDashedDottedBorder(l.color,l.width,o,t.curves,2)]:[3,11]:[3,13];case 4:return i.sent(),[3,11];case 5:return 3!==l.style?[3,7]:[4,this.renderDashedDottedBorder(l.color,l.width,o,t.curves,3)];case 6:return i.sent(),[3,11];case 7:return 4!==l.style?[3,9]:[4,this.renderDoubleBorder(l.color,l.width,o,t.curves)];case 8:return i.sent(),[3,11];case 9:return[4,this.renderSolidBorder(l.color,o,t.curves)];case 10:i.sent(),i.label=11;case 11:o++,i.label=12;case 12:return s++,[3,3];case 13:return[2]}}))}))},n.prototype.renderDashedDottedBorder=function(t,e,n,a,o){return r(this,void 0,void 0,(function(){var r,s,c,l,u,h,f,A,d,g,p,b,m,v,w,y;return i(this,(function(i){return this.ctx.save(),r=Jc(a,n),s=Wc(a,n),2===o&&(this.path(s),this.ctx.clip()),Lc(s[0])?(c=s[0].start.x,l=s[0].start.y):(c=s[0].x,l=s[0].y),Lc(s[1])?(u=s[1].end.x,h=s[1].end.y):(u=s[1].x,h=s[1].y),f=0===n||2===n?Math.abs(c-u):Math.abs(l-h),this.ctx.beginPath(),3===o?this.formatPath(r):this.formatPath(s.slice(0,2)),A=e<3?3*e:2*e,d=e<3?2*e:e,3===o&&(A=e,d=e),g=!0,f<=2*A?g=!1:f<=2*A+d?(A*=p=f/(2*A+d),d*=p):(b=Math.floor((f+d)/(A+d)),m=(f-b*A)/(b-1),d=(v=(f-(b+1)*A)/b)<=0||Math.abs(d-m)0&&void 0!==arguments[0]?arguments[0]:[];na(t=Gl(document.body.children)).call(t,(function(t,n){void 0!==e[n]&&(t.style.display=e[n])}))}(a),document.body.style.overflow=o}))};function zw(t,e){Kw(t,(function(t,n){window.scrollTo(0,0),jw(t,{allowTaint:!0,height:t.clientHeight,width:t.clientWidth,scrollY:0,scrollX:0}).then((function(t){!function(t,e){var n=document.createElement("a");n.style.display="none",n.href=t,n.download="".concat(e,".png"),document.body.appendChild(n),n.click(),document.body.removeChild(n)}(t.toDataURL("image/jpeg"),e),n()}))}))}var Xw=T.f,Gw=v(Xw),Vw=v([].push),Ww=function(t){return function(e){for(var n,r=Q(e),i=Ke(r),a=i.length,o=0,s=[];a>o;)n=i[o++],y&&!Gw(r,n)||Vw(s,t?[n,r[n]]:r[n]);return s}},qw={entries:Ww(!0),values:Ww(!1)},Yw=qw.values;te({target:"Object",stat:!0},{values:function(t){return Yw(t)}});var Jw=P.Object.values,Zw=qw.entries;te({target:"Object",stat:!0},{entries:function(t){return Zw(t)}});var ty=P.Object.entries,ey={mouseResize:{},getImgPosition:function(){var t=this.img.getBoundingClientRect(),e=this.previewerDom.parentNode.getBoundingClientRect(),n=Wu(this.img.style.padding)||0;return{bottom:t.bottom-e.bottom,top:t.top-e.top+1.5*n,height:t.height,width:t.width,right:t.right-e.right,left:t.left-e.left+1.5*n,x:t.x-e.x,y:t.y-e.y}},initBubbleButtons:function(){var t=this.getImgPosition();return{points:{arr:["leftTop","leftBottom","rightTop","rightBottom","leftMiddle","middleBottom","middleTop","rightMiddle"],arrInfo:{leftTop:{name:"20",left:0,top:0},leftBottom:{name:"00",left:0,top:0},rightTop:{name:"22",left:0,top:0},rightBottom:{name:"02",left:0,top:0},leftMiddle:{name:"10",left:0,top:0},middleBottom:{name:"01",left:0,top:0},middleTop:{name:"21",left:0,top:0},rightMiddle:{name:"12",left:0,top:0}}},imgSrc:this.img.src,style:{width:this.img.width,height:this.img.height,left:t.left-1,top:t.top-1,marginTop:0,marginLeft:0},scrollTop:this.previewerDom.scrollTop,position:t}},showBubble:function(t,e,n){this.$isResizing()||(this.img=t,this.previewerDom=n,this.container=e,this.buts=this.initBubbleButtons(),this.drawBubbleButs())},emit:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t){case"mousedown":return this.resizeBegin(e);case"mouseup":return this.resizeStop(e);case"mousemove":return this.resizeWorking(e);case"scroll":return this.dealScroll(e);case"remove":return this.remove();case"previewUpdate":return this.previewUpdate(e)}},previewUpdate:function(t){this.$isResizing()||(this.remove(),t())},drawBubbleButs:function(){var t,e=this;return this.butsLayout||(this.butsLayout=this.container,this.butsImg=document.createElement("div"),this.butsImg.className="cherry-previewer-img-size-handler__background",this.butsImg.style.backgroundImage="url(".concat(this.buts.imgSrc,")"),this.butsLayout.appendChild(this.butsImg),this.butsPoints={},na(t=mn(this.buts.points.arr)).call(t,(function(t){var n=e.buts.points.arr[t],r=document.createElement("div");r.className=["cherry-previewer-img-size-handler__points","cherry-previewer-img-size-handler__points-".concat(n)].join(" "),r.dataset.name=n,e.butsLayout.appendChild(r),e.butsPoints["pints-".concat(n)]=r}))),this.updateBubbleButs()},remove:function(){this.butsLayout=!1},updateBubbleButs:function(){var t,e,n=this;this.$updatePointsInfo(),na(t=mn(this.buts.style)).call(t,(function(t){n.butsLayout.style[t]="".concat(n.buts.style[t],"px")})),na(e=mn(this.buts.points.arr)).call(e,(function(t){var e=n.buts.points.arr[t];n.butsPoints["pints-".concat(e)].style.top="".concat(n.buts.points.arrInfo[e].top,"px"),n.butsPoints["pints-".concat(e)].style.left="".concat(n.buts.points.arrInfo[e].left,"px")}))},$updatePointsInfo:function(){var t,e=this,n=this.buts.style.width,r=this.buts.style.height,i=this.$getPointsInfo(n,r);na(t=mn(this.buts.points.arr)).call(t,(function(t){var n=e.buts.points.arr[t];e.buts.points.arrInfo[n].left!==i[n].left&&(e.buts.points.arrInfo[n].left=i[n].left),e.buts.points.arrInfo[n].top!==i[n].top&&(e.buts.points.arrInfo[n].top=i[n].top)}))},$getPointsInfo:function(t,e){return{leftTop:{left:0,top:0},leftBottom:{left:0,top:e},rightTop:{left:t,top:0},rightBottom:{left:t,top:e},leftMiddle:{left:0,top:e/2},middleBottom:{left:t/2,top:e},middleTop:{left:t/2,top:0},rightMiddle:{left:t,top:e/2}}},$isResizing:function(){return this.mouseResize.resize},dealScroll:function(t){var e=this.getImgPosition();this.butsLayout.style.marginTop!==e.top-this.buts.position.top&&(this.butsLayout.style.marginTop="".concat(e.top-this.buts.position.top,"px"),this.buts.style.marginTop="".concat(e.top-this.buts.position.top,"px")),this.butsLayout.style.marginLeft!==e.left-this.buts.position.left&&(this.butsLayout.style.marginLeft="".concat(e.left-this.buts.position.left,"px"),this.buts.style.marginLeft="".concat(e.left-this.buts.position.left,"px"))},initMouse:function(){return{left:0,top:0,resize:!1,name:""}},resizeBegin:function(t){var e=t.target;if(!e.classList.contains("cherry-previewer-img-size-handler__points"))return!1;this.mouseResize.left=t.clientX,this.mouseResize.top=t.clientY,this.mouseResize.resize=!0,this.mouseResize.name=e.getAttribute("data-name"),this.previewerDom.classList.add("doing-resize-img")},resizeStop:function(t,e,n,r){if(!this.$isResizing())return!1;this.img.style.width="".concat(this.buts.style.width,"px"),this.img.style.height="".concat(this.buts.style.height,"px"),this.buts.style.marginTop=0,this.buts.style.marginLeft=0,this.updateBubbleButs(),this.mouseResize.resize=!1,this.previewerDom.classList.remove("doing-resize-img"),this.change()},resizeWorking:function(t,e){if(this.$isResizing()){var n=t.clientX-this.mouseResize.left,r=t.clientY-this.mouseResize.top,i={};switch(this.mouseResize.name){case"leftTop":case"leftBottom":case"leftMiddle":i=this.$getChange(n,r,"x"),this.buts.style.width=this.buts.position.width-i.changeX,"leftMiddle"!==this.mouseResize.name&&(this.buts.style.height=this.buts.position.height-i.changeY);break;case"rightTop":case"rightBottom":case"rightMiddle":i=this.$getChange(n,r,"x"),this.buts.style.width=this.buts.position.width+i.changeX,"rightMiddle"!==this.mouseResize.name&&(this.buts.style.height=this.buts.position.height+i.changeY);break;case"middleTop":i=this.$getChange(n,r,"y"),this.buts.style.height=this.buts.position.height-i.changeY;break;case"middleBottom":i=this.$getChange(n,r,"y"),this.buts.style.height=this.buts.position.height+i.changeY}this.updateBubbleButs(),this.change()}},change:function(){this.emitChange(this.img,{width:this.buts.style.width,height:this.buts.style.height})},bindChange:function(t){this.emitChange=t},$getChange:function(t,e,n){var r={changeX:0,changeY:0};if("y"===n)r.changeY=e,r.changeX=e*this.buts.position.width/this.buts.position.height;else r.changeX=t,r.changeY=t*this.buts.position.height/this.buts.position.width;return r}},ny=ey,ry=rr.every,iy=Wi("every");te({target:"Array",proto:!0,forced:!iy},{every:function(t){return ry(this,t,arguments.length>1?arguments[1]:void 0)}});var ay=ni("Array").every,oy=Array.prototype,sy=function(t){var e=t.every;return t===oy||H(oy,t)&&e===oy.every?ay:e},cy=s.TypeError,ly=function(t,e,n,r,i,a,o,s){for(var c,l,u=i,h=0,f=!!o&&Rt(o,s);h0&&Yn(c))l=Qe(c),u=ly(t,e,c,l,u,a-1)-1;else{if(u>=9007199254740991)throw cy("Exceed the acceptable array length");t[u]=c}u++}h++}return u},uy=ly;te({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=lt(this),n=Qe(e),r=tr(e,0);return r.length=uy(r,e,e,n,0,void 0===t?1:Le(t)),r}});var hy=ni("Array").flat,fy=Array.prototype,Ay=function(t){var e=t.flat;return t===fy||H(fy,t)&&e===fy.flat?hy:e},dy=function(){function t(e,n,r,i,a,o){fa(this,t),qa(this,"tableEditor",{info:{},tableCodes:[],editorDom:{}}),this.trigger=e,this.target=n,this.previewerDom=i,this.container=r,this.codeMirror=a,this.$initReg(),this.$findTableInEditor(),this.tableElement=o}return ga(t,[{key:"emit",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};switch(t){case"keyup":return"click"===this.trigger&&this.$onInputChange(e);case"remove":return this.$remove();case"scroll":case"previewUpdate":return this.$refreshPosition();case"mousedown":return;case"mouseup":return"click"===this.trigger&&this.$tryRemoveMe(e,n)}}},{key:"$tryRemoveMe",value:function(t,e){/textarea/i.test(t.target.tagName)||(this.$remove(),e())}},{key:"$getPosition",value:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.tableEditor.info.tdNode).getBoundingClientRect(),e=this.previewerDom.parentNode.getBoundingClientRect();return{top:t.top-e.top,height:t.height,width:t.width,left:t.left-e.left,maxHeight:e.height}}},{key:"setStyle",value:function(t,e,n){t.getBoundingClientRect()[e]!==n&&(t.style[e]=n)}},{key:"$setInputOffset",value:function(){var t=this.$getPosition(),e=this.tableEditor.editorDom.inputDiv;this.setStyle(e,"width","".concat(t.width,"px")),this.setStyle(e,"height","".concat(t.height,"px")),this.setStyle(e,"top","".concat(t.top,"px")),this.setStyle(e,"left","".concat(t.left,"px"));var n=t.top>=0&&t.top+t.height<=t.maxHeight;this.setStyle(e,"display",n?"":"none")}},{key:"$setSymbolOffset",value:function(){var t,e=this,n=this.tableEditor.editorDom.symbolContainer,r=this.tableEditor.info,i=r.tableNode,a=r.trNode,o=r.isTHead,s=this.$getPosition(i),c=this.$getPosition(a),l=this.$getPosition(),u=this.previewerDom.getBoundingClientRect();this.setStyle(this.container,"width","".concat(s.width,"px")),this.setStyle(this.container,"height","".concat(s.height,"px")),this.setStyle(this.container,"top","".concat(s.top,"px")),this.setStyle(this.container,"left","".concat(s.left,"px"));na(t=n.childNodes).call(t,(function(t){var n,r=t.dataset,i=r.index,a=r.type,h=r.dir,f=20,A=7;e.setStyle(t,{Row:["left","right"],Col:["top","bottom"]}[h][i],"-".concat(f,"px")),e.setStyle(t,"display","");var d={LastRow:function(){return e.setStyle(t,"top","".concat(c.top-s.top-A,"px"))},NextRow:function(){return e.setStyle(t,"top","".concat(c.top-s.top+c.height-A,"px"))},LastCol:function(){return e.setStyle(t,"left","".concat(l.left-s.left-A,"px"))},NextCol:function(){return e.setStyle(t,"left","".concat(l.left-s.left+l.width-A,"px"))}},g=Za(n="".concat(a)).call(n,h);d[g](),e.setStyle(t,"display",function(t){var e,n=t.getBoundingClientRect(),r={top:[u.top,u.top+u.height-n.height],left:[u.left,u.left+u.width-n.width]};return sy(e=ty(r)).call(e,(function(t){var e=ku(t,2),r=e[0],i=ku(e[1],2),a=i[0],o=i[1];return n[r]>=a&&n[r]<=o}))}(t)?"":"none"),o&&"LastRow"===g&&e.setStyle(t,"display","none")}))}},{key:"$refreshPosition",value:function(){"click"!==this.trigger?this.$setSymbolOffset():this.$setInputOffset()}},{key:"$remove",value:function(){this.tableEditor={info:{},tableCodes:[],editorDom:{}}}},{key:"$collectTableCode",value:function(){var t=[];this.codeMirror.getValue().replace(this.codeBlockReg,(function(t){return t.replace(/\|/g,".")})).replace(this.tableReg,(function(e){var n,r=e.replace(/^\n*/,""),i=((n=(arguments.length<=1?0:arguments.length-1)-2+1)<1||arguments.length<=n?void 0:arguments[n])+e.match(/^\n*/)[0].length;t.push({code:r,offset:i})})),this.tableEditor.tableCodes=t}},{key:"$collectTableDom",value:function(){var t,e,n,r=Gl(this.previewerDom.querySelectorAll("table.cherry-table")),i=this.$getClosestNode(this.target,"TABLE");if(!1===i)return!1;var a=ai(t=Gl(this.target.parentElement.childNodes)).call(t,(function(t){return"td"===t.tagName.toLowerCase()})).length;this.tableEditor.info={tableNode:i,tdNode:this.target,trNode:this.target.parentElement,tdIndex:Cu(e=Gl(this.target.parentElement.childNodes)).call(e,this.target),trIndex:Cu(n=Gl(this.target.parentElement.parentElement.childNodes)).call(n,this.target.parentElement),isTHead:"TBODY"!==this.target.parentElement.parentElement.tagName,totalTables:r.length,tableIndex:Cu(r).call(r,i),tableText:i.textContent.replace(/[\s]/g,""),columns:a}}},{key:"$setSelection",value:function(t){var e,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"table",a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=this.tableEditor.tableCodes[t],s=this.codeMirror.getValue(),c=this.tableEditor.info,l=null!==(e=null===(n=Tu(s).call(s,0,o.offset).match(/\n/g))||void 0===n?void 0:n.length)&&void 0!==e?e:0,u=this.$getTdOffset(o.code,c.isTHead,c.trIndex,c.tdIndex),h=u.preLine,f=u.preCh,A=u.plusCh,d=u.currentTd;if("table"===i){var g=l+o.code.match(/\n/g).length,p=o.code.match(/[^\n]+\n*$/)[0].length;this.tableEditor.info.selection=[{line:l,ch:0},{line:g,ch:p}]}else this.tableEditor.info.selection=[{line:l+h,ch:f},{line:l+h,ch:f+A}];a&&(r=this.codeMirror).setSelection.apply(r,NA(this.tableEditor.info.selection)),this.tableEditor.info.code=d}},{key:"$getTdOffset",value:function(t,e,n,r){for(var i=e?0:n+2,a=t.split(/\n/)[i].split(/\|/),o=/^\s*$/.test(a[0]),s=o?r+1:r,c=a[s],l=[],u=0;u/g,"\n"),this.tableEditor.editorDom.inputDom.focus()}},{key:"$onInputChange",value:function(t){"TEXTAREA"===t.target.tagName&&this.codeMirror.replaceSelection(t.target.value.replace(/\n/g,"
    "),"around")}},{key:"$updateEditorPosition",value:function(){this.$setInputOffset();var t=getComputedStyle(this.tableEditor.info.tdNode);this.tableEditor.editorDom.inputDom.style.textAlign=t.textAlign||"left",this.tableEditor.editorDom.inputDom.style.fontSize=t.fontSize||"16px",this.tableEditor.editorDom.inputDom.style.fontFamily=t.fontFamily,this.tableEditor.editorDom.inputDom.style.lineHeight=t.lineHeight,this.tableEditor.editorDom.inputDom.style.padding=t.padding,/left/.test(t.textAlign)&&(this.tableEditor.editorDom.inputDom.style.paddingRight="0px"),/right/.test(t.textAlign)&&(this.tableEditor.editorDom.inputDom.style.paddingLeft="0px"),/center/.test(t.textAlign)&&(this.tableEditor.editorDom.inputDom.style.paddingLeft="0px",this.tableEditor.editorDom.inputDom.style.paddingRight="0px"),this.tableEditor.editorDom.inputDom.style.paddingBottom="0px"}},{key:"$getClosestNode",value:function(t,e){return t.tagName===e?t:"BODY"!==t.parentNode.tagName&&this.$getClosestNode(t.parentNode,e)}},{key:"$drawSymbol",value:function(){var t,e=this,n=["Last","Next"],r=["Row","Col"],i={Row:"行",Col:"列"},a=Ay(t=nf(r).call(r,(function(t,e){return nf(n).call(n,(function(t){return nf(r).call(r,(function(n){return["".concat(e),t,n]}))}))}))).call(t,2),o=document.createElement("ul");o.className="cherry-previewer-table-hover-handler-container",na(a).call(a,(function(t){var n=ku(t,3),r=n[0],a=n[1],s=n[2],c=document.createElement("li");c.setAttribute("data-index",r),c.setAttribute("data-type",a),c.setAttribute("data-dir",s),c.className="cherry-previewer-table-hover-handler__symbol",c.title="添加".concat(i[s]),c.innerHTML="+",c.addEventListener("click",(function(t){var n,r=t.target;if(r instanceof HTMLElement){var i=r.dataset,a=i.type,o=i.dir;e[Za(n="$add".concat(a)).call(n,o)]()}})),o.appendChild(c)}),!0),this.tableEditor.editorDom.symbolContainer=o,this.container.appendChild(this.tableEditor.editorDom.symbolContainer),this.$setSymbolOffset()}},{key:"$addLastRow",value:function(){var t=ku(this.tableEditor.info.selection,1)[0].line,e="".concat(Pu("|").call("|",this.tableEditor.info.columns),"\n");this.codeMirror.replaceRange(e,{line:t,ch:0}),this.$findTableInEditor(),this.$setSelection(this.tableEditor.info.tableIndex,"td")}},{key:"$addNextRow",value:function(){var t=ku(this.tableEditor.info.selection,2)[1].line,e="".concat(Pu("|").call("|",this.tableEditor.info.columns),"\n");this.codeMirror.replaceRange(e,{line:t+1,ch:0}),this.$findTableInEditor(),this.$setSelection(this.tableEditor.info.tableIndex,"td")}},{key:"$addLastCol",value:function(){var t=this;this.$setSelection(this.tableEditor.info.tableIndex,"table");var e=this.codeMirror.getSelection().split("\n"),n=nf(e).call(e,(function(e,n){var r=e.split("|"),i=1===n?":-:":"";return Vh(r).call(r,t.tableEditor.info.tdIndex+1,0,i),r.join("|")})),r=n.join("\n");this.codeMirror.replaceSelection(r),this.$findTableInEditor(),this.$setSelection(this.tableEditor.info.tableIndex,"table")}},{key:"$addNextCol",value:function(){var t=this;this.$setSelection(this.tableEditor.info.tableIndex,"table");var e=this.codeMirror.getSelection().split("\n"),n=nf(e).call(e,(function(e,n){var r=e.split("|"),i=1===n?":-:":"";return Vh(r).call(r,t.tableEditor.info.tdIndex+2,0,i),r.join("|")})),r=n.join("\n");this.codeMirror.replaceSelection(r),this.$findTableInEditor(),this.$setSelection(this.tableEditor.info.tableIndex,"table")}},{key:"$drawDrag",value:function(){var t=this.tableEditor.info.isTHead;this.$setSelection(this.tableEditor.info.tableIndex,"table"),t?this.$dragCol():this.$dragLine()}},{key:"$dragCol",value:function(){var t=this.tableEditor.info.tdIndex,e=this.target.parentElement,n=this.codeMirror.getSelection().split(/\n/),r=this.tableEditor.info.tdNode,i=this;r.setAttribute("draggable",!0),e.addEventListener("dragleave",(function(t){i.setStyle(t.target,"border","1px solid #dfe6ee")})),e.addEventListener("dragover",(function(e){var n;e.preventDefault();var r=Cu(n=Gl(e.target.parentElement.childNodes)).call(n,e.target);i.$dragSymbol(e.target,t,r)})),e.addEventListener("drop",(function(e){var r;e.preventDefault();var a=Cu(r=Gl(e.target.parentElement.childNodes)).call(r,e.target),o=nf(n).call(n,(function(e,n){var r,o=ai(r=e.split("|")).call(r,(function(t,e){return""!==t}));return"|".concat(i.$operateLines(t,a,o).join("|"),"|")})),s=o.join("\n");i.codeMirror.replaceSelection(s),i.setStyle(e.target,"border","1px solid #dfe6ee"),i.$findTableInEditor(),i.$setSelection(i.tableEditor.info.tableIndex,"table")}))}},{key:"$dragLine",value:function(){var t=this.tableEditor.info.trNode;t.setAttribute("draggable",!0),this.$setSelection(this.tableEditor.info.tableIndex,"table");var e=this.tableEditor.info.trIndex+2,n=t.parentElement,r=this.codeMirror.getSelection().split(/\n/),i=this;n.addEventListener("dragleave",(function(t){i.setStyle(t.target.parentElement,"border","1px solid #dfe6ee")})),n.addEventListener("dragover",(function(t){var n;t.preventDefault();var r=Cu(n=Gl(t.target.parentElement.parentElement.childNodes)).call(n,t.target.parentElement)+2;i.$dragSymbol(t.target,e,r)})),n.addEventListener("drop",(function(t){var n;t.preventDefault();var a=Cu(n=Gl(t.target.parentElement.parentElement.childNodes)).call(n,t.target.parentElement)+2,o=i.$operateLines(e,a,r).join("\n");i.codeMirror.replaceSelection(o),i.$findTableInEditor(),i.$setSelection(i.tableEditor.info.tableIndex,"table"),i.setStyle(t.target.parentElement,"border","1px solid #dfe6ee")}))}},{key:"$dragSymbol",value:function(t,e,n){var r=this.target;r!==t&&e!==n&&("TH"===r.tagName?en&&(this.setStyle(t,"border","1px solid #dfe6ee"),this.setStyle(t,"border-left","2px solid #6897bb")):"TD"===r.tagName&&(en&&(this.setStyle(t.parentElement,"border","1px solid #dfe6ee"),this.setStyle(t.parentElement,"border-top","2px solid #6897bb"))))}},{key:"$operateLines",value:function(t,e,n){if(te){var r=n[t];Vh(n).call(n,t,1),Vh(n).call(n,e,0,r)}return n}}]),t}(),gy=["javascript","typescript","html","css","shell","python","golang","java","c","c++","c#","php","ruby","swift","kotlin","scala","rust","dart","elixir","haskell","lua","perl","r","sql"],py=Error,by=v("".replace),my=String(py("zxcasd").stack),vy=/\n\s*at [^:]*:[^\n]*/,wy=vy.test(my),yy=!l((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",E(1,7)),7!==t.stack)})),xy=wt("toStringTag"),ky=s.Error,Cy=[].push,By=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,i=H(Ty,this);Fi?n=Fi(new ky,i?ki(this):Ty):(n=i?this:rn(Ty),Yt(n,xy,"Error")),void 0!==e&&Yt(n,"message",function(t,e){return void 0===t?arguments.length<2?"":e:wn(t)}(e)),yy&&Yt(n,"stack",function(t,e){if(wy&&"string"==typeof t&&!py.prepareStackTrace)for(;e--;)t=by(t,vy,"");return t}(n.stack,1)),function(t,e){N(e)&&"cause"in e&&Yt(t,"cause",e.cause)}(n,r);var a=[];return Vf(t,Cy,{that:a}),Yt(n,"errors",a),n};Fi?Fi(By,ky):function(t,e,n){for(var r=ia(e),i=qt.f,a=Lt.f,o=0;o=51&&/native code/.test(t))return!1;var n=new bx((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};return(n.constructor={})[wx]=r,!(yx=n.then((function(){}))instanceof r)||!e&&mx&&!xx})),Cx={CONSTRUCTOR:kx,REJECTION_EVENT:xx,SUBCLASSING:yx},Bx=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=et(e),this.reject=et(n)},Tx={f:function(t){return new Bx(t)}},Ex=tx.set,_x="Promise",Sx=Cx.CONSTRUCTOR,Lx=Cx.REJECTION_EVENT,Ix=qn.getterFor(_x),Mx=qn.set,Fx=bx&&bx.prototype,Dx=bx,Ox=Fx,Qx=s.TypeError,Nx=s.document,Px=s.process,Rx=Tx.f,Ux=Rx,Hx=!!(Nx&&Nx.createEvent&&s.dispatchEvent),$x="unhandledrejection",jx=function(t){var e;return!(!N(t)||!w(e=t.then))&&e},Kx=function(t,e){var n,r,i,a=e.value,o=1==e.state,s=o?t.ok:t.fail,c=t.resolve,l=t.reject,u=t.domain;try{s?(o||(2===e.rejection&&Wx(e),e.rejection=1),!0===s?n=a:(u&&u.enter(),n=s(a),u&&(u.exit(),i=!0)),n===t.promise?l(Qx("Promise-chain cycle")):(r=jx(n))?k(r,n,c,l):c(n)):l(a)}catch(t){u&&!i&&u.exit(),l(t)}},zx=function(t,e){t.notified||(t.notified=!0,hx((function(){for(var n,r=t.reactions;n=r.get();)Kx(n,t);t.notified=!1,e&&!t.rejection&&Gx(t)})))},Xx=function(t,e,n){var r,i;Hx?((r=Nx.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),s.dispatchEvent(r)):r={promise:e,reason:n},!Lx&&(i=s["on"+t])?i(r):t===$x&&function(t,e){var n=s.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},Gx=function(t){k(Ex,s,(function(){var e,n=t.facade,r=t.value;if(Vx(t)&&(e=fx((function(){Rd?Px.emit("unhandledRejection",r,n):Xx($x,n,r)})),t.rejection=Rd||Vx(t)?2:1,e.error))throw e.value}))},Vx=function(t){return 1!==t.rejection&&!t.parent},Wx=function(t){k(Ex,s,(function(){var e=t.facade;Rd?Px.emit("rejectionHandled",e):Xx("rejectionhandled",e,t.value)}))},qx=function(t,e,n){return function(r){t(e,r,n)}},Yx=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,zx(t,!0))},Jx=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw Qx("Promise can't be resolved itself");var r=jx(e);r?hx((function(){var n={done:!1};try{k(r,e,qx(Jx,n,t),qx(Yx,n,t))}catch(e){Yx(n,e,t)}})):(t.value=e,t.state=1,zx(t,!1))}catch(e){Yx({done:!1},e,t)}}};Sx&&(Ox=(Dx=function(t){qf(this,Ox),et(t),k(dx,this);var e=Ix(this);try{t(qx(Jx,e),qx(Yx,e))}catch(t){Yx(e,t)}}).prototype,(dx=function(t){Mx(this,{type:_x,done:!1,notified:!1,parent:!1,reactions:new px,rejection:!1,state:0,value:void 0})}).prototype=In(Ox,"then",(function(t,e){var n=Ix(this),r=Rx(dA(this,Dx));return n.parent=!0,r.ok=!w(t)||t,r.fail=w(e)&&e,r.domain=Rd?Px.domain:void 0,0==n.state?n.reactions.add(r):hx((function(){Kx(r,n)})),r.promise})),gx=function(){var t=new dx,e=Ix(t);this.promise=t,this.resolve=qx(Jx,e),this.reject=qx(Yx,e)},Tx.f=Rx=function(t){return t===Dx||undefined===t?new gx(t):Ux(t)}),te({global:!0,constructor:!0,wrap:!0,forced:Sx},{Promise:Dx}),Rn(Dx,_x,!1,!0),rA(_x);var Zx=Cx.CONSTRUCTOR||!Kl((function(t){bx.all(t).then(void 0,(function(){}))}));te({target:"Promise",stat:!0,forced:Zx},{all:function(t){var e=this,n=Tx.f(e),r=n.resolve,i=n.reject,a=fx((function(){var n=et(e.resolve),a=[],o=0,s=1;Vf(t,(function(t){var c=o++,l=!1;s++,k(n,e,t).then((function(t){l||(l=!0,a[c]=t,--s||r(a))}),i)})),--s||r(a)}));return a.error&&i(a.value),n.promise}});var tk=Cx.CONSTRUCTOR;bx&&bx.prototype,te({target:"Promise",proto:!0,forced:tk,real:!0},{catch:function(t){return this.then(void 0,t)}}),te({target:"Promise",stat:!0,forced:Zx},{race:function(t){var e=this,n=Tx.f(e),r=n.reject,i=fx((function(){var i=et(e.resolve);Vf(t,(function(t){k(i,e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}}),te({target:"Promise",stat:!0,forced:Cx.CONSTRUCTOR},{reject:function(t){var e=Tx.f(this);return k(e.reject,void 0,t),e.promise}});var ek=function(t,e){if(jt(t),N(e)&&e.constructor===t)return e;var n=Tx.f(t);return(0,n.resolve)(e),n.promise},nk=Cx.CONSTRUCTOR,rk=U("Promise"),ik=!nk;te({target:"Promise",stat:!0,forced:true},{resolve:function(t){return ek(ik&&this===rk?bx:this,t)}}),te({target:"Promise",stat:!0},{allSettled:function(t){var e=this,n=Tx.f(e),r=n.resolve,i=n.reject,a=fx((function(){var n=et(e.resolve),i=[],a=0,o=1;Vf(t,(function(t){var s=a++,c=!1;o++,k(n,e,t).then((function(t){c||(c=!0,i[s]={status:"fulfilled",value:t},--o||r(i))}),(function(t){c||(c=!0,i[s]={status:"rejected",reason:t},--o||r(i))}))})),--o||r(i)}));return a.error&&i(a.value),n.promise}});var ak="No one promise resolved";te({target:"Promise",stat:!0},{any:function(t){var e=this,n=U("AggregateError"),r=Tx.f(e),i=r.resolve,a=r.reject,o=fx((function(){var r=et(e.resolve),o=[],s=0,c=1,l=!1;Vf(t,(function(t){var u=s++,h=!1;c++,k(r,e,t).then((function(t){h||l||(l=!0,i(t))}),(function(t){h||l||(h=!0,o[u]=t,--c||a(new n(o,ak)))}))})),--c||a(new n(o,ak))}));return o.error&&a(o.value),r.promise}});var ok=bx&&bx.prototype,sk=!!bx&&l((function(){ok.finally.call({then:function(){}},(function(){}))}));te({target:"Promise",proto:!0,real:!0,forced:sk},{finally:function(t){var e=dA(this,U("Promise")),n=w(t);return this.then(n?function(n){return ek(e,t()).then((function(){return n}))}:t,n?function(n){return ek(e,t()).then((function(){throw n}))}:t)}});var ck=P.Promise,lk=ck;te({target:"Promise",stat:!0,forced:!0},{try:function(t){var e=Tx.f(this),n=fx(t);return(n.error?e.reject:e.resolve)(n.value),e.promise}});var uk=lk;function hk(t,e,n,r,i,a,o){try{var s=t[a](o),c=s.value}catch(t){return void n(t)}s.done?e(c):uk.resolve(c).then(r,i)}function fk(t){return function(){var e=this,n=arguments;return new uk((function(r,i){var a=t.apply(e,n);function o(t){hk(a,r,i,o,s,"next",t)}function s(t){hk(a,r,i,o,s,"throw",t)}o(void 0)}))}}var Ak=n((function(t){function e(n){return t.exports=e="function"==typeof Ma&&"symbol"==typeof ja?function(t){return typeof t}:function(t){return t&&"function"==typeof Ma&&t.constructor===Ma&&t!==Ma.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}));e(Ak);var dk=ea,gk=v([].reverse),pk=[1,2];te({target:"Array",proto:!0,forced:String(pk)===String(pk.reverse())},{reverse:function(){return Yn(this)&&(this.length=this.length),gk(this)}});var bk=ni("Array").reverse,mk=Array.prototype,vk=function(t){var e=t.reverse;return t===mk||H(mk,t)&&e===mk.reverse?bk:e},wk=vk,yk=n((function(t){var e=Ak.default;function n(){t.exports=n=function(){return r},t.exports.__esModule=!0,t.exports.default=t.exports;var r={},i=Object.prototype,a=i.hasOwnProperty,o="function"==typeof Ma?Ma:{},s=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(t,e,n){return Aa(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function h(t,e,n,r){var i=e&&e.prototype instanceof d?e:d,a=va(i.prototype),o=new B(r||[]);return a._invoke=function(t,e,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return E()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=x(o,n);if(s){if(s===A)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=f(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===A)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(t,n,o),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=h;var A={};function d(){}function g(){}function p(){}var b={};u(b,s,(function(){return this}));var m=Va&&Va(Va(T([])));m&&m!==i&&a.call(m,s)&&(b=m);var v=p.prototype=d.prototype=va(b);function w(t){var e;dk(e=["next","throw","return"]).call(e,(function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function y(t,n){function r(i,o,s,c){var l=f(t[i],t,o);if("throw"!==l.type){var u=l.arg,h=u.value;return h&&"object"==e(h)&&a.call(h,"__await")?n.resolve(h.__await).then((function(t){r("next",t,s,c)}),(function(t){r("throw",t,s,c)})):n.resolve(h).then((function(t){u.value=t,s(u)}),(function(t){return r("throw",t,s,c)}))}c(l.arg)}var i;this._invoke=function(t,e){function a(){return new n((function(n,i){r(t,e,n,i)}))}return i=i?i.then(a,a):a()}}function x(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return A;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return A}var r=f(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,A;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,A):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,A)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function B(t){this.tryEntries=[{tryLoc:"root"}],dk(t).call(t,k,this),this.reset(!0)}function T(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(s&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),A}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),A}},r}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}));e(yk);var xk=yk();function kk(t){function e(e){e.clipboardData.setData("text/html",t),e.clipboardData.setData("text/plain",t),e.preventDefault()}document.addEventListener("copy",e),document.execCommand("copy"),document.removeEventListener("copy",e)}function Ck(t){var e=document.createElement("input");e.value=t,document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e)}function Bk(t){return Tk.apply(this,arguments)}function Tk(){return Tk=fk(xk.mark((function t(e){return xk.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(navigator.clipboard){t.next=3;break}return Ck(e),t.abrupt("return");case 3:return t.next=5,navigator.clipboard.writeText(e);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t)}))),Tk.apply(this,arguments)}var Ek=function(){function t(e,n,r,i,a,o){fa(this,t),qa(this,"codeBlockEditor",{info:{},editorDom:{}}),this.trigger=e,this.target=n,this.previewerDom=i,this.container=r,this.codeMirror=a,this.$cherry=o.previewer.$cherry,this.parent=o,this.$initReg()}return ga(t,[{key:"$initReg",value:function(){this.codeBlockReg=this.codeBlockReg?this.codeBlockReg:Bh().reg}},{key:"emit",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};switch(t){case"remove":return this.$remove();case"scroll":return this.$updateContainerPosition();case"previewUpdate":return this.$updateContainerPosition(),void(this.editing&&this.$setInputOffset());case"mouseup":return this.$tryRemoveMe(e,n)}}},{key:"$remove",value:function(){this.codeBlockEditor={info:{},codeBlockCodes:[],editorDom:{}}}},{key:"$tryRemoveMe",value:function(t,e){var n=this.codeBlockEditor.editorDom.inputDiv;this.editing&&n&&!n.contains(t.target)&&(this.editing=!1,this.$remove(),e())}},{key:"$findCodeInEditor",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$collectCodeBlockDom(),this.$collectCodeBlockCode(),t?this.$setLangSelection(this.codeBlockEditor.info.codeBlockIndex):this.$setBlockSelection(this.codeBlockEditor.info.codeBlockIndex)}},{key:"$collectCodeBlockDom",value:function(){var t=Gl(this.previewerDom.querySelectorAll('[data-type="codeBlock"]'));this.codeBlockEditor.info={codeBlockNode:this.target,codeBlockIndex:Cu(t).call(t,this.target)}}},{key:"$collectCodeBlockCode",value:function(){var t=[];this.codeMirror.getValue().replace(this.codeBlockReg,(function(e){var n,r=e.replace(/^\n*/,""),i=((n=(arguments.length<=1?0:arguments.length-1)-2+1)<1||arguments.length<=n?void 0:arguments[n])+e.match(/^\n*/)[0].length;au(r).call(r,"```mermaid")||t.push({code:r,offset:i})})),this.codeBlockEditor.codeBlockCodes=t}},{key:"$setBlockSelection",value:function(t){var e,n,r,i,a=this.codeBlockEditor.codeBlockCodes[t],o=this.codeMirror.getValue(),s=null!==(e=null===(n=Tu(o).call(o,0,a.offset).match(/\n/g))||void 0===n?void 0:n.length)&&void 0!==e?e:0,c=s+a.code.match(/\n/g).length,l=Tu(r=a.code).call(r,0,-3).match(/[^\n]+\n*$/)[0].length;this.codeBlockEditor.info.selection=[{line:c-1,ch:l},{line:s+1,ch:0}],(i=this.codeMirror).setSelection.apply(i,NA(this.codeBlockEditor.info.selection))}},{key:"$setLangSelection",value:function(t){var e,n,r,i,a=this.codeBlockEditor.codeBlockCodes[t],o=this.codeMirror.getValue(),s=null!==(e=null===(n=Tu(o).call(o,0,a.offset).match(/\n/g))||void 0===n?void 0:n.length)&&void 0!==e?e:0,c=(null!==(r=a.code.match(/```\s*[^\n]+/)[0])&&void 0!==r?r:"```").length;this.codeBlockEditor.info.selection=[{line:s,ch:3},{line:s,ch:c}],(i=this.codeMirror).setSelection.apply(i,NA(this.codeBlockEditor.info.selection))}},{key:"showBubble",value:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.$updateContainerPosition(),"hover"===this.trigger&&this.$showBtn(e),"click"===this.trigger&&this.$showContentEditor(),this.container.addEventListener("wheel",(function(e){e.stopPropagation(),e.preventDefault(),t.previewerDom.scrollTop+=e.deltaY/3}))}},{key:"$showContentEditor",value:function(){this.editing=!0,this.$findCodeInEditor(),this.$drawEditor()}},{key:"$showBtn",value:function(t){var e=this,n=this.target.dataset,r=n.changeLang,i=n.editCode,a=n.copyCode,o=n.lang;if(this.container.innerHTML="","true"===r&&t){this.container.innerHTML=function(t){var e=nf(gy).call(gy,(function(e){var n,r;return t===e?Za(r='"):Za(n='")}));return'")}(o);var s=this.container.querySelector("#code-preview-lang-select");this.changeLangDom=s,this.changeLangDom.addEventListener("change",(function(t){t.preventDefault(),t.stopPropagation(),e.parent.$removeAllPreviewerBubbles("click"),e.$changeLang(t.target.value||"")}))}if("true"===i&&t){var c=document.createElement("div");c.className="cherry-edit-code-block",c.innerHTML='',this.container.appendChild(c),c.addEventListener("click",(function(t){t.preventDefault(),t.stopPropagation(),e.$hideAllBtn(),e.parent.$removeAllPreviewerBubbles("click"),e.parent.showCodeBlockPreviewerBubbles("click",e.target)})),this.editDom=c}if("true"===a){var l=document.createElement("div");l.className="cherry-copy-code-block",l.innerHTML='',this.container.appendChild(l),l.addEventListener("click",(function(t){t.preventDefault(),t.stopPropagation(),e.parent.$removeAllPreviewerBubbles("click"),e.$copyCodeBlock()})),this.copyDom=l}}},{key:"$hideAllBtn",value:function(){var t,e,n,r,i,a;null!==(t=this.changeLangDom)&&void 0!==t&&null!==(e=t.style)&&void 0!==e&&e.display&&(this.changeLangDom.style.display="none"),null!==(n=this.editDom)&&void 0!==n&&null!==(r=n.style)&&void 0!==r&&r.display&&(this.editDom.style.display="none"),null!==(i=this.copyDom)&&void 0!==i&&null!==(a=i.style)&&void 0!==a&&a.display&&(this.copyDom.style.display="none")}},{key:"$changeLang",value:function(t){this.$findCodeInEditor(!0),this.codeMirror.replaceSelection(t,"around")}},{key:"$drawEditor",value:function(){var t=document.createElement("div");t.className="cherry-previewer-codeBlock-content-handler__input";var e=document.createElement("textarea");e.id="codeMirrorEditor",t.appendChild(e);var n=ou.fromTextArea(e,{mode:"",theme:"default",scrollbarStyle:"null",lineNumbers:!0,autofocus:!0,lineWrapping:!0,cursorHeight:.85,indentUnit:4,tabSize:4,keyMap:"sublime"}),r=this.codeMirror;n.on("change",(function(){r.replaceSelection(n.getValue(),"around")})),this.codeBlockEditor.editorDom.inputDiv=t,this.codeBlockEditor.editorDom.inputDom=n,this.$updateEditorPosition(),this.container.appendChild(this.codeBlockEditor.editorDom.inputDiv),this.codeBlockEditor.editorDom.inputDom.focus(),this.codeBlockEditor.editorDom.inputDom.refresh(),n.setValue(this.codeMirror.getSelection())}},{key:"$copyCodeBlock",value:function(){var t=this.target.lastElementChild.innerText,e=this.$cherry.options.callback.onCopyCode({target:this.target},t);if(!1===e)return!1;var n=this.copyDom.querySelector("i.ch-icon-copy");n&&(n.className=n.className.replace("copy","ok"),fo((function(){n.className=n.className.replace("ok","copy")}),1e3)),kk(e)}},{key:"$updateContainerPosition",value:function(){this.codeBlockEditor.info.codeBlockNode=this.target;var t=this.$getPosition();this.setStyle(this.container,"width","".concat(t.width,"px")),this.setStyle(this.container,"top","".concat(t.top,"px")),this.setStyle(this.container,"left","".concat(t.left,"px"))}},{key:"$updateEditorPosition",value:function(){this.$setInputOffset();var t=getComputedStyle(this.codeBlockEditor.info.codeBlockNode),e=this.codeBlockEditor.editorDom.inputDom.getWrapperElement();this.setStyle(e,"fontSize",t.fontSize||"16px"),this.setStyle(e,"fontFamily",t.fontFamily),this.setStyle(e,"lineHeight","1.8em"),this.setStyle(e,"zIndex","1")}},{key:"$setInputOffset",value:function(){var t=this.$getPosition(),e=this.codeBlockEditor.editorDom.inputDiv;this.setStyle(e,"width","".concat(t.width,"px")),this.setStyle(e,"height","".concat(t.height+10,"px"))}},{key:"setStyle",value:function(t,e,n){t.getBoundingClientRect()[e]!==n&&(t.style[e]=n)}},{key:"$getPosition",value:function(){var t=this.codeBlockEditor.info.codeBlockNode.getBoundingClientRect(),e=this.previewerDom.parentNode.getBoundingClientRect();return{top:t.top-e.top,height:t.height,width:t.width,left:t.left-e.left,maxHeight:e.height}}}]),t}(),_k=function(t,e,n){return Math.min(Math.max(t,e),n)},Sk={open:function(){this.resetStyle(),this.dom.style.display="block",this.postMessage("ready?")},close:function(){this.dom.style.display="none"},postMessage:function(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";null===(e=this.iframeDom)||void 0===e||null===(n=e.contentWindow)||void 0===n||n.postMessage({eventName:t,value:r},"*")},resetStyle:function(){var t=this.dom;t.style.left="10%",t.style.top="10%"},bindEvents:function(){this.bindClickEvents(),this.bindDNDEvents()},bindClickEvents:function(){var t=this;this.headCloseButton.addEventListener("click",(function(){t.close()})),this.footSureButton.addEventListener("click",(function(){t.postMessage("getData")}))},bindDNDEvents:function(){var t,e,n=this.dom,r=this.head,i=this.body,a=function(r){r.preventDefault();var i=_k(r.clientX-t,0,window.innerWidth-16),a=_k(r.clientY-e,0,window.innerHeight-16);n.style.left="".concat(i,"px"),n.style.top="".concat(a,"px")},o=function t(e){r.style.cursor="grab",i.style.pointerEvents=null,document.removeEventListener("mousemove",a),document.removeEventListener("mousemove",t)};r.addEventListener("mousedown",(function(s){s.target.classList.contains("cherry-dialog--close")||(t=s.clientX-n.offsetLeft,e=s.clientY-n.offsetTop,r.style.cursor="grabbing",i.style.pointerEvents="none",document.addEventListener("mousemove",a),document.addEventListener("mouseup",o))}))},draw:function(t,e,n){var r=this,i=t.iframeSrc,a=t.title;if(this.onSubmit=n,this.onReady=e,this.dom)return new RegExp("".concat(i,"$"),"i").test(this.iframeDom.src)||(this.iframeDom.src=i),void this.open();window.addEventListener("message",(function(t){if(t.data&&t.data.eventName)switch(t.data.eventName){case"getData:success":r.onSubmit(t.data.value),r.close();case"ready":r.onReady()}})),this.iframeDom=Zu("iframe","cherry-dialog-iframe",{src:i,style:"border: none;"}),this.dom=Zu("div","cherry-dialog",{style:["z-index:9999","display: block","position: absolute","top: 10%;left: 10%;width: 80%;height: 80%;","background-color: #FFF","box-shadow: 0px 50px 100px -12px rgba(0,0,0,.05),0px 30px 60px -30px rgba(0,0,0,.1)","border-radius: 6px","border: 1px solid #ddd;"].join(";")}),this.head=Zu("div","cherry-dialog--head",{style:["height: 30px","line-height: 30px","padding-left: 10px","padding-right: 10px","cursor: grab;"].join(";")}),this.body=Zu("div","cherry-dialog--body",{style:["position: absolute","bottom: 30px","top: 30px","left: 0","right: 0","overflow: hidden"].join(";")}),this.foot=Zu("div","cherry-dialog--foot",{style:["height: 30px","line-height: 30px","padding-left: 10px","padding-right: 10px","position: absolute","bottom: 0","left: 0","right: 0"].join(";")}),this.headTitle=Zu("span","cherry-dialog--title",{style:"user-select:none;"}),this.headCloseButton=Zu("i","cherry-dialog--close ch-icon ch-icon-close",{style:"float: right;font-size: 12px;cursor: pointer;"}),this.footSureButton=Zu("button","cherry-dialog--sure",{style:["float: right","cursor: pointer","margin: 3px","background-color: #4d90fe","color: #FFF","border: 1px solid #4d90fe","border-radius: 2px","padding: 2px 15px","user-select:none"].join(";")}),this.headCloseButton.title="关闭",this.footSureButton.textContent="确定",this.headTitle.textContent=a,this.head.appendChild(this.headTitle),this.head.appendChild(this.headCloseButton),this.foot.appendChild(this.footSureButton),this.body.appendChild(this.iframeDom),this.dom.appendChild(this.head),this.dom.appendChild(this.body),this.dom.appendChild(this.foot),this.bindEvents(),document.body.appendChild(this.dom)}};function Lk(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n={iframeSrc:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",title:"draw.io"};Sk.draw(n,(function(){Sk.postMessage("setData",t)}),(function(t){e(t)}))}var Ik=function(){return Lo.Date.now()},Mk=/\s/;var Fk=function(t){for(var e=t.length;e--&&Mk.test(t.charAt(e)););return e},Dk=/^\s+/;var Ok=function(t){return t?t.slice(0,Fk(t)+1).replace(Dk,""):t},Qk=/^[-+]0x[0-9a-f]+$/i,Nk=/^0b[01]+$/i,Pk=/^0o[0-7]+$/i,Rk=parseInt;var Uk=function(t){if("number"==typeof t)return t;if(pp(t))return NaN;if(Ho(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ho(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ok(t);var n=Nk.test(t);return n||Pk.test(t)?Rk(t.slice(2),n?2:8):Qk.test(t)?NaN:+t},Hk=Math.max,$k=Math.min;var jk=function(t,e,n){var r,i,a,o,s,c,l=0,u=!1,h=!1,f=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function A(e){var n=r,a=i;return r=i=void 0,l=e,o=t.apply(a,n)}function d(t){var n=t-c;return void 0===c||n>=e||n<0||h&&t-l>=a}function g(){var t=Ik();if(d(t))return p(t);s=setTimeout(g,function(t){var n=e-(t-c);return h?$k(n,a-(t-l)):n}(t))}function p(t){return s=void 0,f&&r?A(t):(r=i=void 0,o)}function b(){var t=Ik(),n=d(t);if(r=arguments,i=this,c=t,n){if(void 0===s)return function(t){return l=t,s=setTimeout(g,e),u?A(t):o}(c);if(h)return clearTimeout(s),s=setTimeout(g,e),A(c)}return void 0===s&&(s=setTimeout(g,e)),o}return e=Uk(e)||0,Ho(n)&&(u=!!n.leading,a=(h="maxWait"in n)?Hk(Uk(n.maxWait)||0,e):a,f="trailing"in n?!!n.trailing:f),b.cancel=function(){void 0!==s&&clearTimeout(s),l=0,r=c=i=s=void 0},b.flush=function(){return void 0===s?o:p(Ik())},b};function Kk(t,e){var n=document.createElement("a");n.href=t,n.download=e,n.click(),n.remove()}function zk(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("svg"!==e.format){var n=e.width,r=void 0===n?t.width.baseVal.value:n,i=e.height,a=void 0===i?t.height.baseVal.value:i,o=e.scale,s=void 0===o?5:o,c=e.quality,l=void 0===c?1:c,u=e.backgroundColor,h=void 0===u?"white":u,f=e.filename,A=void 0===f?"formula":f,d=e.format,g=void 0===d?"png":d,p=e.mimeType,b=void 0===p?"image/png":p,m=Xk(t),v=document.createElement("canvas"),w=v.getContext("2d"),y=new Image;y.src="data:image/svg+xml;base64,".concat(btoa(unescape(encodeURIComponent(m)))),y.onload=function(){v.width=r*s,v.height=a*s,w.fillStyle=h,w.fillRect(0,0,v.width,v.height),w.drawImage(y,0,0,v.width,v.height),v.toBlob((function(t){var e,n=$w.createObjectURL(t);Kk(n,Za(e="".concat(A,".")).call(e,g)),$w.revokeObjectURL(n)}),b,l)}}else{var x;!function(t,e){var n=Xk(t),r=new Blob([n],{type:"image/svg+xml;charset=utf-8"}),i=$w.createObjectURL(r);Kk(i,e),$w.revokeObjectURL(i)}(t,null!==(x=e.filename)&&void 0!==x?x:"formula.svg")}}function Xk(t){return(new XMLSerializer).serializeToString(t)}var Gk=function(){function t(e,n,r,i,a){fa(this,t),qa(this,"bubbleContainer",null),this.trigger=e,this.target=n,this.container=r,this.previewerDom=i,this.editor=a}return ga(t,[{key:"emit",value:function(t,e){switch(t){case"remove":case"scroll":return this.remove()}}},{key:"drawBubble",value:function(){var t,e,n,r=document.createElement("div");r.innerHTML='
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n
    ',r.id="formula-utils-bubble-container",r.className=["formula-utils-bubble-container"].join(" "),this.bubbleContainer=r,null==this||null===(t=this.editor)||void 0===t||null===(e=t.$cherry)||void 0===e||null===(n=e.wrapperDom)||void 0===n||n.appendChild(r)}},{key:"showBubble",value:function(t,e){var n,r,i,a,o,s=null==this||null===(n=this.editor)||void 0===n||null===(r=n.$cherry)||void 0===r||null===(i=r.wrapperDom)||void 0===i||null===(a=i.children)||void 0===a?void 0:a.namedItem("formula-utils-bubble-container"),c=this.target.getBoundingClientRect();s instanceof HTMLElement?this.bubbleContainer=s:this.drawBubble(),this.bubbleContainer.style.display="flex",this.bubbleContainer.style.top="".concat(e||c.top,"px"),this.bubbleContainer.style.left="".concat(t||c.left,"px"),this.bubbleContainer.addEventListener("click",ro(o=this.bubbleClickHandler).call(o,this),{once:!0}),this.collectFormulaCode()}},{key:"collectFormulaCode",value:function(){var t=[];this.editor.editor.getValue().replace(/(\$+)\s*([\w\W]*?)\s*(\1)/g,(function(e,n,r,i,a){t.push({code:r,offset:a})})),this.formulaCode=t}},{key:"remove",value:function(){this.bubbleContainer&&(this.bubbleContainer.style.display="none")}},{key:"bubbleClickHandler",value:function(t){var e=this;t.preventDefault(),t.stopPropagation();var n=t.target;if(n instanceof HTMLButtonElement){var r=n.dataset.name,i=void 0===r?"":r;switch(i){case"svg":case"png":case"jpg":this.target instanceof SVGSVGElement&&zk(this.target,{format:i});break;case"html":case"svgcode":if(this.target instanceof SVGSVGElement)if("svgcode"===i)Bk(Xk(this.target));else{var a=this.target.parentElement.querySelector("math");a.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),Bk(a.outerHTML)}break;case"\\":case"$":case"$$":case"latex":case"mathml":case"docx":var o=this.previewerDom.querySelectorAll("mjx-container"),s=-1;if(na(o).call(o,(function(t,n){t===e.target.parentElement&&(s=n)})),s>=0&&this.formulaCode[s]){var c=this.formulaCode[s].code;if("mathml"===i||"docx"===i){var l,u,h,f,A=pl(l=this.editor.$cherry.engine.hooks.paragraph).call(l,(function(t){return t instanceof Eg}));if(A&&"MathJax"===A.engine)null===(u=window.MathJax)||void 0===u||u.texReset(),null===(h=window.MathJax)||void 0===h||null===(f=h.tex2mmlPromise)||void 0===f||f.call(h,c,{display:!0}).then((function(t){"mathml"===i&&Bk(t)}))}else if("latex"===i)Bk(c);else if("$"===i){var d,g;Bk(Za(d=Za(g="".concat(i)).call(g,c)).call(d,i))}else if("$$"===i){var p,b;Bk(Za(p=Za(b="".concat(i,"\n")).call(b,c,"\n")).call(p,i))}else"\\"===i&&Bk("\\".concat(c))}}}this.remove()}}]),t}();Lt.f;var Vk=v("".endsWith),Wk=v("".slice),qk=Math.min,Yk=Jl("endsWith");te({target:"String",proto:!0,forced:!Yk},{endsWith:function(t){var e=wn(O(this));ql(t);var n=arguments.length>1?arguments[1]:void 0,r=e.length,i=void 0===n?r:qk(Oe(n),r),a=wn(t);return Vk?Vk(e,a,i):Wk(e,i-a.length,i)===a}});var Jk=ni("String").endsWith,Zk=String.prototype,tC=function(t){var e=t.endsWith;return"string"==typeof t||t===Zk||H(Zk,t)&&e===Zk.endsWith?Jk:e},eC=function(){function t(e,n,r,i,a){var o,s;fa(this,t),qa(this,"bubbleContainer",null),qa(this,"regList",kh),qa(this,"range",[]),qa(this,"position",{line:0,ch:0}),qa(this,"input",!1),qa(this,"isCheckbox",!1),this.trigger=e,this.target=n,this.container=r,this.previewerDom=i,this.editor=a,this.handleEditablesInputBinded=ro(o=this.handleEditablesInput).call(o,this),this.handleEditablesUnfocusBinded=ro(s=this.handleEditablesUnfocus).call(s,this),this.target.addEventListener("input",this.handleEditablesInputBinded,!1),this.target.addEventListener("focusout",this.handleEditablesUnfocusBinded,!1),this.setSelection()}return ga(t,[{key:"emit",value:function(t,e){if("remove"===t)return this.remove()}},{key:"remove",value:function(){this.bubbleContainer&&(this.bubbleContainer.style.display="none",this.bubbleContainer.children[0]instanceof HTMLTextAreaElement&&(this.bubbleContainer.children[0].value="")),this.target.removeAttribute("contenteditable"),this.target.removeEventListener("input",this.handleEditablesInputBinded,!1),this.target.removeEventListener("focusout",this.handleEditablesUnfocusBinded,!1);var t=this.editor.editor.getCursor();this.editor.editor.setSelection(t,t)}},{key:"setSelection",value:function(){var t,e,n=this,r=Gl(this.previewerDom.querySelectorAll("li.cherry-list-item")),i=Hh(r).call(r,(function(t){return t===n.target.parentElement}));if(-1!==i){var a=null!==(t=null===(e=Mh(null==this?void 0:this.editor.editor.getValue()))||void 0===e?void 0:e.split("\n"))&&void 0!==t?t:[],o=0,s=-1,c=-1,l="";na(a).call(a,(function(t,e){if(t&&"/n"!==t){var r=n.regList.exec(t);if(null!==r){var a=ku(r,5),u=a[1],h=a[2],f=a[3],A=a[4];o===i&&void 0!==u&&(s=e,l=A,c=Cu(t).call(t,l),null!=h&&tC(h).call(h,".")&&(c+=1),f&&(n.isCheckbox=!0)),o+=1}}}));var u={line:s,ch:c},h={line:s,ch:c+l.length};this.editor.editor.setSelection(u,h),this.range=[u,h],this.position=this.editor.editor.getCursor()}}},{key:"handleEditablesInput",value:function(t){this.input=!0,t.stopPropagation(),t.preventDefault(),t.target instanceof HTMLParagraphElement&&("insertParagraph"!==t.inputType&&"insertLineBreak"!==t.inputType||this.handleInsertLineBreak())}},{key:"handleEditablesUnfocus",value:function(t){if(t.stopPropagation(),t.preventDefault(),t.target instanceof HTMLParagraphElement){if(this.input){var e=this.isCheckbox?t.target.innerHTML.replace(/<\/span>/,""):t.target.innerHTML,n=this.editor.$cherry.engine.makeMarkdown(e),r=ku(this.range,2),i=r[0],a=r[1];this.editor.editor.replaceRange(n,i,a),this.isCheckbox=!1,this.input=!1}this.remove()}}},{key:"handleInsertLineBreak",value:function(){var t,e,n=this.editor.editor.getCursor(),r=this.editor.editor.getLine(n.line),i=this.regList.exec(r),a="\n- ";null!==i&&(a=Za(t="\n".concat(i[1])).call(t,null===(e=i[2])||void 0===e?void 0:e.replace("[x]","[ ] ")));this.editor.editor.replaceRange(a,{line:n.line,ch:this.editor.editor.getLine(n.line).length}),this.editor.editor.setCursor({line:n.line+1,ch:a.length+1}),this.editor.editor.focus(),this.remove()}}]),t}(),nC=function(){function t(e){fa(this,t),this.previewer=e,this.editor=e.editor,this.previewerDom=this.previewer.getDom(),this.enablePreviewerBubble=this.previewer.options.enablePreviewerBubble,this.bubble={},this.bubbleHandler={},this.init()}return ga(t,[{key:"init",value:function(){var t,e,n,r=this;this.oldWrapperDomOverflow=this.previewer.$cherry.wrapperDom.style.overflow,this.previewerDom.addEventListener("click",ro(t=this.$onClick).call(t,this)),this.previewerDom.addEventListener("mouseover",ro(e=this.$onMouseOver).call(e,this)),document.addEventListener("mousedown",(function(t){var e;na(e=Jw(r.bubbleHandler)).call(e,(function(e){return e.emit("mousedown",t)}))})),document.addEventListener("mouseup",(function(t){var e;na(e=Jw(r.bubbleHandler)).call(e,(function(e){return e.emit("mouseup",t,(function(){return r.$removeAllPreviewerBubbles("click")}))}))})),document.addEventListener("mousemove",(function(t){var e;na(e=Jw(r.bubbleHandler)).call(e,(function(e){return e.emit("mousemove",t)}))})),document.addEventListener("keyup",(function(t){var e;na(e=Jw(r.bubbleHandler)).call(e,(function(e){return e.emit("keyup",t)}))})),this.previewerDom.addEventListener("scroll",(function(t){var e;na(e=Jw(r.bubbleHandler)).call(e,(function(e){return e.emit("scroll",t)}))}),!0),ah.on(this.previewer.instanceId,ah.Events.previewerClose,(function(){return r.$removeAllPreviewerBubbles()})),this.previewer.options.afterUpdateCallBack.push((function(){var t;na(t=Jw(r.bubbleHandler)).call(t,(function(t){return t.emit("previewUpdate",(function(){return r.$removeAllPreviewerBubbles()}))}))})),this.previewerDom.addEventListener("change",ro(n=this.$onChange).call(n,this)),this.removeHoverBubble=jk((function(){return r.$removeAllPreviewerBubbles("hover")}),400)}},{key:"isCherryCodeBlock",value:function(t){if("DIV"===t.nodeName&&"codeBlock"===t.dataset.type)return t;var e=this.$getClosestNode(t,"DIV");return!1!==e&&("codeBlock"===e.dataset.type&&e)}},{key:"isCherryTable",value:function(t){var e=this.$getClosestNode(t,"DIV");return!1!==e&&(!(/simple-table/.test(e.className)||!/cherry-table-container/.test(e.className))&&e)}},{key:"$isEnableBubbleAndEditorShow",value:function(){return!!this.enablePreviewerBubble&&"hide"!==this.previewer.$cherry.getStatus().editor}},{key:"$onMouseOver",value:function(t){var e=t.target;if(e instanceof Element&&void 0!==e.tagName){switch(e.tagName){case"TD":case"TH":if(!this.$isEnableBubbleAndEditorShow())return;var n=this.isCherryTable(t.target);if(!1===n)return;return this.removeHoverBubble.cancel(),this.$removeAllPreviewerBubbles("hover"),void this.$showTablePreviewerBubbles("hover",t.target,n);case"PRE":case"CODE":case"SPAN":case"DIV":var r=this.isCherryCodeBlock(t.target);if(!1===r)return;return void this.showCodeBlockPreviewerBubbles("hover",r)}this.removeHoverBubble()}}},{key:"$onMouseOut",value:function(){this.enablePreviewerBubble&&this.previewer.$cherry.getStatus().editor}},{key:"$dealCheckboxClick",value:function(t){var e=this,n=t.target,r=Gl(this.previewerDom.querySelectorAll(".ch-icon-square, .ch-icon-check"));this.checkboxIdx=Cu(r).call(r,n);var i=Mh(this.editor.editor.getValue()).split("\n"),a=0,o=-1,s=-1;na(i).call(i,(function(t,n){var r=_l(t).call(t);(au(r).call(r,"- [ ]")||au(r).call(r,"- [x]"))&&(a===e.checkboxIdx&&(o=n,s=Cu(t).call(t,"- [")+3),a+=1)})),-1!==o&&(this.editor.editor.setSelection({line:o,ch:s},{line:o,ch:s+1}),this.editor.editor.replaceSelection(" "===this.editor.editor.getSelection()?"x":" ","around"))}},{key:"$onClick",value:function(t){var e,n=this,r=t.target,i=this.previewer.$cherry.getStatus();if("hide"!==i.editor&&r instanceof Element){if(r instanceof HTMLImageElement&&"IMG"===r.tagName&&"drawio"===r.getAttribute("data-type")){if(!this.beginChangeDrawioImg(r))return;var a=decodeURI(r.getAttribute("data-xml"));Lk(this.previewer.$cherry.options.drawioIframeUrl,a,(function(t){var e,r=t.xmlData,i=t.base64;n.editor.editor.replaceSelection(Za(e="(".concat(i,"){data-type=drawio data-xml=")).call(e,encodeURI(r),"}"),"around")}))}else if(this.enablePreviewerBubble&&("ch-icon ch-icon-square"!==r.className&&"ch-icon ch-icon-check"!==r.className||this.$dealCheckboxClick(t),this.$removeAllPreviewerBubbles("click"),void 0!==r.tagName))switch(r.tagName){case"IMG":r instanceof HTMLImageElement&&this.$showImgPreviewerBubbles(r);break;case"TD":case"TH":if(r instanceof HTMLElement){var o=this.isCherryTable(r);if(!1===o)return;this.$showTablePreviewerBubbles("click",r,o)}break;case"svg":"MJX-CONTAINER"===(null==r||null===(e=r.parentElement)||void 0===e?void 0:e.tagName)&&this.$showFormulaPreviewerBubbles("click",r,{x:t.pageX,y:t.pageY});break;case"A":t.stopPropagation();break;case"P":r instanceof HTMLParagraphElement&&r.parentElement instanceof HTMLLIElement&&(0!==r.children.length&&(t.preventDefault(),t.stopPropagation()),r.setAttribute("contenteditable","true"),r.focus(),this.$showListPreviewerBubbles("click",r))}}else"show"===i.previewer&&this.previewer.$cherry.options.callback.onClickPreview&&this.previewer.$cherry.options.callback.onClickPreview(t)}},{key:"$onChange",value:function(t){}},{key:"$getClosestNode",value:function(t,e){return t.tagName===e?t:"BODY"!==t.parentNode.tagName&&this.$getClosestNode(t.parentNode,e)}},{key:"$removeAllPreviewerBubbles",value:function(){var t,e,n,r,i=this,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";na(t=ai(e=ty(this.bubble)).call(e,(function(t){var e=ku(t,1)[0];return!a||a===e}))).call(t,(function(t){var e=ku(t,2),n=e[0];e[1].remove(),delete i.bubble[n]})),na(n=ai(r=ty(this.bubbleHandler)).call(r,(function(t){var e=ku(t,1)[0];return!a||a===e}))).call(n,(function(t){var e=ku(t,2),n=e[0];e[1].emit("remove"),delete i.bubbleHandler[n]})),mn(this.bubbleHandler).length<=0&&(this.previewer.$cherry.wrapperDom.style.overflow=this.oldWrapperDomOverflow||"")}},{key:"$showTablePreviewerBubbles",value:function(t,e,n){if(this.bubbleHandler[t]&&this.bubbleHandler[t].tableElement===n)this.bubbleHandler[t].showBubble();else{this.$createPreviewerBubbles(t,"click"===t?"table-content-handler":"table-hover-handler");var r=new dy(t,e,this.bubble[t],this.previewerDom,this.editor.editor,n);r.showBubble(),this.bubbleHandler[t]=r}}},{key:"showCodeBlockPreviewerBubbles",value:function(t,e){if(this.bubbleHandler[t]&&this.bubbleHandler[t].target===e)this.removeHoverBubble.cancel();else{this.$removeAllPreviewerBubbles("hover"),this.$createPreviewerBubbles(t,"codeBlock-".concat(t,"-handler"));var n=new Ek(t,e,this.bubble[t],this.previewerDom,this.editor.editor,this);n.showBubble(this.$isEnableBubbleAndEditorShow()),this.bubbleHandler[t]=n}}},{key:"$showImgPreviewerBubbles",value:function(t){var e;this.$createPreviewerBubbles();var n=Gl(this.previewerDom.querySelectorAll("img"));if(this.totalImgs=n.length,this.imgIndex=Cu(n).call(n,t),!this.beginChangeImgValue(t))return{emit:function(){}};ny.showBubble(t,this.bubble.click,this.previewerDom),ny.bindChange(ro(e=this.changeImgValue).call(e,this)),this.bubbleHandler.click=ny}},{key:"$showFormulaPreviewerBubbles",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.$createPreviewerBubbles(t,"formula-hover-handler");var r=new Gk(t,e,this.bubble[t],this.previewerDom,this.editor);r.showBubble((null==n?void 0:n.x)||0,(null==n?void 0:n.y)||0),this.bubbleHandler[t]=r}},{key:"$showListPreviewerBubbles",value:function(t,e){this.$createPreviewerBubbles(t,"list-hover-handler");var n=new eC(t,e,this.bubble[t],this.previewerDom,this.editor);this.bubbleHandler[t]=n}},{key:"beginChangeDrawioImg",value:function(t){var e,n=Gl(this.previewerDom.querySelectorAll('img[data-type="drawio"]')),r=n.length,i=Cu(n).call(n,t),a=Mh(this.editor.editor.getValue()),o=a.match(Ih),s=o[i]?_l(e=o[i].replace(/^!\[.*?\]\((.*?)\)/,"$1")).call(e):"";if(o.length===r||t.getAttribute("src")===s)for(var c=a.split(Ih),l=0,u=0,h=0,f=0,A=0;A0&&void 0!==arguments[0]?arguments[0]:"click",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"img-size-handler";this.bubble[t]||(this.bubble[t]=document.createElement("div"),this.bubble[t].className="cherry-previewer-".concat(e),this.previewerDom.after(this.bubble[t]),"hover"===t&&(this.bubble[t].addEventListener("mouseover",this.removeHoverBubble.cancel),this.bubble[t].addEventListener("mouseout",this.removeHoverBubble)),this.previewer.$cherry.wrapperDom.style.overflow="hidden")}},{key:"$showBorderBubbles",value:function(){}},{key:"$showBtnBubbles",value:function(){}}]),t}(),rC=P.setInterval,iC=function(){function t(e,n){fa(this,t),qa(this,"options",{loadingImgPath:"",maxNumPerTime:2,noLoadImgNum:5,autoLoadImgNum:5,maxTryTimesPerSrc:2,beforeLoadOneImgCallback:function(t){},failLoadOneImgCallback:function(t){},afterLoadOneImgCallback:function(t){},afterLoadAllImgCallback:function(){}}),cl(this.options,e),this.previewer=n,this.srcLoadedList=[],this.srcFailLoadedList={},this.srcLoadingList=[],this.srcList=[],this.loadingImgNum=0,this.lastLoadAllNum=0,this.previewerDom=this.previewer.getDomContainer()}return ga(t,[{key:"isLoaded",value:function(t){var e;return dp(e=this.srcLoadedList).call(e,t)}},{key:"isLoading",value:function(t){var e;return dp(e=this.srcLoadingList).call(e,t)}},{key:"loadFailed",value:function(t){this.srcFailLoadedList[t]=this.srcFailLoadedList[t]?this.srcFailLoadedList[t]+1:1}},{key:"isFailLoadedMax",value:function(t){return this.srcFailLoadedList[t]&&this.srcFailLoadedList[t]>this.options.maxTryTimesPerSrc}},{key:"isLoadedAllDone",value:function(){var t=this.previewerDom.querySelectorAll("img[data-src]"),e=this.srcLoadedList.length;return t.length<=0&&this.lastLoadAllNum=u&&i.top<=l,o=n.srcList.length=n.options.maxNumPerTime)return{v:!1};var c,f=n.options.beforeLoadOneImgCallback(e);if(void 0!==f&&!f)return n.loadFailed(s),"continue";s=null!==(c=e.getAttribute("data-src"))&&void 0!==c?c:s,n.loadingImgNum+=1,n.srcList.push(s),n.srcLoadingList.push(s),n.tryLoadOneImg(s,(function(){var t,r;e.setAttribute("src",s),e.removeAttribute("data-src"),n.srcLoadedList.push(s),n.loadingImgNum-=1,Vh(t=n.srcLoadingList).call(t,Cu(r=n.srcLoadingList).call(r,s),1),n.options.afterLoadOneImgCallback(e),n.loadOneImg()}),(function(){var t,r;n.loadFailed(s),n.loadingImgNum-=1,Vh(t=n.srcLoadingList).call(t,Cu(r=n.srcLoadingList).call(r,s),1),n.options.failLoadOneImgCallback(e),n.loadOneImg()}))},A=0;A]*?)data-src="([^"]+)"([^>]*?)>/g,(function(t,n,r,i){var a,o;return Za(a=Za(o="").replace(/ {2,}/g," ")}))}},{key:"changeLoadedDataSrc2Src",value:function(t){var e=this;return t.replace(/]*?)data-src="([^"]+)"([^>]*?)>/g,(function(t,n,r,i){var a,o;return e.isLoaded(r)?Za(a=Za(o="").replace(/ {2,}/g," "):t}))}},{key:"$removeSrc",value:function(t){return" ".concat(t).replace(/^(.*?) src=".*?"(.*?$)/,"$1$2")}},{key:"changeSrc2DataSrc",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.options.loadingImgPath,i=this.options.noLoadImgNum,a=0;return t.replace(/]*?)src="([^"]+)"([^>]*?)>/g,(function(t,o,s,c){var l,u,h,f,A;if(/data-src="/.test(t)||!/ src="/.test(t)||i<0)return t;if(!1===n){if(a"):Za(l=Za(u="")}))}}]),t}(),aC=function(){},oC=function(){function t(e){fa(this,t),qa(this,"applyingDomChanges",!1),qa(this,"syncScrollLockTimer",0),qa(this,"isMobilePreview",!1),this.options={previewerDom:document.createElement("div"),virtualDragLineDom:document.createElement("div"),editorMaskDom:document.createElement("div"),previewerMaskDom:document.createElement("div"),minBlockPercentage:.2,value:"",enablePreviewerBubble:!0,afterUpdateCallBack:[],isPreviewOnly:!1,previewerCache:{html:"",htmlChanged:!1,layout:{}},lazyLoadImg:{loadingImgPath:"",maxNumPerTime:2,noLoadImgNum:5,autoLoadImgNum:5,maxTryTimesPerSrc:2,beforeLoadOneImgCallback:function(t){},failLoadOneImgCallback:function(t){},afterLoadOneImgCallback:function(t){},afterLoadAllImgCallback:function(){}}},cl(this.options,e),this.$cherry=this.options.$cherry,this.instanceId=this.$cherry.getInstanceId(),this.animation={}}return ga(t,[{key:"init",value:function(t){this.disableScrollListener=!1,this.bindScroll(),this.editor=t,this.bindDrag(),this.$initPreviewerBubble(),this.lazyLoadImg=new iC(this.options.lazyLoadImg,this),this.lazyLoadImg.doLazyLoad(),this.onMouseDown()}},{key:"$initPreviewerBubble",value:function(){this.previewerBubble=new nC(this)}},{key:"getDomContainer",value:function(){return this.isMobilePreview?this.options.previewerDom.querySelector(".cherry-mobile-previewer-content"):this.options.previewerDom}},{key:"getDom",value:function(){return this.options.previewerDom}},{key:"getValue",value:function(){var t,e,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],r="";if(r=this.isPreviewerHidden()?this.options.previewerCache.html:this.getDomContainer().innerHTML,r=this.lazyLoadImg.changeDataSrc2Src(r),!n||!this.$cherry.wrapperDom)return r;var i=this.$cherry.wrapperDom.getAttribute("data-inline-code-theme"),a=this.$cherry.wrapperDom.getAttribute("data-code-block-theme");return Za(t=Za(e='
    ')).call(t,r,"
    ")}},{key:"isPreviewerHidden",value:function(){return this.options.previewerDom.classList.contains("cherry-previewer--hidden")}},{key:"calculateRealLayout",value:function(t){var e=+(t/(this.editor.options.editorDom.getBoundingClientRect().width+this.options.previewerDom.getBoundingClientRect().width)).toFixed(3);e1-this.options.minBlockPercentage&&(e=+(1-this.options.minBlockPercentage).toFixed(3));var n=+(1-e).toFixed(3);return{editorPercentage:"".concat(100*e,"%"),previewerPercentage:"".concat(100*n,"%")}}},{key:"setRealLayout",value:function(t,e){var n=t,r=e;n&&r||(n="50%",r="50%"),this.editor.options.editorDom.style.width=n,this.options.previewerDom.style.width=r,this.syncVirtualLayoutFromReal()}},{key:"syncVirtualLayoutFromReal",value:function(){var t=this.editor.options.editorDom.getBoundingClientRect(),e=this.options.previewerDom.getBoundingClientRect(),n=t.height,r=this.editor.options.editorDom.offsetTop,i=t.left,a=t.width,o=e.left?e.left-i:0,s=e.width||0,c=this.options,l=c.editorMaskDom,u=c.previewerMaskDom,h=c.virtualDragLineDom;h.style.top="".concat(r,"px"),h.style.left="".concat(o,"px"),h.style.bottom="0px",l.style.height="".concat(n,"px"),l.style.top="".concat(r,"px"),l.style.left="0px",l.style.width="".concat(a,"px"),u.style.height="".concat(n,"px"),u.style.top="".concat(r,"px"),u.style.left="".concat(o,"px"),u.style.width="".concat(s,"px")}},{key:"calculateVirtualLayout",value:function(t,e){var n=this.editor.options.editorDom.getBoundingClientRect().width+this.options.previewerDom.getBoundingClientRect().width,r=t.toFixed(0),i=e-t;in*(1-this.options.minBlockPercentage)&&(i=+(n*(1-this.options.minBlockPercentage)).toFixed(0));var a=n-i;return{startWidth:Du(r,10),leftWidth:i,rightWidth:a}}},{key:"setVirtualLayout",value:function(t,e,n){var r=this.options,i=r.editorMaskDom,a=r.previewerMaskDom,o=r.virtualDragLineDom;i.style.left="".concat(0,"px"),i.style.width="".concat(e,"px"),o.style.left="".concat(0+e,"px"),a.style.left="".concat(0+e,"px"),a.style.width="".concat(n,"px")}},{key:"bindDrag",value:function(){var t,e=this,n=function(t){t&&t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,t.preventDefault?t.preventDefault():window.event.returnValue=!1;var n=e.editor.options.editorDom.getBoundingClientRect().left,r=t.clientX,i=e.calculateVirtualLayout(n,r);return e.setVirtualLayout(i.startWidth,i.leftWidth,i.rightWidth),!1},r=function t(r){r&&r.stopPropagation?r.stopPropagation():r.cancelBubble=!0,r.preventDefault?r.preventDefault():window.event.returnValue=!1;var i=e.editor.options.editorDom.getBoundingClientRect().left,a=r.clientX,o=e.calculateRealLayout(a-i);return e.setRealLayout(o.editorPercentage,o.previewerPercentage),e.editor.options.editorDom.classList.remove("no-select"),e.options.previewerDom.classList.remove("no-select"),e.options.editorMaskDom.classList.remove("cherry-editor-mask--show"),e.options.previewerMaskDom.classList.remove("cherry-previewer-mask--show"),e.options.virtualDragLineDom.classList.remove("cherry-drag--show"),e.editor.editor.refresh(),rh(document,"mousemove",n,!1),rh(document,"mouseup",t,!1),!1};nh(this.options.virtualDragLineDom,"mousedown",(function(t){t&&t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,t.preventDefault?t.preventDefault():window.event.returnValue=!1,e.syncVirtualLayoutFromReal();var i=e.editor.options.editorDom.getBoundingClientRect().left,a=t.clientX,o=e.calculateVirtualLayout(i,a);return e.setVirtualLayout(o.startWidth,o.leftWidth,o.rightWidth),e.options.virtualDragLineDom.classList.contains("cherry-drag--show")||(e.options.virtualDragLineDom.classList.add("cherry-drag--show"),e.options.editorMaskDom.classList.add("cherry-editor-mask--show"),e.options.previewerMaskDom.classList.add("cherry-previewer-mask--show"),e.options.previewerDom.classList.add("no-select"),e.editor.options.editorDom.classList.add("no-select"),nh(document,"mousemove",n,!1),nh(document,"mouseup",r,!1)),!1}),!1),nh(window,"resize",ro(t=this.syncVirtualLayoutFromReal).call(t,this),!1),this.setRealLayout()}},{key:"bindScroll",value:function(){var t=this,e=this.getDomContainer();aC=function(){if(t.applyingDomChanges)ih.log(new Date,"sync scroll locked");else if(t.disableScrollListener)t.disableScrollListener=!1;else if(e.scrollTop<=0)t.editor.scrollToLineNum(0,0,1);else if(e.scrollTop+e.offsetHeight+10>e.scrollHeight)t.editor.scrollToLineNum(null);else{for(var n,r=e.getBoundingClientRect(),i={x:r.left+r.width/2,y:r.top+1},a=function(t,e){if("function"==typeof document.elementsFromPoint)return document.elementsFromPoint(t,e);if("function"==typeof document.msElementsFromPoint){var n=document.msElementsFromPoint(t,e);return null!==n?Gl(n):n}var r,i=[],a=[];do{var o=document.elementFromPoint(t,e);r!==o?(r=o,i.push(r),a.push(r.style.pointerEvents),r.style.pointerEvents="none"):r=null}while(r);return na(i).call(i,(function(t,e){t.style.pointerEvents=a[e]})),i}(i.x,i.y),o=0;o0)for(var a=0;a0&&(na(t).call(t,(function(t,i){var a;Tu(a=t.sign).call(a,0,12)===Tu(e).call(e,0,12)&&i>n&&(r={index:i>n?i:n,sign:e})})),r)}},{key:"$dealWithMyersDiffResult",value:function(t,e,n,r){var i=this;na(t).call(t,(function(t){switch(n[t.newIndex].dom&&(n[t.newIndex].dom.innerHTML=i.lazyLoadImg.changeLoadedDataSrc2Src(n[t.newIndex].dom.innerHTML)),t.type){case"delete":r.removeChild(e[t.oldIndex].dom);break;case"insert":e[t.oldIndex]?r.insertBefore(n[t.newIndex].dom,e[t.oldIndex].dom):r.appendChild(n[t.newIndex].dom);break;case"update":try{if(n[t.newIndex].dom.querySelector("svg"))throw new Error;i.$updateDom(n[t.newIndex].dom,e[t.oldIndex].dom)}catch(i){r.insertBefore(n[t.newIndex].dom,e[t.oldIndex].dom),r.removeChild(e[t.oldIndex].dom)}}}))}},{key:"$dealUpdate",value:function(t,e,n){if(n.list!==e.list)if(n.list.length&&e.list.length){var r=new sm(n.list,e.list,(function(t,e){return t[e].sign})).doDiff();ih.log(r),this.$dealWithMyersDiffResult(r,e.list,n.list,t)}else if(n.list.length&&!e.list.length){var i;ih.log("add all"),na(i=n.list).call(i,(function(e){t.appendChild(e.dom)}))}else if(!n.list.length&&e.list.length){var a;ih.log("delete all"),na(a=e.list).call(a,(function(e){t.removeChild(e.dom)}))}}},{key:"refresh",value:function(t){this.getDomContainer().innerHTML=t}},{key:"update",value:function(t){var e=this,n=this.lazyLoadImg.changeSrc2DataSrc(t);if(this.isPreviewerHidden())this.doHtmlCache(n);else{window.clearTimeout(this.syncScrollLockTimer),this.applyingDomChanges=!0;var r=document.createElement("div"),i=this.getDomContainer();r.innerHTML=n;var a=this.$getSignData(r),o=this.$getSignData(i);try{this.$dealUpdate(i,o,a),this.afterUpdate()}finally{this.syncScrollLockTimer=fo((function(){e.applyingDomChanges=!1}),50)}}}},{key:"$dealEditAndPreviewOnly",value:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n={editorPercentage:"0%",previewerPercentage:"100%"};e&&(n={editorPercentage:"100%",previewerPercentage:"0%"});var r=this.editor.options.editorDom.getBoundingClientRect().width,i=this.calculateRealLayout(r);this.options.previewerCache.layout=i,this.setRealLayout(n.editorPercentage,n.previewerPercentage),this.options.virtualDragLineDom.classList.add("cherry-drag--hidden");var a=this.options.previewerDom,o=this.editor.options.editorDom;e?(a.classList.add("cherry-previewer--hidden"),o.classList.add("cherry-editor--full"),a.classList.remove("cherry-preview--full"),o.classList.remove("cherry-editor--hidden")):(a.classList.add("cherry-preview--full"),o.classList.add("cherry-editor--hidden"),a.classList.remove("cherry-previewer--hidden"),o.classList.remove("cherry-editor--full")),fo((function(){return t.editor.editor.refresh()}),0)}},{key:"previewOnly",value:function(){this.$dealEditAndPreviewOnly(!1),this.options.previewerCache.htmlChanged&&this.update(this.options.previewerCache.html),this.cleanHtmlCache(),ah.emit(this.instanceId,ah.Events.previewerOpen),ah.emit(this.instanceId,ah.Events.editorClose)}},{key:"editOnly",value:function(){this.$dealEditAndPreviewOnly(!0),this.cleanHtmlCache(),ah.emit(this.instanceId,ah.Events.previewerClose),ah.emit(this.instanceId,ah.Events.editorOpen)}},{key:"recoverPreviewer",value:function(){var t=this;this.options.previewerDom.classList.remove("cherry-previewer--hidden"),this.options.virtualDragLineDom.classList.remove("cherry-drag--hidden"),this.editor.options.editorDom.classList.remove("cherry-editor--full");var e=this.options.previewerCache.layout;this.setRealLayout(e.editorPercentage,e.previewerPercentage),this.options.previewerCache.htmlChanged&&this.update(this.options.previewerCache.html),this.cleanHtmlCache(),ah.emit(this.instanceId,ah.Events.previewerOpen),ah.emit(this.instanceId,ah.Events.editorOpen),fo((function(){return t.editor.editor.refresh()}),0)}},{key:"doHtmlCache",value:function(t){this.options.previewerCache.html=t,this.options.previewerCache.htmlChanged=!0}},{key:"cleanHtmlCache",value:function(){this.options.previewerCache.html="",this.options.previewerCache.htmlChanged=!1,this.options.previewerCache.layout={}}},{key:"afterUpdate",value:function(){var t;nf(t=this.options.afterUpdateCallBack).call(t,(function(t){return t()})),void 0===this.highlightLineNum&&(this.highlightLineNum=0),this.highlightLine(this.highlightLineNum)}},{key:"registerAfterUpdate",value:function(t){if(of(t)){var e;this.options.afterUpdateCallBack=Za(e=this.options.afterUpdateCallBack).call(e,t)}else{if(!t)throw new Error("[markdown error]: Previewer registerAfterUpdate params are undefined");this.options.afterUpdateCallBack.push(t)}}},{key:"$getTopByLineNum",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.getDomContainer();if(null===t)return n.scrollHeight;for(var r="number"==typeof t?t:Du(t,10),i=n.querySelectorAll("[data-sign]"),a=0,o=n.offsetTop,s=0;s1&&(f=h+(c-Math.abs(r-(a+c))-1)/c*u+u/c*e),f}a+=c}return n.scrollHeight}},{key:"highlightLine",value:function(t){var e,n,r,i,a,o=this.getDomContainer();if(na(e=o.querySelectorAll(".cherry-highlight-line")).call(e,(function(t){t.classList.remove("cherry-highlight-line")})),"show"===(null===(n=this.$cherry)||void 0===n||null===(r=n.status)||void 0===r?void 0:r.previewer)&&"show"===(null===(i=this.$cherry)||void 0===i||null===(a=i.status)||void 0===a?void 0:a.editor))for(var s=o.querySelectorAll("[data-sign]"),c=0,l=0;l=n.scrollHeight||a>Math.abs(i))return cancelAnimationFrame(e.animation.timer),void(e.animation.timer=0);e.disableScrollListener=!0,e.getDomContainer().scrollTo(null,r+i/Math.abs(i)*a),e.animation.timer=requestAnimationFrame(t)}))}}},{key:"scrollToLineNum",value:function(t,e){var n=this.$getTopByLineNum(t,e);this.$scrollAnimation(n)}},{key:"onMouseDown",value:function(){var t=this;nh(this.getDomContainer(),"mousedown",(function(){fo((function(){ah.emit(t.instanceId,ah.Events.cleanAllSubMenus)}))}))}},{key:"export",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pdf",e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"")||this.getDomContainer().innerText.match(/^\s*([^\s][^\n]*)\n/)[1]||"cherry-export";"pdf"===t?function(t,e){var n=document.title;document.title=e,Kw(t,(function(t,e){window.print(),e(),document.title=n}))}(this.getDomContainer(),e):"screenShot"===t||"img"===t?zw(this.getDomContainer(),e):"markdown"===t?function(t,e){var n=new Blob([t],{type:"text/markdown;charset=utf-8"}),r=document.createElement("a");r.style.display="none",r.href=$w.createObjectURL(n),r.download="".concat(e,".md"),document.body.appendChild(r),r.click(),document.body.removeChild(r)}(this.$cherry.getMarkdown(),e):"html"===t&&function(t,e){var n=new Blob([t],{type:"text/markdown;charset=utf-8"}),r=document.createElement("a");r.style.display="none",r.href=$w.createObjectURL(n),r.download="".concat(e,".html"),document.body.appendChild(r),r.click(),document.body.removeChild(r)}(this.getValue(),e)}}]),t}(),sC=navigator.userAgent,cC=navigator.platform;/gecko\/\d/i.test(sC);var lC=/MSIE \d/.test(sC),uC=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(sC),hC=/Edge\/(\d+)/.exec(sC);(lC||uC||hC)&&(lC?document.documentMode:(hC||uC)[1]);var fC=!hC&&/WebKit\//.test(sC);fC&&/Qt\/\d+\.\d+/.test(sC),!hC&&/Chrome\//.test(sC);var AC=/Opera\//.test(sC);/Apple Computer/.test(navigator.vendor),/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(sC),/PhantomJS/.test(sC);var dC=!hC&&/AppleWebKit/.test(sC)&&/Mobile\/\w+/.test(sC),gC=/Android/.test(sC);dC||gC||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(sC);var pC=dC||/Mac/.test(cC);/\bCrOS\b/.test(sC),/win/i.test(cC);var bC=AC&&sC.match(/Version\/(\d*\.\d*)/);function mC(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"absolute",n=t.getBoundingClientRect();return"fixed"===e?n:"sidebar"===e?{left:vC.getTargetParentByButton(t).offsetLeft-130+n.width,top:t.offsetTop+n.height/2,width:n.width,height:n.height}:{left:t.offsetLeft,top:t.offsetTop,width:n.width,height:n.height}}bC&&(bC=Number(bC[1])),bC&&bC>=15&&(AC=!1,fC=!0);var vC=function(){function t(e){fa(this,t),qa(this,"_onClick",void 0),this.$cherry=e,this.bubbleMenu=!1,this.subMenu=null,this.name="",this.editor=e.editor,this.locale=e.locale,this.dom=null,this.updateMarkdown=!0,this.subMenuConfig=[],this.noIcon=!1,this.cacheOnce=!1,this.positionModel="absolute","function"==typeof this._onClick&&(ih.warn("`MenuBase._onClick` is deprecated. Override `fire` instead"),this.fire=this._onClick)}return ga(t,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"setName",value:function(t,e){this.name=t,this.iconName=e}},{key:"setCacheOnce",value:function(t){this.cacheOnce=t}},{key:"getAndCleanCacheOnce",value:function(){this.updateMarkdown=!0;var t=this.cacheOnce;return this.cacheOnce=!1,t}},{key:"hasCacheOnce",value:function(){return!1!==this.cacheOnce}},{key:"createBtn",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=Zu("span",t?"cherry-dropdown-item":"cherry-toolbar-button cherry-toolbar-".concat(this.iconName?this.iconName:this.name),{title:this.locale[this.name]||Ff(this.name)});if(this.iconName&&!this.noIcon){var n=Zu("i","ch-icon ch-icon-".concat(this.iconName));e.appendChild(n)}return(t||this.noIcon)&&(e.innerHTML+=this.locale[this.name]||Ff(this.name)),t||this.dom||(this.dom=e),e}},{key:"createSubBtnByConfig",value:function(t){var e=t.name,n=t.iconName,r=t.onclick,i=Zu("span","cherry-dropdown-item",{title:this.locale[e]||Ff(e)});if(n){var a=Zu("i","ch-icon ch-icon-".concat(n));i.appendChild(a)}return i.innerHTML+=this.locale[e]||Ff(e),i.addEventListener("click",r,!1),i}},{key:"fire",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(null==t||t.stopPropagation(),"function"==typeof this.onClick){var r=this.editor.editor.getSelections();this.isSelections=r.length>1;var i=nf(r).call(r,(function(r,i,a){return e.onClick(r,n,t)||a[i]}));!this.bubbleMenu&&this.updateMarkdown&&(this.editor.editor.replaceSelections(i,"around"),this.editor.editor.focus(),this.$afterClick())}}},{key:"$getSelectionRange",value:function(){var t=this.editor.editor.listSelections()[0],e=t.anchor,n=t.head;return e.line===n.line&&e.ch>n.ch||e.line>n.line?{begin:n,end:e}:{begin:e,end:n}}},{key:"registerAfterClickCb",value:function(t){this.afterClickCb=t}},{key:"$afterClick",value:function(){"function"!=typeof this.afterClickCb||this.isSelections||(this.afterClickCb(),this.afterClickCb=null)}},{key:"setLessSelection",value:function(t,e){var n,r,i,a,o=this.editor.editor,s=this.$getSelectionRange(),c=s.begin,l=s.end,u={line:(null===(n=t.match(/\n/g))||void 0===n?void 0:n.length)>0?c.line+t.match(/\n/g).length:c.line,ch:(null===(r=t.match(/\n/g))||void 0===r?void 0:r.length)>0?t.replace(/^[\s\S]*?\n([^\n]*)$/,"$1").length:c.ch+t.length},h=(null===(i=e.match(/\n/g))||void 0===i?void 0:i.length)>0?l.line-e.match(/\n/g).length:l.line,f={line:h,ch:(null===(a=e.match(/\n/g))||void 0===a?void 0:a.length)>0?o.getLine(h).length:l.ch-e.length};o.setSelection(u,f)}},{key:"getMoreSelection",value:function(t,e,n){var r=this.editor.editor,i=this.$getSelectionRange(),a=i.begin,o=i.end,s=/\n/.test(t)?0:a.ch-t.length;s=s<0?0:s;var c,l=/\n/.test(t)?a.line-t.match(/\n/g).length:a.line,u={line:l=l<0?0:l,ch:s},h=o.line,f=o.ch;/\n/.test(e)?(h=o.line+e.match(/\n/g).length,f=null===(c=r.getLine(h))||void 0===c?void 0:c.length):f=r.getLine(o.line).length1&&void 0!==arguments[1]?arguments[1]:"word",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.editor.editor;if(this.isSelections)return t;if(t&&!n)return t;if("line"===e){var i=this.$getSelectionRange(),a=i.begin,o=i.end;return r.setSelection({line:a.line,ch:0},{line:o.line,ch:r.getLine(o.line).length}),r.getSelection()}if("word"===e){var s=r.findWordAt(r.getCursor()),c=s.anchor,l=s.head;return r.setSelection(c,l),r.getSelection()}}},{key:"bindSubClick",value:function(t,e){return this.fire(null,t)}},{key:"onClick",value:function(t,e,n){return t}},{key:"shortcutKeys",get:function(){return[]}},{key:"getMenuPosition",value:function(){var e=t.getTargetParentByButton(this.dom),n=/cherry-sidebar/.test(e.className);return/cherry-bubble/.test(e.className)||/cherry-floatmenu/.test(e.className)?this.positionModel="fixed":this.positionModel=n?"sidebar":"absolute",mC(this.dom,this.positionModel)}}],[{key:"getTargetParentByButton",value:function(t){var e=t.parentElement;return/toolbar-(left|right)/.test(e.className)&&(e=e.parentElement),e}}]),t}();function wC(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var yC=function(t){xa(n,vC);var e=wC(n);function n(t){var r;return fa(this,n),(r=e.call(this,t)).setName("bold","bold"),r}return ga(n,[{key:"$testIsBold",value:function(t){return/^\s*(\*\*|__)[\s\S]+(\1)/.test(t)}},{key:"onClick",value:function(t){var e=this,n=this.getSelection(t)||this.locale.bold;return this.isSelections||this.$testIsBold(n)||this.getMoreSelection("**","**",(function(){var t=e.editor.editor.getSelection(),r=e.$testIsBold(t);return r&&(n=t),r})),this.$testIsBold(n)?n.replace(/(^)(\s*)(\*\*|__)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb((function(){e.setLessSelection("**","**")})),n.replace(/(^)([^\n]+)($)/gm,"$1**$2**$3"))}},{key:"shortcutKeys",get:function(){return["Ctrl-b"]}}]),n}();function xC(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var kC=function(t){xa(n,vC);var e=xC(n);function n(t){var r;return fa(this,n),(r=e.call(this,t)).setName("italic","italic"),r}return ga(n,[{key:"$testIsItalic",value:function(t){return/^\s*(\*|_)[\s\S]+(\1)/.test(t)}},{key:"onClick",value:function(t){var e=this,n=this.getSelection(t)||this.locale.italic;return this.isSelections||this.$testIsItalic(n)||this.getMoreSelection("*","*",(function(){var t=e.editor.editor.getSelection(),r=e.$testIsItalic(t);return r&&(n=t),r})),this.$testIsItalic(n)?n.replace(/(^)(\s*)(\*|_)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb((function(){e.setLessSelection("*","*")})),n.replace(/(^)([^\n]+)($)/gm,"$1*$2*$3"))}},{key:"shortcutKeys",get:function(){return["Ctrl-i"]}}]),n}();function CC(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var BC=function(t){xa(n,vC);var e=CC(n);function n(t){var r;return fa(this,n),(r=e.call(this,t)).setName("split","|"),r}return ga(n,[{key:"createBtn",value:function(){var t=document.createElement("i");return t.className="cherry-toolbar-button cherry-toolbar-split",t}}]),n}();function TC(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"word",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(t.getSelections().length>1)return e;if(e&&!r)return e;if("line"===n){var i=t.listSelections()[0],a=i.anchor,o=i.head;return a.line===o.line&&a.ch>o.ch||a.line>o.line?t.setSelection({line:o.line,ch:0},{line:a.line,ch:t.getLine(a.line).length}):t.setSelection({line:a.line,ch:0},{line:o.line,ch:t.getLine(o.line).length}),t.getSelection()}if("word"===n){var s=t.findWordAt(t.getCursor()),c=s.anchor,l=s.head;return t.setSelection(c,l),t.getSelection()}}function EC(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var _C=function(t){xa(n,vC);var e=EC(n);function n(t){var r;return fa(this,n),(r=e.call(this,t)).setName("strikethrough","strike"),r}return ga(n,[{key:"$testIsStrike",value:function(t){return/(~~)[\s\S]+(\1)/.test(t)}},{key:"onClick",value:function(t){var e,n,r,i,a,o,s=this,c=TC(this.editor.editor,t)||this.locale.strikethrough,l=(null===(e=this.$cherry)||void 0===e||null===(n=e.options)||void 0===n||null===(r=n.engine)||void 0===r||null===(i=r.syntax)||void 0===i||null===(a=i.strikethrough)||void 0===a?void 0:a.needWhitespace)?" ":"";return this.isSelections||this.$testIsStrike(c)||this.getMoreSelection("".concat(l,"~~"),"~~".concat(l),(function(){var t=s.editor.editor.getSelection(),e=s.$testIsStrike(t);return e&&(c=t),e})),this.$testIsStrike(c)?t.replace(/[\s]*(~~)([\s\S]+)(\1)[\s]*/g,"$2"):(this.registerAfterClickCb((function(){s.setLessSelection("".concat(l,"~~"),"~~".concat(l))})),c.replace(/(^)[\s]*([\s\S]+?)[\s]*($)/g,Za(o="$1".concat(l,"~~$2~~")).call(o,l,"$3")))}},{key:"shortcutKeys",get:function(){return["Ctrl-d"]}}]),n}();function SC(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var LC=function(t){xa(n,vC);var e=SC(n);function n(t){var r;return fa(this,n),(r=e.call(this,t)).setName("sub","sub"),r}return ga(n,[{key:"$testIsSub",value:function(t){return/^\s*(\^\^)[\s\S]+(\1)/.test(t)}},{key:"onClick",value:function(t){var e=this,n=TC(this.editor.editor,t)||this.locale.sub;return this.isSelections||this.$testIsSub(n)||this.getMoreSelection("^^","^^",(function(){var t=e.editor.editor.getSelection(),r=e.$testIsSub(t);return r&&(n=t),r})),this.$testIsSub(n)?n.replace(/(^)(\s*)(\^\^)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb((function(){e.setLessSelection("^^","^^")})),n.replace(/(^)([^\n]+)($)/gm,"$1^^$2^^$3"))}}]),n}();function IC(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var MC=function(t){xa(n,vC);var e=IC(n);function n(t){var r;return fa(this,n),(r=e.call(this,t)).setName("sup","sup"),r}return ga(n,[{key:"$testIsSup",value:function(t){return/^\s*(\^)[\s\S]+(\1)/.test(t)}},{key:"onClick",value:function(t){var e=this,n=TC(this.editor.editor,t)||this.locale.sup;return this.isSelections||this.$testIsSup(n)||this.getMoreSelection("^","^",(function(){var t=e.editor.editor.getSelection(),r=e.$testIsSup(t);return r&&(n=t),r})),this.$testIsSup(n)?t.replace(/(^)(\s*)(\^)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb((function(){e.setLessSelection("^","^")})),n.replace(/(^)([^\n]+)($)/gm,"$1^$2^$3"))}}]),n}();function FC(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var DC=function(t){xa(n,vC);var e=FC(n);function n(t){var r;return fa(this,n),(r=e.call(this,t)).setName("color","color"),r.bubbleColor=new OC(t),r}return ga(n,[{key:"$testIsColor",value:function(t,e){var n=/^\s*!!![^\s]+ [\s\S]+!!!\s*$/;return"text"===t?/^\s*!![^\s]+ [\s\S]+!!\s*$/.test(e)&&!n.test(e):n.test(e)}},{key:"onClick",value:function(t){var e=this,n=arguments.length>2?arguments[2]:void 0,r=TC(this.editor.editor,t)||this.locale.color;if(this.hasCacheOnce()){var i,a,o=this.getAndCleanCacheOnce(),s=o.type,c=o.color,l="text"===s?"!!".concat(c," "):"!!!".concat(c," "),u="text"===s?"!!":"!!!";if(this.isSelections||this.$testIsColor(s,r)||this.getMoreSelection(l,u,(function(){var t=e.editor.editor.getSelection();return!!e.$testIsColor(s,t)&&(r=t,!0)})),this.$testIsColor(s,r)){var h,f=new RegExp(Za(h="(^\\s*".concat(u,")([^\\s]+) ([\\s\\S]+")).call(h,u,"\\s*$)"),"gm"),A=!0,d=r.replace(f,(function(t,e,n,r){var i,a;return A=!!A&&n===c,Za(i=Za(a="".concat(e)).call(a,c," ")).call(i,r)}));return A?r.replace(f,"$3").replace(/!+\s*$/gm,""):(this.registerAfterClickCb((function(){e.setLessSelection(l,u)})),d)}return this.registerAfterClickCb((function(){e.setLessSelection(l,u)})),Za(i=Za(a="".concat(l)).call(a,r)).call(i,u)}var g=0,p=0;if(n.target.closest(".cherry-bubble")){var b=n.target.closest(".cherry-bubble"),m=b.getBoundingClientRect();g=m.top+b.offsetHeight,p=n.target.closest(".cherry-toolbar-color").offsetLeft+m.left}else{var v=n.target.closest(".cherry-toolbar-color"),w=v.getBoundingClientRect();g=w.top+v.offsetHeight,p=w.left}this.updateMarkdown=!1,this.bubbleColor.show({left:p,top:g,$color:this})}}]),n}(),OC=function(){function t(e){fa(this,t),qa(this,"colorStack",["#000000","#444444","#666666","#999999","#cccccc","#eeeeee","#f3f3f3","#ffffff","#ff0000","#ff9900","#ffff00","#00ff00","#00ffff","#0000ff","#9900ff","#ff00ff","#f4cccc","#fce5cd","#fff2cc","#d9ead3","#d0e0e3","#cfe2f3","#d9d2e9","#ead1dc","#ea9999","#f9cb9c","#ffe599","#b6d7a8","#a2c4c9","#9fc5e8","#b4a7d6","#d5a6bd","#e06666","#f6b26b","#ffd966","#93c47d","#76a5af","#6fa8dc","#8e7cc3","#c27ba0","#cc0000","#e69138","#f1c232","#6aa84f","#45818e","#3d85c6","#674ea7","#a64d79","#990000","#b45f06","#bf9000","#38761d","#134f5c","#0b5394","#351c75","#741b47","#660000","#783f04","#7f6000","#274e13","#0c343d","#073763","#20124d","#4c1130"]),this.editor=e.editor,this.init(),this.initAction()}return ga(t,[{key:"setSelection",value:function(t){this.selection=t}},{key:"getFontColorDom",value:function(t){var e,n,r=nf(e=this.colorStack).call(e,(function(t){var e,n;return Za(e=Za(n='')})).join("");return Za(n="

    ".concat(t,"

    ")).call(n,r)}},{key:"getDom",value:function(){var t=document.createElement("div");t.classList.add("cherry-color-wrap"),t.classList.add("cherry-dropdown");var e=document.createElement("div");e.classList.add("cherry-color-text"),e.innerHTML=this.getFontColorDom("文本颜色"),t.appendChild(e);var n=document.createElement("div");return n.classList.add("cherry-color-bg"),n.innerHTML=this.getFontColorDom("背景颜色"),t.appendChild(n),t}},{key:"init",value:function(){this.dom=this.getDom(),this.editor.options.wrapperDom.appendChild(this.dom)}},{key:"onClick",value:function(){var t,e;return"text"===this.type?/^!!#\S+ [\s\S]+?!!/.test(this.selection)?this.selection.replace(/^!!#\S+ ([\s\S]+?)!!/,"!!".concat(this.colorValue," $1!!")):Za(e="!!".concat(this.colorValue," ")).call(e,this.selection,"!!"):/^!!!#\S+ [\s\S]+?!!!/.test(this.selection)?this.selection.replace(/^!!!#\S+ ([\s\S]+?)!!!/,"!!!".concat(this.colorValue," $1!!!")):Za(t="!!!".concat(this.colorValue," ")).call(t,this.selection,"!!!")}},{key:"initAction",value:function(){var t=this;this.dom.addEventListener("click",(function(e){var n=e.target;if(t.colorValue=n.getAttribute("data-val"),!t.colorValue)return!1;t.type=n.closest(".cherry-color-text")?"text":"bg",t.$color.setCacheOnce({type:t.type,color:t.colorValue}),t.$color.fire(null)}),!1),this.dom.addEventListener("EditorHideToolbarSubMenu",(function(){"none"!==t.dom.style.display&&(t.dom.style.display="none")}))}},{key:"show",value:function(t){var e=t.left,n=t.top,r=t.$color;this.dom.style.left="".concat(e,"px"),this.dom.style.top="".concat(n,"px"),this.dom.style.display="block",this.$color=r}}]),t}();function QC(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var NC=function(t){xa(n,vC);var e=QC(n);function n(t){var r,i,a,o,s,c;return fa(this,n),(c=e.call(this,t)).setName("header","header"),c.subMenuConfig=[{iconName:"h1",name:"h1",onclick:ro(r=c.bindSubClick).call(r,pa(c),"1")},{iconName:"h2",name:"h2",onclick:ro(i=c.bindSubClick).call(i,pa(c),"2")},{iconName:"h3",name:"h3",onclick:ro(a=c.bindSubClick).call(a,pa(c),"3")},{iconName:"h4",name:"h4",onclick:ro(o=c.bindSubClick).call(o,pa(c),"4")},{iconName:"h5",name:"h5",onclick:ro(s=c.bindSubClick).call(s,pa(c),"5")}],c}return ga(n,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"$getFlagStr",value:function(t){var e=+("string"==typeof t?t.replace(/[^0-9]+([0-9])/g,"$1"):t);return Pu("#").call("#",e||1)}},{key:"$testIsHead",value:function(t){return/^\s*(#+)\s*.+/.test(t)}},{key:"onClick",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=TC(this.editor.editor,t,"line",!0)||this.locale.header,i=this.$getFlagStr(n);if(this.isSelections||this.$testIsHead(r)||this.getMoreSelection("\n","",(function(){var t=e.editor.editor.getSelection(),n=e.$testIsHead(t);return n&&(r=t),n})),this.$testIsHead(r)){var a=!0,o=r.replace(/(^\s*)(#+)(\s*)(.+$)/gm,(function(t,e,n,r,o){var s,c,l;return a=!!a&&n.length===i.length,Za(s=Za(c=Za(l="".concat(e)).call(l,i)).call(c,r)).call(s,o)}));return a?r.replace(/(^\s*)(#+)(\s*)(.+$)/gm,"$1$4"):(this.registerAfterClickCb((function(){e.setLessSelection("".concat(i," "),"")})),o)}return this.registerAfterClickCb((function(){e.setLessSelection("".concat(i," "),"")})),r.replace(/(^)([\s]*)([^\n]+)($)/gm,"$1".concat(i," $3$4"))}},{key:"shortcutKeys",get:function(){return["Ctrl-1","Ctrl-2","Ctrl-3","Ctrl-4","Ctrl-5","Ctrl-6"]}}]),n}(),PC=function(t,e){var n,r=document.createElement("td");return r.className=e||"table-item",na(n=mn(t)).call(n,(function(e){r.dataset[e]=t[e]})),r},RC=function(){function t(e,n){var r=e.row,i=e.col;fa(this,t),this.init(r,i,n),this.initEventListeners(),this.afterClick=function(){}}return ga(t,[{key:"init",value:function(t,e,n){var r=this,i=document.createElement("table"),a=[];i.className=["cherry-insert-table-menu","cherry-dropdown"].join(" ");for(var o=1;o<=t;o++){var s=document.createElement("tr");s.className="cherry-insert-table-menu-row",a[o-1]=[];for(var c=1;c<=e;c++){var l=PC({row:o,col:c},"cherry-insert-table-menu-item");s.appendChild(l),a[o-1][c-1]=l}i.appendChild(s)}return i.style.display="none",i.addEventListener("EditorHideToolbarSubMenu",(function(){r.hide()})),this.dom=i,this.cell=a,this.maxRow=t,this.maxCol=e,this.activeRow=0,this.activeCol=0,this.dom}},{key:"initEventListeners",value:function(){var t,e;this.dom.addEventListener("mousemove",ro(t=this.handleMouseMove).call(t,this),!1),this.dom.addEventListener("mouseup",ro(e=this.handleMouseUp).call(e,this))}},{key:"setActiveCell",value:function(t,e){if(this.activeRow!==t||this.activeCol!==e){var n=Math.min(this.activeRow,t),r=Math.max(this.activeRow,t);if(n!==r)for(var i=r;i>n;i--)for(var a=1;a<=this.activeCol;a++)this.cell[i-1][a-1].classList.toggle("active");var o=Math.min(this.activeCol,e),s=Math.max(this.activeCol,e);if(o!==s)for(var c=s;c>o;c--)for(var l=1;l<=t;l++)this.cell[l-1][c-1].classList.toggle("active");this.activeRow=t,this.activeCol=e}}},{key:"handleMouseMove",value:function(t){var e=t.target;e!==this.dom&&(e.classList.contains("cherry-insert-table-menu-item")||(e=e.querySelector(".cherry-insert-table-menu-item")),e&&this.setActiveCell(e.dataset.row,e.dataset.col))}},{key:"handleMouseUp",value:function(t){var e=t.target;return e===this.dom||e.classList.contains("cherry-insert-table-menu-item")||(e=e.querySelector(".cherry-insert-table-menu-item")),this.afterClick(this.activeRow,this.activeCol),void this.hide()}},{key:"show",value:function(t){this.dom.style.display="block",this.afterClick=t}},{key:"hide",value:function(){this.dom.style.display="none";for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:"image",n=document.createElement("input");n.type="file",n.id="fileUpload",n.value="",n.style.display="none",n.addEventListener("change",(function(n){var r=ku(n.target.files,1)[0];t.$cherry.options.fileUpload(r,(function(n){if("string"==typeof n&&n){var i,a="";if("image"===e)a=Za(i="![".concat(r.name,"](")).call(i,n,")");else if("video"===e){var o;a=Za(o="!video[".concat(r.name,"](")).call(o,n,")")}else if("audio"===e){var s;a=Za(s="!audio[".concat(r.name,"](")).call(s,n,")")}else{var c;a=Za(c="[".concat(r.name,"](")).call(c,n,")")}t.$cherry.$cherry.doc.replaceSelection(a)}}))})),n.click()}},{key:"onClick",value:function(t){var e,n,r,i,a,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",s=arguments.length>2?arguments[2]:void 0;if(/normal-table/.test(o)){var c,l,u,h=o.match(/([0-9]+)[^0-9]([0-9]+)/),f=h?+h[1]:3,A=h?+h[2]:5,d=Pu(" Header |").call(" Header |",A),g=Pu(" ------ |").call(" ------ |",A),p="\n|".concat(Pu(" Sample |").call(" Sample |",A));return Za(c=Za(l=Za(u="".concat(t,"\n\n|")).call(u,d,"\n|")).call(l,g)).call(c,Pu(p).call(p,f),"\n\n")}var b=TC(this.editor.editor,t);switch(o){case"hr":return"".concat(t,"\n\n---\n");case"br":return"".concat(t,"
    ");case"code":return"\n``` \n".concat(t||"code...","\n```\n");case"formula":return"".concat(t,"\n\n$ e=mc^2 $\n\n");case"checklist":return"".concat(t,"\n\n- [x] Item 1\n- [ ] Item 2\n- [ ] Item 3\n");case"toc":return"".concat(t,"\n\n[[toc]]\n");case"link":return Za(e="".concat(t,"[")).call(e,this.locale.link,"](http://url.com) ");case"image":return this.handleUpload("image"),t;case"video":return this.handleUpload("video"),t;case"audio":return this.handleUpload("audio"),t;case"table":return this.subBubbleTableMenu.dom.style.left=this.subMenu.dom.style.left,this.subBubbleTableMenu.dom.style.top=this.subMenu.dom.style.top,void this.subBubbleTableMenu.show((function(e,n){var r,i,a,o=Pu(" Header |").call(" Header |",n),c=Pu(" ------ |").call(" ------ |",n),l="\n|".concat(Pu(" Sample |").call(" Sample |",n)),u=Za(r=Za(i=Za(a="".concat(t,"\n\n|")).call(a,o,"\n|")).call(i,c)).call(r,Pu(l).call(l,e),"\n\n");s(u)}));case"line-table":return Za(n="".concat(t,"\n\n")).call(n,["| :line: {x,y} | a | b | c |","| :-: | :-: | :-: | :-: |","| x | 1 | 2 | 3 |","| y | 2 | 4 | 6 |","| z | 7 | 5 | 3 |"].join("\n"),"\n\n");case"bar-table":return Za(r="".concat(t,"\n\n")).call(r,["| :bar: {x,y} | a | b | c |","| :-: | :-: | :-: | :-: |","| x | 1 | 2 | 3 |","| y | 2 | 4 | 6 |","| z | 7 | 5 | 3 |"].join("\n"),"\n\n");case"headlessTable":return this.subBubbleTableMenu.dom.style.left=this.subMenu.dom.style.left,this.subBubbleTableMenu.dom.style.top=this.subMenu.dom.style.top,void this.subBubbleTableMenu.show((function(e,n){var r,i,a,o=Za(r=Za(i="".concat(t,"\n\n||")).call(i,Pu(" ~Header ||").call(" ~Header ||",n))).call(r,Pu(a="\n||".concat(Pu(" SampleT ||").call(" SampleT ||",n))).call(a,e-1),"\n\n");s(o)}));case"pdf":return this.handleUpload("pdf"),t;case"word":return this.handleUpload("word"),t;case"ruby":return/^\s*\{[\s\S]+\|[\s\S]+\}/.test(b)?b.replace(/^\s*\{\s*([\s\S]+?)\s*\|[\s\S]+\}\s*/gm,"$1"):Za(i=" { ".concat(b," | ")).call(i,_l(a=this.editor.$cherry.options.callback.changeString2Pinyin(b)).call(a)," } ")}}}]),n}();function $C(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var jC=function(t){xa(n,vC);var e=$C(n);function n(t){var r,i,a,o;return fa(this,n),(o=e.call(this,t)).setName("list","list"),o.subMenuConfig=[{iconName:"ol",name:"ol",onclick:ro(r=o.bindSubClick).call(r,pa(o),"1")},{iconName:"ul",name:"ul",onclick:ro(i=o.bindSubClick).call(i,pa(o),"2")},{iconName:"checklist",name:"checklist",onclick:ro(a=o.bindSubClick).call(a,pa(o),"3")}],o}return ga(n,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"onClick",value:function(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=[null,"ol","ul","checklist"],a=TC(this.editor.editor,t,"line",!0),o=ku(a.match(/^\n*/),1)[0],s=ku(a.match(/\n*$/),1)[0],c=i[r]?i[r]:r;return c&&/^(ol|ul|checklist)$/.test(c)?Za(e=Za(n="".concat(o)).call(n,Th(a,c))).call(e,s):a}}]),n}();function KC(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var zC=function(t){xa(n,vC);var e=KC(n);function n(t){var r;return fa(this,n),(r=e.call(this,t)).setName("ol","ol"),r}return ga(n,[{key:"onClick",value:function(t){var e,n,r=TC(this.editor.editor,t,"line",!0)||"Item 1\n Item 1.1\nItem 2",i=ku(r.match(/^\n*/),1)[0],a=ku(r.match(/\n*$/),1)[0];return Za(e=Za(n="".concat(i)).call(n,Th(r,"ol"))).call(e,a)}}]),n}();function XC(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var GC=function(t){xa(n,vC);var e=XC(n);function n(t){var r;return fa(this,n),(r=e.call(this,t)).setName("ul","ul"),r}return ga(n,[{key:"onClick",value:function(t){var e,n,r=TC(this.editor.editor,t,"line",!0)||"Item 1\n Item 1.1\nItem 2",i=ku(r.match(/^\n*/),1)[0],a=ku(r.match(/\n*$/),1)[0];return Za(e=Za(n="".concat(i)).call(n,Th(r,"ul"))).call(e,a)}}]),n}();function VC(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var WC=function(t){xa(n,vC);var e=VC(n);function n(t){var r;return fa(this,n),(r=e.call(this,t)).setName("checklist","checklist"),r}return ga(n,[{key:"onClick",value:function(t){var e,n,r=TC(this.editor.editor,t,"line",!0)||"Item 1\n Item 1.1\nItem 2",i=ku(r.match(/^\n*/),1)[0],a=ku(r.match(/\n*$/),1)[0];return Za(e=Za(n="".concat(i)).call(n,Th(r,"checklist"))).call(e,a)}}]),n}();function qC(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}function YC(t,e){return[t,"```mermaid",e,"```"].join("\n")}var JC=["\tA[公司] --\x3e| 下 班 | B(菜市场)","\tB --\x3e C{看见
    卖西瓜的}","\tC --\x3e|Yes| D[买一个包子]","\tC --\x3e|No| E[买一斤包子]"].join("\n"),ZC=["\tA[Company] --\x3e| Finish work | B(Grocery Store)","\tB --\x3e C{See
    Watermelon Seller}","\tC --\x3e|Yes| D[Buy a bun]","\tC --\x3e|No| E[Buy a kilogram of buns]"].join("\n"),tB={flow:["FlowChart",YC("左右结构","graph LR\n".concat(JC)),YC("上下结构","graph TD\n".concat(JC))].join("\n"),sequence:YC("SequenceDiagram",["sequenceDiagram","autonumber","A--\x3eA: 文本1","A->>B: 文本2","loop 循环1","loop 循环2","A->B: 文本3","end","loop 循环3","B --\x3e>A: 文本4","end","B --\x3e> B: 文本5","end"].join("\n")),state:YC("StateDiagram",["stateDiagram-v2","[*] --\x3e A","A --\x3e B","A --\x3e C","state A {"," \t[*] --\x3e D"," \tD --\x3e [*]","}","B --\x3e [*]","C --\x3e [*]"].join("\n")),class:YC("ClassDiagram",["classDiagram","Base <|-- One","Base <|-- Two","Base : +String name","Base: +getName()","Base: +setName(String name)","class One{"," \t+String newName"," \t+getNewName()","}","class Two{"," \t-int id"," \t-getId()","}"].join("\n")),pie:YC("PieChart",["pie","title 饼图",'"A" : 100','"B" : 80','"C" : 40','"D" : 30'].join("\n")),gantt:YC("GanttChart",["gantt","\ttitle 敏捷研发流程","\tsection 迭代前","\t\t交互设计 :a1, 2020-03-01, 4d","\t\tUI设计 :after a1, 5d","\t\t需求评审 : 1d","\tsection 迭代中","\t\t详细设计 :a2, 2020-03-11, 2d","\t\t开发 :2020-03-15, 7d","\t\t测试 :2020-03-22, 5d","\tsection 迭代后","\t\t发布: 1d","\t\t验收: 2d","\t\t回顾: 1d"].join("\n"))},eB={flow:["FlowChart",YC("Left-right structure","graph LR\n".concat(ZC)),YC("Top-bottom structure","graph TD\n".concat(ZC))].join("\n"),sequence:YC("SequenceDiagram",["sequenceDiagram","autonumber","A--\x3eA: text1","A->>B: text2","loop loop1","loop loop2","A->B: text3","end","loop loop3","B --\x3e>A: text4","end","B --\x3e> B: text5","end"].join("\n")),state:YC("StateDiagram",["stateDiagram-v2","[*] --\x3e A","A --\x3e B","A --\x3e C","state A {"," \t[*] --\x3e D"," \tD --\x3e [*]","}","B --\x3e [*]","C --\x3e [*]"].join("\n")),class:YC("ClassDiagram",["classDiagram","Base <|-- One","Base <|-- Two","Base : +String name","Base: +getName()","Base: +setName(String name)","class One{"," \t+String newName"," \t+getNewName()","}","class Two{"," \t-int id"," \t-getId()","}"].join("\n")),pie:YC("PieChart",["pie","title pie",'"A" : 100','"B" : 80','"C" : 40','"D" : 30'].join("\n")),gantt:YC("GanttChart",["gantt","\ttitle work","\tsection session 1","\t\twork1 :a1, 2020-03-01, 4d","\t\twork2 :after a1, 5d","\t\twork3 : 1d","\tsection session 2","\t\twork4 :a2, 2020-03-11, 2d","\t\twork5 :2020-03-15, 7d","\t\twork6 :2020-03-22, 5d","\tsection session 3","\t\twork7: 1d","\t\twork8: 2d","\t\twork9: 1d"].join("\n"))},nB=function(t){xa(n,vC);var e=qC(n);function n(t){var r,i,a,o,s,c,l;return fa(this,n),(l=e.call(this,t)).setName("graph","insertChart"),l.noIcon=!0,l.localeName=t.options.locale,l.subMenuConfig=[{iconName:"insertFlow",name:"insertFlow",onclick:ro(r=l.bindSubClick).call(r,pa(l),"1")},{iconName:"insertSeq",name:"insertSeq",onclick:ro(i=l.bindSubClick).call(i,pa(l),"2")},{iconName:"insertState",name:"insertState",onclick:ro(a=l.bindSubClick).call(a,pa(l),"3")},{iconName:"insertClass",name:"insertClass",onclick:ro(o=l.bindSubClick).call(o,pa(l),"4")},{iconName:"insertPie",name:"insertPie",onclick:ro(s=l.bindSubClick).call(s,pa(l),"5")},{iconName:"insertGantt",name:"insertGantt",onclick:ro(c=l.bindSubClick).call(c,pa(l),"6")}],l}return ga(n,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"onClick",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=[null,"flow","sequence","state","class","pie","gantt"],i=r[n]?r[n]:n;if(i&&/^(flow|sequence|state|class|pie|gantt)$/.test(i))return this.registerAfterClickCb((function(){e.setLessSelection("\n\n\n\n\n","\n\n")})),"\n\n".concat(this.$getSampleCode(i),"\n")}},{key:"$getSampleCode",value:function(t){var e,n;return"zh-CN"!==this.localeName&&"zh_CN"!==this.localeName?null===(n=eB[t])||void 0===n?void 0:n.replace(/\t/g," "):null===(e=tB[t])||void 0===e?void 0:e.replace(/\t/g," ")}}]),n}();function rB(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var iB=function(t){xa(n,vC);var e=rB(n);function n(t){var r,i,a,o,s;return fa(this,n),(s=e.call(this,t)).setName("size","size"),s.subMenuConfig=[{name:"小",noIcon:!0,onclick:ro(r=s.bindSubClick).call(r,pa(s),"12")},{name:"中",noIcon:!0,onclick:ro(i=s.bindSubClick).call(i,pa(s),"17")},{name:"大",noIcon:!0,onclick:ro(a=s.bindSubClick).call(a,pa(s),"24")},{name:"特大",noIcon:!0,onclick:ro(o=s.bindSubClick).call(o,pa(s),"32")}],s.shortKeyMap={"Alt-1":"12","Alt-2":"17","Alt-3":"24","Alt-4":"32"},s}return ga(n,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"_getFlagStr",value:function(t){for(var e=t.replace(/[^0-9]+([0-9])/g,"$1"),n="#",r=1;r1&&void 0!==arguments[1]?arguments[1]:"17",r=this.$getSizeByShortKey(n),i=TC(this.editor.editor,t)||"字号";if(this.isSelections||this.$testIsSize(i)||this.getMoreSelection("!32 ","!",(function(){var t=e.editor.editor.getSelection();return!!e.$testIsSize(t)&&(i=t,!0)})),this.$testIsSize(i)){var a=!0,o=i.replace(/(^)(\s*)(![0-9]+)([^\n]+)(!)(\s*)($)/gm,(function(t,e,n,i,o,s,c,l){var u,h,f,A,d,g;return a=!!a&&i==="!".concat(r),Za(u=Za(h=Za(f=Za(A=Za(d=Za(g="".concat(e)).call(g,n,"!")).call(d,r)).call(A,o)).call(f,s)).call(h,c)).call(u,l)}));return a?i.replace(/(^)(\s*)(![0-9]+\s*)([^\n]+)(!)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb((function(){e.setLessSelection("!".concat(r," "),"!")})),o)}return this.registerAfterClickCb((function(){e.setLessSelection("!".concat(r," "),"!")})),i.replace(/(^)([^\n]+)($)/gm,"$1!".concat(r," $2!$3"))}},{key:"shortcutKeys",get:function(){return["Alt-1","Alt-2","Alt-3","Alt-4"]}}]),n}();function aB(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var oB=function(t){xa(n,vC);var e=aB(n);function n(t){var r;return fa(this,n),(r=e.call(this,t)).setName("h1","h1"),r}return ga(n,[{key:"$testIsHead",value:function(t){return/^\s*(#+)\s*.+/.test(t)}},{key:"onClick",value:function(t){var e=this,n=TC(this.editor.editor,t,"line",!0)||this.locale.h1,r="#";if(this.isSelections||this.$testIsHead(n)||this.getMoreSelection("\n","",(function(){var t=e.editor.editor.getSelection(),r=e.$testIsHead(t);return r&&(n=t),r})),this.$testIsHead(n)){var i=!0,a=n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,(function(t,e,n,a,o){var s,c,l;return i=!!i&&1===n.length,Za(s=Za(c=Za(l="".concat(e)).call(l,r)).call(c,a)).call(s,o)}));return i?n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,"$1$4"):(this.registerAfterClickCb((function(){e.setLessSelection("".concat(r," "),"")})),a)}return this.registerAfterClickCb((function(){e.setLessSelection("".concat(r," "),"")})),n.replace(/(^)([\s]*)([^\n]+)($)/gm,"$1".concat(r," $3$4"))}}]),n}();function sB(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var cB=function(t){xa(n,vC);var e=sB(n);function n(t){var r;return fa(this,n),(r=e.call(this,t)).setName("h2","h2"),r}return ga(n,[{key:"$testIsHead",value:function(t){return/^\s*(#+)\s*.+/.test(t)}},{key:"onClick",value:function(t){var e=this,n=TC(this.editor.editor,t,"line",!0)||this.locale.h2,r="##";if(this.isSelections||this.$testIsHead(n)||this.getMoreSelection("\n","",(function(){var t=e.editor.editor.getSelection(),r=e.$testIsHead(t);return r&&(n=t),r})),this.$testIsHead(n)){var i=!0,a=n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,(function(t,e,n,a,o){var s,c,l;return i=!!i&&2===n.length,Za(s=Za(c=Za(l="".concat(e)).call(l,r)).call(c,a)).call(s,o)}));return i?n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,"$1$4"):(this.registerAfterClickCb((function(){e.setLessSelection("".concat(r," "),"")})),a)}return this.registerAfterClickCb((function(){e.setLessSelection("".concat(r," "),"")})),n.replace(/(^)([\s]*)([^\n]+)($)/gm,"$1".concat(r," $3$4"))}}]),n}();function lB(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var uB=function(t){xa(n,vC);var e=lB(n);function n(t){var r;return fa(this,n),(r=e.call(this,t)).setName("h3","h3"),r}return ga(n,[{key:"$testIsHead",value:function(t){return/^\s*(#+)\s*.+/.test(t)}},{key:"onClick",value:function(t){var e=this,n=TC(this.editor.editor,t,"line",!0)||this.locale.h3,r="###";if(this.isSelections||this.$testIsHead(n)||this.getMoreSelection("\n","",(function(){var t=e.editor.editor.getSelection(),r=e.$testIsHead(t);return r&&(n=t),r})),this.$testIsHead(n)){var i=!0,a=n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,(function(t,e,n,a,o){var s,c,l;return i=!!i&&3===n.length,Za(s=Za(c=Za(l="".concat(e)).call(l,r)).call(c,a)).call(s,o)}));return i?n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,"$1$4"):(this.registerAfterClickCb((function(){e.setLessSelection("".concat(r," "),"")})),a)}return this.registerAfterClickCb((function(){e.setLessSelection("".concat(r," "),"")})),n.replace(/(^)([\s]*)([^\n]+)($)/gm,"$1".concat(r," $3$4"))}}]),n}();function hB(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var fB=function(t){xa(n,vC);var e=hB(n);function n(t){var r;return fa(this,n),(r=e.call(this,t)).setName("quote","blockquote"),r}return ga(n,[{key:"onClick",value:function(t){var e,n=this,r=TC(this.editor.editor,t,"line",!0)||this.locale.quote,i=sy(e=r.split("\n")).call(e,(function(t){return/^\s*>[^\n]+$/.exec(t)}));return i?r.replace(/(^\s*)>\s*([^\n]+)($)/gm,"$1$2$3").replace(/\n+$/,"\n\n"):(this.registerAfterClickCb((function(){n.setLessSelection("> ","")})),r.replace(/(^)([^\n]+)($)/gm,"$1> $2$3").replace(/\n+$/,"\n\n"))}}]),n}();function AB(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var dB=function(t){xa(n,vC);var e=AB(n);function n(t){var r;return fa(this,n),(r=e.call(this,t)).setName("quickTable","table"),r}return ga(n,[{key:"onClick",value:function(t){return"".concat(t,"| LeftAlignedCol | CenterAlignedCol | RightAlignedCol |\n")+"| :--- | :---: | ---: |\n| sampleText | sampleText | sampleText |\n| **left**Text | centered Text | *right*Text |\n"}}]),n}();function gB(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var pB=function(t){xa(n,vC);var e=gB(n);function n(t){var r;return fa(this,n),qa(pa(r=e.call(this,t)),"$previewerHidden",!1),r.setName("previewClose","previewClose"),r.instanceId=t.instanceId,r.updateMarkdown=!1,r.attachEventListeners(),r}return ga(n,[{key:"attachEventListeners",value:function(){var t=this;ah.on(this.instanceId,ah.Events.previewerClose,(function(){t.isHidden=!0})),ah.on(this.instanceId,ah.Events.previewerOpen,(function(){t.isHidden=!1}))}},{key:"isHidden",get:function(){return this.$previewerHidden},set:function(t){if(t!==this.$previewerHidden){var e=this.dom.querySelector("i");t?(e.classList.toggle("ch-icon-previewClose",!1),e.classList.toggle("ch-icon-preview",!0),e.title=this.locale.togglePreview):(e.classList.toggle("ch-icon-previewClose",!0),e.classList.toggle("ch-icon-preview",!1),e.title=this.locale.previewClose),this.$previewerHidden=t}}},{key:"onClick",value:function(){this.editor.previewer.isPreviewerHidden()?(this.editor.previewer.recoverPreviewer(!0),this.isHidden=!1):(this.editor.previewer.editOnly(!0),this.isHidden=!0)}}]),n}();function bB(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var mB=function(t){xa(n,vC);var e=bB(n);function n(t){var r;return fa(this,n),(r=e.call(this,t)).updateMarkdown=!1,r.setName("fullScreen","fullscreen"),r}return ga(n,[{key:"onClick",value:function(){for(var t=this.editor.options.editorDom.parentElement.classList,e=document.querySelector(".cherry-toolbar-fullscreen");e.firstChild;)e.removeChild(e.firstChild);if(t.contains("fullscreen")){var n=Zu("i","ch-icon ch-icon-fullscreen");e.appendChild(n),t.remove("fullscreen")}else{var r=Zu("i","ch-icon ch-icon-minscreen");e.appendChild(r),t.add("fullscreen")}this.editor.editor.refresh()}}]),n}();function vB(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var wB=function(t){xa(n,vC);var e=vB(n);function n(t){var r;return fa(this,n),(r=e.call(this,t)).setName("undo","undo"),r}return ga(n,[{key:"onClick",value:function(){this.editor.editor.undo()}}]),n}();function yB(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var xB=function(t){xa(n,vC);var e=yB(n);function n(t){var r;return fa(this,n),(r=e.call(this,t)).setName("redo","redo"),r}return ga(n,[{key:"onClick",value:function(){this.editor.editor.redo()}}]),n}();function kB(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var CB=function(t){xa(n,vC);var e=kB(n);function n(t){var r;return fa(this,n),(r=e.call(this,t)).setName("code","code"),r}return ga(n,[{key:"onClick",value:function(t){var e=this,n=t||"code...";return this.registerAfterClickCb((function(){e.setLessSelection("\n``` \n","\n```\n")})),"\n``` \n".concat(n,"\n```\n")}},{key:"shortcutKeys",get:function(){return["Ctrl-k"]}}]),n}();function BB(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var TB=function(t){xa(n,vC);var e=BB(n);function n(t){var r,i,a,o,s,c,l,u,h;return fa(this,n),(h=e.call(this,t)).setName("codeTheme"),h.updateMarkdown=!1,h.noIcon=!0,h.subMenuConfig=[{noIcon:!0,name:"default",onclick:ro(r=h.bindSubClick).call(r,pa(h),"default")},{noIcon:!0,name:"dark",onclick:ro(i=h.bindSubClick).call(i,pa(h),"dark")},{noIcon:!0,name:"funky",onclick:ro(a=h.bindSubClick).call(a,pa(h),"funky")},{noIcon:!0,name:"okaidia",onclick:ro(o=h.bindSubClick).call(o,pa(h),"okaidia")},{noIcon:!0,name:"twilight",onclick:ro(s=h.bindSubClick).call(s,pa(h),"twilight")},{noIcon:!0,name:"coy",onclick:ro(c=h.bindSubClick).call(c,pa(h),"coy")},{noIcon:!0,name:"solarized light",onclick:ro(l=h.bindSubClick).call(l,pa(h),"solarized-light")},{noIcon:!0,name:"tomorrow night",onclick:ro(u=h.bindSubClick).call(u,pa(h),"tomorrow-night")}],h}return ga(n,[{key:"onClick",value:function(){var t=arguments.length>1?arguments[1]:void 0;document.querySelector(".cherry").setAttribute("data-code-block-theme",t)}}]),n}();function EB(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var _B=function(t){xa(n,vC);var e=EB(n);function n(t){var r,i,a,o,s;return fa(this,n),(s=e.call(this,t)).setName("export"),s.noIcon=!0,s.updateMarkdown=!1,s.subMenuConfig=[{noIcon:!0,name:"exportToPdf",onclick:ro(r=s.bindSubClick).call(r,pa(s),"pdf")},{noIcon:!0,name:"exportScreenshot",onclick:ro(i=s.bindSubClick).call(i,pa(s),"screenShot")},{noIcon:!0,name:"exportMarkdownFile",onclick:ro(a=s.bindSubClick).call(a,pa(s),"markdown")},{noIcon:!0,name:"exportHTMLFile",onclick:ro(o=s.bindSubClick).call(o,pa(s),"html")}],s}return ga(n,[{key:"onClick",value:function(){var t=arguments.length>1?arguments[1]:void 0;document.querySelector(".cherry-dropdown[name=export]")&&(document.querySelector(".cherry-dropdown[name=export]").style.display="none");var e=this.$cherry.previewer,n="";n=e.isPreviewerHidden()?e.options.previewerCache.html:e.getDomContainer().innerHTML,n=e.lazyLoadImg.changeDataSrc2Src(n),e.refresh(n),e.export(t)}}]),n}();function SB(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var LB=function(t){xa(n,vC);var e=SB(n);function n(t){var r,i,a,o,s;fa(this,n),(s=e.call(this,t)).setName("settings","settings"),s.updateMarkdown=!1,s.engine=t.engine;var c=cf("classicBr")?lf():null===(r=s.engine.$cherry.options.engine.global)||void 0===r?void 0:r.classicBr,l=t.editor.options.defaultModel,u=c?"br":"normal",h=c?"classicBr":"normalBr",f="editOnly"===l?"preview":"previewClose",A="editOnly"===l?"togglePreview":"previewClose";return s.instanceId=t.instanceId,s.subMenuConfig=[{iconName:u,name:h,onclick:ro(i=s.bindSubClick).call(i,pa(s),"classicBr")},{iconName:f,name:A,onclick:ro(a=s.bindSubClick).call(a,pa(s),"previewClose")},{iconName:"",name:"hide",onclick:ro(o=s.bindSubClick).call(o,pa(s),"toggleToolbar")}],s.attachEventListeners(),s.shortcutKeyMaps=[{shortKey:"toggleToolbar",shortcutKey:"Ctrl-0"}],s}return ga(n,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"bindSubClick",value:function(t,e,n,r){return n?this.onClick(e,t,r):this.onClick(e,t)}},{key:"togglePreviewBtn",value:function(t){var e=this,n=t?"previewClose":"preview",r=t?"previewClose":"togglePreview";if(this.subMenu){var i=document.querySelector('.cherry-dropdown[name="settings"]');if(i){var a=i.querySelector(".ch-icon-previewClose,.ch-icon-preview");a.classList.toggle("ch-icon-previewClose"),a.classList.toggle("ch-icon-preview"),a.title=this.locale[r],a.parentElement.innerHTML=a.parentElement.innerHTML.replace(/<\/i>.+$/,"".concat(this.locale[r]))}}else{var o;this.subMenuConfig=nf(o=this.subMenuConfig).call(o,(function(t){var i;return"previewClose"===t.iconName||"preview"===t.iconName?{iconName:n,name:r,onclick:ro(i=e.bindSubClick).call(i,e,"previewClose")}:t}))}}},{key:"attachEventListeners",value:function(){var t=this;ah.on(this.instanceId,ah.Events.previewerClose,(function(){t.togglePreviewBtn(!1)})),ah.on(this.instanceId,ah.Events.previewerOpen,(function(){t.togglePreviewBtn(!0)}))}},{key:"onClick",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if("classicBr"===(n=this.matchShortcutKey(n))){var r,i=!lf();e=i,"undefined"!=typeof localStorage&&localStorage.setItem("cherry-classicBr",e?"true":"false"),this.engine.$cherry.options.engine.global.classicBr=i,na(r=this.engine.hookCenter.hookList.paragraph).call(r,(function(t){t.classicBr=i}));var a=this.$cherry.wrapperDom.querySelector(".cherry-dropdown .ch-icon-normal");a=a||this.$cherry.wrapperDom.querySelector(".cherry-dropdown .ch-icon-br"),i?(a.classList.replace("ch-icon-normal","ch-icon-br"),a.parentElement.childNodes[1].textContent=this.locale.classicBr):(a.classList.replace("ch-icon-br","ch-icon-normal"),a.parentElement.childNodes[1].textContent=this.locale.normalBr),this.engine.$cherry.previewer.update(""),this.engine.$cherry.initText(this.engine.$cherry.editor.editor)}else"previewClose"===n?this.editor.previewer.isPreviewerHidden()?this.editor.previewer.recoverPreviewer(!0):this.editor.previewer.editOnly(!0):"toggleToolbar"===n&&this.toggleToolbar();return t}},{key:"matchShortcutKey",value:function(t){var e,n=pl(e=this.shortcutKeyMaps).call(e,(function(e){return e.shortcutKey===t}));return void 0!==n?n.shortKey:t}},{key:"toggleToolbar",value:function(){var t=this.engine.$cherry.wrapperDom;if(t instanceof HTMLDivElement){var e,n=this.engine.$cherry.toolbar.instanceId;Cu(e=t.className).call(e,"cherry--no-toolbar")>-1?(t.classList.remove("cherry--no-toolbar"),ah.emit(n,ah.Events.toolbarShow)):(t.classList.add("cherry--no-toolbar"),ah.emit(n,ah.Events.toolbarHide))}}},{key:"shortcutKeys",get:function(){var t;return nf(t=this.shortcutKeyMaps).call(t,(function(t){return t.shortcutKey}))}}]),n}();function IB(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var MB=function(t){xa(n,vC);var e=IB(n);function n(t){var r;return fa(this,n),(r=e.call(this,t)).setName("underline","underline"),r}return ga(n,[{key:"$testIsUnderline",value:function(t){return/^\s*(\/)[\s\S]+(\1)/.test(t)}},{key:"onClick",value:function(t){var e=this,n=t||this.locale.underline;return this.isSelections||this.$testIsUnderline(n)||this.getMoreSelection(" /","/ ",(function(){var t=e.editor.editor.getSelection(),r=e.$testIsUnderline(t);return r&&(n=t),r})),this.$testIsUnderline(n)?n.replace(/(^)(\s*)(\/)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb((function(){e.setLessSelection(" /","/ ")})),n.replace(/(^)([^\n]+)($)/gm,"$1 /$2/ $3"))}},{key:"shortcutKeys",get:function(){return["Ctrl-u"]}}]),n}();function FB(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var DB=function(t){xa(n,vC);var e=FB(n);function n(t){var r;return fa(this,n),(r=e.call(this,t)).setName("switchPreview"),r.instanceId=t.instanceId,r.attachEventListeners(),r}return ga(n,[{key:"attachEventListeners",value:function(){var t=this;ah.on(this.instanceId,ah.Events.toolbarHide,(function(){t.dom.textContent=t.locale.switchEdit})),ah.on(this.instanceId,ah.Events.toolbarShow,(function(){t.dom.textContent=t.locale.switchPreview}))}},{key:"onClick",value:function(){this.editor.previewer.isPreviewerHidden()?(this.editor.previewer.previewOnly(),this.dom.parentElement.parentElement.classList.add("preview-only"),this.dom.textContent=this.locale.switchEdit):(this.editor.previewer.editOnly(!0),this.dom.parentElement.parentElement.classList.remove("preview-only"),this.dom.textContent=this.locale.switchPreview)}}]),n}();function OB(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var QB=function(t){xa(n,vC);var e=OB(n);function n(t){var r;return fa(this,n),(r=e.call(this,t)).setName("image","image"),r}return ga(n,[{key:"onClick",value:function(t){var e,n,r,i=this;if(this.hasCacheOnce()){var a,o,s=this.getAndCleanCacheOnce(),c=s.name,l=s.url,u=s.params,h="](".concat(l,")");this.registerAfterClickCb((function(){i.setLessSelection("![",h)}));var f=u.name?u.name:c;return Za(a=Za(o="".concat("![").concat(f)).call(o,sh(u))).call(a,h)}var A=null!==(e=null===(n=this.$cherry.options)||void 0===n||null===(r=n.fileTypeLimitMap)||void 0===r?void 0:r.image)&&void 0!==e?e:"*";return oh(this.editor,"image",A,(function(t,e,n){i.setCacheOnce({name:t,url:e,params:n}),i.fire(null)})),this.updateMarkdown=!1,t}},{key:"shortcutKeys",get:function(){return["Ctrl-g"]}}]),n}();function NB(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var PB=function(t){xa(n,vC);var e=NB(n);function n(t){var r;return fa(this,n),(r=e.call(this,t)).setName("audio","video"),r}return ga(n,[{key:"onClick",value:function(t){var e,n,r,i=this;if(this.hasCacheOnce()){var a,o,s=this.getAndCleanCacheOnce(),c=s.name,l=s.url,u=s.params,h="!audio[",f="](".concat(l,")");this.registerAfterClickCb((function(){i.setLessSelection(h,f)}));var A=u.name?u.name:c;return Za(a=Za(o="".concat(h).concat(A)).call(o,sh(u))).call(a,f)}var d=null!==(e=null===(n=this.$cherry.options)||void 0===n||null===(r=n.fileTypeLimitMap)||void 0===r?void 0:r.audio)&&void 0!==e?e:"*";return oh(this.editor,"audio",d,(function(t,e,n){i.setCacheOnce({name:t,url:e,params:n}),i.fire(null)})),this.updateMarkdown=!1,t}}]),n}();function RB(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var UB=function(t){xa(n,vC);var e=RB(n);function n(t){var r;return fa(this,n),(r=e.call(this,t)).setName("video","video"),r}return ga(n,[{key:"onClick",value:function(t){var e,n,r,i=this;if(this.hasCacheOnce()){var a,o,s,c=this.getAndCleanCacheOnce(),l=c.name,u=c.url,h=c.params,f="!video[",A=h.poster?Za(a="](".concat(u,"){poster=")).call(a,h.poster,"}"):"](".concat(u,")");this.registerAfterClickCb((function(){i.setLessSelection(f,A)}));var d=h.name?h.name:l;return Za(o=Za(s="".concat(f).concat(d)).call(s,sh(h))).call(o,A)}var g=null!==(e=null===(n=this.$cherry.options)||void 0===n||null===(r=n.fileTypeLimitMap)||void 0===r?void 0:r.video)&&void 0!==e?e:"*";return oh(this.editor,"video",g,(function(t,e,n){i.setCacheOnce({name:t,url:e,params:n}),i.fire(null)})),this.updateMarkdown=!1,t}}]),n}();function HB(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var $B=function(t){xa(n,vC);var e=HB(n);function n(t){var r;return fa(this,n),(r=e.call(this,t)).setName("br","br"),r}return ga(n,[{key:"onClick",value:function(t){return"".concat(t,"
    ")}}]),n}();function jB(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var KB=function(t){xa(n,vC);var e=jB(n);function n(t){var r;return fa(this,n),(r=e.call(this,t)).setName("hr","line"),r}return ga(n,[{key:"onClick",value:function(t){return"".concat(t,"\n\n---\n")}}]),n}(),zB=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};fa(this,t),qa(this,"formulaConfig",{toolbar:{title:"快捷工具",subCategory:{sqrt:{title:"根式角标",formulas:[{name:"根式 Radicals",img:"",latex:""},{name:"",img:'',latex:"\\sqrt[n]{x^{a}}"},{name:"上下标 Sub&Super",img:"",latex:""},{name:"",img:'',latex:"\\sideset{_1^2}{_3^4}X_a^b"}]},limit:{title:"极限对数",formulas:[{name:"极限 Limits",img:"",latex:""},{name:"",img:'',latex:"\n\\lim_{x \\to \\infty} a"},{name:"",img:'',latex:"\\log_{a}{b}"}]}}},template:{title:"公式模板",subCategory:{algebra:{title:"代数",formulas:[{name:"",img:'',latex:"\\sqrt{a^2+b^2}"},{name:"",img:'',latex:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{name:"",img:'',latex:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{name:"",img:'',latex:"\n\\left\\{\\begin{matrix}\n x=a + r\\text{cos}\\theta \\\\\n y=b + r\\text{sin}\\theta \n\\end{matrix}\\right."}]},array:{title:"矩阵",formulas:[{name:"",img:'',latex:"\n\\begin{pmatrix}\n 1 & 0 \\\\\n 0 & 1\n\\end{pmatrix}"},{name:"",img:'',latex:"\n\\begin{pmatrix}\n a_{11} & \\cdots & a_{1n} \\\\\n \\vdots & \\ddots & \\vdots \\\\\n a_{m1} & \\cdots & a_{mn}\n\\end{pmatrix}"},{name:"",img:'',latex:"\nA_{m\\times n}=\n\\begin{bmatrix}\n a_{11}& a_{12}& \\cdots & a_{1n} \\\\\n a_{21}& a_{22}& \\cdots & a_{2n} \\\\\n \\vdots & \\vdots & \\ddots & \\vdots \\\\\n a_{m1}& a_{m2}& \\cdots & a_{mn}\n\\end{bmatrix}\n=\\left [ a_{ij}\\right ]"},{name:"",img:'',latex:"\n\\mathbf{V}_1 \\times \\mathbf{V}_2 =\n\\begin{vmatrix}\n \\mathbf{i}& \\mathbf{j}& \\mathbf{k} \\\\\n \\frac{\\partial X}{\\partial u}& \\frac{\\partial Y}{\\partial u}& 0 \\\\\n \\frac{\\partial X}{\\partial v}& \\frac{\\partial Y}{\\partial v}& 0 \\\\\n\\end{vmatrix}"}]}}}}),qa(this,"showLatexLive",!0),mn(e).length&&(this.formulaConfig=e.templateConfig||this.formulaConfig,this.showLatexLive=e.showLatexLive),this.init(),this.initEventListeners()}return ga(t,[{key:"afterClick",value:function(t){}},{key:"generateBubbleFormulaHtmlStr",value:function(){var t,e,n=ty(this.formulaConfig||{}),r=nf(n).call(n,(function(t,e){var n,r,i=ku(t,2),a=i[0],o=i[1].title;return Za(n=Za(r='
  • ')).call(n,o,"
  • ")})).join(""),i='
      '.concat(r,"
    "),a=nf(n).call(n,(function(t,e){var n,r,i,a,o=ku(t,2),s=o[0],c=o[1],l=null===(n=ty((null==c?void 0:c.subCategory)||{}))||void 0===n?void 0:nf(n).call(n,(function(t){var e,n,r,i,a,o,s=ku(t,2),c=s[0],l=s[1],u=null==l||null===(e=l.formulas)||void 0===e?void 0:nf(e).call(e,(function(t){var e,n;if(""===t.latex)return'
    '.concat(t.name,"
    ");var r=t.img||"";return Za(e=Za(n='
    ')).call(e,r||t.name,"
    ")})).join(""),h=Za(n='
    ')).call(n,u,"
    "),f=Za(r='");return Za(i=Za(a=Za(o='
    ')).call(a,f)).call(i,h,"
    ")})).join("");return Za(r=Za(i=Za(a='
    ')).call(r,l,"
    ")})).join(""),o=this.showLatexLive?'
    查看更多:www.latexlive.com
    ':"";return Za(t=Za(e="".concat(i)).call(e,a)).call(t,o)}},{key:"init",value:function(){mn(this.formulaConfig).length&&(this.dom=document.createElement("div"),this.dom.className=["cherry-dropdown","cherry-insert-formula","cherry-insert-formula-wrappler"].join(" "),this.dom.innerHTML=this.generateBubbleFormulaHtmlStr(),this.dom.style.display="none")}},{key:"show",value:function(t){this.dom.style.removeProperty("display"),this.afterClick=t}},{key:"hide",value:function(){this.dom.style.display="none"}},{key:"isShow",value:function(){return"block"===this.dom.style.display}},{key:"isHide",value:function(){return"none"===this.dom.style.display}},{key:"initEventListeners",value:function(){var t,e,n,r=this;null===(t=this.dom.querySelector(".cherry-insert-formula-tabs"))||void 0===t||t.addEventListener("click",ro(e=this.handleClickFormulaTabs).call(e,this)),null===(n=this.dom.querySelectorAll(".cherry-insert-formula-categary__func-item"))||void 0===n||na(n).call(n,(function(t){var e;return null==t?void 0:t.addEventListener("click",ro(e=r.handleClickFormulaSelect).call(e,r))}))}},{key:"handleClickFormulaTabs",value:function(t){t.preventDefault(),t.stopPropagation();var e=t.target;if(e instanceof HTMLLIElement||e instanceof HTMLSpanElement){var n=e instanceof HTMLSpanElement?e.parentElement:e,r=n.dataset.name,i=document.querySelector(".cherry-insert-formula-select[data-name=".concat(r,"]")),a=document.querySelector(".cherry-insert-formula-tab.active"),o=document.querySelector(".cherry-insert-formula-select.active");null==a||a.classList.remove("active"),null==o||o.classList.remove("active"),n.classList.add("active"),i.classList.add("active")}}},{key:"handleClickFormulaSelect",value:function(t){t.preventDefault(),t.stopPropagation();var e=t.target;if(e instanceof HTMLElement){var n=e.dataset.formulaCode,r=void 0===n?"":n;this.afterClick(r),this.hide()}}}]),t}();function XB(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var GB=function(t){xa(n,vC);var e=XB(n);function n(t){var r,i,a,o;return fa(this,n),(o=e.call(this,t)).setName("formula","insertFormula"),o.subBubbleFormulaMenu=new zB(null==t||null===(r=t.options)||void 0===r||null===(i=r.toolbars)||void 0===i||null===(a=i.config)||void 0===a?void 0:a.formula),t.editor.options.wrapperDom.appendChild(o.subBubbleFormulaMenu.dom),o.catchOnce="",o}return ga(n,[{key:"onClick",value:function(t){var e=this;if(this.subBubbleFormulaMenu.isHide()||!this.hasCacheOnce()){var n=this.dom.getBoundingClientRect();return this.subBubbleFormulaMenu.dom.style.left="".concat(n.left+n.width,"px"),this.subBubbleFormulaMenu.dom.style.top="".concat(n.top+n.height,"px"),this.subBubbleFormulaMenu.show((function(n){var r,i,a=/\n/.test(n)?"".concat(/\n$/.test(t)?t:"".concat(t,"\n"),"$$"):"".concat(t," $ "),o=/\n/.test(n)?"\n$$ ":" $ ";e.registerAfterClickCb((function(){e.setLessSelection(a,o)}));var s=Za(r=Za(i="".concat(a)).call(i,n)).call(r,o);e.setCacheOnce(s),e.fire(null)})),this.updateMarkdown=!1,!1}return this.getAndCleanCacheOnce()}},{key:"shortcutKeys",get:function(){return["Ctrl-m"]}}]),n}();function VB(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var WB=function(t){xa(n,vC);var e=VB(n);function n(t){var r;return fa(this,n),(r=e.call(this,t)).setName("link","link"),r}return ga(n,[{key:"onClick",value:function(t){var e;if(/^http/.test(t))return Za(e="[".concat(this.locale.link,"](")).call(e,t,")");var n=t||this.locale.link;return"[".concat(n,"](http://url.com) ")}},{key:"shortcutKeys",get:function(){return["Ctrl-l"]}}]),n}();function qB(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var YB=function(t){xa(n,vC);var e=qB(n);function n(t){var r;return fa(this,n),(r=e.call(this,t)).setName("table","table"),r.subBubbleTableMenu=new RC({row:9,col:9}),t.editor.options.wrapperDom.appendChild(r.subBubbleTableMenu.dom),r.catchOnce="",r}return ga(n,[{key:"onClick",value:function(t){var e=this;if("none"===this.subBubbleTableMenu.dom.style.display||!this.hasCacheOnce()){var n=this.dom.getBoundingClientRect();return this.subBubbleTableMenu.dom.style.left="".concat(n.left+n.width,"px"),this.subBubbleTableMenu.dom.style.top="".concat(n.top+n.height,"px"),this.subBubbleTableMenu.show((function(n,r){var i,a,o,s=Pu(" Header |").call(" Header |",r),c=Pu(" ------ |").call(" ------ |",r),l="\n|".concat(Pu(" Sample |").call(" Sample |",r)),u=Za(i=Za(a=Za(o="".concat(t,"\n\n|")).call(o,s,"\n|")).call(a,c)).call(i,Pu(l).call(l,n),"\n\n");e.setCacheOnce(u),e.fire(null)})),this.updateMarkdown=!1,!1}return this.getAndCleanCacheOnce()}}]),n}();function JB(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var ZB=function(t){xa(n,vC);var e=JB(n);function n(t){var r;return fa(this,n),(r=e.call(this,t)).setName("toc","toc"),r}return ga(n,[{key:"onClick",value:function(t){return"".concat(t,"\n\n[[toc]]\n")}}]),n}();function tT(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var eT=function(t){xa(n,vC);var e=tT(n);function n(t){var r;return fa(this,n),(r=e.call(this,t)).setName("lineTable","table"),r}return ga(n,[{key:"onClick",value:function(t){var e;return Za(e="".concat(t,"\n\n")).call(e,["| :line: {x,y} | a | b | c |","| :-: | :-: | :-: | :-: |","| x | 1 | 2 | 3 |","| y | 2 | 4 | 6 |","| z | 7 | 5 | 3 |"].join("\n"),"\n\n")}}]),n}();function nT(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var rT=function(t){xa(n,vC);var e=nT(n);function n(t){var r;return fa(this,n),(r=e.call(this,t)).setName("brTable","table"),r}return ga(n,[{key:"onClick",value:function(t){var e;return Za(e="".concat(t,"\n\n")).call(e,["| :bar: {x,y} | a | b | c |","| :-: | :-: | :-: | :-: |","| x | 1 | 2 | 3 |","| y | 2 | 4 | 6 |","| z | 7 | 5 | 3 |"].join("\n"),"\n\n")}}]),n}();function iT(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var aT=function(t){xa(n,vC);var e=iT(n);function n(t){var r;return fa(this,n),(r=e.call(this,t)).setName("pdf","pdf"),r}return ga(n,[{key:"onClick",value:function(t){var e,n,r,i=this;if(this.hasCacheOnce()){var a,o=this.getAndCleanCacheOnce(),s=o.name,c=o.url,l=o.params,u="](".concat(c,")");this.registerAfterClickCb((function(){i.setLessSelection("[",u)}));var h=l.name?l.name:s;return Za(a="".concat("[").concat(h)).call(a,u)}var f=null!==(e=null===(n=this.$cherry.options)||void 0===n||null===(r=n.fileTypeLimitMap)||void 0===r?void 0:r.pdf)&&void 0!==e?e:"*";return oh(this.editor,"pdf",f,(function(t,e,n){i.setCacheOnce({name:t,url:e,params:n}),i.fire(null)})),this.updateMarkdown=!1,t}}]),n}();function oT(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var sT=function(t){xa(n,vC);var e=oT(n);function n(t){var r;return fa(this,n),(r=e.call(this,t)).setName("file","phone"),r}return ga(n,[{key:"onClick",value:function(t){var e,n,r,i=this;if(this.hasCacheOnce()){var a,o=this.getAndCleanCacheOnce(),s=o.name,c=o.url,l=o.params,u="](".concat(c,")");this.registerAfterClickCb((function(){i.setLessSelection("[",u)}));var h=l.name?l.name:s;return Za(a="".concat("[").concat(h)).call(a,u)}var f=null!==(e=null===(n=this.$cherry.options)||void 0===n||null===(r=n.fileTypeLimitMap)||void 0===r?void 0:r.file)&&void 0!==e?e:"*";return oh(this.editor,"file",f,(function(t,e,n){i.setCacheOnce({name:t,url:e,params:n}),i.fire(null)})),this.updateMarkdown=!1,t}}]),n}();function cT(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var lT=function(t){xa(n,vC);var e=cT(n);function n(t){var r;return fa(this,n),(r=e.call(this,t)).setName("word","word"),r}return ga(n,[{key:"onClick",value:function(t){var e,n,r,i=this;if(this.hasCacheOnce()){var a,o=this.getAndCleanCacheOnce(),s=o.name,c=o.url,l=o.params,u="](".concat(c,")");this.registerAfterClickCb((function(){i.setLessSelection("[",u)}));var h=l.name?l.name:s;return Za(a="".concat("[").concat(h)).call(a,u)}var f=null!==(e=null===(n=this.$cherry.options)||void 0===n||null===(r=n.fileTypeLimitMap)||void 0===r?void 0:r.word)&&void 0!==e?e:"*";return oh(this.editor,"word",f,(function(t,e,n){i.setCacheOnce({name:t,url:e,params:n}),i.fire(null)})),this.updateMarkdown=!1,t}}]),n}();function uT(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var hT=function(t){xa(n,vC);var e=uT(n);function n(t){var r;return fa(this,n),(r=e.call(this,t)).setName("pinyin","pinyin"),r}return ga(n,[{key:"$testIsRuby",value:function(t){return/^\s*\{[\s\S]+\|[\s\S]+\}/.test(t)}},{key:"onClick",value:function(t){var e,n,r=this,i=TC(this.editor.editor,t)||"拼音";if(this.isSelections||this.$testIsRuby(i)||this.getMoreSelection(" { "," } ",(function(){var t=r.editor.editor.getSelection(),e=r.$testIsRuby(t);return e&&(i=t),e})),this.$testIsRuby(i))return i.replace(/^\s*\{\s*([\s\S]+?)\s*\|[\s\S]+\}\s*/gm,"$1");var a=_l(e=this.editor.$cherry.options.callback.changeString2Pinyin(i)||"pin yin").call(e);return this.registerAfterClickCb((function(){r.setLessSelection(" { "," } ")})),Za(n=" { ".concat(i," | ")).call(n,a," } ")}}]),n}();function fT(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var AT=function(t){xa(n,vC);var e=fT(n);function n(t){var r,i;fa(this,n),(i=e.call(this,t)).setName("theme","insertChart"),i.subMenuConfig=[];var a=pa(i);return na(r=t.options.theme).call(r,(function(t){var e;a.subMenuConfig.push({iconName:t.className,name:t.label,onclick:ro(e=a.bindSubClick).call(e,a,t.className)})})),i}return ga(n,[{key:"onClick",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return hf(this.$cherry,e),this.updateMarkdown=!1,""}}]),n}();function dT(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var gT=function(t){xa(n,vC);var e=dT(n);function n(t){var r;return fa(this,n),(r=e.call(this,t)).setName("wordCount","wordCount"),r.noIcon=!0,r.countState=0,r.countEvent=new Event("count"),r}return ga(n,[{key:"onClick",value:function(t){var e=this,n=document.querySelector(".cherry-toolbar-button.cherry-toolbar-wordCount");if(0===this.countState){n.addEventListener("count",(function(){var t=e.$cherry.getMarkdown(),r=e.wordCount(t),i=r.characters,a=r.words,o=r.paragraphs;1===e.countState?n.innerHTML="P ".concat(o):2===e.countState?n.innerHTML="W ".concat(a):n.innerHTML="C ".concat(i)}));var r=null;this.editor.editor.on("change",(function(){r&&clearTimeout(r),r=fo((function(){n.dispatchEvent(e.countEvent),r=null}),500)}))}return this.countState=(this.countState+1)%3+1,n.dispatchEvent(this.countEvent),t}},{key:"wordCount",value:function(t){var e,n,r=/[\u4e00-\u9fa5]|[\u3001\u3002\uff01\uff0c\uff1b\uff1a\u201c\u201d\u2018\u2019\u300a\u300b\u3008\u3009\u3010\u3011\u300e\u300f\u300c\u300d\uff08\uff09\u2014\u2026\u2013\uff0e]/g,i=t.replace(/\n|\s/g,"").length,a=(t.match(r)||[]).length+ai(e=t.replace(r," ").split(/[\s\n]+/)).call(e,Boolean).length,o=ai(n=t.split(/\n{2,}/)).call(n,(function(t){return""!==_l(t).call(t)})).length;return{characters:i,words:a,paragraphs:o}}}]),n}();function pT(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var bT=function(t){xa(n,vC);var e=pT(n);function n(t){var r;return fa(this,n),(r=e.call(this,t)).previewer=t.previewer,r.updateMarkdown=!1,r.setName("mobilePreview","phone"),r}return ga(n,[{key:"onClick",value:function(){this.previewer.removeScroll();var t=this.previewer.getDomContainer();this.previewer.isMobilePreview?t.parentNode.innerHTML=t.innerHTML:t.innerHTML="
    ".concat(t.innerHTML,"
    "),this.previewer.isMobilePreview=!this.previewer.isMobilePreview,this.previewer.bindScroll()}}]),n}(),mT=ck;function vT(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var wT=function(t){xa(r,vC);var e,n=vT(r);function r(t){var e;return fa(this,r),(e=n.call(this,t)).previewer=t.previewer,e.isLoading=!1,e.updateMarkdown=!1,e.setName("copy","copy"),e}return ga(r,[{key:"adaptWechat",value:(e=fk(xk.mark((function t(e){var n,r,i,a,o;return xk.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=/(
    .*?<\/figure>)/g,r=e.replace(n,(function(t,e,n,r){var i,a;return Za(i=Za(a="".concat(e,"p")).call(a,n,"p")).call(i,r)})),i=/()/g,a=[],r.replace(i,(function(t,e,n){a.push(yT(n))})),t.next=7,mT.all(a);case 7:return o=t.sent,t.abrupt("return",r.replace(i,(function(t,e,n,r){return e+o.shift()+r})));case 9:case"end":return t.stop()}}),t)}))),function(t){return e.apply(this,arguments)})},{key:"getStyleFromSheets",value:function(t){var e,n=ai(e=Gl(document.styleSheets)).call(e,(function(e){var n;return e.cssRules[0]&&Cu(n=e.cssRules[0].cssText).call(n,t)>-1}));return"")}},{key:"computeStyle",value:function(){return{mathStyle:this.getStyleFromSheets("mjx-container"),echartStyle:"",cherryStyle:this.getStyleFromSheets("cherry")}}},{key:"toggleLoading",value:function(){this.isLoading?document.querySelector(".icon-loading").outerHTML=''):document.querySelector(".ch-icon-copy").outerHTML='
    ';this.isLoading=!this.isLoading}},{key:"onClick",value:function(t){var e=this;this.toggleLoading();var n=document.querySelector(".cherry").getAttribute("data-inline-code-theme"),r=document.querySelector(".cherry").getAttribute("data-code-block-theme"),i=this.computeStyle(),a=i.mathStyle,o=i.echartStyle,s=i.cherryStyle,c=this.previewer.isPreviewerHidden()?this.previewer.options.previewerCache.html:this.previewer.getValue();this.adaptWechat(c).then((function(t){var i,c,l;kk(Za(i=Za(c=Za(l="".concat(a+o+s,'\n
    \n
    ')).call(i,t,"
    \n
    ")),e.toggleLoading()}))}}]),r}();function yT(t,e,n){return new mT((function(e){var r=document.createElement("CANVAS"),i=r.getContext("2d"),a=new Image;a.crossOrigin="Anonymous",a.onload=function(){r.height=a.height,r.width=a.width,i.drawImage(a,0,0);var t=r.toDataURL(n||"image/png");e(t),r=null},a.src=t}))}function xT(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var kT=function(t){xa(n,vC);var e=xT(n);function n(t){var r,i,a,o,s,c;return fa(this,n),(c=e.call(this,t)).setName("panel","tips"),c.panelRule=Eh().reg,c.subMenuConfig=[{iconName:"tips",name:"tips",onclick:ro(r=c.bindSubClick).call(r,pa(c),"primary")},{iconName:"info",name:"info",onclick:ro(i=c.bindSubClick).call(i,pa(c),"info")},{iconName:"warning",name:"warning",onclick:ro(a=c.bindSubClick).call(a,pa(c),"warning")},{iconName:"danger",name:"danger",onclick:ro(o=c.bindSubClick).call(o,pa(c),"danger")},{iconName:"success",name:"success",onclick:ro(s=c.bindSubClick).call(s,pa(c),"success")}],c}return ga(n,[{key:"$getNameFromStr",value:function(t){var e=!1;return this.panelRule.lastIndex=0,t.replace(this.panelRule,(function(t,n,r,i){var a=/\s/.test(_l(r).call(r))?_l(r).call(r).replace(/\s.*$/,""):r;return e=a?_l(a).call(a).toLowerCase():"",t})),e}},{key:"$getTitle",value:function(t){return this.panelRule.lastIndex=0,t.replace(this.panelRule,(function(t,e,n,r){var i=_l(n).call(n);return/\s/.test(i)?i.replace(/[^\s]+\s/,""):""})),""}},{key:"onClick",value:function(t){var e,n,r=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=TC(this.editor.editor,t,"line",!0)||"内容",o=this.$getNameFromStr(a),s=this.$getTitle(a);return!1===o&&this.getMoreSelection("::: ","\n",(function(){var t=r.editor.editor.getSelection(),e=r.$getNameFromStr(t);return!1!==e&&(a=t,o=e,s=r.$getTitle(t)),!1!==e})),!1!==o?o===i?(this.panelRule.lastIndex=0,a.replace(this.panelRule,(function(t,e,n,r){var i,a=_l(n).call(n),o=/\s/.test(a)?a.replace(/[^\s]+\s/,""):"";return Za(i="".concat(o,"\n")).call(i,r)}))):(this.registerAfterClickCb((function(){r.setLessSelection("::: ","\n")})),this.panelRule.lastIndex=0,a.replace(this.panelRule,(function(t,e,n,r){var a,o,s=_l(n).call(n),c=/\s/.test(s)?s.replace(/[^\s]+\s/,""):"";return Za(a=Za(o="::: ".concat(i," ")).call(o,c,"\n")).call(a,r.replace(/\n+$/,""),"\n:::")}))):(this.registerAfterClickCb((function(){r.setLessSelection("::: ","\n")})),a=a.replace(/^\n+/,""),/\n/.test(a)?s||(s=a.replace(/\n[\w\W]+$/,""),a=a.replace(/^[^\n]+\n/,"")):s=s||"标题",Za(e=Za(n="::: ".concat(i," ")).call(n,s,"\n")).call(e,a,"\n:::").replace(/\n{2,}:::/g,"\n:::"))}}]),n}();function CT(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var BT=function(t){xa(n,kT);var e=CT(n);function n(t){var r,i,a,o,s,c,l;fa(this,n),(l=e.call(this,t)).setName("justify","justify"),l.panelRule=Eh().reg;var u=l.$cherry.locale;return l.subMenuConfig=[{iconName:"justifyLeft",name:null!==(r=null==u?void 0:u.justifyLeft)&&void 0!==r?r:"左对齐",onclick:ro(i=l.bindSubClick).call(i,pa(l),"left")},{iconName:"justifyCenter",name:null!==(a=null==u?void 0:u.justifyCenter)&&void 0!==a?a:"居中",onclick:ro(o=l.bindSubClick).call(o,pa(l),"center")},{iconName:"justifyRight",name:null!==(s=null==u?void 0:u.justifyRight)&&void 0!==s?s:"右对齐",onclick:ro(c=l.bindSubClick).call(c,pa(l),"right")}],l}return ga(n,[{key:"$getTitle",value:function(){return" "}}]),n}();function TT(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var ET=function(t){xa(n,vC);var e=TT(n);function n(t){var r;return fa(this,n),(r=e.call(this,t)).setName("detail","insertFlow"),r.detailRule=_h().reg,r}return ga(n,[{key:"onClick",value:function(t){var e,n=this,r=TC(this.editor.editor,t,"line",!0)||"点击展开更多\n内容\n++- 默认展开\n内容\n++ 默认收起\n内容";if(this.detailRule.lastIndex=0,this.detailRule.test(r)||this.getMoreSelection("+++ ","\n",(function(){var t=n.editor.editor.getSelection();n.detailRule.lastIndex=0;var e=n.detailRule.test(t);return!1!==e&&(r=t),!1!==e})),this.detailRule.lastIndex=0,this.detailRule.test(r))return this.detailRule.lastIndex=0,r.replace(this.detailRule,(function(t,e,n,r,i){var a;return Za(a="".concat(r,"\n")).call(a,i)}));(r=r.replace(/^\s+/,""),/\n/.test(r))||(r=Za(e="".concat(r,"\n")).call(e,r));return this.registerAfterClickCb((function(){n.setLessSelection("+++ ","\n")})),"+++ ".concat(r,"\n+++").replace(/\n{2,}\+\+\+/g,"\n+++")}}]),n}();function _T(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var ST=function(t){xa(n,vC);var e=_T(n);function n(t){var r;return fa(this,n),(r=e.call(this,t)).setName("draw.io","draw.io"),r.noIcon=!0,r.drawioIframeUrl=t.options.drawioIframeUrl,r}return ga(n,[{key:"onClick",value:function(t){var e=this;if(!this.drawioIframeUrl)return t;if(this.hasCacheOnce()){var n,r=this.getAndCleanCacheOnce(),i=r.xmlData,a=r.base64,o=Za(n="](".concat(a,"){data-type=drawio data-xml=")).call(n,encodeURI(i),"}");return this.registerAfterClickCb((function(){e.setLessSelection("![",o)})),"".concat("![","在预览区点击图片重新编辑draw.io").concat(o)}return Lk(this.drawioIframeUrl,"",(function(t){e.setCacheOnce(t),e.fire(null)})),this.updateMarkdown=!1,t}}]),n}(),LT={bold:yC,italic:kC,"|":BC,strikethrough:_C,sub:LC,sup:MC,header:NC,insert:HC,list:jC,ol:zC,ul:GC,checklist:WC,graph:nB,size:iB,h1:oB,h2:cB,h3:uB,color:DC,quote:fB,quickTable:dB,togglePreview:pB,code:CB,codeTheme:TB,export:_B,settings:LB,fullScreen:mB,mobilePreview:bT,copy:wT,undo:wB,redo:xB,underline:MB,switchModel:DB,image:QB,audio:PB,video:UB,br:$B,hr:KB,formula:GB,link:WB,table:YB,toc:ZB,lineTable:eT,barTable:rT,pdf:aT,word:lT,ruby:hT,theme:AT,file:sT,panel:kT,justify:BT,detail:ET,drawIo:ST,wordCount:gT},IT=function(){function t(e){fa(this,t),this.toolbar=e,this.hooks={},this.allMenusName=[],this.level1MenusName=[],this.level2MenusName={},this.init()}return ga(t,[{key:"$newMenu",value:function(t){if(!this.hooks[t]){var e=this.toolbar.options,n=e.$cherry,r=e.customMenu;LT[t]?(this.allMenusName.push(t),this.hooks[t]=new LT[t](n)):null!=r&&r[t]&&(this.allMenusName.push(t),this.hooks[t]=new r[t](n))}}},{key:"init",value:function(){var t=this,e=this.toolbar.options.buttonConfig;na(e).call(e,(function(e){if("string"==typeof e)t.level1MenusName.push(e),t.$newMenu(e);else if("object"===Ka(e)){var n=mn(e);if(1===n.length){var r,i=ku(n,1)[0];t.level1MenusName.push(i),t.$newMenu(i),t.level2MenusName[i]=e[i],na(r=e[i]).call(r,(function(e){t.$newMenu(e)}))}}}))}}]),t}(),MT=function(){function t(e){fa(this,t),qa(this,"toolbarHandlers",{}),this.menus={},this.shortcutKeyMap={},this.subMenus={},this.options={dom:document.createElement("div"),buttonConfig:["bold"],customMenu:[]},cl(this.options,e),this.$cherry=this.options.$cherry,this.instanceId=this.$cherry.instanceId,this.menus=new IT(this),this.drawMenus(),this.collectShortcutKey(),this.collectToolbarHandler(),this.init()}return ga(t,[{key:"init",value:function(){var t=this;ah.on(this.instanceId,ah.Events.cleanAllSubMenus,(function(){return t.hideAllSubMenu()}))}},{key:"previewOnly",value:function(){this.options.dom.classList.add("preview-only"),this.$cherry.wrapperDom.classList.add("cherry--no-toolbar"),ah.emit(this.instanceId,ah.Events.toolbarHide)}},{key:"showToolbar",value:function(){this.options.dom.classList.remove("preview-only"),this.$cherry.wrapperDom.classList.remove("cherry--no-toolbar"),ah.emit(this.instanceId,ah.Events.toolbarShow)}},{key:"isHasLevel2Menu",value:function(t){return this.menus.level2MenusName[t]}},{key:"isHasConfigMenu",value:function(t){return this.menus.hooks[t].subMenuConfig||[]}},{key:"isHasSubMenu",value:function(t){return Boolean(this.isHasLevel2Menu(t)||this.isHasConfigMenu(t).length>0)}},{key:"drawMenus",value:function(){var t,e=this,n=document.createDocumentFragment();na(t=this.menus.level1MenusName).call(t,(function(t){var r=e.menus.hooks[t].createBtn();"object"===("undefined"==typeof window?"undefined":Ka(window))&&"onpointerup"in window?(r.addEventListener("pointerdown",(function(){e.isPointerDown=!0}),!1),r.addEventListener("pointerup",(function(n){e.isPointerDown&&e.onClick(n,t),e.isPointerDown=!1}),!1)):r.addEventListener("click",(function(n){e.onClick(n,t)}),!1),e.isHasSubMenu(t)&&r.classList.add("cherry-toolbar-dropdown"),n.appendChild(r)})),this.appendMenusToDom(n)}},{key:"appendMenusToDom",value:function(t){var e=Zu("div","toolbar-left");e.appendChild(t),this.options.dom.appendChild(e)}},{key:"setSubMenuPosition",value:function(t,e){var n=t.getMenuPosition();e.style.left="".concat(n.left+n.width/2,"px"),e.style.top="".concat(n.top+n.height,"px"),e.style.position=t.positionModel}},{key:"drawSubMenus",value:function(t){var e=this;this.subMenus[t]=Zu("div","cherry-dropdown",{name:t}),this.setSubMenuPosition(this.menus.hooks[t],this.subMenus[t]);var n=this.isHasLevel2Menu(t);n&&na(n).call(n,(function(n){var r=e.menus.hooks[n];if(void 0!==r&&"function"==typeof r.createBtn){var i=r.createBtn(!0);r.dom=r.dom?r.dom:e.menus.hooks[t].dom,i.addEventListener("click",(function(t){return e.onClick(t,n,!0)}),!1),e.subMenus[t].appendChild(i)}}));var r=this.isHasConfigMenu(t);r.length>0&&na(r).call(r,(function(n){var r=e.menus.hooks[t].createSubBtnByConfig(n);r.addEventListener("click",(function(){return e.hideAllSubMenu()}),!1),e.subMenus[t].appendChild(r)})),this.$cherry.wrapperDom.appendChild(this.subMenus[t])}},{key:"onClick",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.menus.hooks[e];r&&(this.isHasSubMenu(e)&&!n?this.toggleSubMenu(e):(this.hideAllSubMenu(),r.fire(t,e)))}},{key:"toggleSubMenu",value:function(t){if(!this.subMenus[t])return this.hideAllSubMenu(),this.drawSubMenus(t),void(this.subMenus[t].style.display="block");"none"===this.subMenus[t].style.display?(this.hideAllSubMenu(),this.subMenus[t].style.display="block",this.setSubMenuPosition(this.menus.hooks[t],this.subMenus[t])):this.subMenus[t].style.display="none"}},{key:"hideAllSubMenu",value:function(){var t;na(t=this.$cherry.wrapperDom.querySelectorAll(".cherry-dropdown")).call(t,(function(t){t.style.display="none"}))}},{key:"collectMenuInfo",value:function(t){this.toolbarHandlers=cl({},this.toolbarHandlers,t.toolbarHandlers),this.menus.hooks=cl({},t.menus.hooks,this.menus.hooks),(!this.options.shortcutKey||mn(this.options.shortcutKey).length<=0)&&(this.shortcutKeyMap=cl({},this.shortcutKeyMap,t.shortcutKeyMap))}},{key:"collectShortcutKey",value:function(){var t,e=this;this.options.shortcutKey&&mn(this.options.shortcutKey).length>0?this.shortcutKeyMap=this.options.shortcutKey:na(t=this.menus.allMenusName).call(t,(function(t){var n;null===(n=e.menus.hooks[t].shortcutKeys)||void 0===n||na(n).call(n,(function(n){e.shortcutKeyMap[n]=t}))}))}},{key:"collectToolbarHandler",value:function(){var t,e=this;this.toolbarHandlers=Kd(t=this.menus.allMenusName).call(t,(function(t,n){var r=e.menus.hooks[n];return r?(t[n]=function(t,e){"function"==typeof e&&ih.warn("MenuBase#onClick param callback is no longer supported. Please register the callback via MenuBase#registerAfterClickCb instead."),r.fire.call(r,void 0,t)},t):t}),{})}},{key:"matchShortcutKey",value:function(t){return!!this.shortcutKeyMap[this.getCurrentKey(t)]}},{key:"fireShortcutKey",value:function(t){var e,n=this.getCurrentKey(t);null===(e=this.menus.hooks[this.shortcutKeyMap[n]])||void 0===e||e.fire(t,n)}},{key:"getCurrentKey",value:function(t){var e="";return t.ctrlKey&&(e+="Ctrl-"),t.altKey&&(e+="Alt-"),t.metaKey&&pC&&(e+="Ctrl-"),t.shiftKey&&(e+="Shift-"),t.key&&"shift"!==t.key.toLowerCase()&&(e+=t.key.toLowerCase()),e}}]),t}();function FT(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var DT=function(t){xa(n,MT);var e=FT(n);function n(){return fa(this,n),e.apply(this,arguments)}return ga(n,[{key:"visible",get:function(){var t=window.getComputedStyle(this.bubbleDom);return"none"!==t.display&&"hidden"!==t.visibility},set:function(t){var e=window.getComputedStyle(this.bubbleDom);t?"none"===e.display&&(this.bubbleDom.style.display=n.displayType):"none"!==e.display&&(this.bubbleDom.style.display="none")}},{key:"init",value:function(){this.options.editor=this.$cherry.editor,this.addSelectionChangeListener(),this.bubbleDom=this.options.dom,this.editorDom=this.options.editor.getEditorDom(),this.initBubbleDom(),this.editorDom.querySelector(".CodeMirror").appendChild(this.bubbleDom)}},{key:"appendMenusToDom",value:function(t){this.options.dom.appendChild(t)}},{key:"getScrollTop",value:function(){return this.options.editor.editor.getScrollInfo().top}},{key:"updatePositionWhenScroll",value:function(){this.bubbleDom.style.display===n.displayType&&(this.bubbleDom.style.marginTop="".concat(Wu(this.bubbleDom.dataset.scrollTop)-this.getScrollTop(),"px"))}},{key:"showBubble",value:function(t,e){this.visible||(this.visible=!0,this.bubbleDom.style.marginTop="0",this.bubbleDom.dataset.scrollTop=String(this.getScrollTop()));var n=this.editorDom.querySelector(".CodeMirror-lines").firstChild.getBoundingClientRect(),r=this.editorDom.getBoundingClientRect(),i=n.left-r.left,a=n.width+i,o=t;o<2*this.bubbleDom.offsetHeight?(o+=this.bubbleDom.offsetHeight-this.bubbleTop.getBoundingClientRect().height,this.bubbleTop.style.display="block",this.bubbleBottom.style.display="none"):(o-=this.bubbleDom.offsetHeight+2*this.bubbleBottom.getBoundingClientRect().height,this.bubbleTop.style.display="none",this.bubbleBottom.style.display="block"),this.bubbleDom.style.top="".concat(o,"px");var s=e-this.bubbleDom.offsetWidth/2;sa?(s=a-this.bubbleDom.offsetWidth,this.$setBubbleCursorPosition("".concat(e-s,"px"))):this.$setBubbleCursorPosition("50%"),this.bubbleDom.style.left="".concat(Math.max(20,s),"px")}},{key:"hideBubble",value:function(){this.visible=!1}},{key:"$setBubbleCursorPosition",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"50%";if("50%"===t)this.bubbleTop.style.left="50%",this.bubbleBottom.style.left="50%";else{var e=Wu(t)<10?"10px":t;this.bubbleTop.style.left=e,this.bubbleBottom.style.left=e}}},{key:"initBubbleDom",value:function(){var t=document.createElement("div");t.className="cherry-bubble-top";var e=document.createElement("div");e.className="cherry-bubble-bottom",this.bubbleTop=t,this.bubbleBottom=e,this.bubbleDom.appendChild(t),this.bubbleDom.appendChild(e),this.visible=!1}},{key:"getBubbleDom",value:function(){return this.bubbleDom}},{key:"addSelectionChangeListener",value:function(){var t=this;this.options.editor.addListener("change",(function(e){t.hideBubble()})),this.options.editor.addListener("refresh",(function(e){t.hideBubble()})),this.options.editor.addListener("scroll",(function(e){t.updatePositionWhenScroll()})),this.options.editor.addListener("beforeSelectionChange",(function(e,n){if("*mouse"!==n.origin&&(null!==n.origin||void 0===n.origin))return!0;if(!n.ranges[0])return!0;var r=1e6*n.ranges[0].anchor.line+n.ranges[0].anchor.ch,i=1e6*n.ranges[0].head.line+n.ranges[0].head.ch,a="asc";r>i&&(a="desc"),fo((function(){if(e.getSelections().join("").length<=0)t.hideBubble();else{var n=e.getWrapperElement().getElementsByClassName("CodeMirror-selected"),r=t.editorDom.getBoundingClientRect(),i=0,o=0;if("object"!==Ka(n)||n.length<=0)t.hideBubble();else{for(var s=0;s=o&&(o=l,i=c.left-r.left+c.width/2):(l<=o||o<=0)&&(o=l,i=c.left-r.left+c.width/2)}t.showBubble(o,i)}}}),10)}))}}]),n}();function OT(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}qa(DT,"displayType","flex");var QT=function(t){xa(n,MT);var e=OT(n);function n(){return fa(this,n),e.apply(this,arguments)}return ga(n,[{key:"init",value:function(){this.editor=this.$cherry.editor,this.editorDom=this.editor.getEditorDom(),this.editorDom.querySelector(".CodeMirror-scroll").appendChild(this.options.dom),this.initAction()}},{key:"appendMenusToDom",value:function(t){this.options.dom.appendChild(t)}},{key:"initAction",value:function(){var t=this;this.editor.addListener("cursorActivity",(function(e,n){t.cursorActivity(n,e)})),this.editor.addListener("update",(function(e,n){t.cursorActivity(n,e)})),this.editor.addListener("refresh",(function(e,n){fo((function(){t.cursorActivity(n,e)}),0)}))}},{key:"update",value:function(t,e){var n=e.getCursor();if(this.isHidden(n.line,e))return this.options.dom.style.display="none",!1;this.options.dom.style.display="inline-block"}},{key:"cursorActivity",value:function(t,e){var n=e.getCursor(),r=document.querySelector(".cherry-editor .CodeMirror-lines");if(!r)return!1;var i=getComputedStyle(r),a=Wu(i.paddingLeft),o=Wu(i.paddingTop);if(this.isHidden(n.line,e))return this.options.dom.style.display="none",!1;this.options.dom.style.display="inline-block",this.options.dom.style.left="".concat(a,"px"),this.options.dom.style.top="".concat(this.getLineHeight(n.line,e)+o,"px")}},{key:"isHidden",value:function(t,e){return e.getSelections().length>1||(e.getSelection().length>0||!!e.getLine(t))}},{key:"getLineHeight",value:function(t,e){var n=0;return e.getDoc().eachLine(0,t,(function(t){n+=t.height})),n}}]),n}();function NT(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var PT=function(t){xa(n,MT);var e=NT(n);function n(){return fa(this,n),e.apply(this,arguments)}return ga(n,[{key:"appendMenusToDom",value:function(t){var e=Zu("div","toolbar-right");e.appendChild(t),this.options.dom.appendChild(e)}}]),n}(),RT=function(){function t(e){var n,r;fa(this,t),this.$cherry=e.$cherry,this.editor=e.$cherry.editor.editor,this.tocStr="",this.updateLocationHash=null===(n=e.updateLocationHash)||void 0===n||n,this.defaultModel=null!==(r=e.defaultModel)&&void 0!==r?r:"full",this.init()}return ga(t,[{key:"init",value:function(){var t=this;this.drawDom(),this.timer=fo((function(){t.updateTocList()}),300),this.editor.on("change",(function(e,n){clearTimeout(t.timer),t.timer=fo((function(){t.updateTocList(),t.$switchModel(t.model)}),300)})),this.$switchModel(this.getModelFromLocalStorage())}},{key:"getModelFromLocalStorage",value:function(){return"undefined"==typeof localStorage?this.defaultModel:localStorage.getItem("cherry-toc-model")||this.defaultModel}},{key:"setModelToLocalStorage",value:function(t){"undefined"!=typeof localStorage&&localStorage.setItem("cherry-toc-model",t)}},{key:"drawDom",value:function(){var t=Zu("div","cherry-flex-toc cherry-flex-toc__pure"),e=Zu("div","cherry-toc-head"),n=Zu("span","cherry-toc-title");n.append(this.$cherry.locale.toc);var r=Zu("i","ch-icon ch-icon-chevronsRight"),i=Zu("i","ch-icon ch-icon-chevronsLeft");this.tocClose=r,this.tocOpen=i,e.appendChild(n),e.appendChild(r),e.appendChild(i),t.appendChild(e);var a=Zu("div","cherry-toc-list");this.tocListDom=a,t.appendChild(a),this.tocDom=t,this.$cherry.wrapperDom.appendChild(t),this.bindClickEvent()}},{key:"bindClickEvent",value:function(){var t=this;this.tocDom.addEventListener("click",(function(e){var n=t.$getClosestNode(e.target,"A");if(!1!==n&&/cherry-toc-one-a/.test(n.className)){var r=n.dataset,i=r.id,a=r.index;if("hide"===t.$cherry.status.previewer){for(var o=t.$cherry.editor.editor.getSearchCursor(/(?:^|\n)\n*((?:[ \t\u00a0]*#{1,6}).+?|(?:[ \t\u00a0]*.+)\n(?:[ \t\u00a0]*[=]+|[-]+))(?=$|\n)/g),s=0;s<=a;s++)o.findNext();var c=o.from();t.$cherry.editor.scrollToLineNum(c.line,c.line+1,0)}else{var l,u=t.$cherry.previewer.getDomContainer(),h=null!==(l=u.querySelectorAll("h1,h2,h3,h4,h5,h6,h7,h8")[a])&&void 0!==l&&l;if(!1!==h){var f=u.scrollTop+h.getBoundingClientRect().y-u.getBoundingClientRect().y-20;u.scrollTo({top:f,left:0,behavior:"smooth"})}}t.updateLocationHash&&(location.href=i)}})),this.tocClose.addEventListener("click",(function(e){t.$switchModel("pure"),t.setModelToLocalStorage("pure")})),this.tocOpen.addEventListener("click",(function(e){t.$switchModel("full"),t.setModelToLocalStorage("full")})),window&&window.addEventListener("resize",(function(){t.$switchModel(t.model)})),this.editor.on("scroll",(function(e,n){t.updateTocList(!0)})),this.$cherry.previewer.getDomContainer().addEventListener("scroll",(function(){t.updateTocList(!0)}))}},{key:"$switchModel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pure";this.model=t;var e="cherry-flex-toc__".concat(t);this.tocDom.classList.contains(e)||(this.tocDom.classList.remove("cherry-flex-toc__pure"),this.tocDom.classList.remove("cherry-flex-toc__full"),this.tocDom.classList.add(e));var n=this.tocListDom.querySelectorAll(".cherry-toc-one-a");if(n.length>0){var r=28;if("pure"===t){var i=this.tocListDom.getBoundingClientRect().height,a=Math.floor((i-3*n.length)/n.length);r=a<3?3:a>10?10:a}for(var o=0;o0&&void 0!==arguments[0]&&arguments[0]));else{var t=this.$cherry.getToc(),e="";if(nf(t).call(t,(function(t){return e+=t.text,t})),e=dd(e),this.tocStr!==e){this.tocStr=e;var n="",r=0;nf(t).call(t,(function(t){var e,i,a,o,s=t.text.replace(//g,""),c=s.replace(/<[^>]+?>/g,"");return n+=Za(e=Za(i=Za(a=Za(o='')).call(e,s,""),r+=1,t})),this.tocListDom.innerHTML=n}}if("hide"===this.$cherry.status.previewer);else{for(var i,a=this.$cherry.previewer.getDomContainer().getBoundingClientRect().y,o=this.$cherry.previewer.getDomContainer().querySelectorAll("h1,h2,h3,h4,h5,h6,h7,h8"),s=0;sa+20)break}s=s>0?s-1:s,na(i=this.tocListDom.querySelectorAll(".cherry-toc-one-a")).call(i,(function(t,e){e===s?t.classList.add("current"):t.classList.remove("current")}))}}}]),t}();function UT(t){var e=function(){if("undefined"==typeof Reflect||!fn)return!1;if(fn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(fn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wa(t);if(e){var i=Wa(this).constructor;n=fn(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}var HT=function(t){xa(n,MT);var e=UT(n);function n(){return fa(this,n),e.apply(this,arguments)}return ga(n,[{key:"appendMenusToDom",value:function(t){this.options.dom.appendChild(t)}}]),n}(),$T=-1,jT=1,KT=0;function zT(t,e,n,r){if(t===e)return t?[[KT,t]]:[];if(null!=n){var i=function(t,e,n){var r="number"==typeof n?{index:n,length:0}:n.oldRange,i="number"==typeof n?null:n.newRange,a=t.length,o=e.length;if(0===r.length&&(null===i||0===i.length)){var s=r.index,c=t.slice(0,s),l=t.slice(s),u=i?i.index:null,h=s+o-a;if((null===u||u===h)&&!(h<0||h>o)){var f=e.slice(0,h);if((g=e.slice(h))===l){var A=Math.min(s,h);if((b=c.slice(0,A))===(v=f.slice(0,A)))return tE(b,c.slice(A),f.slice(A),l)}}if(null===u||u===s){var d=s,g=(f=e.slice(0,d),e.slice(d));if(f===c){var p=Math.min(a-d,o-d);if((m=l.slice(l.length-p))===(w=g.slice(g.length-p)))return tE(c,l.slice(0,l.length-p),g.slice(0,g.length-p),m)}}}if(r.length>0&&i&&0===i.length){var b=t.slice(0,r.index),m=t.slice(r.index+r.length);if(!(o<(A=b.length)+(p=m.length))){var v=e.slice(0,A),w=e.slice(o-p);if(b===v&&m===w)return tE(b,t.slice(A,a-p),e.slice(A,o-p),m)}}return null}(t,e,n);if(i)return i}var a=GT(t,e),o=t.substring(0,a);a=VT(t=t.substring(a),e=e.substring(a));var s=t.substring(t.length-a),c=function(t,e){var n;if(!t)return[[jT,e]];if(!e)return[[$T,t]];var r=t.length>e.length?t:e,i=t.length>e.length?e:t,a=r.indexOf(i);if(-1!==a)return n=[[jT,r.substring(0,a)],[KT,i],[jT,r.substring(a+i.length)]],t.length>e.length&&(n[0][0]=n[2][0]=$T),n;if(1===i.length)return[[$T,t],[jT,e]];var o=function(t,e){var n=t.length>e.length?t:e,r=t.length>e.length?e:t;if(n.length<4||2*r.length=t.length?[r,i,a,o,l]:null}var a,o,s,c,l,u=i(n,r,Math.ceil(n.length/4)),h=i(n,r,Math.ceil(n.length/2));if(!u&&!h)return null;a=h?u&&u[4].length>h[4].length?u:h:u;t.length>e.length?(o=a[0],s=a[1],c=a[2],l=a[3]):(c=a[0],l=a[1],o=a[2],s=a[3]);var f=a[4];return[o,s,c,l,f]}(t,e);if(o){var s=o[0],c=o[1],l=o[2],u=o[3],h=o[4],f=zT(s,l),A=zT(c,u);return f.concat([[KT,h]],A)}return function(t,e){for(var n=t.length,r=e.length,i=Math.ceil((n+r)/2),a=i,o=2*i,s=new Array(o),c=new Array(o),l=0;ln)A+=2;else if(v>r)f+=2;else if(h){if((x=a+u-b)>=0&&x=(y=n-c[x]))return XT(t,e,C,v)}}for(var w=-p+d;w<=p-g;w+=2){for(var y,x=a+w,k=(y=w===-p||w!==p&&c[x-1]n)g+=2;else if(k>r)d+=2;else if(!h){if((m=a+u-w)>=0&&m=(y=n-y))return XT(t,e,C,v)}}}}return[[$T,t],[jT,e]]}(t,e)}(t=t.substring(0,t.length-a),e=e.substring(0,e.length-a));return o&&c.unshift([KT,o]),s&&c.push([KT,s]),WT(c,r),c}function XT(t,e,n,r){var i=t.substring(0,n),a=e.substring(0,r),o=t.substring(n),s=e.substring(r),c=zT(i,a),l=zT(o,s);return c.concat(l)}function GT(t,e){if(!t||!e||t.charAt(0)!==e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,a=0;n=0&&ZT(t[c][1])){var l=t[c][1].slice(-1);if(t[c][1]=t[c][1].slice(0,-1),o=l+o,s=l+s,!t[c][1]){t.splice(c,1),r--;var u=c-1;t[u]&&t[u][0]===jT&&(a++,s=t[u][1]+s,u--),t[u]&&t[u][0]===$T&&(i++,o=t[u][1]+o,u--),c=u}}if(JT(t[r][1])){l=t[r][1].charAt(0);t[r][1]=t[r][1].slice(1),o+=l,s+=l}}if(r0||s.length>0){o.length>0&&s.length>0&&(0!==(n=GT(s,o))&&(c>=0?t[c][1]+=s.substring(0,n):(t.splice(0,0,[KT,s.substring(0,n)]),r++),s=s.substring(n),o=o.substring(n)),0!==(n=VT(s,o))&&(t[r][1]=s.substring(s.length-n)+t[r][1],s=s.substring(0,s.length-n),o=o.substring(0,o.length-n)));var h=a+i;0===o.length&&0===s.length?(t.splice(r-h,h),r-=h):0===o.length?(t.splice(r-h,h,[jT,s]),r=r-h+1):0===s.length?(t.splice(r-h,h,[$T,o]),r=r-h+1):(t.splice(r-h,h,[$T,o],[jT,s]),r=r-h+2)}0!==r&&t[r-1][0]===KT?(t[r-1][1]+=t[r][1],t.splice(r,1)):r++,a=0,i=0,o="",s=""}""===t[t.length-1][1]&&t.pop();var f=!1;for(r=1;r=55296&&t<=56319}function YT(t){return t>=56320&&t<=57343}function JT(t){return YT(t.charCodeAt(0))}function ZT(t){return qT(t.charCodeAt(t.length-1))}function tE(t,e,n,r){return ZT(t)||JT(r)?null:function(t){for(var e=[],n=0;n0&&e.push(t[n]);return e}([[KT,t],[$T,e],[jT,n],[KT,r]])}function eE(t,e,n){return zT(t,e,n,!0)}eE.INSERT=jT,eE.DELETE=$T,eE.EQUAL=KT;var nE=eE;var rE=function(t,e){for(var n=-1,r=null==t?0:t.length;++n1?r-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:{};return fa(this,r),(t=e===qh.PAR?n.call(this,{needCache:!!o.needCache,defaultCache:o.defaultCache}):n.call(this)).config=i.config,za(t)}return ga(r,[{key:"beforeMakeHtml",value:function(){for(var t,e,n=arguments.length,i=new Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:"edit&preview"){case"edit&preview":this.previewer&&(this.previewer.editOnly(!0),this.previewer.recoverPreviewer()),this.toolbar&&this.toolbar.showToolbar(),this.wrapperDom.classList.remove("cherry--no-toolbar");break;case"editOnly":this.previewer.isPreviewerHidden()||this.previewer.editOnly(!0),this.toolbar&&this.toolbar.showToolbar(),this.wrapperDom.classList.remove("cherry--no-toolbar");break;case"previewOnly":this.previewer.previewOnly(),this.toolbar&&this.toolbar.previewOnly(),this.wrapperDom.classList.add("cherry--no-toolbar")}}},{key:"getInstanceId",value:function(){return this.instanceId}},{key:"getStatus",value:function(){return this.status}},{key:"getValue",value:function(){return this.editor.editor.getValue()}},{key:"getMarkdown",value:function(){return this.getValue()}},{key:"getCodeMirror",value:function(){return this.editor.editor}},{key:"getHtml",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.previewer.getValue(t)}},{key:"getPreviewer",value:function(){return this.previewer}},{key:"getToc",value:function(){var t=this.getHtml(),e=[];return t.replace(/(.+?)<\/h[0-6]>/g,(function(t,n,r,i){return e.push({level:+n,id:r,text:i.replace(//,"")}),t})),e}},{key:"setValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.editor.storeDocumentScroll(),!1===e)return this.editor.editor.setValue(t);var n=this.editor.editor,r=this.getValue(),i=function(t,e,n){for(var r=nE(e,n),i=t,a=t,o=0;o1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];n&&this.editor.editor.setSelection({line:n[0],ch:n[1]},{line:n[0],ch:n[1]}),this.editor.editor.replaceSelection(t,e?"around":"end"),r&&this.editor.editor.focus()}},{key:"insertValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return this.insert(t,e,n,r)}},{key:"refreshPreviewer",value:function(){try{var t=this.getValue(),e=this.engine.makeHtml(t);this.previewer.refresh(e)}catch(t){throw new SA(t)}}},{key:"setMarkdown",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.setValue(t,e)}},{key:"createWrapper",value:function(){var t="dark"===this.options.toolbars.theme?"dark":"",e=this.options.engine.syntax.inlineCode.theme,n=this.options.engine.syntax.codeBlock.theme;"dark"===n?n="tomorrow-night":"light"===n&&(n="solarized-light");var r=Zu("div",["cherry","clearfix",uf(!0)].join(" "),{"data-toolbarTheme":t,"data-inlineCodeTheme":e,"data-codeBlockTheme":n});return this.wrapperDom=r,r}},{key:"createToolbar",value:function(){var t=Zu("div","cherry-toolbar");return this.toolbarContainer=t,this.toolbar=new MT({dom:t,$cherry:this,buttonConfig:this.options.toolbars.toolbar,customMenu:this.options.toolbars.customMenu,shortcutKey:this.options.toolbars.shortcutKey}),this.toolbar}},{key:"createToolbarRight",value:function(){return this.toolbarRight=new PT({dom:this.toolbarContainer,$cherry:this,buttonConfig:this.options.toolbars.toolbarRight,customMenu:this.options.toolbars.customMenu}),this.toolbar.collectMenuInfo(this.toolbarRight),this.toolbarRight}},{key:"createSidebar",value:function(t){if(this.options.toolbars.sidebar){TA(this.options.toolbars.sidebar,Array);var e="dark"===this.options.toolbars.theme?"dark":"",n=Zu("div","cherry-sidebar ".concat(e));this.sidebar=new HT({dom:n,$cherry:this,buttonConfig:this.options.toolbars.sidebar,customMenu:this.options.toolbars.customMenu}),this.toolbar.collectMenuInfo(this.sidebar),t.appendChild(this.sidebar.options.dom)}}},{key:"createFloatMenu",value:function(){if(this.options.toolbars.float){var t=Zu("div","cherry-floatmenu");TA(this.options.toolbars.float,Array),this.floatMenu=new QT({dom:t,$cherry:this,buttonConfig:this.options.toolbars.float,customMenu:this.options.toolbars.customMenu}),this.toolbar.collectMenuInfo(this.floatMenu)}}},{key:"createBubble",value:function(){if(this.options.toolbars.bubble){var t=Zu("div","cherry-bubble");TA(this.options.toolbars.bubble,Array),this.bubble=new DT({dom:t,$cherry:this,buttonConfig:this.options.toolbars.bubble,customMenu:this.options.toolbars.customMenu,engine:this.engine}),this.toolbar.collectMenuInfo(this.bubble)}}},{key:"createEditor",value:function(){var t,e,n,r,i=Zu("textarea","",{id:null!==(t=this.options.editor.id)&&void 0!==t?t:"code",name:null!==(e=this.options.editor.name)&&void 0!==e?e:"code"});i.textContent=this.options.value;var a=Zu("div","cherry-editor");return a.appendChild(i),this.editor=new Oh(function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:"pdf",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.previewer.export(t,e)}},{key:"setTheme",value:function(){hf(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default")}},{key:"setWritingStyle",value:function(t){this.editor.setWritingStyle(t)}}]),n}();qa(b_,"initialized",!1),qa(b_,"config",{defaults:c_}),window&&(window.Cherry=b_);var m_=b_;function v_(t,e){var n=mn(t);if(Yr){var r=Yr(t);e&&(r=ai(r).call(r,(function(e){return Ai(t,e).enumerable}))),n.push.apply(n,r)}return n}function w_(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};fa(this,t),qa(this,"mermaidAPIRefs",null),qa(this,"options",y_),qa(this,"dom",null),qa(this,"mermaidCanvas",null);var n=e.mermaid,r=e.mermaidAPI;if(!(r||window.mermaidAPI||n&&n.mermaidAPI||window.mermaid&&window.mermaid.mermaidAPI))throw new Error("code-block-mermaid-plugin[init]: Package mermaid or mermaidAPI not found.");this.options=w_(w_({},y_),e||{}),this.mermaidAPIRefs=r||window.mermaidAPI||n.mermaidAPI||window.mermaid.mermaidAPI,delete this.options.mermaid,delete this.options.mermaidAPI,this.mermaidAPIRefs.initialize(this.options)}return ga(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,e){var n,r=new DOMParser,i=function(t){return t.replace("')}}else n=i(t)}catch(e){n=i(t)}return n}},{key:"render",value:function(t,e,n){var r,i,a,o=this,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=e;c||(c=Math.round(1e8*Math.random())),this.mountMermaidCanvas(n);var l=Za(r="mermaid-".concat(c,"-")).call(r,(new Date).getTime());this.svg2img=null!==(i=null==s?void 0:s.svg2img)&&void 0!==i&&i;try{this.mermaidAPIRefs.render(l,t,(function(t){var e=t.replace(/\s*markerUnits="0"/g,"").replace(/\s*x="NaN"/g,"").replace(/
    /g,"
    ");a=o.convertMermaidSvgToImg(e,l)}),this.mermaidCanvas)}catch(t){return null==t?void 0:t.str}return a}}],[{key:"install",value:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i>>8):(zt(255&t),zt(t>>>8))}function Gt(){d=(d<>7)])}function qt(t,e,n){return t[e].fcbt?w-bt:dt,c=w+ct,l=s[i+a-1],h=s[i+a];v>=E&&(r>>=2);do{if(s[(e=t)+a]==h&&s[e+a-1]==l&&s[e]==s[i]&&s[++e]==s[i+1]){i+=2,e++;do{}while(s[++i]==s[++e]&&s[++i]==s[++e]&&s[++i]==s[++e]&&s[++i]==s[++e]&&s[++i]==s[++e]&&s[++i]==s[++e]&&s[++i]==s[++e]&&s[++i]==s[++e]&&ia){if(y=t,a=n,n>=ct)break;l=s[i+a-1],h=s[i+a]}}}while((t=u[t&At])>o&&0!=--r);return a}function Zt(){var t,e,n=ot-k-w;if(-1==n)n--;else if(w>=et+bt){for(t=0;t=et?e-et:dt);for(t=0;t=et?e-et:dt;n+=et}x||((t=Yt(s,w+k,n))<=0?x=!0:k+=t)}function te(){x||(h=0,f=0,function(){var t,e,n,r,i;if(0!=I[0].dl)return;for(F.dyn_tree=_,F.static_tree=L,F.extra_bits=Nt,F.extra_base=xt+1,F.elems=Ct,F.max_length=vt,F.max_code=0,D.dyn_tree=S,D.static_tree=I,D.extra_bits=Pt,D.extra_base=0,D.elems=Bt,D.max_length=vt,D.max_code=0,O.dyn_tree=M,O.static_tree=null,O.extra_bits=Rt,O.extra_base=0,O.elems=Tt,O.max_length=wt,O.max_code=0,n=0,r=0;r>=7;rk&&(m=k),m>=st)if(t=ue(w-y,m-st),k-=m,m<=B){m--;do{w++,Gt()}while(0!=--m);w++}else w+=m,m=0,d=((d=255&s[w])<k&&(m=k),m==st&&w-y>gt&&m--),v>=st&&m<=v){var t;t=ue(w-1-p,v-st),k-=v-1,v-=2;do{w++,Gt()}while(0!=--v);b=0,m=st-1,w++,t&&(le(0),A=w)}else 0!=b?(ue(0,255&s[w-1])&&(le(0),A=w),w++,k--):(b=1,w++,k--);for(;ke.len&&(s=e.len),c=0;ci-a&&(s=i-a),c=0;c>1;e>=1;e--)ie(r,e);do{e=N[mt],N[mt]=N[P--],ie(r,mt),n=N[mt],N[--R]=e,N[--R]=n,r[s].fc=r[e].fc+r[n].fc,U[e]>U[n]+1?U[s]=U[e]:U[s]=U[n]+1,r[e].dl=r[n].dl=s,N[mt]=s++,ie(r,mt)}while(P>=2);N[--R]=N[mt],function(t){var e,n,r,i,a,o,s=t.dyn_tree,c=t.extra_bits,l=t.extra_base,u=t.max_code,h=t.max_length,f=t.static_tree,A=0;for(i=0;i<=vt;i++)Q[i]=0;for(s[N[R]].dl=0,e=R+1;eh&&(i=h,A++),s[n].dl=i,n>u||(Q[i]++,a=0,n>=l&&(a=c[n-l]),o=s[n].fc,Y+=o*(i+a),null!=f&&(J+=o*(f[n].dl+a)));if(0!=A){do{for(i=h-1;0==Q[i];)i--;Q[i]--,Q[i+1]+=2,Q[h]--,A-=2}while(A>0);for(i=h;0!=i;i--)for(n=Q[i];0!=n;)(r=N[--e])>u||(s[r].dl!=i&&(Y+=(i-s[r].dl)*s[r].fc,s[r].fc=i),n--)}}(t),ae(r,o)}function se(t,e){var n,r,i=-1,a=t[0].dl,o=0,s=7,c=4;for(0==a&&(s=138,c=3),t[e+1].dl=65535,n=0;n<=e;n++)r=a,a=t[n+1].dl,++o=3&&0==M[Ut[t]].dl;t--);return Y+=3*(t+1)+5+5+4,t}(),(n=J+3+7>>3)<=(e=Y+3+7>>3)&&(e=n),i+4<=e&&A>=0)for(Ae((nt<<1)+t,3),ge(),Xt(i),Xt(~i),a=0;a2&&0==(4095&X)){var n,r=8*X,i=w-A;for(n=0;n>=3,G>=1}while(ofe-e?(Xt(h|=t<>fe-f,f+=e-fe):(h|=t<>=1,n<<=1}while(--e>0);return n>>1}function ge(){f>8?Xt(h):f>0&&zt(h),h=0,f=0}return function(i,a){var o,h;Z=i,tt=0,void 0===a&&(a=6),function(i){var a;if(i?i<1?i=1:i>9&&(i=9):i=6,T=i,r=!1,x=!1,null==Mt){for(t=e=n=null,Mt=new Array(at),s=new Array(ot),c=new Array(ut),l=new Array(32832),u=new Array(65536),_=new Array(Lt),a=0;a0;){var d=new Array(o);for(h=0;h>4,i=(15&e)<<2|n>>6,a=63&n,o="";return o+=__(63&t>>2),o+=__(63&r),o+=__(63&i),o+=__(63&a)}function __(t){var e=t;return e<10?String.fromCharCode(48+e):(e-=10)<26?String.fromCharCode(65+e):(e-=26)<26?String.fromCharCode(97+e):0===(e-=26)?"-":1===e?"_":"?"}function S_(t,e){var n,r=unescape(encodeURIComponent(t));return Za(n="".concat(e,"/svg/")).call(n,function(t){for(var e="",n=0;n0&&void 0!==arguments[0]?arguments[0]:{};fa(this,t);this.baseUrl=null!==(e=n.baseUrl)&&void 0!==e?e:"http://www.plantuml.com/plantuml"}return ga(t,[{key:"render",value:function(t,e){var n,r,i=e;i||(i=Math.round(1e8*Math.random()));var a=Za(n="plantuml-".concat(i,"-")).call(n,(new Date).getTime());return Za(r='')}}],[{key:"install",value:function(e,n){var r;zc(e,{engine:{syntax:{codeBlock:{customRenderer:{plantuml:new t(T_(T_({},n),null!==(r=e.engine.syntax.plantuml)&&void 0!==r?r:{}))}}}}})}}]),t}();function I_(t){for(var e=[],n=1;n=e?t:""+Array(e+1-r.length).join(n)+t},m={s:b,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+b(r,2,"0")+":"+b(i,2,"0")},m:function t(e,n){if(e.date()1)return t(o[0])}else{var s=e.name;w[s]=e,i=s}return!r&&i&&(v=i),i||!r&&v},k=function(t,e){if(y(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new B(n)},C=m;C.l=x,C.i=y,C.w=function(t,e){return k(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var B=function(){function p(t){this.$L=x(t.locale,null,!0),this.parse(t)}var b=p.prototype;return b.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(C.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(d);if(r){var i=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},b.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},b.$utils=function(){return C},b.isValid=function(){return!(this.$d.toString()===A)},b.isSame=function(t,e){var n=k(t);return this.startOf(e)<=n&&n<=this.endOf(e)},b.isAfter=function(t,e){return k(t)-1}(e))return e;var s=e.match(a);if(!s)return e;var c=s[0];return n.test(c)?"about:blank":e}}));e(F_);var D_=F_.sanitizeUrl;function O_(t,e){return null==t||null==e?NaN:te?1:t>=e?0:NaN}function Q_(t,e){return null==t||null==e?NaN:et?1:e>=t?0:NaN}function N_(t){var e,n,r;function i(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length;if(i>>1;n(t[o],r)<0?i=o+1:a=o}while(i2&&void 0!==arguments[2]?arguments[2]:0,a=i(t,e,n,(arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length)-1);return a>n&&r(t[a-1],e)>-r(t[a],e)?a-1:a},right:function(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length;if(i>>1;n(t[o],r)<=0?i=o+1:a=o}while(i3)){if(X_)return!0;if(V_)return V_<603;var t,e,n,r,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)W_.push({k:e+r,v:n})}for(W_.sort((function(t,e){return e.v-t.v})),r=0;rwn(n)?1:-1}}(t)),n=i.length,r=0;r=lS?10:c>=uS?5:c>=hS?2:1;return s<0?(a=Math.pow(10,-s)/l,(r=Math.round(t*a))/ae&&--i,a=-a):(a=Math.pow(10,s)*l,(r=Math.round(t/a))*ae&&--i),i=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function pS(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=a)&&(n=a)}}catch(t){i.e(t)}finally{i.f()}}else{var o,s=-1,c=gS(t);try{for(c.s();!(o=c.n()).done;){var l=o.value;null!=(l=e(l,++s,t))&&(n=l)&&(n=l)}}catch(t){c.e(t)}finally{c.f()}}return n}function mS(t,e){var n=void 0!==op&&uu(t)||t["@@iterator"];if(!n){if(of(t)||(n=function(t,e){var n;if(!t)return;if("string"==typeof t)return vS(t,e);var r=Tu(n=Object.prototype.toString.call(t)).call(n,8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Gl(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vS(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function vS(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);na||void 0===n&&a>=a)&&(n=a)}}catch(t){i.e(t)}finally{i.f()}}else{var o,s=-1,c=mS(t);try{for(c.s();!(o=c.n()).done;){var l=o.value;null!=(l=e(l,++s,t))&&(n>l||void 0===n&&l>=l)&&(n=l)}}catch(t){c.e(t)}finally{c.f()}}return n}var yS=vk;function xS(t){return t}var kS=1,CS=2,BS=3,TS=4,ES=1e-6;function _S(t){return"translate("+t+",0)"}function SS(t){return"translate(0,"+t+")"}function LS(t){return function(e){return+t(e)}}function IS(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),function(n){return+t(n)+e}}function MS(){return!this.__axis}function FS(t,e){var n=[],r=null,i=null,a=6,o=6,s=3,c="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,l=t===kS||t===TS?-1:1,u=t===TS||t===CS?"x":"y",h=t===kS||t===BS?_S:SS;function f(f){var A=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,d=null==i?e.tickFormat?e.tickFormat.apply(e,n):xS:i,g=Math.max(a,0)+s,p=e.range(),b=+p[0]+c,m=+p[p.length-1]+c,v=(e.bandwidth?IS:LS)(e.copy(),c),w=f.selection?f.selection():f,y=w.selectAll(".domain").data([null]),x=w.selectAll(".tick").data(A,e).order(),k=x.exit(),C=x.enter().append("g").attr("class","tick"),B=x.select("line"),T=x.select("text");y=y.merge(y.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),x=x.merge(C),B=B.merge(C.append("line").attr("stroke","currentColor").attr(u+"2",l*a)),T=T.merge(C.append("text").attr("fill","currentColor").attr(u,l*g).attr("dy",t===kS?"0em":t===BS?"0.71em":"0.32em")),f!==w&&(y=y.transition(f),x=x.transition(f),B=B.transition(f),T=T.transition(f),k=k.transition(f).attr("opacity",ES).attr("transform",(function(t){return isFinite(t=v(t))?h(t+c):this.getAttribute("transform")})),C.attr("opacity",ES).attr("transform",(function(t){var e=this.parentNode.__axis;return h((e&&isFinite(e=e(t))?e:v(t))+c)}))),k.remove(),y.attr("d",t===TS||t===CS?o?"M"+l*o+","+b+"H"+c+"V"+m+"H"+l*o:"M"+c+","+b+"V"+m:o?"M"+b+","+l*o+"V"+c+"H"+m+"V"+l*o:"M"+b+","+c+"H"+m),x.attr("opacity",1).attr("transform",(function(t){return h(v(t)+c)})),B.attr(u+"2",l*a),T.attr(u,l*g).text(d),ai(w).call(w,MS).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===CS?"start":t===TS?"end":"middle"),w.each((function(){this.__axis=v}))}return f.scale=function(t){return arguments.length?(e=t,f):e},f.ticks=function(){return n=Gl(arguments),f},f.tickArguments=function(t){return arguments.length?(n=null==t?[]:Gl(t),f):Tu(n).call(n)},f.tickValues=function(t){return arguments.length?(r=null==t?null:Gl(t),f):r&&Tu(r).call(r)},f.tickFormat=function(t){return arguments.length?(i=t,f):i},f.tickSize=function(t){return arguments.length?(a=o=+t,f):a},f.tickSizeInner=function(t){return arguments.length?(a=+t,f):a},f.tickSizeOuter=function(t){return arguments.length?(o=+t,f):o},f.tickPadding=function(t){return arguments.length?(s=+t,f):s},f.offset=function(t){return arguments.length?(c=+t,f):c},f}var DS={value:function(){}};function OS(){for(var t,e=0,n=arguments.length,r={};e=0&&(n=Tu(t).call(t,r+1),t=Tu(t).call(t,0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}(t+"",r),a=-1,o=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a0)for(var n,r,i=new Array(n),a=0;a=0&&"xmlns"!==(e=Tu(t).call(t,0,n))&&(t=Tu(t).call(t,n+1)),US.hasOwnProperty(e)?{space:US[e],local:t}:t}function $S(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===RS&&e.documentElement.namespaceURI===RS?e.createElement(t):e.createElementNS(n,t)}}function jS(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function KS(t){var e=HS(t);return(e.local?jS:$S)(e)}var zS=$a;function XS(){}function GS(t){return null==t?XS:function(){return this.querySelector(t)}}function VS(t){return null==t?[]:of(t)?t:Gl(t)}function WS(){return[]}function qS(t){return null==t?WS:function(){return this.querySelectorAll(t)}}function YS(t){return function(){return this.matches(t)}}function JS(t){return function(e){return e.matches(t)}}var ZS=pl(Array.prototype);function tL(){return this.firstElementChild}var eL=ai(Array.prototype);function nL(){return Gl(this.children)}var rL=lA;function iL(t){return new Array(t.length)}function aL(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function oL(t,e,n,r,i,a){for(var o,s=0,c=e.length,l=a.length;se?1:t>=e?0:NaN}function hL(t,e){var n=void 0!==op&&uu(t)||t["@@iterator"];if(!n){if(of(t)||(n=function(t,e){var n;if(!t)return;if("string"==typeof t)return fL(t,e);var r=Tu(n=Object.prototype.toString.call(t)).call(n,8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Gl(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fL(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function fL(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0&&(Vh(n=this._names).call(n,r,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){var e;return Cu(e=this._names).call(e,t)>=0}};var JL=xk.mark(ZL);function ZL(){var t,e,n,r,i,a,o;return xk.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:t=this._groups,e=0,n=t.length;case 1:if(!(e=w&&(w=v+1);!(m=p[w])&&++w=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=uL);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a1?this.each((null==e?wL:"function"==typeof e?xL:yL)(t,e,null==n?"":n)):kL(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?CL:"function"==typeof e?TL:BL)(t,e)):this.node()[t]},classed:function(t,e){var n=EL(t+"");if(arguments.length<2){for(var r=_L(this.node()),i=-1,a=n.length;++i=0&&(e=Tu(t).call(t,n+1),t=Tu(t).call(t,0,n)),{type:t,name:e}}))}(t+""),o=a.length;if(!(arguments.length<2)){for(s=e?VL:GL,r=0;r>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===r?DI(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===r?DI(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=kI.exec(t))?new NI(n[1],n[2],n[3],1):(n=CI.exec(t))?new NI(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=BI.exec(t))?DI(n[1],n[2],n[3],n[4]):(n=TI.exec(t))?DI(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=EI.exec(t))?jI(n[1],n[2]/100,n[3]/100,1):(n=_I.exec(t))?jI(n[1],n[2]/100,n[3]/100,n[4]):SI.hasOwnProperty(t)?FI(SI[t]):"transparent"===t?new NI(NaN,NaN,NaN,0):null}function FI(t){return new NI(t>>16&255,t>>8&255,255&t,1)}function DI(t,e,n,r){return r<=0&&(t=e=n=NaN),new NI(t,e,n,r)}function OI(t){return t instanceof pI||(t=MI(t)),t?new NI((t=t.rgb()).r,t.g,t.b,t.opacity):new NI}function QI(t,e,n,r){return 1===arguments.length?OI(t):new NI(t,e,n,null==r?1:r)}function NI(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function PI(){var t,e;return Za(t=Za(e="#".concat($I(this.r))).call(e,$I(this.g))).call(t,$I(this.b))}function RI(){var t,e,n,r,i=UI(this.opacity);return Za(t=Za(e=Za(n=Za(r="".concat(1===i?"rgb(":"rgba(")).call(r,HI(this.r),", ")).call(n,HI(this.g),", ")).call(e,HI(this.b))).call(t,1===i?")":", ".concat(i,")"))}function UI(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function HI(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function $I(t){return((t=HI(t))<16?"0":"")+t.toString(16)}function jI(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new zI(t,e,n,r)}function KI(t){if(t instanceof zI)return new zI(t.h,t.s,t.l,t.opacity);if(t instanceof pI||(t=MI(t)),!t)return new zI;if(t instanceof zI)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=e===a?(n-r)/s+6*(n0&&c<1?0:o,new zI(o,s,c,t.opacity)}function zI(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function XI(t){return(t=(t||0)%360)<0?t+360:t}function GI(t){return Math.max(0,Math.min(1,t||0))}function VI(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}dI(pI,MI,{copy:function(t){return cl(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:LI,formatHex:LI,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return KI(this).formatHsl()},formatRgb:II,toString:II}),dI(NI,QI,gI(pI,{brighter:function(t){return t=null==t?mI:Math.pow(mI,t),new NI(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?bI:Math.pow(bI,t),new NI(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},clamp:function(){return new NI(HI(this.r),HI(this.g),HI(this.b),UI(this.opacity))},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:PI,formatHex:PI,formatHex8:function(){var t,e,n;return Za(t=Za(e=Za(n="#".concat($I(this.r))).call(n,$I(this.g))).call(e,$I(this.b))).call(t,$I(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:RI,toString:RI})),dI(zI,(function(t,e,n,r){return 1===arguments.length?KI(t):new zI(t,e,n,null==r?1:r)}),gI(pI,{brighter:function(t){return t=null==t?mI:Math.pow(mI,t),new zI(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?bI:Math.pow(bI,t),new zI(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new NI(VI(t>=240?t-240:t+120,i,r),VI(t,i,r),VI(t<120?t+240:t-120,i,r),this.opacity)},clamp:function(){return new zI(XI(this.h),GI(this.s),GI(this.l),UI(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t,e,n,r,i=UI(this.opacity);return Za(t=Za(e=Za(n=Za(r="".concat(1===i?"hsl(":"hsla(")).call(r,XI(this.h),", ")).call(n,100*GI(this.s),"%, ")).call(e,100*GI(this.l),"%")).call(t,1===i?")":", ".concat(i,")"))}}));var WI=Math.PI/180,qI=180/Math.PI,YI=.96422,JI=1,ZI=.82521,tM=4/29,eM=6/29,nM=3*eM*eM,rM=eM*eM*eM;function iM(t){if(t instanceof aM)return new aM(t.l,t.a,t.b,t.opacity);if(t instanceof hM)return fM(t);t instanceof NI||(t=OI(t));var e,n,r=lM(t.r),i=lM(t.g),a=lM(t.b),o=oM((.2225045*r+.7168786*i+.0606169*a)/JI);return r===i&&i===a?e=n=o:(e=oM((.4360747*r+.3850649*i+.1430804*a)/YI),n=oM((.0139322*r+.0971045*i+.7141733*a)/ZI)),new aM(116*o-16,500*(e-o),200*(o-n),t.opacity)}function aM(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function oM(t){return t>rM?Math.pow(t,1/3):t/nM+tM}function sM(t){return t>eM?t*t*t:nM*(t-tM)}function cM(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function lM(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function uM(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof hM)return new hM(t.h,t.c,t.l,t.opacity);if(t instanceof aM||(t=iM(t)),0===t.a&&0===t.b)return new hM(NaN,0a&&(i=Tu(e).call(e,a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,c.push({i:o,x:yM(n,r)})),a=CM.lastIndex;return a180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:yM(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(a.rotate,o.rotate,s,c),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:yM(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(a.skewX,o.skewX,s,c),function(t,e,n,r,a,o){if(t!==n||e!==r){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:yM(t,n)},{i:s-2,x:yM(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,c),a=o=null,function(t){for(var e,n=-1,r=c.length;++n180||n<-180?n-360*Math.round(n/360):n):AM(isNaN(t)?e:t)})),RM=0,UM=0,HM=0,$M=1e3,jM=0,KM=0,zM=0,XM="object"===("undefined"==typeof performance?"undefined":Ka(performance))&&performance.now?performance:Date,GM="object"===("undefined"==typeof window?"undefined":Ka(window))&&window.requestAnimationFrame?ro(OM=window.requestAnimationFrame).call(OM,window):function(t){fo(t,17)};function VM(){return KM||(GM(WM),KM=XM.now()+zM)}function WM(){KM=0}function qM(){this._call=this._time=this._next=null}function YM(t,e,n){var r=new qM;return r.restart(t,e,n),r}function JM(){KM=(jM=XM.now())+zM,RM=UM=0;try{!function(){VM(),++RM;for(var t,e=QM;e;)(t=KM-e._time)>=0&&e._call.call(void 0,t),e=e._next;--RM}()}finally{RM=0,function(){var t,e,n=QM,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:QM=e);NM=t,tF(r)}(),KM=0}}function ZM(){var t=XM.now(),e=t-jM;e>$M&&(zM-=e,jM=t)}function tF(t){RM||(UM&&(UM=clearTimeout(UM)),t-KM>24?(t<1/0&&(UM=fo(JM,t-XM.now()-zM)),HM&&(HM=clearInterval(HM))):(HM||(jM=XM.now(),HM=rC(ZM,$M)),RM=1,GM(JM)))}function eF(t,e,n){var r=new qM;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r}qM.prototype=YM.prototype={constructor:qM,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?VM():+n)+(null==e?0:+e),this._next||NM===this||(NM?NM._next=this:QM=this,NM=this),this._call=t,this._time=n,tF()},stop:function(){this._call&&(this._call=null,this._time=1/0,tF())}};var nF=OS("start","end","cancel","interrupt"),rF=[],iF=0,aF=1,oF=2,sF=3,cF=4,lF=5,uF=6;function hF(t,e,n,r,i,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function a(t){n.state=aF,n.timer.restart(o,n.delay,n.time),n.delay<=t&&o(t-n.delay)}function o(a){var l,u,h,f;if(n.state!==aF)return c();for(l in i)if((f=i[l]).name===n.name){if(f.state===sF)return eF(o);f.state===cF?(f.state=uF,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[l]):+liF)throw new Error("too late; already scheduled");return n}function AF(t,e){var n=dF(t,e);if(n.state>sF)throw new Error("too late; already running");return n}function dF(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function gF(t,e){var n,r;return function(){var i=AF(this,t),a=i.tween;if(a!==n)for(var o=0,s=(r=n=a).length;o=0&&(t=Tu(t).call(t,0,e)),!t||"start"===t}))}(e)?fF:AF;return function(){var o=a(this,t),s=o.on;s!==r&&(i=(r=s).copy()).on(e,n),o.on=i}}var MF=hI.prototype.constructor;function FF(t){return function(){this.style.removeProperty(t)}}var DF=0;function OF(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function QF(){return++DF}var NF=hI.prototype;OF.prototype=qa({constructor:OF,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=GS(t));for(var r=this._groups,i=r.length,a=new Array(i),o=0;ooF&&n.stateXF)if(Math.abs(u*s-c*l)>XF&&i){var f=n-a,A=r-o,d=s*s+c*c,g=f*f+A*A,p=Math.sqrt(d),b=Math.sqrt(h),m=i*Math.tan((KF-Math.acos((d+h-g)/(2*p*b)))/2),v=m/b,w=m/p;Math.abs(v-1)>XF&&(this._+="L"+(t+v*l)+","+(e+v*u)),this._+="A"+i+","+i+",0,0,"+ +(u*f>l*A)+","+(this._x1=t+w*s)+","+(this._y1=e+w*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,i,a){t=+t,e=+e,a=!!a;var o=(n=+n)*Math.cos(r),s=n*Math.sin(r),c=t+o,l=e+s,u=1^a,h=a?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+l:(Math.abs(this._x1-c)>XF||Math.abs(this._y1-l)>XF)&&(this._+="L"+c+","+l),n&&(h<0&&(h=h%zF+zF),h>GF?this._+="A"+n+","+n+",0,1,"+u+","+(t-o)+","+(e-s)+"A"+n+","+n+",0,1,"+u+","+(this._x1=c)+","+(this._y1=l):h>XF&&(this._+="A"+n+","+n+",0,"+ +(h>=KF)+","+u+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var qF=Math.hypot,YF=Math.abs,JF=Math.sqrt,ZF=!!qF&&qF(1/0,NaN)!==1/0;function tD(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}te({target:"Math",stat:!0,arity:2,forced:ZF},{hypot:function(t,e){for(var n,r,i=0,a=0,o=arguments.length,s=0;a0?(r=n/s)*r:n;return s===1/0?1/0:s*JF(i)}}),P.Math.hypot;function eD(t,e){var n;if((r=Cu(n=t=e?t.toExponential(e-1):t.toExponential()).call(n,"e"))<0)return null;var r,i=Tu(t).call(t,0,r);return[i.length>1?i[0]+Tu(i).call(i,2):i,+Tu(t).call(t,r+1)]}function nD(t){return(t=eD(Math.abs(t)))?t[1]:NaN}var rD,iD=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function aD(t){var e,n;if(!(n=iD.exec(t)))throw new Error("invalid format: "+t);return new oD({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&Tu(e=n[8]).call(e,1),trim:n[9],type:n[10]})}function oD(t){this.fill=void 0===Mg(t)?" ":Mg(t)+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!_l(t),this.type=void 0===t.type?"":t.type+""}function sD(t,e){var n=eD(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?Tu(r).call(r,0,i+1)+"."+Tu(r).call(r,i+1):r+new Array(i-r.length+2).join("0")}aD.prototype=oD.prototype,oD.prototype.toString=function(){return Mg(this)+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(_l(this)?"~":"")+this.type};var cD={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return sD(100*t,e)},r:sD,s:function(t,e){var n=eD(t,e);if(!n)return t+"";var r=n[0],i=n[1],a=i-(rD=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?Tu(r).call(r,0,a)+"."+Tu(r).call(r,a):"0."+new Array(1-a).join("0")+eD(t,Math.max(0,e+a-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function lD(t){return t}var uD,hD,fD,AD=nf(Array.prototype),dD=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function gD(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?lD:(e=AD.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(t.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return yS(a).call(a).join(n)}),i=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?lD:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(AD.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"−":t.minus+"",u=void 0===t.nan?"NaN":t.nan+"";function h(t){t=aD(t);var e=Mg(t),n=t.align,h=t.sign,f=t.symbol,A=t.zero,d=t.width,g=t.comma,p=t.precision,b=_l(t),m=t.type;"n"===m?(g=!0,m="g"):cD[m]||(void 0===p&&(p=12),b=!0,m="g"),(A||"0"===e&&"="===n)&&(A=!0,e="0",n="=");var v="$"===f?i:"#"===f&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",w="$"===f?a:/[%p]/.test(m)?c:"",y=cD[m],x=/[defgprs%]/.test(m);function k(t){var i,a,c,f=v,k=w;if("c"===m)k=y(t)+k,t="";else{var C=(t=+t)<0||1/t<0;if(t=isNaN(t)?u:y(Math.abs(t),p),b&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r0&&(i=0)}return i>0?Tu(t).call(t,0,i)+Tu(t).call(t,e+1):t}(t)),C&&0==+t&&"+"!==h&&(C=!1),f=(C?"("===h?h:l:"-"===h||"("===h?"":h)+f,k=("s"===m?dD[8+rD/3]:"")+k+(C&&"("===h?")":""),x)for(i=-1,a=t.length;++i(c=t.charCodeAt(i))||c>57){k=(46===c?o+Tu(t).call(t,i+1):Tu(t).call(t,i))+k,t=Tu(t).call(t,0,i);break}}g&&!A&&(t=r(t,1/0));var B=f.length+t.length+k.length,T=B>1)+f+t+k+Tu(T).call(T,B);break;default:t=T+f+t+k}return s(t)}return p=void 0===p?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,p)):Math.max(0,Math.min(20,p)),k.toString=function(){return t+""},k}return{format:h,formatPrefix:function(t,e){var n=h(((t=aD(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(nD(e)/3))),i=Math.pow(10,-r),a=dD[8+r/3];return function(t){return n(i*t)+a}}}}function pD(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function bD(t,e){var n=void 0!==op&&uu(t)||t["@@iterator"];if(!n){if(of(t)||(n=function(t,e){var n;if(!t)return;if("string"==typeof t)return mD(t,e);var r=Tu(n=Object.prototype.toString.call(t)).call(n,8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Gl(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mD(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function mD(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);ne&&(n=t,t=e,e=n),l=function(n){return Math.max(t,Math.min(e,n))}),r=c>2?TD:BD,i=a=null,h}function h(e){return null==e||isNaN(e=+e)?n:(i||(i=r(nf(o).call(o,t),s,c)))(t(l(e)))}return h.invert=function(n){return l(e((a||(a=r(s,nf(o).call(o,t),yM)))(n)))},h.domain=function(t){return arguments.length?(o=Gl(t,yD),u()):Tu(o).call(o)},h.range=function(t){return arguments.length?(s=Gl(t),u()):Tu(s).call(s)},h.rangeRound=function(t){return s=Gl(t),c=EM,u()},h.clamp=function(t){return arguments.length?(l=!!t||kD,u()):l!==kD},h.interpolate=function(t){return arguments.length?(c=t,u()):c},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,r){return t=n,e=r,u()}}function SD(){return _D()(kD,kD)}function LD(t,e,n,r){var i,a=dS(t,e,n);switch((r=aD(null==r?",f":r)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(nD(e)/3)))-nD(Math.abs(t)))}(a,o))||(r.precision=i),fD(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,nD(e)-nD(t))+1}(a,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-nD(Math.abs(t)))}(a))||(r.precision=i-2*("%"===r.type))}return hD(r)}function ID(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){if(!((n=+n)>0))return[];if((t=+t)==(e=+e))return[t];var r=e=a))return[];var c=o-a+1,l=new Array(c);if(r)if(s<0)for(var u=0;u0;){if((i=AS(c,l,n))===r)return a[o]=c,a[s]=l,e(a);if(i>0)c=Math.floor(c/i)*i,l=Math.ceil(l/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,l=Math.floor(l*i)/i}r=i}return t},t}function MD(){var t=SD();return t.copy=function(){return ED(t,MD())},pD.apply(t,arguments),ID(t)}var FD=new Date,DD=new Date;function OD(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e0))return s;do{s.push(o=new Date(+n)),e(n,a),t(n)}while(o=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return FD.setTime(+e),DD.setTime(+r),t(FD),t(DD),Math.floor(n(FD,DD))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?ai(i).call(i,r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var QD=OD((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));QD.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?OD((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):QD:null};var ND=QD;QD.range;var PD=1e3,RD=6e4,UD=36e5,HD=864e5,$D=6048e5,jD=2592e6,KD=31536e6,zD=OD((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*PD)}),(function(t,e){return(e-t)/PD}),(function(t){return t.getUTCSeconds()})),XD=zD;zD.range;var GD=OD((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*PD)}),(function(t,e){t.setTime(+t+e*RD)}),(function(t,e){return(e-t)/RD}),(function(t){return t.getMinutes()})),VD=GD;GD.range;var WD=OD((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*PD-t.getMinutes()*RD)}),(function(t,e){t.setTime(+t+e*UD)}),(function(t,e){return(e-t)/UD}),(function(t){return t.getHours()})),qD=WD;WD.range;var YD=OD((function(t){return t.setHours(0,0,0,0)}),(function(t,e){return t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*RD)/HD}),(function(t){return t.getDate()-1})),JD=YD;function ZD(t){return OD((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*RD)/$D}))}YD.range;var tO=ZD(0),eO=ZD(1),nO=ZD(2),rO=ZD(3),iO=ZD(4),aO=ZD(5),oO=ZD(6);tO.range,eO.range,nO.range,rO.range,iO.range,aO.range,oO.range;var sO=OD((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})),cO=sO;sO.range;var lO=OD((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));lO.every=function(t){return isFinite(t=Math.floor(t))&&t>0?OD((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var uO=lO;lO.range;var hO=OD((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*RD)}),(function(t,e){return(e-t)/RD}),(function(t){return t.getUTCMinutes()})),fO=hO;hO.range;var AO=OD((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*UD)}),(function(t,e){return(e-t)/UD}),(function(t){return t.getUTCHours()})),dO=AO;AO.range;var gO=OD((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/HD}),(function(t){return t.getUTCDate()-1})),pO=gO;function bO(t){return OD((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/$D}))}gO.range;var mO=bO(0),vO=bO(1),wO=bO(2),yO=bO(3),xO=bO(4),kO=bO(5),CO=bO(6);mO.range,vO.range,wO.range,yO.range,xO.range,kO.range,CO.range;var BO=OD((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),TO=BO;BO.range;var EO=OD((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));EO.every=function(t){return isFinite(t=Math.floor(t))&&t>0?OD((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var _O=EO;function SO(t,e,n,r,i,a){var o=[[XD,1,PD],[XD,5,5e3],[XD,15,15e3],[XD,30,3e4],[a,1,RD],[a,5,3e5],[a,15,9e5],[a,30,18e5],[i,1,UD],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,HD],[r,2,1728e5],[n,1,$D],[e,1,jD],[e,3,7776e6],[t,1,KD]];function s(e,n,r){var i=Math.abs(n-e)/r,a=N_((function(t){return ku(t,3)[2]})).right(o,i);if(a===o.length)return sy(t).call(t,dS(e/KD,n/KD,r));if(0===a)return sy(ND).call(ND,Math.max(dS(e,n,r),1));var s=ku(o[i/o[a-1][2]68?1900:2e3),n+r[0].length):-1}function tQ(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Tu(e).call(e,n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function eQ(t,e,n){var r=UO.exec(Tu(e).call(e,n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function nQ(t,e,n){var r=UO.exec(Tu(e).call(e,n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function rQ(t,e,n){var r=UO.exec(Tu(e).call(e,n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function iQ(t,e,n){var r=UO.exec(Tu(e).call(e,n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function aQ(t,e,n){var r=UO.exec(Tu(e).call(e,n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function oQ(t,e,n){var r=UO.exec(Tu(e).call(e,n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function sQ(t,e,n){var r=UO.exec(Tu(e).call(e,n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function cQ(t,e,n){var r=UO.exec(Tu(e).call(e,n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function lQ(t,e,n){var r=UO.exec(Tu(e).call(e,n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function uQ(t,e,n){var r=HO.exec(Tu(e).call(e,n,n+1));return r?n+r[0].length:-1}function hQ(t,e,n){var r=UO.exec(Tu(e).call(e,n));return r?(t.Q=+r[0],n+r[0].length):-1}function fQ(t,e,n){var r=UO.exec(Tu(e).call(e,n));return r?(t.s=+r[0],n+r[0].length):-1}function AQ(t,e){return jO(t.getDate(),e,2)}function dQ(t,e){return jO(t.getHours(),e,2)}function gQ(t,e){return jO(t.getHours()%12||12,e,2)}function pQ(t,e){return jO(1+JD.count(uO(t),t),e,3)}function bQ(t,e){return jO(t.getMilliseconds(),e,3)}function mQ(t,e){return bQ(t,e)+"000"}function vQ(t,e){return jO(t.getMonth()+1,e,2)}function wQ(t,e){return jO(t.getMinutes(),e,2)}function yQ(t,e){return jO(t.getSeconds(),e,2)}function xQ(t){var e=t.getDay();return 0===e?7:e}function kQ(t,e){return jO(tO.count(uO(t)-1,t),e,2)}function CQ(t){var e=t.getDay();return e>=4||0===e?iO(t):iO.ceil(t)}function BQ(t,e){return t=CQ(t),jO(iO.count(uO(t),t)+(4===uO(t).getDay()),e,2)}function TQ(t){return t.getDay()}function EQ(t,e){return jO(eO.count(uO(t)-1,t),e,2)}function _Q(t,e){return jO(t.getFullYear()%100,e,2)}function SQ(t,e){return jO((t=CQ(t)).getFullYear()%100,e,2)}function LQ(t,e){return jO(t.getFullYear()%1e4,e,4)}function IQ(t,e){var n=t.getDay();return jO((t=n>=4||0===n?iO(t):iO.ceil(t)).getFullYear()%1e4,e,4)}function MQ(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+jO(e/60|0,"0",2)+jO(e%60,"0",2)}function FQ(t,e){return jO(t.getUTCDate(),e,2)}function DQ(t,e){return jO(t.getUTCHours(),e,2)}function OQ(t,e){return jO(t.getUTCHours()%12||12,e,2)}function QQ(t,e){return jO(1+pO.count(_O(t),t),e,3)}function NQ(t,e){return jO(t.getUTCMilliseconds(),e,3)}function PQ(t,e){return NQ(t,e)+"000"}function RQ(t,e){return jO(t.getUTCMonth()+1,e,2)}function UQ(t,e){return jO(t.getUTCMinutes(),e,2)}function HQ(t,e){return jO(t.getUTCSeconds(),e,2)}function $Q(t){var e=t.getUTCDay();return 0===e?7:e}function jQ(t,e){return jO(mO.count(_O(t)-1,t),e,2)}function KQ(t){var e=t.getUTCDay();return e>=4||0===e?xO(t):xO.ceil(t)}function zQ(t,e){return t=KQ(t),jO(xO.count(_O(t),t)+(4===_O(t).getUTCDay()),e,2)}function XQ(t){return t.getUTCDay()}function GQ(t,e){return jO(vO.count(_O(t)-1,t),e,2)}function VQ(t,e){return jO(t.getUTCFullYear()%100,e,2)}function WQ(t,e){return jO((t=KQ(t)).getUTCFullYear()%100,e,2)}function qQ(t,e){return jO(t.getUTCFullYear()%1e4,e,4)}function YQ(t,e){var n=t.getUTCDay();return jO((t=n>=4||0===n?xO(t):xO.ceil(t)).getUTCFullYear()%1e4,e,4)}function JQ(){return"+0000"}function ZQ(){return"%"}function tN(t){return+t}function eN(t){return Math.floor(+t/1e3)}function nN(t){return new Date(t)}function rN(t){return t instanceof Date?+t:+new Date(+t)}function iN(t,e,n,r,i,a,o,s,c,l){var u=SD(),h=u.invert,f=u.domain,A=l(".%L"),d=l(":%S"),g=l("%I:%M"),p=l("%I %p"),b=l("%a %d"),m=l("%b %d"),v=l("%B"),w=l("%Y");function y(t){return(c(t)=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:tN,s:eN,S:yQ,u:xQ,U:kQ,V:BQ,w:TQ,W:EQ,x:null,X:null,y:_Q,Y:LQ,Z:MQ,"%":ZQ},w={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:FQ,e:FQ,f:PQ,g:WQ,G:YQ,H:DQ,I:OQ,j:QQ,L:NQ,m:RQ,M:UQ,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:tN,s:eN,S:HQ,u:$Q,U:jQ,V:zQ,w:XQ,W:GQ,x:null,X:null,y:VQ,Y:qQ,Z:JQ,"%":ZQ},y={a:function(t,e,n){var r=A.exec(Tu(e).call(e,n));return r?(t.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=h.exec(Tu(e).call(e,n));return r?(t.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=b.exec(Tu(e).call(e,n));return r?(t.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=g.exec(Tu(e).call(e,n));return r?(t.m=p.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return C(t,e,n,r)},d:rQ,e:rQ,f:lQ,g:ZO,G:JO,H:aQ,I:aQ,j:iQ,L:cQ,m:nQ,M:oQ,p:function(t,e,n){var r=l.exec(Tu(e).call(e,n));return r?(t.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:eQ,Q:hQ,s:fQ,S:sQ,u:VO,U:WO,V:qO,w:GO,W:YO,x:function(t,e,r){return C(t,n,e,r)},X:function(t,e,n){return C(t,r,e,n)},y:ZO,Y:JO,Z:tQ,"%":uQ};function x(t,e){return function(n){var r,i,a,o=[],s=-1,c=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in a||(a.w=1),"Z"in a?(i=(r=OO(QO(a.y,0,1))).getUTCDay(),r=i>4||0===i?vO.ceil(r):vO(r),r=pO.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(i=(r=DO(QO(a.y,0,1))).getDay(),r=i>4||0===i?eO.ceil(r):eO(r),r=JD.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?OO(QO(a.y,0,1)).getUTCDay():DO(QO(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,OO(a)):DO(a)}}function C(t,e,n,r){for(var i,a,o=0,s=e.length,c=n.length;o=c)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=y[i in RO?e.charAt(o++):i])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return v.x=x(n,v),v.X=x(r,v),v.c=x(e,v),w.x=x(n,w),w.X=x(r,w),w.c=x(e,w),{format:function(t){var e=x(t+="",v);return e.toString=function(){return t},e},parse:function(t){var e=k(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=x(t+="",w);return e.toString=function(){return t},e},utcParse:function(t){var e=k(t+="",!0);return e.toString=function(){return t},e}}}(t),PO=NO.format,NO.parse,NO.utcFormat,NO.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var oN=Math.abs,sN=Math.atan2,cN=Math.cos,lN=Math.max,uN=Math.min,hN=Math.sin,fN=Math.sqrt,AN=1e-12,dN=Math.PI,gN=dN/2,pN=2*dN;function bN(t){return t>=1?gN:t<=-1?-gN:Math.asin(t)}function mN(t){return t.innerRadius}function vN(t){return t.outerRadius}function wN(t){return t.startAngle}function yN(t){return t.endAngle}function xN(t){return t&&t.padAngle}function kN(t,e,n,r,i,a,o){var s=t-n,c=e-r,l=(o?a:-a)/fN(s*s+c*c),u=l*c,h=-l*s,f=t+u,A=e+h,d=n+u,g=r+h,p=(f+d)/2,b=(A+g)/2,m=d-f,v=g-A,w=m*m+v*v,y=i-a,x=f*g-d*A,k=(v<0?-1:1)*fN(lN(0,y*y*w-x*x)),C=(x*v-m*k)/w,B=(-x*m-v*k)/w,T=(x*v+m*k)/w,E=(-x*m+v*k)/w,_=C-p,S=B-b,L=T-p,I=E-b;return _*_+S*S>L*L+I*I&&(C=T,B=E),{cx:C,cy:B,x01:-u,y01:-h,x11:C*(i/y-1),y11:B*(i/y-1)}}function CN(){var t=mN,e=vN,n=aN(0),r=null,i=wN,a=yN,o=xN,s=null;function c(){var c,l,u=+t.apply(this,arguments),h=+e.apply(this,arguments),f=i.apply(this,arguments)-gN,A=a.apply(this,arguments)-gN,d=oN(A-f),g=A>f;if(s||(s=c=WF()),hAN)if(d>pN-AN)s.moveTo(h*cN(f),h*hN(f)),s.arc(0,0,h,f,A,!g),u>AN&&(s.moveTo(u*cN(A),u*hN(A)),s.arc(0,0,u,A,f,g));else{var p,b,m=f,v=A,w=f,y=A,x=d,k=d,C=o.apply(this,arguments)/2,B=C>AN&&(r?+r.apply(this,arguments):fN(u*u+h*h)),T=uN(oN(h-u)/2,+n.apply(this,arguments)),E=T,_=T;if(B>AN){var S=bN(B/u*hN(C)),L=bN(B/h*hN(C));(x-=2*S)>AN?(w+=S*=g?1:-1,y-=S):(x=0,w=y=(f+A)/2),(k-=2*L)>AN?(m+=L*=g?1:-1,v-=L):(k=0,m=v=(f+A)/2)}var I=h*cN(m),M=h*hN(m),F=u*cN(y),D=u*hN(y);if(T>AN){var O,Q=h*cN(v),N=h*hN(v),P=u*cN(w),R=u*hN(w);if(d1?0:t<-1?dN:Math.acos(t)}((U*$+H*j)/(fN(U*U+H*H)*fN($*$+j*j)))/2),z=fN(O[0]*O[0]+O[1]*O[1]);E=uN(T,(u-z)/(K-1)),_=uN(T,(h-z)/(K+1))}}k>AN?_>AN?(p=kN(P,R,I,M,h,_,g),b=kN(Q,N,F,D,h,_,g),s.moveTo(p.cx+p.x01,p.cy+p.y01),_AN&&x>AN?E>AN?(p=kN(F,D,Q,N,u,-E,g),b=kN(I,M,P,R,u,-E,g),s.lineTo(p.cx+p.x01,p.cy+p.y01),Et?1:e>=t?0:NaN}function MN(t){return t}Tu(Array.prototype),TN.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var FN=function(){function t(e,n){fa(this,t),this._context=e,this._x=n}return ga(t,[{key:"areaStart",value:function(){this._line=0}},{key:"areaEnd",value:function(){this._line=NaN}},{key:"lineStart",value:function(){this._point=0}},{key:"lineEnd",value:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}},{key:"point",value:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}]),t}();function DN(){}function ON(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function QN(t){this._context=t}function NN(t){return new QN(t)}function PN(t){this._context=t}function RN(t){this._context=t}function UN(t,e){this._basis=new QN(t),this._beta=e}QN.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ON(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ON(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},PN.prototype={areaStart:DN,areaEnd:DN,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:ON(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},RN.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:ON(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},UN.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],a=e[0],o=t[n]-i,s=e[n]-a,c=-1;++c<=n;)r=c/n,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*o),this._beta*e[c]+(1-this._beta)*(a+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var HN=function t(e){function n(t){return 1===e?new QN(t):new UN(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function $N(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function jN(t,e){this._context=t,this._k=(1-e)/6}jN.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:$N(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:$N(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var KN=function t(e){function n(t){return new jN(t,e)}return n.tension=function(e){return t(+e)},n}(0);function zN(t,e){this._context=t,this._k=(1-e)/6}zN.prototype={areaStart:DN,areaEnd:DN,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:$N(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var XN=function t(e){function n(t){return new zN(t,e)}return n.tension=function(e){return t(+e)},n}(0);function GN(t,e){this._context=t,this._k=(1-e)/6}GN.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:$N(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var VN=function t(e){function n(t){return new GN(t,e)}return n.tension=function(e){return t(+e)},n}(0);function WN(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>AN){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>AN){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*l+t._x1*t._l23_2a-e*t._l12_2a)/u,o=(o*l+t._y1*t._l23_2a-n*t._l12_2a)/u}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function qN(t,e){this._context=t,this._alpha=e}qN.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:WN(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var YN=function t(e){function n(t){return e?new qN(t,e):new jN(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function JN(t,e){this._context=t,this._alpha=e}JN.prototype={areaStart:DN,areaEnd:DN,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:WN(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var ZN=function t(e){function n(t){return e?new JN(t,e):new zN(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function tP(t,e){this._context=t,this._alpha=e}tP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:WN(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var eP=function t(e){function n(t){return e?new tP(t,e):new GN(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function nP(t){this._context=t}function rP(t){return t<0?-1:1}function iP(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(rP(a)+rP(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function aP(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function oP(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-r)/3;t._context.bezierCurveTo(r+s,i+s*e,a-s,o-s*n,a,o)}function sP(t){this._context=t}function cP(t){this._context=new lP(t)}function lP(t){this._context=t}function uP(t){this._context=t}function hP(t){var e,n,r=t.length-1,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[r-1]=(t[r]+i[r-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}},AP.prototype={constructor:AP,scale:function(t){return 1===t?this:new AP(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new AP(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){var e,n;return t.copy().domain(nf(e=nf(n=t.range()).call(n,this.invertX,this)).call(e,t.invert,t))},rescaleY:function(t){var e,n;return t.copy().domain(nf(e=nf(n=t.range()).call(n,this.invertY,this)).call(e,t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},new AP(1,0,0),AP.prototype;var dP=n((function(t,e){t.exports=function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,n){return e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(t,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(t){return!1}}function r(t,i,a){return r=n()?Reflect.construct:function(t,n,r){var i=[null];i.push.apply(i,n);var a=new(Function.bind.apply(t,i));return r&&e(a,r.prototype),a},r.apply(null,arguments)}function i(t){return a(t)||o(t)||s(t)||l()}function a(t){if(Array.isArray(t))return c(t)}function o(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function s(t,e){if(t){if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1?n-1:0),i=1;i/gm),q=p(/\${[\w\W]*}/gm),Y=p(/^data-[\-\w.\u00B7-\uFFFF]/),J=p(/^aria-[\-\w]+$/),Z=p(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),tt=p(/^(?:\w+script|data):/i),et=p(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),nt=p(/^html$/i),rt=function(){return"undefined"==typeof window?null:window},it=function(e,n){if("object"!==t(e)||"function"!=typeof e.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 e.createPolicy(a,{createHTML:function(t){return t},createScriptURL:function(t){return t}})}catch(t){return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function at(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rt(),n=function(t){return at(t)};if(n.version="2.4.3",n.removed=[],!e||!e.document||9!==e.document.nodeType)return n.isSupported=!1,n;var r=e.document,a=e.document,o=e.DocumentFragment,s=e.HTMLTemplateElement,c=e.Node,l=e.Element,u=e.NodeFilter,h=e.NamedNodeMap,f=void 0===h?e.NamedNodeMap||e.MozNamedAttrMap:h,A=e.HTMLFormElement,d=e.DOMParser,p=e.trustedTypes,b=l.prototype,m=Q(b,"cloneNode"),v=Q(b,"nextSibling"),w=Q(b,"childNodes"),M=Q(b,"parentNode");if("function"==typeof s){var F=a.createElement("template");F.content&&F.content.ownerDocument&&(a=F.content.ownerDocument)}var ot=it(p,r),st=ot?ot.createHTML(""):"",ct=a,lt=ct.implementation,ut=ct.createNodeIterator,ht=ct.createDocumentFragment,ft=ct.getElementsByTagName,At=r.importNode,dt={};try{dt=O(a).documentMode?a.documentMode:{}}catch(t){}var gt={};n.isSupported="function"==typeof M&<&&void 0!==lt.createHTMLDocument&&9!==dt;var pt,bt,mt=V,vt=W,wt=q,yt=Y,xt=J,kt=tt,Ct=et,Bt=Z,Tt=null,Et=D({},[].concat(i(N),i(P),i(R),i(H),i(j))),_t=null,St=D({},[].concat(i(K),i(z),i(X),i(G))),Lt=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}})),It=null,Mt=null,Ft=!0,Dt=!0,Ot=!1,Qt=!1,Nt=!1,Pt=!1,Rt=!1,Ut=!1,Ht=!1,$t=!1,jt=!0,Kt=!1,zt="user-content-",Xt=!0,Gt=!1,Vt={},Wt=null,qt=D({},["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"]),Yt=null,Jt=D({},["audio","video","img","source","image","track"]),Zt=null,te=D({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ee="http://www.w3.org/1998/Math/MathML",ne="http://www.w3.org/2000/svg",re="http://www.w3.org/1999/xhtml",ie=re,ae=!1,oe=null,se=D({},[ee,ne,re],B),ce=["application/xhtml+xml","text/html"],le="text/html",ue=null,he=a.createElement("form"),fe=function(t){return t instanceof RegExp||t instanceof Function},Ae=function(e){ue&&ue===e||(e&&"object"===t(e)||(e={}),e=O(e),pt=pt=-1===ce.indexOf(e.PARSER_MEDIA_TYPE)?le:e.PARSER_MEDIA_TYPE,bt="application/xhtml+xml"===pt?B:C,Tt="ALLOWED_TAGS"in e?D({},e.ALLOWED_TAGS,bt):Et,_t="ALLOWED_ATTR"in e?D({},e.ALLOWED_ATTR,bt):St,oe="ALLOWED_NAMESPACES"in e?D({},e.ALLOWED_NAMESPACES,B):se,Zt="ADD_URI_SAFE_ATTR"in e?D(O(te),e.ADD_URI_SAFE_ATTR,bt):te,Yt="ADD_DATA_URI_TAGS"in e?D(O(Jt),e.ADD_DATA_URI_TAGS,bt):Jt,Wt="FORBID_CONTENTS"in e?D({},e.FORBID_CONTENTS,bt):qt,It="FORBID_TAGS"in e?D({},e.FORBID_TAGS,bt):{},Mt="FORBID_ATTR"in e?D({},e.FORBID_ATTR,bt):{},Vt="USE_PROFILES"in e&&e.USE_PROFILES,Ft=!1!==e.ALLOW_ARIA_ATTR,Dt=!1!==e.ALLOW_DATA_ATTR,Ot=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Qt=e.SAFE_FOR_TEMPLATES||!1,Nt=e.WHOLE_DOCUMENT||!1,Ut=e.RETURN_DOM||!1,Ht=e.RETURN_DOM_FRAGMENT||!1,$t=e.RETURN_TRUSTED_TYPE||!1,Rt=e.FORCE_BODY||!1,jt=!1!==e.SANITIZE_DOM,Kt=e.SANITIZE_NAMED_PROPS||!1,Xt=!1!==e.KEEP_CONTENT,Gt=e.IN_PLACE||!1,Bt=e.ALLOWED_URI_REGEXP||Bt,ie=e.NAMESPACE||re,e.CUSTOM_ELEMENT_HANDLING&&fe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Lt.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&fe(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Lt.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Lt.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Qt&&(Dt=!1),Ht&&(Ut=!0),Vt&&(Tt=D({},i(j)),_t=[],!0===Vt.html&&(D(Tt,N),D(_t,K)),!0===Vt.svg&&(D(Tt,P),D(_t,z),D(_t,G)),!0===Vt.svgFilters&&(D(Tt,R),D(_t,z),D(_t,G)),!0===Vt.mathMl&&(D(Tt,H),D(_t,X),D(_t,G))),e.ADD_TAGS&&(Tt===Et&&(Tt=O(Tt)),D(Tt,e.ADD_TAGS,bt)),e.ADD_ATTR&&(_t===St&&(_t=O(_t)),D(_t,e.ADD_ATTR,bt)),e.ADD_URI_SAFE_ATTR&&D(Zt,e.ADD_URI_SAFE_ATTR,bt),e.FORBID_CONTENTS&&(Wt===qt&&(Wt=O(Wt)),D(Wt,e.FORBID_CONTENTS,bt)),Xt&&(Tt["#text"]=!0),Nt&&D(Tt,["html","head","body"]),Tt.table&&(D(Tt,["tbody"]),delete It.tbody),g&&g(e),ue=e)},de=D({},["mi","mo","mn","ms","mtext"]),ge=D({},["foreignobject","desc","title","annotation-xml"]),pe=D({},["title","style","font","a","script"]),be=D({},P);D(be,R),D(be,U);var me=D({},H);D(me,$);var ve=function(t){var e=M(t);e&&e.tagName||(e={namespaceURI:ie,tagName:"template"});var n=C(t.tagName),r=C(e.tagName);return!!oe[t.namespaceURI]&&(t.namespaceURI===ne?e.namespaceURI===re?"svg"===n:e.namespaceURI===ee?"svg"===n&&("annotation-xml"===r||de[r]):Boolean(be[n]):t.namespaceURI===ee?e.namespaceURI===re?"math"===n:e.namespaceURI===ne?"math"===n&&ge[r]:Boolean(me[n]):t.namespaceURI===re?!(e.namespaceURI===ne&&!ge[r])&&!(e.namespaceURI===ee&&!de[r])&&!me[n]&&(pe[n]||!be[n]):!("application/xhtml+xml"!==pt||!oe[t.namespaceURI]))},we=function(t){k(n.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=st}catch(e){t.remove()}}},ye=function(t,e){try{k(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){k(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!_t[t])if(Ut||Ht)try{we(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},xe=function(t){var e,n;if(Rt)t=""+t;else{var r=T(t,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===pt&&ie===re&&(t=''+t+"");var i=ot?ot.createHTML(t):t;if(ie===re)try{e=(new d).parseFromString(i,pt)}catch(t){}if(!e||!e.documentElement){e=lt.createDocument(ie,"template",null);try{e.documentElement.innerHTML=ae?st:i}catch(t){}}var o=e.body||e.documentElement;return t&&n&&o.insertBefore(a.createTextNode(n),o.childNodes[0]||null),ie===re?ft.call(e,Nt?"html":"body")[0]:Nt?e.documentElement:o},ke=function(t){return ut.call(t.ownerDocument||t,t,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},Ce=function(t){return t instanceof A&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof f)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},Be=function(e){return"object"===t(c)?e instanceof c:e&&"object"===t(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Te=function(t,e,r){gt[t]&&y(gt[t],(function(t){t.call(n,e,r,ue)}))},Ee=function(t){var e;if(Te("beforeSanitizeElements",t,null),Ce(t))return we(t),!0;if(L(/[\u0080-\uFFFF]/,t.nodeName))return we(t),!0;var r=bt(t.nodeName);if(Te("uponSanitizeElement",t,{tagName:r,allowedTags:Tt}),t.hasChildNodes()&&!Be(t.firstElementChild)&&(!Be(t.content)||!Be(t.content.firstElementChild))&&L(/<[/\w]/g,t.innerHTML)&&L(/<[/\w]/g,t.textContent))return we(t),!0;if("select"===r&&L(/