Current File : /home/pacjaorg/public_html/kmm/media/vendor/codemirror/addon/runmode/runmode-standalone.min.js
(function(){"use strict";function b(t,e,n){e||(e={});for(var r in t)t.hasOwnProperty(r)&&(n!==!1||!e.hasOwnProperty(r))&&(e[r]=t[r]);return e}function y(t,e,n,r,s){e==null&&(e=t.search(/[^\s\u00a0]/),e==-1&&(e=t.length));for(var i=r||0,a=s||0;;){var d=t.indexOf("	",i);if(d<0||d>=e)return a+(e-i);a+=d-i,a+=n-a%n,i=d+1}}function P(){}function L(t,e){var n;return Object.create?n=Object.create(t):(P.prototype=t,n=new P),e&&b(e,n),n}var o=function(t,e,n){this.pos=this.start=0,this.string=t,this.tabSize=e||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};o.prototype.eol=function(){return this.pos>=this.string.length},o.prototype.sol=function(){return this.pos==this.lineStart},o.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},o.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},o.prototype.eat=function(t){var e=this.string.charAt(this.pos),n;if(typeof t=="string"?n=e==t:n=e&&(t.test?t.test(e):t(e)),n)return++this.pos,e},o.prototype.eatWhile=function(t){for(var e=this.pos;this.eat(t););return this.pos>e},o.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},o.prototype.skipToEnd=function(){this.pos=this.string.length},o.prototype.skipTo=function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0},o.prototype.backUp=function(t){this.pos-=t},o.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=y(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?y(this.string,this.lineStart,this.tabSize):0)},o.prototype.indentation=function(){return y(this.string,null,this.tabSize)-(this.lineStart?y(this.string,this.lineStart,this.tabSize):0)},o.prototype.match=function(t,e,n){if(typeof t=="string"){var r=function(a){return n?a.toLowerCase():a},s=this.string.substr(this.pos,t.length);if(r(s)==r(t))return e!==!1&&(this.pos+=t.length),!0}else{var i=this.string.slice(this.pos).match(t);return i&&i.index>0?null:(i&&e!==!1&&(this.pos+=i[0].length),i)}},o.prototype.current=function(){return this.string.slice(this.start,this.pos)},o.prototype.hideFirstChars=function(t,e){this.lineStart+=t;try{return e()}finally{this.lineStart-=t}},o.prototype.lookAhead=function(t){var e=this.lineOracle;return e&&e.lookAhead(t)},o.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};var C={},l={};function _(t,e){arguments.length>2&&(e.dependencies=Array.prototype.slice.call(arguments,2)),C[t]=e}function I(t,e){l[t]=e}function m(t){if(typeof t=="string"&&l.hasOwnProperty(t))t=l[t];else if(t&&typeof t.name=="string"&&l.hasOwnProperty(t.name)){var e=l[t.name];typeof e=="string"&&(e={name:e}),t=L(e,t),t.name=e.name}else{if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return m("application/xml");if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return m("application/json")}return typeof t=="string"?{name:t}:t||{name:"null"}}function k(t,e){e=m(e);var n=C[e.name];if(!n)return k(t,"text/plain");var r=n(t,e);if(h.hasOwnProperty(e.name)){var s=h[e.name];for(var i in s)s.hasOwnProperty(i)&&(r.hasOwnProperty(i)&&(r["_"+i]=r[i]),r[i]=s[i])}if(r.name=e.name,e.helperType&&(r.helperType=e.helperType),e.modeProps)for(var a in e.modeProps)r[a]=e.modeProps[a];return r}var h={};function N(t,e){var n=h.hasOwnProperty(t)?h[t]:h[t]={};b(e,n)}function V(t,e){if(e===!0)return e;if(t.copyState)return t.copyState(e);var n={};for(var r in e){var s=e[r];s instanceof Array&&(s=s.concat([])),n[r]=s}return n}function H(t,e){for(var n;t.innerMode&&(n=t.innerMode(e),!(!n||n.mode==t));)e=n.state,t=n.mode;return n||{mode:t,state:e}}function U(t,e,n){return t.startState?t.startState(e,n):!0}var T={__proto__:null,modes:C,mimeModes:l,defineMode:_,defineMIME:I,resolveMode:m,getMode:k,modeExtensions:h,extendMode:N,copyState:V,innerMode:H,startState:U},q=typeof globalThis<"u"?globalThis:window;q.CodeMirror={},CodeMirror.StringStream=o;for(var A in T)CodeMirror[A]=T[A];CodeMirror.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),CodeMirror.defineMIME("text/plain","null"),CodeMirror.registerHelper=CodeMirror.registerGlobalHelper=Math.min,CodeMirror.splitLines=function(t){return t.split(/\r?\n|\r/)},CodeMirror.countColumn=y,CodeMirror.defaults={indentUnit:2},function(t){typeof exports=="object"&&typeof module=="object"?t(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)}(function(t){t.runMode=function(e,n,r,s){var i=t.getMode(t.defaults,n),a=s&&s.tabSize||t.defaults.tabSize;if(r.appendChild){var d=/MSIE \d/.test(navigator.userAgent),F=d&&(document.documentMode==null||document.documentMode<9),M=r,v=0;M.textContent="",r=function(u,E){if(u==`
`){M.appendChild(document.createTextNode(F?"\r":u)),v=0;return}for(var g="",c=0;;){var S=u.indexOf("	",c);if(S==-1){g+=u.slice(c),v+=u.length-c;break}else{v+=S-c,g+=u.slice(c,S);var j=a-v%a;v+=j;for(var z=0;z<j;++z)g+=" ";c=S+1}}if(E){var x=M.appendChild(document.createElement("span"));x.className="cm-"+E.replace(/ +/g," cm-"),x.appendChild(document.createTextNode(g))}else M.appendChild(document.createTextNode(g))}}for(var w=t.splitLines(e),O=s&&s.state||t.startState(i),p=0,G=w.length;p<G;++p){p&&r(`
`);var f=new t.StringStream(w[p],null,{lookAhead:function(u){return w[p+u]},baseToken:function(){}});for(!f.string&&i.blankLine&&i.blankLine(O);!f.eol();){var W=i.token(f,O);r(f.current(),W,p,f.start,O,i),f.start=f.pos}}}})})();
Site is undergoing maintenance

PACJA Events

Maintenance mode is on

Site will be available soon. Thank you for your patience!