12 lines
24 KiB
JavaScript
12 lines
24 KiB
JavaScript
|
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[55250],{55250:function(){(function(u){if(typeof u.window!="undefined"&&u.document||u.require&&u.define)return;u.console||(u.console=function(){var a=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:a})},u.console.error=u.console.warn=u.console.log=u.console.trace=u.console),u.window=u,u.ace=u,u.onerror=function(a,s,t,e,r){postMessage({type:"error",data:{message:a,data:r&&r.data,file:s,line:t,col:e,stack:r&&r.stack}})},u.normalizeModule=function(a,s){if(s.indexOf("!")!==-1){var t=s.split("!");return u.normalizeModule(a,t[0])+"!"+u.normalizeModule(a,t[1])}if(s.charAt(0)=="."){var e=a.split("/").slice(0,-1).join("/");for(s=(e?e+"/":"")+s;s.indexOf(".")!==-1&&r!=s;){var r=s;s=s.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return s},u.require=function(s,t){if(t||(t=s,s=null),!t.charAt)throw new Error("worker.js require() accepts only (parentId, id) as arguments");t=u.normalizeModule(s,t);var e=u.require.modules[t];if(e)return e.initialized||(e.initialized=!0,e.exports=e.factory().exports),e.exports;if(!u.require.tlns)return console.log("unable to load "+t);var r=f(t,u.require.tlns);return r.slice(-3)!=".js"&&(r+=".js"),u.require.id=t,u.require.modules[t]={},importScripts(r),u.require(s,t)};function f(a,s){for(var t=a,e="";t;){var r=s[t];if(typeof r=="string")return r+e;if(r)return r.location.replace(/\/*$/,"/")+(e||r.main||r.name);if(r===!1)return"";var i=t.lastIndexOf("/");if(i===-1)break;e=t.substr(i)+e,t=t.slice(0,i)}return a}u.require.modules={},u.require.tlns={},u.define=function(a,s,t){if(arguments.length==2?(t=s,typeof a!="string"&&(s=a,a=u.require.id)):arguments.length==1&&(t=a,s=[],a=u.require.id),typeof t!="function"){u.require.modules[a]={exports:t,initialized:!0};return}s.length||(s=["require","exports","module"]);var e=function(r){return u.require(a,r)};u.require.modules[a]={exports:{},factory:function(){var r=this,i=t.apply(this,s.slice(0,t.length).map(function(n){switch(n){case"require":return e;case"exports":return r.exports;case"module":return r;default:return e(n)}}));return i&&(r.exports=i),r}}},u.define.amd={},u.require.tlns={},u.initBaseUrls=function(s){for(var t in s)this.require.tlns[t]=s[t]},u.initSender=function(){var s=u.require("ace/lib/event_emitter").EventEmitter,t=u.require("ace/lib/oop"),e=function(){};return function(){t.implement(this,s),this.callback=function(r,i){postMessage({type:"call",id:i,data:r})},this.emit=function(r,i){postMessage({type:"event",name:r,data:i})}}.call(e.prototype),new e};var y=u.main=null,l=u.sender=null;u.onmessage=function(a){var s=a.data;if(s.event&&l)l._signal(s.event,s.data);else if(s.command)if(y[s.command])y[s.command].apply(y,s.args);else if(u[s.command])u[s.command].apply(u,s.args);else throw new Error("Unknown command:"+s.command);else if(s.init){u.initBaseUrls(s.tlns),l=u.sender=u.initSender();var t=this.require(s.module)[s.classname];y=u.main=new t(l)}}})(this),ace.define("ace/lib/oop",[],function(u,f,y){"use strict";f.inherits=function(l,a){l.super_=a,l.prototype=Object.create(a.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}})},f.mixin=function(l,a){for(var s in a)l[s]=a[s];return l},f.implement=function(l,a){f.mixin(l,a)}}),ace.define("ace/apply_delta",[],function(u,f,y){"use strict";function l(t,e){throw console.log("Invalid Delta:",t),"Invalid Delta: "+e}function a(t,e){return e.row>=0&&e.row<t.length&&e.column>=0&&e.column<=t[e.row].length}function s(t,e){e.action!="insert"&&e.action!="remove"&&l(e,"delta.action must be 'insert' or 'remove'"),e.lines instanceof Array||l(e,"delta.lines must be an Array"),(!e.start||!e.end)&&l(e,"delta.start/end must be an present");var r=e.start;a(t,e.start)||l(e,"delta.start must be contained in document");var i=e.end;e.action=="remove"&&!a(t,i)&&l(e,"delta.end must contained in document for 'remove' actions");var n=i.row-r.row,o=i.column-(n==0?r.column:0);(n!=e.lines.length-1||e.lines[n].length!=o)&&l(e,"delta.range must match delta lines")}f.applyDelta=function(t,e,r
|
||
|
`,this._signal("changeNewLineMode")},i.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
|
||
|
`;case"unix":return`
|
||
|
`;default:return this.$autoNewLine||`
|
||
|
`}},i.prototype.setNewLineMode=function(n){this.$newLineMode!==n&&(this.$newLineMode=n,this._signal("changeNewLineMode"))},i.prototype.getNewLineMode=function(){return this.$newLineMode},i.prototype.isNewLine=function(n){return n==`\r
|
||
|
`||n=="\r"||n==`
|
||
|
`},i.prototype.getLine=function(n){return this.$lines[n]||""},i.prototype.getLines=function(n,o){return this.$lines.slice(n,o+1)},i.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},i.prototype.getLength=function(){return this.$lines.length},i.prototype.getTextRange=function(n){return this.getLinesForRange(n).join(this.getNewLineCharacter())},i.prototype.getLinesForRange=function(n){var o;if(n.start.row===n.end.row)o=[this.getLine(n.start.row).substring(n.start.column,n.end.column)];else{o=this.getLines(n.start.row,n.end.row),o[0]=(o[0]||"").substring(n.start.column);var c=o.length-1;n.end.row-n.start.row==c&&(o[c]=o[c].substring(0,n.end.column))}return o},i.prototype.insertLines=function(n,o){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(n,o)},i.prototype.removeLines=function(n,o){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(n,o)},i.prototype.insertNewLine=function(n){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(n,["",""])},i.prototype.insert=function(n,o){return this.getLength()<=1&&this.$detectNewLine(o),this.insertMergedLines(n,this.$split(o))},i.prototype.insertInLine=function(n,o){var c=this.clippedPos(n.row,n.column),h=this.pos(n.row,n.column+o.length);return this.applyDelta({start:c,end:h,action:"insert",lines:[o]},!0),this.clonePos(h)},i.prototype.clippedPos=function(n,o){var c=this.getLength();n===void 0?n=c:n<0?n=0:n>=c&&(n=c-1,o=void 0);var h=this.getLine(n);return o==null&&(o=h.length),o=Math.min(Math.max(o,0),h.length),{row:n,column:o}},i.prototype.clonePos=function(n){return{row:n.row,column:n.column}},i.prototype.pos=function(n,o){return{row:n,column:o}},i.prototype.$clipPosition=function(n){var o=this.getLength();return n.row>=o?(n.row=Math.max(0,o-1),n.column=this.getLine(o-1).length):(n.row=Math.max(0,n.row),n.column=Math.min(Math.max(n.column,0),this.getLine(n.row).length)),n},i.prototype.insertFullLines=function(n,o){n=Math.min(Math.max(n,0),this.getLength());var c=0;n<this.getLength()?(o=o.concat([""]),c=0):(o=[""].concat(o),n--,c=this.$lines[n].length),this.insertMergedLines({row:n,column:c},o)},i.prototype.insertMergedLines=function(n,o){var c=this.clippedPos(n.row,n.column),h={row:c.row+o.length-1,column:(o.length==1?c.column:0)+o[o.length-1].length};return this.applyDelta({start:c,end:h,action:"insert",lines:o}),this.clonePos(h)},i.prototype.remove=function(n){var o=this.clippedPos(n.start.row,n.start.column),c=this.clippedPos(n.end.row,n.end.column);return this.applyDelta({start:o,end:c,action:"remove",lines:this.getLinesForRange({start:o,end:c})}),this.clonePos(o)},i.prototype.removeInLine=function(n,o,c){var h=this.clippedPos(n,o),m=this.clippedPos(n,c);return this.applyDelta({start:h,end:m,action:"remove",lines:this.getLinesForRange({start:h,end:m})},!0),this.clonePos(h)},i.prototype.removeFullLines=function(n,o){n=Math.min(Math.max(0,n),this.getLength()-1),o=Math.min(Math.max(0,o),this.getLength()-1);var c=o==this.getLength()-1&&n>0,h=o<this.getLength()-1,m=c?n-1:n,v=c?this.getLine(m).length:0,p=h?o+1:o,g=h?0:this.getLine(p).length,d=new t(m,v,p,g),L=this.$lines.slice(n,o+1);return this.applyDelta({start:d.start,end:d.end,action:"remove",lines:this.getLinesForRange(d)}),L},i.prototype.removeNewLine=function(n){n<this.getLength()-1&&n>=0&&this.applyDelta({start:this.pos(n,this.getLine(n).length),end:this.pos(n+1,0),action:"remove",lines:["",""]})},i.prototype.replace=function(n,o){if(n instanceof t||(n=t.fromPoints(n.start,n.end)),o.length===0&&n.isEmpty())return n.start;if(o==this.getTextRange(n))return n.end;this.remove(n);var c;return o?c=this.insert(n.start,o):c=n.start,c},i.prototype.applyDeltas=function(n){for(var o=0;o<n.length;o++)this.applyDelta(n[o])},i.prototype.revertDeltas=function(n){for(var o=n.length-1;o>=0;o--)this.revertDelta(n[o])},i.prototype.applyDelta=function(n,o){var c=n.action=="insert"
|
||
|
`).split(`
|
||
|
`)}:function(i){return i.split(/\r\n|\r|\n/)},r.prototype.$autoNewLine="",r.prototype.$newLineMode="auto",l.implement(r.prototype,s),f.Document=r}),ace.define("ace/lib/lang",[],function(u,f,y){"use strict";f.last=function(s){return s[s.length-1]},f.stringReverse=function(s){return s.split("").reverse().join("")},f.stringRepeat=function(s,t){for(var e="";t>0;)t&1&&(e+=s),(t>>=1)&&(s+=s);return e};var l=/^\s\s*/,a=/\s\s*$/;f.stringTrimLeft=function(s){return s.replace(l,"")},f.stringTrimRight=function(s){return s.replace(a,"")},f.copyObject=function(s){var t={};for(var e in s)t[e]=s[e];return t},f.copyArray=function(s){for(var t=[],e=0,r=s.length;e<r;e++)s[e]&&typeof s[e]=="object"?t[e]=this.copyObject(s[e]):t[e]=s[e];return t},f.deepCopy=function s(t){if(typeof t!="object"||!t)return t;var e;if(Array.isArray(t)){e=[];for(var r=0;r<t.length;r++)e[r]=s(t[r]);return e}if(Object.prototype.toString.call(t)!=="[object Object]")return t;e={};for(var r in t)e[r]=s(t[r]);return e},f.arrayToMap=function(s){for(var t={},e=0;e<s.length;e++)t[s[e]]=1;return t},f.createMap=function(s){var t=Object.create(null);for(var e in s)t[e]=s[e];return t},f.arrayRemove=function(s,t){for(var e=0;e<=s.length;e++)t===s[e]&&s.splice(e,1)},f.escapeRegExp=function(s){return s.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},f.escapeHTML=function(s){return(""+s).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},f.getMatchOffsets=function(s,t){var e=[];return s.replace(t,function(r){e.push({offset:arguments[arguments.length-2],length:r.length})}),e},f.deferredCall=function(s){var t=null,e=function(){t=null,s()},r=function(i){return r.cancel(),t=setTimeout(e,i||0),r};return r.schedule=r,r.call=function(){return this.cancel(),s(),r},r.cancel=function(){return clearTimeout(t),t=null,r},r.isPending=function(){return t},r},f.delayedCall=function(s,t){var e=null,r=function(){e=null,s()},i=function(n){e==null&&(e=setTimeout(r,n||t))};return i.delay=function(n){e&&clearTimeout(e),e=setTimeout(r,n||t)},i.schedule=i,i.call=function(){this.cancel(),s()},i.cancel=function(){e&&clearTimeout(e),e=null},i.isPending=function(){return e},i}}),ace.define("ace/worker/mirror",[],function(u,f,y){"use strict";var l=u("../document").Document,a=u("../lib/lang"),s=f.Mirror=function(t){this.sender=t;var e=this.doc=new l(""),r=this.deferredUpdate=a.delayedCall(this.onUpdate.bind(this)),i=this;t.on("change",function(n){var o=n.data;if(o[0].start)e.applyDeltas(o);else for(var c=0;c<o.length;c+=2){var h,m;if(Array.isArray(o[c+1])?h={action:"insert",start:o[c],lines:o[c+1]}:h={action:"remove",start:o[c],end:o[c+1]},(h.action=="insert"?h.start:h.end).row>=e.$lines.length)throw m=new Error("Invalid delta"),m.data={path:i.$path,linesLength:e.$lines.length,start:h.start,end:h.end},m;e.applyDelta(h,!0)}if(i.$timeout)return r.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(s.prototype)}),ace.define("ace/mode/json/json_parse",[],function(u,f,y){"use strict";var l,a,s={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
||
|
`,r:"\r",t:" "},t,e=function(p){throw{name:"SyntaxError",message:p,at:l,text:t}},r=function(p){return p&&p!==a&&e("Expected '"+p+"' instead of '"+a+"'"),a=t.charAt(l),l+=1,a},i=function(){var p,g="";for(a==="-"&&(g="-",r("-"));a>="0"&&a<="9";)g+=a,r();if(a===".")for(g+=".";r()&&a>="0"&&a<="9";)g+=a;if(a==="e"||a==="E")for(g+=a,r(),(a==="-"||a==="+")&&(g+=a,r());a>="0"&&a<="9";)g+=a,r();if(p=+g,isNaN(p))e("Bad number");else return p},n=function(){var p,g,d="",L;if(a==='"')for(;r();){if(a==='"')return r(),d;if(a==="\\")if(r(),a==="u"){for(L=0,g=0;g<4&&(p=parseInt(r(),16),!!isFinite(p));g+=1)L=L*16+p;d+=String.fromCharCode(L)}else if(typeof s[a]=="string")d+=s[a];else break;else{if(a==`
|
||
|
`||a=="\r")break;d+=a}}e("Bad string")},o=function(){for(;a&&a<=" ";)r()},c=function(){switch(a){case"t":return r("t"),r("r"),r("u"),r("e"),!0;case"f":return r("f"),r("a"),r("l"),r("s"),r("e"),!1;case"n":return r("n"),r("u"),r("l"),r("l"),null}e("Unexpected '"+a+"'")},h,m=function(){var p=[];if(a==="["){if(r("["),o(),a==="]")return r("]"),p;for(;a;){if(p.push(h()),o(),a==="]")return r("]"),p;r(","),o()}}e("Bad array")},v=function(){var p,g={};if(a==="{"){if(r("{"),o(),a==="}")return r("}"),g;for(;a;){if(p=n(),o(),r(":"),Object.hasOwnProperty.call(g,p)&&e('Duplicate key "'+p+'"'),g[p]=h(),o(),a==="}")return r("}"),g;r(","),o()}}e("Bad object")};return h=function(){switch(o(),a){case"{":return v();case"[":return m();case'"':return n();case"-":return i();default:return a>="0"&&a<="9"?i():c()}},function(p,g){var d;return t=p,l=0,a=" ",d=h(),o(),a&&e("Syntax error"),typeof g=="function"?function L(b,$){var _,P,w=b[$];if(w&&typeof w=="object")for(_ in w)Object.hasOwnProperty.call(w,_)&&(P=L(w,_),P!==void 0?w[_]=P:delete w[_]);return g.call(b,$,w)}({"":d},""):d}}),ace.define("ace/mode/json_worker",[],function(u,f,y){"use strict";var l=u("../lib/oop"),a=u("../worker/mirror").Mirror,s=u("./json/json_parse"),t=f.JsonWorker=function(e){a.call(this,e),this.setTimeout(200)};l.inherits(t,a),function(){this.onUpdate=function(){var e=this.doc.getValue(),r=[];try{e&&s(e)}catch(n){var i=this.doc.indexToPosition(n.at-1);r.push({row:i.row,column:i.column,text:n.message,type:"error"})}this.sender.emit("annotate",r)}}.call(t.prototype)})}}]);
|