Spade

Mini Shell

Directory:~$ /home/lmsyaran/public_html/j3/media/editors/codemirror/addon/runmode/
Upload File

[Home] [System Details] [Kill Me]
Current File:~$ /home/lmsyaran/public_html/j3/media/editors/codemirror/addon/runmode/runmode-standalone.min.js

!(function(){"use strict";function a(a,b,c){b||(b={});for(var d
in
a)!a.hasOwnProperty(d)||!1===c&&b.hasOwnProperty(d)||(b[d]=a[d]);return
b}function
b(a,b,c,d,e){null==b&&-1==(b=a.search(/[^\s\u00a0]/))&&(b=a.length);for(var
f=d||0,g=e||0;;){var
h=a.indexOf("\t",f);if(h<0||h>=b)return
g+(b-f);g+=h-f,g+=c-g%c,f=h+1}}function c(){}function d(b,d){var e;return
Object.create?e=Object.create(b):(c.prototype=b,e=new
c),d&&a(d,e),e}function
e(a,b){arguments.length>2&&(b.dependencies=Array.prototype.slice.call(arguments,2)),n[a]=b}function
f(a,b){o[a]=b}function g(a){if("string"==typeof
a&&o.hasOwnProperty(a))a=o[a];else
if(a&&"string"==typeof
a.name&&o.hasOwnProperty(a.name)){var
b=o[a.name];"string"==typeof
b&&(b={name:b}),a=d(b,a),a.name=b.name}else{if("string"==typeof
a&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return
g("application/xml");if("string"==typeof
a&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return
g("application/json")}return"string"==typeof
a?{name:a}:a||{name:"null"}}function h(a,b){b=g(b);var
c=n[b.name];if(!c)return h(a,"text/plain");var
d=c(a,b);if(p.hasOwnProperty(b.name)){var e=p[b.name];for(var f in
e)e.hasOwnProperty(f)&&(d.hasOwnProperty(f)&&(d["_"+f]=d[f]),d[f]=e[f])}if(d.name=b.name,b.helperType&&(d.helperType=b.helperType),b.modeProps)for(var
i in b.modeProps)d[i]=b.modeProps[i];return d}function
i(b,c){a(c,p.hasOwnProperty(b)?p[b]:p[b]={})}function
j(a,b){if(!0===b)return b;if(a.copyState)return a.copyState(b);var
c={};for(var d in b){var e=b[d];e instanceof
Array&&(e=e.concat([])),c[d]=e}return c}function k(a,b){for(var
c;a.innerMode&&(c=a.innerMode(b))&&c.mode!=a;)b=c.state,a=c.mode;return
c||{mode:a,state:b}}function
l(a,b,c){return!a.startState||a.startState(b,c)}var
m=function(a,b,c){this.pos=this.start=0,this.string=a,this.tabSize=b||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=c};m.prototype.eol=function(){return
this.pos>=this.string.length},m.prototype.sol=function(){return
this.pos==this.lineStart},m.prototype.peek=function(){return
this.string.charAt(this.pos)||void
0},m.prototype.next=function(){if(this.pos<this.string.length)return
this.string.charAt(this.pos++)},m.prototype.eat=function(a){var
b=this.string.charAt(this.pos);if("string"==typeof
a?b==a:b&&(a.test?a.test(b):a(b)))return++this.pos,b},m.prototype.eatWhile=function(a){for(var
b=this.pos;this.eat(a););return
this.pos>b},m.prototype.eatSpace=function(){for(var
a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return
this.pos>a},m.prototype.skipToEnd=function(){this.pos=this.string.length},m.prototype.skipTo=function(a){var
b=this.string.indexOf(a,this.pos);if(b>-1)return
this.pos=b,!0},m.prototype.backUp=function(a){this.pos-=a},m.prototype.column=function(){return
this.lastColumnPos<this.start&&(this.lastColumnValue=b(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?b(this.string,this.lineStart,this.tabSize):0)},m.prototype.indentation=function(){return
b(this.string,null,this.tabSize)-(this.lineStart?b(this.string,this.lineStart,this.tabSize):0)},m.prototype.match=function(a,b,c){if("string"!=typeof
a){var d=this.string.slice(this.pos).match(a);return
d&&d.index>0?null:(d&&!1!==b&&(this.pos+=d[0].length),d)}var
e=function(a){return
c?a.toLowerCase():a};if(e(this.string.substr(this.pos,a.length))==e(a))return!1!==b&&(this.pos+=a.length),!0},m.prototype.current=function(){return
this.string.slice(this.start,this.pos)},m.prototype.hideFirstChars=function(a,b){this.lineStart+=a;try{return
b()}finally{this.lineStart-=a}},m.prototype.lookAhead=function(a){var
b=this.lineOracle;return
b&&b.lookAhead(a)},m.prototype.baseToken=function(){var
a=this.lineOracle;return a&&a.baseToken(this.pos)};var
n={},o={},p={},q={__proto__:null,modes:n,mimeModes:o,defineMode:e,defineMIME:f,resolveMode:g,getMode:h,modeExtensions:p,extendMode:i,copyState:j,innerMode:k,startState:l};("undefined"!=typeof
globalThis?globalThis:window).CodeMirror={},CodeMirror.StringStream=m;for(var
r in
q)CodeMirror[r]=q[r];CodeMirror.defineMode("null",(function(){return{token:function(a){return
a.skipToEnd()}}})),CodeMirror.defineMIME("text/plain","null"),CodeMirror.registerHelper=CodeMirror.registerGlobalHelper=Math.min,CodeMirror.splitLines=function(a){return
a.split(/\r?\n|\r/)},CodeMirror.defaults={indentUnit:2},(function(a){"object"==typeof
exports&&"object"==typeof
module?a(require("../../lib/codemirror")):"function"==typeof
define&&define.amd?define(["../../lib/codemirror"],a):a(CodeMirror)})((function(a){a.runMode=function(b,c,d,e){var
f=a.getMode(a.defaults,c),g=e&&e.tabSize||a.defaults.tabSize;if(d.appendChild){var
h=/MSIE
\d/.test(navigator.userAgent),i=h&&(null==document.documentMode||document.documentMode<9),j=d,k=0;j.innerHTML="",d=function(a,b){if("\n"==a)return
j.appendChild(document.createTextNode(i?"\r":a)),void(k=0);for(var
c="",d=0;;){var
e=a.indexOf("\t",d);if(-1==e){c+=a.slice(d),k+=a.length-d;break}k+=e-d,c+=a.slice(d,e);var
f=g-k%g;k+=f;for(var h=0;h<f;++h)c+=" ";d=e+1}if(b){var
l=j.appendChild(document.createElement("span"));l.className="cm-"+b.replace(/
+/g," cm-"),l.appendChild(document.createTextNode(c))}else
j.appendChild(document.createTextNode(c))}}for(var
l=a.splitLines(b),m=e&&e.state||a.startState(f),n=0,o=l.length;n<o;++n){n&&d("\n");var
p=new a.StringStream(l[n],null,{lookAhead:function(a){return
l[n+a]},baseToken:function(){}});for(!p.string&&f.blankLine&&f.blankLine(m);!p.eol();){var
q=f.token(p,m);d(p.current(),q,n,p.start,m),p.start=p.pos}}}}))})();