All Downloads are FREE. Search and download functionalities are using the official Maven repository.

web-interface.assets.b6d824665e9951e20f93c672f25c6158.js Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
"no use strict";(()=>{var P=(u,h)=>()=>(h||u((h={exports:{}}).exports,h),h.exports);var _=P(L=>{(function(u){if(typeof u.window<"u"&&u.document||u.require&&u.define)return;u.console||(u.console=function(){var c=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:c})},u.console.error=u.console.warn=u.console.log=u.console.trace=u.console),u.window=u,u.ace=u,u.onerror=function(c,r,t,n,o){postMessage({type:"error",data:{message:c,data:o&&o.data,file:r,line:t,col:n,stack:o&&o.stack}})},u.normalizeModule=function(c,r){if(r.indexOf("!")!==-1){var t=r.split("!");return u.normalizeModule(c,t[0])+"!"+u.normalizeModule(c,t[1])}if(r.charAt(0)=="."){var n=c.split("/").slice(0,-1).join("/");for(r=(n?n+"/":"")+r;r.indexOf(".")!==-1&&o!=r;){var o=r;r=r.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return r},u.require=function(r,t){if(t||(t=r,r=null),!t.charAt)throw new Error("worker.js require() accepts only (parentId, id) as arguments");t=u.normalizeModule(r,t);var n=u.require.modules[t];if(n)return n.initialized||(n.initialized=!0,n.exports=n.factory().exports),n.exports;if(!u.require.tlns)return console.log("unable to load "+t);var o=h(t,u.require.tlns);return o.slice(-3)!=".js"&&(o+=".js"),u.require.id=t,u.require.modules[t]={},importScripts(o),u.require(r,t)};function h(c,r){for(var t=c,n="";t;){var o=r[t];if(typeof o=="string")return o+n;if(o)return o.location.replace(/\/*$/,"/")+(n||o.main||o.name);if(o===!1)return"";var i=t.lastIndexOf("/");if(i===-1)break;n=t.substr(i)+n,t=t.slice(0,i)}return c}u.require.modules={},u.require.tlns={},u.define=function(c,r,t){if(arguments.length==2?(t=r,typeof c!="string"&&(r=c,c=u.require.id)):arguments.length==1&&(t=c,r=[],c=u.require.id),typeof t!="function"){u.require.modules[c]={exports:t,initialized:!0};return}r.length||(r=["require","exports","module"]);var n=function(o){return u.require(c,o)};u.require.modules[c]={exports:{},factory:function(){var o=this,i=t.apply(this,r.slice(0,t.length).map(function(e){switch(e){case"require":return n;case"exports":return o.exports;case"module":return o;default:return n(e)}}));return i&&(o.exports=i),o}}},u.define.amd={},u.require.tlns={},u.initBaseUrls=function(r){for(var t in r)this.require.tlns[t]=r[t]},u.initSender=function(){var r=u.require("ace/lib/event_emitter").EventEmitter,t=u.require("ace/lib/oop"),n=function(){};return(function(){t.implement(this,r),this.callback=function(o,i){postMessage({type:"call",id:i,data:o})},this.emit=function(o,i){postMessage({type:"event",name:o,data:i})}}).call(n.prototype),new n};var g=u.main=null,l=u.sender=null;u.onmessage=function(c){var r=c.data;if(r.event&&l)l._signal(r.event,r.data);else if(r.command)if(g[r.command])g[r.command].apply(g,r.args);else if(u[r.command])u[r.command].apply(u,r.args);else throw new Error("Unknown command:"+r.command);else if(r.init){u.initBaseUrls(r.tlns),l=u.sender=u.initSender();var t=this.require(r.module)[r.classname];g=u.main=new t(l)}}})(L);ace.define("ace/lib/oop",[],function(u,h,g){"use strict";h.inherits=function(l,c){l.super_=c,l.prototype=Object.create(c.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}})},h.mixin=function(l,c){for(var r in c)l[r]=c[r];return l},h.implement=function(l,c){h.mixin(l,c)}});ace.define("ace/apply_delta",[],function(u,h,g){"use strict";function l(t,n){throw console.log("Invalid Delta:",t),"Invalid Delta: "+n}function c(t,n){return n.row>=0&&n.row=0&&n.column<=t[n.row].length}function r(t,n){n.action!="insert"&&n.action!="remove"&&l(n,"delta.action must be 'insert' or 'remove'"),n.lines instanceof Array||l(n,"delta.lines must be an Array"),(!n.start||!n.end)&&l(n,"delta.start/end must be an present");var o=n.start;c(t,n.start)||l(n,"delta.start must be contained in document");var i=n.end;n.action=="remove"&&!c(t,i)&&l(n,"delta.end must contained in document for 'remove' actions");var e=i.row-o.row,s=i.column-(e==0?o.column:0);(e!=n.lines.length-1||n.lines[e].length!=s)&&l(n,"delta.range must match delta lines")}h.applyDelta=function(t,n,o){var i=n.start.row,e=n.start.column,s=t[i]||"";switch(n.action){case"insert":var a=n.lines;if(a.length===1)t[i]=s.substring(0,e)+n.lines[0]+s.substring(e);else{var f=[i,1].concat(n.lines);t.splice.apply(t,f),t[i]=s.substring(0,e)+t[i],t[i+n.lines.length-1]+=s.substring(e)}break;case"remove":var p=n.end.column,m=n.end.row;i===m?t[i]=s.substring(0,e)+s.substring(p):t.splice(i,m-i+1,s.substring(0,e)+t[m].substring(p));break}}});ace.define("ace/lib/event_emitter",[],function(u,h,g){"use strict";var l={},c=function(){this.propagationStopped=!0},r=function(){this.defaultPrevented=!0};l._emit=l._dispatchEvent=function(t,n){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var o=this._eventRegistry[t]||[],i=this._defaultHandlers[t];if(!(!o.length&&!i)){(typeof n!="object"||!n)&&(n={}),n.type||(n.type=t),n.stopPropagation||(n.stopPropagation=c),n.preventDefault||(n.preventDefault=r),o=o.slice();for(var e=0;e ["+this.end.row+"/"+this.end.column+"]"},r.prototype.contains=function(t,n){return this.compare(t,n)==0},r.prototype.compareRange=function(t){var n,o=t.end,i=t.start;return n=this.compare(o.row,o.column),n==1?(n=this.compare(i.row,i.column),n==1?2:n==0?1:0):n==-1?-2:(n=this.compare(i.row,i.column),n==-1?-1:n==1?42:0)},r.prototype.comparePoint=function(t){return this.compare(t.row,t.column)},r.prototype.containsRange=function(t){return this.comparePoint(t.start)==0&&this.comparePoint(t.end)==0},r.prototype.intersects=function(t){var n=this.compareRange(t);return n==-1||n==0||n==1},r.prototype.isEnd=function(t,n){return this.end.row==t&&this.end.column==n},r.prototype.isStart=function(t,n){return this.start.row==t&&this.start.column==n},r.prototype.setStart=function(t,n){typeof t=="object"?(this.start.column=t.column,this.start.row=t.row):(this.start.row=t,this.start.column=n)},r.prototype.setEnd=function(t,n){typeof t=="object"?(this.end.column=t.column,this.end.row=t.row):(this.end.row=t,this.end.column=n)},r.prototype.inside=function(t,n){return this.compare(t,n)==0?!(this.isEnd(t,n)||this.isStart(t,n)):!1},r.prototype.insideStart=function(t,n){return this.compare(t,n)==0?!this.isEnd(t,n):!1},r.prototype.insideEnd=function(t,n){return this.compare(t,n)==0?!this.isStart(t,n):!1},r.prototype.compare=function(t,n){return!this.isMultiLine()&&t===this.start.row?nthis.end.column?1:0:tthis.end.row?1:this.start.row===t?n>=this.start.column?0:-1:this.end.row===t?n<=this.end.column?0:1:0},r.prototype.compareStart=function(t,n){return this.start.row==t&&this.start.column==n?-1:this.compare(t,n)},r.prototype.compareEnd=function(t,n){return this.end.row==t&&this.end.column==n?1:this.compare(t,n)},r.prototype.compareInside=function(t,n){return this.end.row==t&&this.end.column==n?1:this.start.row==t&&this.start.column==n?-1:this.compare(t,n)},r.prototype.clipRows=function(t,n){if(this.end.row>n)var o={row:n+1,column:0};else if(this.end.rown)var i={row:n+1,column:0};else if(this.start.row"u"?this.setPosition(e.row,e.column):this.setPosition(e,s)}return o.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},o.prototype.getDocument=function(){return this.document},o.prototype.onChange=function(i){if(!(i.start.row==i.end.row&&i.start.row!=this.row)&&!(i.start.row>this.row)){var e=n(i,{row:this.row,column:this.column},this.$insertRight);this.setPosition(e.row,e.column,!0)}},o.prototype.setPosition=function(i,e,s){var a;if(s?a={row:i,column:e}:a=this.$clipPositionToDocument(i,e),!(this.row==a.row&&this.column==a.column)){var f={row:this.row,column:this.column};this.row=a.row,this.column=a.column,this._signal("change",{old:f,value:a})}},o.prototype.detach=function(){this.document.off("change",this.$onChange)},o.prototype.attach=function(i){this.document=i||this.document,this.document.on("change",this.$onChange)},o.prototype.$clipPositionToDocument=function(i,e){var s={};return i>=this.document.getLength()?(s.row=Math.max(0,this.document.getLength()-1),s.column=this.document.getLine(s.row).length):i<0?(s.row=0,s.column=0):(s.row=i,s.column=Math.min(this.document.getLine(s.row).length,Math.max(0,e))),e<0&&(s.column=0),s},o}();r.prototype.$insertRight=!1,l.implement(r.prototype,c);function t(o,i,e){var s=e?o.column<=i.column:o.column=a&&(e=a-1,s=void 0);var f=this.getLine(e);return s==null&&(s=f.length),s=Math.min(Math.max(s,0),f.length),{row:e,column:s}},i.prototype.clonePos=function(e){return{row:e.row,column:e.column}},i.prototype.pos=function(e,s){return{row:e,column:s}},i.prototype.$clipPosition=function(e){var s=this.getLength();return e.row>=s?(e.row=Math.max(0,s-1),e.column=this.getLine(s-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},i.prototype.insertFullLines=function(e,s){e=Math.min(Math.max(e,0),this.getLength());var a=0;e0,f=s=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},i.prototype.replace=function(e,s){if(e instanceof t||(e=t.fromPoints(e.start,e.end)),s.length===0&&e.isEmpty())return e.start;if(s==this.getTextRange(e))return e.end;this.remove(e);var a;return s?a=this.insert(e.start,s):a=e.start,a},i.prototype.applyDeltas=function(e){for(var s=0;s=0;s--)this.revertDelta(e[s])},i.prototype.applyDelta=function(e,s){var a=e.action=="insert";(a?e.lines.length<=1&&!e.lines[0]:!t.comparePoints(e.start,e.end))||(a&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(c(this.$lines,e,s),this._signal("change",e)))},i.prototype.$safeApplyDelta=function(e){var s=this.$lines.length;(e.action=="remove"&&e.start.row0;)t&1&&(n+=r),(t>>=1)&&(r+=r);return n};var l=/^\s\s*/,c=/\s\s*$/;h.stringTrimLeft=function(r){return r.replace(l,"")},h.stringTrimRight=function(r){return r.replace(c,"")},h.copyObject=function(r){var t={};for(var n in r)t[n]=r[n];return t},h.copyArray=function(r){for(var t=[],n=0,o=r.length;n=n.$lines.length)throw p=new Error("Invalid delta"),p.data={path:i.$path,linesLength:n.$lines.length,start:f.start,end:f.end},p;n.applyDelta(f,!0)}if(i.$timeout)return o.schedule(i.$timeout);i.onUpdate()})};(function(){this.$timeout=500,this.setTimeout=function(t){this.$timeout=t},this.setValue=function(t){this.doc.setValue(t),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(t){this.sender.callback(this.doc.getValue(),t)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(r.prototype)})});_();})();

//# sourceMappingURL=b6d824665e9951e20f93c672f25c6158.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy