2022-06-24 11:50:56 +01:00

33 lines
433 KiB
JavaScript

var sf=Object.create;var _a=Object.defineProperty;var uf=Object.getOwnPropertyDescriptor;var cf=Object.getOwnPropertyNames;var ff=Object.getPrototypeOf,df=Object.prototype.hasOwnProperty;var Re=(d,R)=>()=>(R||d((R={exports:{}}).exports,R),R.exports);var pf=(d,R,z,F)=>{if(R&&typeof R=="object"||typeof R=="function")for(let I of cf(R))!df.call(d,I)&&I!==z&&_a(d,I,{get:()=>R[I],enumerable:!(F=uf(R,I))||F.enumerable});return d};var Ue=(d,R,z)=>(z=d!=null?sf(ff(d)):{},pf(R||!d||!d.__esModule?_a(z,"default",{value:d,enumerable:!0}):z,d));var We=Re((go,vo)=>{(function(d,R){typeof go=="object"&&typeof vo<"u"?vo.exports=R():typeof define=="function"&&define.amd?define(R):(d=d||self,d.CodeMirror=R())})(go,function(){"use strict";var d=navigator.userAgent,R=navigator.platform,z=/gecko\/\d/i.test(d),F=/MSIE \d/.test(d),I=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(d),P=/Edge\/(\d+)/.exec(d),m=F||I||P,B=m&&(F?document.documentMode||6:+(P||I)[1]),C=!P&&/WebKit\//.test(d),A=C&&/Qt\/\d+\.\d+/.test(d),E=!P&&/Chrome\/(\d+)/.exec(d),h=E&&+E[1],b=/Opera\//.test(d),g=/Apple Computer/.test(navigator.vendor),S=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(d),T=/PhantomJS/.test(d),y=g&&(/Mobile\/\w+/.test(d)||navigator.maxTouchPoints>2),$=/Android/.test(d),_=y||$||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(d),j=y||/Mac/.test(R),U=/\bCrOS\b/.test(d),re=/win/i.test(R),oe=b&&d.match(/Version\/(\d*\.\d*)/);oe&&(oe=Number(oe[1])),oe&&oe>=15&&(b=!1,C=!0);var te=j&&(A||b&&(oe==null||oe<12.11)),V=z||m&&B>=9;function X(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var Y=function(e,t){var n=e.className,r=X(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function N(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function D(e,t){return N(e).appendChild(t)}function c(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),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 O(e,t,n,r){var i=c(e,t,n,r);return i.setAttribute("role","presentation"),i}var q;document.createRange?q=function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:q=function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch{return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};function L(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 k(){var e;try{e=document.activeElement}catch{e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function Z(e,t){var n=e.className;X(t).test(n)||(e.className+=(n?" ":"")+t)}function G(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!X(n[r]).test(t)&&(t+=" "+n[r]);return t}var v=function(e){e.select()};y?v=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:m&&(v=function(e){try{e.select()}catch{}});function p(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function ae(e,t,n){t||(t={});for(var r in e)e.hasOwnProperty(r)&&(n!==!1||!t.hasOwnProperty(r))&&(t[r]=e[r]);return t}function ge(e,t,n,r,i){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var o=r||0,l=i||0;;){var a=e.indexOf(" ",o);if(a<0||a>=t)return l+(t-o);l+=a-o,l+=n-l%n,o=a+1}}var se=function(){this.id=null,this.f=null,this.time=0,this.handler=p(this.onTimeout,this)};se.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},se.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};function de(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}var Le=50,ze={toString:function(){return"CodeMirror.Pass"}},ne={scroll:!1},fe={origin:"*mouse"},ye={origin:"+move"};function De(e,t,n){for(var r=0,i=0;;){var o=e.indexOf(" ",r);o==-1&&(o=e.length);var l=o-r;if(o==e.length||i+l>=t)return r+Math.min(l,t-i);if(i+=o-r,i+=n-i%n,r=o+1,i>=t)return r}}var Ye=[""];function mt(e){for(;Ye.length<=e;)Ye.push(xe(Ye)+" ");return Ye[e]}function xe(e){return e[e.length-1]}function je(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function rt(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}function lt(){}function Ge(e,t){var n;return Object.create?n=Object.create(e):(lt.prototype=e,n=new lt),t&&ae(t,n),n}var qe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function K(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||qe.test(e))}function le(e,t){return t?t.source.indexOf("\\w")>-1&&K(e)?!0:t.test(e):K(e)}function J(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Oe=/[\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 be(e){return e.charCodeAt(0)>=768&&Oe.test(e)}function Ee(e,t,n){for(;(n<0?t>0:t<e.length)&&be(e.charAt(t));)t+=n;return t}function _e(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function Pe(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var l=e[o];(l.from<n&&l.to>t||t==n&&l.to==t)&&(r(Math.max(l.from,t),Math.min(l.to,n),l.level==1?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}var Ae=null;function gt(e,t,n){var r;Ae=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&&n=="before"?r=i:Ae=i),o.from==t&&(o.from!=o.to&&n!="before"?r=i:Ae=i)}return r??Ae}var lr=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(f){return f<=247?e.charAt(f):1424<=f&&f<=1524?"R":1536<=f&&f<=1785?t.charAt(f-1536):1774<=f&&f<=2220?"r":8192<=f&&f<=8203?"w":f==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,l=/[Lb1n]/,a=/[1n]/;function s(f,w,M){this.level=f,this.from=w,this.to=M}return function(f,w){var M=w=="ltr"?"L":"R";if(f.length==0||w=="ltr"&&!r.test(f))return!1;for(var H=f.length,W=[],Q=0;Q<H;++Q)W.push(n(f.charCodeAt(Q)));for(var ie=0,ce=M;ie<H;++ie){var pe=W[ie];pe=="m"?W[ie]=ce:ce=pe}for(var me=0,he=M;me<H;++me){var ve=W[me];ve=="1"&&he=="r"?W[me]="n":o.test(ve)&&(he=ve,ve=="r"&&(W[me]="R"))}for(var Te=1,Se=W[0];Te<H-1;++Te){var Ie=W[Te];Ie=="+"&&Se=="1"&&W[Te+1]=="1"?W[Te]="1":Ie==","&&Se==W[Te+1]&&(Se=="1"||Se=="n")&&(W[Te]=Se),Se=Ie}for(var Xe=0;Xe<H;++Xe){var dt=W[Xe];if(dt==",")W[Xe]="N";else if(dt=="%"){var Je=void 0;for(Je=Xe+1;Je<H&&W[Je]=="%";++Je);for(var zt=Xe&&W[Xe-1]=="!"||Je<H&&W[Je]=="1"?"1":"N",Ct=Xe;Ct<Je;++Ct)W[Ct]=zt;Xe=Je-1}}for(var it=0,Lt=M;it<H;++it){var ht=W[it];Lt=="L"&&ht=="1"?W[it]="L":o.test(ht)&&(Lt=ht)}for(var at=0;at<H;++at)if(i.test(W[at])){var ot=void 0;for(ot=at+1;ot<H&&i.test(W[ot]);++ot);for(var tt=(at?W[at-1]:M)=="L",Et=(ot<H?W[ot]:M)=="L",rn=tt==Et?tt?"L":"R":M,yr=at;yr<ot;++yr)W[yr]=rn;at=ot-1}for(var yt=[],Xt,pt=0;pt<H;)if(l.test(W[pt])){var ho=pt;for(++pt;pt<H&&l.test(W[pt]);++pt);yt.push(new s(0,ho,pt))}else{var or=pt,Dr=yt.length,Fr=w=="rtl"?1:0;for(++pt;pt<H&&W[pt]!="L";++pt);for(var wt=or;wt<pt;)if(a.test(W[wt])){or<wt&&(yt.splice(Dr,0,new s(1,or,wt)),Dr+=Fr);var nn=wt;for(++wt;wt<pt&&a.test(W[wt]);++wt);yt.splice(Dr,0,new s(2,nn,wt)),Dr+=Fr,or=wt}else++wt;or<pt&&yt.splice(Dr,0,new s(1,or,pt))}return w=="ltr"&&(yt[0].level==1&&(Xt=f.match(/^\s+/))&&(yt[0].from=Xt[0].length,yt.unshift(new s(0,0,Xt[0].length))),xe(yt).level==1&&(Xt=f.match(/\s+$/))&&(xe(yt).to-=Xt[0].length,yt.push(new s(0,H-Xt[0].length,H)))),w=="rtl"?yt.reverse():yt}}();function bt(e,t){var n=e.order;return n==null&&(n=e.order=lr(e.text,t)),n}var qn=[],Ce=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||qn).concat(n)}};function on(e,t){return e._handlers&&e._handlers[t]||qn}function Fe(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=de(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function Ve(e,t){var n=on(e,t);if(!!n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function et(e,t,n){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Ve(e,n||t.type,e,t),ln(t)||t.codemirrorIgnore}function ar(e){var t=e._handlers&&e._handlers.cursorActivity;if(!!t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)de(n,t[r])==-1&&n.push(t[r])}function xt(e,t){return on(e,t).length>0}function sr(e){e.prototype.on=function(t,n){Ce(this,t,n)},e.prototype.off=function(t,n){Fe(this,t,n)}}function st(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ft(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function ln(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Bt(e){st(e),Ft(e)}function an(e){return e.target||e.srcElement}function Ir(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 At=function(){if(m&&B<9)return!1;var e=c("div");return"draggable"in e||"dragDrop"in e}(),Or;function bi(e){if(Or==null){var t=c("span","\u200B");D(e,c("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Or=t.offsetWidth<=1&&t.offsetHeight>2&&!(m&&B<8))}var n=Or?c("span","\u200B"):c("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}var It;function xi(e){if(It!=null)return It;var t=D(e,document.createTextNode("A\u062EA")),n=q(t,0,1).getBoundingClientRect(),r=q(t,1,2).getBoundingClientRect();return N(e),!n||n.left==n.right?!1:It=r.right-n.right<3}var Pr=`
b`.split(/\n/).length!=3?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf(`
`,t);i==-1&&(i=e.length);var o=e.slice(t,e.charAt(i-1)=="\r"?i-1:i),l=o.indexOf("\r");l!=-1?(n.push(o.slice(0,l)),t+=l+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Rn=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},ki=function(){var e=c("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),jt=null;function Ht(e){if(jt!=null)return jt;var t=D(e,c("span","x")),n=t.getBoundingClientRect(),r=q(t,0,1).getBoundingClientRect();return jt=Math.abs(n.left-r.left)>1}var Ut={},Zt={};function Yt(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ut[e]=t}function _i(e,t){Zt[e]=t}function xr(e){if(typeof e=="string"&&Zt.hasOwnProperty(e))e=Zt[e];else if(e&&typeof e.name=="string"&&Zt.hasOwnProperty(e.name)){var t=Zt[e.name];typeof t=="string"&&(t={name:t}),e=Ge(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return xr("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return xr("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function ur(e,t){t=xr(t);var n=Ut[t.name];if(!n)return ur(e,"text/plain");var r=n(e,t);if(kt.hasOwnProperty(t.name)){var i=kt[t.name];for(var o in i)!i.hasOwnProperty(o)||(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var l in t.modeProps)r[l]=t.modeProps[l];return r}var kt={};function kr(e,t){var n=kt.hasOwnProperty(e)?kt[e]:kt[e]={};ae(t,n)}function Qt(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Nr(e,t){for(var n;e.innerMode&&(n=e.innerMode(t),!(!n||n.mode==e));)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Wn(e,t,n){return e.startState?e.startState(t,n):!0}var Ze=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};Ze.prototype.eol=function(){return this.pos>=this.string.length},Ze.prototype.sol=function(){return this.pos==this.lineStart},Ze.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ze.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ze.prototype.eat=function(e){var t=this.string.charAt(this.pos),n;if(typeof e=="string"?n=t==e:n=t&&(e.test?e.test(t):e(t)),n)return++this.pos,t},Ze.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Ze.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ze.prototype.skipToEnd=function(){this.pos=this.string.length},Ze.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ze.prototype.backUp=function(e){this.pos-=e},Ze.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ge(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ge(this.string,this.lineStart,this.tabSize):0)},Ze.prototype.indentation=function(){return ge(this.string,null,this.tabSize)-(this.lineStart?ge(this.string,this.lineStart,this.tabSize):0)},Ze.prototype.match=function(e,t,n){if(typeof e=="string"){var r=function(l){return n?l.toLowerCase():l},i=this.string.substr(this.pos,e.length);if(r(i)==r(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)}},Ze.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ze.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ze.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ze.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function ke(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 n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function Jt(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,function(o){var l=o.text;i==n.line&&(l=l.slice(0,n.ch)),i==t.line&&(l=l.slice(t.ch)),r.push(l),++i}),r}function _r(e,t,n){var r=[];return e.iter(t,n,function(i){r.push(i.text)}),r}function Ot(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function Be(e){if(e.parent==null)return null;for(var t=e.parent,n=de(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function Vt(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var l=0;l<e.lines.length;++l){var a=e.lines[l],s=a.height;if(t<s)break;t-=s}return n+l}function wr(e,t){return t>=e.first&&t<e.first+e.size}function qr(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function u(e,t,n){if(n===void 0&&(n=null),!(this instanceof u))return new u(e,t,n);this.line=e,this.ch=t,this.sticky=n}function x(e,t){return e.line-t.line||e.ch-t.ch}function ee(e,t){return e.sticky==t.sticky&&x(e,t)==0}function ue(e){return u(e.line,e.ch)}function Me(e,t){return x(e,t)<0?t:e}function Ne(e,t){return x(e,t)<0?e:t}function Ke(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function we(e,t){if(t.line<e.first)return u(e.first,0);var n=e.first+e.size-1;return t.line>n?u(n,ke(e,n).text.length):Pt(t,ke(e,t.line).text.length)}function Pt(e,t){var n=e.ch;return n==null||n>t?u(e.line,t):n<0?u(e.line,0):e}function Bn(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=we(e,t[r]);return n}var jn=function(e,t){this.state=e,this.lookAhead=t},Kt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};Kt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Kt.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}},Kt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Kt.fromSaved=function(e,t,n){return t instanceof jn?new Kt(e,Qt(e.mode,t.state),n,t.lookAhead):new Kt(e,Qt(e.mode,t),n)},Kt.prototype.save=function(e){var t=e!==!1?Qt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new jn(t,this.maxLookAhead):t};function So(e,t,n,r){var i=[e.state.modeGen],o={};zo(e,t.text,e.doc.mode,n,function(f,w){return i.push(f,w)},o,r);for(var l=n.state,a=function(f){n.baseTokens=i;var w=e.state.overlays[f],M=1,H=0;n.state=!0,zo(e,t.text,w.mode,n,function(W,Q){for(var ie=M;H<W;){var ce=i[M];ce>W&&i.splice(M,1,W,i[M+1],ce),M+=2,H=Math.min(W,ce)}if(!!Q)if(w.opaque)i.splice(ie,M-ie,W,"overlay "+Q),M=ie+2;else for(;ie<M;ie+=2){var pe=i[ie+1];i[ie+1]=(pe?pe+" ":"")+"overlay "+Q}},o),n.state=l,n.baseTokens=null,n.baseTokenPos=1},s=0;s<e.state.overlays.length;++s)a(s);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function To(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=sn(e,Be(t)),i=t.text.length>e.options.maxHighlightLength&&Qt(e.doc.mode,r.state),o=So(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function sn(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new Kt(r,!0,t);var o=uu(e,t,n),l=o>r.first&&ke(r,o-1).stateAfter,a=l?Kt.fromSaved(r,l,o):new Kt(r,Wn(r.mode),o);return r.iter(o,t,function(s){wi(e,s.text,a);var f=a.line;s.stateAfter=f==t-1||f%5==0||f>=i.viewFrom&&f<i.viewTo?a.save():null,a.nextLine()}),n&&(r.modeFrontier=a.line),a}function wi(e,t,n,r){var i=e.doc.mode,o=new Ze(t,e.options.tabSize,n);for(o.start=o.pos=r||0,t==""&&Co(i,n.state);!o.eol();)Si(i,o,n.state),o.start=o.pos}function Co(e,t){if(e.blankLine)return e.blankLine(t);if(!!e.innerMode){var n=Nr(e,t);if(n.mode.blankLine)return n.mode.blankLine(n.state)}}function Si(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=Nr(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}var Lo=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function Eo(e,t,n,r){var i=e.doc,o=i.mode,l;t=we(i,t);var a=ke(i,t.line),s=sn(e,t.line,n),f=new Ze(a.text,e.options.tabSize,s),w;for(r&&(w=[]);(r||f.pos<t.ch)&&!f.eol();)f.start=f.pos,l=Si(o,f,s.state),r&&w.push(new Lo(f,l,Qt(i.mode,s.state)));return r?w:new Lo(f,l,s.state)}function Mo(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";t[r]==null?t[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+n[2])}return e}function zo(e,t,n,r,i,o,l){var a=n.flattenSpans;a==null&&(a=e.options.flattenSpans);var s=0,f=null,w=new Ze(t,e.options.tabSize,r),M,H=e.options.addModeClass&&[null];for(t==""&&Mo(Co(n,r.state),o);!w.eol();){if(w.pos>e.options.maxHighlightLength?(a=!1,l&&wi(e,t,r,w.pos),w.pos=t.length,M=null):M=Mo(Si(n,w,r.state,H),o),H){var W=H[0].name;W&&(M="m-"+(M?W+" "+M:W))}if(!a||f!=M){for(;s<w.start;)s=Math.min(w.start,s+5e3),i(s,f);f=M}w.start=w.pos}for(;s<w.pos;){var Q=Math.min(w.pos,s+5e3);i(Q,f),s=Q}}function uu(e,t,n){for(var r,i,o=e.doc,l=n?-1:t-(e.doc.mode.innerMode?1e3:100),a=t;a>l;--a){if(a<=o.first)return o.first;var s=ke(o,a-1),f=s.stateAfter;if(f&&(!n||a+(f instanceof jn?f.lookAhead:0)<=o.modeFrontier))return a;var w=ge(s.text,null,e.options.tabSize);(i==null||r>w)&&(i=a-1,r=w)}return i}function cu(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=ke(e,r).stateAfter;if(i&&(!(i instanceof jn)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}var Ao=!1,er=!1;function fu(){Ao=!0}function du(){er=!0}function Hn(e,t,n){this.marker=e,this.from=t,this.to=n}function un(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function pu(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function hu(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}function mu(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],l=o.marker,a=o.from==null||(l.inclusiveLeft?o.from<=t:o.from<t);if(a||o.from==t&&l.type=="bookmark"&&(!n||!o.marker.insertLeft)){var s=o.to==null||(l.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new Hn(l,o.from,s?null:o.to))}}return r}function gu(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],l=o.marker,a=o.to==null||(l.inclusiveRight?o.to>=t:o.to>t);if(a||o.from==t&&l.type=="bookmark"&&(!n||o.marker.insertLeft)){var s=o.from==null||(l.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new Hn(l,s?null:o.from-t,o.to==null?null:o.to-t))}}return r}function Ti(e,t){if(t.full)return null;var n=wr(e,t.from.line)&&ke(e,t.from.line).markedSpans,r=wr(e,t.to.line)&&ke(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,l=x(t.from,t.to)==0,a=mu(n,i,l),s=gu(r,o,l),f=t.text.length==1,w=xe(t.text).length+(f?i:0);if(a)for(var M=0;M<a.length;++M){var H=a[M];if(H.to==null){var W=un(s,H.marker);W?f&&(H.to=W.to==null?null:W.to+w):H.to=i}}if(s)for(var Q=0;Q<s.length;++Q){var ie=s[Q];if(ie.to!=null&&(ie.to+=w),ie.from==null){var ce=un(a,ie.marker);ce||(ie.from=w,f&&(a||(a=[])).push(ie))}else ie.from+=w,f&&(a||(a=[])).push(ie)}a&&(a=Do(a)),s&&s!=a&&(s=Do(s));var pe=[a];if(!f){var me=t.text.length-2,he;if(me>0&&a)for(var ve=0;ve<a.length;++ve)a[ve].to==null&&(he||(he=[])).push(new Hn(a[ve].marker,null,null));for(var Te=0;Te<me;++Te)pe.push(he);pe.push(s)}return pe}function Do(e){for(var t=0;t<e.length;++t){var n=e[t];n.from!=null&&n.from==n.to&&n.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function vu(e,t,n){var r=null;if(e.iter(t.line,n.line+1,function(W){if(W.markedSpans)for(var Q=0;Q<W.markedSpans.length;++Q){var ie=W.markedSpans[Q].marker;ie.readOnly&&(!r||de(r,ie)==-1)&&(r||(r=[])).push(ie)}}),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var l=r[o],a=l.find(0),s=0;s<i.length;++s){var f=i[s];if(!(x(f.to,a.from)<0||x(f.from,a.to)>0)){var w=[s,1],M=x(f.from,a.from),H=x(f.to,a.to);(M<0||!l.inclusiveLeft&&!M)&&w.push({from:f.from,to:a.from}),(H>0||!l.inclusiveRight&&!H)&&w.push({from:a.to,to:f.to}),i.splice.apply(i,w),s+=w.length-3}}return i}function Fo(e){var t=e.markedSpans;if(!!t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Io(e,t){if(!!t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Un(e){return e.inclusiveLeft?-1:0}function Kn(e){return e.inclusiveRight?1:0}function Ci(e,t){var n=e.lines.length-t.lines.length;if(n!=0)return n;var r=e.find(),i=t.find(),o=x(r.from,i.from)||Un(e)-Un(t);if(o)return-o;var l=x(r.to,i.to)||Kn(e)-Kn(t);return l||t.id-e.id}function Oo(e,t){var n=er&&e.markedSpans,r;if(n)for(var i=void 0,o=0;o<n.length;++o)i=n[o],i.marker.collapsed&&(t?i.from:i.to)==null&&(!r||Ci(r,i.marker)<0)&&(r=i.marker);return r}function Po(e){return Oo(e,!0)}function $n(e){return Oo(e,!1)}function yu(e,t){var n=er&&e.markedSpans,r;if(n)for(var i=0;i<n.length;++i){var o=n[i];o.marker.collapsed&&(o.from==null||o.from<t)&&(o.to==null||o.to>t)&&(!r||Ci(r,o.marker)<0)&&(r=o.marker)}return r}function No(e,t,n,r,i){var o=ke(e,t),l=er&&o.markedSpans;if(l)for(var a=0;a<l.length;++a){var s=l[a];if(!!s.marker.collapsed){var f=s.marker.find(0),w=x(f.from,n)||Un(s.marker)-Un(i),M=x(f.to,r)||Kn(s.marker)-Kn(i);if(!(w>=0&&M<=0||w<=0&&M>=0)&&(w<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?x(f.to,n)>=0:x(f.to,n)>0)||w>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?x(f.from,r)<=0:x(f.from,r)<0)))return!0}}}function Nt(e){for(var t;t=Po(e);)e=t.find(-1,!0).line;return e}function bu(e){for(var t;t=$n(e);)e=t.find(1,!0).line;return e}function xu(e){for(var t,n;t=$n(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function Li(e,t){var n=ke(e,t),r=Nt(n);return n==r?t:Be(r)}function qo(e,t){if(t>e.lastLine())return t;var n=ke(e,t),r;if(!cr(e,n))return t;for(;r=$n(n);)n=r.find(1,!0).line;return Be(n)+1}function cr(e,t){var n=er&&t.markedSpans;if(n){for(var r=void 0,i=0;i<n.length;++i)if(r=n[i],!!r.marker.collapsed){if(r.from==null)return!0;if(!r.marker.widgetNode&&r.from==0&&r.marker.inclusiveLeft&&Ei(e,t,r))return!0}}}function Ei(e,t,n){if(n.to==null){var r=n.marker.find(1,!0);return Ei(e,r.line,un(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.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==n.to&&(i.to==null||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&Ei(e,t,i))return!0}function tr(e){e=Nt(e);for(var t=0,n=e.parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;n=o,o=n.parent)for(var l=0;l<o.children.length;++l){var a=o.children[l];if(a==n)break;t+=a.height}return t}function Gn(e){if(e.height==0)return 0;for(var t=e.text.length,n,r=e;n=Po(r);){var i=n.find(0,!0);r=i.from.line,t+=i.from.ch-i.to.ch}for(r=e;n=$n(r);){var o=n.find(0,!0);t-=r.text.length-o.from.ch,r=o.to.line,t+=r.text.length-o.to.ch}return t}function Mi(e){var t=e.display,n=e.doc;t.maxLine=ke(n,n.first),t.maxLineLength=Gn(t.maxLine),t.maxLineChanged=!0,n.iter(function(r){var i=Gn(r);i>t.maxLineLength&&(t.maxLineLength=i,t.maxLine=r)})}var Rr=function(e,t,n){this.text=e,Io(this,t),this.height=n?n(this):1};Rr.prototype.lineNo=function(){return Be(this)},sr(Rr);function ku(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Fo(e),Io(e,n);var i=r?r(e):1;i!=e.height&&Ot(e,i)}function _u(e){e.parent=null,Fo(e)}var wu={},Su={};function Ro(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Su:wu;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function Wo(e,t){var n=O("span",null,null,C?"padding-right: .1px":null),r={pre:O("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,l=void 0;r.pos=0,r.addToken=Cu,xi(e.display.measure)&&(l=bt(o,e.doc.direction))&&(r.addToken=Eu(r.addToken,l)),r.map=[];var a=t!=e.display.externalMeasured&&Be(o);Mu(o,r,To(e,o,a)),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=G(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=G(o.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(bi(e.display.measure))),i==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(C){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return Ve(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=G(r.pre.className,r.textClass||"")),r}function Tu(e){var t=c("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Cu(e,t,n,r,i,o,l){if(!!t){var a=e.splitSpaces?Lu(t,e.trailingSpace):t,s=e.cm.state.specialChars,f=!1,w;if(!s.test(t))e.col+=t.length,w=document.createTextNode(a),e.map.push(e.pos,e.pos+t.length,w),m&&B<9&&(f=!0),e.pos+=t.length;else{w=document.createDocumentFragment();for(var M=0;;){s.lastIndex=M;var H=s.exec(t),W=H?H.index-M:t.length-M;if(W){var Q=document.createTextNode(a.slice(M,M+W));m&&B<9?w.appendChild(c("span",[Q])):w.appendChild(Q),e.map.push(e.pos,e.pos+W,Q),e.col+=W,e.pos+=W}if(!H)break;M+=W+1;var ie=void 0;if(H[0]==" "){var ce=e.cm.options.tabSize,pe=ce-e.col%ce;ie=w.appendChild(c("span",mt(pe),"cm-tab")),ie.setAttribute("role","presentation"),ie.setAttribute("cm-text"," "),e.col+=pe}else H[0]=="\r"||H[0]==`
`?(ie=w.appendChild(c("span",H[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),ie.setAttribute("cm-text",H[0]),e.col+=1):(ie=e.cm.options.specialCharPlaceholder(H[0]),ie.setAttribute("cm-text",H[0]),m&&B<9?w.appendChild(c("span",[ie])):w.appendChild(ie),e.col+=1);e.map.push(e.pos,e.pos+1,ie),e.pos++}}if(e.trailingSpace=a.charCodeAt(t.length-1)==32,n||r||i||f||o||l){var me=n||"";r&&(me+=r),i&&(me+=i);var he=c("span",[w],me,o);if(l)for(var ve in l)l.hasOwnProperty(ve)&&ve!="style"&&ve!="class"&&he.setAttribute(ve,l[ve]);return e.content.appendChild(he)}e.content.appendChild(w)}}function Lu(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);o==" "&&n&&(i==e.length-1||e.charCodeAt(i+1)==32)&&(o="\xA0"),r+=o,n=o==" "}return r}function Eu(e,t){return function(n,r,i,o,l,a,s){i=i?i+" cm-force-border":"cm-force-border";for(var f=n.pos,w=f+r.length;;){for(var M=void 0,H=0;H<t.length&&(M=t[H],!(M.to>f&&M.from<=f));H++);if(M.to>=w)return e(n,r,i,o,l,a,s);e(n,r.slice(0,M.to-f),i,o,null,a,s),o=null,r=r.slice(M.to-f),f=M.to}}}function Bo(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function Mu(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(!r){for(var l=1;l<n.length;l+=2)t.addToken(t,i.slice(o,o=n[l]),Ro(n[l+1],t.cm.options));return}for(var a=i.length,s=0,f=1,w="",M,H,W=0,Q,ie,ce,pe,me;;){if(W==s){Q=ie=ce=H="",me=null,pe=null,W=1/0;for(var he=[],ve=void 0,Te=0;Te<r.length;++Te){var Se=r[Te],Ie=Se.marker;if(Ie.type=="bookmark"&&Se.from==s&&Ie.widgetNode)he.push(Ie);else if(Se.from<=s&&(Se.to==null||Se.to>s||Ie.collapsed&&Se.to==s&&Se.from==s)){if(Se.to!=null&&Se.to!=s&&W>Se.to&&(W=Se.to,ie=""),Ie.className&&(Q+=" "+Ie.className),Ie.css&&(H=(H?H+";":"")+Ie.css),Ie.startStyle&&Se.from==s&&(ce+=" "+Ie.startStyle),Ie.endStyle&&Se.to==W&&(ve||(ve=[])).push(Ie.endStyle,Se.to),Ie.title&&((me||(me={})).title=Ie.title),Ie.attributes)for(var Xe in Ie.attributes)(me||(me={}))[Xe]=Ie.attributes[Xe];Ie.collapsed&&(!pe||Ci(pe.marker,Ie)<0)&&(pe=Se)}else Se.from>s&&W>Se.from&&(W=Se.from)}if(ve)for(var dt=0;dt<ve.length;dt+=2)ve[dt+1]==W&&(ie+=" "+ve[dt]);if(!pe||pe.from==s)for(var Je=0;Je<he.length;++Je)Bo(t,0,he[Je]);if(pe&&(pe.from||0)==s){if(Bo(t,(pe.to==null?a+1:pe.to)-s,pe.marker,pe.from==null),pe.to==null)return;pe.to==s&&(pe=!1)}}if(s>=a)break;for(var zt=Math.min(a,W);;){if(w){var Ct=s+w.length;if(!pe){var it=Ct>zt?w.slice(0,zt-s):w;t.addToken(t,it,M?M+Q:Q,ce,s+it.length==W?ie:"",H,me)}if(Ct>=zt){w=w.slice(zt-s),s=zt;break}s=Ct,ce=""}w=i.slice(o,o=n[f++]),M=Ro(n[f++],t.cm.options)}}}function jo(e,t,n){this.line=t,this.rest=xu(t),this.size=this.rest?Be(xe(this.rest))-n+1:1,this.node=this.text=null,this.hidden=cr(e,t)}function Xn(e,t,n){for(var r=[],i,o=t;o<n;o=i){var l=new jo(e.doc,ke(e.doc,o),o);i=o+l.size,r.push(l)}return r}var Wr=null;function zu(e){Wr?Wr.ops.push(e):e.ownsGroup=Wr={ops:[e],delayedCallbacks:[]}}function Au(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}function Du(e,t){var n=e.ownsGroup;if(!!n)try{Au(n)}finally{Wr=null,t(n)}}var cn=null;function ut(e,t){var n=on(e,t);if(!!n.length){var r=Array.prototype.slice.call(arguments,2),i;Wr?i=Wr.delayedCallbacks:cn?i=cn:(i=cn=[],setTimeout(Fu,0));for(var o=function(a){i.push(function(){return n[a].apply(null,r)})},l=0;l<n.length;++l)o(l)}}function Fu(){var e=cn;cn=null;for(var t=0;t<e.length;++t)e[t]()}function Ho(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];o=="text"?Ou(e,t):o=="gutter"?Ko(e,t,n,r):o=="class"?zi(e,t):o=="widget"&&Pu(e,t,r)}t.changes=null}function fn(e){return e.node==e.text&&(e.node=c("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),m&&B<8&&(e.node.style.zIndex=2)),e.node}function Iu(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=fn(t);t.background=r.insertBefore(c("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}function Uo(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):Wo(e,t)}function Ou(e,t){var n=t.text.className,r=Uo(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,zi(e,t)):n&&(t.text.className=n)}function zi(e,t){Iu(e,t),t.line.wrapClass?fn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function Ko(e,t,n,r){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=fn(t);t.gutterBackground=c("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.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 l=fn(t),a=t.gutter=c("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(a.setAttribute("aria-hidden","true"),e.display.input.setUneditable(a),l.insertBefore(a,t.text),t.line.gutterClass&&(a.className+=" "+t.line.gutterClass),e.options.lineNumbers&&(!o||!o["CodeMirror-linenumbers"])&&(t.lineNumber=a.appendChild(c("div",qr(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var s=0;s<e.display.gutterSpecs.length;++s){var f=e.display.gutterSpecs[s].className,w=o.hasOwnProperty(f)&&o[f];w&&a.appendChild(c("div",[w],"CodeMirror-gutter-elt","left: "+r.gutterLeft[f]+"px; width: "+r.gutterWidth[f]+"px"))}}}function Pu(e,t,n){t.alignable&&(t.alignable=null);for(var r=X("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&t.node.removeChild(i);$o(e,t,n)}function Nu(e,t,n,r){var i=Uo(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),zi(e,t),Ko(e,t,n,r),$o(e,t,r),t.node}function $o(e,t,n){if(Go(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)Go(e,t.rest[r],t,n,!1)}function Go(e,t,n,r,i){if(!!t.widgets)for(var o=fn(n),l=0,a=t.widgets;l<a.length;++l){var s=a[l],f=c("div",[s.node],"CodeMirror-linewidget"+(s.className?" "+s.className:""));s.handleMouseEvents||f.setAttribute("cm-ignore-events","true"),qu(s,f,n,r),e.display.input.setUneditable(f),i&&s.above?o.insertBefore(f,n.gutter||n.text):o.appendChild(f),ut(s,"redraw")}}function qu(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function dn(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!L(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),D(t.display.measure,c("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function rr(e,t){for(var n=an(t);n!=e.wrapper;n=n.parentNode)if(!n||n.nodeType==1&&n.getAttribute("cm-ignore-events")=="true"||n.parentNode==e.sizer&&n!=e.mover)return!0}function Zn(e){return e.lineSpace.offsetTop}function Ai(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Xo(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=D(e.measure,c("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return!isNaN(r.left)&&!isNaN(r.right)&&(e.cachedPaddingH=r),r}function $t(e){return Le-e.display.nativeBarWidth}function Sr(e){return e.display.scroller.clientWidth-$t(e)-e.display.barWidth}function Di(e){return e.display.scroller.clientHeight-$t(e)-e.display.barHeight}function Ru(e,t,n){var r=e.options.lineWrapping,i=r&&Sr(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var l=t.text.firstChild.getClientRects(),a=0;a<l.length-1;a++){var s=l[a],f=l[a+1];Math.abs(s.bottom-f.bottom)>2&&o.push((s.bottom+f.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Zo(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(Be(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function Wu(e,t){t=Nt(t);var n=Be(t),r=e.display.externalMeasured=new jo(e.doc,t,n);r.lineN=n;var i=r.built=Wo(e,r);return r.text=i.pre,D(e.display.lineMeasure,i.pre),r}function Yo(e,t,n,r){return Gt(e,Br(e,t),n,r)}function Fi(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Lr(e,t)];var n=e.display.externalMeasured;if(n&&t>=n.lineN&&t<n.lineN+n.size)return n}function Br(e,t){var n=Be(t),r=Fi(e,n);r&&!r.text?r=null:r&&r.changes&&(Ho(e,r,n,qi(e)),e.curOp.forceUpdate=!0),r||(r=Wu(e,t));var i=Zo(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function Gt(e,t,n,r,i){t.before&&(n=-1);var o=n+(r||""),l;return t.cache.hasOwnProperty(o)?l=t.cache[o]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(Ru(e,t.view,t.rect),t.hasHeights=!0),l=ju(e,t,n,r),l.bogus||(t.cache[o]=l)),{left:l.left,right:l.right,top:i?l.rtop:l.top,bottom:i?l.rbottom:l.bottom}}var Qo={left:0,right:0,top:0,bottom:0};function Jo(e,t,n){for(var r,i,o,l,a,s,f=0;f<e.length;f+=3)if(a=e[f],s=e[f+1],t<a?(i=0,o=1,l="left"):t<s?(i=t-a,o=i+1):(f==e.length-3||t==s&&e[f+3]>t)&&(o=s-a,i=o-1,t>=s&&(l="right")),i!=null){if(r=e[f+2],a==s&&n==(r.insertLeft?"left":"right")&&(l=n),n=="left"&&i==0)for(;f&&e[f-2]==e[f-3]&&e[f-1].insertLeft;)r=e[(f-=3)+2],l="left";if(n=="right"&&i==s-a)for(;f<e.length-3&&e[f+3]==e[f+4]&&!e[f+5].insertLeft;)r=e[(f+=3)+2],l="right";break}return{node:r,start:i,end:o,collapse:l,coverStart:a,coverEnd:s}}function Bu(e,t){var n=Qo;if(t=="left")for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function ju(e,t,n,r){var i=Jo(t.map,n,r),o=i.node,l=i.start,a=i.end,s=i.collapse,f;if(o.nodeType==3){for(var w=0;w<4;w++){for(;l&&be(t.line.text.charAt(i.coverStart+l));)--l;for(;i.coverStart+a<i.coverEnd&&be(t.line.text.charAt(i.coverStart+a));)++a;if(m&&B<9&&l==0&&a==i.coverEnd-i.coverStart?f=o.parentNode.getBoundingClientRect():f=Bu(q(o,l,a).getClientRects(),r),f.left||f.right||l==0)break;a=l,l=l-1,s="right"}m&&B<11&&(f=Hu(e.display.measure,f))}else{l>0&&(s=r="right");var M;e.options.lineWrapping&&(M=o.getClientRects()).length>1?f=M[r=="right"?M.length-1:0]:f=o.getBoundingClientRect()}if(m&&B<9&&!l&&(!f||!f.left&&!f.right)){var H=o.parentNode.getClientRects()[0];H?f={left:H.left,right:H.left+Hr(e.display),top:H.top,bottom:H.bottom}:f=Qo}for(var W=f.top-t.rect.top,Q=f.bottom-t.rect.top,ie=(W+Q)/2,ce=t.view.measure.heights,pe=0;pe<ce.length-1&&!(ie<ce[pe]);pe++);var me=pe?ce[pe-1]:0,he=ce[pe],ve={left:(s=="right"?f.right:f.left)-t.rect.left,right:(s=="left"?f.left:f.right)-t.rect.left,top:me,bottom:he};return!f.left&&!f.right&&(ve.bogus=!0),e.options.singleCursorHeightPerLine||(ve.rtop=W,ve.rbottom=Q),ve}function Hu(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Ht(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}function Vo(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 el(e){e.display.externalMeasure=null,N(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)Vo(e.display.view[t])}function pn(e){el(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function tl(){return E&&$?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function rl(){return E&&$?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Ii(e){var t=Nt(e),n=t.widgets,r=0;if(n)for(var i=0;i<n.length;++i)n[i].above&&(r+=dn(n[i]));return r}function Yn(e,t,n,r,i){if(!i){var o=Ii(t);n.top+=o,n.bottom+=o}if(r=="line")return n;r||(r="local");var l=tr(t);if(r=="local"?l+=Zn(e.display):l-=e.display.viewOffset,r=="page"||r=="window"){var a=e.display.lineSpace.getBoundingClientRect();l+=a.top+(r=="window"?0:rl());var s=a.left+(r=="window"?0:tl());n.left+=s,n.right+=s}return n.top+=l,n.bottom+=l,n}function nl(e,t,n){if(n=="div")return t;var r=t.left,i=t.top;if(n=="page")r-=tl(),i-=rl();else if(n=="local"||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var l=e.display.lineSpace.getBoundingClientRect();return{left:r-l.left,top:i-l.top}}function Qn(e,t,n,r,i){return r||(r=ke(e.doc,t.line)),Yn(e,r,Yo(e,r,t.ch,i),n)}function qt(e,t,n,r,i,o){r=r||ke(e.doc,t.line),i||(i=Br(e,r));function l(Q,ie){var ce=Gt(e,i,Q,ie?"right":"left",o);return ie?ce.left=ce.right:ce.right=ce.left,Yn(e,r,ce,n)}var a=bt(r,e.doc.direction),s=t.ch,f=t.sticky;if(s>=r.text.length?(s=r.text.length,f="before"):s<=0&&(s=0,f="after"),!a)return l(f=="before"?s-1:s,f=="before");function w(Q,ie,ce){var pe=a[ie],me=pe.level==1;return l(ce?Q-1:Q,me!=ce)}var M=gt(a,s,f),H=Ae,W=w(s,M,f=="before");return H!=null&&(W.other=w(s,H,f!="before")),W}function il(e,t){var n=0;t=we(e.doc,t),e.options.lineWrapping||(n=Hr(e.display)*t.ch);var r=ke(e.doc,t.line),i=tr(r)+Zn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Oi(e,t,n,r,i){var o=u(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Pi(e,t,n){var r=e.doc;if(n+=e.display.viewOffset,n<0)return Oi(r.first,0,null,-1,-1);var i=Vt(r,n),o=r.first+r.size-1;if(i>o)return Oi(r.first+r.size-1,ke(r,o).text.length,null,1,1);t<0&&(t=0);for(var l=ke(r,i);;){var a=Uu(e,l,i,t,n),s=yu(l,a.ch+(a.xRel>0||a.outside>0?1:0));if(!s)return a;var f=s.find(1);if(f.line==i)return f;l=ke(r,i=f.line)}}function ol(e,t,n,r){r-=Ii(t);var i=t.text.length,o=_e(function(l){return Gt(e,n,l-1).bottom<=r},i,0);return i=_e(function(l){return Gt(e,n,l).top>r},o,i),{begin:o,end:i}}function ll(e,t,n,r){n||(n=Br(e,t));var i=Yn(e,t,Gt(e,n,r),"line").top;return ol(e,t,n,i)}function Ni(e,t,n,r){return e.bottom<=n?!1:e.top>n?!0:(r?e.left:e.right)>t}function Uu(e,t,n,r,i){i-=tr(t);var o=Br(e,t),l=Ii(t),a=0,s=t.text.length,f=!0,w=bt(t,e.doc.direction);if(w){var M=(e.options.lineWrapping?$u:Ku)(e,t,n,o,w,r,i);f=M.level!=1,a=f?M.from:M.to-1,s=f?M.to:M.from-1}var H=null,W=null,Q=_e(function(Te){var Se=Gt(e,o,Te);return Se.top+=l,Se.bottom+=l,Ni(Se,r,i,!1)?(Se.top<=i&&Se.left<=r&&(H=Te,W=Se),!0):!1},a,s),ie,ce,pe=!1;if(W){var me=r-W.left<W.right-r,he=me==f;Q=H+(he?0:1),ce=he?"after":"before",ie=me?W.left:W.right}else{!f&&(Q==s||Q==a)&&Q++,ce=Q==0?"after":Q==t.text.length?"before":Gt(e,o,Q-(f?1:0)).bottom+l<=i==f?"after":"before";var ve=qt(e,u(n,Q,ce),"line",t,o);ie=ve.left,pe=i<ve.top?-1:i>=ve.bottom?1:0}return Q=Ee(t.text,Q,1),Oi(n,Q,ce,pe,r-ie)}function Ku(e,t,n,r,i,o,l){var a=_e(function(M){var H=i[M],W=H.level!=1;return Ni(qt(e,u(n,W?H.to:H.from,W?"before":"after"),"line",t,r),o,l,!0)},0,i.length-1),s=i[a];if(a>0){var f=s.level!=1,w=qt(e,u(n,f?s.from:s.to,f?"after":"before"),"line",t,r);Ni(w,o,l,!0)&&w.top>l&&(s=i[a-1])}return s}function $u(e,t,n,r,i,o,l){var a=ol(e,t,r,l),s=a.begin,f=a.end;/\s/.test(t.text.charAt(f-1))&&f--;for(var w=null,M=null,H=0;H<i.length;H++){var W=i[H];if(!(W.from>=f||W.to<=s)){var Q=W.level!=1,ie=Gt(e,r,Q?Math.min(f,W.to)-1:Math.max(s,W.from)).right,ce=ie<o?o-ie+1e9:ie-o;(!w||M>ce)&&(w=W,M=ce)}}return w||(w=i[i.length-1]),w.from<s&&(w={from:s,to:w.to,level:w.level}),w.to>f&&(w={from:w.from,to:f,level:w.level}),w}var Tr;function jr(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Tr==null){Tr=c("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Tr.appendChild(document.createTextNode("x")),Tr.appendChild(c("br"));Tr.appendChild(document.createTextNode("x"))}D(e.measure,Tr);var n=Tr.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),N(e.measure),n||1}function Hr(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=c("span","xxxxxxxxxx"),n=c("pre",[t],"CodeMirror-line-like");D(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function qi(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,l=0;o;o=o.nextSibling,++l){var a=e.display.gutterSpecs[l].className;n[a]=o.offsetLeft+o.clientLeft+i,r[a]=o.clientWidth}return{fixedPos:Ri(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Ri(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function al(e){var t=jr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Hr(e.display)-3);return function(i){if(cr(e.doc,i))return 0;var o=0;if(i.widgets)for(var l=0;l<i.widgets.length;l++)i.widgets[l].height&&(o+=i.widgets[l].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function Wi(e){var t=e.doc,n=al(e);t.iter(function(r){var i=n(r);i!=r.height&&Ot(r,i)})}function Cr(e,t,n,r){var i=e.display;if(!n&&an(t).getAttribute("cm-not-content")=="true")return null;var o,l,a=i.lineSpace.getBoundingClientRect();try{o=t.clientX-a.left,l=t.clientY-a.top}catch{return null}var s=Pi(e,o,l),f;if(r&&s.xRel>0&&(f=ke(e.doc,s.line).text).length==s.ch){var w=ge(f,f.length,e.options.tabSize)-f.length;s=u(s.line,Math.max(0,Math.round((o-Xo(e.display).left)/Hr(e.display))-w))}return s}function Lr(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var n=e.display.view,r=0;r<n.length;r++)if(t-=n[r].size,t<0)return r}function St(e,t,n,r){t==null&&(t=e.doc.first),n==null&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)er&&Li(e.doc,t)<i.viewTo&&dr(e);else if(n<=i.viewFrom)er&&qo(e.doc,n+r)>i.viewFrom?dr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)dr(e);else if(t<=i.viewFrom){var o=Jn(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):dr(e)}else if(n>=i.viewTo){var l=Jn(e,t,t,-1);l?(i.view=i.view.slice(0,l.index),i.viewTo=l.lineN):dr(e)}else{var a=Jn(e,t,t,-1),s=Jn(e,n,n+r,1);a&&s?(i.view=i.view.slice(0,a.index).concat(Xn(e,a.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=r):dr(e)}var f=i.externalMeasured;f&&(n<f.lineN?f.lineN+=r:t<f.lineN+f.size&&(i.externalMeasured=null))}function fr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[Lr(e,t)];if(o.node!=null){var l=o.changes||(o.changes=[]);de(l,n)==-1&&l.push(n)}}}function dr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Jn(e,t,n,r){var i=Lr(e,t),o,l=e.display.view;if(!er||n==e.doc.first+e.doc.size)return{index:i,lineN:n};for(var a=e.display.viewFrom,s=0;s<i;s++)a+=l[s].size;if(a!=t){if(r>0){if(i==l.length-1)return null;o=a+l[i].size-t,i++}else o=a-t;t+=o,n+=o}for(;Li(e.doc,n)!=n;){if(i==(r<0?0:l.length-1))return null;n+=r*l[i-(r<0?1:0)].size,i+=r}return{index:i,lineN:n}}function Gu(e,t,n){var r=e.display,i=r.view;i.length==0||t>=r.viewTo||n<=r.viewFrom?(r.view=Xn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=Xn(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(Lr(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(Xn(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,Lr(e,n)))),r.viewTo=n}function sl(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];!i.hidden&&(!i.node||i.changes)&&++n}return n}function hn(e){e.display.input.showSelection(e.display.input.prepareSelection())}function ul(e,t){t===void 0&&(t=!0);var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),l=e.options.$customCursor;l&&(t=!0);for(var a=0;a<n.sel.ranges.length;a++)if(!(!t&&a==n.sel.primIndex)){var s=n.sel.ranges[a];if(!(s.from().line>=e.display.viewTo||s.to().line<e.display.viewFrom)){var f=s.empty();if(l){var w=l(e,s);w&&Bi(e,w,i)}else(f||e.options.showCursorWhenSelecting)&&Bi(e,s.head,i);f||Xu(e,s,o)}}return r}function Bi(e,t,n){var r=qt(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(c("div","\xA0","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var o=Qn(e,t,"div",null,null),l=o.right-o.left;i.style.width=(l>0?l:e.defaultCharWidth())+"px"}if(r.other){var a=n.appendChild(c("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));a.style.display="",a.style.left=r.other.left+"px",a.style.top=r.other.top+"px",a.style.height=(r.other.bottom-r.other.top)*.85+"px"}}function Vn(e,t){return e.top-t.top||e.left-t.left}function Xu(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),l=Xo(e.display),a=l.left,s=Math.max(r.sizerWidth,Sr(e)-r.sizer.offsetLeft)-l.right,f=i.direction=="ltr";function w(he,ve,Te,Se){ve<0&&(ve=0),ve=Math.round(ve),Se=Math.round(Se),o.appendChild(c("div",null,"CodeMirror-selected","position: absolute; left: "+he+`px;
top: `+ve+"px; width: "+(Te??s-he)+`px;
height: `+(Se-ve)+"px"))}function M(he,ve,Te){var Se=ke(i,he),Ie=Se.text.length,Xe,dt;function Je(it,Lt){return Qn(e,u(he,it),"div",Se,Lt)}function zt(it,Lt,ht){var at=ll(e,Se,null,it),ot=Lt=="ltr"==(ht=="after")?"left":"right",tt=ht=="after"?at.begin:at.end-(/\s/.test(Se.text.charAt(at.end-1))?2:1);return Je(tt,ot)[ot]}var Ct=bt(Se,i.direction);return Pe(Ct,ve||0,Te??Ie,function(it,Lt,ht,at){var ot=ht=="ltr",tt=Je(it,ot?"left":"right"),Et=Je(Lt-1,ot?"right":"left"),rn=ve==null&&it==0,yr=Te==null&&Lt==Ie,yt=at==0,Xt=!Ct||at==Ct.length-1;if(Et.top-tt.top<=3){var pt=(f?rn:yr)&&yt,ho=(f?yr:rn)&&Xt,or=pt?a:(ot?tt:Et).left,Dr=ho?s:(ot?Et:tt).right;w(or,tt.top,Dr-or,tt.bottom)}else{var Fr,wt,nn,mo;ot?(Fr=f&&rn&&yt?a:tt.left,wt=f?s:zt(it,ht,"before"),nn=f?a:zt(Lt,ht,"after"),mo=f&&yr&&Xt?s:Et.right):(Fr=f?zt(it,ht,"before"):a,wt=!f&&rn&&yt?s:tt.right,nn=!f&&yr&&Xt?a:Et.left,mo=f?zt(Lt,ht,"after"):s),w(Fr,tt.top,wt-Fr,tt.bottom),tt.bottom<Et.top&&w(a,tt.bottom,null,Et.top),w(nn,Et.top,mo-nn,Et.bottom)}(!Xe||Vn(tt,Xe)<0)&&(Xe=tt),Vn(Et,Xe)<0&&(Xe=Et),(!dt||Vn(tt,dt)<0)&&(dt=tt),Vn(Et,dt)<0&&(dt=Et)}),{start:Xe,end:dt}}var H=t.from(),W=t.to();if(H.line==W.line)M(H.line,H.ch,W.ch);else{var Q=ke(i,H.line),ie=ke(i,W.line),ce=Nt(Q)==Nt(ie),pe=M(H.line,H.ch,ce?Q.text.length+1:null).end,me=M(W.line,ce?0:null,W.ch).start;ce&&(pe.top<me.top-2?(w(pe.right,pe.top,null,pe.bottom),w(a,me.top,me.left,me.bottom)):w(pe.right,pe.top,me.left-pe.right,pe.bottom)),pe.bottom<me.top&&w(a,pe.bottom,null,me.top)}n.appendChild(o)}function ji(e){if(!!e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||Ur(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function cl(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Ui(e))}function Hi(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Ur(e))},100)}function Ui(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Ve(e,"focus",e,t),e.state.focused=!0,Z(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),C&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),ji(e))}function Ur(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Ve(e,"blur",e,t),e.state.focused=!1,Y(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function ei(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,l=0;l<t.view.length;l++){var a=t.view[l],s=e.options.lineWrapping,f=void 0,w=0;if(!a.hidden){if(i+=a.line.height,m&&B<8){var M=a.node.offsetTop+a.node.offsetHeight;f=M-n,n=M}else{var H=a.node.getBoundingClientRect();f=H.bottom-H.top,!s&&a.text.firstChild&&(w=a.text.firstChild.getBoundingClientRect().right-H.left-1)}var W=a.line.height-f;if((W>.005||W<-.005)&&(i<r&&(o-=W),Ot(a.line,f),fl(a.line),a.rest))for(var Q=0;Q<a.rest.length;Q++)fl(a.rest[Q]);if(w>e.display.sizerWidth){var ie=Math.ceil(w/Hr(e.display));ie>e.display.maxLineLength&&(e.display.maxLineLength=ie,e.display.maxLine=a.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function fl(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function ti(e,t,n){var r=n&&n.top!=null?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-Zn(e));var i=n&&n.bottom!=null?n.bottom:r+e.wrapper.clientHeight,o=Vt(t,r),l=Vt(t,i);if(n&&n.ensure){var a=n.ensure.from.line,s=n.ensure.to.line;a<o?(o=a,l=Vt(t,tr(ke(t,a))+e.wrapper.clientHeight)):Math.min(s,t.lastLine())>=l&&(o=Vt(t,tr(ke(t,s))-e.wrapper.clientHeight),l=s)}return{from:o,to:Math.max(l,o+1)}}function Zu(e,t){if(!et(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+r.top<0?i=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),i!=null&&!T){var o=c("div","\u200B",null,`position: absolute;
top: `+(t.top-n.viewOffset-Zn(e.display))+`px;
height: `+(t.bottom-t.top+$t(e)+n.barHeight)+`px;
left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}function Yu(e,t,n,r){r==null&&(r=0);var i;!e.options.lineWrapping&&t==n&&(n=t.sticky=="before"?u(t.line,t.ch+1,"before"):t,t=t.ch?u(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var l=!1,a=qt(e,t),s=!n||n==t?a:qt(e,n);i={left:Math.min(a.left,s.left),top:Math.min(a.top,s.top)-r,right:Math.max(a.left,s.left),bottom:Math.max(a.bottom,s.bottom)+r};var f=Ki(e,i),w=e.doc.scrollTop,M=e.doc.scrollLeft;if(f.scrollTop!=null&&(gn(e,f.scrollTop),Math.abs(e.doc.scrollTop-w)>1&&(l=!0)),f.scrollLeft!=null&&(Er(e,f.scrollLeft),Math.abs(e.doc.scrollLeft-M)>1&&(l=!0)),!l)break}return i}function Qu(e,t){var n=Ki(e,t);n.scrollTop!=null&&gn(e,n.scrollTop),n.scrollLeft!=null&&Er(e,n.scrollLeft)}function Ki(e,t){var n=e.display,r=jr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:n.scroller.scrollTop,o=Di(e),l={};t.bottom-t.top>o&&(t.bottom=t.top+o);var a=e.doc.height+Ai(n),s=t.top<r,f=t.bottom>a-r;if(t.top<i)l.scrollTop=s?0:t.top;else if(t.bottom>i+o){var w=Math.min(t.top,(f?a:t.bottom)-o);w!=i&&(l.scrollTop=w)}var M=e.options.fixedGutter?0:n.gutters.offsetWidth,H=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:n.scroller.scrollLeft-M,W=Sr(e)-n.gutters.offsetWidth,Q=t.right-t.left>W;return Q&&(t.right=t.left+W),t.left<10?l.scrollLeft=0:t.left<H?l.scrollLeft=Math.max(0,t.left+M-(Q?0:10)):t.right>W+H-3&&(l.scrollLeft=t.right+(Q?0:10)-W),l}function $i(e,t){t!=null&&(ri(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Kr(e){ri(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function mn(e,t,n){(t!=null||n!=null)&&ri(e),t!=null&&(e.curOp.scrollLeft=t),n!=null&&(e.curOp.scrollTop=n)}function Ju(e,t){ri(e),e.curOp.scrollToPos=t}function ri(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=il(e,t.from),r=il(e,t.to);dl(e,n,r,t.margin)}}function dl(e,t,n,r){var i=Ki(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});mn(e,i.scrollLeft,i.scrollTop)}function gn(e,t){Math.abs(e.doc.scrollTop-t)<2||(z||Xi(e,{top:t}),pl(e,t,!0),z&&Xi(e),bn(e,100))}function pl(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Er(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r)&&(e.doc.scrollLeft=t,yl(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function vn(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Ai(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+$t(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Mr=function(e,t,n){this.cm=n;var r=this.vert=c("div",[c("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=c("div",[c("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),Ce(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),Ce(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,m&&B<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Mr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r: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&&(r==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Mr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Mr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Mr.prototype.zeroWidthHack=function(){var e=j&&!S?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new se,this.disableVert=new se},Mr.prototype.enableZeroWidthBar=function(e,t,n){e.style.pointerEvents="auto";function r(){var i=e.getBoundingClientRect(),o=n=="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.pointerEvents="none":t.set(1e3,r)}t.set(1e3,r)},Mr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var yn=function(){};yn.prototype.update=function(){return{bottom:0,right:0}},yn.prototype.setScrollLeft=function(){},yn.prototype.setScrollTop=function(){},yn.prototype.clear=function(){};function $r(e,t){t||(t=vn(e));var n=e.display.barWidth,r=e.display.barHeight;hl(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&ei(e),hl(e,vn(e)),n=e.display.barWidth,r=e.display.barHeight}function hl(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}var ml={native:Mr,null:yn};function gl(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&Y(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new ml[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Ce(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){n=="horizontal"?Er(e,t):gn(e,t)},e),e.display.scrollbars.addClass&&Z(e.display.wrapper,e.display.scrollbars.addClass)}var Vu=0;function zr(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:++Vu,markArrays:null},zu(e.curOp)}function Ar(e){var t=e.curOp;t&&Du(t,function(n){for(var r=0;r<n.ops.length;r++)n.ops[r].cm.curOp=null;ec(n)})}function ec(e){for(var t=e.ops,n=0;n<t.length;n++)tc(t[n]);for(var r=0;r<t.length;r++)rc(t[r]);for(var i=0;i<t.length;i++)nc(t[i]);for(var o=0;o<t.length;o++)ic(t[o]);for(var l=0;l<t.length;l++)oc(t[l])}function tc(e){var t=e.cm,n=t.display;ac(t),e.updateMaxLine&&Mi(t),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ni(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function rc(e){e.updatedDisplay=e.mustUpdate&&Gi(e.cm,e.update)}function nc(e){var t=e.cm,n=t.display;e.updatedDisplay&&ei(t),e.barMeasure=vn(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Yo(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+$t(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Sr(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function ic(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Er(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==k();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&$r(t,e.barMeasure),e.updatedDisplay&&Yi(t,e.barMeasure),e.selectionChanged&&ji(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&cl(e.cm)}function oc(e){var t=e.cm,n=t.display,r=t.doc;if(e.updatedDisplay&&vl(t,e.update),n.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(n.wheelStartX=n.wheelStartY=null),e.scrollTop!=null&&pl(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Er(t,e.scrollLeft,!0,!0),e.scrollToPos){var i=Yu(t,we(r,e.scrollToPos.from),we(r,e.scrollToPos.to),e.scrollToPos.margin);Zu(t,i)}var o=e.maybeHiddenMarkers,l=e.maybeUnhiddenMarkers;if(o)for(var a=0;a<o.length;++a)o[a].lines.length||Ve(o[a],"hide");if(l)for(var s=0;s<l.length;++s)l[s].lines.length&&Ve(l[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&Ve(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Mt(e,t){if(e.curOp)return t();zr(e);try{return t()}finally{Ar(e)}}function ct(e,t){return function(){if(e.curOp)return t.apply(e,arguments);zr(e);try{return t.apply(e,arguments)}finally{Ar(e)}}}function _t(e){return function(){if(this.curOp)return e.apply(this,arguments);zr(this);try{return e.apply(this,arguments)}finally{Ar(this)}}}function ft(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);zr(t);try{return e.apply(this,arguments)}finally{Ar(t)}}}function bn(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,p(lc,e))}function lc(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=sn(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(r.line>=e.display.viewFrom){var l=o.styles,a=o.text.length>e.options.maxHighlightLength?Qt(t.mode,r.state):null,s=So(e,o,r,!0);a&&(r.state=a),o.styles=s.styles;var f=o.styleClasses,w=s.classes;w?o.styleClasses=w:f&&(o.styleClasses=null);for(var M=!l||l.length!=o.styles.length||f!=w&&(!f||!w||f.bgClass!=w.bgClass||f.textClass!=w.textClass),H=0;!M&&H<l.length;++H)M=l[H]!=o.styles[H];M&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&wi(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return bn(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Mt(e,function(){for(var o=0;o<i.length;o++)fr(e,i[o],"text")})}}var ni=function(e,t,n){var r=e.display;this.viewport=t,this.visible=ti(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Sr(e),this.force=n,this.dims=qi(e),this.events=[]};ni.prototype.signal=function(e,t){xt(e,t)&&this.events.push(arguments)},ni.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Ve.apply(null,this.events[e])};function ac(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=$t(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=$t(e)+"px",t.scrollbarsClipped=!0)}function sc(e){if(e.hasFocus())return null;var t=k();if(!t||!L(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&L(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function uc(e){if(!(!e||!e.activeElt||e.activeElt==k())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&L(document.body,e.anchorNode)&&L(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}function Gi(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return dr(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&sl(e)==0)return!1;bl(e)&&(dr(e),t.dims=qi(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),l=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>l&&n.viewTo-l<20&&(l=Math.min(i,n.viewTo)),er&&(o=Li(e.doc,o),l=qo(e.doc,l));var a=o!=n.viewFrom||l!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Gu(e,o,l),n.viewOffset=tr(ke(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var s=sl(e);if(!a&&s==0&&!t.force&&n.renderedView==n.view&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo))return!1;var f=sc(e);return s>4&&(n.lineDiv.style.display="none"),cc(e,n.updateLineNumbers,t.dims),s>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,uc(f),N(n.cursorDiv),N(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,a&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,bn(e,400)),n.updateLineNumbers=null,!0}function vl(e,t){for(var n=t.viewport,r=!0;;r=!1){if(!r||!e.options.lineWrapping||t.oldDisplayWidth==Sr(e)){if(n&&n.top!=null&&(n={top:Math.min(e.doc.height+Ai(e.display)-Di(e),n.top)}),t.visible=ti(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else r&&(t.visible=ti(e.display,e.doc,n));if(!Gi(e,t))break;ei(e);var i=vn(e);hn(e),$r(e,i),Yi(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 Xi(e,t){var n=new ni(e,t);if(Gi(e,n)){ei(e),vl(e,n);var r=vn(e);hn(e),$r(e,r),Yi(e,r),n.finish()}}function cc(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,l=o.firstChild;function a(Q){var ie=Q.nextSibling;return C&&j&&e.display.currentWheelTarget==Q?Q.style.display="none":Q.parentNode.removeChild(Q),ie}for(var s=r.view,f=r.viewFrom,w=0;w<s.length;w++){var M=s[w];if(!M.hidden)if(!M.node||M.node.parentNode!=o){var H=Nu(e,M,f,n);o.insertBefore(H,l)}else{for(;l!=M.node;)l=a(l);var W=i&&t!=null&&t<=f&&M.lineNumber;M.changes&&(de(M.changes,"gutter")>-1&&(W=!1),Ho(e,M,f,n)),W&&(N(M.lineNumber),M.lineNumber.appendChild(document.createTextNode(qr(e.options,f)))),l=M.node.nextSibling}f+=M.size}for(;l;)l=a(l)}function Zi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",ut(e,"gutterChanged",e)}function Yi(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+$t(e)+"px"}function yl(e){var t=e.display,n=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var r=Ri(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",l=0;l<n.length;l++)if(!n[l].hidden){e.options.fixedGutter&&(n[l].gutter&&(n[l].gutter.style.left=o),n[l].gutterBackground&&(n[l].gutterBackground.style.left=o));var a=n[l].alignable;if(a)for(var s=0;s<a.length;s++)a[s].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function bl(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=qr(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(c("div",[c("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,l=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-l)+1,r.lineNumWidth=r.lineNumInnerWidth+l,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",Zi(e.display),!0}return!1}function Qi(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var o=e[i],l=null;if(typeof o!="string"&&(l=o.style,o=o.className),o=="CodeMirror-linenumbers")if(t)r=!0;else continue;n.push({className:o,style:l})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function xl(e){var t=e.gutters,n=e.gutterSpecs;N(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,l=i.style,a=t.appendChild(c("div",null,"CodeMirror-gutter "+o));l&&(a.style.cssText=l),o=="CodeMirror-linenumbers"&&(e.lineGutter=a,a.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",Zi(e)}function xn(e){xl(e.display),St(e),yl(e)}function fc(e,t,n,r){var i=this;this.input=n,i.scrollbarFiller=c("div",null,"CodeMirror-scrollbar-filler"),i.scrollbarFiller.setAttribute("cm-not-content","true"),i.gutterFiller=c("div",null,"CodeMirror-gutter-filler"),i.gutterFiller.setAttribute("cm-not-content","true"),i.lineDiv=O("div",null,"CodeMirror-code"),i.selectionDiv=c("div",null,null,"position: relative; z-index: 1"),i.cursorDiv=c("div",null,"CodeMirror-cursors"),i.measure=c("div",null,"CodeMirror-measure"),i.lineMeasure=c("div",null,"CodeMirror-measure"),i.lineSpace=O("div",[i.measure,i.lineMeasure,i.selectionDiv,i.cursorDiv,i.lineDiv],null,"position: relative; outline: none");var o=O("div",[i.lineSpace],"CodeMirror-lines");i.mover=c("div",[o],null,"position: relative"),i.sizer=c("div",[i.mover],"CodeMirror-sizer"),i.sizerWidth=null,i.heightForcer=c("div",null,null,"position: absolute; height: "+Le+"px; width: 1px;"),i.gutters=c("div",null,"CodeMirror-gutters"),i.lineGutter=null,i.scroller=c("div",[i.sizer,i.heightForcer,i.gutters],"CodeMirror-scroll"),i.scroller.setAttribute("tabIndex","-1"),i.wrapper=c("div",[i.scrollbarFiller,i.gutterFiller,i.scroller],"CodeMirror"),i.wrapper.setAttribute("translate","no"),m&&B<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),!C&&!(z&&_)&&(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=Qi(r.gutters,r.lineNumbers),xl(i),n.init(i)}var ii=0,nr=null;m?nr=-.53:z?nr=15:E?nr=-.7:g&&(nr=-1/3);function kl(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),n==null&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:n==null&&(n=e.wheelDelta),{x:t,y:n}}function dc(e){var t=kl(e);return t.x*=nr,t.y*=nr,t}function _l(e,t){E&&h>=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 n=kl(t),r=n.x,i=n.y,o=nr;t.deltaMode===0&&(r=t.deltaX,i=t.deltaY,o=1);var l=e.display,a=l.scroller,s=a.scrollWidth>a.clientWidth,f=a.scrollHeight>a.clientHeight;if(!!(r&&s||i&&f)){if(i&&j&&C){e:for(var w=t.target,M=l.view;w!=a;w=w.parentNode)for(var H=0;H<M.length;H++)if(M[H].node==w){e.display.currentWheelTarget=w;break e}}if(r&&!z&&!b&&o!=null){i&&f&&gn(e,Math.max(0,a.scrollTop+i*o)),Er(e,Math.max(0,a.scrollLeft+r*o)),(!i||i&&f)&&st(t),l.wheelStartX=null;return}if(i&&o!=null){var W=i*o,Q=e.doc.scrollTop,ie=Q+l.wrapper.clientHeight;W<0?Q=Math.max(0,Q+W-50):ie=Math.min(e.doc.height,ie+W+50),Xi(e,{top:Q,bottom:ie})}ii<20&&t.deltaMode!==0&&(l.wheelStartX==null?(l.wheelStartX=a.scrollLeft,l.wheelStartY=a.scrollTop,l.wheelDX=r,l.wheelDY=i,setTimeout(function(){if(l.wheelStartX!=null){var ce=a.scrollLeft-l.wheelStartX,pe=a.scrollTop-l.wheelStartY,me=pe&&l.wheelDY&&pe/l.wheelDY||ce&&l.wheelDX&&ce/l.wheelDX;l.wheelStartX=l.wheelStartY=null,me&&(nr=(nr*ii+me)/(ii+1),++ii)}},200)):(l.wheelDX+=r,l.wheelDY+=i))}}var Dt=function(e,t){this.ranges=e,this.primIndex=t};Dt.prototype.primary=function(){return this.ranges[this.primIndex]},Dt.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 n=this.ranges[t],r=e.ranges[t];if(!ee(n.anchor,r.anchor)||!ee(n.head,r.head))return!1}return!0},Dt.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new He(ue(this.ranges[t].anchor),ue(this.ranges[t].head));return new Dt(e,this.primIndex)},Dt.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Dt.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(x(t,r.from())>=0&&x(e,r.to())<=0)return n}return-1};var He=function(e,t){this.anchor=e,this.head=t};He.prototype.from=function(){return Ne(this.anchor,this.head)},He.prototype.to=function(){return Me(this.anchor,this.head)},He.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Rt(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort(function(H,W){return x(H.from(),W.from())}),n=de(t,i);for(var o=1;o<t.length;o++){var l=t[o],a=t[o-1],s=x(a.to(),l.from());if(r&&!l.empty()?s>0:s>=0){var f=Ne(a.from(),l.from()),w=Me(a.to(),l.to()),M=a.empty()?l.from()==l.head:a.from()==a.head;o<=n&&--n,t.splice(--o,2,new He(M?w:f,M?f:w))}}return new Dt(t,n)}function pr(e,t){return new Dt([new He(e,t||e)],0)}function hr(e){return e.text?u(e.from.line+e.text.length-1,xe(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function wl(e,t){if(x(e,t.from)<0)return e;if(x(e,t.to)<=0)return hr(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=hr(t).ch-t.to.ch),u(n,r)}function Ji(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new He(wl(i.anchor,t),wl(i.head,t)))}return Rt(e.cm,n,e.sel.primIndex)}function Sl(e,t,n){return e.line==t.line?u(n.line,e.ch-t.ch+n.ch):u(n.line+(e.line-t.line),e.ch)}function pc(e,t,n){for(var r=[],i=u(e.first,0),o=i,l=0;l<t.length;l++){var a=t[l],s=Sl(a.from,i,o),f=Sl(hr(a),i,o);if(i=a.to,o=f,n=="around"){var w=e.sel.ranges[l],M=x(w.head,w.anchor)<0;r[l]=new He(M?f:s,M?s:f)}else r[l]=new He(s,s)}return new Dt(r,e.sel.primIndex)}function Vi(e){e.doc.mode=ur(e.options,e.doc.modeOption),kn(e)}function kn(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,bn(e,100),e.state.modeGen++,e.curOp&&St(e)}function Tl(e,t){return t.from.ch==0&&t.to.ch==0&&xe(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function eo(e,t,n,r){function i(me){return n?n[me]:null}function o(me,he,ve){ku(me,he,ve,r),ut(me,"change",me,t)}function l(me,he){for(var ve=[],Te=me;Te<he;++Te)ve.push(new Rr(f[Te],i(Te),r));return ve}var a=t.from,s=t.to,f=t.text,w=ke(e,a.line),M=ke(e,s.line),H=xe(f),W=i(f.length-1),Q=s.line-a.line;if(t.full)e.insert(0,l(0,f.length)),e.remove(f.length,e.size-f.length);else if(Tl(e,t)){var ie=l(0,f.length-1);o(M,M.text,W),Q&&e.remove(a.line,Q),ie.length&&e.insert(a.line,ie)}else if(w==M)if(f.length==1)o(w,w.text.slice(0,a.ch)+H+w.text.slice(s.ch),W);else{var ce=l(1,f.length-1);ce.push(new Rr(H+w.text.slice(s.ch),W,r)),o(w,w.text.slice(0,a.ch)+f[0],i(0)),e.insert(a.line+1,ce)}else if(f.length==1)o(w,w.text.slice(0,a.ch)+f[0]+M.text.slice(s.ch),i(0)),e.remove(a.line+1,Q);else{o(w,w.text.slice(0,a.ch)+f[0],i(0)),o(M,H+M.text.slice(s.ch),W);var pe=l(1,f.length-1);Q>1&&e.remove(a.line+1,Q-1),e.insert(a.line+1,pe)}ut(e,"change",e,t)}function mr(e,t,n){function r(i,o,l){if(i.linked)for(var a=0;a<i.linked.length;++a){var s=i.linked[a];if(s.doc!=o){var f=l&&s.sharedHist;n&&!f||(t(s.doc,f),r(s.doc,i,f))}}}r(e,null,!0)}function Cl(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Wi(e),Vi(e),Ll(e),e.options.direction=t.direction,e.options.lineWrapping||Mi(e),e.options.mode=t.modeOption,St(e)}function Ll(e){(e.doc.direction=="rtl"?Z:Y)(e.display.lineDiv,"CodeMirror-rtl")}function hc(e){Mt(e,function(){Ll(e),St(e)})}function oi(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 to(e,t){var n={from:ue(t.from),to:hr(t),text:Jt(e,t.from,t.to)};return zl(e,n,t.from.line,t.to.line+1),mr(e,function(r){return zl(r,n,t.from.line,t.to.line+1)},!0),n}function El(e){for(;e.length;){var t=xe(e);if(t.ranges)e.pop();else break}}function mc(e,t){if(t)return El(e.done),xe(e.done);if(e.done.length&&!xe(e.done).ranges)return xe(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),xe(e.done)}function Ml(e,t,n,r){var i=e.history;i.undone.length=0;var o=+new Date,l,a;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&i.lastModTime>o-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(l=mc(i,i.lastOp==r)))a=xe(l.changes),x(t.from,t.to)==0&&x(t.from,a.to)==0?a.to=hr(t):l.changes.push(to(e,t));else{var s=xe(i.done);for((!s||!s.ranges)&&li(e.sel,i.done),l={changes:[to(e,t)],generation:i.generation},i.done.push(l);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=o,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||Ve(e,"historyAdded")}function gc(e,t,n,r){var i=t.charAt(0);return i=="*"||i=="+"&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function vc(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||gc(e,o,xe(i.done),t))?i.done[i.done.length-1]=t:li(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&r.clearRedo!==!1&&El(i.undone)}function li(e,t){var n=xe(t);n&&n.ranges&&n.equals(e)||t.push(e)}function zl(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(l){l.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=l.markedSpans),++o})}function yc(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function bc(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(yc(n[i]));return r}function Al(e,t){var n=bc(e,t),r=Ti(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],l=r[i];if(o&&l){e:for(var a=0;a<l.length;++a){for(var s=l[a],f=0;f<o.length;++f)if(o[f].marker==s.marker)continue e;o.push(s)}}else l&&(n[i]=l)}return n}function Gr(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges){r.push(n?Dt.prototype.deepCopy.call(o):o);continue}var l=o.changes,a=[];r.push({changes:a});for(var s=0;s<l.length;++s){var f=l[s],w=void 0;if(a.push({from:f.from,to:f.to,text:f.text}),t)for(var M in f)(w=M.match(/^spans_(\d+)$/))&&de(t,Number(w[1]))>-1&&(xe(a)[M]=f[M],delete f[M])}}return r}function ro(e,t,n,r){if(r){var i=e.anchor;if(n){var o=x(t,i)<0;o!=x(n,i)<0?(i=t,t=n):o!=x(t,n)<0&&(t=n)}return new He(i,t)}else return new He(n||t,t)}function ai(e,t,n,r,i){i==null&&(i=e.cm&&(e.cm.display.shift||e.extend)),vt(e,new Dt([ro(e.sel.primary(),t,n,i)],0),r)}function Dl(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=ro(e.sel.ranges[o],t[o],null,i);var l=Rt(e.cm,r,e.sel.primIndex);vt(e,l,n)}function no(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,vt(e,Rt(e.cm,i,e.sel.primIndex),r)}function Fl(e,t,n,r){vt(e,pr(t,n),r)}function xc(e,t,n){var r={ranges:t.ranges,update:function(i){this.ranges=[];for(var o=0;o<i.length;o++)this.ranges[o]=new He(we(e,i[o].anchor),we(e,i[o].head))},origin:n&&n.origin};return Ve(e,"beforeSelectionChange",e,r),e.cm&&Ve(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?Rt(e.cm,r.ranges,r.ranges.length-1):t}function Il(e,t,n){var r=e.history.done,i=xe(r);i&&i.ranges?(r[r.length-1]=t,si(e,t,n)):vt(e,t,n)}function vt(e,t,n){si(e,t,n),vc(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function si(e,t,n){(xt(e,"beforeSelectionChange")||e.cm&&xt(e.cm,"beforeSelectionChange"))&&(t=xc(e,t,n));var r=n&&n.bias||(x(t.primary().head,e.sel.primary().head)<0?-1:1);Ol(e,Nl(e,t,r,!0)),!(n&&n.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&Kr(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,ar(e.cm)),ut(e,"cursorActivity",e))}function Pl(e){Ol(e,Nl(e,e.sel,null,!1))}function Nl(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var l=t.ranges[o],a=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],s=ui(e,l.anchor,a&&a.anchor,n,r),f=ui(e,l.head,a&&a.head,n,r);(i||s!=l.anchor||f!=l.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new He(s,f))}return i?Rt(e.cm,i,t.primIndex):t}function Xr(e,t,n,r,i){var o=ke(e,t.line);if(o.markedSpans)for(var l=0;l<o.markedSpans.length;++l){var a=o.markedSpans[l],s=a.marker,f="selectLeft"in s?!s.selectLeft:s.inclusiveLeft,w="selectRight"in s?!s.selectRight:s.inclusiveRight;if((a.from==null||(f?a.from<=t.ch:a.from<t.ch))&&(a.to==null||(w?a.to>=t.ch:a.to>t.ch))){if(i&&(Ve(s,"beforeCursorEnter"),s.explicitlyCleared))if(o.markedSpans){--l;continue}else break;if(!s.atomic)continue;if(n){var M=s.find(r<0?1:-1),H=void 0;if((r<0?w:f)&&(M=ql(e,M,-r,M&&M.line==t.line?o:null)),M&&M.line==t.line&&(H=x(M,n))&&(r<0?H<0:H>0))return Xr(e,M,t,r,i)}var W=s.find(r<0?-1:1);return(r<0?f:w)&&(W=ql(e,W,r,W.line==t.line?o:null)),W?Xr(e,W,t,r,i):null}}return t}function ui(e,t,n,r,i){var o=r||1,l=Xr(e,t,n,o,i)||!i&&Xr(e,t,n,o,!0)||Xr(e,t,n,-o,i)||!i&&Xr(e,t,n,-o,!0);return l||(e.cantEdit=!0,u(e.first,0))}function ql(e,t,n,r){return n<0&&t.ch==0?t.line>e.first?we(e,u(t.line-1)):null:n>0&&t.ch==(r||ke(e,t.line)).text.length?t.line<e.first+e.size-1?u(t.line+1,0):null:new u(t.line,t.ch+n)}function Rl(e){e.setSelection(u(e.firstLine(),0),u(e.lastLine()),ne)}function Wl(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(i,o,l,a){i&&(r.from=we(e,i)),o&&(r.to=we(e,o)),l&&(r.text=l),a!==void 0&&(r.origin=a)}),Ve(e,"beforeChange",e,r),e.cm&&Ve(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function Zr(e,t,n){if(e.cm){if(!e.cm.curOp)return ct(e.cm,Zr)(e,t,n);if(e.cm.state.suppressEdits)return}if(!((xt(e,"beforeChange")||e.cm&&xt(e.cm,"beforeChange"))&&(t=Wl(e,t,!0),!t))){var r=Ao&&!n&&vu(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)Bl(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else Bl(e,t)}}function Bl(e,t){if(!(t.text.length==1&&t.text[0]==""&&x(t.from,t.to)==0)){var n=Ji(e,t);Ml(e,t,n,e.cm?e.cm.curOp.id:NaN),_n(e,t,n,Ti(e,t));var r=[];mr(e,function(i,o){!o&&de(r,i.history)==-1&&(Kl(i.history,t),r.push(i.history)),_n(i,t,null,Ti(i,t))})}}function ci(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!(r&&!n)){for(var i=e.history,o,l=e.sel,a=t=="undo"?i.done:i.undone,s=t=="undo"?i.undone:i.done,f=0;f<a.length&&(o=a[f],!(n?o.ranges&&!o.equals(e.sel):!o.ranges));f++);if(f!=a.length){for(i.lastOrigin=i.lastSelOrigin=null;;)if(o=a.pop(),o.ranges){if(li(o,s),n&&!o.equals(e.sel)){vt(e,o,{clearRedo:!1});return}l=o}else if(r){a.push(o);return}else break;var w=[];li(l,s),s.push({changes:w,generation:i.generation}),i.generation=o.generation||++i.maxGeneration;for(var M=xt(e,"beforeChange")||e.cm&&xt(e.cm,"beforeChange"),H=function(ie){var ce=o.changes[ie];if(ce.origin=t,M&&!Wl(e,ce,!1))return a.length=0,{};w.push(to(e,ce));var pe=ie?Ji(e,ce):xe(a);_n(e,ce,pe,Al(e,ce)),!ie&&e.cm&&e.cm.scrollIntoView({from:ce.from,to:hr(ce)});var me=[];mr(e,function(he,ve){!ve&&de(me,he.history)==-1&&(Kl(he.history,ce),me.push(he.history)),_n(he,ce,null,Al(he,ce))})},W=o.changes.length-1;W>=0;--W){var Q=H(W);if(Q)return Q.v}}}}function jl(e,t){if(t!=0&&(e.first+=t,e.sel=new Dt(je(e.sel.ranges,function(i){return new He(u(i.anchor.line+t,i.anchor.ch),u(i.head.line+t,i.head.ch))}),e.sel.primIndex),e.cm)){St(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)fr(e.cm,r,"gutter")}}function _n(e,t,n,r){if(e.cm&&!e.cm.curOp)return ct(e.cm,_n)(e,t,n,r);if(t.to.line<e.first){jl(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);jl(e,i),t={from:u(e.first,0),to:u(t.to.line+i,t.to.ch),text:[xe(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:u(o,ke(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Jt(e,t.from,t.to),n||(n=Ji(e,t)),e.cm?kc(e.cm,t,r):eo(e,t,r),si(e,n,ne),e.cantEdit&&ui(e,u(e.firstLine(),0))&&(e.cantEdit=!1)}}function kc(e,t,n){var r=e.doc,i=e.display,o=t.from,l=t.to,a=!1,s=o.line;e.options.lineWrapping||(s=Be(Nt(ke(r,o.line))),r.iter(s,l.line+1,function(W){if(W==i.maxLine)return a=!0,!0})),r.sel.contains(t.from,t.to)>-1&&ar(e),eo(r,t,n,al(e)),e.options.lineWrapping||(r.iter(s,o.line+t.text.length,function(W){var Q=Gn(W);Q>i.maxLineLength&&(i.maxLine=W,i.maxLineLength=Q,i.maxLineChanged=!0,a=!1)}),a&&(e.curOp.updateMaxLine=!0)),cu(r,o.line),bn(e,400);var f=t.text.length-(l.line-o.line)-1;t.full?St(e):o.line==l.line&&t.text.length==1&&!Tl(e.doc,t)?fr(e,o.line,"text"):St(e,o.line,l.line+1,f);var w=xt(e,"changes"),M=xt(e,"change");if(M||w){var H={from:o,to:l,text:t.text,removed:t.removed,origin:t.origin};M&&ut(e,"change",e,H),w&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(H)}e.display.selForContextMenu=null}function Yr(e,t,n,r,i){var o;r||(r=n),x(r,n)<0&&(o=[r,n],n=o[0],r=o[1]),typeof t=="string"&&(t=e.splitLines(t)),Zr(e,{from:n,to:r,text:t,origin:i})}function Hl(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function Ul(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],l=!0;if(o.ranges){o.copied||(o=e[i]=o.deepCopy(),o.copied=!0);for(var a=0;a<o.ranges.length;a++)Hl(o.ranges[a].anchor,t,n,r),Hl(o.ranges[a].head,t,n,r);continue}for(var s=0;s<o.changes.length;++s){var f=o.changes[s];if(n<f.from.line)f.from=u(f.from.line+r,f.from.ch),f.to=u(f.to.line+r,f.to.ch);else if(t<=f.to.line){l=!1;break}}l||(e.splice(0,i+1),i=0)}}function Kl(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;Ul(e.done,n,r,i),Ul(e.undone,n,r,i)}function wn(e,t,n,r){var i=t,o=t;return typeof t=="number"?o=ke(e,Ke(e,t)):i=Be(t),i==null?null:(r(o,i)&&e.cm&&fr(e.cm,i,n),o)}function Sn(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}Sn.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,_u(i),ut(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}};function Tn(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}Tn.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),l=r.height;if(r.removeInner(e,o),this.height-=l-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),(t-=o)==0)break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Sn))){var a=[];this.collapse(a),this.children=[new Sn(a)],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,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var l=i.lines.length%25+25,a=l;a<i.lines.length;){var s=new Sn(i.lines.slice(a,a+=25));i.height-=s.height,this.children.splice(++r,0,s),s.parent=this}i.lines=i.lines.slice(0,l),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),n=new Tn(t);if(e.parent){e.size-=n.size,e.height-=n.height;var i=de(e.parent.children,e);e.parent.children.splice(i+1,0,n)}else{var r=new Tn(e.children);r.parent=e,e.children=[r,n],e=r}n.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var l=Math.min(t,o-e);if(i.iterN(e,l,n))return!0;if((t-=l)==0)break;e=0}else e-=o}}};var Cn=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};Cn.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=Be(n);if(!(r==null||!t)){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=dn(this);Ot(n,Math.max(0,n.height-o)),e&&(Mt(e,function(){$l(e,n,-o),fr(e,r,"widget")}),ut(e,"lineWidgetCleared",e,this,r))}},Cn.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=dn(this)-t;!i||(cr(this.doc,r)||Ot(r,r.height+i),n&&Mt(n,function(){n.curOp.forceUpdate=!0,$l(n,r,i),ut(n,"lineWidgetChanged",n,e,Be(r))}))},sr(Cn);function $l(e,t,n){tr(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&$i(e,n)}function _c(e,t,n,r){var i=new Cn(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),wn(e,t,"widget",function(l){var a=l.widgets||(l.widgets=[]);if(i.insertAt==null?a.push(i):a.splice(Math.min(a.length,Math.max(0,i.insertAt)),0,i),i.line=l,o&&!cr(e,l)){var s=tr(l)<e.scrollTop;Ot(l,l.height+dn(i)),s&&$i(o,i.height),o.curOp.forceUpdate=!0}return!0}),o&&ut(o,"lineWidgetAdded",o,i,typeof t=="number"?t:Be(t)),i}var Gl=0,gr=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Gl};gr.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&zr(e),xt(this,"clear")){var n=this.find();n&&ut(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var l=this.lines[o],a=un(l.markedSpans,this);e&&!this.collapsed?fr(e,Be(l),"text"):e&&(a.to!=null&&(i=Be(l)),a.from!=null&&(r=Be(l))),l.markedSpans=pu(l.markedSpans,a),a.from==null&&this.collapsed&&!cr(this.doc,l)&&e&&Ot(l,jr(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var s=0;s<this.lines.length;++s){var f=Nt(this.lines[s]),w=Gn(f);w>e.display.maxLineLength&&(e.display.maxLine=f,e.display.maxLineLength=w,e.display.maxLineChanged=!0)}r!=null&&e&&this.collapsed&&St(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Pl(e.doc)),e&&ut(e,"markerCleared",e,this,r,i),t&&Ar(e),this.parent&&this.parent.clear()}},gr.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var n,r,i=0;i<this.lines.length;++i){var o=this.lines[i],l=un(o.markedSpans,this);if(l.from!=null&&(n=u(t?o:Be(o),l.from),e==-1))return n;if(l.to!=null&&(r=u(t?o:Be(o),l.to),e==1))return r}return n&&{from:n,to:r}},gr.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;!t||!r||Mt(r,function(){var i=t.line,o=Be(t.line),l=Fi(r,o);if(l&&(Vo(l),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!cr(n.doc,i)&&n.height!=null){var a=n.height;n.height=null;var s=dn(n)-a;s&&Ot(i,i.height+s)}ut(r,"markerChanged",r,e)})},gr.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(!t.maybeHiddenMarkers||de(t.maybeHiddenMarkers,this)==-1)&&(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},gr.prototype.detachLine=function(e){if(this.lines.splice(de(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},sr(gr);function Qr(e,t,n,r,i){if(r&&r.shared)return wc(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return ct(e.cm,Qr)(e,t,n,r,i);var o=new gr(e,i),l=x(t,n);if(r&&ae(r,o,!1),l>0||l==0&&o.clearWhenEmpty!==!1)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=O("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(No(e,t.line,t,n,o)||t.line!=n.line&&No(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");du()}o.addToHistory&&Ml(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var a=t.line,s=e.cm,f;if(e.iter(a,n.line+1,function(M){s&&o.collapsed&&!s.options.lineWrapping&&Nt(M)==s.display.maxLine&&(f=!0),o.collapsed&&a!=t.line&&Ot(M,0),hu(M,new Hn(o,a==t.line?t.ch:null,a==n.line?n.ch:null),e.cm&&e.cm.curOp),++a}),o.collapsed&&e.iter(t.line,n.line+1,function(M){cr(e,M)&&Ot(M,0)}),o.clearOnEnter&&Ce(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(fu(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++Gl,o.atomic=!0),s){if(f&&(s.curOp.updateMaxLine=!0),o.collapsed)St(s,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var w=t.line;w<=n.line;w++)fr(s,w,"text");o.atomic&&Pl(s.doc),ut(s,"markerAdded",s,o)}return o}var Ln=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};Ln.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();ut(this,"clear")}},Ln.prototype.find=function(e,t){return this.primary.find(e,t)},sr(Ln);function wc(e,t,n,r,i){r=ae(r),r.shared=!1;var o=[Qr(e,t,n,r,i)],l=o[0],a=r.widgetNode;return mr(e,function(s){a&&(r.widgetNode=a.cloneNode(!0)),o.push(Qr(s,we(s,t),we(s,n),r,i));for(var f=0;f<s.linked.length;++f)if(s.linked[f].isParent)return;l=xe(o)}),new Ln(o,l)}function Xl(e){return e.findMarks(u(e.first,0),e.clipPos(u(e.lastLine())),function(t){return t.parent})}function Sc(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),l=e.clipPos(i.to);if(x(o,l)){var a=Qr(e,o,l,r.primary,r.primary.type);r.markers.push(a),a.parent=r}}}function Tc(e){for(var t=function(r){var i=e[r],o=[i.primary.doc];mr(i.primary.doc,function(s){return o.push(s)});for(var l=0;l<i.markers.length;l++){var a=i.markers[l];de(o,a.doc)==-1&&(a.parent=null,i.markers.splice(l--,1))}},n=0;n<e.length;n++)t(n)}var Cc=0,Tt=function(e,t,n,r,i){if(!(this instanceof Tt))return new Tt(e,t,n,r,i);n==null&&(n=0),Tn.call(this,[new Sn([new Rr("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=u(n,0);this.sel=pr(o),this.history=new oi(null),this.id=++Cc,this.modeOption=t,this.lineSep=r,this.direction=i=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),eo(this,{from:o,to:o,text:e}),vt(this,pr(o),ne)};Tt.prototype=Ge(Tn.prototype,{constructor:Tt,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=_r(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:ft(function(e){var t=u(this.first,0),n=this.first+this.size-1;Zr(this,{from:t,to:u(n,ke(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&mn(this.cm,0,0),vt(this,pr(t),ne)}),replaceRange:function(e,t,n,r){t=we(this,t),n=n?we(this,n):t,Yr(this,e,t,n,r)},getRange:function(e,t,n){var r=Jt(this,we(this,e),we(this,t));return n===!1?r:n===""?r.join(""):r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(wr(this,e))return ke(this,e)},getLineNumber:function(e){return Be(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=ke(this,e)),Nt(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return we(this,e)},getCursor:function(e){var t=this.sel.primary(),n;return e==null||e=="head"?n=t.head:e=="anchor"?n=t.anchor:e=="end"||e=="to"||e===!1?n=t.to():n=t.from(),n},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ft(function(e,t,n){Fl(this,we(this,typeof e=="number"?u(e,t||0):e),null,n)}),setSelection:ft(function(e,t,n){Fl(this,we(this,e),we(this,t||e),n)}),extendSelection:ft(function(e,t,n){ai(this,we(this,e),t&&we(this,t),n)}),extendSelections:ft(function(e,t){Dl(this,Bn(this,e),t)}),extendSelectionsBy:ft(function(e,t){var n=je(this.sel.ranges,e);Dl(this,Bn(this,n),t)}),setSelections:ft(function(e,t,n){if(!!e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new He(we(this,e[i].anchor),we(this,e[i].head||e[i].anchor));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),vt(this,Rt(this.cm,r,t),n)}}),addSelection:ft(function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new He(we(this,e),we(this,t||e))),vt(this,Rt(this.cm,r,r.length-1),n)}),getSelection:function(e){for(var t=this.sel.ranges,n,r=0;r<t.length;r++){var i=Jt(this,t[r].from(),t[r].to());n=n?n.concat(i):i}return e===!1?n:n.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=Jt(this,n[r].from(),n[r].to());e!==!1&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:ft(function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var l=i.ranges[o];r[o]={from:l.from(),to:l.to(),text:this.splitLines(e[o]),origin:n}}for(var a=t&&t!="end"&&pc(this,r,t),s=r.length-1;s>=0;s--)Zr(this,r[s]);a?Il(this,a):this.cm&&Kr(this.cm)}),undo:ft(function(){ci(this,"undo")}),redo:ft(function(){ci(this,"redo")}),undoSelection:ft(function(){ci(this,"undo",!0)}),redoSelection:ft(function(){ci(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new oi(this.history),mr(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:Gr(this.history.done),undone:Gr(this.history.undone)}},setHistory:function(e){var t=this.history=new oi(this.history);t.done=Gr(e.done.slice(0),null,!0),t.undone=Gr(e.undone.slice(0),null,!0)},setGutterMarker:ft(function(e,t,n){return wn(this,e,"gutter",function(r){var i=r.gutterMarkers||(r.gutterMarkers={});return i[t]=n,!n&&J(i)&&(r.gutterMarkers=null),!0})}),clearGutter:ft(function(e){var t=this;this.iter(function(n){n.gutterMarkers&&n.gutterMarkers[e]&&wn(t,n,"gutter",function(){return n.gutterMarkers[e]=null,J(n.gutterMarkers)&&(n.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!wr(this,e)||(t=e,e=ke(this,e),!e))return null}else if(t=Be(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:ft(function(e,t,n){return wn(this,e,t=="gutter"?"gutter":"class",function(r){var i=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass";if(!r[i])r[i]=n;else{if(X(n).test(r[i]))return!1;r[i]+=" "+n}return!0})}),removeLineClass:ft(function(e,t,n){return wn(this,e,t=="gutter"?"gutter":"class",function(r){var i=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",o=r[i];if(o)if(n==null)r[i]=null;else{var l=o.match(X(n));if(!l)return!1;var a=l.index+l[0].length;r[i]=o.slice(0,l.index)+(!l.index||a==o.length?"":" ")+o.slice(a)||null}else return!1;return!0})}),addLineWidget:ft(function(e,t,n){return _c(this,e,t,n)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return Qr(this,we(this,e),we(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=we(this,e),Qr(this,e,e,n,"bookmark")},findMarksAt:function(e){e=we(this,e);var t=[],n=ke(this,e.line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(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,n){e=we(this,e),t=we(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var l=o.markedSpans;if(l)for(var a=0;a<l.length;a++){var s=l[a];!(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)&&(!n||n(s.marker))&&r.push(s.marker.parent||s.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)n[r].from!=null&&e.push(n[r].marker)}),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter(function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n}),we(this,u(n,t))},indexFromPos:function(e){e=we(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,function(r){t+=r.text.length+n}),t},copy:function(e){var t=new Tt(_r(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,n=this.first+this.size;e.from!=null&&e.from>t&&(t=e.from),e.to!=null&&e.to<n&&(n=e.to);var r=new Tt(_r(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Sc(r,Xl(this)),r},unlinkDoc:function(e){if(e instanceof Qe&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var n=this.linked[t];if(n.doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Tc(Xl(this));break}}if(e.history==this.history){var r=[e.id];mr(e,function(i){return r.push(i.id)},!0),e.history=new oi(null),e.history.done=Gr(this.history.done,r),e.history.undone=Gr(this.history.undone,r)}},iterLinkedDocs:function(e){mr(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Pr(e)},lineSeparator:function(){return this.lineSep||`
`},setDirection:ft(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&hc(this.cm))})}),Tt.prototype.eachLine=Tt.prototype.iter;var Zl=0;function Lc(e){var t=this;if(Yl(t),!(et(t,e)||rr(t.display,e))){st(e),m&&(Zl=+new Date);var n=Cr(t,e,!0),r=e.dataTransfer.files;if(!(!n||t.isReadOnly()))if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),l=0,a=function(){++l==i&&ct(t,function(){n=we(t.doc,n);var W={from:n,to:n,text:t.doc.splitLines(o.filter(function(Q){return Q!=null}).join(t.doc.lineSeparator())),origin:"paste"};Zr(t.doc,W),Il(t.doc,pr(we(t.doc,n),we(t.doc,hr(W))))})()},s=function(W,Q){if(t.options.allowDropFileTypes&&de(t.options.allowDropFileTypes,W.type)==-1){a();return}var ie=new FileReader;ie.onerror=function(){return a()},ie.onload=function(){var ce=ie.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ce)){a();return}o[Q]=ce,a()},ie.readAsText(W)},f=0;f<r.length;f++)s(r[f],f);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var w=e.dataTransfer.getData("Text");if(w){var M;if(t.state.draggingText&&!t.state.draggingText.copy&&(M=t.listSelections()),si(t.doc,pr(n,n)),M)for(var H=0;H<M.length;++H)Yr(t.doc,"",M[H].anchor,M[H].head,"drag");t.replaceSelection(w,"around","paste"),t.display.input.focus()}}catch{}}}}function Ec(e,t){if(m&&(!e.state.draggingText||+new Date-Zl<100)){Bt(t);return}if(!(et(e,t)||rr(e.display,t))&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!g)){var n=c("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",b&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),b&&n.parentNode.removeChild(n)}}function Mc(e,t){var n=Cr(e,t);if(!!n){var r=document.createDocumentFragment();Bi(e,n,r),e.display.dragCursor||(e.display.dragCursor=c("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),D(e.display.dragCursor,r)}}function Yl(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Ql(e){if(!!document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation(function(){for(var o=0;o<n.length;o++)e(n[o])})}}var Jl=!1;function zc(){Jl||(Ac(),Jl=!0)}function Ac(){var e;Ce(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Ql(Dc)},100))}),Ce(window,"blur",function(){return Ql(Ur)})}function Dc(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var vr={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"},En=0;En<10;En++)vr[En+48]=vr[En+96]=String(En);for(var fi=65;fi<=90;fi++)vr[fi]=String.fromCharCode(fi);for(var Mn=1;Mn<=12;Mn++)vr[Mn+111]=vr[Mn+63235]="F"+Mn;var ir={};ir.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"},ir.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"},ir.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"},ir.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"]},ir.default=j?ir.macDefault:ir.pcDefault;function Fc(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var n,r,i,o,l=0;l<t.length-1;l++){var a=t[l];if(/^(cmd|meta|m)$/i.test(a))o=!0;else if(/^a(lt)?$/i.test(a))n=!0;else if(/^(c|ctrl|control)$/i.test(a))r=!0;else if(/^s(hift)?$/i.test(a))i=!0;else throw new Error("Unrecognized modifier name: "+a)}return n&&(e="Alt-"+e),r&&(e="Ctrl-"+e),o&&(e="Cmd-"+e),i&&(e="Shift-"+e),e}function Ic(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if(r=="..."){delete e[n];continue}for(var i=je(n.split(" "),Fc),o=0;o<i.length;o++){var l=void 0,a=void 0;o==i.length-1?(a=i.join(" "),l=r):(a=i.slice(0,o+1).join(" "),l="...");var s=t[a];if(!s)t[a]=l;else if(s!=l)throw new Error("Inconsistent bindings for "+a)}delete e[n]}for(var f in t)e[f]=t[f];return e}function Jr(e,t,n,r){t=di(t);var i=t.call?t.call(e,r):t[e];if(i===!1)return"nothing";if(i==="...")return"multi";if(i!=null&&n(i))return"handled";if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]")return Jr(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var l=Jr(e,t.fallthrough[o],n,r);if(l)return l}}}function Vl(e){var t=typeof e=="string"?e:vr[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function ea(e,t,n){var r=e;return t.altKey&&r!="Alt"&&(e="Alt-"+e),(te?t.metaKey:t.ctrlKey)&&r!="Ctrl"&&(e="Ctrl-"+e),(te?t.ctrlKey:t.metaKey)&&r!="Mod"&&(e="Cmd-"+e),!n&&t.shiftKey&&r!="Shift"&&(e="Shift-"+e),e}function ta(e,t){if(b&&e.keyCode==34&&e.char)return!1;var n=vr[e.keyCode];return n==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(n=e.code),ea(n,e,t))}function di(e){return typeof e=="string"?ir[e]:e}function Vr(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&x(o.from,xe(r).to)<=0;){var l=r.pop();if(x(l.from,o.from)<0){o.from=l.from;break}}r.push(o)}Mt(e,function(){for(var a=r.length-1;a>=0;a--)Yr(e.doc,"",r[a].from,r[a].to,"+delete");Kr(e)})}function io(e,t,n){var r=Ee(e.text,t+n,n);return r<0||r>e.text.length?null:r}function oo(e,t,n){var r=io(e,t.ch,n);return r==null?null:new u(t.line,r,n<0?"after":"before")}function lo(e,t,n,r,i){if(e){t.doc.direction=="rtl"&&(i=-i);var o=bt(n,t.doc.direction);if(o){var l=i<0?xe(o):o[0],a=i<0==(l.level==1),s=a?"after":"before",f;if(l.level>0||t.doc.direction=="rtl"){var w=Br(t,n);f=i<0?n.text.length-1:0;var M=Gt(t,w,f).top;f=_e(function(H){return Gt(t,w,H).top==M},i<0==(l.level==1)?l.from:l.to-1,f),s=="before"&&(f=io(n,f,1))}else f=i<0?l.to:l.from;return new u(r,f,s)}}return new u(r,i<0?n.text.length:0,i<0?"before":"after")}function Oc(e,t,n,r){var i=bt(t,e.doc.direction);if(!i)return oo(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=gt(i,n.ch,n.sticky),l=i[o];if(e.doc.direction=="ltr"&&l.level%2==0&&(r>0?l.to>n.ch:l.from<n.ch))return oo(t,n,r);var a=function(pe,me){return io(t,pe instanceof u?pe.ch:pe,me)},s,f=function(pe){return e.options.lineWrapping?(s=s||Br(e,t),ll(e,t,s,pe)):{begin:0,end:t.text.length}},w=f(n.sticky=="before"?a(n,-1):n.ch);if(e.doc.direction=="rtl"||l.level==1){var M=l.level==1==r<0,H=a(n,M?1:-1);if(H!=null&&(M?H<=l.to&&H<=w.end:H>=l.from&&H>=w.begin)){var W=M?"before":"after";return new u(n.line,H,W)}}var Q=function(pe,me,he){for(var ve=function(Xe,dt){return dt?new u(n.line,a(Xe,1),"before"):new u(n.line,Xe,"after")};pe>=0&&pe<i.length;pe+=me){var Te=i[pe],Se=me>0==(Te.level!=1),Ie=Se?he.begin:a(he.end,-1);if(Te.from<=Ie&&Ie<Te.to||(Ie=Se?Te.from:a(Te.to,-1),he.begin<=Ie&&Ie<he.end))return ve(Ie,Se)}},ie=Q(o+r,r,w);if(ie)return ie;var ce=r>0?w.end:a(w.begin,-1);return ce!=null&&!(r>0&&ce==t.text.length)&&(ie=Q(r>0?0:i.length-1,r,f(ce)),ie)?ie:null}var zn={selectAll:Rl,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),ne)},killLine:function(e){return Vr(e,function(t){if(t.empty()){var n=ke(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:u(t.head.line+1,0)}:{from:t.head,to:u(t.head.line,n)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return Vr(e,function(t){return{from:u(t.from().line,0),to:we(e.doc,u(t.to().line+1,0))}})},delLineLeft:function(e){return Vr(e,function(t){return{from:u(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return Vr(e,function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return{from:r,to:t.from()}})},delWrappedLineRight:function(e){return Vr(e,function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}})},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(u(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(u(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return ra(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return na(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return Pc(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")},ye)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")},ye)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?na(e,t.head):r},ye)},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=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),l=ge(e.getLine(o.line),o.ch,r);t.push(mt(r-l%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Mt(e,function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(!!t[r].empty()){var i=t[r].head,o=ke(e.doc,i.line).text;if(o){if(i.ch==o.length&&(i=new u(i.line,i.ch-1)),i.ch>0)i=new u(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),u(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var l=ke(e.doc,i.line-1).text;l&&(i=new u(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+l.charAt(l.length-1),u(i.line-1,l.length-1),i,"+transpose"))}}n.push(new He(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return Mt(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);Kr(e)})},openLine:function(e){return e.replaceSelection(`
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function ra(e,t){var n=ke(e.doc,t),r=Nt(n);return r!=n&&(t=Be(r)),lo(!0,e,r,t,1)}function Pc(e,t){var n=ke(e.doc,t),r=bu(n);return r!=n&&(t=Be(r)),lo(!0,e,n,t,-1)}function na(e,t){var n=ra(e,t.line),r=ke(e.doc,n.line),i=bt(r,e.doc.direction);if(!i||i[0].level==0){var o=Math.max(n.ch,r.text.search(/\S/)),l=t.line==n.line&&t.ch<=o&&t.ch;return u(n.line,l?0:o,n.sticky)}return n}function pi(e,t,n){if(typeof t=="string"&&(t=zn[t],!t))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=ze}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}function Nc(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=Jr(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&Jr(t,e.options.extraKeys,n,e)||Jr(t,e.options.keyMap,n,e)}var qc=new se;function An(e,t,n,r){var i=e.state.keySeq;if(i){if(Vl(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:qc.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),ia(e,i+" "+t,n,r))return!0}return ia(e,t,n,r)}function ia(e,t,n,r){var i=Nc(e,t,r);return i=="multi"&&(e.state.keySeq=t),i=="handled"&&ut(e,"keyHandled",e,t,n),(i=="handled"||i=="multi")&&(st(n),ji(e)),!!i}function oa(e,t){var n=ta(t,!0);return n?t.shiftKey&&!e.state.keySeq?An(e,"Shift-"+n,t,function(r){return pi(e,r,!0)})||An(e,n,t,function(r){if(typeof r=="string"?/^go[A-Z]/.test(r):r.motion)return pi(e,r)}):An(e,n,t,function(r){return pi(e,r)}):!1}function Rc(e,t,n){return An(e,"'"+n+"'",t,function(r){return pi(e,r,!0)})}var ao=null;function la(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&(t.curOp.focus=k(),!et(t,e))){m&&B<11&&e.keyCode==27&&(e.returnValue=!1);var n=e.keyCode;t.display.shift=n==16||e.shiftKey;var r=oa(t,e);b&&(ao=r?n:null,!r&&n==88&&!ki&&(j?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),z&&!j&&!r&&n==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),n==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&Wc(t)}}function Wc(e){var t=e.display.lineDiv;Z(t,"CodeMirror-crosshair");function n(r){(r.keyCode==18||!r.altKey)&&(Y(t,"CodeMirror-crosshair"),Fe(document,"keyup",n),Fe(document,"mouseover",n))}Ce(document,"keyup",n),Ce(document,"mouseover",n)}function aa(e){e.keyCode==16&&(this.doc.sel.shift=!1),et(this,e)}function sa(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&!(rr(t.display,e)||et(t,e)||e.ctrlKey&&!e.altKey||j&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(b&&n==ao){ao=null,st(e);return}if(!(b&&(!e.which||e.which<10)&&oa(t,e))){var i=String.fromCharCode(r??n);i!="\b"&&(Rc(t,e,i)||t.display.input.onKeyPress(e))}}}var Bc=400,so=function(e,t,n){this.time=e,this.pos=t,this.button=n};so.prototype.compare=function(e,t,n){return this.time+Bc>e&&x(t,this.pos)==0&&n==this.button};var Dn,Fn;function jc(e,t){var n=+new Date;return Fn&&Fn.compare(n,e,t)?(Dn=Fn=null,"triple"):Dn&&Dn.compare(n,e,t)?(Fn=new so(n,e,t),Dn=null,"double"):(Dn=new so(n,e,t),Fn=null,"single")}function ua(e){var t=this,n=t.display;if(!(et(t,e)||n.activeTouch&&n.input.supportsTouch())){if(n.input.ensurePolled(),n.shift=e.shiftKey,rr(n,e)){C||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));return}if(!uo(t,e)){var r=Cr(t,e),i=Ir(e),o=r?jc(r,i):"single";window.focus(),i==1&&t.state.selectingText&&t.state.selectingText(e),!(r&&Hc(t,i,r,o,e))&&(i==1?r?Kc(t,r,o,e):an(e)==n.scroller&&st(e):i==2?(r&&ai(t.doc,r),setTimeout(function(){return n.input.focus()},20)):i==3&&(V?t.display.input.onContextMenu(e):Hi(t)))}}}function Hc(e,t,n,r,i){var o="Click";return r=="double"?o="Double"+o:r=="triple"&&(o="Triple"+o),o=(t==1?"Left":t==2?"Middle":"Right")+o,An(e,ea(o,i),i,function(l){if(typeof l=="string"&&(l=zn[l]),!l)return!1;var a=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),a=l(e,n)!=ze}finally{e.state.suppressEdits=!1}return a})}function Uc(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(i.unit==null){var o=U?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(i.extend==null||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),i.addNew==null&&(i.addNew=j?n.metaKey:n.ctrlKey),i.moveOnDrag==null&&(i.moveOnDrag=!(j?n.altKey:n.ctrlKey)),i}function Kc(e,t,n,r){m?setTimeout(p(cl,e),0):e.curOp.focus=k();var i=Uc(e,n,r),o=e.doc.sel,l;e.options.dragDrop&&At&&!e.isReadOnly()&&n=="single"&&(l=o.contains(t))>-1&&(x((l=o.ranges[l]).from(),t)<0||t.xRel>0)&&(x(l.to(),t)>0||t.xRel<0)?$c(e,r,t,i):Gc(e,r,t,i)}function $c(e,t,n,r){var i=e.display,o=!1,l=ct(e,function(f){C&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Hi(e)),Fe(i.wrapper.ownerDocument,"mouseup",l),Fe(i.wrapper.ownerDocument,"mousemove",a),Fe(i.scroller,"dragstart",s),Fe(i.scroller,"drop",l),o||(st(f),r.addNew||ai(e.doc,n,null,null,r.extend),C&&!g||m&&B==9?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()},20):i.input.focus())}),a=function(f){o=o||Math.abs(t.clientX-f.clientX)+Math.abs(t.clientY-f.clientY)>=10},s=function(){return o=!0};C&&(i.scroller.draggable=!0),e.state.draggingText=l,l.copy=!r.moveOnDrag,Ce(i.wrapper.ownerDocument,"mouseup",l),Ce(i.wrapper.ownerDocument,"mousemove",a),Ce(i.scroller,"dragstart",s),Ce(i.scroller,"drop",l),e.state.delayingBlurEvent=!0,setTimeout(function(){return i.input.focus()},20),i.scroller.dragDrop&&i.scroller.dragDrop()}function ca(e,t,n){if(n=="char")return new He(t,t);if(n=="word")return e.findWordAt(t);if(n=="line")return new He(u(t.line,0),we(e.doc,u(t.line+1,0)));var r=n(e,t);return new He(r.from,r.to)}function Gc(e,t,n,r){m&&Hi(e);var i=e.display,o=e.doc;st(t);var l,a,s=o.sel,f=s.ranges;if(r.addNew&&!r.extend?(a=o.sel.contains(n),a>-1?l=f[a]:l=new He(n,n)):(l=o.sel.primary(),a=o.sel.primIndex),r.unit=="rectangle")r.addNew||(l=new He(n,n)),n=Cr(e,t,!0,!0),a=-1;else{var w=ca(e,n,r.unit);r.extend?l=ro(l,w.anchor,w.head,r.extend):l=w}r.addNew?a==-1?(a=f.length,vt(o,Rt(e,f.concat([l]),a),{scroll:!1,origin:"*mouse"})):f.length>1&&f[a].empty()&&r.unit=="char"&&!r.extend?(vt(o,Rt(e,f.slice(0,a).concat(f.slice(a+1)),0),{scroll:!1,origin:"*mouse"}),s=o.sel):no(o,a,l,fe):(a=0,vt(o,new Dt([l],0),fe),s=o.sel);var M=n;function H(he){if(x(M,he)!=0)if(M=he,r.unit=="rectangle"){for(var ve=[],Te=e.options.tabSize,Se=ge(ke(o,n.line).text,n.ch,Te),Ie=ge(ke(o,he.line).text,he.ch,Te),Xe=Math.min(Se,Ie),dt=Math.max(Se,Ie),Je=Math.min(n.line,he.line),zt=Math.min(e.lastLine(),Math.max(n.line,he.line));Je<=zt;Je++){var Ct=ke(o,Je).text,it=De(Ct,Xe,Te);Xe==dt?ve.push(new He(u(Je,it),u(Je,it))):Ct.length>it&&ve.push(new He(u(Je,it),u(Je,De(Ct,dt,Te))))}ve.length||ve.push(new He(n,n)),vt(o,Rt(e,s.ranges.slice(0,a).concat(ve),a),{origin:"*mouse",scroll:!1}),e.scrollIntoView(he)}else{var Lt=l,ht=ca(e,he,r.unit),at=Lt.anchor,ot;x(ht.anchor,at)>0?(ot=ht.head,at=Ne(Lt.from(),ht.anchor)):(ot=ht.anchor,at=Me(Lt.to(),ht.head));var tt=s.ranges.slice(0);tt[a]=Xc(e,new He(we(o,at),ot)),vt(o,Rt(e,tt,a),fe)}}var W=i.wrapper.getBoundingClientRect(),Q=0;function ie(he){var ve=++Q,Te=Cr(e,he,!0,r.unit=="rectangle");if(!!Te)if(x(Te,M)!=0){e.curOp.focus=k(),H(Te);var Se=ti(i,o);(Te.line>=Se.to||Te.line<Se.from)&&setTimeout(ct(e,function(){Q==ve&&ie(he)}),150)}else{var Ie=he.clientY<W.top?-20:he.clientY>W.bottom?20:0;Ie&&setTimeout(ct(e,function(){Q==ve&&(i.scroller.scrollTop+=Ie,ie(he))}),50)}}function ce(he){e.state.selectingText=!1,Q=1/0,he&&(st(he),i.input.focus()),Fe(i.wrapper.ownerDocument,"mousemove",pe),Fe(i.wrapper.ownerDocument,"mouseup",me),o.history.lastSelOrigin=null}var pe=ct(e,function(he){he.buttons===0||!Ir(he)?ce(he):ie(he)}),me=ct(e,ce);e.state.selectingText=me,Ce(i.wrapper.ownerDocument,"mousemove",pe),Ce(i.wrapper.ownerDocument,"mouseup",me)}function Xc(e,t){var n=t.anchor,r=t.head,i=ke(e.doc,n.line);if(x(n,r)==0&&n.sticky==r.sticky)return t;var o=bt(i);if(!o)return t;var l=gt(o,n.ch,n.sticky),a=o[l];if(a.from!=n.ch&&a.to!=n.ch)return t;var s=l+(a.from==n.ch==(a.level!=1)?0:1);if(s==0||s==o.length)return t;var f;if(r.line!=n.line)f=(r.line-n.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var w=gt(o,r.ch,r.sticky),M=w-l||(r.ch-n.ch)*(a.level==1?-1:1);w==s-1||w==s?f=M<0:f=M>0}var H=o[s+(f?-1:0)],W=f==(H.level==1),Q=W?H.from:H.to,ie=W?"after":"before";return n.ch==Q&&n.sticky==ie?t:new He(new u(n.line,Q,ie),r)}function fa(e,t,n,r){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;r&&st(t);var l=e.display,a=l.lineDiv.getBoundingClientRect();if(o>a.bottom||!xt(e,n))return ln(t);o-=a.top-l.viewOffset;for(var s=0;s<e.display.gutterSpecs.length;++s){var f=l.gutters.childNodes[s];if(f&&f.getBoundingClientRect().right>=i){var w=Vt(e.doc,o),M=e.display.gutterSpecs[s];return Ve(e,n,e,w,M.className,t),ln(t)}}}function uo(e,t){return fa(e,t,"gutterClick",!0)}function da(e,t){rr(e.display,t)||Zc(e,t)||et(e,t,"contextmenu")||V||e.display.input.onContextMenu(t)}function Zc(e,t){return xt(e,"gutterContextMenu")?fa(e,t,"gutterContextMenu",!1):!1}function pa(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),pn(e)}var en={toString:function(){return"CodeMirror.Init"}},ha={},hi={};function Yc(e){var t=e.optionHandlers;function n(r,i,o,l){e.defaults[r]=i,o&&(t[r]=l?function(a,s,f){f!=en&&o(a,s,f)}:o)}e.defineOption=n,e.Init=en,n("value","",function(r,i){return r.setValue(i)},!0),n("mode",null,function(r,i){r.doc.modeOption=i,Vi(r)},!0),n("indentUnit",2,Vi,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(r){kn(r),pn(r),St(r)},!0),n("lineSeparator",null,function(r,i){if(r.doc.lineSep=i,!!i){var o=[],l=r.doc.first;r.doc.iter(function(s){for(var f=0;;){var w=s.text.indexOf(i,f);if(w==-1)break;f=w+i.length,o.push(u(l,w))}l++});for(var a=o.length-1;a>=0;a--)Yr(r.doc,i,o[a],u(o[a].line,o[a].ch+i.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(r,i,o){r.state.specialChars=new RegExp(i.source+(i.test(" ")?"":"| "),"g"),o!=en&&r.refresh()}),n("specialCharPlaceholder",Tu,function(r){return r.refresh()},!0),n("electricChars",!0),n("inputStyle",_?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(r,i){return r.getInputField().spellcheck=i},!0),n("autocorrect",!1,function(r,i){return r.getInputField().autocorrect=i},!0),n("autocapitalize",!1,function(r,i){return r.getInputField().autocapitalize=i},!0),n("rtlMoveVisually",!re),n("wholeLineUpdateBefore",!0),n("theme","default",function(r){pa(r),xn(r)},!0),n("keyMap","default",function(r,i,o){var l=di(i),a=o!=en&&di(o);a&&a.detach&&a.detach(r,l),l.attach&&l.attach(r,a||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Jc,!0),n("gutters",[],function(r,i){r.display.gutterSpecs=Qi(i,r.options.lineNumbers),xn(r)},!0),n("fixedGutter",!0,function(r,i){r.display.gutters.style.left=i?Ri(r.display)+"px":"0",r.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(r){return $r(r)},!0),n("scrollbarStyle","native",function(r){gl(r),$r(r),r.display.scrollbars.setScrollTop(r.doc.scrollTop),r.display.scrollbars.setScrollLeft(r.doc.scrollLeft)},!0),n("lineNumbers",!1,function(r,i){r.display.gutterSpecs=Qi(r.options.gutters,i),xn(r)},!0),n("firstLineNumber",1,xn,!0),n("lineNumberFormatter",function(r){return r},xn,!0),n("showCursorWhenSelecting",!1,hn,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(r,i){i=="nocursor"&&(Ur(r),r.display.input.blur()),r.display.input.readOnlyChanged(i)}),n("screenReaderLabel",null,function(r,i){i=i===""?null:i,r.display.input.screenReaderLabelChanged(i)}),n("disableInput",!1,function(r,i){i||r.display.input.reset()},!0),n("dragDrop",!0,Qc),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,hn,!0),n("singleCursorHeightPerLine",!0,hn,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,kn,!0),n("addModeClass",!1,kn,!0),n("pollInterval",100),n("undoDepth",200,function(r,i){return r.doc.history.undoDepth=i}),n("historyEventDelay",1250),n("viewportMargin",10,function(r){return r.refresh()},!0),n("maxHighlightLength",1e4,kn,!0),n("moveInputWithCursor",!0,function(r,i){i||r.display.input.resetPosition()}),n("tabindex",null,function(r,i){return r.display.input.getField().tabIndex=i||""}),n("autofocus",null),n("direction","ltr",function(r,i){return r.doc.setDirection(i)},!0),n("phrases",null)}function Qc(e,t,n){var r=n&&n!=en;if(!t!=!r){var i=e.display.dragFunctions,o=t?Ce:Fe;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 Jc(e){e.options.lineWrapping?(Z(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(Y(e.display.wrapper,"CodeMirror-wrap"),Mi(e)),Wi(e),St(e),pn(e),setTimeout(function(){return $r(e)},100)}function Qe(e,t){var n=this;if(!(this instanceof Qe))return new Qe(e,t);this.options=t=t?ae(t):{},ae(ha,t,!1);var r=t.value;typeof r=="string"?r=new Tt(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Qe.inputStyles[t.inputStyle](this),o=this.display=new fc(e,r,i,t);o.wrapper.CodeMirror=this,pa(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),gl(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 se,keySeq:null,specialChars:null},t.autofocus&&!_&&o.input.focus(),m&&B<11&&setTimeout(function(){return n.display.input.reset(!0)},20),Vc(this),zc(),zr(this),this.curOp.forceUpdate=!0,Cl(this,r),t.autofocus&&!_||this.hasFocus()?setTimeout(function(){n.hasFocus()&&!n.state.focused&&Ui(n)},20):Ur(this);for(var l in hi)hi.hasOwnProperty(l)&&hi[l](this,t[l],en);bl(this),t.finishInit&&t.finishInit(this);for(var a=0;a<co.length;++a)co[a](this);Ar(this),C&&t.lineWrapping&&getComputedStyle(o.lineDiv).textRendering=="optimizelegibility"&&(o.lineDiv.style.textRendering="auto")}Qe.defaults=ha,Qe.optionHandlers=hi;function Vc(e){var t=e.display;Ce(t.scroller,"mousedown",ct(e,ua)),m&&B<11?Ce(t.scroller,"dblclick",ct(e,function(s){if(!et(e,s)){var f=Cr(e,s);if(!(!f||uo(e,s)||rr(e.display,s))){st(s);var w=e.findWordAt(f);ai(e.doc,w.anchor,w.head)}}})):Ce(t.scroller,"dblclick",function(s){return et(e,s)||st(s)}),Ce(t.scroller,"contextmenu",function(s){return da(e,s)}),Ce(t.input.getField(),"contextmenu",function(s){t.scroller.contains(s.target)||da(e,s)});var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout(function(){return t.activeTouch=null},1e3),r=t.activeTouch,r.end=+new Date)}function o(s){if(s.touches.length!=1)return!1;var f=s.touches[0];return f.radiusX<=1&&f.radiusY<=1}function l(s,f){if(f.left==null)return!0;var w=f.left-s.left,M=f.top-s.top;return w*w+M*M>20*20}Ce(t.scroller,"touchstart",function(s){if(!et(e,s)&&!o(s)&&!uo(e,s)){t.input.ensurePolled(),clearTimeout(n);var f=+new Date;t.activeTouch={start:f,moved:!1,prev:f-r.end<=300?r:null},s.touches.length==1&&(t.activeTouch.left=s.touches[0].pageX,t.activeTouch.top=s.touches[0].pageY)}}),Ce(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),Ce(t.scroller,"touchend",function(s){var f=t.activeTouch;if(f&&!rr(t,s)&&f.left!=null&&!f.moved&&new Date-f.start<300){var w=e.coordsChar(t.activeTouch,"page"),M;!f.prev||l(f,f.prev)?M=new He(w,w):!f.prev.prev||l(f,f.prev.prev)?M=e.findWordAt(w):M=new He(u(w.line,0),we(e.doc,u(w.line+1,0))),e.setSelection(M.anchor,M.head),e.focus(),st(s)}i()}),Ce(t.scroller,"touchcancel",i),Ce(t.scroller,"scroll",function(){t.scroller.clientHeight&&(gn(e,t.scroller.scrollTop),Er(e,t.scroller.scrollLeft,!0),Ve(e,"scroll",e))}),Ce(t.scroller,"mousewheel",function(s){return _l(e,s)}),Ce(t.scroller,"DOMMouseScroll",function(s){return _l(e,s)}),Ce(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(s){et(e,s)||Bt(s)},over:function(s){et(e,s)||(Mc(e,s),Bt(s))},start:function(s){return Ec(e,s)},drop:ct(e,Lc),leave:function(s){et(e,s)||Yl(e)}};var a=t.input.getField();Ce(a,"keyup",function(s){return aa.call(e,s)}),Ce(a,"keydown",ct(e,la)),Ce(a,"keypress",ct(e,sa)),Ce(a,"focus",function(s){return Ui(e,s)}),Ce(a,"blur",function(s){return Ur(e,s)})}var co=[];Qe.defineInitHook=function(e){return co.push(e)};function In(e,t,n,r){var i=e.doc,o;n==null&&(n="add"),n=="smart"&&(i.mode.indent?o=sn(e,t).state:n="prev");var l=e.options.tabSize,a=ke(i,t),s=ge(a.text,null,l);a.stateAfter&&(a.stateAfter=null);var f=a.text.match(/^\s*/)[0],w;if(!r&&!/\S/.test(a.text))w=0,n="not";else if(n=="smart"&&(w=i.mode.indent(o,a.text.slice(f.length),a.text),w==ze||w>150)){if(!r)return;n="prev"}n=="prev"?t>i.first?w=ge(ke(i,t-1).text,null,l):w=0:n=="add"?w=s+e.options.indentUnit:n=="subtract"?w=s-e.options.indentUnit:typeof n=="number"&&(w=s+n),w=Math.max(0,w);var M="",H=0;if(e.options.indentWithTabs)for(var W=Math.floor(w/l);W;--W)H+=l,M+=" ";if(H<w&&(M+=mt(w-H)),M!=f)return Yr(i,M,u(t,0),u(t,f.length),"+input"),a.stateAfter=null,!0;for(var Q=0;Q<i.sel.ranges.length;Q++){var ie=i.sel.ranges[Q];if(ie.head.line==t&&ie.head.ch<f.length){var ce=u(t,f.length);no(i,Q,new He(ce,ce));break}}}var Wt=null;function mi(e){Wt=e}function fo(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var l=+new Date-200,a=i=="paste"||e.state.pasteIncoming>l,s=Pr(t),f=null;if(a&&r.ranges.length>1)if(Wt&&Wt.text.join(`
`)==t){if(r.ranges.length%Wt.text.length==0){f=[];for(var w=0;w<Wt.text.length;w++)f.push(o.splitLines(Wt.text[w]))}}else s.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(f=je(s,function(pe){return[pe]}));for(var M=e.curOp.updateInput,H=r.ranges.length-1;H>=0;H--){var W=r.ranges[H],Q=W.from(),ie=W.to();W.empty()&&(n&&n>0?Q=u(Q.line,Q.ch-n):e.state.overwrite&&!a?ie=u(ie.line,Math.min(ke(o,ie.line).text.length,ie.ch+xe(s).length)):a&&Wt&&Wt.lineWise&&Wt.text.join(`
`)==s.join(`
`)&&(Q=ie=u(Q.line,0)));var ce={from:Q,to:ie,text:f?f[H%f.length]:s,origin:i||(a?"paste":e.state.cutIncoming>l?"cut":"+input")};Zr(e.doc,ce),ut(e,"inputRead",e,ce)}t&&!a&&ga(e,t),Kr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=M),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function ma(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&t.hasFocus()&&Mt(t,function(){return fo(t,n,0,null,"paste")}),!0}function ga(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),l=!1;if(o.electricChars){for(var a=0;a<o.electricChars.length;a++)if(t.indexOf(o.electricChars.charAt(a))>-1){l=In(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(ke(e.doc,i.head.line).text.slice(0,i.head.ch))&&(l=In(e,i.head.line,"smart"));l&&ut(e,"electricInput",e,i.head.line)}}}function va(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:u(i,0),head:u(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function ya(e,t,n,r){e.setAttribute("autocorrect",n?"":"off"),e.setAttribute("autocapitalize",r?"":"off"),e.setAttribute("spellcheck",!!t)}function ba(){var e=c("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=c("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return C?e.style.width="1000px":e.setAttribute("wrap","off"),y&&(e.style.border="1px solid black"),ya(e),t}function ef(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(r,i){var o=this.options,l=o[r];o[r]==i&&r!="mode"||(o[r]=i,t.hasOwnProperty(r)&&ct(this,t[r])(this,i,l),Ve(this,"optionChange",this,r))},getOption:function(r){return this.options[r]},getDoc:function(){return this.doc},addKeyMap:function(r,i){this.state.keyMaps[i?"push":"unshift"](di(r))},removeKeyMap:function(r){for(var i=this.state.keyMaps,o=0;o<i.length;++o)if(i[o]==r||i[o].name==r)return i.splice(o,1),!0},addOverlay:_t(function(r,i){var o=r.token?r:e.getMode(this.options,r);if(o.startState)throw new Error("Overlays may not be stateful.");rt(this.state.overlays,{mode:o,modeSpec:r,opaque:i&&i.opaque,priority:i&&i.priority||0},function(l){return l.priority}),this.state.modeGen++,St(this)}),removeOverlay:_t(function(r){for(var i=this.state.overlays,o=0;o<i.length;++o){var l=i[o].modeSpec;if(l==r||typeof r=="string"&&l.name==r){i.splice(o,1),this.state.modeGen++,St(this);return}}}),indentLine:_t(function(r,i,o){typeof i!="string"&&typeof i!="number"&&(i==null?i=this.options.smartIndent?"smart":"prev":i=i?"add":"subtract"),wr(this.doc,r)&&In(this,r,i,o)}),indentSelection:_t(function(r){for(var i=this.doc.sel.ranges,o=-1,l=0;l<i.length;l++){var a=i[l];if(a.empty())a.head.line>o&&(In(this,a.head.line,r,!0),o=a.head.line,l==this.doc.sel.primIndex&&Kr(this));else{var s=a.from(),f=a.to(),w=Math.max(o,s.line);o=Math.min(this.lastLine(),f.line-(f.ch?0:1))+1;for(var M=w;M<o;++M)In(this,M,r);var H=this.doc.sel.ranges;s.ch==0&&i.length==H.length&&H[l].from().ch>0&&no(this.doc,l,new He(s,H[l].to()),ne)}}}),getTokenAt:function(r,i){return Eo(this,r,i)},getLineTokens:function(r,i){return Eo(this,u(r),i,!0)},getTokenTypeAt:function(r){r=we(this.doc,r);var i=To(this,ke(this.doc,r.line)),o=0,l=(i.length-1)/2,a=r.ch,s;if(a==0)s=i[2];else for(;;){var f=o+l>>1;if((f?i[f*2-1]:0)>=a)l=f;else if(i[f*2+1]<a)o=f+1;else{s=i[f*2+2];break}}var w=s?s.indexOf("overlay "):-1;return w<0?s:w==0?null:s.slice(0,w-1)},getModeAt:function(r){var i=this.doc.mode;return i.innerMode?e.innerMode(i,this.getTokenAt(r).state).mode:i},getHelper:function(r,i){return this.getHelpers(r,i)[0]},getHelpers:function(r,i){var o=[];if(!n.hasOwnProperty(i))return o;var l=n[i],a=this.getModeAt(r);if(typeof a[i]=="string")l[a[i]]&&o.push(l[a[i]]);else if(a[i])for(var s=0;s<a[i].length;s++){var f=l[a[i][s]];f&&o.push(f)}else a.helperType&&l[a.helperType]?o.push(l[a.helperType]):l[a.name]&&o.push(l[a.name]);for(var w=0;w<l._global.length;w++){var M=l._global[w];M.pred(a,this)&&de(o,M.val)==-1&&o.push(M.val)}return o},getStateAfter:function(r,i){var o=this.doc;return r=Ke(o,r??o.first+o.size-1),sn(this,r+1,i).state},cursorCoords:function(r,i){var o,l=this.doc.sel.primary();return r==null?o=l.head:typeof r=="object"?o=we(this.doc,r):o=r?l.from():l.to(),qt(this,o,i||"page")},charCoords:function(r,i){return Qn(this,we(this.doc,r),i||"page")},coordsChar:function(r,i){return r=nl(this,r,i||"page"),Pi(this,r.left,r.top)},lineAtHeight:function(r,i){return r=nl(this,{top:r,left:0},i||"page").top,Vt(this.doc,r+this.display.viewOffset)},heightAtLine:function(r,i,o){var l=!1,a;if(typeof r=="number"){var s=this.doc.first+this.doc.size-1;r<this.doc.first?r=this.doc.first:r>s&&(r=s,l=!0),a=ke(this.doc,r)}else a=r;return Yn(this,a,{top:0,left:0},i||"page",o||l).top+(l?this.doc.height-tr(a):0)},defaultTextHeight:function(){return jr(this.display)},defaultCharWidth:function(){return Hr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(r,i,o,l,a){var s=this.display;r=qt(this,we(this.doc,r));var f=r.bottom,w=r.left;if(i.style.position="absolute",i.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(i),s.sizer.appendChild(i),l=="over")f=r.top;else if(l=="above"||l=="near"){var M=Math.max(s.wrapper.clientHeight,this.doc.height),H=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);(l=="above"||r.bottom+i.offsetHeight>M)&&r.top>i.offsetHeight?f=r.top-i.offsetHeight:r.bottom+i.offsetHeight<=M&&(f=r.bottom),w+i.offsetWidth>H&&(w=H-i.offsetWidth)}i.style.top=f+"px",i.style.left=i.style.right="",a=="right"?(w=s.sizer.clientWidth-i.offsetWidth,i.style.right="0px"):(a=="left"?w=0:a=="middle"&&(w=(s.sizer.clientWidth-i.offsetWidth)/2),i.style.left=w+"px"),o&&Qu(this,{left:w,top:f,right:w+i.offsetWidth,bottom:f+i.offsetHeight})},triggerOnKeyDown:_t(la),triggerOnKeyPress:_t(sa),triggerOnKeyUp:aa,triggerOnMouseDown:_t(ua),execCommand:function(r){if(zn.hasOwnProperty(r))return zn[r].call(null,this)},triggerElectric:_t(function(r){ga(this,r)}),findPosH:function(r,i,o,l){var a=1;i<0&&(a=-1,i=-i);for(var s=we(this.doc,r),f=0;f<i&&(s=po(this.doc,s,a,o,l),!s.hitSide);++f);return s},moveH:_t(function(r,i){var o=this;this.extendSelectionsBy(function(l){return o.display.shift||o.doc.extend||l.empty()?po(o.doc,l.head,r,i,o.options.rtlMoveVisually):r<0?l.from():l.to()},ye)}),deleteH:_t(function(r,i){var o=this.doc.sel,l=this.doc;o.somethingSelected()?l.replaceSelection("",null,"+delete"):Vr(this,function(a){var s=po(l,a.head,r,i,!1);return r<0?{from:s,to:a.head}:{from:a.head,to:s}})}),findPosV:function(r,i,o,l){var a=1,s=l;i<0&&(a=-1,i=-i);for(var f=we(this.doc,r),w=0;w<i;++w){var M=qt(this,f,"div");if(s==null?s=M.left:M.left=s,f=xa(this,M,a,o),f.hitSide)break}return f},moveV:_t(function(r,i){var o=this,l=this.doc,a=[],s=!this.display.shift&&!l.extend&&l.sel.somethingSelected();if(l.extendSelectionsBy(function(w){if(s)return r<0?w.from():w.to();var M=qt(o,w.head,"div");w.goalColumn!=null&&(M.left=w.goalColumn),a.push(M.left);var H=xa(o,M,r,i);return i=="page"&&w==l.sel.primary()&&$i(o,Qn(o,H,"div").top-M.top),H},ye),a.length)for(var f=0;f<l.sel.ranges.length;f++)l.sel.ranges[f].goalColumn=a[f]}),findWordAt:function(r){var i=this.doc,o=ke(i,r.line).text,l=r.ch,a=r.ch;if(o){var s=this.getHelper(r,"wordChars");(r.sticky=="before"||a==o.length)&&l?--l:++a;for(var f=o.charAt(l),w=le(f,s)?function(M){return le(M,s)}:/\s/.test(f)?function(M){return/\s/.test(M)}:function(M){return!/\s/.test(M)&&!le(M)};l>0&&w(o.charAt(l-1));)--l;for(;a<o.length&&w(o.charAt(a));)++a}return new He(u(r.line,l),u(r.line,a))},toggleOverwrite:function(r){r!=null&&r==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Z(this.display.cursorDiv,"CodeMirror-overwrite"):Y(this.display.cursorDiv,"CodeMirror-overwrite"),Ve(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==k()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:_t(function(r,i){mn(this,r,i)}),getScrollInfo:function(){var r=this.display.scroller;return{left:r.scrollLeft,top:r.scrollTop,height:r.scrollHeight-$t(this)-this.display.barHeight,width:r.scrollWidth-$t(this)-this.display.barWidth,clientHeight:Di(this),clientWidth:Sr(this)}},scrollIntoView:_t(function(r,i){r==null?(r={from:this.doc.sel.primary().head,to:null},i==null&&(i=this.options.cursorScrollMargin)):typeof r=="number"?r={from:u(r,0),to:null}:r.from==null&&(r={from:r,to:null}),r.to||(r.to=r.from),r.margin=i||0,r.from.line!=null?Ju(this,r):dl(this,r.from,r.to,r.margin)}),setSize:_t(function(r,i){var o=this,l=function(s){return typeof s=="number"||/^\d+$/.test(String(s))?s+"px":s};r!=null&&(this.display.wrapper.style.width=l(r)),i!=null&&(this.display.wrapper.style.height=l(i)),this.options.lineWrapping&&el(this);var a=this.display.viewFrom;this.doc.iter(a,this.display.viewTo,function(s){if(s.widgets){for(var f=0;f<s.widgets.length;f++)if(s.widgets[f].noHScroll){fr(o,a,"widget");break}}++a}),this.curOp.forceUpdate=!0,Ve(this,"refresh",this)}),operation:function(r){return Mt(this,r)},startOperation:function(){return zr(this)},endOperation:function(){return Ar(this)},refresh:_t(function(){var r=this.display.cachedTextHeight;St(this),this.curOp.forceUpdate=!0,pn(this),mn(this,this.doc.scrollLeft,this.doc.scrollTop),Zi(this.display),(r==null||Math.abs(r-jr(this.display))>.5||this.options.lineWrapping)&&Wi(this),Ve(this,"refresh",this)}),swapDoc:_t(function(r){var i=this.doc;return i.cm=null,this.state.selectingText&&this.state.selectingText(),Cl(this,r),pn(this),this.display.input.reset(),mn(this,r.scrollLeft,r.scrollTop),this.curOp.forceScroll=!0,ut(this,"swapDoc",this,i),i}),phrase:function(r){var i=this.options.phrases;return i&&Object.prototype.hasOwnProperty.call(i,r)?i[r]:r},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}},sr(e),e.registerHelper=function(r,i,o){n.hasOwnProperty(r)||(n[r]=e[r]={_global:[]}),n[r][i]=o},e.registerGlobalHelper=function(r,i,o,l){e.registerHelper(r,i,l),n[r]._global.push({pred:o,val:l})}}function po(e,t,n,r,i){var o=t,l=n,a=ke(e,t.line),s=i&&e.direction=="rtl"?-n:n;function f(){var me=t.line+s;return me<e.first||me>=e.first+e.size?!1:(t=new u(me,t.ch,t.sticky),a=ke(e,me))}function w(me){var he;if(r=="codepoint"){var ve=a.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(ve))he=null;else{var Te=n>0?ve>=55296&&ve<56320:ve>=56320&&ve<57343;he=new u(t.line,Math.max(0,Math.min(a.text.length,t.ch+n*(Te?2:1))),-n)}}else i?he=Oc(e.cm,a,t,n):he=oo(a,t,n);if(he==null)if(!me&&f())t=lo(i,e.cm,a,t.line,s);else return!1;else t=he;return!0}if(r=="char"||r=="codepoint")w();else if(r=="column")w(!0);else if(r=="word"||r=="group")for(var M=null,H=r=="group",W=e.cm&&e.cm.getHelper(t,"wordChars"),Q=!0;!(n<0&&!w(!Q));Q=!1){var ie=a.text.charAt(t.ch)||`
`,ce=le(ie,W)?"w":H&&ie==`
`?"n":!H||/\s/.test(ie)?null:"p";if(H&&!Q&&!ce&&(ce="s"),M&&M!=ce){n<0&&(n=1,w(),t.sticky="after");break}if(ce&&(M=ce),n>0&&!w(!Q))break}var pe=ui(e,t,o,l,!0);return ee(o,pe)&&(pe.hitSide=!0),pe}function xa(e,t,n,r){var i=e.doc,o=t.left,l;if(r=="page"){var a=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),s=Math.max(a-.5*jr(e.display),3);l=(n>0?t.bottom:t.top)+n*s}else r=="line"&&(l=n>0?t.bottom+3:t.top-3);for(var f;f=Pi(e,o,l),!!f.outside;){if(n<0?l<=0:l>=i.height){f.hitSide=!0;break}l+=n*5}return f}var $e=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new se,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};$e.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;i.contentEditable=!0,ya(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize);function o(a){for(var s=a.target;s;s=s.parentNode){if(s==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(s.className))break}return!1}Ce(i,"paste",function(a){!o(a)||et(r,a)||ma(a,r)||B<=11&&setTimeout(ct(r,function(){return t.updateFromDOM()}),20)}),Ce(i,"compositionstart",function(a){t.composing={data:a.data,done:!1}}),Ce(i,"compositionupdate",function(a){t.composing||(t.composing={data:a.data,done:!1})}),Ce(i,"compositionend",function(a){t.composing&&(a.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),Ce(i,"touchstart",function(){return n.forceCompositionEnd()}),Ce(i,"input",function(){t.composing||t.readFromDOMSoon()});function l(a){if(!(!o(a)||et(r,a))){if(r.somethingSelected())mi({lineWise:!1,text:r.getSelections()}),a.type=="cut"&&r.replaceSelection("",null,"cut");else if(r.options.lineWiseCopyCut){var s=va(r);mi({lineWise:!0,text:s.text}),a.type=="cut"&&r.operation(function(){r.setSelections(s.ranges,0,ne),r.replaceSelection("",null,"cut")})}else return;if(a.clipboardData){a.clipboardData.clearData();var f=Wt.text.join(`
`);if(a.clipboardData.setData("Text",f),a.clipboardData.getData("Text")==f){a.preventDefault();return}}var w=ba(),M=w.firstChild;r.display.lineSpace.insertBefore(w,r.display.lineSpace.firstChild),M.value=Wt.text.join(`
`);var H=k();v(M),setTimeout(function(){r.display.lineSpace.removeChild(w),H.focus(),H==i&&n.showPrimarySelection()},50)}}Ce(i,"copy",l),Ce(i,"cut",l)},$e.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},$e.prototype.prepareSelection=function(){var e=ul(this.cm,!1);return e.focus=k()==this.div,e},$e.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},$e.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},$e.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,n=t.doc.sel.primary(),r=n.from(),i=n.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||i.line<t.display.viewFrom){e.removeAllRanges();return}var o=gi(t,e.anchorNode,e.anchorOffset),l=gi(t,e.focusNode,e.focusOffset);if(!(o&&!o.bad&&l&&!l.bad&&x(Ne(o,l),r)==0&&x(Me(o,l),i)==0)){var a=t.display.view,s=r.line>=t.display.viewFrom&&ka(t,r)||{node:a[0].measure.map[2],offset:0},f=i.line<t.display.viewTo&&ka(t,i);if(!f){var w=a[a.length-1].measure,M=w.maps?w.maps[w.maps.length-1]:w.map;f={node:M[M.length-1],offset:M[M.length-2]-M[M.length-3]}}if(!s||!f){e.removeAllRanges();return}var H=e.rangeCount&&e.getRangeAt(0),W;try{W=q(s.node,s.offset,f.offset,f.node)}catch{}W&&(!z&&t.state.focused?(e.collapse(s.node,s.offset),W.collapsed||(e.removeAllRanges(),e.addRange(W))):(e.removeAllRanges(),e.addRange(W)),H&&e.anchorNode==null?e.addRange(H):z&&this.startGracePeriod()),this.rememberSelection()}},$e.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)},$e.prototype.showMultipleSelections=function(e){D(this.cm.display.cursorDiv,e.cursors),D(this.cm.display.selectionDiv,e.selection)},$e.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},$e.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return L(this.div,t)},$e.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||k()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},$e.prototype.blur=function(){this.div.blur()},$e.prototype.getField=function(){return this.div},$e.prototype.supportsTouch=function(){return!0},$e.prototype.receivedFocus=function(){var e=this,t=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):Mt(this.cm,function(){return t.cm.curOp.selectionChanged=!0});function n(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,n))}this.polling.set(this.cm.options.pollInterval,n)},$e.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},$e.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),t=this.cm;if($&&E&&this.cm.display.gutterSpecs.length&&tf(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var n=gi(t,e.anchorNode,e.anchorOffset),r=gi(t,e.focusNode,e.focusOffset);n&&r&&Mt(t,function(){vt(t.doc,pr(n,r),ne),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)})}}},$e.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,n=e.doc.sel.primary(),r=n.from(),i=n.to();if(r.ch==0&&r.line>e.firstLine()&&(r=u(r.line-1,ke(e.doc,r.line-1).length)),i.ch==ke(e.doc,i.line).text.length&&i.line<e.lastLine()&&(i=u(i.line+1,0)),r.line<t.viewFrom||i.line>t.viewTo-1)return!1;var o,l,a;r.line==t.viewFrom||(o=Lr(e,r.line))==0?(l=Be(t.view[0].line),a=t.view[0].node):(l=Be(t.view[o].line),a=t.view[o-1].node.nextSibling);var s=Lr(e,i.line),f,w;if(s==t.view.length-1?(f=t.viewTo-1,w=t.lineDiv.lastChild):(f=Be(t.view[s+1].line)-1,w=t.view[s+1].node.previousSibling),!a)return!1;for(var M=e.doc.splitLines(rf(e,a,w,l,f)),H=Jt(e.doc,u(l,0),u(f,ke(e.doc,f).text.length));M.length>1&&H.length>1;)if(xe(M)==xe(H))M.pop(),H.pop(),f--;else if(M[0]==H[0])M.shift(),H.shift(),l++;else break;for(var W=0,Q=0,ie=M[0],ce=H[0],pe=Math.min(ie.length,ce.length);W<pe&&ie.charCodeAt(W)==ce.charCodeAt(W);)++W;for(var me=xe(M),he=xe(H),ve=Math.min(me.length-(M.length==1?W:0),he.length-(H.length==1?W:0));Q<ve&&me.charCodeAt(me.length-Q-1)==he.charCodeAt(he.length-Q-1);)++Q;if(M.length==1&&H.length==1&&l==r.line)for(;W&&W>r.ch&&me.charCodeAt(me.length-Q-1)==he.charCodeAt(he.length-Q-1);)W--,Q++;M[M.length-1]=me.slice(0,me.length-Q).replace(/^\u200b+/,""),M[0]=M[0].slice(W).replace(/\u200b+$/,"");var Te=u(l,W),Se=u(f,H.length?xe(H).length-Q:0);if(M.length>1||M[0]||x(Te,Se))return Yr(e.doc,M,Te,Se,"+input"),!0},$e.prototype.ensurePolled=function(){this.forceCompositionEnd()},$e.prototype.reset=function(){this.forceCompositionEnd()},$e.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},$e.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))},$e.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Mt(this.cm,function(){return St(e.cm)})},$e.prototype.setUneditable=function(e){e.contentEditable="false"},$e.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||ct(this.cm,fo)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},$e.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},$e.prototype.onContextMenu=function(){},$e.prototype.resetPosition=function(){},$e.prototype.needsContentAttribute=!0;function ka(e,t){var n=Fi(e,t.line);if(!n||n.hidden)return null;var r=ke(e.doc,t.line),i=Zo(n,r,t.line),o=bt(r,e.doc.direction),l="left";if(o){var a=gt(o,t.ch);l=a%2?"right":"left"}var s=Jo(i.map,t.ch,l);return s.offset=s.collapse=="right"?s.end:s.start,s}function tf(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function tn(e,t){return t&&(e.bad=!0),e}function rf(e,t,n,r,i){var o="",l=!1,a=e.doc.lineSeparator(),s=!1;function f(W){return function(Q){return Q.id==W}}function w(){l&&(o+=a,s&&(o+=a),l=s=!1)}function M(W){W&&(w(),o+=W)}function H(W){if(W.nodeType==1){var Q=W.getAttribute("cm-text");if(Q){M(Q);return}var ie=W.getAttribute("cm-marker"),ce;if(ie){var pe=e.findMarks(u(r,0),u(i+1,0),f(+ie));pe.length&&(ce=pe[0].find(0))&&M(Jt(e.doc,ce.from,ce.to).join(a));return}if(W.getAttribute("contenteditable")=="false")return;var me=/^(pre|div|p|li|table|br)$/i.test(W.nodeName);if(!/^br$/i.test(W.nodeName)&&W.textContent.length==0)return;me&&w();for(var he=0;he<W.childNodes.length;he++)H(W.childNodes[he]);/^(pre|p)$/i.test(W.nodeName)&&(s=!0),me&&(l=!0)}else W.nodeType==3&&M(W.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;H(t),t!=n;)t=t.nextSibling,s=!1;return o}function gi(e,t,n){var r;if(t==e.display.lineDiv){if(r=e.display.lineDiv.childNodes[n],!r)return tn(e.clipPos(u(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return nf(o,t,n)}}function nf(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!L(r,t))return tn(u(Be(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?xe(e.rest):e.line;return tn(u(Be(o),o.text.length),i)}var l=t.nodeType==3?t:null,a=t;for(!l&&t.childNodes.length==1&&t.firstChild.nodeType==3&&(l=t.firstChild,n&&(n=l.nodeValue.length));a.parentNode!=r;)a=a.parentNode;var s=e.measure,f=s.maps;function w(ce,pe,me){for(var he=-1;he<(f?f.length:0);he++)for(var ve=he<0?s.map:f[he],Te=0;Te<ve.length;Te+=3){var Se=ve[Te+2];if(Se==ce||Se==pe){var Ie=Be(he<0?e.line:e.rest[he]),Xe=ve[Te]+me;return(me<0||Se!=ce)&&(Xe=ve[Te+(me?1:0)]),u(Ie,Xe)}}}var M=w(l,a,n);if(M)return tn(M,i);for(var H=a.nextSibling,W=l?l.nodeValue.length-n:0;H;H=H.nextSibling){if(M=w(H,H.firstChild,0),M)return tn(u(M.line,M.ch-W),i);W+=H.textContent.length}for(var Q=a.previousSibling,ie=n;Q;Q=Q.previousSibling){if(M=w(Q,Q.firstChild,-1),M)return tn(u(M.line,M.ch+ie),i);ie+=Q.textContent.length}}var nt=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new se,this.hasSelection=!1,this.composing=null};nt.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),y&&(i.style.width="0px"),Ce(i,"input",function(){m&&B>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),Ce(i,"paste",function(l){et(r,l)||ma(l,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())});function o(l){if(!et(r,l)){if(r.somethingSelected())mi({lineWise:!1,text:r.getSelections()});else if(r.options.lineWiseCopyCut){var a=va(r);mi({lineWise:!0,text:a.text}),l.type=="cut"?r.setSelections(a.ranges,null,ne):(n.prevInput="",i.value=a.text.join(`
`),v(i))}else return;l.type=="cut"&&(r.state.cutIncoming=+new Date)}}Ce(i,"cut",o),Ce(i,"copy",o),Ce(e.scroller,"paste",function(l){if(!(rr(e,l)||et(r,l))){if(!i.dispatchEvent){r.state.pasteIncoming=+new Date,n.focus();return}var a=new Event("paste");a.clipboardData=l.clipboardData,i.dispatchEvent(a)}}),Ce(e.lineSpace,"selectstart",function(l){rr(e,l)||st(l)}),Ce(i,"compositionstart",function(){var l=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:l,range:r.markText(l,r.getCursor("to"),{className:"CodeMirror-composing"})}}),Ce(i,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},nt.prototype.createField=function(e){this.wrapper=ba(),this.textarea=this.wrapper.firstChild},nt.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},nt.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=ul(e);if(e.options.moveInputWithCursor){var i=qt(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),l=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+l.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+l.left-o.left))}return r},nt.prototype.showSelection=function(e){var t=this.cm,n=t.display;D(n.cursorDiv,e.cursors),D(n.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},nt.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing)){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&v(this.textarea),m&&B>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",m&&B>=9&&(this.hasSelection=null))}},nt.prototype.getField=function(){return this.textarea},nt.prototype.supportsTouch=function(){return!1},nt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!_||k()!=this.textarea))try{this.textarea.focus()}catch{}},nt.prototype.blur=function(){this.textarea.blur()},nt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},nt.prototype.receivedFocus=function(){this.slowPoll()},nt.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},nt.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function n(){var r=t.poll();!r&&!e?(e=!0,t.polling.set(60,n)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,n)},nt.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Rn(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(m&&B>=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&&!r&&(r="\u200B"),o==8666)return this.reset(),this.cm.execCommand("undo")}for(var l=0,a=Math.min(r.length,i.length);l<a&&r.charCodeAt(l)==i.charCodeAt(l);)++l;return Mt(t,function(){fo(t,i.slice(l),r.length-l,null,e.composing?"*compose":null),i.length>1e3||i.indexOf(`
`)>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},nt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},nt.prototype.onKeyPress=function(){m&&B>=9&&(this.hasSelection=null),this.fastPoll()},nt.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=Cr(n,e),l=r.scroller.scrollTop;if(!o||b)return;var a=n.options.resetSelectionOnContextMenu;a&&n.doc.sel.contains(o)==-1&&ct(n,vt)(n.doc,pr(o),ne);var s=i.style.cssText,f=t.wrapper.style.cssText,w=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",i.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(e.clientY-w.top-5)+"px; left: "+(e.clientX-w.left-5)+`px;
z-index: 1000; background: `+(m?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var M;C&&(M=window.scrollY),r.input.focus(),C&&window.scrollTo(null,M),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=W,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll);function H(){if(i.selectionStart!=null){var ie=n.somethingSelected(),ce="\u200B"+(ie?i.value:"");i.value="\u21DA",i.value=ce,t.prevInput=ie?"":"\u200B",i.selectionStart=1,i.selectionEnd=ce.length,r.selForContextMenu=n.doc.sel}}function W(){if(t.contextMenuPending==W&&(t.contextMenuPending=!1,t.wrapper.style.cssText=f,i.style.cssText=s,m&&B<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=l),i.selectionStart!=null)){(!m||m&&B<9)&&H();var ie=0,ce=function(){r.selForContextMenu==n.doc.sel&&i.selectionStart==0&&i.selectionEnd>0&&t.prevInput=="\u200B"?ct(n,Rl)(n):ie++<10?r.detectingSelectAll=setTimeout(ce,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(ce,200)}}if(m&&B>=9&&H(),V){Bt(e);var Q=function(){Fe(window,"mouseup",Q),setTimeout(W,20)};Ce(window,"mouseup",Q)}else setTimeout(W,50)},nt.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},nt.prototype.setUneditable=function(){},nt.prototype.needsContentAttribute=!1;function of(e,t){if(t=t?ae(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 n=k();t.autofocus=n==e||e.getAttribute("autofocus")!=null&&n==document.body}function r(){e.value=a.getValue()}var i;if(e.form&&(Ce(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var l=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=l}}catch{}}t.finishInit=function(s){s.save=r,s.getTextArea=function(){return e},s.toTextArea=function(){s.toTextArea=isNaN,r(),e.parentNode.removeChild(s.getWrapperElement()),e.style.display="",e.form&&(Fe(e.form,"submit",r),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=i))}},e.style.display="none";var a=Qe(function(s){return e.parentNode.insertBefore(s,e.nextSibling)},t);return a}function lf(e){e.off=Fe,e.on=Ce,e.wheelEventPixels=dc,e.Doc=Tt,e.splitLines=Pr,e.countColumn=ge,e.findColumn=De,e.isWordChar=K,e.Pass=ze,e.signal=Ve,e.Line=Rr,e.changeEnd=hr,e.scrollbarModel=ml,e.Pos=u,e.cmpPos=x,e.modes=Ut,e.mimeModes=Zt,e.resolveMode=xr,e.getMode=ur,e.modeExtensions=kt,e.extendMode=kr,e.copyState=Qt,e.startState=Wn,e.innerMode=Nr,e.commands=zn,e.keyMap=ir,e.keyName=ta,e.isModifierKey=Vl,e.lookupKey=Jr,e.normalizeKeyMap=Ic,e.StringStream=Ze,e.SharedTextMarker=Ln,e.TextMarker=gr,e.LineWidget=Cn,e.e_preventDefault=st,e.e_stopPropagation=Ft,e.e_stop=Bt,e.addClass=Z,e.contains=L,e.rmClass=Y,e.keyNames=vr}Yc(Qe),ef(Qe);var af="iter insert remove copy getEditor constructor".split(" ");for(var vi in Tt.prototype)Tt.prototype.hasOwnProperty(vi)&&de(af,vi)<0&&(Qe.prototype[vi]=function(e){return function(){return e.apply(this.doc,arguments)}}(Tt.prototype[vi]));return sr(Tt),Qe.inputStyles={textarea:nt,contenteditable:$e},Qe.defineMode=function(e){!Qe.defaults.mode&&e!="null"&&(Qe.defaults.mode=e),Yt.apply(this,arguments)},Qe.defineMIME=_i,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){Tt.prototype[e]=t},Qe.fromTextArea=of,lf(Qe),Qe.version="5.65.5",Qe})});var wa=Re((On,yo)=>{(function(d,R){typeof On=="object"&&typeof yo=="object"?yo.exports=R():typeof define=="function"&&define.amd?define([],R):typeof On=="object"?On.ClipboardJS=R():d.ClipboardJS=R()})(On,function(){return R={686:function(F,C,P){"use strict";P.d(C,{default:function(){return oe}});var C=P(279),m=P.n(C),C=P(370),B=P.n(C),C=P(817),A=P.n(C);function E(te){try{return document.execCommand(te)}catch{return}}var h=function(te){return te=A()(te),E("cut"),te};function b(N,V){var X,Y,N=(X=N,Y=document.documentElement.getAttribute("dir")==="rtl",(N=document.createElement("textarea")).style.fontSize="12pt",N.style.border="0",N.style.padding="0",N.style.margin="0",N.style.position="absolute",N.style[Y?"right":"left"]="-9999px",Y=window.pageYOffset||document.documentElement.scrollTop,N.style.top="".concat(Y,"px"),N.setAttribute("readonly",""),N.value=X,N);return V.container.appendChild(N),V=A()(N),E("copy"),N.remove(),V}var g=function(te){var V=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{container:document.body},X="";return typeof te=="string"?X=b(te,V):te instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(te?.type)?X=b(te.value,V):(X=A()(te),E("copy")),X};function S(te){return(S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(V){return typeof V}:function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V})(te)}var T=function(){var Y=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},X=Y.action,te=X===void 0?"copy":X,V=Y.container,X=Y.target,Y=Y.text;if(te!=="copy"&&te!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(X!==void 0){if(!X||S(X)!=="object"||X.nodeType!==1)throw new Error('Invalid "target" value, use a valid Element');if(te==="copy"&&X.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(te==="cut"&&(X.hasAttribute("readonly")||X.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}return Y?g(Y,{container:V}):X?te==="cut"?h(X):g(X,{container:V}):void 0};function y(te){return(y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(V){return typeof V}:function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V})(te)}function $(te,V){for(var X=0;X<V.length;X++){var Y=V[X];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(te,Y.key,Y)}}function _(te,V){return(_=Object.setPrototypeOf||function(X,Y){return X.__proto__=Y,X})(te,V)}function j(te){var V=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var X,Y=U(te);return X=V?(X=U(this).constructor,Reflect.construct(Y,arguments,X)):Y.apply(this,arguments),Y=this,!(X=X)||y(X)!=="object"&&typeof X!="function"?function(N){if(N!==void 0)return N;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(Y):X}}function U(te){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(V){return V.__proto__||Object.getPrototypeOf(V)})(te)}function re(te,V){if(te="data-clipboard-".concat(te),V.hasAttribute(te))return V.getAttribute(te)}var oe=function(){(function(D,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(c&&c.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),c&&_(D,c)})(N,m());var te,V,X,Y=j(N);function N(D,c){var O;return function(q){if(!(q instanceof N))throw new TypeError("Cannot call a class as a function")}(this),(O=Y.call(this)).resolveOptions(c),O.listenClick(D),O}return te=N,X=[{key:"copy",value:function(D){var c=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{container:document.body};return g(D,c)}},{key:"cut",value:function(D){return h(D)}},{key:"isSupported",value:function(){var D=0<arguments.length&&arguments[0]!==void 0?arguments[0]:["copy","cut"],D=typeof D=="string"?[D]:D,c=!!document.queryCommandSupported;return D.forEach(function(O){c=c&&!!document.queryCommandSupported(O)}),c}}],(V=[{key:"resolveOptions",value:function(){var D=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof D.action=="function"?D.action:this.defaultAction,this.target=typeof D.target=="function"?D.target:this.defaultTarget,this.text=typeof D.text=="function"?D.text:this.defaultText,this.container=y(D.container)==="object"?D.container:document.body}},{key:"listenClick",value:function(D){var c=this;this.listener=B()(D,"click",function(O){return c.onClick(O)})}},{key:"onClick",value:function(q){var c=q.delegateTarget||q.currentTarget,O=this.action(c)||"copy",q=T({action:O,container:this.container,target:this.target(c),text:this.text(c)});this.emit(q?"success":"error",{action:O,text:q,trigger:c,clearSelection:function(){c&&c.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(D){return re("action",D)}},{key:"defaultTarget",value:function(D){if(D=re("target",D),D)return document.querySelector(D)}},{key:"defaultText",value:function(D){return re("text",D)}},{key:"destroy",value:function(){this.listener.destroy()}}])&&$(te.prototype,V),X&&$(te,X),N}()},828:function(F){var I;typeof Element>"u"||Element.prototype.matches||((I=Element.prototype).matches=I.matchesSelector||I.mozMatchesSelector||I.msMatchesSelector||I.oMatchesSelector||I.webkitMatchesSelector),F.exports=function(P,m){for(;P&&P.nodeType!==9;){if(typeof P.matches=="function"&&P.matches(m))return P;P=P.parentNode}}},438:function(F,I,P){var m=P(828);function B(C,A,E,h,b){var g=function(S,T,y,$){return function(_){_.delegateTarget=m(_.target,T),_.delegateTarget&&$.call(S,_)}}.apply(this,arguments);return C.addEventListener(E,g,b),{destroy:function(){C.removeEventListener(E,g,b)}}}F.exports=function(C,A,E,h,b){return typeof C.addEventListener=="function"?B.apply(null,arguments):typeof E=="function"?B.bind(null,document).apply(null,arguments):(typeof C=="string"&&(C=document.querySelectorAll(C)),Array.prototype.map.call(C,function(g){return B(g,A,E,h,b)}))}},879:function(F,I){I.node=function(P){return P!==void 0&&P instanceof HTMLElement&&P.nodeType===1},I.nodeList=function(P){var m=Object.prototype.toString.call(P);return P!==void 0&&(m==="[object NodeList]"||m==="[object HTMLCollection]")&&"length"in P&&(P.length===0||I.node(P[0]))},I.string=function(P){return typeof P=="string"||P instanceof String},I.fn=function(P){return Object.prototype.toString.call(P)==="[object Function]"}},370:function(F,I,P){var m=P(879),B=P(438);F.exports=function(C,A,E){if(!C&&!A&&!E)throw new Error("Missing required arguments");if(!m.string(A))throw new TypeError("Second argument must be a String");if(!m.fn(E))throw new TypeError("Third argument must be a Function");if(m.node(C))return T=A,y=E,(S=C).addEventListener(T,y),{destroy:function(){S.removeEventListener(T,y)}};if(m.nodeList(C))return h=C,b=A,g=E,Array.prototype.forEach.call(h,function($){$.addEventListener(b,g)}),{destroy:function(){Array.prototype.forEach.call(h,function($){$.removeEventListener(b,g)})}};if(m.string(C))return C=C,A=A,E=E,B(document.body,C,A,E);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var h,b,g,S,T,y}},817:function(F){F.exports=function(I){var P,m=I.nodeName==="SELECT"?(I.focus(),I.value):I.nodeName==="INPUT"||I.nodeName==="TEXTAREA"?((P=I.hasAttribute("readonly"))||I.setAttribute("readonly",""),I.select(),I.setSelectionRange(0,I.value.length),P||I.removeAttribute("readonly"),I.value):(I.hasAttribute("contenteditable")&&I.focus(),m=window.getSelection(),(P=document.createRange()).selectNodeContents(I),m.removeAllRanges(),m.addRange(P),m.toString());return m}},279:function(F){function I(){}I.prototype={on:function(P,m,B){var C=this.e||(this.e={});return(C[P]||(C[P]=[])).push({fn:m,ctx:B}),this},once:function(P,m,B){var C=this;function A(){C.off(P,A),m.apply(B,arguments)}return A._=m,this.on(P,A,B)},emit:function(P){for(var m=[].slice.call(arguments,1),B=((this.e||(this.e={}))[P]||[]).slice(),C=0,A=B.length;C<A;C++)B[C].fn.apply(B[C].ctx,m);return this},off:function(P,m){var B=this.e||(this.e={}),C=B[P],A=[];if(C&&m)for(var E=0,h=C.length;E<h;E++)C[E].fn!==m&&C[E].fn._!==m&&A.push(C[E]);return A.length?B[P]=A:delete B[P],this}},F.exports=I,F.exports.TinyEmitter=I}},z={},d.n=function(F){var I=F&&F.__esModule?function(){return F.default}:function(){return F};return d.d(I,{a:I}),I},d.d=function(F,I){for(var P in I)d.o(I,P)&&!d.o(F,P)&&Object.defineProperty(F,P,{enumerable:!0,get:I[P]})},d.o=function(F,I){return Object.prototype.hasOwnProperty.call(F,I)},d(686).default;function d(F){if(z[F])return z[F].exports;var I=z[F]={exports:{}};return R[F](I,I.exports,d),I.exports}var R,z})});var bo=Re((Sa,Ta)=>{(function(d){typeof Sa=="object"&&typeof Ta=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("css",function(V,X){var Y=X.inline;X.propertyKeywords||(X=d.resolveMode("text/css"));var N=V.indentUnit,D=X.tokenHooks,c=X.documentTypes||{},O=X.mediaTypes||{},q=X.mediaFeatures||{},L=X.mediaValueKeywords||{},k=X.propertyKeywords||{},Z=X.nonStandardPropertyKeywords||{},G=X.fontProperties||{},v=X.counterDescriptors||{},p=X.colorKeywords||{},ae=X.valueKeywords||{},ge=X.allowNested,se=X.lineComment,de=X.supportsAtComponent===!0,Le=V.highlightNonStandardPropertyKeywords!==!1,ze,ne;function fe(K,le){return ze=le,K}function ye(K,le){var J=K.next();if(D[J]){var Oe=D[J](K,le);if(Oe!==!1)return Oe}if(J=="@")return K.eatWhile(/[\w\\\-]/),fe("def",K.current());if(J=="="||(J=="~"||J=="|")&&K.eat("="))return fe(null,"compare");if(J=='"'||J=="'")return le.tokenize=De(J),le.tokenize(K,le);if(J=="#")return K.eatWhile(/[\w\\\-]/),fe("atom","hash");if(J=="!")return K.match(/^\s*\w*/),fe("keyword","important");if(/\d/.test(J)||J=="."&&K.eat(/\d/))return K.eatWhile(/[\w.%]/),fe("number","unit");if(J==="-"){if(/[\d.]/.test(K.peek()))return K.eatWhile(/[\w.%]/),fe("number","unit");if(K.match(/^-[\w\\\-]*/))return K.eatWhile(/[\w\\\-]/),K.match(/^\s*:/,!1)?fe("variable-2","variable-definition"):fe("variable-2","variable");if(K.match(/^\w+-/))return fe("meta","meta")}else return/[,+>*\/]/.test(J)?fe(null,"select-op"):J=="."&&K.match(/^-?[_a-z][_a-z0-9-]*/i)?fe("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(J)?fe(null,J):K.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(K.current())&&(le.tokenize=Ye),fe("variable callee","variable")):/[\w\\\-]/.test(J)?(K.eatWhile(/[\w\\\-]/),fe("property","word")):fe(null,null)}function De(K){return function(le,J){for(var Oe=!1,be;(be=le.next())!=null;){if(be==K&&!Oe){K==")"&&le.backUp(1);break}Oe=!Oe&&be=="\\"}return(be==K||!Oe&&K!=")")&&(J.tokenize=null),fe("string","string")}}function Ye(K,le){return K.next(),K.match(/^\s*[\"\')]/,!1)?le.tokenize=null:le.tokenize=De(")"),fe(null,"(")}function mt(K,le,J){this.type=K,this.indent=le,this.prev=J}function xe(K,le,J,Oe){return K.context=new mt(J,le.indentation()+(Oe===!1?0:N),K.context),J}function je(K){return K.context.prev&&(K.context=K.context.prev),K.context.type}function rt(K,le,J){return qe[J.context.type](K,le,J)}function lt(K,le,J,Oe){for(var be=Oe||1;be>0;be--)J.context=J.context.prev;return rt(K,le,J)}function Ge(K){var le=K.current().toLowerCase();ae.hasOwnProperty(le)?ne="atom":p.hasOwnProperty(le)?ne="keyword":ne="variable"}var qe={};return qe.top=function(K,le,J){if(K=="{")return xe(J,le,"block");if(K=="}"&&J.context.prev)return je(J);if(de&&/@component/i.test(K))return xe(J,le,"atComponentBlock");if(/^@(-moz-)?document$/i.test(K))return xe(J,le,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(K))return xe(J,le,"atBlock");if(/^@(font-face|counter-style)/i.test(K))return J.stateArg=K,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(K))return"keyframes";if(K&&K.charAt(0)=="@")return xe(J,le,"at");if(K=="hash")ne="builtin";else if(K=="word")ne="tag";else{if(K=="variable-definition")return"maybeprop";if(K=="interpolation")return xe(J,le,"interpolation");if(K==":")return"pseudo";if(ge&&K=="(")return xe(J,le,"parens")}return J.context.type},qe.block=function(K,le,J){if(K=="word"){var Oe=le.current().toLowerCase();return k.hasOwnProperty(Oe)?(ne="property","maybeprop"):Z.hasOwnProperty(Oe)?(ne=Le?"string-2":"property","maybeprop"):ge?(ne=le.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(ne+=" error","maybeprop")}else return K=="meta"?"block":!ge&&(K=="hash"||K=="qualifier")?(ne="error","block"):qe.top(K,le,J)},qe.maybeprop=function(K,le,J){return K==":"?xe(J,le,"prop"):rt(K,le,J)},qe.prop=function(K,le,J){if(K==";")return je(J);if(K=="{"&&ge)return xe(J,le,"propBlock");if(K=="}"||K=="{")return lt(K,le,J);if(K=="(")return xe(J,le,"parens");if(K=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(le.current()))ne+=" error";else if(K=="word")Ge(le);else if(K=="interpolation")return xe(J,le,"interpolation");return"prop"},qe.propBlock=function(K,le,J){return K=="}"?je(J):K=="word"?(ne="property","maybeprop"):J.context.type},qe.parens=function(K,le,J){return K=="{"||K=="}"?lt(K,le,J):K==")"?je(J):K=="("?xe(J,le,"parens"):K=="interpolation"?xe(J,le,"interpolation"):(K=="word"&&Ge(le),"parens")},qe.pseudo=function(K,le,J){return K=="meta"?"pseudo":K=="word"?(ne="variable-3",J.context.type):rt(K,le,J)},qe.documentTypes=function(K,le,J){return K=="word"&&c.hasOwnProperty(le.current())?(ne="tag",J.context.type):qe.atBlock(K,le,J)},qe.atBlock=function(K,le,J){if(K=="(")return xe(J,le,"atBlock_parens");if(K=="}"||K==";")return lt(K,le,J);if(K=="{")return je(J)&&xe(J,le,ge?"block":"top");if(K=="interpolation")return xe(J,le,"interpolation");if(K=="word"){var Oe=le.current().toLowerCase();Oe=="only"||Oe=="not"||Oe=="and"||Oe=="or"?ne="keyword":O.hasOwnProperty(Oe)?ne="attribute":q.hasOwnProperty(Oe)?ne="property":L.hasOwnProperty(Oe)?ne="keyword":k.hasOwnProperty(Oe)?ne="property":Z.hasOwnProperty(Oe)?ne=Le?"string-2":"property":ae.hasOwnProperty(Oe)?ne="atom":p.hasOwnProperty(Oe)?ne="keyword":ne="error"}return J.context.type},qe.atComponentBlock=function(K,le,J){return K=="}"?lt(K,le,J):K=="{"?je(J)&&xe(J,le,ge?"block":"top",!1):(K=="word"&&(ne="error"),J.context.type)},qe.atBlock_parens=function(K,le,J){return K==")"?je(J):K=="{"||K=="}"?lt(K,le,J,2):qe.atBlock(K,le,J)},qe.restricted_atBlock_before=function(K,le,J){return K=="{"?xe(J,le,"restricted_atBlock"):K=="word"&&J.stateArg=="@counter-style"?(ne="variable","restricted_atBlock_before"):rt(K,le,J)},qe.restricted_atBlock=function(K,le,J){return K=="}"?(J.stateArg=null,je(J)):K=="word"?(J.stateArg=="@font-face"&&!G.hasOwnProperty(le.current().toLowerCase())||J.stateArg=="@counter-style"&&!v.hasOwnProperty(le.current().toLowerCase())?ne="error":ne="property","maybeprop"):"restricted_atBlock"},qe.keyframes=function(K,le,J){return K=="word"?(ne="variable","keyframes"):K=="{"?xe(J,le,"top"):rt(K,le,J)},qe.at=function(K,le,J){return K==";"?je(J):K=="{"||K=="}"?lt(K,le,J):(K=="word"?ne="tag":K=="hash"&&(ne="builtin"),"at")},qe.interpolation=function(K,le,J){return K=="}"?je(J):K=="{"||K==";"?lt(K,le,J):(K=="word"?ne="variable":K!="variable"&&K!="("&&K!=")"&&(ne="error"),"interpolation")},{startState:function(K){return{tokenize:null,state:Y?"block":"top",stateArg:null,context:new mt(Y?"block":"top",K||0,null)}},token:function(K,le){if(!le.tokenize&&K.eatSpace())return null;var J=(le.tokenize||ye)(K,le);return J&&typeof J=="object"&&(ze=J[1],J=J[0]),ne=J,ze!="comment"&&(le.state=qe[le.state](ze,K,le)),ne},indent:function(K,le){var J=K.context,Oe=le&&le.charAt(0),be=J.indent;return J.type=="prop"&&(Oe=="}"||Oe==")")&&(J=J.prev),J.prev&&(Oe=="}"&&(J.type=="block"||J.type=="top"||J.type=="interpolation"||J.type=="restricted_atBlock")?(J=J.prev,be=J.indent):(Oe==")"&&(J.type=="parens"||J.type=="atBlock_parens")||Oe=="{"&&(J.type=="at"||J.type=="atBlock"))&&(be=Math.max(0,J.indent-N))),be},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:se,fold:"brace"}});function R(V){for(var X={},Y=0;Y<V.length;++Y)X[V[Y].toLowerCase()]=!0;return X}var z=["domain","regexp","url","url-prefix"],F=R(z),I=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],P=R(I),m=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],B=R(m),C=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],A=R(C),E=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],h=R(E),b=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],g=R(b),S=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],T=R(S),y=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],$=R(y),_=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],j=R(_),U=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],re=R(U),oe=z.concat(I).concat(m).concat(C).concat(E).concat(b).concat(_).concat(U);d.registerHelper("hintWords","css",oe);function te(V,X){for(var Y=!1,N;(N=V.next())!=null;){if(Y&&N=="/"){X.tokenize=null;break}Y=N=="*"}return["comment","comment"]}d.defineMIME("text/css",{documentTypes:F,mediaTypes:P,mediaFeatures:B,mediaValueKeywords:A,propertyKeywords:h,nonStandardPropertyKeywords:g,fontProperties:T,counterDescriptors:$,colorKeywords:j,valueKeywords:re,tokenHooks:{"/":function(V,X){return V.eat("*")?(X.tokenize=te,te(V,X)):!1}},name:"css"}),d.defineMIME("text/x-scss",{mediaTypes:P,mediaFeatures:B,mediaValueKeywords:A,propertyKeywords:h,nonStandardPropertyKeywords:g,colorKeywords:j,valueKeywords:re,fontProperties:T,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(V,X){return V.eat("/")?(V.skipToEnd(),["comment","comment"]):V.eat("*")?(X.tokenize=te,te(V,X)):["operator","operator"]},":":function(V){return V.match(/^\s*\{/,!1)?[null,null]:!1},$:function(V){return V.match(/^[\w-]+/),V.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(V){return V.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),d.defineMIME("text/x-less",{mediaTypes:P,mediaFeatures:B,mediaValueKeywords:A,propertyKeywords:h,nonStandardPropertyKeywords:g,colorKeywords:j,valueKeywords:re,fontProperties:T,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(V,X){return V.eat("/")?(V.skipToEnd(),["comment","comment"]):V.eat("*")?(X.tokenize=te,te(V,X)):["operator","operator"]},"@":function(V){return V.eat("{")?[null,"interpolation"]:V.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(V.eatWhile(/[\w\\\-]/),V.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),d.defineMIME("text/x-gss",{documentTypes:F,mediaTypes:P,mediaFeatures:B,propertyKeywords:h,nonStandardPropertyKeywords:g,fontProperties:T,counterDescriptors:$,colorKeywords:j,valueKeywords:re,supportsAtComponent:!0,tokenHooks:{"/":function(V,X){return V.eat("*")?(X.tokenize=te,te(V,X)):!1}},name:"css",helperType:"gss"})})});var xo=Re((Ca,La)=>{(function(d){typeof Ca=="object"&&typeof La=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";function R(L,k,Z,G,v,p){this.indented=L,this.column=k,this.type=Z,this.info=G,this.align=v,this.prev=p}function z(L,k,Z,G){var v=L.indented;return L.context&&L.context.type=="statement"&&Z!="statement"&&(v=L.context.indented),L.context=new R(v,k,Z,G,null,L.context)}function F(L){var k=L.context.type;return(k==")"||k=="]"||k=="}")&&(L.indented=L.context.indented),L.context=L.context.prev}function I(L,k,Z){if(k.prevToken=="variable"||k.prevToken=="type"||/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(L.string.slice(0,Z))||k.typeAtEndOfLine&&L.column()==L.indentation())return!0}function P(L){for(;;){if(!L||L.type=="top")return!0;if(L.type=="}"&&L.prev.info!="namespace")return!1;L=L.prev}}d.defineMode("clike",function(L,k){var Z=L.indentUnit,G=k.statementIndentUnit||Z,v=k.dontAlignCalls,p=k.keywords||{},ae=k.types||{},ge=k.builtin||{},se=k.blockKeywords||{},de=k.defKeywords||{},Le=k.atoms||{},ze=k.hooks||{},ne=k.multiLineStrings,fe=k.indentStatements!==!1,ye=k.indentSwitch!==!1,De=k.namespaceSeparator,Ye=k.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,mt=k.numberStart||/[\d\.]/,xe=k.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,je=k.isOperatorChar||/[+\-*&%=<>!?|\/]/,rt=k.isIdentifierChar||/[\w\$_\xa1-\uffff]/,lt=k.isReservedIdentifier||!1,Ge,qe;function K(be,Ee){var _e=be.next();if(ze[_e]){var Pe=ze[_e](be,Ee);if(Pe!==!1)return Pe}if(_e=='"'||_e=="'")return Ee.tokenize=le(_e),Ee.tokenize(be,Ee);if(mt.test(_e)){if(be.backUp(1),be.match(xe))return"number";be.next()}if(Ye.test(_e))return Ge=_e,null;if(_e=="/"){if(be.eat("*"))return Ee.tokenize=J,J(be,Ee);if(be.eat("/"))return be.skipToEnd(),"comment"}if(je.test(_e)){for(;!be.match(/^\/[\/*]/,!1)&&be.eat(je););return"operator"}if(be.eatWhile(rt),De)for(;be.match(De);)be.eatWhile(rt);var Ae=be.current();return B(p,Ae)?(B(se,Ae)&&(Ge="newstatement"),B(de,Ae)&&(qe=!0),"keyword"):B(ae,Ae)?"type":B(ge,Ae)||lt&&lt(Ae)?(B(se,Ae)&&(Ge="newstatement"),"builtin"):B(Le,Ae)?"atom":"variable"}function le(be){return function(Ee,_e){for(var Pe=!1,Ae,gt=!1;(Ae=Ee.next())!=null;){if(Ae==be&&!Pe){gt=!0;break}Pe=!Pe&&Ae=="\\"}return(gt||!(Pe||ne))&&(_e.tokenize=null),"string"}}function J(be,Ee){for(var _e=!1,Pe;Pe=be.next();){if(Pe=="/"&&_e){Ee.tokenize=null;break}_e=Pe=="*"}return"comment"}function Oe(be,Ee){k.typeFirstDefinitions&&be.eol()&&P(Ee.context)&&(Ee.typeAtEndOfLine=I(be,Ee,be.pos))}return{startState:function(be){return{tokenize:null,context:new R((be||0)-Z,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(be,Ee){var _e=Ee.context;if(be.sol()&&(_e.align==null&&(_e.align=!1),Ee.indented=be.indentation(),Ee.startOfLine=!0),be.eatSpace())return Oe(be,Ee),null;Ge=qe=null;var Pe=(Ee.tokenize||K)(be,Ee);if(Pe=="comment"||Pe=="meta")return Pe;if(_e.align==null&&(_e.align=!0),Ge==";"||Ge==":"||Ge==","&&be.match(/^\s*(?:\/\/.*)?$/,!1))for(;Ee.context.type=="statement";)F(Ee);else if(Ge=="{")z(Ee,be.column(),"}");else if(Ge=="[")z(Ee,be.column(),"]");else if(Ge=="(")z(Ee,be.column(),")");else if(Ge=="}"){for(;_e.type=="statement";)_e=F(Ee);for(_e.type=="}"&&(_e=F(Ee));_e.type=="statement";)_e=F(Ee)}else Ge==_e.type?F(Ee):fe&&((_e.type=="}"||_e.type=="top")&&Ge!=";"||_e.type=="statement"&&Ge=="newstatement")&&z(Ee,be.column(),"statement",be.current());if(Pe=="variable"&&(Ee.prevToken=="def"||k.typeFirstDefinitions&&I(be,Ee,be.start)&&P(Ee.context)&&be.match(/^\s*\(/,!1))&&(Pe="def"),ze.token){var Ae=ze.token(be,Ee,Pe);Ae!==void 0&&(Pe=Ae)}return Pe=="def"&&k.styleDefs===!1&&(Pe="variable"),Ee.startOfLine=!1,Ee.prevToken=qe?"def":Pe||Ge,Oe(be,Ee),Pe},indent:function(be,Ee){if(be.tokenize!=K&&be.tokenize!=null||be.typeAtEndOfLine)return d.Pass;var _e=be.context,Pe=Ee&&Ee.charAt(0),Ae=Pe==_e.type;if(_e.type=="statement"&&Pe=="}"&&(_e=_e.prev),k.dontIndentStatements)for(;_e.type=="statement"&&k.dontIndentStatements.test(_e.info);)_e=_e.prev;if(ze.indent){var gt=ze.indent(be,_e,Ee,Z);if(typeof gt=="number")return gt}var lr=_e.prev&&_e.prev.info=="switch";if(k.allmanIndentation&&/[{(]/.test(Pe)){for(;_e.type!="top"&&_e.type!="}";)_e=_e.prev;return _e.indented}return _e.type=="statement"?_e.indented+(Pe=="{"?0:G):_e.align&&(!v||_e.type!=")")?_e.column+(Ae?0:1):_e.type==")"&&!Ae?_e.indented+G:_e.indented+(Ae?0:Z)+(!Ae&&lr&&!/^(?:case|default)\b/.test(Ee)?Z:0)},electricInput:ye?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});function m(L){for(var k={},Z=L.split(" "),G=0;G<Z.length;++G)k[Z[G]]=!0;return k}function B(L,k){return typeof L=="function"?L(k):L.propertyIsEnumerable(k)}var C="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran",A="alignas alignof and and_eq audit axiom bitand bitor catch class compl concept constexpr const_cast decltype delete dynamic_cast explicit export final friend import module mutable namespace new noexcept not not_eq operator or or_eq override private protected public reinterpret_cast requires static_assert static_cast template this thread_local throw try typeid typename using virtual xor xor_eq",E="bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available",h="FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINEDNS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT",b=m("int long char short double float unsigned signed void bool"),g=m("SEL instancetype id Class Protocol BOOL");function S(L){return B(b,L)||/.+_t$/.test(L)}function T(L){return S(L)||B(g,L)}var y="case do else for if switch while struct enum union",$="struct enum union";function _(L,k){if(!k.startOfLine)return!1;for(var Z,G=null;Z=L.peek();){if(Z=="\\"&&L.match(/^.$/)){G=_;break}else if(Z=="/"&&L.match(/^\/[\/\*]/,!1))break;L.next()}return k.tokenize=G,"meta"}function j(L,k){return k.prevToken=="type"?"type":!1}function U(L){return!L||L.length<2||L[0]!="_"?!1:L[1]=="_"||L[1]!==L[1].toLowerCase()}function re(L){return L.eatWhile(/[\w\.']/),"number"}function oe(L,k){if(L.backUp(1),L.match(/^(?:R|u8R|uR|UR|LR)/)){var Z=L.match(/^"([^\s\\()]{0,16})\(/);return Z?(k.cpp11RawStringDelim=Z[1],k.tokenize=X,X(L,k)):!1}return L.match(/^(?:u8|u|U|L)/)?L.match(/^["']/,!1)?"string":!1:(L.next(),!1)}function te(L){var k=/(\w+)::~?(\w+)$/.exec(L);return k&&k[1]==k[2]}function V(L,k){for(var Z;(Z=L.next())!=null;)if(Z=='"'&&!L.eat('"')){k.tokenize=null;break}return"string"}function X(L,k){var Z=k.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&"),G=L.match(new RegExp(".*?\\)"+Z+'"'));return G?k.tokenize=null:L.skipToEnd(),"string"}function Y(L,k){typeof L=="string"&&(L=[L]);var Z=[];function G(p){if(p)for(var ae in p)p.hasOwnProperty(ae)&&Z.push(ae)}G(k.keywords),G(k.types),G(k.builtin),G(k.atoms),Z.length&&(k.helperType=L[0],d.registerHelper("hintWords",L[0],Z));for(var v=0;v<L.length;++v)d.defineMIME(L[v],k)}Y(["text/x-csrc","text/x-c","text/x-chdr"],{name:"clike",keywords:m(C),types:S,blockKeywords:m(y),defKeywords:m($),typeFirstDefinitions:!0,atoms:m("NULL true false"),isReservedIdentifier:U,hooks:{"#":_,"*":j},modeProps:{fold:["brace","include"]}}),Y(["text/x-c++src","text/x-c++hdr"],{name:"clike",keywords:m(C+" "+A),types:S,blockKeywords:m(y+" class try catch"),defKeywords:m($+" class namespace"),typeFirstDefinitions:!0,atoms:m("true false NULL nullptr"),dontIndentStatements:/^template$/,isIdentifierChar:/[\w\$_~\xa1-\uffff]/,isReservedIdentifier:U,hooks:{"#":_,"*":j,u:oe,U:oe,L:oe,R:oe,0:re,1:re,2:re,3:re,4:re,5:re,6:re,7:re,8:re,9:re,token:function(L,k,Z){if(Z=="variable"&&L.peek()=="("&&(k.prevToken==";"||k.prevToken==null||k.prevToken=="}")&&te(L.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),Y("text/x-java",{name:"clike",keywords:m("abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while @interface"),types:m("var byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),blockKeywords:m("catch class do else finally for if switch try while"),defKeywords:m("class interface enum @interface"),typeFirstDefinitions:!0,atoms:m("true false null"),number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,hooks:{"@":function(L){return L.match("interface",!1)?!1:(L.eatWhile(/[\w\$_]/),"meta")},'"':function(L,k){return L.match(/""$/)?(k.tokenize=N,k.tokenize(L,k)):!1}},modeProps:{fold:["brace","import"]}}),Y("text/x-csharp",{name:"clike",keywords:m("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in interface internal is lock namespace new operator out override params private protected public readonly ref return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),types:m("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),blockKeywords:m("catch class do else finally for foreach if struct switch try while"),defKeywords:m("class interface namespace struct var"),typeFirstDefinitions:!0,atoms:m("true false null"),hooks:{"@":function(L,k){return L.eat('"')?(k.tokenize=V,V(L,k)):(L.eatWhile(/[\w\$_]/),"meta")}}});function N(L,k){for(var Z=!1;!L.eol();){if(!Z&&L.match('"""')){k.tokenize=null;break}Z=L.next()=="\\"&&!Z}return"string"}function D(L){return function(k,Z){for(var G;G=k.next();)if(G=="*"&&k.eat("/"))if(L==1){Z.tokenize=null;break}else return Z.tokenize=D(L-1),Z.tokenize(k,Z);else if(G=="/"&&k.eat("*"))return Z.tokenize=D(L+1),Z.tokenize(k,Z);return"comment"}}Y("text/x-scala",{name:"clike",keywords:m("abstract case catch class def do else extends final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try type val var while with yield _ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble"),types:m("AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),multiLineStrings:!0,blockKeywords:m("catch class enum do else finally for forSome if match switch try while"),defKeywords:m("class enum def object package trait type val var"),atoms:m("true false null"),indentStatements:!1,indentSwitch:!1,isOperatorChar:/[+\-*&%=<>!?|\/#:@]/,hooks:{"@":function(L){return L.eatWhile(/[\w\$_]/),"meta"},'"':function(L,k){return L.match('""')?(k.tokenize=N,k.tokenize(L,k)):!1},"'":function(L){return L.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(L,k){var Z=k.context;return Z.type=="}"&&Z.align&&L.eat(">")?(k.context=new R(Z.indented,Z.column,Z.type,Z.info,null,Z.prev),"operator"):!1},"/":function(L,k){return L.eat("*")?(k.tokenize=D(1),k.tokenize(L,k)):!1}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}});function c(L){return function(k,Z){for(var G=!1,v,p=!1;!k.eol();){if(!L&&!G&&k.match('"')){p=!0;break}if(L&&k.match('"""')){p=!0;break}v=k.next(),!G&&v=="$"&&k.match("{")&&k.skipTo("}"),G=!G&&v=="\\"&&!L}return(p||!L)&&(Z.tokenize=null),"string"}}Y("text/x-kotlin",{name:"clike",keywords:m("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam value"),types:m("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:m("catch class do else finally for if where try while enum"),defKeywords:m("class val var object interface fun"),atoms:m("true false null this"),hooks:{"@":function(L){return L.eatWhile(/[\w\$_]/),"meta"},"*":function(L,k){return k.prevToken=="."?"variable":"operator"},'"':function(L,k){return k.tokenize=c(L.match('""')),k.tokenize(L,k)},"/":function(L,k){return L.eat("*")?(k.tokenize=D(1),k.tokenize(L,k)):!1},indent:function(L,k,Z,G){var v=Z&&Z.charAt(0);if((L.prevToken=="}"||L.prevToken==")")&&Z=="")return L.indented;if(L.prevToken=="operator"&&Z!="}"&&L.context.type!="}"||L.prevToken=="variable"&&v=="."||(L.prevToken=="}"||L.prevToken==")")&&v==".")return G*2+k.indented;if(k.align&&k.type=="}")return k.indented+(L.context.type==(Z||"").charAt(0)?0:G)}},modeProps:{closeBrackets:{triples:'"'}}}),Y(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:m("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:m("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:m("for while do if else struct"),builtin:m("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:m("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":_},modeProps:{fold:["brace","include"]}}),Y("text/x-nesc",{name:"clike",keywords:m(C+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:S,blockKeywords:m(y),atoms:m("null true false"),hooks:{"#":_},modeProps:{fold:["brace","include"]}}),Y("text/x-objectivec",{name:"clike",keywords:m(C+" "+E),types:T,builtin:m(h),blockKeywords:m(y+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:m($+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:m("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:U,hooks:{"#":_,"*":j},modeProps:{fold:["brace","include"]}}),Y("text/x-objectivec++",{name:"clike",keywords:m(C+" "+E+" "+A),types:T,builtin:m(h),blockKeywords:m(y+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:m($+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:m("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:U,hooks:{"#":_,"*":j,u:oe,U:oe,L:oe,R:oe,0:re,1:re,2:re,3:re,4:re,5:re,6:re,7:re,8:re,9:re,token:function(L,k,Z){if(Z=="variable"&&L.peek()=="("&&(k.prevToken==";"||k.prevToken==null||k.prevToken=="}")&&te(L.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),Y("text/x-squirrel",{name:"clike",keywords:m("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:S,blockKeywords:m("case catch class else for foreach if switch try while"),defKeywords:m("function local class"),typeFirstDefinitions:!0,atoms:m("true false null"),hooks:{"#":_},modeProps:{fold:["brace","include"]}});var O=null;function q(L){return function(k,Z){for(var G=!1,v,p=!1;!k.eol();){if(!G&&k.match('"')&&(L=="single"||k.match('""'))){p=!0;break}if(!G&&k.match("``")){O=q(L),p=!0;break}v=k.next(),G=L=="single"&&!G&&v=="\\"}return p&&(Z.tokenize=null),"string"}}Y("text/x-ceylon",{name:"clike",keywords:m("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(L){var k=L.charAt(0);return k===k.toUpperCase()&&k!==k.toLowerCase()},blockKeywords:m("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:m("class dynamic function interface module object package value"),builtin:m("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:m("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(L){return L.eatWhile(/[\w\$_]/),"meta"},'"':function(L,k){return k.tokenize=q(L.match('""')?"triple":"single"),k.tokenize(L,k)},"`":function(L,k){return!O||!L.match("`")?!1:(k.tokenize=O,O=null,k.tokenize(L,k))},"'":function(L){return L.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(L,k,Z){if((Z=="variable"||Z=="type")&&k.prevToken==".")return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})})});var za=Re((Ea,Ma)=>{(function(d){typeof Ea=="object"&&typeof Ma=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("diff",function(){var R={"+":"positive","-":"negative","@":"meta"};return{token:function(z){var F=z.string.search(/[\t ]+?$/);if(!z.sol()||F===0)return z.skipToEnd(),("error "+(R[z.string.charAt(0)]||"")).replace(/ $/,"");var I=R[z.peek()]||z.skipToEnd();return F===-1?z.skipToEnd():z.pos=F,I}}}),d.defineMIME("text/x-diff","diff")})});var Fa=Re((Aa,Da)=>{(function(d){typeof Aa=="object"&&typeof Da=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("fortran",function(){function R(A){for(var E={},h=0;h<A.length;++h)E[A[h]]=!0;return E}var z=R(["abstract","accept","allocatable","allocate","array","assign","asynchronous","backspace","bind","block","byte","call","case","class","close","common","contains","continue","cycle","data","deallocate","decode","deferred","dimension","do","elemental","else","encode","end","endif","entry","enumerator","equivalence","exit","external","extrinsic","final","forall","format","function","generic","go","goto","if","implicit","import","include","inquire","intent","interface","intrinsic","module","namelist","non_intrinsic","non_overridable","none","nopass","nullify","open","optional","options","parameter","pass","pause","pointer","print","private","program","protected","public","pure","read","recursive","result","return","rewind","save","select","sequence","stop","subroutine","target","then","to","type","use","value","volatile","where","while","write"]),F=R(["abort","abs","access","achar","acos","adjustl","adjustr","aimag","aint","alarm","all","allocated","alog","amax","amin","amod","and","anint","any","asin","associated","atan","besj","besjn","besy","besyn","bit_size","btest","cabs","ccos","ceiling","cexp","char","chdir","chmod","clog","cmplx","command_argument_count","complex","conjg","cos","cosh","count","cpu_time","cshift","csin","csqrt","ctime","c_funloc","c_loc","c_associated","c_null_ptr","c_null_funptr","c_f_pointer","c_null_char","c_alert","c_backspace","c_form_feed","c_new_line","c_carriage_return","c_horizontal_tab","c_vertical_tab","dabs","dacos","dasin","datan","date_and_time","dbesj","dbesj","dbesjn","dbesy","dbesy","dbesyn","dble","dcos","dcosh","ddim","derf","derfc","dexp","digits","dim","dint","dlog","dlog","dmax","dmin","dmod","dnint","dot_product","dprod","dsign","dsinh","dsin","dsqrt","dtanh","dtan","dtime","eoshift","epsilon","erf","erfc","etime","exit","exp","exponent","extends_type_of","fdate","fget","fgetc","float","floor","flush","fnum","fputc","fput","fraction","fseek","fstat","ftell","gerror","getarg","get_command","get_command_argument","get_environment_variable","getcwd","getenv","getgid","getlog","getpid","getuid","gmtime","hostnm","huge","iabs","iachar","iand","iargc","ibclr","ibits","ibset","ichar","idate","idim","idint","idnint","ieor","ierrno","ifix","imag","imagpart","index","int","ior","irand","isatty","ishft","ishftc","isign","iso_c_binding","is_iostat_end","is_iostat_eor","itime","kill","kind","lbound","len","len_trim","lge","lgt","link","lle","llt","lnblnk","loc","log","logical","long","lshift","lstat","ltime","matmul","max","maxexponent","maxloc","maxval","mclock","merge","move_alloc","min","minexponent","minloc","minval","mod","modulo","mvbits","nearest","new_line","nint","not","or","pack","perror","precision","present","product","radix","rand","random_number","random_seed","range","real","realpart","rename","repeat","reshape","rrspacing","rshift","same_type_as","scale","scan","second","selected_int_kind","selected_real_kind","set_exponent","shape","short","sign","signal","sinh","sin","sleep","sngl","spacing","spread","sqrt","srand","stat","sum","symlnk","system","system_clock","tan","tanh","time","tiny","transfer","transpose","trim","ttynam","ubound","umask","unlink","unpack","verify","xor","zabs","zcos","zexp","zlog","zsin","zsqrt"]),I=R(["c_bool","c_char","c_double","c_double_complex","c_float","c_float_complex","c_funptr","c_int","c_int16_t","c_int32_t","c_int64_t","c_int8_t","c_int_fast16_t","c_int_fast32_t","c_int_fast64_t","c_int_fast8_t","c_int_least16_t","c_int_least32_t","c_int_least64_t","c_int_least8_t","c_intmax_t","c_intptr_t","c_long","c_long_double","c_long_double_complex","c_long_long","c_ptr","c_short","c_signed_char","c_size_t","character","complex","double","integer","logical","real"]),P=/[+\-*&=<>\/\:]/,m=/^\.(and|or|eq|lt|le|gt|ge|ne|not|eqv|neqv)\./i;function B(A,E){if(A.match(m))return"operator";var h=A.next();if(h=="!")return A.skipToEnd(),"comment";if(h=='"'||h=="'")return E.tokenize=C(h),E.tokenize(A,E);if(/[\[\]\(\),]/.test(h))return null;if(/\d/.test(h))return A.eatWhile(/[\w\.]/),"number";if(P.test(h))return A.eatWhile(P),"operator";A.eatWhile(/[\w\$_]/);var b=A.current().toLowerCase();return z.hasOwnProperty(b)?"keyword":F.hasOwnProperty(b)||I.hasOwnProperty(b)?"builtin":"variable"}function C(A){return function(E,h){for(var b=!1,g,S=!1;(g=E.next())!=null;){if(g==A&&!b){S=!0;break}b=!b&&g=="\\"}return(S||!b)&&(h.tokenize=null),"string"}}return{startState:function(){return{tokenize:null}},token:function(A,E){if(A.eatSpace())return null;var h=(E.tokenize||B)(A,E);return h=="comment"||h=="meta",h}}}),d.defineMIME("text/x-fortran","fortran")})});var Pa=Re((Ia,Oa)=>{(function(d){typeof Ia=="object"&&typeof Oa=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("go",function(R){var z=R.indentUnit,F={break:!0,case:!0,chan:!0,const:!0,continue:!0,default:!0,defer:!0,else:!0,fallthrough:!0,for:!0,func:!0,go:!0,goto:!0,if:!0,import:!0,interface:!0,map:!0,package:!0,range:!0,return:!0,select:!0,struct:!0,switch:!0,type:!0,var:!0,bool:!0,byte:!0,complex64:!0,complex128:!0,float32:!0,float64:!0,int8:!0,int16:!0,int32:!0,int64:!0,string:!0,uint8:!0,uint16:!0,uint32:!0,uint64:!0,int:!0,uint:!0,uintptr:!0,error:!0,rune:!0},I={true:!0,false:!0,iota:!0,nil:!0,append:!0,cap:!0,close:!0,complex:!0,copy:!0,delete:!0,imag:!0,len:!0,make:!0,new:!0,panic:!0,print:!0,println:!0,real:!0,recover:!0},P=/[+\-*&^%:=<>!|\/]/,m;function B(g,S){var T=g.next();if(T=='"'||T=="'"||T=="`")return S.tokenize=C(T),S.tokenize(g,S);if(/[\d\.]/.test(T))return T=="."?g.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):T=="0"?g.match(/^[xX][0-9a-fA-F]+/)||g.match(/^0[0-7]+/):g.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(/[\[\]{}\(\),;\:\.]/.test(T))return m=T,null;if(T=="/"){if(g.eat("*"))return S.tokenize=A,A(g,S);if(g.eat("/"))return g.skipToEnd(),"comment"}if(P.test(T))return g.eatWhile(P),"operator";g.eatWhile(/[\w\$_\xa1-\uffff]/);var y=g.current();return F.propertyIsEnumerable(y)?((y=="case"||y=="default")&&(m="case"),"keyword"):I.propertyIsEnumerable(y)?"atom":"variable"}function C(g){return function(S,T){for(var y=!1,$,_=!1;($=S.next())!=null;){if($==g&&!y){_=!0;break}y=!y&&g!="`"&&$=="\\"}return(_||!(y||g=="`"))&&(T.tokenize=B),"string"}}function A(g,S){for(var T=!1,y;y=g.next();){if(y=="/"&&T){S.tokenize=B;break}T=y=="*"}return"comment"}function E(g,S,T,y,$){this.indented=g,this.column=S,this.type=T,this.align=y,this.prev=$}function h(g,S,T){return g.context=new E(g.indented,S,T,null,g.context)}function b(g){if(!!g.context.prev){var S=g.context.type;return(S==")"||S=="]"||S=="}")&&(g.indented=g.context.indented),g.context=g.context.prev}}return{startState:function(g){return{tokenize:null,context:new E((g||0)-z,0,"top",!1),indented:0,startOfLine:!0}},token:function(g,S){var T=S.context;if(g.sol()&&(T.align==null&&(T.align=!1),S.indented=g.indentation(),S.startOfLine=!0,T.type=="case"&&(T.type="}")),g.eatSpace())return null;m=null;var y=(S.tokenize||B)(g,S);return y=="comment"||(T.align==null&&(T.align=!0),m=="{"?h(S,g.column(),"}"):m=="["?h(S,g.column(),"]"):m=="("?h(S,g.column(),")"):m=="case"?T.type="case":(m=="}"&&T.type=="}"||m==T.type)&&b(S),S.startOfLine=!1),y},indent:function(g,S){if(g.tokenize!=B&&g.tokenize!=null)return d.Pass;var T=g.context,y=S&&S.charAt(0);if(T.type=="case"&&/^(?:case|default)\b/.test(S))return g.context.type="}",T.indented;var $=y==T.type;return T.align?T.column+($?0:1):T.indented+($?0:z)},electricChars:"{}):",closeBrackets:"()[]{}''\"\"``",fold:"brace",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}}),d.defineMIME("text/x-go","go")})});var Ra=Re((Na,qa)=>{(function(d){typeof Na=="object"&&typeof qa=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("haskell",function(R,z){function F(_,j,U){return j(U),U(_,j)}var I=/[a-z_]/,P=/[A-Z]/,m=/\d/,B=/[0-9A-Fa-f]/,C=/[0-7]/,A=/[a-z_A-Z0-9'\xa1-\uffff]/,E=/[-!#$%&*+.\/<=>?@\\^|~:]/,h=/[(),;[\]`{}]/,b=/[ \t\v\f]/;function g(_,j){if(_.eatWhile(b))return null;var U=_.next();if(h.test(U)){if(U=="{"&&_.eat("-")){var re="comment";return _.eat("#")&&(re="meta"),F(_,j,S(re,1))}return null}if(U=="'")return _.eat("\\"),_.next(),_.eat("'")?"string":"string error";if(U=='"')return F(_,j,T);if(P.test(U))return _.eatWhile(A),_.eat(".")?"qualifier":"variable-2";if(I.test(U))return _.eatWhile(A),"variable";if(m.test(U)){if(U=="0"){if(_.eat(/[xX]/))return _.eatWhile(B),"integer";if(_.eat(/[oO]/))return _.eatWhile(C),"number"}_.eatWhile(m);var re="number";return _.match(/^\.\d+/)&&(re="number"),_.eat(/[eE]/)&&(re="number",_.eat(/[-+]/),_.eatWhile(m)),re}if(U=="."&&_.eat("."))return"keyword";if(E.test(U)){if(U=="-"&&_.eat(/-/)&&(_.eatWhile(/-/),!_.eat(E)))return _.skipToEnd(),"comment";var re="variable";return U==":"&&(re="variable-2"),_.eatWhile(E),re}return"error"}function S(_,j){return j==0?g:function(U,re){for(var oe=j;!U.eol();){var te=U.next();if(te=="{"&&U.eat("-"))++oe;else if(te=="-"&&U.eat("}")&&(--oe,oe==0))return re(g),_}return re(S(_,oe)),_}}function T(_,j){for(;!_.eol();){var U=_.next();if(U=='"')return j(g),"string";if(U=="\\"){if(_.eol()||_.eat(b))return j(y),"string";_.eat("&")||_.next()}}return j(g),"string error"}function y(_,j){return _.eat("\\")?F(_,j,T):(_.next(),j(g),"error")}var $=function(){var _={};function j(oe){return function(){for(var te=0;te<arguments.length;te++)_[arguments[te]]=oe}}j("keyword")("case","class","data","default","deriving","do","else","foreign","if","import","in","infix","infixl","infixr","instance","let","module","newtype","of","then","type","where","_"),j("keyword")("..",":","::","=","\\","<-","->","@","~","=>"),j("builtin")("!!","$!","$","&&","+","++","-",".","/","/=","<","<*","<=","<$>","<*>","=<<","==",">",">=",">>",">>=","^","^^","||","*","*>","**"),j("builtin")("Applicative","Bool","Bounded","Char","Double","EQ","Either","Enum","Eq","False","FilePath","Float","Floating","Fractional","Functor","GT","IO","IOError","Int","Integer","Integral","Just","LT","Left","Maybe","Monad","Nothing","Num","Ord","Ordering","Rational","Read","ReadS","Real","RealFloat","RealFrac","Right","Show","ShowS","String","True"),j("builtin")("abs","acos","acosh","all","and","any","appendFile","asTypeOf","asin","asinh","atan","atan2","atanh","break","catch","ceiling","compare","concat","concatMap","const","cos","cosh","curry","cycle","decodeFloat","div","divMod","drop","dropWhile","either","elem","encodeFloat","enumFrom","enumFromThen","enumFromThenTo","enumFromTo","error","even","exp","exponent","fail","filter","flip","floatDigits","floatRadix","floatRange","floor","fmap","foldl","foldl1","foldr","foldr1","fromEnum","fromInteger","fromIntegral","fromRational","fst","gcd","getChar","getContents","getLine","head","id","init","interact","ioError","isDenormalized","isIEEE","isInfinite","isNaN","isNegativeZero","iterate","last","lcm","length","lex","lines","log","logBase","lookup","map","mapM","mapM_","max","maxBound","maximum","maybe","min","minBound","minimum","mod","negate","not","notElem","null","odd","or","otherwise","pi","pred","print","product","properFraction","pure","putChar","putStr","putStrLn","quot","quotRem","read","readFile","readIO","readList","readLn","readParen","reads","readsPrec","realToFrac","recip","rem","repeat","replicate","return","reverse","round","scaleFloat","scanl","scanl1","scanr","scanr1","seq","sequence","sequence_","show","showChar","showList","showParen","showString","shows","showsPrec","significand","signum","sin","sinh","snd","span","splitAt","sqrt","subtract","succ","sum","tail","take","takeWhile","tan","tanh","toEnum","toInteger","toRational","truncate","uncurry","undefined","unlines","until","unwords","unzip","unzip3","userError","words","writeFile","zip","zip3","zipWith","zipWith3");var U=z.overrideKeywords;if(U)for(var re in U)U.hasOwnProperty(re)&&(_[re]=U[re]);return _}();return{startState:function(){return{f:g}},copyState:function(_){return{f:_.f}},token:function(_,j){var U=j.f(_,function(oe){j.f=oe}),re=_.current();return $.hasOwnProperty(re)?$[re]:U},blockCommentStart:"{-",blockCommentEnd:"-}",lineComment:"--"}}),d.defineMIME("text/x-haskell","haskell")})});var yi=Re((Wa,Ba)=>{(function(d){typeof Wa=="object"&&typeof Ba=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";var R={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},z={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};d.defineMode("xml",function(F,I){var P=F.indentUnit,m={},B=I.htmlMode?R:z;for(var C in B)m[C]=B[C];for(var C in I)m[C]=I[C];var A,E;function h(c,O){function q(Z){return O.tokenize=Z,Z(c,O)}var L=c.next();if(L=="<")return c.eat("!")?c.eat("[")?c.match("CDATA[")?q(S("atom","]]>")):null:c.match("--")?q(S("comment","-->")):c.match("DOCTYPE",!0,!0)?(c.eatWhile(/[\w\._\-]/),q(T(1))):null:c.eat("?")?(c.eatWhile(/[\w\._\-]/),O.tokenize=S("meta","?>"),"meta"):(A=c.eat("/")?"closeTag":"openTag",O.tokenize=b,"tag bracket");if(L=="&"){var k;return c.eat("#")?c.eat("x")?k=c.eatWhile(/[a-fA-F\d]/)&&c.eat(";"):k=c.eatWhile(/[\d]/)&&c.eat(";"):k=c.eatWhile(/[\w\.\-:]/)&&c.eat(";"),k?"atom":"error"}else return c.eatWhile(/[^&<]/),null}h.isInText=!0;function b(c,O){var q=c.next();if(q==">"||q=="/"&&c.eat(">"))return O.tokenize=h,A=q==">"?"endTag":"selfcloseTag","tag bracket";if(q=="=")return A="equals",null;if(q=="<"){O.tokenize=h,O.state=U,O.tagName=O.tagStart=null;var L=O.tokenize(c,O);return L?L+" tag error":"tag error"}else return/[\'\"]/.test(q)?(O.tokenize=g(q),O.stringStartCol=c.column(),O.tokenize(c,O)):(c.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function g(c){var O=function(q,L){for(;!q.eol();)if(q.next()==c){L.tokenize=b;break}return"string"};return O.isInAttribute=!0,O}function S(c,O){return function(q,L){for(;!q.eol();){if(q.match(O)){L.tokenize=h;break}q.next()}return c}}function T(c){return function(O,q){for(var L;(L=O.next())!=null;){if(L=="<")return q.tokenize=T(c+1),q.tokenize(O,q);if(L==">")if(c==1){q.tokenize=h;break}else return q.tokenize=T(c-1),q.tokenize(O,q)}return"meta"}}function y(c){return c&&c.toLowerCase()}function $(c,O,q){this.prev=c.context,this.tagName=O||"",this.indent=c.indented,this.startOfLine=q,(m.doNotIndent.hasOwnProperty(O)||c.context&&c.context.noIndent)&&(this.noIndent=!0)}function _(c){c.context&&(c.context=c.context.prev)}function j(c,O){for(var q;;){if(!c.context||(q=c.context.tagName,!m.contextGrabbers.hasOwnProperty(y(q))||!m.contextGrabbers[y(q)].hasOwnProperty(y(O))))return;_(c)}}function U(c,O,q){return c=="openTag"?(q.tagStart=O.column(),re):c=="closeTag"?oe:U}function re(c,O,q){return c=="word"?(q.tagName=O.current(),E="tag",X):m.allowMissingTagName&&c=="endTag"?(E="tag bracket",X(c,O,q)):(E="error",re)}function oe(c,O,q){if(c=="word"){var L=O.current();return q.context&&q.context.tagName!=L&&m.implicitlyClosed.hasOwnProperty(y(q.context.tagName))&&_(q),q.context&&q.context.tagName==L||m.matchClosing===!1?(E="tag",te):(E="tag error",V)}else return m.allowMissingTagName&&c=="endTag"?(E="tag bracket",te(c,O,q)):(E="error",V)}function te(c,O,q){return c!="endTag"?(E="error",te):(_(q),U)}function V(c,O,q){return E="error",te(c,O,q)}function X(c,O,q){if(c=="word")return E="attribute",Y;if(c=="endTag"||c=="selfcloseTag"){var L=q.tagName,k=q.tagStart;return q.tagName=q.tagStart=null,c=="selfcloseTag"||m.autoSelfClosers.hasOwnProperty(y(L))?j(q,L):(j(q,L),q.context=new $(q,L,k==q.indented)),U}return E="error",X}function Y(c,O,q){return c=="equals"?N:(m.allowMissing||(E="error"),X(c,O,q))}function N(c,O,q){return c=="string"?D:c=="word"&&m.allowUnquoted?(E="string",X):(E="error",X(c,O,q))}function D(c,O,q){return c=="string"?D:X(c,O,q)}return{startState:function(c){var O={tokenize:h,state:U,indented:c||0,tagName:null,tagStart:null,context:null};return c!=null&&(O.baseIndent=c),O},token:function(c,O){if(!O.tagName&&c.sol()&&(O.indented=c.indentation()),c.eatSpace())return null;A=null;var q=O.tokenize(c,O);return(q||A)&&q!="comment"&&(E=null,O.state=O.state(A||q,c,O),E&&(q=E=="error"?q+" error":E)),q},indent:function(c,O,q){var L=c.context;if(c.tokenize.isInAttribute)return c.tagStart==c.indented?c.stringStartCol+1:c.indented+P;if(L&&L.noIndent)return d.Pass;if(c.tokenize!=b&&c.tokenize!=h)return q?q.match(/^(\s*)/)[0].length:0;if(c.tagName)return m.multilineTagIndentPastTag!==!1?c.tagStart+c.tagName.length+2:c.tagStart+P*(m.multilineTagIndentFactor||1);if(m.alignCDATA&&/<!\[CDATA\[/.test(O))return 0;var k=O&&/^<(\/)?([\w_:\.-]*)/.exec(O);if(k&&k[1])for(;L;)if(L.tagName==k[2]){L=L.prev;break}else if(m.implicitlyClosed.hasOwnProperty(y(L.tagName)))L=L.prev;else break;else if(k)for(;L;){var Z=m.contextGrabbers[y(L.tagName)];if(Z&&Z.hasOwnProperty(y(k[2])))L=L.prev;else break}for(;L&&L.prev&&!L.startOfLine;)L=L.prev;return L?L.indent+P:c.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:m.htmlMode?"html":"xml",helperType:m.htmlMode?"html":"xml",skipAttribute:function(c){c.state==N&&(c.state=X)},xmlCurrentTag:function(c){return c.tagName?{name:c.tagName,close:c.type=="closeTag"}:null},xmlCurrentContext:function(c){for(var O=[],q=c.context;q;q=q.prev)O.push(q.tagName);return O.reverse()}}}),d.defineMIME("text/xml","xml"),d.defineMIME("application/xml","xml"),d.mimeModes.hasOwnProperty("text/html")||d.defineMIME("text/html",{name:"xml",htmlMode:!0})})});var ko=Re((ja,Ha)=>{(function(d){typeof ja=="object"&&typeof Ha=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("javascript",function(R,z){var F=R.indentUnit,I=z.statementIndent,P=z.jsonld,m=z.json||P,B=z.trackScope!==!1,C=z.typescript,A=z.wordCharacters||/[\w$\xa1-\uffff]/,E=function(){function u(we){return{type:we,style:"keyword"}}var x=u("keyword a"),ee=u("keyword b"),ue=u("keyword c"),Me=u("keyword d"),Ne=u("operator"),Ke={type:"atom",style:"atom"};return{if:u("if"),while:x,with:x,else:ee,do:ee,try:ee,finally:ee,return:Me,break:Me,continue:Me,new:u("new"),delete:ue,void:ue,throw:ue,debugger:u("debugger"),var:u("var"),const:u("var"),let:u("var"),function:u("function"),catch:u("catch"),for:u("for"),switch:u("switch"),case:u("case"),default:u("default"),in:Ne,typeof:Ne,instanceof:Ne,true:Ke,false:Ke,null:Ke,undefined:Ke,NaN:Ke,Infinity:Ke,this:u("this"),class:u("class"),super:u("atom"),yield:ue,export:u("export"),import:u("import"),extends:ue,await:ue}}(),h=/[+\-*&%=<>!?|~^@]/,b=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function g(u){for(var x=!1,ee,ue=!1;(ee=u.next())!=null;){if(!x){if(ee=="/"&&!ue)return;ee=="["?ue=!0:ue&&ee=="]"&&(ue=!1)}x=!x&&ee=="\\"}}var S,T;function y(u,x,ee){return S=u,T=ee,x}function $(u,x){var ee=u.next();if(ee=='"'||ee=="'")return x.tokenize=_(ee),x.tokenize(u,x);if(ee=="."&&u.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return y("number","number");if(ee=="."&&u.match(".."))return y("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(ee))return y(ee);if(ee=="="&&u.eat(">"))return y("=>","operator");if(ee=="0"&&u.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return y("number","number");if(/\d/.test(ee))return u.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),y("number","number");if(ee=="/")return u.eat("*")?(x.tokenize=j,j(u,x)):u.eat("/")?(u.skipToEnd(),y("comment","comment")):qr(u,x,1)?(g(u),u.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),y("regexp","string-2")):(u.eat("="),y("operator","operator",u.current()));if(ee=="`")return x.tokenize=U,U(u,x);if(ee=="#"&&u.peek()=="!")return u.skipToEnd(),y("meta","meta");if(ee=="#"&&u.eatWhile(A))return y("variable","property");if(ee=="<"&&u.match("!--")||ee=="-"&&u.match("->")&&!/\S/.test(u.string.slice(0,u.start)))return u.skipToEnd(),y("comment","comment");if(h.test(ee))return(ee!=">"||!x.lexical||x.lexical.type!=">")&&(u.eat("=")?(ee=="!"||ee=="=")&&u.eat("="):/[<>*+\-|&?]/.test(ee)&&(u.eat(ee),ee==">"&&u.eat(ee))),ee=="?"&&u.eat(".")?y("."):y("operator","operator",u.current());if(A.test(ee)){u.eatWhile(A);var ue=u.current();if(x.lastType!="."){if(E.propertyIsEnumerable(ue)){var Me=E[ue];return y(Me.type,Me.style,ue)}if(ue=="async"&&u.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return y("async","keyword",ue)}return y("variable","variable",ue)}}function _(u){return function(x,ee){var ue=!1,Me;if(P&&x.peek()=="@"&&x.match(b))return ee.tokenize=$,y("jsonld-keyword","meta");for(;(Me=x.next())!=null&&!(Me==u&&!ue);)ue=!ue&&Me=="\\";return ue||(ee.tokenize=$),y("string","string")}}function j(u,x){for(var ee=!1,ue;ue=u.next();){if(ue=="/"&&ee){x.tokenize=$;break}ee=ue=="*"}return y("comment","comment")}function U(u,x){for(var ee=!1,ue;(ue=u.next())!=null;){if(!ee&&(ue=="`"||ue=="$"&&u.eat("{"))){x.tokenize=$;break}ee=!ee&&ue=="\\"}return y("quasi","string-2",u.current())}var re="([{}])";function oe(u,x){x.fatArrowAt&&(x.fatArrowAt=null);var ee=u.string.indexOf("=>",u.start);if(!(ee<0)){if(C){var ue=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(u.string.slice(u.start,ee));ue&&(ee=ue.index)}for(var Me=0,Ne=!1,Ke=ee-1;Ke>=0;--Ke){var we=u.string.charAt(Ke),Pt=re.indexOf(we);if(Pt>=0&&Pt<3){if(!Me){++Ke;break}if(--Me==0){we=="("&&(Ne=!0);break}}else if(Pt>=3&&Pt<6)++Me;else if(A.test(we))Ne=!0;else if(/["'\/`]/.test(we))for(;;--Ke){if(Ke==0)return;var Bn=u.string.charAt(Ke-1);if(Bn==we&&u.string.charAt(Ke-2)!="\\"){Ke--;break}}else if(Ne&&!Me){++Ke;break}}Ne&&!Me&&(x.fatArrowAt=Ke)}}var te={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function V(u,x,ee,ue,Me,Ne){this.indented=u,this.column=x,this.type=ee,this.prev=Me,this.info=Ne,ue!=null&&(this.align=ue)}function X(u,x){if(!B)return!1;for(var ee=u.localVars;ee;ee=ee.next)if(ee.name==x)return!0;for(var ue=u.context;ue;ue=ue.prev)for(var ee=ue.vars;ee;ee=ee.next)if(ee.name==x)return!0}function Y(u,x,ee,ue,Me){var Ne=u.cc;for(N.state=u,N.stream=Me,N.marked=null,N.cc=Ne,N.style=x,u.lexical.hasOwnProperty("align")||(u.lexical.align=!0);;){var Ke=Ne.length?Ne.pop():m?fe:ze;if(Ke(ee,ue)){for(;Ne.length&&Ne[Ne.length-1].lex;)Ne.pop()();return N.marked?N.marked:ee=="variable"&&X(u,ue)?"variable-2":x}}}var N={state:null,column:null,marked:null,cc:null};function D(){for(var u=arguments.length-1;u>=0;u--)N.cc.push(arguments[u])}function c(){return D.apply(null,arguments),!0}function O(u,x){for(var ee=x;ee;ee=ee.next)if(ee.name==u)return!0;return!1}function q(u){var x=N.state;if(N.marked="def",!!B){if(x.context){if(x.lexical.info=="var"&&x.context&&x.context.block){var ee=L(u,x.context);if(ee!=null){x.context=ee;return}}else if(!O(u,x.localVars)){x.localVars=new G(u,x.localVars);return}}z.globalVars&&!O(u,x.globalVars)&&(x.globalVars=new G(u,x.globalVars))}}function L(u,x){if(x)if(x.block){var ee=L(u,x.prev);return ee?ee==x.prev?x:new Z(ee,x.vars,!0):null}else return O(u,x.vars)?x:new Z(x.prev,new G(u,x.vars),!1);else return null}function k(u){return u=="public"||u=="private"||u=="protected"||u=="abstract"||u=="readonly"}function Z(u,x,ee){this.prev=u,this.vars=x,this.block=ee}function G(u,x){this.name=u,this.next=x}var v=new G("this",new G("arguments",null));function p(){N.state.context=new Z(N.state.context,N.state.localVars,!1),N.state.localVars=v}function ae(){N.state.context=new Z(N.state.context,N.state.localVars,!0),N.state.localVars=null}p.lex=ae.lex=!0;function ge(){N.state.localVars=N.state.context.vars,N.state.context=N.state.context.prev}ge.lex=!0;function se(u,x){var ee=function(){var ue=N.state,Me=ue.indented;if(ue.lexical.type=="stat")Me=ue.lexical.indented;else for(var Ne=ue.lexical;Ne&&Ne.type==")"&&Ne.align;Ne=Ne.prev)Me=Ne.indented;ue.lexical=new V(Me,N.stream.column(),u,null,ue.lexical,x)};return ee.lex=!0,ee}function de(){var u=N.state;u.lexical.prev&&(u.lexical.type==")"&&(u.indented=u.lexical.indented),u.lexical=u.lexical.prev)}de.lex=!0;function Le(u){function x(ee){return ee==u?c():u==";"||ee=="}"||ee==")"||ee=="]"?D():c(x)}return x}function ze(u,x){return u=="var"?c(se("vardef",x),Ir,Le(";"),de):u=="keyword a"?c(se("form"),De,ze,de):u=="keyword b"?c(se("form"),ze,de):u=="keyword d"?N.stream.match(/^\s*$/,!1)?c():c(se("stat"),mt,Le(";"),de):u=="debugger"?c(Le(";")):u=="{"?c(se("}"),ae,lr,de,ge):u==";"?c():u=="if"?(N.state.lexical.info=="else"&&N.state.cc[N.state.cc.length-1]==de&&N.state.cc.pop()(),c(se("form"),De,ze,de,Pr)):u=="function"?c(Ht):u=="for"?c(se("form"),ae,Rn,ze,ge,de):u=="class"||C&&x=="interface"?(N.marked="keyword",c(se("form",u=="class"?u:x),xr,de)):u=="variable"?C&&x=="declare"?(N.marked="keyword",c(ze)):C&&(x=="module"||x=="enum"||x=="type")&&N.stream.match(/^\s*\w/,!1)?(N.marked="keyword",x=="enum"?c(Be):x=="type"?c(Zt,Le("operator"),Fe,Le(";")):c(se("form"),At,Le("{"),se("}"),lr,de,de)):C&&x=="namespace"?(N.marked="keyword",c(se("form"),fe,ze,de)):C&&x=="abstract"?(N.marked="keyword",c(ze)):c(se("stat"),Oe):u=="switch"?c(se("form"),De,Le("{"),se("}","switch"),ae,lr,de,de,ge):u=="case"?c(fe,Le(":")):u=="default"?c(Le(":")):u=="catch"?c(se("form"),p,ne,ze,de,ge):u=="export"?c(se("stat"),Qt,de):u=="import"?c(se("stat"),Wn,de):u=="async"?c(ze):x=="@"?c(fe,ze):D(se("stat"),fe,Le(";"),de)}function ne(u){if(u=="(")return c(Yt,Le(")"))}function fe(u,x){return Ye(u,x,!1)}function ye(u,x){return Ye(u,x,!0)}function De(u){return u!="("?D():c(se(")"),mt,Le(")"),de)}function Ye(u,x,ee){if(N.state.fatArrowAt==N.stream.start){var ue=ee?qe:Ge;if(u=="(")return c(p,se(")"),Ae(Yt,")"),de,Le("=>"),ue,ge);if(u=="variable")return D(p,At,Le("=>"),ue,ge)}var Me=ee?je:xe;return te.hasOwnProperty(u)?c(Me):u=="function"?c(Ht,Me):u=="class"||C&&x=="interface"?(N.marked="keyword",c(se("form"),_i,de)):u=="keyword c"||u=="async"?c(ee?ye:fe):u=="("?c(se(")"),mt,Le(")"),de,Me):u=="operator"||u=="spread"?c(ee?ye:fe):u=="["?c(se("]"),Ot,de,Me):u=="{"?gt(Ee,"}",null,Me):u=="quasi"?D(rt,Me):u=="new"?c(K(ee)):c()}function mt(u){return u.match(/[;\}\)\],]/)?D():D(fe)}function xe(u,x){return u==","?c(mt):je(u,x,!1)}function je(u,x,ee){var ue=ee==!1?xe:je,Me=ee==!1?fe:ye;if(u=="=>")return c(p,ee?qe:Ge,ge);if(u=="operator")return/\+\+|--/.test(x)||C&&x=="!"?c(ue):C&&x=="<"&&N.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?c(se(">"),Ae(Fe,">"),de,ue):x=="?"?c(fe,Le(":"),Me):c(Me);if(u=="quasi")return D(rt,ue);if(u!=";"){if(u=="(")return gt(ye,")","call",ue);if(u==".")return c(be,ue);if(u=="[")return c(se("]"),mt,Le("]"),de,ue);if(C&&x=="as")return N.marked="keyword",c(Fe,ue);if(u=="regexp")return N.state.lastType=N.marked="operator",N.stream.backUp(N.stream.pos-N.stream.start-1),c(Me)}}function rt(u,x){return u!="quasi"?D():x.slice(x.length-2)!="${"?c(rt):c(mt,lt)}function lt(u){if(u=="}")return N.marked="string-2",N.state.tokenize=U,c(rt)}function Ge(u){return oe(N.stream,N.state),D(u=="{"?ze:fe)}function qe(u){return oe(N.stream,N.state),D(u=="{"?ze:ye)}function K(u){return function(x){return x=="."?c(u?J:le):x=="variable"&&C?c(ln,u?je:xe):D(u?ye:fe)}}function le(u,x){if(x=="target")return N.marked="keyword",c(xe)}function J(u,x){if(x=="target")return N.marked="keyword",c(je)}function Oe(u){return u==":"?c(de,ze):D(xe,Le(";"),de)}function be(u){if(u=="variable")return N.marked="property",c()}function Ee(u,x){if(u=="async")return N.marked="property",c(Ee);if(u=="variable"||N.style=="keyword"){if(N.marked="property",x=="get"||x=="set")return c(_e);var ee;return C&&N.state.fatArrowAt==N.stream.start&&(ee=N.stream.match(/^\s*:\s*/,!1))&&(N.state.fatArrowAt=N.stream.pos+ee[0].length),c(Pe)}else{if(u=="number"||u=="string")return N.marked=P?"property":N.style+" property",c(Pe);if(u=="jsonld-keyword")return c(Pe);if(C&&k(x))return N.marked="keyword",c(Ee);if(u=="[")return c(fe,bt,Le("]"),Pe);if(u=="spread")return c(ye,Pe);if(x=="*")return N.marked="keyword",c(Ee);if(u==":")return D(Pe)}}function _e(u){return u!="variable"?D(Pe):(N.marked="property",c(Ht))}function Pe(u){if(u==":")return c(ye);if(u=="(")return D(Ht)}function Ae(u,x,ee){function ue(Me,Ne){if(ee?ee.indexOf(Me)>-1:Me==","){var Ke=N.state.lexical;return Ke.info=="call"&&(Ke.pos=(Ke.pos||0)+1),c(function(we,Pt){return we==x||Pt==x?D():D(u)},ue)}return Me==x||Ne==x?c():ee&&ee.indexOf(";")>-1?D(u):c(Le(x))}return function(Me,Ne){return Me==x||Ne==x?c():D(u,ue)}}function gt(u,x,ee){for(var ue=3;ue<arguments.length;ue++)N.cc.push(arguments[ue]);return c(se(x,ee),Ae(u,x),de)}function lr(u){return u=="}"?c():D(ze,lr)}function bt(u,x){if(C){if(u==":")return c(Fe);if(x=="?")return c(bt)}}function qn(u,x){if(C&&(u==":"||x=="in"))return c(Fe)}function Ce(u){if(C&&u==":")return N.stream.match(/^\s*\w+\s+is\b/,!1)?c(fe,on,Fe):c(Fe)}function on(u,x){if(x=="is")return N.marked="keyword",c()}function Fe(u,x){if(x=="keyof"||x=="typeof"||x=="infer"||x=="readonly")return N.marked="keyword",c(x=="typeof"?ye:Fe);if(u=="variable"||x=="void")return N.marked="type",c(Ft);if(x=="|"||x=="&")return c(Fe);if(u=="string"||u=="number"||u=="atom")return c(Ft);if(u=="[")return c(se("]"),Ae(Fe,"]",","),de,Ft);if(u=="{")return c(se("}"),et,de,Ft);if(u=="(")return c(Ae(st,")"),Ve,Ft);if(u=="<")return c(Ae(Fe,">"),Fe);if(u=="quasi")return D(xt,Ft)}function Ve(u){if(u=="=>")return c(Fe)}function et(u){return u.match(/[\}\)\]]/)?c():u==","||u==";"?c(et):D(ar,et)}function ar(u,x){if(u=="variable"||N.style=="keyword")return N.marked="property",c(ar);if(x=="?"||u=="number"||u=="string")return c(ar);if(u==":")return c(Fe);if(u=="[")return c(Le("variable"),qn,Le("]"),ar);if(u=="(")return D(Ut,ar);if(!u.match(/[;\}\)\],]/))return c()}function xt(u,x){return u!="quasi"?D():x.slice(x.length-2)!="${"?c(xt):c(Fe,sr)}function sr(u){if(u=="}")return N.marked="string-2",N.state.tokenize=U,c(xt)}function st(u,x){return u=="variable"&&N.stream.match(/^\s*[?:]/,!1)||x=="?"?c(st):u==":"?c(Fe):u=="spread"?c(st):D(Fe)}function Ft(u,x){if(x=="<")return c(se(">"),Ae(Fe,">"),de,Ft);if(x=="|"||u=="."||x=="&")return c(Fe);if(u=="[")return c(Fe,Le("]"),Ft);if(x=="extends"||x=="implements")return N.marked="keyword",c(Fe);if(x=="?")return c(Fe,Le(":"),Fe)}function ln(u,x){if(x=="<")return c(se(">"),Ae(Fe,">"),de,Ft)}function Bt(){return D(Fe,an)}function an(u,x){if(x=="=")return c(Fe)}function Ir(u,x){return x=="enum"?(N.marked="keyword",c(Be)):D(At,bt,It,xi)}function At(u,x){if(C&&k(x))return N.marked="keyword",c(At);if(u=="variable")return q(x),c();if(u=="spread")return c(At);if(u=="[")return gt(bi,"]");if(u=="{")return gt(Or,"}")}function Or(u,x){return u=="variable"&&!N.stream.match(/^\s*:/,!1)?(q(x),c(It)):(u=="variable"&&(N.marked="property"),u=="spread"?c(At):u=="}"?D():u=="["?c(fe,Le("]"),Le(":"),Or):c(Le(":"),At,It))}function bi(){return D(At,It)}function It(u,x){if(x=="=")return c(ye)}function xi(u){if(u==",")return c(Ir)}function Pr(u,x){if(u=="keyword b"&&x=="else")return c(se("form","else"),ze,de)}function Rn(u,x){if(x=="await")return c(Rn);if(u=="(")return c(se(")"),ki,de)}function ki(u){return u=="var"?c(Ir,jt):u=="variable"?c(jt):D(jt)}function jt(u,x){return u==")"?c():u==";"?c(jt):x=="in"||x=="of"?(N.marked="keyword",c(fe,jt)):D(fe,jt)}function Ht(u,x){if(x=="*")return N.marked="keyword",c(Ht);if(u=="variable")return q(x),c(Ht);if(u=="(")return c(p,se(")"),Ae(Yt,")"),de,Ce,ze,ge);if(C&&x=="<")return c(se(">"),Ae(Bt,">"),de,Ht)}function Ut(u,x){if(x=="*")return N.marked="keyword",c(Ut);if(u=="variable")return q(x),c(Ut);if(u=="(")return c(p,se(")"),Ae(Yt,")"),de,Ce,ge);if(C&&x=="<")return c(se(">"),Ae(Bt,">"),de,Ut)}function Zt(u,x){if(u=="keyword"||u=="variable")return N.marked="type",c(Zt);if(x=="<")return c(se(">"),Ae(Bt,">"),de)}function Yt(u,x){return x=="@"&&c(fe,Yt),u=="spread"?c(Yt):C&&k(x)?(N.marked="keyword",c(Yt)):C&&u=="this"?c(bt,It):D(At,bt,It)}function _i(u,x){return u=="variable"?xr(u,x):ur(u,x)}function xr(u,x){if(u=="variable")return q(x),c(ur)}function ur(u,x){if(x=="<")return c(se(">"),Ae(Bt,">"),de,ur);if(x=="extends"||x=="implements"||C&&u==",")return x=="implements"&&(N.marked="keyword"),c(C?Fe:fe,ur);if(u=="{")return c(se("}"),kt,de)}function kt(u,x){if(u=="async"||u=="variable"&&(x=="static"||x=="get"||x=="set"||C&&k(x))&&N.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return N.marked="keyword",c(kt);if(u=="variable"||N.style=="keyword")return N.marked="property",c(kr,kt);if(u=="number"||u=="string")return c(kr,kt);if(u=="[")return c(fe,bt,Le("]"),kr,kt);if(x=="*")return N.marked="keyword",c(kt);if(C&&u=="(")return D(Ut,kt);if(u==";"||u==",")return c(kt);if(u=="}")return c();if(x=="@")return c(fe,kt)}function kr(u,x){if(x=="!"||x=="?")return c(kr);if(u==":")return c(Fe,It);if(x=="=")return c(ye);var ee=N.state.lexical.prev,ue=ee&&ee.info=="interface";return D(ue?Ut:Ht)}function Qt(u,x){return x=="*"?(N.marked="keyword",c(_r,Le(";"))):x=="default"?(N.marked="keyword",c(fe,Le(";"))):u=="{"?c(Ae(Nr,"}"),_r,Le(";")):D(ze)}function Nr(u,x){if(x=="as")return N.marked="keyword",c(Le("variable"));if(u=="variable")return D(ye,Nr)}function Wn(u){return u=="string"?c():u=="("?D(fe):u=="."?D(xe):D(Ze,ke,_r)}function Ze(u,x){return u=="{"?gt(Ze,"}"):(u=="variable"&&q(x),x=="*"&&(N.marked="keyword"),c(Jt))}function ke(u){if(u==",")return c(Ze,ke)}function Jt(u,x){if(x=="as")return N.marked="keyword",c(Ze)}function _r(u,x){if(x=="from")return N.marked="keyword",c(fe)}function Ot(u){return u=="]"?c():D(Ae(ye,"]"))}function Be(){return D(se("form"),At,Le("{"),se("}"),Ae(Vt,"}"),de,de)}function Vt(){return D(At,It)}function wr(u,x){return u.lastType=="operator"||u.lastType==","||h.test(x.charAt(0))||/[,.]/.test(x.charAt(0))}function qr(u,x,ee){return x.tokenize==$&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(x.lastType)||x.lastType=="quasi"&&/\{\s*$/.test(u.string.slice(0,u.pos-(ee||0)))}return{startState:function(u){var x={tokenize:$,lastType:"sof",cc:[],lexical:new V((u||0)-F,0,"block",!1),localVars:z.localVars,context:z.localVars&&new Z(null,null,!1),indented:u||0};return z.globalVars&&typeof z.globalVars=="object"&&(x.globalVars=z.globalVars),x},token:function(u,x){if(u.sol()&&(x.lexical.hasOwnProperty("align")||(x.lexical.align=!1),x.indented=u.indentation(),oe(u,x)),x.tokenize!=j&&u.eatSpace())return null;var ee=x.tokenize(u,x);return S=="comment"?ee:(x.lastType=S=="operator"&&(T=="++"||T=="--")?"incdec":S,Y(x,ee,S,T,u))},indent:function(u,x){if(u.tokenize==j||u.tokenize==U)return d.Pass;if(u.tokenize!=$)return 0;var ee=x&&x.charAt(0),ue=u.lexical,Me;if(!/^\s*else\b/.test(x))for(var Ne=u.cc.length-1;Ne>=0;--Ne){var Ke=u.cc[Ne];if(Ke==de)ue=ue.prev;else if(Ke!=Pr&&Ke!=ge)break}for(;(ue.type=="stat"||ue.type=="form")&&(ee=="}"||(Me=u.cc[u.cc.length-1])&&(Me==xe||Me==je)&&!/^[,\.=+\-*:?[\(]/.test(x));)ue=ue.prev;I&&ue.type==")"&&ue.prev.type=="stat"&&(ue=ue.prev);var we=ue.type,Pt=ee==we;return we=="vardef"?ue.indented+(u.lastType=="operator"||u.lastType==","?ue.info.length+1:0):we=="form"&&ee=="{"?ue.indented:we=="form"?ue.indented+F:we=="stat"?ue.indented+(wr(u,x)?I||F:0):ue.info=="switch"&&!Pt&&z.doubleIndentSwitch!=!1?ue.indented+(/^(?:case|default)\b/.test(x)?F:2*F):ue.align?ue.column+(Pt?0:1):ue.indented+(Pt?0:F)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:m?null:"/*",blockCommentEnd:m?null:"*/",blockCommentContinue:m?null:" * ",lineComment:m?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:m?"json":"javascript",jsonldMode:P,jsonMode:m,expressionAllowed:qr,skipExpression:function(u){Y(u,"atom","atom","true",new d.StringStream("",2,null))}}}),d.registerHelper("wordChars","javascript",/[\w$]/),d.defineMIME("text/javascript","javascript"),d.defineMIME("text/ecmascript","javascript"),d.defineMIME("application/javascript","javascript"),d.defineMIME("application/x-javascript","javascript"),d.defineMIME("application/ecmascript","javascript"),d.defineMIME("application/json",{name:"javascript",json:!0}),d.defineMIME("application/x-json",{name:"javascript",json:!0}),d.defineMIME("application/manifest+json",{name:"javascript",json:!0}),d.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),d.defineMIME("text/typescript",{name:"javascript",typescript:!0}),d.defineMIME("application/typescript",{name:"javascript",typescript:!0})})});var _o=Re((Ua,Ka)=>{(function(d){typeof Ua=="object"&&typeof Ka=="object"?d(We(),yi(),ko(),bo()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],d):d(CodeMirror)})(function(d){"use strict";var R={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function z(A,E,h){var b=A.current(),g=b.search(E);return g>-1?A.backUp(b.length-g):b.match(/<\/?$/)&&(A.backUp(b.length),A.match(E,!1)||A.match(b)),h}var F={};function I(A){var E=F[A];return E||(F[A]=new RegExp("\\s+"+A+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function P(A,E){var h=A.match(I(E));return h?/^\s*(.*?)\s*$/.exec(h[2])[1]:""}function m(A,E){return new RegExp((E?"^":"")+"</\\s*"+A+"\\s*>","i")}function B(A,E){for(var h in A)for(var b=E[h]||(E[h]=[]),g=A[h],S=g.length-1;S>=0;S--)b.unshift(g[S])}function C(A,E){for(var h=0;h<A.length;h++){var b=A[h];if(!b[0]||b[1].test(P(E,b[0])))return b[2]}}d.defineMode("htmlmixed",function(A,E){var h=d.getMode(A,{name:"xml",htmlMode:!0,multilineTagIndentFactor:E.multilineTagIndentFactor,multilineTagIndentPastTag:E.multilineTagIndentPastTag,allowMissingTagName:E.allowMissingTagName}),b={},g=E&&E.tags,S=E&&E.scriptTypes;if(B(R,b),g&&B(g,b),S)for(var T=S.length-1;T>=0;T--)b.script.unshift(["type",S[T].matches,S[T].mode]);function y($,_){var j=h.token($,_.htmlState),U=/\btag\b/.test(j),re;if(U&&!/[<>\s\/]/.test($.current())&&(re=_.htmlState.tagName&&_.htmlState.tagName.toLowerCase())&&b.hasOwnProperty(re))_.inTag=re+" ";else if(_.inTag&&U&&/>$/.test($.current())){var oe=/^([\S]+) (.*)/.exec(_.inTag);_.inTag=null;var te=$.current()==">"&&C(b[oe[1]],oe[2]),V=d.getMode(A,te),X=m(oe[1],!0),Y=m(oe[1],!1);_.token=function(N,D){return N.match(X,!1)?(D.token=y,D.localState=D.localMode=null,null):z(N,Y,D.localMode.token(N,D.localState))},_.localMode=V,_.localState=d.startState(V,h.indent(_.htmlState,"",""))}else _.inTag&&(_.inTag+=$.current(),$.eol()&&(_.inTag+=" "));return j}return{startState:function(){var $=d.startState(h);return{token:y,inTag:null,localMode:null,localState:null,htmlState:$}},copyState:function($){var _;return $.localState&&(_=d.copyState($.localMode,$.localState)),{token:$.token,inTag:$.inTag,localMode:$.localMode,localState:_,htmlState:d.copyState(h,$.htmlState)}},token:function($,_){return _.token($,_)},indent:function($,_,j){return!$.localMode||/^\s*<\//.test(_)?h.indent($.htmlState,_,j):$.localMode.indent?$.localMode.indent($.localState,_,j):d.Pass},innerMode:function($){return{state:$.localState||$.htmlState,mode:$.localMode||h}}}},"xml","javascript","css"),d.defineMIME("text/html","htmlmixed")})});var Xa=Re(($a,Ga)=>{(function(d){typeof $a=="object"&&typeof Ga=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("julia",function(R,z){function F(G,v,p){return typeof p>"u"&&(p=""),typeof v>"u"&&(v="\\b"),new RegExp("^"+p+"(("+G.join(")|(")+"))"+v)}var I="\\\\[0-7]{1,3}",P="\\\\x[A-Fa-f0-9]{1,2}",m=`\\\\[abefnrtv0%?'"\\\\]`,B="([^\\u0027\\u005C\\uD800-\\uDFFF]|[\\uD800-\\uDFFF][\\uDC00-\\uDFFF])",C=["[<>]:","[<>=]=","<<=?",">>>?=?","=>","--?>","<--[->]?","\\/\\/","\\.{2,3}","[\\.\\\\%*+\\-<>!\\/^|&]=?","\\?","\\$","~",":"],A=z.operators||F(["[<>]:","[<>=]=","[!=]==","<<=?",">>>?=?","=>?","--?>","<--[->]?","\\/\\/","[\\\\%*+\\-<>!\\/^|&\\u00F7\\u22BB]=?","\\?","\\$","~",":","\\u00D7","\\u2208","\\u2209","\\u220B","\\u220C","\\u2218","\\u221A","\\u221B","\\u2229","\\u222A","\\u2260","\\u2264","\\u2265","\\u2286","\\u2288","\\u228A","\\u22C5","\\b(in|isa)\\b(?!.?\\()"],""),E=z.delimiters||/^[;,()[\]{}]/,h=z.identifiers||/^[_A-Za-z\u00A1-\u2217\u2219-\uFFFF][\w\u00A1-\u2217\u2219-\uFFFF]*!*/,b=F([I,P,m,B],"'"),g=["begin","function","type","struct","immutable","let","macro","for","while","quote","if","else","elseif","try","finally","catch","do"],S=["end","else","elseif","catch","finally"],T=["if","else","elseif","while","for","begin","let","end","do","try","catch","finally","return","break","continue","global","local","const","export","import","importall","using","function","where","macro","module","baremodule","struct","type","mutable","immutable","quote","typealias","abstract","primitive","bitstype"],y=["true","false","nothing","NaN","Inf"];d.registerHelper("hintWords","julia",T.concat(y));var $=F(g),_=F(S),j=F(T),U=F(y),re=/^@[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,oe=/^:[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,te=/^(`|([_A-Za-z\u00A1-\uFFFF]*"("")?))/,V=F(C,"","@"),X=F(C,"",":");function Y(G){return G.nestedArrays>0}function N(G){return G.nestedGenerators>0}function D(G,v){return typeof v>"u"&&(v=0),G.scopes.length<=v?null:G.scopes[G.scopes.length-(v+1)]}function c(G,v){if(G.match("#=",!1))return v.tokenize=q,v.tokenize(G,v);var p=v.leavingExpr;if(G.sol()&&(p=!1),v.leavingExpr=!1,p&&G.match(/^'+/))return"operator";if(G.match(/\.{4,}/))return"error";if(G.match(/\.{1,3}/))return"operator";if(G.eatSpace())return null;var ae=G.peek();if(ae==="#")return G.skipToEnd(),"comment";if(ae==="["&&(v.scopes.push("["),v.nestedArrays++),ae==="("&&(v.scopes.push("("),v.nestedGenerators++),Y(v)&&ae==="]"){for(;v.scopes.length&&D(v)!=="[";)v.scopes.pop();v.scopes.pop(),v.nestedArrays--,v.leavingExpr=!0}if(N(v)&&ae===")"){for(;v.scopes.length&&D(v)!=="(";)v.scopes.pop();v.scopes.pop(),v.nestedGenerators--,v.leavingExpr=!0}if(Y(v)){if(v.lastToken=="end"&&G.match(":"))return"operator";if(G.match("end"))return"number"}var ge;if((ge=G.match($,!1))&&v.scopes.push(ge[0]),G.match(_,!1)&&v.scopes.pop(),G.match(/^::(?![:\$])/))return v.tokenize=O,v.tokenize(G,v);if(!p&&(G.match(oe)||G.match(X)))return"builtin";if(G.match(A))return"operator";if(G.match(/^\.?\d/,!1)){var se=RegExp(/^im\b/),de=!1;if(G.match(/^0x\.[0-9a-f_]+p[\+\-]?[_\d]+/i)&&(de=!0),G.match(/^0x[0-9a-f_]+/i)&&(de=!0),G.match(/^0b[01_]+/i)&&(de=!0),G.match(/^0o[0-7_]+/i)&&(de=!0),G.match(/^(?:(?:\d[_\d]*)?\.(?!\.)(?:\d[_\d]*)?|\d[_\d]*\.(?!\.)(?:\d[_\d]*))?([Eef][\+\-]?[_\d]+)?/i)&&(de=!0),G.match(/^\d[_\d]*(e[\+\-]?\d+)?/i)&&(de=!0),de)return G.match(se),v.leavingExpr=!0,"number"}if(G.match("'"))return v.tokenize=L,v.tokenize(G,v);if(G.match(te))return v.tokenize=k(G.current()),v.tokenize(G,v);if(G.match(re)||G.match(V))return"meta";if(G.match(E))return null;if(G.match(j))return"keyword";if(G.match(U))return"builtin";var Le=v.isDefinition||v.lastToken=="function"||v.lastToken=="macro"||v.lastToken=="type"||v.lastToken=="struct"||v.lastToken=="immutable";return G.match(h)?Le?G.peek()==="."?(v.isDefinition=!0,"variable"):(v.isDefinition=!1,"def"):(v.leavingExpr=!0,"variable"):(G.next(),"error")}function O(G,v){return G.match(/.*?(?=[,;{}()=\s]|$)/),G.match("{")?v.nestedParameters++:G.match("}")&&v.nestedParameters>0&&v.nestedParameters--,v.nestedParameters>0?G.match(/.*?(?={|})/)||G.next():v.nestedParameters==0&&(v.tokenize=c),"builtin"}function q(G,v){return G.match("#=")&&v.nestedComments++,G.match(/.*?(?=(#=|=#))/)||G.skipToEnd(),G.match("=#")&&(v.nestedComments--,v.nestedComments==0&&(v.tokenize=c)),"comment"}function L(G,v){var p=!1,ae;if(G.match(b))p=!0;else if(ae=G.match(/\\u([a-f0-9]{1,4})(?=')/i)){var ge=parseInt(ae[1],16);(ge<=55295||ge>=57344)&&(p=!0,G.next())}else if(ae=G.match(/\\U([A-Fa-f0-9]{5,8})(?=')/)){var ge=parseInt(ae[1],16);ge<=1114111&&(p=!0,G.next())}return p?(v.leavingExpr=!0,v.tokenize=c,"string"):(G.match(/^[^']+(?=')/)||G.skipToEnd(),G.match("'")&&(v.tokenize=c),"error")}function k(G){G.substr(-3)==='"""'?G='"""':G.substr(-1)==='"'&&(G='"');function v(p,ae){if(p.eat("\\"))p.next();else{if(p.match(G))return ae.tokenize=c,ae.leavingExpr=!0,"string";p.eat(/[`"]/)}return p.eatWhile(/[^\\`"]/),"string"}return v}var Z={startState:function(){return{tokenize:c,scopes:[],lastToken:null,leavingExpr:!1,isDefinition:!1,nestedArrays:0,nestedComments:0,nestedGenerators:0,nestedParameters:0,firstParenPos:-1}},token:function(G,v){var p=v.tokenize(G,v),ae=G.current();return ae&&p&&(v.lastToken=ae),p},indent:function(G,v){var p=0;return(v==="]"||v===")"||/^end\b/.test(v)||/^else/.test(v)||/^catch\b/.test(v)||/^elseif\b/.test(v)||/^finally/.test(v))&&(p=-1),(G.scopes.length+p)*R.indentUnit},electricInput:/\b(end|else|catch|finally)\b/,blockCommentStart:"#=",blockCommentEnd:"=#",lineComment:"#",closeBrackets:'()[]{}""',fold:"indent"};return Z}),d.defineMIME("text/x-julia","julia")})});var Qa=Re((Za,Ya)=>{(function(d){typeof Za=="object"&&typeof Ya=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("lua",function(R,z){var F=R.indentUnit;function I(y){return new RegExp("^(?:"+y.join("|")+")","i")}function P(y){return new RegExp("^(?:"+y.join("|")+")$","i")}var m=P(z.specials||[]),B=P(["_G","_VERSION","assert","collectgarbage","dofile","error","getfenv","getmetatable","ipairs","load","loadfile","loadstring","module","next","pairs","pcall","print","rawequal","rawget","rawset","require","select","setfenv","setmetatable","tonumber","tostring","type","unpack","xpcall","coroutine.create","coroutine.resume","coroutine.running","coroutine.status","coroutine.wrap","coroutine.yield","debug.debug","debug.getfenv","debug.gethook","debug.getinfo","debug.getlocal","debug.getmetatable","debug.getregistry","debug.getupvalue","debug.setfenv","debug.sethook","debug.setlocal","debug.setmetatable","debug.setupvalue","debug.traceback","close","flush","lines","read","seek","setvbuf","write","io.close","io.flush","io.input","io.lines","io.open","io.output","io.popen","io.read","io.stderr","io.stdin","io.stdout","io.tmpfile","io.type","io.write","math.abs","math.acos","math.asin","math.atan","math.atan2","math.ceil","math.cos","math.cosh","math.deg","math.exp","math.floor","math.fmod","math.frexp","math.huge","math.ldexp","math.log","math.log10","math.max","math.min","math.modf","math.pi","math.pow","math.rad","math.random","math.randomseed","math.sin","math.sinh","math.sqrt","math.tan","math.tanh","os.clock","os.date","os.difftime","os.execute","os.exit","os.getenv","os.remove","os.rename","os.setlocale","os.time","os.tmpname","package.cpath","package.loaded","package.loaders","package.loadlib","package.path","package.preload","package.seeall","string.byte","string.char","string.dump","string.find","string.format","string.gmatch","string.gsub","string.len","string.lower","string.match","string.rep","string.reverse","string.sub","string.upper","table.concat","table.insert","table.maxn","table.remove","table.sort"]),C=P(["and","break","elseif","false","nil","not","or","return","true","function","end","if","then","else","do","while","repeat","until","for","in","local"]),A=P(["function","if","repeat","do","\\(","{"]),E=P(["end","until","\\)","}"]),h=I(["end","until","\\)","}","else","elseif"]);function b(y){for(var $=0;y.eat("=");)++$;return y.eat("["),$}function g(y,$){var _=y.next();return _=="-"&&y.eat("-")?y.eat("[")&&y.eat("[")?($.cur=S(b(y),"comment"))(y,$):(y.skipToEnd(),"comment"):_=='"'||_=="'"?($.cur=T(_))(y,$):_=="["&&/[\[=]/.test(y.peek())?($.cur=S(b(y),"string"))(y,$):/\d/.test(_)?(y.eatWhile(/[\w.%]/),"number"):/[\w_]/.test(_)?(y.eatWhile(/[\w\\\-_.]/),"variable"):null}function S(y,$){return function(_,j){for(var U=null,re;(re=_.next())!=null;)if(U==null)re=="]"&&(U=0);else if(re=="=")++U;else if(re=="]"&&U==y){j.cur=g;break}else U=null;return $}}function T(y){return function($,_){for(var j=!1,U;(U=$.next())!=null&&!(U==y&&!j);)j=!j&&U=="\\";return j||(_.cur=g),"string"}}return{startState:function(y){return{basecol:y||0,indentDepth:0,cur:g}},token:function(y,$){if(y.eatSpace())return null;var _=$.cur(y,$),j=y.current();return _=="variable"&&(C.test(j)?_="keyword":B.test(j)?_="builtin":m.test(j)&&(_="variable-2")),_!="comment"&&_!="string"&&(A.test(j)?++$.indentDepth:E.test(j)&&--$.indentDepth),_},indent:function(y,$){var _=h.test($);return y.basecol+F*(y.indentDepth-(_?1:0))},electricInput:/^\s*(?:end|until|else|\)|\})$/,lineComment:"--",blockCommentStart:"--[[",blockCommentEnd:"]]"}}),d.defineMIME("text/x-lua","lua")})});var es=Re((Ja,Va)=>{(function(d){typeof Ja=="object"&&typeof Va=="object"?d(We()):typeof define=="function"&&define.amd?define(["../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.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"]},{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 R=0;R<d.modeInfo.length;R++){var z=d.modeInfo[R];z.mimes&&(z.mime=z.mimes[0])}d.findModeByMIME=function(F){F=F.toLowerCase();for(var I=0;I<d.modeInfo.length;I++){var P=d.modeInfo[I];if(P.mime==F)return P;if(P.mimes){for(var m=0;m<P.mimes.length;m++)if(P.mimes[m]==F)return P}}if(/\+xml$/.test(F))return d.findModeByMIME("application/xml");if(/\+json$/.test(F))return d.findModeByMIME("application/json")},d.findModeByExtension=function(F){F=F.toLowerCase();for(var I=0;I<d.modeInfo.length;I++){var P=d.modeInfo[I];if(P.ext){for(var m=0;m<P.ext.length;m++)if(P.ext[m]==F)return P}}},d.findModeByFileName=function(F){for(var I=0;I<d.modeInfo.length;I++){var P=d.modeInfo[I];if(P.file&&P.file.test(F))return P}var m=F.lastIndexOf("."),B=m>-1&&F.substring(m+1,F.length);if(B)return d.findModeByExtension(B)},d.findModeByName=function(F){F=F.toLowerCase();for(var I=0;I<d.modeInfo.length;I++){var P=d.modeInfo[I];if(P.name.toLowerCase()==F)return P;if(P.alias){for(var m=0;m<P.alias.length;m++)if(P.alias[m].toLowerCase()==F)return P}}}})});var ns=Re((ts,rs)=>{(function(d){typeof ts=="object"&&typeof rs=="object"?d(We(),yi(),es()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../xml/xml","../meta"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("markdown",function(R,z){var F=d.getMode(R,"text/html"),I=F.name=="null";function P(v){if(d.findModeByName){var p=d.findModeByName(v);p&&(v=p.mime||p.mimes[0])}var ae=d.getMode(R,v);return ae.name=="null"?null:ae}z.highlightFormatting===void 0&&(z.highlightFormatting=!1),z.maxBlockquoteDepth===void 0&&(z.maxBlockquoteDepth=0),z.taskLists===void 0&&(z.taskLists=!1),z.strikethrough===void 0&&(z.strikethrough=!1),z.emoji===void 0&&(z.emoji=!1),z.fencedCodeBlockHighlighting===void 0&&(z.fencedCodeBlockHighlighting=!0),z.fencedCodeBlockDefaultMode===void 0&&(z.fencedCodeBlockDefaultMode="text/plain"),z.xml===void 0&&(z.xml=!0),z.tokenTypeOverrides===void 0&&(z.tokenTypeOverrides={});var m={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 B in m)m.hasOwnProperty(B)&&z.tokenTypeOverrides[B]&&(m[B]=z.tokenTypeOverrides[B]);var C=/^([*\-_])(?:\s*\1){2,}\s*$/,A=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,E=/^\[(x| )\](?=\s)/i,h=z.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,b=/^ {0,3}(?:\={1,}|-{2,})\s*$/,g=/^[^#!\[\]*_\\<>` "'(~:]+/,S=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,T=/^\s*\[[^\]]+?\]:.*$/,y=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,$=" ";function _(v,p,ae){return p.f=p.inline=ae,ae(v,p)}function j(v,p,ae){return p.f=p.block=ae,ae(v,p)}function U(v){return!v||!/\S/.test(v.string)}function re(v){if(v.linkTitle=!1,v.linkHref=!1,v.linkText=!1,v.em=!1,v.strong=!1,v.strikethrough=!1,v.quote=0,v.indentedCode=!1,v.f==te){var p=I;if(!p){var ae=d.innerMode(F,v.htmlState);p=ae.mode.name=="xml"&&ae.state.tagStart===null&&!ae.state.context&&ae.state.tokenize.isInText}p&&(v.f=N,v.block=oe,v.htmlState=null)}return v.trailingSpace=0,v.trailingSpaceNewLine=!1,v.prevLine=v.thisLine,v.thisLine={stream:null},null}function oe(v,p){var ae=v.column()===p.indentation,ge=U(p.prevLine.stream),se=p.indentedCode,de=p.prevLine.hr,Le=p.list!==!1,ze=(p.listStack[p.listStack.length-1]||0)+3;p.indentedCode=!1;var ne=p.indentation;if(p.indentationDiff===null&&(p.indentationDiff=p.indentation,Le)){for(p.list=null;ne<p.listStack[p.listStack.length-1];)p.listStack.pop(),p.listStack.length?p.indentation=p.listStack[p.listStack.length-1]:p.list=!1;p.list!==!1&&(p.indentationDiff=ne-p.listStack[p.listStack.length-1])}var fe=!ge&&!de&&!p.prevLine.header&&(!Le||!se)&&!p.prevLine.fencedCodeEnd,ye=(p.list===!1||de||ge)&&p.indentation<=ze&&v.match(C),De=null;if(p.indentationDiff>=4&&(se||p.prevLine.fencedCodeEnd||p.prevLine.header||ge))return v.skipToEnd(),p.indentedCode=!0,m.code;if(v.eatSpace())return null;if(ae&&p.indentation<=ze&&(De=v.match(h))&&De[1].length<=6)return p.quote=0,p.header=De[1].length,p.thisLine.header=!0,z.highlightFormatting&&(p.formatting="header"),p.f=p.inline,X(p);if(p.indentation<=ze&&v.eat(">"))return p.quote=ae?1:p.quote+1,z.highlightFormatting&&(p.formatting="quote"),v.eatSpace(),X(p);if(!ye&&!p.setext&&ae&&p.indentation<=ze&&(De=v.match(A))){var Ye=De[1]?"ol":"ul";return p.indentation=ne+v.current().length,p.list=!0,p.quote=0,p.listStack.push(p.indentation),p.em=!1,p.strong=!1,p.code=!1,p.strikethrough=!1,z.taskLists&&v.match(E,!1)&&(p.taskList=!0),p.f=p.inline,z.highlightFormatting&&(p.formatting=["list","list-"+Ye]),X(p)}else{if(ae&&p.indentation<=ze&&(De=v.match(S,!0)))return p.quote=0,p.fencedEndRE=new RegExp(De[1]+"+ *$"),p.localMode=z.fencedCodeBlockHighlighting&&P(De[2]||z.fencedCodeBlockDefaultMode),p.localMode&&(p.localState=d.startState(p.localMode)),p.f=p.block=V,z.highlightFormatting&&(p.formatting="code-block"),p.code=-1,X(p);if(p.setext||(!fe||!Le)&&!p.quote&&p.list===!1&&!p.code&&!ye&&!T.test(v.string)&&(De=v.lookAhead(1))&&(De=De.match(b)))return p.setext?(p.header=p.setext,p.setext=0,v.skipToEnd(),z.highlightFormatting&&(p.formatting="header")):(p.header=De[0].charAt(0)=="="?1:2,p.setext=p.header),p.thisLine.header=!0,p.f=p.inline,X(p);if(ye)return v.skipToEnd(),p.hr=!0,p.thisLine.hr=!0,m.hr;if(v.peek()==="[")return _(v,p,L)}return _(v,p,p.inline)}function te(v,p){var ae=F.token(v,p.htmlState);if(!I){var ge=d.innerMode(F,p.htmlState);(ge.mode.name=="xml"&&ge.state.tagStart===null&&!ge.state.context&&ge.state.tokenize.isInText||p.md_inside&&v.current().indexOf(">")>-1)&&(p.f=N,p.block=oe,p.htmlState=null)}return ae}function V(v,p){var ae=p.listStack[p.listStack.length-1]||0,ge=p.indentation<ae,se=ae+3;if(p.fencedEndRE&&p.indentation<=se&&(ge||v.match(p.fencedEndRE))){z.highlightFormatting&&(p.formatting="code-block");var de;return ge||(de=X(p)),p.localMode=p.localState=null,p.block=oe,p.f=N,p.fencedEndRE=null,p.code=0,p.thisLine.fencedCodeEnd=!0,ge?j(v,p,p.block):de}else return p.localMode?p.localMode.token(v,p.localState):(v.skipToEnd(),m.code)}function X(v){var p=[];if(v.formatting){p.push(m.formatting),typeof v.formatting=="string"&&(v.formatting=[v.formatting]);for(var ae=0;ae<v.formatting.length;ae++)p.push(m.formatting+"-"+v.formatting[ae]),v.formatting[ae]==="header"&&p.push(m.formatting+"-"+v.formatting[ae]+"-"+v.header),v.formatting[ae]==="quote"&&(!z.maxBlockquoteDepth||z.maxBlockquoteDepth>=v.quote?p.push(m.formatting+"-"+v.formatting[ae]+"-"+v.quote):p.push("error"))}if(v.taskOpen)return p.push("meta"),p.length?p.join(" "):null;if(v.taskClosed)return p.push("property"),p.length?p.join(" "):null;if(v.linkHref?p.push(m.linkHref,"url"):(v.strong&&p.push(m.strong),v.em&&p.push(m.em),v.strikethrough&&p.push(m.strikethrough),v.emoji&&p.push(m.emoji),v.linkText&&p.push(m.linkText),v.code&&p.push(m.code),v.image&&p.push(m.image),v.imageAltText&&p.push(m.imageAltText,"link"),v.imageMarker&&p.push(m.imageMarker)),v.header&&p.push(m.header,m.header+"-"+v.header),v.quote&&(p.push(m.quote),!z.maxBlockquoteDepth||z.maxBlockquoteDepth>=v.quote?p.push(m.quote+"-"+v.quote):p.push(m.quote+"-"+z.maxBlockquoteDepth)),v.list!==!1){var ge=(v.listStack.length-1)%3;ge?ge===1?p.push(m.list2):p.push(m.list3):p.push(m.list1)}return v.trailingSpaceNewLine?p.push("trailing-space-new-line"):v.trailingSpace&&p.push("trailing-space-"+(v.trailingSpace%2?"a":"b")),p.length?p.join(" "):null}function Y(v,p){if(v.match(g,!0))return X(p)}function N(v,p){var ae=p.text(v,p);if(typeof ae<"u")return ae;if(p.list)return p.list=null,X(p);if(p.taskList){var ge=v.match(E,!0)[1]===" ";return ge?p.taskOpen=!0:p.taskClosed=!0,z.highlightFormatting&&(p.formatting="task"),p.taskList=!1,X(p)}if(p.taskOpen=!1,p.taskClosed=!1,p.header&&v.match(/^#+$/,!0))return z.highlightFormatting&&(p.formatting="header"),X(p);var se=v.next();if(p.linkTitle){p.linkTitle=!1;var de=se;se==="("&&(de=")"),de=(de+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Le="^\\s*(?:[^"+de+"\\\\]+|\\\\\\\\|\\\\.)"+de;if(v.match(new RegExp(Le),!0))return m.linkHref}if(se==="`"){var ze=p.formatting;z.highlightFormatting&&(p.formatting="code"),v.eatWhile("`");var ne=v.current().length;if(p.code==0&&(!p.quote||ne==1))return p.code=ne,X(p);if(ne==p.code){var fe=X(p);return p.code=0,fe}else return p.formatting=ze,X(p)}else if(p.code)return X(p);if(se==="\\"&&(v.next(),z.highlightFormatting)){var ye=X(p),De=m.formatting+"-escape";return ye?ye+" "+De:De}if(se==="!"&&v.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return p.imageMarker=!0,p.image=!0,z.highlightFormatting&&(p.formatting="image"),X(p);if(se==="["&&p.imageMarker&&v.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return p.imageMarker=!1,p.imageAltText=!0,z.highlightFormatting&&(p.formatting="image"),X(p);if(se==="]"&&p.imageAltText){z.highlightFormatting&&(p.formatting="image");var ye=X(p);return p.imageAltText=!1,p.image=!1,p.inline=p.f=c,ye}if(se==="["&&!p.image)return p.linkText&&v.match(/^.*?\]/)||(p.linkText=!0,z.highlightFormatting&&(p.formatting="link")),X(p);if(se==="]"&&p.linkText){z.highlightFormatting&&(p.formatting="link");var ye=X(p);return p.linkText=!1,p.inline=p.f=v.match(/\(.*?\)| ?\[.*?\]/,!1)?c:N,ye}if(se==="<"&&v.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){p.f=p.inline=D,z.highlightFormatting&&(p.formatting="link");var ye=X(p);return ye?ye+=" ":ye="",ye+m.linkInline}if(se==="<"&&v.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){p.f=p.inline=D,z.highlightFormatting&&(p.formatting="link");var ye=X(p);return ye?ye+=" ":ye="",ye+m.linkEmail}if(z.xml&&se==="<"&&v.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Ye=v.string.indexOf(">",v.pos);if(Ye!=-1){var mt=v.string.substring(v.start,Ye);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(mt)&&(p.md_inside=!0)}return v.backUp(1),p.htmlState=d.startState(F),j(v,p,te)}if(z.xml&&se==="<"&&v.match(/^\/\w*?>/))return p.md_inside=!1,"tag";if(se==="*"||se==="_"){for(var xe=1,je=v.pos==1?" ":v.string.charAt(v.pos-2);xe<3&&v.eat(se);)xe++;var rt=v.peek()||" ",lt=!/\s/.test(rt)&&(!y.test(rt)||/\s/.test(je)||y.test(je)),Ge=!/\s/.test(je)&&(!y.test(je)||/\s/.test(rt)||y.test(rt)),qe=null,K=null;if(xe%2&&(!p.em&&lt&&(se==="*"||!Ge||y.test(je))?qe=!0:p.em==se&&Ge&&(se==="*"||!lt||y.test(rt))&&(qe=!1)),xe>1&&(!p.strong&&lt&&(se==="*"||!Ge||y.test(je))?K=!0:p.strong==se&&Ge&&(se==="*"||!lt||y.test(rt))&&(K=!1)),K!=null||qe!=null){z.highlightFormatting&&(p.formatting=qe==null?"strong":K==null?"em":"strong em"),qe===!0&&(p.em=se),K===!0&&(p.strong=se);var fe=X(p);return qe===!1&&(p.em=!1),K===!1&&(p.strong=!1),fe}}else if(se===" "&&(v.eat("*")||v.eat("_"))){if(v.peek()===" ")return X(p);v.backUp(1)}if(z.strikethrough){if(se==="~"&&v.eatWhile(se)){if(p.strikethrough){z.highlightFormatting&&(p.formatting="strikethrough");var fe=X(p);return p.strikethrough=!1,fe}else if(v.match(/^[^\s]/,!1))return p.strikethrough=!0,z.highlightFormatting&&(p.formatting="strikethrough"),X(p)}else if(se===" "&&v.match("~~",!0)){if(v.peek()===" ")return X(p);v.backUp(2)}}if(z.emoji&&se===":"&&v.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){p.emoji=!0,z.highlightFormatting&&(p.formatting="emoji");var le=X(p);return p.emoji=!1,le}return se===" "&&(v.match(/^ +$/,!1)?p.trailingSpace++:p.trailingSpace&&(p.trailingSpaceNewLine=!0)),X(p)}function D(v,p){var ae=v.next();if(ae===">"){p.f=p.inline=N,z.highlightFormatting&&(p.formatting="link");var ge=X(p);return ge?ge+=" ":ge="",ge+m.linkInline}return v.match(/^[^>]+/,!0),m.linkInline}function c(v,p){if(v.eatSpace())return null;var ae=v.next();return ae==="("||ae==="["?(p.f=p.inline=q(ae==="("?")":"]"),z.highlightFormatting&&(p.formatting="link-string"),p.linkHref=!0,X(p)):"error"}var O={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function q(v){return function(p,ae){var ge=p.next();if(ge===v){ae.f=ae.inline=N,z.highlightFormatting&&(ae.formatting="link-string");var se=X(ae);return ae.linkHref=!1,se}return p.match(O[v]),ae.linkHref=!0,X(ae)}}function L(v,p){return v.match(/^([^\]\\]|\\.)*\]:/,!1)?(p.f=k,v.next(),z.highlightFormatting&&(p.formatting="link"),p.linkText=!0,X(p)):_(v,p,N)}function k(v,p){if(v.match("]:",!0)){p.f=p.inline=Z,z.highlightFormatting&&(p.formatting="link");var ae=X(p);return p.linkText=!1,ae}return v.match(/^([^\]\\]|\\.)+/,!0),m.linkText}function Z(v,p){return v.eatSpace()?null:(v.match(/^[^\s]+/,!0),v.peek()===void 0?p.linkTitle=!0:v.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),p.f=p.inline=N,m.linkHref+" url")}var G={startState:function(){return{f:oe,prevLine:{stream:null},thisLine:{stream:null},block:oe,htmlState:null,indentation:0,inline:N,text:Y,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(v){return{f:v.f,prevLine:v.prevLine,thisLine:v.thisLine,block:v.block,htmlState:v.htmlState&&d.copyState(F,v.htmlState),indentation:v.indentation,localMode:v.localMode,localState:v.localMode?d.copyState(v.localMode,v.localState):null,inline:v.inline,text:v.text,formatting:!1,linkText:v.linkText,linkTitle:v.linkTitle,linkHref:v.linkHref,code:v.code,em:v.em,strong:v.strong,strikethrough:v.strikethrough,emoji:v.emoji,header:v.header,setext:v.setext,hr:v.hr,taskList:v.taskList,list:v.list,listStack:v.listStack.slice(0),quote:v.quote,indentedCode:v.indentedCode,trailingSpace:v.trailingSpace,trailingSpaceNewLine:v.trailingSpaceNewLine,md_inside:v.md_inside,fencedEndRE:v.fencedEndRE}},token:function(v,p){if(p.formatting=!1,v!=p.thisLine.stream){if(p.header=0,p.hr=!1,v.match(/^\s*$/,!0))return re(p),null;if(p.prevLine=p.thisLine,p.thisLine={stream:v},p.taskList=!1,p.trailingSpace=0,p.trailingSpaceNewLine=!1,!p.localState&&(p.f=p.block,p.f!=te)){var ae=v.match(/^\s*/,!0)[0].replace(/\t/g,$).length;if(p.indentation=ae,p.indentationDiff=null,ae>0)return null}}return p.f(v,p)},innerMode:function(v){return v.block==te?{state:v.htmlState,mode:F}:v.localState?{state:v.localState,mode:v.localMode}:{state:v,mode:G}},indent:function(v,p,ae){return v.block==te&&F.indent?F.indent(v.htmlState,p,ae):v.localState&&v.localMode.indent?v.localMode.indent(v.localState,p,ae):d.Pass},blankLine:re,getType:X,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return G},"xml"),d.defineMIME("text/markdown","markdown"),d.defineMIME("text/x-markdown","markdown")})});var ls=Re((is,os)=>{(function(d){typeof is=="object"&&typeof os=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("mllike",function(R,z){var F={as:"keyword",do:"keyword",else:"keyword",end:"keyword",exception:"keyword",fun:"keyword",functor:"keyword",if:"keyword",in:"keyword",include:"keyword",let:"keyword",of:"keyword",open:"keyword",rec:"keyword",struct:"keyword",then:"keyword",type:"keyword",val:"keyword",while:"keyword",with:"keyword"},I=z.extraWords||{};for(var P in I)I.hasOwnProperty(P)&&(F[P]=z.extraWords[P]);var m=[];for(var B in F)m.push(B);d.registerHelper("hintWords","mllike",m);function C(b,g){var S=b.next();if(S==='"')return g.tokenize=A,g.tokenize(b,g);if(S==="{"&&b.eat("|"))return g.longString=!0,g.tokenize=h,g.tokenize(b,g);if(S==="("&&b.match(/^\*(?!\))/))return g.commentLevel++,g.tokenize=E,g.tokenize(b,g);if(S==="~"||S==="?")return b.eatWhile(/\w/),"variable-2";if(S==="`")return b.eatWhile(/\w/),"quote";if(S==="/"&&z.slashComments&&b.eat("/"))return b.skipToEnd(),"comment";if(/\d/.test(S))return S==="0"&&b.eat(/[bB]/)&&b.eatWhile(/[01]/),S==="0"&&b.eat(/[xX]/)&&b.eatWhile(/[0-9a-fA-F]/),S==="0"&&b.eat(/[oO]/)?b.eatWhile(/[0-7]/):(b.eatWhile(/[\d_]/),b.eat(".")&&b.eatWhile(/[\d]/),b.eat(/[eE]/)&&b.eatWhile(/[\d\-+]/)),"number";if(/[+\-*&%=<>!?|@\.~:]/.test(S))return"operator";if(/[\w\xa1-\uffff]/.test(S)){b.eatWhile(/[\w\xa1-\uffff]/);var T=b.current();return F.hasOwnProperty(T)?F[T]:"variable"}return null}function A(b,g){for(var S,T=!1,y=!1;(S=b.next())!=null;){if(S==='"'&&!y){T=!0;break}y=!y&&S==="\\"}return T&&!y&&(g.tokenize=C),"string"}function E(b,g){for(var S,T;g.commentLevel>0&&(T=b.next())!=null;)S==="("&&T==="*"&&g.commentLevel++,S==="*"&&T===")"&&g.commentLevel--,S=T;return g.commentLevel<=0&&(g.tokenize=C),"comment"}function h(b,g){for(var S,T;g.longString&&(T=b.next())!=null;)S==="|"&&T==="}"&&(g.longString=!1),S=T;return g.longString||(g.tokenize=C),"string"}return{startState:function(){return{tokenize:C,commentLevel:0,longString:!1}},token:function(b,g){return b.eatSpace()?null:g.tokenize(b,g)},blockCommentStart:"(*",blockCommentEnd:"*)",lineComment:z.slashComments?"//":null}}),d.defineMIME("text/x-ocaml",{name:"mllike",extraWords:{and:"keyword",assert:"keyword",begin:"keyword",class:"keyword",constraint:"keyword",done:"keyword",downto:"keyword",external:"keyword",function:"keyword",initializer:"keyword",lazy:"keyword",match:"keyword",method:"keyword",module:"keyword",mutable:"keyword",new:"keyword",nonrec:"keyword",object:"keyword",private:"keyword",sig:"keyword",to:"keyword",try:"keyword",value:"keyword",virtual:"keyword",when:"keyword",raise:"builtin",failwith:"builtin",true:"builtin",false:"builtin",asr:"builtin",land:"builtin",lor:"builtin",lsl:"builtin",lsr:"builtin",lxor:"builtin",mod:"builtin",or:"builtin",raise_notrace:"builtin",trace:"builtin",exit:"builtin",print_string:"builtin",print_endline:"builtin",int:"type",float:"type",bool:"type",char:"type",string:"type",unit:"type",List:"builtin"}}),d.defineMIME("text/x-fsharp",{name:"mllike",extraWords:{abstract:"keyword",assert:"keyword",base:"keyword",begin:"keyword",class:"keyword",default:"keyword",delegate:"keyword","do!":"keyword",done:"keyword",downcast:"keyword",downto:"keyword",elif:"keyword",extern:"keyword",finally:"keyword",for:"keyword",function:"keyword",global:"keyword",inherit:"keyword",inline:"keyword",interface:"keyword",internal:"keyword",lazy:"keyword","let!":"keyword",match:"keyword",member:"keyword",module:"keyword",mutable:"keyword",namespace:"keyword",new:"keyword",null:"keyword",override:"keyword",private:"keyword",public:"keyword","return!":"keyword",return:"keyword",select:"keyword",static:"keyword",to:"keyword",try:"keyword",upcast:"keyword","use!":"keyword",use:"keyword",void:"keyword",when:"keyword","yield!":"keyword",yield:"keyword",atomic:"keyword",break:"keyword",checked:"keyword",component:"keyword",const:"keyword",constraint:"keyword",constructor:"keyword",continue:"keyword",eager:"keyword",event:"keyword",external:"keyword",fixed:"keyword",method:"keyword",mixin:"keyword",object:"keyword",parallel:"keyword",process:"keyword",protected:"keyword",pure:"keyword",sealed:"keyword",tailcall:"keyword",trait:"keyword",virtual:"keyword",volatile:"keyword",List:"builtin",Seq:"builtin",Map:"builtin",Set:"builtin",Option:"builtin",int:"builtin",string:"builtin",not:"builtin",true:"builtin",false:"builtin",raise:"builtin",failwith:"builtin"},slashComments:!0}),d.defineMIME("text/x-sml",{name:"mllike",extraWords:{abstype:"keyword",and:"keyword",andalso:"keyword",case:"keyword",datatype:"keyword",fn:"keyword",handle:"keyword",infix:"keyword",infixr:"keyword",local:"keyword",nonfix:"keyword",op:"keyword",orelse:"keyword",raise:"keyword",withtype:"keyword",eqtype:"keyword",sharing:"keyword",sig:"keyword",signature:"keyword",structure:"keyword",where:"keyword",true:"keyword",false:"keyword",int:"builtin",real:"builtin",string:"builtin",char:"builtin",bool:"builtin"},slashComments:!0})})});var us=Re((as,ss)=>{(function(d){typeof as=="object"&&typeof ss=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("nginx",function(R){function z(g){for(var S={},T=g.split(" "),y=0;y<T.length;++y)S[T[y]]=!0;return S}var F=z("break return rewrite set accept_mutex accept_mutex_delay access_log add_after_body add_before_body add_header addition_types aio alias allow ancient_browser ancient_browser_value auth_basic auth_basic_user_file auth_http auth_http_header auth_http_timeout autoindex autoindex_exact_size autoindex_localtime charset charset_types client_body_buffer_size client_body_in_file_only client_body_in_single_buffer client_body_temp_path client_body_timeout client_header_buffer_size client_header_timeout client_max_body_size connection_pool_size create_full_put_path daemon dav_access dav_methods debug_connection debug_points default_type degradation degrade deny devpoll_changes devpoll_events directio directio_alignment empty_gif env epoll_events error_log eventport_events expires fastcgi_bind fastcgi_buffer_size fastcgi_buffers fastcgi_busy_buffers_size fastcgi_cache fastcgi_cache_key fastcgi_cache_methods fastcgi_cache_min_uses fastcgi_cache_path fastcgi_cache_use_stale fastcgi_cache_valid fastcgi_catch_stderr fastcgi_connect_timeout fastcgi_hide_header fastcgi_ignore_client_abort fastcgi_ignore_headers fastcgi_index fastcgi_intercept_errors fastcgi_max_temp_file_size fastcgi_next_upstream fastcgi_param fastcgi_pass_header fastcgi_pass_request_body fastcgi_pass_request_headers fastcgi_read_timeout fastcgi_send_lowat fastcgi_send_timeout fastcgi_split_path_info fastcgi_store fastcgi_store_access fastcgi_temp_file_write_size fastcgi_temp_path fastcgi_upstream_fail_timeout fastcgi_upstream_max_fails flv geoip_city geoip_country google_perftools_profiles gzip gzip_buffers gzip_comp_level gzip_disable gzip_hash gzip_http_version gzip_min_length gzip_no_buffer gzip_proxied gzip_static gzip_types gzip_vary gzip_window if_modified_since ignore_invalid_headers image_filter image_filter_buffer image_filter_jpeg_quality image_filter_transparency imap_auth imap_capabilities imap_client_buffer index ip_hash keepalive_requests keepalive_timeout kqueue_changes kqueue_events large_client_header_buffers limit_conn limit_conn_log_level limit_rate limit_rate_after limit_req limit_req_log_level limit_req_zone limit_zone lingering_time lingering_timeout lock_file log_format log_not_found log_subrequest map_hash_bucket_size map_hash_max_size master_process memcached_bind memcached_buffer_size memcached_connect_timeout memcached_next_upstream memcached_read_timeout memcached_send_timeout memcached_upstream_fail_timeout memcached_upstream_max_fails merge_slashes min_delete_depth modern_browser modern_browser_value msie_padding msie_refresh multi_accept open_file_cache open_file_cache_errors open_file_cache_events open_file_cache_min_uses open_file_cache_valid open_log_file_cache output_buffers override_charset perl perl_modules perl_require perl_set pid pop3_auth pop3_capabilities port_in_redirect postpone_gzipping postpone_output protocol proxy proxy_bind proxy_buffer proxy_buffer_size proxy_buffering proxy_buffers proxy_busy_buffers_size proxy_cache proxy_cache_key proxy_cache_methods proxy_cache_min_uses proxy_cache_path proxy_cache_use_stale proxy_cache_valid proxy_connect_timeout proxy_headers_hash_bucket_size proxy_headers_hash_max_size proxy_hide_header proxy_ignore_client_abort proxy_ignore_headers proxy_intercept_errors proxy_max_temp_file_size proxy_method proxy_next_upstream proxy_pass_error_message proxy_pass_header proxy_pass_request_body proxy_pass_request_headers proxy_read_timeout proxy_redirect proxy_send_lowat proxy_send_timeout proxy_set_body proxy_set_header proxy_ssl_session_reuse proxy_store proxy_store_access proxy_temp_file_write_size proxy_temp_path proxy_timeout proxy_upstream_fail_timeout proxy_upstream_max_fails random_index read_ahead real_ip_header recursive_error_pages request_pool_size reset_timedout_connection resolver resolver_timeout rewrite_log rtsig_overflow_events rtsig_overflow_test rtsig_overflow_threshold rtsig_signo satisfy secure_link_secret send_lowat send_timeout sendfile sendfile_max_chunk server_name_in_redirect server_names_hash_bucket_size server_names_hash_max_size server_tokens set_real_ip_from smtp_auth smtp_capabilities smtp_client_buffer smtp_greeting_delay so_keepalive source_charset ssi ssi_ignore_recycled_buffers ssi_min_file_chunk ssi_silent_errors ssi_types ssi_value_length ssl ssl_certificate ssl_certificate_key ssl_ciphers ssl_client_certificate ssl_crl ssl_dhparam ssl_engine ssl_prefer_server_ciphers ssl_protocols ssl_session_cache ssl_session_timeout ssl_verify_client ssl_verify_depth starttls stub_status sub_filter sub_filter_once sub_filter_types tcp_nodelay tcp_nopush thread_stack_size timeout timer_resolution types_hash_bucket_size types_hash_max_size underscores_in_headers uninitialized_variable_warn use user userid userid_domain userid_expires userid_mark userid_name userid_p3p userid_path userid_service valid_referers variables_hash_bucket_size variables_hash_max_size worker_connections worker_cpu_affinity worker_priority worker_processes worker_rlimit_core worker_rlimit_nofile worker_rlimit_sigpending worker_threads working_directory xclient xml_entities xslt_stylesheet xslt_typesdrew@li229-23"),I=z("http mail events server types location upstream charset_map limit_except if geo map"),P=z("include root server server_name listen internal proxy_pass memcached_pass fastcgi_pass try_files"),m=R.indentUnit,B;function C(g,S){return B=S,g}function A(g,S){g.eatWhile(/[\w\$_]/);var T=g.current();if(F.propertyIsEnumerable(T))return"keyword";if(I.propertyIsEnumerable(T))return"variable-2";if(P.propertyIsEnumerable(T))return"string-2";var y=g.next();if(y=="@")return g.eatWhile(/[\w\\\-]/),C("meta",g.current());if(y=="/"&&g.eat("*"))return S.tokenize=E,E(g,S);if(y=="<"&&g.eat("!"))return S.tokenize=h,h(g,S);if(y=="=")C(null,"compare");else return(y=="~"||y=="|")&&g.eat("=")?C(null,"compare"):y=='"'||y=="'"?(S.tokenize=b(y),S.tokenize(g,S)):y=="#"?(g.skipToEnd(),C("comment","comment")):y=="!"?(g.match(/^\s*\w*/),C("keyword","important")):/\d/.test(y)?(g.eatWhile(/[\w.%]/),C("number","unit")):/[,.+>*\/]/.test(y)?C(null,"select-op"):/[;{}:\[\]]/.test(y)?C(null,y):(g.eatWhile(/[\w\\\-]/),C("variable","variable"))}function E(g,S){for(var T=!1,y;(y=g.next())!=null;){if(T&&y=="/"){S.tokenize=A;break}T=y=="*"}return C("comment","comment")}function h(g,S){for(var T=0,y;(y=g.next())!=null;){if(T>=2&&y==">"){S.tokenize=A;break}T=y=="-"?T+1:0}return C("comment","comment")}function b(g){return function(S,T){for(var y=!1,$;($=S.next())!=null&&!($==g&&!y);)y=!y&&$=="\\";return y||(T.tokenize=A),C("string","string")}}return{startState:function(g){return{tokenize:A,baseIndent:g||0,stack:[]}},token:function(g,S){if(g.eatSpace())return null;B=null;var T=S.tokenize(g,S),y=S.stack[S.stack.length-1];return B=="hash"&&y=="rule"?T="atom":T=="variable"&&(y=="rule"?T="number":(!y||y=="@media{")&&(T="tag")),y=="rule"&&/^[\{\};]$/.test(B)&&S.stack.pop(),B=="{"?y=="@media"?S.stack[S.stack.length-1]="@media{":S.stack.push("{"):B=="}"?S.stack.pop():B=="@media"?S.stack.push("@media"):y=="{"&&B!="comment"&&S.stack.push("rule"),T},indent:function(g,S){var T=g.stack.length;return/^\}/.test(S)&&(T-=g.stack[g.stack.length-1]=="rule"?2:1),g.baseIndent+T*m},electricChars:"}"}}),d.defineMIME("text/x-nginx-conf","nginx")})});var ds=Re((cs,fs)=>{(function(d){typeof cs=="object"&&typeof fs=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("perl",function(){var P={"->":4,"++":4,"--":4,"**":4,"=~":4,"!~":4,"*":4,"/":4,"%":4,x:4,"+":4,"-":4,".":4,"<<":4,">>":4,"<":4,">":4,"<=":4,">=":4,lt:4,gt:4,le:4,ge:4,"==":4,"!=":4,"<=>":4,eq:4,ne:4,cmp:4,"~~":4,"&":4,"|":4,"^":4,"&&":4,"||":4,"//":4,"..":4,"...":4,"?":4,":":4,"=":4,"+=":4,"-=":4,"*=":4,",":4,"=>":4,"::":4,not:4,and:4,or:4,xor:4,BEGIN:[5,1],END:[5,1],PRINT:[5,1],PRINTF:[5,1],GETC:[5,1],READ:[5,1],READLINE:[5,1],DESTROY:[5,1],TIE:[5,1],TIEHANDLE:[5,1],UNTIE:[5,1],STDIN:5,STDIN_TOP:5,STDOUT:5,STDOUT_TOP:5,STDERR:5,STDERR_TOP:5,$ARG:5,$_:5,"@ARG":5,"@_":5,$LIST_SEPARATOR:5,'$"':5,$PROCESS_ID:5,$PID:5,$$:5,$REAL_GROUP_ID:5,$GID:5,"$(":5,$EFFECTIVE_GROUP_ID:5,$EGID:5,"$)":5,$PROGRAM_NAME:5,$0:5,$SUBSCRIPT_SEPARATOR:5,$SUBSEP:5,"$;":5,$REAL_USER_ID:5,$UID:5,"$<":5,$EFFECTIVE_USER_ID:5,$EUID:5,"$>":5,$a:5,$b:5,$COMPILING:5,"$^C":5,$DEBUGGING:5,"$^D":5,"${^ENCODING}":5,$ENV:5,"%ENV":5,$SYSTEM_FD_MAX:5,"$^F":5,"@F":5,"${^GLOBAL_PHASE}":5,"$^H":5,"%^H":5,"@INC":5,"%INC":5,$INPLACE_EDIT:5,"$^I":5,"$^M":5,$OSNAME:5,"$^O":5,"${^OPEN}":5,$PERLDB:5,"$^P":5,$SIG:5,"%SIG":5,$BASETIME:5,"$^T":5,"${^TAINT}":5,"${^UNICODE}":5,"${^UTF8CACHE}":5,"${^UTF8LOCALE}":5,$PERL_VERSION:5,"$^V":5,"${^WIN32_SLOPPY_STAT}":5,$EXECUTABLE_NAME:5,"$^X":5,$1:5,$MATCH:5,"$&":5,"${^MATCH}":5,$PREMATCH:5,"$`":5,"${^PREMATCH}":5,$POSTMATCH:5,"$'":5,"${^POSTMATCH}":5,$LAST_PAREN_MATCH:5,"$+":5,$LAST_SUBMATCH_RESULT:5,"$^N":5,"@LAST_MATCH_END":5,"@+":5,"%LAST_PAREN_MATCH":5,"%+":5,"@LAST_MATCH_START":5,"@-":5,"%LAST_MATCH_START":5,"%-":5,$LAST_REGEXP_CODE_RESULT:5,"$^R":5,"${^RE_DEBUG_FLAGS}":5,"${^RE_TRIE_MAXBUF}":5,$ARGV:5,"@ARGV":5,ARGV:5,ARGVOUT:5,$OUTPUT_FIELD_SEPARATOR:5,$OFS:5,"$,":5,$INPUT_LINE_NUMBER:5,$NR:5,"$.":5,$INPUT_RECORD_SEPARATOR:5,$RS:5,"$/":5,$OUTPUT_RECORD_SEPARATOR:5,$ORS:5,"$\\":5,$OUTPUT_AUTOFLUSH:5,"$|":5,$ACCUMULATOR:5,"$^A":5,$FORMAT_FORMFEED:5,"$^L":5,$FORMAT_PAGE_NUMBER:5,"$%":5,$FORMAT_LINES_LEFT:5,"$-":5,$FORMAT_LINE_BREAK_CHARACTERS:5,"$:":5,$FORMAT_LINES_PER_PAGE:5,"$=":5,$FORMAT_TOP_NAME:5,"$^":5,$FORMAT_NAME:5,"$~":5,"${^CHILD_ERROR_NATIVE}":5,$EXTENDED_OS_ERROR:5,"$^E":5,$EXCEPTIONS_BEING_CAUGHT:5,"$^S":5,$WARNING:5,"$^W":5,"${^WARNING_BITS}":5,$OS_ERROR:5,$ERRNO:5,"$!":5,"%OS_ERROR":5,"%ERRNO":5,"%!":5,$CHILD_ERROR:5,"$?":5,$EVAL_ERROR:5,"$@":5,$OFMT:5,"$#":5,"$*":5,$ARRAY_BASE:5,"$[":5,$OLD_PERL_VERSION:5,"$]":5,if:[1,1],elsif:[1,1],else:[1,1],while:[1,1],unless:[1,1],for:[1,1],foreach:[1,1],abs:1,accept:1,alarm:1,atan2:1,bind:1,binmode:1,bless:1,bootstrap:1,break:1,caller:1,chdir:1,chmod:1,chomp:1,chop:1,chown:1,chr:1,chroot:1,close:1,closedir:1,connect:1,continue:[1,1],cos:1,crypt:1,dbmclose:1,dbmopen:1,default:1,defined:1,delete:1,die:1,do:1,dump:1,each:1,endgrent:1,endhostent:1,endnetent:1,endprotoent:1,endpwent:1,endservent:1,eof:1,eval:1,exec:1,exists:1,exit:1,exp:1,fcntl:1,fileno:1,flock:1,fork:1,format:1,formline:1,getc:1,getgrent:1,getgrgid:1,getgrnam:1,gethostbyaddr:1,gethostbyname:1,gethostent:1,getlogin:1,getnetbyaddr:1,getnetbyname:1,getnetent:1,getpeername:1,getpgrp:1,getppid:1,getpriority:1,getprotobyname:1,getprotobynumber:1,getprotoent:1,getpwent:1,getpwnam:1,getpwuid:1,getservbyname:1,getservbyport:1,getservent:1,getsockname:1,getsockopt:1,given:1,glob:1,gmtime:1,goto:1,grep:1,hex:1,import:1,index:1,int:1,ioctl:1,join:1,keys:1,kill:1,last:1,lc:1,lcfirst:1,length:1,link:1,listen:1,local:2,localtime:1,lock:1,log:1,lstat:1,m:null,map:1,mkdir:1,msgctl:1,msgget:1,msgrcv:1,msgsnd:1,my:2,new:1,next:1,no:1,oct:1,open:1,opendir:1,ord:1,our:2,pack:1,package:1,pipe:1,pop:1,pos:1,print:1,printf:1,prototype:1,push:1,q:null,qq:null,qr:null,quotemeta:null,qw:null,qx:null,rand:1,read:1,readdir:1,readline:1,readlink:1,readpipe:1,recv:1,redo:1,ref:1,rename:1,require:1,reset:1,return:1,reverse:1,rewinddir:1,rindex:1,rmdir:1,s:null,say:1,scalar:1,seek:1,seekdir:1,select:1,semctl:1,semget:1,semop:1,send:1,setgrent:1,sethostent:1,setnetent:1,setpgrp:1,setpriority:1,setprotoent:1,setpwent:1,setservent:1,setsockopt:1,shift:1,shmctl:1,shmget:1,shmread:1,shmwrite:1,shutdown:1,sin:1,sleep:1,socket:1,socketpair:1,sort:1,splice:1,split:1,sprintf:1,sqrt:1,srand:1,stat:1,state:1,study:1,sub:1,substr:1,symlink:1,syscall:1,sysopen:1,sysread:1,sysseek:1,system:1,syswrite:1,tell:1,telldir:1,tie:1,tied:1,time:1,times:1,tr:null,truncate:1,uc:1,ucfirst:1,umask:1,undef:1,unlink:1,unpack:1,unshift:1,untie:1,use:1,utime:1,values:1,vec:1,wait:1,waitpid:1,wantarray:1,warn:1,when:1,write:1,y:null},m="string-2",B=/[goseximacplud]/;function C(h,b,g,S,T){return b.chain=null,b.style=null,b.tail=null,b.tokenize=function(y,$){for(var _=!1,j,U=0;j=y.next();){if(j===g[U]&&!_)return g[++U]!==void 0?($.chain=g[U],$.style=S,$.tail=T):T&&y.eatWhile(T),$.tokenize=E,S;_=!_&&j=="\\"}return S},b.tokenize(h,b)}function A(h,b,g){return b.tokenize=function(S,T){return S.string==g&&(T.tokenize=E),S.skipToEnd(),"string"},b.tokenize(h,b)}function E(h,b){if(h.eatSpace())return null;if(b.chain)return C(h,b,b.chain,b.style,b.tail);if(h.match(/^(\-?((\d[\d_]*)?\.\d+(e[+-]?\d+)?|\d+\.\d*)|0x[\da-fA-F_]+|0b[01_]+|\d[\d_]*(e[+-]?\d+)?)/))return"number";if(h.match(/^<<(?=[_a-zA-Z])/))return h.eatWhile(/\w/),A(h,b,h.current().substr(2));if(h.sol()&&h.match(/^\=item(?!\w)/))return A(h,b,"=cut");var g=h.next();if(g=='"'||g=="'"){if(z(h,3)=="<<"+g){var S=h.pos;h.eatWhile(/\w/);var T=h.current().substr(1);if(T&&h.eat(g))return A(h,b,T);h.pos=S}return C(h,b,[g],"string")}if(g=="q"){var y=R(h,-2);if(!(y&&/\w/.test(y))){if(y=R(h,0),y=="x"){if(y=R(h,1),y=="(")return I(h,2),C(h,b,[")"],m,B);if(y=="[")return I(h,2),C(h,b,["]"],m,B);if(y=="{")return I(h,2),C(h,b,["}"],m,B);if(y=="<")return I(h,2),C(h,b,[">"],m,B);if(/[\^'"!~\/]/.test(y))return I(h,1),C(h,b,[h.eat(y)],m,B)}else if(y=="q"){if(y=R(h,1),y=="(")return I(h,2),C(h,b,[")"],"string");if(y=="[")return I(h,2),C(h,b,["]"],"string");if(y=="{")return I(h,2),C(h,b,["}"],"string");if(y=="<")return I(h,2),C(h,b,[">"],"string");if(/[\^'"!~\/]/.test(y))return I(h,1),C(h,b,[h.eat(y)],"string")}else if(y=="w"){if(y=R(h,1),y=="(")return I(h,2),C(h,b,[")"],"bracket");if(y=="[")return I(h,2),C(h,b,["]"],"bracket");if(y=="{")return I(h,2),C(h,b,["}"],"bracket");if(y=="<")return I(h,2),C(h,b,[">"],"bracket");if(/[\^'"!~\/]/.test(y))return I(h,1),C(h,b,[h.eat(y)],"bracket")}else if(y=="r"){if(y=R(h,1),y=="(")return I(h,2),C(h,b,[")"],m,B);if(y=="[")return I(h,2),C(h,b,["]"],m,B);if(y=="{")return I(h,2),C(h,b,["}"],m,B);if(y=="<")return I(h,2),C(h,b,[">"],m,B);if(/[\^'"!~\/]/.test(y))return I(h,1),C(h,b,[h.eat(y)],m,B)}else if(/[\^'"!~\/(\[{<]/.test(y)){if(y=="(")return I(h,1),C(h,b,[")"],"string");if(y=="[")return I(h,1),C(h,b,["]"],"string");if(y=="{")return I(h,1),C(h,b,["}"],"string");if(y=="<")return I(h,1),C(h,b,[">"],"string");if(/[\^'"!~\/]/.test(y))return C(h,b,[h.eat(y)],"string")}}}if(g=="m"){var y=R(h,-2);if(!(y&&/\w/.test(y))&&(y=h.eat(/[(\[{<\^'"!~\/]/),y)){if(/[\^'"!~\/]/.test(y))return C(h,b,[y],m,B);if(y=="(")return C(h,b,[")"],m,B);if(y=="[")return C(h,b,["]"],m,B);if(y=="{")return C(h,b,["}"],m,B);if(y=="<")return C(h,b,[">"],m,B)}}if(g=="s"){var y=/[\/>\]})\w]/.test(R(h,-2));if(!y&&(y=h.eat(/[(\[{<\^'"!~\/]/),y))return y=="["?C(h,b,["]","]"],m,B):y=="{"?C(h,b,["}","}"],m,B):y=="<"?C(h,b,[">",">"],m,B):y=="("?C(h,b,[")",")"],m,B):C(h,b,[y,y],m,B)}if(g=="y"){var y=/[\/>\]})\w]/.test(R(h,-2));if(!y&&(y=h.eat(/[(\[{<\^'"!~\/]/),y))return y=="["?C(h,b,["]","]"],m,B):y=="{"?C(h,b,["}","}"],m,B):y=="<"?C(h,b,[">",">"],m,B):y=="("?C(h,b,[")",")"],m,B):C(h,b,[y,y],m,B)}if(g=="t"){var y=/[\/>\]})\w]/.test(R(h,-2));if(!y&&(y=h.eat("r"),y&&(y=h.eat(/[(\[{<\^'"!~\/]/),y)))return y=="["?C(h,b,["]","]"],m,B):y=="{"?C(h,b,["}","}"],m,B):y=="<"?C(h,b,[">",">"],m,B):y=="("?C(h,b,[")",")"],m,B):C(h,b,[y,y],m,B)}if(g=="`")return C(h,b,[g],"variable-2");if(g=="/")return/~\s*$/.test(z(h))?C(h,b,[g],m,B):"operator";if(g=="$"){var S=h.pos;if(h.eatWhile(/\d/)||h.eat("{")&&h.eatWhile(/\d/)&&h.eat("}"))return"variable-2";h.pos=S}if(/[$@%]/.test(g)){var S=h.pos;if(h.eat("^")&&h.eat(/[A-Z]/)||!/[@$%&]/.test(R(h,-2))&&h.eat(/[=|\\\-#?@;:&`~\^!\[\]*'"$+.,\/<>()]/)){var y=h.current();if(P[y])return"variable-2"}h.pos=S}if(/[$@%&]/.test(g)&&(h.eatWhile(/[\w$]/)||h.eat("{")&&h.eatWhile(/[\w$]/)&&h.eat("}"))){var y=h.current();return P[y]?"variable-2":"variable"}if(g=="#"&&R(h,-2)!="$")return h.skipToEnd(),"comment";if(/[:+\-\^*$&%@=<>!?|\/~\.]/.test(g)){var S=h.pos;if(h.eatWhile(/[:+\-\^*$&%@=<>!?|\/~\.]/),P[h.current()])return"operator";h.pos=S}if(g=="_"&&h.pos==1){if(F(h,6)=="_END__")return C(h,b,["\0"],"comment");if(F(h,7)=="_DATA__")return C(h,b,["\0"],"variable-2");if(F(h,7)=="_C__")return C(h,b,["\0"],"string")}if(/\w/.test(g)){var S=h.pos;if(R(h,-2)=="{"&&(R(h,0)=="}"||h.eatWhile(/\w/)&&R(h,0)=="}"))return"string";h.pos=S}if(/[A-Z]/.test(g)){var $=R(h,-2),S=h.pos;if(h.eatWhile(/[A-Z_]/),/[\da-z]/.test(R(h,0)))h.pos=S;else{var y=P[h.current()];return y?(y[1]&&(y=y[0]),$!=":"?y==1?"keyword":y==2?"def":y==3?"atom":y==4?"operator":y==5?"variable-2":"meta":"meta"):"meta"}}if(/[a-zA-Z_]/.test(g)){var $=R(h,-2);h.eatWhile(/\w/);var y=P[h.current()];return y?(y[1]&&(y=y[0]),$!=":"?y==1?"keyword":y==2?"def":y==3?"atom":y==4?"operator":y==5?"variable-2":"meta":"meta"):"meta"}return null}return{startState:function(){return{tokenize:E,chain:null,style:null,tail:null}},token:function(h,b){return(b.tokenize||E)(h,b)},lineComment:"#"}}),d.registerHelper("wordChars","perl",/[\w$]/),d.defineMIME("text/x-perl","perl");function R(P,m){return P.string.charAt(P.pos+(m||0))}function z(P,m){if(m){var B=P.pos-m;return P.string.substr(B>=0?B:0,m)}else return P.string.substr(0,P.pos-1)}function F(P,m){var B=P.string.length,C=B-P.pos+1;return P.string.substr(P.pos,m&&m<B?m:C)}function I(P,m){var B=P.pos+m,C;B<=0?P.pos=0:B>=(C=P.string.length-1)?P.pos=C:P.pos=B}})});var ms=Re((ps,hs)=>{(function(d){typeof ps=="object"&&typeof hs=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("pascal",function(){function R(A){for(var E={},h=A.split(" "),b=0;b<h.length;++b)E[h[b]]=!0;return E}var z=R("absolute and array asm begin case const constructor destructor div do downto else end file for function goto if implementation in inherited inline interface label mod nil not object of operator or packed procedure program record reintroduce repeat self set shl shr string then to type unit until uses var while with xor as class dispinterface except exports finalization finally initialization inline is library on out packed property raise resourcestring threadvar try absolute abstract alias assembler bitpacked break cdecl continue cppdecl cvar default deprecated dynamic enumerator experimental export external far far16 forward generic helper implements index interrupt iocheck local message name near nodefault noreturn nostackframe oldfpccall otherwise overload override pascal platform private protected public published read register reintroduce result safecall saveregisters softfloat specialize static stdcall stored strict unaligned unimplemented varargs virtual write"),F={null:!0},I=/[+\-*&%=<>!?|\/]/;function P(A,E){var h=A.next();if(h=="#"&&E.startOfLine)return A.skipToEnd(),"meta";if(h=='"'||h=="'")return E.tokenize=m(h),E.tokenize(A,E);if(h=="("&&A.eat("*"))return E.tokenize=B,B(A,E);if(h=="{")return E.tokenize=C,C(A,E);if(/[\[\]\(\),;\:\.]/.test(h))return null;if(/\d/.test(h))return A.eatWhile(/[\w\.]/),"number";if(h=="/"&&A.eat("/"))return A.skipToEnd(),"comment";if(I.test(h))return A.eatWhile(I),"operator";A.eatWhile(/[\w\$_]/);var b=A.current();return z.propertyIsEnumerable(b)?"keyword":F.propertyIsEnumerable(b)?"atom":"variable"}function m(A){return function(E,h){for(var b=!1,g,S=!1;(g=E.next())!=null;){if(g==A&&!b){S=!0;break}b=!b&&g=="\\"}return(S||!b)&&(h.tokenize=null),"string"}}function B(A,E){for(var h=!1,b;b=A.next();){if(b==")"&&h){E.tokenize=null;break}h=b=="*"}return"comment"}function C(A,E){for(var h;h=A.next();)if(h=="}"){E.tokenize=null;break}return"comment"}return{startState:function(){return{tokenize:null}},token:function(A,E){if(A.eatSpace())return null;var h=(E.tokenize||P)(A,E);return h=="comment"||h=="meta",h},electricChars:"{}"}}),d.defineMIME("text/x-pascal","pascal")})});var ys=Re((gs,vs)=>{(function(d){typeof gs=="object"&&typeof vs=="object"?d(We(),_o(),xo()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed","../clike/clike"],d):d(CodeMirror)})(function(d){"use strict";function R(A){for(var E={},h=A.split(" "),b=0;b<h.length;++b)E[h[b]]=!0;return E}function z(A,E,h){return A.length==0?F(E):function(b,g){for(var S=A[0],T=0;T<S.length;T++)if(b.match(S[T][0]))return g.tokenize=z(A.slice(1),E),S[T][1];return g.tokenize=F(E,h),"string"}}function F(A,E){return function(h,b){return I(h,b,A,E)}}function I(A,E,h,b){if(b!==!1&&A.match("${",!1)||A.match("{$",!1))return E.tokenize=null,"string";if(b!==!1&&A.match(/^\$[a-zA-Z_][a-zA-Z0-9_]*/))return A.match("[",!1)&&(E.tokenize=z([[["[",null]],[[/\d[\w\.]*/,"number"],[/\$[a-zA-Z_][a-zA-Z0-9_]*/,"variable-2"],[/[\w\$]+/,"variable"]],[["]",null]]],h,b)),A.match(/^->\w/,!1)&&(E.tokenize=z([[["->",null]],[[/[\w]+/,"variable"]]],h,b)),"variable-2";for(var g=!1;!A.eol()&&(g||b===!1||!A.match("{$",!1)&&!A.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!g&&A.match(h)){E.tokenize=null,E.tokStack.pop(),E.tokStack.pop();break}g=A.next()=="\\"&&!g}return"string"}var P="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile enum extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally readonly match",m="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",B="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage memory_get_peak_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";d.registerHelper("hintWords","php",[P,m,B].join(" ").split(" ")),d.registerHelper("wordChars","php",/[\w$]/);var C={name:"clike",helperType:"php",keywords:R(P),blockKeywords:R("catch do else elseif for foreach if switch try while finally"),defKeywords:R("class enum function interface namespace trait"),atoms:R(m),builtin:R(B),multiLineStrings:!0,hooks:{$:function(A){return A.eatWhile(/[\w\$_]/),"variable-2"},"<":function(A,E){var h;if(h=A.match(/^<<\s*/)){var b=A.eat(/['"]/);A.eatWhile(/[\w\.]/);var g=A.current().slice(h[0].length+(b?2:1));if(b&&A.eat(b),g)return(E.tokStack||(E.tokStack=[])).push(g,0),E.tokenize=F(g,b!="'"),"string"}return!1},"#":function(A){for(;!A.eol()&&!A.match("?>",!1);)A.next();return"comment"},"/":function(A){if(A.eat("/")){for(;!A.eol()&&!A.match("?>",!1);)A.next();return"comment"}return!1},'"':function(A,E){return(E.tokStack||(E.tokStack=[])).push('"',0),E.tokenize=F('"'),"string"},"{":function(A,E){return E.tokStack&&E.tokStack.length&&E.tokStack[E.tokStack.length-1]++,!1},"}":function(A,E){return E.tokStack&&E.tokStack.length>0&&!--E.tokStack[E.tokStack.length-1]&&(E.tokenize=F(E.tokStack[E.tokStack.length-2])),!1}}};d.defineMode("php",function(A,E){var h=d.getMode(A,E&&E.htmlMode||"text/html"),b=d.getMode(A,C);function g(S,T){var y=T.curMode==b;if(S.sol()&&T.pending&&T.pending!='"'&&T.pending!="'"&&(T.pending=null),y)return y&&T.php.tokenize==null&&S.match("?>")?(T.curMode=h,T.curState=T.html,T.php.context.prev||(T.php=null),"meta"):b.token(S,T.curState);if(S.match(/^<\?\w*/))return T.curMode=b,T.php||(T.php=d.startState(b,h.indent(T.html,"",""))),T.curState=T.php,"meta";if(T.pending=='"'||T.pending=="'"){for(;!S.eol()&&S.next()!=T.pending;);var $="string"}else if(T.pending&&S.pos<T.pending.end){S.pos=T.pending.end;var $=T.pending.style}else var $=h.token(S,T.curState);T.pending&&(T.pending=null);var _=S.current(),j=_.search(/<\?/),U;return j!=-1&&($=="string"&&(U=_.match(/[\'\"]$/))&&!/\?>/.test(_)?T.pending=U[0]:T.pending={end:S.pos,style:$},S.backUp(_.length-j)),$}return{startState:function(){var S=d.startState(h),T=E.startOpen?d.startState(b):null;return{html:S,php:T,curMode:E.startOpen?b:h,curState:E.startOpen?T:S,pending:null}},copyState:function(S){var T=S.html,y=d.copyState(h,T),$=S.php,_=$&&d.copyState(b,$),j;return S.curMode==h?j=y:j=_,{html:y,php:_,curMode:S.curMode,curState:j,pending:S.pending}},token:g,indent:function(S,T,y){return S.curMode!=b&&/^\s*<\//.test(T)||S.curMode==b&&/^\?>/.test(T)?h.indent(S.html,T,y):S.curMode.indent(S.curState,T,y)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(S){return{state:S.curState,mode:S.curMode}}}},"htmlmixed","clike"),d.defineMIME("application/x-httpd-php","php"),d.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),d.defineMIME("text/x-php",C)})});var ks=Re((bs,xs)=>{(function(d){"use strict";typeof bs=="object"&&typeof xs=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(window.CodeMirror)})(function(d){"use strict";d.defineMode("powershell",function(){function R(D,c){c=c||{};for(var O=c.prefix!==void 0?c.prefix:"^",q=c.suffix!==void 0?c.suffix:"\\b",L=0;L<D.length;L++)D[L]instanceof RegExp?D[L]=D[L].source:D[L]=D[L].replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return new RegExp(O+"("+D.join("|")+")"+q,"i")}var z="(?=[^A-Za-z\\d\\-_]|$)",F=/[\w\-:]/,I=R([/begin|break|catch|continue|data|default|do|dynamicparam/,/else|elseif|end|exit|filter|finally|for|foreach|from|function|if|in/,/param|process|return|switch|throw|trap|try|until|where|while/],{suffix:z}),P=/[\[\]{},;`\\\.]|@[({]/,m=R(["f",/b?not/,/[ic]?split/,"join",/is(not)?/,"as",/[ic]?(eq|ne|[gl][te])/,/[ic]?(not)?(like|match|contains)/,/[ic]?replace/,/b?(and|or|xor)/],{prefix:"-"}),B=/[+\-*\/%]=|\+\+|--|\.\.|[+\-*&^%:=!|\/]|<(?!#)|(?!#)>/,C=R([m,B],{suffix:""}),A=/^((0x[\da-f]+)|((\d+\.\d+|\d\.|\.\d+|\d+)(e[\+\-]?\d+)?))[ld]?([kmgtp]b)?/i,E=/^[A-Za-z\_][A-Za-z\-\_\d]*\b/,h=/[A-Z]:|%|\?/i,b=R([/Add-(Computer|Content|History|Member|PSSnapin|Type)/,/Checkpoint-Computer/,/Clear-(Content|EventLog|History|Host|Item(Property)?|Variable)/,/Compare-Object/,/Complete-Transaction/,/Connect-PSSession/,/ConvertFrom-(Csv|Json|SecureString|StringData)/,/Convert-Path/,/ConvertTo-(Csv|Html|Json|SecureString|Xml)/,/Copy-Item(Property)?/,/Debug-Process/,/Disable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/Disconnect-PSSession/,/Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/(Enter|Exit)-PSSession/,/Export-(Alias|Clixml|Console|Counter|Csv|FormatData|ModuleMember|PSSession)/,/ForEach-Object/,/Format-(Custom|List|Table|Wide)/,new RegExp("Get-(Acl|Alias|AuthenticodeSignature|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Counter|Credential|Culture|Date|Event|EventLog|EventSubscriber|ExecutionPolicy|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job|Location|Member|Module|PfxCertificate|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|Verb|WinEvent|WmiObject)"),/Group-Object/,/Import-(Alias|Clixml|Counter|Csv|LocalizedData|Module|PSSession)/,/ImportSystemModules/,/Invoke-(Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)/,/Join-Path/,/Limit-EventLog/,/Measure-(Command|Object)/,/Move-Item(Property)?/,new RegExp("New-(Alias|Event|EventLog|Item(Property)?|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy|WinEvent)"),/Out-(Default|File|GridView|Host|Null|Printer|String)/,/Pause/,/(Pop|Push)-Location/,/Read-Host/,/Receive-(Job|PSSession)/,/Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)/,/Remove-(Computer|Event|EventLog|Item(Property)?|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)/,/Rename-(Computer|Item(Property)?)/,/Reset-ComputerMachinePassword/,/Resolve-Path/,/Restart-(Computer|Service)/,/Restore-Computer/,/Resume-(Job|Service)/,/Save-Help/,/Select-(Object|String|Xml)/,/Send-MailMessage/,new RegExp("Set-(Acl|Alias|AuthenticodeSignature|Content|Date|ExecutionPolicy|Item(Property)?|Location|PSBreakpoint|PSDebug|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)"),/Show-(Command|ControlPanelItem|EventLog)/,/Sort-Object/,/Split-Path/,/Start-(Job|Process|Service|Sleep|Transaction|Transcript)/,/Stop-(Computer|Job|Process|Service|Transcript)/,/Suspend-(Job|Service)/,/TabExpansion2/,/Tee-Object/,/Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)/,/Trace-Command/,/Unblock-File/,/Undo-Transaction/,/Unregister-(Event|PSSessionConfiguration)/,/Update-(FormatData|Help|List|TypeData)/,/Use-Transaction/,/Wait-(Event|Job|Process)/,/Where-Object/,/Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning)/,/cd|help|mkdir|more|oss|prompt/,/ac|asnp|cat|cd|chdir|clc|clear|clhy|cli|clp|cls|clv|cnsn|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|dnsn|ebp/,/echo|epal|epcsv|epsn|erase|etsn|exsn|fc|fl|foreach|ft|fw|gal|gbp|gc|gci|gcm|gcs|gdr|ghy|gi|gjb|gl|gm|gmo|gp|gps/,/group|gsn|gsnp|gsv|gu|gv|gwmi|h|history|icm|iex|ihy|ii|ipal|ipcsv|ipmo|ipsn|irm|ise|iwmi|iwr|kill|lp|ls|man|md/,/measure|mi|mount|move|mp|mv|nal|ndr|ni|nmo|npssc|nsn|nv|ogv|oh|popd|ps|pushd|pwd|r|rbp|rcjb|rcsn|rd|rdr|ren|ri/,/rjb|rm|rmdir|rmo|rni|rnp|rp|rsn|rsnp|rujb|rv|rvpa|rwmi|sajb|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls/,/sort|sp|spjb|spps|spsv|start|sujb|sv|swmi|tee|trcm|type|where|wjb|write/],{prefix:"",suffix:""}),g=R([/[$?^_]|Args|ConfirmPreference|ConsoleFileName|DebugPreference|Error|ErrorActionPreference|ErrorView|ExecutionContext/,/FormatEnumerationLimit|Home|Host|Input|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount/,/MaximumHistoryCount|MaximumVariableCount|MyInvocation|NestedPromptLevel|OutputEncoding|Pid|Profile|ProgressPreference/,/PSBoundParameters|PSCommandPath|PSCulture|PSDefaultParameterValues|PSEmailServer|PSHome|PSScriptRoot|PSSessionApplicationName/,/PSSessionConfigurationName|PSSessionOption|PSUICulture|PSVersionTable|Pwd|ShellId|StackTrace|VerbosePreference/,/WarningPreference|WhatIfPreference/,/Event|EventArgs|EventSubscriber|Sender/,/Matches|Ofs|ForEach|LastExitCode|PSCmdlet|PSItem|PSSenderInfo|This/,/true|false|null/],{prefix:"\\$",suffix:""}),S=R([h,b,g],{suffix:z}),T={keyword:I,number:A,operator:C,builtin:S,punctuation:P,identifier:E};function y(D,c){var O=c.returnStack[c.returnStack.length-1];if(O&&O.shouldReturnFrom(c))return c.tokenize=O.tokenize,c.returnStack.pop(),c.tokenize(D,c);if(D.eatSpace())return null;if(D.eat("("))return c.bracketNesting+=1,"punctuation";if(D.eat(")"))return c.bracketNesting-=1,"punctuation";for(var q in T)if(D.match(T[q]))return q;var L=D.next();if(L==="'")return $(D,c);if(L==="$")return V(D,c);if(L==='"')return _(D,c);if(L==="<"&&D.eat("#"))return c.tokenize=te,te(D,c);if(L==="#")return D.skipToEnd(),"comment";if(L==="@"){var k=D.eat(/["']/);if(k&&D.eol())return c.tokenize=Y,c.startQuote=k[0],Y(D,c);if(D.eol())return"error";if(D.peek().match(/[({]/))return"punctuation";if(D.peek().match(F))return V(D,c)}return"error"}function $(D,c){for(var O;(O=D.peek())!=null;)if(D.next(),O==="'"&&!D.eat("'"))return c.tokenize=y,"string";return"error"}function _(D,c){for(var O;(O=D.peek())!=null;){if(O==="$")return c.tokenize=j,"string";if(D.next(),O==="`"){D.next();continue}if(O==='"'&&!D.eat('"'))return c.tokenize=y,"string"}return"error"}function j(D,c){return oe(D,c,_)}function U(D,c){return c.tokenize=Y,c.startQuote='"',Y(D,c)}function re(D,c){return oe(D,c,U)}function oe(D,c,O){if(D.match("$(")){var q=c.bracketNesting;return c.returnStack.push({shouldReturnFrom:function(L){return L.bracketNesting===q},tokenize:O}),c.tokenize=y,c.bracketNesting+=1,"punctuation"}else return D.next(),c.returnStack.push({shouldReturnFrom:function(){return!0},tokenize:O}),c.tokenize=V,c.tokenize(D,c)}function te(D,c){for(var O=!1,q;(q=D.next())!=null;){if(O&&q==">"){c.tokenize=y;break}O=q==="#"}return"comment"}function V(D,c){var O=D.peek();return D.eat("{")?(c.tokenize=X,X(D,c)):O!=null&&O.match(F)?(D.eatWhile(F),c.tokenize=y,"variable-2"):(c.tokenize=y,"error")}function X(D,c){for(var O;(O=D.next())!=null;)if(O==="}"){c.tokenize=y;break}return"variable-2"}function Y(D,c){var O=c.startQuote;if(D.sol()&&D.match(new RegExp(O+"@")))c.tokenize=y;else if(O==='"')for(;!D.eol();){var q=D.peek();if(q==="$")return c.tokenize=re,"string";D.next(),q==="`"&&D.next()}else D.skipToEnd();return"string"}var N={startState:function(){return{returnStack:[],bracketNesting:0,tokenize:y}},token:function(D,c){return c.tokenize(D,c)},blockCommentStart:"<#",blockCommentEnd:"#>",lineComment:"#",fold:"brace"};return N}),d.defineMIME("application/x-powershell","powershell")})});var Ss=Re((_s,ws)=>{(function(d){typeof _s=="object"&&typeof ws=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("properties",function(){return{token:function(R,z){var F=R.sol()||z.afterSection,I=R.eol();if(z.afterSection=!1,F&&(z.nextMultiline?(z.inMultiline=!0,z.nextMultiline=!1):z.position="def"),I&&!z.nextMultiline&&(z.inMultiline=!1,z.position="def"),F)for(;R.eatSpace(););var P=R.next();return F&&(P==="#"||P==="!"||P===";")?(z.position="comment",R.skipToEnd(),"comment"):F&&P==="["?(z.afterSection=!0,R.skipTo("]"),R.eat("]"),"header"):P==="="||P===":"?(z.position="quote",null):(P==="\\"&&z.position==="quote"&&R.eol()&&(z.nextMultiline=!0),z.position)},startState:function(){return{position:"def",nextMultiline:!1,inMultiline:!1,afterSection:!1}}}}),d.defineMIME("text/x-properties","properties"),d.defineMIME("text/x-ini","properties")})});var Ls=Re((Ts,Cs)=>{(function(d){typeof Ts=="object"&&typeof Cs=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";function R(B){return new RegExp("^(("+B.join(")|(")+"))\\b")}var z=R(["and","or","not","is"]),F=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in"],I=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];d.registerHelper("hintWords","python",F.concat(I));function P(B){return B.scopes[B.scopes.length-1]}d.defineMode("python",function(B,C){for(var A="error",E=C.delimiters||C.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,h=[C.singleOperators,C.doubleOperators,C.doubleDelimiters,C.tripleDelimiters,C.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/],b=0;b<h.length;b++)h[b]||h.splice(b--,1);var g=C.hangingIndent||B.indentUnit,S=F,T=I;C.extra_keywords!=null&&(S=S.concat(C.extra_keywords)),C.extra_builtins!=null&&(T=T.concat(C.extra_builtins));var y=!(C.version&&Number(C.version)<3);if(y){var $=C.identifiers||/^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*/;S=S.concat(["nonlocal","False","True","None","async","await"]),T=T.concat(["ascii","bytes","exec","print"]);var _=new RegExp(`^(([rbuf]|(br)|(rb)|(fr)|(rf))?('{3}|"{3}|['"]))`,"i")}else{var $=C.identifiers||/^[_A-Za-z][_A-Za-z0-9]*/;S=S.concat(["exec","print"]),T=T.concat(["apply","basestring","buffer","cmp","coerce","execfile","file","intern","long","raw_input","reduce","reload","unichr","unicode","xrange","False","True","None"]);var _=new RegExp(`^(([rubf]|(ur)|(br))?('{3}|"{3}|['"]))`,"i")}var j=R(S),U=R(T);function re(O,q){var L=O.sol()&&q.lastToken!="\\";if(L&&(q.indent=O.indentation()),L&&P(q).type=="py"){var k=P(q).offset;if(O.eatSpace()){var Z=O.indentation();return Z>k?X(q):Z<k&&N(O,q)&&O.peek()!="#"&&(q.errorToken=!0),null}else{var G=oe(O,q);return k>0&&N(O,q)&&(G+=" "+A),G}}return oe(O,q)}function oe(O,q,L){if(O.eatSpace())return null;if(!L&&O.match(/^#.*/))return"comment";if(O.match(/^[0-9\.]/,!1)){var k=!1;if(O.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(k=!0),O.match(/^[\d_]+\.\d*/)&&(k=!0),O.match(/^\.\d+/)&&(k=!0),k)return O.eat(/J/i),"number";var Z=!1;if(O.match(/^0x[0-9a-f_]+/i)&&(Z=!0),O.match(/^0b[01_]+/i)&&(Z=!0),O.match(/^0o[0-7_]+/i)&&(Z=!0),O.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(O.eat(/J/i),Z=!0),O.match(/^0(?![\dx])/i)&&(Z=!0),Z)return O.eat(/L/i),"number"}if(O.match(_)){var G=O.current().toLowerCase().indexOf("f")!==-1;return G?(q.tokenize=te(O.current(),q.tokenize),q.tokenize(O,q)):(q.tokenize=V(O.current(),q.tokenize),q.tokenize(O,q))}for(var v=0;v<h.length;v++)if(O.match(h[v]))return"operator";return O.match(E)?"punctuation":q.lastToken=="."&&O.match($)?"property":O.match(j)||O.match(z)?"keyword":O.match(U)?"builtin":O.match(/^(self|cls)\b/)?"variable-2":O.match($)?q.lastToken=="def"||q.lastToken=="class"?"def":"variable":(O.next(),L?null:A)}function te(O,q){for(;"rubf".indexOf(O.charAt(0).toLowerCase())>=0;)O=O.substr(1);var L=O.length==1,k="string";function Z(v){return function(p,ae){var ge=oe(p,ae,!0);return ge=="punctuation"&&(p.current()=="{"?ae.tokenize=Z(v+1):p.current()=="}"&&(v>1?ae.tokenize=Z(v-1):ae.tokenize=G)),ge}}function G(v,p){for(;!v.eol();)if(v.eatWhile(/[^'"\{\}\\]/),v.eat("\\")){if(v.next(),L&&v.eol())return k}else{if(v.match(O))return p.tokenize=q,k;if(v.match("{{"))return k;if(v.match("{",!1))return p.tokenize=Z(0),v.current()?k:p.tokenize(v,p);if(v.match("}}"))return k;if(v.match("}"))return A;v.eat(/['"]/)}if(L){if(C.singleLineStringErrors)return A;p.tokenize=q}return k}return G.isString=!0,G}function V(O,q){for(;"rubf".indexOf(O.charAt(0).toLowerCase())>=0;)O=O.substr(1);var L=O.length==1,k="string";function Z(G,v){for(;!G.eol();)if(G.eatWhile(/[^'"\\]/),G.eat("\\")){if(G.next(),L&&G.eol())return k}else{if(G.match(O))return v.tokenize=q,k;G.eat(/['"]/)}if(L){if(C.singleLineStringErrors)return A;v.tokenize=q}return k}return Z.isString=!0,Z}function X(O){for(;P(O).type!="py";)O.scopes.pop();O.scopes.push({offset:P(O).offset+B.indentUnit,type:"py",align:null})}function Y(O,q,L){var k=O.match(/^[\s\[\{\(]*(?:#|$)/,!1)?null:O.column()+1;q.scopes.push({offset:q.indent+g,type:L,align:k})}function N(O,q){for(var L=O.indentation();q.scopes.length>1&&P(q).offset>L;){if(P(q).type!="py")return!0;q.scopes.pop()}return P(q).offset!=L}function D(O,q){O.sol()&&(q.beginningOfLine=!0,q.dedent=!1);var L=q.tokenize(O,q),k=O.current();if(q.beginningOfLine&&k=="@")return O.match($,!1)?"meta":y?"operator":A;if(/\S/.test(k)&&(q.beginningOfLine=!1),(L=="variable"||L=="builtin")&&q.lastToken=="meta"&&(L="meta"),(k=="pass"||k=="return")&&(q.dedent=!0),k=="lambda"&&(q.lambda=!0),k==":"&&!q.lambda&&P(q).type=="py"&&O.match(/^\s*(?:#|$)/,!1)&&X(q),k.length==1&&!/string|comment/.test(L)){var Z="[({".indexOf(k);if(Z!=-1&&Y(O,q,"])}".slice(Z,Z+1)),Z="])}".indexOf(k),Z!=-1)if(P(q).type==k)q.indent=q.scopes.pop().offset-g;else return A}return q.dedent&&O.eol()&&P(q).type=="py"&&q.scopes.length>1&&q.scopes.pop(),L}var c={startState:function(O){return{tokenize:re,scopes:[{offset:O||0,type:"py",align:null}],indent:O||0,lastToken:null,lambda:!1,dedent:0}},token:function(O,q){var L=q.errorToken;L&&(q.errorToken=!1);var k=D(O,q);return k&&k!="comment"&&(q.lastToken=k=="keyword"||k=="punctuation"?O.current():k),k=="punctuation"&&(k=null),O.eol()&&q.lambda&&(q.lambda=!1),L?k+" "+A:k},indent:function(O,q){if(O.tokenize!=re)return O.tokenize.isString?d.Pass:0;var L=P(O),k=L.type==q.charAt(0)||L.type=="py"&&!O.dedent&&/^(else:|elif |except |finally:)/.test(q);return L.align!=null?L.align-(k?1:0):L.offset-(k?g:0)},electricInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/,closeBrackets:{triples:`'"`},lineComment:"#",fold:"indent"};return c}),d.defineMIME("text/x-python","python");var m=function(B){return B.split(" ")};d.defineMIME("text/x-cython",{name:"python",extra_keywords:m("by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE")})})});var zs=Re((Es,Ms)=>{(function(d){typeof Es=="object"&&typeof Ms=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";function R(C){for(var A={},E=0,h=C.length;E<h;++E)A[C[E]]=!0;return A}var z=["alias","and","BEGIN","begin","break","case","class","def","defined?","do","else","elsif","END","end","ensure","false","for","if","in","module","next","not","or","redo","rescue","retry","return","self","super","then","true","undef","unless","until","when","while","yield","nil","raise","throw","catch","fail","loop","callcc","caller","lambda","proc","public","protected","private","require","load","require_relative","extend","autoload","__END__","__FILE__","__LINE__","__dir__"],F=R(z),I=R(["def","class","case","for","while","until","module","then","catch","loop","proc","begin"]),P=R(["end","until"]),m={"[":"]","{":"}","(":")"},B={"]":"[","}":"{",")":"("};d.defineMode("ruby",function(C){var A;function E(_,j,U){return U.tokenize.push(_),_(j,U)}function h(_,j){if(_.sol()&&_.match("=begin")&&_.eol())return j.tokenize.push($),"comment";if(_.eatSpace())return null;var U=_.next(),re;if(U=="`"||U=="'"||U=='"')return E(T(U,"string",U=='"'||U=="`"),_,j);if(U=="/")return b(_)?E(T(U,"string-2",!0),_,j):"operator";if(U=="%"){var oe="string",te=!0;_.eat("s")?oe="atom":_.eat(/[WQ]/)?oe="string":_.eat(/[r]/)?oe="string-2":_.eat(/[wxq]/)&&(oe="string",te=!1);var V=_.eat(/[^\w\s=]/);return V?(m.propertyIsEnumerable(V)&&(V=m[V]),E(T(V,oe,te,!0),_,j)):"operator"}else{if(U=="#")return _.skipToEnd(),"comment";if(U=="<"&&(re=_.match(/^<([-~])[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/)))return E(y(re[2],re[1]),_,j);if(U=="0")return _.eat("x")?_.eatWhile(/[\da-fA-F]/):_.eat("b")?_.eatWhile(/[01]/):_.eatWhile(/[0-7]/),"number";if(/\d/.test(U))return _.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/),"number";if(U=="?"){for(;_.match(/^\\[CM]-/););return _.eat("\\")?_.eatWhile(/\w/):_.next(),"string"}else{if(U==":")return _.eat("'")?E(T("'","atom",!1),_,j):_.eat('"')?E(T('"',"atom",!0),_,j):_.eat(/[\<\>]/)?(_.eat(/[\<\>]/),"atom"):_.eat(/[\+\-\*\/\&\|\:\!]/)?"atom":_.eat(/[a-zA-Z$@_\xa1-\uffff]/)?(_.eatWhile(/[\w$\xa1-\uffff]/),_.eat(/[\?\!\=]/),"atom"):"operator";if(U=="@"&&_.match(/^@?[a-zA-Z_\xa1-\uffff]/))return _.eat("@"),_.eatWhile(/[\w\xa1-\uffff]/),"variable-2";if(U=="$")return _.eat(/[a-zA-Z_]/)?_.eatWhile(/[\w]/):_.eat(/\d/)?_.eat(/\d/):_.next(),"variable-3";if(/[a-zA-Z_\xa1-\uffff]/.test(U))return _.eatWhile(/[\w\xa1-\uffff]/),_.eat(/[\?\!]/),_.eat(":")?"atom":"ident";if(U=="|"&&(j.varList||j.lastTok=="{"||j.lastTok=="do"))return A="|",null;if(/[\(\)\[\]{}\\;]/.test(U))return A=U,null;if(U=="-"&&_.eat(">"))return"arrow";if(/[=+\-\/*:\.^%<>~|]/.test(U)){var X=_.eatWhile(/[=+\-\/*:\.^%<>~|]/);return U=="."&&!X&&(A="."),"operator"}else return null}}}function b(_){for(var j=_.pos,U=0,re,oe=!1,te=!1;(re=_.next())!=null;)if(te)te=!1;else{if("[{(".indexOf(re)>-1)U++;else if("]})".indexOf(re)>-1){if(U--,U<0)break}else if(re=="/"&&U==0){oe=!0;break}te=re=="\\"}return _.backUp(_.pos-j),oe}function g(_){return _||(_=1),function(j,U){if(j.peek()=="}"){if(_==1)return U.tokenize.pop(),U.tokenize[U.tokenize.length-1](j,U);U.tokenize[U.tokenize.length-1]=g(_-1)}else j.peek()=="{"&&(U.tokenize[U.tokenize.length-1]=g(_+1));return h(j,U)}}function S(){var _=!1;return function(j,U){return _?(U.tokenize.pop(),U.tokenize[U.tokenize.length-1](j,U)):(_=!0,h(j,U))}}function T(_,j,U,re){return function(oe,te){var V=!1,X;for(te.context.type==="read-quoted-paused"&&(te.context=te.context.prev,oe.eat("}"));(X=oe.next())!=null;){if(X==_&&(re||!V)){te.tokenize.pop();break}if(U&&X=="#"&&!V){if(oe.eat("{")){_=="}"&&(te.context={prev:te.context,type:"read-quoted-paused"}),te.tokenize.push(g());break}else if(/[@\$]/.test(oe.peek())){te.tokenize.push(S());break}}V=!V&&X=="\\"}return j}}function y(_,j){return function(U,re){return j&&U.eatSpace(),U.match(_)?re.tokenize.pop():U.skipToEnd(),"string"}}function $(_,j){return _.sol()&&_.match("=end")&&_.eol()&&j.tokenize.pop(),_.skipToEnd(),"comment"}return{startState:function(){return{tokenize:[h],indented:0,context:{type:"top",indented:-C.indentUnit},continuedLine:!1,lastTok:null,varList:!1}},token:function(_,j){A=null,_.sol()&&(j.indented=_.indentation());var U=j.tokenize[j.tokenize.length-1](_,j),re,oe=A;if(U=="ident"){var te=_.current();U=j.lastTok=="."?"property":F.propertyIsEnumerable(_.current())?"keyword":/^[A-Z]/.test(te)?"tag":j.lastTok=="def"||j.lastTok=="class"||j.varList?"def":"variable",U=="keyword"&&(oe=te,I.propertyIsEnumerable(te)?re="indent":P.propertyIsEnumerable(te)?re="dedent":((te=="if"||te=="unless")&&_.column()==_.indentation()||te=="do"&&j.context.indented<j.indented)&&(re="indent"))}return(A||U&&U!="comment")&&(j.lastTok=oe),A=="|"&&(j.varList=!j.varList),re=="indent"||/[\(\[\{]/.test(A)?j.context={prev:j.context,type:A||U,indented:j.indented}:(re=="dedent"||/[\)\]\}]/.test(A))&&j.context.prev&&(j.context=j.context.prev),_.eol()&&(j.continuedLine=A=="\\"||U=="operator"),U},indent:function(_,j){if(_.tokenize[_.tokenize.length-1]!=h)return d.Pass;var U=j&&j.charAt(0),re=_.context,oe=re.type==B[U]||re.type=="keyword"&&/^(?:end|until|else|elsif|when|rescue)\b/.test(j);return re.indented+(oe?0:C.indentUnit)+(_.continuedLine?C.indentUnit:0)},electricInput:/^\s*(?:end|rescue|elsif|else|\})$/,lineComment:"#",fold:"indent"}}),d.defineMIME("text/x-ruby","ruby"),d.registerHelper("hintWords","ruby",z)})});var Fs=Re((As,Ds)=>{(function(d){typeof As=="object"&&typeof Ds=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineSimpleMode=function(E,h){d.defineMode(E,function(b){return d.simpleMode(b,h)})},d.simpleMode=function(E,h){R(h,"start");var b={},g=h.meta||{},S=!1;for(var T in h)if(T!=g&&h.hasOwnProperty(T))for(var y=b[T]=[],$=h[T],_=0;_<$.length;_++){var j=$[_];y.push(new I(j,h)),(j.indent||j.dedent)&&(S=!0)}var U={startState:function(){return{state:"start",pending:null,local:null,localState:null,indent:S?[]:null}},copyState:function(oe){var te={state:oe.state,pending:oe.pending,local:oe.local,localState:null,indent:oe.indent&&oe.indent.slice(0)};oe.localState&&(te.localState=d.copyState(oe.local.mode,oe.localState)),oe.stack&&(te.stack=oe.stack.slice(0));for(var V=oe.persistentStates;V;V=V.next)te.persistentStates={mode:V.mode,spec:V.spec,state:V.state==oe.localState?te.localState:d.copyState(V.mode,V.state),next:te.persistentStates};return te},token:P(b,E),innerMode:function(oe){return oe.local&&{mode:oe.local.mode,state:oe.localState}},indent:A(b,g)};if(g)for(var re in g)g.hasOwnProperty(re)&&(U[re]=g[re]);return U};function R(E,h){if(!E.hasOwnProperty(h))throw new Error("Undefined state "+h+" in simple mode")}function z(E,h){if(!E)return/(?:)/;var b="";return E instanceof RegExp?(E.ignoreCase&&(b="i"),E.unicode&&(b+="u"),E=E.source):E=String(E),new RegExp((h===!1?"":"^")+"(?:"+E+")",b)}function F(E){if(!E)return null;if(E.apply)return E;if(typeof E=="string")return E.replace(/\./g," ");for(var h=[],b=0;b<E.length;b++)h.push(E[b]&&E[b].replace(/\./g," "));return h}function I(E,h){(E.next||E.push)&&R(h,E.next||E.push),this.regex=z(E.regex),this.token=F(E.token),this.data=E}function P(E,h){return function(b,g){if(g.pending){var S=g.pending.shift();return g.pending.length==0&&(g.pending=null),b.pos+=S.text.length,S.token}if(g.local)if(g.local.end&&b.match(g.local.end)){var T=g.local.endToken||null;return g.local=g.localState=null,T}else{var T=g.local.mode.token(b,g.localState),y;return g.local.endScan&&(y=g.local.endScan.exec(b.current()))&&(b.pos=b.start+y.index),T}for(var $=E[g.state],_=0;_<$.length;_++){var j=$[_],U=(!j.data.sol||b.sol())&&b.match(j.regex);if(U){j.data.next?g.state=j.data.next:j.data.push?((g.stack||(g.stack=[])).push(g.state),g.state=j.data.push):j.data.pop&&g.stack&&g.stack.length&&(g.state=g.stack.pop()),j.data.mode&&B(h,g,j.data.mode,j.token),j.data.indent&&g.indent.push(b.indentation()+h.indentUnit),j.data.dedent&&g.indent.pop();var re=j.token;if(re&&re.apply&&(re=re(U)),U.length>2&&j.token&&typeof j.token!="string"){for(var oe=2;oe<U.length;oe++)U[oe]&&(g.pending||(g.pending=[])).push({text:U[oe],token:j.token[oe-1]});return b.backUp(U[0].length-(U[1]?U[1].length:0)),re[0]}else return re&&re.join?re[0]:re}}return b.next(),null}}function m(E,h){if(E===h)return!0;if(!E||typeof E!="object"||!h||typeof h!="object")return!1;var b=0;for(var g in E)if(E.hasOwnProperty(g)){if(!h.hasOwnProperty(g)||!m(E[g],h[g]))return!1;b++}for(var g in h)h.hasOwnProperty(g)&&b--;return b==0}function B(E,h,b,g){var S;if(b.persistent)for(var T=h.persistentStates;T&&!S;T=T.next)(b.spec?m(b.spec,T.spec):b.mode==T.mode)&&(S=T);var y=S?S.mode:b.mode||d.getMode(E,b.spec),$=S?S.state:d.startState(y);b.persistent&&!S&&(h.persistentStates={mode:y,spec:b.spec,state:$,next:h.persistentStates}),h.localState=$,h.local={mode:y,end:b.end&&z(b.end),endScan:b.end&&b.forceEnd!==!1&&z(b.end,!1),endToken:g&&g.join?g[g.length-1]:g}}function C(E,h){for(var b=0;b<h.length;b++)if(h[b]===E)return!0}function A(E,h){return function(b,g,S){if(b.local&&b.local.mode.indent)return b.local.mode.indent(b.localState,g,S);if(b.indent==null||b.local||h.dontIndentStates&&C(b.state,h.dontIndentStates)>-1)return d.Pass;var T=b.indent.length-1,y=E[b.state];e:for(;;){for(var $=0;$<y.length;$++){var _=y[$];if(_.data.dedent&&_.data.dedentIfLineStart!==!1){var j=_.regex.exec(g);if(j&&j[0]){T--,(_.next||_.push)&&(y=E[_.next||_.push]),g=g.slice(j[0].length);continue e}}}break}return T<0?0:b.indent[T]}}})});var Ps=Re((Is,Os)=>{(function(d){typeof Is=="object"&&typeof Os=="object"?d(We(),Fs()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../../addon/mode/simple"],d):d(CodeMirror)})(function(d){"use strict";d.defineSimpleMode("rust",{start:[{regex:/b?"/,token:"string",next:"string"},{regex:/b?r"/,token:"string",next:"string_raw"},{regex:/b?r#+"/,token:"string",next:"string_raw_hash"},{regex:/'(?:[^'\\]|\\(?:[nrt0'"]|x[\da-fA-F]{2}|u\{[\da-fA-F]{6}\}))'/,token:"string-2"},{regex:/b'(?:[^']|\\(?:['\\nrt0]|x[\da-fA-F]{2}))'/,token:"string-2"},{regex:/(?:(?:[0-9][0-9_]*)(?:(?:[Ee][+-]?[0-9_]+)|\.[0-9_]+(?:[Ee][+-]?[0-9_]+)?)(?:f32|f64)?)|(?:0(?:b[01_]+|(?:o[0-7_]+)|(?:x[0-9a-fA-F_]+))|(?:[0-9][0-9_]*))(?:u8|u16|u32|u64|i8|i16|i32|i64|isize|usize)?/,token:"number"},{regex:/(let(?:\s+mut)?|fn|enum|mod|struct|type|union)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/,token:["keyword",null,"def"]},{regex:/(?:abstract|alignof|as|async|await|box|break|continue|const|crate|do|dyn|else|enum|extern|fn|for|final|if|impl|in|loop|macro|match|mod|move|offsetof|override|priv|proc|pub|pure|ref|return|self|sizeof|static|struct|super|trait|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,token:"keyword"},{regex:/\b(?:Self|isize|usize|char|bool|u8|u16|u32|u64|f16|f32|f64|i8|i16|i32|i64|str|Option)\b/,token:"atom"},{regex:/\b(?:true|false|Some|None|Ok|Err)\b/,token:"builtin"},{regex:/\b(fn)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/,token:["keyword",null,"def"]},{regex:/#!?\[.*\]/,token:"meta"},{regex:/\/\/.*/,token:"comment"},{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+\/*=<>!]+/,token:"operator"},{regex:/[a-zA-Z_]\w*!/,token:"variable-3"},{regex:/[a-zA-Z_]\w*/,token:"variable"},{regex:/[\{\[\(]/,indent:!0},{regex:/[\}\]\)]/,dedent:!0}],string:[{regex:/"/,token:"string",next:"start"},{regex:/(?:[^\\"]|\\(?:.|$))*/,token:"string"}],string_raw:[{regex:/"/,token:"string",next:"start"},{regex:/[^"]*/,token:"string"}],string_raw_hash:[{regex:/"#+/,token:"string",next:"start"},{regex:/(?:[^"]|"(?!#))*/,token:"string"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],meta:{dontIndentStates:["comment"],electricInput:/^\s*\}$/,blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}}),d.defineMIME("text/x-rustsrc","rust"),d.defineMIME("text/rust","rust")})});var Rs=Re((Ns,qs)=>{(function(d){typeof Ns=="object"&&typeof qs=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("shell",function(){var R={};function z(b,g){for(var S=0;S<g.length;S++)R[g[S]]=b}var F=["true","false"],I=["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],P=["ab","awk","bash","beep","cat","cc","cd","chown","chmod","chroot","clear","cp","curl","cut","diff","echo","find","gawk","gcc","get","git","grep","hg","kill","killall","ln","ls","make","mkdir","openssl","mv","nc","nl","node","npm","ping","ps","restart","rm","rmdir","sed","service","sh","shopt","shred","source","sort","sleep","ssh","start","stop","su","sudo","svn","tee","telnet","top","touch","vi","vim","wall","wc","wget","who","write","yes","zsh"];d.registerHelper("hintWords","shell",F.concat(I,P)),z("atom",F),z("keyword",I),z("builtin",P);function m(b,g){if(b.eatSpace())return null;var S=b.sol(),T=b.next();if(T==="\\")return b.next(),null;if(T==="'"||T==='"'||T==="`")return g.tokens.unshift(B(T,T==="`"?"quote":"string")),h(b,g);if(T==="#")return S&&b.eat("!")?(b.skipToEnd(),"meta"):(b.skipToEnd(),"comment");if(T==="$")return g.tokens.unshift(A),h(b,g);if(T==="+"||T==="=")return"operator";if(T==="-")return b.eat("-"),b.eatWhile(/\w/),"attribute";if(T=="<"){if(b.match("<<"))return"operator";var y=b.match(/^<-?\s*['"]?([^'"]*)['"]?/);if(y)return g.tokens.unshift(E(y[1])),"string-2"}if(/\d/.test(T)&&(b.eatWhile(/\d/),b.eol()||!/\w/.test(b.peek())))return"number";b.eatWhile(/[\w-]/);var $=b.current();return b.peek()==="="&&/\w+/.test($)?"def":R.hasOwnProperty($)?R[$]:null}function B(b,g){var S=b=="("?")":b=="{"?"}":b;return function(T,y){for(var $,_=!1;($=T.next())!=null;){if($===S&&!_){y.tokens.shift();break}else if($==="$"&&!_&&b!=="'"&&T.peek()!=S){_=!0,T.backUp(1),y.tokens.unshift(A);break}else{if(!_&&b!==S&&$===b)return y.tokens.unshift(B(b,g)),h(T,y);if(!_&&/['"]/.test($)&&!/['"]/.test(b)){y.tokens.unshift(C($,"string")),T.backUp(1);break}}_=!_&&$==="\\"}return g}}function C(b,g){return function(S,T){return T.tokens[0]=B(b,g),S.next(),h(S,T)}}var A=function(b,g){g.tokens.length>1&&b.eat("$");var S=b.next();return/['"({]/.test(S)?(g.tokens[0]=B(S,S=="("?"quote":S=="{"?"def":"string"),h(b,g)):(/\d/.test(S)||b.eatWhile(/\w/),g.tokens.shift(),"def")};function E(b){return function(g,S){return g.sol()&&g.string==b&&S.tokens.shift(),g.skipToEnd(),"string-2"}}function h(b,g){return(g.tokens[0]||m)(b,g)}return{startState:function(){return{tokens:[]}},token:function(b,g){return h(b,g)},closeBrackets:"()[]{}''\"\"``",lineComment:"#",fold:"brace"}}),d.defineMIME("text/x-sh","shell"),d.defineMIME("application/x-sh","shell")})});var js=Re((Ws,Bs)=>{(function(d){typeof Ws=="object"&&typeof Bs=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("sql",function(C,A){var E=A.client||{},h=A.atoms||{false:!0,true:!0,null:!0},b=A.builtin||m(B),g=A.keywords||m(P),S=A.operatorChars||/^[*+\-%<>!=&|~^\/]/,T=A.support||{},y=A.hooks||{},$=A.dateSQL||{date:!0,time:!0,timestamp:!0},_=A.backslashStringEscapes!==!1,j=A.brackets||/^[\{}\(\)\[\]]/,U=A.punctuation||/^[;.,:]/;function re(Y,N){var D=Y.next();if(y[D]){var c=y[D](Y,N);if(c!==!1)return c}if(T.hexNumber&&(D=="0"&&Y.match(/^[xX][0-9a-fA-F]+/)||(D=="x"||D=="X")&&Y.match(/^'[0-9a-fA-F]+'/)))return"number";if(T.binaryNumber&&((D=="b"||D=="B")&&Y.match(/^'[01]+'/)||D=="0"&&Y.match(/^b[01]+/)))return"number";if(D.charCodeAt(0)>47&&D.charCodeAt(0)<58)return Y.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),T.decimallessFloat&&Y.match(/^\.(?!\.)/),"number";if(D=="?"&&(Y.eatSpace()||Y.eol()||Y.eat(";")))return"variable-3";if(D=="'"||D=='"'&&T.doubleQuote)return N.tokenize=oe(D),N.tokenize(Y,N);if((T.nCharCast&&(D=="n"||D=="N")||T.charsetCast&&D=="_"&&Y.match(/[a-z][a-z0-9]*/i))&&(Y.peek()=="'"||Y.peek()=='"'))return"keyword";if(T.escapeConstant&&(D=="e"||D=="E")&&(Y.peek()=="'"||Y.peek()=='"'&&T.doubleQuote))return N.tokenize=function(q,L){return(L.tokenize=oe(q.next(),!0))(q,L)},"keyword";if(T.commentSlashSlash&&D=="/"&&Y.eat("/"))return Y.skipToEnd(),"comment";if(T.commentHash&&D=="#"||D=="-"&&Y.eat("-")&&(!T.commentSpaceRequired||Y.eat(" ")))return Y.skipToEnd(),"comment";if(D=="/"&&Y.eat("*"))return N.tokenize=te(1),N.tokenize(Y,N);if(D=="."){if(T.zerolessFloat&&Y.match(/^(?:\d+(?:e[+-]?\d+)?)/i))return"number";if(Y.match(/^\.+/))return null;if(T.ODBCdotTable&&Y.match(/^[\w\d_$#]+/))return"variable-2"}else{if(S.test(D))return Y.eatWhile(S),"operator";if(j.test(D))return"bracket";if(U.test(D))return Y.eatWhile(U),"punctuation";if(D=="{"&&(Y.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||Y.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";Y.eatWhile(/^[_\w\d]/);var O=Y.current().toLowerCase();return $.hasOwnProperty(O)&&(Y.match(/^( )+'[^']*'/)||Y.match(/^( )+"[^"]*"/))?"number":h.hasOwnProperty(O)?"atom":b.hasOwnProperty(O)?"type":g.hasOwnProperty(O)?"keyword":E.hasOwnProperty(O)?"builtin":null}}function oe(Y,N){return function(D,c){for(var O=!1,q;(q=D.next())!=null;){if(q==Y&&!O){c.tokenize=re;break}O=(_||N)&&!O&&q=="\\"}return"string"}}function te(Y){return function(N,D){var c=N.match(/^.*?(\/\*|\*\/)/);return c?c[1]=="/*"?D.tokenize=te(Y+1):Y>1?D.tokenize=te(Y-1):D.tokenize=re:N.skipToEnd(),"comment"}}function V(Y,N,D){N.context={prev:N.context,indent:Y.indentation(),col:Y.column(),type:D}}function X(Y){Y.indent=Y.context.indent,Y.context=Y.context.prev}return{startState:function(){return{tokenize:re,context:null}},token:function(Y,N){if(Y.sol()&&N.context&&N.context.align==null&&(N.context.align=!1),N.tokenize==re&&Y.eatSpace())return null;var D=N.tokenize(Y,N);if(D=="comment")return D;N.context&&N.context.align==null&&(N.context.align=!0);var c=Y.current();return c=="("?V(Y,N,")"):c=="["?V(Y,N,"]"):N.context&&N.context.type==c&&X(N),D},indent:function(Y,N){var D=Y.context;if(!D)return d.Pass;var c=N.charAt(0)==D.type;return D.align?D.col+(c?0:1):D.indent+(c?0:C.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:T.commentSlashSlash?"//":T.commentHash?"#":"--",closeBrackets:"()[]{}''\"\"``"}});function R(C){for(var A;(A=C.next())!=null;)if(A=="`"&&!C.eat("`"))return"variable-2";return C.backUp(C.current().length-1),C.eatWhile(/\w/)?"variable-2":null}function z(C){for(var A;(A=C.next())!=null;)if(A=='"'&&!C.eat('"'))return"variable-2";return C.backUp(C.current().length-1),C.eatWhile(/\w/)?"variable-2":null}function F(C){return C.eat("@")&&(C.match("session."),C.match("local."),C.match("global.")),C.eat("'")?(C.match(/^.*'/),"variable-2"):C.eat('"')?(C.match(/^.*"/),"variable-2"):C.eat("`")?(C.match(/^.*`/),"variable-2"):C.match(/^[0-9a-zA-Z$\.\_]+/)?"variable-2":null}function I(C){return C.eat("N")?"atom":C.match(/^[a-zA-Z.#!?]/)?"variable-2":null}var P="alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";function m(C){for(var A={},E=C.split(" "),h=0;h<E.length;++h)A[E[h]]=!0;return A}var B="bool boolean bit blob enum long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision real date datetime year unsigned signed decimal numeric";d.defineMIME("text/x-sql",{name:"sql",keywords:m(P+"begin"),builtin:m(B),atoms:m("false true null unknown"),dateSQL:m("date time timestamp"),support:m("ODBCdotTable doubleQuote binaryNumber hexNumber")}),d.defineMIME("text/x-mssql",{name:"sql",client:m("$partition binary_checksum checksum connectionproperty context_info current_request_id error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big xact_state object_id"),keywords:m(P+"begin trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec go if use index holdlock nolock nowait paglock readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot tablock tablockx updlock with"),builtin:m("bigint numeric bit smallint decimal smallmoney int tinyint money float real char varchar text nchar nvarchar ntext binary varbinary image cursor timestamp hierarchyid uniqueidentifier sql_variant xml table "),atoms:m("is not null like and or in left right between inner outer join all any some cross unpivot pivot exists"),operatorChars:/^[*+\-%<>!=^\&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:/]/,backslashStringEscapes:!1,dateSQL:m("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":F}}),d.defineMIME("text/x-mysql",{name:"sql",client:m("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:m(P+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:m("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:m("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:m("date time timestamp"),support:m("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":F,"`":R,"\\":I}}),d.defineMIME("text/x-mariadb",{name:"sql",client:m("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:m(P+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group group_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:m("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:m("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:m("date time timestamp"),support:m("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":F,"`":R,"\\":I}}),d.defineMIME("text/x-sqlite",{name:"sql",client:m("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),keywords:m(P+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),builtin:m("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),atoms:m("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:m("date time timestamp datetime"),support:m("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":F,":":F,"?":F,$:F,'"':z,"`":R}}),d.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:m("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:m("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:m("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:m("commentSlashSlash decimallessFloat"),hooks:{}}),d.defineMIME("text/x-plsql",{name:"sql",client:m("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:m("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:m("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*\/+\-%<>!=~]/,dateSQL:m("date time timestamp"),support:m("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),d.defineMIME("text/x-hive",{name:"sql",keywords:m("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),builtin:m("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),atoms:m("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:m("date timestamp"),support:m("ODBCdotTable doubleQuote binaryNumber hexNumber")}),d.defineMIME("text/x-pgsql",{name:"sql",client:m("source"),keywords:m(P+"a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value ntile null nullable nullif nulls number numeric object occurrences_regex octet_length octets of off offset oids old on only open operator option options or order ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password path percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding precision prepare prepared preserve primary print_strict_params prior privileges procedural procedure procedures program public publication query quote raise range rank read reads real reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result result_oid return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns reverse revoke right role rollback rollup routine routine_catalog routine_name routine_schema routines row row_count row_number rows rowtype rule savepoint scale schema schema_name schemas scope scope_catalog scope_name scope_schema scroll search second section security select selective self sensitive sequence sequences serializable server server_name session session_user set setof sets share show similar simple size skip slice smallint snapshot some source space specific specific_name specifictype sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable stacked standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t table table_name tables tablesample tablespace temp template temporary text then ties time timestamp timezone_hour timezone_minute to token top_level_count trailing transaction transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted union unique unknown unlink unlisten unlogged unnamed unnest until untyped update upper uri usage use_column use_variable user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of values var_pop var_samp varbinary varchar variable_conflict variadic varying verbose version versioning view views volatile warning when whenever where while whitespace width_bucket window with within without work wrapper write xml xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes zone"),builtin:m("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:m("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,backslashStringEscapes:!1,dateSQL:m("date time timestamp"),support:m("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")}),d.defineMIME("text/x-gql",{name:"sql",keywords:m("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:m("false true"),builtin:m("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),d.defineMIME("text/x-gpsql",{name:"sql",client:m("source"),keywords:m("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),builtin:m("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:m("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:m("date time timestamp"),support:m("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),d.defineMIME("text/x-sparksql",{name:"sql",keywords:m("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases data dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),builtin:m("abs acos acosh add_months aggregate and any approx_count_distinct approx_percentile array array_contains array_distinct array_except array_intersect array_join array_max array_min array_position array_remove array_repeat array_sort array_union arrays_overlap arrays_zip ascii asin asinh assert_true atan atan2 atanh avg base64 between bigint bin binary bit_and bit_count bit_get bit_length bit_or bit_xor bool_and bool_or boolean bround btrim cardinality case cast cbrt ceil ceiling char char_length character_length chr coalesce collect_list collect_set concat concat_ws conv corr cos cosh cot count count_if count_min_sketch covar_pop covar_samp crc32 cume_dist current_catalog current_database current_date current_timestamp current_timezone current_user date date_add date_format date_from_unix_date date_part date_sub date_trunc datediff day dayofmonth dayofweek dayofyear decimal decode degrees delimited dense_rank div double e element_at elt encode every exists exp explode explode_outer expm1 extract factorial filter find_in_set first first_value flatten float floor forall format_number format_string from_csv from_json from_unixtime from_utc_timestamp get_json_object getbit greatest grouping grouping_id hash hex hour hypot if ifnull in initcap inline inline_outer input_file_block_length input_file_block_start input_file_name inputformat instr int isnan isnotnull isnull java_method json_array_length json_object_keys json_tuple kurtosis lag last last_day last_value lcase lead least left length levenshtein like ln locate log log10 log1p log2 lower lpad ltrim make_date make_dt_interval make_interval make_timestamp make_ym_interval map map_concat map_entries map_filter map_from_arrays map_from_entries map_keys map_values map_zip_with max max_by md5 mean min min_by minute mod monotonically_increasing_id month months_between named_struct nanvl negative next_day not now nth_value ntile nullif nvl nvl2 octet_length or outputformat overlay parse_url percent_rank percentile percentile_approx pi pmod posexplode posexplode_outer position positive pow power printf quarter radians raise_error rand randn random rank rcfile reflect regexp regexp_extract regexp_extract_all regexp_like regexp_replace repeat replace reverse right rint rlike round row_number rpad rtrim schema_of_csv schema_of_json second sentences sequence sequencefile serde session_window sha sha1 sha2 shiftleft shiftright shiftrightunsigned shuffle sign signum sin sinh size skewness slice smallint some sort_array soundex space spark_partition_id split sqrt stack std stddev stddev_pop stddev_samp str_to_map string struct substr substring substring_index sum tan tanh textfile timestamp timestamp_micros timestamp_millis timestamp_seconds tinyint to_csv to_date to_json to_timestamp to_unix_timestamp to_utc_timestamp transform transform_keys transform_values translate trim trunc try_add try_divide typeof ucase unbase64 unhex uniontype unix_date unix_micros unix_millis unix_seconds unix_timestamp upper uuid var_pop var_samp variance version weekday weekofyear when width_bucket window xpath xpath_boolean xpath_double xpath_float xpath_int xpath_long xpath_number xpath_short xpath_string xxhash64 year zip_with"),atoms:m("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:m("date time timestamp"),support:m("ODBCdotTable doubleQuote zerolessFloat")}),d.defineMIME("text/x-esper",{name:"sql",client:m("source"),keywords:m("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),builtin:{},atoms:m("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:m("time"),support:m("decimallessFloat zerolessFloat binaryNumber hexNumber")})})});var Ks=Re((Hs,Us)=>{(function(d){typeof Hs=="object"&&typeof Us=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("stex",function(R,z){"use strict";function F(g,S){g.cmdState.push(S)}function I(g){return g.cmdState.length>0?g.cmdState[g.cmdState.length-1]:null}function P(g){var S=g.cmdState.pop();S&&S.closeBracket()}function m(g){for(var S=g.cmdState,T=S.length-1;T>=0;T--){var y=S[T];if(y.name!="DEFAULT")return y}return{styleIdentifier:function(){return null}}}function B(g,S,T){return function(){this.name=g,this.bracketNo=0,this.style=S,this.styles=T,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var C={};C.importmodule=B("importmodule","tag",["string","builtin"]),C.documentclass=B("documentclass","tag",["","atom"]),C.usepackage=B("usepackage","tag",["atom"]),C.begin=B("begin","tag",["atom"]),C.end=B("end","tag",["atom"]),C.label=B("label","tag",["atom"]),C.ref=B("ref","tag",["atom"]),C.eqref=B("eqref","tag",["atom"]),C.cite=B("cite","tag",["atom"]),C.bibitem=B("bibitem","tag",["atom"]),C.Bibitem=B("Bibitem","tag",["atom"]),C.RBibitem=B("RBibitem","tag",["atom"]),C.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function A(g,S){g.f=S}function E(g,S){var T;if(g.match(/^\\[a-zA-Z@]+/)){var y=g.current().slice(1);return T=C.hasOwnProperty(y)?C[y]:C.DEFAULT,T=new T,F(S,T),A(S,b),T.style}if(g.match(/^\\[$&%#{}_]/)||g.match(/^\\[,;!\/\\]/))return"tag";if(g.match("\\["))return A(S,function(_,j){return h(_,j,"\\]")}),"keyword";if(g.match("\\("))return A(S,function(_,j){return h(_,j,"\\)")}),"keyword";if(g.match("$$"))return A(S,function(_,j){return h(_,j,"$$")}),"keyword";if(g.match("$"))return A(S,function(_,j){return h(_,j,"$")}),"keyword";var $=g.next();if($=="%")return g.skipToEnd(),"comment";if($=="}"||$=="]"){if(T=I(S),T)T.closeBracket($),A(S,b);else return"error";return"bracket"}else return $=="{"||$=="["?(T=C.DEFAULT,T=new T,F(S,T),"bracket"):/\d/.test($)?(g.eatWhile(/[\w.%]/),"atom"):(g.eatWhile(/[\w\-_]/),T=m(S),T.name=="begin"&&(T.argument=g.current()),T.styleIdentifier())}function h(g,S,T){if(g.eatSpace())return null;if(T&&g.match(T))return A(S,E),"keyword";if(g.match(/^\\[a-zA-Z@]+/))return"tag";if(g.match(/^[a-zA-Z]+/))return"variable-2";if(g.match(/^\\[$&%#{}_]/)||g.match(/^\\[,;!\/]/)||g.match(/^[\^_&]/))return"tag";if(g.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(g.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var y=g.next();return y=="{"||y=="}"||y=="["||y=="]"||y=="("||y==")"?"bracket":y=="%"?(g.skipToEnd(),"comment"):"error"}function b(g,S){var T=g.peek(),y;return T=="{"||T=="["?(y=I(S),y.openBracket(T),g.eat(T),A(S,E),"bracket"):/[ \t\r]/.test(T)?(g.eat(T),null):(A(S,E),P(S),E(g,S))}return{startState:function(){var g=z.inMathMode?function(S,T){return h(S,T)}:E;return{cmdState:[],f:g}},copyState:function(g){return{cmdState:g.cmdState.slice(),f:g.f}},token:function(g,S){return S.f(g,S)},blankLine:function(g){g.f=E,g.cmdState.length=0},lineComment:"%"}}),d.defineMIME("text/x-stex","stex"),d.defineMIME("text/x-latex","stex")})});var Xs=Re(($s,Gs)=>{(function(d){typeof $s=="object"&&typeof Gs=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("toml",function(){return{startState:function(){return{inString:!1,stringType:"",lhs:!0,inArray:0}},token:function(R,z){if(!z.inString&&(R.peek()=='"'||R.peek()=="'")&&(z.stringType=R.peek(),R.next(),z.inString=!0),R.sol()&&z.inArray===0&&(z.lhs=!0),z.inString){for(;z.inString&&!R.eol();)R.peek()===z.stringType?(R.next(),z.inString=!1):R.peek()==="\\"?(R.next(),R.next()):R.match(/^.[^\\\"\']*/);return z.lhs?"property string":"string"}else{if(z.inArray&&R.peek()==="]")return R.next(),z.inArray--,"bracket";if(z.lhs&&R.peek()==="["&&R.skipTo("]"))return R.next(),R.peek()==="]"&&R.next(),"atom";if(R.peek()==="#")return R.skipToEnd(),"comment";if(R.eatSpace())return null;if(z.lhs&&R.eatWhile(function(F){return F!="="&&F!=" "}))return"property";if(z.lhs&&R.peek()==="=")return R.next(),z.lhs=!1,null;if(!z.lhs&&R.match(/^\d\d\d\d[\d\-\:\.T]*Z/))return"atom";if(!z.lhs&&(R.match("true")||R.match("false")))return"atom";if(!z.lhs&&R.peek()==="[")return z.inArray++,R.next(),"bracket";if(!z.lhs&&R.match(/^\-?\d+(?:\.\d+)?/))return"number";R.eatSpace()||R.next()}return null}}}),d.defineMIME("text/x-toml","toml")})});var Qs=Re((Zs,Ys)=>{(function(d){typeof Zs=="object"&&typeof Ys=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("vb",function(R,z){var F="error";function I(k){return new RegExp("^(("+k.join(")|(")+"))\\b","i")}var P=new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"),m=new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"),B=new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"),C=new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"),A=new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"),E=new RegExp("^[_A-Za-z][_A-Za-z0-9]*"),h=["class","module","sub","enum","select","while","if","function","get","set","property","try","structure","synclock","using","with"],b=["else","elseif","case","catch","finally"],g=["next","loop"],S=["and","andalso","or","orelse","xor","in","not","is","isnot","like"],T=I(S),y=["#const","#else","#elseif","#end","#if","#region","addhandler","addressof","alias","as","byref","byval","cbool","cbyte","cchar","cdate","cdbl","cdec","cint","clng","cobj","compare","const","continue","csbyte","cshort","csng","cstr","cuint","culng","cushort","declare","default","delegate","dim","directcast","each","erase","error","event","exit","explicit","false","for","friend","gettype","goto","handles","implements","imports","infer","inherits","interface","isfalse","istrue","lib","me","mod","mustinherit","mustoverride","my","mybase","myclass","namespace","narrowing","new","nothing","notinheritable","notoverridable","of","off","on","operator","option","optional","out","overloads","overridable","overrides","paramarray","partial","private","protected","public","raiseevent","readonly","redim","removehandler","resume","return","shadows","shared","static","step","stop","strict","then","throw","to","true","trycast","typeof","until","until","when","widening","withevents","writeonly"],$=["object","boolean","char","string","byte","sbyte","short","ushort","int16","uint16","integer","uinteger","int32","uint32","long","ulong","int64","uint64","decimal","single","double","float","date","datetime","intptr","uintptr"],_=I(y),j=I($),U='"',re=I(h),oe=I(b),te=I(g),V=I(["end"]),X=I(["do"]),Y=null;d.registerHelper("hintWords","vb",h.concat(b).concat(g).concat(S).concat(y).concat($));function N(k,Z){Z.currentIndent++}function D(k,Z){Z.currentIndent--}function c(k,Z){if(k.eatSpace())return null;var G=k.peek();if(G==="'")return k.skipToEnd(),"comment";if(k.match(/^((&H)|(&O))?[0-9\.a-f]/i,!1)){var v=!1;if((k.match(/^\d*\.\d+F?/i)||k.match(/^\d+\.\d*F?/)||k.match(/^\.\d+F?/))&&(v=!0),v)return k.eat(/J/i),"number";var p=!1;if(k.match(/^&H[0-9a-f]+/i)||k.match(/^&O[0-7]+/i)?p=!0:k.match(/^[1-9]\d*F?/)?(k.eat(/J/i),p=!0):k.match(/^0(?![\dx])/i)&&(p=!0),p)return k.eat(/L/i),"number"}return k.match(U)?(Z.tokenize=O(k.current()),Z.tokenize(k,Z)):k.match(A)||k.match(C)?null:k.match(B)||k.match(P)||k.match(T)?"operator":k.match(m)?null:k.match(X)?(N(k,Z),Z.doInCurrentLine=!0,"keyword"):k.match(re)?(Z.doInCurrentLine?Z.doInCurrentLine=!1:N(k,Z),"keyword"):k.match(oe)?"keyword":k.match(V)?(D(k,Z),D(k,Z),"keyword"):k.match(te)?(D(k,Z),"keyword"):k.match(j)||k.match(_)?"keyword":k.match(E)?"variable":(k.next(),F)}function O(k){var Z=k.length==1,G="string";return function(v,p){for(;!v.eol();){if(v.eatWhile(/[^'"]/),v.match(k))return p.tokenize=c,G;v.eat(/['"]/)}if(Z){if(z.singleLineStringErrors)return F;p.tokenize=c}return G}}function q(k,Z){var G=Z.tokenize(k,Z),v=k.current();if(v===".")return G=Z.tokenize(k,Z),G==="variable"?"variable":F;var p="[({".indexOf(v);return p!==-1&&N(k,Z),Y==="dedent"&&D(k,Z)||(p="])}".indexOf(v),p!==-1&&D(k,Z))?F:G}var L={electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:c,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1}},token:function(k,Z){k.sol()&&(Z.currentIndent+=Z.nextLineIndent,Z.nextLineIndent=0,Z.doInCurrentLine=0);var G=q(k,Z);return Z.lastToken={style:G,content:k.current()},G},indent:function(k,Z){var G=Z.replace(/^\s+|\s+$/g,"");return G.match(te)||G.match(V)||G.match(oe)?R.indentUnit*(k.currentIndent-1):k.currentIndent<0?0:k.currentIndent*R.indentUnit},lineComment:"'"};return L}),d.defineMIME("text/x-vb","vb")})});var eu=Re((Js,Vs)=>{(function(d){typeof Js=="object"&&typeof Vs=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("vbscript",function(R,z){var F="error";function I(ne){return new RegExp("^(("+ne.join(")|(")+"))\\b","i")}var P=new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]"),m=new RegExp("^((<>)|(<=)|(>=))"),B=new RegExp("^[\\.,]"),C=new RegExp("^[\\(\\)]"),A=new RegExp("^[A-Za-z][_A-Za-z0-9]*"),E=["class","sub","select","while","if","function","property","with","for"],h=["else","elseif","case"],b=["next","loop","wend"],g=I(["and","or","not","xor","is","mod","eqv","imp"]),S=["dim","redim","then","until","randomize","byval","byref","new","property","exit","in","const","private","public","get","set","let","stop","on error resume next","on error goto 0","option explicit","call","me"],T=["true","false","nothing","empty","null"],y=["abs","array","asc","atn","cbool","cbyte","ccur","cdate","cdbl","chr","cint","clng","cos","csng","cstr","date","dateadd","datediff","datepart","dateserial","datevalue","day","escape","eval","execute","exp","filter","formatcurrency","formatdatetime","formatnumber","formatpercent","getlocale","getobject","getref","hex","hour","inputbox","instr","instrrev","int","fix","isarray","isdate","isempty","isnull","isnumeric","isobject","join","lbound","lcase","left","len","loadpicture","log","ltrim","rtrim","trim","maths","mid","minute","month","monthname","msgbox","now","oct","replace","rgb","right","rnd","round","scriptengine","scriptenginebuildversion","scriptenginemajorversion","scriptengineminorversion","second","setlocale","sgn","sin","space","split","sqr","strcomp","string","strreverse","tan","time","timer","timeserial","timevalue","typename","ubound","ucase","unescape","vartype","weekday","weekdayname","year"],$=["vbBlack","vbRed","vbGreen","vbYellow","vbBlue","vbMagenta","vbCyan","vbWhite","vbBinaryCompare","vbTextCompare","vbSunday","vbMonday","vbTuesday","vbWednesday","vbThursday","vbFriday","vbSaturday","vbUseSystemDayOfWeek","vbFirstJan1","vbFirstFourDays","vbFirstFullWeek","vbGeneralDate","vbLongDate","vbShortDate","vbLongTime","vbShortTime","vbObjectError","vbOKOnly","vbOKCancel","vbAbortRetryIgnore","vbYesNoCancel","vbYesNo","vbRetryCancel","vbCritical","vbQuestion","vbExclamation","vbInformation","vbDefaultButton1","vbDefaultButton2","vbDefaultButton3","vbDefaultButton4","vbApplicationModal","vbSystemModal","vbOK","vbCancel","vbAbort","vbRetry","vbIgnore","vbYes","vbNo","vbCr","VbCrLf","vbFormFeed","vbLf","vbNewLine","vbNullChar","vbNullString","vbTab","vbVerticalTab","vbUseDefault","vbTrue","vbFalse","vbEmpty","vbNull","vbInteger","vbLong","vbSingle","vbDouble","vbCurrency","vbDate","vbString","vbObject","vbError","vbBoolean","vbVariant","vbDataObject","vbDecimal","vbByte","vbArray"],_=["WScript","err","debug","RegExp"],j=["description","firstindex","global","helpcontext","helpfile","ignorecase","length","number","pattern","source","value","count"],U=["clear","execute","raise","replace","test","write","writeline","close","open","state","eof","update","addnew","end","createobject","quit"],re=["server","response","request","session","application"],oe=["buffer","cachecontrol","charset","contenttype","expires","expiresabsolute","isclientconnected","pics","status","clientcertificate","cookies","form","querystring","servervariables","totalbytes","contents","staticobjects","codepage","lcid","sessionid","timeout","scripttimeout"],te=["addheader","appendtolog","binarywrite","end","flush","redirect","binaryread","remove","removeall","lock","unlock","abandon","getlasterror","htmlencode","mappath","transfer","urlencode"],V=U.concat(j);_=_.concat($),R.isASP&&(_=_.concat(re),V=V.concat(te,oe));var X=I(S),Y=I(T),N=I(y),D=I(_),c=I(V),O='"',q=I(E),L=I(h),k=I(b),Z=I(["end"]),G=I(["do"]),v=I(["on error resume next","exit"]),p=I(["rem"]);function ae(ne,fe){fe.currentIndent++}function ge(ne,fe){fe.currentIndent--}function se(ne,fe){if(ne.eatSpace())return"space";var ye=ne.peek();if(ye==="'"||ne.match(p))return ne.skipToEnd(),"comment";if(ne.match(/^((&H)|(&O))?[0-9\.]/i,!1)&&!ne.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i,!1)){var De=!1;if((ne.match(/^\d*\.\d+/i)||ne.match(/^\d+\.\d*/)||ne.match(/^\.\d+/))&&(De=!0),De)return ne.eat(/J/i),"number";var Ye=!1;if(ne.match(/^&H[0-9a-f]+/i)||ne.match(/^&O[0-7]+/i)?Ye=!0:ne.match(/^[1-9]\d*F?/)?(ne.eat(/J/i),Ye=!0):ne.match(/^0(?![\dx])/i)&&(Ye=!0),Ye)return ne.eat(/L/i),"number"}return ne.match(O)?(fe.tokenize=de(ne.current()),fe.tokenize(ne,fe)):ne.match(m)||ne.match(P)||ne.match(g)?"operator":ne.match(B)?null:ne.match(C)?"bracket":ne.match(v)?(fe.doInCurrentLine=!0,"keyword"):ne.match(G)?(ae(ne,fe),fe.doInCurrentLine=!0,"keyword"):ne.match(q)?(fe.doInCurrentLine?fe.doInCurrentLine=!1:ae(ne,fe),"keyword"):ne.match(L)?"keyword":ne.match(Z)?(ge(ne,fe),ge(ne,fe),"keyword"):ne.match(k)?(fe.doInCurrentLine?fe.doInCurrentLine=!1:ge(ne,fe),"keyword"):ne.match(X)?"keyword":ne.match(Y)?"atom":ne.match(c)?"variable-2":ne.match(N)?"builtin":ne.match(D)?"variable-2":ne.match(A)?"variable":(ne.next(),F)}function de(ne){var fe=ne.length==1,ye="string";return function(De,Ye){for(;!De.eol();){if(De.eatWhile(/[^'"]/),De.match(ne))return Ye.tokenize=se,ye;De.eat(/['"]/)}if(fe){if(z.singleLineStringErrors)return F;Ye.tokenize=se}return ye}}function Le(ne,fe){var ye=fe.tokenize(ne,fe),De=ne.current();return De==="."?(ye=fe.tokenize(ne,fe),De=ne.current(),ye&&(ye.substr(0,8)==="variable"||ye==="builtin"||ye==="keyword")?((ye==="builtin"||ye==="keyword")&&(ye="variable"),V.indexOf(De.substr(1))>-1&&(ye="variable-2"),ye):F):ye}var ze={electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:se,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1,ignoreKeyword:!1}},token:function(ne,fe){ne.sol()&&(fe.currentIndent+=fe.nextLineIndent,fe.nextLineIndent=0,fe.doInCurrentLine=0);var ye=Le(ne,fe);return fe.lastToken={style:ye,content:ne.current()},ye==="space"&&(ye=null),ye},indent:function(ne,fe){var ye=fe.replace(/^\s+|\s+$/g,"");return ye.match(k)||ye.match(Z)||ye.match(L)?R.indentUnit*(ne.currentIndent-1):ne.currentIndent<0?0:ne.currentIndent*R.indentUnit}};return ze}),d.defineMIME("text/vbscript","vbscript")})});var nu=Re((tu,ru)=>{(function(d){typeof tu=="object"&&typeof ru=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("yaml",function(){var R=["true","false","on","off","yes","no"],z=new RegExp("\\b(("+R.join(")|(")+"))$","i");return{token:function(F,I){var P=F.peek(),m=I.escaped;if(I.escaped=!1,P=="#"&&(F.pos==0||/\s/.test(F.string.charAt(F.pos-1))))return F.skipToEnd(),"comment";if(F.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(I.literal&&F.indentation()>I.keyCol)return F.skipToEnd(),"string";if(I.literal&&(I.literal=!1),F.sol()){if(I.keyCol=0,I.pair=!1,I.pairStart=!1,F.match("---")||F.match("..."))return"def";if(F.match(/\s*-\s+/))return"meta"}if(F.match(/^(\{|\}|\[|\])/))return P=="{"?I.inlinePairs++:P=="}"?I.inlinePairs--:P=="["?I.inlineList++:I.inlineList--,"meta";if(I.inlineList>0&&!m&&P==",")return F.next(),"meta";if(I.inlinePairs>0&&!m&&P==",")return I.keyCol=0,I.pair=!1,I.pairStart=!1,F.next(),"meta";if(I.pairStart){if(F.match(/^\s*(\||\>)\s*/))return I.literal=!0,"meta";if(F.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(I.inlinePairs==0&&F.match(/^\s*-?[0-9\.\,]+\s?$/)||I.inlinePairs>0&&F.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(F.match(z))return"keyword"}return!I.pair&&F.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(I.pair=!0,I.keyCol=F.indentation(),"atom"):I.pair&&F.match(/^:\s*/)?(I.pairStart=!0,"meta"):(I.pairStart=!1,I.escaped=P=="\\",F.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}}),d.defineMIME("text/x-yaml","yaml"),d.defineMIME("text/yaml","yaml")})});var lu=Re((iu,ou)=>{(function(d){typeof iu=="object"&&typeof ou=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineOption("scrollPastEnd",!1,function(F,I,P){P&&P!=d.Init&&(F.off("change",R),F.off("refresh",z),F.display.lineSpace.parentNode.style.paddingBottom="",F.state.scrollPastEndPadding=null),I&&(F.on("change",R),F.on("refresh",z),z(F))});function R(F,I){d.changeEnd(I).line==F.lastLine()&&z(F)}function z(F){var I="";if(F.lineCount()>1){var P=F.display.scroller.clientHeight-30,m=F.getLineHandle(F.lastLine()).height;I=P-m+"px"}F.state.scrollPastEndPadding!=I&&(F.state.scrollPastEndPadding=I,F.display.lineSpace.parentNode.style.paddingBottom=I,F.off("refresh",z),F.setSize(),F.on("refresh",z))}})});var br=Ue(We(),1),au=Ue(wa(),1),vf=Ue(bo(),1),yf=Ue(xo(),1),bf=Ue(za(),1),xf=Ue(Fa(),1),kf=Ue(Pa(),1),_f=Ue(Ra(),1),wf=Ue(_o(),1),Sf=Ue(ko(),1),Tf=Ue(Xa(),1),Cf=Ue(Qa(),1),Lf=Ue(ns(),1),Ef=Ue(ls(),1),Mf=Ue(us(),1),zf=Ue(ds(),1),Af=Ue(ms(),1),Df=Ue(ys(),1),Ff=Ue(ks(),1),If=Ue(Ss(),1),Of=Ue(Ls(),1),Pf=Ue(zs(),1),Nf=Ue(Ps(),1),qf=Ue(Rs(),1),Rf=Ue(js(),1),Wf=Ue(Ks(),1),Bf=Ue(Xs(),1),jf=Ue(Qs(),1),Hf=Ue(eu(),1),Uf=Ue(yi(),1),Kf=Ue(nu(),1),$f=Ue(lu(),1),wo={css:"css",c:"text/x-csrc",java:"text/x-java",scala:"text/x-scala",kotlin:"text/x-kotlin","c++":"text/x-c++src","c#":"text/x-csharp",csharp:"text/x-csharp",diff:"diff",for:"fortran",fortran:"fortran","f#":"text/x-fsharp",fsharp:"text/x-fsharp",go:"go",haskell:"haskell",hs:"haskell",html:"htmlmixed",ini:"properties",javascript:"text/javascript",json:"application/json",js:"text/javascript",jl:"text/x-julia",julia:"text/x-julia",latex:"text/x-stex",lua:"lua",md:"markdown",mdown:"markdown",markdown:"markdown",ml:"mllike",nginx:"nginx",perl:"perl",pl:"perl",powershell:"powershell",properties:"properties",ocaml:"text/x-ocaml",pascal:"text/x-pascal",pas:"text/x-pascal",php:d=>d.includes("<?php")?"php":"text/x-php",py:"python",python:"python",ruby:"ruby",rust:"rust",rb:"ruby",rs:"rust",shell:"shell",sh:"shell",stext:"text/x-stex",bash:"shell",toml:"toml",ts:"text/typescript",typescript:"text/typescript",sql:"text/x-sql",vbs:"vbscript",vbscript:"vbscript","vb.net":"text/x-vb",vbnet:"text/x-vb",xml:"xml",yaml:"yaml",yml:"yaml"};function Gf(){let d=document.querySelectorAll(".page-content pre, .comment-box .content pre");for(let R of d)su(R)}function Xf(d){let R=d.querySelectorAll("pre");for(let z of R)su(z)}function su(d){let R=d.querySelector("code[class^=language-]");d.innerHTML=d.innerHTML.replace(/<br\s*[\/]?>/gi,`
`);let z=d.textContent.trimEnd(),F="";if(R!==null){let P=R.className.replace("language-","");F=Pn(P,z)}let I=(0,br.default)(function(P){d.parentNode.replaceChild(P,d)},{value:z,mode:F,lineNumbers:!0,lineWrapping:!1,theme:Nn(),readOnly:!0});hf(I)}function hf(d){let R='<svg viewBox="0 0 24 24" width="16" height="16" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"/><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/></svg>',z=document.createElement("div");z.classList.add("CodeMirror-copy"),z.innerHTML=R,d.display.wrapper.appendChild(z),new au.default(z,{text:function(I){return d.getValue()}}).on("success",I=>{z.classList.add("success"),setTimeout(()=>{z.classList.remove("success")},240)})}function Pn(d,R){d=d.trim().replace(/^\./g,"").toLowerCase();let z=typeof wo[d];return z==="undefined"?"":z==="function"?wo[d](R):wo[d]}function Nn(){let d=document.documentElement.classList.contains("dark-mode");return window.codeTheme||(d?"darcula":"default")}function Zf(d,R,z){return(0,br.default)(d,{value:R,mode:Pn(z,R),lineNumbers:!0,lineWrapping:!1,theme:Nn(),readOnly:!0})}function Yf(d,R){let z=d.textContent;return(0,br.default)(function(F){d.parentNode.insertBefore(F,d),d.style.display="none"},{value:z,mode:Pn(R,z),lineNumbers:!0,lineWrapping:!1,theme:Nn()})}function Qf(d,R){return br.default.fromTextArea(d,{mode:Pn(R,d.value),lineNumbers:!0,lineWrapping:!1,theme:Nn()})}function Jf(d,R,z){d.setOption("mode",Pn(R,z))}function Vf(d,R){d.setValue(R),setTimeout(()=>{mf(d)},10)}function mf(d){d.refresh()}function ed(d){let z={value:d.textContent,mode:"markdown",lineNumbers:!0,lineWrapping:!0,theme:Nn(),scrollPastEnd:!0};return window.$events.emitPublic(d,"editor-markdown-cm::pre-init",{config:z}),(0,br.default)(function(F){d.parentNode.insertBefore(F,d),d.style.display="none"},z)}function td(){return br.default.keyMap.default==br.default.keyMap.macDefault?"Cmd":"Ctrl"}export{td as getMetaKey,Gf as highlight,Xf as highlightWithin,Qf as inlineEditor,ed as markdownEditor,Yf as popupEditor,Vf as setContent,Jf as setMode,mf as updateLayout,Zf as wysiwygView};
/*!
* clipboard.js v2.0.11
* https://clipboardjs.com/
*
* Licensed MIT © Zeno Rocha
*/
//# sourceMappingURL=code.js.map