5)o+=" || validate.schema"+c+"[key"+g+"] ";else{var I=w;if(I)for(var M=-1,$=I.length-1;M<$;)K=I[M+=1],o+=" || key"+g+" == "+n.util.toQuotedString(K)+" "}if(p.length){var R=p;if(R)for(var L=-1,S=R.length-1;L= "+ct+"; ",s=n.errSchemaPath+"/patternGroups/minimum",o+=" if (!"+t+") { ",(rt=rt||[]).push(o),o="",n.createErrors!==!1?(o+=" { keyword: 'patternGroups' , dataPath: (dataPath || '') + "+n.errorPath+' , schemaPath: "'+s+`" , params: { reason: '`+yt+"', limit: "+ut+", pattern: '"+n.util.escapeQuotes(it)+"' } ",n.opts.messages!==!1&&(o+=" , message: 'should NOT have "+Ct+" than "+ut+' properties matching pattern "'+n.util.escapeQuotes(it)+`"' `),n.opts.verbose&&(o+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+n.schemaPath+" , data: "+e+" "),o+=" } "):o+=" {} ",W=o,o=rt.pop(),!n.compositeRule&&i?n.async?o+=" throw new ValidationError(["+W+"]); ":o+=" validate.errors = ["+W+"]; return false; ":o+=" var err = "+W+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } ",ft!==void 0&&(o+=" else ")}var rt;ft!==void 0&&(ut=ft,yt="maximum",Ct="more",o+=" "+t+" = pgPropCount"+g+" <= "+ft+"; ",s=n.errSchemaPath+"/patternGroups/maximum",o+=" if (!"+t+") { ",(rt=rt||[]).push(o),o="",n.createErrors!==!1?(o+=" { keyword: 'patternGroups' , dataPath: (dataPath || '') + "+n.errorPath+' , schemaPath: "'+s+`" , params: { reason: '`+yt+"', limit: "+ut+", pattern: '"+n.util.escapeQuotes(it)+"' } ",n.opts.messages!==!1&&(o+=" , message: 'should NOT have "+Ct+" than "+ut+' properties matching pattern "'+n.util.escapeQuotes(it)+`"' `),n.opts.verbose&&(o+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+n.schemaPath+" , data: "+e+" "),o+=" } "):o+=" {} ",W=o,o=rt.pop(),!n.compositeRule&&i?n.async?o+=" throw new ValidationError(["+W+"]); ":o+=" validate.errors = ["+W+"]; return false; ":o+=" var err = "+W+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } "),s=H,i&&(o+=" if ("+t+") { ",A+="}")}}}}return i&&(o+=" "+A+" if ("+a+" == errors) {"),o=n.util.cleanUpCode(o)}},function(r,u){r.exports=function(n,h){var o=" ",g=n.level,m=n.dataLevel,d=n.schema[h],c=n.schemaPath+"."+h,s=n.errSchemaPath+"/"+h,i=!n.opts.allErrors,e="data"+(m||""),t="valid"+g,a=n.opts.v5&&d.$data,l=a?n.util.getData(d.$data,m,n.dataPathArr):d;if(a&&(o+=" var schema"+g+" = "+l+"; ",l="schema"+g),!a)if(d.length
m)return 1}return 0}},function(r,u,n){var h=n(54),o=n(57);r.exports=function(g){function m(d){this.editor=d,this.dom={}}return m.prototype=new g,m.prototype.getDom=function(){var d=this.dom;if(d.tr)return d.tr;this._updateEditability();var c=document.createElement("tr");if(c.node=this,d.tr=c,this.editor.options.mode==="tree"){d.tdDrag=document.createElement("td");var s=document.createElement("td");d.tdMenu=s;var i=document.createElement("button");i.type="button",i.className="jsoneditor-contextmenu",i.title="Click to open the actions menu (Ctrl+M)",d.menu=i,s.appendChild(d.menu)}var e=document.createElement("td"),t=document.createElement("div");return t.innerHTML="(empty)",t.className="jsoneditor-readonly",e.appendChild(t),d.td=e,d.text=t,this.updateDom(),c},m.prototype.updateDom=function(){var d=this.dom,c=d.td;c&&(c.style.paddingLeft=24*this.getLevel()+26+"px");var s=d.text;s&&(s.innerHTML="(empty "+this.parent.type+")");var i=d.tr;this.isVisible()?d.tr.firstChild||(d.tdDrag&&i.appendChild(d.tdDrag),d.tdMenu&&i.appendChild(d.tdMenu),i.appendChild(c)):d.tr.firstChild&&(d.tdDrag&&i.removeChild(d.tdDrag),d.tdMenu&&i.removeChild(d.tdMenu),i.removeChild(c))},m.prototype.isVisible=function(){return this.parent.childs.length==0},m.prototype.showContextMenu=function(d,c){var s=this,i=g.TYPE_TITLES,e=[{text:"Append",title:"Append a new field with type 'auto' (Ctrl+Shift+Ins)",submenuTitle:"Select the type of the field to be appended",className:"jsoneditor-insert",click:function(){s._onAppend("","","auto")},submenu:[{text:"Auto",className:"jsoneditor-type-auto",title:i.auto,click:function(){s._onAppend("","","auto")}},{text:"Array",className:"jsoneditor-type-array",title:i.array,click:function(){s._onAppend("",[])}},{text:"Object",className:"jsoneditor-type-object",title:i.object,click:function(){s._onAppend("",{})}},{text:"String",className:"jsoneditor-type-string",title:i.string,click:function(){s._onAppend("","","string")}}]}];new o(e,{close:c}).show(d,this.editor.content)},m.prototype.onEvent=function(d){var c=d.type,s=d.target||d.srcElement,i=this.dom;if(s==i.menu&&(c=="mouseover"?this.editor.highlighter.highlight(this.parent):c=="mouseout"&&this.editor.highlighter.unhighlight()),c=="click"&&s==i.menu){var e=this.editor.highlighter;e.highlight(this.parent),e.lock(),h.addClassName(i.menu,"jsoneditor-selected"),this.showContextMenu(i.menu,function(){h.removeClassName(i.menu,"jsoneditor-selected"),e.unlock(),e.unhighlight()})}c=="keydown"&&this.onKeyDown(d)},m}},function(r,u,n){var h=n(57);function o(g,m,d,c){for(var s={code:{text:"Code",title:"Switch to code highlighter",click:function(){c("code")}},form:{text:"Form",title:"Switch to form editor",click:function(){c("form")}},text:{text:"Text",title:"Switch to plain text editor",click:function(){c("text")}},tree:{text:"Tree",title:"Switch to tree editor",click:function(){c("tree")}},view:{text:"View",title:"Switch to tree view",click:function(){c("view")}}},i=[],e=0;e =$){if((F=M.end.row+1)>p)break;$=(M=this.getNextFoldLine(F,M))?M.start.row:1/0}else F=x+1;v+=this.getRowLength(x),x=F,I&&(this.$docRowCache.push(x),this.$screenRowCache.push(v))}var R="";M&&x>=$?(R=this.getFoldDisplayLine(M,p,D),E=M.start.row):(R=this.getLine(p).substring(0,D),E=p);var L=0;if(this.$useWrapMode){var S=this.$wrapData[E];if(S){for(var T=0;R.length>=S[T];)v++,T++;R=R.substring(S[T-1]||0,R.length),L=T>0?S.indent:0}}return{row:v,column:L+this.$getStringScreenWidth(R)[0]}},this.documentToScreenColumn=function(p,D){return this.documentToScreenPosition(p,D).column},this.documentToScreenRow=function(p,D){return this.documentToScreenPosition(p,D).row},this.getScreenLength=function(){var p=0,D=null;if(this.$useWrapMode)for(var k=this.$wrapData.length,y=0,v=(x=0,(D=this.$foldData[x++])?D.start.row:1/0);y =0;D--)if(t(p[D],w,b))return!0}:function(C,w,b){for(var p=m.getMatchOffsets(C,a),D=0;D S+1)break;S=T.last}for($--,O=this.session.$moveLines(L,S,v?0:y),v&&y==-1&&(R=$+1);R<=$;)P[R].moveBy(O,0),R++;v||(O=0),I+=O}x.fromOrientedRange(x.ranges[0]),x.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(y){return y=(y||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(y.start.row),last:this.session.getRowFoldEnd(y.end.row)}},this.onCompositionStart=function(y){this.renderer.showComposition(this.getCursorPosition())},this.onCompositionUpdate=function(y){this.renderer.setCompositionText(y)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(y){return y>=this.getFirstVisibleRow()&&y<=this.getLastVisibleRow()},this.isRowFullyVisible=function(y){return y>=this.renderer.getFirstFullyVisibleRow()&&y<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(y,v){var E=this.renderer,F=this.renderer.layerConfig,x=y*Math.floor(F.height/F.lineHeight);this.$blockScrolling++,v===!0?this.selection.$moveSelection(function(){this.moveCursorBy(x,0)}):v===!1&&(this.selection.moveCursorBy(x,0),this.selection.clearSelection()),this.$blockScrolling--;var _=E.scrollTop;E.scrollBy(0,x*F.lineHeight),v!=null&&E.scrollCursorIntoView(null,.5),E.animateScrolling(_)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(y){this.renderer.scrollToRow(y)},this.scrollToLine=function(y,v,E,F){this.renderer.scrollToLine(y,v,E,F)},this.centerSelection=function(){var y=this.getSelectionRange(),v={row:Math.floor(y.start.row+(y.end.row-y.start.row)/2),column:Math.floor(y.start.column+(y.end.column-y.start.column)/2)};this.renderer.alignCursor(v,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.$blockScrolling+=1,this.selection.selectAll(),this.$blockScrolling-=1},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(y,v){this.selection.moveCursorTo(y,v)},this.moveCursorToPosition=function(y){this.selection.moveCursorToPosition(y)},this.jumpToMatching=function(y,v){var E=this.getCursorPosition(),F=new D(this.session,E.row,E.column),x=F.getCurrentToken(),_=x||F.stepForward();if(_){var P,O,I=!1,M={},$=E.column-_.start,R={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(_.value.match(/[{}()\[\]]/g)){for(;$<_.value.length&&!I;$++)if(R[_.value[$]])switch(O=R[_.value[$]]+"."+_.type.replace("rparen","lparen"),isNaN(M[O])&&(M[O]=0),_.value[$]){case"(":case"[":case"{":M[O]++;break;case")":case"]":case"}":M[O]--,M[O]===-1&&(P="bracket",I=!0)}}else _&&_.type.indexOf("tag-name")!==-1&&(isNaN(M[_.value])&&(M[_.value]=0),x.value==="<"?M[_.value]++:x.value===""&&M[_.value]--,M[_.value]===-1&&(P="tag",I=!0));I||(x=_,_=F.stepForward(),$=0)}while(_&&!I);if(P){var L,S;if(P==="bracket")(L=this.session.getBracketRange(E))||(S=(L=new B(F.getCurrentTokenRow(),F.getCurrentTokenColumn()+$-1,F.getCurrentTokenRow(),F.getCurrentTokenColumn()+$-1)).start,(v||S.row===E.row&&Math.abs(S.column-E.column)<2)&&(L=this.session.getBracketRange(S)));else if(P==="tag"){if(!_||_.type.indexOf("tag-name")===-1)return;var T=_.value;if((L=new B(F.getCurrentTokenRow(),F.getCurrentTokenColumn()-2,F.getCurrentTokenRow(),F.getCurrentTokenColumn()-2)).compare(E.row,E.column)===0){I=!1;do _=x,(x=F.stepBackward())&&(x.type.indexOf("tag-close")!==-1&&L.setEnd(F.getCurrentTokenRow(),F.getCurrentTokenColumn()+1),_.value===T&&_.type.indexOf("tag-name")!==-1&&(x.value==="<"?M[T]++:x.value===""&&M[T]--,M[T]===0&&(I=!0)));while(x&&!I)}_&&_.type.indexOf("tag-name")&&(S=L.start).row==E.row&&Math.abs(S.column-E.column)<2&&(S=L.end)}(S=L&&L.cursor||S)&&(y?L&&v?this.selection.setRange(L):L&&L.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(S.row,S.column):this.selection.moveTo(S.row,S.column))}}},this.gotoLine=function(y,v,E){this.selection.clearSelection(),this.session.unfold({row:y-1,column:v||0}),this.$blockScrolling+=1,this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(y-1,v||0),this.$blockScrolling-=1,this.isRowFullyVisible(y-1)||this.scrollToLine(y-1,!0,E)},this.navigateTo=function(y,v){this.selection.moveTo(y,v)},this.navigateUp=function(y){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var v=this.selection.anchor.getPosition();return this.moveCursorToPosition(v)}this.selection.clearSelection(),this.selection.moveCursorBy(-y||-1,0)},this.navigateDown=function(y){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var v=this.selection.anchor.getPosition();return this.moveCursorToPosition(v)}this.selection.clearSelection(),this.selection.moveCursorBy(y||1,0)},this.navigateLeft=function(y){if(this.selection.isEmpty())for(y=y||1;y--;)this.selection.moveCursorLeft();else{var v=this.getSelectionRange().start;this.moveCursorToPosition(v)}this.clearSelection()},this.navigateRight=function(y){if(this.selection.isEmpty())for(y=y||1;y--;)this.selection.moveCursorRight();else{var v=this.getSelectionRange().end;this.moveCursorToPosition(v)}this.clearSelection()},this.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},this.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},this.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},this.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},this.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},this.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},this.replace=function(y,v){v&&this.$search.set(v);var E=this.$search.find(this.session),F=0;return E&&(this.$tryReplace(E,y)&&(F=1),E!==null&&(this.selection.setSelectionRange(E),this.renderer.scrollSelectionIntoView(E.start,E.end))),F},this.replaceAll=function(y,v){v&&this.$search.set(v);var E=this.$search.findAll(this.session),F=0;if(!E.length)return F;this.$blockScrolling+=1;var x=this.getSelectionRange();this.selection.moveTo(0,0);for(var _=E.length-1;_>=0;--_)this.$tryReplace(E[_],y)&&F++;return this.selection.setSelectionRange(x),this.$blockScrolling-=1,F},this.$tryReplace=function(y,v){var E=this.session.getTextRange(y);return(v=this.$search.replace(E,v))!==null?(y.end=this.session.replace(y,v),y):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(y,v,E){v||(v={}),typeof y=="string"||y instanceof RegExp?v.needle=y:_typeof(y)=="object"&&m.mixin(v,y);var F=this.selection.getRange();v.needle==null&&((y=this.session.getTextRange(F)||this.$search.$options.needle)||(F=this.session.getWordRange(F.start.row,F.start.column),y=this.session.getTextRange(F)),this.$search.set({needle:y})),this.$search.set(v),v.start||this.$search.set({start:F});var x=this.$search.find(this.session);return v.preventScroll?x:x?(this.revealRange(x,E),x):(v.backwards?F.start=F.end:F.end=F.start,void this.selection.setRange(F))},this.findNext=function(y,v){this.find({skipCurrent:!0,backwards:!1},y,v)},this.findPrevious=function(y,v){this.find(y,{skipCurrent:!0,backwards:!0},v)},this.revealRange=function(y,v){this.$blockScrolling+=1,this.session.unfold(y),this.selection.setSelectionRange(y),this.$blockScrolling-=1;var E=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(y.start,y.end,.5),v!==!1&&this.renderer.animateScrolling(E)},this.undo=function(){this.$blockScrolling++,this.session.getUndoManager().undo(),this.$blockScrolling--,this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.$blockScrolling++,this.session.getUndoManager().redo(),this.$blockScrolling--,this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy()},this.setAutoScrollEditorIntoView=function(y){if(y){var v,E=this,F=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var x=this.$scrollAnchor;x.style.cssText="position:absolute",this.container.insertBefore(x,this.container.firstChild);var _=this.on("changeSelection",function(){F=!0}),P=this.renderer.on("beforeRender",function(){F&&(v=E.renderer.container.getBoundingClientRect())}),O=this.renderer.on("afterRender",function(){if(F&&v&&(E.isFocused()||E.searchBox&&E.searchBox.isFocused())){var I=E.renderer,M=I.$cursorLayer.$pixelPos,$=I.layerConfig,R=M.top-$.offset;(F=M.top>=0&&R+v.top<0||!(M.top<$.height&&M.top+v.top+$.lineHeight>window.innerHeight)&&null)!=null&&(x.style.top=R+"px",x.style.left=M.left+"px",x.style.height=$.lineHeight+"px",x.scrollIntoView(F)),F=v=null}});this.setAutoScrollEditorIntoView=function(I){I||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",_),this.renderer.off("afterRender",O),this.renderer.off("beforeRender",P))}}},this.$resetCursorStyle=function(){var y=this.$cursorStyle||"ace",v=this.renderer.$cursorLayer;v&&(v.setSmoothBlinking(/smooth/.test(y)),v.isBlinking=!this.$readOnly&&y!="wide",d.setCssClass(v.element,"ace_slim-cursors",/slim/.test(y)))}}).call(k.prototype),p.defineOptions(k.prototype,"editor",{selectionStyle:{set:function(y){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:y})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(y){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(y){this.$resetCursorStyle()},initialValue:!1},cursorStyle:{set:function(y){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},autoScrollEditorIntoView:{set:function(y){this.setAutoScrollEditorIntoView(y)}},keyboardHandler:{set:function(y){this.setKeyboardHandler(y)},get:function(){return this.keybindingId},handlesSet:!0},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",showLineNumbers:"renderer",showGutter:"renderer",displayIndentGuides:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"}),o.Editor=k}),ace.define("ace/undomanager",["require","exports","module"],function(h,o,g){var m=function(){this.reset()};(function(){function d(i){return{action:i.action,start:i.start,end:i.end,lines:i.lines.length==1?null:i.lines,text:i.lines.length==1?i.lines[0]:null}}function c(i){return{action:i.action,start:i.start,end:i.end,lines:i.lines||[i.text]}}function s(i,e){for(var t=new Array(i.length),a=0;a'+i.map(function(l){return'
",this.dom.validationErrors=t,this.frame.appendChild(t);var a=t.clientHeight;this.content.style.marginBottom=-a+"px",this.content.style.paddingBottom=a+"px"}this.aceEditor&&this.aceEditor.resize(!1)},r.exports=[{mode:"text",mixin:m,data:"text",load:m.format},{mode:"code",mixin:m,data:"text",load:m.format}]},function(r,u,n){var h=n(64);n(67),n(69),r.exports=h},function(r,u,n){(function(){var h=function(){return this}();h||typeof window=="undefined"||(h=window);var o=function e(t,a,l){typeof t=="string"?(arguments.length==2&&(l=a),e.modules[t]||(e.payloads[t]=l,e.modules[t]=null)):e.original?e.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace())};o.modules={},o.payloads={};var g,m,d=function(e,t,a){if(typeof t=="string"){var l=i(e,t);if(l!=null)return a&&a(),l}else if(Object.prototype.toString.call(t)==="[object Array]"){for(var A=[],B=0,C=t.length;B "}).join("")+"'+(typeof l=="string"?' ":"'+l+"
"+l.dataPath+" "+l.message+" ")+"
"),C.setHtml(l),C.show(),A.on("mousewheel",w),e.$tooltipFollowsMouse)b(a);else{var F=a.domEvent.target.getBoundingClientRect(),x=C.getElement().style;x.left=F.right+"px",x.top=F.bottom+"px"}}():w()},50))}),c.addListener(A.renderer.$gutter,"mouseout",function(p){a=null,l&&!t&&(t=setTimeout(function(){t=null,w()},50))}),A.on("changeSession",w)}}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(h,o,g){var m=h("../lib/event"),d=h("../lib/useragent"),c=o.MouseEvent=function(s,i){this.domEvent=s,this.editor=i,this.x=this.clientX=s.clientX,this.y=this.clientY=s.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){m.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){m.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},this.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var s=this.editor.getSelectionRange();if(s.isEmpty())this.$inSelection=!1;else{var i=this.getDocumentPosition();this.$inSelection=s.contains(i.row,i.column)}return this.$inSelection},this.getButton=function(){return m.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=d.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(c.prototype)}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(h,o,g){var m=h("../lib/dom"),d=h("../lib/event"),c=h("../lib/useragent");function s(e){var t=e.editor,a=m.createElement("img");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",c.isOpera&&(a.style.cssText="width:1px;height:1px;position:fixed;top:0;left:0;z-index:2147483647;opacity:0;"),["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach(function(R){e[R]=this[R]},this),t.addEventListener("mousedown",this.onMouseDown.bind(e));var l,A,B,C,w,b,p,D,k,y,v,E=t.container,F=0;function x(){var R=b;(function(L,S){var T=Date.now(),N=!S||L.row!=S.row,z=!S||L.column!=S.column;!y||N||z?(t.$blockScrolling+=1,t.moveCursorToPosition(L),t.$blockScrolling-=1,y=T,v={x:A,y:B}):i(v.x,v.y,A,B)>5?y=null:T-y>=200&&(t.renderer.scrollCursorIntoView(),y=null)})(b=t.renderer.screenToTextCoordinates(A,B),R),function(L,S){var T=Date.now(),N=t.renderer.layerConfig.lineHeight,z=t.renderer.layerConfig.characterWidth,V=t.renderer.scroller.getBoundingClientRect(),H={x:{left:A-V.left,right:V.right-A},y:{top:B-V.top,bottom:V.bottom-B}},W=Math.min(H.x.left,H.x.right),J=Math.min(H.y.top,H.y.bottom),Y={row:L.row,column:L.column};W/z<=2&&(Y.column+=H.x.left
"),b.appendChild(d.createElement("div"));var k=function(y,v,E){if(v===0&&(E==="esc"||E==="return"))return w.destroy(),{command:"null"}};w.destroy=function(){s.$mouseHandler.isMousePressed||(s.keyBinding.removeKeyboardHandler(k),e.widgetManager.removeLineWidget(w),s.off("changeSelection",w.destroy),s.off("changeSession",w.destroy),s.off("mouseup",w.destroy),s.off("change",w.destroy))},s.keyBinding.addKeyboardHandler(k),s.on("changeSelection",w.destroy),s.on("changeSession",w.destroy),s.on("mouseup",w.destroy),s.on("change",w.destroy),s.session.widgetManager.addLineWidget(w),w.el.onmousedown=s.focus.bind(s),s.renderer.scrollCursorIntoView(null,.5,{bottom:w.el.offsetHeight})},d.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; } ","")}),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","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"],function(h,o,g){h("./lib/fixoldbrowsers");var m=h("./lib/dom"),d=h("./lib/event"),c=h("./editor").Editor,s=h("./edit_session").EditSession,i=h("./undomanager").UndoManager,e=h("./virtual_renderer").VirtualRenderer;h("./worker/worker_client"),h("./keyboard/hash_handler"),h("./placeholder"),h("./multi_select"),h("./mode/folding/fold_mode"),h("./theme/textmate"),h("./ext/error_marker"),o.config=h("./config"),o.acequire=h,o.edit=function(t){if(typeof t=="string"){var a=t;if(!(t=document.getElementById(a)))throw new Error("ace.edit can't find div #"+a)}if(t&&t.env&&t.env.editor instanceof c)return t.env.editor;var l="";if(t&&/input|textarea/i.test(t.tagName)){var A=t;l=A.value,t=m.createElement("pre"),A.parentNode.replaceChild(t,A)}else t&&(l=m.getInnerText(t),t.innerHTML="");var B=o.createEditSession(l),C=new c(new e(t));C.setSession(B);var w={document:B,editor:C,onResize:C.resize.bind(C,null)};return A&&(w.textarea=A),d.addListener(window,"resize",w.onResize),C.on("destroy",function(){d.removeListener(window,"resize",w.onResize),w.editor.container.env=null}),C.container.env=C.env=w,C},o.createEditSession=function(t,a){var l=new s(t,a);return l.setUndoManager(new i),l},o.EditSession=s,o.UndoManager=i,o.version="1.2.3"}),ace.acequire(["ace/ace"],function(h){for(var o in h&&h.config.init(!0),window.ace||(window.ace=h),h)h.hasOwnProperty(o)&&(window.ace[o]=h[o])}),r.exports=window.ace.acequire("ace/ace")},function(r,u){r.exports=function(){throw new Error("define cannot be used indirect")}},function(r,u){(function(n){r.exports=function(){if(n.Blob)try{return new Blob(["asdf"],{type:"text/plain"}),Blob}catch(o){}var h=n.WebKitBlobBuilder||n.MozBlobBuilder||n.MSBlobBuilder;return function(o,g){var m=new h,d=g.endings,c=g.type;if(d)for(var s=0,i=o.length;s-1},B.recordAutoInsert=function(C,w,b){var p=C.getCursorPosition(),D=w.doc.getLine(p.row);this.isAutoInsertedClosing(p,D,m.autoInsertedLineEnd[0])||(m.autoInsertedBrackets=0),m.autoInsertedRow=p.row,m.autoInsertedLineEnd=b+D.substr(p.column),m.autoInsertedBrackets++},B.recordMaybeInsert=function(C,w,b){var p=C.getCursorPosition(),D=w.doc.getLine(p.row);this.isMaybeInsertedClosing(p,D)||(m.maybeInsertedBrackets=0),m.maybeInsertedRow=p.row,m.maybeInsertedLineStart=D.substr(0,p.column)+b,m.maybeInsertedLineEnd=D.substr(p.column),m.maybeInsertedBrackets++},B.isAutoInsertedClosing=function(C,w,b){return m.autoInsertedBrackets>0&&C.row===m.autoInsertedRow&&b===m.autoInsertedLineEnd[0]&&w.substr(C.column)===m.autoInsertedLineEnd},B.isMaybeInsertedClosing=function(C,w){return m.maybeInsertedBrackets>0&&C.row===m.maybeInsertedRow&&w.substr(C.column)===m.maybeInsertedLineEnd&&w.substr(0,C.column)==m.maybeInsertedLineStart},B.popAutoInsertedClosing=function(){m.autoInsertedLineEnd=m.autoInsertedLineEnd.substr(1),m.autoInsertedBrackets--},B.clearMaybeInsertedClosing=function(){m&&(m.maybeInsertedBrackets=0,m.maybeInsertedRow=-1)},d.inherits(B,c),o.CstyleBehaviour=B}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(h,o,g){var m=h("../../lib/oop"),d=h("../../range").Range,c=h("./fold_mode").FoldMode,s=o.FoldMode=function(i){i&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+i.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+i.end)))};m.inherits(s,c),function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(i,e,t){var a=i.getLine(t);if(this.singleLineBlockCommentRe.test(a)&&!this.startRegionRe.test(a)&&!this.tripleStarBlockCommentRe.test(a))return"";var l=this._getFoldWidgetBase(i,e,t);return!l&&this.startRegionRe.test(a)?"start":l},this.getFoldWidgetRange=function(i,e,t,a){var l,A=i.getLine(t);if(this.startRegionRe.test(A))return this.getCommentRegionBlock(i,A,t);if(l=A.match(this.foldingStartMarker)){var B=l.index;if(l[1])return this.openingBracketBlock(i,l[1],t,B);var C=i.getCommentFoldRange(t,B+l[0].length,1);return C&&!C.isMultiLine()&&(a?C=this.getSectionRange(i,t):e!="all"&&(C=null)),C}return e!=="markbegin"&&(l=A.match(this.foldingStopMarker))?(B=l.index+l[0].length,l[1]?this.closingBracketBlock(i,l[1],t,B):i.getCommentFoldRange(t,B,-1)):void 0},this.getSectionRange=function(i,e){for(var t=i.getLine(e),a=t.search(/\S/),l=e,A=t.length,B=e+=1,C=i.getLength();++e{Object.defineProperty(a,"__esModule",{value:!0}),a.SelectionModel=void 0;var y=function(){function u(_){this._bufferService=_,this.isSelectAllActive=!1,this.selectionStartLength=0}return u.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(u.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"finalSelectionEnd",{get:function(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){var _=this.selectionStart[0]+this.selectionStartLength;return _>this._bufferService.cols?_%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(_/this._bufferService.cols)-1]:[_%this._bufferService.cols,this.selectionStart[1]+Math.floor(_/this._bufferService.cols)]:[_,this.selectionStart[1]]}return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd}},enumerable:!1,configurable:!0}),u.prototype.areSelectionValuesReversed=function(){var _=this.selectionStart,f=this.selectionEnd;return!(!_||!f)&&(_[1]>f[1]||_[1]===f[1]&&_[0]>f[0])},u.prototype.onTrim=function(_){return this.selectionStart&&(this.selectionStart[1]-=_),this.selectionEnd&&(this.selectionEnd[1]-=_),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},u}();a.SelectionModel=y},428:function(F,a,y){var u=this&&this.__decorate||function(i,n,l,o){var t,e=arguments.length,r=e<3?n:o===null?o=Object.getOwnPropertyDescriptor(n,l):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(i,n,l,o);else for(var s=i.length-1;s>=0;s--)(t=i[s])&&(r=(e<3?t(r):e>3?t(n,l,r):t(n,l))||r);return e>3&&r&&Object.defineProperty(n,l,r),r},_=this&&this.__param||function(i,n){return function(l,o){n(l,o,i)}};Object.defineProperty(a,"__esModule",{value:!0}),a.CharSizeService=void 0;var f=y(2585),h=y(8460),S=function(){function i(n,l,o){this._optionsService=o,this.width=0,this.height=0,this._onCharSizeChange=new h.EventEmitter,this._measureStrategy=new p(n,l,this._optionsService)}return Object.defineProperty(i.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),i.prototype.measure=function(){var n=this._measureStrategy.measure();n.width===this.width&&n.height===this.height||(this.width=n.width,this.height=n.height,this._onCharSizeChange.fire())},u([_(2,f.IOptionsService)],i)}();a.CharSizeService=S;var p=function(){function i(n,l,o){this._document=n,this._parentElement=l,this._optionsService=o,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return i.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var n=this._measureElement.getBoundingClientRect();return n.width!==0&&n.height!==0&&(this._result.width=n.width,this._result.height=Math.ceil(n.height)),this._result},i}()},4269:function(F,a,y){var u,_=this&&this.__extends||(u=function(t,e){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(r[c]=s[c])},u(t,e)},function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}u(t,e),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}),f=this&&this.__decorate||function(t,e,r,s){var c,d=arguments.length,v=d<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,r):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(t,e,r,s);else for(var b=t.length-1;b>=0;b--)(c=t[b])&&(v=(d<3?c(v):d>3?c(e,r,v):c(e,r))||v);return d>3&&v&&Object.defineProperty(e,r,v),v},h=this&&this.__param||function(t,e){return function(r,s){e(r,s,t)}};Object.defineProperty(a,"__esModule",{value:!0}),a.CharacterJoinerService=a.JoinedCellData=void 0;var S=y(3734),p=y(643),i=y(511),n=y(2585),l=function(t){function e(r,s,c){var d=t.call(this)||this;return d.content=0,d.combinedData="",d.fg=r.fg,d.bg=r.bg,d.combinedData=s,d._width=c,d}return _(e,t),e.prototype.isCombined=function(){return 2097152},e.prototype.getWidth=function(){return this._width},e.prototype.getChars=function(){return this.combinedData},e.prototype.getCode=function(){return 2097151},e.prototype.setFromCharData=function(r){throw new Error("not implemented")},e.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},e}(S.AttributeData);a.JoinedCellData=l;var o=function(){function t(e){this._bufferService=e,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new i.CellData}return t.prototype.register=function(e){var r={id:this._nextCharacterJoinerId++,handler:e};return this._characterJoiners.push(r),r.id},t.prototype.deregister=function(e){for(var r=0;r{Object.defineProperty(a,"__esModule",{value:!0}),a.clone=void 0,a.clone=function y(u,_){if(_===void 0&&(_=5),typeof u!="object")return u;var f=Array.isArray(u)?[]:{};for(var h in u)f[h]=_<=1?u[h]:u[h]&&y(u[h],_-1);return f}},8969:function(F,a,y){var u,_=this&&this.__extends||(u=function(g,m){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,E){x.__proto__=E}||function(x,E){for(var O in E)Object.prototype.hasOwnProperty.call(E,O)&&(x[O]=E[O])},u(g,m)},function(g,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");function x(){this.constructor=g}u(g,m),g.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)});Object.defineProperty(a,"__esModule",{value:!0}),a.CoreTerminal=void 0;var f=y(844),h=y(2585),S=y(4348),p=y(7866),i=y(744),n=y(7302),l=y(6975),o=y(8460),t=y(1753),e=y(3730),r=y(1480),s=y(7994),c=y(9282),d=y(5435),v=y(5981),b=!1,C=function(g){function m(x){var E=g.call(this)||this;return E._onBinary=new o.EventEmitter,E._onData=new o.EventEmitter,E._onLineFeed=new o.EventEmitter,E._onResize=new o.EventEmitter,E._onScroll=new o.EventEmitter,E._instantiationService=new S.InstantiationService,E.optionsService=new n.OptionsService(x),E._instantiationService.setService(h.IOptionsService,E.optionsService),E._bufferService=E.register(E._instantiationService.createInstance(i.BufferService)),E._instantiationService.setService(h.IBufferService,E._bufferService),E._logService=E._instantiationService.createInstance(p.LogService),E._instantiationService.setService(h.ILogService,E._logService),E.coreService=E.register(E._instantiationService.createInstance(l.CoreService,function(){return E.scrollToBottom()})),E._instantiationService.setService(h.ICoreService,E.coreService),E.coreMouseService=E._instantiationService.createInstance(t.CoreMouseService),E._instantiationService.setService(h.ICoreMouseService,E.coreMouseService),E._dirtyRowService=E._instantiationService.createInstance(e.DirtyRowService),E._instantiationService.setService(h.IDirtyRowService,E._dirtyRowService),E.unicodeService=E._instantiationService.createInstance(r.UnicodeService),E._instantiationService.setService(h.IUnicodeService,E.unicodeService),E._charsetService=E._instantiationService.createInstance(s.CharsetService),E._instantiationService.setService(h.ICharsetService,E._charsetService),E._inputHandler=new d.InputHandler(E._bufferService,E._charsetService,E.coreService,E._dirtyRowService,E._logService,E.optionsService,E.coreMouseService,E.unicodeService),E.register((0,o.forwardEvent)(E._inputHandler.onLineFeed,E._onLineFeed)),E.register(E._inputHandler),E.register((0,o.forwardEvent)(E._bufferService.onResize,E._onResize)),E.register((0,o.forwardEvent)(E.coreService.onData,E._onData)),E.register((0,o.forwardEvent)(E.coreService.onBinary,E._onBinary)),E.register(E.optionsService.onOptionChange(function(O){return E._updateOptions(O)})),E.register(E._bufferService.onScroll(function(O){E._onScroll.fire({position:E._bufferService.buffer.ydisp,source:0}),E._dirtyRowService.markRangeDirty(E._bufferService.buffer.scrollTop,E._bufferService.buffer.scrollBottom)})),E.register(E._inputHandler.onScroll(function(O){E._onScroll.fire({position:E._bufferService.buffer.ydisp,source:0}),E._dirtyRowService.markRangeDirty(E._bufferService.buffer.scrollTop,E._bufferService.buffer.scrollBottom)})),E._writeBuffer=new v.WriteBuffer(function(O,M){return E._inputHandler.parse(O,M)}),E}return _(m,g),Object.defineProperty(m.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"onScroll",{get:function(){var x=this;return this._onScrollApi||(this._onScrollApi=new o.EventEmitter,this.register(this._onScroll.event(function(E){var O;(O=x._onScrollApi)===null||O===void 0||O.fire(E.position)}))),this._onScrollApi.event},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"options",{get:function(){return this.optionsService.options},set:function(x){for(var E in x)this.optionsService.options[E]=x[E]},enumerable:!1,configurable:!0}),m.prototype.dispose=function(){var x;this._isDisposed||(g.prototype.dispose.call(this),(x=this._windowsMode)===null||x===void 0||x.dispose(),this._windowsMode=void 0)},m.prototype.write=function(x,E){this._writeBuffer.write(x,E)},m.prototype.writeSync=function(x,E){this._logService.logLevel<=h.LogLevelEnum.WARN&&!b&&(this._logService.warn("writeSync is unreliable and will be removed soon."),b=!0),this._writeBuffer.writeSync(x,E)},m.prototype.resize=function(x,E){isNaN(x)||isNaN(E)||(x=Math.max(x,i.MINIMUM_COLS),E=Math.max(E,i.MINIMUM_ROWS),this._bufferService.resize(x,E))},m.prototype.scroll=function(x,E){E===void 0&&(E=!1),this._bufferService.scroll(x,E)},m.prototype.scrollLines=function(x,E,O){this._bufferService.scrollLines(x,E,O)},m.prototype.scrollPages=function(x){this._bufferService.scrollPages(x)},m.prototype.scrollToTop=function(){this._bufferService.scrollToTop()},m.prototype.scrollToBottom=function(){this._bufferService.scrollToBottom()},m.prototype.scrollToLine=function(x){this._bufferService.scrollToLine(x)},m.prototype.registerEscHandler=function(x,E){return this._inputHandler.registerEscHandler(x,E)},m.prototype.registerDcsHandler=function(x,E){return this._inputHandler.registerDcsHandler(x,E)},m.prototype.registerCsiHandler=function(x,E){return this._inputHandler.registerCsiHandler(x,E)},m.prototype.registerOscHandler=function(x,E){return this._inputHandler.registerOscHandler(x,E)},m.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},m.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()},m.prototype._updateOptions=function(x){var E;switch(x){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((E=this._windowsMode)===null||E===void 0||E.dispose(),this._windowsMode=void 0)}},m.prototype._enableWindowsMode=function(){var x=this;if(!this._windowsMode){var E=[];E.push(this.onLineFeed(c.updateWindowsModeWrappedState.bind(null,this._bufferService))),E.push(this.registerCsiHandler({final:"H"},function(){return(0,c.updateWindowsModeWrappedState)(x._bufferService),!1})),this._windowsMode={dispose:function(){for(var O=0,M=E;O=S)return this._interim=l,p;var o;56320<=(o=f.charCodeAt(n))&&o<=57343?h[p++]=1024*(l-55296)+o-56320+65536:(h[p++]=l,h[p++]=o)}else l!==65279&&(h[p++]=l)}return p},_}();a.StringToUtf32=y;var u=function(){function _(){this.interim=new Uint8Array(3)}return _.prototype.clear=function(){this.interim.fill(0)},_.prototype.decode=function(f,h){var S=f.length;if(!S)return 0;var p,i,n,l,o=0,t=0,e=0;if(this.interim[0]){var r=!1,s=this.interim[0];s&=(224&s)==192?31:(240&s)==224?15:7;for(var c=0,d=void 0;(d=63&this.interim[++c])&&c<4;)s<<=6,s|=d;for(var v=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,b=v-c;e=S)return 0;if((192&(d=f[e++]))!=128){e--,r=!0;break}this.interim[c++]=d,s<<=6,s|=63&d}r||(v===2?s<128?e--:h[o++]=s:v===3?s<2048||s>=55296&&s<=57343||s===65279||(h[o++]=s):s<65536||s>1114111||(h[o++]=s)),this.interim.fill(0)}for(var C=S-4,g=e;g=S)return this.interim[0]=p,o;if((192&(i=f[g++]))!=128){g--;continue}if((t=(31&p)<<6|63&i)<128){g--;continue}h[o++]=t}else if((240&p)==224){if(g>=S)return this.interim[0]=p,o;if((192&(i=f[g++]))!=128){g--;continue}if(g>=S)return this.interim[0]=p,this.interim[1]=i,o;if((192&(n=f[g++]))!=128){g--;continue}if((t=(15&p)<<12|(63&i)<<6|63&n)<2048||t>=55296&&t<=57343||t===65279)continue;h[o++]=t}else if((248&p)==240){if(g>=S)return this.interim[0]=p,o;if((192&(i=f[g++]))!=128){g--;continue}if(g>=S)return this.interim[0]=p,this.interim[1]=i,o;if((192&(n=f[g++]))!=128){g--;continue}if(g>=S)return this.interim[0]=p,this.interim[1]=i,this.interim[2]=n,o;if((192&(l=f[g++]))!=128){g--;continue}if((t=(7&p)<<18|(63&i)<<12|(63&n)<<6|63&l)<65536||t>1114111)continue;h[o++]=t}}return o},_}();a.Utf8ToUtf32=u},225:(F,a,y)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.UnicodeV6=void 0;var u,_=y(8273),f=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],h=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],S=function(){function p(){if(this.version="6",!u){u=new Uint8Array(65536),(0,_.fill)(u,1),u[0]=0,(0,_.fill)(u,0,1,32),(0,_.fill)(u,0,127,160),(0,_.fill)(u,2,4352,4448),u[9001]=2,u[9002]=2,(0,_.fill)(u,2,11904,42192),u[12351]=1,(0,_.fill)(u,2,44032,55204),(0,_.fill)(u,2,63744,64256),(0,_.fill)(u,2,65040,65050),(0,_.fill)(u,2,65072,65136),(0,_.fill)(u,2,65280,65377),(0,_.fill)(u,2,65504,65511);for(var i=0;i