PageSourceSearch

https://omgevingswet.wiki/360q/ui/build/assets/coreui-comments-C86jA0hj.js

js omgevingswet.wiki collected 2026-10-08 05:50:42 UTC 331,468 bytes, 95 lines download raw bytes

1var pc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mc(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}function gc(u){if(u.__esModule)return u;var D=u.default;if(typeof D=="function"){var f=function m(){return this instanceof m?Reflect.construct(D,arguments,this.constructor):D.apply(this,arguments)};f.prototype=D.prototype}else f={};return Object.defineProperty(f,"__esModule",{value:!0}),Object.keys(u).forEach(function(m){var g=Object.getOwnPropertyDescriptor(u,m);Object.defineProperty(f,m,g.get?g:{enumerable:!0,get:function(){return u[m]}})}),f}var Zl={exports:{}};(function(u,D){(function(f,m){u.exports=m()})(pc,function(){var f=navigator.userAgent,m=navigator.platform,g=/gecko\/\d/i.test(f),w=/MSIE \d/.test(f),v=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(f),y=/Edge\/(\d+)/.exec(f),x=w||v||y,S=x&&(w?document.documentMode||6:+(y||v)[1]),z=!y&&/WebKit\//.test(f),P=z&&/Qt\/\d+\.\d+/.test(f),M=!y&&/Chrome\/(\d+)/.exec(f),q=M&&+M[1],$=/Opera\//.test(f),ne=/Apple Computer/.test(navigator.vendor),J=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(f),K=/PhantomJS/.test(f),I=ne&&(/Mobile\/\w+/.test(f)||navigator.maxTouchPoints>2),H=/Android/.test(f),_=I||H||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(f),j=I||/Mac/.test(m),ee=/\bCrOS\b/.test(f),V=/win/i.test(m),se=$&&f.match(/Version\/(\d*\.\d*)/);se&&(se=Number(se[1])),se&&se>=15&&($=!1,z=!0);var pe=j&&(P||$&&(se==null||se<12.11)),We=g||x&&S>=9;function te(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var Ee=function(e,t){var r=e.className,n=te(t).exec(r);if(n){var i=r.slice(n.index+n[0].length);e.className=r.slice(0,n.index)+(i?n[1]+i:"")}};function Le(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function be(e,t){return Le(e).appendChild(t)}function L(e,t,r,n){var i=document.createElement(e);if(r&&(i.className=r),n&&(i.style.cssText=n),typeof t=="string")i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function Y(e,t,r,n){var i=L(e,t,r,n);return i.setAttribute("role","presentation"),i}var Z;document.createRange?Z=function(e,t,r,n){var i=document.createRange();return i.setEnd(n||e,r),i.setStart(e,t),i}:Z=function(e,t,r){var n=document.body.createTextRange();try{n.moveToElementText(e.parentNode)}catch{return n}return n.collapse(!0),n.moveEnd("character",r),n.moveStart("character",t),n};function me(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function Oe(e){var t=e.ownerDocument||e,r;try{r=e.activeElement}catch{r=t.body||null}for(;r&&r.shadowRoot&&r.shadowRoot.activeElement;)r=r.shadowRoot.activeElement;return r}function et(e,t){var r=e.className;te(t).test(r)||(e.className+=(r?" ":"")+t)}function Ht(e,t){for(var r=e.split(" "),n=0;n<r.length;n++)r[n]&&!te(r[n]).test(t)&&(t+=" "+r[n]);return t}var A=function(e){e.select()};I?A=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:x&&(A=function(e){try{e.select()}catch{}});function d(e){return e.display.wrapper.ownerDocument}function W(e){return Ne(e.display.wrapper)}function Ne(e){return e.getRootNode?e.getRootNode():e.ownerDocument}function Se(e){return d(e).defaultView}function Ze(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function ft(e,t,r){t||(t={});for(var n in e)e.hasOwnProperty(n)&&(r!==!1||!t.hasOwnProperty(n))&&(t[n]=e[n]);return t}function $e(e,t,r,n,i){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var o=n||0,a=i||0;;){var l=e.indexOf("	",o);if(l<0||l>=t)return a+(t-o);a+=l-o,a+=r-a%r,o=l+1}}var it=function(){this.id=null,this.f=null,this.time=0,this.handler=Ze(this.onTimeout,this)};it.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},it.prototype.set=function(e,t){this.f=t;var r=+new Date+e;(!this.id||r<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=r)};function Ie(e,t){for(var r=0;r<e.length;++r)if(e[r]==t)return r;return-1}var Re=50,Xe={toString:function(){return"CodeMirror.Pass"}},ht={scroll:!1},ye={origin:"*mouse"},Mt={origin:"+move"};function Bt(e,t,r){for(var n=0,i=0;;){var o=e.indexOf("	",n);o==-1&&(o=e.length);var a=o-n;if(o==e.length||i+a>=t)return n+Math.min(a,t-i);if(i+=o-n,i+=r-i%r,n=o+1,i>=t)return n}}var St=[""];function Pt(e){for(;St.length<=e;)St.push(Me(St)+" ");return St[e]}function Me(e){return e[e.length-1]}function Et(e,t){for(var r=[],n=0;n<e.length;n++)r[n]=t(e[n],n);return r}function Rt(e,t,r){for(var n=0,i=r(t);n<e.length&&r(e[n])<=i;)n++;e.splice(n,0,t)}function Mn(){}function B(e,t){var r;return Object.create?r=Object.create(e):(Mn.prototype=e,r=new Mn),t&&ft(t,r),r}var N=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function h(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||N.test(e))}function p(e,t){return t?t.source.indexOf("\\w")>-1&&h(e)?!0:t.test(e):h(e)}function k(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}
vendor: 32,296 bytes, lines 1-5
1var F=/[\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 O(e){return e.charCodeAt(0)>=768&&F.test(e)}function U(e,t,r){for(;(r<0?t>0:t<e.length)&&O(e.charAt(t));)t+=r;return t}function le(e,t,r){for(var n=t>r?-1:1;;){if(t==r)return t;var i=(t+r)/2,o=n<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:r;e(o)?r=o:t=o+n}}function fe(e,t,r,n){if(!e)return n(t,r,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<r&&a.to>t||t==r&&a.to==t)&&(n(Math.max(a.from,t),Math.min(a.to,r),a.level==1?"rtl":"ltr",o),i=!0)}i||n(t,r,"ltr")}var ge=null;function Ce(e,t,r){var n;ge=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&r=="before"?n=i:ge=i),o.from==t&&(o.from!=o.to&&r!="before"?n=i:ge=i)}return n??ge}var De=(function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function r(c){return c<=247?e.charAt(c):1424<=c&&c<=1524?"R":1536<=c&&c<=1785?t.charAt(c-1536):1774<=c&&c<=2220?"r":8192<=c&&c<=8203?"w":c==8204?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,l=/[1n]/;function s(c,b,C){this.level=c,this.from=b,this.to=C}return function(c,b){var C=b=="ltr"?"L":"R";if(c.length==0||b=="ltr"&&!n.test(c))return!1;for(var T=c.length,E=[],R=0;R<T;++R)E.push(r(c.charCodeAt(R)));for(var G=0,Q=C;G<T;++G){var ie=E[G];ie=="m"?E[G]=Q:Q=ie}for(var ce=0,oe=C;ce<T;++ce){var de=E[ce];de=="1"&&oe=="r"?E[ce]="n":o.test(de)&&(oe=de,de=="r"&&(E[ce]="R"))}for(var we=1,xe=E[0];we<T-1;++we){var Te=E[we];Te=="+"&&xe=="1"&&E[we+1]=="1"?E[we]="1":Te==","&&xe==E[we+1]&&(xe=="1"||xe=="n")&&(E[we]=xe),xe=Te}for(var _e=0;_e<T;++_e){var ut=E[_e];if(ut==",")E[_e]="N";else if(ut=="%"){var Ge=void 0;for(Ge=_e+1;Ge<T&&E[Ge]=="%";++Ge);for(var At=_e&&E[_e-1]=="!"||Ge<T&&E[Ge]=="1"?"1":"N",Ct=_e;Ct<Ge;++Ct)E[Ct]=At;_e=Ge-1}}for(var nt=0,wt=C;nt<T;++nt){var pt=E[nt];wt=="L"&&pt=="1"?E[nt]="L":o.test(pt)&&(wt=pt)}for(var ot=0;ot<T;++ot)if(i.test(E[ot])){var rt=void 0;for(rt=ot+1;rt<T&&i.test(E[rt]);++rt);for(var Ke=(ot?E[ot-1]:C)=="L",kt=(rt<T?E[rt]:C)=="L",Jn=Ke==kt?Ke?"L":"R":C,fn=ot;fn<rt;++fn)E[fn]=Jn;ot=rt-1}for(var gt=[],$t,ct=0;ct<T;)if(a.test(E[ct])){var No=ct;for(++ct;ct<T&&a.test(E[ct]);++ct);gt.push(new s(0,No,ct))}else{var Yt=ct,An=gt.length,Sn=b=="rtl"?1:0;for(++ct;ct<T&&E[ct]!="L";++ct);for(var xt=Yt;xt<ct;)if(l.test(E[xt])){Yt<xt&&(gt.splice(An,0,new s(1,Yt,xt)),An+=Sn);var Yn=xt;for(++xt;xt<ct&&l.test(E[xt]);++xt);gt.splice(An,0,new s(2,Yn,xt)),An+=Sn,Yt=xt}else++xt;Yt<ct&&gt.splice(An,0,new s(1,Yt,ct))}return b=="ltr"&&(gt[0].level==1&&($t=c.match(/^\s+/))&&(gt[0].from=$t[0].length,gt.unshift(new s(0,0,$t[0].length))),Me(gt).level==1&&($t=c.match(/\s+$/))&&(Me(gt).to-=$t[0].length,gt.push(new s(0,T-$t[0].length,T)))),b=="rtl"?gt.reverse():gt}})();function ue(e,t){var r=e.order;return r==null&&(r=e.order=De(e.text,t)),r}var re=[],ae=function(e,t,r){if(e.addEventListener)e.addEventListener(t,r,!1);else if(e.attachEvent)e.attachEvent("on"+t,r);else{var n=e._handlers||(e._handlers={});n[t]=(n[t]||re).concat(r)}};function Je(e,t){return e._handlers&&e._handlers[t]||re}function Ue(e,t,r){if(e.removeEventListener)e.removeEventListener(t,r,!1);else if(e.detachEvent)e.detachEvent("on"+t,r);else{var n=e._handlers,i=n&&n[t];if(i){var o=Ie(i,r);o>-1&&(n[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function Ae(e,t){var r=Je(e,t);if(r.length)for(var n=Array.prototype.slice.call(arguments,2),i=0;i<r.length;++i)r[i].apply(null,n)}function Be(e,t,r){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Ae(e,r||t.type,e,t),Ut(t)||t.codemirrorIgnore}function en(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var r=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),n=0;n<t.length;++n)Ie(r,t[n])==-1&&r.push(t[n])}function dt(e,t){return Je(e,t).length>0}function yt(e){e.prototype.on=function(t,r){ae(this,t,r)},e.prototype.off=function(t,r){Ue(this,t,r)}}function Ye(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function tn(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ut(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function pn(e){Ye(e),tn(e)}function Gt(e){return e.target||e.srcElement}function $o(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),j&&e.ctrlKey&&t==1&&(t=3),t}var as=(function(){if(x&&S<9)return!1;var e=L("div");return"draggable"in e||"dragDrop"in e})(),Mi;function ls(e){if(Mi==null){var t=L("span","​");be(e,L("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Mi=t.offsetWidth<=1&&t.offsetHeight>2&&!(x&&S<8))}var r=Mi?L("span","​"):L("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}var Bi;function ss(e){if(Bi!=null)return Bi;var t=be(e,document.createTextNode("AخA")),r=Z(t,0,1).getBoundingClientRect(),n=Z(t,1,2).getBoundingClientRect();return Le(e),!r||r.left==r.right?!1:Bi=n.right-r.right<3}var Oi=`
2
3b`.split(/\n/).length!=3?function(e){for(var t=0,r=[],n=e.length;t<=n;){var i=e.indexOf(`
4`,t);i==-1&&(i=e.length);var o=e.slice(t,e.charAt(i-1)=="\r"?i-1:i),a=o.indexOf("\r");a!=-1?(r.push(o.slice(0,a)),t+=a+1):(r.push(o),t=i+1)}return r}:function(e){return e.split(/\r\n?|\n/)},us=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},cs=(function(){var e=L("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")})(),Ni=null;function fs(e){if(Ni!=null)return Ni;var t=be(e,L("span","x")),r=t.getBoundingClientRect(),n=Z(t,0,1).getBoundingClientRect();return Ni=Math.abs(r.left-n.left)>1}var Ii={},Bn={};function hs(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ii[e]=t}function ds(e,t){Bn[e]=t}function Mr(e){if(typeof e=="string"&&Bn.hasOwnProperty(e))e=Bn[e];else if(e&&typeof e.name=="string"&&Bn.hasOwnProperty(e.name)){var t=Bn[e.name];typeof t=="string"&&(t={name:t}),e=B(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Mr("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Mr("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function zi(e,t){t=Mr(t);var r=Ii[t.name];if(!r)return zi(e,"text/plain");var n=r(e,t);if(On.hasOwnProperty(t.name)){var i=On[t.name];for(var o in i)i.hasOwnProperty(o)&&(n.hasOwnProperty(o)&&(n["_"+o]=n[o]),n[o]=i[o])}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)n[a]=t.modeProps[a];return n}var On={};function ps(e,t){var r=On.hasOwnProperty(e)?On[e]:On[e]={};ft(t,r)}function mn(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var r={};for(var n in t){var i=t[n];i instanceof Array&&(i=i.concat([])),r[n]=i}return r}function Hi(e,t){for(var r;e.innerMode&&(r=e.innerMode(t),!(!r||r.mode==e));)t=r.state,e=r.mode;return r||{mode:e,state:t}}function Uo(e,t,r){return e.startState?e.startState(t,r):!0}var tt=function(e,t,r){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=r};tt.prototype.eol=function(){return this.pos>=this.string.length},tt.prototype.sol=function(){return this.pos==this.lineStart},tt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},tt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},tt.prototype.eat=function(e){var t=this.string.charAt(this.pos),r;if(typeof e=="string"?r=t==e:r=t&&(e.test?e.test(t):e(t)),r)return++this.pos,t},tt.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},tt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},tt.prototype.skipToEnd=function(){this.pos=this.string.length},tt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},tt.prototype.backUp=function(e){this.pos-=e},tt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=$e(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?$e(this.string,this.lineStart,this.tabSize):0)},tt.prototype.indentation=function(){return $e(this.string,null,this.tabSize)-(this.lineStart?$e(this.string,this.lineStart,this.tabSize):0)},tt.prototype.match=function(e,t,r){if(typeof e=="string"){var n=function(a){return r?a.toLowerCase():a},i=this.string.substr(this.pos,e.length);if(n(i)==n(e))return t!==!1&&(this.pos+=e.length),!0}else{var o=this.string.slice(this.pos).match(e);return o&&o.index>0?null:(o&&t!==!1&&(this.pos+=o[0].length),o)}},tt.prototype.current=function(){return this.string.slice(this.start,this.pos)},tt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},tt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},tt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function ve(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var r=e;!r.lines;)for(var n=0;;++n){var i=r.children[n],o=i.chunkSize();if(t<o){r=i;break}t-=o}return r.lines[t]}function gn(e,t,r){var n=[],i=t.line;return e.iter(t.line,r.line+1,function(o){var a=o.text;i==r.line&&(a=a.slice(0,r.ch)),i==t.line&&(a=a.slice(t.ch)),n.push(a),++i}),n}function Pi(e,t,r){var n=[];return e.iter(t,r,function(i){n.push(i.text)}),n}function _t(e,t){var r=t-e.height;if(r)for(var n=e;n;n=n.parent)n.height+=r}function He(e){if(e.parent==null)return null;for(var t=e.parent,r=Ie(t.lines,e),n=t.parent;n;t=n,n=n.parent)for(var i=0;n.children[i]!=t;++i)r+=n.children[i].chunkSize();return r+t.first}function vn(e,t){var r=e.first;e:do{for(var n=0;n<e.children.length;++n){var i=e.children[n],o=i.height;if(t<o){e=i;continue e}t-=o,r+=i.chunkSize()}return r}while(!e.lines);for(var a=0;a<e.lines.length;++a){var l=e.lines[a],s=l.height;if(t<s)break;t-=s}return r+a}function tr(e,t){return t>=e.first&&t<e.first+e.size}function Ri(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function X(e,t,r){if(r===void 0&&(r=null),!(this instanceof X))return new X(e,t,r);this.line=e,this.ch=t,this.sticky=r}function ke(e,t){return e.line-t.line||e.ch-t.ch}function _i(e,t){return e.sticky==t.sticky&&ke(e,t)==0}function Wi(e){return X(e.line,e.ch)}function Br(e,t){return ke(e,t)<0?t:e}function Or(e,t){return ke(e,t)<0?e:t}function Go(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function Fe(e,t){if(t.line<e.first)return X(e.first,0);var r=e.first+e.size-1;return t.line>r?X(r,ve(e,r).text.length):ms(t,ve(e,t.line).text.length)}function ms(e,t){var r=e.ch;return r==null||r>t?X(e.line,t):r<0?X(e.line,0):e}function Vo(e,t){for(var r=[],n=0;n<t.length;n++)r[n]=Fe(e,t[n]);return r}var Nr=function(e,t){this.state=e,this.lookAhead=t},Wt=function(e,t,r,n){this.state=t,this.doc=e,this.line=r,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};Wt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Wt.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}},Wt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Wt.fromSaved=function(e,t,r){return t instanceof Nr?new Wt(e,mn(e.mode,t.state),r,t.lookAhead):new Wt(e,mn(e.mode,t),r)},Wt.prototype.save=function(e){var t=e!==!1?mn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Nr(t,this.maxLookAhead):t};function Ko(e,t,r,n){var i=[e.state.modeGen],o={};ea(e,t.text,e.doc.mode,r,function(c,b){return i.push(c,b)},o,n);for(var a=r.state,l=function(c){r.baseTokens=i;var b=e.state.overlays[c],C=1,T=0;r.state=!0,ea(e,t.text,b.mode,r,function(E,R){for(var G=C;T<E;){var Q=i[C];Q>E&&i.splice(C,1,E,i[C+1],Q),C+=2,T=Math.min(E,Q)}if(R)if(b.opaque)i.splice(G,C-G,E,"overlay "+R),C=G+2;else for(;G<C;G+=2){var ie=i[G+1];i[G+1]=(ie?ie+" ":"")+"overlay "+R}},o),r.state=a,r.baseTokens=null,r.baseTokenPos=1},s=0;s<e.state.overlays.length;++s)l(s);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function Zo(e,t,r){if(!t.styles||t.styles[0]!=e.state.modeGen){var n=nr(e,He(t)),i=t.text.length>e.options.maxHighlightLength&&mn(e.doc.mode,n.state),o=Ko(e,t,n);i&&(n.state=i),t.stateAfter=n.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),r===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function nr(e,t,r){var n=e.doc,i=e.display;if(!n.mode.startState)return new Wt(n,!0,t);var o=gs(e,t,r),a=o>n.first&&ve(n,o-1).stateAfter,l=a?Wt.fromSaved(n,a,o):new Wt(n,Uo(n.mode),o);return n.iter(o,t,function(s){ji(e,s.text,l);var c=l.line;s.stateAfter=c==t-1||c%5==0||c>=i.viewFrom&&c<i.viewTo?l.save():null,l.nextLine()}),r&&(n.modeFrontier=l.line),l}function ji(e,t,r,n){var i=e.doc.mode,o=new tt(t,e.options.tabSize,r);for(o.start=o.pos=n||0,t==""&&Xo(i,r.state);!o.eol();)qi(i,o,r.state),o.start=o.pos}function Xo(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var r=Hi(e,t);if(r.mode.blankLine)return r.mode.blankLine(r.state)}}function qi(e,t,r,n){for(var i=0;i<10;i++){n&&(n[0]=Hi(e,r).mode);var o=e.token(t,r);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}var Jo=function(e,t,r){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=r};function Yo(e,t,r,n){var i=e.doc,o=i.mode,a;t=Fe(i,t);var l=ve(i,t.line),s=nr(e,t.line,r),c=new tt(l.text,e.options.tabSize,s),b;for(n&&(b=[]);(n||c.pos<t.ch)&&!c.eol();)c.start=c.pos,a=qi(o,c,s.state),n&&b.push(new Jo(c,a,mn(i.mode,s.state)));return n?b:new Jo(c,a,s.state)}function Qo(e,t){if(e)for(;;){var r=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!r)break;e=e.slice(0,r.index)+e.slice(r.index+r[0].length);var n=r[1]?"bgClass":"textClass";t[n]==null?t[n]=r[2]:new RegExp("(?:^|\\s)"+r[2]+"(?:$|\\s)").test(t[n])||(t[n]+=" "+r[2])}return e}function ea(e,t,r,n,i,o,a){var l=r.flattenSpans;l==null&&(l=e.options.flattenSpans);var s=0,c=null,b=new tt(t,e.options.tabSize,n),C,T=e.options.addModeClass&&[null];for(t==""&&Qo(Xo(r,n.state),o);!b.eol();){if(b.pos>e.options.maxHighlightLength?(l=!1,a&&ji(e,t,n,b.pos),b.pos=t.length,C=null):C=Qo(qi(r,b,n.state,T),o),T){var E=T[0].name;E&&(C="m-"+(C?E+" "+C:E))}if(!l||c!=C){for(;s<b.start;)s=Math.min(b.start,s+5e3),i(s,c);c=C}b.start=b.pos}for(;s<b.pos;){var R=Math.min(b.pos,s+5e3);i(R,c),s=R}}function gs(e,t,r){for(var n,i,o=e.doc,a=r?-1:t-(e.doc.mode.innerMode?1e3:100),l=t;l>a;--l){if(l<=o.first)return o.first;var s=ve(o,l-1),c=s.stateAfter;if(c&&(!r||l+(c instanceof Nr?c.lookAhead:0)<=o.modeFrontier))return l;var b=$e(s.text,null,e.options.tabSize);(i==null||n>b)&&(i=l-1,n=b)}return i}function vs(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var r=e.first,n=t-1;n>r;n--){var i=ve(e,n).stateAfter;if(i&&(!(i instanceof Nr)||n+i.lookAhead<t)){r=n+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,r)}}var ta=!1,Vt=!1;function xs(){ta=!0}function ys(){Vt=!0}function Ir(e,t,r){this.marker=e,this.from=t,this.to=r}function rr(e,t){if(e)for(var r=0;r<e.length;++r){var n=e[r];if(n.marker==t)return n}}function bs(e,t){for(var r,n=0;n<e.length;++n)e[n]!=t&&(r||(r=[])).push(e[n]);return r}function Ds(e,t,r){var n=r&&window.WeakSet&&(r.markedSpans||(r.markedSpans=new WeakSet));n&&e.markedSpans&&n.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],n&&n.add(e.markedSpans)),t.marker.attachLine(e)}function Cs(e,t,r){var n;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker,l=o.from==null||(a.inclusiveLeft?o.from<=t:o.from<t);if(l||o.from==t&&a.type=="bookmark"&&(!r||!o.marker.insertLeft)){var s=o.to==null||(a.inclusiveRight?o.to>=t:o.to>t);(n||(n=[])).push(new Ir(a,o.from,s?null:o.to))}}return n}function ws(e,t,r){var n;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker,l=o.to==null||(a.inclusiveRight?o.to>=t:o.to>t);if(l||o.from==t&&a.type=="bookmark"&&(!r||o.marker.insertLeft)){var s=o.from==null||(a.inclusiveLeft?o.from<=t:o.from<t);(n||(n=[])).push(new Ir(a,s?null:o.from-t,o.to==null?null:o.to-t))}}return n}function $i(e,t){if(t.full)return null;var r=tr(e,t.from.line)&&ve(e,t.from.line).markedSpans,n=tr(e,t.to.line)&&ve(e,t.to.line).markedSpans;if(!r&&!n)return null;var i=t.from.ch,o=t.to.ch,a=ke(t.from,t.to)==0,l=Cs(r,i,a),s=ws(n,o,a),c=t.text.length==1,b=Me(t.text).length+(c?i:0);if(l)for(var C=0;C<l.length;++C){var T=l[C];if(T.to==null){var E=rr(s,T.marker);E?c&&(T.to=E.to==null?null:E.to+b):T.to=i}}if(s)for(var R=0;R<s.length;++R){var G=s[R];if(G.to!=null&&(G.to+=b),G.from==null){var Q=rr(l,G.marker);Q||(G.from=b,c&&(l||(l=[])).push(G))}else G.from+=b,c&&(l||(l=[])).push(G)}l&&(l=na(l)),s&&s!=l&&(s=na(s));var ie=[l];if(!c){var ce=t.text.length-2,oe;if(ce>0&&l)for(var de=0;de<l.length;++de)l[de].to==null&&(oe||(oe=[])).push(new Ir(l[de].marker,null,null));for(var we=0;we<ce;++we)ie.push(oe);ie.push(s)}return ie}function na(e){for(var t=0;t<e.length;++t){var r=e[t];r.from!=null&&r.from==r.to&&r.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function ks(e,t,r){var n=null;if(e.iter(t.line,r.line+1,function(E){if(E.markedSpans)for(var R=0;R<E.markedSpans.length;++R){var G=E.markedSpans[R].marker;G.readOnly&&(!n||Ie(n,G)==-1)&&(n||(n=[])).push(G)}}),!n)return null;for(var i=[{from:t,to:r}],o=0;o<n.length;++o)for(var a=n[o],l=a.find(0),s=0;s<i.length;++s){var c=i[s];if(!(ke(c.to,l.from)<0||ke(c.from,l.to)>0)){var b=[s,1],C=ke(c.from,l.from),T=ke(c.to,l.to);(C<0||!a.inclusiveLeft&&!C)&&b.push({from:c.from,to:l.from}),(T>0||!a.inclusiveRight&&!T)&&b.push({from:l.to,to:c.to}),i.splice.apply(i,b),s+=b.length-3}}return i}function ra(e){var t=e.markedSpans;if(t){for(var r=0;r<t.length;++r)t[r].marker.detachLine(e);e.markedSpans=null}}function ia(e,t){if(t){for(var r=0;r<t.length;++r)t[r].marker.attachLine(e);e.markedSpans=t}}function zr(e){return e.inclusiveLeft?-1:0}function Hr(e){return e.inclusiveRight?1:0}function Ui(e,t){var r=e.lines.length-t.lines.length;if(r!=0)return r;var n=e.find(),i=t.find(),o=ke(n.from,i.from)||zr(e)-zr(t);if(o)return-o;var a=ke(n.to,i.to)||Hr(e)-Hr(t);return a||t.id-e.id}function oa(e,t){var r=Vt&&e.markedSpans,n;if(r)for(var i=void 0,o=0;o<r.length;++o)i=r[o],i.marker.collapsed&&(t?i.from:i.to)==null&&(!n||Ui(n,i.marker)<0)&&(n=i.marker);return n}function aa(e){return oa(e,!0)}function Pr(e){return oa(e,!1)}function Fs(e,t){var r=Vt&&e.markedSpans,n;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(o.from==null||o.from<t)&&(o.to==null||o.to>t)&&(!n||Ui(n,o.marker)<0)&&(n=o.marker)}return n}function la(e,t,r,n,i){var o=ve(e,t),a=Vt&&o.markedSpans;if(a)for(var l=0;l<a.length;++l){var s=a[l];if(s.marker.collapsed){var c=s.marker.find(0),b=ke(c.from,r)||zr(s.marker)-zr(i),C=ke(c.to,n)||Hr(s.marker)-Hr(i);if(!(b>=0&&C<=0||b<=0&&C>=0)&&(b<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?ke(c.to,r)>=0:ke(c.to,r)>0)||b>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?ke(c.from,n)<=0:ke(c.from,n)<0)))return!0}}}function Ot(e){for(var t;t=aa(e);)e=t.find(-1,!0).line;return e}function As(e){for(var t;t=Pr(e);)e=t.find(1,!0).line;return e}function Ss(e){for(var t,r;t=Pr(e);)e=t.find(1,!0).line,(r||(r=[])).push(e);return r}function Gi(e,t){var r=ve(e,t),n=Ot(r);return r==n?t:He(n)}function sa(e,t){if(t>e.lastLine())return t;var r=ve(e,t),n;if(!nn(e,r))return t;for(;n=Pr(r);)r=n.find(1,!0).line;return He(r)+1}function nn(e,t){var r=Vt&&t.markedSpans;if(r){for(var n=void 0,i=0;i<r.length;++i)if(n=r[i],!!n.marker.collapsed&&(n.from==null||!n.marker.widgetNode&&n.from==0&&n.marker.inclusiveLeft&&Vi(e,t,n)))return!0}}function Vi(e,t,r){if(r.to==null){var n=r.marker.find(1,!0);return Vi(e,n.line,rr(n.line.markedSpans,r.marker))}if(r.marker.inclusiveRight&&r.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if(i=t.markedSpans[o],i.marker.collapsed&&!i.marker.widgetNode&&i.from==r.to&&(i.to==null||i.to!=r.from)&&(i.marker.inclusiveLeft||r.marker.inclusiveRight)&&Vi(e,t,i))return!0}function Kt(e){e=Ot(e);for(var t=0,r=e.parent,n=0;n<r.lines.length;++n){var i=r.lines[n];if(i==e)break;t+=i.height}for(var o=r.parent;o;r=o,o=r.parent)for(var a=0;a<o.children.length;++a){var l=o.children[a];if(l==r)break;t+=l.height}return t}function Rr(e){if(e.height==0)return 0;for(var t=e.text.length,r,n=e;r=aa(n);){var i=r.find(0,!0);n=i.from.line,t+=i.from.ch-i.to.ch}for(n=e;r=Pr(n);){var o=r.find(0,!0);t-=n.text.length-o.from.ch,n=o.to.line,t+=n.text.length-o.to.ch}return t}function Ki(e){var t=e.display,r=e.doc;t.maxLine=ve(r,r.first),t.maxLineLength=Rr(t.maxLine),t.maxLineChanged=!0,r.iter(function(n){var i=Rr(n);i>t.maxLineLength&&(t.maxLineLength=i,t.maxLine=n)})}var Nn=function(e,t,r){this.text=e,ia(this,t),this.height=r?r(this):1};Nn.prototype.lineNo=function(){return He(this)},yt(Nn);function Es(e,t,r,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),ra(e),ia(e,r);var i=n?n(e):1;i!=e.height&&_t(e,i)}function Ls(e){e.parent=null,ra(e)}var Ts={},Ms={};function ua(e,t){if(!e||/^\s*$/.test(e))return null;var r=t.addModeClass?Ms:Ts;return r[e]||(r[e]=e.replace(/\S+/g,"cm-$&"))}function ca(e,t){var r=Y("span",null,null,z?"padding-right: .1px":null),n={pre:Y("pre",[r],"CodeMirror-line"),content:r,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;n.pos=0,n.addToken=Os,ss(e.display.measure)&&(a=ue(o,e.doc.direction))&&(n.addToken=Is(n.addToken,a)),n.map=[];var l=t!=e.display.externalMeasured&&He(o);zs(o,n,Zo(e,o,l)),o.styleClasses&&(o.styleClasses.bgClass&&(n.bgClass=Ht(o.styleClasses.bgClass,n.bgClass||"")),o.styleClasses.textClass&&(n.textClass=Ht(o.styleClasses.textClass,n.textClass||""))),n.map.length==0&&n.map.push(0,0,n.content.appendChild(ls(e.display.measure))),i==0?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(z){var s=n.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return Ae(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=Ht(n.pre.className,n.textClass||"")),n}function Bs(e){var t=L("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Os(e,t,r,n,i,o,a){if(t){var l=e.splitSpaces?Ns(t,e.trailingSpace):t,s=e.cm.state.specialChars,c=!1,b;if(!s.test(t))e.col+=t.length,b=document.createTextNode(l),e.map.push(e.pos,e.pos+t.length,b),x&&S<9&&(c=!0),e.pos+=t.length;else{b=document.createDocumentFragment();for(var C=0;;){s.lastIndex=C;var T=s.exec(t),E=T?T.index-C:t.length-C;if(E){var R=document.createTextNode(l.slice(C,C+E));x&&S<9?b.appendChild(L("span",[R])):b.appendChild(R),e.map.push(e.pos,e.pos+E,R),e.col+=E,e.pos+=E}if(!T)break;C+=E+1;var G=void 0;if(T[0]=="	"){var Q=e.cm.options.tabSize,ie=Q-e.col%Q;G=b.appendChild(L("span",Pt(ie),"cm-tab")),G.setAttribute("role","presentation"),G.setAttribute("cm-text","	"),e.col+=ie}else T[0]=="\r"||T[0]==`
5`?(G=b.appendChild(L("span",T[0]=="\r"?"␍":"␤","cm-invalidchar")),G.setAttribute("cm-text",T[0]),e.col+=1):(G=e.cm.options.specialCharPlaceholder(T[0]),G.setAttribute("cm-text",T[0]),x&&S<9?b.appendChild(L("span",[G])):b.appendChild(G),e.col+=1);e.map.push(e.pos,e.pos+1,G),e.pos++}}if(e.trailingSpace=l.charCodeAt(t.length-1)==32,r||n||i||c||o||a){var ce=r||"";n&&(ce+=n),i&&(ce+=i);var oe=L("span",[b],ce,o);if(a)for(var de in a)a.hasOwnProperty(de)&&de!="style"&&de!="class"&&oe.setAttribute(de,a[de]);return e.content.appendChild(oe)}e.content.appendChild(b)}}function Ns(e,t){if(e.length>1&&!/  /.test(e))return e;for(var r=t,n="",i=0;i<e.length;i++){var o=e.charAt(i);o==" "&&r&&(i==e.length-1||e.charCodeAt(i+1)==32)&&(o=" "),n+=o,r=o==" "}return n}function Is(e,t){return function(r,n,i,o,a,l,s){i=i?i+" cm-force-border":"cm-force-border";for(var c=r.pos,b=c+n.length;;){for(var C=void 0,T=0;T<t.length&&(C=t[T],!(C.to>c&&C.from<=c));T++);if(C.to>=b)return e(r,n,i,o,a,l,s);e(r,n.slice(0,C.to-c),i,o,null,l,s),o=null,n=n.slice(C.to-c),c=C.to}}}function fa(e,t,r,n){var i=!n&&r.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!n&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",r.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function zs(e,t,r){var n=e.markedSpans,i=e.text,o=0;if(!n){for(var a=1;a<r.length;a+=2)t.addToken(t,i.slice(o,o=r[a]),ua(r[a+1],t.cm.options));return}for(var l=i.length,s=0,c=1,b="",C,T,E=0,R,G,Q,ie,ce;;){if(E==s){R=G=Q=T="",ce=null,ie=null,E=1/0;for(var oe=[],de=void 0,we=0;we<n.length;++we){var xe=n[we],Te=xe.marker;if(Te.type=="bookmark"&&xe.from==s&&Te.widgetNode)oe.push(Te);else if(xe.from<=s&&(xe.to==null||xe.to>s||Te.collapsed&&xe.to==s&&xe.from==s)){if(xe.to!=null&&xe.to!=s&&E>xe.to&&(E=xe.to,G=""),Te.className&&(R+=" "+Te.className),Te.css&&(T=(T?T+";":"")+Te.css),Te.startStyle&&xe.from==s&&(Q+=" "+Te.startStyle),Te.endStyle&&xe.to==E&&(de||(de=[])).push(Te.endStyle,xe.to),Te.title&&((ce||(ce={})).title=Te.title),Te.attributes)for(var _e in Te.attributes)(ce||(ce={}))[_e]=Te.attributes[_e];Te.collapsed&&(!ie||Ui(ie.marker,Te)<0)&&(ie=xe)}else xe.from>s&&E>xe.from&&(E=xe.from)}if(de)for(var ut=0;ut<de.length;ut+=2)de[ut+1]==E&&(G+=" "+de[ut]);if(!ie||ie.from==s)for(var Ge=0;Ge<oe.length;++Ge)fa(t,0,oe[Ge]);if(ie&&(ie.from||0)==s){if(fa(t,(ie.to==null?l+1:ie.to)-s,ie.marker,ie.from==null),ie.to==null)return;ie.to==s&&(ie=!1)}}if(s>=l)break;for(var At=Math.min(l,E);;){if(b){var Ct=s+b.length;if(!ie){var nt=Ct>At?b.slice(0,At-s):b;t.addToken(t,nt,C?C+R:R,Q,s+nt.length==E?G:"",T,ce)}if(Ct>=At){b=b.slice(At-s),s=At;break}s=Ct,Q=""}b=i.slice(o,o=r[c++]),C=ua(r[c++],t.cm.options)}}}function ha(e,t,r){this.line=t,this.rest=Ss(t),this.size=this.rest?He(Me(this.rest))-r+1:1,this.node=this.text=null,this.hidden=nn(e,t)}function _r(e,t,r){for(var n=[],i,o=t;o<r;o=i){var a=new ha(e.doc,ve(e.doc,o),o);i=o+a.size,n.push(a)}return n}var In=null;function Hs(e){In?In.ops.push(e):e.ownsGroup=In={ops:[e],delayedCallbacks:[]}}function Ps(e){var t=e.delayedCallbacks,r=0;do{for(;r<t.length;r++)t[r].call(null);for(var n=0;n<e.ops.length;n++){var i=e.ops[n];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(r<t.length)}function Rs(e,t){var r=e.ownsGroup;if(r)try{Ps(r)}finally{In=null,t(r)}}var ir=null;function at(e,t){var r=Je(e,t);if(r.length){var n=Array.prototype.slice.call(arguments,2),i;In?i=In.delayedCallbacks:ir?i=ir:(i=ir=[],setTimeout(_s,0));for(var o=function(l){i.push(function(){return r[l].apply(null,n)})},a=0;a<r.length;++a)o(a)}}function _s(){var e=ir;ir=null;for(var t=0;t<e.length;++t)e[t]()}function da(e,t,r,n){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];o=="text"?js(e,t):o=="gutter"?ma(e,t,r,n):o=="class"?Zi(e,t):o=="widget"&&qs(e,t,n)}t.changes=null}function or(e){return e.node==e.text&&(e.node=L("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),x&&S<8&&(e.node.style.zIndex=2)),e.node}function Ws(e,t){var r=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(r&&(r+=" CodeMirror-linebackground"),t.background)r?t.background.className=r:(t.background.parentNode.removeChild(t.background),t.background=null);else if(r){var n=or(t);t.background=n.insertBefore(L("div",null,r),n.firstChild),e.display.input.setUneditable(t.background)}}function pa(e,t){var r=e.display.externalMeasured;return r&&r.line==t.line?(e.display.externalMeasured=null,t.measure=r.measure,r.built):ca(e,t)}function js(e,t){var r=t.text.className,n=pa(e,t);t.text==t.node&&(t.node=n.pre),t.text.parentNode.replaceChild(n.pre,t.text),t.text=n.pre,n.bgClass!=t.bgClass||n.textClass!=t.textClass?(t.bgClass=n.bgClass,t.textClass=n.textClass,Zi(e,t)):r&&(t.text.className=r)}function Zi(e,t){Ws(e,t),t.line.wrapClass?or(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var r=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=r||""}function ma(e,t,r,n){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=or(t);t.gutterBackground=L("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px; width: "+n.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=or(t),l=t.gutter=L("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px");if(l.setAttribute("aria-hidden","true"),e.display.input.setUneditable(l),a.insertBefore(l,t.text),t.line.gutterClass&&(l.className+=" "+t.line.gutterClass),e.options.lineNumbers&&(!o||!o["CodeMirror-linenumbers"])&&(t.lineNumber=l.appendChild(L("div",Ri(e.options,r),"CodeMirror-linenumber C
5odeMirror-gutter-elt","left: "+n.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var s=0;s<e.display.gutterSpecs.length;++s){var c=e.display.gutterSpecs[s].className,b=o.hasOwnProperty(c)&&o[c];b&&l.appendChild(L("div",[b],"CodeMirror-gutter-elt","left: "+n.gutterLeft[c]+"px; width: "+n.gutterWidth[c]+"px"))}}}function qs(e,t,r){t.alignable&&(t.alignable=null);for(var n=te("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,n.test(i.className)&&t.node.removeChild(i);ga(e,t,r)}function $s(e,t,r,n){var i=pa(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),Zi(e,t),ma(e,t,r,n),ga(e,t,n),t.node}function ga(e,t,r){if(va(e,t.line,t,r,!0),t.rest)for(var n=0;n<t.rest.length;n++)va(e,t.rest[n],t,r,!1)}function va(e,t,r,n,i){if(t.widgets)for(var o=or(r),a=0,l=t.widgets;a<l.length;++a){var s=l[a],c=L("div",[s.node],"CodeMirror-linewidget"+(s.className?" "+s.className:""));s.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),Us(s,c,r,n),e.display.input.setUneditable(c),i&&s.above?o.insertBefore(c,r.gutter||r.text):o.appendChild(c),at(s,"redraw")}}function Us(e,t,r,n){if(e.noHScroll){(r.alignable||(r.alignable=[])).push(t);var i=n.wrapperWidth;t.style.left=n.fixedPos+"px",e.coverGutter||(i-=n.gutterTotalWidth,t.style.paddingLeft=n.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-n.gutterTotalWidth+"px"))}function ar(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!me(document.body,e.node)){var r="position: relative;";e.coverGutter&&(r+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(r+="width: "+t.display.wrapper.clientWidth+"px;"),be(t.display.measure,L("div",[e.node],null,r))}return e.height=e.node.parentNode.offsetHeight}function Zt(e,t){for(var r=Gt(t);r!=e.wrapper;r=r.parentNode)if(!r||r.nodeType==1&&r.getAttribute("cm-ignore-events")=="true"||r.parentNode==e.sizer&&r!=e.mover)return!0}function Wr(e){return e.lineSpace.offsetTop}function Xi(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function xa(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=be(e.measure,L("pre","x","CodeMirror-line-like")),r=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,n={left:parseInt(r.paddingLeft),right:parseInt(r.paddingRight)};return!isNaN(n.left)&&!isNaN(n.right)&&(e.cachedPaddingH=n),n}function jt(e){return Re-e.display.nativeBarWidth}function xn(e){return e.display.scroller.clientWidth-jt(e)-e.display.barWidth}function Ji(e){return e.display.scroller.clientHeight-jt(e)-e.display.barHeight}function Gs(e,t,r){var n=e.options.lineWrapping,i=n&&xn(e);if(!t.measure.heights||n&&t.measure.width!=i){var o=t.measure.heights=[];if(n){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),l=0;l<a.length-1;l++){var s=a[l],c=a[l+1];Math.abs(s.bottom-c.bottom)>2&&o.push((s.bottom+c.top)/2-r.top)}}o.push(r.bottom-r.top)}}function ya(e,t,r){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var n=0;n<e.rest.length;n++)if(e.rest[n]==t)return{map:e.measure.maps[n],cache:e.measure.caches[n]};for(var i=0;i<e.rest.length;i++)if(He(e.rest[i])>r)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function Vs(e,t){t=Ot(t);var r=He(t),n=e.display.externalMeasured=new ha(e.doc,t,r);n.lineN=r;var i=n.built=ca(e,n);return n.text=i.pre,be(e.display.lineMeasure,i.pre),n}function ba(e,t,r,n){return qt(e,zn(e,t),r,n)}function Yi(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Dn(e,t)];var r=e.display.externalMeasured;if(r&&t>=r.lineN&&t<r.lineN+r.size)return r}function zn(e,t){var r=He(t),n=Yi(e,r);n&&!n.text?n=null:n&&n.changes&&(da(e,n,r,ro(e)),e.curOp.forceUpdate=!0),n||(n=Vs(e,t));var i=ya(n,t,r);return{line:t,view:n,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function qt(e,t,r,n,i){t.before&&(r=-1);var o=r+(n||""),a;return t.cache.hasOwnProperty(o)?a=t.cache[o]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(Gs(e,t.view,t.rect),t.hasHeights=!0),a=Zs(e,t,r,n),a.bogus||(t.cache[o]=a)),{left:a.left,right:a.right,top:i?a.rtop:a.top,bottom:i?a.rbottom:a.bottom}}var Da={left:0,right:0,top:0,bottom:0};function Ca(e,t,r){for(var n,i,o,a,l,s,c=0;c<e.length;c+=3)if(l=e[c],s=e[c+1],t<l?(i=0,o=1,a="left"):t<s?(i=t-l,o=i+1):(c==e.length-3||t==s&&e[c+3]>t)&&(o=s-l,i=o-1,t>=s&&(a="right")),i!=null){if(n=e[c+2],l==s&&r==(n.insertLeft?"left"
vendor: 79,186 bytes, lines 5-11
5:"right")&&(a=r),r=="left"&&i==0)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)n=e[(c-=3)+2],a="left";if(r=="right"&&i==s-l)for(;c<e.length-3&&e[c+3]==e[c+4]&&!e[c+5].insertLeft;)n=e[(c+=3)+2],a="right";break}return{node:n,start:i,end:o,collapse:a,coverStart:l,coverEnd:s}}function Ks(e,t){var r=Da;if(t=="left")for(var n=0;n<e.length&&(r=e[n]).left==r.right;n++);else for(var i=e.length-1;i>=0&&(r=e[i]).left==r.right;i--);return r}function Zs(e,t,r,n){var i=Ca(t.map,r,n),o=i.node,a=i.start,l=i.end,s=i.collapse,c;if(o.nodeType==3){for(var b=0;b<4;b++){for(;a&&O(t.line.text.charAt(i.coverStart+a));)--a;for(;i.coverStart+l<i.coverEnd&&O(t.line.text.charAt(i.coverStart+l));)++l;if(x&&S<9&&a==0&&l==i.coverEnd-i.coverStart?c=o.parentNode.getBoundingClientRect():c=Ks(Z(o,a,l).getClientRects(),n),c.left||c.right||a==0)break;l=a,a=a-1,s="right"}x&&S<11&&(c=Xs(e.display.measure,c))}else{a>0&&(s=n="right");var C;e.options.lineWrapping&&(C=o.getClientRects()).length>1?c=C[n=="right"?C.length-1:0]:c=o.getBoundingClientRect()}if(x&&S<9&&!a&&(!c||!c.left&&!c.right)){var T=o.parentNode.getClientRects()[0];T?c={left:T.left,right:T.left+Pn(e.display),top:T.top,bottom:T.bottom}:c=Da}for(var E=c.top-t.rect.top,R=c.bottom-t.rect.top,G=(E+R)/2,Q=t.view.measure.heights,ie=0;ie<Q.length-1&&!(G<Q[ie]);ie++);var ce=ie?Q[ie-1]:0,oe=Q[ie],de={left:(s=="right"?c.right:c.left)-t.rect.left,right:(s=="left"?c.left:c.right)-t.rect.left,top:ce,bottom:oe};return!c.left&&!c.right&&(de.bogus=!0),e.options.singleCursorHeightPerLine||(de.rtop=E,de.rbottom=R),de}function Xs(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!fs(e))return t;var r=screen.logicalXDPI/screen.deviceXDPI,n=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*r,right:t.right*r,top:t.top*n,bottom:t.bottom*n}}function wa(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function ka(e){e.display.externalMeasure=null,Le(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)wa(e.display.view[t])}function lr(e){ka(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Fa(e){return M&&H?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function Aa(e){return M&&H?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function Qi(e){var t=Ot(e),r=t.widgets,n=0;if(r)for(var i=0;i<r.length;++i)r[i].above&&(n+=ar(r[i]));return n}function jr(e,t,r,n,i){if(!i){var o=Qi(t);r.top+=o,r.bottom+=o}if(n=="line")return r;n||(n="local");var a=Kt(t);if(n=="local"?a+=Wr(e.display):a-=e.display.viewOffset,n=="page"||n=="window"){var l=e.display.lineSpace.getBoundingClientRect();a+=l.top+(n=="window"?0:Aa(d(e)));var s=l.left+(n=="window"?0:Fa(d(e)));r.left+=s,r.right+=s}return r.top+=a,r.bottom+=a,r}function Sa(e,t,r){if(r=="div")return t;var n=t.left,i=t.top;if(r=="page")n-=Fa(d(e)),i-=Aa(d(e));else if(r=="local"||!r){var o=e.display.sizer.getBoundingClientRect();n+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:n-a.left,top:i-a.top}}function qr(e,t,r,n,i){return n||(n=ve(e.doc,t.line)),jr(e,n,ba(e,n,t.ch,i),r)}function Nt(e,t,r,n,i,o){n=n||ve(e.doc,t.line),i||(i=zn(e,n));function a(R,G){var Q=qt(e,i,R,G?"right":"left",o);return G?Q.left=Q.right:Q.right=Q.left,jr(e,n,Q,r)}var l=ue(n,e.doc.direction),s=t.ch,c=t.sticky;if(s>=n.text.length?(s=n.text.length,c="before"):s<=0&&(s=0,c="after"),!l)return a(c=="before"?s-1:s,c=="before");function b(R,G,Q){var ie=l[G],ce=ie.level==1;return a(Q?R-1:R,ce!=Q)}var C=Ce(l,s,c),T=ge,E=b(s,C,c=="before");return T!=null&&(E.other=b(s,T,c!="before")),E}function Ea(e,t){var r=0;t=Fe(e.doc,t),e.options.lineWrapping||(r=Pn(e.display)*t.ch);var n=ve(e.doc,t.line),i=Kt(n)+Wr(e.display);return{left:r,right:r,top:i,bottom:i+n.height}}function eo(e,t,r,n,i){var o=X(e,t,r);return o.xRel=i,n&&(o.outside=n),o}function to(e,t,r){var n=e.doc;if(r+=e.display.viewOffset,r<0)return eo(n.first,0,null,-1,-1);var i=vn(n,r),o=n.first+n.size-1;if(i>o)return eo(n.first+n.size-1,ve(n,o).text.length,null,1,1);t<0&&(t=0);for(var a=ve(n,i);;){var l=Js(e,a,i,t,r),s=Fs(a,l.ch+(l.xRel>0||l.outside>0?1:0));if(!s)return l;var c=s.find(1);if(c.line==i)return c;a=ve(n,i=c.line)}}function La(e,t,r,n){n-=Qi(t);var i=t.text.length,o=le(function(a){return qt(e,r,a-1).bottom<=n},i,0);return i=le(function(a){return qt(e,r,a).top>n},o,i),{begin:o,end:i}}function Ta(e,t,r,n){r||(r=zn(e,t));var i=jr(e,t,qt(e,r,n),"line").top;return La(e,t,r,i)}function no(e,t,r,n){return e.bottom<=r?!1:e.top>r?!0:(n?e.left:e.right)>t}function Js(e,t,r,n,i){i-=Kt(t);var o=zn(e,t),a=Qi(t),l=0,s=t.text.length,c=!0,b=ue(t,e.doc.direction);if(b){var C=(e.options.lineWrapping?Qs:Ys)(e,t,r,o,b,n,i);c=C.level!=1,l=c?C.from:C.to-1,s=c?C.to:C.from-1}var T=null,E=null,R=le(function(we){var xe=qt(e,o,we);return xe.top+=a,xe.bottom+=a,no(xe,n,i,!1)?(xe.top<=i&&xe.left<=n&&(T=we,E=xe),!0):!1},l,s),G,Q,ie=!1;if(E){var ce=n-E.left<E.right-n,oe=ce==c;R=T+(oe?0:1),Q=oe?"after":"before",G=ce?E.left:E.right}else{!c&&(R==s||R==l)&&R++,Q=R==0?"after":R==t.text.length?"before":qt(e,o,R-(c?1:0)).bottom+a<=i==c?"after":"before";var de=Nt(e,X(r,R,Q),"line",t,o);G=de.left,ie=i<de.top?-1:i>=de.bottom?1:0}return R=U(t.text,R,1),eo(r,R,Q,ie,n-G)}function Ys(e,t,r,n,i,o,a){var l=le(function(C){var T=i[C],E=T.level!=1;return no(Nt(e,X(r,E?T.to:T.from,E?"before":"after"),"line",t,n),o,a,!0)},0,i.length-1),s=i[l];if(l>0){var c=s.level!=1,b=Nt(e,X(r,c?s.from:s.to,c?"after":"before"),"line",t,n);no(b,o,a,!0)&&b.top>a&&(s=i[l-1])}return s}function Qs(e,t,r,n,i,o,a){var l=La(e,t,n,a),s=l.begin,c=l.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var b=null,C=null,T=0;T<i.length;T++){var E=i[T];if(!(E.from>=c||E.to<=s)){var R=E.level!=1,G=qt(e,n,R?Math.min(c,E.to)-1:Math.max(s,E.from)).right,Q=G<o?o-G+1e9:G-o;(!b||C>Q)&&(b=E,C=Q)}}return b||(b=i[i.length-1]),b.from<s&&(b={from:s,to:b.to,level:b.level}),b.to>c&&(b={from:b.from,to:c,level:b.level}),b}var yn;function Hn(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(yn==null){yn=L("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)yn.appendChild(document.createTextNode("x")),yn.appendChild(L("br"));yn.appendChild(document.createTextNode("x"))}be(e.measure,yn);var r=yn.offsetHeight/50;return r>3&&(e.cachedTextHeight=r),Le(e.measure),r||1}function Pn(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=L("span","xxxxxxxxxx"),r=L("pre",[t],"CodeMirror-line-like");be(e.measure,r);var n=t.getBoundingClientRect(),i=(n.right-n.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function ro(e){for(var t=e.display,r={},n={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var l=e.display.gutterSpecs[a].className;r[l]=o.offsetLeft+o.clientLeft+i,n[l]=o.clientWidth}return{fixedPos:io(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:r,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function io(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Ma(e){var t=Hn(e.display),r=e.options.lineWrapping,n=r&&Math.max(5,e.display.scroller.clientWidth/Pn(e.display)-3);return function(i){if(nn(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return r?o+(Math.ceil(i.text.length/n)||1)*t:o+t}}function oo(e){var t=e.doc,r=Ma(e);t.iter(function(n){var i=r(n);i!=n.height&&_t(n,i)})}function bn(e,t,r,n){var i=e.display;if(!r&&Gt(t).getAttribute("cm-not-content")=="true")return null;var o,a,l=i.lineSpace.getBoundingClientRect();try{o=t.clientX-l.left,a=t.clientY-l.top}catch{return null}var s=to(e,o,a),c;if(n&&s.xRel>0&&(c=ve(e.doc,s.line).text).length==s.ch){var b=$e(c,c.length,e.options.tabSize)-c.length;s=X(s.line,Math.max(0,Math.round((o-xa(e.display).left)/Pn(e.display))-b))}return s}function Dn(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var r=e.display.view,n=0;n<r.length;n++)if(t-=r[n].size,t<0)return n}function bt(e,t,r,n){t==null&&(t=e.doc.first),r==null&&(r=e.doc.first+e.doc.size),n||(n=0);var i=e.display;if(n&&r<i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Vt&&Gi(e.doc,t)<i.viewTo&&on(e);else if(r<=i.viewFrom)Vt&&sa(e.doc,r+n)>i.viewFrom?on(e):(i.viewFrom+=n,i.viewTo+=n);else if(t<=i.viewFrom&&r>=i.viewTo)on(e);else if(t<=i.viewFrom){var o=$r(e,r,r+n,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=n):on(e)}else if(r>=i.viewTo){var a=$r(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):on(e)}else{var l=$r(e,t,t,-1),s=$r(e,r,r+n,1);l&&s?(i.view=i.view.slice(0,l.index).concat(_r(e,l.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=n):on(e)}var c=i.externalMeasured;c&&(r<c.lineN?c.lineN+=n:t<c.lineN+c.size&&(i.externalMeasured=null))}function rn(e,t,r){e.curOp.viewChanged=!0;var n=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(n.externalMeasured=null),!(t<n.viewFrom||t>=n.viewTo)){var o=n.view[Dn(e,t)];if(o.node!=null){var a=o.changes||(o.changes=[]);Ie(a,r)==-1&&a.push(r)}}}function on(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function $r(e,t,r,n){var i=Dn(e,t),o,a=e.display.view;if(!Vt||r==e.doc.first+e.doc.size)return{index:i,lineN:r};for(var l=e.display.viewFrom,s=0;s<i;s++)l+=a[s].size;if(l!=t){if(n>0){if(i==a.length-1)return null;o=l+a[i].size-t,i++}else o=l-t;t+=o,r+=o}for(;Gi(e.doc,r)!=r;){if(i==(n<0?0:a.length-1))return null;r+=n*a[i-(n<0?1:0)].size,i+=n}return{index:i,lineN:r}}function eu(e,t,r){var n=e.display,i=n.view;i.length==0||t>=n.viewTo||r<=n.viewFrom?(n.view=_r(e,t,r),n.viewFrom=t):(n.viewFrom>t?n.view=_r(e,t,n.viewFrom).concat(n.view):n.viewFrom<t&&(n.view=n.view.slice(Dn(e,t))),n.viewFrom=t,n.viewTo<r?n.view=n.view.concat(_r(e,n.viewTo,r)):n.viewTo>r&&(n.view=n.view.slice(0,Dn(e,r)))),n.viewTo=r}function Ba(e){for(var t=e.display.view,r=0,n=0;n<t.length;n++){var i=t[n];!i.hidden&&(!i.node||i.changes)&&++r}return r}function sr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Oa(e,t){t===void 0&&(t=!0);var r=e.doc,n={},i=n.cursors=document.createDocumentFragment(),o=n.selection=document.createDocumentFragment(),a=e.options.$customCursor;a&&(t=!0);for(var l=0;l<r.sel.ranges.length;l++)if(!(!t&&l==r.sel.primIndex)){var s=r.sel.ranges[l];if(!(s.from().line>=e.display.viewTo||s.to().line<e.display.viewFrom)){var c=s.empty();if(a){var b=a(e,s);b&&ao(e,b,i)}else(c||e.options.showCursorWhenSelecting)&&ao(e,s.head,i);c||tu(e,s,o)}}return n}function ao(e,t,r){var n=Nt(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=r.appendChild(L("div"," ","CodeMirror-cursor"));if(i.style.left=n.left+"px",i.style.top=n.top+"px",i.style.height=Math.max(0,n.bottom-n.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var o=qr(e,t,"div",null,null),a=o.right-o.left;i.style.width=(a>0?a:e.defaultCharWidth())+"px"}if(n.other){var l=r.appendChild(L("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));l.style.display="",l.style.left=n.other.left+"px",l.style.top=n.other.top+"px",l.style.height=(n.other.bottom-n.other.top)*.85+"px"}}function Ur(e,t){return e.top-t.top||e.left-t.left}function tu(e,t,r){var n=e.display,i=e.doc,o=document.createDocumentFragment(),a=xa(e.display),l=a.left,s=Math.max(n.sizerWidth,xn(e)-n.sizer.offsetLeft)-a.right,c=i.direction=="ltr";function b(oe,de,we,xe){de<0&&(de=0),de=Math.round(de),xe=Math.round(xe),o.appendChild(L("div",null,"CodeMirror-selected","position: absolute; left: "+oe+`px;
6                             top: `+de+"px; width: "+(we??s-oe)+`px;
7                             height: `+(xe-de)+"px"))}function C(oe,de,we){var xe=ve(i,oe),Te=xe.text.length,_e,ut;function Ge(nt,wt){return qr(e,X(oe,nt),"div",xe,wt)}function At(nt,wt,pt){var ot=Ta(e,xe,null,nt),rt=wt=="ltr"==(pt=="after")?"left":"right",Ke=pt=="after"?ot.begin:ot.end-(/\s/.test(xe.text.charAt(ot.end-1))?2:1);return Ge(Ke,rt)[rt]}var Ct=ue(xe,i.direction);return fe(Ct,de||0,we??Te,function(nt,wt,pt,ot){var rt=pt=="ltr",Ke=Ge(nt,rt?"left":"right"),kt=Ge(wt-1,rt?"right":"left"),Jn=de==null&&nt==0,fn=we==null&&wt==Te,gt=ot==0,$t=!Ct||ot==Ct.length-1;if(kt.top-Ke.top<=3){var ct=(c?Jn:fn)&&gt,No=(c?fn:Jn)&&$t,Yt=ct?l:(rt?Ke:kt).left,An=No?s:(rt?kt:Ke).right;b(Yt,Ke.top,An-Yt,Ke.bottom)}else{var Sn,xt,Yn,Io;rt?(Sn=c&&Jn&&gt?l:Ke.left,xt=c?s:At(nt,pt,"before"),Yn=c?l:At(wt,pt,"after"),Io=c&&fn&&$t?s:kt.right):(Sn=c?At(nt,pt,"before"):l,xt=!c&&Jn&&gt?s:Ke.right,Yn=!c&&fn&&$t?l:kt.left,Io=c?At(wt,pt,"after"):s),b(Sn,Ke.top,xt-Sn,Ke.bottom),Ke.bottom<kt.top&&b(l,Ke.bottom,null,kt.top),b(Yn,kt.top,Io-Yn,kt.bottom)}(!_e||Ur(Ke,_e)<0)&&(_e=Ke),Ur(kt,_e)<0&&(_e=kt),(!ut||Ur(Ke,ut)<0)&&(ut=Ke),Ur(kt,ut)<0&&(ut=kt)}),{start:_e,end:ut}}var T=t.from(),E=t.to();if(T.line==E.line)C(T.line,T.ch,E.ch);else{var R=ve(i,T.line),G=ve(i,E.line),Q=Ot(R)==Ot(G),ie=C(T.line,T.ch,Q?R.text.length+1:null).end,ce=C(E.line,Q?0:null,E.ch).start;Q&&(ie.top<ce.top-2?(b(ie.right,ie.top,null,ie.bottom),b(l,ce.top,ce.left,ce.bottom)):b(ie.right,ie.top,ce.left-ie.right,ie.bottom)),ie.bottom<ce.top&&b(l,ie.bottom,null,ce.top)}r.appendChild(o)}function lo(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var r=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||Rn(e),t.cursorDiv.style.visibility=(r=!r)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Na(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||uo(e))}function so(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Rn(e))},100)}function uo(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Ae(e,"focus",e,t),e.state.focused=!0,et(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),z&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),lo(e))}function Rn(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Ae(e,"blur",e,t),e.state.focused=!1,Ee(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Gr(e){for(var t=e.display,r=t.lineDiv.offsetTop,n=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,a=0;a<t.view.length;a++){var l=t.view[a],s=e.options.lineWrapping,c=void 0,b=0;if(!l.hidden){if(i+=l.line.height,x&&S<8){var C=l.node.offsetTop+l.node.offsetHeight;c=C-r,r=C}else{var T=l.node.getBoundingClientRect();c=T.bottom-T.top,!s&&l.text.firstChild&&(b=l.text.firstChild.getBoundingClientRect().right-T.left-1)}var E=l.line.height-c;if((E>.005||E<-.005)&&(i<n&&(o-=E),_t(l.line,c),Ia(l.line),l.rest))for(var R=0;R<l.rest.length;R++)Ia(l.rest[R]);if(b>e.display.sizerWidth){var G=Math.ceil(b/Pn(e.display));G>e.display.maxLineLength&&(e.display.maxLineLength=G,e.display.maxLine=l.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function Ia(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var r=e.widgets[t],n=r.node.parentNode;n&&(r.height=n.offsetHeight)}}function Vr(e,t,r){var n=r&&r.top!=null?Math.max(0,r.top):e.scroller.scrollTop;n=Math.floor(n-Wr(e));var i=r&&r.bottom!=null?r.bottom:n+e.wrapper.clientHeight,o=vn(t,n),a=vn(t,i);if(r&&r.ensure){var l=r.ensure.from.line,s=r.ensure.to.line;l<o?(o=l,a=vn(t,Kt(ve(t,l))+e.wrapper.clientHeight)):Math.min(s,t.lastLine())>=a&&(o=vn(t,Kt(ve(t,s))-e.wrapper.clientHeight),a=s)}return{from:o,to:Math.max(a,o+1)}}function nu(e,t){if(!Be(e,"scrollCursorIntoView")){var r=e.display,n=r.sizer.getBoundingClientRect(),i=null,o=r.wrapper.ownerDocument;if(t.top+n.top<0?i=!0:t.bottom+n.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),i!=null&&!K){var a=L("div","​",null,`position: absolute;
8                         top: `+(t.top-r.viewOffset-Wr(e.display))+`px;
9                         height: `+(t.bottom-t.top+jt(e)+r.barHeight)+`px;
10                         left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(i),e.display.lineSpace.removeChild(a)}}}function ru(e,t,r,n){n==null&&(n=0);var i;!e.options.lineWrapping&&t==r&&(r=t.sticky=="before"?X(t.line,t.ch+1,"before"):t,t=t.ch?X(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,l=Nt(e,t),s=!r||r==t?l:Nt(e,r);i={left:Math.min(l.left,s.left),top:Math.min(l.top,s.top)-n,right:Math.max(l.left,s.left),bottom:Math.max(l.bottom,s.bottom)+n};var c=co(e,i),b=e.doc.scrollTop,C=e.doc.scrollLeft;if(c.scrollTop!=null&&(cr(e,c.scrollTop),Math.abs(e.doc.scrollTop-b)>1&&(a=!0)),c.scrollLeft!=null&&(Cn(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-C)>1&&(a=!0)),!a)break}return i}function iu(e,t){var r=co(e,t);r.scrollTop!=null&&cr(e,r.scrollTop),r.scrollLeft!=null&&Cn(e,r.scrollLeft)}function co(e,t){var r=e.display,n=Hn(e.display);t.top<0&&(t.top=0);var i=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:r.scroller.scrollTop,o=Ji(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var l=e.doc.height+Xi(r),s=t.top<n,c=t.bottom>l-n;if(t.top<i)a.scrollTop=s?0:t.top;else if(t.bottom>i+o){var b=Math.min(t.top,(c?l:t.bottom)-o);b!=i&&(a.scrollTop=b)}var C=e.options.fixedGutter?0:r.gutters.offsetWidth,T=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:r.scroller.scrollLeft-C,E=xn(e)-r.gutters.offsetWidth,R=t.right-t.left>E;return R&&(t.right=t.left+E),t.left<10?a.scrollLeft=0:t.left<T?a.scrollLeft=Math.max(0,t.left+C-(R?0:10)):t.right>E+T-3&&(a.scrollLeft=t.right+(R?0:10)-E),a}function fo(e,t){t!=null&&(Kr(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function _n(e){Kr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function ur(e,t,r){(t!=null||r!=null)&&Kr(e),t!=null&&(e.curOp.scrollLeft=t),r!=null&&(e.curOp.scrollTop=r)}function ou(e,t){Kr(e),e.curOp.scrollToPos=t}function Kr(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var r=Ea(e,t.from),n=Ea(e,t.to);za(e,r,n,t.margin)}}function za(e,t,r,n){var i=co(e,{left:Math.min(t.left,r.left),top:Math.min(t.top,r.top)-n,right:Math.max(t.right,r.right),bottom:Math.max(t.bottom,r.bottom)+n});ur(e,i.scrollLeft,i.scrollTop)}function cr(e,t){Math.abs(e.doc.scrollTop-t)<2||(g||po(e,{top:t}),Ha(e,t,!0),g&&po(e),dr(e,100))}function Ha(e,t,r){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!r)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Cn(e,t,r,n){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((r?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n)&&(e.doc.scrollLeft=t,ja(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function fr(e){var t=e.display,r=t.gutters.offsetWidth,n=Math.round(e.doc.height+Xi(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?r:0,docHeight:n,scrollHeight:n+jt(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:r}}var wn=function(e,t,r){this.cm=r;var n=this.vert=L("div",[L("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=L("div",[L("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=i.tabIndex=-1,e(n),e(i),ae(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),ae(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,x&&S<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};wn.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(r){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var i=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=r?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(r?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(n==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:r?n:0,bottom:t?n:0}},wn.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},wn.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},wn.prototype.zeroWidthHack=function(){var e=j&&!J?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new it,this.disableVert=new it},wn.prototype.enableZeroWidthBar=function(e,t,r){e.style.visibility="";function n(){var i=e.getBoundingClientRect(),o=r=="vert"?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1);o!=e?e.style.visibility="hidden":t.set(1e3,n)}t.set(1e3,n)},wn.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var hr=function(){};hr.prototype.update=function(){return{bottom:0,right:0}},hr.prototype.setScrollLeft=function(){},hr.prototype.setScrollTop=function(){},hr.prototype.clear=function(){};function Wn(e,t){t||(t=fr(e));var r=e.display.barWidth,n=e.display.barHeight;Pa(e,t);for(var i=0;i<4&&r!=e.display.barWidth||n!=e.display.barHeight;i++)r!=e.display.barWidth&&e.options.lineWrapping&&Gr(e),Pa(e,fr(e)),r=e.display.barWidth,n=e.display.barHeight}function Pa(e,t){var r=e.display,n=r.scrollbars.update(t);r.sizer.style.paddingRight=(r.barWidth=n.right)+"px",r.sizer.style.paddingBottom=(r.barHeight=n.bottom)+"px",r.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(r.scrollbarFiller.style.display="block",r.scrollbarFiller.style.height=n.bottom+"px",r.scrollbarFiller.style.width=n.right+"px"):r.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(r.gutterFiller.style.display="block",r.gutterFiller.style.height=n.bottom+"px",r.gutterFiller.style.width=t.gutterWidth+"px"):r.gutterFiller.style.display=""}var Ra={native:wn,null:hr};function _a(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&Ee(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Ra[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ae(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,r){r=="horizontal"?Cn(e,t):cr(e,t)},e),e.display.scrollbars.addClass&&et(e.display.wrapper,e.display.scrollbars.addClass)}var au=0;function kn(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:++au,markArrays:null},Hs(e.curOp)}function Fn(e){var t=e.curOp;t&&Rs(t,function(r){for(var n=0;n<r.ops.length;n++)r.ops[n].cm.curOp=null;lu(r)})}function lu(e){for(var t=e.ops,r=0;r<t.length;r++)su(t[r]);for(var n=0;n<t.length;n++)uu(t[n]);for(var i=0;i<t.length;i++)cu(t[i]);for(var o=0;o<t.length;o++)fu(t[o]);for(var a=0;a<t.length;a++)hu(t[a])}function su(e){var t=e.cm,r=t.display;pu(t),e.updateMaxLine&&Ki(t),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<r.viewFrom||e.scrollToPos.to.line>=r.viewTo)||r.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Zr(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function uu(e){e.updatedDisplay=e.mustUpdate&&ho(e.cm,e.update)}function cu(e){var t=e.cm,r=t.display;e.updatedDisplay&&Gr(t),e.barMeasure=fr(t),r.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=ba(t,r.maxLine,r.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(r.scroller.clientWidth,r.sizer.offsetLeft+e.adjustWidthTo+jt(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+e.adjustWidthTo-xn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=r.input.prepareSelection())}function fu(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Cn(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var r=e.focus&&e.focus==Oe(W(t));e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,r),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Wn(t,e.barMeasure),e.updatedDisplay&&go(t,e.barMeasure),e.selectionChanged&&lo(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),r&&Na(e.cm)}function hu(e){var t=e.cm,r=t.display,n=t.doc;if(e.updatedDisplay&&Wa(t,e.update),r.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(r.wheelStartX=r.wheelStartY=null),e.scrollTop!=null&&Ha(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Cn(t,e.scrollLeft,!0,!0),e.scrollToPos){var i=ru(t,Fe(n,e.scrollToPos.from),Fe(n,e.scrollToPos.to),e.scrollToPos.margin);nu(t,i)}var o=e.maybeHiddenMarkers,a=e.maybeUnhiddenMarkers;if(o)for(var l=0;l<o.length;++l)o[l].lines.length||Ae(o[l],"hide");if(a)for(var s=0;s<a.length;++s)a[s].lines.length&&Ae(a[s],"unhide");r.wrapper.offsetHeight&&(n.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&Ae(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Ft(e,t){if(e.curOp)return t();kn(e);try{return t()}finally{Fn(e)}}function lt(e,t){return function(){if(e.curOp)return t.apply(e,arguments);kn(e);try{return t.apply(e,arguments)}finally{Fn(e)}}}function vt(e){return function(){if(this.curOp)return e.apply(this,arguments);kn(this);try{return e.apply(this,arguments)}finally{Fn(this)}}}function st(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);kn(t);try{return e.apply(this,arguments)}finally{Fn(t)}}}function dr(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,Ze(du,e))}function du(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var r=+new Date+e.options.workTime,n=nr(e,t.highlightFrontier),i=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(n.line>=e.display.viewFrom){var a=o.styles,l=o.text.length>e.options.maxHighlightLength?mn(t.mode,n.state):null,s=Ko(e,o,n,!0);l&&(n.state=l),o.styles=s.styles;var c=o.styleClasses,b=s.classes;b?o.styleClasses=b:c&&(o.styleClasses=null);for(var C=!a||a.length!=o.styles.length||c!=b&&(!c||!b||c.bgClass!=b.bgClass||c.textClass!=b.textClass),T=0;!C&&T<a.length;++T)C=a[T]!=o.styles[T];C&&i.push(n.line),o.stateAfter=n.save(),n.nextLine()}else o.text.length<=e.options.maxHighlightLength&&ji(e,o.text,n),o.stateAfter=n.line%5==0?n.save():null,n.nextLine();if(+new Date>r)return dr(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),i.length&&Ft(e,function(){for(var o=0;o<i.length;o++)rn(e,i[o],"text")})}}var Zr=function(e,t,r){var n=e.display;this.viewport=t,this.visible=Vr(n,e.doc,t),this.editorIsHidden=!n.wrapper.offsetWidth,this.wrapperHeight=n.wrapper.clientHeight,this.wrapperWidth=n.wrapper.clientWidth,this.oldDisplayWidth=xn(e),this.force=r,this.dims=ro(e),this.events=[]};Zr.prototype.signal=function(e,t){dt(e,t)&&this.events.push(arguments)},Zr.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Ae.apply(null,this.events[e])};function pu(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=jt(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=jt(e)+"px",t.scrollbarsClipped=!0)}function mu(e){if(e.hasFocus())return null;var t=Oe(W(e));if(!t||!me(e.display.lineDiv,t))return null;var r={activeElt:t};if(window.getSelection){var n=Se(e).getSelection();n.anchorNode&&n.extend&&me(e.display.lineDiv,n.anchorNode)&&(r.anchorNode=n.anchorNode,r.anchorOffset=n.anchorOffset,r.focusNode=n.focusNode,r.focusOffset=n.focusOffset)}return r}function gu(e){if(!(!e||!e.activeElt||e.activeElt==Oe(Ne(e.activeElt)))&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&me(document.body,e.anchorNode)&&me(document.body,e.focusNode))){var t=e.activeElt.ownerDocument,r=t.defaultView.getSelection(),n=t.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),r.removeAllRanges(),r.addRange(n),r.extend(e.focusNode,e.focusOffset)}}function ho(e,t){var r=e.display,n=e.doc;if(t.editorIsHidden)return on(e),!1;if(!t.force&&t.visible.from>=r.viewFrom&&t.visible.to<=r.viewTo&&(r.updateLineNumbers==null||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&Ba(e)==0)return!1;qa(e)&&(on(e),t.dims=ro(e));var i=n.first+n.size,o=Math.max(t.visible.from-e.options.viewportMargin,n.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);r.viewFrom<o&&o-r.viewFrom<20&&(o=Math.max(n.first,r.viewFrom)),r.viewTo>a&&r.viewTo-a<20&&(a=Math.min(i,r.viewTo)),Vt&&(o=Gi(e.doc,o),a=sa(e.doc,a));var l=o!=r.viewFrom||a!=r.viewTo||r.lastWrapHeight!=t.wrapperHeight||r.lastWrapWidth!=t.wrapperWidth;eu(e,o,a),r.viewOffset=Kt(ve(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var s=Ba(e);if(!l&&s==0&&!t.force&&r.renderedView==r.view&&(r.updateLineNumbers==null||r.updateLineNumbers>=r.viewTo))return!1;var c=mu(e);return s>4&&(r.lineDiv.style.display="none"),vu(e,r.updateLineNumbers,t.dims),s>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,gu(c),Le(r.cursorDiv),Le(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,l&&(r.lastWrapHeight=t.wrapperHeight,r.lastWrapWidth=t.wrapperWidth,dr(e,400)),r.updateLineNumbers=null,!0}function Wa(e,t){for(var r=t.viewport,n=!0;;n=!1){if(!n||!e.options.lineWrapping||t.oldDisplayWidth==xn(e)){if(r&&r.top!=null&&(r={top:Math.min(e.doc.height+Xi(e.display)-Ji(e),r.top)}),t.visible=Vr(e.display,e.doc,r),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else n&&(t.visible=Vr(e.display,e.doc,r));if(!ho(e,t))break;Gr(e);var i=fr(e);sr(e),Wn(e,i),go(e,i),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function po(e,t){var r=new Zr(e,t);if(ho(e,r)){Gr(e),Wa(e,r);var n=fr(e);sr(e),Wn(e,n),go(e,n),r.finish()}}function vu(e,t,r){var n=e.display,i=e.options.lineNumbers,o=n.lineDiv,a=o.firstChild;function l(R){var G=R.nextSibling;return z&&j&&e.display.currentWheelTarget==R?R.style.display="none":R.parentNode.removeChild(R),G}for(var s=n.view,c=n.viewFrom,b=0;b<s.length;b++){var C=s[b];if(!C.hidden)if(!C.node||C.node.parentNode!=o){var T=$s(e,C,c,r);o.insertBefore(T,a)}else{for(;a!=C.node;)a=l(a);var E=i&&t!=null&&t<=c&&C.lineNumber;C.changes&&(Ie(C.changes,"gutter")>-1&&(E=!1),da(e,C,c,r)),E&&(Le(C.lineNumber),C.lineNumber.appendChild(document.createTextNode(Ri(e.options,c)))),a=C.node.nextSibling}c+=C.size}for(;a;)a=l(a)}function mo(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",at(e,"gutterChanged",e)}function go(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+jt(e)+"px"}function ja(e){var t=e.display,r=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var n=io(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=n+"px",a=0;a<r.length;a++)if(!r[a].hidden){e.options.fixedGutter&&(r[a].gutter&&(r[a].gutter.style.left=o),r[a].gutterBackground&&(r[a].gutterBackground.style.left=o));var l=r[a].alignable;if(l)for(var s=0;s<l.length;s++)l[s].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=n+i+"px")}}function qa(e){if(!e.options.lineNumbers)return!1;var t=e.doc,r=Ri(e.options,t.first+t.size-1),n=e.display;if(r.length!=n.lineNumChars){var i=n.measure.appendChild(L("div",[L("div",r)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return n.lineGutter.style.width="",n.lineNumInnerWidth=Math.max(o,n.lineGutter.offsetWidth-a)+1,n.lineNumWidth=n.lineNumInnerWidth+a,n.lineNumChars=n.lineNumInnerWidth?r.length:-1,n.lineGutter.style.width=n.lineNumWidth+"px",mo(e.display),!0}return!1}function vo(e,t){for(var r=[],n=!1,i=0;i<e.length;i++){var o=e[i],a=null;if(typeof o!="string"&&(a=o.style,o=o.className),o=="CodeMirror-linenumbers")if(t)n=!0;else continue;r.push({className:o,style:a})}return t&&!n&&r.push({className:"CodeMirror-linenumbers",style:null}),r}function $a(e){var t=e.gutters,r=e.gutterSpecs;Le(t),e.lineGutter=null;for(var n=0;n<r.length;++n){var i=r[n],o=i.className,a=i.style,l=t.appendChild(L("div",null,"CodeMirror-gutter "+o));a&&(l.style.cssText=a),o=="CodeMirror-linenumbers"&&(e.lineGutter=l,l.style.width=(e.lineNumWidth||1)+"px")}t.style.display=r.length?"":"none",mo(e)}function pr(e){$a(e.display),bt(e),ja(e)}function xu(e,t,r,n){var i=this;this.input=r,i.scrollbarFiller=L("div",null,"CodeMirror-scrollbar-filler"),i.scrollbarFiller.setAttribute("cm-not-content","true"),i.gutterFiller=L("div",null,"CodeMirror-gutter-filler"),i.gutterFiller.setAttribute("cm-not-content","true"),i.lineDiv=Y("div",null,"CodeMirror-code"),i.selectionDiv=L("div",null,null,"position: relative; z-index: 1"),i.cursorDiv=L("div",null,"CodeMirror-cursors"),i.measure=L("div",null,"CodeMirror-measure"),i.lineMeasure=L("div",null,"CodeMirror-measure"),i.lineSpace=Y("div",[i.measure,i.lineMeasure,i.selectionDiv,i.cursorDiv,i.lineDiv],null,"position: relative; outline: none");var o=Y("div",[i.lineSpace],"CodeMirror-lines");i.mover=L("div",[o],null,"position: relative"),i.sizer=L("div",[i.mover],"CodeMirror-sizer"),i.sizerWidth=null,i.heightForcer=L("div",null,null,"position: absolute; height: "+Re+"px; width: 1px;"),i.gutters=L("div",null,"CodeMirror-gutters"),i.lineGutter=null,i.scroller=L("div",[i.sizer,i.heightForcer,i.gutters],"CodeMirror-scroll"),i.scroller.setAttribute("tabIndex","-1"),i.wrapper=L("div",[i.scrollbarFiller,i.gutterFiller,i.scroller],"CodeMirror"),M&&q>=105&&(i.wrapper.style.clipPath="inset(0px)"),i.wrapper.setAttribute("translate","no"),x&&S<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),!z&&!(g&&_)&&(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,i.gutterSpecs=vo(n.gutters,n.lineNumbers),$a(i),r.init(i)}var Xr=0,Xt=null;x?Xt=-.53:g?Xt=15:M?Xt=-.7:ne&&(Xt=-1/3);function Ua(e){var t=e.wheelDeltaX,r=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),r==null&&e.detail&&e.axis==e.VERTICAL_AXIS?r=e.detail:r==null&&(r=e.wheelDelta),{x:t,y:r}}function yu(e){var t=Ua(e);return t.x*=Xt,t.y*=Xt,t}function Ga(e,t){M&&q==102&&(e.display.chromeScrollHack==null?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var r=Ua(t),n=r.x,i=r.y,o=Xt;t.deltaMode===0&&(n=t.deltaX,i=t.deltaY,o=1);var a=e.display,l=a.scroller,s=l.scrollWidth>l.clientWidth,c=l.scrollHeight>l.clientHeight;if(n&&s||i&&c){if(i&&j&&z){e:for(var b=t.target,C=a.view;b!=l;b=b.parentNode)for(var T=0;T<C.length;T++)if(C[T].node==b){e.display.currentWheelTarget=b;break e}}if(n&&!g&&!$&&o!=null){i&&c&&cr(e,Math.max(0,l.scrollTop+i*o)),Cn(e,Math.max(0,l.scrollLeft+n*o)),(!i||i&&c)&&Ye(t),a.wheelStartX=null;return}if(i&&o!=null){var E=i*o,R=e.doc.scrollTop,G=R+a.wrapper.clientHeight;E<0?R=Math.max(0,R+E-50):G=Math.min(e.doc.height,G+E+50),po(e,{top:R,bottom:G})}Xr<20&&t.deltaMode!==0&&(a.wheelStartX==null?(a.wheelStartX=l.scrollLeft,a.wheelStartY=l.scrollTop,a.wheelDX=n,a.wheelDY=i,setTimeout(function(){if(a.wheelStartX!=null){var Q=l.scrollLeft-a.wheelStartX,ie=l.scrollTop-a.wheelStartY,ce=ie&&a.wheelDY&&ie/a.wheelDY||Q&&a.wheelDX&&Q/a.wheelDX;a.wheelStartX=a.wheelStartY=null,ce&&(Xt=(Xt*Xr+ce)/(Xr+1),++Xr)}},200)):(a.wheelDX+=n,a.wheelDY+=i))}}var Lt=function(e,t){this.ranges=e,this.primIndex=t};Lt.prototype.primary=function(){return this.ranges[this.primIndex]},Lt.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var r=this.ranges[t],n=e.ranges[t];if(!_i(r.anchor,n.anchor)||!_i(r.head,n.head))return!1}return!0},Lt.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new ze(Wi(this.ranges[t].anchor),Wi(this.ranges[t].head));return new Lt(e,this.primIndex)},Lt.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Lt.prototype.contains=function(e,t){t||(t=e);for(var r=0;r<this.ranges.length;r++){var n=this.ranges[r];if(ke(t,n.from())>=0&&ke(e,n.to())<=0)return r}return-1};var ze=function(e,t){this.anchor=e,this.head=t};ze.prototype.from=function(){return Or(this.anchor,this.head)},ze.prototype.to=function(){return Br(this.anchor,this.head)},ze.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function It(e,t,r){var n=e&&e.options.selectionsMayTouch,i=t[r];t.sort(function(T,E){return ke(T.from(),E.from())}),r=Ie(t,i);for(var o=1;o<t.length;o++){var a=t[o],l=t[o-1],s=ke(l.to(),a.from());if(n&&!a.empty()?s>0:s>=0){var c=Or(l.from(),a.from()),b=Br(l.to(),a.to()),C=l.empty()?a.from()==a.head:l.from()==l.head;o<=r&&--r,t.splice(--o,2,new ze(C?b:c,C?c:b))}}return new Lt(t,r)}function an(e,t){return new Lt([new ze(e,t||e)],0)}function ln(e){return e.text?X(e.from.line+e.text.length-1,Me(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Va(e,t){if(ke(e,t.from)<0)return e;if(ke(e,t.to)<=0)return ln(t);var r=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=ln(t).ch-t.to.ch),X(r,n)}function xo(e,t){for(var r=[],n=0;n<e.sel.ranges.length;n++){var i=e.sel.ranges[n];r.push(new ze(Va(i.anchor,t),Va(i.head,t)))}return It(e.cm,r,e.sel.primIndex)}function Ka(e,t,r){return e.line==t.line?X(r.line,e.ch-t.ch+r.ch):X(r.line+(e.line-t.line),e.ch)}function bu(e,t,r){for(var n=[],i=X(e.first,0),o=i,a=0;a<t.length;a++){var l=t[a],s=Ka(l.from,i,o),c=Ka(ln(l),i,o);if(i=l.to,o=c,r=="around"){var b=e.sel.ranges[a],C=ke(b.head,b.anchor)<0;n[a]=new ze(C?c:s,C?s:c)}else n[a]=new ze(s,s)}return new Lt(n,e.sel.primIndex)}function yo(e){e.doc.mode=zi(e.options,e.doc.modeOption),mr(e)}function mr(e){e.doc.iter(function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,dr(e,100),e.state.modeGen++,e.curOp&&bt(e)}function Za(e,t){return t.from.ch==0&&t.to.ch==0&&Me(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function bo(e,t,r,n){function i(ce){return r?r[ce]:null}function o(ce,oe,de){Es(ce,oe,de,n),at(ce,"change",ce,t)}function a(ce,oe){for(var de=[],we=ce;we<oe;++we)de.push(new Nn(c[we],i(we),n));return de}var l=t.from,s=t.to,c=t.text,b=ve(e,l.line),C=ve(e,s.line),T=Me(c),E=i(c.length-1),R=s.line-l.line;if(t.full)e.insert(0,a(0,c.length)),e.remove(c.length,e.size-c.length);else if(Za(e,t)){var G=a(0,c.length-1);o(C,C.text,E),R&&e.remove(l.line,R),G.length&&e.insert(l.line,G)}else if(b==C)if(c.length==1)o(b,b.text.slice(0,l.ch)+T+b.text.slice(s.ch),E);else{var Q=a(1,c.length-1);Q.push(new Nn(T+b.text.slice(s.ch),E,n)),o(b,b.text.slice(0,l.ch)+c[0],i(0)),e.insert(l.line+1,Q)}else if(c.length==1)o(b,b.text.slice(0,l.ch)+c[0]+C.text.slice(s.ch),i(0)),e.remove(l.line+1,R);else{o(b,b.text.slice(0,l.ch)+c[0],i(0)),o(C,T+C.text.slice(s.ch),E);var ie=a(1,c.length-1);R>1&&e.remove(l.line+1,R-1),e.insert(l.line+1,ie)}at(e,"change",e,t)}function sn(e,t,r){function n(i,o,a){if(i.linked)for(var l=0;l<i.linked.length;++l){var s=i.linked[l];if(s.doc!=o){var c=a&&s.sharedHist;r&&!c||(t(s.doc,c),n(s.doc,i,c))}}}n(e,null,!0)}function Xa(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,oo(e),yo(e),Ja(e),e.options.direction=t.direction,e.options.lineWrapping||Ki(e),e.options.mode=t.modeOption,bt(e)}function Ja(e){(e.doc.direction=="rtl"?et:Ee)(e.display.lineDiv,"CodeMirror-rtl")}function Du(e){Ft(e,function(){Ja(e),bt(e)})}function Jr(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function Do(e,t){var r={from:Wi(t.from),to:ln(t),text:gn(e,t.from,t.to)};return el(e,r,t.from.line,t.to.line+1),sn(e,function(n){return el(n,r,t.from.line,t.to.line+1)},!0),r}function Ya(e){for(;e.length;){var t=Me(e);if(t.ranges)e.pop();else break}}function Cu(e,t){if(t)return Ya(e.done),Me(e.done);if(e.done.length&&!Me(e.done).ranges)return Me(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Me(e.done)}function Qa(e,t,r,n){var i=e.history;i.undone.length=0;var o=+new Date,a,l;if((i.lastOp==n||i.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&i.lastModTime>o-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(a=Cu(i,i.lastOp==n)))l=Me(a.changes),ke(t.from,t.to)==0&&ke(t.from,l.to)==0?l.to=ln(t):a.changes.push(Do(e,t));else{var s=Me(i.done);for((!s||!s.ranges)&&Yr(e.sel,i.done),a={changes:[Do(e,t)],generation:i.generation},i.done.push(a);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(r),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=o,i.lastOp=i.lastSelOp=n,i.lastOrigin=i.lastSelOrigin=t.origin,l||Ae(e,"historyAdded")}function wu(e,t,r,n){var i=t.charAt(0);return i=="*"||i=="+"&&r.ranges.length==n.ranges.length&&r.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function ku(e,t,r,n){var i=e.history,o=n&&n.origin;r==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||wu(e,o,Me(i.done),t))?i.done[i.done.length-1]=t:Yr(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=r,n&&n.clearRedo!==!1&&Ya(i.undone)}function Yr(e,t){var r=Me(t);r&&r.ranges&&r.equals(e)||t.push(e)}function el(e,t,r,n){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,r),Math.min(e.first+e.size,n),function(a){a.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=a.markedSpans),++o})}function Fu(e){if(!e)return null;for(var t,r=0;r<e.length;++r)e[r].marker.explicitlyCleared?t||(t=e.slice(0,r)):t&&t.push(e[r]);return t?t.length?t:null:e}function Au(e,t){var r=t["spans_"+e.id];if(!r)return null;for(var n=[],i=0;i<t.text.length;++i)n.push(Fu(r[i]));return n}function tl(e,t){var r=Au(e,t),n=$i(e,t);if(!r)return n;if(!n)return r;for(var i=0;i<r.length;++i){var o=r[i],a=n[i];if(o&&a)e:for(var l=0;l<a.length;++l){for(var s=a[l],c=0;c<o.length;++c)if(o[c].marker==s.marker)continue e;o.push(s)}else a&&(r[i]=a)}return r}function jn(e,t,r){for(var n=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges){n.push(r?Lt.prototype.deepCopy.call(o):o);continue}var a=o.changes,l=[];n.push({changes:l});for(var s=0;s<a.length;++s){var c=a[s],b=void 0;if(l.push({from:c.from,to:c.to,text:c.text}),t)for(var C in c)(b=C.match(/^spans_(\d+)$/))&&Ie(t,Number(b[1]))>-1&&(Me(l)[C]=c[C],delete c[C])}}return n}function Co(e,t,r,n){if(n){var i=e.anchor;if(r){var o=ke(t,i)<0;o!=ke(r,i)<0?(i=t,t=r):o!=ke(t,r)<0&&(t=r)}return new ze(i,t)}else return new ze(r||t,t)}function Qr(e,t,r,n,i){i==null&&(i=e.cm&&(e.cm.display.shift||e.extend)),mt(e,new Lt([Co(e.sel.primary(),t,r,i)],0),n)}function nl(e,t,r){for(var n=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)n[o]=Co(e.sel.ranges[o],t[o],null,i);var a=It(e.cm,n,e.sel.primIndex);mt(e,a,r)}function wo(e,t,r,n){var i=e.sel.ranges.slice(0);i[t]=r,mt(e,It(e.cm,i,e.sel.primIndex),n)}function rl(e,t,r,n){mt(e,an(t,r),n)}function Su(e,t,r){var n={ranges:t.ranges,update:function(i){this.ranges=[];for(var o=0;o<i.length;o++)this.ranges[o]=new ze(Fe(e,i[o].anchor),Fe(e,i[o].head))},origin:r&&r.origin};return Ae(e,"beforeSelectionChange",e,n),e.cm&&Ae(e.cm,"beforeSelectionChange",e.cm,n),n.ranges!=t.ranges?It(e.cm,n.ranges,n.ranges.length-1):t}function il(e,t,r){var n=e.history.done,i=Me(n);i&&i.ranges?(n[n.length-1]=t,ei(e,t,r)):mt(e,t,r)}function mt(e,t,r){ei(e,t,r),ku(e,e.sel,e.cm?e.cm.curOp.id:NaN,r)}function ei(e,t,r){(dt(e,"beforeSelectionChange")||e.cm&&dt(e.cm,"beforeSelectionChange"))&&(t=Su(e,t,r));var n=r&&r.bias||(ke(t.primary().head,e.sel.primary().head)<0?-1:1);ol(e,ll(e,t,n,!0)),!(r&&r.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&_n(e.cm)}function ol(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,en(e.cm)),at(e,"cursorActivity",e))}function al(e){ol(e,ll(e,e.sel,null,!1))}function ll(e,t,r,n){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],l=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],s=ti(e,a.anchor,l&&l.anchor,r,n),c=a.head==a.anchor?s:ti(e,a.head,l&&l.head,r,n);(i||s!=a.anchor||c!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new ze(s,c))}return i?It(e.cm,i,t.primIndex):t}function qn(e,t,r,n,i){var o=ve(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var l=o.markedSpans[a],s=l.marker,c="selectLeft"in s?!s.selectLeft:s.inclusiveLeft,b="selectRight"in s?!s.selectRight:s.inclusiveRight;if((l.from==null||(c?l.from<=t.ch:l.from<t.ch))&&(l.to==null||(b?l.to>=t.ch:l.to>t.ch))){if(i&&(Ae(s,"beforeCursorEnter"),s.explicitlyCleared))if(o.markedSpans){--a;continue}else break;if(!s.atomic)continue;if(r){var C=s.find(n<0?1:-1),T=void 0;if((n<0?b:c)&&(C=sl(e,C,-n,C&&C.line==t.line?o:null)),C&&C.line==t.line&&(T=ke(C,r))&&(n<0?T<0:T>0))return qn(e,C,t,n,i)}var E=s.find(n<0?-1:1);return(n<0?c:b)&&(E=sl(e,E,n,E.line==t.line?o:null)),E?qn(e,E,t,n,i):null}}return t}function ti(e,t,r,n,i){var o=n||1,a=qn(e,t,r,o,i)||!i&&qn(e,t,r,o,!0)||qn(e,t,r,-o,i)||!i&&qn(e,t,r,-o,!0);return a||(e.cantEdit=!0,X(e.first,0))}function sl(e,t,r,n){return r<0&&t.ch==0?t.line>e.first?Fe(e,X(t.line-1)):null:r>0&&t.ch==(n||ve(e,t.line)).text.length?t.line<e.first+e.size-1?X(t.line+1,0):null:new X(t.line,t.ch+r)}function ul(e){e.setSelection(X(e.firstLine(),0),X(e.lastLine()),ht)}function cl(e,t,r){var n={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return n.canceled=!0}};return r&&(n.update=function(i,o,a,l){i&&(n.from=Fe(e,i)),o&&(n.to=Fe(e,o)),a&&(n.text=a),l!==void 0&&(n.origin=l)}),Ae(e,"beforeChange",e,n),e.cm&&Ae(e.cm,"beforeChange",e.cm,n),n.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:n.from,to:n.to,text:n.text,origin:n.origin}}function $n(e,t,r){if(e.cm){if(!e.cm.curOp)return lt(e.cm,$n)(e,t,r);if(e.cm.state.suppressEdits)return}if(!((dt(e,"beforeChange")||e.cm&&dt(e.cm,"beforeChange"))&&(t=cl(e,t,!0),!t))){var n=ta&&!r&&ks(e,t.from,t.to);if(n)for(var i=n.length-1;i>=0;--i)fl(e,{from:n[i].from,to:n[i].to,text:i?[""]:t.text,origin:t.origin});else fl(e,t)}}function fl(e,t){if(!(t.text.length==1&&t.text[0]==""&&ke(t.from,t.to)==0)){var r=xo(e,t);Qa(e,t,r,e.cm?e.cm.curOp.id:NaN),gr(e,t,r,$i(e,t));var n=[];sn(e,function(i,o){!o&&Ie(n,i.history)==-1&&(ml(i.history,t),n.push(i.history)),gr(i,t,null,$i(i,t))})}}function ni(e,t,r){var n=e.cm&&e.cm.state.suppressEdits;if(!(n&&!r)){for(var i=e.history,o,a=e.sel,l=t=="undo"?i.done:i.undone,s=t=="undo"?i.undone:i.done,c=0;c<l.length&&(o=l[c],!(r?o.ranges&&!o.equals(e.sel):!o.ranges));c++);if(c!=l.length){for(i.lastOrigin=i.lastSelOrigin=null;;)if(o=l.pop(),o.ranges){if(Yr(o,s),r&&!o.equals(e.sel)){mt(e,o,{clearRedo:!1});return}a=o}else if(n){l.push(o);return}else break;var b=[];Yr(a,s),s.push({changes:b,generation:i.generation}),i.generation=o.generation||++i.maxGeneration;for(var C=dt(e,"beforeChange")||e.cm&&dt(e.cm,"beforeChange"),T=function(G){var Q=o.changes[G];if(Q.origin=t,C&&!cl(e,Q,!1))return l.length=0,{};b.push(Do(e,Q));var ie=G?xo(e,Q):Me(l);gr(e,Q,ie,tl(e,Q)),!G&&e.cm&&e.cm.scrollIntoView({from:Q.from,to:ln(Q)});var ce=[];sn(e,function(oe,de){!de&&Ie(ce,oe.history)==-1&&(ml(oe.history,Q),ce.push(oe.history)),gr(oe,Q,null,tl(oe,Q))})},E=o.changes.length-1;E>=0;--E){var R=T(E);if(R)return R.v}}}}function hl(e,t){if(t!=0&&(e.first+=t,e.sel=new Lt(Et(e.sel.ranges,function(i){return new ze(X(i.anchor.line+t,i.anchor.ch),X(i.head.line+t,i.head.ch))}),e.sel.primIndex),e.cm)){bt(e.cm,e.first,e.first-t,t);for(var r=e.cm.display,n=r.viewFrom;n<r.viewTo;n++)rn(e.cm,n,"gutter")}}function gr(e,t,r,n){if(e.cm&&!e.cm.curOp)return lt(e.cm,gr)(e,t,r,n);if(t.to.line<e.first){hl(e,t.text.length-1-(t.to.line-t.from.line));return}if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);hl(e,i),t={from:X(e.first,0),to:X(t.to.line+i,t.to.ch),text:[Me(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:X(o,ve(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=gn(e,t.from,t.to),r||(r=xo(e,t)),e.cm?Eu(e.cm,t,n):bo(e,t,n),ei(e,r,ht),e.cantEdit&&ti(e,X(e.firstLine(),0))&&(e.cantEdit=!1)}}function Eu(e,t,r){var n=e.doc,i=e.display,o=t.from,a=t.to,l=!1,s=o.line;e.options.lineWrapping||(s=He(Ot(ve(n,o.line))),n.iter(s,a.line+1,function(E){if(E==i.maxLine)return l=!0,!0})),n.sel.contains(t.from,t.to)>-1&&en(e),bo(n,t,r,Ma(e)),e.options.lineWrapping||(n.iter(s,o.line+t.text.length,function(E){var R=Rr(E);R>i.maxLineLength&&(i.maxLine=E,i.maxLineLength=R,i.maxLineChanged=!0,l=!1)}),l&&(e.curOp.updateMaxLine=!0)),vs(n,o.line),dr(e,400);var c=t.text.length-(a.line-o.line)-1;t.full?bt(e):o.line==a.line&&t.text.length==1&&!Za(e.doc,t)?rn(e,o.line,"text"):bt(e,o.line,a.line+1,c);var b=dt(e,"changes"),C=dt(e,"change");if(C||b){var T={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};C&&at(e,"change",e,T),b&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(T)}e.display.selForContextMenu=null}function Un(e,t,r,n,i){var o;n||(n=r),ke(n,r)<0&&(o=[n,r],r=o[0],n=o[1]),typeof t=="string"&&(t=e.splitLines(t)),$n(e,{from:r,to:n,text:t,origin:i})}function dl(e,t,r,n){r<e.line?e.line+=n:t<e.line&&(e.line=t,e.ch=0)}function pl(e,t,r,n){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||(o=e[i]=o.deepCopy(),o.copied=!0);for(var l=0;l<o.ranges.length;l++)dl(o.ranges[l].anchor,t,r,n),dl(o.ranges[l].head,t,r,n);continue}for(var s=0;s<o.changes.length;++s){var c=o.changes[s];if(r<c.from.line)c.from=X(c.from.line+n,c.from.ch),c.to=X(c.to.line+n,c.to.ch);else if(t<=c.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}function ml(e,t){var r=t.from.line,n=t.to.line,i=t.text.length-(n-r)-1;pl(e.done,r,n,i),pl(e.undone,r,n,i)}function vr(e,t,r,n){var i=t,o=t;return typeof t=="number"?o=ve(e,Go(e,t)):i=He(t),i==null?null:(n(o,i)&&e.cm&&rn(e.cm,i,r),o)}function xr(e){this.lines=e,this.parent=null;for(var t=0,r=0;r<e.length;++r)e[r].parent=this,t+=e[r].height;this.height=t}xr.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var r=e,n=e+t;r<n;++r){var i=this.lines[r];this.height-=i.height,Ls(i),at(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,r){this.height+=r,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var n=0;n<t.length;++n)t[n].parent=this},iterN:function(e,t,r){for(var n=e+t;e<n;++e)if(r(this.lines[e]))return!0}};function yr(e){this.children=e;for(var t=0,r=0,n=0;n<e.length;++n){var i=e[n];t+=i.chunkSize(),r+=i.height,i.parent=this}this.size=t,this.height=r,this.parent=null}yr.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var r=0;r<this.children.length;++r){var n=this.children[r],i=n.chunkSize();if(e<i){var o=Math.min(t,i-e),a=n.height;if(n.removeInner(e,o),this.height-=a-n.height,i==o&&(this.children.splice(r--,1),n.parent=null),(t-=o)==0)break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof xr))){var l=[];this.collapse(l),this.children=[new xr(l)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,r){this.size+=t.length,this.height+=r;for(var n=0;n<this.children.length;++n){var i=this.children[n],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,r),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,l=a;l<i.lines.length;){var s=new xr(i.lines.slice(l,l+=25));i.height-=s.height,this.children.splice(++n,0,s),s.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),r=new yr(t);if(e.parent){e.size-=r.size,e.height-=r.height;var n=Ie(e.parent.children,e);e.parent.children.splice(n+1,0,r)}else{var i=new yr(e.children);i.parent=e,e.children=[i,r],e=i}r.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,r){for(var n=0;n<this.children.length;++n){var i=this.children[n],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,r))return!0;if((t-=a)==0)break;e=0}else e-=o}}};var br=function(e,t,r){if(r)for(var n in r)r.hasOwnProperty(n)&&(this[n]=r[n]);this.doc=e,this.node=t};br.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,r=this.line,n=He(r);if(!(n==null||!t)){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(r.widgets=null);var o=ar(this);_t(r,Math.max(0,r.height-o)),e&&(Ft(e,function(){gl(e,r,-o),rn(e,n,"widget")}),at(e,"lineWidgetCleared",e,this,n))}},br.prototype.changed=function(){var e=this,t=this.height,r=this.doc.cm,n=this.line;this.height=null;var i=ar(this)-t;i&&(nn(this.doc,n)||_t(n,n.height+i),r&&Ft(r,function(){r.curOp.forceUpdate=!0,gl(r,n,i),at(r,"lineWidgetChanged",r,e,He(n))}))},yt(br);function gl(e,t,r){Kt(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&fo(e,r)}function Lu(e,t,r,n){var i=new br(e,r,n),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),vr(e,t,"widget",function(a){var l=a.widgets||(a.widgets=[]);if(i.insertAt==null?l.push(i):l.splice(Math.min(l.length,Math.max(0,i.insertAt)),0,i),i.line=a,o&&!nn(e,a)){var s=Kt(a)<e.scrollTop;_t(a,a.height+ar(i)),s&&fo(o,i.height),o.curOp.forceUpdate=!0}return!0}),o&&at(o,"lineWidgetAdded",o,i,typeof t=="number"?t:He(t)),i}var vl=0,un=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++vl};un.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&kn(e),dt(this,"clear")){var r=this.find();r&&at(this,"clear",r.from,r.to)}for(var n=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],l=rr(a.markedSpans,this);e&&!this.collapsed?rn(e,He(a),"text"):e&&(l.to!=null&&(i=He(a)),l.from!=null&&(n=He(a))),a.markedSpans=bs(a.markedSpans,l),l.from==null&&this.collapsed&&!nn(this.doc,a)&&e&&_t(a,Hn(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var s=0;s<this.lines.length;++s){var c=Ot(this.lines[s]),b=Rr(c);b>e.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=b,e.display.maxLineChanged=!0)}n!=null&&e&&this.collapsed&&bt(e,n,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&al(e.doc)),e&&at(e,"markerCleared",e,this,n,i),t&&Fn(e),this.parent&&this.parent.clear()}},un.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var r,n,i=0;i<this.lines.length;++i){var o=this.lines[i],a=rr(o.markedSpans,this);if(a.from!=null&&(r=X(t?o:He(o),a.from),e==-1))return r;if(a.to!=null&&(n=X(t?o:He(o),a.to),e==1))return n}return r&&{from:r,to:n}},un.prototype.changed=function(){var e=this,t=this.find(-1,!0),r=this,n=this.doc.cm;!t||!n||Ft(n,function(){var i=t.line,o=He(t.line),a=Yi(n,o);if(a&&(wa(a),n.curOp.selectionChanged=n.curOp.forceUpdate=!0),n.curOp.updateMaxLine=!0,!nn(r.doc,i)&&r.height!=null){var l=r.height;r.height=null;var s=ar(r)-l;s&&_t(i,i.height+s)}at(n,"markerChanged",n,e)})},un.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(!t.maybeHiddenMarkers||Ie(t.maybeHiddenMarkers,this)==-1)&&(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},un.prototype.detachLine=function(e){if(this.lines.splice(Ie(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},yt(un);function Gn(e,t,r,n,i){if(n&&n.shared)return Tu(e,t,r,n,i);if(e.cm&&!e.cm.curOp)return lt(e.cm,Gn)(e,t,r,n,i);var o=new un(e,i),a=ke(t,r);if(n&&ft(n,o,!1),a>0||a==0&&o.clearWhenEmpty!==!1)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=Y("span",[o.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(la(e,t.line,t,r,o)||t.line!=r.line&&la(e,r.line,t,r,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");ys()}o.addToHistory&&Qa(e,{from:t,to:r,origin:"markText"},e.sel,NaN);var l=t.line,s=e.cm,c;if(e.iter(l,r.line+1,function(C){s&&o.collapsed&&!s.options.lineWrapping&&Ot(C)==s.display.maxLine&&(c=!0),o.collapsed&&l!=t.line&&_t(C,0),Ds(C,new Ir(o,l==t.line?t.ch:null,l==r.line?r.ch:null),e.cm&&e.cm.curOp),++l}),o.collapsed&&e.iter(t.line,r.line+1,function(C){nn(e,C)&&_t(C,0)}),o.clearOnEnter&&ae(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(xs(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++vl,o.atomic=!0),s){if(c&&(s.curOp.updateMaxLine=!0),o.collapsed)bt(s,t.line,r.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var b=t.line;b<=r.line;b++)rn(s,b,"text");o.atomic&&al(s.doc),at(s,"markerAdded",s,o)}return o}var Dr=function(e,t){this.markers=e,this.primary=t;for(var r=0;r<e.length;++r)e[r].parent=this};Dr.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();at(this,"clear")}},Dr.prototype.find=function(e,t){return this.primary.find(e,t)},yt(Dr);function Tu(e,t,r,n,i){n=ft(n),n.shared=!1;var o=[Gn(e,t,r,n,i)],a=o[0],l=n.widgetNode;return sn(e,function(s){l&&(n.widgetNode=l.cloneNode(!0)),o.push(Gn(s,Fe(s,t),Fe(s,r),n,i));for(var c=0;c<s.linked.length;++c)if(s.linked[c].isParent)return;a=Me(o)}),new Dr(o,a)}function xl(e){return e.findMarks(X(e.first,0),e.clipPos(X(e.lastLine())),function(t){return t.parent})}function Mu(e,t){for(var r=0;r<t.length;r++){var n=t[r],i=n.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(ke(o,a)){var l=Gn(e,o,a,n.primary,n.primary.type);n.markers.push(l),l.parent=n}}}function Bu(e){for(var t=function(n){var i=e[n],o=[i.primary.doc];sn(i.primary.doc,function(s){return o.push(s)});for(var a=0;a<i.markers.length;a++){var l=i.markers[a];Ie(o,l.doc)==-1&&(l.parent=null,i.markers.splice(a--,1))}},r=0;r<e.length;r++)t(r)}var Ou=0,Dt=function(e,t,r,n,i){if(!(this instanceof Dt))return new Dt(e,t,r,n,i);r==null&&(r=0),yr.call(this,[new xr([new Nn("",null)])]),this.first=r,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=r;var o=X(r,0);this.sel=an(o),this.history=new Jr(null),this.id=++Ou,this.modeOption=t,this.lineSep=n,this.direction=i=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),bo(this,{from:o,to:o,text:e}),mt(this,an(o),ht)};Dt.prototype=B(yr.prototype,{constructor:Dt,iter:function(e,t,r){r?this.iterN(e-this.first,t-e,r):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var r=0,n=0;n<t.length;++n)r+=t[n].height;this.insertInner(e-this.first,t,r)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Pi(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:st(function(e){var t=X(this.first,0),r=this.first+this.size-1;$n(this,{from:t,to:X(r,ve(this,r).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&ur(this.cm,0,0),mt(this,an(t),ht)}),replaceRange:function(e,t,r,n){t=Fe(this,t),r=r?Fe(this,r):t,Un(this,e,t,r,n)},getRange:function(e,t,r){var n=gn(this,Fe(this,e),Fe(this,t));return r===!1?n:r===""?n.join(""):n.join(r||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(tr(this,e))return ve(this,e)},getLineNumber:function(e){return He(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=ve(this,e)),Ot(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return Fe(this,e)},getCursor:function(e){var t=this.sel.primary(),r;return e==null||e=="head"?r=t.head:e=="anchor"?r=t.anchor:e=="end"||e=="to"||e===!1?r=t.to():r=t.from(),r},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:st(function(e,t,r){rl(this,Fe(this,typeof e=="number"?X(e,t||0):e),null,r)}),setSelection:st(function(e,t,r){rl(this,Fe(this,e),Fe(this,t||e),r)}),extendSelection:st(function(e,t,r){Qr(this,Fe(this,e),t&&Fe(this,t),r)}),extendSelections:st(function(e,t){nl(this,Vo(this,e),t)}),extendSelectionsBy:st(function(e,t){var r=Et(this.sel.ranges,e);nl(this,Vo(this,r),t)}),setSelections:st(function(e,t,r){if(e.length){for(var n=[],i=0;i<e.length;i++)n[i]=new ze(Fe(this,e[i].anchor),Fe(this,e[i].head||e[i].anchor));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),mt(this,It(this.cm,n,t),r)}}),addSelection:st(function(e,t,r){var n=this.sel.ranges.slice(0);n.push(new ze(Fe(this,e),Fe(this,t||e))),mt(this,It(this.cm,n,n.length-1),r)}),getSelection:function(e){for(var t=this.sel.ranges,r,n=0;n<t.length;n++){var i=gn(this,t[n].from(),t[n].to());r=r?r.concat(i):i}return e===!1?r:r.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],r=this.sel.ranges,n=0;n<r.length;n++){var i=gn(this,r[n].from(),r[n].to());e!==!1&&(i=i.join(e||this.lineSeparator())),t[n]=i}return t},replaceSelection:function(e,t,r){for(var n=[],i=0;i<this.sel.ranges.length;i++)n[i]=e;this.replaceSelections(n,t,r||"+input")},replaceSelections:st(function(e,t,r){for(var n=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];n[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:r}}for(var l=t&&t!="end"&&bu(this,n,t),s=n.length-1;s>=0;s--)$n(this,n[s]);l?il(this,l):this.cm&&_n(this.cm)}),undo:st(function(){ni(this,"undo")}),redo:st(function(){ni(this,"redo")}),undoSelection:st(function(){ni(this,"undo",!0)}),redoSelection:st(function(){ni(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,r=0,n=0;n<e.done.length;n++)e.done[n].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++r;return{undo:t,redo:r}},clearHistory:function(){var e=this;this.history=new Jr(this.history),sn(this,function(t){return t.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:jn(this.history.done),undone:jn(this.history.undone)}},setHistory:function(e){var t=this.history=new Jr(this.history);t.done=jn(e.done.slice(0),null,!0),t.undone=jn(e.undone.slice(0),null,!0)},setGutterMarker:st(function(e,t,r){return vr(this,e,"gutter",function(n){var i=n.gutterMarkers||(n.gutterMarkers={});return i[t]=r,!r&&k(i)&&(n.gutterMarkers=null),!0})}),clearGutter:st(function(e){var t=this;this.iter(function(r){r.gutterMarkers&&r.gutterMarkers[e]&&vr(t,r,"gutter",function(){return r.gutterMarkers[e]=null,k(r.gutterMarkers)&&(r.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!tr(this,e)||(t=e,e=ve(this,e),!e))return null}else if(t=He(e),t==null)return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:st(function(e,t,r){return vr(this,e,t=="gutter"?"gutter":"class",function(n){var i=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass";if(!n[i])n[i]=r;else{if(te(r).test(n[i]))return!1;n[i]+=" "+r}return!0})}),removeLineClass:st(function(e,t,r){return vr(this,e,t=="gutter"?"gutter":"class",function(n){var i=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",o=n[i];if(o)if(r==null)n[i]=null;else{var a=o.match(te(r));if(!a)return!1;var l=a.index+a[0].length;n[i]=o.slice(0,a.index)+(!a.index||l==o.length?"":" ")+o.slice(l)||null}else return!1;return!0})}),addLineWidget:st(function(e,t,r){return Lu(this,e,t,r)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,r){return Gn(this,Fe(this,e),Fe(this,t),r,r&&r.type||"range")},setBookmark:function(e,t){var r={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=Fe(this,e),Gn(this,e,e,r,"bookmark")},findMarksAt:function(e){e=Fe(this,e);var t=[],r=ve(this,e.line).markedSpans;if(r)for(var n=0;n<r.length;++n){var i=r[n];(i.from==null||i.from<=e.ch)&&(i.to==null||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,r){e=Fe(this,e),t=Fe(this,t);var n=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var a=o.markedSpans;if(a)for(var l=0;l<a.length;l++){var s=a[l];!(s.to!=null&&i==e.line&&e.ch>=s.to||s.from==null&&i!=e.line||s.from!=null&&i==t.line&&s.from>=t.ch)&&(!r||r(s.marker))&&n.push(s.marker.parent||s.marker)}++i}),n},getAllMarks:function(){var e=[];return this.iter(function(t){var r=t.markedSpans;if(r)for(var n=0;n<r.length;++n)r[n].from!=null&&e.push(r[n].marker)}),e},posFromIndex:function(e){var t,r=this.first,n=this.lineSeparator().length;return this.iter(function(i){var o=i.text.length+n;if(o>e)return t=e,!0;e-=o,++r}),Fe(this,X(r,t))},indexFromPos:function(e){e=Fe(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var r=this.lineSeparator().length;return this.iter(this.first,e.line,function(n){t+=n.text.length+r}),t},copy:function(e){var t=new Dt(Pi(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,r=this.first+this.size;e.from!=null&&e.from>t&&(t=e.from),e.to!=null&&e.to<r&&(r=e.to);var n=new Dt(Pi(this,t,r),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(n.history=this.history),(this.linked||(this.linked=[])).push({doc:n,sharedHist:e.sharedHist}),n.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Mu(n,xl(this)),n},unlinkDoc:function(e){if(e instanceof qe&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var r=this.linked[t];if(r.doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Bu(xl(this));break}}if(e.history==this.history){var n=[e.id];sn(e,function(i){return n.push(i.id)},!0),e.history=new Jr(null),e.history.done=jn(this.history.done,n),e.history.undone=jn(this.history.undone,n)}},iterLinkedDocs:function(e){sn(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Oi(e)},lineSeparator:function(){return this.lineSep||`
11`},setDirection:st(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&Du(this.cm))})}),Dt.prototype.eachLine=Dt.prototype.iter;var yl=0;function Nu(e){var t=this;if(bl(t),!(Be(t,e)||Zt(t.display,e))){Ye(e),x&&(yl=+new Date);var r=bn(t,e,!0),n=e.dataTransfer.files;if(!(!r||t.isReadOnly()))if(n&&n.length&&window.FileReader&&window.File)for(var i=n.length,o=Array(i),a=0,l=function(){++a==i&&lt(t,function(){r=Fe(t.doc,r);var E={from:r,to:r,text:t.doc.splitLines(o.filter(function(R){return R!=null}).join(t.doc.lineSeparator())),origin:"paste"};$n(t.doc,E),il(t.doc,an(Fe(t.doc,r),Fe(t.doc,ln(E))))})()},s=function(E,R){if(t.options.allowDropFileTypes&&Ie(t.options.allowDropFileTypes,E.type)==-1){l();return}var G=new FileReader;G.onerror=function(){return l()},G.onload=function(){var Q=G.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Q)){l();return}o[R]=Q,l()},G.readAsText(E)},c=0;c<n.length;c++)s(n[c],c);else{if(t.state.draggingText&&t.doc.sel.contains(r)>-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var b=e.dataTransfer.getData("Text");if(b){var C;if(t.state.draggingText&&!t.state.draggingText.copy&&(C=t.listSelections()),ei(t.doc,an(r,r)),C)for(var T=0;T<C.length;++T)Un(t.doc,"",C[T].anchor,C[T].head,"drag");t.replaceSelection(b,"around","paste"),t.display.input.focus()}}catch{}}}}function Iu(e,t){if(x&&(!e.state.draggingText||+new Date-yl<100)){pn(t);return}if(!(Be(e,t)||Zt(e.display,t))&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!ne)){var r=L("img",null,null,"position: fixed; left: 0; top: 0;");r.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",$&&(r.width=r.height=1,e.display.wrapper.appendChild(r),r._top=r.offsetTop),t.dataTransfer.setDragImage(r,0,0),$&&r.parentNode.removeChild(r)}}function zu(e,t){var r=bn(e,t);if(r){var n=document.createDocumentFragment();ao(e,r,n),e.display.dragCursor||(e.display.dragCursor=L("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),be(e.display.dragCursor,n)}}function bl(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Dl(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),r=[],n=0;n<t.length;n++){var i=t[n].CodeMirror;i&&r.push(i)}r.length&&r[0].operation(function(){for(var o=0;o<r.length;o++)e(r[o])})}}var Cl=!1;function Hu(){Cl||(Pu(),Cl=!0)}function Pu(){var e;ae(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Dl(Ru)},100))}),ae(window,"blur",function(){return Dl(Rn)})}function Ru(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var cn={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Cr=0;Cr<10;Cr++)cn[Cr+48]=cn[Cr+96]=String(Cr);for(var ri=65;ri<=90;ri++)cn[ri]=String.fromCharCode(ri);for(var wr=1;wr<=12;wr++)cn[wr+111]=cn[wr+63235]="F"+wr;var Jt={};Jt.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"},Jt.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"},Jt.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Jt.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"]},Jt.default=j?Jt.macDefault:Jt.pcDefault;function _u(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var r,n,i,o,a=0;a<t.length-1;a++){var l=t[a];if(/^(cmd|meta|m)$/i.test(l))o=!0;else if(/^a(lt)?$/i.test(l))r=!0;else if(/^(c|ctrl|control)$/i.test(l))n=!0;else if(/^s(hift)?$/i.test(l))i=!0;else throw new Error("Unrecognized modifier name: "+l)}return r&&(e="Alt-"+e),n&&(e="Ctrl-"+e),o&&(e="Cmd-"+e),i&&(e="Shift-"+e),e}function Wu(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];if(/^(name|fallthrough|(de|at)tach)$/.test(r))continue;if(n=="..."){delete e[r];continue}for(var i=Et(r.split(" "),_u),o=0;o<i.length;o++){var a=void 0,l=void 0;o==i.length-1?(l=i.join(" "),a=n):(l=i.slice(0,o+1).join(" "),a="...");var s=t[l];if(!s)t[l]=a;else if(s!=a)throw new Error("Inconsistent bindings for "+l)}delete e[r]}for(var c in t)e[c]=t[c];return e}function Vn(e,t,r,n){t=ii(t);var i=t.call?t.call(e,n):t[e];if(i===!1)return"nothing";if(i==="...")return"multi";if(i!=null&&r(i))return"handled";if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]")return Vn(e,t.fallthrough,r,n);for(var o=0;o<t.fallthrough.length;o++){var a=Vn(e,t.fallthrough[o],r,n);if(a)return a}}}function wl(e){var t=typeof e=="string"?e:cn[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function kl(e,t,r){var n=e;return t.altKey&&n!="Alt"&&(e="Alt-"+e),(pe?t.metaKey:t.ctrlKey)&&n!="Ctrl"&&(e="Ctrl-"+e),(pe?t.ctrlKey:t.metaKey)&&n!="Mod"&&(e="Cmd-"+e),!r&&t.shiftKey&&n!="Shift"&&(e="Shift-"+e),e}function Fl(e,t){if($&&e.keyCode==34&&e.char)return!1;var r=cn[e.keyCode];return r==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(r=e.code),kl(r,e,t))}function ii(e){return typeof e=="string"?Jt[e]:e}function Kn(e,t){for(var r=e.doc.sel.ranges,n=[],i=0;i<r.length;i++){for(var o=t(r[i]);n.length&&ke(o.from,Me(n).to)<=0;){var a=n.pop();if(ke(a.from,o.from)<0){o.from=a.from;break}}n.push(o)}Ft(e,function(){for(var l=n.length-1;l>=0;l--)Un(e.doc,"",n[l].from,n[l].to,"+delete");_n(e)})}function ko(e,t,r){var n=U(e.text,t+r,r);return n<0||n>e.text.length?null:n}function Fo(e,t,r){var n=ko(e,t.ch,r);return n==null?null:new X(t.line,n,r<0?"after":"before")}function Ao(e,t,r,n,i){if(e){t.doc.direction=="rtl"&&(i=-i);var o=ue(r,t.doc.direction);if(o){var a=i<0?Me(o):o[0],l=i<0==(a.level==1),s=l?"after":"before",c;if(a.level>0||t.doc.direction=="rtl"){var b=zn(t,r);c=i<0?r.text.length-1:0;var C=qt(t,b,c).top;c=le(function(T){return qt(t,b,T).top==C},i<0==(a.level==1)?a.from:a.to-1,c),s=="before"&&(c=ko(r,c,1))}else c=i<0?a.to:a.from;return new X(n,c,s)}}return new X(n,i<0?r.text.length:0,i<0?"before":"after")}function ju(e,t,r,n){var i=ue(t,e.doc.direction);if(!i)return Fo(t,r,n);r.ch>=t.text.length?(r.ch=t.text.length,r.sticky="before"):r.ch<=0&&(r.ch=0,r.sticky="after");var o=Ce(i,r.ch,r.sticky),a=i[o];if(e.doc.direction=="ltr"&&a.level%2==0&&(n>0?a.to>r.ch:a.from<r.ch))return Fo(t,r,n);var l=function(ie,ce){return ko(t,ie instanceof X?ie.ch:ie,ce)},s,c=function(ie){return e.options.lineWrapping?(s=s||zn(e,t),Ta(e,t,s,ie)):{begin:0,end:t.text.length}},b=c(r.sticky=="before"?l(r,-1):r.ch);if(e.doc.direction=="rtl"||a.level==1){var C=a.level==1==n<0,T=l(r,C?1:-1);if(T!=null&&(C?T<=a.to&&T<=b.end:T>=a.from&&T>=b.begin)){var E=C?"before":"after";return new X(r.line,T,E)}}var R=function(ie,ce,oe){for(var de=function(_e,ut){return ut?new X(r.line,l(_e,1),"before"):new X(r.line,_e,"after")};ie>=0&&ie<i.length;ie+=ce){var we=i[ie],xe=ce>0==(we.level!=1),Te=xe?oe.begin:l(oe.end,-1);if(we.from<=Te&&Te<we.to||(Te=xe?we.from:l(we.to,-1),oe.begin<=Te&&Te<oe.end))return de(Te,xe)}},G=R(o+n,n,b);if(G)return G;var Q=n>0?b.end:l(b.begin,-1);return Q!=null&&!(n>0&&Q==t.text.length)&&(G=R(n>0?0:i.length-1,n,c(Q)),G)?G:null}var kr={selectAll:ul,singleSelection:function(e){return e.setSelection(e.getCursor("anch
11or"),e.getCursor("head"),ht)},killLine:function(e){return Kn(e,function(t){if(t.empty()){var r=ve(e.doc,t.head.line).text.length;return t.head.ch==r&&t.head.line<e.lastLine()?{from:t.head,to:X(t.head.line+1,0)}:{from:t.head,to:X(t.head.line,r)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return Kn(e,function(t){return{from:X(t.from().line,0),to:Fe(e.doc,X(t.to().line+1,0))}})},delLineLeft:function(e){return Kn(e,function(t){return{from:X(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return Kn(e,function(t){var r=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:r},"div");return{from:n,to:t.from()}})},delWrappedLineRight:function(e){return Kn(e,function(t){var r=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:r},"div");return{from:t.from(),to:n}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(X(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(X(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return Al(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return Sl(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return qu(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var r=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:r},"div")},Mt)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var r=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:r},"div")},Mt)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var r=e.cursorCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:r},"div");return n.ch<e.getLine(n.line).search(/\S/)?Sl(e,t.head):n},Mt)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("	")},insertSoftTab:function(e){for(var t=[],r=e.listSelections(),n=e.options.tabSize,i=0;i<r.length;i++){var o=r[i].from(),a=$e(e.getLine(o.line),o.ch,n);t.push(Pt(n-a%n))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Ft(e,function(){for(var t=e.listSelections(),r=[],n=0;n<t.length;n++)if(t[n].empty()){var i=t[n].head,o=ve(e.doc,i.line).text;if(o){if(i.ch==o.length&&(i=new X(i.line,i.ch-1)),i.ch>0)i=new X(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),X(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=ve(e.doc,i.line-1).text;a&&(i=new X(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),X(i.line-1,a.length-1),i,"+transpose"))}}r.push(new ze(i,i))}e.setSelections(r)})},newlineAndIndent:function(e){return Ft(e,function(){for(var t=e.listSelections(),r=t.length-1;r>=0;
vendor: 49,764 bytes, lines 11-24
11r--)e.replaceRange(e.doc.lineSeparator(),t[r].anchor,t[r].head,"+input");t=e.listSelections();for(var n=0;n<t.length;n++)e.indentLine(t[n].from().line,null,!0);_n(e)})},openLine:function(e){return e.replaceSelection(`
12`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Al(e,t){var r=ve(e.doc,t),n=Ot(r);return n!=r&&(t=He(n)),Ao(!0,e,n,t,1)}function qu(e,t){var r=ve(e.doc,t),n=As(r);return n!=r&&(t=He(n)),Ao(!0,e,r,t,-1)}function Sl(e,t){var r=Al(e,t.line),n=ve(e.doc,r.line),i=ue(n,e.doc.direction);if(!i||i[0].level==0){var o=Math.max(r.ch,n.text.search(/\S/)),a=t.line==r.line&&t.ch<=o&&t.ch;return X(r.line,a?0:o,r.sticky)}return r}function oi(e,t,r){if(typeof t=="string"&&(t=kr[t],!t))return!1;e.display.input.ensurePolled();var n=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r&&(e.display.shift=!1),i=t(e)!=Xe}finally{e.display.shift=n,e.state.suppressEdits=!1}return i}function $u(e,t,r){for(var n=0;n<e.state.keyMaps.length;n++){var i=Vn(t,e.state.keyMaps[n],r,e);if(i)return i}return e.options.extraKeys&&Vn(t,e.options.extraKeys,r,e)||Vn(t,e.options.keyMap,r,e)}var Uu=new it;function Fr(e,t,r,n){var i=e.state.keySeq;if(i){if(wl(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:Uu.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),El(e,i+" "+t,r,n))return!0}return El(e,t,r,n)}function El(e,t,r,n){var i=$u(e,t,n);return i=="multi"&&(e.state.keySeq=t),i=="handled"&&at(e,"keyHandled",e,t,r),(i=="handled"||i=="multi")&&(Ye(r),lo(e)),!!i}function Ll(e,t){var r=Fl(t,!0);return r?t.shiftKey&&!e.state.keySeq?Fr(e,"Shift-"+r,t,function(n){return oi(e,n,!0)})||Fr(e,r,t,function(n){if(typeof n=="string"?/^go[A-Z]/.test(n):n.motion)return oi(e,n)}):Fr(e,r,t,function(n){return oi(e,n)}):!1}function Gu(e,t,r){return Fr(e,"'"+r+"'",t,function(n){return oi(e,n,!0)})}var So=null;function Tl(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&(t.curOp.focus=Oe(W(t)),!Be(t,e))){x&&S<11&&e.keyCode==27&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=r==16||e.shiftKey;var n=Ll(t,e);$&&(So=n?r:null,!n&&r==88&&!cs&&(j?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),g&&!j&&!n&&r==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),r==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&Vu(t)}}function Vu(e){var t=e.display.lineDiv;et(t,"CodeMirror-crosshair");function r(n){(n.keyCode==18||!n.altKey)&&(Ee(t,"CodeMirror-crosshair"),Ue(document,"keyup",r),Ue(document,"mouseover",r))}ae(document,"keyup",r),ae(document,"mouseover",r)}function Ml(e){e.keyCode==16&&(this.doc.sel.shift=!1),Be(this,e)}function Bl(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&!(Zt(t.display,e)||Be(t,e)||e.ctrlKey&&!e.altKey||j&&e.metaKey)){var r=e.keyCode,n=e.charCode;if($&&r==So){So=null,Ye(e);return}if(!($&&(!e.which||e.which<10)&&Ll(t,e))){var i=String.fromCharCode(n??r);i!="\b"&&(Gu(t,e,i)||t.display.input.onKeyPress(e))}}}var Ku=400,Eo=function(e,t,r){this.time=e,this.pos=t,this.button=r};Eo.prototype.compare=function(e,t,r){return this.time+Ku>e&&ke(t,this.pos)==0&&r==this.button};var Ar,Sr;function Zu(e,t){var r=+new Date;return Sr&&Sr.compare(r,e,t)?(Ar=Sr=null,"triple"):Ar&&Ar.compare(r,e,t)?(Sr=new Eo(r,e,t),Ar=null,"double"):(Ar=new Eo(r,e,t),Sr=null,"single")}function Ol(e){var t=this,r=t.display;if(!(Be(t,e)||r.activeTouch&&r.input.supportsTouch())){if(r.input.ensurePolled(),r.shift=e.shiftKey,Zt(r,e)){z||(r.scroller.draggable=!1,setTimeout(function(){return r.scroller.draggable=!0},100));return}if(!Lo(t,e)){var n=bn(t,e),i=$o(e),o=n?Zu(n,i):"single";Se(t).focus(),i==1&&t.state.selectingText&&t.state.selectingText(e),!(n&&Xu(t,i,n,o,e))&&(i==1?n?Yu(t,n,o,e):Gt(e)==r.scroller&&Ye(e):i==2?(n&&Qr(t.doc,n),setTimeout(function(){return r.input.focus()},20)):i==3&&(We?t.display.input.onContextMenu(e):so(t)))}}}function Xu(e,t,r,n,i){var o="Click";return n=="double"?o="Double"+o:n=="triple"&&(o="Triple"+o),o=(t==1?"Left":t==2?"Middle":"Right")+o,Fr(e,kl(o,i),i,function(a){if(typeof a=="string"&&(a=kr[a]),!a)return!1;var l=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),l=a(e,r)!=Xe}finally{e.state.suppressEdits=!1}return l})}function Ju(e,t,r){var n=e.getOption("configureMouse"),i=n?n(e,t,r):{};if(i.unit==null){var o=ee?r.shiftKey&&r.metaKey:r.altKey;i.unit=o?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(i.extend==null||e.doc.extend)&&(i.extend=e.doc.extend||r.shiftKey),i.addNew==null&&(i.addNew=j?r.metaKey:r.ctrlKey),i.moveOnDrag==null&&(i.moveOnDrag=!(j?r.altKey:r.ctrlKey)),i}function Yu(e,t,r,n){x?setTimeout(Ze(Na,e),0):e.curOp.focus=Oe(W(e));var i=Ju(e,r,n),o=e.doc.sel,a;e.options.dragDrop&&as&&!e.isReadOnly()&&r=="single"&&(a=o.contains(t))>-1&&(ke((a=o.ranges[a]).from(),t)<0||t.xRel>0)&&(ke(a.to(),t)>0||t.xRel<0)?Qu(e,n,t,i):ec(e,n,t,i)}function Qu(e,t,r,n){var i=e.display,o=!1,a=lt(e,function(c){z&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:so(e)),Ue(i.wrapper.ownerDocument,"mouseup",a),Ue(i.wrapper.ownerDocument,"mousemove",l),Ue(i.scroller,"dragstart",s),Ue(i.scroller,"drop",a),o||(Ye(c),n.addNew||Qr(e.doc,r,null,null,n.extend),z&&!ne||x&&S==9?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()},20):i.input.focus())}),l=function(c){o=o||Math.abs(t.clientX-c.clientX)+Math.abs(t.clientY-c.clientY)>=10},s=function(){return o=!0};z&&(i.scroller.draggable=!0),e.state.draggingText=a,a.copy=!n.moveOnDrag,ae(i.wrapper.ownerDocument,"mouseup",a),ae(i.wrapper.ownerDocument,"mousemove",l),ae(i.scroller,"dragstart",s),ae(i.scroller,"drop",a),e.state.delayingBlurEvent=!0,setTimeout(function(){return i.input.focus()},20),i.scroller.dragDrop&&i.scroller.dragDrop()}function Nl(e,t,r){if(r=="char")return new ze(t,t);if(r=="word")return e.findWordAt(t);if(r=="line")return new ze(X(t.line,0),Fe(e.doc,X(t.line+1,0)));var n=r(e,t);return new ze(n.from,n.to)}function ec(e,t,r,n){x&&so(e);var i=e.display,o=e.doc;Ye(t);var a,l,s=o.sel,c=s.ranges;if(n.addNew&&!n.extend?(l=o.sel.contains(r),l>-1?a=c[l]:a=new ze(r,r)):(a=o.sel.primary(),l=o.sel.primIndex),n.unit=="rectangle")n.addNew||(a=new ze(r,r)),r=bn(e,t,!0,!0),l=-1;else{var b=Nl(e,r,n.unit);n.extend?a=Co(a,b.anchor,b.head,n.extend):a=b}n.addNew?l==-1?(l=c.length,mt(o,It(e,c.concat([a]),l),{scroll:!1,origin:"*mouse"})):c.length>1&&c[l].empty()&&n.unit=="char"&&!n.extend?(mt(o,It(e,c.slice(0,l).concat(c.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),s=o.sel):wo(o,l,a,ye):(l=0,mt(o,new Lt([a],0),ye),s=o.sel);var C=r;function T(oe){if(ke(C,oe)!=0)if(C=oe,n.unit=="rectangle"){for(var de=[],we=e.options.tabSize,xe=$e(ve(o,r.line).text,r.ch,we),Te=$e(ve(o,oe.line).text,oe.ch,we),_e=Math.min(xe,Te),ut=Math.max(xe,Te),Ge=Math.min(r.line,oe.line),At=Math.min(e.lastLine(),Math.max(r.line,oe.line));Ge<=At;Ge++){var Ct=ve(o,Ge).text,nt=Bt(Ct,_e,we);_e==ut?de.push(new ze(X(Ge,nt),X(Ge,nt))):Ct.length>nt&&de.push(new ze(X(Ge,nt),X(Ge,Bt(Ct,ut,we))))}de.length||de.push(new ze(r,r)),mt(o,It(e,s.ranges.slice(0,l).concat(de),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(oe)}else{var wt=a,pt=Nl(e,oe,n.unit),ot=wt.anchor,rt;ke(pt.anchor,ot)>0?(rt=pt.head,ot=Or(wt.from(),pt.anchor)):(rt=pt.anchor,ot=Br(wt.to(),pt.head));var Ke=s.ranges.slice(0);Ke[l]=tc(e,new ze(Fe(o,ot),rt)),mt(o,It(e,Ke,l),ye)}}var E=i.wrapper.getBoundingClientRect(),R=0;function G(oe){var de=++R,we=bn(e,oe,!0,n.unit=="rectangle");if(we)if(ke(we,C)!=0){e.curOp.focus=Oe(W(e)),T(we);var xe=Vr(i,o);(we.line>=xe.to||we.line<xe.from)&&setTimeout(lt(e,function(){R==de&&G(oe)}),150)}else{var Te=oe.clientY<E.top?-20:oe.clientY>E.bottom?20:0;Te&&setTimeout(lt(e,function(){R==de&&(i.scroller.scrollTop+=Te,G(oe))}),50)}}function Q(oe){e.state.selectingText=!1,R=1/0,oe&&(Ye(oe),i.input.focus()),Ue(i.wrapper.ownerDocument,"mousemove",ie),Ue(i.wrapper.ownerDocument,"mouseup",ce),o.history.lastSelOrigin=null}var ie=lt(e,function(oe){oe.buttons===0||!$o(oe)?Q(oe):G(oe)}),ce=lt(e,Q);e.state.selectingText=ce,ae(i.wrapper.ownerDocument,"mousemove",ie),ae(i.wrapper.ownerDocument,"mouseup",ce)}function tc(e,t){var r=t.anchor,n=t.head,i=ve(e.doc,r.line);if(ke(r,n)==0&&r.sticky==n.sticky)return t;var o=ue(i);if(!o)return t;var a=Ce(o,r.ch,r.sticky),l=o[a];if(l.from!=r.ch&&l.to!=r.ch)return t;var s=a+(l.from==r.ch==(l.level!=1)?0:1);if(s==0||s==o.length)return t;var c;if(n.line!=r.line)c=(n.line-r.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var b=Ce(o,n.ch,n.sticky),C=b-a||(n.ch-r.ch)*(l.level==1?-1:1);b==s-1||b==s?c=C<0:c=C>0}var T=o[s+(c?-1:0)],E=c==(T.level==1),R=E?T.from:T.to,G=E?"after":"before";return r.ch==R&&r.sticky==G?t:new ze(new X(r.line,R,G),n)}function Il(e,t,r,n){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch{return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&Ye(t);var a=e.display,l=a.lineDiv.getBoundingClientRect();if(o>l.bottom||!dt(e,r))return Ut(t);o-=l.top-a.viewOffset;for(var s=0;s<e.display.gutterSpecs.length;++s){var c=a.gutters.childNodes[s];if(c&&c.getBoundingClientRect().right>=i){var b=vn(e.doc,o),C=e.display.gutterSpecs[s];return Ae(e,r,e,b,C.className,t),Ut(t)}}}function Lo(e,t){return Il(e,t,"gutterClick",!0)}function zl(e,t){Zt(e.display,t)||nc(e,t)||Be(e,t,"contextmenu")||We||e.display.input.onContextMenu(t)}function nc(e,t){return dt(e,"gutterContextMenu")?Il(e,t,"gutterContextMenu",!1):!1}function Hl(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),lr(e)}var Zn={toString:function(){return"CodeMirror.Init"}},Pl={},ai={};function rc(e){var t=e.optionHandlers;function r(n,i,o,a){e.defaults[n]=i,o&&(t[n]=a?function(l,s,c){c!=Zn&&o(l,s,c)}:o)}e.defineOption=r,e.Init=Zn,r("value","",function(n,i){return n.setValue(i)},!0),r("mode",null,function(n,i){n.doc.modeOption=i,yo(n)},!0),r("indentUnit",2,yo,!0),r("indentWithTabs",!1),r("smartIndent",!0),r("tabSize",4,function(n){mr(n),lr(n),bt(n)},!0),r("lineSeparator",null,function(n,i){if(n.doc.lineSep=i,!!i){var o=[],a=n.doc.first;n.doc.iter(function(s){for(var c=0;;){var b=s.text.indexOf(i,c);if(b==-1)break;c=b+i.length,o.push(X(a,b))}a++});for(var l=o.length-1;l>=0;l--)Un(n.doc,i,o[l],X(o[l].line,o[l].ch+i.length))}}),r("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(n,i,o){n.state.specialChars=new RegExp(i.source+(i.test("	")?"":"|	"),"g"),o!=Zn&&n.refresh()}),r("specialCharPlaceholder",Bs,function(n){return n.refresh()},!0),r("electricChars",!0),r("inputStyle",_?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),r("spellcheck",!1,function(n,i){return n.getInputField().spellcheck=i},!0),r("autocorrect",!1,function(n,i){return n.getInputField().autocorrect=i},!0),r("autocapitalize",!1,function(n,i){return n.getInputField().autocapitalize=i},!0),r("rtlMoveVisually",!V),r("wholeLineUpdateBefore",!0),r("theme","default",function(n){Hl(n),pr(n)},!0),r("keyMap","default",function(n,i,o){var a=ii(i),l=o!=Zn&&ii(o);l&&l.detach&&l.detach(n,a),a.attach&&a.attach(n,l||null)}),r("extraKeys",null),r("configureMouse",null),r("lineWrapping",!1,oc,!0),r("gutters",[],function(n,i){n.display.gutterSpecs=vo(i,n.options.lineNumbers),pr(n)},!0),r("fixedGutter",!0,function(n,i){n.display.gutters.style.left=i?io(n.display)+"px":"0",n.refresh()},!0),r("coverGutterNextToScrollbar",!1,function(n){return Wn(n)},!0),r("scrollbarStyle","native",function(n){_a(n),Wn(n),n.display.scrollbars.setScrollTop(n.doc.scrollTop),n.display.scrollbars.setScrollLeft(n.doc.scrollLeft)},!0),r("lineNumbers",!1,function(n,i){n.display.gutterSpecs=vo(n.options.gutters,i),pr(n)},!0),r("firstLineNumber",1,pr,!0),r("lineNumberFormatter",function(n){return n},pr,!0),r("showCursorWhenSelecting",!1,sr,!0),r("resetSelectionOnContextMenu",!0),r("lineWiseCopyCut",!0),r("pasteLinesPerSelection",!0),r("selectionsMayTouch",!1),r("readOnly",!1,function(n,i){i=="nocursor"&&(Rn(n),n.display.input.blur()),n.display.input.readOnlyChanged(i)}),r("screenReaderLabel",null,function(n,i){i=i===""?null:i,n.display.input.screenReaderLabelChanged(i)}),r("disableInput",!1,function(n,i){i||n.display.input.reset()},!0),r("dragDrop",!0,ic),r("allowDropFileTypes",null),r("cursorBlinkRate",530),r("cursorScrollMargin",0),r("cursorHeight",1,sr,!0),r("singleCursorHeightPerLine",!0,sr,!0),r("workTime",100),r("workDelay",100),r("flattenSpans",!0,mr,!0),r("addModeClass",!1,mr,!0),r("pollInterval",100),r("undoDepth",200,function(n,i){return n.doc.history.undoDepth=i}),r("historyEventDelay",1250),r("viewportMargin",10,function(n){return n.refresh()},!0),r("maxHighlightLength",1e4,mr,!0),r("moveInputWithCursor",!0,function(n,i){i||n.display.input.resetPosition()}),r("tabindex",null,function(n,i){return n.display.input.getField().tabIndex=i||""}),r("autofocus",null),r("direction","ltr",function(n,i){return n.doc.setDirection(i)},!0),r("phrases",null)}function ic(e,t,r){var n=r&&r!=Zn;if(!t!=!n){var i=e.display.dragFunctions,o=t?ae:Ue;o(e.display.scroller,"dragstart",i.start),o(e.display.scroller,"dragenter",i.enter),o(e.display.scroller,"dragover",i.over),o(e.display.scroller,"dragleave",i.leave),o(e.display.scroller,"drop",i.drop)}}function oc(e){e.options.lineWrapping?(et(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(Ee(e.display.wrapper,"CodeMirror-wrap"),Ki(e)),oo(e),bt(e),lr(e),setTimeout(function(){return Wn(e)},100)}function qe(e,t){var r=this;if(!(this instanceof qe))return new qe(e,t);this.options=t=t?ft(t):{},ft(Pl,t,!1);var n=t.value;typeof n=="string"?n=new Dt(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var i=new qe.inputStyles[t.inputStyle](this),o=this.display=new xu(e,n,i,t);o.wrapper.CodeMirror=this,Hl(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),_a(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 it,keySeq:null,specialChars:null},t.autofocus&&!_&&o.input.focus(),x&&S<11&&setTimeout(function(){return r.display.input.reset(!0)},20),ac(this),Hu(),kn(this),this.curOp.forceUpdate=!0,Xa(this,n),t.autofocus&&!_||this.hasFocus()?setTimeout(function(){r.hasFocus()&&!r.state.focused&&uo(r)},20):Rn(this);for(var a in ai)ai.hasOwnProperty(a)&&ai[a](this,t[a],Zn);qa(this),t.finishInit&&t.finishInit(this);for(var l=0;l<To.length;++l)To[l](this);Fn(this),z&&t.lineWrapping&&getComputedStyle(o.lineDiv).textRendering=="optimizelegibility"&&(o.lineDiv.style.textRendering="auto")}qe.defaults=Pl,qe.optionHandlers=ai;function ac(e){var t=e.display;ae(t.scroller,"mousedown",lt(e,Ol)),x&&S<11?ae(t.scroller,"dblclick",lt(e,function(s){if(!Be(e,s)){var c=bn(e,s);if(!(!c||Lo(e,s)||Zt(e.display,s))){Ye(s);var b=e.findWordAt(c);Qr(e.doc,b.anchor,b.head)}}})):ae(t.scroller,"dblclick",function(s){return Be(e,s)||Ye(s)}),ae(t.scroller,"contextmenu",function(s){return zl(e,s)}),ae(t.input.getField(),"contextmenu",function(s){t.scroller.contains(s.target)||zl(e,s)});var r,n={end:0};function i(){t.activeTouch&&(r=setTimeout(function(){return t.activeTouch=null},1e3),n=t.activeTouch,n.end=+new Date)}function o(s){if(s.touches.length!=1)return!1;var c=s.touches[0];return c.radiusX<=1&&c.radiusY<=1}function a(s,c){if(c.left==null)return!0;var b=c.left-s.left,C=c.top-s.top;return b*b+C*C>400}ae(t.scroller,"touchstart",function(s){if(!Be(e,s)&&!o(s)&&!Lo(e,s)){t.input.ensurePolled(),clearTimeout(r);var c=+new Date;t.activeTouch={start:c,moved:!1,prev:c-n.end<=300?n:null},s.touches.length==1&&(t.activeTouch.left=s.touches[0].pageX,t.activeTouch.top=s.touches[0].pageY)}}),ae(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),ae(t.scroller,"touchend",function(s){var c=t.activeTouch;if(c&&!Zt(t,s)&&c.left!=null&&!c.moved&&new Date-c.start<300){var b=e.coordsChar(t.activeTouch,"page"),C;!c.prev||a(c,c.prev)?C=new ze(b,b):!c.prev.prev||a(c,c.prev.prev)?C=e.findWordAt(b):C=new ze(X(b.line,0),Fe(e.doc,X(b.line+1,0))),e.setSelection(C.anchor,C.head),e.focus(),Ye(s)}i()}),ae(t.scroller,"touchcancel",i),ae(t.scroller,"scroll",function(){t.scroller.clientHeight&&(cr(e,t.scroller.scrollTop),Cn(e,t.scroller.scrollLeft,!0),Ae(e,"scroll",e))}),ae(t.scroller,"mousewheel",function(s){return Ga(e,s)}),ae(t.scroller,"DOMMouseScroll",function(s){return Ga(e,s)}),ae(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(s){Be(e,s)||pn(s)},over:function(s){Be(e,s)||(zu(e,s),pn(s))},start:function(s){return Iu(e,s)},drop:lt(e,Nu),leave:function(s){Be(e,s)||bl(e)}};var l=t.input.getField();ae(l,"keyup",function(s){return Ml.call(e,s)}),ae(l,"keydown",lt(e,Tl)),ae(l,"keypress",lt(e,Bl)),ae(l,"focus",function(s){return uo(e,s)}),ae(l,"blur",function(s){return Rn(e,s)})}var To=[];qe.defineInitHook=function(e){return To.push(e)};function Er(e,t,r,n){var i=e.doc,o;r==null&&(r="add"),r=="smart"&&(i.mode.indent?o=nr(e,t).state:r="prev");var a=e.options.tabSize,l=ve(i,t),s=$e(l.text,null,a);l.stateAfter&&(l.stateAfter=null);var c=l.text.match(/^\s*/)[0],b;if(!n&&!/\S/.test(l.text))b=0,r="not";else if(r=="smart"&&(b=i.mode.indent(o,l.text.slice(c.length),l.text),b==Xe||b>150)){if(!n)return;r="prev"}r=="prev"?t>i.first?b=$e(ve(i,t-1).text,null,a):b=0:r=="add"?b=s+e.options.indentUnit:r=="subtract"?b=s-e.options.indentUnit:typeof r=="number"&&(b=s+r),b=Math.max(0,b);var C="",T=0;if(e.options.indentWithTabs)for(var E=Math.floor(b/a);E;--E)T+=a,C+="	";if(T<b&&(C+=Pt(b-T)),C!=c)return Un(i,C,X(t,0),X(t,c.length),"+input"),l.stateAfter=null,!0;for(var R=0;R<i.sel.ranges.length;R++){var G=i.sel.ranges[R];if(G.head.line==t&&G.head.ch<c.length){var Q=X(t,c.length);wo(i,R,new ze(Q,Q));break}}}var zt=null;function li(e){zt=e}function Mo(e,t,r,n,i){var o=e.doc;e.display.shift=!1,n||(n=o.sel);var a=+new Date-200,l=i=="paste"||e.state.pasteIncoming>a,s=Oi(t),c=null;if(l&&n.ranges.length>1)if(zt&&zt.text.join(`
13`)==t){if(n.ranges.length%zt.text.length==0){c=[];for(var b=0;b<zt.text.length;b++)c.push(o.splitLines(zt.text[b]))}}else s.length==n.ranges.length&&e.options.pasteLinesPerSelection&&(c=Et(s,function(ie){return[ie]}));for(var C=e.curOp.updateInput,T=n.ranges.length-1;T>=0;T--){var E=n.ranges[T],R=E.from(),G=E.to();E.empty()&&(r&&r>0?R=X(R.line,R.ch-r):e.state.overwrite&&!l?G=X(G.line,Math.min(ve(o,G.line).text.length,G.ch+Me(s).length)):l&&zt&&zt.lineWise&&zt.text.join(`
14`)==s.join(`
15`)&&(R=G=X(R.line,0)));var Q={from:R,to:G,text:c?c[T%c.length]:s,origin:i||(l?"paste":e.state.cutIncoming>a?"cut":"+input")};$n(e.doc,Q),at(e,"inputRead",e,Q)}t&&!l&&_l(e,t),_n(e),e.curOp.updateInput<2&&(e.curOp.updateInput=C),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Rl(e,t){var r=e.clipboardData&&e.clipboardData.getData("Text");if(r)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&t.hasFocus()&&Ft(t,function(){return Mo(t,r,0,null,"paste")}),!0}function _l(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var r=e.doc.sel,n=r.ranges.length-1;n>=0;n--){var i=r.ranges[n];if(!(i.head.ch>100||n&&r.ranges[n-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var l=0;l<o.electricChars.length;l++)if(t.indexOf(o.electricChars.charAt(l))>-1){a=Er(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(ve(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Er(e,i.head.line,"smart"));a&&at(e,"electricInput",e,i.head.line)}}}function Wl(e){for(var t=[],r=[],n=0;n<e.doc.sel.ranges.length;n++){var i=e.doc.sel.ranges[n].head.line,o={anchor:X(i,0),head:X(i+1,0)};r.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:r}}function Bo(e,t,r,n){e.setAttribute("autocorrect",r?"on":"off"),e.setAttribute("autocapitalize",n?"on":"off"),e.setAttribute("spellcheck",!!t)}function jl(){var e=L("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=L("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return z?e.style.width="1000px":e.setAttribute("wrap","off"),I&&(e.style.border="1px solid black"),t}function lc(e){var t=e.optionHandlers,r=e.helpers={};e.prototype={constructor:e,focus:function(){Se(this).focus(),this.display.input.focus()},setOption:function(n,i){var o=this.options,a=o[n];o[n]==i&&n!="mode"||(o[n]=i,t.hasOwnProperty(n)&&lt(this,t[n])(this,i,a),Ae(this,"optionChange",this,n))},getOption:function(n){return this.options[n]},getDoc:function(){return this.doc},addKeyMap:function(n,i){this.state.keyMaps[i?"push":"unshift"](ii(n))},removeKeyMap:function(n){for(var i=this.state.keyMaps,o=0;o<i.length;++o)if(i[o]==n||i[o].name==n)return i.splice(o,1),!0},addOverlay:vt(function(n,i){var o=n.token?n:e.getMode(this.options,n);if(o.startState)throw new Error("Overlays may not be stateful.");Rt(this.state.overlays,{mode:o,modeSpec:n,opaque:i&&i.opaque,priority:i&&i.priority||0},function(a){return a.priority}),this.state.modeGen++,bt(this)}),removeOverlay:vt(function(n){for(var i=this.state.overlays,o=0;o<i.length;++o){var a=i[o].modeSpec;if(a==n||typeof n=="string"&&a.name==n){i.splice(o,1),this.state.modeGen++,bt(this);return}}}),indentLine:vt(function(n,i,o){typeof i!="string"&&typeof i!="number"&&(i==null?i=this.options.smartIndent?"smart":"prev":i=i?"add":"subtract"),tr(this.doc,n)&&Er(this,n,i,o)}),indentSelection:vt(function(n){for(var i=this.doc.sel.ranges,o=-1,a=0;a<i.length;a++){var l=i[a];if(l.empty())l.head.line>o&&(Er(this,l.head.line,n,!0),o=l.head.line,a==this.doc.sel.primIndex&&_n(this));else{var s=l.from(),c=l.to(),b=Math.max(o,s.line);o=Math.min(this.lastLine(),c.line-(c.ch?0:1))+1;for(var C=b;C<o;++C)Er(this,C,n);var T=this.doc.sel.ranges;s.ch==0&&i.length==T.length&&T[a].from().ch>0&&wo(this.doc,a,new ze(s,T[a].to()),ht)}}}),getTokenAt:function(n,i){return Yo(this,n,i)},getLineTokens:function(n,i){return Yo(this,X(n),i,!0)},getTokenTypeAt:function(n){n=Fe(this.doc,n);var i=Zo(this,ve(this.doc,n.line)),o=0,a=(i.length-1)/2,l=n.ch,s;if(l==0)s=i[2];else for(;;){var c=o+a>>1;if((c?i[c*2-1]:0)>=l)a=c;else if(i[c*2+1]<l)o=c+1;else{s=i[c*2+2];break}}var b=s?s.indexOf("overlay "):-1;return b<0?s:b==0?null:s.slice(0,b-1)},getModeAt:function(n){var i=this.doc.mode;return i.innerMode?e.innerMode(i,this.getTokenAt(n).state).mode:i},getHelper:function(n,i){return this.getHelpers(n,i)[0]},getHelpers:function(n,i){var o=[];if(!r.hasOwnProperty(i))return o;var a=r[i],l=this.getModeAt(n);if(typeof l[i]=="string")a[l[i]]&&o.push(a[l[i]]);else if(l[i])for(var s=0;s<l[i].length;s++){var c=a[l[i][s]];c&&o.push(c)}else l.helperType&&a[l.helperType]?o.push(a[l.helperType]):a[l.name]&&o.push(a[l.name]);for(var b=0;b<a._global.length;b++){var C=a._global[b];C.pred(l,this)&&Ie(o,C.val)==-1&&o.push(C.val)}return o},getStateAfter:function(n,i){var o=this.doc;return n=Go(o,n??o.first+o.size-1),nr(this,n+1,i).state},cursorCoords:function(n,i){var o,a=this.doc.sel.primary();return n==null?o=a.head:typeof n=="object"?o=Fe(this.doc,n):o=n?a.from():a.to(),Nt(this,o,i||"page")},charCoords:function(n,i){return qr(this,Fe(this.doc,n),i||"page")},coordsChar:function(n,i){return n=Sa(this,n,i||"page"),to(this,n.left,n.top)},lineAtHeight:function(n,i){return n=Sa(this,{top:n,left:0},i||"page").top,vn(this.doc,n+this.display.viewOffset)},heightAtLine:function(n,i,o){var a=!1,l;if(typeof n=="number"){var s=this.doc.first+this.doc.size-1;n<this.doc.first?n=this.doc.first:n>s&&(n=s,a=!0),l=ve(this.doc,n)}else l=n;return jr(this,l,{top:0,left:0},i||"page",o||a).top+(a?this.doc.height-Kt(l):0)},defaultTextHeight:function(){return Hn(this.display)},defaultCharWidth:function(){return Pn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(n,i,o,a,l){var s=this.display;n=Nt(this,Fe(this.doc,n));var c=n.bottom,b=n.left;if(i.style.position="absolute",i.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(i),s.sizer.appendChild(i),a=="over")c=n.top;else if(a=="above"||a=="near"){var C=Math.max(s.wrapper.clientHeight,this.doc.height),T=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);(a=="above"||n.bottom+i.offsetHeight>C)&&n.top>i.offsetHeight?c=n.top-i.offsetHeight:n.bottom+i.offsetHeight<=C&&(c=n.bottom),b+i.offsetWidth>T&&(b=T-i.offsetWidth)}i.style.top=c+"px",i.style.left=i.style.right="",l=="right"?(b=s.sizer.clientWidth-i.offsetWidth,i.style.right="0px"):(l=="left"?b=0:l=="middle"&&(b=(s.sizer.clientWidth-i.offsetWidth)/2),i.style.left=b+"px"),o&&iu(this,{left:b,top:c,right:b+i.offsetWidth,bottom:c+i.offsetHeight})},triggerOnKeyDown:vt(Tl),triggerOnKeyPress:vt(Bl),triggerOnKeyUp:Ml,triggerOnMouseDown:vt(Ol),execCommand:function(n){if(kr.hasOwnProperty(n))return kr[n].call(null,this)},triggerElectric:vt(function(n){_l(this,n)}),findPosH:function(n,i,o,a){var l=1;i<0&&(l=-1,i=-i);for(var s=Fe(this.doc,n),c=0;c<i&&(s=Oo(this.doc,s,l,o,a),!s.hitSide);++c);return s},moveH:vt(function(n,i){var o=this;this.extendSelectionsBy(function(a){return o.display.shift||o.doc.extend||a.empty()?Oo(o.doc,a.head,n,i,o.options.rtlMoveVisually):n<0?a.from():a.to()},Mt)}),deleteH:vt(function(n,i){var o=this.doc.sel,a=this.doc;o.somethingSelected()?a.replaceSelection("",null,"+delete"):Kn(this,function(l){var s=Oo(a,l.head,n,i,!1);return n<0?{from:s,to:l.head}:{from:l.head,to:s}})}),findPosV:function(n,i,o,a){var l=1,s=a;i<0&&(l=-1,i=-i);for(var c=Fe(this.doc,n),b=0;b<i;++b){var C=Nt(this,c,"div");if(s==null?s=C.left:C.left=s,c=ql(this,C,l,o),c.hitSide)break}return c},moveV:vt(function(n,i){var o=this,a=this.doc,l=[],s=!this.display.shift&&!a.extend&&a.sel.somethingSelected();if(a.extendSelectionsBy(function(b){if(s)return n<0?b.from():b.to();var C=Nt(o,b.head,"div");b.goalColumn!=null&&(C.left=b.goalColumn),l.push(C.left);var T=ql(o,C,n,i);return i=="page"&&b==a.sel.primary()&&fo(o,qr(o,T,"div").top-C.top),T},Mt),l.length)for(var c=0;c<a.sel.ranges.length;c++)a.sel.ranges[c].goalColumn=l[c]}),findWordAt:function(n){var i=this.doc,o=ve(i,n.line).text,a=n.ch,l=n.ch;if(o){var s=this.getHelper(n,"wordChars");(n.sticky=="before"||l==o.length)&&a?--a:++l;for(var c=o.charAt(a),b=p(c,s)?function(C){return p(C,s)}:/\s/.test(c)?function(C){return/\s/.test(C)}:function(C){return!/\s/.test(C)&&!p(C)};a>0&&b(o.charAt(a-1));)--a;for(;l<o.length&&b(o.charAt(l));)++l}return new ze(X(n.line,a),X(n.line,l))},toggleOverwrite:function(n){n!=null&&n==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?et(this.display.cursorDiv,"CodeMirror-overwrite"):Ee(this.display.cursorDiv,"CodeMirror-overwrite"),Ae(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Oe(W(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:vt(function(n,i){ur(this,n,i)}),getScrollInfo:function(){var n=this.display.scroller;return{left:n.scrollLeft,top:n.scrollTop,height:n.scrollHeight-jt(this)-this.display.barHeight,width:n.scrollWidth-jt(this)-this.display.barWidth,clientHeight:Ji(this),clientWidth:xn(this)}},scrollIntoView:vt(function(n,i){n==null?(n={from:this.doc.sel.primary().head,to:null},i==null&&(i=this.options.cursorScrollMargin)):typeof n=="number"?n={from:X(n,0),to:null}:n.from==null&&(n={from:n,to:null}),n.to||(n.to=n.from),n.margin=i||0,n.from.line!=null?ou(this,n):za(this,n.from,n.to,n.margin)}),setSize:vt(function(n,i){var o=this,a=function(s){return typeof s=="number"||/^\d+$/.test(String(s))?s+"px":s};n!=null&&(this.display.wrapper.style.width=a(n)),i!=null&&(this.display.wrapper.style.height=a(i)),this.options.lineWrapping&&ka(this);var l=this.display.viewFrom;this.doc.iter(l,this.display.viewTo,function(s){if(s.widgets){for(var c=0;c<s.widgets.length;c++)if(s.widgets[c].noHScroll){rn(o,l,"widget");break}}++l}),this.curOp.forceUpdate=!0,Ae(this,"refresh",this)}),operation:function(n){return Ft(this,n)},startOperation:function(){return kn(this)},endOperation:function(){return Fn(this)},refresh:vt(function(){var n=this.display.cachedTextHeight;bt(this),this.curOp.forceUpdate=!0,lr(this),ur(this,this.doc.scrollLeft,this.doc.scrollTop),mo(this.display),(n==null||Math.abs(n-Hn(this.display))>.5||this.options.lineWrapping)&&oo(this),Ae(this,"refresh",this)}),swapDoc:vt(function(n){var i=this.doc;return i.cm=null,this.state.selectingText&&this.state.selectingText(),Xa(this,n),lr(this),this.display.input.reset(),ur(this,n.scrollLeft,n.scrollTop),this.curOp.forceScroll=!0,at(this,"swapDoc",this,i),i}),phrase:function(n){var i=this.options.phrases;return i&&Object.prototype.hasOwnProperty.call(i,n)?i[n]:n},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(e),e.registerHelper=function(n,i,o){r.hasOwnProperty(n)||(r[n]=e[n]={_global:[]}),r[n][i]=o},e.registerGlobalHelper=function(n,i,o,a){e.registerHelper(n,i,a),r[n]._global.push({pred:o,val:a})}}function Oo(e,t,r,n,i){var o=t,a=r,l=ve(e,t.line),s=i&&e.direction=="rtl"?-r:r;function c(){var ce=t.line+s;return ce<e.first||ce>=e.first+e.size?!1:(t=new X(ce,t.ch,t.sticky),l=ve(e,ce))}function b(ce){var oe;if(n=="codepoint"){var de=l.text.charCodeAt(t.ch+(r>0?0:-1));if(isNaN(de))oe=null;else{var we=r>0?de>=55296&&de<56320:de>=56320&&de<57343;oe=new X(t.line,Math.max(0,Math.min(l.text.length,t.ch+r*(we?2:1))),-r)}}else i?oe=ju(e.cm,l,t,r):oe=Fo(l,t,r);if(oe==null)if(!ce&&c())t=Ao(i,e.cm,l,t.line,s);else return!1;else t=oe;return!0}if(n=="char"||n=="codepoint")b();else if(n=="column")b(!0);else if(n=="word"||n=="group")for(var C=null,T=n=="group",E=e.cm&&e.cm.getHelper(t,"wordChars"),R=!0;!(r<0&&!b(!R));R=!1){var G=l.text.charAt(t.ch)||`
16`,Q=p(G,E)?"w":T&&G==`
17`?"n":!T||/\s/.test(G)?null:"p";if(T&&!R&&!Q&&(Q="s"),C&&C!=Q){r<0&&(r=1,b(),t.sticky="after");break}if(Q&&(C=Q),r>0&&!b(!R))break}var ie=ti(e,t,o,a,!0);return _i(o,ie)&&(ie.hitSide=!0),ie}function ql(e,t,r,n){var i=e.doc,o=t.left,a;if(n=="page"){var l=Math.min(e.display.wrapper.clientHeight,Se(e).innerHeight||i(e).documentElement.clientHeight),s=Math.max(l-.5*Hn(e.display),3);a=(r>0?t.bottom:t.top)+r*s}else n=="line"&&(a=r>0?t.bottom+3:t.top-3);for(var c;c=to(e,o,a),!!c.outside;){if(r<0?a<=0:a>=i.height){c.hitSide=!0;break}a+=r*5}return c}var Pe=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new it,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Pe.prototype.init=function(e){var t=this,r=this,n=r.cm,i=r.div=e.lineDiv;i.contentEditable=!0,Bo(i,n.options.spellcheck,n.options.autocorrect,n.options.autocapitalize);function o(l){for(var s=l.target;s;s=s.parentNode){if(s==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(s.className))break}return!1}ae(i,"paste",function(l){!o(l)||Be(n,l)||Rl(l,n)||S<=11&&setTimeout(lt(n,function(){return t.updateFromDOM()}),20)}),ae(i,"compositionstart",function(l){t.composing={data:l.data,done:!1}}),ae(i,"compositionupdate",function(l){t.composing||(t.composing={data:l.data,done:!1})}),ae(i,"compositionend",function(l){t.composing&&(l.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),ae(i,"touchstart",function(){return r.forceCompositionEnd()}),ae(i,"input",function(){t.composing||t.readFromDOMSoon()});function a(l){if(!(!o(l)||Be(n,l))){if(n.somethingSelected())li({lineWise:!1,text:n.getSelections()}),l.type=="cut"&&n.replaceSelection("",null,"cut");else if(n.options.lineWiseCopyCut){var s=Wl(n);li({lineWise:!0,text:s.text}),l.type=="cut"&&n.operation(function(){n.setSelections(s.ranges,0,ht),n.replaceSelection("",null,"cut")})}else return;if(l.clipboardData){l.clipboardData.clearData();var c=zt.text.join(`
18`);if(l.clipboardData.setData("Text",c),l.clipboardData.getData("Text")==c){l.preventDefault();return}}var b=jl(),C=b.firstChild;Bo(C),n.display.lineSpace.insertBefore(b,n.display.lineSpace.firstChild),C.value=zt.text.join(`
19`);var T=Oe(Ne(i));A(C),setTimeout(function(){n.display.lineSpace.removeChild(b),T.focus(),T==i&&r.showPrimarySelection()},50)}}ae(i,"copy",a),ae(i,"cut",a)},Pe.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Pe.prototype.prepareSelection=function(){var e=Oa(this.cm,!1);return e.focus=Oe(Ne(this.div))==this.div,e},Pe.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Pe.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Pe.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),n=r.from(),i=r.to();if(t.display.viewTo==t.display.viewFrom||n.line>=t.display.viewTo||i.line<t.display.viewFrom){e.removeAllRanges();return}var o=si(t,e.anchorNode,e.anchorOffset),a=si(t,e.focusNode,e.focusOffset);if(!(o&&!o.bad&&a&&!a.bad&&ke(Or(o,a),n)==0&&ke(Br(o,a),i)==0)){var l=t.display.view,s=n.line>=t.display.viewFrom&&$l(t,n)||{node:l[0].measure.map[2],offset:0},c=i.line<t.display.viewTo&&$l(t,i);if(!c){var b=l[l.length-1].measure,C=b.maps?b.maps[b.maps.length-1]:b.map;c={node:C[C.length-1],offset:C[C.length-2]-C[C.length-3]}}if(!s||!c){e.removeAllRanges();return}var T=e.rangeCount&&e.getRangeAt(0),E;try{E=Z(s.node,s.offset,c.offset,c.node)}catch{}E&&(!g&&t.state.focused?(e.collapse(s.node,s.offset),E.collapsed||(e.removeAllRanges(),e.addRange(E))):(e.removeAllRanges(),e.addRange(E)),T&&e.anchorNode==null?e.addRange(T):g&&this.startGracePeriod()),this.rememberSelection()}},Pe.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},Pe.prototype.showMultipleSelections=function(e){be(this.cm.display.cursorDiv,e.cursors),be(this.cm.display.selectionDiv,e.selection)},Pe.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Pe.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return me(this.div,t)},Pe.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Oe(Ne(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Pe.prototype.blur=function(){this.div.blur()},Pe.prototype.getField=function(){return this.div},Pe.prototype.supportsTouch=function(){return!0},Pe.prototype.receivedFocus=function(){var e=this,t=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):Ft(this.cm,function(){return t.cm.curOp.selectionChanged=!0});function r(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,r))}this.polling.set(this.cm.options.pollInterval,r)},Pe.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Pe.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),t=this.cm;if(H&&M&&this.cm.display.gutterSpecs.length&&sc(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var r=si(t,e.anchorNode,e.anchorOffset),n=si(t,e.focusNode,e.focusOffset);r&&n&&Ft(t,function(){mt(t.doc,an(r,n),ht),(r.bad||n.bad)&&(t.curOp.selectionChanged=!0)})}}},Pe.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,r=e.doc.sel.primary(),n=r.from(),i=r.to();if(n.ch==0&&n.line>e.firstLine()&&(n=X(n.line-1,ve(e.doc,n.line-1).length)),i.ch==ve(e.doc,i.line).text.length&&i.line<e.lastLine()&&(i=X(i.line+1,0)),n.line<t.viewFrom||i.line>t.viewTo-1)return!1;var o,a,l;n.line==t.viewFrom||(o=Dn(e,n.line))==0?(a=He(t.view[0].line),l=t.view[0].node):(a=He(t.view[o].line),l=t.view[o-1].node.nextSibling);var s=Dn(e,i.line),c,b;if(s==t.view.length-1?(c=t.viewTo-1,b=t.lineDiv.lastChild):(c=He(t.view[s+1].line)-1,b=t.view[s+1].node.previousSibling),!l)return!1;for(var C=e.doc.splitLines(uc(e,l,b,a,c)),T=gn(e.doc,X(a,0),X(c,ve(e.doc,c).text.length));C.length>1&&T.length>1;)if(Me(C)==Me(T))C.pop(),T.pop(),c--;else if(C[0]==T[0])C.shift(),T.shift(),a++;else break;for(var E=0,R=0,G=C[0],Q=T[0],ie=Math.min(G.length,Q.length);E<ie&&G.charCodeAt(E)==Q.charCodeAt(E);)++E;for(var ce=Me(C),oe=Me(T),de=Math.min(ce.length-(C.length==1?E:0),oe.length-(T.length==1?E:0));R<de&&ce.charCodeAt(ce.length-R-1)==oe.charCodeAt(oe.length-R-1);)++R;if(C.length==1&&T.length==1&&a==n.line)for(;E&&E>n.ch&&ce.charCodeAt(ce.length-R-1)==oe.charCodeAt(oe.length-R-1);)E--,R++;C[C.length-1]=ce.slice(0,ce.length-R).replace(/^\u200b+/,""),C[0]=C[0].slice(E).replace(/\u200b+$/,"");var we=X(a,E),xe=X(c,T.length?Me(T).length-R:0);if(C.length>1||C[0]||ke(we,xe))return Un(e.doc,C,we,xe,"+input"),!0},Pe.prototype.ensurePolled=function(){this.forceCompositionEnd()},Pe.prototype.reset=function(){this.forceCompositionEnd()},Pe.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Pe.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},Pe.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Ft(this.cm,function(){return bt(e.cm)})},Pe.prototype.setUneditable=function(e){e.contentEditable="false"},Pe.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||lt(this.cm,Mo)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},Pe.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Pe.prototype.onContextMenu=function(){},Pe.prototype.resetPosition=function(){},Pe.prototype.needsContentAttribute=!0;function $l(e,t){var r=Yi(e,t.line);if(!r||r.hidden)return null;var n=ve(e.doc,t.line),i=ya(r,n,t.line),o=ue(n,e.doc.direction),a="left";if(o){var l=Ce(o,t.ch);a=l%2?"right":"left"}var s=Ca(i.map,t.ch,a);return s.offset=s.collapse=="right"?s.end:s.start,s}function sc(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Xn(e,t){return t&&(e.bad=!0),e}function uc(e,t,r,n,i){var o="",a=!1,l=e.doc.lineSeparator(),s=!1;function c(E){return function(R){return R.id==E}}function b(){a&&(o+=l,s&&(o+=l),a=s=!1)}function C(E){E&&(b(),o+=E)}function T(E){if(E.nodeType==1){var R=E.getAttribute("cm-text");if(R){C(R);return}var G=E.getAttribute("cm-marker"),Q;if(G){var ie=e.findMarks(X(n,0),X(i+1,0),c(+G));ie.length&&(Q=ie[0].find(0))&&C(gn(e.doc,Q.from,Q.to).join(l));return}if(E.getAttribute("contenteditable")=="false")return;var ce=/^(pre|div|p|li|table|br)$/i.test(E.nodeName);if(!/^br$/i.test(E.nodeName)&&E.textContent.length==0)return;ce&&b();for(var oe=0;oe<E.childNodes.length;oe++)T(E.childNodes[oe]);/^(pre|p)$/i.test(E.nodeName)&&(s=!0),ce&&(a=!0)}else E.nodeType==3&&C(E.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;T(t),t!=r;)t=t.nextSibling,s=!1;return o}function si(e,t,r){var n;if(t==e.display.lineDiv){if(n=e.display.lineDiv.childNodes[r],!n)return Xn(e.clipPos(X(e.display.viewTo-1)),!0);t=null,r=0}else for(n=t;;n=n.parentNode){if(!n||n==e.display.lineDiv)return null;if(n.parentNode&&n.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==n)return cc(o,t,r)}}function cc(e,t,r){var n=e.text.firstChild,i=!1;if(!t||!me(n,t))return Xn(X(He(e.line),0),!0);if(t==n&&(i=!0,t=n.childNodes[r],r=0,!t)){var o=e.rest?Me(e.rest):e.line;return Xn(X(He(o),o.text.length),i)}var a=t.nodeType==3?t:null,l=t;for(!a&&t.childNodes.length==1&&t.firstChild.nodeType==3&&(a=t.firstChild,r&&(r=a.nodeValue.length));l.parentNode!=n;)l=l.parentNode;var s=e.measure,c=s.maps;function b(Q,ie,ce){for(var oe=-1;oe<(c?c.length:0);oe++)for(var de=oe<0?s.map:c[oe],we=0;we<de.length;we+=3){var xe=de[we+2];if(xe==Q||xe==ie){var Te=He(oe<0?e.line:e.rest[oe]),_e=de[we]+ce;return(ce<0||xe!=Q)&&(_e=de[we+(ce?1:0)]),X(Te,_e)}}}var C=b(a,l,r);if(C)return Xn(C,i);for(var T=l.nextSibling,E=a?a.nodeValue.length-r:0;T;T=T.nextSibling){if(C=b(T,T.firstChild,0),C)return Xn(X(C.line,C.ch-E),i);E+=T.textContent.length}for(var R=l.previousSibling,G=r;R;R=R.previousSibling){if(C=b(R,R.firstChild,-1),C)return Xn(X(C.line,C.ch+G),i);G+=R.textContent.length}}var Qe=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new it,this.hasSelection=!1,this.composing=null,this.resetting=!1};Qe.prototype.init=function(e){var t=this,r=this,n=this.cm;this.createField(e);var i=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),I&&(i.style.width="0px"),ae(i,"input",function(){x&&S>=9&&t.hasSelection&&(t.hasSelection=null),r.poll()}),ae(i,"paste",function(a){Be(n,a)||Rl(a,n)||(n.state.pasteIncoming=+new Date,r.fastPoll())});function o(a){if(!Be(n,a)){if(n.somethingSelected())li({lineWise:!1,text:n.getSelections()});else if(n.options.lineWiseCopyCut){var l=Wl(n);li({lineWise:!0,text:l.text}),a.type=="cut"?n.setSelections(l.ranges,null,ht):(r.prevInput="",i.value=l.text.join(`
20`),A(i))}else return;a.type=="cut"&&(n.state.cutIncoming=+new Date)}}ae(i,"cut",o),ae(i,"copy",o),ae(e.scroller,"paste",function(a){if(!(Zt(e,a)||Be(n,a))){if(!i.dispatchEvent){n.state.pasteIncoming=+new Date,r.focus();return}var l=new Event("paste");l.clipboardData=a.clipboardData,i.dispatchEvent(l)}}),ae(e.lineSpace,"selectstart",function(a){Zt(e,a)||Ye(a)}),ae(i,"compositionstart",function(){var a=n.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:a,range:n.markText(a,n.getCursor("to"),{className:"CodeMirror-composing"})}}),ae(i,"compositionend",function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})},Qe.prototype.createField=function(e){this.wrapper=jl(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;Bo(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},Qe.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Qe.prototype.prepareSelection=function(){var e=this.cm,t=e.display,r=e.doc,n=Oa(e);if(e.options.moveInputWithCursor){var i=Nt(e,r.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return n},Qe.prototype.showSelection=function(e){var t=this.cm,r=t.display;be(r.cursorDiv,e.cursors),be(r.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Qe.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var r=t.getSelection();this.textarea.value=r,t.state.focused&&A(this.textarea),x&&S>=9&&(this.hasSelection=r)}else e||(this.prevInput=this.textarea.value="",x&&S>=9&&(this.hasSelection=null));this.resetting=!1}},Qe.prototype.getField=function(){return this.textarea},Qe.prototype.supportsTouch=function(){return!1},Qe.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!_||Oe(Ne(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Qe.prototype.blur=function(){this.textarea.blur()},Qe.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Qe.prototype.receivedFocus=function(){this.slowPoll()},Qe.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Qe.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function r(){var n=t.poll();!n&&!e?(e=!0,t.polling.set(60,r)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,r)},Qe.prototype.poll=function(){var e=this,t=this.cm,r=this.textarea,n=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||us(r)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=r.value;if(i==n&&!t.somethingSelected())return!1;if(x&&S>=9&&this.hasSelection===i||j&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(o==8203&&!n&&(n="​"),o==8666)return this.reset(),this.cm.execCommand("undo")}for(var a=0,l=Math.min(n.length,i.length);a<l&&n.charCodeAt(a)==i.charCodeAt(a);)++a;return Ft(t,function(){Mo(t,i.slice(a),n.length-a,null,e.composing?"*compose":null),i.length>1e3||i.indexOf(`
21`)>-1?r.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Qe.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Qe.prototype.onKeyPress=function(){x&&S>=9&&(this.hasSelection=null),this.fastPoll()},Qe.prototype.onContextMenu=function(e){var t=this,r=t.cm,n=r.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=bn(r,e),a=n.scroller.scrollTop;if(!o||$)return;var l=r.options.resetSelectionOnContextMenu;l&&r.doc.sel.contains(o)==-1&&lt(r,mt)(r.doc,an(o),ht);var s=i.style.cssText,c=t.wrapper.style.cssText,b=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",i.style.cssText=`position: absolute; width: 30px; height: 30px;
22      top: `+(e.clientY-b.top-5)+"px; left: "+(e.clientX-b.left-5)+`px;
23      z-index: 1000; background: `+(x?"rgba(255, 255, 255, .05)":"transparent")+`;
24      outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var C;z&&(C=i.ownerDocument.defaultView.scrollY),n.input.focus(),z&&i.ownerDocument.defaultView.scrollTo(null,C),n.input.reset(),r.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=E,n.selForContextMenu=r.doc.sel,clearTimeout(n.detectingSelectAll);function T(){if(i.selectionStart!=null){var G=r.somethingSelected(),Q="​"+(G?i.value:"");i.value="⇚",i.value=Q,t.prevInput=G?"":"​",i.selectionStart=1,i.selectionEnd=Q.length,n.selForContextMenu=r.doc.sel}}function E(){if(t.contextMenuPending==E&&(t.contextMenuPending=!1,t.wrapper.style.cssText=c,i.style.cssText=s,x&&S<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=a),i.selectionStart!=null)){(!x||x&&S<9)&&T();var G=0,Q=function(){n.selForContextMenu==r.doc.sel&&i.selectionStart==0&&i.selectionEnd>0&&t.prevInput=="​"?lt(r,ul)(r):G++<10?n.detectingSelectAll=setTimeout(Q,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(Q,200)}}if(x&&S>=9&&T(),We){pn(e);var R=function(){Ue(window,"mouseup",R),setTimeout(E,20)};ae(window,"mouseup",R)}else setTimeout(E,50)},Qe.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Qe.prototype.setUneditable=function(){},Qe.prototype.needsContentAttribute=!1;function fc(e,t){if(t=t?ft(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var r=Oe(Ne(e));t.autofocus=r==e||e.getAttribute("autofocus")!=null&&r==document.body}function n(){e.value=l.getValue()}var i;if(e.form&&(ae(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){n(),o.submit=i,o.submit(),o.submit=a}}catch{}}t.finishInit=function(s){s.save=n,s.getTextArea=function(){return e},s.toTextArea=function(){s.toTextArea=isNaN,n(),e.parentNode.removeChild(s.getWrapperElement()),e.style.display="",e.form&&(Ue(e.form,"submit",n),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=i))}},e.style.display="none";var l=qe(function(s){return e.parentNode.insertBefore(s,e.nextSibling)},t);return l}function hc(e){e.off=Ue,e.on=ae,e.wheelEventPixels=yu,e.Doc=Dt,e.splitLines=Oi,e.countColumn=$e,e.findColumn=Bt,e.isWordChar=h,e.Pass=Xe,e.signal=Ae,e.Line=Nn,e.changeEnd=ln,e.scrollbarModel=Ra,e.Pos=X,e.cmpPos=ke,e.modes=Ii,e.mimeModes=Bn,e.resolveMode=Mr,e.getMode=zi,e.modeExtensions=On,e.extendMode=ps,e.copyState=mn,e.startState=Uo,e.innerMode=Hi,e.commands=kr,e.keyMap=Jt,e.keyName=Fl,e.isModifierKey=wl,e.lookupKey=Vn,e.normalizeKeyMap=Wu,e.StringStream=tt,e.SharedTextMarker=Dr,e.TextMarker=un,e.LineWidget=br,e.e_preventDefault=Ye,e.e_stopPropagation=tn,e.e_stop=pn,e.addClass=et,e.contains=me,e.rmClass=Ee,e.keyNames=cn}rc(qe),lc(qe);var dc="iter insert remove copy getEditor constructor".split(" ");for(var ui in Dt.prototype)Dt.prototype.hasOwnProperty(ui)&&Ie(dc,ui)<0&&(qe.prototype[ui]=(function(e){return function(){return e.apply(this.doc,arguments)}}
24)(Dt.prototype[ui]));return yt(Dt),qe.inputStyles={textarea:Qe,contenteditable:Pe},qe.defineMode=function(e){!qe.defaults.mode&&e!="null"&&(qe.defaults.mode=e),hs.apply(this,arguments)},qe.defineMIME=ds,qe.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),qe.defineMIME("text/plain","null"),qe.defineExtension=function(e,t){qe.prototype[e]=t},qe.defineDocExtension=function(e,t){Dt.prototype[e]=t},qe.fromTextArea=fc,hc(qe),qe.version="5.65.17",qe})})(Zl);var Tt=Zl.exports;(function(u,D){(function(f){f(Tt)})(function(f){var m=/^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,g=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,w=/[*+-]\s/;f.commands.newlineAndIndentContinueMarkdownList=function(y){if(y.getOption("disableInput"))return f.Pass;for(var x=y.listSelections(),S=[],z=0;z<x.length;z++){var P=x[z].head,M=y.getStateAfter(P.line),q=f.innerMode(y.getMode(),M);if(q.mode.name!=="markdown"&&q.mode.helperType!=="markdown"){y.execCommand("newlineAndIndent");return}else M=q.state;var $=M.list!==!1,ne=M.quote!==0,J=y.getLine(P.line),K=m.exec(J),I=/^\s*$/.test(J.slice(0,P.ch));if(!x[z].empty()||!$&&!ne||!K||I){y.execCommand("newlineAndIndent");return}if(g.test(J)){var H=ne&&/>\s*$/.test(J),_=!/>\s*$/.test(J);(H||_)&&y.replaceRange("",{line:P.line,ch:0},{line:P.line,ch:P.ch+1}),S[z]=`
25`}else{var j=K[1],ee=K[5],V=!(w.test(K[2])||K[2].indexOf(">")>=0),se=V?parseInt(K[3],10)+1+K[4]:K[2].replace("x"," ");S[z]=`
26`+j+se+ee,V&&v(y,P)}}y.replaceSelections(S)};function v(y,x){var S=x.line,z=0,P=0,M=m.exec(y.getLine(S)),q=M[1];do{z+=1;var $=S+z,ne=y.getLine($),J=m.exec(ne);if(J){var K=J[1],I=parseInt(M[3],10)+z-P,H=parseInt(J[3],10),_=H;if(q===K&&!isNaN(H))I===H&&(_=H+1),I>H&&(_=I+1),y.replaceRange(ne.replace(m,K+_+J[4]+J[5]),{line:$,ch:0},{line:$,ch:ne.length});else{if(q.length>K.length||q.length<K.length&&z===1)return;P+=1}}}while(J)}})})();var Xl=Tt;Xl.commands.tabAndIndentMarkdownList=function(u){var D=u.listSelections(),f=D[0].head,m=u.getStateAfter(f.line),g=m.list!==!1;if(g){u.execCommand("indentMore");return}if(u.options.indentWithTabs)u.execCommand("insertTab");else{var w=Array(u.options.tabSize+1).join(" ");u.replaceSelection(w)}};Xl.commands.shiftTabAndUnindentMarkdownList=function(u){var D=u.listSelections(),f=D[0].head,m=u.getStateAfter(f.line),g=m.list!==!1;if(g){u.execCommand("indentLess");return}if(u.options.indentWithTabs)u.execCommand("insertTab");else{var w=Array(u.options.tabSize+1).join(" ");u.replaceSelection(w)}};(function(u,D){(function(f){f(Tt)})(function(f){f.defineOption("fullScreen",!1,function(w,v,y){y==f.Init&&(y=!1),!y!=!v&&(v?m(w):g(w))});function m(w){var v=w.getWrapperElement();w.state.fullScreenRestore={scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,width:v.style.width,height:v.style.height},v.style.width="",v.style.height="auto",v.className+=" CodeMirror-fullscreen",document.documentElement.style.overflow="hidden",w.refresh()}function g(w){var v=w.getWrapperElement();v.className=v.className.replace(/\s*CodeMirror-fullscreen\b/,""),document.documentElement.style.overflow="";var y=w.state.fullScreenRestore;v.style.width=y.width,v.style.height=y.height,window.scrollTo(y.scrollLeft,y.scrollTop),w.refresh()}})})();var vc={exports:{}},xc={exports:{}};(function(u,D){(function(f){f(Tt)})(function(f){var m={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},g={autoSelfClosers:{}
26,implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};f.defineMode("xml",function(w,v){var y=w.indentUnit,x={},S=v.htmlMode?m:g;for(var z in S)x[z]=S[z];for(var z in v)x[z]=v[z];var P,M;function q(L,Y){function Z(et){return Y.tokenize=et,et(L,Y)}var me=L.next();if(me=="<")return L.eat("!")?L.eat("[")?L.match("CDATA[")?Z(J("atom","]]>")):null:L.match("--")?Z(J("comment","-->")):L.match("DOCTYPE",!0,!0)?(L.eatWhile(/[\w\._\-]/),Z(K(1))):null:L.eat("?")?(L.eatWhile(/[\w\._\-]/),Y.tokenize=J("meta","?>"),"meta"):(P=L.eat("/")?"closeTag":"openTag",Y.tokenize=$,"tag bracket");if(me=="&"){var Oe;return L.eat("#")?L.eat("x")?Oe=L.eatWhile(/[a-fA-F\d]/)&&L.eat(";"):Oe=L.eatWhile(/[\d]/)&&L.eat(";"):Oe=L.eatWhile(/[\w\.\-:]/)&&L.eat(";"),Oe?"atom":"error"}else return L.eatWhile(/[^&<]/),null}q.isInText=!0;function $(L,Y){var Z=L.next();if(Z==">"||Z=="/"&&L.eat(">"))return Y.tokenize=q,P=Z==">"?"endTag":"selfcloseTag","tag bracket";if(Z=="=")return P="equals",null;if(Z=="<"){Y.tokenize=q,Y.state=ee,Y.tagName=Y.tagStart=null;var me=Y.tokenize(L,Y);return me?me+" tag error":"tag error"}else return/[\'\"]/.test(Z)?(Y.tokenize=ne(Z),Y.stringStartCol=L.column(),Y.tokenize(L,Y)):(L.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function ne(L){var Y=function(Z,me){for(;!Z.eol();)if(Z.next()==L){me.tokenize=$;break}return"string"};return Y.isInAttribute=!0,Y}function J(L,Y){return function(Z,me){for(;!Z.eol();){if(Z.match(Y)){me.tokenize=q;break}Z.next()}return L}}function K(L){return function(Y,Z){for(var me;(me=Y.next())!=null;){if(me=="<")return Z.tokenize=K(L+1),Z.tokenize(Y,Z);if(me==">")if(L==1){Z.tokenize=q;break}else return Z.tokenize=K(L-1),Z.tokenize(Y,Z)}return"meta"}}function I(L){return L&&L.toLowerCase()}function H(L,Y,Z){this.prev=L.context,this.tagName=Y||"",this.indent=L.indented,this.startOfLine=Z,(x.doNotIndent.hasOwnProperty(Y)||L.context&&L.context.noIndent)&&(this.noIndent=!0)}function _(L){L.context&&(L.context=L.context.prev)}function j(L,Y){for(var Z;;){if(!L.context||(Z=L.context.tagName,!x.contextGrabbers.hasOwnProperty(I(Z))||!x.contextGrabbers[I(Z)].hasOwnProperty(I(Y))))return;_(L)}}function ee(L,Y,Z){return L=="openTag"?(Z.tagStart=Y.column(),V):L=="closeTag"?se:ee}function V(L,Y,Z){return L=="word"?(Z.tagName=Y.current(),M="tag",te):x.allowMissingTagName&&L=="endTag"?(M="tag bracket",te(L,Y,Z)):(M="error",V)}function se(L,Y,Z){if(L=="word"){var me=Y.current();return Z.context&&Z.context.tagName!=me&&x.implicitlyClosed.hasOwnProperty(I(Z.context.tagName))&&_(Z),Z.context&&Z.context.tagName==me||x.matchClosing===!1?(M="tag",pe):(M="tag error",We)}else return x.allowMissingTagName&&L=="endTag"?(M="tag bracket",pe(L,Y,Z)):(M="error",We)}function pe(L,Y,Z){return L!="endTag"?(M="error",pe):(_(Z),ee)}function We(L,Y,Z){return M="error",pe(L,Y,Z)}function te(L,Y,Z){if(L=="word")return M="attribute",Ee;if(L=="endTag"||L=="selfcloseTag"){var me=Z.tagName,Oe=Z.tagStart;return Z.tagName=Z.tagStart=null,L=="selfcloseTag"||x.autoSelfClosers.hasOwnProperty(I(me))?j(Z,me):(j(Z,me),Z.context=new H(Z,me,Oe==Z.indented)),ee}return M="error",te}function Ee(L,Y,Z){return L=="equals"?Le:(x.allowMissing||(M="error"),te(L,Y,Z))}function Le(L,Y,Z){return L=="string"?be:L=="word"&&x.allowUnquoted?(M="string",te):(M="error",te(L,Y,Z))}function be(L,Y,Z){return L=="string"?be:te(L,Y,Z)}return{startState:function(L){var Y={tokenize:q,state:ee,indented:L||0,tagName:null,tagStart:null,context:null};return L!=null&&(Y.baseIndent=L),Y},token:function(L,Y){if(!Y.tagName&&L.sol()&&(Y.indented=L.indentation()),L.eatSpace())return null;P=null;var Z=Y.tokenize(L,Y);return(Z||P)&&Z!="comment"&&(M=null,Y.state=Y.state(P||Z,L,Y),M&&(Z=M=="error"?Z+" error":M)),Z},indent:function(L,Y,Z){var me=L.context;if(L.tokenize.isInAttribute)return L.tagStart==L.indented?L.stringStartCol+1:L.indented+y;if(me&&me.noIndent)return f.Pass;if(L.tokenize!=$&&L.tokenize!=q)return Z?Z.match(/^(\s*)/)[0].length:0;if(L.tagName)return x.multilineTagIndentPastTag!==!1?L.tagStart+L.tagName.length+2:L.tagStart+y*(x.multilineTagIndentFactor||1);if(x.alignCDATA&&/<!\[CDATA\[/.test(Y))return 0;var Oe=Y&&/^<(\/)?([\w_:\.-]*)/.exec(Y);
26if(Oe&&Oe[1])for(;me;)if(me.tagName==Oe[2]){me=me.prev;break}else if(x.implicitlyClosed.hasOwnProperty(I(me.tagName)))me=me.prev;else break;else if(Oe)for(;me;){var et=x.contextGrabbers[I(me.tagName)];if(et&&et.hasOwnProperty(I(Oe[2])))me=me.prev;else break}for(;me&&me.prev&&!me.startOfLine;)me=me.prev;return me?me.indent+y:L.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:x.htmlMode?"html":"xml",helperType:x.htmlMode?"html":"xml",skipAttribute:function(L){L.state==Le&&(L.state=te)},xmlCurrentTag:function(L){return L.tagName?{name:L.tagName,close:L.type=="closeTag"}:null},xmlCurrentContext:function(L){for(var Y=[],Z=L.context;Z;Z=Z.prev)Y.push(Z.tagName);return Y.reverse()}}}),f.defineMIME("text/xml","xml"),f.defineMIME("application/xml","xml"),f.mimeModes.hasOwnProperty("text/html")||f.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();var yc=xc.exports,bc={exports:{}},Ul;function Dc(){return Ul||(Ul=1,(function(u,D){(function(f){f(Tt)})(function(f){f.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","cbl
vendor: 10,890 bytes, line 26
26"]},{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"],alias:["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 
26m=0;m<f.modeInfo.length;m++){var g=f.modeInfo[m];g.mimes&&(g.mime=g.mimes[0])}f.findModeByMIME=function(w){w=w.toLowerCase();for(var v=0;v<f.modeInfo.length;v++){var y=f.modeInfo[v];if(y.mime==w)return y;if(y.mimes){for(var x=0;x<y.mimes.length;x++)if(y.mimes[x]==w)return y}}if(/\+xml$/.test(w))return f.findModeByMIME("application/xml");if(/\+json$/.test(w))return f.findModeByMIME("application/json")},f.findModeByExtension=function(w){w=w.toLowerCase();for(var v=0;v<f.modeInfo.length;v++){var y=f.modeInfo[v];if(y.ext){for(var x=0;x<y.ext.length;x++)if(y.ext[x]==w)return y}}},f.findModeByFileName=function(w){for(var v=0;v<f.modeInfo.length;v++){var y=f.modeInfo[v];if(y.file&&y.file.test(w))return y}var x=w.lastIndexOf("."),S=x>-1&&w.substring(x+1,w.length);if(S)return f.findModeByExtension(S)},f.findModeByName=function(w){w=w.toLowerCase();for(var v=0;v<f.modeInfo.length;v++){var y=f.modeInfo[v];if(y.name.toLowerCase()==w)return y;if(y.alias){for(var x=0;x<y.alias.length;x++)if(y.alias[x].toLowerCase()==w)return y}}}})})()),bc.exports}(function(u,D){(function(f){f(Tt,yc,Dc())})(function(f){f.defineMode("markdown",function(m,g){var w=f.getMode(m,"text/html"),v=w.name=="null";function y(A){if(f.findModeByName){var d=f.findModeByName(A);d&&(A=d.mime||d.mimes[0])}var W=f.getMode(m,A);return W.name=="null"?null:W}g.highlightFormatting===void 0&&(g.highlightFormatting=!1),g.maxBlockquoteDepth===void 0&&(g.maxBlockquoteDepth=0),g.taskLists===void 0&&(g.taskLists=!1),g.strikethrough===void 0&&(g.strikethrough=!1),g.emoji===void 0&&(g.emoji=!1),g.fencedCodeBlockHighlighting===void 0&&(g.fencedCodeBlockHighlighting=!0),g.fencedCodeBlockDefaultMode===void 0&&(g.fencedCodeBlockDefaultMode="text/plain"),g.xml===void 0&&(g.xml=!0),g.tokenTypeOverrides===void 0&&(g.tokenTypeOverrides={});var x={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var S in x)x.hasOwnProperty(S)&&g.tokenTypeOverrides[S]&&(x[S]=g.tokenTypeOverrides[S]);var z=/^([*\-_])(?:\s*\1){2,}
26\s*$/,P=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,M=/^\[(x| )\](?=\s)/i,q=g.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,$=/^ {0,3}(?:\={1,}|-{2,})\s*$/,ne=/^[^#!\[\]*_\\<>` "'(~:]+/,J=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,K=/^\s*\[[^\]]+?\]:.*$/,I=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,H="    ";function _(A,d,W){return d.f=d.inline=W,W(A,d)}function j(A,d,W){return d.f=d.block=W,W(A,d)}function ee(A){return!A||!/\S/.test(A.string)}function V(A){if(A.linkTitle=!1,A.linkHref=!1,A.linkText=!1,A.em=!1,A.strong=!1,A.strikethrough=!1,A.quote=0,A.indentedCode=!1,A.f==pe){var d=v;if(!d){var W=f.innerMode(w,A.htmlState);d=W.mode.name=="xml"&&W.state.tagStart===null&&!W.state.context&&W.state.tokenize.isInText}d&&(A.f=Le,A.block=se,A.htmlState=null)}return A.trailingSpace=0,A.trailingSpaceNewLine=!1,A.prevLine=A.thisLine,A.thisLine={stream:null},null}function se(A,d){var W=A.column()===d.indentation,Ne=ee(d.prevLine.stream),Se=d.indentedCode,Ze=d.prevLine.hr,ft=d.list!==!1,$e=(d.listStack[d.listStack.length-1]||0)+3;d.indentedCode=!1;var it=d.indentation;if(d.indentationDiff===null&&(d.indentationDiff=d.indentation,ft)){for(d.list=null;it<d.listStack[d.listStack.length-1];)d.listStack.pop(),d.listStack.length?d.indentation=d.listStack[d.listStack.length-1]:d.list=!1;d.list!==!1&&(d.indentationDiff=it-d.listStack[d.listStack.length-1])}var Ie=!Ne&&!Ze&&!d.prevLine.header&&(!ft||!Se)&&!d.prevLine.fencedCodeEnd,Re=(d.list===!1||Ze||Ne)&&d.indentation<=$e&&A.match(z),Xe=null;if(d.indentationDiff>=4&&(Se||d.prevLine.fencedCodeEnd||d.prevLine.header||Ne))return A.skipToEnd(),d.indentedCode=!0,x.code;if(A.eatSpace())return null;if(W&&d.indentation<=$e&&(Xe=A.match(q))&&Xe[1].length<=6)return d.quote=0,d.header=Xe[1].length,d.thisLine.header=!0,g.highlightFormatting&&(d.formatting="header"),d.f=d.inline,te(d);if(d.indentation<=$e&&A.eat(">"))return d.quote=W?1:d.quote+1,g.highlightFormatting&&(d.formatting="quote"),A.eatSpace(),te(d);if(!Re&&!d.setext&&W&&d.indentation<=$e&&(Xe=A.match(P))){var ht=Xe[1]?"ol":"ul";return d.indentation=it+A.current().length,d.list=!0,d.quote=0,d.listStack.push(d.indentation),d.em=!1,d.strong=!1,d.code=!1,d.strikethrough=!1,g.taskLists&&A.match(M,!1)&&(d.taskList=!0),d.f=d.inline,g.highlightFormatting&&(d.formatting=["list","list-"+ht]),te(d)}else{if(W&&d.indentation<=$e&&(Xe=A.match(J,!0)))return d.quote=0,d.fencedEndRE=new RegExp(Xe[1]+"+ *$"),d.localMode=g.fencedCodeBlockHighlighting&&y(Xe[2]||g.fencedCodeBlockDefaultMode),d.localMode&&(d.localState=f.startState(d.localMode)),d.f=d.block=We,g.highlightFormatting&&(d.formatting="code-block"),d.code=-1,te(d);if(d.setext||(!Ie||!ft)&&!d.quote&&d.list===!1&&!d.code&&!Re&&!K.test(A.string)&&(Xe=A.lookAhead(1))&&(Xe=Xe.match($)))return d.setext?(d.header=d.setext,d.setext=0,A.skipToEnd(),g.highlightFormatting&&(d.formatting="header")):(d.header=Xe[0].charAt(0)=="="?1:2,d.setext=d.header),d.thisLine.header=!0,d.f=d.inline,te(d);
26if(Re)return A.skipToEnd(),d.hr=!0,d.thisLine.hr=!0,x.hr;if(A.peek()==="[")return _(A,d,me)}return _(A,d,d.inline)}function pe(A,d){var W=w.token(A,d.htmlState);if(!v){var Ne=f.innerMode(w,d.htmlState);(Ne.mode.name=="xml"&&Ne.state.tagStart===null&&!Ne.state.context&&Ne.state.tokenize.isInText||d.md_inside&&A.current().indexOf(">")>-1)&&(d.f=Le,d.block=se,d.htmlState=null)}return W}function We(A,d){var W=d.listStack[d.listStack.length-1]||0,Ne=d.indentation<W,Se=W+3;if(d.fencedEndRE&&d.indentation<=Se&&(Ne||A.match(d.fencedEndRE))){g.highlightFormatting&&(d.formatting="code-block");var Ze;return Ne||(Ze=te(d)),d.localMode=d.localState=null,d.block=se,d.f=Le,d.fencedEndRE=null,d.code=0,d.thisLine.fencedCodeEnd=!0,Ne?j(A,d,d.block):Ze}else return d.localMode?d.localMode.token(A,d.localState):(A.skipToEnd(),x.code)}function te(A){var d=[];if(A.formatting){d.push(x.formatting),typeof A.formatting=="string"&&(A.formatting=[A.formatting]);for(var W=0;W<A.formatting.length;W++)d.push(x.formatting+"-"+A.formatting[W]),A.formatting[W]==="header"&&d.push(x.formatting+"-"+A.formatting[W]+"-"+A.header),A.formatting[W]==="quote"&&(!g.maxBlockquoteDepth||g.maxBlockquoteDepth>=A.quote?d.push(x.formatting+"-"+A.formatting[W]+"-"+A.quote):d.push("error"))}if(A.taskOpen)return d.push("meta"),d.length?d.join(" "):null;if(A.taskClosed)return d.push("property"),d.length?d.join(" "):null;if(A.linkHref?d.push(x.linkHref,"url"):(A.strong&&d.push(x.strong),A.em&&d.push(x.em),A.strikethrough&&d.push(x.strikethrough),A.emoji&&d.push(x.emoji),A.linkText&&d.push(x.linkText),A.code&&d.push(x.code),A.image&&d.push(x.image),A.imageAltText&&d.push(x.imageAltText,"link"),A.imageMarker&&d.push(x.imageMarker)),A.header&&d.push(x.header,x.header+"-"+A.header),A.quote&&(d.push(x.quote),!g.maxBlockquoteDepth||g.maxBlockquoteDepth>=A.quote?d.push(x.quote+"-"+A.quote):d.push(x.quote+"-"+g.maxBlockquoteDepth)),A.list!==!1){var Ne=(A.listStack.length-1)%3;Ne?Ne===1?d.push(x.list2):d.push(x.list3):d.push(x.list1)}return A.trailingSpaceNewLine?d.push("trailing-space-new-line"):A.trailingSpace&&d.push("trailing-space-"+(A.trailingSpace%2?"a":"b")),d.length?d.join(" "):null}function Ee(A,d){if(A.match(ne,!0))return te(d)}function Le(A,d){var W=d.text(A,d);if(typeof W<"u")return W;if(d.list)return d.list=null,te(d);if(d.taskList){var Ne=A.match(M,!0)[1]===" ";return Ne?d.taskOpen=!0:d.taskClosed=!0,g.highlightFormatting&&(d.formatting="task"),d.taskList=!1,te(d)}if(d.taskOpen=!1,d.taskClosed=!1,d.header&&A.match(/^#+$/,!0))return g.highlightFormatting&&(d.formatting="header"),te(d);var Se=A.next();if(d.linkTitle){d.linkTitle=!1;var Ze=Se;Se==="("&&(Ze=")"),Ze=(Ze+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var ft="^\\s*(?:[^"+Ze+"\\\\]+|\\\\\\\\|\\\\.)"+Ze;if(A.match(new RegExp(ft),!0))return x.linkHref}if(Se==="`"){var $e=d.formatting;g.highlightFormatting&&(d.formatting="code"),A.eatWhile("`");var it=A.current().length;if(d.code==0&&(!d.quote||it==1))return d.code=it,te(d);if(it==d.code){var Ie=te(d);return d.code=0,Ie}else return d.formatting=$e,te(d)}else if(d.code)return te(d);if(Se==="\\"&&(A.next(),g.highlightFormatting)){var Re=te(d),Xe=x.formatting+"-escape";return Re?Re+" "+Xe:Xe}if(Se==="!"&&A.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return d.imageMarker=!0,d.image=!0,g.highlightFormatting&&(d.formatting="image"),te(d);if(Se==="["&&d.imageMarker&&A.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return d.imageMarker=!1,d.imageAltText=!0,g.highlightFormatting&&(d.formatting="image"),te(d);if(Se==="]"&&d.imageAltText){g.highlightFormatting&&(d.formatting="image");var Re=te(d);return d.imageAltText=!1,d.image=!1,d.inline=d.f=L,Re}if(Se==="["&&!d.image)return d.linkText&&A.match(/^.*?\]/)||(d.linkText=!0,g.highlightFormatting&&(d.formatting="link")),te(d);if(Se==="]"&&d.linkText){g.highlightFormatting&&(d.formatting="link");var Re=te(d);return d.linkText=!1,d.inline=d.f=A.match(/\(.*?\)| ?\[.*?\]/,!1)?L:Le,Re}if(Se==="<"&&A.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){d.f=d.inline=be,g.highlightFormatting&&(d.formatting="link");var Re=te(d);return Re?Re+=" ":Re="",Re+x.linkInline}if(Se==="<"&&A.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){d.f=d.inline=be,g.highlightFormatting&&(d.formatting="link");var Re=te(d);return Re?Re+=" ":Re="",Re+x.linkEmail}if(g.xml&&Se==="<"&&A.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var ht=A.string.indexOf(">",A.pos);if(ht!=-1){var ye=A.string.substring(A.start,ht);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(ye)&&(d.md_inside=!0)}return A.backUp(1),d.htmlState=f.startState(w),j(A,d,pe)}if(g.xml&&Se==="<"&&A.match(/^\/\w*?>/))return d.md_inside=!1,"tag";if(Se==="*"||Se==="_"){for(var Mt=1,Bt=A.pos==1?" ":A.string.charAt(A.pos-2);Mt<3&&A.eat(Se);)Mt++;var St=A.peek()||" ",Pt=!/\s/.test(St)&&(!I.test(St)||/\s/.test(Bt)||I.test(Bt)),Me=!/\s/.test(Bt)&&(!I.test(Bt)||/\s/.test(St)||I.test(St)),Et=null,Rt=null;if(Mt%2&&(!d.em&&Pt&&(Se==="*"||!Me||I.test(Bt))?Et=!0:d.em==Se&&Me&&(Se==="*"||!Pt||I.test(St))&&(Et=!1)),Mt>1&&(!d.strong&&Pt&&(Se==="*"||!Me||I.test(Bt))?Rt=!0:d.strong==Se&&Me&&(Se==="*"||!Pt||I.test(St))&&(Rt=!1)),Rt!=null||Et!=null){g.highlightFormatting&&(d.formatting=Et==null?"strong":Rt==null?"em":"strong em"),Et===!0&&(d.em=Se),Rt===!0&&(d.strong=Se);var Ie=te(d);return Et===!1&&(d.em=!1),Rt===!1&&(d.strong=!1),Ie}}else if(Se===" "&&(A.eat("*")||A.eat("_"))){if(A.peek()===" ")return te(d);A.backUp(1)}
26if(g.strikethrough){if(Se==="~"&&A.eatWhile(Se)){if(d.strikethrough){g.highlightFormatting&&(d.formatting="strikethrough");var Ie=te(d);return d.strikethrough=!1,Ie}else if(A.match(/^[^\s]/,!1))return d.strikethrough=!0,g.highlightFormatting&&(d.formatting="strikethrough"),te(d)}else if(Se===" "&&A.match("~~",!0)){if(A.peek()===" ")return te(d);A.backUp(2)}}if(g.emoji&&Se===":"&&A.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){d.emoji=!0,g.highlightFormatting&&(d.formatting="emoji");var Mn=te(d);return d.emoji=!1,Mn}return Se===" "&&(A.match(/^ +$/,!1)?d.trailingSpace++:d.trailingSpace&&(d.trailingSpaceNewLine=!0)),te(d)}function be(A,d){var W=A.next();if(W===">"){d.f=d.inline=Le,g.highlightFormatting&&(d.formatting="link");var Ne=te(d);return Ne?Ne+=" ":Ne="",Ne+x.linkInline}return A.match(/^[^>]+/,!0),x.linkInline}function L(A,d){if(A.eatSpace())return null;var W=A.next();return W==="("||W==="["?(d.f=d.inline=Z(W==="("?")":"]"),g.highlightFormatting&&(d.formatting="link-string"),d.linkHref=!0,te(d)):"error"}var Y={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Z(A){return function(d,W){var Ne=d.next();if(Ne===A){W.f=W.inline=Le,g.highlightFormatting&&(W.formatting="link-string");var Se=te(W);return W.linkHref=!1,Se}return d.match(Y[A]),W.linkHref=!0,te(W)}}function me(A,d){return A.match(/^([^\]\\]|\\.)*\]:/,!1)?(d.f=Oe,A.next(),g.highlightFormatting&&(d.formatting="link"),d.linkText=!0,te(d)):_(A,d,Le)}function Oe(A,d){if(A.match("]:",!0)){d.f=d.inline=et,g.highlightFormatting&&(d.formatting="link");var W=te(d);return d.linkText=!1,W}return A.match(/^([^\]\\]|\\.)+/,!0),x.linkText}function et(A,d){return A.eatSpace()?null:(A.match(/^[^\s]+/,!0),A.peek()===void 0?d.linkTitle=!0:A.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),d.f=d.inline=Le,x.linkHref+" url")}var Ht={startState:function(){return{f:se,prevLine:{stream:null},thisLine:{stream:null},block:se,htmlState:null,indentation:0,inline:Le,text:Ee,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(A){return{f:A.f,prevLine:A.prevLine,thisLine:A.thisLine,block:A.block,htmlState:A.htmlState&&f.copyState(w,A.htmlState),indentation:A.indentation,localMode:A.localMode,localState:A.localMode?f.copyState(A.localMode,A.localState):null,inline:A.inline,text:A.text,formatting:!1,linkText:A.linkText,linkTitle:A.linkTitle,linkHref:A.linkHref,code:A.code,em:A.em,strong:A.strong,strikethrough:A.strikethrough,emoji:A.emoji,header:A.header,setext:A.setext,hr:A.hr,taskList:A.taskList,list:A.list,listStack:A.listStack.slice(0),quote:A.quote,indentedCode:A.indentedCode,trailingSpace:A.trailingSpace,trailingSpaceNewLine:A.trailingSpaceNewLine,md_inside:A.md_inside,fencedEndRE:A.fencedEndRE}},token:function(A,d){if(d.formatting=!1,A!=d.thisLine.stream){if(d.header=0,d.hr=!1,A.match(/^\s*$/,!0))return V(d),null;if(d.prevLine=d.thisLine,d.thisLine={stream:A},d.taskList=!1,d.trailingSpace=0,d.trailingSpaceNewLine=!1,!d.localState&&(d.f=d.block,d.f!=pe)){var W=A.match(/^\s*/,!0)[0].replace(/\t/g,H).length;if(d.indentation=W,d.indentationDiff=null,W>0)return null}}return d.f(A,d)},innerMode:function(A){return A.block==pe?{state:A.htmlState,mode:w}:A.localState?{state:A.localState,mode:A.localMode}:{state:A,mode:Ht}},indent:function(A,d,W){return A.block==pe&&w.indent?w.indent(A.htmlState,d,W):A.localState&&A.localMode.indent?A.localMode.indent(A.localState,d,W):f.Pass},blankLine:V,getType:te,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Ht},"xml"),f.defineMIME("text/markdown","markdown"),f.defineMIME("text/x-markdown","markdown")})})();var Cc=vc.exports,wc={exports:{}};(function(u,D){(function(f){f(Tt)})(function(f){f.overlayMode=function(m,g,w){return{startState:function(){return{base:f.startState(m),overlay:f.startState(g),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(v){return{base:f.copyState(m,v.base),overlay:f.copyState(g,v.overlay),basePos:v.basePos,baseCur:null,overlayPos:v.overlayPos,overlayCur:null}},token:function(v,y){return(v!=y.streamSeen||Math.min(y.basePos,y.overlayPos)<v.start)&&(y.streamSeen=v,y.basePos=y.overlayPos=v.start),v.start==y.basePos&&(y.baseCur=m.token(v,y.base),y.basePos=v.pos),v.start==y.overlayPos&&(v.pos=v.start,y.overlayCur=g.token(v,y.overlay),y.overlayPos=v.pos),v.pos=Math.min(y.basePos,y.overlayPos),y.overlayCur==null?y.baseCur:y.baseCur!=null&&y.overlay.combineTokens||w&&y.overlay.combineTokens==null?y.baseCur+" "+y.overlayCur:y.overlayCur},indent:m.indent&&function(v,y,x){return m.indent(v.base,y,x)},electricChars:m.electricChars,innerMode:function(v){return{state:v.base,mode:m}},blankLine:function(v){var y,x;return m.blankLine&&(y=m.blankLine(v.base)),g.blankLine&&(x=g.blankLine(v.overlay)),x==null?y:w&&y!=null?y+" "+x:x}}}})})();var kc=wc.exports;(function(u,D){(function(f){f(Tt)})(function(f){f.defineOption("placeholder","",function(S,z,P){var M=P&&P!=f.Init;if(z&&!M)S.on("blur",v),S.on("change",y),S.on("swapDoc",y),f.on(S.getInputField(),"compositionupdate",S.state.placeholderCompose=function(){w(S)}),y(S);else if(!z&&M){S.off("blur",v),S.off("change",y),S.off("swapDoc",y),f.off(S.getInputField(),"compositionupdate",S.state.placeholderCompose),m(S);var q=S.getWrapperElement();q.className=q.className.replace(" CodeMirror-empty","")}z&&!S.hasFocus()&&v(S)});function m(S){S.state.placeholder&&(S.state.placeholder.parentNode.removeChild(S.state.placeholder),S.state.placeholder=null)}function g(S){m(S);var z=S.state.placeholder=document.createElement("pre");z.style.cssText="height: 0; overflow: visible",z.style.direction=S.getOption("direction"),z.className="CodeMirror-placeholder CodeMirror-line-like";var P=S.getOption("placeholder");typeof P=="string"&&(P=document.createTextNode(P)),z.appendChild(P),S.display.lineSpace.insertBefore(z,S.display.lineSpace.firstChild)}function w(S){setTimeout(function(){var z=!1;if(S.lineCount()==1){var P=S.getInputField();z=P.nodeName=="TEXTAREA"?!S.getLine(0).length:!/[^\u200b]/.test(P.querySelector(".CodeMirror-line").textContent)}z?g(S):m(S)},20)}function v(S){x(S)&&g(S)}function y(S){var z=S.getWrapperElement(),P=x(S);z.className=z.className.replace(" CodeMirror-empty","")+(P?" CodeMirror-empty":""),P?g(S):m(S)}function x(S){return S.lineCount()===1&&S.getLine(0)===""}})})();(function(u,D){(function(f){f(Tt)})(function(f){f.defineOption("autoRefresh",!1,function(w,v){w.state.autoRefresh&&(g(w,w.state.autoRefresh),w.state.autoRefresh=null),v&&w.display.wrapper.offsetHeight==0&&m(w,w.state.autoRefresh={delay:v.delay||250})});function m(w,v){function y(){w.display.wrapper.offsetHeight?(g(w,v),w.display.lastWrapHeight!=w.display.wrapper.clientHeight&&w.refresh()):v.timeout=setTimeout(y,v.delay)}v.timeout=setTimeout(y,v.delay),v.hurry=function(){clearTimeout(v.timeout),v.timeout=setTimeout(y,50)},f.on(window,"mouseup",v.hurry),f.on(window,"keyup",v.hurry)}function g(w,v){clearTimeout(v.timeout),f.off(window,"mouseup",v.hurry),f.off(window,"keyup",v.hurry)}})})();(function(u,D){(function(f){f(Tt)})(function(f){f.defineOption("styleSelectedText",!1,function(M,q,$){var ne=$&&$!=f.Init;q&&!ne?(M.state.markedSelection=[],M.state.markedSelectionStyle=typeof q=="string"?q:"CodeMirror-selectedtext",z(M),M.on("cursorActivity",m),M.on("change",g)):!q&&ne&&(M.off("cursorActivity",m),M.off("
26change",g),S(M),M.state.markedSelection=M.state.markedSelectionStyle=null)});function m(M){M.state.markedSelection&&M.operation(function(){P(M)})}function g(M){M.state.markedSelection&&M.state.markedSelection.length&&M.operation(function(){S(M)})}var w=8,v=f.Pos,y=f.cmpPos;function x(M,q,$,ne){if(y(q,$)!=0)for(var J=M.state.markedSelection,K=M.state.markedSelectionStyle,I=q.line;;){var H=I==q.line?q:v(I,0),_=I+w,j=_>=$.line,ee=j?$:v(_,0),V=M.markText(H,ee,{className:K});if(ne==null?J.push(V):J.splice(ne++,0,V),j)break;I=_}}function S(M){for(var q=M.state.markedSelection,$=0;$<q.length;++$)q[$].clear();q.length=0}function z(M){S(M);for(var q=M.listSelections(),$=0;$<q.length;$++)x(M,q[$].from(),q[$].to())}function P(M){if(!M.somethingSelected())return S(M);if(M.listSelections().length>1)return z(M);var q=M.getCursor("start"),$=M.getCursor("end"),ne=M.state.markedSelection;if(!ne.length)return x(M,q,$);var J=ne[0].find(),K=ne[ne.length-1].find();if(!J||!K||$.line-q.line<=w||y(q,K.to)>=0||y($,J.from)<=0)return z(M);for(;y(q,J.from)>0;)ne.shift().clear(),J=ne[0].find();for(y(q,J.from)<0&&(J.to.line-q.line<w?(ne.shift().clear(),x(M,q,J.to,0)):x(M,q,J.from,0));y($,K.to)<0;)ne.pop().clear(),K=ne[ne.length-1].find();y($,K.to)>0&&($.line-K.from.line<w?(ne.pop().clear(),x(M,K.from,$)):x(M,K.to,$))}})})();(function(u,D){(function(f){f(Tt)})(function(f){var m=f.Pos;function g(I){var H=I.flags;return H??(I.ignoreCase?"i":"")+(I.global?"g":"")+(I.multiline?"m":"")}function w(I,H){for(var _=g(I),j=_,ee=0;ee<H.length;ee++)j.indexOf(H.charAt(ee))==-1&&(j+=H.charAt(ee));return _==j?I:new RegExp(I.source,j)}function v(I){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(I.source)}function y(I,H,_){H=w(H,"g");for(var j=_.line,ee=_.ch,V=I.lastLine();j<=V;j++,ee=0){H.lastIndex=ee;var se=I.getLine(j),pe=H.exec(se);if(pe)return{from:m(j,pe.index),to:m(j,pe.index+pe[0].length),match:pe}}}function x(I,H,_){if(!v(H))return y(I,H,_);H=w(H,"gm");for(var j,ee=1,V=_.line,se=I.lastLine();V<=se;){for(var pe=0;pe<ee&&!(V>se);pe++){var We=I.getLine(V++);j=j==null?We:j+`
27`+We}ee=ee*2,H.lastIndex=_.ch;var te=H.exec(j);if(te){var Ee=j.slice(0,te.index).split(`
28`),Le=te[0].split(`
29`),be=_.line+Ee.length-1,L=Ee[Ee.length-1].length;return{from:m(be,L),to:m(be+Le.length-1,Le.length==1?L+Le[0].length:Le[Le.length-1].length),match:te}}}}function S(I,H,_){for(var j,ee=0;ee<=I.length;){H.lastIndex=ee;var V=H.exec(I);if(!V)break;var se=V.index+V[0].length;if(se>I.length-_)break;(!j||se>j.index+j[0].length)&&(j=V),ee=V.index+1}return j}function z(I,H,_){H=w(H,"g");for(var j=_.line,ee=_.ch,V=I.firstLine();j>=V;j--,ee=-1){var se=I.getLine(j),pe=S(se,H,ee<0?0:se.length-ee);if(pe)return{from:m(j,pe.index),to:m(j,pe.index+pe[0].length),match:pe}}}function P(I,H,_){if(!v(H))return z(I,H,_);H=w(H,"gm");for(var j,ee=1,V=I.getLine(_.line).length-_.ch,se=_.line,pe=I.firstLine();se>=pe;){for(var We=0;We<ee&&se>=pe;We++){var te=I.getLine(se--);j=j==null?te:te+`
30`+j}ee*=2;var Ee=S(j,H,V);if(Ee){var Le=j.slice(0,Ee.index).split(`
31`),be=Ee[0].split(`
32`),L=se+Le.length,Y=Le[Le.length-1].length;return{from:m(L,Y),to:m(L+be.length-1,be.length==1?Y+be[0].length:be[be.length-1].length),match:Ee}}}}var M,q;String.prototype.normalize?(M=function(I){return I.normalize("NFD").toLowerCase()},q=function(I){return I.normalize("NFD")}):(M=function(I){return I.toLowerCase()},q=function(I){return I});function $(I,H,_,j){if(I.length==H.length)return _;for(var ee=0,V=_+Math.max(0,I.length-H.length);;){if(ee==V)return ee;var se=ee+V>>1,pe=j(I.slice(0,se)).length;if(pe==_)return se;pe>_?V=se:ee=se+1}}function ne(I,H,_,j){if(!H.length)return null;var ee=j?M:q,V=ee(H).split(/\r|\n\r?/);e:for(var se=_.line,pe=_.ch,We=I.lastLine()+1-V.length;se<=We;se++,pe=0){var te=I.getLine(se).slice(pe),Ee=ee(te);if(V.length==1){var Le=Ee.indexOf(V[0]);if(Le==-1)continue e;var _=$(te,Ee,Le,ee)+pe;return{from:m(se,$(te,Ee,Le,ee)+pe),to:m(se,$(te,Ee,Le+V[0].length,ee)+pe)}}else{var be=Ee.length-V[0].length;if(Ee.slice(be)!=V[0])continue e;for(var L=1;L<V.length-1;L++)if(ee(I.getLine(se+L))!=V[L])continue e;var Y=I.getLine(se+V.length-1),Z=ee(Y),me=V[V.length-1];if(Z.slice(0,me.length)!=me)continue e;return{from:m(se,$(te,Ee,be,ee)+pe),to:m(se+V.length-1,$(Y,Z,me.length,ee))}}}}function J(I,H,_,j){if(!H.length)return null;var ee=j?M:q,V=ee(H).split(/\r|\n\r?/);e:for(var se=_.line,pe=_.ch,We=I.firstLine()-1+V.length;se>=We;se--,pe=-1){var te=I.getLine(se);pe>-1&&(te=te.slice(0,pe));var Ee=ee(te);if(V.length==1){var Le=Ee.lastIndexOf(V[0]);if(Le==-1)continue e;return{from:m(se,$(te,Ee,Le,ee)),to:m(se,$(te,Ee,Le+V[0].length,ee))}}else{var be=V[V.length-1];if(Ee.slice(0,be.length)!=be)continue e;
32for(var L=1,_=se-V.length+1;L<V.length-1;L++)if(ee(I.getLine(_+L))!=V[L])continue e;var Y=I.getLine(se+1-V.length),Z=ee(Y);if(Z.slice(Z.length-V[0].length)!=V[0])continue e;return{from:m(se+1-V.length,$(Y,Z,Y.length-V[0].length,ee)),to:m(se,$(te,Ee,be.length,ee))}}}}function K(I,H,_,j){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=I,_=_?I.clipPos(_):m(0,0),this.pos={from:_,to:_};var ee;typeof j=="object"?ee=j.caseFold:(ee=j,j=null),typeof H=="string"?(ee==null&&(ee=!1),this.matches=function(V,se){return(V?J:ne)(I,H,se,ee)}):(H=w(H,"gm"),!j||j.multiline!==!1?this.matches=function(V,se){return(V?P:x)(I,H,se)}:this.matches=function(V,se){return(V?z:y)(I,H,se)})}K.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(I){var H=this.doc.clipPos(I?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(H=m(H.line,H.ch),I?(H.ch--,H.ch<0&&(H.line--,H.ch=(this.doc.getLine(H.line)||"").length)):(H.ch++,H.ch>(this.doc.getLine(H.line)||"").length&&(H.ch=0,H.line++)),f.cmpPos(H,this.doc.clipPos(H))!=0))return this.atOccurrence=!1;var _=this.matches(I,H);if(this.afterEmptyMatch=_&&f.cmpPos(_.from,_.to)==0,_)return this.pos=_,this.atOccurrence=!0,this.pos.match||!0;var j=m(I?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:j,to:j},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(I,H){if(this.atOccurrence){var _=f.splitLines(I);this.doc.replaceRange(_,this.pos.from,this.pos.to,H),this.pos.to=m(this.pos.from.line+_.length-1,_[_.length-1].length+(_.length==1?this.pos.from.ch:0))}}},f.defineExtension("getSearchCursor",function(I,H,_){return new K(this.doc,I,H,_)}),f.defineDocExtension("getSearchCursor",function(I,H,_){return new K(this,I,H,_)}),f.defineExtension("selectMatches",function(I,H){for(var _=[],j=this.getSearchCursor(I,this.getCursor("from"),H);j.findNext()&&!(f.cmpPos(j.to(),this.getCursor("to"))>0);)_.push({anchor:j.from(),head:j.to()});_.length&&this.setSelections(_,0)})})})();(function(u,D){(function(f){f(Tt,Cc,kc)})(function(f){var m=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;f.defineMode("gfm",function(g,w){var v=0;function y(P){return P.code=!1,null}var x={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(P){return{code:P.code,codeBlock:P.codeBlock,ateSpace:P.ateSpace}},token:function(P,M){if(M.combineTokens=null,M.codeBlock)return P.match(/^```+/)?(M.codeBlock=!1,null):(P.skipToEnd(),null);if(P.sol()&&(M.code=!1),P.sol()&&P.match(/^```+/))return P.skipToEnd(),M.codeBlock=!0,null;if(P.peek()==="`"){P.next();var q=P.pos;P.eatWhile("`");var $=1+P.pos-q;return M.code?$===v&&(M.code=!1):(v=$,M.code=!0),null}else if(M.code)return P.next(),null;return P.eatSpace()?(M.ateSpace=!0,null):(P.sol()||M.ateSpace)&&(M.ateSpace=!1,w.gitHubSpice!==!1)&&(P.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/)||P.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))||P.match(m)&&P.string.slice(P.start-2,P.start)!="]("&&(P.start==0||/\W/.test(P.string.charAt(P.start-1)))?(M.combineTokens=!0,"link"):(P.next(),null)},blankLine:y},S={taskLists:!0,strikethrough:!0,emoji:!0};for(var z in w)S[z]=w[z];return S.name="markdown",f.overlayMode(f.getMode(g,S),x)},"markdown"),f.defineMIME("text/x-gfm","gfm")}
32)})();function Fc(u){throw new Error('Could not dynamically require "'+u+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Jl={exports:{}};const Ac={},Sc=Object.freeze(Object.defineProperty({__proto__:null,default:Ac},Symbol.toStringTag,{value:"Module"})),Ec=gc(Sc);(function(u){var D;(function(){D=function(f,m,g,w){w=w||{},this.dictionary=null,this.rules={},this.dictionaryTable={},this.compoundRules=[],this.compoundRuleCodes={},this.replacementTable=[],this.flags=w.flags||{},this.memoized={},this.loaded=!1;var v=this,y,x,S,z,P;f&&(v.dictionary=f,m&&g?ne():typeof window<"u"&&"chrome"in window&&"extension"in window.chrome&&"getURL"in window.chrome.extension?(w.dictionaryPath?y=w.dictionaryPath:y="typo/dictionaries",m||M(chrome.extension.getURL(y+"/"+f+"/"+f+".aff"),q),g||M(chrome.extension.getURL(y+"/"+f+"/"+f+".dic"),$)):(w.dictionaryPath?y=w.dictionaryPath:typeof __dirname<"u"?y=__dirname+"/dictionaries":y="./dictionaries",m||M(y+"/"+f+"/"+f+".aff",q),g||M(y+"/"+f+"/"+f+".dic",$)));function M(J,K){var I=v._readFile(J,null,w.asyncLoad);w.asyncLoad?I.then(function(H){K(H)}):K(I)}function q(J){m=J,g&&ne()}function $(J){g=J,m&&ne()}function ne(){for(v.rules=v._parseAFF(m),v.compoundRuleCodes={},x=0,z=v.compoundRules.length;x<z;x++){var J=v.compoundRules[x];for(S=0,P=J.length;S<P;S++)v.compoundRuleCodes[J[S]]=[]}"ONLYINCOMPOUND"in v.flags&&(v.compoundRuleCodes[v.flags.ONLYINCOMPOUND]=[]),v.dictionaryTable=v._parseDIC(g);for(x in v.compoundRuleCodes)v.compoundRuleCodes[x].length===0&&delete v.compoundRuleCodes[x];for(x=0,z=v.compoundRules.length;x<z;x++){var K=v.compoundRules[x],I="";for(S=0,P=K.length;S<P;S++){var H=K[S];H in v.compoundRuleCodes?I+="("+v.compoundRuleCodes[H].join("|")+")":I+=H}v.compoundRules[x]=new RegExp(I,"i")}v.loaded=!0,w.asyncLoad&&w.loadedCallback&&w.loadedCallback(v)}return this},D.prototype={load:function(f){for(var m in f)f.hasOwnProperty(m)&&(this[m]=f[m]);return this},_readFile:function(f,m,g){if(m=m||"utf8",typeof XMLHttpRequest<"u"){var w,v=new XMLHttpRequest;return v.open("GET",f,g),g&&(w=new Promise(function(x,S){v.onload=function(){v.status===200?x(v.responseText):S(v.statusText)},v.onerror=function(){S(v.statusText)}}
32)),v.overrideMimeType&&v.overrideMimeType("text/plain; charset="+m),v.send(null),g?w:v.responseText}else if(typeof Fc<"u"){var y=Ec;try{if(y.existsSync(f))return y.readFileSync(f,m);console.log("Path "+f+" does not exist.")}catch(x){return console.log(x),""}}},_parseAFF:function(f){var m={},g,w,v,y,x,S,z,P,M=f.split(/\r?\n/);for(x=0,z=M.length;x<z;x++)if(g=this._removeAffixComments(M[x]),g=g.trim(),!!g){var q=g.split(/\s+/),$=q[0];if($=="PFX"||$=="SFX"){var ne=q[1],J=q[2];v=parseInt(q[3],10);var K=[];for(S=x+1,P=x+1+v;S<P;S++){w=M[S],y=w.split(/\s+/);var I=y[2],H=y[3].split("/"),_=H[0];_==="0"&&(_="");var j=this.parseRuleCodes(H[1]),ee=y[4],V={};V.add=_,j.length>0&&(V.continuationClasses=j),ee!=="."&&($==="SFX"?V.match=new RegExp(ee+"$"):V.match=new RegExp("^"+ee)),I!="0"&&($==="SFX"?V.remove=new RegExp(I+"$"):V.remove=I),K.push(V)}m[ne]={type:$,combineable:J=="Y",entries:K},x+=v}else if($==="COMPOUNDRULE"){for(v=parseInt(q[1],10),S=x+1,P=x+1+v;S<P;S++)g=M[S],y=g.split(/\s+/),this.compoundRules.push(y[1]);x+=v}else $==="REP"?(y=g.split(/\s+/),y.length===3&&this.replacementTable.push([y[1],y[2]])):this.flags[$]=q[1]}return m},_removeAffixComments:function(f){return f.match(/^\s*#/,"")?"":f},_parseDIC:function(f){f=this._removeDicComments(f);var m=f.split(/\r?\n/),g={};function w(te,Ee){g.hasOwnProperty(te)||(g[te]=null),Ee.length>0&&(g[te]===null&&(g[te]=[]),g[te].push(Ee))}for(var v=1,y=m.length;v<y;v++){var x=m[v];if(x){var S=x.split("/",2),z=S[0];if(S.length>1){var P=this.parseRuleCodes(S[1]);(!("NEEDAFFIX"in this.flags)||P.indexOf(this.flags.NEEDAFFIX)==-1)&&w(z,P);for(var M=0,q=P.length;M<q;M++){var $=P[M],ne=this.rules[$];if(ne)for(var J=this._applyRule(z,ne),K=0,I=J.length;K<I;K++){var H=J[K];if(w(H,[]),ne.combineable)for(var _=M+1;_<q;_++){var j=P[_],ee=this.rules[j];if(ee&&ee.combineable&&ne.type!=ee.type)for(var V=this._applyRule(H,ee),se=0,pe=V.length;se<pe;se++){var We=V[se];w(We,[])}}}$ in this.compoundRuleCodes&&this.compoundRuleCodes[$].push(z)}}else w(z.trim(),[])}}return g},_removeDicComments:function(f){return f=f.replace(/^\t.*$/mg,""),f},parseRuleCodes:function(f){if(f)if("FLAG"in this.flags)if(this.flags.FLAG==="long"){for(var m=[],g=0,w=f.length;g<w;g+=2)m.push(f.substr(g,2));return m}else return this.flags.FLAG==="num"?f.split(","):this.flags.FLAG==="UTF-8"?Array.from(f):f.split("");else return f.split("");else return[]},_applyRule:function(f,m){for(var g=m.entries,w=[],v=0,y=g.length;v<y;v++){var x=g[v];if(!x.match||f.match(x.match)){var S=f;if(x.remove&&(S=S.replace(x.remove,"")),m.type==="SFX"?S=S+x.add:S=x.add+S,w.push(S),"continuationClasses"in x)for(var z=0,P=x.continuationClasses.length;z<P;z++){var M=this.rules[x.continuationClasses[z]];M&&(w=w.concat(this._applyRule(S,M)))}}}return w},check:function(f){if(!this.loaded)throw"Dictionary not loaded.";if(!f)return!1;var m=f.replace(/^\s\s*/,"").replace(/\s\s*$/,"");if(this.checkExact(m))return!0;if(m.toUpperCase()===m){var g=m[0]+m.substring(1).toLowerCase();if(this.hasFlag(g,"KEEPCASE"))return!1;if(this.checkExact(g)||this.checkExact(m.toLowerCase()))return!0}var w=m[0].toLowerCase()+m.substring(1);if(w!==m){if(this.hasFlag(w,"KEEPCASE"))return!1;if(this.checkExact(w))return!0}return!1},checkExact:function(f){if(!this.loaded)throw"Dictionary not loaded.";var m=this.dictionaryTable[f],g,w;if(typeof m>"u"){if("COMPOUNDMIN"in this.flags&&f.length>=this.flags.COMPOUNDMIN){for(g=0,w=this.compoundRules.length;g<w;g++)if(f.match(this.compoundRules[g]))return!0}}else{if(m===null)return!0;if(typeof m=="object"){for(g=0,w=m.length;g<w;g++)if(!this.hasFlag(f,"ONLYINCOMPOUND",m[g]))return!0}}return!1},hasFlag:function(f,m,g){if(!this.loaded)throw"Dictionary not loaded.";return!!(m in this.flags&&(typeof g>"u"&&(g=Array.prototype.concat.apply([],this.dictionaryTable[f])),g&&g.indexOf(this.flags[m])!==-1))},alphabet:"",suggest:function(f,m){if(!this.loaded)throw"Dictionary not loaded.";if(m=m||5,this.memoized.hasOwnProperty(f)){var g=this.memoized[f].limit;if(m<=g||this.memoized[f].suggestions.length<g)return this.memoized[f].suggestions.slice(0,m)}if(this.check(f))return[];for(var w=0,v=this.replacementTable.length;w<v;w++){var y=this.replacementTable[w];if(f.indexOf(y[0])!==-1){var x=f.replace(y[0],y[1]);if(this.check(x))return[x]}}if(!this.alphabet){this.alphabet="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ","TRY"in this.flags&&(this.alphabet+=this.flags.TRY),"WORDCHARS"in this.flags&&(this.alphabet+=this.flags.WORDCHARS);var S=this.alphabet.split("");S.sort();for(var z={},w=0;w<S.length;w++)z[S[w]]=!0;this.alphabet="";for(var w in z)this.alphabet+=w}var P=this;function M($,ne){var J={},K,I,H,_,j=P.alphabet.length;if(typeof $=="string"){var ee=$;$={},$[ee]=!0}for(var ee in $)for(K=0,H=ee.length+1;K<H;K++){var V=[ee.substring(0,K),ee.substring(K)];if(V[1]&&(_=V[0]+V[1].substring(1),(!ne||P.check(_))&&(_ in J?J[_]+=1:J[_]=1)),V[1].length>1&&V[1][1]!==V[1][0]&&(_=V[0]+V[1][1]+V[1][0]+V[1].substring(2),(!ne||P.check(_))&&(_ in J?J[_]+=1:J[_]=1)),V[1]){var se=V[1].substring(0,1).toUpperCase()===V[1].substring(0,1)?"uppercase":"lowercase";for(I=0;I<j;I++){var pe=P.alphabet[I];se==="uppercase"&&(pe=pe.toUpperCase()),pe!=V[1].substring(0,1)&&(_=V[0]+pe+V[1].substring(1),(!ne||P.check(_))&&(_ in J?J[_]+=1:J[_]=1))}}if(V[1])for(I=0;I<j;I++){var se=V[0].substring(-1).toUpperCase()===V[0].substring(-1)&&V[1].substring(0,1).toUpperCase()===V[1].substring(0,1)?"uppercase":"lowercase",pe=P.alphabet[I];se==="uppercase"&&(pe=pe.toUpperCase()),_=V[0]+pe+V[1],(!ne||P.check(_))&&(_ in J?J[_]+=1:J[_]=1)}}return J}function q($){var ne=M($),J=M(ne,!0),K=J;for(var I in ne)P.check(I)&&(I in K?K[I]+=ne[I]:K[I]=ne[I]);var H,_=[];for(H in K)K.hasOwnProperty(H)&&_.push([H,K[H]]);function j(pe,We){var te=pe[1],Ee=We[1];return te<Ee?-1:te>Ee?1:We[0].localeCompare(pe[0])}_.sort(j).reverse();var ee=[],V="lowercase";$.toUpperCase()===$?V="uppercase":$.substr(0,1).toUpperCase()+$.substr(1).toLowerCase()===$&&(V="capitalized");var se=m;for(H=0;H<Math.min(se,_.length);H++)V==="uppercase"?_[H][0]=_[H][0].toUpperCase():V==="capitalized"&&(_[H][0]=_[H][0].substr(0,1).toUpperCase()+_[H][0].substr(1)),!P.hasFlag(_[H][0],"NOSUGGEST")&&ee.indexOf(_[H][0])==-1?ee.push(_[H][0]):se++;return ee}return this.memoized[f]={suggestions:q(f),limit:m},this.memoized[f].suggestions}}})(),u.exports=D})(Jl);var Lc=Jl.exports,Gl=Lc;function Ve(u){if(u=u||{},typeof u.codeMirrorInstance!="function"||typeof u.codeMirrorInstance.defineMode!="function"){console.log("CodeMirror Spell Checker: You must provide an instance of CodeMirror via the option `codeMirrorInstance`");return}String.prototype.includes||(String.prototype.includes=function(){return String.prototype.indexOf.apply(this,arguments)!==-1}),u.codeMirrorInstance.defineMode("spell-checker",function(D){if(!Ve.aff_loading){Ve.aff_loading=!0;var f=new XMLHttpRequest;f.open("GET","https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.aff",!0),f.onload=function(){f.readyState===4&&f.status===200&&(Ve.aff_data=f.responseText,Ve.num_loaded++,Ve.num_loaded==2&&(Ve.typo=new Gl
32("en_US",Ve.aff_data,Ve.dic_data,{platform:"any"})))},f.send(null)}if(!Ve.dic_loading){Ve.dic_loading=!0;var m=new XMLHttpRequest;m.open("GET","https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.dic",!0),m.onload=function(){m.readyState===4&&m.status===200&&(Ve.dic_data=m.responseText,Ve.num_loaded++,Ve.num_loaded==2&&(Ve.typo=new Gl("en_US",Ve.aff_data,Ve.dic_data,{platform:"any"})))},m.send(null)}var g='!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~ ',w={token:function(y){var x=y.peek(),S="";if(g.includes(x))return y.next(),null;for(;(x=y.peek())!=null&&!g.includes(x);)S+=x,y.next();return Ve.typo&&!Ve.typo.check(S)?"spell-error":null}},v=u.codeMirrorInstance.getMode(D,D.backdrop||"text/plain");return u.codeMirrorInstance.overlayMode(v,w,!0)})}Ve.num_loaded=0;Ve.aff_loading=!1;Ve.dic_loading=!1;Ve.aff_data="";Ve.dic_data="";var Tc=Ve,Yl={};(function(u){function D(B,N){for(var h=0;h<N.length;h++){var p=N[h];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(B,x(p.key),p)}}function f(B,N,h){return h&&D(B,h),Object.defineProperty(B,"prototype",{writable:!1}),B}function m(){return m=Object.assign?Object.assign.bind():function(B){for(var N=1;N<arguments.length;N++){var h=arguments[N];for(var p in h)Object.prototype.hasOwnProperty.call(h,p)&&(B[p]=h[p])}return B},m.apply(this,arguments)}function g(B,N){if(B){if(typeof B=="string")return w(B,N);var h=Object.prototype.toString.call(B).slice(8,-1);if(h==="Object"&&B.constructor&&(h=B.constructor.name),h==="Map"||h==="Set")return Array.from(B);if(h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h))return w(B,N)}}function w(B,N){(N==null||N>B.length)&&(N=B.length);for(var h=0,p=new Array(N);h<N;h++)p[h]=B[h];return p}function v(B,N){var h=typeof Symbol<"u"&&B[Symbol.iterator]||B["@@iterator"];if(h)return(h=h.call(B)).next.bind(h);if(Array.isArray(B)||(h=g(B))||N){h&&(B=h);var p=0;return function(){return p>=B.length?{done:!0}:{done:!1,value:B[p++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
33In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y(B,N){if(typeof B!="object"||B===null)return B;var h=B[Symbol.toPrimitive];if(h!==void 0){var p=h.call(B,N);if(typeof p!="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(B)}function x(B){var N=y(B,"string");return typeof N=="symbol"?N:String(N)}function S(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}u.defaults=S();function z(B){u.defaults=B}var P=/[&<>"']/,M=new RegExp(P.source,"g"),q=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,$=new RegExp(q.source,"g"),ne={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},J=function(B){return ne[B]};function K(B,N){if(N){if(P.test(B))return B.replace(M,J)}else if(q.test(B))return B.replace($,J);return B}var I=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function H(B){return B.replace(I,function(N,h){return h=h.toLowerCase(),h==="colon"?":":h.charAt(0)==="#"?h.charAt(1)==="x"?String.fromCharCode(parseInt(h.substring(2),16)):String.fromCharCode(+h.substring(1)):""})}var _=/(^|[^\[])\^/g;function j(B,N){B=typeof B=="string"?B:B.source,N=N||"";var h={replace:function(p,k){return k=k.source||k,k=k.replace(_,"$1"),B=B.replace(p,k),h},getRegex:function(){return new RegExp(B,N)}};return h}var ee=/[^\w:]/g,V=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function se(B,N,h){if(B){var p;try{p=decodeURIComponent(H(h)).replace(ee,"").toLowerCase()}catch{return null}if(p.indexOf("javascript:")===0||p.indexOf("vbscript:")===0||p.indexOf("data:")===0)return null}N&&!V.test(h)&&(h=Le(N,h));try{h=encodeURI(h).replace(/%25/g,"%")}catch{return null}return h}var pe={},We=/^[^:]+:\/*[^/]*$/,te=/^([^:]+:)[\s\S]*$/,Ee=/^([^:]+:\/*[^/]*)[\s\S]*$/;function Le(B,N){pe[" "+B]||(We.test(B)?pe[" "+B]=B+"/":pe[" "+B]=Y(B,"/",!0)),B=pe[" "+B];var h=B.indexOf(":")===-1;return N.substring(0,2)==="//"?h?N:B.replace(te,"$1")+N:N.charAt(0)==="/"?h?N:B.replace(Ee,"$1")+N:B+N}var be={exec:function(){}};function L(B,N){var h=B.replace(/\|/g,function(F,O,U){for(var le=!1,fe=O;--fe>=0&&U[fe]==="\\";)le=!le;return le?"|":" |"}),p=h.split(/ \|/),k=0;if(p[0].trim()||p.shift(),p.length>0&&!p[p.length-1].trim()&&p.pop(),p.length>N)p.splice(N);else for(;p.length<N;)p.push("");for(;k<p.length;k++)p[k]=p[k].trim().replace(/\\\|/g,"|");return p}function Y(B,N,h){var p=B.length;if(p===0)return"";for(var k=0;k<p;){var F=B.charAt(p-k-1);if(F===N&&!h)k++;else if(F!==N&&h)k++;else break}return B.slice(0,p-k)}
33function Z(B,N){if(B.indexOf(N[1])===-1)return-1;for(var h=B.length,p=0,k=0;k<h;k++)if(B[k]==="\\")k++;else if(B[k]===N[0])p++;else if(B[k]===N[1]&&(p--,p<0))return k;return-1}function me(B){B&&B.sanitize&&!B.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function Oe(B,N){if(N<1)return"";for(var h="";N>1;)N&1&&(h+=B),N>>=1,B+=B;return h+B}function et(B,N,h,p){var k=N.href,F=N.title?K(N.title):null,O=B[1].replace(/\\([\[\]])/g,"$1");if(B[0].charAt(0)!=="!"){p.state.inLink=!0;var U={type:"link",raw:h,href:k,title:F,text:O,tokens:p.inlineTokens(O)};return p.state.inLink=!1,U}return{type:"image",raw:h,href:k,title:F,text:K(O)}}function Ht(B,N){var h=B.match(/^(\s+)(?:```)/);if(h===null)return N;var p=h[1];return N.split(`
34`).map(function(k){var F=k.match(/^\s+/);if(F===null)return k;var O=F[0];return O.length>=p.length?k.slice(p.length):k}).join(`
35`)}var A=(function(){function B(h){this.options=h||u.defaults}var N=B.prototype;return N.space=function(h){var p=this.rules.block.newline.exec(h);if(p&&p[0].length>0)return{type:"space",raw:p[0]}},N.code=function(h){var p=this.rules.block.code.exec(h);if(p){var k=p[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:p[0],codeBlockStyle:"indented",text:this.options.pedantic?k:Y(k,`
36`)}}},N.fences=function(h){var p=this.rules.block.fences.exec(h);if(p){var k=p[0],F=Ht(k,p[3]||"");return{type:"code",raw:k,lang:p[2]?p[2].trim().replace(this.rules.inline._escapes,"$1"):p[2],text:F}}},N.heading=function(h){var p=this.rules.block.heading.exec(h);if(p){var k=p[2].trim();if(/#$/.test(k)){var F=Y(k,"#");(this.options.pedantic||!F||/ $/.test(F))&&(k=F.trim())}return{type:"heading",raw:p[0],depth:p[1].length,text:k,tokens:this.lexer.inline(k)}}},N.hr=function(h){var p=this.rules.block.hr.exec(h);if(p)return{type:"hr",raw:p[0]}},N.blockquote=function(h){var p=this.rules.block.blockquote.exec(h);if(p){var k=p[0].replace(/^ *>[ \t]?/gm,""),F=this.lexer.state.top;this.lexer.state.top=!0;var O=this.lexer.blockTokens(k);return this.lexer.state.top=F,{type:"blockquote",raw:p[0],tokens:O,text:k}}},N.list=function(h){var p=this.rules.block.list.exec(h);if(p){var k,F,O,U,le,fe,ge,Ce,De,ue,re,ae,Je=p[1].trim(),Ue=Je.length>1,Ae={type:"list",raw:"",ordered:Ue,start:Ue?+Je.slice(0,-1):"",loose:!1,items:[]};Je=Ue?"\\d{1,9}\\"+Je.slice(-1):"\\"+Je,this.options.pedantic&&(Je=Ue?Je:"[*+-]");for(var Be=new RegExp("^( {0,3}"+Je+")((?:[	 ][^\\n]*)?(?:\\n|$))");h&&(ae=!1,!(!(p=Be.exec(h))||this.rules.block.hr.test(h)));){if(k=p[0],h=h.substring(k.length),Ce=p[2].split(`
37`,1)[0].replace(/^\t+/,function(Gt){return" ".repeat(3*Gt.length)}),De=h.split(`
38`,1)[0],this.options.pedantic?(U=2,re=Ce.trimLeft()):(U=p[2].search(/[^ ]/),U=U>4?1:U,re=Ce.slice(U),U+=p[1].length),fe=!1,!Ce&&/^ *$/.test(De)&&(k+=De+`
39`,h=h.substring(De.length+1),ae=!0),!ae)for(var en=new RegExp("^ {0,"+Math.min(3,U-1)+"}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))"),dt=new RegExp("^ {0,"+Math.min(3,U-1)+"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"),yt=new RegExp("^ {0,"+Math.min(3,U-1)+"}(?:```|~~~)"),Ye=new RegExp("^ {0,"+Math.min(3,U-1)+"}#");h&&(ue=h.split(`
40`,1)[0],De=ue,this.options.pedantic&&(De=De.replace(/^ {1,4}(?=( {4})*[^ ])/g,"  ")),!(yt.test(De)||Ye.test(De)||en.test(De)||dt.test(h)));){if(De.search(/[^ ]/)>=U||!De.trim())re+=`
41`+De.slice(U);else{if(fe||Ce.search(/[^ ]/)>=4||yt.test(Ce)||Ye.test(Ce)||dt.test(Ce))break;re+=`
42`+De}!fe&&!De.trim()&&(fe=!0),k+=ue+`
43`,h=h.substring(ue.length+1),Ce=De.slice(U)}Ae.loose||(ge?Ae.loose=!0:/\n *\n *$/.test(k)&&(ge=!0)),this.options.gfm&&(F=/^\[[ xX]\] /.exec(re),F&&(O=F[0]!=="[ ] ",re=re.replace(/^\[[ xX]\] +/,""))),Ae.items.push({type:"list_item",raw:k,task:!!F,checked:O,loose:!1,text:re}),Ae.raw+=k}Ae.items[Ae.items.length-1].raw=k.trimRight(),Ae.items[Ae.items.length-1].text=re.trimRight(),Ae.raw=Ae.raw.trimRight();var tn=Ae.items.length;for(le=0;le<tn;le++)if(this.lexer.state.top=!1,Ae.items[le].tokens=this.lexer.blockTokens(Ae.items[le].text,[]),!Ae.loose){var Ut=Ae.items[le].tokens.filter(function(Gt){return Gt.type==="space"}),pn=Ut.length>0&&Ut.some(function(Gt){return/\n.*\n/.test(Gt.raw)});Ae.loose=pn}if(Ae.loose)for(le=0;le<tn;le++)Ae.items[le].loose=!0;return Ae}},N.html=function(h){var p=this.rules.block.html.exec(h);if(p){var k={type:"html",raw:p[0],pre:!this.options.sanitizer&&(p[1]==="pre"||p[1]==="script"||p[1]==="style"),text:p[0]};if(this.options.sanitize){var F=this.options.sanitizer?this.options.sanitizer(p[0]):K(p[0]);k.type="paragraph",k.text=F,k.tokens=this.lexer.inline(F)}return k}},N.def=function(h){var p=this.rules.block.def.exec(h);if(p){var k=p[1].toLowerCase().replace(/\s+/g," "),F=p[2]?p[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",O=p[3]?p[3].substring(1,p[3].length-1).replace(this.rules.inline._escapes,"$1"):p[3];return{type:"def",tag:k,raw:p[0],href:F,title:O}}},N.table=function(h){var p=this.rules.block.table.exec(h);if(p){var k={type:"table",header:L(p[1]).map(function(ge){return{text:ge}}),align:p[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:p[3]&&p[3].trim()?p[3].replace(/\n[ \t]*$/,"").split(`
44`):[]};if(k.header.length===k.align.length){k.raw=p[0];var F=k.align.length,O,U,le,fe;for(O=0;O<F;O++)/^ *-+: *$/.test(k.align[O])?k.align[O]="right":/^ *:-+: *$/.test(k.align[O])?k.align[O]="center"
44:/^ *:-+ *$/.test(k.align[O])?k.align[O]="left":k.align[O]=null;for(F=k.rows.length,O=0;O<F;O++)k.rows[O]=L(k.rows[O],k.header.length).map(function(ge){return{text:ge}});for(F=k.header.length,U=0;U<F;U++)k.header[U].tokens=this.lexer.inline(k.header[U].text);for(F=k.rows.length,U=0;U<F;U++)for(fe=k.rows[U],le=0;le<fe.length;le++)fe[le].tokens=this.lexer.inline(fe[le].text);return k}}},N.lheading=function(h){var p=this.rules.block.lheading.exec(h);if(p)return{type:"heading",raw:p[0],depth:p[2].charAt(0)==="="?1:2,text:p[1],tokens:this.lexer.inline(p[1])}},N.paragraph=function(h){var p=this.rules.block.paragraph.exec(h);if(p){var k=p[1].charAt(p[1].length-1)===`
45`?p[1].slice(0,-1):p[1];return{type:"paragraph",raw:p[0],text:k,tokens:this.lexer.inline(k)}}},N.text=function(h){var p=this.rules.block.text.exec(h);if(p)return{type:"text",raw:p[0],text:p[0],tokens:this.lexer.inline(p[0])}},N.escape=function(h){var p=this.rules.inline.escape.exec(h);if(p)return{type:"escape",raw:p[0],text:K(p[1])}},N.tag=function(h){var p=this.rules.inline.tag.exec(h);if(p)return!this.lexer.state.inLink&&/^<a /i.test(p[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(p[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(p[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(p[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:p[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(p[0]):K(p[0]):p[0]}},N.link=function(h){var p=this.rules.inline.link.exec(h);if(p){var k=p[2].trim();if(!this.options.pedantic&&/^</.test(k)){if(!/>$/.test(k))return;var F=Y(k.slice(0,-1),"\\");if((k.length-F.length)%2===0)return}else{var O=Z(p[2],"()");if(O>-1){var U=p[0].indexOf("!")===0?5:4,le=U+p[1].length+O;p[2]=p[2].substring(0,O),p[0]=p[0].substring(0,le).trim(),p[3]=""}}var fe=p[2],ge="";if(this.options.pedantic){var Ce=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(fe);Ce&&(fe=Ce[1],ge=Ce[3])}else ge=p[3]?p[3].slice(1,-1):"";return fe=fe.trim(),/^</.test(fe)&&(this.options.pedantic&&!/>$/.test(k)?fe=fe.slice(1):fe=fe.slice(1,-1)),et(p,{href:fe&&fe.replace(this.rules.inline._escapes,"$1"),title:ge&&ge.replace(this.rules.inline._escapes,"$1")},p[0],this.lexer)}},N.reflink=function(h,p){var k;if((k=this.rules.inline.reflink.exec(h))||(k=this.rules.inline.nolink.exec(h))){var F=(k[2]||k[1]).replace(/\s+/g," ");if(F=p[F.toLowerCase()],!F){var O=k[0].charAt(0);return{type:"text",raw:O,text:O}}return et(k,F,k[0],this.lexer)}},N.emStrong=function(h,p,k){k===void 0&&(k="");var F=this.rules.inline.emStrong.lDelim.exec(h);if(F&&!(F[3]&&k
vendor: 9,040 bytes, line 45
45.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var 
45O=F[1]||F[2]||"";if(!O||O&&(k===""||this.rules.inline.punctuation.exec(k))){var U=F[0].length-1,le,fe,ge=U,Ce=0,De=F[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(De.lastIndex=0,p=p.slice(-1*h.length+U);(F=De.exec(p))!=null;)if(le=F[1]||F[2]||F[3]||F[4]||F[5]||F[6],!!le){if(fe=le.length,F[3]||F[4]){ge+=fe;continue}else if((F[5]||F[6])&&U%3&&!((U+fe)%3)){Ce+=fe;continue}if(ge-=fe,!(ge>0)){fe=Math.min(fe,fe+ge+Ce);var ue=h.slice(0,U+F.index+(F[0].length-le.length)+fe);if(Math.min(U,fe)%2){var re=ue.slice(1,-1);return{type:"em",raw:ue,text:re,tokens:this.lexer.inlineTokens(re)}}var ae=ue.slice(2,-2);return{type:"strong",raw:ue,text:ae,tokens:this.lexer.inlineTokens(ae)}}}}}},N.codespan=function(h){var p=this.rules.inline.code.exec(h);if(p){var k=p[2].replace(/\n/g," "),F=/[^ ]/.test(k),O=/^ /.test(k)&&/ $/.test(k);return F&&O&&(k=k.substring(1,k.length-1)),k=K(k,!0),{type:"codespan",raw:p[0],text:k}}},N.br=function(h){var p=this.rules.inline.br.exec(h);if(p)return{type:"br",raw:p[0]}},N.del=function(h){var p=this.rules.inline.del.exec(h);if(p)return{type:"del",raw:p[0],text:p[2],tokens:this.lexer.inlineTokens(p[2])}},N.autolink=function(h,p){var k=this.rules.inline.autolink.exec(h);if(k){var F,O;return k[2]==="@"?(F=K(this.options.mangle?p(k[1]):k[1]),O="mailto:"+F):(F=K(k[1]),O=F),{type:"link",raw:k[0],text:F,href:O,tokens:[{type:"text",raw:F,text:F}]}}},N.url=function(h,p){var k;if(k=this.rules.inline.url.exec(h)){var F,O;if(k[2]==="@")F=K(this.options.mangle?p(k[0]):k[0]),O="mailto:"+F;else{var U;do U=k[0],k[0]=this.rules.inline._backpedal.exec(k[0])[0];while(U!==k[0]);F=K(k[0]),k[1]==="www."?O="http://"+k[0]:O=k[0]}return{type:"link",raw:k[0],text:F,href:O,tokens:[{type:"text",raw:F,text:F}]}}},N.inlineText=function(h,p){var k=this.rules.inline.text.exec(h);if(k){var F;return this.lexer.state.inRawBlock?F=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(k[0]):K(k[0]):k[0]:F=K(this.options.smartypants?p(k[0]):k[0]),{type:"text",raw:k[0],text:F}}},B})(),d={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}
vendor: 8,727 bytes, lines 45-46
45(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:be,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};d._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/,d._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,d.def=j(d.def).replace("label",d._label).replace("title",d._title).getRegex(),d.bullet=/(?:[*+-]|\d{1,9}[.)])/,d.listItemStart=j(/^( *)(bull) */).replace("bull",d.bullet).getRegex(),d.list=j(d.list).replace(/bull/g,d.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+d.def.source+")").getRegex(),d._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",d._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,d.html=j(d.html,"i").replace("comment",d._comment).replace("tag",d._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),d.paragraph=j(d._paragraph).replace("hr",d.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",d._tag).getRegex(),d.blockquote=j(d.blockquote).replace("paragraph",d.paragraph).getRegex(),d.normal=m({},d),d.gfm=m({},d.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),d.gfm.table=j(d.gfm.table).replace("hr",d.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",d._tag).getRegex(),d.gfm.paragraph=j(d._paragraph).replace("hr",d.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",d.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",d._tag).getRegex(),d.pedantic=m({},d.normal,{html:j(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",d._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:be,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:j(d.normal._paragraph).replace("hr",d.hr).replace("heading",` *#{1,6} *[^
46]`).replace("lheading",d.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var W={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:be,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:be,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};W._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",W.punctuation=j(W.punctuation).replace(/punctuation/g,W._punctuation).getRegex(),W.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,W.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,W._comment=j(d._comment).replace("(?:-->|$)","-->").getRegex(),W.emStrong.lDelim=j(W.emStrong.lDelim).replace(/punct/g,W._punctuation).getRegex(),W.emStrong.rDelimAst=j(W.emStrong.rDelimAst,"g").replace(/punct/g,W._punctuation).getRegex(),W.emStrong.rDelimUnd=j(W.emStrong.rDelimUnd,"g").replace(/punct/g,W._punctuation).getRegex(),W._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,W._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,W._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,W.autolink=j(W.autolink).replace("scheme",W._scheme).replace("email",W._email).getRegex(),W._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,W.tag=j(W.tag).replace("comment",W._comment).replace("attribute",W._attribute).getRegex(),W._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,W._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,W._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,W.link=j(W.link).replace("label",W._label).replace("href",W._href).replace("title",W._title).getRegex(),W.reflink=j(W.reflink).replace("label",W._label).replace("ref",d._label).getRegex(),W.nolink=j(W.nolink).replace("ref",d._label).getRegex(),W.reflinkSearch=j(W.reflinkSearch,"g").replace("reflink",W.reflink).replace("nolink",W.nolink).getRegex(),W.normal=m({},W),W.pedantic=m({},W.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:j(/^!?\[(label)\]\((.*?)\)/).replace("label",W._label).getRegex(),reflink:j(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",W._label).getRegex()}),W.gfm=m({},W.normal,{escape:j(W.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),W.gfm.url=j(W.gfm.url,"i").replace("email",W.gfm._extended_email).getRegex(),W.breaks=m({},W.gfm,{br:j(W.br).replace("{2,}","*").getRegex(),text:j(W.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});function Ne(B){return B.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function Se(B){var N="",h,p,k=B.length;for(h=0;h<k;
46h++)p=B.charCodeAt(h),Math.random()>.5&&(p="x"+p.toString(16)),N+="&#"+p+";";return N}var Ze=(function(){function B(h){this.tokens=[],this.tokens.links=Object.create(null),this.options=h||u.defaults,this.options.tokenizer=this.options.tokenizer||new A,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var p={block:d.normal,inline:W.normal};this.options.pedantic?(p.block=d.pedantic,p.inline=W.pedantic):this.options.gfm&&(p.block=d.gfm,this.options.breaks?p.inline=W.breaks:p.inline=W.gfm),this.tokenizer.rules=p}B.lex=function(h,p){var k=new B(p);return k.lex(h)},B.lexInline=function(h,p){var k=new B(p);return k.inlineTokens(h)};var N=B.prototype;return N.lex=function(h){h=h.replace(/\r\n|\r/g,`
47`),this.blockTokens(h,this.tokens);for(var p;p=this.inlineQueue.shift();)this.inlineTokens(p.src,p.tokens);return this.tokens},N.blockTokens=function(h,p){var k=this;p===void 0&&(p=[]),this.options.pedantic?h=h.replace(/\t/g,"    ").replace(/^ +$/gm,""):h=h.replace(/^( *)(\t+)/gm,function(ge,Ce,De){return Ce+"    ".repeat(De.length)});for(var F,O,U,le;h;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(function(ge){return(F=ge.call({lexer:k},h,p))?(h=h.substring(F.raw.length),p.push(F),!0):!1}))){if(F=this.tokenizer.space(h)){h=h.substring(F.raw.length),F.raw.length===1&&p.length>0?p[p.length-1].raw+=`
48`:p.push(F);continue}if(F=this.tokenizer.code(h)){h=h.substring(F.raw.length),O=p[p.length-1],O&&(O.type==="paragraph"||O.type==="text")?(O.raw+=`
49`+F.raw,O.text+=`
50`+F.text,this.inlineQueue[this.inlineQueue.length-1].src=O.text):p.push(F);continue}if(F=this.tokenizer.fences(h)){h=h.substring(F.raw.length),p.push(F);continue}if(F=this.tokenizer.heading(h)){h=h.substring(F.raw.length),p.push(F);continue}if(F=this.tokenizer.hr(h)){h=h.substring(F.raw.length),p.push(F);continue}if(F=this.tokenizer.blockquote(h)){h=h.substring(F.raw.length),p.push(F);continue}if(F=this.tokenizer.list(h)){h=h.substring(F.raw.length),p.push(F);continue}if(F=this.tokenizer.html(h)){h=h.substring(F.raw.length),p.push(F);continue}if(F=this.tokenizer.def(h)){h=h.substring(F.raw.length),O=p[p.length-1],O&&(O.type==="paragraph"||O.type==="text")?(O.raw+=`
51`+F.raw,O.text+=`
52`+F.raw,this.inlineQueue[this.inlineQueue.length-1].src=O.text):this.tokens.links[F.tag]||(this.tokens.links[F.tag]={href:F.href,title:F.title});continue}if(F=this.tokenizer.table(h)){h=h.substring(F.raw.length),p.push(F);continue}if(F=this.tokenizer.lheading(h)){h=h.substring(F.raw.length),p.push(F);continue}if(U=h,this.options.extensions&&this.options.extensions.startBlock&&(function(){var ge=1/0,Ce=h.slice(1),De=void 0;k.options.extensions.startBlock.forEach(function(ue){De=ue.call({lexer:this},Ce),typeof De=="number"&&De>=0&&(ge=Math.min(ge,De))}),ge<1/0&&ge>=0&&(U=h.substring(0,ge+1))})(),this.state.top&&(F=this.tokenizer.paragraph(U))){O=p[p.length-1],le&&O.type==="paragraph"?(O.raw+=`
53`+F.raw,O.text+=`
54`+F.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=O.text):p.push(F),le=U.length!==h.length,h=h.substring(F.raw.length);continue}if(F=this.tokenizer.text(h)){h=h.substring(F.raw.length),O=p[p.length-1],O&&O.type==="text"?(O.raw+=`
55`+F.raw,O.text+=`
56`+F.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=O.text):p.push(F);continue}if(h){var fe="Infinite loop on byte: "+h.charCodeAt(0);if(this.options.silent){console.error(fe);break}else throw new Error(fe)}}return this.state.top=!0,p},N.inline=function(h,p){return p===void 0&&(p=[]),this.inlineQueue.push({src:h,tokens:p}),p},N.inlineTokens=function(h,p){var k=this;p===void 0&&(p=[]);var F,O,U,le=h,fe,ge,Ce;if(this.tokens.links){var De=Object.keys(this.tokens.links);if(De.length>0)for(;(fe=this.tokenizer.rules.inline.reflinkSearch.exec(le))!=null;)De.includes(fe[0].slice(fe[0].lastIndexOf("[")+1,-1))&&(le=le.slice(0,fe.index)+"["+Oe("a",fe[0].length-2)+"]"+le.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(fe=this.tokenizer.rules.inline.blockSkip.exec(le))!=null;)le=le.slice(0,fe.index)+"["+Oe("a",fe[0].length-2)+"]"+le.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(fe=this.tokenizer.rules.inline.escapedEmSt.exec(le))!=null;)le=le.slice(0,fe.index+fe[0].length-2)+"++"+le.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;h;)if(ge||(Ce=""),ge=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(function(re){return(F=re.call({lexer:k},h,p))?(h=h.substring(F.raw.length),p.push(F),!0):!1}))){if(F=this.tokenizer.escape(h)){h=h.substring(F.raw.length),p.push(F);continue}if(F=this.tokenizer.tag(h)){h=h.substring(F.raw.length),O=p[p.length-1],O&&F.type==="text"&&O.type==="text"?(O.raw+=F.raw,O.text+=F.text):p.push(F);continue}if(F=this.tokenizer.link(h)){h=h.substring(F.raw.length),p.push(F);continue}if(F=this.tokenizer.reflink(h,this.tokens.links)){h=h.substring(F.raw.length),O=p[p.length-1],O&&F.type==="text"&&O.type==="text"?(O.raw+=F.raw,O.text+=F.text):p.push(F);continue}if(F=this.tokenizer.emStrong(h,le,Ce)){h=h.substring(F.raw.length),p.push(F);continue}if(F=this.tokenizer.codespan(h)){h=h.substring(F.raw.length),p.push(F);continue}if(F=this.tokenizer.br(h)){h=h.substring(F.raw.length),p.push(F);continue}if(F=this.tokenizer.del(h)){h=h.substring(F.raw.length),p.push(F);continue}if(F=this.tokenizer.autolink(h,Se)){h=h.substring(F.raw.length),p.push(F);continue}if(!this.state.inLink&&(F=this.tokenizer.url(h,Se))){h=h.substring(F.raw.length),p.push(F);continue}if(U=h,this.options.extensions&&this.options.extensions.startInline&&(function(){var re=1/0,ae=h.slice(1),Je=void 0;k.options.extensions.startInline.forEach(function(Ue){Je=Ue.call({lexer:this},ae),typeof Je=="number"&&Je>=0&&(re=Math.min(re,Je))}),re<1/0&&re>=0&&(U=h.substring(0,re+1))})(),F=this.tokenizer.inlineText(U,Ne)){h=h.substring(F.raw.length),F.raw.slice(-1)!=="_"&&(Ce=F.raw.slice(-1)),ge=!0,O=p[p.length-1],O&&O.type==="text"?(O.raw+=F.raw,O.text+=F.text):p.push(F);continue}
56if(h){var ue="Infinite loop on byte: "+h.charCodeAt(0);if(this.options.silent){console.error(ue);break}else throw new Error(ue)}}return p},f(B,null,[{key:"rules",get:function(){return{block:d,inline:W}}}]),B})(),ft=(function(){function B(h){this.options=h||u.defaults}var N=B.prototype;return N.code=function(h,p,k){var F=(p||"").match(/\S*/)[0];if(this.options.highlight){var O=this.options.highlight(h,F);O!=null&&O!==h&&(k=!0,h=O)}return h=h.replace(/\n$/,"")+`
57`,F?'<pre><code class="'+this.options.langPrefix+K(F)+'">'+(k?h:K(h,!0))+`</code></pre>
58`:"<pre><code>"+(k?h:K(h,!0))+`</code></pre>
59`},N.blockquote=function(h){return`<blockquote>
60`+h+`</blockquote>
61`},N.html=function(h){return h},N.heading=function(h,p,k,F){if(this.options.headerIds){var O=this.options.headerPrefix+F.slug(k);return"<h"+p+' id="'+O+'">'+h+"</h"+p+`>
62`}return"<h"+p+">"+h+"</h"+p+`>
63`},N.hr=function(){return this.options.xhtml?`<hr/>
64`:`<hr>
65`},N.list=function(h,p,k){var F=p?"ol":"ul",O=p&&k!==1?' start="'+k+'"':"";return"<"+F+O+`>
66`+h+"</"+F+`>
67`},N.listitem=function(h){return"<li>"+h+`</li>
68`},N.checkbox=function(h){return"<input "+(h?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},N.paragraph=function(h){return"<p>"+h+`</p>
69`},N.table=function(h,p){return p&&(p="<tbody>"+p+"</tbody>"),`<table>
70<thead>
71`+h+`</thead>
72`+p+`</table>
73`},N.tablerow=function(h){return`<tr>
74`+h+`</tr>
75`},N.tablecell=function(h,p){var k=p.header?"th":"td",F=p.align?"<"+k+' align="'+p.align+'">':"<"+k+">";return F+h+("</"+k+`>
76`)},N.strong=function(h){return"<strong>"+h+"</strong>"},N.em=function(h){return"<em>"+h+"</em>"},N.codespan=function(h){return"<code>"+h+"</code>"},N.br=function(){return this.options.xhtml?"<br/>":"<br>"},N.del=function(h){return"<del>"+h+"</del>"},N.link=function(h,p,k){if(h=se(this.options.sanitize,this.options.baseUrl,h),h===null)return k;var F='<a href="'+h+'"';return p&&(F+=' title="'+p+'"'),F+=">"+k+"</a>",F},N.image=function(h,p,k){if(h=se(this.options.sanitize,this.options.baseUrl,h),h===null)return k;var F='<img src="'+h+'" alt="'+k+'"';return p&&(F+=' title="'+p+'"'),F+=this.options.xhtml?"/>":">",F},N.text=function(h){return h},B})(),$e=(function(){function B(){}var N=B.prototype;return N.strong=function(h){return h},N.em=function(h){return h},N.codespan=function(h){return h},N.del=function(h){return h},N.html=function(h){return h},N.text=function(h){return h},N.link=function(h,p,k){return""+k},N.image=function(h,p,k){return""+k},N.br=function(){return""},B})(),it=(function(){function B(){this.seen={}}var N=B.prototype;return N.serialize=function(h){return h.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},N.getNextSafeSlug=function(h,p){var k=h,F=0;if(this.seen.hasOwnProperty(k)){F=this.seen[h];do F++,k=h+"-"+F;while(this.seen.hasOwnProperty(k))}return p||(this.seen[h]=F,this.seen[k]=0),k},N.slug=function(h,p){p===void 0&&(p={});var k=this.serialize(h);return this.getNextSafeSlug(k,p.dryrun)},B})(),Ie=(function(){function B(h){this.options=h||u.defaults,this.options.renderer=this.options.renderer||new ft,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new $e,this.slugger=new it}B.parse=function(h,p){var k=new B(p);return k.parse(h)},B.parseInline=function(h,p){var k=new B(p);return k.parseInline(h)};var N=B.prototype;return N.parse=function(h,p){p===void 0&&(p=!0);var k="",F,O,U,le,fe,ge,Ce,De,ue,re,ae,Je,Ue,Ae,Be,en,dt,yt,Ye,tn=h.length;for(F=0;F<tn;F++){if(re=h[F],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[re.type]&&(Ye=this.options.extensions.renderers[re.type].call({parser:this},re),Ye!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(re.type))){k+=Ye||"";continue}switch(re.type){case"space":continue;case"hr":{k+=this.renderer.hr();continue}case"heading":{k+=this.renderer.heading(this.parseInline(re.tokens),re.depth,H(this.parseInline(re.tokens,this.textRenderer)),this.slugger);continue}case"code":{k+=this.renderer.code(re.text,re.lang,re.escaped);continue}case"table":{for(De="",Ce="",le=re.header.length,O=0;O<le;O++)Ce+=this.renderer.tablecell(this.parseInline(re.header[O].tokens),{header:!0,align:re.align[O]});for(De+=this.renderer.tablerow(Ce),ue="",le=re.rows.length,O=0;O<le;O++){for(ge=re.rows[O],Ce="",fe=ge.length,U=0;U<fe;U++)Ce+=this.renderer.tablecell(this.parseInline(ge[U].tokens),{header:!1,align:re.align[U]});ue+=this.renderer.tablerow(Ce)}k+=this.renderer.table(De,ue);continue}case"blockquote":{ue=this.parse(re.tokens),k+=this.renderer.blockquote(ue);continue}case"list":{for(ae=re.ordered,Je=re.start,Ue=re.loose,le=re.items.length,ue="",O=0;O<le;
76O++)Be=re.items[O],en=Be.checked,dt=Be.task,Ae="",Be.task&&(yt=this.renderer.checkbox(en),Ue?Be.tokens.length>0&&Be.tokens[0].type==="paragraph"?(Be.tokens[0].text=yt+" "+Be.tokens[0].text,Be.tokens[0].tokens&&Be.tokens[0].tokens.length>0&&Be.tokens[0].tokens[0].type==="text"&&(Be.tokens[0].tokens[0].text=yt+" "+Be.tokens[0].tokens[0].text)):Be.tokens.unshift({type:"text",text:yt}):Ae+=yt),Ae+=this.parse(Be.tokens,Ue),ue+=this.renderer.listitem(Ae,dt,en);k+=this.renderer.list(ue,ae,Je);continue}case"html":{k+=this.renderer.html(re.text);continue}case"paragraph":{k+=this.renderer.paragraph(this.parseInline(re.tokens));continue}case"text":{for(ue=re.tokens?this.parseInline(re.tokens):re.text;F+1<tn&&h[F+1].type==="text";)re=h[++F],ue+=`
77`+(re.tokens?this.parseInline(re.tokens):re.text);k+=p?this.renderer.paragraph(ue):ue;continue}default:{var Ut='Token with "'+re.type+'" type was not found.';if(this.options.silent){console.error(Ut);return}else throw new Error(Ut)}}}return k},N.parseInline=function(h,p){p=p||this.renderer;var k="",F,O,U,le=h.length;for(F=0;F<le;F++){if(O=h[F],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[O.type]&&(U=this.options.extensions.renderers[O.type].call({parser:this},O),U!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(O.type))){k+=U||"";continue}switch(O.type){case"escape":{k+=p.text(O.text);break}case"html":{k+=p.html(O.text);break}case"link":{k+=p.link(O.href,O.title,this.parseInline(O.tokens,p));break}case"image":{k+=p.image(O.href,O.title,O.text);break}case"strong":{k+=p.strong(this.parseInline(O.tokens,p));break}case"em":{k+=p.em(this.parseInline(O.tokens,p));break}case"codespan":{k+=p.codespan(O.text);break}case"br":{k+=p.br();break}case"del":{k+=p.del(this.parseInline(O.tokens,p));break}case"text":{k+=p.text(O.text);break}default:{var fe='Token with "'+O.type+'" type was not found.';if(this.options.silent){console.error(fe);return}else throw new Error(fe)}}}return k},B})(),Re=(function(){function B(h){this.options=h||u.defaults}var N=B.prototype;return N.preprocess=function(h){return h},N.postprocess=function(h){return h},B})();Re.passThroughHooks=new Set(["preprocess","postprocess"]);function Xe(B,N,h){return function(p){if(p.message+=`
78Please report this to https://github.com/markedjs/marked.`,B){var k="<p>An error occurred:</p><pre>"+K(p.message+"",!0)+"</pre>";if(N)return Promise.resolve(k);if(h){h(null,k);return}return k}if(N)return Promise.reject(p);if(h){h(p);return}throw p}}function ht(B,N){return function(h,p,k){typeof p=="function"&&(k=p,p=null);var F=m({},p);p=m({},ye.defaults,F);var O=Xe(p.silent,p.async,k);if(typeof h>"u"||h===null)return O(new Error("marked(): input parameter is undefined or null"));if(typeof h!="string")return O(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(h)+", string expected"));if(me(p),p.hooks&&(p.hooks.options=p),k){var U=p.highlight,le;try{p.hooks&&(h=p.hooks.preprocess(h)),le=B(h,p)}catch(ue){return O(ue)}var fe=function(ue){var re;if(!ue)try{p.walkTokens&&ye.walkTokens(le,p.walkTokens),re=N(le,p),p.hooks&&(re=p.hooks.postprocess(re))}catch(ae){ue=ae}return p.highlight=U,ue?O(ue):k(null,re)};if(!U||U.length<3||(delete p.highlight,!le.length))return fe();var ge=0;ye.walkTokens(le,function(ue){ue.type==="code"&&(ge++,setTimeout(function(){U(ue.text,ue.lang,function(re,ae){if(re)return fe(re);ae!=null&&ae!==ue.text&&(ue.text=ae,ue.escaped=!0),ge--,ge===0&&fe()})},0))}),ge===0&&fe();return}if(p.async)return Promise.resolve(p.hooks?p.hooks.preprocess(h):h).then(function(ue){return B(ue,p)}).then(function(ue){return p.walkTokens?Promise.all(ye.walkTokens(ue,p.walkTokens)).then(function(){return ue}):ue}).then(function(ue){return N(ue,p)}).then(function(ue){return p.hooks?p.hooks.postprocess(ue):ue}).catch(O);try{p.hooks&&(h=p.hooks.preprocess(h));var Ce=B(h,p);p.walkTokens&&ye.walkTokens(Ce,p.walkTokens);var De=N(Ce,p);return p.hooks&&(De=p.hooks.postprocess(De)),De}catch(ue){return O(ue)}}}function ye(B,N,h){return ht(Ze.lex,Ie.parse)(B,N,h)}ye.options=ye.setOptions=function(B){return ye.defaults=m({},ye.defaults,B),z(ye.defaults),ye},ye.getDefaults=S,ye.defaults=u.defaults,ye.use=function(){for(var B=ye.defaults.extensions||{renderers:{},childTokens:{}},N=arguments.length,h=new Array(N),p=0;p<N;p++)h[p]=arguments[p];h.forEach(function(k){var F=m({},k);if(F.async=ye.defaults.async||F.async||!1,k.extensions&&(k.extensions.forEach(function(U){
78if(!U.name)throw new Error("extension name required");if(U.renderer){var le=B.renderers[U.name];le?B.renderers[U.name]=function(){for(var fe=arguments.length,ge=new Array(fe),Ce=0;Ce<fe;Ce++)ge[Ce]=arguments[Ce];var De=U.renderer.apply(this,ge);return De===!1&&(De=le.apply(this,ge)),De}:B.renderers[U.name]=U.renderer}if(U.tokenizer){if(!U.level||U.level!=="block"&&U.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");B[U.level]?B[U.level].unshift(U.tokenizer):B[U.level]=[U.tokenizer],U.start&&(U.level==="block"?B.startBlock?B.startBlock.push(U.start):B.startBlock=[U.start]:U.level==="inline"&&(B.startInline?B.startInline.push(U.start):B.startInline=[U.start]))}U.childTokens&&(B.childTokens[U.name]=U.childTokens)}),F.extensions=B),k.renderer&&(function(){var U=ye.defaults.renderer||new ft,le=function(ge){var Ce=U[ge];U[ge]=function(){for(var De=arguments.length,ue=new Array(De),re=0;re<De;re++)ue[re]=arguments[re];var ae=k.renderer[ge].apply(U,ue);return ae===!1&&(ae=Ce.apply(U,ue)),ae}};for(var fe in k.renderer)le(fe);F.renderer=U})(),k.tokenizer&&(function(){var U=ye.defaults.tokenizer||new A,le=function(ge){var Ce=U[ge];U[ge]=function(){for(var De=arguments.length,ue=new Array(De),re=0;re<De;re++)ue[re]=arguments[re];var ae=k.tokenizer[ge].apply(U,ue);return ae===!1&&(ae=Ce.apply(U,ue)),ae}};for(var fe in k.tokenizer)le(fe);F.tokenizer=U})(),k.hooks&&(function(){var U=ye.defaults.hooks||new Re,le=function(ge){var Ce=U[ge];Re.passThroughHooks.has(ge)?U[ge]=function(De){if(ye.defaults.async)return Promise.resolve(k.hooks[ge].call(U,De)).then(function(re){return Ce.call(U,re)});var ue=k.hooks[ge].call(U,De);return Ce.call(U,ue)}:U[ge]=function(){for(var De=arguments.length,ue=new Array(De),re=0;re<De;re++)ue[re]=arguments[re];var ae=k.hooks[ge].apply(U,ue);return ae===!1&&(ae=Ce.apply(U,ue)),ae}};for(var fe in k.hooks)le(fe);F.hooks=U})(),k.walkTokens){var O=ye.defaults.walkTokens;F.walkTokens=function(U){var le=[];return le.push(k.walkTokens.call(this,U)),O&&(le=le.concat(O.call(this,U))),le}}ye.setOptions(F)})},ye.walkTokens=function(B,N){for(var h=[],p=function(){var O=F.value;switch(h=h.concat(N.call(ye,O)),O.type){case"table":{for(var U=v(O.header),le;!(le=U()).done;){var fe=le.value;h=h.concat(ye.walkTokens(fe.tokens,N))}for(var ge=v(O.rows),Ce;!(Ce=ge()).done;)for(var De=Ce.value,ue=v(De),re;!(re=ue()).done;){var ae=re.value;h=h.concat(ye.walkTokens(ae.tokens,N))}break}case"list":{h=h.concat(ye.walkTokens(O.items,N));break}default:ye.defaults.extensions&&ye.defaults.extensions.childTokens&&ye.defaults.extensions.childTokens[O.type]?ye.defaults.extensions.childTokens[O.type].forEach(function(Je){h=h.concat(ye.walkTokens(O[Je],N))}):O.tokens&&(h=h.concat(ye.walkTokens(O.tokens,N)))}},k=v(B),F;!(F=k()).done;)p();return h},ye.parseInline=ht(Ze.lexInline,Ie.parseInline),ye.Parser=Ie,ye.parser=Ie.parse,ye.Renderer=ft,ye.TextRenderer=$e,ye.Lexer=Ze,ye.lexer=Ze.lex,ye.Tokenizer=A,ye.Slugger=it,ye.Hooks=Re,ye.parse=ye;var Mt=ye.options,Bt=ye.setOptions,St=ye.use,Pt=ye.walkTokens,Me=ye.parseInline,Et=ye,Rt=Ie.parse,Mn=Ze.lex;u.Hooks=Re,u.Lexer=Ze,u.Parser=Ie,u.Renderer=ft,u.Slugger=it,u.TextRenderer=$e,u.Tokenizer=A,u.getDefaults=S,u.lexer=Mn,u.marked=ye,u.options=Mt,u.parse=Et,u.parseInline=Me,u.parser=Rt,u.setOptions=Bt,u.use=St,u.walkTokens=Pt})(Yl);var Qn=Tt,Mc=Tc,zo=Yl.marked,Ql=/Mac/.test(navigator.platform),Bc=new RegExp(/(<a.*?https?:\/\/.*?[^a]>)+?/g),Lr={toggleBold:hi,toggleItalic:di,drawLink:ki,toggleHeadingSmaller:Tr,toggleHeadingBigger:vi,drawImage:Fi,toggleBlockquote:gi,toggleOrderedList:Ci,toggleUnorderedList:Di,toggleCodeBlock:mi,togglePreview:Ti,toggleStrikethrough:pi,toggleHeading1:xi,toggleHeading2:yi,toggleHeading3:bi,toggleHeading4:Po,toggleHeading5:Ro,toggleHeading6:_o,cleanBlock:wi,drawTable:Ai,drawHorizontalRule:Si,undo:Ei,redo:Li,toggleSideBySide:er,toggleFullScreen:Ln},Oc={toggleBold:"Cmd-B",toggleItalic:"Cmd-I",drawLink:"Cmd-K",toggleHeadingSmaller:"Cmd-H",toggleHeadingBigger:"Shift-Cmd-H",toggleHeading1:"Ctrl+Alt+1",toggleHeading2:"Ctrl+Alt+2",toggleHeading3:"Ctrl+Alt+3",toggleHeading4:"Ctrl+Alt+4",toggleHeading5:"Ctrl+Alt+5",toggleHeading6:"Ctrl+Alt+6",cleanBlock:"Cmd-E",drawImage:"Cmd-Alt-I",toggleBlockquote:"Cmd-'",toggleOrderedList:"Cmd-Alt-L",toggleUnorderedList:"Cmd-L",toggleCodeBlock:"Cmd-Alt-C",togglePreview:"Cmd-P",toggleSideBySide:"F9",toggleFullScreen:"F11"},Nc=function(u){for(var D in Lr)if(Lr[D]===u)return D;return null},Ho=function(){var u=!1;return(function(D){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(D)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(D.substr(0,4)))&&(u=!0)})(navigator.userAgent||navigator.vendor||window.opera),u};function Ic(u){for(var D;(D=Bc.exec(u))!==null;){var f=D[0];if(f.indexOf("target=")===-1){var m=f.replace(/>$/,' target="_blank">');u=u.replace(f,m)}}return u}function zc(u){for(var D=new DOMParser,f=D.parseFromString(u,"text/html"),m=f.getElementsByTagName("li"),g=0;g<m.length;g++)for(var w=m[g],v=0;v<w.children.length;v++){var y=w.children[v];y instanceof HTMLInputElement&&y.type==="checkbox"&&(w.style.marginLeft="-1.5em",w.style.listStyleType="none")}return f.documentElement.innerHTML}function es(u){return Ql?u=u.replace("Ctrl","Cmd"):u=u.replace("Cmd","Ctrl"),u}function Hc(u,D,f,m){var g=ci(u,!1,D,f,"button",m);g.classList.add("easymde-dropdown"),g.onclick=function(){g.focus()};var w=document.createElement("div");w.className="easymde-dropdown-content";for(var v=0;v<u.children.length;v++){var y=u.children[v],x;typeof y=="string"&&y in En?x=ci(En[y],!0,D,f,"button",m):x=ci(y,!0,D,f,"button",m),x.addEventListener("click",function(S){S.stopPropagation()},!1),w.appendChild(x)}return g.appendChild(w),g}function ci(u,D,f,m,g,w){u=u||{};var v=document.createElement(g);if(u.attributes)for(var y in u.attributes)Object.prototype.hasOwnProperty.call(u.attributes,y)&&v.setAttribute(y,u.attributes[y]);var x=w.options.toolbarButtonClassPrefix?w.options.toolbarButtonClassPrefix+"-":"";v.className=x+u.name,v.setAttribute("type",g),f=f??!0,u.text&&(v.innerText=u.text),u.name&&u.name in m&&(Lr[u.name]=u.action),u.title&&f&&(v.title=Rc(u.title,u.action,m),Ql&&(v.title=v.title.replace("Ctrl","⌘"),v.title=v.title.replace("Alt","⌥"))),u.title&&v.setAttribute("aria-label",u.title),u.noDisable&&v.classList.add("no-disable"),u.noMobile&&v.classList.add("no-mobile");var S=[];typeof u.className<"u"&&(S=u.className.split(" "));for(var z=[],P=0;P<S.length;P++){var M=S[P];M.match(/^fa([srlb]|(-[\w-]*)|$)/)?z.push(M):v.classList.add(M)}if(v.tabIndex=-1,z.length>0){for(var q=document.createElement("i"),$=0;$<z.length;$++){var ne=z[$];q.classList.add(ne)}v.appendChild(q)}return typeof u.icon<"u"&&(v.innerHTML=u.icon),u.action&&D&&(typeof u.action=="function"?v.onclick=function(J){J.preventDefault(),u.action(w)}
78:typeof u.action=="string"&&(v.onclick=function(J){J.preventDefault(),window.open(u.action,"_blank")})),v}function Pc(){var u=document.createElement("i");return u.className="separator",u.innerHTML="|",u}function Rc(u,D,f){var m,g=u;return D&&(m=Nc(D),f[m]&&(g+=" ("+es(f[m])+")")),g}function hn(u,D){D=D||u.getCursor("start");var f=u.getTokenAt(D);if(!f.type)return{};for(var m=f.type.split(" "),g={},w,v,y=0;y<m.length;y++)w=m[y],w==="strong"?g.bold=!0:w==="variable-2"?(v=u.getLine(D.line),/^\s*\d+\.\s/.test(v)?g["ordered-list"]=!0:g["unordered-list"]=!0):w==="atom"?g.quote=!0:w==="em"?g.italic=!0:w==="quote"?g.quote=!0:w==="strikethrough"?g.strikethrough=!0:w==="comment"?g.code=!0:w==="link"&&!g.image?g.link=!0:w==="image"?g.image=!0:w.match(/^header(-[1-6])?$/)&&(g[w.replace("header","heading")]=!0);return g}var Vl="";function Ln(u){var D=u.codemirror;D.setOption("fullScreen",!D.getOption("fullScreen")),D.getOption("fullScreen")?(Vl=document.body.style.overflow,document.body.style.overflow="hidden"):document.body.style.overflow=Vl;var f=D.getWrapperElement(),m=f.nextSibling;if(m.classList.contains("editor-preview-active-side"))if(u.options.sideBySideFullscreen===!1){var g=f.parentNode;D.getOption("fullScreen")?g.classList.remove("sided--no-fullscreen"):g.classList.add("sided--no-fullscreen")}else er(u);if(u.options.onToggleFullScreen&&u.options.onToggleFullScreen(D.getOption("fullScreen")||!1),typeof u.options.maxHeight<"u"&&(D.getOption("fullScreen")?(D.getScrollerElement().style.removeProperty("height"),m.style.removeProperty("height")):(D.getScrollerElement().style.height=u.options.maxHeight,u.setPreviewMaxHeight())),u.toolbar_div.classList.toggle("fullscreen"),u.toolbarElements&&u.toolbarElements.fullscreen){var w=u.toolbarElements.fullscreen;w.classList.toggle("active")}}function hi(u){qo(u,"bold",u.options.blockStyles.bold)}function di(u){qo(u,"italic",u.options.blockStyles.italic)}function pi(u){qo(u,"strikethrough","~~")}function mi(u){var D=u.options.blockStyles.code;function f(be){if(typeof be!="object")throw"fencing_line() takes a 'line' object (not a line number, or line text).  Got: "+typeof be+": "+be;return be.styles&&be.styles[2]&&be.styles[2].indexOf("formatting-code-block")!==-1}function m(be){return be.state.base.base||be.state.base}function g(be,L,Y,Z,me){Y=Y||be.getLineHandle(L),Z=Z||be.getTokenAt({line:L,ch:1}),me=me||!!Y.text&&be.getTokenAt({line:L,ch:Y.text.length-1});var Oe=Z.type?Z.type.split(" "):[];return me&&m(me).indentedCode?"indented":Oe.indexOf("comment")===-1?!1:m(Z).fencedChars||m(me).fencedChars||f(Y)?"fenced":"single"}function w(be,L,Y,Z){var me=L.line+1,Oe=Y.line+1,et=L.line!==Y.line,Ht=Z+`
79`,A=`
80`+Z;et&&Oe++,et&&Y.ch===0&&(A=Z+`
81`,Oe--),Tn(be,!1,[Ht,A]),be.setSelection({line:me,ch:0},{line:Oe,ch:0})}var v=u.codemirror,y=v.getCursor("start"),x=v.getCursor("end"),S=v.getTokenAt({line:y.line,ch:y.ch||1}),z=v.getLineHandle(y.line),P=g(v,y.line,z,S),M,q,$;if(P==="single"){var ne=z.text.slice(0,y.ch).replace("`",""),J=z.text.slice(y.ch).replace("`","");v.replaceRange(ne+J,{line:y.line,ch:0},{line:y.line,ch:99999999999999}),y.ch--,y!==x&&x.ch--,v.setSelection(y,x),v.focus()}else if(P==="fenced")if(y.line!==x.line||y.ch!==x.ch){for(M=y.line;M>=0&&(z=v.getLineHandle(M),!f(z));M--);var K=v.getTokenAt({line:M,ch:1}),I=m(K).fencedChars,H,_,j,ee;f(v.getLineHandle(y.line))?(H="",_=y.line):f(v.getLineHandle(y.line-1))?(H="",_=y.line-1):(H=I+`
82`,_=y.line),f(v.getLineHandle(x.line))?(j="",ee=x.line,x.ch===0&&(ee+=1)):x.ch!==0&&f(v.getLineHandle(x.line+1))?(j="",ee=x.line+1):(j=I+`
83`,ee=x.line+1),x.ch===0&&(ee-=1),v.operation(function(){v.replaceRange(j,{line:ee,ch:0},{line:ee+(j?0:1),ch:0}),v.replaceRange(H,{line:_,ch:0},{line:_+(H?0:1),ch:0})}),v.setSelection({line:_+(H?1:0),ch:0},{line:ee+(H?1:-1),ch:0}),v.focus()}else{var V=y.line;if(f(v.getLineHandle(y.line))&&(g(v,y.line+1)==="fenced"?(M=y.line,V=y.line+1):(q=y.line,V=y.line-1)),M===void 0)for(M=V;M>=0&&(z=v.getLineHandle(M),!f(z));M--);if(q===void 0)for($=v.lineCount(),q=V;q<$&&(z=v.getLineHandle(q),!f(z));q++);v.operation(function(){v.replaceRange("",{line:M,ch:0}
83,{line:M+1,ch:0}),v.replaceRange("",{line:q-1,ch:0},{line:q,ch:0})}),v.focus()}else if(P==="indented"){if(y.line!==x.line||y.ch!==x.ch)M=y.line,q=x.line,x.ch===0&&q--;else{for(M=y.line;M>=0;M--)if(z=v.getLineHandle(M),!z.text.match(/^\s*$/)&&g(v,M,z)!=="indented"){M+=1;break}for($=v.lineCount(),q=y.line;q<$;q++)if(z=v.getLineHandle(q),!z.text.match(/^\s*$/)&&g(v,q,z)!=="indented"){q-=1;break}}var se=v.getLineHandle(q+1),pe=se&&v.getTokenAt({line:q+1,ch:se.text.length-1}),We=pe&&m(pe).indentedCode;We&&v.replaceRange(`
84`,{line:q+1,ch:0});for(var te=M;te<=q;te++)v.indentLine(te,"subtract");v.focus()}else{var Ee=y.line===x.line&&y.ch===x.ch&&y.ch===0,Le=y.line!==x.line;Ee||Le?w(v,y,x,D):Tn(v,!1,["`","`"])}}function gi(u){jo(u.codemirror,"quote")}function Tr(u){dn(u.codemirror,"smaller")}function vi(u){dn(u.codemirror,"bigger")}function xi(u){dn(u.codemirror,void 0,1)}function yi(u){dn(u.codemirror,void 0,2)}function bi(u){dn(u.codemirror,void 0,3)}function Po(u){dn(u.codemirror,void 0,4)}function Ro(u){dn(u.codemirror,void 0,5)}function _o(u){dn(u.codemirror,void 0,6)}function Di(u){var D=u.codemirror,f="*";["-","+","*"].includes(u.options.unorderedListStyle)&&(f=u.options.unorderedListStyle),jo(D,"unordered-list",f)}function Ci(u){jo(u.codemirror,"ordered-list")}function wi(u){_c(u.codemirror)}function ki(u){var D=u.options,f="https://";if(D.promptURLs){var m=prompt(D.promptTexts.link,f);if(!m)return!1;f=ts(m)}rs(u,"link",D.insertTexts.link,f)}function Fi(u){var D=u.options,f="https://";if(D.promptURLs){var m=prompt(D.promptTexts.image,f);if(!m)return!1;f=ts(m)}rs(u,"image",D.insertTexts.image,f)}function ts(u){return encodeURI(u).replace(/([\\()])/g,"\\$1")}function Wo(u){u.openBrowseFileWindow()}function ns(u,D){var f=u.codemirror,m=hn(f),g=u.options,w=D.substr(D.lastIndexOf("/")+1),v=w.substring(w.lastIndexOf(".")+1).replace(/\?.*$/,"").toLowerCase();if(["png","jpg","jpeg","gif","svg","apng","avif","webp"].includes(v))Tn(f,m.image,g.insertTexts.uploadedImage,D);else{var y=g.insertTexts.link;y[0]="["+w,Tn(f,m.link,y,D)}u.updateStatusBar("upload-image",u.options.imageTexts.sbOnUploaded.replace("#image_name#",w)),setTimeout(function(){u.updateStatusBar("upload-image",u.options.imageTexts.sbInit)},1e3)}function Ai(u){var D=u.codemirror,f=hn(D),m=u.options;Tn(D,f.table,m.insertTexts.table)}function Si(u){var D=u.codemirror,f=hn(D),m=u.options;Tn(D,f.image,m.insertTexts.horizontalRule)}function Ei(u){var D=u.codemirror;D.undo(),D.focus()}function Li(u){var D=u.codemirror;D.redo(),D.focus()}function er(u){var D=u.codemirror,f=D.getWrapperElement(),m=f.nextSibling,g=u.toolbarElements&&u.toolbarElements["side-by-side"],w=!1,v=f.parentNode;m.classList.contains("editor-preview-active-side")?(u.options.sideBySideFullscreen===!1&&v.classList.remove("sided--no-fullscreen"),m.classList.remove("editor-preview-active-side"),g&&g.classList.remove("active"),f.classList.remove("CodeMirror-sided")):(setTimeout(function(){D.getOption("fullScreen")||(u.options.sideBySideFullscreen===!1?v.classList.add("sided--no-fullscreen"):Ln(u)),m.classList.add("editor-preview-active-side")},1),g&&g.classList.add("active"),f.classList.add("CodeMirror-sided"),w=!0);var y=f.lastChild;if(y.classList.contains("editor-preview-active")){y.classList.remove("editor-preview-active");var x=u.toolbarElements.preview,S=u.toolbar_div;x.classList.remove("active"),S.classList.remove("disabled-for-preview")}var z=function(){var M=u.options.previewRender(u.value(),m);M!=null&&(m.innerHTML=M)};if(D.sideBySideRenderingFunction||(D.sideBySideRenderingFunction=z),w){var P=u.options.previewRender(u.value(),m);P!=null&&(m.innerHTML=P),D.on("update",D.sideBySideRenderingFunction)}else D.off("update",D.sideBySideRenderingFunction);D.refresh()}function Ti(u){var D=u.codemirror,f=D.getWrapperElement(),m=u.toolbar_div,g=u.options.toolbar?u.toolbarElements.preview:!1,w=f.lastChild,v=D.getWrapperElement().nextSibling;if(v.classList.contains("editor-preview-active-side")&&er(u),!w||!w.classList.contains("editor-preview-full")){if(w=document.createElement("div"),w.className="editor-preview-full",u.options.previewClass)if(Array.isArray(u.options.previewClass))for(var y=0;y<u.options.previewClass.length;y++)w.classList.add(u.options.previewClass[y]);else typeof u.options.previewClass=="string"&&w.classList.add(u.options.previewClass);f.appendChild(w)}w.classList.contains("editor-preview-active")?(w.classList.remove("editor-preview-active"),g&&(g.classList.remove("active"),m.classList.remove("disabled-for-preview"))):(setTimeout(function(){w.classList.add("editor-preview-active")},1),g&&(g.classList.add("active"),m.classList.add("disabled-for-preview")));var x=u.options.previewRender(u.value(),w);x!==null&&(w.innerHTML=x)}function Tn(u,D,f,m){if(!u.getWrapperElement().lastChild.classList.contains("editor-preview-active")){var g,w=f[0],v=f[1],y={},x={};
84Object.assign(y,u.getCursor("start")),Object.assign(x,u.getCursor("end")),m&&(w=w.replace("#url#",m),v=v.replace("#url#",m)),D?(g=u.getLine(y.line),w=g.slice(0,y.ch),v=g.slice(y.ch),u.replaceRange(w+v,{line:y.line,ch:0})):(g=u.getSelection(),u.replaceSelection(w+g+v),y.ch+=w.length,y!==x&&(x.ch+=w.length)),u.setSelection(y,x),u.focus()}}function dn(u,D,f){if(!u.getWrapperElement().lastChild.classList.contains("editor-preview-active")){for(var m=u.getCursor("start"),g=u.getCursor("end"),w=m.line;w<=g.line;w++)(function(v){var y=u.getLine(v),x=y.search(/[^#]/);D!==void 0?x<=0?D=="bigger"?y="###### "+y:y="# "+y:x==6&&D=="smaller"?y=y.substr(7):x==1&&D=="bigger"?y=y.substr(2):D=="bigger"?y=y.substr(1):y="#"+y:x<=0?y="#".repeat(f)+" "+y:x==f?y=y.substr(x+1):y="#".repeat(f)+" "+y.substr(x+1),u.replaceRange(y,{line:v,ch:0},{line:v,ch:99999999999999})})(w);u.focus()}}function jo(u,D,f){if(!u.getWrapperElement().lastChild.classList.contains("editor-preview-active")){for(var m=/^(\s*)(\*|-|\+|\d*\.)(\s+)/,g=/^\s*/,w=hn(u),v=u.getCursor("start"),y=u.getCursor("end"),x={quote:/^(\s*)>\s+/,"unordered-list":m,"ordered-list":m},S=function($,ne){var J={quote:">","unordered-list":f,"ordered-list":"%%i."};return J[$].replace("%%i",ne)},z=function($,ne){var J={quote:">","unordered-list":"\\"+f,"ordered-list":"\\d+."},K=new RegExp(J[$]);return ne&&K.test(ne)},P=function($,ne,J){var K=m.exec(ne),I=S($,M);return K!==null?(z($,K[2])&&(I=""),ne=K[1]+I+K[3]+ne.replace(g,"").replace(x[$],"$1")):J==!1&&(ne=I+" "+ne),ne},M=1,q=v.line;q<=y.line;q++)(function($){var ne=u.getLine($);w[D]?ne=ne.replace(x[D],"$1"):(D=="unordered-list"&&(ne=P("ordered-list",ne,!0)),ne=P(D,ne,!1),M+=1),u.replaceRange(ne,{line:$,ch:0},{line:$,ch:99999999999999})})(q);u.focus()}}function rs(u,D,f,m){if(!(!u.codemirror||u.isPreviewActive())){var g=u.codemirror,w=hn(g),v=w[D];if(!v){Tn(g,v,f,m);return}var y=g.getCursor("start"),x=g.getCursor("end"),S=g.getLine(y.line),z=S.slice(0,y.ch),P=S.slice(y.ch);D=="link"?z=z.replace(/(.*)[^!]\[/,"$1"):D=="image"&&(z=z.replace(/(.*)!\[$/,"$1")),P=P.replace(/]\(.*?\)/,""),g.replaceRange(z+P,{line:y.line,ch:0},{line:y.line,ch:99999999999999}),y.ch-=f[0].length,y!==x&&(x.ch-=f[0].length),g.setSelection(y,x),g.focus()}}function qo(u,D,f,m){if(!(!u.codemirror||u.isPreviewActive())){m=typeof m>"u"?f:m;var g=u.codemirror,w=hn(g),v,y=f,x=m,S=g.getCursor("start"),z=g.getCursor("end");w[D]?(v=g.getLine(S.line),y=v.slice(0,S.ch),x=v.slice(S.ch),D=="bold"?(y=y.replace(/(\*\*|__)(?![\s\S]*(\*\*|__))/,""),x=x.replace(/(\*\*|__)/,"")):D=="italic"?(y=y.replace(/(\*|_)(?![\s\S]*(\*|_))/,""),x=x.replace(/(\*|_)/,"")):D=="strikethrough"&&(y=y.replace(/(\*\*|~~)(?![\s\S]*(\*\*|~~))/,""),x=x.replace(/(\*\*|~~)/,"")),g.replaceRange(y+x,{line:S.line,ch:0},{line:S.line,ch:99999999999999}),D=="bold"||D=="strikethrough"?(S.ch-=2,S!==z&&(z.ch-=2)):D=="italic"&&(S.ch-=1,S!==z&&(z.ch-=1))):(v=g.getSelection(),D=="bold"?(v=v.split("**").join(""),v=v.split("__").join("")):D=="italic"?(v=v.split("*").join(""),v=v.split("_").join("")):D=="strikethrough"&&(v=v.split("~~").join("")),g.replaceSelection(y+v+x),S.ch+=f.length,z.ch=S.ch+v.length),g.setSelection(S,z),g.focus()}}function _c(u){if(!u.getWrapperElement().lastChild.classList.contains("editor-preview-active"))for(var D=u.getCursor("start"),f=u.getCursor("end"),m,g=D.line;g<=f.line;g++)m=u.getLine(g),m=m.replace(/^[ ]*([# ]+|\*|-|[> ]+|[0-9]+(.|\)))[ ]*/,""),u.replaceRange(m,{line:g,ch:0},{line:g,ch:99999999999999})}function fi(u,D){if(Math.abs(u)<1024)return""+u+D[0];var f=0;do u/=1024,++f;while(Math.abs(u)>=1024&&f<D.length);return""+u.toFixed(1)+D[f]}function is(u,D){for(var f in D)Object.prototype.hasOwnProperty.call(D,f)&&(D[f]instanceof Array?u[f]=D[f].concat(u[f]instanceof Array?u[f]:[]):D[f]!==null&&typeof D[f]=="object"&&D[f].constructor===Object?u[f]=is(u[f]||{},D[f]):u[f]=D[f]);return u}function Qt(u){for(var D=1;D<arguments.length;D++)u=is(u,arguments[D]);return u}function Kl(u){var D=/[a-zA-Z0-9_\u00A0-\u02AF\u0392-\u03c9\u0410-\u04F9]+|[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af]+/g,f=u.match(D),m=0;if(f===null)return m;for(var g=0;g<f.length;g++)f[g].charCodeAt(0)>=19968?m+=f[g].length:m+=1;return m}var je={bold:"fa fa-bold",italic:"fa fa-italic",strikethrough:"fa fa-strikethrough",heading:"fa fa-header fa-heading","heading-smaller":"fa fa-header fa-heading header-smaller","heading-bigger":"fa fa-header fa-heading header-bigger","heading-1":"fa fa-header fa-heading header-1","heading-2":"fa fa-header fa-heading header-2","heading-3":"fa fa-header fa-heading header-3",code:"fa fa-code",quote:"fa fa-quote-left","ordered-list":"fa fa-list-ol","unordered-list":"fa fa-list-ul","clean-block":"fa fa-eraser",link:"fa fa-link",image:"fa fa-image","upload-image":"fa fa-image",table:"fa fa-table","horizontal-rule":"fa fa-minus",preview:"fa fa-eye","side-by-side":"fa fa-columns",fullscreen:"fa fa-arrows-alt",guide:"fa fa-question-circle",undo:"fa fa-undo",redo:"fa fa-repeat fa-redo"},En={bold:{name:"bold",action:hi,className:je.bold,title:"Bold",default:!0},italic:{name:"italic",action:di,className:je.italic,title:"Italic",default:!0},strikethrough:{name:"strikethrough",action:pi,className:je.strikethrough,title:"Str
84ikethrough"},heading:{name:"heading",action:Tr,className:je.heading,title:"Heading",default:!0},"heading-smaller":{name:"heading-smaller",action:Tr,className:je["heading-smaller"],title:"Smaller Heading"},"heading-bigger":{name:"heading-bigger",action:vi,className:je["heading-bigger"],title:"Bigger Heading"},"heading-1":{name:"heading-1",action:xi,className:je["heading-1"],title:"Big Heading"},"heading-2":{name:"heading-2",action:yi,className:je["heading-2"],title:"Medium Heading"},"heading-3":{name:"heading-3",action:bi,className:je["heading-3"],title:"Small Heading"},"separator-1":{name:"separator-1"},code:{name:"code",action:mi,className:je.code,title:"Code"},quote:{name:"quote",action:gi,className:je.quote,title:"Quote",default:!0},"unordered-list":{name:"unordered-list",action:Di,className:je["unordered-list"],title:"Generic List",default:!0},"ordered-list":{name:"ordered-list",action:Ci,className:je["ordered-list"],title:"Numbered List",default:!0},"clean-block":{name:"clean-block",action:wi,className:je["clean-block"],title:"Clean block"},"separator-2":{name:"separator-2"},link:{name:"link",action:ki,className:je.link,title:"Create Link",default:!0},image:{name:"image",action:Fi,className:je.image,title:"Insert Image",default:!0},"upload-image":{name:"upload-image",action:Wo,className:je["upload-image"],title:"Import an image"},table:{name:"table",action:Ai,className:je.table,title:"Insert Table"},"horizontal-rule":{name:"horizontal-rule",action:Si,className:je["horizontal-rule"],title:"Insert Horizontal Line"},"separator-3":{name:"separator-3"},preview:{name:"preview",action:Ti,className:je.preview,noDisable:!0,title:"Toggle Preview",default:!0},"side-by-side":{name:"side-by-side",action:er,className:je["side-by-side"],noDisable:!0,noMobile:!0,title:"Toggle Side by Side",default:!0},fullscreen:{name:"fullscreen",action:Ln,className:je.fullscreen,noDisable:!0,noMobile:!0,title:"Toggle Fullscreen",default:!0},"separator-4":{name:"separator-4"},guide:{name:"guide",action:"https://www.markdownguide.org/basic-syntax/",className:je.guide,noDisable:!0,title:"Markdown Guide",default:!0},"separator-5":{name:"separator-5"},undo:{name:"undo",action:Ei,className:je.undo,noDisable:!0,title:"Undo"},redo:{name:"redo",action:Li,className:je.redo,noDisable:!0,title:"Redo"}},Wc={link:["[","](#url#)"],image:["![","](#url#)"],uploadedImage:["![](#url#)",""],table:["",`
85
86| Column 1 | Column 2 | Column 3 |
87| -------- | -------- | -------- |
88| Text     | Text     | Text     |
89
90`],horizontalRule:["",`
91
92-----
93
94`]},jc={link:"URL for the link:",image:"URL of the image:"},qc={locale:"en-US",format:{hour:"2-digit",minute:"2-digit"}},$c={bold:"**",code:"```",italic:"*"},Uc={sbInit:"Attach files by drag and dropping or pasting from clipboard.",sbOnDragEnter:"Drop image to upload it.",sbOnDrop:"Uploading image #images_names#...",sbProgress:"Uploading #file_name#: #progress#%",sbOnUploaded:"Uploaded #image_name#",sizeUnits:" B, KB, MB"},Gc={noFileGiven:"You must select a file.",typeNotAllowed:"This image type is not allowed.",fileTooLarge:`Image #image_name# is too big (#image_size#).
95Maximum file size is #image_max_size#.`,importError:"Something went wrong when uploading the image #image_name#."};function he(u){u=u||{},u.parent=this;var D=!0;if(u.autoDownloadFontAwesome===!1&&(D=!1),u.autoDownloadFontAwesome!==!0)for(var f=document.styleSheets,m=0;m<f.length;m++)f[m].href&&f[m].href.indexOf("//maxcdn.bootstrapcdn.com/font-awesome/")>-1&&(D=!1);if(D){var g=document.createElement("link");g.rel="stylesheet",g.href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css",document.getElementsByTagName("head")[0].appendChild(g)}if(u.element)this.element=u.element;else if(u.element===null){console.log("EasyMDE: Error. No element was found.");return}if(u.toolbar===void 0){u.toolbar=[];for(var w in En)Object.prototype.hasOwnProperty.call(En,w)&&(w.indexOf("separator-")!=-1&&u.toolbar.push("|"),(En[w].default===!0||u.showIcons&&u.showIcons.constructor===Array&&u.showIcons.indexOf(w)!=-1)&&u.toolbar.push(w))}if(Object.prototype.hasOwnProperty.call(u,"previewClass")||(u.previewClass="editor-preview"),Object.prototype.hasOwnProperty.call(u,"status")||(u.status=["autosave","lines","words","cursor"],u.uploadImage&&u.status.unshift("upload-image")),u.previewRender||(u.previewRender=function(y){return this.parent.markdown(y)}),u.parsingConfig=Qt({highlightFormatting:!0},u.parsingConfig||{}),u.insertTexts=Qt({},Wc,u.insertTexts||{}),u.promptTexts=Qt({},jc,u.promptTexts||{}),u.blockStyles=Qt({},$c,u.blockStyles||{}),u.autosave!=null&&(u.autosave.timeFormat=Qt({},qc,u.autosave.timeFormat||{})),u.iconClassMap=Qt({},je,u.iconClassMap||{}),u.shortcuts=Qt({},Oc,u.shortcuts||{}),u.maxHeight=u.maxHeight||void 0,u.direction=u.direction||"ltr",typeof u.maxHeight<"u"?u.minHeight=u.maxHeight:u.minHeight=u.minHeight||"300px",u.errorCallback=u.errorCallback||function(y){alert(y)},u.uploadImage=u.uploadImage||!1,u.imageMaxSize=u.imageMaxSize||2097152,u.imageAccept=u.imageAccept||"image/png, image/jpeg, image/gif, image/avif",u.imageTexts=Qt({},Uc,u.imageTexts||{}),u.errorMessages=Qt({},Gc,u.errorMessages||{}),u.imagePathAbsolute=u.imagePathAbsolute||!1,u.imageCSRFName=u.imageCSRFName||"csrfmiddlewaretoken",u.imageCSRFHeader=u.imageCSRFHeader||!1,u.autosave!=null&&u.autosave.unique_id!=null&&u.autosave.unique_id!=""&&(u.autosave.uniqueId=u.autosave.unique_id),u.overlayMode&&u.overlayMode.combine===void 0&&(u.overlayMode.combine=!0),this.options=u,this.render(),u.initialValue&&(!this.options.autosave||this.options.autosave.foun
95dSavedValue!==!0)&&this.value(u.initialValue),u.uploadImage){var v=this;this.codemirror.on("dragenter",function(y,x){v.updateStatusBar("upload-image",v.options.imageTexts.sbOnDragEnter),x.stopPropagation(),x.preventDefault()}),this.codemirror.on("dragend",function(y,x){v.updateStatusBar("upload-image",v.options.imageTexts.sbInit),x.stopPropagation(),x.preventDefault()}),this.codemirror.on("dragleave",function(y,x){v.updateStatusBar("upload-image",v.options.imageTexts.sbInit),x.stopPropagation(),x.preventDefault()}),this.codemirror.on("dragover",function(y,x){v.updateStatusBar("upload-image",v.options.imageTexts.sbOnDragEnter),x.stopPropagation(),x.preventDefault()}),this.codemirror.on("drop",function(y,x){x.stopPropagation(),x.preventDefault(),u.imageUploadFunction?v.uploadImagesUsingCustomFunction(u.imageUploadFunction,x.dataTransfer.files):v.uploadImages(x.dataTransfer.files)}),this.codemirror.on("paste",function(y,x){u.imageUploadFunction?v.uploadImagesUsingCustomFunction(u.imageUploadFunction,x.clipboardData.files):v.uploadImages(x.clipboardData.files)})}}he.prototype.uploadImages=function(u,D,f){if(u.length!==0){for(var m=[],g=0;g<u.length;g++)m.push(u[g].name),this.uploadImage(u[g],D,f);this.updateStatusBar("upload-image",this.options.imageTexts.sbOnDrop.replace("#images_names#",m.join(", ")))}};he.prototype.uploadImagesUsingCustomFunction=function(u,D){if(D.length!==0){for(var f=[],m=0;m<D.length;m++)f.push(D[m].name),this.uploadImageUsingCustomFunction(u,D[m]);this.updateStatusBar("upload-image",this.options.imageTexts.sbOnDrop.replace("#images_names#",f.join(", ")))}};he.prototype.updateStatusBar=function(u,D){if(this.gui.statusbar){var f=this.gui.statusbar.getElementsByClassName(u);f.length===1?this.gui.statusbar.getElementsByClassName(u)[0].textContent=D:f.length===0?console.log("EasyMDE: status bar item "+u+" was not found."):console.log("EasyMDE: Several status bar items named "+u+" was found.")}};he.prototype.markdown=function(u){if(zo){var D;if(this.options&&this.options.renderingConfig&&this.options.renderingConfig.markedOptions?D=this.options.renderingConfig.markedOptions:D={},this.options&&this.options.renderingConfig&&this.options.renderingConfig.singleLineBreaks===!1?D.breaks=!1:D.breaks=!0,this.options&&this.options.renderingConfig&&this.options.renderingConfig.codeSyntaxHighlighting===!0){var f=this.options.renderingConfig.hljs||window.hljs;f&&(D.highlight=function(g,w){return w&&f.getLanguage(w)?f.highlight(w,g).value:f.highlightAuto(g).value})}zo.setOptions(D);var m=zo.parse(u);return this.options.renderingConfig&&typeof this.options.renderingConfig.sanitizerFunction=="function"&&(m=this.options.renderingConfig.sanitizerFunction.call(this,m)),m=Ic(m),m=zc(m),m}};he.prototype.render=function(u){if(u||(u=this.element||document.getElementsByTagName("textarea")[0]),this._rendered&&this._rendered===u)return;this.element=u;var D=this.options,f=this,m={};for(var g in D.shortcuts)D.shortcuts[g]!==null&&Lr[g]!==null&&(function(J){m[es(D.shortcuts[J])]=function(){var K=Lr[J];typeof K=="function"?K(f):typeof K=="string"&&window.open(K,"_blank")}})(g);m.Enter="newlineAndIndentContinueMarkdownList",m.Tab="tabAndIndentMarkdownList",m["Shift-Tab"]="shiftTabAndUnindentMarkdownList",m.Esc=function(J){J.getOption("fullScreen")&&Ln(f)},this.documentOnKeyDown=function(J){J=J||window.event,J.keyCode==27&&f.codemirror.getOption("fullScreen")&&Ln(f)},document.addEventListener("keydown",this.documentOnKeyDown,!1);var w,v;D.overlayMode?(Qn.defineMode("overlay-mode",function(J){return Qn.overlayMode(Qn.getMode(J,D.spellChecker!==!1?"spell-checker":"gfm"),D.overlayMode.mode,D.overlayMode.combine)}),w="overlay-mode",v=D.parsingConfig,v.gitHubSpice=!1):(w=D.parsingConfig,w.name="gfm",w.gitHubSpice=!1),D.spellChecker!==!1&&(w="spell-checker",v=D.parsingConfig,v.name="gfm",v.gitHubSpice=!1,typeof D.spellChecker=="function"?D.spellChecker({codeMirrorInstance:Qn}):Mc({codeMirrorInstance:Qn}));function y(J,K,I){return{addNew:!1}}if(this.codemirror=Qn.fromTextArea(u,{mode:w,backdrop:v,theme:D.theme!=null?D.theme:"easymde",tabSize:D.tabSize!=null?D.tabSize:2,indentUnit:D.tabSize!=null?D.tabSize:2,indentWithTabs:D.indentWithTabs!==!1,lineNumbers:D.lineNumbers===!0,autofocus:D.autofocus===!0,extraKeys:m,direction:D.direction,lineWrapping:D.lineWrapping!==!1,allowDropFileTypes:["text/plain"],placeholder:D.placeholder||u.getAttribute("placeholder")||"",styleSelectedText:D.styleSelectedText!=null?D.styleSelectedText:!Ho(),scrollbarStyle:D.scrollbarStyle!=null?D.scrollbarStyle:"native",configureMouse:y,inputStyle:D.inputStyle!=null?D.inputStyle:Ho()?"contenteditable":"textarea",spellcheck:D.nativeSpellcheck!=null?D.nativeSpellcheck:!0,autoRefresh:D.autoRefresh!=null?D.autoRefresh:!1}),this.codemirror.getScrollerElement().style.minHeight=D.minHeight,typeof D.maxHeight<"u"&&(this.codemirror.getScrollerElement().style.height=D.maxHeight),D.forceSync===!0){var x=this.codemirror;x.on("change",function(){x.save()})}this.gui={};var S=document.createElement("div");S.classList.add("EasyMDEContainer"),S.setAttribute("role","application");var z=this.codemirror.getWrapperElement();z.parentNode.insertBefore(S,z),S.appendChild(z),D.toolbar!==!1&&(this.gui.toolbar=this.createToolbar()),D.status!==!1&&(this.gui.statusbar=this.createStatusbar()),D.autosave!=null&&D.autosave.enabled===!0&&(this.autosave(),this.codemirror.on("change",function(){clearTimeout(f._autosave_timeout),f._autosave_timeout=setTimeout(function(){f.autosave()},f.options.autosave.submit_delay||f.options.autosave.delay||1e3)}));function P(J,K){var I,H=window.getComputedStyle(document.querySelector(".CodeMirror-sizer")).width.replace("px","");return J<H?I=K+"px":I=K/J*100+"%",I}var M=this;function q(J,K){J.setAttribute("data-img-src",K.url),J.setAttribute("style","--bg-image:url("+K.url+");
95--width:"+K.naturalWidth+"px;--height:"+P(K.naturalWidth,K.naturalHeight)),M.codemirror.setSize()}function $(){D.previewImagesInEditor&&S.querySelectorAll(".cm-image-marker").forEach(function(J){var K=J.parentElement;if(K.innerText.match(/^!\[.*?\]\(.*\)/g)&&!K.hasAttribute("data-img-src")){var I=K.innerText.match("\\((.*)\\)");if(window.EMDEimagesCache||(window.EMDEimagesCache={}),I&&I.length>=2){var H=I[1];if(D.imagesPreviewHandler){var _=D.imagesPreviewHandler(I[1]);typeof _=="string"&&(H=_)}if(window.EMDEimagesCache[H])q(K,window.EMDEimagesCache[H]);else{var j=document.createElement("img");j.onload=function(){window.EMDEimagesCache[H]={naturalWidth:j.naturalWidth,naturalHeight:j.naturalHeight,url:H},q(K,window.EMDEimagesCache[H])},j.src=H}}}})}this.codemirror.on("update",function(){$()}),this.gui.sideBySide=this.createSideBySide(),this._rendered=this.element,(D.autofocus===!0||u.autofocus)&&this.codemirror.focus();var ne=this.codemirror;setTimeout((function(){ne.refresh()}).bind(ne),0)};he.prototype.cleanup=function(){document.removeEventListener("keydown",this.documentOnKeyDown)};function os(){if(typeof localStorage=="object")try{localStorage.setItem("smde_localStorage",1),localStorage.removeItem("smde_localStorage")}catch{return!1}else return!1;return!0}he.prototype.autosave=function(){if(os()){var u=this;if(this.options.autosave.uniqueId==null||this.options.autosave.uniqueId==""){console.log("EasyMDE: You must set a uniqueId to use the autosave feature");return}this.options.autosave.binded!==!0&&(u.element.form!=null&&u.element.form!=null&&u.element.form.addEventListener("submit",function(){clearTimeout(u.autosaveTimeoutId),u.autosaveTimeoutId=void 0,localStorage.removeItem("smde_"+u.options.autosave.uniqueId)}),this.options.autosave.binded=!0),this.options.autosave.loaded!==!0&&(typeof localStorage.getItem("smde_"+this.options.autosave.uniqueId)=="string"&&localStorage.getItem("smde_"+this.options.autosave.uniqueId)!=""&&(this.codemirror.setValue(localStorage.getItem("smde_"+this.options.autosave.uniqueId)),this.options.autosave.foundSavedValue=!0),this.options.autosave.loaded=!0);var D=u.value();D!==""?localStorage.setItem("smde_"+this.options.autosave.uniqueId,D):localStorage.removeItem("smde_"+this.options.autosave.uniqueId);var f=document.getElementById("autosaved");if(f!=null&&f!=null&&f!=""){var m=new Date,g=new Intl.DateTimeFormat([this.options.autosave.timeFormat.locale,"en-US"],this.options.autosave.timeFormat.format).format(m),w=this.options.autosave.text==null?"Autosaved: ":this.options.autosave.text;f.innerHTML=w+g}}else console.log("EasyMDE: localStorage not available, cannot autosave")};he.prototype.clearAutosavedValue=function(){if(os()){if(this.options.autosave==null||this.options.autosave.uniqueId==null||this.options.autosave.uniqueId==""){console.log("EasyMDE: You must set a uniqueId to clear the autosave value");return}localStorage.removeItem("smde_"+this.options.autosave.uniqueId)}else console.log("EasyMDE: localStorage not available, cannot autosave")};he.prototype.openBrowseFileWindow=function(u,D){var f=this,m=this.gui.toolbar.getElementsByClassName("imageInput")[0];m.click();function g(w){f.options.imageUploadFunction?f.uploadImagesUsingCustomFunction(f.options.imageUploadFunction,w.target.files):f.uploadImages(w.target.files,u,D),m.removeEventListener("change",g)}m.addEventListener("change",g)};he.prototype.uploadImage=function(u,D,f){var m=this;D=D||function(x){ns(m,x)};function g(x){m.updateStatusBar("upload-image",x),setTimeout(function(){m.updateStatusBar("upload-image",m.options.imageTexts.sbInit)},1e4),f&&typeof f=="function"&&f(x),m.options.errorCallback(x)}function w(x){var S=m.options.imageTexts.sizeUnits.split(",");return x.replace("#image_name#",u.name).replace("#image_size#",fi(u.size,S)).replace("#image_max_size#",fi(m.options.imageMaxSize,S))}if(u.size>this.options.imageMaxSize){g(w(this.options.errorMessages.fileTooLarge));return}var v=new FormData;v.append("image",u),m.options.imageCSRFToken&&!m.options.imageCSRFHeader&&v.append(m.options.imageCSRFName,m.options.imageCSRFToken);var y=new XMLHttpRequest;y.upload.onprogress=function(x){if(x.lengthComputable){var S=""+Math.round(x.loaded*100/x.total);m.updateStatusBar("upload-image",m.options.imageTexts.sbProgress.replace("#file_name#",u.name).replace("#progress#",S))}},y.open("POST",this.options.imageUploadEndpoint),m.options.imageCSRFToken&&m.options.imageCSRFHeader&&y.setRequestHeader(m.options.imageCSRFName,m.options.imageCSRFToken),y.onload=function(){try{var x=JSON.parse(this.responseText)}catch{console.error("EasyMDE: The server did not return a valid json."),g(w(m.options.errorMessages.importError));return}this.status===200&&x&&!x.error&&x.data&&x.data.filePath?D((m.options.imagePathAbsolute?"":window.location.origin+"/")+x.data.filePath):x.error&&x.error in m.options.errorMessages?g(w(m.options.errorMessages[x.error])):x.error?g(w(x.error)):(console.error("EasyMDE: Received an unexpected response after uploading the image."+this.status+" ("+this.statusText+")"),g(w(m.options.errorMessages.importError)))},y.onerror=function(x){console.error("EasyMDE: An unexpected error occurred when trying to upload the image."+x.target.status+" ("+x.target.statusText+")"),g(m.options.errorMessages.importError)},y.send(v)};he.prototype.uploadImageUsingCustomFunction=function(u,D){var f=this;function m(v){ns(f,v)}function g(v){var y=w(v);f.updateStatusBar("upload-image",y),setTimeout(function(){f.updateStatusBar("upload-image",f.options.imageTexts.sbInit)},1e4),f.options.errorCallback(y)}function w(v){var y=f.options.imageTexts.sizeUnits.split(",");return v.replace("#image_name#",D.name).replace("#image_size#",fi(D.size,y)).replace("#image_max_size#",fi(f.options.imageMaxSize,y
95))}u.apply(this,[D,m,g])};he.prototype.setPreviewMaxHeight=function(){var u=this.codemirror,D=u.getWrapperElement(),f=D.nextSibling,m=parseInt(window.getComputedStyle(D).paddingTop),g=parseInt(window.getComputedStyle(D).borderTopWidth),w=parseInt(this.options.maxHeight),v=w+m*2+g*2,y=v.toString()+"px";f.style.height=y};he.prototype.createSideBySide=function(){var u=this.codemirror,D=u.getWrapperElement(),f=D.nextSibling;if(!f||!f.classList.contains("editor-preview-side")){if(f=document.createElement("div"),f.className="editor-preview-side",this.options.previewClass)if(Array.isArray(this.options.previewClass))for(var m=0;m<this.options.previewClass.length;m++)f.classList.add(this.options.previewClass[m]);else typeof this.options.previewClass=="string"&&f.classList.add(this.options.previewClass);D.parentNode.insertBefore(f,D.nextSibling)}if(typeof this.options.maxHeight<"u"&&this.setPreviewMaxHeight(),this.options.syncSideBySidePreviewScroll===!1)return f;var g=!1,w=!1;return u.on("scroll",function(v){if(g){g=!1;return}w=!0;var y=v.getScrollInfo().height-v.getScrollInfo().clientHeight,x=parseFloat(v.getScrollInfo().top)/y,S=(f.scrollHeight-f.clientHeight)*x;f.scrollTop=S}),f.onscroll=function(){if(w){w=!1;return}g=!0;var v=f.scrollHeight-f.clientHeight,y=parseFloat(f.scrollTop)/v,x=(u.getScrollInfo().height-u.getScrollInfo().clientHeight)*y;u.scrollTo(0,x)},f};he.prototype.createToolbar=function(u){if(u=u||this.options.toolbar,!(!u||u.length===0)){var D;for(D=0;D<u.length;D++)En[u[D]]!=null&&(u[D]=En[u[D]]);var f=document.createElement("div");f.className="editor-toolbar",f.setAttribute("role","toolbar");var m=this,g={};for(m.toolbar=u,D=0;D<u.length;D++)if(!(u[D].name=="guide"&&m.options.toolbarGuideIcon===!1)&&!(m.options.hideIcons&&m.options.hideIcons.indexOf(u[D].name)!=-1)&&!((u[D].name=="fullscreen"||u[D].name=="side-by-side")&&Ho())){if(u[D]==="|"){for(var w=!1,v=D+1;v<u.length;v++)u[v]!=="|"&&(!m.options.hideIcons||m.options.hideIcons.indexOf(u[v].name)==-1)&&(w=!0);if(!w)continue}(function(S){var z;
95if(S==="|"?z=Pc():S.children?z=Hc(S,m.options.toolbarTips,m.options.shortcuts,m):z=ci(S,!0,m.options.toolbarTips,m.options.shortcuts,"button",m),g[S.name||S]=z,f.appendChild(z),S.name==="upload-image"){var P=document.createElement("input");P.className="imageInput",P.type="file",P.multiple=!0,P.name="image",P.accept=m.options.imageAccept,P.style.display="none",P.style.opacity=0,f.appendChild(P)}})(u[D])}m.toolbar_div=f,m.toolbarElements=g;var y=this.codemirror;y.on("cursorActivity",function(){var S=hn(y);for(var z in g)(function(P){var M=g[P];S[P]?M.classList.add("active"):P!="fullscreen"&&P!="side-by-side"&&M.classList.remove("active")})(z)});var x=y.getWrapperElement();return x.parentNode.insertBefore(f,x),f}};he.prototype.createStatusbar=function(u){u=u||this.options.status;var D=this.options,f=this.codemirror;if(!(!u||u.length===0)){var m=[],g,w,v,y;for(g=0;g<u.length;g++)if(w=void 0,v=void 0,y=void 0,typeof u[g]=="object")m.push({className:u[g].className,defaultValue:u[g].defaultValue,onUpdate:u[g].onUpdate,onActivity:u[g].onActivity});else{var x=u[g];x==="words"?(y=function(q){q.innerHTML=Kl(f.getValue())},w=function(q){q.innerHTML=Kl(f.getValue())}):x==="lines"?(y=function(q){q.innerHTML=f.lineCount()},w=function(q){q.innerHTML=f.lineCount()}):x==="cursor"?(y=function(q){q.innerHTML="1:1"},v=function(q){var $=f.getCursor(),ne=$.line+1,J=$.ch+1;q.innerHTML=ne+":"+J}):x==="autosave"?y=function(q){D.autosave!=null&&D.autosave.enabled===!0&&q.setAttribute("id","autosaved")}:x==="upload-image"&&(y=function(q){q.innerHTML=D.imageTexts.sbInit}),m.push({className:x,defaultValue:y,onUpdate:w,onActivity:v})}var S=document.createElement("div");for(S.className="editor-statusbar",g=0;g<m.length;g++){var z=m[g],P=document.createElement("span");P.className=z.className,typeof z.defaultValue=="function"&&z.defaultValue(P),typeof z.onUpdate=="function"&&this.codemirror.on("update",(function(q,$){return function(){$.onUpdate(q)}})(P,z)),typeof z.onActivity=="function"&&this.codemirror.on("cursorActivity",(function(q,$){return function(){$.onActivity(q)}})(P,z)),S.appendChild(P)}var M=this.codemirror.getWrapperElement();return M.parentNode.insertBefore(S,M.nextSibling),S}};he.prototype.value=function(u){var D=this.codemirror;if(u===void 0)return D.getValue();if(D.getDoc().setValue(u),this.isPreviewActive()){var f=D.getWrapperElement(),m=f.lastChild,g=this.options.previewRender(u,m);g!==null&&(m.innerHTML=g)}return this};he.toggleBold=hi;he.toggleItalic=di;he.toggleStrikethrough=pi;he.toggleBlockquote=gi;he.toggleHeadingSmaller=Tr;he.toggleHeadingBigger=vi;he.toggleHeading1=xi;he.toggleHeading2=yi;he.toggleHeading3=bi;he.toggleHeading4=Po;he.toggleHeading5=Ro;he.toggleHeading6=_o;he.toggleCodeBlock=mi;he.toggleUnorderedList=Di;he.toggleOrderedList=Ci;he.cleanBlock=wi;he.drawLink=ki;he.drawImage=Fi;he.drawUploadedImage=Wo;he.drawTable=Ai;he.drawHorizontalRule=Si;he.undo=Ei;he.redo=Li;he.togglePreview=Ti;he.toggleSideBySide=er;he.toggleFullScreen=Ln;he.prototype.toggleBold=function(){hi(this)};he.prototype.toggleItalic=function(){di(this)};he.prototype.toggleStrikethrough=function(){pi(this)};he.prototype.toggleBlockquote=function(){gi(this)};he.prototype.toggleHeadingSmaller=function(){Tr(this)};he.prototype.toggleHeadingBigger=function(){vi(this)};he.prototype.toggleHeading1=function(){xi(this)};he.prototype.toggleHeading2=function(){yi(this)};he.prototype.toggleHeading3=function(){bi(this)};he.prototype.toggleHeading4=function(){Po(this)};he.prototype.toggleHeading5=function(){Ro(this)};he.prototype.toggleHeading6=function(){_o(this)};he.prototype.toggleCodeBlock=function(){mi(this)};he.prototype.toggleUnorderedList=function(){Di(this)};he.prototype.toggleOrderedList=function(){Ci(this)};he.prototype.cleanBlock=function(){wi(this)};he.prototype.drawLink=function(){ki(this)};he.prototype.drawImage=function(){Fi(this)};he.prototype.drawUploadedImage=function(){Wo(this)};he.prototype.drawTable=function(){Ai(this)};he.prototype.drawHorizontalRule=function(){Si(this)};he.prototype.undo=function(){Ei(this)};he.prototype.redo=function(){Li(this)};he.prototype.togglePreview=function(){Ti(this)};he.prototype.toggleSideBySide=function(){er(this)};he.prototype.toggleFullScreen=function(){Ln(this)};he.prototype.isPreviewActive=function(){var u=this.codemirror,D=u.getWrapperElement(),f=D.lastChild;return f.classList.contains("editor-preview-active")};he.prototype.isSideBySideActive=function(){var u=this.codemirror,D=u.getWrapperElement(),f=D.nextSibling;return f.classList.contains("editor-preview-active-side")};he.prototype.isFullscreenActive=function(){var u=this.codemirror;return u.getOption("fullScreen")};he.prototype.getState=function(){var u=this.codemirror;return hn(u)};he.prototype.toTextArea=function(){var u=this.codemirror,D=u.getWrapperElement(),f=D.parentNode;f&&(this.gui.toolbar&&f.removeChild(this.gui.toolbar),this.gui.statusbar&&f.removeChild(this.gui.statusbar),this.gui.sideBySide&&f.removeChild(this.gui.sideBySide)),f.parentNode.insertBefore(D,f),f.remove(),u.toTextArea(),this.autosaveTimeoutId&&(clearTimeout(this.autosaveTimeoutId),this.autosaveTimeoutId=void 0,this.clearAutosavedValue())};var Vc=he;const Kc=mc(Vc);window.MarkDownEditorUtils={initEasyMde(u,D=!0){return new Kc({element:u,hideIcons:["heading","image","preview","side-by-side","fullscreen","guide"],autoDownloadFontAwesome:D,spellChecker:!1,status:!1,insertTexts:{link:["[","](https://)"]}})},getCursorPosition(u){return u.getCursor()},getCurrentWord(u){const D=u.getCursor(),f=u.findWordAt(D),m=f.anchor.ch,g=f.head.ch;return u.getRange({line:D.line,ch:m-1},{line:D.line,ch:g}).trim()},shouldAutocomplete(u){return MarkDownEditorUtils.getCurrentWord(u).startsWith("@")},updateAutocompleteModalCoordinates(u,D){const f=u.getCursor(),m=u.findWordAt(f).anchor.ch,g=u.cursorCoords({line:f.line,ch:m-1});D.style.top=u.display.cursorDiv.getBoundingClientRect().top+u.defaultTextHeight()+"px",D.style.left=g.left+"px"},replaceMentions(u){const D=/<span\s+data-mention="[^"]*">([^<]*)<\/span>/g,f=u.getSearchCursor(D);for(;
95f.findNext();){const m=[...u.getRange(f.from(),f.to()).matchAll(D)][0],g=document.createElement("span");g.textContent=m[1],g.style.fontWeight="bold",u.markText(f.from(),f.to(),{replacedWith:g})}}};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.