Liferay.Loader.define("journal-web$codemirror@5.65.2/addon/runmode/runmode",["module","exports","require","../../lib/codemirror"],(function(e,r,t){var n,o=void 0;window;n=function(e){"use strict";e.runMode=function(r,t,n,o){var a=e.getMode(e.defaults,t),d=o&&o.tabSize||e.defaults.tabSize;if(n.appendChild){var i=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<9),c=n,u=0;c.innerHTML="",n=function(e,r){if("\n"==e)return c.appendChild(document.createTextNode(i?"\r":e)),void(u=0);for(var t="",n=0;;){var o=e.indexOf("\t",n);if(-1==o){t+=e.slice(n),u+=e.length-n;break}u+=o-n,t+=e.slice(n,o);var a=d-u%d;u+=a;for(var l=0;l<a;++l)t+=" ";n=o+1}if(r){var f=c.appendChild(document.createElement("span"));f.className="cm-"+r.replace(/ +/g," cm-"),f.appendChild(document.createTextNode(t))}else c.appendChild(document.createTextNode(t))}}for(var l=e.splitLines(r),f=o&&o.state||e.startState(a),s=0,m=l.length;s<m;++s){s&&n("\n");var p=new e.StringStream(l[s],null,{lookAhead:function(e){return l[s+e]},baseToken:function(){}});for(!p.string&&a.blankLine&&a.blankLine(f);!p.eol();){var v=a.token(p,f);n(p.current(),v,s,p.start,f,a),p.start=p.pos}}}},"object"==typeof r&&"object"==typeof e?n(t("../../lib/codemirror")):"function"==typeof o&&o.amd?o(["../../lib/codemirror"],n):n(CodeMirror)}));
//# sourceMappingURL=runmode.js.map