filesbox/web/dist/16874.b8bacefd.async.js
2024-07-26 14:10:54 +08:00

11 lines
46 KiB
JavaScript

(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[16874],{16874:function(){(function(m){if(typeof m.window!="undefined"&&m.document||m.require&&m.define)return;m.console||(m.console=function(){var g=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:g})},m.console.error=m.console.warn=m.console.log=m.console.trace=m.console),m.window=m,m.ace=m,m.onerror=function(g,a,n,r,u){postMessage({type:"error",data:{message:g,data:u&&u.data,file:a,line:n,col:r,stack:u&&u.stack}})},m.normalizeModule=function(g,a){if(a.indexOf("!")!==-1){var n=a.split("!");return m.normalizeModule(g,n[0])+"!"+m.normalizeModule(g,n[1])}if(a.charAt(0)=="."){var r=g.split("/").slice(0,-1).join("/");for(a=(r?r+"/":"")+a;a.indexOf(".")!==-1&&u!=a;){var u=a;a=a.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return a},m.require=function(a,n){if(n||(n=a,a=null),!n.charAt)throw new Error("worker.js require() accepts only (parentId, id) as arguments");n=m.normalizeModule(a,n);var r=m.require.modules[n];if(r)return r.initialized||(r.initialized=!0,r.exports=r.factory().exports),r.exports;if(!m.require.tlns)return console.log("unable to load "+n);var u=b(n,m.require.tlns);return u.slice(-3)!=".js"&&(u+=".js"),m.require.id=n,m.require.modules[n]={},importScripts(u),m.require(a,n)};function b(g,a){for(var n=g,r="";n;){var u=a[n];if(typeof u=="string")return u+r;if(u)return u.location.replace(/\/*$/,"/")+(r||u.main||u.name);if(u===!1)return"";var o=n.lastIndexOf("/");if(o===-1)break;r=n.substr(o)+r,n=n.slice(0,o)}return g}m.require.modules={},m.require.tlns={},m.define=function(g,a,n){if(arguments.length==2?(n=a,typeof g!="string"&&(a=g,g=m.require.id)):arguments.length==1&&(n=g,a=[],g=m.require.id),typeof n!="function"){m.require.modules[g]={exports:n,initialized:!0};return}a.length||(a=["require","exports","module"]);var r=function(u){return m.require(g,u)};m.require.modules[g]={exports:{},factory:function(){var u=this,o=n.apply(this,a.slice(0,n.length).map(function(i){switch(i){case"require":return r;case"exports":return u.exports;case"module":return u;default:return r(i)}}));return o&&(u.exports=o),u}}},m.define.amd={},m.require.tlns={},m.initBaseUrls=function(a){for(var n in a)this.require.tlns[n]=a[n]},m.initSender=function(){var a=m.require("ace/lib/event_emitter").EventEmitter,n=m.require("ace/lib/oop"),r=function(){};return function(){n.implement(this,a),this.callback=function(u,o){postMessage({type:"call",id:o,data:u})},this.emit=function(u,o){postMessage({type:"event",name:u,data:o})}}.call(r.prototype),new r};var H=m.main=null,E=m.sender=null;m.onmessage=function(g){var a=g.data;if(a.event&&E)E._signal(a.event,a.data);else if(a.command)if(H[a.command])H[a.command].apply(H,a.args);else if(m[a.command])m[a.command].apply(m,a.args);else throw new Error("Unknown command:"+a.command);else if(a.init){m.initBaseUrls(a.tlns),E=m.sender=m.initSender();var n=this.require(a.module)[a.classname];H=m.main=new n(E)}}})(this),ace.define("ace/lib/oop",[],function(m,b,H){"use strict";b.inherits=function(E,g){E.super_=g,E.prototype=Object.create(g.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}})},b.mixin=function(E,g){for(var a in g)E[a]=g[a];return E},b.implement=function(E,g){b.mixin(E,g)}}),ace.define("ace/lib/lang",[],function(m,b,H){"use strict";b.last=function(a){return a[a.length-1]},b.stringReverse=function(a){return a.split("").reverse().join("")},b.stringRepeat=function(a,n){for(var r="";n>0;)n&1&&(r+=a),(n>>=1)&&(a+=a);return r};var E=/^\s\s*/,g=/\s\s*$/;b.stringTrimLeft=function(a){return a.replace(E,"")},b.stringTrimRight=function(a){return a.replace(g,"")},b.copyObject=function(a){var n={};for(var r in a)n[r]=a[r];return n},b.copyArray=function(a){for(var n=[],r=0,u=a.length;r<u;r++)a[r]&&typeof a[r]=="object"?n[r]=this.copyObject(a[r]):n[r]=a[r];return n},b.deepCopy=function a(n){if(typeof n!="object"||!n)return n;var r;if(Array.isArray(n)){r=[];for(var u=0;u<n.length;u++)r[u]=a(n[u]);return r}if(Object.prototype.toString.call(n)!=="[object Object]")return n;r={};for(var u in n)r[u]=a(n[u]);return r},b.arrayToMap=function(a){for(var n={},r=0;r<a.length;r++)n[a[r]]=1;return n},b.createMap=function(a){var n=Object.create(null);for(var r in a)n[r]=a[r];return n},b.arrayRemove=function(a,n){for(var r=0;r<=a.length;r++)n===a[r]&&a.splice(r,1)},b.escapeRegExp=function(a){return a.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},b.escapeHTML=function(a){return(""+a).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},b.getMatchOffsets=function(a,n){var r=[];return a.replace(n,function(u){r.push({offset:arguments[arguments.length-2],length:u.length})}),r},b.deferredCall=function(a){var n=null,r=function(){n=null,a()},u=function(o){return u.cancel(),n=setTimeout(r,o||0),u};return u.schedule=u,u.call=function(){return this.cancel(),a(),u},u.cancel=function(){return clearTimeout(n),n=null,u},u.isPending=function(){return n},u},b.delayedCall=function(a,n){var r=null,u=function(){r=null,a()},o=function(i){r==null&&(r=setTimeout(u,i||n))};return o.delay=function(i){r&&clearTimeout(r),r=setTimeout(u,i||n)},o.schedule=o,o.call=function(){this.cancel(),a()},o.cancel=function(){r&&clearTimeout(r),r=null},o.isPending=function(){return r},o}}),ace.define("ace/apply_delta",[],function(m,b,H){"use strict";function E(n,r){throw console.log("Invalid Delta:",n),"Invalid Delta: "+r}function g(n,r){return r.row>=0&&r.row<n.length&&r.column>=0&&r.column<=n[r.row].length}function a(n,r){r.action!="insert"&&r.action!="remove"&&E(r,"delta.action must be 'insert' or 'remove'"),r.lines instanceof Array||E(r,"delta.lines must be an Array"),(!r.start||!r.end)&&E(r,"delta.start/end must be an present");var u=r.start;g(n,r.start)||E(r,"delta.start must be contained in document");var o=r.end;r.action=="remove"&&!g(n,o)&&E(r,"delta.end must contained in document for 'remove' actions");var i=o.row-u.row,c=o.column-(i==0?u.column:0);(i!=r.lines.length-1||r.lines[i].length!=c)&&E(r,"delta.range must match delta lines")}b.applyDelta=function(n,r,u){var o=r.start.row,i=r.start.column,c=n[o]||"";switch(r.action){case"insert":var l=r.lines;if(l.length===1)n[o]=c.substring(0,i)+r.lines[0]+c.substring(i);else{var p=[o,1].concat(r.lines);n.splice.apply(n,p),n[o]=c.substring(0,i)+n[o],n[o+r.lines.length-1]+=c.substring(i)}break;case"remove":var d=r.end.column,_=r.end.row;o===_?n[o]=c.substring(0,i)+c.substring(d):n.splice(o,_-o+1,c.substring(0,i)+n[_].substring(d));break}}}),ace.define("ace/lib/event_emitter",[],function(m,b,H){"use strict";var E={},g=function(){this.propagationStopped=!0},a=function(){this.defaultPrevented=!0};E._emit=E._dispatchEvent=function(n,r){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var u=this._eventRegistry[n]||[],o=this._defaultHandlers[n];if(!(!u.length&&!o)){(typeof r!="object"||!r)&&(r={}),r.type||(r.type=n),r.stopPropagation||(r.stopPropagation=g),r.preventDefault||(r.preventDefault=a),u=u.slice();for(var i=0;i<u.length&&(u[i](r,this),!r.propagationStopped);i++);if(o&&!r.defaultPrevented)return o(r,this)}},E._signal=function(n,r){var u=(this._eventRegistry||{})[n];if(!!u){u=u.slice();for(var o=0;o<u.length;o++)u[o](r,this)}},E.once=function(n,r){var u=this;if(this.on(n,function o(){u.off(n,o),r.apply(null,arguments)}),!r)return new Promise(function(o){r=o})},E.setDefaultHandler=function(n,r){var u=this._defaultHandlers;if(u||(u=this._defaultHandlers={_disabled_:{}}),u[n]){var o=u[n],i=u._disabled_[n];i||(u._disabled_[n]=i=[]),i.push(o);var c=i.indexOf(r);c!=-1&&i.splice(c,1)}u[n]=r},E.removeDefaultHandler=function(n,r){var u=this._defaultHandlers;if(!!u){var o=u._disabled_[n];if(u[n]==r)o&&this.setDefaultHandler(n,o.pop());else if(o){var i=o.indexOf(r);i!=-1&&o.splice(i,1)}}},E.on=E.addEventListener=function(n,r,u){this._eventRegistry=this._eventRegistry||{};var o=this._eventRegistry[n];return o||(o=this._eventRegistry[n]=[]),o.indexOf(r)==-1&&o[u?"unshift":"push"](r),r},E.off=E.removeListener=E.removeEventListener=function(n,r){this._eventRegistry=this._eventRegistry||{};var u=this._eventRegistry[n];if(!!u){var o=u.indexOf(r);o!==-1&&u.splice(o,1)}},E.removeAllListeners=function(n){n||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[n]=void 0),this._defaultHandlers&&(this._defaultHandlers[n]=void 0)},b.EventEmitter=E}),ace.define("ace/range",[],function(m,b,H){"use strict";var E=function(a,n){return a.row-n.row||a.column-n.column},g=function(){function a(n,r,u,o){this.start={row:n,column:r},this.end={row:u,column:o}}return a.prototype.isEqual=function(n){return this.start.row===n.start.row&&this.end.row===n.end.row&&this.start.column===n.start.column&&this.end.column===n.end.column},a.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},a.prototype.contains=function(n,r){return this.compare(n,r)==0},a.prototype.compareRange=function(n){var r,u=n.end,o=n.start;return r=this.compare(u.row,u.column),r==1?(r=this.compare(o.row,o.column),r==1?2:r==0?1:0):r==-1?-2:(r=this.compare(o.row,o.column),r==-1?-1:r==1?42:0)},a.prototype.comparePoint=function(n){return this.compare(n.row,n.column)},a.prototype.containsRange=function(n){return this.comparePoint(n.start)==0&&this.comparePoint(n.end)==0},a.prototype.intersects=function(n){var r=this.compareRange(n);return r==-1||r==0||r==1},a.prototype.isEnd=function(n,r){return this.end.row==n&&this.end.column==r},a.prototype.isStart=function(n,r){return this.start.row==n&&this.start.column==r},a.prototype.setStart=function(n,r){typeof n=="object"?(this.start.column=n.column,this.start.row=n.row):(this.start.row=n,this.start.column=r)},a.prototype.setEnd=function(n,r){typeof n=="object"?(this.end.column=n.column,this.end.row=n.row):(this.end.row=n,this.end.column=r)},a.prototype.inside=function(n,r){return this.compare(n,r)==0?!(this.isEnd(n,r)||this.isStart(n,r)):!1},a.prototype.insideStart=function(n,r){return this.compare(n,r)==0?!this.isEnd(n,r):!1},a.prototype.insideEnd=function(n,r){return this.compare(n,r)==0?!this.isStart(n,r):!1},a.prototype.compare=function(n,r){return!this.isMultiLine()&&n===this.start.row?r<this.start.column?-1:r>this.end.column?1:0:n<this.start.row?-1:n>this.end.row?1:this.start.row===n?r>=this.start.column?0:-1:this.end.row===n?r<=this.end.column?0:1:0},a.prototype.compareStart=function(n,r){return this.start.row==n&&this.start.column==r?-1:this.compare(n,r)},a.prototype.compareEnd=function(n,r){return this.end.row==n&&this.end.column==r?1:this.compare(n,r)},a.prototype.compareInside=function(n,r){return this.end.row==n&&this.end.column==r?1:this.start.row==n&&this.start.column==r?-1:this.compare(n,r)},a.prototype.clipRows=function(n,r){if(this.end.row>r)var u={row:r+1,column:0};else if(this.end.row<n)var u={row:n,column:0};if(this.start.row>r)var o={row:r+1,column:0};else if(this.start.row<n)var o={row:n,column:0};return a.fromPoints(o||this.start,u||this.end)},a.prototype.extend=function(n,r){var u=this.compare(n,r);if(u==0)return this;if(u==-1)var o={row:n,column:r};else var i={row:n,column:r};return a.fromPoints(o||this.start,i||this.end)},a.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},a.prototype.isMultiLine=function(){return this.start.row!==this.end.row},a.prototype.clone=function(){return a.fromPoints(this.start,this.end)},a.prototype.collapseRows=function(){return this.end.column==0?new a(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new a(this.start.row,0,this.end.row,0)},a.prototype.toScreenRange=function(n){var r=n.documentToScreenPosition(this.start),u=n.documentToScreenPosition(this.end);return new a(r.row,r.column,u.row,u.column)},a.prototype.moveBy=function(n,r){this.start.row+=n,this.start.column+=r,this.end.row+=n,this.end.column+=r},a}();g.fromPoints=function(a,n){return new g(a.row,a.column,n.row,n.column)},g.comparePoints=E,g.comparePoints=function(a,n){return a.row-n.row||a.column-n.column},b.Range=g}),ace.define("ace/anchor",[],function(m,b,H){"use strict";var E=m("./lib/oop"),g=m("./lib/event_emitter").EventEmitter,a=function(){function u(o,i,c){this.$onChange=this.onChange.bind(this),this.attach(o),typeof c=="undefined"?this.setPosition(i.row,i.column):this.setPosition(i,c)}return u.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},u.prototype.getDocument=function(){return this.document},u.prototype.onChange=function(o){if(!(o.start.row==o.end.row&&o.start.row!=this.row)&&!(o.start.row>this.row)){var i=r(o,{row:this.row,column:this.column},this.$insertRight);this.setPosition(i.row,i.column,!0)}},u.prototype.setPosition=function(o,i,c){var l;if(c?l={row:o,column:i}:l=this.$clipPositionToDocument(o,i),!(this.row==l.row&&this.column==l.column)){var p={row:this.row,column:this.column};this.row=l.row,this.column=l.column,this._signal("change",{old:p,value:l})}},u.prototype.detach=function(){this.document.off("change",this.$onChange)},u.prototype.attach=function(o){this.document=o||this.document,this.document.on("change",this.$onChange)},u.prototype.$clipPositionToDocument=function(o,i){var c={};return o>=this.document.getLength()?(c.row=Math.max(0,this.document.getLength()-1),c.column=this.document.getLine(c.row).length):o<0?(c.row=0,c.column=0):(c.row=o,c.column=Math.min(this.document.getLine(c.row).length,Math.max(0,i))),i<0&&(c.column=0),c},u}();a.prototype.$insertRight=!1,E.implement(a.prototype,g);function n(u,o,i){var c=i?u.column<=o.column:u.column<o.column;return u.row<o.row||u.row==o.row&&c}function r(u,o,i){var c=u.action=="insert",l=(c?1:-1)*(u.end.row-u.start.row),p=(c?1:-1)*(u.end.column-u.start.column),d=u.start,_=c?d:u.end;return n(o,d,i)?{row:o.row,column:o.column}:n(_,o,!i)?{row:o.row+l,column:o.column+(o.row==_.row?p:0)}:{row:d.row,column:d.column}}b.Anchor=a}),ace.define("ace/document",[],function(m,b,H){"use strict";var E=m("./lib/oop"),g=m("./apply_delta").applyDelta,a=m("./lib/event_emitter").EventEmitter,n=m("./range").Range,r=m("./anchor").Anchor,u=function(){function o(i){this.$lines=[""],i.length===0?this.$lines=[""]:Array.isArray(i)?this.insertMergedLines({row:0,column:0},i):this.insert({row:0,column:0},i)}return o.prototype.setValue=function(i){var c=this.getLength()-1;this.remove(new n(0,0,c,this.getLine(c).length)),this.insert({row:0,column:0},i||"")},o.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},o.prototype.createAnchor=function(i,c){return new r(this,i,c)},o.prototype.$detectNewLine=function(i){var c=i.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=c?c[1]:`
`,this._signal("changeNewLineMode")},o.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
`;case"unix":return`
`;default:return this.$autoNewLine||`
`}},o.prototype.setNewLineMode=function(i){this.$newLineMode!==i&&(this.$newLineMode=i,this._signal("changeNewLineMode"))},o.prototype.getNewLineMode=function(){return this.$newLineMode},o.prototype.isNewLine=function(i){return i==`\r
`||i=="\r"||i==`
`},o.prototype.getLine=function(i){return this.$lines[i]||""},o.prototype.getLines=function(i,c){return this.$lines.slice(i,c+1)},o.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},o.prototype.getLength=function(){return this.$lines.length},o.prototype.getTextRange=function(i){return this.getLinesForRange(i).join(this.getNewLineCharacter())},o.prototype.getLinesForRange=function(i){var c;if(i.start.row===i.end.row)c=[this.getLine(i.start.row).substring(i.start.column,i.end.column)];else{c=this.getLines(i.start.row,i.end.row),c[0]=(c[0]||"").substring(i.start.column);var l=c.length-1;i.end.row-i.start.row==l&&(c[l]=c[l].substring(0,i.end.column))}return c},o.prototype.insertLines=function(i,c){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(i,c)},o.prototype.removeLines=function(i,c){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(i,c)},o.prototype.insertNewLine=function(i){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(i,["",""])},o.prototype.insert=function(i,c){return this.getLength()<=1&&this.$detectNewLine(c),this.insertMergedLines(i,this.$split(c))},o.prototype.insertInLine=function(i,c){var l=this.clippedPos(i.row,i.column),p=this.pos(i.row,i.column+c.length);return this.applyDelta({start:l,end:p,action:"insert",lines:[c]},!0),this.clonePos(p)},o.prototype.clippedPos=function(i,c){var l=this.getLength();i===void 0?i=l:i<0?i=0:i>=l&&(i=l-1,c=void 0);var p=this.getLine(i);return c==null&&(c=p.length),c=Math.min(Math.max(c,0),p.length),{row:i,column:c}},o.prototype.clonePos=function(i){return{row:i.row,column:i.column}},o.prototype.pos=function(i,c){return{row:i,column:c}},o.prototype.$clipPosition=function(i){var c=this.getLength();return i.row>=c?(i.row=Math.max(0,c-1),i.column=this.getLine(c-1).length):(i.row=Math.max(0,i.row),i.column=Math.min(Math.max(i.column,0),this.getLine(i.row).length)),i},o.prototype.insertFullLines=function(i,c){i=Math.min(Math.max(i,0),this.getLength());var l=0;i<this.getLength()?(c=c.concat([""]),l=0):(c=[""].concat(c),i--,l=this.$lines[i].length),this.insertMergedLines({row:i,column:l},c)},o.prototype.insertMergedLines=function(i,c){var l=this.clippedPos(i.row,i.column),p={row:l.row+c.length-1,column:(c.length==1?l.column:0)+c[c.length-1].length};return this.applyDelta({start:l,end:p,action:"insert",lines:c}),this.clonePos(p)},o.prototype.remove=function(i){var c=this.clippedPos(i.start.row,i.start.column),l=this.clippedPos(i.end.row,i.end.column);return this.applyDelta({start:c,end:l,action:"remove",lines:this.getLinesForRange({start:c,end:l})}),this.clonePos(c)},o.prototype.removeInLine=function(i,c,l){var p=this.clippedPos(i,c),d=this.clippedPos(i,l);return this.applyDelta({start:p,end:d,action:"remove",lines:this.getLinesForRange({start:p,end:d})},!0),this.clonePos(p)},o.prototype.removeFullLines=function(i,c){i=Math.min(Math.max(0,i),this.getLength()-1),c=Math.min(Math.max(0,c),this.getLength()-1);var l=c==this.getLength()-1&&i>0,p=c<this.getLength()-1,d=l?i-1:i,_=l?this.getLine(d).length:0,O=p?c+1:c,L=p?0:this.getLine(O).length,$=new n(d,_,O,L),I=this.$lines.slice(i,c+1);return this.applyDelta({start:$.start,end:$.end,action:"remove",lines:this.getLinesForRange($)}),I},o.prototype.removeNewLine=function(i){i<this.getLength()-1&&i>=0&&this.applyDelta({start:this.pos(i,this.getLine(i).length),end:this.pos(i+1,0),action:"remove",lines:["",""]})},o.prototype.replace=function(i,c){if(i instanceof n||(i=n.fromPoints(i.start,i.end)),c.length===0&&i.isEmpty())return i.start;if(c==this.getTextRange(i))return i.end;this.remove(i);var l;return c?l=this.insert(i.start,c):l=i.start,l},o.prototype.applyDeltas=function(i){for(var c=0;c<i.length;c++)this.applyDelta(i[c])},o.prototype.revertDeltas=function(i){for(var c=i.length-1;c>=0;c--)this.revertDelta(i[c])},o.prototype.applyDelta=function(i,c){var l=i.action=="insert";(l?i.lines.length<=1&&!i.lines[0]:!n.comparePoints(i.start,i.end))||(l&&i.lines.length>2e4?this.$splitAndapplyLargeDelta(i,2e4):(g(this.$lines,i,c),this._signal("change",i)))},o.prototype.$safeApplyDelta=function(i){var c=this.$lines.length;(i.action=="remove"&&i.start.row<c&&i.end.row<c||i.action=="insert"&&i.start.row<=c)&&this.applyDelta(i)},o.prototype.$splitAndapplyLargeDelta=function(i,c){for(var l=i.lines,p=l.length-c+1,d=i.start.row,_=i.start.column,O=0,L=0;O<p;O=L){L+=c-1;var $=l.slice(O,L);$.push(""),this.applyDelta({start:this.pos(d+O,_),end:this.pos(d+L,_=0),action:i.action,lines:$},!0)}i.lines=l.slice(O),i.start.row=d+O,i.start.column=_,this.applyDelta(i,!0)},o.prototype.revertDelta=function(i){this.$safeApplyDelta({start:this.clonePos(i.start),end:this.clonePos(i.end),action:i.action=="insert"?"remove":"insert",lines:i.lines.slice()})},o.prototype.indexToPosition=function(i,c){for(var l=this.$lines||this.getAllLines(),p=this.getNewLineCharacter().length,d=c||0,_=l.length;d<_;d++)if(i-=l[d].length+p,i<0)return{row:d,column:i+l[d].length+p};return{row:_-1,column:i+l[_-1].length+p}},o.prototype.positionToIndex=function(i,c){for(var l=this.$lines||this.getAllLines(),p=this.getNewLineCharacter().length,d=0,_=Math.min(i.row,l.length),O=c||0;O<_;++O)d+=l[O].length+p;return d+i.column},o}();u.prototype.$split="aaa".split(/a/).length===0?function(o){return o.replace(/\r\n|\r/g,`
`).split(`
`)}:function(o){return o.split(/\r\n|\r|\n/)},u.prototype.$autoNewLine="",u.prototype.$newLineMode="auto",E.implement(u.prototype,a),b.Document=u}),ace.define("ace/worker/mirror",[],function(m,b,H){"use strict";var E=m("../document").Document,g=m("../lib/lang"),a=b.Mirror=function(n){this.sender=n;var r=this.doc=new E(""),u=this.deferredUpdate=g.delayedCall(this.onUpdate.bind(this)),o=this;n.on("change",function(i){var c=i.data;if(c[0].start)r.applyDeltas(c);else for(var l=0;l<c.length;l+=2){var p,d;if(Array.isArray(c[l+1])?p={action:"insert",start:c[l],lines:c[l+1]}:p={action:"remove",start:c[l],end:c[l+1]},(p.action=="insert"?p.start:p.end).row>=r.$lines.length)throw d=new Error("Invalid delta"),d.data={path:o.$path,linesLength:r.$lines.length,start:p.start,end:p.end},d;r.applyDelta(p,!0)}if(o.$timeout)return u.schedule(o.$timeout);o.onUpdate()})};(function(){this.$timeout=500,this.setTimeout=function(n){this.$timeout=n},this.setValue=function(n){this.doc.setValue(n),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(n){this.sender.callback(this.doc.getValue(),n)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(a.prototype)}),ace.define("ace/mode/xml/sax",[],function(m,b,H){var E=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,g=new RegExp("[\\-\\.0-9"+E.source.slice(1,-1)+"\xB7\u0300-\u036F\\ux203F-\u2040]"),a=new RegExp("^"+E.source+g.source+"*(?::"+E.source+g.source+"*)?$"),n=0,r=1,u=2,o=3,i=4,c=5,l=6,p=7;function d(){}d.prototype={parse:function(h,v,N){var D=this.domBuilder;D.startDocument(),B(v,v={}),_(h,v,N,D,this.errorHandler),D.endDocument()}};function _(h,v,N,D,T){function R(M){if(M>65535){M-=65536;var j=55296+(M>>10),tt=56320+(M&1023);return String.fromCharCode(j,tt)}else return String.fromCharCode(M)}function w(M){var j=M.slice(1,-1);return j in N?N[j]:j.charAt(0)==="#"?R(parseInt(j.substr(1).replace("x","0x"))):(T.error("entity not found:"+M),M)}function S(M){var j=h.substring(G,M).replace(/&#?\w+;/g,w);U&&A(G),D.characters(j,0,M-G),G=M}function A(M,j){for(;M>=x&&(j=q.exec(h));)P=j.index,x=P+j[0].length,U.lineNumber++;U.columnNumber=M-P+1}for(var P=0,x=0,q=/.+(?:\r\n?|\n)|.*$/g,U=D.locator,z=[{currentNSMap:v}],K={},G=0;;){var F=h.indexOf("<",G);if(F<0){if(!h.substr(G).match(/^\s*$/)){var rt=D.document,V=rt.createTextNode(h.substr(G));rt.appendChild(V),D.currentElement=V}return}switch(F>G&&S(F),h.charAt(F+1)){case"/":var Y=h.indexOf(">",F+3),Z=h.substring(F+2,Y),X;if(z.length>1)X=z.pop();else{T.fatalError("end tag name not found for: "+Z);break}var st=X.localNSMap;if(X.tagName!=Z&&T.fatalError("end tag name: "+Z+" does not match the current start tagName: "+X.tagName),D.endElement(X.uri,X.localName,Z),st)for(var at in st)D.endPrefixMapping(at);Y++;break;case"?":U&&A(F),Y=wt(h,F,D);break;case"!":U&&A(F),Y=_t(h,F,D,T);break;default:try{U&&A(F);var W=new pt,Y=L(h,F,W,w,T),it=W.length;if(it&&U){for(var ut=O(U,{}),F=0;F<it;F++){var ct=W[F];A(ct.offset),ct.offset=O(U,{})}O(ut,U)}!W.closed&&C(h,Y,W.tagName,K)&&(W.closed=!0,N.nbsp||T.warning("unclosed xml attribute")),$(W,D,z),W.uri==="http://www.w3.org/1999/xhtml"&&!W.closed?Y=I(h,Y,W.tagName,w,D):Y++}catch(M){T.error("element parse error: "+M),Y=-1}}Y<0?S(F+1):G=Y}}function O(h,v){return v.lineNumber=h.lineNumber,v.columnNumber=h.columnNumber,v}function L(h,v,N,D,T){for(var R,w,S=++v,A=n;;){var P=h.charAt(S);switch(P){case"=":if(A===r)R=h.slice(v,S),A=o;else if(A===u)A=o;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(A===o)if(v=S+1,S=h.indexOf(P,v),S>0)w=h.slice(v,S).replace(/&#?\w+;/g,D),N.add(R,w,v-1),A=c;else throw new Error("attribute value no end '"+P+"' match");else if(A==i)w=h.slice(v,S).replace(/&#?\w+;/g,D),N.add(R,w,v),T.warning('attribute "'+R+'" missed start quot('+P+")!!"),v=S+1,A=c;else throw new Error('attribute value must after "="');break;case"/":switch(A){case n:N.setTagName(h.slice(v,S));case c:case l:case p:A=p,N.closed=!0;case i:case r:case u:break;default:throw new Error("attribute invalid close char('/')")}break;case"":T.error("unexpected end of input");case">":switch(A){case n:N.setTagName(h.slice(v,S));case c:case l:case p:break;case i:case r:w=h.slice(v,S),w.slice(-1)==="/"&&(N.closed=!0,w=w.slice(0,-1));case u:A===u&&(w=R),A==i?(T.warning('attribute "'+w+'" missed quot(")!!'),N.add(R,w.replace(/&#?\w+;/g,D),v)):(T.warning('attribute "'+w+'" missed value!! "'+w+'" instead!!'),N.add(w,w,v));break;case o:throw new Error("attribute value missed!!")}return S;case"\x80":P=" ";default:if(P<=" ")switch(A){case n:N.setTagName(h.slice(v,S)),A=l;break;case r:R=h.slice(v,S),A=u;break;case i:var w=h.slice(v,S).replace(/&#?\w+;/g,D);T.warning('attribute "'+w+'" missed quot(")!!'),N.add(R,w,v);case c:A=l;break}else switch(A){case u:T.warning('attribute "'+R+'" missed value!! "'+R+'" instead!!'),N.add(R,R,v),v=S,A=r;break;case c:T.warning('attribute space is required"'+R+'"!!');case l:A=r,v=S;break;case o:A=i,v=S;break;case p:throw new Error("elements closed character '/' and '>' must be connected to")}}S++}}function $(h,v,N){for(var D=h.tagName,T=null,R=N[N.length-1].currentNSMap,w=h.length;w--;){var S=h[w],A=S.qName,P=S.value,z=A.indexOf(":");if(z>0)var x=S.prefix=A.slice(0,z),q=A.slice(z+1),U=x==="xmlns"&&q;else q=A,x=null,U=A==="xmlns"&&"";S.localName=q,U!==!1&&(T==null&&(T={},B(R,R={})),R[U]=T[U]=P,S.uri="http://www.w3.org/2000/xmlns/",v.startPrefixMapping(U,P))}for(var w=h.length;w--;){S=h[w];var x=S.prefix;x&&(x==="xml"&&(S.uri="http://www.w3.org/XML/1998/namespace"),x!=="xmlns"&&(S.uri=R[x]))}var z=D.indexOf(":");z>0?(x=h.prefix=D.slice(0,z),q=h.localName=D.slice(z+1)):(x=null,q=h.localName=D);var K=h.uri=R[x||""];if(v.startElement(K,q,D,h),h.closed){if(v.endElement(K,q,D),T)for(x in T)v.endPrefixMapping(x)}else h.currentNSMap=R,h.localNSMap=T,N.push(h)}function I(h,v,N,D,T){if(/^(?:script|textarea)$/i.test(N)){var R=h.indexOf("</"+N+">",v),w=h.substring(v+1,R);if(/[&<]/.test(w))return/^script$/i.test(N)?(T.characters(w,0,w.length),R):(w=w.replace(/&#?\w+;/g,D),T.characters(w,0,w.length),R)}return v+1}function C(h,v,N,D){var T=D[N];return T==null&&(T=D[N]=h.lastIndexOf("</"+N+">")),T<v}function B(h,v){for(var N in h)v[N]=h[N]}function _t(h,v,N,D){var T=h.charAt(v+2);switch(T){case"-":if(h.charAt(v+3)==="-"){var R=h.indexOf("-->",v+4);return R>v?(N.comment(h,v+4,R-v-4),R+3):(D.error("Unclosed comment"),-1)}else return-1;default:if(h.substr(v+3,6)=="CDATA["){var R=h.indexOf("]]>",v+9);return R>v?(N.startCDATA(),N.characters(h,v+9,R-v-9),N.endCDATA(),R+3):(D.error("Unclosed CDATA"),-1)}var w=Dt(h,v),S=w.length;if(S>1&&/!doctype/i.test(w[0][0])){var A=w[1][0],P=S>3&&/^public$/i.test(w[2][0])&&w[3][0],x=S>4&&w[4][0],q=w[S-1];return N.startDTD(A,P&&P.replace(/^(['"])(.*?)\1$/,"$2"),x&&x.replace(/^(['"])(.*?)\1$/,"$2")),N.endDTD(),q.index+q[0].length}}return-1}function wt(h,v,N){var D=h.indexOf("?>",v);if(D){var T=h.substring(v,D).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(T){var R=T[0].length;return N.processingInstruction(T[1],T[2]),D+2}else return-1}return-1}function pt(h){}pt.prototype={setTagName:function(h){if(!a.test(h))throw new Error("invalid tagName:"+h);this.tagName=h},add:function(h,v,N){if(!a.test(h))throw new Error("invalid attribute:"+h);this[this.length++]={qName:h,value:v,offset:N}},length:0,getLocalName:function(h){return this[h].localName},getOffset:function(h){return this[h].offset},getQName:function(h){return this[h].qName},getURI:function(h){return this[h].uri},getValue:function(h){return this[h].value}};function nt(h,v){return h.__proto__=v,h}nt({},nt.prototype)instanceof nt||(nt=function(h,v){function N(){}N.prototype=v,N=new N;for(v in h)N[v]=h[v];return N});function Dt(h,v){var N,D=[],T=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(T.lastIndex=v,T.exec(h);N=T.exec(h);)if(D.push(N),N[1])return D}return d}),ace.define("ace/mode/xml/dom",[],function(m,b,H){function E(t,e){for(var s in t)e[s]=t[s]}function g(t,e){var s=function(){},f=t.prototype;if(Object.create){var y=Object.create(e.prototype);f.__proto__=y}f instanceof e||(s.prototype=e.prototype,s=new s,E(f,s),t.prototype=f=s),f.constructor!=t&&(typeof t!="function"&&console.error("unknown Class:"+t),f.constructor=t)}var a="http://www.w3.org/1999/xhtml",n={},r=n.ELEMENT_NODE=1,u=n.ATTRIBUTE_NODE=2,o=n.TEXT_NODE=3,i=n.CDATA_SECTION_NODE=4,c=n.ENTITY_REFERENCE_NODE=5,l=n.ENTITY_NODE=6,p=n.PROCESSING_INSTRUCTION_NODE=7,d=n.COMMENT_NODE=8,_=n.DOCUMENT_NODE=9,O=n.DOCUMENT_TYPE_NODE=10,L=n.DOCUMENT_FRAGMENT_NODE=11,$=n.NOTATION_NODE=12,I={},C={},B=I.INDEX_SIZE_ERR=(C[1]="Index size error",1),_t=I.DOMSTRING_SIZE_ERR=(C[2]="DOMString size error",2),wt=I.HIERARCHY_REQUEST_ERR=(C[3]="Hierarchy request error",3),pt=I.WRONG_DOCUMENT_ERR=(C[4]="Wrong document",4),nt=I.INVALID_CHARACTER_ERR=(C[5]="Invalid character",5),Dt=I.NO_DATA_ALLOWED_ERR=(C[6]="No data allowed",6),h=I.NO_MODIFICATION_ALLOWED_ERR=(C[7]="No modification allowed",7),v=I.NOT_FOUND_ERR=(C[8]="Not found",8),N=I.NOT_SUPPORTED_ERR=(C[9]="Not supported",9),D=I.INUSE_ATTRIBUTE_ERR=(C[10]="Attribute in use",10),T=I.INVALID_STATE_ERR=(C[11]="Invalid state",11),R=I.SYNTAX_ERR=(C[12]="Syntax error",12),w=I.INVALID_MODIFICATION_ERR=(C[13]="Invalid modification",13),S=I.NAMESPACE_ERR=(C[14]="Invalid namespace",14),A=I.INVALID_ACCESS_ERR=(C[15]="Invalid access",15);function P(t,e){if(e instanceof Error)var s=e;else s=this,Error.call(this,C[t]),this.message=C[t],Error.captureStackTrace&&Error.captureStackTrace(this,P);return s.code=t,e&&(this.message=this.message+": "+e),s}P.prototype=Error.prototype,E(I,P);function x(){}x.prototype={length:0,item:function(t){return this[t]||null}};function q(t,e){this._node=t,this._refresh=e,U(this)}function U(t){var e=t._node._inc||t._node.ownerDocument._inc;if(t._inc!=e){var s=t._refresh(t._node);At(t,"length",s.length),E(s,t),t._inc=e}}q.prototype.item=function(t){return U(this),this[t]},g(q,x);function z(){}function K(t,e){for(var s=t.length;s--;)if(t[s]===e)return s}function G(t,e,s,f){if(f?e[K(e,f)]=s:e[e.length++]=s,t){s.ownerElement=t;var y=t.ownerDocument;y&&(f&&at(y,t,f),st(y,t,s))}}function F(t,e,s){var f=K(e,s);if(f>=0){for(var y=e.length-1;f<y;)e[f]=e[++f];if(e.length=y,t){var k=t.ownerDocument;k&&(at(k,t,s),s.ownerElement=null)}}else throw new P(v,new Error)}z.prototype={length:0,item:x.prototype.item,getNamedItem:function(t){for(var e=this.length;e--;){var s=this[e];if(s.nodeName==t)return s}},setNamedItem:function(t){var e=t.ownerElement;if(e&&e!=this._ownerElement)throw new P(D);var s=this.getNamedItem(t.nodeName);return G(this._ownerElement,this,t,s),s},setNamedItemNS:function(t){var e=t.ownerElement,s;if(e&&e!=this._ownerElement)throw new P(D);return s=this.getNamedItemNS(t.namespaceURI,t.localName),G(this._ownerElement,this,t,s),s},removeNamedItem:function(t){var e=this.getNamedItem(t);return F(this._ownerElement,this,e),e},removeNamedItemNS:function(t,e){var s=this.getNamedItemNS(t,e);return F(this._ownerElement,this,s),s},getNamedItemNS:function(t,e){for(var s=this.length;s--;){var f=this[s];if(f.localName==e&&f.namespaceURI==t)return f}return null}};function rt(t){if(this._features={},t)for(var e in t)this._features=t[e]}rt.prototype={hasFeature:function(t,e){var s=this._features[t.toLowerCase()];return!!(s&&(!e||e in s))},createDocument:function(t,e,s){var f=new X;if(f.implementation=this,f.childNodes=new x,f.doctype=s,s&&f.appendChild(s),e){var y=f.createElementNS(t,e);f.appendChild(y)}return f},createDocumentType:function(t,e,s){var f=new dt;return f.name=t,f.nodeName=t,f.publicId=e,f.systemId=s,f}};function V(){}V.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(t,e){return ut(this,t,e)},replaceChild:function(t,e){this.insertBefore(t,e),e&&this.removeChild(e)},removeChild:function(t){return it(this,t)},appendChild:function(t){return this.insertBefore(t,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(t){return Nt(this.ownerDocument||this,this,t)},normalize:function(){for(var t=this.firstChild;t;){var e=t.nextSibling;e&&e.nodeType==o&&t.nodeType==o?(this.removeChild(e),t.appendData(e.data)):(t.normalize(),t=e)}},isSupported:function(t,e){return this.ownerDocument.implementation.hasFeature(t,e)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(t){for(var e=this;e;){var s=e._nsMap;if(s){for(var f in s)if(s[f]==t)return f}e=e.nodeType==2?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(t){for(var e=this;e;){var s=e._nsMap;if(s&&t in s)return s[t];e=e.nodeType==2?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(t){var e=this.lookupPrefix(t);return e==null}};function Y(t){return t=="<"&&"&lt;"||t==">"&&"&gt;"||t=="&"&&"&amp;"||t=='"'&&"&quot;"||"&#"+t.charCodeAt()+";"}E(n,V),E(n,V.prototype);function Z(t,e){if(e(t))return!0;if(t=t.firstChild)do if(Z(t,e))return!0;while(t=t.nextSibling)}function X(){}function st(t,e,s){t&&t._inc++;var f=s.namespaceURI;f=="http://www.w3.org/2000/xmlns/"&&(e._nsMap[s.prefix?s.localName:""]=s.value)}function at(t,e,s,f){t&&t._inc++;var y=s.namespaceURI;y=="http://www.w3.org/2000/xmlns/"&&delete e._nsMap[s.prefix?s.localName:""]}function W(t,e,s){if(t&&t._inc){t._inc++;var f=e.childNodes;if(s)f[f.length++]=s;else{for(var y=e.firstChild,k=0;y;)f[k++]=y,y=y.nextSibling;f.length=k}}}function it(t,e){var s=e.previousSibling,f=e.nextSibling;return s?s.nextSibling=f:t.firstChild=f,f?f.previousSibling=s:t.lastChild=s,W(t.ownerDocument,t),e}function ut(t,e,s){var f=e.parentNode;if(f&&f.removeChild(e),e.nodeType===L){var y=e.firstChild;if(y==null)return e;var k=e.lastChild}else y=k=e;var J=s?s.previousSibling:t.lastChild;y.previousSibling=J,k.nextSibling=s,J?J.nextSibling=y:t.firstChild=y,s==null?t.lastChild=k:s.previousSibling=k;do y.parentNode=t;while(y!==k&&(y=y.nextSibling));return W(t.ownerDocument||t,t),e.nodeType==L&&(e.firstChild=e.lastChild=null),e}function ct(t,e){var s=e.parentNode;if(s){var f=t.lastChild;s.removeChild(e);var f=t.lastChild}var f=t.lastChild;return e.parentNode=t,e.previousSibling=f,e.nextSibling=null,f?f.nextSibling=e:t.firstChild=e,t.lastChild=e,W(t.ownerDocument,t,e),e}X.prototype={nodeName:"#document",nodeType:_,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(t.nodeType==L){for(var s=t.firstChild;s;){var f=s.nextSibling;this.insertBefore(s,e),s=f}return t}return this.documentElement==null&&t.nodeType==1&&(this.documentElement=t),ut(this,t,e),t.ownerDocument=this,t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),it(this,t)},importNode:function(t,e){return Rt(this,t,e)},getElementById:function(t){var e=null;return Z(this.documentElement,function(s){if(s.nodeType==1&&s.getAttribute("id")==t)return e=s,!0}),e},createElement:function(t){var e=new M;e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.childNodes=new x;var s=e.attributes=new z;return s._ownerElement=e,e},createDocumentFragment:function(){var t=new lt;return t.ownerDocument=this,t.childNodes=new x,t},createTextNode:function(t){var e=new mt;return e.ownerDocument=this,e.appendData(t),e},createComment:function(t){var e=new vt;return e.ownerDocument=this,e.appendData(t),e},createCDATASection:function(t){var e=new gt;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var s=new Et;return s.ownerDocument=this,s.tagName=s.target=t,s.nodeValue=s.data=e,s},createAttribute:function(t){var e=new j;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){var e=new yt;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var s=new M,f=e.split(":"),y=s.attributes=new z;return s.childNodes=new x,s.ownerDocument=this,s.nodeName=e,s.tagName=e,s.namespaceURI=t,f.length==2?(s.prefix=f[0],s.localName=f[1]):s.localName=e,y._ownerElement=s,s},createAttributeNS:function(t,e){var s=new j,f=e.split(":");return s.ownerDocument=this,s.nodeName=e,s.name=e,s.namespaceURI=t,s.specified=!0,f.length==2?(s.prefix=f[0],s.localName=f[1]):s.localName=e,s}},g(X,V);function M(){this._nsMap={}}M.prototype={nodeType:r,hasAttribute:function(t){return this.getAttributeNode(t)!=null},getAttribute:function(t){var e=this.getAttributeNode(t);return e&&e.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,e){var s=this.ownerDocument.createAttribute(t);s.value=s.nodeValue=""+e,this.setAttributeNode(s)},removeAttribute:function(t){var e=this.getAttributeNode(t);e&&this.removeAttributeNode(e)},appendChild:function(t){return t.nodeType===L?this.insertBefore(t,null):ct(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){var s=this.getAttributeNodeNS(t,e);s&&this.removeAttributeNode(s)},hasAttributeNS:function(t,e){return this.getAttributeNodeNS(t,e)!=null},getAttributeNS:function(t,e){var s=this.getAttributeNodeNS(t,e);return s&&s.value||""},setAttributeNS:function(t,e,s){var f=this.ownerDocument.createAttributeNS(t,e);f.value=f.nodeValue=""+s,this.setAttributeNode(f)},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByTagName:function(t){return new q(this,function(e){var s=[];return Z(e,function(f){f!==e&&f.nodeType==r&&(t==="*"||f.tagName==t)&&s.push(f)}),s})},getElementsByTagNameNS:function(t,e){return new q(this,function(s){var f=[];return Z(s,function(y){y!==s&&y.nodeType===r&&(t==="*"||y.namespaceURI===t)&&(e==="*"||y.localName==e)&&f.push(y)}),f})}},X.prototype.getElementsByTagName=M.prototype.getElementsByTagName,X.prototype.getElementsByTagNameNS=M.prototype.getElementsByTagNameNS,g(M,V);function j(){}j.prototype.nodeType=u,g(j,V);function tt(){}tt.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},appendChild:function(t){throw new Error(C[3])},deleteData:function(t,e){this.replaceData(t,e,"")},replaceData:function(t,e,s){var f=this.data.substring(0,t),y=this.data.substring(t+e);s=f+s+y,this.nodeValue=this.data=s,this.length=s.length}},g(tt,V);function mt(){}mt.prototype={nodeName:"#text",nodeType:o,splitText:function(t){var e=this.data,s=e.substring(t);e=e.substring(0,t),this.data=this.nodeValue=e,this.length=e.length;var f=this.ownerDocument.createTextNode(s);return this.parentNode&&this.parentNode.insertBefore(f,this.nextSibling),f}},g(mt,tt);function vt(){}vt.prototype={nodeName:"#comment",nodeType:d},g(vt,tt);function gt(){}gt.prototype={nodeName:"#cdata-section",nodeType:i},g(gt,tt);function dt(){}dt.prototype.nodeType=O,g(dt,V);function Tt(){}Tt.prototype.nodeType=$,g(Tt,V);function bt(){}bt.prototype.nodeType=l,g(bt,V);function yt(){}yt.prototype.nodeType=c,g(yt,V);function lt(){}lt.prototype.nodeName="#document-fragment",lt.prototype.nodeType=L,g(lt,V);function Et(){}Et.prototype.nodeType=p,g(Et,V);function St(){}St.prototype.serializeToString=function(t){var e=[];return ft(t,e),e.join("")},V.prototype.toString=function(){return St.prototype.serializeToString(this)};function ft(t,e){switch(t.nodeType){case r:var s=t.attributes,f=s.length,y=t.firstChild,k=t.tagName,J=a===t.namespaceURI;e.push("<",k);for(var ot=0;ot<f;ot++)ft(s.item(ot),e);if(y||J&&!/^(?:meta|link|img|br|hr|input|button)$/i.test(k)){if(e.push(">"),J&&/^script$/i.test(k))y&&e.push(y.data);else for(;y;)ft(y,e),y=y.nextSibling;e.push("</",k,">")}else e.push("/>");return;case _:case L:for(var y=t.firstChild;y;)ft(y,e),y=y.nextSibling;return;case u:return e.push(" ",t.name,'="',t.value.replace(/[<&"]/g,Y),'"');case o:return e.push(t.data.replace(/[<&]/g,Y));case i:return e.push("<![CDATA[",t.data,"]]>");case d:return e.push("<!--",t.data,"-->");case O:var ht=t.publicId,Q=t.systemId;if(e.push("<!DOCTYPE ",t.name),ht)e.push(' PUBLIC "',ht),Q&&Q!="."&&e.push('" "',Q),e.push('">');else if(Q&&Q!=".")e.push(' SYSTEM "',Q,'">');else{var et=t.internalSubset;et&&e.push(" [",et,"]"),e.push(">")}return;case p:return e.push("<?",t.target," ",t.data,"?>");case c:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function Rt(t,e,s){var f;switch(e.nodeType){case r:f=e.cloneNode(!1),f.ownerDocument=t;case L:break;case u:s=!0;break}if(f||(f=e.cloneNode(!1)),f.ownerDocument=t,f.parentNode=null,s)for(var y=e.firstChild;y;)f.appendChild(Rt(t,y,s)),y=y.nextSibling;return f}function Nt(t,e,s){var f=new e.constructor;for(var y in e){var k=e[y];typeof k!="object"&&k!=f[y]&&(f[y]=k)}switch(e.childNodes&&(f.childNodes=new x),f.ownerDocument=t,f.nodeType){case r:var J=e.attributes,ot=f.attributes=new z,ht=J.length;ot._ownerElement=f;for(var Q=0;Q<ht;Q++)f.setAttributeNode(Nt(t,J.item(Q),!0));break;case u:s=!0}if(s)for(var et=e.firstChild;et;)f.appendChild(Nt(t,et,s)),et=et.nextSibling;return f}function At(t,e,s){t[e]=s}function It(t){switch(t.nodeType){case 1:case 11:var e=[];for(t=t.firstChild;t;)t.nodeType!==7&&t.nodeType!==8&&e.push(It(t)),t=t.nextSibling;return e.join("");default:return t.nodeValue}}try{Object.defineProperty&&(Object.defineProperty(q.prototype,"length",{get:function(){return U(this),this.$$length}}),Object.defineProperty(V.prototype,"textContent",{get:function(){return It(this)},set:function(t){switch(this.nodeType){case 1:case 11:for(;this.firstChild;)this.removeChild(this.firstChild);(t||String(t))&&this.appendChild(this.ownerDocument.createTextNode(t));break;default:this.data=t,this.value=value,this.nodeValue=t}}}),At=function(t,e,s){t["$$"+e]=s})}catch(t){}return rt}),ace.define("ace/mode/xml/dom-parser",[],function(m,b,H){"use strict";var E=m("./sax"),g=m("./dom");function a(l){this.options=l||{locator:{}}}a.prototype.parseFromString=function(l,p){var d=this.options,_=new E,O=d.domBuilder||new r,L=d.errorHandler,$=d.locator,I=d.xmlns||{},C={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};return $&&O.setDocumentLocator($),_.errorHandler=n(L,O,$),_.domBuilder=d.domBuilder||O,/\/x?html?$/.test(p)&&(C.nbsp="\xA0",C.copy="\xA9",I[""]="http://www.w3.org/1999/xhtml"),l?_.parse(l,I,C):_.errorHandler.error("invalid document source"),O.document};function n(l,p,d){if(!l){if(p instanceof r)return p;l=p}var _={},O=l instanceof Function;d=d||{};function L($){var I=l[$];if(!I)if(O)I=l.length==2?function(B){l($,B)}:l;else for(var C=arguments.length;--C&&!(I=l[arguments[C]]););_[$]=I&&function(B){I(B+o(d),B,d)}||function(){}}return L("warning","warn"),L("error","warn","warning"),L("fatalError","warn","warning","error"),_}function r(){this.cdata=!1}function u(l,p){p.lineNumber=l.lineNumber,p.columnNumber=l.columnNumber}r.prototype={startDocument:function(){this.document=new g().createDocument(null,null,null),this.locator&&(this.document.documentURI=this.locator.systemId)},startElement:function(l,p,d,_){var O=this.document,L=O.createElementNS(l,d||p),$=_.length;c(this,L),this.currentElement=L,this.locator&&u(this.locator,L);for(var I=0;I<$;I++){var l=_.getURI(I),C=_.getValue(I),d=_.getQName(I),B=O.createAttributeNS(l,d);B.getOffset&&u(B.getOffset(1),B),B.value=B.nodeValue=C,L.setAttributeNode(B)}},endElement:function(l,p,d){var _=this.currentElement,O=_.tagName;this.currentElement=_.parentNode},startPrefixMapping:function(l,p){},endPrefixMapping:function(l){},processingInstruction:function(l,p){var d=this.document.createProcessingInstruction(l,p);this.locator&&u(this.locator,d),c(this,d)},ignorableWhitespace:function(l,p,d){},characters:function(l,p,d){if(l=i.apply(this,arguments),this.currentElement&&l){if(this.cdata){var _=this.document.createCDATASection(l);this.currentElement.appendChild(_)}else{var _=this.document.createTextNode(l);this.currentElement.appendChild(_)}this.locator&&u(this.locator,_)}},skippedEntity:function(l){},endDocument:function(){this.document.normalize()},setDocumentLocator:function(l){(this.locator=l)&&(l.lineNumber=0)},comment:function(l,p,d){l=i.apply(this,arguments);var _=this.document.createComment(l);this.locator&&u(this.locator,_),c(this,_)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(l,p,d){var _=this.document.implementation;if(_&&_.createDocumentType){var O=_.createDocumentType(l,p,d);this.locator&&u(this.locator,O),c(this,O)}},warning:function(l){console.warn(l,o(this.locator))},error:function(l){console.error(l,o(this.locator))},fatalError:function(l){throw console.error(l,o(this.locator)),l}};function o(l){if(l)return`
@`+(l.systemId||"")+"#[line:"+l.lineNumber+",col:"+l.columnNumber+"]"}function i(l,p,d){return typeof l=="string"?l.substr(p,d):l.length>=p+d||p?new java.lang.String(l,p,d)+"":l}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(l){r.prototype[l]=function(){return null}});function c(l,p){l.currentElement?l.currentElement.appendChild(p):l.document.appendChild(p)}return{DOMParser:a}}),ace.define("ace/mode/xml_worker",[],function(m,b,H){"use strict";var E=m("../lib/oop"),g=m("../lib/lang"),a=m("../worker/mirror").Mirror,n=m("./xml/dom-parser").DOMParser,r=b.Worker=function(u){a.call(this,u),this.setTimeout(400),this.context=null};E.inherits(r,a),function(){this.setOptions=function(u){this.context=u.context},this.onUpdate=function(){var u=this.doc.getValue();if(!!u){var o=new n,i=[];o.options.errorHandler={fatalError:function(c,l,p){i.push({row:p.lineNumber,column:p.columnNumber,text:l,type:"error"})},error:function(c,l,p){i.push({row:p.lineNumber,column:p.columnNumber,text:l,type:"error"})},warning:function(c,l,p){i.push({row:p.lineNumber,column:p.columnNumber,text:l,type:"warning"})}},o.parseFromString(u),this.sender.emit("error",i)}}}.call(r.prototype)})}}]);