O&&a[p].end.row==k;)p--;for(a=a.slice(w,p+1),w=0,p=a.length;wl.getLength())){var W=l.getLine(E),g=W.search(p[0]);if(!(!o&&g=W.length)break;p.lastIndex=k+=1}if(E.index+O>b)break;B.push(E.index,O)}for(var u=B.length-1;0<=u;u-=2){var _=B[u-1];if(w(g,_,g,_+(O=B[u])))return!0}}:function(g,b,w){var E=l.getLine(g);for(p.lastIndex=b;W=p.exec(E);){var W,B=W[0].length;if(w(g,W=W.index,g,W+B))return!0;if(!B&&(p.lastIndex=W+=1,W>=E.length))return!1}},{forEach:o?function(g){var b=r.row;if(!c(b,r.column,g)){for(b--;e<=b;b--)if(c(b,Number.MAX_VALUE,g))return;if(n.wrap!=0){for(b=t,e=r.row;e<=b;b--)if(c(b,Number.MAX_VALUE,g))return}}}:function(g){var b=r.row;if(!c(b,r.column,g)){for(b+=1;b<=t;b++)if(c(b,0,g))return;if(n.wrap!=0){for(b=e,t=r.row;b<=t;b++)if(c(b,0,g))return}}}})},f.Search=h}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(r,f,R){var y,C=this&&this.__extends||(y=function(t,s){return(y=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(c,p){c.__proto__=p}:function(c,p){for(var g in p)Object.prototype.hasOwnProperty.call(p,g)&&(c[g]=p[g])}))(t,s)},function(t,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function c(){this.constructor=t}y(t,s),t.prototype=s===null?Object.create(s):(c.prototype=s.prototype,new c)}),d=r("../lib/keys"),h=r("../lib/useragent"),l=d.KEY_MODS,n=(o.prototype.$init=function(t,s,c){this.platform=s||(h.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(t),this.$singleCommand=c},o.prototype.addCommand=function(t){this.commands[t.name]&&this.removeCommand(t),(this.commands[t.name]=t).bindKey&&this._buildKeyHash(t)},o.prototype.removeCommand=function(t,s){var c,p=t&&(typeof t=="string"?t:t.name),g=(t=this.commands[p],s||delete this.commands[p],this.commandKeyBinding);for(c in g){var b,w=g[c];w==t?delete g[c]:Array.isArray(w)&&(b=w.indexOf(t))!=-1&&(w.splice(b,1),w.length==1)&&(g[c]=w[0])}},o.prototype.bindKey=function(t,s,c){if(typeof t=="object"&&t&&(c==null&&(c=t.position),t=t[this.platform]),t)return typeof s=="function"?this.addCommand({exec:s,bindKey:t,name:s.name||t}):void t.split("|").forEach(function(w){var g="",b=(w.indexOf(" ")!=-1&&(w=(b=w.split(/\s+/)).pop(),b.forEach(function(E){E=this.parseKeys(E),E=l[E.hashId]+E.key,g+=(g?" ":"")+E,this._addCommandToBinding(g,"chainKeys")},this),g+=" "),this.parseKeys(w)),w=l[b.hashId]+b.key;this._addCommandToBinding(g+w,s,c)},this)},o.prototype._addCommandToBinding=function(t,s,c){var p=this.commandKeyBinding;if(s)if(!p[t]||this.$singleCommand)p[t]=s;else{Array.isArray(p[t])?(b=p[t].indexOf(s))!=-1&&p[t].splice(b,1):p[t]=[p[t]],typeof c!="number"&&(c=i(s));for(var g=p[t],b=0;ba?a+1:a,n.selection.moveCursorTo(o.row,a))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:h(null,null),exec:function(n){var o=n.session.doc.getLength()-1,i=n.session.doc.getLine(o).length,a=n.selection.rangeList.ranges,r=[];a.length<1&&(a=[n.selection.getRange()]);for(var e=0;eo[h].column&&h++,n.unshift(h,0),o.splice.apply(o,n)),this.$updateRows())},C.prototype.$updateRows=function(){var d,h=this.session.lineWidgets;h&&(d=!0,h.forEach(function(l,n){if(l)for(d=!1,l.row=n;l.$oldWidget;)l.$oldWidget.row=n,l=l.$oldWidget}),d)&&(this.session.lineWidgets=null)},C.prototype.$registerLineWidget=function(d){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var h=this.session.lineWidgets[d.row];return h&&(d.$oldWidget=h).el&&h.el.parentNode&&(h.el.parentNode.removeChild(h.el),h._inDocument=!1),this.session.lineWidgets[d.row]=d},C.prototype.addLineWidget=function(d){var h,l,n;return this.$registerLineWidget(d),d.session=this.session,this.editor&&(h=this.editor.renderer,d.html&&!d.el&&(d.el=y.createElement("div"),d.el.innerHTML=d.html),d.text&&!d.el&&(d.el=y.createElement("div"),d.el.textContent=d.text),d.el&&(y.addCssClass(d.el,"ace_lineWidgetContainer"),d.className&&y.addCssClass(d.el,d.className),d.el.style.position="absolute",d.el.style.zIndex=5,h.container.appendChild(d.el),d._inDocument=!0,d.coverGutter||(d.el.style.zIndex=3),d.pixelHeight==null)&&(d.pixelHeight=d.el.offsetHeight),d.rowCount==null&&(d.rowCount=d.pixelHeight/h.layerConfig.lineHeight),l=this.session.getFoldAt(d.row,0),(d.$fold=l)&&(n=this.session.lineWidgets,d.row!=l.end.row||n[l.start.row]?d.hidden=!0:n[l.start.row]=d),this.session._emit("changeFold",{data:{start:{row:d.row}}}),this.$updateRows(),this.renderWidgets(null,h),this.onWidgetChanged(d)),d},C.prototype.removeLineWidget=function(d){if(d._inDocument=!1,d.session=null,d.el&&d.el.parentNode&&d.el.parentNode.removeChild(d.el),d.editor&&d.editor.destroy)try{d.editor.destroy()}catch{}if(this.session.lineWidgets){var h=this.session.lineWidgets[d.row];if(h==d)this.session.lineWidgets[d.row]=d.$oldWidget,d.$oldWidget&&this.onWidgetChanged(d.$oldWidget);else for(;h;){if(h.$oldWidget==d){h.$oldWidget=d.$oldWidget;break}h=h.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:d.row}}}),this.$updateRows()},C.prototype.getWidgetsAtRow=function(d){for(var h=this.session.lineWidgets,l=h&&h[d],n=[];l;)n.push(l),l=l.$oldWidget;return n},C.prototype.onWidgetChanged=function(d){this.session._changedWidgets.push(d),this.editor&&this.editor.renderer.updateFull()},C.prototype.measureWidgets=function(d,h){var l=this.session._changedWidgets,n=h.layerConfig;if(l&&l.length){for(var o=1/0,i=0;i=v.length?void 0:v)&&v[M++],done:!v}}};throw new TypeError($?"Object is not iterable.":"Symbol.iterator is not defined.")},C=k("./lib/oop"),d=k("./lib/dom"),h=k("./lib/lang"),l=k("./lib/useragent"),n=k("./keyboard/textinput").TextInput,o=k("./mouse/mouse_handler").MouseHandler,i=k("./mouse/fold_handler").FoldHandler,a=k("./keyboard/keybinding").KeyBinding,r=k("./edit_session").EditSession,e=k("./search").Search,t=k("./range").Range,s=k("./lib/event_emitter").EventEmitter,c=k("./commands/command_manager").CommandManager,p=k("./commands/default_commands").commands,g=k("./config"),b=k("./token_iterator").TokenIterator,w=k("./line_widgets").LineWidgets,E=k("./keyboard/gutter_handler").GutterKeyboardHandler,W=k("./config").nls,B=k("./clipboard"),O=k("./lib/keys"),k=(u.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=h.delayedCall(this.endOperation.bind(this,!0)),this.on("change",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}.bind(this),!0),this.on("changeSelection",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}.bind(this),!0)},u.prototype.startOperation=function(v){if(this.curOp){if(!v||this.curOp.command)return;this.prevOp=this.curOp}v||(this.previousCommand=null,v={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:v.command||{},args:v.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},u.prototype.endOperation=function(v){if(this.curOp&&this.session){if(v&&v.returnValue===!1||!this.session)return this.curOp=null;if((v!=1||!this.curOp.command||this.curOp.command.name!="mouse")&&(this._signal("beforeEndOperation"),this.curOp)){var v=this.curOp.command,$=v&&v.scrollIntoView;if($){switch($){case"center-animate":$="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var P=this.selection.getRange(),M=this.renderer.layerConfig;(P.start.row>=M.lastRow||P.end.row<=M.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}$=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}v=this.selection.toJSON(),this.curOp.selectionAfter=v,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(v),this.prevOp=this.curOp,this.curOp=null}}},u.prototype.$historyTracker=function(v){var $,P,M,X;this.$mergeUndoDeltas&&($=this.prevOp,P=this.$mergeableCommands,M=$.command&&v.command.name==$.command.name,v.command.name=="insertstring"?(X=v.args,this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),M=M&&this.mergeNextCommand&&(!/\s/.test(X)||/\s/.test($.args)),this.mergeNextCommand=!0):M=M&&P.indexOf(v.command.name)!==-1,(M=this.$mergeUndoDeltas!="always"&&2e3T.search(/\S|$/)&&(ne=T.substr(Q.column).search(/\S|$/),M.doc.removeInLine(Q.row,Q.column,Q.column+ne))),this.clearSelection(),Q.column),ne=M.getState(Q.row),T=M.getLine(Q.row),F=X.checkOutdent(ne,T,v);M.insert(Q,v),P&&P.selection&&(P.selection.length==2?this.selection.setSelectionRange(new t(Q.row,K+P.selection[0],Q.row,K+P.selection[1])):this.selection.setSelectionRange(new t(Q.row+P.selection[0],P.selection[1],Q.row+P.selection[2],P.selection[3]))),this.$enableAutoIndent&&(M.getDocument().isNewLine(v)&&(K=X.getNextLineIndent(ne,T.slice(0,Q.column),M.getTabString()),M.insert({row:Q.row+1,column:0},K)),F)&&X.autoOutdent(ne,M,Q.row)},u.prototype.autoIndent=function(){for(var v,$,P,M,X,Q=this.session,K=Q.getMode(),ne=(P=this.selection.isEmpty()?($=0,Q.doc.getLength()-1):($=(v=this.getSelectionRange()).start.row,v.end.row),""),T="",F=Q.getTabString(),V=$;V<=P;V++)0ne.toLowerCase()?1:0});for(var X=new t(0,0,0,0),M=v.first;M<=v.last;M++){var Q=$.getLine(M);X.start.row=M,X.end.row=M,X.end.column=Q.length,$.replace(X,P[M-v.first])}},u.prototype.toggleCommentLines=function(){var v=this.session.getState(this.getCursorPosition().row),$=this.$getSelectedRows();this.session.getMode().toggleCommentLines(v,this.session,$.first,$.last)},u.prototype.toggleBlockComment=function(){var v=this.getCursorPosition(),$=this.session.getState(v.row),P=this.getSelectionRange();this.session.getMode().toggleBlockComment($,this.session,P,v)},u.prototype.getNumberAt=function(v,$){for(var P=/[\-]?[0-9]+(?:\.[0-9]+)?/g,M=(P.lastIndex=0,this.session.getLine(v));P.lastIndex<$;){var X=P.exec(M);if(X.index<=$&&X.index+X[0].length>=$)return{value:X[0],start:X.index,end:X.index+X[0].length}}return null},u.prototype.modifyNumber=function(v){var $,P,M,X=this.selection.getCursor().row,Q=this.selection.getCursor().column,K=new t(X,Q-1,X,Q),K=this.session.getTextRange(K);!isNaN(parseFloat(K))&&isFinite(K)?(K=this.getNumberAt(X,Q))&&(M=0<=K.value.indexOf(".")?K.start+K.value.indexOf(".")+1:K.end,$=K.start+K.value.length-M,P=parseFloat(K.value),P*=Math.pow(10,$),M!==K.end&&QL+1)break;L=D.last}for(V--,ne=this.session.$moveLines(S,L,$?0:v),$&&v==-1&&(I=V+1);I<=V;)K[I].moveBy(ne,0),I++;T+=ne=$?ne:0}P.fromOrientedRange(P.ranges[0]),P.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},u.prototype.$getSelectedRows=function(v){return v=(v||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(v.start.row),last:this.session.getRowFoldEnd(v.end.row)}},u.prototype.onCompositionStart=function(v){this.renderer.showComposition(v)},u.prototype.onCompositionUpdate=function(v){this.renderer.setCompositionText(v)},u.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},u.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},u.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},u.prototype.isRowVisible=function(v){return v>=this.getFirstVisibleRow()&&v<=this.getLastVisibleRow()},u.prototype.isRowFullyVisible=function(v){return v>=this.renderer.getFirstFullyVisibleRow()&&v<=this.renderer.getLastFullyVisibleRow()},u.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},u.prototype.$moveByPage=function(Q,$){var P=this.renderer,M=this.renderer.layerConfig,X=Q*Math.floor(M.height/M.lineHeight),Q=($===!0?this.selection.$moveSelection(function(){this.moveCursorBy(X,0)}):$===!1&&(this.selection.moveCursorBy(X,0),this.selection.clearSelection()),P.scrollTop);P.scrollBy(0,X*M.lineHeight),$!=null&&P.scrollCursorIntoView(null,.5),P.animateScrolling(Q)},u.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},u.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},u.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},u.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},u.prototype.scrollPageDown=function(){this.$moveByPage(1)},u.prototype.scrollPageUp=function(){this.$moveByPage(-1)},u.prototype.scrollToRow=function(v){this.renderer.scrollToRow(v)},u.prototype.scrollToLine=function(v,$,P,M){this.renderer.scrollToLine(v,$,P,M)},u.prototype.centerSelection=function(){var v=this.getSelectionRange(),v={row:Math.floor(v.start.row+(v.end.row-v.start.row)/2),column:Math.floor(v.start.column+(v.end.column-v.start.column)/2)};this.renderer.alignCursor(v,.5)},u.prototype.getCursorPosition=function(){return this.selection.getCursor()},u.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},u.prototype.getSelectionRange=function(){return this.selection.getRange()},u.prototype.selectAll=function(){this.selection.selectAll()},u.prototype.clearSelection=function(){this.selection.clearSelection()},u.prototype.moveCursorTo=function(v,$){this.selection.moveCursorTo(v,$)},u.prototype.moveCursorToPosition=function(v){this.selection.moveCursorToPosition(v)},u.prototype.jumpToMatching=function(v,$){var P=this.getCursorPosition(),M=new b(this.session,P.row,P.column),X=M.getCurrentToken(),Q=0,K=(X=X&&X.type.indexOf("tag-name")!==-1?M.stepBackward():X)||M.stepForward();if(K){var ne,T,F=!1,V={},I=P.column-K.start,S={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do if(K.value.match(/[{}()\[\]]/g)){for(;Iwindow.innerHeight)&&null)!=null&&(X.style.top=V+"px",X.style.left=T.left+"px",X.style.height=F.lineHeight+"px",X.scrollIntoView(M)),M=$=null)}),this.setAutoScrollEditorIntoView=function(T){T||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",Q),this.renderer.off("afterRender",ne),this.renderer.off("beforeRender",K))})},u.prototype.$resetCursorStyle=function(){var v=this.$cursorStyle||"ace",$=this.renderer.$cursorLayer;$&&($.setSmoothBlinking(/smooth/.test(v)),$.isBlinking=!this.$readOnly&&v!="wide",d.setCssClass($.element,"ace_slim-cursors",/slim/.test(v)))},u.prototype.prompt=function(v,$,P){var M=this;g.loadModule("ace/ext/prompt",function(X){X.prompt(M,v,$,P)})},u);function u(v,$,P){this.$toDestroy=[];var M=v.getContainerElement();this.container=M,this.renderer=v,this.id="editor"+ ++u.$uid,this.commands=new c(l.isMac?"mac":"win",p),typeof document=="object"&&(this.textInput=new n(v.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new o(this),new i(this)),this.keyBinding=new a(this),this.$search=new e().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=h.delayedCall(function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",function(X,Q){Q._$emitInputEvent.schedule(31)}),this.setSession($||P&&P.session||new r("")),g.resetOptions(this),P&&this.setOptions(P),g._signal("editor",this)}k.$uid=0,k.prototype.curOp=null,k.prototype.prevOp={},k.prototype.$mergeableCommands=["backspace","del","insertstring"],k.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],C.implement(k.prototype,s),g.defineOptions(k.prototype,"editor",{selectionStyle:{set:function(v){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:v})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(v){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(v){this.textInput.setReadOnly(v),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(v){this.textInput.setCopyWithEmptySelection(v)},initialValue:!1},cursorStyle:{set:function(v){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(v){this.setAutoScrollEditorIntoView(v)}},keyboardHandler:{set:function(v){this.setKeyboardHandler(v)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(v){this.session.setValue(v)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(v){this.setSession(v)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(v){this.renderer.$gutterLayer.setShowLineNumbers(v),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),v&&this.$relativeLineNumbers?_.attach(this):_.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(v){this.$showLineNumbers&&v?_.attach(this):_.detach(this)}},placeholder:{set:function(v){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var $=this.session&&(this.renderer.$composition||1b+1;)this.$lines.pop();break}(g=this.$lines.get(++b))?g.row=w:(g=this.$lines.createCell(w,r,this.session,a),this.$lines.push(g)),this.$renderCell(g,r,c,w),w++}this._signal("afterRender"),this.$updateGutterWidth(r)},i.prototype.$updateGutterWidth=function(r){var e=this.session,c=e.gutterRenderer||this.$renderer,s=e.$firstLineNumber,t=this.$lines.last()?this.$lines.last().text:"",s=((this.$fixedWidth||e.$useWrapMode)&&(t=e.getLength()+s-1),c?c.getWidth(e,t,r):t.toString().length*r.characterWidth),c=this.$padding||this.$computePadding();(s+=c.left+c.right)===this.gutterWidth||isNaN(s)||(this.gutterWidth=s,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",s))},i.prototype.$updateCursorRow=function(){var r;this.$highlightGutterLine&&(r=this.session.selection.getCursor(),this.$cursorRow!==r.row)&&(this.$cursorRow=r.row)},i.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var r=this.session.selection.cursor.row;if(this.$cursorRow=r,!this.$cursorCell||this.$cursorCell.row!=r){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var e=this.$lines.cells;this.$cursorCell=null;for(var t=0;t=this.$cursorRow){if(s.row>this.$cursorRow){var c=this.session.getFoldLine(this.$cursorRow);if(!(0t.right-e.right?"foldWidgets":void 0},i);function i(r){this.element=y.createElement("div"),this.element.className="ace_layer ace_gutter-layer",r.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new l(this.element),this.$lines.$offsetCoefficient=1}function a(r){var e=document.createTextNode(""),e=(r.appendChild(e),y.createElement("span")),e=(r.appendChild(e),y.createElement("span")),t=(r.appendChild(e),y.createElement("span"));return e.appendChild(t),r}o.prototype.$fixedWidth=!1,o.prototype.$highlightGutterLine=!0,o.prototype.$renderer="",o.prototype.$showLineNumbers=!0,o.prototype.$showFoldWidgets=!0,C.implement(o.prototype,h),f.Gutter=o}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(d,f,R){var y=d("../range").Range,C=d("../lib/dom"),d=(h.prototype.setPadding=function(l){this.$padding=l},h.prototype.setSession=function(l){this.session=l},h.prototype.setMarkers=function(l){this.markers=l},h.prototype.elt=function(l,n){var o=this.i!=-1&&this.element.childNodes[this.i];o?this.i++:(o=document.createElement("div"),this.element.appendChild(o),this.i=-1),o.style.cssText=n,o.className=l},h.prototype.update=function(l){if(l){var n,o;for(o in this.config=l,this.i=0,this.markers){var i,a,r,e=this.markers[o];e.range?(r=e.range.clipRows(l.firstRow,l.lastRow)).isEmpty()||(r=r.toScreenRange(this.session),e.renderer?(i=this.$getTop(r.start.row,l),a=this.$padding+r.start.column*l.characterWidth,e.renderer(n,r,a,i,l)):e.type=="fullLine"?this.drawFullLineMarker(n,r,e.clazz,l):e.type=="screenLine"?this.drawScreenLineMarker(n,r,e.clazz,l):r.isMultiLine()?e.type=="text"?this.drawTextMarker(n,r,e.clazz,l):this.drawMultiLineMarker(n,r,e.clazz,l):this.drawSingleLineMarker(n,r,e.clazz+" ace_start ace_br15",l)):e.update(n,this,this.session,l)}if(this.i!=-1)for(;this.ir.lastRow)for(c=this.session.getFoldedRowCount(r.lastRow+1,e.lastRow);0e.lastRow&&this.$lines.push(this.$renderLinesFragment(r,e.lastRow+1,r.lastRow)),this.$highlightIndentGuide()},a.prototype.$renderLinesFragment=function(r,e,t){for(var s=[],c=e,p=this.session.getNextFoldLine(c),g=p?p.start.row:1/0;gc[p].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&r[e.row]!==""&&e.column===r[e.row].length)for(this.$highlightIndentGuideMarker.dir=1,p=e.row+1;p=this.$highlightIndentGuideMarker.start+1){if(s.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(s,e)}}else for(t=r.length-1;0<=t;t--)if(s=r[t],this.$highlightIndentGuideMarker.end&&s.row=p;)g=this.$renderToken(b,g,E,W.substring(0,p-s)),W=W.substring(p-s),s=p,b=this.$createLineElement(),r.appendChild(b),b.appendChild(this.dom.createTextNode(d.stringRepeat(" ",t.indent),this.element)),g=0,p=t[++c]||Number.MAX_VALUE;W.length!=0&&(s+=W.length,g=this.$renderToken(b,g,E,W))}}t[t.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(b,g,null,"",!0)},a.prototype.$renderSimpleLine=function(r,e){for(var t=0,s=0;sthis.MAX_LINE_LENGTH)return this.$renderOverflowMessage(r,t,c,p);t=this.$renderToken(r,t,c,p)}}},a.prototype.$renderOverflowMessage=function(r,e,t,s,c){t&&this.$renderToken(r,e,t,s.slice(0,this.MAX_LINE_LENGTH-e)),t=this.dom.createElement("span"),t.className="ace_inline_button ace_keyword ace_toggle_wrap",t.textContent=c?"":"",r.appendChild(t)},a.prototype.$renderLine=function(r,e,t){var s,c,p=r;(s=(t=t||t==0?t:this.session.getFoldLine(e))?this.$getFoldLineTokens(e,t):this.session.getTokens(e)).length?(c=this.session.getRowSplitData(e))&&c.length?(this.$renderWrappedLine(r,s,c),p=r.lastChild):(p=r,this.$useLineGroups()&&(p=this.$createLineElement(),r.appendChild(p)),this.$renderSimpleLine(p,s)):this.$useLineGroups()&&(p=this.$createLineElement(),r.appendChild(p)),this.showEOL&&p&&(t&&(e=t.end.row),(c=this.dom.createElement("span")).className="ace_invisible ace_invisible_eol",c.textContent=e==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,p.appendChild(c))},a.prototype.$getFoldLineTokens=function(r,e){var t=this.session,s=[],c=t.getTokens(r);return e.walk(function(p,g,b,w,E){if(p!=null)s.push({type:"fold",value:p});else if((c=E?t.getTokens(g):c).length){for(var W,B=c,O=w,k=b,u=0,_=0;_+B[u].value.lengthk-O&&(W=W.substring(0,k-O)),s.push({type:B[u].type,value:W}),_=O+W.length,u+=1);_k?s.push({type:B[u].type,value:W.substring(0,k-_)}):s.push(B[u]),_+=W.length,u+=1}},e.end.row,this.session.getLine(e.end.row).length),s},a.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},a);function a(r){this.dom=C,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",r.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new h(this.element)}i.prototype.EOF_CHAR="¶",i.prototype.EOL_CHAR_LF="¬",i.prototype.EOL_CHAR_CRLF="¤",i.prototype.EOL_CHAR=i.prototype.EOL_CHAR_LF,i.prototype.TAB_CHAR="—",i.prototype.SPACE_CHAR="·",i.prototype.$padding=0,i.prototype.MAX_LINE_LENGTH=1e4,i.prototype.showInvisibles=!1,i.prototype.showSpaces=!1,i.prototype.showTabs=!1,i.prototype.showEOL=!1,i.prototype.displayIndentGuides=!0,i.prototype.$highlightIndentGuides=!0,i.prototype.$tabStrings=[],i.prototype.destroy={},i.prototype.onChangeTabSize=i.prototype.$computeTabString,y.implement(i.prototype,l),f.Text=i}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(C,f,R){var y=C("../lib/dom"),C=(d.prototype.$updateOpacity=function(h){for(var l=this.cursors,n=l.length;n--;)y.setStyle(l[n].style,"opacity",h?"":"0")},d.prototype.$startCssAnimation=function(){for(var h=this.cursors,l=h.length;l--;)h[l].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout(function(){this.$isAnimating&&y.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},d.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,y.removeCssClass(this.element,"ace_animate-blinking")},d.prototype.setPadding=function(h){this.$padding=h},d.prototype.setSession=function(h){this.session=h},d.prototype.setBlinking=function(h){h!=this.isBlinking&&(this.isBlinking=h,this.restartTimer())},d.prototype.setBlinkInterval=function(h){h!=this.blinkInterval&&(this.blinkInterval=h,this.restartTimer())},d.prototype.setSmoothBlinking=function(h){h!=this.smoothBlinking&&(this.smoothBlinking=h,y.setCssClass(this.element,"ace_smooth-blinking",h),this.$updateCursors(!0),this.restartTimer())},d.prototype.addCursor=function(){var h=y.createElement("div");return h.className="ace_cursor",this.element.appendChild(h),this.cursors.push(h),h},d.prototype.removeCursor=function(){var h;if(1h.height+h.offset||e.top<0)&&1n;)this.removeCursor();var t=this.session.getOverwrite();this.$setOverwrite(t),this.$pixelPos=e,this.restartTimer()},d.prototype.$setOverwrite=function(h){h!=this.overwrite&&((this.overwrite=h)?y.addCssClass(this.element,"ace_overwrite-cursors"):y.removeCssClass(this.element,"ace_overwrite-cursors"))},d.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},d);function d(h){this.element=y.createElement("div"),this.element.className="ace_layer ace_cursor-layer",h.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),y.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}C.prototype.$padding=0,C.prototype.drawCursor=null,f.Cursor=C}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,f,R){var y,C=this&&this.__extends||(y=function(s,c){return(y=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(p,g){p.__proto__=g}:function(p,g){for(var b in g)Object.prototype.hasOwnProperty.call(g,b)&&(p[b]=g[b])}))(s,c)},function(s,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function p(){this.constructor=s}y(s,c),s.prototype=c===null?Object.create(c):(p.prototype=c.prototype,new p)}),i=e("./lib/oop"),d=e("./lib/dom"),h=e("./lib/event"),e=e("./lib/event_emitter").EventEmitter,l=(n.prototype.setVisible=function(s){this.element.style.display=s?"":"none",this.isVisible=s,this.coeff=1},n);function n(s,c){this.element=d.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+c,this.inner=d.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),s.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,h.addListener(this.element,"scroll",this.onScroll.bind(this)),h.addListener(this.element,"mousedown",h.preventDefault)}i.implement(l.prototype,e),C(a,o=l),a.prototype.onScroll=function(){var s;this.skipEvent||(this.scrollTop=this.element.scrollTop,this.coeff!=1&&(s=this.element.clientHeight/this.scrollHeight,this.scrollTop=this.scrollTop*(1-s)/(this.coeff-s)),this._emit("scroll",{data:this.scrollTop})),this.skipEvent=!1},a.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},a.prototype.setHeight=function(s){this.element.style.height=s+"px"},a.prototype.setScrollHeight=function(s){32768<(this.scrollHeight=s)?(this.coeff=32768/s,s=32768):this.coeff!=1&&(this.coeff=1),this.inner.style.height=s+"px"},a.prototype.setScrollTop=function(s){this.scrollTop!=s&&(this.skipEvent=!0,this.scrollTop=s,this.element.scrollTop=s*this.coeff)};var o,i=a;function a(s,c){var p=o.call(this,s,"-v")||this;return p.scrollTop=0,p.scrollHeight=0,c.$scrollbarWidth=p.width=d.scrollbarWidth(s.ownerDocument),p.inner.style.width=p.element.style.width=(p.width||15)+5+"px",p.$minWidth=0,p}i.prototype.setInnerHeight=i.prototype.setScrollHeight,C(t,r=l),t.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},t.prototype.getHeight=function(){return this.isVisible?this.height:0},t.prototype.setWidth=function(s){this.element.style.width=s+"px"},t.prototype.setInnerWidth=function(s){this.inner.style.width=s+"px"},t.prototype.setScrollWidth=function(s){this.inner.style.width=s+"px"},t.prototype.setScrollLeft=function(s){this.scrollLeft!=s&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=s)};var r,e=t;function t(s,c){return s=r.call(this,s,"-h")||this,s.scrollLeft=0,s.height=c.$scrollbarWidth,s.inner.style.height=s.element.style.height=(s.height||15)+5+"px",s}f.ScrollBar=i,f.ScrollBarV=i,f.ScrollBarH=e,f.VScrollBar=i,f.HScrollBar=e}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,f,R){var y,C=this&&this.__extends||(y=function(s,c){return(y=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(p,g){p.__proto__=g}:function(p,g){for(var b in g)Object.prototype.hasOwnProperty.call(g,b)&&(p[b]=g[b])}))(s,c)},function(s,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function p(){this.constructor=s}y(s,c),s.prototype=c===null?Object.create(c):(p.prototype=c.prototype,new p)}),i=e("./lib/oop"),d=e("./lib/dom"),h=e("./lib/event"),e=e("./lib/event_emitter").EventEmitter,l=(d.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
+ position: absolute;
+ background: rgba(128, 128, 128, 0.6);
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+ border: 1px solid #bbb;
+ border-radius: 2px;
+ z-index: 8;
+}
+.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
+ position: absolute;
+ z-index: 6;
+ background: none;
+ overflow: hidden!important;
+}
+.ace_editor>.ace_sb-v {
+ z-index: 6;
+ right: 0;
+ top: 0;
+ width: 12px;
+}
+.ace_editor>.ace_sb-v div {
+ z-index: 8;
+ right: 0;
+ width: 100%;
+}
+.ace_editor>.ace_sb-h {
+ bottom: 0;
+ left: 0;
+ height: 12px;
+}
+.ace_editor>.ace_sb-h div {
+ bottom: 0;
+ height: 100%;
+}
+.ace_editor>.ace_sb_grabbed {
+ z-index: 8;
+ background: #000;
+}`,"ace_scrollbar.css",!1),n.prototype.setVisible=function(s){this.element.style.display=s?"":"none",this.isVisible=s,this.coeff=1},n);function n(s,c){this.element=d.createElement("div"),this.element.className="ace_sb"+c,this.inner=d.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,s.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,h.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}i.implement(l.prototype,e),C(a,o=l),a.prototype.onMouseDown=function(s,c){var p,g,b,w,E;if(s==="mousedown"&&h.getButton(c)===0&&c.detail!==2)return c.target===this.inner?(p=this,g=c.clientY,b=c.clientY,w=this.thumbTop,h.capture(this.inner,function(W){g=W.clientY},function(){clearInterval(E)}),E=setInterval(function(){var W;g!==void 0&&(W=p.scrollTopFromThumbTop(w+g-b))!==p.scrollTop&&p._emit("scroll",{data:W})},20)):(s=c.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2,this._emit("scroll",{data:this.scrollTopFromThumbTop(s)})),h.preventDefault(c)},a.prototype.getHeight=function(){return this.height},a.prototype.scrollTopFromThumbTop=function(s){return s=s*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight),(s>>=0)<0?s=0:s>this.pageHeight-this.viewHeight&&(s=this.pageHeight-this.viewHeight),s},a.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},a.prototype.setHeight=function(s){this.height=Math.max(0,s),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},a.prototype.setScrollHeight=function(s,c){(this.pageHeight!==s||c)&&(this.pageHeight=s,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight)&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop}))},a.prototype.setScrollTop=function(s){this.scrollTop=s,this.thumbTop=(s=s<0?0:s)*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"};var o,i=a;function a(s,c){var p=o.call(this,s,"-v")||this;return p.scrollTop=0,p.scrollHeight=0,p.parent=s,p.width=p.VScrollWidth,p.renderer=c,p.inner.style.width=p.element.style.width=(p.width||15)+"px",p.$minWidth=0,p}i.prototype.setInnerHeight=i.prototype.setScrollHeight,C(t,r=l),t.prototype.onMouseDown=function(s,c){var p,g,b,w,E;if(s==="mousedown"&&h.getButton(c)===0&&c.detail!==2)return c.target===this.inner?(p=this,g=c.clientX,b=c.clientX,w=this.thumbLeft,h.capture(this.inner,function(W){g=W.clientX},function(){clearInterval(E)}),E=setInterval(function(){var W;g!==void 0&&(W=p.scrollLeftFromThumbLeft(w+g-b))!==p.scrollLeft&&p._emit("scroll",{data:W})},20)):(s=c.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2,this._emit("scroll",{data:this.scrollLeftFromThumbLeft(s)})),h.preventDefault(c)},t.prototype.getHeight=function(){return this.isVisible?this.height:0},t.prototype.scrollLeftFromThumbLeft=function(s){return s=s*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth),(s>>=0)<0?s=0:s>this.pageWidth-this.viewWidth&&(s=this.pageWidth-this.viewWidth),s},t.prototype.setWidth=function(s){this.width=Math.max(0,s),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},t.prototype.setScrollWidth=function(s,c){(this.pageWidth!==s||c)&&(this.pageWidth=s,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth)&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft}))},t.prototype.setScrollLeft=function(s){this.scrollLeft=s,this.thumbLeft=(s=s<0?0:s)*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"};var r,e=t;function t(s,c){return s=r.call(this,s,"-h")||this,s.scrollLeft=0,s.scrollWidth=0,s.height=s.HScrollHeight,s.inner.style.height=s.element.style.height=(s.height||12)+"px",s.renderer=c,s}e.prototype.setInnerWidth=e.prototype.setScrollWidth,f.ScrollBar=i,f.ScrollBarV=i,f.ScrollBarH=e,f.VScrollBar=i,f.HScrollBar=e}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(A,f,R){var y=A("./lib/event");function C(d,h){this.onRender=d,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=h||window;var l=this;this._flush=function(n){l.pending=!1;var o=l.changes;o&&(y.blockIdle(100),l.changes=0,l.onRender(o)),l.changes?l.$recursionLimit--<0||l.schedule():l.$recursionLimit=2}}C.prototype.schedule=function(d){this.changes=this.changes|d,this.changes&&!this.pending&&(y.nextFrame(this._flush),this.pending=!0)},C.prototype.clear=function(d){var h=this.changes;return this.changes=0,h},f.RenderLoop=C}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(n,f,R){var y=n("../lib/oop"),C=n("../lib/dom"),d=n("../lib/lang"),h=n("../lib/event"),l=n("../lib/useragent"),n=n("../lib/event_emitter").EventEmitter,o=typeof ResizeObserver=="function",i=(a.prototype.$setMeasureNodeStyles=function(r,e){r.width=r.height="auto",r.left=r.top="0px",r.visibility="hidden",r.position="absolute",r.whiteSpace="pre",l.isIE<8?r["font-family"]="inherit":r.font="inherit",r.overflow=e?"hidden":"visible"},a.prototype.checkForSizeChanges=function(r){var e;!(r=r===void 0?this.$measureSizes():r)||this.$characterSize.width===r.width&&this.$characterSize.height===r.height||(this.$measureNode.style.fontWeight="bold",e=this.$measureSizes(),this.$measureNode.style.fontWeight="",this.$characterSize=r,this.charSizes=Object.create(null),this.allowBoldFonts=e&&e.width===r.width&&e.height===r.height,this._emit("changeCharacterSize",{data:r}))},a.prototype.$addObserver=function(){var r=this;this.$observer=new window.ResizeObserver(function(e){r.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},a.prototype.$pollSizeChanges=function(){var r;return this.$pollSizeChangesTimer||this.$observer?this.$pollSizeChangesTimer:(r=this).$pollSizeChangesTimer=h.onIdle(function e(){r.checkForSizeChanges(),h.onIdle(e,500)},500)},a.prototype.setPolling=function(r){r?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},a.prototype.$measureSizes=function(r){return r={height:(r||this.$measureNode).clientHeight,width:(r||this.$measureNode).clientWidth/512},r.width===0||r.height===0?null:r},a.prototype.$measureCharWidth=function(r){return this.$main.textContent=d.stringRepeat(r,512),this.$main.getBoundingClientRect().width/512},a.prototype.getCharacterWidth=function(r){var e=this.charSizes[r];return e=e===void 0?this.charSizes[r]=this.$measureCharWidth(r)/this.$characterSize.width:e},a.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},a.prototype.$getZoom=function(r){return r&&r.parentElement?(window.getComputedStyle(r).zoom||1)*this.$getZoom(r.parentElement):1},a.prototype.$initTransformMeasureNodes=function(){function r(e,t){return["div",{style:"position: absolute;top:"+e+"px;left:"+t+"px;"}]}this.els=C.buildDom([r(0,0),r(200,0),r(0,200),r(200,200)],this.el)},a.prototype.transformCoordinates=function(r,e){function t(O,k,u){var _=O[1]*k[0]-O[0]*k[1];return[(-k[1]*u[0]+k[0]*u[1])/_,(+O[1]*u[0]-O[0]*u[1])/_]}function s(O,k){return[O[0]-k[0],O[1]-k[1]]}function c(O,k){return[O[0]+k[0],O[1]+k[1]]}function p(O,k){return[O*k[0],O*k[1]]}function g(O){return O=O.getBoundingClientRect(),[O.left,O.top]}r=r&&p(1/this.$getZoom(this.el),r),this.els||this.$initTransformMeasureNodes();var b,w=g(this.els[0]),W=g(this.els[1]),B=g(this.els[2]),E=g(this.els[3]),E=t(s(E,W),s(E,B),s(c(W,B),c(E,w))),W=p(1+E[0],s(W,w)),B=p(1+E[1],s(B,w));return e?(b=E[0]*e[0]/200+E[1]*e[1]/200+1,e=c(p(e[0],W),p(e[1],B)),c(p(1/b/200,e),w)):(b=s(r,w),e=t(s(W,p(E[0],b)),s(B,p(E[1],b)),b),p(200,e))},a);function a(r){this.el=C.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=C.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=C.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),r.appendChild(this.el),this.$measureNode.textContent=d.stringRepeat("X",512),this.$characterSize={width:0,height:0},o?this.$addObserver():this.checkForSizeChanges()}i.prototype.$characterSize={width:0,height:0},y.implement(i.prototype,n),f.FontMetrics=i}),ace.define("ace/css/editor-css",["require","exports","module"],function(A,f,R){R.exports=`
+.ace_br1 {border-top-left-radius : 3px;}
+.ace_br2 {border-top-right-radius : 3px;}
+.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
+.ace_br4 {border-bottom-right-radius: 3px;}
+.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
+.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
+.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
+.ace_br8 {border-bottom-left-radius : 3px;}
+.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
+.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
+.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
+.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
+.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
+.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
+.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
+
+
+.ace_editor {
+ position: relative;
+ overflow: hidden;
+ padding: 0;
+ font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
+ direction: ltr;
+ text-align: left;
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
+}
+
+.ace_scroller {
+ position: absolute;
+ overflow: hidden;
+ top: 0;
+ bottom: 0;
+ background-color: inherit;
+ -ms-user-select: none;
+ -moz-user-select: none;
+ -webkit-user-select: none;
+ user-select: none;
+ cursor: text;
+}
+
+.ace_content {
+ position: absolute;
+ box-sizing: border-box;
+ min-width: 100%;
+ contain: style size layout;
+ font-variant-ligatures: no-common-ligatures;
+}
+
+.ace_keyboard-focus:focus {
+ box-shadow: inset 0 0 0 2px #5E9ED6;
+ outline: none;
+}
+
+.ace_dragging .ace_scroller:before{
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ content: '';
+ background: rgba(250, 250, 250, 0.01);
+ z-index: 1000;
+}
+.ace_dragging.ace_dark .ace_scroller:before{
+ background: rgba(0, 0, 0, 0.01);
+}
+
+.ace_gutter {
+ position: absolute;
+ overflow : hidden;
+ width: auto;
+ top: 0;
+ bottom: 0;
+ left: 0;
+ cursor: default;
+ z-index: 4;
+ -ms-user-select: none;
+ -moz-user-select: none;
+ -webkit-user-select: none;
+ user-select: none;
+ contain: style size layout;
+}
+
+.ace_gutter-active-line {
+ position: absolute;
+ left: 0;
+ right: 0;
+}
+
+.ace_scroller.ace_scroll-left:after {
+ content: "";
+ position: absolute;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
+ pointer-events: none;
+}
+
+.ace_gutter-cell, .ace_gutter-cell_svg-icons {
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ padding-left: 19px;
+ padding-right: 6px;
+ background-repeat: no-repeat;
+}
+
+.ace_gutter-cell_svg-icons .ace_gutter_annotation {
+ margin-left: -14px;
+ float: left;
+}
+
+.ace_gutter-cell .ace_gutter_annotation {
+ margin-left: -19px;
+ float: left;
+}
+
+.ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold {
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");
+ background-repeat: no-repeat;
+ background-position: 2px center;
+}
+
+.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");
+ background-repeat: no-repeat;
+ background-position: 2px center;
+}
+
+.ace_gutter-cell.ace_info, .ace_icon.ace_info {
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
+ background-repeat: no-repeat;
+ background-position: 2px center;
+}
+.ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info {
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
+}
+
+.ace_icon_svg.ace_error {
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
+ background-color: crimson;
+}
+.ace_icon_svg.ace_warning {
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
+ background-color: darkorange;
+}
+.ace_icon_svg.ace_info {
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
+ background-color: royalblue;
+}
+
+.ace_icon_svg.ace_error_fold {
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
+ background-color: crimson;
+}
+.ace_icon_svg.ace_warning_fold {
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
+ background-color: darkorange;
+}
+
+.ace_scrollbar {
+ contain: strict;
+ position: absolute;
+ right: 0;
+ bottom: 0;
+ z-index: 6;
+}
+
+.ace_scrollbar-inner {
+ position: absolute;
+ cursor: text;
+ left: 0;
+ top: 0;
+}
+
+.ace_scrollbar-v{
+ overflow-x: hidden;
+ overflow-y: scroll;
+ top: 0;
+}
+
+.ace_scrollbar-h {
+ overflow-x: scroll;
+ overflow-y: hidden;
+ left: 0;
+}
+
+.ace_print-margin {
+ position: absolute;
+ height: 100%;
+}
+
+.ace_text-input {
+ position: absolute;
+ z-index: 0;
+ width: 0.5em;
+ height: 1em;
+ opacity: 0;
+ background: transparent;
+ -moz-appearance: none;
+ appearance: none;
+ border: none;
+ resize: none;
+ outline: none;
+ overflow: hidden;
+ font: inherit;
+ padding: 0 1px;
+ margin: 0 -1px;
+ contain: strict;
+ -ms-user-select: text;
+ -moz-user-select: text;
+ -webkit-user-select: text;
+ user-select: text;
+ /*with \`pre-line\` chrome inserts instead of space*/
+ white-space: pre!important;
+}
+.ace_text-input.ace_composition {
+ background: transparent;
+ color: inherit;
+ z-index: 1000;
+ opacity: 1;
+}
+.ace_composition_placeholder { color: transparent }
+.ace_composition_marker {
+ border-bottom: 1px solid;
+ position: absolute;
+ border-radius: 0;
+ margin-top: 1px;
+}
+
+[ace_nocontext=true] {
+ transform: none!important;
+ filter: none!important;
+ clip-path: none!important;
+ mask : none!important;
+ contain: none!important;
+ perspective: none!important;
+ mix-blend-mode: initial!important;
+ z-index: auto;
+}
+
+.ace_layer {
+ z-index: 1;
+ position: absolute;
+ overflow: hidden;
+ /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
+ word-wrap: normal;
+ white-space: pre;
+ height: 100%;
+ width: 100%;
+ box-sizing: border-box;
+ /* setting pointer-events: auto; on node under the mouse, which changes
+ during scroll, will break mouse wheel scrolling in Safari */
+ pointer-events: none;
+}
+
+.ace_gutter-layer {
+ position: relative;
+ width: auto;
+ text-align: right;
+ pointer-events: auto;
+ height: 1000000px;
+ contain: style size layout;
+}
+
+.ace_text-layer {
+ font: inherit !important;
+ position: absolute;
+ height: 1000000px;
+ width: 1000000px;
+ contain: style size layout;
+}
+
+.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
+ contain: style size layout;
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+}
+
+.ace_hidpi .ace_text-layer,
+.ace_hidpi .ace_gutter-layer,
+.ace_hidpi .ace_content,
+.ace_hidpi .ace_gutter {
+ contain: strict;
+}
+.ace_hidpi .ace_text-layer > .ace_line,
+.ace_hidpi .ace_text-layer > .ace_line_group {
+ contain: strict;
+}
+
+.ace_cjk {
+ display: inline-block;
+ text-align: center;
+}
+
+.ace_cursor-layer {
+ z-index: 4;
+}
+
+.ace_cursor {
+ z-index: 4;
+ position: absolute;
+ box-sizing: border-box;
+ border-left: 2px solid;
+ /* workaround for smooth cursor repaintng whole screen in chrome */
+ transform: translatez(0);
+}
+
+.ace_multiselect .ace_cursor {
+ border-left-width: 1px;
+}
+
+.ace_slim-cursors .ace_cursor {
+ border-left-width: 1px;
+}
+
+.ace_overwrite-cursors .ace_cursor {
+ border-left-width: 0;
+ border-bottom: 1px solid;
+}
+
+.ace_hidden-cursors .ace_cursor {
+ opacity: 0.2;
+}
+
+.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
+ opacity: 0;
+}
+
+.ace_smooth-blinking .ace_cursor {
+ transition: opacity 0.18s;
+}
+
+.ace_animate-blinking .ace_cursor {
+ animation-duration: 1000ms;
+ animation-timing-function: step-end;
+ animation-name: blink-ace-animate;
+ animation-iteration-count: infinite;
+}
+
+.ace_animate-blinking.ace_smooth-blinking .ace_cursor {
+ animation-duration: 1000ms;
+ animation-timing-function: ease-in-out;
+ animation-name: blink-ace-animate-smooth;
+}
+
+@keyframes blink-ace-animate {
+ from, to { opacity: 1; }
+ 60% { opacity: 0; }
+}
+
+@keyframes blink-ace-animate-smooth {
+ from, to { opacity: 1; }
+ 45% { opacity: 1; }
+ 60% { opacity: 0; }
+ 85% { opacity: 0; }
+}
+
+.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
+ position: absolute;
+ z-index: 3;
+}
+
+.ace_marker-layer .ace_selection {
+ position: absolute;
+ z-index: 5;
+}
+
+.ace_marker-layer .ace_bracket {
+ position: absolute;
+ z-index: 6;
+}
+
+.ace_marker-layer .ace_error_bracket {
+ position: absolute;
+ border-bottom: 1px solid #DE5555;
+ border-radius: 0;
+}
+
+.ace_marker-layer .ace_active-line {
+ position: absolute;
+ z-index: 2;
+}
+
+.ace_marker-layer .ace_selected-word {
+ position: absolute;
+ z-index: 4;
+ box-sizing: border-box;
+}
+
+.ace_line .ace_fold {
+ box-sizing: border-box;
+
+ display: inline-block;
+ height: 11px;
+ margin-top: -2px;
+ vertical-align: middle;
+
+ background-image:
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
+ background-repeat: no-repeat, repeat-x;
+ background-position: center center, top left;
+ color: transparent;
+
+ border: 1px solid black;
+ border-radius: 2px;
+
+ cursor: pointer;
+ pointer-events: auto;
+}
+
+.ace_dark .ace_fold {
+}
+
+.ace_fold:hover{
+ background-image:
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
+}
+
+.ace_tooltip {
+ background-color: #f5f5f5;
+ border: 1px solid gray;
+ border-radius: 1px;
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
+ color: black;
+ max-width: 100%;
+ padding: 3px 4px;
+ position: fixed;
+ z-index: 999999;
+ box-sizing: border-box;
+ cursor: default;
+ white-space: pre;
+ word-wrap: break-word;
+ line-height: normal;
+ font-style: normal;
+ font-weight: normal;
+ letter-spacing: normal;
+ pointer-events: none;
+}
+
+.ace_tooltip.ace_dark {
+ background-color: #636363;
+ color: #fff;
+}
+
+.ace_tooltip:focus {
+ outline: 1px solid #5E9ED6;
+}
+
+.ace_icon {
+ display: inline-block;
+ width: 18px;
+ vertical-align: top;
+}
+
+.ace_icon_svg {
+ display: inline-block;
+ width: 12px;
+ vertical-align: top;
+ -webkit-mask-repeat: no-repeat;
+ -webkit-mask-size: 12px;
+ -webkit-mask-position: center;
+}
+
+.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
+ padding-right: 13px;
+}
+
+.ace_fold-widget {
+ box-sizing: border-box;
+
+ margin: 0 -12px 0 1px;
+ display: none;
+ width: 11px;
+ vertical-align: top;
+
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
+ background-repeat: no-repeat;
+ background-position: center;
+
+ border-radius: 3px;
+
+ border: 1px solid transparent;
+ cursor: pointer;
+}
+
+.ace_folding-enabled .ace_fold-widget {
+ display: inline-block;
+}
+
+.ace_fold-widget.ace_end {
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
+}
+
+.ace_fold-widget.ace_closed {
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
+}
+
+.ace_fold-widget:hover {
+ border: 1px solid rgba(0, 0, 0, 0.3);
+ background-color: rgba(255, 255, 255, 0.2);
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
+}
+
+.ace_fold-widget:active {
+ border: 1px solid rgba(0, 0, 0, 0.4);
+ background-color: rgba(0, 0, 0, 0.05);
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
+}
+/**
+ * Dark version for fold widgets
+ */
+.ace_dark .ace_fold-widget {
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
+}
+.ace_dark .ace_fold-widget.ace_end {
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
+}
+.ace_dark .ace_fold-widget.ace_closed {
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
+}
+.ace_dark .ace_fold-widget:hover {
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
+ background-color: rgba(255, 255, 255, 0.1);
+}
+.ace_dark .ace_fold-widget:active {
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
+}
+
+.ace_inline_button {
+ border: 1px solid lightgray;
+ display: inline-block;
+ margin: -1px 8px;
+ padding: 0 5px;
+ pointer-events: auto;
+ cursor: pointer;
+}
+.ace_inline_button:hover {
+ border-color: gray;
+ background: rgba(200,200,200,0.2);
+ display: inline-block;
+ pointer-events: auto;
+}
+
+.ace_fold-widget.ace_invalid {
+ background-color: #FFB4B4;
+ border-color: #DE5555;
+}
+
+.ace_fade-fold-widgets .ace_fold-widget {
+ transition: opacity 0.4s ease 0.05s;
+ opacity: 0;
+}
+
+.ace_fade-fold-widgets:hover .ace_fold-widget {
+ transition: opacity 0.05s ease 0.05s;
+ opacity:1;
+}
+
+.ace_underline {
+ text-decoration: underline;
+}
+
+.ace_bold {
+ font-weight: bold;
+}
+
+.ace_nobold .ace_bold {
+ font-weight: normal;
+}
+
+.ace_italic {
+ font-style: italic;
+}
+
+
+.ace_error-marker {
+ background-color: rgba(255, 0, 0,0.2);
+ position: absolute;
+ z-index: 9;
+}
+
+.ace_highlight-marker {
+ background-color: rgba(255, 255, 0,0.2);
+ position: absolute;
+ z-index: 8;
+}
+
+.ace_mobile-menu {
+ position: absolute;
+ line-height: 1.5;
+ border-radius: 4px;
+ -ms-user-select: none;
+ -moz-user-select: none;
+ -webkit-user-select: none;
+ user-select: none;
+ background: white;
+ box-shadow: 1px 3px 2px grey;
+ border: 1px solid #dcdcdc;
+ color: black;
+}
+.ace_dark > .ace_mobile-menu {
+ background: #333;
+ color: #ccc;
+ box-shadow: 1px 3px 2px grey;
+ border: 1px solid #444;
+
+}
+.ace_mobile-button {
+ padding: 2px;
+ cursor: pointer;
+ overflow: hidden;
+}
+.ace_mobile-button:hover {
+ background-color: #eee;
+ opacity:1;
+}
+.ace_mobile-button:active {
+ background-color: #ddd;
+}
+
+.ace_placeholder {
+ font-family: arial;
+ transform: scale(0.9);
+ transform-origin: left;
+ white-space: pre;
+ opacity: 0.7;
+ margin: 0 10px;
+}
+
+.ace_ghost_text {
+ opacity: 0.5;
+ font-style: italic;
+ white-space: pre;
+}
+
+.ace_screenreader-only {
+ position:absolute;
+ left:-10000px;
+ top:auto;
+ width:1px;
+ height:1px;
+ overflow:hidden;
+}`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(d,f,R){var y=d("../lib/dom"),C=d("../lib/oop"),d=d("../lib/event_emitter").EventEmitter,h=(l.prototype.$updateDecorators=function(n){var o=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light,i=(n&&(this.maxHeight=n.maxHeight,this.lineHeight=n.lineHeight,this.canvasHeight=n.height,(n.lastRow+1)*this.lineHeightE.priority?1:0}),this.renderer.session.$foldData),t=0;tthis.canvasHeight&&(s=this.canvasHeight-this.halfMinDecorationHeight),g=Math.round(s-this.halfMinDecorationHeight),b=Math.round(s+this.halfMinDecorationHeight)),i.fillStyle=o[a[t].type]||null,i.fillRect(0,p,this.canvasWidth,b-g)}n=this.renderer.session.selection.getCursor(),n&&(c=this.compensateFoldRows(n.row,e),p=Math.round((n.row-c)*this.lineHeight*this.heightRatio),i.fillStyle="rgba(0, 0, 0, 0.5)",i.fillRect(0,p,this.canvasWidth,2))},l.prototype.compensateFoldRows=function(n,o){var i=0;if(o&&0o[a].start.row&&n=o[a].end.row&&(i+=o[a].end.row-o[a].start.row);return i},l);function l(n,o){this.canvas=y.createElement("canvas"),this.renderer=o,this.pixelRatio=1,this.maxHeight=o.layerConfig.maxHeight,this.lineHeight=o.layerConfig.lineHeight,this.canvasHeight=n.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=n.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},n.element.appendChild(this.canvas)}C.implement(h.prototype,d),f.Decorator=h}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent"],function(E,f,R){var y=E("./lib/oop"),C=E("./lib/dom"),d=E("./lib/lang"),h=E("./config"),l=E("./layer/gutter").Gutter,n=E("./layer/marker").Marker,o=E("./layer/text").Text,i=E("./layer/cursor").Cursor,a=E("./scrollbar").HScrollBar,r=E("./scrollbar").VScrollBar,e=E("./scrollbar_custom").HScrollBar,t=E("./scrollbar_custom").VScrollBar,s=E("./renderloop").RenderLoop,c=E("./layer/font_metrics").FontMetrics,p=E("./lib/event_emitter").EventEmitter,g=E("./css/editor-css"),b=E("./layer/decorators").Decorator,w=E("./lib/useragent"),E=(C.importCssString(g,"ace_editor.css",!1),W.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),C.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},W.prototype.setSession=function(B){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),(this.session=B)&&this.scrollMargin.top&&B.getScrollTop()<=0&&B.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(B),this.$markerBack.setSession(B),this.$markerFront.setSession(B),this.$gutterLayer.setSession(B),this.$textLayer.setSession(B),B&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},W.prototype.updateLines=function(B,O,k){if(O===void 0&&(O=1/0),this.$changedLines?(this.$changedLines.firstRow>B&&(this.$changedLines.firstRow=B),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},W.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},W.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},W.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},W.prototype.updateFull=function(B){B?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},W.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},W.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},W.prototype.onResize=function(B,O,k,u){if(!(2$.height-u?C.translate(this.textarea,0,0):($=1,_=this.$size.height-u,v?v.useTextareaForIME?(v=this.textarea.value,$=this.characterWidth*this.session.$getStringScreenWidth(v)[0]):O+=this.lineHeight+2:O+=this.lineHeight,(k-=this.scrollLeft)>this.$size.scrollerWidth-$&&(k=this.$size.scrollerWidth-$),k+=this.gutterWidth+this.margin.left,C.setStyle(B,"height",u+"px"),C.setStyle(B,"width",$+"px"),C.translate(this.textarea,Math.min(k,this.$size.scrollerWidth-$),Math.min(O,_)))):C.translate(this.textarea,-100,0))},W.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},W.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},W.prototype.getLastFullyVisibleRow=function(){var B=this.layerConfig,O=B.lastRow;return this.session.documentToScreenRow(O,0)*B.lineHeight-this.session.getScrollTop()>B.height-B.lineHeight?O-1:O},W.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},W.prototype.setPadding=function(B){this.$padding=B,this.$textLayer.setPadding(B),this.$cursorLayer.setPadding(B),this.$markerFront.setPadding(B),this.$markerBack.setPadding(B),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},W.prototype.setScrollMargin=function(B,O,k,u){var _=this.scrollMargin;_.top=0|B,_.bottom=0|O,_.right=0|u,_.left=0|k,_.v=_.top+_.bottom,_.h=_.left+_.right,_.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-_.top),this.updateFull()},W.prototype.setMargin=function(B,O,k,u){var _=this.margin;_.top=0|B,_.bottom=0|O,_.right=0|u,_.left=0|k,_.v=_.top+_.bottom,_.h=_.left+_.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},W.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},W.prototype.setHScrollBarAlwaysVisible=function(B){this.setOption("hScrollBarAlwaysVisible",B)},W.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},W.prototype.setVScrollBarAlwaysVisible=function(B){this.setOption("vScrollBarAlwaysVisible",B)},W.prototype.$updateScrollBarV=function(){var B=this.layerConfig.maxHeight,O=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(B-=(O-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>B-O)&&(B=this.scrollTop+O,this.scrollBarV.scrollTop=null),this.scrollBarV.setScrollHeight(B+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},W.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},W.prototype.freeze=function(){this.$frozen=!0},W.prototype.unfreeze=function(){this.$frozen=!1},W.prototype.$renderChanges=function(B,O){if(this.$changes&&(B|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(B||O)){if(this.$size.$dirty)return this.$changes|=B,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",B),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var k,u,O=this.layerConfig;(B&this.CHANGE_FULL||B&this.CHANGE_SIZE||B&this.CHANGE_TEXT||B&this.CHANGE_LINES||B&this.CHANGE_SCROLL||B&this.CHANGE_H_SCROLL)&&(B|=this.$computeLayerConfig()|this.$loop.clear(),O.firstRow!=this.layerConfig.firstRow&&O.firstRowScreen==this.layerConfig.firstRowScreen&&0<(k=this.scrollTop+(O.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight)&&(this.scrollTop=k,B=(B|=this.CHANGE_SCROLL)|(this.$computeLayerConfig()|this.$loop.clear())),O=this.layerConfig,this.$updateScrollBarV(),B&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),C.translate(this.content,-this.scrollLeft,-O.offset),k=O.width+2*this.$padding+"px",u=O.minHeight+"px",C.setStyle(this.content.style,"width",k),C.setStyle(this.content.style,"height",u)),B&this.CHANGE_H_SCROLL&&(C.translate(this.content,-this.scrollLeft,-O.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility)&&(this.scroller.className+=this.keyboardFocusClassName),B&this.CHANGE_FULL?(this.$changedLines=null,this.$textLayer.update(O),this.$showGutter&&this.$gutterLayer.update(O),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(O),this.$markerBack.update(O),this.$markerFront.update(O),this.$cursorLayer.update(O),this.$moveTextAreaToCursor()):B&this.CHANGE_SCROLL?(this.$changedLines=null,B&this.CHANGE_TEXT||B&this.CHANGE_LINES?this.$textLayer.update(O):this.$textLayer.scrollLines(O),this.$showGutter&&(B&this.CHANGE_GUTTER||B&this.CHANGE_LINES?this.$gutterLayer.update(O):this.$gutterLayer.scrollLines(O)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(O),this.$markerBack.update(O),this.$markerFront.update(O),this.$cursorLayer.update(O),this.$moveTextAreaToCursor()):(B&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(O),this.$showGutter&&this.$gutterLayer.update(O),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(O)):B&this.CHANGE_LINES?((this.$updateLines()||B&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(O),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(O)):B&this.CHANGE_TEXT||B&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(O),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(O)):B&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(O),this.$customScrollbar)&&this.$scrollDecorator.$updateDecorators(O),B&this.CHANGE_CURSOR&&(this.$cursorLayer.update(O),this.$moveTextAreaToCursor()),B&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(O),B&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(O)),this._signal("afterRender",B)}else this.$changes|=B},W.prototype.$autosize=function(){var B=this.session.getScreenLength()*this.lineHeight,O=this.$maxLines*this.lineHeight,k=Math.min(O,Math.max((this.$minLines||1)*this.lineHeight,B))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(k+=this.scrollBarH.getHeight()),O=!((k=this.$maxPixelHeight&&k>this.$maxPixelHeight?this.$maxPixelHeight:k)<=2*this.lineHeight)&&OP.top)),$=M!==Q,P=($&&(this.$vScroll=Q,this.scrollBarV.setVisible(Q)),this.scrollTop%this.lineHeight),M=Math.ceil(v/this.lineHeight)-1,M=(Q=Math.max(0,Math.round((this.scrollTop-P)/this.lineHeight)))+M,X=this.lineHeight,Q=ne.screenToDocumentRow(Q,0),K=ne.getFoldLine(Q),ne=(K&&(Q=K.start.row),K=ne.documentToScreenRow(Q,0),B=ne.getRowLength(Q)*X,M=Math.min(ne.screenToDocumentRow(M,0),ne.getLength()-1),v=O.scrollerHeight+ne.getRowLength(M)*X+B,P=this.scrollTop-K*X,0);return this.layerConfig.width==u&&!_||(ne=this.CHANGE_H_SCROLL),(_||$)&&(ne|=this.$updateCachedSize(!0,this.gutterWidth,O.width,O.height),this._signal("scrollbarVisibilityChanged"),$)&&(u=this.$getLongestLine()),this.layerConfig={width:u,padding:this.$padding,firstRow:Q,firstRowScreen:K,lastRow:M,lineHeight:X,characterWidth:this.characterWidth,minHeight:v,maxHeight:k,offset:P,gutterOffset:X?Math.max(0,Math.ceil((P+O.height-O.scrollerHeight)/X)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(u-this.$padding),ne},W.prototype.$updateLines=function(){if(this.$changedLines){var B=this.$changedLines.firstRow,O=this.$changedLines.lastRow,k=(this.$changedLines=null,this.layerConfig);if(!(B>k.lastRow+1||Othis.$textLayer.MAX_LINE_LENGTH&&(B=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(B*this.characterWidth))},W.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},W.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},W.prototype.addGutterDecoration=function(B,O){this.$gutterLayer.addGutterDecoration(B,O)},W.prototype.removeGutterDecoration=function(B,O){this.$gutterLayer.removeGutterDecoration(B,O)},W.prototype.updateBreakpoints=function(B){this.$loop.schedule(this.CHANGE_GUTTER)},W.prototype.setAnnotations=function(B){this.$gutterLayer.setAnnotations(B),this.$loop.schedule(this.CHANGE_GUTTER)},W.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},W.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},W.prototype.showCursor=function(){this.$cursorLayer.showCursor()},W.prototype.scrollSelectionIntoView=function(B,O,k){this.scrollCursorIntoView(B,k),this.scrollCursorIntoView(O,k)},W.prototype.scrollCursorIntoView=function(B,O,k){var u,_,v;this.$size.scrollerHeight!==0&&(u=(B=this.$cursorLayer.getPixelPosition(B)).left,B=B.top,_=k&&k.top||0,k=k&&k.bottom||0,this.$scrollAnimation&&(this.$stopAnimation=!0),B<(v=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop)+_?(O&&v+_>B+this.lineHeight&&(B-=O*this.$size.scrollerHeight),B===0&&(B=-this.scrollMargin.top),this.session.setScrollTop(B)):v+this.$size.scrollerHeight-k=1-this.scrollMargin.top||0=1-this.scrollMargin.left||0"u"?{postMessage:function(){},terminate:function(){}}:h.get("loadWorkerFromBlob")?(i=function(a){a="importScripts('"+C.qualifyURL(a)+"');";try{return new Blob([a],{type:"application/javascript"})}catch{var r=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder);return r.append(a),r.getBlob("application/javascript")}}(o),i=(window.URL||window.webkitURL).createObjectURL(i),new Worker(i)):new Worker(o)}function n(o){o.postMessage||(o=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=o,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage}(function(){y.implement(this,d),this.$createWorkerFromOldConfig=function(o,i,a,r,e){var t,s;return A.nameToUrl&&!A.toUrl&&(A.toUrl=A.nameToUrl),h.get("packaged")||!A.toUrl?r=r||h.moduleUrl(i,"worker"):(t=this.$normalizePath,r=r||t(A.toUrl("ace/worker/worker.js",null,"_")),s={},o.forEach(function(c){s[c]=t(A.toUrl(c,null,"_").replace(/(\.js)?(\?.*)?$/,""))})),this.$worker=l(r),e&&this.send("importScripts",e),this.$worker.postMessage({init:!0,tlns:s,module:i,classname:a}),this.$worker},this.onMessage=function(o){var i=o.data;switch(i.type){case"event":this._signal(i.name,{data:i.data});break;case"call":var a=this.callbacks[i.id];a&&(a(i.data),delete this.callbacks[i.id]);break;case"error":this.reportError(i.data);break;case"log":window.console&&console.log&&console.log.apply(console,i.data)}},this.reportError=function(o){window.console&&console.error&&console.error(o)},this.$normalizePath=function(o){return C.qualifyURL(o)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(o){o.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(o,i){this.$worker.postMessage({command:o,args:i})},this.call=function(o,i,a){var r;a&&(r=this.callbackId++,this.callbacks[r]=a,i.push(r)),this.send(o,i)},this.emit=function(o,i){try{i.data&&i.data.err&&(i.data.err={message:i.data.err.message,stack:i.data.err.stack,code:i.data.err.code}),this.$worker&&this.$worker.postMessage({event:o,data:{data:i.data}})}catch(a){console.error(a.stack)}},this.attachToDocument=function(o){this.$doc&&this.terminate(),this.$doc=o,this.call("setValue",[o.getValue()]),o.on("change",this.changeListener,!0)},this.changeListener=function(o){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),o.action=="insert"?this.deltaQueue.push(o.start,o.lines):this.deltaQueue.push(o.start,o.end)},this.$sendDeltaQueue=function(){var o=this.deltaQueue;o&&(this.deltaQueue=null,50this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:o}))}}).call(n.prototype),f.UIWorkerClient=function(o,i,a){var r=null,e=!1,t=Object.create(d),s=[],c=new n({messageBuffer:s,terminate:function(){},postMessage:function(g){s.push(g),r&&(e?setTimeout(p):p())}}),p=(c.setEmitSync=function(g){e=g},function(){var g=s.shift();g.command?r[g.command].apply(r,g.args):g.event&&t._signal(g.event,g.data)});return t.postMessage=function(g){c.onMessage({data:g})},t.callback=function(g,b){this.postMessage({type:"call",id:b,data:g})},t.emit=function(g,b){this.postMessage({type:"event",name:g,data:b})},h.loadModule(["worker",i],function(g){for(r=new g[a](t);s.length;)p()}),c},f.WorkerClient=n,f.createWorker=l}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(d,f,R){var y=d("./range").Range,C=d("./lib/event_emitter").EventEmitter,d=d("./lib/oop"),h=(l.prototype.setup=function(){var n=this,o=this.doc,i=this.session,a=(this.selectionBefore=i.selection.toJSON(),i.selection.inMultiSelectMode&&i.selection.toSingleRange(),this.pos=o.createAnchor(this.$pos.row,this.$pos.column),this.pos);a.$insertRight=!0,a.detach(),a.markerId=i.addMarker(new y(a.row,a.column,a.row,a.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(r){r=o.createAnchor(r.row,r.column),r.$insertRight=!0,r.detach(),n.others.push(r)}),i.setUndoSelect(!1)},l.prototype.showOtherMarkers=function(){var n,o;this.othersActive||(n=this.session,(o=this).othersActive=!0,this.others.forEach(function(i){i.markerId=n.addMarker(new y(i.row,i.column,i.row,i.column+o.length),o.othersClass,null,!1)}))},l.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var n=0;n=this.pos.column&&o.start.column<=this.pos.column+this.length+1,r=o.start.column-this.pos.column;if(this.updateAnchors(n),a&&(this.length+=i),a&&!this.session.$fromUndo){if(n.action==="insert")for(var e=this.others.length-1;0<=e;e--){var t={row:(s=this.others[e]).row,column:s.column+r};this.doc.insertMergedLines(t,n.lines)}else if(n.action==="remove")for(e=this.others.length-1;0<=e;e--){var s,t={row:(s=this.others[e]).row,column:s.column+r};this.doc.remove(new y(t.row,t.column,t.row,t.column-i))}}this.$updating=!1,this.updateMarkers()}},l.prototype.updateAnchors=function(n){this.pos.onChange(n);for(var o=this.others.length;o--;)this.others[o].onChange(n);this.updateMarkers()},l.prototype.updateMarkers=function(){if(!this.$updating){var n=this,o=this.session,i=function(r,e){o.removeMarker(r.markerId),r.markerId=o.addMarker(new y(r.row,r.column,r.row,r.column+n.length),e,null,!1)};i(this.pos,this.mainClass);for(var a=this.others.length;a--;)i(this.others[a],this.othersClass)}},l.prototype.onCursorChange=function(n){var o;!this.$updating&&this.session&&((o=this.session.selection.getCursor()).row===this.pos.row&&o.column>=this.pos.column&&o.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",n)):(this.hideOtherMarkers(),this._emit("cursorLeave",n)))},l.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},l.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var n=this.session.getUndoManager(),o=(n.$undoStack||n.$undostack).length-this.$undoStackDepth,i=0;ig&&(g=_.column),(v=v==-1?0:v)B[1].length&&(s=B[1].length),cB[3].length&&(p=B[3].length)),B):[W]}).map(t?E:g?b?function(W){return W[2]?w(s+c-W[2].length)+W[2]+w(p)+W[4].replace(/^([=:])\s+/,"$1 "):W[0]}:E:function(W){return W[2]?w(s)+W[2]+w(p)+W[4].replace(/^([=:])\s+/,"$1 "):W[0]});function w(W){return n.stringRepeat(" ",W)}function E(W){return W[2]?w(s)+W[2]+w(c-W[2].length+p)+W[4].replace(/^([=:])\s+/,"$1 "):W[0]}}}).call(a.prototype),f.onSessionChange=function(s){var t=s.session,s=(t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect,s.oldSession);s&&(s.multiSelect.off("addRange",this.$onAddRange),s.multiSelect.off("removeRange",this.$onRemoveRange),s.multiSelect.off("multiSelect",this.$onMultiSelect),s.multiSelect.off("singleSelect",this.$onSingleSelect),s.multiSelect.lead.off("change",this.$checkMultiselectChange),s.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},f.MultiSelect=r,A("./config").defineOptions(a.prototype,"editor",{enableMultiselect:{set:function(e){r(this),e?this.on("mousedown",h):this.off("mousedown",h)},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(C,f,R){var y=C("../../range").Range,C=f.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(d,h,l){return d=d.getLine(l),this.foldingStartMarker.test(d)?"start":h=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(d)?"end":""},this.getFoldWidgetRange=function(d,h,l){return null},this.indentationBlock=function(d,h,l){var n=/\S/,o=d.getLine(h),i=o.search(n);if(i!=-1){for(var a,l=l||o.length,r=d.getLength(),o=h,e=h;++hl.row&&(n.row--,n.column=d.getLine(n.row).length),y.fromPoints(l,n)},this.closingBracketBlock=function(d,h,l,n,o){if(l={row:l,column:n},n=d.$findOpeningBracket(h,l),n)return n.column++,l.column--,y.fromPoints(n,l)}}).call(C.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range","ace/config"],function(A,f,R){var y=A("../line_widgets").LineWidgets,C=A("../lib/dom"),d=A("../range").Range,h=A("../config").nls;function l(n,o,i){var a=n.getAnnotations().sort(d.comparePoints);if(a.length){var r=function(s,c,p){for(var g=0,b=s.length-1;g<=b;){var w=g+b>>1,E=p(c,s[w]);if(0=a.length?r=0"),s.appendChild(C.createElement("div")),t.destroy=function(){n.$mouseHandler.isMousePressed||(n.keyBinding.removeKeyboardHandler(e),a.widgetManager.removeLineWidget(t),n.off("changeSelection",t.destroy),n.off("changeSession",t.destroy),n.off("mouseup",t.destroy),n.off("change",t.destroy))},n.keyBinding.addKeyboardHandler(e),n.on("changeSelection",t.destroy),n.on("changeSession",t.destroy),n.on("mouseup",t.destroy),n.on("change",t.destroy),n.session.widgetManager.addLineWidget(t),t.el.onmousedown=n.focus.bind(n),n.renderer.scrollCursorIntoView(null,.5,{bottom:t.el.offsetHeight})},C.importCssString(`
+ .error_widget_wrapper {
+ background: inherit;
+ color: inherit;
+ border:none
+ }
+ .error_widget {
+ border-top: solid 2px;
+ border-bottom: solid 2px;
+ margin: 5px 0;
+ padding: 10px 40px;
+ white-space: pre-wrap;
+ }
+ .error_widget.ace_error, .error_widget_arrow.ace_error{
+ border-color: #ff5a5a
+ }
+ .error_widget.ace_warning, .error_widget_arrow.ace_warning{
+ border-color: #F1D817
+ }
+ .error_widget.ace_info, .error_widget_arrow.ace_info{
+ border-color: #5a5a5a
+ }
+ .error_widget.ace_ok, .error_widget_arrow.ace_ok{
+ border-color: #5aaa5a
+ }
+ .error_widget_arrow {
+ position: absolute;
+ border: solid 5px;
+ border-top-color: transparent!important;
+ border-right-color: transparent!important;
+ border-left-color: transparent!important;
+ top: -5px;
+ }
+`,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(A,f,R){A("./loader_build")(f);var y=A("./lib/dom"),C=A("./range").Range,d=A("./editor").Editor,h=A("./edit_session").EditSession,l=A("./undomanager").UndoManager,n=A("./virtual_renderer").VirtualRenderer;A("./worker/worker_client"),A("./keyboard/hash_handler"),A("./placeholder"),A("./multi_select"),A("./mode/folding/fold_mode"),A("./theme/textmate"),A("./ext/error_marker"),f.config=A("./config"),f.edit=function(o,i){if(typeof o=="string"){var a=o;if(!(o=document.getElementById(a)))throw new Error("ace.edit can't find div #"+a)}var r,e;return o&&o.env&&o.env.editor instanceof d?o.env.editor:(a="",o&&/input|textarea/i.test(o.tagName)?(a=(r=o).value,o=y.createElement("pre"),r.parentNode.replaceChild(o,r)):o&&(a=o.textContent,o.innerHTML=""),a=f.createEditSession(a),o=new d(new n(o),a,i),e={document:a,editor:o,onResize:o.resize.bind(o,null)},r&&(e.textarea=r),o.on("destroy",function(){e.editor.container.env=null}),o.container.env=o.env=e,o)},f.createEditSession=function(o,i){return o=new h(o,i),o.setUndoManager(new l),o},f.Range=C,f.Editor=d,f.EditSession=h,f.UndoManager=l,f.VirtualRenderer=n,f.version=f.config.version}),ace.require(["ace/ace"],function(A){A&&(A.config.init(!0),A.define=ace.define);var f,R=function(){return this}();for(f in(R=(R=R||typeof window>"u"?R:window)||typeof self>"u"?R:self).ace||(R.ace=A),A)A.hasOwnProperty(f)&&(R.ace[f]=A[f]);R.ace.default=R.ace,le&&(le.exports=R.ace)})},4317:function(le,m,Z){le=Z.nmd(le),ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(U,x,H){var j=U("./lib/dom"),r=U("./lib/oop"),z=U("./lib/event_emitter").EventEmitter,Y=U("./lib/lang"),G=U("./range").Range,N=U("./range_list").RangeList,A=U("./keyboard/hash_handler").HashHandler,f=U("./tokenizer").Tokenizer,R=U("./clipboard"),y={CURRENT_WORD:function(e){return e.session.getTextRange(e.session.getWordRange())},SELECTION:function(e,t,s){return e=e.session.getTextRange(),s?e.replace(/\n\r?([ \t]*\S)/g,`
+`+s+"$1"):e},CURRENT_LINE:function(e){return e.session.getLine(e.getCursorPosition().row)},PREV_LINE:function(e){return e.session.getLine(e.getCursorPosition().row-1)},LINE_INDEX:function(e){return e.getCursorPosition().row},LINE_NUMBER:function(e){return e.getCursorPosition().row+1},SOFT_TABS:function(e){return e.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(e){return e.session.getTabSize()},CLIPBOARD:function(e){return R.getText&&R.getText()},FILENAME:function(e){return/[^/\\]*$/.exec(this.FILEPATH(e))[0]},FILENAME_BASE:function(e){return/[^/\\]*$/.exec(this.FILEPATH(e))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(e){return this.FILEPATH(e).replace(/[^/\\]*$/,"")},FILEPATH:function(e){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(e){return e=e.session.$mode||{},e.blockComment&&e.blockComment.start||""},BLOCK_COMMENT_END:function(e){return e=e.session.$mode||{},e.blockComment&&e.blockComment.end||""},LINE_COMMENT:function(e){return(e.session.$mode||{}).lineCommentStart||""},CURRENT_YEAR:C.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:C.bind(null,{year:"2-digit"}),CURRENT_MONTH:C.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:C.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:C.bind(null,{month:"short"}),CURRENT_DATE:C.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:C.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:C.bind(null,{weekday:"short"}),CURRENT_HOUR:C.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:C.bind(null,{minute:"2-digit"}),CURRENT_SECOND:C.bind(null,{second:"2-digit"})};function C(e){return e=new Date().toLocaleString("en-us",e),e.length==1?"0"+e:e}y.SELECTED_TEXT=y.SELECTION,h.prototype.getTokenizer=function(){return h.$tokenizer||this.createTokenizer()},h.prototype.createTokenizer=function(){function e(c){return c=c.substr(1),/^\d+$/.test(c)?[{tabstopId:parseInt(c,10)}]:[{text:c}]}function t(c){return"(?:[^\\\\"+c+"]|\\\\.)"}var s={regex:"/("+t("/")+"+)/",onMatch:function(c,p,g){return g=g[0],g.fmtString=!0,g.guard=c.slice(1,-1),g.flag=""},next:"formatString"};return h.$tokenizer=new f({start:[{regex:/\\./,onMatch:function(c,p,g){var b=c[1];return[c=b=="}"&&g.length||"`$\\".indexOf(b)!=-1?b:c]}},{regex:/}/,onMatch:function(c,p,g){return[g.length?g.shift():c]}},{regex:/\$(?:\d+|\w+)/,onMatch:e},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(c,p,g){return c=e(c.substr(1)),g.unshift(c[0]),c},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+t("\\|")+"*\\|",onMatch:function(c,p,g){return c=c.slice(1,-1).replace(/\\[,|\\]|,/g,function(b){return b.length==2?b[1]:"\0"}).split("\0").map(function(b){return{value:b}}),[(g[0].choices=c)[0]]},next:"start"},s,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(c,p,g){return g.length&&g[0].expectElse?(g[0].expectElse=!1,g[0].ifEnd={elseEnd:g[0]},[g[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(c,p,g){var b=c[1];return b=="}"&&g.length||"`$\\".indexOf(b)!=-1?c=b:b=="n"?c=`
+`:b=="t"?c=" ":"ulULE".indexOf(b)!=-1&&(c={changeCase:b,local:"a"w&&(W=w-g.offsetWidth),g.style.left=W+"px",g.style.right="",i.isOpen||(i.isOpen=!0,this._signal("show"),n=null),i.anchorPos=t,i.anchor=c}return!0},i.show=function(t,s,c){this.tryShow(t,s,c?"bottom":void 0,!0)},i.goTo=function(t){var s=this.getRow(),c=this.session.getLength()-1;switch(t){case"up":s=s<=0?c:s-1;break;case"down":s=c<=s?-1:s+1;break;case"start":s=0;break;case"end":s=c}this.setRow(s)},i.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},i.$imageSize=0,i.$borderSize=1,i}var G=U("../virtual_renderer").VirtualRenderer,N=U("../editor").Editor,A=U("../range").Range,f=U("../lib/event"),R=U("../lib/lang"),y=U("../lib/dom"),C=U("../config").nls;y.importCssString(`
+.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
+ background-color: #CAD6FA;
+ z-index: 1;
+}
+.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
+ background-color: #3a674e;
+}
+.ace_editor.ace_autocomplete .ace_line-hover {
+ border: 1px solid #abbffe;
+ margin-top: -1px;
+ background: rgba(233,233,253,0.4);
+ position: absolute;
+ z-index: 2;
+}
+.ace_dark.ace_editor.ace_autocomplete .ace_line-hover {
+ border: 1px solid rgba(109, 150, 13, 0.8);
+ background: rgba(58, 103, 78, 0.62);
+}
+.ace_completion-meta {
+ opacity: 0.5;
+ margin-left: 0.9em;
+}
+.ace_completion-message {
+ margin-left: 0.9em;
+ color: blue;
+}
+.ace_editor.ace_autocomplete .ace_completion-highlight{
+ color: #2d69c7;
+}
+.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{
+ color: #93ca12;
+}
+.ace_editor.ace_autocomplete {
+ width: 300px;
+ z-index: 200000;
+ border: 1px lightgray solid;
+ position: fixed;
+ box-shadow: 2px 3px 5px rgba(0,0,0,.2);
+ line-height: 1.4;
+ background: #fefefe;
+ color: #111;
+}
+.ace_dark.ace_editor.ace_autocomplete {
+ border: 1px #484747 solid;
+ box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);
+ line-height: 1.4;
+ background: #25282c;
+ color: #c1c1c1;
+}
+.ace_autocomplete .ace_text-layer {
+ width: calc(100% - 8px);
+}
+.ace_autocomplete .ace_line {
+ display: flex;
+ align-items: center;
+}
+.ace_autocomplete .ace_line > * {
+ min-width: 0;
+ flex: 0 0 auto;
+}
+.ace_autocomplete .ace_line .ace_ {
+ flex: 0 1 auto;
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+}
+.ace_autocomplete .ace_completion-spacer {
+ flex: 1;
+}
+.ace_autocomplete.ace_loading:after {
+ content: "";
+ position: absolute;
+ top: 0px;
+ height: 2px;
+ width: 8%;
+ background: blue;
+ z-index: 100;
+ animation: ace_progress 3s infinite linear;
+ animation-delay: 300ms;
+ transform: translateX(-100%) scaleX(1);
+}
+@keyframes ace_progress {
+ 0% { transform: translateX(-100%) scaleX(1) }
+ 50% { transform: translateX(625%) scaleX(2) }
+ 100% { transform: translateX(1500%) scaleX(3) }
+}
+@media (prefers-reduced-motion) {
+ .ace_autocomplete.ace_loading:after {
+ transform: translateX(625%) scaleX(2);
+ animation: none;
+ }
+}
+`,"autocompletion.css",!1),x.AcePopup=Y,x.$singleLineEditor=z,x.getAriaId=j}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(U,x,H){function j(z){this.editor=z,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}j.prototype.setScreenReaderContent=function(z){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",function(){var G=this.popup.getRow(),Y=this.popup.renderer.$textLayer,G=Y.element.childNodes[G-Y.config.firstRow];if(G){for(var N="doc-tooltip ",A=0;Athis.filterText&&r.lastIndexOf(this.filterText,0)===0?this.filtered:this.all,this.filterText=r,e=(e=this.filterCompletions(e,this.filterText)).sort(function(s,c){return c.exactMatch-s.exactMatch||c.$score-s.$score||(s.caption||s.value).localeCompare(c.caption||c.value)});var e,t=null;e=e.filter(function(s){return s=s.snippet||s.caption||s.value,s!==t&&(t=s,!0)}),this.filtered=e},a.prototype.filterCompletions=function(r,e){var t=[],s=e.toUpperCase(),c=e.toLowerCase();e:for(var p,g=0;p=r[g];g++){var b=!this.ignoreCaption&&p.caption||p.value||p.snippet;if(b){var w=-1,E=0,W=0;if(this.exactMatch){if(e!==b.substr(0,e.length))continue}else{var B=b.toLowerCase().indexOf(c);if(-1",f.escapeHTML(r.caption),"","
",f.escapeHTML((r=r.snippet,e={},r.replace(/\${(\d+)(:(.*?))?}/g,function(t,s,c,p){return e[s]=p||""}).replace(/\$(\d+?)/g,function(t,s){return e[s]})))].join(""))},id:"snippetCompleter"},d=[C,a,y],h=(x.setCompleters=function(r){d.length=0,r&&d.push.apply(d,r)},x.addCompleter=function(r){d.push(r)},x.textCompleter=a,x.keyWordCompleter=y,x.snippetCompleter=C,{name:"expandSnippet",exec:function(r){return G.expandWithTab(r)},bindKey:"Tab"}),l=function(r){(r=typeof r=="string"?A.$modes[r]:r)&&(G.files||(G.files={}),n(r.$id,r.snippetFileId),r.modes)&&r.modes.forEach(l)},n=function(r,e){e&&r&&!G.files[r]&&(G.files[r]={},A.loadModule(e,function(t){t&&(!(G.files[r]=t).snippets&&t.snippetText&&(t.snippets=G.parseSnippetFile(t.snippetText)),G.register(t.snippets||[],t.scope),t.includeScopes)&&(G.snippetMap[t.scope].includeScopes=t.includeScopes,t.includeScopes.forEach(function(s){l("ace/mode/"+s)}))}))},o=f.delayedCall(function(){i(Y)},0),i=function(e){var e=e.editor,t=R.getCompletionPrefix(e),s=R.triggerAutocomplete(e);(t&&t.length>=e.$liveAutocompletionThreshold||s)&&((t=N.for(e)).autoShown=!0,t.showPopup(e))},a=U("../editor").Editor;U("../config").defineOptions(a.prototype,"editor",{enableBasicAutocompletion:{set:function(r){r?(this.completers||(this.completers=Array.isArray(r)?r:d),this.commands.addCommand(N.startCommand)):this.commands.removeCommand(N.startCommand)},value:!1},enableLiveAutocompletion:{set:function(r){r?(this.completers||(this.completers=Array.isArray(r)?r:d),this.commands.on("afterExec",z)):this.commands.off("afterExec",z)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(r){r?(this.commands.addCommand(h),this.on("changeMode",j),j(0,this)):(this.commands.removeCommand(h),this.off("changeMode",j))},value:!1}})}),ace.require(["ace/ext/language_tools"],function(U){le&&(le.exports=U)})},3330:function(le,m,Z){le=Z.nmd(le),ace.define("ace/ext/searchbox-css",["require","exports","module"],function(U,x,H){H.exports=`
+
+/* ------------------------------------------------------------------------------------------
+ * Editor Search Form
+ * --------------------------------------------------------------------------------------- */
+.ace_search {
+ background-color: #ddd;
+ color: #666;
+ border: 1px solid #cbcbcb;
+ border-top: 0 none;
+ overflow: hidden;
+ margin: 0;
+ padding: 4px 6px 0 4px;
+ position: absolute;
+ top: 0;
+ z-index: 99;
+ white-space: normal;
+}
+.ace_search.left {
+ border-left: 0 none;
+ border-radius: 0px 0px 5px 0px;
+ left: 0;
+}
+.ace_search.right {
+ border-radius: 0px 0px 0px 5px;
+ border-right: 0 none;
+ right: 0;
+}
+
+.ace_search_form, .ace_replace_form {
+ margin: 0 20px 4px 0;
+ overflow: hidden;
+ line-height: 1.9;
+}
+.ace_replace_form {
+ margin-right: 0;
+}
+.ace_search_form.ace_nomatch {
+ outline: 1px solid red;
+}
+
+.ace_search_field {
+ border-radius: 3px 0 0 3px;
+ background-color: white;
+ color: black;
+ border: 1px solid #cbcbcb;
+ border-right: 0 none;
+ outline: 0;
+ padding: 0;
+ font-size: inherit;
+ margin: 0;
+ line-height: inherit;
+ padding: 0 6px;
+ min-width: 17em;
+ vertical-align: top;
+ min-height: 1.8em;
+ box-sizing: content-box;
+}
+.ace_searchbtn {
+ border: 1px solid #cbcbcb;
+ line-height: inherit;
+ display: inline-block;
+ padding: 0 6px;
+ background: #fff;
+ border-right: 0 none;
+ border-left: 1px solid #dcdcdc;
+ cursor: pointer;
+ margin: 0;
+ position: relative;
+ color: #666;
+}
+.ace_searchbtn:last-child {
+ border-radius: 0 3px 3px 0;
+ border-right: 1px solid #cbcbcb;
+}
+.ace_searchbtn:disabled {
+ background: none;
+ cursor: default;
+}
+.ace_searchbtn:hover {
+ background-color: #eef1f6;
+}
+.ace_searchbtn.prev, .ace_searchbtn.next {
+ padding: 0px 0.7em
+}
+.ace_searchbtn.prev:after, .ace_searchbtn.next:after {
+ content: "";
+ border: solid 2px #888;
+ width: 0.5em;
+ height: 0.5em;
+ border-width: 2px 0 0 2px;
+ display:inline-block;
+ transform: rotate(-45deg);
+}
+.ace_searchbtn.next:after {
+ border-width: 0 2px 2px 0 ;
+}
+.ace_searchbtn_close {
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;
+ border-radius: 50%;
+ border: 0 none;
+ color: #656565;
+ cursor: pointer;
+ font: 16px/16px Arial;
+ padding: 0;
+ height: 14px;
+ width: 14px;
+ top: 9px;
+ right: 7px;
+ position: absolute;
+}
+.ace_searchbtn_close:hover {
+ background-color: #656565;
+ background-position: 50% 100%;
+ color: white;
+}
+
+.ace_button {
+ margin-left: 2px;
+ cursor: pointer;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -o-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+ overflow: hidden;
+ opacity: 0.7;
+ border: 1px solid rgba(100,100,100,0.23);
+ padding: 1px;
+ box-sizing: border-box!important;
+ color: black;
+}
+
+.ace_button:hover {
+ background-color: #eee;
+ opacity:1;
+}
+.ace_button:active {
+ background-color: #ddd;
+}
+
+.ace_button.checked {
+ border-color: #3399ff;
+ opacity:1;
+}
+
+.ace_search_options{
+ margin-bottom: 3px;
+ text-align: right;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -o-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+ clear: both;
+}
+
+.ace_search_counter {
+ float: left;
+ font-family: arial;
+ padding: 0 8px;
+}`}),ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/ext/searchbox-css","ace/keyboard/hash_handler","ace/lib/keys","ace/config"],function(U,x,H){var j=U("../lib/dom"),z=U("../lib/lang"),Y=U("../lib/event"),G=U("./searchbox-css"),N=U("../keyboard/hash_handler").HashHandler,A=U("../lib/keys"),f=U("../config").nls,R=(j.importCssString(G,"ace_searchbox",!1),y.prototype.setEditor=function(C){C.searchBox=this,C.renderer.scroller.appendChild(this.element),this.editor=C},y.prototype.setSession=function(C){this.searchRange=null,this.$syncOptions(!0)},y.prototype.$initElements=function(C){this.searchBox=C.querySelector(".ace_search_form"),this.replaceBox=C.querySelector(".ace_replace_form"),this.searchOption=C.querySelector("[action=searchInSelection]"),this.replaceOption=C.querySelector("[action=toggleReplace]"),this.regExpOption=C.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=C.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=C.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=C.querySelector(".ace_search_counter")},y.prototype.$init=function(){var C=this.element,d=(this.$initElements(C),this);Y.addListener(C,"mousedown",function(h){setTimeout(function(){d.activeInput.focus()},0),Y.stopPropagation(h)}),Y.addListener(C,"click",function(h){var l=(h.target||h.srcElement).getAttribute("action");l&&d[l]?d[l]():d.$searchBarKb.commands[l]&&d.$searchBarKb.commands[l].exec(d),Y.stopPropagation(h)}),Y.addCommandKeyListener(C,function(h,l,n){n=A.keyCodeToString(n),l=d.$searchBarKb.findKeyCommand(l,n),l&&l.exec&&(l.exec(d),Y.stopEvent(h))}),this.$onChange=z.delayedCall(function(){d.find(!1,!1)}),Y.addListener(this.searchInput,"input",function(){d.$onChange.schedule(20)}),Y.addListener(this.searchInput,"focus",function(){d.activeInput=d.searchInput,d.searchInput.value&&d.highlight()}),Y.addListener(this.replaceInput,"focus",function(){d.activeInput=d.replaceInput,d.searchInput.value&&d.highlight()})},y.prototype.setSearchRange=function(C){(this.searchRange=C)?this.searchRangeMarker=this.editor.session.addMarker(C,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},y.prototype.$syncOptions=function(C){j.setCssClass(this.replaceOption,"checked",this.searchRange),j.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",j.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),j.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),j.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var d=this.editor.getReadOnly();this.replaceOption.style.display=d?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!d?"":"none",this.find(!1,!1,C)},y.prototype.highlight=function(C){this.editor.session.highlight(C||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},y.prototype.find=function(C,d,h){C=!this.editor.find(this.searchInput.value,{skipCurrent:C,backwards:d,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:h,range:this.searchRange})&&this.searchInput.value,j.setCssClass(this.searchBox,"ace_nomatch",C),this.editor._emit("findSearchBox",{match:!C}),this.highlight(),this.updateCounter()},y.prototype.updateCounter=function(){var C=this.editor,d=C.$search.$options.re,h=0,l=0;if(d){var n,o,i=this.searchRange?C.session.getTextRange(this.searchRange):C.getValue(),a=C.session.doc.positionToIndex(C.selection.anchor);for(this.searchRange&&(a-=C.session.doc.positionToIndex(this.searchRange.start)),d.lastIndex=0;(o=d.exec(i))&&((n=o.index)<=a&&l++,!(999<++h))&&(o[0]||(d.lastIndex=n+=1,!(n>=i.length))););}this.searchCounter.textContent=f("$0 of $1",[l,999%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,N=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,A=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,f=/^(?:\/(?:[^~/]|~0|~1)*)*$/,R=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,y=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function C(a){return U.copy(C[a=a=="full"?"full":"fast"])}function d(t){var r,e,t=t.match(x);return!!t&&(r=+t[1],e=+t[2],t=+t[3],1<=e)&&e<=12&&1<=t&&t<=(e!=2||(t=r)%4!=0||t%100==0&&t%400!=0?H[e]:29)}function h(c,r){var e,t,s,c=c.match(j);return!!c&&(e=c[1],t=c[2],s=c[3],c=c[5],e<=23&&t<=59&&s<=59||e==23&&t==59&&s==60)&&(!r||c)}(le.exports=C).fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":G,url:N,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:z,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:i,uuid:A,"json-pointer":f,"json-pointer-uri-fragment":R,"relative-json-pointer":y},C.full={date:d,time:h,"date-time":function(a){return a=a.split(l),a.length==2&&d(a[0])&&h(a[1],!0)},uri:function(a){return n.test(a)&&Y.test(a)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":G,url:N,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:z,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:i,uuid:A,"json-pointer":f,"json-pointer-uri-fragment":R,"relative-json-pointer":y};var l=/t|\s/i,n=/\/|:/,o=/[^\\]\\Z/;function i(a){if(o.test(a))return!1;try{return new RegExp(a),!0}catch{return!1}}},5689:function(le,m,Z){var U=Z(3969),x=Z(3724),H=Z(5359),j=Z(3508),z=Z(1869),Y=x.ucs2length,G=Z(2303),N=H.Validation;function A(l,n,o,i){var a=this,r=this._opts,e=[void 0],t={},s=[],c={},p=[],g={},b=[],w=(n=n||{schema:l,refVal:e,refs:t},function(K,ne,T){var F=f.call(this,K,ne,T);return 0<=F?{index:F,compiling:!0}:(F=this._compilations.length,this._compilations[F]={schema:K,root:ne,baseId:T},{index:F,compiling:!1})}.call(this,l,n,i)),E=this._compilations[w.index];if(w.compiling)return E.callValidate=u;var W=this._formats,B=this.RULES;try{var O=_(l,n,o,i),k=(E.validate=O,E.callValidate);return k&&(k.schema=O.schema,k.errors=null,k.refs=O.refs,k.refVal=O.refVal,k.root=O.root,k.$async=O.$async,r.sourceCode)&&(k.source=O.source),O}finally{(function(K,ne,T){K=f.call(this,K,ne,T),0<=K&&this._compilations.splice(K,1)}).call(this,l,n,i)}function u(){var K=E.validate,ne=K.apply(this,arguments);return u.errors=K.errors,ne}function _(K,ne,T,F){var V=!ne||ne.schema==K;if(ne.schema!=n.schema)return A.call(a,K,ne,T,F);T=K.$async===!0,F=z({isTop:!0,schema:K,isRoot:V,baseId:F,root:ne,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:H.MissingRef,RULES:B,validate:z,util:x,resolve:U,resolveRef:v,usePattern:M,useDefault:X,useCustomRule:Q,opts:r,formats:W,logger:a.logger,self:a}),F=h(e,C)+h(s,R)+h(p,y)+h(b,d)+F,r.processCode&&(F=r.processCode(F,K));try{var I=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",F)(a,B,W,n,e,p,b,G,Y,N);e[0]=I}catch(S){throw a.logger.error("Error compiling schema, function code:",F),S}return I.schema=K,I.errors=null,I.refs=t,I.refVal=e,I.root=V?I:ne,T&&(I.$async=!0),r.sourceCode===!0&&(I.source={code:F,patterns:s,defaults:p}),I}function v(K,ne,S){ne=U.url(K,ne);var F=t[ne];if(F!==void 0)return P(V=e[F],I="refVal["+F+"]");if(!S&&n.refs&&(F=n.refs[ne],F!==void 0))return P(V=n.refVal[F],I=$(ne,V));var V,I=$(ne),S=U.call(a,_,n,ne);if((S=S===void 0&&(F=o&&o[ne])?U.inlineRef(F,r.inlineRefs)?F:A.call(a,F,n,o,K):S)!==void 0)return V=S,F=t[F=ne],e[F]=V,P(S,I);delete t[ne]}function $(K,ne){var T=e.length;return e[T]=ne,"refVal"+(t[K]=T)}function P(K,ne){return typeof K=="object"||typeof K=="boolean"?{code:ne,schema:K,inline:!0}:{code:ne,$async:K&&!!K.$async}}function M(K){var ne=c[K];return ne===void 0&&(ne=c[K]=s.length,s[ne]=K),"pattern"+ne}function X(K){switch(typeof K){case"boolean":case"number":return""+K;case"string":return x.toQuotedString(K);case"object":var ne,T;return K===null?"null":(ne=j(K),(T=g[ne])===void 0&&(T=g[ne]=p.length,p[T]=K),"default"+T)}}function Q(K,ne,T,F){if(a._opts.validateSchema!==!1){var I=K.definition.dependencies;if(I&&!I.every(function(J){return Object.prototype.hasOwnProperty.call(T,J)}))throw new Error("parent schema must have all required keywords: "+I.join(","));if(I=K.definition.validateSchema,I&&!I(ne)){if(I="keyword schema is invalid: "+a.errorsText(I.errors),a._opts.validateSchema!="log")throw new Error(I);a.logger.error(I)}}var V,I=K.definition.compile,S=K.definition.inline,L=K.definition.macro;if(I)V=I.call(a,ne,T,F);else if(L)V=L.call(a,ne,T,F),r.validateSchema!==!1&&a.validateSchema(V,!0);else if(S)V=S.call(a,F,K.keyword,ne,T);else if(!(V=K.definition.validate))return;if(V===void 0)throw new Error('custom keyword "'+K.keyword+'"failed to compile');return I=b.length,{code:"customRule"+I,validate:b[I]=V}}}function f(l,n,o){for(var i=0;i",e=n?">":"<",t=void 0;if(!h&&typeof f!="number"&&f!==void 0)throw new Error(Z+" must be number");if(!a&&i!==void 0&&typeof i!="number"&&typeof i!="boolean")throw new Error(o+" must be number or boolean");a?(A=m.util.getData(i.$data,A,m.dataPathArr),j="exclIsNumber"+N,z="' + "+(Y="op"+N)+" + '",t=o,(s=s||[]).push(G=G+(" var schemaExcl"+N+" = "+A+"; ")+(" var "+(x="exclusive"+N)+"; var "+(H="exclType"+N)+" = typeof "+(A="schemaExcl"+N)+"; if ("+H+" != 'boolean' && "+H+" != 'undefined' && "+H+" != 'number') { ")),G="",m.createErrors!==!1?(G+=" { keyword: '"+(t||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+m.errorPath+" , schemaPath: "+m.util.toQuotedString(y)+" , params: {} ",m.opts.messages!==!1&&(G+=" , message: '"+o+" should be boolean' "),m.opts.verbose&&(G+=" , schema: validate.schema"+R+" , parentSchema: validate.schema"+m.schemaPath+" , data: "+d+" "),G+=" } "):G+=" {} ",c=G,G=s.pop(),!m.compositeRule&&C?m.async?G+=" throw new ValidationError(["+c+"]); ":G+=" validate.errors = ["+c+"]; return false; ":G+=" var err = "+c+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",G+=" } else if ( ",h&&(G+=" ("+l+" !== undefined && typeof "+l+" != 'number') || "),G+=" "+H+" == 'number' ? ( ("+x+" = "+l+" === undefined || "+A+" "+r+"= "+l+") ? "+d+" "+e+"= "+A+" : "+d+" "+e+" "+l+" ) : ( ("+x+" = "+A+" === true) ? "+d+" "+e+"= "+l+" : "+d+" "+e+" "+l+" ) || "+d+" !== "+d+") { var op"+N+" = "+x+" ? '"+r+"' : '"+r+"='; ",f===void 0&&(y=m.errSchemaPath+"/"+(t=o),l=A,h=a)):(z=r,(j=typeof i=="number")&&h?(Y="'"+z+"'",G+=" if ( ",h&&(G+=" ("+l+" !== undefined && typeof "+l+" != 'number') || "),G+=" ( "+l+" === undefined || "+i+" "+r+"= "+l+" ? "+d+" "+e+"= "+i+" : "+d+" "+e+" "+l+" ) || "+d+" !== "+d+") { "):(j&&f===void 0?(x=!0,y=m.errSchemaPath+"/"+(t=o),l=i,e+="="):(j&&(l=Math[n?"min":"max"](i,f)),i===(!j||l)?(x=!0,y=m.errSchemaPath+"/"+(t=o),e+="="):(x=!1,z+="=")),Y="'"+z+"'",G+=" if ( ",h&&(G+=" ("+l+" !== undefined && typeof "+l+" != 'number') || "),G+=" "+d+" "+e+" "+l+" || "+d+" !== "+d+") { ")),t=t||Z,(s=s||[]).push(G),G="",m.createErrors!==!1?(G+=" { keyword: '"+(t||"_limit")+"' , dataPath: (dataPath || '') + "+m.errorPath+" , schemaPath: "+m.util.toQuotedString(y)+" , params: { comparison: "+Y+", limit: "+l+", exclusive: "+x+" } ",m.opts.messages!==!1&&(G=G+" , message: 'should be "+z+" "+(h?"' + "+l:l+"'")),m.opts.verbose&&(G=(G+=" , schema: ")+(h?"validate.schema"+R:""+f)+" , parentSchema: validate.schema"+m.schemaPath+" , data: "+d+" "),G+=" } "):G+=" {} ";var s,c=G;return G=s.pop(),!m.compositeRule&&C?m.async?G+=" throw new ValidationError(["+c+"]); ":G+=" validate.errors = ["+c+"]; return false; ":G+=" var err = "+c+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",G+=" } ",C&&(G+=" else { "),G}},2407:function(le){le.exports=function(m,Z,U){var x,H=" ",j=m.level,R=m.dataLevel,z=m.schema[Z],Y=m.schemaPath+m.util.getProperty(Z),G=m.errSchemaPath+"/"+Z,N=!m.opts.allErrors,A="data"+(R||""),f=m.opts.$data&&z&&z.$data,R=f?(H+=" var schema"+j+" = "+m.util.getData(z.$data,R,m.dataPathArr)+"; ","schema"+j):z;if(f||typeof z=="number")return H+="if ( ",f&&(H+=" ("+R+" !== undefined && typeof "+R+" != 'number') || "),(j=[]).push(H+=" "+A+".length "+((x=Z)=="maxItems"?">":"<")+" "+R+") { "),H="",m.createErrors!==!1?(H+=" { keyword: '"+(x||"_limitItems")+"' , dataPath: (dataPath || '') + "+m.errorPath+" , schemaPath: "+m.util.toQuotedString(G)+" , params: { limit: "+R+" } ",m.opts.messages!==!1&&(H=(H=(H+=" , message: 'should NOT have ")+(Z=="maxItems"?"more":"fewer")+" than ")+(f?"' + "+R+" + '":""+z)+" items' "),m.opts.verbose&&(H=(H+=" , schema: ")+(f?"validate.schema"+Y:""+z)+" , parentSchema: validate.schema"+m.schemaPath+" , data: "+A+" "),H+=" } "):H+=" {} ",x=H,H=j.pop(),!m.compositeRule&&N?m.async?H+=" throw new ValidationError(["+x+"]); ":H+=" validate.errors = ["+x+"]; return false; ":H+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",H+="} ",N&&(H+=" else { "),H;throw new Error(Z+" must be number")}},1250:function(le){le.exports=function(m,Z,U){var x,H=" ",j=m.level,R=m.dataLevel,z=m.schema[Z],Y=m.schemaPath+m.util.getProperty(Z),G=m.errSchemaPath+"/"+Z,N=!m.opts.allErrors,A="data"+(R||""),f=m.opts.$data&&z&&z.$data,R=f?(H+=" var schema"+j+" = "+m.util.getData(z.$data,R,m.dataPathArr)+"; ","schema"+j):z;if(f||typeof z=="number")return H+="if ( ",f&&(H+=" ("+R+" !== undefined && typeof "+R+" != 'number') || "),m.opts.unicode===!1?H+=" "+A+".length ":H+=" ucs2length("+A+") ",(j=[]).push(H+=" "+((x=Z)=="maxLength"?">":"<")+" "+R+") { "),H="",m.createErrors!==!1?(H+=" { keyword: '"+(x||"_limitLength")+"' , dataPath: (dataPath || '') + "+m.errorPath+" , schemaPath: "+m.util.toQuotedString(G)+" , params: { limit: "+R+" } ",m.opts.messages!==!1&&(H=(H=(H+=" , message: 'should NOT be ")+(Z=="maxLength"?"longer":"shorter")+" than ")+(f?"' + "+R+" + '":""+z)+" characters' "),m.opts.verbose&&(H=(H+=" , schema: ")+(f?"validate.schema"+Y:""+z)+" , parentSchema: validate.schema"+m.schemaPath+" , data: "+A+" "),H+=" } "):H+=" {} ",x=H,H=j.pop(),!m.compositeRule&&N?m.async?H+=" throw new ValidationError(["+x+"]); ":H+=" validate.errors = ["+x+"]; return false; ":H+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",H+="} ",N&&(H+=" else { "),H;throw new Error(Z+" must be number")}},2596:function(le){le.exports=function(m,Z,U){var x,H=" ",j=m.level,R=m.dataLevel,z=m.schema[Z],Y=m.schemaPath+m.util.getProperty(Z),G=m.errSchemaPath+"/"+Z,N=!m.opts.allErrors,A="data"+(R||""),f=m.opts.$data&&z&&z.$data,R=f?(H+=" var schema"+j+" = "+m.util.getData(z.$data,R,m.dataPathArr)+"; ","schema"+j):z;if(f||typeof z=="number")return H+="if ( ",f&&(H+=" ("+R+" !== undefined && typeof "+R+" != 'number') || "),(j=[]).push(H+=" Object.keys("+A+").length "+((x=Z)=="maxProperties"?">":"<")+" "+R+") { "),H="",m.createErrors!==!1?(H+=" { keyword: '"+(x||"_limitProperties")+"' , dataPath: (dataPath || '') + "+m.errorPath+" , schemaPath: "+m.util.toQuotedString(G)+" , params: { limit: "+R+" } ",m.opts.messages!==!1&&(H=(H=(H+=" , message: 'should NOT have ")+(Z=="maxProperties"?"more":"fewer")+" than ")+(f?"' + "+R+" + '":""+z)+" properties' "),m.opts.verbose&&(H=(H+=" , schema: ")+(f?"validate.schema"+Y:""+z)+" , parentSchema: validate.schema"+m.schemaPath+" , data: "+A+" "),H+=" } "):H+=" {} ",x=H,H=j.pop(),!m.compositeRule&&N?m.async?H+=" throw new ValidationError(["+x+"]); ":H+=" validate.errors = ["+x+"]; return false; ":H+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",H+="} ",N&&(H+=" else { "),H;throw new Error(Z+" must be number")}},9486:function(le){le.exports=function(m,Z,U){var x=" ",H=m.schema[Z],j=m.schemaPath+m.util.getProperty(Z),z=m.errSchemaPath+"/"+Z,Y=!m.opts.allErrors,G=m.util.copy(m),N="",A=(G.level++,"valid"+G.level),f=G.baseId,R=!0,y=H;if(y)for(var C,d=-1,h=y.length-1;d "+r+") { ",t=G+"["+r+"]",f.schema=c,f.schemaPath=j+"["+r+"]",f.errSchemaPath=z+"/"+r,f.errorPath=m.util.getPathExpr(m.errorPath,r,m.opts.jsonPointers,!0),f.dataPathArr[d]=r,s=m.validate(f),f.baseId=l,m.util.varOccurences(s,h)<2?x+=" "+m.util.varReplace(s,h,t)+" ":x+=" var "+h+" = "+t+"; "+s+" ",x+=" } ",Y)&&(x+=" if ("+y+") { ",R+="}")}typeof i=="object"&&(m.opts.strictKeywords?typeof i=="object"&&0 "+H.length+") { for (var "+C+" = "+H.length+"; "+C+" < "+G+".length; "+C+"++) { ",f.errorPath=m.util.getPathExpr(m.errorPath,C,m.opts.jsonPointers,!0),t=G+"["+C+"]",f.dataPathArr[d]=C,s=m.validate(f),f.baseId=l,m.util.varOccurences(s,h)<2?x+=" "+m.util.varReplace(s,h,t)+" ":x+=" var "+h+" = "+t+"; "+s+" ",Y&&(x+=" if (!"+y+") break; "),x+=" } } ",Y)&&(x+=" if ("+y+") { ",R+="}")}else(m.opts.strictKeywords?typeof H=="object"&&0 1e-"+m.opts.multipleOfPrecision+" ":x+=" division"+H+" !== parseInt(division"+H+") ",x+=" ) ",A&&(x+=" ) "),Z=[],Z.push(x+=" ) { "),x="",m.createErrors!==!1?(x+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+m.errorPath+" , schemaPath: "+m.util.toQuotedString(Y)+" , params: { multipleOf: "+f+" } ",m.opts.messages!==!1&&(x=x+" , message: 'should be multiple of "+(A?"' + "+f:f+"'")),m.opts.verbose&&(x=(x+=" , schema: ")+(A?"validate.schema"+z:""+j)+" , parentSchema: validate.schema"+m.schemaPath+" , data: "+N+" "),x+=" } "):x+=" {} ",H=x,x=Z.pop(),!m.compositeRule&&G?m.async?x+=" throw new ValidationError(["+H+"]); ":x+=" validate.errors = ["+H+"]; return false; ":x+=" var err = "+H+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",x+="} ",G&&(x+=" else { "),x}},7946:function(le){le.exports=function(m,G,U){var x,H,j=" ",f=m.level,A=m.dataLevel,z=m.schema[G],Y=m.schemaPath+m.util.getProperty(G),G=m.errSchemaPath+"/"+G,N=!m.opts.allErrors,A="data"+(A||""),f="errs__"+f,R=m.util.copy(m),y=(R.level++,"valid"+R.level);return(m.opts.strictKeywords?typeof z=="object"&&0=m.opts.loopRequired,i=m.opts.ownProperties;if(G){if(x+=" var missing"+H+"; ",j){f||(x+=" var "+R+" = validate.schema"+z+"; ");var a="' + "+(p="schema"+H+"["+(t="i"+H)+"]")+" + '";m.opts._errorDataPathProperty&&(m.errorPath=m.util.getPathExpr(o,p,m.opts.jsonPointers)),x+=" var "+A+" = true; ",f&&(x+=" if (schema"+H+" === undefined) "+A+" = true; else if (!Array.isArray(schema"+H+")) "+A+" = false; else {"),x+=" for (var "+t+" = 0; "+t+" < "+R+".length; "+t+"++) { "+A+" = "+N+"["+R+"["+t+"]] !== undefined ",i&&(x+=" && Object.prototype.hasOwnProperty.call("+N+", "+R+"["+t+"]) "),x+="; if (!"+A+") break; } ",f&&(x+=" } "),(c=c||[]).push(x+=" if (!"+A+") { "),x="",m.createErrors!==!1?(x+=" { keyword: 'required' , dataPath: (dataPath || '') + "+m.errorPath+" , schemaPath: "+m.util.toQuotedString(Y)+" , params: { missingProperty: '"+a+"' } ",m.opts.messages!==!1&&(x+=" , message: '",m.opts._errorDataPathProperty?x+="is a required property":x+="should have required property \\'"+a+"\\'",x+="' "),m.opts.verbose&&(x+=" , schema: validate.schema"+z+" , parentSchema: validate.schema"+m.schemaPath+" , data: "+N+" "),x+=" } "):x+=" {} ";var r=x,x=c.pop()}else{x+=" if ( ";var e=y;if(e)for(var t=-1,s=e.length-1;t 1) { ",j=m.schema.items&&m.schema.items.type,y=Array.isArray(j),!j||j=="object"||j=="array"||y&&(0<=j.indexOf("object")||0<=j.indexOf("array"))?H+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+A+"[i], "+A+"[j])) { "+f+" = false; break outer; } } } ":(H=(H+=" var itemIndices = {}, item; for (;i--;) { var item = "+A+"[i]; ")+" if ("+m.util["checkDataType"+(y?"s":"")](j,"item",m.opts.strictNumbers,!0)+") continue; ",y&&(H+=` if (typeof item == 'string') item = '"' + item; `),H+=" if (typeof itemIndices[item] == 'number') { "+f+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "),H+=" } ",R&&(H+=" } "),(x=x||[]).push(H+=" if (!"+f+") { "),H="",m.createErrors!==!1?(H+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+m.errorPath+" , schemaPath: "+m.util.toQuotedString(G)+" , params: { i: i, j: j } ",m.opts.messages!==!1&&(H+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),m.opts.verbose&&(H=(H+=" , schema: ")+(R?"validate.schema"+Y:""+z)+" , parentSchema: validate.schema"+m.schemaPath+" , data: "+A+" "),H+=" } "):H+=" {} ",j=H,H=x.pop(),!m.compositeRule&&N?m.async?H+=" throw new ValidationError(["+j+"]); ":H+=" validate.errors = ["+j+"]; return false; ":H+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",H+=" } ",N&&(H+=" else { ")):N&&(H+=" if (true) { "),H}},1869:function(le){le.exports=function(m,Z,U){var x="",H=m.schema.$async===!0,j=m.util.schemaHasRulesExcept(m.schema,m.RULES.all,"$ref"),z=m.self._getId(m.schema);if(m.opts.strictKeywords){var Y=m.util.schemaUnknownRules(m.schema,m.RULES.keywords);if(Y){if(Y="unknown keyword: "+Y,m.opts.strictKeywords!=="log")throw new Error(Y);m.logger.warn(Y)}}if(m.isTop&&(x+=" var validate = ",H&&(m.async=!0,x+="async "),x+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",z)&&(m.opts.sourceCode||m.opts.processCode)&&(x+=" /*# sourceURL="+z+" */ "),typeof m.schema=="boolean"||!j&&!m.schema.$ref)N=m.level,A=m.dataLevel,B=m.schema[Z="false schema"],a=m.schemaPath+m.util.getProperty(Z),r=m.errSchemaPath+"/"+Z,C=!m.opts.allErrors,f="data"+(A||""),y="valid"+N,m.schema===!1?(m.isTop?C=!0:x+=" var "+y+" = false; ",(X=X||[]).push(x),x="",m.createErrors!==!1?(x+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+m.errorPath+" , schemaPath: "+m.util.toQuotedString(r)+" , params: {} ",m.opts.messages!==!1&&(x+=" , message: 'boolean schema is false' "),m.opts.verbose&&(x+=" , schema: false , parentSchema: validate.schema"+m.schemaPath+" , data: "+f+" "),x+=" } "):x+=" {} ",b=x,x=X.pop(),!m.compositeRule&&C?m.async?x+=" throw new ValidationError(["+b+"]); ":x+=" validate.errors = ["+b+"]; return false; ":x+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "):m.isTop?x+=H?" return data; ":" validate.errors = null; return true; ":x+=" var "+y+" = true; ",m.isTop&&(x+=" }; return validate; ");else{if(m.isTop){var G=m.isTop,N=m.level=0,A=m.dataLevel=0,f="data";if(m.rootId=m.resolve.fullPath(m.self._getId(m.root.schema)),m.baseId=m.baseId||m.rootId,delete m.isTop,m.dataPathArr=[""],m.schema.default!==void 0&&m.opts.useDefaults&&m.opts.strictDefaults){var R="default is ignored in the schema root";if(m.opts.strictDefaults!=="log")throw new Error(R);m.logger.warn(R)}x=(x+=" var vErrors = null; ")+" var errors = 0; if (rootData === undefined) rootData = data; "}else{if(N=m.level,f="data"+((A=m.dataLevel)||""),z&&(m.baseId=m.resolve.url(m.baseId,z)),H&&!m.async)throw new Error("async schema in sync schema");x+=" var errs_"+N+" = errors;"}var y="valid"+N,C=!m.opts.allErrors,d="",h="",l=m.schema.type,n=Array.isArray(l);if(l&&m.opts.nullable&&m.schema.nullable===!0&&(n?l.indexOf("null")==-1&&(l=l.concat("null")):l!="null"&&(l=[l,"null"],n=!0)),n&&l.length==1&&(l=l[0],n=!1),m.schema.$ref&&j){if(m.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+m.errSchemaPath+'" (see option extendRefs)');m.opts.extendRefs!==!0&&(j=!1,m.logger.warn('$ref: keywords ignored in schema at path "'+m.errSchemaPath+'"'))}if(m.schema.$comment&&m.opts.$comment&&(x+=" "+m.RULES.all.$comment.code(m,"$comment")),l){m.opts.coerceTypes&&(o=m.util.coerceToTypes(m.opts.coerceTypes,l));var o,i=m.RULES.types[l];if(o||n||i===!0||i&&!F(i)){var a=m.schemaPath+".type",r=m.errSchemaPath+"/type",a=m.schemaPath+".type",r=m.errSchemaPath+"/type";if(x+=" if ("+m.util[n?"checkDataTypes":"checkDataType"](l,f,m.opts.strictNumbers,!0)+") { ",o){var e="dataType"+N,t="coerced"+N,s=(x+=" var "+e+" = typeof "+f+"; var "+t+" = undefined; ",m.opts.coerceTypes=="array"&&(x+=" if ("+e+" == 'object' && Array.isArray("+f+") && "+f+".length == 1) { "+f+" = "+f+"[0]; "+e+" = typeof "+f+"; if ("+m.util.checkDataType(m.schema.type,f,m.opts.strictNumbers)+") "+t+" = "+f+"; } "),x+=" if ("+t+" !== undefined) ; ",o);if(s)for(var c,p=-1,g=s.length-1;p",9:"Array"},G="UnquotedIdentifier",N="QuotedIdentifier",A="Rbracket",f="Rparen",R="Comma",y="Colon",C="Rbrace",d="Number",h="Current",l="Expref",n="Pipe",o="Flatten",i="Star",a="Filter",r="Lbrace",e="Lbracket",t="Lparen",s="Literal",c={".":"Dot","*":i,",":R,":":y,"{":r,"}":C,"]":A,"(":t,")":f,"@":h},p={"<":!0,">":!0,"=":!0,"!":!0},g={" ":!0," ":!0,"\n":!0};function b(k){return"0"<=k&&k<="9"||k==="-"}function w(){}w.prototype={tokenize:function(k){var u,_,v=[];for(this._current=0;this._current"?k[this._current]==="="?(this._current++,{type:"GTE",value:">=",start:u}):{type:"GT",value:">",start:u}:_==="="&&k[this._current]==="="?(this._current++,{type:"EQ",value:"==",start:u}):void 0},_consumeLiteral:function(k){this._current++;for(var u=this._current,_=k.length;k[this._current]!=="`"&&this._current<_;){var v=this._current;k[v]!=="\\"||k[v+1]!=="\\"&&k[v+1]!=="`"?v++:v+=2,this._current=v}return u=(u=z(k.slice(u,this._current))).replace("\\`","`"),u=this._looksLikeJSON(u)?JSON.parse(u):JSON.parse('"'+u+'"'),this._current++,u},_looksLikeJSON:function(k){if(k==="")return!1;if(0<='[{"'.indexOf(k[0])||0<=["true","false","null"].indexOf(k))return!0;if(!(0<="-0123456789".indexOf(k[0])))return!1;try{return JSON.parse(k),!0}catch{return!1}}};var E={};function W(){}function B(k){this.runtime=k}function O(k){this._interpreter=k,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[0]}]},avg:{_func:this._functionAvg,_signature:[{types:[8]}]},ceil:{_func:this._functionCeil,_signature:[{types:[0]}]},contains:{_func:this._functionContains,_signature:[{types:[2,3]},{types:[1]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[2]},{types:[2]}]},floor:{_func:this._functionFloor,_signature:[{types:[0]}]},length:{_func:this._functionLength,_signature:[{types:[2,3,4]}]},map:{_func:this._functionMap,_signature:[{types:[6]},{types:[3]}]},max:{_func:this._functionMax,_signature:[{types:[8,9]}]},merge:{_func:this._functionMerge,_signature:[{types:[4],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[3]},{types:[6]}]},sum:{_func:this._functionSum,_signature:[{types:[8]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[2]},{types:[2]}]},min:{_func:this._functionMin,_signature:[{types:[8,9]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[3]},{types:[6]}]},type:{_func:this._functionType,_signature:[{types:[1]}]},keys:{_func:this._functionKeys,_signature:[{types:[4]}]},values:{_func:this._functionValues,_signature:[{types:[4]}]},sort:{_func:this._functionSort,_signature:[{types:[9,8]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[3]},{types:[6]}]},join:{_func:this._functionJoin,_signature:[{types:[2]},{types:[9]}]},reverse:{_func:this._functionReverse,_signature:[{types:[2,3]}]},to_array:{_func:this._functionToArray,_signature:[{types:[1]}]},to_string:{_func:this._functionToString,_signature:[{types:[1]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[1]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[1],variadic:!0}]}}}E.EOF=0,E[G]=0,E[N]=0,E[A]=0,E[f]=0,E[R]=0,E[C]=0,E[d]=0,E[h]=0,E[l]=0,E.Pipe=1,E.Or=2,E.And=3,E.EQ=5,E.GT=5,E.LT=5,E.GTE=5,E.LTE=5,E.NE=5,E[o]=9,E.Star=20,E[a]=21,E.Dot=40,E.Not=45,E[r]=50,E[e]=55,E[t]=60,W.prototype={parse:function(_){this._loadTokens(_),this.index=0;var u,_=this.expression(0);if(this._lookahead(0)!=="EOF")throw u=this._lookaheadToken(0),(u=new Error("Unexpected token type: "+u.type+", value: "+u.value)).name="ParserError",u;return _},_loadTokens:function(k){var u=new w().tokenize(k);u.push({type:"EOF",value:"",start:k.length}),this.tokens=u},expression:function(k){for(var u=this._lookaheadToken(0),_=(this._advance(),this.nud(u)),v=this._lookahead(0);kNumber.MAX_SAFE_INTEGER||X=d.length)throw new SyntaxError("Unexpected end of JSON input")}},m.stringify=function(d,h,l){if(H(d)){var n=0;switch(typeof(i=typeof l=="object"?l.space:l)){case"number":var o=101){q[0]=q[0].slice(0,-1);for(var de=q.length-1,ue=1;ue= 0x80 (not a basic code point)","invalid-input":"Invalid input"},c=C-d,p=Math.floor,g=String.fromCharCode;function b(se){throw new RangeError(s[se])}function w(se,q){for(var oe=[],de=se.length;de--;)oe[de]=q(se[de]);return oe}function E(se,q){var oe=se.split("@"),de="";oe.length>1&&(de=oe[0]+"@",se=oe[1]),se=se.replace(t,".");var ue=se.split("."),Ee=w(ue,q).join(".");return de+Ee}function W(se){for(var q=[],oe=0,de=se.length;oe=55296&&ue<=56319&&oe>1,q+=p(q/oe);q>c*h>>1;ue+=C)q=p(q/c);return p(ue+(c+1)*q/(q+l))},u=function(q){var oe=[],de=q.length,ue=0,Ee=i,_e=o,He=q.lastIndexOf(a);He<0&&(He=0);for(var Fe=0;Fe=128&&b("not-basic"),oe.push(q.charCodeAt(Fe));for(var Ze=He>0?He+1:0;Ze=de&&b("invalid-input");var Be=B(q.charCodeAt(Ze++));(Be>=C||Be>p((y-ue)/Oe))&&b("overflow"),ue+=Be*Oe;var De=je<=_e?d:je>=_e+h?h:je-_e;if(Bep(y/ze)&&b("overflow"),Oe*=ze}var Ke=oe.length+1;_e=k(ue-Me,Ke,Me==0),p(ue/Ke)>y-Ee&&b("overflow"),Ee+=p(ue/Ke),ue%=Ke,oe.splice(ue++,0,Ee)}return String.fromCodePoint.apply(String,oe)},_=function(q){var oe=[];q=W(q);var de=q.length,ue=i,Ee=0,_e=o,He=!0,Fe=!1,Ze=void 0;try{for(var Me=q[Symbol.iterator](),Oe;!(He=(Oe=Me.next()).done);He=!0){var je=Oe.value;je<128&&oe.push(g(je))}}catch(pt){Fe=!0,Ze=pt}finally{try{!He&&Me.return&&Me.return()}finally{if(Fe)throw Ze}}var Be=oe.length,De=Be;for(Be&&oe.push(a);De=ue&&atp((y-Ee)/Qe)&&b("overflow"),Ee+=(ze-ue)*Qe,ue=ze;var tt=!0,lt=!1,nt=void 0;try{for(var gt=q[Symbol.iterator](),It;!(tt=(It=gt.next()).done);tt=!0){var bt=It.value;if(bty&&b("overflow"),bt==ue){for(var mt=Ee,ft=C;;ft+=C){var Ct=ft<=_e?d:ft>=_e+h?h:ft-_e;if(mt>6|192).toString(16).toUpperCase()+"%"+(q&63|128).toString(16).toUpperCase():oe="%"+(q>>12|224).toString(16).toUpperCase()+"%"+(q>>6&63|128).toString(16).toUpperCase()+"%"+(q&63|128).toString(16).toUpperCase(),oe}function M(se){for(var q="",oe=0,de=se.length;oe=194&&ue<224){if(de-oe>=6){var Ee=parseInt(se.substr(oe+4,2),16);q+=String.fromCharCode((ue&31)<<6|Ee&63)}else q+=se.substr(oe,6);oe+=6}else if(ue>=224){if(de-oe>=9){var _e=parseInt(se.substr(oe+4,2),16),He=parseInt(se.substr(oe+7,2),16);q+=String.fromCharCode((ue&15)<<12|(_e&63)<<6|He&63)}else q+=se.substr(oe,9);oe+=9}else q+=se.substr(oe,3),oe+=3}return q}function X(se,q){function oe(de){var ue=M(de);return ue.match(q.UNRESERVED)?ue:de}return se.scheme&&(se.scheme=String(se.scheme).replace(q.PCT_ENCODED,oe).toLowerCase().replace(q.NOT_SCHEME,"")),se.userinfo!==void 0&&(se.userinfo=String(se.userinfo).replace(q.PCT_ENCODED,oe).replace(q.NOT_USERINFO,P).replace(q.PCT_ENCODED,j)),se.host!==void 0&&(se.host=String(se.host).replace(q.PCT_ENCODED,oe).toLowerCase().replace(q.NOT_HOST,P).replace(q.PCT_ENCODED,j)),se.path!==void 0&&(se.path=String(se.path).replace(q.PCT_ENCODED,oe).replace(se.scheme?q.NOT_PATH:q.NOT_PATH_NOSCHEME,P).replace(q.PCT_ENCODED,j)),se.query!==void 0&&(se.query=String(se.query).replace(q.PCT_ENCODED,oe).replace(q.NOT_QUERY,P).replace(q.PCT_ENCODED,j)),se.fragment!==void 0&&(se.fragment=String(se.fragment).replace(q.PCT_ENCODED,oe).replace(q.NOT_FRAGMENT,P).replace(q.PCT_ENCODED,j)),se}function Q(se){return se.replace(/^0*(.*)/,"$1")||"0"}function K(se,q){var oe=se.match(q.IPV4ADDRESS)||[],de=f(oe,2),ue=de[1];return ue?ue.split(".").map(Q).join("."):se}function ne(se,q){var oe=se.match(q.IPV6ADDRESS)||[],de=f(oe,3),ue=de[1],Ee=de[2];if(ue){for(var _e=ue.toLowerCase().split("::").reverse(),He=f(_e,2),Fe=He[0],Ze=He[1],Me=Ze?Ze.split(":").map(Q):[],Oe=Fe.split(":").map(Q),je=q.IPV4ADDRESS.test(Oe[Oe.length-1]),Be=je?7:8,De=Oe.length-Be,ze=Array(Be),Ke=0;Ke1){var ut=ze.slice(0,qe.index),at=ze.slice(qe.index+qe.length);et=ut.join(":")+"::"+at.join(":")}else et=ze.join(":");return Ee&&(et+="%"+Ee),et}else return se}var T=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,F="".match(/(){0}/)[1]===void 0;function V(se){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},oe={},de=q.iri!==!1?A:N;q.reference==="suffix"&&(se=(q.scheme?q.scheme+":":"")+"//"+se);var ue=se.match(T);if(ue){F?(oe.scheme=ue[1],oe.userinfo=ue[3],oe.host=ue[4],oe.port=parseInt(ue[5],10),oe.path=ue[6]||"",oe.query=ue[7],oe.fragment=ue[8],isNaN(oe.port)&&(oe.port=ue[5])):(oe.scheme=ue[1]||void 0,oe.userinfo=se.indexOf("@")!==-1?ue[3]:void 0,oe.host=se.indexOf("//")!==-1?ue[4]:void 0,oe.port=parseInt(ue[5],10),oe.path=ue[6]||"",oe.query=se.indexOf("?")!==-1?ue[7]:void 0,oe.fragment=se.indexOf("#")!==-1?ue[8]:void 0,isNaN(oe.port)&&(oe.port=se.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?ue[4]:void 0)),oe.host&&(oe.host=ne(K(oe.host,de),de)),oe.scheme===void 0&&oe.userinfo===void 0&&oe.host===void 0&&oe.port===void 0&&!oe.path&&oe.query===void 0?oe.reference="same-document":oe.scheme===void 0?oe.reference="relative":oe.fragment===void 0?oe.reference="absolute":oe.reference="uri",q.reference&&q.reference!=="suffix"&&q.reference!==oe.reference&&(oe.error=oe.error||"URI is not a "+q.reference+" reference.");var Ee=$[(q.scheme||oe.scheme||"").toLowerCase()];if(!q.unicodeSupport&&(!Ee||!Ee.unicodeSupport)){if(oe.host&&(q.domainHost||Ee&&Ee.domainHost))try{oe.host=v.toASCII(oe.host.replace(de.PCT_ENCODED,M).toLowerCase())}catch(_e){oe.error=oe.error||"Host's domain name can not be converted to ASCII via punycode: "+_e}X(oe,N)}else X(oe,de);Ee&&Ee.parse&&Ee.parse(oe,q)}else oe.error=oe.error||"URI can not be parsed.";return oe}function I(se,q){var oe=q.iri!==!1?A:N,de=[];return se.userinfo!==void 0&&(de.push(se.userinfo),de.push("@")),se.host!==void 0&&de.push(ne(K(String(se.host),oe),oe).replace(oe.IPV6ADDRESS,function(ue,Ee,_e){return"["+Ee+(_e?"%25"+_e:"")+"]"})),(typeof se.port=="number"||typeof se.port=="string")&&(de.push(":"),de.push(String(se.port))),de.length?de.join(""):void 0}var S=/^\.\.?\//,L=/^\/\.(\/|$)/,D=/^\/\.\.(\/|$)/,J=/^\/?(?:.|\n)*?(?=\/|$)/;function re(se){for(var q=[];se.length;)if(se.match(S))se=se.replace(S,"");else if(se.match(L))se=se.replace(L,"/");else if(se.match(D))se=se.replace(D,"/"),q.pop();else if(se==="."||se==="..")se="";else{var oe=se.match(J);if(oe){var de=oe[0];se=se.slice(de.length),q.push(de)}else throw new Error("Unexpected dot segment condition")}return q.join("")}function pe(se){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},oe=q.iri?A:N,de=[],ue=$[(q.scheme||se.scheme||"").toLowerCase()];if(ue&&ue.serialize&&ue.serialize(se,q),se.host&&!oe.IPV6ADDRESS.test(se.host)){if(q.domainHost||ue&&ue.domainHost)try{se.host=q.iri?v.toUnicode(se.host):v.toASCII(se.host.replace(oe.PCT_ENCODED,M).toLowerCase())}catch(He){se.error=se.error||"Host's domain name can not be converted to "+(q.iri?"Unicode":"ASCII")+" via punycode: "+He}}X(se,oe),q.reference!=="suffix"&&se.scheme&&(de.push(se.scheme),de.push(":"));var Ee=I(se,q);if(Ee!==void 0&&(q.reference!=="suffix"&&de.push("//"),de.push(Ee),se.path&&se.path.charAt(0)!=="/"&&de.push("/")),se.path!==void 0){var _e=se.path;!q.absolutePath&&(!ue||!ue.absolutePath)&&(_e=re(_e)),Ee===void 0&&(_e=_e.replace(/^\/\//,"/%2F")),de.push(_e)}return se.query!==void 0&&(de.push("?"),de.push(se.query)),se.fragment!==void 0&&(de.push("#"),de.push(se.fragment)),de.join("")}function me(se,q){var oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},de=arguments[3],ue={};return de||(se=V(pe(se,oe),oe),q=V(pe(q,oe),oe)),oe=oe||{},!oe.tolerant&&q.scheme?(ue.scheme=q.scheme,ue.userinfo=q.userinfo,ue.host=q.host,ue.port=q.port,ue.path=re(q.path||""),ue.query=q.query):(q.userinfo!==void 0||q.host!==void 0||q.port!==void 0?(ue.userinfo=q.userinfo,ue.host=q.host,ue.port=q.port,ue.path=re(q.path||""),ue.query=q.query):(q.path?(q.path.charAt(0)==="/"?ue.path=re(q.path):((se.userinfo!==void 0||se.host!==void 0||se.port!==void 0)&&!se.path?ue.path="/"+q.path:se.path?ue.path=se.path.slice(0,se.path.lastIndexOf("/")+1)+q.path:ue.path=q.path,ue.path=re(ue.path)),ue.query=q.query):(ue.path=se.path,q.query!==void 0?ue.query=q.query:ue.query=se.query),ue.userinfo=se.userinfo,ue.host=se.host,ue.port=se.port),ue.scheme=se.scheme),ue.fragment=q.fragment,ue}function ye(se,q,oe){var de=Y({scheme:"null"},oe);return pe(me(V(se,de),V(q,de),de,!0),de)}function xe(se,q){return typeof se=="string"?se=pe(V(se,q),q):H(se)==="object"&&(se=V(pe(se,q),q)),se}function be(se,q,oe){return typeof se=="string"?se=pe(V(se,oe),oe):H(se)==="object"&&(se=pe(se,oe)),typeof q=="string"?q=pe(V(q,oe),oe):H(q)==="object"&&(q=pe(q,oe)),se===q}function Ae(se,q){return se&&se.toString().replace(!q||!q.iri?N.ESCAPE:A.ESCAPE,P)}function we(se,q){return se&&se.toString().replace(!q||!q.iri?N.PCT_ENCODED:A.PCT_ENCODED,M)}var Re={scheme:"http",domainHost:!0,parse:function(q,oe){return q.host||(q.error=q.error||"HTTP URIs must have a host."),q},serialize:function(q,oe){var de=String(q.scheme).toLowerCase()==="https";return(q.port===(de?443:80)||q.port==="")&&(q.port=void 0),q.path||(q.path="/"),q}},We={scheme:"https",domainHost:Re.domainHost,parse:Re.parse,serialize:Re.serialize};function Se(se){return typeof se.secure=="boolean"?se.secure:String(se.scheme).toLowerCase()==="wss"}var ve={scheme:"ws",domainHost:!0,parse:function(q,oe){var de=q;return de.secure=Se(de),de.resourceName=(de.path||"/")+(de.query?"?"+de.query:""),de.path=void 0,de.query=void 0,de},serialize:function(q,oe){if((q.port===(Se(q)?443:80)||q.port==="")&&(q.port=void 0),typeof q.secure=="boolean"&&(q.scheme=q.secure?"wss":"ws",q.secure=void 0),q.resourceName){var de=q.resourceName.split("?"),ue=f(de,2),Ee=ue[0],_e=ue[1];q.path=Ee&&Ee!=="/"?Ee:void 0,q.query=_e,q.resourceName=void 0}return q.fragment=void 0,q}},Le={scheme:"wss",domainHost:ve.domainHost,parse:ve.parse,serialize:ve.serialize},Pe={},ge="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",te="[0-9A-Fa-f]",ie=x(x("%[EFef]"+te+"%"+te+te+"%"+te+te)+"|"+x("%[89A-Fa-f]"+te+"%"+te+te)+"|"+x("%"+te+te)),ce="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",fe=U("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),Ie="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",$e=new RegExp(ge,"g"),ee=new RegExp(ie,"g"),ae=new RegExp(U("[^]",ce,"[\\.]",'[\\"]',fe),"g"),he=new RegExp(U("[^]",ge,Ie),"g"),Ce=he;function Te(se){var q=M(se);return q.match($e)?q:se}var ke={scheme:"mailto",parse:function(q,oe){var de=q,ue=de.to=de.path?de.path.split(","):[];if(de.path=void 0,de.query){for(var Ee=!1,_e={},He=de.query.split("&"),Fe=0,Ze=He.length;Fe1&&arguments[1]!==void 0?arguments[1]:1,a=i>0?o.toFixed(i).replace(/0+$/,"").replace(/\.$/,""):o.toString();return a||"0"}var j=function(){function o(i,a,r,e){m(this,o);var t=this;function s(p){if(p.startsWith("hsl")){var g=p.match(/([\-\d\.e]+)/g).map(Number),b=U(g,4),w=b[0],E=b[1],W=b[2],B=b[3];B===void 0&&(B=1),w/=360,E/=100,W/=100,t.hsla=[w,E,W,B]}else if(p.startsWith("rgb")){var O=p.match(/([\-\d\.e]+)/g).map(Number),k=U(O,4),u=k[0],_=k[1],v=k[2],$=k[3];$===void 0&&($=1),t.rgba=[u,_,v,$]}else p.startsWith("#")?t.rgba=o.hexToRgb(p):t.rgba=o.nameToRgb(p)||o.hexToRgb(p)}if(i!==void 0)if(Array.isArray(i))this.rgba=i;else if(r===void 0){var c=i&&""+i;c&&s(c.toLowerCase())}else this.rgba=[i,a,r,e===void 0?1:e]}return Z(o,[{key:"printRGB",value:function(a){var r=a?this.rgba:this.rgba.slice(0,3),e=r.map(function(t,s){return H(t,s===3?3:0)});return a?"rgba("+e+")":"rgb("+e+")"}},{key:"printHSL",value:function(a){var r=[360,100,100,1],e=["","%","%",""],t=a?this.hsla:this.hsla.slice(0,3),s=t.map(function(c,p){return H(c*r[p],p===3?3:1)+e[p]});return a?"hsla("+s+")":"hsl("+s+")"}},{key:"printHex",value:function(a){var r=this.hex;return a?r:r.substring(0,7)}},{key:"rgba",get:function(){if(this._rgba)return this._rgba;if(!this._hsla)throw new Error("No color is set");return this._rgba=o.hslToRgb(this._hsla)},set:function(a){a.length===3&&(a[3]=1),this._rgba=a,this._hsla=null}},{key:"rgbString",get:function(){return this.printRGB()}},{key:"rgbaString",get:function(){return this.printRGB(!0)}},{key:"hsla",get:function(){if(this._hsla)return this._hsla;if(!this._rgba)throw new Error("No color is set");return this._hsla=o.rgbToHsl(this._rgba)},set:function(a){a.length===3&&(a[3]=1),this._hsla=a,this._rgba=null}},{key:"hslString",get:function(){return this.printHSL()}},{key:"hslaString",get:function(){return this.printHSL(!0)}},{key:"hex",get:function(){var a=this.rgba,r=a.map(function(e,t){return t<3?e.toString(16):Math.round(e*255).toString(16)});return"#"+r.map(function(e){return e.padStart(2,"0")}).join("")},set:function(a){this.rgba=o.hexToRgb(a)}}],[{key:"hexToRgb",value:function(a){var r=(a.startsWith("#")?a.slice(1):a).replace(/^(\w{3})$/,"$1F").replace(/^(\w)(\w)(\w)(\w)$/,"$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/,"$1FF");if(!r.match(/^([0-9a-fA-F]{8})$/))throw new Error("Unknown hex color; "+a);var e=r.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map(function(t){return parseInt(t,16)});return e[3]=e[3]/255,e}},{key:"nameToRgb",value:function(a){var r=a.toLowerCase().replace("at","T").replace(/[aeiouyldf]/g,"").replace("ght","L").replace("rk","D").slice(-5,4),e=x[r];return e===void 0?e:o.hexToRgb(e.replace(/\-/g,"00").padStart(6,"f"))}},{key:"rgbToHsl",value:function(a){var r=U(a,4),e=r[0],t=r[1],s=r[2],c=r[3];e/=255,t/=255,s/=255;var p=Math.max(e,t,s),g=Math.min(e,t,s),b=void 0,w=void 0,E=(p+g)/2;if(p===g)b=w=0;else{var W=p-g;switch(w=E>.5?W/(2-p-g):W/(p+g),p){case e:b=(t-s)/W+(t1&&(_-=1),_<.16666666666666666?k+(u-k)*6*_:_<.5?u:_<.6666666666666666?k+(u-k)*(.6666666666666666-_)*6:k},E=s<.5?s*(1+t):s+t-s*t,W=2*s-E;p=w(W,E,e+1/3),g=w(W,E,e),b=w(W,E,e-1/3)}var B=[p*255,g*255,b*255].map(Math.round);return B[3]=c,B}}]),o}(),z=function(){function o(){m(this,o),this._events=[]}return Z(o,[{key:"add",value:function(a,r,e){a.addEventListener(r,e,!1),this._events.push({target:a,type:r,handler:e})}},{key:"remove",value:function(a,r,e){this._events=this._events.filter(function(t){var s=!0;return a&&a!==t.target&&(s=!1),r&&r!==t.type&&(s=!1),e&&e!==t.handler&&(s=!1),s&&o._doRemove(t.target,t.type,t.handler),!s})}},{key:"destroy",value:function(){this._events.forEach(function(a){return o._doRemove(a.target,a.type,a.handler)}),this._events=[]}}],[{key:"_doRemove",value:function(a,r,e){a.removeEventListener(r,e,!1)}}]),o}();function Y(o){var i=document.createElement("div");return i.innerHTML=o,i.firstElementChild}function G(o,i,a){var r=!1;function e(p,g,b){return Math.max(g,Math.min(p,b))}function t(p,g,b){if(b&&(r=!0),!!r){p.preventDefault();var w=i.getBoundingClientRect(),E=w.width,W=w.height,B=g.clientX,O=g.clientY,k=e(B-w.left,0,E),u=e(O-w.top,0,W);a(k/E,u/W)}}function s(p,g){var b=p.buttons===void 0?p.which:p.buttons;b===1?t(p,p,g):r=!1}function c(p,g){p.touches.length===1?t(p,p.touches[0],g):r=!1}o.add(i,"mousedown",function(p){s(p,!0)}),o.add(i,"touchstart",function(p){c(p,!0)}),o.add(window,"mousemove",s),o.add(i,"touchmove",c),o.add(window,"mouseup",function(p){r=!1}),o.add(i,"touchend",function(p){r=!1}),o.add(i,"touchcancel",function(p){r=!1})}var N=`linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em,
+ linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em`,A=360,f="keydown",R="mousedown",y="focusin";function C(o,i){return(i||document).querySelector(o)}function d(o){o.preventDefault(),o.stopPropagation()}function h(o,i,a,r,e){o.add(i,f,function(t){a.indexOf(t.key)>=0&&(e&&d(t),r(t))})}var l=function(){function o(i){m(this,o),this.settings={popup:"right",layout:"default",alpha:!0,editor:!0,editorFormat:"hex",cancelButton:!1,defaultColor:"#0cf"},this._events=new z,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(i)}return Z(o,[{key:"setOptions",value:function(a){var r=this;if(!a)return;var e=this.settings;function t(g,b,w){for(var E in g)w&&w.indexOf(E)>=0||(b[E]=g[E])}if(a instanceof HTMLElement)e.parent=a;else{e.parent&&a.parent&&e.parent!==a.parent&&(this._events.remove(e.parent),this._popupInited=!1),t(a,e),a.onChange&&(this.onChange=a.onChange),a.onDone&&(this.onDone=a.onDone),a.onOpen&&(this.onOpen=a.onOpen),a.onClose&&(this.onClose=a.onClose);var s=a.color||a.colour;s&&this._setColor(s)}var c=e.parent;if(c&&e.popup&&!this._popupInited){var p=function(b){return r.openHandler(b)};this._events.add(c,"click",p),h(this._events,c,[" ","Spacebar","Enter"],p),this._popupInited=!0}else a.parent&&!e.popup&&this.show()}},{key:"openHandler",value:function(a){if(this.show()){a&&a.preventDefault(),this.settings.parent.style.pointerEvents="none";var r=a&&a.type===f?this._domEdit:this.domElement;setTimeout(function(){return r.focus()},100),this.onOpen&&this.onOpen(this.colour)}}},{key:"closeHandler",value:function(a){var r=a&&a.type,e=!1;if(!a)e=!0;else if(r===R||r===y){var t=(this.__containedEvent||0)+100;a.timeStamp>t&&(e=!0)}else d(a),e=!0;e&&this.hide()&&(this.settings.parent.style.pointerEvents="",r!==R&&this.settings.parent.focus(),this.onClose&&this.onClose(this.colour))}},{key:"movePopup",value:function(a,r){this.closeHandler(),this.setOptions(a),r&&this.openHandler()}},{key:"setColor",value:function(a,r){this._setColor(a,{silent:r})}},{key:"_setColor",value:function(a,r){if(typeof a=="string"&&(a=a.trim()),!!a){r=r||{};var e=void 0;try{e=new j(a)}catch(s){if(r.failSilently)return;throw s}if(!this.settings.alpha){var t=e.hsla;t[3]=1,e.hsla=t}this.colour=this.color=e,this._setHSLA(null,null,null,null,r)}}},{key:"setColour",value:function(a,r){this.setColor(a,r)}},{key:"show",value:function(){var a=this.settings.parent;if(!a)return!1;if(this.domElement){var r=this._toggleDOM(!0);return this._setPosition(),r}var e=this.settings.template||'',t=Y(e);return this.domElement=t,this._domH=C(".picker_hue",t),this._domSL=C(".picker_sl",t),this._domA=C(".picker_alpha",t),this._domEdit=C(".picker_editor input",t),this._domSample=C(".picker_sample",t),this._domOkay=C(".picker_done button",t),this._domCancel=C(".picker_cancel button",t),t.classList.add("layout_"+this.settings.layout),this.settings.alpha||t.classList.add("no_alpha"),this.settings.editor||t.classList.add("no_editor"),this.settings.cancelButton||t.classList.add("no_cancel"),this._ifPopup(function(){return t.classList.add("popup")}),this._setPosition(),this.colour?this._updateUI():this._setColor(this.settings.defaultColor),this._bindEvents(),!0}},{key:"hide",value:function(){return this._toggleDOM(!1)}},{key:"destroy",value:function(){this._events.destroy(),this.domElement&&this.settings.parent.removeChild(this.domElement)}},{key:"_bindEvents",value:function(){var a=this,r=this,e=this.domElement,t=this._events;function s(g,b,w){t.add(g,b,w)}s(e,"click",function(g){return g.preventDefault()}),G(t,this._domH,function(g,b){return r._setHSLA(g)}),G(t,this._domSL,function(g,b){return r._setHSLA(null,g,1-b)}),this.settings.alpha&&G(t,this._domA,function(g,b){return r._setHSLA(null,null,null,1-b)});var c=this._domEdit;s(c,"input",function(g){r._setColor(this.value,{fromEditor:!0,failSilently:!0})}),s(c,"focus",function(g){var b=this;b.selectionStart===b.selectionEnd&&b.select()}),this._ifPopup(function(){var g=function(E){return a.closeHandler(E)};s(window,R,g),s(window,y,g),h(t,e,["Esc","Escape"],g);var b=function(E){a.__containedEvent=E.timeStamp};s(e,R,b),s(e,y,b),s(a._domCancel,"click",g)});var p=function(b){a._ifPopup(function(){return a.closeHandler(b)}),a.onDone&&a.onDone(a.colour)};s(this._domOkay,"click",p),h(t,e,["Enter"],p)}},{key:"_setPosition",value:function(){var a=this.settings.parent,r=this.domElement;a!==r.parentNode&&a.appendChild(r),this._ifPopup(function(e){getComputedStyle(a).position==="static"&&(a.style.position="relative");var t=e===!0?"popup_right":"popup_"+e;["popup_top","popup_bottom","popup_left","popup_right"].forEach(function(s){s===t?r.classList.add(s):r.classList.remove(s)}),r.classList.add(t)})}},{key:"_setHSLA",value:function(a,r,e,t,s){s=s||{};var c=this.colour,p=c.hsla;[a,r,e,t].forEach(function(g,b){(g||g===0)&&(p[b]=g)}),c.hsla=p,this._updateUI(s),this.onChange&&!s.silent&&this.onChange(c)}},{key:"_updateUI",value:function(a){if(!this.domElement)return;a=a||{};var r=this.colour,e=r.hsla,t="hsl("+e[0]*A+", 100%, 50%)",s=r.hslString,c=r.hslaString,p=this._domH,g=this._domSL,b=this._domA,w=C(".picker_selector",p),E=C(".picker_selector",g),W=C(".picker_selector",b);function B(M,X,Q){X.style.left=Q*100+"%"}function O(M,X,Q){X.style.top=Q*100+"%"}B(p,w,e[0]),this._domSL.style.backgroundColor=this._domH.style.color=t,B(g,E,e[1]),O(g,E,1-e[2]),g.style.color=s,O(b,W,1-e[3]);var k=s,u=k.replace("hsl","hsla").replace(")",", 0)"),_="linear-gradient("+[k,u]+")";if(this._domA.style.background=_+", "+N,!a.fromEditor){var v=this.settings.editorFormat,$=this.settings.alpha,P=void 0;switch(v){case"rgb":P=r.printRGB($);break;case"hsl":P=r.printHSL($);break;default:P=r.printHex($)}this._domEdit.value=P}this._domSample.style.color=c}},{key:"_ifPopup",value:function(a,r){this.settings.parent&&this.settings.popup?a&&a(this.settings.popup):r&&r()}},{key:"_toggleDOM",value:function(a){var r=this.domElement;if(!r)return!1;var e=a?"":"none",t=r.style.display!==e;return t&&(r.style.display=e),t}}]),o}(),n=document.createElement("style");return n.textContent='.picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:"";display:block;width:100%;height:0;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{flex:1 1 auto}.layout_default .picker_sl::before{content:"";display:block;padding-bottom:100%}.layout_default .picker_editor{order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{order:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px #1e90ff}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:#f5f5f5;background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:#fff}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid #fff;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%),linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%),linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.picker_alpha,.picker_sample{position:relative;background:linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0/2em 2em,linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em/2em 2em;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:"";position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:"";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}',document.documentElement.firstElementChild.appendChild(n),l.StyleElement=n,l}()},1262:function(le,m,Z){function U(te){return(U=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie})(te)}function x(te){var ie=z();return function(){var ce,fe=G(te),fe=(ce=ie?(ce=G(this).constructor,Reflect.construct(fe,arguments,ce)):fe.apply(this,arguments),this);if(ce&&(U(ce)==="object"||typeof ce=="function"))return ce;if(ce!==void 0)throw new TypeError("Derived constructors may only return object or undefined");if(fe!==void 0)return fe;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function H(te){var ie=typeof Map=="function"?new Map:void 0;return function(ce){if(ce===null||Function.toString.call(ce).indexOf("[native code]")===-1)return ce;if(typeof ce!="function")throw new TypeError("Super expression must either be null or a function");if(ie!==void 0){if(ie.has(ce))return ie.get(ce);ie.set(ce,fe)}function fe(){return j(ce,arguments,G(this).constructor)}return fe.prototype=Object.create(ce.prototype,{constructor:{value:fe,enumerable:!1,writable:!0,configurable:!0}}),Y(fe,ce)}(te)}function j(te,ie,ce){return(j=z()?Reflect.construct.bind():function(fe,Ie,$e){var ee=[null];return ee.push.apply(ee,Ie),Ie=new(Function.bind.apply(fe,ee)),$e&&Y(Ie,$e.prototype),Ie}).apply(null,arguments)}function z(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Y(te,ie){return(Y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ce,fe){return ce.__proto__=fe,ce})(te,ie)}function G(te){return(G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ie){return ie.__proto__||Object.getPrototypeOf(ie)})(te)}Z.d(m,{K:function(){return ge}});var N=function(te){var ie=fe;if(typeof te!="function"&&te!==null)throw new TypeError("Super expression must either be null or a function");ie.prototype=Object.create(te&&te.prototype,{constructor:{value:ie,writable:!0,configurable:!0}}),Object.defineProperty(ie,"prototype",{writable:!1}),te&&Y(ie,te);var ce=x(fe);function fe(Ie,$e){if(this instanceof fe)return(Ie=ce.call(this,Ie+" at position "+$e)).position=$e,Ie;throw new TypeError("Cannot call a class as a function")}return ie=fe,Object.defineProperty(ie,"prototype",{writable:!1}),ie}(H(Error)),A=92,f=47,R=42,y=123,C=125,d=91,h=93,l=40,n=41,o=32,i=10,a=9,r=13,e=8,t=12,s=34,c=43,p=45,g=39,b=48,w=49,E=57,W=44,B=46,O=58,k=59,u=65,_=97,v=69,$=101,P=70,M=102,X=160,Q=8192,K=8202,ne=8239,T=8287,F=12288,V=8220,I=8221,S=8216,L=8217,D=96,J=180;function re(te){return b<=te&&te<=E||u<=te&&te<=P||_<=te&&te<=M}function pe(te){return b<=te&&te<=E}var me=/^[,:[\]{}()\n]$/;function ye(te){return xe.test(te)||te&&Ae(te.charCodeAt(0))}var xe=/^[[{\w-]$/;function be(te){return te===o||te===i||te===a||te===r}function Ae(te){return we(te)||We(te)}function we(te){return te===s||te===V||te===I}function Re(te){return te===s}function We(te){return te===g||te===S||te===L||te===D||te===J}function Se(te,ie,ce){return ce=2=te.length)return ce;throw new N("Unexpected character "+JSON.stringify(te[ie]),ie);function ee(){ae();var q=function(){if(te.charCodeAt(ie)!==y)return!1;ce+="{",ie++,ae();for(var oe=!0;ie=te.length)return ce+=te.slice(q,ie)+"0",1;Xe(q)}function se(){throw new N("Colon expected",ie)}}},894:function(le){le.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON Schema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},7171:function(le){le.exports=JSON.parse('{"id":"http://json-schema.org/draft-04/schema#","$schema":"http://json-schema.org/draft-04/schema#","description":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"positiveInteger":{"type":"integer","minimum":0},"positiveIntegerDefault0":{"allOf":[{"$ref":"#/definitions/positiveInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true}},"type":"object","properties":{"id":{"type":"string"},"$schema":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"multipleOf":{"type":"number","minimum":0,"exclusiveMinimum":true},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"boolean","default":false},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"boolean","default":false},"maxLength":{"$ref":"#/definitions/positiveInteger"},"minLength":{"$ref":"#/definitions/positiveIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/positiveInteger"},"minItems":{"$ref":"#/definitions/positiveIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"maxProperties":{"$ref":"#/definitions/positiveInteger"},"minProperties":{"$ref":"#/definitions/positiveIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"dependencies":{"exclusiveMaximum":["maximum"],"exclusiveMinimum":["minimum"]},"default":{}}')},6273:function(le){le.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-06/schema#","$id":"http://json-schema.org/draft-06/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"examples":{"type":"array","items":{}},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":{},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":{}}')},6680:function(le){le.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')}},st={},Ye.amdD=function(){throw new Error("define cannot be used indirect")},Ye.n=function(le){var m=le&&le.__esModule?function(){return le.default}:function(){return le};return Ye.d(m,{a:m}),m},Ye.d=function(le,m){for(var Z in m)Ye.o(m,Z)&&!Ye.o(le,Z)&&Object.defineProperty(le,Z,{enumerable:!0,get:m[Z]})},Ye.o=function(le,m){return Object.prototype.hasOwnProperty.call(le,m)},Ye.r=function(le){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(le,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(le,"__esModule",{value:!0})},Ye.nmd=function(le){return le.paths=[],le.children||(le.children=[]),le},Ye(3161);function Ye(le){var m=st[le];return m!==void 0||(m=st[le]={id:le,loaded:!1,exports:{}},Je[le].call(m.exports,m,m.exports,Ye),m.loaded=!0),m.exports}var Je,st})})($t);var Xt=$t.exports;const _t=Lt(Xt),Yt=Nt({ControlType:"JsonEditor",nameCn:"JSON编辑",icon:"icon-json-full",rule:ct.getJsonValidate(),formConfig:Bt("JsonEditor",[{fieldName:"default",component:"JsonEditor"}]),props:{...Wt},actionType:["onChange"],setup(Ge){const dt=yt({});let Ye=null,Je=null;const st=yt(),le=yt();Mt(Ge);function m(){const Z=dt.value,U=Ge.data,x=Ge.item,H=x.data.fieldName,j={modes:["text","code","view"],mode:"code",search:!1,onChange(){U[H]=Je?.getText()}};Je=new _t(Z,j),Ge.drag?Je?.set(ct.tryParseJson(x.data.default)):Je?.set(ct.tryParseJson(U[x.data.fieldName]))}return Ht(()=>{m()}),Pt(()=>Ge.item,Z=>{if(Ge.drag)Je?.set(ct.tryParseJson(Z.data.default));else{const U=Ge.data,x=Ge.item;Je?.set(ct.tryParseJson(U[x.data.fieldName]))}}),{myDialog:le,jsoneditor:dt,JsonViewerDialogDom:st,async showCustomDialog(){const Z=le.value;Z.show(),Z.init("JSON编辑","icon-json-full"),await Gt();const U=st.value,x={modes:["text","code","view"],mode:"code",search:!1};Ye=new _t(U,x),Ye?.set(ct.tryParseJson(Je.getText()))},closeDialog(){le.value.close()},saveJson(){Je?.set(ct.tryParseJson(Ye.getText()));const Z=Ge.data,x=Ge.item.data.fieldName;Z[x]=Je?.getText(),le.value.close()}}}}),Jt={key:0,class:"item_require"},Ut=rt("span",{class:"tip iconfont icon-tishi"},null,-1),Qt={id:"jsoneditor",ref:"jsoneditor"},qt=rt("i",{class:"iconfont icon-quanping"},null,-1),en=[qt],tn={ref:"JsonViewerDialogDom",style:{height:"calc(100% - 24px)"}};function nn(Ge,dt,Ye,Je,st,le){const m=Zt,Z=Dt,U=Kt,x=jt,H=zt,j=Vt("CustomDialog");return vt(),St("div",{class:Et(["starfish-formitem",{formCover:Ge.drag,"starfish-vertical":Ge.labelalign!="top",[Ge.item.data.csslist?.join(" ")]:!!Ge.item.data.csslist}])},[rt("div",{class:Et(["label","label_"+Ge.labelalign]),style:Tt({width:Ge.labelWidth+"px"})},[rt("label",null,xt(Ge.item.data.label)+xt(Ge.suffix),1),Ge.item.data.required?(vt(),St("span",Jt,"*")):kt("",!0),Ge.item.data.tip?(vt(),Ot(m,{key:1,class:"item",effect:"dark",content:Ge.item.data.tip,placement:"top"},{default:ot(()=>[Ut]),_:1},8,["content"])):kt("",!0)],6),rt("div",{class:"control",style:Tt({marginLeft:Ge.labelalign!="top"?Ge.labelWidth+"px":""})},[rt("div",Qt,[rt("div",{class:"fullScreen",onClick:dt[0]||(dt[0]=(...z)=>Ge.showCustomDialog&&Ge.showCustomDialog(...z))},en)],512)],4),ht(j,{ref:"myDialog",width:"60%"},{default:ot(()=>[ht(Z,{style:{padding:"0"}},{default:ot(()=>[ht(H,{style:{height:"100%"}},{default:ot(()=>[ht(Z,{class:"my-pageMain"},{default:ot(()=>[rt("div",tn,null,512)]),_:1}),ht(x,{class:"my-Footer",style:{height:"60px","padding-top":"10px","text-align":"right"}},{default:ot(()=>[ht(U,{type:"primary",onClick:Ge.saveJson},{default:ot(()=>[Rt("保存")]),_:1},8,["onClick"]),ht(U,{onClick:Ge.closeDialog},{default:ot(()=>[Rt("关闭")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1},512)],2)}const sn=Ft(Yt,[["render",nn]]);export{sn as default};
diff --git a/playground/static/js/index-6a8bc30c.js b/playground/static/js/index-6a8bc30c.js
new file mode 100644
index 0000000..022b0b1
--- /dev/null
+++ b/playground/static/js/index-6a8bc30c.js
@@ -0,0 +1 @@
+import{P as O,N as L,a as M,D as $,b as w,T as S,I as E}from"./vue-codemirror.esm-c4b5d553.js";class v{constructor(t,e,s,i,h,r,n,o,a,u=0,f){this.p=t,this.stack=e,this.state=s,this.reducePos=i,this.pos=h,this.score=r,this.buffer=n,this.bufferBase=o,this.curContext=a,this.lookAhead=u,this.parent=f}toString(){return`[${this.stack.filter((t,e)=>e%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,e,s=0){let i=t.parser.context;return new v(t,[],e,s,s,0,[],0,i?new y(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var e;let s=t>>19,i=t&65535,{parser:h}=this.p,r=h.dynamicPrecedence(i);if(r&&(this.score+=r),s==0){this.pushState(h.getGoto(this.state,i,!0),this.reducePos),i=2e3&&!(!((e=this.p.parser.nodeSet.types[i])===null||e===void 0)&&e.isAnonymous)&&(o==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=a):this.p.lastBigReductionSizen;)this.stack.pop();this.reduceContext(i,o)}storeNode(t,e,s,i=4,h=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&r.buffer[n-4]==0&&r.buffer[n-1]>-1){if(e==s)return;if(r.buffer[n-2]>=e){r.buffer[n-2]=s;return}}}if(!h||this.pos==s)this.buffer.push(t,e,s,i);else{let r=this.buffer.length;if(r>0&&this.buffer[r-4]!=0)for(;r>0&&this.buffer[r-2]>s;)this.buffer[r]=this.buffer[r-4],this.buffer[r+1]=this.buffer[r-3],this.buffer[r+2]=this.buffer[r-2],this.buffer[r+3]=this.buffer[r-1],r-=4,i>4&&(i-=4);this.buffer[r]=t,this.buffer[r+1]=e,this.buffer[r+2]=s,this.buffer[r+3]=i}}shift(t,e,s,i){if(t&131072)this.pushState(t&65535,this.pos);else if(t&262144)this.pos=i,this.shiftContext(e,s),e<=this.p.parser.maxNode&&this.buffer.push(e,s,i,4);else{let h=t,{parser:r}=this.p;(i>this.pos||e<=r.maxNode)&&(this.pos=i,r.stateFlag(h,1)||(this.reducePos=i)),this.pushState(h,s),this.shiftContext(e,s),e<=r.maxNode&&this.buffer.push(e,s,i,4)}}apply(t,e,s,i){t&65536?this.reduce(t):this.shift(t,e,s,i)}useNode(t,e){let s=this.p.reused.length-1;(s<0||this.p.reused[s]!=t)&&(this.p.reused.push(t),s++);let i=this.pos;this.reducePos=this.pos=i+t.length,this.pushState(e,i),this.buffer.push(s,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,e=t.buffer.length;for(;e>0&&t.buffer[e-2]>t.reducePos;)e-=4;let s=t.buffer.slice(e),i=t.bufferBase+e;for(;t&&i==t.bufferBase;)t=t.parent;return new v(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,s,i,this.curContext,this.lookAhead,t)}recoverByDelete(t,e){let s=t<=this.p.parser.maxNode;s&&this.storeNode(t,this.pos,e,4),this.storeNode(0,this.pos,e,s?8:4),this.pos=this.reducePos=e,this.score-=190}canShift(t){for(let e=new j(this);;){let s=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,t);if(s==0)return!1;if(!(s&65536))return!0;e.reduce(s)}}recoverByInsert(t){if(this.stack.length>=300)return[];let e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){let i=[];for(let h=0,r;ho&1&&n==r)||i.push(e[h],r)}e=i}let s=[];for(let i=0;i>19,i=e&65535,h=this.stack.length-s*3;if(h<0||t.getGoto(this.stack[h],i,!1)<0){let r=this.findForcedReduction();if(r==null)return!1;e=r}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(e),!0}findForcedReduction(){let{parser:t}=this.p,e=[],s=(i,h)=>{if(!e.includes(i))return e.push(i),t.allActions(i,r=>{if(!(r&393216))if(r&65536){let n=(r>>19)-h;if(n>1){let o=r&65535,a=this.stack.length-n*3;if(a>=0&&t.getGoto(this.stack[a],o,!1)>=0)return n<<19|65536|o}}else{let n=s(r,h+1);if(n!=null)return n}})};return s(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let e=0;ethis.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class y{constructor(t,e){this.tracker=t,this.context=e,this.hash=t.strict?t.hash(e):0}}class j{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let e=t&65535,s=t>>19;s==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(s-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=i}}class A{constructor(t,e,s){this.stack=t,this.pos=e,this.index=s,this.buffer=t.buffer,this.index==0&&this.maybeNext()}static create(t,e=t.bufferBase+t.buffer.length){return new A(t,e,e-t.bufferBase)}maybeNext(){let t=this.stack.parent;t!=null&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new A(this.stack,this.pos,this.index)}}function x(l,t=Uint16Array){if(typeof l!="string")return l;let e=null;for(let s=0,i=0;s=92&&r--,r>=34&&r--;let o=r-32;if(o>=46&&(o-=46,n=!0),h+=o,n)break;h*=46}e?e[i++]=h:e=new t(h)}return e}class P{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const N=new P;class G{constructor(t,e){this.input=t,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=N,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}resolveOffset(t,e){let s=this.range,i=this.rangeIndex,h=this.pos+t;for(;hs.to:h>=s.to;){if(i==this.ranges.length-1)return null;let r=this.ranges[++i];h+=r.from-s.to,s=r}return h}clipPos(t){if(t>=this.range.from&&tt)return Math.max(t,e.from);return this.end}peek(t){let e=this.chunkOff+t,s,i;if(e>=0&&e=this.chunk2Pos&&sn.to&&(this.chunk2=this.chunk2.slice(0,n.to-s)),i=this.chunk2.charCodeAt(0)}}return s>=this.token.lookAhead&&(this.token.lookAhead=s+1),i}acceptToken(t,e=0){let s=e?this.resolveOffset(e,-1):this.pos;if(s==null||s=this.chunk2Pos&&this.posthis.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,e){if(e?(this.token=e,e.start=t,e.lookAhead=t+1,e.value=e.extended=-1):this.token=N,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,e-this.chunkPos);if(t>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,e-this.chunk2Pos);if(t>=this.range.from&&e<=this.range.to)return this.input.read(t,e);let s="";for(let i of this.ranges){if(i.from>=e)break;i.to>t&&(s+=this.input.read(Math.max(i.from,t),Math.min(i.to,e)))}return s}}class m{constructor(t,e){this.data=t,this.id=e}token(t,e){let{parser:s}=e.p;B(this.data,t,e,this.id,s.data,s.tokenPrecTable)}}m.prototype.contextual=m.prototype.fallback=m.prototype.extend=!1;class U{constructor(t,e,s){this.precTable=e,this.elseToken=s,this.data=typeof t=="string"?x(t):t}token(t,e){let s=t.pos,i=0;for(;;){let h=t.next<0,r=t.resolveOffset(1,1);if(B(this.data,t,e,0,this.data,this.precTable),t.token.value>-1)break;if(this.elseToken==null)return;if(h||i++,r==null)break;t.reset(r,t.token)}i&&(t.reset(s,t.token),t.acceptToken(this.elseToken,i))}}U.prototype.contextual=m.prototype.fallback=m.prototype.extend=!1;class X{constructor(t,e={}){this.token=t,this.contextual=!!e.contextual,this.fallback=!!e.fallback,this.extend=!!e.extend}}function B(l,t,e,s,i,h){let r=0,n=1<0){let d=l[p];if(o.allows(d)&&(t.token.value==-1||t.token.value==d||H(d,t.token.value,i,h))){t.acceptToken(d);break}}let u=t.next,f=0,c=l[r+2];if(t.next<0&&c>f&&l[a+c*3-3]==65535){r=l[a+c*3-1];continue t}for(;f>1,d=a+p+(p<<1),b=l[d],F=l[d+1]||65536;if(u=F)f=p+1;else{r=l[d+2],t.advance();continue t}}break}}function R(l,t,e){for(let s=t,i;(i=l[s])!=65535;s++)if(i==e)return s-t;return-1}function H(l,t,e,s){let i=R(e,s,t);return i<0||R(e,s,l)t)&&!s.type.isError)return e<0?Math.max(0,Math.min(s.to-1,t-25)):Math.min(l.length,Math.max(s.from+1,t+25));if(e<0?s.prevSibling():s.nextSibling())break;if(!s.parent())return e<0?0:l.length}}class W{constructor(t,e){this.fragments=t,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?z(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?z(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(tt)return this.nextStart=r,null;if(h instanceof S){if(r==t){if(r=Math.max(this.safeFrom,t)&&(this.trees.push(h),this.start.push(r),this.index.push(0))}else this.index[e]++,this.nextStart=r+h.length}}}class q{constructor(t,e){this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(s=>new P)}getActions(t){let e=0,s=null,{parser:i}=t.p,{tokenizers:h}=i,r=i.stateSlot(t.state,3),n=t.curContext?t.curContext.hash:0,o=0;for(let a=0;af.end+25&&(o=Math.max(f.lookAhead,o)),f.value!=0)){let c=e;if(f.extended>-1&&(e=this.addActions(t,f.extended,f.end,e)),e=this.addActions(t,f.value,f.end,e),!u.extend&&(s=f,e>c))break}}for(;this.actions.length>e;)this.actions.pop();return o&&t.setLookAhead(o),!s&&t.pos==this.stream.end&&(s=new P,s.value=t.p.parser.eofTerm,s.start=s.end=t.pos,e=this.addActions(t,s.value,s.end,e)),this.mainToken=s,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let e=new P,{pos:s,p:i}=t;return e.start=s,e.end=Math.min(s+1,i.stream.end),e.value=s==i.stream.end?i.parser.eofTerm:0,e}updateCachedToken(t,e,s){let i=this.stream.clipPos(s.pos);if(e.token(this.stream.reset(i,t),s),t.value>-1){let{parser:h}=s.p;for(let r=0;r=0&&s.p.parser.dialect.allows(n>>1)){n&1?t.extended=n>>1:t.value=n>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,e,s,i){for(let h=0;ht.bufferLength*4?new W(s,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,e=this.minStackPos,s=this.stacks=[],i,h;if(this.bigReductionCount>300&&t.length==1){let[r]=t;for(;r.forceReduce()&&r.stack.length&&r.stack[r.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let r=0;re)s.push(n);else{if(this.advanceStack(n,s,t))continue;{i||(i=[],h=[]),i.push(n);let o=this.tokens.getMainToken(n);h.push(o.value,o.end)}}break}}if(!s.length){let r=i&&Q(i);if(r)return g&&console.log("Finish with "+this.stackID(r)),this.stackToTree(r);if(this.parser.strict)throw g&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+e);this.recovering||(this.recovering=5)}if(this.recovering&&i){let r=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,h,s);if(r)return g&&console.log("Force-finish "+this.stackID(r)),this.stackToTree(r.forceAll())}if(this.recovering){let r=this.recovering==1?1:this.recovering*3;if(s.length>r)for(s.sort((n,o)=>o.score-n.score);s.length>r;)s.pop();s.some(n=>n.reducePos>e)&&this.recovering--}else if(s.length>1){t:for(let r=0;r500&&a.buffer.length>500)if((n.score-a.score||n.buffer.length-a.buffer.length)>0)s.splice(o--,1);else{s.splice(r--,1);continue t}}}s.length>12&&s.splice(12,s.length-12)}this.minStackPos=s[0].pos;for(let r=1;r ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let a=t.curContext&&t.curContext.tracker.strict,u=a?t.curContext.hash:0;for(let f=this.fragments.nodeAt(i);f;){let c=this.parser.nodeSet.types[f.type.id]==f.type?h.getGoto(t.state,f.type.id):-1;if(c>-1&&f.length&&(!a||(f.prop(w.contextHash)||0)==u))return t.useNode(f,c),g&&console.log(r+this.stackID(t)+` (via reuse of ${h.getName(f.type.id)})`),!0;if(!(f instanceof S)||f.children.length==0||f.positions[0]>0)break;let p=f.children[0];if(p instanceof S&&f.positions[0]==0)f=p;else break}}let n=h.stateSlot(t.state,4);if(n>0)return t.reduce(n),g&&console.log(r+this.stackID(t)+` (via always-reduce ${h.getName(n&65535)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let o=this.tokens.getActions(t);for(let a=0;ai?e.push(d):s.push(d)}return!1}advanceFully(t,e){let s=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>s)return I(t,e),!0}}runRecovery(t,e,s){let i=null,h=!1;for(let r=0;r ":"";if(n.deadEnd&&(h||(h=!0,n.restart(),g&&console.log(u+this.stackID(n)+" (restarted)"),this.advanceFully(n,s))))continue;let f=n.split(),c=u;for(let p=0;f.forceReduce()&&p<10&&(g&&console.log(c+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,s));p++)g&&(c=this.stackID(f)+" -> ");for(let p of n.recoverByInsert(o))g&&console.log(u+this.stackID(p)+" (via recover-insert)"),this.advanceFully(p,s);this.stream.end>n.pos?(a==n.pos&&(a++,o=0),n.recoverByDelete(o,a),g&&console.log(u+this.stackID(n)+` (via recover-delete ${this.parser.getName(o)})`),I(n,s)):(!i||i.scoret.topRules[n][1]),i=[];for(let n=0;n=0)h(u,o,n[a++]);else{let f=n[a+-u];for(let c=-u;c>0;c--)h(n[a++],o,f);a++}}}this.nodeSet=new L(e.map((n,o)=>M.define({name:o>=this.minRepeatTerm?void 0:n,id:o,props:i[o],top:s.indexOf(o)>-1,error:o==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(o)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=$;let r=x(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let n=0;ntypeof n=="number"?new m(r,n):n),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,e,s){let i=new J(this,t,e,s);for(let h of this.wrappers)i=h(i,t,e,s);return i}getGoto(t,e,s=!1){let i=this.goto;if(e>=i[0])return-1;for(let h=i[e+1];;){let r=i[h++],n=r&1,o=i[h++];if(n&&s)return o;for(let a=h+(r>>1);h0}validAction(t,e){return!!this.allActions(t,s=>s==e?!0:null)}allActions(t,e){let s=this.stateSlot(t,4),i=s?e(s):void 0;for(let h=this.stateSlot(t,1);i==null;h+=3){if(this.data[h]==65535)if(this.data[h+1]==1)h=k(this.data,h+2);else break;i=e(k(this.data,h+1))}return i}nextStates(t){let e=[];for(let s=this.stateSlot(t,1);;s+=3){if(this.data[s]==65535)if(this.data[s+1]==1)s=k(this.data,s+2);else break;if(!(this.data[s+2]&1)){let i=this.data[s+1];e.some((h,r)=>r&1&&h==i)||e.push(this.data[s],i)}}return e}configure(t){let e=Object.assign(Object.create(C.prototype),this);if(t.props&&(e.nodeSet=this.nodeSet.extend(...t.props)),t.top){let s=this.topRules[t.top];if(!s)throw new RangeError(`Invalid top rule name ${t.top}`);e.top=s}return t.tokenizers&&(e.tokenizers=this.tokenizers.map(s=>{let i=t.tokenizers.find(h=>h.from==s);return i?i.to:s})),t.specializers&&(e.specializers=this.specializers.slice(),e.specializerSpecs=this.specializerSpecs.map((s,i)=>{let h=t.specializers.find(n=>n.from==s.external);if(!h)return s;let r=Object.assign(Object.assign({},s),{external:h.to});return e.specializers[i]=D(r),r})),t.contextTracker&&(e.context=t.contextTracker),t.dialect&&(e.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(e.strict=t.strict),t.wrap&&(e.wrappers=e.wrappers.concat(t.wrap)),t.bufferLength!=null&&(e.bufferLength=t.bufferLength),e}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let e=this.dynamicPrecedences;return e==null?0:e[t]||0}parseDialect(t){let e=Object.keys(this.dialects),s=e.map(()=>!1);if(t)for(let h of t.split(" ")){let r=e.indexOf(h);r>=0&&(s[r]=!0)}let i=null;for(let h=0;hs)&&e.p.parser.stateFlag(e.state,2)&&(!t||t.scorel.external(e,s)<<1|t}return l.get}export{X as E,C as L,U as a};
diff --git a/playground/static/js/index-a082a8a7-5c4945ba.js b/playground/static/js/index-a082a8a7-5c4945ba.js
new file mode 100644
index 0000000..44e77d7
--- /dev/null
+++ b/playground/static/js/index-a082a8a7-5c4945ba.js
@@ -0,0 +1,19 @@
+import{d as q,X as U,Y as W,Z as G,R as L,i as P,c as Q,f as r,$ as X,a0 as Y,Q as Z,y as E,o as i,a as m,h as v,t as H,l as _,b,w as t,n as J,j as R,F as S,r as z,g as l,A as d,U as K,C as x,G as ee,E as ae,a1 as le,a2 as te,a3 as ue,a4 as oe,a5 as ne,a6 as se,a7 as ie,M as re,L as de,s as ce}from"./main-15081b07.js";/* empty css */import me from"./starfish-form-fd63a285-a650e45e.js";import{c as fe}from"./vue-codemirror.esm-c4b5d553.js";const pe=q({ControlType:"Rule",rule:U.getJsonValidate(),props:{...W},components:{Delete:G,Dynamicform:me,Codemirror:fe},setup(e){const{proxy:f}=L(),{formStore:w}=P("control")||{},V=Q(()=>w?.get("globalDatas")),A=r([]),B=r(X),C=r({}),p=r({}),y=r({}),u=r({}),D=r(Y.ruleJson),k=r(!0),h=r(),g=r(),F=r();return{IsShow:k,rules:A,ruleList:B,globalDatas:V,funcItem:C,funcValue:p,highItem:y,formValue:u,ruleJson:D,codeMyDialog:h,formRuleDialog:g,formdragger:F,handleDropdown(a){let o="";a=="enum"?o="自定义枚举":a=="func"?o="自定义函数规则":a=="high"&&(o="高级模式"),Array.isArray(e.data[e.item.data.fieldName])?e.data[e.item.data.fieldName].push({type:a,title:o,value:""}):(e.data[e.item.data.fieldName]=[],e.data[e.item.data.fieldName].push({type:a,title:o,value:""}))},handleFuncEdit(a){C.value=a,p.value=a.value?JSON.parse(JSON.stringify(a.value)):{trigger:"blur",func:`/** if (value === "" || value == null) {
+* callback(new Error("请输入"));
+*} else if (!/^[0-9]*$/.test(value)) {
+* callback(new Error("必须为数字"));
+*}
+*callback();
+*/`},h.value.init("函数编辑","icon-icon-bianji"),h.value.show()},saveFunc(){C.value.value=p.value,f.closeDialog()},closeDialog(){h.value.close(),g.value.close()},deleteRule(a){e.data[e.item.data.fieldName].splice(a,1)},async handleFormEdit(a){y.value=a,u.value=a.value||f.getDefaultData(D.value);debugger;g.value.init("规则表单编辑","icon-icon-bianji"),g.value.show()},getDefaultData(a){const o={};return a.forEach(n=>{o[n.data.fieldName]=n.data.default,n.data.getDefault&&(o[n.data.fieldName]=n.data.getDefault()),n.data.itemConfig&&(o[n.data.fieldName]=n.data.itemConfig.value),o[n.data.fieldName]=o[n.data.fieldName]!=null?JSON.parse(JSON.stringify(o[n.data.fieldName])):void 0}),o},saveField(){const a={},o={1:{fields:["required","trigger","message"]},2:{fields:["trigger","min","max","message"]},3:{fields:["required","trigger","type","message"]},4:{fields:["required","trigger","patternTemp","message"]},5:{fields:["trigger","minValue","maxValue","message"]}};for(const n in u.value)o[u.value.ruleType||"1"].fields.includes(n)&&(a[n]=u.value[n]);u.value.ruleType==2?(a.min=parseInt(a.min),a.max=parseInt(a.max)):u.value.ruleType==4?a.pattern=new RegExp(a.patternTemp):u.value.ruleType==5&&(a.validor=`(rule, value, callback) => {
+ if (!/(^[1-9]*$)/.test(value)) {
+ callback(new Error("请输入数字值"))
+ } else {
+ if (value > ${a.maxValue}) {
+ callback(new Error("${a.message}"))
+ } else if(value < ${a.minValue}){
+ callback(new Error("${a.message}"))
+ }else {
+ callback()
+ }
+ }
+ }`),a.ruleType=u.value.ruleType,y.value.value=a,g.value.close()}}}}),ge={key:0,class:"weight"},_e=v("span",{class:"tip iconfont icon-tishi"},null,-1),ve={key:0,class:"collapse_enums"},ye={key:1},he={key:2},Ce=v("i",{class:"el-icon-arrow-down el-icon--right"},null,-1),Fe={key:0,class:"sqlDialog",style:{padding:"20px",height:"100%"}},De=v("div",null,"(rule, value, callback, mainData) => {",-1),Ee=v("div",null,"}",-1);function be(e,f,w,V,A,B){const C=K,p=x,y=ee,u=ae,D=E("Delete"),k=le,h=te,g=ue,F=oe,a=ne,o=se,n=ie,j=E("codemirror"),N=re,$=E("CustomDialog"),M=E("Dynamicform"),T=de,O=ce;return i(),m("div",{class:J(["starfish-formitem starfish-formitem-rule",{formCover:e.drag,"starfish-vertical":e.labelalign!="top"}])},[v("div",{class:J(["label","label_"+e.labelalign]),style:R({width:e.labelWidth+"px"})},[v("label",null,H(e.item.data.label),1),e.item.data.required?(i(),m("span",ge,"*")):_("",!0),e.item.data.tip?(i(),b(C,{key:1,class:"item",effect:"dark",content:e.item.data.tip,placement:"bottom-start"},{default:t(()=>[_e]),_:1},8,["content"])):_("",!0)],6),v("div",{class:"control",style:R({marginLeft:e.labelalign!="top"?e.labelWidth+"px":""})},[Array.isArray(e.data[e.item.data.fieldName])&&e.data[e.item.data.fieldName].length>0?(i(),b(g,{key:0},{default:t(()=>[(i(!0),m(S,null,z(e.data[e.item.data.fieldName],(s,I)=>(i(),b(h,{title:s.title,name:s.title,key:I},{default:t(()=>[s.type=="enum"?(i(),m("div",ve,[l(y,{modelValue:s.value,"onUpdate:modelValue":c=>s.value=c,placeholder:"请选择",style:{width:"100%"},size:"mini"},{default:t(()=>[(i(!0),m(S,null,z(e.ruleList,c=>(i(),b(p,{key:c.value,label:c.label,value:c.validator},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])])):_("",!0),s.type=="func"?(i(),m("div",ye,[l(u,{type:"primary",onClick:c=>e.handleFuncEdit(s),size:"mini"},{default:t(()=>[d("函数编辑")]),_:2},1032,["onClick"])])):_("",!0),s.type=="high"?(i(),m("div",he,[l(u,{type:"primary",onClick:c=>e.handleFormEdit(s),size:"mini"},{default:t(()=>[d("规则表单编辑")]),_:2},1032,["onClick"])])):_("",!0),l(u,{type:"danger",circle:"",onClick:c=>e.deleteRule(I),style:{"margin-left":"10px"}},{default:t(()=>[l(k,null,{default:t(()=>[l(D)]),_:1})]),_:2},1032,["onClick"])]),_:2},1032,["title","name"]))),128))]),_:1})):_("",!0),l(o,{onCommand:e.handleDropdown,style:{"margin-top":"10px"}},{dropdown:t(()=>[l(a,null,{default:t(()=>[l(F,{command:"enum"},{default:t(()=>[d("默认枚举")]),_:1}),l(F,{command:"func"},{default:t(()=>[d("自定义函数规则")]),_:1}),l(F,{command:"high"},{default:t(()=>[d("高级模式")]),_:1})]),_:1})]),default:t(()=>[l(u,{type:"success"},{default:t(()=>[d(" 新增规则"),Ce]),_:1})]),_:1},8,["onCommand"])],4),l($,{ref:"codeMyDialog"},{default:t(()=>[e.funcItem?(i(),m("div",Fe,[l(y,{modelValue:e.funcValue.trigger,"onUpdate:modelValue":f[0]||(f[0]=s=>e.funcValue.trigger=s),placeholder:"请选择",size:"mini",style:{"margin-bottom":"20px"}},{default:t(()=>[l(p,{label:"blur",value:"blur"}),l(p,{label:"change",value:"change"})]),_:1},8,["modelValue"]),l(n,{title:"rule是存放接收参数的对象;value是待校验的值;callback是回调函数(校验完后,要执行的操作,如抛错),mainData为表单数据",type:"success",style:{"margin-bottom":"15px"}}),De,l(j,{modelValue:e.funcValue.func,"onUpdate:modelValue":f[1]||(f[1]=s=>e.funcValue.func=s),ref:"cm",placeholder:"",mode:"text/javascript",style:{height:"320px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2},null,8,["modelValue"]),Ee])):_("",!0),l(N,{class:"my-Footer",style:{height:"60px","text-align":"right"}},{default:t(()=>[l(u,{onClick:e.saveFunc,type:"primary"},{default:t(()=>[d("保存")]),_:1},8,["onClick"]),l(u,{onClick:e.closeDialog},{default:t(()=>[d("关闭")]),_:1},8,["onClick"])]),_:1})]),_:1},512),l($,{ref:"formRuleDialog"},{default:t(()=>[l(T,{style:{padding:"0"}},{default:t(()=>[l(O,{style:{height:"100%"}},{default:t(()=>[l(T,{class:"my-pageMain",style:{overflow:"hidden"}},{default:t(()=>[l(M,{ref:"formdragger",formResult:e.formValue,allFormList:e.ruleJson,globalConfig:Object.assign({},e.globalDatas,{size:"large"})},null,8,["formResult","allFormList","globalConfig"])]),_:1}),l(N,{class:"my-Footer",style:{height:"60px","text-align":"right"}},{default:t(()=>[l(u,{type:"primary",onClick:e.saveField},{default:t(()=>[d("保存")]),_:1},8,["onClick"]),l(u,{onClick:e.closeDialog},{default:t(()=>[d("关闭")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1},512)],2)}const Be=Z(pe,[["render",be]]);export{Be as default};
diff --git a/playground/static/js/index-b82a06c3-5954de8e.js b/playground/static/js/index-b82a06c3-5954de8e.js
new file mode 100644
index 0000000..7e2f6e1
--- /dev/null
+++ b/playground/static/js/index-b82a06c3-5954de8e.js
@@ -0,0 +1,859 @@
+import{a9 as $t,d as wt,aa as bt,Y as Yt,f as zt,ab as Vt,S as Gt,ac as Kt,Q as Jt,o as Pt,a as Mt,h as Bt,t as Ht,l as Nt,b as Wt,w as Xt,n as Lt,j as Ot,U as Zt}from"./main-15081b07.js";var jt={exports:{}};(function(et,St){(function(n,t){et.exports=t()})(window,function(){return function(s){var n={};function t(e){if(n[e])return n[e].exports;var a=n[e]={i:e,l:!1,exports:{}};return s[e].call(a.exports,a,a.exports,t),a.l=!0,a.exports}return t.m=s,t.c=n,t.d=function(e,a,r){t.o(e,a)||Object.defineProperty(e,a,{enumerable:!0,get:r})},t.r=function(e){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,a){if(a&1&&(e=t(e)),a&8||a&4&&typeof e=="object"&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),a&2&&typeof e!="string")for(var o in e)t.d(r,o,function(v){return e[v]}.bind(null,o));return r},t.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},t.p="",t(t.s=141)}([function(s,n){function t(e){return e&&e.__esModule?e:{default:e}}s.exports=t},function(s,n,t){s.exports=t(142)},function(s,n,t){t.r(n),t.d(n,"__extends",function(){return a}),t.d(n,"__assign",function(){return r}),t.d(n,"__rest",function(){return o}),t.d(n,"__decorate",function(){return v}),t.d(n,"__param",function(){return g}),t.d(n,"__metadata",function(){return d}),t.d(n,"__awaiter",function(){return p}),t.d(n,"__generator",function(){return f}),t.d(n,"__createBinding",function(){return i}),t.d(n,"__exportStar",function(){return u}),t.d(n,"__values",function(){return l}),t.d(n,"__read",function(){return m}),t.d(n,"__spread",function(){return c}),t.d(n,"__spreadArrays",function(){return h}),t.d(n,"__spreadArray",function(){return A}),t.d(n,"__await",function(){return y}),t.d(n,"__asyncGenerator",function(){return x}),t.d(n,"__asyncDelegator",function(){return S}),t.d(n,"__asyncValues",function(){return T}),t.d(n,"__makeTemplateObject",function(){return P}),t.d(n,"__importStar",function(){return E}),t.d(n,"__importDefault",function(){return D}),t.d(n,"__classPrivateFieldGet",function(){return R}),t.d(n,"__classPrivateFieldSet",function(){return M});/*! *****************************************************************************
+ Copyright (c) Microsoft Corporation.
+
+ Permission to use, copy, modify, and/or distribute this software for any
+ purpose with or without fee is hereby granted.
+
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ PERFORMANCE OF THIS SOFTWARE.
+ ***************************************************************************** */var e=function(I,N){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,F){B.__proto__=F}||function(B,F){for(var O in F)Object.prototype.hasOwnProperty.call(F,O)&&(B[O]=F[O])},e(I,N)};function a(I,N){if(typeof N!="function"&&N!==null)throw new TypeError("Class extends value "+String(N)+" is not a constructor or null");e(I,N);function B(){this.constructor=I}I.prototype=N===null?Object.create(N):(B.prototype=N.prototype,new B)}var r=function(){return r=Object.assign||function(N){for(var B,F=1,O=arguments.length;F=0;U--)(L=I[U])&&(H=(O<3?L(H):O>3?L(N,B,H):L(N,B))||H);return O>3&&H&&Object.defineProperty(N,B,H),H}function g(I,N){return function(B,F){N(B,F,I)}}function d(I,N){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(I,N)}function p(I,N,B,F){function O(H){return H instanceof B?H:new B(function(L){L(H)})}return new(B||(B=Promise))(function(H,L){function U(K){try{j(F.next(K))}catch(V){L(V)}}function z(K){try{j(F.throw(K))}catch(V){L(V)}}function j(K){K.done?H(K.value):O(K.value).then(U,z)}j((F=F.apply(I,N||[])).next())})}function f(I,N){var B={label:0,sent:function(){if(H[0]&1)throw H[1];return H[1]},trys:[],ops:[]},F,O,H,L;return L={next:U(0),throw:U(1),return:U(2)},typeof Symbol=="function"&&(L[Symbol.iterator]=function(){return this}),L;function U(j){return function(K){return z([j,K])}}function z(j){if(F)throw new TypeError("Generator is already executing.");for(;B;)try{if(F=1,O&&(H=j[0]&2?O.return:j[0]?O.throw||((H=O.return)&&H.call(O),0):O.next)&&!(H=H.call(O,j[1])).done)return H;switch(O=0,H&&(j=[j[0]&2,H.value]),j[0]){case 0:case 1:H=j;break;case 4:return B.label++,{value:j[1],done:!1};case 5:B.label++,O=j[1],j=[0];continue;case 7:j=B.ops.pop(),B.trys.pop();continue;default:if(H=B.trys,!(H=H.length>0&&H[H.length-1])&&(j[0]===6||j[0]===2)){B=0;continue}if(j[0]===3&&(!H||j[1]>H[0]&&j[1]=I.length&&(I=void 0),{value:I&&I[F++],done:!I}}};throw new TypeError(N?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(I,N){var B=typeof Symbol=="function"&&I[Symbol.iterator];if(!B)return I;var F=B.call(I),O,H=[],L;try{for(;(N===void 0||N-- >0)&&!(O=F.next()).done;)H.push(O.value)}catch(U){L={error:U}}finally{try{O&&!O.done&&(B=F.return)&&B.call(F)}finally{if(L)throw L.error}}return H}function c(){for(var I=[],N=0;N1||U(Q,w)})})}function U(Q,w){try{z(F[Q](w))}catch(G){V(H[0][3],G)}}function z(Q){Q.value instanceof y?Promise.resolve(Q.value.v).then(j,K):V(H[0][2],Q)}function j(Q){U("next",Q)}function K(Q){U("throw",Q)}function V(Q,w){Q(w),H.shift(),H.length&&U(H[0][0],H[0][1])}}function S(I){var N,B;return N={},F("next"),F("throw",function(O){throw O}),F("return"),N[Symbol.iterator]=function(){return this},N;function F(O,H){N[O]=I[O]?function(L){return(B=!B)?{value:y(I[O](L)),done:O==="return"}:H?H(L):L}:H}}function T(I){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var N=I[Symbol.asyncIterator],B;return N?N.call(I):(I=typeof l=="function"?l(I):I[Symbol.iterator](),B={},F("next"),F("throw"),F("return"),B[Symbol.asyncIterator]=function(){return this},B);function F(H){B[H]=I[H]&&function(L){return new Promise(function(U,z){L=I[H](L),O(U,z,L.done,L.value)})}}function O(H,L,U,z){Promise.resolve(z).then(function(j){H({value:j,done:U})},L)}}function P(I,N){return Object.defineProperty?Object.defineProperty(I,"raw",{value:N}):I.raw=N,I}var C=Object.create?function(I,N){Object.defineProperty(I,"default",{enumerable:!0,value:N})}:function(I,N){I.default=N};function E(I){if(I&&I.__esModule)return I;var N={};if(I!=null)for(var B in I)B!=="default"&&Object.prototype.hasOwnProperty.call(I,B)&&i(N,I,B);return C(N,I),N}function D(I){return I&&I.__esModule?I:{default:I}}function R(I,N){if(!N.has(I))throw new TypeError("attempted to get private field on non-instance");return N.get(I)}function M(I,N,B){if(!N.has(I))throw new TypeError("attempted to set private field on non-instance");return N.set(I,B),B}},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(89)),o=e(t(4)),v=e(t(26)),g=e(t(17)),d=e(t(121)),p=e(t(27)),f=e(t(91)),i=e(t(70)),u=e(t(28)),l=e(t(57));(0,a.default)(n,"__esModule",{value:!0}),n.DomElement=void 0;var m=t(2),c=t(6),h=[];function A(C){var E=document.createElement("div");E.innerHTML=C;var D=E.children;return c.toArray(D)}function y(C){return C?C instanceof HTMLCollection||C instanceof NodeList:!1}function x(C){var E=document.querySelectorAll(C);return c.toArray(E)}function S(C){var E=[],D=[];return(0,r.default)(C)?E=C:E=C.split(";"),(0,o.default)(E).call(E,function(R){var M,I=(0,v.default)(M=R.split(":")).call(M,function(N){return(0,g.default)(N).call(N)});I.length===2&&D.push(I[0]+":"+I[1])}),D}var T=function(){function C(E){if(this.elems=[],this.length=this.elems.length,this.dataSource=new d.default,!!E){if(E instanceof C)return E;var D=[],R=E instanceof Node?E.nodeType:-1;if(this.selector=E,R===1||R===9)D=[E];else if(y(E))D=c.toArray(E);else if(E instanceof Array)D=E;else if(typeof E=="string"){var M,I=(0,g.default)(M=E.replace(`/
+/mg`,"")).call(M);(0,p.default)(I).call(I,"<")===0?D=A(I):D=x(I)}var N=D.length;if(!N)return this;for(var B=0;B=D&&(E=E%D),P(this.elems[E])},C.prototype.first=function(){return this.get(0)},C.prototype.last=function(){var E=this.length;return this.get(E-1)},C.prototype.on=function(E,D,R){var M;return E?(typeof D=="function"&&(R=D,D=""),(0,o.default)(M=this).call(M,function(I){if(!D){I.addEventListener(E,R);return}var N=function(F){var O=F.target;O.matches(D)&&R.call(O,F)};I.addEventListener(E,N),h.push({elem:I,selector:D,fn:R,agentFn:N})})):this},C.prototype.off=function(E,D,R){var M;return E?(typeof D=="function"&&(R=D,D=""),(0,o.default)(M=this).call(M,function(I){if(D){for(var N=-1,B=0;B]+>/g,function(){return""})}},C.prototype.html=function(E){var D=this.elems[0];return E?(D.innerHTML=E,this):D.innerHTML},C.prototype.val=function(){var E,D=this.elems[0];return(0,g.default)(E=D.value).call(E)},C.prototype.focus=function(){var E;return(0,o.default)(E=this).call(E,function(D){D.focus()})},C.prototype.prev=function(){var E=this.elems[0];return P(E.previousElementSibling)},C.prototype.next=function(){var E=this.elems[0];return P(E.nextElementSibling)},C.prototype.getNextSibling=function(){var E=this.elems[0];return P(E.nextSibling)},C.prototype.parent=function(){var E=this.elems[0];return P(E.parentElement)},C.prototype.parentUntil=function(E,D){var R=D||this.elems[0];if(R.nodeName==="BODY")return null;var M=R.parentElement;return M===null?null:M.matches(E)?P(M):this.parentUntil(E,M)},C.prototype.parentUntilEditor=function(E,D,R){var M=R||this.elems[0];if(P(M).equal(D.$textContainerElem)||P(M).equal(D.$toolbarElem))return null;var I=M.parentElement;return I===null?null:I.matches(E)?P(I):this.parentUntilEditor(E,D,I)},C.prototype.equal=function(E){return E instanceof C?this.elems[0]===E.elems[0]:E instanceof HTMLElement?this.elems[0]===E:!1},C.prototype.insertBefore=function(E){var D,R=P(E),M=R.elems[0];return M?(0,o.default)(D=this).call(D,function(I){var N=M.parentNode;N?.insertBefore(I,M)}):this},C.prototype.insertAfter=function(E){var D,R=P(E),M=R.elems[0],I=M&&M.nextSibling;return M?(0,o.default)(D=this).call(D,function(N){var B=M.parentNode;I?B.insertBefore(N,I):B.appendChild(N)}):this},C.prototype.data=function(E,D){if(D!=null)this.dataSource.set(E,D);else return this.dataSource.get(E)},C.prototype.getNodeTop=function(E){if(this.length<1)return this;var D=this.parent();return E.$textElem.equal(this)||E.$textElem.equal(D)?this:(D.prior=this,D.getNodeTop(E))},C.prototype.getOffsetData=function(){var E=this.elems[0];return{top:E.offsetTop,left:E.offsetLeft,width:E.offsetWidth,height:E.offsetHeight,parent:E.offsetParent}},C.prototype.scrollTop=function(E){var D=this.elems[0];D.scrollTo({top:E})},C}();n.DomElement=T;function P(){for(var C=[],E=0;E/gm,">").replace(/"/gm,""").replace(/(\r\n|\r|\n)/g,"
")}n.replaceHtmlSymbol=l;function m(E){return E.replace(/</gm,"<").replace(/>/gm,">").replace(/"/gm,'"')}n.replaceSpecialSymbol=m;function c(E,D){for(var R in E)if(Object.prototype.hasOwnProperty.call(E,R)){var M=D(R,E[R]);if(M===!1)break}}n.forEach=c;function h(E,D){var R,M,I,N=E.length||0;for(R=0;R
',n.EMPTY_P_LAST_REGEX=/
<\/p>$/gim,n.EMPTY_P_REGEX=/
/gim},function(s,n,t){(function(e){var a=function(r){return r&&r.Math==Math&&r};s.exports=a(typeof globalThis=="object"&&globalThis)||a(typeof window=="object"&&window)||a(typeof self=="object"&&self)||a(typeof e=="object"&&e)||Function("return this")()}).call(this,t(145))},function(s,n){s.exports={}},function(s,n,t){var e=t(8),a=t(74),r=t(16),o=t(64),v=t(76),g=t(106),d=a("wks"),p=e.Symbol,f=g?p:p&&p.withoutSetter||o;s.exports=function(i){return r(d,i)||(v&&r(p,i)?d[i]=p[i]:d[i]=f("Symbol."+i)),d[i]}},function(s,n){s.exports=function(t){try{return!!t()}catch{return!0}}},function(s,n,t){var e=t(9),a=t(16),r=t(93),o=t(18).f;s.exports=function(v){var g=e.Symbol||(e.Symbol={});a(g,v)||o(g,v,{value:r.f(v)})}},function(s,n){s.exports=function(t){return typeof t=="object"?t!==null:typeof t=="function"}},function(s,n,t){var e=t(11);s.exports=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},function(s,n,t){var e=t(9);s.exports=function(a){return e[a+"Prototype"]}},function(s,n){var t={}.hasOwnProperty;s.exports=function(e,a){return t.call(e,a)}},function(s,n,t){s.exports=t(192)},function(s,n,t){var e=t(14),a=t(100),r=t(25),o=t(60),v=Object.defineProperty;n.f=e?v:function(d,p,f){if(r(d),p=o(p,!0),r(f),a)try{return v(d,p,f)}catch{}if("get"in f||"set"in f)throw TypeError("Accessors not supported");return"value"in f&&(d[p]=f.value),d}},function(s,n,t){var e=t(14),a=t(18),r=t(48);s.exports=e?function(o,v,g){return a.f(o,v,r(1,g))}:function(o,v,g){return o[v]=g,o}},function(s,n,t){var e=function(){var h;return function(){return typeof h>"u"&&(h=!!(window&&document&&document.all&&!window.atob)),h}}(),a=function(){var h={};return function(y){if(typeof h[y]>"u"){var x=document.querySelector(y);if(window.HTMLIFrameElement&&x instanceof window.HTMLIFrameElement)try{x=x.contentDocument.head}catch{x=null}h[y]=x}return h[y]}}(),r=[];function o(c){for(var h=-1,A=0;A"u"){var y=t.nc;y&&(A.nonce=y)}if(Object.keys(A).forEach(function(S){h.setAttribute(S,A[S])}),typeof c.insert=="function")c.insert(h);else{var x=a(c.insert||"head");if(!x)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");x.appendChild(h)}return h}function d(c){if(c.parentNode===null)return!1;c.parentNode.removeChild(c)}var p=function(){var h=[];return function(y,x){return h[y]=x,h.filter(Boolean).join(`
+`)}}();function f(c,h,A,y){var x=A?"":y.media?"@media ".concat(y.media," {").concat(y.css,"}"):y.css;if(c.styleSheet)c.styleSheet.cssText=p(h,x);else{var S=document.createTextNode(x),T=c.childNodes;T[h]&&c.removeChild(T[h]),T.length?c.insertBefore(S,T[h]):c.appendChild(S)}}function i(c,h,A){var y=A.css,x=A.media,S=A.sourceMap;if(x?c.setAttribute("media",x):c.removeAttribute("media"),S&&typeof btoa<"u"&&(y+=`
+/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(S))))," */")),c.styleSheet)c.styleSheet.cssText=y;else{for(;c.firstChild;)c.removeChild(c.firstChild);c.appendChild(document.createTextNode(y))}}var u=null,l=0;function m(c,h){var A,y,x;if(h.singleton){var S=l++;A=u||(u=g(h)),y=f.bind(null,A,S,!1),x=f.bind(null,A,S,!0)}else A=g(h),y=i.bind(null,A,h),x=function(){d(A)};return y(c),function(P){if(P){if(P.css===c.css&&P.media===c.media&&P.sourceMap===c.sourceMap)return;y(c=P)}else x()}}s.exports=function(c,h){h=h||{},!h.singleton&&typeof h.singleton!="boolean"&&(h.singleton=e()),c=c||[];var A=v(c,h);return function(x){if(x=x||[],Object.prototype.toString.call(x)==="[object Array]"){for(var S=0;S0){var C=P?.getNodeName();C&&C==="I"&&T.addClass(A)}})}var x=new p.default(h,c);return h.dropList=x,l.on("click",function(){var S;m.selection.getRange()!=null&&(l.css("z-index",m.zIndex.get("menu")),(0,r.default)(S=m.txt.eventHooks.dropListMenuHoverEvents).call(S,function(T){return T()}),x.show())}).on("mouseleave",function(){l.css("z-index","auto"),x.hideTimeoutId=(0,o.default)(function(){x.hide()})}),h}return u}(d.default);n.default=f},function(s,n,t){var e=t(13);s.exports=function(a){if(!e(a))throw TypeError(String(a)+" is not an object");return a}},function(s,n,t){s.exports=t(188)},function(s,n,t){s.exports=t(201)},function(s,n,t){s.exports=t(213)},function(s,n,t){s.exports=t(283)},function(s,n,t){var e=t(72),a=t(49);s.exports=function(r){return e(a(r))}},function(s,n,t){var e=t(49);s.exports=function(a){return Object(e(a))}},function(s,n,t){var e=t(40),a=t(72),r=t(31),o=t(35),v=t(88),g=[].push,d=function(p){var f=p==1,i=p==2,u=p==3,l=p==4,m=p==6,c=p==5||m;return function(h,A,y,x){for(var S=r(h),T=a(S),P=e(A,y,3),C=o(T.length),E=0,D=x||v,R=f?D(h,C):i?D(h,0):void 0,M,I;C>E;E++)if((c||E in T)&&(M=T[E],I=P(M,E,S),p)){if(f)R[E]=I;else if(I)switch(p){case 3:return!0;case 5:return M;case 6:return E;case 2:g.call(R,M)}else if(l)return!1}return m?-1:u||l?l:R}};s.exports={forEach:d(0),map:d(1),filter:d(2),some:d(3),every:d(4),find:d(5),findIndex:d(6)}},function(s,n,t){var e=t(0),a=e(t(1)),r=e(t(4)),o=e(t(29)),v=e(t(132));(0,a.default)(n,"__esModule",{value:!0});var g=t(2),d=g.__importDefault(t(3)),p=t(7),f=function(){function i(u,l){this.menu=u,this.conf=l,this.$container=d.default('');var m=u.editor;m.txt.eventHooks.clickEvents.push(i.hideCurAllPanels),m.txt.eventHooks.toolbarClickEvents.push(i.hideCurAllPanels),m.txt.eventHooks.dropListMenuHoverEvents.push(i.hideCurAllPanels)}return i.prototype.create=function(){var u=this,l=this.menu;if(!i.createdMenus.has(l)){var m=this.conf,c=this.$container,h=m.width||300,A=l.editor.$toolbarElem.getBoundingClientRect(),y=l.$elem.getBoundingClientRect(),x=A.height+A.top-y.top,S=(A.width-h)/2+A.left-y.left,T=300;Math.abs(S)>T&&(y.left