var Af=Object.create;var wl=Object.defineProperty;var Df=Object.getOwnPropertyDescriptor;var Ff=Object.getOwnPropertyNames;var If=Object.getPrototypeOf,qf=Object.prototype.hasOwnProperty;var qe=(u,P)=>()=>(P||u((P={exports:{}}).exports,P),P.exports);var Of=(u,P,z,O)=>{if(P&&typeof P=="object"||typeof P=="function")for(let S of Ff(P))!qf.call(u,S)&&S!==z&&wl(u,S,{get:()=>P[S],enumerable:!(O=Df(P,S))||O.enumerable});return u};var We=(u,P,z)=>(z=u!=null?Af(If(u)):{},Of(P||!u||!u.__esModule?wl(z,"default",{value:u,enumerable:!0}):z,u));var Oe=qe((vo,yo)=>{(function(u,P){typeof vo=="object"&&typeof yo<"u"?yo.exports=P():typeof define=="function"&&define.amd?define(P):(u=u||self,u.CodeMirror=P())})(vo,function(){"use strict";var u=navigator.userAgent,P=navigator.platform,z=/gecko\/\d/i.test(u),O=/MSIE \d/.test(u),S=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(u),A=/Edge\/(\d+)/.exec(u),p=O||S||A,D=p&&(O?document.documentMode||6:+(A||S)[1]),w=!A&&/WebKit\//.test(u),L=w&&/Qt\/\d+\.\d+/.test(u),T=!A&&/Chrome\/(\d+)/.exec(u),m=T&&+T[1],b=/Opera\//.test(u),d=/Apple Computer/.test(navigator.vendor),g=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(u),k=/PhantomJS/.test(u),y=d&&(/Mobile\/\w+/.test(u)||navigator.maxTouchPoints>2),U=/Android/.test(u),_=y||U||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(u),W=y||/Mac/.test(P),Z=/\bCrOS\b/.test(u),ee=/win/i.test(P),oe=b&&u.match(/Version\/(\d*\.\d*)/);oe&&(oe=Number(oe[1])),oe&&oe>=15&&(b=!1,w=!0);var Q=W&&(L||b&&(oe==null||oe<12.11)),j=z||p&&D>=9;function N(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var G=function(e,t){var n=e.className,r=N(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 R(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function I(e,t){return R(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)return a+(t-o);a+=l-o,a+=n-a%n,o=l+1}}var Te=function(){this.id=null,this.f=null,this.time=0,this.handler=_e(this.onTimeout,this)};Te.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},Te.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n=t)return r+Math.min(a,t-i);if(i+=o-r,i+=n-i%n,r=o+1,i>=t)return r}}var Ne=[""];function $e(e){for(;Ne.length<=e;)Ne.push(Ee(Ne)+" ");return Ne[e]}function Ee(e){return e[e.length-1]}function rt(e,t){for(var n=[],r=0;r"\x80"&&(e.toUpperCase()!=e.toLowerCase()||le.test(e))}function Fe(e,t){return t?t.source.indexOf("\\w")>-1&&ne(e)?!0:t.test(e):ne(e)}function be(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Le=/[\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 ke(e){return e.charCodeAt(0)>=768&&Le.test(e)}function Pe(e,t,n){for(;(n<0?t>0:tn?-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 Dt(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;ot||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),a.level==1?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}var qt=null;function Ot(e,t,n){var r;qt=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&n=="before"?r=i:qt=i),o.from==t&&(o.from!=o.to&&n!="before"?r=i:qt=i)}return r??qt}var _i=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]/,a=/[Lb1n]/,l=/[1n]/;function s(f,E,F){this.level=f,this.from=E,this.to=F}return function(f,E){var F=E=="ltr"?"L":"R";if(f.length==0||E=="ltr"&&!r.test(f))return!1;for(var X=f.length,K=[],re=0;re-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function Xe(e,t){var n=tn(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function xt(e){e.prototype.on=function(t,n){me(this,t,n)},e.prototype.off=function(t,n){mt(this,t,n)}}function gt(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function kr(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function rn(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Jt(e){gt(e),kr(e)}function wt(e){return e.target||e.srcElement}function nn(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),W&&e.ctrlKey&&t==1&&(t=3),t}var ki=function(){if(p&&D<9)return!1;var e=c("div");return"draggable"in e||"dragDrop"in e}(),Pt;function wi(e){if(Pt==null){var t=c("span","\u200B");I(e,c("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Pt=t.offsetWidth<=1&&t.offsetHeight>2&&!(p&&D<8))}var n=Pt?c("span","\u200B"):c("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}var Fr;function Rn(e){if(Fr!=null)return Fr;var t=I(e,document.createTextNode("A\u062EA")),n=$(t,0,1).getBoundingClientRect(),r=$(t,1,2).getBoundingClientRect();return R(e),!n||n.left==n.right?!1:Fr=r.right-n.right<3}var on=` 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),a=o.indexOf("\r");a!=-1?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},sr=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},$t=function(){var e=c("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Kt=null;function Wn(e){if(Kt!=null)return Kt;var t=I(e,c("span","x")),n=t.getBoundingClientRect(),r=$(t,0,1).getBoundingClientRect();return Kt=Math.abs(n.left-r.left)>1}var Wt={},ur={};function jn(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Wt[e]=t}function Ir(e,t){ur[e]=t}function zt(e){if(typeof e=="string"&&ur.hasOwnProperty(e))e=ur[e];else if(e&&typeof e.name=="string"&&ur.hasOwnProperty(e.name)){var t=ur[e.name];typeof t=="string"&&(t={name:t}),e=J(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return zt("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return zt("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Vt(e,t){t=zt(t);var n=Wt[t.name];if(!n)return Vt(e,"text/plain");var r=n(e,t);if(cr.hasOwnProperty(t.name)){var i=cr[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 a in t.modeProps)r[a]=t.modeProps[a];return r}var cr={};function Bn(e,t){var n=cr.hasOwnProperty(e)?cr[e]:cr[e]={};ue(t,n)}function er(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 fr(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 an(e,t,n){return e.startState?e.startState(t,n):!0}var et=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};et.prototype.eol=function(){return this.pos>=this.string.length},et.prototype.sol=function(){return this.pos==this.lineStart},et.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},et.prototype.next=function(){if(this.post},et.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},et.prototype.skipToEnd=function(){this.pos=this.string.length},et.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},et.prototype.backUp=function(e){this.pos-=e},et.prototype.column=function(){return this.lastColumnPos0?null:(o&&t!==!1&&(this.pos+=o[0].length),o)}},et.prototype.current=function(){return this.string.slice(this.start,this.pos)},et.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},et.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},et.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function xe(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=e.first&&tn?H(n,xe(e,n).text.length):Au(t,xe(e,t.line).text.length)}function Au(e,t){var n=e.ch;return n==null||n>t?H(e.line,t):n<0?H(e.line,0):e}function So(e,t){for(var n=[],r=0;rthis.maxLookAhead&&(this.maxLookAhead=e),t},Zt.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}},Zt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Zt.fromSaved=function(e,t,n){return t instanceof Hn?new Zt(e,er(e.mode,t.state),n,t.lookAhead):new Zt(e,er(e.mode,t),n)},Zt.prototype.save=function(e){var t=e!==!1?er(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Hn(t,this.maxLookAhead):t};function To(e,t,n,r){var i=[e.state.modeGen],o={};Ao(e,t.text,e.doc.mode,n,function(f,E){return i.push(f,E)},o,r);for(var a=n.state,l=function(f){n.baseTokens=i;var E=e.state.overlays[f],F=1,X=0;n.state=!0,Ao(e,t.text,E.mode,n,function(K,re){for(var ie=F;XK&&i.splice(F,1,K,i[F+1],ce),F+=2,X=Math.min(K,ce)}if(re)if(E.opaque)i.splice(ie,F-ie,K,"overlay "+re),F=ie+2;else for(;iee.options.maxHighlightLength&&er(e.doc.mode,r.state),o=To(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 ln(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new Zt(r,!0,t);var o=Du(e,t,n),a=o>r.first&&xe(r,o-1).stateAfter,l=a?Zt.fromSaved(r,a,o):new Zt(r,an(r.mode),o);return r.iter(o,t,function(s){Si(e,s.text,l);var f=l.line;s.stateAfter=f==t-1||f%5==0||f>=i.viewFrom&&ft.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 zo(e,t,n,r){var i=e.doc,o=i.mode,a;t=Me(i,t);var l=xe(i,t.line),s=ln(e,t.line,n),f=new et(l.text,e.options.tabSize,s),E;for(r&&(E=[]);(r||f.pose.options.maxHighlightLength?(l=!1,a&&Si(e,t,r,E.pos),E.pos=t.length,F=null):F=Mo(Ti(n,E,r.state,X),o),X){var K=X[0].name;K&&(F="m-"+(F?K+" "+F:K))}if(!l||f!=F){for(;sa;--l){if(l<=o.first)return o.first;var s=xe(o,l-1),f=s.stateAfter;if(f&&(!n||l+(f instanceof Hn?f.lookAhead:0)<=o.modeFrontier))return l;var E=he(s.text,null,e.options.tabSize);(i==null||r>E)&&(i=l-1,r=E)}return i}function Fu(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var i=xe(e,r).stateAfter;if(i&&(!(i instanceof Hn)||r+i.lookAhead=t:o.to>t);(r||(r=[])).push(new Un(a,o.from,s?null:o.to))}}return r}function Ru(e,t,n){var r;if(e)for(var i=0;i=t:o.to>t);if(l||o.from==t&&a.type=="bookmark"&&(!n||o.marker.insertLeft)){var s=o.from==null||(a.inclusiveLeft?o.from<=t:o.from0&&l)for(var ye=0;ye0)){var E=[s,1],F=te(f.from,l.from),X=te(f.to,l.to);(F<0||!a.inclusiveLeft&&!F)&&E.push({from:f.from,to:l.from}),(X>0||!a.inclusiveRight&&!X)&&E.push({from:l.to,to:f.to}),i.splice.apply(i,E),s+=E.length-3}}return i}function Io(e){var t=e.markedSpans;if(t){for(var n=0;nt)&&(!r||Ei(r,o.marker)<0)&&(r=o.marker)}return r}function Po(e,t,n,r,i){var o=xe(e,t),a=rr&&o.markedSpans;if(a)for(var l=0;l=0&&F<=0||E<=0&&F>=0)&&(E<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?te(f.to,n)>=0:te(f.to,n)>0)||E>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?te(f.from,r)<=0:te(f.from,r)<0)))return!0}}}function jt(e){for(var t;t=No(e);)e=t.find(-1,!0).line;return e}function Bu(e){for(var t;t=Gn(e);)e=t.find(1,!0).line;return e}function Hu(e){for(var t,n;t=Gn(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function Li(e,t){var n=xe(e,t),r=jt(n);return n==r?t:He(r)}function Ro(e,t){if(t>e.lastLine())return t;var n=xe(e,t),r;if(!dr(e,n))return t;for(;r=Gn(n);)n=r.find(1,!0).line;return He(n)+1}function dr(e,t){var n=rr&&t.markedSpans;if(n){for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=i,t.maxLine=r)})}var Or=function(e,t,n){this.text=e,qo(this,t),this.height=n?n(this):1};Or.prototype.lineNo=function(){return He(this)},xt(Or);function Uu(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Io(e),qo(e,n);var i=r?r(e):1;i!=e.height&&Rt(e,i)}function $u(e){e.parent=null,Io(e)}var Ku={},Gu={};function Wo(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Gu:Ku;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function jo(e,t){var n=B("span",null,null,w?"padding-right: .1px":null),r={pre:B("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,a=void 0;r.pos=0,r.addToken=Xu,Rn(e.display.measure)&&(a=Nt(o,e.doc.direction))&&(r.addToken=Yu(r.addToken,a)),r.map=[];var l=t!=e.display.externalMeasured&&He(o);Ju(o,r,Co(e,o,l)),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=Y(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=Y(o.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(wi(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(w){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 Xe(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=Y(r.pre.className,r.textClass||"")),r}function Zu(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 Xu(e,t,n,r,i,o,a){if(t){var l=e.splitSpaces?Qu(t,e.trailingSpace):t,s=e.cm.state.specialChars,f=!1,E;if(!s.test(t))e.col+=t.length,E=document.createTextNode(l),e.map.push(e.pos,e.pos+t.length,E),p&&D<9&&(f=!0),e.pos+=t.length;else{E=document.createDocumentFragment();for(var F=0;;){s.lastIndex=F;var X=s.exec(t),K=X?X.index-F:t.length-F;if(K){var re=document.createTextNode(l.slice(F,F+K));p&&D<9?E.appendChild(c("span",[re])):E.appendChild(re),e.map.push(e.pos,e.pos+K,re),e.col+=K,e.pos+=K}if(!X)break;F+=K+1;var ie=void 0;if(X[0]==" "){var ce=e.cm.options.tabSize,de=ce-e.col%ce;ie=E.appendChild(c("span",$e(de),"cm-tab")),ie.setAttribute("role","presentation"),ie.setAttribute("cm-text"," "),e.col+=de}else X[0]=="\r"||X[0]==` `?(ie=E.appendChild(c("span",X[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),ie.setAttribute("cm-text",X[0]),e.col+=1):(ie=e.cm.options.specialCharPlaceholder(X[0]),ie.setAttribute("cm-text",X[0]),p&&D<9?E.appendChild(c("span",[ie])):E.appendChild(ie),e.col+=1);e.map.push(e.pos,e.pos+1,ie),e.pos++}}if(e.trailingSpace=l.charCodeAt(t.length-1)==32,n||r||i||f||o||a){var ge=n||"";r&&(ge+=r),i&&(ge+=i);var pe=c("span",[E],ge,o);if(a)for(var ye in a)a.hasOwnProperty(ye)&&ye!="style"&&ye!="class"&&pe.setAttribute(ye,a[ye]);return e.content.appendChild(pe)}e.content.appendChild(E)}}function Qu(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;if&&F.from<=f));X++);if(F.to>=E)return e(n,r,i,o,a,l,s);e(n,r.slice(0,F.to-f),i,o,null,l,s),o=null,r=r.slice(F.to-f),f=F.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 Ju(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(!r){for(var a=1;as||Ie.collapsed&&we.to==s&&we.from==s)){if(we.to!=null&&we.to!=s&&K>we.to&&(K=we.to,ie=""),Ie.className&&(re+=" "+Ie.className),Ie.css&&(X=(X?X+";":"")+Ie.css),Ie.startStyle&&we.from==s&&(ce+=" "+Ie.startStyle),Ie.endStyle&&we.to==K&&(ye||(ye=[])).push(Ie.endStyle,we.to),Ie.title&&((ge||(ge={})).title=Ie.title),Ie.attributes)for(var Ze in Ie.attributes)(ge||(ge={}))[Ze]=Ie.attributes[Ze];Ie.collapsed&&(!de||Ei(de.marker,Ie)<0)&&(de=we)}else we.from>s&&K>we.from&&(K=we.from)}if(ye)for(var ft=0;ft=l)break;for(var At=Math.min(l,K);;){if(E){var Ct=s+E.length;if(!de){var it=Ct>At?E.slice(0,At-s):E;t.addToken(t,it,F?F+re:re,ce,s+it.length==K?ie:"",X,ge)}if(Ct>=At){E=E.slice(At-s),s=At;break}s=Ct,ce=""}E=i.slice(o,o=n[f++]),F=Wo(n[f++],t.cm.options)}}}function Ho(e,t,n){this.line=t,this.rest=Hu(t),this.size=this.rest?He(Ee(this.rest))-n+1:1,this.node=this.text=null,this.hidden=dr(e,t)}function Xn(e,t,n){for(var r=[],i,o=t;o2&&o.push((s.bottom+f.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Qo(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;rn)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function uc(e,t){t=jt(t);var n=He(t),r=e.display.externalMeasured=new Ho(e.doc,t,n);r.lineN=n;var i=r.built=jo(e,r);return r.text=i.pre,I(e.display.lineMeasure,i.pre),r}function Yo(e,t,n,r){return Qt(e,Pr(e,t),n,r)}function Ii(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(o=s-l,i=o-1,t>=s&&(a="right")),i!=null){if(r=e[f+2],l==s&&n==(r.insertLeft?"left":"right")&&(a=n),n=="left"&&i==0)for(;f&&e[f-2]==e[f-3]&&e[f-1].insertLeft;)r=e[(f-=3)+2],a="left";if(n=="right"&&i==s-l)for(;f=0&&(n=e[i]).left==n.right;i--);return n}function fc(e,t,n,r){var i=Vo(t.map,n,r),o=i.node,a=i.start,l=i.end,s=i.collapse,f;if(o.nodeType==3){for(var E=0;E<4;E++){for(;a&&ke(t.line.text.charAt(i.coverStart+a));)--a;for(;i.coverStart+l0&&(s=r="right");var F;e.options.lineWrapping&&(F=o.getClientRects()).length>1?f=F[r=="right"?F.length-1:0]:f=o.getBoundingClientRect()}if(p&&D<9&&!a&&(!f||!f.left&&!f.right)){var X=o.parentNode.getClientRects()[0];X?f={left:X.left,right:X.left+Wr(e.display),top:X.top,bottom:X.bottom}:f=Jo}for(var K=f.top-t.rect.top,re=f.bottom-t.rect.top,ie=(K+re)/2,ce=t.view.measure.heights,de=0;de=r.text.length?(s=r.text.length,f="before"):s<=0&&(s=0,f="after"),!l)return a(f=="before"?s-1:s,f=="before");function E(re,ie,ce){var de=l[ie],ge=de.level==1;return a(ce?re-1:re,ge!=ce)}var F=Ot(l,s,f),X=qt,K=E(s,F,f=="before");return X!=null&&(K.other=E(s,X,f!="before")),K}function oa(e,t){var n=0;t=Me(e.doc,t),e.options.lineWrapping||(n=Wr(e.display)*t.ch);var r=xe(e.doc,t.line),i=nr(r)+Qn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Oi(e,t,n,r,i){var o=H(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Ni(e,t,n){var r=e.doc;if(n+=e.display.viewOffset,n<0)return Oi(r.first,0,null,-1,-1);var i=Gt(r,n),o=r.first+r.size-1;if(i>o)return Oi(r.first+r.size-1,xe(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=xe(r,i);;){var l=pc(e,a,i,t,n),s=ju(a,l.ch+(l.xRel>0||l.outside>0?1:0));if(!s)return l;var f=s.find(1);if(f.line==i)return f;a=xe(r,i=f.line)}}function aa(e,t,n,r){r-=qi(t);var i=t.text.length,o=Ae(function(a){return Qt(e,n,a-1).bottom<=r},i,0);return i=Ae(function(a){return Qt(e,n,a).top>r},o,i),{begin:o,end:i}}function la(e,t,n,r){n||(n=Pr(e,t));var i=Yn(e,t,Qt(e,n,r),"line").top;return aa(e,t,n,i)}function Pi(e,t,n,r){return e.bottom<=n?!1:e.top>n?!0:(r?e.left:e.right)>t}function pc(e,t,n,r,i){i-=nr(t);var o=Pr(e,t),a=qi(t),l=0,s=t.text.length,f=!0,E=Nt(t,e.doc.direction);if(E){var F=(e.options.lineWrapping?mc:hc)(e,t,n,o,E,r,i);f=F.level!=1,l=f?F.from:F.to-1,s=f?F.to:F.from-1}var X=null,K=null,re=Ae(function(Ce){var we=Qt(e,o,Ce);return we.top+=a,we.bottom+=a,Pi(we,r,i,!1)?(we.top<=i&&we.left<=r&&(X=Ce,K=we),!0):!1},l,s),ie,ce,de=!1;if(K){var ge=r-K.left=ye.bottom?1:0}return re=Pe(t.text,re,1),Oi(n,re,ce,de,r-ie)}function hc(e,t,n,r,i,o,a){var l=Ae(function(F){var X=i[F],K=X.level!=1;return Pi(Bt(e,H(n,K?X.to:X.from,K?"before":"after"),"line",t,r),o,a,!0)},0,i.length-1),s=i[l];if(l>0){var f=s.level!=1,E=Bt(e,H(n,f?s.from:s.to,f?"after":"before"),"line",t,r);Pi(E,o,a,!0)&&E.top>a&&(s=i[l-1])}return s}function mc(e,t,n,r,i,o,a){var l=aa(e,t,r,a),s=l.begin,f=l.end;/\s/.test(t.text.charAt(f-1))&&f--;for(var E=null,F=null,X=0;X=f||K.to<=s)){var re=K.level!=1,ie=Qt(e,r,re?Math.min(f,K.to)-1:Math.max(s,K.from)).right,ce=iece)&&(E=K,F=ce)}}return E||(E=i[i.length-1]),E.fromf&&(E={from:E.from,to:f,level:E.level}),E}var Sr;function Rr(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Sr==null){Sr=c("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Sr.appendChild(document.createTextNode("x")),Sr.appendChild(c("br"));Sr.appendChild(document.createTextNode("x"))}I(e.measure,Sr);var n=Sr.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),R(e.measure),n||1}function Wr(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=c("span","xxxxxxxxxx"),n=c("pre",[t],"CodeMirror-line-like");I(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Ri(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var l=e.display.gutterSpecs[a].className;n[l]=o.offsetLeft+o.clientLeft+i,r[l]=o.clientWidth}return{fixedPos:Wi(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Wi(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function sa(e){var t=Rr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Wr(e.display)-3);return function(i){if(dr(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a0&&(f=xe(e.doc,s.line).text).length==s.ch){var E=he(f,f.length,e.options.tabSize)-f.length;s=H(s.line,Math.max(0,Math.round((o-Xo(e.display).left)/Wr(e.display))-E))}return s}function Cr(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var n=e.display.view,r=0;rt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)rr&&Li(e.doc,t)i.viewFrom?hr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)hr(e);else if(t<=i.viewFrom){var o=Vn(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):hr(e)}else if(n>=i.viewTo){var a=Vn(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):hr(e)}else{var l=Vn(e,t,t,-1),s=Vn(e,n,n+r,1);l&&s?(i.view=i.view.slice(0,l.index).concat(Xn(e,l.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=r):hr(e)}var f=i.externalMeasured;f&&(n=i.lineN&&t=r.viewTo)){var o=r.view[Cr(e,t)];if(o.node!=null){var a=o.changes||(o.changes=[]);Se(a,n)==-1&&a.push(n)}}}function hr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Vn(e,t,n,r){var i=Cr(e,t),o,a=e.display.view;if(!rr||n==e.doc.first+e.doc.size)return{index:i,lineN:n};for(var l=e.display.viewFrom,s=0;s0){if(i==a.length-1)return null;o=l+a[i].size-t,i++}else o=l-t;t+=o,n+=o}for(;Li(e.doc,n)!=n;){if(i==(r<0?0:a.length-1))return null;n+=r*a[i-(r<0?1:0)].size,i+=r}return{index:i,lineN:n}}function gc(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.viewFromn&&(r.view=r.view.slice(0,Cr(e,n)))),r.viewTo=n}function ua(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||s.to().line0?a:e.defaultCharWidth())+"px"}if(r.other){var l=n.appendChild(c("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));l.style.display="",l.style.left=r.other.left+"px",l.style.top=r.other.top+"px",l.style.height=(r.other.bottom-r.other.top)*.85+"px"}}function ei(e,t){return e.top-t.top||e.left-t.left}function vc(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=Xo(e.display),l=a.left,s=Math.max(r.sizerWidth,wr(e)-r.sizer.offsetLeft)-a.right,f=i.direction=="ltr";function E(pe,ye,Ce,we){ye<0&&(ye=0),ye=Math.round(ye),we=Math.round(we),o.appendChild(c("div",null,"CodeMirror-selected","position: absolute; left: "+pe+`px; top: `+ye+"px; width: "+(Ce??s-pe)+`px; height: `+(we-ye)+"px"))}function F(pe,ye,Ce){var we=xe(i,pe),Ie=we.text.length,Ze,ft;function Je(it,Et){return Jn(e,H(pe,it),"div",we,Et)}function At(it,Et,pt){var lt=la(e,we,null,it),ot=Et=="ltr"==(pt=="after")?"left":"right",tt=pt=="after"?lt.begin:lt.end-(/\s/.test(we.text.charAt(lt.end-1))?2:1);return Je(tt,ot)[ot]}var Ct=Nt(we,i.direction);return Dt(Ct,ye||0,Ce??Ie,function(it,Et,pt,lt){var ot=pt=="ltr",tt=Je(it,ot?"left":"right"),Lt=Je(Et-1,ot?"right":"left"),Vr=ye==null&&it==0,xr=Ce==null&&Et==Ie,yt=lt==0,Yt=!Ct||lt==Ct.length-1;if(Lt.top-tt.top<=3){var dt=(f?Vr:xr)&&yt,mo=(f?xr:Vr)&&Yt,lr=dt?l:(ot?tt:Lt).left,Ar=mo?s:(ot?Lt:tt).right;E(lr,tt.top,Ar-lr,tt.bottom)}else{var Dr,kt,en,go;ot?(Dr=f&&Vr&&yt?l:tt.left,kt=f?s:At(it,pt,"before"),en=f?l:At(Et,pt,"after"),go=f&&xr&&Yt?s:Lt.right):(Dr=f?At(it,pt,"before"):l,kt=!f&&Vr&&yt?s:tt.right,en=!f&&xr&&Yt?l:Lt.left,go=f?At(Et,pt,"after"):s),E(Dr,tt.top,kt-Dr,tt.bottom),tt.bottom0?t.blinker=setInterval(function(){e.hasFocus()||jr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function fa(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||$i(e))}function Ui(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&jr(e))},100)}function $i(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Xe(e,"focus",e,t),e.state.focused=!0,V(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),w&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Hi(e))}function jr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Xe(e,"blur",e,t),e.state.focused=!1,G(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function ti(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,a=0;a.005||K<-.005)&&(ie.display.sizerWidth){var ie=Math.ceil(E/Wr(e.display));ie>e.display.maxLineLength&&(e.display.maxLineLength=ie,e.display.maxLine=l.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function da(e){if(e.widgets)for(var t=0;t=a&&(o=Gt(t,nr(xe(t,s))-e.wrapper.clientHeight),a=s)}return{from:o,to:Math.max(a,o+1)}}function yc(e,t){if(!Ve(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null,o=n.wrapper.ownerDocument;if(t.top+r.top<0?i=!0:t.bottom+r.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),i!=null&&!k){var a=c("div","\u200B",null,`position: absolute; top: `+(t.top-n.viewOffset-Qn(e.display))+`px; height: `+(t.bottom-t.top+Xt(e)+n.barHeight)+`px; left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(i),e.display.lineSpace.removeChild(a)}}}function bc(e,t,n,r){r==null&&(r=0);var i;!e.options.lineWrapping&&t==n&&(n=t.sticky=="before"?H(t.line,t.ch+1,"before"):t,t=t.ch?H(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,l=Bt(e,t),s=!n||n==t?l:Bt(e,n);i={left:Math.min(l.left,s.left),top:Math.min(l.top,s.top)-r,right:Math.max(l.left,s.left),bottom:Math.max(l.bottom,s.bottom)+r};var f=Ki(e,i),E=e.doc.scrollTop,F=e.doc.scrollLeft;if(f.scrollTop!=null&&(mn(e,f.scrollTop),Math.abs(e.doc.scrollTop-E)>1&&(a=!0)),f.scrollLeft!=null&&(Er(e,f.scrollLeft),Math.abs(e.doc.scrollLeft-F)>1&&(a=!0)),!a)break}return i}function xc(e,t){var n=Ki(e,t);n.scrollTop!=null&&mn(e,n.scrollTop),n.scrollLeft!=null&&Er(e,n.scrollLeft)}function Ki(e,t){var n=e.display,r=Rr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:n.scroller.scrollTop,o=Fi(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var l=e.doc.height+Di(n),s=t.topl-r;if(t.topi+o){var E=Math.min(t.top,(f?l:t.bottom)-o);E!=i&&(a.scrollTop=E)}var F=e.options.fixedGutter?0:n.gutters.offsetWidth,X=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:n.scroller.scrollLeft-F,K=wr(e)-n.gutters.offsetWidth,re=t.right-t.left>K;return re&&(t.right=t.left+K),t.left<10?a.scrollLeft=0:t.leftK+X-3&&(a.scrollLeft=t.right+(re?0:10)-K),a}function Gi(e,t){t!=null&&(ni(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Br(e){ni(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function hn(e,t,n){(t!=null||n!=null)&&ni(e),t!=null&&(e.curOp.scrollLeft=t),n!=null&&(e.curOp.scrollTop=n)}function _c(e,t){ni(e),e.curOp.scrollToPos=t}function ni(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=oa(e,t.from),r=oa(e,t.to);pa(e,n,r,t.margin)}}function pa(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});hn(e,i.scrollLeft,i.scrollTop)}function mn(e,t){Math.abs(e.doc.scrollTop-t)<2||(z||Xi(e,{top:t}),ha(e,t,!0),z&&Xi(e),yn(e,100))}function ha(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function 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,ba(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function gn(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Di(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+Xt(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Lr=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),me(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),me(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,p&&D<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Lr.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}},Lr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Lr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Lr.prototype.zeroWidthHack=function(){var e=W&&!g?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Te,this.disableVert=new Te},Lr.prototype.enableZeroWidthBar=function(e,t,n){e.style.visibility="";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.visibility="hidden":t.set(1e3,r)}t.set(1e3,r)},Lr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var vn=function(){};vn.prototype.update=function(){return{bottom:0,right:0}},vn.prototype.setScrollLeft=function(){},vn.prototype.setScrollTop=function(){},vn.prototype.clear=function(){};function Hr(e,t){t||(t=gn(e));var n=e.display.barWidth,r=e.display.barHeight;ma(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&ti(e),ma(e,gn(e)),n=e.display.barWidth,r=e.display.barHeight}function ma(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 ga={native:Lr,null:vn};function va(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&G(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new ga[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),me(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):mn(e,t)},e),e.display.scrollbars.addClass&&V(e.display.wrapper,e.display.scrollbars.addClass)}var kc=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:++kc,markArrays:null},Vu(e.curOp)}function Mr(e){var t=e.curOp;t&&tc(t,function(n){for(var r=0;r=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ii(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Tc(e){e.updatedDisplay=e.mustUpdate&&Zi(e.cm,e.update)}function Cc(e){var t=e.cm,n=t.display;e.updatedDisplay&&ti(t),e.barMeasure=gn(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+Xt(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-wr(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Ec(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var n=+new Date+e.options.workTime,r=ln(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 a=o.styles,l=o.text.length>e.options.maxHighlightLength?er(t.mode,r.state):null,s=To(e,o,r,!0);l&&(r.state=l),o.styles=s.styles;var f=o.styleClasses,E=s.classes;E?o.styleClasses=E:f&&(o.styleClasses=null);for(var F=!a||a.length!=o.styles.length||f!=E&&(!f||!E||f.bgClass!=E.bgClass||f.textClass!=E.textClass),X=0;!F&&Xn)return yn(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=n.viewFrom&&t.visible.to<=n.viewTo&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&ua(e)==0)return!1;xa(e)&&(hr(e),t.dims=Ri(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),rr&&(o=Li(e.doc,o),a=Ro(e.doc,a));var l=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;gc(e,o,a),n.viewOffset=nr(xe(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var s=ua(e);if(!l&&s==0&&!t.force&&n.renderedView==n.view&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo))return!1;var f=Ac(e);return s>4&&(n.lineDiv.style.display="none"),Fc(e,n.updateLineNumbers,t.dims),s>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Dc(f),R(n.cursorDiv),R(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,l&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,yn(e,400)),n.updateLineNumbers=null,!0}function ya(e,t){for(var n=t.viewport,r=!0;;r=!1){if(!r||!e.options.lineWrapping||t.oldDisplayWidth==wr(e)){if(n&&n.top!=null&&(n={top:Math.min(e.doc.height+Di(e.display)-Fi(e),n.top)}),t.visible=ri(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else r&&(t.visible=ri(e.display,e.doc,n));if(!Zi(e,t))break;ti(e);var i=gn(e);pn(e),Hr(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 ii(e,t);if(Zi(e,n)){ti(e),ya(e,n);var r=gn(e);pn(e),Hr(e,r),Yi(e,r),n.finish()}}function Fc(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function l(re){var ie=re.nextSibling;return w&&W&&e.display.currentWheelTarget==re?re.style.display="none":re.parentNode.removeChild(re),ie}for(var s=r.view,f=r.viewFrom,E=0;E-1&&(K=!1),Uo(e,F,f,n)),K&&(R(F.lineNumber),F.lineNumber.appendChild(document.createTextNode(q(e.options,f)))),a=F.node.nextSibling}f+=F.size}for(;a;)a=l(a)}function Qi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",st(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+Xt(e)+"px"}function ba(e){var t=e.display,n=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var r=Wi(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a=105&&(i.wrapper.style.clipPath="inset(0px)"),i.wrapper.setAttribute("translate","no"),p&&D<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),!w&&!(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=Ji(r.gutters,r.lineNumbers),_a(i),n.init(i)}var oi=0,or=null;p?or=-.53:z?or=15:T?or=-.7:d&&(or=-1/3);function ka(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 qc(e){var t=ka(e);return t.x*=or,t.y*=or,t}function wa(e,t){T&&m==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=ka(t),r=n.x,i=n.y,o=or;t.deltaMode===0&&(r=t.deltaX,i=t.deltaY,o=1);var a=e.display,l=a.scroller,s=l.scrollWidth>l.clientWidth,f=l.scrollHeight>l.clientHeight;if(r&&s||i&&f){if(i&&W&&w){e:for(var E=t.target,F=a.view;E!=l;E=E.parentNode)for(var X=0;X=0&&te(e,r.to())<=0)return n}return-1};var Ue=function(e,t){this.anchor=e,this.head=t};Ue.prototype.from=function(){return at(this.anchor,this.head)},Ue.prototype.to=function(){return Be(this.anchor,this.head)},Ue.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ht(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort(function(X,K){return te(X.from(),K.from())}),n=Se(t,i);for(var o=1;o0:s>=0){var f=at(l.from(),a.from()),E=Be(l.to(),a.to()),F=l.empty()?a.from()==a.head:l.from()==l.head;o<=n&&--n,t.splice(--o,2,new Ue(F?E:f,F?f:E))}}return new It(t,n)}function mr(e,t){return new It([new Ue(e,t||e)],0)}function gr(e){return e.text?H(e.from.line+e.text.length-1,Ee(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Sa(e,t){if(te(e,t.from)<0)return e;if(te(e,t.to)<=0)return gr(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+=gr(t).ch-t.to.ch),H(n,r)}function Vi(e,t){for(var n=[],r=0;r1&&e.remove(l.line+1,re-1),e.insert(l.line+1,de)}st(e,"change",e,t)}function vr(e,t,n){function r(i,o,a){if(i.linked)for(var l=0;l1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Ee(e.done)}function Ma(e,t,n,r){var i=e.history;i.undone.length=0;var o=+new Date,a,l;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&i.lastModTime>o-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(a=Pc(i,i.lastOp==r)))l=Ee(a.changes),te(t.from,t.to)==0&&te(t.from,l.to)==0?l.to=gr(t):a.changes.push(ro(e,t));else{var s=Ee(i.done);for((!s||!s.ranges)&&li(e.sel,i.done),a={changes:[ro(e,t)],generation:i.generation},i.done.push(a);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=o,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,l||Xe(e,"historyAdded")}function Rc(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 Wc(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||Rc(e,o,Ee(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&&za(i.undone)}function li(e,t){var n=Ee(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Aa(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(a){a.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=a.markedSpans),++o})}function jc(e){if(!e)return null;for(var t,n=0;n-1&&(Ee(l)[F]=f[F],delete f[F])}}return r}function no(e,t,n,r){if(r){var i=e.anchor;if(n){var o=te(t,i)<0;o!=te(n,i)<0?(i=t,t=n):o!=te(t,n)<0&&(t=n)}return new Ue(i,t)}else return new Ue(n||t,t)}function si(e,t,n,r,i){i==null&&(i=e.cm&&(e.cm.display.shift||e.extend)),vt(e,new It([no(e.sel.primary(),t,n,i)],0),r)}function Fa(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:l.to>t.ch))){if(i&&(Xe(s,"beforeCursorEnter"),s.explicitlyCleared))if(o.markedSpans){--a;continue}else break;if(!s.atomic)continue;if(n){var F=s.find(r<0?1:-1),X=void 0;if((r<0?E:f)&&(F=Ra(e,F,-r,F&&F.line==t.line?o:null)),F&&F.line==t.line&&(X=te(F,n))&&(r<0?X<0:X>0))return $r(e,F,t,r,i)}var K=s.find(r<0?-1:1);return(r<0?f:E)&&(K=Ra(e,K,r,K.line==t.line?o:null)),K?$r(e,K,t,r,i):null}}return t}function ci(e,t,n,r,i){var o=r||1,a=$r(e,t,n,o,i)||!i&&$r(e,t,n,o,!0)||$r(e,t,n,-o,i)||!i&&$r(e,t,n,-o,!0);return a||(e.cantEdit=!0,H(e.first,0))}function Ra(e,t,n,r){return n<0&&t.ch==0?t.line>e.first?Me(e,H(t.line-1)):null:n>0&&t.ch==(r||xe(e,t.line)).text.length?t.line=0;--i)Ba(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else Ba(e,t)}}function Ba(e,t){if(!(t.text.length==1&&t.text[0]==""&&te(t.from,t.to)==0)){var n=Vi(e,t);Ma(e,t,n,e.cm?e.cm.curOp.id:NaN),_n(e,t,n,Ci(e,t));var r=[];vr(e,function(i,o){!o&&Se(r,i.history)==-1&&(Ka(i.history,t),r.push(i.history)),_n(i,t,null,Ci(i,t))})}}function fi(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!(r&&!n)){for(var i=e.history,o,a=e.sel,l=t=="undo"?i.done:i.undone,s=t=="undo"?i.undone:i.done,f=0;f=0;--K){var re=X(K);if(re)return re.v}}}}function Ha(e,t){if(t!=0&&(e.first+=t,e.sel=new It(rt(e.sel.ranges,function(i){return new Ue(H(i.anchor.line+t,i.anchor.ch),H(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;re.lastLine())){if(t.from.lineo&&(t={from:t.from,to:H(o,xe(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=tr(e,t.from,t.to),n||(n=Vi(e,t)),e.cm?Uc(e.cm,t,r):to(e,t,r),ui(e,n,ve),e.cantEdit&&ci(e,H(e.firstLine(),0))&&(e.cantEdit=!1)}}function Uc(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,l=!1,s=o.line;e.options.lineWrapping||(s=He(jt(xe(r,o.line))),r.iter(s,a.line+1,function(K){if(K==i.maxLine)return l=!0,!0})),r.sel.contains(t.from,t.to)>-1&&Pn(e),to(r,t,n,sa(e)),e.options.lineWrapping||(r.iter(s,o.line+t.text.length,function(K){var re=Zn(K);re>i.maxLineLength&&(i.maxLine=K,i.maxLineLength=re,i.maxLineChanged=!0,l=!1)}),l&&(e.curOp.updateMaxLine=!0)),Fu(r,o.line),yn(e,400);var f=t.text.length-(a.line-o.line)-1;t.full?St(e):o.line==a.line&&t.text.length==1&&!Ca(e.doc,t)?pr(e,o.line,"text"):St(e,o.line,a.line+1,f);var E=bt(e,"changes"),F=bt(e,"change");if(F||E){var X={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};F&&st(e,"change",e,X),E&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(X)}e.display.selForContextMenu=null}function Gr(e,t,n,r,i){var o;r||(r=n),te(r,n)<0&&(o=[r,n],n=o[0],r=o[1]),typeof t=="string"&&(t=e.splitLines(t)),Kr(e,{from:n,to:r,text:t,origin:i})}function Ua(e,t,n,r){n1||!(this.children[0]instanceof wn))){var l=[];this.collapse(l),this.children=[new wn(l)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=i.lines.length%25+25,l=a;l10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;re.display.maxLineLength&&(e.display.maxLine=f,e.display.maxLineLength=E,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&&Na(e.doc)),e&&st(e,"markerCleared",e,this,r,i),t&&Mr(e),this.parent&&this.parent.clear()}},yr.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var n,r,i=0;i0||a==0&&o.clearWhenEmpty!==!1)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=B("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Po(e,t.line,t,n,o)||t.line!=n.line&&Po(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");qu()}o.addToHistory&&Ma(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var l=t.line,s=e.cm,f;if(e.iter(l,n.line+1,function(F){s&&o.collapsed&&!s.options.lineWrapping&&jt(F)==s.display.maxLine&&(f=!0),o.collapsed&&l!=t.line&&Rt(F,0),Nu(F,new Un(o,l==t.line?t.ch:null,l==n.line?n.ch:null),e.cm&&e.cm.curOp),++l}),o.collapsed&&e.iter(t.line,n.line+1,function(F){dr(e,F)&&Rt(F,0)}),o.clearOnEnter&&me(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(Iu(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++Za,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 E=t.line;E<=n.line;E++)pr(s,E,"text");o.atomic&&Na(s.doc),st(s,"markerAdded",s,o)}return o}var Cn=function(e,t){this.markers=e,this.primary=t;for(var n=0;n=0;s--)Kr(this,r[s]);l?qa(this,l):this.cm&&Br(this.cm)}),undo:ct(function(){fi(this,"undo")}),redo:ct(function(){fi(this,"redo")}),undoSelection:ct(function(){fi(this,"undo",!0)}),redoSelection:ct(function(){fi(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=Me(this,e),t=Me(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var a=o.markedSpans;if(a)for(var l=0;l=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;re)return t=e,!0;e-=o,++n}),Me(this,H(n,t))},indexFromPos:function(e){e=Me(this,e);var t=e.ch;if(e.linet&&(t=e.from),e.to!=null&&e.to-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var E=e.dataTransfer.getData("Text");if(E){var F;if(t.state.draggingText&&!t.state.draggingText.copy&&(F=t.listSelections()),ui(t.doc,mr(n,n)),F)for(var X=0;X=0;l--)Gr(e.doc,"",r[l].from,r[l].to,"+delete");Br(e)})}function oo(e,t,n){var r=Pe(e.text,t+n,n);return r<0||r>e.text.length?null:r}function ao(e,t,n){var r=oo(e,t.ch,n);return r==null?null:new H(t.line,r,n<0?"after":"before")}function lo(e,t,n,r,i){if(e){t.doc.direction=="rtl"&&(i=-i);var o=Nt(n,t.doc.direction);if(o){var a=i<0?Ee(o):o[0],l=i<0==(a.level==1),s=l?"after":"before",f;if(a.level>0||t.doc.direction=="rtl"){var E=Pr(t,n);f=i<0?n.text.length-1:0;var F=Qt(t,E,f).top;f=Ae(function(X){return Qt(t,E,X).top==F},i<0==(a.level==1)?a.from:a.to-1,f),s=="before"&&(f=oo(n,f,1))}else f=i<0?a.to:a.from;return new H(r,f,s)}}return new H(r,i<0?n.text.length:0,i<0?"before":"after")}function of(e,t,n,r){var i=Nt(t,e.doc.direction);if(!i)return ao(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=Ot(i,n.ch,n.sticky),a=i[o];if(e.doc.direction=="ltr"&&a.level%2==0&&(r>0?a.to>n.ch:a.from=a.from&&X>=E.begin)){var K=F?"before":"after";return new H(n.line,X,K)}}var re=function(de,ge,pe){for(var ye=function(Ze,ft){return ft?new H(n.line,l(Ze,1),"before"):new H(n.line,Ze,"after")};de>=0&&de0==(Ce.level!=1),Ie=we?pe.begin:l(pe.end,-1);if(Ce.from<=Ie&&Ie0?E.end:l(E.begin,-1);return ce!=null&&!(r>0&&ce==t.text.length)&&(ie=re(r>0?0:i.length-1,r,f(ce)),ie)?ie:null}var zn={selectAll:Wa,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),ve)},killLine:function(e){return Qr(e,function(t){if(t.empty()){var n=xe(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)i=new H(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),H(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=xe(e.doc,i.line-1).text;a&&(i=new H(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),H(i.line-1,a.length-1),i,"+transpose"))}}n.push(new Ue(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;re&&te(t,this.pos)==0&&n==this.button};var An,Dn;function df(e,t){var n=+new Date;return Dn&&Dn.compare(n,e,t)?(An=Dn=null,"triple"):An&&An.compare(n,e,t)?(Dn=new uo(n,e,t),An=null,"double"):(An=new uo(n,e,t),Dn=null,"single")}function cl(e){var t=this,n=t.display;if(!(Ve(t,e)||n.activeTouch&&n.input.supportsTouch())){if(n.input.ensurePolled(),n.shift=e.shiftKey,ir(n,e)){w||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));return}if(!co(t,e)){var r=Tr(t,e),i=nn(e),o=r?df(r,i):"single";se(t).focus(),i==1&&t.state.selectingText&&t.state.selectingText(e),!(r&&pf(t,i,r,o,e))&&(i==1?r?mf(t,r,o,e):wt(e)==n.scroller&>(e):i==2?(r&&si(t.doc,r),setTimeout(function(){return n.input.focus()},20)):i==3&&(j?t.display.input.onContextMenu(e):Ui(t)))}}}function pf(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,Mn(e,tl(o,i),i,function(a){if(typeof a=="string"&&(a=zn[a]),!a)return!1;var l=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),l=a(e,n)!=fe}finally{e.state.suppressEdits=!1}return l})}function hf(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(i.unit==null){var o=Z?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=W?n.metaKey:n.ctrlKey),i.moveOnDrag==null&&(i.moveOnDrag=!(W?n.altKey:n.ctrlKey)),i}function mf(e,t,n,r){p?setTimeout(_e(fa,e),0):e.curOp.focus=C(h(e));var i=hf(e,n,r),o=e.doc.sel,a;e.options.dragDrop&&ki&&!e.isReadOnly()&&n=="single"&&(a=o.contains(t))>-1&&(te((a=o.ranges[a]).from(),t)<0||t.xRel>0)&&(te(a.to(),t)>0||t.xRel<0)?gf(e,r,t,i):vf(e,r,t,i)}function gf(e,t,n,r){var i=e.display,o=!1,a=ut(e,function(f){w&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Ui(e)),mt(i.wrapper.ownerDocument,"mouseup",a),mt(i.wrapper.ownerDocument,"mousemove",l),mt(i.scroller,"dragstart",s),mt(i.scroller,"drop",a),o||(gt(f),r.addNew||si(e.doc,n,null,null,r.extend),w&&!d||p&&D==9?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()},20):i.input.focus())}),l=function(f){o=o||Math.abs(t.clientX-f.clientX)+Math.abs(t.clientY-f.clientY)>=10},s=function(){return o=!0};w&&(i.scroller.draggable=!0),e.state.draggingText=a,a.copy=!r.moveOnDrag,me(i.wrapper.ownerDocument,"mouseup",a),me(i.wrapper.ownerDocument,"mousemove",l),me(i.scroller,"dragstart",s),me(i.scroller,"drop",a),e.state.delayingBlurEvent=!0,setTimeout(function(){return i.input.focus()},20),i.scroller.dragDrop&&i.scroller.dragDrop()}function fl(e,t,n){if(n=="char")return new Ue(t,t);if(n=="word")return e.findWordAt(t);if(n=="line")return new Ue(H(t.line,0),Me(e.doc,H(t.line+1,0)));var r=n(e,t);return new Ue(r.from,r.to)}function vf(e,t,n,r){p&&Ui(e);var i=e.display,o=e.doc;gt(t);var a,l,s=o.sel,f=s.ranges;if(r.addNew&&!r.extend?(l=o.sel.contains(n),l>-1?a=f[l]:a=new Ue(n,n)):(a=o.sel.primary(),l=o.sel.primIndex),r.unit=="rectangle")r.addNew||(a=new Ue(n,n)),n=Tr(e,t,!0,!0),l=-1;else{var E=fl(e,n,r.unit);r.extend?a=no(a,E.anchor,E.head,r.extend):a=E}r.addNew?l==-1?(l=f.length,vt(o,Ht(e,f.concat([a]),l),{scroll:!1,origin:"*mouse"})):f.length>1&&f[l].empty()&&r.unit=="char"&&!r.extend?(vt(o,Ht(e,f.slice(0,l).concat(f.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),s=o.sel):io(o,l,a,De):(l=0,vt(o,new It([a],0),De),s=o.sel);var F=n;function X(pe){if(te(F,pe)!=0)if(F=pe,r.unit=="rectangle"){for(var ye=[],Ce=e.options.tabSize,we=he(xe(o,n.line).text,n.ch,Ce),Ie=he(xe(o,pe.line).text,pe.ch,Ce),Ze=Math.min(we,Ie),ft=Math.max(we,Ie),Je=Math.min(n.line,pe.line),At=Math.min(e.lastLine(),Math.max(n.line,pe.line));Je<=At;Je++){var Ct=xe(o,Je).text,it=ht(Ct,Ze,Ce);Ze==ft?ye.push(new Ue(H(Je,it),H(Je,it))):Ct.length>it&&ye.push(new Ue(H(Je,it),H(Je,ht(Ct,ft,Ce))))}ye.length||ye.push(new Ue(n,n)),vt(o,Ht(e,s.ranges.slice(0,l).concat(ye),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(pe)}else{var Et=a,pt=fl(e,pe,r.unit),lt=Et.anchor,ot;te(pt.anchor,lt)>0?(ot=pt.head,lt=at(Et.from(),pt.anchor)):(ot=pt.anchor,lt=Be(Et.to(),pt.head));var tt=s.ranges.slice(0);tt[l]=yf(e,new Ue(Me(o,lt),ot)),vt(o,Ht(e,tt,l),De)}}var K=i.wrapper.getBoundingClientRect(),re=0;function ie(pe){var ye=++re,Ce=Tr(e,pe,!0,r.unit=="rectangle");if(Ce)if(te(Ce,F)!=0){e.curOp.focus=C(h(e)),X(Ce);var we=ri(i,o);(Ce.line>=we.to||Ce.lineK.bottom?20:0;Ie&&setTimeout(ut(e,function(){re==ye&&(i.scroller.scrollTop+=Ie,ie(pe))}),50)}}function ce(pe){e.state.selectingText=!1,re=1/0,pe&&(gt(pe),i.input.focus()),mt(i.wrapper.ownerDocument,"mousemove",de),mt(i.wrapper.ownerDocument,"mouseup",ge),o.history.lastSelOrigin=null}var de=ut(e,function(pe){pe.buttons===0||!nn(pe)?ce(pe):ie(pe)}),ge=ut(e,ce);e.state.selectingText=ge,me(i.wrapper.ownerDocument,"mousemove",de),me(i.wrapper.ownerDocument,"mouseup",ge)}function yf(e,t){var n=t.anchor,r=t.head,i=xe(e.doc,n.line);if(te(n,r)==0&&n.sticky==r.sticky)return t;var o=Nt(i);if(!o)return t;var a=Ot(o,n.ch,n.sticky),l=o[a];if(l.from!=n.ch&&l.to!=n.ch)return t;var s=a+(l.from==n.ch==(l.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 E=Ot(o,r.ch,r.sticky),F=E-a||(r.ch-n.ch)*(l.level==1?-1:1);E==s-1||E==s?f=F<0:f=F>0}var X=o[s+(f?-1:0)],K=f==(X.level==1),re=K?X.from:X.to,ie=K?"after":"before";return n.ch==re&&n.sticky==ie?t:new Ue(new H(n.line,re,ie),r)}function dl(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&>(t);var a=e.display,l=a.lineDiv.getBoundingClientRect();if(o>l.bottom||!bt(e,n))return rn(t);o-=l.top-a.viewOffset;for(var s=0;s=i){var E=Gt(e.doc,o),F=e.display.gutterSpecs[s];return Xe(e,n,e,E,F.className,t),rn(t)}}}function co(e,t){return dl(e,t,"gutterClick",!0)}function pl(e,t){ir(e.display,t)||bf(e,t)||Ve(e,t,"contextmenu")||j||e.display.input.onContextMenu(t)}function bf(e,t){return bt(e,"gutterContextMenu")?dl(e,t,"gutterContextMenu",!1):!1}function hl(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),dn(e)}var Yr={toString:function(){return"CodeMirror.Init"}},ml={},mi={};function xf(e){var t=e.optionHandlers;function n(r,i,o,a){e.defaults[r]=i,o&&(t[r]=a?function(l,s,f){f!=Yr&&o(l,s,f)}:o)}e.defineOption=n,e.Init=Yr,n("value","",function(r,i){return r.setValue(i)},!0),n("mode",null,function(r,i){r.doc.modeOption=i,eo(r)},!0),n("indentUnit",2,eo,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(r){xn(r),dn(r),St(r)},!0),n("lineSeparator",null,function(r,i){if(r.doc.lineSep=i,!!i){var o=[],a=r.doc.first;r.doc.iter(function(s){for(var f=0;;){var E=s.text.indexOf(i,f);if(E==-1)break;f=E+i.length,o.push(H(a,E))}a++});for(var l=o.length-1;l>=0;l--)Gr(r.doc,i,o[l],H(o[l].line,o[l].ch+i.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(r,i,o){r.state.specialChars=new RegExp(i.source+(i.test(" ")?"":"| "),"g"),o!=Yr&&r.refresh()}),n("specialCharPlaceholder",Zu,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",!ee),n("wholeLineUpdateBefore",!0),n("theme","default",function(r){hl(r),bn(r)},!0),n("keyMap","default",function(r,i,o){var a=pi(i),l=o!=Yr&&pi(o);l&&l.detach&&l.detach(r,a),a.attach&&a.attach(r,l||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,kf,!0),n("gutters",[],function(r,i){r.display.gutterSpecs=Ji(i,r.options.lineNumbers),bn(r)},!0),n("fixedGutter",!0,function(r,i){r.display.gutters.style.left=i?Wi(r.display)+"px":"0",r.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(r){return Hr(r)},!0),n("scrollbarStyle","native",function(r){va(r),Hr(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=Ji(r.options.gutters,i),bn(r)},!0),n("firstLineNumber",1,bn,!0),n("lineNumberFormatter",function(r){return r},bn,!0),n("showCursorWhenSelecting",!1,pn,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(r,i){i=="nocursor"&&(jr(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,_f),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,pn,!0),n("singleCursorHeightPerLine",!0,pn,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,xn,!0),n("addModeClass",!1,xn,!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,xn,!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 _f(e,t,n){var r=n&&n!=Yr;if(!t!=!r){var i=e.display.dragFunctions,o=t?me:mt;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 kf(e){e.options.lineWrapping?(V(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(G(e.display.wrapper,"CodeMirror-wrap"),Mi(e)),ji(e),St(e),dn(e),setTimeout(function(){return Hr(e)},100)}function Ye(e,t){var n=this;if(!(this instanceof Ye))return new Ye(e,t);this.options=t=t?ue(t):{},ue(ml,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 Ye.inputStyles[t.inputStyle](this),o=this.display=new Ic(e,r,i,t);o.wrapper.CodeMirror=this,hl(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),va(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 Te,keySeq:null,specialChars:null},t.autofocus&&!_&&o.input.focus(),p&&D<11&&setTimeout(function(){return n.display.input.reset(!0)},20),wf(this),Vc(),zr(this),this.curOp.forceUpdate=!0,Ea(this,r),t.autofocus&&!_||this.hasFocus()?setTimeout(function(){n.hasFocus()&&!n.state.focused&&$i(n)},20):jr(this);for(var a in mi)mi.hasOwnProperty(a)&&mi[a](this,t[a],Yr);xa(this),t.finishInit&&t.finishInit(this);for(var l=0;l20*20}me(t.scroller,"touchstart",function(s){if(!Ve(e,s)&&!o(s)&&!co(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)}}),me(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),me(t.scroller,"touchend",function(s){var f=t.activeTouch;if(f&&!ir(t,s)&&f.left!=null&&!f.moved&&new Date-f.start<300){var E=e.coordsChar(t.activeTouch,"page"),F;!f.prev||a(f,f.prev)?F=new Ue(E,E):!f.prev.prev||a(f,f.prev.prev)?F=e.findWordAt(E):F=new Ue(H(E.line,0),Me(e.doc,H(E.line+1,0))),e.setSelection(F.anchor,F.head),e.focus(),gt(s)}i()}),me(t.scroller,"touchcancel",i),me(t.scroller,"scroll",function(){t.scroller.clientHeight&&(mn(e,t.scroller.scrollTop),Er(e,t.scroller.scrollLeft,!0),Xe(e,"scroll",e))}),me(t.scroller,"mousewheel",function(s){return wa(e,s)}),me(t.scroller,"DOMMouseScroll",function(s){return wa(e,s)}),me(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(s){Ve(e,s)||Jt(s)},over:function(s){Ve(e,s)||(Jc(e,s),Jt(s))},start:function(s){return Yc(e,s)},drop:ut(e,Qc),leave:function(s){Ve(e,s)||Ya(e)}};var l=t.input.getField();me(l,"keyup",function(s){return sl.call(e,s)}),me(l,"keydown",ut(e,ll)),me(l,"keypress",ut(e,ul)),me(l,"focus",function(s){return $i(e,s)}),me(l,"blur",function(s){return jr(e,s)})}var fo=[];Ye.defineInitHook=function(e){return fo.push(e)};function Fn(e,t,n,r){var i=e.doc,o;n==null&&(n="add"),n=="smart"&&(i.mode.indent?o=ln(e,t).state:n="prev");var a=e.options.tabSize,l=xe(i,t),s=he(l.text,null,a);l.stateAfter&&(l.stateAfter=null);var f=l.text.match(/^\s*/)[0],E;if(!r&&!/\S/.test(l.text))E=0,n="not";else if(n=="smart"&&(E=i.mode.indent(o,l.text.slice(f.length),l.text),E==fe||E>150)){if(!r)return;n="prev"}n=="prev"?t>i.first?E=he(xe(i,t-1).text,null,a):E=0:n=="add"?E=s+e.options.indentUnit:n=="subtract"?E=s-e.options.indentUnit:typeof n=="number"&&(E=s+n),E=Math.max(0,E);var F="",X=0;if(e.options.indentWithTabs)for(var K=Math.floor(E/a);K;--K)X+=a,F+=" ";if(Xa,s=on(t),f=null;if(l&&r.ranges.length>1)if(Ut&&Ut.text.join(` `)==t){if(r.ranges.length%Ut.text.length==0){f=[];for(var E=0;E=0;X--){var K=r.ranges[X],re=K.from(),ie=K.to();K.empty()&&(n&&n>0?re=H(re.line,re.ch-n):e.state.overwrite&&!l?ie=H(ie.line,Math.min(xe(o,ie.line).text.length,ie.ch+Ee(s).length)):l&&Ut&&Ut.lineWise&&Ut.text.join(` `)==s.join(` `)&&(re=ie=H(re.line,0)));var ce={from:re,to:ie,text:f?f[X%f.length]:s,origin:i||(l?"paste":e.state.cutIncoming>a?"cut":"+input")};Kr(e.doc,ce),st(e,"inputRead",e,ce)}t&&!l&&vl(e,t),Br(e),e.curOp.updateInput<2&&(e.curOp.updateInput=F),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function gl(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 po(t,n,0,null,"paste")}),!0}function vl(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),a=!1;if(o.electricChars){for(var l=0;l-1){a=Fn(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(xe(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Fn(e,i.head.line,"smart"));a&&st(e,"electricInput",e,i.head.line)}}}function yl(e){for(var t=[],n=[],r=0;ro&&(Fn(this,l.head.line,r,!0),o=l.head.line,a==this.doc.sel.primIndex&&Br(this));else{var s=l.from(),f=l.to(),E=Math.max(o,s.line);o=Math.min(this.lastLine(),f.line-(f.ch?0:1))+1;for(var F=E;F0&&io(this.doc,a,new Ue(s,X[a].to()),ve)}}}),getTokenAt:function(r,i){return zo(this,r,i)},getLineTokens:function(r,i){return zo(this,H(r),i,!0)},getTokenTypeAt:function(r){r=Me(this.doc,r);var i=Co(this,xe(this.doc,r.line)),o=0,a=(i.length-1)/2,l=r.ch,s;if(l==0)s=i[2];else for(;;){var f=o+a>>1;if((f?i[f*2-1]:0)>=l)a=f;else if(i[f*2+1]s&&(r=s,a=!0),l=xe(this.doc,r)}else l=r;return Yn(this,l,{top:0,left:0},i||"page",o||a).top+(a?this.doc.height-nr(l):0)},defaultTextHeight:function(){return Rr(this.display)},defaultCharWidth:function(){return Wr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(r,i,o,a,l){var s=this.display;r=Bt(this,Me(this.doc,r));var f=r.bottom,E=r.left;if(i.style.position="absolute",i.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(i),s.sizer.appendChild(i),a=="over")f=r.top;else if(a=="above"||a=="near"){var F=Math.max(s.wrapper.clientHeight,this.doc.height),X=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);(a=="above"||r.bottom+i.offsetHeight>F)&&r.top>i.offsetHeight?f=r.top-i.offsetHeight:r.bottom+i.offsetHeight<=F&&(f=r.bottom),E+i.offsetWidth>X&&(E=X-i.offsetWidth)}i.style.top=f+"px",i.style.left=i.style.right="",l=="right"?(E=s.sizer.clientWidth-i.offsetWidth,i.style.right="0px"):(l=="left"?E=0:l=="middle"&&(E=(s.sizer.clientWidth-i.offsetWidth)/2),i.style.left=E+"px"),o&&xc(this,{left:E,top:f,right:E+i.offsetWidth,bottom:f+i.offsetHeight})},triggerOnKeyDown:_t(ll),triggerOnKeyPress:_t(ul),triggerOnKeyUp:sl,triggerOnMouseDown:_t(cl),execCommand:function(r){if(zn.hasOwnProperty(r))return zn[r].call(null,this)},triggerElectric:_t(function(r){vl(this,r)}),findPosH:function(r,i,o,a){var l=1;i<0&&(l=-1,i=-i);for(var s=Me(this.doc,r),f=0;f0&&E(o.charAt(a-1));)--a;for(;l.5||this.options.lineWrapping)&&ji(this),Xe(this,"refresh",this)}),swapDoc:_t(function(r){var i=this.doc;return i.cm=null,this.state.selectingText&&this.state.selectingText(),Ea(this,r),dn(this),this.display.input.reset(),hn(this,r.scrollLeft,r.scrollTop),this.curOp.forceScroll=!0,st(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}},xt(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,a){e.registerHelper(r,i,a),n[r]._global.push({pred:o,val:a})}}function ho(e,t,n,r,i){var o=t,a=n,l=xe(e,t.line),s=i&&e.direction=="rtl"?-n:n;function f(){var ge=t.line+s;return ge=e.first+e.size?!1:(t=new H(ge,t.ch,t.sticky),l=xe(e,ge))}function E(ge){var pe;if(r=="codepoint"){var ye=l.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(ye))pe=null;else{var Ce=n>0?ye>=55296&&ye<56320:ye>=56320&&ye<57343;pe=new H(t.line,Math.max(0,Math.min(l.text.length,t.ch+n*(Ce?2:1))),-n)}}else i?pe=of(e.cm,l,t,n):pe=ao(l,t,n);if(pe==null)if(!ge&&f())t=lo(i,e.cm,l,t.line,s);else return!1;else t=pe;return!0}if(r=="char"||r=="codepoint")E();else if(r=="column")E(!0);else if(r=="word"||r=="group")for(var F=null,X=r=="group",K=e.cm&&e.cm.getHelper(t,"wordChars"),re=!0;!(n<0&&!E(!re));re=!1){var ie=l.text.charAt(t.ch)||` `,ce=Fe(ie,K)?"w":X&&ie==` `?"n":!X||/\s/.test(ie)?null:"p";if(X&&!re&&!ce&&(ce="s"),F&&F!=ce){n<0&&(n=1,E(),t.sticky="after");break}if(ce&&(F=ce),n>0&&!E(!re))break}var de=ci(e,t,o,a,!0);return ze(o,de)&&(de.hitSide=!0),de}function _l(e,t,n,r){var i=e.doc,o=t.left,a;if(r=="page"){var l=Math.min(e.display.wrapper.clientHeight,se(e).innerHeight||i(e).documentElement.clientHeight),s=Math.max(l-.5*Rr(e.display),3);a=(n>0?t.bottom:t.top)+n*s}else r=="line"&&(a=n>0?t.bottom+3:t.top-3);for(var f;f=Ni(e,o,a),!!f.outside;){if(n<0?a<=0:a>=i.height){f.hitSide=!0;break}a+=n*5}return f}var Ke=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Te,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ke.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;i.contentEditable=!0,bl(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize);function o(l){for(var s=l.target;s;s=s.parentNode){if(s==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(s.className))break}return!1}me(i,"paste",function(l){!o(l)||Ve(r,l)||gl(l,r)||D<=11&&setTimeout(ut(r,function(){return t.updateFromDOM()}),20)}),me(i,"compositionstart",function(l){t.composing={data:l.data,done:!1}}),me(i,"compositionupdate",function(l){t.composing||(t.composing={data:l.data,done:!1})}),me(i,"compositionend",function(l){t.composing&&(l.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),me(i,"touchstart",function(){return n.forceCompositionEnd()}),me(i,"input",function(){t.composing||t.readFromDOMSoon()});function a(l){if(!(!o(l)||Ve(r,l))){if(r.somethingSelected())gi({lineWise:!1,text:r.getSelections()}),l.type=="cut"&&r.replaceSelection("",null,"cut");else if(r.options.lineWiseCopyCut){var s=yl(r);gi({lineWise:!0,text:s.text}),l.type=="cut"&&r.operation(function(){r.setSelections(s.ranges,0,ve),r.replaceSelection("",null,"cut")})}else return;if(l.clipboardData){l.clipboardData.clearData();var f=Ut.text.join(` `);if(l.clipboardData.setData("Text",f),l.clipboardData.getData("Text")==f){l.preventDefault();return}}var E=xl(),F=E.firstChild;r.display.lineSpace.insertBefore(E,r.display.lineSpace.firstChild),F.value=Ut.text.join(` `);var X=C(i.ownerDocument);x(F),setTimeout(function(){r.display.lineSpace.removeChild(E),X.focus(),X==i&&n.showPrimarySelection()},50)}}me(i,"copy",a),me(i,"cut",a)},Ke.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Ke.prototype.prepareSelection=function(){var e=ca(this.cm,!1);return e.focus=C(this.div.ownerDocument)==this.div,e},Ke.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Ke.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ke.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&&kl(t,r)||{node:l[0].measure.map[2],offset:0},f=i.linee.firstLine()&&(r=H(r.line-1,xe(e.doc,r.line-1).length)),i.ch==xe(e.doc,i.line).text.length&&i.linet.viewTo-1)return!1;var o,a,l;r.line==t.viewFrom||(o=Cr(e,r.line))==0?(a=He(t.view[0].line),l=t.view[0].node):(a=He(t.view[o].line),l=t.view[o-1].node.nextSibling);var s=Cr(e,i.line),f,E;if(s==t.view.length-1?(f=t.viewTo-1,E=t.lineDiv.lastChild):(f=He(t.view[s+1].line)-1,E=t.view[s+1].node.previousSibling),!l)return!1;for(var F=e.doc.splitLines(Cf(e,l,E,a,f)),X=tr(e.doc,H(a,0),H(f,xe(e.doc,f).text.length));F.length>1&&X.length>1;)if(Ee(F)==Ee(X))F.pop(),X.pop(),f--;else if(F[0]==X[0])F.shift(),X.shift(),a++;else break;for(var K=0,re=0,ie=F[0],ce=X[0],de=Math.min(ie.length,ce.length);Kr.ch&&ge.charCodeAt(ge.length-re-1)==pe.charCodeAt(pe.length-re-1);)K--,re++;F[F.length-1]=ge.slice(0,ge.length-re).replace(/^\u200b+/,""),F[0]=F[0].slice(K).replace(/\u200b+$/,"");var Ce=H(a,K),we=H(f,X.length?Ee(X).length-re:0);if(F.length>1||F[0]||te(Ce,we))return Gr(e.doc,F,Ce,we,"+input"),!0},Ke.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ke.prototype.reset=function(){this.forceCompositionEnd()},Ke.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ke.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))},Ke.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Mt(this.cm,function(){return St(e.cm)})},Ke.prototype.setUneditable=function(e){e.contentEditable="false"},Ke.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||ut(this.cm,po)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},Ke.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Ke.prototype.onContextMenu=function(){},Ke.prototype.resetPosition=function(){},Ke.prototype.needsContentAttribute=!0;function kl(e,t){var n=Ii(e,t.line);if(!n||n.hidden)return null;var r=xe(e.doc,t.line),i=Qo(n,r,t.line),o=Nt(r,e.doc.direction),a="left";if(o){var l=Ot(o,t.ch);a=l%2?"right":"left"}var s=Vo(i.map,t.ch,a);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 Jr(e,t){return t&&(e.bad=!0),e}function Cf(e,t,n,r,i){var o="",a=!1,l=e.doc.lineSeparator(),s=!1;function f(K){return function(re){return re.id==K}}function E(){a&&(o+=l,s&&(o+=l),a=s=!1)}function F(K){K&&(E(),o+=K)}function X(K){if(K.nodeType==1){var re=K.getAttribute("cm-text");if(re){F(re);return}var ie=K.getAttribute("cm-marker"),ce;if(ie){var de=e.findMarks(H(r,0),H(i+1,0),f(+ie));de.length&&(ce=de[0].find(0))&&F(tr(e.doc,ce.from,ce.to).join(l));return}if(K.getAttribute("contenteditable")=="false")return;var ge=/^(pre|div|p|li|table|br)$/i.test(K.nodeName);if(!/^br$/i.test(K.nodeName)&&K.textContent.length==0)return;ge&&E();for(var pe=0;pe=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),me(i,"paste",function(a){Ve(r,a)||gl(a,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())});function o(a){if(!Ve(r,a)){if(r.somethingSelected())gi({lineWise:!1,text:r.getSelections()});else if(r.options.lineWiseCopyCut){var l=yl(r);gi({lineWise:!0,text:l.text}),a.type=="cut"?r.setSelections(l.ranges,null,ve):(n.prevInput="",i.value=l.text.join(` `),x(i))}else return;a.type=="cut"&&(r.state.cutIncoming=+new Date)}}me(i,"cut",o),me(i,"copy",o),me(e.scroller,"paste",function(a){if(!(ir(e,a)||Ve(r,a))){if(!i.dispatchEvent){r.state.pasteIncoming=+new Date,n.focus();return}var l=new Event("paste");l.clipboardData=a.clipboardData,i.dispatchEvent(l)}}),me(e.lineSpace,"selectstart",function(a){ir(e,a)||gt(a)}),me(i,"compositionstart",function(){var a=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:a,range:r.markText(a,r.getCursor("to"),{className:"CodeMirror-composing"})}}),me(i,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},nt.prototype.createField=function(e){this.wrapper=xl(),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=ca(e);if(e.options.moveInputWithCursor){var i=Bt(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},nt.prototype.showSelection=function(e){var t=this.cm,n=t.display;I(n.cursorDiv,e.cursors),I(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&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&x(this.textarea),p&&D>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",p&&D>=9&&(this.hasSelection=null));this.resetting=!1}},nt.prototype.getField=function(){return this.textarea},nt.prototype.supportsTouch=function(){return!1},nt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!_||C(this.textarea.ownerDocument)!=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||this.resetting||!t.state.focused||sr(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(p&&D>=9&&this.hasSelection===i||W&&/[\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 a=0,l=Math.min(r.length,i.length);a1e3||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(){p&&D>=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=Tr(n,e),a=r.scroller.scrollTop;if(!o||b)return;var l=n.options.resetSelectionOnContextMenu;l&&n.doc.sel.contains(o)==-1&&ut(n,vt)(n.doc,mr(o),ve);var s=i.style.cssText,f=t.wrapper.style.cssText,E=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",i.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(e.clientY-E.top-5)+"px; left: "+(e.clientX-E.left-5)+`px; z-index: 1000; background: `+(p?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var F;w&&(F=i.ownerDocument.defaultView.scrollY),r.input.focus(),w&&i.ownerDocument.defaultView.scrollTo(null,F),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=K,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll);function X(){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 K(){if(t.contextMenuPending==K&&(t.contextMenuPending=!1,t.wrapper.style.cssText=f,i.style.cssText=s,p&&D<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=a),i.selectionStart!=null)){(!p||p&&D<9)&&X();var ie=0,ce=function(){r.selForContextMenu==n.doc.sel&&i.selectionStart==0&&i.selectionEnd>0&&t.prevInput=="\u200B"?ut(n,Wa)(n):ie++<10?r.detectingSelectAll=setTimeout(ce,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(ce,200)}}if(p&&D>=9&&X(),j){Jt(e);var re=function(){mt(window,"mouseup",re),setTimeout(K,20)};me(window,"mouseup",re)}else setTimeout(K,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 Lf(e,t){if(t=t?ue(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=C(e.ownerDocument);t.autofocus=n==e||e.getAttribute("autofocus")!=null&&n==document.body}function r(){e.value=l.getValue()}var i;if(e.form&&(me(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}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&&(mt(e.form,"submit",r),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=i))}},e.style.display="none";var l=Ye(function(s){return e.parentNode.insertBefore(s,e.nextSibling)},t);return l}function zf(e){e.off=mt,e.on=me,e.wheelEventPixels=qc,e.Doc=Tt,e.splitLines=on,e.countColumn=he,e.findColumn=ht,e.isWordChar=ne,e.Pass=fe,e.signal=Xe,e.Line=Or,e.changeEnd=gr,e.scrollbarModel=ga,e.Pos=H,e.cmpPos=te,e.modes=Wt,e.mimeModes=ur,e.resolveMode=zt,e.getMode=Vt,e.modeExtensions=cr,e.extendMode=Bn,e.copyState=er,e.startState=an,e.innerMode=fr,e.commands=zn,e.keyMap=ar,e.keyName=rl,e.isModifierKey=el,e.lookupKey=Xr,e.normalizeKeyMap=nf,e.StringStream=et,e.SharedTextMarker=Cn,e.TextMarker=yr,e.LineWidget=Tn,e.e_preventDefault=gt,e.e_stopPropagation=kr,e.e_stop=Jt,e.addClass=V,e.contains=M,e.rmClass=G,e.keyNames=br}xf(Ye),Sf(Ye);var Mf="iter insert remove copy getEditor constructor".split(" ");for(var yi in Tt.prototype)Tt.prototype.hasOwnProperty(yi)&&Se(Mf,yi)<0&&(Ye.prototype[yi]=function(e){return function(){return e.apply(this.doc,arguments)}}(Tt.prototype[yi]));return xt(Tt),Ye.inputStyles={textarea:nt,contenteditable:Ke},Ye.defineMode=function(e){!Ye.defaults.mode&&e!="null"&&(Ye.defaults.mode=e),jn.apply(this,arguments)},Ye.defineMIME=Ir,Ye.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Ye.defineMIME("text/plain","null"),Ye.defineExtension=function(e,t){Ye.prototype[e]=t},Ye.defineDocExtension=function(e,t){Tt.prototype[e]=t},Ye.fromTextArea=Lf,zf(Ye),Ye.version="5.65.9",Ye})});var Sl=qe((In,bo)=>{(function(u,P){typeof In=="object"&&typeof bo=="object"?bo.exports=P():typeof define=="function"&&define.amd?define([],P):typeof In=="object"?In.ClipboardJS=P():u.ClipboardJS=P()})(In,function(){return P={686:function(O,w,A){"use strict";A.d(w,{default:function(){return oe}});var w=A(279),p=A.n(w),w=A(370),D=A.n(w),w=A(817),L=A.n(w);function T(Q){try{return document.execCommand(Q)}catch{return}}var m=function(Q){return Q=L()(Q),T("cut"),Q};function b(R,j){var N,G,R=(N=R,G=document.documentElement.getAttribute("dir")==="rtl",(R=document.createElement("textarea")).style.fontSize="12pt",R.style.border="0",R.style.padding="0",R.style.margin="0",R.style.position="absolute",R.style[G?"right":"left"]="-9999px",G=window.pageYOffset||document.documentElement.scrollTop,R.style.top="".concat(G,"px"),R.setAttribute("readonly",""),R.value=N,R);return j.container.appendChild(R),j=L()(R),T("copy"),R.remove(),j}var d=function(Q){var j=1"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 N,G=Z(Q);return N=j?(N=Z(this).constructor,Reflect.construct(G,arguments,N)):G.apply(this,arguments),G=this,!(N=N)||y(N)!=="object"&&typeof N!="function"?function(R){if(R!==void 0)return R;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(G):N}}function Z(Q){return(Z=Object.setPrototypeOf?Object.getPrototypeOf:function(j){return j.__proto__||Object.getPrototypeOf(j)})(Q)}function ee(Q,j){if(Q="data-clipboard-".concat(Q),j.hasAttribute(Q))return j.getAttribute(Q)}var oe=function(){(function(I,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(c&&c.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),c&&_(I,c)})(R,p());var Q,j,N,G=W(R);function R(I,c){var B;return function($){if(!($ instanceof R))throw new TypeError("Cannot call a class as a function")}(this),(B=G.call(this)).resolveOptions(c),B.listenClick(I),B}return Q=R,N=[{key:"copy",value:function(I){var c=1"u"||Element.prototype.matches||((S=Element.prototype).matches=S.matchesSelector||S.mozMatchesSelector||S.msMatchesSelector||S.oMatchesSelector||S.webkitMatchesSelector),O.exports=function(A,p){for(;A&&A.nodeType!==9;){if(typeof A.matches=="function"&&A.matches(p))return A;A=A.parentNode}}},438:function(O,S,A){var p=A(828);function D(w,L,T,m,b){var d=function(g,k,y,U){return function(_){_.delegateTarget=p(_.target,k),_.delegateTarget&&U.call(g,_)}}.apply(this,arguments);return w.addEventListener(T,d,b),{destroy:function(){w.removeEventListener(T,d,b)}}}O.exports=function(w,L,T,m,b){return typeof w.addEventListener=="function"?D.apply(null,arguments):typeof T=="function"?D.bind(null,document).apply(null,arguments):(typeof w=="string"&&(w=document.querySelectorAll(w)),Array.prototype.map.call(w,function(d){return D(d,L,T,m,b)}))}},879:function(O,S){S.node=function(A){return A!==void 0&&A instanceof HTMLElement&&A.nodeType===1},S.nodeList=function(A){var p=Object.prototype.toString.call(A);return A!==void 0&&(p==="[object NodeList]"||p==="[object HTMLCollection]")&&"length"in A&&(A.length===0||S.node(A[0]))},S.string=function(A){return typeof A=="string"||A instanceof String},S.fn=function(A){return Object.prototype.toString.call(A)==="[object Function]"}},370:function(O,S,A){var p=A(879),D=A(438);O.exports=function(w,L,T){if(!w&&!L&&!T)throw new Error("Missing required arguments");if(!p.string(L))throw new TypeError("Second argument must be a String");if(!p.fn(T))throw new TypeError("Third argument must be a Function");if(p.node(w))return k=L,y=T,(g=w).addEventListener(k,y),{destroy:function(){g.removeEventListener(k,y)}};if(p.nodeList(w))return m=w,b=L,d=T,Array.prototype.forEach.call(m,function(U){U.addEventListener(b,d)}),{destroy:function(){Array.prototype.forEach.call(m,function(U){U.removeEventListener(b,d)})}};if(p.string(w))return w=w,L=L,T=T,D(document.body,w,L,T);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var m,b,d,g,k,y}},817:function(O){O.exports=function(S){var A,p=S.nodeName==="SELECT"?(S.focus(),S.value):S.nodeName==="INPUT"||S.nodeName==="TEXTAREA"?((A=S.hasAttribute("readonly"))||S.setAttribute("readonly",""),S.select(),S.setSelectionRange(0,S.value.length),A||S.removeAttribute("readonly"),S.value):(S.hasAttribute("contenteditable")&&S.focus(),p=window.getSelection(),(A=document.createRange()).selectNodeContents(S),p.removeAllRanges(),p.addRange(A),p.toString());return p}},279:function(O){function S(){}S.prototype={on:function(A,p,D){var w=this.e||(this.e={});return(w[A]||(w[A]=[])).push({fn:p,ctx:D}),this},once:function(A,p,D){var w=this;function L(){w.off(A,L),p.apply(D,arguments)}return L._=p,this.on(A,L,D)},emit:function(A){for(var p=[].slice.call(arguments,1),D=((this.e||(this.e={}))[A]||[]).slice(),w=0,L=D.length;w{(function(u){typeof Tl=="object"&&typeof Cl=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("css",function(j,N){var G=N.inline;N.propertyKeywords||(N=u.resolveMode("text/css"));var R=j.indentUnit,I=N.tokenHooks,c=N.documentTypes||{},B=N.mediaTypes||{},$=N.mediaFeatures||{},M=N.mediaValueKeywords||{},C=N.propertyKeywords||{},V=N.nonStandardPropertyKeywords||{},Y=N.fontProperties||{},x=N.counterDescriptors||{},h=N.colorKeywords||{},se=N.valueKeywords||{},_e=N.allowNested,ue=N.lineComment,he=N.supportsAtComponent===!0,Te=j.highlightNonStandardPropertyKeywords!==!1,Se,ae;function fe(J,le){return Se=le,J}function ve(J,le){var ne=J.next();if(I[ne]){var Fe=I[ne](J,le);if(Fe!==!1)return Fe}if(ne=="@")return J.eatWhile(/[\w\\\-]/),fe("def",J.current());if(ne=="="||(ne=="~"||ne=="|")&&J.eat("="))return fe(null,"compare");if(ne=='"'||ne=="'")return le.tokenize=De(ne),le.tokenize(J,le);if(ne=="#")return J.eatWhile(/[\w\\\-]/),fe("atom","hash");if(ne=="!")return J.match(/^\s*\w*/),fe("keyword","important");if(/\d/.test(ne)||ne=="."&&J.eat(/\d/))return J.eatWhile(/[\w.%]/),fe("number","unit");if(ne==="-"){if(/[\d.]/.test(J.peek()))return J.eatWhile(/[\w.%]/),fe("number","unit");if(J.match(/^-[\w\\\-]*/))return J.eatWhile(/[\w\\\-]/),J.match(/^\s*:/,!1)?fe("variable-2","variable-definition"):fe("variable-2","variable");if(J.match(/^\w+-/))return fe("meta","meta")}else return/[,+>*\/]/.test(ne)?fe(null,"select-op"):ne=="."&&J.match(/^-?[_a-z][_a-z0-9-]*/i)?fe("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(ne)?fe(null,ne):J.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(J.current())&&(le.tokenize=Qe),fe("variable callee","variable")):/[\w\\\-]/.test(ne)?(J.eatWhile(/[\w\\\-]/),fe("property","word")):fe(null,null)}function De(J){return function(le,ne){for(var Fe=!1,be;(be=le.next())!=null;){if(be==J&&!Fe){J==")"&&le.backUp(1);break}Fe=!Fe&&be=="\\"}return(be==J||!Fe&&J!=")")&&(ne.tokenize=null),fe("string","string")}}function Qe(J,le){return J.next(),J.match(/^\s*[\"\')]/,!1)?le.tokenize=null:le.tokenize=De(")"),fe(null,"(")}function ht(J,le,ne){this.type=J,this.indent=le,this.prev=ne}function Ne(J,le,ne,Fe){return J.context=new ht(ne,le.indentation()+(Fe===!1?0:R),J.context),ne}function $e(J){return J.context.prev&&(J.context=J.context.prev),J.context.type}function Ee(J,le,ne){return Re[ne.context.type](J,le,ne)}function rt(J,le,ne,Fe){for(var be=Fe||1;be>0;be--)ne.context=ne.context.prev;return Ee(J,le,ne)}function Ge(J){var le=J.current().toLowerCase();se.hasOwnProperty(le)?ae="atom":h.hasOwnProperty(le)?ae="keyword":ae="variable"}var Re={};return Re.top=function(J,le,ne){if(J=="{")return Ne(ne,le,"block");if(J=="}"&&ne.context.prev)return $e(ne);if(he&&/@component/i.test(J))return Ne(ne,le,"atComponentBlock");if(/^@(-moz-)?document$/i.test(J))return Ne(ne,le,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(J))return Ne(ne,le,"atBlock");if(/^@(font-face|counter-style)/i.test(J))return ne.stateArg=J,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(J))return"keyframes";if(J&&J.charAt(0)=="@")return Ne(ne,le,"at");if(J=="hash")ae="builtin";else if(J=="word")ae="tag";else{if(J=="variable-definition")return"maybeprop";if(J=="interpolation")return Ne(ne,le,"interpolation");if(J==":")return"pseudo";if(_e&&J=="(")return Ne(ne,le,"parens")}return ne.context.type},Re.block=function(J,le,ne){if(J=="word"){var Fe=le.current().toLowerCase();return C.hasOwnProperty(Fe)?(ae="property","maybeprop"):V.hasOwnProperty(Fe)?(ae=Te?"string-2":"property","maybeprop"):_e?(ae=le.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(ae+=" error","maybeprop")}else return J=="meta"?"block":!_e&&(J=="hash"||J=="qualifier")?(ae="error","block"):Re.top(J,le,ne)},Re.maybeprop=function(J,le,ne){return J==":"?Ne(ne,le,"prop"):Ee(J,le,ne)},Re.prop=function(J,le,ne){if(J==";")return $e(ne);if(J=="{"&&_e)return Ne(ne,le,"propBlock");if(J=="}"||J=="{")return rt(J,le,ne);if(J=="(")return Ne(ne,le,"parens");if(J=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(le.current()))ae+=" error";else if(J=="word")Ge(le);else if(J=="interpolation")return Ne(ne,le,"interpolation");return"prop"},Re.propBlock=function(J,le,ne){return J=="}"?$e(ne):J=="word"?(ae="property","maybeprop"):ne.context.type},Re.parens=function(J,le,ne){return J=="{"||J=="}"?rt(J,le,ne):J==")"?$e(ne):J=="("?Ne(ne,le,"parens"):J=="interpolation"?Ne(ne,le,"interpolation"):(J=="word"&&Ge(le),"parens")},Re.pseudo=function(J,le,ne){return J=="meta"?"pseudo":J=="word"?(ae="variable-3",ne.context.type):Ee(J,le,ne)},Re.documentTypes=function(J,le,ne){return J=="word"&&c.hasOwnProperty(le.current())?(ae="tag",ne.context.type):Re.atBlock(J,le,ne)},Re.atBlock=function(J,le,ne){if(J=="(")return Ne(ne,le,"atBlock_parens");if(J=="}"||J==";")return rt(J,le,ne);if(J=="{")return $e(ne)&&Ne(ne,le,_e?"block":"top");if(J=="interpolation")return Ne(ne,le,"interpolation");if(J=="word"){var Fe=le.current().toLowerCase();Fe=="only"||Fe=="not"||Fe=="and"||Fe=="or"?ae="keyword":B.hasOwnProperty(Fe)?ae="attribute":$.hasOwnProperty(Fe)?ae="property":M.hasOwnProperty(Fe)?ae="keyword":C.hasOwnProperty(Fe)?ae="property":V.hasOwnProperty(Fe)?ae=Te?"string-2":"property":se.hasOwnProperty(Fe)?ae="atom":h.hasOwnProperty(Fe)?ae="keyword":ae="error"}return ne.context.type},Re.atComponentBlock=function(J,le,ne){return J=="}"?rt(J,le,ne):J=="{"?$e(ne)&&Ne(ne,le,_e?"block":"top",!1):(J=="word"&&(ae="error"),ne.context.type)},Re.atBlock_parens=function(J,le,ne){return J==")"?$e(ne):J=="{"||J=="}"?rt(J,le,ne,2):Re.atBlock(J,le,ne)},Re.restricted_atBlock_before=function(J,le,ne){return J=="{"?Ne(ne,le,"restricted_atBlock"):J=="word"&&ne.stateArg=="@counter-style"?(ae="variable","restricted_atBlock_before"):Ee(J,le,ne)},Re.restricted_atBlock=function(J,le,ne){return J=="}"?(ne.stateArg=null,$e(ne)):J=="word"?(ne.stateArg=="@font-face"&&!Y.hasOwnProperty(le.current().toLowerCase())||ne.stateArg=="@counter-style"&&!x.hasOwnProperty(le.current().toLowerCase())?ae="error":ae="property","maybeprop"):"restricted_atBlock"},Re.keyframes=function(J,le,ne){return J=="word"?(ae="variable","keyframes"):J=="{"?Ne(ne,le,"top"):Ee(J,le,ne)},Re.at=function(J,le,ne){return J==";"?$e(ne):J=="{"||J=="}"?rt(J,le,ne):(J=="word"?ae="tag":J=="hash"&&(ae="builtin"),"at")},Re.interpolation=function(J,le,ne){return J=="}"?$e(ne):J=="{"||J==";"?rt(J,le,ne):(J=="word"?ae="variable":J!="variable"&&J!="("&&J!=")"&&(ae="error"),"interpolation")},{startState:function(J){return{tokenize:null,state:G?"block":"top",stateArg:null,context:new ht(G?"block":"top",J||0,null)}},token:function(J,le){if(!le.tokenize&&J.eatSpace())return null;var ne=(le.tokenize||ve)(J,le);return ne&&typeof ne=="object"&&(Se=ne[1],ne=ne[0]),ae=ne,Se!="comment"&&(le.state=Re[le.state](Se,J,le)),ae},indent:function(J,le){var ne=J.context,Fe=le&&le.charAt(0),be=ne.indent;return ne.type=="prop"&&(Fe=="}"||Fe==")")&&(ne=ne.prev),ne.prev&&(Fe=="}"&&(ne.type=="block"||ne.type=="top"||ne.type=="interpolation"||ne.type=="restricted_atBlock")?(ne=ne.prev,be=ne.indent):(Fe==")"&&(ne.type=="parens"||ne.type=="atBlock_parens")||Fe=="{"&&(ne.type=="at"||ne.type=="atBlock"))&&(be=Math.max(0,ne.indent-R))),be},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:ue,fold:"brace"}});function P(j){for(var N={},G=0;G{(function(u){typeof El=="object"&&typeof Ll=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";function P(M,C,V,Y,x,h){this.indented=M,this.column=C,this.type=V,this.info=Y,this.align=x,this.prev=h}function z(M,C,V,Y){var x=M.indented;return M.context&&M.context.type=="statement"&&V!="statement"&&(x=M.context.indented),M.context=new P(x,C,V,Y,null,M.context)}function O(M){var C=M.context.type;return(C==")"||C=="]"||C=="}")&&(M.indented=M.context.indented),M.context=M.context.prev}function S(M,C,V){if(C.prevToken=="variable"||C.prevToken=="type"||/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(M.string.slice(0,V))||C.typeAtEndOfLine&&M.column()==M.indentation())return!0}function A(M){for(;;){if(!M||M.type=="top")return!0;if(M.type=="}"&&M.prev.info!="namespace")return!1;M=M.prev}}u.defineMode("clike",function(M,C){var V=M.indentUnit,Y=C.statementIndentUnit||V,x=C.dontAlignCalls,h=C.keywords||{},se=C.types||{},_e=C.builtin||{},ue=C.blockKeywords||{},he=C.defKeywords||{},Te=C.atoms||{},Se=C.hooks||{},ae=C.multiLineStrings,fe=C.indentStatements!==!1,ve=C.indentSwitch!==!1,De=C.namespaceSeparator,Qe=C.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,ht=C.numberStart||/[\d\.]/,Ne=C.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,$e=C.isOperatorChar||/[+\-*&%=<>!?|\/]/,Ee=C.isIdentifierChar||/[\w\$_\xa1-\uffff]/,rt=C.isReservedIdentifier||!1,Ge,Re;function J(be,Le){var ke=be.next();if(Se[ke]){var Pe=Se[ke](be,Le);if(Pe!==!1)return Pe}if(ke=='"'||ke=="'")return Le.tokenize=le(ke),Le.tokenize(be,Le);if(ht.test(ke)){if(be.backUp(1),be.match(Ne))return"number";be.next()}if(Qe.test(ke))return Ge=ke,null;if(ke=="/"){if(be.eat("*"))return Le.tokenize=ne,ne(be,Le);if(be.eat("/"))return be.skipToEnd(),"comment"}if($e.test(ke)){for(;!be.match(/^\/[\/*]/,!1)&&be.eat($e););return"operator"}if(be.eatWhile(Ee),De)for(;be.match(De);)be.eatWhile(Ee);var Ae=be.current();return D(h,Ae)?(D(ue,Ae)&&(Ge="newstatement"),D(he,Ae)&&(Re=!0),"keyword"):D(se,Ae)?"type":D(_e,Ae)||rt&&rt(Ae)?(D(ue,Ae)&&(Ge="newstatement"),"builtin"):D(Te,Ae)?"atom":"variable"}function le(be){return function(Le,ke){for(var Pe=!1,Ae,Dt=!1;(Ae=Le.next())!=null;){if(Ae==be&&!Pe){Dt=!0;break}Pe=!Pe&&Ae=="\\"}return(Dt||!(Pe||ae))&&(ke.tokenize=null),"string"}}function ne(be,Le){for(var ke=!1,Pe;Pe=be.next();){if(Pe=="/"&&ke){Le.tokenize=null;break}ke=Pe=="*"}return"comment"}function Fe(be,Le){C.typeFirstDefinitions&&be.eol()&&A(Le.context)&&(Le.typeAtEndOfLine=S(be,Le,be.pos))}return{startState:function(be){return{tokenize:null,context:new P((be||0)-V,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(be,Le){var ke=Le.context;if(be.sol()&&(ke.align==null&&(ke.align=!1),Le.indented=be.indentation(),Le.startOfLine=!0),be.eatSpace())return Fe(be,Le),null;Ge=Re=null;var Pe=(Le.tokenize||J)(be,Le);if(Pe=="comment"||Pe=="meta")return Pe;if(ke.align==null&&(ke.align=!0),Ge==";"||Ge==":"||Ge==","&&be.match(/^\s*(?:\/\/.*)?$/,!1))for(;Le.context.type=="statement";)O(Le);else if(Ge=="{")z(Le,be.column(),"}");else if(Ge=="[")z(Le,be.column(),"]");else if(Ge=="(")z(Le,be.column(),")");else if(Ge=="}"){for(;ke.type=="statement";)ke=O(Le);for(ke.type=="}"&&(ke=O(Le));ke.type=="statement";)ke=O(Le)}else Ge==ke.type?O(Le):fe&&((ke.type=="}"||ke.type=="top")&&Ge!=";"||ke.type=="statement"&&Ge=="newstatement")&&z(Le,be.column(),"statement",be.current());if(Pe=="variable"&&(Le.prevToken=="def"||C.typeFirstDefinitions&&S(be,Le,be.start)&&A(Le.context)&&be.match(/^\s*\(/,!1))&&(Pe="def"),Se.token){var Ae=Se.token(be,Le,Pe);Ae!==void 0&&(Pe=Ae)}return Pe=="def"&&C.styleDefs===!1&&(Pe="variable"),Le.startOfLine=!1,Le.prevToken=Re?"def":Pe||Ge,Fe(be,Le),Pe},indent:function(be,Le){if(be.tokenize!=J&&be.tokenize!=null||be.typeAtEndOfLine)return u.Pass;var ke=be.context,Pe=Le&&Le.charAt(0),Ae=Pe==ke.type;if(ke.type=="statement"&&Pe=="}"&&(ke=ke.prev),C.dontIndentStatements)for(;ke.type=="statement"&&C.dontIndentStatements.test(ke.info);)ke=ke.prev;if(Se.indent){var Dt=Se.indent(be,ke,Le,V);if(typeof Dt=="number")return Dt}var qt=ke.prev&&ke.prev.info=="switch";if(C.allmanIndentation&&/[{(]/.test(Pe)){for(;ke.type!="top"&&ke.type!="}";)ke=ke.prev;return ke.indented}return ke.type=="statement"?ke.indented+(Pe=="{"?0:Y):ke.align&&(!x||ke.type!=")")?ke.column+(Ae?0:1):ke.type==")"&&!Ae?ke.indented+Y:ke.indented+(Ae?0:V)+(!Ae&&qt&&!/^(?:case|default)\b/.test(Le)?V:0)},electricInput:ve?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});function p(M){for(var C={},V=M.split(" "),Y=0;Y!?|\/#:@]/,hooks:{"@":function(M){return M.eatWhile(/[\w\$_]/),"meta"},'"':function(M,C){return M.match('""')?(C.tokenize=R,C.tokenize(M,C)):!1},"'":function(M){return M.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(M,C){var V=C.context;return V.type=="}"&&V.align&&M.eat(">")?(C.context=new P(V.indented,V.column,V.type,V.info,null,V.prev),"operator"):!1},"/":function(M,C){return M.eat("*")?(C.tokenize=I(1),C.tokenize(M,C)):!1}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}});function c(M){return function(C,V){for(var Y=!1,x,h=!1;!C.eol();){if(!M&&!Y&&C.match('"')){h=!0;break}if(M&&C.match('"""')){h=!0;break}x=C.next(),!Y&&x=="$"&&C.match("{")&&C.skipTo("}"),Y=!Y&&x=="\\"&&!M}return(h||!M)&&(V.tokenize=null),"string"}}G("text/x-kotlin",{name:"clike",keywords:p("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:p("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:p("catch class do else finally for if where try while enum"),defKeywords:p("class val var object interface fun"),atoms:p("true false null this"),hooks:{"@":function(M){return M.eatWhile(/[\w\$_]/),"meta"},"*":function(M,C){return C.prevToken=="."?"variable":"operator"},'"':function(M,C){return C.tokenize=c(M.match('""')),C.tokenize(M,C)},"/":function(M,C){return M.eat("*")?(C.tokenize=I(1),C.tokenize(M,C)):!1},indent:function(M,C,V,Y){var x=V&&V.charAt(0);if((M.prevToken=="}"||M.prevToken==")")&&V=="")return M.indented;if(M.prevToken=="operator"&&V!="}"&&M.context.type!="}"||M.prevToken=="variable"&&x=="."||(M.prevToken=="}"||M.prevToken==")")&&x==".")return Y*2+C.indented;if(C.align&&C.type=="}")return C.indented+(M.context.type==(V||"").charAt(0)?0:Y)}},modeProps:{closeBrackets:{triples:'"'}}}),G(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:p("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:p("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:p("for while do if else struct"),builtin:p("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:p("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"]}}),G("text/x-nesc",{name:"clike",keywords:p(w+" 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:g,blockKeywords:p(y),atoms:p("null true false"),hooks:{"#":_},modeProps:{fold:["brace","include"]}}),G("text/x-objectivec",{name:"clike",keywords:p(w+" "+T),types:k,builtin:p(m),blockKeywords:p(y+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:p(U+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:p("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:Z,hooks:{"#":_,"*":W},modeProps:{fold:["brace","include"]}}),G("text/x-objectivec++",{name:"clike",keywords:p(w+" "+T+" "+L),types:k,builtin:p(m),blockKeywords:p(y+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:p(U+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:p("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:Z,hooks:{"#":_,"*":W,u:oe,U:oe,L:oe,R:oe,0:ee,1:ee,2:ee,3:ee,4:ee,5:ee,6:ee,7:ee,8:ee,9:ee,token:function(M,C,V){if(V=="variable"&&M.peek()=="("&&(C.prevToken==";"||C.prevToken==null||C.prevToken=="}")&&Q(M.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),G("text/x-squirrel",{name:"clike",keywords:p("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:g,blockKeywords:p("case catch class else for foreach if switch try while"),defKeywords:p("function local class"),typeFirstDefinitions:!0,atoms:p("true false null"),hooks:{"#":_},modeProps:{fold:["brace","include"]}});var B=null;function $(M){return function(C,V){for(var Y=!1,x,h=!1;!C.eol();){if(!Y&&C.match('"')&&(M=="single"||C.match('""'))){h=!0;break}if(!Y&&C.match("``")){B=$(M),h=!0;break}x=C.next(),Y=M=="single"&&!Y&&x=="\\"}return h&&(V.tokenize=null),"string"}}G("text/x-ceylon",{name:"clike",keywords:p("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(M){var C=M.charAt(0);return C===C.toUpperCase()&&C!==C.toLowerCase()},blockKeywords:p("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:p("class dynamic function interface module object package value"),builtin:p("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:p("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(M){return M.eatWhile(/[\w\$_]/),"meta"},'"':function(M,C){return C.tokenize=$(M.match('""')?"triple":"single"),C.tokenize(M,C)},"`":function(M,C){return!B||!M.match("`")?!1:(C.tokenize=B,B=null,C.tokenize(M,C))},"'":function(M){return M.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(M,C,V){if((V=="variable"||V=="type")&&C.prevToken==".")return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})})});var Al=qe((zl,Ml)=>{(function(u){typeof zl=="object"&&typeof Ml=="object"?u(Oe(),bi()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../clike/clike"],u):u(CodeMirror)})(function(u){"use strict";var P="this super static final const abstract class extends external factory implements mixin get native set typedef with enum throw rethrow assert break case continue default in return new deferred async await covariant try catch finally do else for if switch while import library export part of show hide is as extension on yield late required".split(" "),z="try catch finally do else for if switch while".split(" "),O="true false null".split(" "),S="void bool num int double dynamic var String Null Never".split(" ");function A(d){for(var g={},k=0;k0?(g.tokenize=D(g),null):!1},"/":function(d,g){return d.eat("*")?(g.tokenize=b(1),g.tokenize(d,g)):!1},token:function(d,g,k){if(k=="variable"){var y=RegExp("^[_$]*[A-Z][a-zA-Z0-9_$]*$","g");if(y.test(d.current()))return"variable-2"}}}});function L(d,g,k,y){var U=!1;if(g.eat(d))if(g.eat(d))U=!0;else return"string";function _(W,Z){for(var ee=!1;!W.eol();){if(!y&&!ee&&W.peek()=="$")return p(Z),Z.tokenize=T,"string";var oe=W.next();if(oe==d&&!ee&&(!U||W.match(d+d))){Z.tokenize=null;break}ee=!y&&!ee&&oe=="\\"}return"string"}return k.tokenize=_,_(g,k)}function T(d,g){return d.eat("$"),d.eat("{")?g.tokenize=null:g.tokenize=m,null}function m(d,g){return d.eatWhile(/[\w_]/),g.tokenize=D(g),"variable"}function b(d){return function(g,k){for(var y;y=g.next();)if(y=="*"&&g.eat("/"))if(d==1){k.tokenize=null;break}else return k.tokenize=b(d-1),k.tokenize(g,k);else if(y=="/"&&g.eat("*"))return k.tokenize=b(d+1),k.tokenize(g,k);return"comment"}}u.registerHelper("hintWords","application/dart",P.concat(O).concat(S)),u.defineMode("dart",function(d){return u.getMode(d,"application/dart")},"clike")})});var Il=qe((Dl,Fl)=>{(function(u){typeof Dl=="object"&&typeof Fl=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("diff",function(){var P={"+":"positive","-":"negative","@":"meta"};return{token:function(z){var O=z.string.search(/[\t ]+?$/);if(!z.sol()||O===0)return z.skipToEnd(),("error "+(P[z.string.charAt(0)]||"")).replace(/ $/,"");var S=P[z.peek()]||z.skipToEnd();return O===-1?z.skipToEnd():z.pos=O,S}}}),u.defineMIME("text/x-diff","diff")})});var Nl=qe((ql,Ol)=>{(function(u){typeof ql=="object"&&typeof Ol=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("fortran",function(){function P(L){for(var T={},m=0;m\/\:]/,p=/^\.(and|or|eq|lt|le|gt|ge|ne|not|eqv|neqv)\./i;function D(L,T){if(L.match(p))return"operator";var m=L.next();if(m=="!")return L.skipToEnd(),"comment";if(m=='"'||m=="'")return T.tokenize=w(m),T.tokenize(L,T);if(/[\[\]\(\),]/.test(m))return null;if(/\d/.test(m))return L.eatWhile(/[\w\.]/),"number";if(A.test(m))return L.eatWhile(A),"operator";L.eatWhile(/[\w\$_]/);var b=L.current().toLowerCase();return z.hasOwnProperty(b)?"keyword":O.hasOwnProperty(b)||S.hasOwnProperty(b)?"builtin":"variable"}function w(L){return function(T,m){for(var b=!1,d,g=!1;(d=T.next())!=null;){if(d==L&&!b){g=!0;break}b=!b&&d=="\\"}return(g||!b)&&(m.tokenize=null),"string"}}return{startState:function(){return{tokenize:null}},token:function(L,T){if(L.eatSpace())return null;var m=(T.tokenize||D)(L,T);return m=="comment"||m=="meta",m}}}),u.defineMIME("text/x-fortran","fortran")})});var Wl=qe((Pl,Rl)=>{(function(u){typeof Pl=="object"&&typeof Rl=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("go",function(P){var z=P.indentUnit,O={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,any:!0,comparable:!0},S={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},A=/[+\-*&^%:=<>!|\/]/,p;function D(d,g){var k=d.next();if(k=='"'||k=="'"||k=="`")return g.tokenize=w(k),g.tokenize(d,g);if(/[\d\.]/.test(k))return k=="."?d.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):k=="0"?d.match(/^[xX][0-9a-fA-F]+/)||d.match(/^0[0-7]+/):d.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(/[\[\]{}\(\),;\:\.]/.test(k))return p=k,null;if(k=="/"){if(d.eat("*"))return g.tokenize=L,L(d,g);if(d.eat("/"))return d.skipToEnd(),"comment"}if(A.test(k))return d.eatWhile(A),"operator";d.eatWhile(/[\w\$_\xa1-\uffff]/);var y=d.current();return O.propertyIsEnumerable(y)?((y=="case"||y=="default")&&(p="case"),"keyword"):S.propertyIsEnumerable(y)?"atom":"variable"}function w(d){return function(g,k){for(var y=!1,U,_=!1;(U=g.next())!=null;){if(U==d&&!y){_=!0;break}y=!y&&d!="`"&&U=="\\"}return(_||!(y||d=="`"))&&(k.tokenize=D),"string"}}function L(d,g){for(var k=!1,y;y=d.next();){if(y=="/"&&k){g.tokenize=D;break}k=y=="*"}return"comment"}function T(d,g,k,y,U){this.indented=d,this.column=g,this.type=k,this.align=y,this.prev=U}function m(d,g,k){return d.context=new T(d.indented,g,k,null,d.context)}function b(d){if(d.context.prev){var g=d.context.type;return(g==")"||g=="]"||g=="}")&&(d.indented=d.context.indented),d.context=d.context.prev}}return{startState:function(d){return{tokenize:null,context:new T((d||0)-z,0,"top",!1),indented:0,startOfLine:!0}},token:function(d,g){var k=g.context;if(d.sol()&&(k.align==null&&(k.align=!1),g.indented=d.indentation(),g.startOfLine=!0,k.type=="case"&&(k.type="}")),d.eatSpace())return null;p=null;var y=(g.tokenize||D)(d,g);return y=="comment"||(k.align==null&&(k.align=!0),p=="{"?m(g,d.column(),"}"):p=="["?m(g,d.column(),"]"):p=="("?m(g,d.column(),")"):p=="case"?k.type="case":(p=="}"&&k.type=="}"||p==k.type)&&b(g),g.startOfLine=!1),y},indent:function(d,g){if(d.tokenize!=D&&d.tokenize!=null)return u.Pass;var k=d.context,y=g&&g.charAt(0);if(k.type=="case"&&/^(?:case|default)\b/.test(g))return d.context.type="}",k.indented;var U=y==k.type;return k.align?k.column+(U?0:1):k.indented+(U?0:z)},electricChars:"{}):",closeBrackets:"()[]{}''\"\"``",fold:"brace",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}}),u.defineMIME("text/x-go","go")})});var Hl=qe((jl,Bl)=>{(function(u){typeof jl=="object"&&typeof Bl=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("haskell",function(P,z){function O(_,W,Z){return W(Z),Z(_,W)}var S=/[a-z_]/,A=/[A-Z]/,p=/\d/,D=/[0-9A-Fa-f]/,w=/[0-7]/,L=/[a-z_A-Z0-9'\xa1-\uffff]/,T=/[-!#$%&*+.\/<=>?@\\^|~:]/,m=/[(),;[\]`{}]/,b=/[ \t\v\f]/;function d(_,W){if(_.eatWhile(b))return null;var Z=_.next();if(m.test(Z)){if(Z=="{"&&_.eat("-")){var ee="comment";return _.eat("#")&&(ee="meta"),O(_,W,g(ee,1))}return null}if(Z=="'")return _.eat("\\"),_.next(),_.eat("'")?"string":"string error";if(Z=='"')return O(_,W,k);if(A.test(Z))return _.eatWhile(L),_.eat(".")?"qualifier":"variable-2";if(S.test(Z))return _.eatWhile(L),"variable";if(p.test(Z)){if(Z=="0"){if(_.eat(/[xX]/))return _.eatWhile(D),"integer";if(_.eat(/[oO]/))return _.eatWhile(w),"number"}_.eatWhile(p);var ee="number";return _.match(/^\.\d+/)&&(ee="number"),_.eat(/[eE]/)&&(ee="number",_.eat(/[-+]/),_.eatWhile(p)),ee}if(Z=="."&&_.eat("."))return"keyword";if(T.test(Z)){if(Z=="-"&&_.eat(/-/)&&(_.eatWhile(/-/),!_.eat(T)))return _.skipToEnd(),"comment";var ee="variable";return Z==":"&&(ee="variable-2"),_.eatWhile(T),ee}return"error"}function g(_,W){return W==0?d:function(Z,ee){for(var oe=W;!Z.eol();){var Q=Z.next();if(Q=="{"&&Z.eat("-"))++oe;else if(Q=="-"&&Z.eat("}")&&(--oe,oe==0))return ee(d),_}return ee(g(_,oe)),_}}function k(_,W){for(;!_.eol();){var Z=_.next();if(Z=='"')return W(d),"string";if(Z=="\\"){if(_.eol()||_.eat(b))return W(y),"string";_.eat("&")||_.next()}}return W(d),"string error"}function y(_,W){return _.eat("\\")?O(_,W,k):(_.next(),W(d),"error")}var U=function(){var _={};function W(oe){return function(){for(var Q=0;Q","@","~","=>"),W("builtin")("!!","$!","$","&&","+","++","-",".","/","/=","<","<*","<=","<$>","<*>","=<<","==",">",">=",">>",">>=","^","^^","||","*","*>","**"),W("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"),W("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 Z=z.overrideKeywords;if(Z)for(var ee in Z)Z.hasOwnProperty(ee)&&(_[ee]=Z[ee]);return _}();return{startState:function(){return{f:d}},copyState:function(_){return{f:_.f}},token:function(_,W){var Z=W.f(_,function(oe){W.f=oe}),ee=_.current();return U.hasOwnProperty(ee)?U[ee]:Z},blockCommentStart:"{-",blockCommentEnd:"-}",lineComment:"--"}}),u.defineMIME("text/x-haskell","haskell")})});var xi=qe((Ul,$l)=>{(function(u){typeof Ul=="object"&&typeof $l=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";var P={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};u.defineMode("xml",function(O,S){var A=O.indentUnit,p={},D=S.htmlMode?P:z;for(var w in D)p[w]=D[w];for(var w in S)p[w]=S[w];var L,T;function m(c,B){function $(V){return B.tokenize=V,V(c,B)}var M=c.next();if(M=="<")return c.eat("!")?c.eat("[")?c.match("CDATA[")?$(g("atom","]]>")):null:c.match("--")?$(g("comment","-->")):c.match("DOCTYPE",!0,!0)?(c.eatWhile(/[\w\._\-]/),$(k(1))):null:c.eat("?")?(c.eatWhile(/[\w\._\-]/),B.tokenize=g("meta","?>"),"meta"):(L=c.eat("/")?"closeTag":"openTag",B.tokenize=b,"tag bracket");if(M=="&"){var C;return c.eat("#")?c.eat("x")?C=c.eatWhile(/[a-fA-F\d]/)&&c.eat(";"):C=c.eatWhile(/[\d]/)&&c.eat(";"):C=c.eatWhile(/[\w\.\-:]/)&&c.eat(";"),C?"atom":"error"}else return c.eatWhile(/[^&<]/),null}m.isInText=!0;function b(c,B){var $=c.next();if($==">"||$=="/"&&c.eat(">"))return B.tokenize=m,L=$==">"?"endTag":"selfcloseTag","tag bracket";if($=="=")return L="equals",null;if($=="<"){B.tokenize=m,B.state=Z,B.tagName=B.tagStart=null;var M=B.tokenize(c,B);return M?M+" tag error":"tag error"}else return/[\'\"]/.test($)?(B.tokenize=d($),B.stringStartCol=c.column(),B.tokenize(c,B)):(c.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function d(c){var B=function($,M){for(;!$.eol();)if($.next()==c){M.tokenize=b;break}return"string"};return B.isInAttribute=!0,B}function g(c,B){return function($,M){for(;!$.eol();){if($.match(B)){M.tokenize=m;break}$.next()}return c}}function k(c){return function(B,$){for(var M;(M=B.next())!=null;){if(M=="<")return $.tokenize=k(c+1),$.tokenize(B,$);if(M==">")if(c==1){$.tokenize=m;break}else return $.tokenize=k(c-1),$.tokenize(B,$)}return"meta"}}function y(c){return c&&c.toLowerCase()}function U(c,B,$){this.prev=c.context,this.tagName=B||"",this.indent=c.indented,this.startOfLine=$,(p.doNotIndent.hasOwnProperty(B)||c.context&&c.context.noIndent)&&(this.noIndent=!0)}function _(c){c.context&&(c.context=c.context.prev)}function W(c,B){for(var $;;){if(!c.context||($=c.context.tagName,!p.contextGrabbers.hasOwnProperty(y($))||!p.contextGrabbers[y($)].hasOwnProperty(y(B))))return;_(c)}}function Z(c,B,$){return c=="openTag"?($.tagStart=B.column(),ee):c=="closeTag"?oe:Z}function ee(c,B,$){return c=="word"?($.tagName=B.current(),T="tag",N):p.allowMissingTagName&&c=="endTag"?(T="tag bracket",N(c,B,$)):(T="error",ee)}function oe(c,B,$){if(c=="word"){var M=B.current();return $.context&&$.context.tagName!=M&&p.implicitlyClosed.hasOwnProperty(y($.context.tagName))&&_($),$.context&&$.context.tagName==M||p.matchClosing===!1?(T="tag",Q):(T="tag error",j)}else return p.allowMissingTagName&&c=="endTag"?(T="tag bracket",Q(c,B,$)):(T="error",j)}function Q(c,B,$){return c!="endTag"?(T="error",Q):(_($),Z)}function j(c,B,$){return T="error",Q(c,B,$)}function N(c,B,$){if(c=="word")return T="attribute",G;if(c=="endTag"||c=="selfcloseTag"){var M=$.tagName,C=$.tagStart;return $.tagName=$.tagStart=null,c=="selfcloseTag"||p.autoSelfClosers.hasOwnProperty(y(M))?W($,M):(W($,M),$.context=new U($,M,C==$.indented)),Z}return T="error",N}function G(c,B,$){return c=="equals"?R:(p.allowMissing||(T="error"),N(c,B,$))}function R(c,B,$){return c=="string"?I:c=="word"&&p.allowUnquoted?(T="string",N):(T="error",N(c,B,$))}function I(c,B,$){return c=="string"?I:N(c,B,$)}return{startState:function(c){var B={tokenize:m,state:Z,indented:c||0,tagName:null,tagStart:null,context:null};return c!=null&&(B.baseIndent=c),B},token:function(c,B){if(!B.tagName&&c.sol()&&(B.indented=c.indentation()),c.eatSpace())return null;L=null;var $=B.tokenize(c,B);return($||L)&&$!="comment"&&(T=null,B.state=B.state(L||$,c,B),T&&($=T=="error"?$+" error":T)),$},indent:function(c,B,$){var M=c.context;if(c.tokenize.isInAttribute)return c.tagStart==c.indented?c.stringStartCol+1:c.indented+A;if(M&&M.noIndent)return u.Pass;if(c.tokenize!=b&&c.tokenize!=m)return $?$.match(/^(\s*)/)[0].length:0;if(c.tagName)return p.multilineTagIndentPastTag!==!1?c.tagStart+c.tagName.length+2:c.tagStart+A*(p.multilineTagIndentFactor||1);if(p.alignCDATA&&/$/,blockCommentStart:"",configuration:p.htmlMode?"html":"xml",helperType:p.htmlMode?"html":"xml",skipAttribute:function(c){c.state==R&&(c.state=N)},xmlCurrentTag:function(c){return c.tagName?{name:c.tagName,close:c.type=="closeTag"}:null},xmlCurrentContext:function(c){for(var B=[],$=c.context;$;$=$.prev)B.push($.tagName);return B.reverse()}}}),u.defineMIME("text/xml","xml"),u.defineMIME("application/xml","xml"),u.mimeModes.hasOwnProperty("text/html")||u.defineMIME("text/html",{name:"xml",htmlMode:!0})})});var _o=qe((Kl,Gl)=>{(function(u){typeof Kl=="object"&&typeof Gl=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("javascript",function(P,z){var O=P.indentUnit,S=z.statementIndent,A=z.jsonld,p=z.json||A,D=z.trackScope!==!1,w=z.typescript,L=z.wordCharacters||/[\w$\xa1-\uffff]/,T=function(){function v(at){return{type:at,style:"keyword"}}var q=v("keyword a"),H=v("keyword b"),te=v("keyword c"),ze=v("keyword d"),je=v("operator"),Be={type:"atom",style:"atom"};return{if:v("if"),while:q,with:q,else:H,do:H,try:H,finally:H,return:ze,break:ze,continue:ze,new:v("new"),delete:te,void:te,throw:te,debugger:v("debugger"),var:v("var"),const:v("var"),let:v("var"),function:v("function"),catch:v("catch"),for:v("for"),switch:v("switch"),case:v("case"),default:v("default"),in:je,typeof:je,instanceof:je,true:Be,false:Be,null:Be,undefined:Be,NaN:Be,Infinity:Be,this:v("this"),class:v("class"),super:v("atom"),yield:te,export:v("export"),import:v("import"),extends:te,await:te}}(),m=/[+\-*&%=<>!?|~^@]/,b=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function d(v){for(var q=!1,H,te=!1;(H=v.next())!=null;){if(!q){if(H=="/"&&!te)return;H=="["?te=!0:te&&H=="]"&&(te=!1)}q=!q&&H=="\\"}}var g,k;function y(v,q,H){return g=v,k=H,q}function U(v,q){var H=v.next();if(H=='"'||H=="'")return q.tokenize=_(H),q.tokenize(v,q);if(H=="."&&v.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return y("number","number");if(H=="."&&v.match(".."))return y("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(H))return y(H);if(H=="="&&v.eat(">"))return y("=>","operator");if(H=="0"&&v.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return y("number","number");if(/\d/.test(H))return v.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),y("number","number");if(H=="/")return v.eat("*")?(q.tokenize=W,W(v,q)):v.eat("/")?(v.skipToEnd(),y("comment","comment")):Gt(v,q,1)?(d(v),v.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),y("regexp","string-2")):(v.eat("="),y("operator","operator",v.current()));if(H=="`")return q.tokenize=Z,Z(v,q);if(H=="#"&&v.peek()=="!")return v.skipToEnd(),y("meta","meta");if(H=="#"&&v.eatWhile(L))return y("variable","property");if(H=="<"&&v.match("!--")||H=="-"&&v.match("->")&&!/\S/.test(v.string.slice(0,v.start)))return v.skipToEnd(),y("comment","comment");if(m.test(H))return(H!=">"||!q.lexical||q.lexical.type!=">")&&(v.eat("=")?(H=="!"||H=="=")&&v.eat("="):/[<>*+\-|&?]/.test(H)&&(v.eat(H),H==">"&&v.eat(H))),H=="?"&&v.eat(".")?y("."):y("operator","operator",v.current());if(L.test(H)){v.eatWhile(L);var te=v.current();if(q.lastType!="."){if(T.propertyIsEnumerable(te)){var ze=T[te];return y(ze.type,ze.style,te)}if(te=="async"&&v.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return y("async","keyword",te)}return y("variable","variable",te)}}function _(v){return function(q,H){var te=!1,ze;if(A&&q.peek()=="@"&&q.match(b))return H.tokenize=U,y("jsonld-keyword","meta");for(;(ze=q.next())!=null&&!(ze==v&&!te);)te=!te&&ze=="\\";return te||(H.tokenize=U),y("string","string")}}function W(v,q){for(var H=!1,te;te=v.next();){if(te=="/"&&H){q.tokenize=U;break}H=te=="*"}return y("comment","comment")}function Z(v,q){for(var H=!1,te;(te=v.next())!=null;){if(!H&&(te=="`"||te=="$"&&v.eat("{"))){q.tokenize=U;break}H=!H&&te=="\\"}return y("quasi","string-2",v.current())}var ee="([{}])";function oe(v,q){q.fatArrowAt&&(q.fatArrowAt=null);var H=v.string.indexOf("=>",v.start);if(!(H<0)){if(w){var te=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(v.string.slice(v.start,H));te&&(H=te.index)}for(var ze=0,je=!1,Be=H-1;Be>=0;--Be){var at=v.string.charAt(Be),Ft=ee.indexOf(at);if(Ft>=0&&Ft<3){if(!ze){++Be;break}if(--ze==0){at=="("&&(je=!0);break}}else if(Ft>=3&&Ft<6)++ze;else if(L.test(at))je=!0;else if(/["'\/`]/.test(at))for(;;--Be){if(Be==0)return;var Me=v.string.charAt(Be-1);if(Me==at&&v.string.charAt(Be-2)!="\\"){Be--;break}}else if(je&&!ze){++Be;break}}je&&!ze&&(q.fatArrowAt=Be)}}var Q={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function j(v,q,H,te,ze,je){this.indented=v,this.column=q,this.type=H,this.prev=ze,this.info=je,te!=null&&(this.align=te)}function N(v,q){if(!D)return!1;for(var H=v.localVars;H;H=H.next)if(H.name==q)return!0;for(var te=v.context;te;te=te.prev)for(var H=te.vars;H;H=H.next)if(H.name==q)return!0}function G(v,q,H,te,ze){var je=v.cc;for(R.state=v,R.stream=ze,R.marked=null,R.cc=je,R.style=q,v.lexical.hasOwnProperty("align")||(v.lexical.align=!0);;){var Be=je.length?je.pop():p?fe:Se;if(Be(H,te)){for(;je.length&&je[je.length-1].lex;)je.pop()();return R.marked?R.marked:H=="variable"&&N(v,te)?"variable-2":q}}}var R={state:null,column:null,marked:null,cc:null};function I(){for(var v=arguments.length-1;v>=0;v--)R.cc.push(arguments[v])}function c(){return I.apply(null,arguments),!0}function B(v,q){for(var H=q;H;H=H.next)if(H.name==v)return!0;return!1}function $(v){var q=R.state;if(R.marked="def",!!D){if(q.context){if(q.lexical.info=="var"&&q.context&&q.context.block){var H=M(v,q.context);if(H!=null){q.context=H;return}}else if(!B(v,q.localVars)){q.localVars=new Y(v,q.localVars);return}}z.globalVars&&!B(v,q.globalVars)&&(q.globalVars=new Y(v,q.globalVars))}}function M(v,q){if(q)if(q.block){var H=M(v,q.prev);return H?H==q.prev?q:new V(H,q.vars,!0):null}else return B(v,q.vars)?q:new V(q.prev,new Y(v,q.vars),!1);else return null}function C(v){return v=="public"||v=="private"||v=="protected"||v=="abstract"||v=="readonly"}function V(v,q,H){this.prev=v,this.vars=q,this.block=H}function Y(v,q){this.name=v,this.next=q}var x=new Y("this",new Y("arguments",null));function h(){R.state.context=new V(R.state.context,R.state.localVars,!1),R.state.localVars=x}function se(){R.state.context=new V(R.state.context,R.state.localVars,!0),R.state.localVars=null}h.lex=se.lex=!0;function _e(){R.state.localVars=R.state.context.vars,R.state.context=R.state.context.prev}_e.lex=!0;function ue(v,q){var H=function(){var te=R.state,ze=te.indented;if(te.lexical.type=="stat")ze=te.lexical.indented;else for(var je=te.lexical;je&&je.type==")"&&je.align;je=je.prev)ze=je.indented;te.lexical=new j(ze,R.stream.column(),v,null,te.lexical,q)};return H.lex=!0,H}function he(){var v=R.state;v.lexical.prev&&(v.lexical.type==")"&&(v.indented=v.lexical.indented),v.lexical=v.lexical.prev)}he.lex=!0;function Te(v){function q(H){return H==v?c():v==";"||H=="}"||H==")"||H=="]"?I():c(q)}return q}function Se(v,q){return v=="var"?c(ue("vardef",q),Jt,Te(";"),he):v=="keyword a"?c(ue("form"),De,Se,he):v=="keyword b"?c(ue("form"),Se,he):v=="keyword d"?R.stream.match(/^\s*$/,!1)?c():c(ue("stat"),ht,Te(";"),he):v=="debugger"?c(Te(";")):v=="{"?c(ue("}"),se,qt,he,_e):v==";"?c():v=="if"?(R.state.lexical.info=="else"&&R.state.cc[R.state.cc.length-1]==he&&R.state.cc.pop()(),c(ue("form"),De,Se,he,Fr)):v=="function"?c($t):v=="for"?c(ue("form"),se,Rn,Se,_e,he):v=="class"||w&&q=="interface"?(R.marked="keyword",c(ue("form",v=="class"?v:q),jn,he)):v=="variable"?w&&q=="declare"?(R.marked="keyword",c(Se)):w&&(q=="module"||q=="enum"||q=="type")&&R.stream.match(/^\s*\w/,!1)?(R.marked="keyword",q=="enum"?c(qr):q=="type"?c(Wn,Te("operator"),me,Te(";")):c(ue("form"),wt,Te("{"),ue("}"),qt,he,he)):w&&q=="namespace"?(R.marked="keyword",c(ue("form"),fe,Se,he)):w&&q=="abstract"?(R.marked="keyword",c(Se)):c(ue("stat"),Fe):v=="switch"?c(ue("form"),De,Te("{"),ue("}","switch"),se,qt,he,he,_e):v=="case"?c(fe,Te(":")):v=="default"?c(Te(":")):v=="catch"?c(ue("form"),h,ae,Se,he,_e):v=="export"?c(ue("stat"),cr,he):v=="import"?c(ue("stat"),er,he):v=="async"?c(Se):q=="@"?c(fe,Se):I(ue("stat"),fe,Te(";"),he)}function ae(v){if(v=="(")return c(Wt,Te(")"))}function fe(v,q){return Qe(v,q,!1)}function ve(v,q){return Qe(v,q,!0)}function De(v){return v!="("?I():c(ue(")"),ht,Te(")"),he)}function Qe(v,q,H){if(R.state.fatArrowAt==R.stream.start){var te=H?Re:Ge;if(v=="(")return c(h,ue(")"),Ae(Wt,")"),he,Te("=>"),te,_e);if(v=="variable")return I(h,wt,Te("=>"),te,_e)}var ze=H?$e:Ne;return Q.hasOwnProperty(v)?c(ze):v=="function"?c($t,ze):v=="class"||w&&q=="interface"?(R.marked="keyword",c(ue("form"),ur,he)):v=="keyword c"||v=="async"?c(H?ve:fe):v=="("?c(ue(")"),ht,Te(")"),he,ze):v=="operator"||v=="spread"?c(H?ve:fe):v=="["?c(ue("]"),tr,he,ze):v=="{"?Dt(Le,"}",null,ze):v=="quasi"?I(Ee,ze):v=="new"?c(J(H)):c()}function ht(v){return v.match(/[;\}\)\],]/)?I():I(fe)}function Ne(v,q){return v==","?c(ht):$e(v,q,!1)}function $e(v,q,H){var te=H==!1?Ne:$e,ze=H==!1?fe:ve;if(v=="=>")return c(h,H?Re:Ge,_e);if(v=="operator")return/\+\+|--/.test(q)||w&&q=="!"?c(te):w&&q=="<"&&R.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?c(ue(">"),Ae(me,">"),he,te):q=="?"?c(fe,Te(":"),ze):c(ze);if(v=="quasi")return I(Ee,te);if(v!=";"){if(v=="(")return Dt(ve,")","call",te);if(v==".")return c(be,te);if(v=="[")return c(ue("]"),ht,Te("]"),he,te);if(w&&q=="as")return R.marked="keyword",c(me,te);if(v=="regexp")return R.state.lastType=R.marked="operator",R.stream.backUp(R.stream.pos-R.stream.start-1),c(ze)}}function Ee(v,q){return v!="quasi"?I():q.slice(q.length-2)!="${"?c(Ee):c(ht,rt)}function rt(v){if(v=="}")return R.marked="string-2",R.state.tokenize=Z,c(Ee)}function Ge(v){return oe(R.stream,R.state),I(v=="{"?Se:fe)}function Re(v){return oe(R.stream,R.state),I(v=="{"?Se:ve)}function J(v){return function(q){return q=="."?c(v?ne:le):q=="variable"&&w?c(gt,v?$e:Ne):I(v?ve:fe)}}function le(v,q){if(q=="target")return R.marked="keyword",c(Ne)}function ne(v,q){if(q=="target")return R.marked="keyword",c($e)}function Fe(v){return v==":"?c(he,Se):I(Ne,Te(";"),he)}function be(v){if(v=="variable")return R.marked="property",c()}function Le(v,q){if(v=="async")return R.marked="property",c(Le);if(v=="variable"||R.style=="keyword"){if(R.marked="property",q=="get"||q=="set")return c(ke);var H;return w&&R.state.fatArrowAt==R.stream.start&&(H=R.stream.match(/^\s*:\s*/,!1))&&(R.state.fatArrowAt=R.stream.pos+H[0].length),c(Pe)}else{if(v=="number"||v=="string")return R.marked=A?"property":R.style+" property",c(Pe);if(v=="jsonld-keyword")return c(Pe);if(w&&C(q))return R.marked="keyword",c(Le);if(v=="[")return c(fe,Ot,Te("]"),Pe);if(v=="spread")return c(ve,Pe);if(q=="*")return R.marked="keyword",c(Le);if(v==":")return I(Pe)}}function ke(v){return v!="variable"?I(Pe):(R.marked="property",c($t))}function Pe(v){if(v==":")return c(ve);if(v=="(")return I($t)}function Ae(v,q,H){function te(ze,je){if(H?H.indexOf(ze)>-1:ze==","){var Be=R.state.lexical;return Be.info=="call"&&(Be.pos=(Be.pos||0)+1),c(function(at,Ft){return at==q||Ft==q?I():I(v)},te)}return ze==q||je==q?c():H&&H.indexOf(";")>-1?I(v):c(Te(q))}return function(ze,je){return ze==q||je==q?c():I(v,te)}}function Dt(v,q,H){for(var te=3;te"),me);if(v=="quasi")return I(Ve,xt)}function tn(v){if(v=="=>")return c(me)}function mt(v){return v.match(/[\}\)\]]/)?c():v==","||v==";"?c(mt):I(Xe,mt)}function Xe(v,q){if(v=="variable"||R.style=="keyword")return R.marked="property",c(Xe);if(q=="?"||v=="number"||v=="string")return c(Xe);if(v==":")return c(me);if(v=="[")return c(Te("variable"),_i,Te("]"),Xe);if(v=="(")return I(Kt,Xe);if(!v.match(/[;\}\)\],]/))return c()}function Ve(v,q){return v!="quasi"?I():q.slice(q.length-2)!="${"?c(Ve):c(me,Pn)}function Pn(v){if(v=="}")return R.marked="string-2",R.state.tokenize=Z,c(Ve)}function bt(v,q){return v=="variable"&&R.stream.match(/^\s*[?:]/,!1)||q=="?"?c(bt):v==":"?c(me):v=="spread"?c(bt):I(me)}function xt(v,q){if(q=="<")return c(ue(">"),Ae(me,">"),he,xt);if(q=="|"||v=="."||q=="&")return c(me);if(v=="[")return c(me,Te("]"),xt);if(q=="extends"||q=="implements")return R.marked="keyword",c(me);if(q=="?")return c(me,Te(":"),me)}function gt(v,q){if(q=="<")return c(ue(">"),Ae(me,">"),he,xt)}function kr(){return I(me,rn)}function rn(v,q){if(q=="=")return c(me)}function Jt(v,q){return q=="enum"?(R.marked="keyword",c(qr)):I(wt,Ot,Pt,wi)}function wt(v,q){if(w&&C(q))return R.marked="keyword",c(wt);if(v=="variable")return $(q),c();if(v=="spread")return c(wt);if(v=="[")return Dt(ki,"]");if(v=="{")return Dt(nn,"}")}function nn(v,q){return v=="variable"&&!R.stream.match(/^\s*:/,!1)?($(q),c(Pt)):(v=="variable"&&(R.marked="property"),v=="spread"?c(wt):v=="}"?I():v=="["?c(fe,Te("]"),Te(":"),nn):c(Te(":"),wt,Pt))}function ki(){return I(wt,Pt)}function Pt(v,q){if(q=="=")return c(ve)}function wi(v){if(v==",")return c(Jt)}function Fr(v,q){if(v=="keyword b"&&q=="else")return c(ue("form","else"),Se,he)}function Rn(v,q){if(q=="await")return c(Rn);if(v=="(")return c(ue(")"),on,he)}function on(v){return v=="var"?c(Jt,sr):v=="variable"?c(sr):I(sr)}function sr(v,q){return v==")"?c():v==";"?c(sr):q=="in"||q=="of"?(R.marked="keyword",c(fe,sr)):I(fe,sr)}function $t(v,q){if(q=="*")return R.marked="keyword",c($t);if(v=="variable")return $(q),c($t);if(v=="(")return c(h,ue(")"),Ae(Wt,")"),he,Nt,Se,_e);if(w&&q=="<")return c(ue(">"),Ae(kr,">"),he,$t)}function Kt(v,q){if(q=="*")return R.marked="keyword",c(Kt);if(v=="variable")return $(q),c(Kt);if(v=="(")return c(h,ue(")"),Ae(Wt,")"),he,Nt,_e);if(w&&q=="<")return c(ue(">"),Ae(kr,">"),he,Kt)}function Wn(v,q){if(v=="keyword"||v=="variable")return R.marked="type",c(Wn);if(q=="<")return c(ue(">"),Ae(kr,">"),he)}function Wt(v,q){return q=="@"&&c(fe,Wt),v=="spread"?c(Wt):w&&C(q)?(R.marked="keyword",c(Wt)):w&&v=="this"?c(Ot,Pt):I(wt,Ot,Pt)}function ur(v,q){return v=="variable"?jn(v,q):Ir(v,q)}function jn(v,q){if(v=="variable")return $(q),c(Ir)}function Ir(v,q){if(q=="<")return c(ue(">"),Ae(kr,">"),he,Ir);if(q=="extends"||q=="implements"||w&&v==",")return q=="implements"&&(R.marked="keyword"),c(w?me:fe,Ir);if(v=="{")return c(ue("}"),zt,he)}function zt(v,q){if(v=="async"||v=="variable"&&(q=="static"||q=="get"||q=="set"||w&&C(q))&&R.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return R.marked="keyword",c(zt);if(v=="variable"||R.style=="keyword")return R.marked="property",c(Vt,zt);if(v=="number"||v=="string")return c(Vt,zt);if(v=="[")return c(fe,Ot,Te("]"),Vt,zt);if(q=="*")return R.marked="keyword",c(zt);if(w&&v=="(")return I(Kt,zt);if(v==";"||v==",")return c(zt);if(v=="}")return c();if(q=="@")return c(fe,zt)}function Vt(v,q){if(q=="!"||q=="?")return c(Vt);if(v==":")return c(me,Pt);if(q=="=")return c(ve);var H=R.state.lexical.prev,te=H&&H.info=="interface";return I(te?Kt:$t)}function cr(v,q){return q=="*"?(R.marked="keyword",c(xe,Te(";"))):q=="default"?(R.marked="keyword",c(fe,Te(";"))):v=="{"?c(Ae(Bn,"}"),xe,Te(";")):I(Se)}function Bn(v,q){if(q=="as")return R.marked="keyword",c(Te("variable"));if(v=="variable")return I(ve,Bn)}function er(v){return v=="string"?c():v=="("?I(fe):v=="."?I(Ne):I(fr,an,xe)}function fr(v,q){return v=="{"?Dt(fr,"}"):(v=="variable"&&$(q),q=="*"&&(R.marked="keyword"),c(et))}function an(v){if(v==",")return c(fr,an)}function et(v,q){if(q=="as")return R.marked="keyword",c(fr)}function xe(v,q){if(q=="from")return R.marked="keyword",c(fe)}function tr(v){return v=="]"?c():I(Ae(ve,"]"))}function qr(){return I(ue("form"),wt,Te("{"),ue("}"),Ae(Rt,"}"),he,he)}function Rt(){return I(wt,Pt)}function He(v,q){return v.lastType=="operator"||v.lastType==","||m.test(q.charAt(0))||/[,.]/.test(q.charAt(0))}function Gt(v,q,H){return q.tokenize==U&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(q.lastType)||q.lastType=="quasi"&&/\{\s*$/.test(v.string.slice(0,v.pos-(H||0)))}return{startState:function(v){var q={tokenize:U,lastType:"sof",cc:[],lexical:new j((v||0)-O,0,"block",!1),localVars:z.localVars,context:z.localVars&&new V(null,null,!1),indented:v||0};return z.globalVars&&typeof z.globalVars=="object"&&(q.globalVars=z.globalVars),q},token:function(v,q){if(v.sol()&&(q.lexical.hasOwnProperty("align")||(q.lexical.align=!1),q.indented=v.indentation(),oe(v,q)),q.tokenize!=W&&v.eatSpace())return null;var H=q.tokenize(v,q);return g=="comment"?H:(q.lastType=g=="operator"&&(k=="++"||k=="--")?"incdec":g,G(q,H,g,k,v))},indent:function(v,q){if(v.tokenize==W||v.tokenize==Z)return u.Pass;if(v.tokenize!=U)return 0;var H=q&&q.charAt(0),te=v.lexical,ze;if(!/^\s*else\b/.test(q))for(var je=v.cc.length-1;je>=0;--je){var Be=v.cc[je];if(Be==he)te=te.prev;else if(Be!=Fr&&Be!=_e)break}for(;(te.type=="stat"||te.type=="form")&&(H=="}"||(ze=v.cc[v.cc.length-1])&&(ze==Ne||ze==$e)&&!/^[,\.=+\-*:?[\(]/.test(q));)te=te.prev;S&&te.type==")"&&te.prev.type=="stat"&&(te=te.prev);var at=te.type,Ft=H==at;return at=="vardef"?te.indented+(v.lastType=="operator"||v.lastType==","?te.info.length+1:0):at=="form"&&H=="{"?te.indented:at=="form"?te.indented+O:at=="stat"?te.indented+(He(v,q)?S||O:0):te.info=="switch"&&!Ft&&z.doubleIndentSwitch!=!1?te.indented+(/^(?:case|default)\b/.test(q)?O:2*O):te.align?te.column+(Ft?0:1):te.indented+(Ft?0:O)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:p?null:"/*",blockCommentEnd:p?null:"*/",blockCommentContinue:p?null:" * ",lineComment:p?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:p?"json":"javascript",jsonldMode:A,jsonMode:p,expressionAllowed:Gt,skipExpression:function(v){G(v,"atom","atom","true",new u.StringStream("",2,null))}}}),u.registerHelper("wordChars","javascript",/[\w$]/),u.defineMIME("text/javascript","javascript"),u.defineMIME("text/ecmascript","javascript"),u.defineMIME("application/javascript","javascript"),u.defineMIME("application/x-javascript","javascript"),u.defineMIME("application/ecmascript","javascript"),u.defineMIME("application/json",{name:"javascript",json:!0}),u.defineMIME("application/x-json",{name:"javascript",json:!0}),u.defineMIME("application/manifest+json",{name:"javascript",json:!0}),u.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),u.defineMIME("text/typescript",{name:"javascript",typescript:!0}),u.defineMIME("application/typescript",{name:"javascript",typescript:!0})})});var ko=qe((Zl,Xl)=>{(function(u){typeof Zl=="object"&&typeof Xl=="object"?u(Oe(),xi(),_o(),xo()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],u):u(CodeMirror)})(function(u){"use strict";var P={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(L,T,m){var b=L.current(),d=b.search(T);return d>-1?L.backUp(b.length-d):b.match(/<\/?$/)&&(L.backUp(b.length),L.match(T,!1)||L.match(b)),m}var O={};function S(L){var T=O[L];return T||(O[L]=new RegExp("\\s+"+L+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function A(L,T){var m=L.match(S(T));return m?/^\s*(.*?)\s*$/.exec(m[2])[1]:""}function p(L,T){return new RegExp((T?"^":"")+"","i")}function D(L,T){for(var m in L)for(var b=T[m]||(T[m]=[]),d=L[m],g=d.length-1;g>=0;g--)b.unshift(d[g])}function w(L,T){for(var m=0;m=0;k--)b.script.unshift(["type",g[k].matches,g[k].mode]);function y(U,_){var W=m.token(U,_.htmlState),Z=/\btag\b/.test(W),ee;if(Z&&!/[<>\s\/]/.test(U.current())&&(ee=_.htmlState.tagName&&_.htmlState.tagName.toLowerCase())&&b.hasOwnProperty(ee))_.inTag=ee+" ";else if(_.inTag&&Z&&/>$/.test(U.current())){var oe=/^([\S]+) (.*)/.exec(_.inTag);_.inTag=null;var Q=U.current()==">"&&w(b[oe[1]],oe[2]),j=u.getMode(L,Q),N=p(oe[1],!0),G=p(oe[1],!1);_.token=function(R,I){return R.match(N,!1)?(I.token=y,I.localState=I.localMode=null,null):z(R,G,I.localMode.token(R,I.localState))},_.localMode=j,_.localState=u.startState(j,m.indent(_.htmlState,"",""))}else _.inTag&&(_.inTag+=U.current(),U.eol()&&(_.inTag+=" "));return W}return{startState:function(){var U=u.startState(m);return{token:y,inTag:null,localMode:null,localState:null,htmlState:U}},copyState:function(U){var _;return U.localState&&(_=u.copyState(U.localMode,U.localState)),{token:U.token,inTag:U.inTag,localMode:U.localMode,localState:_,htmlState:u.copyState(m,U.htmlState)}},token:function(U,_){return _.token(U,_)},indent:function(U,_,W){return!U.localMode||/^\s*<\//.test(_)?m.indent(U.htmlState,_,W):U.localMode.indent?U.localMode.indent(U.localState,_,W):u.Pass},innerMode:function(U){return{state:U.localState||U.htmlState,mode:U.localMode||m}}}},"xml","javascript","css"),u.defineMIME("text/html","htmlmixed")})});var Jl=qe((Ql,Yl)=>{(function(u){typeof Ql=="object"&&typeof Yl=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("julia",function(P,z){function O(Y,x,h){return typeof h>"u"&&(h=""),typeof x>"u"&&(x="\\b"),new RegExp("^"+h+"(("+Y.join(")|(")+"))"+x)}var S="\\\\[0-7]{1,3}",A="\\\\x[A-Fa-f0-9]{1,2}",p=`\\\\[abefnrtv0%?'"\\\\]`,D="([^\\u0027\\u005C\\uD800-\\uDFFF]|[\\uD800-\\uDFFF][\\uDC00-\\uDFFF])",w=["[<>]:","[<>=]=","<<=?",">>>?=?","=>","--?>","<--[->]?","\\/\\/","\\.{2,3}","[\\.\\\\%*+\\-<>!\\/^|&]=?","\\?","\\$","~",":"],L=z.operators||O(["[<>]:","[<>=]=","[!=]==","<<=?",">>>?=?","=>?","--?>","<--[->]?","\\/\\/","[\\\\%*+\\-<>!\\/^|&\\u00F7\\u22BB]=?","\\?","\\$","~",":","\\u00D7","\\u2208","\\u2209","\\u220B","\\u220C","\\u2218","\\u221A","\\u221B","\\u2229","\\u222A","\\u2260","\\u2264","\\u2265","\\u2286","\\u2288","\\u228A","\\u22C5","\\b(in|isa)\\b(?!.?\\()"],""),T=z.delimiters||/^[;,()[\]{}]/,m=z.identifiers||/^[_A-Za-z\u00A1-\u2217\u2219-\uFFFF][\w\u00A1-\u2217\u2219-\uFFFF]*!*/,b=O([S,A,p,D],"'"),d=["begin","function","type","struct","immutable","let","macro","for","while","quote","if","else","elseif","try","finally","catch","do"],g=["end","else","elseif","catch","finally"],k=["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"];u.registerHelper("hintWords","julia",k.concat(y));var U=O(d),_=O(g),W=O(k),Z=O(y),ee=/^@[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,oe=/^:[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,Q=/^(`|([_A-Za-z\u00A1-\uFFFF]*"("")?))/,j=O(w,"","@"),N=O(w,"",":");function G(Y){return Y.nestedArrays>0}function R(Y){return Y.nestedGenerators>0}function I(Y,x){return typeof x>"u"&&(x=0),Y.scopes.length<=x?null:Y.scopes[Y.scopes.length-(x+1)]}function c(Y,x){if(Y.match("#=",!1))return x.tokenize=$,x.tokenize(Y,x);var h=x.leavingExpr;if(Y.sol()&&(h=!1),x.leavingExpr=!1,h&&Y.match(/^'+/))return"operator";if(Y.match(/\.{4,}/))return"error";if(Y.match(/\.{1,3}/))return"operator";if(Y.eatSpace())return null;var se=Y.peek();if(se==="#")return Y.skipToEnd(),"comment";if(se==="["&&(x.scopes.push("["),x.nestedArrays++),se==="("&&(x.scopes.push("("),x.nestedGenerators++),G(x)&&se==="]"){for(;x.scopes.length&&I(x)!=="[";)x.scopes.pop();x.scopes.pop(),x.nestedArrays--,x.leavingExpr=!0}if(R(x)&&se===")"){for(;x.scopes.length&&I(x)!=="(";)x.scopes.pop();x.scopes.pop(),x.nestedGenerators--,x.leavingExpr=!0}if(G(x)){if(x.lastToken=="end"&&Y.match(":"))return"operator";if(Y.match("end"))return"number"}var _e;if((_e=Y.match(U,!1))&&x.scopes.push(_e[0]),Y.match(_,!1)&&x.scopes.pop(),Y.match(/^::(?![:\$])/))return x.tokenize=B,x.tokenize(Y,x);if(!h&&(Y.match(oe)||Y.match(N)))return"builtin";if(Y.match(L))return"operator";if(Y.match(/^\.?\d/,!1)){var ue=RegExp(/^im\b/),he=!1;if(Y.match(/^0x\.[0-9a-f_]+p[\+\-]?[_\d]+/i)&&(he=!0),Y.match(/^0x[0-9a-f_]+/i)&&(he=!0),Y.match(/^0b[01_]+/i)&&(he=!0),Y.match(/^0o[0-7_]+/i)&&(he=!0),Y.match(/^(?:(?:\d[_\d]*)?\.(?!\.)(?:\d[_\d]*)?|\d[_\d]*\.(?!\.)(?:\d[_\d]*))?([Eef][\+\-]?[_\d]+)?/i)&&(he=!0),Y.match(/^\d[_\d]*(e[\+\-]?\d+)?/i)&&(he=!0),he)return Y.match(ue),x.leavingExpr=!0,"number"}if(Y.match("'"))return x.tokenize=M,x.tokenize(Y,x);if(Y.match(Q))return x.tokenize=C(Y.current()),x.tokenize(Y,x);if(Y.match(ee)||Y.match(j))return"meta";if(Y.match(T))return null;if(Y.match(W))return"keyword";if(Y.match(Z))return"builtin";var Te=x.isDefinition||x.lastToken=="function"||x.lastToken=="macro"||x.lastToken=="type"||x.lastToken=="struct"||x.lastToken=="immutable";return Y.match(m)?Te?Y.peek()==="."?(x.isDefinition=!0,"variable"):(x.isDefinition=!1,"def"):(x.leavingExpr=!0,"variable"):(Y.next(),"error")}function B(Y,x){return Y.match(/.*?(?=[,;{}()=\s]|$)/),Y.match("{")?x.nestedParameters++:Y.match("}")&&x.nestedParameters>0&&x.nestedParameters--,x.nestedParameters>0?Y.match(/.*?(?={|})/)||Y.next():x.nestedParameters==0&&(x.tokenize=c),"builtin"}function $(Y,x){return Y.match("#=")&&x.nestedComments++,Y.match(/.*?(?=(#=|=#))/)||Y.skipToEnd(),Y.match("=#")&&(x.nestedComments--,x.nestedComments==0&&(x.tokenize=c)),"comment"}function M(Y,x){var h=!1,se;if(Y.match(b))h=!0;else if(se=Y.match(/\\u([a-f0-9]{1,4})(?=')/i)){var _e=parseInt(se[1],16);(_e<=55295||_e>=57344)&&(h=!0,Y.next())}else if(se=Y.match(/\\U([A-Fa-f0-9]{5,8})(?=')/)){var _e=parseInt(se[1],16);_e<=1114111&&(h=!0,Y.next())}return h?(x.leavingExpr=!0,x.tokenize=c,"string"):(Y.match(/^[^']+(?=')/)||Y.skipToEnd(),Y.match("'")&&(x.tokenize=c),"error")}function C(Y){Y.substr(-3)==='"""'?Y='"""':Y.substr(-1)==='"'&&(Y='"');function x(h,se){if(h.eat("\\"))h.next();else{if(h.match(Y))return se.tokenize=c,se.leavingExpr=!0,"string";h.eat(/[`"]/)}return h.eatWhile(/[^\\`"]/),"string"}return x}var V={startState:function(){return{tokenize:c,scopes:[],lastToken:null,leavingExpr:!1,isDefinition:!1,nestedArrays:0,nestedComments:0,nestedGenerators:0,nestedParameters:0,firstParenPos:-1}},token:function(Y,x){var h=x.tokenize(Y,x),se=Y.current();return se&&h&&(x.lastToken=se),h},indent:function(Y,x){var h=0;return(x==="]"||x===")"||/^end\b/.test(x)||/^else/.test(x)||/^catch\b/.test(x)||/^elseif\b/.test(x)||/^finally/.test(x))&&(h=-1),(Y.scopes.length+h)*P.indentUnit},electricInput:/\b(end|else|catch|finally)\b/,blockCommentStart:"#=",blockCommentEnd:"=#",lineComment:"#",closeBrackets:'()[]{}""',fold:"indent"};return V}),u.defineMIME("text/x-julia","julia")})});var ts=qe((Vl,es)=>{(function(u){typeof Vl=="object"&&typeof es=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("lua",function(P,z){var O=P.indentUnit;function S(y){return new RegExp("^(?:"+y.join("|")+")","i")}function A(y){return new RegExp("^(?:"+y.join("|")+")$","i")}var p=A(z.specials||[]),D=A(["_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"]),w=A(["and","break","elseif","false","nil","not","or","return","true","function","end","if","then","else","do","while","repeat","until","for","in","local"]),L=A(["function","if","repeat","do","\\(","{"]),T=A(["end","until","\\)","}"]),m=S(["end","until","\\)","}","else","elseif"]);function b(y){for(var U=0;y.eat("=");)++U;return y.eat("["),U}function d(y,U){var _=y.next();return _=="-"&&y.eat("-")?y.eat("[")&&y.eat("[")?(U.cur=g(b(y),"comment"))(y,U):(y.skipToEnd(),"comment"):_=='"'||_=="'"?(U.cur=k(_))(y,U):_=="["&&/[\[=]/.test(y.peek())?(U.cur=g(b(y),"string"))(y,U):/\d/.test(_)?(y.eatWhile(/[\w.%]/),"number"):/[\w_]/.test(_)?(y.eatWhile(/[\w\\\-_.]/),"variable"):null}function g(y,U){return function(_,W){for(var Z=null,ee;(ee=_.next())!=null;)if(Z==null)ee=="]"&&(Z=0);else if(ee=="=")++Z;else if(ee=="]"&&Z==y){W.cur=d;break}else Z=null;return U}}function k(y){return function(U,_){for(var W=!1,Z;(Z=U.next())!=null&&!(Z==y&&!W);)W=!W&&Z=="\\";return W||(_.cur=d),"string"}}return{startState:function(y){return{basecol:y||0,indentDepth:0,cur:d}},token:function(y,U){if(y.eatSpace())return null;var _=U.cur(y,U),W=y.current();return _=="variable"&&(w.test(W)?_="keyword":D.test(W)?_="builtin":p.test(W)&&(_="variable-2")),_!="comment"&&_!="string"&&(L.test(W)?++U.indentDepth:T.test(W)&&--U.indentDepth),_},indent:function(y,U){var _=m.test(U);return y.basecol+O*(y.indentDepth-(_?1:0))},electricInput:/^\s*(?:end|until|else|\)|\})$/,lineComment:"--",blockCommentStart:"--[[",blockCommentEnd:"]]"}}),u.defineMIME("text/x-lua","lua")})});var is=qe((rs,ns)=>{(function(u){typeof rs=="object"&&typeof ns=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.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 P=0;P-1&&O.substring(p+1,O.length);if(D)return u.findModeByExtension(D)},u.findModeByName=function(O){O=O.toLowerCase();for(var S=0;S{(function(u){typeof os=="object"&&typeof as=="object"?u(Oe(),xi(),is()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../xml/xml","../meta"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("markdown",function(P,z){var O=u.getMode(P,"text/html"),S=O.name=="null";function A(x){if(u.findModeByName){var h=u.findModeByName(x);h&&(x=h.mime||h.mimes[0])}var se=u.getMode(P,x);return se.name=="null"?null:se}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 p={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 D in p)p.hasOwnProperty(D)&&z.tokenTypeOverrides[D]&&(p[D]=z.tokenTypeOverrides[D]);var w=/^([*\-_])(?:\s*\1){2,}\s*$/,L=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,T=/^\[(x| )\](?=\s)/i,m=z.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,b=/^ {0,3}(?:\={1,}|-{2,})\s*$/,d=/^[^#!\[\]*_\\<>` "'(~:]+/,g=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,k=/^\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]/,U=" ";function _(x,h,se){return h.f=h.inline=se,se(x,h)}function W(x,h,se){return h.f=h.block=se,se(x,h)}function Z(x){return!x||!/\S/.test(x.string)}function ee(x){if(x.linkTitle=!1,x.linkHref=!1,x.linkText=!1,x.em=!1,x.strong=!1,x.strikethrough=!1,x.quote=0,x.indentedCode=!1,x.f==Q){var h=S;if(!h){var se=u.innerMode(O,x.htmlState);h=se.mode.name=="xml"&&se.state.tagStart===null&&!se.state.context&&se.state.tokenize.isInText}h&&(x.f=R,x.block=oe,x.htmlState=null)}return x.trailingSpace=0,x.trailingSpaceNewLine=!1,x.prevLine=x.thisLine,x.thisLine={stream:null},null}function oe(x,h){var se=x.column()===h.indentation,_e=Z(h.prevLine.stream),ue=h.indentedCode,he=h.prevLine.hr,Te=h.list!==!1,Se=(h.listStack[h.listStack.length-1]||0)+3;h.indentedCode=!1;var ae=h.indentation;if(h.indentationDiff===null&&(h.indentationDiff=h.indentation,Te)){for(h.list=null;ae=4&&(ue||h.prevLine.fencedCodeEnd||h.prevLine.header||_e))return x.skipToEnd(),h.indentedCode=!0,p.code;if(x.eatSpace())return null;if(se&&h.indentation<=Se&&(De=x.match(m))&&De[1].length<=6)return h.quote=0,h.header=De[1].length,h.thisLine.header=!0,z.highlightFormatting&&(h.formatting="header"),h.f=h.inline,N(h);if(h.indentation<=Se&&x.eat(">"))return h.quote=se?1:h.quote+1,z.highlightFormatting&&(h.formatting="quote"),x.eatSpace(),N(h);if(!ve&&!h.setext&&se&&h.indentation<=Se&&(De=x.match(L))){var Qe=De[1]?"ol":"ul";return h.indentation=ae+x.current().length,h.list=!0,h.quote=0,h.listStack.push(h.indentation),h.em=!1,h.strong=!1,h.code=!1,h.strikethrough=!1,z.taskLists&&x.match(T,!1)&&(h.taskList=!0),h.f=h.inline,z.highlightFormatting&&(h.formatting=["list","list-"+Qe]),N(h)}else{if(se&&h.indentation<=Se&&(De=x.match(g,!0)))return h.quote=0,h.fencedEndRE=new RegExp(De[1]+"+ *$"),h.localMode=z.fencedCodeBlockHighlighting&&A(De[2]||z.fencedCodeBlockDefaultMode),h.localMode&&(h.localState=u.startState(h.localMode)),h.f=h.block=j,z.highlightFormatting&&(h.formatting="code-block"),h.code=-1,N(h);if(h.setext||(!fe||!Te)&&!h.quote&&h.list===!1&&!h.code&&!ve&&!k.test(x.string)&&(De=x.lookAhead(1))&&(De=De.match(b)))return h.setext?(h.header=h.setext,h.setext=0,x.skipToEnd(),z.highlightFormatting&&(h.formatting="header")):(h.header=De[0].charAt(0)=="="?1:2,h.setext=h.header),h.thisLine.header=!0,h.f=h.inline,N(h);if(ve)return x.skipToEnd(),h.hr=!0,h.thisLine.hr=!0,p.hr;if(x.peek()==="[")return _(x,h,M)}return _(x,h,h.inline)}function Q(x,h){var se=O.token(x,h.htmlState);if(!S){var _e=u.innerMode(O,h.htmlState);(_e.mode.name=="xml"&&_e.state.tagStart===null&&!_e.state.context&&_e.state.tokenize.isInText||h.md_inside&&x.current().indexOf(">")>-1)&&(h.f=R,h.block=oe,h.htmlState=null)}return se}function j(x,h){var se=h.listStack[h.listStack.length-1]||0,_e=h.indentation=x.quote?h.push(p.formatting+"-"+x.formatting[se]+"-"+x.quote):h.push("error"))}if(x.taskOpen)return h.push("meta"),h.length?h.join(" "):null;if(x.taskClosed)return h.push("property"),h.length?h.join(" "):null;if(x.linkHref?h.push(p.linkHref,"url"):(x.strong&&h.push(p.strong),x.em&&h.push(p.em),x.strikethrough&&h.push(p.strikethrough),x.emoji&&h.push(p.emoji),x.linkText&&h.push(p.linkText),x.code&&h.push(p.code),x.image&&h.push(p.image),x.imageAltText&&h.push(p.imageAltText,"link"),x.imageMarker&&h.push(p.imageMarker)),x.header&&h.push(p.header,p.header+"-"+x.header),x.quote&&(h.push(p.quote),!z.maxBlockquoteDepth||z.maxBlockquoteDepth>=x.quote?h.push(p.quote+"-"+x.quote):h.push(p.quote+"-"+z.maxBlockquoteDepth)),x.list!==!1){var _e=(x.listStack.length-1)%3;_e?_e===1?h.push(p.list2):h.push(p.list3):h.push(p.list1)}return x.trailingSpaceNewLine?h.push("trailing-space-new-line"):x.trailingSpace&&h.push("trailing-space-"+(x.trailingSpace%2?"a":"b")),h.length?h.join(" "):null}function G(x,h){if(x.match(d,!0))return N(h)}function R(x,h){var se=h.text(x,h);if(typeof se<"u")return se;if(h.list)return h.list=null,N(h);if(h.taskList){var _e=x.match(T,!0)[1]===" ";return _e?h.taskOpen=!0:h.taskClosed=!0,z.highlightFormatting&&(h.formatting="task"),h.taskList=!1,N(h)}if(h.taskOpen=!1,h.taskClosed=!1,h.header&&x.match(/^#+$/,!0))return z.highlightFormatting&&(h.formatting="header"),N(h);var ue=x.next();if(h.linkTitle){h.linkTitle=!1;var he=ue;ue==="("&&(he=")"),he=(he+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Te="^\\s*(?:[^"+he+"\\\\]+|\\\\\\\\|\\\\.)"+he;if(x.match(new RegExp(Te),!0))return p.linkHref}if(ue==="`"){var Se=h.formatting;z.highlightFormatting&&(h.formatting="code"),x.eatWhile("`");var ae=x.current().length;if(h.code==0&&(!h.quote||ae==1))return h.code=ae,N(h);if(ae==h.code){var fe=N(h);return h.code=0,fe}else return h.formatting=Se,N(h)}else if(h.code)return N(h);if(ue==="\\"&&(x.next(),z.highlightFormatting)){var ve=N(h),De=p.formatting+"-escape";return ve?ve+" "+De:De}if(ue==="!"&&x.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return h.imageMarker=!0,h.image=!0,z.highlightFormatting&&(h.formatting="image"),N(h);if(ue==="["&&h.imageMarker&&x.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return h.imageMarker=!1,h.imageAltText=!0,z.highlightFormatting&&(h.formatting="image"),N(h);if(ue==="]"&&h.imageAltText){z.highlightFormatting&&(h.formatting="image");var ve=N(h);return h.imageAltText=!1,h.image=!1,h.inline=h.f=c,ve}if(ue==="["&&!h.image)return h.linkText&&x.match(/^.*?\]/)||(h.linkText=!0,z.highlightFormatting&&(h.formatting="link")),N(h);if(ue==="]"&&h.linkText){z.highlightFormatting&&(h.formatting="link");var ve=N(h);return h.linkText=!1,h.inline=h.f=x.match(/\(.*?\)| ?\[.*?\]/,!1)?c:R,ve}if(ue==="<"&&x.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){h.f=h.inline=I,z.highlightFormatting&&(h.formatting="link");var ve=N(h);return ve?ve+=" ":ve="",ve+p.linkInline}if(ue==="<"&&x.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){h.f=h.inline=I,z.highlightFormatting&&(h.formatting="link");var ve=N(h);return ve?ve+=" ":ve="",ve+p.linkEmail}if(z.xml&&ue==="<"&&x.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Qe=x.string.indexOf(">",x.pos);if(Qe!=-1){var ht=x.string.substring(x.start,Qe);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(ht)&&(h.md_inside=!0)}return x.backUp(1),h.htmlState=u.startState(O),W(x,h,Q)}if(z.xml&&ue==="<"&&x.match(/^\/\w*?>/))return h.md_inside=!1,"tag";if(ue==="*"||ue==="_"){for(var Ne=1,$e=x.pos==1?" ":x.string.charAt(x.pos-2);Ne<3&&x.eat(ue);)Ne++;var Ee=x.peek()||" ",rt=!/\s/.test(Ee)&&(!y.test(Ee)||/\s/.test($e)||y.test($e)),Ge=!/\s/.test($e)&&(!y.test($e)||/\s/.test(Ee)||y.test(Ee)),Re=null,J=null;if(Ne%2&&(!h.em&&rt&&(ue==="*"||!Ge||y.test($e))?Re=!0:h.em==ue&&Ge&&(ue==="*"||!rt||y.test(Ee))&&(Re=!1)),Ne>1&&(!h.strong&&rt&&(ue==="*"||!Ge||y.test($e))?J=!0:h.strong==ue&&Ge&&(ue==="*"||!rt||y.test(Ee))&&(J=!1)),J!=null||Re!=null){z.highlightFormatting&&(h.formatting=Re==null?"strong":J==null?"em":"strong em"),Re===!0&&(h.em=ue),J===!0&&(h.strong=ue);var fe=N(h);return Re===!1&&(h.em=!1),J===!1&&(h.strong=!1),fe}}else if(ue===" "&&(x.eat("*")||x.eat("_"))){if(x.peek()===" ")return N(h);x.backUp(1)}if(z.strikethrough){if(ue==="~"&&x.eatWhile(ue)){if(h.strikethrough){z.highlightFormatting&&(h.formatting="strikethrough");var fe=N(h);return h.strikethrough=!1,fe}else if(x.match(/^[^\s]/,!1))return h.strikethrough=!0,z.highlightFormatting&&(h.formatting="strikethrough"),N(h)}else if(ue===" "&&x.match("~~",!0)){if(x.peek()===" ")return N(h);x.backUp(2)}}if(z.emoji&&ue===":"&&x.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){h.emoji=!0,z.highlightFormatting&&(h.formatting="emoji");var le=N(h);return h.emoji=!1,le}return ue===" "&&(x.match(/^ +$/,!1)?h.trailingSpace++:h.trailingSpace&&(h.trailingSpaceNewLine=!0)),N(h)}function I(x,h){var se=x.next();if(se===">"){h.f=h.inline=R,z.highlightFormatting&&(h.formatting="link");var _e=N(h);return _e?_e+=" ":_e="",_e+p.linkInline}return x.match(/^[^>]+/,!0),p.linkInline}function c(x,h){if(x.eatSpace())return null;var se=x.next();return se==="("||se==="["?(h.f=h.inline=$(se==="("?")":"]"),z.highlightFormatting&&(h.formatting="link-string"),h.linkHref=!0,N(h)):"error"}var B={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function $(x){return function(h,se){var _e=h.next();if(_e===x){se.f=se.inline=R,z.highlightFormatting&&(se.formatting="link-string");var ue=N(se);return se.linkHref=!1,ue}return h.match(B[x]),se.linkHref=!0,N(se)}}function M(x,h){return x.match(/^([^\]\\]|\\.)*\]:/,!1)?(h.f=C,x.next(),z.highlightFormatting&&(h.formatting="link"),h.linkText=!0,N(h)):_(x,h,R)}function C(x,h){if(x.match("]:",!0)){h.f=h.inline=V,z.highlightFormatting&&(h.formatting="link");var se=N(h);return h.linkText=!1,se}return x.match(/^([^\]\\]|\\.)+/,!0),p.linkText}function V(x,h){return x.eatSpace()?null:(x.match(/^[^\s]+/,!0),x.peek()===void 0?h.linkTitle=!0:x.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),h.f=h.inline=R,p.linkHref+" url")}var Y={startState:function(){return{f:oe,prevLine:{stream:null},thisLine:{stream:null},block:oe,htmlState:null,indentation:0,inline:R,text:G,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(x){return{f:x.f,prevLine:x.prevLine,thisLine:x.thisLine,block:x.block,htmlState:x.htmlState&&u.copyState(O,x.htmlState),indentation:x.indentation,localMode:x.localMode,localState:x.localMode?u.copyState(x.localMode,x.localState):null,inline:x.inline,text:x.text,formatting:!1,linkText:x.linkText,linkTitle:x.linkTitle,linkHref:x.linkHref,code:x.code,em:x.em,strong:x.strong,strikethrough:x.strikethrough,emoji:x.emoji,header:x.header,setext:x.setext,hr:x.hr,taskList:x.taskList,list:x.list,listStack:x.listStack.slice(0),quote:x.quote,indentedCode:x.indentedCode,trailingSpace:x.trailingSpace,trailingSpaceNewLine:x.trailingSpaceNewLine,md_inside:x.md_inside,fencedEndRE:x.fencedEndRE}},token:function(x,h){if(h.formatting=!1,x!=h.thisLine.stream){if(h.header=0,h.hr=!1,x.match(/^\s*$/,!0))return ee(h),null;if(h.prevLine=h.thisLine,h.thisLine={stream:x},h.taskList=!1,h.trailingSpace=0,h.trailingSpaceNewLine=!1,!h.localState&&(h.f=h.block,h.f!=Q)){var se=x.match(/^\s*/,!0)[0].replace(/\t/g,U).length;if(h.indentation=se,h.indentationDiff=null,se>0)return null}}return h.f(x,h)},innerMode:function(x){return x.block==Q?{state:x.htmlState,mode:O}:x.localState?{state:x.localState,mode:x.localMode}:{state:x,mode:Y}},indent:function(x,h,se){return x.block==Q&&O.indent?O.indent(x.htmlState,h,se):x.localState&&x.localMode.indent?x.localMode.indent(x.localState,h,se):u.Pass},blankLine:ee,getType:N,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Y},"xml"),u.defineMIME("text/markdown","markdown"),u.defineMIME("text/x-markdown","markdown")})});var cs=qe((ss,us)=>{(function(u){typeof ss=="object"&&typeof us=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("mllike",function(P,z){var O={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"},S=z.extraWords||{};for(var A in S)S.hasOwnProperty(A)&&(O[A]=z.extraWords[A]);var p=[];for(var D in O)p.push(D);u.registerHelper("hintWords","mllike",p);function w(b,d){var g=b.next();if(g==='"')return d.tokenize=L,d.tokenize(b,d);if(g==="{"&&b.eat("|"))return d.longString=!0,d.tokenize=m,d.tokenize(b,d);if(g==="("&&b.match(/^\*(?!\))/))return d.commentLevel++,d.tokenize=T,d.tokenize(b,d);if(g==="~"||g==="?")return b.eatWhile(/\w/),"variable-2";if(g==="`")return b.eatWhile(/\w/),"quote";if(g==="/"&&z.slashComments&&b.eat("/"))return b.skipToEnd(),"comment";if(/\d/.test(g))return g==="0"&&b.eat(/[bB]/)&&b.eatWhile(/[01]/),g==="0"&&b.eat(/[xX]/)&&b.eatWhile(/[0-9a-fA-F]/),g==="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(g))return"operator";if(/[\w\xa1-\uffff]/.test(g)){b.eatWhile(/[\w\xa1-\uffff]/);var k=b.current();return O.hasOwnProperty(k)?O[k]:"variable"}return null}function L(b,d){for(var g,k=!1,y=!1;(g=b.next())!=null;){if(g==='"'&&!y){k=!0;break}y=!y&&g==="\\"}return k&&!y&&(d.tokenize=w),"string"}function T(b,d){for(var g,k;d.commentLevel>0&&(k=b.next())!=null;)g==="("&&k==="*"&&d.commentLevel++,g==="*"&&k===")"&&d.commentLevel--,g=k;return d.commentLevel<=0&&(d.tokenize=w),"comment"}function m(b,d){for(var g,k;d.longString&&(k=b.next())!=null;)g==="|"&&k==="}"&&(d.longString=!1),g=k;return d.longString||(d.tokenize=w),"string"}return{startState:function(){return{tokenize:w,commentLevel:0,longString:!1}},token:function(b,d){return b.eatSpace()?null:d.tokenize(b,d)},blockCommentStart:"(*",blockCommentEnd:"*)",lineComment:z.slashComments?"//":null}}),u.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"}}),u.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}),u.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 ps=qe((fs,ds)=>{(function(u){typeof fs=="object"&&typeof ds=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("nginx",function(P){function z(d){for(var g={},k=d.split(" "),y=0;y*\/]/.test(y)?w(null,"select-op"):/[;{}:\[\]]/.test(y)?w(null,y):(d.eatWhile(/[\w\\\-]/),w("variable","variable"))}function T(d,g){for(var k=!1,y;(y=d.next())!=null;){if(k&&y=="/"){g.tokenize=L;break}k=y=="*"}return w("comment","comment")}function m(d,g){for(var k=0,y;(y=d.next())!=null;){if(k>=2&&y==">"){g.tokenize=L;break}k=y=="-"?k+1:0}return w("comment","comment")}function b(d){return function(g,k){for(var y=!1,U;(U=g.next())!=null&&!(U==d&&!y);)y=!y&&U=="\\";return y||(k.tokenize=L),w("string","string")}}return{startState:function(d){return{tokenize:L,baseIndent:d||0,stack:[]}},token:function(d,g){if(d.eatSpace())return null;D=null;var k=g.tokenize(d,g),y=g.stack[g.stack.length-1];return D=="hash"&&y=="rule"?k="atom":k=="variable"&&(y=="rule"?k="number":(!y||y=="@media{")&&(k="tag")),y=="rule"&&/^[\{\};]$/.test(D)&&g.stack.pop(),D=="{"?y=="@media"?g.stack[g.stack.length-1]="@media{":g.stack.push("{"):D=="}"?g.stack.pop():D=="@media"?g.stack.push("@media"):y=="{"&&D!="comment"&&g.stack.push("rule"),k},indent:function(d,g){var k=d.stack.length;return/^\}/.test(g)&&(k-=d.stack[d.stack.length-1]=="rule"?2:1),d.baseIndent+k*p},electricChars:"}"}}),u.defineMIME("text/x-nginx-conf","nginx")})});var gs=qe((hs,ms)=>{(function(u){typeof hs=="object"&&typeof ms=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("octave",function(){function P(g){return new RegExp("^(("+g.join(")|(")+"))\\b")}var z=new RegExp("^[\\+\\-\\*/&|\\^~<>!@'\\\\]"),O=new RegExp("^[\\(\\[\\{\\},:=;\\.]"),S=new RegExp("^((==)|(~=)|(<=)|(>=)|(<<)|(>>)|(\\.[\\+\\-\\*/\\^\\\\]))"),A=new RegExp("^((!=)|(\\+=)|(\\-=)|(\\*=)|(/=)|(&=)|(\\|=)|(\\^=))"),p=new RegExp("^((>>=)|(<<=))"),D=new RegExp("^[\\]\\)]"),w=new RegExp("^[_A-Za-z\xA1-\uFFFF][_A-Za-z0-9\xA1-\uFFFF]*"),L=P(["error","eval","function","abs","acos","atan","asin","cos","cosh","exp","log","prod","sum","log10","max","min","sign","sin","sinh","sqrt","tan","reshape","break","zeros","default","margin","round","ones","rand","syn","ceil","floor","size","clear","zeros","eye","mean","std","cov","det","eig","inv","norm","rank","trace","expm","logm","sqrtm","linspace","plot","title","xlabel","ylabel","legend","text","grid","meshgrid","mesh","num2str","fft","ifft","arrayfun","cellfun","input","fliplr","flipud","ismember"]),T=P(["return","case","switch","else","elseif","end","endif","endfunction","if","otherwise","do","for","while","try","catch","classdef","properties","events","methods","global","persistent","endfor","endwhile","printf","sprintf","disp","until","continue","pkg"]);function m(g,k){return!g.sol()&&g.peek()==="'"?(g.next(),k.tokenize=d,"operator"):(k.tokenize=d,d(g,k))}function b(g,k){return g.match(/^.*%}/)?(k.tokenize=d,"comment"):(g.skipToEnd(),"comment")}function d(g,k){if(g.eatSpace())return null;if(g.match("%{"))return k.tokenize=b,g.skipToEnd(),"comment";if(g.match(/^[%#]/))return g.skipToEnd(),"comment";if(g.match(/^[0-9\.+-]/,!1)){if(g.match(/^[+-]?0x[0-9a-fA-F]+[ij]?/))return g.tokenize=d,"number";if(g.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?[ij]?/)||g.match(/^[+-]?\d+([EeDd][+-]?\d+)?[ij]?/))return"number"}if(g.match(P(["nan","NaN","inf","Inf"])))return"number";var y=g.match(/^"(?:[^"]|"")*("|$)/)||g.match(/^'(?:[^']|'')*('|$)/);return y?y[1]?"string":"string error":g.match(T)?"keyword":g.match(L)?"builtin":g.match(w)?"variable":g.match(z)||g.match(S)?"operator":g.match(O)||g.match(A)||g.match(p)?null:g.match(D)?(k.tokenize=m,null):(g.next(),"error")}return{startState:function(){return{tokenize:d}},token:function(g,k){var y=k.tokenize(g,k);return(y==="number"||y==="variable")&&(k.tokenize=m),y},lineComment:"%",fold:"indent"}}),u.defineMIME("text/x-octave","octave")})});var bs=qe((vs,ys)=>{(function(u){typeof vs=="object"&&typeof ys=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("perl",function(){var A={"->":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},p="string-2",D=/[goseximacplud]/;function w(m,b,d,g,k){return b.chain=null,b.style=null,b.tail=null,b.tokenize=function(y,U){for(var _=!1,W,Z=0;W=y.next();){if(W===d[Z]&&!_)return d[++Z]!==void 0?(U.chain=d[Z],U.style=g,U.tail=k):k&&y.eatWhile(k),U.tokenize=T,g;_=!_&&W=="\\"}return g},b.tokenize(m,b)}function L(m,b,d){return b.tokenize=function(g,k){return g.string==d&&(k.tokenize=T),g.skipToEnd(),"string"},b.tokenize(m,b)}function T(m,b){if(m.eatSpace())return null;if(b.chain)return w(m,b,b.chain,b.style,b.tail);if(m.match(/^(\-?((\d[\d_]*)?\.\d+(e[+-]?\d+)?|\d+\.\d*)|0x[\da-fA-F_]+|0b[01_]+|\d[\d_]*(e[+-]?\d+)?)/))return"number";if(m.match(/^<<(?=[_a-zA-Z])/))return m.eatWhile(/\w/),L(m,b,m.current().substr(2));if(m.sol()&&m.match(/^\=item(?!\w)/))return L(m,b,"=cut");var d=m.next();if(d=='"'||d=="'"){if(z(m,3)=="<<"+d){var g=m.pos;m.eatWhile(/\w/);var k=m.current().substr(1);if(k&&m.eat(d))return L(m,b,k);m.pos=g}return w(m,b,[d],"string")}if(d=="q"){var y=P(m,-2);if(!(y&&/\w/.test(y))){if(y=P(m,0),y=="x"){if(y=P(m,1),y=="(")return S(m,2),w(m,b,[")"],p,D);if(y=="[")return S(m,2),w(m,b,["]"],p,D);if(y=="{")return S(m,2),w(m,b,["}"],p,D);if(y=="<")return S(m,2),w(m,b,[">"],p,D);if(/[\^'"!~\/]/.test(y))return S(m,1),w(m,b,[m.eat(y)],p,D)}else if(y=="q"){if(y=P(m,1),y=="(")return S(m,2),w(m,b,[")"],"string");if(y=="[")return S(m,2),w(m,b,["]"],"string");if(y=="{")return S(m,2),w(m,b,["}"],"string");if(y=="<")return S(m,2),w(m,b,[">"],"string");if(/[\^'"!~\/]/.test(y))return S(m,1),w(m,b,[m.eat(y)],"string")}else if(y=="w"){if(y=P(m,1),y=="(")return S(m,2),w(m,b,[")"],"bracket");if(y=="[")return S(m,2),w(m,b,["]"],"bracket");if(y=="{")return S(m,2),w(m,b,["}"],"bracket");if(y=="<")return S(m,2),w(m,b,[">"],"bracket");if(/[\^'"!~\/]/.test(y))return S(m,1),w(m,b,[m.eat(y)],"bracket")}else if(y=="r"){if(y=P(m,1),y=="(")return S(m,2),w(m,b,[")"],p,D);if(y=="[")return S(m,2),w(m,b,["]"],p,D);if(y=="{")return S(m,2),w(m,b,["}"],p,D);if(y=="<")return S(m,2),w(m,b,[">"],p,D);if(/[\^'"!~\/]/.test(y))return S(m,1),w(m,b,[m.eat(y)],p,D)}else if(/[\^'"!~\/(\[{<]/.test(y)){if(y=="(")return S(m,1),w(m,b,[")"],"string");if(y=="[")return S(m,1),w(m,b,["]"],"string");if(y=="{")return S(m,1),w(m,b,["}"],"string");if(y=="<")return S(m,1),w(m,b,[">"],"string");if(/[\^'"!~\/]/.test(y))return w(m,b,[m.eat(y)],"string")}}}if(d=="m"){var y=P(m,-2);if(!(y&&/\w/.test(y))&&(y=m.eat(/[(\[{<\^'"!~\/]/),y)){if(/[\^'"!~\/]/.test(y))return w(m,b,[y],p,D);if(y=="(")return w(m,b,[")"],p,D);if(y=="[")return w(m,b,["]"],p,D);if(y=="{")return w(m,b,["}"],p,D);if(y=="<")return w(m,b,[">"],p,D)}}if(d=="s"){var y=/[\/>\]})\w]/.test(P(m,-2));if(!y&&(y=m.eat(/[(\[{<\^'"!~\/]/),y))return y=="["?w(m,b,["]","]"],p,D):y=="{"?w(m,b,["}","}"],p,D):y=="<"?w(m,b,[">",">"],p,D):y=="("?w(m,b,[")",")"],p,D):w(m,b,[y,y],p,D)}if(d=="y"){var y=/[\/>\]})\w]/.test(P(m,-2));if(!y&&(y=m.eat(/[(\[{<\^'"!~\/]/),y))return y=="["?w(m,b,["]","]"],p,D):y=="{"?w(m,b,["}","}"],p,D):y=="<"?w(m,b,[">",">"],p,D):y=="("?w(m,b,[")",")"],p,D):w(m,b,[y,y],p,D)}if(d=="t"){var y=/[\/>\]})\w]/.test(P(m,-2));if(!y&&(y=m.eat("r"),y&&(y=m.eat(/[(\[{<\^'"!~\/]/),y)))return y=="["?w(m,b,["]","]"],p,D):y=="{"?w(m,b,["}","}"],p,D):y=="<"?w(m,b,[">",">"],p,D):y=="("?w(m,b,[")",")"],p,D):w(m,b,[y,y],p,D)}if(d=="`")return w(m,b,[d],"variable-2");if(d=="/")return/~\s*$/.test(z(m))?w(m,b,[d],p,D):"operator";if(d=="$"){var g=m.pos;if(m.eatWhile(/\d/)||m.eat("{")&&m.eatWhile(/\d/)&&m.eat("}"))return"variable-2";m.pos=g}if(/[$@%]/.test(d)){var g=m.pos;if(m.eat("^")&&m.eat(/[A-Z]/)||!/[@$%&]/.test(P(m,-2))&&m.eat(/[=|\\\-#?@;:&`~\^!\[\]*'"$+.,\/<>()]/)){var y=m.current();if(A[y])return"variable-2"}m.pos=g}if(/[$@%&]/.test(d)&&(m.eatWhile(/[\w$]/)||m.eat("{")&&m.eatWhile(/[\w$]/)&&m.eat("}"))){var y=m.current();return A[y]?"variable-2":"variable"}if(d=="#"&&P(m,-2)!="$")return m.skipToEnd(),"comment";if(/[:+\-\^*$&%@=<>!?|\/~\.]/.test(d)){var g=m.pos;if(m.eatWhile(/[:+\-\^*$&%@=<>!?|\/~\.]/),A[m.current()])return"operator";m.pos=g}if(d=="_"&&m.pos==1){if(O(m,6)=="_END__")return w(m,b,["\0"],"comment");if(O(m,7)=="_DATA__")return w(m,b,["\0"],"variable-2");if(O(m,7)=="_C__")return w(m,b,["\0"],"string")}if(/\w/.test(d)){var g=m.pos;if(P(m,-2)=="{"&&(P(m,0)=="}"||m.eatWhile(/\w/)&&P(m,0)=="}"))return"string";m.pos=g}if(/[A-Z]/.test(d)){var U=P(m,-2),g=m.pos;if(m.eatWhile(/[A-Z_]/),/[\da-z]/.test(P(m,0)))m.pos=g;else{var y=A[m.current()];return y?(y[1]&&(y=y[0]),U!=":"?y==1?"keyword":y==2?"def":y==3?"atom":y==4?"operator":y==5?"variable-2":"meta":"meta"):"meta"}}if(/[a-zA-Z_]/.test(d)){var U=P(m,-2);m.eatWhile(/\w/);var y=A[m.current()];return y?(y[1]&&(y=y[0]),U!=":"?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:T,chain:null,style:null,tail:null}},token:function(m,b){return(b.tokenize||T)(m,b)},lineComment:"#"}}),u.registerHelper("wordChars","perl",/[\w$]/),u.defineMIME("text/x-perl","perl");function P(A,p){return A.string.charAt(A.pos+(p||0))}function z(A,p){if(p){var D=A.pos-p;return A.string.substr(D>=0?D:0,p)}else return A.string.substr(0,A.pos-1)}function O(A,p){var D=A.string.length,w=D-A.pos+1;return A.string.substr(A.pos,p&&p=(w=A.string.length-1)?A.pos=w:A.pos=D}})});var ks=qe((xs,_s)=>{(function(u){typeof xs=="object"&&typeof _s=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("pascal",function(){function P(L){for(var T={},m=L.split(" "),b=0;b!?|\/]/;function A(L,T){var m=L.next();if(m=="#"&&T.startOfLine)return L.skipToEnd(),"meta";if(m=='"'||m=="'")return T.tokenize=p(m),T.tokenize(L,T);if(m=="("&&L.eat("*"))return T.tokenize=D,D(L,T);if(m=="{")return T.tokenize=w,w(L,T);if(/[\[\]\(\),;\:\.]/.test(m))return null;if(/\d/.test(m))return L.eatWhile(/[\w\.]/),"number";if(m=="/"&&L.eat("/"))return L.skipToEnd(),"comment";if(S.test(m))return L.eatWhile(S),"operator";L.eatWhile(/[\w\$_]/);var b=L.current();return z.propertyIsEnumerable(b)?"keyword":O.propertyIsEnumerable(b)?"atom":"variable"}function p(L){return function(T,m){for(var b=!1,d,g=!1;(d=T.next())!=null;){if(d==L&&!b){g=!0;break}b=!b&&d=="\\"}return(g||!b)&&(m.tokenize=null),"string"}}function D(L,T){for(var m=!1,b;b=L.next();){if(b==")"&&m){T.tokenize=null;break}m=b=="*"}return"comment"}function w(L,T){for(var m;m=L.next();)if(m=="}"){T.tokenize=null;break}return"comment"}return{startState:function(){return{tokenize:null}},token:function(L,T){if(L.eatSpace())return null;var m=(T.tokenize||A)(L,T);return m=="comment"||m=="meta",m},electricChars:"{}"}}),u.defineMIME("text/x-pascal","pascal")})});var Ts=qe((ws,Ss)=>{(function(u){typeof ws=="object"&&typeof Ss=="object"?u(Oe(),ko(),bi()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed","../clike/clike"],u):u(CodeMirror)})(function(u){"use strict";function P(L){for(var T={},m=L.split(" "),b=0;b\w/,!1)&&(T.tokenize=z([[["->",null]],[[/[\w]+/,"variable"]]],m,b)),"variable-2";for(var d=!1;!L.eol()&&(d||b===!1||!L.match("{$",!1)&&!L.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!d&&L.match(m)){T.tokenize=null,T.tokStack.pop(),T.tokStack.pop();break}d=L.next()=="\\"&&!d}return"string"}var A="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",p="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",D="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";u.registerHelper("hintWords","php",[A,p,D].join(" ").split(" ")),u.registerHelper("wordChars","php",/[\w$]/);var w={name:"clike",helperType:"php",keywords:P(A),blockKeywords:P("catch do else elseif for foreach if switch try while finally"),defKeywords:P("class enum function interface namespace trait"),atoms:P(p),builtin:P(D),multiLineStrings:!0,hooks:{$:function(L){return L.eatWhile(/[\w\$_]/),"variable-2"},"<":function(L,T){var m;if(m=L.match(/^<<\s*/)){var b=L.eat(/['"]/);L.eatWhile(/[\w\.]/);var d=L.current().slice(m[0].length+(b?2:1));if(b&&L.eat(b),d)return(T.tokStack||(T.tokStack=[])).push(d,0),T.tokenize=O(d,b!="'"),"string"}return!1},"#":function(L){for(;!L.eol()&&!L.match("?>",!1);)L.next();return"comment"},"/":function(L){if(L.eat("/")){for(;!L.eol()&&!L.match("?>",!1);)L.next();return"comment"}return!1},'"':function(L,T){return(T.tokStack||(T.tokStack=[])).push('"',0),T.tokenize=O('"'),"string"},"{":function(L,T){return T.tokStack&&T.tokStack.length&&T.tokStack[T.tokStack.length-1]++,!1},"}":function(L,T){return T.tokStack&&T.tokStack.length>0&&!--T.tokStack[T.tokStack.length-1]&&(T.tokenize=O(T.tokStack[T.tokStack.length-2])),!1}}};u.defineMode("php",function(L,T){var m=u.getMode(L,T&&T.htmlMode||"text/html"),b=u.getMode(L,w);function d(g,k){var y=k.curMode==b;if(g.sol()&&k.pending&&k.pending!='"'&&k.pending!="'"&&(k.pending=null),y)return y&&k.php.tokenize==null&&g.match("?>")?(k.curMode=m,k.curState=k.html,k.php.context.prev||(k.php=null),"meta"):b.token(g,k.curState);if(g.match(/^<\?\w*/))return k.curMode=b,k.php||(k.php=u.startState(b,m.indent(k.html,"",""))),k.curState=k.php,"meta";if(k.pending=='"'||k.pending=="'"){for(;!g.eol()&&g.next()!=k.pending;);var U="string"}else if(k.pending&&g.pos/.test(_)?k.pending=Z[0]:k.pending={end:g.pos,style:U},g.backUp(_.length-W)),U}return{startState:function(){var g=u.startState(m),k=T.startOpen?u.startState(b):null;return{html:g,php:k,curMode:T.startOpen?b:m,curState:T.startOpen?k:g,pending:null}},copyState:function(g){var k=g.html,y=u.copyState(m,k),U=g.php,_=U&&u.copyState(b,U),W;return g.curMode==m?W=y:W=_,{html:y,php:_,curMode:g.curMode,curState:W,pending:g.pending}},token:d,indent:function(g,k,y){return g.curMode!=b&&/^\s*<\//.test(k)||g.curMode==b&&/^\?>/.test(k)?m.indent(g.html,k,y):g.curMode.indent(g.curState,k,y)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(g){return{state:g.curState,mode:g.curMode}}}},"htmlmixed","clike"),u.defineMIME("application/x-httpd-php","php"),u.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),u.defineMIME("text/x-php",w)})});var Ls=qe((Cs,Es)=>{(function(u){"use strict";typeof Cs=="object"&&typeof Es=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(window.CodeMirror)})(function(u){"use strict";u.defineMode("powershell",function(){function P(I,c){c=c||{};for(var B=c.prefix!==void 0?c.prefix:"^",$=c.suffix!==void 0?c.suffix:"\\b",M=0;M/,w=P([p,D],{suffix:""}),L=/^((0x[\da-f]+)|((\d+\.\d+|\d\.|\.\d+|\d+)(e[\+\-]?\d+)?))[ld]?([kmgtp]b)?/i,T=/^[A-Za-z\_][A-Za-z\-\_\d]*\b/,m=/[A-Z]:|%|\?/i,b=P([/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:""}),d=P([/[$?^_]|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:""}),g=P([m,b,d],{suffix:z}),k={keyword:S,number:L,operator:w,builtin:g,punctuation:A,identifier:T};function y(I,c){var B=c.returnStack[c.returnStack.length-1];if(B&&B.shouldReturnFrom(c))return c.tokenize=B.tokenize,c.returnStack.pop(),c.tokenize(I,c);if(I.eatSpace())return null;if(I.eat("("))return c.bracketNesting+=1,"punctuation";if(I.eat(")"))return c.bracketNesting-=1,"punctuation";for(var $ in k)if(I.match(k[$]))return $;var M=I.next();if(M==="'")return U(I,c);if(M==="$")return j(I,c);if(M==='"')return _(I,c);if(M==="<"&&I.eat("#"))return c.tokenize=Q,Q(I,c);if(M==="#")return I.skipToEnd(),"comment";if(M==="@"){var C=I.eat(/["']/);if(C&&I.eol())return c.tokenize=G,c.startQuote=C[0],G(I,c);if(I.eol())return"error";if(I.peek().match(/[({]/))return"punctuation";if(I.peek().match(O))return j(I,c)}return"error"}function U(I,c){for(var B;(B=I.peek())!=null;)if(I.next(),B==="'"&&!I.eat("'"))return c.tokenize=y,"string";return"error"}function _(I,c){for(var B;(B=I.peek())!=null;){if(B==="$")return c.tokenize=W,"string";if(I.next(),B==="`"){I.next();continue}if(B==='"'&&!I.eat('"'))return c.tokenize=y,"string"}return"error"}function W(I,c){return oe(I,c,_)}function Z(I,c){return c.tokenize=G,c.startQuote='"',G(I,c)}function ee(I,c){return oe(I,c,Z)}function oe(I,c,B){if(I.match("$(")){var $=c.bracketNesting;return c.returnStack.push({shouldReturnFrom:function(M){return M.bracketNesting===$},tokenize:B}),c.tokenize=y,c.bracketNesting+=1,"punctuation"}else return I.next(),c.returnStack.push({shouldReturnFrom:function(){return!0},tokenize:B}),c.tokenize=j,c.tokenize(I,c)}function Q(I,c){for(var B=!1,$;($=I.next())!=null;){if(B&&$==">"){c.tokenize=y;break}B=$==="#"}return"comment"}function j(I,c){var B=I.peek();return I.eat("{")?(c.tokenize=N,N(I,c)):B!=null&&B.match(O)?(I.eatWhile(O),c.tokenize=y,"variable-2"):(c.tokenize=y,"error")}function N(I,c){for(var B;(B=I.next())!=null;)if(B==="}"){c.tokenize=y;break}return"variable-2"}function G(I,c){var B=c.startQuote;if(I.sol()&&I.match(new RegExp(B+"@")))c.tokenize=y;else if(B==='"')for(;!I.eol();){var $=I.peek();if($==="$")return c.tokenize=ee,"string";I.next(),$==="`"&&I.next()}else I.skipToEnd();return"string"}var R={startState:function(){return{returnStack:[],bracketNesting:0,tokenize:y}},token:function(I,c){return c.tokenize(I,c)},blockCommentStart:"<#",blockCommentEnd:"#>",lineComment:"#",fold:"brace"};return R}),u.defineMIME("application/x-powershell","powershell")})});var As=qe((zs,Ms)=>{(function(u){typeof zs=="object"&&typeof Ms=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("properties",function(){return{token:function(P,z){var O=P.sol()||z.afterSection,S=P.eol();if(z.afterSection=!1,O&&(z.nextMultiline?(z.inMultiline=!0,z.nextMultiline=!1):z.position="def"),S&&!z.nextMultiline&&(z.inMultiline=!1,z.position="def"),O)for(;P.eatSpace(););var A=P.next();return O&&(A==="#"||A==="!"||A===";")?(z.position="comment",P.skipToEnd(),"comment"):O&&A==="["?(z.afterSection=!0,P.skipTo("]"),P.eat("]"),"header"):A==="="||A===":"?(z.position="quote",null):(A==="\\"&&z.position==="quote"&&P.eol()&&(z.nextMultiline=!0),z.position)},startState:function(){return{position:"def",nextMultiline:!1,inMultiline:!1,afterSection:!1}}}}),u.defineMIME("text/x-properties","properties"),u.defineMIME("text/x-ini","properties")})});var Is=qe((Ds,Fs)=>{(function(u){typeof Ds=="object"&&typeof Fs=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";function P(D){return new RegExp("^(("+D.join(")|(")+"))\\b")}var z=P(["and","or","not","is"]),O=["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"],S=["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__"];u.registerHelper("hintWords","python",O.concat(S).concat(["exec","print"]));function A(D){return D.scopes[D.scopes.length-1]}u.defineMode("python",function(D,w){for(var L="error",T=w.delimiters||w.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,m=[w.singleOperators,w.doubleOperators,w.doubleDelimiters,w.tripleDelimiters,w.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/],b=0;bC?N($):V0&&R(B,$)&&(Y+=" "+L),Y}}return oe(B,$)}function oe(B,$,M){if(B.eatSpace())return null;if(!M&&B.match(/^#.*/))return"comment";if(B.match(/^[0-9\.]/,!1)){var C=!1;if(B.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(C=!0),B.match(/^[\d_]+\.\d*/)&&(C=!0),B.match(/^\.\d+/)&&(C=!0),C)return B.eat(/J/i),"number";var V=!1;if(B.match(/^0x[0-9a-f_]+/i)&&(V=!0),B.match(/^0b[01_]+/i)&&(V=!0),B.match(/^0o[0-7_]+/i)&&(V=!0),B.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(B.eat(/J/i),V=!0),B.match(/^0(?![\dx])/i)&&(V=!0),V)return B.eat(/L/i),"number"}if(B.match(_)){var Y=B.current().toLowerCase().indexOf("f")!==-1;return Y?($.tokenize=Q(B.current(),$.tokenize),$.tokenize(B,$)):($.tokenize=j(B.current(),$.tokenize),$.tokenize(B,$))}for(var x=0;x=0;)B=B.substr(1);var M=B.length==1,C="string";function V(x){return function(h,se){var _e=oe(h,se,!0);return _e=="punctuation"&&(h.current()=="{"?se.tokenize=V(x+1):h.current()=="}"&&(x>1?se.tokenize=V(x-1):se.tokenize=Y)),_e}}function Y(x,h){for(;!x.eol();)if(x.eatWhile(/[^'"\{\}\\]/),x.eat("\\")){if(x.next(),M&&x.eol())return C}else{if(x.match(B))return h.tokenize=$,C;if(x.match("{{"))return C;if(x.match("{",!1))return h.tokenize=V(0),x.current()?C:h.tokenize(x,h);if(x.match("}}"))return C;if(x.match("}"))return L;x.eat(/['"]/)}if(M){if(w.singleLineStringErrors)return L;h.tokenize=$}return C}return Y.isString=!0,Y}function j(B,$){for(;"rubf".indexOf(B.charAt(0).toLowerCase())>=0;)B=B.substr(1);var M=B.length==1,C="string";function V(Y,x){for(;!Y.eol();)if(Y.eatWhile(/[^'"\\]/),Y.eat("\\")){if(Y.next(),M&&Y.eol())return C}else{if(Y.match(B))return x.tokenize=$,C;Y.eat(/['"]/)}if(M){if(w.singleLineStringErrors)return L;x.tokenize=$}return C}return V.isString=!0,V}function N(B){for(;A(B).type!="py";)B.scopes.pop();B.scopes.push({offset:A(B).offset+D.indentUnit,type:"py",align:null})}function G(B,$,M){var C=B.match(/^[\s\[\{\(]*(?:#|$)/,!1)?null:B.column()+1;$.scopes.push({offset:$.indent+d,type:M,align:C})}function R(B,$){for(var M=B.indentation();$.scopes.length>1&&A($).offset>M;){if(A($).type!="py")return!0;$.scopes.pop()}return A($).offset!=M}function I(B,$){B.sol()&&($.beginningOfLine=!0,$.dedent=!1);var M=$.tokenize(B,$),C=B.current();if($.beginningOfLine&&C=="@")return B.match(U,!1)?"meta":y?"operator":L;if(/\S/.test(C)&&($.beginningOfLine=!1),(M=="variable"||M=="builtin")&&$.lastToken=="meta"&&(M="meta"),(C=="pass"||C=="return")&&($.dedent=!0),C=="lambda"&&($.lambda=!0),C==":"&&!$.lambda&&A($).type=="py"&&B.match(/^\s*(?:#|$)/,!1)&&N($),C.length==1&&!/string|comment/.test(M)){var V="[({".indexOf(C);if(V!=-1&&G(B,$,"])}".slice(V,V+1)),V="])}".indexOf(C),V!=-1)if(A($).type==C)$.indent=$.scopes.pop().offset-d;else return L}return $.dedent&&B.eol()&&A($).type=="py"&&$.scopes.length>1&&$.scopes.pop(),M}var c={startState:function(B){return{tokenize:ee,scopes:[{offset:B||0,type:"py",align:null}],indent:B||0,lastToken:null,lambda:!1,dedent:0}},token:function(B,$){var M=$.errorToken;M&&($.errorToken=!1);var C=I(B,$);return C&&C!="comment"&&($.lastToken=C=="keyword"||C=="punctuation"?B.current():C),C=="punctuation"&&(C=null),B.eol()&&$.lambda&&($.lambda=!1),M?C+" "+L:C},indent:function(B,$){if(B.tokenize!=ee)return B.tokenize.isString?u.Pass:0;var M=A(B),C=M.type==$.charAt(0)||M.type=="py"&&!B.dedent&&/^(else:|elif |except |finally:)/.test($);return M.align!=null?M.align-(C?1:0):M.offset-(C?d:0)},electricInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/,closeBrackets:{triples:`'"`},lineComment:"#",fold:"indent"};return c}),u.defineMIME("text/x-python","python");var p=function(D){return D.split(" ")};u.defineMIME("text/x-cython",{name:"python",extra_keywords:p("by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE")})})});var Ns=qe((qs,Os)=>{(function(u){typeof qs=="object"&&typeof Os=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";function P(w){for(var L={},T=0,m=w.length;T]/)?(_.eat(/[\<\>]/),"atom"):_.eat(/[\+\-\*\/\&\|\:\!]/)?"atom":_.eat(/[a-zA-Z$@_\xa1-\uffff]/)?(_.eatWhile(/[\w$\xa1-\uffff]/),_.eat(/[\?\!\=]/),"atom"):"operator";if(Z=="@"&&_.match(/^@?[a-zA-Z_\xa1-\uffff]/))return _.eat("@"),_.eatWhile(/[\w\xa1-\uffff]/),"variable-2";if(Z=="$")return _.eat(/[a-zA-Z_]/)?_.eatWhile(/[\w]/):_.eat(/\d/)?_.eat(/\d/):_.next(),"variable-3";if(/[a-zA-Z_\xa1-\uffff]/.test(Z))return _.eatWhile(/[\w\xa1-\uffff]/),_.eat(/[\?\!]/),_.eat(":")?"atom":"ident";if(Z=="|"&&(W.varList||W.lastTok=="{"||W.lastTok=="do"))return L="|",null;if(/[\(\)\[\]{}\\;]/.test(Z))return L=Z,null;if(Z=="-"&&_.eat(">"))return"arrow";if(/[=+\-\/*:\.^%<>~|]/.test(Z)){var N=_.eatWhile(/[=+\-\/*:\.^%<>~|]/);return Z=="."&&!N&&(L="."),"operator"}else return null}}}function b(_){for(var W=_.pos,Z=0,ee,oe=!1,Q=!1;(ee=_.next())!=null;)if(Q)Q=!1;else{if("[{(".indexOf(ee)>-1)Z++;else if("]})".indexOf(ee)>-1){if(Z--,Z<0)break}else if(ee=="/"&&Z==0){oe=!0;break}Q=ee=="\\"}return _.backUp(_.pos-W),oe}function d(_){return _||(_=1),function(W,Z){if(W.peek()=="}"){if(_==1)return Z.tokenize.pop(),Z.tokenize[Z.tokenize.length-1](W,Z);Z.tokenize[Z.tokenize.length-1]=d(_-1)}else W.peek()=="{"&&(Z.tokenize[Z.tokenize.length-1]=d(_+1));return m(W,Z)}}function g(){var _=!1;return function(W,Z){return _?(Z.tokenize.pop(),Z.tokenize[Z.tokenize.length-1](W,Z)):(_=!0,m(W,Z))}}function k(_,W,Z,ee){return function(oe,Q){var j=!1,N;for(Q.context.type==="read-quoted-paused"&&(Q.context=Q.context.prev,oe.eat("}"));(N=oe.next())!=null;){if(N==_&&(ee||!j)){Q.tokenize.pop();break}if(Z&&N=="#"&&!j){if(oe.eat("{")){_=="}"&&(Q.context={prev:Q.context,type:"read-quoted-paused"}),Q.tokenize.push(d());break}else if(/[@\$]/.test(oe.peek())){Q.tokenize.push(g());break}}j=!j&&N=="\\"}return W}}function y(_,W){return function(Z,ee){return W&&Z.eatSpace(),Z.match(_)?ee.tokenize.pop():Z.skipToEnd(),"string"}}function U(_,W){return _.sol()&&_.match("=end")&&_.eol()&&W.tokenize.pop(),_.skipToEnd(),"comment"}return{startState:function(){return{tokenize:[m],indented:0,context:{type:"top",indented:-w.indentUnit},continuedLine:!1,lastTok:null,varList:!1}},token:function(_,W){L=null,_.sol()&&(W.indented=_.indentation());var Z=W.tokenize[W.tokenize.length-1](_,W),ee,oe=L;if(Z=="ident"){var Q=_.current();Z=W.lastTok=="."?"property":O.propertyIsEnumerable(_.current())?"keyword":/^[A-Z]/.test(Q)?"tag":W.lastTok=="def"||W.lastTok=="class"||W.varList?"def":"variable",Z=="keyword"&&(oe=Q,S.propertyIsEnumerable(Q)?ee="indent":A.propertyIsEnumerable(Q)?ee="dedent":((Q=="if"||Q=="unless")&&_.column()==_.indentation()||Q=="do"&&W.context.indented{(function(u){typeof Ps=="object"&&typeof Rs=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineSimpleMode=function(T,m){u.defineMode(T,function(b){return u.simpleMode(b,m)})},u.simpleMode=function(T,m){P(m,"start");var b={},d=m.meta||{},g=!1;for(var k in m)if(k!=d&&m.hasOwnProperty(k))for(var y=b[k]=[],U=m[k],_=0;_2&&W.token&&typeof W.token!="string"){for(var oe=2;oe-1)return u.Pass;var k=b.indent.length-1,y=T[b.state];e:for(;;){for(var U=0;U{(function(u){typeof js=="object"&&typeof Bs=="object"?u(Oe(),Ws()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../../addon/mode/simple"],u):u(CodeMirror)})(function(u){"use strict";u.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"}}),u.defineMIME("text/x-rustsrc","rust"),u.defineMIME("text/rust","rust")})});var Ks=qe((Us,$s)=>{(function(u){typeof Us=="object"&&typeof $s=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("scheme",function(){var P="builtin",z="comment",O="string",S="symbol",A="atom",p="number",D="bracket",w=2;function L(j){for(var N={},G=j.split(" "),R=0;Rinteger char-alphabetic? char-ci<=? char-ci=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt #f floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string=? string>? string? substring symbol->string symbol? #t tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"),m=L("define let letrec let* lambda define-macro defmacro let-syntax letrec-syntax let-values let*-values define-syntax syntax-rules define-values when unless");function b(j,N,G){this.indent=j,this.type=N,this.prev=G}function d(j,N,G){j.indentStack=new b(N,G,j.indentStack)}function g(j){j.indentStack=j.indentStack.prev}var k=new RegExp(/^(?:[-+]i|[-+][01]+#*(?:\/[01]+#*)?i|[-+]?[01]+#*(?:\/[01]+#*)?@[-+]?[01]+#*(?:\/[01]+#*)?|[-+]?[01]+#*(?:\/[01]+#*)?[-+](?:[01]+#*(?:\/[01]+#*)?)?i|[-+]?[01]+#*(?:\/[01]+#*)?)(?=[()\s;"]|$)/i),y=new RegExp(/^(?:[-+]i|[-+][0-7]+#*(?:\/[0-7]+#*)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?@[-+]?[0-7]+#*(?:\/[0-7]+#*)?|[-+]?[0-7]+#*(?:\/[0-7]+#*)?[-+](?:[0-7]+#*(?:\/[0-7]+#*)?)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?)(?=[()\s;"]|$)/i),U=new RegExp(/^(?:[-+]i|[-+][\da-f]+#*(?:\/[\da-f]+#*)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?@[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?[-+](?:[\da-f]+#*(?:\/[\da-f]+#*)?)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?)(?=[()\s;"]|$)/i),_=new RegExp(/^(?:[-+]i|[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)i|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)@[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)?i|(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*))(?=[()\s;"]|$)/i);function W(j){return j.match(k)}function Z(j){return j.match(y)}function ee(j,N){return N===!0&&j.backUp(1),j.match(_)}function oe(j){return j.match(U)}function Q(j,N){for(var G,R=!1;(G=j.next())!=null;){if(G==N.token&&!R){N.state.mode=!1;break}R=!R&&G=="\\"}}return{startState:function(){return{indentStack:null,indentation:0,mode:!1,sExprComment:!1,sExprQuote:!1}},token:function(j,N){if(N.indentStack==null&&j.sol()&&(N.indentation=j.indentation()),j.eatSpace())return null;var G=null;switch(N.mode){case"string":Q(j,{token:'"',state:N}),G=O;break;case"symbol":Q(j,{token:"|",state:N}),G=S;break;case"comment":for(var R,I=!1;(R=j.next())!=null;){if(R=="#"&&I){N.mode=!1;break}I=R=="|"}G=z;break;case"s-expr-comment":if(N.mode=!1,j.peek()=="("||j.peek()=="[")N.sExprComment=0;else{j.eatWhile(/[^\s\(\)\[\]]/),G=z;break}default:var c=j.next();if(c=='"')N.mode="string",G=O;else if(c=="'")j.peek()=="("||j.peek()=="["?(typeof N.sExprQuote!="number"&&(N.sExprQuote=0),G=A):(j.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/),G=A);else if(c=="|")N.mode="symbol",G=S;else if(c=="#")if(j.eat("|"))N.mode="comment",G=z;else if(j.eat(/[tf]/i))G=A;else if(j.eat(";"))N.mode="s-expr-comment",G=z;else{var B=null,$=!1,M=!0;j.eat(/[ei]/i)?$=!0:j.backUp(1),j.match(/^#b/i)?B=W:j.match(/^#o/i)?B=Z:j.match(/^#x/i)?B=oe:j.match(/^#d/i)?B=ee:j.match(/^[-+0-9.]/,!1)?(M=!1,B=ee):$||j.eat("#"),B!=null&&(M&&!$&&j.match(/^#[ei]/i),B(j)&&(G=p))}else if(/^[-+0-9.]/.test(c)&&ee(j,!0))G=p;else if(c==";")j.skipToEnd(),G=z;else if(c=="("||c=="["){for(var C="",V=j.column(),Y;(Y=j.eat(/[^\s\(\[\;\)\]]/))!=null;)C+=Y;C.length>0&&m.propertyIsEnumerable(C)?d(N,V+w,c):(j.eatSpace(),j.eol()||j.peek()==";"?d(N,V+1,c):d(N,V+j.current().length,c)),j.backUp(j.current().length-1),typeof N.sExprComment=="number"&&N.sExprComment++,typeof N.sExprQuote=="number"&&N.sExprQuote++,G=D}else c==")"||c=="]"?(G=D,N.indentStack!=null&&N.indentStack.type==(c==")"?"(":"[")&&(g(N),typeof N.sExprComment=="number"&&--N.sExprComment==0&&(G=z,N.sExprComment=!1),typeof N.sExprQuote=="number"&&--N.sExprQuote==0&&(G=A,N.sExprQuote=!1))):(j.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/),T&&T.propertyIsEnumerable(j.current())?G=P:G="variable")}return typeof N.sExprComment=="number"?z:typeof N.sExprQuote=="number"?A:G},indent:function(j){return j.indentStack==null?j.indentation:j.indentStack.indent},fold:"brace-paren",closeBrackets:{pairs:'()[]{}""'},lineComment:";;"}}),u.defineMIME("text/x-scheme","scheme")})});var Xs=qe((Gs,Zs)=>{(function(u){typeof Gs=="object"&&typeof Zs=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("shell",function(){var P={};function z(b,d){for(var g=0;g1&&b.eat("$");var g=b.next();return/['"({]/.test(g)?(d.tokens[0]=D(g,g=="("?"quote":g=="{"?"def":"string"),m(b,d)):(/\d/.test(g)||b.eatWhile(/\w/),d.tokens.shift(),"def")};function T(b){return function(d,g){return d.sol()&&d.string==b&&g.tokens.shift(),d.skipToEnd(),"string-2"}}function m(b,d){return(d.tokens[0]||p)(b,d)}return{startState:function(){return{tokens:[]}},token:function(b,d){return m(b,d)},closeBrackets:"()[]{}''\"\"``",lineComment:"#",fold:"brace"}}),u.defineMIME("text/x-sh","shell"),u.defineMIME("application/x-sh","shell")})});var Js=qe((Qs,Ys)=>{(function(u){typeof Qs=="object"&&typeof Ys=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("smarty",function(P,z){var O=z.rightDelimiter||"}",S=z.leftDelimiter||"{",A=z.version||2,p=u.getMode(P,z.baseMode||"null"),D=["debug","extends","function","include","literal"],w={operatorChars:/[+\-*&%=<>!?]/,validIdentifier:/[a-zA-Z0-9_]/,stringChar:/['"]/},L;function T(U,_){return L=_,U}function m(U,_,W){return _.tokenize=W,W(U,_)}function b(U,_){return _==null&&(_=U.pos),A===3&&S=="{"&&(_==U.string.length||/\s/.test(U.string.charAt(_)))}function d(U,_){for(var W=U.string,Z=U.pos;;){var ee=W.indexOf(S,Z);if(Z=ee+S.length,ee==-1||!b(U,ee+S.length))break}if(ee==U.pos)return U.match(S),U.eat("*")?m(U,_,y("comment","*"+O)):(_.depth++,_.tokenize=g,L="startTag","tag");ee>-1&&(U.string=W.slice(0,ee));var oe=p.token(U,_.base);return ee>-1&&(U.string=W),oe}function g(U,_){if(U.match(O,!0))return A===3?(_.depth--,_.depth<=0&&(_.tokenize=d)):_.tokenize=d,T("tag",null);if(U.match(S,!0))return _.depth++,T("tag","startTag");var W=U.next();if(W=="$")return U.eatWhile(w.validIdentifier),T("variable-2","variable");if(W=="|")return T("operator","pipe");if(W==".")return T("operator","property");if(w.stringChar.test(W))return _.tokenize=k(W),T("string","string");if(w.operatorChars.test(W))return U.eatWhile(w.operatorChars),T("operator","operator");if(W=="["||W=="]")return T("bracket","bracket");if(W=="("||W==")")return T("bracket","operator");if(/\d/.test(W))return U.eatWhile(/\d/),T("number","number");if(_.last=="variable"){if(W=="@")return U.eatWhile(w.validIdentifier),T("property","property");if(W=="|")return U.eatWhile(w.validIdentifier),T("qualifier","modifier")}else{if(_.last=="pipe")return U.eatWhile(w.validIdentifier),T("qualifier","modifier");if(_.last=="whitespace")return U.eatWhile(w.validIdentifier),T("attribute","modifier")}if(_.last=="property")return U.eatWhile(w.validIdentifier),T("property",null);if(/\s/.test(W))return L="whitespace",null;var Z="";W!="/"&&(Z+=W);for(var ee=null;ee=U.eat(w.validIdentifier);)Z+=ee;for(var oe=0,Q=D.length;oe{(function(u){typeof Vs=="object"&&typeof eu=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("sql",function(w,L){var T=L.client||{},m=L.atoms||{false:!0,true:!0,null:!0},b=L.builtin||p(D),d=L.keywords||p(A),g=L.operatorChars||/^[*+\-%<>!=&|~^\/]/,k=L.support||{},y=L.hooks||{},U=L.dateSQL||{date:!0,time:!0,timestamp:!0},_=L.backslashStringEscapes!==!1,W=L.brackets||/^[\{}\(\)\[\]]/,Z=L.punctuation||/^[;.,:]/;function ee(G,R){var I=G.next();if(y[I]){var c=y[I](G,R);if(c!==!1)return c}if(k.hexNumber&&(I=="0"&&G.match(/^[xX][0-9a-fA-F]+/)||(I=="x"||I=="X")&&G.match(/^'[0-9a-fA-F]*'/)))return"number";if(k.binaryNumber&&((I=="b"||I=="B")&&G.match(/^'[01]*'/)||I=="0"&&G.match(/^b[01]+/)))return"number";if(I.charCodeAt(0)>47&&I.charCodeAt(0)<58)return G.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),k.decimallessFloat&&G.match(/^\.(?!\.)/),"number";if(I=="?"&&(G.eatSpace()||G.eol()||G.eat(";")))return"variable-3";if(I=="'"||I=='"'&&k.doubleQuote)return R.tokenize=oe(I),R.tokenize(G,R);if((k.nCharCast&&(I=="n"||I=="N")||k.charsetCast&&I=="_"&&G.match(/[a-z][a-z0-9]*/i))&&(G.peek()=="'"||G.peek()=='"'))return"keyword";if(k.escapeConstant&&(I=="e"||I=="E")&&(G.peek()=="'"||G.peek()=='"'&&k.doubleQuote))return R.tokenize=function($,M){return(M.tokenize=oe($.next(),!0))($,M)},"keyword";if(k.commentSlashSlash&&I=="/"&&G.eat("/"))return G.skipToEnd(),"comment";if(k.commentHash&&I=="#"||I=="-"&&G.eat("-")&&(!k.commentSpaceRequired||G.eat(" ")))return G.skipToEnd(),"comment";if(I=="/"&&G.eat("*"))return R.tokenize=Q(1),R.tokenize(G,R);if(I=="."){if(k.zerolessFloat&&G.match(/^(?:\d+(?:e[+-]?\d+)?)/i))return"number";if(G.match(/^\.+/))return null;if(k.ODBCdotTable&&G.match(/^[\w\d_$#]+/))return"variable-2"}else{if(g.test(I))return G.eatWhile(g),"operator";if(W.test(I))return"bracket";if(Z.test(I))return G.eatWhile(Z),"punctuation";if(I=="{"&&(G.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||G.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";G.eatWhile(/^[_\w\d]/);var B=G.current().toLowerCase();return U.hasOwnProperty(B)&&(G.match(/^( )+'[^']*'/)||G.match(/^( )+"[^"]*"/))?"number":m.hasOwnProperty(B)?"atom":b.hasOwnProperty(B)?"type":d.hasOwnProperty(B)?"keyword":T.hasOwnProperty(B)?"builtin":null}}function oe(G,R){return function(I,c){for(var B=!1,$;($=I.next())!=null;){if($==G&&!B){c.tokenize=ee;break}B=(_||R)&&!B&&$=="\\"}return"string"}}function Q(G){return function(R,I){var c=R.match(/^.*?(\/\*|\*\/)/);return c?c[1]=="/*"?I.tokenize=Q(G+1):G>1?I.tokenize=Q(G-1):I.tokenize=ee:R.skipToEnd(),"comment"}}function j(G,R,I){R.context={prev:R.context,indent:G.indentation(),col:G.column(),type:I}}function N(G){G.indent=G.context.indent,G.context=G.context.prev}return{startState:function(){return{tokenize:ee,context:null}},token:function(G,R){if(G.sol()&&R.context&&R.context.align==null&&(R.context.align=!1),R.tokenize==ee&&G.eatSpace())return null;var I=R.tokenize(G,R);if(I=="comment")return I;R.context&&R.context.align==null&&(R.context.align=!0);var c=G.current();return c=="("?j(G,R,")"):c=="["?j(G,R,"]"):R.context&&R.context.type==c&&N(R),I},indent:function(G,R){var I=G.context;if(!I)return u.Pass;var c=R.charAt(0)==I.type;return I.align?I.col+(c?0:1):I.indent+(c?0:w.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:k.commentSlashSlash?"//":k.commentHash?"#":"--",closeBrackets:"()[]{}''\"\"``"}});function P(w){for(var L;(L=w.next())!=null;)if(L=="`"&&!w.eat("`"))return"variable-2";return w.backUp(w.current().length-1),w.eatWhile(/\w/)?"variable-2":null}function z(w){for(var L;(L=w.next())!=null;)if(L=='"'&&!w.eat('"'))return"variable-2";return w.backUp(w.current().length-1),w.eatWhile(/\w/)?"variable-2":null}function O(w){return w.eat("@")&&(w.match("session."),w.match("local."),w.match("global.")),w.eat("'")?(w.match(/^.*'/),"variable-2"):w.eat('"')?(w.match(/^.*"/),"variable-2"):w.eat("`")?(w.match(/^.*`/),"variable-2"):w.match(/^[0-9a-zA-Z$\.\_]+/)?"variable-2":null}function S(w){return w.eat("N")?"atom":w.match(/^[a-zA-Z.#!?]/)?"variable-2":null}var A="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 p(w){for(var L={},T=w.split(" "),m=0;m!=^\&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:/]/,backslashStringEscapes:!1,dateSQL:p("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":O}}),u.defineMIME("text/x-mysql",{name:"sql",client:p("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:p(A+"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:p("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:p("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:p("date time timestamp"),support:p("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":O,"`":P,"\\":S}}),u.defineMIME("text/x-mariadb",{name:"sql",client:p("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:p(A+"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:p("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:p("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:p("date time timestamp"),support:p("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":O,"`":P,"\\":S}}),u.defineMIME("text/x-sqlite",{name:"sql",client:p("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:p(A+"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:p("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:p("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:p("date time timestamp datetime"),support:p("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":O,":":O,"?":O,$:O,'"':z,"`":P}}),u.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:p("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:p("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:p("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:p("commentSlashSlash decimallessFloat"),hooks:{}}),u.defineMIME("text/x-plsql",{name:"sql",client:p("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:p("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:p("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:p("date time timestamp"),support:p("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),u.defineMIME("text/x-hive",{name:"sql",keywords:p("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:p("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:p("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:p("date timestamp"),support:p("ODBCdotTable doubleQuote binaryNumber hexNumber")}),u.defineMIME("text/x-pgsql",{name:"sql",client:p("source"),keywords:p(A+"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:p("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:p("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,backslashStringEscapes:!1,dateSQL:p("date time timestamp"),support:p("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")}),u.defineMIME("text/x-gql",{name:"sql",keywords:p("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:p("false true"),builtin:p("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),u.defineMIME("text/x-gpsql",{name:"sql",client:p("source"),keywords:p("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:p("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:p("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:p("date time timestamp"),support:p("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),u.defineMIME("text/x-sparksql",{name:"sql",keywords:p("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:p("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:p("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:p("date time timestamp"),support:p("ODBCdotTable doubleQuote zerolessFloat")}),u.defineMIME("text/x-esper",{name:"sql",client:p("source"),keywords: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 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:p("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:p("time"),support:p("decimallessFloat zerolessFloat binaryNumber hexNumber")}),u.defineMIME("text/x-trino",{name:"sql",keywords:p("abs absent acos add admin after all all_match alter analyze and any any_match approx_distinct approx_most_frequent approx_percentile approx_set arbitrary array_agg array_distinct array_except array_intersect array_join array_max array_min array_position array_remove array_sort array_union arrays_overlap as asc asin at at_timezone atan atan2 authorization avg bar bernoulli beta_cdf between bing_tile bing_tile_at bing_tile_coordinates bing_tile_polygon bing_tile_quadkey bing_tile_zoom_level bing_tiles_around bit_count bitwise_and bitwise_and_agg bitwise_left_shift bitwise_not bitwise_or bitwise_or_agg bitwise_right_shift bitwise_right_shift_arithmetic bitwise_xor bool_and bool_or both by call cardinality cascade case cast catalogs cbrt ceil ceiling char2hexint checksum chr classify coalesce codepoint column columns combinations comment commit committed concat concat_ws conditional constraint contains contains_sequence convex_hull_agg copartition corr cos cosh cosine_similarity count count_if covar_pop covar_samp crc32 create cross cube cume_dist current current_catalog current_date current_groups current_path current_role current_schema current_time current_timestamp current_timezone current_user data date_add date_diff date_format date_parse date_trunc day day_of_month day_of_week day_of_year deallocate default define definer degrees delete dense_rank deny desc describe descriptor distinct distributed dow doy drop e element_at else empty empty_approx_set encoding end error escape evaluate_classifier_predictions every except excluding execute exists exp explain extract false features fetch filter final first first_value flatten floor following for format format_datetime format_number from from_base from_base32 from_base64 from_base64url from_big_endian_32 from_big_endian_64 from_encoded_polyline from_geojson_geometry from_hex from_ieee754_32 from_ieee754_64 from_iso8601_date from_iso8601_timestamp from_iso8601_timestamp_nanos from_unixtime from_unixtime_nanos from_utf8 full functions geometric_mean geometry_from_hadoop_shape geometry_invalid_reason geometry_nearest_points geometry_to_bing_tiles geometry_union geometry_union_agg grant granted grants graphviz great_circle_distance greatest group grouping groups hamming_distance hash_counts having histogram hmac_md5 hmac_sha1 hmac_sha256 hmac_sha512 hour human_readable_seconds if ignore in including index infinity initial inner input insert intersect intersection_cardinality into inverse_beta_cdf inverse_normal_cdf invoker io is is_finite is_infinite is_json_scalar is_nan isolation jaccard_index join json_array json_array_contains json_array_get json_array_length json_exists json_extract json_extract_scalar json_format json_object json_parse json_query json_size json_value keep key keys kurtosis lag last last_day_of_month last_value lateral lead leading learn_classifier learn_libsvm_classifier learn_libsvm_regressor learn_regressor least left length level levenshtein_distance like limit line_interpolate_point line_interpolate_points line_locate_point listagg ln local localtime localtimestamp log log10 log2 logical lower lpad ltrim luhn_check make_set_digest map_agg map_concat map_entries map_filter map_from_entries map_keys map_union map_values map_zip_with match match_recognize matched matches materialized max max_by md5 measures merge merge_set_digest millisecond min min_by minute mod month multimap_agg multimap_from_entries murmur3 nan natural next nfc nfd nfkc nfkd ngrams no none none_match normal_cdf normalize not now nth_value ntile null nullif nulls numeric_histogram object objectid_timestamp of offset omit on one only option or order ordinality outer output over overflow parse_data_size parse_datetime parse_duration partition partitions passing past path pattern per percent_rank permute pi position pow power preceding prepare privileges properties prune qdigest_agg quarter quotes radians rand random range rank read recursive reduce reduce_agg refresh regexp_count regexp_extract regexp_extract_all regexp_like regexp_position regexp_replace regexp_split regr_intercept regr_slope regress rename render repeat repeatable replace reset respect restrict returning reverse revoke rgb right role roles rollback rollup round row_number rows rpad rtrim running scalar schema schemas second security seek select sequence serializable session set sets sha1 sha256 sha512 show shuffle sign simplify_geometry sin skewness skip slice some soundex spatial_partitioning spatial_partitions split split_part split_to_map split_to_multimap spooky_hash_v2_32 spooky_hash_v2_64 sqrt st_area st_asbinary st_astext st_boundary st_buffer st_centroid st_contains st_convexhull st_coorddim st_crosses st_difference st_dimension st_disjoint st_distance st_endpoint st_envelope st_envelopeaspts st_equals st_exteriorring st_geometries st_geometryfromtext st_geometryn st_geometrytype st_geomfrombinary st_interiorringn st_interiorrings st_intersection st_intersects st_isclosed st_isempty st_isring st_issimple st_isvalid st_length st_linefromtext st_linestring st_multipoint st_numgeometries st_numinteriorring st_numpoints st_overlaps st_point st_pointn st_points st_polygon st_relate st_startpoint st_symdifference st_touches st_union st_within st_x st_xmax st_xmin st_y st_ymax st_ymin start starts_with stats stddev stddev_pop stddev_samp string strpos subset substr substring sum system table tables tablesample tan tanh tdigest_agg text then ties timestamp_objectid timezone_hour timezone_minute to to_base to_base32 to_base64 to_base64url to_big_endian_32 to_big_endian_64 to_char to_date to_encoded_polyline to_geojson_geometry to_geometry to_hex to_ieee754_32 to_ieee754_64 to_iso8601 to_milliseconds to_spherical_geography to_timestamp to_unixtime to_utf8 trailing transaction transform transform_keys transform_values translate trim trim_array true truncate try try_cast type typeof uescape unbounded uncommitted unconditional union unique unknown unmatched unnest update upper url_decode url_encode url_extract_fragment url_extract_host url_extract_parameter url_extract_path url_extract_port url_extract_protocol url_extract_query use user using utf16 utf32 utf8 validate value value_at_quantile values values_at_quantiles var_pop var_samp variance verbose version view week week_of_year when where width_bucket wilson_interval_lower wilson_interval_upper window with with_timezone within without word_stem work wrapper write xxhash64 year year_of_week yow zip zip_with"),builtin:p("array bigint bingtile boolean char codepoints color date decimal double function geometry hyperloglog int integer interval ipaddress joniregexp json json2016 jsonpath kdbtree likepattern map model objectid p4hyperloglog precision qdigest re2jregexp real regressor row setdigest smallint sphericalgeography tdigest time timestamp tinyint uuid varbinary varchar zone"),atoms:p("false true null unknown"),operatorChars:/^[[\]|<>=!\-+*/%]/,dateSQL:p("date time timestamp zone"),support:p("ODBCdotTable decimallessFloat zerolessFloat hexNumber")})})});var iu=qe((ru,nu)=>{(function(u){typeof ru=="object"&&typeof nu=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("stex",function(P,z){"use strict";function O(d,g){d.cmdState.push(g)}function S(d){return d.cmdState.length>0?d.cmdState[d.cmdState.length-1]:null}function A(d){var g=d.cmdState.pop();g&&g.closeBracket()}function p(d){for(var g=d.cmdState,k=g.length-1;k>=0;k--){var y=g[k];if(y.name!="DEFAULT")return y}return{styleIdentifier:function(){return null}}}function D(d,g,k){return function(){this.name=d,this.bracketNo=0,this.style=g,this.styles=k,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var w={};w.importmodule=D("importmodule","tag",["string","builtin"]),w.documentclass=D("documentclass","tag",["","atom"]),w.usepackage=D("usepackage","tag",["atom"]),w.begin=D("begin","tag",["atom"]),w.end=D("end","tag",["atom"]),w.label=D("label","tag",["atom"]),w.ref=D("ref","tag",["atom"]),w.eqref=D("eqref","tag",["atom"]),w.cite=D("cite","tag",["atom"]),w.bibitem=D("bibitem","tag",["atom"]),w.Bibitem=D("Bibitem","tag",["atom"]),w.RBibitem=D("RBibitem","tag",["atom"]),w.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function L(d,g){d.f=g}function T(d,g){var k;if(d.match(/^\\[a-zA-Z@]+/)){var y=d.current().slice(1);return k=w.hasOwnProperty(y)?w[y]:w.DEFAULT,k=new k,O(g,k),L(g,b),k.style}if(d.match(/^\\[$&%#{}_]/)||d.match(/^\\[,;!\/\\]/))return"tag";if(d.match("\\["))return L(g,function(_,W){return m(_,W,"\\]")}),"keyword";if(d.match("\\("))return L(g,function(_,W){return m(_,W,"\\)")}),"keyword";if(d.match("$$"))return L(g,function(_,W){return m(_,W,"$$")}),"keyword";if(d.match("$"))return L(g,function(_,W){return m(_,W,"$")}),"keyword";var U=d.next();if(U=="%")return d.skipToEnd(),"comment";if(U=="}"||U=="]"){if(k=S(g),k)k.closeBracket(U),L(g,b);else return"error";return"bracket"}else return U=="{"||U=="["?(k=w.DEFAULT,k=new k,O(g,k),"bracket"):/\d/.test(U)?(d.eatWhile(/[\w.%]/),"atom"):(d.eatWhile(/[\w\-_]/),k=p(g),k.name=="begin"&&(k.argument=d.current()),k.styleIdentifier())}function m(d,g,k){if(d.eatSpace())return null;if(k&&d.match(k))return L(g,T),"keyword";if(d.match(/^\\[a-zA-Z@]+/))return"tag";if(d.match(/^[a-zA-Z]+/))return"variable-2";if(d.match(/^\\[$&%#{}_]/)||d.match(/^\\[,;!\/]/)||d.match(/^[\^_&]/))return"tag";if(d.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(d.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var y=d.next();return y=="{"||y=="}"||y=="["||y=="]"||y=="("||y==")"?"bracket":y=="%"?(d.skipToEnd(),"comment"):"error"}function b(d,g){var k=d.peek(),y;return k=="{"||k=="["?(y=S(g),y.openBracket(k),d.eat(k),L(g,T),"bracket"):/[ \t\r]/.test(k)?(d.eat(k),null):(L(g,T),A(g),T(d,g))}return{startState:function(){var d=z.inMathMode?function(g,k){return m(g,k)}:T;return{cmdState:[],f:d}},copyState:function(d){return{cmdState:d.cmdState.slice(),f:d.f}},token:function(d,g){return g.f(d,g)},blankLine:function(d){d.f=T,d.cmdState.length=0},lineComment:"%"}}),u.defineMIME("text/x-stex","stex"),u.defineMIME("text/x-latex","stex")})});var lu=qe((ou,au)=>{(function(u){typeof ou=="object"&&typeof au=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";function P(Q){for(var j={},N=0;N~^?!",D=":;,.(){}[]",w=/^\-?0b[01][01_]*/,L=/^\-?0o[0-7][0-7_]*/,T=/^\-?0x[\dA-Fa-f][\dA-Fa-f_]*(?:(?:\.[\dA-Fa-f][\dA-Fa-f_]*)?[Pp]\-?\d[\d_]*)?/,m=/^\-?\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee]\-?\d[\d_]*)?/,b=/^\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1/,d=/^\.(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/,g=/^\#[A-Za-z]+/,k=/^@(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/;function y(Q,j,N){if(Q.sol()&&(j.indented=Q.indentation()),Q.eatSpace())return null;var G=Q.peek();if(G=="/"){if(Q.match("//"))return Q.skipToEnd(),"comment";if(Q.match("/*"))return j.tokenize.push(W),W(Q,j)}if(Q.match(g))return"builtin";if(Q.match(k))return"attribute";if(Q.match(w)||Q.match(L)||Q.match(T)||Q.match(m))return"number";if(Q.match(d))return"property";if(p.indexOf(G)>-1)return Q.next(),"operator";if(D.indexOf(G)>-1)return Q.next(),Q.match(".."),"punctuation";var R;if(R=Q.match(/("""|"|')/)){var I=_.bind(null,R[0]);return j.tokenize.push(I),I(Q,j)}if(Q.match(b)){var c=Q.current();return A.hasOwnProperty(c)?"variable-2":S.hasOwnProperty(c)?"atom":z.hasOwnProperty(c)?(O.hasOwnProperty(c)&&(j.prev="define"),"keyword"):N=="define"?"def":"variable"}return Q.next(),null}function U(){var Q=0;return function(j,N,G){var R=y(j,N,G);if(R=="punctuation"){if(j.current()=="(")++Q;else if(j.current()==")"){if(Q==0)return j.backUp(1),N.tokenize.pop(),N.tokenize[N.tokenize.length-1](j,N);--Q}}return R}}function _(Q,j,N){for(var G=Q.length==1,R,I=!1;R=j.peek();)if(I){if(j.next(),R=="(")return N.tokenize.push(U()),"string";I=!1}else{if(j.match(Q))return N.tokenize.pop(),"string";j.next(),I=R=="\\"}return G&&N.tokenize.pop(),"string"}function W(Q,j){for(var N;N=Q.next();)if(N==="/"&&Q.eat("*"))j.tokenize.push(W);else if(N==="*"&&Q.eat("/")){j.tokenize.pop();break}return"comment"}function Z(Q,j,N){this.prev=Q,this.align=j,this.indented=N}function ee(Q,j){var N=j.match(/^\s*($|\/[\/\*])/,!1)?null:j.column()+1;Q.context=new Z(Q.context,N,Q.indented)}function oe(Q){Q.context&&(Q.indented=Q.context.indented,Q.context=Q.context.prev)}u.defineMode("swift",function(Q){return{startState:function(){return{prev:null,context:null,indented:0,tokenize:[]}},token:function(j,N){var G=N.prev;N.prev=null;var R=N.tokenize[N.tokenize.length-1]||y,I=R(j,N,G);if(!I||I=="comment"?N.prev=G:N.prev||(N.prev=I),I=="punctuation"){var c=/[\(\[\{]|([\]\)\}])/.exec(j.current());c&&(c[1]?oe:ee)(N,j)}return I},indent:function(j,N){var G=j.context;if(!G)return 0;var R=/^[\]\}\)]/.test(N);return G.align!=null?G.align-(R?1:0):G.indented+(R?0:Q.indentUnit)},electricInput:/^\s*[\)\}\]]$/,lineComment:"//",blockCommentStart:"/*",blockCommentEnd:"*/",fold:"brace",closeBrackets:"()[]{}''\"\"``"}}),u.defineMIME("text/x-swift","swift")})});var cu=qe((su,uu)=>{(function(u){typeof su=="object"&&typeof uu=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("toml",function(){return{startState:function(){return{inString:!1,stringType:"",lhs:!0,inArray:0}},token:function(P,z){if(!z.inString&&(P.peek()=='"'||P.peek()=="'")&&(z.stringType=P.peek(),P.next(),z.inString=!0),P.sol()&&z.inArray===0&&(z.lhs=!0),z.inString){for(;z.inString&&!P.eol();)P.peek()===z.stringType?(P.next(),z.inString=!1):P.peek()==="\\"?(P.next(),P.next()):P.match(/^.[^\\\"\']*/);return z.lhs?"property string":"string"}else{if(z.inArray&&P.peek()==="]")return P.next(),z.inArray--,"bracket";if(z.lhs&&P.peek()==="["&&P.skipTo("]"))return P.next(),P.peek()==="]"&&P.next(),"atom";if(P.peek()==="#")return P.skipToEnd(),"comment";if(P.eatSpace())return null;if(z.lhs&&P.eatWhile(function(O){return O!="="&&O!=" "}))return"property";if(z.lhs&&P.peek()==="=")return P.next(),z.lhs=!1,null;if(!z.lhs&&P.match(/^\d\d\d\d[\d\-\:\.T]*Z/))return"atom";if(!z.lhs&&(P.match("true")||P.match("false")))return"atom";if(!z.lhs&&P.peek()==="[")return z.inArray++,P.next(),"bracket";if(!z.lhs&&P.match(/^\-?\d+(?:\.\d+)?/))return"number";P.eatSpace()||P.next()}return null}}}),u.defineMIME("text/x-toml","toml")})});var pu=qe((fu,du)=>{(function(u){typeof fu=="object"&&typeof du=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.multiplexingMode=function(P){var z=Array.prototype.slice.call(arguments,1);function O(S,A,p,D){if(typeof A=="string"){var w=S.indexOf(A,p);return D&&w>-1?w+A.length:w}var L=A.exec(p?S.slice(p):S);return L?L.index+p+(D?L[0].length:0):-1}return{startState:function(){return{outer:u.startState(P),innerActive:null,inner:null,startingInner:!1}},copyState:function(S){return{outer:u.copyState(P,S.outer),innerActive:S.innerActive,inner:S.innerActive&&u.copyState(S.innerActive.mode,S.inner),startingInner:S.startingInner}},token:function(S,A){if(A.innerActive){var g=A.innerActive,D=S.string;if(!g.close&&S.sol())return A.innerActive=A.inner=null,this.token(S,A);var T=g.close&&!A.startingInner?O(D,g.close,S.pos,g.parseDelimiters):-1;if(T==S.pos&&!g.parseDelimiters)return S.match(g.close),A.innerActive=A.inner=null,g.delimStyle&&g.delimStyle+" "+g.delimStyle+"-close";T>-1&&(S.string=D.slice(0,T));var k=g.mode.token(S,A.inner);return T>-1?S.string=D:S.pos>S.start&&(A.startingInner=!1),T==S.pos&&g.parseDelimiters&&(A.innerActive=A.inner=null),g.innerStyle&&(k?k=k+" "+g.innerStyle:k=g.innerStyle),k}else{for(var p=1/0,D=S.string,w=0;w{(function(u){typeof hu=="object"&&typeof mu=="object"?u(Oe(),pu()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../../addon/mode/multiplex"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("twig:inner",function(){var P=["and","as","autoescape","endautoescape","block","do","endblock","else","elseif","extends","for","endfor","embed","endembed","filter","endfilter","flush","from","if","endif","in","is","include","import","not","or","set","spaceless","endspaceless","with","endwith","trans","endtrans","blocktrans","endblocktrans","macro","endmacro","use","verbatim","endverbatim"],z=/^[+\-*&%=<>!?|~^]/,O=/^[:\[\(\{]/,S=["true","false","null","empty","defined","divisibleby","divisible by","even","odd","iterable","sameas","same as"],A=/^(\d[+\-\*\/])?\d+(\.\d+)?/;P=new RegExp("(("+P.join(")|(")+"))\\b"),S=new RegExp("(("+S.join(")|(")+"))\\b");function p(D,w){var L=D.peek();if(w.incomment)return D.skipTo("#}")?(D.eatWhile(/\#|}/),w.incomment=!1):D.skipToEnd(),"comment";if(w.intag){if(w.operator){if(w.operator=!1,D.match(S))return"atom";if(D.match(A))return"number"}if(w.sign){if(w.sign=!1,D.match(S))return"atom";if(D.match(A))return"number"}if(w.instring)return L==w.instring&&(w.instring=!1),D.next(),"string";if(L=="'"||L=='"')return w.instring=L,D.next(),"string";if(D.match(w.intag+"}")||D.eat("-")&&D.match(w.intag+"}"))return w.intag=!1,"tag";if(D.match(z))return w.operator=!0,"operator";if(D.match(O))w.sign=!0;else if(D.eat(" ")||D.sol()){if(D.match(P))return"keyword";if(D.match(S))return"atom";if(D.match(A))return"number";D.sol()&&D.next()}else D.next();return"variable"}else if(D.eat("{")){if(D.eat("#"))return w.incomment=!0,D.skipTo("#}")?(D.eatWhile(/\#|}/),w.incomment=!1):D.skipToEnd(),"comment";if(L=D.eat(/\{|%/))return w.intag=L,L=="{"&&(w.intag="}"),D.eat("-"),"tag"}D.next()}return{startState:function(){return{}},token:function(D,w){return p(D,w)}}}),u.defineMode("twig",function(P,z){var O=u.getMode(P,"twig:inner");return!z||!z.base?O:u.multiplexingMode(u.getMode(P,z.base),{open:/\{[{#%]/,close:/[}#%]\}/,mode:O,parseDelimiters:!0})}),u.defineMIME("text/x-twig","twig")})});var bu=qe((vu,yu)=>{(function(u){typeof vu=="object"&&typeof yu=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("vb",function(P,z){var O="error";function S(C){return new RegExp("^(("+C.join(")|(")+"))\\b","i")}var A=new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"),p=new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"),D=new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"),w=new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"),L=new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"),T=new RegExp("^[_A-Za-z][_A-Za-z0-9]*"),m=["class","module","sub","enum","select","while","if","function","get","set","property","try","structure","synclock","using","with"],b=["else","elseif","case","catch","finally"],d=["next","loop"],g=["and","andalso","or","orelse","xor","in","not","is","isnot","like"],k=S(g),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"],U=["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"],_=S(y),W=S(U),Z='"',ee=S(m),oe=S(b),Q=S(d),j=S(["end"]),N=S(["do"]),G=null;u.registerHelper("hintWords","vb",m.concat(b).concat(d).concat(g).concat(y).concat(U));function R(C,V){V.currentIndent++}function I(C,V){V.currentIndent--}function c(C,V){if(C.eatSpace())return null;var Y=C.peek();if(Y==="'")return C.skipToEnd(),"comment";if(C.match(/^((&H)|(&O))?[0-9\.a-f]/i,!1)){var x=!1;if((C.match(/^\d*\.\d+F?/i)||C.match(/^\d+\.\d*F?/)||C.match(/^\.\d+F?/))&&(x=!0),x)return C.eat(/J/i),"number";var h=!1;if(C.match(/^&H[0-9a-f]+/i)||C.match(/^&O[0-7]+/i)?h=!0:C.match(/^[1-9]\d*F?/)?(C.eat(/J/i),h=!0):C.match(/^0(?![\dx])/i)&&(h=!0),h)return C.eat(/L/i),"number"}return C.match(Z)?(V.tokenize=B(C.current()),V.tokenize(C,V)):C.match(L)||C.match(w)?null:C.match(D)||C.match(A)||C.match(k)?"operator":C.match(p)?null:C.match(N)?(R(C,V),V.doInCurrentLine=!0,"keyword"):C.match(ee)?(V.doInCurrentLine?V.doInCurrentLine=!1:R(C,V),"keyword"):C.match(oe)?"keyword":C.match(j)?(I(C,V),I(C,V),"keyword"):C.match(Q)?(I(C,V),"keyword"):C.match(W)||C.match(_)?"keyword":C.match(T)?"variable":(C.next(),O)}function B(C){var V=C.length==1,Y="string";return function(x,h){for(;!x.eol();){if(x.eatWhile(/[^'"]/),x.match(C))return h.tokenize=c,Y;x.eat(/['"]/)}if(V){if(z.singleLineStringErrors)return O;h.tokenize=c}return Y}}function $(C,V){var Y=V.tokenize(C,V),x=C.current();if(x===".")return Y=V.tokenize(C,V),Y==="variable"?"variable":O;var h="[({".indexOf(x);return h!==-1&&R(C,V),G==="dedent"&&I(C,V)||(h="])}".indexOf(x),h!==-1&&I(C,V))?O:Y}var M={electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:c,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1}},token:function(C,V){C.sol()&&(V.currentIndent+=V.nextLineIndent,V.nextLineIndent=0,V.doInCurrentLine=0);var Y=$(C,V);return V.lastToken={style:Y,content:C.current()},Y},indent:function(C,V){var Y=V.replace(/^\s+|\s+$/g,"");return Y.match(Q)||Y.match(j)||Y.match(oe)?P.indentUnit*(C.currentIndent-1):C.currentIndent<0?0:C.currentIndent*P.indentUnit},lineComment:"'"};return M}),u.defineMIME("text/x-vb","vb")})});var ku=qe((xu,_u)=>{(function(u){typeof xu=="object"&&typeof _u=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("vbscript",function(P,z){var O="error";function S(ae){return new RegExp("^(("+ae.join(")|(")+"))\\b","i")}var A=new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]"),p=new RegExp("^((<>)|(<=)|(>=))"),D=new RegExp("^[\\.,]"),w=new RegExp("^[\\(\\)]"),L=new RegExp("^[A-Za-z][_A-Za-z0-9]*"),T=["class","sub","select","while","if","function","property","with","for"],m=["else","elseif","case"],b=["next","loop","wend"],d=S(["and","or","not","xor","is","mod","eqv","imp"]),g=["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"],k=["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"],U=["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"],W=["description","firstindex","global","helpcontext","helpfile","ignorecase","length","number","pattern","source","value","count"],Z=["clear","execute","raise","replace","test","write","writeline","close","open","state","eof","update","addnew","end","createobject","quit"],ee=["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"],Q=["addheader","appendtolog","binarywrite","end","flush","redirect","binaryread","remove","removeall","lock","unlock","abandon","getlasterror","htmlencode","mappath","transfer","urlencode"],j=Z.concat(W);_=_.concat(U),P.isASP&&(_=_.concat(ee),j=j.concat(Q,oe));var N=S(g),G=S(k),R=S(y),I=S(_),c=S(j),B='"',$=S(T),M=S(m),C=S(b),V=S(["end"]),Y=S(["do"]),x=S(["on error resume next","exit"]),h=S(["rem"]);function se(ae,fe){fe.currentIndent++}function _e(ae,fe){fe.currentIndent--}function ue(ae,fe){if(ae.eatSpace())return"space";var ve=ae.peek();if(ve==="'"||ae.match(h))return ae.skipToEnd(),"comment";if(ae.match(/^((&H)|(&O))?[0-9\.]/i,!1)&&!ae.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i,!1)){var De=!1;if((ae.match(/^\d*\.\d+/i)||ae.match(/^\d+\.\d*/)||ae.match(/^\.\d+/))&&(De=!0),De)return ae.eat(/J/i),"number";var Qe=!1;if(ae.match(/^&H[0-9a-f]+/i)||ae.match(/^&O[0-7]+/i)?Qe=!0:ae.match(/^[1-9]\d*F?/)?(ae.eat(/J/i),Qe=!0):ae.match(/^0(?![\dx])/i)&&(Qe=!0),Qe)return ae.eat(/L/i),"number"}return ae.match(B)?(fe.tokenize=he(ae.current()),fe.tokenize(ae,fe)):ae.match(p)||ae.match(A)||ae.match(d)?"operator":ae.match(D)?null:ae.match(w)?"bracket":ae.match(x)?(fe.doInCurrentLine=!0,"keyword"):ae.match(Y)?(se(ae,fe),fe.doInCurrentLine=!0,"keyword"):ae.match($)?(fe.doInCurrentLine?fe.doInCurrentLine=!1:se(ae,fe),"keyword"):ae.match(M)?"keyword":ae.match(V)?(_e(ae,fe),_e(ae,fe),"keyword"):ae.match(C)?(fe.doInCurrentLine?fe.doInCurrentLine=!1:_e(ae,fe),"keyword"):ae.match(N)?"keyword":ae.match(G)?"atom":ae.match(c)?"variable-2":ae.match(R)?"builtin":ae.match(I)?"variable-2":ae.match(L)?"variable":(ae.next(),O)}function he(ae){var fe=ae.length==1,ve="string";return function(De,Qe){for(;!De.eol();){if(De.eatWhile(/[^'"]/),De.match(ae))return Qe.tokenize=ue,ve;De.eat(/['"]/)}if(fe){if(z.singleLineStringErrors)return O;Qe.tokenize=ue}return ve}}function Te(ae,fe){var ve=fe.tokenize(ae,fe),De=ae.current();return De==="."?(ve=fe.tokenize(ae,fe),De=ae.current(),ve&&(ve.substr(0,8)==="variable"||ve==="builtin"||ve==="keyword")?((ve==="builtin"||ve==="keyword")&&(ve="variable"),j.indexOf(De.substr(1))>-1&&(ve="variable-2"),ve):O):ve}var Se={electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:ue,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1,ignoreKeyword:!1}},token:function(ae,fe){ae.sol()&&(fe.currentIndent+=fe.nextLineIndent,fe.nextLineIndent=0,fe.doInCurrentLine=0);var ve=Te(ae,fe);return fe.lastToken={style:ve,content:ae.current()},ve==="space"&&(ve=null),ve},indent:function(ae,fe){var ve=fe.replace(/^\s+|\s+$/g,"");return ve.match(C)||ve.match(V)||ve.match(M)?P.indentUnit*(ae.currentIndent-1):ae.currentIndent<0?0:ae.currentIndent*P.indentUnit}};return Se}),u.defineMIME("text/vbscript","vbscript")})});var Tu=qe((wu,Su)=>{(function(u){typeof wu=="object"&&typeof Su=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("yaml",function(){var P=["true","false","on","off","yes","no"],z=new RegExp("\\b(("+P.join(")|(")+"))$","i");return{token:function(O,S){var A=O.peek(),p=S.escaped;if(S.escaped=!1,A=="#"&&(O.pos==0||/\s/.test(O.string.charAt(O.pos-1))))return O.skipToEnd(),"comment";if(O.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(S.literal&&O.indentation()>S.keyCol)return O.skipToEnd(),"string";if(S.literal&&(S.literal=!1),O.sol()){if(S.keyCol=0,S.pair=!1,S.pairStart=!1,O.match("---")||O.match("..."))return"def";if(O.match(/\s*-\s+/))return"meta"}if(O.match(/^(\{|\}|\[|\])/))return A=="{"?S.inlinePairs++:A=="}"?S.inlinePairs--:A=="["?S.inlineList++:S.inlineList--,"meta";if(S.inlineList>0&&!p&&A==",")return O.next(),"meta";if(S.inlinePairs>0&&!p&&A==",")return S.keyCol=0,S.pair=!1,S.pairStart=!1,O.next(),"meta";if(S.pairStart){if(O.match(/^\s*(\||\>)\s*/))return S.literal=!0,"meta";if(O.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(S.inlinePairs==0&&O.match(/^\s*-?[0-9\.\,]+\s?$/)||S.inlinePairs>0&&O.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(O.match(z))return"keyword"}return!S.pair&&O.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(S.pair=!0,S.keyCol=O.indentation(),"atom"):S.pair&&O.match(/^:\s*/)?(S.pairStart=!0,"meta"):(S.pairStart=!1,S.escaped=A=="\\",O.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}}),u.defineMIME("text/x-yaml","yaml"),u.defineMIME("text/yaml","yaml")})});var Lu=qe((Cu,Eu)=>{(function(u){typeof Cu=="object"&&typeof Eu=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineOption("scrollPastEnd",!1,function(O,S,A){A&&A!=u.Init&&(O.off("change",P),O.off("refresh",z),O.display.lineSpace.parentNode.style.paddingBottom="",O.state.scrollPastEndPadding=null),S&&(O.on("change",P),O.on("refresh",z),z(O))});function P(O,S){u.changeEnd(S).line==O.lastLine()&&z(O)}function z(O){var S="";if(O.lineCount()>1){var A=O.display.scroller.clientHeight-30,p=O.getLineHandle(O.lastLine()).height;S=A-p+"px"}O.state.scrollPastEndPadding!=S&&(O.state.scrollPastEndPadding=S,O.display.lineSpace.parentNode.style.paddingBottom=S,O.off("refresh",z),O.setSize(),O.on("refresh",z))}})});var _r=We(Oe(),1),zu=We(Sl(),1),Wf=We(xo(),1),jf=We(bi(),1),Bf=We(Al(),1),Hf=We(Il(),1),Uf=We(Nl(),1),$f=We(Wl(),1),Kf=We(Hl(),1),Gf=We(ko(),1),Zf=We(_o(),1),Xf=We(Jl(),1),Qf=We(ts(),1),Yf=We(ls(),1),Jf=We(cs(),1),Vf=We(ps(),1),ed=We(gs(),1),td=We(bs(),1),rd=We(ks(),1),nd=We(Ts(),1),id=We(Ls(),1),od=We(As(),1),ad=We(Is(),1),ld=We(Ns(),1),sd=We(Hs(),1),ud=We(Ks(),1),cd=We(Xs(),1),fd=We(Js(),1),dd=We(tu(),1),pd=We(iu(),1),hd=We(lu(),1),md=We(cu(),1),gd=We(gu(),1),vd=We(bu(),1),yd=We(ku(),1),bd=We(xi(),1),xd=We(Tu(),1),_d=We(Lu(),1),wo={bash:"shell",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",dart:"application/dart",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",matlab:"text/x-octave",md:"markdown",mdown:"markdown",markdown:"markdown",ml:"mllike",mssql:"text/x-mssql",mysql:"text/x-mysql",nginx:"nginx",octave:"text/x-octave",perl:"perl",pl:"perl",powershell:"powershell",properties:"properties",ocaml:"text/x-ocaml",pascal:"text/x-pascal",pas:"text/x-pascal",php:u=>u.includes("/gi,` `);let z=u.textContent.trimEnd(),O="";if(P!==null){let A=P.className.replace("language-","");O=qn(A,z)}let S=(0,_r.default)(function(A){u.parentNode.replaceChild(A,u)},{value:z,mode:O,lineNumbers:!0,lineWrapping:!1,theme:On(),readOnly:!0});Nf(S)}function Nf(u){let P='',z=document.createElement("div");z.classList.add("CodeMirror-copy"),z.innerHTML=P,u.display.wrapper.appendChild(z),new zu.default(z,{text:function(S){return u.getValue()}}).on("success",S=>{z.classList.add("success"),setTimeout(()=>{z.classList.remove("success")},240)})}function qn(u,P){u=u.trim().replace(/^\./g,"").toLowerCase();let z=typeof wo[u];return z==="undefined"?"":z==="function"?wo[u](P):wo[u]}function On(){let u=document.documentElement.classList.contains("dark-mode");return window.codeTheme||(u?"darcula":"default")}function Sd(u,P,z){return(0,_r.default)(u,{value:P,mode:qn(z,P),lineNumbers:!0,lineWrapping:!1,theme:On(),readOnly:!0})}function Td(u,P){let z=u.textContent;return(0,_r.default)(function(O){u.parentNode.insertBefore(O,u),u.style.display="none"},{value:z,mode:qn(P,z),lineNumbers:!0,lineWrapping:!1,theme:On()})}function Cd(u,P){return _r.default.fromTextArea(u,{mode:qn(P,u.value),lineNumbers:!0,lineWrapping:!1,theme:On()})}function Ed(u,P,z){u.setOption("mode",qn(P,z))}function Ld(u,P){u.setValue(P),setTimeout(()=>{Pf(u)},10)}function Pf(u){u.refresh()}function zd(u){let z={value:u.textContent,mode:"markdown",lineNumbers:!0,lineWrapping:!0,theme:On(),scrollPastEnd:!0};return window.$events.emitPublic(u,"editor-markdown-cm::pre-init",{config:z}),(0,_r.default)(function(O){u.parentNode.insertBefore(O,u),u.style.display="none"},z)}function Md(){return _r.default.keyMap.default==_r.default.keyMap.macDefault?"Cmd":"Ctrl"}export{Md as getMetaKey,kd as highlight,wd as highlightWithin,Cd as inlineEditor,zd as markdownEditor,Td as popupEditor,Ld as setContent,Ed as setMode,Pf as updateLayout,Sd as wysiwygView}; /*! Bundled license information: clipboard/dist/clipboard.min.js: (*! * clipboard.js v2.0.11 * https://clipboardjs.com/ * * Licensed MIT © Zeno Rocha *) */ //# sourceMappingURL=code.js.map