window.CodeMirror={},function(){"use strict";function t(t){this.pos=this.start=0,this.string=t,this.lineStart=0}t.prototype={eol:function(){return this.pos>=this.string.length},sol:function(){return 0==this.pos},peek:function(){return this.string.charAt(this.pos)||null},next:function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},eat:function(t){var r=this.string.charAt(this.pos);if("string"==typeof t)var e=r==t;else e=r&&(t.test?t.test(r):t(r));if(e)return++this.pos,r},eatWhile:function(t){for(var r=this.pos;this.eat(t););return this.pos>r},eatSpace:function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},skipToEnd:function(){this.pos=this.string.length},skipTo:function(t){var r=this.string.indexOf(t,this.pos);if(-1<r)return this.pos=r,!0},backUp:function(t){this.pos-=t},column:function(){return this.start-this.lineStart},indentation:function(){return 0},match:function(t,r,e){if("string"!=typeof t){var n=this.string.slice(this.pos).match(t);return n&&0<n.index?null:(n&&!1!==r&&(this.pos+=n[0].length),n)}function i(t){return e?t.toLowerCase():t}if(i(this.string.substr(this.pos,t.length))==i(t))return!1!==r&&(this.pos+=t.length),!0},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(t,r){this.lineStart+=t;try{return r()}finally{this.lineStart-=t}},lookAhead:function(){return null}},CodeMirror.StringStream=t,CodeMirror.startState=function(t,r,e){return!t.startState||t.startState(r,e)};var n=CodeMirror.modes={},e=CodeMirror.mimeModes={};CodeMirror.defineMode=function(t,r){2<arguments.length&&(r.dependencies=Array.prototype.slice.call(arguments,2)),n[t]=r},CodeMirror.defineMIME=function(t,r){e[t]=r},CodeMirror.resolveMode=function(t){return"string"==typeof t&&e.hasOwnProperty(t)?t=e[t]:t&&"string"==typeof t.name&&e.hasOwnProperty(t.name)&&(t=e[t.name]),"string"==typeof t?{name:t}:t||{name:"null"}},CodeMirror.getMode=function(t,r){r=CodeMirror.resolveMode(r);var e=n[r.name];if(!e)throw new Error("Unknown mode: "+r);return e(t,r)},CodeMirror.registerHelper=CodeMirror.registerGlobalHelper=Math.min,CodeMirror.defineMode("null",function(){return{token:function(t){t.skipToEnd()}}}),CodeMirror.defineMIME("text/plain","null"),CodeMirror.runMode=function(t,r,e,n){var i=CodeMirror.getMode({indentUnit:2},r);if(1==e.nodeType){var h=n&&n.tabSize||4,u=e,c=0;u.innerHTML="",e=function(t,r){if("\n"==t)return u.appendChild(document.createElement("br")),void(c=0);for(var e="",n=0;;){var i=t.indexOf("\t",n);if(-1==i){e+=t.slice(n),c+=t.length-n;break}c+=i-n,e+=t.slice(n,i);var o=h-c%h;c+=o;for(var s=0;s<o;++s)e+=" ";n=i+1}if(r){var a=u.appendChild(document.createElement("span"));a.className="cm-"+r.replace(/ +/g," cm-"),a.appendChild(document.createTextNode(e))}else u.appendChild(document.createTextNode(e))}}for(var o=function(t){return t.split(/\r?\n|\r/)}(t),s=n&&n.state||CodeMirror.startState(i),a=0,d=o.length;a<d;++a){a&&e("\n");var l=new CodeMirror.StringStream(o[a]);for(!l.string&&i.blankLine&&i.blankLine(s);!l.eol();){var f=i.token(l,s);e(l.current(),f,a,l.start,s),l.start=l.pos}}}}();